@abtnode/blocklet-services 1.16.33-beta-20241102-083409-a924dd84 → 1.16.33-beta-20241105-141729-e4608175
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.
- package/api/index.js +2 -48
- package/api/libs/auth/index.js +3 -2
- package/api/libs/logger.js +2 -0
- package/api/routes/federated.js +31 -1
- package/api/routes/oauth.js +19 -3
- package/api/state/profile.js +2 -1
- package/dist/assets/{Add-bOFtqv1E.js → Add-C5wKbObL.js} +1 -1
- package/dist/assets/Alert-ClGA4UON.js +1 -0
- package/dist/assets/{ArrowDropDown-CshuI94_.js → ArrowDropDown-CK-CyRRv.js} +1 -1
- package/dist/assets/{Autocomplete-r8azpItz.js → Autocomplete-BM34aepT.js} +1 -1
- package/dist/assets/Avatar-DyK43nCT.js +1 -0
- package/dist/assets/{ButtonGroup-Ba2QsN1i.js → ButtonGroup-DaL5PyR4.js} +1 -1
- package/dist/assets/{CSSTransition-Cw_xP1Vb.js → CSSTransition-BzIdiTxk.js} +1 -1
- package/dist/assets/{CheckCircle-D6BKIS_s.js → CheckCircle-C-BzX2wx.js} +1 -1
- package/dist/assets/{ChevronLeft-Cuf9mn8C.js → ChevronLeft-DdnDWw3p.js} +1 -1
- package/dist/assets/{ChevronRight-DKM1mfYU.js → ChevronRight-B_bmxWe_.js} +1 -1
- package/dist/assets/{Close-BOZcPfPU.js → Close-da9E5C6C.js} +1 -1
- package/dist/assets/Delete-4PM7zdFM.js +1 -0
- package/dist/assets/{DeleteOutline-D2b8wb9u.js → DeleteOutline-23K5_ksg.js} +1 -1
- package/dist/assets/{DialogContentText-DKna-pLa.js → DialogContentText-BAHpbVEb.js} +1 -1
- package/dist/assets/{Done-BAj811nu.js → Done-CKRWemQO.js} +1 -1
- package/dist/assets/{Download-EZLNqT6R.js → Download-B85Kmt1U.js} +1 -1
- package/dist/assets/{EditIcon-CMiQSmX5.js → EditIcon-DSJg9xra.js} +1 -1
- package/dist/assets/{Error-Dyl_GK7X.js → Error-Dln9la_X.js} +1 -1
- package/dist/assets/{ExpandMore-Cri5eWhB.js → ExpandMore-CtG_bAfW.js} +1 -1
- package/dist/assets/FormControl-BL0Z1NSB.js +1 -0
- package/dist/assets/{FormControlLabel-DUqUcjqg.js → FormControlLabel-DoWNBwBW.js} +1 -1
- package/dist/assets/FormGroup-QLbY_ga6.js +1 -0
- package/dist/assets/{Google-n9BhRIMV.js → Google-BvcdqOgK.js} +1 -1
- package/dist/assets/{Grid-d_5vEATf.js → Grid-CK8YVFLA.js} +1 -1
- package/dist/assets/{HelpOutline-CN-JBZ3p.js → HelpOutline-Dl-B0PLa.js} +1 -1
- package/dist/assets/Hidden-vR0aN6pm.js +1 -0
- package/dist/assets/{InfoOutlined-B6Dnu1aU.js → InfoOutlined-B6NUfTCa.js} +1 -1
- package/dist/assets/{InputAdornment-C_v1Y6Di.js → InputAdornment-DZGc8E9Q.js} +1 -1
- package/dist/assets/{LastPage-lb4qZ_g6.js → LastPage-DGe9hoEM.js} +1 -1
- package/dist/assets/{Launch-BTyi4wvd.js → Launch-BpxAI4bs.js} +1 -1
- package/dist/assets/{LaunchOutlined-CNgk8eWz.js → LaunchOutlined-C6MUvhkl.js} +1 -1
- package/dist/assets/{Link-B263Ikvu.js → Link-t0X_2s8f.js} +1 -1
- package/dist/assets/{ListItemButton-DapPFhnE.js → ListItemButton-BeEwzuuE.js} +1 -1
- package/dist/assets/{ListSubheader-Bdp-HRQo.js → ListSubheader-CinvXrOQ.js} +1 -1
- package/dist/assets/{LoadingButton-DdsFlMi1.js → LoadingButton-Bzaa_ly6.js} +1 -1
- package/dist/assets/{LockIcon-D2gLIi44.js → LockIcon-DeDWbkGd.js} +1 -1
- package/dist/assets/{Loop-9mUuOWB-.js → Loop-DH3EwgSL.js} +1 -1
- package/dist/assets/{MarkEmailRead-BkXDErhY.js → MarkEmailRead-CwoBeL2i.js} +1 -1
- package/dist/assets/{Menu-BG_qisJ7.js → Menu-D_GBf1CB.js} +1 -1
- package/dist/assets/{MoreHoriz-DcPej2CD.js → MoreHoriz-Qd-pbYq_.js} +1 -1
- package/dist/assets/{MoreVert-BwL-ULCe.js → MoreVert-Dy3B-4PZ.js} +1 -1
- package/dist/assets/{OpenInNew-Ci1H_656.js → OpenInNew-sKjipJwH.js} +1 -1
- package/dist/assets/{Pagination-KX1cGsLx.js → Pagination-BSPBQ0Um.js} +2 -2
- package/dist/assets/{PlayArrow-D2XJZjjn.js → PlayArrow-DC_oyUb1.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-DzQgFhhx.js → QuestionMarkCircle-C8r6Lbfw.js} +1 -1
- package/dist/assets/{RadioGroup-CKVkcR5j.js → RadioGroup-MJhlZ4ZH.js} +1 -1
- package/dist/assets/{Search-DcB6584F.js → Search-CefeP42d.js} +1 -1
- package/dist/assets/{Select-FHyYu0mn.js → Select-Bjc5h4TG.js} +2 -2
- package/dist/assets/{ServerLogo-COVdbFHe.js → ServerLogo-B27SaIJw.js} +1 -1
- package/dist/assets/{Skeleton-Bbfoem6Q.js → Skeleton-B-YzpOQg.js} +4 -4
- package/dist/assets/{Slider-DlL3lEzg.js → Slider-DEZGhcr8.js} +1 -1
- package/dist/assets/Stack-RoMZEEMb.js +1 -0
- package/dist/assets/{Stepper-C1z1Nu0H.js → Stepper-D8zaVBG6.js} +1 -1
- package/dist/assets/{TextField-C6DNb6K3.js → TextField-OMWgqDee.js} +1 -1
- package/dist/assets/{Toolbar-mIzrJcpi.js → Toolbar-CZhQZvMx.js} +1 -1
- package/dist/assets/{ViewColumn-BfOj5Hqi.js → ViewColumn-CWRGm9xJ.js} +1 -1
- package/dist/assets/{ViewList-CHUygrET.js → ViewList-B4FFgNBd.js} +1 -1
- package/dist/assets/_createAggregator-C7QUEqHM.js +1 -0
- package/dist/assets/access-control-BhAuSTlj.js +13 -0
- package/dist/assets/actions-VMZ5WmkG.js +1 -0
- package/dist/assets/{add-component-core-D9i8J5Hl.js → add-component-core-BMEBzsmZ.js} +19 -19
- package/dist/assets/add-resource-RNKWAHa3.js +1 -0
- package/dist/assets/addon-DLwkn9N6.js +31 -0
- package/dist/assets/{analytics-CNjMo4PR.js → analytics-Dm4wPEYQ.js} +7 -7
- package/dist/assets/api-J-ppmLLo.js +1 -0
- package/dist/assets/ar-DVPUxrdQ.js +1 -0
- package/dist/assets/audit-logs-tj7WeyYy.js +58 -0
- package/dist/assets/{base32-b0e6z4ei.js → base32-D9mDcD23.js} +1 -1
- package/dist/assets/branding-D-eSt-2j.js +37 -0
- package/dist/assets/bundle-avatar-Co5kQjOo.js +1 -0
- package/dist/assets/{button-BZSmvuzl.js → button-Ee_XPt6g.js} +1 -1
- package/dist/assets/{click-to-copy-CYT808Bk.js → click-to-copy-CQnFaSnp.js} +1 -1
- package/dist/assets/{complete-DeQ0rwlU.js → complete-CeSbBm-e.js} +4 -4
- package/dist/assets/{component-D2BxwkDd.js → component-DJBS5Xx8.js} +46 -46
- package/dist/assets/{config-Gbmmjnod.js → config-B6t74tHt.js} +1 -1
- package/dist/assets/{config-rCxorgFD.js → config-C_hl3G_R.js} +2 -2
- package/dist/assets/config-navigation-CHtqAvRz.js +25 -0
- package/dist/assets/confirm-Ddpyr19d.js +7 -0
- package/dist/assets/connect-6xrInacS.js +1 -0
- package/dist/assets/connect-Ewc4HyYb.js +5 -0
- package/dist/assets/connect-to-qDn2VlTy.js +1 -0
- package/dist/assets/{content-layout-Dg654vli.js → content-layout-BBKVUucZ.js} +1 -1
- package/dist/assets/{dashboard-DN-9-3gU.js → dashboard-BijWBRYU.js} +8 -8
- package/dist/assets/de-DVXfDFSU.js +1 -0
- package/dist/assets/{deprecate-YD6Y6FfX.js → deprecate-D8ZVXehA.js} +1 -1
- package/dist/assets/{did-address-D5PpLM1R.js → did-address-CM_8YqbE.js} +1 -1
- package/dist/assets/domain-DyBbgSJm.js +9 -0
- package/dist/assets/domain-list-CxPS6rQ4.js +15 -0
- package/dist/assets/{email-DqijDSOa.js → email-DxESpXcD.js} +3 -3
- package/dist/assets/emotion-cache.browser.esm-DWAkeLNM.js +1 -0
- package/dist/assets/es-FbTZG3DY.js +1 -0
- package/dist/assets/exchange-passport-CnSh9yXL.js +1 -0
- package/dist/assets/{fallback-D3XbER7P.js → fallback-DtXRUNR6.js} +1 -1
- package/dist/assets/{form-text-input-Dfn1Wn_5.js → form-text-input-CQCcTHWQ.js} +2 -2
- package/dist/assets/{format-error-CbWObE-m.js → format-error-BXpFpsa-.js} +1 -1
- package/dist/assets/fr-DL1YXCMM.js +1 -0
- package/dist/assets/fuel-D6j74EMR.js +32 -0
- package/dist/assets/{fullpage-CGQnavVT.js → fullpage-CKQTBOZk.js} +1 -1
- package/dist/assets/hi-DVTVHQJG.js +1 -0
- package/dist/assets/{home-DEHpnOzD.js → home-CcjOthQO.js} +1 -1
- package/dist/assets/id-CjJaQtmp.js +1 -0
- package/dist/assets/{iframe-CjWb2_M6.js → iframe-DRVFH0tr.js} +1 -1
- package/dist/assets/{index-DBu7jcSD.js → index-4Vv_xV1i.js} +1 -1
- package/dist/assets/{index-BeoZ-VU7.js → index-B463Qwek.js} +1 -1
- package/dist/assets/{index-kR3Uq-Mb.js → index-BACiBg8Z.js} +17 -17
- package/dist/assets/{index-Bpc59LEO.js → index-BCox7gnS.js} +1 -1
- package/dist/assets/{index-D9qREAp1.js → index-Bn4Oin82.js} +7 -7
- package/dist/assets/{index-KqotQeYl.js → index-BtEigcbe.js} +4 -4
- package/dist/assets/index-C3SoKjGs.js +1 -0
- package/dist/assets/{index-DVziVD2f.js → index-C97ospTS.js} +1 -1
- package/dist/assets/{index-CrRQb6MU.js → index-CJ5QOKhK.js} +1 -1
- package/dist/assets/index-CN4Xbxs7.js +23 -0
- package/dist/assets/{index-T8nTnmh1.js → index-CPpIB55-.js} +1 -1
- package/dist/assets/{index-BDZlmkSE.js → index-Ca4BjHEM.js} +1 -1
- package/dist/assets/{index-Bkm0bPy1.js → index-Cfu_bVRF.js} +9 -9
- package/dist/assets/{index-5iry99Ky.js → index-CjgG9Mbh.js} +3 -3
- package/dist/assets/{index-DOE-ad6o.js → index-ClAQ2Uji.js} +1 -1
- package/dist/assets/{index-DSOswIXL.js → index-CrRL_dto.js} +8 -8
- package/dist/assets/{index-Pws_HXCQ.js → index-D7yWEAeI.js} +2 -2
- package/dist/assets/{index-BkQ4EI2P.js → index-D8wC9WED.js} +34 -34
- package/dist/assets/{index-DURun-fE.js → index-D9Zhhq53.js} +1 -1
- package/dist/assets/{index-ByIVK1rt.js → index-DNivnwSJ.js} +1 -1
- package/dist/assets/index-DOT9KoXF.js +4 -0
- package/dist/assets/{index-1CEybnrZ.js → index-DYz2g4w3.js} +1 -1
- package/dist/assets/{index-BbL9bes4.js → index-DZ8uRrow.js} +1 -1
- package/dist/assets/index-DaPfZep1.js +544 -0
- package/dist/assets/index-Dc2ybf4C.js +11 -0
- package/dist/assets/{index-Ctfa52p5.js → index-Dd9xMZEz.js} +9 -9
- package/dist/assets/index-DsUB0er-.js +1 -0
- package/dist/assets/{index-B_B2L5WL.js → index-DyVo1ugh.js} +1 -1
- package/dist/assets/{index-wnWr-8e_.js → index-Hnm-O5Pq.js} +13 -13
- package/dist/assets/{index-BELX75G9.js → index-SC5yW-Mc.js} +1 -1
- package/dist/assets/{index-B54dXjy1.js → index-e9epohgt.js} +14 -14
- package/dist/assets/index-gK8L4BFM.js +1 -0
- package/dist/assets/{index-ni93At8S.js → index-gZFJJRf-.js} +1 -1
- package/dist/assets/{index-gyya76M7.js → index-o33Ww9sw.js} +1 -1
- package/dist/assets/{invitation-PGwdnHE4.js → invitation-BuZJIYwW.js} +6 -6
- package/dist/assets/invite-1m2hy3gm.js +5 -0
- package/dist/assets/{isEmail-B5EAjxnP.js → isEmail-BAm7AH0D.js} +1 -1
- package/dist/assets/{issue-passport-Bw_MHd9T.js → issue-passport-C9U5xfNL.js} +1 -1
- package/dist/assets/{item-eNPWM9nS.js → item-CjjCUl_D.js} +1 -1
- package/dist/assets/ja-D5d-ejt-.js +1 -0
- package/dist/assets/{jss-plugin-props-sort.esm-D5cAYULH.js → jss-plugin-props-sort.esm-cqAVaHSM.js} +5 -5
- package/dist/assets/ko-KSOTEFlZ.js +1 -0
- package/dist/assets/{launch-result-message-D3mtj3IR.js → launch-result-message-Qy-17kk4.js} +1 -1
- package/dist/assets/{layout-CZVKqaZH.js → layout-BVjKi-WC.js} +2 -2
- package/dist/assets/list-header-DBu1NCpW.js +57 -0
- package/dist/assets/localization-Duro2u0E.js +1 -0
- package/dist/assets/{log-CJD7Smn5.js → log-2ZwvZtYm.js} +1 -1
- package/dist/assets/{login-DR3kcJtW.js → login-DvR8ldSJ.js} +1 -1
- package/dist/assets/login-oauth-callback-C6I5hp6o.js +1 -0
- package/dist/assets/logo-uploader-lnCRmGXJ.js +133 -0
- package/dist/assets/{lost-passport-CynXuP5y.js → lost-passport-CSsACZsq.js} +3 -3
- package/dist/assets/{lottie-react.esm-BBW-VAw8.js → lottie-react.esm-Bx5n1m-Y.js} +1 -1
- package/dist/assets/notifications-K6SumKc_.js +65 -0
- package/dist/assets/{open-window-BKaZeE7I.js → open-window-BnMY49qX.js} +1 -1
- package/dist/assets/overview-4Pt-umR4.js +12 -0
- package/dist/assets/page-header-CA8Xsarf.js +31 -0
- package/dist/assets/{permission-C4_wbUHQ.js → permission-sAUmNkv7.js} +1 -1
- package/dist/assets/{preferences-a3_XT82h.js → preferences-BPOKtF4g.js} +1 -1
- package/dist/assets/pt-CZUQ83t-.js +1 -0
- package/dist/assets/publish-resource-VECs77eT.js +1 -0
- package/dist/assets/{raf-schd.esm-BDHFBmJm.js → raf-schd.esm-W-ZrlqpH.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-rfy7xaJI.js → react-beautiful-dnd.esm-BJ9lX_Fr.js} +1 -1
- package/dist/assets/refType-BsYuCgz-.js +1 -0
- package/dist/assets/resource-dialog-BBl_2osk.js +4 -0
- package/dist/assets/ru-BowhhxB9.js +1 -0
- package/dist/assets/sdk-DponvxD9.js +1 -0
- package/dist/assets/selector-CFf3nrir.js +48 -0
- package/dist/assets/session-5TSm9LWM.js +1 -0
- package/dist/assets/setup-Ct1D13HF.js +19 -0
- package/dist/assets/{shorten-label-leEX0OpC.js → shorten-label-DN0jrUac.js} +1 -1
- package/dist/assets/{simple-select-DInqAkp_.js → simple-select-DqaWmnN5.js} +1 -1
- package/dist/assets/{slicedToArray-CMlWE9Kb.js → slicedToArray-BS60JB66.js} +2 -2
- package/dist/assets/spaces-CjgOPbG0.js +1 -0
- package/dist/assets/start-BUk3sbrk.js +187 -0
- package/dist/assets/step-actions-BPWhLbiR.js +31 -0
- package/dist/assets/studio-CW5QJoGv.js +6 -0
- package/dist/assets/switch-control-Cnbl4Wu3.js +13 -0
- package/dist/assets/th-G7hcFvcB.js +1 -0
- package/dist/assets/{toUpper-BN2pcj3y.js → toUpper-CFi1Iac7.js} +1 -1
- package/dist/assets/transfer-Bx_nNEq4.js +16 -0
- package/dist/assets/trim-CHiTHOIA.js +1 -0
- package/dist/assets/{uniqBy-DL1zbncl.js → uniqBy-BjgLQRCz.js} +1 -1
- package/dist/assets/{unsubscribe-Bx_0kT2c.js → unsubscribe-k6GIH3_j.js} +1 -1
- package/dist/assets/{url-join-DIhZFaTI.js → url-join-UZSSoHtH.js} +1 -1
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-hKOuN39m.js +1 -0
- package/dist/assets/use-mobile-BTgMVFAs.js +1 -0
- package/dist/assets/use-mobile-C1IcwqDn.js +1 -0
- package/dist/assets/{useAsync-clvYxRH3.js → useAsync-D_MoHBEg.js} +1 -1
- package/dist/assets/{useFormControl-cUTo7137.js → useFormControl-CZU39P72.js} +1 -1
- package/dist/assets/{useLocalStorage-vovxXSOl.js → useLocalStorage-DoUDAxJV.js} +1 -1
- package/dist/assets/{useSetState-Bcpwt_WC.js → useSetState-l_4RfoXS.js} +1 -1
- package/dist/assets/useSlot-CHjJ1PGq.js +1 -0
- package/dist/assets/{useSlotProps-BKfmEJpm.js → useSlotProps-DCQA4xi9.js} +1 -1
- package/dist/assets/useThemeProps-BuwBKLg_.js +1 -0
- package/dist/assets/user-center-C-BWN4ab.js +1 -0
- package/dist/assets/{user-sessions-hVZB4oee.js → user-sessions-zHLfn0TD.js} +1 -1
- package/dist/assets/{util-vL8zU5OD.js → util-DvRWTmoo.js} +1 -1
- package/dist/assets/vi-DwM1n61y.js +1 -0
- package/dist/assets/{wrap-locale-DfIs9PFE.js → wrap-locale-D0E4_sSR.js} +1 -1
- package/dist/assets/zh-4Fb8w10J.js +1 -0
- package/dist/assets/zh-tw-BMZcmOgr.js +1 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +37 -38
- package/dist/assets/Alert-DsAFGE4O.js +0 -1
- package/dist/assets/Avatar-cHoH5Gcs.js +0 -1
- package/dist/assets/CloseOutlined-g2NMRZze.js +0 -1
- package/dist/assets/Delete-3sftcVmc.js +0 -1
- package/dist/assets/FormControl-Bzepy6Yn.js +0 -1
- package/dist/assets/FormGroup-Dfsxsxnm.js +0 -1
- package/dist/assets/Hidden-B_94bAwy.js +0 -1
- package/dist/assets/Stack-_YfLIpxv.js +0 -1
- package/dist/assets/access-control-BzGDM72k.js +0 -13
- package/dist/assets/actions-BI7yMXK2.js +0 -1
- package/dist/assets/add-resource-BfHXR_Y_.js +0 -1
- package/dist/assets/addon-BwD2KOqI.js +0 -31
- package/dist/assets/api-Cg7ahL5P.js +0 -1
- package/dist/assets/ar-DulOB4u4.js +0 -1
- package/dist/assets/audit-logs-Dkin1KDM.js +0 -58
- package/dist/assets/branding-Cl9GX76R.js +0 -37
- package/dist/assets/bundle-avatar-CFbWkja3.js +0 -1
- package/dist/assets/config-navigation-B7PM-EGI.js +0 -25
- package/dist/assets/confirm-D0pWA67W.js +0 -7
- package/dist/assets/connect-Cdtb7SHw.js +0 -1
- package/dist/assets/connect-Tlrdq51n.js +0 -5
- package/dist/assets/connect-to-BI3qeY9E.js +0 -54
- package/dist/assets/de-8sK7C5VE.js +0 -1
- package/dist/assets/domain-2MsVV8_b.js +0 -9
- package/dist/assets/domain-list-D4PDGQMX.js +0 -15
- package/dist/assets/emotion-cache.browser.esm-CFmFGVO5.js +0 -1
- package/dist/assets/es-BhEAJBNj.js +0 -1
- package/dist/assets/exchange-passport-PFJEY5oF.js +0 -1
- package/dist/assets/fr-DYb1HdQN.js +0 -1
- package/dist/assets/fuel-BRC6ySM4.js +0 -32
- package/dist/assets/hi-DeSTVDJm.js +0 -1
- package/dist/assets/id-B-ianq_P.js +0 -1
- package/dist/assets/index-1pd_yDXe.js +0 -11
- package/dist/assets/index-BEt0dM-9.js +0 -563
- package/dist/assets/index-BV12QEMX.js +0 -1
- package/dist/assets/index-CHOjWhIO.js +0 -4
- package/dist/assets/index-CbtulDW6.js +0 -1
- package/dist/assets/index-Cert8PMw.js +0 -1
- package/dist/assets/index-CmjfXrfq.js +0 -1
- package/dist/assets/index-uGwRXs0w.js +0 -22
- package/dist/assets/invite-B3LCoC_0.js +0 -5
- package/dist/assets/ja-cd0ntUSZ.js +0 -1
- package/dist/assets/ko-10uIwv6V.js +0 -1
- package/dist/assets/list-header-BlJseGfe.js +0 -57
- package/dist/assets/localization-C4vP52vp.js +0 -1
- package/dist/assets/lodash-CmCPMfEh.js +0 -27
- package/dist/assets/login-oauth-callback-0EjAb9S0.js +0 -1
- package/dist/assets/logo-uploader-CtnbwpWA.js +0 -133
- package/dist/assets/notifications-BTr0jDCz.js +0 -65
- package/dist/assets/overview-Cgav-29-.js +0 -12
- package/dist/assets/page-header-B2iI665X.js +0 -31
- package/dist/assets/pt-BLq3lFAs.js +0 -1
- package/dist/assets/publish-resource-BwfmZpal.js +0 -1
- package/dist/assets/refType-C9dfEo74.js +0 -1
- package/dist/assets/resource-dialog-C_YfBcxl.js +0 -4
- package/dist/assets/ru-ClzjSM6D.js +0 -1
- package/dist/assets/sdk--rGP8Wie.js +0 -1
- package/dist/assets/selector-BQdiIKcX.js +0 -48
- package/dist/assets/session-BhA7xYeK.js +0 -1
- package/dist/assets/setup-DdL2aJKn.js +0 -19
- package/dist/assets/spaces-DqylVolU.js +0 -1
- package/dist/assets/start-xeWBZiEu.js +0 -187
- package/dist/assets/step-actions-BnvHdZWg.js +0 -31
- package/dist/assets/studio-CfUa1OMb.js +0 -6
- package/dist/assets/switch-control-DwJl6NzU.js +0 -13
- package/dist/assets/th-PReNX1Xn.js +0 -1
- package/dist/assets/transfer-DnYlCSpz.js +0 -16
- package/dist/assets/trim-B9XGsPSj.js +0 -1
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-Bhk5PbPV.js +0 -1
- package/dist/assets/use-mobile-C8a-WvbB.js +0 -1
- package/dist/assets/useSlot-Bgf6_F9a.js +0 -1
- package/dist/assets/useThemeProps-vkOLleXs.js +0 -1
- package/dist/assets/user-center-B0SlHHaj.js +0 -1
- package/dist/assets/vi-noed91sz.js +0 -1
- package/dist/assets/zh-BperuRxy.js +0 -1
- package/dist/assets/zh-tw-B7-6_fNO.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-DvR8ldSJ.js","assets/use-passport-id-B-b-_oYF.js","assets/LaunchOutlined-C6MUvhkl.js","assets/login-oauth-callback-C6I5hp6o.js","assets/fallback-DtXRUNR6.js","assets/Alert-ClGA4UON.js","assets/useSlot-CHjJ1PGq.js","assets/connect-6xrInacS.js","assets/index-gZFJJRf-.js","assets/fullpage-CKQTBOZk.js","assets/Link-t0X_2s8f.js","assets/exchange-passport-CnSh9yXL.js","assets/wrap-locale-D0E4_sSR.js","assets/issue-passport-C9U5xfNL.js","assets/invitation-BuZJIYwW.js","assets/index-CJ5QOKhK.js","assets/emotion-cache.browser.esm-DWAkeLNM.js","assets/index-o33Ww9sw.js","assets/session-5TSm9LWM.js","assets/sdk-DponvxD9.js","assets/CheckCircle-C-BzX2wx.js","assets/lost-passport-CSsACZsq.js","assets/ViewList-B4FFgNBd.js","assets/Done-CKRWemQO.js","assets/did-address-CM_8YqbE.js","assets/Avatar-DyK43nCT.js","assets/Stepper-D8zaVBG6.js","assets/start-BUk3sbrk.js","assets/PlayArrow-DC_oyUb1.js","assets/Error-Dln9la_X.js","assets/ServerLogo-B27SaIJw.js","assets/addon-DLwkn9N6.js","assets/selector-CFf3nrir.js","assets/QuestionMarkCircle-C8r6Lbfw.js","assets/setup-Ct1D13HF.js","assets/index-DaPfZep1.js","assets/spaces-CjgOPbG0.js","assets/api-J-ppmLLo.js","assets/url-join-UZSSoHtH.js","assets/Skeleton-B-YzpOQg.js","assets/Hidden-vR0aN6pm.js","assets/invite-1m2hy3gm.js","assets/transfer-Bx_nNEq4.js","assets/dashboard-BijWBRYU.js","assets/index-SC5yW-Mc.js","assets/useLocalStorage-DoUDAxJV.js","assets/MoreVert-Dy3B-4PZ.js","assets/FormControlLabel-DoWNBwBW.js","assets/useFormControl-CZU39P72.js","assets/Stack-RoMZEEMb.js","assets/confirm-Ddpyr19d.js","assets/DialogContentText-BAHpbVEb.js","assets/format-error-BXpFpsa-.js","assets/Delete-4PM7zdFM.js","assets/ButtonGroup-DaL5PyR4.js","assets/RadioGroup-MJhlZ4ZH.js","assets/FormGroup-QLbY_ga6.js","assets/permission-sAUmNkv7.js","assets/useAsync-D_MoHBEg.js","assets/index-4Vv_xV1i.js","assets/useSetState-l_4RfoXS.js","assets/index-Hnm-O5Pq.js","assets/Menu-D_GBf1CB.js","assets/Toolbar-CZhQZvMx.js","assets/index-Ca4BjHEM.js","assets/ListItemButton-BeEwzuuE.js","assets/deprecate-D8ZVXehA.js","assets/user-center-C-BWN4ab.js","assets/index-CrRL_dto.js","assets/ExpandMore-CtG_bAfW.js","assets/resource-dialog-BBl_2osk.js","assets/index-CN4Xbxs7.js","assets/OpenInNew-sKjipJwH.js","assets/HelpOutline-Dl-B0PLa.js","assets/index-D7yWEAeI.js","assets/TextField-OMWgqDee.js","assets/FormControl-BL0Z1NSB.js","assets/Select-Bjc5h4TG.js","assets/index-DYz2g4w3.js","assets/user-sessions-zHLfn0TD.js","assets/index-DNivnwSJ.js","assets/useThemeProps-BuwBKLg_.js","assets/toPropertyKey-PLuKRk1e.js","assets/index-B463Qwek.js","assets/redux-CluOqhW1.js","assets/ViewColumn-CWRGm9xJ.js","assets/Grid-CK8YVFLA.js","assets/LastPage-DGe9hoEM.js","assets/Search-CefeP42d.js","assets/uniqBy-BjgLQRCz.js","assets/index-C3SoKjGs.js","assets/InputAdornment-DZGc8E9Q.js","assets/use-mobile-C1IcwqDn.js","assets/home-CcjOthQO.js","assets/studio-CW5QJoGv.js","assets/preferences-BPOKtF4g.js","assets/iframe-DRVFH0tr.js","assets/branding-D-eSt-2j.js","assets/DeleteOutline-23K5_ksg.js","assets/react-beautiful-dnd.esm-BJ9lX_Fr.js","assets/raf-schd.esm-W-ZrlqpH.js","assets/localization-Duro2u0E.js","assets/add-resource-RNKWAHa3.js","assets/add-component-core-BMEBzsmZ.js","assets/item-CjjCUl_D.js","assets/Add-C5wKbObL.js","assets/Launch-BpxAI4bs.js","assets/click-to-copy-CQnFaSnp.js","assets/shorten-label-DN0jrUac.js","assets/jss-plugin-props-sort.esm-cqAVaHSM.js","assets/launch-result-message-Qy-17kk4.js","assets/Close-da9E5C6C.js","assets/page-header-CA8Xsarf.js","assets/logo-uploader-lnCRmGXJ.js","assets/index-DyVo1ugh.js","assets/index-Dc2ybf4C.js","assets/Google-BvcdqOgK.js","assets/index-CPpIB55-.js","assets/index-D4PP6P2d.css","assets/index-DZ8uRrow.js","assets/index-D9Zhhq53.js","assets/Autocomplete-BM34aepT.js","assets/ListSubheader-CinvXrOQ.js","assets/util-DvRWTmoo.js","assets/use-mobile-BTgMVFAs.js","assets/content-layout-BBKVUucZ.js","assets/connect-to-qDn2VlTy.js","assets/use-blocklet-info-for-connect-did-spaces-hKOuN39m.js","assets/ArrowDropDown-CK-CyRRv.js","assets/ChevronLeft-DdnDWw3p.js","assets/ChevronRight-B_bmxWe_.js","assets/add-component-core-D-IRi6XF.css","assets/publish-resource-VECs77eT.js","assets/index-Cfu_bVRF.js","assets/bundle-avatar-Co5kQjOo.js","assets/Download-B85Kmt1U.js","assets/index-CjgG9Mbh.js","assets/useSlotProps-DCQA4xi9.js","assets/purify.es-Bq0E5Q3l.js","assets/index-C97ospTS.js","assets/email-DxESpXcD.js","assets/trim-CHiTHOIA.js","assets/isEmail-BAm7AH0D.js","assets/MarkEmailRead-CwoBeL2i.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var lo=a=>{throw TypeError(a)};var to=(a,j,_e)=>j.has(a)||lo("Cannot "+_e);var xr=(a,j,_e)=>(to(a,j,"read from private field"),_e?_e.call(a):j.get(a)),Xr=(a,j,_e)=>j.has(a)?lo("Cannot add the same private member more than once"):j instanceof WeakSet?j.add(a):j.set(a,_e),Wr=(a,j,_e,et)=>(to(a,j,"write to private field"),et?et.call(a,_e):j.set(a,_e),_e),Br=(a,j,_e)=>(to(a,j,"access private method"),_e);var no=(a,j,_e,et)=>({set _(nt){Wr(a,j,nt,_e)},get _(){return xr(a,j,et)}});function _mergeNamespaces(a,j){for(var _e=0;_e<j.length;_e++){const et=j[_e];if(typeof et!="string"&&!Array.isArray(et)){for(const nt in et)if(nt!=="default"&&!(nt in a)){const tt=Object.getOwnPropertyDescriptor(et,nt);tt&&Object.defineProperty(a,nt,tt.get?tt:{enumerable:!0,get:()=>et[nt]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const j=document.createElement("link").relList;if(j&&j.supports&&j.supports("modulepreload"))return;for(const nt of document.querySelectorAll('link[rel="modulepreload"]'))et(nt);new MutationObserver(nt=>{for(const tt of nt)if(tt.type==="childList")for(const ot of tt.addedNodes)ot.tagName==="LINK"&&ot.rel==="modulepreload"&&et(ot)}).observe(document,{childList:!0,subtree:!0});function _e(nt){const tt={};return nt.integrity&&(tt.integrity=nt.integrity),nt.referrerPolicy&&(tt.referrerPolicy=nt.referrerPolicy),nt.crossOrigin==="use-credentials"?tt.credentials="include":nt.crossOrigin==="anonymous"?tt.credentials="omit":tt.credentials="same-origin",tt}function et(nt){if(nt.ep)return;nt.ep=!0;const tt=_e(nt);fetch(nt.href,tt)}})();const scriptRel="modulepreload",assetsURL=function(a){return"/.well-known/service/static/"+a},seen={},__vitePreload=function(j,_e,et){let nt=Promise.resolve();if(_e&&_e.length>0){document.getElementsByTagName("link");const tt=document.querySelector("meta[property=csp-nonce]"),ot=(tt==null?void 0:tt.nonce)||(tt==null?void 0:tt.getAttribute("nonce"));nt=Promise.allSettled(_e.map(ct=>{if(ct=assetsURL(ct),ct in seen)return;seen[ct]=!0;const ft=ct.endsWith(".css"),ht=ft?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${ct}"]${ht}`))return;const dt=document.createElement("link");if(dt.rel=ft?"stylesheet":scriptRel,ft||(dt.as="script"),dt.crossOrigin="",dt.href=ct,ot&&dt.setAttribute("nonce",ot),document.head.appendChild(dt),ft)return new Promise((yt,Tt)=>{dt.addEventListener("load",yt),dt.addEventListener("error",()=>Tt(new Error(`Unable to preload CSS for ${ct}`)))})}))}return nt.then(tt=>{for(const ot of tt||[]){if(ot.status!=="rejected")continue;const ct=new Event("vite:preloadError",{cancelable:!0});if(ct.payload=ot.reason,window.dispatchEvent(ct),!ct.defaultPrevented)throw ot.reason}return j()})};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function getAugmentedNamespace(a){if(a.__esModule)return a;var j=a.default;if(typeof j=="function"){var _e=function et(){return this instanceof et?Reflect.construct(j,arguments,this.constructor):j.apply(this,arguments)};_e.prototype=j.prototype}else _e={};return Object.defineProperty(_e,"__esModule",{value:!0}),Object.keys(a).forEach(function(et){var nt=Object.getOwnPropertyDescriptor(a,et);Object.defineProperty(_e,et,nt.get?nt:{enumerable:!0,get:function(){return a[et]}})}),_e}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
@@ -35,7 +35,7 @@ var lo=a=>{throw TypeError(a)};var to=(a,j,_e)=>j.has(a)||lo("Cannot "+_e);var x
|
|
|
35
35
|
`+La+a}var Na=!1;function Oa(a,j){if(!a||Na)return"";Na=!0;var _e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(j)if(j=function(){throw Error()},Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(ht){var et=ht}Reflect.construct(a,[],j)}else{try{j.call()}catch(ht){et=ht}a.call(j.prototype)}else{try{throw Error()}catch(ht){et=ht}a()}}catch(ht){if(ht&&et&&typeof ht.stack=="string"){for(var nt=ht.stack.split(`
|
|
36
36
|
`),tt=et.stack.split(`
|
|
37
37
|
`),ot=nt.length-1,ct=tt.length-1;1<=ot&&0<=ct&&nt[ot]!==tt[ct];)ct--;for(;1<=ot&&0<=ct;ot--,ct--)if(nt[ot]!==tt[ct]){if(ot!==1||ct!==1)do if(ot--,ct--,0>ct||nt[ot]!==tt[ct]){var ft=`
|
|
38
|
-
`+nt[ot].replace(" at new "," at ");return a.displayName&&ft.includes("<anonymous>")&&(ft=ft.replace("<anonymous>",a.displayName)),ft}while(1<=ot&&0<=ct);break}}}finally{Na=!1,Error.prepareStackTrace=_e}return(a=a?a.displayName||a.name:"")?Ma(a):""}function Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return""}}function Qa(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case Ca:return(a.displayName||"Context")+".Consumer";case Ba:return(a._context.displayName||"Context")+".Provider";case Da:var j=a.render;return a=a.displayName,a||(a=j.displayName||j.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Ga:return j=a.displayName||null,j!==null?j:Qa(a.type)||"Memo";case Ha:j=a._payload,a=a._init;try{return Qa(a(j))}catch{}}return null}function Ra(a){var j=a.type;switch(a.tag){case 24:return"Cache";case 9:return(j.displayName||"Context")+".Consumer";case 10:return(j._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=j.render,a=a.displayName||a.name||"",j.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return j;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(j);case 8:return j===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof j=="function")return j.displayName||j.name||null;if(typeof j=="string")return j}return null}function Sa(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ta(a){var j=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(j==="checkbox"||j==="radio")}function Ua(a){var j=Ta(a)?"checked":"value",_e=Object.getOwnPropertyDescriptor(a.constructor.prototype,j),et=""+a[j];if(!a.hasOwnProperty(j)&&typeof _e<"u"&&typeof _e.get=="function"&&typeof _e.set=="function"){var nt=_e.get,tt=_e.set;return Object.defineProperty(a,j,{configurable:!0,get:function(){return nt.call(this)},set:function(ot){et=""+ot,tt.call(this,ot)}}),Object.defineProperty(a,j,{enumerable:_e.enumerable}),{getValue:function(){return et},setValue:function(ot){et=""+ot},stopTracking:function(){a._valueTracker=null,delete a[j]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var j=a._valueTracker;if(!j)return!0;var _e=j.getValue(),et="";return a&&(et=Ta(a)?a.checked?"true":"false":a.value),a=et,a!==_e?(j.setValue(a),!0):!1}function Xa(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Ya(a,j){var _e=j.checked;return A$1({},j,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:_e??a._wrapperState.initialChecked})}function Za(a,j){var _e=j.defaultValue==null?"":j.defaultValue,et=j.checked!=null?j.checked:j.defaultChecked;_e=Sa(j.value!=null?j.value:_e),a._wrapperState={initialChecked:et,initialValue:_e,controlled:j.type==="checkbox"||j.type==="radio"?j.checked!=null:j.value!=null}}function ab(a,j){j=j.checked,j!=null&&ta(a,"checked",j,!1)}function bb(a,j){ab(a,j);var _e=Sa(j.value),et=j.type;if(_e!=null)et==="number"?(_e===0&&a.value===""||a.value!=_e)&&(a.value=""+_e):a.value!==""+_e&&(a.value=""+_e);else if(et==="submit"||et==="reset"){a.removeAttribute("value");return}j.hasOwnProperty("value")?cb(a,j.type,_e):j.hasOwnProperty("defaultValue")&&cb(a,j.type,Sa(j.defaultValue)),j.checked==null&&j.defaultChecked!=null&&(a.defaultChecked=!!j.defaultChecked)}function db(a,j,_e){if(j.hasOwnProperty("value")||j.hasOwnProperty("defaultValue")){var et=j.type;if(!(et!=="submit"&&et!=="reset"||j.value!==void 0&&j.value!==null))return;j=""+a._wrapperState.initialValue,_e||j===a.value||(a.value=j),a.defaultValue=j}_e=a.name,_e!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,_e!==""&&(a.name=_e)}function cb(a,j,_e){(j!=="number"||Xa(a.ownerDocument)!==a)&&(_e==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+_e&&(a.defaultValue=""+_e))}var eb=Array.isArray;function fb(a,j,_e,et){if(a=a.options,j){j={};for(var nt=0;nt<_e.length;nt++)j["$"+_e[nt]]=!0;for(_e=0;_e<a.length;_e++)nt=j.hasOwnProperty("$"+a[_e].value),a[_e].selected!==nt&&(a[_e].selected=nt),nt&&et&&(a[_e].defaultSelected=!0)}else{for(_e=""+Sa(_e),j=null,nt=0;nt<a.length;nt++){if(a[nt].value===_e){a[nt].selected=!0,et&&(a[nt].defaultSelected=!0);return}j!==null||a[nt].disabled||(j=a[nt])}j!==null&&(j.selected=!0)}}function gb(a,j){if(j.dangerouslySetInnerHTML!=null)throw Error(p$2(91));return A$1({},j,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function hb(a,j){var _e=j.value;if(_e==null){if(_e=j.children,j=j.defaultValue,_e!=null){if(j!=null)throw Error(p$2(92));if(eb(_e)){if(1<_e.length)throw Error(p$2(93));_e=_e[0]}j=_e}j==null&&(j=""),_e=j}a._wrapperState={initialValue:Sa(_e)}}function ib(a,j){var _e=Sa(j.value),et=Sa(j.defaultValue);_e!=null&&(_e=""+_e,_e!==a.value&&(a.value=_e),j.defaultValue==null&&a.defaultValue!==_e&&(a.defaultValue=_e)),et!=null&&(a.defaultValue=""+et)}function jb(a){var j=a.textContent;j===a._wrapperState.initialValue&&j!==""&&j!==null&&(a.value=j)}function kb(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lb(a,j){return a==null||a==="http://www.w3.org/1999/xhtml"?kb(j):a==="http://www.w3.org/2000/svg"&&j==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var mb,nb=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(j,_e,et,nt){MSApp.execUnsafeLocalFunction(function(){return a(j,_e,et,nt)})}:a}(function(a,j){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=j;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+j.valueOf().toString()+"</svg>",j=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;j.firstChild;)a.appendChild(j.firstChild)}});function ob(a,j){if(j){var _e=a.firstChild;if(_e&&_e===a.lastChild&&_e.nodeType===3){_e.nodeValue=j;return}}a.textContent=j}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(a){qb.forEach(function(j){j=j+a.charAt(0).toUpperCase()+a.substring(1),pb[j]=pb[a]})});function rb(a,j,_e){return j==null||typeof j=="boolean"||j===""?"":_e||typeof j!="number"||j===0||pb.hasOwnProperty(a)&&pb[a]?(""+j).trim():j+"px"}function sb(a,j){a=a.style;for(var _e in j)if(j.hasOwnProperty(_e)){var et=_e.indexOf("--")===0,nt=rb(_e,j[_e],et);_e==="float"&&(_e="cssFloat"),et?a.setProperty(_e,nt):a[_e]=nt}}var tb=A$1({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(a,j){if(j){if(tb[a]&&(j.children!=null||j.dangerouslySetInnerHTML!=null))throw Error(p$2(137,a));if(j.dangerouslySetInnerHTML!=null){if(j.children!=null)throw Error(p$2(60));if(typeof j.dangerouslySetInnerHTML!="object"||!("__html"in j.dangerouslySetInnerHTML))throw Error(p$2(61))}if(j.style!=null&&typeof j.style!="object")throw Error(p$2(62))}}function vb(a,j){if(a.indexOf("-")===-1)return typeof j.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var yb=null,zb=null,Ab=null;function Bb(a){if(a=Cb(a)){if(typeof yb!="function")throw Error(p$2(280));var j=a.stateNode;j&&(j=Db(j),yb(a.stateNode,a.type,j))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,j=Ab;if(Ab=zb=null,Bb(a),j)for(a=0;a<j.length;a++)Bb(j[a])}}function Gb(a,j){return a(j)}function Hb(){}var Ib=!1;function Jb(a,j,_e){if(Ib)return a(j,_e);Ib=!0;try{return Gb(a,j,_e)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(a,j){var _e=a.stateNode;if(_e===null)return null;var et=Db(_e);if(et===null)return null;_e=et[j];e:switch(j){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(et=!et.disabled)||(a=a.type,et=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!et;break e;default:a=!1}if(a)return null;if(_e&&typeof _e!="function")throw Error(p$2(231,j,typeof _e));return _e}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb(a,j,_e,et,nt,tt,ot,ct,ft){var ht=Array.prototype.slice.call(arguments,3);try{j.apply(_e,ht)}catch(dt){this.onError(dt)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(a){Ob=!0,Pb=a}};function Tb(a,j,_e,et,nt,tt,ot,ct,ft){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(a,j,_e,et,nt,tt,ot,ct,ft){if(Tb.apply(this,arguments),Ob){if(Ob){var ht=Pb;Ob=!1,Pb=null}else throw Error(p$2(198));Qb||(Qb=!0,Rb=ht)}}function Vb(a){var j=a,_e=a;if(a.alternate)for(;j.return;)j=j.return;else{a=j;do j=a,j.flags&4098&&(_e=j.return),a=j.return;while(a)}return j.tag===3?_e:null}function Wb(a){if(a.tag===13){var j=a.memoizedState;if(j===null&&(a=a.alternate,a!==null&&(j=a.memoizedState)),j!==null)return j.dehydrated}return null}function Xb(a){if(Vb(a)!==a)throw Error(p$2(188))}function Yb(a){var j=a.alternate;if(!j){if(j=Vb(a),j===null)throw Error(p$2(188));return j!==a?null:a}for(var _e=a,et=j;;){var nt=_e.return;if(nt===null)break;var tt=nt.alternate;if(tt===null){if(et=nt.return,et!==null){_e=et;continue}break}if(nt.child===tt.child){for(tt=nt.child;tt;){if(tt===_e)return Xb(nt),a;if(tt===et)return Xb(nt),j;tt=tt.sibling}throw Error(p$2(188))}if(_e.return!==et.return)_e=nt,et=tt;else{for(var ot=!1,ct=nt.child;ct;){if(ct===_e){ot=!0,_e=nt,et=tt;break}if(ct===et){ot=!0,et=nt,_e=tt;break}ct=ct.sibling}if(!ot){for(ct=tt.child;ct;){if(ct===_e){ot=!0,_e=tt,et=nt;break}if(ct===et){ot=!0,et=tt,_e=nt;break}ct=ct.sibling}if(!ot)throw Error(p$2(189))}}if(_e.alternate!==et)throw Error(p$2(190))}if(_e.tag!==3)throw Error(p$2(188));return _e.stateNode.current===_e?a:j}function Zb(a){return a=Yb(a),a!==null?$b(a):null}function $b(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var j=$b(a);if(j!==null)return j;a=a.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec$1=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(a){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,a,void 0,(a.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(a){return a>>>=0,a===0?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;function tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function uc(a,j){var _e=a.pendingLanes;if(_e===0)return 0;var et=0,nt=a.suspendedLanes,tt=a.pingedLanes,ot=_e&268435455;if(ot!==0){var ct=ot&~nt;ct!==0?et=tc(ct):(tt&=ot,tt!==0&&(et=tc(tt)))}else ot=_e&~nt,ot!==0?et=tc(ot):tt!==0&&(et=tc(tt));if(et===0)return 0;if(j!==0&&j!==et&&!(j&nt)&&(nt=et&-et,tt=j&-j,nt>=tt||nt===16&&(tt&4194240)!==0))return j;if(et&4&&(et|=_e&16),j=a.entangledLanes,j!==0)for(a=a.entanglements,j&=et;0<j;)_e=31-oc(j),nt=1<<_e,et|=a[_e],j&=~nt;return et}function vc(a,j){switch(a){case 1:case 2:case 4:return j+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return j+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wc(a,j){for(var _e=a.suspendedLanes,et=a.pingedLanes,nt=a.expirationTimes,tt=a.pendingLanes;0<tt;){var ot=31-oc(tt),ct=1<<ot,ft=nt[ot];ft===-1?(!(ct&_e)||ct&et)&&(nt[ot]=vc(ct,j)):ft<=j&&(a.expiredLanes|=ct),tt&=~ct}}function xc(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function yc(){var a=rc;return rc<<=1,!(rc&4194240)&&(rc=64),a}function zc(a){for(var j=[],_e=0;31>_e;_e++)j.push(a);return j}function Ac(a,j,_e){a.pendingLanes|=j,j!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,j=31-oc(j),a[j]=_e}function Bc(a,j){var _e=a.pendingLanes&~j;a.pendingLanes=j,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=j,a.mutableReadLanes&=j,a.entangledLanes&=j,j=a.entanglements;var et=a.eventTimes;for(a=a.expirationTimes;0<_e;){var nt=31-oc(_e),tt=1<<nt;j[nt]=0,et[nt]=-1,a[nt]=-1,_e&=~tt}}function Cc(a,j){var _e=a.entangledLanes|=j;for(a=a.entanglements;_e;){var et=31-oc(_e),nt=1<<et;nt&j|a[et]&j&&(a[et]|=j),_e&=~nt}}var C=0;function Dc(a){return a&=-a,1<a?4<a?a&268435455?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sc(a,j){switch(a){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(j.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(j.pointerId)}}function Tc(a,j,_e,et,nt,tt){return a===null||a.nativeEvent!==tt?(a={blockedOn:j,domEventName:_e,eventSystemFlags:et,nativeEvent:tt,targetContainers:[nt]},j!==null&&(j=Cb(j),j!==null&&Fc(j)),a):(a.eventSystemFlags|=et,j=a.targetContainers,nt!==null&&j.indexOf(nt)===-1&&j.push(nt),a)}function Uc(a,j,_e,et,nt){switch(j){case"focusin":return Lc=Tc(Lc,a,j,_e,et,nt),!0;case"dragenter":return Mc=Tc(Mc,a,j,_e,et,nt),!0;case"mouseover":return Nc=Tc(Nc,a,j,_e,et,nt),!0;case"pointerover":var tt=nt.pointerId;return Oc.set(tt,Tc(Oc.get(tt)||null,a,j,_e,et,nt)),!0;case"gotpointercapture":return tt=nt.pointerId,Pc.set(tt,Tc(Pc.get(tt)||null,a,j,_e,et,nt)),!0}return!1}function Vc(a){var j=Wc(a.target);if(j!==null){var _e=Vb(j);if(_e!==null){if(j=_e.tag,j===13){if(j=Wb(_e),j!==null){a.blockedOn=j,Ic(a.priority,function(){Gc(_e)});return}}else if(j===3&&_e.stateNode.current.memoizedState.isDehydrated){a.blockedOn=_e.tag===3?_e.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Xc(a){if(a.blockedOn!==null)return!1;for(var j=a.targetContainers;0<j.length;){var _e=Yc(a.domEventName,a.eventSystemFlags,j[0],a.nativeEvent);if(_e===null){_e=a.nativeEvent;var et=new _e.constructor(_e.type,_e);wb=et,_e.target.dispatchEvent(et),wb=null}else return j=Cb(_e),j!==null&&Fc(j),a.blockedOn=_e,!1;j.shift()}return!0}function Zc(a,j,_e){Xc(a)&&_e.delete(j)}function $c(){Jc=!1,Lc!==null&&Xc(Lc)&&(Lc=null),Mc!==null&&Xc(Mc)&&(Mc=null),Nc!==null&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(a,j){a.blockedOn===j&&(a.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(a){function j(nt){return ad(nt,a)}if(0<Kc.length){ad(Kc[0],a);for(var _e=1;_e<Kc.length;_e++){var et=Kc[_e];et.blockedOn===a&&(et.blockedOn=null)}}for(Lc!==null&&ad(Lc,a),Mc!==null&&ad(Mc,a),Nc!==null&&ad(Nc,a),Oc.forEach(j),Pc.forEach(j),_e=0;_e<Qc.length;_e++)et=Qc[_e],et.blockedOn===a&&(et.blockedOn=null);for(;0<Qc.length&&(_e=Qc[0],_e.blockedOn===null);)Vc(_e),_e.blockedOn===null&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(a,j,_e,et){var nt=C,tt=cd.transition;cd.transition=null;try{C=1,fd(a,j,_e,et)}finally{C=nt,cd.transition=tt}}function gd(a,j,_e,et){var nt=C,tt=cd.transition;cd.transition=null;try{C=4,fd(a,j,_e,et)}finally{C=nt,cd.transition=tt}}function fd(a,j,_e,et){if(dd){var nt=Yc(a,j,_e,et);if(nt===null)hd(a,j,et,id$2,_e),Sc(a,et);else if(Uc(nt,a,j,_e,et))et.stopPropagation();else if(Sc(a,et),j&4&&-1<Rc.indexOf(a)){for(;nt!==null;){var tt=Cb(nt);if(tt!==null&&Ec(tt),tt=Yc(a,j,_e,et),tt===null&&hd(a,j,et,id$2,_e),tt===nt)break;nt=tt}nt!==null&&et.stopPropagation()}else hd(a,j,et,null,_e)}}var id$2=null;function Yc(a,j,_e,et){if(id$2=null,a=xb(et),a=Wc(a),a!==null)if(j=Vb(a),j===null)a=null;else if(_e=j.tag,_e===13){if(a=Wb(j),a!==null)return a;a=null}else if(_e===3){if(j.stateNode.current.memoizedState.isDehydrated)return j.tag===3?j.stateNode.containerInfo:null;a=null}else j!==a&&(a=null);return id$2=a,null}function jd(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ec$1()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var a,j=ld,_e=j.length,et,nt="value"in kd?kd.value:kd.textContent,tt=nt.length;for(a=0;a<_e&&j[a]===nt[a];a++);var ot=_e-a;for(et=1;et<=ot&&j[_e-et]===nt[tt-et];et++);return md=nt.slice(a,1<et?1-et:void 0)}function od(a){var j=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&j===13&&(a=13)):a=j,a===10&&(a=13),32<=a||a===13?a:0}function pd(){return!0}function qd(){return!1}function rd(a){function j(_e,et,nt,tt,ot){this._reactName=_e,this._targetInst=nt,this.type=et,this.nativeEvent=tt,this.target=ot,this.currentTarget=null;for(var ct in a)a.hasOwnProperty(ct)&&(_e=a[ct],this[ct]=_e?_e(tt):tt[ct]);return this.isDefaultPrevented=(tt.defaultPrevented!=null?tt.defaultPrevented:tt.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A$1(j.prototype,{preventDefault:function(){this.defaultPrevented=!0;var _e=this.nativeEvent;_e&&(_e.preventDefault?_e.preventDefault():typeof _e.returnValue!="unknown"&&(_e.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var _e=this.nativeEvent;_e&&(_e.stopPropagation?_e.stopPropagation():typeof _e.cancelBubble!="unknown"&&(_e.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),j}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A$1({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A$1({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==yd&&(yd&&a.type==="mousemove"?(wd=a.screenX-yd.screenX,xd=a.screenY-yd.screenY):xd=wd=0,yd=a),wd)},movementY:function(a){return"movementY"in a?a.movementY:xd}}),Bd=rd(Ad),Cd=A$1({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A$1({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A$1({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A$1({},sd,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A$1({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(a){var j=this.nativeEvent;return j.getModifierState?j.getModifierState(a):(a=Od[a])?!!j[a]:!1}function zd(){return Pd}var Qd=A$1({},ud,{key:function(a){if(a.key){var j=Md[a.key]||a.key;if(j!=="Unidentified")return j}return a.type==="keypress"?(a=od(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?Nd[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(a){return a.type==="keypress"?od(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?od(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Rd=rd(Qd),Sd=A$1({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A$1({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A$1({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A$1({},Ad,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&"CompositionEvent"in window,be=null;ia&&"documentMode"in document&&(be=document.documentMode);var ce=ia&&"TextEvent"in window&&!be,de=ia&&(!ae||be&&8<be&&11>=be),ee=" ",fe=!1;function ge(a,j){switch(a){case"keyup":return $d.indexOf(j.keyCode)!==-1;case"keydown":return j.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ie=!1;function je(a,j){switch(a){case"compositionend":return he(j);case"keypress":return j.which!==32?null:(fe=!0,ee);case"textInput":return a=j.data,a===ee&&fe?null:a;default:return null}}function ke(a,j){if(ie)return a==="compositionend"||!ae&&ge(a,j)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(j.ctrlKey||j.altKey||j.metaKey)||j.ctrlKey&&j.altKey){if(j.char&&1<j.char.length)return j.char;if(j.which)return String.fromCharCode(j.which)}return null;case"compositionend":return de&&j.locale!=="ko"?null:j.data;default:return null}}var le={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me(a){var j=a&&a.nodeName&&a.nodeName.toLowerCase();return j==="input"?!!le[a.type]:j==="textarea"}function ne(a,j,_e,et){Eb(et),j=oe(j,"onChange"),0<j.length&&(_e=new td("onChange","change",null,_e,et),a.push({event:_e,listeners:j}))}var pe=null,qe=null;function re$3(a){se(a,0)}function te(a){var j=ue(a);if(Wa(j))return a}function ve$1(a,j){if(a==="change")return j}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye=typeof ze.oninput=="function"}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent("onpropertychange",Be),qe=pe=null)}function Be(a){if(a.propertyName==="value"&&te(qe)){var j=[];ne(j,qe,a,xb(a)),Jb(re$3,j)}}function Ce(a,j,_e){a==="focusin"?(Ae(),pe=j,qe=_e,pe.attachEvent("onpropertychange",Be)):a==="focusout"&&Ae()}function De(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return te(qe)}function Ee(a,j){if(a==="click")return te(j)}function Fe(a,j){if(a==="input"||a==="change")return te(j)}function Ge(a,j){return a===j&&(a!==0||1/a===1/j)||a!==a&&j!==j}var He=typeof Object.is=="function"?Object.is:Ge;function Ie(a,j){if(He(a,j))return!0;if(typeof a!="object"||a===null||typeof j!="object"||j===null)return!1;var _e=Object.keys(a),et=Object.keys(j);if(_e.length!==et.length)return!1;for(et=0;et<_e.length;et++){var nt=_e[et];if(!ja.call(j,nt)||!He(a[nt],j[nt]))return!1}return!0}function Je(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Ke(a,j){var _e=Je(a);a=0;for(var et;_e;){if(_e.nodeType===3){if(et=a+_e.textContent.length,a<=j&&et>=j)return{node:_e,offset:j-a};a=et}e:{for(;_e;){if(_e.nextSibling){_e=_e.nextSibling;break e}_e=_e.parentNode}_e=void 0}_e=Je(_e)}}function Le(a,j){return a&&j?a===j?!0:a&&a.nodeType===3?!1:j&&j.nodeType===3?Le(a,j.parentNode):"contains"in a?a.contains(j):a.compareDocumentPosition?!!(a.compareDocumentPosition(j)&16):!1:!1}function Me(){for(var a=window,j=Xa();j instanceof a.HTMLIFrameElement;){try{var _e=typeof j.contentWindow.location.href=="string"}catch{_e=!1}if(_e)a=j.contentWindow;else break;j=Xa(a.document)}return j}function Ne(a){var j=a&&a.nodeName&&a.nodeName.toLowerCase();return j&&(j==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||j==="textarea"||a.contentEditable==="true")}function Oe(a){var j=Me(),_e=a.focusedElem,et=a.selectionRange;if(j!==_e&&_e&&_e.ownerDocument&&Le(_e.ownerDocument.documentElement,_e)){if(et!==null&&Ne(_e)){if(j=et.start,a=et.end,a===void 0&&(a=j),"selectionStart"in _e)_e.selectionStart=j,_e.selectionEnd=Math.min(a,_e.value.length);else if(a=(j=_e.ownerDocument||document)&&j.defaultView||window,a.getSelection){a=a.getSelection();var nt=_e.textContent.length,tt=Math.min(et.start,nt);et=et.end===void 0?tt:Math.min(et.end,nt),!a.extend&&tt>et&&(nt=et,et=tt,tt=nt),nt=Ke(_e,tt);var ot=Ke(_e,et);nt&&ot&&(a.rangeCount!==1||a.anchorNode!==nt.node||a.anchorOffset!==nt.offset||a.focusNode!==ot.node||a.focusOffset!==ot.offset)&&(j=j.createRange(),j.setStart(nt.node,nt.offset),a.removeAllRanges(),tt>et?(a.addRange(j),a.extend(ot.node,ot.offset)):(j.setEnd(ot.node,ot.offset),a.addRange(j)))}}for(j=[],a=_e;a=a.parentNode;)a.nodeType===1&&j.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof _e.focus=="function"&&_e.focus(),_e=0;_e<j.length;_e++)a=j[_e],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(a,j,_e){var et=_e.window===_e?_e.document:_e.nodeType===9?_e:_e.ownerDocument;Te||Qe==null||Qe!==Xa(et)||(et=Qe,"selectionStart"in et&&Ne(et)?et={start:et.selectionStart,end:et.selectionEnd}:(et=(et.ownerDocument&&et.ownerDocument.defaultView||window).getSelection(),et={anchorNode:et.anchorNode,anchorOffset:et.anchorOffset,focusNode:et.focusNode,focusOffset:et.focusOffset}),Se&&Ie(Se,et)||(Se=et,et=oe(Re,"onSelect"),0<et.length&&(j=new td("onSelect","select",null,j,_e),a.push({event:j,listeners:et}),j.target=Qe)))}function Ve(a,j){var _e={};return _e[a.toLowerCase()]=j.toLowerCase(),_e["Webkit"+a]="webkit"+j,_e["Moz"+a]="moz"+j,_e}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function Ze(a){if(Xe[a])return Xe[a];if(!We[a])return a;var j=We[a],_e;for(_e in j)if(j.hasOwnProperty(_e)&&_e in Ye)return Xe[a]=j[_e];return a}var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(a,j){df.set(a,j),fa(j,[a])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e,"onAnimationEnd");ff(af,"onAnimationIteration");ff(bf,"onAnimationStart");ff("dblclick","onDoubleClick");ff("focusin","onFocus");ff("focusout","onBlur");ff(cf,"onTransitionEnd");ha("onMouseEnter",["mouseout","mouseover"]);ha("onMouseLeave",["mouseout","mouseover"]);ha("onPointerEnter",["pointerout","pointerover"]);ha("onPointerLeave",["pointerout","pointerover"]);fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fa("onBeforeInput",["compositionend","keypress","textInput","paste"]);fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(a,j,_e){var et=a.type||"unknown-event";a.currentTarget=_e,Ub(et,j,void 0,a),a.currentTarget=null}function se(a,j){j=(j&4)!==0;for(var _e=0;_e<a.length;_e++){var et=a[_e],nt=et.event;et=et.listeners;e:{var tt=void 0;if(j)for(var ot=et.length-1;0<=ot;ot--){var ct=et[ot],ft=ct.instance,ht=ct.currentTarget;if(ct=ct.listener,ft!==tt&&nt.isPropagationStopped())break e;nf(nt,ct,ht),tt=ft}else for(ot=0;ot<et.length;ot++){if(ct=et[ot],ft=ct.instance,ht=ct.currentTarget,ct=ct.listener,ft!==tt&&nt.isPropagationStopped())break e;nf(nt,ct,ht),tt=ft}}}if(Qb)throw a=Rb,Qb=!1,Rb=null,a}function D(a,j){var _e=j[of];_e===void 0&&(_e=j[of]=new Set);var et=a+"__bubble";_e.has(et)||(pf(j,a,2,!1),_e.add(et))}function qf(a,j,_e){var et=0;j&&(et|=4),pf(_e,a,et,j)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(a){if(!a[rf]){a[rf]=!0,da.forEach(function(_e){_e!=="selectionchange"&&(mf.has(_e)||qf(_e,!1,a),qf(_e,!0,a))});var j=a.nodeType===9?a:a.ownerDocument;j===null||j[rf]||(j[rf]=!0,qf("selectionchange",!1,j))}}function pf(a,j,_e,et){switch(jd(j)){case 1:var nt=ed;break;case 4:nt=gd;break;default:nt=fd}_e=nt.bind(null,j,_e,a),nt=void 0,!Lb||j!=="touchstart"&&j!=="touchmove"&&j!=="wheel"||(nt=!0),et?nt!==void 0?a.addEventListener(j,_e,{capture:!0,passive:nt}):a.addEventListener(j,_e,!0):nt!==void 0?a.addEventListener(j,_e,{passive:nt}):a.addEventListener(j,_e,!1)}function hd(a,j,_e,et,nt){var tt=et;if(!(j&1)&&!(j&2)&&et!==null)e:for(;;){if(et===null)return;var ot=et.tag;if(ot===3||ot===4){var ct=et.stateNode.containerInfo;if(ct===nt||ct.nodeType===8&&ct.parentNode===nt)break;if(ot===4)for(ot=et.return;ot!==null;){var ft=ot.tag;if((ft===3||ft===4)&&(ft=ot.stateNode.containerInfo,ft===nt||ft.nodeType===8&&ft.parentNode===nt))return;ot=ot.return}for(;ct!==null;){if(ot=Wc(ct),ot===null)return;if(ft=ot.tag,ft===5||ft===6){et=tt=ot;continue e}ct=ct.parentNode}}et=et.return}Jb(function(){var ht=tt,dt=xb(_e),yt=[];e:{var Tt=df.get(a);if(Tt!==void 0){var St=td,At=a;switch(a){case"keypress":if(od(_e)===0)break e;case"keydown":case"keyup":St=Rd;break;case"focusin":At="focus",St=Fd;break;case"focusout":At="blur",St=Fd;break;case"beforeblur":case"afterblur":St=Fd;break;case"click":if(_e.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":St=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":St=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":St=Vd;break;case $e:case af:case bf:St=Hd;break;case cf:St=Xd;break;case"scroll":St=vd;break;case"wheel":St=Zd;break;case"copy":case"cut":case"paste":St=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":St=Td}var Rt=(j&4)!==0,It=!Rt&&a==="scroll",Ct=Rt?Tt!==null?Tt+"Capture":null:Tt;Rt=[];for(var kt=ht,Pt;kt!==null;){Pt=kt;var Bt=Pt.stateNode;if(Pt.tag===5&&Bt!==null&&(Pt=Bt,Ct!==null&&(Bt=Kb(kt,Ct),Bt!=null&&Rt.push(tf(kt,Bt,Pt)))),It)break;kt=kt.return}0<Rt.length&&(Tt=new St(Tt,At,null,_e,dt),yt.push({event:Tt,listeners:Rt}))}}if(!(j&7)){e:{if(Tt=a==="mouseover"||a==="pointerover",St=a==="mouseout"||a==="pointerout",Tt&&_e!==wb&&(At=_e.relatedTarget||_e.fromElement)&&(Wc(At)||At[uf]))break e;if((St||Tt)&&(Tt=dt.window===dt?dt:(Tt=dt.ownerDocument)?Tt.defaultView||Tt.parentWindow:window,St?(At=_e.relatedTarget||_e.toElement,St=ht,At=At?Wc(At):null,At!==null&&(It=Vb(At),At!==It||At.tag!==5&&At.tag!==6)&&(At=null)):(St=null,At=ht),St!==At)){if(Rt=Bd,Bt="onMouseLeave",Ct="onMouseEnter",kt="mouse",(a==="pointerout"||a==="pointerover")&&(Rt=Td,Bt="onPointerLeave",Ct="onPointerEnter",kt="pointer"),It=St==null?Tt:ue(St),Pt=At==null?Tt:ue(At),Tt=new Rt(Bt,kt+"leave",St,_e,dt),Tt.target=It,Tt.relatedTarget=Pt,Bt=null,Wc(dt)===ht&&(Rt=new Rt(Ct,kt+"enter",At,_e,dt),Rt.target=Pt,Rt.relatedTarget=It,Bt=Rt),It=Bt,St&&At)t:{for(Rt=St,Ct=At,kt=0,Pt=Rt;Pt;Pt=vf(Pt))kt++;for(Pt=0,Bt=Ct;Bt;Bt=vf(Bt))Pt++;for(;0<kt-Pt;)Rt=vf(Rt),kt--;for(;0<Pt-kt;)Ct=vf(Ct),Pt--;for(;kt--;){if(Rt===Ct||Ct!==null&&Rt===Ct.alternate)break t;Rt=vf(Rt),Ct=vf(Ct)}Rt=null}else Rt=null;St!==null&&wf(yt,Tt,St,Rt,!1),At!==null&&It!==null&&wf(yt,It,At,Rt,!0)}}e:{if(Tt=ht?ue(ht):window,St=Tt.nodeName&&Tt.nodeName.toLowerCase(),St==="select"||St==="input"&&Tt.type==="file")var Kt=ve$1;else if(me(Tt))if(we)Kt=Fe;else{Kt=De;var jt=Ce}else(St=Tt.nodeName)&&St.toLowerCase()==="input"&&(Tt.type==="checkbox"||Tt.type==="radio")&&(Kt=Ee);if(Kt&&(Kt=Kt(a,ht))){ne(yt,Kt,_e,dt);break e}jt&&jt(a,Tt,ht),a==="focusout"&&(jt=Tt._wrapperState)&&jt.controlled&&Tt.type==="number"&&cb(Tt,"number",Tt.value)}switch(jt=ht?ue(ht):window,a){case"focusin":(me(jt)||jt.contentEditable==="true")&&(Qe=jt,Re=ht,Se=null);break;case"focusout":Se=Re=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue(yt,_e,dt);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(yt,_e,dt)}var zt;if(ae)e:{switch(a){case"compositionstart":var Gt="onCompositionStart";break e;case"compositionend":Gt="onCompositionEnd";break e;case"compositionupdate":Gt="onCompositionUpdate";break e}Gt=void 0}else ie?ge(a,_e)&&(Gt="onCompositionEnd"):a==="keydown"&&_e.keyCode===229&&(Gt="onCompositionStart");Gt&&(de&&_e.locale!=="ko"&&(ie||Gt!=="onCompositionStart"?Gt==="onCompositionEnd"&&ie&&(zt=nd()):(kd=dt,ld="value"in kd?kd.value:kd.textContent,ie=!0)),jt=oe(ht,Gt),0<jt.length&&(Gt=new Ld(Gt,a,null,_e,dt),yt.push({event:Gt,listeners:jt}),zt?Gt.data=zt:(zt=he(_e),zt!==null&&(Gt.data=zt)))),(zt=ce?je(a,_e):ke(a,_e))&&(ht=oe(ht,"onBeforeInput"),0<ht.length&&(dt=new Ld("onBeforeInput","beforeinput",null,_e,dt),yt.push({event:dt,listeners:ht}),dt.data=zt))}se(yt,j)})}function tf(a,j,_e){return{instance:a,listener:j,currentTarget:_e}}function oe(a,j){for(var _e=j+"Capture",et=[];a!==null;){var nt=a,tt=nt.stateNode;nt.tag===5&&tt!==null&&(nt=tt,tt=Kb(a,_e),tt!=null&&et.unshift(tf(a,tt,nt)),tt=Kb(a,j),tt!=null&&et.push(tf(a,tt,nt))),a=a.return}return et}function vf(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function wf(a,j,_e,et,nt){for(var tt=j._reactName,ot=[];_e!==null&&_e!==et;){var ct=_e,ft=ct.alternate,ht=ct.stateNode;if(ft!==null&&ft===et)break;ct.tag===5&&ht!==null&&(ct=ht,nt?(ft=Kb(_e,tt),ft!=null&&ot.unshift(tf(_e,ft,ct))):nt||(ft=Kb(_e,tt),ft!=null&&ot.push(tf(_e,ft,ct)))),_e=_e.return}ot.length!==0&&a.push({event:j,listeners:ot})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(a){return(typeof a=="string"?a:""+a).replace(xf,`
|
|
38
|
+
`+nt[ot].replace(" at new "," at ");return a.displayName&&ft.includes("<anonymous>")&&(ft=ft.replace("<anonymous>",a.displayName)),ft}while(1<=ot&&0<=ct);break}}}finally{Na=!1,Error.prepareStackTrace=_e}return(a=a?a.displayName||a.name:"")?Ma(a):""}function Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return""}}function Qa(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case Ca:return(a.displayName||"Context")+".Consumer";case Ba:return(a._context.displayName||"Context")+".Provider";case Da:var j=a.render;return a=a.displayName,a||(a=j.displayName||j.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Ga:return j=a.displayName||null,j!==null?j:Qa(a.type)||"Memo";case Ha:j=a._payload,a=a._init;try{return Qa(a(j))}catch{}}return null}function Ra(a){var j=a.type;switch(a.tag){case 24:return"Cache";case 9:return(j.displayName||"Context")+".Consumer";case 10:return(j._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=j.render,a=a.displayName||a.name||"",j.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return j;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(j);case 8:return j===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof j=="function")return j.displayName||j.name||null;if(typeof j=="string")return j}return null}function Sa(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ta(a){var j=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(j==="checkbox"||j==="radio")}function Ua(a){var j=Ta(a)?"checked":"value",_e=Object.getOwnPropertyDescriptor(a.constructor.prototype,j),et=""+a[j];if(!a.hasOwnProperty(j)&&typeof _e<"u"&&typeof _e.get=="function"&&typeof _e.set=="function"){var nt=_e.get,tt=_e.set;return Object.defineProperty(a,j,{configurable:!0,get:function(){return nt.call(this)},set:function(ot){et=""+ot,tt.call(this,ot)}}),Object.defineProperty(a,j,{enumerable:_e.enumerable}),{getValue:function(){return et},setValue:function(ot){et=""+ot},stopTracking:function(){a._valueTracker=null,delete a[j]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var j=a._valueTracker;if(!j)return!0;var _e=j.getValue(),et="";return a&&(et=Ta(a)?a.checked?"true":"false":a.value),a=et,a!==_e?(j.setValue(a),!0):!1}function Xa(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Ya(a,j){var _e=j.checked;return A$1({},j,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:_e??a._wrapperState.initialChecked})}function Za(a,j){var _e=j.defaultValue==null?"":j.defaultValue,et=j.checked!=null?j.checked:j.defaultChecked;_e=Sa(j.value!=null?j.value:_e),a._wrapperState={initialChecked:et,initialValue:_e,controlled:j.type==="checkbox"||j.type==="radio"?j.checked!=null:j.value!=null}}function ab(a,j){j=j.checked,j!=null&&ta(a,"checked",j,!1)}function bb(a,j){ab(a,j);var _e=Sa(j.value),et=j.type;if(_e!=null)et==="number"?(_e===0&&a.value===""||a.value!=_e)&&(a.value=""+_e):a.value!==""+_e&&(a.value=""+_e);else if(et==="submit"||et==="reset"){a.removeAttribute("value");return}j.hasOwnProperty("value")?cb(a,j.type,_e):j.hasOwnProperty("defaultValue")&&cb(a,j.type,Sa(j.defaultValue)),j.checked==null&&j.defaultChecked!=null&&(a.defaultChecked=!!j.defaultChecked)}function db(a,j,_e){if(j.hasOwnProperty("value")||j.hasOwnProperty("defaultValue")){var et=j.type;if(!(et!=="submit"&&et!=="reset"||j.value!==void 0&&j.value!==null))return;j=""+a._wrapperState.initialValue,_e||j===a.value||(a.value=j),a.defaultValue=j}_e=a.name,_e!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,_e!==""&&(a.name=_e)}function cb(a,j,_e){(j!=="number"||Xa(a.ownerDocument)!==a)&&(_e==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+_e&&(a.defaultValue=""+_e))}var eb=Array.isArray;function fb(a,j,_e,et){if(a=a.options,j){j={};for(var nt=0;nt<_e.length;nt++)j["$"+_e[nt]]=!0;for(_e=0;_e<a.length;_e++)nt=j.hasOwnProperty("$"+a[_e].value),a[_e].selected!==nt&&(a[_e].selected=nt),nt&&et&&(a[_e].defaultSelected=!0)}else{for(_e=""+Sa(_e),j=null,nt=0;nt<a.length;nt++){if(a[nt].value===_e){a[nt].selected=!0,et&&(a[nt].defaultSelected=!0);return}j!==null||a[nt].disabled||(j=a[nt])}j!==null&&(j.selected=!0)}}function gb(a,j){if(j.dangerouslySetInnerHTML!=null)throw Error(p$2(91));return A$1({},j,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function hb(a,j){var _e=j.value;if(_e==null){if(_e=j.children,j=j.defaultValue,_e!=null){if(j!=null)throw Error(p$2(92));if(eb(_e)){if(1<_e.length)throw Error(p$2(93));_e=_e[0]}j=_e}j==null&&(j=""),_e=j}a._wrapperState={initialValue:Sa(_e)}}function ib(a,j){var _e=Sa(j.value),et=Sa(j.defaultValue);_e!=null&&(_e=""+_e,_e!==a.value&&(a.value=_e),j.defaultValue==null&&a.defaultValue!==_e&&(a.defaultValue=_e)),et!=null&&(a.defaultValue=""+et)}function jb(a){var j=a.textContent;j===a._wrapperState.initialValue&&j!==""&&j!==null&&(a.value=j)}function kb(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lb(a,j){return a==null||a==="http://www.w3.org/1999/xhtml"?kb(j):a==="http://www.w3.org/2000/svg"&&j==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var mb,nb=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(j,_e,et,nt){MSApp.execUnsafeLocalFunction(function(){return a(j,_e,et,nt)})}:a}(function(a,j){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=j;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+j.valueOf().toString()+"</svg>",j=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;j.firstChild;)a.appendChild(j.firstChild)}});function ob(a,j){if(j){var _e=a.firstChild;if(_e&&_e===a.lastChild&&_e.nodeType===3){_e.nodeValue=j;return}}a.textContent=j}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(a){qb.forEach(function(j){j=j+a.charAt(0).toUpperCase()+a.substring(1),pb[j]=pb[a]})});function rb(a,j,_e){return j==null||typeof j=="boolean"||j===""?"":_e||typeof j!="number"||j===0||pb.hasOwnProperty(a)&&pb[a]?(""+j).trim():j+"px"}function sb(a,j){a=a.style;for(var _e in j)if(j.hasOwnProperty(_e)){var et=_e.indexOf("--")===0,nt=rb(_e,j[_e],et);_e==="float"&&(_e="cssFloat"),et?a.setProperty(_e,nt):a[_e]=nt}}var tb=A$1({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(a,j){if(j){if(tb[a]&&(j.children!=null||j.dangerouslySetInnerHTML!=null))throw Error(p$2(137,a));if(j.dangerouslySetInnerHTML!=null){if(j.children!=null)throw Error(p$2(60));if(typeof j.dangerouslySetInnerHTML!="object"||!("__html"in j.dangerouslySetInnerHTML))throw Error(p$2(61))}if(j.style!=null&&typeof j.style!="object")throw Error(p$2(62))}}function vb(a,j){if(a.indexOf("-")===-1)return typeof j.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var yb=null,zb=null,Ab=null;function Bb(a){if(a=Cb(a)){if(typeof yb!="function")throw Error(p$2(280));var j=a.stateNode;j&&(j=Db(j),yb(a.stateNode,a.type,j))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,j=Ab;if(Ab=zb=null,Bb(a),j)for(a=0;a<j.length;a++)Bb(j[a])}}function Gb(a,j){return a(j)}function Hb(){}var Ib=!1;function Jb(a,j,_e){if(Ib)return a(j,_e);Ib=!0;try{return Gb(a,j,_e)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(a,j){var _e=a.stateNode;if(_e===null)return null;var et=Db(_e);if(et===null)return null;_e=et[j];e:switch(j){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(et=!et.disabled)||(a=a.type,et=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!et;break e;default:a=!1}if(a)return null;if(_e&&typeof _e!="function")throw Error(p$2(231,j,typeof _e));return _e}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb(a,j,_e,et,nt,tt,ot,ct,ft){var ht=Array.prototype.slice.call(arguments,3);try{j.apply(_e,ht)}catch(dt){this.onError(dt)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(a){Ob=!0,Pb=a}};function Tb(a,j,_e,et,nt,tt,ot,ct,ft){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(a,j,_e,et,nt,tt,ot,ct,ft){if(Tb.apply(this,arguments),Ob){if(Ob){var ht=Pb;Ob=!1,Pb=null}else throw Error(p$2(198));Qb||(Qb=!0,Rb=ht)}}function Vb(a){var j=a,_e=a;if(a.alternate)for(;j.return;)j=j.return;else{a=j;do j=a,j.flags&4098&&(_e=j.return),a=j.return;while(a)}return j.tag===3?_e:null}function Wb(a){if(a.tag===13){var j=a.memoizedState;if(j===null&&(a=a.alternate,a!==null&&(j=a.memoizedState)),j!==null)return j.dehydrated}return null}function Xb(a){if(Vb(a)!==a)throw Error(p$2(188))}function Yb(a){var j=a.alternate;if(!j){if(j=Vb(a),j===null)throw Error(p$2(188));return j!==a?null:a}for(var _e=a,et=j;;){var nt=_e.return;if(nt===null)break;var tt=nt.alternate;if(tt===null){if(et=nt.return,et!==null){_e=et;continue}break}if(nt.child===tt.child){for(tt=nt.child;tt;){if(tt===_e)return Xb(nt),a;if(tt===et)return Xb(nt),j;tt=tt.sibling}throw Error(p$2(188))}if(_e.return!==et.return)_e=nt,et=tt;else{for(var ot=!1,ct=nt.child;ct;){if(ct===_e){ot=!0,_e=nt,et=tt;break}if(ct===et){ot=!0,et=nt,_e=tt;break}ct=ct.sibling}if(!ot){for(ct=tt.child;ct;){if(ct===_e){ot=!0,_e=tt,et=nt;break}if(ct===et){ot=!0,et=tt,_e=nt;break}ct=ct.sibling}if(!ot)throw Error(p$2(189))}}if(_e.alternate!==et)throw Error(p$2(190))}if(_e.tag!==3)throw Error(p$2(188));return _e.stateNode.current===_e?a:j}function Zb(a){return a=Yb(a),a!==null?$b(a):null}function $b(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var j=$b(a);if(j!==null)return j;a=a.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec$1=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(a){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,a,void 0,(a.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(a){return a>>>=0,a===0?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;function tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function uc(a,j){var _e=a.pendingLanes;if(_e===0)return 0;var et=0,nt=a.suspendedLanes,tt=a.pingedLanes,ot=_e&268435455;if(ot!==0){var ct=ot&~nt;ct!==0?et=tc(ct):(tt&=ot,tt!==0&&(et=tc(tt)))}else ot=_e&~nt,ot!==0?et=tc(ot):tt!==0&&(et=tc(tt));if(et===0)return 0;if(j!==0&&j!==et&&!(j&nt)&&(nt=et&-et,tt=j&-j,nt>=tt||nt===16&&(tt&4194240)!==0))return j;if(et&4&&(et|=_e&16),j=a.entangledLanes,j!==0)for(a=a.entanglements,j&=et;0<j;)_e=31-oc(j),nt=1<<_e,et|=a[_e],j&=~nt;return et}function vc(a,j){switch(a){case 1:case 2:case 4:return j+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return j+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wc(a,j){for(var _e=a.suspendedLanes,et=a.pingedLanes,nt=a.expirationTimes,tt=a.pendingLanes;0<tt;){var ot=31-oc(tt),ct=1<<ot,ft=nt[ot];ft===-1?(!(ct&_e)||ct&et)&&(nt[ot]=vc(ct,j)):ft<=j&&(a.expiredLanes|=ct),tt&=~ct}}function xc(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function yc(){var a=rc;return rc<<=1,!(rc&4194240)&&(rc=64),a}function zc(a){for(var j=[],_e=0;31>_e;_e++)j.push(a);return j}function Ac(a,j,_e){a.pendingLanes|=j,j!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,j=31-oc(j),a[j]=_e}function Bc(a,j){var _e=a.pendingLanes&~j;a.pendingLanes=j,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=j,a.mutableReadLanes&=j,a.entangledLanes&=j,j=a.entanglements;var et=a.eventTimes;for(a=a.expirationTimes;0<_e;){var nt=31-oc(_e),tt=1<<nt;j[nt]=0,et[nt]=-1,a[nt]=-1,_e&=~tt}}function Cc(a,j){var _e=a.entangledLanes|=j;for(a=a.entanglements;_e;){var et=31-oc(_e),nt=1<<et;nt&j|a[et]&j&&(a[et]|=j),_e&=~nt}}var C=0;function Dc(a){return a&=-a,1<a?4<a?a&268435455?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sc(a,j){switch(a){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(j.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(j.pointerId)}}function Tc(a,j,_e,et,nt,tt){return a===null||a.nativeEvent!==tt?(a={blockedOn:j,domEventName:_e,eventSystemFlags:et,nativeEvent:tt,targetContainers:[nt]},j!==null&&(j=Cb(j),j!==null&&Fc(j)),a):(a.eventSystemFlags|=et,j=a.targetContainers,nt!==null&&j.indexOf(nt)===-1&&j.push(nt),a)}function Uc(a,j,_e,et,nt){switch(j){case"focusin":return Lc=Tc(Lc,a,j,_e,et,nt),!0;case"dragenter":return Mc=Tc(Mc,a,j,_e,et,nt),!0;case"mouseover":return Nc=Tc(Nc,a,j,_e,et,nt),!0;case"pointerover":var tt=nt.pointerId;return Oc.set(tt,Tc(Oc.get(tt)||null,a,j,_e,et,nt)),!0;case"gotpointercapture":return tt=nt.pointerId,Pc.set(tt,Tc(Pc.get(tt)||null,a,j,_e,et,nt)),!0}return!1}function Vc(a){var j=Wc(a.target);if(j!==null){var _e=Vb(j);if(_e!==null){if(j=_e.tag,j===13){if(j=Wb(_e),j!==null){a.blockedOn=j,Ic(a.priority,function(){Gc(_e)});return}}else if(j===3&&_e.stateNode.current.memoizedState.isDehydrated){a.blockedOn=_e.tag===3?_e.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Xc(a){if(a.blockedOn!==null)return!1;for(var j=a.targetContainers;0<j.length;){var _e=Yc(a.domEventName,a.eventSystemFlags,j[0],a.nativeEvent);if(_e===null){_e=a.nativeEvent;var et=new _e.constructor(_e.type,_e);wb=et,_e.target.dispatchEvent(et),wb=null}else return j=Cb(_e),j!==null&&Fc(j),a.blockedOn=_e,!1;j.shift()}return!0}function Zc(a,j,_e){Xc(a)&&_e.delete(j)}function $c(){Jc=!1,Lc!==null&&Xc(Lc)&&(Lc=null),Mc!==null&&Xc(Mc)&&(Mc=null),Nc!==null&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(a,j){a.blockedOn===j&&(a.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(a){function j(nt){return ad(nt,a)}if(0<Kc.length){ad(Kc[0],a);for(var _e=1;_e<Kc.length;_e++){var et=Kc[_e];et.blockedOn===a&&(et.blockedOn=null)}}for(Lc!==null&&ad(Lc,a),Mc!==null&&ad(Mc,a),Nc!==null&&ad(Nc,a),Oc.forEach(j),Pc.forEach(j),_e=0;_e<Qc.length;_e++)et=Qc[_e],et.blockedOn===a&&(et.blockedOn=null);for(;0<Qc.length&&(_e=Qc[0],_e.blockedOn===null);)Vc(_e),_e.blockedOn===null&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(a,j,_e,et){var nt=C,tt=cd.transition;cd.transition=null;try{C=1,fd(a,j,_e,et)}finally{C=nt,cd.transition=tt}}function gd(a,j,_e,et){var nt=C,tt=cd.transition;cd.transition=null;try{C=4,fd(a,j,_e,et)}finally{C=nt,cd.transition=tt}}function fd(a,j,_e,et){if(dd){var nt=Yc(a,j,_e,et);if(nt===null)hd(a,j,et,id$2,_e),Sc(a,et);else if(Uc(nt,a,j,_e,et))et.stopPropagation();else if(Sc(a,et),j&4&&-1<Rc.indexOf(a)){for(;nt!==null;){var tt=Cb(nt);if(tt!==null&&Ec(tt),tt=Yc(a,j,_e,et),tt===null&&hd(a,j,et,id$2,_e),tt===nt)break;nt=tt}nt!==null&&et.stopPropagation()}else hd(a,j,et,null,_e)}}var id$2=null;function Yc(a,j,_e,et){if(id$2=null,a=xb(et),a=Wc(a),a!==null)if(j=Vb(a),j===null)a=null;else if(_e=j.tag,_e===13){if(a=Wb(j),a!==null)return a;a=null}else if(_e===3){if(j.stateNode.current.memoizedState.isDehydrated)return j.tag===3?j.stateNode.containerInfo:null;a=null}else j!==a&&(a=null);return id$2=a,null}function jd(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ec$1()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var a,j=ld,_e=j.length,et,nt="value"in kd?kd.value:kd.textContent,tt=nt.length;for(a=0;a<_e&&j[a]===nt[a];a++);var ot=_e-a;for(et=1;et<=ot&&j[_e-et]===nt[tt-et];et++);return md=nt.slice(a,1<et?1-et:void 0)}function od(a){var j=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&j===13&&(a=13)):a=j,a===10&&(a=13),32<=a||a===13?a:0}function pd(){return!0}function qd(){return!1}function rd(a){function j(_e,et,nt,tt,ot){this._reactName=_e,this._targetInst=nt,this.type=et,this.nativeEvent=tt,this.target=ot,this.currentTarget=null;for(var ct in a)a.hasOwnProperty(ct)&&(_e=a[ct],this[ct]=_e?_e(tt):tt[ct]);return this.isDefaultPrevented=(tt.defaultPrevented!=null?tt.defaultPrevented:tt.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A$1(j.prototype,{preventDefault:function(){this.defaultPrevented=!0;var _e=this.nativeEvent;_e&&(_e.preventDefault?_e.preventDefault():typeof _e.returnValue!="unknown"&&(_e.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var _e=this.nativeEvent;_e&&(_e.stopPropagation?_e.stopPropagation():typeof _e.cancelBubble!="unknown"&&(_e.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),j}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A$1({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A$1({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==yd&&(yd&&a.type==="mousemove"?(wd=a.screenX-yd.screenX,xd=a.screenY-yd.screenY):xd=wd=0,yd=a),wd)},movementY:function(a){return"movementY"in a?a.movementY:xd}}),Bd=rd(Ad),Cd=A$1({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A$1({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A$1({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A$1({},sd,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A$1({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(a){var j=this.nativeEvent;return j.getModifierState?j.getModifierState(a):(a=Od[a])?!!j[a]:!1}function zd(){return Pd}var Qd=A$1({},ud,{key:function(a){if(a.key){var j=Md[a.key]||a.key;if(j!=="Unidentified")return j}return a.type==="keypress"?(a=od(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?Nd[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(a){return a.type==="keypress"?od(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?od(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Rd=rd(Qd),Sd=A$1({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A$1({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A$1({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A$1({},Ad,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&"CompositionEvent"in window,be=null;ia&&"documentMode"in document&&(be=document.documentMode);var ce=ia&&"TextEvent"in window&&!be,de=ia&&(!ae||be&&8<be&&11>=be),ee=" ",fe=!1;function ge(a,j){switch(a){case"keyup":return $d.indexOf(j.keyCode)!==-1;case"keydown":return j.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ie=!1;function je(a,j){switch(a){case"compositionend":return he(j);case"keypress":return j.which!==32?null:(fe=!0,ee);case"textInput":return a=j.data,a===ee&&fe?null:a;default:return null}}function ke(a,j){if(ie)return a==="compositionend"||!ae&&ge(a,j)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(j.ctrlKey||j.altKey||j.metaKey)||j.ctrlKey&&j.altKey){if(j.char&&1<j.char.length)return j.char;if(j.which)return String.fromCharCode(j.which)}return null;case"compositionend":return de&&j.locale!=="ko"?null:j.data;default:return null}}var le={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me(a){var j=a&&a.nodeName&&a.nodeName.toLowerCase();return j==="input"?!!le[a.type]:j==="textarea"}function ne(a,j,_e,et){Eb(et),j=oe(j,"onChange"),0<j.length&&(_e=new td("onChange","change",null,_e,et),a.push({event:_e,listeners:j}))}var pe=null,qe=null;function re$3(a){se(a,0)}function te(a){var j=ue(a);if(Wa(j))return a}function ve(a,j){if(a==="change")return j}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye=typeof ze.oninput=="function"}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent("onpropertychange",Be),qe=pe=null)}function Be(a){if(a.propertyName==="value"&&te(qe)){var j=[];ne(j,qe,a,xb(a)),Jb(re$3,j)}}function Ce(a,j,_e){a==="focusin"?(Ae(),pe=j,qe=_e,pe.attachEvent("onpropertychange",Be)):a==="focusout"&&Ae()}function De(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return te(qe)}function Ee(a,j){if(a==="click")return te(j)}function Fe(a,j){if(a==="input"||a==="change")return te(j)}function Ge(a,j){return a===j&&(a!==0||1/a===1/j)||a!==a&&j!==j}var He=typeof Object.is=="function"?Object.is:Ge;function Ie(a,j){if(He(a,j))return!0;if(typeof a!="object"||a===null||typeof j!="object"||j===null)return!1;var _e=Object.keys(a),et=Object.keys(j);if(_e.length!==et.length)return!1;for(et=0;et<_e.length;et++){var nt=_e[et];if(!ja.call(j,nt)||!He(a[nt],j[nt]))return!1}return!0}function Je(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Ke(a,j){var _e=Je(a);a=0;for(var et;_e;){if(_e.nodeType===3){if(et=a+_e.textContent.length,a<=j&&et>=j)return{node:_e,offset:j-a};a=et}e:{for(;_e;){if(_e.nextSibling){_e=_e.nextSibling;break e}_e=_e.parentNode}_e=void 0}_e=Je(_e)}}function Le(a,j){return a&&j?a===j?!0:a&&a.nodeType===3?!1:j&&j.nodeType===3?Le(a,j.parentNode):"contains"in a?a.contains(j):a.compareDocumentPosition?!!(a.compareDocumentPosition(j)&16):!1:!1}function Me(){for(var a=window,j=Xa();j instanceof a.HTMLIFrameElement;){try{var _e=typeof j.contentWindow.location.href=="string"}catch{_e=!1}if(_e)a=j.contentWindow;else break;j=Xa(a.document)}return j}function Ne(a){var j=a&&a.nodeName&&a.nodeName.toLowerCase();return j&&(j==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||j==="textarea"||a.contentEditable==="true")}function Oe(a){var j=Me(),_e=a.focusedElem,et=a.selectionRange;if(j!==_e&&_e&&_e.ownerDocument&&Le(_e.ownerDocument.documentElement,_e)){if(et!==null&&Ne(_e)){if(j=et.start,a=et.end,a===void 0&&(a=j),"selectionStart"in _e)_e.selectionStart=j,_e.selectionEnd=Math.min(a,_e.value.length);else if(a=(j=_e.ownerDocument||document)&&j.defaultView||window,a.getSelection){a=a.getSelection();var nt=_e.textContent.length,tt=Math.min(et.start,nt);et=et.end===void 0?tt:Math.min(et.end,nt),!a.extend&&tt>et&&(nt=et,et=tt,tt=nt),nt=Ke(_e,tt);var ot=Ke(_e,et);nt&&ot&&(a.rangeCount!==1||a.anchorNode!==nt.node||a.anchorOffset!==nt.offset||a.focusNode!==ot.node||a.focusOffset!==ot.offset)&&(j=j.createRange(),j.setStart(nt.node,nt.offset),a.removeAllRanges(),tt>et?(a.addRange(j),a.extend(ot.node,ot.offset)):(j.setEnd(ot.node,ot.offset),a.addRange(j)))}}for(j=[],a=_e;a=a.parentNode;)a.nodeType===1&&j.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof _e.focus=="function"&&_e.focus(),_e=0;_e<j.length;_e++)a=j[_e],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se$1=null,Te=!1;function Ue(a,j,_e){var et=_e.window===_e?_e.document:_e.nodeType===9?_e:_e.ownerDocument;Te||Qe==null||Qe!==Xa(et)||(et=Qe,"selectionStart"in et&&Ne(et)?et={start:et.selectionStart,end:et.selectionEnd}:(et=(et.ownerDocument&&et.ownerDocument.defaultView||window).getSelection(),et={anchorNode:et.anchorNode,anchorOffset:et.anchorOffset,focusNode:et.focusNode,focusOffset:et.focusOffset}),Se$1&&Ie(Se$1,et)||(Se$1=et,et=oe(Re,"onSelect"),0<et.length&&(j=new td("onSelect","select",null,j,_e),a.push({event:j,listeners:et}),j.target=Qe)))}function Ve(a,j){var _e={};return _e[a.toLowerCase()]=j.toLowerCase(),_e["Webkit"+a]="webkit"+j,_e["Moz"+a]="moz"+j,_e}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function Ze(a){if(Xe[a])return Xe[a];if(!We[a])return a;var j=We[a],_e;for(_e in j)if(j.hasOwnProperty(_e)&&_e in Ye)return Xe[a]=j[_e];return a}var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(a,j){df.set(a,j),fa(j,[a])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e,"onAnimationEnd");ff(af,"onAnimationIteration");ff(bf,"onAnimationStart");ff("dblclick","onDoubleClick");ff("focusin","onFocus");ff("focusout","onBlur");ff(cf,"onTransitionEnd");ha("onMouseEnter",["mouseout","mouseover"]);ha("onMouseLeave",["mouseout","mouseover"]);ha("onPointerEnter",["pointerout","pointerover"]);ha("onPointerLeave",["pointerout","pointerover"]);fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fa("onBeforeInput",["compositionend","keypress","textInput","paste"]);fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(a,j,_e){var et=a.type||"unknown-event";a.currentTarget=_e,Ub(et,j,void 0,a),a.currentTarget=null}function se(a,j){j=(j&4)!==0;for(var _e=0;_e<a.length;_e++){var et=a[_e],nt=et.event;et=et.listeners;e:{var tt=void 0;if(j)for(var ot=et.length-1;0<=ot;ot--){var ct=et[ot],ft=ct.instance,ht=ct.currentTarget;if(ct=ct.listener,ft!==tt&&nt.isPropagationStopped())break e;nf(nt,ct,ht),tt=ft}else for(ot=0;ot<et.length;ot++){if(ct=et[ot],ft=ct.instance,ht=ct.currentTarget,ct=ct.listener,ft!==tt&&nt.isPropagationStopped())break e;nf(nt,ct,ht),tt=ft}}}if(Qb)throw a=Rb,Qb=!1,Rb=null,a}function D(a,j){var _e=j[of];_e===void 0&&(_e=j[of]=new Set);var et=a+"__bubble";_e.has(et)||(pf(j,a,2,!1),_e.add(et))}function qf(a,j,_e){var et=0;j&&(et|=4),pf(_e,a,et,j)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(a){if(!a[rf]){a[rf]=!0,da.forEach(function(_e){_e!=="selectionchange"&&(mf.has(_e)||qf(_e,!1,a),qf(_e,!0,a))});var j=a.nodeType===9?a:a.ownerDocument;j===null||j[rf]||(j[rf]=!0,qf("selectionchange",!1,j))}}function pf(a,j,_e,et){switch(jd(j)){case 1:var nt=ed;break;case 4:nt=gd;break;default:nt=fd}_e=nt.bind(null,j,_e,a),nt=void 0,!Lb||j!=="touchstart"&&j!=="touchmove"&&j!=="wheel"||(nt=!0),et?nt!==void 0?a.addEventListener(j,_e,{capture:!0,passive:nt}):a.addEventListener(j,_e,!0):nt!==void 0?a.addEventListener(j,_e,{passive:nt}):a.addEventListener(j,_e,!1)}function hd(a,j,_e,et,nt){var tt=et;if(!(j&1)&&!(j&2)&&et!==null)e:for(;;){if(et===null)return;var ot=et.tag;if(ot===3||ot===4){var ct=et.stateNode.containerInfo;if(ct===nt||ct.nodeType===8&&ct.parentNode===nt)break;if(ot===4)for(ot=et.return;ot!==null;){var ft=ot.tag;if((ft===3||ft===4)&&(ft=ot.stateNode.containerInfo,ft===nt||ft.nodeType===8&&ft.parentNode===nt))return;ot=ot.return}for(;ct!==null;){if(ot=Wc(ct),ot===null)return;if(ft=ot.tag,ft===5||ft===6){et=tt=ot;continue e}ct=ct.parentNode}}et=et.return}Jb(function(){var ht=tt,dt=xb(_e),yt=[];e:{var Tt=df.get(a);if(Tt!==void 0){var St=td,At=a;switch(a){case"keypress":if(od(_e)===0)break e;case"keydown":case"keyup":St=Rd;break;case"focusin":At="focus",St=Fd;break;case"focusout":At="blur",St=Fd;break;case"beforeblur":case"afterblur":St=Fd;break;case"click":if(_e.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":St=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":St=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":St=Vd;break;case $e:case af:case bf:St=Hd;break;case cf:St=Xd;break;case"scroll":St=vd;break;case"wheel":St=Zd;break;case"copy":case"cut":case"paste":St=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":St=Td}var Rt=(j&4)!==0,It=!Rt&&a==="scroll",Ct=Rt?Tt!==null?Tt+"Capture":null:Tt;Rt=[];for(var kt=ht,Pt;kt!==null;){Pt=kt;var Bt=Pt.stateNode;if(Pt.tag===5&&Bt!==null&&(Pt=Bt,Ct!==null&&(Bt=Kb(kt,Ct),Bt!=null&&Rt.push(tf(kt,Bt,Pt)))),It)break;kt=kt.return}0<Rt.length&&(Tt=new St(Tt,At,null,_e,dt),yt.push({event:Tt,listeners:Rt}))}}if(!(j&7)){e:{if(Tt=a==="mouseover"||a==="pointerover",St=a==="mouseout"||a==="pointerout",Tt&&_e!==wb&&(At=_e.relatedTarget||_e.fromElement)&&(Wc(At)||At[uf]))break e;if((St||Tt)&&(Tt=dt.window===dt?dt:(Tt=dt.ownerDocument)?Tt.defaultView||Tt.parentWindow:window,St?(At=_e.relatedTarget||_e.toElement,St=ht,At=At?Wc(At):null,At!==null&&(It=Vb(At),At!==It||At.tag!==5&&At.tag!==6)&&(At=null)):(St=null,At=ht),St!==At)){if(Rt=Bd,Bt="onMouseLeave",Ct="onMouseEnter",kt="mouse",(a==="pointerout"||a==="pointerover")&&(Rt=Td,Bt="onPointerLeave",Ct="onPointerEnter",kt="pointer"),It=St==null?Tt:ue(St),Pt=At==null?Tt:ue(At),Tt=new Rt(Bt,kt+"leave",St,_e,dt),Tt.target=It,Tt.relatedTarget=Pt,Bt=null,Wc(dt)===ht&&(Rt=new Rt(Ct,kt+"enter",At,_e,dt),Rt.target=Pt,Rt.relatedTarget=It,Bt=Rt),It=Bt,St&&At)t:{for(Rt=St,Ct=At,kt=0,Pt=Rt;Pt;Pt=vf(Pt))kt++;for(Pt=0,Bt=Ct;Bt;Bt=vf(Bt))Pt++;for(;0<kt-Pt;)Rt=vf(Rt),kt--;for(;0<Pt-kt;)Ct=vf(Ct),Pt--;for(;kt--;){if(Rt===Ct||Ct!==null&&Rt===Ct.alternate)break t;Rt=vf(Rt),Ct=vf(Ct)}Rt=null}else Rt=null;St!==null&&wf(yt,Tt,St,Rt,!1),At!==null&&It!==null&&wf(yt,It,At,Rt,!0)}}e:{if(Tt=ht?ue(ht):window,St=Tt.nodeName&&Tt.nodeName.toLowerCase(),St==="select"||St==="input"&&Tt.type==="file")var Kt=ve;else if(me(Tt))if(we)Kt=Fe;else{Kt=De;var jt=Ce}else(St=Tt.nodeName)&&St.toLowerCase()==="input"&&(Tt.type==="checkbox"||Tt.type==="radio")&&(Kt=Ee);if(Kt&&(Kt=Kt(a,ht))){ne(yt,Kt,_e,dt);break e}jt&&jt(a,Tt,ht),a==="focusout"&&(jt=Tt._wrapperState)&&jt.controlled&&Tt.type==="number"&&cb(Tt,"number",Tt.value)}switch(jt=ht?ue(ht):window,a){case"focusin":(me(jt)||jt.contentEditable==="true")&&(Qe=jt,Re=ht,Se$1=null);break;case"focusout":Se$1=Re=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue(yt,_e,dt);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(yt,_e,dt)}var zt;if(ae)e:{switch(a){case"compositionstart":var Gt="onCompositionStart";break e;case"compositionend":Gt="onCompositionEnd";break e;case"compositionupdate":Gt="onCompositionUpdate";break e}Gt=void 0}else ie?ge(a,_e)&&(Gt="onCompositionEnd"):a==="keydown"&&_e.keyCode===229&&(Gt="onCompositionStart");Gt&&(de&&_e.locale!=="ko"&&(ie||Gt!=="onCompositionStart"?Gt==="onCompositionEnd"&&ie&&(zt=nd()):(kd=dt,ld="value"in kd?kd.value:kd.textContent,ie=!0)),jt=oe(ht,Gt),0<jt.length&&(Gt=new Ld(Gt,a,null,_e,dt),yt.push({event:Gt,listeners:jt}),zt?Gt.data=zt:(zt=he(_e),zt!==null&&(Gt.data=zt)))),(zt=ce?je(a,_e):ke(a,_e))&&(ht=oe(ht,"onBeforeInput"),0<ht.length&&(dt=new Ld("onBeforeInput","beforeinput",null,_e,dt),yt.push({event:dt,listeners:ht}),dt.data=zt))}se(yt,j)})}function tf(a,j,_e){return{instance:a,listener:j,currentTarget:_e}}function oe(a,j){for(var _e=j+"Capture",et=[];a!==null;){var nt=a,tt=nt.stateNode;nt.tag===5&&tt!==null&&(nt=tt,tt=Kb(a,_e),tt!=null&&et.unshift(tf(a,tt,nt)),tt=Kb(a,j),tt!=null&&et.push(tf(a,tt,nt))),a=a.return}return et}function vf(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function wf(a,j,_e,et,nt){for(var tt=j._reactName,ot=[];_e!==null&&_e!==et;){var ct=_e,ft=ct.alternate,ht=ct.stateNode;if(ft!==null&&ft===et)break;ct.tag===5&&ht!==null&&(ct=ht,nt?(ft=Kb(_e,tt),ft!=null&&ot.unshift(tf(_e,ft,ct))):nt||(ft=Kb(_e,tt),ft!=null&&ot.push(tf(_e,ft,ct)))),_e=_e.return}ot.length!==0&&a.push({event:j,listeners:ot})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(a){return(typeof a=="string"?a:""+a).replace(xf,`
|
|
39
39
|
`).replace(yf,"")}function Af(a,j,_e){if(j=zf(j),zf(a)!==j&&_e)throw Error(p$2(425))}function Bf(){}var Cf=null,Df=null;function Ef(a,j){return a==="textarea"||a==="noscript"||typeof j.children=="string"||typeof j.children=="number"||typeof j.dangerouslySetInnerHTML=="object"&&j.dangerouslySetInnerHTML!==null&&j.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(a){return Hf.resolve(null).then(a).catch(If)}:Ff;function If(a){setTimeout(function(){throw a})}function Kf(a,j){var _e=j,et=0;do{var nt=_e.nextSibling;if(a.removeChild(_e),nt&&nt.nodeType===8)if(_e=nt.data,_e==="/$"){if(et===0){a.removeChild(nt),bd(j);return}et--}else _e!=="$"&&_e!=="$?"&&_e!=="$!"||et++;_e=nt}while(_e);bd(j)}function Lf(a){for(;a!=null;a=a.nextSibling){var j=a.nodeType;if(j===1||j===3)break;if(j===8){if(j=a.data,j==="$"||j==="$!"||j==="$?")break;if(j==="/$")return null}}return a}function Mf(a){a=a.previousSibling;for(var j=0;a;){if(a.nodeType===8){var _e=a.data;if(_e==="$"||_e==="$!"||_e==="$?"){if(j===0)return a;j--}else _e==="/$"&&j++}a=a.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(a){var j=a[Of];if(j)return j;for(var _e=a.parentNode;_e;){if(j=_e[uf]||_e[Of]){if(_e=j.alternate,j.child!==null||_e!==null&&_e.child!==null)for(a=Mf(a);a!==null;){if(_e=a[Of])return _e;a=Mf(a)}return j}a=_e,_e=a.parentNode}return null}function Cb(a){return a=a[Of]||a[uf],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function ue(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(p$2(33))}function Db(a){return a[Pf]||null}var Sf=[],Tf=-1;function Uf(a){return{current:a}}function E(a){0>Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,j){Tf++,Sf[Tf]=a.current,a.current=j}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,j){var _e=a.type.contextTypes;if(!_e)return Vf;var et=a.stateNode;if(et&&et.__reactInternalMemoizedUnmaskedChildContext===j)return et.__reactInternalMemoizedMaskedChildContext;var nt={},tt;for(tt in _e)nt[tt]=j[tt];return et&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=j,a.__reactInternalMemoizedMaskedChildContext=nt),nt}function Zf(a){return a=a.childContextTypes,a!=null}function $f(){E(Wf),E(H)}function ag(a,j,_e){if(H.current!==Vf)throw Error(p$2(168));G(H,j),G(Wf,_e)}function bg(a,j,_e){var et=a.stateNode;if(j=j.childContextTypes,typeof et.getChildContext!="function")return _e;et=et.getChildContext();for(var nt in et)if(!(nt in j))throw Error(p$2(108,Ra(a)||"Unknown",nt));return A$1({},_e,et)}function cg(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,a),G(Wf,Wf.current),!0}function dg(a,j,_e){var et=a.stateNode;if(!et)throw Error(p$2(169));_e?(a=bg(a,j,Xf),et.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf),G(Wf,_e)}var eg=null,fg=!1,gg=!1;function hg(a){eg===null?eg=[a]:eg.push(a)}function ig(a){fg=!0,hg(a)}function jg(){if(!gg&&eg!==null){gg=!0;var a=0,j=C;try{var _e=eg;for(C=1;a<_e.length;a++){var et=_e[a];do et=et(!0);while(et!==null)}eg=null,fg=!1}catch(nt){throw eg!==null&&(eg=eg.slice(a+1)),ac(fc,jg),nt}finally{C=j,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(a,j){kg[lg++]=ng,kg[lg++]=mg,mg=a,ng=j}function ug(a,j,_e){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=a;var et=rg;a=sg;var nt=32-oc(et)-1;et&=~(1<<nt),_e+=1;var tt=32-oc(j)+nt;if(30<tt){var ot=nt-nt%5;tt=(et&(1<<ot)-1).toString(32),et>>=ot,nt-=ot,rg=1<<32-oc(j)+nt|_e<<nt|et,sg=tt+a}else rg=1<<tt|_e<<nt|et,sg=a}function vg(a){a.return!==null&&(tg(a,1),ug(a,1,0))}function wg(a){for(;a===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;a===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;function Ag(a,j){var _e=Bg(5,null,null,0);_e.elementType="DELETED",_e.stateNode=j,_e.return=a,j=a.deletions,j===null?(a.deletions=[_e],a.flags|=16):j.push(_e)}function Cg(a,j){switch(a.tag){case 5:var _e=a.type;return j=j.nodeType!==1||_e.toLowerCase()!==j.nodeName.toLowerCase()?null:j,j!==null?(a.stateNode=j,xg=a,yg=Lf(j.firstChild),!0):!1;case 6:return j=a.pendingProps===""||j.nodeType!==3?null:j,j!==null?(a.stateNode=j,xg=a,yg=null,!0):!1;case 13:return j=j.nodeType!==8?null:j,j!==null?(_e=qg!==null?{id:rg,overflow:sg}:null,a.memoizedState={dehydrated:j,treeContext:_e,retryLane:1073741824},_e=Bg(18,null,null,0),_e.stateNode=j,_e.return=a,a.child=_e,xg=a,yg=null,!0):!1;default:return!1}}function Dg(a){return(a.mode&1)!==0&&(a.flags&128)===0}function Eg(a){if(I){var j=yg;if(j){var _e=j;if(!Cg(a,j)){if(Dg(a))throw Error(p$2(418));j=Lf(_e.nextSibling);var et=xg;j&&Cg(a,j)?Ag(et,_e):(a.flags=a.flags&-4097|2,I=!1,xg=a)}}else{if(Dg(a))throw Error(p$2(418));a.flags=a.flags&-4097|2,I=!1,xg=a}}}function Fg(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;xg=a}function Gg(a){if(a!==xg)return!1;if(!I)return Fg(a),I=!0,!1;var j;if((j=a.tag!==3)&&!(j=a.tag!==5)&&(j=a.type,j=j!=="head"&&j!=="body"&&!Ef(a.type,a.memoizedProps)),j&&(j=yg)){if(Dg(a))throw Hg(),Error(p$2(418));for(;j;)Ag(a,j),j=Lf(j.nextSibling)}if(Fg(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(p$2(317));e:{for(a=a.nextSibling,j=0;a;){if(a.nodeType===8){var _e=a.data;if(_e==="/$"){if(j===0){yg=Lf(a.nextSibling);break e}j--}else _e!=="$"&&_e!=="$!"&&_e!=="$?"||j++}a=a.nextSibling}yg=null}}else yg=xg?Lf(a.stateNode.nextSibling):null;return!0}function Hg(){for(var a=yg;a;)a=Lf(a.nextSibling)}function Ig(){yg=xg=null,I=!1}function Jg(a){zg===null?zg=[a]:zg.push(a)}var Kg=ua.ReactCurrentBatchConfig;function Lg(a,j){if(a&&a.defaultProps){j=A$1({},j),a=a.defaultProps;for(var _e in a)j[_e]===void 0&&(j[_e]=a[_e]);return j}return j}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(a){var j=Mg.current;E(Mg),a._currentValue=j}function Sg(a,j,_e){for(;a!==null;){var et=a.alternate;if((a.childLanes&j)!==j?(a.childLanes|=j,et!==null&&(et.childLanes|=j)):et!==null&&(et.childLanes&j)!==j&&(et.childLanes|=j),a===_e)break;a=a.return}}function Tg(a,j){Ng=a,Pg=Og=null,a=a.dependencies,a!==null&&a.firstContext!==null&&(a.lanes&j&&(Ug=!0),a.firstContext=null)}function Vg(a){var j=a._currentValue;if(Pg!==a)if(a={context:a,memoizedValue:j,next:null},Og===null){if(Ng===null)throw Error(p$2(308));Og=a,Ng.dependencies={lanes:0,firstContext:a}}else Og=Og.next=a;return j}var Wg=null;function Xg(a){Wg===null?Wg=[a]:Wg.push(a)}function Yg(a,j,_e,et){var nt=j.interleaved;return nt===null?(_e.next=_e,Xg(j)):(_e.next=nt.next,nt.next=_e),j.interleaved=_e,Zg(a,et)}function Zg(a,j){a.lanes|=j;var _e=a.alternate;for(_e!==null&&(_e.lanes|=j),_e=a,a=a.return;a!==null;)a.childLanes|=j,_e=a.alternate,_e!==null&&(_e.childLanes|=j),_e=a,a=a.return;return _e.tag===3?_e.stateNode:null}var $g=!1;function ah(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bh(a,j){a=a.updateQueue,j.updateQueue===a&&(j.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function ch(a,j){return{eventTime:a,lane:j,tag:0,payload:null,callback:null,next:null}}function dh$1(a,j,_e){var et=a.updateQueue;if(et===null)return null;if(et=et.shared,K$1&2){var nt=et.pending;return nt===null?j.next=j:(j.next=nt.next,nt.next=j),et.pending=j,Zg(a,_e)}return nt=et.interleaved,nt===null?(j.next=j,Xg(et)):(j.next=nt.next,nt.next=j),et.interleaved=j,Zg(a,_e)}function eh(a,j,_e){if(j=j.updateQueue,j!==null&&(j=j.shared,(_e&4194240)!==0)){var et=j.lanes;et&=a.pendingLanes,_e|=et,j.lanes=_e,Cc(a,_e)}}function fh(a,j){var _e=a.updateQueue,et=a.alternate;if(et!==null&&(et=et.updateQueue,_e===et)){var nt=null,tt=null;if(_e=_e.firstBaseUpdate,_e!==null){do{var ot={eventTime:_e.eventTime,lane:_e.lane,tag:_e.tag,payload:_e.payload,callback:_e.callback,next:null};tt===null?nt=tt=ot:tt=tt.next=ot,_e=_e.next}while(_e!==null);tt===null?nt=tt=j:tt=tt.next=j}else nt=tt=j;_e={baseState:et.baseState,firstBaseUpdate:nt,lastBaseUpdate:tt,shared:et.shared,effects:et.effects},a.updateQueue=_e;return}a=_e.lastBaseUpdate,a===null?_e.firstBaseUpdate=j:a.next=j,_e.lastBaseUpdate=j}function gh(a,j,_e,et){var nt=a.updateQueue;$g=!1;var tt=nt.firstBaseUpdate,ot=nt.lastBaseUpdate,ct=nt.shared.pending;if(ct!==null){nt.shared.pending=null;var ft=ct,ht=ft.next;ft.next=null,ot===null?tt=ht:ot.next=ht,ot=ft;var dt=a.alternate;dt!==null&&(dt=dt.updateQueue,ct=dt.lastBaseUpdate,ct!==ot&&(ct===null?dt.firstBaseUpdate=ht:ct.next=ht,dt.lastBaseUpdate=ft))}if(tt!==null){var yt=nt.baseState;ot=0,dt=ht=ft=null,ct=tt;do{var Tt=ct.lane,St=ct.eventTime;if((et&Tt)===Tt){dt!==null&&(dt=dt.next={eventTime:St,lane:0,tag:ct.tag,payload:ct.payload,callback:ct.callback,next:null});e:{var At=a,Rt=ct;switch(Tt=j,St=_e,Rt.tag){case 1:if(At=Rt.payload,typeof At=="function"){yt=At.call(St,yt,Tt);break e}yt=At;break e;case 3:At.flags=At.flags&-65537|128;case 0:if(At=Rt.payload,Tt=typeof At=="function"?At.call(St,yt,Tt):At,Tt==null)break e;yt=A$1({},yt,Tt);break e;case 2:$g=!0}}ct.callback!==null&&ct.lane!==0&&(a.flags|=64,Tt=nt.effects,Tt===null?nt.effects=[ct]:Tt.push(ct))}else St={eventTime:St,lane:Tt,tag:ct.tag,payload:ct.payload,callback:ct.callback,next:null},dt===null?(ht=dt=St,ft=yt):dt=dt.next=St,ot|=Tt;if(ct=ct.next,ct===null){if(ct=nt.shared.pending,ct===null)break;Tt=ct,ct=Tt.next,Tt.next=null,nt.lastBaseUpdate=Tt,nt.shared.pending=null}}while(!0);if(dt===null&&(ft=yt),nt.baseState=ft,nt.firstBaseUpdate=ht,nt.lastBaseUpdate=dt,j=nt.shared.interleaved,j!==null){nt=j;do ot|=nt.lane,nt=nt.next;while(nt!==j)}else tt===null&&(nt.shared.lanes=0);hh|=ot,a.lanes=ot,a.memoizedState=yt}}function ih(a,j,_e){if(a=j.effects,j.effects=null,a!==null)for(j=0;j<a.length;j++){var et=a[j],nt=et.callback;if(nt!==null){if(et.callback=null,et=_e,typeof nt!="function")throw Error(p$2(191,nt));nt.call(et)}}}var jh=new aa.Component().refs;function kh(a,j,_e,et){j=a.memoizedState,_e=_e(et,j),_e=_e==null?j:A$1({},j,_e),a.memoizedState=_e,a.lanes===0&&(a.updateQueue.baseState=_e)}var nh={isMounted:function(a){return(a=a._reactInternals)?Vb(a)===a:!1},enqueueSetState:function(a,j,_e){a=a._reactInternals;var et=L(),nt=lh(a),tt=ch(et,nt);tt.payload=j,_e!=null&&(tt.callback=_e),j=dh$1(a,tt,nt),j!==null&&(mh(j,a,nt,et),eh(j,a,nt))},enqueueReplaceState:function(a,j,_e){a=a._reactInternals;var et=L(),nt=lh(a),tt=ch(et,nt);tt.tag=1,tt.payload=j,_e!=null&&(tt.callback=_e),j=dh$1(a,tt,nt),j!==null&&(mh(j,a,nt,et),eh(j,a,nt))},enqueueForceUpdate:function(a,j){a=a._reactInternals;var _e=L(),et=lh(a),nt=ch(_e,et);nt.tag=2,j!=null&&(nt.callback=j),j=dh$1(a,nt,et),j!==null&&(mh(j,a,et,_e),eh(j,a,et))}};function oh(a,j,_e,et,nt,tt,ot){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(et,tt,ot):j.prototype&&j.prototype.isPureReactComponent?!Ie(_e,et)||!Ie(nt,tt):!0}function ph(a,j,_e){var et=!1,nt=Vf,tt=j.contextType;return typeof tt=="object"&&tt!==null?tt=Vg(tt):(nt=Zf(j)?Xf:H.current,et=j.contextTypes,tt=(et=et!=null)?Yf(a,nt):Vf),j=new j(_e,tt),a.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,j.updater=nh,a.stateNode=j,j._reactInternals=a,et&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=nt,a.__reactInternalMemoizedMaskedChildContext=tt),j}function qh(a,j,_e,et){a=j.state,typeof j.componentWillReceiveProps=="function"&&j.componentWillReceiveProps(_e,et),typeof j.UNSAFE_componentWillReceiveProps=="function"&&j.UNSAFE_componentWillReceiveProps(_e,et),j.state!==a&&nh.enqueueReplaceState(j,j.state,null)}function rh$1(a,j,_e,et){var nt=a.stateNode;nt.props=_e,nt.state=a.memoizedState,nt.refs=jh,ah(a);var tt=j.contextType;typeof tt=="object"&&tt!==null?nt.context=Vg(tt):(tt=Zf(j)?Xf:H.current,nt.context=Yf(a,tt)),nt.state=a.memoizedState,tt=j.getDerivedStateFromProps,typeof tt=="function"&&(kh(a,j,tt,_e),nt.state=a.memoizedState),typeof j.getDerivedStateFromProps=="function"||typeof nt.getSnapshotBeforeUpdate=="function"||typeof nt.UNSAFE_componentWillMount!="function"&&typeof nt.componentWillMount!="function"||(j=nt.state,typeof nt.componentWillMount=="function"&&nt.componentWillMount(),typeof nt.UNSAFE_componentWillMount=="function"&&nt.UNSAFE_componentWillMount(),j!==nt.state&&nh.enqueueReplaceState(nt,nt.state,null),gh(a,_e,nt,et),nt.state=a.memoizedState),typeof nt.componentDidMount=="function"&&(a.flags|=4194308)}function sh$1(a,j,_e){if(a=_e.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(_e._owner){if(_e=_e._owner,_e){if(_e.tag!==1)throw Error(p$2(309));var et=_e.stateNode}if(!et)throw Error(p$2(147,a));var nt=et,tt=""+a;return j!==null&&j.ref!==null&&typeof j.ref=="function"&&j.ref._stringRef===tt?j.ref:(j=function(ot){var ct=nt.refs;ct===jh&&(ct=nt.refs={}),ot===null?delete ct[tt]:ct[tt]=ot},j._stringRef=tt,j)}if(typeof a!="string")throw Error(p$2(284));if(!_e._owner)throw Error(p$2(290,a))}return a}function th(a,j){throw a=Object.prototype.toString.call(j),Error(p$2(31,a==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":a))}function uh(a){var j=a._init;return j(a._payload)}function vh(a){function j(Ct,kt){if(a){var Pt=Ct.deletions;Pt===null?(Ct.deletions=[kt],Ct.flags|=16):Pt.push(kt)}}function _e(Ct,kt){if(!a)return null;for(;kt!==null;)j(Ct,kt),kt=kt.sibling;return null}function et(Ct,kt){for(Ct=new Map;kt!==null;)kt.key!==null?Ct.set(kt.key,kt):Ct.set(kt.index,kt),kt=kt.sibling;return Ct}function nt(Ct,kt){return Ct=wh(Ct,kt),Ct.index=0,Ct.sibling=null,Ct}function tt(Ct,kt,Pt){return Ct.index=Pt,a?(Pt=Ct.alternate,Pt!==null?(Pt=Pt.index,Pt<kt?(Ct.flags|=2,kt):Pt):(Ct.flags|=2,kt)):(Ct.flags|=1048576,kt)}function ot(Ct){return a&&Ct.alternate===null&&(Ct.flags|=2),Ct}function ct(Ct,kt,Pt,Bt){return kt===null||kt.tag!==6?(kt=xh(Pt,Ct.mode,Bt),kt.return=Ct,kt):(kt=nt(kt,Pt),kt.return=Ct,kt)}function ft(Ct,kt,Pt,Bt){var Kt=Pt.type;return Kt===ya?dt(Ct,kt,Pt.props.children,Bt,Pt.key):kt!==null&&(kt.elementType===Kt||typeof Kt=="object"&&Kt!==null&&Kt.$$typeof===Ha&&uh(Kt)===kt.type)?(Bt=nt(kt,Pt.props),Bt.ref=sh$1(Ct,kt,Pt),Bt.return=Ct,Bt):(Bt=yh(Pt.type,Pt.key,Pt.props,null,Ct.mode,Bt),Bt.ref=sh$1(Ct,kt,Pt),Bt.return=Ct,Bt)}function ht(Ct,kt,Pt,Bt){return kt===null||kt.tag!==4||kt.stateNode.containerInfo!==Pt.containerInfo||kt.stateNode.implementation!==Pt.implementation?(kt=zh$1(Pt,Ct.mode,Bt),kt.return=Ct,kt):(kt=nt(kt,Pt.children||[]),kt.return=Ct,kt)}function dt(Ct,kt,Pt,Bt,Kt){return kt===null||kt.tag!==7?(kt=Ah(Pt,Ct.mode,Bt,Kt),kt.return=Ct,kt):(kt=nt(kt,Pt),kt.return=Ct,kt)}function yt(Ct,kt,Pt){if(typeof kt=="string"&&kt!==""||typeof kt=="number")return kt=xh(""+kt,Ct.mode,Pt),kt.return=Ct,kt;if(typeof kt=="object"&&kt!==null){switch(kt.$$typeof){case va:return Pt=yh(kt.type,kt.key,kt.props,null,Ct.mode,Pt),Pt.ref=sh$1(Ct,null,kt),Pt.return=Ct,Pt;case wa:return kt=zh$1(kt,Ct.mode,Pt),kt.return=Ct,kt;case Ha:var Bt=kt._init;return yt(Ct,Bt(kt._payload),Pt)}if(eb(kt)||Ka(kt))return kt=Ah(kt,Ct.mode,Pt,null),kt.return=Ct,kt;th(Ct,kt)}return null}function Tt(Ct,kt,Pt,Bt){var Kt=kt!==null?kt.key:null;if(typeof Pt=="string"&&Pt!==""||typeof Pt=="number")return Kt!==null?null:ct(Ct,kt,""+Pt,Bt);if(typeof Pt=="object"&&Pt!==null){switch(Pt.$$typeof){case va:return Pt.key===Kt?ft(Ct,kt,Pt,Bt):null;case wa:return Pt.key===Kt?ht(Ct,kt,Pt,Bt):null;case Ha:return Kt=Pt._init,Tt(Ct,kt,Kt(Pt._payload),Bt)}if(eb(Pt)||Ka(Pt))return Kt!==null?null:dt(Ct,kt,Pt,Bt,null);th(Ct,Pt)}return null}function St(Ct,kt,Pt,Bt,Kt){if(typeof Bt=="string"&&Bt!==""||typeof Bt=="number")return Ct=Ct.get(Pt)||null,ct(kt,Ct,""+Bt,Kt);if(typeof Bt=="object"&&Bt!==null){switch(Bt.$$typeof){case va:return Ct=Ct.get(Bt.key===null?Pt:Bt.key)||null,ft(kt,Ct,Bt,Kt);case wa:return Ct=Ct.get(Bt.key===null?Pt:Bt.key)||null,ht(kt,Ct,Bt,Kt);case Ha:var jt=Bt._init;return St(Ct,kt,Pt,jt(Bt._payload),Kt)}if(eb(Bt)||Ka(Bt))return Ct=Ct.get(Pt)||null,dt(kt,Ct,Bt,Kt,null);th(kt,Bt)}return null}function At(Ct,kt,Pt,Bt){for(var Kt=null,jt=null,zt=kt,Gt=kt=0,tn=null;zt!==null&&Gt<Pt.length;Gt++){zt.index>Gt?(tn=zt,zt=null):tn=zt.sibling;var hn=Tt(Ct,zt,Pt[Gt],Bt);if(hn===null){zt===null&&(zt=tn);break}a&&zt&&hn.alternate===null&&j(Ct,zt),kt=tt(hn,kt,Gt),jt===null?Kt=hn:jt.sibling=hn,jt=hn,zt=tn}if(Gt===Pt.length)return _e(Ct,zt),I&&tg(Ct,Gt),Kt;if(zt===null){for(;Gt<Pt.length;Gt++)zt=yt(Ct,Pt[Gt],Bt),zt!==null&&(kt=tt(zt,kt,Gt),jt===null?Kt=zt:jt.sibling=zt,jt=zt);return I&&tg(Ct,Gt),Kt}for(zt=et(Ct,zt);Gt<Pt.length;Gt++)tn=St(zt,Ct,Gt,Pt[Gt],Bt),tn!==null&&(a&&tn.alternate!==null&&zt.delete(tn.key===null?Gt:tn.key),kt=tt(tn,kt,Gt),jt===null?Kt=tn:jt.sibling=tn,jt=tn);return a&&zt.forEach(function(wt){return j(Ct,wt)}),I&&tg(Ct,Gt),Kt}function Rt(Ct,kt,Pt,Bt){var Kt=Ka(Pt);if(typeof Kt!="function")throw Error(p$2(150));if(Pt=Kt.call(Pt),Pt==null)throw Error(p$2(151));for(var jt=Kt=null,zt=kt,Gt=kt=0,tn=null,hn=Pt.next();zt!==null&&!hn.done;Gt++,hn=Pt.next()){zt.index>Gt?(tn=zt,zt=null):tn=zt.sibling;var wt=Tt(Ct,zt,hn.value,Bt);if(wt===null){zt===null&&(zt=tn);break}a&&zt&&wt.alternate===null&&j(Ct,zt),kt=tt(wt,kt,Gt),jt===null?Kt=wt:jt.sibling=wt,jt=wt,zt=tn}if(hn.done)return _e(Ct,zt),I&&tg(Ct,Gt),Kt;if(zt===null){for(;!hn.done;Gt++,hn=Pt.next())hn=yt(Ct,hn.value,Bt),hn!==null&&(kt=tt(hn,kt,Gt),jt===null?Kt=hn:jt.sibling=hn,jt=hn);return I&&tg(Ct,Gt),Kt}for(zt=et(Ct,zt);!hn.done;Gt++,hn=Pt.next())hn=St(zt,Ct,Gt,hn.value,Bt),hn!==null&&(a&&hn.alternate!==null&&zt.delete(hn.key===null?Gt:hn.key),kt=tt(hn,kt,Gt),jt===null?Kt=hn:jt.sibling=hn,jt=hn);return a&&zt.forEach(function(rt){return j(Ct,rt)}),I&&tg(Ct,Gt),Kt}function It(Ct,kt,Pt,Bt){if(typeof Pt=="object"&&Pt!==null&&Pt.type===ya&&Pt.key===null&&(Pt=Pt.props.children),typeof Pt=="object"&&Pt!==null){switch(Pt.$$typeof){case va:e:{for(var Kt=Pt.key,jt=kt;jt!==null;){if(jt.key===Kt){if(Kt=Pt.type,Kt===ya){if(jt.tag===7){_e(Ct,jt.sibling),kt=nt(jt,Pt.props.children),kt.return=Ct,Ct=kt;break e}}else if(jt.elementType===Kt||typeof Kt=="object"&&Kt!==null&&Kt.$$typeof===Ha&&uh(Kt)===jt.type){_e(Ct,jt.sibling),kt=nt(jt,Pt.props),kt.ref=sh$1(Ct,jt,Pt),kt.return=Ct,Ct=kt;break e}_e(Ct,jt);break}else j(Ct,jt);jt=jt.sibling}Pt.type===ya?(kt=Ah(Pt.props.children,Ct.mode,Bt,Pt.key),kt.return=Ct,Ct=kt):(Bt=yh(Pt.type,Pt.key,Pt.props,null,Ct.mode,Bt),Bt.ref=sh$1(Ct,kt,Pt),Bt.return=Ct,Ct=Bt)}return ot(Ct);case wa:e:{for(jt=Pt.key;kt!==null;){if(kt.key===jt)if(kt.tag===4&&kt.stateNode.containerInfo===Pt.containerInfo&&kt.stateNode.implementation===Pt.implementation){_e(Ct,kt.sibling),kt=nt(kt,Pt.children||[]),kt.return=Ct,Ct=kt;break e}else{_e(Ct,kt);break}else j(Ct,kt);kt=kt.sibling}kt=zh$1(Pt,Ct.mode,Bt),kt.return=Ct,Ct=kt}return ot(Ct);case Ha:return jt=Pt._init,It(Ct,kt,jt(Pt._payload),Bt)}if(eb(Pt))return At(Ct,kt,Pt,Bt);if(Ka(Pt))return Rt(Ct,kt,Pt,Bt);th(Ct,Pt)}return typeof Pt=="string"&&Pt!==""||typeof Pt=="number"?(Pt=""+Pt,kt!==null&&kt.tag===6?(_e(Ct,kt.sibling),kt=nt(kt,Pt),kt.return=Ct,Ct=kt):(_e(Ct,kt),kt=xh(Pt,Ct.mode,Bt),kt.return=Ct,Ct=kt),ot(Ct)):_e(Ct,kt)}return It}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p$2(174));return a}function Ih(a,j){switch(G(Gh,j),G(Fh,a),G(Eh,Dh),a=j.nodeType,a){case 9:case 11:j=(j=j.documentElement)?j.namespaceURI:lb(null,"");break;default:a=a===8?j.parentNode:j,j=a.namespaceURI||null,a=a.tagName,j=lb(j,a)}E(Eh),G(Eh,j)}function Jh(){E(Eh),E(Fh),E(Gh)}function Kh$1(a){Hh(Gh.current);var j=Hh(Eh.current),_e=lb(j,a.type);j!==_e&&(G(Fh,a),G(Eh,_e))}function Lh(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0);function Mh(a){for(var j=a;j!==null;){if(j.tag===13){var _e=j.memoizedState;if(_e!==null&&(_e=_e.dehydrated,_e===null||_e.data==="$?"||_e.data==="$!"))return j}else if(j.tag===19&&j.memoizedProps.revealOrder!==void 0){if(j.flags&128)return j}else if(j.child!==null){j.child.return=j,j=j.child;continue}if(j===a)break;for(;j.sibling===null;){if(j.return===null||j.return===a)return null;j=j.return}j.sibling.return=j.return,j=j.sibling}return null}var Nh=[];function Oh(){for(var a=0;a<Nh.length;a++)Nh[a]._workInProgressVersionPrimary=null;Nh.length=0}var Ph=ua.ReactCurrentDispatcher,Qh=ua.ReactCurrentBatchConfig,Rh=0,N=null,O=null,P=null,Sh=!1,Th=!1,Uh=0,Vh=0;function Q(){throw Error(p$2(321))}function Wh(a,j){if(j===null)return!1;for(var _e=0;_e<j.length&&_e<a.length;_e++)if(!He(a[_e],j[_e]))return!1;return!0}function Xh(a,j,_e,et,nt,tt){if(Rh=tt,N=j,j.memoizedState=null,j.updateQueue=null,j.lanes=0,Ph.current=a===null||a.memoizedState===null?Yh:Zh,a=_e(et,nt),Th){tt=0;do{if(Th=!1,Uh=0,25<=tt)throw Error(p$2(301));tt+=1,P=O=null,j.updateQueue=null,Ph.current=$h,a=_e(et,nt)}while(Th)}if(Ph.current=ai,j=O!==null&&O.next!==null,Rh=0,P=O=N=null,Sh=!1,j)throw Error(p$2(300));return a}function bi(){var a=Uh!==0;return Uh=0,a}function ci(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return P===null?N.memoizedState=P=a:P=P.next=a,P}function di(){if(O===null){var a=N.alternate;a=a!==null?a.memoizedState:null}else a=O.next;var j=P===null?N.memoizedState:P.next;if(j!==null)P=j,O=a;else{if(a===null)throw Error(p$2(310));O=a,a={memoizedState:O.memoizedState,baseState:O.baseState,baseQueue:O.baseQueue,queue:O.queue,next:null},P===null?N.memoizedState=P=a:P=P.next=a}return P}function ei(a,j){return typeof j=="function"?j(a):j}function fi(a){var j=di(),_e=j.queue;if(_e===null)throw Error(p$2(311));_e.lastRenderedReducer=a;var et=O,nt=et.baseQueue,tt=_e.pending;if(tt!==null){if(nt!==null){var ot=nt.next;nt.next=tt.next,tt.next=ot}et.baseQueue=nt=tt,_e.pending=null}if(nt!==null){tt=nt.next,et=et.baseState;var ct=ot=null,ft=null,ht=tt;do{var dt=ht.lane;if((Rh&dt)===dt)ft!==null&&(ft=ft.next={lane:0,action:ht.action,hasEagerState:ht.hasEagerState,eagerState:ht.eagerState,next:null}),et=ht.hasEagerState?ht.eagerState:a(et,ht.action);else{var yt={lane:dt,action:ht.action,hasEagerState:ht.hasEagerState,eagerState:ht.eagerState,next:null};ft===null?(ct=ft=yt,ot=et):ft=ft.next=yt,N.lanes|=dt,hh|=dt}ht=ht.next}while(ht!==null&&ht!==tt);ft===null?ot=et:ft.next=ct,He(et,j.memoizedState)||(Ug=!0),j.memoizedState=et,j.baseState=ot,j.baseQueue=ft,_e.lastRenderedState=et}if(a=_e.interleaved,a!==null){nt=a;do tt=nt.lane,N.lanes|=tt,hh|=tt,nt=nt.next;while(nt!==a)}else nt===null&&(_e.lanes=0);return[j.memoizedState,_e.dispatch]}function gi(a){var j=di(),_e=j.queue;if(_e===null)throw Error(p$2(311));_e.lastRenderedReducer=a;var et=_e.dispatch,nt=_e.pending,tt=j.memoizedState;if(nt!==null){_e.pending=null;var ot=nt=nt.next;do tt=a(tt,ot.action),ot=ot.next;while(ot!==nt);He(tt,j.memoizedState)||(Ug=!0),j.memoizedState=tt,j.baseQueue===null&&(j.baseState=tt),_e.lastRenderedState=tt}return[tt,et]}function hi(){}function ii(a,j){var _e=N,et=di(),nt=j(),tt=!He(et.memoizedState,nt);if(tt&&(et.memoizedState=nt,Ug=!0),et=et.queue,ji(ki.bind(null,_e,et,a),[a]),et.getSnapshot!==j||tt||P!==null&&P.memoizedState.tag&1){if(_e.flags|=2048,li(9,mi.bind(null,_e,et,nt,j),void 0,null),R$1===null)throw Error(p$2(349));Rh&30||ni(_e,j,nt)}return nt}function ni(a,j,_e){a.flags|=16384,a={getSnapshot:j,value:_e},j=N.updateQueue,j===null?(j={lastEffect:null,stores:null},N.updateQueue=j,j.stores=[a]):(_e=j.stores,_e===null?j.stores=[a]:_e.push(a))}function mi(a,j,_e,et){j.value=_e,j.getSnapshot=et,oi(j)&&pi(a)}function ki(a,j,_e){return _e(function(){oi(j)&&pi(a)})}function oi(a){var j=a.getSnapshot;a=a.value;try{var _e=j();return!He(a,_e)}catch{return!0}}function pi(a){var j=Zg(a,1);j!==null&&mh(j,a,1,-1)}function qi(a){var j=ci();return typeof a=="function"&&(a=a()),j.memoizedState=j.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:a},j.queue=a,a=a.dispatch=ri.bind(null,N,a),[j.memoizedState,a]}function li(a,j,_e,et){return a={tag:a,create:j,destroy:_e,deps:et,next:null},j=N.updateQueue,j===null?(j={lastEffect:null,stores:null},N.updateQueue=j,j.lastEffect=a.next=a):(_e=j.lastEffect,_e===null?j.lastEffect=a.next=a:(et=_e.next,_e.next=a,a.next=et,j.lastEffect=a)),a}function si(){return di().memoizedState}function ti(a,j,_e,et){var nt=ci();N.flags|=a,nt.memoizedState=li(1|j,_e,void 0,et===void 0?null:et)}function ui(a,j,_e,et){var nt=di();et=et===void 0?null:et;var tt=void 0;if(O!==null){var ot=O.memoizedState;if(tt=ot.destroy,et!==null&&Wh(et,ot.deps)){nt.memoizedState=li(j,_e,tt,et);return}}N.flags|=a,nt.memoizedState=li(1|j,_e,tt,et)}function vi(a,j){return ti(8390656,8,a,j)}function ji(a,j){return ui(2048,8,a,j)}function wi(a,j){return ui(4,2,a,j)}function xi(a,j){return ui(4,4,a,j)}function yi(a,j){if(typeof j=="function")return a=a(),j(a),function(){j(null)};if(j!=null)return a=a(),j.current=a,function(){j.current=null}}function zi(a,j,_e){return _e=_e!=null?_e.concat([a]):null,ui(4,4,yi.bind(null,j,a),_e)}function Ai(){}function Bi(a,j){var _e=di();j=j===void 0?null:j;var et=_e.memoizedState;return et!==null&&j!==null&&Wh(j,et[1])?et[0]:(_e.memoizedState=[a,j],a)}function Ci(a,j){var _e=di();j=j===void 0?null:j;var et=_e.memoizedState;return et!==null&&j!==null&&Wh(j,et[1])?et[0]:(a=a(),_e.memoizedState=[a,j],a)}function Di(a,j,_e){return Rh&21?(He(_e,j)||(_e=yc(),N.lanes|=_e,hh|=_e,a.baseState=!0),j):(a.baseState&&(a.baseState=!1,Ug=!0),a.memoizedState=_e)}function Ei(a,j){var _e=C;C=_e!==0&&4>_e?_e:4,a(!0);var et=Qh.transition;Qh.transition={};try{a(!1),j()}finally{C=_e,Qh.transition=et}}function Fi(){return di().memoizedState}function Gi(a,j,_e){var et=lh(a);if(_e={lane:et,action:_e,hasEagerState:!1,eagerState:null,next:null},Hi(a))Ii(j,_e);else if(_e=Yg(a,j,_e,et),_e!==null){var nt=L();mh(_e,a,et,nt),Ji(_e,j,et)}}function ri(a,j,_e){var et=lh(a),nt={lane:et,action:_e,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(j,nt);else{var tt=a.alternate;if(a.lanes===0&&(tt===null||tt.lanes===0)&&(tt=j.lastRenderedReducer,tt!==null))try{var ot=j.lastRenderedState,ct=tt(ot,_e);if(nt.hasEagerState=!0,nt.eagerState=ct,He(ct,ot)){var ft=j.interleaved;ft===null?(nt.next=nt,Xg(j)):(nt.next=ft.next,ft.next=nt),j.interleaved=nt;return}}catch{}finally{}_e=Yg(a,j,nt,et),_e!==null&&(nt=L(),mh(_e,a,et,nt),Ji(_e,j,et))}}function Hi(a){var j=a.alternate;return a===N||j!==null&&j===N}function Ii(a,j){Th=Sh=!0;var _e=a.pending;_e===null?j.next=j:(j.next=_e.next,_e.next=j),a.pending=j}function Ji(a,j,_e){if(_e&4194240){var et=j.lanes;et&=a.pendingLanes,_e|=et,j.lanes=_e,Cc(a,_e)}}var ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,j){return ci().memoizedState=[a,j===void 0?null:j],a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,j,_e){return _e=_e!=null?_e.concat([a]):null,ti(4194308,4,yi.bind(null,j,a),_e)},useLayoutEffect:function(a,j){return ti(4194308,4,a,j)},useInsertionEffect:function(a,j){return ti(4,2,a,j)},useMemo:function(a,j){var _e=ci();return j=j===void 0?null:j,a=a(),_e.memoizedState=[a,j],a},useReducer:function(a,j,_e){var et=ci();return j=_e!==void 0?_e(j):j,et.memoizedState=et.baseState=j,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:j},et.queue=a,a=a.dispatch=Gi.bind(null,N,a),[et.memoizedState,a]},useRef:function(a){var j=ci();return a={current:a},j.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),j=a[0];return a=Ei.bind(null,a[1]),ci().memoizedState=a,[j,a]},useMutableSource:function(){},useSyncExternalStore:function(a,j,_e){var et=N,nt=ci();if(I){if(_e===void 0)throw Error(p$2(407));_e=_e()}else{if(_e=j(),R$1===null)throw Error(p$2(349));Rh&30||ni(et,j,_e)}nt.memoizedState=_e;var tt={value:_e,getSnapshot:j};return nt.queue=tt,vi(ki.bind(null,et,tt,a),[a]),et.flags|=2048,li(9,mi.bind(null,et,tt,_e,j),void 0,null),_e},useId:function(){var a=ci(),j=R$1.identifierPrefix;if(I){var _e=sg,et=rg;_e=(et&~(1<<32-oc(et)-1)).toString(32)+_e,j=":"+j+"R"+_e,_e=Uh++,0<_e&&(j+="H"+_e.toString(32)),j+=":"}else _e=Vh++,j=":"+j+"r"+_e.toString(32)+":";return a.memoizedState=j},unstable_isNewReconciler:!1},Zh={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},useDebugValue:Ai,useDeferredValue:function(a){var j=di();return Di(j,O.memoizedState,a)},useTransition:function(){var a=fi(ei)[0],j=di().memoizedState;return[a,j]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(a){var j=di();return O===null?j.memoizedState=a:Di(j,O.memoizedState,a)},useTransition:function(){var a=gi(ei)[0],j=di().memoizedState;return[a,j]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(a,j){try{var _e="",et=j;do _e+=Pa(et),et=et.return;while(et);var nt=_e}catch(tt){nt=`
|
|
40
40
|
Error generating stack: `+tt.message+`
|
|
41
41
|
`+tt.stack}return{value:a,source:j,stack:nt,digest:null}}function Li(a,j,_e){return{value:a,source:null,stack:_e??null,digest:j??null}}function Mi(a,j){try{console.error(j.value)}catch(_e){setTimeout(function(){throw _e})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(a,j,_e){_e=ch(-1,_e),_e.tag=3,_e.payload={element:null};var et=j.value;return _e.callback=function(){Pi||(Pi=!0,Qi=et),Mi(a,j)},_e}function Ri(a,j,_e){_e=ch(-1,_e),_e.tag=3;var et=a.type.getDerivedStateFromError;if(typeof et=="function"){var nt=j.value;_e.payload=function(){return et(nt)},_e.callback=function(){Mi(a,j)}}var tt=a.stateNode;return tt!==null&&typeof tt.componentDidCatch=="function"&&(_e.callback=function(){Mi(a,j),typeof et!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var ot=j.stack;this.componentDidCatch(j.value,{componentStack:ot!==null?ot:""})}),_e}function Ti(a,j,_e){var et=a.pingCache;if(et===null){et=a.pingCache=new Ni;var nt=new Set;et.set(j,nt)}else nt=et.get(j),nt===void 0&&(nt=new Set,et.set(j,nt));nt.has(_e)||(nt.add(_e),a=Ui.bind(null,a,j,_e),j.then(a,a))}function Vi(a){do{var j;if((j=a.tag===13)&&(j=a.memoizedState,j=j!==null?j.dehydrated!==null:!0),j)return a;a=a.return}while(a!==null);return null}function Wi(a,j,_e,et,nt){return a.mode&1?(a.flags|=65536,a.lanes=nt,a):(a===j?a.flags|=65536:(a.flags|=128,_e.flags|=131072,_e.flags&=-52805,_e.tag===1&&(_e.alternate===null?_e.tag=17:(j=ch(-1,1),j.tag=2,dh$1(_e,j,1))),_e.lanes|=1),a)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(a,j,_e,et){j.child=a===null?Ch(j,null,_e,et):Bh(j,a.child,_e,et)}function Zi(a,j,_e,et,nt){_e=_e.render;var tt=j.ref;return Tg(j,nt),et=Xh(a,j,_e,et,tt,nt),_e=bi(),a!==null&&!Ug?(j.updateQueue=a.updateQueue,j.flags&=-2053,a.lanes&=~nt,$i(a,j,nt)):(I&&_e&&vg(j),j.flags|=1,Yi(a,j,et,nt),j.child)}function aj(a,j,_e,et,nt){if(a===null){var tt=_e.type;return typeof tt=="function"&&!bj(tt)&&tt.defaultProps===void 0&&_e.compare===null&&_e.defaultProps===void 0?(j.tag=15,j.type=tt,cj(a,j,tt,et,nt)):(a=yh(_e.type,null,et,j,j.mode,nt),a.ref=j.ref,a.return=j,j.child=a)}if(tt=a.child,!(a.lanes&nt)){var ot=tt.memoizedProps;if(_e=_e.compare,_e=_e!==null?_e:Ie,_e(ot,et)&&a.ref===j.ref)return $i(a,j,nt)}return j.flags|=1,a=wh(tt,et),a.ref=j.ref,a.return=j,j.child=a}function cj(a,j,_e,et,nt){if(a!==null){var tt=a.memoizedProps;if(Ie(tt,et)&&a.ref===j.ref)if(Ug=!1,j.pendingProps=et=tt,(a.lanes&nt)!==0)a.flags&131072&&(Ug=!0);else return j.lanes=a.lanes,$i(a,j,nt)}return dj(a,j,_e,et,nt)}function ej(a,j,_e){var et=j.pendingProps,nt=et.children,tt=a!==null?a.memoizedState:null;if(et.mode==="hidden")if(!(j.mode&1))j.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(fj,gj),gj|=_e;else{if(!(_e&1073741824))return a=tt!==null?tt.baseLanes|_e:_e,j.lanes=j.childLanes=1073741824,j.memoizedState={baseLanes:a,cachePool:null,transitions:null},j.updateQueue=null,G(fj,gj),gj|=a,null;j.memoizedState={baseLanes:0,cachePool:null,transitions:null},et=tt!==null?tt.baseLanes:_e,G(fj,gj),gj|=et}else tt!==null?(et=tt.baseLanes|_e,j.memoizedState=null):et=_e,G(fj,gj),gj|=et;return Yi(a,j,nt,_e),j.child}function hj(a,j){var _e=j.ref;(a===null&&_e!==null||a!==null&&a.ref!==_e)&&(j.flags|=512,j.flags|=2097152)}function dj(a,j,_e,et,nt){var tt=Zf(_e)?Xf:H.current;return tt=Yf(j,tt),Tg(j,nt),_e=Xh(a,j,_e,et,tt,nt),et=bi(),a!==null&&!Ug?(j.updateQueue=a.updateQueue,j.flags&=-2053,a.lanes&=~nt,$i(a,j,nt)):(I&&et&&vg(j),j.flags|=1,Yi(a,j,_e,nt),j.child)}function ij(a,j,_e,et,nt){if(Zf(_e)){var tt=!0;cg(j)}else tt=!1;if(Tg(j,nt),j.stateNode===null)jj(a,j),ph(j,_e,et),rh$1(j,_e,et,nt),et=!0;else if(a===null){var ot=j.stateNode,ct=j.memoizedProps;ot.props=ct;var ft=ot.context,ht=_e.contextType;typeof ht=="object"&&ht!==null?ht=Vg(ht):(ht=Zf(_e)?Xf:H.current,ht=Yf(j,ht));var dt=_e.getDerivedStateFromProps,yt=typeof dt=="function"||typeof ot.getSnapshotBeforeUpdate=="function";yt||typeof ot.UNSAFE_componentWillReceiveProps!="function"&&typeof ot.componentWillReceiveProps!="function"||(ct!==et||ft!==ht)&&qh(j,ot,et,ht),$g=!1;var Tt=j.memoizedState;ot.state=Tt,gh(j,et,ot,nt),ft=j.memoizedState,ct!==et||Tt!==ft||Wf.current||$g?(typeof dt=="function"&&(kh(j,_e,dt,et),ft=j.memoizedState),(ct=$g||oh(j,_e,ct,et,Tt,ft,ht))?(yt||typeof ot.UNSAFE_componentWillMount!="function"&&typeof ot.componentWillMount!="function"||(typeof ot.componentWillMount=="function"&&ot.componentWillMount(),typeof ot.UNSAFE_componentWillMount=="function"&&ot.UNSAFE_componentWillMount()),typeof ot.componentDidMount=="function"&&(j.flags|=4194308)):(typeof ot.componentDidMount=="function"&&(j.flags|=4194308),j.memoizedProps=et,j.memoizedState=ft),ot.props=et,ot.state=ft,ot.context=ht,et=ct):(typeof ot.componentDidMount=="function"&&(j.flags|=4194308),et=!1)}else{ot=j.stateNode,bh(a,j),ct=j.memoizedProps,ht=j.type===j.elementType?ct:Lg(j.type,ct),ot.props=ht,yt=j.pendingProps,Tt=ot.context,ft=_e.contextType,typeof ft=="object"&&ft!==null?ft=Vg(ft):(ft=Zf(_e)?Xf:H.current,ft=Yf(j,ft));var St=_e.getDerivedStateFromProps;(dt=typeof St=="function"||typeof ot.getSnapshotBeforeUpdate=="function")||typeof ot.UNSAFE_componentWillReceiveProps!="function"&&typeof ot.componentWillReceiveProps!="function"||(ct!==yt||Tt!==ft)&&qh(j,ot,et,ft),$g=!1,Tt=j.memoizedState,ot.state=Tt,gh(j,et,ot,nt);var At=j.memoizedState;ct!==yt||Tt!==At||Wf.current||$g?(typeof St=="function"&&(kh(j,_e,St,et),At=j.memoizedState),(ht=$g||oh(j,_e,ht,et,Tt,At,ft)||!1)?(dt||typeof ot.UNSAFE_componentWillUpdate!="function"&&typeof ot.componentWillUpdate!="function"||(typeof ot.componentWillUpdate=="function"&&ot.componentWillUpdate(et,At,ft),typeof ot.UNSAFE_componentWillUpdate=="function"&&ot.UNSAFE_componentWillUpdate(et,At,ft)),typeof ot.componentDidUpdate=="function"&&(j.flags|=4),typeof ot.getSnapshotBeforeUpdate=="function"&&(j.flags|=1024)):(typeof ot.componentDidUpdate!="function"||ct===a.memoizedProps&&Tt===a.memoizedState||(j.flags|=4),typeof ot.getSnapshotBeforeUpdate!="function"||ct===a.memoizedProps&&Tt===a.memoizedState||(j.flags|=1024),j.memoizedProps=et,j.memoizedState=At),ot.props=et,ot.state=At,ot.context=ft,et=ht):(typeof ot.componentDidUpdate!="function"||ct===a.memoizedProps&&Tt===a.memoizedState||(j.flags|=4),typeof ot.getSnapshotBeforeUpdate!="function"||ct===a.memoizedProps&&Tt===a.memoizedState||(j.flags|=1024),et=!1)}return kj(a,j,_e,et,tt,nt)}function kj(a,j,_e,et,nt,tt){hj(a,j);var ot=(j.flags&128)!==0;if(!et&&!ot)return nt&&dg(j,_e,!1),$i(a,j,tt);et=j.stateNode,Xi.current=j;var ct=ot&&typeof _e.getDerivedStateFromError!="function"?null:et.render();return j.flags|=1,a!==null&&ot?(j.child=Bh(j,a.child,null,tt),j.child=Bh(j,null,ct,tt)):Yi(a,j,ct,tt),j.memoizedState=et.state,nt&&dg(j,_e,!0),j.child}function lj(a){var j=a.stateNode;j.pendingContext?ag(a,j.pendingContext,j.pendingContext!==j.context):j.context&&ag(a,j.context,!1),Ih(a,j.containerInfo)}function mj(a,j,_e,et,nt){return Ig(),Jg(nt),j.flags|=256,Yi(a,j,_e,et),j.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(a){return{baseLanes:a,cachePool:null,transitions:null}}function pj(a,j,_e){var et=j.pendingProps,nt=M.current,tt=!1,ot=(j.flags&128)!==0,ct;if((ct=ot)||(ct=a!==null&&a.memoizedState===null?!1:(nt&2)!==0),ct?(tt=!0,j.flags&=-129):(a===null||a.memoizedState!==null)&&(nt|=1),G(M,nt&1),a===null)return Eg(j),a=j.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(j.mode&1?a.data==="$!"?j.lanes=8:j.lanes=1073741824:j.lanes=1,null):(ot=et.children,a=et.fallback,tt?(et=j.mode,tt=j.child,ot={mode:"hidden",children:ot},!(et&1)&&tt!==null?(tt.childLanes=0,tt.pendingProps=ot):tt=qj(ot,et,0,null),a=Ah(a,et,_e,null),tt.return=j,a.return=j,tt.sibling=a,j.child=tt,j.child.memoizedState=oj(_e),j.memoizedState=nj,a):rj(j,ot));if(nt=a.memoizedState,nt!==null&&(ct=nt.dehydrated,ct!==null))return sj(a,j,ot,et,ct,nt,_e);if(tt){tt=et.fallback,ot=j.mode,nt=a.child,ct=nt.sibling;var ft={mode:"hidden",children:et.children};return!(ot&1)&&j.child!==nt?(et=j.child,et.childLanes=0,et.pendingProps=ft,j.deletions=null):(et=wh(nt,ft),et.subtreeFlags=nt.subtreeFlags&14680064),ct!==null?tt=wh(ct,tt):(tt=Ah(tt,ot,_e,null),tt.flags|=2),tt.return=j,et.return=j,et.sibling=tt,j.child=et,et=tt,tt=j.child,ot=a.child.memoizedState,ot=ot===null?oj(_e):{baseLanes:ot.baseLanes|_e,cachePool:null,transitions:ot.transitions},tt.memoizedState=ot,tt.childLanes=a.childLanes&~_e,j.memoizedState=nj,et}return tt=a.child,a=tt.sibling,et=wh(tt,{mode:"visible",children:et.children}),!(j.mode&1)&&(et.lanes=_e),et.return=j,et.sibling=null,a!==null&&(_e=j.deletions,_e===null?(j.deletions=[a],j.flags|=16):_e.push(a)),j.child=et,j.memoizedState=null,et}function rj(a,j){return j=qj({mode:"visible",children:j},a.mode,0,null),j.return=a,a.child=j}function tj(a,j,_e,et){return et!==null&&Jg(et),Bh(j,a.child,null,_e),a=rj(j,j.pendingProps.children),a.flags|=2,j.memoizedState=null,a}function sj(a,j,_e,et,nt,tt,ot){if(_e)return j.flags&256?(j.flags&=-257,et=Li(Error(p$2(422))),tj(a,j,ot,et)):j.memoizedState!==null?(j.child=a.child,j.flags|=128,null):(tt=et.fallback,nt=j.mode,et=qj({mode:"visible",children:et.children},nt,0,null),tt=Ah(tt,nt,ot,null),tt.flags|=2,et.return=j,tt.return=j,et.sibling=tt,j.child=et,j.mode&1&&Bh(j,a.child,null,ot),j.child.memoizedState=oj(ot),j.memoizedState=nj,tt);if(!(j.mode&1))return tj(a,j,ot,null);if(nt.data==="$!"){if(et=nt.nextSibling&&nt.nextSibling.dataset,et)var ct=et.dgst;return et=ct,tt=Error(p$2(419)),et=Li(tt,et,void 0),tj(a,j,ot,et)}if(ct=(ot&a.childLanes)!==0,Ug||ct){if(et=R$1,et!==null){switch(ot&-ot){case 4:nt=2;break;case 16:nt=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:nt=32;break;case 536870912:nt=268435456;break;default:nt=0}nt=nt&(et.suspendedLanes|ot)?0:nt,nt!==0&&nt!==tt.retryLane&&(tt.retryLane=nt,Zg(a,nt),mh(et,a,nt,-1))}return uj(),et=Li(Error(p$2(421))),tj(a,j,ot,et)}return nt.data==="$?"?(j.flags|=128,j.child=a.child,j=vj.bind(null,a),nt._reactRetry=j,null):(a=tt.treeContext,yg=Lf(nt.nextSibling),xg=j,I=!0,zg=null,a!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=a.id,sg=a.overflow,qg=j),j=rj(j,et.children),j.flags|=4096,j)}function wj(a,j,_e){a.lanes|=j;var et=a.alternate;et!==null&&(et.lanes|=j),Sg(a.return,j,_e)}function xj(a,j,_e,et,nt){var tt=a.memoizedState;tt===null?a.memoizedState={isBackwards:j,rendering:null,renderingStartTime:0,last:et,tail:_e,tailMode:nt}:(tt.isBackwards=j,tt.rendering=null,tt.renderingStartTime=0,tt.last=et,tt.tail=_e,tt.tailMode=nt)}function yj(a,j,_e){var et=j.pendingProps,nt=et.revealOrder,tt=et.tail;if(Yi(a,j,et.children,_e),et=M.current,et&2)et=et&1|2,j.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=j.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&wj(a,_e,j);else if(a.tag===19)wj(a,_e,j);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===j)break e;for(;a.sibling===null;){if(a.return===null||a.return===j)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}et&=1}if(G(M,et),!(j.mode&1))j.memoizedState=null;else switch(nt){case"forwards":for(_e=j.child,nt=null;_e!==null;)a=_e.alternate,a!==null&&Mh(a)===null&&(nt=_e),_e=_e.sibling;_e=nt,_e===null?(nt=j.child,j.child=null):(nt=_e.sibling,_e.sibling=null),xj(j,!1,nt,_e,tt);break;case"backwards":for(_e=null,nt=j.child,j.child=null;nt!==null;){if(a=nt.alternate,a!==null&&Mh(a)===null){j.child=nt;break}a=nt.sibling,nt.sibling=_e,_e=nt,nt=a}xj(j,!0,_e,null,tt);break;case"together":xj(j,!1,null,null,void 0);break;default:j.memoizedState=null}return j.child}function jj(a,j){!(j.mode&1)&&a!==null&&(a.alternate=null,j.alternate=null,j.flags|=2)}function $i(a,j,_e){if(a!==null&&(j.dependencies=a.dependencies),hh|=j.lanes,!(_e&j.childLanes))return null;if(a!==null&&j.child!==a.child)throw Error(p$2(153));if(j.child!==null){for(a=j.child,_e=wh(a,a.pendingProps),j.child=_e,_e.return=j;a.sibling!==null;)a=a.sibling,_e=_e.sibling=wh(a,a.pendingProps),_e.return=j;_e.sibling=null}return j.child}function zj(a,j,_e){switch(j.tag){case 3:lj(j),Ig();break;case 5:Kh$1(j);break;case 1:Zf(j.type)&&cg(j);break;case 4:Ih(j,j.stateNode.containerInfo);break;case 10:var et=j.type._context,nt=j.memoizedProps.value;G(Mg,et._currentValue),et._currentValue=nt;break;case 13:if(et=j.memoizedState,et!==null)return et.dehydrated!==null?(G(M,M.current&1),j.flags|=128,null):_e&j.child.childLanes?pj(a,j,_e):(G(M,M.current&1),a=$i(a,j,_e),a!==null?a.sibling:null);G(M,M.current&1);break;case 19:if(et=(_e&j.childLanes)!==0,a.flags&128){if(et)return yj(a,j,_e);j.flags|=128}if(nt=j.memoizedState,nt!==null&&(nt.rendering=null,nt.tail=null,nt.lastEffect=null),G(M,M.current),et)break;return null;case 22:case 23:return j.lanes=0,ej(a,j,_e)}return $i(a,j,_e)}var Aj,Bj,Cj,Dj;Aj=function(a,j){for(var _e=j.child;_e!==null;){if(_e.tag===5||_e.tag===6)a.appendChild(_e.stateNode);else if(_e.tag!==4&&_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===j)break;for(;_e.sibling===null;){if(_e.return===null||_e.return===j)return;_e=_e.return}_e.sibling.return=_e.return,_e=_e.sibling}};Bj=function(){};Cj=function(a,j,_e,et){var nt=a.memoizedProps;if(nt!==et){a=j.stateNode,Hh(Eh.current);var tt=null;switch(_e){case"input":nt=Ya(a,nt),et=Ya(a,et),tt=[];break;case"select":nt=A$1({},nt,{value:void 0}),et=A$1({},et,{value:void 0}),tt=[];break;case"textarea":nt=gb(a,nt),et=gb(a,et),tt=[];break;default:typeof nt.onClick!="function"&&typeof et.onClick=="function"&&(a.onclick=Bf)}ub(_e,et);var ot;_e=null;for(ht in nt)if(!et.hasOwnProperty(ht)&&nt.hasOwnProperty(ht)&&nt[ht]!=null)if(ht==="style"){var ct=nt[ht];for(ot in ct)ct.hasOwnProperty(ot)&&(_e||(_e={}),_e[ot]="")}else ht!=="dangerouslySetInnerHTML"&&ht!=="children"&&ht!=="suppressContentEditableWarning"&&ht!=="suppressHydrationWarning"&&ht!=="autoFocus"&&(ea.hasOwnProperty(ht)?tt||(tt=[]):(tt=tt||[]).push(ht,null));for(ht in et){var ft=et[ht];if(ct=nt!=null?nt[ht]:void 0,et.hasOwnProperty(ht)&&ft!==ct&&(ft!=null||ct!=null))if(ht==="style")if(ct){for(ot in ct)!ct.hasOwnProperty(ot)||ft&&ft.hasOwnProperty(ot)||(_e||(_e={}),_e[ot]="");for(ot in ft)ft.hasOwnProperty(ot)&&ct[ot]!==ft[ot]&&(_e||(_e={}),_e[ot]=ft[ot])}else _e||(tt||(tt=[]),tt.push(ht,_e)),_e=ft;else ht==="dangerouslySetInnerHTML"?(ft=ft?ft.__html:void 0,ct=ct?ct.__html:void 0,ft!=null&&ct!==ft&&(tt=tt||[]).push(ht,ft)):ht==="children"?typeof ft!="string"&&typeof ft!="number"||(tt=tt||[]).push(ht,""+ft):ht!=="suppressContentEditableWarning"&&ht!=="suppressHydrationWarning"&&(ea.hasOwnProperty(ht)?(ft!=null&&ht==="onScroll"&&D("scroll",a),tt||ct===ft||(tt=[])):(tt=tt||[]).push(ht,ft))}_e&&(tt=tt||[]).push("style",_e);var ht=tt;(j.updateQueue=ht)&&(j.flags|=4)}};Dj=function(a,j,_e,et){_e!==et&&(j.flags|=4)};function Ej(a,j){if(!I)switch(a.tailMode){case"hidden":j=a.tail;for(var _e=null;j!==null;)j.alternate!==null&&(_e=j),j=j.sibling;_e===null?a.tail=null:_e.sibling=null;break;case"collapsed":_e=a.tail;for(var et=null;_e!==null;)_e.alternate!==null&&(et=_e),_e=_e.sibling;et===null?j||a.tail===null?a.tail=null:a.tail.sibling=null:et.sibling=null}}function S$1(a){var j=a.alternate!==null&&a.alternate.child===a.child,_e=0,et=0;if(j)for(var nt=a.child;nt!==null;)_e|=nt.lanes|nt.childLanes,et|=nt.subtreeFlags&14680064,et|=nt.flags&14680064,nt.return=a,nt=nt.sibling;else for(nt=a.child;nt!==null;)_e|=nt.lanes|nt.childLanes,et|=nt.subtreeFlags,et|=nt.flags,nt.return=a,nt=nt.sibling;return a.subtreeFlags|=et,a.childLanes=_e,j}function Fj(a,j,_e){var et=j.pendingProps;switch(wg(j),j.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$1(j),null;case 1:return Zf(j.type)&&$f(),S$1(j),null;case 3:return et=j.stateNode,Jh(),E(Wf),E(H),Oh(),et.pendingContext&&(et.context=et.pendingContext,et.pendingContext=null),(a===null||a.child===null)&&(Gg(j)?j.flags|=4:a===null||a.memoizedState.isDehydrated&&!(j.flags&256)||(j.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(a,j),S$1(j),null;case 5:Lh(j);var nt=Hh(Gh.current);if(_e=j.type,a!==null&&j.stateNode!=null)Cj(a,j,_e,et,nt),a.ref!==j.ref&&(j.flags|=512,j.flags|=2097152);else{if(!et){if(j.stateNode===null)throw Error(p$2(166));return S$1(j),null}if(a=Hh(Eh.current),Gg(j)){et=j.stateNode,_e=j.type;var tt=j.memoizedProps;switch(et[Of]=j,et[Pf]=tt,a=(j.mode&1)!==0,_e){case"dialog":D("cancel",et),D("close",et);break;case"iframe":case"object":case"embed":D("load",et);break;case"video":case"audio":for(nt=0;nt<lf.length;nt++)D(lf[nt],et);break;case"source":D("error",et);break;case"img":case"image":case"link":D("error",et),D("load",et);break;case"details":D("toggle",et);break;case"input":Za(et,tt),D("invalid",et);break;case"select":et._wrapperState={wasMultiple:!!tt.multiple},D("invalid",et);break;case"textarea":hb(et,tt),D("invalid",et)}ub(_e,tt),nt=null;for(var ot in tt)if(tt.hasOwnProperty(ot)){var ct=tt[ot];ot==="children"?typeof ct=="string"?et.textContent!==ct&&(tt.suppressHydrationWarning!==!0&&Af(et.textContent,ct,a),nt=["children",ct]):typeof ct=="number"&&et.textContent!==""+ct&&(tt.suppressHydrationWarning!==!0&&Af(et.textContent,ct,a),nt=["children",""+ct]):ea.hasOwnProperty(ot)&&ct!=null&&ot==="onScroll"&&D("scroll",et)}switch(_e){case"input":Va(et),db(et,tt,!0);break;case"textarea":Va(et),jb(et);break;case"select":case"option":break;default:typeof tt.onClick=="function"&&(et.onclick=Bf)}et=nt,j.updateQueue=et,et!==null&&(j.flags|=4)}else{ot=nt.nodeType===9?nt:nt.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=kb(_e)),a==="http://www.w3.org/1999/xhtml"?_e==="script"?(a=ot.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof et.is=="string"?a=ot.createElement(_e,{is:et.is}):(a=ot.createElement(_e),_e==="select"&&(ot=a,et.multiple?ot.multiple=!0:et.size&&(ot.size=et.size))):a=ot.createElementNS(a,_e),a[Of]=j,a[Pf]=et,Aj(a,j,!1,!1),j.stateNode=a;e:{switch(ot=vb(_e,et),_e){case"dialog":D("cancel",a),D("close",a),nt=et;break;case"iframe":case"object":case"embed":D("load",a),nt=et;break;case"video":case"audio":for(nt=0;nt<lf.length;nt++)D(lf[nt],a);nt=et;break;case"source":D("error",a),nt=et;break;case"img":case"image":case"link":D("error",a),D("load",a),nt=et;break;case"details":D("toggle",a),nt=et;break;case"input":Za(a,et),nt=Ya(a,et),D("invalid",a);break;case"option":nt=et;break;case"select":a._wrapperState={wasMultiple:!!et.multiple},nt=A$1({},et,{value:void 0}),D("invalid",a);break;case"textarea":hb(a,et),nt=gb(a,et),D("invalid",a);break;default:nt=et}ub(_e,nt),ct=nt;for(tt in ct)if(ct.hasOwnProperty(tt)){var ft=ct[tt];tt==="style"?sb(a,ft):tt==="dangerouslySetInnerHTML"?(ft=ft?ft.__html:void 0,ft!=null&&nb(a,ft)):tt==="children"?typeof ft=="string"?(_e!=="textarea"||ft!=="")&&ob(a,ft):typeof ft=="number"&&ob(a,""+ft):tt!=="suppressContentEditableWarning"&&tt!=="suppressHydrationWarning"&&tt!=="autoFocus"&&(ea.hasOwnProperty(tt)?ft!=null&&tt==="onScroll"&&D("scroll",a):ft!=null&&ta(a,tt,ft,ot))}switch(_e){case"input":Va(a),db(a,et,!1);break;case"textarea":Va(a),jb(a);break;case"option":et.value!=null&&a.setAttribute("value",""+Sa(et.value));break;case"select":a.multiple=!!et.multiple,tt=et.value,tt!=null?fb(a,!!et.multiple,tt,!1):et.defaultValue!=null&&fb(a,!!et.multiple,et.defaultValue,!0);break;default:typeof nt.onClick=="function"&&(a.onclick=Bf)}switch(_e){case"button":case"input":case"select":case"textarea":et=!!et.autoFocus;break e;case"img":et=!0;break e;default:et=!1}}et&&(j.flags|=4)}j.ref!==null&&(j.flags|=512,j.flags|=2097152)}return S$1(j),null;case 6:if(a&&j.stateNode!=null)Dj(a,j,a.memoizedProps,et);else{if(typeof et!="string"&&j.stateNode===null)throw Error(p$2(166));if(_e=Hh(Gh.current),Hh(Eh.current),Gg(j)){if(et=j.stateNode,_e=j.memoizedProps,et[Of]=j,(tt=et.nodeValue!==_e)&&(a=xg,a!==null))switch(a.tag){case 3:Af(et.nodeValue,_e,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Af(et.nodeValue,_e,(a.mode&1)!==0)}tt&&(j.flags|=4)}else et=(_e.nodeType===9?_e:_e.ownerDocument).createTextNode(et),et[Of]=j,j.stateNode=et}return S$1(j),null;case 13:if(E(M),et=j.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(I&&yg!==null&&j.mode&1&&!(j.flags&128))Hg(),Ig(),j.flags|=98560,tt=!1;else if(tt=Gg(j),et!==null&&et.dehydrated!==null){if(a===null){if(!tt)throw Error(p$2(318));if(tt=j.memoizedState,tt=tt!==null?tt.dehydrated:null,!tt)throw Error(p$2(317));tt[Of]=j}else Ig(),!(j.flags&128)&&(j.memoizedState=null),j.flags|=4;S$1(j),tt=!1}else zg!==null&&(Gj(zg),zg=null),tt=!0;if(!tt)return j.flags&65536?j:null}return j.flags&128?(j.lanes=_e,j):(et=et!==null,et!==(a!==null&&a.memoizedState!==null)&&et&&(j.child.flags|=8192,j.mode&1&&(a===null||M.current&1?T===0&&(T=3):uj())),j.updateQueue!==null&&(j.flags|=4),S$1(j),null);case 4:return Jh(),Bj(a,j),a===null&&sf(j.stateNode.containerInfo),S$1(j),null;case 10:return Rg(j.type._context),S$1(j),null;case 17:return Zf(j.type)&&$f(),S$1(j),null;case 19:if(E(M),tt=j.memoizedState,tt===null)return S$1(j),null;if(et=(j.flags&128)!==0,ot=tt.rendering,ot===null)if(et)Ej(tt,!1);else{if(T!==0||a!==null&&a.flags&128)for(a=j.child;a!==null;){if(ot=Mh(a),ot!==null){for(j.flags|=128,Ej(tt,!1),et=ot.updateQueue,et!==null&&(j.updateQueue=et,j.flags|=4),j.subtreeFlags=0,et=_e,_e=j.child;_e!==null;)tt=_e,a=et,tt.flags&=14680066,ot=tt.alternate,ot===null?(tt.childLanes=0,tt.lanes=a,tt.child=null,tt.subtreeFlags=0,tt.memoizedProps=null,tt.memoizedState=null,tt.updateQueue=null,tt.dependencies=null,tt.stateNode=null):(tt.childLanes=ot.childLanes,tt.lanes=ot.lanes,tt.child=ot.child,tt.subtreeFlags=0,tt.deletions=null,tt.memoizedProps=ot.memoizedProps,tt.memoizedState=ot.memoizedState,tt.updateQueue=ot.updateQueue,tt.type=ot.type,a=ot.dependencies,tt.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),_e=_e.sibling;return G(M,M.current&1|2),j.child}a=a.sibling}tt.tail!==null&&B()>Hj&&(j.flags|=128,et=!0,Ej(tt,!1),j.lanes=4194304)}else{if(!et)if(a=Mh(ot),a!==null){if(j.flags|=128,et=!0,_e=a.updateQueue,_e!==null&&(j.updateQueue=_e,j.flags|=4),Ej(tt,!0),tt.tail===null&&tt.tailMode==="hidden"&&!ot.alternate&&!I)return S$1(j),null}else 2*B()-tt.renderingStartTime>Hj&&_e!==1073741824&&(j.flags|=128,et=!0,Ej(tt,!1),j.lanes=4194304);tt.isBackwards?(ot.sibling=j.child,j.child=ot):(_e=tt.last,_e!==null?_e.sibling=ot:j.child=ot,tt.last=ot)}return tt.tail!==null?(j=tt.tail,tt.rendering=j,tt.tail=j.sibling,tt.renderingStartTime=B(),j.sibling=null,_e=M.current,G(M,et?_e&1|2:_e&1),j):(S$1(j),null);case 22:case 23:return Ij(),et=j.memoizedState!==null,a!==null&&a.memoizedState!==null!==et&&(j.flags|=8192),et&&j.mode&1?gj&1073741824&&(S$1(j),j.subtreeFlags&6&&(j.flags|=8192)):S$1(j),null;case 24:return null;case 25:return null}throw Error(p$2(156,j.tag))}function Jj(a,j){switch(wg(j),j.tag){case 1:return Zf(j.type)&&$f(),a=j.flags,a&65536?(j.flags=a&-65537|128,j):null;case 3:return Jh(),E(Wf),E(H),Oh(),a=j.flags,a&65536&&!(a&128)?(j.flags=a&-65537|128,j):null;case 5:return Lh(j),null;case 13:if(E(M),a=j.memoizedState,a!==null&&a.dehydrated!==null){if(j.alternate===null)throw Error(p$2(340));Ig()}return a=j.flags,a&65536?(j.flags=a&-65537|128,j):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(j.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Mj(a,j){var _e=a.ref;if(_e!==null)if(typeof _e=="function")try{_e(null)}catch(et){W(a,j,et)}else _e.current=null}function Nj(a,j,_e){try{_e()}catch(et){W(a,j,et)}}var Oj=!1;function Pj(a,j){if(Cf=dd,a=Me(),Ne(a)){if("selectionStart"in a)var _e={start:a.selectionStart,end:a.selectionEnd};else e:{_e=(_e=a.ownerDocument)&&_e.defaultView||window;var et=_e.getSelection&&_e.getSelection();if(et&&et.rangeCount!==0){_e=et.anchorNode;var nt=et.anchorOffset,tt=et.focusNode;et=et.focusOffset;try{_e.nodeType,tt.nodeType}catch{_e=null;break e}var ot=0,ct=-1,ft=-1,ht=0,dt=0,yt=a,Tt=null;t:for(;;){for(var St;yt!==_e||nt!==0&&yt.nodeType!==3||(ct=ot+nt),yt!==tt||et!==0&&yt.nodeType!==3||(ft=ot+et),yt.nodeType===3&&(ot+=yt.nodeValue.length),(St=yt.firstChild)!==null;)Tt=yt,yt=St;for(;;){if(yt===a)break t;if(Tt===_e&&++ht===nt&&(ct=ot),Tt===tt&&++dt===et&&(ft=ot),(St=yt.nextSibling)!==null)break;yt=Tt,Tt=yt.parentNode}yt=St}_e=ct===-1||ft===-1?null:{start:ct,end:ft}}else _e=null}_e=_e||{start:0,end:0}}else _e=null;for(Df={focusedElem:a,selectionRange:_e},dd=!1,V=j;V!==null;)if(j=V,a=j.child,(j.subtreeFlags&1028)!==0&&a!==null)a.return=j,V=a;else for(;V!==null;){j=V;try{var At=j.alternate;if(j.flags&1024)switch(j.tag){case 0:case 11:case 15:break;case 1:if(At!==null){var Rt=At.memoizedProps,It=At.memoizedState,Ct=j.stateNode,kt=Ct.getSnapshotBeforeUpdate(j.elementType===j.type?Rt:Lg(j.type,Rt),It);Ct.__reactInternalSnapshotBeforeUpdate=kt}break;case 3:var Pt=j.stateNode.containerInfo;Pt.nodeType===1?Pt.textContent="":Pt.nodeType===9&&Pt.documentElement&&Pt.removeChild(Pt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$2(163))}}catch(Bt){W(j,j.return,Bt)}if(a=j.sibling,a!==null){a.return=j.return,V=a;break}V=j.return}return At=Oj,Oj=!1,At}function Qj(a,j,_e){var et=j.updateQueue;if(et=et!==null?et.lastEffect:null,et!==null){var nt=et=et.next;do{if((nt.tag&a)===a){var tt=nt.destroy;nt.destroy=void 0,tt!==void 0&&Nj(j,_e,tt)}nt=nt.next}while(nt!==et)}}function Rj(a,j){if(j=j.updateQueue,j=j!==null?j.lastEffect:null,j!==null){var _e=j=j.next;do{if((_e.tag&a)===a){var et=_e.create;_e.destroy=et()}_e=_e.next}while(_e!==j)}}function Sj(a){var j=a.ref;if(j!==null){var _e=a.stateNode;switch(a.tag){case 5:a=_e;break;default:a=_e}typeof j=="function"?j(a):j.current=a}}function Tj(a){var j=a.alternate;j!==null&&(a.alternate=null,Tj(j)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(j=a.stateNode,j!==null&&(delete j[Of],delete j[Pf],delete j[of],delete j[Qf],delete j[Rf])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Uj(a){return a.tag===5||a.tag===3||a.tag===4}function Vj(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Uj(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Wj(a,j,_e){var et=a.tag;if(et===5||et===6)a=a.stateNode,j?_e.nodeType===8?_e.parentNode.insertBefore(a,j):_e.insertBefore(a,j):(_e.nodeType===8?(j=_e.parentNode,j.insertBefore(a,_e)):(j=_e,j.appendChild(a)),_e=_e._reactRootContainer,_e!=null||j.onclick!==null||(j.onclick=Bf));else if(et!==4&&(a=a.child,a!==null))for(Wj(a,j,_e),a=a.sibling;a!==null;)Wj(a,j,_e),a=a.sibling}function Xj(a,j,_e){var et=a.tag;if(et===5||et===6)a=a.stateNode,j?_e.insertBefore(a,j):_e.appendChild(a);else if(et!==4&&(a=a.child,a!==null))for(Xj(a,j,_e),a=a.sibling;a!==null;)Xj(a,j,_e),a=a.sibling}var X=null,Yj=!1;function Zj(a,j,_e){for(_e=_e.child;_e!==null;)ak(a,j,_e),_e=_e.sibling}function ak(a,j,_e){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,_e)}catch{}switch(_e.tag){case 5:U||Mj(_e,j);case 6:var et=X,nt=Yj;X=null,Zj(a,j,_e),X=et,Yj=nt,X!==null&&(Yj?(a=X,_e=_e.stateNode,a.nodeType===8?a.parentNode.removeChild(_e):a.removeChild(_e)):X.removeChild(_e.stateNode));break;case 18:X!==null&&(Yj?(a=X,_e=_e.stateNode,a.nodeType===8?Kf(a.parentNode,_e):a.nodeType===1&&Kf(a,_e),bd(a)):Kf(X,_e.stateNode));break;case 4:et=X,nt=Yj,X=_e.stateNode.containerInfo,Yj=!0,Zj(a,j,_e),X=et,Yj=nt;break;case 0:case 11:case 14:case 15:if(!U&&(et=_e.updateQueue,et!==null&&(et=et.lastEffect,et!==null))){nt=et=et.next;do{var tt=nt,ot=tt.destroy;tt=tt.tag,ot!==void 0&&(tt&2||tt&4)&&Nj(_e,j,ot),nt=nt.next}while(nt!==et)}Zj(a,j,_e);break;case 1:if(!U&&(Mj(_e,j),et=_e.stateNode,typeof et.componentWillUnmount=="function"))try{et.props=_e.memoizedProps,et.state=_e.memoizedState,et.componentWillUnmount()}catch(ct){W(_e,j,ct)}Zj(a,j,_e);break;case 21:Zj(a,j,_e);break;case 22:_e.mode&1?(U=(et=U)||_e.memoizedState!==null,Zj(a,j,_e),U=et):Zj(a,j,_e);break;default:Zj(a,j,_e)}}function bk(a){var j=a.updateQueue;if(j!==null){a.updateQueue=null;var _e=a.stateNode;_e===null&&(_e=a.stateNode=new Lj),j.forEach(function(et){var nt=ck.bind(null,a,et);_e.has(et)||(_e.add(et),et.then(nt,nt))})}}function dk(a,j){var _e=j.deletions;if(_e!==null)for(var et=0;et<_e.length;et++){var nt=_e[et];try{var tt=a,ot=j,ct=ot;e:for(;ct!==null;){switch(ct.tag){case 5:X=ct.stateNode,Yj=!1;break e;case 3:X=ct.stateNode.containerInfo,Yj=!0;break e;case 4:X=ct.stateNode.containerInfo,Yj=!0;break e}ct=ct.return}if(X===null)throw Error(p$2(160));ak(tt,ot,nt),X=null,Yj=!1;var ft=nt.alternate;ft!==null&&(ft.return=null),nt.return=null}catch(ht){W(nt,j,ht)}}if(j.subtreeFlags&12854)for(j=j.child;j!==null;)ek(j,a),j=j.sibling}function ek(a,j){var _e=a.alternate,et=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(dk(j,a),fk(a),et&4){try{Qj(3,a,a.return),Rj(3,a)}catch(Rt){W(a,a.return,Rt)}try{Qj(5,a,a.return)}catch(Rt){W(a,a.return,Rt)}}break;case 1:dk(j,a),fk(a),et&512&&_e!==null&&Mj(_e,_e.return);break;case 5:if(dk(j,a),fk(a),et&512&&_e!==null&&Mj(_e,_e.return),a.flags&32){var nt=a.stateNode;try{ob(nt,"")}catch(Rt){W(a,a.return,Rt)}}if(et&4&&(nt=a.stateNode,nt!=null)){var tt=a.memoizedProps,ot=_e!==null?_e.memoizedProps:tt,ct=a.type,ft=a.updateQueue;if(a.updateQueue=null,ft!==null)try{ct==="input"&&tt.type==="radio"&&tt.name!=null&&ab(nt,tt),vb(ct,ot);var ht=vb(ct,tt);for(ot=0;ot<ft.length;ot+=2){var dt=ft[ot],yt=ft[ot+1];dt==="style"?sb(nt,yt):dt==="dangerouslySetInnerHTML"?nb(nt,yt):dt==="children"?ob(nt,yt):ta(nt,dt,yt,ht)}switch(ct){case"input":bb(nt,tt);break;case"textarea":ib(nt,tt);break;case"select":var Tt=nt._wrapperState.wasMultiple;nt._wrapperState.wasMultiple=!!tt.multiple;var St=tt.value;St!=null?fb(nt,!!tt.multiple,St,!1):Tt!==!!tt.multiple&&(tt.defaultValue!=null?fb(nt,!!tt.multiple,tt.defaultValue,!0):fb(nt,!!tt.multiple,tt.multiple?[]:"",!1))}nt[Pf]=tt}catch(Rt){W(a,a.return,Rt)}}break;case 6:if(dk(j,a),fk(a),et&4){if(a.stateNode===null)throw Error(p$2(162));nt=a.stateNode,tt=a.memoizedProps;try{nt.nodeValue=tt}catch(Rt){W(a,a.return,Rt)}}break;case 3:if(dk(j,a),fk(a),et&4&&_e!==null&&_e.memoizedState.isDehydrated)try{bd(j.containerInfo)}catch(Rt){W(a,a.return,Rt)}break;case 4:dk(j,a),fk(a);break;case 13:dk(j,a),fk(a),nt=a.child,nt.flags&8192&&(tt=nt.memoizedState!==null,nt.stateNode.isHidden=tt,!tt||nt.alternate!==null&&nt.alternate.memoizedState!==null||(gk=B())),et&4&&bk(a);break;case 22:if(dt=_e!==null&&_e.memoizedState!==null,a.mode&1?(U=(ht=U)||dt,dk(j,a),U=ht):dk(j,a),fk(a),et&8192){if(ht=a.memoizedState!==null,(a.stateNode.isHidden=ht)&&!dt&&a.mode&1)for(V=a,dt=a.child;dt!==null;){for(yt=V=dt;V!==null;){switch(Tt=V,St=Tt.child,Tt.tag){case 0:case 11:case 14:case 15:Qj(4,Tt,Tt.return);break;case 1:Mj(Tt,Tt.return);var At=Tt.stateNode;if(typeof At.componentWillUnmount=="function"){et=Tt,_e=Tt.return;try{j=et,At.props=j.memoizedProps,At.state=j.memoizedState,At.componentWillUnmount()}catch(Rt){W(et,_e,Rt)}}break;case 5:Mj(Tt,Tt.return);break;case 22:if(Tt.memoizedState!==null){hk(yt);continue}}St!==null?(St.return=Tt,V=St):hk(yt)}dt=dt.sibling}e:for(dt=null,yt=a;;){if(yt.tag===5){if(dt===null){dt=yt;try{nt=yt.stateNode,ht?(tt=nt.style,typeof tt.setProperty=="function"?tt.setProperty("display","none","important"):tt.display="none"):(ct=yt.stateNode,ft=yt.memoizedProps.style,ot=ft!=null&&ft.hasOwnProperty("display")?ft.display:null,ct.style.display=rb("display",ot))}catch(Rt){W(a,a.return,Rt)}}}else if(yt.tag===6){if(dt===null)try{yt.stateNode.nodeValue=ht?"":yt.memoizedProps}catch(Rt){W(a,a.return,Rt)}}else if((yt.tag!==22&&yt.tag!==23||yt.memoizedState===null||yt===a)&&yt.child!==null){yt.child.return=yt,yt=yt.child;continue}if(yt===a)break e;for(;yt.sibling===null;){if(yt.return===null||yt.return===a)break e;dt===yt&&(dt=null),yt=yt.return}dt===yt&&(dt=null),yt.sibling.return=yt.return,yt=yt.sibling}}break;case 19:dk(j,a),fk(a),et&4&&bk(a);break;case 21:break;default:dk(j,a),fk(a)}}function fk(a){var j=a.flags;if(j&2){try{e:{for(var _e=a.return;_e!==null;){if(Uj(_e)){var et=_e;break e}_e=_e.return}throw Error(p$2(160))}switch(et.tag){case 5:var nt=et.stateNode;et.flags&32&&(ob(nt,""),et.flags&=-33);var tt=Vj(a);Xj(a,tt,nt);break;case 3:case 4:var ot=et.stateNode.containerInfo,ct=Vj(a);Wj(a,ct,ot);break;default:throw Error(p$2(161))}}catch(ft){W(a,a.return,ft)}a.flags&=-3}j&4096&&(a.flags&=-4097)}function ik(a,j,_e){V=a,jk(a)}function jk(a,j,_e){for(var et=(a.mode&1)!==0;V!==null;){var nt=V,tt=nt.child;if(nt.tag===22&&et){var ot=nt.memoizedState!==null||Kj;if(!ot){var ct=nt.alternate,ft=ct!==null&&ct.memoizedState!==null||U;ct=Kj;var ht=U;if(Kj=ot,(U=ft)&&!ht)for(V=nt;V!==null;)ot=V,ft=ot.child,ot.tag===22&&ot.memoizedState!==null?kk(nt):ft!==null?(ft.return=ot,V=ft):kk(nt);for(;tt!==null;)V=tt,jk(tt),tt=tt.sibling;V=nt,Kj=ct,U=ht}lk(a)}else nt.subtreeFlags&8772&&tt!==null?(tt.return=nt,V=tt):lk(a)}}function lk(a){for(;V!==null;){var j=V;if(j.flags&8772){var _e=j.alternate;try{if(j.flags&8772)switch(j.tag){case 0:case 11:case 15:U||Rj(5,j);break;case 1:var et=j.stateNode;if(j.flags&4&&!U)if(_e===null)et.componentDidMount();else{var nt=j.elementType===j.type?_e.memoizedProps:Lg(j.type,_e.memoizedProps);et.componentDidUpdate(nt,_e.memoizedState,et.__reactInternalSnapshotBeforeUpdate)}var tt=j.updateQueue;tt!==null&&ih(j,tt,et);break;case 3:var ot=j.updateQueue;if(ot!==null){if(_e=null,j.child!==null)switch(j.child.tag){case 5:_e=j.child.stateNode;break;case 1:_e=j.child.stateNode}ih(j,ot,_e)}break;case 5:var ct=j.stateNode;if(_e===null&&j.flags&4){_e=ct;var ft=j.memoizedProps;switch(j.type){case"button":case"input":case"select":case"textarea":ft.autoFocus&&_e.focus();break;case"img":ft.src&&(_e.src=ft.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(j.memoizedState===null){var ht=j.alternate;if(ht!==null){var dt=ht.memoizedState;if(dt!==null){var yt=dt.dehydrated;yt!==null&&bd(yt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$2(163))}U||j.flags&512&&Sj(j)}catch(Tt){W(j,j.return,Tt)}}if(j===a){V=null;break}if(_e=j.sibling,_e!==null){_e.return=j.return,V=_e;break}V=j.return}}function hk(a){for(;V!==null;){var j=V;if(j===a){V=null;break}var _e=j.sibling;if(_e!==null){_e.return=j.return,V=_e;break}V=j.return}}function kk(a){for(;V!==null;){var j=V;try{switch(j.tag){case 0:case 11:case 15:var _e=j.return;try{Rj(4,j)}catch(ft){W(j,_e,ft)}break;case 1:var et=j.stateNode;if(typeof et.componentDidMount=="function"){var nt=j.return;try{et.componentDidMount()}catch(ft){W(j,nt,ft)}}var tt=j.return;try{Sj(j)}catch(ft){W(j,tt,ft)}break;case 5:var ot=j.return;try{Sj(j)}catch(ft){W(j,ot,ft)}}}catch(ft){W(j,j.return,ft)}if(j===a){V=null;break}var ct=j.sibling;if(ct!==null){ct.return=j.return,V=ct;break}V=j.return}}var mk=Math.ceil,nk=ua.ReactCurrentDispatcher,ok=ua.ReactCurrentOwner,pk=ua.ReactCurrentBatchConfig,K$1=0,R$1=null,Y=null,Z=0,gj=0,fj=Uf(0),T=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk=null,gk=0,Hj=1/0,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0;function L(){return K$1&6?B():Bk!==-1?Bk:Bk=B()}function lh(a){return a.mode&1?K$1&2&&Z!==0?Z&-Z:Kg.transition!==null?(Ck===0&&(Ck=yc()),Ck):(a=C,a!==0||(a=window.event,a=a===void 0?16:jd(a.type)),a):1}function mh(a,j,_e,et){if(50<zk)throw zk=0,Ak=null,Error(p$2(185));Ac(a,_e,et),(!(K$1&2)||a!==R$1)&&(a===R$1&&(!(K$1&2)&&(rk|=_e),T===4&&Dk(a,Z)),Ek(a,et),_e===1&&K$1===0&&!(j.mode&1)&&(Hj=B()+500,fg&&jg()))}function Ek(a,j){var _e=a.callbackNode;wc(a,j);var et=uc(a,a===R$1?Z:0);if(et===0)_e!==null&&bc(_e),a.callbackNode=null,a.callbackPriority=0;else if(j=et&-et,a.callbackPriority!==j){if(_e!=null&&bc(_e),j===1)a.tag===0?ig(Fk.bind(null,a)):hg(Fk.bind(null,a)),Jf(function(){!(K$1&6)&&jg()}),_e=null;else{switch(Dc(et)){case 1:_e=fc;break;case 4:_e=gc;break;case 16:_e=hc;break;case 536870912:_e=jc;break;default:_e=hc}_e=Gk(_e,Hk.bind(null,a))}a.callbackPriority=j,a.callbackNode=_e}}function Hk(a,j){if(Bk=-1,Ck=0,K$1&6)throw Error(p$2(327));var _e=a.callbackNode;if(Ik()&&a.callbackNode!==_e)return null;var et=uc(a,a===R$1?Z:0);if(et===0)return null;if(et&30||et&a.expiredLanes||j)j=Jk(a,et);else{j=et;var nt=K$1;K$1|=2;var tt=Kk();(R$1!==a||Z!==j)&&(vk=null,Hj=B()+500,Lk(a,j));do try{Mk();break}catch(ct){Nk(a,ct)}while(!0);Qg(),nk.current=tt,K$1=nt,Y!==null?j=0:(R$1=null,Z=0,j=T)}if(j!==0){if(j===2&&(nt=xc(a),nt!==0&&(et=nt,j=Ok(a,nt))),j===1)throw _e=qk,Lk(a,0),Dk(a,et),Ek(a,B()),_e;if(j===6)Dk(a,et);else{if(nt=a.current.alternate,!(et&30)&&!Pk(nt)&&(j=Jk(a,et),j===2&&(tt=xc(a),tt!==0&&(et=tt,j=Ok(a,tt))),j===1))throw _e=qk,Lk(a,0),Dk(a,et),Ek(a,B()),_e;switch(a.finishedWork=nt,a.finishedLanes=et,j){case 0:case 1:throw Error(p$2(345));case 2:Qk(a,uk,vk);break;case 3:if(Dk(a,et),(et&130023424)===et&&(j=gk+500-B(),10<j)){if(uc(a,0)!==0)break;if(nt=a.suspendedLanes,(nt&et)!==et){L(),a.pingedLanes|=a.suspendedLanes&nt;break}a.timeoutHandle=Ff(Qk.bind(null,a,uk,vk),j);break}Qk(a,uk,vk);break;case 4:if(Dk(a,et),(et&4194240)===et)break;for(j=a.eventTimes,nt=-1;0<et;){var ot=31-oc(et);tt=1<<ot,ot=j[ot],ot>nt&&(nt=ot),et&=~tt}if(et=nt,et=B()-et,et=(120>et?120:480>et?480:1080>et?1080:1920>et?1920:3e3>et?3e3:4320>et?4320:1960*mk(et/1960))-et,10<et){a.timeoutHandle=Ff(Qk.bind(null,a,uk,vk),et);break}Qk(a,uk,vk);break;case 5:Qk(a,uk,vk);break;default:throw Error(p$2(329))}}}return Ek(a,B()),a.callbackNode===_e?Hk.bind(null,a):null}function Ok(a,j){var _e=tk;return a.current.memoizedState.isDehydrated&&(Lk(a,j).flags|=256),a=Jk(a,j),a!==2&&(j=uk,uk=_e,j!==null&&Gj(j)),a}function Gj(a){uk===null?uk=a:uk.push.apply(uk,a)}function Pk(a){for(var j=a;;){if(j.flags&16384){var _e=j.updateQueue;if(_e!==null&&(_e=_e.stores,_e!==null))for(var et=0;et<_e.length;et++){var nt=_e[et],tt=nt.getSnapshot;nt=nt.value;try{if(!He(tt(),nt))return!1}catch{return!1}}}if(_e=j.child,j.subtreeFlags&16384&&_e!==null)_e.return=j,j=_e;else{if(j===a)break;for(;j.sibling===null;){if(j.return===null||j.return===a)return!0;j=j.return}j.sibling.return=j.return,j=j.sibling}}return!0}function Dk(a,j){for(j&=~sk,j&=~rk,a.suspendedLanes|=j,a.pingedLanes&=~j,a=a.expirationTimes;0<j;){var _e=31-oc(j),et=1<<_e;a[_e]=-1,j&=~et}}function Fk(a){if(K$1&6)throw Error(p$2(327));Ik();var j=uc(a,0);if(!(j&1))return Ek(a,B()),null;var _e=Jk(a,j);if(a.tag!==0&&_e===2){var et=xc(a);et!==0&&(j=et,_e=Ok(a,et))}if(_e===1)throw _e=qk,Lk(a,0),Dk(a,j),Ek(a,B()),_e;if(_e===6)throw Error(p$2(345));return a.finishedWork=a.current.alternate,a.finishedLanes=j,Qk(a,uk,vk),Ek(a,B()),null}function Rk(a,j){var _e=K$1;K$1|=1;try{return a(j)}finally{K$1=_e,K$1===0&&(Hj=B()+500,fg&&jg())}}function Sk(a){xk!==null&&xk.tag===0&&!(K$1&6)&&Ik();var j=K$1;K$1|=1;var _e=pk.transition,et=C;try{if(pk.transition=null,C=1,a)return a()}finally{C=et,pk.transition=_e,K$1=j,!(K$1&6)&&jg()}}function Ij(){gj=fj.current,E(fj)}function Lk(a,j){a.finishedWork=null,a.finishedLanes=0;var _e=a.timeoutHandle;if(_e!==-1&&(a.timeoutHandle=-1,Gf(_e)),Y!==null)for(_e=Y.return;_e!==null;){var et=_e;switch(wg(et),et.tag){case 1:et=et.type.childContextTypes,et!=null&&$f();break;case 3:Jh(),E(Wf),E(H),Oh();break;case 5:Lh(et);break;case 4:Jh();break;case 13:E(M);break;case 19:E(M);break;case 10:Rg(et.type._context);break;case 22:case 23:Ij()}_e=_e.return}if(R$1=a,Y=a=wh(a.current,null),Z=gj=j,T=0,qk=null,sk=rk=hh=0,uk=tk=null,Wg!==null){for(j=0;j<Wg.length;j++)if(_e=Wg[j],et=_e.interleaved,et!==null){_e.interleaved=null;var nt=et.next,tt=_e.pending;if(tt!==null){var ot=tt.next;tt.next=nt,et.next=ot}_e.pending=et}Wg=null}return a}function Nk(a,j){do{var _e=Y;try{if(Qg(),Ph.current=ai,Sh){for(var et=N.memoizedState;et!==null;){var nt=et.queue;nt!==null&&(nt.pending=null),et=et.next}Sh=!1}if(Rh=0,P=O=N=null,Th=!1,Uh=0,ok.current=null,_e===null||_e.return===null){T=1,qk=j,Y=null;break}e:{var tt=a,ot=_e.return,ct=_e,ft=j;if(j=Z,ct.flags|=32768,ft!==null&&typeof ft=="object"&&typeof ft.then=="function"){var ht=ft,dt=ct,yt=dt.tag;if(!(dt.mode&1)&&(yt===0||yt===11||yt===15)){var Tt=dt.alternate;Tt?(dt.updateQueue=Tt.updateQueue,dt.memoizedState=Tt.memoizedState,dt.lanes=Tt.lanes):(dt.updateQueue=null,dt.memoizedState=null)}var St=Vi(ot);if(St!==null){St.flags&=-257,Wi(St,ot,ct,tt,j),St.mode&1&&Ti(tt,ht,j),j=St,ft=ht;var At=j.updateQueue;if(At===null){var Rt=new Set;Rt.add(ft),j.updateQueue=Rt}else At.add(ft);break e}else{if(!(j&1)){Ti(tt,ht,j),uj();break e}ft=Error(p$2(426))}}else if(I&&ct.mode&1){var It=Vi(ot);if(It!==null){!(It.flags&65536)&&(It.flags|=256),Wi(It,ot,ct,tt,j),Jg(Ki(ft,ct));break e}}tt=ft=Ki(ft,ct),T!==4&&(T=2),tk===null?tk=[tt]:tk.push(tt),tt=ot;do{switch(tt.tag){case 3:tt.flags|=65536,j&=-j,tt.lanes|=j;var Ct=Oi(tt,ft,j);fh(tt,Ct);break e;case 1:ct=ft;var kt=tt.type,Pt=tt.stateNode;if(!(tt.flags&128)&&(typeof kt.getDerivedStateFromError=="function"||Pt!==null&&typeof Pt.componentDidCatch=="function"&&(Si===null||!Si.has(Pt)))){tt.flags|=65536,j&=-j,tt.lanes|=j;var Bt=Ri(tt,ct,j);fh(tt,Bt);break e}}tt=tt.return}while(tt!==null)}Tk(_e)}catch(Kt){j=Kt,Y===_e&&_e!==null&&(Y=_e=_e.return);continue}break}while(!0)}function Kk(){var a=nk.current;return nk.current=ai,a===null?ai:a}function uj(){(T===0||T===3||T===2)&&(T=4),R$1===null||!(hh&268435455)&&!(rk&268435455)||Dk(R$1,Z)}function Jk(a,j){var _e=K$1;K$1|=2;var et=Kk();(R$1!==a||Z!==j)&&(vk=null,Lk(a,j));do try{Uk();break}catch(nt){Nk(a,nt)}while(!0);if(Qg(),K$1=_e,nk.current=et,Y!==null)throw Error(p$2(261));return R$1=null,Z=0,T}function Uk(){for(;Y!==null;)Vk(Y)}function Mk(){for(;Y!==null&&!cc();)Vk(Y)}function Vk(a){var j=Wk(a.alternate,a,gj);a.memoizedProps=a.pendingProps,j===null?Tk(a):Y=j,ok.current=null}function Tk(a){var j=a;do{var _e=j.alternate;if(a=j.return,j.flags&32768){if(_e=Jj(_e,j),_e!==null){_e.flags&=32767,Y=_e;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{T=6,Y=null;return}}else if(_e=Fj(_e,j,gj),_e!==null){Y=_e;return}if(j=j.sibling,j!==null){Y=j;return}Y=j=a}while(j!==null);T===0&&(T=5)}function Qk(a,j,_e){var et=C,nt=pk.transition;try{pk.transition=null,C=1,Xk(a,j,_e,et)}finally{pk.transition=nt,C=et}return null}function Xk(a,j,_e,et){do Ik();while(xk!==null);if(K$1&6)throw Error(p$2(327));_e=a.finishedWork;var nt=a.finishedLanes;if(_e===null)return null;if(a.finishedWork=null,a.finishedLanes=0,_e===a.current)throw Error(p$2(177));a.callbackNode=null,a.callbackPriority=0;var tt=_e.lanes|_e.childLanes;if(Bc(a,tt),a===R$1&&(Y=R$1=null,Z=0),!(_e.subtreeFlags&2064)&&!(_e.flags&2064)||wk||(wk=!0,Gk(hc,function(){return Ik(),null})),tt=(_e.flags&15990)!==0,_e.subtreeFlags&15990||tt){tt=pk.transition,pk.transition=null;var ot=C;C=1;var ct=K$1;K$1|=4,ok.current=null,Pj(a,_e),ek(_e,a),Oe(Df),dd=!!Cf,Df=Cf=null,a.current=_e,ik(_e),dc(),K$1=ct,C=ot,pk.transition=tt}else a.current=_e;if(wk&&(wk=!1,xk=a,yk=nt),tt=a.pendingLanes,tt===0&&(Si=null),mc(_e.stateNode),Ek(a,B()),j!==null)for(et=a.onRecoverableError,_e=0;_e<j.length;_e++)nt=j[_e],et(nt.value,{componentStack:nt.stack,digest:nt.digest});if(Pi)throw Pi=!1,a=Qi,Qi=null,a;return yk&1&&a.tag!==0&&Ik(),tt=a.pendingLanes,tt&1?a===Ak?zk++:(zk=0,Ak=a):zk=0,jg(),null}function Ik(){if(xk!==null){var a=Dc(yk),j=pk.transition,_e=C;try{if(pk.transition=null,C=16>a?16:a,xk===null)var et=!1;else{if(a=xk,xk=null,yk=0,K$1&6)throw Error(p$2(331));var nt=K$1;for(K$1|=4,V=a.current;V!==null;){var tt=V,ot=tt.child;if(V.flags&16){var ct=tt.deletions;if(ct!==null){for(var ft=0;ft<ct.length;ft++){var ht=ct[ft];for(V=ht;V!==null;){var dt=V;switch(dt.tag){case 0:case 11:case 15:Qj(8,dt,tt)}var yt=dt.child;if(yt!==null)yt.return=dt,V=yt;else for(;V!==null;){dt=V;var Tt=dt.sibling,St=dt.return;if(Tj(dt),dt===ht){V=null;break}if(Tt!==null){Tt.return=St,V=Tt;break}V=St}}}var At=tt.alternate;if(At!==null){var Rt=At.child;if(Rt!==null){At.child=null;do{var It=Rt.sibling;Rt.sibling=null,Rt=It}while(Rt!==null)}}V=tt}}if(tt.subtreeFlags&2064&&ot!==null)ot.return=tt,V=ot;else e:for(;V!==null;){if(tt=V,tt.flags&2048)switch(tt.tag){case 0:case 11:case 15:Qj(9,tt,tt.return)}var Ct=tt.sibling;if(Ct!==null){Ct.return=tt.return,V=Ct;break e}V=tt.return}}var kt=a.current;for(V=kt;V!==null;){ot=V;var Pt=ot.child;if(ot.subtreeFlags&2064&&Pt!==null)Pt.return=ot,V=Pt;else e:for(ot=kt;V!==null;){if(ct=V,ct.flags&2048)try{switch(ct.tag){case 0:case 11:case 15:Rj(9,ct)}}catch(Kt){W(ct,ct.return,Kt)}if(ct===ot){V=null;break e}var Bt=ct.sibling;if(Bt!==null){Bt.return=ct.return,V=Bt;break e}V=ct.return}}if(K$1=nt,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,a)}catch{}et=!0}return et}finally{C=_e,pk.transition=j}}return!1}function Yk(a,j,_e){j=Ki(_e,j),j=Oi(a,j,1),a=dh$1(a,j,1),j=L(),a!==null&&(Ac(a,1,j),Ek(a,j))}function W(a,j,_e){if(a.tag===3)Yk(a,a,_e);else for(;j!==null;){if(j.tag===3){Yk(j,a,_e);break}else if(j.tag===1){var et=j.stateNode;if(typeof j.type.getDerivedStateFromError=="function"||typeof et.componentDidCatch=="function"&&(Si===null||!Si.has(et))){a=Ki(_e,a),a=Ri(j,a,1),j=dh$1(j,a,1),a=L(),j!==null&&(Ac(j,1,a),Ek(j,a));break}}j=j.return}}function Ui(a,j,_e){var et=a.pingCache;et!==null&&et.delete(j),j=L(),a.pingedLanes|=a.suspendedLanes&_e,R$1===a&&(Z&_e)===_e&&(T===4||T===3&&(Z&130023424)===Z&&500>B()-gk?Lk(a,0):sk|=_e),Ek(a,j)}function Zk(a,j){j===0&&(a.mode&1?(j=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):j=1);var _e=L();a=Zg(a,j),a!==null&&(Ac(a,j,_e),Ek(a,_e))}function vj(a){var j=a.memoizedState,_e=0;j!==null&&(_e=j.retryLane),Zk(a,_e)}function ck(a,j){var _e=0;switch(a.tag){case 13:var et=a.stateNode,nt=a.memoizedState;nt!==null&&(_e=nt.retryLane);break;case 19:et=a.stateNode;break;default:throw Error(p$2(314))}et!==null&&et.delete(j),Zk(a,_e)}var Wk;Wk=function(a,j,_e){if(a!==null)if(a.memoizedProps!==j.pendingProps||Wf.current)Ug=!0;else{if(!(a.lanes&_e)&&!(j.flags&128))return Ug=!1,zj(a,j,_e);Ug=!!(a.flags&131072)}else Ug=!1,I&&j.flags&1048576&&ug(j,ng,j.index);switch(j.lanes=0,j.tag){case 2:var et=j.type;jj(a,j),a=j.pendingProps;var nt=Yf(j,H.current);Tg(j,_e),nt=Xh(null,j,et,a,nt,_e);var tt=bi();return j.flags|=1,typeof nt=="object"&&nt!==null&&typeof nt.render=="function"&&nt.$$typeof===void 0?(j.tag=1,j.memoizedState=null,j.updateQueue=null,Zf(et)?(tt=!0,cg(j)):tt=!1,j.memoizedState=nt.state!==null&&nt.state!==void 0?nt.state:null,ah(j),nt.updater=nh,j.stateNode=nt,nt._reactInternals=j,rh$1(j,et,a,_e),j=kj(null,j,et,!0,tt,_e)):(j.tag=0,I&&tt&&vg(j),Yi(null,j,nt,_e),j=j.child),j;case 16:et=j.elementType;e:{switch(jj(a,j),a=j.pendingProps,nt=et._init,et=nt(et._payload),j.type=et,nt=j.tag=$k(et),a=Lg(et,a),nt){case 0:j=dj(null,j,et,a,_e);break e;case 1:j=ij(null,j,et,a,_e);break e;case 11:j=Zi(null,j,et,a,_e);break e;case 14:j=aj(null,j,et,Lg(et.type,a),_e);break e}throw Error(p$2(306,et,""))}return j;case 0:return et=j.type,nt=j.pendingProps,nt=j.elementType===et?nt:Lg(et,nt),dj(a,j,et,nt,_e);case 1:return et=j.type,nt=j.pendingProps,nt=j.elementType===et?nt:Lg(et,nt),ij(a,j,et,nt,_e);case 3:e:{if(lj(j),a===null)throw Error(p$2(387));et=j.pendingProps,tt=j.memoizedState,nt=tt.element,bh(a,j),gh(j,et,null,_e);var ot=j.memoizedState;if(et=ot.element,tt.isDehydrated)if(tt={element:et,isDehydrated:!1,cache:ot.cache,pendingSuspenseBoundaries:ot.pendingSuspenseBoundaries,transitions:ot.transitions},j.updateQueue.baseState=tt,j.memoizedState=tt,j.flags&256){nt=Ki(Error(p$2(423)),j),j=mj(a,j,et,_e,nt);break e}else if(et!==nt){nt=Ki(Error(p$2(424)),j),j=mj(a,j,et,_e,nt);break e}else for(yg=Lf(j.stateNode.containerInfo.firstChild),xg=j,I=!0,zg=null,_e=Ch(j,null,et,_e),j.child=_e;_e;)_e.flags=_e.flags&-3|4096,_e=_e.sibling;else{if(Ig(),et===nt){j=$i(a,j,_e);break e}Yi(a,j,et,_e)}j=j.child}return j;case 5:return Kh$1(j),a===null&&Eg(j),et=j.type,nt=j.pendingProps,tt=a!==null?a.memoizedProps:null,ot=nt.children,Ef(et,nt)?ot=null:tt!==null&&Ef(et,tt)&&(j.flags|=32),hj(a,j),Yi(a,j,ot,_e),j.child;case 6:return a===null&&Eg(j),null;case 13:return pj(a,j,_e);case 4:return Ih(j,j.stateNode.containerInfo),et=j.pendingProps,a===null?j.child=Bh(j,null,et,_e):Yi(a,j,et,_e),j.child;case 11:return et=j.type,nt=j.pendingProps,nt=j.elementType===et?nt:Lg(et,nt),Zi(a,j,et,nt,_e);case 7:return Yi(a,j,j.pendingProps,_e),j.child;case 8:return Yi(a,j,j.pendingProps.children,_e),j.child;case 12:return Yi(a,j,j.pendingProps.children,_e),j.child;case 10:e:{if(et=j.type._context,nt=j.pendingProps,tt=j.memoizedProps,ot=nt.value,G(Mg,et._currentValue),et._currentValue=ot,tt!==null)if(He(tt.value,ot)){if(tt.children===nt.children&&!Wf.current){j=$i(a,j,_e);break e}}else for(tt=j.child,tt!==null&&(tt.return=j);tt!==null;){var ct=tt.dependencies;if(ct!==null){ot=tt.child;for(var ft=ct.firstContext;ft!==null;){if(ft.context===et){if(tt.tag===1){ft=ch(-1,_e&-_e),ft.tag=2;var ht=tt.updateQueue;if(ht!==null){ht=ht.shared;var dt=ht.pending;dt===null?ft.next=ft:(ft.next=dt.next,dt.next=ft),ht.pending=ft}}tt.lanes|=_e,ft=tt.alternate,ft!==null&&(ft.lanes|=_e),Sg(tt.return,_e,j),ct.lanes|=_e;break}ft=ft.next}}else if(tt.tag===10)ot=tt.type===j.type?null:tt.child;else if(tt.tag===18){if(ot=tt.return,ot===null)throw Error(p$2(341));ot.lanes|=_e,ct=ot.alternate,ct!==null&&(ct.lanes|=_e),Sg(ot,_e,j),ot=tt.sibling}else ot=tt.child;if(ot!==null)ot.return=tt;else for(ot=tt;ot!==null;){if(ot===j){ot=null;break}if(tt=ot.sibling,tt!==null){tt.return=ot.return,ot=tt;break}ot=ot.return}tt=ot}Yi(a,j,nt.children,_e),j=j.child}return j;case 9:return nt=j.type,et=j.pendingProps.children,Tg(j,_e),nt=Vg(nt),et=et(nt),j.flags|=1,Yi(a,j,et,_e),j.child;case 14:return et=j.type,nt=Lg(et,j.pendingProps),nt=Lg(et.type,nt),aj(a,j,et,nt,_e);case 15:return cj(a,j,j.type,j.pendingProps,_e);case 17:return et=j.type,nt=j.pendingProps,nt=j.elementType===et?nt:Lg(et,nt),jj(a,j),j.tag=1,Zf(et)?(a=!0,cg(j)):a=!1,Tg(j,_e),ph(j,et,nt),rh$1(j,et,nt,_e),kj(null,j,et,!0,a,_e);case 19:return yj(a,j,_e);case 22:return ej(a,j,_e)}throw Error(p$2(156,j.tag))};function Gk(a,j){return ac(a,j)}function al(a,j,_e,et){this.tag=a,this.key=_e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=j,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=et,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(a,j,_e,et){return new al(a,j,_e,et)}function bj(a){return a=a.prototype,!(!a||!a.isReactComponent)}function $k(a){if(typeof a=="function")return bj(a)?1:0;if(a!=null){if(a=a.$$typeof,a===Da)return 11;if(a===Ga)return 14}return 2}function wh(a,j){var _e=a.alternate;return _e===null?(_e=Bg(a.tag,j,a.key,a.mode),_e.elementType=a.elementType,_e.type=a.type,_e.stateNode=a.stateNode,_e.alternate=a,a.alternate=_e):(_e.pendingProps=j,_e.type=a.type,_e.flags=0,_e.subtreeFlags=0,_e.deletions=null),_e.flags=a.flags&14680064,_e.childLanes=a.childLanes,_e.lanes=a.lanes,_e.child=a.child,_e.memoizedProps=a.memoizedProps,_e.memoizedState=a.memoizedState,_e.updateQueue=a.updateQueue,j=a.dependencies,_e.dependencies=j===null?null:{lanes:j.lanes,firstContext:j.firstContext},_e.sibling=a.sibling,_e.index=a.index,_e.ref=a.ref,_e}function yh(a,j,_e,et,nt,tt){var ot=2;if(et=a,typeof a=="function")bj(a)&&(ot=1);else if(typeof a=="string")ot=5;else e:switch(a){case ya:return Ah(_e.children,nt,tt,j);case za:ot=8,nt|=8;break;case Aa:return a=Bg(12,_e,j,nt|2),a.elementType=Aa,a.lanes=tt,a;case Ea:return a=Bg(13,_e,j,nt),a.elementType=Ea,a.lanes=tt,a;case Fa:return a=Bg(19,_e,j,nt),a.elementType=Fa,a.lanes=tt,a;case Ia:return qj(_e,nt,tt,j);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Ba:ot=10;break e;case Ca:ot=9;break e;case Da:ot=11;break e;case Ga:ot=14;break e;case Ha:ot=16,et=null;break e}throw Error(p$2(130,a==null?a:typeof a,""))}return j=Bg(ot,_e,j,nt),j.elementType=a,j.type=et,j.lanes=tt,j}function Ah(a,j,_e,et){return a=Bg(7,a,et,j),a.lanes=_e,a}function qj(a,j,_e,et){return a=Bg(22,a,et,j),a.elementType=Ia,a.lanes=_e,a.stateNode={isHidden:!1},a}function xh(a,j,_e){return a=Bg(6,a,null,j),a.lanes=_e,a}function zh$1(a,j,_e){return j=Bg(4,a.children!==null?a.children:[],a.key,j),j.lanes=_e,j.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},j}function bl(a,j,_e,et,nt){this.tag=j,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=et,this.onRecoverableError=nt,this.mutableSourceEagerHydrationData=null}function cl(a,j,_e,et,nt,tt,ot,ct,ft){return a=new bl(a,j,_e,ct,ft),j===1?(j=1,tt===!0&&(j|=8)):j=0,tt=Bg(3,null,null,j),a.current=tt,tt.stateNode=a,tt.memoizedState={element:et,isDehydrated:_e,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(tt),a}function dl(a,j,_e){var et=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:et==null?null:""+et,children:a,containerInfo:j,implementation:_e}}function el(a){if(!a)return Vf;a=a._reactInternals;e:{if(Vb(a)!==a||a.tag!==1)throw Error(p$2(170));var j=a;do{switch(j.tag){case 3:j=j.stateNode.context;break e;case 1:if(Zf(j.type)){j=j.stateNode.__reactInternalMemoizedMergedChildContext;break e}}j=j.return}while(j!==null);throw Error(p$2(171))}if(a.tag===1){var _e=a.type;if(Zf(_e))return bg(a,_e,j)}return j}function fl(a,j,_e,et,nt,tt,ot,ct,ft){return a=cl(_e,et,!0,a,nt,tt,ot,ct,ft),a.context=el(null),_e=a.current,et=L(),nt=lh(_e),tt=ch(et,nt),tt.callback=j??null,dh$1(_e,tt,nt),a.current.lanes=nt,Ac(a,nt,et),Ek(a,et),a}function gl(a,j,_e,et){var nt=j.current,tt=L(),ot=lh(nt);return _e=el(_e),j.context===null?j.context=_e:j.pendingContext=_e,j=ch(tt,ot),j.payload={element:a},et=et===void 0?null:et,et!==null&&(j.callback=et),a=dh$1(nt,j,ot),a!==null&&(mh(a,nt,ot,tt),eh(a,nt,ot)),ot}function hl$1(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function il(a,j){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var _e=a.retryLane;a.retryLane=_e!==0&&_e<j?_e:j}}function jl(a,j){il(a,j),(a=a.alternate)&&il(a,j)}function kl(){return null}var ll=typeof reportError=="function"?reportError:function(a){console.error(a)};function ml(a){this._internalRoot=a}nl.prototype.render=ml.prototype.render=function(a){var j=this._internalRoot;if(j===null)throw Error(p$2(409));gl(a,j,null,null)};nl.prototype.unmount=ml.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var j=a.containerInfo;Sk(function(){gl(null,a,null,null)}),j[uf]=null}};function nl(a){this._internalRoot=a}nl.prototype.unstable_scheduleHydration=function(a){if(a){var j=Hc();a={blockedOn:null,target:a,priority:j};for(var _e=0;_e<Qc.length&&j!==0&&j<Qc[_e].priority;_e++);Qc.splice(_e,0,a),_e===0&&Vc(a)}};function ol(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function pl(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function ql(){}function rl(a,j,_e,et,nt){if(nt){if(typeof et=="function"){var tt=et;et=function(){var ht=hl$1(ot);tt.call(ht)}}var ot=fl(j,et,a,0,null,!1,!1,"",ql);return a._reactRootContainer=ot,a[uf]=ot.current,sf(a.nodeType===8?a.parentNode:a),Sk(),ot}for(;nt=a.lastChild;)a.removeChild(nt);if(typeof et=="function"){var ct=et;et=function(){var ht=hl$1(ft);ct.call(ht)}}var ft=cl(a,0,!1,null,null,!1,!1,"",ql);return a._reactRootContainer=ft,a[uf]=ft.current,sf(a.nodeType===8?a.parentNode:a),Sk(function(){gl(j,ft,_e,et)}),ft}function sl$1(a,j,_e,et,nt){var tt=_e._reactRootContainer;if(tt){var ot=tt;if(typeof nt=="function"){var ct=nt;nt=function(){var ft=hl$1(ot);ct.call(ft)}}gl(j,ot,a,nt)}else ot=rl(_e,j,a,nt,et);return hl$1(ot)}Ec=function(a){switch(a.tag){case 3:var j=a.stateNode;if(j.current.memoizedState.isDehydrated){var _e=tc(j.pendingLanes);_e!==0&&(Cc(j,_e|1),Ek(j,B()),!(K$1&6)&&(Hj=B()+500,jg()))}break;case 13:Sk(function(){var et=Zg(a,1);if(et!==null){var nt=L();mh(et,a,1,nt)}}),jl(a,1)}};Fc=function(a){if(a.tag===13){var j=Zg(a,134217728);if(j!==null){var _e=L();mh(j,a,134217728,_e)}jl(a,134217728)}};Gc=function(a){if(a.tag===13){var j=lh(a),_e=Zg(a,j);if(_e!==null){var et=L();mh(_e,a,j,et)}jl(a,j)}};Hc=function(){return C};Ic=function(a,j){var _e=C;try{return C=a,j()}finally{C=_e}};yb=function(a,j,_e){switch(j){case"input":if(bb(a,_e),j=_e.name,_e.type==="radio"&&j!=null){for(_e=a;_e.parentNode;)_e=_e.parentNode;for(_e=_e.querySelectorAll("input[name="+JSON.stringify(""+j)+'][type="radio"]'),j=0;j<_e.length;j++){var et=_e[j];if(et!==a&&et.form===a.form){var nt=Db(et);if(!nt)throw Error(p$2(90));Wa(et),bb(et,nt)}}}break;case"textarea":ib(a,_e);break;case"select":j=_e.value,j!=null&&fb(a,!!_e.multiple,j,!1)}};Gb=Rk;Hb=Sk;var tl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Rk]},ul={findFiberByHostInstance:Wc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vl={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=Zb(a),a===null?null:a.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance||kl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{kc=wl.inject(vl),lc=wl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl;reactDom_production_min.createPortal=function(a,j){var _e=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ol(j))throw Error(p$2(200));return dl(a,j,null,_e)};reactDom_production_min.createRoot=function(a,j){if(!ol(a))throw Error(p$2(299));var _e=!1,et="",nt=ll;return j!=null&&(j.unstable_strictMode===!0&&(_e=!0),j.identifierPrefix!==void 0&&(et=j.identifierPrefix),j.onRecoverableError!==void 0&&(nt=j.onRecoverableError)),j=cl(a,1,!1,null,null,_e,!1,et,nt),a[uf]=j.current,sf(a.nodeType===8?a.parentNode:a),new ml(j)};reactDom_production_min.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var j=a._reactInternals;if(j===void 0)throw typeof a.render=="function"?Error(p$2(188)):(a=Object.keys(a).join(","),Error(p$2(268,a)));return a=Zb(j),a=a===null?null:a.stateNode,a};reactDom_production_min.flushSync=function(a){return Sk(a)};reactDom_production_min.hydrate=function(a,j,_e){if(!pl(j))throw Error(p$2(200));return sl$1(null,a,j,!0,_e)};reactDom_production_min.hydrateRoot=function(a,j,_e){if(!ol(a))throw Error(p$2(405));var et=_e!=null&&_e.hydratedSources||null,nt=!1,tt="",ot=ll;if(_e!=null&&(_e.unstable_strictMode===!0&&(nt=!0),_e.identifierPrefix!==void 0&&(tt=_e.identifierPrefix),_e.onRecoverableError!==void 0&&(ot=_e.onRecoverableError)),j=fl(j,null,a,1,_e??null,nt,!1,tt,ot),a[uf]=j.current,sf(a),et)for(a=0;a<et.length;a++)_e=et[a],nt=_e._getVersion,nt=nt(_e._source),j.mutableSourceEagerHydrationData==null?j.mutableSourceEagerHydrationData=[_e,nt]:j.mutableSourceEagerHydrationData.push(_e,nt);return new nl(j)};reactDom_production_min.render=function(a,j,_e){if(!pl(j))throw Error(p$2(200));return sl$1(null,a,j,!1,_e)};reactDom_production_min.unmountComponentAtNode=function(a){if(!pl(a))throw Error(p$2(40));return a._reactRootContainer?(Sk(function(){sl$1(null,null,a,!1,function(){a._reactRootContainer=null,a[uf]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Rk;reactDom_production_min.unstable_renderSubtreeIntoContainer=function(a,j,_e,et){if(!pl(_e))throw Error(p$2(200));if(a==null||a._reactInternals===void 0)throw Error(p$2(38));return sl$1(a,j,_e,!1,et)};reactDom_production_min.version="18.2.0-next-9e3b772b8-20220608";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(a){console.error(a)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs$1(reactDomExports);var createRoot,m$4=reactDomExports;createRoot=m$4.createRoot,m$4.hydrateRoot;const NODE_SERVICES=Object.freeze({AUTH:"auth"}),ROLES=Object.freeze({OWNER:"owner",ADMIN:"admin",MEMBER:"member",GUEST:"guest"}),SERVER_ROLES=Object.freeze({...ROLES,CI:"ci",CERTIFICATE:"certificate",BLOCKLET_OWNER:"blocklet-owner",BLOCKLET_ADMIN:"blocklet-admin",BLOCKLET_MEMBER:"blocklet-member",BLOCKLET_SDK:"blocklet-sdk",EXTERNAL_BLOCKLET_CONTROLLER:"external-blocklet-controller",EXTERNAL_BLOCKLETS_MANAGER:"external-blocklets-manager"}),SERVICES_ROLES=Object.freeze({BLOCKLET_GUEST:"blocklet-guest"}),BLOCKLET_ROLES=[SERVER_ROLES.BLOCKLET_OWNER,SERVER_ROLES.BLOCKLET_ADMIN,SERVER_ROLES.BLOCKLET_MEMBER,SERVER_ROLES.BLOCKLET_SDK],isBlockletRole=a=>a&&BLOCKLET_ROLES.includes(a),BLOCKLET_MULTIPLE_TENANT_ROLES=[SERVER_ROLES.BLOCKLET_OWNER,SERVER_ROLES.BLOCKLET_ADMIN,SERVER_ROLES.BLOCKLET_MEMBER,SERVER_ROLES.BLOCKLET_SDK,SERVICES_ROLES.BLOCKLET_GUEST],isBlockletMultipleTenantRole=a=>a&&BLOCKLET_MULTIPLE_TENANT_ROLES.includes(a),AUTH_CERT_TYPE={USER:"user",OWNERSHIP_NFT:"ownership_nft",BLOCKLET_USER:"blocklet_user",BLOCKLET_CONTROLLER:"blocklet_controller"},RBAC_CONFIG={roles:Object.freeze([{name:SERVER_ROLES.OWNER,title:"Owner",description:"Has full administrative access to the Blocklet Server",passport:!0},{name:SERVER_ROLES.ADMIN,title:"Admin",description:"Has full permissions to manage blocklet and Blocklet Server such as install/remove/start/stop blocklet, manage blocklet URL mapping and certificates, manage blocklet team, manage node integrations and access keys, upgrade node to a new version",passport:!0},{name:SERVER_ROLES.MEMBER,title:"Member",description:"Has permissions to manage blocklets, such as install/remove/start/stop blocklet, manage blocklet URL mapping and certificates",passport:!0},{name:SERVER_ROLES.GUEST,title:"Guest",description:"Has all read permissions on Blocklet Server",passport:!0},{name:SERVER_ROLES.CI,title:"CI",description:"Deploy blocklet to Blocklet Server",passport:!0,noHuman:!0},{name:SERVER_ROLES.CERTIFICATE,title:"Certificate",description:"Manage https certificates for blocklets on the Blocklet Server",passport:!0,noHuman:!0},{name:SERVER_ROLES.BLOCKLET_OWNER,title:"Blocklet Owner"},{name:SERVER_ROLES.BLOCKLET_ADMIN,title:"Blocklet Admin"},{name:SERVER_ROLES.BLOCKLET_MEMBER,title:"Blocklet Member"},{name:SERVER_ROLES.BLOCKLET_SDK,title:"Blocklet SDK"},{name:SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER,title:"External Blocklet Controller"},{name:SERVER_ROLES.EXTERNAL_BLOCKLETS_MANAGER,title:"External Blocklets Manager",description:"Manage external blocklets in the Blocklet Server",passport:!0,noHuman:!0}]),permissions:Object.freeze([{name:"query_node",description:"View node data, include dashboard and node settings, log stream for both Blocklet Server and blocklets"},{name:"mutate_node",description:"Change node settings, upgrade node to a new version"},{name:"query_session",description:"Get data from a long running session"},{name:"mutate_session",description:"Start/update/end a long running session"},{name:"query_accessKey",description:"View access keys for Blocklet Server"},{name:"mutate_accessKey",description:"Manage access keys for Blocklet Server, such as create/update/delete"},{name:"query_team",description:"View team data(members/roles/permissions) for Blocklet Server and blocklets"},{name:"mutate_team",description:"Manage team data(members/roles/permissions) for Blocklet Server and blocklets"},{name:"query_blocklets",description:"View store and installed blocklets, including blocklet runtime configuration, domains and urls"},{name:"mutate_blocklets",description:"Perform state changing actions on blocklets, such as install/upgrade/config/start/stop/remove"},{name:"query_router",description:"View sites, URL mapping and certificates in service gateway"},{name:"mutate_router",description:"Manage sites, URL mapping and certificates in service gateway"},{name:"query_certificate",description:"View certificates in service gateway"},{name:"mutate_certificate",description:"Manage certificates in service gateway"},{name:"query_notification",description:"View notifications"},{name:"mutate_notification",description:"Manage notifications, such as mark notifications as read"},{name:"query_webhook",description:"View integrations"},{name:"mutate_webhook",description:"Manage integrations"},{name:"query_blocklet",description:"View a blocklet, including blocklet runtime configuration, domains and urls"},{name:"mutate_blocklet",description:"Perform state changing actions on a blocklet, such as upgrade/config/start/stop"}]),grants:Object.freeze({[SERVER_ROLES.GUEST]:["query_blocklets","query_router","query_webhook","query_notification","query_team","query_accessKey","query_node","query_session"],[SERVER_ROLES.MEMBER]:[SERVER_ROLES.GUEST,"mutate_blocklets","mutate_router","mutate_notification","mutate_session"],[SERVER_ROLES.ADMIN]:[SERVER_ROLES.MEMBER,"mutate_team","mutate_webhook","mutate_accessKey","mutate_node","mutate_certificate"],[SERVER_ROLES.OWNER]:[ROLES.ADMIN],[SERVER_ROLES.CI]:["query_blocklets","mutate_blocklets"],[SERVER_ROLES.CERTIFICATE]:["query_certificate","mutate_certificate"],[SERVER_ROLES.BLOCKLET_SDK]:["query_team","mutate_team","query_blocklet"],[SERVER_ROLES.BLOCKLET_OWNER]:[SERVER_ROLES.BLOCKLET_ADMIN],[SERVER_ROLES.BLOCKLET_ADMIN]:[SERVER_ROLES.BLOCKLET_MEMBER,"mutate_team","mutate_blocklet","mutate_notification"],[SERVER_ROLES.BLOCKLET_MEMBER]:["query_team","query_blocklet","query_notification"],[SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER]:["query_blocklets","mutate_blocklets"],[SERVER_ROLES.EXTERNAL_BLOCKLETS_MANAGER]:["query_blocklets","mutate_blocklets"]})},DAY_IN_MS=24*60*60*1e3,EVENTS$1={NOTIFICATION_CREATE:"notification.create",NOTIFICATION_BLOCKLET_CREATE:"notification.blockletCreate",ROUTING_UPDATED:"routing.updated",NODE_UPDATED:"node.updated",NODE_MAINTAIN_PROGRESS:"node.upgrade.progress",NODE_STARTED:"node.started",NODE_STOPPED:"node.stopped",NODE_ADDED_OWNER:"node.addedOwner",NODE_RUNTIME_INFO:"node.runtimeInfo",BLOCKLETS_RUNTIME_INFO:"node.blockletsRuntimeInfo",DOMAIN_STATUS:"domain.status",CERT_ADDED:"cert.added",CERT_ISSUED:"cert.issued",CERT_UPDATED:"cert.updated",CERT_REMOVED:"cert.removed",CERT_ERROR:"cert.error",RELOAD_GATEWAY:"gateway.reload"},WHO_CAN_ACCESS=Object.freeze({OWNER:"owner",ADMIN:"admin",INVITED:"invited",ALL:"all"}),BLOCKLET_STORE_URL="https://store.blocklet.dev",BLOCKLET_STORE_URL_DEV="https://dev.store.blocklet.dev",MAIN_CHAIN_ENDPOINT="https://main.abtnetwork.io/api/",USER_TYPE=Object.freeze({DERIVED:"derived",WALLET:"wallet"}),BACKUPS={STATUS:{PROGRESS:null,SUCCEEDED:0,FAILED:1},TIMEOUT_HOURS:6,STRATEGY:{AUTO:0,MANUAL:1},JOB:{INTERVAL:2*60*60}},CHECK_UPDATE={STATUS:{PROGRESS:null,SUCCEEDED:0,FAILED:1},TIMEOUT_HOURS:6,STRATEGY:{AUTO:0,MANUAL:1},JOB:{INTERVAL:2*60*60}},MONITOR_RECORD_INTERVAL_SEC=10,MONITOR_HISTORY_LENGTH=86400/MONITOR_RECORD_INTERVAL_SEC,FEDERATED={SYNC_LIMIT:3},ROUTING_RESPONSE_TYPES=[{text:"Plain Text",value:"text/plain"},{text:"JSON",value:"application/json"},{text:"XML",value:"application/xml"},{text:"HTML Document",value:"text/html"},{text:"YAML",value:"application/x-yaml"},{text:"TOML",value:"application/toml"},{text:"CSS",value:"text/css"},{text:"JavaScript",value:"application/javascript"},{text:"CSV",value:"text/csv"},{text:"Markdown",value:"text/markdown"},{text:"SVG",value:"image/svg+xml"}],SERVERLESS_BLOCKLET_DATA_RETENTION_DAYS=30,LAUNCH_SESSION_STATUS=Object.freeze({created:0,selected:10,connected:20,timeout:25,paid:30,nftMinted:35,allocated:40,consuming:46,installed:50,overdue:60,canceled:65,terminated:70,transferred:90}),SECURITY_RULE_DEFAULT_ID="default",ACCESS_POLICY_PUBLIC="public",ACCESS_POLICY_INVITED_ONLY="invited-only",ACCESS_POLICY_OWNER_ONLY="owner-only",ACCESS_POLICY_ADMIN_ONLY="admin-only",RESPONSE_HEADER_POLICY_SIMPLE_CORS="simple-cors",RESPONSE_HEADER_POLICY_SECURITY_HEADER="security-header",RESPONSE_HEADER_POLICY_SIMPLE_CORS_AND_SECURITY_HEADER="simple-cors-and-security-header";var constant$3=Object.freeze({NODE_MODES:Object.freeze({PRODUCTION:"production",DEBUG:"debug",MAINTENANCE:"maintenance",SERVERLESS:"serverless"}),DEFAULT_DESCRIPTION:"Web Interface to manage your Blocklet Server",NODE_MAINTAIN_PROGRESS:Object.freeze({SETUP:"setup",INSTALLING:"installing",VERIFYING:"verifying",RESTARTING:"restarting",CLEANUP:"cleanup",COMPLETE:"complete",ROLLBACK:"rollback"}),VC_TYPE_BLOCKLET_PURCHASE:"BlockletPurchaseCredential",VC_TYPE_NODE_PASSPORT:"ABTNodePassport",VC_TYPE_GENERAL_PASSPORT:"NFTPassport",NFT_TYPE_SERVER_OWNERSHIP:"BlockletServerOwnershipNFT",NFT_TYPE_SERVERLESS:"BlockletServerServerlessNFT",NODE_PACKAGE_NAME:"@abtnode/cli",NODE_COMMAND_NAME:"abtnode",NODE_DATA_DIR_NAME:"_abtnode",USER_AVATAR_DIR:"/.assets/avatar",USER_AVATAR_URL_PREFIX:"bn://avatar",USER_AVATAR_PATH_PREFIX:"/user/avatar",USER_MAX_INVITE_DEPTH:8,PROCESS_NAME_DAEMON:"abt-node-daemon",PROCESS_NAME_PROXY:"abt-node-db-hub",PROCESS_NAME_UPDATER:"abt-node-updater",PROCESS_NAME_SERVICE:"abt-node-service",PROCESS_NAME_ROUTER:"abt-node-router",PROCESS_NAME_LOG_ROTATE:"abt-node-log-rotate",PROCESS_NAME_EVENT_HUB:"abt-node-event-hub",NODE_REGISTER_URL:"https://install.arcblock.io/",WEB_WALLET_URL:"https://web.abtwallet.io",BLOCKLET_STORE_URL,BLOCKLET_STORE_URL_DEV,BLOCKLET_STORE_DID:"z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ",BLOCKLET_STORE_API_PREFIX:"/api",BLOCKLET_STORE_API_BLOCKLET_PREFIX:"/api/blocklets",BLOCKLET_STORE_META_PATH:"/api/store.json",BLOCKLET_STORE:{id:"zNKqX7D8ZAYa77HgzpoFfnV3BFbcmSRrE9aT",name:"Official Store",description:"ArcBlock official blocklet registry",url:BLOCKLET_STORE_URL,logoUrl:"/logo.png",maintainer:"arcblock"},BLOCKLET_STORE_DEV:{id:"zNKmfUatDhzfMVACfr3u97eqndj8f1yXXw3m",name:"Dev Store",description:"ArcBlock dev registry that contains demo and example blocklets",url:BLOCKLET_STORE_URL_DEV,maintainer:"arcblock",logoUrl:"/logo.png"},APP_STRUCT_VERSION:"2",DEFAULT_DID_REGISTRY:"https://registry.abtnet.io",DEFAULT_SLP_DOMAIN:"slp.abtnet.io",DEFAULT_DID_DOMAIN:"did.abtnet.io",DEFAULT_IP_DOMAIN:"*.ip.abtnet.io",DEFAULT_IP_DOMAIN_SUFFIX:"ip.abtnet.io",DEFAULT_WILDCARD_CERT_HOST:"https://releases.arcblock.io/",DEFAULT_NFT_DOMAIN_URL:"https://domain.didlabs.org/",DEFAULT_CERTIFICATE_EMAIL:"certs@arcblock.io",CONFIG_FILENAME:"config.yml",CONFIG_FILENAME_OLD:"abtnode.yml",CONFIG_FOLDER_NAME:".blocklet-server",CONFIG_FOLDER_NAME_OLD:".abtnode",EXPORTED_FOLDER_NAME:"exported_blocklet_server",StatusCode:Object.freeze({ok:0,blocklet_not_found:1,blocklet_not_purchased:2,forbidden:403,internal:500,timeout:504}),IP:new RegExp("-(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\-(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}"),DOMAIN_FOR_IP_SITE:"",DOMAIN_FOR_IP_SITE_REGEXP:"~^\\d+.\\d+.\\d+.\\d+$",DOMAIN_FOR_DEFAULT_SITE:"*",DOMAIN_FOR_INTERNAL_SITE:"127.0.0.1",NAME_FOR_WELLKNOWN_SITE:"wellknown",WELLKNOWN_PATH_PREFIX:"/.well-known",WELLKNOWN_ACME_CHALLENGE_PREFIX:"/.well-known/acme-challenge",WELLKNOWN_DID_RESOLVER_PREFIX:"/.well-known/did.json",WELLKNOWN_PING_PREFIX:"/.well-known/ping",WELLKNOWN_ANALYTICS_PREFIX:"/.well-known/analytics",WELLKNOWN_SERVICE_PATH_PREFIX:"/.well-known/service",WELLKNOWN_BLOCKLET_ADMIN_PATH:"/.well-known/service/admin",WELLKNOWN_BLOCKLET_HEALTH_PATH:"/.well-known/service/health",WELLKNOWN_BLOCKLET_LOGO_PATH:"/.well-known/service/blocklet/logo",SLOT_FOR_IP_DNS_SITE:"888-888-888-888",DEFAULT_ADMIN_PATH:"/admin",WELLKNOWN_SERVER_ADMIN_PATH:"/.well-known/server/admin",DEFAULT_SERVICE_PATH:"/.abtnode/service",DEFAULT_HTTP_PORT:80,DEFAULT_HTTPS_PORT:443,MAX_UPLOAD_FILE_SIZE:500,DEFAULT_DAEMON_PORT:8089,MAX_NGINX_WORKER_CONNECTIONS:10240,BLOCKLET_PROXY_PATH_PREFIX:"/.blocklet/proxy",BLOCKLET_SITE_GROUP_SUFFIX:".blocklet-domain-group",DAY_IN_MS,DAEMON_MAX_MEM_LIMIT_IN_MB:800,PROXY_MAX_MEM_LIMIT_IN_MB:800,BLOCKLET_MAX_MEM_LIMIT_IN_MB:800,CERTIFICATE_EXPIRES_OFFSET:10*DAY_IN_MS,ROUTING_RESPONSE_TYPES,ROUTING_RULE_TYPES:Object.freeze({NONE:"none",DAEMON:"daemon",SERVICE:"service",BLOCKLET:"blocklet",REDIRECT:"redirect",GENERAL_REWRITE:"rewrite",GENERAL_PROXY:"general_proxy",DIRECT_RESPONSE:"direct_response",COMPONENT:"component"}),ROLES,SERVER_ROLES,BLOCKLET_ROLES,isBlockletRole,isBlockletMultipleTenantRole,AUTH_CERT_TYPE,RBAC_CONFIG,genPermissionName:(a,j="access")=>`${j}_${a.replace("_","-")}`,PASSPORT_STATUS:{VALID:"valid",REVOKED:"revoked"},NODE_SERVICES,DISK_ALERT_THRESHOLD_PERCENT:80,EVENTS:EVENTS$1,WHO_CAN_ACCESS,WHO_CAN_ACCESS_PREFIX_ROLES:"roles:",GATEWAY_REQ_LIMIT:Object.freeze({min:10,max:100}),STORE_DETAIL_PAGE_PATH_PREFIX:"/blocklets",MAX_USER_PAGE_SIZE:100,SERVER_STATUS:{RUNNING:1,STOPPED:2,START_FROM_CRASH:3},LOG_RETAIN_IN_DAYS:60,BLOCKLET_INSTALL_TYPE:{STORE:"store",URL:"url",DEV:"dev",CREATE:"create",RESTORE:"restore"},ROUTER_CACHE_GROUPS:{blockletProxy:{minSize:"1m",maxSize:"2g",period:"30d"}},MAIN_CHAIN_ENDPOINT,USER_TYPE,SERVER_CACHE_TTL:300*1e3,BLOCKLET_CACHE_TTL:3600*1e3,SESSION_CACHE_TTL:3600,SESSION_TTL:7*86400,BACKUPS,CHECK_UPDATE,MONITOR_HISTORY_LENGTH,MONITOR_RECORD_INTERVAL_SEC,INSTALL_ACTIONS:{INSTALL:"install",INSTALL_COMPONENT:"installComponent",UPGRADE_COMPONENT:"upgradeComponent"},COPYRIGHT_OWNER:"ArcBlock",FEDERATED,SESSION_TOKEN_STORAGE_KEY:"login_token",REFRESH_TOKEN_STORAGE_KEY:"refresh_token",SERVERLESS_BLOCKLET_DATA_RETENTION_DAYS,LAUNCH_SESSION_STATUS,UNOWNED_DID:"z".repeat(35),STUDIO_CONNECTED_STORE:"studio_connected_store",STUDIO_CONNECTED_AND_DEVELOPED:"studio_connected_and_developed",VERIFY_CODE_LENGTH:6,VERIFY_CODE_TTL:30*60*1e3,VERIFY_SEND_TTL:1*60*1e3,SECURITY_RULE_DEFAULT_ID,ACCESS_POLICY_PUBLIC,ACCESS_POLICY_INVITED_ONLY,ACCESS_POLICY_OWNER_ONLY,ACCESS_POLICY_ADMIN_ONLY,RESPONSE_HEADER_POLICY_SIMPLE_CORS,RESPONSE_HEADER_POLICY_SECURITY_HEADER,RESPONSE_HEADER_POLICY_SIMPLE_CORS_AND_SECURITY_HEADER});/**
|
|
@@ -127,7 +127,7 @@ object-assign
|
|
|
127
127
|
*
|
|
128
128
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
129
129
|
* Released under the MIT license
|
|
130
|
-
*/(function(a,j){(function(_e){var et;if(a.exports=_e(),et=!0,!et){var nt=window.Cookies,tt=window.Cookies=_e();tt.noConflict=function(){return window.Cookies=nt,tt}}})(function(){function _e(){for(var tt=0,ot={};tt<arguments.length;tt++){var ct=arguments[tt];for(var ft in ct)ot[ft]=ct[ft]}return ot}function et(tt){return tt.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function nt(tt){function ot(){}function ct(ht,dt,yt){if(!(typeof document>"u")){yt=_e({path:"/"},ot.defaults,yt),typeof yt.expires=="number"&&(yt.expires=new Date(new Date*1+yt.expires*864e5)),yt.expires=yt.expires?yt.expires.toUTCString():"";try{var Tt=JSON.stringify(dt);/^[\{\[]/.test(Tt)&&(dt=Tt)}catch{}dt=tt.write?tt.write(dt,ht):encodeURIComponent(String(dt)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),ht=encodeURIComponent(String(ht)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var St="";for(var At in yt)yt[At]&&(St+="; "+At,yt[At]!==!0&&(St+="="+yt[At].split(";")[0]));return document.cookie=ht+"="+dt+St}}function ft(ht,dt){if(!(typeof document>"u")){for(var yt={},Tt=document.cookie?document.cookie.split("; "):[],St=0;St<Tt.length;St++){var At=Tt[St].split("="),Rt=At.slice(1).join("=");!dt&&Rt.charAt(0)==='"'&&(Rt=Rt.slice(1,-1));try{var It=et(At[0]);if(Rt=(tt.read||tt)(Rt,It)||et(Rt),dt)try{Rt=JSON.parse(Rt)}catch{}if(yt[It]=Rt,ht===It)break}catch{}}return ht?yt[ht]:yt}}return ot.set=ct,ot.get=function(ht){return ft(ht,!1)},ot.getJSON=function(ht){return ft(ht,!0)},ot.remove=function(ht,dt){ct(ht,"",_e(dt,{expires:-1}))},ot.defaults={},ot.withConverter=nt,ot}return nt(function(){})})})(js_cookie);var js_cookieExports=js_cookie.exports;const Cookie=getDefaultExportFromCjs$1(js_cookieExports);function startsWith$1(a,j,_e){const{length:et}=a;return _e=_e??0,_e<0?_e=0:_e>et&&(_e=et),j=`${j}`,a.slice(_e,_e+j.length)==j}function getBrowserLang$1(){return typeof window>"u"?null:window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null}function normalizeCode(a){return(a||"").toLowerCase().replace(/-/,"_")}function getPreferredLanguage(a){if(!a)return getBrowserLang$1();const{languages:j,fallback:_e}=a;if(!a.languages)return _e;const et=normalizeCode(getBrowserLang$1());if(!et)return _e;const nt=j.filter(ot=>normalizeCode(ot)===et);return nt.length>0?nt[0]||_e:j.filter(ot=>startsWith$1(et,ot))[0]||_e}const replace$3=(a,j)=>a.replace(/{(\w*)}/g,(_e,et)=>j.hasOwnProperty(et)?j[et]:""),translate=(a,j,_e,et="en",nt={})=>{const tt=a[_e],ot=get$6(tt,j),ct=get$6(a[et],j);return!tt||!ot?(console.warn(`Warning: no ${j} translation of ${_e}`),et&&ct?replace$3(ct,nt):j):typeof a[_e]=="function"||a[_e].then?replace$3(ct,nt):replace$3(ot,nt)};var MAX_SAFE_INTEGER$5=9007199254740991,nativeFloor=Math.floor;function baseRepeat$1(a,j){var _e="";if(!a||j<1||j>MAX_SAFE_INTEGER$5)return _e;do j%2&&(_e+=a),j=nativeFloor(j/2),j&&(a+=a);while(j);return _e}var _baseRepeat=baseRepeat$1;function baseSlice$2(a,j,_e){var et=-1,nt=a.length;j<0&&(j=-j>nt?0:nt+j),_e=_e>nt?nt:_e,_e<0&&(_e+=nt),nt=j>_e?0:_e-j>>>0,j>>>=0;for(var tt=Array(nt);++et<nt;)tt[et]=a[et+j];return tt}var _baseSlice=baseSlice$2,baseSlice$1=_baseSlice;function castSlice$3(a,j,_e){var et=a.length;return _e=_e===void 0?et:_e,!j&&_e>=et?a:baseSlice$1(a,j,_e)}var _castSlice=castSlice$3,rsAstralRange$3="\\ud800-\\udfff",rsComboMarksRange$4="\\u0300-\\u036f",reComboHalfMarksRange$4="\\ufe20-\\ufe2f",rsComboSymbolsRange$4="\\u20d0-\\u20ff",rsComboRange$4=rsComboMarksRange$4+reComboHalfMarksRange$4+rsComboSymbolsRange$4,rsVarRange$3="\\ufe0e\\ufe0f",rsZWJ$3="\\u200d",reHasUnicode=RegExp("["+rsZWJ$3+rsAstralRange$3+rsComboRange$4+rsVarRange$3+"]");function hasUnicode$4(a){return reHasUnicode.test(a)}var _hasUnicode=hasUnicode$4;function baseProperty$2(a){return function(j){return j==null?void 0:j[a]}}var _baseProperty=baseProperty$2,baseProperty$1=_baseProperty,asciiSize$1=baseProperty$1("length"),_asciiSize=asciiSize$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$2="\\ufe0e\\ufe0f",rsAstral$1="["+rsAstralRange$2+"]",rsCombo$3="["+rsComboRange$3+"]",rsFitz$2="\\ud83c[\\udffb-\\udfff]",rsModifier$2="(?:"+rsCombo$3+"|"+rsFitz$2+")",rsNonAstral$2="[^"+rsAstralRange$2+"]",rsRegional$2="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$2="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$2="\\u200d",reOptMod$2=rsModifier$2+"?",rsOptVar$2="["+rsVarRange$2+"]?",rsOptJoin$2="(?:"+rsZWJ$2+"(?:"+[rsNonAstral$2,rsRegional$2,rsSurrPair$2].join("|")+")"+rsOptVar$2+reOptMod$2+")*",rsSeq$2=rsOptVar$2+reOptMod$2+rsOptJoin$2,rsSymbol$1="(?:"+[rsNonAstral$2+rsCombo$3+"?",rsCombo$3,rsRegional$2,rsSurrPair$2,rsAstral$1].join("|")+")",reUnicode$1=RegExp(rsFitz$2+"(?="+rsFitz$2+")|"+rsSymbol$1+rsSeq$2,"g");function unicodeSize$1(a){for(var j=reUnicode$1.lastIndex=0;reUnicode$1.test(a);)++j;return j}var _unicodeSize=unicodeSize$1,asciiSize=_asciiSize,hasUnicode$3=_hasUnicode,unicodeSize=_unicodeSize;function stringSize$3(a){return hasUnicode$3(a)?unicodeSize(a):asciiSize(a)}var _stringSize=stringSize$3;function asciiToArray$1(a){return a.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeToArray$1(a){return a.match(reUnicode)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$2=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$3(a){return hasUnicode$2(a)?unicodeToArray(a):asciiToArray(a)}var _stringToArray=stringToArray$3,baseRepeat=_baseRepeat,baseToString$3=_baseToString,castSlice$2=_castSlice,hasUnicode$1=_hasUnicode,stringSize$2=_stringSize,stringToArray$2=_stringToArray,nativeCeil=Math.ceil;function createPadding$2(a,j){j=j===void 0?" ":baseToString$3(j);var _e=j.length;if(_e<2)return _e?baseRepeat(j,a):j;var et=baseRepeat(j,nativeCeil(a/stringSize$2(j)));return hasUnicode$1(j)?castSlice$2(stringToArray$2(et),0,a).join(""):et.slice(0,a)}var _createPadding=createPadding$2,reWhitespace=/\s/;function trimmedEndIndex$2(a){for(var j=a.length;j--&&reWhitespace.test(a.charAt(j)););return j}var _trimmedEndIndex=trimmedEndIndex$2,trimmedEndIndex$1=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(a){return a&&a.slice(0,trimmedEndIndex$1(a)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$l=isObject_1,isSymbol$6=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$4(a){if(typeof a=="number")return a;if(isSymbol$6(a))return NAN;if(isObject$l(a)){var j=typeof a.valueOf=="function"?a.valueOf():a;a=isObject$l(j)?j+"":j}if(typeof a!="string")return a===0?a:+a;a=baseTrim(a);var _e=reIsBinary.test(a);return _e||reIsOctal.test(a)?freeParseInt(a.slice(2),_e?2:8):reIsBadHex.test(a)?NAN:+a}var toNumber_1=toNumber$4,toNumber$3=toNumber_1,INFINITY$3=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$1(a){if(!a)return a===0?a:0;if(a=toNumber$3(a),a===INFINITY$3||a===-INFINITY$3){var j=a<0?-1:1;return j*MAX_INTEGER}return a===a?a:0}var toFinite_1=toFinite$1,toFinite=toFinite_1;function toInteger$2(a){var j=toFinite(a),_e=j%1;return j===j?_e?j-_e:j:0}var toInteger_1=toInteger$2,createPadding$1=_createPadding,stringSize$1=_stringSize,toInteger$1=toInteger_1,toString$j=toString_1;function padStart(a,j,_e){a=toString$j(a),j=toInteger$1(j);var et=j?stringSize$1(a):0;return j&&et<j?createPadding$1(j-et,_e)+a:a}var padStart_1$1=padStart;function base$5(a){if(a.length>=255)throw new TypeError("Alphabet too long");for(var j=new Uint8Array(256),_e=0;_e<j.length;_e++)j[_e]=255;for(var et=0;et<a.length;et++){var nt=a.charAt(et),tt=nt.charCodeAt(0);if(j[tt]!==255)throw new TypeError(nt+" is ambiguous");j[tt]=et}var ot=a.length,ct=a.charAt(0),ft=Math.log(ot)/Math.log(256),ht=Math.log(256)/Math.log(ot);function dt(St){if(St instanceof Uint8Array||(ArrayBuffer.isView(St)?St=new Uint8Array(St.buffer,St.byteOffset,St.byteLength):Array.isArray(St)&&(St=Uint8Array.from(St))),!(St instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(St.length===0)return"";for(var At=0,Rt=0,It=0,Ct=St.length;It!==Ct&&St[It]===0;)It++,At++;for(var kt=(Ct-It)*ht+1>>>0,Pt=new Uint8Array(kt);It!==Ct;){for(var Bt=St[It],Kt=0,jt=kt-1;(Bt!==0||Kt<Rt)&&jt!==-1;jt--,Kt++)Bt+=256*Pt[jt]>>>0,Pt[jt]=Bt%ot>>>0,Bt=Bt/ot>>>0;if(Bt!==0)throw new Error("Non-zero carry");Rt=Kt,It++}for(var zt=kt-Rt;zt!==kt&&Pt[zt]===0;)zt++;for(var Gt=ct.repeat(At);zt<kt;++zt)Gt+=a.charAt(Pt[zt]);return Gt}function yt(St){if(typeof St!="string")throw new TypeError("Expected String");if(St.length===0)return new Uint8Array;for(var At=0,Rt=0,It=0;St[At]===ct;)Rt++,At++;for(var Ct=(St.length-At)*ft+1>>>0,kt=new Uint8Array(Ct);St[At];){var Pt=j[St.charCodeAt(At)];if(Pt===255)return;for(var Bt=0,Kt=Ct-1;(Pt!==0||Bt<It)&&Kt!==-1;Kt--,Bt++)Pt+=ot*kt[Kt]>>>0,kt[Kt]=Pt%256>>>0,Pt=Pt/256>>>0;if(Pt!==0)throw new Error("Non-zero carry");It=Bt,At++}for(var jt=Ct-It;jt!==Ct&&kt[jt]===0;)jt++;for(var zt=new Uint8Array(Rt+(Ct-jt)),Gt=Rt;jt!==Ct;)zt[Gt++]=kt[jt++];return zt}function Tt(St){var At=yt(St);if(At)return At;throw new Error("Non-base"+ot+" character")}return{encode:dt,decodeUnsafe:yt,decode:Tt}}var src=base$5;const basex=src,ALPHABET$1="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";var bs58=basex(ALPHABET$1);const base58=getDefaultExportFromCjs$1(bs58);var __defProp$8=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$1=Object.getOwnPropertySymbols,__hasOwnProp$3=Object.prototype.hasOwnProperty,__propIsEnum$1=Object.prototype.propertyIsEnumerable,__defNormalProp$6=(a,j,_e)=>j in a?__defProp$8(a,j,{enumerable:!0,configurable:!0,writable:!0,value:_e}):a[j]=_e,__spreadValues$1=(a,j)=>{for(var _e in j||(j={}))__hasOwnProp$3.call(j,_e)&&__defNormalProp$6(a,_e,j[_e]);if(__getOwnPropSymbols$1)for(var _e of __getOwnPropSymbols$1(j))__propIsEnum$1.call(j,_e)&&__defNormalProp$6(a,_e,j[_e]);return a},__spreadProps=(a,j)=>__defProps(a,__getOwnPropDescs(j)),__objRest$1=(a,j)=>{var _e={};for(var et in a)__hasOwnProp$3.call(a,et)&&j.indexOf(et)<0&&(_e[et]=a[et]);if(a!=null&&__getOwnPropSymbols$1)for(var et of __getOwnPropSymbols$1(a))j.indexOf(et)<0&&__propIsEnum$1.call(a,et)&&(_e[et]=a[et]);return _e},colors=["#E94E4E","#E41115","#E96B4E","#E5502E","#E98F4E","#E57A2E","#E98F4E","#E5A82E","#DACD5D","#DAC825","#BDD13D","#C8E31C","#AEE94E","#7FD558","#52CC19","#4FC469","#59DE9C","#19CC73","#5ED9D1","#19CCC0","#4ED7E9","#19B7CC","#45ACE8","#1C97DE","#4E68E9","#2E4DE5","#7F4EE9","#682EE5","#BE65E7","#AF40E2","#DF58C2","#E94E8F"];const TOTAL_COLORS=32,TOTAL_POSITIONS=64,SHAPE_SIZE_RATIO=.25,REVERSED_ASPECT_RATIO=.7,RoleType={ACCOUNT:0,APPLICATION:3,ASSET:6,TOKEN:17},Shape={RECTANGLE:0,SQUARE:1,HEXAGON:2,CIRCLE:3},ElementType={CANVAS:0,SVG:1},easeOutBack=(a,j=1.70158)=>{const _e=a/1-1;return _e*_e*((j+1)*_e+j)+1},calcBorderRadius=a=>a>80?10:Math.floor(.1*a+2),getElementType=a=>{if(a){const{tagName:j}=a;if(/^svg$/i.test(j))return ElementType.SVG;if(/^canvas$/i.test(j)&&"getContext"in a)return ElementType.CANVAS}throw new Error(`Expected a svg or canvas element, got ${a}`)},animate=(a={})=>{const{callback:j,duration:_e=1e3,onComplete:et=()=>{},ease:nt=easeOutBack}=a;let tt=null,ot=0,ct=null;const ft=()=>{ct&&(cancelAnimationFrame(ct),ct=null)},ht=dt=>{tt||(tt=dt),dt-tt>=_e?(ot=1,et()):(ot=nt((dt-tt)/_e),ct=requestAnimationFrame(ht)),j(ot)};return requestAnimationFrame(ht),ft},genUniqueID=(a="")=>`${a}_${Math.floor(Math.random()*1e4)}_${Date.now()}`,DEFAULT_OPTIONS$1={width:200,height:200,xLines:8,yLines:8};class Grid{constructor(j){this.options=Object.assign({},DEFAULT_OPTIONS$1,j),this.init()}get gapX(){return this.options.width/(this.options.yLines+1)}get gapY(){return this.options.height/(this.options.xLines+1)}init(){const{xLines:j,yLines:_e}=this.options;this.xOffsets=[...new Array(j)].map((et,nt)=>(nt+1)*this.gapX-this.options.width/2),this.yOffsets=[...new Array(_e)].map((et,nt)=>(nt+1)*this.gapY-this.options.height/2)}getOffset(j,_e){return[this.xOffsets[j],this.yOffsets[_e]]}}class CanvasRenderer{constructor(j,_e){this.ctx=j;const et=_e.size||Math.min(j.canvas.width,j.canvas.height)||100;j.canvas.width=et,j.canvas.height=et;const nt=new Grid({width:et,height:et,xLines:8,yLines:8});this.config=__spreadProps(__spreadValues$1({},_e),{size:et,positions:_e.positions.map(tt=>nt.getOffset(tt[0],tt[1])),shapeSize:et*SHAPE_SIZE_RATIO})}render(){this.draw(this.config.positions)}draw(j){const{ctx:_e}=this,{size:et,color:nt,shapeSize:tt,opacity:ot,shape:ct}=this.config,ft=calcBorderRadius(et);switch(_e.clearRect(0,0,et,et),ct){case Shape.RECTANGLE:{this.drawRoundedRect(_e,0,et*(1-REVERSED_ASPECT_RATIO)/2,et,et*REVERSED_ASPECT_RATIO,ft,!1,!1);break}case Shape.HEXAGON:{this.drawHexagon(_e,et/2,et/2,et/2,0);break}case Shape.CIRCLE:{_e.arc(et/2,et/2,et/2,0,Math.PI*2);break}case Shape.SQUARE:default:this.drawRoundedRect(_e,0,0,et,et,ft,!1,!1)}_e.clip(),_e.fillStyle=nt,_e.fillRect(0,0,et,et),_e.save(),_e.translate(et/2,et/2),j.forEach(([ht,dt])=>this.drawHexagon(_e,ht,dt,tt,ot)),_e.restore()}animate(j={}){const{duration:_e=1e3,onComplete:et=()=>{}}=j,{positions:nt}=this.config;return animate({duration:_e,onComplete:et,callback:tt=>{this.draw(nt.map(ot=>[tt*ot[0],tt*ot[1]]))}})}drawHexagon(j,_e,et,nt,tt){const ot=2*Math.PI/6;j.beginPath();for(let ct=0;ct<6;ct++)j.lineTo(_e+nt*Math.cos(ot*(ct-1.5)),et+nt*Math.sin(ot*(ct-1.5)));j.closePath(),j.fillStyle=`rgba(255, 255, 255, ${tt})`,j.fill()}drawRoundedRect(j,_e,et,nt,tt,ot=10,ct=!1,ft=!0){const ht=typeof ot=="number"?{tl:ot,tr:ot,br:ot,bl:ot}:__spreadValues$1({tl:0,tr:0,br:0,bl:0},ot);j.beginPath(),j.moveTo(_e+ht.tl,et),j.lineTo(_e+nt-ht.tr,et),j.quadraticCurveTo(_e+nt,et,_e+nt,et+ht.tr),j.lineTo(_e+nt,et+tt-ht.br),j.quadraticCurveTo(_e+nt,et+tt,_e+nt-ht.br,et+tt),j.lineTo(_e+ht.bl,et+tt),j.quadraticCurveTo(_e,et+tt,_e,et+tt-ht.bl),j.lineTo(_e,et+ht.tl),j.quadraticCurveTo(_e,et,_e+ht.tl,et),j.closePath(),ct&&j.fill(),ft&&j.stroke()}}const XMLNS="http://www.w3.org/2000/svg";function svgValue(a){return Math.round(a*10)/10}class SvgRenderer{constructor(j,_e){this.el=j,this.config=_e;const et=_e.size||Math.min(Number(j.getAttribute("width"))||100,Number(j.getAttribute("height"))||100);j.setAttribute("viewBox",`0 0 ${et} ${et}`);const nt=new Grid({width:et,height:et,xLines:8,yLines:8});this.config=__spreadProps(__spreadValues$1({},_e),{size:et,positions:_e.positions.map(tt=>{const[ot,ct]=nt.getOffset(tt[0],tt[1]);return[svgValue(ot),svgValue(ct)]}),shapeSize:svgValue(et*SHAPE_SIZE_RATIO)}),this.points=this.calcPoints(et/2,et/2,this.config.shapeSize)}setBackground(){const{size:j,color:_e,shape:et}=this.config,nt=calcBorderRadius(j);let tt;switch(et){case Shape.RECTANGLE:{tt=this.drawRoundedRect(0,svgValue(j*(1-REVERSED_ASPECT_RATIO)/2),j,svgValue(j*REVERSED_ASPECT_RATIO),nt);break}case Shape.HEXAGON:{const ht=this.calcPoints(j/2,j/2,j/2);tt=this.drawHexagon(ht);break}case Shape.CIRCLE:{tt=this.createElement("circle",{cx:j/2,cy:j/2,r:j/2});break}case Shape.SQUARE:default:tt=this.drawRoundedRect(0,0,j,j,nt)}const ot=genUniqueID("clip-path"),ct=this.createElement("clipPath",{id:ot},[tt]);this.el.appendChild(this.createElement("defs",{},[ct]));const ft=this.createElement("g",{"clip-path":`url(#${ot})`},this.createElement("rect",{x:0,y:0,width:j,height:j,fill:_e}));this.g=ft,this.el.appendChild(ft)}render(){this.el.innerHTML="",this.setBackground(),this.drawHexagons(this.config.positions)}drawHexagons(j){const{opacity:_e}=this.config;this.hexagons||(this.hexagons=j.map(()=>{const et=this.drawHexagon(this.points,_e);return this.g.appendChild(et),et})),this.hexagons.forEach((et,nt)=>{et.setAttribute("transform",`translate(${j[nt][0]} ${j[nt][1]})`)})}animate(j={}){const{duration:_e=1e3,onComplete:et=()=>{}}=j,{positions:nt}=this.config;return this.setBackground(),animate({duration:_e,onComplete:et,callback:tt=>{this.drawHexagons(nt.map(ot=>[tt*ot[0],tt*ot[1]]))}})}calcPoints(j,_e,et){const nt=2*Math.PI/6,tt=[];for(let ot=0;ot<6;ot++)tt.push([j+et*Math.cos(nt*(ot-1.5)),_e+et*Math.sin(nt*(ot-1.5))]);return tt.map(ot=>[svgValue(ot[0]),svgValue(ot[1])])}getPointsStr(j){return j.map(_e=>`${svgValue(_e[0])},${svgValue(_e[1])}`).join(" ")}drawHexagon(j,_e){return this.createElement("polygon",{points:this.getPointsStr(j),transformOrigin:"center",style:{fill:"#fff",fillOpacity:_e}})}drawRoundedRect(j,_e,et,nt,tt=10,ot="none"){return this.createElement("rect",{x:j,y:_e,width:et,height:nt,rx:tt,ry:tt,fill:ot})}createElement(j,_e={},et=[]){const nt=document.createElementNS(XMLNS,j),tt=_e,{style:ot={}}=tt,ct=__objRest$1(tt,["style"]);return Object.keys(ct).forEach(ft=>{nt.setAttribute(ft,ct[ft])}),Object.keys(ot).forEach(ft=>{nt.style[ft]=ot[ft]}),Array.isArray(et)||(et=[et]),et.forEach(ft=>nt.appendChild(ft)),nt}}class DIDParsingError extends Error{constructor(j,_e){super(j,_e),this.name="DIDParsingError"}}const parseRoleType=a=>a.slice(0,1)>>>2,isBase58btc=a=>typeof a!="string"?!1:a[0]==="z",decodeDid=a=>{if(!isBase58btc(a))throw new Error(`Invalid DID string: ${a}`);return base58.decode(a.slice(1))},parseDID=a=>{try{const j=decodeDid(a),_e=parseRoleType(j),et=j.slice(2),nt=et.slice(0,8).reduce((ct,ft)=>ct+ft,0)%TOTAL_COLORS,tt=et.slice(8),ot=[...new Array(8)].map((ct,ft)=>(tt[ft*2]+tt[ft*2+1])%TOTAL_POSITIONS);return{colorIndex:nt,positionIndexes:ot,roleType:_e}}catch(j){throw new DIDParsingError(`Failed to parse DID, ${a}`,{cause:j})}},getDIDMotifInfo=a=>{const{colorIndex:j,positionIndexes:_e,roleType:et}=parseDID(a);return{color:colors[j],positions:_e.map(nt=>[Math.floor(nt/8),nt%8]),roleType:et}},getMotifShapeType=(a,j)=>{if(Object.values(Shape).indexOf(a)>-1)return a;const et={[RoleType.ACCOUNT]:Shape.RECTANGLE,[RoleType.APPLICATION]:Shape.SQUARE,[RoleType.ASSET]:Shape.HEXAGON,[RoleType.TOKEN]:Shape.CIRCLE}[j];return!et&&et!==0?Shape.SQUARE:et},getConfiguration=(a,j)=>{const _e=j,{opacity:et=.5,shape:nt}=_e,tt=__objRest$1(_e,["opacity","shape"]),{color:ot,positions:ct,roleType:ft}=getDIDMotifInfo(a);return __spreadValues$1({color:ot,positions:ct,opacity:et,shape:getMotifShapeType(nt,ft)},tt)},update$1=(a,j,_e={})=>{try{const et=getConfiguration(j,_e),tt=getElementType(a)===ElementType.CANVAS?new CanvasRenderer(a.getContext("2d"),et):new SvgRenderer(a,et),{animation:ot}=_e;ot?tt.animate(typeof ot=="object"?ot:{}):tt.render()}catch(et){if(et instanceof DIDParsingError)console.error(et.message),console.error(et.cause);else throw et}},toDataURL=(a,j)=>{const _e=getConfiguration(a,j),et=document.createElement("canvas");return new CanvasRenderer(et.getContext("2d"),_e).render(),et.toDataURL()},toSvg=(a,j={})=>{const _e=__spreadProps(__spreadValues$1({},getConfiguration(a,j)),{size:j.size||100}),et=document.createElementNS("http://www.w3.org/2000/svg","svg");return new SvgRenderer(et,_e).render(),et.outerHTML},didMotif_es=Object.freeze(Object.defineProperty({__proto__:null,Shape,colors,getConfiguration,getDIDMotifInfo,parseDID,toDataURL,toSvg,update:update$1},Symbol.toStringTag,{value:"Module"})),AUTH_SERVICE_PREFIX$1="/.well-known/service",RELAY_SOCKET_PREFIX$1="/.well-known/service",DASHBOARD_URL=`${AUTH_SERVICE_PREFIX$1}/admin`,PROFILE_URL=`${AUTH_SERVICE_PREFIX$1}/user`,NAVIGATION_URL=`${AUTH_SERVICE_PREFIX$1}/admin/navigation`,DID_PREFIX$1="did:abt:",PASSPORT_STATUS={VALID:"valid",REVOKED:"revoked"},LOGIN_PROVIDER$1={AUTH0:"auth0",APPLE:"apple",GITHUB:"github",GOOGLE:"google",WALLET:"wallet",NFT:"nft"},LOGIN_PROVIDER_NAME={[LOGIN_PROVIDER$1.AUTH0]:"Email",[LOGIN_PROVIDER$1.APPLE]:"Apple",[LOGIN_PROVIDER$1.GITHUB]:"Github",[LOGIN_PROVIDER$1.GOOGLE]:"Google",[LOGIN_PROVIDER$1.WALLET]:"DID Wallet",[LOGIN_PROVIDER$1.NFT]:"NFT"},OAUTH_PROVIDER={auth0:"Email",apple:"Apple",github:"Github",google:"Google"};let dateTool=null;function stringifyQuery$1(a={}){return new URLSearchParams(a).toString()}function getCookieOptions(a=1){let j={expireInDays:a};typeof a=="object"&&(j=a),j.path===void 0&&(j.path="/"),j.expireInDays||(j.expireInDays=1);const _e={expires:j.expireInDays,path:j.path,domain:j.domain||"",sameSite:j.sameSite||"Lax",secure:j.secure!==!1};return(typeof window>"u"||j.domain||j.returnDomain===!1)&&j.returnDomain===!1&&delete _e.domain,_e}const getColor=a=>a.color?a.color:a.dark?a.theme.palette.common.white:a.theme.palette.text.primary,getBackground=a=>a.background?a.background:a.dark?a.theme.palette.common.black:a.theme.palette.common.white;function mergeProps(a,j,_e=[]){const et=Object.assign({},a);return Object.keys(j.defaultProps||{}).forEach(nt=>{typeof et[nt]=="string"&&et[nt].indexOf("::prop::")===0&&(et[nt]=j.defaultProps[nt])}),Array.isArray(_e)&&_e.forEach(nt=>{if(typeof et[nt]=="string")try{et[nt]=JSON.parse(et[nt])}catch{}}),Object.keys(et).forEach(nt=>{typeof et[nt]=="string"&&et[nt].indexOf("::prop::")===0&&(et[nt]="")}),et}function setDateTool(a){dateTool=a}const createDateFormatter=a=>(j,{locale:_e,tz:et})=>{if(dateTool===null)throw new Error("call setDateTool to set the date tool library, such as: setDateTool(dayjs)");if(!j)return"-";let nt=dateTool(j);return et&&(nt=nt.tz(et)),typeof _e<"u"&&(nt=nt.locale(_e)),nt.format(a)};function formatToDatetime$1(a,{locale:j,tz:_e}={}){return createDateFormatter("lll")(a,{locale:j,tz:_e})}function detectWalletExtension(){const a=(window==null?void 0:window.ABT_DEV)||window.ABT;return a&&typeof a.open=="function"?a:null}function openWebWallet({webWalletUrl:a,action:j="login",locale:_e="en",url:et,windowFeatures:nt}){const tt=detectWalletExtension();if(tt){tt.open({action:j,locale:_e,url:encodeURIComponent(et)});return}const ot={toolbar:"no",location:"no",status:"no",menubar:"no",scrollbars:"yes",resizable:"yes",width:414,height:736},ct=`${a}?action=${j}&locale=${_e}&url=${encodeURIComponent(et)}`,ft=Object.assign({},ot,nt),ht=yt=>yt.innerWidth||yt.document.documentElement.clientWidth||yt.document.body.clientWidth;if(!("left"in ft)){const yt=ht(window.top||window),Tt=window.screenLeft||window.screenX;ft.left=yt+Tt-ft.width}if(!("top"in ft)){const yt=window.screenTop||window.screenY;ft.top=yt}const dt=Object.keys(ft).map(yt=>`${yt}=${ft[yt]}`).join(",");window.open(ct,"targetWindow",dt)}const getFontSize=a=>a&&Number(a)>=12?`${Number(a)}px`:"inherit",isEthereumDid$1=a=>{const j=a.replace(DID_PREFIX$1,"");return!!/^(0x)?[0-9a-f]{40}$/i.test(j)},appendParams=(a,j)=>{if(!j)return a;try{const _e=new URL(a,window.location.origin);return Object.keys(j).forEach(et=>{_e.searchParams.set(et,j[et])}),_e.origin===window.location.origin?_e.pathname+_e.search:_e.href}catch{return a}},getUserAvatar=(a,j=48)=>a&&(a.indexOf("/.well-known/service")>=0?appendParams(a,{imageFilter:"resize",w:j,h:j}):a),isUrl=a=>/^https?:\/\//.test(a),visitorIdKey$1="__visitor_id",getVisitorId$2=()=>localStorage.getItem(visitorIdKey$1),setVisitorId=a=>{a===null?localStorage.removeItem(visitorIdKey$1):localStorage.setItem(visitorIdKey$1,a)},getDIDColor=a=>{if(isEthereumDid$1(a)){const j=Uint8Array.from(a.slice(2).match(/.{1,2}/g).map(_e=>parseInt(_e,16))).slice(0,8).reduce((_e,et)=>_e+et,0)%colors.length;return colors[j]}try{const j=getDIDMotifInfo(a);return j==null?void 0:j.color}catch{return null}},getTranslation=(a,j,{fallbackLocale:_e="en",defaultValue:et="unknown"}={})=>{if(typeof a=="string")return a;let nt;return j&&(nt=a[j]),(!nt||typeof nt!="string")&&(nt=a[_e]),(!nt||typeof nt!="string")&&(nt=et),nt},cookieName="nf_lang",getLocaleFromSearchParams=(a,j=window.location.href)=>{const _e=new URL(j).searchParams.get("locale");return a.find(et=>et.code===_e)?_e:null},setLocaleParam=(a,j=window.location.href)=>{const _e=new URL(j);_e.searchParams.has("locale")&&(_e.searchParams.set("locale",a),window.history.replaceState({},"",_e.href))},getLocale=(a=[])=>{var _e;const j={languages:a.map(et=>et.code),fallback:((_e=a==null?void 0:a[0])==null?void 0:_e.code)||"en"};return getLocaleFromSearchParams(a)||Cookie.get(cookieName)||getPreferredLanguage(j)},setLocale=a=>{Cookie.set(cookieName,a,getCookieOptions()),setLocaleParam(a)},getLanguages=a=>{const j=get$6(window,"blocklet.languages");return Array.isArray(j)&&j.length?j:Array.isArray(a)&&a.length?a:[{code:"en",name:"English"},{code:"zh",name:"简体中文"}]},LocaleContext=reactExports.createContext(null),{Provider:Provider$8,Consumer:Consumer$7}=LocaleContext;function LocaleProvider({children:a,locale:j,fallbackLocale:_e,translations:et,onLoadingTranslation:nt,languages:tt=[],...ot}){const ct=getLanguages(tt);let[ft,ht]=reactExports.useState(j||getLocale(ct));const dt=reactExports.useRef(_e||""),[,yt]=reactExports.useState(0),Tt=At=>{ht(At),setLocale(At)};if(reactExports.useEffect(()=>{const At=j||getLocale(ct);At!==ft&&Tt(At)},[j]),ft&&et[ft]&&typeof et[ft]=="function"){const At=ft;try{Promise.resolve(et[At]()).then(Rt=>{Rt&&typeof Rt=="object"&&(et[At]=Rt,yt(It=>It>999?0:It+1))})}catch(Rt){console.error(Rt)}nt==null||nt(At,ct),ft=dt.current}else dt.current=ft;const St=reactExports.useCallback((At,Rt)=>translate(et,At,ft,_e,Rt),[et,ft,_e]);return jsxRuntimeExports.jsx(Provider$8,{value:{locale:ft,changeLocale:Tt,t:St,languages:ct,...ot},children:a})}function useLocaleContext(){return reactExports.useContext(LocaleContext)}var __defProp$7=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__getOwnPropNames$1=Object.getOwnPropertyNames,__hasOwnProp$2=Object.prototype.hasOwnProperty,__export$1=(a,j)=>{for(var _e in j)__defProp$7(a,_e,{get:j[_e],enumerable:!0})},__copyProps$1=(a,j,_e,et)=>{if(j&&typeof j=="object"||typeof j=="function")for(let nt of __getOwnPropNames$1(j))!__hasOwnProp$2.call(a,nt)&&nt!==_e&&__defProp$7(a,nt,{get:()=>j[nt],enumerable:!(et=__getOwnPropDesc$1(j,nt))||et.enumerable});return a},__toCommonJS$1=a=>__copyProps$1(__defProp$7({},"__esModule",{value:!0}),a),lib_exports={};__export$1(lib_exports,{APP_CONFIG_DIR:()=>APP_CONFIG_DIR,APP_CONFIG_FILE_PATH:()=>APP_CONFIG_FILE_PATH,APP_CONFIG_PUBLIC_DIR:()=>APP_CONFIG_PUBLIC_DIR,BLOCKLET_APP_SPACE_REQUIREMENT:()=>BLOCKLET_APP_SPACE_REQUIREMENT,BLOCKLET_ARCHITECTURES:()=>BLOCKLET_ARCHITECTURES,BLOCKLET_BUNDLE_FILE:()=>BLOCKLET_BUNDLE_FILE,BLOCKLET_BUNDLE_FOLDER:()=>BLOCKLET_BUNDLE_FOLDER,BLOCKLET_BUNDLE_FOLDER_NAME:()=>BLOCKLET_BUNDLE_FOLDER_NAME,BLOCKLET_CONFIGURABLE_KEY:()=>BLOCKLET_CONFIGURABLE_KEY,BLOCKLET_CONTROLLER_STATUS:()=>BLOCKLET_CONTROLLER_STATUS,BLOCKLET_DEFAULT_PATH_REWRITE:()=>BLOCKLET_DEFAULT_PATH_REWRITE,BLOCKLET_DEFAULT_PORT_NAME:()=>BLOCKLET_DEFAULT_PORT_NAME,BLOCKLET_DEFAULT_VERSION:()=>BLOCKLET_DEFAULT_VERSION,BLOCKLET_DYNAMIC_PATH_PREFIX:()=>BLOCKLET_DYNAMIC_PATH_PREFIX,BLOCKLET_ENTRY_FILE:()=>BLOCKLET_ENTRY_FILE,BLOCKLET_FACTORY_SHARES:()=>BLOCKLET_FACTORY_SHARES,BLOCKLET_GROUPS:()=>BLOCKLET_GROUPS,BLOCKLET_INTERFACE_PROTOCOLS:()=>BLOCKLET_INTERFACE_PROTOCOLS,BLOCKLET_INTERFACE_PROTOCOL_HTTP:()=>BLOCKLET_INTERFACE_PROTOCOL_HTTP,BLOCKLET_INTERFACE_PROTOCOL_TCP:()=>BLOCKLET_INTERFACE_PROTOCOL_TCP,BLOCKLET_INTERFACE_PROTOCOL_UDP:()=>BLOCKLET_INTERFACE_PROTOCOL_UDP,BLOCKLET_INTERFACE_PUBLIC:()=>BLOCKLET_INTERFACE_PUBLIC,BLOCKLET_INTERFACE_TYPES:()=>BLOCKLET_INTERFACE_TYPES,BLOCKLET_INTERFACE_TYPE_DOCKER:()=>BLOCKLET_INTERFACE_TYPE_DOCKER,BLOCKLET_INTERFACE_TYPE_SERVICE:()=>BLOCKLET_INTERFACE_TYPE_SERVICE,BLOCKLET_INTERFACE_TYPE_WEB:()=>BLOCKLET_INTERFACE_TYPE_WEB,BLOCKLET_INTERFACE_TYPE_WELLKNOWN:()=>BLOCKLET_INTERFACE_TYPE_WELLKNOWN,BLOCKLET_INTERFACE_WELLKNOWN:()=>BLOCKLET_INTERFACE_WELLKNOWN,BLOCKLET_LATEST_REQUIREMENT_ABTNODE:()=>BLOCKLET_LATEST_REQUIREMENT_ABTNODE,BLOCKLET_LATEST_REQUIREMENT_SERVER:()=>BLOCKLET_LATEST_REQUIREMENT_SERVER,BLOCKLET_LATEST_SPEC_VERSION:()=>BLOCKLET_LATEST_SPEC_VERSION,BLOCKLET_META_FILE:()=>BLOCKLET_META_FILE,BLOCKLET_META_FILE_ALT:()=>BLOCKLET_META_FILE_ALT,BLOCKLET_MODES:()=>BLOCKLET_MODES,BLOCKLET_OPENEMBED_PREFIX:()=>BLOCKLET_OPENEMBED_PREFIX,BLOCKLET_OPEN_API_FILE:()=>BLOCKLET_OPEN_API_FILE,BLOCKLET_OPEN_API_FILE_JSON:()=>BLOCKLET_OPEN_API_FILE_JSON,BLOCKLET_OPEN_COMPONENT_FILE:()=>BLOCKLET_OPEN_COMPONENT_FILE,BLOCKLET_OPEN_COMPONENT_FILE_JSON:()=>BLOCKLET_OPEN_COMPONENT_FILE_JSON,BLOCKLET_PLATFORMS:()=>BLOCKLET_PLATFORMS,BLOCKLET_PREFERENCE_FILE:()=>BLOCKLET_PREFERENCE_FILE,BLOCKLET_PREFERENCE_PREFIX:()=>BLOCKLET_PREFERENCE_PREFIX,BLOCKLET_RELEASE_FILE:()=>BLOCKLET_RELEASE_FILE,BLOCKLET_RELEASE_FOLDER:()=>BLOCKLET_RELEASE_FOLDER,BLOCKLET_RELEASE_FOLDER_NAME:()=>BLOCKLET_RELEASE_FOLDER_NAME,BLOCKLET_RESOURCE_DIR:()=>BLOCKLET_RESOURCE_DIR,BLOCKLET_STANDARD_INTERFACES:()=>BLOCKLET_STANDARD_INTERFACES,BLOCKLET_TENANT_MODES:()=>BLOCKLET_TENANT_MODES,BLOCKLET_UI_INTERFACES:()=>BLOCKLET_UI_INTERFACES,BLOCKLET_UPLOADS_DIR:()=>BLOCKLET_UPLOADS_DIR,BlockletEvents:()=>BlockletEvents,BlockletGroup:()=>BlockletGroup,BlockletInternalEvents:()=>BlockletInternalEvents,BlockletSource:()=>BlockletSource,BlockletStatus:()=>BlockletStatus,CHAIN_INFO_CONFIG:()=>CHAIN_INFO_CONFIG,CHAIN_PROP_MAP:()=>CHAIN_PROP_MAP,CHAIN_PROP_MAP_REVERSE:()=>CHAIN_PROP_MAP_REVERSE,COMPONENT_DOCKER_ENV_FILE_NAME:()=>COMPONENT_DOCKER_ENV_FILE_NAME,COMPONENT_ENV_FILE_NAME:()=>COMPONENT_ENV_FILE_NAME,DID_SPACES:()=>DID_SPACES,LOGIN_PROVIDER:()=>LOGIN_PROVIDER,MAX_TITLE_LENGTH:()=>MAX_TITLE_LENGTH,PROJECT:()=>PROJECT,PROVIDER_NAME:()=>PROVIDER_NAME,RESOURCE_PATTERN:()=>RESOURCE_PATTERN,RESTORE_PROGRESS_STATUS:()=>RESTORE_PROGRESS_STATUS,SIG_VERSION:()=>SIG_VERSION,SUPPORTED_LANGUAGES:()=>languages_default,SUSPENDED_REASON:()=>SUSPENDED_REASON,TeamEvents:()=>TeamEvents,baseLanguages:()=>baseLanguages,fromBlockletSource:()=>fromBlockletSource,fromBlockletStatus:()=>fromBlockletStatus,toBlockletSource:()=>toBlockletSource,toBlockletStatus:()=>toBlockletStatus});var constant$2=__toCommonJS$1(lib_exports),SUPPORTED_LANGUAGES={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"}},baseLanguages=[{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:"ไทย"}],languages_default=SUPPORTED_LANGUAGES,fromEntry=a=>j=>{const _e=Object.entries(a).find(et=>et[1]===Number(j));return _e?_e[0]:"unknown"},toEntry=a=>j=>Object.keys(a).find(_e=>a[_e]===Number(j)),BlockletStatus=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}),BLOCKLET_CONTROLLER_STATUS={normal:0,suspended:10},SUSPENDED_REASON={expired:"expired"},fromBlockletStatus=fromEntry(BlockletStatus),toBlockletStatus=toEntry(BlockletStatus),BlockletSource=Object.freeze({registry:0,local:1,upload:2,url:3,custom:4}),fromBlockletSource=fromEntry(BlockletSource),toBlockletSource=toEntry(BlockletSource),BlockletGroup=Object.freeze({static:"static",dapp:"dapp",gateway:"gateway",pack:"pack"}),BLOCKLET_GROUPS=["dapp","static","gateway","pack"],BlockletEvents=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",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"}),BlockletInternalEvents=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"}),TeamEvents=Object.freeze({userAdded:"user.added",userRemoved:"user.removed",userUpdated:"user.updated",userProfileUpdated:"user.profile.updated",userPermissionUpdated:"user.permission.updated"}),BLOCKLET_PLATFORMS=["aix","darwin","freebsd","linux","openbsd","sunos","win32"],BLOCKLET_ARCHITECTURES=["arm","arm64","ia32","mips","mipsel","ppc","ppc64","s390","s390x","x32","x64"],BLOCKLET_MODES=Object.freeze({PRODUCTION:"production",DEVELOPMENT:"development"}),BLOCKLET_TENANT_MODES=Object.freeze({SINGLE:"single",MULTIPLE:"multiple"}),BLOCKLET_FACTORY_SHARES={developer:.7,store:.3},BLOCKLET_INTERFACE_TYPE_WEB="web",BLOCKLET_INTERFACE_TYPE_SERVICE="service",BLOCKLET_INTERFACE_TYPE_DOCKER="docker",BLOCKLET_INTERFACE_TYPE_WELLKNOWN="wellknown",BLOCKLET_INTERFACE_TYPES=[BLOCKLET_INTERFACE_TYPE_WEB,BLOCKLET_INTERFACE_TYPE_SERVICE,BLOCKLET_INTERFACE_TYPE_WELLKNOWN,BLOCKLET_INTERFACE_TYPE_DOCKER],BLOCKLET_INTERFACE_PUBLIC="publicUrl",BLOCKLET_INTERFACE_WELLKNOWN="wellknownUrl",BLOCKLET_UI_INTERFACES=[BLOCKLET_INTERFACE_PUBLIC],BLOCKLET_STANDARD_INTERFACES=[BLOCKLET_INTERFACE_PUBLIC,BLOCKLET_INTERFACE_WELLKNOWN],BLOCKLET_INTERFACE_PROTOCOL_HTTP="http",BLOCKLET_INTERFACE_PROTOCOL_TCP="tcp",BLOCKLET_INTERFACE_PROTOCOL_UDP="udp",BLOCKLET_INTERFACE_PROTOCOLS=[BLOCKLET_INTERFACE_PROTOCOL_TCP,BLOCKLET_INTERFACE_PROTOCOL_UDP,BLOCKLET_INTERFACE_PROTOCOL_HTTP],BLOCKLET_DYNAMIC_PATH_PREFIX="*",BLOCKLET_DEFAULT_PORT_NAME="BLOCKLET_PORT",BLOCKLET_DEFAULT_PATH_REWRITE="/",BLOCKLET_RELEASE_FOLDER=".blocklet/release",BLOCKLET_RELEASE_FILE="blocklet.json",BLOCKLET_BUNDLE_FOLDER=".blocklet/bundle",BLOCKLET_RELEASE_FOLDER_NAME="release",BLOCKLET_BUNDLE_FOLDER_NAME="bundle",BLOCKLET_BUNDLE_FILE="blocklet.zip",BLOCKLET_ENTRY_FILE="blocklet.js",BLOCKLET_META_FILE="blocklet.yml",BLOCKLET_META_FILE_ALT="blocklet.yaml",BLOCKLET_PREFERENCE_FILE="blocklet.prefs.json",BLOCKLET_OPEN_API_FILE="blocklet.openapi.yaml",BLOCKLET_OPEN_API_FILE_JSON="blocklet.openapi.json",BLOCKLET_OPEN_COMPONENT_FILE="blocklet.opencomponent.yaml",BLOCKLET_OPEN_COMPONENT_FILE_JSON="blocklet.opencomponent.json",BLOCKLET_PREFERENCE_PREFIX="prefs.",BLOCKLET_RESOURCE_DIR="resources",RESOURCE_PATTERN=/\.(js|css|jpg|jpeg|png|gif|webp|avif|svg|woff|woff2|ico|mp4|mp3|webm)$/i,PROJECT={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},BLOCKLET_DEFAULT_VERSION="1.0.0",BLOCKLET_UPLOADS_DIR="__uploads",BLOCKLET_LATEST_SPEC_VERSION="1.2.8",BLOCKLET_LATEST_REQUIREMENT_SERVER=">=1.7.0",BLOCKLET_LATEST_REQUIREMENT_ABTNODE=">=1.5.15",BLOCKLET_CONFIGURABLE_KEY={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_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"},DID_SPACES={VC_TYPES:["PersonalSpaceVerifiableCredential","EnterpriseSpaceVerifiableCredential","DIDSpaceAppAuthCredential"],NFT_TAG:"did-space-purchase-nft",AUTHORIZE:{DEFAULT_SCOPE:"list:object read:object write:object"}},BLOCKLET_APP_SPACE_REQUIREMENT={REQUIRED:"required",REQUIRED_ON_SETUP:"requiredOnSetup",OPTIONAL:"optional",REQUIRED_ON_CONNECT:"requiredOnConnect"},CHAIN_INFO_CONFIG={CHAIN_TYPE:["type","arcblock"],CHAIN_ID:["id","none"],CHAIN_HOST:["host","none"]},RESTORE_PROGRESS_STATUS={waiting:0,start:10,importData:20,downloading:30,importDataSuccess:40,installing:50,completed:60,error:70},CHAIN_PROP_MAP={BLOCKLET_APP_CHAIN_HOST:"CHAIN_HOST",BLOCKLET_APP_CHAIN_ID:"CHAIN_ID",BLOCKLET_APP_CHAIN_TYPE:"CHAIN_TYPE"},CHAIN_PROP_MAP_REVERSE=Object.keys(CHAIN_PROP_MAP).reduce((a,j)=>(a[CHAIN_PROP_MAP[j]]=j,a),{}),LOGIN_PROVIDER={AUTH0:"auth0",GOOGLE:"google",APPLE:"apple",GITHUB:"github",WALLET:"wallet",NFT:"nft"},PROVIDER_NAME={auth0:"Auth0",github:"GitHub",google:"Google",apple:"Apple",email:"Email",wallet:"DID wallet",federated:"Federated"},APP_CONFIG_DIR="/.config",APP_CONFIG_PUBLIC_DIR="/.config/public",APP_CONFIG_FILE_PATH="/.config/config.json",COMPONENT_ENV_FILE_NAME="env",COMPONENT_DOCKER_ENV_FILE_NAME="docker-env",MAX_TITLE_LENGTH=40,BLOCKLET_OPENEMBED_PREFIX="/.well-known/blocklet/openembed",SIG_VERSION={V0:"0",V1:"1",DEFAULT:"1"};function getSvgIconUtilityClass(a){return generateUtilityClass("MuiSvgIcon",a)}generateUtilityClasses("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _excluded$v=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],useUtilityClasses$p=a=>{const{color:j,fontSize:_e,classes:et}=a,nt={root:["root",j!=="inherit"&&`color${capitalize$3(j)}`,`fontSize${capitalize$3(_e)}`]};return composeClasses(nt,getSvgIconUtilityClass,et)},SvgIconRoot=styled$1("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(a,j)=>{const{ownerState:_e}=a;return[j.root,_e.color!=="inherit"&&j[`color${capitalize$3(_e.color)}`],j[`fontSize${capitalize$3(_e.fontSize)}`]]}})(({theme:a,ownerState:j})=>{var _e,et,nt,tt,ot,ct,ft,ht,dt,yt,Tt,St,At;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:j.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(_e=a.transitions)==null||(et=_e.create)==null?void 0:et.call(_e,"fill",{duration:(nt=a.transitions)==null||(nt=nt.duration)==null?void 0:nt.shorter}),fontSize:{inherit:"inherit",small:((tt=a.typography)==null||(ot=tt.pxToRem)==null?void 0:ot.call(tt,20))||"1.25rem",medium:((ct=a.typography)==null||(ft=ct.pxToRem)==null?void 0:ft.call(ct,24))||"1.5rem",large:((ht=a.typography)==null||(dt=ht.pxToRem)==null?void 0:dt.call(ht,35))||"2.1875rem"}[j.fontSize],color:(yt=(Tt=(a.vars||a).palette)==null||(Tt=Tt[j.color])==null?void 0:Tt.main)!=null?yt:{action:(St=(a.vars||a).palette)==null||(St=St.action)==null?void 0:St.active,disabled:(At=(a.vars||a).palette)==null||(At=At.action)==null?void 0:At.disabled,inherit:void 0}[j.color]}}),SvgIcon=reactExports.forwardRef(function(j,_e){const et=useDefaultProps({props:j,name:"MuiSvgIcon"}),{children:nt,className:tt,color:ot="inherit",component:ct="svg",fontSize:ft="medium",htmlColor:ht,inheritViewBox:dt=!1,titleAccess:yt,viewBox:Tt="0 0 24 24"}=et,St=_objectWithoutPropertiesLoose$1(et,_excluded$v),At=reactExports.isValidElement(nt)&&nt.type==="svg",Rt=_extends$2({},et,{color:ot,component:ct,fontSize:ft,instanceFontSize:j.fontSize,inheritViewBox:dt,viewBox:Tt,hasSvgAsChild:At}),It={};dt||(It.viewBox=Tt);const Ct=useUtilityClasses$p(Rt);return jsxRuntimeExports.jsxs(SvgIconRoot,_extends$2({as:ct,className:clsx$1(Ct.root,tt),focusable:"false",color:ht,"aria-hidden":yt?void 0:!0,role:yt?"img":void 0,ref:_e},It,St,At&&nt.props,{ownerState:Rt,children:[At?nt.props.children:nt,yt?jsxRuntimeExports.jsx("title",{children:yt}):null]}))});SvgIcon.muiName="SvgIcon";function createSvgIcon$1(a,j){function _e(et,nt){return jsxRuntimeExports.jsx(SvgIcon,_extends$2({"data-testid":`${j}Icon`,ref:nt},et,{children:a}))}return _e.muiName=SvgIcon.muiName,reactExports.memo(reactExports.forwardRef(_e))}const unstable_ClassNameGenerator={configure:a=>{ClassNameGenerator.configure(a)}},utils$p=Object.freeze(Object.defineProperty({__proto__:null,capitalize:capitalize$3,createChainedFunction:createChainedFunction$1,createSvgIcon:createSvgIcon$1,debounce:debounce$5,deprecatedPropType,isMuiElement,ownerDocument,ownerWindow,requirePropFactory,setRef,unstable_ClassNameGenerator,unstable_useEnhancedEffect:useEnhancedEffect$1,unstable_useId:useId,unsupportedProp,useControlled,useEventCallback:useEventCallback$1,useForkRef,useIsFocusVisible},Symbol.toStringTag,{value:"Module"}));function _setPrototypeOf(a,j){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(_e,et){return _e.__proto__=et,_e},_setPrototypeOf(a,j)}function _inheritsLoose$2(a,j){a.prototype=Object.create(j.prototype),a.prototype.constructor=a,_setPrototypeOf(a,j)}const config$1={disabled:!1},TransitionGroupContext=React$2.createContext(null);var forceReflow=function(j){return j.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition$1=function(a){_inheritsLoose$2(j,a);function j(et,nt){var tt;tt=a.call(this,et,nt)||this;var ot=nt,ct=ot&&!ot.isMounting?et.enter:et.appear,ft;return tt.appearStatus=null,et.in?ct?(ft=EXITED,tt.appearStatus=ENTERING):ft=ENTERED:et.unmountOnExit||et.mountOnEnter?ft=UNMOUNTED:ft=EXITED,tt.state={status:ft},tt.nextCallback=null,tt}j.getDerivedStateFromProps=function(nt,tt){var ot=nt.in;return ot&&tt.status===UNMOUNTED?{status:EXITED}:null};var _e=j.prototype;return _e.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},_e.componentDidUpdate=function(nt){var tt=null;if(nt!==this.props){var ot=this.state.status;this.props.in?ot!==ENTERING&&ot!==ENTERED&&(tt=ENTERING):(ot===ENTERING||ot===ENTERED)&&(tt=EXITING)}this.updateStatus(!1,tt)},_e.componentWillUnmount=function(){this.cancelNextCallback()},_e.getTimeouts=function(){var nt=this.props.timeout,tt,ot,ct;return tt=ot=ct=nt,nt!=null&&typeof nt!="number"&&(tt=nt.exit,ot=nt.enter,ct=nt.appear!==void 0?nt.appear:ot),{exit:tt,enter:ot,appear:ct}},_e.updateStatus=function(nt,tt){if(nt===void 0&&(nt=!1),tt!==null)if(this.cancelNextCallback(),tt===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var ot=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);ot&&forceReflow(ot)}this.performEnter(nt)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},_e.performEnter=function(nt){var tt=this,ot=this.props.enter,ct=this.context?this.context.isMounting:nt,ft=this.props.nodeRef?[ct]:[ReactDOM.findDOMNode(this),ct],ht=ft[0],dt=ft[1],yt=this.getTimeouts(),Tt=ct?yt.appear:yt.enter;if(!nt&&!ot||config$1.disabled){this.safeSetState({status:ENTERED},function(){tt.props.onEntered(ht)});return}this.props.onEnter(ht,dt),this.safeSetState({status:ENTERING},function(){tt.props.onEntering(ht,dt),tt.onTransitionEnd(Tt,function(){tt.safeSetState({status:ENTERED},function(){tt.props.onEntered(ht,dt)})})})},_e.performExit=function(){var nt=this,tt=this.props.exit,ot=this.getTimeouts(),ct=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!tt||config$1.disabled){this.safeSetState({status:EXITED},function(){nt.props.onExited(ct)});return}this.props.onExit(ct),this.safeSetState({status:EXITING},function(){nt.props.onExiting(ct),nt.onTransitionEnd(ot.exit,function(){nt.safeSetState({status:EXITED},function(){nt.props.onExited(ct)})})})},_e.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},_e.safeSetState=function(nt,tt){tt=this.setNextCallback(tt),this.setState(nt,tt)},_e.setNextCallback=function(nt){var tt=this,ot=!0;return this.nextCallback=function(ct){ot&&(ot=!1,tt.nextCallback=null,nt(ct))},this.nextCallback.cancel=function(){ot=!1},this.nextCallback},_e.onTransitionEnd=function(nt,tt){this.setNextCallback(tt);var ot=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),ct=nt==null&&!this.props.addEndListener;if(!ot||ct){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var ft=this.props.nodeRef?[this.nextCallback]:[ot,this.nextCallback],ht=ft[0],dt=ft[1];this.props.addEndListener(ht,dt)}nt!=null&&setTimeout(this.nextCallback,nt)},_e.render=function(){var nt=this.state.status;if(nt===UNMOUNTED)return null;var tt=this.props,ot=tt.children;tt.in,tt.mountOnEnter,tt.unmountOnExit,tt.appear,tt.enter,tt.exit,tt.timeout,tt.addEndListener,tt.onEnter,tt.onEntering,tt.onEntered,tt.onExit,tt.onExiting,tt.onExited,tt.nodeRef;var ct=_objectWithoutPropertiesLoose$1(tt,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React$2.createElement(TransitionGroupContext.Provider,{value:null},typeof ot=="function"?ot(nt,ct):React$2.cloneElement(React$2.Children.only(ot),ct))},j}(React$2.Component);Transition$1.contextType=TransitionGroupContext;Transition$1.propTypes={};function noop$8(){}Transition$1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$8,onEntering:noop$8,onEntered:noop$8,onExit:noop$8,onExiting:noop$8,onExited:noop$8};Transition$1.UNMOUNTED=UNMOUNTED;Transition$1.EXITED=EXITED;Transition$1.ENTERING=ENTERING;Transition$1.ENTERED=ENTERED;Transition$1.EXITING=EXITING;function _assertThisInitialized$1(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}const assertThisInitialized=Object.freeze(Object.defineProperty({__proto__:null,default:_assertThisInitialized$1},Symbol.toStringTag,{value:"Module"}));function getChildMapping(a,j){var _e=function(tt){return j&&reactExports.isValidElement(tt)?j(tt):tt},et=Object.create(null);return a&&reactExports.Children.map(a,function(nt){return nt}).forEach(function(nt){et[nt.key]=_e(nt)}),et}function mergeChildMappings(a,j){a=a||{},j=j||{};function _e(dt){return dt in j?j[dt]:a[dt]}var et=Object.create(null),nt=[];for(var tt in a)tt in j?nt.length&&(et[tt]=nt,nt=[]):nt.push(tt);var ot,ct={};for(var ft in j){if(et[ft])for(ot=0;ot<et[ft].length;ot++){var ht=et[ft][ot];ct[et[ft][ot]]=_e(ht)}ct[ft]=_e(ft)}for(ot=0;ot<nt.length;ot++)ct[nt[ot]]=_e(nt[ot]);return ct}function getProp(a,j,_e){return _e[j]!=null?_e[j]:a.props[j]}function getInitialChildMapping(a,j){return getChildMapping(a.children,function(_e){return reactExports.cloneElement(_e,{onExited:j.bind(null,_e),in:!0,appear:getProp(_e,"appear",a),enter:getProp(_e,"enter",a),exit:getProp(_e,"exit",a)})})}function getNextChildMapping(a,j,_e){var et=getChildMapping(a.children),nt=mergeChildMappings(j,et);return Object.keys(nt).forEach(function(tt){var ot=nt[tt];if(reactExports.isValidElement(ot)){var ct=tt in j,ft=tt in et,ht=j[tt],dt=reactExports.isValidElement(ht)&&!ht.props.in;ft&&(!ct||dt)?nt[tt]=reactExports.cloneElement(ot,{onExited:_e.bind(null,ot),in:!0,exit:getProp(ot,"exit",a),enter:getProp(ot,"enter",a)}):!ft&&ct&&!dt?nt[tt]=reactExports.cloneElement(ot,{in:!1}):ft&&ct&&reactExports.isValidElement(ht)&&(nt[tt]=reactExports.cloneElement(ot,{onExited:_e.bind(null,ot),in:ht.props.in,exit:getProp(ot,"exit",a),enter:getProp(ot,"enter",a)}))}}),nt}var values=Object.values||function(a){return Object.keys(a).map(function(j){return a[j]})},defaultProps={component:"div",childFactory:function(j){return j}},TransitionGroup=function(a){_inheritsLoose$2(j,a);function j(et,nt){var tt;tt=a.call(this,et,nt)||this;var ot=tt.handleExited.bind(_assertThisInitialized$1(tt));return tt.state={contextValue:{isMounting:!0},handleExited:ot,firstRender:!0},tt}var _e=j.prototype;return _e.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},_e.componentWillUnmount=function(){this.mounted=!1},j.getDerivedStateFromProps=function(nt,tt){var ot=tt.children,ct=tt.handleExited,ft=tt.firstRender;return{children:ft?getInitialChildMapping(nt,ct):getNextChildMapping(nt,ot,ct),firstRender:!1}},_e.handleExited=function(nt,tt){var ot=getChildMapping(this.props.children);nt.key in ot||(nt.props.onExited&&nt.props.onExited(tt),this.mounted&&this.setState(function(ct){var ft=_extends$2({},ct.children);return delete ft[nt.key],{children:ft}}))},_e.render=function(){var nt=this.props,tt=nt.component,ot=nt.childFactory,ct=_objectWithoutPropertiesLoose$1(nt,["component","childFactory"]),ft=this.state.contextValue,ht=values(this.state.children).map(ot);return delete ct.appear,delete ct.enter,delete ct.exit,tt===null?React$2.createElement(TransitionGroupContext.Provider,{value:ft},ht):React$2.createElement(TransitionGroupContext.Provider,{value:ft},React$2.createElement(tt,ct,ht))},j}(React$2.Component);TransitionGroup.propTypes={};TransitionGroup.defaultProps=defaultProps;const reflow=a=>a.scrollTop;function getTransitionProps(a,j){var _e,et;const{timeout:nt,easing:tt,style:ot={}}=a;return{duration:(_e=ot.transitionDuration)!=null?_e:typeof nt=="number"?nt:nt[j.mode]||0,easing:(et=ot.transitionTimingFunction)!=null?et:typeof tt=="object"?tt[j.mode]:tt,delay:ot.transitionDelay}}function getCollapseUtilityClass(a){return generateUtilityClass("MuiCollapse",a)}generateUtilityClasses("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const _excluded$u=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],useUtilityClasses$o=a=>{const{orientation:j,classes:_e}=a,et={root:["root",`${j}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${j}`],wrapperInner:["wrapperInner",`${j}`]};return composeClasses(et,getCollapseUtilityClass,_e)},CollapseRoot=styled$1("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(a,j)=>{const{ownerState:_e}=a;return[j.root,j[_e.orientation],_e.state==="entered"&&j.entered,_e.state==="exited"&&!_e.in&&_e.collapsedSize==="0px"&&j.hidden]}})(({theme:a,ownerState:j})=>_extends$2({height:0,overflow:"hidden",transition:a.transitions.create("height")},j.orientation==="horizontal"&&{height:"auto",width:0,transition:a.transitions.create("width")},j.state==="entered"&&_extends$2({height:"auto",overflow:"visible"},j.orientation==="horizontal"&&{width:"auto"}),j.state==="exited"&&!j.in&&j.collapsedSize==="0px"&&{visibility:"hidden"})),CollapseWrapper=styled$1("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(a,j)=>j.wrapper})(({ownerState:a})=>_extends$2({display:"flex",width:"100%"},a.orientation==="horizontal"&&{width:"auto",height:"100%"})),CollapseWrapperInner=styled$1("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(a,j)=>j.wrapperInner})(({ownerState:a})=>_extends$2({width:"100%"},a.orientation==="horizontal"&&{width:"auto",height:"100%"})),Collapse=reactExports.forwardRef(function(j,_e){const et=useDefaultProps({props:j,name:"MuiCollapse"}),{addEndListener:nt,children:tt,className:ot,collapsedSize:ct="0px",component:ft,easing:ht,in:dt,onEnter:yt,onEntered:Tt,onEntering:St,onExit:At,onExited:Rt,onExiting:It,orientation:Ct="vertical",style:kt,timeout:Pt=duration$2.standard,TransitionComponent:Bt=Transition$1}=et,Kt=_objectWithoutPropertiesLoose$1(et,_excluded$u),jt=_extends$2({},et,{orientation:Ct,collapsedSize:ct}),zt=useUtilityClasses$o(jt),Gt=useTheme$1(),tn=useTimeout(),hn=reactExports.useRef(null),wt=reactExports.useRef(),rt=typeof ct=="number"?`${ct}px`:ct,st=Ct==="horizontal",ut=st?"width":"height",pt=reactExports.useRef(null),mt=useForkRef(_e,pt),$t=Jt=>Ft=>{if(Jt){const Zt=pt.current;Ft===void 0?Jt(Zt):Jt(Zt,Ft)}},xt=()=>hn.current?hn.current[st?"clientWidth":"clientHeight"]:0,vt=$t((Jt,Ft)=>{hn.current&&st&&(hn.current.style.position="absolute"),Jt.style[ut]=rt,yt&&yt(Jt,Ft)}),it=$t((Jt,Ft)=>{const Zt=xt();hn.current&&st&&(hn.current.style.position="");const{duration:nn,easing:cn}=getTransitionProps({style:kt,timeout:Pt,easing:ht},{mode:"enter"});if(Pt==="auto"){const qt=Gt.transitions.getAutoHeightDuration(Zt);Jt.style.transitionDuration=`${qt}ms`,wt.current=qt}else Jt.style.transitionDuration=typeof nn=="string"?nn:`${nn}ms`;Jt.style[ut]=`${Zt}px`,Jt.style.transitionTimingFunction=cn,St&&St(Jt,Ft)}),bt=$t((Jt,Ft)=>{Jt.style[ut]="auto",Tt&&Tt(Jt,Ft)}),Mt=$t(Jt=>{Jt.style[ut]=`${xt()}px`,At&&At(Jt)}),Lt=$t(Rt),Ht=$t(Jt=>{const Ft=xt(),{duration:Zt,easing:nn}=getTransitionProps({style:kt,timeout:Pt,easing:ht},{mode:"exit"});if(Pt==="auto"){const cn=Gt.transitions.getAutoHeightDuration(Ft);Jt.style.transitionDuration=`${cn}ms`,wt.current=cn}else Jt.style.transitionDuration=typeof Zt=="string"?Zt:`${Zt}ms`;Jt.style[ut]=rt,Jt.style.transitionTimingFunction=nn,It&&It(Jt)}),Ot=Jt=>{Pt==="auto"&&tn.start(wt.current||0,Jt),nt&&nt(pt.current,Jt)};return jsxRuntimeExports.jsx(Bt,_extends$2({in:dt,onEnter:vt,onEntered:bt,onEntering:it,onExit:Mt,onExited:Lt,onExiting:Ht,addEndListener:Ot,nodeRef:pt,timeout:Pt==="auto"?null:Pt},Kt,{children:(Jt,Ft)=>jsxRuntimeExports.jsx(CollapseRoot,_extends$2({as:ft,className:clsx$1(zt.root,ot,{entered:zt.entered,exited:!dt&&rt==="0px"&&zt.hidden}[Jt]),style:_extends$2({[st?"minWidth":"minHeight"]:rt},kt),ref:mt},Ft,{ownerState:_extends$2({},jt,{state:Jt}),children:jsxRuntimeExports.jsx(CollapseWrapper,{ownerState:_extends$2({},jt,{state:Jt}),className:zt.wrapper,ref:hn,children:jsxRuntimeExports.jsx(CollapseWrapperInner,{ownerState:_extends$2({},jt,{state:Jt}),className:zt.wrapperInner,children:tt})})}))}))});Collapse.muiSupportAuto=!0;function getPaperUtilityClass(a){return generateUtilityClass("MuiPaper",a)}const paperClasses=generateUtilityClasses("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]),_excluded$t=["className","component","elevation","square","variant"],useUtilityClasses$n=a=>{const{square:j,elevation:_e,variant:et,classes:nt}=a,tt={root:["root",et,!j&&"rounded",et==="elevation"&&`elevation${_e}`]};return composeClasses(tt,getPaperUtilityClass,nt)},PaperRoot=styled$1("div",{name:"MuiPaper",slot:"Root",overridesResolver:(a,j)=>{const{ownerState:_e}=a;return[j.root,j[_e.variant],!_e.square&&j.rounded,_e.variant==="elevation"&&j[`elevation${_e.elevation}`]]}})(({theme:a,ownerState:j})=>{var _e;return _extends$2({backgroundColor:(a.vars||a).palette.background.paper,color:(a.vars||a).palette.text.primary,transition:a.transitions.create("box-shadow")},!j.square&&{borderRadius:a.shape.borderRadius},j.variant==="outlined"&&{border:`1px solid ${(a.vars||a).palette.divider}`},j.variant==="elevation"&&_extends$2({boxShadow:(a.vars||a).shadows[j.elevation]},!a.vars&&a.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${alpha_1("#fff",getOverlayAlpha(j.elevation))}, ${alpha_1("#fff",getOverlayAlpha(j.elevation))})`},a.vars&&{backgroundImage:(_e=a.vars.overlays)==null?void 0:_e[j.elevation]}))}),Paper=reactExports.forwardRef(function(j,_e){const et=useDefaultProps({props:j,name:"MuiPaper"}),{className:nt,component:tt="div",elevation:ot=1,square:ct=!1,variant:ft="elevation"}=et,ht=_objectWithoutPropertiesLoose$1(et,_excluded$t),dt=_extends$2({},et,{component:tt,elevation:ot,square:ct,variant:ft}),yt=useUtilityClasses$n(dt);return jsxRuntimeExports.jsx(PaperRoot,_extends$2({as:tt,ownerState:dt,className:clsx$1(yt.root,nt),ref:_e},ht))});function Ripple(a){const{className:j,classes:_e,pulsate:et=!1,rippleX:nt,rippleY:tt,rippleSize:ot,in:ct,onExited:ft,timeout:ht}=a,[dt,yt]=reactExports.useState(!1),Tt=clsx$1(j,_e.ripple,_e.rippleVisible,et&&_e.ripplePulsate),St={width:ot,height:ot,top:-(ot/2)+tt,left:-(ot/2)+nt},At=clsx$1(_e.child,dt&&_e.childLeaving,et&&_e.childPulsate);return!ct&&!dt&&yt(!0),reactExports.useEffect(()=>{if(!ct&&ft!=null){const Rt=setTimeout(ft,ht);return()=>{clearTimeout(Rt)}}},[ft,ct,ht]),jsxRuntimeExports.jsx("span",{className:Tt,style:St,children:jsxRuntimeExports.jsx("span",{className:At})})}const touchRippleClasses=generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_excluded$s=["center","classes","className"];let _$1=a=>a,_t$1,_t2$1,_t3$1,_t4$1;const DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes(_t$1||(_t$1=_$1`
|
|
130
|
+
*/(function(a,j){(function(_e){var et;if(a.exports=_e(),et=!0,!et){var nt=window.Cookies,tt=window.Cookies=_e();tt.noConflict=function(){return window.Cookies=nt,tt}}})(function(){function _e(){for(var tt=0,ot={};tt<arguments.length;tt++){var ct=arguments[tt];for(var ft in ct)ot[ft]=ct[ft]}return ot}function et(tt){return tt.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function nt(tt){function ot(){}function ct(ht,dt,yt){if(!(typeof document>"u")){yt=_e({path:"/"},ot.defaults,yt),typeof yt.expires=="number"&&(yt.expires=new Date(new Date*1+yt.expires*864e5)),yt.expires=yt.expires?yt.expires.toUTCString():"";try{var Tt=JSON.stringify(dt);/^[\{\[]/.test(Tt)&&(dt=Tt)}catch{}dt=tt.write?tt.write(dt,ht):encodeURIComponent(String(dt)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),ht=encodeURIComponent(String(ht)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var St="";for(var At in yt)yt[At]&&(St+="; "+At,yt[At]!==!0&&(St+="="+yt[At].split(";")[0]));return document.cookie=ht+"="+dt+St}}function ft(ht,dt){if(!(typeof document>"u")){for(var yt={},Tt=document.cookie?document.cookie.split("; "):[],St=0;St<Tt.length;St++){var At=Tt[St].split("="),Rt=At.slice(1).join("=");!dt&&Rt.charAt(0)==='"'&&(Rt=Rt.slice(1,-1));try{var It=et(At[0]);if(Rt=(tt.read||tt)(Rt,It)||et(Rt),dt)try{Rt=JSON.parse(Rt)}catch{}if(yt[It]=Rt,ht===It)break}catch{}}return ht?yt[ht]:yt}}return ot.set=ct,ot.get=function(ht){return ft(ht,!1)},ot.getJSON=function(ht){return ft(ht,!0)},ot.remove=function(ht,dt){ct(ht,"",_e(dt,{expires:-1}))},ot.defaults={},ot.withConverter=nt,ot}return nt(function(){})})})(js_cookie);var js_cookieExports=js_cookie.exports;const Cookie=getDefaultExportFromCjs$1(js_cookieExports);function startsWith$1(a,j,_e){const{length:et}=a;return _e=_e??0,_e<0?_e=0:_e>et&&(_e=et),j=`${j}`,a.slice(_e,_e+j.length)==j}function getBrowserLang$1(){return typeof window>"u"?null:window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null}function normalizeCode(a){return(a||"").toLowerCase().replace(/-/,"_")}function getPreferredLanguage(a){if(!a)return getBrowserLang$1();const{languages:j,fallback:_e}=a;if(!a.languages)return _e;const et=normalizeCode(getBrowserLang$1());if(!et)return _e;const nt=j.filter(ot=>normalizeCode(ot)===et);return nt.length>0?nt[0]||_e:j.filter(ot=>startsWith$1(et,ot))[0]||_e}const replace$3=(a,j)=>a.replace(/{(\w*)}/g,(_e,et)=>j.hasOwnProperty(et)?j[et]:""),translate=(a,j,_e,et="en",nt={})=>{const tt=a[_e],ot=get$6(tt,j),ct=get$6(a[et],j);return!tt||!ot?(console.warn(`Warning: no ${j} translation of ${_e}`),et&&ct?replace$3(ct,nt):j):typeof a[_e]=="function"||a[_e].then?replace$3(ct,nt):replace$3(ot,nt)};var MAX_SAFE_INTEGER$5=9007199254740991,nativeFloor=Math.floor;function baseRepeat$1(a,j){var _e="";if(!a||j<1||j>MAX_SAFE_INTEGER$5)return _e;do j%2&&(_e+=a),j=nativeFloor(j/2),j&&(a+=a);while(j);return _e}var _baseRepeat=baseRepeat$1;function baseSlice$2(a,j,_e){var et=-1,nt=a.length;j<0&&(j=-j>nt?0:nt+j),_e=_e>nt?nt:_e,_e<0&&(_e+=nt),nt=j>_e?0:_e-j>>>0,j>>>=0;for(var tt=Array(nt);++et<nt;)tt[et]=a[et+j];return tt}var _baseSlice=baseSlice$2,baseSlice$1=_baseSlice;function castSlice$3(a,j,_e){var et=a.length;return _e=_e===void 0?et:_e,!j&&_e>=et?a:baseSlice$1(a,j,_e)}var _castSlice=castSlice$3,rsAstralRange$3="\\ud800-\\udfff",rsComboMarksRange$4="\\u0300-\\u036f",reComboHalfMarksRange$4="\\ufe20-\\ufe2f",rsComboSymbolsRange$4="\\u20d0-\\u20ff",rsComboRange$4=rsComboMarksRange$4+reComboHalfMarksRange$4+rsComboSymbolsRange$4,rsVarRange$3="\\ufe0e\\ufe0f",rsZWJ$3="\\u200d",reHasUnicode=RegExp("["+rsZWJ$3+rsAstralRange$3+rsComboRange$4+rsVarRange$3+"]");function hasUnicode$4(a){return reHasUnicode.test(a)}var _hasUnicode=hasUnicode$4;function baseProperty$2(a){return function(j){return j==null?void 0:j[a]}}var _baseProperty=baseProperty$2,baseProperty$1=_baseProperty,asciiSize$1=baseProperty$1("length"),_asciiSize=asciiSize$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$2="\\ufe0e\\ufe0f",rsAstral$1="["+rsAstralRange$2+"]",rsCombo$3="["+rsComboRange$3+"]",rsFitz$2="\\ud83c[\\udffb-\\udfff]",rsModifier$2="(?:"+rsCombo$3+"|"+rsFitz$2+")",rsNonAstral$2="[^"+rsAstralRange$2+"]",rsRegional$2="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$2="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$2="\\u200d",reOptMod$2=rsModifier$2+"?",rsOptVar$2="["+rsVarRange$2+"]?",rsOptJoin$2="(?:"+rsZWJ$2+"(?:"+[rsNonAstral$2,rsRegional$2,rsSurrPair$2].join("|")+")"+rsOptVar$2+reOptMod$2+")*",rsSeq$2=rsOptVar$2+reOptMod$2+rsOptJoin$2,rsSymbol$1="(?:"+[rsNonAstral$2+rsCombo$3+"?",rsCombo$3,rsRegional$2,rsSurrPair$2,rsAstral$1].join("|")+")",reUnicode$1=RegExp(rsFitz$2+"(?="+rsFitz$2+")|"+rsSymbol$1+rsSeq$2,"g");function unicodeSize$1(a){for(var j=reUnicode$1.lastIndex=0;reUnicode$1.test(a);)++j;return j}var _unicodeSize=unicodeSize$1,asciiSize=_asciiSize,hasUnicode$3=_hasUnicode,unicodeSize=_unicodeSize;function stringSize$3(a){return hasUnicode$3(a)?unicodeSize(a):asciiSize(a)}var _stringSize=stringSize$3;function asciiToArray$1(a){return a.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeToArray$1(a){return a.match(reUnicode)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$2=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$3(a){return hasUnicode$2(a)?unicodeToArray(a):asciiToArray(a)}var _stringToArray=stringToArray$3,baseRepeat=_baseRepeat,baseToString$3=_baseToString,castSlice$2=_castSlice,hasUnicode$1=_hasUnicode,stringSize$2=_stringSize,stringToArray$2=_stringToArray,nativeCeil=Math.ceil;function createPadding$2(a,j){j=j===void 0?" ":baseToString$3(j);var _e=j.length;if(_e<2)return _e?baseRepeat(j,a):j;var et=baseRepeat(j,nativeCeil(a/stringSize$2(j)));return hasUnicode$1(j)?castSlice$2(stringToArray$2(et),0,a).join(""):et.slice(0,a)}var _createPadding=createPadding$2,reWhitespace=/\s/;function trimmedEndIndex$2(a){for(var j=a.length;j--&&reWhitespace.test(a.charAt(j)););return j}var _trimmedEndIndex=trimmedEndIndex$2,trimmedEndIndex$1=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(a){return a&&a.slice(0,trimmedEndIndex$1(a)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$l=isObject_1,isSymbol$6=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$4(a){if(typeof a=="number")return a;if(isSymbol$6(a))return NAN;if(isObject$l(a)){var j=typeof a.valueOf=="function"?a.valueOf():a;a=isObject$l(j)?j+"":j}if(typeof a!="string")return a===0?a:+a;a=baseTrim(a);var _e=reIsBinary.test(a);return _e||reIsOctal.test(a)?freeParseInt(a.slice(2),_e?2:8):reIsBadHex.test(a)?NAN:+a}var toNumber_1=toNumber$4,toNumber$3=toNumber_1,INFINITY$3=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$1(a){if(!a)return a===0?a:0;if(a=toNumber$3(a),a===INFINITY$3||a===-INFINITY$3){var j=a<0?-1:1;return j*MAX_INTEGER}return a===a?a:0}var toFinite_1=toFinite$1,toFinite=toFinite_1;function toInteger$2(a){var j=toFinite(a),_e=j%1;return j===j?_e?j-_e:j:0}var toInteger_1=toInteger$2,createPadding$1=_createPadding,stringSize$1=_stringSize,toInteger$1=toInteger_1,toString$j=toString_1;function padStart(a,j,_e){a=toString$j(a),j=toInteger$1(j);var et=j?stringSize$1(a):0;return j&&et<j?createPadding$1(j-et,_e)+a:a}var padStart_1$1=padStart;function base$5(a){if(a.length>=255)throw new TypeError("Alphabet too long");for(var j=new Uint8Array(256),_e=0;_e<j.length;_e++)j[_e]=255;for(var et=0;et<a.length;et++){var nt=a.charAt(et),tt=nt.charCodeAt(0);if(j[tt]!==255)throw new TypeError(nt+" is ambiguous");j[tt]=et}var ot=a.length,ct=a.charAt(0),ft=Math.log(ot)/Math.log(256),ht=Math.log(256)/Math.log(ot);function dt(St){if(St instanceof Uint8Array||(ArrayBuffer.isView(St)?St=new Uint8Array(St.buffer,St.byteOffset,St.byteLength):Array.isArray(St)&&(St=Uint8Array.from(St))),!(St instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(St.length===0)return"";for(var At=0,Rt=0,It=0,Ct=St.length;It!==Ct&&St[It]===0;)It++,At++;for(var kt=(Ct-It)*ht+1>>>0,Pt=new Uint8Array(kt);It!==Ct;){for(var Bt=St[It],Kt=0,jt=kt-1;(Bt!==0||Kt<Rt)&&jt!==-1;jt--,Kt++)Bt+=256*Pt[jt]>>>0,Pt[jt]=Bt%ot>>>0,Bt=Bt/ot>>>0;if(Bt!==0)throw new Error("Non-zero carry");Rt=Kt,It++}for(var zt=kt-Rt;zt!==kt&&Pt[zt]===0;)zt++;for(var Gt=ct.repeat(At);zt<kt;++zt)Gt+=a.charAt(Pt[zt]);return Gt}function yt(St){if(typeof St!="string")throw new TypeError("Expected String");if(St.length===0)return new Uint8Array;for(var At=0,Rt=0,It=0;St[At]===ct;)Rt++,At++;for(var Ct=(St.length-At)*ft+1>>>0,kt=new Uint8Array(Ct);St[At];){var Pt=j[St.charCodeAt(At)];if(Pt===255)return;for(var Bt=0,Kt=Ct-1;(Pt!==0||Bt<It)&&Kt!==-1;Kt--,Bt++)Pt+=ot*kt[Kt]>>>0,kt[Kt]=Pt%256>>>0,Pt=Pt/256>>>0;if(Pt!==0)throw new Error("Non-zero carry");It=Bt,At++}for(var jt=Ct-It;jt!==Ct&&kt[jt]===0;)jt++;for(var zt=new Uint8Array(Rt+(Ct-jt)),Gt=Rt;jt!==Ct;)zt[Gt++]=kt[jt++];return zt}function Tt(St){var At=yt(St);if(At)return At;throw new Error("Non-base"+ot+" character")}return{encode:dt,decodeUnsafe:yt,decode:Tt}}var src=base$5;const basex=src,ALPHABET$1="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";var bs58=basex(ALPHABET$1);const base58=getDefaultExportFromCjs$1(bs58);var __defProp$8=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$1=Object.getOwnPropertySymbols,__hasOwnProp$3=Object.prototype.hasOwnProperty,__propIsEnum$1=Object.prototype.propertyIsEnumerable,__defNormalProp$6=(a,j,_e)=>j in a?__defProp$8(a,j,{enumerable:!0,configurable:!0,writable:!0,value:_e}):a[j]=_e,__spreadValues$1=(a,j)=>{for(var _e in j||(j={}))__hasOwnProp$3.call(j,_e)&&__defNormalProp$6(a,_e,j[_e]);if(__getOwnPropSymbols$1)for(var _e of __getOwnPropSymbols$1(j))__propIsEnum$1.call(j,_e)&&__defNormalProp$6(a,_e,j[_e]);return a},__spreadProps=(a,j)=>__defProps(a,__getOwnPropDescs(j)),__objRest$1=(a,j)=>{var _e={};for(var et in a)__hasOwnProp$3.call(a,et)&&j.indexOf(et)<0&&(_e[et]=a[et]);if(a!=null&&__getOwnPropSymbols$1)for(var et of __getOwnPropSymbols$1(a))j.indexOf(et)<0&&__propIsEnum$1.call(a,et)&&(_e[et]=a[et]);return _e},colors=["#E94E4E","#E41115","#E96B4E","#E5502E","#E98F4E","#E57A2E","#E98F4E","#E5A82E","#DACD5D","#DAC825","#BDD13D","#C8E31C","#AEE94E","#7FD558","#52CC19","#4FC469","#59DE9C","#19CC73","#5ED9D1","#19CCC0","#4ED7E9","#19B7CC","#45ACE8","#1C97DE","#4E68E9","#2E4DE5","#7F4EE9","#682EE5","#BE65E7","#AF40E2","#DF58C2","#E94E8F"];const TOTAL_COLORS=32,TOTAL_POSITIONS=64,SHAPE_SIZE_RATIO=.25,REVERSED_ASPECT_RATIO=.7,RoleType={ACCOUNT:0,APPLICATION:3,ASSET:6,TOKEN:17},Shape={RECTANGLE:0,SQUARE:1,HEXAGON:2,CIRCLE:3},ElementType={CANVAS:0,SVG:1},easeOutBack=(a,j=1.70158)=>{const _e=a/1-1;return _e*_e*((j+1)*_e+j)+1},calcBorderRadius=a=>a>80?10:Math.floor(.1*a+2),getElementType=a=>{if(a){const{tagName:j}=a;if(/^svg$/i.test(j))return ElementType.SVG;if(/^canvas$/i.test(j)&&"getContext"in a)return ElementType.CANVAS}throw new Error(`Expected a svg or canvas element, got ${a}`)},animate=(a={})=>{const{callback:j,duration:_e=1e3,onComplete:et=()=>{},ease:nt=easeOutBack}=a;let tt=null,ot=0,ct=null;const ft=()=>{ct&&(cancelAnimationFrame(ct),ct=null)},ht=dt=>{tt||(tt=dt),dt-tt>=_e?(ot=1,et()):(ot=nt((dt-tt)/_e),ct=requestAnimationFrame(ht)),j(ot)};return requestAnimationFrame(ht),ft},genUniqueID=(a="")=>`${a}_${Math.floor(Math.random()*1e4)}_${Date.now()}`,DEFAULT_OPTIONS$1={width:200,height:200,xLines:8,yLines:8};class Grid{constructor(j){this.options=Object.assign({},DEFAULT_OPTIONS$1,j),this.init()}get gapX(){return this.options.width/(this.options.yLines+1)}get gapY(){return this.options.height/(this.options.xLines+1)}init(){const{xLines:j,yLines:_e}=this.options;this.xOffsets=[...new Array(j)].map((et,nt)=>(nt+1)*this.gapX-this.options.width/2),this.yOffsets=[...new Array(_e)].map((et,nt)=>(nt+1)*this.gapY-this.options.height/2)}getOffset(j,_e){return[this.xOffsets[j],this.yOffsets[_e]]}}class CanvasRenderer{constructor(j,_e){this.ctx=j;const et=_e.size||Math.min(j.canvas.width,j.canvas.height)||100;j.canvas.width=et,j.canvas.height=et;const nt=new Grid({width:et,height:et,xLines:8,yLines:8});this.config=__spreadProps(__spreadValues$1({},_e),{size:et,positions:_e.positions.map(tt=>nt.getOffset(tt[0],tt[1])),shapeSize:et*SHAPE_SIZE_RATIO})}render(){this.draw(this.config.positions)}draw(j){const{ctx:_e}=this,{size:et,color:nt,shapeSize:tt,opacity:ot,shape:ct}=this.config,ft=calcBorderRadius(et);switch(_e.clearRect(0,0,et,et),ct){case Shape.RECTANGLE:{this.drawRoundedRect(_e,0,et*(1-REVERSED_ASPECT_RATIO)/2,et,et*REVERSED_ASPECT_RATIO,ft,!1,!1);break}case Shape.HEXAGON:{this.drawHexagon(_e,et/2,et/2,et/2,0);break}case Shape.CIRCLE:{_e.arc(et/2,et/2,et/2,0,Math.PI*2);break}case Shape.SQUARE:default:this.drawRoundedRect(_e,0,0,et,et,ft,!1,!1)}_e.clip(),_e.fillStyle=nt,_e.fillRect(0,0,et,et),_e.save(),_e.translate(et/2,et/2),j.forEach(([ht,dt])=>this.drawHexagon(_e,ht,dt,tt,ot)),_e.restore()}animate(j={}){const{duration:_e=1e3,onComplete:et=()=>{}}=j,{positions:nt}=this.config;return animate({duration:_e,onComplete:et,callback:tt=>{this.draw(nt.map(ot=>[tt*ot[0],tt*ot[1]]))}})}drawHexagon(j,_e,et,nt,tt){const ot=2*Math.PI/6;j.beginPath();for(let ct=0;ct<6;ct++)j.lineTo(_e+nt*Math.cos(ot*(ct-1.5)),et+nt*Math.sin(ot*(ct-1.5)));j.closePath(),j.fillStyle=`rgba(255, 255, 255, ${tt})`,j.fill()}drawRoundedRect(j,_e,et,nt,tt,ot=10,ct=!1,ft=!0){const ht=typeof ot=="number"?{tl:ot,tr:ot,br:ot,bl:ot}:__spreadValues$1({tl:0,tr:0,br:0,bl:0},ot);j.beginPath(),j.moveTo(_e+ht.tl,et),j.lineTo(_e+nt-ht.tr,et),j.quadraticCurveTo(_e+nt,et,_e+nt,et+ht.tr),j.lineTo(_e+nt,et+tt-ht.br),j.quadraticCurveTo(_e+nt,et+tt,_e+nt-ht.br,et+tt),j.lineTo(_e+ht.bl,et+tt),j.quadraticCurveTo(_e,et+tt,_e,et+tt-ht.bl),j.lineTo(_e,et+ht.tl),j.quadraticCurveTo(_e,et,_e+ht.tl,et),j.closePath(),ct&&j.fill(),ft&&j.stroke()}}const XMLNS="http://www.w3.org/2000/svg";function svgValue(a){return Math.round(a*10)/10}class SvgRenderer{constructor(j,_e){this.el=j,this.config=_e;const et=_e.size||Math.min(Number(j.getAttribute("width"))||100,Number(j.getAttribute("height"))||100);j.setAttribute("viewBox",`0 0 ${et} ${et}`);const nt=new Grid({width:et,height:et,xLines:8,yLines:8});this.config=__spreadProps(__spreadValues$1({},_e),{size:et,positions:_e.positions.map(tt=>{const[ot,ct]=nt.getOffset(tt[0],tt[1]);return[svgValue(ot),svgValue(ct)]}),shapeSize:svgValue(et*SHAPE_SIZE_RATIO)}),this.points=this.calcPoints(et/2,et/2,this.config.shapeSize)}setBackground(){const{size:j,color:_e,shape:et}=this.config,nt=calcBorderRadius(j);let tt;switch(et){case Shape.RECTANGLE:{tt=this.drawRoundedRect(0,svgValue(j*(1-REVERSED_ASPECT_RATIO)/2),j,svgValue(j*REVERSED_ASPECT_RATIO),nt);break}case Shape.HEXAGON:{const ht=this.calcPoints(j/2,j/2,j/2);tt=this.drawHexagon(ht);break}case Shape.CIRCLE:{tt=this.createElement("circle",{cx:j/2,cy:j/2,r:j/2});break}case Shape.SQUARE:default:tt=this.drawRoundedRect(0,0,j,j,nt)}const ot=genUniqueID("clip-path"),ct=this.createElement("clipPath",{id:ot},[tt]);this.el.appendChild(this.createElement("defs",{},[ct]));const ft=this.createElement("g",{"clip-path":`url(#${ot})`},this.createElement("rect",{x:0,y:0,width:j,height:j,fill:_e}));this.g=ft,this.el.appendChild(ft)}render(){this.el.innerHTML="",this.setBackground(),this.drawHexagons(this.config.positions)}drawHexagons(j){const{opacity:_e}=this.config;this.hexagons||(this.hexagons=j.map(()=>{const et=this.drawHexagon(this.points,_e);return this.g.appendChild(et),et})),this.hexagons.forEach((et,nt)=>{et.setAttribute("transform",`translate(${j[nt][0]} ${j[nt][1]})`)})}animate(j={}){const{duration:_e=1e3,onComplete:et=()=>{}}=j,{positions:nt}=this.config;return this.setBackground(),animate({duration:_e,onComplete:et,callback:tt=>{this.drawHexagons(nt.map(ot=>[tt*ot[0],tt*ot[1]]))}})}calcPoints(j,_e,et){const nt=2*Math.PI/6,tt=[];for(let ot=0;ot<6;ot++)tt.push([j+et*Math.cos(nt*(ot-1.5)),_e+et*Math.sin(nt*(ot-1.5))]);return tt.map(ot=>[svgValue(ot[0]),svgValue(ot[1])])}getPointsStr(j){return j.map(_e=>`${svgValue(_e[0])},${svgValue(_e[1])}`).join(" ")}drawHexagon(j,_e){return this.createElement("polygon",{points:this.getPointsStr(j),transformOrigin:"center",style:{fill:"#fff",fillOpacity:_e}})}drawRoundedRect(j,_e,et,nt,tt=10,ot="none"){return this.createElement("rect",{x:j,y:_e,width:et,height:nt,rx:tt,ry:tt,fill:ot})}createElement(j,_e={},et=[]){const nt=document.createElementNS(XMLNS,j),tt=_e,{style:ot={}}=tt,ct=__objRest$1(tt,["style"]);return Object.keys(ct).forEach(ft=>{nt.setAttribute(ft,ct[ft])}),Object.keys(ot).forEach(ft=>{nt.style[ft]=ot[ft]}),Array.isArray(et)||(et=[et]),et.forEach(ft=>nt.appendChild(ft)),nt}}class DIDParsingError extends Error{constructor(j,_e){super(j,_e),this.name="DIDParsingError"}}const parseRoleType=a=>a.slice(0,1)>>>2,isBase58btc=a=>typeof a!="string"?!1:a[0]==="z",decodeDid=a=>{if(!isBase58btc(a))throw new Error(`Invalid DID string: ${a}`);return base58.decode(a.slice(1))},parseDID=a=>{try{const j=decodeDid(a),_e=parseRoleType(j),et=j.slice(2),nt=et.slice(0,8).reduce((ct,ft)=>ct+ft,0)%TOTAL_COLORS,tt=et.slice(8),ot=[...new Array(8)].map((ct,ft)=>(tt[ft*2]+tt[ft*2+1])%TOTAL_POSITIONS);return{colorIndex:nt,positionIndexes:ot,roleType:_e}}catch(j){throw new DIDParsingError(`Failed to parse DID, ${a}`,{cause:j})}},getDIDMotifInfo=a=>{const{colorIndex:j,positionIndexes:_e,roleType:et}=parseDID(a);return{color:colors[j],positions:_e.map(nt=>[Math.floor(nt/8),nt%8]),roleType:et}},getMotifShapeType=(a,j)=>{if(Object.values(Shape).indexOf(a)>-1)return a;const et={[RoleType.ACCOUNT]:Shape.RECTANGLE,[RoleType.APPLICATION]:Shape.SQUARE,[RoleType.ASSET]:Shape.HEXAGON,[RoleType.TOKEN]:Shape.CIRCLE}[j];return!et&&et!==0?Shape.SQUARE:et},getConfiguration=(a,j)=>{const _e=j,{opacity:et=.5,shape:nt}=_e,tt=__objRest$1(_e,["opacity","shape"]),{color:ot,positions:ct,roleType:ft}=getDIDMotifInfo(a);return __spreadValues$1({color:ot,positions:ct,opacity:et,shape:getMotifShapeType(nt,ft)},tt)},update$1=(a,j,_e={})=>{try{const et=getConfiguration(j,_e),tt=getElementType(a)===ElementType.CANVAS?new CanvasRenderer(a.getContext("2d"),et):new SvgRenderer(a,et),{animation:ot}=_e;ot?tt.animate(typeof ot=="object"?ot:{}):tt.render()}catch(et){if(et instanceof DIDParsingError)console.error(et.message),console.error(et.cause);else throw et}},toDataURL=(a,j)=>{const _e=getConfiguration(a,j),et=document.createElement("canvas");return new CanvasRenderer(et.getContext("2d"),_e).render(),et.toDataURL()},toSvg=(a,j={})=>{const _e=__spreadProps(__spreadValues$1({},getConfiguration(a,j)),{size:j.size||100}),et=document.createElementNS("http://www.w3.org/2000/svg","svg");return new SvgRenderer(et,_e).render(),et.outerHTML},didMotif_es=Object.freeze(Object.defineProperty({__proto__:null,Shape,colors,getConfiguration,getDIDMotifInfo,parseDID,toDataURL,toSvg,update:update$1},Symbol.toStringTag,{value:"Module"})),WELLKNOWN_SERVICE_PATH_PREFIX="/.well-known/service",AUTH_SERVICE_PREFIX$1="/.well-known/service",RELAY_SOCKET_PREFIX$1="/.well-known/service",DASHBOARD_URL=`${AUTH_SERVICE_PREFIX$1}/admin`,PROFILE_URL=`${AUTH_SERVICE_PREFIX$1}/user`,NAVIGATION_URL=`${AUTH_SERVICE_PREFIX$1}/admin/navigation`,DID_PREFIX$1="did:abt:",PASSPORT_STATUS={VALID:"valid",REVOKED:"revoked"},LOGIN_PROVIDER$1={AUTH0:"auth0",APPLE:"apple",GITHUB:"github",GOOGLE:"google",WALLET:"wallet",NFT:"nft"},LOGIN_PROVIDER_NAME={[LOGIN_PROVIDER$1.AUTH0]:"Email",[LOGIN_PROVIDER$1.APPLE]:"Apple",[LOGIN_PROVIDER$1.GITHUB]:"Github",[LOGIN_PROVIDER$1.GOOGLE]:"Google",[LOGIN_PROVIDER$1.WALLET]:"DID Wallet",[LOGIN_PROVIDER$1.NFT]:"NFT"},OAUTH_PROVIDER={auth0:"Email",apple:"Apple",github:"Github",google:"Google"};let dateTool=null;function stringifyQuery$1(a={}){return new URLSearchParams(a).toString()}function getCookieOptions(a=1){let j={expireInDays:a};typeof a=="object"&&(j=a),j.path===void 0&&(j.path="/"),j.expireInDays||(j.expireInDays=1);const _e={expires:j.expireInDays,path:j.path,domain:j.domain||"",sameSite:j.sameSite||"Lax",secure:j.secure!==!1};return(typeof window>"u"||j.domain||j.returnDomain===!1)&&j.returnDomain===!1&&delete _e.domain,_e}const getColor=a=>a.color?a.color:a.dark?a.theme.palette.common.white:a.theme.palette.text.primary,getBackground=a=>a.background?a.background:a.dark?a.theme.palette.common.black:a.theme.palette.common.white;function mergeProps(a,j,_e=[]){const et=Object.assign({},a);return Object.keys(j.defaultProps||{}).forEach(nt=>{typeof et[nt]=="string"&&et[nt].indexOf("::prop::")===0&&(et[nt]=j.defaultProps[nt])}),Array.isArray(_e)&&_e.forEach(nt=>{if(typeof et[nt]=="string")try{et[nt]=JSON.parse(et[nt])}catch{}}),Object.keys(et).forEach(nt=>{typeof et[nt]=="string"&&et[nt].indexOf("::prop::")===0&&(et[nt]="")}),et}function setDateTool(a){dateTool=a}const createDateFormatter=a=>(j,{locale:_e,tz:et})=>{if(dateTool===null)throw new Error("call setDateTool to set the date tool library, such as: setDateTool(dayjs)");if(!j)return"-";let nt=dateTool(j);return et&&(nt=nt.tz(et)),typeof _e<"u"&&(nt=nt.locale(_e)),nt.format(a)};function formatToDatetime$1(a,{locale:j,tz:_e}={}){return createDateFormatter("lll")(a,{locale:j,tz:_e})}function detectWalletExtension(){const a=(window==null?void 0:window.ABT_DEV)||window.ABT;return a&&typeof a.open=="function"?a:null}function openWebWallet({webWalletUrl:a,action:j="login",locale:_e="en",url:et,windowFeatures:nt}){const tt=detectWalletExtension();if(tt){tt.open({action:j,locale:_e,url:encodeURIComponent(et)});return}const ot={toolbar:"no",location:"no",status:"no",menubar:"no",scrollbars:"yes",resizable:"yes",width:414,height:736},ct=`${a}?action=${j}&locale=${_e}&url=${encodeURIComponent(et)}`,ft=Object.assign({},ot,nt),ht=yt=>yt.innerWidth||yt.document.documentElement.clientWidth||yt.document.body.clientWidth;if(!("left"in ft)){const yt=ht(window.top||window),Tt=window.screenLeft||window.screenX;ft.left=yt+Tt-ft.width}if(!("top"in ft)){const yt=window.screenTop||window.screenY;ft.top=yt}const dt=Object.keys(ft).map(yt=>`${yt}=${ft[yt]}`).join(",");window.open(ct,"targetWindow",dt)}const getFontSize=a=>a&&Number(a)>=12?`${Number(a)}px`:"inherit",isEthereumDid$1=a=>{const j=a.replace(DID_PREFIX$1,"");return!!/^(0x)?[0-9a-f]{40}$/i.test(j)},appendParams=(a,j)=>{if(!j)return a;try{const _e=new URL(a,window.location.origin);return Object.keys(j).forEach(et=>{_e.searchParams.set(et,j[et])}),_e.origin===window.location.origin?_e.pathname+_e.search:_e.href}catch{return a}},getUserAvatar=(a,j=48)=>a&&(a.indexOf(WELLKNOWN_SERVICE_PATH_PREFIX)>=0?appendParams(a,{imageFilter:"resize",w:j,h:j}):a),isUrl=a=>/^https?:\/\//.test(a),visitorIdKey$1="__visitor_id",getVisitorId$2=()=>localStorage.getItem(visitorIdKey$1),setVisitorId=a=>{a===null?localStorage.removeItem(visitorIdKey$1):localStorage.setItem(visitorIdKey$1,a)},getDIDColor=a=>{if(isEthereumDid$1(a)){const j=Uint8Array.from(a.slice(2).match(/.{1,2}/g).map(_e=>parseInt(_e,16))).slice(0,8).reduce((_e,et)=>_e+et,0)%colors.length;return colors[j]}try{const j=getDIDMotifInfo(a);return j==null?void 0:j.color}catch{return null}},getTranslation=(a,j,{fallbackLocale:_e="en",defaultValue:et="unknown"}={})=>{if(typeof a=="string")return a;let nt;return j&&(nt=a[j]),(!nt||typeof nt!="string")&&(nt=a[_e]),(!nt||typeof nt!="string")&&(nt=et),nt},cookieName="nf_lang",getLocaleFromSearchParams=(a,j=window.location.href)=>{const _e=new URL(j).searchParams.get("locale");return a.find(et=>et.code===_e)?_e:null},setLocaleParam=(a,j=window.location.href)=>{const _e=new URL(j);_e.searchParams.has("locale")&&(_e.searchParams.set("locale",a),window.history.replaceState({},"",_e.href))},getLocale=(a=[])=>{var _e;const j={languages:a.map(et=>et.code),fallback:((_e=a==null?void 0:a[0])==null?void 0:_e.code)||"en"};return getLocaleFromSearchParams(a)||Cookie.get(cookieName)||getPreferredLanguage(j)},setLocale=a=>{Cookie.set(cookieName,a,getCookieOptions()),setLocaleParam(a)},getLanguages=a=>{const j=get$6(window,"blocklet.languages");return Array.isArray(j)&&j.length?j:Array.isArray(a)&&a.length?a:[{code:"en",name:"English"},{code:"zh",name:"简体中文"}]},LocaleContext=reactExports.createContext(null),{Provider:Provider$8,Consumer:Consumer$7}=LocaleContext;function LocaleProvider({children:a,locale:j,fallbackLocale:_e,translations:et,onLoadingTranslation:nt,languages:tt=[],...ot}){const ct=getLanguages(tt);let[ft,ht]=reactExports.useState(j||getLocale(ct));const dt=reactExports.useRef(_e||""),[,yt]=reactExports.useState(0),Tt=At=>{ht(At),setLocale(At)};if(reactExports.useEffect(()=>{const At=j||getLocale(ct);At!==ft&&Tt(At)},[j]),ft&&et[ft]&&typeof et[ft]=="function"){const At=ft;try{Promise.resolve(et[At]()).then(Rt=>{Rt&&typeof Rt=="object"&&(et[At]=Rt,yt(It=>It>999?0:It+1))})}catch(Rt){console.error(Rt)}nt==null||nt(At,ct),ft=dt.current}else dt.current=ft;const St=reactExports.useCallback((At,Rt)=>translate(et,At,ft,_e,Rt),[et,ft,_e]);return jsxRuntimeExports.jsx(Provider$8,{value:{locale:ft,changeLocale:Tt,t:St,languages:ct,...ot},children:a})}function useLocaleContext(){return reactExports.useContext(LocaleContext)}var __defProp$7=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__getOwnPropNames$1=Object.getOwnPropertyNames,__hasOwnProp$2=Object.prototype.hasOwnProperty,__export$1=(a,j)=>{for(var _e in j)__defProp$7(a,_e,{get:j[_e],enumerable:!0})},__copyProps$1=(a,j,_e,et)=>{if(j&&typeof j=="object"||typeof j=="function")for(let nt of __getOwnPropNames$1(j))!__hasOwnProp$2.call(a,nt)&&nt!==_e&&__defProp$7(a,nt,{get:()=>j[nt],enumerable:!(et=__getOwnPropDesc$1(j,nt))||et.enumerable});return a},__toCommonJS$1=a=>__copyProps$1(__defProp$7({},"__esModule",{value:!0}),a),lib_exports={};__export$1(lib_exports,{APP_CONFIG_DIR:()=>APP_CONFIG_DIR,APP_CONFIG_FILE_PATH:()=>APP_CONFIG_FILE_PATH,APP_CONFIG_PUBLIC_DIR:()=>APP_CONFIG_PUBLIC_DIR,BLOCKLET_APP_SPACE_REQUIREMENT:()=>BLOCKLET_APP_SPACE_REQUIREMENT,BLOCKLET_ARCHITECTURES:()=>BLOCKLET_ARCHITECTURES,BLOCKLET_BUNDLE_FILE:()=>BLOCKLET_BUNDLE_FILE,BLOCKLET_BUNDLE_FOLDER:()=>BLOCKLET_BUNDLE_FOLDER,BLOCKLET_BUNDLE_FOLDER_NAME:()=>BLOCKLET_BUNDLE_FOLDER_NAME,BLOCKLET_CONFIGURABLE_KEY:()=>BLOCKLET_CONFIGURABLE_KEY,BLOCKLET_CONTROLLER_STATUS:()=>BLOCKLET_CONTROLLER_STATUS,BLOCKLET_DEFAULT_PATH_REWRITE:()=>BLOCKLET_DEFAULT_PATH_REWRITE,BLOCKLET_DEFAULT_PORT_NAME:()=>BLOCKLET_DEFAULT_PORT_NAME,BLOCKLET_DEFAULT_VERSION:()=>BLOCKLET_DEFAULT_VERSION,BLOCKLET_DYNAMIC_PATH_PREFIX:()=>BLOCKLET_DYNAMIC_PATH_PREFIX,BLOCKLET_ENTRY_FILE:()=>BLOCKLET_ENTRY_FILE,BLOCKLET_FACTORY_SHARES:()=>BLOCKLET_FACTORY_SHARES,BLOCKLET_GROUPS:()=>BLOCKLET_GROUPS,BLOCKLET_INTERFACE_PROTOCOLS:()=>BLOCKLET_INTERFACE_PROTOCOLS,BLOCKLET_INTERFACE_PROTOCOL_HTTP:()=>BLOCKLET_INTERFACE_PROTOCOL_HTTP,BLOCKLET_INTERFACE_PROTOCOL_TCP:()=>BLOCKLET_INTERFACE_PROTOCOL_TCP,BLOCKLET_INTERFACE_PROTOCOL_UDP:()=>BLOCKLET_INTERFACE_PROTOCOL_UDP,BLOCKLET_INTERFACE_PUBLIC:()=>BLOCKLET_INTERFACE_PUBLIC,BLOCKLET_INTERFACE_TYPES:()=>BLOCKLET_INTERFACE_TYPES,BLOCKLET_INTERFACE_TYPE_DOCKER:()=>BLOCKLET_INTERFACE_TYPE_DOCKER,BLOCKLET_INTERFACE_TYPE_SERVICE:()=>BLOCKLET_INTERFACE_TYPE_SERVICE,BLOCKLET_INTERFACE_TYPE_WEB:()=>BLOCKLET_INTERFACE_TYPE_WEB,BLOCKLET_INTERFACE_TYPE_WELLKNOWN:()=>BLOCKLET_INTERFACE_TYPE_WELLKNOWN,BLOCKLET_INTERFACE_WELLKNOWN:()=>BLOCKLET_INTERFACE_WELLKNOWN,BLOCKLET_LATEST_REQUIREMENT_ABTNODE:()=>BLOCKLET_LATEST_REQUIREMENT_ABTNODE,BLOCKLET_LATEST_REQUIREMENT_SERVER:()=>BLOCKLET_LATEST_REQUIREMENT_SERVER,BLOCKLET_LATEST_SPEC_VERSION:()=>BLOCKLET_LATEST_SPEC_VERSION,BLOCKLET_META_FILE:()=>BLOCKLET_META_FILE,BLOCKLET_META_FILE_ALT:()=>BLOCKLET_META_FILE_ALT,BLOCKLET_MODES:()=>BLOCKLET_MODES,BLOCKLET_OPENEMBED_PREFIX:()=>BLOCKLET_OPENEMBED_PREFIX,BLOCKLET_OPEN_API_FILE:()=>BLOCKLET_OPEN_API_FILE,BLOCKLET_OPEN_API_FILE_JSON:()=>BLOCKLET_OPEN_API_FILE_JSON,BLOCKLET_OPEN_COMPONENT_FILE:()=>BLOCKLET_OPEN_COMPONENT_FILE,BLOCKLET_OPEN_COMPONENT_FILE_JSON:()=>BLOCKLET_OPEN_COMPONENT_FILE_JSON,BLOCKLET_PLATFORMS:()=>BLOCKLET_PLATFORMS,BLOCKLET_PREFERENCE_FILE:()=>BLOCKLET_PREFERENCE_FILE,BLOCKLET_PREFERENCE_PREFIX:()=>BLOCKLET_PREFERENCE_PREFIX,BLOCKLET_RELEASE_FILE:()=>BLOCKLET_RELEASE_FILE,BLOCKLET_RELEASE_FOLDER:()=>BLOCKLET_RELEASE_FOLDER,BLOCKLET_RELEASE_FOLDER_NAME:()=>BLOCKLET_RELEASE_FOLDER_NAME,BLOCKLET_RESOURCE_DIR:()=>BLOCKLET_RESOURCE_DIR,BLOCKLET_STANDARD_INTERFACES:()=>BLOCKLET_STANDARD_INTERFACES,BLOCKLET_TENANT_MODES:()=>BLOCKLET_TENANT_MODES,BLOCKLET_UI_INTERFACES:()=>BLOCKLET_UI_INTERFACES,BLOCKLET_UPLOADS_DIR:()=>BLOCKLET_UPLOADS_DIR,BlockletEvents:()=>BlockletEvents,BlockletGroup:()=>BlockletGroup,BlockletInternalEvents:()=>BlockletInternalEvents,BlockletSource:()=>BlockletSource,BlockletStatus:()=>BlockletStatus,CHAIN_INFO_CONFIG:()=>CHAIN_INFO_CONFIG,CHAIN_PROP_MAP:()=>CHAIN_PROP_MAP,CHAIN_PROP_MAP_REVERSE:()=>CHAIN_PROP_MAP_REVERSE,COMPONENT_DOCKER_ENV_FILE_NAME:()=>COMPONENT_DOCKER_ENV_FILE_NAME,COMPONENT_ENV_FILE_NAME:()=>COMPONENT_ENV_FILE_NAME,DID_SPACES:()=>DID_SPACES,LOGIN_PROVIDER:()=>LOGIN_PROVIDER,MAX_TITLE_LENGTH:()=>MAX_TITLE_LENGTH,PROJECT:()=>PROJECT,PROVIDER_NAME:()=>PROVIDER_NAME,RESOURCE_PATTERN:()=>RESOURCE_PATTERN,RESTORE_PROGRESS_STATUS:()=>RESTORE_PROGRESS_STATUS,SIG_VERSION:()=>SIG_VERSION,SUPPORTED_LANGUAGES:()=>languages_default,SUSPENDED_REASON:()=>SUSPENDED_REASON,TeamEvents:()=>TeamEvents,baseLanguages:()=>baseLanguages,fromBlockletSource:()=>fromBlockletSource,fromBlockletStatus:()=>fromBlockletStatus,toBlockletSource:()=>toBlockletSource,toBlockletStatus:()=>toBlockletStatus});var constant$2=__toCommonJS$1(lib_exports),SUPPORTED_LANGUAGES={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"}},baseLanguages=[{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:"ไทย"}],languages_default=SUPPORTED_LANGUAGES,fromEntry=a=>j=>{const _e=Object.entries(a).find(et=>et[1]===Number(j));return _e?_e[0]:"unknown"},toEntry=a=>j=>Object.keys(a).find(_e=>a[_e]===Number(j)),BlockletStatus=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}),BLOCKLET_CONTROLLER_STATUS={normal:0,suspended:10},SUSPENDED_REASON={expired:"expired"},fromBlockletStatus=fromEntry(BlockletStatus),toBlockletStatus=toEntry(BlockletStatus),BlockletSource=Object.freeze({registry:0,local:1,upload:2,url:3,custom:4}),fromBlockletSource=fromEntry(BlockletSource),toBlockletSource=toEntry(BlockletSource),BlockletGroup=Object.freeze({static:"static",dapp:"dapp",gateway:"gateway",pack:"pack"}),BLOCKLET_GROUPS=["dapp","static","gateway","pack"],BlockletEvents=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",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"}),BlockletInternalEvents=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"}),TeamEvents=Object.freeze({userAdded:"user.added",userRemoved:"user.removed",userUpdated:"user.updated",userProfileUpdated:"user.profile.updated",userPermissionUpdated:"user.permission.updated"}),BLOCKLET_PLATFORMS=["aix","darwin","freebsd","linux","openbsd","sunos","win32"],BLOCKLET_ARCHITECTURES=["arm","arm64","ia32","mips","mipsel","ppc","ppc64","s390","s390x","x32","x64"],BLOCKLET_MODES=Object.freeze({PRODUCTION:"production",DEVELOPMENT:"development"}),BLOCKLET_TENANT_MODES=Object.freeze({SINGLE:"single",MULTIPLE:"multiple"}),BLOCKLET_FACTORY_SHARES={developer:.7,store:.3},BLOCKLET_INTERFACE_TYPE_WEB="web",BLOCKLET_INTERFACE_TYPE_SERVICE="service",BLOCKLET_INTERFACE_TYPE_DOCKER="docker",BLOCKLET_INTERFACE_TYPE_WELLKNOWN="wellknown",BLOCKLET_INTERFACE_TYPES=[BLOCKLET_INTERFACE_TYPE_WEB,BLOCKLET_INTERFACE_TYPE_SERVICE,BLOCKLET_INTERFACE_TYPE_WELLKNOWN,BLOCKLET_INTERFACE_TYPE_DOCKER],BLOCKLET_INTERFACE_PUBLIC="publicUrl",BLOCKLET_INTERFACE_WELLKNOWN="wellknownUrl",BLOCKLET_UI_INTERFACES=[BLOCKLET_INTERFACE_PUBLIC],BLOCKLET_STANDARD_INTERFACES=[BLOCKLET_INTERFACE_PUBLIC,BLOCKLET_INTERFACE_WELLKNOWN],BLOCKLET_INTERFACE_PROTOCOL_HTTP="http",BLOCKLET_INTERFACE_PROTOCOL_TCP="tcp",BLOCKLET_INTERFACE_PROTOCOL_UDP="udp",BLOCKLET_INTERFACE_PROTOCOLS=[BLOCKLET_INTERFACE_PROTOCOL_TCP,BLOCKLET_INTERFACE_PROTOCOL_UDP,BLOCKLET_INTERFACE_PROTOCOL_HTTP],BLOCKLET_DYNAMIC_PATH_PREFIX="*",BLOCKLET_DEFAULT_PORT_NAME="BLOCKLET_PORT",BLOCKLET_DEFAULT_PATH_REWRITE="/",BLOCKLET_RELEASE_FOLDER=".blocklet/release",BLOCKLET_RELEASE_FILE="blocklet.json",BLOCKLET_BUNDLE_FOLDER=".blocklet/bundle",BLOCKLET_RELEASE_FOLDER_NAME="release",BLOCKLET_BUNDLE_FOLDER_NAME="bundle",BLOCKLET_BUNDLE_FILE="blocklet.zip",BLOCKLET_ENTRY_FILE="blocklet.js",BLOCKLET_META_FILE="blocklet.yml",BLOCKLET_META_FILE_ALT="blocklet.yaml",BLOCKLET_PREFERENCE_FILE="blocklet.prefs.json",BLOCKLET_OPEN_API_FILE="blocklet.openapi.yaml",BLOCKLET_OPEN_API_FILE_JSON="blocklet.openapi.json",BLOCKLET_OPEN_COMPONENT_FILE="blocklet.opencomponent.yaml",BLOCKLET_OPEN_COMPONENT_FILE_JSON="blocklet.opencomponent.json",BLOCKLET_PREFERENCE_PREFIX="prefs.",BLOCKLET_RESOURCE_DIR="resources",RESOURCE_PATTERN=/\.(js|css|jpg|jpeg|png|gif|webp|avif|svg|woff|woff2|ico|mp4|mp3|webm)$/i,PROJECT={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},BLOCKLET_DEFAULT_VERSION="1.0.0",BLOCKLET_UPLOADS_DIR="__uploads",BLOCKLET_LATEST_SPEC_VERSION="1.2.8",BLOCKLET_LATEST_REQUIREMENT_SERVER=">=1.7.0",BLOCKLET_LATEST_REQUIREMENT_ABTNODE=">=1.5.15",BLOCKLET_CONFIGURABLE_KEY={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_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"},DID_SPACES={VC_TYPES:["PersonalSpaceVerifiableCredential","EnterpriseSpaceVerifiableCredential","DIDSpaceAppAuthCredential"],NFT_TAG:"did-space-purchase-nft",AUTHORIZE:{DEFAULT_SCOPE:"list:object read:object write:object"}},BLOCKLET_APP_SPACE_REQUIREMENT={REQUIRED:"required",REQUIRED_ON_SETUP:"requiredOnSetup",OPTIONAL:"optional",REQUIRED_ON_CONNECT:"requiredOnConnect"},CHAIN_INFO_CONFIG={CHAIN_TYPE:["type","arcblock"],CHAIN_ID:["id","none"],CHAIN_HOST:["host","none"]},RESTORE_PROGRESS_STATUS={waiting:0,start:10,importData:20,downloading:30,importDataSuccess:40,installing:50,completed:60,error:70},CHAIN_PROP_MAP={BLOCKLET_APP_CHAIN_HOST:"CHAIN_HOST",BLOCKLET_APP_CHAIN_ID:"CHAIN_ID",BLOCKLET_APP_CHAIN_TYPE:"CHAIN_TYPE"},CHAIN_PROP_MAP_REVERSE=Object.keys(CHAIN_PROP_MAP).reduce((a,j)=>(a[CHAIN_PROP_MAP[j]]=j,a),{}),LOGIN_PROVIDER={AUTH0:"auth0",GOOGLE:"google",APPLE:"apple",GITHUB:"github",WALLET:"wallet",NFT:"nft"},PROVIDER_NAME={auth0:"Auth0",github:"GitHub",google:"Google",apple:"Apple",email:"Email",wallet:"DID wallet",federated:"Federated"},APP_CONFIG_DIR="/.config",APP_CONFIG_PUBLIC_DIR="/.config/public",APP_CONFIG_FILE_PATH="/.config/config.json",COMPONENT_ENV_FILE_NAME="env",COMPONENT_DOCKER_ENV_FILE_NAME="docker-env",MAX_TITLE_LENGTH=40,BLOCKLET_OPENEMBED_PREFIX="/.well-known/blocklet/openembed",SIG_VERSION={V0:"0",V1:"1",DEFAULT:"1"};function getSvgIconUtilityClass(a){return generateUtilityClass("MuiSvgIcon",a)}generateUtilityClasses("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _excluded$v=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],useUtilityClasses$p=a=>{const{color:j,fontSize:_e,classes:et}=a,nt={root:["root",j!=="inherit"&&`color${capitalize$3(j)}`,`fontSize${capitalize$3(_e)}`]};return composeClasses(nt,getSvgIconUtilityClass,et)},SvgIconRoot=styled$1("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(a,j)=>{const{ownerState:_e}=a;return[j.root,_e.color!=="inherit"&&j[`color${capitalize$3(_e.color)}`],j[`fontSize${capitalize$3(_e.fontSize)}`]]}})(({theme:a,ownerState:j})=>{var _e,et,nt,tt,ot,ct,ft,ht,dt,yt,Tt,St,At;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:j.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(_e=a.transitions)==null||(et=_e.create)==null?void 0:et.call(_e,"fill",{duration:(nt=a.transitions)==null||(nt=nt.duration)==null?void 0:nt.shorter}),fontSize:{inherit:"inherit",small:((tt=a.typography)==null||(ot=tt.pxToRem)==null?void 0:ot.call(tt,20))||"1.25rem",medium:((ct=a.typography)==null||(ft=ct.pxToRem)==null?void 0:ft.call(ct,24))||"1.5rem",large:((ht=a.typography)==null||(dt=ht.pxToRem)==null?void 0:dt.call(ht,35))||"2.1875rem"}[j.fontSize],color:(yt=(Tt=(a.vars||a).palette)==null||(Tt=Tt[j.color])==null?void 0:Tt.main)!=null?yt:{action:(St=(a.vars||a).palette)==null||(St=St.action)==null?void 0:St.active,disabled:(At=(a.vars||a).palette)==null||(At=At.action)==null?void 0:At.disabled,inherit:void 0}[j.color]}}),SvgIcon=reactExports.forwardRef(function(j,_e){const et=useDefaultProps({props:j,name:"MuiSvgIcon"}),{children:nt,className:tt,color:ot="inherit",component:ct="svg",fontSize:ft="medium",htmlColor:ht,inheritViewBox:dt=!1,titleAccess:yt,viewBox:Tt="0 0 24 24"}=et,St=_objectWithoutPropertiesLoose$1(et,_excluded$v),At=reactExports.isValidElement(nt)&&nt.type==="svg",Rt=_extends$2({},et,{color:ot,component:ct,fontSize:ft,instanceFontSize:j.fontSize,inheritViewBox:dt,viewBox:Tt,hasSvgAsChild:At}),It={};dt||(It.viewBox=Tt);const Ct=useUtilityClasses$p(Rt);return jsxRuntimeExports.jsxs(SvgIconRoot,_extends$2({as:ct,className:clsx$1(Ct.root,tt),focusable:"false",color:ht,"aria-hidden":yt?void 0:!0,role:yt?"img":void 0,ref:_e},It,St,At&&nt.props,{ownerState:Rt,children:[At?nt.props.children:nt,yt?jsxRuntimeExports.jsx("title",{children:yt}):null]}))});SvgIcon.muiName="SvgIcon";function createSvgIcon$1(a,j){function _e(et,nt){return jsxRuntimeExports.jsx(SvgIcon,_extends$2({"data-testid":`${j}Icon`,ref:nt},et,{children:a}))}return _e.muiName=SvgIcon.muiName,reactExports.memo(reactExports.forwardRef(_e))}const unstable_ClassNameGenerator={configure:a=>{ClassNameGenerator.configure(a)}},utils$p=Object.freeze(Object.defineProperty({__proto__:null,capitalize:capitalize$3,createChainedFunction:createChainedFunction$1,createSvgIcon:createSvgIcon$1,debounce:debounce$5,deprecatedPropType,isMuiElement,ownerDocument,ownerWindow,requirePropFactory,setRef,unstable_ClassNameGenerator,unstable_useEnhancedEffect:useEnhancedEffect$1,unstable_useId:useId,unsupportedProp,useControlled,useEventCallback:useEventCallback$1,useForkRef,useIsFocusVisible},Symbol.toStringTag,{value:"Module"}));function _setPrototypeOf(a,j){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(_e,et){return _e.__proto__=et,_e},_setPrototypeOf(a,j)}function _inheritsLoose$2(a,j){a.prototype=Object.create(j.prototype),a.prototype.constructor=a,_setPrototypeOf(a,j)}const config$1={disabled:!1},TransitionGroupContext=React$2.createContext(null);var forceReflow=function(j){return j.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition$1=function(a){_inheritsLoose$2(j,a);function j(et,nt){var tt;tt=a.call(this,et,nt)||this;var ot=nt,ct=ot&&!ot.isMounting?et.enter:et.appear,ft;return tt.appearStatus=null,et.in?ct?(ft=EXITED,tt.appearStatus=ENTERING):ft=ENTERED:et.unmountOnExit||et.mountOnEnter?ft=UNMOUNTED:ft=EXITED,tt.state={status:ft},tt.nextCallback=null,tt}j.getDerivedStateFromProps=function(nt,tt){var ot=nt.in;return ot&&tt.status===UNMOUNTED?{status:EXITED}:null};var _e=j.prototype;return _e.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},_e.componentDidUpdate=function(nt){var tt=null;if(nt!==this.props){var ot=this.state.status;this.props.in?ot!==ENTERING&&ot!==ENTERED&&(tt=ENTERING):(ot===ENTERING||ot===ENTERED)&&(tt=EXITING)}this.updateStatus(!1,tt)},_e.componentWillUnmount=function(){this.cancelNextCallback()},_e.getTimeouts=function(){var nt=this.props.timeout,tt,ot,ct;return tt=ot=ct=nt,nt!=null&&typeof nt!="number"&&(tt=nt.exit,ot=nt.enter,ct=nt.appear!==void 0?nt.appear:ot),{exit:tt,enter:ot,appear:ct}},_e.updateStatus=function(nt,tt){if(nt===void 0&&(nt=!1),tt!==null)if(this.cancelNextCallback(),tt===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var ot=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);ot&&forceReflow(ot)}this.performEnter(nt)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},_e.performEnter=function(nt){var tt=this,ot=this.props.enter,ct=this.context?this.context.isMounting:nt,ft=this.props.nodeRef?[ct]:[ReactDOM.findDOMNode(this),ct],ht=ft[0],dt=ft[1],yt=this.getTimeouts(),Tt=ct?yt.appear:yt.enter;if(!nt&&!ot||config$1.disabled){this.safeSetState({status:ENTERED},function(){tt.props.onEntered(ht)});return}this.props.onEnter(ht,dt),this.safeSetState({status:ENTERING},function(){tt.props.onEntering(ht,dt),tt.onTransitionEnd(Tt,function(){tt.safeSetState({status:ENTERED},function(){tt.props.onEntered(ht,dt)})})})},_e.performExit=function(){var nt=this,tt=this.props.exit,ot=this.getTimeouts(),ct=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!tt||config$1.disabled){this.safeSetState({status:EXITED},function(){nt.props.onExited(ct)});return}this.props.onExit(ct),this.safeSetState({status:EXITING},function(){nt.props.onExiting(ct),nt.onTransitionEnd(ot.exit,function(){nt.safeSetState({status:EXITED},function(){nt.props.onExited(ct)})})})},_e.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},_e.safeSetState=function(nt,tt){tt=this.setNextCallback(tt),this.setState(nt,tt)},_e.setNextCallback=function(nt){var tt=this,ot=!0;return this.nextCallback=function(ct){ot&&(ot=!1,tt.nextCallback=null,nt(ct))},this.nextCallback.cancel=function(){ot=!1},this.nextCallback},_e.onTransitionEnd=function(nt,tt){this.setNextCallback(tt);var ot=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),ct=nt==null&&!this.props.addEndListener;if(!ot||ct){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var ft=this.props.nodeRef?[this.nextCallback]:[ot,this.nextCallback],ht=ft[0],dt=ft[1];this.props.addEndListener(ht,dt)}nt!=null&&setTimeout(this.nextCallback,nt)},_e.render=function(){var nt=this.state.status;if(nt===UNMOUNTED)return null;var tt=this.props,ot=tt.children;tt.in,tt.mountOnEnter,tt.unmountOnExit,tt.appear,tt.enter,tt.exit,tt.timeout,tt.addEndListener,tt.onEnter,tt.onEntering,tt.onEntered,tt.onExit,tt.onExiting,tt.onExited,tt.nodeRef;var ct=_objectWithoutPropertiesLoose$1(tt,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React$2.createElement(TransitionGroupContext.Provider,{value:null},typeof ot=="function"?ot(nt,ct):React$2.cloneElement(React$2.Children.only(ot),ct))},j}(React$2.Component);Transition$1.contextType=TransitionGroupContext;Transition$1.propTypes={};function noop$8(){}Transition$1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$8,onEntering:noop$8,onEntered:noop$8,onExit:noop$8,onExiting:noop$8,onExited:noop$8};Transition$1.UNMOUNTED=UNMOUNTED;Transition$1.EXITED=EXITED;Transition$1.ENTERING=ENTERING;Transition$1.ENTERED=ENTERED;Transition$1.EXITING=EXITING;function _assertThisInitialized$1(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}const assertThisInitialized=Object.freeze(Object.defineProperty({__proto__:null,default:_assertThisInitialized$1},Symbol.toStringTag,{value:"Module"}));function getChildMapping(a,j){var _e=function(tt){return j&&reactExports.isValidElement(tt)?j(tt):tt},et=Object.create(null);return a&&reactExports.Children.map(a,function(nt){return nt}).forEach(function(nt){et[nt.key]=_e(nt)}),et}function mergeChildMappings(a,j){a=a||{},j=j||{};function _e(dt){return dt in j?j[dt]:a[dt]}var et=Object.create(null),nt=[];for(var tt in a)tt in j?nt.length&&(et[tt]=nt,nt=[]):nt.push(tt);var ot,ct={};for(var ft in j){if(et[ft])for(ot=0;ot<et[ft].length;ot++){var ht=et[ft][ot];ct[et[ft][ot]]=_e(ht)}ct[ft]=_e(ft)}for(ot=0;ot<nt.length;ot++)ct[nt[ot]]=_e(nt[ot]);return ct}function getProp(a,j,_e){return _e[j]!=null?_e[j]:a.props[j]}function getInitialChildMapping(a,j){return getChildMapping(a.children,function(_e){return reactExports.cloneElement(_e,{onExited:j.bind(null,_e),in:!0,appear:getProp(_e,"appear",a),enter:getProp(_e,"enter",a),exit:getProp(_e,"exit",a)})})}function getNextChildMapping(a,j,_e){var et=getChildMapping(a.children),nt=mergeChildMappings(j,et);return Object.keys(nt).forEach(function(tt){var ot=nt[tt];if(reactExports.isValidElement(ot)){var ct=tt in j,ft=tt in et,ht=j[tt],dt=reactExports.isValidElement(ht)&&!ht.props.in;ft&&(!ct||dt)?nt[tt]=reactExports.cloneElement(ot,{onExited:_e.bind(null,ot),in:!0,exit:getProp(ot,"exit",a),enter:getProp(ot,"enter",a)}):!ft&&ct&&!dt?nt[tt]=reactExports.cloneElement(ot,{in:!1}):ft&&ct&&reactExports.isValidElement(ht)&&(nt[tt]=reactExports.cloneElement(ot,{onExited:_e.bind(null,ot),in:ht.props.in,exit:getProp(ot,"exit",a),enter:getProp(ot,"enter",a)}))}}),nt}var values=Object.values||function(a){return Object.keys(a).map(function(j){return a[j]})},defaultProps={component:"div",childFactory:function(j){return j}},TransitionGroup=function(a){_inheritsLoose$2(j,a);function j(et,nt){var tt;tt=a.call(this,et,nt)||this;var ot=tt.handleExited.bind(_assertThisInitialized$1(tt));return tt.state={contextValue:{isMounting:!0},handleExited:ot,firstRender:!0},tt}var _e=j.prototype;return _e.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},_e.componentWillUnmount=function(){this.mounted=!1},j.getDerivedStateFromProps=function(nt,tt){var ot=tt.children,ct=tt.handleExited,ft=tt.firstRender;return{children:ft?getInitialChildMapping(nt,ct):getNextChildMapping(nt,ot,ct),firstRender:!1}},_e.handleExited=function(nt,tt){var ot=getChildMapping(this.props.children);nt.key in ot||(nt.props.onExited&&nt.props.onExited(tt),this.mounted&&this.setState(function(ct){var ft=_extends$2({},ct.children);return delete ft[nt.key],{children:ft}}))},_e.render=function(){var nt=this.props,tt=nt.component,ot=nt.childFactory,ct=_objectWithoutPropertiesLoose$1(nt,["component","childFactory"]),ft=this.state.contextValue,ht=values(this.state.children).map(ot);return delete ct.appear,delete ct.enter,delete ct.exit,tt===null?React$2.createElement(TransitionGroupContext.Provider,{value:ft},ht):React$2.createElement(TransitionGroupContext.Provider,{value:ft},React$2.createElement(tt,ct,ht))},j}(React$2.Component);TransitionGroup.propTypes={};TransitionGroup.defaultProps=defaultProps;const reflow=a=>a.scrollTop;function getTransitionProps(a,j){var _e,et;const{timeout:nt,easing:tt,style:ot={}}=a;return{duration:(_e=ot.transitionDuration)!=null?_e:typeof nt=="number"?nt:nt[j.mode]||0,easing:(et=ot.transitionTimingFunction)!=null?et:typeof tt=="object"?tt[j.mode]:tt,delay:ot.transitionDelay}}function getCollapseUtilityClass(a){return generateUtilityClass("MuiCollapse",a)}generateUtilityClasses("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const _excluded$u=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],useUtilityClasses$o=a=>{const{orientation:j,classes:_e}=a,et={root:["root",`${j}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${j}`],wrapperInner:["wrapperInner",`${j}`]};return composeClasses(et,getCollapseUtilityClass,_e)},CollapseRoot=styled$1("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(a,j)=>{const{ownerState:_e}=a;return[j.root,j[_e.orientation],_e.state==="entered"&&j.entered,_e.state==="exited"&&!_e.in&&_e.collapsedSize==="0px"&&j.hidden]}})(({theme:a,ownerState:j})=>_extends$2({height:0,overflow:"hidden",transition:a.transitions.create("height")},j.orientation==="horizontal"&&{height:"auto",width:0,transition:a.transitions.create("width")},j.state==="entered"&&_extends$2({height:"auto",overflow:"visible"},j.orientation==="horizontal"&&{width:"auto"}),j.state==="exited"&&!j.in&&j.collapsedSize==="0px"&&{visibility:"hidden"})),CollapseWrapper=styled$1("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(a,j)=>j.wrapper})(({ownerState:a})=>_extends$2({display:"flex",width:"100%"},a.orientation==="horizontal"&&{width:"auto",height:"100%"})),CollapseWrapperInner=styled$1("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(a,j)=>j.wrapperInner})(({ownerState:a})=>_extends$2({width:"100%"},a.orientation==="horizontal"&&{width:"auto",height:"100%"})),Collapse=reactExports.forwardRef(function(j,_e){const et=useDefaultProps({props:j,name:"MuiCollapse"}),{addEndListener:nt,children:tt,className:ot,collapsedSize:ct="0px",component:ft,easing:ht,in:dt,onEnter:yt,onEntered:Tt,onEntering:St,onExit:At,onExited:Rt,onExiting:It,orientation:Ct="vertical",style:kt,timeout:Pt=duration$2.standard,TransitionComponent:Bt=Transition$1}=et,Kt=_objectWithoutPropertiesLoose$1(et,_excluded$u),jt=_extends$2({},et,{orientation:Ct,collapsedSize:ct}),zt=useUtilityClasses$o(jt),Gt=useTheme$1(),tn=useTimeout(),hn=reactExports.useRef(null),wt=reactExports.useRef(),rt=typeof ct=="number"?`${ct}px`:ct,st=Ct==="horizontal",ut=st?"width":"height",pt=reactExports.useRef(null),mt=useForkRef(_e,pt),$t=Jt=>Ft=>{if(Jt){const Zt=pt.current;Ft===void 0?Jt(Zt):Jt(Zt,Ft)}},xt=()=>hn.current?hn.current[st?"clientWidth":"clientHeight"]:0,vt=$t((Jt,Ft)=>{hn.current&&st&&(hn.current.style.position="absolute"),Jt.style[ut]=rt,yt&&yt(Jt,Ft)}),it=$t((Jt,Ft)=>{const Zt=xt();hn.current&&st&&(hn.current.style.position="");const{duration:nn,easing:cn}=getTransitionProps({style:kt,timeout:Pt,easing:ht},{mode:"enter"});if(Pt==="auto"){const qt=Gt.transitions.getAutoHeightDuration(Zt);Jt.style.transitionDuration=`${qt}ms`,wt.current=qt}else Jt.style.transitionDuration=typeof nn=="string"?nn:`${nn}ms`;Jt.style[ut]=`${Zt}px`,Jt.style.transitionTimingFunction=cn,St&&St(Jt,Ft)}),bt=$t((Jt,Ft)=>{Jt.style[ut]="auto",Tt&&Tt(Jt,Ft)}),Mt=$t(Jt=>{Jt.style[ut]=`${xt()}px`,At&&At(Jt)}),Lt=$t(Rt),Ht=$t(Jt=>{const Ft=xt(),{duration:Zt,easing:nn}=getTransitionProps({style:kt,timeout:Pt,easing:ht},{mode:"exit"});if(Pt==="auto"){const cn=Gt.transitions.getAutoHeightDuration(Ft);Jt.style.transitionDuration=`${cn}ms`,wt.current=cn}else Jt.style.transitionDuration=typeof Zt=="string"?Zt:`${Zt}ms`;Jt.style[ut]=rt,Jt.style.transitionTimingFunction=nn,It&&It(Jt)}),Ot=Jt=>{Pt==="auto"&&tn.start(wt.current||0,Jt),nt&&nt(pt.current,Jt)};return jsxRuntimeExports.jsx(Bt,_extends$2({in:dt,onEnter:vt,onEntered:bt,onEntering:it,onExit:Mt,onExited:Lt,onExiting:Ht,addEndListener:Ot,nodeRef:pt,timeout:Pt==="auto"?null:Pt},Kt,{children:(Jt,Ft)=>jsxRuntimeExports.jsx(CollapseRoot,_extends$2({as:ft,className:clsx$1(zt.root,ot,{entered:zt.entered,exited:!dt&&rt==="0px"&&zt.hidden}[Jt]),style:_extends$2({[st?"minWidth":"minHeight"]:rt},kt),ref:mt},Ft,{ownerState:_extends$2({},jt,{state:Jt}),children:jsxRuntimeExports.jsx(CollapseWrapper,{ownerState:_extends$2({},jt,{state:Jt}),className:zt.wrapper,ref:hn,children:jsxRuntimeExports.jsx(CollapseWrapperInner,{ownerState:_extends$2({},jt,{state:Jt}),className:zt.wrapperInner,children:tt})})}))}))});Collapse.muiSupportAuto=!0;function getPaperUtilityClass(a){return generateUtilityClass("MuiPaper",a)}const paperClasses=generateUtilityClasses("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]),_excluded$t=["className","component","elevation","square","variant"],useUtilityClasses$n=a=>{const{square:j,elevation:_e,variant:et,classes:nt}=a,tt={root:["root",et,!j&&"rounded",et==="elevation"&&`elevation${_e}`]};return composeClasses(tt,getPaperUtilityClass,nt)},PaperRoot=styled$1("div",{name:"MuiPaper",slot:"Root",overridesResolver:(a,j)=>{const{ownerState:_e}=a;return[j.root,j[_e.variant],!_e.square&&j.rounded,_e.variant==="elevation"&&j[`elevation${_e.elevation}`]]}})(({theme:a,ownerState:j})=>{var _e;return _extends$2({backgroundColor:(a.vars||a).palette.background.paper,color:(a.vars||a).palette.text.primary,transition:a.transitions.create("box-shadow")},!j.square&&{borderRadius:a.shape.borderRadius},j.variant==="outlined"&&{border:`1px solid ${(a.vars||a).palette.divider}`},j.variant==="elevation"&&_extends$2({boxShadow:(a.vars||a).shadows[j.elevation]},!a.vars&&a.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${alpha_1("#fff",getOverlayAlpha(j.elevation))}, ${alpha_1("#fff",getOverlayAlpha(j.elevation))})`},a.vars&&{backgroundImage:(_e=a.vars.overlays)==null?void 0:_e[j.elevation]}))}),Paper=reactExports.forwardRef(function(j,_e){const et=useDefaultProps({props:j,name:"MuiPaper"}),{className:nt,component:tt="div",elevation:ot=1,square:ct=!1,variant:ft="elevation"}=et,ht=_objectWithoutPropertiesLoose$1(et,_excluded$t),dt=_extends$2({},et,{component:tt,elevation:ot,square:ct,variant:ft}),yt=useUtilityClasses$n(dt);return jsxRuntimeExports.jsx(PaperRoot,_extends$2({as:tt,ownerState:dt,className:clsx$1(yt.root,nt),ref:_e},ht))});function Ripple(a){const{className:j,classes:_e,pulsate:et=!1,rippleX:nt,rippleY:tt,rippleSize:ot,in:ct,onExited:ft,timeout:ht}=a,[dt,yt]=reactExports.useState(!1),Tt=clsx$1(j,_e.ripple,_e.rippleVisible,et&&_e.ripplePulsate),St={width:ot,height:ot,top:-(ot/2)+tt,left:-(ot/2)+nt},At=clsx$1(_e.child,dt&&_e.childLeaving,et&&_e.childPulsate);return!ct&&!dt&&yt(!0),reactExports.useEffect(()=>{if(!ct&&ft!=null){const Rt=setTimeout(ft,ht);return()=>{clearTimeout(Rt)}}},[ft,ct,ht]),jsxRuntimeExports.jsx("span",{className:Tt,style:St,children:jsxRuntimeExports.jsx("span",{className:At})})}const touchRippleClasses=generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_excluded$s=["center","classes","className"];let _$1=a=>a,_t$1,_t2$1,_t3$1,_t4$1;const DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes(_t$1||(_t$1=_$1`
|
|
131
131
|
0% {
|
|
132
132
|
transform: scale(0);
|
|
133
133
|
opacity: 0.1;
|
|
@@ -257,8 +257,8 @@ object-assign
|
|
|
257
257
|
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},WarningIcon=function(j){return React$2.createElement(SvgIcon,Object.assign({},j),React$2.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},ErrorIcon=function(j){return React$2.createElement(SvgIcon,Object.assign({},j),React$2.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
258
258
|
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
259
259
|
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},InfoIcon=function(j){return React$2.createElement(SvgIcon,Object.assign({},j),React$2.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
260
|
-
0 22,12A10,10 0 0,0 12,2Z`}))},iconStyles={fontSize:20,marginInlineEnd:8},defaultIconVariants={default:void 0,success:React$2.createElement(CheckIcon,{style:iconStyles}),warning:React$2.createElement(WarningIcon,{style:iconStyles}),error:React$2.createElement(ErrorIcon,{style:iconStyles}),info:React$2.createElement(InfoIcon,{style:iconStyles})};function createChainedFunction(a,j){return a.reduce(function(_e,et){return et==null?_e:function(){for(var tt=arguments.length,ot=new Array(tt),ct=0;ct<tt;ct++)ot[ct]=arguments[ct];var ft=[].concat(ot);j&&ft.indexOf(j)===-1&&ft.push(j),_e.apply(this,ft),et.apply(this,ft)}},function(){})}var useEnhancedEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useEventCallback(a){var j=reactExports.useRef(a);return useEnhancedEffect(function(){j.current=a}),reactExports.useCallback(function(){return j.current.apply(void 0,arguments)},[])}var Snackbar=reactExports.forwardRef(function(a,j){var _e=a.children,et=a.autoHideDuration,nt=a.ClickAwayListenerProps,tt=a.disableWindowBlurListener,ot=tt===void 0?!1:tt,ct=a.onClose,ft=a.onMouseEnter,ht=a.onMouseLeave,dt=a.open,yt=a.resumeHideDuration,Tt=_objectWithoutPropertiesLoose(a,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),St=reactExports.useRef(),At=useEventCallback(function(){ct&&ct.apply(void 0,arguments)}),Rt=useEventCallback(function(Kt){!ct||Kt==null||(clearTimeout(St.current),St.current=setTimeout(function(){At(null,REASONS.TIMEOUT)},Kt))});reactExports.useEffect(function(){return dt&&Rt(et),function(){clearTimeout(St.current)}},[dt,et,Rt]);var It=function(){clearTimeout(St.current)},Ct=reactExports.useCallback(function(){et!=null&&Rt(yt??et*.5)},[et,yt,Rt]),kt=function(jt){ft&&ft(jt),It()},Pt=function(jt){ht&&ht(jt),Ct()},Bt=function(jt){ct&&ct(jt,REASONS.CLICKAWAY)};return reactExports.useEffect(function(){if(!ot&&dt)return window.addEventListener("focus",Ct),window.addEventListener("blur",It),function(){window.removeEventListener("focus",Ct),window.removeEventListener("blur",It)}},[ot,Ct,dt]),reactExports.createElement(ClickAwayListener,_extends({onClickAway:Bt},nt),reactExports.createElement("div",_extends({onMouseEnter:kt,onMouseLeave:Pt,ref:j},Tt),_e))}),componentName$1="SnackbarItem",classes$1$1={contentRoot:componentName$1+"-contentRoot",lessPadding:componentName$1+"-lessPadding",variantSuccess:componentName$1+"-variantSuccess",variantError:componentName$1+"-variantError",variantInfo:componentName$1+"-variantInfo",variantWarning:componentName$1+"-variantWarning",message:componentName$1+"-message",action:componentName$1+"-action",wrappedRoot:componentName$1+"-wrappedRoot"},StyledSnackbar=styled$1(Snackbar)(function(a){var j,_e=a.theme,et=_e.palette.mode||_e.palette.type,nt=emphasize$1(_e.palette.background.default,et==="light"?.8:.98);return j={},j["&."+classes$1$1.wrappedRoot]={position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0},j["."+classes$1$1.contentRoot]=_extends({},_e.typography.body2,{backgroundColor:nt,color:_e.palette.getContrastText(nt),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),j["."+classes$1$1.lessPadding]={paddingLeft:8*2.5},j["."+classes$1$1.variantSuccess]={backgroundColor:"#43a047",color:"#fff"},j["."+classes$1$1.variantError]={backgroundColor:"#d32f2f",color:"#fff"},j["."+classes$1$1.variantInfo]={backgroundColor:"#2196f3",color:"#fff"},j["."+classes$1$1.variantWarning]={backgroundColor:"#ff9800",color:"#fff"},j["."+classes$1$1.message]={display:"flex",alignItems:"center",padding:"8px 0"},j["."+classes$1$1.action]={display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},j}),SnackbarItem=function(j){var _e=j.classes,et=_objectWithoutPropertiesLoose(j,["classes"]),nt=reactExports.useRef(),tt=reactExports.useState(!0),ot=tt[0],ct=tt[1];reactExports.useEffect(function(){return function(){nt.current&&clearTimeout(nt.current)}},[]);var ft=createChainedFunction([et.snack.onClose,et.onClose],et.snack.key),ht=function(){et.snack.requestClose&&ft(null,REASONS.INSTRCUTED)},dt=function(){nt.current=setTimeout(function(){ct(!ot)},125)},yt=et.style,Tt=et.ariaAttributes,St=et.className,At=et.hideIconVariant,Rt=et.iconVariant,It=et.snack,Ct=et.action,kt=et.content,Pt=et.TransitionComponent,Bt=et.TransitionProps,Kt=et.transitionDuration,jt=_objectWithoutPropertiesLoose(et,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),zt=It.key,Gt=It.open,tn=It.className,hn=It.variant,wt=It.content,rt=It.action,st=It.ariaAttributes,ut=It.anchorOrigin,pt=It.message,mt=It.TransitionComponent,$t=It.TransitionProps,xt=It.transitionDuration,vt=_objectWithoutPropertiesLoose(It,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),it=_extends({},defaultIconVariants,{},Rt)[hn],bt=_extends({"aria-describedby":"notistack-snackbar"},objectMerge(st,Tt)),Mt=mt||Pt||DEFAULTS.TransitionComponent,Lt=objectMerge(xt,Kt,DEFAULTS.transitionDuration),Ht=_extends({direction:getTransitionDirection(ut)},objectMerge($t,Bt)),Ot=rt||Ct;typeof Ot=="function"&&(Ot=Ot(zt));var Jt=wt||kt;typeof Jt=="function"&&(Jt=Jt(zt,It.message));var Ft=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce(function(Zt,nn){var cn;return _extends({},Zt,(cn={},cn[nn]=createChainedFunction([et.snack[nn],et[nn]],et.snack.key),cn))},{});return React$2.createElement(Collapse,{unmountOnExit:!0,timeout:175,in:ot,onExited:Ft.onExited},React$2.createElement(StyledSnackbar,Object.assign({},jt,vt,{open:Gt,className:clsx(_e.root,classes$1$1.wrappedRoot,_e[transformer.toAnchorOrigin(ut)]),onClose:ft}),React$2.createElement(Mt,Object.assign({appear:!0,in:Gt,timeout:Lt},Ht,{onExit:Ft.onExit,onExiting:Ft.onExiting,onExited:dt,onEnter:Ft.onEnter,onEntering:Ft.onEntering,onEntered:createChainedFunction([Ft.onEntered,ht])}),Jt||React$2.createElement(SnackbarContent,Object.assign({},bt,{role:"alert",style:yt,className:clsx(classes$1$1.contentRoot,classes$1$1[transformer.toVariant(hn)],_e[transformer.toVariant(hn)],St,tn,!At&&it&&classes$1$1.lessPadding)}),React$2.createElement("div",{id:bt["aria-describedby"],className:classes$1$1.message},At?null:it,pt),Ot&&React$2.createElement("div",{className:classes$1$1.action},Ot)))))},collapse={container:"& > .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},xsWidthMargin=16,componentName$2="SnackbarContainer",classes$2={root:componentName$2+"-root",rootDense:componentName$2+"-rootDense",top:componentName$2+"-top",bottom:componentName$2+"-bottom",left:componentName$2+"-left",right:componentName$2+"-right",center:componentName$2+"-center"},Root$1$1=styled$1("div")(function(a){var j,_e,et,nt,tt,ot,ct=a.theme;return ot={},ot["&."+classes$2.root]=(j={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:ct.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},j[collapse.container]={pointerEvents:"all"},j[collapse.wrapper]={padding:SNACKBAR_INDENTS.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},j.maxWidth="calc(100% - "+SNACKBAR_INDENTS.view.default*2+"px)",j[ct.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+xsWidthMargin*2+"px)"},j),ot["&."+classes$2.rootDense]=(_e={},_e[collapse.wrapper]={padding:SNACKBAR_INDENTS.snackbar.dense+"px 0px"},_e),ot["&."+classes$2.top]={top:SNACKBAR_INDENTS.view.default-SNACKBAR_INDENTS.snackbar.default,flexDirection:"column"},ot["&."+classes$2.bottom]={bottom:SNACKBAR_INDENTS.view.default-SNACKBAR_INDENTS.snackbar.default,flexDirection:"column-reverse"},ot["&."+classes$2.left]=(et={left:SNACKBAR_INDENTS.view.default},et[ct.breakpoints.up("sm")]={alignItems:"flex-start"},et[ct.breakpoints.down("sm")]={left:xsWidthMargin+"px"},et),ot["&."+classes$2.right]=(nt={right:SNACKBAR_INDENTS.view.default},nt[ct.breakpoints.up("sm")]={alignItems:"flex-end"},nt[ct.breakpoints.down("sm")]={right:xsWidthMargin+"px"},nt),ot["&."+classes$2.center]=(tt={left:"50%",transform:"translateX(-50%)"},tt[ct.breakpoints.up("sm")]={alignItems:"center"},tt),ot}),SnackbarContainer=function(j){var _e=j.className,et=j.anchorOrigin,nt=j.dense,tt=_objectWithoutPropertiesLoose(j,["className","anchorOrigin","dense"]),ot=clsx(classes$2[et.vertical],classes$2[et.horizontal],classes$2.root,_e,nt&&classes$2.rootDense);return React$2.createElement(Root$1$1,Object.assign({className:ot},tt))},SnackbarContainer$1=React$2.memo(SnackbarContainer),SnackbarProvider=function(a){_inheritsLoose$1(j,a);function j(et){var nt;return nt=a.call(this,et)||this,nt.enqueueSnackbar=function(tt,ot){ot===void 0&&(ot={});var ct=ot,ft=ct.key,ht=ct.preventDuplicate,dt=_objectWithoutPropertiesLoose(ct,["key","preventDuplicate"]),yt=isDefined(ft),Tt=yt?ft:new Date().getTime()+Math.random(),St=merge$3(dt,nt.props,DEFAULTS),At=_extends({key:Tt},dt,{message:tt,open:!0,entered:!1,requestClose:!1,variant:St("variant"),anchorOrigin:St("anchorOrigin"),autoHideDuration:St("autoHideDuration")});return dt.persist&&(At.autoHideDuration=void 0),nt.setState(function(Rt){if(ht===void 0&&nt.props.preventDuplicate||ht){var It=function(Bt){return yt?Bt.key===ft:Bt.message===tt},Ct=Rt.queue.findIndex(It)>-1,kt=Rt.snacks.findIndex(It)>-1;if(Ct||kt)return Rt}return nt.handleDisplaySnack(_extends({},Rt,{queue:[].concat(Rt.queue,[At])}))}),Tt},nt.handleDisplaySnack=function(tt){var ot=tt.snacks;return ot.length>=nt.maxSnack?nt.handleDismissOldest(tt):nt.processQueue(tt)},nt.processQueue=function(tt){var ot=tt.queue,ct=tt.snacks;return ot.length>0?_extends({},tt,{snacks:[].concat(ct,[ot[0]]),queue:ot.slice(1,ot.length)}):tt},nt.handleDismissOldest=function(tt){if(tt.snacks.some(function(dt){return!dt.open||dt.requestClose}))return tt;var ot=!1,ct=!1,ft=tt.snacks.reduce(function(dt,yt){return dt+(yt.open&&yt.persist?1:0)},0);ft===nt.maxSnack&&(ct=!0);var ht=tt.snacks.map(function(dt){return!ot&&(!dt.persist||ct)?(ot=!0,dt.entered?(dt.onClose&&dt.onClose(null,REASONS.MAXSNACK,dt.key),nt.props.onClose&&nt.props.onClose(null,REASONS.MAXSNACK,dt.key),_extends({},dt,{open:!1})):_extends({},dt,{requestClose:!0})):_extends({},dt)});return _extends({},tt,{snacks:ht})},nt.handleEnteredSnack=function(tt,ot,ct){if(!isDefined(ct))throw new Error("handleEnteredSnack Cannot be called with undefined key");nt.setState(function(ft){var ht=ft.snacks;return{snacks:ht.map(function(dt){return dt.key===ct?_extends({},dt,{entered:!0}):_extends({},dt)})}})},nt.handleCloseSnack=function(tt,ot,ct){if(nt.props.onClose&&nt.props.onClose(tt,ot,ct),ot!==REASONS.CLICKAWAY){var ft=ct===void 0;nt.setState(function(ht){var dt=ht.snacks,yt=ht.queue;return{snacks:dt.map(function(Tt){return!ft&&Tt.key!==ct?_extends({},Tt):Tt.entered?_extends({},Tt,{open:!1}):_extends({},Tt,{requestClose:!0})}),queue:yt.filter(function(Tt){return Tt.key!==ct})}})}},nt.closeSnackbar=function(tt){var ot=nt.state.snacks.find(function(ct){return ct.key===tt});isDefined(tt)&&ot&&ot.onClose&&ot.onClose(null,REASONS.INSTRUCTED,tt),nt.handleCloseSnack(null,REASONS.INSTRUCTED,tt)},nt.handleExitedSnack=function(tt,ot,ct){var ft=ot||ct;if(!isDefined(ft))throw new Error("handleExitedSnack Cannot be called with undefined key");nt.setState(function(ht){var dt=nt.processQueue(_extends({},ht,{snacks:ht.snacks.filter(function(yt){return yt.key!==ft})}));return dt.queue.length===0?dt:nt.handleDismissOldest(dt)})},nt.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:nt.enqueueSnackbar.bind(_assertThisInitialized(nt)),closeSnackbar:nt.closeSnackbar.bind(_assertThisInitialized(nt))}},nt}var _e=j.prototype;return _e.render=function(){var nt=this,tt=this.state.contextValue,ot=this.props,ct=ot.iconVariant,ft=ot.dense,ht=ft===void 0?DEFAULTS.dense:ft,dt=ot.hideIconVariant,yt=dt===void 0?DEFAULTS.hideIconVariant:dt,Tt=ot.domRoot,St=ot.children,At=ot.classes,Rt=At===void 0?{}:At,It=_objectWithoutPropertiesLoose(ot,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),Ct=this.state.snacks.reduce(function(Pt,Bt){var Kt,jt=originKeyExtractor(Bt.anchorOrigin),zt=Pt[jt]||[];return _extends({},Pt,(Kt={},Kt[jt]=[].concat(zt,[Bt]),Kt))},{}),kt=Object.keys(Ct).map(function(Pt){var Bt=Ct[Pt];return React$2.createElement(SnackbarContainer$1,{key:Pt,dense:ht,anchorOrigin:Bt[0].anchorOrigin,className:clsx(Rt.containerRoot,Rt[transformer.toContainerAnchorOrigin(Pt)])},Bt.map(function(Kt){return React$2.createElement(SnackbarItem,Object.assign({},It,{key:Kt.key,snack:Kt,dense:ht,iconVariant:ct,hideIconVariant:yt,classes:omitContainerKeys(Rt),onClose:nt.handleCloseSnack,onExited:createChainedFunction([nt.handleExitedSnack,nt.props.onExited]),onEntered:createChainedFunction([nt.handleEnteredSnack,nt.props.onEntered])}))}))});return React$2.createElement(SnackbarContext.Provider,{value:tt},St,Tt?reactDomExports.createPortal(kt,Tt):kt)},_createClass(j,[{key:"maxSnack",get:function(){return this.props.maxSnack||DEFAULTS.maxSnack}}]),j}(reactExports.Component),useSnackbar=function(){return reactExports.useContext(SnackbarContext)},Close={},createSvgIcon={};const require$$0$7=getAugmentedNamespace(utils$p);var hasRequiredCreateSvgIcon;function requireCreateSvgIcon(){return hasRequiredCreateSvgIcon||(hasRequiredCreateSvgIcon=1,function(a){"use client";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return j.createSvgIcon}});var j=require$$0$7}(createSvgIcon)),createSvgIcon}var _interopRequireDefault$7=interopRequireDefaultExports;Object.defineProperty(Close,"__esModule",{value:!0});var default_1$7=Close.default=void 0,_createSvgIcon$4=_interopRequireDefault$7(requireCreateSvgIcon()),_jsxRuntime$6=jsxRuntimeExports;default_1$7=Close.default=(0,_createSvgIcon$4.default)((0,_jsxRuntime$6.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function noop$6(){}var noop_1=noop$6;const noop$7=getDefaultExportFromCjs$1(noop_1);let success=noop$7,error=noop$7,warning=noop$7,info=noop$7;const genFn=(a,j)=>(_e,et={})=>{a(_e,{autoHideDuration:5e3,variant:j,...et})};function ToastProvider({children:a}){const j=reactExports.createRef(),_e=et=>()=>{j.current.closeSnackbar(et)};return jsxRuntimeExports.jsxs(SnackbarProvider,{anchorOrigin:{vertical:"top",horizontal:"right"},ref:j,action:et=>jsxRuntimeExports.jsx(IconButton,{"aria-label":"close",color:"inherit",onClick:_e(et),size:"large",children:jsxRuntimeExports.jsx(default_1$7,{style:{fontSize:16}})},"close"),children:[jsxRuntimeExports.jsx(Toast,{}),a]})}function Toast(){const{enqueueSnackbar:a}=useSnackbar();return success=genFn(a,"success"),error=genFn(a,"error"),warning=genFn(a,"warning"),info=genFn(a,"info"),null}const Toast$1={success:(a,j={},..._e)=>success(a,j,..._e),error:(a,j={autoHideDuration:15e3},..._e)=>error(a,j,..._e),warning:(a,j={},..._e)=>warning(a,j,..._e),info:(a,j={},..._e)=>info(a,j,..._e)};var flat=flatten$4;flatten$4.flatten=flatten$4;flatten$4.unflatten=unflatten;function isBuffer$7(a){return a&&a.constructor&&typeof a.constructor.isBuffer=="function"&&a.constructor.isBuffer(a)}function keyIdentity(a){return a}function flatten$4(a,j){j=j||{};const _e=j.delimiter||".",et=j.maxDepth,nt=j.transformKey||keyIdentity,tt={};function ot(ct,ft,ht){ht=ht||1,Object.keys(ct).forEach(function(dt){const yt=ct[dt],Tt=j.safe&&Array.isArray(yt),St=Object.prototype.toString.call(yt),At=isBuffer$7(yt),Rt=St==="[object Object]"||St==="[object Array]",It=ft?ft+_e+nt(dt):nt(dt);if(!Tt&&!At&&Rt&&Object.keys(yt).length&&(!j.maxDepth||ht<et))return ot(yt,It,ht+1);tt[It]=yt})}return ot(a),tt}function unflatten(a,j){j=j||{};const _e=j.delimiter||".",et=j.overwrite||!1,nt=j.transformKey||keyIdentity,tt={};if(isBuffer$7(a)||Object.prototype.toString.call(a)!=="[object Object]")return a;function ct(dt){const yt=Number(dt);return isNaN(yt)||dt.indexOf(".")!==-1||j.object?dt:yt}function ft(dt,yt,Tt){return Object.keys(Tt).reduce(function(St,At){return St[dt+_e+At]=Tt[At],St},yt)}function ht(dt){const yt=Object.prototype.toString.call(dt),Tt=yt==="[object Array]",St=yt==="[object Object]";if(dt){if(Tt)return!dt.length;if(St)return!Object.keys(dt).length}else return!0}return a=Object.keys(a).reduce(function(dt,yt){const Tt=Object.prototype.toString.call(a[yt]);return!(Tt==="[object Object]"||Tt==="[object Array]")||ht(a[yt])?(dt[yt]=a[yt],dt):ft(yt,dt,flatten$4(a[yt],j))},{}),Object.keys(a).forEach(function(dt){const yt=dt.split(_e).map(nt);let Tt=ct(yt.shift()),St=ct(yt[0]),At=tt;for(;St!==void 0;){if(Tt==="__proto__")return;const Rt=Object.prototype.toString.call(At[Tt]),It=Rt==="[object Object]"||Rt==="[object Array]";if(!et&&!It&&typeof At[Tt]<"u")return;(et&&!It||!et&&At[Tt]==null)&&(At[Tt]=typeof St=="number"&&!j.object?[]:{}),At=At[Tt],yt.length>0&&(Tt=ct(yt.shift()),St=ct(yt[0]))}At[Tt]=unflatten(a[dt],j)}),tt}const ve=getDefaultExportFromCjs$1(flat);var ListCache$4=_ListCache;function stackClear$1(){this.__data__=new ListCache$4,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(a){var j=this.__data__,_e=j.delete(a);return this.size=j.size,_e}var _stackDelete=stackDelete$1;function stackGet$1(a){return this.__data__.get(a)}var _stackGet=stackGet$1;function stackHas$1(a){return this.__data__.has(a)}var _stackHas=stackHas$1,ListCache$3=_ListCache,Map$4=_Map,MapCache$3=_MapCache,LARGE_ARRAY_SIZE$1=200;function stackSet$1(a,j){var _e=this.__data__;if(_e instanceof ListCache$3){var et=_e.__data__;if(!Map$4||et.length<LARGE_ARRAY_SIZE$1-1)return et.push([a,j]),this.size=++_e.size,this;_e=this.__data__=new MapCache$3(et)}return _e.set(a,j),this.size=_e.size,this}var _stackSet=stackSet$1,ListCache$2=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$4(a){var j=this.__data__=new ListCache$2(a);this.size=j.size}Stack$4.prototype.clear=stackClear;Stack$4.prototype.delete=stackDelete;Stack$4.prototype.get=stackGet;Stack$4.prototype.has=stackHas;Stack$4.prototype.set=stackSet;var _Stack=Stack$4,getNative$6=_getNative,defineProperty$4=function(){try{var a=getNative$6(Object,"defineProperty");return a({},"",{}),a}catch{}}(),_defineProperty$2=defineProperty$4,defineProperty$3=_defineProperty$2;function baseAssignValue$3(a,j,_e){j=="__proto__"&&defineProperty$3?defineProperty$3(a,j,{configurable:!0,enumerable:!0,value:_e,writable:!0}):a[j]=_e}var _baseAssignValue=baseAssignValue$3,baseAssignValue$2=_baseAssignValue,eq$8=eq_1$1;function assignMergeValue$2(a,j,_e){(_e!==void 0&&!eq$8(a[j],_e)||_e===void 0&&!(j in a))&&baseAssignValue$2(a,j,_e)}var _assignMergeValue=assignMergeValue$2;function createBaseFor$1(a){return function(j,_e,et){for(var nt=-1,tt=Object(j),ot=et(j),ct=ot.length;ct--;){var ft=ot[a?ct:++nt];if(_e(tt[ft],ft,tt)===!1)break}return j}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$2=createBaseFor(),_baseFor=baseFor$2,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(a,j){var _e=_root,et=j&&!j.nodeType&&j,nt=et&&!0&&a&&!a.nodeType&&a,tt=nt&&nt.exports===et,ot=tt?_e.Buffer:void 0,ct=ot?ot.allocUnsafe:void 0;function ft(ht,dt){if(dt)return ht.slice();var yt=ht.length,Tt=ct?ct(yt):new ht.constructor(yt);return ht.copy(Tt),Tt}a.exports=ft})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports,root$8=_root,Uint8Array$3=root$8.Uint8Array,_Uint8Array=Uint8Array$3,Uint8Array$2=_Uint8Array;function cloneArrayBuffer$3(a){var j=new a.constructor(a.byteLength);return new Uint8Array$2(j).set(new Uint8Array$2(a)),j}var _cloneArrayBuffer=cloneArrayBuffer$3,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneTypedArray$2(a,j){var _e=j?cloneArrayBuffer$2(a.buffer):a.buffer;return new a.constructor(_e,a.byteOffset,a.length)}var _cloneTypedArray=cloneTypedArray$2;function copyArray$2(a,j){var _e=-1,et=a.length;for(j||(j=Array(et));++_e<et;)j[_e]=a[_e];return j}var _copyArray=copyArray$2,isObject$k=isObject_1,objectCreate$1=Object.create,baseCreate$1=function(){function a(){}return function(j){if(!isObject$k(j))return{};if(objectCreate$1)return objectCreate$1(j);a.prototype=j;var _e=new a;return a.prototype=void 0,_e}}(),_baseCreate=baseCreate$1;function overArg$2(a,j){return function(_e){return a(j(_e))}}var _overArg=overArg$2,overArg$1=_overArg,getPrototype$3=overArg$1(Object.getPrototypeOf,Object),_getPrototype=getPrototype$3,objectProto$d=Object.prototype;function isPrototype$4(a){var j=a&&a.constructor,_e=typeof j=="function"&&j.prototype||objectProto$d;return a===_e}var _isPrototype=isPrototype$4,baseCreate=_baseCreate,getPrototype$2=_getPrototype,isPrototype$3=_isPrototype;function initCloneObject$2(a){return typeof a.constructor=="function"&&!isPrototype$3(a)?baseCreate(getPrototype$2(a)):{}}var _initCloneObject=initCloneObject$2,baseGetTag$6=_baseGetTag,isObjectLike$d=isObjectLike_1,argsTag$3="[object Arguments]";function baseIsArguments$1(a){return isObjectLike$d(a)&&baseGetTag$6(a)==argsTag$3}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$c=isObjectLike_1,objectProto$c=Object.prototype,hasOwnProperty$g=objectProto$c.hasOwnProperty,propertyIsEnumerable$1=objectProto$c.propertyIsEnumerable,isArguments$7=baseIsArguments(function(){return arguments}())?baseIsArguments:function(a){return isObjectLike$c(a)&&hasOwnProperty$g.call(a,"callee")&&!propertyIsEnumerable$1.call(a,"callee")},isArguments_1=isArguments$7,MAX_SAFE_INTEGER$4=9007199254740991;function isLength$3(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=MAX_SAFE_INTEGER$4}var isLength_1=isLength$3,isFunction$5=isFunction_1,isLength$2=isLength_1;function isArrayLike$7(a){return a!=null&&isLength$2(a.length)&&!isFunction$5(a)}var isArrayLike_1=isArrayLike$7,isArrayLike$6=isArrayLike_1,isObjectLike$b=isObjectLike_1;function isArrayLikeObject$3(a){return isObjectLike$b(a)&&isArrayLike$6(a)}var isArrayLikeObject_1=isArrayLikeObject$3,isBuffer$6={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$6.exports;(function(a,j){var _e=_root,et=stubFalse_1,nt=j&&!j.nodeType&&j,tt=nt&&!0&&a&&!a.nodeType&&a,ot=tt&&tt.exports===nt,ct=ot?_e.Buffer:void 0,ft=ct?ct.isBuffer:void 0,ht=ft||et;a.exports=ht})(isBuffer$6,isBuffer$6.exports);var isBufferExports=isBuffer$6.exports,baseGetTag$5=_baseGetTag,getPrototype$1=_getPrototype,isObjectLike$a=isObjectLike_1,objectTag$4="[object Object]",funcProto$2=Function.prototype,objectProto$b=Object.prototype,funcToString$2=funcProto$2.toString,hasOwnProperty$f=objectProto$b.hasOwnProperty,objectCtorString=funcToString$2.call(Object);function isPlainObject$3(a){if(!isObjectLike$a(a)||baseGetTag$5(a)!=objectTag$4)return!1;var j=getPrototype$1(a);if(j===null)return!0;var _e=hasOwnProperty$f.call(j,"constructor")&&j.constructor;return typeof _e=="function"&&_e instanceof _e&&funcToString$2.call(_e)==objectCtorString}var isPlainObject_1=isPlainObject$3;const isPlainObject$4=getDefaultExportFromCjs$1(isPlainObject_1);var baseGetTag$4=_baseGetTag,isLength$1=isLength_1,isObjectLike$9=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$4="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$3="[object Function]",mapTag$6="[object Map]",numberTag$4="[object Number]",objectTag$3="[object Object]",regexpTag$3="[object RegExp]",setTag$6="[object Set]",stringTag$4="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$4]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$3]=typedArrayTags[mapTag$6]=typedArrayTags[numberTag$4]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$6]=typedArrayTags[stringTag$4]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(a){return isObjectLike$9(a)&&isLength$1(a.length)&&!!typedArrayTags[baseGetTag$4(a)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$5(a){return function(j){return a(j)}}var _baseUnary=baseUnary$5,_nodeUtil={exports:{}};_nodeUtil.exports;(function(a,j){var _e=_freeGlobal,et=j&&!j.nodeType&&j,nt=et&&!0&&a&&!a.nodeType&&a,tt=nt&&nt.exports===et,ot=tt&&_e.process,ct=function(){try{var ft=nt&&nt.require&&nt.require("util").types;return ft||ot&&ot.binding&&ot.binding("util")}catch{}}();a.exports=ct})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$4=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$6=nodeIsTypedArray?baseUnary$4(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$6;function safeGet$2(a,j){if(!(j==="constructor"&&typeof a[j]=="function")&&j!="__proto__")return a[j]}var _safeGet=safeGet$2,baseAssignValue$1=_baseAssignValue,eq$7=eq_1$1,objectProto$a=Object.prototype,hasOwnProperty$e=objectProto$a.hasOwnProperty;function assignValue$4(a,j,_e){var et=a[j];(!(hasOwnProperty$e.call(a,j)&&eq$7(et,_e))||_e===void 0&&!(j in a))&&baseAssignValue$1(a,j,_e)}var _assignValue=assignValue$4,assignValue$3=_assignValue,baseAssignValue=_baseAssignValue;function copyObject$6(a,j,_e,et){var nt=!_e;_e||(_e={});for(var tt=-1,ot=j.length;++tt<ot;){var ct=j[tt],ft=et?et(_e[ct],a[ct],ct,_e,a):void 0;ft===void 0&&(ft=a[ct]),nt?baseAssignValue(_e,ct,ft):assignValue$3(_e,ct,ft)}return _e}var _copyObject=copyObject$6;function baseTimes$1(a,j){for(var _e=-1,et=Array(a);++_e<a;)et[_e]=j(_e);return et}var _baseTimes=baseTimes$1,MAX_SAFE_INTEGER$3=9007199254740991,reIsUint$1=/^(?:0|[1-9]\d*)$/;function isIndex$5(a,j){var _e=typeof a;return j=j??MAX_SAFE_INTEGER$3,!!j&&(_e=="number"||_e!="symbol"&&reIsUint$1.test(a))&&a>-1&&a%1==0&&a<j}var _isIndex=isIndex$5,baseTimes=_baseTimes,isArguments$6=isArguments_1,isArray$g=isArray_1,isBuffer$5=isBufferExports,isIndex$4=_isIndex,isTypedArray$5=isTypedArray_1,objectProto$9=Object.prototype,hasOwnProperty$d=objectProto$9.hasOwnProperty;function arrayLikeKeys$2(a,j){var _e=isArray$g(a),et=!_e&&isArguments$6(a),nt=!_e&&!et&&isBuffer$5(a),tt=!_e&&!et&&!nt&&isTypedArray$5(a),ot=_e||et||nt||tt,ct=ot?baseTimes(a.length,String):[],ft=ct.length;for(var ht in a)(j||hasOwnProperty$d.call(a,ht))&&!(ot&&(ht=="length"||nt&&(ht=="offset"||ht=="parent")||tt&&(ht=="buffer"||ht=="byteLength"||ht=="byteOffset")||isIndex$4(ht,ft)))&&ct.push(ht);return ct}var _arrayLikeKeys=arrayLikeKeys$2;function nativeKeysIn$1(a){var j=[];if(a!=null)for(var _e in Object(a))j.push(_e);return j}var _nativeKeysIn=nativeKeysIn$1,isObject$j=isObject_1,isPrototype$2=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$8=Object.prototype,hasOwnProperty$c=objectProto$8.hasOwnProperty;function baseKeysIn$1(a){if(!isObject$j(a))return nativeKeysIn(a);var j=isPrototype$2(a),_e=[];for(var et in a)et=="constructor"&&(j||!hasOwnProperty$c.call(a,et))||_e.push(et);return _e}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys$1=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike$5=isArrayLike_1;function keysIn$5(a){return isArrayLike$5(a)?arrayLikeKeys$1(a,!0):baseKeysIn(a)}var keysIn_1=keysIn$5,copyObject$5=_copyObject,keysIn$4=keysIn_1;function toPlainObject$1(a){return copyObject$5(a,keysIn$4(a))}var toPlainObject_1=toPlainObject$1,assignMergeValue$1=_assignMergeValue,cloneBuffer$1=_cloneBufferExports,cloneTypedArray$1=_cloneTypedArray,copyArray$1=_copyArray,initCloneObject$1=_initCloneObject,isArguments$5=isArguments_1,isArray$f=isArray_1,isArrayLikeObject$2=isArrayLikeObject_1,isBuffer$4=isBufferExports,isFunction$4=isFunction_1,isObject$i=isObject_1,isPlainObject$2=isPlainObject_1,isTypedArray$4=isTypedArray_1,safeGet$1=_safeGet,toPlainObject=toPlainObject_1;function baseMergeDeep$1(a,j,_e,et,nt,tt,ot){var ct=safeGet$1(a,_e),ft=safeGet$1(j,_e),ht=ot.get(ft);if(ht){assignMergeValue$1(a,_e,ht);return}var dt=tt?tt(ct,ft,_e+"",a,j,ot):void 0,yt=dt===void 0;if(yt){var Tt=isArray$f(ft),St=!Tt&&isBuffer$4(ft),At=!Tt&&!St&&isTypedArray$4(ft);dt=ft,Tt||St||At?isArray$f(ct)?dt=ct:isArrayLikeObject$2(ct)?dt=copyArray$1(ct):St?(yt=!1,dt=cloneBuffer$1(ft,!0)):At?(yt=!1,dt=cloneTypedArray$1(ft,!0)):dt=[]:isPlainObject$2(ft)||isArguments$5(ft)?(dt=ct,isArguments$5(ct)?dt=toPlainObject(ct):(!isObject$i(ct)||isFunction$4(ct))&&(dt=initCloneObject$1(ft))):yt=!1}yt&&(ot.set(ft,dt),nt(dt,ft,et,tt,ot),ot.delete(ft)),assignMergeValue$1(a,_e,dt)}var _baseMergeDeep=baseMergeDeep$1,Stack$3=_Stack,assignMergeValue=_assignMergeValue,baseFor$1=_baseFor,baseMergeDeep=_baseMergeDeep,isObject$h=isObject_1,keysIn$3=keysIn_1,safeGet=_safeGet;function baseMerge$3(a,j,_e,et,nt){a!==j&&baseFor$1(j,function(tt,ot){if(nt||(nt=new Stack$3),isObject$h(tt))baseMergeDeep(a,j,ot,_e,baseMerge$3,et,nt);else{var ct=et?et(safeGet(a,ot),tt,ot+"",a,j,nt):void 0;ct===void 0&&(ct=tt),assignMergeValue(a,ot,ct)}},keysIn$3)}var _baseMerge=baseMerge$3;function identity$4(a){return a}var identity_1=identity$4;function apply$4(a,j,_e){switch(_e.length){case 0:return a.call(j);case 1:return a.call(j,_e[0]);case 2:return a.call(j,_e[0],_e[1]);case 3:return a.call(j,_e[0],_e[1],_e[2])}return a.apply(j,_e)}var _apply=apply$4,apply$3=_apply,nativeMax$1=Math.max;function overRest$2(a,j,_e){return j=nativeMax$1(j===void 0?a.length-1:j,0),function(){for(var et=arguments,nt=-1,tt=nativeMax$1(et.length-j,0),ot=Array(tt);++nt<tt;)ot[nt]=et[j+nt];nt=-1;for(var ct=Array(j+1);++nt<j;)ct[nt]=et[nt];return ct[j]=_e(ot),apply$3(a,this,ct)}}var _overRest=overRest$2;function constant$1(a){return function(){return a}}var constant_1=constant$1,constant=constant_1,defineProperty$2=_defineProperty$2,identity$3=identity_1,baseSetToString$1=defineProperty$2?function(a,j){return defineProperty$2(a,"toString",{configurable:!0,enumerable:!1,value:constant(j),writable:!0})}:identity$3,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut$1(a){var j=0,_e=0;return function(){var et=nativeNow(),nt=HOT_SPAN-(et-_e);if(_e=et,nt>0){if(++j>=HOT_COUNT)return arguments[0]}else j=0;return a.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$2=shortOut(baseSetToString),_setToString=setToString$2,identity$2=identity_1,overRest$1=_overRest,setToString$1=_setToString;function baseRest$5(a,j){return setToString$1(overRest$1(a,j,identity$2),a+"")}var _baseRest=baseRest$5,eq$6=eq_1$1,isArrayLike$4=isArrayLike_1,isIndex$3=_isIndex,isObject$g=isObject_1;function isIterateeCall$2(a,j,_e){if(!isObject$g(_e))return!1;var et=typeof j;return(et=="number"?isArrayLike$4(_e)&&isIndex$3(j,_e.length):et=="string"&&j in _e)?eq$6(_e[j],a):!1}var _isIterateeCall=isIterateeCall$2,baseRest$4=_baseRest,isIterateeCall$1=_isIterateeCall;function createAssigner$2(a){return baseRest$4(function(j,_e){var et=-1,nt=_e.length,tt=nt>1?_e[nt-1]:void 0,ot=nt>2?_e[2]:void 0;for(tt=a.length>3&&typeof tt=="function"?(nt--,tt):void 0,ot&&isIterateeCall$1(_e[0],_e[1],ot)&&(tt=nt<3?void 0:tt,nt=1),j=Object(j);++et<nt;){var ct=_e[et];ct&&a(j,ct,et,tt)}return j})}var _createAssigner=createAssigner$2,baseMerge$2=_baseMerge,createAssigner$1=_createAssigner,merge$1=createAssigner$1(function(a,j,_e){baseMerge$2(a,j,_e)}),merge_1=merge$1;const merge$2=getDefaultExportFromCjs$1(merge_1),en$1={common:{invalid:"Invalid",about:"About",access:"Access",change:"Change",upload:"Upload",accessKey:"Access Keys",action:"Action",actions:"Actions",add:"Add",refresh:"Refresh",address:"Address",afterTime:"After {time}",allow:"Allow",alreadyExist:"already exists",approve:"Approve",approved:"approved",appUrl:"APP Url",auditLogs:"Audit Trail",author:"Author",avatar:"Avatar",back:"Back",basic:"Basic",basicInfo:"Basic Information",profile:"Profile",bind:"Bind",blocklet:"Blocklet",blocklets:"Blocklets",blockletsStorage:"Blocklets Storage",cacheStorage:"Cache Storage",cancel:"Cancel",certificate:"certificate",category:"Log Topic",click:"Click to copy",close:"Close",collapseAll:"Collapse All",community:"Community",complete:"Complete",componentBasicInfo:"Component Basic Information",components:"Blocklets",config:"Configure",configuration:"Configuration",configNavigation:"Navigation",configSuccess:"Config successfully",confirm:"Confirm",connect:"Connect",console:"Console",continue:"Continue",continueWith:"Continue With",copiedTip:"Copied",copyAndClose:"Copy & Close",copyTip:"Click To Copy",coreStorage:"Core Storage",cpu:"CPU",create:"Create",createSuccess:"Create Access Key",created:"Created At",createdAt:"Created At",createdBy:"Created By",dAddress:"Decentralized Identifiers (DID)",dataStorage:"Storage on Local Disk",delConfirm:"Delete",delConfirmDescription:"Confirm delete {data}?",delete:"Delete",dependents:"Dependents",description:"Description",detail:"Detail",did:"DID",disk:"Disk",diskInfo:"Disk Info",docker:"IS Docker",documentation:"Documentation",domain:"Domain",downgradeTo:"Downgrade to",download:"Download",connectToStore:"Connect to Store",blockletStudio:"Studio",uploaded:"Uploaded",downloading:"Downloading",edit:"Edit",email:"Email",phone:"Phone",empty:"Empty",emptyData:"No results found",enable:"Enable",engine:"Engine",env:"Environment",environment:"Environment",expandAll:"Expand All",expired:"Expired",expires:"Expires",export:"Export",externalIp:"External IP",failed:"Failed",filter:"Log Filter",fingerprint:"Fingerprint",finish:"Finish",forbid:"Forbid",free:"Free",general:"General",gitpod:"IS Gitpod",goEULA:'Click to view "End User License Agreement"',group:"Group",image:"IS Image",install:"Install",installed:"Installed",installedAt:"Installed At",installSuccess:"Successfully installed",installing:"Installing",internalIp:"Internal IP",introduction:"Introduction",invite:"Invite",inviting:"Inviting",ip:"IP",isPublic:"Public",issue:"Issue",issuer:"Issuer",item:"Item",joined:"Joined",key:"Key",lastPublishedAt:"Published At",launcher:"Launcher Information",leavePageTip:"Are you sure to leave the page?",link:"Link",loading:"loading",log:"View Logs",logStorage:"Log Storage",login:"Login",logo:"Logo",logout:"Logout",logs:"Logs",manageTeam:"Manage Team",marketplace:"Marketplace",member:"Member",members:"Members",memory:"Memory",meta:"Meta Data",analytics:"Analytics",runtime:"Runtime",traffic:"Traffic",more:"More",mountPoint:"MountPoint",name:"Name",next:"Next",no:"No",noData:"No records to display",notice:"Unexpected bad things will happen if you don’t read this!",noticeTitle:"Notice",notification:"Notification",open:"Open",visitStore:"Visit Store",visitTarget:"Visit {name}",management:"Management",os:"Operating System",overview:"Overview",owner:"Owner",page404:"404 Page",passport:"Passport",display:"Display",permission:"Permission",port:"Port",pre:"Previous",preferences:"Preferences",preview:"Preview",protected:"Protected",protocol:"Protocol",purchase:"Purchase",reconnect:"Reconnect",disconnect:"Disconnect",readMore:"More",redirect:"Redirect",redirectCode:"Redirect Code",redirectPermanently:"Permanent Redirect",redirectTemporary:"Temporary Redirect",redirectUrl:"Redirect URL",rewrite:"Rewrite",release:"Release",rewriteUrl:"Rewrite URL",reject:"Reject",reload:"Reload",remark:"Remark",remove:"Remove",removeSuccess:"Remove successfully",renew:"Renew",reportIssue:"Report an issue",required:"Required",requiredErrorText:"{name} is required",resource:"Resource",restart:"Restart",restore:"Restore",retry:"Retry",revoke:"Revoke",role:"Role",running:"running",runtimeInfo:"Runtime Info",save:"Save",saveChanges:"Save Changes",saveSuccess:"Saved successfully",scheduleFailed:"schedule failed",scheduleSuccess:"successfully scheduled",scope:"Scope",screenshot:"Screenshots",search:"Search",security:"Security",serverDid:"Server DID",serverVersion:"Server Version",setting:"Settings",start:"Start",status:"Status",stop:"Stop",storage:"Storage",backup:"Backup",store:"Store",succeeded:"Succeeded",subscription:"Subscription",support:"Support",switch:"Switch",team:"Team",the:"The",timeAgo:"{time} ago",title:"Title",type:"Type",unavailable:"Unavailable",update:"Update",updateAvailable:"New version {version} available",updatedAt:"Updated At",updatedBy:"Updated By",upgrade:"Upgrade",upgradeServer:"Upgrade Server",upgradeTo:"Upgrade to",upgrading:"Upgrading",uptime:"Uptime",url:"URL",valid:"Valid",value:"Value",version:"Version",visit:"Visit",waiting:"Waiting",webhook:"Integrations",yes:"Yes",invalidParam:"Invalid Params",launch:"Launch",price:"Price",redirecting:"Redirecting",error:"Error",reminder:"Reminder",normal:"Normal",gateway:"Gateway",verifyNFT:"Verify NFT",errorMessage:"Error Message: ",slugifyHint:"The actual mount point will be: {value}",strategy:"Strategy",auto:"Auto",manual:"Manual",progress:"In progress",startTime:"Start time",endTime:"End time",selected:"Selected",timeoutError:"Timeout error",tags:"Tags",sourceApp:"Belong to App",requiredInputPlaceholder:"Please enter {name}",moveUp:"Move Up",moveDown:"Move Down",enabled:"Enabled",disabled:"Disabled"},setup:{connect:{title:"Signature Required",scan:"Connect your DID Wallet to become the owner of this server",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},keyPair:{title:"Derived KeyPair Required",scan:"Connect your DID Wallet to generate a key-pair for this app",confirm:"Review this operation on your DID Wallet",success:"Your key pair is securely stored"},verify:{title:"Ownership Credential Required",scan:"Connect your DID Wallet to provide ownership credentials",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},accept:{title:"Accepting server require ownership certificates",scan:"Connect your DID Wallet to provide ownership credentials",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},title:"Setup Blocklet Server",steps:{eula:"End User License Agreement",eulaFooter:"I have read and agreed to the terms of the EULA",connect:"Connect Owner DID Wallet",verify:"Verify Ownership",basicSettings:"Basic Settings",launchApp:"Launch Application",complete:"Complete"},congratulation:"Congratulations! Your Blocklet Server is secure and ready to use",redirectButton:"Take me to dashboard!"},login:{loginTo:"Connect to",description:"Only server owner and approved members can access the dashboard",switchDid:{title:"Switch DID Wallet",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},switchSpecifiedDid:{title:"Switch DID Wallet",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},connect:{title:"Connect DID Wallet",scan:"Connect your DID Wallet to provide passport",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"}},acceptServer:{title:"Claim Server with Ownership NFT",tooltip:"If you received a server ownership nft, you can claim your owner passport with this link."},exchangePassport:{title:"Get Passport with NFT",success:"You have successfully get your passport and logged in with the passport",login:"Login",tooltip:"If you own NFT from collection {collections}, you can exchange your passport with this link.",dialog:{title:"Get Passport with NFT",scan:"Connect your DID Wallet to present your NFT to get a passport",confirm:"Select NFT on your DID Wallet",success:"Passport has been successfully exchanged"}},payablePassport:{title:"Purchase passport with payment",tooltip:"If you do not have a passport, you can purchase a passport with this link."},sidebar:{dashboard:"Dashboard",blocklets:"Blocklets",console:"Console",settings:"Settings"},system:{total:"Total",used:"Used",free:"Free",cores:"Number of cores",instances:"Number of instances"},blocklet:{external:"External",usingDocker:"This Blocklet will run using docker",notFound:"Blocklet not found on this server, maybe it has been deleted",installFromMarket:"Install New Blocklets",installFromUrl:"Install From Url",installFromCreate:"Create Blocklet",titleValidationError:"Title length must be between 3 and 20 characters",descriptionValidationError:"Description length must be between 3 and 80 characters",installFromDiskBackup:"Restore from this server",installedAt:"Installed At",internal:"Internal",startedAt:"Started At",stoppedAt:"Stopped At",urlEmptyTip:"No Access URL, ",goToAddRule:"Go To Add",services:"Exposed Services",upstreamPort:"Upstream Port",noService:"No Services",appId:"App DID",appPid:"Permanent DID",whyNeedAppPid:"If your application has been migrated, the permanent DID is the DID generated when this Blocklet was originally installed",alsoKnownAs:"Also Known As",skSource:"Owner Wallet",reloadSuccess:"Blocklet was reloaded successfully",statusTip:"Blocklet is {status}",initialUptime:"Less than 1m",dashboard:"Blocklet Dashboard",noComponent:"Application has no components and cannot be started",fromUrl:{title:"Install Blocklet",label:"Blocklet Meta URL",description:"The URL should point to the Meta File of the Blocklet. If you need to refer to a local file, please add the file:// prefix, e.g. file:///Users/foo/blocklet.json.",confirm:"Install",step0:"Input URL",step1:"Confirm Meta Info",existTipPrefix:"Blocklet with the same DID already exists, the version is",existTipSuffix:", Please install a higher version."},action:{stopDescription:"Stopping the blocklet will make its public interfaces unaccessible, which may cause end user failures",stopComponentDescription:"Stopping the component will make its public interfaces unaccessible, which may cause end user failures",confirmStop:"Yes, Stop It",cancelDownloadDescription:"Cancel download {name} ?",removeApplicationDescription:"Removing the application will erase code and data generated by this application, which is not recoverable if you do not have any backups",removeApplicationAfterBackup:"Backup and remove the application. You can restore the application from this server if you need",removeApplicationComplete:"Remove both code and data for this application",removeComponentDescription:"Removing the component will erase code and data generated by this component, which is not recoverable if you do not have any backups",removeComponentKeepData:"Keep data for this component, only remove code",removeComponentComplete:"Remove both code and data for this component",confirmRemove:"Yes, Remove It",confirmComponentRemove:"Yes, Remove It",upgradeDescription:"Upgrading the blocklet will make it temporarily unavailable, are you sure to continue?",confirmUpgrade:"Yes, Upgrade It",confirmRestart:"Yes, Restart It",restartDescription:"Restarting the blocklet will temporarily suspended and may not start because of a configuration change"},dev:{modeTip:"Please switch Blocklet Server to DEBUG mode"},index:{tableTitle:"Manage Your Blocklets",noBlocklet:"No blocklets found in this Blocklet Server, install a blocklet from market place to start."},admin:{iframeTitle:"Blocklet Admin Interface",title:"Admin Interface",noContent:"This blocklet does not have a admin interface",securityError:"SecurityError: Can not open the admin url from accessing a cross-origin frame"},config:{name:"App Name",description:"App Description",sk:"Secret key for the app wallet",logoSquare:"App Logo",logoRect:"Rect logo",logoRectDesc:"Usually displayed at the top of the page, default to app logo",logoFavicon:"Favicon",logoFaviconDesc:"Usually displayed in the browser's address bar or tab page, default to app logo",clusterSize:"Instance count when run this blocklet in cluster mode",copyrightOwner:"Copyright Owner (Display in footer)",copyrightYear:"Copyright Year (Display in footer)",deletable:{name:"Delete Protection",enable:"This blocklet can NOT currently be deleted",disable:"This blocklet can currently be deleted"},tenantMode:{name:"Multiple Tenant Mode",multiple:"This blocklet runs in multiple tenant mode, data should be isolated for each tenant",single:"This blocklet runs in single tenant mode, all data are shared"},walletType:{name:"Wallet Type",description:"Blocklet instance wallet type, will change the derived DID"},languages:"Supported Languages",selectLanguagesTip:"Adjust the order by removing and re-adding",languagesSearch:"Search by Country's Local Name, English Name, or ISO Code...",passportColor:"Passport Color",appUrl:"App URL",access:{title:"Who Can Access",description:"Who can access the blocklet",useDefault:"Use default",defaultDescription:"Use the application's default configuration",whoCanAccess:{all:{title:"Accessible to all",description:"Open to the world anyone can access without passport"},owner:{title:"Only me can access",description:"You must provide owner passport to access this application"},invited:{title:"Only invited people can access",description:"You can invite members later in the admin page"}},publicToStore:"Public On Store",publicInstanceTip:"The access address of this blocklet will be displayed in the Store (along with your DID for accepting donations)",updatedTip:"Access Control Modified"},changedTip:"Configuration updated, please restart Blocklet",missingRequired:"Missing required configuration to start the blocklet",gotoFix:"Go to fix",environment:{key:"Configuration key",value:"Configuration value",keyValueRequired:"Configuration key and value must be specified",invalidKey:"Configuration key must not start with BLOCKLET_ or COMPONENT_",deleteForbidden:"This configuration is required and should not be deleted",tip:"Configurations prefixed with BWA_ should not contain sensitive information because they will be sent to the browser"},dangerZone:"Danger Zone",blockletTypeChangeTip:"Wallet Type will be changed to <b>{value}</b>",appDidChangeTip:"This operation will change the DID of the application, which will lead to the following problems. Please confirm after careful evaluation:",appDidChangeTipL1:"The user's account connected to this application will change",appDidChangeTipL2:"The DID domain name of the application will change, and the original domain name will become invalid",appSkChangeTip:"You are changing application secret key",walletTypeTitle:"Update Wallet Type",appSkTitle:"Update Application Secret Key",sharedToAllComponents:"Will be shared to all components",session:{period:"Session validity period",profile:"User profile requirements",ttl:"User will be asked to login again if they have no activity on this site for {day} days",day:"{day} day",days:"{day} days",cacheTtl:"Cache duration for user session data (in seconds)",fullNameEnabled:"Request user name on login (enabled by default)",avatarEnabled:"Request user avatar on login (enabled by default)",emailEnabled:"Request user email on login",emailRequireVerified:"Require user email to be verified before login",emailRequireUnique:"Require user email to be unique across all users",phoneEnabled:"Request user phone number on login (not supported yet)",phoneRequireVerified:"Require user phone number to be verified before login",phoneRequireUnique:"Require user phone number to be unique across all users",emailTrustOauthProviders:"Trust OAuth providers for email verification status",enableDomainBlackList:"Enable email domain black list (reject listed email domains)",enableDomainWhiteList:"Enable email domain white list (only allow listed email domains to login)",addDomain:"Add source to fetch the list (in plain text format, one domain per line)"},clearCache:{name:"Cache Management",purpose:"Manage files cached in router and blocklet services",title:"Confirm Cache Clear?",action:"Clear Cache",success:"Successfully cleared {count} cache entries",description:"Are you sure you want to clear cached files in router and blocklet service? this operation may cause slight performance downgrade in the short term"}},overview:{source:"Source",deployedFrom:"Deployed From",accessControl:"Access Control",viewInStore:"View It In Store"},diskInfo:{empty:"Disk info not available now!",appDir:"App Directory",dataDir:"Data Directory",logDir:"Log Directory",cacheDir:"Cache Directory"},runtimeInfo:{noRunning:"Runtime information will be available when blocklet is running!",memoryUsage:"Memory Usage",cpuUsage:"CPU Usage",uptime:"Uptime",port:"Port",processId:"Process ID"},dist:{downloadLink:"Download Link",verify:"Verify"},status:{added:"Added",waiting:"Waiting",downloading:"Downloading",extracting:"Extracting",installing:"Installing",upgrading:"Upgrading",installed:"Installed",created:"Created",starting:"Starting",running:"Running",stopping:"Stopping",stopped:"Stopped",error:"Error",deleting:"Deleting",corrupted:"Corrupted",purchasing:"Waiting for purchase",purchased:"Purchased",verifying:"Verifying purchase",resource:"Resource"},list:{download:"Download",star:"Star"},component:{container:"Global Config",showContainer:"Show Global Config",didSpaceConfig:"Configure DID Spaces",didSpaceConfigTip:"Complete the following authorize process to store application data in DID Spaces",didSpaceConnected:"Storage being authorized to: {endpoint}",checkUpdateTitle:"Check for Updates",updateTitle:"Update Blocklets",noUpdate:"No Blocklets to update",add:"Add Blocklet",selectComponent:"Select Blocklet",selectRegistry:"Select Blocklet Store",selectRegistryTip:"You can switch blocklet store to see more components",selectInstance:"Select Instance",selectInstanceTip:"You can select an existing instance or create a new instance. Existing instances will use previously saved configuration and data",newInstance:"Create New Instance",noComponent:"No Blocklets",mountPoint:"What's the mount point?",mountPointTip:"If you set mount point to '/my-prefix', then all requests that begins with that mount point will be routed to the selected Blocklet",delete:"Delete Blocklet",deleteDescription:"This Blocklet will not be accessible after deletion. Confirm delete?",purchase:"Payment Required",tip:{stopBlocklet:"Please stop running Blocklet first",requiredBy:"The Blocklet is required by {name}"},choose:"Choose",upgrade:"Upgrade",addWithName:"Add Blocklet To {name}",relatedComponents:"Related Blocklets",required:"Required",noDependencies:"{name} doesn't have any dependencies",installed:"Installed",installingTip:"Installing component, please wait...",installingCanCloseWindowTip:"Installing component in the background, you can safely close this window",installSuccessTip:"Congratulations, the component was installed successfully!",missDownloadTokenTip:"Cannot add paid component without valid download token",purchaseComponentSecondCheckTip:"Please present your blocklet purchase NFT to continue",installComponentError:"There was an error installing the component, please retry again",downloadComponentError:"There was an error downloading the component, please retry again",addComponentTip:{introduction:"Welcome to the Add Component Wizard",isPurchase:"You need to Verify NFT before use <b>{name}</b> as a component;",belowInformation:"Below is the information for the component: ",verifyNFT:"Please select the Verify NFT method",config:"Please fill in the configuration of the component",environment:"Please fill in the environment of the component",fromUrl:"Add Blocklet From Url"},addNext:"Add {name}",upgradeNext:"Upgrade {name}",setting:"Settings"},router:{urlPath:"URL Path",noRunning:"The blocklet is not currently started. Unable to access through the following address!",securitySetting:"Security Setting",checkUrlAccessible:"Check the accessibility of the address",urlInaccessible:"It may be due to network reasons, the address is temporarily inaccessible",noAccessibleUrl:"No accessible URL",domainLockTooltip:"The system generated Domain cannot be edited.",urlLockTooltip:"The system generated URL Path cannot be edited.",showAllDomains:"Show all domains",showAllDIDs:"Show all DIDs",currentDomainTip:"You are accessing the current page through this domain"},export:{title:"Export Blocklet",name:"Bundle Name",nameTip:'e.g. "my-blocklet-name" or "@my-scope/blocklet-name"',result:"What's next",exportSource:"Export Source",success:"Blocklet successfully exported",resultTipStart:"With",resultTipEnd:"you can build and publish this blocklet within minutes",uploadedComponentTip:"Directly uploaded components cannot be exported:"},migrate:{title:"Migrate Application",scan:"Connect your DID Wallet to generate a key-pair for this application",confirm:"Review this operation on your DID Wallet",success:"Your application is successfully migrated, the page will be refreshed in {sec} seconds",intro:{l1:"Click here",l2:"to migrate your application to new version (changes are disabled before the migration completes)",l3:"1. The application DID will be fully controlled from your DID Wallet.",l4:"2. The application data will be migrated, and no further changes required.",l5:"3. The new application structure will give you more flexibly when change components.",l6:"4. Please do not change component mount points before component new version is out."},tip:{duplicate:"Find duplicate component {name}, please delete useless components and migrate again",running:"Please stop blocklet before migration"}},error:{isRunning:"Blocklet is running, please stop it first",isInProgress:"Blocklet is in progress, please wait for it to finish"},publish:{connectOrUpload:"Connect or Upload",projectSettings:"Project Settings",noStoreSelected:"Please select one of the existing stores or add a new store to continue",autoUploadTip:"Upload release to connected Blocklet Stores automatically after creation",possibleSameStoreTip:"Try resolving dependency blocklets to the same Blocklet Store before each uploading when possible",needProjectId:"Please create a project first",developerInfo:"Developer Information",branding:"Branding",brandingHelp:"More information about the blocklet will be displayed in the Store",download:"Download {name}",deleteStoreTip:"Are you sure you want to remove {name} from the connect Store list?",delete:"Delete {name}",copyInstallUrl:"Copy Install URL",installToThisServer:"Install to this server",createResource:"Create Resource",blockletStudio:"Blocklet Studio",tenantScope:"Tenant",addResource:"Add Blocklet",productTitle:"Product",versionTitle:"Versioning",imgTitle:"Images",resourceTitle:"Resources",resourceSelect:"Select resource from following blocklets",resourceUpload:"Upload resource from your disk (index.html is required in the archive)",blockletEmptyTip:"There aren’t any blocklets here",createBlockletTip:"You can create new blocklet through existing resources, components, and configuration in this application",createBlocklet:"New blocklet",reconnectStoreTip:"After reconnecting, a new developer will be bound. Are you sure you want to reconnect?",disconnectStoreTip:"After disconnecting, the blocklet will be removed from the store. Are you sure you want to disconnect?",componentNotRunning:"Blocklet {name} is not running, please start it first",allComponentsNotRunning:"Blocklets is not running, please start it first",releaseEmptyTip:"There aren't any releases here",resourceEmptyTip:"No available resources",viewLastRelease:"View last release",createReleaseTip:"You can create a release of the blocklet, along with release notes and resources, for other people to use",createRelease:"Create release",deleteReleaseTip:"The release cannot be recovered after deletion",createBlockletDid:"Create from DID Wallet",createReleaseSuccess:"Release created successfully",saveDraftSuccess:"Draft saved successfully",packTip:"Currently blocklets can be installed directly as applications. Components and application configurations will be automatically included in the Blocklet",resourceTip:"Currently, as a Resource Blocklet, it cannot be directly installed from the Store.",whyCantSeeInStore:"You need to publish the blocklet on connected store before you can see it in the store listing page",whyCantSeeResourceBlockletInStore:"Resource Blocklet are hidden from the store listing page by default",resourceChangedWarning:"You have modified the resource, please save it in time",install:"Install {name}",installResourceTip:"Install Url:",installResourceTip2:"If you want to see more tips, please visit",installResourceHelp:"Help Document",componentIncluded:"Included",componentForceRequired:"Required",steps:{branding:"Describe the basic information of your Blocklet. This information will be presented to users in the store.",introduction:"A clear introduction can effectively highlight your Blocklet. You can use Markdown syntax to write and preview it.",resources:"Please select the resources that need to be associated with the current Blocklet, as these resources will be installed along with the Blocklet.",blocklets:"Please select the Blocklets that need to be associated and installed when installing the current Blocklet.",version:"Set the release version and the change log."},connect:{title:"Create Blocklet DID",scan:"Scan the QR code below to generate Blocklet DID",confirm:"Confirm using DID Wallet",success:"Blocklet DID has been generated, please continue your operation"},deleteProject:{title:"Delete {name}",scan:"Scan the QR code below to delete {name}",confirm:"Confirm using DID Wallet",success:"Blocklet has been deleted, please continue your operation",description:"Are you sure you want to delete the Blocklet? Here are the issues you might encounter:",tip1:"The Blocklet cannot be recovered after deletion.",tip2:"You will no longer be able to publish new versions to the deleted Blocklet, which means that the Blocklet will not be updated in the Store anymore.",tip3:"Deleting the Blocklet will not affect its currently published version in the Store."},saveDraft:"Save Draft",releaseNote:"Release Note",errorTip:{noDid:"Blocklet DID is required",noFirstDid:"Please create Blocklet DID first",noTitle:"Blocklet Title is required",noVersion:"Blocklet Version is required",inValidVersion:"Invalid Blocklet Version",noResource:"Please select upload resource to be included in the blocklet",noDescription:"Blocklet Description is required",noNote:"Release Note is required"},uploadToStoreSuccess:"Blocklet upload to Store successfully, you need publish it in the Store",publishToStoreSuccess:"Blocklet published to Store successfully",connectStoreSuccess:"Blocklet Store connected successfully"}},dashboard:{nodeDid:"Node",ownerDid:"Owner",routingEngine:"Routing Engine",ownerNftURL:"Owner NFT",expirationLeft:"Expiration Left",startFromCrashTip:"Blocklet Server did not exit normally last time, please manually start the blocklets that needs to be run.",runtimeConfig:{blockletMaxMemoryLimit:"Blocklet Max Memory Limit",daemonMaxMemoryLimit:"Server Max Memory Limit",proxyMaxMemoryLimit:"Event Bus Max Memory Limit"}},store:{nameSort:"Name",popularSort:"Popularity",headerDescription:"Find and Install Your Blocklets",detail:{purchase:"Purchase {name}",open:"Open {name}",install:"Install {name}",upgrade:"Upgrade {name}",empty:"No introduction"},tooltip:{upgradeServer:"Blocklet requires Blocklet Server version {version}, current Blocklet Server version is {serverVersion}"},blockletRegistry:{changeFailed:"Change Blocklet Store Failed: ",addFailed:"Add Blocklet Store Failed: ",editFailed:"Edit Blocklet Store Failed: ",switchRegistry:"Switch Blocklet Store",addRegistry:"Add Blocklet Store",editRegistry:"Edit Blocklet Store",deleteRegistry:"Delete Blocklet Store",haveSameRegistry:"The same blocklet store exists",registryName:"Blocklet Store Name",registryUrl:"Blocklet Store URL",registryNameEmpty:"Blocklet Store name cannot be empty",registryUrlEmpty:"Blocklet store url cannot be empty",deleteDesc:'Confirm Delete blocklet store {name} ?<br/><span style="color: {color}">*After removing this blocklet store, you cannot update the apps installed from this blocklet store unless you add them again.</span>',confirmDesc:"Please input {name} to delete"},purchase:{title:"Purchase {name}",confirmed:"Your blocklet purchase NFT is verified",declined:"You do not provided valid the blocklet purchase NFT",waiting:"Waiting for purchase complete...",purchase:{title:"Purchase NFT",description:"Pay some token before installing this blocklet if you have not purchased this blocklet"},verify:{title:"Verify NFT",description:"Your NFT will be verified before installing this blocklet if you have purchased and hold the purchase NFT in your DID Wallet",auth:{title:"Purchase Credential Required",scan:"Connect DID Wallet to provide blocklet purchase NFT",confirm:"Review this operation on your DID Wallet",success:"Your purchase NFT is verified, and installing has started"}},auth:{title:"Purchase {name}",scan:"Scan following QRCode with your DID Wallet",confirm:"Confirm on your DID Wallet",success:"Purchase NFT sent to your DID Wallet"},launch:"Launch {name}",autoLaunch:"{name} successfully purchased, redirecting to launch page..."}},setting:{saveSuccess:"Settings Saved Successfully",unSavedTip:'There are unsaved changes, please click "Save Changes" to save them.',unSavedLeaveTip:"There are unsaved changes, are you sure to leave the page?",form:{name:"Name Your Server",nameRequired:"Server description is required",namePlaceholder:"Server Name",description:"Describe Your Server",descriptionHolder:"Server Description",descriptionRequired:"Server description is required",domain:"Your Server Domain Name",domainPlaceholder:"Server Domain Name",domainRequired:"Server domain is required",ipPlaceholder:"IP",ipRequired:"IP is required",registry:"Blocklet Store",registryPlaceholder:"Blocklet store to fetch blocklets",registryRequired:"Blocklet store is required ",registerUrl:"Blocklet Launcher URL",registerUrlPlaceholder:"Input the URL of your preferred Blocklet Launcher, you can use the official one safely",webWalletUrl:"DID Wallet URL",webWalletUrlPlaceholder:'Please input the URL of your hosted "DID Wallet", you can use the official one safely',nftDomainUrl:"NFT Domain URL",nftDomainUrlPlaceholder:'Please input the URL of your hosted "NFT Domain", you can use the official one safely',enableWelcomePage:"Enable welcome page",welcome:{switchLabel:"Welcome Page"},security:{switchLabel:"File System Isolation",switchTips:"After disabling this option, the file system of the Blocklet will no longer be in isolation, which may pose a risk of malicious software damaging the file system.",warningTips:"The file system isolation feature cannot take effect. Please upgrade the node.js version (current version is {version}) to v21.6.0 or higher."},docker:{switchLabel:"Blocklets run in containers",switchTips:"After enabling this option, all blocklets will be run in Docker containers, which can improve the server's overall security.",notInstalled:"Can not enable container mode because docker is not installed or the current user has insufficient permission to run docker",needCloseFileSystemIsolation:"File system isolation and docker container mode runtime cannot be enabled at the same time"},upgrade:{title:"Upgrade Blocklet Server to {version}",description:"During the upgrade, your Blocklet Server will enter maintenance mode for a few minutes while the update is completed.",dialog:'Click on "confirm" to install the update. Blocklet Server will enter maintenance mode until the update is completed and return to production mode automatically.',confirm:"Upgrade",switchLabel:"Auto Update Check",enableBetaRelease:"Enable Beta Release",setup:"Preparing the upgrade",installing:"Installing Blocklet Server v{version}",restarting:"Restarting Blocklet Server",cleanup:"Migrating Blocklet Server data",verifying:"Verifying Blocklet Server v{version}",rollback:"Rollback Blocklet Server",complete:"Upgrade complete!",progress:"Upgrading {name}",check:"Check for Updates",latest:"You are running the latest version."},restart:{title:"Restart Blocklet Server",description:"During the restarting, your Blocklet Server will enter maintenance mode while the restart is completed.",dialog:'Click on "confirm" to restart. Blocklet Server will enter maintenance mode until the restart is completed and return to production mode automatically.',confirm:"Restart",setup:"Preparing the restart",verifying:"Verifying Blocklet Server",restarting:"Restarting Blocklet Server",cleanup:"Ensure everything is OK",rollback:"Cleanup the dirty state",complete:"Maintain complete!",progress:"Restarting {name}"},register:{titleAdded:"Added to Blocklet Launcher",title:"Add to Blocklet Launcher",description:"Once added, you can launch blocklets to this blocklet server from {url}.",descriptionOnAdded:"you can launch blocklets to this blocklet server from {url}.",btn:"Add",update:"Update",added:"Added",addSucceed:"Add succeed",updateSucceed:"Update succeed",detecting:"Detecting",timeout:"Detection timeout, please check if the blocklet launcher is started"},monitor:{diskThreshold:"Send alert when disk usage exceeds (%)",diskThresholdPlaceholder:"Please set the disk usage alert threshold"}},accessKey:{accessKeyId:"ACCESS KEY",lastUsed:"Last Used At",tip:"Please enter a name for this access key for future reference:",saveSecretTip:"This is the only time that your Access Secret key can be viewed and cannot be recovered. However, you can create new access keys at any time",iKnow:"I have copied and saved the Access Secret",showSecret:"Show Secret Access Key",hideSecret:"Hide Secret",title:"Delete Access Key",descriptionNoTime:"This will permanently delete the access key {key} with name {name}, which is (never used before)",description:"This will permanently delete access key {key} with name {name}, which is (last used on {time}, {timeAge})",confirm_desc:"Please input {name} to delete",remark:"Access Key Name",remarkInvalid:"Access Key Name is required"},webhook:{add:"Add Integration",delTitle:"Delete Integration",requiredError:"Please provide a valid {type}",confirm_desc:"Please input {name} to delete",test:"Test",description:"This will permanently delete integration with ID {id}",columns:{description:"ID",params:"Params",createdAt:"createdAt"}}},notification:{title:"Activities",empty:"No activities yet",viewAll:"View All",showRead:"Show Read",markAllAsRead:"Mark All as Read",markAsRead:"Mark As Read",proceed:"Proceed",checkingForUpdates:"Checking for updates...",installComponentError:"Not found uninstalled component {name}",installingComponent:"Installing component {name}",pushKit:{enable:"Enable PushKit notification",endpoint:"PushKit endpoint",endpointInvalid:"PushKit endpoint is invalid URL",testSuccess:"Test PushKit send successfully",testFailed:"Test PushKit send failed",testReceiver:"PushKit receiver",testSend:"Test push-kit send",inputTestReceiver:"Please input test receiver did",receiverRequired:"PushKit receiver is required",pushPath:"Api path for push-kit (default /api/push)",did:"PushKit Blocklet DID",customOptions:"Custom Options"},email:{enable:"Enable email notification",from:"Email sender",host:"SMTP server host",port:"SMTP server port",user:"SMTP server username",secure:"Enable secure connection",password:"SMTP server user password",fromRequired:"Email sender is required",fromInvalid:"Email sender is invalid",receiverRequired:"Email receiver is required",receiverInvalid:"Email receiver is invalid",hostRequired:"SMTP server host is required",hostInvalid:"SMTP server host is invalid",portRequired:"SMTP server port is required",portInvalid:"SMTP server port is invalid, port should be between 1 and 65535",userRequired:"SMTP server username is required",passwordRequired:"SMTP server user password is required",testSuccess:"Test email send successfully",testFailed:"Test email send failed",testReceiver:"Email receiver",testSendEmail:"Test email send",inputTestReceiver:"Please input test receiver email",disable:"Unsubscribe email notification",disableDescription:"After unsubscribe, you will no longer receive email notifications. To receive email notifications, you can subscribe it again on this page.",unsubscribe:"Unsubscribe email notification",unsubscribeDescription:"After unsubscribe, you will no longer receive any email notifications.",subscribe:"subscribe",subscribeDescription:"To receive email notifications, you can subscribe it again on settings page."},comingSoon:"More notification channel are under construction",unsubscribe:"Unsubscribe",unsubscribeSucceed:"Unsubscribe succeeded",unsubscribeFailed:"Unsubscribe failed",unsubscribeTokenRequired:"Unsubscribe token in required",unsubscribeTokenExpired:"Unsubscribe token is expired",unsubscribeTokenInvalid:"Unsubscribe token is invalid"},router:{routerSetting:"Domains & URLs",certSetting:"SSL Certificates",defaultSite:"Default",urlHelperText:"URL that do not start with HTTP/HTTPS are considered relative paths",empty:"Click on Actions to setup URL Mapping",healthy:{ok:"Blocklet or service is running",error:"Blocklet or service is not running or not installed"},service:{select:"Select Blocklet Services (Optional)",what:"Blocklet Services are pipelines executed against the request before redirecting to upstream blocklet"},nonProvider:{title:"Engine Change Warning",description:"If you change engine to none, your current page may not work properly because the previous engine will be stopped, are you sure to continue?",confirm:"I understand, continue"},validation:{urlRequired:"URL is required",redirectCodeRequired:"Redirect code is required",didRequired:"Blocklet is required",pathPrefixTooLong:"The URL Prefix cannot exceed {length} characters",pathPrefixCannotBeEmpty:"The URL Prefix cannot be empty",domainRequired:"Server domain is required",invalidUrl:"Please provide a valid URL",pathPrefixRequired:"URL prefix is required",redirectUrlRequired:"Redirect URL is required",rewriteUrlRequired:"Rewrite URL is required"},domain:{addSite:"Add Site",validate:{emptyTip:"Site domain cannot be empty",suffixTip:"Site domain cannot include {suffix}"},add:{title:"Add Domain Name",description:"Please provide a valid domain name",confirm:"Add",cancel:"Cancel",blocklet:"Select Blocklet",redirect:"Where to redirect the traffic?",port:"What port does your request handler need to listen to?",portTip:"This defaults to the main port of request handler, you can customize this",type:"Traffic Handler",component:"Select Component",pageGroup:"Page Group",pageGroupTip:"This component can render any group of pages listed above, leave empty to render all pages"},update:{title:"Update Site Domain",label:"Site Domain",description:"Please provide a valid site domain"},setup:{tipStart:"Add the DNS records for the domain",tipEnd:"as per the following guidelines",recordType:"Record Type",recordValue:"Record Value"},verify:{ok:"The domain resolution is normal",notResolved:"This domain neither resolved nor accessible, please check your DNS configuration"},https:{ok:"This domain has https enabled",bad:"This domain has not enabled https"},delete:{title:"Delete Site",description:'By confirming, you will delete your existing "{name}" site. Type "{name}" below and select Delete to complete the change, or select Cancel if you want to leave your site',confirm_desc:"Please input {name} to confirm"}},domainAlias:{nftDomain:"Automatic config with DID Domain",showTipHint:"How do I configure domain name resolution?",add:{title:"Add Additional Domain",domainDescription:"Please provide a valid domain name",forceTip:"Force add if domain name already exists",helperText:"If an HTTP or HTTPS URL is entered, it will be automatically converted into a domain name.",isDidDomainError:"This domain is a DID Domain. Please add it using the method for automatic domain configuration."},addCustomDomain:{name:"Custom Domain"},addDomainNFT:{showNFT:"Configure domain automatically",tips:"You can enter a domain purchased from DID Domain. If a DID Domain is detected, you must present the DID Domain NFT to continue.",connect:{title:"Please show your Domain NFT",scan:"Scan following QR code with DID Wallet to authorize to blocklet to use your domain",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"},buyTip:"DID Domain will do the domain name resolution automatically, no need to configure it manually, and the application will update the resolution record of the domain name automatically when needed. If your don't have DID Domain NFT yet, ",buy:"buy it now!"},delete:{title:"Delete",description:"After removing a domain alias, access to that alias may not be handled properly."}},domainSecurity:{title:"Domain Security",cors:{title:"Allowed CORS Domains",description:'Domain list that can send cross origin requests to {name}, comma separated, use "*" to allow anyone, which is not recommended',domainInvalid:"Please input a valid list of domain names"}},rule:{add:{title:"Add URL Mapping",confirm:"Add",pathPrefix:"What's the URL Prefix?",pathPrefixTip:"If you set prefix to '/my-prefix', then all requests that begins with that prefix will be routed to the configured blocklet",blocklet:"Which Blocklet will be handling those requests?",port:"Which port of the blocklet will be handling requests?",portTip:"This defaults to the main port of blocklet, if your blocklet listens on multiple ports, you can customize this",responseType:"Response Type",responseBody:"Response Content",responseBodyTip:"Paste your response content here, should not exceed 4096 characters",responseBodyRequired:"Response content can not be empty"},delete:{title:"Delete URL Mapping",description:'By confirming, you will delete your existing "{name}" URL Mapping. Type "{name}" below and select Delete to complete the change, or select Cancel if you want to leave your URL Mapping.',confirm_desc:"Please input {name} to delete",cancel:"Cancel"},update:{title:"Update URL Mapping",confirm:"Yes, Update",cancel:"Cancel"}},cert:{name:"Certificate Name",domain:"Domain Name",action:"Action",commonName:"Common Name",boundDomains:"Domains",source:"Source",expired:"Expired",leftDays:" days left",issuedOn:"Issued On",expiryOn:"Expiry On",fingerprintAlg:"Fingerprint Algorithm",validityPeriod:"Validity Period",matchedSites:"Matched Sites",upload:"Manual Upload",publicCertHelperText:"Public certificates can be downloaded",nonPublicCertHelperText:"Non-public certificates cannot be downloaded",protectedCertHelperText:"Protected certificates cannot be edited",unprotectedCertHelperText:"Unprotected certificates can be edited",issuing:"Certificate being generated",sourceTypes:{upload:"Manual Upload",lets_encrypt:"Let's Encrypt"},table:{nodata:"No data"},delete:{title:"Delete Certificate",description:"Confirm delete certificate of domain {domain}? Deleting it may affect related services. Please confirm it's safe before proceeding with the deletion.",confirm:"Confirm"},nginx:{title:"Update Certificate",titleAdd:"Add Certificate",pem:"SSL Certificate File",pemTip:'Please drop your server certificate file here, it should ends with ".pem" or ".crt"',key:"Private Key File",keyTip:'Please drop your server private key file here, it should ends with ".pem" or ".key"',confirm:"Save",cancel:"Cancel",invalidFile:"You have selected an invalid file",empty:"No file selected yet",source:"Source",sourceTypes:{upload:"Manual Upload",lets_encrypt:"Let's Encrypt"}},detail:{title:"Certificate Details"},genLetsEncryptCert:{title:"Generate Let's Encrypt certificate",dnsTip:"Please make sure the domain name has point to the current Blocklet Server.",description:"Adding a certificate will make the service more secure, and Blocklet Server will automatically renew the certificate before it expires."}},gateway:{reqLimit:{status:{true:"Enabled",false:"Disabled"},switchLabel:"Request Limit",rate:"Request Limit({rate} Request/Second)",ipHeaderLabel:"Customize client IP header(Optional)",ipHeaderDesc:"If the Blocklet Server is running behind some proxies, you can set the header of the client's real IP here. Optional, leave empty to use default."},cacheEnabled:{switchLabel:"Enable Gateway Cache"}}},noMatch:{desc:"We can't find the page that you're looking for"},health:{connectionErrorTip:"Blocklet Server can't connect to the network, please check if Blocklet Server has been stopped or there is a network issue",connectionRecoveryTip:"Blocklet Server connectivity has been recovered",connectionStoppedTip:"Blocklet Server has been stopped",wrongAccessUrlTip:"Blocklet Server access address is wrong, please use the correct access address"},debug:{title:"Your Blocklet Server is up and running!"},team:{add:"Add New",invite:{action:"Invite New",setting:"Invite Settings",enabled:"Allow any user to invite new user to this blocklet",disabled:"Only owner/admin can invite new user to this blocklet",inviter:"Invited By"},member:{name:"Name",passport:"Passport",passports:"Passports",lastLogin:"Last Login",lastLoginIp:"Last Login IP",openProfile:"View Profile",source:"Register Source",source_derived:"Derived from oauth",source_wallet:"DID Wallet",filter:"Filter by",blockAccess:"Block Access",blockAccessDescription:"The user will not be able to connect to this application",allowAccess:"Allow Access",allowAccessDescription:"The user will be able to connect to this application",updateRole:"Update Role",removeUser:"Remove User",removeUserDescription:'Confirm remove user "{did}" and all its related data (connected accounts, passports, login sessions, etc.)? This action cannot be undone.',removeUserSuccess:"User removed successfully",revokePassport:"Revoke Passport",revokePassportDescription:"Once the passport is revoked, the passport holder can not use it to login again, are you sure to continue?",enablePassport:"Enable Passport",enablePassportDescription:"Once the revoked passport is enabled again, the passport holder can use it to login again, are you sure to continue?",passportPermissionTitle:"The passport has the following permissions:",search:"Search Member",onlyApprovedMember:"Show Approved Only",inviteDialog:{createInviteLink:"Generate Invitation Link",createSuccessTip:"The invitation link is successfully created, click to copy and send the link to the invited member, please note that this invitation link can not be reused and will expire on {expireDate}"},error:{passportEmpty:"Passport should not be empty"},connectedAccounts:"Connected Accounts",connections:"Connections",federated:"Federated",switch:{did:"Switch DID",profile:"Switch Profile",passport:"Switch Passport"},settings:{notification:"Notifications",email:"Send email to me when some events happen",wallet:"Send notification to my wallet when some events happen",phone:"Send text message to me when some events happen",webhook:"Webhooks",add:"Add new webhook",url:"Custom URL",slack:"Slack Webhook",tested:"Test message sent"},activeUserSessions:"Active User Sessions",forceLogout:"Force logout",forceLogoutDescription:"Confirm to force logout this user?"},transferNode:{name:"Transfer Ownership",inviteDialog:{title:"Transfer Blocklet Server",tips:{progress:"Transfer the server needs to be accepted by the receiver to complete the transfer operation, and once the receiver accepts it, you cannot log in to the server with the current passport again.",newOwnerPermissions:"The new Owner will have the right to manage all operations such as members, passports, and Blocklets.",revoke:'If you want to withdraw the transfer invitation, you can delete the invitation link in the "Team -> Members -> Inviting" page.'},createInviteLink:"Generate Invitation Link",createSuccessTip:"The invitation link is successfully created, click to copy and send the link to the invited member, please note that this invitation link can not be reused and will expire on {expireDate}"},delegateDialog:{title:"Authorize Required",scan:"Scan following QR code with DID Wallet to authorize server to transfer server ownership NFT.",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"}},transferApp:{name:"Transfer Ownership",transferDialog:{title:"Transfer Application",tips:{progress:"Transfer the application needs to be accepted by the receiver to complete the transfer operation, and once the receiver accepts it, you cannot log in to the application with the current passport again.",newOwnerPermissions:"The new Owner will have the right to manage all operations such as members, passports, and settings."},createTransferLink:"Generate Transfer Link",createSuccessTip1:'The transfer link is successfully created, the invitee must use <a style="color: rgb(29, 193, 199)" target="_blank" href="https://www.didwallet.io/">DID Wallet</a> to receive the app ownership',createSuccessTip2:"Please click to copy and send the link to the invited member, please note that this transfer link can not be reused and will expire on {expireDate}. Your transfer link will only be shown once and will not be viewable again after closing this dialog",createSuccessTip3:"After the transfer is successful, the application will automatically restart to make the changes take effect",link:"Transfer Link",iKnow:"I have copied and saved the link"},connectDialog:{title:"Authorize Required",scan:"Scan following QR code with DID Wallet to authorize application to transfer ownership.",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"},receiveDialog:{title:"Receive Application Ownership",scan:"Scan following QR code with DID Wallet to receive the application ownership.",confirm:"Confirm on your DID Wallet",success:"Receive Ownership Successfully"},successTitle:"You have become the new owner of this application",visitDashboard:"Visit Application Dashboard"},permission:{create:{title:"Create Permission",description:`Format: <action>_<resource>
|
|
261
|
-
e.g. 'query_user', 'mutate_user'`},delete:{title:"Delete Permission",description:"Confirm delete {name}?"},error:{actionEmpty:"action cannot be empty",resourceEmpty:"resource cannot be empty",permissionTooLong:"permission cannot exceed {length} characters",descriptionTooLong:"description cannot exceed {length} characters"}},passport:{create:{title:"Create Passport",titleTip:"Title cannot be modified after created, recommended within 14 letters"},bind:{title:"Bind Permission",roleTip:"You will get all the permissions of the selected passport after binding",permissionTip:"You will get the selected permissions after binding",transferLeftTitle:"All permissions",transferRightTitle:"Granted permissions"},delete:{title:"Delete Passport",description:"The passports holds by user will lose all permissions after it is deleted. Are you sure to continue?"},error:{titleEmpty:"title cannot be empty",titleTooLong:"title cannot exceed {length} characters",descriptionEmpty:"description cannot be empty"},issuance:{pending:"Pending",create:{title:"Generate Link"},delete:{title:"Delete Receive Link",description:"Confirm delete {link}?"}},issue:"Issue Passport",disableIssuance:"Disable Passport Issuance",enableIssuance:"Enable Passport Issuance",disableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be disabled',enableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be enabled',trustedPassportIssuers:"Trusted Passport Issuers",trustedIssuers:"Trusted Issuers",trustedFactories:"Trusted NFT Collections",trustedFactoriesTip:"Manage trusted NFT Collections that can be used to exchange for a passport",searchFactoryAddress:"Search Collection DID",configFactories:"Config Trusted NFT Collections",configFactoriesTip:"Allow users to exchange NFTs for passport",factoryAddress:"NFT Collection Address",factory404:"NFT Collection not found",factoryAddressTip:"The NFT Collection address must exist on ArcBlock Main Chain",role:"Passport Type",ttl:"Passport Expire Policy",ttlNever:"Never Expire",ttlMint:"From NFT Purchase",ttlExchange:"From Passport Exchange",ttlNeverTip:"The passport will be valid until revoked",ttlMintTip:"The passport will be valid from the time the NFT is purchased until you specified ttl or revoke",ttlExchangeTip:"The passport will be valid from the time user successfully exchanged until you specified ttl or revoke",ttlTip:'"365d" means 365 days, you can also use "30 days" or "24h"',validUntil:"Valid until: {date}",externalPassport:"External Passport",notTrustedIssuerTip:"The passport cannot be used because the issuer is not on the list of trusted issuers",issuerDid:"Issuer DID",addNodeToTrustedIssuers:"Add current server as a trusted passport issuer",revoked:"Revoked",noPermission:"No permission to perform this operation",shouldNotDeleteCurrent:"You can not revoke your passport currently in use",mappingRule:"Mapping rule",defaultRule:"Default rule",search:"Search Passport",searchIssuerDid:"Search Issuer DID",issueBy:"Issue by {name}",configColor:"Config Passport Color",configColorTip:"Customize the color of the passport",color:"Passport Color",description:"Use this passport to connect {teamName} as {title}",displayBuiltin:"Builtin",displayCustom:"Custom",typesTip:"Customize the types of the passport, split by comma",issuanceDate:"Issuance Date: {date}"},inviting:{link:"Invite Link",inviter:"Inviter",delete:{title:"Delete Invite Link",description:"Confirm delete {link}?"},disabledTip:"Invitation is not enabled"},whoCanAccess:{all:{title:"Accessible to all"},owner:{title:"Owner only"},invited:{title:"Invited user only"}}},launcher:{provider:"Provider",adminUrl:"URL"},session:{blockAccess:"You have been blocked from access this server"},launchBlocklet:{appInfo:"Application Information",appInfoDesc:"Confirm the application information",author:"Application Author: {author}",setup:"Setup Blocklet",redirect:"Redirect",alreadyRunning:"Application {name} is already running on this Blocklet Server",alreadyInstalled:"Application {name} is already installed on this Blocklet Server",alreadyExists:"This application already exists, redirecting...",purchased:"Already Purchased",purchase:"Purchase",nextStep:"Next Step",agreement:"License Agreement",agreeAll:"Agree & Continue",installing:"Installing {appName} on {serverName}, it may take minutes to complete, please stay tuned...",redirecting:"{appName} is successfully installed, now starting...",start:"Launching",launch:"Install Blocklet to Server",launchSuccess:"{appName} is successfully launched!",installSuccess:"Blocklet is successfully installed and launched on {serverName}",openInRegistry:"View in Blocklet Store",subTitle:"Ready to install Blocklet {appName} on {serverName}",installingSubTitle:"{appName} installing",access:"Open the application",installRelatedComponents:"Install related Blocklets",viewApplication:"View Application",newVersion:"New Version",newVersionDesc:"The application already exists, but the current version can be upgraded",upgradeNow:"Upgrade Now",later:"Later",introduction:"Introduction",welcome:"Welcome to the Blocklet Launch Wizard",accept:"I agree to the Blocklet EULA",license:"Application License",next:"Agree to the EULA and continue",purchaseApp:"Purchase Blocklet",setupAppDesc:"Initialize your Blocklet",launched:"Complete",confirmInstall:"Confirm Installation",dialog:{title:"Become App Owner",nftFreeDescription:"Please present app space NFT and create app account to continue",nftPaidDescription:"Please present app space NFT and app purchase NFT to continue",freeDescription:"Please create app account to continue",paidDescription:"Please present app purchase NFT and create app account to continue",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully",authorizationTimeout:"Authorization timeout"},waiting:{verifying:"Verifying app meta...",downloading:"Downloading app bundle...",downloadingComponent:"Downloading {name}",extractingComponent:"Extracting {name}",extracting:"Extracting app bundle...",installing:"Installing app components...",installed:"Installed",starting:"Starting the app...",done:"Waiting for app ready..."},error:{loadMetaFailed:"Load app information failed",appMetaNotFound:"No information found for this app",downloadFailed:"Failed to download the app, please try again",installFailed:"Failed to install the app, please try again",startFailed:"Failed to start the app, please try again",launchFailed:"Failed to launch the app, please try again",installedButStopped:"The app is installed successfully, but cannot be started. You can start it manually after resolving blocking issues",installedButError:"The app is successfully installed, but failed to start",restoreFailed:"Failed to restore app, please try again",resourceBlocklet:"This blocklet cannot be launched directly, but you can add it into existing application."},steps:{introduction:"Introduction",installApp:"Install Application",purchaseSpace:"Purchase Space",prepareSpace:"Prepare Space"}},issuePassport:{title:"Receive Passport",description:"Use DID Wallet to receive the passport issued by {name}",dialog:{scan:"Use your DID Wallet to claim the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet",loginWithPassport:"Connect with this Passport",autoClose:"Page will auto close in {seconds}s",autoJump:"Page will auto jump in {seconds}s"}},lostPassport:{title:"Lost Passport",description:"The owner of {name} can scan the QR code to retrieve the passport, members please contact the owner to reissue the passport",dialog:{title:"Recover Passport",scan:"Use your DID Wallet to recover the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet"},return:"Connect with passport",selectPassport:"Select passport",receivePassport:"Receive passport"},invite:{message:"{name} invite you to be the {role} of {dapp}",success:"You have successfully joined {dapp}",receive:"Receive with",validUntil:"Valid until:",viewPermission:"View Permission",emptyPermission:"Empty Permission",open:"Open",description:{step1:"Download and setup your {wallet}",step2:"Click above button to receive passport",step3:"Login in {dapp} with received passport"},transferNFTDialog:{title:"Accept Blocklet Server {name}",scan:"Connect the Launcher to complete the reception of the Blocklet Server.",confirm:"Review this operation on your DID Wallet",success:"Connect successfully, waiting for confirmation of receiving the Server"}},receive:{dialog:{title:"Use your DID Wallet to receive passport",scan:"Connect your DID Wallet to receive passport",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"}},navigation:{navigation:"Navigation",access:"Access",members:"Members",passport:"Passport",analytics:"Analytics",dashboard:"Dashboard",studio:"Studio",blockletService:"Blocklet Service",actionFailed:"Action Failed",form:{title:"Title",titlePlaceholder:"Please input navigation title",titleTooLong:"Title length should small than {len}",icon:"Navigation Icon",iconPlaceholder:"Please input navigation icon",invalidIcon:"Icon is invalid",findMoreIcon:"Find more icons",link:"Link",linkPlaceholder:"Please input navigation link",invalidLink:"Link is invalid",component:"Component",componentPlaceholder:"Please select navigation component",role:"Role",rolePlaceholder:"Please select navigation role",locale:"Locale",localePlaceholder:"Please input locale need to add",localeExists:"{value} is already exists"},action:{add:"Add navigation",addSub:"Add sub navigation",edit:"Edit navigation",hide:"Hide navigation",show:"Show navigation",del:"Delete navigation",new:"New",noAddSub:"Uninstalled component can't add sub navigation",noEdit:"Uninstalled component can't edit",noDel:"Not allowed delete built-in navigation",reset:"Reset",restConfirmTitle:"Do you want to clear all custom navigation?",restConfirmDesc:"After clearing, the navigation will be restored to Blocklet's original default configuration.",resetSuccessful:"Reset successful"}},storage:{spaces:{tips:"Tips",label:"Enter DID Spaces Gateway",connected:{title:"Connected DID Spaces",tag:"Connected"},connectedWithName:"You have successfully connected to {name}",addedWithName:"You have successfully added {name}",connects:"Connect",reconnect:"Reconnect",addressCannotEmpty:"Address cannot be empty",addressNotValid:"{url} is not a valid address",authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"},provideNFT:{title:"Please show the DID Spaces NFT for {appName}",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} show DID space NFT",success:"Connected successfully"},backup:{title:"Backup",records:"Backup Records"},autoBackup:{title:"Auto backup",enabled:"Automatic backup is on",disabled:"Automatic backup is off"},autoCheckUpdate:{title:"Automatically check for new version notification",enabled:"Automatically check for new version is on",disabled:"Automatically check for new version is off"},backupSuccessfully:"Backup successfully",restore:"Restore",restoreSuccessfully:"Restore successfully",gateway:{title:"Gateway",select:"Select a DID Spaces",add:{title:"Add DID Spaces",label:"Enter the url of the DID Spaces",failed:"Add DID Spaces failed",invalidUrl:"Invalid DID Spaces gateway url",duplicate:"DID Space({name}) already exist"},delete:{title:"Delete gateway",succeeded:"Delete DID Spaces{name} Success",failed:"Delete gateway failed",failedForSelected:"Unable to delete a selected DID Spaces"},connect:{title:"Connect DID Spaces",add:"Connect to DID Spaces now",addTips:"You are not connected to any Space yet",switch:"Switch DID Spaces",switchTips:"You are connected to {name}",connected:"Connected"},switch:{failedForMismatchSpace:"Please connect to the correct Space{name}"},connectTo:"Connect to DID Spaces"},strategy:{title:"Backup Strategy",autoBackup:"Auto backup",backupNow:"Backup now",viewBackupFiles:"View backup files"},progress:{title:"Backup progress"},record:{title:"Backup records",emptyData:"No records"},notYet:"You don't have a backup in progress yet...",connect:{now:"Connect now",title:"Connect DID Spaces",provider:"Provide your DID Spaces to start backups",providerForStorage:"Please connect your DID Spaces",useWallet:"Connect with DID Wallet",useWalletReconnect:"Reconnect with DID Wallet",useSpaceGateway:"Connect using the DID Spaces gateway",useSpaceGatewayReconnect:"Reconnect using the DID Spaces gateway",switchToSpace:"Switch to Space",switchToSpaceSucceeded:"Switched to Space{name}",succeeded:"You have successfully connected to DID Spaces",disconnect:"disconnect"},disconnected:{tag:"Disconnected",reconnectNow:"Reconnect Now"}}},log:{lastDays:{1:"Last 1 Day",7:"Last 1 Week"}},oauth:{commonSettings:"Common Settings",save:"Save",saveSuccess:"Save successfully",saveFailed:"Save failed",issued:"Issued",thirdPartyLogin:"Third party login",alreadyBindOAuth:"Already bind third party login",alreadyBindWallet:"Already bind DID Wallet",auth0:{enable:"Enable Auth0 login",domain:"Domain",domainDescription:"Auth0's domain is required",clientId:"Client ID",clientIdDescription:"Auth0 OAuth application client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Auth0 OAuth application Client Secret is required"},github:{enable:"Enable Github login",clientId:"Client ID",clientIdDescription:"Github OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Github OAuth application Client Secret is required"},google:{enable:"Enable Google login",clientId:"Client ID",clientIdDescription:"Google OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Google OAuth application Client Secret is required"},apple:{enable:"Enable Apple login",teamId:"Team ID",teamIdDescription:"Apple OAuth application Team ID is required",serviceId:"Service ID",serviceIdDescription:"Apple OAuth application Service ID is required",keyId:"Key ID",keyIdDescription:"Apple OAuth application Key ID is required",authKey:"Auth Key",authKeyDescription:"Apple OAuth application Auth Key is required",bundleId:"Bundle ID",bundleIdDescription:"Apple OAuth application Bundle ID is required"},comingSoon:"More login methods are under construction",moreLogin:"More Login",federated:"Federated Login",oauth:"Third Party Login",runTest:"Test"},expiration:{mobile:{tips:{success:"{validity}",warning:"{validity}",error:"Expired"},loadFailed:"Retry!"},desktop:{tips:{success:"Subscription will expire after {validity}",warning:"Subscription will expire after {validity}",error:"Subscription Expired"},loading:"Load subscription...",loadFailed:"Failed to load subscription info, please retry!",nextInvoice:"Next Invoice: {date}"}},analytics:{trend:"Trends",detail:"Breakdown",traffic:{totalRequests:"Total Requests",validRequests:"Success Requests",failedRequests:"Failed Requests",uniqueVisitors:"Unique Visitors",uniqueFiles:"Unique URLs",uniqueReferrers:"Unique Referrers",uniqueNotFound:"Unique 404",uniqueStaticFiles:"Unique Static Files",logSize:"Log Size",bandwidth:"Bandwidth"}},federated:{inviteJoinFederatedLogin:"Invite to join federated login",inviteJoinFederatedLoginDescription:"Copy the following address and fill it in the application where you need to join to apply for federated login.",federatedLogin:"Federated login",joinFederatedLogin:"Join federated login",joinFederatedLoginDescription:"Please enter the federated login address provided by Master Blocklet to join the federated login",quitFederatedLogin:"Quit federated login",quitFederatedLoginDescription:"After quit federated login, normal login is always available",federatedJoinAppUrl:"Federated login join appUrl",federatedJoinAppUrlRequired:"Please input federated login join appUrl",failedToGetFederatedLoginAppUrl:"Failed to get federated login join appUrl",federatedJoinAppUrlInvalid:"Federated login appUrl is invalid",siteDetail:"Site detail",approveToJoinLogin:"Approve to join federated login",approve:"Enable login",revoke:"Disable login",enableFederatedLogin:"Enable federated login",disableFederatedLogin:"Disable federated login",enableFederatedLoginDescription:"After enable federated login, this site will be auto login",disableFederatedLoginDescription:"After disable federated login, this site will not be auto login",enableFederatedAutoLogin:"Enable automatic login",enableFederatedAutoLoginDescription:"After enable automatic login, if there is currently a unified login status, the site will automatically log in the identity of the federated login",disableFederatedAutoLogin:"Disable automatic login",disableFederatedAutoLoginDescription:"After the automatic login is turned off, the site will not automatically log in the user information of the unified login, and you can still choose to manually click to log in with the identity of the federated login",info:{appId:"APP DID",appPid:"Permanent ID",migratedFrom:"Also Known As",appName:"Blocklet name",appDescription:"Blocklet description",appUrl:"Blocklet url",appLogo:"Blocklet logo",did:"Blocklet DID",serverId:"Blocklet Server ID",serverVersion:"Blocklet Server version",version:"Blocklet version",appliedAt:"Apply at",status:"Status"},status:{pending:"Pending",approved:"Approved",rejected:"Rejected",revoked:"Revoked"},disbandFederatedLogin:"Disband federated login",disbandFederatedLoginDescription:"After disband federated login, all member site will quit federated login automatically"},optionsOrder:{1:"Option One",2:"Option Two"},securityRule:{title:"Security Rule",sortByDescription:"Sort by matching priority",add:"Add Security Rule",edit:"Edit Security Rule",view:"View Security Rule",form:{precede:"Precede",pathPattern:"Path Pattern",pathPatternPlaceholder:"Please input path pattern",pathPatternErrorText:"Path pattern is invalid",accessPolicyOrResponseHeaderPolicyRequired:"Access Policy or Response Header Policy is required",accessPolicy:"Access Policy",accessPolicyPlaceholder:"Please select access policy",accessPolicyHelperText:"Please select access policy",responseHeaderPolicy:"Response Header Policy",responseHeaderPolicyPlaceholder:"Please select response header policy",responseHeaderPolicyHelperText:"Please select response header policy",remark:"Remark",remarkPlaceholder:"Please input remark",component:"Component",componentPlaceholder:"Please choose component"},delete:{title:"Delete Security Rule ?",description:"After removing a security rule, the rule will no longer take effect"}},responseHeaderPolicy:{title:"Response Header Policy",add:"Add Response Header Policy",edit:"Edit Response Header Policy",view:"View Response Header Policy",form:{name:"Name",namePlaceholder:"Please input name",description:"Description",descriptionPlaceholder:"Please input description",originOverride:"Origin Override",originOverrideHelperText:"Whether to allow the logic in the application to override this response header",cors:{origin:"Origin",originPlaceholder:"Support the following domain formats: http://www.example.com, http://*.example.com, http://www.example.com:8080, * (wildcard is not recommended)",originHelperText:"Domain name starts with http:// or https://, one per line, one wildcard * per line",methods:"Methods",allowedHeaders:"Allowed Headers",allowedHeadersPlaceholder:"It's recommended to fill in *, support multi-line input",allowedHeadersHelperText:"Tell the server which custom HTTP request headers can be used in the next request when sending an OPTIONS request, such as: x-blocklet-version",exposedHeaders:"Exposed Headers",exposedHeadersPlaceholder:"Support multi-line input",exposedHeadersHelperText:"Configure Expose-Headers, for example: X-Content-Range",maxAge:"Max-Age (Seconds)",maxAgeHelperText:"The validity period of the result obtained by the OPTIONS request, which needs to be a positive integer",optionsSuccessStatus:"Options Success Status",preflightContinue:"Preflight Continue",credentials:"Credentials",smartMode:"Smart Mode",smartModeHelperText:"Automatically add all domain names of the current application, as well as all domain names of the federated login site group"}},delete:{title:"Delete Response Header Policy ?",description:"After removing a response header policy, the policy will no longer take effect"}},accessPolicy:{title:"Access Policy",add:"Add Access Policy",edit:"Edit Access Policy",view:"View Access Policy",form:{name:"Name",namePlaceholder:"Please input name",description:"Description",descriptionPlaceholder:"Please input description",roles:"Access Roles",accessType:"Access type"},delete:{title:"Delete Access Policy ?",description:"After removing an access policy, the policy will no longer take effect"}}},en={pageTitle:{login:"Login",dashboard:"Blocklet Dashboard",userCenter:"User Center",invite:"Invite",issuePassport:"Issue Passport",lostPassport:"Lost Passport"},auth:{noPermission:{title:"No Permission",description:"You are not the administrator of the blocklet"}},login:{reLogin:"Reconnect",description:"You must connect your DID Wallet to access {name}",already:"You are connected as",connectWallet:"Connect DID Wallet",closeWindow:"Close window",switchDid:{title:"Switch DID Wallet",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},switchSpecifiedDid:{title:"Switch DID Wallet",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},connect:{title:"Connect DID Wallet",scan:"Connect your DID Wallet to access this application",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"},accessLimit:{title:"Page access restricted ",description:"This page requires the following passports to access, please connect to the wallet to change or apply for the corresponding pass.",alreadyHavePassport:"Already have the passport",connectWithPassport:"Connect with this passport",buyPassport:"buyPassport"},connectWithPassport:"Connect with this passport",needManualClose:"Login success, if this window is not auto closed, please close it.",invalidRedirectUrl:"Invalid redirect url",issueKyc:{verifyTitle:"Verify Your Email Address",issueTitle:"Claim Email Verification NFT",verifyAction:"verifying",issueAction:"claiming",emailPlaceholder:"Your email address",pageDescription:"Complete the verification to secure your account and get a reusable NFT, which can be trusted by other sites (verify once and present everywhere).",issueTarget:"You are {action} for the following DID, click the avatar to add another DID",verifyButton:"Verify",sendCodeButton:"Get Verify Code",codeSentMessage:"We just sent a verification code to {email}, the code will be valid for 30 minutes, please check your inbox or spam folder.",codeSentSuccess:"Verification code sent successfully",claim:"Claim Email Verification NFT",scan:"Connect your DID Wallet to receive the NFT",confirm:"Confirm on your DID Wallet",success:"Congratulations! You have successfully verified your email and claimed the NFT in your DID Wallet.",backToHome:"Back to Home"},updateKyc:{button:"Present NFT",title:"Present Your Email Verification NFT",scan:"Connect your DID Wallet to present the NFT",confirm:"Confirm on your DID Wallet",success:"Congratulations! You NFT is verified and accepted."}},studio:{home:"Studio",preferences:"Preference Builder",branding:"Branding Images",localization:"Localization",ratio:"Ratio",size:"Size",count:"Count",tip:"Tip",change:"Click the logo to change.",order:"Order",orderTip:"drag to change",orderTipLong:"drag to change, if you deleted any screenshot on the disk, please refresh the page."},blocklet:{startApplication:"Start Application",startDescription:"Ready to start {name}",start:"Start",starting:"Starting...",open:"Open",suspended:"Application suspended",terminated:"Application terminated",suspendedCausedByExpired:"This application has been suspended due to payment expiration. Please renew before the {deadline} to resume. Failure to renew within the specified timeframe will result in the inability to renew or resume.",suspendedCausedByTerminated:"The application was terminated due to the cancellation of the subscription, which was canceled on {canceledAt}, and the data will be retained until {deadline}; before the data is deleted, you can back up the data to DID Spaces.",manageSubscription:"Manage Subscription"},setup:{steps:{connect:"Connect",didSpace:"DID Spaces",config:"Configuration",domain:"Domain",access:"Access Control",fuel:"Fuel",complete:"Complete",introduction:"Introduction",selectNodeDesc:"Select Blocklet Server",launchAppDesc:"Install Blocklet to Server",setupAppDesc:"Setup Blocklet",launched:"Complete"},connect:{title:"Connect to Application",scan:"Connect your DID Wallet to provide user profile and the blocklet's Owner privileges, then you can configure and launch the app.",confirm:"Confirm on your DID Wallet",success:"You are connected successfully"},domain:{addTitle:"Add a new domain name (Optional)",title:"Domain Setting",subTitle:"Set a custom domain for the application",label:"Please provide a valid domain name",tipStart:"Please make sure",tipEnd:"has point to the current Server",cannotResolve:"{domain} can not be resolved, please check your DNS configuration",checkingResolvable:"Checking domain status...",addingCert:"Generating certificate...",addingDomain:"Adding domain...",recordType:"Record Type",recordValue:"Record Value",skipStart:"You can",skip:"skip custom domain setting",skipEnd:"and use the default domain to access the application",genCertSuccess:"The {domain} certificate is issued successfully",genCertFailed:"Failed to issue certificate for {domain}: {message}",genCertFailedForNFTDomain:"Added NFT domain successfully, but failed to generate HTTPS certificate, please try again later",resolvedAddressError:"{domain} does not point to the same IP address as {curDomain}",invalidDNSReminder:"{error}. However, you can continue to add the domain, but automatic certificate generation is not available.",continueAdd:"Continue Adding"},didSpace:{title:"Configure DID Spaces",subTitle:"Complete the following connection process to store application data in DID Spaces",tips:"Tips",description:"Configure the DID Spaces instance address and store the application data in DID Spaces after a successful connection",label:"Please select the DID Spaces service",connected:"You have successfully connected to DID Spaces",connect:"Connect Now",reconnect:"Reconnect",addressCannotEmpty:"Address cannot be empty",addressNotValid:"{url} is not a valid address",authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"}},config:{title:"Configuration",subTitle:"Other configuration items (you will also need to set the following items)"},complete:{title:"Everything is Ready",failedTitle:"Failed to start Blocklet",backToServer:"Back to Blocklet Server",notRunning:"Blocklet failed to start on the first shot, please retry"},fuel:{title:"Fuel required to start",tipStart:"slot",tipEnd:" is required for this application to work properly, the fund are saved in the application wallet and can consumed for transaction gas purpose. You can withdraw your balance at any time when you no longer have the app running.",addressTitle:"Application Account",addressTip:"Fuel the application with DID Wallet",need:"Need",current:"Current",fuelApp:"Fuel the application"},title:"Setup",next:"Next",previous:"Previous",continue:"Continue",skip:"Skip",startNow:"Start Now",confirm:"Confirm",cancel:"Cancel"},user:{walletNotification:"DID Wallet notification",emailNotification:"Email notification",smsNotification:"SMS notification",addWebhook:"Add New Webhook"}},translations$9={en:ve(merge$2(en$1,en)),ar:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ar-DwhokVLj.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ar-DulOB4u4.js"),[]).then(j=>j.default)]);return ve(merge$2(...a))},de:async()=>{const a=await Promise.all([__vitePreload(()=>import("./de-CS8qZeoq.js"),[]).then(j=>j.default),__vitePreload(()=>import("./de-8sK7C5VE.js"),[]).then(j=>j.default)]);return ve(merge$2(...a))},es:async()=>{const a=await Promise.all([__vitePreload(()=>import("./es-xG0Pi6Vu.js"),[]).then(j=>j.default),__vitePreload(()=>import("./es-BhEAJBNj.js"),[]).then(j=>j.default)]);return ve(merge$2(...a))},fr:async()=>{const a=await Promise.all([__vitePreload(()=>import("./fr-D_NT6aZ9.js"),[]).then(j=>j.default),__vitePreload(()=>import("./fr-DYb1HdQN.js"),[]).then(j=>j.default)]);return ve(merge$2(...a))},hi:async()=>{const a=await Promise.all([__vitePreload(()=>import("./hi-gQURTn8d.js"),[]).then(j=>j.default),__vitePreload(()=>import("./hi-DeSTVDJm.js"),[]).then(j=>j.default)]);return ve(merge$2(...a))},id:async()=>{const a=await Promise.all([__vitePreload(()=>import("./id-CS1bsZtf.js"),[]).then(j=>j.default),__vitePreload(()=>import("./id-B-ianq_P.js"),[]).then(j=>j.default)]);return ve(merge$2(...a))},ja:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ja-dRhtFh3i.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ja-cd0ntUSZ.js"),[]).then(j=>j.default)]);return ve(merge$2(...a))},ko:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ko-Bf5brKj6.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ko-10uIwv6V.js"),[]).then(j=>j.default)]);return ve(merge$2(...a))},pt:async()=>{const a=await Promise.all([__vitePreload(()=>import("./pt-DT1ewc-i.js"),[]).then(j=>j.default),__vitePreload(()=>import("./pt-BLq3lFAs.js"),[]).then(j=>j.default)]);return ve(merge$2(...a))},ru:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ru-Bu6fUIp5.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ru-ClzjSM6D.js"),[]).then(j=>j.default)]);return ve(merge$2(...a))},th:async()=>{const a=await Promise.all([__vitePreload(()=>import("./th-Dc8W01H6.js"),[]).then(j=>j.default),__vitePreload(()=>import("./th-PReNX1Xn.js"),[]).then(j=>j.default)]);return ve(merge$2(...a))},vi:async()=>{const a=await Promise.all([__vitePreload(()=>import("./vi-CO4j8X-h.js"),[]).then(j=>j.default),__vitePreload(()=>import("./vi-noed91sz.js"),[]).then(j=>j.default)]);return ve(merge$2(...a))},zh:async()=>{const a=await Promise.all([__vitePreload(()=>import("./zh-D3BaPKV5.js"),[]).then(j=>j.default),__vitePreload(()=>import("./zh-BperuRxy.js"),[]).then(j=>j.default)]);return ve(merge$2(...a))},"zh-TW":async()=>{const a=await Promise.all([__vitePreload(()=>import("./zh-tw-18T4kLe_.js"),[]).then(j=>j.default),__vitePreload(()=>import("./zh-tw-B7-6_fNO.js"),[]).then(j=>j.default)]);return ve(merge$2(...a))}};function arrayEach$1(a,j){for(var _e=-1,et=a==null?0:a.length;++_e<et&&j(a[_e],_e,a)!==!1;);return a}var _arrayEach=arrayEach$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$1=_isPrototype,nativeKeys=_nativeKeys,objectProto$7=Object.prototype,hasOwnProperty$b=objectProto$7.hasOwnProperty;function baseKeys$2(a){if(!isPrototype$1(a))return nativeKeys(a);var j=[];for(var _e in Object(a))hasOwnProperty$b.call(a,_e)&&_e!="constructor"&&j.push(_e);return j}var _baseKeys=baseKeys$2,arrayLikeKeys=_arrayLikeKeys,baseKeys$1=_baseKeys,isArrayLike$3=isArrayLike_1;function keys$6(a){return isArrayLike$3(a)?arrayLikeKeys(a):baseKeys$1(a)}var keys_1=keys$6,copyObject$4=_copyObject,keys$5=keys_1;function baseAssign$1(a,j){return a&©Object$4(j,keys$5(j),a)}var _baseAssign=baseAssign$1,copyObject$3=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(a,j){return a&©Object$3(j,keysIn$2(j),a)}var _baseAssignIn=baseAssignIn$1;function arrayFilter$1(a,j){for(var _e=-1,et=a==null?0:a.length,nt=0,tt=[];++_e<et;){var ot=a[_e];j(ot,_e,a)&&(tt[nt++]=ot)}return tt}var _arrayFilter=arrayFilter$1;function stubArray$2(){return[]}var stubArray_1=stubArray$2,arrayFilter=_arrayFilter,stubArray$1=stubArray_1,objectProto$6=Object.prototype,propertyIsEnumerable=objectProto$6.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols$3=nativeGetSymbols$1?function(a){return a==null?[]:(a=Object(a),arrayFilter(nativeGetSymbols$1(a),function(j){return propertyIsEnumerable.call(a,j)}))}:stubArray$1,_getSymbols=getSymbols$3,copyObject$2=_copyObject,getSymbols$2=_getSymbols;function copySymbols$1(a,j){return copyObject$2(a,getSymbols$2(a),j)}var _copySymbols=copySymbols$1;function arrayPush$3(a,j){for(var _e=-1,et=j.length,nt=a.length;++_e<et;)a[nt+_e]=j[_e];return a}var _arrayPush=arrayPush$3,arrayPush$2=_arrayPush,getPrototype=_getPrototype,getSymbols$1=_getSymbols,stubArray=stubArray_1,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols?function(a){for(var j=[];a;)arrayPush$2(j,getSymbols$1(a)),a=getPrototype(a);return j}:stubArray,_getSymbolsIn=getSymbolsIn$2,copyObject$1=_copyObject,getSymbolsIn$1=_getSymbolsIn;function copySymbolsIn$1(a,j){return copyObject$1(a,getSymbolsIn$1(a),j)}var _copySymbolsIn=copySymbolsIn$1,arrayPush$1=_arrayPush,isArray$e=isArray_1;function baseGetAllKeys$2(a,j,_e){var et=j(a);return isArray$e(a)?et:arrayPush$1(et,_e(a))}var _baseGetAllKeys=baseGetAllKeys$2,baseGetAllKeys$1=_baseGetAllKeys,getSymbols=_getSymbols,keys$4=keys_1;function getAllKeys$2(a){return baseGetAllKeys$1(a,keys$4,getSymbols)}var _getAllKeys=getAllKeys$2,baseGetAllKeys=_baseGetAllKeys,getSymbolsIn=_getSymbolsIn,keysIn$1=keysIn_1;function getAllKeysIn$3(a){return baseGetAllKeys(a,keysIn$1,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$3,getNative$5=_getNative,root$7=_root,DataView$2=getNative$5(root$7,"DataView"),_DataView=DataView$2,getNative$4=_getNative,root$6=_root,Promise$2=getNative$4(root$6,"Promise"),_Promise=Promise$2,getNative$3=_getNative,root$5=_root,Set$3=getNative$3(root$5,"Set"),_Set=Set$3,getNative$2=_getNative,root$4=_root,WeakMap$4=getNative$2(root$4,"WeakMap"),_WeakMap=WeakMap$4,DataView$1=_DataView,Map$3=_Map,Promise$1=_Promise,Set$2=_Set,WeakMap$3=_WeakMap,baseGetTag$3=_baseGetTag,toSource$2=_toSource,mapTag$5="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$5="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource$2(DataView$1),mapCtorString=toSource$2(Map$3),promiseCtorString=toSource$2(Promise$1),setCtorString=toSource$2(Set$2),weakMapCtorString=toSource$2(WeakMap$3),getTag$5=baseGetTag$3;(DataView$1&&getTag$5(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$3&&getTag$5(new Map$3)!=mapTag$5||Promise$1&&getTag$5(Promise$1.resolve())!=promiseTag||Set$2&&getTag$5(new Set$2)!=setTag$5||WeakMap$3&&getTag$5(new WeakMap$3)!=weakMapTag$1)&&(getTag$5=function(a){var j=baseGetTag$3(a),_e=j==objectTag$2?a.constructor:void 0,et=_e?toSource$2(_e):"";if(et)switch(et){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$5;case promiseCtorString:return promiseTag;case setCtorString:return setTag$5;case weakMapCtorString:return weakMapTag$1}return j});var _getTag=getTag$5,objectProto$5=Object.prototype,hasOwnProperty$a=objectProto$5.hasOwnProperty;function initCloneArray$1(a){var j=a.length,_e=new a.constructor(j);return j&&typeof a[0]=="string"&&hasOwnProperty$a.call(a,"index")&&(_e.index=a.index,_e.input=a.input),_e}var _initCloneArray=initCloneArray$1,cloneArrayBuffer$1=_cloneArrayBuffer;function cloneDataView$1(a,j){var _e=j?cloneArrayBuffer$1(a.buffer):a.buffer;return new a.constructor(_e,a.byteOffset,a.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(a){var j=new a.constructor(a.source,reFlags.exec(a));return j.lastIndex=a.lastIndex,j}var _cloneRegExp=cloneRegExp$1,Symbol$6=_Symbol,symbolProto$3=Symbol$6?Symbol$6.prototype:void 0,symbolValueOf$1=symbolProto$3?symbolProto$3.valueOf:void 0;function cloneSymbol$1(a){return symbolValueOf$1?Object(symbolValueOf$1.call(a)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=_cloneSymbol,cloneTypedArray=_cloneTypedArray,boolTag$3="[object Boolean]",dateTag$2="[object Date]",mapTag$4="[object Map]",numberTag$3="[object Number]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$3="[object String]",symbolTag$4="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag$1(a,j,_e){var et=a.constructor;switch(j){case arrayBufferTag$2:return cloneArrayBuffer(a);case boolTag$3:case dateTag$2:return new et(+a);case dataViewTag$2:return cloneDataView(a,_e);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(a,_e);case mapTag$4:return new et;case numberTag$3:case stringTag$3:return new et(a);case regexpTag$2:return cloneRegExp(a);case setTag$4:return new et;case symbolTag$4:return cloneSymbol(a)}}var _initCloneByTag=initCloneByTag$1,getTag$4=_getTag,isObjectLike$8=isObjectLike_1,mapTag$3="[object Map]";function baseIsMap$1(a){return isObjectLike$8(a)&&getTag$4(a)==mapTag$3}var _baseIsMap=baseIsMap$1,baseIsMap=_baseIsMap,baseUnary$3=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap$1=nodeIsMap?baseUnary$3(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$3=_getTag,isObjectLike$7=isObjectLike_1,setTag$3="[object Set]";function baseIsSet$1(a){return isObjectLike$7(a)&&getTag$3(a)==setTag$3}var _baseIsSet=baseIsSet$1,baseIsSet=_baseIsSet,baseUnary$2=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet$1=nodeIsSet?baseUnary$2(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack$2=_Stack,arrayEach=_arrayEach,assignValue$2=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer=_cloneBufferExports,copyArray=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys$1=_getAllKeys,getAllKeysIn$2=_getAllKeysIn,getTag$2=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject=_initCloneObject,isArray$d=isArray_1,isBuffer$3=isBufferExports,isMap=isMap_1,isObject$f=isObject_1,isSet=isSet_1,keys$3=keys_1,keysIn=keysIn_1,CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag$2="[object Function]",genTag$2="[object GeneratorFunction]",mapTag$2="[object Map]",numberTag$2="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$2="[object String]",symbolTag$3="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$2]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$2]=cloneableTags[numberTag$2]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$2]=cloneableTags[stringTag$2]=cloneableTags[symbolTag$3]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag$2]=cloneableTags[weakMapTag]=!1;function baseClone$2(a,j,_e,et,nt,tt){var ot,ct=j&CLONE_DEEP_FLAG$2,ft=j&CLONE_FLAT_FLAG$1,ht=j&CLONE_SYMBOLS_FLAG$2;if(_e&&(ot=nt?_e(a,et,nt,tt):_e(a)),ot!==void 0)return ot;if(!isObject$f(a))return a;var dt=isArray$d(a);if(dt){if(ot=initCloneArray(a),!ct)return copyArray(a,ot)}else{var yt=getTag$2(a),Tt=yt==funcTag$2||yt==genTag$2;if(isBuffer$3(a))return cloneBuffer(a,ct);if(yt==objectTag$1||yt==argsTag$1||Tt&&!nt){if(ot=ft||Tt?{}:initCloneObject(a),!ct)return ft?copySymbolsIn(a,baseAssignIn(ot,a)):copySymbols(a,baseAssign(ot,a))}else{if(!cloneableTags[yt])return nt?a:{};ot=initCloneByTag(a,yt,ct)}}tt||(tt=new Stack$2);var St=tt.get(a);if(St)return St;tt.set(a,ot),isSet(a)?a.forEach(function(It){ot.add(baseClone$2(It,j,_e,It,a,tt))}):isMap(a)&&a.forEach(function(It,Ct){ot.set(Ct,baseClone$2(It,j,_e,Ct,a,tt))});var At=ht?ft?getAllKeysIn$2:getAllKeys$1:ft?keysIn:keys$3,Rt=dt?void 0:At(a);return arrayEach(Rt||a,function(It,Ct){Rt&&(Ct=It,It=a[Ct]),assignValue$2(ot,Ct,baseClone$2(It,j,_e,Ct,a,tt))}),ot}var _baseClone=baseClone$2;function last$2(a){var j=a==null?0:a.length;return j?a[j-1]:void 0}var last_1=last$2,baseGet$4=_baseGet,baseSlice=_baseSlice;function parent$1(a,j){return j.length<2?a:baseGet$4(a,baseSlice(j,0,-1))}var _parent=parent$1,castPath$6=_castPath,last$1=last_1,parent=_parent,toKey$6=_toKey;function baseUnset$1(a,j){return j=castPath$6(j,a),a=parent(a,j),a==null||delete a[toKey$6(last$1(j))]}var _baseUnset=baseUnset$1,isPlainObject$1=isPlainObject_1;function customOmitClone$1(a){return isPlainObject$1(a)?void 0:a}var _customOmitClone=customOmitClone$1,Symbol$5=_Symbol,isArguments$4=isArguments_1,isArray$c=isArray_1,spreadableSymbol=Symbol$5?Symbol$5.isConcatSpreadable:void 0;function isFlattenable$1(a){return isArray$c(a)||isArguments$4(a)||!!(spreadableSymbol&&a&&a[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush=_arrayPush,isFlattenable=_isFlattenable;function baseFlatten$3(a,j,_e,et,nt){var tt=-1,ot=a.length;for(_e||(_e=isFlattenable),nt||(nt=[]);++tt<ot;){var ct=a[tt];j>0&&_e(ct)?j>1?baseFlatten$3(ct,j-1,_e,et,nt):arrayPush(nt,ct):et||(nt[nt.length]=ct)}return nt}var _baseFlatten=baseFlatten$3,baseFlatten$2=_baseFlatten;function flatten$2(a){var j=a==null?0:a.length;return j?baseFlatten$2(a,1):[]}var flatten_1=flatten$2;const flatten$3=getDefaultExportFromCjs$1(flatten_1);var flatten$1=flatten_1,overRest=_overRest,setToString=_setToString;function flatRest$2(a){return setToString(overRest(a,void 0,flatten$1),a+"")}var _flatRest=flatRest$2,arrayMap$4=_arrayMap,baseClone$1=_baseClone,baseUnset=_baseUnset,castPath$5=_castPath,copyObject=_copyObject,customOmitClone=_customOmitClone,flatRest$1=_flatRest,getAllKeysIn$1=_getAllKeysIn,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,omit=flatRest$1(function(a,j){var _e={};if(a==null)return _e;var et=!1;j=arrayMap$4(j,function(tt){return tt=castPath$5(tt,a),et||(et=tt.length>1),tt}),copyObject(a,getAllKeysIn$1(a),_e),et&&(_e=baseClone$1(_e,CLONE_DEEP_FLAG$1|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG$1,customOmitClone));for(var nt=j.length;nt--;)baseUnset(_e,j[nt]);return _e}),omit_1=omit;const omit$1=getDefaultExportFromCjs$1(omit_1);var assignValue$1=_assignValue,castPath$4=_castPath,isIndex$2=_isIndex,isObject$e=isObject_1,toKey$5=_toKey;function baseSet$2(a,j,_e,et){if(!isObject$e(a))return a;j=castPath$4(j,a);for(var nt=-1,tt=j.length,ot=tt-1,ct=a;ct!=null&&++nt<tt;){var ft=toKey$5(j[nt]),ht=_e;if(ft==="__proto__"||ft==="constructor"||ft==="prototype")return a;if(nt!=ot){var dt=ct[ft];ht=et?et(dt,ft,ct):void 0,ht===void 0&&(ht=isObject$e(dt)?dt:isIndex$2(j[nt+1])?[]:{})}assignValue$1(ct,ft,ht),ct=ct[ft]}return a}var _baseSet=baseSet$2,baseGet$3=_baseGet,baseSet$1=_baseSet,castPath$3=_castPath;function basePickBy$2(a,j,_e){for(var et=-1,nt=j.length,tt={};++et<nt;){var ot=j[et],ct=baseGet$3(a,ot);_e(ct,ot)&&baseSet$1(tt,castPath$3(ot,a),ct)}return tt}var _basePickBy=basePickBy$2;function baseHasIn$1(a,j){return a!=null&&j in Object(a)}var _baseHasIn=baseHasIn$1,castPath$2=_castPath,isArguments$3=isArguments_1,isArray$b=isArray_1,isIndex$1=_isIndex,isLength=isLength_1,toKey$4=_toKey;function hasPath$1(a,j,_e){j=castPath$2(j,a);for(var et=-1,nt=j.length,tt=!1;++et<nt;){var ot=toKey$4(j[et]);if(!(tt=a!=null&&_e(a,ot)))break;a=a[ot]}return tt||++et!=nt?tt:(nt=a==null?0:a.length,!!nt&&isLength(nt)&&isIndex$1(ot,nt)&&(isArray$b(a)||isArguments$3(a)))}var _hasPath=hasPath$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$2(a,j){return a!=null&&hasPath(a,j,baseHasIn)}var hasIn_1=hasIn$2,basePickBy$1=_basePickBy,hasIn$1=hasIn_1;function basePick$1(a,j){return basePickBy$1(a,j,function(_e,et){return hasIn$1(a,et)})}var _basePick=basePick$1,basePick=_basePick,flatRest=_flatRest,pick$1=flatRest(function(a,j){return a==null?{}:basePick(a,j)}),pick_1$1=pick$1;const pick$2=getDefaultExportFromCjs$1(pick_1$1);var baseClone=_baseClone,CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(a){return baseClone(a,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var cloneDeep_1=cloneDeep;const cloneDeep$1=getDefaultExportFromCjs$1(cloneDeep_1);function isUndefined$1(a){return a===void 0}var isUndefined_1=isUndefined$1;const isUndefined$2=getDefaultExportFromCjs$1(isUndefined_1);var baseMerge$1=_baseMerge,isObject$d=isObject_1;function customDefaultsMerge$1(a,j,_e,et,nt,tt){return isObject$d(a)&&isObject$d(j)&&(tt.set(j,a),baseMerge$1(a,j,void 0,customDefaultsMerge$1,tt),tt.delete(j)),a}var _customDefaultsMerge=customDefaultsMerge$1,baseMerge=_baseMerge,createAssigner=_createAssigner,mergeWith$1=createAssigner(function(a,j,_e,et){baseMerge(a,j,_e,et)}),mergeWith_1=mergeWith$1,apply$2=_apply,baseRest$3=_baseRest,customDefaultsMerge=_customDefaultsMerge,mergeWith=mergeWith_1,defaultsDeep=baseRest$3(function(a){return a.push(void 0,customDefaultsMerge),apply$2(mergeWith,void 0,a)}),defaultsDeep_1=defaultsDeep;const defaultsDeep$1=getDefaultExportFromCjs$1(defaultsDeep_1);var eventemitter3$1={exports:{}};(function(a){var j=Object.prototype.hasOwnProperty,_e="~";function et(){}Object.create&&(et.prototype=Object.create(null),new et().__proto__||(_e=!1));function nt(ft,ht,dt){this.fn=ft,this.context=ht,this.once=dt||!1}function tt(ft,ht,dt,yt,Tt){if(typeof dt!="function")throw new TypeError("The listener must be a function");var St=new nt(dt,yt||ft,Tt),At=_e?_e+ht:ht;return ft._events[At]?ft._events[At].fn?ft._events[At]=[ft._events[At],St]:ft._events[At].push(St):(ft._events[At]=St,ft._eventsCount++),ft}function ot(ft,ht){--ft._eventsCount===0?ft._events=new et:delete ft._events[ht]}function ct(){this._events=new et,this._eventsCount=0}ct.prototype.eventNames=function(){var ht=[],dt,yt;if(this._eventsCount===0)return ht;for(yt in dt=this._events)j.call(dt,yt)&&ht.push(_e?yt.slice(1):yt);return Object.getOwnPropertySymbols?ht.concat(Object.getOwnPropertySymbols(dt)):ht},ct.prototype.listeners=function(ht){var dt=_e?_e+ht:ht,yt=this._events[dt];if(!yt)return[];if(yt.fn)return[yt.fn];for(var Tt=0,St=yt.length,At=new Array(St);Tt<St;Tt++)At[Tt]=yt[Tt].fn;return At},ct.prototype.listenerCount=function(ht){var dt=_e?_e+ht:ht,yt=this._events[dt];return yt?yt.fn?1:yt.length:0},ct.prototype.emit=function(ht,dt,yt,Tt,St,At){var Rt=_e?_e+ht:ht;if(!this._events[Rt])return!1;var It=this._events[Rt],Ct=arguments.length,kt,Pt;if(It.fn){switch(It.once&&this.removeListener(ht,It.fn,void 0,!0),Ct){case 1:return It.fn.call(It.context),!0;case 2:return It.fn.call(It.context,dt),!0;case 3:return It.fn.call(It.context,dt,yt),!0;case 4:return It.fn.call(It.context,dt,yt,Tt),!0;case 5:return It.fn.call(It.context,dt,yt,Tt,St),!0;case 6:return It.fn.call(It.context,dt,yt,Tt,St,At),!0}for(Pt=1,kt=new Array(Ct-1);Pt<Ct;Pt++)kt[Pt-1]=arguments[Pt];It.fn.apply(It.context,kt)}else{var Bt=It.length,Kt;for(Pt=0;Pt<Bt;Pt++)switch(It[Pt].once&&this.removeListener(ht,It[Pt].fn,void 0,!0),Ct){case 1:It[Pt].fn.call(It[Pt].context);break;case 2:It[Pt].fn.call(It[Pt].context,dt);break;case 3:It[Pt].fn.call(It[Pt].context,dt,yt);break;case 4:It[Pt].fn.call(It[Pt].context,dt,yt,Tt);break;default:if(!kt)for(Kt=1,kt=new Array(Ct-1);Kt<Ct;Kt++)kt[Kt-1]=arguments[Kt];It[Pt].fn.apply(It[Pt].context,kt)}}return!0},ct.prototype.on=function(ht,dt,yt){return tt(this,ht,dt,yt,!1)},ct.prototype.once=function(ht,dt,yt){return tt(this,ht,dt,yt,!0)},ct.prototype.removeListener=function(ht,dt,yt,Tt){var St=_e?_e+ht:ht;if(!this._events[St])return this;if(!dt)return ot(this,St),this;var At=this._events[St];if(At.fn)At.fn===dt&&(!Tt||At.once)&&(!yt||At.context===yt)&&ot(this,St);else{for(var Rt=0,It=[],Ct=At.length;Rt<Ct;Rt++)(At[Rt].fn!==dt||Tt&&!At[Rt].once||yt&&At[Rt].context!==yt)&&It.push(At[Rt]);It.length?this._events[St]=It.length===1?It[0]:It:ot(this,St)}return this},ct.prototype.removeAllListeners=function(ht){var dt;return ht?(dt=_e?_e+ht:ht,this._events[dt]&&ot(this,dt)):(this._events=new et,this._eventsCount=0),this},ct.prototype.off=ct.prototype.removeListener,ct.prototype.addListener=ct.prototype.on,ct.prefixed=_e,ct.EventEmitter=ct,a.exports=ct})(eventemitter3$1);var eventemitter3Exports$1=eventemitter3$1.exports;const EventEmitter$6=getDefaultExportFromCjs$1(eventemitter3Exports$1);var pWaitFor$2={exports:{}},pTimeout$3={exports:{}};class TimeoutError extends Error{constructor(j){super(j),this.name="TimeoutError"}}const pTimeout$1=(a,j,_e,et)=>{let nt;const tt=new Promise((ot,ct)=>{if(typeof j!="number"||j<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(j===1/0){ot(a);return}et={customTimers:{setTimeout,clearTimeout},...et},nt=et.customTimers.setTimeout.call(void 0,()=>{if(typeof _e=="function"){try{ot(_e())}catch(dt){ct(dt)}return}const ft=typeof _e=="string"?_e:`Promise timed out after ${j} milliseconds`,ht=_e instanceof Error?_e:new TimeoutError(ft);typeof a.cancel=="function"&&a.cancel(),ct(ht)},j),(async()=>{try{ot(await a)}catch(ft){ct(ft)}finally{et.customTimers.clearTimeout.call(void 0,nt)}})()});return tt.clear=()=>{clearTimeout(nt),nt=void 0},tt};pTimeout$3.exports=pTimeout$1;pTimeout$3.exports.default=pTimeout$1;var TimeoutError_1=pTimeout$3.exports.TimeoutError=TimeoutError,pTimeoutExports=pTimeout$3.exports;const pTimeout$2=getDefaultExportFromCjs$1(pTimeoutExports),pTimeout=pTimeoutExports,pWaitFor=async(a,j)=>{j={interval:20,timeout:1/0,leadingCheck:!0,...j};let _e;const et=new Promise((nt,tt)=>{const ot=async()=>{try{const ct=await a();if(typeof ct!="boolean")throw new TypeError("Expected condition to return a boolean");ct===!0?nt():_e=setTimeout(ot,j.interval)}catch(ct){tt(ct)}};j.leadingCheck?ot():_e=setTimeout(ot,j.interval)});if(j.timeout!==1/0)try{return await pTimeout(et,j.timeout)}catch(nt){throw _e&&clearTimeout(_e),nt}return et};pWaitFor$2.exports=pWaitFor;pWaitFor$2.exports.default=pWaitFor;var pWaitForExports=pWaitFor$2.exports;const pWaitFor$1=getDefaultExportFromCjs$1(pWaitForExports);var createUpdateEffect=function(a){return function(j,_e){var et=reactExports.useRef(!1);a(function(){return function(){et.current=!1}},[]),a(function(){if(!et.current)et.current=!0;else return j()},_e)}},extendStatics=function(a,j){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,et){_e.__proto__=et}||function(_e,et){for(var nt in et)Object.prototype.hasOwnProperty.call(et,nt)&&(_e[nt]=et[nt])},extendStatics(a,j)};function __extends(a,j){if(typeof j!="function"&&j!==null)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");extendStatics(a,j);function _e(){this.constructor=a}a.prototype=j===null?Object.create(j):(_e.prototype=j.prototype,new _e)}var __assign=function(){return __assign=Object.assign||function(j){for(var _e,et=1,nt=arguments.length;et<nt;et++){_e=arguments[et];for(var tt in _e)Object.prototype.hasOwnProperty.call(_e,tt)&&(j[tt]=_e[tt])}return j},__assign.apply(this,arguments)};function __rest(a,j){var _e={};for(var et in a)Object.prototype.hasOwnProperty.call(a,et)&&j.indexOf(et)<0&&(_e[et]=a[et]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,et=Object.getOwnPropertySymbols(a);nt<et.length;nt++)j.indexOf(et[nt])<0&&Object.prototype.propertyIsEnumerable.call(a,et[nt])&&(_e[et[nt]]=a[et[nt]]);return _e}function __decorate(a,j,_e,et){var nt=arguments.length,tt=nt<3?j:et===null?et=Object.getOwnPropertyDescriptor(j,_e):et,ot;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")tt=Reflect.decorate(a,j,_e,et);else for(var ct=a.length-1;ct>=0;ct--)(ot=a[ct])&&(tt=(nt<3?ot(tt):nt>3?ot(j,_e,tt):ot(j,_e))||tt);return nt>3&&tt&&Object.defineProperty(j,_e,tt),tt}function __param(a,j){return function(_e,et){j(_e,et,a)}}function __esDecorate(a,j,_e,et,nt,tt){function ot(Ct){if(Ct!==void 0&&typeof Ct!="function")throw new TypeError("Function expected");return Ct}for(var ct=et.kind,ft=ct==="getter"?"get":ct==="setter"?"set":"value",ht=!j&&a?et.static?a:a.prototype:null,dt=j||(ht?Object.getOwnPropertyDescriptor(ht,et.name):{}),yt,Tt=!1,St=_e.length-1;St>=0;St--){var At={};for(var Rt in et)At[Rt]=Rt==="access"?{}:et[Rt];for(var Rt in et.access)At.access[Rt]=et.access[Rt];At.addInitializer=function(Ct){if(Tt)throw new TypeError("Cannot add initializers after decoration has completed");tt.push(ot(Ct||null))};var It=(0,_e[St])(ct==="accessor"?{get:dt.get,set:dt.set}:dt[ft],At);if(ct==="accessor"){if(It===void 0)continue;if(It===null||typeof It!="object")throw new TypeError("Object expected");(yt=ot(It.get))&&(dt.get=yt),(yt=ot(It.set))&&(dt.set=yt),(yt=ot(It.init))&&nt.unshift(yt)}else(yt=ot(It))&&(ct==="field"?nt.unshift(yt):dt[ft]=yt)}ht&&Object.defineProperty(ht,et.name,dt),Tt=!0}function __runInitializers(a,j,_e){for(var et=arguments.length>2,nt=0;nt<j.length;nt++)_e=et?j[nt].call(a,_e):j[nt].call(a);return et?_e:void 0}function __propKey(a){return typeof a=="symbol"?a:"".concat(a)}function __setFunctionName(a,j,_e){return typeof j=="symbol"&&(j=j.description?"[".concat(j.description,"]"):""),Object.defineProperty(a,"name",{configurable:!0,value:_e?"".concat(_e," ",j):j})}function __metadata(a,j){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,j)}function __awaiter(a,j,_e,et){function nt(tt){return tt instanceof _e?tt:new _e(function(ot){ot(tt)})}return new(_e||(_e=Promise))(function(tt,ot){function ct(dt){try{ht(et.next(dt))}catch(yt){ot(yt)}}function ft(dt){try{ht(et.throw(dt))}catch(yt){ot(yt)}}function ht(dt){dt.done?tt(dt.value):nt(dt.value).then(ct,ft)}ht((et=et.apply(a,j||[])).next())})}function __generator(a,j){var _e={label:0,sent:function(){if(tt[0]&1)throw tt[1];return tt[1]},trys:[],ops:[]},et,nt,tt,ot=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return ot.next=ct(0),ot.throw=ct(1),ot.return=ct(2),typeof Symbol=="function"&&(ot[Symbol.iterator]=function(){return this}),ot;function ct(ht){return function(dt){return ft([ht,dt])}}function ft(ht){if(et)throw new TypeError("Generator is already executing.");for(;ot&&(ot=0,ht[0]&&(_e=0)),_e;)try{if(et=1,nt&&(tt=ht[0]&2?nt.return:ht[0]?nt.throw||((tt=nt.return)&&tt.call(nt),0):nt.next)&&!(tt=tt.call(nt,ht[1])).done)return tt;switch(nt=0,tt&&(ht=[ht[0]&2,tt.value]),ht[0]){case 0:case 1:tt=ht;break;case 4:return _e.label++,{value:ht[1],done:!1};case 5:_e.label++,nt=ht[1],ht=[0];continue;case 7:ht=_e.ops.pop(),_e.trys.pop();continue;default:if(tt=_e.trys,!(tt=tt.length>0&&tt[tt.length-1])&&(ht[0]===6||ht[0]===2)){_e=0;continue}if(ht[0]===3&&(!tt||ht[1]>tt[0]&&ht[1]<tt[3])){_e.label=ht[1];break}if(ht[0]===6&&_e.label<tt[1]){_e.label=tt[1],tt=ht;break}if(tt&&_e.label<tt[2]){_e.label=tt[2],_e.ops.push(ht);break}tt[2]&&_e.ops.pop(),_e.trys.pop();continue}ht=j.call(a,_e)}catch(dt){ht=[6,dt],nt=0}finally{et=tt=0}if(ht[0]&5)throw ht[1];return{value:ht[0]?ht[1]:void 0,done:!0}}}var __createBinding=Object.create?function(a,j,_e,et){et===void 0&&(et=_e);var nt=Object.getOwnPropertyDescriptor(j,_e);(!nt||("get"in nt?!j.__esModule:nt.writable||nt.configurable))&&(nt={enumerable:!0,get:function(){return j[_e]}}),Object.defineProperty(a,et,nt)}:function(a,j,_e,et){et===void 0&&(et=_e),a[et]=j[_e]};function __exportStar(a,j){for(var _e in a)_e!=="default"&&!Object.prototype.hasOwnProperty.call(j,_e)&&__createBinding(j,a,_e)}function __values(a){var j=typeof Symbol=="function"&&Symbol.iterator,_e=j&&a[j],et=0;if(_e)return _e.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&et>=a.length&&(a=void 0),{value:a&&a[et++],done:!a}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(a,j){var _e=typeof Symbol=="function"&&a[Symbol.iterator];if(!_e)return a;var et=_e.call(a),nt,tt=[],ot;try{for(;(j===void 0||j-- >0)&&!(nt=et.next()).done;)tt.push(nt.value)}catch(ct){ot={error:ct}}finally{try{nt&&!nt.done&&(_e=et.return)&&_e.call(et)}finally{if(ot)throw ot.error}}return tt}function __spread(){for(var a=[],j=0;j<arguments.length;j++)a=a.concat(__read(arguments[j]));return a}function __spreadArrays(){for(var a=0,j=0,_e=arguments.length;j<_e;j++)a+=arguments[j].length;for(var et=Array(a),nt=0,j=0;j<_e;j++)for(var tt=arguments[j],ot=0,ct=tt.length;ot<ct;ot++,nt++)et[nt]=tt[ot];return et}function __spreadArray(a,j,_e){if(_e||arguments.length===2)for(var et=0,nt=j.length,tt;et<nt;et++)(tt||!(et in j))&&(tt||(tt=Array.prototype.slice.call(j,0,et)),tt[et]=j[et]);return a.concat(tt||Array.prototype.slice.call(j))}function __await(a){return this instanceof __await?(this.v=a,this):new __await(a)}function __asyncGenerator(a,j,_e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var et=_e.apply(a,j||[]),nt,tt=[];return nt=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),ct("next"),ct("throw"),ct("return",ot),nt[Symbol.asyncIterator]=function(){return this},nt;function ot(St){return function(At){return Promise.resolve(At).then(St,yt)}}function ct(St,At){et[St]&&(nt[St]=function(Rt){return new Promise(function(It,Ct){tt.push([St,Rt,It,Ct])>1||ft(St,Rt)})},At&&(nt[St]=At(nt[St])))}function ft(St,At){try{ht(et[St](At))}catch(Rt){Tt(tt[0][3],Rt)}}function ht(St){St.value instanceof __await?Promise.resolve(St.value.v).then(dt,yt):Tt(tt[0][2],St)}function dt(St){ft("next",St)}function yt(St){ft("throw",St)}function Tt(St,At){St(At),tt.shift(),tt.length&&ft(tt[0][0],tt[0][1])}}function __asyncDelegator(a){var j,_e;return j={},et("next"),et("throw",function(nt){throw nt}),et("return"),j[Symbol.iterator]=function(){return this},j;function et(nt,tt){j[nt]=a[nt]?function(ot){return(_e=!_e)?{value:__await(a[nt](ot)),done:!1}:tt?tt(ot):ot}:tt}}function __asyncValues(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var j=a[Symbol.asyncIterator],_e;return j?j.call(a):(a=typeof __values=="function"?__values(a):a[Symbol.iterator](),_e={},et("next"),et("throw"),et("return"),_e[Symbol.asyncIterator]=function(){return this},_e);function et(tt){_e[tt]=a[tt]&&function(ot){return new Promise(function(ct,ft){ot=a[tt](ot),nt(ct,ft,ot.done,ot.value)})}}function nt(tt,ot,ct,ft){Promise.resolve(ft).then(function(ht){tt({value:ht,done:ct})},ot)}}function __makeTemplateObject(a,j){return Object.defineProperty?Object.defineProperty(a,"raw",{value:j}):a.raw=j,a}var __setModuleDefault=Object.create?function(a,j){Object.defineProperty(a,"default",{enumerable:!0,value:j})}:function(a,j){a.default=j};function __importStar(a){if(a&&a.__esModule)return a;var j={};if(a!=null)for(var _e in a)_e!=="default"&&Object.prototype.hasOwnProperty.call(a,_e)&&__createBinding(j,a,_e);return __setModuleDefault(j,a),j}function __importDefault$b(a){return a&&a.__esModule?a:{default:a}}function __classPrivateFieldGet(a,j,_e,et){if(_e==="a"&&!et)throw new TypeError("Private accessor was defined without a getter");if(typeof j=="function"?a!==j||!et:!j.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return _e==="m"?et:_e==="a"?et.call(a):et?et.value:j.get(a)}function __classPrivateFieldSet(a,j,_e,et,nt){if(et==="m")throw new TypeError("Private method is not writable");if(et==="a"&&!nt)throw new TypeError("Private accessor was defined without a setter");if(typeof j=="function"?a!==j||!nt:!j.has(a))throw new TypeError("Cannot write private member to an object whose class did not declare it");return et==="a"?nt.call(a,_e):nt?nt.value=_e:j.set(a,_e),_e}function __classPrivateFieldIn(a,j){if(j===null||typeof j!="object"&&typeof j!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof a=="function"?j===a:a.has(j)}function __addDisposableResource(a,j,_e){if(j!=null){if(typeof j!="object"&&typeof j!="function")throw new TypeError("Object expected.");var et,nt;if(_e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");et=j[Symbol.asyncDispose]}if(et===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");et=j[Symbol.dispose],_e&&(nt=et)}if(typeof et!="function")throw new TypeError("Object not disposable.");nt&&(et=function(){try{nt.call(this)}catch(tt){return Promise.reject(tt)}}),a.stack.push({value:j,dispose:et,async:_e})}else _e&&a.stack.push({async:!0});return j}var _SuppressedError=typeof SuppressedError=="function"?SuppressedError:function(a,j,_e){var et=new Error(_e);return et.name="SuppressedError",et.error=a,et.suppressed=j,et};function __disposeResources(a){function j(tt){a.error=a.hasError?new _SuppressedError(tt,a.error,"An error was suppressed during disposal."):tt,a.hasError=!0}var _e,et=0;function nt(){for(;_e=a.stack.pop();)try{if(!_e.async&&et===1)return et=0,a.stack.push(_e),Promise.resolve().then(nt);if(_e.dispose){var tt=_e.dispose.call(_e.value);if(_e.async)return et|=2,Promise.resolve(tt).then(nt,function(ot){return j(ot),nt()})}else et|=1}catch(ot){j(ot)}if(et===1)return a.hasError?Promise.reject(a.error):Promise.resolve();if(a.hasError)throw a.error}return nt()}const tslib_es6={__extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator,__createBinding,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault:__importDefault$b,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources},tslib_es6$1=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource,get __assign(){return __assign},__asyncDelegator,__asyncGenerator,__asyncValues,__await,__awaiter,__classPrivateFieldGet,__classPrivateFieldIn,__classPrivateFieldSet,__createBinding,__decorate,__disposeResources,__esDecorate,__exportStar,__extends,__generator,__importDefault:__importDefault$b,__importStar,__makeTemplateObject,__metadata,__param,__propKey,__read,__rest,__runInitializers,__setFunctionName,__spread,__spreadArray,__spreadArrays,__values,default:tslib_es6},Symbol.toStringTag,{value:"Module"}));var isFunction$3=function(a){return typeof a=="function"},isString$3=function(a){return typeof a=="string"},isNumber$2=function(a){return typeof a=="number"},isUndef=function(a){return typeof a>"u"};function useMemoizedFn(a){var j=reactExports.useRef(a);j.current=reactExports.useMemo(function(){return a},[a]);var _e=reactExports.useRef();return _e.current||(_e.current=function(){for(var et=[],nt=0;nt<arguments.length;nt++)et[nt]=arguments[nt];return j.current.apply(this,et)}),_e.current}const useUpdateEffect=createUpdateEffect(reactExports.useEffect);var useAutoRunPlugin=function(a,j){var _e=j.manual,et=j.ready,nt=et===void 0?!0:et,tt=j.defaultParams,ot=tt===void 0?[]:tt,ct=j.refreshDeps,ft=ct===void 0?[]:ct,ht=j.refreshDepsAction,dt=reactExports.useRef(!1);return dt.current=!1,useUpdateEffect(function(){!_e&&nt&&(dt.current=!0,a.run.apply(a,__spreadArray([],__read(ot),!1)))},[nt]),useUpdateEffect(function(){dt.current||_e||(dt.current=!0,ht?ht():a.refresh())},__spreadArray([],__read(ft),!1)),{onBefore:function(){if(!nt)return{stopNow:!0}}}};useAutoRunPlugin.onInit=function(a){var j=a.ready,_e=j===void 0?!0:j,et=a.manual;return{loading:!et&&_e}};function depsAreSame(a,j){if(a===j)return!0;for(var _e=0;_e<a.length;_e++)if(!Object.is(a[_e],j[_e]))return!1;return!0}function useCreation(a,j){var _e=reactExports.useRef({deps:j,obj:void 0,initialized:!1}).current;return(_e.initialized===!1||!depsAreSame(_e.deps,j))&&(_e.deps=j,_e.obj=a(),_e.initialized=!0),_e.obj}function useLatest(a){var j=reactExports.useRef(a);return j.current=a,j}var useUnmount=function(a){var j=useLatest(a);reactExports.useEffect(function(){return function(){j.current()}},[])},cache$2=new Map,setCache=function(a,j,_e){var et=cache$2.get(a);et!=null&&et.timer&&clearTimeout(et.timer);var nt=void 0;j>-1&&(nt=setTimeout(function(){cache$2.delete(a)},j)),cache$2.set(a,__assign(__assign({},_e),{timer:nt}))},getCache=function(a){return cache$2.get(a)},cachePromise=new Map,getCachePromise=function(a){return cachePromise.get(a)},setCachePromise=function(a,j){cachePromise.set(a,j),j.then(function(_e){return cachePromise.delete(a),_e}).catch(function(){cachePromise.delete(a)})},listeners$2={},trigger=function(a,j){listeners$2[a]&&listeners$2[a].forEach(function(_e){return _e(j)})},subscribe$2=function(a,j){return listeners$2[a]||(listeners$2[a]=[]),listeners$2[a].push(j),function(){var et=listeners$2[a].indexOf(j);listeners$2[a].splice(et,1)}},useCachePlugin=function(a,j){var _e=j.cacheKey,et=j.cacheTime,nt=et===void 0?5*60*1e3:et,tt=j.staleTime,ot=tt===void 0?0:tt,ct=j.setCache,ft=j.getCache,ht=reactExports.useRef(),dt=reactExports.useRef(),yt=function(St,At){ct?ct(At):setCache(St,nt,At),trigger(St,At.data)},Tt=function(St,At){return At===void 0&&(At=[]),ft?ft(At):getCache(St)};return useCreation(function(){if(_e){var St=Tt(_e);St&&Object.hasOwnProperty.call(St,"data")&&(a.state.data=St.data,a.state.params=St.params,(ot===-1||new Date().getTime()-St.time<=ot)&&(a.state.loading=!1)),ht.current=subscribe$2(_e,function(At){a.setState({data:At})})}},[]),useUnmount(function(){var St;(St=ht.current)===null||St===void 0||St.call(ht)}),_e?{onBefore:function(St){var At=Tt(_e,St);return!At||!Object.hasOwnProperty.call(At,"data")?{}:ot===-1||new Date().getTime()-At.time<=ot?{loading:!1,data:At==null?void 0:At.data,error:void 0,returnNow:!0}:{data:At==null?void 0:At.data,error:void 0}},onRequest:function(St,At){var Rt=getCachePromise(_e);return Rt&&Rt!==dt.current?{servicePromise:Rt}:(Rt=St.apply(void 0,__spreadArray([],__read(At),!1)),dt.current=Rt,setCachePromise(_e,Rt),{servicePromise:Rt})},onSuccess:function(St,At){var Rt;_e&&((Rt=ht.current)===null||Rt===void 0||Rt.call(ht),yt(_e,{data:St,params:At,time:new Date().getTime()}),ht.current=subscribe$2(_e,function(It){a.setState({data:It})}))},onMutate:function(St){var At;_e&&((At=ht.current)===null||At===void 0||At.call(ht),yt(_e,{data:St,params:a.state.params,time:new Date().getTime()}),ht.current=subscribe$2(_e,function(Rt){a.setState({data:Rt})}))}}:{}},root$3=_root,now$1=function(){return root$3.Date.now()},now_1=now$1,isObject$c=isObject_1,now=now_1,toNumber$2=toNumber_1,FUNC_ERROR_TEXT$4="Expected a function",nativeMax=Math.max,nativeMin$1=Math.min;function debounce$2(a,j,_e){var et,nt,tt,ot,ct,ft,ht=0,dt=!1,yt=!1,Tt=!0;if(typeof a!="function")throw new TypeError(FUNC_ERROR_TEXT$4);j=toNumber$2(j)||0,isObject$c(_e)&&(dt=!!_e.leading,yt="maxWait"in _e,tt=yt?nativeMax(toNumber$2(_e.maxWait)||0,j):tt,Tt="trailing"in _e?!!_e.trailing:Tt);function St(jt){var zt=et,Gt=nt;return et=nt=void 0,ht=jt,ot=a.apply(Gt,zt),ot}function At(jt){return ht=jt,ct=setTimeout(Ct,j),dt?St(jt):ot}function Rt(jt){var zt=jt-ft,Gt=jt-ht,tn=j-zt;return yt?nativeMin$1(tn,tt-Gt):tn}function It(jt){var zt=jt-ft,Gt=jt-ht;return ft===void 0||zt>=j||zt<0||yt&&Gt>=tt}function Ct(){var jt=now();if(It(jt))return kt(jt);ct=setTimeout(Ct,Rt(jt))}function kt(jt){return ct=void 0,Tt&&et?St(jt):(et=nt=void 0,ot)}function Pt(){ct!==void 0&&clearTimeout(ct),ht=0,et=ft=nt=ct=void 0}function Bt(){return ct===void 0?ot:kt(now())}function Kt(){var jt=now(),zt=It(jt);if(et=arguments,nt=this,ft=jt,zt){if(ct===void 0)return At(ft);if(yt)return clearTimeout(ct),ct=setTimeout(Ct,j),St(ft)}return ct===void 0&&(ct=setTimeout(Ct,j)),ot}return Kt.cancel=Pt,Kt.flush=Bt,Kt}var debounce_1=debounce$2;const debounce$3=getDefaultExportFromCjs$1(debounce_1);var useDebouncePlugin=function(a,j){var _e=j.debounceWait,et=j.debounceLeading,nt=j.debounceTrailing,tt=j.debounceMaxWait,ot=reactExports.useRef(),ct=reactExports.useMemo(function(){var ft={};return et!==void 0&&(ft.leading=et),nt!==void 0&&(ft.trailing=nt),tt!==void 0&&(ft.maxWait=tt),ft},[et,nt,tt]);return reactExports.useEffect(function(){if(_e){var ft=a.runAsync.bind(a);return ot.current=debounce$3(function(ht){ht()},_e,ct),a.runAsync=function(){for(var ht=[],dt=0;dt<arguments.length;dt++)ht[dt]=arguments[dt];return new Promise(function(yt,Tt){var St;(St=ot.current)===null||St===void 0||St.call(ot,function(){ft.apply(void 0,__spreadArray([],__read(ht),!1)).then(yt).catch(Tt)})})},function(){var ht;(ht=ot.current)===null||ht===void 0||ht.cancel(),a.runAsync=ft}}},[_e,ct]),_e?{onCancel:function(){var ft;(ft=ot.current)===null||ft===void 0||ft.cancel()}}:{}},useLoadingDelayPlugin=function(a,j){var _e=j.loadingDelay,et=j.ready,nt=reactExports.useRef();if(!_e)return{};var tt=function(){nt.current&&clearTimeout(nt.current)};return{onBefore:function(){return tt(),et!==!1&&(nt.current=setTimeout(function(){a.setState({loading:!0})},_e)),{loading:!1}},onFinally:function(){tt()},onCancel:function(){tt()}}},isBrowser$1=!!(typeof window<"u"&&window.document&&window.document.createElement);function isDocumentVisible(){return isBrowser$1?document.visibilityState!=="hidden":!0}var listeners$1=[];function subscribe$1(a){return listeners$1.push(a),function(){var _e=listeners$1.indexOf(a);listeners$1.splice(_e,1)}}if(isBrowser$1){var revalidate$1=function(){if(isDocumentVisible())for(var a=0;a<listeners$1.length;a++){var j=listeners$1[a];j()}};window.addEventListener("visibilitychange",revalidate$1,!1)}var usePollingPlugin=function(a,j){var _e=j.pollingInterval,et=j.pollingWhenHidden,nt=et===void 0?!0:et,tt=j.pollingErrorRetryCount,ot=tt===void 0?-1:tt,ct=reactExports.useRef(),ft=reactExports.useRef(),ht=reactExports.useRef(0),dt=function(){var yt;ct.current&&clearTimeout(ct.current),(yt=ft.current)===null||yt===void 0||yt.call(ft)};return useUpdateEffect(function(){_e||dt()},[_e]),_e?{onBefore:function(){dt()},onError:function(){ht.current+=1},onSuccess:function(){ht.current=0},onFinally:function(){ot===-1||ot!==-1&&ht.current<=ot?ct.current=setTimeout(function(){!nt&&!isDocumentVisible()?ft.current=subscribe$1(function(){a.refresh()}):a.refresh()},_e):ht.current=0},onCancel:function(){dt()}}:{}};function limit(a,j){var _e=!1;return function(){for(var et=[],nt=0;nt<arguments.length;nt++)et[nt]=arguments[nt];_e||(_e=!0,a.apply(void 0,__spreadArray([],__read(et),!1)),setTimeout(function(){_e=!1},j))}}function isOnline(){return isBrowser$1&&typeof navigator.onLine<"u"?navigator.onLine:!0}var listeners=[];function subscribe(a){return listeners.push(a),function(){var _e=listeners.indexOf(a);_e>-1&&listeners.splice(_e,1)}}if(isBrowser$1){var revalidate=function(){if(!(!isDocumentVisible()||!isOnline()))for(var a=0;a<listeners.length;a++){var j=listeners[a];j()}};window.addEventListener("visibilitychange",revalidate,!1),window.addEventListener("focus",revalidate,!1)}var useRefreshOnWindowFocusPlugin=function(a,j){var _e=j.refreshOnWindowFocus,et=j.focusTimespan,nt=et===void 0?5e3:et,tt=reactExports.useRef(),ot=function(){var ct;(ct=tt.current)===null||ct===void 0||ct.call(tt)};return reactExports.useEffect(function(){if(_e){var ct=limit(a.refresh.bind(a),nt);tt.current=subscribe(function(){ct()})}return function(){ot()}},[_e,nt]),useUnmount(function(){ot()}),{}},useRetryPlugin=function(a,j){var _e=j.retryInterval,et=j.retryCount,nt=reactExports.useRef(),tt=reactExports.useRef(0),ot=reactExports.useRef(!1);return et?{onBefore:function(){ot.current||(tt.current=0),ot.current=!1,nt.current&&clearTimeout(nt.current)},onSuccess:function(){tt.current=0},onError:function(){if(tt.current+=1,et===-1||tt.current<=et){var ct=_e??Math.min(1e3*Math.pow(2,tt.current),3e4);nt.current=setTimeout(function(){ot.current=!0,a.refresh()},ct)}else tt.current=0},onCancel:function(){tt.current=0,nt.current&&clearTimeout(nt.current)}}:{}},debounce$1=debounce_1,isObject$b=isObject_1,FUNC_ERROR_TEXT$3="Expected a function";function throttle$3(a,j,_e){var et=!0,nt=!0;if(typeof a!="function")throw new TypeError(FUNC_ERROR_TEXT$3);return isObject$b(_e)&&(et="leading"in _e?!!_e.leading:et,nt="trailing"in _e?!!_e.trailing:nt),debounce$1(a,j,{leading:et,maxWait:j,trailing:nt})}var throttle_1=throttle$3;const throttle$4=getDefaultExportFromCjs$1(throttle_1);var useThrottlePlugin=function(a,j){var _e=j.throttleWait,et=j.throttleLeading,nt=j.throttleTrailing,tt=reactExports.useRef(),ot={};return et!==void 0&&(ot.leading=et),nt!==void 0&&(ot.trailing=nt),reactExports.useEffect(function(){if(_e){var ct=a.runAsync.bind(a);return tt.current=throttle$4(function(ft){ft()},_e,ot),a.runAsync=function(){for(var ft=[],ht=0;ht<arguments.length;ht++)ft[ht]=arguments[ht];return new Promise(function(dt,yt){var Tt;(Tt=tt.current)===null||Tt===void 0||Tt.call(tt,function(){ct.apply(void 0,__spreadArray([],__read(ft),!1)).then(dt).catch(yt)})})},function(){var ft;a.runAsync=ct,(ft=tt.current)===null||ft===void 0||ft.cancel()}}},[_e,et,nt]),_e?{onCancel:function(){var ct;(ct=tt.current)===null||ct===void 0||ct.cancel()}}:{}},useMount=function(a){reactExports.useEffect(function(){a==null||a()},[])},useUpdate=function(){var a=__read(reactExports.useState({}),2),j=a[1];return reactExports.useCallback(function(){return j({})},[])},Fetch=function(){function a(j,_e,et,nt){nt===void 0&&(nt={}),this.serviceRef=j,this.options=_e,this.subscribe=et,this.initState=nt,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=__assign(__assign(__assign({},this.state),{loading:!_e.manual}),nt)}return a.prototype.setState=function(j){j===void 0&&(j={}),this.state=__assign(__assign({},this.state),j),this.subscribe()},a.prototype.runPluginHandler=function(j){for(var _e=[],et=1;et<arguments.length;et++)_e[et-1]=arguments[et];var nt=this.pluginImpls.map(function(tt){var ot;return(ot=tt[j])===null||ot===void 0?void 0:ot.call.apply(ot,__spreadArray([tt],__read(_e),!1))}).filter(Boolean);return Object.assign.apply(Object,__spreadArray([{}],__read(nt),!1))},a.prototype.runAsync=function(){for(var j,_e,et,nt,tt,ot,ct,ft,ht,dt,yt=[],Tt=0;Tt<arguments.length;Tt++)yt[Tt]=arguments[Tt];return __awaiter(this,void 0,void 0,function(){var St,At,Rt,It,Ct,kt,Pt,Bt,Kt,jt,zt;return __generator(this,function(Gt){switch(Gt.label){case 0:if(this.count+=1,St=this.count,At=this.runPluginHandler("onBefore",yt),Rt=At.stopNow,It=Rt===void 0?!1:Rt,Ct=At.returnNow,kt=Ct===void 0?!1:Ct,Pt=__rest(At,["stopNow","returnNow"]),It)return[2,new Promise(function(){})];if(this.setState(__assign({loading:!0,params:yt},Pt)),kt)return[2,Promise.resolve(Pt.data)];(_e=(j=this.options).onBefore)===null||_e===void 0||_e.call(j,yt),Gt.label=1;case 1:return Gt.trys.push([1,3,,4]),Bt=this.runPluginHandler("onRequest",this.serviceRef.current,yt).servicePromise,Bt||(Bt=(zt=this.serviceRef).current.apply(zt,__spreadArray([],__read(yt),!1))),[4,Bt];case 2:return Kt=Gt.sent(),St!==this.count?[2,new Promise(function(){})]:(this.setState({data:Kt,error:void 0,loading:!1}),(nt=(et=this.options).onSuccess)===null||nt===void 0||nt.call(et,Kt,yt),this.runPluginHandler("onSuccess",Kt,yt),(ot=(tt=this.options).onFinally)===null||ot===void 0||ot.call(tt,yt,Kt,void 0),St===this.count&&this.runPluginHandler("onFinally",yt,Kt,void 0),[2,Kt]);case 3:if(jt=Gt.sent(),St!==this.count)return[2,new Promise(function(){})];throw this.setState({error:jt,loading:!1}),(ft=(ct=this.options).onError)===null||ft===void 0||ft.call(ct,jt,yt),this.runPluginHandler("onError",jt,yt),(dt=(ht=this.options).onFinally)===null||dt===void 0||dt.call(ht,yt,void 0,jt),St===this.count&&this.runPluginHandler("onFinally",yt,void 0,jt),jt;case 4:return[2]}})})},a.prototype.run=function(){for(var j=this,_e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];this.runAsync.apply(this,__spreadArray([],__read(_e),!1)).catch(function(nt){j.options.onError||console.error(nt)})},a.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},a.prototype.refresh=function(){this.run.apply(this,__spreadArray([],__read(this.state.params||[]),!1))},a.prototype.refreshAsync=function(){return this.runAsync.apply(this,__spreadArray([],__read(this.state.params||[]),!1))},a.prototype.mutate=function(j){var _e=isFunction$3(j)?j(this.state.data):j;this.runPluginHandler("onMutate",_e),this.setState({data:_e})},a}();function useRequestImplement(a,j,_e){j===void 0&&(j={}),_e===void 0&&(_e=[]);var et=j.manual,nt=et===void 0?!1:et,tt=j.ready,ot=tt===void 0?!0:tt,ct=__rest(j,["manual","ready"]),ft=__assign({manual:nt,ready:ot},ct),ht=useLatest(a),dt=useUpdate(),yt=useCreation(function(){var Tt=_e.map(function(St){var At;return(At=St==null?void 0:St.onInit)===null||At===void 0?void 0:At.call(St,ft)}).filter(Boolean);return new Fetch(ht,ft,dt,Object.assign.apply(Object,__spreadArray([{}],__read(Tt),!1)))},[]);return yt.options=ft,yt.pluginImpls=_e.map(function(Tt){return Tt(yt,ft)}),useMount(function(){if(!nt&&ot){var Tt=yt.state.params||j.defaultParams||[];yt.run.apply(yt,__spreadArray([],__read(Tt),!1))}}),useUnmount(function(){yt.cancel()}),{loading:yt.state.loading,data:yt.state.data,error:yt.state.error,params:yt.state.params||[],cancel:useMemoizedFn(yt.cancel.bind(yt)),refresh:useMemoizedFn(yt.refresh.bind(yt)),refreshAsync:useMemoizedFn(yt.refreshAsync.bind(yt)),run:useMemoizedFn(yt.run.bind(yt)),runAsync:useMemoizedFn(yt.runAsync.bind(yt)),mutate:useMemoizedFn(yt.mutate.bind(yt))}}function useRequest(a,j,_e){return useRequestImplement(a,j,__spreadArray(__spreadArray([],__read([]),!1),[useDebouncePlugin,useLoadingDelayPlugin,usePollingPlugin,useRefreshOnWindowFocusPlugin,useThrottlePlugin,useAutoRunPlugin,useCachePlugin,useRetryPlugin],!1))}function isAsyncGenerator(a){return isFunction$3(a[Symbol.asyncIterator])}function useAsyncEffect(a,j){reactExports.useEffect(function(){var _e=a(),et=!1;function nt(){return __awaiter(this,void 0,void 0,function(){var tt;return __generator(this,function(ot){switch(ot.label){case 0:if(!isAsyncGenerator(_e))return[3,4];ot.label=1;case 1:return[4,_e.next()];case 2:return tt=ot.sent(),tt.done||et?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,_e];case 5:ot.sent(),ot.label=6;case 6:return[2]}})})}return nt(),function(){et=!0}},j)}function getTargetElement(a,j){if(isBrowser$1){if(!a)return j;var _e;return isFunction$3(a)?_e=a():"current"in a?_e=a.current:_e=a,_e}}var createEffectWithTarget=function(a){var j=function(_e,et,nt){var tt=reactExports.useRef(!1),ot=reactExports.useRef([]),ct=reactExports.useRef([]),ft=reactExports.useRef();a(function(){var ht,dt=Array.isArray(nt)?nt:[nt],yt=dt.map(function(Tt){return getTargetElement(Tt)});if(!tt.current){tt.current=!0,ot.current=yt,ct.current=et,ft.current=_e();return}(yt.length!==ot.current.length||!depsAreSame(ot.current,yt)||!depsAreSame(ct.current,et))&&((ht=ft.current)===null||ht===void 0||ht.call(ft),ot.current=yt,ct.current=et,ft.current=_e())}),useUnmount(function(){var ht;(ht=ft.current)===null||ht===void 0||ht.call(ft),tt.current=!1})};return j},useEffectWithTarget$1=createEffectWithTarget(reactExports.useEffect);function isNodeOrWeb(){var a=(typeof global$2>"u"?"undefined":typeof global$2)=="object"&&global$2&&global$2.Object===Object&&global$2,j=typeof self=="object"&&self&&self.Object===Object&&self;return a||j}isNodeOrWeb()||(global$2.Date=Date);function useDebounceFn(a,j){var _e,et=useLatest(a),nt=(_e=j==null?void 0:j.wait)!==null&&_e!==void 0?_e:1e3,tt=reactExports.useMemo(function(){return debounce$3(function(){for(var ot=[],ct=0;ct<arguments.length;ct++)ot[ct]=arguments[ct];return et.current.apply(et,__spreadArray([],__read(ot),!1))},nt,j)},[]);return useUnmount(function(){tt.cancel()}),{run:tt,cancel:tt.cancel,flush:tt.flush}}function useDebounce(a,j){var _e=__read(reactExports.useState(a),2),et=_e[0],nt=_e[1],tt=useDebounceFn(function(){nt(a)},j).run;return reactExports.useEffect(function(){tt()},[a]),et}function useEventListener(a,j,_e){_e===void 0&&(_e={});var et=_e.enable,nt=et===void 0?!0:et,tt=useLatest(j);useEffectWithTarget$1(function(){if(nt){var ot=getTargetElement(_e.target,window);if(ot!=null&&ot.addEventListener){var ct=function(ft){return tt.current(ft)};return ot.addEventListener(a,ct,{capture:_e.capture,once:_e.once,passive:_e.passive}),function(){ot.removeEventListener(a,ct,{capture:_e.capture})}}}},[a,_e.capture,_e.once,_e.passive,nt],_e.target)}var useInterval$1=function(a,j,_e){_e===void 0&&(_e={});var et=useMemoizedFn(a),nt=reactExports.useRef(null),tt=reactExports.useCallback(function(){nt.current&&clearInterval(nt.current)},[]);return reactExports.useEffect(function(){if(!(!isNumber$2(j)||j<0))return _e.immediate&&et(),nt.current=setInterval(et,j),tt},[j,_e.immediate]),tt},SYNC_STORAGE_EVENT_NAME="AHOOKS_SYNC_STORAGE_EVENT_NAME";function createUseStorageState(a){function j(_e,et){et===void 0&&(et={});var nt,tt=et.listenStorageChange,ot=tt===void 0?!1:tt,ct=et.onError,ft=ct===void 0?function(kt){console.error(kt)}:ct;try{nt=a()}catch(kt){ft(kt)}var ht=function(kt){return et.serializer?et.serializer(kt):JSON.stringify(kt)},dt=function(kt){return et.deserializer?et.deserializer(kt):JSON.parse(kt)};function yt(){try{var kt=nt==null?void 0:nt.getItem(_e);if(kt)return dt(kt)}catch(Pt){ft(Pt)}return isFunction$3(et.defaultValue)?et.defaultValue():et.defaultValue}var Tt=__read(reactExports.useState(yt),2),St=Tt[0],At=Tt[1];useUpdateEffect(function(){At(yt())},[_e]);var Rt=function(kt){var Pt=isFunction$3(kt)?kt(St):kt;ot||At(Pt);try{var Bt=void 0,Kt=nt==null?void 0:nt.getItem(_e);isUndef(Pt)?(Bt=null,nt==null||nt.removeItem(_e)):(Bt=ht(Pt),nt==null||nt.setItem(_e,Bt)),dispatchEvent(new CustomEvent(SYNC_STORAGE_EVENT_NAME,{detail:{key:_e,newValue:Bt,oldValue:Kt,storageArea:nt}}))}catch(jt){ft(jt)}},It=function(kt){kt.key!==_e||kt.storageArea!==nt||At(yt())},Ct=function(kt){It(kt.detail)};return useEventListener("storage",It,{enable:ot}),useEventListener(SYNC_STORAGE_EVENT_NAME,Ct,{enable:ot}),[St,useMemoizedFn(Rt)]}return j}var useLocalStorageState=createUseStorageState(function(){return isBrowser$1?localStorage:void 0});function useRafState(a){var j=reactExports.useRef(0),_e=__read(reactExports.useState(a),2),et=_e[0],nt=_e[1],tt=reactExports.useCallback(function(ot){cancelAnimationFrame(j.current),j.current=requestAnimationFrame(function(){nt(ot)})},[]);return useUnmount(function(){cancelAnimationFrame(j.current)}),[et,tt]}var defaultShouldUpdate=function(a,j){return!Object.is(a,j)};function usePrevious(a,j){j===void 0&&(j=defaultShouldUpdate);var _e=reactExports.useRef(),et=reactExports.useRef();return j(et.current,a)&&(_e.current=et.current,et.current=a),_e.current}var proxyMap=new WeakMap,rawMap=new WeakMap;function observer(a,j){var _e=proxyMap.get(a);if(_e)return _e;if(rawMap.has(a))return a;var et=new Proxy(a,{get:function(nt,tt,ot){var ct=Reflect.get(nt,tt,ot),ft=Reflect.getOwnPropertyDescriptor(nt,tt);return!(ft!=null&&ft.configurable)&&!(ft!=null&&ft.writable)?ct:isPlainObject$4(ct)||Array.isArray(ct)?observer(ct,j):ct},set:function(nt,tt,ot){var ct=Reflect.set(nt,tt,ot);return j(),ct},deleteProperty:function(nt,tt){var ot=Reflect.deleteProperty(nt,tt);return j(),ot}});return proxyMap.set(a,et),rawMap.set(et,a),et}function useReactive(a){var j=useUpdate(),_e=reactExports.useRef(a),et=useCreation(function(){return observer(_e.current,function(){j()})},[]);return et}var MapShim=function(){if(typeof Map<"u")return Map;function a(j,_e){var et=-1;return j.some(function(nt,tt){return nt[0]===_e?(et=tt,!0):!1}),et}return function(){function j(){this.__entries__=[]}return Object.defineProperty(j.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),j.prototype.get=function(_e){var et=a(this.__entries__,_e),nt=this.__entries__[et];return nt&&nt[1]},j.prototype.set=function(_e,et){var nt=a(this.__entries__,_e);~nt?this.__entries__[nt][1]=et:this.__entries__.push([_e,et])},j.prototype.delete=function(_e){var et=this.__entries__,nt=a(et,_e);~nt&&et.splice(nt,1)},j.prototype.has=function(_e){return!!~a(this.__entries__,_e)},j.prototype.clear=function(){this.__entries__.splice(0)},j.prototype.forEach=function(_e,et){et===void 0&&(et=null);for(var nt=0,tt=this.__entries__;nt<tt.length;nt++){var ot=tt[nt];_e.call(et,ot[1],ot[0])}},j}()}(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1$1=function(){return typeof global$2<"u"&&global$2.Math===Math?global$2:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1$1):function(a){return setTimeout(function(){return a(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle$2(a,j){var _e=!1,et=!1,nt=0;function tt(){_e&&(_e=!1,a()),et&&ct()}function ot(){requestAnimationFrame$1(tt)}function ct(){var ft=Date.now();if(_e){if(ft-nt<trailingTimeout)return;et=!0}else _e=!0,et=!1,setTimeout(ot,j);nt=ft}return ct}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function a(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle$2(this.refresh.bind(this),REFRESH_DELAY)}return a.prototype.addObserver=function(j){~this.observers_.indexOf(j)||this.observers_.push(j),this.connected_||this.connect_()},a.prototype.removeObserver=function(j){var _e=this.observers_,et=_e.indexOf(j);~et&&_e.splice(et,1),!_e.length&&this.connected_&&this.disconnect_()},a.prototype.refresh=function(){var j=this.updateObservers_();j&&this.refresh()},a.prototype.updateObservers_=function(){var j=this.observers_.filter(function(_e){return _e.gatherActive(),_e.hasActive()});return j.forEach(function(_e){return _e.broadcastActive()}),j.length>0},a.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},a.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},a.prototype.onTransitionEnd_=function(j){var _e=j.propertyName,et=_e===void 0?"":_e,nt=transitionKeys.some(function(tt){return!!~et.indexOf(tt)});nt&&this.refresh()},a.getInstance=function(){return this.instance_||(this.instance_=new a),this.instance_},a.instance_=null,a}(),defineConfigurable=function(a,j){for(var _e=0,et=Object.keys(j);_e<et.length;_e++){var nt=et[_e];Object.defineProperty(a,nt,{value:j[nt],enumerable:!1,writable:!1,configurable:!0})}return a},getWindowOf=function(a){var j=a&&a.ownerDocument&&a.ownerDocument.defaultView;return j||global$1$1},emptyRect=createRectInit(0,0,0,0);function toFloat(a){return parseFloat(a)||0}function getBordersSize(a){for(var j=[],_e=1;_e<arguments.length;_e++)j[_e-1]=arguments[_e];return j.reduce(function(et,nt){var tt=a["border-"+nt+"-width"];return et+toFloat(tt)},0)}function getPaddings(a){for(var j=["top","right","bottom","left"],_e={},et=0,nt=j;et<nt.length;et++){var tt=nt[et],ot=a["padding-"+tt];_e[tt]=toFloat(ot)}return _e}function getSVGContentRect(a){var j=a.getBBox();return createRectInit(0,0,j.width,j.height)}function getHTMLElementContentRect(a){var j=a.clientWidth,_e=a.clientHeight;if(!j&&!_e)return emptyRect;var et=getWindowOf(a).getComputedStyle(a),nt=getPaddings(et),tt=nt.left+nt.right,ot=nt.top+nt.bottom,ct=toFloat(et.width),ft=toFloat(et.height);if(et.boxSizing==="border-box"&&(Math.round(ct+tt)!==j&&(ct-=getBordersSize(et,"left","right")+tt),Math.round(ft+ot)!==_e&&(ft-=getBordersSize(et,"top","bottom")+ot)),!isDocumentElement(a)){var ht=Math.round(ct+tt)-j,dt=Math.round(ft+ot)-_e;Math.abs(ht)!==1&&(ct-=ht),Math.abs(dt)!==1&&(ft-=dt)}return createRectInit(nt.left,nt.top,ct,ft)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(a){return a instanceof getWindowOf(a).SVGGraphicsElement}:function(a){return a instanceof getWindowOf(a).SVGElement&&typeof a.getBBox=="function"}}();function isDocumentElement(a){return a===getWindowOf(a).document.documentElement}function getContentRect(a){return isBrowser?isSVGGraphicsElement(a)?getSVGContentRect(a):getHTMLElementContentRect(a):emptyRect}function createReadOnlyRect(a){var j=a.x,_e=a.y,et=a.width,nt=a.height,tt=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,ot=Object.create(tt.prototype);return defineConfigurable(ot,{x:j,y:_e,width:et,height:nt,top:_e,right:j+et,bottom:nt+_e,left:j}),ot}function createRectInit(a,j,_e,et){return{x:a,y:j,width:_e,height:et}}var ResizeObservation=function(){function a(j){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=j}return a.prototype.isActive=function(){var j=getContentRect(this.target);return this.contentRect_=j,j.width!==this.broadcastWidth||j.height!==this.broadcastHeight},a.prototype.broadcastRect=function(){var j=this.contentRect_;return this.broadcastWidth=j.width,this.broadcastHeight=j.height,j},a}(),ResizeObserverEntry=function(){function a(j,_e){var et=createReadOnlyRect(_e);defineConfigurable(this,{target:j,contentRect:et})}return a}(),ResizeObserverSPI=function(){function a(j,_e,et){if(this.activeObservations_=[],this.observations_=new MapShim,typeof j!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=j,this.controller_=_e,this.callbackCtx_=et}return a.prototype.observe=function(j){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(j instanceof getWindowOf(j).Element))throw new TypeError('parameter 1 is not of type "Element".');var _e=this.observations_;_e.has(j)||(_e.set(j,new ResizeObservation(j)),this.controller_.addObserver(this),this.controller_.refresh())}},a.prototype.unobserve=function(j){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(j instanceof getWindowOf(j).Element))throw new TypeError('parameter 1 is not of type "Element".');var _e=this.observations_;_e.has(j)&&(_e.delete(j),_e.size||this.controller_.removeObserver(this))}},a.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},a.prototype.gatherActive=function(){var j=this;this.clearActive(),this.observations_.forEach(function(_e){_e.isActive()&&j.activeObservations_.push(_e)})},a.prototype.broadcastActive=function(){if(this.hasActive()){var j=this.callbackCtx_,_e=this.activeObservations_.map(function(et){return new ResizeObserverEntry(et.target,et.broadcastRect())});this.callback_.call(j,_e,j),this.clearActive()}},a.prototype.clearActive=function(){this.activeObservations_.splice(0)},a.prototype.hasActive=function(){return this.activeObservations_.length>0},a}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver=function(){function a(j){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var _e=ResizeObserverController.getInstance(),et=new ResizeObserverSPI(j,_e,this);observers.set(this,et)}return a}();["observe","unobserve","disconnect"].forEach(function(a){ResizeObserver.prototype[a]=function(){var j;return(j=observers.get(this))[a].apply(j,arguments)}});var index=function(){return typeof global$1$1.ResizeObserver<"u"?global$1$1.ResizeObserver:ResizeObserver}(),useEffectWithTarget=createEffectWithTarget(reactExports.useLayoutEffect),useIsomorphicLayoutEffectWithTarget=isBrowser$1?useEffectWithTarget:useEffectWithTarget$1;function useSize(a){var j=__read(useRafState(function(){var nt=getTargetElement(a);return nt?{width:nt.clientWidth,height:nt.clientHeight}:void 0}),2),_e=j[0],et=j[1];return useIsomorphicLayoutEffectWithTarget(function(){var nt=getTargetElement(a);if(nt){var tt=new index(function(ot){ot.forEach(function(ct){var ft=ct.target,ht=ft.clientWidth,dt=ft.clientHeight;et({width:ht,height:dt})})});return tt.observe(nt),function(){tt.disconnect()}}},[],a),_e}const n$1=/[^\0-\x7E]/,t$3=/[\x2E\u3002\uFF0E\uFF61]/g,o$1={overflow:"Overflow Error","not-basic":"Illegal Input","invalid-input":"Invalid Input"},e$1=Math.floor,r$2=String.fromCharCode;function s$2(a){throw new RangeError(o$1[a])}const c=function(a,j){return a+22+75*(a<26)-((j!=0)<<5)},u=function(a,j,_e){let et=0;for(a=_e?e$1(a/700):a>>1,a+=e$1(a/j);a>455;et+=36)a=e$1(a/35);return e$1(et+36*a/(a+38))};function toASCII(a){return function(j,_e){const et=j.split("@");let nt="";et.length>1&&(nt=et[0]+"@",j=et[1]);const tt=function(ot,ct){const ft=[];let ht=ot.length;for(;ht--;)ft[ht]=ct(ot[ht]);return ft}((j=j.replace(t$3,".")).split("."),_e).join(".");return nt+tt}(a,function(j){return n$1.test(j)?"xn--"+function(_e){const et=[],nt=(_e=function(dt){const yt=[];let Tt=0;const St=dt.length;for(;Tt<St;){const At=dt.charCodeAt(Tt++);if(At>=55296&&At<=56319&&Tt<St){const Rt=dt.charCodeAt(Tt++);(64512&Rt)==56320?yt.push(((1023&At)<<10)+(1023&Rt)+65536):(yt.push(At),Tt--)}else yt.push(At)}return yt}(_e)).length;let tt=128,ot=0,ct=72;for(const dt of _e)dt<128&&et.push(r$2(dt));const ft=et.length;let ht=ft;for(ft&&et.push("-");ht<nt;){let dt=2147483647;for(const Tt of _e)Tt>=tt&&Tt<dt&&(dt=Tt);const yt=ht+1;dt-tt>e$1((2147483647-ot)/yt)&&s$2("overflow"),ot+=(dt-tt)*yt,tt=dt;for(const Tt of _e)if(Tt<tt&&++ot>2147483647&&s$2("overflow"),Tt==tt){let St=ot;for(let At=36;;At+=36){const Rt=At<=ct?1:At>=ct+26?26:At-ct;if(St<Rt)break;const It=St-Rt,Ct=36-Rt;et.push(r$2(c(Rt+It%Ct,0))),St=e$1(It/Ct)}et.push(r$2(c(St,0))),ct=u(ot,yt,ht==ft),ot=0,++ht}++ot,++tt}return et.join("")}(j):j})}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_CARET_RE=/%5e/gi,ENC_BACKTICK_RE=/%60/gi,ENC_CURLY_OPEN_RE=/%7b/gi,ENC_PIPE_RE=/%7c/gi,ENC_CURLY_CLOSE_RE=/%7d/gi,ENC_SPACE_RE=/%20/gi,ENC_SLASH_RE=/%2f/gi,ENC_ENC_SLASH_RE=/%252f/gi;function encode$7(a){return encodeURI(""+a).replace(ENC_PIPE_RE,"|")}function encodeHash(a){return encode$7(a).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(a){return encode$7(typeof a=="string"?a:JSON.stringify(a)).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CARET_RE,"^").replace(SLASH_RE,"%2F")}function encodeQueryKey(a){return encodeQueryValue(a).replace(EQUAL_RE,"%3D")}function encodePath(a){return encode$7(a).replace(HASH_RE,"%23").replace(IM_RE,"%3F").replace(ENC_ENC_SLASH_RE,"%2F").replace(AMPERSAND_RE,"%26").replace(PLUS_RE,"%2B")}function encodeParam(a){return encodePath(a).replace(SLASH_RE,"%2F")}function decode$4(a=""){try{return decodeURIComponent(""+a)}catch{return""+a}}function decodePath(a){return decode$4(a.replace(ENC_SLASH_RE,"%252F"))}function decodeQueryKey(a){return decode$4(a.replace(PLUS_RE," "))}function decodeQueryValue(a){return decode$4(a.replace(PLUS_RE," "))}function encodeHost(a=""){return toASCII(a)}function parseQuery(a=""){const j={};a[0]==="?"&&(a=a.slice(1));for(const _e of a.split("&")){const et=_e.match(/([^=]+)=?(.*)/)||[];if(et.length<2)continue;const nt=decodeQueryKey(et[1]);if(nt==="__proto__"||nt==="constructor")continue;const tt=decodeQueryValue(et[2]||"");j[nt]===void 0?j[nt]=tt:Array.isArray(j[nt])?j[nt].push(tt):j[nt]=[j[nt],tt]}return j}function encodeQueryItem(a,j){return(typeof j=="number"||typeof j=="boolean")&&(j=String(j)),j?Array.isArray(j)?j.map(_e=>`${encodeQueryKey(a)}=${encodeQueryValue(_e)}`).join("&"):`${encodeQueryKey(a)}=${encodeQueryValue(j)}`:encodeQueryKey(a)}function stringifyQuery(a){return Object.keys(a).filter(j=>a[j]!==void 0).map(j=>encodeQueryItem(j,a[j])).filter(Boolean).join("&")}const PROTOCOL_STRICT_REGEX=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,PROTOCOL_REGEX=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,PROTOCOL_RELATIVE_REGEX=/^([/\\]\s*){2,}[^/\\]/,PROTOCOL_SCRIPT_RE=/^[\s\0]*(blob|data|javascript|vbscript):$/i,TRAILING_SLASH_RE=/\/$|\/\?|\/#/,JOIN_LEADING_SLASH_RE=/^\.?\//;function isRelative(a){return["./","../"].some(j=>a.startsWith(j))}function hasProtocol(a,j={}){return typeof j=="boolean"&&(j={acceptRelative:j}),j.strict?PROTOCOL_STRICT_REGEX.test(a):PROTOCOL_REGEX.test(a)||(j.acceptRelative?PROTOCOL_RELATIVE_REGEX.test(a):!1)}function isScriptProtocol(a){return!!a&&PROTOCOL_SCRIPT_RE.test(a)}function hasTrailingSlash(a="",j){return j?TRAILING_SLASH_RE.test(a):a.endsWith("/")}function withoutTrailingSlash(a="",j){if(!j)return(hasTrailingSlash(a)?a.slice(0,-1):a)||"/";if(!hasTrailingSlash(a,!0))return a||"/";let _e=a,et="";const nt=a.indexOf("#");nt>=0&&(_e=a.slice(0,nt),et=a.slice(nt));const[tt,...ot]=_e.split("?");return((tt.endsWith("/")?tt.slice(0,-1):tt)||"/")+(ot.length>0?`?${ot.join("?")}`:"")+et}function withTrailingSlash(a="",j){if(!j)return a.endsWith("/")?a:a+"/";if(hasTrailingSlash(a,!0))return a||"/";let _e=a,et="";const nt=a.indexOf("#");if(nt>=0&&(_e=a.slice(0,nt),et=a.slice(nt),!_e))return et;const[tt,...ot]=_e.split("?");return tt+"/"+(ot.length>0?`?${ot.join("?")}`:"")+et}function hasLeadingSlash(a=""){return a.startsWith("/")}function withoutLeadingSlash(a=""){return(hasLeadingSlash(a)?a.slice(1):a)||"/"}function withLeadingSlash(a=""){return hasLeadingSlash(a)?a:"/"+a}function cleanDoubleSlashes(a=""){return a.split("://").map(j=>j.replace(/\/{2,}/g,"/")).join("://")}function withBase(a,j){if(isEmptyURL(j)||hasProtocol(a))return a;const _e=withoutTrailingSlash(j);return a.startsWith(_e)?a:joinURL(_e,a)}function withoutBase(a,j){if(isEmptyURL(j))return a;const _e=withoutTrailingSlash(j);if(!a.startsWith(_e))return a;const et=a.slice(_e.length);return et[0]==="/"?et:"/"+et}function withQuery(a,j){const _e=parseURL(a),et={...parseQuery(_e.search),...j};return _e.search=stringifyQuery(et),stringifyParsedURL(_e)}function getQuery(a){return parseQuery(parseURL(a).search)}function isEmptyURL(a){return!a||a==="/"}function isNonEmptyURL(a){return a&&a!=="/"}function joinURL(a,...j){let _e=a||"";for(const et of j.filter(nt=>isNonEmptyURL(nt)))if(_e){const nt=et.replace(JOIN_LEADING_SLASH_RE,"");_e=withTrailingSlash(_e)+nt}else _e=et;return _e}function joinRelativeURL(...a){var ot,ct,ft,ht;const j=/\/(?!\/)/,_e=a.filter(Boolean),et=[];let nt=0;for(const dt of _e)if(!(!dt||dt==="/")){for(const[yt,Tt]of dt.split(j).entries())if(!(!Tt||Tt===".")){if(Tt===".."){if(et.length===1&&hasProtocol(et[0]))continue;et.pop(),nt--;continue}if(yt===1&&((ot=et[et.length-1])!=null&&ot.endsWith(":/"))){et[et.length-1]+="/"+Tt;continue}et.push(Tt),nt++}}let tt=et.join("/");return nt>=0?(ct=_e[0])!=null&&ct.startsWith("/")&&!tt.startsWith("/")?tt="/"+tt:(ft=_e[0])!=null&&ft.startsWith("./")&&!tt.startsWith("./")&&(tt="./"+tt):tt="../".repeat(-1*nt)+tt,(ht=_e[_e.length-1])!=null&&ht.endsWith("/")&&!tt.endsWith("/")&&(tt+="/"),tt}function withHttp(a){return withProtocol(a,"http://")}function withHttps(a){return withProtocol(a,"https://")}function withoutProtocol(a){return withProtocol(a,"")}function withProtocol(a,j){let _e=a.match(PROTOCOL_REGEX);return _e||(_e=a.match(/^\/{2,}/)),_e?j+a.slice(_e[0].length):j+a}function normalizeURL(a){const j=parseURL(a);return j.pathname=encodePath(decodePath(j.pathname)),j.hash=encodeHash(decode$4(j.hash)),j.host=encodeHost(decode$4(j.host)),j.search=stringifyQuery(parseQuery(j.search)),stringifyParsedURL(j)}function resolveURL(a="",...j){if(typeof a!="string")throw new TypeError(`URL input should be string received ${typeof a} (${a})`);const _e=j.filter(nt=>isNonEmptyURL(nt));if(_e.length===0)return a;const et=parseURL(a);for(const nt of _e){const tt=parseURL(nt);if(tt.pathname&&(et.pathname=withTrailingSlash(et.pathname)+withoutLeadingSlash(tt.pathname)),tt.hash&&tt.hash!=="#"&&(et.hash=tt.hash),tt.search&&tt.search!=="?")if(et.search&&et.search!=="?"){const ot=stringifyQuery({...parseQuery(et.search),...parseQuery(tt.search)});et.search=ot.length>0?"?"+ot:""}else et.search=tt.search}return stringifyParsedURL(et)}function isSamePath(a,j){return decode$4(withoutTrailingSlash(a))===decode$4(withoutTrailingSlash(j))}function isEqual$2(a,j,_e={}){return _e.trailingSlash||(a=withTrailingSlash(a),j=withTrailingSlash(j)),_e.leadingSlash||(a=withLeadingSlash(a),j=withLeadingSlash(j)),_e.encoding||(a=decode$4(a),j=decode$4(j)),a===j}function withFragment(a,j){if(!j||j==="#")return a;const _e=parseURL(a);return _e.hash=j===""?"":"#"+encodeHash(j),stringifyParsedURL(_e)}function withoutFragment(a){return stringifyParsedURL({...parseURL(a),hash:""})}function withoutHost(a){const j=parseURL(a);return(j.pathname||"/")+j.search+j.hash}const protocolRelative=Symbol.for("ufo:protocolRelative");function parseURL(a="",j){const _e=a.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(_e){const[,yt,Tt=""]=_e;return{protocol:yt.toLowerCase(),pathname:Tt,href:yt+Tt,auth:"",host:"",search:"",hash:""}}if(!hasProtocol(a,{acceptRelative:!0}))return j?parseURL(j+a):parsePath(a);const[,et="",nt,tt=""]=a.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,ot="",ct=""]=tt.match(/([^#/?]*)(.*)?/)||[];et==="file:"&&(ct=ct.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:ft,search:ht,hash:dt}=parsePath(ct);return{protocol:et.toLowerCase(),auth:nt?nt.slice(0,Math.max(0,nt.length-1)):"",host:ot,pathname:ft,search:ht,hash:dt,[protocolRelative]:!et}}function parsePath(a=""){const[j="",_e="",et=""]=(a.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:j,search:_e,hash:et}}function parseAuth(a=""){const[j,_e]=a.split(":");return{username:decode$4(j),password:decode$4(_e)}}function parseHost(a=""){const[j,_e]=(a.match(/([^/:]*):?(\d+)?/)||[]).splice(1);return{hostname:decode$4(j),port:_e}}function stringifyParsedURL(a){const j=a.pathname||"",_e=a.search?(a.search.startsWith("?")?"":"?")+a.search:"",et=a.hash||"",nt=a.auth?a.auth+"@":"",tt=a.host||"";return(a.protocol||a[protocolRelative]?(a.protocol||"")+"//":"")+nt+tt+j+_e+et}const FILENAME_STRICT_REGEX=/\/([^/]+\.[^/]+)$/,FILENAME_REGEX=/\/([^/]+)$/;function parseFilename(a="",{strict:j}){const{pathname:_e}=parseURL(a),et=j?_e.match(FILENAME_STRICT_REGEX):_e.match(FILENAME_REGEX);return et?et[1]:void 0}var __defProp$6=Object.defineProperty,__defNormalProp$5=(a,j,_e)=>j in a?__defProp$6(a,j,{enumerable:!0,configurable:!0,writable:!0,value:_e}):a[j]=_e,__publicField$4=(a,j,_e)=>(__defNormalProp$5(a,typeof j!="symbol"?j+"":j,_e),_e);class $URL{constructor(j=""){if(__publicField$4(this,"protocol"),__publicField$4(this,"host"),__publicField$4(this,"auth"),__publicField$4(this,"pathname"),__publicField$4(this,"query",{}),__publicField$4(this,"hash"),typeof j!="string")throw new TypeError(`URL input should be string received ${typeof j} (${j})`);const _e=parseURL(j);this.protocol=decode$4(_e.protocol),this.host=decode$4(_e.host),this.auth=decode$4(_e.auth),this.pathname=decodePath(_e.pathname),this.query=parseQuery(_e.search),this.hash=decode$4(_e.hash)}get hostname(){return parseHost(this.host).hostname}get port(){return parseHost(this.host).port||""}get username(){return parseAuth(this.auth).username}get password(){return parseAuth(this.auth).password||""}get hasProtocol(){return this.protocol.length}get isAbsolute(){return this.hasProtocol||this.pathname[0]==="/"}get search(){const j=stringifyQuery(this.query);return j.length>0?"?"+j:""}get searchParams(){const j=new URLSearchParams;for(const _e in this.query){const et=this.query[_e];if(Array.isArray(et))for(const nt of et)j.append(_e,nt);else j.append(_e,typeof et=="string"?et:JSON.stringify(et))}return j}get origin(){return(this.protocol?this.protocol+"//":"")+encodeHost(this.host)}get fullpath(){return encodePath(this.pathname)+this.search+encodeHash(this.hash)}get encodedAuth(){if(!this.auth)return"";const{username:j,password:_e}=parseAuth(this.auth);return encodeURIComponent(j)+(_e?":"+encodeURIComponent(_e):"")}get href(){const j=this.encodedAuth,_e=(this.protocol?this.protocol+"//":"")+(j?j+"@":"")+encodeHost(this.host);return this.hasProtocol&&this.isAbsolute?_e+this.fullpath:this.fullpath}append(j){if(j.hasProtocol)throw new Error("Cannot append a URL with protocol");Object.assign(this.query,j.query),j.pathname&&(this.pathname=withTrailingSlash(this.pathname)+withoutLeadingSlash(j.pathname)),j.hash&&(this.hash=j.hash)}toJSON(){return this.href}toString(){return this.href}}function createURL(a){return new $URL(a)}const dist$3=Object.freeze(Object.defineProperty({__proto__:null,$URL,cleanDoubleSlashes,createURL,decode:decode$4,decodePath,decodeQueryKey,decodeQueryValue,encode:encode$7,encodeHash,encodeHost,encodeParam,encodePath,encodeQueryItem,encodeQueryKey,encodeQueryValue,getQuery,hasLeadingSlash,hasProtocol,hasTrailingSlash,isEmptyURL,isEqual:isEqual$2,isNonEmptyURL,isRelative,isSamePath,isScriptProtocol,joinRelativeURL,joinURL,normalizeURL,parseAuth,parseFilename,parseHost,parsePath,parseQuery,parseURL,resolveURL,stringifyParsedURL,stringifyQuery,withBase,withFragment,withHttp,withHttps,withLeadingSlash,withProtocol,withQuery,withTrailingSlash,withoutBase,withoutFragment,withoutHost,withoutLeadingSlash,withoutProtocol,withoutTrailingSlash},Symbol.toStringTag,{value:"Module"})),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(a,j,_e,et="")=>{const nt=a.split(":");if(a.slice(0,1)==="@"){if(nt.length<2||nt.length>3)return null;et=nt.shift().slice(1)}if(nt.length>3||!nt.length)return null;if(nt.length>1){const ct=nt.pop(),ft=nt.pop(),ht={provider:nt.length>0?nt[0]:et,prefix:ft,name:ct};return j&&!validateIconName(ht)?null:ht}const tt=nt[0],ot=tt.split("-");if(ot.length>1){const ct={provider:et,prefix:ot.shift(),name:ot.join("-")};return j&&!validateIconName(ct)?null:ct}if(_e&&et===""){const ct={provider:et,prefix:"",name:tt};return j&&!validateIconName(ct,_e)?null:ct}return null},validateIconName=(a,j)=>a?!!((a.provider===""||a.provider.match(matchIconName))&&(j&&a.prefix===""||a.prefix.match(matchIconName))&&a.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations(a,j){const _e={};!a.hFlip!=!j.hFlip&&(_e.hFlip=!0),!a.vFlip!=!j.vFlip&&(_e.vFlip=!0);const et=((a.rotate||0)+(j.rotate||0))%4;return et&&(_e.rotate=et),_e}function mergeIconData(a,j){const _e=mergeIconTransformations(a,j);for(const et in defaultExtendedIconProps)et in defaultIconTransformations?et in a&&!(et in _e)&&(_e[et]=defaultIconTransformations[et]):et in j?_e[et]=j[et]:et in a&&(_e[et]=a[et]);return _e}function getIconsTree(a,j){const _e=a.icons,et=a.aliases||Object.create(null),nt=Object.create(null);function tt(ot){if(_e[ot])return nt[ot]=[];if(!(ot in nt)){nt[ot]=null;const ct=et[ot]&&et[ot].parent,ft=ct&&tt(ct);ft&&(nt[ot]=[ct].concat(ft))}return nt[ot]}return Object.keys(_e).concat(Object.keys(et)).forEach(tt),nt}function internalGetIconData(a,j,_e){const et=a.icons,nt=a.aliases||Object.create(null);let tt={};function ot(ct){tt=mergeIconData(et[ct]||nt[ct],tt)}return ot(j),_e.forEach(ot),mergeIconData(a,tt)}function parseIconSet(a,j){const _e=[];if(typeof a!="object"||typeof a.icons!="object")return _e;a.not_found instanceof Array&&a.not_found.forEach(nt=>{j(nt,null),_e.push(nt)});const et=getIconsTree(a);for(const nt in et){const tt=et[nt];tt&&(j(nt,internalGetIconData(a,nt,tt)),_e.push(nt))}return _e}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps(a,j){for(const _e in j)if(_e in a&&typeof a[_e]!=typeof j[_e])return!1;return!0}function quicklyValidateIconSet(a){if(typeof a!="object"||a===null)return null;const j=a;if(typeof j.prefix!="string"||!a.icons||typeof a.icons!="object"||!checkOptionalProps(a,optionalPropertyDefaults))return null;const _e=j.icons;for(const nt in _e){const tt=_e[nt];if(!nt.match(matchIconName)||typeof tt.body!="string"||!checkOptionalProps(tt,defaultExtendedIconProps))return null}const et=j.aliases||Object.create(null);for(const nt in et){const tt=et[nt],ot=tt.parent;if(!nt.match(matchIconName)||typeof ot!="string"||!_e[ot]&&!et[ot]||!checkOptionalProps(tt,defaultExtendedIconProps))return null}return j}const dataStorage=Object.create(null);function newStorage(a,j){return{provider:a,prefix:j,icons:Object.create(null),missing:new Set}}function getStorage(a,j){const _e=dataStorage[a]||(dataStorage[a]=Object.create(null));return _e[j]||(_e[j]=newStorage(a,j))}function addIconSet(a,j){return quicklyValidateIconSet(j)?parseIconSet(j,(_e,et)=>{et?a.icons[_e]=et:a.missing.add(_e)}):[]}function addIconToStorage(a,j,_e){try{if(typeof _e.body=="string")return a.icons[j]={..._e},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames(a){return typeof a=="boolean"&&(simpleNames=a),simpleNames}function getIconData(a){const j=typeof a=="string"?stringToIcon(a,!0,simpleNames):a;if(j){const _e=getStorage(j.provider,j.prefix),et=j.name;return _e.icons[et]||(_e.missing.has(et)?null:void 0)}}function addIcon(a,j){const _e=stringToIcon(a,!0,simpleNames);if(!_e)return!1;const et=getStorage(_e.provider,_e.prefix);return addIconToStorage(et,_e.name,j)}function addCollection(a,j){if(typeof a!="object")return!1;if(typeof j!="string"&&(j=a.provider||""),simpleNames&&!j&&!a.prefix){let nt=!1;return quicklyValidateIconSet(a)&&(a.prefix="",parseIconSet(a,(tt,ot)=>{ot&&addIcon(tt,ot)&&(nt=!0)})),nt}const _e=a.prefix;if(!validateIconName({provider:j,prefix:_e,name:"a"}))return!1;const et=getStorage(j,_e);return!!addIconSet(et,a)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(a,j,_e){if(j===1)return a;if(_e=_e||100,typeof a=="number")return Math.ceil(a*j*_e)/_e;if(typeof a!="string")return a;const et=a.split(unitsSplit);if(et===null||!et.length)return a;const nt=[];let tt=et.shift(),ot=unitsTest.test(tt);for(;;){if(ot){const ct=parseFloat(tt);isNaN(ct)?nt.push(tt):nt.push(Math.ceil(ct*j*_e)/_e)}else nt.push(tt);if(tt=et.shift(),tt===void 0)return nt.join("");ot=!ot}}const isUnsetKeyword=a=>a==="unset"||a==="undefined"||a==="none";function iconToSVG(a,j){const _e={...defaultIconProps,...a},et={...defaultIconCustomisations,...j},nt={left:_e.left,top:_e.top,width:_e.width,height:_e.height};let tt=_e.body;[_e,et].forEach(At=>{const Rt=[],It=At.hFlip,Ct=At.vFlip;let kt=At.rotate;It?Ct?kt+=2:(Rt.push("translate("+(nt.width+nt.left).toString()+" "+(0-nt.top).toString()+")"),Rt.push("scale(-1 1)"),nt.top=nt.left=0):Ct&&(Rt.push("translate("+(0-nt.left).toString()+" "+(nt.height+nt.top).toString()+")"),Rt.push("scale(1 -1)"),nt.top=nt.left=0);let Pt;switch(kt<0&&(kt-=Math.floor(kt/4)*4),kt=kt%4,kt){case 1:Pt=nt.height/2+nt.top,Rt.unshift("rotate(90 "+Pt.toString()+" "+Pt.toString()+")");break;case 2:Rt.unshift("rotate(180 "+(nt.width/2+nt.left).toString()+" "+(nt.height/2+nt.top).toString()+")");break;case 3:Pt=nt.width/2+nt.left,Rt.unshift("rotate(-90 "+Pt.toString()+" "+Pt.toString()+")");break}kt%2===1&&(nt.left!==nt.top&&(Pt=nt.left,nt.left=nt.top,nt.top=Pt),nt.width!==nt.height&&(Pt=nt.width,nt.width=nt.height,nt.height=Pt)),Rt.length&&(tt='<g transform="'+Rt.join(" ")+'">'+tt+"</g>")});const ot=et.width,ct=et.height,ft=nt.width,ht=nt.height;let dt,yt;ot===null?(yt=ct===null?"1em":ct==="auto"?ht:ct,dt=calculateSize(yt,ft/ht)):(dt=ot==="auto"?ft:ot,yt=ct===null?calculateSize(dt,ht/ft):ct==="auto"?ht:ct);const Tt={},St=(At,Rt)=>{isUnsetKeyword(Rt)||(Tt[At]=Rt.toString())};return St("width",dt),St("height",yt),Tt.viewBox=nt.left.toString()+" "+nt.top.toString()+" "+ft.toString()+" "+ht.toString(),{attributes:Tt,body:tt}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(a,j=randomPrefix){const _e=[];let et;for(;et=regex.exec(a);)_e.push(et[1]);if(!_e.length)return a;const nt="suffix"+(Math.random()*16777216|Date.now()).toString(16);return _e.forEach(tt=>{const ot=typeof j=="function"?j(tt):j+(counter++).toString(),ct=tt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");a=a.replace(new RegExp('([#;"])('+ct+')([")]|\\.[a-z])',"g"),"$1"+ot+nt+"$3")}),a=a.replace(new RegExp(nt,"g"),""),a}const storage=Object.create(null);function setAPIModule(a,j){storage[a]=j}function getAPIModule(a){return storage[a]||storage[""]}function createAPIConfig(a){let j;if(typeof a.resources=="string")j=[a.resources];else if(j=a.resources,!(j instanceof Array)||!j.length)return null;return{resources:j,path:a.path||"/",maxURL:a.maxURL||500,rotate:a.rotate||750,timeout:a.timeout||5e3,random:a.random===!0,index:a.index||0,dataAfterTimeout:a.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(a,j){const _e=createAPIConfig(j);return _e===null?!1:(configStorage[a]=_e,!0)}function getAPIConfig(a){return configStorage[a]}const detectFetch=()=>{let a;try{if(a=fetch,typeof a=="function")return a}catch{}};let fetchModule=detectFetch();function calculateMaxLength(a,j){const _e=getAPIConfig(a);if(!_e)return 0;let et;if(!_e.maxURL)et=0;else{let nt=0;_e.resources.forEach(ot=>{nt=Math.max(nt,ot.length)});const tt=j+".json?icons=";et=_e.maxURL-nt-_e.path.length-tt.length}return et}function shouldAbort(a){return a===404}const prepare=(a,j,_e)=>{const et=[],nt=calculateMaxLength(a,j),tt="icons";let ot={type:tt,provider:a,prefix:j,icons:[]},ct=0;return _e.forEach((ft,ht)=>{ct+=ft.length+1,ct>=nt&&ht>0&&(et.push(ot),ot={type:tt,provider:a,prefix:j,icons:[]},ct=ft.length),ot.icons.push(ft)}),et.push(ot),et};function getPath(a){if(typeof a=="string"){const j=getAPIConfig(a);if(j)return j.path}return"/"}const send=(a,j,_e)=>{if(!fetchModule){_e("abort",424);return}let et=getPath(j.provider);switch(j.type){case"icons":{const tt=j.prefix,ct=j.icons.join(","),ft=new URLSearchParams({icons:ct});et+=tt+".json?"+ft.toString();break}case"custom":{const tt=j.uri;et+=tt.slice(0,1)==="/"?tt.slice(1):tt;break}default:_e("abort",400);return}let nt=503;fetchModule(a+et).then(tt=>{const ot=tt.status;if(ot!==200){setTimeout(()=>{_e(shouldAbort(ot)?"abort":"next",ot)});return}return nt=501,tt.json()}).then(tt=>{if(typeof tt!="object"||tt===null){setTimeout(()=>{tt===404?_e("abort",tt):_e("next",nt)});return}setTimeout(()=>{_e("success",tt)})}).catch(()=>{_e("next",nt)})},fetchAPIModule={prepare,send};function sortIcons(a){const j={loaded:[],missing:[],pending:[]},_e=Object.create(null);a.sort((nt,tt)=>nt.provider!==tt.provider?nt.provider.localeCompare(tt.provider):nt.prefix!==tt.prefix?nt.prefix.localeCompare(tt.prefix):nt.name.localeCompare(tt.name));let et={provider:"",prefix:"",name:""};return a.forEach(nt=>{if(et.name===nt.name&&et.prefix===nt.prefix&&et.provider===nt.provider)return;et=nt;const tt=nt.provider,ot=nt.prefix,ct=nt.name,ft=_e[tt]||(_e[tt]=Object.create(null)),ht=ft[ot]||(ft[ot]=getStorage(tt,ot));let dt;ct in ht.icons?dt=j.loaded:ot===""||ht.missing.has(ct)?dt=j.missing:dt=j.pending;const yt={provider:tt,prefix:ot,name:ct};dt.push(yt)}),j}function removeCallback(a,j){a.forEach(_e=>{const et=_e.loaderCallbacks;et&&(_e.loaderCallbacks=et.filter(nt=>nt.id!==j))})}function updateCallbacks(a){a.pendingCallbacksFlag||(a.pendingCallbacksFlag=!0,setTimeout(()=>{a.pendingCallbacksFlag=!1;const j=a.loaderCallbacks?a.loaderCallbacks.slice(0):[];if(!j.length)return;let _e=!1;const et=a.provider,nt=a.prefix;j.forEach(tt=>{const ot=tt.icons,ct=ot.pending.length;ot.pending=ot.pending.filter(ft=>{if(ft.prefix!==nt)return!0;const ht=ft.name;if(a.icons[ht])ot.loaded.push({provider:et,prefix:nt,name:ht});else if(a.missing.has(ht))ot.missing.push({provider:et,prefix:nt,name:ht});else return _e=!0,!0;return!1}),ot.pending.length!==ct&&(_e||removeCallback([a],tt.id),tt.callback(ot.loaded.slice(0),ot.missing.slice(0),ot.pending.slice(0),tt.abort))})}))}let idCounter=0;function storeCallback(a,j,_e){const et=idCounter++,nt=removeCallback.bind(null,_e,et);if(!j.pending.length)return nt;const tt={id:et,icons:j,callback:a,abort:nt};return _e.forEach(ot=>{(ot.loaderCallbacks||(ot.loaderCallbacks=[])).push(tt)}),nt}function listToIcons(a,j=!0,_e=!1){const et=[];return a.forEach(nt=>{const tt=typeof nt=="string"?stringToIcon(nt,j,_e):nt;tt&&et.push(tt)}),et}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(a,j,_e,et){const nt=a.resources.length,tt=a.random?Math.floor(Math.random()*nt):a.index;let ot;if(a.random){let jt=a.resources.slice(0);for(ot=[];jt.length>1;){const zt=Math.floor(Math.random()*jt.length);ot.push(jt[zt]),jt=jt.slice(0,zt).concat(jt.slice(zt+1))}ot=ot.concat(jt)}else ot=a.resources.slice(tt).concat(a.resources.slice(0,tt));const ct=Date.now();let ft="pending",ht=0,dt,yt=null,Tt=[],St=[];typeof et=="function"&&St.push(et);function At(){yt&&(clearTimeout(yt),yt=null)}function Rt(){ft==="pending"&&(ft="aborted"),At(),Tt.forEach(jt=>{jt.status==="pending"&&(jt.status="aborted")}),Tt=[]}function It(jt,zt){zt&&(St=[]),typeof jt=="function"&&St.push(jt)}function Ct(){return{startTime:ct,payload:j,status:ft,queriesSent:ht,queriesPending:Tt.length,subscribe:It,abort:Rt}}function kt(){ft="failed",St.forEach(jt=>{jt(void 0,dt)})}function Pt(){Tt.forEach(jt=>{jt.status==="pending"&&(jt.status="aborted")}),Tt=[]}function Bt(jt,zt,Gt){const tn=zt!=="success";switch(Tt=Tt.filter(hn=>hn!==jt),ft){case"pending":break;case"failed":if(tn||!a.dataAfterTimeout)return;break;default:return}if(zt==="abort"){dt=Gt,kt();return}if(tn){dt=Gt,Tt.length||(ot.length?Kt():kt());return}if(At(),Pt(),!a.random){const hn=a.resources.indexOf(jt.resource);hn!==-1&&hn!==a.index&&(a.index=hn)}ft="completed",St.forEach(hn=>{hn(Gt)})}function Kt(){if(ft!=="pending")return;At();const jt=ot.shift();if(jt===void 0){if(Tt.length){yt=setTimeout(()=>{At(),ft==="pending"&&(Pt(),kt())},a.timeout);return}kt();return}const zt={status:"pending",resource:jt,callback:(Gt,tn)=>{Bt(zt,Gt,tn)}};Tt.push(zt),ht++,yt=setTimeout(Kt,a.rotate),_e(jt,j,zt.callback)}return setTimeout(Kt),Ct}function initRedundancy(a){const j={...defaultConfig,...a};let _e=[];function et(){_e=_e.filter(ct=>ct().status==="pending")}function nt(ct,ft,ht){const dt=sendQuery(j,ct,ft,(yt,Tt)=>{et(),ht&&ht(yt,Tt)});return _e.push(dt),dt}function tt(ct){return _e.find(ft=>ct(ft))||null}return{query:nt,find:tt,setIndex:ct=>{j.index=ct},getIndex:()=>j.index,cleanup:et}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(a){if(!redundancyCache[a]){const j=getAPIConfig(a);if(!j)return;const _e=initRedundancy(j),et={config:j,redundancy:_e};redundancyCache[a]=et}return redundancyCache[a]}function sendAPIQuery(a,j,_e){let et,nt;if(typeof a=="string"){const tt=getAPIModule(a);if(!tt)return _e(void 0,424),emptyCallback$1;nt=tt.send;const ot=getRedundancyCache(a);ot&&(et=ot.redundancy)}else{const tt=createAPIConfig(a);if(tt){et=initRedundancy(tt);const ot=a.resources?a.resources[0]:"",ct=getAPIModule(ot);ct&&(nt=ct.send)}}return!et||!nt?(_e(void 0,424),emptyCallback$1):et.query(j,nt,_e)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem(a,j){try{return a.getItem(j)}catch{}}function setStoredItem(a,j,_e){try{return a.setItem(j,_e),!0}catch{}}function removeStoredItem(a,j){try{a.removeItem(j)}catch{}}function setBrowserStorageItemsCount(a,j){return setStoredItem(a,browserCacheCountKey,j.toString())}function getBrowserStorageItemsCount(a){return parseInt(getStoredItem(a,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(a){browserStorageStatus=a}let _window=typeof window>"u"?{}:window;function getBrowserStorage(a){const j=a+"Storage";try{if(_window&&_window[j]&&typeof _window[j].length=="number")return _window[j]}catch{}browserStorageConfig[a]=!1}function iterateBrowserStorage(a,j){const _e=getBrowserStorage(a);if(!_e)return;const et=getStoredItem(_e,browserCacheVersionKey);if(et!==browserCacheVersion){if(et){const ct=getBrowserStorageItemsCount(_e);for(let ft=0;ft<ct;ft++)removeStoredItem(_e,browserCachePrefix+ft.toString())}setStoredItem(_e,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(_e,0);return}const nt=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,tt=ct=>{const ft=browserCachePrefix+ct.toString(),ht=getStoredItem(_e,ft);if(typeof ht=="string"){try{const dt=JSON.parse(ht);if(typeof dt=="object"&&typeof dt.cached=="number"&&dt.cached>nt&&typeof dt.provider=="string"&&typeof dt.data=="object"&&typeof dt.data.prefix=="string"&&j(dt,ct))return!0}catch{}removeStoredItem(_e,ft)}};let ot=getBrowserStorageItemsCount(_e);for(let ct=ot-1;ct>=0;ct--)tt(ct)||(ct===ot-1?(ot--,setBrowserStorageItemsCount(_e,ot)):browserStorageEmptyItems[a].add(ct))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const a in browserStorageConfig)iterateBrowserStorage(a,j=>{const _e=j.data,et=j.provider,nt=_e.prefix,tt=getStorage(et,nt);if(!addIconSet(tt,_e).length)return!1;const ot=_e.lastModified||-1;return tt.lastModifiedCached=tt.lastModifiedCached?Math.min(tt.lastModifiedCached,ot):ot,!0})}}function updateLastModified(a,j){const _e=a.lastModifiedCached;if(_e&&_e>=j)return _e===j;if(a.lastModifiedCached=j,_e)for(const et in browserStorageConfig)iterateBrowserStorage(et,nt=>{const tt=nt.data;return nt.provider!==a.provider||tt.prefix!==a.prefix||tt.lastModified===j});return!0}function storeInBrowserStorage(a,j){browserStorageStatus||initBrowserStorage();function _e(et){let nt;if(!browserStorageConfig[et]||!(nt=getBrowserStorage(et)))return;const tt=browserStorageEmptyItems[et];let ot;if(tt.size)tt.delete(ot=Array.from(tt).shift());else if(ot=getBrowserStorageItemsCount(nt),!setBrowserStorageItemsCount(nt,ot+1))return;const ct={cached:Math.floor(Date.now()/browserStorageHour),provider:a.provider,data:j};return setStoredItem(nt,browserCachePrefix+ot.toString(),JSON.stringify(ct))}j.lastModified&&!updateLastModified(a,j.lastModified)||Object.keys(j.icons).length&&(j.not_found&&(j=Object.assign({},j),delete j.not_found),_e("local")||_e("session"))}function emptyCallback(){}function loadedNewIcons(a){a.iconsLoaderFlag||(a.iconsLoaderFlag=!0,setTimeout(()=>{a.iconsLoaderFlag=!1,updateCallbacks(a)}))}function loadNewIcons(a,j){a.iconsToLoad?a.iconsToLoad=a.iconsToLoad.concat(j).sort():a.iconsToLoad=j,a.iconsQueueFlag||(a.iconsQueueFlag=!0,setTimeout(()=>{a.iconsQueueFlag=!1;const{provider:_e,prefix:et}=a,nt=a.iconsToLoad;delete a.iconsToLoad;let tt;if(!nt||!(tt=getAPIModule(_e)))return;tt.prepare(_e,et,nt).forEach(ct=>{sendAPIQuery(_e,ct,ft=>{if(typeof ft!="object")ct.icons.forEach(ht=>{a.missing.add(ht)});else try{const ht=addIconSet(a,ft);if(!ht.length)return;const dt=a.pendingIcons;dt&&ht.forEach(yt=>{dt.delete(yt)}),storeInBrowserStorage(a,ft)}catch(ht){console.error(ht)}loadedNewIcons(a)})})}))}const loadIcons=(a,j)=>{const _e=listToIcons(a,!0,allowSimpleNames()),et=sortIcons(_e);if(!et.pending.length){let ft=!0;return j&&setTimeout(()=>{ft&&j(et.loaded,et.missing,et.pending,emptyCallback)}),()=>{ft=!1}}const nt=Object.create(null),tt=[];let ot,ct;return et.pending.forEach(ft=>{const{provider:ht,prefix:dt}=ft;if(dt===ct&&ht===ot)return;ot=ht,ct=dt,tt.push(getStorage(ht,dt));const yt=nt[ht]||(nt[ht]=Object.create(null));yt[dt]||(yt[dt]=[])}),et.pending.forEach(ft=>{const{provider:ht,prefix:dt,name:yt}=ft,Tt=getStorage(ht,dt),St=Tt.pendingIcons||(Tt.pendingIcons=new Set);St.has(yt)||(St.add(yt),nt[ht][dt].push(yt))}),tt.forEach(ft=>{const{provider:ht,prefix:dt}=ft;nt[ht][dt].length&&loadNewIcons(ft,nt[ht][dt])}),j?storeCallback(j,et,tt):emptyCallback},loadIcon=a=>new Promise((j,_e)=>{const et=typeof a=="string"?stringToIcon(a,!0):a;if(!et){_e(a);return}loadIcons([et||a],nt=>{if(nt.length&&et){const tt=getIconData(et);if(tt){j({...defaultIconProps,...tt});return}}_e(a)})});function mergeCustomisations(a,j){const _e={...a};for(const et in j){const nt=j[et],tt=typeof nt;et in defaultIconSizeCustomisations?(nt===null||nt&&(tt==="string"||tt==="number"))&&(_e[et]=nt):tt===typeof _e[et]&&(_e[et]=et==="rotate"?nt%4:nt)}return _e}const separator=/[\s,]+/;function flipFromString(a,j){j.split(separator).forEach(_e=>{switch(_e.trim()){case"horizontal":a.hFlip=!0;break;case"vertical":a.vFlip=!0;break}})}function rotateFromString(a,j=0){const _e=a.replace(/^-?[0-9.]*/,"");function et(nt){for(;nt<0;)nt+=4;return nt%4}if(_e===""){const nt=parseInt(a);return isNaN(nt)?0:et(nt)}else if(_e!==a){let nt=0;switch(_e){case"%":nt=25;break;case"deg":nt=90}if(nt){let tt=parseFloat(a.slice(0,a.length-_e.length));return isNaN(tt)?0:(tt=tt/nt,tt%1===0?et(tt):0)}}return j}function iconToHTML(a,j){let _e=a.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const et in j)_e+=" "+et+'="'+j[et]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+_e+">"+a+"</svg>"}function encodeSVGforURL(a){return a.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData(a){return"data:image/svg+xml,"+encodeSVGforURL(a)}function svgToURL(a){return'url("'+svgToData(a)+'")'}let policy;function createPolicy(){try{policy=window.trustedTypes.createPolicy("iconify",{createHTML:a=>a})}catch{policy=null}}function cleanUpInnerHTML(a){return policy===void 0&&createPolicy(),policy?policy.createHTML(a):a}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={WebkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const a in propsToAddTo){const j=propsToAddTo[a];for(const _e in propsToAdd)j[a+_e]=propsToAdd[_e]}const inlineDefaults={...defaultExtendedIconCustomisations,inline:!0};function fixSize(a){return a+(a.match(/^[-0-9.]+$/)?"px":"")}const render=(a,j,_e,et)=>{const nt=_e?inlineDefaults:defaultExtendedIconCustomisations,tt=mergeCustomisations(nt,j),ot=j.mode||"svg",ct={},ft=j.style||{},ht={...ot==="svg"?svgDefaults:{},ref:et};for(let Ct in j){const kt=j[Ct];if(kt!==void 0)switch(Ct){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":tt[Ct]=kt===!0||kt==="true"||kt===1;break;case"flip":typeof kt=="string"&&flipFromString(tt,kt);break;case"color":ct.color=kt;break;case"rotate":typeof kt=="string"?tt[Ct]=rotateFromString(kt):typeof kt=="number"&&(tt[Ct]=kt);break;case"ariaHidden":case"aria-hidden":kt!==!0&&kt!=="true"&&delete ht["aria-hidden"];break;default:nt[Ct]===void 0&&(ht[Ct]=kt)}}const dt=iconToSVG(a,tt),yt=dt.attributes;if(tt.inline&&(ct.verticalAlign="-0.125em"),ot==="svg"){ht.style={...ct,...ft},Object.assign(ht,yt);let Ct=0,kt=j.id;return typeof kt=="string"&&(kt=kt.replace(/-/g,"_")),ht.dangerouslySetInnerHTML={__html:cleanUpInnerHTML(replaceIDs(dt.body,kt?()=>kt+"ID"+Ct++:"iconifyReact"))},React$2.createElement("svg",ht)}const{body:Tt,width:St,height:At}=a,Rt=ot==="mask"||(ot==="bg"?!1:Tt.indexOf("currentColor")!==-1),It=iconToHTML(Tt,{...yt,width:St+"",height:At+""});return ht.style={...ct,"--svg":svgToURL(It),width:fixSize(yt.width),height:fixSize(yt.height),...commonProps,...Rt?monotoneProps:coloredProps,...ft},React$2.createElement("span",ht)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const a=window;if(a.IconifyPreload!==void 0){const j=a.IconifyPreload,_e="Invalid IconifyPreload syntax.";typeof j=="object"&&j!==null&&(j instanceof Array?j:[j]).forEach(et=>{try{(typeof et!="object"||et===null||et instanceof Array||typeof et.icons!="object"||typeof et.prefix!="string"||!addCollection(et))&&console.error(_e)}catch{console.error(_e)}})}if(a.IconifyProviders!==void 0){const j=a.IconifyProviders;if(typeof j=="object"&&j!==null)for(let _e in j){const et="IconifyProviders["+_e+"] is invalid.";try{const nt=j[_e];if(typeof nt!="object"||!nt||nt.resources===void 0)continue;addAPIProvider(_e,nt)||console.error(et)}catch{console.error(et)}}}}class IconComponent extends React$2.Component{constructor(j){super(j),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(j){this.state.icon!==j&&this.setState({icon:j})}_checkIcon(j){const _e=this.state,et=this.props.icon;if(typeof et=="object"&&et!==null&&typeof et.body=="string"){this._icon="",this._abortLoading(),(j||_e.icon===null)&&this._setData({data:et});return}let nt;if(typeof et!="string"||(nt=stringToIcon(et,!1,!0))===null){this._abortLoading(),this._setData(null);return}const tt=getIconData(nt);if(!tt){(!this._loading||this._loading.name!==et)&&(this._abortLoading(),this._icon="",this._setData(null),tt!==null&&(this._loading={name:et,abort:loadIcons([nt],this._checkIcon.bind(this,!1))}));return}if(this._icon!==et||_e.icon===null){this._abortLoading(),this._icon=et;const ot=["iconify"];nt.prefix!==""&&ot.push("iconify--"+nt.prefix),nt.provider!==""&&ot.push("iconify--"+nt.provider),this._setData({data:tt,classes:ot}),this.props.onLoad&&this.props.onLoad(et)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(j){j.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const j=this.props,_e=this.state.icon;if(_e===null)return j.children?j.children:React$2.createElement("span",{});let et=j;return _e.classes&&(et={...j,className:(typeof j.className=="string"?j.className+" ":"")+_e.classes.join(" ")}),render({...defaultIconProps,..._e.data},et,j._inline,j._ref)}}const Icon=React$2.forwardRef(function(j,_e){const et={...j,_ref:_e,_inline:!1};return React$2.createElement(IconComponent,et)});React$2.forwardRef(function(j,_e){const et={...j,_ref:_e,_inline:!0};return React$2.createElement(IconComponent,et)});const data$w={width:24,height:24,body:'<path fill="currentColor" d="M9.575 12L5.7 8.1q-.275-.275-.288-.688T5.7 6.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.062.375t-.213.325l-4.6 4.6q-.275.275-.687.288T5.7 17.3q-.275-.275-.275-.7t.275-.7L9.575 12Zm6.6 0L12.3 8.1q-.275-.275-.288-.688T12.3 6.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.6 4.6q-.275.275-.687.288T12.3 17.3q-.275-.275-.275-.7t.275-.7l3.875-3.9Z"/>'};var appleIphone=/iPhone/i,appleIpod=/iPod/i,appleTablet=/iPad/i,appleUniversal=/\biOS-universal(?:.+)Mac\b/i,androidPhone=/\bAndroid(?:.+)Mobile\b/i,androidTablet=/Android/i,amazonPhone=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,amazonTablet=/Silk/i,windowsPhone=/Windows Phone/i,windowsTablet=/\bWindows(?:.+)ARM\b/i,otherBlackBerry=/BlackBerry/i,otherBlackBerry10=/BB10/i,otherOpera=/Opera Mini/i,otherChrome=/\b(CriOS|Chrome)(?:.+)Mobile/i,otherFirefox=/Mobile(?:.+)Firefox\b/i,isAppleTabletOnIos13=function(a){return typeof a<"u"&&a.platform==="MacIntel"&&typeof a.maxTouchPoints=="number"&&a.maxTouchPoints>1&&typeof MSStream>"u"};function createMatch(a){return function(j){return j.test(a)}}function isMobile(a){var j={userAgent:"",platform:"",maxTouchPoints:0};!a&&typeof navigator<"u"?j={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof a=="string"?j.userAgent=a:a&&a.userAgent&&(j={userAgent:a.userAgent,platform:a.platform,maxTouchPoints:a.maxTouchPoints||0});var _e=j.userAgent,et=_e.split("[FBAN");typeof et[1]<"u"&&(_e=et[0]),et=_e.split("Twitter"),typeof et[1]<"u"&&(_e=et[0]);var nt=createMatch(_e),tt={apple:{phone:nt(appleIphone)&&!nt(windowsPhone),ipod:nt(appleIpod),tablet:!nt(appleIphone)&&(nt(appleTablet)||isAppleTabletOnIos13(j))&&!nt(windowsPhone),universal:nt(appleUniversal),device:(nt(appleIphone)||nt(appleIpod)||nt(appleTablet)||nt(appleUniversal)||isAppleTabletOnIos13(j))&&!nt(windowsPhone)},amazon:{phone:nt(amazonPhone),tablet:!nt(amazonPhone)&&nt(amazonTablet),device:nt(amazonPhone)||nt(amazonTablet)},android:{phone:!nt(windowsPhone)&&nt(amazonPhone)||!nt(windowsPhone)&&nt(androidPhone),tablet:!nt(windowsPhone)&&!nt(amazonPhone)&&!nt(androidPhone)&&(nt(amazonTablet)||nt(androidTablet)),device:!nt(windowsPhone)&&(nt(amazonPhone)||nt(amazonTablet)||nt(androidPhone)||nt(androidTablet))||nt(/\bokhttp\b/i)},windows:{phone:nt(windowsPhone),tablet:nt(windowsTablet),device:nt(windowsPhone)||nt(windowsTablet)},other:{blackberry:nt(otherBlackBerry),blackberry10:nt(otherBlackBerry10),opera:nt(otherOpera),firefox:nt(otherFirefox),chrome:nt(otherChrome),device:nt(otherBlackBerry)||nt(otherBlackBerry10)||nt(otherOpera)||nt(otherFirefox)||nt(otherChrome)},any:!1,phone:!1,tablet:!1};return tt.any=tt.apple.device||tt.android.device||tt.windows.device||tt.other.device,tt.phone=tt.apple.phone||tt.android.phone||tt.windows.phone,tt.tablet=tt.apple.tablet||tt.android.tablet||tt.windows.tablet,tt}const DID_WALLET_TAG="ABTWallet",ARC_SPHERE_TAG="ArcSphere";function getDIDWalletVersion(a){var nt;const _e=new RegExp(`${DID_WALLET_TAG}/(?<version>[0-9.]+)`,"g").exec(a);return(nt=_e==null?void 0:_e.groups)==null?void 0:nt.version}function useBrowser(){var _e;const a=(_e=window==null?void 0:window.navigator)==null?void 0:_e.userAgent,[j]=reactExports.useState({wallet:a.indexOf(DID_WALLET_TAG)>-1||a.indexOf(ARC_SPHERE_TAG)>-1,walletVersion:getDIDWalletVersion(a),wechat:/MicroMessenger/i.test(a),mobile:{apple:{phone:!1,ipod:!1,tablet:!1,device:!1},amazon:{phone:!1,tablet:!1,device:!1},android:{phone:!1,tablet:!1,device:!1},windows:{phone:!1,tablet:!1,device:!1},other:{blackberry:!1,blackberry10:!1,opera:!1,firefox:!1,chrome:!1,device:!1},phone:!1,tablet:!1,any:!1,...isMobile(a)}});return j}const extendedColors={did:{contained:{backgroundColor:colors$2.did.primary,color:colors$2.common.white},outlined:{borderColor:colors$2.did.primary,color:colors$2.did.primary}},reverse:{contained:{backgroundColor:"rgba(255, 255, 255, 0.9)",color:colors$2.grey[900]},outlined:{borderColor:colors$2.grey[900],color:colors$2.grey[900]}}};function wrap$1(a){function j(_e){const et=mergeProps(_e,j,["style"]),{children:nt,rounded:tt,loading:ot,disabled:ct,style:ft,forwardedRef:ht,color:dt,...yt}=et,Tt=ct||ot;let St=16;switch(yt.size){case"small":St=14;break;case"large":St=18;break}const At=extendedColors[dt]&&extendedColors[dt][yt.variant],Rt=Object.assign({},{boxShadow:"none",textTransform:"capitalize",...At},ft);let It=yt;return At||(It={...It,color:dt}),tt&&(Rt.borderRadius="100vw"),jsxRuntimeExports.jsxs(a,{style:Rt,ref:ht,disabled:Tt,...It,children:[ot&&jsxRuntimeExports.jsx(CircularProgress,{size:St,style:{marginRight:5}}),nt]})}return j.propTypes={children:PropTypes.any.isRequired,style:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),size:PropTypes.oneOf(["large","medium","small"]),forwardedRef:PropTypes.any,rounded:PropTypes.bool},j.defaultProps={rounded:!1,size:"medium",forwardedRef:null,style:{}},reactExports.forwardRef((_e,et)=>jsxRuntimeExports.jsx(j,{..._e,forwardedRef:et}))}const ButtonComponent=wrap$1(Button$1);function Dialog({children:a,title:j,prepend:_e,toolbar:et,actions:nt,showCloseButton:tt,actionsPosition:ot,PaperProps:ct,slotProps:ft,...ht}){const dt=useTheme$1(),yt=useMediaQuery(dt.breakpoints.down("md")),Tt=j||tt||et,St=(Rt,It)=>{const{onClose:Ct}=ht;Ct&&Ct(Rt,It)};ct.style=Object.assign({minWidth:300,minHeight:300},ct.style);const At=jsxRuntimeExports.jsx(IconButton,{className:"ux-dialog_closeButton",onClick:Rt=>St(Rt,"closeButton"),children:jsxRuntimeExports.jsx(default_1$7,{})});return jsxRuntimeExports.jsxs(StyledMuiDialog,{fullScreen:yt,onClose:St,PaperProps:ct,...ht,children:[Tt&&jsxRuntimeExports.jsxs(Header$1,{...ft.header,className:"ux-dialog_header",isMobile:yt,children:[jsxRuntimeExports.jsxs("div",{className:"ux-dialog_left",children:[tt&&yt&&At,_e&&jsxRuntimeExports.jsx("div",{className:"ux-dialog_prepend",children:_e}),j&&jsxRuntimeExports.jsx(Typography,{variant:"h6",className:"ux-dialog_title",children:j})]}),jsxRuntimeExports.jsxs("div",{className:"ux-dialog_right",children:[jsxRuntimeExports.jsx("div",{className:"ux-dialog_toolbar",children:et}),tt&&!yt&&At]})]}),jsxRuntimeExports.jsx(DialogContent,{...ft.content,children:a}),nt&&jsxRuntimeExports.jsx(DialogActions,{className:`ux-dialog_actions--${ot}`,children:nt})]})}Dialog.propTypes={children:PropTypes.node.isRequired,title:PropTypes.node,prepend:PropTypes.node,toolbar:PropTypes.node,actions:PropTypes.node,showCloseButton:PropTypes.bool,actionsPosition:PropTypes.oneOf(["left","center","right"]),PaperProps:PropTypes.object,slotProps:PropTypes.shape({content:PropTypes.object,header:PropTypes.object}),onClose:PropTypes.func};Dialog.defaultProps={title:"",prepend:null,toolbar:null,actions:null,showCloseButton:!0,actionsPosition:"right",PaperProps:{},slotProps:{},onClose:void 0};const StyledMuiDialog=styled(Dialog$1)`
|
|
260
|
+
0 22,12A10,10 0 0,0 12,2Z`}))},iconStyles={fontSize:20,marginInlineEnd:8},defaultIconVariants={default:void 0,success:React$2.createElement(CheckIcon,{style:iconStyles}),warning:React$2.createElement(WarningIcon,{style:iconStyles}),error:React$2.createElement(ErrorIcon,{style:iconStyles}),info:React$2.createElement(InfoIcon,{style:iconStyles})};function createChainedFunction(a,j){return a.reduce(function(_e,et){return et==null?_e:function(){for(var tt=arguments.length,ot=new Array(tt),ct=0;ct<tt;ct++)ot[ct]=arguments[ct];var ft=[].concat(ot);j&&ft.indexOf(j)===-1&&ft.push(j),_e.apply(this,ft),et.apply(this,ft)}},function(){})}var useEnhancedEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useEventCallback(a){var j=reactExports.useRef(a);return useEnhancedEffect(function(){j.current=a}),reactExports.useCallback(function(){return j.current.apply(void 0,arguments)},[])}var Snackbar=reactExports.forwardRef(function(a,j){var _e=a.children,et=a.autoHideDuration,nt=a.ClickAwayListenerProps,tt=a.disableWindowBlurListener,ot=tt===void 0?!1:tt,ct=a.onClose,ft=a.onMouseEnter,ht=a.onMouseLeave,dt=a.open,yt=a.resumeHideDuration,Tt=_objectWithoutPropertiesLoose(a,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),St=reactExports.useRef(),At=useEventCallback(function(){ct&&ct.apply(void 0,arguments)}),Rt=useEventCallback(function(Kt){!ct||Kt==null||(clearTimeout(St.current),St.current=setTimeout(function(){At(null,REASONS.TIMEOUT)},Kt))});reactExports.useEffect(function(){return dt&&Rt(et),function(){clearTimeout(St.current)}},[dt,et,Rt]);var It=function(){clearTimeout(St.current)},Ct=reactExports.useCallback(function(){et!=null&&Rt(yt??et*.5)},[et,yt,Rt]),kt=function(jt){ft&&ft(jt),It()},Pt=function(jt){ht&&ht(jt),Ct()},Bt=function(jt){ct&&ct(jt,REASONS.CLICKAWAY)};return reactExports.useEffect(function(){if(!ot&&dt)return window.addEventListener("focus",Ct),window.addEventListener("blur",It),function(){window.removeEventListener("focus",Ct),window.removeEventListener("blur",It)}},[ot,Ct,dt]),reactExports.createElement(ClickAwayListener,_extends({onClickAway:Bt},nt),reactExports.createElement("div",_extends({onMouseEnter:kt,onMouseLeave:Pt,ref:j},Tt),_e))}),componentName$1="SnackbarItem",classes$1$1={contentRoot:componentName$1+"-contentRoot",lessPadding:componentName$1+"-lessPadding",variantSuccess:componentName$1+"-variantSuccess",variantError:componentName$1+"-variantError",variantInfo:componentName$1+"-variantInfo",variantWarning:componentName$1+"-variantWarning",message:componentName$1+"-message",action:componentName$1+"-action",wrappedRoot:componentName$1+"-wrappedRoot"},StyledSnackbar=styled$1(Snackbar)(function(a){var j,_e=a.theme,et=_e.palette.mode||_e.palette.type,nt=emphasize$1(_e.palette.background.default,et==="light"?.8:.98);return j={},j["&."+classes$1$1.wrappedRoot]={position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0},j["."+classes$1$1.contentRoot]=_extends({},_e.typography.body2,{backgroundColor:nt,color:_e.palette.getContrastText(nt),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),j["."+classes$1$1.lessPadding]={paddingLeft:8*2.5},j["."+classes$1$1.variantSuccess]={backgroundColor:"#43a047",color:"#fff"},j["."+classes$1$1.variantError]={backgroundColor:"#d32f2f",color:"#fff"},j["."+classes$1$1.variantInfo]={backgroundColor:"#2196f3",color:"#fff"},j["."+classes$1$1.variantWarning]={backgroundColor:"#ff9800",color:"#fff"},j["."+classes$1$1.message]={display:"flex",alignItems:"center",padding:"8px 0"},j["."+classes$1$1.action]={display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},j}),SnackbarItem=function(j){var _e=j.classes,et=_objectWithoutPropertiesLoose(j,["classes"]),nt=reactExports.useRef(),tt=reactExports.useState(!0),ot=tt[0],ct=tt[1];reactExports.useEffect(function(){return function(){nt.current&&clearTimeout(nt.current)}},[]);var ft=createChainedFunction([et.snack.onClose,et.onClose],et.snack.key),ht=function(){et.snack.requestClose&&ft(null,REASONS.INSTRCUTED)},dt=function(){nt.current=setTimeout(function(){ct(!ot)},125)},yt=et.style,Tt=et.ariaAttributes,St=et.className,At=et.hideIconVariant,Rt=et.iconVariant,It=et.snack,Ct=et.action,kt=et.content,Pt=et.TransitionComponent,Bt=et.TransitionProps,Kt=et.transitionDuration,jt=_objectWithoutPropertiesLoose(et,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),zt=It.key,Gt=It.open,tn=It.className,hn=It.variant,wt=It.content,rt=It.action,st=It.ariaAttributes,ut=It.anchorOrigin,pt=It.message,mt=It.TransitionComponent,$t=It.TransitionProps,xt=It.transitionDuration,vt=_objectWithoutPropertiesLoose(It,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),it=_extends({},defaultIconVariants,{},Rt)[hn],bt=_extends({"aria-describedby":"notistack-snackbar"},objectMerge(st,Tt)),Mt=mt||Pt||DEFAULTS.TransitionComponent,Lt=objectMerge(xt,Kt,DEFAULTS.transitionDuration),Ht=_extends({direction:getTransitionDirection(ut)},objectMerge($t,Bt)),Ot=rt||Ct;typeof Ot=="function"&&(Ot=Ot(zt));var Jt=wt||kt;typeof Jt=="function"&&(Jt=Jt(zt,It.message));var Ft=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce(function(Zt,nn){var cn;return _extends({},Zt,(cn={},cn[nn]=createChainedFunction([et.snack[nn],et[nn]],et.snack.key),cn))},{});return React$2.createElement(Collapse,{unmountOnExit:!0,timeout:175,in:ot,onExited:Ft.onExited},React$2.createElement(StyledSnackbar,Object.assign({},jt,vt,{open:Gt,className:clsx(_e.root,classes$1$1.wrappedRoot,_e[transformer.toAnchorOrigin(ut)]),onClose:ft}),React$2.createElement(Mt,Object.assign({appear:!0,in:Gt,timeout:Lt},Ht,{onExit:Ft.onExit,onExiting:Ft.onExiting,onExited:dt,onEnter:Ft.onEnter,onEntering:Ft.onEntering,onEntered:createChainedFunction([Ft.onEntered,ht])}),Jt||React$2.createElement(SnackbarContent,Object.assign({},bt,{role:"alert",style:yt,className:clsx(classes$1$1.contentRoot,classes$1$1[transformer.toVariant(hn)],_e[transformer.toVariant(hn)],St,tn,!At&&it&&classes$1$1.lessPadding)}),React$2.createElement("div",{id:bt["aria-describedby"],className:classes$1$1.message},At?null:it,pt),Ot&&React$2.createElement("div",{className:classes$1$1.action},Ot)))))},collapse={container:"& > .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},xsWidthMargin=16,componentName$2="SnackbarContainer",classes$2={root:componentName$2+"-root",rootDense:componentName$2+"-rootDense",top:componentName$2+"-top",bottom:componentName$2+"-bottom",left:componentName$2+"-left",right:componentName$2+"-right",center:componentName$2+"-center"},Root$1$1=styled$1("div")(function(a){var j,_e,et,nt,tt,ot,ct=a.theme;return ot={},ot["&."+classes$2.root]=(j={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:ct.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},j[collapse.container]={pointerEvents:"all"},j[collapse.wrapper]={padding:SNACKBAR_INDENTS.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},j.maxWidth="calc(100% - "+SNACKBAR_INDENTS.view.default*2+"px)",j[ct.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+xsWidthMargin*2+"px)"},j),ot["&."+classes$2.rootDense]=(_e={},_e[collapse.wrapper]={padding:SNACKBAR_INDENTS.snackbar.dense+"px 0px"},_e),ot["&."+classes$2.top]={top:SNACKBAR_INDENTS.view.default-SNACKBAR_INDENTS.snackbar.default,flexDirection:"column"},ot["&."+classes$2.bottom]={bottom:SNACKBAR_INDENTS.view.default-SNACKBAR_INDENTS.snackbar.default,flexDirection:"column-reverse"},ot["&."+classes$2.left]=(et={left:SNACKBAR_INDENTS.view.default},et[ct.breakpoints.up("sm")]={alignItems:"flex-start"},et[ct.breakpoints.down("sm")]={left:xsWidthMargin+"px"},et),ot["&."+classes$2.right]=(nt={right:SNACKBAR_INDENTS.view.default},nt[ct.breakpoints.up("sm")]={alignItems:"flex-end"},nt[ct.breakpoints.down("sm")]={right:xsWidthMargin+"px"},nt),ot["&."+classes$2.center]=(tt={left:"50%",transform:"translateX(-50%)"},tt[ct.breakpoints.up("sm")]={alignItems:"center"},tt),ot}),SnackbarContainer=function(j){var _e=j.className,et=j.anchorOrigin,nt=j.dense,tt=_objectWithoutPropertiesLoose(j,["className","anchorOrigin","dense"]),ot=clsx(classes$2[et.vertical],classes$2[et.horizontal],classes$2.root,_e,nt&&classes$2.rootDense);return React$2.createElement(Root$1$1,Object.assign({className:ot},tt))},SnackbarContainer$1=React$2.memo(SnackbarContainer),SnackbarProvider=function(a){_inheritsLoose$1(j,a);function j(et){var nt;return nt=a.call(this,et)||this,nt.enqueueSnackbar=function(tt,ot){ot===void 0&&(ot={});var ct=ot,ft=ct.key,ht=ct.preventDuplicate,dt=_objectWithoutPropertiesLoose(ct,["key","preventDuplicate"]),yt=isDefined(ft),Tt=yt?ft:new Date().getTime()+Math.random(),St=merge$3(dt,nt.props,DEFAULTS),At=_extends({key:Tt},dt,{message:tt,open:!0,entered:!1,requestClose:!1,variant:St("variant"),anchorOrigin:St("anchorOrigin"),autoHideDuration:St("autoHideDuration")});return dt.persist&&(At.autoHideDuration=void 0),nt.setState(function(Rt){if(ht===void 0&&nt.props.preventDuplicate||ht){var It=function(Bt){return yt?Bt.key===ft:Bt.message===tt},Ct=Rt.queue.findIndex(It)>-1,kt=Rt.snacks.findIndex(It)>-1;if(Ct||kt)return Rt}return nt.handleDisplaySnack(_extends({},Rt,{queue:[].concat(Rt.queue,[At])}))}),Tt},nt.handleDisplaySnack=function(tt){var ot=tt.snacks;return ot.length>=nt.maxSnack?nt.handleDismissOldest(tt):nt.processQueue(tt)},nt.processQueue=function(tt){var ot=tt.queue,ct=tt.snacks;return ot.length>0?_extends({},tt,{snacks:[].concat(ct,[ot[0]]),queue:ot.slice(1,ot.length)}):tt},nt.handleDismissOldest=function(tt){if(tt.snacks.some(function(dt){return!dt.open||dt.requestClose}))return tt;var ot=!1,ct=!1,ft=tt.snacks.reduce(function(dt,yt){return dt+(yt.open&&yt.persist?1:0)},0);ft===nt.maxSnack&&(ct=!0);var ht=tt.snacks.map(function(dt){return!ot&&(!dt.persist||ct)?(ot=!0,dt.entered?(dt.onClose&&dt.onClose(null,REASONS.MAXSNACK,dt.key),nt.props.onClose&&nt.props.onClose(null,REASONS.MAXSNACK,dt.key),_extends({},dt,{open:!1})):_extends({},dt,{requestClose:!0})):_extends({},dt)});return _extends({},tt,{snacks:ht})},nt.handleEnteredSnack=function(tt,ot,ct){if(!isDefined(ct))throw new Error("handleEnteredSnack Cannot be called with undefined key");nt.setState(function(ft){var ht=ft.snacks;return{snacks:ht.map(function(dt){return dt.key===ct?_extends({},dt,{entered:!0}):_extends({},dt)})}})},nt.handleCloseSnack=function(tt,ot,ct){if(nt.props.onClose&&nt.props.onClose(tt,ot,ct),ot!==REASONS.CLICKAWAY){var ft=ct===void 0;nt.setState(function(ht){var dt=ht.snacks,yt=ht.queue;return{snacks:dt.map(function(Tt){return!ft&&Tt.key!==ct?_extends({},Tt):Tt.entered?_extends({},Tt,{open:!1}):_extends({},Tt,{requestClose:!0})}),queue:yt.filter(function(Tt){return Tt.key!==ct})}})}},nt.closeSnackbar=function(tt){var ot=nt.state.snacks.find(function(ct){return ct.key===tt});isDefined(tt)&&ot&&ot.onClose&&ot.onClose(null,REASONS.INSTRUCTED,tt),nt.handleCloseSnack(null,REASONS.INSTRUCTED,tt)},nt.handleExitedSnack=function(tt,ot,ct){var ft=ot||ct;if(!isDefined(ft))throw new Error("handleExitedSnack Cannot be called with undefined key");nt.setState(function(ht){var dt=nt.processQueue(_extends({},ht,{snacks:ht.snacks.filter(function(yt){return yt.key!==ft})}));return dt.queue.length===0?dt:nt.handleDismissOldest(dt)})},nt.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:nt.enqueueSnackbar.bind(_assertThisInitialized(nt)),closeSnackbar:nt.closeSnackbar.bind(_assertThisInitialized(nt))}},nt}var _e=j.prototype;return _e.render=function(){var nt=this,tt=this.state.contextValue,ot=this.props,ct=ot.iconVariant,ft=ot.dense,ht=ft===void 0?DEFAULTS.dense:ft,dt=ot.hideIconVariant,yt=dt===void 0?DEFAULTS.hideIconVariant:dt,Tt=ot.domRoot,St=ot.children,At=ot.classes,Rt=At===void 0?{}:At,It=_objectWithoutPropertiesLoose(ot,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),Ct=this.state.snacks.reduce(function(Pt,Bt){var Kt,jt=originKeyExtractor(Bt.anchorOrigin),zt=Pt[jt]||[];return _extends({},Pt,(Kt={},Kt[jt]=[].concat(zt,[Bt]),Kt))},{}),kt=Object.keys(Ct).map(function(Pt){var Bt=Ct[Pt];return React$2.createElement(SnackbarContainer$1,{key:Pt,dense:ht,anchorOrigin:Bt[0].anchorOrigin,className:clsx(Rt.containerRoot,Rt[transformer.toContainerAnchorOrigin(Pt)])},Bt.map(function(Kt){return React$2.createElement(SnackbarItem,Object.assign({},It,{key:Kt.key,snack:Kt,dense:ht,iconVariant:ct,hideIconVariant:yt,classes:omitContainerKeys(Rt),onClose:nt.handleCloseSnack,onExited:createChainedFunction([nt.handleExitedSnack,nt.props.onExited]),onEntered:createChainedFunction([nt.handleEnteredSnack,nt.props.onEntered])}))}))});return React$2.createElement(SnackbarContext.Provider,{value:tt},St,Tt?reactDomExports.createPortal(kt,Tt):kt)},_createClass(j,[{key:"maxSnack",get:function(){return this.props.maxSnack||DEFAULTS.maxSnack}}]),j}(reactExports.Component),useSnackbar=function(){return reactExports.useContext(SnackbarContext)},Close={},createSvgIcon={};const require$$0$7=getAugmentedNamespace(utils$p);var hasRequiredCreateSvgIcon;function requireCreateSvgIcon(){return hasRequiredCreateSvgIcon||(hasRequiredCreateSvgIcon=1,function(a){"use client";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return j.createSvgIcon}});var j=require$$0$7}(createSvgIcon)),createSvgIcon}var _interopRequireDefault$7=interopRequireDefaultExports;Object.defineProperty(Close,"__esModule",{value:!0});var default_1$7=Close.default=void 0,_createSvgIcon$4=_interopRequireDefault$7(requireCreateSvgIcon()),_jsxRuntime$6=jsxRuntimeExports;default_1$7=Close.default=(0,_createSvgIcon$4.default)((0,_jsxRuntime$6.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function noop$6(){}var noop_1=noop$6;const noop$7=getDefaultExportFromCjs$1(noop_1);let success=noop$7,error=noop$7,warning=noop$7,info=noop$7;const genFn=(a,j)=>(_e,et={})=>{a(_e,{autoHideDuration:5e3,variant:j,...et})};function ToastProvider({children:a}){const j=reactExports.createRef(),_e=et=>()=>{j.current.closeSnackbar(et)};return jsxRuntimeExports.jsxs(SnackbarProvider,{anchorOrigin:{vertical:"top",horizontal:"right"},ref:j,action:et=>jsxRuntimeExports.jsx(IconButton,{"aria-label":"close",color:"inherit",onClick:_e(et),size:"large",children:jsxRuntimeExports.jsx(default_1$7,{style:{fontSize:16}})},"close"),children:[jsxRuntimeExports.jsx(Toast,{}),a]})}function Toast(){const{enqueueSnackbar:a}=useSnackbar();return success=genFn(a,"success"),error=genFn(a,"error"),warning=genFn(a,"warning"),info=genFn(a,"info"),null}const Toast$1={success:(a,j={},..._e)=>success(a,j,..._e),error:(a,j={autoHideDuration:15e3},..._e)=>error(a,j,..._e),warning:(a,j={},..._e)=>warning(a,j,..._e),info:(a,j={},..._e)=>info(a,j,..._e)};var flat=flatten$4;flatten$4.flatten=flatten$4;flatten$4.unflatten=unflatten;function isBuffer$7(a){return a&&a.constructor&&typeof a.constructor.isBuffer=="function"&&a.constructor.isBuffer(a)}function keyIdentity(a){return a}function flatten$4(a,j){j=j||{};const _e=j.delimiter||".",et=j.maxDepth,nt=j.transformKey||keyIdentity,tt={};function ot(ct,ft,ht){ht=ht||1,Object.keys(ct).forEach(function(dt){const yt=ct[dt],Tt=j.safe&&Array.isArray(yt),St=Object.prototype.toString.call(yt),At=isBuffer$7(yt),Rt=St==="[object Object]"||St==="[object Array]",It=ft?ft+_e+nt(dt):nt(dt);if(!Tt&&!At&&Rt&&Object.keys(yt).length&&(!j.maxDepth||ht<et))return ot(yt,It,ht+1);tt[It]=yt})}return ot(a),tt}function unflatten(a,j){j=j||{};const _e=j.delimiter||".",et=j.overwrite||!1,nt=j.transformKey||keyIdentity,tt={};if(isBuffer$7(a)||Object.prototype.toString.call(a)!=="[object Object]")return a;function ct(dt){const yt=Number(dt);return isNaN(yt)||dt.indexOf(".")!==-1||j.object?dt:yt}function ft(dt,yt,Tt){return Object.keys(Tt).reduce(function(St,At){return St[dt+_e+At]=Tt[At],St},yt)}function ht(dt){const yt=Object.prototype.toString.call(dt),Tt=yt==="[object Array]",St=yt==="[object Object]";if(dt){if(Tt)return!dt.length;if(St)return!Object.keys(dt).length}else return!0}return a=Object.keys(a).reduce(function(dt,yt){const Tt=Object.prototype.toString.call(a[yt]);return!(Tt==="[object Object]"||Tt==="[object Array]")||ht(a[yt])?(dt[yt]=a[yt],dt):ft(yt,dt,flatten$4(a[yt],j))},{}),Object.keys(a).forEach(function(dt){const yt=dt.split(_e).map(nt);let Tt=ct(yt.shift()),St=ct(yt[0]),At=tt;for(;St!==void 0;){if(Tt==="__proto__")return;const Rt=Object.prototype.toString.call(At[Tt]),It=Rt==="[object Object]"||Rt==="[object Array]";if(!et&&!It&&typeof At[Tt]<"u")return;(et&&!It||!et&&At[Tt]==null)&&(At[Tt]=typeof St=="number"&&!j.object?[]:{}),At=At[Tt],yt.length>0&&(Tt=ct(yt.shift()),St=ct(yt[0]))}At[Tt]=unflatten(a[dt],j)}),tt}const Se=getDefaultExportFromCjs$1(flat);var ListCache$4=_ListCache;function stackClear$1(){this.__data__=new ListCache$4,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(a){var j=this.__data__,_e=j.delete(a);return this.size=j.size,_e}var _stackDelete=stackDelete$1;function stackGet$1(a){return this.__data__.get(a)}var _stackGet=stackGet$1;function stackHas$1(a){return this.__data__.has(a)}var _stackHas=stackHas$1,ListCache$3=_ListCache,Map$4=_Map,MapCache$3=_MapCache,LARGE_ARRAY_SIZE$1=200;function stackSet$1(a,j){var _e=this.__data__;if(_e instanceof ListCache$3){var et=_e.__data__;if(!Map$4||et.length<LARGE_ARRAY_SIZE$1-1)return et.push([a,j]),this.size=++_e.size,this;_e=this.__data__=new MapCache$3(et)}return _e.set(a,j),this.size=_e.size,this}var _stackSet=stackSet$1,ListCache$2=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$4(a){var j=this.__data__=new ListCache$2(a);this.size=j.size}Stack$4.prototype.clear=stackClear;Stack$4.prototype.delete=stackDelete;Stack$4.prototype.get=stackGet;Stack$4.prototype.has=stackHas;Stack$4.prototype.set=stackSet;var _Stack=Stack$4,getNative$6=_getNative,defineProperty$4=function(){try{var a=getNative$6(Object,"defineProperty");return a({},"",{}),a}catch{}}(),_defineProperty$2=defineProperty$4,defineProperty$3=_defineProperty$2;function baseAssignValue$3(a,j,_e){j=="__proto__"&&defineProperty$3?defineProperty$3(a,j,{configurable:!0,enumerable:!0,value:_e,writable:!0}):a[j]=_e}var _baseAssignValue=baseAssignValue$3,baseAssignValue$2=_baseAssignValue,eq$8=eq_1$1;function assignMergeValue$2(a,j,_e){(_e!==void 0&&!eq$8(a[j],_e)||_e===void 0&&!(j in a))&&baseAssignValue$2(a,j,_e)}var _assignMergeValue=assignMergeValue$2;function createBaseFor$1(a){return function(j,_e,et){for(var nt=-1,tt=Object(j),ot=et(j),ct=ot.length;ct--;){var ft=ot[a?ct:++nt];if(_e(tt[ft],ft,tt)===!1)break}return j}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$2=createBaseFor(),_baseFor=baseFor$2,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(a,j){var _e=_root,et=j&&!j.nodeType&&j,nt=et&&!0&&a&&!a.nodeType&&a,tt=nt&&nt.exports===et,ot=tt?_e.Buffer:void 0,ct=ot?ot.allocUnsafe:void 0;function ft(ht,dt){if(dt)return ht.slice();var yt=ht.length,Tt=ct?ct(yt):new ht.constructor(yt);return ht.copy(Tt),Tt}a.exports=ft})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports,root$8=_root,Uint8Array$3=root$8.Uint8Array,_Uint8Array=Uint8Array$3,Uint8Array$2=_Uint8Array;function cloneArrayBuffer$3(a){var j=new a.constructor(a.byteLength);return new Uint8Array$2(j).set(new Uint8Array$2(a)),j}var _cloneArrayBuffer=cloneArrayBuffer$3,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneTypedArray$2(a,j){var _e=j?cloneArrayBuffer$2(a.buffer):a.buffer;return new a.constructor(_e,a.byteOffset,a.length)}var _cloneTypedArray=cloneTypedArray$2;function copyArray$2(a,j){var _e=-1,et=a.length;for(j||(j=Array(et));++_e<et;)j[_e]=a[_e];return j}var _copyArray=copyArray$2,isObject$k=isObject_1,objectCreate$1=Object.create,baseCreate$1=function(){function a(){}return function(j){if(!isObject$k(j))return{};if(objectCreate$1)return objectCreate$1(j);a.prototype=j;var _e=new a;return a.prototype=void 0,_e}}(),_baseCreate=baseCreate$1;function overArg$2(a,j){return function(_e){return a(j(_e))}}var _overArg=overArg$2,overArg$1=_overArg,getPrototype$3=overArg$1(Object.getPrototypeOf,Object),_getPrototype=getPrototype$3,objectProto$d=Object.prototype;function isPrototype$4(a){var j=a&&a.constructor,_e=typeof j=="function"&&j.prototype||objectProto$d;return a===_e}var _isPrototype=isPrototype$4,baseCreate=_baseCreate,getPrototype$2=_getPrototype,isPrototype$3=_isPrototype;function initCloneObject$2(a){return typeof a.constructor=="function"&&!isPrototype$3(a)?baseCreate(getPrototype$2(a)):{}}var _initCloneObject=initCloneObject$2,baseGetTag$6=_baseGetTag,isObjectLike$d=isObjectLike_1,argsTag$3="[object Arguments]";function baseIsArguments$1(a){return isObjectLike$d(a)&&baseGetTag$6(a)==argsTag$3}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$c=isObjectLike_1,objectProto$c=Object.prototype,hasOwnProperty$g=objectProto$c.hasOwnProperty,propertyIsEnumerable$1=objectProto$c.propertyIsEnumerable,isArguments$7=baseIsArguments(function(){return arguments}())?baseIsArguments:function(a){return isObjectLike$c(a)&&hasOwnProperty$g.call(a,"callee")&&!propertyIsEnumerable$1.call(a,"callee")},isArguments_1=isArguments$7,MAX_SAFE_INTEGER$4=9007199254740991;function isLength$3(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=MAX_SAFE_INTEGER$4}var isLength_1=isLength$3,isFunction$5=isFunction_1,isLength$2=isLength_1;function isArrayLike$7(a){return a!=null&&isLength$2(a.length)&&!isFunction$5(a)}var isArrayLike_1=isArrayLike$7,isArrayLike$6=isArrayLike_1,isObjectLike$b=isObjectLike_1;function isArrayLikeObject$3(a){return isObjectLike$b(a)&&isArrayLike$6(a)}var isArrayLikeObject_1=isArrayLikeObject$3,isBuffer$6={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$6.exports;(function(a,j){var _e=_root,et=stubFalse_1,nt=j&&!j.nodeType&&j,tt=nt&&!0&&a&&!a.nodeType&&a,ot=tt&&tt.exports===nt,ct=ot?_e.Buffer:void 0,ft=ct?ct.isBuffer:void 0,ht=ft||et;a.exports=ht})(isBuffer$6,isBuffer$6.exports);var isBufferExports=isBuffer$6.exports,baseGetTag$5=_baseGetTag,getPrototype$1=_getPrototype,isObjectLike$a=isObjectLike_1,objectTag$4="[object Object]",funcProto$2=Function.prototype,objectProto$b=Object.prototype,funcToString$2=funcProto$2.toString,hasOwnProperty$f=objectProto$b.hasOwnProperty,objectCtorString=funcToString$2.call(Object);function isPlainObject$3(a){if(!isObjectLike$a(a)||baseGetTag$5(a)!=objectTag$4)return!1;var j=getPrototype$1(a);if(j===null)return!0;var _e=hasOwnProperty$f.call(j,"constructor")&&j.constructor;return typeof _e=="function"&&_e instanceof _e&&funcToString$2.call(_e)==objectCtorString}var isPlainObject_1=isPlainObject$3;const isPlainObject$4=getDefaultExportFromCjs$1(isPlainObject_1);var baseGetTag$4=_baseGetTag,isLength$1=isLength_1,isObjectLike$9=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$4="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$3="[object Function]",mapTag$6="[object Map]",numberTag$4="[object Number]",objectTag$3="[object Object]",regexpTag$3="[object RegExp]",setTag$6="[object Set]",stringTag$4="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$4]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$3]=typedArrayTags[mapTag$6]=typedArrayTags[numberTag$4]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$6]=typedArrayTags[stringTag$4]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(a){return isObjectLike$9(a)&&isLength$1(a.length)&&!!typedArrayTags[baseGetTag$4(a)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$5(a){return function(j){return a(j)}}var _baseUnary=baseUnary$5,_nodeUtil={exports:{}};_nodeUtil.exports;(function(a,j){var _e=_freeGlobal,et=j&&!j.nodeType&&j,nt=et&&!0&&a&&!a.nodeType&&a,tt=nt&&nt.exports===et,ot=tt&&_e.process,ct=function(){try{var ft=nt&&nt.require&&nt.require("util").types;return ft||ot&&ot.binding&&ot.binding("util")}catch{}}();a.exports=ct})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$4=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$6=nodeIsTypedArray?baseUnary$4(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$6;function safeGet$2(a,j){if(!(j==="constructor"&&typeof a[j]=="function")&&j!="__proto__")return a[j]}var _safeGet=safeGet$2,baseAssignValue$1=_baseAssignValue,eq$7=eq_1$1,objectProto$a=Object.prototype,hasOwnProperty$e=objectProto$a.hasOwnProperty;function assignValue$4(a,j,_e){var et=a[j];(!(hasOwnProperty$e.call(a,j)&&eq$7(et,_e))||_e===void 0&&!(j in a))&&baseAssignValue$1(a,j,_e)}var _assignValue=assignValue$4,assignValue$3=_assignValue,baseAssignValue=_baseAssignValue;function copyObject$6(a,j,_e,et){var nt=!_e;_e||(_e={});for(var tt=-1,ot=j.length;++tt<ot;){var ct=j[tt],ft=et?et(_e[ct],a[ct],ct,_e,a):void 0;ft===void 0&&(ft=a[ct]),nt?baseAssignValue(_e,ct,ft):assignValue$3(_e,ct,ft)}return _e}var _copyObject=copyObject$6;function baseTimes$1(a,j){for(var _e=-1,et=Array(a);++_e<a;)et[_e]=j(_e);return et}var _baseTimes=baseTimes$1,MAX_SAFE_INTEGER$3=9007199254740991,reIsUint$1=/^(?:0|[1-9]\d*)$/;function isIndex$5(a,j){var _e=typeof a;return j=j??MAX_SAFE_INTEGER$3,!!j&&(_e=="number"||_e!="symbol"&&reIsUint$1.test(a))&&a>-1&&a%1==0&&a<j}var _isIndex=isIndex$5,baseTimes=_baseTimes,isArguments$6=isArguments_1,isArray$g=isArray_1,isBuffer$5=isBufferExports,isIndex$4=_isIndex,isTypedArray$5=isTypedArray_1,objectProto$9=Object.prototype,hasOwnProperty$d=objectProto$9.hasOwnProperty;function arrayLikeKeys$2(a,j){var _e=isArray$g(a),et=!_e&&isArguments$6(a),nt=!_e&&!et&&isBuffer$5(a),tt=!_e&&!et&&!nt&&isTypedArray$5(a),ot=_e||et||nt||tt,ct=ot?baseTimes(a.length,String):[],ft=ct.length;for(var ht in a)(j||hasOwnProperty$d.call(a,ht))&&!(ot&&(ht=="length"||nt&&(ht=="offset"||ht=="parent")||tt&&(ht=="buffer"||ht=="byteLength"||ht=="byteOffset")||isIndex$4(ht,ft)))&&ct.push(ht);return ct}var _arrayLikeKeys=arrayLikeKeys$2;function nativeKeysIn$1(a){var j=[];if(a!=null)for(var _e in Object(a))j.push(_e);return j}var _nativeKeysIn=nativeKeysIn$1,isObject$j=isObject_1,isPrototype$2=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$8=Object.prototype,hasOwnProperty$c=objectProto$8.hasOwnProperty;function baseKeysIn$1(a){if(!isObject$j(a))return nativeKeysIn(a);var j=isPrototype$2(a),_e=[];for(var et in a)et=="constructor"&&(j||!hasOwnProperty$c.call(a,et))||_e.push(et);return _e}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys$1=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike$5=isArrayLike_1;function keysIn$5(a){return isArrayLike$5(a)?arrayLikeKeys$1(a,!0):baseKeysIn(a)}var keysIn_1=keysIn$5,copyObject$5=_copyObject,keysIn$4=keysIn_1;function toPlainObject$1(a){return copyObject$5(a,keysIn$4(a))}var toPlainObject_1=toPlainObject$1,assignMergeValue$1=_assignMergeValue,cloneBuffer$1=_cloneBufferExports,cloneTypedArray$1=_cloneTypedArray,copyArray$1=_copyArray,initCloneObject$1=_initCloneObject,isArguments$5=isArguments_1,isArray$f=isArray_1,isArrayLikeObject$2=isArrayLikeObject_1,isBuffer$4=isBufferExports,isFunction$4=isFunction_1,isObject$i=isObject_1,isPlainObject$2=isPlainObject_1,isTypedArray$4=isTypedArray_1,safeGet$1=_safeGet,toPlainObject=toPlainObject_1;function baseMergeDeep$1(a,j,_e,et,nt,tt,ot){var ct=safeGet$1(a,_e),ft=safeGet$1(j,_e),ht=ot.get(ft);if(ht){assignMergeValue$1(a,_e,ht);return}var dt=tt?tt(ct,ft,_e+"",a,j,ot):void 0,yt=dt===void 0;if(yt){var Tt=isArray$f(ft),St=!Tt&&isBuffer$4(ft),At=!Tt&&!St&&isTypedArray$4(ft);dt=ft,Tt||St||At?isArray$f(ct)?dt=ct:isArrayLikeObject$2(ct)?dt=copyArray$1(ct):St?(yt=!1,dt=cloneBuffer$1(ft,!0)):At?(yt=!1,dt=cloneTypedArray$1(ft,!0)):dt=[]:isPlainObject$2(ft)||isArguments$5(ft)?(dt=ct,isArguments$5(ct)?dt=toPlainObject(ct):(!isObject$i(ct)||isFunction$4(ct))&&(dt=initCloneObject$1(ft))):yt=!1}yt&&(ot.set(ft,dt),nt(dt,ft,et,tt,ot),ot.delete(ft)),assignMergeValue$1(a,_e,dt)}var _baseMergeDeep=baseMergeDeep$1,Stack$3=_Stack,assignMergeValue=_assignMergeValue,baseFor$1=_baseFor,baseMergeDeep=_baseMergeDeep,isObject$h=isObject_1,keysIn$3=keysIn_1,safeGet=_safeGet;function baseMerge$3(a,j,_e,et,nt){a!==j&&baseFor$1(j,function(tt,ot){if(nt||(nt=new Stack$3),isObject$h(tt))baseMergeDeep(a,j,ot,_e,baseMerge$3,et,nt);else{var ct=et?et(safeGet(a,ot),tt,ot+"",a,j,nt):void 0;ct===void 0&&(ct=tt),assignMergeValue(a,ot,ct)}},keysIn$3)}var _baseMerge=baseMerge$3;function identity$4(a){return a}var identity_1=identity$4;function apply$4(a,j,_e){switch(_e.length){case 0:return a.call(j);case 1:return a.call(j,_e[0]);case 2:return a.call(j,_e[0],_e[1]);case 3:return a.call(j,_e[0],_e[1],_e[2])}return a.apply(j,_e)}var _apply=apply$4,apply$3=_apply,nativeMax$1=Math.max;function overRest$2(a,j,_e){return j=nativeMax$1(j===void 0?a.length-1:j,0),function(){for(var et=arguments,nt=-1,tt=nativeMax$1(et.length-j,0),ot=Array(tt);++nt<tt;)ot[nt]=et[j+nt];nt=-1;for(var ct=Array(j+1);++nt<j;)ct[nt]=et[nt];return ct[j]=_e(ot),apply$3(a,this,ct)}}var _overRest=overRest$2;function constant$1(a){return function(){return a}}var constant_1=constant$1,constant=constant_1,defineProperty$2=_defineProperty$2,identity$3=identity_1,baseSetToString$1=defineProperty$2?function(a,j){return defineProperty$2(a,"toString",{configurable:!0,enumerable:!1,value:constant(j),writable:!0})}:identity$3,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut$1(a){var j=0,_e=0;return function(){var et=nativeNow(),nt=HOT_SPAN-(et-_e);if(_e=et,nt>0){if(++j>=HOT_COUNT)return arguments[0]}else j=0;return a.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$2=shortOut(baseSetToString),_setToString=setToString$2,identity$2=identity_1,overRest$1=_overRest,setToString$1=_setToString;function baseRest$5(a,j){return setToString$1(overRest$1(a,j,identity$2),a+"")}var _baseRest=baseRest$5,eq$6=eq_1$1,isArrayLike$4=isArrayLike_1,isIndex$3=_isIndex,isObject$g=isObject_1;function isIterateeCall$2(a,j,_e){if(!isObject$g(_e))return!1;var et=typeof j;return(et=="number"?isArrayLike$4(_e)&&isIndex$3(j,_e.length):et=="string"&&j in _e)?eq$6(_e[j],a):!1}var _isIterateeCall=isIterateeCall$2,baseRest$4=_baseRest,isIterateeCall$1=_isIterateeCall;function createAssigner$2(a){return baseRest$4(function(j,_e){var et=-1,nt=_e.length,tt=nt>1?_e[nt-1]:void 0,ot=nt>2?_e[2]:void 0;for(tt=a.length>3&&typeof tt=="function"?(nt--,tt):void 0,ot&&isIterateeCall$1(_e[0],_e[1],ot)&&(tt=nt<3?void 0:tt,nt=1),j=Object(j);++et<nt;){var ct=_e[et];ct&&a(j,ct,et,tt)}return j})}var _createAssigner=createAssigner$2,baseMerge$2=_baseMerge,createAssigner$1=_createAssigner,merge$1=createAssigner$1(function(a,j,_e){baseMerge$2(a,j,_e)}),merge_1=merge$1;const merge$2=getDefaultExportFromCjs$1(merge_1),en$1={common:{invalid:"Invalid",about:"About",access:"Access",change:"Change",upload:"Upload",accessKey:"Access Keys",action:"Action",actions:"Actions",add:"Add",refresh:"Refresh",address:"Address",afterTime:"After {time}",allow:"Allow",alreadyExist:"already exists",approve:"Approve",approved:"approved",appUrl:"APP Url",auditLogs:"Audit Trail",author:"Author",avatar:"Avatar",back:"Back",basic:"Basic",basicInfo:"Basic Information",profile:"Profile",bind:"Bind",blocklet:"Blocklet",blocklets:"Blocklets",blockletsStorage:"Blocklets Storage",cacheStorage:"Cache Storage",cancel:"Cancel",certificate:"certificate",category:"Log Topic",click:"Click to copy",close:"Close",collapseAll:"Collapse All",community:"Community",complete:"Complete",componentBasicInfo:"Component Basic Information",components:"Blocklets",config:"Configure",configuration:"Configuration",configNavigation:"Navigation",configSuccess:"Config successfully",confirm:"Confirm",connect:"Connect",console:"Console",continue:"Continue",continueWith:"Continue With",copiedTip:"Copied",copyAndClose:"Copy & Close",copyTip:"Click To Copy",coreStorage:"Core Storage",cpu:"CPU",create:"Create",createSuccess:"Create Access Key",created:"Created At",createdAt:"Created At",createdBy:"Created By",dAddress:"Decentralized Identifiers (DID)",dataStorage:"Storage on Local Disk",delConfirm:"Delete",delConfirmDescription:"Confirm delete {data}?",delete:"Delete",dependents:"Dependents",description:"Description",detail:"Detail",did:"DID",disk:"Disk",diskInfo:"Disk Info",docker:"IS Docker",documentation:"Documentation",domain:"Domain",downgradeTo:"Downgrade to",download:"Download",connectToStore:"Connect to Store",blockletStudio:"Studio",uploaded:"Uploaded",downloading:"Downloading",edit:"Edit",email:"Email",phone:"Phone",empty:"Empty",emptyData:"No results found",enable:"Enable",engine:"Engine",env:"Environment",environment:"Environment",expandAll:"Expand All",expired:"Expired",expires:"Expires",export:"Export",externalIp:"External IP",failed:"Failed",filter:"Log Filter",fingerprint:"Fingerprint",finish:"Finish",forbid:"Forbid",free:"Free",general:"General",gitpod:"IS Gitpod",goEULA:'Click to view "End User License Agreement"',group:"Group",image:"IS Image",install:"Install",installed:"Installed",installedAt:"Installed At",installSuccess:"Successfully installed",installing:"Installing",internalIp:"Internal IP",introduction:"Introduction",invite:"Invite",inviting:"Inviting",ip:"IP",isPublic:"Public",issue:"Issue",issuer:"Issuer",item:"Item",joined:"Joined",key:"Key",lastPublishedAt:"Published At",launcher:"Launcher Information",leavePageTip:"Are you sure to leave the page?",link:"Link",loading:"loading",log:"View Logs",logStorage:"Log Storage",login:"Login",logo:"Logo",logout:"Logout",logs:"Logs",manageTeam:"Manage Team",marketplace:"Marketplace",member:"Member",members:"Members",memory:"Memory",meta:"Meta Data",analytics:"Analytics",runtime:"Runtime",traffic:"Traffic",more:"More",mountPoint:"MountPoint",name:"Name",next:"Next",no:"No",noData:"No records to display",notice:"Unexpected bad things will happen if you don’t read this!",noticeTitle:"Notice",notification:"Notification",open:"Open",visitStore:"Visit Store",visitTarget:"Visit {name}",management:"Management",os:"Operating System",overview:"Overview",owner:"Owner",page404:"404 Page",passport:"Passport",display:"Display",permission:"Permission",port:"Port",pre:"Previous",preferences:"Preferences",preview:"Preview",protected:"Protected",protocol:"Protocol",purchase:"Purchase",reconnect:"Reconnect",disconnect:"Disconnect",readMore:"More",redirect:"Redirect",redirectCode:"Redirect Code",redirectPermanently:"Permanent Redirect",redirectTemporary:"Temporary Redirect",redirectUrl:"Redirect URL",rewrite:"Rewrite",release:"Release",rewriteUrl:"Rewrite URL",reject:"Reject",reload:"Reload",remark:"Remark",remove:"Remove",removeSuccess:"Remove successfully",renew:"Renew",reportIssue:"Report an issue",required:"Required",requiredErrorText:"{name} is required",resource:"Resource",restart:"Restart",restore:"Restore",retry:"Retry",revoke:"Revoke",role:"Role",running:"running",runtimeInfo:"Runtime Info",save:"Save",saveChanges:"Save Changes",saveSuccess:"Saved successfully",scheduleFailed:"schedule failed",scheduleSuccess:"successfully scheduled",scope:"Scope",screenshot:"Screenshots",search:"Search",security:"Security",serverDid:"Server DID",serverVersion:"Server Version",setting:"Settings",start:"Start",status:"Status",stop:"Stop",storage:"Storage",backup:"Backup",store:"Store",succeeded:"Succeeded",subscription:"Subscription",support:"Support",switch:"Switch",team:"Team",the:"The",timeAgo:"{time} ago",title:"Title",type:"Type",unavailable:"Unavailable",update:"Update",updateAvailable:"New version {version} available",updatedAt:"Updated At",updatedBy:"Updated By",upgrade:"Upgrade",upgradeServer:"Upgrade Server",upgradeTo:"Upgrade to",upgrading:"Upgrading",uptime:"Uptime",url:"URL",valid:"Valid",value:"Value",version:"Version",visit:"Visit",waiting:"Waiting",webhook:"Integrations",yes:"Yes",invalidParam:"Invalid Params",launch:"Launch",price:"Price",redirecting:"Redirecting",error:"Error",reminder:"Reminder",normal:"Normal",gateway:"Gateway",verifyNFT:"Verify NFT",errorMessage:"Error Message: ",slugifyHint:"The actual mount point will be: {value}",strategy:"Strategy",auto:"Auto",manual:"Manual",progress:"In progress",startTime:"Start time",endTime:"End time",selected:"Selected",timeoutError:"Timeout error",tags:"Tags",sourceApp:"Belong to App",requiredInputPlaceholder:"Please enter {name}",moveUp:"Move Up",moveDown:"Move Down",enabled:"Enabled",disabled:"Disabled"},setup:{connect:{title:"Signature Required",scan:"Connect your DID Wallet to become the owner of this server",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},keyPair:{title:"Derived KeyPair Required",scan:"Connect your DID Wallet to generate a key-pair for this app",confirm:"Review this operation on your DID Wallet",success:"Your key pair is securely stored"},verify:{title:"Ownership Credential Required",scan:"Connect your DID Wallet to provide ownership credentials",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},accept:{title:"Accepting server require ownership certificates",scan:"Connect your DID Wallet to provide ownership credentials",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},title:"Setup Blocklet Server",steps:{eula:"End User License Agreement",eulaFooter:"I have read and agreed to the terms of the EULA",connect:"Connect Owner DID Wallet",verify:"Verify Ownership",basicSettings:"Basic Settings",launchApp:"Launch Application",complete:"Complete"},congratulation:"Congratulations! Your Blocklet Server is secure and ready to use",redirectButton:"Take me to dashboard!"},login:{loginTo:"Connect to",description:"Only server owner and approved members can access the dashboard",switchDid:{title:"Switch DID Wallet",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},switchSpecifiedDid:{title:"Switch DID Wallet",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},connect:{title:"Connect DID Wallet",scan:"Connect your DID Wallet to provide passport",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"}},acceptServer:{title:"Claim Server with Ownership NFT",tooltip:"If you received a server ownership nft, you can claim your owner passport with this link."},exchangePassport:{title:"Get Passport with NFT",success:"You have successfully get your passport and logged in with the passport",login:"Login",tooltip:"If you own NFT from collection {collections}, you can exchange your passport with this link.",dialog:{title:"Get Passport with NFT",scan:"Connect your DID Wallet to present your NFT to get a passport",confirm:"Select NFT on your DID Wallet",success:"Passport has been successfully exchanged"}},payablePassport:{title:"Purchase passport with payment",tooltip:"If you do not have a passport, you can purchase a passport with this link."},sidebar:{dashboard:"Dashboard",blocklets:"Blocklets",console:"Console",settings:"Settings"},system:{total:"Total",used:"Used",free:"Free",cores:"Number of cores",instances:"Number of instances"},blocklet:{external:"External",usingDocker:"This Blocklet will run using docker",notFound:"Blocklet not found on this server, maybe it has been deleted",installFromMarket:"Install New Blocklets",installFromUrl:"Install From Url",installFromCreate:"Create Blocklet",titleValidationError:"Title length must be between 3 and 20 characters",descriptionValidationError:"Description length must be between 3 and 80 characters",installFromDiskBackup:"Restore from this server",installedAt:"Installed At",internal:"Internal",startedAt:"Started At",stoppedAt:"Stopped At",urlEmptyTip:"No Access URL, ",goToAddRule:"Go To Add",services:"Exposed Services",upstreamPort:"Upstream Port",noService:"No Services",appId:"App DID",appPid:"Permanent DID",whyNeedAppPid:"If your application has been migrated, the permanent DID is the DID generated when this Blocklet was originally installed",alsoKnownAs:"Also Known As",skSource:"Owner Wallet",reloadSuccess:"Blocklet was reloaded successfully",statusTip:"Blocklet is {status}",initialUptime:"Less than 1m",dashboard:"Blocklet Dashboard",noComponent:"Application has no components and cannot be started",fromUrl:{title:"Install Blocklet",label:"Blocklet Meta URL",description:"The URL should point to the Meta File of the Blocklet. If you need to refer to a local file, please add the file:// prefix, e.g. file:///Users/foo/blocklet.json.",confirm:"Install",step0:"Input URL",step1:"Confirm Meta Info",existTipPrefix:"Blocklet with the same DID already exists, the version is",existTipSuffix:", Please install a higher version."},action:{stopDescription:"Stopping the blocklet will make its public interfaces unaccessible, which may cause end user failures",stopComponentDescription:"Stopping the component will make its public interfaces unaccessible, which may cause end user failures",confirmStop:"Yes, Stop It",cancelDownloadDescription:"Cancel download {name} ?",removeApplicationDescription:"Removing the application will erase code and data generated by this application, which is not recoverable if you do not have any backups",removeApplicationAfterBackup:"Backup and remove the application. You can restore the application from this server if you need",removeApplicationComplete:"Remove both code and data for this application",removeComponentDescription:"Removing the component will erase code and data generated by this component, which is not recoverable if you do not have any backups",removeComponentKeepData:"Keep data for this component, only remove code",removeComponentComplete:"Remove both code and data for this component",confirmRemove:"Yes, Remove It",confirmComponentRemove:"Yes, Remove It",upgradeDescription:"Upgrading the blocklet will make it temporarily unavailable, are you sure to continue?",confirmUpgrade:"Yes, Upgrade It",confirmRestart:"Yes, Restart It",restartDescription:"Restarting the blocklet will temporarily suspended and may not start because of a configuration change"},dev:{modeTip:"Please switch Blocklet Server to DEBUG mode"},index:{tableTitle:"Manage Your Blocklets",noBlocklet:"No blocklets found in this Blocklet Server, install a blocklet from market place to start."},admin:{iframeTitle:"Blocklet Admin Interface",title:"Admin Interface",noContent:"This blocklet does not have a admin interface",securityError:"SecurityError: Can not open the admin url from accessing a cross-origin frame"},config:{name:"App Name",description:"App Description",sk:"Secret key for the app wallet",logoSquare:"App Logo",logoRect:"Rect logo",logoRectDesc:"Usually displayed at the top of the page, default to app logo",logoFavicon:"Favicon",logoFaviconDesc:"Usually displayed in the browser's address bar or tab page, default to app logo",clusterSize:"Instance count when run this blocklet in cluster mode",copyrightOwner:"Copyright Owner (Display in footer)",copyrightYear:"Copyright Year (Display in footer)",deletable:{name:"Delete Protection",enable:"This blocklet can NOT currently be deleted",disable:"This blocklet can currently be deleted"},tenantMode:{name:"Multiple Tenant Mode",multiple:"This blocklet runs in multiple tenant mode, data should be isolated for each tenant",single:"This blocklet runs in single tenant mode, all data are shared"},walletType:{name:"Wallet Type",description:"Blocklet instance wallet type, will change the derived DID"},languages:"Supported Languages",selectLanguagesTip:"Adjust the order by removing and re-adding",languagesSearch:"Search by Country's Local Name, English Name, or ISO Code...",passportColor:"Passport Color",appUrl:"App URL",access:{title:"Who Can Access",description:"Who can access the blocklet",useDefault:"Use default",defaultDescription:"Use the application's default configuration",whoCanAccess:{all:{title:"Accessible to all",description:"Open to the world anyone can access without passport"},owner:{title:"Only me can access",description:"You must provide owner passport to access this application"},invited:{title:"Only invited people can access",description:"You can invite members later in the admin page"}},publicToStore:"Public On Store",publicInstanceTip:"The access address of this blocklet will be displayed in the Store (along with your DID for accepting donations)",updatedTip:"Access Control Modified"},changedTip:"Configuration updated, please restart Blocklet",missingRequired:"Missing required configuration to start the blocklet",gotoFix:"Go to fix",environment:{key:"Configuration key",value:"Configuration value",keyValueRequired:"Configuration key and value must be specified",invalidKey:"Configuration key must not start with BLOCKLET_ or COMPONENT_",deleteForbidden:"This configuration is required and should not be deleted",tip:"Configurations prefixed with BWA_ should not contain sensitive information because they will be sent to the browser"},dangerZone:"Danger Zone",blockletTypeChangeTip:"Wallet Type will be changed to <b>{value}</b>",appDidChangeTip:"This operation will change the DID of the application, which will lead to the following problems. Please confirm after careful evaluation:",appDidChangeTipL1:"The user's account connected to this application will change",appDidChangeTipL2:"The DID domain name of the application will change, and the original domain name will become invalid",appSkChangeTip:"You are changing application secret key",walletTypeTitle:"Update Wallet Type",appSkTitle:"Update Application Secret Key",sharedToAllComponents:"Will be shared to all components",session:{period:"Session validity period",profile:"User profile requirements",ttl:"User will be asked to login again if they have no activity on this site for {day} days",day:"{day} day",days:"{day} days",cacheTtl:"Cache duration for user session data (in seconds)",fullNameEnabled:"Request user name on login (enabled by default)",avatarEnabled:"Request user avatar on login (enabled by default)",emailEnabled:"Request user email on login",emailRequireVerified:"Require user email to be verified before login",emailRequireUnique:"Require user email to be unique across all users",phoneEnabled:"Request user phone number on login (not supported yet)",phoneRequireVerified:"Require user phone number to be verified before login",phoneRequireUnique:"Require user phone number to be unique across all users",emailTrustOauthProviders:"Trust OAuth providers for email verification status",enableDomainBlackList:"Enable email domain black list (reject listed email domains)",enableDomainWhiteList:"Enable email domain white list (only allow listed email domains to login)",addDomain:"Add source to fetch the list (in plain text format, one domain per line)"},clearCache:{name:"Cache Management",purpose:"Manage files cached in router and blocklet services",title:"Confirm Cache Clear?",action:"Clear Cache",success:"Successfully cleared {count} cache entries",description:"Are you sure you want to clear cached files in router and blocklet service? this operation may cause slight performance downgrade in the short term"}},overview:{source:"Source",deployedFrom:"Deployed From",accessControl:"Access Control",viewInStore:"View It In Store"},diskInfo:{empty:"Disk info not available now!",appDir:"App Directory",dataDir:"Data Directory",logDir:"Log Directory",cacheDir:"Cache Directory"},runtimeInfo:{noRunning:"Runtime information will be available when blocklet is running!",memoryUsage:"Memory Usage",cpuUsage:"CPU Usage",uptime:"Uptime",port:"Port",processId:"Process ID"},dist:{downloadLink:"Download Link",verify:"Verify"},status:{added:"Added",waiting:"Waiting",downloading:"Downloading",extracting:"Extracting",installing:"Installing",upgrading:"Upgrading",installed:"Installed",created:"Created",starting:"Starting",running:"Running",stopping:"Stopping",stopped:"Stopped",error:"Error",deleting:"Deleting",corrupted:"Corrupted",purchasing:"Waiting for purchase",purchased:"Purchased",verifying:"Verifying purchase",resource:"Resource"},list:{download:"Download",star:"Star"},component:{container:"Global Config",showContainer:"Show Global Config",didSpaceConfig:"Configure DID Spaces",didSpaceConfigTip:"Complete the following authorize process to store application data in DID Spaces",didSpaceConnected:"Storage being authorized to: {endpoint}",checkUpdateTitle:"Check for Updates",updateTitle:"Update Blocklets",noUpdate:"No Blocklets to update",add:"Add Blocklet",selectComponent:"Select Blocklet",selectRegistry:"Select Blocklet Store",selectRegistryTip:"You can switch blocklet store to see more components",selectInstance:"Select Instance",selectInstanceTip:"You can select an existing instance or create a new instance. Existing instances will use previously saved configuration and data",newInstance:"Create New Instance",noComponent:"No Blocklets",mountPoint:"What's the mount point?",mountPointTip:"If you set mount point to '/my-prefix', then all requests that begins with that mount point will be routed to the selected Blocklet",delete:"Delete Blocklet",deleteDescription:"This Blocklet will not be accessible after deletion. Confirm delete?",purchase:"Payment Required",tip:{stopBlocklet:"Please stop running Blocklet first",requiredBy:"The Blocklet is required by {name}"},choose:"Choose",upgrade:"Upgrade",addWithName:"Add Blocklet To {name}",relatedComponents:"Related Blocklets",required:"Required",noDependencies:"{name} doesn't have any dependencies",installed:"Installed",installingTip:"Installing component, please wait...",installingCanCloseWindowTip:"Installing component in the background, you can safely close this window",installSuccessTip:"Congratulations, the component was installed successfully!",missDownloadTokenTip:"Cannot add paid component without valid download token",purchaseComponentSecondCheckTip:"Please present your blocklet purchase NFT to continue",installComponentError:"There was an error installing the component, please retry again",downloadComponentError:"There was an error downloading the component, please retry again",addComponentTip:{introduction:"Welcome to the Add Component Wizard",isPurchase:"You need to Verify NFT before use <b>{name}</b> as a component;",belowInformation:"Below is the information for the component: ",verifyNFT:"Please select the Verify NFT method",config:"Please fill in the configuration of the component",environment:"Please fill in the environment of the component",fromUrl:"Add Blocklet From Url"},addNext:"Add {name}",upgradeNext:"Upgrade {name}",setting:"Settings"},router:{urlPath:"URL Path",noRunning:"The blocklet is not currently started. Unable to access through the following address!",securitySetting:"Security Setting",checkUrlAccessible:"Check the accessibility of the address",urlInaccessible:"It may be due to network reasons, the address is temporarily inaccessible",noAccessibleUrl:"No accessible URL",domainLockTooltip:"The system generated Domain cannot be edited.",urlLockTooltip:"The system generated URL Path cannot be edited.",showAllDomains:"Show all domains",showAllDIDs:"Show all DIDs",currentDomainTip:"You are accessing the current page through this domain"},export:{title:"Export Blocklet",name:"Bundle Name",nameTip:'e.g. "my-blocklet-name" or "@my-scope/blocklet-name"',result:"What's next",exportSource:"Export Source",success:"Blocklet successfully exported",resultTipStart:"With",resultTipEnd:"you can build and publish this blocklet within minutes",uploadedComponentTip:"Directly uploaded components cannot be exported:"},migrate:{title:"Migrate Application",scan:"Connect your DID Wallet to generate a key-pair for this application",confirm:"Review this operation on your DID Wallet",success:"Your application is successfully migrated, the page will be refreshed in {sec} seconds",intro:{l1:"Click here",l2:"to migrate your application to new version (changes are disabled before the migration completes)",l3:"1. The application DID will be fully controlled from your DID Wallet.",l4:"2. The application data will be migrated, and no further changes required.",l5:"3. The new application structure will give you more flexibly when change components.",l6:"4. Please do not change component mount points before component new version is out."},tip:{duplicate:"Find duplicate component {name}, please delete useless components and migrate again",running:"Please stop blocklet before migration"}},error:{isRunning:"Blocklet is running, please stop it first",isInProgress:"Blocklet is in progress, please wait for it to finish"},publish:{connectOrUpload:"Connect or Upload",projectSettings:"Project Settings",noStoreSelected:"Please select one of the existing stores or add a new store to continue",autoUploadTip:"Upload release to connected Blocklet Stores automatically after creation",possibleSameStoreTip:"Try resolving dependency blocklets to the same Blocklet Store before each uploading when possible",needProjectId:"Please create a project first",developerInfo:"Developer Information",branding:"Branding",brandingHelp:"More information about the blocklet will be displayed in the Store",download:"Download {name}",deleteStoreTip:"Are you sure you want to remove {name} from the connect Store list?",delete:"Delete {name}",copyInstallUrl:"Copy Install URL",installToThisServer:"Install to this server",createResource:"Create Resource",blockletStudio:"Blocklet Studio",tenantScope:"Tenant",addResource:"Add Blocklet",productTitle:"Product",versionTitle:"Versioning",imgTitle:"Images",resourceTitle:"Resources",resourceSelect:"Select resource from following blocklets",resourceUpload:"Upload resource from your disk (index.html is required in the archive)",blockletEmptyTip:"There aren’t any blocklets here",createBlockletTip:"You can create new blocklet through existing resources, components, and configuration in this application",createBlocklet:"New blocklet",reconnectStoreTip:"After reconnecting, a new developer will be bound. Are you sure you want to reconnect?",disconnectStoreTip:"After disconnecting, the blocklet will be removed from the store. Are you sure you want to disconnect?",componentNotRunning:"Blocklet {name} is not running, please start it first",allComponentsNotRunning:"Blocklets is not running, please start it first",releaseEmptyTip:"There aren't any releases here",resourceEmptyTip:"No available resources",viewLastRelease:"View last release",createReleaseTip:"You can create a release of the blocklet, along with release notes and resources, for other people to use",createRelease:"Create release",deleteReleaseTip:"The release cannot be recovered after deletion",createBlockletDid:"Create from DID Wallet",createReleaseSuccess:"Release created successfully",saveDraftSuccess:"Draft saved successfully",packTip:"Currently blocklets can be installed directly as applications. Components and application configurations will be automatically included in the Blocklet",resourceTip:"Currently, as a Resource Blocklet, it cannot be directly installed from the Store.",whyCantSeeInStore:"You need to publish the blocklet on connected store before you can see it in the store listing page",whyCantSeeResourceBlockletInStore:"Resource Blocklet are hidden from the store listing page by default",resourceChangedWarning:"You have modified the resource, please save it in time",install:"Install {name}",installResourceTip:"Install Url:",installResourceTip2:"If you want to see more tips, please visit",installResourceHelp:"Help Document",componentIncluded:"Included",componentForceRequired:"Required",steps:{branding:"Describe the basic information of your Blocklet. This information will be presented to users in the store.",introduction:"A clear introduction can effectively highlight your Blocklet. You can use Markdown syntax to write and preview it.",resources:"Please select the resources that need to be associated with the current Blocklet, as these resources will be installed along with the Blocklet.",blocklets:"Please select the Blocklets that need to be associated and installed when installing the current Blocklet.",version:"Set the release version and the change log."},connect:{title:"Create Blocklet DID",scan:"Scan the QR code below to generate Blocklet DID",confirm:"Confirm using DID Wallet",success:"Blocklet DID has been generated, please continue your operation"},deleteProject:{title:"Delete {name}",scan:"Scan the QR code below to delete {name}",confirm:"Confirm using DID Wallet",success:"Blocklet has been deleted, please continue your operation",description:"Are you sure you want to delete the Blocklet? Here are the issues you might encounter:",tip1:"The Blocklet cannot be recovered after deletion.",tip2:"You will no longer be able to publish new versions to the deleted Blocklet, which means that the Blocklet will not be updated in the Store anymore.",tip3:"Deleting the Blocklet will not affect its currently published version in the Store."},saveDraft:"Save Draft",releaseNote:"Release Note",errorTip:{noDid:"Blocklet DID is required",noFirstDid:"Please create Blocklet DID first",noTitle:"Blocklet Title is required",noVersion:"Blocklet Version is required",inValidVersion:"Invalid Blocklet Version",noResource:"Please select upload resource to be included in the blocklet",noDescription:"Blocklet Description is required",noNote:"Release Note is required"},uploadToStoreSuccess:"Blocklet upload to Store successfully, you need publish it in the Store",publishToStoreSuccess:"Blocklet published to Store successfully",connectStoreSuccess:"Blocklet Store connected successfully"}},dashboard:{nodeDid:"Node",ownerDid:"Owner",routingEngine:"Routing Engine",ownerNftURL:"Owner NFT",expirationLeft:"Expiration Left",startFromCrashTip:"Blocklet Server did not exit normally last time, please manually start the blocklets that needs to be run.",runtimeConfig:{blockletMaxMemoryLimit:"Blocklet Max Memory Limit",daemonMaxMemoryLimit:"Server Max Memory Limit",proxyMaxMemoryLimit:"Event Bus Max Memory Limit"}},store:{nameSort:"Name",popularSort:"Popularity",headerDescription:"Find and Install Your Blocklets",detail:{purchase:"Purchase {name}",open:"Open {name}",install:"Install {name}",upgrade:"Upgrade {name}",empty:"No introduction"},tooltip:{upgradeServer:"Blocklet requires Blocklet Server version {version}, current Blocklet Server version is {serverVersion}"},blockletRegistry:{changeFailed:"Change Blocklet Store Failed: ",addFailed:"Add Blocklet Store Failed: ",editFailed:"Edit Blocklet Store Failed: ",switchRegistry:"Switch Blocklet Store",addRegistry:"Add Blocklet Store",editRegistry:"Edit Blocklet Store",deleteRegistry:"Delete Blocklet Store",haveSameRegistry:"The same blocklet store exists",registryName:"Blocklet Store Name",registryUrl:"Blocklet Store URL",registryNameEmpty:"Blocklet Store name cannot be empty",registryUrlEmpty:"Blocklet store url cannot be empty",deleteDesc:'Confirm Delete blocklet store {name} ?<br/><span style="color: {color}">*After removing this blocklet store, you cannot update the apps installed from this blocklet store unless you add them again.</span>',confirmDesc:"Please input {name} to delete"},purchase:{title:"Purchase {name}",confirmed:"Your blocklet purchase NFT is verified",declined:"You do not provided valid the blocklet purchase NFT",waiting:"Waiting for purchase complete...",purchase:{title:"Purchase NFT",description:"Pay some token before installing this blocklet if you have not purchased this blocklet"},verify:{title:"Verify NFT",description:"Your NFT will be verified before installing this blocklet if you have purchased and hold the purchase NFT in your DID Wallet",auth:{title:"Purchase Credential Required",scan:"Connect DID Wallet to provide blocklet purchase NFT",confirm:"Review this operation on your DID Wallet",success:"Your purchase NFT is verified, and installing has started"}},auth:{title:"Purchase {name}",scan:"Scan following QRCode with your DID Wallet",confirm:"Confirm on your DID Wallet",success:"Purchase NFT sent to your DID Wallet"},launch:"Launch {name}",autoLaunch:"{name} successfully purchased, redirecting to launch page..."}},setting:{saveSuccess:"Settings Saved Successfully",unSavedTip:'There are unsaved changes, please click "Save Changes" to save them.',unSavedLeaveTip:"There are unsaved changes, are you sure to leave the page?",form:{name:"Name Your Server",nameRequired:"Server description is required",namePlaceholder:"Server Name",description:"Describe Your Server",descriptionHolder:"Server Description",descriptionRequired:"Server description is required",domain:"Your Server Domain Name",domainPlaceholder:"Server Domain Name",domainRequired:"Server domain is required",ipPlaceholder:"IP",ipRequired:"IP is required",registry:"Blocklet Store",registryPlaceholder:"Blocklet store to fetch blocklets",registryRequired:"Blocklet store is required ",registerUrl:"Blocklet Launcher URL",registerUrlPlaceholder:"Input the URL of your preferred Blocklet Launcher, you can use the official one safely",webWalletUrl:"DID Wallet URL",webWalletUrlPlaceholder:'Please input the URL of your hosted "DID Wallet", you can use the official one safely',nftDomainUrl:"NFT Domain URL",nftDomainUrlPlaceholder:'Please input the URL of your hosted "NFT Domain", you can use the official one safely',enableWelcomePage:"Enable welcome page",welcome:{switchLabel:"Welcome Page"},security:{switchLabel:"File System Isolation",switchTips:"After disabling this option, the file system of the Blocklet will no longer be in isolation, which may pose a risk of malicious software damaging the file system.",warningTips:"The file system isolation feature cannot take effect. Please upgrade the node.js version (current version is {version}) to v21.6.0 or higher."},docker:{switchLabel:"Blocklets run in containers",switchTips:"After enabling this option, all blocklets will be run in Docker containers, which can improve the server's overall security.",notInstalled:"Can not enable container mode because docker is not installed or the current user has insufficient permission to run docker",needCloseFileSystemIsolation:"File system isolation and docker container mode runtime cannot be enabled at the same time"},upgrade:{title:"Upgrade Blocklet Server to {version}",description:"During the upgrade, your Blocklet Server will enter maintenance mode for a few minutes while the update is completed.",dialog:'Click on "confirm" to install the update. Blocklet Server will enter maintenance mode until the update is completed and return to production mode automatically.',confirm:"Upgrade",switchLabel:"Auto Update Check",enableBetaRelease:"Enable Beta Release",setup:"Preparing the upgrade",installing:"Installing Blocklet Server v{version}",restarting:"Restarting Blocklet Server",cleanup:"Migrating Blocklet Server data",verifying:"Verifying Blocklet Server v{version}",rollback:"Rollback Blocklet Server",complete:"Upgrade complete!",progress:"Upgrading {name}",check:"Check for Updates",latest:"You are running the latest version."},restart:{title:"Restart Blocklet Server",description:"During the restarting, your Blocklet Server will enter maintenance mode while the restart is completed.",dialog:'Click on "confirm" to restart. Blocklet Server will enter maintenance mode until the restart is completed and return to production mode automatically.',confirm:"Restart",setup:"Preparing the restart",verifying:"Verifying Blocklet Server",restarting:"Restarting Blocklet Server",cleanup:"Ensure everything is OK",rollback:"Cleanup the dirty state",complete:"Maintain complete!",progress:"Restarting {name}"},register:{titleAdded:"Added to Blocklet Launcher",title:"Add to Blocklet Launcher",description:"Once added, you can launch blocklets to this blocklet server from {url}.",descriptionOnAdded:"you can launch blocklets to this blocklet server from {url}.",btn:"Add",update:"Update",added:"Added",addSucceed:"Add succeed",updateSucceed:"Update succeed",detecting:"Detecting",timeout:"Detection timeout, please check if the blocklet launcher is started"},monitor:{diskThreshold:"Send alert when disk usage exceeds (%)",diskThresholdPlaceholder:"Please set the disk usage alert threshold"}},accessKey:{accessKeyId:"ACCESS KEY",lastUsed:"Last Used At",tip:"Please enter a name for this access key for future reference:",saveSecretTip:"This is the only time that your Access Secret key can be viewed and cannot be recovered. However, you can create new access keys at any time",iKnow:"I have copied and saved the Access Secret",showSecret:"Show Secret Access Key",hideSecret:"Hide Secret",title:"Delete Access Key",descriptionNoTime:"This will permanently delete the access key {key} with name {name}, which is (never used before)",description:"This will permanently delete access key {key} with name {name}, which is (last used on {time}, {timeAge})",confirm_desc:"Please input {name} to delete",remark:"Access Key Name",remarkInvalid:"Access Key Name is required"},webhook:{add:"Add Integration",delTitle:"Delete Integration",requiredError:"Please provide a valid {type}",confirm_desc:"Please input {name} to delete",test:"Test",description:"This will permanently delete integration with ID {id}",columns:{description:"ID",params:"Params",createdAt:"createdAt"}}},notification:{title:"Activities",empty:"No activities yet",viewAll:"View All",showRead:"Show Read",markAllAsRead:"Mark All as Read",markAsRead:"Mark As Read",proceed:"Proceed",checkingForUpdates:"Checking for updates...",installComponentError:"Not found uninstalled component {name}",installingComponent:"Installing component {name}",pushKit:{enable:"Enable PushKit notification",endpoint:"PushKit endpoint",endpointInvalid:"PushKit endpoint is invalid URL",testSuccess:"Test PushKit send successfully",testFailed:"Test PushKit send failed",testReceiver:"PushKit receiver",testSend:"Test push-kit send",inputTestReceiver:"Please input test receiver did",receiverRequired:"PushKit receiver is required",pushPath:"Api path for push-kit (default /api/push)",did:"PushKit Blocklet DID",customOptions:"Custom Options"},email:{enable:"Enable email notification",from:"Email sender",host:"SMTP server host",port:"SMTP server port",user:"SMTP server username",secure:"Enable secure connection",password:"SMTP server user password",fromRequired:"Email sender is required",fromInvalid:"Email sender is invalid",receiverRequired:"Email receiver is required",receiverInvalid:"Email receiver is invalid",hostRequired:"SMTP server host is required",hostInvalid:"SMTP server host is invalid",portRequired:"SMTP server port is required",portInvalid:"SMTP server port is invalid, port should be between 1 and 65535",userRequired:"SMTP server username is required",passwordRequired:"SMTP server user password is required",testSuccess:"Test email send successfully",testFailed:"Test email send failed",testReceiver:"Email receiver",testSendEmail:"Test email send",inputTestReceiver:"Please input test receiver email",disable:"Unsubscribe email notification",disableDescription:"After unsubscribe, you will no longer receive email notifications. To receive email notifications, you can subscribe it again on this page.",unsubscribe:"Unsubscribe email notification",unsubscribeDescription:"After unsubscribe, you will no longer receive any email notifications.",subscribe:"subscribe",subscribeDescription:"To receive email notifications, you can subscribe it again on settings page."},comingSoon:"More notification channel are under construction",unsubscribe:"Unsubscribe",unsubscribeSucceed:"Unsubscribe succeeded",unsubscribeFailed:"Unsubscribe failed",unsubscribeTokenRequired:"Unsubscribe token in required",unsubscribeTokenExpired:"Unsubscribe token is expired",unsubscribeTokenInvalid:"Unsubscribe token is invalid"},router:{routerSetting:"Domains & URLs",certSetting:"SSL Certificates",defaultSite:"Default",urlHelperText:"URL that do not start with HTTP/HTTPS are considered relative paths",empty:"Click on Actions to setup URL Mapping",healthy:{ok:"Blocklet or service is running",error:"Blocklet or service is not running or not installed"},service:{select:"Select Blocklet Services (Optional)",what:"Blocklet Services are pipelines executed against the request before redirecting to upstream blocklet"},nonProvider:{title:"Engine Change Warning",description:"If you change engine to none, your current page may not work properly because the previous engine will be stopped, are you sure to continue?",confirm:"I understand, continue"},validation:{urlRequired:"URL is required",redirectCodeRequired:"Redirect code is required",didRequired:"Blocklet is required",pathPrefixTooLong:"The URL Prefix cannot exceed {length} characters",pathPrefixCannotBeEmpty:"The URL Prefix cannot be empty",domainRequired:"Server domain is required",invalidUrl:"Please provide a valid URL",pathPrefixRequired:"URL prefix is required",redirectUrlRequired:"Redirect URL is required",rewriteUrlRequired:"Rewrite URL is required"},domain:{addSite:"Add Site",validate:{emptyTip:"Site domain cannot be empty",suffixTip:"Site domain cannot include {suffix}"},add:{title:"Add Domain Name",description:"Please provide a valid domain name",confirm:"Add",cancel:"Cancel",blocklet:"Select Blocklet",redirect:"Where to redirect the traffic?",port:"What port does your request handler need to listen to?",portTip:"This defaults to the main port of request handler, you can customize this",type:"Traffic Handler",component:"Select Component",pageGroup:"Page Group",pageGroupTip:"This component can render any group of pages listed above, leave empty to render all pages"},update:{title:"Update Site Domain",label:"Site Domain",description:"Please provide a valid site domain"},setup:{tipStart:"Add the DNS records for the domain",tipEnd:"as per the following guidelines",recordType:"Record Type",recordValue:"Record Value"},verify:{ok:"The domain resolution is normal",notResolved:"This domain neither resolved nor accessible, please check your DNS configuration"},https:{ok:"This domain has https enabled",bad:"This domain has not enabled https"},delete:{title:"Delete Site",description:'By confirming, you will delete your existing "{name}" site. Type "{name}" below and select Delete to complete the change, or select Cancel if you want to leave your site',confirm_desc:"Please input {name} to confirm"}},domainAlias:{nftDomain:"Automatic config with DID Domain",showTipHint:"How do I configure domain name resolution?",add:{title:"Add Additional Domain",domainDescription:"Please provide a valid domain name",forceTip:"Force add if domain name already exists",helperText:"If an HTTP or HTTPS URL is entered, it will be automatically converted into a domain name.",isDidDomainError:"This domain is a DID Domain. Please add it using the method for automatic domain configuration."},addCustomDomain:{name:"Custom Domain"},addDomainNFT:{showNFT:"Configure domain automatically",tips:"You can enter a domain purchased from DID Domain. If a DID Domain is detected, you must present the DID Domain NFT to continue.",connect:{title:"Please show your Domain NFT",scan:"Scan following QR code with DID Wallet to authorize to blocklet to use your domain",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"},buyTip:"DID Domain will do the domain name resolution automatically, no need to configure it manually, and the application will update the resolution record of the domain name automatically when needed. If your don't have DID Domain NFT yet, ",buy:"buy it now!"},delete:{title:"Delete",description:"After removing a domain alias, access to that alias may not be handled properly."}},domainSecurity:{title:"Domain Security",cors:{title:"Allowed CORS Domains",description:'Domain list that can send cross origin requests to {name}, comma separated, use "*" to allow anyone, which is not recommended',domainInvalid:"Please input a valid list of domain names"}},rule:{add:{title:"Add URL Mapping",confirm:"Add",pathPrefix:"What's the URL Prefix?",pathPrefixTip:"If you set prefix to '/my-prefix', then all requests that begins with that prefix will be routed to the configured blocklet",blocklet:"Which Blocklet will be handling those requests?",port:"Which port of the blocklet will be handling requests?",portTip:"This defaults to the main port of blocklet, if your blocklet listens on multiple ports, you can customize this",responseType:"Response Type",responseBody:"Response Content",responseBodyTip:"Paste your response content here, should not exceed 4096 characters",responseBodyRequired:"Response content can not be empty"},delete:{title:"Delete URL Mapping",description:'By confirming, you will delete your existing "{name}" URL Mapping. Type "{name}" below and select Delete to complete the change, or select Cancel if you want to leave your URL Mapping.',confirm_desc:"Please input {name} to delete",cancel:"Cancel"},update:{title:"Update URL Mapping",confirm:"Yes, Update",cancel:"Cancel"}},cert:{name:"Certificate Name",domain:"Domain Name",action:"Action",commonName:"Common Name",boundDomains:"Domains",source:"Source",expired:"Expired",leftDays:" days left",issuedOn:"Issued On",expiryOn:"Expiry On",fingerprintAlg:"Fingerprint Algorithm",validityPeriod:"Validity Period",matchedSites:"Matched Sites",upload:"Manual Upload",publicCertHelperText:"Public certificates can be downloaded",nonPublicCertHelperText:"Non-public certificates cannot be downloaded",protectedCertHelperText:"Protected certificates cannot be edited",unprotectedCertHelperText:"Unprotected certificates can be edited",issuing:"Certificate being generated",sourceTypes:{upload:"Manual Upload",lets_encrypt:"Let's Encrypt"},table:{nodata:"No data"},delete:{title:"Delete Certificate",description:"Confirm delete certificate of domain {domain}? Deleting it may affect related services. Please confirm it's safe before proceeding with the deletion.",confirm:"Confirm"},nginx:{title:"Update Certificate",titleAdd:"Add Certificate",pem:"SSL Certificate File",pemTip:'Please drop your server certificate file here, it should ends with ".pem" or ".crt"',key:"Private Key File",keyTip:'Please drop your server private key file here, it should ends with ".pem" or ".key"',confirm:"Save",cancel:"Cancel",invalidFile:"You have selected an invalid file",empty:"No file selected yet",source:"Source",sourceTypes:{upload:"Manual Upload",lets_encrypt:"Let's Encrypt"}},detail:{title:"Certificate Details"},genLetsEncryptCert:{title:"Generate Let's Encrypt certificate",dnsTip:"Please make sure the domain name has point to the current Blocklet Server.",description:"Adding a certificate will make the service more secure, and Blocklet Server will automatically renew the certificate before it expires."}},gateway:{reqLimit:{status:{true:"Enabled",false:"Disabled"},switchLabel:"Request Limit",rate:"Request Limit({rate} Request/Second)",ipHeaderLabel:"Customize client IP header(Optional)",ipHeaderDesc:"If the Blocklet Server is running behind some proxies, you can set the header of the client's real IP here. Optional, leave empty to use default."},cacheEnabled:{switchLabel:"Enable Gateway Cache"}}},noMatch:{desc:"We can't find the page that you're looking for"},health:{connectionErrorTip:"Blocklet Server can't connect to the network, please check if Blocklet Server has been stopped or there is a network issue",connectionRecoveryTip:"Blocklet Server connectivity has been recovered",connectionStoppedTip:"Blocklet Server has been stopped",wrongAccessUrlTip:"Blocklet Server access address is wrong, please use the correct access address"},debug:{title:"Your Blocklet Server is up and running!"},team:{add:"Add New",invite:{action:"Invite New",setting:"Invite Settings",enabled:"Allow any user to invite new user to this blocklet",disabled:"Only owner/admin can invite new user to this blocklet",inviter:"Invited By"},member:{name:"Name",passport:"Passport",passports:"Passports",lastLogin:"Last Login",lastLoginIp:"Last Login IP",openProfile:"View Profile",source:"Register Source",source_derived:"Derived from oauth",source_wallet:"DID Wallet",filter:"Filter by",blockAccess:"Block Access",blockAccessDescription:"The user will not be able to connect to this application",allowAccess:"Allow Access",allowAccessDescription:"The user will be able to connect to this application",updateRole:"Update Role",removeUser:"Remove User",removeUserDescription:'Confirm remove user "{did}" and all its related data (connected accounts, passports, login sessions, etc.)? This action cannot be undone.',removeUserSuccess:"User removed successfully",revokePassport:"Revoke Passport",revokePassportDescription:"Once the passport is revoked, the passport holder can not use it to login again, are you sure to continue?",enablePassport:"Enable Passport",enablePassportDescription:"Once the revoked passport is enabled again, the passport holder can use it to login again, are you sure to continue?",passportPermissionTitle:"The passport has the following permissions:",search:"Search Member",onlyApprovedMember:"Show Approved Only",inviteDialog:{createInviteLink:"Generate Invitation Link",createSuccessTip:"The invitation link is successfully created, click to copy and send the link to the invited member, please note that this invitation link can not be reused and will expire on {expireDate}"},error:{passportEmpty:"Passport should not be empty"},connectedAccounts:"Connected Accounts",connections:"Connections",federated:"Federated",switch:{did:"Switch DID",profile:"Switch Profile",passport:"Switch Passport"},settings:{notification:"Notifications",email:"Send email to me when some events happen",wallet:"Send notification to my wallet when some events happen",phone:"Send text message to me when some events happen",webhook:"Webhooks",add:"Add new webhook",url:"Custom URL",slack:"Slack Webhook",tested:"Test message sent"},activeUserSessions:"Active User Sessions",forceLogout:"Force logout",forceLogoutDescription:"Confirm to force logout this user?"},transferNode:{name:"Transfer Ownership",inviteDialog:{title:"Transfer Blocklet Server",tips:{progress:"Transfer the server needs to be accepted by the receiver to complete the transfer operation, and once the receiver accepts it, you cannot log in to the server with the current passport again.",newOwnerPermissions:"The new Owner will have the right to manage all operations such as members, passports, and Blocklets.",revoke:'If you want to withdraw the transfer invitation, you can delete the invitation link in the "Team -> Members -> Inviting" page.'},createInviteLink:"Generate Invitation Link",createSuccessTip:"The invitation link is successfully created, click to copy and send the link to the invited member, please note that this invitation link can not be reused and will expire on {expireDate}"},delegateDialog:{title:"Authorize Required",scan:"Scan following QR code with DID Wallet to authorize server to transfer server ownership NFT.",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"}},transferApp:{name:"Transfer Ownership",transferDialog:{title:"Transfer Application",tips:{progress:"Transfer the application needs to be accepted by the receiver to complete the transfer operation, and once the receiver accepts it, you cannot log in to the application with the current passport again.",newOwnerPermissions:"The new Owner will have the right to manage all operations such as members, passports, and settings."},createTransferLink:"Generate Transfer Link",createSuccessTip1:'The transfer link is successfully created, the invitee must use <a style="color: rgb(29, 193, 199)" target="_blank" href="https://www.didwallet.io/">DID Wallet</a> to receive the app ownership',createSuccessTip2:"Please click to copy and send the link to the invited member, please note that this transfer link can not be reused and will expire on {expireDate}. Your transfer link will only be shown once and will not be viewable again after closing this dialog",createSuccessTip3:"After the transfer is successful, the application will automatically restart to make the changes take effect",link:"Transfer Link",iKnow:"I have copied and saved the link"},connectDialog:{title:"Authorize Required",scan:"Scan following QR code with DID Wallet to authorize application to transfer ownership.",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"},receiveDialog:{title:"Receive Application Ownership",scan:"Scan following QR code with DID Wallet to receive the application ownership.",confirm:"Confirm on your DID Wallet",success:"Receive Ownership Successfully"},successTitle:"You have become the new owner of this application",visitDashboard:"Visit Application Dashboard"},permission:{create:{title:"Create Permission",description:`Format: <action>_<resource>
|
|
261
|
+
e.g. 'query_user', 'mutate_user'`},delete:{title:"Delete Permission",description:"Confirm delete {name}?"},error:{actionEmpty:"action cannot be empty",resourceEmpty:"resource cannot be empty",permissionTooLong:"permission cannot exceed {length} characters",descriptionTooLong:"description cannot exceed {length} characters"}},passport:{create:{title:"Create Passport",titleTip:"Title cannot be modified after created, recommended within 14 letters"},bind:{title:"Bind Permission",roleTip:"You will get all the permissions of the selected passport after binding",permissionTip:"You will get the selected permissions after binding",transferLeftTitle:"All permissions",transferRightTitle:"Granted permissions"},delete:{title:"Delete Passport",description:"The passports holds by user will lose all permissions after it is deleted. Are you sure to continue?"},error:{titleEmpty:"title cannot be empty",titleTooLong:"title cannot exceed {length} characters",descriptionEmpty:"description cannot be empty"},issuance:{pending:"Pending",create:{title:"Generate Link"},delete:{title:"Delete Receive Link",description:"Confirm delete {link}?"}},issue:"Issue Passport",disableIssuance:"Disable Passport Issuance",enableIssuance:"Enable Passport Issuance",disableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be disabled',enableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be enabled',trustedPassportIssuers:"Trusted Passport Issuers",trustedIssuers:"Trusted Issuers",trustedFactories:"Trusted NFT Collections",trustedFactoriesTip:"Manage trusted NFT Collections that can be used to exchange for a passport",searchFactoryAddress:"Search Collection DID",configFactories:"Config Trusted NFT Collections",configFactoriesTip:"Allow users to exchange NFTs for passport",factoryAddress:"NFT Collection Address",factory404:"NFT Collection not found",factoryAddressTip:"The NFT Collection address must exist on ArcBlock Main Chain",role:"Passport Type",ttl:"Passport Expire Policy",ttlNever:"Never Expire",ttlMint:"From NFT Purchase",ttlExchange:"From Passport Exchange",ttlNeverTip:"The passport will be valid until revoked",ttlMintTip:"The passport will be valid from the time the NFT is purchased until you specified ttl or revoke",ttlExchangeTip:"The passport will be valid from the time user successfully exchanged until you specified ttl or revoke",ttlTip:'"365d" means 365 days, you can also use "30 days" or "24h"',validUntil:"Valid until: {date}",externalPassport:"External Passport",notTrustedIssuerTip:"The passport cannot be used because the issuer is not on the list of trusted issuers",issuerDid:"Issuer DID",addNodeToTrustedIssuers:"Add current server as a trusted passport issuer",revoked:"Revoked",noPermission:"No permission to perform this operation",shouldNotDeleteCurrent:"You can not revoke your passport currently in use",mappingRule:"Mapping rule",defaultRule:"Default rule",search:"Search Passport",searchIssuerDid:"Search Issuer DID",issueBy:"Issue by {name}",configColor:"Config Passport Color",configColorTip:"Customize the color of the passport",color:"Passport Color",description:"Use this passport to connect {teamName} as {title}",displayBuiltin:"Builtin",displayCustom:"Custom",typesTip:"Customize the types of the passport, split by comma",issuanceDate:"Issuance Date: {date}"},inviting:{link:"Invite Link",inviter:"Inviter",delete:{title:"Delete Invite Link",description:"Confirm delete {link}?"},disabledTip:"Invitation is not enabled"},whoCanAccess:{all:{title:"Accessible to all"},owner:{title:"Owner only"},invited:{title:"Invited user only"}}},launcher:{provider:"Provider",adminUrl:"URL"},session:{blockAccess:"You have been blocked from access this server"},launchBlocklet:{appInfo:"Application Information",appInfoDesc:"Confirm the application information",author:"Application Author: {author}",setup:"Setup Blocklet",redirect:"Redirect",alreadyRunning:"Application {name} is already running on this Blocklet Server",alreadyInstalled:"Application {name} is already installed on this Blocklet Server",alreadyExists:"This application already exists, redirecting...",purchased:"Already Purchased",purchase:"Purchase",nextStep:"Next Step",agreement:"License Agreement",agreeAll:"Agree & Continue",installing:"Installing {appName} on {serverName}, it may take minutes to complete, please stay tuned...",redirecting:"{appName} is successfully installed, now starting...",start:"Launching",launch:"Install Blocklet to Server",launchSuccess:"{appName} is successfully launched!",installSuccess:"Blocklet is successfully installed and launched on {serverName}",openInRegistry:"View in Blocklet Store",subTitle:"Ready to install Blocklet {appName} on {serverName}",installingSubTitle:"{appName} installing",access:"Open the application",installRelatedComponents:"Install related Blocklets",viewApplication:"View Application",newVersion:"New Version",newVersionDesc:"The application already exists, but the current version can be upgraded",upgradeNow:"Upgrade Now",later:"Later",introduction:"Introduction",welcome:"Welcome to the Blocklet Launch Wizard",accept:"I agree to the Blocklet EULA",license:"Application License",next:"Agree to the EULA and continue",purchaseApp:"Purchase Blocklet",setupAppDesc:"Initialize your Blocklet",launched:"Complete",confirmInstall:"Confirm Installation",dialog:{title:"Become App Owner",nftFreeDescription:"Please present app space NFT and create app account to continue",nftPaidDescription:"Please present app space NFT and app purchase NFT to continue",freeDescription:"Please create app account to continue",paidDescription:"Please present app purchase NFT and create app account to continue",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully",authorizationTimeout:"Authorization timeout"},waiting:{verifying:"Verifying app meta...",downloading:"Downloading app bundle...",downloadingComponent:"Downloading {name}",extractingComponent:"Extracting {name}",extracting:"Extracting app bundle...",installing:"Installing app components...",installed:"Installed",starting:"Starting the app...",done:"Waiting for app ready..."},error:{loadMetaFailed:"Load app information failed",appMetaNotFound:"No information found for this app",downloadFailed:"Failed to download the app, please try again",installFailed:"Failed to install the app, please try again",startFailed:"Failed to start the app, please try again",launchFailed:"Failed to launch the app, please try again",installedButStopped:"The app is installed successfully, but cannot be started. You can start it manually after resolving blocking issues",installedButError:"The app is successfully installed, but failed to start",restoreFailed:"Failed to restore app, please try again",resourceBlocklet:"This blocklet cannot be launched directly, but you can add it into existing application."},steps:{introduction:"Introduction",installApp:"Install Application",purchaseSpace:"Purchase Space",prepareSpace:"Prepare Space"}},issuePassport:{title:"Receive Passport",description:"Use DID Wallet to receive the passport issued by {name}",dialog:{scan:"Use your DID Wallet to claim the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet",loginWithPassport:"Connect with this Passport",autoClose:"Page will auto close in {seconds}s",autoJump:"Page will auto jump in {seconds}s"}},lostPassport:{title:"Lost Passport",description:"The owner of {name} can scan the QR code to retrieve the passport, members please contact the owner to reissue the passport",dialog:{title:"Recover Passport",scan:"Use your DID Wallet to recover the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet"},return:"Connect with passport",selectPassport:"Select passport",receivePassport:"Receive passport"},invite:{message:"{name} invite you to be the {role} of {dapp}",success:"You have successfully joined {dapp}",receive:"Receive with",validUntil:"Valid until:",viewPermission:"View Permission",emptyPermission:"Empty Permission",open:"Open",description:{step1:"Download and setup your {wallet}",step2:"Click above button to receive passport",step3:"Login in {dapp} with received passport"},transferNFTDialog:{title:"Accept Blocklet Server {name}",scan:"Connect the Launcher to complete the reception of the Blocklet Server.",confirm:"Review this operation on your DID Wallet",success:"Connect successfully, waiting for confirmation of receiving the Server"}},receive:{dialog:{title:"Use your DID Wallet to receive passport",scan:"Connect your DID Wallet to receive passport",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"}},navigation:{navigation:"Navigation",access:"Access",members:"Members",passport:"Passport",analytics:"Analytics",dashboard:"Dashboard",studio:"Studio",blockletService:"Blocklet Service",actionFailed:"Action Failed",form:{title:"Title",titlePlaceholder:"Please input navigation title",titleTooLong:"Title length should small than {len}",icon:"Navigation Icon",iconPlaceholder:"Please input navigation icon",invalidIcon:"Icon is invalid",findMoreIcon:"Find more icons",link:"Link",linkPlaceholder:"Please input navigation link",invalidLink:"Link is invalid",component:"Component",componentPlaceholder:"Please select navigation component",role:"Role",rolePlaceholder:"Please select navigation role",locale:"Locale",localePlaceholder:"Please input locale need to add",localeExists:"{value} is already exists"},action:{add:"Add navigation",addSub:"Add sub navigation",edit:"Edit navigation",hide:"Hide navigation",show:"Show navigation",del:"Delete navigation",new:"New",noAddSub:"Uninstalled component can't add sub navigation",noEdit:"Uninstalled component can't edit",noDel:"Not allowed delete built-in navigation",reset:"Reset",restConfirmTitle:"Do you want to clear all custom navigation?",restConfirmDesc:"After clearing, the navigation will be restored to Blocklet's original default configuration.",resetSuccessful:"Reset successful"}},storage:{spaces:{tips:"Tips",label:"Enter DID Spaces Gateway",connected:{title:"Connected DID Spaces",tag:"Connected"},connectedWithName:"You have successfully connected to {name}",addedWithName:"You have successfully added {name}",connects:"Connect",reconnect:"Reconnect",addressCannotEmpty:"Address cannot be empty",addressNotValid:"{url} is not a valid address",authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"},provideNFT:{title:"Please show the DID Spaces NFT for {appName}",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} show DID space NFT",success:"Connected successfully"},backup:{title:"Backup",records:"Backup Records"},autoBackup:{title:"Auto backup",enabled:"Automatic backup is on",disabled:"Automatic backup is off"},autoCheckUpdate:{title:"Automatically check for new version notification",enabled:"Automatically check for new version is on",disabled:"Automatically check for new version is off"},backupSuccessfully:"Backup successfully",restore:"Restore",restoreSuccessfully:"Restore successfully",gateway:{title:"Gateway",select:"Select a DID Spaces",add:{title:"Add DID Spaces",label:"Enter the url of the DID Spaces",failed:"Add DID Spaces failed",invalidUrl:"Invalid DID Spaces gateway url",duplicate:"DID Space({name}) already exist"},delete:{title:"Delete gateway",succeeded:"Delete DID Spaces{name} Success",failed:"Delete gateway failed",failedForSelected:"Unable to delete a selected DID Spaces"},connect:{title:"Connect DID Spaces",add:"Connect to DID Spaces now",addTips:"You are not connected to any Space yet",switch:"Switch DID Spaces",switchTips:"You are connected to {name}",connected:"Connected"},switch:{failedForMismatchSpace:"Please connect to the correct Space{name}"},connectTo:"Connect to DID Spaces"},strategy:{title:"Backup Strategy",autoBackup:"Auto backup",backupNow:"Backup now",viewBackupFiles:"View backup files"},progress:{title:"Backup progress"},record:{title:"Backup records",emptyData:"No records"},notYet:"You don't have a backup in progress yet...",connect:{now:"Connect now",title:"Connect DID Spaces",provider:"Provide your DID Spaces to start backups",providerForStorage:"Please connect your DID Spaces",useWallet:"Connect with DID Wallet",useWalletReconnect:"Reconnect with DID Wallet",useSpaceGateway:"Connect using the DID Spaces gateway",useSpaceGatewayReconnect:"Reconnect using the DID Spaces gateway",switchToSpace:"Switch to Space",switchToSpaceSucceeded:"Switched to Space{name}",succeeded:"You have successfully connected to DID Spaces",disconnect:"disconnect"},disconnected:{tag:"Disconnected",reconnectNow:"Reconnect Now"}}},log:{lastDays:{1:"Last 1 Day",7:"Last 1 Week"}},oauth:{commonSettings:"Common Settings",save:"Save",saveSuccess:"Save successfully",saveFailed:"Save failed",issued:"Issued",thirdPartyLogin:"Third party login",alreadyBindOAuth:"Already bind third party login",alreadyBindWallet:"Already bind DID Wallet",auth0:{enable:"Enable Auth0 login",domain:"Domain",domainDescription:"Auth0's domain is required",clientId:"Client ID",clientIdDescription:"Auth0 OAuth application client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Auth0 OAuth application Client Secret is required"},github:{enable:"Enable Github login",clientId:"Client ID",clientIdDescription:"Github OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Github OAuth application Client Secret is required"},google:{enable:"Enable Google login",clientId:"Client ID",clientIdDescription:"Google OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Google OAuth application Client Secret is required"},apple:{enable:"Enable Apple login",teamId:"Team ID",teamIdDescription:"Apple OAuth application Team ID is required",serviceId:"Service ID",serviceIdDescription:"Apple OAuth application Service ID is required",keyId:"Key ID",keyIdDescription:"Apple OAuth application Key ID is required",authKey:"Auth Key",authKeyDescription:"Apple OAuth application Auth Key is required",bundleId:"Bundle ID",bundleIdDescription:"Apple OAuth application Bundle ID is required"},comingSoon:"More login methods are under construction",moreLogin:"More Login",federated:"Federated Login",oauth:"Third Party Login",runTest:"Test"},expiration:{mobile:{tips:{success:"{validity}",warning:"{validity}",error:"Expired"},loadFailed:"Retry!"},desktop:{tips:{success:"Subscription will expire after {validity}",warning:"Subscription will expire after {validity}",error:"Subscription Expired"},loading:"Load subscription...",loadFailed:"Failed to load subscription info, please retry!",nextInvoice:"Next Invoice: {date}"}},analytics:{trend:"Trends",detail:"Breakdown",traffic:{totalRequests:"Total Requests",validRequests:"Success Requests",failedRequests:"Failed Requests",uniqueVisitors:"Unique Visitors",uniqueFiles:"Unique URLs",uniqueReferrers:"Unique Referrers",uniqueNotFound:"Unique 404",uniqueStaticFiles:"Unique Static Files",logSize:"Log Size",bandwidth:"Bandwidth"}},federated:{inviteJoinFederatedLogin:"Invite to join federated login",inviteJoinFederatedLoginDescription:"Copy the following address and fill it in the application where you need to join to apply for federated login.",federatedLogin:"Federated login",joinFederatedLogin:"Join federated login",joinFederatedLoginDescription:"Please enter the federated login address provided by Master Blocklet to join the federated login",quitFederatedLogin:"Quit federated login",quitFederatedLoginDescription:"After quit federated login, normal login is always available",federatedJoinAppUrl:"Federated login join appUrl",federatedJoinAppUrlRequired:"Please input federated login join appUrl",failedToGetFederatedLoginAppUrl:"Failed to get federated login join appUrl",federatedJoinAppUrlInvalid:"Federated login appUrl is invalid",siteDetail:"Site detail",approveToJoinLogin:"Approve to join federated login",approve:"Enable login",revoke:"Disable login",enableFederatedLogin:"Enable federated login",disableFederatedLogin:"Disable federated login",enableFederatedLoginDescription:"After enable federated login, this site will be auto login",disableFederatedLoginDescription:"After disable federated login, this site will not be auto login",enableFederatedAutoLogin:"Enable automatic login",enableFederatedAutoLoginDescription:"After enable automatic login, if there is currently a unified login status, the site will automatically log in the identity of the federated login",disableFederatedAutoLogin:"Disable automatic login",disableFederatedAutoLoginDescription:"After the automatic login is turned off, the site will not automatically log in the user information of the unified login, and you can still choose to manually click to log in with the identity of the federated login",info:{appId:"APP DID",appPid:"Permanent ID",migratedFrom:"Also Known As",appName:"Blocklet name",appDescription:"Blocklet description",appUrl:"Blocklet url",appLogo:"Blocklet logo",did:"Blocklet DID",serverId:"Blocklet Server ID",serverVersion:"Blocklet Server version",version:"Blocklet version",appliedAt:"Apply at",status:"Status"},status:{pending:"Pending",approved:"Approved",rejected:"Rejected",revoked:"Revoked"},disbandFederatedLogin:"Disband federated login",disbandFederatedLoginDescription:"After disband federated login, all member site will quit federated login automatically"},optionsOrder:{1:"Option One",2:"Option Two"},securityRule:{title:"Security Rule",sortByDescription:"Sort by matching priority",add:"Add Security Rule",edit:"Edit Security Rule",view:"View Security Rule",form:{precede:"Precede",pathPattern:"Path Pattern",pathPatternPlaceholder:"Please input path pattern",pathPatternErrorText:"Path pattern is invalid",accessPolicyOrResponseHeaderPolicyRequired:"Access Policy or Response Header Policy is required",accessPolicy:"Access Policy",accessPolicyPlaceholder:"Please select access policy",accessPolicyHelperText:"Please select access policy",responseHeaderPolicy:"Response Header Policy",responseHeaderPolicyPlaceholder:"Please select response header policy",responseHeaderPolicyHelperText:"Please select response header policy",remark:"Remark",remarkPlaceholder:"Please input remark",component:"Component",componentPlaceholder:"Please choose component"},delete:{title:"Delete Security Rule ?",description:"After removing a security rule, the rule will no longer take effect"}},responseHeaderPolicy:{title:"Response Header Policy",add:"Add Response Header Policy",edit:"Edit Response Header Policy",view:"View Response Header Policy",form:{name:"Name",namePlaceholder:"Please input name",description:"Description",descriptionPlaceholder:"Please input description",originOverride:"Origin Override",originOverrideHelperText:"Whether to allow the logic in the application to override this response header",cors:{origin:"Origin",originPlaceholder:"Support the following domain formats: http://www.example.com, http://*.example.com, http://www.example.com:8080, * (wildcard is not recommended)",originHelperText:"Domain name starts with http:// or https://, one per line, one wildcard * per line",methods:"Methods",allowedHeaders:"Allowed Headers",allowedHeadersPlaceholder:"It's recommended to fill in *, support multi-line input",allowedHeadersHelperText:"Tell the server which custom HTTP request headers can be used in the next request when sending an OPTIONS request, such as: x-blocklet-version",exposedHeaders:"Exposed Headers",exposedHeadersPlaceholder:"Support multi-line input",exposedHeadersHelperText:"Configure Expose-Headers, for example: X-Content-Range",maxAge:"Max-Age (Seconds)",maxAgeHelperText:"The validity period of the result obtained by the OPTIONS request, which needs to be a positive integer",optionsSuccessStatus:"Options Success Status",preflightContinue:"Preflight Continue",credentials:"Credentials",smartMode:"Smart Mode",smartModeHelperText:"Automatically add all domain names of the current application, as well as all domain names of the federated login site group"}},delete:{title:"Delete Response Header Policy ?",description:"After removing a response header policy, the policy will no longer take effect"}},accessPolicy:{title:"Access Policy",add:"Add Access Policy",edit:"Edit Access Policy",view:"View Access Policy",form:{name:"Name",namePlaceholder:"Please input name",description:"Description",descriptionPlaceholder:"Please input description",roles:"Access Roles",accessType:"Access type"},delete:{title:"Delete Access Policy ?",description:"After removing an access policy, the policy will no longer take effect"}}},en={pageTitle:{login:"Login",dashboard:"Blocklet Dashboard",userCenter:"User Center",invite:"Invite",issuePassport:"Issue Passport",lostPassport:"Lost Passport"},auth:{noPermission:{title:"No Permission",description:"You are not the administrator of the blocklet"}},login:{reLogin:"Reconnect",description:"You must connect your DID Wallet to access {name}",already:"You are connected as",connectWallet:"Connect DID Wallet",closeWindow:"Close window",switchDid:{title:"Switch DID Wallet",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},switchSpecifiedDid:{title:"Switch DID Wallet",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},connect:{title:"Connect DID Wallet",scan:"Connect your DID Wallet to access this application",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"},accessLimit:{title:"Page access restricted ",description:"This page requires the following passports to access, please connect to the wallet to change or apply for the corresponding pass.",alreadyHavePassport:"Already have the passport",connectWithPassport:"Connect with this passport",buyPassport:"buyPassport"},connectWithPassport:"Connect with this passport",needManualClose:"Login success, if this window is not auto closed, please close it.",invalidRedirectUrl:"Invalid redirect url",invalidOpenerUrl:"Invalid opener url",issueKyc:{verifyTitle:"Verify Your Email Address",issueTitle:"Claim Email Verification NFT",verifyAction:"verifying",issueAction:"claiming",emailPlaceholder:"Your email address",pageDescription:"Complete the verification to secure your account and get a reusable NFT, which can be trusted by other sites (verify once and present everywhere).",issueTarget:"You are {action} for the following DID, click the avatar to add another DID",verifyButton:"Verify",sendCodeButton:"Get Verify Code",codeSentMessage:"We just sent a verification code to {email}, the code will be valid for 30 minutes, please check your inbox or spam folder.",codeSentSuccess:"Verification code sent successfully",claim:"Claim Email Verification NFT",scan:"Connect your DID Wallet to receive the NFT",confirm:"Confirm on your DID Wallet",success:"Congratulations! You have successfully verified your email and claimed the NFT in your DID Wallet.",backToHome:"Back to Home"},updateKyc:{button:"Present NFT",title:"Present Your Email Verification NFT",scan:"Connect your DID Wallet to present the NFT",confirm:"Confirm on your DID Wallet",success:"Congratulations! You NFT is verified and accepted."}},studio:{home:"Studio",preferences:"Preference Builder",branding:"Branding Images",localization:"Localization",ratio:"Ratio",size:"Size",count:"Count",tip:"Tip",change:"Click the logo to change.",order:"Order",orderTip:"drag to change",orderTipLong:"drag to change, if you deleted any screenshot on the disk, please refresh the page."},blocklet:{startApplication:"Start Application",startDescription:"Ready to start {name}",start:"Start",starting:"Starting...",open:"Open",suspended:"Application suspended",terminated:"Application terminated",suspendedCausedByExpired:"This application has been suspended due to payment expiration. Please renew before the {deadline} to resume. Failure to renew within the specified timeframe will result in the inability to renew or resume.",suspendedCausedByTerminated:"The application was terminated due to the cancellation of the subscription, which was canceled on {canceledAt}, and the data will be retained until {deadline}; before the data is deleted, you can back up the data to DID Spaces.",manageSubscription:"Manage Subscription"},setup:{steps:{connect:"Connect",didSpace:"DID Spaces",config:"Configuration",domain:"Domain",access:"Access Control",fuel:"Fuel",complete:"Complete",introduction:"Introduction",selectNodeDesc:"Select Blocklet Server",launchAppDesc:"Install Blocklet to Server",setupAppDesc:"Setup Blocklet",launched:"Complete"},connect:{title:"Connect to Application",scan:"Connect your DID Wallet to provide user profile and the blocklet's Owner privileges, then you can configure and launch the app.",confirm:"Confirm on your DID Wallet",success:"You are connected successfully"},domain:{addTitle:"Add a new domain name (Optional)",title:"Domain Setting",subTitle:"Set a custom domain for the application",label:"Please provide a valid domain name",tipStart:"Please make sure",tipEnd:"has point to the current Server",cannotResolve:"{domain} can not be resolved, please check your DNS configuration",checkingResolvable:"Checking domain status...",addingCert:"Generating certificate...",addingDomain:"Adding domain...",recordType:"Record Type",recordValue:"Record Value",skipStart:"You can",skip:"skip custom domain setting",skipEnd:"and use the default domain to access the application",genCertSuccess:"The {domain} certificate is issued successfully",genCertFailed:"Failed to issue certificate for {domain}: {message}",genCertFailedForNFTDomain:"Added NFT domain successfully, but failed to generate HTTPS certificate, please try again later",resolvedAddressError:"{domain} does not point to the same IP address as {curDomain}",invalidDNSReminder:"{error}. However, you can continue to add the domain, but automatic certificate generation is not available.",continueAdd:"Continue Adding"},didSpace:{title:"Configure DID Spaces",subTitle:"Complete the following connection process to store application data in DID Spaces",tips:"Tips",description:"Configure the DID Spaces instance address and store the application data in DID Spaces after a successful connection",label:"Please select the DID Spaces service",connected:"You have successfully connected to DID Spaces",connect:"Connect Now",reconnect:"Reconnect",addressCannotEmpty:"Address cannot be empty",addressNotValid:"{url} is not a valid address",authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"}},config:{title:"Configuration",subTitle:"Other configuration items (you will also need to set the following items)"},complete:{title:"Everything is Ready",failedTitle:"Failed to start Blocklet",backToServer:"Back to Blocklet Server",notRunning:"Blocklet failed to start on the first shot, please retry"},fuel:{title:"Fuel required to start",tipStart:"slot",tipEnd:" is required for this application to work properly, the fund are saved in the application wallet and can consumed for transaction gas purpose. You can withdraw your balance at any time when you no longer have the app running.",addressTitle:"Application Account",addressTip:"Fuel the application with DID Wallet",need:"Need",current:"Current",fuelApp:"Fuel the application"},title:"Setup",next:"Next",previous:"Previous",continue:"Continue",skip:"Skip",startNow:"Start Now",confirm:"Confirm",cancel:"Cancel"},user:{walletNotification:"DID Wallet notification",emailNotification:"Email notification",smsNotification:"SMS notification",addWebhook:"Add New Webhook"}},translations$9={en:Se(merge$2(en$1,en)),ar:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ar-DwhokVLj.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ar-DVPUxrdQ.js"),[]).then(j=>j.default)]);return Se(merge$2(...a))},de:async()=>{const a=await Promise.all([__vitePreload(()=>import("./de-CS8qZeoq.js"),[]).then(j=>j.default),__vitePreload(()=>import("./de-DVXfDFSU.js"),[]).then(j=>j.default)]);return Se(merge$2(...a))},es:async()=>{const a=await Promise.all([__vitePreload(()=>import("./es-xG0Pi6Vu.js"),[]).then(j=>j.default),__vitePreload(()=>import("./es-FbTZG3DY.js"),[]).then(j=>j.default)]);return Se(merge$2(...a))},fr:async()=>{const a=await Promise.all([__vitePreload(()=>import("./fr-D_NT6aZ9.js"),[]).then(j=>j.default),__vitePreload(()=>import("./fr-DL1YXCMM.js"),[]).then(j=>j.default)]);return Se(merge$2(...a))},hi:async()=>{const a=await Promise.all([__vitePreload(()=>import("./hi-gQURTn8d.js"),[]).then(j=>j.default),__vitePreload(()=>import("./hi-DVTVHQJG.js"),[]).then(j=>j.default)]);return Se(merge$2(...a))},id:async()=>{const a=await Promise.all([__vitePreload(()=>import("./id-CS1bsZtf.js"),[]).then(j=>j.default),__vitePreload(()=>import("./id-CjJaQtmp.js"),[]).then(j=>j.default)]);return Se(merge$2(...a))},ja:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ja-dRhtFh3i.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ja-D5d-ejt-.js"),[]).then(j=>j.default)]);return Se(merge$2(...a))},ko:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ko-Bf5brKj6.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ko-KSOTEFlZ.js"),[]).then(j=>j.default)]);return Se(merge$2(...a))},pt:async()=>{const a=await Promise.all([__vitePreload(()=>import("./pt-DT1ewc-i.js"),[]).then(j=>j.default),__vitePreload(()=>import("./pt-CZUQ83t-.js"),[]).then(j=>j.default)]);return Se(merge$2(...a))},ru:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ru-Bu6fUIp5.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ru-BowhhxB9.js"),[]).then(j=>j.default)]);return Se(merge$2(...a))},th:async()=>{const a=await Promise.all([__vitePreload(()=>import("./th-Dc8W01H6.js"),[]).then(j=>j.default),__vitePreload(()=>import("./th-G7hcFvcB.js"),[]).then(j=>j.default)]);return Se(merge$2(...a))},vi:async()=>{const a=await Promise.all([__vitePreload(()=>import("./vi-CO4j8X-h.js"),[]).then(j=>j.default),__vitePreload(()=>import("./vi-DwM1n61y.js"),[]).then(j=>j.default)]);return Se(merge$2(...a))},zh:async()=>{const a=await Promise.all([__vitePreload(()=>import("./zh-D3BaPKV5.js"),[]).then(j=>j.default),__vitePreload(()=>import("./zh-4Fb8w10J.js"),[]).then(j=>j.default)]);return Se(merge$2(...a))},"zh-TW":async()=>{const a=await Promise.all([__vitePreload(()=>import("./zh-tw-18T4kLe_.js"),[]).then(j=>j.default),__vitePreload(()=>import("./zh-tw-BMZcmOgr.js"),[]).then(j=>j.default)]);return Se(merge$2(...a))}};function arrayEach$1(a,j){for(var _e=-1,et=a==null?0:a.length;++_e<et&&j(a[_e],_e,a)!==!1;);return a}var _arrayEach=arrayEach$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$1=_isPrototype,nativeKeys=_nativeKeys,objectProto$7=Object.prototype,hasOwnProperty$b=objectProto$7.hasOwnProperty;function baseKeys$2(a){if(!isPrototype$1(a))return nativeKeys(a);var j=[];for(var _e in Object(a))hasOwnProperty$b.call(a,_e)&&_e!="constructor"&&j.push(_e);return j}var _baseKeys=baseKeys$2,arrayLikeKeys=_arrayLikeKeys,baseKeys$1=_baseKeys,isArrayLike$3=isArrayLike_1;function keys$6(a){return isArrayLike$3(a)?arrayLikeKeys(a):baseKeys$1(a)}var keys_1=keys$6,copyObject$4=_copyObject,keys$5=keys_1;function baseAssign$1(a,j){return a&©Object$4(j,keys$5(j),a)}var _baseAssign=baseAssign$1,copyObject$3=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(a,j){return a&©Object$3(j,keysIn$2(j),a)}var _baseAssignIn=baseAssignIn$1;function arrayFilter$1(a,j){for(var _e=-1,et=a==null?0:a.length,nt=0,tt=[];++_e<et;){var ot=a[_e];j(ot,_e,a)&&(tt[nt++]=ot)}return tt}var _arrayFilter=arrayFilter$1;function stubArray$2(){return[]}var stubArray_1=stubArray$2,arrayFilter=_arrayFilter,stubArray$1=stubArray_1,objectProto$6=Object.prototype,propertyIsEnumerable=objectProto$6.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols$3=nativeGetSymbols$1?function(a){return a==null?[]:(a=Object(a),arrayFilter(nativeGetSymbols$1(a),function(j){return propertyIsEnumerable.call(a,j)}))}:stubArray$1,_getSymbols=getSymbols$3,copyObject$2=_copyObject,getSymbols$2=_getSymbols;function copySymbols$1(a,j){return copyObject$2(a,getSymbols$2(a),j)}var _copySymbols=copySymbols$1;function arrayPush$3(a,j){for(var _e=-1,et=j.length,nt=a.length;++_e<et;)a[nt+_e]=j[_e];return a}var _arrayPush=arrayPush$3,arrayPush$2=_arrayPush,getPrototype=_getPrototype,getSymbols$1=_getSymbols,stubArray=stubArray_1,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols?function(a){for(var j=[];a;)arrayPush$2(j,getSymbols$1(a)),a=getPrototype(a);return j}:stubArray,_getSymbolsIn=getSymbolsIn$2,copyObject$1=_copyObject,getSymbolsIn$1=_getSymbolsIn;function copySymbolsIn$1(a,j){return copyObject$1(a,getSymbolsIn$1(a),j)}var _copySymbolsIn=copySymbolsIn$1,arrayPush$1=_arrayPush,isArray$e=isArray_1;function baseGetAllKeys$2(a,j,_e){var et=j(a);return isArray$e(a)?et:arrayPush$1(et,_e(a))}var _baseGetAllKeys=baseGetAllKeys$2,baseGetAllKeys$1=_baseGetAllKeys,getSymbols=_getSymbols,keys$4=keys_1;function getAllKeys$2(a){return baseGetAllKeys$1(a,keys$4,getSymbols)}var _getAllKeys=getAllKeys$2,baseGetAllKeys=_baseGetAllKeys,getSymbolsIn=_getSymbolsIn,keysIn$1=keysIn_1;function getAllKeysIn$3(a){return baseGetAllKeys(a,keysIn$1,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$3,getNative$5=_getNative,root$7=_root,DataView$2=getNative$5(root$7,"DataView"),_DataView=DataView$2,getNative$4=_getNative,root$6=_root,Promise$2=getNative$4(root$6,"Promise"),_Promise=Promise$2,getNative$3=_getNative,root$5=_root,Set$3=getNative$3(root$5,"Set"),_Set=Set$3,getNative$2=_getNative,root$4=_root,WeakMap$4=getNative$2(root$4,"WeakMap"),_WeakMap=WeakMap$4,DataView$1=_DataView,Map$3=_Map,Promise$1=_Promise,Set$2=_Set,WeakMap$3=_WeakMap,baseGetTag$3=_baseGetTag,toSource$2=_toSource,mapTag$5="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$5="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource$2(DataView$1),mapCtorString=toSource$2(Map$3),promiseCtorString=toSource$2(Promise$1),setCtorString=toSource$2(Set$2),weakMapCtorString=toSource$2(WeakMap$3),getTag$5=baseGetTag$3;(DataView$1&&getTag$5(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$3&&getTag$5(new Map$3)!=mapTag$5||Promise$1&&getTag$5(Promise$1.resolve())!=promiseTag||Set$2&&getTag$5(new Set$2)!=setTag$5||WeakMap$3&&getTag$5(new WeakMap$3)!=weakMapTag$1)&&(getTag$5=function(a){var j=baseGetTag$3(a),_e=j==objectTag$2?a.constructor:void 0,et=_e?toSource$2(_e):"";if(et)switch(et){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$5;case promiseCtorString:return promiseTag;case setCtorString:return setTag$5;case weakMapCtorString:return weakMapTag$1}return j});var _getTag=getTag$5,objectProto$5=Object.prototype,hasOwnProperty$a=objectProto$5.hasOwnProperty;function initCloneArray$1(a){var j=a.length,_e=new a.constructor(j);return j&&typeof a[0]=="string"&&hasOwnProperty$a.call(a,"index")&&(_e.index=a.index,_e.input=a.input),_e}var _initCloneArray=initCloneArray$1,cloneArrayBuffer$1=_cloneArrayBuffer;function cloneDataView$1(a,j){var _e=j?cloneArrayBuffer$1(a.buffer):a.buffer;return new a.constructor(_e,a.byteOffset,a.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(a){var j=new a.constructor(a.source,reFlags.exec(a));return j.lastIndex=a.lastIndex,j}var _cloneRegExp=cloneRegExp$1,Symbol$6=_Symbol,symbolProto$3=Symbol$6?Symbol$6.prototype:void 0,symbolValueOf$1=symbolProto$3?symbolProto$3.valueOf:void 0;function cloneSymbol$1(a){return symbolValueOf$1?Object(symbolValueOf$1.call(a)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=_cloneSymbol,cloneTypedArray=_cloneTypedArray,boolTag$3="[object Boolean]",dateTag$2="[object Date]",mapTag$4="[object Map]",numberTag$3="[object Number]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$3="[object String]",symbolTag$4="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag$1(a,j,_e){var et=a.constructor;switch(j){case arrayBufferTag$2:return cloneArrayBuffer(a);case boolTag$3:case dateTag$2:return new et(+a);case dataViewTag$2:return cloneDataView(a,_e);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(a,_e);case mapTag$4:return new et;case numberTag$3:case stringTag$3:return new et(a);case regexpTag$2:return cloneRegExp(a);case setTag$4:return new et;case symbolTag$4:return cloneSymbol(a)}}var _initCloneByTag=initCloneByTag$1,getTag$4=_getTag,isObjectLike$8=isObjectLike_1,mapTag$3="[object Map]";function baseIsMap$1(a){return isObjectLike$8(a)&&getTag$4(a)==mapTag$3}var _baseIsMap=baseIsMap$1,baseIsMap=_baseIsMap,baseUnary$3=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap$1=nodeIsMap?baseUnary$3(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$3=_getTag,isObjectLike$7=isObjectLike_1,setTag$3="[object Set]";function baseIsSet$1(a){return isObjectLike$7(a)&&getTag$3(a)==setTag$3}var _baseIsSet=baseIsSet$1,baseIsSet=_baseIsSet,baseUnary$2=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet$1=nodeIsSet?baseUnary$2(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack$2=_Stack,arrayEach=_arrayEach,assignValue$2=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer=_cloneBufferExports,copyArray=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys$1=_getAllKeys,getAllKeysIn$2=_getAllKeysIn,getTag$2=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject=_initCloneObject,isArray$d=isArray_1,isBuffer$3=isBufferExports,isMap=isMap_1,isObject$f=isObject_1,isSet=isSet_1,keys$3=keys_1,keysIn=keysIn_1,CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag$2="[object Function]",genTag$2="[object GeneratorFunction]",mapTag$2="[object Map]",numberTag$2="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$2="[object String]",symbolTag$3="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$2]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$2]=cloneableTags[numberTag$2]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$2]=cloneableTags[stringTag$2]=cloneableTags[symbolTag$3]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag$2]=cloneableTags[weakMapTag]=!1;function baseClone$2(a,j,_e,et,nt,tt){var ot,ct=j&CLONE_DEEP_FLAG$2,ft=j&CLONE_FLAT_FLAG$1,ht=j&CLONE_SYMBOLS_FLAG$2;if(_e&&(ot=nt?_e(a,et,nt,tt):_e(a)),ot!==void 0)return ot;if(!isObject$f(a))return a;var dt=isArray$d(a);if(dt){if(ot=initCloneArray(a),!ct)return copyArray(a,ot)}else{var yt=getTag$2(a),Tt=yt==funcTag$2||yt==genTag$2;if(isBuffer$3(a))return cloneBuffer(a,ct);if(yt==objectTag$1||yt==argsTag$1||Tt&&!nt){if(ot=ft||Tt?{}:initCloneObject(a),!ct)return ft?copySymbolsIn(a,baseAssignIn(ot,a)):copySymbols(a,baseAssign(ot,a))}else{if(!cloneableTags[yt])return nt?a:{};ot=initCloneByTag(a,yt,ct)}}tt||(tt=new Stack$2);var St=tt.get(a);if(St)return St;tt.set(a,ot),isSet(a)?a.forEach(function(It){ot.add(baseClone$2(It,j,_e,It,a,tt))}):isMap(a)&&a.forEach(function(It,Ct){ot.set(Ct,baseClone$2(It,j,_e,Ct,a,tt))});var At=ht?ft?getAllKeysIn$2:getAllKeys$1:ft?keysIn:keys$3,Rt=dt?void 0:At(a);return arrayEach(Rt||a,function(It,Ct){Rt&&(Ct=It,It=a[Ct]),assignValue$2(ot,Ct,baseClone$2(It,j,_e,Ct,a,tt))}),ot}var _baseClone=baseClone$2;function last$2(a){var j=a==null?0:a.length;return j?a[j-1]:void 0}var last_1=last$2,baseGet$4=_baseGet,baseSlice=_baseSlice;function parent$1(a,j){return j.length<2?a:baseGet$4(a,baseSlice(j,0,-1))}var _parent=parent$1,castPath$6=_castPath,last$1=last_1,parent=_parent,toKey$6=_toKey;function baseUnset$1(a,j){return j=castPath$6(j,a),a=parent(a,j),a==null||delete a[toKey$6(last$1(j))]}var _baseUnset=baseUnset$1,isPlainObject$1=isPlainObject_1;function customOmitClone$1(a){return isPlainObject$1(a)?void 0:a}var _customOmitClone=customOmitClone$1,Symbol$5=_Symbol,isArguments$4=isArguments_1,isArray$c=isArray_1,spreadableSymbol=Symbol$5?Symbol$5.isConcatSpreadable:void 0;function isFlattenable$1(a){return isArray$c(a)||isArguments$4(a)||!!(spreadableSymbol&&a&&a[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush=_arrayPush,isFlattenable=_isFlattenable;function baseFlatten$3(a,j,_e,et,nt){var tt=-1,ot=a.length;for(_e||(_e=isFlattenable),nt||(nt=[]);++tt<ot;){var ct=a[tt];j>0&&_e(ct)?j>1?baseFlatten$3(ct,j-1,_e,et,nt):arrayPush(nt,ct):et||(nt[nt.length]=ct)}return nt}var _baseFlatten=baseFlatten$3,baseFlatten$2=_baseFlatten;function flatten$2(a){var j=a==null?0:a.length;return j?baseFlatten$2(a,1):[]}var flatten_1=flatten$2;const flatten$3=getDefaultExportFromCjs$1(flatten_1);var flatten$1=flatten_1,overRest=_overRest,setToString=_setToString;function flatRest$2(a){return setToString(overRest(a,void 0,flatten$1),a+"")}var _flatRest=flatRest$2,arrayMap$4=_arrayMap,baseClone$1=_baseClone,baseUnset=_baseUnset,castPath$5=_castPath,copyObject=_copyObject,customOmitClone=_customOmitClone,flatRest$1=_flatRest,getAllKeysIn$1=_getAllKeysIn,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,omit=flatRest$1(function(a,j){var _e={};if(a==null)return _e;var et=!1;j=arrayMap$4(j,function(tt){return tt=castPath$5(tt,a),et||(et=tt.length>1),tt}),copyObject(a,getAllKeysIn$1(a),_e),et&&(_e=baseClone$1(_e,CLONE_DEEP_FLAG$1|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG$1,customOmitClone));for(var nt=j.length;nt--;)baseUnset(_e,j[nt]);return _e}),omit_1=omit;const omit$1=getDefaultExportFromCjs$1(omit_1);var assignValue$1=_assignValue,castPath$4=_castPath,isIndex$2=_isIndex,isObject$e=isObject_1,toKey$5=_toKey;function baseSet$2(a,j,_e,et){if(!isObject$e(a))return a;j=castPath$4(j,a);for(var nt=-1,tt=j.length,ot=tt-1,ct=a;ct!=null&&++nt<tt;){var ft=toKey$5(j[nt]),ht=_e;if(ft==="__proto__"||ft==="constructor"||ft==="prototype")return a;if(nt!=ot){var dt=ct[ft];ht=et?et(dt,ft,ct):void 0,ht===void 0&&(ht=isObject$e(dt)?dt:isIndex$2(j[nt+1])?[]:{})}assignValue$1(ct,ft,ht),ct=ct[ft]}return a}var _baseSet=baseSet$2,baseGet$3=_baseGet,baseSet$1=_baseSet,castPath$3=_castPath;function basePickBy$2(a,j,_e){for(var et=-1,nt=j.length,tt={};++et<nt;){var ot=j[et],ct=baseGet$3(a,ot);_e(ct,ot)&&baseSet$1(tt,castPath$3(ot,a),ct)}return tt}var _basePickBy=basePickBy$2;function baseHasIn$1(a,j){return a!=null&&j in Object(a)}var _baseHasIn=baseHasIn$1,castPath$2=_castPath,isArguments$3=isArguments_1,isArray$b=isArray_1,isIndex$1=_isIndex,isLength=isLength_1,toKey$4=_toKey;function hasPath$1(a,j,_e){j=castPath$2(j,a);for(var et=-1,nt=j.length,tt=!1;++et<nt;){var ot=toKey$4(j[et]);if(!(tt=a!=null&&_e(a,ot)))break;a=a[ot]}return tt||++et!=nt?tt:(nt=a==null?0:a.length,!!nt&&isLength(nt)&&isIndex$1(ot,nt)&&(isArray$b(a)||isArguments$3(a)))}var _hasPath=hasPath$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$2(a,j){return a!=null&&hasPath(a,j,baseHasIn)}var hasIn_1=hasIn$2,basePickBy$1=_basePickBy,hasIn$1=hasIn_1;function basePick$1(a,j){return basePickBy$1(a,j,function(_e,et){return hasIn$1(a,et)})}var _basePick=basePick$1,basePick=_basePick,flatRest=_flatRest,pick$1=flatRest(function(a,j){return a==null?{}:basePick(a,j)}),pick_1$1=pick$1;const pick$2=getDefaultExportFromCjs$1(pick_1$1);var baseClone=_baseClone,CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(a){return baseClone(a,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var cloneDeep_1=cloneDeep;const cloneDeep$1=getDefaultExportFromCjs$1(cloneDeep_1);function isUndefined$1(a){return a===void 0}var isUndefined_1=isUndefined$1;const isUndefined$2=getDefaultExportFromCjs$1(isUndefined_1);var baseMerge$1=_baseMerge,isObject$d=isObject_1;function customDefaultsMerge$1(a,j,_e,et,nt,tt){return isObject$d(a)&&isObject$d(j)&&(tt.set(j,a),baseMerge$1(a,j,void 0,customDefaultsMerge$1,tt),tt.delete(j)),a}var _customDefaultsMerge=customDefaultsMerge$1,baseMerge=_baseMerge,createAssigner=_createAssigner,mergeWith$1=createAssigner(function(a,j,_e,et){baseMerge(a,j,_e,et)}),mergeWith_1=mergeWith$1,apply$2=_apply,baseRest$3=_baseRest,customDefaultsMerge=_customDefaultsMerge,mergeWith=mergeWith_1,defaultsDeep=baseRest$3(function(a){return a.push(void 0,customDefaultsMerge),apply$2(mergeWith,void 0,a)}),defaultsDeep_1=defaultsDeep;const defaultsDeep$1=getDefaultExportFromCjs$1(defaultsDeep_1);var eventemitter3$1={exports:{}};(function(a){var j=Object.prototype.hasOwnProperty,_e="~";function et(){}Object.create&&(et.prototype=Object.create(null),new et().__proto__||(_e=!1));function nt(ft,ht,dt){this.fn=ft,this.context=ht,this.once=dt||!1}function tt(ft,ht,dt,yt,Tt){if(typeof dt!="function")throw new TypeError("The listener must be a function");var St=new nt(dt,yt||ft,Tt),At=_e?_e+ht:ht;return ft._events[At]?ft._events[At].fn?ft._events[At]=[ft._events[At],St]:ft._events[At].push(St):(ft._events[At]=St,ft._eventsCount++),ft}function ot(ft,ht){--ft._eventsCount===0?ft._events=new et:delete ft._events[ht]}function ct(){this._events=new et,this._eventsCount=0}ct.prototype.eventNames=function(){var ht=[],dt,yt;if(this._eventsCount===0)return ht;for(yt in dt=this._events)j.call(dt,yt)&&ht.push(_e?yt.slice(1):yt);return Object.getOwnPropertySymbols?ht.concat(Object.getOwnPropertySymbols(dt)):ht},ct.prototype.listeners=function(ht){var dt=_e?_e+ht:ht,yt=this._events[dt];if(!yt)return[];if(yt.fn)return[yt.fn];for(var Tt=0,St=yt.length,At=new Array(St);Tt<St;Tt++)At[Tt]=yt[Tt].fn;return At},ct.prototype.listenerCount=function(ht){var dt=_e?_e+ht:ht,yt=this._events[dt];return yt?yt.fn?1:yt.length:0},ct.prototype.emit=function(ht,dt,yt,Tt,St,At){var Rt=_e?_e+ht:ht;if(!this._events[Rt])return!1;var It=this._events[Rt],Ct=arguments.length,kt,Pt;if(It.fn){switch(It.once&&this.removeListener(ht,It.fn,void 0,!0),Ct){case 1:return It.fn.call(It.context),!0;case 2:return It.fn.call(It.context,dt),!0;case 3:return It.fn.call(It.context,dt,yt),!0;case 4:return It.fn.call(It.context,dt,yt,Tt),!0;case 5:return It.fn.call(It.context,dt,yt,Tt,St),!0;case 6:return It.fn.call(It.context,dt,yt,Tt,St,At),!0}for(Pt=1,kt=new Array(Ct-1);Pt<Ct;Pt++)kt[Pt-1]=arguments[Pt];It.fn.apply(It.context,kt)}else{var Bt=It.length,Kt;for(Pt=0;Pt<Bt;Pt++)switch(It[Pt].once&&this.removeListener(ht,It[Pt].fn,void 0,!0),Ct){case 1:It[Pt].fn.call(It[Pt].context);break;case 2:It[Pt].fn.call(It[Pt].context,dt);break;case 3:It[Pt].fn.call(It[Pt].context,dt,yt);break;case 4:It[Pt].fn.call(It[Pt].context,dt,yt,Tt);break;default:if(!kt)for(Kt=1,kt=new Array(Ct-1);Kt<Ct;Kt++)kt[Kt-1]=arguments[Kt];It[Pt].fn.apply(It[Pt].context,kt)}}return!0},ct.prototype.on=function(ht,dt,yt){return tt(this,ht,dt,yt,!1)},ct.prototype.once=function(ht,dt,yt){return tt(this,ht,dt,yt,!0)},ct.prototype.removeListener=function(ht,dt,yt,Tt){var St=_e?_e+ht:ht;if(!this._events[St])return this;if(!dt)return ot(this,St),this;var At=this._events[St];if(At.fn)At.fn===dt&&(!Tt||At.once)&&(!yt||At.context===yt)&&ot(this,St);else{for(var Rt=0,It=[],Ct=At.length;Rt<Ct;Rt++)(At[Rt].fn!==dt||Tt&&!At[Rt].once||yt&&At[Rt].context!==yt)&&It.push(At[Rt]);It.length?this._events[St]=It.length===1?It[0]:It:ot(this,St)}return this},ct.prototype.removeAllListeners=function(ht){var dt;return ht?(dt=_e?_e+ht:ht,this._events[dt]&&ot(this,dt)):(this._events=new et,this._eventsCount=0),this},ct.prototype.off=ct.prototype.removeListener,ct.prototype.addListener=ct.prototype.on,ct.prefixed=_e,ct.EventEmitter=ct,a.exports=ct})(eventemitter3$1);var eventemitter3Exports$1=eventemitter3$1.exports;const EventEmitter$6=getDefaultExportFromCjs$1(eventemitter3Exports$1);var pWaitFor$2={exports:{}},pTimeout$3={exports:{}};class TimeoutError extends Error{constructor(j){super(j),this.name="TimeoutError"}}const pTimeout$1=(a,j,_e,et)=>{let nt;const tt=new Promise((ot,ct)=>{if(typeof j!="number"||j<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(j===1/0){ot(a);return}et={customTimers:{setTimeout,clearTimeout},...et},nt=et.customTimers.setTimeout.call(void 0,()=>{if(typeof _e=="function"){try{ot(_e())}catch(dt){ct(dt)}return}const ft=typeof _e=="string"?_e:`Promise timed out after ${j} milliseconds`,ht=_e instanceof Error?_e:new TimeoutError(ft);typeof a.cancel=="function"&&a.cancel(),ct(ht)},j),(async()=>{try{ot(await a)}catch(ft){ct(ft)}finally{et.customTimers.clearTimeout.call(void 0,nt)}})()});return tt.clear=()=>{clearTimeout(nt),nt=void 0},tt};pTimeout$3.exports=pTimeout$1;pTimeout$3.exports.default=pTimeout$1;var TimeoutError_1=pTimeout$3.exports.TimeoutError=TimeoutError,pTimeoutExports=pTimeout$3.exports;const pTimeout$2=getDefaultExportFromCjs$1(pTimeoutExports),pTimeout=pTimeoutExports,pWaitFor=async(a,j)=>{j={interval:20,timeout:1/0,leadingCheck:!0,...j};let _e;const et=new Promise((nt,tt)=>{const ot=async()=>{try{const ct=await a();if(typeof ct!="boolean")throw new TypeError("Expected condition to return a boolean");ct===!0?nt():_e=setTimeout(ot,j.interval)}catch(ct){tt(ct)}};j.leadingCheck?ot():_e=setTimeout(ot,j.interval)});if(j.timeout!==1/0)try{return await pTimeout(et,j.timeout)}catch(nt){throw _e&&clearTimeout(_e),nt}return et};pWaitFor$2.exports=pWaitFor;pWaitFor$2.exports.default=pWaitFor;var pWaitForExports=pWaitFor$2.exports;const pWaitFor$1=getDefaultExportFromCjs$1(pWaitForExports);var createUpdateEffect=function(a){return function(j,_e){var et=reactExports.useRef(!1);a(function(){return function(){et.current=!1}},[]),a(function(){if(!et.current)et.current=!0;else return j()},_e)}},extendStatics=function(a,j){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,et){_e.__proto__=et}||function(_e,et){for(var nt in et)Object.prototype.hasOwnProperty.call(et,nt)&&(_e[nt]=et[nt])},extendStatics(a,j)};function __extends(a,j){if(typeof j!="function"&&j!==null)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");extendStatics(a,j);function _e(){this.constructor=a}a.prototype=j===null?Object.create(j):(_e.prototype=j.prototype,new _e)}var __assign=function(){return __assign=Object.assign||function(j){for(var _e,et=1,nt=arguments.length;et<nt;et++){_e=arguments[et];for(var tt in _e)Object.prototype.hasOwnProperty.call(_e,tt)&&(j[tt]=_e[tt])}return j},__assign.apply(this,arguments)};function __rest(a,j){var _e={};for(var et in a)Object.prototype.hasOwnProperty.call(a,et)&&j.indexOf(et)<0&&(_e[et]=a[et]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,et=Object.getOwnPropertySymbols(a);nt<et.length;nt++)j.indexOf(et[nt])<0&&Object.prototype.propertyIsEnumerable.call(a,et[nt])&&(_e[et[nt]]=a[et[nt]]);return _e}function __decorate(a,j,_e,et){var nt=arguments.length,tt=nt<3?j:et===null?et=Object.getOwnPropertyDescriptor(j,_e):et,ot;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")tt=Reflect.decorate(a,j,_e,et);else for(var ct=a.length-1;ct>=0;ct--)(ot=a[ct])&&(tt=(nt<3?ot(tt):nt>3?ot(j,_e,tt):ot(j,_e))||tt);return nt>3&&tt&&Object.defineProperty(j,_e,tt),tt}function __param(a,j){return function(_e,et){j(_e,et,a)}}function __esDecorate(a,j,_e,et,nt,tt){function ot(Ct){if(Ct!==void 0&&typeof Ct!="function")throw new TypeError("Function expected");return Ct}for(var ct=et.kind,ft=ct==="getter"?"get":ct==="setter"?"set":"value",ht=!j&&a?et.static?a:a.prototype:null,dt=j||(ht?Object.getOwnPropertyDescriptor(ht,et.name):{}),yt,Tt=!1,St=_e.length-1;St>=0;St--){var At={};for(var Rt in et)At[Rt]=Rt==="access"?{}:et[Rt];for(var Rt in et.access)At.access[Rt]=et.access[Rt];At.addInitializer=function(Ct){if(Tt)throw new TypeError("Cannot add initializers after decoration has completed");tt.push(ot(Ct||null))};var It=(0,_e[St])(ct==="accessor"?{get:dt.get,set:dt.set}:dt[ft],At);if(ct==="accessor"){if(It===void 0)continue;if(It===null||typeof It!="object")throw new TypeError("Object expected");(yt=ot(It.get))&&(dt.get=yt),(yt=ot(It.set))&&(dt.set=yt),(yt=ot(It.init))&&nt.unshift(yt)}else(yt=ot(It))&&(ct==="field"?nt.unshift(yt):dt[ft]=yt)}ht&&Object.defineProperty(ht,et.name,dt),Tt=!0}function __runInitializers(a,j,_e){for(var et=arguments.length>2,nt=0;nt<j.length;nt++)_e=et?j[nt].call(a,_e):j[nt].call(a);return et?_e:void 0}function __propKey(a){return typeof a=="symbol"?a:"".concat(a)}function __setFunctionName(a,j,_e){return typeof j=="symbol"&&(j=j.description?"[".concat(j.description,"]"):""),Object.defineProperty(a,"name",{configurable:!0,value:_e?"".concat(_e," ",j):j})}function __metadata(a,j){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,j)}function __awaiter(a,j,_e,et){function nt(tt){return tt instanceof _e?tt:new _e(function(ot){ot(tt)})}return new(_e||(_e=Promise))(function(tt,ot){function ct(dt){try{ht(et.next(dt))}catch(yt){ot(yt)}}function ft(dt){try{ht(et.throw(dt))}catch(yt){ot(yt)}}function ht(dt){dt.done?tt(dt.value):nt(dt.value).then(ct,ft)}ht((et=et.apply(a,j||[])).next())})}function __generator(a,j){var _e={label:0,sent:function(){if(tt[0]&1)throw tt[1];return tt[1]},trys:[],ops:[]},et,nt,tt,ot=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return ot.next=ct(0),ot.throw=ct(1),ot.return=ct(2),typeof Symbol=="function"&&(ot[Symbol.iterator]=function(){return this}),ot;function ct(ht){return function(dt){return ft([ht,dt])}}function ft(ht){if(et)throw new TypeError("Generator is already executing.");for(;ot&&(ot=0,ht[0]&&(_e=0)),_e;)try{if(et=1,nt&&(tt=ht[0]&2?nt.return:ht[0]?nt.throw||((tt=nt.return)&&tt.call(nt),0):nt.next)&&!(tt=tt.call(nt,ht[1])).done)return tt;switch(nt=0,tt&&(ht=[ht[0]&2,tt.value]),ht[0]){case 0:case 1:tt=ht;break;case 4:return _e.label++,{value:ht[1],done:!1};case 5:_e.label++,nt=ht[1],ht=[0];continue;case 7:ht=_e.ops.pop(),_e.trys.pop();continue;default:if(tt=_e.trys,!(tt=tt.length>0&&tt[tt.length-1])&&(ht[0]===6||ht[0]===2)){_e=0;continue}if(ht[0]===3&&(!tt||ht[1]>tt[0]&&ht[1]<tt[3])){_e.label=ht[1];break}if(ht[0]===6&&_e.label<tt[1]){_e.label=tt[1],tt=ht;break}if(tt&&_e.label<tt[2]){_e.label=tt[2],_e.ops.push(ht);break}tt[2]&&_e.ops.pop(),_e.trys.pop();continue}ht=j.call(a,_e)}catch(dt){ht=[6,dt],nt=0}finally{et=tt=0}if(ht[0]&5)throw ht[1];return{value:ht[0]?ht[1]:void 0,done:!0}}}var __createBinding=Object.create?function(a,j,_e,et){et===void 0&&(et=_e);var nt=Object.getOwnPropertyDescriptor(j,_e);(!nt||("get"in nt?!j.__esModule:nt.writable||nt.configurable))&&(nt={enumerable:!0,get:function(){return j[_e]}}),Object.defineProperty(a,et,nt)}:function(a,j,_e,et){et===void 0&&(et=_e),a[et]=j[_e]};function __exportStar(a,j){for(var _e in a)_e!=="default"&&!Object.prototype.hasOwnProperty.call(j,_e)&&__createBinding(j,a,_e)}function __values(a){var j=typeof Symbol=="function"&&Symbol.iterator,_e=j&&a[j],et=0;if(_e)return _e.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&et>=a.length&&(a=void 0),{value:a&&a[et++],done:!a}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(a,j){var _e=typeof Symbol=="function"&&a[Symbol.iterator];if(!_e)return a;var et=_e.call(a),nt,tt=[],ot;try{for(;(j===void 0||j-- >0)&&!(nt=et.next()).done;)tt.push(nt.value)}catch(ct){ot={error:ct}}finally{try{nt&&!nt.done&&(_e=et.return)&&_e.call(et)}finally{if(ot)throw ot.error}}return tt}function __spread(){for(var a=[],j=0;j<arguments.length;j++)a=a.concat(__read(arguments[j]));return a}function __spreadArrays(){for(var a=0,j=0,_e=arguments.length;j<_e;j++)a+=arguments[j].length;for(var et=Array(a),nt=0,j=0;j<_e;j++)for(var tt=arguments[j],ot=0,ct=tt.length;ot<ct;ot++,nt++)et[nt]=tt[ot];return et}function __spreadArray(a,j,_e){if(_e||arguments.length===2)for(var et=0,nt=j.length,tt;et<nt;et++)(tt||!(et in j))&&(tt||(tt=Array.prototype.slice.call(j,0,et)),tt[et]=j[et]);return a.concat(tt||Array.prototype.slice.call(j))}function __await(a){return this instanceof __await?(this.v=a,this):new __await(a)}function __asyncGenerator(a,j,_e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var et=_e.apply(a,j||[]),nt,tt=[];return nt=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),ct("next"),ct("throw"),ct("return",ot),nt[Symbol.asyncIterator]=function(){return this},nt;function ot(St){return function(At){return Promise.resolve(At).then(St,yt)}}function ct(St,At){et[St]&&(nt[St]=function(Rt){return new Promise(function(It,Ct){tt.push([St,Rt,It,Ct])>1||ft(St,Rt)})},At&&(nt[St]=At(nt[St])))}function ft(St,At){try{ht(et[St](At))}catch(Rt){Tt(tt[0][3],Rt)}}function ht(St){St.value instanceof __await?Promise.resolve(St.value.v).then(dt,yt):Tt(tt[0][2],St)}function dt(St){ft("next",St)}function yt(St){ft("throw",St)}function Tt(St,At){St(At),tt.shift(),tt.length&&ft(tt[0][0],tt[0][1])}}function __asyncDelegator(a){var j,_e;return j={},et("next"),et("throw",function(nt){throw nt}),et("return"),j[Symbol.iterator]=function(){return this},j;function et(nt,tt){j[nt]=a[nt]?function(ot){return(_e=!_e)?{value:__await(a[nt](ot)),done:!1}:tt?tt(ot):ot}:tt}}function __asyncValues(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var j=a[Symbol.asyncIterator],_e;return j?j.call(a):(a=typeof __values=="function"?__values(a):a[Symbol.iterator](),_e={},et("next"),et("throw"),et("return"),_e[Symbol.asyncIterator]=function(){return this},_e);function et(tt){_e[tt]=a[tt]&&function(ot){return new Promise(function(ct,ft){ot=a[tt](ot),nt(ct,ft,ot.done,ot.value)})}}function nt(tt,ot,ct,ft){Promise.resolve(ft).then(function(ht){tt({value:ht,done:ct})},ot)}}function __makeTemplateObject(a,j){return Object.defineProperty?Object.defineProperty(a,"raw",{value:j}):a.raw=j,a}var __setModuleDefault=Object.create?function(a,j){Object.defineProperty(a,"default",{enumerable:!0,value:j})}:function(a,j){a.default=j};function __importStar(a){if(a&&a.__esModule)return a;var j={};if(a!=null)for(var _e in a)_e!=="default"&&Object.prototype.hasOwnProperty.call(a,_e)&&__createBinding(j,a,_e);return __setModuleDefault(j,a),j}function __importDefault$b(a){return a&&a.__esModule?a:{default:a}}function __classPrivateFieldGet(a,j,_e,et){if(_e==="a"&&!et)throw new TypeError("Private accessor was defined without a getter");if(typeof j=="function"?a!==j||!et:!j.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return _e==="m"?et:_e==="a"?et.call(a):et?et.value:j.get(a)}function __classPrivateFieldSet(a,j,_e,et,nt){if(et==="m")throw new TypeError("Private method is not writable");if(et==="a"&&!nt)throw new TypeError("Private accessor was defined without a setter");if(typeof j=="function"?a!==j||!nt:!j.has(a))throw new TypeError("Cannot write private member to an object whose class did not declare it");return et==="a"?nt.call(a,_e):nt?nt.value=_e:j.set(a,_e),_e}function __classPrivateFieldIn(a,j){if(j===null||typeof j!="object"&&typeof j!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof a=="function"?j===a:a.has(j)}function __addDisposableResource(a,j,_e){if(j!=null){if(typeof j!="object"&&typeof j!="function")throw new TypeError("Object expected.");var et,nt;if(_e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");et=j[Symbol.asyncDispose]}if(et===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");et=j[Symbol.dispose],_e&&(nt=et)}if(typeof et!="function")throw new TypeError("Object not disposable.");nt&&(et=function(){try{nt.call(this)}catch(tt){return Promise.reject(tt)}}),a.stack.push({value:j,dispose:et,async:_e})}else _e&&a.stack.push({async:!0});return j}var _SuppressedError=typeof SuppressedError=="function"?SuppressedError:function(a,j,_e){var et=new Error(_e);return et.name="SuppressedError",et.error=a,et.suppressed=j,et};function __disposeResources(a){function j(tt){a.error=a.hasError?new _SuppressedError(tt,a.error,"An error was suppressed during disposal."):tt,a.hasError=!0}var _e,et=0;function nt(){for(;_e=a.stack.pop();)try{if(!_e.async&&et===1)return et=0,a.stack.push(_e),Promise.resolve().then(nt);if(_e.dispose){var tt=_e.dispose.call(_e.value);if(_e.async)return et|=2,Promise.resolve(tt).then(nt,function(ot){return j(ot),nt()})}else et|=1}catch(ot){j(ot)}if(et===1)return a.hasError?Promise.reject(a.error):Promise.resolve();if(a.hasError)throw a.error}return nt()}const tslib_es6={__extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator,__createBinding,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault:__importDefault$b,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources},tslib_es6$1=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource,get __assign(){return __assign},__asyncDelegator,__asyncGenerator,__asyncValues,__await,__awaiter,__classPrivateFieldGet,__classPrivateFieldIn,__classPrivateFieldSet,__createBinding,__decorate,__disposeResources,__esDecorate,__exportStar,__extends,__generator,__importDefault:__importDefault$b,__importStar,__makeTemplateObject,__metadata,__param,__propKey,__read,__rest,__runInitializers,__setFunctionName,__spread,__spreadArray,__spreadArrays,__values,default:tslib_es6},Symbol.toStringTag,{value:"Module"}));var isFunction$3=function(a){return typeof a=="function"},isString$3=function(a){return typeof a=="string"},isNumber$2=function(a){return typeof a=="number"},isUndef=function(a){return typeof a>"u"};function useMemoizedFn(a){var j=reactExports.useRef(a);j.current=reactExports.useMemo(function(){return a},[a]);var _e=reactExports.useRef();return _e.current||(_e.current=function(){for(var et=[],nt=0;nt<arguments.length;nt++)et[nt]=arguments[nt];return j.current.apply(this,et)}),_e.current}const useUpdateEffect=createUpdateEffect(reactExports.useEffect);var useAutoRunPlugin=function(a,j){var _e=j.manual,et=j.ready,nt=et===void 0?!0:et,tt=j.defaultParams,ot=tt===void 0?[]:tt,ct=j.refreshDeps,ft=ct===void 0?[]:ct,ht=j.refreshDepsAction,dt=reactExports.useRef(!1);return dt.current=!1,useUpdateEffect(function(){!_e&&nt&&(dt.current=!0,a.run.apply(a,__spreadArray([],__read(ot),!1)))},[nt]),useUpdateEffect(function(){dt.current||_e||(dt.current=!0,ht?ht():a.refresh())},__spreadArray([],__read(ft),!1)),{onBefore:function(){if(!nt)return{stopNow:!0}}}};useAutoRunPlugin.onInit=function(a){var j=a.ready,_e=j===void 0?!0:j,et=a.manual;return{loading:!et&&_e}};function depsAreSame(a,j){if(a===j)return!0;for(var _e=0;_e<a.length;_e++)if(!Object.is(a[_e],j[_e]))return!1;return!0}function useCreation(a,j){var _e=reactExports.useRef({deps:j,obj:void 0,initialized:!1}).current;return(_e.initialized===!1||!depsAreSame(_e.deps,j))&&(_e.deps=j,_e.obj=a(),_e.initialized=!0),_e.obj}function useLatest(a){var j=reactExports.useRef(a);return j.current=a,j}var useUnmount=function(a){var j=useLatest(a);reactExports.useEffect(function(){return function(){j.current()}},[])},cache$2=new Map,setCache=function(a,j,_e){var et=cache$2.get(a);et!=null&&et.timer&&clearTimeout(et.timer);var nt=void 0;j>-1&&(nt=setTimeout(function(){cache$2.delete(a)},j)),cache$2.set(a,__assign(__assign({},_e),{timer:nt}))},getCache=function(a){return cache$2.get(a)},cachePromise=new Map,getCachePromise=function(a){return cachePromise.get(a)},setCachePromise=function(a,j){cachePromise.set(a,j),j.then(function(_e){return cachePromise.delete(a),_e}).catch(function(){cachePromise.delete(a)})},listeners$2={},trigger=function(a,j){listeners$2[a]&&listeners$2[a].forEach(function(_e){return _e(j)})},subscribe$2=function(a,j){return listeners$2[a]||(listeners$2[a]=[]),listeners$2[a].push(j),function(){var et=listeners$2[a].indexOf(j);listeners$2[a].splice(et,1)}},useCachePlugin=function(a,j){var _e=j.cacheKey,et=j.cacheTime,nt=et===void 0?5*60*1e3:et,tt=j.staleTime,ot=tt===void 0?0:tt,ct=j.setCache,ft=j.getCache,ht=reactExports.useRef(),dt=reactExports.useRef(),yt=function(St,At){ct?ct(At):setCache(St,nt,At),trigger(St,At.data)},Tt=function(St,At){return At===void 0&&(At=[]),ft?ft(At):getCache(St)};return useCreation(function(){if(_e){var St=Tt(_e);St&&Object.hasOwnProperty.call(St,"data")&&(a.state.data=St.data,a.state.params=St.params,(ot===-1||new Date().getTime()-St.time<=ot)&&(a.state.loading=!1)),ht.current=subscribe$2(_e,function(At){a.setState({data:At})})}},[]),useUnmount(function(){var St;(St=ht.current)===null||St===void 0||St.call(ht)}),_e?{onBefore:function(St){var At=Tt(_e,St);return!At||!Object.hasOwnProperty.call(At,"data")?{}:ot===-1||new Date().getTime()-At.time<=ot?{loading:!1,data:At==null?void 0:At.data,error:void 0,returnNow:!0}:{data:At==null?void 0:At.data,error:void 0}},onRequest:function(St,At){var Rt=getCachePromise(_e);return Rt&&Rt!==dt.current?{servicePromise:Rt}:(Rt=St.apply(void 0,__spreadArray([],__read(At),!1)),dt.current=Rt,setCachePromise(_e,Rt),{servicePromise:Rt})},onSuccess:function(St,At){var Rt;_e&&((Rt=ht.current)===null||Rt===void 0||Rt.call(ht),yt(_e,{data:St,params:At,time:new Date().getTime()}),ht.current=subscribe$2(_e,function(It){a.setState({data:It})}))},onMutate:function(St){var At;_e&&((At=ht.current)===null||At===void 0||At.call(ht),yt(_e,{data:St,params:a.state.params,time:new Date().getTime()}),ht.current=subscribe$2(_e,function(Rt){a.setState({data:Rt})}))}}:{}},root$3=_root,now$1=function(){return root$3.Date.now()},now_1=now$1,isObject$c=isObject_1,now=now_1,toNumber$2=toNumber_1,FUNC_ERROR_TEXT$4="Expected a function",nativeMax=Math.max,nativeMin$1=Math.min;function debounce$2(a,j,_e){var et,nt,tt,ot,ct,ft,ht=0,dt=!1,yt=!1,Tt=!0;if(typeof a!="function")throw new TypeError(FUNC_ERROR_TEXT$4);j=toNumber$2(j)||0,isObject$c(_e)&&(dt=!!_e.leading,yt="maxWait"in _e,tt=yt?nativeMax(toNumber$2(_e.maxWait)||0,j):tt,Tt="trailing"in _e?!!_e.trailing:Tt);function St(jt){var zt=et,Gt=nt;return et=nt=void 0,ht=jt,ot=a.apply(Gt,zt),ot}function At(jt){return ht=jt,ct=setTimeout(Ct,j),dt?St(jt):ot}function Rt(jt){var zt=jt-ft,Gt=jt-ht,tn=j-zt;return yt?nativeMin$1(tn,tt-Gt):tn}function It(jt){var zt=jt-ft,Gt=jt-ht;return ft===void 0||zt>=j||zt<0||yt&&Gt>=tt}function Ct(){var jt=now();if(It(jt))return kt(jt);ct=setTimeout(Ct,Rt(jt))}function kt(jt){return ct=void 0,Tt&&et?St(jt):(et=nt=void 0,ot)}function Pt(){ct!==void 0&&clearTimeout(ct),ht=0,et=ft=nt=ct=void 0}function Bt(){return ct===void 0?ot:kt(now())}function Kt(){var jt=now(),zt=It(jt);if(et=arguments,nt=this,ft=jt,zt){if(ct===void 0)return At(ft);if(yt)return clearTimeout(ct),ct=setTimeout(Ct,j),St(ft)}return ct===void 0&&(ct=setTimeout(Ct,j)),ot}return Kt.cancel=Pt,Kt.flush=Bt,Kt}var debounce_1=debounce$2;const debounce$3=getDefaultExportFromCjs$1(debounce_1);var useDebouncePlugin=function(a,j){var _e=j.debounceWait,et=j.debounceLeading,nt=j.debounceTrailing,tt=j.debounceMaxWait,ot=reactExports.useRef(),ct=reactExports.useMemo(function(){var ft={};return et!==void 0&&(ft.leading=et),nt!==void 0&&(ft.trailing=nt),tt!==void 0&&(ft.maxWait=tt),ft},[et,nt,tt]);return reactExports.useEffect(function(){if(_e){var ft=a.runAsync.bind(a);return ot.current=debounce$3(function(ht){ht()},_e,ct),a.runAsync=function(){for(var ht=[],dt=0;dt<arguments.length;dt++)ht[dt]=arguments[dt];return new Promise(function(yt,Tt){var St;(St=ot.current)===null||St===void 0||St.call(ot,function(){ft.apply(void 0,__spreadArray([],__read(ht),!1)).then(yt).catch(Tt)})})},function(){var ht;(ht=ot.current)===null||ht===void 0||ht.cancel(),a.runAsync=ft}}},[_e,ct]),_e?{onCancel:function(){var ft;(ft=ot.current)===null||ft===void 0||ft.cancel()}}:{}},useLoadingDelayPlugin=function(a,j){var _e=j.loadingDelay,et=j.ready,nt=reactExports.useRef();if(!_e)return{};var tt=function(){nt.current&&clearTimeout(nt.current)};return{onBefore:function(){return tt(),et!==!1&&(nt.current=setTimeout(function(){a.setState({loading:!0})},_e)),{loading:!1}},onFinally:function(){tt()},onCancel:function(){tt()}}},isBrowser$1=!!(typeof window<"u"&&window.document&&window.document.createElement);function isDocumentVisible(){return isBrowser$1?document.visibilityState!=="hidden":!0}var listeners$1=[];function subscribe$1(a){return listeners$1.push(a),function(){var _e=listeners$1.indexOf(a);listeners$1.splice(_e,1)}}if(isBrowser$1){var revalidate$1=function(){if(isDocumentVisible())for(var a=0;a<listeners$1.length;a++){var j=listeners$1[a];j()}};window.addEventListener("visibilitychange",revalidate$1,!1)}var usePollingPlugin=function(a,j){var _e=j.pollingInterval,et=j.pollingWhenHidden,nt=et===void 0?!0:et,tt=j.pollingErrorRetryCount,ot=tt===void 0?-1:tt,ct=reactExports.useRef(),ft=reactExports.useRef(),ht=reactExports.useRef(0),dt=function(){var yt;ct.current&&clearTimeout(ct.current),(yt=ft.current)===null||yt===void 0||yt.call(ft)};return useUpdateEffect(function(){_e||dt()},[_e]),_e?{onBefore:function(){dt()},onError:function(){ht.current+=1},onSuccess:function(){ht.current=0},onFinally:function(){ot===-1||ot!==-1&&ht.current<=ot?ct.current=setTimeout(function(){!nt&&!isDocumentVisible()?ft.current=subscribe$1(function(){a.refresh()}):a.refresh()},_e):ht.current=0},onCancel:function(){dt()}}:{}};function limit(a,j){var _e=!1;return function(){for(var et=[],nt=0;nt<arguments.length;nt++)et[nt]=arguments[nt];_e||(_e=!0,a.apply(void 0,__spreadArray([],__read(et),!1)),setTimeout(function(){_e=!1},j))}}function isOnline(){return isBrowser$1&&typeof navigator.onLine<"u"?navigator.onLine:!0}var listeners=[];function subscribe(a){return listeners.push(a),function(){var _e=listeners.indexOf(a);_e>-1&&listeners.splice(_e,1)}}if(isBrowser$1){var revalidate=function(){if(!(!isDocumentVisible()||!isOnline()))for(var a=0;a<listeners.length;a++){var j=listeners[a];j()}};window.addEventListener("visibilitychange",revalidate,!1),window.addEventListener("focus",revalidate,!1)}var useRefreshOnWindowFocusPlugin=function(a,j){var _e=j.refreshOnWindowFocus,et=j.focusTimespan,nt=et===void 0?5e3:et,tt=reactExports.useRef(),ot=function(){var ct;(ct=tt.current)===null||ct===void 0||ct.call(tt)};return reactExports.useEffect(function(){if(_e){var ct=limit(a.refresh.bind(a),nt);tt.current=subscribe(function(){ct()})}return function(){ot()}},[_e,nt]),useUnmount(function(){ot()}),{}},useRetryPlugin=function(a,j){var _e=j.retryInterval,et=j.retryCount,nt=reactExports.useRef(),tt=reactExports.useRef(0),ot=reactExports.useRef(!1);return et?{onBefore:function(){ot.current||(tt.current=0),ot.current=!1,nt.current&&clearTimeout(nt.current)},onSuccess:function(){tt.current=0},onError:function(){if(tt.current+=1,et===-1||tt.current<=et){var ct=_e??Math.min(1e3*Math.pow(2,tt.current),3e4);nt.current=setTimeout(function(){ot.current=!0,a.refresh()},ct)}else tt.current=0},onCancel:function(){tt.current=0,nt.current&&clearTimeout(nt.current)}}:{}},debounce$1=debounce_1,isObject$b=isObject_1,FUNC_ERROR_TEXT$3="Expected a function";function throttle$3(a,j,_e){var et=!0,nt=!0;if(typeof a!="function")throw new TypeError(FUNC_ERROR_TEXT$3);return isObject$b(_e)&&(et="leading"in _e?!!_e.leading:et,nt="trailing"in _e?!!_e.trailing:nt),debounce$1(a,j,{leading:et,maxWait:j,trailing:nt})}var throttle_1=throttle$3;const throttle$4=getDefaultExportFromCjs$1(throttle_1);var useThrottlePlugin=function(a,j){var _e=j.throttleWait,et=j.throttleLeading,nt=j.throttleTrailing,tt=reactExports.useRef(),ot={};return et!==void 0&&(ot.leading=et),nt!==void 0&&(ot.trailing=nt),reactExports.useEffect(function(){if(_e){var ct=a.runAsync.bind(a);return tt.current=throttle$4(function(ft){ft()},_e,ot),a.runAsync=function(){for(var ft=[],ht=0;ht<arguments.length;ht++)ft[ht]=arguments[ht];return new Promise(function(dt,yt){var Tt;(Tt=tt.current)===null||Tt===void 0||Tt.call(tt,function(){ct.apply(void 0,__spreadArray([],__read(ft),!1)).then(dt).catch(yt)})})},function(){var ft;a.runAsync=ct,(ft=tt.current)===null||ft===void 0||ft.cancel()}}},[_e,et,nt]),_e?{onCancel:function(){var ct;(ct=tt.current)===null||ct===void 0||ct.cancel()}}:{}},useMount=function(a){reactExports.useEffect(function(){a==null||a()},[])},useUpdate=function(){var a=__read(reactExports.useState({}),2),j=a[1];return reactExports.useCallback(function(){return j({})},[])},Fetch=function(){function a(j,_e,et,nt){nt===void 0&&(nt={}),this.serviceRef=j,this.options=_e,this.subscribe=et,this.initState=nt,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=__assign(__assign(__assign({},this.state),{loading:!_e.manual}),nt)}return a.prototype.setState=function(j){j===void 0&&(j={}),this.state=__assign(__assign({},this.state),j),this.subscribe()},a.prototype.runPluginHandler=function(j){for(var _e=[],et=1;et<arguments.length;et++)_e[et-1]=arguments[et];var nt=this.pluginImpls.map(function(tt){var ot;return(ot=tt[j])===null||ot===void 0?void 0:ot.call.apply(ot,__spreadArray([tt],__read(_e),!1))}).filter(Boolean);return Object.assign.apply(Object,__spreadArray([{}],__read(nt),!1))},a.prototype.runAsync=function(){for(var j,_e,et,nt,tt,ot,ct,ft,ht,dt,yt=[],Tt=0;Tt<arguments.length;Tt++)yt[Tt]=arguments[Tt];return __awaiter(this,void 0,void 0,function(){var St,At,Rt,It,Ct,kt,Pt,Bt,Kt,jt,zt;return __generator(this,function(Gt){switch(Gt.label){case 0:if(this.count+=1,St=this.count,At=this.runPluginHandler("onBefore",yt),Rt=At.stopNow,It=Rt===void 0?!1:Rt,Ct=At.returnNow,kt=Ct===void 0?!1:Ct,Pt=__rest(At,["stopNow","returnNow"]),It)return[2,new Promise(function(){})];if(this.setState(__assign({loading:!0,params:yt},Pt)),kt)return[2,Promise.resolve(Pt.data)];(_e=(j=this.options).onBefore)===null||_e===void 0||_e.call(j,yt),Gt.label=1;case 1:return Gt.trys.push([1,3,,4]),Bt=this.runPluginHandler("onRequest",this.serviceRef.current,yt).servicePromise,Bt||(Bt=(zt=this.serviceRef).current.apply(zt,__spreadArray([],__read(yt),!1))),[4,Bt];case 2:return Kt=Gt.sent(),St!==this.count?[2,new Promise(function(){})]:(this.setState({data:Kt,error:void 0,loading:!1}),(nt=(et=this.options).onSuccess)===null||nt===void 0||nt.call(et,Kt,yt),this.runPluginHandler("onSuccess",Kt,yt),(ot=(tt=this.options).onFinally)===null||ot===void 0||ot.call(tt,yt,Kt,void 0),St===this.count&&this.runPluginHandler("onFinally",yt,Kt,void 0),[2,Kt]);case 3:if(jt=Gt.sent(),St!==this.count)return[2,new Promise(function(){})];throw this.setState({error:jt,loading:!1}),(ft=(ct=this.options).onError)===null||ft===void 0||ft.call(ct,jt,yt),this.runPluginHandler("onError",jt,yt),(dt=(ht=this.options).onFinally)===null||dt===void 0||dt.call(ht,yt,void 0,jt),St===this.count&&this.runPluginHandler("onFinally",yt,void 0,jt),jt;case 4:return[2]}})})},a.prototype.run=function(){for(var j=this,_e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];this.runAsync.apply(this,__spreadArray([],__read(_e),!1)).catch(function(nt){j.options.onError||console.error(nt)})},a.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},a.prototype.refresh=function(){this.run.apply(this,__spreadArray([],__read(this.state.params||[]),!1))},a.prototype.refreshAsync=function(){return this.runAsync.apply(this,__spreadArray([],__read(this.state.params||[]),!1))},a.prototype.mutate=function(j){var _e=isFunction$3(j)?j(this.state.data):j;this.runPluginHandler("onMutate",_e),this.setState({data:_e})},a}();function useRequestImplement(a,j,_e){j===void 0&&(j={}),_e===void 0&&(_e=[]);var et=j.manual,nt=et===void 0?!1:et,tt=j.ready,ot=tt===void 0?!0:tt,ct=__rest(j,["manual","ready"]),ft=__assign({manual:nt,ready:ot},ct),ht=useLatest(a),dt=useUpdate(),yt=useCreation(function(){var Tt=_e.map(function(St){var At;return(At=St==null?void 0:St.onInit)===null||At===void 0?void 0:At.call(St,ft)}).filter(Boolean);return new Fetch(ht,ft,dt,Object.assign.apply(Object,__spreadArray([{}],__read(Tt),!1)))},[]);return yt.options=ft,yt.pluginImpls=_e.map(function(Tt){return Tt(yt,ft)}),useMount(function(){if(!nt&&ot){var Tt=yt.state.params||j.defaultParams||[];yt.run.apply(yt,__spreadArray([],__read(Tt),!1))}}),useUnmount(function(){yt.cancel()}),{loading:yt.state.loading,data:yt.state.data,error:yt.state.error,params:yt.state.params||[],cancel:useMemoizedFn(yt.cancel.bind(yt)),refresh:useMemoizedFn(yt.refresh.bind(yt)),refreshAsync:useMemoizedFn(yt.refreshAsync.bind(yt)),run:useMemoizedFn(yt.run.bind(yt)),runAsync:useMemoizedFn(yt.runAsync.bind(yt)),mutate:useMemoizedFn(yt.mutate.bind(yt))}}function useRequest(a,j,_e){return useRequestImplement(a,j,__spreadArray(__spreadArray([],__read([]),!1),[useDebouncePlugin,useLoadingDelayPlugin,usePollingPlugin,useRefreshOnWindowFocusPlugin,useThrottlePlugin,useAutoRunPlugin,useCachePlugin,useRetryPlugin],!1))}function isAsyncGenerator(a){return isFunction$3(a[Symbol.asyncIterator])}function useAsyncEffect(a,j){reactExports.useEffect(function(){var _e=a(),et=!1;function nt(){return __awaiter(this,void 0,void 0,function(){var tt;return __generator(this,function(ot){switch(ot.label){case 0:if(!isAsyncGenerator(_e))return[3,4];ot.label=1;case 1:return[4,_e.next()];case 2:return tt=ot.sent(),tt.done||et?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,_e];case 5:ot.sent(),ot.label=6;case 6:return[2]}})})}return nt(),function(){et=!0}},j)}function getTargetElement(a,j){if(isBrowser$1){if(!a)return j;var _e;return isFunction$3(a)?_e=a():"current"in a?_e=a.current:_e=a,_e}}var createEffectWithTarget=function(a){var j=function(_e,et,nt){var tt=reactExports.useRef(!1),ot=reactExports.useRef([]),ct=reactExports.useRef([]),ft=reactExports.useRef();a(function(){var ht,dt=Array.isArray(nt)?nt:[nt],yt=dt.map(function(Tt){return getTargetElement(Tt)});if(!tt.current){tt.current=!0,ot.current=yt,ct.current=et,ft.current=_e();return}(yt.length!==ot.current.length||!depsAreSame(ot.current,yt)||!depsAreSame(ct.current,et))&&((ht=ft.current)===null||ht===void 0||ht.call(ft),ot.current=yt,ct.current=et,ft.current=_e())}),useUnmount(function(){var ht;(ht=ft.current)===null||ht===void 0||ht.call(ft),tt.current=!1})};return j},useEffectWithTarget$1=createEffectWithTarget(reactExports.useEffect);function useDebounceFn(a,j){var _e,et=useLatest(a),nt=(_e=j==null?void 0:j.wait)!==null&&_e!==void 0?_e:1e3,tt=reactExports.useMemo(function(){return debounce$3(function(){for(var ot=[],ct=0;ct<arguments.length;ct++)ot[ct]=arguments[ct];return et.current.apply(et,__spreadArray([],__read(ot),!1))},nt,j)},[]);return useUnmount(function(){tt.cancel()}),{run:tt,cancel:tt.cancel,flush:tt.flush}}function useDebounce(a,j){var _e=__read(reactExports.useState(a),2),et=_e[0],nt=_e[1],tt=useDebounceFn(function(){nt(a)},j).run;return reactExports.useEffect(function(){tt()},[a]),et}function useEventListener(a,j,_e){_e===void 0&&(_e={});var et=_e.enable,nt=et===void 0?!0:et,tt=useLatest(j);useEffectWithTarget$1(function(){if(nt){var ot=getTargetElement(_e.target,window);if(ot!=null&&ot.addEventListener){var ct=function(ft){return tt.current(ft)};return ot.addEventListener(a,ct,{capture:_e.capture,once:_e.once,passive:_e.passive}),function(){ot.removeEventListener(a,ct,{capture:_e.capture})}}}},[a,_e.capture,_e.once,_e.passive,nt],_e.target)}var useInterval$1=function(a,j,_e){_e===void 0&&(_e={});var et=useMemoizedFn(a),nt=reactExports.useRef(null),tt=reactExports.useCallback(function(){nt.current&&clearInterval(nt.current)},[]);return reactExports.useEffect(function(){if(!(!isNumber$2(j)||j<0))return _e.immediate&&et(),nt.current=setInterval(et,j),tt},[j,_e.immediate]),tt},SYNC_STORAGE_EVENT_NAME="AHOOKS_SYNC_STORAGE_EVENT_NAME";function createUseStorageState(a){function j(_e,et){et===void 0&&(et={});var nt,tt=et.listenStorageChange,ot=tt===void 0?!1:tt,ct=et.onError,ft=ct===void 0?function(kt){console.error(kt)}:ct;try{nt=a()}catch(kt){ft(kt)}var ht=function(kt){return et.serializer?et.serializer(kt):JSON.stringify(kt)},dt=function(kt){return et.deserializer?et.deserializer(kt):JSON.parse(kt)};function yt(){try{var kt=nt==null?void 0:nt.getItem(_e);if(kt)return dt(kt)}catch(Pt){ft(Pt)}return isFunction$3(et.defaultValue)?et.defaultValue():et.defaultValue}var Tt=__read(reactExports.useState(yt),2),St=Tt[0],At=Tt[1];useUpdateEffect(function(){At(yt())},[_e]);var Rt=function(kt){var Pt=isFunction$3(kt)?kt(St):kt;ot||At(Pt);try{var Bt=void 0,Kt=nt==null?void 0:nt.getItem(_e);isUndef(Pt)?(Bt=null,nt==null||nt.removeItem(_e)):(Bt=ht(Pt),nt==null||nt.setItem(_e,Bt)),dispatchEvent(new CustomEvent(SYNC_STORAGE_EVENT_NAME,{detail:{key:_e,newValue:Bt,oldValue:Kt,storageArea:nt}}))}catch(jt){ft(jt)}},It=function(kt){kt.key!==_e||kt.storageArea!==nt||At(yt())},Ct=function(kt){It(kt.detail)};return useEventListener("storage",It,{enable:ot}),useEventListener(SYNC_STORAGE_EVENT_NAME,Ct,{enable:ot}),[St,useMemoizedFn(Rt)]}return j}var useLocalStorageState=createUseStorageState(function(){return isBrowser$1?localStorage:void 0});function useRafState(a){var j=reactExports.useRef(0),_e=__read(reactExports.useState(a),2),et=_e[0],nt=_e[1],tt=reactExports.useCallback(function(ot){cancelAnimationFrame(j.current),j.current=requestAnimationFrame(function(){nt(ot)})},[]);return useUnmount(function(){cancelAnimationFrame(j.current)}),[et,tt]}var defaultShouldUpdate=function(a,j){return!Object.is(a,j)};function usePrevious(a,j){j===void 0&&(j=defaultShouldUpdate);var _e=reactExports.useRef(),et=reactExports.useRef();return j(et.current,a)&&(_e.current=et.current,et.current=a),_e.current}var proxyMap=new WeakMap,rawMap=new WeakMap;function observer(a,j){var _e=proxyMap.get(a);if(_e)return _e;if(rawMap.has(a))return a;var et=new Proxy(a,{get:function(nt,tt,ot){var ct=Reflect.get(nt,tt,ot),ft=Reflect.getOwnPropertyDescriptor(nt,tt);return!(ft!=null&&ft.configurable)&&!(ft!=null&&ft.writable)?ct:isPlainObject$4(ct)||Array.isArray(ct)?observer(ct,j):ct},set:function(nt,tt,ot){var ct=Reflect.set(nt,tt,ot);return j(),ct},deleteProperty:function(nt,tt){var ot=Reflect.deleteProperty(nt,tt);return j(),ot}});return proxyMap.set(a,et),rawMap.set(et,a),et}function useReactive(a){var j=useUpdate(),_e=reactExports.useRef(a),et=useCreation(function(){return observer(_e.current,function(){j()})},[]);return et}var MapShim=function(){if(typeof Map<"u")return Map;function a(j,_e){var et=-1;return j.some(function(nt,tt){return nt[0]===_e?(et=tt,!0):!1}),et}return function(){function j(){this.__entries__=[]}return Object.defineProperty(j.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),j.prototype.get=function(_e){var et=a(this.__entries__,_e),nt=this.__entries__[et];return nt&&nt[1]},j.prototype.set=function(_e,et){var nt=a(this.__entries__,_e);~nt?this.__entries__[nt][1]=et:this.__entries__.push([_e,et])},j.prototype.delete=function(_e){var et=this.__entries__,nt=a(et,_e);~nt&&et.splice(nt,1)},j.prototype.has=function(_e){return!!~a(this.__entries__,_e)},j.prototype.clear=function(){this.__entries__.splice(0)},j.prototype.forEach=function(_e,et){et===void 0&&(et=null);for(var nt=0,tt=this.__entries__;nt<tt.length;nt++){var ot=tt[nt];_e.call(et,ot[1],ot[0])}},j}()}(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1$1=function(){return typeof global$2<"u"&&global$2.Math===Math?global$2:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1$1):function(a){return setTimeout(function(){return a(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle$2(a,j){var _e=!1,et=!1,nt=0;function tt(){_e&&(_e=!1,a()),et&&ct()}function ot(){requestAnimationFrame$1(tt)}function ct(){var ft=Date.now();if(_e){if(ft-nt<trailingTimeout)return;et=!0}else _e=!0,et=!1,setTimeout(ot,j);nt=ft}return ct}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function a(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle$2(this.refresh.bind(this),REFRESH_DELAY)}return a.prototype.addObserver=function(j){~this.observers_.indexOf(j)||this.observers_.push(j),this.connected_||this.connect_()},a.prototype.removeObserver=function(j){var _e=this.observers_,et=_e.indexOf(j);~et&&_e.splice(et,1),!_e.length&&this.connected_&&this.disconnect_()},a.prototype.refresh=function(){var j=this.updateObservers_();j&&this.refresh()},a.prototype.updateObservers_=function(){var j=this.observers_.filter(function(_e){return _e.gatherActive(),_e.hasActive()});return j.forEach(function(_e){return _e.broadcastActive()}),j.length>0},a.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},a.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},a.prototype.onTransitionEnd_=function(j){var _e=j.propertyName,et=_e===void 0?"":_e,nt=transitionKeys.some(function(tt){return!!~et.indexOf(tt)});nt&&this.refresh()},a.getInstance=function(){return this.instance_||(this.instance_=new a),this.instance_},a.instance_=null,a}(),defineConfigurable=function(a,j){for(var _e=0,et=Object.keys(j);_e<et.length;_e++){var nt=et[_e];Object.defineProperty(a,nt,{value:j[nt],enumerable:!1,writable:!1,configurable:!0})}return a},getWindowOf=function(a){var j=a&&a.ownerDocument&&a.ownerDocument.defaultView;return j||global$1$1},emptyRect=createRectInit(0,0,0,0);function toFloat(a){return parseFloat(a)||0}function getBordersSize(a){for(var j=[],_e=1;_e<arguments.length;_e++)j[_e-1]=arguments[_e];return j.reduce(function(et,nt){var tt=a["border-"+nt+"-width"];return et+toFloat(tt)},0)}function getPaddings(a){for(var j=["top","right","bottom","left"],_e={},et=0,nt=j;et<nt.length;et++){var tt=nt[et],ot=a["padding-"+tt];_e[tt]=toFloat(ot)}return _e}function getSVGContentRect(a){var j=a.getBBox();return createRectInit(0,0,j.width,j.height)}function getHTMLElementContentRect(a){var j=a.clientWidth,_e=a.clientHeight;if(!j&&!_e)return emptyRect;var et=getWindowOf(a).getComputedStyle(a),nt=getPaddings(et),tt=nt.left+nt.right,ot=nt.top+nt.bottom,ct=toFloat(et.width),ft=toFloat(et.height);if(et.boxSizing==="border-box"&&(Math.round(ct+tt)!==j&&(ct-=getBordersSize(et,"left","right")+tt),Math.round(ft+ot)!==_e&&(ft-=getBordersSize(et,"top","bottom")+ot)),!isDocumentElement(a)){var ht=Math.round(ct+tt)-j,dt=Math.round(ft+ot)-_e;Math.abs(ht)!==1&&(ct-=ht),Math.abs(dt)!==1&&(ft-=dt)}return createRectInit(nt.left,nt.top,ct,ft)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(a){return a instanceof getWindowOf(a).SVGGraphicsElement}:function(a){return a instanceof getWindowOf(a).SVGElement&&typeof a.getBBox=="function"}}();function isDocumentElement(a){return a===getWindowOf(a).document.documentElement}function getContentRect(a){return isBrowser?isSVGGraphicsElement(a)?getSVGContentRect(a):getHTMLElementContentRect(a):emptyRect}function createReadOnlyRect(a){var j=a.x,_e=a.y,et=a.width,nt=a.height,tt=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,ot=Object.create(tt.prototype);return defineConfigurable(ot,{x:j,y:_e,width:et,height:nt,top:_e,right:j+et,bottom:nt+_e,left:j}),ot}function createRectInit(a,j,_e,et){return{x:a,y:j,width:_e,height:et}}var ResizeObservation=function(){function a(j){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=j}return a.prototype.isActive=function(){var j=getContentRect(this.target);return this.contentRect_=j,j.width!==this.broadcastWidth||j.height!==this.broadcastHeight},a.prototype.broadcastRect=function(){var j=this.contentRect_;return this.broadcastWidth=j.width,this.broadcastHeight=j.height,j},a}(),ResizeObserverEntry=function(){function a(j,_e){var et=createReadOnlyRect(_e);defineConfigurable(this,{target:j,contentRect:et})}return a}(),ResizeObserverSPI=function(){function a(j,_e,et){if(this.activeObservations_=[],this.observations_=new MapShim,typeof j!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=j,this.controller_=_e,this.callbackCtx_=et}return a.prototype.observe=function(j){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(j instanceof getWindowOf(j).Element))throw new TypeError('parameter 1 is not of type "Element".');var _e=this.observations_;_e.has(j)||(_e.set(j,new ResizeObservation(j)),this.controller_.addObserver(this),this.controller_.refresh())}},a.prototype.unobserve=function(j){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(j instanceof getWindowOf(j).Element))throw new TypeError('parameter 1 is not of type "Element".');var _e=this.observations_;_e.has(j)&&(_e.delete(j),_e.size||this.controller_.removeObserver(this))}},a.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},a.prototype.gatherActive=function(){var j=this;this.clearActive(),this.observations_.forEach(function(_e){_e.isActive()&&j.activeObservations_.push(_e)})},a.prototype.broadcastActive=function(){if(this.hasActive()){var j=this.callbackCtx_,_e=this.activeObservations_.map(function(et){return new ResizeObserverEntry(et.target,et.broadcastRect())});this.callback_.call(j,_e,j),this.clearActive()}},a.prototype.clearActive=function(){this.activeObservations_.splice(0)},a.prototype.hasActive=function(){return this.activeObservations_.length>0},a}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver=function(){function a(j){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var _e=ResizeObserverController.getInstance(),et=new ResizeObserverSPI(j,_e,this);observers.set(this,et)}return a}();["observe","unobserve","disconnect"].forEach(function(a){ResizeObserver.prototype[a]=function(){var j;return(j=observers.get(this))[a].apply(j,arguments)}});var index=function(){return typeof global$1$1.ResizeObserver<"u"?global$1$1.ResizeObserver:ResizeObserver}(),useEffectWithTarget=createEffectWithTarget(reactExports.useLayoutEffect),useIsomorphicLayoutEffectWithTarget=isBrowser$1?useEffectWithTarget:useEffectWithTarget$1;function useSize(a){var j=__read(useRafState(function(){var nt=getTargetElement(a);return nt?{width:nt.clientWidth,height:nt.clientHeight}:void 0}),2),_e=j[0],et=j[1];return useIsomorphicLayoutEffectWithTarget(function(){var nt=getTargetElement(a);if(nt){var tt=new index(function(ot){ot.forEach(function(ct){var ft=ct.target,ht=ft.clientWidth,dt=ft.clientHeight;et({width:ht,height:dt})})});return tt.observe(nt),function(){tt.disconnect()}}},[],a),_e}const n$1=/[^\0-\x7E]/,t$3=/[\x2E\u3002\uFF0E\uFF61]/g,o$1={overflow:"Overflow Error","not-basic":"Illegal Input","invalid-input":"Invalid Input"},e$1=Math.floor,r$2=String.fromCharCode;function s$2(a){throw new RangeError(o$1[a])}const c=function(a,j){return a+22+75*(a<26)-((j!=0)<<5)},u=function(a,j,_e){let et=0;for(a=_e?e$1(a/700):a>>1,a+=e$1(a/j);a>455;et+=36)a=e$1(a/35);return e$1(et+36*a/(a+38))};function toASCII(a){return function(j,_e){const et=j.split("@");let nt="";et.length>1&&(nt=et[0]+"@",j=et[1]);const tt=function(ot,ct){const ft=[];let ht=ot.length;for(;ht--;)ft[ht]=ct(ot[ht]);return ft}((j=j.replace(t$3,".")).split("."),_e).join(".");return nt+tt}(a,function(j){return n$1.test(j)?"xn--"+function(_e){const et=[],nt=(_e=function(dt){const yt=[];let Tt=0;const St=dt.length;for(;Tt<St;){const At=dt.charCodeAt(Tt++);if(At>=55296&&At<=56319&&Tt<St){const Rt=dt.charCodeAt(Tt++);(64512&Rt)==56320?yt.push(((1023&At)<<10)+(1023&Rt)+65536):(yt.push(At),Tt--)}else yt.push(At)}return yt}(_e)).length;let tt=128,ot=0,ct=72;for(const dt of _e)dt<128&&et.push(r$2(dt));const ft=et.length;let ht=ft;for(ft&&et.push("-");ht<nt;){let dt=2147483647;for(const Tt of _e)Tt>=tt&&Tt<dt&&(dt=Tt);const yt=ht+1;dt-tt>e$1((2147483647-ot)/yt)&&s$2("overflow"),ot+=(dt-tt)*yt,tt=dt;for(const Tt of _e)if(Tt<tt&&++ot>2147483647&&s$2("overflow"),Tt==tt){let St=ot;for(let At=36;;At+=36){const Rt=At<=ct?1:At>=ct+26?26:At-ct;if(St<Rt)break;const It=St-Rt,Ct=36-Rt;et.push(r$2(c(Rt+It%Ct,0))),St=e$1(It/Ct)}et.push(r$2(c(St,0))),ct=u(ot,yt,ht==ft),ot=0,++ht}++ot,++tt}return et.join("")}(j):j})}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_CARET_RE=/%5e/gi,ENC_BACKTICK_RE=/%60/gi,ENC_CURLY_OPEN_RE=/%7b/gi,ENC_PIPE_RE=/%7c/gi,ENC_CURLY_CLOSE_RE=/%7d/gi,ENC_SPACE_RE=/%20/gi,ENC_SLASH_RE=/%2f/gi,ENC_ENC_SLASH_RE=/%252f/gi;function encode$7(a){return encodeURI(""+a).replace(ENC_PIPE_RE,"|")}function encodeHash(a){return encode$7(a).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(a){return encode$7(typeof a=="string"?a:JSON.stringify(a)).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CARET_RE,"^").replace(SLASH_RE,"%2F")}function encodeQueryKey(a){return encodeQueryValue(a).replace(EQUAL_RE,"%3D")}function encodePath(a){return encode$7(a).replace(HASH_RE,"%23").replace(IM_RE,"%3F").replace(ENC_ENC_SLASH_RE,"%2F").replace(AMPERSAND_RE,"%26").replace(PLUS_RE,"%2B")}function encodeParam(a){return encodePath(a).replace(SLASH_RE,"%2F")}function decode$4(a=""){try{return decodeURIComponent(""+a)}catch{return""+a}}function decodePath(a){return decode$4(a.replace(ENC_SLASH_RE,"%252F"))}function decodeQueryKey(a){return decode$4(a.replace(PLUS_RE," "))}function decodeQueryValue(a){return decode$4(a.replace(PLUS_RE," "))}function encodeHost(a=""){return toASCII(a)}function parseQuery(a=""){const j={};a[0]==="?"&&(a=a.slice(1));for(const _e of a.split("&")){const et=_e.match(/([^=]+)=?(.*)/)||[];if(et.length<2)continue;const nt=decodeQueryKey(et[1]);if(nt==="__proto__"||nt==="constructor")continue;const tt=decodeQueryValue(et[2]||"");j[nt]===void 0?j[nt]=tt:Array.isArray(j[nt])?j[nt].push(tt):j[nt]=[j[nt],tt]}return j}function encodeQueryItem(a,j){return(typeof j=="number"||typeof j=="boolean")&&(j=String(j)),j?Array.isArray(j)?j.map(_e=>`${encodeQueryKey(a)}=${encodeQueryValue(_e)}`).join("&"):`${encodeQueryKey(a)}=${encodeQueryValue(j)}`:encodeQueryKey(a)}function stringifyQuery(a){return Object.keys(a).filter(j=>a[j]!==void 0).map(j=>encodeQueryItem(j,a[j])).filter(Boolean).join("&")}const PROTOCOL_STRICT_REGEX=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,PROTOCOL_REGEX=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,PROTOCOL_RELATIVE_REGEX=/^([/\\]\s*){2,}[^/\\]/,PROTOCOL_SCRIPT_RE=/^[\s\0]*(blob|data|javascript|vbscript):$/i,TRAILING_SLASH_RE=/\/$|\/\?|\/#/,JOIN_LEADING_SLASH_RE=/^\.?\//;function isRelative(a){return["./","../"].some(j=>a.startsWith(j))}function hasProtocol(a,j={}){return typeof j=="boolean"&&(j={acceptRelative:j}),j.strict?PROTOCOL_STRICT_REGEX.test(a):PROTOCOL_REGEX.test(a)||(j.acceptRelative?PROTOCOL_RELATIVE_REGEX.test(a):!1)}function isScriptProtocol(a){return!!a&&PROTOCOL_SCRIPT_RE.test(a)}function hasTrailingSlash(a="",j){return j?TRAILING_SLASH_RE.test(a):a.endsWith("/")}function withoutTrailingSlash(a="",j){if(!j)return(hasTrailingSlash(a)?a.slice(0,-1):a)||"/";if(!hasTrailingSlash(a,!0))return a||"/";let _e=a,et="";const nt=a.indexOf("#");nt>=0&&(_e=a.slice(0,nt),et=a.slice(nt));const[tt,...ot]=_e.split("?");return((tt.endsWith("/")?tt.slice(0,-1):tt)||"/")+(ot.length>0?`?${ot.join("?")}`:"")+et}function withTrailingSlash(a="",j){if(!j)return a.endsWith("/")?a:a+"/";if(hasTrailingSlash(a,!0))return a||"/";let _e=a,et="";const nt=a.indexOf("#");if(nt>=0&&(_e=a.slice(0,nt),et=a.slice(nt),!_e))return et;const[tt,...ot]=_e.split("?");return tt+"/"+(ot.length>0?`?${ot.join("?")}`:"")+et}function hasLeadingSlash(a=""){return a.startsWith("/")}function withoutLeadingSlash(a=""){return(hasLeadingSlash(a)?a.slice(1):a)||"/"}function withLeadingSlash(a=""){return hasLeadingSlash(a)?a:"/"+a}function cleanDoubleSlashes(a=""){return a.split("://").map(j=>j.replace(/\/{2,}/g,"/")).join("://")}function withBase(a,j){if(isEmptyURL(j)||hasProtocol(a))return a;const _e=withoutTrailingSlash(j);return a.startsWith(_e)?a:joinURL(_e,a)}function withoutBase(a,j){if(isEmptyURL(j))return a;const _e=withoutTrailingSlash(j);if(!a.startsWith(_e))return a;const et=a.slice(_e.length);return et[0]==="/"?et:"/"+et}function withQuery(a,j){const _e=parseURL(a),et={...parseQuery(_e.search),...j};return _e.search=stringifyQuery(et),stringifyParsedURL(_e)}function getQuery(a){return parseQuery(parseURL(a).search)}function isEmptyURL(a){return!a||a==="/"}function isNonEmptyURL(a){return a&&a!=="/"}function joinURL(a,...j){let _e=a||"";for(const et of j.filter(nt=>isNonEmptyURL(nt)))if(_e){const nt=et.replace(JOIN_LEADING_SLASH_RE,"");_e=withTrailingSlash(_e)+nt}else _e=et;return _e}function joinRelativeURL(...a){var ot,ct,ft,ht;const j=/\/(?!\/)/,_e=a.filter(Boolean),et=[];let nt=0;for(const dt of _e)if(!(!dt||dt==="/")){for(const[yt,Tt]of dt.split(j).entries())if(!(!Tt||Tt===".")){if(Tt===".."){if(et.length===1&&hasProtocol(et[0]))continue;et.pop(),nt--;continue}if(yt===1&&((ot=et[et.length-1])!=null&&ot.endsWith(":/"))){et[et.length-1]+="/"+Tt;continue}et.push(Tt),nt++}}let tt=et.join("/");return nt>=0?(ct=_e[0])!=null&&ct.startsWith("/")&&!tt.startsWith("/")?tt="/"+tt:(ft=_e[0])!=null&&ft.startsWith("./")&&!tt.startsWith("./")&&(tt="./"+tt):tt="../".repeat(-1*nt)+tt,(ht=_e[_e.length-1])!=null&&ht.endsWith("/")&&!tt.endsWith("/")&&(tt+="/"),tt}function withHttp(a){return withProtocol(a,"http://")}function withHttps(a){return withProtocol(a,"https://")}function withoutProtocol(a){return withProtocol(a,"")}function withProtocol(a,j){let _e=a.match(PROTOCOL_REGEX);return _e||(_e=a.match(/^\/{2,}/)),_e?j+a.slice(_e[0].length):j+a}function normalizeURL(a){const j=parseURL(a);return j.pathname=encodePath(decodePath(j.pathname)),j.hash=encodeHash(decode$4(j.hash)),j.host=encodeHost(decode$4(j.host)),j.search=stringifyQuery(parseQuery(j.search)),stringifyParsedURL(j)}function resolveURL(a="",...j){if(typeof a!="string")throw new TypeError(`URL input should be string received ${typeof a} (${a})`);const _e=j.filter(nt=>isNonEmptyURL(nt));if(_e.length===0)return a;const et=parseURL(a);for(const nt of _e){const tt=parseURL(nt);if(tt.pathname&&(et.pathname=withTrailingSlash(et.pathname)+withoutLeadingSlash(tt.pathname)),tt.hash&&tt.hash!=="#"&&(et.hash=tt.hash),tt.search&&tt.search!=="?")if(et.search&&et.search!=="?"){const ot=stringifyQuery({...parseQuery(et.search),...parseQuery(tt.search)});et.search=ot.length>0?"?"+ot:""}else et.search=tt.search}return stringifyParsedURL(et)}function isSamePath(a,j){return decode$4(withoutTrailingSlash(a))===decode$4(withoutTrailingSlash(j))}function isEqual$2(a,j,_e={}){return _e.trailingSlash||(a=withTrailingSlash(a),j=withTrailingSlash(j)),_e.leadingSlash||(a=withLeadingSlash(a),j=withLeadingSlash(j)),_e.encoding||(a=decode$4(a),j=decode$4(j)),a===j}function withFragment(a,j){if(!j||j==="#")return a;const _e=parseURL(a);return _e.hash=j===""?"":"#"+encodeHash(j),stringifyParsedURL(_e)}function withoutFragment(a){return stringifyParsedURL({...parseURL(a),hash:""})}function withoutHost(a){const j=parseURL(a);return(j.pathname||"/")+j.search+j.hash}const protocolRelative=Symbol.for("ufo:protocolRelative");function parseURL(a="",j){const _e=a.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(_e){const[,yt,Tt=""]=_e;return{protocol:yt.toLowerCase(),pathname:Tt,href:yt+Tt,auth:"",host:"",search:"",hash:""}}if(!hasProtocol(a,{acceptRelative:!0}))return j?parseURL(j+a):parsePath(a);const[,et="",nt,tt=""]=a.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,ot="",ct=""]=tt.match(/([^#/?]*)(.*)?/)||[];et==="file:"&&(ct=ct.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:ft,search:ht,hash:dt}=parsePath(ct);return{protocol:et.toLowerCase(),auth:nt?nt.slice(0,Math.max(0,nt.length-1)):"",host:ot,pathname:ft,search:ht,hash:dt,[protocolRelative]:!et}}function parsePath(a=""){const[j="",_e="",et=""]=(a.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:j,search:_e,hash:et}}function parseAuth(a=""){const[j,_e]=a.split(":");return{username:decode$4(j),password:decode$4(_e)}}function parseHost(a=""){const[j,_e]=(a.match(/([^/:]*):?(\d+)?/)||[]).splice(1);return{hostname:decode$4(j),port:_e}}function stringifyParsedURL(a){const j=a.pathname||"",_e=a.search?(a.search.startsWith("?")?"":"?")+a.search:"",et=a.hash||"",nt=a.auth?a.auth+"@":"",tt=a.host||"";return(a.protocol||a[protocolRelative]?(a.protocol||"")+"//":"")+nt+tt+j+_e+et}const FILENAME_STRICT_REGEX=/\/([^/]+\.[^/]+)$/,FILENAME_REGEX=/\/([^/]+)$/;function parseFilename(a="",{strict:j}){const{pathname:_e}=parseURL(a),et=j?_e.match(FILENAME_STRICT_REGEX):_e.match(FILENAME_REGEX);return et?et[1]:void 0}var __defProp$6=Object.defineProperty,__defNormalProp$5=(a,j,_e)=>j in a?__defProp$6(a,j,{enumerable:!0,configurable:!0,writable:!0,value:_e}):a[j]=_e,__publicField$4=(a,j,_e)=>(__defNormalProp$5(a,typeof j!="symbol"?j+"":j,_e),_e);class $URL{constructor(j=""){if(__publicField$4(this,"protocol"),__publicField$4(this,"host"),__publicField$4(this,"auth"),__publicField$4(this,"pathname"),__publicField$4(this,"query",{}),__publicField$4(this,"hash"),typeof j!="string")throw new TypeError(`URL input should be string received ${typeof j} (${j})`);const _e=parseURL(j);this.protocol=decode$4(_e.protocol),this.host=decode$4(_e.host),this.auth=decode$4(_e.auth),this.pathname=decodePath(_e.pathname),this.query=parseQuery(_e.search),this.hash=decode$4(_e.hash)}get hostname(){return parseHost(this.host).hostname}get port(){return parseHost(this.host).port||""}get username(){return parseAuth(this.auth).username}get password(){return parseAuth(this.auth).password||""}get hasProtocol(){return this.protocol.length}get isAbsolute(){return this.hasProtocol||this.pathname[0]==="/"}get search(){const j=stringifyQuery(this.query);return j.length>0?"?"+j:""}get searchParams(){const j=new URLSearchParams;for(const _e in this.query){const et=this.query[_e];if(Array.isArray(et))for(const nt of et)j.append(_e,nt);else j.append(_e,typeof et=="string"?et:JSON.stringify(et))}return j}get origin(){return(this.protocol?this.protocol+"//":"")+encodeHost(this.host)}get fullpath(){return encodePath(this.pathname)+this.search+encodeHash(this.hash)}get encodedAuth(){if(!this.auth)return"";const{username:j,password:_e}=parseAuth(this.auth);return encodeURIComponent(j)+(_e?":"+encodeURIComponent(_e):"")}get href(){const j=this.encodedAuth,_e=(this.protocol?this.protocol+"//":"")+(j?j+"@":"")+encodeHost(this.host);return this.hasProtocol&&this.isAbsolute?_e+this.fullpath:this.fullpath}append(j){if(j.hasProtocol)throw new Error("Cannot append a URL with protocol");Object.assign(this.query,j.query),j.pathname&&(this.pathname=withTrailingSlash(this.pathname)+withoutLeadingSlash(j.pathname)),j.hash&&(this.hash=j.hash)}toJSON(){return this.href}toString(){return this.href}}function createURL(a){return new $URL(a)}const dist$3=Object.freeze(Object.defineProperty({__proto__:null,$URL,cleanDoubleSlashes,createURL,decode:decode$4,decodePath,decodeQueryKey,decodeQueryValue,encode:encode$7,encodeHash,encodeHost,encodeParam,encodePath,encodeQueryItem,encodeQueryKey,encodeQueryValue,getQuery,hasLeadingSlash,hasProtocol,hasTrailingSlash,isEmptyURL,isEqual:isEqual$2,isNonEmptyURL,isRelative,isSamePath,isScriptProtocol,joinRelativeURL,joinURL,normalizeURL,parseAuth,parseFilename,parseHost,parsePath,parseQuery,parseURL,resolveURL,stringifyParsedURL,stringifyQuery,withBase,withFragment,withHttp,withHttps,withLeadingSlash,withProtocol,withQuery,withTrailingSlash,withoutBase,withoutFragment,withoutHost,withoutLeadingSlash,withoutProtocol,withoutTrailingSlash},Symbol.toStringTag,{value:"Module"})),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(a,j,_e,et="")=>{const nt=a.split(":");if(a.slice(0,1)==="@"){if(nt.length<2||nt.length>3)return null;et=nt.shift().slice(1)}if(nt.length>3||!nt.length)return null;if(nt.length>1){const ct=nt.pop(),ft=nt.pop(),ht={provider:nt.length>0?nt[0]:et,prefix:ft,name:ct};return j&&!validateIconName(ht)?null:ht}const tt=nt[0],ot=tt.split("-");if(ot.length>1){const ct={provider:et,prefix:ot.shift(),name:ot.join("-")};return j&&!validateIconName(ct)?null:ct}if(_e&&et===""){const ct={provider:et,prefix:"",name:tt};return j&&!validateIconName(ct,_e)?null:ct}return null},validateIconName=(a,j)=>a?!!((a.provider===""||a.provider.match(matchIconName))&&(j&&a.prefix===""||a.prefix.match(matchIconName))&&a.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations(a,j){const _e={};!a.hFlip!=!j.hFlip&&(_e.hFlip=!0),!a.vFlip!=!j.vFlip&&(_e.vFlip=!0);const et=((a.rotate||0)+(j.rotate||0))%4;return et&&(_e.rotate=et),_e}function mergeIconData(a,j){const _e=mergeIconTransformations(a,j);for(const et in defaultExtendedIconProps)et in defaultIconTransformations?et in a&&!(et in _e)&&(_e[et]=defaultIconTransformations[et]):et in j?_e[et]=j[et]:et in a&&(_e[et]=a[et]);return _e}function getIconsTree(a,j){const _e=a.icons,et=a.aliases||Object.create(null),nt=Object.create(null);function tt(ot){if(_e[ot])return nt[ot]=[];if(!(ot in nt)){nt[ot]=null;const ct=et[ot]&&et[ot].parent,ft=ct&&tt(ct);ft&&(nt[ot]=[ct].concat(ft))}return nt[ot]}return Object.keys(_e).concat(Object.keys(et)).forEach(tt),nt}function internalGetIconData(a,j,_e){const et=a.icons,nt=a.aliases||Object.create(null);let tt={};function ot(ct){tt=mergeIconData(et[ct]||nt[ct],tt)}return ot(j),_e.forEach(ot),mergeIconData(a,tt)}function parseIconSet(a,j){const _e=[];if(typeof a!="object"||typeof a.icons!="object")return _e;a.not_found instanceof Array&&a.not_found.forEach(nt=>{j(nt,null),_e.push(nt)});const et=getIconsTree(a);for(const nt in et){const tt=et[nt];tt&&(j(nt,internalGetIconData(a,nt,tt)),_e.push(nt))}return _e}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps(a,j){for(const _e in j)if(_e in a&&typeof a[_e]!=typeof j[_e])return!1;return!0}function quicklyValidateIconSet(a){if(typeof a!="object"||a===null)return null;const j=a;if(typeof j.prefix!="string"||!a.icons||typeof a.icons!="object"||!checkOptionalProps(a,optionalPropertyDefaults))return null;const _e=j.icons;for(const nt in _e){const tt=_e[nt];if(!nt.match(matchIconName)||typeof tt.body!="string"||!checkOptionalProps(tt,defaultExtendedIconProps))return null}const et=j.aliases||Object.create(null);for(const nt in et){const tt=et[nt],ot=tt.parent;if(!nt.match(matchIconName)||typeof ot!="string"||!_e[ot]&&!et[ot]||!checkOptionalProps(tt,defaultExtendedIconProps))return null}return j}const dataStorage=Object.create(null);function newStorage(a,j){return{provider:a,prefix:j,icons:Object.create(null),missing:new Set}}function getStorage(a,j){const _e=dataStorage[a]||(dataStorage[a]=Object.create(null));return _e[j]||(_e[j]=newStorage(a,j))}function addIconSet(a,j){return quicklyValidateIconSet(j)?parseIconSet(j,(_e,et)=>{et?a.icons[_e]=et:a.missing.add(_e)}):[]}function addIconToStorage(a,j,_e){try{if(typeof _e.body=="string")return a.icons[j]={..._e},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames(a){return typeof a=="boolean"&&(simpleNames=a),simpleNames}function getIconData(a){const j=typeof a=="string"?stringToIcon(a,!0,simpleNames):a;if(j){const _e=getStorage(j.provider,j.prefix),et=j.name;return _e.icons[et]||(_e.missing.has(et)?null:void 0)}}function addIcon(a,j){const _e=stringToIcon(a,!0,simpleNames);if(!_e)return!1;const et=getStorage(_e.provider,_e.prefix);return addIconToStorage(et,_e.name,j)}function addCollection(a,j){if(typeof a!="object")return!1;if(typeof j!="string"&&(j=a.provider||""),simpleNames&&!j&&!a.prefix){let nt=!1;return quicklyValidateIconSet(a)&&(a.prefix="",parseIconSet(a,(tt,ot)=>{ot&&addIcon(tt,ot)&&(nt=!0)})),nt}const _e=a.prefix;if(!validateIconName({provider:j,prefix:_e,name:"a"}))return!1;const et=getStorage(j,_e);return!!addIconSet(et,a)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(a,j,_e){if(j===1)return a;if(_e=_e||100,typeof a=="number")return Math.ceil(a*j*_e)/_e;if(typeof a!="string")return a;const et=a.split(unitsSplit);if(et===null||!et.length)return a;const nt=[];let tt=et.shift(),ot=unitsTest.test(tt);for(;;){if(ot){const ct=parseFloat(tt);isNaN(ct)?nt.push(tt):nt.push(Math.ceil(ct*j*_e)/_e)}else nt.push(tt);if(tt=et.shift(),tt===void 0)return nt.join("");ot=!ot}}const isUnsetKeyword=a=>a==="unset"||a==="undefined"||a==="none";function iconToSVG(a,j){const _e={...defaultIconProps,...a},et={...defaultIconCustomisations,...j},nt={left:_e.left,top:_e.top,width:_e.width,height:_e.height};let tt=_e.body;[_e,et].forEach(At=>{const Rt=[],It=At.hFlip,Ct=At.vFlip;let kt=At.rotate;It?Ct?kt+=2:(Rt.push("translate("+(nt.width+nt.left).toString()+" "+(0-nt.top).toString()+")"),Rt.push("scale(-1 1)"),nt.top=nt.left=0):Ct&&(Rt.push("translate("+(0-nt.left).toString()+" "+(nt.height+nt.top).toString()+")"),Rt.push("scale(1 -1)"),nt.top=nt.left=0);let Pt;switch(kt<0&&(kt-=Math.floor(kt/4)*4),kt=kt%4,kt){case 1:Pt=nt.height/2+nt.top,Rt.unshift("rotate(90 "+Pt.toString()+" "+Pt.toString()+")");break;case 2:Rt.unshift("rotate(180 "+(nt.width/2+nt.left).toString()+" "+(nt.height/2+nt.top).toString()+")");break;case 3:Pt=nt.width/2+nt.left,Rt.unshift("rotate(-90 "+Pt.toString()+" "+Pt.toString()+")");break}kt%2===1&&(nt.left!==nt.top&&(Pt=nt.left,nt.left=nt.top,nt.top=Pt),nt.width!==nt.height&&(Pt=nt.width,nt.width=nt.height,nt.height=Pt)),Rt.length&&(tt='<g transform="'+Rt.join(" ")+'">'+tt+"</g>")});const ot=et.width,ct=et.height,ft=nt.width,ht=nt.height;let dt,yt;ot===null?(yt=ct===null?"1em":ct==="auto"?ht:ct,dt=calculateSize(yt,ft/ht)):(dt=ot==="auto"?ft:ot,yt=ct===null?calculateSize(dt,ht/ft):ct==="auto"?ht:ct);const Tt={},St=(At,Rt)=>{isUnsetKeyword(Rt)||(Tt[At]=Rt.toString())};return St("width",dt),St("height",yt),Tt.viewBox=nt.left.toString()+" "+nt.top.toString()+" "+ft.toString()+" "+ht.toString(),{attributes:Tt,body:tt}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(a,j=randomPrefix){const _e=[];let et;for(;et=regex.exec(a);)_e.push(et[1]);if(!_e.length)return a;const nt="suffix"+(Math.random()*16777216|Date.now()).toString(16);return _e.forEach(tt=>{const ot=typeof j=="function"?j(tt):j+(counter++).toString(),ct=tt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");a=a.replace(new RegExp('([#;"])('+ct+')([")]|\\.[a-z])',"g"),"$1"+ot+nt+"$3")}),a=a.replace(new RegExp(nt,"g"),""),a}const storage=Object.create(null);function setAPIModule(a,j){storage[a]=j}function getAPIModule(a){return storage[a]||storage[""]}function createAPIConfig(a){let j;if(typeof a.resources=="string")j=[a.resources];else if(j=a.resources,!(j instanceof Array)||!j.length)return null;return{resources:j,path:a.path||"/",maxURL:a.maxURL||500,rotate:a.rotate||750,timeout:a.timeout||5e3,random:a.random===!0,index:a.index||0,dataAfterTimeout:a.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(a,j){const _e=createAPIConfig(j);return _e===null?!1:(configStorage[a]=_e,!0)}function getAPIConfig(a){return configStorage[a]}const detectFetch=()=>{let a;try{if(a=fetch,typeof a=="function")return a}catch{}};let fetchModule=detectFetch();function calculateMaxLength(a,j){const _e=getAPIConfig(a);if(!_e)return 0;let et;if(!_e.maxURL)et=0;else{let nt=0;_e.resources.forEach(ot=>{nt=Math.max(nt,ot.length)});const tt=j+".json?icons=";et=_e.maxURL-nt-_e.path.length-tt.length}return et}function shouldAbort(a){return a===404}const prepare=(a,j,_e)=>{const et=[],nt=calculateMaxLength(a,j),tt="icons";let ot={type:tt,provider:a,prefix:j,icons:[]},ct=0;return _e.forEach((ft,ht)=>{ct+=ft.length+1,ct>=nt&&ht>0&&(et.push(ot),ot={type:tt,provider:a,prefix:j,icons:[]},ct=ft.length),ot.icons.push(ft)}),et.push(ot),et};function getPath(a){if(typeof a=="string"){const j=getAPIConfig(a);if(j)return j.path}return"/"}const send=(a,j,_e)=>{if(!fetchModule){_e("abort",424);return}let et=getPath(j.provider);switch(j.type){case"icons":{const tt=j.prefix,ct=j.icons.join(","),ft=new URLSearchParams({icons:ct});et+=tt+".json?"+ft.toString();break}case"custom":{const tt=j.uri;et+=tt.slice(0,1)==="/"?tt.slice(1):tt;break}default:_e("abort",400);return}let nt=503;fetchModule(a+et).then(tt=>{const ot=tt.status;if(ot!==200){setTimeout(()=>{_e(shouldAbort(ot)?"abort":"next",ot)});return}return nt=501,tt.json()}).then(tt=>{if(typeof tt!="object"||tt===null){setTimeout(()=>{tt===404?_e("abort",tt):_e("next",nt)});return}setTimeout(()=>{_e("success",tt)})}).catch(()=>{_e("next",nt)})},fetchAPIModule={prepare,send};function sortIcons(a){const j={loaded:[],missing:[],pending:[]},_e=Object.create(null);a.sort((nt,tt)=>nt.provider!==tt.provider?nt.provider.localeCompare(tt.provider):nt.prefix!==tt.prefix?nt.prefix.localeCompare(tt.prefix):nt.name.localeCompare(tt.name));let et={provider:"",prefix:"",name:""};return a.forEach(nt=>{if(et.name===nt.name&&et.prefix===nt.prefix&&et.provider===nt.provider)return;et=nt;const tt=nt.provider,ot=nt.prefix,ct=nt.name,ft=_e[tt]||(_e[tt]=Object.create(null)),ht=ft[ot]||(ft[ot]=getStorage(tt,ot));let dt;ct in ht.icons?dt=j.loaded:ot===""||ht.missing.has(ct)?dt=j.missing:dt=j.pending;const yt={provider:tt,prefix:ot,name:ct};dt.push(yt)}),j}function removeCallback(a,j){a.forEach(_e=>{const et=_e.loaderCallbacks;et&&(_e.loaderCallbacks=et.filter(nt=>nt.id!==j))})}function updateCallbacks(a){a.pendingCallbacksFlag||(a.pendingCallbacksFlag=!0,setTimeout(()=>{a.pendingCallbacksFlag=!1;const j=a.loaderCallbacks?a.loaderCallbacks.slice(0):[];if(!j.length)return;let _e=!1;const et=a.provider,nt=a.prefix;j.forEach(tt=>{const ot=tt.icons,ct=ot.pending.length;ot.pending=ot.pending.filter(ft=>{if(ft.prefix!==nt)return!0;const ht=ft.name;if(a.icons[ht])ot.loaded.push({provider:et,prefix:nt,name:ht});else if(a.missing.has(ht))ot.missing.push({provider:et,prefix:nt,name:ht});else return _e=!0,!0;return!1}),ot.pending.length!==ct&&(_e||removeCallback([a],tt.id),tt.callback(ot.loaded.slice(0),ot.missing.slice(0),ot.pending.slice(0),tt.abort))})}))}let idCounter=0;function storeCallback(a,j,_e){const et=idCounter++,nt=removeCallback.bind(null,_e,et);if(!j.pending.length)return nt;const tt={id:et,icons:j,callback:a,abort:nt};return _e.forEach(ot=>{(ot.loaderCallbacks||(ot.loaderCallbacks=[])).push(tt)}),nt}function listToIcons(a,j=!0,_e=!1){const et=[];return a.forEach(nt=>{const tt=typeof nt=="string"?stringToIcon(nt,j,_e):nt;tt&&et.push(tt)}),et}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(a,j,_e,et){const nt=a.resources.length,tt=a.random?Math.floor(Math.random()*nt):a.index;let ot;if(a.random){let jt=a.resources.slice(0);for(ot=[];jt.length>1;){const zt=Math.floor(Math.random()*jt.length);ot.push(jt[zt]),jt=jt.slice(0,zt).concat(jt.slice(zt+1))}ot=ot.concat(jt)}else ot=a.resources.slice(tt).concat(a.resources.slice(0,tt));const ct=Date.now();let ft="pending",ht=0,dt,yt=null,Tt=[],St=[];typeof et=="function"&&St.push(et);function At(){yt&&(clearTimeout(yt),yt=null)}function Rt(){ft==="pending"&&(ft="aborted"),At(),Tt.forEach(jt=>{jt.status==="pending"&&(jt.status="aborted")}),Tt=[]}function It(jt,zt){zt&&(St=[]),typeof jt=="function"&&St.push(jt)}function Ct(){return{startTime:ct,payload:j,status:ft,queriesSent:ht,queriesPending:Tt.length,subscribe:It,abort:Rt}}function kt(){ft="failed",St.forEach(jt=>{jt(void 0,dt)})}function Pt(){Tt.forEach(jt=>{jt.status==="pending"&&(jt.status="aborted")}),Tt=[]}function Bt(jt,zt,Gt){const tn=zt!=="success";switch(Tt=Tt.filter(hn=>hn!==jt),ft){case"pending":break;case"failed":if(tn||!a.dataAfterTimeout)return;break;default:return}if(zt==="abort"){dt=Gt,kt();return}if(tn){dt=Gt,Tt.length||(ot.length?Kt():kt());return}if(At(),Pt(),!a.random){const hn=a.resources.indexOf(jt.resource);hn!==-1&&hn!==a.index&&(a.index=hn)}ft="completed",St.forEach(hn=>{hn(Gt)})}function Kt(){if(ft!=="pending")return;At();const jt=ot.shift();if(jt===void 0){if(Tt.length){yt=setTimeout(()=>{At(),ft==="pending"&&(Pt(),kt())},a.timeout);return}kt();return}const zt={status:"pending",resource:jt,callback:(Gt,tn)=>{Bt(zt,Gt,tn)}};Tt.push(zt),ht++,yt=setTimeout(Kt,a.rotate),_e(jt,j,zt.callback)}return setTimeout(Kt),Ct}function initRedundancy(a){const j={...defaultConfig,...a};let _e=[];function et(){_e=_e.filter(ct=>ct().status==="pending")}function nt(ct,ft,ht){const dt=sendQuery(j,ct,ft,(yt,Tt)=>{et(),ht&&ht(yt,Tt)});return _e.push(dt),dt}function tt(ct){return _e.find(ft=>ct(ft))||null}return{query:nt,find:tt,setIndex:ct=>{j.index=ct},getIndex:()=>j.index,cleanup:et}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(a){if(!redundancyCache[a]){const j=getAPIConfig(a);if(!j)return;const _e=initRedundancy(j),et={config:j,redundancy:_e};redundancyCache[a]=et}return redundancyCache[a]}function sendAPIQuery(a,j,_e){let et,nt;if(typeof a=="string"){const tt=getAPIModule(a);if(!tt)return _e(void 0,424),emptyCallback$1;nt=tt.send;const ot=getRedundancyCache(a);ot&&(et=ot.redundancy)}else{const tt=createAPIConfig(a);if(tt){et=initRedundancy(tt);const ot=a.resources?a.resources[0]:"",ct=getAPIModule(ot);ct&&(nt=ct.send)}}return!et||!nt?(_e(void 0,424),emptyCallback$1):et.query(j,nt,_e)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem(a,j){try{return a.getItem(j)}catch{}}function setStoredItem(a,j,_e){try{return a.setItem(j,_e),!0}catch{}}function removeStoredItem(a,j){try{a.removeItem(j)}catch{}}function setBrowserStorageItemsCount(a,j){return setStoredItem(a,browserCacheCountKey,j.toString())}function getBrowserStorageItemsCount(a){return parseInt(getStoredItem(a,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(a){browserStorageStatus=a}let _window=typeof window>"u"?{}:window;function getBrowserStorage(a){const j=a+"Storage";try{if(_window&&_window[j]&&typeof _window[j].length=="number")return _window[j]}catch{}browserStorageConfig[a]=!1}function iterateBrowserStorage(a,j){const _e=getBrowserStorage(a);if(!_e)return;const et=getStoredItem(_e,browserCacheVersionKey);if(et!==browserCacheVersion){if(et){const ct=getBrowserStorageItemsCount(_e);for(let ft=0;ft<ct;ft++)removeStoredItem(_e,browserCachePrefix+ft.toString())}setStoredItem(_e,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(_e,0);return}const nt=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,tt=ct=>{const ft=browserCachePrefix+ct.toString(),ht=getStoredItem(_e,ft);if(typeof ht=="string"){try{const dt=JSON.parse(ht);if(typeof dt=="object"&&typeof dt.cached=="number"&&dt.cached>nt&&typeof dt.provider=="string"&&typeof dt.data=="object"&&typeof dt.data.prefix=="string"&&j(dt,ct))return!0}catch{}removeStoredItem(_e,ft)}};let ot=getBrowserStorageItemsCount(_e);for(let ct=ot-1;ct>=0;ct--)tt(ct)||(ct===ot-1?(ot--,setBrowserStorageItemsCount(_e,ot)):browserStorageEmptyItems[a].add(ct))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const a in browserStorageConfig)iterateBrowserStorage(a,j=>{const _e=j.data,et=j.provider,nt=_e.prefix,tt=getStorage(et,nt);if(!addIconSet(tt,_e).length)return!1;const ot=_e.lastModified||-1;return tt.lastModifiedCached=tt.lastModifiedCached?Math.min(tt.lastModifiedCached,ot):ot,!0})}}function updateLastModified(a,j){const _e=a.lastModifiedCached;if(_e&&_e>=j)return _e===j;if(a.lastModifiedCached=j,_e)for(const et in browserStorageConfig)iterateBrowserStorage(et,nt=>{const tt=nt.data;return nt.provider!==a.provider||tt.prefix!==a.prefix||tt.lastModified===j});return!0}function storeInBrowserStorage(a,j){browserStorageStatus||initBrowserStorage();function _e(et){let nt;if(!browserStorageConfig[et]||!(nt=getBrowserStorage(et)))return;const tt=browserStorageEmptyItems[et];let ot;if(tt.size)tt.delete(ot=Array.from(tt).shift());else if(ot=getBrowserStorageItemsCount(nt),!setBrowserStorageItemsCount(nt,ot+1))return;const ct={cached:Math.floor(Date.now()/browserStorageHour),provider:a.provider,data:j};return setStoredItem(nt,browserCachePrefix+ot.toString(),JSON.stringify(ct))}j.lastModified&&!updateLastModified(a,j.lastModified)||Object.keys(j.icons).length&&(j.not_found&&(j=Object.assign({},j),delete j.not_found),_e("local")||_e("session"))}function emptyCallback(){}function loadedNewIcons(a){a.iconsLoaderFlag||(a.iconsLoaderFlag=!0,setTimeout(()=>{a.iconsLoaderFlag=!1,updateCallbacks(a)}))}function loadNewIcons(a,j){a.iconsToLoad?a.iconsToLoad=a.iconsToLoad.concat(j).sort():a.iconsToLoad=j,a.iconsQueueFlag||(a.iconsQueueFlag=!0,setTimeout(()=>{a.iconsQueueFlag=!1;const{provider:_e,prefix:et}=a,nt=a.iconsToLoad;delete a.iconsToLoad;let tt;if(!nt||!(tt=getAPIModule(_e)))return;tt.prepare(_e,et,nt).forEach(ct=>{sendAPIQuery(_e,ct,ft=>{if(typeof ft!="object")ct.icons.forEach(ht=>{a.missing.add(ht)});else try{const ht=addIconSet(a,ft);if(!ht.length)return;const dt=a.pendingIcons;dt&&ht.forEach(yt=>{dt.delete(yt)}),storeInBrowserStorage(a,ft)}catch(ht){console.error(ht)}loadedNewIcons(a)})})}))}const loadIcons=(a,j)=>{const _e=listToIcons(a,!0,allowSimpleNames()),et=sortIcons(_e);if(!et.pending.length){let ft=!0;return j&&setTimeout(()=>{ft&&j(et.loaded,et.missing,et.pending,emptyCallback)}),()=>{ft=!1}}const nt=Object.create(null),tt=[];let ot,ct;return et.pending.forEach(ft=>{const{provider:ht,prefix:dt}=ft;if(dt===ct&&ht===ot)return;ot=ht,ct=dt,tt.push(getStorage(ht,dt));const yt=nt[ht]||(nt[ht]=Object.create(null));yt[dt]||(yt[dt]=[])}),et.pending.forEach(ft=>{const{provider:ht,prefix:dt,name:yt}=ft,Tt=getStorage(ht,dt),St=Tt.pendingIcons||(Tt.pendingIcons=new Set);St.has(yt)||(St.add(yt),nt[ht][dt].push(yt))}),tt.forEach(ft=>{const{provider:ht,prefix:dt}=ft;nt[ht][dt].length&&loadNewIcons(ft,nt[ht][dt])}),j?storeCallback(j,et,tt):emptyCallback},loadIcon=a=>new Promise((j,_e)=>{const et=typeof a=="string"?stringToIcon(a,!0):a;if(!et){_e(a);return}loadIcons([et||a],nt=>{if(nt.length&&et){const tt=getIconData(et);if(tt){j({...defaultIconProps,...tt});return}}_e(a)})});function mergeCustomisations(a,j){const _e={...a};for(const et in j){const nt=j[et],tt=typeof nt;et in defaultIconSizeCustomisations?(nt===null||nt&&(tt==="string"||tt==="number"))&&(_e[et]=nt):tt===typeof _e[et]&&(_e[et]=et==="rotate"?nt%4:nt)}return _e}const separator=/[\s,]+/;function flipFromString(a,j){j.split(separator).forEach(_e=>{switch(_e.trim()){case"horizontal":a.hFlip=!0;break;case"vertical":a.vFlip=!0;break}})}function rotateFromString(a,j=0){const _e=a.replace(/^-?[0-9.]*/,"");function et(nt){for(;nt<0;)nt+=4;return nt%4}if(_e===""){const nt=parseInt(a);return isNaN(nt)?0:et(nt)}else if(_e!==a){let nt=0;switch(_e){case"%":nt=25;break;case"deg":nt=90}if(nt){let tt=parseFloat(a.slice(0,a.length-_e.length));return isNaN(tt)?0:(tt=tt/nt,tt%1===0?et(tt):0)}}return j}function iconToHTML(a,j){let _e=a.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const et in j)_e+=" "+et+'="'+j[et]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+_e+">"+a+"</svg>"}function encodeSVGforURL(a){return a.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData(a){return"data:image/svg+xml,"+encodeSVGforURL(a)}function svgToURL(a){return'url("'+svgToData(a)+'")'}let policy;function createPolicy(){try{policy=window.trustedTypes.createPolicy("iconify",{createHTML:a=>a})}catch{policy=null}}function cleanUpInnerHTML(a){return policy===void 0&&createPolicy(),policy?policy.createHTML(a):a}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={WebkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const a in propsToAddTo){const j=propsToAddTo[a];for(const _e in propsToAdd)j[a+_e]=propsToAdd[_e]}const inlineDefaults={...defaultExtendedIconCustomisations,inline:!0};function fixSize(a){return a+(a.match(/^[-0-9.]+$/)?"px":"")}const render=(a,j,_e,et)=>{const nt=_e?inlineDefaults:defaultExtendedIconCustomisations,tt=mergeCustomisations(nt,j),ot=j.mode||"svg",ct={},ft=j.style||{},ht={...ot==="svg"?svgDefaults:{},ref:et};for(let Ct in j){const kt=j[Ct];if(kt!==void 0)switch(Ct){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":tt[Ct]=kt===!0||kt==="true"||kt===1;break;case"flip":typeof kt=="string"&&flipFromString(tt,kt);break;case"color":ct.color=kt;break;case"rotate":typeof kt=="string"?tt[Ct]=rotateFromString(kt):typeof kt=="number"&&(tt[Ct]=kt);break;case"ariaHidden":case"aria-hidden":kt!==!0&&kt!=="true"&&delete ht["aria-hidden"];break;default:nt[Ct]===void 0&&(ht[Ct]=kt)}}const dt=iconToSVG(a,tt),yt=dt.attributes;if(tt.inline&&(ct.verticalAlign="-0.125em"),ot==="svg"){ht.style={...ct,...ft},Object.assign(ht,yt);let Ct=0,kt=j.id;return typeof kt=="string"&&(kt=kt.replace(/-/g,"_")),ht.dangerouslySetInnerHTML={__html:cleanUpInnerHTML(replaceIDs(dt.body,kt?()=>kt+"ID"+Ct++:"iconifyReact"))},React$2.createElement("svg",ht)}const{body:Tt,width:St,height:At}=a,Rt=ot==="mask"||(ot==="bg"?!1:Tt.indexOf("currentColor")!==-1),It=iconToHTML(Tt,{...yt,width:St+"",height:At+""});return ht.style={...ct,"--svg":svgToURL(It),width:fixSize(yt.width),height:fixSize(yt.height),...commonProps,...Rt?monotoneProps:coloredProps,...ft},React$2.createElement("span",ht)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const a=window;if(a.IconifyPreload!==void 0){const j=a.IconifyPreload,_e="Invalid IconifyPreload syntax.";typeof j=="object"&&j!==null&&(j instanceof Array?j:[j]).forEach(et=>{try{(typeof et!="object"||et===null||et instanceof Array||typeof et.icons!="object"||typeof et.prefix!="string"||!addCollection(et))&&console.error(_e)}catch{console.error(_e)}})}if(a.IconifyProviders!==void 0){const j=a.IconifyProviders;if(typeof j=="object"&&j!==null)for(let _e in j){const et="IconifyProviders["+_e+"] is invalid.";try{const nt=j[_e];if(typeof nt!="object"||!nt||nt.resources===void 0)continue;addAPIProvider(_e,nt)||console.error(et)}catch{console.error(et)}}}}class IconComponent extends React$2.Component{constructor(j){super(j),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(j){this.state.icon!==j&&this.setState({icon:j})}_checkIcon(j){const _e=this.state,et=this.props.icon;if(typeof et=="object"&&et!==null&&typeof et.body=="string"){this._icon="",this._abortLoading(),(j||_e.icon===null)&&this._setData({data:et});return}let nt;if(typeof et!="string"||(nt=stringToIcon(et,!1,!0))===null){this._abortLoading(),this._setData(null);return}const tt=getIconData(nt);if(!tt){(!this._loading||this._loading.name!==et)&&(this._abortLoading(),this._icon="",this._setData(null),tt!==null&&(this._loading={name:et,abort:loadIcons([nt],this._checkIcon.bind(this,!1))}));return}if(this._icon!==et||_e.icon===null){this._abortLoading(),this._icon=et;const ot=["iconify"];nt.prefix!==""&&ot.push("iconify--"+nt.prefix),nt.provider!==""&&ot.push("iconify--"+nt.provider),this._setData({data:tt,classes:ot}),this.props.onLoad&&this.props.onLoad(et)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(j){j.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const j=this.props,_e=this.state.icon;if(_e===null)return j.children?j.children:React$2.createElement("span",{});let et=j;return _e.classes&&(et={...j,className:(typeof j.className=="string"?j.className+" ":"")+_e.classes.join(" ")}),render({...defaultIconProps,..._e.data},et,j._inline,j._ref)}}const Icon=React$2.forwardRef(function(j,_e){const et={...j,_ref:_e,_inline:!1};return React$2.createElement(IconComponent,et)});React$2.forwardRef(function(j,_e){const et={...j,_ref:_e,_inline:!0};return React$2.createElement(IconComponent,et)});const data$w={width:24,height:24,body:'<path fill="currentColor" d="M9.575 12L5.7 8.1q-.275-.275-.288-.688T5.7 6.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.062.375t-.213.325l-4.6 4.6q-.275.275-.687.288T5.7 17.3q-.275-.275-.275-.7t.275-.7L9.575 12Zm6.6 0L12.3 8.1q-.275-.275-.288-.688T12.3 6.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.6 4.6q-.275.275-.687.288T12.3 17.3q-.275-.275-.275-.7t.275-.7l3.875-3.9Z"/>'};var appleIphone=/iPhone/i,appleIpod=/iPod/i,appleTablet=/iPad/i,appleUniversal=/\biOS-universal(?:.+)Mac\b/i,androidPhone=/\bAndroid(?:.+)Mobile\b/i,androidTablet=/Android/i,amazonPhone=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,amazonTablet=/Silk/i,windowsPhone=/Windows Phone/i,windowsTablet=/\bWindows(?:.+)ARM\b/i,otherBlackBerry=/BlackBerry/i,otherBlackBerry10=/BB10/i,otherOpera=/Opera Mini/i,otherChrome=/\b(CriOS|Chrome)(?:.+)Mobile/i,otherFirefox=/Mobile(?:.+)Firefox\b/i,isAppleTabletOnIos13=function(a){return typeof a<"u"&&a.platform==="MacIntel"&&typeof a.maxTouchPoints=="number"&&a.maxTouchPoints>1&&typeof MSStream>"u"};function createMatch(a){return function(j){return j.test(a)}}function isMobile(a){var j={userAgent:"",platform:"",maxTouchPoints:0};!a&&typeof navigator<"u"?j={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof a=="string"?j.userAgent=a:a&&a.userAgent&&(j={userAgent:a.userAgent,platform:a.platform,maxTouchPoints:a.maxTouchPoints||0});var _e=j.userAgent,et=_e.split("[FBAN");typeof et[1]<"u"&&(_e=et[0]),et=_e.split("Twitter"),typeof et[1]<"u"&&(_e=et[0]);var nt=createMatch(_e),tt={apple:{phone:nt(appleIphone)&&!nt(windowsPhone),ipod:nt(appleIpod),tablet:!nt(appleIphone)&&(nt(appleTablet)||isAppleTabletOnIos13(j))&&!nt(windowsPhone),universal:nt(appleUniversal),device:(nt(appleIphone)||nt(appleIpod)||nt(appleTablet)||nt(appleUniversal)||isAppleTabletOnIos13(j))&&!nt(windowsPhone)},amazon:{phone:nt(amazonPhone),tablet:!nt(amazonPhone)&&nt(amazonTablet),device:nt(amazonPhone)||nt(amazonTablet)},android:{phone:!nt(windowsPhone)&&nt(amazonPhone)||!nt(windowsPhone)&&nt(androidPhone),tablet:!nt(windowsPhone)&&!nt(amazonPhone)&&!nt(androidPhone)&&(nt(amazonTablet)||nt(androidTablet)),device:!nt(windowsPhone)&&(nt(amazonPhone)||nt(amazonTablet)||nt(androidPhone)||nt(androidTablet))||nt(/\bokhttp\b/i)},windows:{phone:nt(windowsPhone),tablet:nt(windowsTablet),device:nt(windowsPhone)||nt(windowsTablet)},other:{blackberry:nt(otherBlackBerry),blackberry10:nt(otherBlackBerry10),opera:nt(otherOpera),firefox:nt(otherFirefox),chrome:nt(otherChrome),device:nt(otherBlackBerry)||nt(otherBlackBerry10)||nt(otherOpera)||nt(otherFirefox)||nt(otherChrome)},any:!1,phone:!1,tablet:!1};return tt.any=tt.apple.device||tt.android.device||tt.windows.device||tt.other.device,tt.phone=tt.apple.phone||tt.android.phone||tt.windows.phone,tt.tablet=tt.apple.tablet||tt.android.tablet||tt.windows.tablet,tt}const DID_WALLET_TAG="ABTWallet",ARC_SPHERE_TAG="ArcSphere";function getDIDWalletVersion(a){var nt;const _e=new RegExp(`${DID_WALLET_TAG}/(?<version>[0-9.]+)`,"g").exec(a);return(nt=_e==null?void 0:_e.groups)==null?void 0:nt.version}function useBrowser(){var _e;const a=(_e=window==null?void 0:window.navigator)==null?void 0:_e.userAgent,[j]=reactExports.useState({wallet:a.indexOf(DID_WALLET_TAG)>-1||a.indexOf(ARC_SPHERE_TAG)>-1,walletVersion:getDIDWalletVersion(a),wechat:/MicroMessenger/i.test(a),mobile:{apple:{phone:!1,ipod:!1,tablet:!1,device:!1},amazon:{phone:!1,tablet:!1,device:!1},android:{phone:!1,tablet:!1,device:!1},windows:{phone:!1,tablet:!1,device:!1},other:{blackberry:!1,blackberry10:!1,opera:!1,firefox:!1,chrome:!1,device:!1},phone:!1,tablet:!1,any:!1,...isMobile(a)}});return j}const extendedColors={did:{contained:{backgroundColor:colors$2.did.primary,color:colors$2.common.white},outlined:{borderColor:colors$2.did.primary,color:colors$2.did.primary}},reverse:{contained:{backgroundColor:"rgba(255, 255, 255, 0.9)",color:colors$2.grey[900]},outlined:{borderColor:colors$2.grey[900],color:colors$2.grey[900]}}};function wrap$1(a){function j(_e){const et=mergeProps(_e,j,["style"]),{children:nt,rounded:tt,loading:ot,disabled:ct,style:ft,forwardedRef:ht,color:dt,...yt}=et,Tt=ct||ot;let St=16;switch(yt.size){case"small":St=14;break;case"large":St=18;break}const At=extendedColors[dt]&&extendedColors[dt][yt.variant],Rt=Object.assign({},{boxShadow:"none",textTransform:"capitalize",...At},ft);let It=yt;return At||(It={...It,color:dt}),tt&&(Rt.borderRadius="100vw"),jsxRuntimeExports.jsxs(a,{style:Rt,ref:ht,disabled:Tt,...It,children:[ot&&jsxRuntimeExports.jsx(CircularProgress,{size:St,style:{marginRight:5}}),nt]})}return j.propTypes={children:PropTypes.any.isRequired,style:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),size:PropTypes.oneOf(["large","medium","small"]),forwardedRef:PropTypes.any,rounded:PropTypes.bool},j.defaultProps={rounded:!1,size:"medium",forwardedRef:null,style:{}},reactExports.forwardRef((_e,et)=>jsxRuntimeExports.jsx(j,{..._e,forwardedRef:et}))}const ButtonComponent=wrap$1(Button$1);function Dialog({children:a,title:j,prepend:_e,toolbar:et,actions:nt,showCloseButton:tt,actionsPosition:ot,PaperProps:ct,slotProps:ft,...ht}){const dt=useTheme$1(),yt=useMediaQuery(dt.breakpoints.down("md")),Tt=j||tt||et,St=(Rt,It)=>{const{onClose:Ct}=ht;Ct&&Ct(Rt,It)};ct.style=Object.assign({minWidth:300,minHeight:300},ct.style);const At=jsxRuntimeExports.jsx(IconButton,{className:"ux-dialog_closeButton",onClick:Rt=>St(Rt,"closeButton"),children:jsxRuntimeExports.jsx(default_1$7,{})});return jsxRuntimeExports.jsxs(StyledMuiDialog,{fullScreen:yt,onClose:St,PaperProps:ct,...ht,children:[Tt&&jsxRuntimeExports.jsxs(Header$1,{...ft.header,className:"ux-dialog_header",isMobile:yt,children:[jsxRuntimeExports.jsxs("div",{className:"ux-dialog_left",children:[tt&&yt&&At,_e&&jsxRuntimeExports.jsx("div",{className:"ux-dialog_prepend",children:_e}),j&&jsxRuntimeExports.jsx(Typography,{variant:"h6",className:"ux-dialog_title",children:j})]}),jsxRuntimeExports.jsxs("div",{className:"ux-dialog_right",children:[jsxRuntimeExports.jsx("div",{className:"ux-dialog_toolbar",children:et}),tt&&!yt&&At]})]}),jsxRuntimeExports.jsx(DialogContent,{...ft.content,children:a}),nt&&jsxRuntimeExports.jsx(DialogActions,{className:`ux-dialog_actions--${ot}`,children:nt})]})}Dialog.propTypes={children:PropTypes.node.isRequired,title:PropTypes.node,prepend:PropTypes.node,toolbar:PropTypes.node,actions:PropTypes.node,showCloseButton:PropTypes.bool,actionsPosition:PropTypes.oneOf(["left","center","right"]),PaperProps:PropTypes.object,slotProps:PropTypes.shape({content:PropTypes.object,header:PropTypes.object}),onClose:PropTypes.func};Dialog.defaultProps={title:"",prepend:null,toolbar:null,actions:null,showCloseButton:!0,actionsPosition:"right",PaperProps:{},slotProps:{},onClose:void 0};const StyledMuiDialog=styled(Dialog$1)`
|
|
262
262
|
.MuiDialog-paper {
|
|
263
263
|
${a=>a.fullScreen?"border-radius: 0;":""};
|
|
264
264
|
}
|
|
@@ -429,7 +429,7 @@ ${et.length}`,ot=Buffer$3.from(tt),ct=Buffer$3.concat([ot,nt]);return hash_1.def
|
|
|
429
429
|
`):" "+renderReason(tt[0]):"as no adapter specified";throw new AxiosError$1("There is no suitable adapter to dispatch the request "+ot,"ERR_NOT_SUPPORT")}return et},adapters:knownAdapters};function throwIfCancellationRequested(a){if(a.cancelToken&&a.cancelToken.throwIfRequested(),a.signal&&a.signal.aborted)throw new CanceledError$1(null,a)}function dispatchRequest(a){return throwIfCancellationRequested(a),a.headers=AxiosHeaders$1.from(a.headers),a.data=transformData.call(a,a.transformRequest),["post","put","patch"].indexOf(a.method)!==-1&&a.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(a.adapter||defaults$1.adapter)(a).then(function(et){return throwIfCancellationRequested(a),et.data=transformData.call(a,a.transformResponse,et),et.headers=AxiosHeaders$1.from(et.headers),et},function(et){return isCancel$1(et)||(throwIfCancellationRequested(a),et&&et.response&&(et.response.data=transformData.call(a,a.transformResponse,et.response),et.response.headers=AxiosHeaders$1.from(et.response.headers))),Promise.reject(et)})}const VERSION$1="1.7.7",validators$1={};["object","boolean","number","function","string","symbol"].forEach((a,j)=>{validators$1[a]=function(et){return typeof et===a||"a"+(j<1?"n ":" ")+a}});const deprecatedWarnings={};validators$1.transitional=function a(j,_e,et){function nt(tt,ot){return"[Axios v"+VERSION$1+"] Transitional option '"+tt+"'"+ot+(et?". "+et:"")}return(tt,ot,ct)=>{if(j===!1)throw new AxiosError$1(nt(ot," has been removed"+(_e?" in "+_e:"")),AxiosError$1.ERR_DEPRECATED);return _e&&!deprecatedWarnings[ot]&&(deprecatedWarnings[ot]=!0,console.warn(nt(ot," has been deprecated since v"+_e+" and will be removed in the near future"))),j?j(tt,ot,ct):!0}};function assertOptions(a,j,_e){if(typeof a!="object")throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const et=Object.keys(a);let nt=et.length;for(;nt-- >0;){const tt=et[nt],ot=j[tt];if(ot){const ct=a[tt],ft=ct===void 0||ot(ct,tt,a);if(ft!==!0)throw new AxiosError$1("option "+tt+" must be "+ft,AxiosError$1.ERR_BAD_OPTION_VALUE);continue}if(_e!==!0)throw new AxiosError$1("Unknown option "+tt,AxiosError$1.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;let Axios$1=class{constructor(j){this.defaults=j,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(j,_e){try{return await this._request(j,_e)}catch(et){if(et instanceof Error){let nt;Error.captureStackTrace?Error.captureStackTrace(nt={}):nt=new Error;const tt=nt.stack?nt.stack.replace(/^.+\n/,""):"";try{et.stack?tt&&!String(et.stack).endsWith(tt.replace(/^.+\n.+\n/,""))&&(et.stack+=`
|
|
430
430
|
`+tt):et.stack=tt}catch{}}throw et}}_request(j,_e){typeof j=="string"?(_e=_e||{},_e.url=j):_e=j||{},_e=mergeConfig$1(this.defaults,_e);const{transitional:et,paramsSerializer:nt,headers:tt}=_e;et!==void 0&&validator.assertOptions(et,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),nt!=null&&(utils$1.isFunction(nt)?_e.paramsSerializer={serialize:nt}:validator.assertOptions(nt,{encode:validators.function,serialize:validators.function},!0)),_e.method=(_e.method||this.defaults.method||"get").toLowerCase();let ot=tt&&utils$1.merge(tt.common,tt[_e.method]);tt&&utils$1.forEach(["delete","get","head","post","put","patch","common"],At=>{delete tt[At]}),_e.headers=AxiosHeaders$1.concat(ot,tt);const ct=[];let ft=!0;this.interceptors.request.forEach(function(Rt){typeof Rt.runWhen=="function"&&Rt.runWhen(_e)===!1||(ft=ft&&Rt.synchronous,ct.unshift(Rt.fulfilled,Rt.rejected))});const ht=[];this.interceptors.response.forEach(function(Rt){ht.push(Rt.fulfilled,Rt.rejected)});let dt,yt=0,Tt;if(!ft){const At=[dispatchRequest.bind(this),void 0];for(At.unshift.apply(At,ct),At.push.apply(At,ht),Tt=At.length,dt=Promise.resolve(_e);yt<Tt;)dt=dt.then(At[yt++],At[yt++]);return dt}Tt=ct.length;let St=_e;for(yt=0;yt<Tt;){const At=ct[yt++],Rt=ct[yt++];try{St=At(St)}catch(It){Rt.call(this,It);break}}try{dt=dispatchRequest.call(this,St)}catch(At){return Promise.reject(At)}for(yt=0,Tt=ht.length;yt<Tt;)dt=dt.then(ht[yt++],ht[yt++]);return dt}getUri(j){j=mergeConfig$1(this.defaults,j);const _e=buildFullPath(j.baseURL,j.url);return buildURL(_e,j.params,j.paramsSerializer)}};utils$1.forEach(["delete","get","head","options"],function a(j){Axios$1.prototype[j]=function(_e,et){return this.request(mergeConfig$1(et||{},{method:j,url:_e,data:(et||{}).data}))}});utils$1.forEach(["post","put","patch"],function a(j){function _e(et){return function(tt,ot,ct){return this.request(mergeConfig$1(ct||{},{method:j,headers:et?{"Content-Type":"multipart/form-data"}:{},url:tt,data:ot}))}}Axios$1.prototype[j]=_e(),Axios$1.prototype[j+"Form"]=_e(!0)});let CancelToken$1=class Eo{constructor(j){if(typeof j!="function")throw new TypeError("executor must be a function.");let _e;this.promise=new Promise(function(tt){_e=tt});const et=this;this.promise.then(nt=>{if(!et._listeners)return;let tt=et._listeners.length;for(;tt-- >0;)et._listeners[tt](nt);et._listeners=null}),this.promise.then=nt=>{let tt;const ot=new Promise(ct=>{et.subscribe(ct),tt=ct}).then(nt);return ot.cancel=function(){et.unsubscribe(tt)},ot},j(function(tt,ot,ct){et.reason||(et.reason=new CanceledError$1(tt,ot,ct),_e(et.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(j){if(this.reason){j(this.reason);return}this._listeners?this._listeners.push(j):this._listeners=[j]}unsubscribe(j){if(!this._listeners)return;const _e=this._listeners.indexOf(j);_e!==-1&&this._listeners.splice(_e,1)}toAbortSignal(){const j=new AbortController,_e=et=>{j.abort(et)};return this.subscribe(_e),j.signal.unsubscribe=()=>this.unsubscribe(_e),j.signal}static source(){let j;return{token:new Eo(function(nt){j=nt}),cancel:j}}};function spread$1(a){return function(_e){return a.apply(null,_e)}}function isAxiosError$1(a){return utils$1.isObject(a)&&a.isAxiosError===!0}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode$1).forEach(([a,j])=>{HttpStatusCode$1[j]=a});function createInstance(a){const j=new Axios$1(a),_e=bind(Axios$1.prototype.request,j);return utils$1.extend(_e,Axios$1.prototype,j,{allOwnKeys:!0}),utils$1.extend(_e,j,null,{allOwnKeys:!0}),_e.create=function(nt){return createInstance(mergeConfig$1(a,nt))},_e}const axios$4=createInstance(defaults$1);axios$4.Axios=Axios$1;axios$4.CanceledError=CanceledError$1;axios$4.CancelToken=CancelToken$1;axios$4.isCancel=isCancel$1;axios$4.VERSION=VERSION$1;axios$4.toFormData=toFormData$1;axios$4.AxiosError=AxiosError$1;axios$4.Cancel=axios$4.CanceledError;axios$4.all=function a(j){return Promise.all(j)};axios$4.spread=spread$1;axios$4.isAxiosError=isAxiosError$1;axios$4.mergeConfig=mergeConfig$1;axios$4.AxiosHeaders=AxiosHeaders$1;axios$4.formToJSON=a=>formDataToJSON(utils$1.isHTMLForm(a)?new FormData(a):a);axios$4.getAdapter=adapters.getAdapter;axios$4.HttpStatusCode=HttpStatusCode$1;axios$4.default=axios$4;const{Axios,AxiosError,CanceledError,isCancel,CancelToken,VERSION,all,Cancel,isAxiosError,spread,toFormData,AxiosHeaders,HttpStatusCode,formToJSON,getAdapter,mergeConfig}=axios$4,axios$3=Object.freeze(Object.defineProperty({__proto__:null,Axios,AxiosError,AxiosHeaders,Cancel,CancelToken,CanceledError,HttpStatusCode,VERSION,all,default:axios$4,formToJSON,getAdapter,isAxiosError,isCancel,mergeConfig,spread,toFormData},Symbol.toStringTag,{value:"Module"}));var __defProp$3=Object.defineProperty,__defNormalProp$3=(a,j,_e)=>j in a?__defProp$3(a,j,{enumerable:!0,configurable:!0,writable:!0,value:_e}):a[j]=_e,__publicField$3=(a,j,_e)=>(__defNormalProp$3(a,j+"",_e),_e);class AuthService{constructor({api:j}){__publicField$3(this,"api"),this.api=j}async getUserPublicInfo({did:j}){const{data:_e}=await this.api.get("/api/user",{params:{did:j}});return _e}async getUserPrivacyConfig({did:j}){const{data:_e}=await this.api.get("/api/user/privacy/config",{params:{did:j}});return _e}async saveUserPrivacyConfig(j){const{data:_e}=await this.api.post("/api/user/privacy/config",j);return _e}async getUserNotificationConfig(){const{data:j}=await this.api.get("/api/user/notification/config");return j}async saveUserNotificationConfig(j){const{data:_e}=await this.api.post("/api/user/notification/config",j);return _e}async testNotificationWebhook(j){const{data:_e}=await this.api.put("/api/user/notification/webhook",j);return _e}async getProfileUrl({did:j,locale:_e}){const et=`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/user`;return withQuery(et,{did:j,locale:_e})}async getProfile(){const{data:j}=await this.api.get("/api/user/profile");return j}async refreshProfile(){await this.api.put("/api/user/refreshProfile")}async saveProfile({locale:j,inviter:_e}){const{data:et}=await this.api.put("/api/user/profile",{locale:j,inviter:_e});return et}async updateDidSpace({spaceGateway:j}){await this.api.put("/api/user/updateDidSpace",{spaceGateway:j})}async logout({visitorId:j}){const{data:_e}=await this.api.post("/api/user/logout",{visitorId:j});return _e}}class TokenService{getSessionToken(){return api$4.get(constant$3.SESSION_TOKEN_STORAGE_KEY)}setSessionToken(j){api$4.set(constant$3.SESSION_TOKEN_STORAGE_KEY,j)}removeSessionToken(){api$4.remove(constant$3.SESSION_TOKEN_STORAGE_KEY)}getRefreshToken(){return localStorage.getItem(constant$3.REFRESH_TOKEN_STORAGE_KEY)}setRefreshToken(j){localStorage.setItem(constant$3.REFRESH_TOKEN_STORAGE_KEY,j)}removeRefreshToken(){localStorage.removeItem(constant$3.REFRESH_TOKEN_STORAGE_KEY)}}const blockletCache=new QuickLRU({maxSize:30,maxAge:60*1e3});class BlockletService{async getBlocklet(j,_e=!1){if(!j){if(typeof window>"u"||typeof document>"u")throw new Error("Cannot get blocklet in server side without baseUrl");return window.blocklet}if(!_e&&blockletCache.has(j))return blockletCache.get(j);const et=withQuery(joinURL(j,"__blocklet__.js"),{type:"json",t:Date.now()}),tt=await(await fetch(et)).json();return blockletCache.set(j,tt),tt}async loadBlocklet(){return new Promise((j,_e)=>{if(typeof window>"u"||typeof document>"u"){_e();return}const et=document.createElement("script");let nt="/";window.blocklet&&window.blocklet.prefix&&(nt=window.blocklet.prefix),et.src=withQuery(joinURL(nt,"__blocklet__.js"),{t:Date.now()}),et.onload=()=>{j()},et.onerror=()=>{_e()},document.head.append(et)})}getPrefix(j){var _e;return j?(j==null?void 0:j.prefix)||"/":typeof window>"u"||typeof document>"u"?null:((_e=window.blocklet)==null?void 0:_e.prefix)||"/"}}var __defProp$2=Object.defineProperty,__defNormalProp$2=(a,j,_e)=>j in a?__defProp$2(a,j,{enumerable:!0,configurable:!0,writable:!0,value:_e}):a[j]=_e,__publicField$2=(a,j,_e)=>(__defNormalProp$2(a,typeof j!="symbol"?j+"":j,_e),_e);class UserSessionService{constructor({api:j,blocklet:_e}){__publicField$2(this,"api"),__publicField$2(this,"blocklet"),this.api=j,this.blocklet=_e||new BlockletService}getBaseUrl(j){return j?joinURL(j,constant$3.WELLKNOWN_SERVICE_PATH_PREFIX):void 0}async getUserSessions({did:j,appUrl:_e}){const et=this.getBaseUrl(_e),nt=await this.blocklet.getBlocklet(),{data:tt}=await this.api.get("/api/user-session",{baseURL:et,params:{userDid:j,appPid:nt.appPid}});return tt}async loginByUserSession({appPid:j,userDid:_e,visitorId:et,passportId:nt,appUrl:tt}){const ot=this.getBaseUrl(tt),{data:ct}=await this.api.post("/api/user-session/login",{appPid:j,userDid:_e,visitorId:et,passportId:nt},{baseURL:ot});return ct}}var __defProp$1=Object.defineProperty,__defNormalProp$1=(a,j,_e)=>j in a?__defProp$1(a,j,{enumerable:!0,configurable:!0,writable:!0,value:_e}):a[j]=_e,__publicField$1=(a,j,_e)=>(__defNormalProp$1(a,j+"",_e),_e);class ComponentService{constructor({blocklet:j=window.blocklet}={}){__publicField$1(this,"blocklet"),this.blocklet=j}getComponent(j){var nt;return(((nt=this.blocklet)==null?void 0:nt.componentMountPoints)||[]).find(tt=>[tt.title,tt.name,tt.did].includes(j))}getComponentMountPoint(j){const _e=this.getComponent(j);return(_e==null?void 0:_e.mountPoint)||""}getUrl(j,..._e){var tt;const et=this.getComponentMountPoint(j),nt=((tt=this.blocklet)==null?void 0:tt.appUrl)||"";return joinURL(nt,et,..._e)}}const version$3="1.16.32",sleep$2=(a=0)=>new Promise(j=>{setTimeout(()=>{j()},a)}),getBearerToken=a=>`Bearer ${encodeURIComponent(a)}`,visitorIdKey="__visitor_id",getVisitorId$1=()=>localStorage.getItem(visitorIdKey);function getCSRFToken(){return api$4.get("x-csrf-token")}async function sleepForLoading(a,j=300){a.metaData.endTime=+new Date;const{startTime:_e,endTime:et}=a.metaData,nt=et-_e;nt<j&&await sleep$2(j-nt),delete a.metaData}const createAxios$1=(a,j)=>{const _e={...a==null?void 0:a.headers,"x-blocklet-js-sdk-version":version$3},et=new ComponentService,nt=getVisitorId$1();[void 0,null].includes(nt)||(_e["x-blocklet-visitor-id"]=nt);const tt=axios$4.create({...a,headers:_e});return j!=null&&j.lazy&&(tt.interceptors.request.use(ot=>(ot.metaData={startTime:+new Date},ot),ot=>Promise.reject(ot)),tt.interceptors.response.use(async ot=>(ot.config&&await sleepForLoading(ot.config,j==null?void 0:j.lazyTime),ot),async ot=>(ot.response&&await sleepForLoading(ot.response.config,j==null?void 0:j.lazyTime),Promise.reject(ot)))),tt.interceptors.request.use(ot=>{var ft,ht;const ct=(j==null?void 0:j.componentDid)??((ht=(ft=window.blocklet)==null?void 0:ft.componentId)==null?void 0:ht.split("/").pop());return ot.baseURL=ot.baseURL||et.getComponentMountPoint(ct),ot.timeout=ot.timeout||20*1e3,ot.headers["x-csrf-token"]=getCSRFToken(),ot},ot=>Promise.reject(ot)),tt};async function renewRefreshToken$1(a){if(!a)throw new Error("Refresh token not found");const j=createAxios$1({baseURL:constant$3.WELLKNOWN_SERVICE_PATH_PREFIX,timeout:10*1e3,headers:{authorization:getBearerToken(a)}}),{data:_e}=await j.post("/api/did/refreshSession");return _e}function createRequest$1({getSessionToken:a,setSessionToken:j,removeSessionToken:_e,getRefreshToken:et,setRefreshToken:nt,removeRefreshToken:tt,onRefreshTokenError:ot,onRefreshTokenSuccess:ct},ft,ht){let dt=null;const yt=createAxios$1({timeout:30*1e3,...ft},ht);return yt.interceptors.request.use(async Tt=>{if(!api$4.get(constant$3.SESSION_TOKEN_STORAGE_KEY)){const St=a();St&&(Tt.headers.authorization=getBearerToken(St))}return dt&&await dt,Tt},Tt=>Promise.reject(Tt)),yt.interceptors.response.use(Tt=>Tt,async Tt=>{var At;const St=Tt.config;if(St&&(St.headers=St!=null&&St.headers?{...St.headers}:{},((At=Tt==null?void 0:Tt.response)==null?void 0:At.status)===401&&!St._retry)){St._retry=!0;try{dt||(dt=renewRefreshToken$1(et()));const Rt=await dt;return j(Rt.nextToken),nt(Rt.nextRefreshToken),typeof ct=="function"&&ct(Rt),yt(St)}catch(Rt){return _e(),tt(),typeof ot=="function"&&ot(Rt),Promise.reject(Tt)}finally{dt=null}}return Promise.reject(Tt)}),yt}var __defProp$4=Object.defineProperty,__defNormalProp=(a,j,_e)=>j in a?__defProp$4(a,j,{enumerable:!0,configurable:!0,writable:!0,value:_e}):a[j]=_e,__publicField=(a,j,_e)=>(__defNormalProp(a,typeof j!="symbol"?j+"":j,_e),_e);class BlockletSDK{constructor(){__publicField(this,"api"),__publicField(this,"user"),__publicField(this,"userSession"),__publicField(this,"token"),__publicField(this,"blocklet");const j=new TokenService,_e=createRequest$1({getSessionToken:j.getSessionToken,setSessionToken:j.setSessionToken,removeSessionToken:j.removeSessionToken,getRefreshToken:j.getRefreshToken,setRefreshToken:j.setRefreshToken,removeRefreshToken:j.removeRefreshToken,onRefreshTokenError:()=>{console.error("Failed to refresh token")},onRefreshTokenSuccess:()=>{}},{baseURL:constant$3.WELLKNOWN_SERVICE_PATH_PREFIX});this.user=new AuthService({api:_e});const et=new BlockletService;this.userSession=new UserSessionService({api:_e,blocklet:et}),this.token=j,this.api=_e,this.blocklet=et}}function createAxios$2(a={},j={}){const _e=new TokenService;return createRequest$1({getSessionToken:_e.getSessionToken,setSessionToken:_e.setSessionToken,removeSessionToken:_e.removeSessionToken,getRefreshToken:_e.getRefreshToken,setRefreshToken:_e.setRefreshToken,removeRefreshToken:_e.removeRefreshToken,onRefreshTokenError:()=>{console.error("Failed to refresh token")},onRefreshTokenSuccess:()=>{}},a,j)}var lib$3={},dsbridge={};Object.defineProperty(dsbridge,"__esModule",{value:!0});dsbridge.default=void 0;var bridge={call:function a(j,_e,et){var nt="";typeof _e=="function"&&(et=_e,_e={});var tt={data:_e===void 0?null:_e};if(typeof et=="function"){var ot="dscb"+window.dscb++;window[ot]=et,tt._dscbstub=ot}return tt=JSON.stringify(tt),window._dsbridge?nt=_dsbridge.call(j,tt):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(nt=prompt("_dsbridge="+j,tt)),JSON.parse(nt||"{}").data},register:function a(j,_e,et){var nt=et?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){bridge.call("_dsb.dsinit")},0)),typeof _e=="object"?nt._obs[j]=_e:nt[j]=_e},registerAsyn:function a(j,_e){this.register(j,_e,!0)},hasNativeMethod:function a(j,_e){return this.call("_dsb.hasNativeMethod",{name:j,type:_e||"all"})},disableJavascriptDialogBlock:function a(j){this.call("_dsb.disableJavascriptDialogBlock",{disable:j!==!1})},canUseBridge(){return!!(window._dsbridge||window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)}};(function(){if(!bridge.canUseBridge()||window._dsf)return;const a=window.close;var j={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:bridge,close:function(){bridge.call("_dsb.closePage"),a()},_handleMessageFromNative:function(nt){var tt=JSON.parse(nt.data),ot={id:nt.callbackId,complete:!0},ct=this._dsf[nt.method],ft=this._dsaf[nt.method],ht=function(kt,Pt){ot.data=kt.apply(Pt,tt),bridge.call("_dsb.returnValue",ot)},dt=function(kt,Pt){tt.push(function(Bt,Kt){ot.data=Bt,ot.complete=Kt!==!1,bridge.call("_dsb.returnValue",ot)}),kt.apply(Pt,tt)};if(ct)ht(ct,this._dsf);else if(ft)dt(ft,this._dsaf);else{var yt=nt.method.split(".");if(yt.length<2)return;var Tt=yt.pop(),St=yt.join("."),At=this._dsf._obs,Rt=At[St]||{},It=Rt[Tt];if(It&&typeof It=="function"){ht(It,Rt);return}if(At=this._dsaf._obs,Rt=At[St]||{},It=Rt[Tt],It&&typeof It=="function"){dt(It,Rt);return}}}};for(var _e in j)window[_e]=j[_e];bridge.register("_hasJavascriptMethod",function(et,nt){var tt=et.split(".");if(tt.length<2)return!!(_dsf[tt]||_dsaf[tt]);var et=tt.pop(),ot=tt.join("."),ct=_dsf._obs[ot]||_dsaf._obs[ot];return ct&&!!ct[et]})})();dsbridge.default=bridge;Object.defineProperty(lib$3,"__esModule",{value:!0});var default_1$4=lib$3.default=void 0,_dsbridge$1=_interopRequireDefault$4(dsbridge);function _interopRequireDefault$4(a){return a&&a.__esModule?a:{default:a}}default_1$4=lib$3.default={register(){_dsbridge$1.default.canUseBridge()?_dsbridge$1.default.register(...arguments):console.warn("dsbridge is not available")},registerAsyn(){_dsbridge$1.default.canUseBridge()?_dsbridge$1.default.registerAsyn(...arguments):console.warn("dsbridge is not available")},call(){_dsbridge$1.default.call(...arguments)},asyncCall(){for(var a=arguments.length,j=new Array(a),_e=0;_e<a;_e++)j[_e]=arguments[_e];return new Promise((et,nt)=>{_dsbridge$1.default.call(...j,tt=>{try{const ot=JSON.parse(tt);if(ot.code===0){const ct=JSON.parse(ot.data);et(ct)}else nt(new Error(ot.error))}catch{et(tt)}})})},shareMessage(a){const{content:j,imgUrl:_e,success:et,fail:nt}=a;if(!j&&!_e){nt("params error");return}_dsbridge$1.default.call("arcShare",JSON.stringify({content:j,imgUrl:_e}),tt=>{const ot=JSON.parse(tt);ot&&ot.code===0?typeof et=="function"&&et(tt):typeof nt=="function"&&nt(tt)})},showLoading(){_dsbridge$1.default.call("arcShowLoading")},hideLoading(){_dsbridge$1.default.call("arcHideLoading")},showToast(a){a&&typeof a=="string"&&_dsbridge$1.default.call("arcToast",a)},chooseImgs(a){const{limit:j,success:_e,fail:et}=a;_dsbridge$1.default.call("arcChooseImgs",JSON.stringify({limit:j}),nt=>{const tt=JSON.parse(nt);tt&&tt.code===0?typeof _e=="function"&&_e(nt):typeof et=="function"&&et(nt)})},previewImgs(a){const{imgs:j}=a;!j||j.length===0||_dsbridge$1.default.call("arcPreviewImgs",JSON.stringify(a))},isSetPWD(a){const{success:j,fail:_e}=a;_dsbridge$1.default.call("arcIsSetPWD","",et=>{const nt=JSON.parse(et);nt&&nt.code===0?typeof j=="function"&&j(et):typeof _e=="function"&&_e(et)})},isCodeABOk(a){const{success:j,fail:_e}=a;_dsbridge$1.default.call("arcIsCodeABOk","",et=>{const nt=JSON.parse(et);nt&&nt.code===0?typeof j=="function"&&j(et):typeof _e=="function"&&_e(et)})}};class CookieStorageEngine{constructor(j,_e){this.storageKey=j,this.options=_e||{}}setToken(j){return Cookie.set(this.storageKey,j,{...getCookieOptions(this.options)})}getToken(){return Cookie.get(this.storageKey)}removeToken(){return Cookie.remove(this.storageKey,getCookieOptions(this.options))}}function e(a){this.message=a}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(a){var j=String(a).replace(/=+$/,"");if(j.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var _e,et,nt=0,tt=0,ot="";et=j.charAt(tt++);~et&&(_e=nt%4?64*_e+et:et,nt++%4)?ot+=String.fromCharCode(255&_e>>(-2*nt&6)):0)et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(et);return ot};function t$2(a){var j=a.replace(/-/g,"+").replace(/_/g,"/");switch(j.length%4){case 0:break;case 2:j+="==";break;case 3:j+="=";break;default:throw"Illegal base64url string!"}try{return function(_e){return decodeURIComponent(r(_e).replace(/(.)/g,function(et,nt){var tt=nt.charCodeAt(0).toString(16).toUpperCase();return tt.length<2&&(tt="0"+tt),"%"+tt}))}(j)}catch{return r(j)}}function n(a){this.message=a}function o(a,j){if(typeof a!="string")throw new n("Invalid token specified");var _e=(j=j||{}).header===!0?0:1;try{return JSON.parse(t$2(a.split(".")[_e]))}catch(et){throw new n("Invalid token specified: "+et.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";class LocalStorageEngine{constructor(j){this.storageKey=j}setToken(j){if(!(typeof window>"u"||typeof window.localStorage>"u"))return localStorage.setItem(this.storageKey,j)}getToken(){if(typeof window>"u"||typeof window.localStorage>"u")return;const j=localStorage.getItem(this.storageKey);let _e,et;try{if({value:_e,exp:et}=JSON.parse(j),et===void 0||_e===void 0)return j}catch{_e=j}try{et=o(_e).exp}catch{return}if(!(new Date().getTime()>et*1e3))return _e}removeToken(){if(!(typeof window>"u"||typeof window.localStorage>"u"))return localStorage.removeItem(this.storageKey)}}function createStorage(a="did.auth.token",j="ls",_e={}){if(!a)throw new Error("storageKey must be specified to create a storage");let et=null;if(j==="ls")et=new LocalStorageEngine(a);else if(j==="cookie")et=new CookieStorageEngine(a,_e);else throw new Error("storageEngine must be ls or cookie");return{getToken:et.getToken.bind(et),setToken:et.setToken.bind(et),removeToken:et.removeToken.bind(et),engine:j,key:a}}const overheadLength=tweetnacl.box.publicKeyLength+tweetnacl.box.overheadLength,ERROR_MSG_INPUT="Input must be an string, Buffer or Uint8Array";function normalizeInput(a){let j;if(a instanceof Uint8Array)j=a;else if(typeof a=="string")j=new TextEncoder().encode(a);else throw new Error(ERROR_MSG_INPUT);return j}function toHex(a){return Array.prototype.map.call(a,function(j){return(j<16?"0":"")+j.toString(16)}).join("")}function uint32ToHex(a){return(4294967296+a).toString(16).substring(1)}function debugPrint(a,j,_e){let et=`
|
|
431
431
|
`+a+" = ";for(let nt=0;nt<j.length;nt+=2){if(_e===32)et+=uint32ToHex(j[nt]).toUpperCase(),et+=" ",et+=uint32ToHex(j[nt+1]).toUpperCase();else if(_e===64)et+=uint32ToHex(j[nt+1]).toUpperCase(),et+=uint32ToHex(j[nt]).toUpperCase();else throw new Error("Invalid size "+_e);nt%6===4?et+=`
|
|
432
|
-
`+new Array(a.length+4).join(" "):nt<j.length-2&&(et+=" ")}console.log(et)}function testSpeed(a,j,_e){let et=new Date().getTime();const nt=new Uint8Array(j);for(let ot=0;ot<j;ot++)nt[ot]=ot%256;const tt=new Date().getTime();console.log("Generated random input in "+(tt-et)+"ms"),et=tt;for(let ot=0;ot<_e;ot++){const ct=a(nt),ft=new Date().getTime(),ht=ft-et;et=ft,console.log("Hashed in "+ht+"ms: "+ct.substring(0,20)+"..."),console.log(Math.round(j/(1<<20)/(ht/1e3)*100)/100+" MB PER SECOND")}}var util$6={normalizeInput,toHex,debugPrint,testSpeed};const util$5=util$6;function ADD64AA(a,j,_e){const et=a[j]+a[_e];let nt=a[j+1]+a[_e+1];et>=4294967296&&nt++,a[j]=et,a[j+1]=nt}function ADD64AC(a,j,_e,et){let nt=a[j]+_e;_e<0&&(nt+=4294967296);let tt=a[j+1]+et;nt>=4294967296&&tt++,a[j]=nt,a[j+1]=tt}function B2B_GET32(a,j){return a[j]^a[j+1]<<8^a[j+2]<<16^a[j+3]<<24}function B2B_G(a,j,_e,et,nt,tt){const ot=m$1[nt],ct=m$1[nt+1],ft=m$1[tt],ht=m$1[tt+1];ADD64AA(v,a,j),ADD64AC(v,a,ot,ct);let dt=v[et]^v[a],yt=v[et+1]^v[a+1];v[et]=yt,v[et+1]=dt,ADD64AA(v,_e,et),dt=v[j]^v[_e],yt=v[j+1]^v[_e+1],v[j]=dt>>>24^yt<<8,v[j+1]=yt>>>24^dt<<8,ADD64AA(v,a,j),ADD64AC(v,a,ft,ht),dt=v[et]^v[a],yt=v[et+1]^v[a+1],v[et]=dt>>>16^yt<<16,v[et+1]=yt>>>16^dt<<16,ADD64AA(v,_e,et),dt=v[j]^v[_e],yt=v[j+1]^v[_e+1],v[j]=yt>>>31^dt<<1,v[j+1]=dt>>>31^yt<<1}const BLAKE2B_IV32=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),SIGMA8=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],SIGMA82=new Uint8Array(SIGMA8.map(function(a){return a*2})),v=new Uint32Array(32),m$1=new Uint32Array(32);function blake2bCompress(a,j){let _e=0;for(_e=0;_e<16;_e++)v[_e]=a.h[_e],v[_e+16]=BLAKE2B_IV32[_e];for(v[24]=v[24]^a.t,v[25]=v[25]^a.t/4294967296,j&&(v[28]=~v[28],v[29]=~v[29]),_e=0;_e<32;_e++)m$1[_e]=B2B_GET32(a.b,4*_e);for(_e=0;_e<12;_e++)B2B_G(0,8,16,24,SIGMA82[_e*16+0],SIGMA82[_e*16+1]),B2B_G(2,10,18,26,SIGMA82[_e*16+2],SIGMA82[_e*16+3]),B2B_G(4,12,20,28,SIGMA82[_e*16+4],SIGMA82[_e*16+5]),B2B_G(6,14,22,30,SIGMA82[_e*16+6],SIGMA82[_e*16+7]),B2B_G(0,10,20,30,SIGMA82[_e*16+8],SIGMA82[_e*16+9]),B2B_G(2,12,22,24,SIGMA82[_e*16+10],SIGMA82[_e*16+11]),B2B_G(4,14,16,26,SIGMA82[_e*16+12],SIGMA82[_e*16+13]),B2B_G(6,8,18,28,SIGMA82[_e*16+14],SIGMA82[_e*16+15]);for(_e=0;_e<16;_e++)a.h[_e]=a.h[_e]^v[_e]^v[_e+16]}const parameterBlock=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function blake2bInit(a,j,_e,et){if(a===0||a>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(j&&j.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(_e&&_e.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(et&&et.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const nt={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:a};parameterBlock.fill(0),parameterBlock[0]=a,j&&(parameterBlock[1]=j.length),parameterBlock[2]=1,parameterBlock[3]=1,_e&¶meterBlock.set(_e,32),et&¶meterBlock.set(et,48);for(let tt=0;tt<16;tt++)nt.h[tt]=BLAKE2B_IV32[tt]^B2B_GET32(parameterBlock,tt*4);return j&&(blake2bUpdate(nt,j),nt.c=128),nt}function blake2bUpdate(a,j){for(let _e=0;_e<j.length;_e++)a.c===128&&(a.t+=a.c,blake2bCompress(a,!1),a.c=0),a.b[a.c++]=j[_e]}function blake2bFinal(a){for(a.t+=a.c;a.c<128;)a.b[a.c++]=0;blake2bCompress(a,!0);const j=new Uint8Array(a.outlen);for(let _e=0;_e<a.outlen;_e++)j[_e]=a.h[_e>>2]>>8*(_e&3);return j}function blake2b(a,j,_e,et,nt){_e=_e||64,a=util$5.normalizeInput(a),et&&(et=util$5.normalizeInput(et)),nt&&(nt=util$5.normalizeInput(nt));const tt=blake2bInit(_e,j,et,nt);return blake2bUpdate(tt,a),blake2bFinal(tt)}function blake2bHex(a,j,_e,et,nt){const tt=blake2b(a,j,_e,et,nt);return util$5.toHex(tt)}var blake2b_1={blake2b,blake2bHex,blake2bInit,blake2bUpdate,blake2bFinal};const blake=getDefaultExportFromCjs$1(blake2b_1);function nonce(a,j){var _e=blake.blake2bInit(tweetnacl.box.nonceLength,null);return blake.blake2bUpdate(_e,a),blake.blake2bUpdate(_e,j),blake.blake2bFinal(_e)}function zero(a){for(var j=0;j<a.length;j++)a[j]=0}function seal(a,j){var _e=new Uint8Array(overheadLength+a.length),et=tweetnacl.box.keyPair();_e.set(et.publicKey);var nt=nonce(et.publicKey,j),tt=tweetnacl.box(a,nt,j,et.secretKey);return _e.set(tt,et.publicKey.length),zero(et.secretKey),_e}function open(a,j,_e){var et=a.subarray(0,tweetnacl.box.publicKeyLength),nt=nonce(et,j),tt=a.subarray(tweetnacl.box.publicKeyLength);return tweetnacl.box.open(tt,nt,et,_e)}const SealedBox={seal,open};function isNil(a){return a==null}var isNil_1=isNil;const isNil$1=getDefaultExportFromCjs$1(isNil_1),name="@arcblock/did-connect",version$2="2.10.57",description="Client side library to work with DID Connect by ArcBlock.",keywords=["react","arcblock","component"],author="wangshijun<wangshijun2010@gmail.com>",homepage="https://github.com/ArcBlock/ux#readme",license="Apache-2.0",main$1="lib/index.js",module$1="lib/index.js",repository={type:"git",url:"git+https://github.com/ArcBlock/ux.git"},scripts={lint:"eslint src tests --ext js --ext jsx","lint:fix":"npm run lint -- --fix",build:"babel --config-file ./babel.config.es.js src --out-dir lib --copy-files --no-copy-ignored",autoexports:"node tools/auto-exports.js",watch:"babel --config-file ./babel.config.es.js src --out-dir lib -w --copy-files --no-copy-ignored",precommit:"CI=1 npm run lint",prepush:"CI=1 npm run lint",prepublish:"npm run build",test:"node tools/jest.js",coverage:"npm run test -- --coverage"},bugs={url:"https://github.com/ArcBlock/ux/issues"},dependencies={"@arcblock/bridge":"^2.10.57","@arcblock/icons":"^2.10.57","@arcblock/react-hooks":"^2.10.57","@arcblock/ws":"^1.18.137","@fontsource/inter":"^5.0.16","@iconify-icons/logos":"^1.2.36","@iconify-icons/material-symbols":"^1.2.58","@iconify/react":"^4.1.1",ahooks:"^3.7.10",axios:"^1.7.5",buffer:"^6.0.3","core-js":"^3.25.5",eventemitter3:"^5.0.1","js-cookie":"^2.2.1","jwt-decode":"^3.1.2",lodash:"^4.17.21","mdi-material-ui":"^7.5.0","p-queue":"^6.6.2","p-wait-for":"^5.0.2","path-to-regexp":"^1.8.0",semver:"^7.6.3",tweetnacl:"^1.0.3","tweetnacl-sealedbox-js":"^1.2.0",ufo:"^1.5.3"},peerDependencies={"@arcblock/ux":"^2.9.79","@blocklet/js-sdk":"^1.16.30","@emotion/react":"^11.10.4","@emotion/styled":"^11.10.4","@mui/material":"^5.15.0",react:"^18.2.0","react-dom":"^18.2.0"},publishConfig={access:"public"},devDependencies={"@babel/cli":"^7.19.3","@babel/core":"^7.19.3","@babel/preset-env":"^7.19.3","@babel/preset-react":"^7.18.6","eslint-plugin-react-hooks":"^4.6.0",glob:"^10.3.3",jest:"^29.7.0"},gitHead="cd0308705e9e6f81cabc9cf41e5d63b324f63be7",pkg={name,version:version$2,description,keywords,author,homepage,license,main:main$1,module:module$1,repository,scripts,bugs,dependencies,peerDependencies,publishConfig,devDependencies,gitHead},DEFAULT_TIMEOUT$1=5*60,DEFAULT_WINDOW_TIMEOUT=30*60,AUTH_SERVICE_PREFIX="/.well-known/service",SESSION_TOKEN_STORAGE_KEY="login_token",REFRESH_TOKEN_STORAGE_KEY="refresh_token",RELAY_SOCKET_PREFIX="/.well-known/service",API_DID_PREFIX="/api/did",DEFAULT_NAME="DID Connect",DID_CONNECT_URL_PARAMS_NAME="__did-connect__";class NotOpenError extends Error{constructor(){super("Failed to open popup")}}const providerName="wallet_url",getWebWalletUrl$1=()=>{var a,j;return window.localStorage.getItem(providerName)||((a=window.env)==null?void 0:a.webWalletUrl)||((j=window.blocklet)==null?void 0:j.webWalletUrl)||"https://web.abtwallet.io/"},checkSameProtocol=a=>{const{protocol:j}=window.location;let _e="";try{_e=new URL(a).protocol}catch{_e=""}return j===_e},{version:version$1}=pkg;function unescape$1(a){return(a+"===".slice((a.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function escape$1(a){return a.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const decodeConnectUrl=a=>window.atob(unescape$1(a)),parseTokenFromConnectUrl=a=>{const j=new URL(a),_e=decodeURIComponent(j.searchParams.get("url"));return new URL(_e).searchParams.get("_t_")},getAppId$1=(a,j)=>{var et,nt,tt;let _e=j==null?void 0:j.publisher;if(!_e){if(a!=null&&a.agentDid)return a.agentDid;_e=a==null?void 0:a.publisher}return _e?_e.replace("did:abt:",""):((et=globalThis.blocklet)==null?void 0:et.appPid)||((nt=globalThis.blocklet)==null?void 0:nt.appId)||((tt=globalThis.env)==null?void 0:tt.appId)||""},getConnectedInfo=a=>{var _e;const j={connected_did:a.did||"",connected_pk:a.pk||"",connected_app:getAppId$1(a.appInfo,a.memberAppInfo)};return(_e=a==null?void 0:a.connectedWallet)!=null&&_e.os&&(j.connected_wallet_os=a.connectedWallet.os),j},updateConnectedInfo=(a,j=!1)=>{if(!a)return;j||(a=getConnectedInfo(a));const _e=getCookieOptions({expireInDays:7,returnDomain:!1});isNil$1(a.connected_did)||Cookie.set("connected_did",a.connected_did,_e),isNil$1(a.connected_pk)||Cookie.set("connected_pk",a.connected_pk,_e),isNil$1(a.connected_app)||Cookie.set("connected_app",a.connected_app,_e),a.connected_wallet_os&&Cookie.set("connected_wallet_os",a.connected_wallet_os,_e)},encodeKey=a=>escape$1(Buffer$1$1.from(a).toString("base64")),decodeKey=a=>Uint8Array.from(Buffer$1$1.from(unescape$1(a),"base64")),decrypt$1=(a,j,_e)=>{const et=SealedBox.open(Uint8Array.from(Buffer$1$1.from(a,"base64")),decodeKey(j),decodeKey(_e));return JSON.parse(Buffer$1$1.from(et).toString("utf8"))},encrypt=(a,j)=>Buffer$1$1.from(SealedBox.seal(Uint8Array.from(Buffer$1$1.from(a)),decodeKey(j))).toString("base64"),parseNextWorkflow=(a,j="_t_")=>{const _e=new URL(a),et={baseUrl:_e.origin,prefix:_e.pathname.replace(/\/auth$/,""),token:_e.searchParams.get(j)||""};if(!et.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!et.token)throw new Error("Invalid next workflow: token not found");return et},getApiErrorMessage=(a,j)=>{var et;let _e=a.message;return a.response&&(_e=((et=a.response)==null?void 0:et.data)||j),_e},createAxios=(a={},{lazy:j=!1,lazyTime:_e=300}={})=>createAxios$2({...a,headers:{...a.headers,"x-did-connect-version":version$1}},{lazy:j,lazyTime:_e}),sleep$1=(a=0)=>new Promise(j=>{setTimeout(()=>{j()},a)});function getBrowserLang(){if(typeof window>"u")return null;const a=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[a]||"en"}async function decodeUrlParams(){const a=window.location.href;try{const j=new URL(a),_e=j.searchParams.get(DID_CONNECT_URL_PARAMS_NAME);if(_e){j.searchParams.delete(DID_CONNECT_URL_PARAMS_NAME);const et=JSON.parse(Buffer$1$1.from(_e,"base64").toString("utf-8"));if(isString$2(et.forceConnected)&&isUndefined$2(et.sourceAppPid)){const tt=await new BlockletSDK().user.getUserPublicInfo({did:et.forceConnected});isUndefined$2(tt==null?void 0:tt.sourceAppPid)||(et.sourceAppPid=tt.sourceAppPid)}return{params:et,url:j.href}}}catch{console.warn("Failed to decode did-connect url params")}return{params:null,url:a}}const openPopup=(a,{width:j=600,height:_e=700,name:et="did-connect:popup"}={})=>{const nt=window.screenX+(window.innerWidth-j)/2,tt=window.screenY+(window.innerHeight-_e)/2,ot=[`left=${nt}`,`top=${tt}`,`width=${j}`,`height=${_e}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],ct=window.open("",et,ot.join(","));if(ct===null)throw new NotOpenError;return ct.location.href=a,ct},runPopup=a=>new Promise((j,_e)=>{let et,nt;const tt=({data:ot})=>{if(ot&&ot.type==="authorization_response"){if(ot!=null&&ot.error){console.error(ot.error);return}setTimeout(()=>{var ct;(ct=a.popup)==null||ct.close(),clearTimeout(nt),clearInterval(et),window.removeEventListener("message",tt,!1),j(ot)},a.closeTimeout||0)}};nt=setTimeout(()=>{clearInterval(et),_e(new Error("Timeout")),window.removeEventListener("message",tt,!1)},(a.timeoutInSeconds||DEFAULT_WINDOW_TIMEOUT)*1e3),et=setInterval(()=>{var ot;(ot=a.popup)!=null&&ot.closed&&(clearInterval(et),clearTimeout(nt),window.removeEventListener("message",tt,!1),_e(new Error("Popup closed")))},1e3),window.addEventListener("message",tt)});function WindowFocusAware({callback:a}){return reactExports.useEffect(()=>(window.addEventListener("focus",a),()=>{window.removeEventListener("focus",a)}),[]),null}WindowFocusAware.propTypes={callback:PropTypes.func.isRequired};function CardSelector({list:a,width:j,height:_e,cardSpace:et,onSelect:nt,defaultIndex:tt}){const[ot,ct]=reactExports.useState(0),[ft,ht]=reactExports.useState(0),dt=reactExports.useRef(null),yt=Rt=>{if(Rt<0||Rt>a.length-1)return;ct(Rt);const It=dt.current.clientWidth;ht(Rt*(j+et)-(It-j)/2+et*.5),nt(Rt)};reactExports.useEffect(()=>{yt(tt);const Rt=It=>It.preventDefault();dt.current.addEventListener("touchmove",Rt,{passive:!1})},[]);let Tt;const St=Rt=>{Tt=Rt.touches[0].clientX},At=Rt=>{const It=Rt.changedTouches[0],Ct=Tt-It.clientX;Math.abs(Ct)>60&&(Ct>0?yt(ot+1):yt(ot-1))};return jsxRuntimeExports.jsx(Contianer,{ref:dt,onTouchStart:St,onTouchEnd:At,children:jsxRuntimeExports.jsx("div",{className:"card-container",style:{transform:`translate(${-ft}px, 0)`},children:a.map((Rt,It)=>Rt instanceof Function?jsxRuntimeExports.jsx("div",{className:`card-item ${It===ot?"selected":""}`,style:{width:j,height:_e,margin:et/2},onClick:()=>yt(It),children:Rt(It)},It):jsxRuntimeExports.jsx("div",{className:`card-item ${It===ot?"selected":""}`,style:{width:j,height:_e,margin:et/2},onClick:()=>yt(It),children:jsxRuntimeExports.jsx("img",{src:Rt.src,alt:Rt.name})},It))})})}const Contianer=newStyled.div`
|
|
432
|
+
`+new Array(a.length+4).join(" "):nt<j.length-2&&(et+=" ")}console.log(et)}function testSpeed(a,j,_e){let et=new Date().getTime();const nt=new Uint8Array(j);for(let ot=0;ot<j;ot++)nt[ot]=ot%256;const tt=new Date().getTime();console.log("Generated random input in "+(tt-et)+"ms"),et=tt;for(let ot=0;ot<_e;ot++){const ct=a(nt),ft=new Date().getTime(),ht=ft-et;et=ft,console.log("Hashed in "+ht+"ms: "+ct.substring(0,20)+"..."),console.log(Math.round(j/(1<<20)/(ht/1e3)*100)/100+" MB PER SECOND")}}var util$6={normalizeInput,toHex,debugPrint,testSpeed};const util$5=util$6;function ADD64AA(a,j,_e){const et=a[j]+a[_e];let nt=a[j+1]+a[_e+1];et>=4294967296&&nt++,a[j]=et,a[j+1]=nt}function ADD64AC(a,j,_e,et){let nt=a[j]+_e;_e<0&&(nt+=4294967296);let tt=a[j+1]+et;nt>=4294967296&&tt++,a[j]=nt,a[j+1]=tt}function B2B_GET32(a,j){return a[j]^a[j+1]<<8^a[j+2]<<16^a[j+3]<<24}function B2B_G(a,j,_e,et,nt,tt){const ot=m$1[nt],ct=m$1[nt+1],ft=m$1[tt],ht=m$1[tt+1];ADD64AA(v,a,j),ADD64AC(v,a,ot,ct);let dt=v[et]^v[a],yt=v[et+1]^v[a+1];v[et]=yt,v[et+1]=dt,ADD64AA(v,_e,et),dt=v[j]^v[_e],yt=v[j+1]^v[_e+1],v[j]=dt>>>24^yt<<8,v[j+1]=yt>>>24^dt<<8,ADD64AA(v,a,j),ADD64AC(v,a,ft,ht),dt=v[et]^v[a],yt=v[et+1]^v[a+1],v[et]=dt>>>16^yt<<16,v[et+1]=yt>>>16^dt<<16,ADD64AA(v,_e,et),dt=v[j]^v[_e],yt=v[j+1]^v[_e+1],v[j]=yt>>>31^dt<<1,v[j+1]=dt>>>31^yt<<1}const BLAKE2B_IV32=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),SIGMA8=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],SIGMA82=new Uint8Array(SIGMA8.map(function(a){return a*2})),v=new Uint32Array(32),m$1=new Uint32Array(32);function blake2bCompress(a,j){let _e=0;for(_e=0;_e<16;_e++)v[_e]=a.h[_e],v[_e+16]=BLAKE2B_IV32[_e];for(v[24]=v[24]^a.t,v[25]=v[25]^a.t/4294967296,j&&(v[28]=~v[28],v[29]=~v[29]),_e=0;_e<32;_e++)m$1[_e]=B2B_GET32(a.b,4*_e);for(_e=0;_e<12;_e++)B2B_G(0,8,16,24,SIGMA82[_e*16+0],SIGMA82[_e*16+1]),B2B_G(2,10,18,26,SIGMA82[_e*16+2],SIGMA82[_e*16+3]),B2B_G(4,12,20,28,SIGMA82[_e*16+4],SIGMA82[_e*16+5]),B2B_G(6,14,22,30,SIGMA82[_e*16+6],SIGMA82[_e*16+7]),B2B_G(0,10,20,30,SIGMA82[_e*16+8],SIGMA82[_e*16+9]),B2B_G(2,12,22,24,SIGMA82[_e*16+10],SIGMA82[_e*16+11]),B2B_G(4,14,16,26,SIGMA82[_e*16+12],SIGMA82[_e*16+13]),B2B_G(6,8,18,28,SIGMA82[_e*16+14],SIGMA82[_e*16+15]);for(_e=0;_e<16;_e++)a.h[_e]=a.h[_e]^v[_e]^v[_e+16]}const parameterBlock=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function blake2bInit(a,j,_e,et){if(a===0||a>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(j&&j.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(_e&&_e.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(et&&et.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const nt={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:a};parameterBlock.fill(0),parameterBlock[0]=a,j&&(parameterBlock[1]=j.length),parameterBlock[2]=1,parameterBlock[3]=1,_e&¶meterBlock.set(_e,32),et&¶meterBlock.set(et,48);for(let tt=0;tt<16;tt++)nt.h[tt]=BLAKE2B_IV32[tt]^B2B_GET32(parameterBlock,tt*4);return j&&(blake2bUpdate(nt,j),nt.c=128),nt}function blake2bUpdate(a,j){for(let _e=0;_e<j.length;_e++)a.c===128&&(a.t+=a.c,blake2bCompress(a,!1),a.c=0),a.b[a.c++]=j[_e]}function blake2bFinal(a){for(a.t+=a.c;a.c<128;)a.b[a.c++]=0;blake2bCompress(a,!0);const j=new Uint8Array(a.outlen);for(let _e=0;_e<a.outlen;_e++)j[_e]=a.h[_e>>2]>>8*(_e&3);return j}function blake2b(a,j,_e,et,nt){_e=_e||64,a=util$5.normalizeInput(a),et&&(et=util$5.normalizeInput(et)),nt&&(nt=util$5.normalizeInput(nt));const tt=blake2bInit(_e,j,et,nt);return blake2bUpdate(tt,a),blake2bFinal(tt)}function blake2bHex(a,j,_e,et,nt){const tt=blake2b(a,j,_e,et,nt);return util$5.toHex(tt)}var blake2b_1={blake2b,blake2bHex,blake2bInit,blake2bUpdate,blake2bFinal};const blake=getDefaultExportFromCjs$1(blake2b_1);function nonce(a,j){var _e=blake.blake2bInit(tweetnacl.box.nonceLength,null);return blake.blake2bUpdate(_e,a),blake.blake2bUpdate(_e,j),blake.blake2bFinal(_e)}function zero(a){for(var j=0;j<a.length;j++)a[j]=0}function seal(a,j){var _e=new Uint8Array(overheadLength+a.length),et=tweetnacl.box.keyPair();_e.set(et.publicKey);var nt=nonce(et.publicKey,j),tt=tweetnacl.box(a,nt,j,et.secretKey);return _e.set(tt,et.publicKey.length),zero(et.secretKey),_e}function open(a,j,_e){var et=a.subarray(0,tweetnacl.box.publicKeyLength),nt=nonce(et,j),tt=a.subarray(tweetnacl.box.publicKeyLength);return tweetnacl.box.open(tt,nt,et,_e)}const SealedBox={seal,open};function isNil(a){return a==null}var isNil_1=isNil;const isNil$1=getDefaultExportFromCjs$1(isNil_1),name="@arcblock/did-connect",version$2="2.10.61",description="Client side library to work with DID Connect by ArcBlock.",keywords=["react","arcblock","component"],author="wangshijun<wangshijun2010@gmail.com>",homepage="https://github.com/ArcBlock/ux#readme",license="Apache-2.0",main$1="lib/index.js",module$1="lib/index.js",repository={type:"git",url:"git+https://github.com/ArcBlock/ux.git"},scripts={lint:"eslint src tests --ext js --ext jsx","lint:fix":"npm run lint -- --fix",build:"babel --config-file ./babel.config.es.js src --out-dir lib --copy-files --no-copy-ignored",autoexports:"node tools/auto-exports.js",watch:"babel --config-file ./babel.config.es.js src --out-dir lib -w --copy-files --no-copy-ignored",precommit:"CI=1 npm run lint",prepush:"CI=1 npm run lint",prepublish:"npm run build",test:"node tools/jest.js",coverage:"npm run test -- --coverage"},bugs={url:"https://github.com/ArcBlock/ux/issues"},dependencies={"@arcblock/bridge":"^2.10.61","@arcblock/icons":"^2.10.61","@arcblock/react-hooks":"^2.10.61","@arcblock/ws":"^1.18.138","@fontsource/inter":"^5.0.16","@iconify-icons/logos":"^1.2.36","@iconify-icons/material-symbols":"^1.2.58","@iconify/react":"^4.1.1",ahooks:"^3.7.10",axios:"^1.7.5",buffer:"^6.0.3","core-js":"^3.25.5",eventemitter3:"^5.0.1","js-cookie":"^2.2.1","jwt-decode":"^3.1.2",lodash:"^4.17.21","mdi-material-ui":"^7.5.0","p-queue":"^6.6.2","p-wait-for":"^5.0.2","path-to-regexp":"^1.8.0",semver:"^7.6.3",tweetnacl:"^1.0.3","tweetnacl-sealedbox-js":"^1.2.0",ufo:"^1.5.3"},peerDependencies={"@arcblock/ux":"^2.9.79","@blocklet/js-sdk":"^1.16.30","@emotion/react":"^11.10.4","@emotion/styled":"^11.10.4","@mui/material":"^5.15.0",react:"^18.2.0","react-dom":"^18.2.0"},publishConfig={access:"public"},devDependencies={"@babel/cli":"^7.19.3","@babel/core":"^7.19.3","@babel/preset-env":"^7.19.3","@babel/preset-react":"^7.18.6","eslint-plugin-react-hooks":"^4.6.0",glob:"^10.3.3",jest:"^29.7.0"},gitHead="281ea6ca4acf367c8011e926e5baaf16ea991367",pkg={name,version:version$2,description,keywords,author,homepage,license,main:main$1,module:module$1,repository,scripts,bugs,dependencies,peerDependencies,publishConfig,devDependencies,gitHead},DEFAULT_TIMEOUT$1=5*60,DEFAULT_WINDOW_TIMEOUT=30*60,AUTH_SERVICE_PREFIX="/.well-known/service",SESSION_TOKEN_STORAGE_KEY="login_token",REFRESH_TOKEN_STORAGE_KEY="refresh_token",RELAY_SOCKET_PREFIX="/.well-known/service",API_DID_PREFIX="/api/did",DEFAULT_NAME="DID Connect",DID_CONNECT_URL_PARAMS_NAME="__did-connect__";class NotOpenError extends Error{constructor(){super("Failed to open popup")}}const providerName="wallet_url",getWebWalletUrl$1=()=>{var a,j;return window.localStorage.getItem(providerName)||((a=window.env)==null?void 0:a.webWalletUrl)||((j=window.blocklet)==null?void 0:j.webWalletUrl)||"https://web.abtwallet.io/"},checkSameProtocol=a=>{const{protocol:j}=window.location;let _e="";try{_e=new URL(a).protocol}catch{_e=""}return j===_e},{version:version$1}=pkg;function unescape$1(a){return(a+"===".slice((a.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function escape$1(a){return a.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const decodeConnectUrl=a=>window.atob(unescape$1(a)),parseTokenFromConnectUrl=a=>{const j=new URL(a),_e=decodeURIComponent(j.searchParams.get("url"));return new URL(_e).searchParams.get("_t_")},getAppId$1=(a,j)=>{var et,nt,tt;let _e=j==null?void 0:j.publisher;if(!_e){if(a!=null&&a.agentDid)return a.agentDid;_e=a==null?void 0:a.publisher}return _e?_e.replace("did:abt:",""):((et=globalThis.blocklet)==null?void 0:et.appPid)||((nt=globalThis.blocklet)==null?void 0:nt.appId)||((tt=globalThis.env)==null?void 0:tt.appId)||""},getConnectedInfo=a=>{var _e;const j={connected_did:a.did||"",connected_pk:a.pk||"",connected_app:getAppId$1(a.appInfo,a.memberAppInfo)};return(_e=a==null?void 0:a.connectedWallet)!=null&&_e.os&&(j.connected_wallet_os=a.connectedWallet.os),j},updateConnectedInfo=(a,j=!1)=>{if(!a)return;j||(a=getConnectedInfo(a));const _e=getCookieOptions({expireInDays:7,returnDomain:!1});isNil$1(a.connected_did)||Cookie.set("connected_did",a.connected_did,_e),isNil$1(a.connected_pk)||Cookie.set("connected_pk",a.connected_pk,_e),isNil$1(a.connected_app)||Cookie.set("connected_app",a.connected_app,_e),a.connected_wallet_os&&Cookie.set("connected_wallet_os",a.connected_wallet_os,_e)},encodeKey=a=>escape$1(Buffer$1$1.from(a).toString("base64")),decodeKey=a=>Uint8Array.from(Buffer$1$1.from(unescape$1(a),"base64")),decrypt$1=(a,j,_e)=>{const et=SealedBox.open(Uint8Array.from(Buffer$1$1.from(a,"base64")),decodeKey(j),decodeKey(_e));return JSON.parse(Buffer$1$1.from(et).toString("utf8"))},encrypt=(a,j)=>Buffer$1$1.from(SealedBox.seal(Uint8Array.from(Buffer$1$1.from(a)),decodeKey(j))).toString("base64"),parseNextWorkflow=(a,j="_t_")=>{const _e=new URL(a),et={baseUrl:_e.origin,prefix:_e.pathname.replace(/\/auth$/,""),token:_e.searchParams.get(j)||""};if(!et.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!et.token)throw new Error("Invalid next workflow: token not found");return et},getApiErrorMessage=(a,j)=>{var et;let _e=a.message;return a.response&&(_e=((et=a.response)==null?void 0:et.data)||j),_e},createAxios=(a={},{lazy:j=!1,lazyTime:_e=300}={})=>createAxios$2({...a,headers:{...a.headers,"x-did-connect-version":version$1}},{lazy:j,lazyTime:_e}),sleep$1=(a=0)=>new Promise(j=>{setTimeout(()=>{j()},a)});function getBrowserLang(){if(typeof window>"u")return null;const a=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[a]||"en"}async function decodeUrlParams(){const a=window.location.href;try{const j=new URL(a),_e=j.searchParams.get(DID_CONNECT_URL_PARAMS_NAME);if(_e){j.searchParams.delete(DID_CONNECT_URL_PARAMS_NAME);const et=JSON.parse(Buffer$1$1.from(_e,"base64").toString("utf-8"));if(isString$2(et.forceConnected)&&isUndefined$2(et.sourceAppPid)){const tt=await new BlockletSDK().user.getUserPublicInfo({did:et.forceConnected});isUndefined$2(tt==null?void 0:tt.sourceAppPid)||(et.sourceAppPid=tt.sourceAppPid)}return{params:et,url:j.href}}}catch{console.warn("Failed to decode did-connect url params")}return{params:null,url:a}}const openPopup=(a,{width:j=600,height:_e=700,name:et="did-connect:popup"}={})=>{const nt=window.screenX+(window.innerWidth-j)/2,tt=window.screenY+(window.innerHeight-_e)/2,ot=[`left=${nt}`,`top=${tt}`,`width=${j}`,`height=${_e}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],ct=window.open("",et,ot.join(","));if(ct===null)throw new NotOpenError;return ct.location.href=withQuery(a,{opener:window.location.origin}),ct},runPopup=a=>new Promise((j,_e)=>{let et,nt;const tt=({data:ot})=>{if(ot&&ot.type==="authorization_response"){if(ot!=null&&ot.error){console.error(ot.error);return}setTimeout(()=>{var ct;(ct=a.popup)==null||ct.close(),clearTimeout(nt),clearInterval(et),window.removeEventListener("message",tt,!1),j(ot)},a.closeTimeout||0)}};nt=setTimeout(()=>{clearInterval(et),_e(new Error("Timeout")),window.removeEventListener("message",tt,!1)},(a.timeoutInSeconds||DEFAULT_WINDOW_TIMEOUT)*1e3),et=setInterval(()=>{var ot;(ot=a.popup)!=null&&ot.closed&&(clearInterval(et),clearTimeout(nt),window.removeEventListener("message",tt,!1),_e(new Error("Popup closed")))},1e3),window.addEventListener("message",tt)});function WindowFocusAware({callback:a}){return reactExports.useEffect(()=>(window.addEventListener("focus",a),()=>{window.removeEventListener("focus",a)}),[]),null}WindowFocusAware.propTypes={callback:PropTypes.func.isRequired};function CardSelector({list:a,width:j,height:_e,cardSpace:et,onSelect:nt,defaultIndex:tt}){const[ot,ct]=reactExports.useState(0),[ft,ht]=reactExports.useState(0),dt=reactExports.useRef(null),yt=Rt=>{if(Rt<0||Rt>a.length-1)return;ct(Rt);const It=dt.current.clientWidth;ht(Rt*(j+et)-(It-j)/2+et*.5),nt(Rt)};reactExports.useEffect(()=>{yt(tt);const Rt=It=>It.preventDefault();dt.current.addEventListener("touchmove",Rt,{passive:!1})},[]);let Tt;const St=Rt=>{Tt=Rt.touches[0].clientX},At=Rt=>{const It=Rt.changedTouches[0],Ct=Tt-It.clientX;Math.abs(Ct)>60&&(Ct>0?yt(ot+1):yt(ot-1))};return jsxRuntimeExports.jsx(Contianer,{ref:dt,onTouchStart:St,onTouchEnd:At,children:jsxRuntimeExports.jsx("div",{className:"card-container",style:{transform:`translate(${-ft}px, 0)`},children:a.map((Rt,It)=>Rt instanceof Function?jsxRuntimeExports.jsx("div",{className:`card-item ${It===ot?"selected":""}`,style:{width:j,height:_e,margin:et/2},onClick:()=>yt(It),children:Rt(It)},It):jsxRuntimeExports.jsx("div",{className:`card-item ${It===ot?"selected":""}`,style:{width:j,height:_e,margin:et/2},onClick:()=>yt(It),children:jsxRuntimeExports.jsx("img",{src:Rt.src,alt:Rt.name})},It))})})}const Contianer=newStyled.div`
|
|
433
433
|
overflow: hidden;
|
|
434
434
|
mask-image: linear-gradient(to left, transparent, black 3%, black 97%, transparent);
|
|
435
435
|
overflow: hidden;
|
|
@@ -463,12 +463,12 @@ ${et.length}`,ot=Buffer$3.from(tt),ct=Buffer$3.concat([ot,nt]);return hash_1.def
|
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
`;CardSelector.propTypes={list:PropTypes.array,width:PropTypes.number,height:PropTypes.number,cardSpace:PropTypes.number,onSelect:PropTypes.func,defaultIndex:PropTypes.number};CardSelector.defaultProps={list:"",width:300,height:400,cardSpace:40,onSelect:noop$7,defaultIndex:0};var baseKeys=_baseKeys,getTag$1=_getTag,isArguments$1=isArguments_1,isArray$8=isArray_1,isArrayLike$2=isArrayLike_1,isBuffer$1=isBufferExports,isPrototype=_isPrototype,isTypedArray$1=isTypedArray_1,mapTag$1="[object Map]",setTag$1="[object Set]",objectProto$4=Object.prototype,hasOwnProperty$7=objectProto$4.hasOwnProperty;function isEmpty(a){if(a==null)return!0;if(isArrayLike$2(a)&&(isArray$8(a)||typeof a=="string"||typeof a.splice=="function"||isBuffer$1(a)||isTypedArray$1(a)||isArguments$1(a)))return!a.length;var j=getTag$1(a);if(j==mapTag$1||j==setTag$1)return!a.size;if(isPrototype(a))return!baseKeys(a).length;for(var _e in a)if(hasOwnProperty$7.call(a,_e))return!1;return!0}var isEmpty_1=isEmpty;const isEmpty$1=getDefaultExportFromCjs$1(isEmpty_1);function getMaster(a=window.blocklet){var _e;return(((_e=a==null?void 0:a.settings)==null?void 0:_e.federated)||{}).master}function getConfig(a=window.blocklet){var _e;return(((_e=a==null?void 0:a.settings)==null?void 0:_e.federated)||{}).config}function getFederatedEnabled(a=window.blocklet){const j=getConfig(a);return(j==null?void 0:j.status)==="approved"}function getFederatedApp(a=window.blocklet){const j=getMaster(a);return!isEmpty$1(j)?{appId:j.appId,appName:j.appName,appDescription:j.appDescription,appLogo:j.appLogo,appPid:j.appPid,appUrl:j.appUrl,version:j.version,sourceAppPid:j.appPid,provider:"wallet"}:null}function getCurrentApp(a=window.blocklet){return a?{appId:a.appId,appName:a.appName,appDescription:a.appDescription,appLogo:a.appLogo,appPid:a.appPid,appUrl:a.appUrl,version:a.version,sourceAppPid:null,provider:"wallet"}:window.env?(a=window.env,{appId:a.appId,appName:a.appName,appDescription:a.appDescription,appUrl:a.baseUrl,sourceAppPid:null,provider:"wallet",type:"server"}):null}function getApps(a){const j=[],_e=getFederatedApp(a),et=getCurrentApp(a),nt=getFederatedEnabled(a);return et&&j.push(et),_e&&(_e==null?void 0:_e.appId)!==(et==null?void 0:et.appId)&&nt&&j.push(_e),j.reverse()}async function getBlockletData(a){try{const j=new URL("__blocklet__.js",a);return j.searchParams.set("type","json"),await(await fetch(j.href)).json()}catch(j){return console.error(`Failed to get blocklet data: ${a}`,j),null}}var Guest=function a(j){return jsxRuntimeExports.jsxs("svg",{...j,children:[jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"418",height:"473",rx:"19",fill:"#FBFBFB"}),jsxRuntimeExports.jsx("g",{clipPath:"url(#a)",children:jsxRuntimeExports.jsx("path",{opacity:".7",fill:"#DDD",d:"M0 100h420v168H0z"})}),jsxRuntimeExports.jsx("circle",{cx:"210",cy:"248",r:"60",fill:"#C4C5CA"}),jsxRuntimeExports.jsx("path",{d:"M181 284l7.2-7.2 7.2 7.2 7.2-10.8 7.2 10.8 7.2-10.8 7.2 10.8 7.2-7.2 7.2 7.2v-43.2c0-15.907-12.893-28.8-28.8-28.8S181 224.893 181 240.8V284z",fill:"#C4C5CA",stroke:"#fff",strokeWidth:"5",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M200.797 240.812h3.6-3.6zm21.6 0h3.6-3.6z",fill:"#C4C5CA"}),jsxRuntimeExports.jsx("path",{d:"M200.797 240.812h3.6m18 0h3.6",stroke:"#fff",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{opacity:".7",d:"M24 29h189v40H24V29z",fill:"#C4C5CA"}),jsxRuntimeExports.jsx("path",{opacity:".42",fill:"#C4C5CA",d:"M313 24h83v14h-83z"}),jsxRuntimeExports.jsx("path",{opacity:".7",fill:"#C4C5CA",d:"M291 50h105v26H291z"}),jsxRuntimeExports.jsx("path",{d:"M177.388 388.4c-1.733 0-3.32-.213-4.76-.64a12.355 12.355 0 0 1-3.8-1.88 15.072 15.072 0 0 1-2.96-3l3.76-4.28c1.307 1.813 2.6 3.053 3.88 3.72 1.307.64 2.72.96 4.24.96.827 0 1.56-.107 2.2-.32.667-.24 1.187-.573 1.56-1 .373-.427.56-.933.56-1.52 0-.427-.093-.813-.28-1.16a2.764 2.764 0 0 0-.8-.96 5.139 5.139 0 0 0-1.24-.76 8.666 8.666 0 0 0-1.6-.6 12.728 12.728 0 0 0-1.92-.44c-1.493-.347-2.8-.76-3.92-1.24-1.12-.507-2.053-1.12-2.8-1.84a7.456 7.456 0 0 1-1.68-2.52c-.347-.933-.52-1.987-.52-3.16 0-1.2.267-2.307.8-3.32a8.187 8.187 0 0 1 2.2-2.68 10.68 10.68 0 0 1 3.28-1.72c1.253-.4 2.573-.6 3.96-.6 1.707 0 3.2.2 4.48.6 1.28.373 2.387.92 3.32 1.64.96.72 1.76 1.6 2.4 2.64l-3.8 3.68a9.48 9.48 0 0 0-1.84-1.88 6.482 6.482 0 0 0-2.12-1.12 6.84 6.84 0 0 0-2.32-.4c-.88 0-1.64.12-2.28.36-.64.213-1.147.533-1.52.96-.347.427-.52.947-.52 1.56 0 .48.12.907.36 1.28s.587.707 1.04 1c.453.267 1 .507 1.64.72.64.213 1.347.4 2.12.56 1.467.293 2.787.68 3.96 1.16 1.173.48 2.173 1.067 3 1.76a6.784 6.784 0 0 1 1.96 2.4c.453.907.68 1.933.68 3.08 0 1.893-.453 3.507-1.36 4.84-.907 1.333-2.16 2.36-3.76 3.08-1.6.693-3.467 1.04-5.6 1.04zm17.394-.4v-26.52h5.68V388h-5.68zm-3.96-16.08v-5.08h13.96v5.08h-13.96zm25.387 16.48c-1.76 0-3.346-.48-4.76-1.44-1.413-.96-2.533-2.267-3.36-3.92-.826-1.653-1.24-3.547-1.24-5.68 0-2.133.414-4.013 1.24-5.64.854-1.653 2-2.947 3.44-3.88 1.44-.96 3.08-1.44 4.92-1.44 1.04 0 1.987.16 2.84.48.88.293 1.64.707 2.28 1.24a7.831 7.831 0 0 1 1.68 1.84c.454.693.774 1.44.96 2.24l-1.2-.2v-5.16h5.64V388h-5.72v-5.08l1.28-.12a6.81 6.81 0 0 1-1.04 2.12 8.213 8.213 0 0 1-1.8 1.8c-.693.507-1.48.92-2.36 1.24-.88.293-1.813.44-2.8.44zm1.56-4.92c1.067 0 2-.253 2.8-.76.8-.507 1.414-1.213 1.84-2.12.454-.933.68-2.013.68-3.24 0-1.2-.226-2.253-.68-3.16-.426-.907-1.04-1.613-1.84-2.12-.8-.533-1.733-.8-2.8-.8-1.04 0-1.96.267-2.76.8-.773.507-1.386 1.213-1.84 2.12-.453.907-.68 1.96-.68 3.16 0 1.227.227 2.307.68 3.24.454.907 1.067 1.613 1.84 2.12.8.507 1.72.76 2.76.76zm19.066 13.72l4.64-10.88.08 3.28-10.32-22.76h6.44l5.16 12.2c.213.453.413.987.6 1.6.213.587.387 1.16.52 1.72l-.96.4c.16-.453.347-.973.56-1.56.213-.587.427-1.213.64-1.88l4.44-12.48h6.48l-8.88 21.16-3.64 9.2h-5.76zM92.8 438l10.96-28h5.36l10.92 28h-6.16l-5.64-15.08c-.16-.427-.36-.973-.6-1.64l-.68-2.12-.68-2.12a27.95 27.95 0 0 1-.48-1.72l1.08-.04c-.16.613-.346 1.253-.56 1.92-.186.64-.386 1.307-.6 2-.213.667-.44 1.32-.68 1.96-.24.64-.466 1.267-.68 1.88L98.72 438H92.8zm5.08-5.88l1.96-4.84h12.84l2 4.84h-16.8zm25.292 5.88v-21.16h5.44l.16 4.32-1.12.48c.293-.96.813-1.827 1.56-2.6a8.83 8.83 0 0 1 2.76-1.92 8.1 8.1 0 0 1 3.36-.72c1.6 0 2.933.32 4 .96 1.093.64 1.907 1.613 2.44 2.92.56 1.28.84 2.867.84 4.76V438h-5.68v-12.52c0-.96-.133-1.76-.4-2.4-.267-.64-.68-1.107-1.24-1.4-.533-.32-1.2-.453-2-.4-.64 0-1.24.107-1.8.32a3.94 3.94 0 0 0-1.4.84c-.373.373-.68.8-.92 1.28-.213.48-.32 1-.32 1.56V438h-5.68zm34.723.4c-2.16 0-4.093-.467-5.8-1.4a10.853 10.853 0 0 1-4-3.92c-.96-1.653-1.44-3.547-1.44-5.68 0-2.133.48-4.013 1.44-5.64a10.853 10.853 0 0 1 4-3.92c1.707-.96 3.64-1.44 5.8-1.44 2.133 0 4.04.48 5.72 1.44 1.707.96 3.04 2.267 4 3.92.96 1.627 1.44 3.507 1.44 5.64 0 2.133-.48 4.027-1.44 5.68-.96 1.653-2.293 2.96-4 3.92-1.68.933-3.587 1.4-5.72 1.4zm0-4.96c1.04 0 1.973-.253 2.8-.76a5.371 5.371 0 0 0 1.92-2.16c.48-.933.72-1.973.72-3.12 0-1.173-.24-2.213-.72-3.12-.453-.933-1.093-1.653-1.92-2.16-.827-.533-1.76-.8-2.8-.8-1.067 0-2.013.267-2.84.8a5.673 5.673 0 0 0-1.96 2.16c-.48.907-.707 1.947-.68 3.12-.027 1.147.2 2.187.68 3.12a5.673 5.673 0 0 0 1.96 2.16c.827.507 1.773.76 2.84.76zm15.433 4.56v-21.16h5.44l.16 4.32-1.12.48c.294-.96.814-1.827 1.56-2.6a8.853 8.853 0 0 1 2.76-1.92 8.1 8.1 0 0 1 3.36-.72c1.6 0 2.934.32 4 .96 1.094.64 1.907 1.613 2.44 2.92.56 1.28.84 2.867.84 4.76V438h-5.68v-12.52c0-.96-.133-1.76-.4-2.4-.266-.64-.68-1.107-1.24-1.4-.533-.32-1.2-.453-2-.4-.64 0-1.24.107-1.8.32a3.94 3.94 0 0 0-1.4.84c-.373.373-.68.8-.92 1.28-.213.48-.32 1-.32 1.56V438h-5.68zm27.648 9.2l4.64-10.88.08 3.28-10.32-22.76h6.44l5.16 12.2c.213.453.413.987.6 1.6.213.587.386 1.16.52 1.72l-.96.4c.16-.453.346-.973.56-1.56.213-.587.426-1.213.64-1.88l4.44-12.48h6.48l-8.88 21.16-3.64 9.2h-5.76zm21.297-9.2v-21.16h5.48l.12 4.04-.84.16c.293-.693.68-1.32 1.16-1.88.48-.56 1.04-1.04 1.68-1.44.666-.4 1.36-.707 2.08-.92.72-.24 1.44-.36 2.16-.36 1.093 0 2.08.173 2.96.52.88.347 1.626.893 2.24 1.64.613.72 1.093 1.68 1.44 2.88l-.88-.08.28-.64a6.852 6.852 0 0 1 1.32-1.72 8.178 8.178 0 0 1 1.8-1.36c.666-.4 1.36-.707 2.08-.92a7.448 7.448 0 0 1 2.12-.32c1.653 0 3.026.333 4.12 1 1.093.64 1.906 1.613 2.44 2.92.56 1.307.84 2.907.84 4.8V438h-5.68v-12.44c0-.96-.134-1.747-.4-2.36-.267-.613-.654-1.067-1.16-1.36-.507-.32-1.16-.48-1.96-.48a4.59 4.59 0 0 0-1.72.32c-.507.187-.96.467-1.36.84a3.74 3.74 0 0 0-.88 1.24 3.885 3.885 0 0 0-.32 1.6V438h-5.68v-12.48c0-.88-.147-1.627-.44-2.24-.267-.64-.654-1.12-1.16-1.44-.507-.32-1.134-.48-1.88-.48a4.59 4.59 0 0 0-1.72.32 3.608 3.608 0 0 0-1.32.84c-.374.347-.68.76-.92 1.24-.214.48-.32 1-.32 1.56V438h-5.68zm47.848.4c-2.16 0-4.093-.467-5.8-1.4a10.853 10.853 0 0 1-4-3.92c-.96-1.653-1.44-3.547-1.44-5.68 0-2.133.48-4.013 1.44-5.64a10.853 10.853 0 0 1 4-3.92c1.707-.96 3.64-1.44 5.8-1.44 2.134 0 4.04.48 5.72 1.44 1.707.96 3.04 2.267 4 3.92.96 1.627 1.44 3.507 1.44 5.64 0 2.133-.48 4.027-1.44 5.68-.96 1.653-2.293 2.96-4 3.92-1.68.933-3.586 1.4-5.72 1.4zm0-4.96c1.04 0 1.974-.253 2.8-.76a5.371 5.371 0 0 0 1.92-2.16c.48-.933.72-1.973.72-3.12 0-1.173-.24-2.213-.72-3.12-.453-.933-1.093-1.653-1.92-2.16-.826-.533-1.76-.8-2.8-.8-1.066 0-2.013.267-2.84.8a5.681 5.681 0 0 0-1.96 2.16c-.48.907-.706 1.947-.68 3.12-.026 1.147.2 2.187.68 3.12a5.681 5.681 0 0 0 1.96 2.16c.827.507 1.774.76 2.84.76zm22.714 4.96c-1.547 0-2.88-.333-4-1-1.093-.693-1.947-1.667-2.56-2.92-.587-1.28-.88-2.813-.88-4.6v-13.04h5.68v12.12c0 .96.16 1.8.48 2.52.32.693.773 1.227 1.36 1.6.587.373 1.307.56 2.16.56.613 0 1.187-.093 1.72-.28a3.993 3.993 0 0 0 1.36-.88c.373-.373.667-.813.88-1.32.213-.507.32-1.053.32-1.64v-12.68h5.68V438h-5.4l-.2-4.36 1.04-.48a7.107 7.107 0 0 1-1.6 2.68 7.981 7.981 0 0 1-2.68 1.88c-1.04.453-2.16.68-3.36.68zm25.035 0c-1.973 0-3.733-.32-5.28-.96-1.52-.667-2.747-1.573-3.68-2.72l3.52-3.04c.827.88 1.747 1.52 2.76 1.92a8.75 8.75 0 0 0 3.04.56c.4 0 .76-.04 1.08-.12.347-.107.64-.24.88-.4.24-.187.413-.4.52-.64.133-.267.2-.547.2-.84 0-.587-.24-1.053-.72-1.4-.267-.133-.68-.293-1.24-.48-.56-.213-1.28-.44-2.16-.68-1.36-.347-2.52-.747-3.48-1.2-.933-.48-1.68-1.013-2.24-1.6a6.755 6.755 0 0 1-1.12-1.8c-.24-.667-.36-1.4-.36-2.2 0-.96.213-1.827.64-2.6a6.138 6.138 0 0 1 1.76-2.04 8.66 8.66 0 0 1 2.64-1.28c.987-.32 2.027-.48 3.12-.48s2.16.133 3.2.4 2 .653 2.88 1.16a9.77 9.77 0 0 1 2.36 1.72l-3.04 3.36a9.806 9.806 0 0 0-1.64-1.24 8.324 8.324 0 0 0-1.84-.88c-.64-.213-1.213-.32-1.72-.32-.453 0-.867.04-1.24.12-.347.08-.64.2-.88.36-.24.16-.427.373-.56.64-.107.24-.16.507-.16.8 0 .293.067.573.2.84.16.267.373.493.64.68.293.16.72.347 1.28.56a30.74 30.74 0 0 0 2.36.72c1.28.347 2.36.733 3.24 1.16.907.427 1.627.92 2.16 1.48.453.48.787 1.027 1 1.64.213.613.32 1.293.32 2.04 0 1.307-.373 2.48-1.12 3.52-.72 1.013-1.72 1.813-3 2.4-1.28.56-2.72.84-4.32.84z",fill:"#25292F"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"418",height:"558",rx:"19",stroke:"#DDD",strokeWidth:"2"}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",transform:"translate(0 100)",d:"M0 0h420v168H0z"})})})]})};Guest.defaultProps={width:"420",height:"475",viewBox:"0 0 420 475",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const OAuthContext=reactExports.createContext({}),{Provider:Provider$7,Consumer:OAuthConsumer}=OAuthContext,prefix$3=`${AUTH_SERVICE_PREFIX}/api/oauth`,parseResponse=a=>a?typeof a=="string"?{sessionToken:a}:pick$2(a,["sessionToken","refreshToken","visitorId"]):{},translations$5={zh:{bindOAuth:"绑定第三方登录",bind:"绑定",noneOAuth:"未配置第三方登录方式",bindOAuthSucceed:"绑定 {provider} 成功",unbindOAuthSucceed:"解绑 {provider} 成功",loginOAuthFailed:"登录 {provider} 失败",bindOAuthFailed:"绑定 {provider} 失败",unbindOAuthFailed:"绑定 {provider} 失败",switchPassport:"切换通行证",switchPassportFailed:"切换通行证失败",switchPassportSucceed:"切换通行证成功",choosePassport:"请选择一个通行证",switch:"切换",cancel:"取消",currentRole:"当前角色:",passport:"通行证",noPassports:"没有可更换的通行证",getPassportFailed:"获取通行证失败",loginRequired:"授权请求被拒绝",cancelAuth:"取消授权"},en:{bindOAuth:"Bind third party login",bind:"Bind ",noneOAuth:"Third party login is not configured",bindOAuthSucceed:"Bind {provider} succeed",unbindOAuthSucceed:"Unbind {provider} succeed",loginOAuthFailed:"Login {provider} failed",bindOAuthFailed:"Bind {provider} failed",unbindOAuthFailed:"Unbind {provider} failed",switchPassport:"Switch passport",switchPassportFailed:"Switch passport failed",switchPassportSucceed:"Switch passport succeed",choosePassport:"Select a passport to switch",switch:"Switch",cancel:"Cancel",currentRole:"Current role: ",passport:"Passport",noPassports:"No passport to switch",getPassportFailed:"Get passports failed",loginRequired:"You have declined the authentication request",cancelAuth:"Cancel authentication"}};function OAuthProvider({children:a,locale:j,onBindOAuth:_e,onUnbindOAuth:et,onSwitchPassport:nt}){var Kt;const tt=useReactive({baseUrl:"/",bindFnSession:void 0,bindAuthLoading:!1,unbindAuthLoading:!1}),ot=useReactive({open:!1,currentUser:null,passports:[],choosePassport:void 0,reset(){ot.open=!1,ot.currentUser=null,ot.passports=[],ot.choosePassport=void 0}}),ct=useReactive({user:null,checking:!1,loading:!1,error:"",status:"",reset(){ct.loading=!1,ct.checking=!1,ct.error="",ct.status=""}}),ft=useMemoizedFn((jt,zt={})=>translate(translations$5,jt,j,"en",zt)),ht=useCreation(()=>createAxios({baseURL:joinURL(tt.baseUrl,prefix$3)}),[tt.baseUrl,prefix$3]),dt=useMemoizedFn(async()=>{if(tt.baseUrl==="/")return window.blocklet;try{if(new URL(tt.baseUrl).host===window.location.host)return window.blocklet}catch{}return await getBlockletData(tt.baseUrl)}),yt=useMemoizedFn(async({sourceAppPid:jt}={})=>{var hn,wt;const zt=await dt(),Gt=getFederatedEnabled(zt),tn=getMaster(zt);if(Gt&&(tn!=null&&tn.appPid)&&jt===(tn==null?void 0:tn.appPid)){const rt=await getBlockletData(tn.appUrl);return((hn=rt==null?void 0:rt.settings)==null?void 0:hn.oauth)||{}}return((wt=zt==null?void 0:zt.settings)==null?void 0:wt.oauth)||{}}),Tt=useMemoizedFn(async({sourceAppPid:jt}={})=>{const zt=await yt({sourceAppPid:jt});return Object.entries(zt).map(([tn,hn])=>({...hn,provider:tn})).filter(tn=>tn.enabled).sort((tn,hn)=>(tn==null?void 0:tn.order)!==void 0&&(hn==null?void 0:hn.order)!==void 0?tn.order-hn.order:(tn==null?void 0:tn.order)!==void 0?-1:1)}),St=useMemoizedFn(async({provider:jt}={})=>{var Gt;const zt=openPopup(joinURL(tt.baseUrl,"/.well-known/service/oauth/login",jt),{name:"oauth-login:popup"});try{const tn=await runPopup({popup:zt,closeTimeout:0});return tn!=null&&tn.response?(Gt=tn.response)==null?void 0:Gt.code:null}catch(tn){throw(tn==null?void 0:tn.message)==="Popup closed"?new Error(ft("cancelAuth")):tn}}),At=async({session:jt,oauthItem:zt}={})=>{var Gt,tn;tt.bindFnSession=jt,tt.bindAuthLoading=!0;try{const hn=await St(zt),wt=(tn=(Gt=tt.bindFnSession)==null?void 0:Gt.user)==null?void 0:tn.sourceAppPid;await ht.post("/bind",{locale:j,provider:zt.provider,code:hn,sourceAppPid:wt}),Toast$1.success(ft("bindOAuthSucceed",{provider:OAUTH_PROVIDER[zt.provider]})),_e(zt)}catch(hn){Toast$1.error(getApiErrorMessage(hn,ft("bindOAuthFailed",{provider:OAUTH_PROVIDER[zt.provider]})))}finally{tt.bindAuthLoading=!1}},Rt=async({session:jt,connectedAccount:zt})=>{var Gt;tt.unbindAuthLoading=!0;try{const tn=(Gt=jt==null?void 0:jt.user)==null?void 0:Gt.sourceAppPid;await ht.post("/unbind",{locale:j,connectedAccount:omit$1(zt,["showProvider"]),sourceAppPid:tn}),Toast$1.success(ft("unbindOAuthSucceed",{provider:OAUTH_PROVIDER[zt.showProvider||zt.provider]})),et(zt)}catch(tn){Toast$1.error(getApiErrorMessage(tn,ft("unbindOAuthFailed",{provider:OAUTH_PROVIDER[zt.showProvider||zt.provider]})))}finally{tt.unbindAuthLoading=!1}},It=async(jt={})=>{try{const{data:zt}=await ht.get("/passports");zt.length?(ot.open=!0,ot.currentUser=jt,ot.passports=zt||[]):Toast$1.error(ft("noPassports"))}catch(zt){Toast$1.error(zt.message||ft("getPassportFailed"))}},Ct=async()=>{try{const{data:jt}=await ht.post("/switch",{passportId:ot.choosePassport}),{sessionToken:zt,refreshToken:Gt}=parseResponse(jt);nt({sessionToken:zt,refreshToken:Gt}),Toast$1.success(ft("switchPassportSucceed"))}catch(jt){Toast$1.error(jt.message||ft("switchPassportFailed"))}},kt=jt=>{tt.baseUrl=jt||"/"},Pt=useMemoizedFn(async({provider:jt}={},{action:zt="login",...Gt}={})=>{var wt,rt,st;const tn=tt.baseUrl;if((Gt==null?void 0:Gt.sourceAppPid)===((wt=window.blocklet)==null?void 0:wt.appPid))tt.baseUrl=((rt=window.blocklet)==null?void 0:rt.appUrl)||"/";else if(Gt!=null&&Gt.sourceAppPid){const ut=await dt(),pt=getFederatedEnabled(ut),mt=getMaster(ut);pt&&(mt!=null&&mt.appPid)&&(Gt==null?void 0:Gt.sourceAppPid)===(mt==null?void 0:mt.appPid)&&(tt.baseUrl=mt.appUrl)}const hn=(st=window==null?void 0:window.blocklet)==null?void 0:st.componentId;try{const ut=await St({provider:jt});if(ut){const pt={...Gt,action:zt,locale:j,code:ut,provider:jt,componentId:hn,visitorId:getVisitorId$2()};isUndefined$2(pt.inviter)&&window.localStorage.getItem("inviter")&&(pt.inviter=window.localStorage.getItem("inviter"));const{data:mt}=await ht.post("/login",pt);return parseResponse(mt)}return tt.baseUrl=tn,null}catch(ut){const pt=getApiErrorMessage(ut,ft("loginOAuthFailed",{provider:OAUTH_PROVIDER[jt]}));throw tt.baseUrl=tn,new Error(pt)}}),Bt=useMemoizedFn(()=>{});return jsxRuntimeExports.jsxs(Provider$7,{value:{locale:j,getOAuthConfigs:yt,getOAuthConfigList:Tt,bindOAuth:At,unbindOAuth:Rt,loginOAuth:Pt,logoutOAuth:Bt,switchOAuthPassport:It,baseUrl:tt.baseUrl,setBaseUrl:kt,oauthState:ct,unbindAuthLoading:tt.unbindAuthLoading,bindAuthLoading:tt.bindAuthLoading,t:ft},children:[a,jsxRuntimeExports.jsxs(Confirm,{open:ot.open,title:ft("switchPassport"),onConfirm:Ct,onCancel:()=>ot.reset,confirmButton:{text:ft("switch"),props:{variant:"contained",color:"primary"}},cancelButton:{text:ft("cancel"),props:{color:"inherit"}},PaperProps:{style:{width:600}},children:[jsxRuntimeExports.jsxs(Box,{mb:2,children:[ft("currentRole"),(Kt=ot.currentUser)==null?void 0:Kt.role]}),jsxRuntimeExports.jsx(CardSelector,{width:160,height:240,cardSpace:24,list:[()=>jsxRuntimeExports.jsx(Guest,{}),...ot.passports.map(jt=>({src:jt.display,name:jt.title}))],onSelect:jt=>{ot.choosePassport=jt>0?ot.passports[jt-1].id:void 0},defaultIndex:0})]})]})}function useOAuth(){const a=reactExports.useContext(OAuthContext);return omit$1(a,["locale","getToken"])}OAuthProvider.propTypes={children:PropTypes.node.isRequired,locale:PropTypes.string,onBindOAuth:PropTypes.func,onUnbindOAuth:PropTypes.func,onSwitchPassport:PropTypes.func};OAuthProvider.defaultProps={locale:"en",onBindOAuth:noop$7,onUnbindOAuth:noop$7,onSwitchPassport:noop$7};function getPermanentDid(a){return a==null?void 0:a.did}function getConnectedAccounts(a){var j;return(a==null?void 0:a.connectedAccounts)||((j=a==null?void 0:a.extraConfigs)==null?void 0:j.connectedAccounts)||[]}function getSourceProvider(a){var j;return(a==null?void 0:a.sourceProvider)||((j=a==null?void 0:a.extraConfigs)==null?void 0:j.sourceProvider)||"wallet"}function getSourceProviders(a){return getConnectedAccounts(a).map(_e=>_e.provider)}function getConnectedDids(a){return getConnectedAccounts(a).map(et=>et.did)}function getWallet(a){return getConnectedAccounts(a).find(et=>et.provider==="wallet")}function getWalletDid(a){const j=getWallet(a);return j==null?void 0:j.did}function useDid({session:a}){const[j,_e]=reactExports.useState({did:"",wallet:"",walletDid:"",permanentDid:"",connectedDids:[],connectedAccounts:[],sourceProvider:"",sourceProviders:[]});return reactExports.useEffect(()=>{if(a!=null&&a.user){const et=getPermanentDid(a.user),nt=getWalletDid(a.user),tt=getConnectedAccounts(a.user),ot=getConnectedDids(a.user),ct=getWallet(a.user),ft=getSourceProvider(a.user),ht=getSourceProviders(a.user);_e({did:et,wallet:ct,walletDid:nt,permanentDid:et,connectedDids:ot,connectedAccounts:tt,sourceProvider:ft,sourceProviders:ht})}},[a==null?void 0:a.user]),j}function WrapDid({session:a,children:j}){const _e=useDid({session:a});return j instanceof Function?j(_e):null}WrapDid.propTypes={session:PropTypes.object.isRequired,children:PropTypes.func.isRequired};const api$3=createAxios();async function getMasterToken(){const a=joinURL(AUTH_SERVICE_PREFIX,"/api/federated/loginMaster"),{data:j}=await api$3.post(a);return j}async function mountFederatedIframe({mode:a,refreshToken:j="",blocklet:_e}){const et=getMaster(_e);return new Promise(nt=>{if(!["login","logout"].includes(a)){nt();return}const tt=document.createElement("iframe");tt.style.display="none",tt.onload=async()=>{await sleep$1(500),document.body.removeChild(tt),nt()},tt.src=joinURL(et.appUrl,AUTH_SERVICE_PREFIX,`functional/federated?mode=${a}&refreshToken=${j}`),document.body.appendChild(tt)})}async function loginFederatedMaster(a={},{fetchToken:j=!0,blocklet:_e}={}){if(!getFederatedEnabled())return console.warn("Federated not enabled"),null;let nt,tt;j&&({sessionToken:nt,refreshToken:tt}=await getMasterToken());const ot=getMaster(_e),ct=joinURL(ot.appUrl,AUTH_SERVICE_PREFIX,"/api/federated/login"),ft={withCredentials:!0};nt&&(ft.headers={Authorization:`Bearer ${nt}`});const{data:ht}=await api$3.post(ct,a,ft);return tt&&await mountFederatedIframe({mode:"login",refreshToken:tt,blocklet:_e}),ht}const translations$4={zh:{notFoundFederatedInfo:"未发现统一登录的信息",autoLoginFederatedFailed:"自动登录统一登录账号失败",manualLoginFederatedFailed:"手动登录统一登录账号失败"},en:{notFoundFederatedInfo:"No federated login info detected",autoLoginFederatedFailed:"Auto login federated account failed",manualLoginFederatedFailed:"Manual login federated account failed"}};function useFederated({locale:a,handleLoginResult:j,login:_e,handleRefreshUser:et}){const nt=useReactive({federatedMaster:null}),tt=getFederatedEnabled(),ot=getMaster(),ct=getConfig(),ft=useMemoizedFn(async(ht=noop$7,dt={},yt={})=>{var At,Rt;typeof yt=="string"&&(yt={origin:yt});let{mode:Tt="auto",...St}=dt;if(yt.mode&&(Tt=yt.mode),Tt==="auto"){if(!tt)throw new Error(translations$4[a].notFoundFederatedInfo);try{const It=await loginFederatedMaster({appId:globalThis.blocklet.appId},{fetchToken:!1});j({...It,encrypted:!1}),await et({showProgress:!0}),ht()}catch(It){const Ct=It!=null&&It.response?(At=It.response)==null?void 0:At.data:It==null?void 0:It.message;ht(Ct||translations$4[a].autoLoginFederatedFailed)}}else if(Tt==="manual")try{_e(async()=>{await loginFederatedMaster({appId:globalThis.blocklet.appId,onlyWriteCookie:!0}),ht()},{...St},yt)}catch(It){const Ct=It!=null&&It.response?(Rt=It.response)==null?void 0:Rt.data:It==null?void 0:It.message;ht(Ct||translations$4[a].autoLoginFederatedFailed)}});return{master:ot,config:ct,federatedMaster:nt.federatedMaster,federatedEnabled:tt,loginFederated:ft,loginFederatedMaster}}async function renewRefreshToken(a,{authServicePrefix:j,serviceHost:_e}){if(!a)throw new Error("Refresh token not found");const et=createAxios({baseURL:_e,timeout:10*1e3,headers:{authorization:`Bearer ${encodeURIComponent(a)}`}}),{data:nt}=await et.post(joinURL(j,"/refreshSession"));return nt}function createService({refreshTokenStorage:a,sessionTokenStorage:j,serviceHost:_e,authServicePrefix:et,onRefreshTokenError:nt,onRefreshTokenSuccess:tt},ot={}){let ct=null;const ft=createAxios({baseURL:_e,timeout:30*1e3,...ot}),{getToken:ht,setToken:dt,removeToken:yt}=j,{getToken:Tt,setToken:St,removeToken:At}=a;return ft.interceptors.request.use(async Rt=>{if(j.engine==="ls"){const It=ht();It&&(Rt.headers.authorization=`Bearer ${encodeURIComponent(It)}`)}return ct&&await ct,Rt},Rt=>Promise.reject(Rt)),ft.interceptors.response.use(Rt=>Rt,async Rt=>{var Ct;const It=Rt.config;if(It.headers={...It==null?void 0:It.headers},((Ct=Rt==null?void 0:Rt.response)==null?void 0:Ct.status)===401&&!It._retry){It._retry=!0,ct||(ct=renewRefreshToken(Tt(),{serviceHost:_e,authServicePrefix:et}));try{const kt=await ct;return dt(kt.nextToken),St(kt.nextRefreshToken),typeof tt=="function"&&tt(kt),ft(It)}catch(kt){return yt(),At(),typeof nt=="function"&&nt(),Promise.reject(kt)}finally{ct=null}}return Promise.reject(Rt)}),ft}class ErrorToken extends Error{}const LANG_COOKIE_NAME="nf_lang",INTERVAL_TIME=1e3,MAX_RETRY_COUNT=3,decrypt=a=>decrypt$1(a,localStorage.getItem("__encKey"),localStorage.getItem("__decKey"));function useSessionToken({state:a,pageState:j,serviceHost:_e,sessionTokenStorage:et,refreshTokenStorage:nt,lazyRefreshToken:tt,apiOptions:ot={}}){const[ct,ft]=reactExports.useState(0),[ht,dt]=reactExports.useState(INTERVAL_TIME),{getToken:yt,setToken:Tt,removeToken:St}=et,{getToken:At,setToken:Rt,removeToken:It}=nt,Ct=useCreation(()=>createAxios({baseURL:_e,timeout:10*1e3}),[_e]),kt=()=>{St(),It()},Pt=useCreation(()=>createService({sessionTokenStorage:et,refreshTokenStorage:nt,serviceHost:_e,authServicePrefix:j.prefix,onRefreshTokenError(){kt(),a.user&&(a.user=null)}},ot),[_e,j.prefix]),Bt=()=>{const rt=getCookieOptions({returnDomain:!1});Cookie.remove("connected_did",rt),Cookie.remove("connected_pk",rt),Cookie.remove("connected_app",rt),Cookie.remove("connected_wallet_os",rt),kt()},Kt=useMemoizedFn(()=>{const rt=Cookie.get(LANG_COOKIE_NAME)||getBrowserLang();rt!==j.currentLocale&&(j.currentLocale=rt)}),jt=useMemoizedFn(async({showProgress:rt=!1,requestFn:st=null,onlyRefreshToken:ut=!1})=>{var pt;try{if(a.loading)return console.warn("SessionProvider.refresh is currently in progress, call it will be noop"),{loading:!0};rt&&(a.loading=!0);const{data:mt,status:$t}=await st();if($t===400&&(kt(),a.user=null,a.error=""),mt.error)throw a.error=mt.error,a.open=!1,new Error(mt.error);if(mt.user)mt.nextToken&&(Tt(mt.nextToken),mt.nextRefreshToken&&Rt(mt.nextRefreshToken)),ut||(a.open=!1,a.user=mt.user,a.provider=mt.provider,a.walletOS=mt.walletOS),yt()||(Toast$1.error("Can't write session token, please use https url to access this page"),kt());else throw rt&&(a.loading=j.autoConnect),a.open=j.autoConnect,a.user=null,a.provider="",a.walletOS="",new ErrorToken("Invalid token");return{data:mt,status:$t}}catch(mt){throw console.error("SessionProvider.refresh error",mt),a.open=!1,a.error=mt.message,((pt=mt==null?void 0:mt.response)==null?void 0:pt.status)===400?new ErrorToken("Invalid token"):mt}finally{rt&&(a.loading=!1)}}),zt=useMemoizedFn(async(rt=!1,st=!1)=>{const ut=getVisitorId$2()||"",pt=()=>Ct.post(withQuery(joinURL(j.prefix,"/refreshSession"),{visitorId:ut}),null,{headers:{authorization:`Bearer ${encodeURIComponent(At())}`}});dt(void 0);try{await jt({showProgress:rt,requestFn:pt,onlyRefreshToken:st}),ft(0)}catch(mt){mt instanceof ErrorToken?(console.warn("refresh token failed, remove all tokens"),ft(0),kt()):(console.error("refresh token failed, unexpected error:",mt),ft(ct+1),await sleep$1(INTERVAL_TIME),ct>=MAX_RETRY_COUNT&&(ft(0),kt()))}finally{dt(INTERVAL_TIME)}}),Gt=useMemoizedFn((rt=!1)=>{if(tt)return;const st=yt();let ut=rt;const pt=new Date().getTime();if(st)try{const{exp:mt,iat:$t}=o(st);mt*1e3-pt<pt-$t*1e3&&(ut=!0)}catch{ut=!0}else ut=!0;ut&&(At()?zt(!1,!0):(Bt(),a.user&&(a.user=null)))}),tn=useMemoizedFn(async({showProgress:rt=!1,forceRefreshToken:st=!1}={})=>{const ut=getVisitorId$2()||"",pt=()=>Pt.get(withQuery(joinURL(j.prefix,"/session"),{visitorId:ut}));try{if(st)throw new ErrorToken("need force refresh token");await jt({showProgress:rt,requestFn:pt})}catch(mt){mt instanceof ErrorToken&&(console.warn("try to refresh token"),await zt())}}),hn=useMemoizedFn(()=>{if(a.initialized&&a.user)try{Gt()}catch{}}),wt=useMemoizedFn(rt=>{const st=Array.isArray(rt)?rt[0]:rt,{loginToken:ut,sessionToken:pt,refreshToken:mt,visitorId:$t,encrypted:xt=!0}=st,vt=ut||pt;vt&&(Tt(xt?decrypt(vt):vt),mt&&Rt(xt?decrypt(mt):mt)),$t&&setVisitorId(xt?decrypt($t):$t)});return useInterval$1(()=>{Kt(),Gt()},ht,{immediate:!0}),{renewToken:hn,handleRefreshUser:tn,handleRefreshToken:zt,handleLoginResult:wt,decrypt,removeToken:kt,clearSession:Bt,getSessionToken:yt,getRefreshToken:At,setRefreshToken:Rt,setSessionToken:Tt,service:Pt}}var pathToRegexp$2={exports:{}},isarray$2=Array.isArray||function(a){return Object.prototype.toString.call(a)=="[object Array]"},isarray$1=isarray$2;pathToRegexp$2.exports=pathToRegexp;pathToRegexp$2.exports.parse=parse$f;pathToRegexp$2.exports.compile=compile;pathToRegexp$2.exports.tokensToFunction=tokensToFunction;pathToRegexp$2.exports.tokensToRegExp=tokensToRegExp;var PATH_REGEXP=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function parse$f(a,j){for(var _e=[],et=0,nt=0,tt="",ot=j&&j.delimiter||"/",ct;(ct=PATH_REGEXP.exec(a))!=null;){var ft=ct[0],ht=ct[1],dt=ct.index;if(tt+=a.slice(nt,dt),nt=dt+ft.length,ht){tt+=ht[1];continue}var yt=a[nt],Tt=ct[2],St=ct[3],At=ct[4],Rt=ct[5],It=ct[6],Ct=ct[7];tt&&(_e.push(tt),tt="");var kt=Tt!=null&&yt!=null&&yt!==Tt,Pt=It==="+"||It==="*",Bt=It==="?"||It==="*",Kt=Tt||ot,jt=At||Rt,zt=Tt||(typeof _e[_e.length-1]=="string"?_e[_e.length-1]:"");_e.push({name:St||et++,prefix:Tt||"",delimiter:Kt,optional:Bt,repeat:Pt,partial:kt,asterisk:!!Ct,pattern:jt?escapeGroup(jt):Ct?".*":restrictBacktrack(Kt,zt)})}return nt<a.length&&(tt+=a.substr(nt)),tt&&_e.push(tt),_e}function restrictBacktrack(a,j){return!j||j.indexOf(a)>-1?"[^"+escapeString(a)+"]+?":escapeString(j)+"|(?:(?!"+escapeString(j)+")[^"+escapeString(a)+"])+?"}function compile(a,j){return tokensToFunction(parse$f(a,j),j)}function encodeURIComponentPretty(a){return encodeURI(a).replace(/[\/?#]/g,function(j){return"%"+j.charCodeAt(0).toString(16).toUpperCase()})}function encodeAsterisk(a){return encodeURI(a).replace(/[?#]/g,function(j){return"%"+j.charCodeAt(0).toString(16).toUpperCase()})}function tokensToFunction(a,j){for(var _e=new Array(a.length),et=0;et<a.length;et++)typeof a[et]=="object"&&(_e[et]=new RegExp("^(?:"+a[et].pattern+")$",flags(j)));return function(nt,tt){for(var ot="",ct=nt||{},ft=tt||{},ht=ft.pretty?encodeURIComponentPretty:encodeURIComponent,dt=0;dt<a.length;dt++){var yt=a[dt];if(typeof yt=="string"){ot+=yt;continue}var Tt=ct[yt.name],St;if(Tt==null)if(yt.optional){yt.partial&&(ot+=yt.prefix);continue}else throw new TypeError('Expected "'+yt.name+'" to be defined');if(isarray$1(Tt)){if(!yt.repeat)throw new TypeError('Expected "'+yt.name+'" to not repeat, but received `'+JSON.stringify(Tt)+"`");if(Tt.length===0){if(yt.optional)continue;throw new TypeError('Expected "'+yt.name+'" to not be empty')}for(var At=0;At<Tt.length;At++){if(St=ht(Tt[At]),!_e[dt].test(St))throw new TypeError('Expected all "'+yt.name+'" to match "'+yt.pattern+'", but received `'+JSON.stringify(St)+"`");ot+=(At===0?yt.prefix:yt.delimiter)+St}continue}if(St=yt.asterisk?encodeAsterisk(Tt):ht(Tt),!_e[dt].test(St))throw new TypeError('Expected "'+yt.name+'" to match "'+yt.pattern+'", but received "'+St+'"');ot+=yt.prefix+St}return ot}}function escapeString(a){return a.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function escapeGroup(a){return a.replace(/([=!:$\/()])/g,"\\$1")}function attachKeys(a,j){return a.keys=j,a}function flags(a){return a&&a.sensitive?"":"i"}function regexpToRegexp(a,j){var _e=a.source.match(/\((?!\?)/g);if(_e)for(var et=0;et<_e.length;et++)j.push({name:et,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return attachKeys(a,j)}function arrayToRegexp(a,j,_e){for(var et=[],nt=0;nt<a.length;nt++)et.push(pathToRegexp(a[nt],j,_e).source);var tt=new RegExp("(?:"+et.join("|")+")",flags(_e));return attachKeys(tt,j)}function stringToRegexp(a,j,_e){return tokensToRegExp(parse$f(a,_e),j,_e)}function tokensToRegExp(a,j,_e){isarray$1(j)||(_e=j||_e,j=[]),_e=_e||{};for(var et=_e.strict,nt=_e.end!==!1,tt="",ot=0;ot<a.length;ot++){var ct=a[ot];if(typeof ct=="string")tt+=escapeString(ct);else{var ft=escapeString(ct.prefix),ht="(?:"+ct.pattern+")";j.push(ct),ct.repeat&&(ht+="(?:"+ft+ht+")*"),ct.optional?ct.partial?ht=ft+"("+ht+")?":ht="(?:"+ft+"("+ht+"))?":ht=ft+"("+ht+")",tt+=ht}}var dt=escapeString(_e.delimiter||"/"),yt=tt.slice(-dt.length)===dt;return et||(tt=(yt?tt.slice(0,-dt.length):tt)+"(?:"+dt+"(?=$))?"),nt?tt+="$":tt+=et&&yt?"":"(?="+dt+"|$)",attachKeys(new RegExp("^"+tt,flags(_e)),j)}function pathToRegexp(a,j,_e){return isarray$1(j)||(_e=j||_e,j=[]),_e=_e||{},a instanceof RegExp?regexpToRegexp(a,j):isarray$1(a)?arrayToRegexp(a,j,_e):stringToRegexp(a,j,_e)}var pathToRegexpExports=pathToRegexp$2.exports;const pathToRegexp$1=getDefaultExportFromCjs$1(pathToRegexpExports);function useProtectedRoutes({protectedRoutes:a=[]}){const j=useCreation(()=>a.map(et=>pathToRegexp$1(et,[])),[a]);return{checkMatch:useMemoizedFn((et=window.location.pathname)=>j.some(nt=>nt.exec(et)))}}const SessionContext$1=reactExports.createContext();var dist$1={},eventemitter3={exports:{}};(function(a){var j=Object.prototype.hasOwnProperty,_e="~";function et(){}Object.create&&(et.prototype=Object.create(null),new et().__proto__||(_e=!1));function nt(ft,ht,dt){this.fn=ft,this.context=ht,this.once=dt||!1}function tt(ft,ht,dt,yt,Tt){if(typeof dt!="function")throw new TypeError("The listener must be a function");var St=new nt(dt,yt||ft,Tt),At=_e?_e+ht:ht;return ft._events[At]?ft._events[At].fn?ft._events[At]=[ft._events[At],St]:ft._events[At].push(St):(ft._events[At]=St,ft._eventsCount++),ft}function ot(ft,ht){--ft._eventsCount===0?ft._events=new et:delete ft._events[ht]}function ct(){this._events=new et,this._eventsCount=0}ct.prototype.eventNames=function(){var ht=[],dt,yt;if(this._eventsCount===0)return ht;for(yt in dt=this._events)j.call(dt,yt)&&ht.push(_e?yt.slice(1):yt);return Object.getOwnPropertySymbols?ht.concat(Object.getOwnPropertySymbols(dt)):ht},ct.prototype.listeners=function(ht){var dt=_e?_e+ht:ht,yt=this._events[dt];if(!yt)return[];if(yt.fn)return[yt.fn];for(var Tt=0,St=yt.length,At=new Array(St);Tt<St;Tt++)At[Tt]=yt[Tt].fn;return At},ct.prototype.listenerCount=function(ht){var dt=_e?_e+ht:ht,yt=this._events[dt];return yt?yt.fn?1:yt.length:0},ct.prototype.emit=function(ht,dt,yt,Tt,St,At){var Rt=_e?_e+ht:ht;if(!this._events[Rt])return!1;var It=this._events[Rt],Ct=arguments.length,kt,Pt;if(It.fn){switch(It.once&&this.removeListener(ht,It.fn,void 0,!0),Ct){case 1:return It.fn.call(It.context),!0;case 2:return It.fn.call(It.context,dt),!0;case 3:return It.fn.call(It.context,dt,yt),!0;case 4:return It.fn.call(It.context,dt,yt,Tt),!0;case 5:return It.fn.call(It.context,dt,yt,Tt,St),!0;case 6:return It.fn.call(It.context,dt,yt,Tt,St,At),!0}for(Pt=1,kt=new Array(Ct-1);Pt<Ct;Pt++)kt[Pt-1]=arguments[Pt];It.fn.apply(It.context,kt)}else{var Bt=It.length,Kt;for(Pt=0;Pt<Bt;Pt++)switch(It[Pt].once&&this.removeListener(ht,It[Pt].fn,void 0,!0),Ct){case 1:It[Pt].fn.call(It[Pt].context);break;case 2:It[Pt].fn.call(It[Pt].context,dt);break;case 3:It[Pt].fn.call(It[Pt].context,dt,yt);break;case 4:It[Pt].fn.call(It[Pt].context,dt,yt,Tt);break;default:if(!kt)for(Kt=1,kt=new Array(Ct-1);Kt<Ct;Kt++)kt[Kt-1]=arguments[Kt];It[Pt].fn.apply(It[Pt].context,kt)}}return!0},ct.prototype.on=function(ht,dt,yt){return tt(this,ht,dt,yt,!1)},ct.prototype.once=function(ht,dt,yt){return tt(this,ht,dt,yt,!0)},ct.prototype.removeListener=function(ht,dt,yt,Tt){var St=_e?_e+ht:ht;if(!this._events[St])return this;if(!dt)return ot(this,St),this;var At=this._events[St];if(At.fn)At.fn===dt&&(!Tt||At.once)&&(!yt||At.context===yt)&&ot(this,St);else{for(var Rt=0,It=[],Ct=At.length;Rt<Ct;Rt++)(At[Rt].fn!==dt||Tt&&!At[Rt].once||yt&&At[Rt].context!==yt)&&It.push(At[Rt]);It.length?this._events[St]=It.length===1?It[0]:It:ot(this,St)}return this},ct.prototype.removeAllListeners=function(ht){var dt;return ht?(dt=_e?_e+ht:ht,this._events[dt]&&ot(this,dt)):(this._events=new et,this._eventsCount=0),this},ct.prototype.off=ct.prototype.removeListener,ct.prototype.addListener=ct.prototype.on,ct.prefixed=_e,ct.EventEmitter=ct,a.exports=ct})(eventemitter3);var eventemitter3Exports=eventemitter3.exports,priorityQueue={},lowerBound$1={};Object.defineProperty(lowerBound$1,"__esModule",{value:!0});function lowerBound(a,j,_e){let et=0,nt=a.length;for(;nt>0;){const tt=nt/2|0;let ot=et+tt;_e(a[ot],j)<=0?(et=++ot,nt-=tt+1):nt=tt}return et}lowerBound$1.default=lowerBound;Object.defineProperty(priorityQueue,"__esModule",{value:!0});const lower_bound_1=lowerBound$1;class PriorityQueue{constructor(){this._queue=[]}enqueue(j,_e){_e=Object.assign({priority:0},_e);const et={priority:_e.priority,run:j};if(this.size&&this._queue[this.size-1].priority>=_e.priority){this._queue.push(et);return}const nt=lower_bound_1.default(this._queue,et,(tt,ot)=>ot.priority-tt.priority);this._queue.splice(nt,0,et)}dequeue(){const j=this._queue.shift();return j==null?void 0:j.run}filter(j){return this._queue.filter(_e=>_e.priority===j.priority).map(_e=>_e.run)}get size(){return this._queue.length}}priorityQueue.default=PriorityQueue;Object.defineProperty(dist$1,"__esModule",{value:!0});const EventEmitter$4=eventemitter3Exports,p_timeout_1=pTimeoutExports,priority_queue_1=priorityQueue,empty=()=>{},timeoutError=new p_timeout_1.TimeoutError;class PQueue extends EventEmitter$4{constructor(j){var _e,et,nt,tt;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=empty,this._resolveIdle=empty,j=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:priority_queue_1.default},j),!(typeof j.intervalCap=="number"&&j.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(et=(_e=j.intervalCap)===null||_e===void 0?void 0:_e.toString())!==null&&et!==void 0?et:""}\` (${typeof j.intervalCap})`);if(j.interval===void 0||!(Number.isFinite(j.interval)&&j.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(tt=(nt=j.interval)===null||nt===void 0?void 0:nt.toString())!==null&&tt!==void 0?tt:""}\` (${typeof j.interval})`);this._carryoverConcurrencyCount=j.carryoverConcurrencyCount,this._isIntervalIgnored=j.intervalCap===1/0||j.interval===0,this._intervalCap=j.intervalCap,this._interval=j.interval,this._queue=new j.queueClass,this._queueClass=j.queueClass,this.concurrency=j.concurrency,this._timeout=j.timeout,this._throwOnTimeout=j.throwOnTimeout===!0,this._isPaused=j.autoStart===!1}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=empty,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=empty,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){const j=Date.now();if(this._intervalId===void 0){const _e=this._intervalEnd-j;if(_e<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},_e)),!0}return!1}_tryToStartAnother(){if(this._queue.size===0)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){const j=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){const _e=this._queue.dequeue();return _e?(this.emit("active"),_e(),j&&this._initializeIntervalIfNeeded(),!0):!1}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||this._intervalId!==void 0||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){this._intervalCount===0&&this._pendingCount===0&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(j){if(!(typeof j=="number"&&j>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${j}\` (${typeof j})`);this._concurrency=j,this._processQueue()}async add(j,_e={}){return new Promise((et,nt)=>{const tt=async()=>{this._pendingCount++,this._intervalCount++;try{const ot=this._timeout===void 0&&_e.timeout===void 0?j():p_timeout_1.default(Promise.resolve(j()),_e.timeout===void 0?this._timeout:_e.timeout,()=>{(_e.throwOnTimeout===void 0?this._throwOnTimeout:_e.throwOnTimeout)&&nt(timeoutError)});et(await ot)}catch(ot){nt(ot)}this._next()};this._queue.enqueue(tt,_e),this._tryToStartAnother(),this.emit("add")})}async addAll(j,_e){return Promise.all(j.map(async et=>this.add(et,_e)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(j=>{const _e=this._resolveEmpty;this._resolveEmpty=()=>{_e(),j()}})}async onIdle(){if(!(this._pendingCount===0&&this._queue.size===0))return new Promise(j=>{const _e=this._resolveIdle;this._resolveIdle=()=>{_e(),j()}})}get size(){return this._queue.size}sizeBy(j){return this._queue.filter(j).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(j){this._timeout=j}}var _default$2=dist$1.default=PQueue;const data$s={width:24,height:24,body:'<path fill="currentColor" d="M10 22L0 12L10 2l1.775 1.775L3.55 12l8.225 8.225L10 22Z"/>'},data$r={width:24,height:24,body:'<path fill="currentColor" d="m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 13.4Z"/>'},Transition=reactExports.forwardRef(function a(j,_e){return jsxRuntimeExports.jsx(Slide,{direction:"up",ref:_e,...j})});function withDialog(a){function j({popup:_e,open:et,dialogStyle:nt,responsive:tt,...ot}){const ct=useMediaQuery("(max-width:640px)");if(!_e&&!tt)return jsxRuntimeExports.jsx(a,{...ot});const ft=(dt,yt)=>{},ht=tt?!0:et;return jsxRuntimeExports.jsx(Dialog$1,{open:ht,fullScreen:ct,maxWidth:"lg",onClose:ft,...ct?{TransitionComponent:Transition,PaperProps:{sx:{borderRadius:3,borderBottomLeftRadius:0,borderBottomRightRadius:0}}}:{PaperProps:{sx:{borderRadius:3}}},children:jsxRuntimeExports.jsx(DialogContent,{sx:{maxWidth:"100%",maxHeight:"100%",p:"0px !important"},children:jsxRuntimeExports.jsx(Box,{sx:{maxWidth:"100%",width:ct?"100%":500,height:ct?"100%":"auto"},children:jsxRuntimeExports.jsx(a,{...ot,hideCloseButton:(ot==null?void 0:ot.hideCloseButton)??!1,isFullScreen:ct,mode:"dialog"})})})})}return j.propTypes={responsive:PropTypes.bool,popup:PropTypes.bool,open:PropTypes.bool,dialogStyle:PropTypes.object},j.defaultProps={responsive:!1,popup:!1,open:!1,dialogStyle:{}},j}var useIdle$1={},cjs={};Object.defineProperty(cjs,"__esModule",{value:!0});function throttle(a,j,_e,et){var nt,tt=!1,ot=0;function ct(){nt&&clearTimeout(nt)}function ft(){ct(),tt=!0}typeof j!="boolean"&&(et=_e,_e=j,j=void 0);function ht(){for(var dt=arguments.length,yt=new Array(dt),Tt=0;Tt<dt;Tt++)yt[Tt]=arguments[Tt];var St=this,At=Date.now()-ot;if(tt)return;function Rt(){ot=Date.now(),_e.apply(St,yt)}function It(){nt=void 0}et&&!nt&&Rt(),ct(),et===void 0&&At>a?Rt():j!==!0&&(nt=setTimeout(et?It:Rt,et===void 0?a-At:a))}return ht.cancel=ft,ht}function debounce(a,j,_e){return _e===void 0?throttle(a,j,!1):throttle(a,_e,j!==!1)}cjs.debounce=debounce;cjs.throttle=throttle;var util$4={};Object.defineProperty(util$4,"__esModule",{value:!0});util$4.isNavigator=util$4.isBrowser=util$4.off=util$4.on=util$4.noop=void 0;var noop$1=function(){};util$4.noop=noop$1;function on(a){for(var j=[],_e=1;_e<arguments.length;_e++)j[_e-1]=arguments[_e];a&&a.addEventListener&&a.addEventListener.apply(a,j)}util$4.on=on;function off(a){for(var j=[],_e=1;_e<arguments.length;_e++)j[_e-1]=arguments[_e];a&&a.removeEventListener&&a.removeEventListener.apply(a,j)}util$4.off=off;util$4.isBrowser=typeof window<"u";util$4.isNavigator=typeof navigator<"u";Object.defineProperty(useIdle$1,"__esModule",{value:!0});var react_1=reactExports,throttle_debounce_1=cjs,util_1$3=util$4,defaultEvents=["mousemove","mousedown","resize","keydown","touchstart","wheel"],oneMinute=6e4,useIdle=function(a,j,_e){a===void 0&&(a=oneMinute),j===void 0&&(j=!1),_e===void 0&&(_e=defaultEvents);var et=react_1.useState(j),nt=et[0],tt=et[1];return react_1.useEffect(function(){for(var ot=!0,ct,ft=nt,ht=function(St){ot&&(ft=St,tt(St))},dt=throttle_debounce_1.throttle(50,function(){ft&&ht(!1),clearTimeout(ct),ct=setTimeout(function(){return ht(!0)},a)}),yt=function(){document.hidden||dt()},Tt=0;Tt<_e.length;Tt++)util_1$3.on(window,_e[Tt],dt);return util_1$3.on(document,"visibilitychange",yt),ct=setTimeout(function(){return ht(!0)},a),function(){ot=!1;for(var St=0;St<_e.length;St++)util_1$3.off(window,_e[St],dt);util_1$3.off(document,"visibilitychange",yt)}},[a,_e]),nt},_default$1=useIdle$1.default=useIdle;const DEFAULT_MAX_IDLE_TIME=1e3*60*30,STORAGE_KEY_DISABLED="wallet_sw_keeper_disabled";let id$1;const injectIframe=a=>{const j=document.createElement("iframe");j.title="abt wallet",j.id=id$1,j.style.width=0,j.style.height=0,j.style.border=0,j.style.display="block",j.style.position="absolute",j.style.top=0,j.src=`${a}?action=iframe`,document.body.appendChild(j)},removeIframe=()=>{const a=document.getElementById(id$1);a&&document.body.removeChild(a)},cleanup=()=>{removeIframe(),id$1=null},enable=a=>{id$1||(id$1=`web_wallet_sw_keeper_${Date.now()}`,injectIframe(a))};function WebWalletSWKeeper({webWalletUrl:a,maxIdleTime:j}){const _e=reactExports.useRef(!!id$1),et=_default$1(j),nt=()=>{_e.current||cleanup()};return reactExports.useEffect(()=>{et?nt():enable(a)},[et]),reactExports.useEffect(()=>()=>nt(),[]),null}WebWalletSWKeeper.propTypes={webWalletUrl:PropTypes.string.isRequired,maxIdleTime:PropTypes.number};WebWalletSWKeeper.defaultProps={maxIdleTime:DEFAULT_MAX_IDLE_TIME};const withWebWalletSWKeeper=a=>function({webWalletUrl:_e,maxIdleTime:et,...nt}){const tt=useBrowser();_e=_e||getWebWalletUrl$1();const[ot]=useLocalStorageState(STORAGE_KEY_DISABLED,{defaultValue:1}),ct=detectWalletExtension(),ft=checkSameProtocol(_e),ht=tt.wallet;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!ot&&!ct&&ft&&!ht&&jsxRuntimeExports.jsx(WebWalletSWKeeper,{webWalletUrl:_e,maxIdleTime:et}),jsxRuntimeExports.jsx(a,{webWalletUrl:_e,...nt})]})},BlockletContext$1=reactExports.createContext(),{Provider:Provider$6,Consumer:Consumer$6}=BlockletContext$1;function BlockletProvider$1({children:a,baseUrl:j,loading:_e}){const[et,nt]=reactExports.useState(null),tt=useMemoizedFn(async()=>{if(!j||window.location.href.startsWith(j))throw new Error("no blocklet data");const ot=new URL("__blocklet__.js",j);return ot.searchParams.set("type","json"),await(await fetch(ot.href)).json()});return useAsyncEffect(async()=>{try{const ot=await tt();nt(ot)}catch{const ot=globalThis.blocklet||globalThis.env;nt(ot)}},[j]),jsxRuntimeExports.jsx(Provider$6,{value:et,children:et?a:_e||null})}function useBlockletContext$2(){return{blocklet:reactExports.useContext(BlockletContext$1)}}BlockletProvider$1.propTypes={baseUrl:PropTypes.string,children:PropTypes.any.isRequired,loading:PropTypes.any};BlockletProvider$1.defaultProps={baseUrl:"",loading:null};function Loading(){return jsxRuntimeExports.jsx(Box,{sx:{height:"100%",minWidth:"200px",minHeight:"200px",display:"flex",justifyContent:"center",alignItems:"center"},children:jsxRuntimeExports.jsx(CircularProgress,{sx:{color:colors$1.foregroundsFgInteractive}})})}function withBlocklet(a){function j({...et}){const{blocklet:nt}=useBlockletContext$2();return jsxRuntimeExports.jsx(a,{...et,blocklet:nt})}function _e({baseUrl:et,...nt}){return jsxRuntimeExports.jsx(BlockletProvider$1,{baseUrl:et,loading:jsxRuntimeExports.jsx(Loading,{}),children:jsxRuntimeExports.jsx(j,{baseUrl:et,...nt})})}return _e}const keyPair=tweetnacl.box.keyPair();function useSecurity(){const[a,j]=useLocalStorageState("__encKey",{defaultValue:encodeKey(keyPair.publicKey),deserializer:ot=>ot,serializer:ot=>ot}),[_e,et]=useLocalStorageState("__decKey",{defaultValue:encodeKey(keyPair.secretKey),deserializer:ot=>ot,serializer:ot=>ot});return reactExports.useEffect(()=>{localStorage.getItem("__encKey")||j(encodeKey(keyPair.publicKey)),localStorage.getItem("__decKey")||et(encodeKey(keyPair.secretKey))},[]),{encryptKey:a,decryptKey:_e,decrypt:(ot,ct=a,ft=_e)=>decrypt$1(ot,ct,ft),encrypt:(ot,ct=a)=>encrypt(ot,ct)}}function useApps({blocklet:a,action:j,sourceAppPid:_e,connectState:et,enableSwitchApp:nt}){var ht,dt;const tt=reactExports.useContext(SessionContext$1),ot=useCreation(()=>{var yt;return nt===!0?!0:!(nt===!1||(yt=tt==null?void 0:tt.session)!=null&&yt.user&&!["login"].includes(j))},[j,(ht=tt==null?void 0:tt.session)==null?void 0:ht.user]),ct=useCreation(()=>{if(isUndefined$2(_e)){const yt=getFederatedEnabled(a),Tt=getMaster(a);if(yt&&(Tt!=null&&Tt.appPid))return Tt.appPid}return _e},[_e]);return{appInfoList:useCreation(()=>getApps(a).filter(Tt=>{var St;return ot?!0:isUndefined$2(_e)?isUndefined$2(et.sourceAppPid)?(St=tt==null?void 0:tt.session)!=null&&St.user?Tt.sourceAppPid===tt.session.user.sourceAppPid:Tt.sourceAppPid===ct:Tt.sourceAppPid===et.sourceAppPid:Tt.sourceAppPid===_e}),[ot,_e,et.sourceAppPid,ct,(dt=tt==null?void 0:tt.session)==null?void 0:dt.user]),autoGenerateSourceAppPid:ct,canSwitchApp:ot}}const translations$3={en:{generateError:"Request new qrcode failed",checkError:"Status check failed!",scanned:"Use your wallet to continue operation...",mfaCode:"We sent you a verification request on your DID Wallet, enter the digits below to confirm.",refresh:"Refresh",open:"Open in DID Wallet",openDidConnect:"Open DID Connect",error:"We encountered some errors when processing the request",invalidSessionStatus:"Invalid session status",success:"Success",wait:"Wait a second",waiting:"Waiting for next workflow to complete...",failed:"Failed",oops:"Oops",forbidden:"Login user and wallet user mismatch, please logout, then login to retry",webWallet:"Auth with Web Wallet",cancel:"Cancel",close:"Close",retry:"Retry",retryForbidden:"Please start this workflow from the beginning",getWallet:"Don't have the DID Wallet? Get it now.",back:"Back",connect:"Use the following to connect",connecting:"Connecting to your",connectingSuffix:"Or use the following to connect",connected:"Connected to your",busyTitle:"Busy",busyDesc:"Busy processing another DID Connect request",loginWithBefore:"Login with ",loginWithAfter:"",bindOAuth:"Bind third party login",bind:"Bind ",loginOAuthFailed:"Login with third party failed",loginWithAnotherAccount:"Login with another account",quickLoginDescription:"The following accounts have been detected in the current unified login environment. Click the following accounts to log in quickly.",quickLogin:"Login {appName} with {masterAppName} account",sessionFrom:"Session founded from {appName} blocklet",loginWithThisAccount:"Click to login with this account",chooseAccount:"Choose an account",lostPassport:"Lost your passport?",lostPassportTips:"If you have lost your passport, you can click here to claim back.",download:"Download",downloadTips:"Don't have DID Wallet ?",scanWithWallet:"Easy Login with QR Code Scanning",openInWallet:"Open in DID Wallet",webExtension:"Web Wallet Extension",connectButton:"Connect",switch:"Switch",requestConnect:"Requesting Connection",continueInWallet:"Please continue in the DID Wallet",loginWithBelow:"Login using the following methods",otherAccount:"Other account"},zh:{generateError:"二维码生成失败",checkError:"扫码状态检查失败",scanned:"请到您的钱包上继续操作……",mfaCode:"我们给你的 DID 钱包发送了一个二次验证请求,请输入下面的数字完成验证",refresh:"刷新",open:"在 DID 钱包中打开",openDidConnect:"打开 DID Connect",error:"服务器开小差了!",invalidSessionStatus:"无效的会话状态",success:"成功",failed:"失败",wait:"请稍候",waiting:"正在等待下个流程完成...",forbidden:"登录用户和扫码用户不匹配,为保障安全,请退出后重新登录",oops:"哎呀",webWallet:"使用 Web Wallet 验证",cancel:"取消",close:"关闭",retry:"重试",retryForbidden:"请关闭当前弹窗并重新开始当前流程",getWallet:"还没有 DID Wallet? 现在下载.",back:"返回",connect:"请选择以下方式之一连接",connecting:"正在自动连接您的",connectingSuffix:"或选择以下方式手动连接",connected:"已连接您的",busyTitle:"钱包繁忙",busyDesc:"正在处理其他请求",loginWithBefore:"使用",loginWithAfter:"登录",bindOAuth:"绑定第三方登录",bind:"绑定",loginOAuthFailed:"第三方登录失败",loginWithAnotherAccount:"使用其他账户登录",quickLoginDescription:"检测到当前统一登录环境中已存在下列账户,点击以下账户,进行快捷登录",quickLogin:"使用 {masterAppName} 账户登录 {appName}",sessionFrom:"发现自 {appName} 应用",loginWithThisAccount:"点击使用此账号登录",chooseAccount:"选择一个账号",lostPassport:"找回通行证",lostPassportTips:"如果您丢失了登录通行证,您可以点击这里来找回。",download:"下载",downloadTips:"没有 DID Wallet ?",scanWithWallet:"使用 DID Wallet 扫码二维码",openInWallet:"使用 DID Wallet 打开",webExtension:"浏览器插件",connectButton:"连接",switch:"切换",requestConnect:"正在请求连接",continueInWallet:"请在 DID Wallet 中继续完成您的操作",loginWithBelow:"使用以下方式进行登录",otherAccount:"其他账号"}},StateContext=reactExports.createContext({isWalletWebview:!1,isMobile:!1,matchSmallScreen:!1}),{Provider:Provider$5,Consumer:Consumer$5}=StateContext;function StateProvider({children:a,blocklet:j,action:_e,extraParams:et,locale:nt,...tt}){var Kt;const ot=useMemoizedFn((jt,zt={})=>translate(translations$3,jt,nt,"en",zt)),ct=reactExports.useContext(SessionContext$1),ft=useReactive({sourceAppPid:void 0,status:"created",autoActiveWebview:!0}),ht=reactExports.useRef({cancelCount:0}),dt=useBrowser(),{appInfoList:yt,autoGenerateSourceAppPid:Tt,canSwitchApp:St}=useApps({blocklet:j,connectState:ft,action:_e,sourceAppPid:et==null?void 0:et.sourceAppPid,enableSwitchApp:(et==null?void 0:et.forceSwitch)||(et==null?void 0:et.enableSwitchApp)}),At=reactExports.useRef(null),Rt=useSize(At),Ct=((Rt==null?void 0:Rt.width)||0)<500,kt=useCreation(()=>{var jt,zt;return St?{...et,sourceAppPid:isUndefined$2(ft.sourceAppPid)?Tt:ft.sourceAppPid}:(jt=ct==null?void 0:ct.session)!=null&&jt.user?isUndefined$2(et==null?void 0:et.sourceAppPid)?{...et,sourceAppPid:(zt=ct.session.user)==null?void 0:zt.sourceAppPid}:et:{...et,sourceAppPid:Tt}},[St,et,ft.sourceAppPid,_e,Tt,(Kt=ct==null?void 0:ct.session)==null?void 0:Kt.user]),Pt=useMemoizedFn(jt=>{ft.status=jt||"created"}),Bt={isWalletWebview:dt.wallet,isMobile:dt.mobile.any,matchSmallScreen:Ct,connectState:ft,staticState:ht,reactiveState:ft,appInfoList:yt,extraParams:kt,blocklet:j,t:ot,locale:nt,changeStatus:Pt};return jsxRuntimeExports.jsx(Provider$5,{value:Bt,children:jsxRuntimeExports.jsx(Box,{...tt,ref:At,children:a})})}StateProvider.propTypes={children:PropTypes.any.isRequired,blocklet:PropTypes.object.isRequired,action:PropTypes.string.isRequired,sourceAppPid:PropTypes.string,extraParams:PropTypes.object,locale:PropTypes.string};StateProvider.defaultProps={sourceAppPid:void 0,extraParams:{},locale:"en"};function useStateContext(){return reactExports.useContext(StateContext)}const data$q={width:24,height:24,hidden:!0,body:'<path fill="currentColor" d="M12 11q.825 0 1.413-.588Q14 9.825 14 9t-.587-1.413Q12.825 7 12 7q-.825 0-1.412.587Q10 8.175 10 9q0 .825.588 1.412Q11.175 11 12 11Zm0 2q-1.65 0-2.825-1.175Q8 10.65 8 9q0-1.65 1.175-2.825Q10.35 5 12 5q1.65 0 2.825 1.175Q16 7.35 16 9q0 1.65-1.175 2.825Q13.65 13 12 13Zm0 11q-2.475 0-4.662-.938q-2.188-.937-3.825-2.574Q1.875 18.85.938 16.663Q0 14.475 0 12t.938-4.663q.937-2.187 2.575-3.825Q5.15 1.875 7.338.938Q9.525 0 12 0t4.663.938q2.187.937 3.825 2.574q1.637 1.638 2.574 3.825Q24 9.525 24 12t-.938 4.663q-.937 2.187-2.574 3.825q-1.638 1.637-3.825 2.574Q14.475 24 12 24Zm0-2q1.8 0 3.375-.575T18.25 19.8q-.825-.925-2.425-1.612q-1.6-.688-3.825-.688t-3.825.688q-1.6.687-2.425 1.612q1.3 1.05 2.875 1.625T12 22Zm-7.7-3.6q1.2-1.3 3.225-2.1q2.025-.8 4.475-.8q2.45 0 4.463.8q2.012.8 3.212 2.1q1.1-1.325 1.713-2.95Q22 13.825 22 12q0-2.075-.788-3.887q-.787-1.813-2.15-3.175q-1.362-1.363-3.175-2.151Q14.075 2 12 2q-2.05 0-3.875.787q-1.825.788-3.187 2.151Q3.575 6.3 2.788 8.113Q2 9.925 2 12q0 1.825.6 3.463q.6 1.637 1.7 2.937Z"/>'},data$p={width:24,height:24,body:'<path fill="currentColor" d="M16.15 13H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.15L13.3 8.15q-.3-.3-.288-.7t.288-.7q.3-.3.713-.313t.712.288L19.3 11.3q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.575 4.575q-.3.3-.712.288t-.713-.313q-.275-.3-.288-.7t.288-.7L16.15 13Z"/>'};var zhCn={exports:{}};(function(a,j){(function(_e,et){a.exports=et(dayjs_minExports)})(commonjsGlobal,function(_e){function et(ot){return ot&&typeof ot=="object"&&"default"in ot?ot:{default:ot}}var nt=et(_e),tt={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(ot,ct){return ct==="W"?ot+"周":ot+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(ot,ct){var ft=100*ot+ct;return ft<600?"凌晨":ft<900?"早上":ft<1100?"上午":ft<1300?"中午":ft<1800?"下午":"晚上"}};return nt.default.locale(tt,null,!0),tt})})(zhCn);var updateLocale$1={exports:{}};(function(a,j){(function(_e,et){a.exports=et()})(commonjsGlobal,function(){return function(_e,et,nt){nt.updateLocale=function(tt,ot){var ct=nt.Ls[tt];if(ct)return(ot?Object.keys(ot):[]).forEach(function(ft){ct[ft]=ot[ft]}),ct}}})})(updateLocale$1);var updateLocaleExports=updateLocale$1.exports;const updateLocale=getDefaultExportFromCjs$1(updateLocaleExports);defaultDayjs.extend(localizedFormatPlugin);defaultDayjs.extend(utc$1);defaultDayjs.extend(timezone$1);defaultDayjs.extend(updateLocale);defaultDayjs.extend(relativeTime$1);defaultDayjs.updateLocale("zh-cn",{relativeTime:{future:"%s后",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"}});setDateTool(defaultDayjs);function RelativeTime({value:a,locale:j,withoutSuffix:_e,from:et,to:nt,type:tt,tz:ot,relativeRange:ct,...ft}){if(!a)return"-";const ht=j==="zh"?"zh-cn":"en-us",dt=defaultDayjs(a).locale(ht);ot&&dt.tz(ot);const yt=formatToDatetime$1(a,{locale:ht,tz:ot});let Tt;if(et)Tt=dt.from(et,_e);else if(nt)Tt=dt.to(nt,_e);else if(ct){const Rt=dt.diff(defaultDayjs());Math.abs(Rt)>ct&&(Tt=yt)}Tt||(Tt=dt.fromNow(_e));let St=Tt,At=yt;return tt==="absolute"&&(St=yt,At=Tt),jsxRuntimeExports.jsx(Tooltip,{title:At,placement:"top-end",enterTouchDelay:0,children:jsxRuntimeExports.jsx("span",{...ft,children:St})})}RelativeTime.propTypes={value:PropTypes.oneOfType([PropTypes.string,PropTypes.number]).isRequired,locale:PropTypes.string,withoutSuffix:PropTypes.bool,from:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),to:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),type:PropTypes.oneOf(["relative","absolute"]),tz:PropTypes.string,relativeRange:PropTypes.number};RelativeTime.defaultProps={locale:"en",withoutSuffix:!1,from:"",to:"",type:"relative",tz:void 0,relativeRange:void 0};const data$o={width:24,height:24,body:'<path fill="currentColor" d="M7 7H5a2 2 0 0 0-2 2v8h2v-4h2v4h2V9a2 2 0 0 0-2-2m0 4H5V9h2m7-2h-4v10h2v-4h2a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2m0 4h-2V9h2m6 0v6h1v2h-4v-2h1V9h-1V7h4v2Z"/>'},data$n={width:24,height:24,body:'<path fill="currentColor" d="M5 17q-.425 0-.713-.288T4 16v-4q0-.425.288-.713T5 11q.425 0 .713.288T6 12v4q0 .425-.288.713T5 17Zm4 0q-.825 0-1.413-.588T7 15V9q0-.825.588-1.413T9 7h2q.825 0 1.413.588T13 9v6q0 .825-.588 1.413T11 17H9Zm0-2h2V9H9v6Zm6 2q-.425 0-.713-.288T14 16q0-.425.288-.713T15 15h3v-2h-2q-.825 0-1.413-.588T14 11V9q0-.825.588-1.413T16 7h3q.425 0 .713.288T20 8q0 .425-.288.713T19 9h-3v2h2q.825 0 1.413.588T20 13v2q0 .825-.588 1.413T18 17h-3ZM5 9q-.425 0-.713-.288T4 8q0-.425.288-.713T5 7q.425 0 .713.288T6 8q0 .425-.288.713T5 9Z"/>'},data$m={width:24,height:24,body:'<path fill="currentColor" d="M12 22q-2.05 0-3.875-.788t-3.188-2.15q-1.362-1.362-2.15-3.187T2 12q0-2.075.788-3.888t2.15-3.174Q6.3 3.575 8.124 2.788T12 2q2.075 0 3.888.788t3.174 2.15q1.363 1.362 2.15 3.175T22 12q0 2.05-.788 3.875t-2.15 3.188q-1.362 1.362-3.175 2.15T12 22Zm0-2.05q.65-.9 1.125-1.875T13.9 16h-3.8q.3 1.1.775 2.075T12 19.95Zm-2.6-.4q-.45-.825-.788-1.713T8.05 16H5.1q.725 1.25 1.813 2.175T9.4 19.55Zm5.2 0q1.4-.45 2.488-1.375T18.9 16h-2.95q-.225.95-.562 1.838T14.6 19.55ZM4.25 14h3.4q-.075-.5-.113-.988T7.5 12q0-.525.038-1.012T7.65 10h-3.4q-.125.5-.188.988T4 12q0 .525.063 1.012T4.25 14Zm5.4 0h4.7q.075-.5.113-.988T14.5 12q0-.525-.038-1.012T14.35 10h-4.7q-.075.5-.113.988T9.5 12q0 .525.038 1.012T9.65 14Zm6.7 0h3.4q.125-.5.188-.988T20 12q0-.525-.063-1.012T19.75 10h-3.4q.075.5.113.988T16.5 12q0 .525-.038 1.012T16.35 14Zm-.4-6h2.95q-.725-1.25-1.812-2.175T14.6 4.45q.45.825.788 1.713T15.95 8ZM10.1 8h3.8q-.3-1.1-.775-2.075T12 4.05q-.65.9-1.125 1.875T10.1 8Zm-5 0h2.95q.225-.95.563-1.838T9.4 4.45Q8 4.9 6.912 5.825T5.1 8Z"/>'},data$l={width:24,height:24,body:'<path fill="currentColor" d="M1 18q.225-2.675 1.638-4.925T6.4 9.5L4.55 6.3q-.15-.225-.075-.475T4.8 5.45q.2-.125.45-.05t.4.3L7.5 8.9Q9.65 8 12 8t4.5.9l1.85-3.2q.15-.225.4-.3t.45.05q.25.125.325.375t-.075.475L17.6 9.5q2.35 1.325 3.762 3.575T23 18H1Zm6-2.75q.525 0 .888-.363T8.25 14q0-.525-.363-.888T7 12.75q-.525 0-.888.363T5.75 14q0 .525.363.888T7 15.25Zm10 0q.525 0 .888-.363T18.25 14q0-.525-.363-.888T17 12.75q-.525 0-.888.363T15.75 14q0 .525.363.888t.887.362Z"/>'},data$k={width:24,height:24,body:'<path fill="currentColor" d="M14.6 8.075q0-1.075-.712-1.725T12 5.7q-.725 0-1.313.313t-1.012.912q-.4.575-1.088.663T7.4 7.225q-.35-.325-.388-.8t.238-.9q.8-1.2 2.038-1.863T12 3q2.425 0 3.938 1.375t1.512 3.6q0 1.125-.475 2.025t-1.75 2.125q-.925.875-1.25 1.363T13.55 14.6q-.1.6-.513 1t-.987.4q-.575 0-.988-.388t-.412-.962q0-.975.425-1.788T12.5 11.15q1.275-1.125 1.688-1.738t.412-1.337ZM12 22q-.825 0-1.413-.588T10 20q0-.825.588-1.413T12 18q.825 0 1.413.588T14 20q0 .825-.588 1.413T12 22Z"/>'},data$j={width:24,height:24,body:'<path fill="currentColor" d="M4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.588 1.413T20 20H4ZM20 8l-7.475 4.675q-.125.075-.263.113t-.262.037q-.125 0-.263-.037t-.262-.113L4 8v10h16V8Zm-8 3l8-5H4l8 5ZM4 8v.25v-1.475v.025V6v.8v-.012V8.25V8v10V8Z"/>'};function WalletOSIcon({loading:a,walletOS:j,provider:_e,color:et}){return a?jsxRuntimeExports.jsx(Icon,{icon:data$k,style:{color:"transparent"}}):_e===LOGIN_PROVIDER$1.AUTH0?jsxRuntimeExports.jsx(Icon,{icon:data$j,style:{color:et,transform:"scale(0.85)"}}):j==="ios"?jsxRuntimeExports.jsx(Icon,{icon:data$n,style:{color:et,transform:"scale(1.1)"}}):j==="android"?jsxRuntimeExports.jsx(Icon,{icon:data$l,style:{color:et}}):j==="web"?jsxRuntimeExports.jsx(Icon,{icon:data$m,style:{color:et}}):j==="api"?jsxRuntimeExports.jsx(Icon,{icon:data$o,style:{color:et,transform:"scale(1.05)"}}):null}WalletOSIcon.propTypes={loading:PropTypes.bool,walletOS:PropTypes.string,provider:PropTypes.string,color:PropTypes.string};WalletOSIcon.defaultProps={loading:!1,walletOS:null,provider:null,color:"black"};function ItemWrap({children:a,...j}){return jsxRuntimeExports.jsx(Box,{...j,sx:{borderRadius:2,backgroundColor:colors$1.backgroundsBgSubtile,p:2,transition:"background-color 0.5s","&:hover":{backgroundColor:colors$1.backgroundsBgSubtileHover},...j.sx},children:a})}ItemWrap.propTypes={children:PropTypes.any.isRequired};const data$i={width:24,height:24,body:'<path fill="currentColor" d="M8 20h8v-3q0-1.65-1.175-2.825T12 13q-1.65 0-2.825 1.175T8 17v3Zm4-9q1.65 0 2.825-1.175T16 7V4H8v3q0 1.65 1.175 2.825T12 11ZM5 22q-.425 0-.713-.288T4 21q0-.425.288-.713T5 20h1v-3q0-1.525.713-2.863T8.7 12q-1.275-.8-1.987-2.138T6 7V4H5q-.425 0-.713-.288T4 3q0-.425.288-.713T5 2h14q.425 0 .713.288T20 3q0 .425-.288.713T19 4h-1v3q0 1.525-.713 2.863T15.3 12q1.275.8 1.988 2.138T18 17v3h1q.425 0 .713.288T20 21q0 .425-.288.713T19 22H5Z"/>'},data$h={width:24,height:24,body:'<path fill="currentColor" d="m5.75 18l-.4-.35q-1.3-1.15-1.825-2.625T3 12.05Q3 9.7 4.187 7.787T7.4 4.85q.35-.2.75-.025t.525.575q.125.375-.013.75t-.487.575q-1.45.8-2.313 2.213T5 12.05q0 1.125.425 2.188T6.75 16.2l.25.25V15q0-.425.288-.713T8 14q.425 0 .713.288T9 15v4q0 .425-.288.713T8 20H4q-.425 0-.713-.288T3 19q0-.425.288-.713T4 18h1.75ZM17 7.55V9q0 .425-.288.713T16 10q-.425 0-.713-.288T15 9V5q0-.425.288-.713T16 4h4q.425 0 .713.288T21 5q0 .425-.288.713T20 6h-1.75l.4.35q1.025 1.05 1.575 2.225t.7 2.425H18.9q-.125-.875-.537-1.675T17.25 7.8L17 7.55ZM17.4 23q-.2 0-.313-.113t-.162-.287l-.225-1.1q-.3-.125-.563-.263T15.6 20.9l-1.075.325q-.175.05-.325-.013T13.95 21l-.6-1q-.1-.15-.05-.325t.175-.3l.825-.725q-.05-.35-.05-.65t.05-.65l-.825-.725q-.125-.125-.175-.3t.05-.325l.6-1q.1-.15.25-.212t.325-.013l1.075.325q.275-.2.538-.337t.562-.263l.225-1.1q.05-.175.163-.288T17.4 13h1.2q.2 0 .313.113t.162.287l.225 1.1q.3.125.563.275t.537.375l1.05-.375q.175-.05.338.013t.262.212l.6 1.05q.1.15.063.325t-.163.3l-.85.725q.05.3.05.625t-.05.625l.825.725q.125.125.175.3t-.05.325l-.6 1q-.1.15-.25.213t-.325.012L20.4 20.9q-.275.2-.537.338t-.563.262l-.225 1.1q-.05.175-.163.288T18.6 23h-1.2Zm.6-3q.825 0 1.413-.588T20 18q0-.825-.588-1.413T18 16q-.825 0-1.413.588T16 18q0 .825.588 1.413T18 20Z"/>'};function LoadingMask({size:a,padding:j,borderWidth:_e,borderRadius:et,duration:nt,children:tt}){const ot=a,ct=et??ot/8,ft=_e??ot/32,ht=j??ot*.2-ft,dt=nt??2.5;return jsxRuntimeExports.jsxs(Box,{sx:{display:"inline-flex",justifyContent:"center",alignItems:"center",width:ot,height:ot,position:"relative"},children:[jsxRuntimeExports.jsx(Box,{sx:{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center",width:ot,height:ot,overflow:"hidden",borderRadius:`${ct}px`,backgroundColor:colors$1.strokeBorderBase,"&::before,&::after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,pointerEvents:"none"},"&::after":{left:ft,right:ft,top:ft,bottom:ft,backgroundColor:"white",borderRadius:`${ct-ft}px`},"&::before":{background:`conic-gradient(from 45deg, ${colors$1.foregroundsFgInteractiveTransparent} 0%, ${colors$1.foregroundsFgInteractiveTransparent} 50%, ${colors$1.foregroundsFgInteractive} 90%, ${colors$1.foregroundsFgInteractive} 100%)`,transform:"scale(100)",animation:`rotate ${dt}s linear infinite`,"@keyframes rotate":{"0%":{transform:"scale(100) rotate(0deg)"},"100%":{transform:"scale(100) rotate(360deg)"}}}}}),jsxRuntimeExports.jsx(Box,{sx:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",width:ot-ht-ft,height:ot-ht-ft},children:tt})]})}LoadingMask.propTypes={size:PropTypes.number,padding:PropTypes.number,borderRadius:PropTypes.number,borderWidth:PropTypes.number,duration:PropTypes.number,children:PropTypes.node.isRequired};LoadingMask.defaultProps={size:64,padding:void 0,borderWidth:void 0,duration:void 0,borderRadius:void 0};var DidWallet={};Object.defineProperty(DidWallet,"__esModule",{value:!0});var default_1$3=DidWallet.default=void 0;_interopRequireDefault$3(reactExports);var _jsxRuntime$3=jsxRuntimeExports;function _interopRequireDefault$3(a){return a&&a.__esModule?a:{default:a}}function ownKeys$3(a,j){var _e=Object.keys(a);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(a);j&&(et=et.filter(function(nt){return Object.getOwnPropertyDescriptor(a,nt).enumerable})),_e.push.apply(_e,et)}return _e}function _objectSpread$1(a){for(var j=1;j<arguments.length;j++){var _e=arguments[j]!=null?arguments[j]:{};j%2?ownKeys$3(Object(_e),!0).forEach(function(et){_defineProperty$1(a,et,_e[et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(_e)):ownKeys$3(Object(_e)).forEach(function(et){Object.defineProperty(a,et,Object.getOwnPropertyDescriptor(_e,et))})}return a}function _defineProperty$1(a,j,_e){return(j=_toPropertyKey$1(j))in a?Object.defineProperty(a,j,{value:_e,enumerable:!0,configurable:!0,writable:!0}):a[j]=_e,a}function _toPropertyKey$1(a){var j=_toPrimitive$1(a,"string");return typeof j=="symbol"?j:j+""}function _toPrimitive$1(a,j){if(typeof a!="object"||!a)return a;var _e=a[Symbol.toPrimitive];if(_e!==void 0){var et=_e.call(a,j||"default");if(typeof et!="object")return et;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(a)}var Component$1=function a(j){return(0,_jsxRuntime$3.jsxs)("svg",_objectSpread$1(_objectSpread$1({},j),{},{children:[(0,_jsxRuntime$3.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,_jsxRuntime$3.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"url(#paint0_linear)"}),(0,_jsxRuntime$3.jsx)("path",{d:"M3.52 7.36A2.56 2.56 0 0 1 6.08 4.8h19.84a2.56 2.56 0 0 1 2.56 2.56v12.16a2.56 2.56 0 0 1-2.56 2.56H6.08a2.56 2.56 0 0 1-2.56-2.56V7.36z",fill:"#9FCBFF",filter:"url(#filter0_i)"}),(0,_jsxRuntime$3.jsx)("path",{d:"M2.56 9.28a2.56 2.56 0 0 1 2.56-2.56h21.76a2.56 2.56 0 0 1 2.56 2.56v13.6a2.56 2.56 0 0 1-2.56 2.56H5.12a2.56 2.56 0 0 1-2.56-2.56V9.28z",fill:"url(#paint1_linear)",filter:"url(#filter1_d)"}),(0,_jsxRuntime$3.jsx)("path",{d:"M0 22.32l32-6.16V32H0v-9.68z",fill:"url(#paint2_linear)",filter:"url(#filter2_d)"}),(0,_jsxRuntime$3.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.536 9.248h8.288c.408 0 .74.3.74.672v4.64c0 .371-.332.672-.74.672H5.536c-.408 0-.74-.3-.74-.672v-.04a.158.158 0 1 0-.316 0v.04c0 .53.473.96 1.056.96h8.288c.583 0 1.056-.43 1.056-.96V9.92c0-.53-.473-.96-1.056-.96H5.536c-.583 0-1.056.43-1.056.96v.04a.158.158 0 0 0 .317 0v-.04c0-.371.33-.672.739-.672zm-1.023 4.638a.127.127 0 0 0 .087.034h1.267c.472 0 .83-.107 1.076-.322.25-.217.381-.548.397-.993a11.281 11.281 0 0 0 0-.734c-.012-.426-.148-.751-.406-.975-.258-.224-.622-.336-1.09-.336H4.6a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.794-.806c-.099.1-.253.149-.464.149h-.502V11.25h.478c.21 0 .369.051.474.154.108.102.166.26.172.475.006.09.01.208.01.355s-.004.267-.01.36c-.006.221-.059.383-.158.485zm1.63.806a.127.127 0 0 0 .087.034h.64a.116.116 0 0 0 .087-.034.11.11 0 0 0 .038-.086v-3.12a.11.11 0 0 0-.038-.086.116.116 0 0 0-.086-.034h-.641a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.637.034a.127.127 0 0 1-.086-.034.128.128 0 0 1-.033-.086v-3.12c0-.035.01-.064.033-.086a.127.127 0 0 1 .086-.034h1.244c.469 0 .832.112 1.09.336.259.224.394.549.407.974a11.244 11.244 0 0 1 0 .735c-.016.445-.148.776-.397.993-.245.215-.604.322-1.076.322H9.574zm1.244-.691c.21 0 .365-.05.464-.149.099-.102.152-.264.158-.485a5.52 5.52 0 0 0 .01-.36c0-.147-.004-.265-.01-.355-.006-.214-.064-.373-.172-.475-.106-.103-.263-.154-.474-.154h-.478v1.978h.502zm2.468-1.382a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.286-.288.286zm0 1.495a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.287-.288.287z",fill:"#4598FA"})]}),(0,_jsxRuntime$3.jsxs)("defs",{children:[(0,_jsxRuntime$3.jsxs)("filter",{id:"filter0_i",x:"3.52",y:"1.8",width:"24.96",height:"20.28",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,_jsxRuntime$3.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,_jsxRuntime$3.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,_jsxRuntime$3.jsx)("feOffset",{dy:"-3"}),(0,_jsxRuntime$3.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,_jsxRuntime$3.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.2 0"}),(0,_jsxRuntime$3.jsx)("feBlend",{in2:"shape",result:"effect1_innerShadow"})]}),(0,_jsxRuntime$3.jsxs)("filter",{id:"filter1_d",x:"-1.44",y:"1.72",width:"34.88",height:"26.72",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,_jsxRuntime$3.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,_jsxRuntime$3.jsx)("feOffset",{dy:"-1"}),(0,_jsxRuntime$3.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{values:"0 0 0 0 0.220767 0 0 0 0 0.470803 0 0 0 0 0.701605 0 0 0 0.18 0"}),(0,_jsxRuntime$3.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,_jsxRuntime$3.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,_jsxRuntime$3.jsxs)("filter",{id:"filter2_d",x:"-5",y:"11.16",width:"42",height:"25.84",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,_jsxRuntime$3.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,_jsxRuntime$3.jsx)("feOffset",{}),(0,_jsxRuntime$3.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{values:"0 0 0 0 0.14382 0 0 0 0 0.205065 0 0 0 0 0.522634 0 0 0 0.25 0"}),(0,_jsxRuntime$3.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,_jsxRuntime$3.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,_jsxRuntime$3.jsxs)("linearGradient",{id:"paint0_linear",x1:"16",x2:"16",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,_jsxRuntime$3.jsx)("stop",{stopColor:"#4F9DF6"}),(0,_jsxRuntime$3.jsx)("stop",{offset:"1",stopColor:"#0A79F8"})]}),(0,_jsxRuntime$3.jsxs)("linearGradient",{id:"paint1_linear",x1:"16",y1:"6.72",x2:"16",y2:"25.44",gradientUnits:"userSpaceOnUse",children:[(0,_jsxRuntime$3.jsx)("stop",{stopColor:"#fff"}),(0,_jsxRuntime$3.jsx)("stop",{offset:"1",stopColor:"#ECEFFF"})]}),(0,_jsxRuntime$3.jsxs)("linearGradient",{id:"paint2_linear",x1:"16",y1:"19.2",x2:"18.48",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,_jsxRuntime$3.jsx)("stop",{offset:".007",stopColor:"#77B2F6"}),(0,_jsxRuntime$3.jsx)("stop",{offset:".055",stopColor:"#4F9DF6"}),(0,_jsxRuntime$3.jsx)("stop",{offset:"1",stopColor:"#4598FA"})]}),(0,_jsxRuntime$3.jsx)("clipPath",{id:"clip0",children:(0,_jsxRuntime$3.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"#fff"})})]})]}))};Component$1.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};Component$1.displayName="did-wallet";default_1$3=DidWallet.default=Component$1;function Success({size:a,backgroundColor:j,borderWidth:_e}){const et=a-_e*2;return jsxRuntimeExports.jsxs(Box,{className:"check-icon",sx:{width:et,height:et,position:"relative",borderRadius:"100%","&, *, *::before, *::after":{boxSizing:"content-box !important"},border:nt=>`${_e}px solid ${nt.palette.success.main}`,"&::before, &::after":{content:'""',height:"125%",position:"absolute",background:j,transform:"rotate(-45deg)"},"&::before":{top:`${_e/2+1}px`,left:`-${_e/2}px`,width:`calc(32.5% + ${_e}px)`,transformOrigin:"100% 50%",borderRadius:"100% 0 0 100%"},"&::after":{top:0,left:"37.5%",width:`calc(70% + ${_e}px)`,transformOrigin:"0 50%",borderRadius:"0 100% 100% 0",animation:"rotate-circle 4.25s ease-in"},".icon-line":{height:`${_e+1}px`,backgroundColor:nt=>nt.palette.success.main,display:"block",borderRadius:"100vw",position:"absolute",zIndex:10},"@keyframes rotate-circle":{"0%":{transform:"rotate(-45deg)"},"5%":{transform:"rotate(-45deg)"},"12%":{transform:"rotate(-405deg)"},"100%":{transform:"rotate(-405deg)"}}},children:[jsxRuntimeExports.jsx(Box,{component:"span",className:"icon-line line-tip",sx:{top:"57.5%",left:"17.5%",width:"31.25%",transform:"rotate(45deg)",animation:"icon-line-tip 0.75s","@keyframes icon-line-tip":{"0%":{width:"0",left:"1px",top:"23.75%"},"54%":{width:"0",left:"1px",top:"23.75%"},"70%":{width:"62.5%",left:"-10%",top:"46.25%"},"84%":{width:"21.25%",left:"26.25%",top:"60%"},"100%":{width:"31.25",left:"17.5%",top:"56.25%"}}}}),jsxRuntimeExports.jsx(Box,{component:"span",className:"icon-line line-long",sx:{top:"47.5%",right:"10%",width:"58.75%",transform:"rotate(-45deg)",animation:"icon-line-long 0.75s","@keyframes icon-line-long":{"0%":{width:"0",right:"57.5%",top:"67.5%"},"65%":{width:"0",right:"57.5%",top:"67.5%"},"84%":{width:"68.75%",right:"0px",top:"43.75%"},"100%":{width:"58.75%",right:"10%",top:"47.5%"}}}}),jsxRuntimeExports.jsx(Box,{className:"icon-circle",sx:{top:`-${_e}px`,left:`-${_e}px`,zIndex:10,width:et,height:et,borderRadius:"100%",position:"absolute",boxSizing:"contentBox",border:`${_e}px solid rgba(76, 175, 80, 0.5)`}}),jsxRuntimeExports.jsx(Box,{className:"icon-fix",sx:{top:`calc(8% - ${Math.sqrt(_e)}px)`,width:_e+1,left:`calc(32% - ${Math.sqrt(_e)}px)`,zIndex:1,height:et+_e*2,position:"absolute",transform:"rotate(-45deg)",backgroundColor:j}})]})}Success.propTypes={size:PropTypes.number,borderWidth:PropTypes.number,backgroundColor:PropTypes.string};Success.defaultProps={size:64,borderWidth:4,backgroundColor:"white"};function Button({...a}){return jsxRuntimeExports.jsx(Button$1,{variant:"outlined",color:"inherit",...a,sx:{borderRadius:2,borderColor:colors$1.strokeBorderBase,color:colors$1.foregroundsFgBase,backgroundColor:"#fff",fontWeight:500,fontSize:13,...a.sx}})}function BaseStatus({icon:a,title:j,color:_e,description:et,extraContent:nt,actions:tt}){return jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:1.5},children:[reactExports.isValidElement(a)?a:jsxRuntimeExports.jsx(Box,{sx:{backgroundColor:_e,borderRadius:"100%",fontSize:0},children:jsxRuntimeExports.jsx(Icon,{icon:a,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})}),jsxRuntimeExports.jsxs(Box,{sx:{textAlign:"center"},children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",sx:{fontWeight:500,color:_e},children:j}),jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{color:colors$1.foregroundsFgSubtile,overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"3",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:et})]}),nt,jsxRuntimeExports.jsx(Box,{children:tt})]})}BaseStatus.propTypes={icon:PropTypes.node,title:PropTypes.string,color:PropTypes.string,description:PropTypes.string,extraContent:PropTypes.node,actions:PropTypes.node};BaseStatus.defaultProps={icon:null,title:"",color:colors$1.foregroundsFgBase,description:"",extraContent:null,actions:null};function MfaCode({title:a,mfaCode:j}){return jsxRuntimeExports.jsxs(Box,{className:"status-mfa",sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",border:`1px solid ${colors$1.strokeBorderBase}`,borderRadius:2,maxWidth:"360px",backgroundColor:"transparent",p:1},children:[jsxRuntimeExports.jsx(Box,{className:"status-mfa-tip",sx:{textAlign:"center",textWrap:"balance"},children:a}),jsxRuntimeExports.jsx(Typography,{className:"status-mfa-code",sx:{mt:1,lineHeight:1,fontSize:"36px",fontWeight:700,letterSpacing:1},children:j})]})}MfaCode.propTypes={title:PropTypes.string,mfaCode:PropTypes.number};MfaCode.defaultProps={title:"",mfaCode:0};function ConnectStatus({status:a,nextWorkflow:j,mfaCode:_e,onCancel:et,onRetry:nt,onClose:tt,messages:ot,locale:ct,...ft}){const ht=translations$3[ct]||translations$3.en;return jsxRuntimeExports.jsxs(Box,{...ft,sx:{py:2,minHeight:200,...ft.sx},children:[a==="scanned"&&!j&&jsxRuntimeExports.jsx(BaseStatus,{icon:jsxRuntimeExports.jsx(LoadingMask,{size:52,borderRadius:12,children:jsxRuntimeExports.jsx(default_1$3,{style:{width:"100%",height:"100%"}})}),title:ht.requestConnect,description:ht.continueInWallet,extraContent:_e>0&&jsxRuntimeExports.jsx(MfaCode,{mfaCode:_e,title:ht.mfaCode}),actions:jsxRuntimeExports.jsx(Button,{onClick:et,children:ht.back})}),a==="scanned"&&!!j&&jsxRuntimeExports.jsx(BaseStatus,{color:colors$1.foregroundsFgInteractive,icon:data$i,title:ht.wait,description:ht.waiting,extraContent:_e>0&&jsxRuntimeExports.jsx(MfaCode,{mfaCode:_e,title:ht.mfaCode}),actions:jsxRuntimeExports.jsx(Button,{onClick:et,children:ht.back})}),a==="succeed"&&jsxRuntimeExports.jsx(BaseStatus,{color:"#3ab39d",icon:jsxRuntimeExports.jsx(Success,{size:52}),title:ht.success,description:ot.success,actions:jsxRuntimeExports.jsx(Button,{onClick:tt,children:ht.close})}),a==="error"&&jsxRuntimeExports.jsx(BaseStatus,{color:colors$1.buttonsButtonDanger,icon:data$r,title:ht.failed,description:ot.error||ht.error,actions:jsxRuntimeExports.jsx(Button,{onClick:nt,children:ht.retry})}),a==="busy"&&jsxRuntimeExports.jsx(BaseStatus,{color:"#ed6c02",icon:data$h,title:ht.busyTitle,description:ot.error||ht.busyDesc,actions:jsxRuntimeExports.jsx(Button,{onClick:nt,children:ht.retry})})]})}ConnectStatus.propTypes={status:PropTypes.string,nextWorkflow:PropTypes.string,mfaCode:PropTypes.number,onCancel:PropTypes.func,onRetry:PropTypes.func,onClose:PropTypes.func,messages:PropTypes.shape({confirm:PropTypes.string.isRequired,success:PropTypes.any.isRequired,error:PropTypes.any.isRequired}).isRequired,locale:PropTypes.oneOf(["en","zh"])};ConnectStatus.defaultProps={status:"",nextWorkflow:"",mfaCode:0,onCancel:noop$7,onRetry:noop$7,onClose:noop$7,locale:"en"};function QuickLoginItem({userSession:a,locale:j}){var et,nt,tt,ot;const _e=getSourceProvider(a==null?void 0:a.user)==="wallet";return jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:colors$1.surfacePrimarySubtitle}},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1.5,flex:1,overflow:"hidden"},children:[jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{src:a.user.avatar,did:a.user.did,size:48,variant:"circle",shape:"circle"}),jsxRuntimeExports.jsxs(Box,{sx:{flex:1,overflow:"hidden"},children:[jsxRuntimeExports.jsxs(Typography,{sx:{fontSize:"16px",fontWeight:"bold",display:"flex",alignItems:"center",gap:1,color:colors$1.textBase},children:[a.user.fullName,jsxRuntimeExports.jsx(Chip,{label:((et=a.user)==null?void 0:et.roleTitle)||((nt=a.user)==null?void 0:nt.role),size:"small",variant:"outlined",sx:()=>({height:"auto",fontWeight:"bold",fontSize:"12px",borderColor:colors$1.lineBorderStrong,color:colors$1.textSubtitle})})]}),_e?jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[jsxRuntimeExports.jsx(WalletOSIcon,{provider:(tt=a==null?void 0:a.extra)==null?void 0:tt.provider,walletOS:(ot=a==null?void 0:a.extra)==null?void 0:ot.walletOS,color:colors$1.textSubtitle}),jsxRuntimeExports.jsx(DID,{did:a.user.did,size:12,sx:{lineHeight:1,fontSize:"12px",mt:.5},responsive:!0})]}):jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"12px",color:colors$1.textSubtitle},children:a.user.email})]})]}),a.updatedAt&&jsxRuntimeExports.jsx(Box,{component:"span",sx:{color:colors$1.textMuted,fontSize:"12px",flexShrink:0},children:jsxRuntimeExports.jsx(RelativeTime,{value:a.updatedAt,locale:j})})]})}QuickLoginItem.propTypes={userSession:PropTypes.shape({user:PropTypes.shape({avatar:PropTypes.string,did:PropTypes.string,fullName:PropTypes.string,role:PropTypes.string,roleTitle:PropTypes.string,email:PropTypes.string}),extra:PropTypes.shape({walletOS:PropTypes.string,provider:PropTypes.string}),updatedAt:PropTypes.string}).isRequired,locale:PropTypes.string};QuickLoginItem.defaultProps={locale:"en"};function QuickConnect({userSessions:a,onLogin:j,onClose:_e,messages:et,onRetry:nt,onLoginAnother:tt}){const{t:ot,locale:ct,changeStatus:ft,blocklet:ht}=useStateContext(),dt=ot("otherAccount"),yt=useReactive({loadingId:null,status:"created",messages:{confirm:et.confirm,success:et.success,error:""},reset(){this.loadingId=null,this.status="created",this.messages.error=""}}),Tt=useMemoizedFn(async At=>{yt.loadingId=At.id;try{await j({...At,appPid:ht==null?void 0:ht.appPid}),yt.status="succeed"}catch(Rt){yt.status="error",yt.messages.error=Rt.messages}finally{yt.loadingId=null}}),St=useMemoizedFn(()=>{yt.reset(),nt()});return reactExports.useEffect(()=>{ft(yt.status)},[ft,yt.status]),yt.status!=="created"?jsxRuntimeExports.jsx(ConnectStatus,{status:yt.status,onRetry:St,onClose:_e,messages:yt.messages,locale:ct,className:"auth-status"}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a.map(At=>{var Rt;return jsxRuntimeExports.jsx(Tooltip,{title:ot("loginWithThisAccount"),arrow:!0,placement:"top",children:jsxRuntimeExports.jsxs(Box,{sx:{position:"relative"},onClick:()=>Tt(At),children:[yt.loadingId===At.id?jsxRuntimeExports.jsx(LinearProgress,{sx:{height:"2px",position:"absolute",top:0,left:0,right:0}}):null,jsxRuntimeExports.jsx(QuickLoginItem,{userSession:At,locale:ct})]})},(Rt=At==null?void 0:At.user)==null?void 0:Rt.did)}),jsxRuntimeExports.jsx(Tooltip,{title:ot("loginWithAnotherAccount"),arrow:!0,placement:"top",children:jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:colors$1.surfacePrimarySubtitle},color:colors$1.textBase},onClick:tt,children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(Box,{sx:{fontSize:0,p:.5},children:jsxRuntimeExports.jsx(Icon,{icon:data$q,fontSize:"40px"})}),jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"16px",fontWeight:"bold"},children:dt})]}),jsxRuntimeExports.jsx(Icon,{className:"other-item-icon",icon:data$p,fontSize:"24px"})]})})})]})}QuickConnect.propTypes={userSessions:PropTypes.array.isRequired,onLogin:PropTypes.func.isRequired,onRetry:PropTypes.func.isRequired,onClose:PropTypes.func.isRequired,onLoginAnother:PropTypes.func.isRequired,messages:PropTypes.object};QuickConnect.defaultProps={messages:{}};var HASH_UNDEFINED$2="__lodash_hash_undefined__";function setCacheAdd$1(a){return this.__data__.set(a,HASH_UNDEFINED$2),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(a){return this.__data__.has(a)}var _setCacheHas=setCacheHas$1,MapCache$2=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$3(a){var j=-1,_e=a==null?0:a.length;for(this.__data__=new MapCache$2;++j<_e;)this.add(a[j])}SetCache$3.prototype.add=SetCache$3.prototype.push=setCacheAdd;SetCache$3.prototype.has=setCacheHas;var _SetCache=SetCache$3;function baseFindIndex$1(a,j,_e,et){for(var nt=a.length,tt=_e+(et?1:-1);et?tt--:++tt<nt;)if(j(a[tt],tt,a))return tt;return-1}var _baseFindIndex=baseFindIndex$1;function baseIsNaN$1(a){return a!==a}var _baseIsNaN=baseIsNaN$1;function strictIndexOf$1(a,j,_e){for(var et=_e-1,nt=a.length;++et<nt;)if(a[et]===j)return et;return-1}var _strictIndexOf=strictIndexOf$1,baseFindIndex=_baseFindIndex,baseIsNaN=_baseIsNaN,strictIndexOf=_strictIndexOf;function baseIndexOf$2(a,j,_e){return j===j?strictIndexOf(a,j,_e):baseFindIndex(a,baseIsNaN,_e)}var _baseIndexOf=baseIndexOf$2,baseIndexOf$1=_baseIndexOf;function arrayIncludes$3(a,j){var _e=a==null?0:a.length;return!!_e&&baseIndexOf$1(a,j,0)>-1}var _arrayIncludes=arrayIncludes$3;function arrayIncludesWith$2(a,j,_e){for(var et=-1,nt=a==null?0:a.length;++et<nt;)if(_e(j,a[et]))return!0;return!1}var _arrayIncludesWith=arrayIncludesWith$2;function cacheHas$3(a,j){return a.has(j)}var _cacheHas=cacheHas$3,SetCache$2=_SetCache,arrayIncludes$2=_arrayIncludes,arrayIncludesWith$1=_arrayIncludesWith,arrayMap$3=_arrayMap,baseUnary$1=_baseUnary,cacheHas$2=_cacheHas,nativeMin=Math.min;function baseIntersection$1(a,j,_e){for(var et=_e?arrayIncludesWith$1:arrayIncludes$2,nt=a[0].length,tt=a.length,ot=tt,ct=Array(tt),ft=1/0,ht=[];ot--;){var dt=a[ot];ot&&j&&(dt=arrayMap$3(dt,baseUnary$1(j))),ft=nativeMin(dt.length,ft),ct[ot]=!_e&&(j||nt>=120&&dt.length>=120)?new SetCache$2(ot&&dt):void 0}dt=a[0];var yt=-1,Tt=ct[0];e:for(;++yt<nt&&ht.length<ft;){var St=dt[yt],At=j?j(St):St;if(St=_e||St!==0?St:0,!(Tt?cacheHas$2(Tt,At):et(ht,At,_e))){for(ot=tt;--ot;){var Rt=ct[ot];if(!(Rt?cacheHas$2(Rt,At):et(a[ot],At,_e)))continue e}Tt&&Tt.push(At),ht.push(St)}}return ht}var _baseIntersection=baseIntersection$1,isArrayLikeObject$1=isArrayLikeObject_1;function castArrayLikeObject$1(a){return isArrayLikeObject$1(a)?a:[]}var _castArrayLikeObject=castArrayLikeObject$1,arrayMap$2=_arrayMap,baseIntersection=_baseIntersection,baseRest$2=_baseRest,castArrayLikeObject=_castArrayLikeObject,intersection=baseRest$2(function(a){var j=arrayMap$2(a,castArrayLikeObject);return j.length&&j[0]===a[0]?baseIntersection(j):[]}),intersection_1=intersection;const intersection$1=getDefaultExportFromCjs$1(intersection_1),data$g={width:24,height:24,body:'<path fill="currentColor" d="M19 21q-.975 0-1.75-.563T16.175 19H11q-1.65 0-2.825-1.175T7 15q0-1.65 1.175-2.825T11 11h2q.825 0 1.413-.588T15 9q0-.825-.588-1.413T13 7H7.825q-.325.875-1.088 1.438T5 9q-1.25 0-2.125-.875T2 6q0-1.25.875-2.125T5 3q.975 0 1.738.563T7.824 5H13q1.65 0 2.825 1.175T17 9q0 1.65-1.175 2.825T13 13h-2q-.825 0-1.413.588T9 15q0 .825.588 1.413T11 17h5.175q.325-.875 1.088-1.438T19 15q1.25 0 2.125.875T22 18q0 1.25-.875 2.125T19 21ZM5 7q.425 0 .713-.288T6 6q0-.425-.288-.713T5 5q-.425 0-.713.288T4 6q0 .425.288.713T5 7Z"/>'},chromeExtDownloadUrl="https://chromewebstore.google.com/detail/did-wallet/ibjflpbmadchofnbpppegdbnifdgincp",edgeExtDownloadUrl="https://microsoftedge.microsoft.com/addons/detail/did-wallet/hjgoblidjnnnamdkinbichnfbmghmafd";function WebLoginItem({tokenState:a,locale:j,webWalletUrl:_e}){const et=detectWalletExtension(),{t:nt}=useStateContext(),tt=useMemoizedFn(()=>{openWebWallet({webWalletUrl:_e,url:a.url,locale:j})}),ot=useCreation(()=>{var St;const Tt=(St=window==null?void 0:window.navigator)==null?void 0:St.userAgent;return Tt.indexOf("Edge")>-1||Tt.indexOf("Edg")>-1?"edge":Tt.indexOf("Chrome")>-1?"chrome":"unknown"},[]),ct=useCreation(()=>ot==="edge"?edgeExtDownloadUrl:ot==="chrome"?chromeExtDownloadUrl:null,[ot]),ft=useCreation(()=>et?{onClick:tt}:ct?{href:ct,target:"_blank",rel:"noopener"}:{onClick:tt},[tt]),ht=useCreation(()=>et||ct?"Web Wallet Extension":"Web Wallet",[et,ct]),dt=useCreation(()=>!et&&!ct?new URL(_e).hostname:null,[_e,ct]),yt=useCreation(()=>et?null:ct?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["You can also use"," ",jsxRuntimeExports.jsx(Box,{onClick:tt,component:"span",sx:{color:colors$1.foregroundsFgInteractive,cursor:"pointer","&:hover":{textDecoration:"underline dashed"}},children:"Web Wallet"})]}):null,[et,ct]);return jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(default_1$3,{width:"24px",height:"24px"}),jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"14px",fontWeight:500},children:ht}),dt?jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"12px",color:colors$1.textMuted},children:dt}):null]}),yt?jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"12px",color:colors$1.textMuted},children:yt}):null]})]}),jsxRuntimeExports.jsx(Button,{...ft,startIcon:jsxRuntimeExports.jsx(Icon,{icon:data$g}),children:nt("connectButton")})]})}WebLoginItem.propTypes={tokenState:PropTypes.object.isRequired,locale:PropTypes.string,webWalletUrl:PropTypes.string.isRequired};WebLoginItem.defaultProps={locale:"en"};var qrCodeStyling={exports:{}};(function(a,j){(function(_e,et){a.exports=et()})(commonjsGlobal,function(){return(()=>{var _e={192:(tt,ot)=>{var ct,ft,ht=function(){var dt=function(st,ut){var pt=st,mt=It[ut],$t=null,xt=0,vt=null,it=[],bt={},Mt=function(qt,Dt){$t=function(Vt){for(var an=new Array(Vt),Xt=0;Xt<Vt;Xt+=1){an[Xt]=new Array(Vt);for(var pn=0;pn<Vt;pn+=1)an[Xt][pn]=null}return an}(xt=4*pt+17),Lt(0,0),Lt(xt-7,0),Lt(0,xt-7),Ot(),Ht(),Ft(qt,Dt),pt>=7&&Jt(qt),vt==null&&(vt=nn(pt,mt,it)),Zt(vt,Dt)},Lt=function(qt,Dt){for(var Vt=-1;Vt<=7;Vt+=1)if(!(qt+Vt<=-1||xt<=qt+Vt))for(var an=-1;an<=7;an+=1)Dt+an<=-1||xt<=Dt+an||($t[qt+Vt][Dt+an]=0<=Vt&&Vt<=6&&(an==0||an==6)||0<=an&&an<=6&&(Vt==0||Vt==6)||2<=Vt&&Vt<=4&&2<=an&&an<=4)},Ht=function(){for(var qt=8;qt<xt-8;qt+=1)$t[qt][6]==null&&($t[qt][6]=qt%2==0);for(var Dt=8;Dt<xt-8;Dt+=1)$t[6][Dt]==null&&($t[6][Dt]=Dt%2==0)},Ot=function(){for(var qt=Ct.getPatternPosition(pt),Dt=0;Dt<qt.length;Dt+=1)for(var Vt=0;Vt<qt.length;Vt+=1){var an=qt[Dt],Xt=qt[Vt];if($t[an][Xt]==null)for(var pn=-2;pn<=2;pn+=1)for(var En=-2;En<=2;En+=1)$t[an+pn][Xt+En]=pn==-2||pn==2||En==-2||En==2||pn==0&&En==0}},Jt=function(qt){for(var Dt=Ct.getBCHTypeNumber(pt),Vt=0;Vt<18;Vt+=1){var an=!qt&&(Dt>>Vt&1)==1;$t[Math.floor(Vt/3)][Vt%3+xt-8-3]=an}for(Vt=0;Vt<18;Vt+=1)an=!qt&&(Dt>>Vt&1)==1,$t[Vt%3+xt-8-3][Math.floor(Vt/3)]=an},Ft=function(qt,Dt){for(var Vt=mt<<3|Dt,an=Ct.getBCHTypeInfo(Vt),Xt=0;Xt<15;Xt+=1){var pn=!qt&&(an>>Xt&1)==1;Xt<6?$t[Xt][8]=pn:Xt<8?$t[Xt+1][8]=pn:$t[xt-15+Xt][8]=pn}for(Xt=0;Xt<15;Xt+=1)pn=!qt&&(an>>Xt&1)==1,Xt<8?$t[8][xt-Xt-1]=pn:Xt<9?$t[8][15-Xt-1+1]=pn:$t[8][15-Xt-1]=pn;$t[xt-8][8]=!qt},Zt=function(qt,Dt){for(var Vt=-1,an=xt-1,Xt=7,pn=0,En=Ct.getMaskFunction(Dt),sn=xt-1;sn>0;sn-=2)for(sn==6&&(sn-=1);;){for(var dn=0;dn<2;dn+=1)if($t[an][sn-dn]==null){var Mn=!1;pn<qt.length&&(Mn=(qt[pn]>>>Xt&1)==1),En(an,sn-dn)&&(Mn=!Mn),$t[an][sn-dn]=Mn,(Xt-=1)==-1&&(pn+=1,Xt=7)}if((an+=Vt)<0||xt<=an){an-=Vt,Vt=-Vt;break}}},nn=function(qt,Dt,Vt){for(var an=Bt.getRSBlocks(qt,Dt),Xt=Kt(),pn=0;pn<Vt.length;pn+=1){var En=Vt[pn];Xt.put(En.getMode(),4),Xt.put(En.getLength(),Ct.getLengthInBits(En.getMode(),qt)),En.write(Xt)}var sn=0;for(pn=0;pn<an.length;pn+=1)sn+=an[pn].dataCount;if(Xt.getLengthInBits()>8*sn)throw"code length overflow. ("+Xt.getLengthInBits()+">"+8*sn+")";for(Xt.getLengthInBits()+4<=8*sn&&Xt.put(0,4);Xt.getLengthInBits()%8!=0;)Xt.putBit(!1);for(;!(Xt.getLengthInBits()>=8*sn||(Xt.put(236,8),Xt.getLengthInBits()>=8*sn));)Xt.put(17,8);return function(dn,Mn){for(var yn=0,An=0,Tn=0,gn=new Array(Mn.length),vn=new Array(Mn.length),Ln=0;Ln<Mn.length;Ln+=1){var Sn=Mn[Ln].dataCount,In=Mn[Ln].totalCount-Sn;An=Math.max(An,Sn),Tn=Math.max(Tn,In),gn[Ln]=new Array(Sn);for(var Nn=0;Nn<gn[Ln].length;Nn+=1)gn[Ln][Nn]=255&dn.getBuffer()[Nn+yn];yn+=Sn;var rn=Ct.getErrorCorrectPolynomial(In),Ut=Pt(gn[Ln],rn.getLength()-1).mod(rn);for(vn[Ln]=new Array(rn.getLength()-1),Nn=0;Nn<vn[Ln].length;Nn+=1){var Yt=Nn+Ut.getLength()-vn[Ln].length;vn[Ln][Nn]=Yt>=0?Ut.getAt(Yt):0}}var fn=0;for(Nn=0;Nn<Mn.length;Nn+=1)fn+=Mn[Nn].totalCount;var $n=new Array(fn),Dn=0;for(Nn=0;Nn<An;Nn+=1)for(Ln=0;Ln<Mn.length;Ln+=1)Nn<gn[Ln].length&&($n[Dn]=gn[Ln][Nn],Dn+=1);for(Nn=0;Nn<Tn;Nn+=1)for(Ln=0;Ln<Mn.length;Ln+=1)Nn<vn[Ln].length&&($n[Dn]=vn[Ln][Nn],Dn+=1);return $n}(Xt,an)};bt.addData=function(qt,Dt){var Vt=null;switch(Dt=Dt||"Byte"){case"Numeric":Vt=jt(qt);break;case"Alphanumeric":Vt=zt(qt);break;case"Byte":Vt=Gt(qt);break;case"Kanji":Vt=tn(qt);break;default:throw"mode:"+Dt}it.push(Vt),vt=null},bt.isDark=function(qt,Dt){if(qt<0||xt<=qt||Dt<0||xt<=Dt)throw qt+","+Dt;return $t[qt][Dt]},bt.getModuleCount=function(){return xt},bt.make=function(){if(pt<1){for(var qt=1;qt<40;qt++){for(var Dt=Bt.getRSBlocks(qt,mt),Vt=Kt(),an=0;an<it.length;an++){var Xt=it[an];Vt.put(Xt.getMode(),4),Vt.put(Xt.getLength(),Ct.getLengthInBits(Xt.getMode(),qt)),Xt.write(Vt)}var pn=0;for(an=0;an<Dt.length;an++)pn+=Dt[an].dataCount;if(Vt.getLengthInBits()<=8*pn)break}pt=qt}Mt(!1,function(){for(var En=0,sn=0,dn=0;dn<8;dn+=1){Mt(!0,dn);var Mn=Ct.getLostPoint(bt);(dn==0||En>Mn)&&(En=Mn,sn=dn)}return sn}())},bt.createTableTag=function(qt,Dt){qt=qt||2;var Vt="";Vt+='<table style="',Vt+=" border-width: 0px; border-style: none;",Vt+=" border-collapse: collapse;",Vt+=" padding: 0px; margin: "+(Dt=Dt===void 0?4*qt:Dt)+"px;",Vt+='">',Vt+="<tbody>";for(var an=0;an<bt.getModuleCount();an+=1){Vt+="<tr>";for(var Xt=0;Xt<bt.getModuleCount();Xt+=1)Vt+='<td style="',Vt+=" border-width: 0px; border-style: none;",Vt+=" border-collapse: collapse;",Vt+=" padding: 0px; margin: 0px;",Vt+=" width: "+qt+"px;",Vt+=" height: "+qt+"px;",Vt+=" background-color: ",Vt+=bt.isDark(an,Xt)?"#000000":"#ffffff",Vt+=";",Vt+='"/>';Vt+="</tr>"}return(Vt+="</tbody>")+"</table>"},bt.createSvgTag=function(qt,Dt,Vt,an){var Xt={};typeof arguments[0]=="object"&&(qt=(Xt=arguments[0]).cellSize,Dt=Xt.margin,Vt=Xt.alt,an=Xt.title),qt=qt||2,Dt=Dt===void 0?4*qt:Dt,(Vt=typeof Vt=="string"?{text:Vt}:Vt||{}).text=Vt.text||null,Vt.id=Vt.text?Vt.id||"qrcode-description":null,(an=typeof an=="string"?{text:an}:an||{}).text=an.text||null,an.id=an.text?an.id||"qrcode-title":null;var pn,En,sn,dn,Mn=bt.getModuleCount()*qt+2*Dt,yn="";for(dn="l"+qt+",0 0,"+qt+" -"+qt+",0 0,-"+qt+"z ",yn+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',yn+=Xt.scalable?"":' width="'+Mn+'px" height="'+Mn+'px"',yn+=' viewBox="0 0 '+Mn+" "+Mn+'" ',yn+=' preserveAspectRatio="xMinYMin meet"',yn+=an.text||Vt.text?' role="img" aria-labelledby="'+cn([an.id,Vt.id].join(" ").trim())+'"':"",yn+=">",yn+=an.text?'<title id="'+cn(an.id)+'">'+cn(an.text)+"</title>":"",yn+=Vt.text?'<description id="'+cn(Vt.id)+'">'+cn(Vt.text)+"</description>":"",yn+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',yn+='<path d="',En=0;En<bt.getModuleCount();En+=1)for(sn=En*qt+Dt,pn=0;pn<bt.getModuleCount();pn+=1)bt.isDark(En,pn)&&(yn+="M"+(pn*qt+Dt)+","+sn+dn);return(yn+='" stroke="transparent" fill="black"/>')+"</svg>"},bt.createDataURL=function(qt,Dt){qt=qt||2,Dt=Dt===void 0?4*qt:Dt;var Vt=bt.getModuleCount()*qt+2*Dt,an=Dt,Xt=Vt-Dt;return rt(Vt,Vt,function(pn,En){if(an<=pn&&pn<Xt&&an<=En&&En<Xt){var sn=Math.floor((pn-an)/qt),dn=Math.floor((En-an)/qt);return bt.isDark(dn,sn)?0:1}return 1})},bt.createImgTag=function(qt,Dt,Vt){qt=qt||2,Dt=Dt===void 0?4*qt:Dt;var an=bt.getModuleCount()*qt+2*Dt,Xt="";return Xt+="<img",Xt+=' src="',Xt+=bt.createDataURL(qt,Dt),Xt+='"',Xt+=' width="',Xt+=an,Xt+='"',Xt+=' height="',Xt+=an,Xt+='"',Vt&&(Xt+=' alt="',Xt+=cn(Vt),Xt+='"'),Xt+"/>"};var cn=function(qt){for(var Dt="",Vt=0;Vt<qt.length;Vt+=1){var an=qt.charAt(Vt);switch(an){case"<":Dt+="<";break;case">":Dt+=">";break;case"&":Dt+="&";break;case'"':Dt+=""";break;default:Dt+=an}}return Dt};return bt.createASCII=function(qt,Dt){if((qt=qt||1)<2)return function(gn){gn=gn===void 0?2:gn;var vn,Ln,Sn,In,Nn,rn=1*bt.getModuleCount()+2*gn,Ut=gn,Yt=rn-gn,fn={"██":"█","█ ":"▀"," █":"▄"," ":" "},$n={"██":"▀","█ ":"▀"," █":" "," ":" "},Dn="";for(vn=0;vn<rn;vn+=2){for(Sn=Math.floor((vn-Ut)/1),In=Math.floor((vn+1-Ut)/1),Ln=0;Ln<rn;Ln+=1)Nn="█",Ut<=Ln&&Ln<Yt&&Ut<=vn&&vn<Yt&&bt.isDark(Sn,Math.floor((Ln-Ut)/1))&&(Nn=" "),Ut<=Ln&&Ln<Yt&&Ut<=vn+1&&vn+1<Yt&&bt.isDark(In,Math.floor((Ln-Ut)/1))?Nn+=" ":Nn+="█",Dn+=gn<1&&vn+1>=Yt?$n[Nn]:fn[Nn];Dn+=`
|
|
466
|
+
`;CardSelector.propTypes={list:PropTypes.array,width:PropTypes.number,height:PropTypes.number,cardSpace:PropTypes.number,onSelect:PropTypes.func,defaultIndex:PropTypes.number};CardSelector.defaultProps={list:"",width:300,height:400,cardSpace:40,onSelect:noop$7,defaultIndex:0};var baseKeys=_baseKeys,getTag$1=_getTag,isArguments$1=isArguments_1,isArray$8=isArray_1,isArrayLike$2=isArrayLike_1,isBuffer$1=isBufferExports,isPrototype=_isPrototype,isTypedArray$1=isTypedArray_1,mapTag$1="[object Map]",setTag$1="[object Set]",objectProto$4=Object.prototype,hasOwnProperty$7=objectProto$4.hasOwnProperty;function isEmpty(a){if(a==null)return!0;if(isArrayLike$2(a)&&(isArray$8(a)||typeof a=="string"||typeof a.splice=="function"||isBuffer$1(a)||isTypedArray$1(a)||isArguments$1(a)))return!a.length;var j=getTag$1(a);if(j==mapTag$1||j==setTag$1)return!a.size;if(isPrototype(a))return!baseKeys(a).length;for(var _e in a)if(hasOwnProperty$7.call(a,_e))return!1;return!0}var isEmpty_1=isEmpty;const isEmpty$1=getDefaultExportFromCjs$1(isEmpty_1);function getMaster(a=window.blocklet){var _e;return(((_e=a==null?void 0:a.settings)==null?void 0:_e.federated)||{}).master}function getConfig(a=window.blocklet){var _e;return(((_e=a==null?void 0:a.settings)==null?void 0:_e.federated)||{}).config}function getFederatedEnabled(a=window.blocklet){const j=getConfig(a);return(j==null?void 0:j.status)==="approved"}function getFederatedApp(a=window.blocklet){const j=getMaster(a);return!isEmpty$1(j)?{appId:j.appId,appName:j.appName,appDescription:j.appDescription,appLogo:j.appLogo,appPid:j.appPid,appUrl:j.appUrl,version:j.version,sourceAppPid:j.appPid,provider:"wallet"}:null}function getCurrentApp(a=window.blocklet){return a?{appId:a.appId,appName:a.appName,appDescription:a.appDescription,appLogo:a.appLogo,appPid:a.appPid,appUrl:a.appUrl,version:a.version,sourceAppPid:null,provider:"wallet"}:window.env?(a=window.env,{appId:a.appId,appName:a.appName,appDescription:a.appDescription,appUrl:a.baseUrl,sourceAppPid:null,provider:"wallet",type:"server"}):null}function getApps(a){const j=[],_e=getFederatedApp(a),et=getCurrentApp(a),nt=getFederatedEnabled(a);return et&&j.push(et),_e&&(_e==null?void 0:_e.appId)!==(et==null?void 0:et.appId)&&nt&&j.push(_e),j.reverse()}async function getBlockletData(a){try{const j=new URL("__blocklet__.js",a);return j.searchParams.set("type","json"),await(await fetch(j.href)).json()}catch(j){return console.error(`Failed to get blocklet data: ${a}`,j),null}}var Guest=function a(j){return jsxRuntimeExports.jsxs("svg",{...j,children:[jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"418",height:"473",rx:"19",fill:"#FBFBFB"}),jsxRuntimeExports.jsx("g",{clipPath:"url(#a)",children:jsxRuntimeExports.jsx("path",{opacity:".7",fill:"#DDD",d:"M0 100h420v168H0z"})}),jsxRuntimeExports.jsx("circle",{cx:"210",cy:"248",r:"60",fill:"#C4C5CA"}),jsxRuntimeExports.jsx("path",{d:"M181 284l7.2-7.2 7.2 7.2 7.2-10.8 7.2 10.8 7.2-10.8 7.2 10.8 7.2-7.2 7.2 7.2v-43.2c0-15.907-12.893-28.8-28.8-28.8S181 224.893 181 240.8V284z",fill:"#C4C5CA",stroke:"#fff",strokeWidth:"5",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M200.797 240.812h3.6-3.6zm21.6 0h3.6-3.6z",fill:"#C4C5CA"}),jsxRuntimeExports.jsx("path",{d:"M200.797 240.812h3.6m18 0h3.6",stroke:"#fff",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{opacity:".7",d:"M24 29h189v40H24V29z",fill:"#C4C5CA"}),jsxRuntimeExports.jsx("path",{opacity:".42",fill:"#C4C5CA",d:"M313 24h83v14h-83z"}),jsxRuntimeExports.jsx("path",{opacity:".7",fill:"#C4C5CA",d:"M291 50h105v26H291z"}),jsxRuntimeExports.jsx("path",{d:"M177.388 388.4c-1.733 0-3.32-.213-4.76-.64a12.355 12.355 0 0 1-3.8-1.88 15.072 15.072 0 0 1-2.96-3l3.76-4.28c1.307 1.813 2.6 3.053 3.88 3.72 1.307.64 2.72.96 4.24.96.827 0 1.56-.107 2.2-.32.667-.24 1.187-.573 1.56-1 .373-.427.56-.933.56-1.52 0-.427-.093-.813-.28-1.16a2.764 2.764 0 0 0-.8-.96 5.139 5.139 0 0 0-1.24-.76 8.666 8.666 0 0 0-1.6-.6 12.728 12.728 0 0 0-1.92-.44c-1.493-.347-2.8-.76-3.92-1.24-1.12-.507-2.053-1.12-2.8-1.84a7.456 7.456 0 0 1-1.68-2.52c-.347-.933-.52-1.987-.52-3.16 0-1.2.267-2.307.8-3.32a8.187 8.187 0 0 1 2.2-2.68 10.68 10.68 0 0 1 3.28-1.72c1.253-.4 2.573-.6 3.96-.6 1.707 0 3.2.2 4.48.6 1.28.373 2.387.92 3.32 1.64.96.72 1.76 1.6 2.4 2.64l-3.8 3.68a9.48 9.48 0 0 0-1.84-1.88 6.482 6.482 0 0 0-2.12-1.12 6.84 6.84 0 0 0-2.32-.4c-.88 0-1.64.12-2.28.36-.64.213-1.147.533-1.52.96-.347.427-.52.947-.52 1.56 0 .48.12.907.36 1.28s.587.707 1.04 1c.453.267 1 .507 1.64.72.64.213 1.347.4 2.12.56 1.467.293 2.787.68 3.96 1.16 1.173.48 2.173 1.067 3 1.76a6.784 6.784 0 0 1 1.96 2.4c.453.907.68 1.933.68 3.08 0 1.893-.453 3.507-1.36 4.84-.907 1.333-2.16 2.36-3.76 3.08-1.6.693-3.467 1.04-5.6 1.04zm17.394-.4v-26.52h5.68V388h-5.68zm-3.96-16.08v-5.08h13.96v5.08h-13.96zm25.387 16.48c-1.76 0-3.346-.48-4.76-1.44-1.413-.96-2.533-2.267-3.36-3.92-.826-1.653-1.24-3.547-1.24-5.68 0-2.133.414-4.013 1.24-5.64.854-1.653 2-2.947 3.44-3.88 1.44-.96 3.08-1.44 4.92-1.44 1.04 0 1.987.16 2.84.48.88.293 1.64.707 2.28 1.24a7.831 7.831 0 0 1 1.68 1.84c.454.693.774 1.44.96 2.24l-1.2-.2v-5.16h5.64V388h-5.72v-5.08l1.28-.12a6.81 6.81 0 0 1-1.04 2.12 8.213 8.213 0 0 1-1.8 1.8c-.693.507-1.48.92-2.36 1.24-.88.293-1.813.44-2.8.44zm1.56-4.92c1.067 0 2-.253 2.8-.76.8-.507 1.414-1.213 1.84-2.12.454-.933.68-2.013.68-3.24 0-1.2-.226-2.253-.68-3.16-.426-.907-1.04-1.613-1.84-2.12-.8-.533-1.733-.8-2.8-.8-1.04 0-1.96.267-2.76.8-.773.507-1.386 1.213-1.84 2.12-.453.907-.68 1.96-.68 3.16 0 1.227.227 2.307.68 3.24.454.907 1.067 1.613 1.84 2.12.8.507 1.72.76 2.76.76zm19.066 13.72l4.64-10.88.08 3.28-10.32-22.76h6.44l5.16 12.2c.213.453.413.987.6 1.6.213.587.387 1.16.52 1.72l-.96.4c.16-.453.347-.973.56-1.56.213-.587.427-1.213.64-1.88l4.44-12.48h6.48l-8.88 21.16-3.64 9.2h-5.76zM92.8 438l10.96-28h5.36l10.92 28h-6.16l-5.64-15.08c-.16-.427-.36-.973-.6-1.64l-.68-2.12-.68-2.12a27.95 27.95 0 0 1-.48-1.72l1.08-.04c-.16.613-.346 1.253-.56 1.92-.186.64-.386 1.307-.6 2-.213.667-.44 1.32-.68 1.96-.24.64-.466 1.267-.68 1.88L98.72 438H92.8zm5.08-5.88l1.96-4.84h12.84l2 4.84h-16.8zm25.292 5.88v-21.16h5.44l.16 4.32-1.12.48c.293-.96.813-1.827 1.56-2.6a8.83 8.83 0 0 1 2.76-1.92 8.1 8.1 0 0 1 3.36-.72c1.6 0 2.933.32 4 .96 1.093.64 1.907 1.613 2.44 2.92.56 1.28.84 2.867.84 4.76V438h-5.68v-12.52c0-.96-.133-1.76-.4-2.4-.267-.64-.68-1.107-1.24-1.4-.533-.32-1.2-.453-2-.4-.64 0-1.24.107-1.8.32a3.94 3.94 0 0 0-1.4.84c-.373.373-.68.8-.92 1.28-.213.48-.32 1-.32 1.56V438h-5.68zm34.723.4c-2.16 0-4.093-.467-5.8-1.4a10.853 10.853 0 0 1-4-3.92c-.96-1.653-1.44-3.547-1.44-5.68 0-2.133.48-4.013 1.44-5.64a10.853 10.853 0 0 1 4-3.92c1.707-.96 3.64-1.44 5.8-1.44 2.133 0 4.04.48 5.72 1.44 1.707.96 3.04 2.267 4 3.92.96 1.627 1.44 3.507 1.44 5.64 0 2.133-.48 4.027-1.44 5.68-.96 1.653-2.293 2.96-4 3.92-1.68.933-3.587 1.4-5.72 1.4zm0-4.96c1.04 0 1.973-.253 2.8-.76a5.371 5.371 0 0 0 1.92-2.16c.48-.933.72-1.973.72-3.12 0-1.173-.24-2.213-.72-3.12-.453-.933-1.093-1.653-1.92-2.16-.827-.533-1.76-.8-2.8-.8-1.067 0-2.013.267-2.84.8a5.673 5.673 0 0 0-1.96 2.16c-.48.907-.707 1.947-.68 3.12-.027 1.147.2 2.187.68 3.12a5.673 5.673 0 0 0 1.96 2.16c.827.507 1.773.76 2.84.76zm15.433 4.56v-21.16h5.44l.16 4.32-1.12.48c.294-.96.814-1.827 1.56-2.6a8.853 8.853 0 0 1 2.76-1.92 8.1 8.1 0 0 1 3.36-.72c1.6 0 2.934.32 4 .96 1.094.64 1.907 1.613 2.44 2.92.56 1.28.84 2.867.84 4.76V438h-5.68v-12.52c0-.96-.133-1.76-.4-2.4-.266-.64-.68-1.107-1.24-1.4-.533-.32-1.2-.453-2-.4-.64 0-1.24.107-1.8.32a3.94 3.94 0 0 0-1.4.84c-.373.373-.68.8-.92 1.28-.213.48-.32 1-.32 1.56V438h-5.68zm27.648 9.2l4.64-10.88.08 3.28-10.32-22.76h6.44l5.16 12.2c.213.453.413.987.6 1.6.213.587.386 1.16.52 1.72l-.96.4c.16-.453.346-.973.56-1.56.213-.587.426-1.213.64-1.88l4.44-12.48h6.48l-8.88 21.16-3.64 9.2h-5.76zm21.297-9.2v-21.16h5.48l.12 4.04-.84.16c.293-.693.68-1.32 1.16-1.88.48-.56 1.04-1.04 1.68-1.44.666-.4 1.36-.707 2.08-.92.72-.24 1.44-.36 2.16-.36 1.093 0 2.08.173 2.96.52.88.347 1.626.893 2.24 1.64.613.72 1.093 1.68 1.44 2.88l-.88-.08.28-.64a6.852 6.852 0 0 1 1.32-1.72 8.178 8.178 0 0 1 1.8-1.36c.666-.4 1.36-.707 2.08-.92a7.448 7.448 0 0 1 2.12-.32c1.653 0 3.026.333 4.12 1 1.093.64 1.906 1.613 2.44 2.92.56 1.307.84 2.907.84 4.8V438h-5.68v-12.44c0-.96-.134-1.747-.4-2.36-.267-.613-.654-1.067-1.16-1.36-.507-.32-1.16-.48-1.96-.48a4.59 4.59 0 0 0-1.72.32c-.507.187-.96.467-1.36.84a3.74 3.74 0 0 0-.88 1.24 3.885 3.885 0 0 0-.32 1.6V438h-5.68v-12.48c0-.88-.147-1.627-.44-2.24-.267-.64-.654-1.12-1.16-1.44-.507-.32-1.134-.48-1.88-.48a4.59 4.59 0 0 0-1.72.32 3.608 3.608 0 0 0-1.32.84c-.374.347-.68.76-.92 1.24-.214.48-.32 1-.32 1.56V438h-5.68zm47.848.4c-2.16 0-4.093-.467-5.8-1.4a10.853 10.853 0 0 1-4-3.92c-.96-1.653-1.44-3.547-1.44-5.68 0-2.133.48-4.013 1.44-5.64a10.853 10.853 0 0 1 4-3.92c1.707-.96 3.64-1.44 5.8-1.44 2.134 0 4.04.48 5.72 1.44 1.707.96 3.04 2.267 4 3.92.96 1.627 1.44 3.507 1.44 5.64 0 2.133-.48 4.027-1.44 5.68-.96 1.653-2.293 2.96-4 3.92-1.68.933-3.586 1.4-5.72 1.4zm0-4.96c1.04 0 1.974-.253 2.8-.76a5.371 5.371 0 0 0 1.92-2.16c.48-.933.72-1.973.72-3.12 0-1.173-.24-2.213-.72-3.12-.453-.933-1.093-1.653-1.92-2.16-.826-.533-1.76-.8-2.8-.8-1.066 0-2.013.267-2.84.8a5.681 5.681 0 0 0-1.96 2.16c-.48.907-.706 1.947-.68 3.12-.026 1.147.2 2.187.68 3.12a5.681 5.681 0 0 0 1.96 2.16c.827.507 1.774.76 2.84.76zm22.714 4.96c-1.547 0-2.88-.333-4-1-1.093-.693-1.947-1.667-2.56-2.92-.587-1.28-.88-2.813-.88-4.6v-13.04h5.68v12.12c0 .96.16 1.8.48 2.52.32.693.773 1.227 1.36 1.6.587.373 1.307.56 2.16.56.613 0 1.187-.093 1.72-.28a3.993 3.993 0 0 0 1.36-.88c.373-.373.667-.813.88-1.32.213-.507.32-1.053.32-1.64v-12.68h5.68V438h-5.4l-.2-4.36 1.04-.48a7.107 7.107 0 0 1-1.6 2.68 7.981 7.981 0 0 1-2.68 1.88c-1.04.453-2.16.68-3.36.68zm25.035 0c-1.973 0-3.733-.32-5.28-.96-1.52-.667-2.747-1.573-3.68-2.72l3.52-3.04c.827.88 1.747 1.52 2.76 1.92a8.75 8.75 0 0 0 3.04.56c.4 0 .76-.04 1.08-.12.347-.107.64-.24.88-.4.24-.187.413-.4.52-.64.133-.267.2-.547.2-.84 0-.587-.24-1.053-.72-1.4-.267-.133-.68-.293-1.24-.48-.56-.213-1.28-.44-2.16-.68-1.36-.347-2.52-.747-3.48-1.2-.933-.48-1.68-1.013-2.24-1.6a6.755 6.755 0 0 1-1.12-1.8c-.24-.667-.36-1.4-.36-2.2 0-.96.213-1.827.64-2.6a6.138 6.138 0 0 1 1.76-2.04 8.66 8.66 0 0 1 2.64-1.28c.987-.32 2.027-.48 3.12-.48s2.16.133 3.2.4 2 .653 2.88 1.16a9.77 9.77 0 0 1 2.36 1.72l-3.04 3.36a9.806 9.806 0 0 0-1.64-1.24 8.324 8.324 0 0 0-1.84-.88c-.64-.213-1.213-.32-1.72-.32-.453 0-.867.04-1.24.12-.347.08-.64.2-.88.36-.24.16-.427.373-.56.64-.107.24-.16.507-.16.8 0 .293.067.573.2.84.16.267.373.493.64.68.293.16.72.347 1.28.56a30.74 30.74 0 0 0 2.36.72c1.28.347 2.36.733 3.24 1.16.907.427 1.627.92 2.16 1.48.453.48.787 1.027 1 1.64.213.613.32 1.293.32 2.04 0 1.307-.373 2.48-1.12 3.52-.72 1.013-1.72 1.813-3 2.4-1.28.56-2.72.84-4.32.84z",fill:"#25292F"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"418",height:"558",rx:"19",stroke:"#DDD",strokeWidth:"2"}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",transform:"translate(0 100)",d:"M0 0h420v168H0z"})})})]})};Guest.defaultProps={width:"420",height:"475",viewBox:"0 0 420 475",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const OAuthContext=reactExports.createContext({}),{Provider:Provider$7,Consumer:OAuthConsumer}=OAuthContext,prefix$3=`${AUTH_SERVICE_PREFIX}/api/oauth`,parseResponse=a=>a?typeof a=="string"?{sessionToken:a}:pick$2(a,["sessionToken","refreshToken","visitorId"]):{},translations$5={zh:{bindOAuth:"绑定第三方登录",bind:"绑定",noneOAuth:"未配置第三方登录方式",bindOAuthSucceed:"绑定 {provider} 成功",unbindOAuthSucceed:"解绑 {provider} 成功",loginOAuthFailed:"登录 {provider} 失败",bindOAuthFailed:"绑定 {provider} 失败",unbindOAuthFailed:"绑定 {provider} 失败",switchPassport:"切换通行证",switchPassportFailed:"切换通行证失败",switchPassportSucceed:"切换通行证成功",choosePassport:"请选择一个通行证",switch:"切换",cancel:"取消",currentRole:"当前角色:",passport:"通行证",noPassports:"没有可更换的通行证",getPassportFailed:"获取通行证失败",loginRequired:"授权请求被拒绝",cancelAuth:"取消授权"},en:{bindOAuth:"Bind third party login",bind:"Bind ",noneOAuth:"Third party login is not configured",bindOAuthSucceed:"Bind {provider} succeed",unbindOAuthSucceed:"Unbind {provider} succeed",loginOAuthFailed:"Login {provider} failed",bindOAuthFailed:"Bind {provider} failed",unbindOAuthFailed:"Unbind {provider} failed",switchPassport:"Switch passport",switchPassportFailed:"Switch passport failed",switchPassportSucceed:"Switch passport succeed",choosePassport:"Select a passport to switch",switch:"Switch",cancel:"Cancel",currentRole:"Current role: ",passport:"Passport",noPassports:"No passport to switch",getPassportFailed:"Get passports failed",loginRequired:"You have declined the authentication request",cancelAuth:"Cancel authentication"}};function OAuthProvider({children:a,locale:j,onBindOAuth:_e,onUnbindOAuth:et,onSwitchPassport:nt}){var Kt;const tt=useReactive({baseUrl:"/",bindFnSession:void 0,bindAuthLoading:!1,unbindAuthLoading:!1}),ot=useReactive({open:!1,currentUser:null,passports:[],choosePassport:void 0,reset(){ot.open=!1,ot.currentUser=null,ot.passports=[],ot.choosePassport=void 0}}),ct=useReactive({user:null,checking:!1,loading:!1,error:"",status:"",reset(){ct.loading=!1,ct.checking=!1,ct.error="",ct.status=""}}),ft=useMemoizedFn((jt,zt={})=>translate(translations$5,jt,j,"en",zt)),ht=useCreation(()=>createAxios({baseURL:joinURL(tt.baseUrl,prefix$3)}),[tt.baseUrl,prefix$3]),dt=useMemoizedFn(async()=>{if(tt.baseUrl==="/")return window.blocklet;try{if(new URL(tt.baseUrl).host===window.location.host)return window.blocklet}catch{}return await getBlockletData(tt.baseUrl)}),yt=useMemoizedFn(async({sourceAppPid:jt}={})=>{var hn,wt;const zt=await dt(),Gt=getFederatedEnabled(zt),tn=getMaster(zt);if(Gt&&(tn!=null&&tn.appPid)&&jt===(tn==null?void 0:tn.appPid)){const rt=await getBlockletData(tn.appUrl);return((hn=rt==null?void 0:rt.settings)==null?void 0:hn.oauth)||{}}return((wt=zt==null?void 0:zt.settings)==null?void 0:wt.oauth)||{}}),Tt=useMemoizedFn(async({sourceAppPid:jt}={})=>{const zt=await yt({sourceAppPid:jt});return Object.entries(zt).map(([tn,hn])=>({...hn,provider:tn})).filter(tn=>tn.enabled).sort((tn,hn)=>(tn==null?void 0:tn.order)!==void 0&&(hn==null?void 0:hn.order)!==void 0?tn.order-hn.order:(tn==null?void 0:tn.order)!==void 0?-1:1)}),St=useMemoizedFn(async({provider:jt}={})=>{var Gt;const zt=openPopup(joinURL(tt.baseUrl,WELLKNOWN_SERVICE_PATH_PREFIX,"/oauth/login",jt),{name:"oauth-login:popup"});try{const tn=await runPopup({popup:zt,closeTimeout:0});return tn!=null&&tn.response?(Gt=tn.response)==null?void 0:Gt.code:null}catch(tn){throw(tn==null?void 0:tn.message)==="Popup closed"?new Error(ft("cancelAuth")):tn}}),At=async({session:jt,oauthItem:zt}={})=>{var Gt,tn;tt.bindFnSession=jt,tt.bindAuthLoading=!0;try{const hn=await St(zt),wt=(tn=(Gt=tt.bindFnSession)==null?void 0:Gt.user)==null?void 0:tn.sourceAppPid;await ht.post("/bind",{locale:j,provider:zt.provider,code:hn,sourceAppPid:wt}),Toast$1.success(ft("bindOAuthSucceed",{provider:OAUTH_PROVIDER[zt.provider]})),_e(zt)}catch(hn){Toast$1.error(getApiErrorMessage(hn,ft("bindOAuthFailed",{provider:OAUTH_PROVIDER[zt.provider]})))}finally{tt.bindAuthLoading=!1}},Rt=async({session:jt,connectedAccount:zt})=>{var Gt;tt.unbindAuthLoading=!0;try{const tn=(Gt=jt==null?void 0:jt.user)==null?void 0:Gt.sourceAppPid;await ht.post("/unbind",{locale:j,connectedAccount:omit$1(zt,["showProvider"]),sourceAppPid:tn}),Toast$1.success(ft("unbindOAuthSucceed",{provider:OAUTH_PROVIDER[zt.showProvider||zt.provider]})),et(zt)}catch(tn){Toast$1.error(getApiErrorMessage(tn,ft("unbindOAuthFailed",{provider:OAUTH_PROVIDER[zt.showProvider||zt.provider]})))}finally{tt.unbindAuthLoading=!1}},It=async(jt={})=>{try{const{data:zt}=await ht.get("/passports");zt.length?(ot.open=!0,ot.currentUser=jt,ot.passports=zt||[]):Toast$1.error(ft("noPassports"))}catch(zt){Toast$1.error(zt.message||ft("getPassportFailed"))}},Ct=async()=>{try{const{data:jt}=await ht.post("/switch",{passportId:ot.choosePassport}),{sessionToken:zt,refreshToken:Gt}=parseResponse(jt);nt({sessionToken:zt,refreshToken:Gt}),Toast$1.success(ft("switchPassportSucceed"))}catch(jt){Toast$1.error(jt.message||ft("switchPassportFailed"))}},kt=jt=>{tt.baseUrl=jt||"/"},Pt=useMemoizedFn(async({provider:jt}={},{action:zt="login",...Gt}={})=>{var wt,rt,st;const tn=tt.baseUrl;if((Gt==null?void 0:Gt.sourceAppPid)===((wt=window.blocklet)==null?void 0:wt.appPid))tt.baseUrl=((rt=window.blocklet)==null?void 0:rt.appUrl)||"/";else if(Gt!=null&&Gt.sourceAppPid){const ut=await dt(),pt=getFederatedEnabled(ut),mt=getMaster(ut);pt&&(mt!=null&&mt.appPid)&&(Gt==null?void 0:Gt.sourceAppPid)===(mt==null?void 0:mt.appPid)&&(tt.baseUrl=mt.appUrl)}const hn=(st=window==null?void 0:window.blocklet)==null?void 0:st.componentId;try{const ut=await St({provider:jt});if(ut){const pt={...Gt,action:zt,locale:j,code:ut,provider:jt,componentId:hn,visitorId:getVisitorId$2()};isUndefined$2(pt.inviter)&&window.localStorage.getItem("inviter")&&(pt.inviter=window.localStorage.getItem("inviter"));const{data:mt}=await ht.post("/login",pt);return parseResponse(mt)}return tt.baseUrl=tn,null}catch(ut){const pt=getApiErrorMessage(ut,ft("loginOAuthFailed",{provider:OAUTH_PROVIDER[jt]}));throw tt.baseUrl=tn,new Error(pt)}}),Bt=useMemoizedFn(()=>{});return jsxRuntimeExports.jsxs(Provider$7,{value:{locale:j,getOAuthConfigs:yt,getOAuthConfigList:Tt,bindOAuth:At,unbindOAuth:Rt,loginOAuth:Pt,logoutOAuth:Bt,switchOAuthPassport:It,baseUrl:tt.baseUrl,setBaseUrl:kt,oauthState:ct,unbindAuthLoading:tt.unbindAuthLoading,bindAuthLoading:tt.bindAuthLoading,t:ft},children:[a,jsxRuntimeExports.jsxs(Confirm,{open:ot.open,title:ft("switchPassport"),onConfirm:Ct,onCancel:()=>ot.reset,confirmButton:{text:ft("switch"),props:{variant:"contained",color:"primary"}},cancelButton:{text:ft("cancel"),props:{color:"inherit"}},PaperProps:{style:{width:600}},children:[jsxRuntimeExports.jsxs(Box,{mb:2,children:[ft("currentRole"),(Kt=ot.currentUser)==null?void 0:Kt.role]}),jsxRuntimeExports.jsx(CardSelector,{width:160,height:240,cardSpace:24,list:[()=>jsxRuntimeExports.jsx(Guest,{}),...ot.passports.map(jt=>({src:jt.display,name:jt.title}))],onSelect:jt=>{ot.choosePassport=jt>0?ot.passports[jt-1].id:void 0},defaultIndex:0})]})]})}function useOAuth(){const a=reactExports.useContext(OAuthContext);return omit$1(a,["locale","getToken"])}OAuthProvider.propTypes={children:PropTypes.node.isRequired,locale:PropTypes.string,onBindOAuth:PropTypes.func,onUnbindOAuth:PropTypes.func,onSwitchPassport:PropTypes.func};OAuthProvider.defaultProps={locale:"en",onBindOAuth:noop$7,onUnbindOAuth:noop$7,onSwitchPassport:noop$7};function getPermanentDid(a){return a==null?void 0:a.did}function getConnectedAccounts(a){var j;return(a==null?void 0:a.connectedAccounts)||((j=a==null?void 0:a.extraConfigs)==null?void 0:j.connectedAccounts)||[]}function getSourceProvider(a){var j;return(a==null?void 0:a.sourceProvider)||((j=a==null?void 0:a.extraConfigs)==null?void 0:j.sourceProvider)||"wallet"}function getSourceProviders(a){return getConnectedAccounts(a).map(_e=>_e.provider)}function getConnectedDids(a){return getConnectedAccounts(a).map(et=>et.did)}function getWallet(a){return getConnectedAccounts(a).find(et=>et.provider==="wallet")}function getWalletDid(a){const j=getWallet(a);return j==null?void 0:j.did}function useDid({session:a}){const[j,_e]=reactExports.useState({did:"",wallet:"",walletDid:"",permanentDid:"",connectedDids:[],connectedAccounts:[],sourceProvider:"",sourceProviders:[]});return reactExports.useEffect(()=>{if(a!=null&&a.user){const et=getPermanentDid(a.user),nt=getWalletDid(a.user),tt=getConnectedAccounts(a.user),ot=getConnectedDids(a.user),ct=getWallet(a.user),ft=getSourceProvider(a.user),ht=getSourceProviders(a.user);_e({did:et,wallet:ct,walletDid:nt,permanentDid:et,connectedDids:ot,connectedAccounts:tt,sourceProvider:ft,sourceProviders:ht})}},[a==null?void 0:a.user]),j}function WrapDid({session:a,children:j}){const _e=useDid({session:a});return j instanceof Function?j(_e):null}WrapDid.propTypes={session:PropTypes.object.isRequired,children:PropTypes.func.isRequired};const api$3=createAxios();async function getMasterToken(){const a=joinURL(AUTH_SERVICE_PREFIX,"/api/federated/loginMaster"),{data:j}=await api$3.post(a);return j}async function mountFederatedIframe({mode:a,refreshToken:j="",blocklet:_e}){const et=getMaster(_e);return new Promise(nt=>{if(!["login","logout"].includes(a)){nt();return}const tt=document.createElement("iframe");tt.style.display="none",tt.onload=async()=>{await sleep$1(500),document.body.removeChild(tt),nt()},tt.src=joinURL(et.appUrl,AUTH_SERVICE_PREFIX,`functional/federated?mode=${a}&refreshToken=${j}`),document.body.appendChild(tt)})}async function loginFederatedMaster(a={},{fetchToken:j=!0,blocklet:_e}={}){if(!getFederatedEnabled())return console.warn("Federated not enabled"),null;let nt,tt;j&&({sessionToken:nt,refreshToken:tt}=await getMasterToken());const ot=getMaster(_e),ct=joinURL(ot.appUrl,AUTH_SERVICE_PREFIX,"/api/federated/login"),ft={withCredentials:!0};nt&&(ft.headers={Authorization:`Bearer ${nt}`});const{data:ht}=await api$3.post(ct,a,ft);return tt&&await mountFederatedIframe({mode:"login",refreshToken:tt,blocklet:_e}),ht}const translations$4={zh:{notFoundFederatedInfo:"未发现统一登录的信息",autoLoginFederatedFailed:"自动登录统一登录账号失败",manualLoginFederatedFailed:"手动登录统一登录账号失败"},en:{notFoundFederatedInfo:"No federated login info detected",autoLoginFederatedFailed:"Auto login federated account failed",manualLoginFederatedFailed:"Manual login federated account failed"}};function useFederated({locale:a,handleLoginResult:j,login:_e,handleRefreshUser:et}){const nt=useReactive({federatedMaster:null}),tt=getFederatedEnabled(),ot=getMaster(),ct=getConfig(),ft=useMemoizedFn(async(ht=noop$7,dt={},yt={})=>{var At,Rt;typeof yt=="string"&&(yt={origin:yt});let{mode:Tt="auto",...St}=dt;if(yt.mode&&(Tt=yt.mode),Tt==="auto"){if(!tt)throw new Error(translations$4[a].notFoundFederatedInfo);try{const It=await loginFederatedMaster({appId:globalThis.blocklet.appId},{fetchToken:!1});j({...It,encrypted:!1}),await et({showProgress:!0}),ht()}catch(It){const Ct=It!=null&&It.response?(At=It.response)==null?void 0:At.data:It==null?void 0:It.message;ht(Ct||translations$4[a].autoLoginFederatedFailed)}}else if(Tt==="manual")try{_e(async()=>{await loginFederatedMaster({appId:globalThis.blocklet.appId,onlyWriteCookie:!0}),ht()},{...St},yt)}catch(It){const Ct=It!=null&&It.response?(Rt=It.response)==null?void 0:Rt.data:It==null?void 0:It.message;ht(Ct||translations$4[a].autoLoginFederatedFailed)}});return{master:ot,config:ct,federatedMaster:nt.federatedMaster,federatedEnabled:tt,loginFederated:ft,loginFederatedMaster}}async function renewRefreshToken(a,{authServicePrefix:j,serviceHost:_e}){if(!a)throw new Error("Refresh token not found");const et=createAxios({baseURL:_e,timeout:10*1e3,headers:{authorization:`Bearer ${encodeURIComponent(a)}`}}),{data:nt}=await et.post(joinURL(j,"/refreshSession"));return nt}function createService({refreshTokenStorage:a,sessionTokenStorage:j,serviceHost:_e,authServicePrefix:et,onRefreshTokenError:nt,onRefreshTokenSuccess:tt},ot={}){let ct=null;const ft=createAxios({baseURL:_e,timeout:30*1e3,...ot}),{getToken:ht,setToken:dt,removeToken:yt}=j,{getToken:Tt,setToken:St,removeToken:At}=a;return ft.interceptors.request.use(async Rt=>{if(j.engine==="ls"){const It=ht();It&&(Rt.headers.authorization=`Bearer ${encodeURIComponent(It)}`)}return ct&&await ct,Rt},Rt=>Promise.reject(Rt)),ft.interceptors.response.use(Rt=>Rt,async Rt=>{var Ct;const It=Rt.config;if(It.headers={...It==null?void 0:It.headers},((Ct=Rt==null?void 0:Rt.response)==null?void 0:Ct.status)===401&&!It._retry){It._retry=!0,ct||(ct=renewRefreshToken(Tt(),{serviceHost:_e,authServicePrefix:et}));try{const kt=await ct;return dt(kt.nextToken),St(kt.nextRefreshToken),typeof tt=="function"&&tt(kt),ft(It)}catch(kt){return yt(),At(),typeof nt=="function"&&nt(),Promise.reject(kt)}finally{ct=null}}return Promise.reject(Rt)}),ft}class ErrorToken extends Error{}const LANG_COOKIE_NAME="nf_lang",INTERVAL_TIME=1e3,MAX_RETRY_COUNT=3,decrypt=a=>decrypt$1(a,localStorage.getItem("__encKey"),localStorage.getItem("__decKey"));function useSessionToken({state:a,pageState:j,serviceHost:_e,sessionTokenStorage:et,refreshTokenStorage:nt,lazyRefreshToken:tt,apiOptions:ot={}}){const[ct,ft]=reactExports.useState(0),[ht,dt]=reactExports.useState(INTERVAL_TIME),{getToken:yt,setToken:Tt,removeToken:St}=et,{getToken:At,setToken:Rt,removeToken:It}=nt,Ct=useCreation(()=>createAxios({baseURL:_e,timeout:10*1e3}),[_e]),kt=()=>{St(),It()},Pt=useCreation(()=>createService({sessionTokenStorage:et,refreshTokenStorage:nt,serviceHost:_e,authServicePrefix:j.prefix,onRefreshTokenError(){kt(),a.user&&(a.user=null)}},ot),[_e,j.prefix]),Bt=()=>{const rt=getCookieOptions({returnDomain:!1});Cookie.remove("connected_did",rt),Cookie.remove("connected_pk",rt),Cookie.remove("connected_app",rt),Cookie.remove("connected_wallet_os",rt),kt()},Kt=useMemoizedFn(()=>{const rt=Cookie.get(LANG_COOKIE_NAME)||getBrowserLang();rt!==j.currentLocale&&(j.currentLocale=rt)}),jt=useMemoizedFn(async({showProgress:rt=!1,requestFn:st=null,onlyRefreshToken:ut=!1})=>{var pt;try{if(a.loading)return console.warn("SessionProvider.refresh is currently in progress, call it will be noop"),{loading:!0};rt&&(a.loading=!0);const{data:mt,status:$t}=await st();if($t===400&&(kt(),a.user=null,a.error=""),mt.error)throw a.error=mt.error,a.open=!1,new Error(mt.error);if(mt.user)mt.nextToken&&(Tt(mt.nextToken),mt.nextRefreshToken&&Rt(mt.nextRefreshToken)),ut||(a.open=!1,a.user=mt.user,a.provider=mt.provider,a.walletOS=mt.walletOS),yt()||(Toast$1.error("Can't write session token, please use https url to access this page"),kt());else throw rt&&(a.loading=j.autoConnect),a.open=j.autoConnect,a.user=null,a.provider="",a.walletOS="",new ErrorToken("Invalid token");return{data:mt,status:$t}}catch(mt){throw console.error("SessionProvider.refresh error",mt),a.open=!1,a.error=mt.message,((pt=mt==null?void 0:mt.response)==null?void 0:pt.status)===400?new ErrorToken("Invalid token"):mt}finally{rt&&(a.loading=!1)}}),zt=useMemoizedFn(async(rt=!1,st=!1)=>{const ut=getVisitorId$2()||"",pt=()=>Ct.post(withQuery(joinURL(j.prefix,"/refreshSession"),{visitorId:ut}),null,{headers:{authorization:`Bearer ${encodeURIComponent(At())}`}});dt(void 0);try{await jt({showProgress:rt,requestFn:pt,onlyRefreshToken:st}),ft(0)}catch(mt){mt instanceof ErrorToken?(console.warn("refresh token failed, remove all tokens"),ft(0),kt()):(console.error("refresh token failed, unexpected error:",mt),ft(ct+1),await sleep$1(INTERVAL_TIME),ct>=MAX_RETRY_COUNT&&(ft(0),kt()))}finally{dt(INTERVAL_TIME)}}),Gt=useMemoizedFn((rt=!1)=>{if(tt)return;const st=yt();let ut=rt;const pt=new Date().getTime();if(st)try{const{exp:mt,iat:$t}=o(st);mt*1e3-pt<pt-$t*1e3&&(ut=!0)}catch{ut=!0}else ut=!0;ut&&(At()?zt(!1,!0):(Bt(),a.user&&(a.user=null)))}),tn=useMemoizedFn(async({showProgress:rt=!1,forceRefreshToken:st=!1}={})=>{const ut=getVisitorId$2()||"",pt=()=>Pt.get(withQuery(joinURL(j.prefix,"/session"),{visitorId:ut}));try{if(st)throw new ErrorToken("need force refresh token");await jt({showProgress:rt,requestFn:pt})}catch(mt){mt instanceof ErrorToken&&(console.warn("try to refresh token"),await zt())}}),hn=useMemoizedFn(()=>{if(a.initialized&&a.user)try{Gt()}catch{}}),wt=useMemoizedFn(rt=>{const st=Array.isArray(rt)?rt[0]:rt,{loginToken:ut,sessionToken:pt,refreshToken:mt,visitorId:$t,encrypted:xt=!0}=st,vt=ut||pt;vt&&(Tt(xt?decrypt(vt):vt),mt&&Rt(xt?decrypt(mt):mt)),$t&&setVisitorId(xt?decrypt($t):$t)});return useInterval$1(()=>{Kt(),Gt()},ht,{immediate:!0}),{renewToken:hn,handleRefreshUser:tn,handleRefreshToken:zt,handleLoginResult:wt,decrypt,removeToken:kt,clearSession:Bt,getSessionToken:yt,getRefreshToken:At,setRefreshToken:Rt,setSessionToken:Tt,service:Pt}}var pathToRegexp$2={exports:{}},isarray$2=Array.isArray||function(a){return Object.prototype.toString.call(a)=="[object Array]"},isarray$1=isarray$2;pathToRegexp$2.exports=pathToRegexp;pathToRegexp$2.exports.parse=parse$f;pathToRegexp$2.exports.compile=compile;pathToRegexp$2.exports.tokensToFunction=tokensToFunction;pathToRegexp$2.exports.tokensToRegExp=tokensToRegExp;var PATH_REGEXP=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function parse$f(a,j){for(var _e=[],et=0,nt=0,tt="",ot=j&&j.delimiter||"/",ct;(ct=PATH_REGEXP.exec(a))!=null;){var ft=ct[0],ht=ct[1],dt=ct.index;if(tt+=a.slice(nt,dt),nt=dt+ft.length,ht){tt+=ht[1];continue}var yt=a[nt],Tt=ct[2],St=ct[3],At=ct[4],Rt=ct[5],It=ct[6],Ct=ct[7];tt&&(_e.push(tt),tt="");var kt=Tt!=null&&yt!=null&&yt!==Tt,Pt=It==="+"||It==="*",Bt=It==="?"||It==="*",Kt=Tt||ot,jt=At||Rt,zt=Tt||(typeof _e[_e.length-1]=="string"?_e[_e.length-1]:"");_e.push({name:St||et++,prefix:Tt||"",delimiter:Kt,optional:Bt,repeat:Pt,partial:kt,asterisk:!!Ct,pattern:jt?escapeGroup(jt):Ct?".*":restrictBacktrack(Kt,zt)})}return nt<a.length&&(tt+=a.substr(nt)),tt&&_e.push(tt),_e}function restrictBacktrack(a,j){return!j||j.indexOf(a)>-1?"[^"+escapeString(a)+"]+?":escapeString(j)+"|(?:(?!"+escapeString(j)+")[^"+escapeString(a)+"])+?"}function compile(a,j){return tokensToFunction(parse$f(a,j),j)}function encodeURIComponentPretty(a){return encodeURI(a).replace(/[\/?#]/g,function(j){return"%"+j.charCodeAt(0).toString(16).toUpperCase()})}function encodeAsterisk(a){return encodeURI(a).replace(/[?#]/g,function(j){return"%"+j.charCodeAt(0).toString(16).toUpperCase()})}function tokensToFunction(a,j){for(var _e=new Array(a.length),et=0;et<a.length;et++)typeof a[et]=="object"&&(_e[et]=new RegExp("^(?:"+a[et].pattern+")$",flags(j)));return function(nt,tt){for(var ot="",ct=nt||{},ft=tt||{},ht=ft.pretty?encodeURIComponentPretty:encodeURIComponent,dt=0;dt<a.length;dt++){var yt=a[dt];if(typeof yt=="string"){ot+=yt;continue}var Tt=ct[yt.name],St;if(Tt==null)if(yt.optional){yt.partial&&(ot+=yt.prefix);continue}else throw new TypeError('Expected "'+yt.name+'" to be defined');if(isarray$1(Tt)){if(!yt.repeat)throw new TypeError('Expected "'+yt.name+'" to not repeat, but received `'+JSON.stringify(Tt)+"`");if(Tt.length===0){if(yt.optional)continue;throw new TypeError('Expected "'+yt.name+'" to not be empty')}for(var At=0;At<Tt.length;At++){if(St=ht(Tt[At]),!_e[dt].test(St))throw new TypeError('Expected all "'+yt.name+'" to match "'+yt.pattern+'", but received `'+JSON.stringify(St)+"`");ot+=(At===0?yt.prefix:yt.delimiter)+St}continue}if(St=yt.asterisk?encodeAsterisk(Tt):ht(Tt),!_e[dt].test(St))throw new TypeError('Expected "'+yt.name+'" to match "'+yt.pattern+'", but received "'+St+'"');ot+=yt.prefix+St}return ot}}function escapeString(a){return a.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function escapeGroup(a){return a.replace(/([=!:$\/()])/g,"\\$1")}function attachKeys(a,j){return a.keys=j,a}function flags(a){return a&&a.sensitive?"":"i"}function regexpToRegexp(a,j){var _e=a.source.match(/\((?!\?)/g);if(_e)for(var et=0;et<_e.length;et++)j.push({name:et,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return attachKeys(a,j)}function arrayToRegexp(a,j,_e){for(var et=[],nt=0;nt<a.length;nt++)et.push(pathToRegexp(a[nt],j,_e).source);var tt=new RegExp("(?:"+et.join("|")+")",flags(_e));return attachKeys(tt,j)}function stringToRegexp(a,j,_e){return tokensToRegExp(parse$f(a,_e),j,_e)}function tokensToRegExp(a,j,_e){isarray$1(j)||(_e=j||_e,j=[]),_e=_e||{};for(var et=_e.strict,nt=_e.end!==!1,tt="",ot=0;ot<a.length;ot++){var ct=a[ot];if(typeof ct=="string")tt+=escapeString(ct);else{var ft=escapeString(ct.prefix),ht="(?:"+ct.pattern+")";j.push(ct),ct.repeat&&(ht+="(?:"+ft+ht+")*"),ct.optional?ct.partial?ht=ft+"("+ht+")?":ht="(?:"+ft+"("+ht+"))?":ht=ft+"("+ht+")",tt+=ht}}var dt=escapeString(_e.delimiter||"/"),yt=tt.slice(-dt.length)===dt;return et||(tt=(yt?tt.slice(0,-dt.length):tt)+"(?:"+dt+"(?=$))?"),nt?tt+="$":tt+=et&&yt?"":"(?="+dt+"|$)",attachKeys(new RegExp("^"+tt,flags(_e)),j)}function pathToRegexp(a,j,_e){return isarray$1(j)||(_e=j||_e,j=[]),_e=_e||{},a instanceof RegExp?regexpToRegexp(a,j):isarray$1(a)?arrayToRegexp(a,j,_e):stringToRegexp(a,j,_e)}var pathToRegexpExports=pathToRegexp$2.exports;const pathToRegexp$1=getDefaultExportFromCjs$1(pathToRegexpExports);function useProtectedRoutes({protectedRoutes:a=[]}){const j=useCreation(()=>a.map(et=>pathToRegexp$1(et,[])),[a]);return{checkMatch:useMemoizedFn((et=window.location.pathname)=>j.some(nt=>nt.exec(et)))}}const SessionContext$1=reactExports.createContext();var dist$1={},eventemitter3={exports:{}};(function(a){var j=Object.prototype.hasOwnProperty,_e="~";function et(){}Object.create&&(et.prototype=Object.create(null),new et().__proto__||(_e=!1));function nt(ft,ht,dt){this.fn=ft,this.context=ht,this.once=dt||!1}function tt(ft,ht,dt,yt,Tt){if(typeof dt!="function")throw new TypeError("The listener must be a function");var St=new nt(dt,yt||ft,Tt),At=_e?_e+ht:ht;return ft._events[At]?ft._events[At].fn?ft._events[At]=[ft._events[At],St]:ft._events[At].push(St):(ft._events[At]=St,ft._eventsCount++),ft}function ot(ft,ht){--ft._eventsCount===0?ft._events=new et:delete ft._events[ht]}function ct(){this._events=new et,this._eventsCount=0}ct.prototype.eventNames=function(){var ht=[],dt,yt;if(this._eventsCount===0)return ht;for(yt in dt=this._events)j.call(dt,yt)&&ht.push(_e?yt.slice(1):yt);return Object.getOwnPropertySymbols?ht.concat(Object.getOwnPropertySymbols(dt)):ht},ct.prototype.listeners=function(ht){var dt=_e?_e+ht:ht,yt=this._events[dt];if(!yt)return[];if(yt.fn)return[yt.fn];for(var Tt=0,St=yt.length,At=new Array(St);Tt<St;Tt++)At[Tt]=yt[Tt].fn;return At},ct.prototype.listenerCount=function(ht){var dt=_e?_e+ht:ht,yt=this._events[dt];return yt?yt.fn?1:yt.length:0},ct.prototype.emit=function(ht,dt,yt,Tt,St,At){var Rt=_e?_e+ht:ht;if(!this._events[Rt])return!1;var It=this._events[Rt],Ct=arguments.length,kt,Pt;if(It.fn){switch(It.once&&this.removeListener(ht,It.fn,void 0,!0),Ct){case 1:return It.fn.call(It.context),!0;case 2:return It.fn.call(It.context,dt),!0;case 3:return It.fn.call(It.context,dt,yt),!0;case 4:return It.fn.call(It.context,dt,yt,Tt),!0;case 5:return It.fn.call(It.context,dt,yt,Tt,St),!0;case 6:return It.fn.call(It.context,dt,yt,Tt,St,At),!0}for(Pt=1,kt=new Array(Ct-1);Pt<Ct;Pt++)kt[Pt-1]=arguments[Pt];It.fn.apply(It.context,kt)}else{var Bt=It.length,Kt;for(Pt=0;Pt<Bt;Pt++)switch(It[Pt].once&&this.removeListener(ht,It[Pt].fn,void 0,!0),Ct){case 1:It[Pt].fn.call(It[Pt].context);break;case 2:It[Pt].fn.call(It[Pt].context,dt);break;case 3:It[Pt].fn.call(It[Pt].context,dt,yt);break;case 4:It[Pt].fn.call(It[Pt].context,dt,yt,Tt);break;default:if(!kt)for(Kt=1,kt=new Array(Ct-1);Kt<Ct;Kt++)kt[Kt-1]=arguments[Kt];It[Pt].fn.apply(It[Pt].context,kt)}}return!0},ct.prototype.on=function(ht,dt,yt){return tt(this,ht,dt,yt,!1)},ct.prototype.once=function(ht,dt,yt){return tt(this,ht,dt,yt,!0)},ct.prototype.removeListener=function(ht,dt,yt,Tt){var St=_e?_e+ht:ht;if(!this._events[St])return this;if(!dt)return ot(this,St),this;var At=this._events[St];if(At.fn)At.fn===dt&&(!Tt||At.once)&&(!yt||At.context===yt)&&ot(this,St);else{for(var Rt=0,It=[],Ct=At.length;Rt<Ct;Rt++)(At[Rt].fn!==dt||Tt&&!At[Rt].once||yt&&At[Rt].context!==yt)&&It.push(At[Rt]);It.length?this._events[St]=It.length===1?It[0]:It:ot(this,St)}return this},ct.prototype.removeAllListeners=function(ht){var dt;return ht?(dt=_e?_e+ht:ht,this._events[dt]&&ot(this,dt)):(this._events=new et,this._eventsCount=0),this},ct.prototype.off=ct.prototype.removeListener,ct.prototype.addListener=ct.prototype.on,ct.prefixed=_e,ct.EventEmitter=ct,a.exports=ct})(eventemitter3);var eventemitter3Exports=eventemitter3.exports,priorityQueue={},lowerBound$1={};Object.defineProperty(lowerBound$1,"__esModule",{value:!0});function lowerBound(a,j,_e){let et=0,nt=a.length;for(;nt>0;){const tt=nt/2|0;let ot=et+tt;_e(a[ot],j)<=0?(et=++ot,nt-=tt+1):nt=tt}return et}lowerBound$1.default=lowerBound;Object.defineProperty(priorityQueue,"__esModule",{value:!0});const lower_bound_1=lowerBound$1;class PriorityQueue{constructor(){this._queue=[]}enqueue(j,_e){_e=Object.assign({priority:0},_e);const et={priority:_e.priority,run:j};if(this.size&&this._queue[this.size-1].priority>=_e.priority){this._queue.push(et);return}const nt=lower_bound_1.default(this._queue,et,(tt,ot)=>ot.priority-tt.priority);this._queue.splice(nt,0,et)}dequeue(){const j=this._queue.shift();return j==null?void 0:j.run}filter(j){return this._queue.filter(_e=>_e.priority===j.priority).map(_e=>_e.run)}get size(){return this._queue.length}}priorityQueue.default=PriorityQueue;Object.defineProperty(dist$1,"__esModule",{value:!0});const EventEmitter$4=eventemitter3Exports,p_timeout_1=pTimeoutExports,priority_queue_1=priorityQueue,empty=()=>{},timeoutError=new p_timeout_1.TimeoutError;class PQueue extends EventEmitter$4{constructor(j){var _e,et,nt,tt;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=empty,this._resolveIdle=empty,j=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:priority_queue_1.default},j),!(typeof j.intervalCap=="number"&&j.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(et=(_e=j.intervalCap)===null||_e===void 0?void 0:_e.toString())!==null&&et!==void 0?et:""}\` (${typeof j.intervalCap})`);if(j.interval===void 0||!(Number.isFinite(j.interval)&&j.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(tt=(nt=j.interval)===null||nt===void 0?void 0:nt.toString())!==null&&tt!==void 0?tt:""}\` (${typeof j.interval})`);this._carryoverConcurrencyCount=j.carryoverConcurrencyCount,this._isIntervalIgnored=j.intervalCap===1/0||j.interval===0,this._intervalCap=j.intervalCap,this._interval=j.interval,this._queue=new j.queueClass,this._queueClass=j.queueClass,this.concurrency=j.concurrency,this._timeout=j.timeout,this._throwOnTimeout=j.throwOnTimeout===!0,this._isPaused=j.autoStart===!1}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=empty,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=empty,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){const j=Date.now();if(this._intervalId===void 0){const _e=this._intervalEnd-j;if(_e<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},_e)),!0}return!1}_tryToStartAnother(){if(this._queue.size===0)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){const j=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){const _e=this._queue.dequeue();return _e?(this.emit("active"),_e(),j&&this._initializeIntervalIfNeeded(),!0):!1}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||this._intervalId!==void 0||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){this._intervalCount===0&&this._pendingCount===0&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(j){if(!(typeof j=="number"&&j>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${j}\` (${typeof j})`);this._concurrency=j,this._processQueue()}async add(j,_e={}){return new Promise((et,nt)=>{const tt=async()=>{this._pendingCount++,this._intervalCount++;try{const ot=this._timeout===void 0&&_e.timeout===void 0?j():p_timeout_1.default(Promise.resolve(j()),_e.timeout===void 0?this._timeout:_e.timeout,()=>{(_e.throwOnTimeout===void 0?this._throwOnTimeout:_e.throwOnTimeout)&&nt(timeoutError)});et(await ot)}catch(ot){nt(ot)}this._next()};this._queue.enqueue(tt,_e),this._tryToStartAnother(),this.emit("add")})}async addAll(j,_e){return Promise.all(j.map(async et=>this.add(et,_e)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(j=>{const _e=this._resolveEmpty;this._resolveEmpty=()=>{_e(),j()}})}async onIdle(){if(!(this._pendingCount===0&&this._queue.size===0))return new Promise(j=>{const _e=this._resolveIdle;this._resolveIdle=()=>{_e(),j()}})}get size(){return this._queue.size}sizeBy(j){return this._queue.filter(j).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(j){this._timeout=j}}var _default$2=dist$1.default=PQueue;const data$s={width:24,height:24,body:'<path fill="currentColor" d="M10 22L0 12L10 2l1.775 1.775L3.55 12l8.225 8.225L10 22Z"/>'},data$r={width:24,height:24,body:'<path fill="currentColor" d="m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 13.4Z"/>'},Transition=reactExports.forwardRef(function a(j,_e){return jsxRuntimeExports.jsx(Slide,{direction:"up",ref:_e,...j})});function withDialog(a){function j({popup:_e,open:et,dialogStyle:nt,responsive:tt,...ot}){const ct=useMediaQuery("(max-width:640px)");if(!_e&&!tt)return jsxRuntimeExports.jsx(a,{...ot});const ft=(dt,yt)=>{},ht=tt?!0:et;return jsxRuntimeExports.jsx(Dialog$1,{open:ht,fullScreen:ct,maxWidth:"lg",onClose:ft,...ct?{TransitionComponent:Transition,PaperProps:{sx:{borderRadius:3,borderBottomLeftRadius:0,borderBottomRightRadius:0}}}:{PaperProps:{sx:{borderRadius:3}}},children:jsxRuntimeExports.jsx(DialogContent,{sx:{maxWidth:"100%",maxHeight:"100%",p:"0px !important"},children:jsxRuntimeExports.jsx(Box,{sx:{maxWidth:"100%",width:ct?"100%":500,height:ct?"100%":"auto"},children:jsxRuntimeExports.jsx(a,{...ot,hideCloseButton:(ot==null?void 0:ot.hideCloseButton)??!1,isFullScreen:ct,mode:"dialog"})})})})}return j.propTypes={responsive:PropTypes.bool,popup:PropTypes.bool,open:PropTypes.bool,dialogStyle:PropTypes.object},j.defaultProps={responsive:!1,popup:!1,open:!1,dialogStyle:{}},j}var useIdle$1={},cjs={};Object.defineProperty(cjs,"__esModule",{value:!0});function throttle(a,j,_e,et){var nt,tt=!1,ot=0;function ct(){nt&&clearTimeout(nt)}function ft(){ct(),tt=!0}typeof j!="boolean"&&(et=_e,_e=j,j=void 0);function ht(){for(var dt=arguments.length,yt=new Array(dt),Tt=0;Tt<dt;Tt++)yt[Tt]=arguments[Tt];var St=this,At=Date.now()-ot;if(tt)return;function Rt(){ot=Date.now(),_e.apply(St,yt)}function It(){nt=void 0}et&&!nt&&Rt(),ct(),et===void 0&&At>a?Rt():j!==!0&&(nt=setTimeout(et?It:Rt,et===void 0?a-At:a))}return ht.cancel=ft,ht}function debounce(a,j,_e){return _e===void 0?throttle(a,j,!1):throttle(a,_e,j!==!1)}cjs.debounce=debounce;cjs.throttle=throttle;var util$4={};Object.defineProperty(util$4,"__esModule",{value:!0});util$4.isNavigator=util$4.isBrowser=util$4.off=util$4.on=util$4.noop=void 0;var noop$1=function(){};util$4.noop=noop$1;function on(a){for(var j=[],_e=1;_e<arguments.length;_e++)j[_e-1]=arguments[_e];a&&a.addEventListener&&a.addEventListener.apply(a,j)}util$4.on=on;function off(a){for(var j=[],_e=1;_e<arguments.length;_e++)j[_e-1]=arguments[_e];a&&a.removeEventListener&&a.removeEventListener.apply(a,j)}util$4.off=off;util$4.isBrowser=typeof window<"u";util$4.isNavigator=typeof navigator<"u";Object.defineProperty(useIdle$1,"__esModule",{value:!0});var react_1=reactExports,throttle_debounce_1=cjs,util_1$3=util$4,defaultEvents=["mousemove","mousedown","resize","keydown","touchstart","wheel"],oneMinute=6e4,useIdle=function(a,j,_e){a===void 0&&(a=oneMinute),j===void 0&&(j=!1),_e===void 0&&(_e=defaultEvents);var et=react_1.useState(j),nt=et[0],tt=et[1];return react_1.useEffect(function(){for(var ot=!0,ct,ft=nt,ht=function(St){ot&&(ft=St,tt(St))},dt=throttle_debounce_1.throttle(50,function(){ft&&ht(!1),clearTimeout(ct),ct=setTimeout(function(){return ht(!0)},a)}),yt=function(){document.hidden||dt()},Tt=0;Tt<_e.length;Tt++)util_1$3.on(window,_e[Tt],dt);return util_1$3.on(document,"visibilitychange",yt),ct=setTimeout(function(){return ht(!0)},a),function(){ot=!1;for(var St=0;St<_e.length;St++)util_1$3.off(window,_e[St],dt);util_1$3.off(document,"visibilitychange",yt)}},[a,_e]),nt},_default$1=useIdle$1.default=useIdle;const DEFAULT_MAX_IDLE_TIME=1e3*60*30,STORAGE_KEY_DISABLED="wallet_sw_keeper_disabled";let id$1;const injectIframe=a=>{const j=document.createElement("iframe");j.title="abt wallet",j.id=id$1,j.style.width=0,j.style.height=0,j.style.border=0,j.style.display="block",j.style.position="absolute",j.style.top=0,j.src=`${a}?action=iframe`,document.body.appendChild(j)},removeIframe=()=>{const a=document.getElementById(id$1);a&&document.body.removeChild(a)},cleanup=()=>{removeIframe(),id$1=null},enable=a=>{id$1||(id$1=`web_wallet_sw_keeper_${Date.now()}`,injectIframe(a))};function WebWalletSWKeeper({webWalletUrl:a,maxIdleTime:j}){const _e=reactExports.useRef(!!id$1),et=_default$1(j),nt=()=>{_e.current||cleanup()};return reactExports.useEffect(()=>{et?nt():enable(a)},[et]),reactExports.useEffect(()=>()=>nt(),[]),null}WebWalletSWKeeper.propTypes={webWalletUrl:PropTypes.string.isRequired,maxIdleTime:PropTypes.number};WebWalletSWKeeper.defaultProps={maxIdleTime:DEFAULT_MAX_IDLE_TIME};const withWebWalletSWKeeper=a=>function({webWalletUrl:_e,maxIdleTime:et,...nt}){const tt=useBrowser();_e=_e||getWebWalletUrl$1();const[ot]=useLocalStorageState(STORAGE_KEY_DISABLED,{defaultValue:1}),ct=detectWalletExtension(),ft=checkSameProtocol(_e),ht=tt.wallet;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!ot&&!ct&&ft&&!ht&&jsxRuntimeExports.jsx(WebWalletSWKeeper,{webWalletUrl:_e,maxIdleTime:et}),jsxRuntimeExports.jsx(a,{webWalletUrl:_e,...nt})]})},BlockletContext$1=reactExports.createContext(),{Provider:Provider$6,Consumer:Consumer$6}=BlockletContext$1;function BlockletProvider$1({children:a,baseUrl:j,loading:_e}){const[et,nt]=reactExports.useState(null),tt=useMemoizedFn(async()=>{if(!j||window.location.href.startsWith(j))throw new Error("no blocklet data");const ot=new URL("__blocklet__.js",j);return ot.searchParams.set("type","json"),await(await fetch(ot.href)).json()});return useAsyncEffect(async()=>{try{const ot=await tt();nt(ot)}catch{const ot=globalThis.blocklet||globalThis.env;nt(ot)}},[j]),jsxRuntimeExports.jsx(Provider$6,{value:et,children:et?a:_e||null})}function useBlockletContext$2(){return{blocklet:reactExports.useContext(BlockletContext$1)}}BlockletProvider$1.propTypes={baseUrl:PropTypes.string,children:PropTypes.any.isRequired,loading:PropTypes.any};BlockletProvider$1.defaultProps={baseUrl:"",loading:null};function Loading(){return jsxRuntimeExports.jsx(Box,{sx:{height:"100%",minWidth:"200px",minHeight:"200px",display:"flex",justifyContent:"center",alignItems:"center"},children:jsxRuntimeExports.jsx(CircularProgress,{sx:{color:colors$1.foregroundsFgInteractive}})})}function withBlocklet(a){function j({...et}){const{blocklet:nt}=useBlockletContext$2();return jsxRuntimeExports.jsx(a,{...et,blocklet:nt})}function _e({baseUrl:et,...nt}){return jsxRuntimeExports.jsx(BlockletProvider$1,{baseUrl:et,loading:jsxRuntimeExports.jsx(Loading,{}),children:jsxRuntimeExports.jsx(j,{baseUrl:et,...nt})})}return _e}const keyPair=tweetnacl.box.keyPair();function useSecurity(){const[a,j]=useLocalStorageState("__encKey",{defaultValue:encodeKey(keyPair.publicKey),deserializer:ot=>ot,serializer:ot=>ot}),[_e,et]=useLocalStorageState("__decKey",{defaultValue:encodeKey(keyPair.secretKey),deserializer:ot=>ot,serializer:ot=>ot});return reactExports.useEffect(()=>{localStorage.getItem("__encKey")||j(encodeKey(keyPair.publicKey)),localStorage.getItem("__decKey")||et(encodeKey(keyPair.secretKey))},[]),{encryptKey:a,decryptKey:_e,decrypt:(ot,ct=a,ft=_e)=>decrypt$1(ot,ct,ft),encrypt:(ot,ct=a)=>encrypt(ot,ct)}}function useApps({blocklet:a,action:j,sourceAppPid:_e,connectState:et,enableSwitchApp:nt}){var ht,dt;const tt=reactExports.useContext(SessionContext$1),ot=useCreation(()=>{var yt;return nt===!0?!0:!(nt===!1||(yt=tt==null?void 0:tt.session)!=null&&yt.user&&!["login"].includes(j))},[j,(ht=tt==null?void 0:tt.session)==null?void 0:ht.user]),ct=useCreation(()=>{if(isUndefined$2(_e)){const yt=getFederatedEnabled(a),Tt=getMaster(a);if(yt&&(Tt!=null&&Tt.appPid))return Tt.appPid}return _e},[_e]);return{appInfoList:useCreation(()=>getApps(a).filter(Tt=>{var St;return ot?!0:isUndefined$2(_e)?isUndefined$2(et.sourceAppPid)?(St=tt==null?void 0:tt.session)!=null&&St.user?Tt.sourceAppPid===tt.session.user.sourceAppPid:Tt.sourceAppPid===ct:Tt.sourceAppPid===et.sourceAppPid:Tt.sourceAppPid===_e}),[ot,_e,et.sourceAppPid,ct,(dt=tt==null?void 0:tt.session)==null?void 0:dt.user]),autoGenerateSourceAppPid:ct,canSwitchApp:ot}}const translations$3={en:{generateError:"Request new qrcode failed",checkError:"Status check failed!",scanned:"Use your wallet to continue operation...",mfaCode:"We sent you a verification request on your DID Wallet, enter the digits below to confirm.",refresh:"Refresh",open:"Open in DID Wallet",openDidConnect:"Open DID Connect",error:"We encountered some errors when processing the request",invalidSessionStatus:"Invalid session status",success:"Success",wait:"Wait a second",waiting:"Waiting for next workflow to complete...",failed:"Failed",oops:"Oops",forbidden:"Login user and wallet user mismatch, please logout, then login to retry",webWallet:"Auth with Web Wallet",cancel:"Cancel",close:"Close",retry:"Retry",retryForbidden:"Please start this workflow from the beginning",getWallet:"Don't have the DID Wallet? Get it now.",back:"Back",connect:"Use the following to connect",connecting:"Connecting to your",connectingSuffix:"Or use the following to connect",connected:"Connected to your",busyTitle:"Busy",busyDesc:"Busy processing another DID Connect request",loginWithBefore:"Login with ",loginWithAfter:"",bindOAuth:"Bind third party login",bind:"Bind ",loginOAuthFailed:"Login with third party failed",loginWithAnotherAccount:"Login with another account",quickLoginDescription:"The following accounts have been detected in the current unified login environment. Click the following accounts to log in quickly.",quickLogin:"Login {appName} with {masterAppName} account",sessionFrom:"Session founded from {appName} blocklet",loginWithThisAccount:"Click to login with this account",chooseAccount:"Choose an account",lostPassport:"Lost your passport?",lostPassportTips:"If you have lost your passport, you can click here to claim back.",download:"Download",downloadTips:"Don't have DID Wallet ?",scanWithWallet:"Easy Login with QR Code Scanning",openInWallet:"Open in DID Wallet",webExtension:"Web Wallet Extension",connectButton:"Connect",switch:"Switch",requestConnect:"Requesting Connection",continueInWallet:"Please continue in the DID Wallet",loginWithBelow:"Login using the following methods",otherAccount:"Other account"},zh:{generateError:"二维码生成失败",checkError:"扫码状态检查失败",scanned:"请到您的钱包上继续操作……",mfaCode:"我们给你的 DID 钱包发送了一个二次验证请求,请输入下面的数字完成验证",refresh:"刷新",open:"在 DID 钱包中打开",openDidConnect:"打开 DID Connect",error:"服务器开小差了!",invalidSessionStatus:"无效的会话状态",success:"成功",failed:"失败",wait:"请稍候",waiting:"正在等待下个流程完成...",forbidden:"登录用户和扫码用户不匹配,为保障安全,请退出后重新登录",oops:"哎呀",webWallet:"使用 Web Wallet 验证",cancel:"取消",close:"关闭",retry:"重试",retryForbidden:"请关闭当前弹窗并重新开始当前流程",getWallet:"还没有 DID Wallet? 现在下载.",back:"返回",connect:"请选择以下方式之一连接",connecting:"正在自动连接您的",connectingSuffix:"或选择以下方式手动连接",connected:"已连接您的",busyTitle:"钱包繁忙",busyDesc:"正在处理其他请求",loginWithBefore:"使用",loginWithAfter:"登录",bindOAuth:"绑定第三方登录",bind:"绑定",loginOAuthFailed:"第三方登录失败",loginWithAnotherAccount:"使用其他账户登录",quickLoginDescription:"检测到当前统一登录环境中已存在下列账户,点击以下账户,进行快捷登录",quickLogin:"使用 {masterAppName} 账户登录 {appName}",sessionFrom:"发现自 {appName} 应用",loginWithThisAccount:"点击使用此账号登录",chooseAccount:"选择一个账号",lostPassport:"找回通行证",lostPassportTips:"如果您丢失了登录通行证,您可以点击这里来找回。",download:"下载",downloadTips:"没有 DID Wallet ?",scanWithWallet:"使用 DID Wallet 扫码二维码",openInWallet:"使用 DID Wallet 打开",webExtension:"浏览器插件",connectButton:"连接",switch:"切换",requestConnect:"正在请求连接",continueInWallet:"请在 DID Wallet 中继续完成您的操作",loginWithBelow:"使用以下方式进行登录",otherAccount:"其他账号"}},StateContext=reactExports.createContext({isWalletWebview:!1,isMobile:!1,matchSmallScreen:!1}),{Provider:Provider$5,Consumer:Consumer$5}=StateContext;function StateProvider({children:a,blocklet:j,action:_e,extraParams:et,locale:nt,...tt}){var Kt;const ot=useMemoizedFn((jt,zt={})=>translate(translations$3,jt,nt,"en",zt)),ct=reactExports.useContext(SessionContext$1),ft=useReactive({sourceAppPid:void 0,status:"created",autoActiveWebview:!0}),ht=reactExports.useRef({cancelCount:0}),dt=useBrowser(),{appInfoList:yt,autoGenerateSourceAppPid:Tt,canSwitchApp:St}=useApps({blocklet:j,connectState:ft,action:_e,sourceAppPid:et==null?void 0:et.sourceAppPid,enableSwitchApp:(et==null?void 0:et.forceSwitch)||(et==null?void 0:et.enableSwitchApp)}),At=reactExports.useRef(null),Rt=useSize(At),Ct=((Rt==null?void 0:Rt.width)||0)<500,kt=useCreation(()=>{var jt,zt;return St?{...et,sourceAppPid:isUndefined$2(ft.sourceAppPid)?Tt:ft.sourceAppPid}:(jt=ct==null?void 0:ct.session)!=null&&jt.user?isUndefined$2(et==null?void 0:et.sourceAppPid)?{...et,sourceAppPid:(zt=ct.session.user)==null?void 0:zt.sourceAppPid}:et:{...et,sourceAppPid:Tt}},[St,et,ft.sourceAppPid,_e,Tt,(Kt=ct==null?void 0:ct.session)==null?void 0:Kt.user]),Pt=useMemoizedFn(jt=>{ft.status=jt||"created"}),Bt={isWalletWebview:dt.wallet,isMobile:dt.mobile.any,matchSmallScreen:Ct,connectState:ft,staticState:ht,reactiveState:ft,appInfoList:yt,extraParams:kt,blocklet:j,t:ot,locale:nt,changeStatus:Pt};return jsxRuntimeExports.jsx(Provider$5,{value:Bt,children:jsxRuntimeExports.jsx(Box,{...tt,ref:At,children:a})})}StateProvider.propTypes={children:PropTypes.any.isRequired,blocklet:PropTypes.object.isRequired,action:PropTypes.string.isRequired,sourceAppPid:PropTypes.string,extraParams:PropTypes.object,locale:PropTypes.string};StateProvider.defaultProps={sourceAppPid:void 0,extraParams:{},locale:"en"};function useStateContext(){return reactExports.useContext(StateContext)}const data$q={width:24,height:24,hidden:!0,body:'<path fill="currentColor" d="M12 11q.825 0 1.413-.588Q14 9.825 14 9t-.587-1.413Q12.825 7 12 7q-.825 0-1.412.587Q10 8.175 10 9q0 .825.588 1.412Q11.175 11 12 11Zm0 2q-1.65 0-2.825-1.175Q8 10.65 8 9q0-1.65 1.175-2.825Q10.35 5 12 5q1.65 0 2.825 1.175Q16 7.35 16 9q0 1.65-1.175 2.825Q13.65 13 12 13Zm0 11q-2.475 0-4.662-.938q-2.188-.937-3.825-2.574Q1.875 18.85.938 16.663Q0 14.475 0 12t.938-4.663q.937-2.187 2.575-3.825Q5.15 1.875 7.338.938Q9.525 0 12 0t4.663.938q2.187.937 3.825 2.574q1.637 1.638 2.574 3.825Q24 9.525 24 12t-.938 4.663q-.937 2.187-2.574 3.825q-1.638 1.637-3.825 2.574Q14.475 24 12 24Zm0-2q1.8 0 3.375-.575T18.25 19.8q-.825-.925-2.425-1.612q-1.6-.688-3.825-.688t-3.825.688q-1.6.687-2.425 1.612q1.3 1.05 2.875 1.625T12 22Zm-7.7-3.6q1.2-1.3 3.225-2.1q2.025-.8 4.475-.8q2.45 0 4.463.8q2.012.8 3.212 2.1q1.1-1.325 1.713-2.95Q22 13.825 22 12q0-2.075-.788-3.887q-.787-1.813-2.15-3.175q-1.362-1.363-3.175-2.151Q14.075 2 12 2q-2.05 0-3.875.787q-1.825.788-3.187 2.151Q3.575 6.3 2.788 8.113Q2 9.925 2 12q0 1.825.6 3.463q.6 1.637 1.7 2.937Z"/>'},data$p={width:24,height:24,body:'<path fill="currentColor" d="M16.15 13H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.15L13.3 8.15q-.3-.3-.288-.7t.288-.7q.3-.3.713-.313t.712.288L19.3 11.3q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.575 4.575q-.3.3-.712.288t-.713-.313q-.275-.3-.288-.7t.288-.7L16.15 13Z"/>'};var zhCn={exports:{}};(function(a,j){(function(_e,et){a.exports=et(dayjs_minExports)})(commonjsGlobal,function(_e){function et(ot){return ot&&typeof ot=="object"&&"default"in ot?ot:{default:ot}}var nt=et(_e),tt={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(ot,ct){return ct==="W"?ot+"周":ot+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(ot,ct){var ft=100*ot+ct;return ft<600?"凌晨":ft<900?"早上":ft<1100?"上午":ft<1300?"中午":ft<1800?"下午":"晚上"}};return nt.default.locale(tt,null,!0),tt})})(zhCn);var updateLocale$1={exports:{}};(function(a,j){(function(_e,et){a.exports=et()})(commonjsGlobal,function(){return function(_e,et,nt){nt.updateLocale=function(tt,ot){var ct=nt.Ls[tt];if(ct)return(ot?Object.keys(ot):[]).forEach(function(ft){ct[ft]=ot[ft]}),ct}}})})(updateLocale$1);var updateLocaleExports=updateLocale$1.exports;const updateLocale=getDefaultExportFromCjs$1(updateLocaleExports);defaultDayjs.extend(localizedFormatPlugin);defaultDayjs.extend(utc$1);defaultDayjs.extend(timezone$1);defaultDayjs.extend(updateLocale);defaultDayjs.extend(relativeTime$1);defaultDayjs.updateLocale("zh-cn",{relativeTime:{future:"%s后",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"}});setDateTool(defaultDayjs);function RelativeTime({value:a,locale:j,withoutSuffix:_e,from:et,to:nt,type:tt,tz:ot,relativeRange:ct,...ft}){if(!a)return"-";const ht=j==="zh"?"zh-cn":"en-us",dt=defaultDayjs(a).locale(ht);ot&&dt.tz(ot);const yt=formatToDatetime$1(a,{locale:ht,tz:ot});let Tt;if(et)Tt=dt.from(et,_e);else if(nt)Tt=dt.to(nt,_e);else if(ct){const Rt=dt.diff(defaultDayjs());Math.abs(Rt)>ct&&(Tt=yt)}Tt||(Tt=dt.fromNow(_e));let St=Tt,At=yt;return tt==="absolute"&&(St=yt,At=Tt),jsxRuntimeExports.jsx(Tooltip,{title:At,placement:"top-end",enterTouchDelay:0,children:jsxRuntimeExports.jsx("span",{...ft,children:St})})}RelativeTime.propTypes={value:PropTypes.oneOfType([PropTypes.string,PropTypes.number]).isRequired,locale:PropTypes.string,withoutSuffix:PropTypes.bool,from:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),to:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),type:PropTypes.oneOf(["relative","absolute"]),tz:PropTypes.string,relativeRange:PropTypes.number};RelativeTime.defaultProps={locale:"en",withoutSuffix:!1,from:"",to:"",type:"relative",tz:void 0,relativeRange:void 0};const data$o={width:24,height:24,body:'<path fill="currentColor" d="M7 7H5a2 2 0 0 0-2 2v8h2v-4h2v4h2V9a2 2 0 0 0-2-2m0 4H5V9h2m7-2h-4v10h2v-4h2a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2m0 4h-2V9h2m6 0v6h1v2h-4v-2h1V9h-1V7h4v2Z"/>'},data$n={width:24,height:24,body:'<path fill="currentColor" d="M5 17q-.425 0-.713-.288T4 16v-4q0-.425.288-.713T5 11q.425 0 .713.288T6 12v4q0 .425-.288.713T5 17Zm4 0q-.825 0-1.413-.588T7 15V9q0-.825.588-1.413T9 7h2q.825 0 1.413.588T13 9v6q0 .825-.588 1.413T11 17H9Zm0-2h2V9H9v6Zm6 2q-.425 0-.713-.288T14 16q0-.425.288-.713T15 15h3v-2h-2q-.825 0-1.413-.588T14 11V9q0-.825.588-1.413T16 7h3q.425 0 .713.288T20 8q0 .425-.288.713T19 9h-3v2h2q.825 0 1.413.588T20 13v2q0 .825-.588 1.413T18 17h-3ZM5 9q-.425 0-.713-.288T4 8q0-.425.288-.713T5 7q.425 0 .713.288T6 8q0 .425-.288.713T5 9Z"/>'},data$m={width:24,height:24,body:'<path fill="currentColor" d="M12 22q-2.05 0-3.875-.788t-3.188-2.15q-1.362-1.362-2.15-3.187T2 12q0-2.075.788-3.888t2.15-3.174Q6.3 3.575 8.124 2.788T12 2q2.075 0 3.888.788t3.174 2.15q1.363 1.362 2.15 3.175T22 12q0 2.05-.788 3.875t-2.15 3.188q-1.362 1.362-3.175 2.15T12 22Zm0-2.05q.65-.9 1.125-1.875T13.9 16h-3.8q.3 1.1.775 2.075T12 19.95Zm-2.6-.4q-.45-.825-.788-1.713T8.05 16H5.1q.725 1.25 1.813 2.175T9.4 19.55Zm5.2 0q1.4-.45 2.488-1.375T18.9 16h-2.95q-.225.95-.562 1.838T14.6 19.55ZM4.25 14h3.4q-.075-.5-.113-.988T7.5 12q0-.525.038-1.012T7.65 10h-3.4q-.125.5-.188.988T4 12q0 .525.063 1.012T4.25 14Zm5.4 0h4.7q.075-.5.113-.988T14.5 12q0-.525-.038-1.012T14.35 10h-4.7q-.075.5-.113.988T9.5 12q0 .525.038 1.012T9.65 14Zm6.7 0h3.4q.125-.5.188-.988T20 12q0-.525-.063-1.012T19.75 10h-3.4q.075.5.113.988T16.5 12q0 .525-.038 1.012T16.35 14Zm-.4-6h2.95q-.725-1.25-1.812-2.175T14.6 4.45q.45.825.788 1.713T15.95 8ZM10.1 8h3.8q-.3-1.1-.775-2.075T12 4.05q-.65.9-1.125 1.875T10.1 8Zm-5 0h2.95q.225-.95.563-1.838T9.4 4.45Q8 4.9 6.912 5.825T5.1 8Z"/>'},data$l={width:24,height:24,body:'<path fill="currentColor" d="M1 18q.225-2.675 1.638-4.925T6.4 9.5L4.55 6.3q-.15-.225-.075-.475T4.8 5.45q.2-.125.45-.05t.4.3L7.5 8.9Q9.65 8 12 8t4.5.9l1.85-3.2q.15-.225.4-.3t.45.05q.25.125.325.375t-.075.475L17.6 9.5q2.35 1.325 3.762 3.575T23 18H1Zm6-2.75q.525 0 .888-.363T8.25 14q0-.525-.363-.888T7 12.75q-.525 0-.888.363T5.75 14q0 .525.363.888T7 15.25Zm10 0q.525 0 .888-.363T18.25 14q0-.525-.363-.888T17 12.75q-.525 0-.888.363T15.75 14q0 .525.363.888t.887.362Z"/>'},data$k={width:24,height:24,body:'<path fill="currentColor" d="M14.6 8.075q0-1.075-.712-1.725T12 5.7q-.725 0-1.313.313t-1.012.912q-.4.575-1.088.663T7.4 7.225q-.35-.325-.388-.8t.238-.9q.8-1.2 2.038-1.863T12 3q2.425 0 3.938 1.375t1.512 3.6q0 1.125-.475 2.025t-1.75 2.125q-.925.875-1.25 1.363T13.55 14.6q-.1.6-.513 1t-.987.4q-.575 0-.988-.388t-.412-.962q0-.975.425-1.788T12.5 11.15q1.275-1.125 1.688-1.738t.412-1.337ZM12 22q-.825 0-1.413-.588T10 20q0-.825.588-1.413T12 18q.825 0 1.413.588T14 20q0 .825-.588 1.413T12 22Z"/>'},data$j={width:24,height:24,body:'<path fill="currentColor" d="M4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.588 1.413T20 20H4ZM20 8l-7.475 4.675q-.125.075-.263.113t-.262.037q-.125 0-.263-.037t-.262-.113L4 8v10h16V8Zm-8 3l8-5H4l8 5ZM4 8v.25v-1.475v.025V6v.8v-.012V8.25V8v10V8Z"/>'};function WalletOSIcon({loading:a,walletOS:j,provider:_e,color:et}){return a?jsxRuntimeExports.jsx(Icon,{icon:data$k,style:{color:"transparent"}}):_e===LOGIN_PROVIDER$1.AUTH0?jsxRuntimeExports.jsx(Icon,{icon:data$j,style:{color:et,transform:"scale(0.85)"}}):j==="ios"?jsxRuntimeExports.jsx(Icon,{icon:data$n,style:{color:et,transform:"scale(1.1)"}}):j==="android"?jsxRuntimeExports.jsx(Icon,{icon:data$l,style:{color:et}}):j==="web"?jsxRuntimeExports.jsx(Icon,{icon:data$m,style:{color:et}}):j==="api"?jsxRuntimeExports.jsx(Icon,{icon:data$o,style:{color:et,transform:"scale(1.05)"}}):null}WalletOSIcon.propTypes={loading:PropTypes.bool,walletOS:PropTypes.string,provider:PropTypes.string,color:PropTypes.string};WalletOSIcon.defaultProps={loading:!1,walletOS:null,provider:null,color:"black"};function ItemWrap({children:a,...j}){return jsxRuntimeExports.jsx(Box,{...j,sx:{borderRadius:2,backgroundColor:colors$1.backgroundsBgSubtile,p:2,transition:"background-color 0.5s","&:hover":{backgroundColor:colors$1.backgroundsBgSubtileHover},...j.sx},children:a})}ItemWrap.propTypes={children:PropTypes.any.isRequired};const data$i={width:24,height:24,body:'<path fill="currentColor" d="M8 20h8v-3q0-1.65-1.175-2.825T12 13q-1.65 0-2.825 1.175T8 17v3Zm4-9q1.65 0 2.825-1.175T16 7V4H8v3q0 1.65 1.175 2.825T12 11ZM5 22q-.425 0-.713-.288T4 21q0-.425.288-.713T5 20h1v-3q0-1.525.713-2.863T8.7 12q-1.275-.8-1.987-2.138T6 7V4H5q-.425 0-.713-.288T4 3q0-.425.288-.713T5 2h14q.425 0 .713.288T20 3q0 .425-.288.713T19 4h-1v3q0 1.525-.713 2.863T15.3 12q1.275.8 1.988 2.138T18 17v3h1q.425 0 .713.288T20 21q0 .425-.288.713T19 22H5Z"/>'},data$h={width:24,height:24,body:'<path fill="currentColor" d="m5.75 18l-.4-.35q-1.3-1.15-1.825-2.625T3 12.05Q3 9.7 4.187 7.787T7.4 4.85q.35-.2.75-.025t.525.575q.125.375-.013.75t-.487.575q-1.45.8-2.313 2.213T5 12.05q0 1.125.425 2.188T6.75 16.2l.25.25V15q0-.425.288-.713T8 14q.425 0 .713.288T9 15v4q0 .425-.288.713T8 20H4q-.425 0-.713-.288T3 19q0-.425.288-.713T4 18h1.75ZM17 7.55V9q0 .425-.288.713T16 10q-.425 0-.713-.288T15 9V5q0-.425.288-.713T16 4h4q.425 0 .713.288T21 5q0 .425-.288.713T20 6h-1.75l.4.35q1.025 1.05 1.575 2.225t.7 2.425H18.9q-.125-.875-.537-1.675T17.25 7.8L17 7.55ZM17.4 23q-.2 0-.313-.113t-.162-.287l-.225-1.1q-.3-.125-.563-.263T15.6 20.9l-1.075.325q-.175.05-.325-.013T13.95 21l-.6-1q-.1-.15-.05-.325t.175-.3l.825-.725q-.05-.35-.05-.65t.05-.65l-.825-.725q-.125-.125-.175-.3t.05-.325l.6-1q.1-.15.25-.212t.325-.013l1.075.325q.275-.2.538-.337t.562-.263l.225-1.1q.05-.175.163-.288T17.4 13h1.2q.2 0 .313.113t.162.287l.225 1.1q.3.125.563.275t.537.375l1.05-.375q.175-.05.338.013t.262.212l.6 1.05q.1.15.063.325t-.163.3l-.85.725q.05.3.05.625t-.05.625l.825.725q.125.125.175.3t-.05.325l-.6 1q-.1.15-.25.213t-.325.012L20.4 20.9q-.275.2-.537.338t-.563.262l-.225 1.1q-.05.175-.163.288T18.6 23h-1.2Zm.6-3q.825 0 1.413-.588T20 18q0-.825-.588-1.413T18 16q-.825 0-1.413.588T16 18q0 .825.588 1.413T18 20Z"/>'};function LoadingMask({size:a,padding:j,borderWidth:_e,borderRadius:et,duration:nt,children:tt}){const ot=a,ct=et??ot/8,ft=_e??ot/32,ht=j??ot*.2-ft,dt=nt??2.5;return jsxRuntimeExports.jsxs(Box,{sx:{display:"inline-flex",justifyContent:"center",alignItems:"center",width:ot,height:ot,position:"relative"},children:[jsxRuntimeExports.jsx(Box,{sx:{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center",width:ot,height:ot,overflow:"hidden",borderRadius:`${ct}px`,backgroundColor:colors$1.strokeBorderBase,"&::before,&::after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,pointerEvents:"none"},"&::after":{left:ft,right:ft,top:ft,bottom:ft,backgroundColor:"white",borderRadius:`${ct-ft}px`},"&::before":{background:`conic-gradient(from 45deg, ${colors$1.foregroundsFgInteractiveTransparent} 0%, ${colors$1.foregroundsFgInteractiveTransparent} 50%, ${colors$1.foregroundsFgInteractive} 90%, ${colors$1.foregroundsFgInteractive} 100%)`,transform:"scale(100)",animation:`rotate ${dt}s linear infinite`,"@keyframes rotate":{"0%":{transform:"scale(100) rotate(0deg)"},"100%":{transform:"scale(100) rotate(360deg)"}}}}}),jsxRuntimeExports.jsx(Box,{sx:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",width:ot-ht-ft,height:ot-ht-ft},children:tt})]})}LoadingMask.propTypes={size:PropTypes.number,padding:PropTypes.number,borderRadius:PropTypes.number,borderWidth:PropTypes.number,duration:PropTypes.number,children:PropTypes.node.isRequired};LoadingMask.defaultProps={size:64,padding:void 0,borderWidth:void 0,duration:void 0,borderRadius:void 0};var DidWallet={};Object.defineProperty(DidWallet,"__esModule",{value:!0});var default_1$3=DidWallet.default=void 0;_interopRequireDefault$3(reactExports);var _jsxRuntime$3=jsxRuntimeExports;function _interopRequireDefault$3(a){return a&&a.__esModule?a:{default:a}}function ownKeys$3(a,j){var _e=Object.keys(a);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(a);j&&(et=et.filter(function(nt){return Object.getOwnPropertyDescriptor(a,nt).enumerable})),_e.push.apply(_e,et)}return _e}function _objectSpread$1(a){for(var j=1;j<arguments.length;j++){var _e=arguments[j]!=null?arguments[j]:{};j%2?ownKeys$3(Object(_e),!0).forEach(function(et){_defineProperty$1(a,et,_e[et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(_e)):ownKeys$3(Object(_e)).forEach(function(et){Object.defineProperty(a,et,Object.getOwnPropertyDescriptor(_e,et))})}return a}function _defineProperty$1(a,j,_e){return(j=_toPropertyKey$1(j))in a?Object.defineProperty(a,j,{value:_e,enumerable:!0,configurable:!0,writable:!0}):a[j]=_e,a}function _toPropertyKey$1(a){var j=_toPrimitive$1(a,"string");return typeof j=="symbol"?j:j+""}function _toPrimitive$1(a,j){if(typeof a!="object"||!a)return a;var _e=a[Symbol.toPrimitive];if(_e!==void 0){var et=_e.call(a,j||"default");if(typeof et!="object")return et;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(a)}var Component$1=function a(j){return(0,_jsxRuntime$3.jsxs)("svg",_objectSpread$1(_objectSpread$1({},j),{},{children:[(0,_jsxRuntime$3.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,_jsxRuntime$3.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"url(#paint0_linear)"}),(0,_jsxRuntime$3.jsx)("path",{d:"M3.52 7.36A2.56 2.56 0 0 1 6.08 4.8h19.84a2.56 2.56 0 0 1 2.56 2.56v12.16a2.56 2.56 0 0 1-2.56 2.56H6.08a2.56 2.56 0 0 1-2.56-2.56V7.36z",fill:"#9FCBFF",filter:"url(#filter0_i)"}),(0,_jsxRuntime$3.jsx)("path",{d:"M2.56 9.28a2.56 2.56 0 0 1 2.56-2.56h21.76a2.56 2.56 0 0 1 2.56 2.56v13.6a2.56 2.56 0 0 1-2.56 2.56H5.12a2.56 2.56 0 0 1-2.56-2.56V9.28z",fill:"url(#paint1_linear)",filter:"url(#filter1_d)"}),(0,_jsxRuntime$3.jsx)("path",{d:"M0 22.32l32-6.16V32H0v-9.68z",fill:"url(#paint2_linear)",filter:"url(#filter2_d)"}),(0,_jsxRuntime$3.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.536 9.248h8.288c.408 0 .74.3.74.672v4.64c0 .371-.332.672-.74.672H5.536c-.408 0-.74-.3-.74-.672v-.04a.158.158 0 1 0-.316 0v.04c0 .53.473.96 1.056.96h8.288c.583 0 1.056-.43 1.056-.96V9.92c0-.53-.473-.96-1.056-.96H5.536c-.583 0-1.056.43-1.056.96v.04a.158.158 0 0 0 .317 0v-.04c0-.371.33-.672.739-.672zm-1.023 4.638a.127.127 0 0 0 .087.034h1.267c.472 0 .83-.107 1.076-.322.25-.217.381-.548.397-.993a11.281 11.281 0 0 0 0-.734c-.012-.426-.148-.751-.406-.975-.258-.224-.622-.336-1.09-.336H4.6a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.794-.806c-.099.1-.253.149-.464.149h-.502V11.25h.478c.21 0 .369.051.474.154.108.102.166.26.172.475.006.09.01.208.01.355s-.004.267-.01.36c-.006.221-.059.383-.158.485zm1.63.806a.127.127 0 0 0 .087.034h.64a.116.116 0 0 0 .087-.034.11.11 0 0 0 .038-.086v-3.12a.11.11 0 0 0-.038-.086.116.116 0 0 0-.086-.034h-.641a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.637.034a.127.127 0 0 1-.086-.034.128.128 0 0 1-.033-.086v-3.12c0-.035.01-.064.033-.086a.127.127 0 0 1 .086-.034h1.244c.469 0 .832.112 1.09.336.259.224.394.549.407.974a11.244 11.244 0 0 1 0 .735c-.016.445-.148.776-.397.993-.245.215-.604.322-1.076.322H9.574zm1.244-.691c.21 0 .365-.05.464-.149.099-.102.152-.264.158-.485a5.52 5.52 0 0 0 .01-.36c0-.147-.004-.265-.01-.355-.006-.214-.064-.373-.172-.475-.106-.103-.263-.154-.474-.154h-.478v1.978h.502zm2.468-1.382a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.286-.288.286zm0 1.495a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.287-.288.287z",fill:"#4598FA"})]}),(0,_jsxRuntime$3.jsxs)("defs",{children:[(0,_jsxRuntime$3.jsxs)("filter",{id:"filter0_i",x:"3.52",y:"1.8",width:"24.96",height:"20.28",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,_jsxRuntime$3.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,_jsxRuntime$3.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,_jsxRuntime$3.jsx)("feOffset",{dy:"-3"}),(0,_jsxRuntime$3.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,_jsxRuntime$3.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.2 0"}),(0,_jsxRuntime$3.jsx)("feBlend",{in2:"shape",result:"effect1_innerShadow"})]}),(0,_jsxRuntime$3.jsxs)("filter",{id:"filter1_d",x:"-1.44",y:"1.72",width:"34.88",height:"26.72",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,_jsxRuntime$3.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,_jsxRuntime$3.jsx)("feOffset",{dy:"-1"}),(0,_jsxRuntime$3.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{values:"0 0 0 0 0.220767 0 0 0 0 0.470803 0 0 0 0 0.701605 0 0 0 0.18 0"}),(0,_jsxRuntime$3.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,_jsxRuntime$3.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,_jsxRuntime$3.jsxs)("filter",{id:"filter2_d",x:"-5",y:"11.16",width:"42",height:"25.84",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,_jsxRuntime$3.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,_jsxRuntime$3.jsx)("feOffset",{}),(0,_jsxRuntime$3.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{values:"0 0 0 0 0.14382 0 0 0 0 0.205065 0 0 0 0 0.522634 0 0 0 0.25 0"}),(0,_jsxRuntime$3.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,_jsxRuntime$3.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,_jsxRuntime$3.jsxs)("linearGradient",{id:"paint0_linear",x1:"16",x2:"16",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,_jsxRuntime$3.jsx)("stop",{stopColor:"#4F9DF6"}),(0,_jsxRuntime$3.jsx)("stop",{offset:"1",stopColor:"#0A79F8"})]}),(0,_jsxRuntime$3.jsxs)("linearGradient",{id:"paint1_linear",x1:"16",y1:"6.72",x2:"16",y2:"25.44",gradientUnits:"userSpaceOnUse",children:[(0,_jsxRuntime$3.jsx)("stop",{stopColor:"#fff"}),(0,_jsxRuntime$3.jsx)("stop",{offset:"1",stopColor:"#ECEFFF"})]}),(0,_jsxRuntime$3.jsxs)("linearGradient",{id:"paint2_linear",x1:"16",y1:"19.2",x2:"18.48",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,_jsxRuntime$3.jsx)("stop",{offset:".007",stopColor:"#77B2F6"}),(0,_jsxRuntime$3.jsx)("stop",{offset:".055",stopColor:"#4F9DF6"}),(0,_jsxRuntime$3.jsx)("stop",{offset:"1",stopColor:"#4598FA"})]}),(0,_jsxRuntime$3.jsx)("clipPath",{id:"clip0",children:(0,_jsxRuntime$3.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"#fff"})})]})]}))};Component$1.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};Component$1.displayName="did-wallet";default_1$3=DidWallet.default=Component$1;function Success({size:a,backgroundColor:j,borderWidth:_e}){const et=a-_e*2;return jsxRuntimeExports.jsxs(Box,{className:"check-icon",sx:{width:et,height:et,position:"relative",borderRadius:"100%","&, *, *::before, *::after":{boxSizing:"content-box !important"},border:nt=>`${_e}px solid ${nt.palette.success.main}`,"&::before, &::after":{content:'""',height:"125%",position:"absolute",background:j,transform:"rotate(-45deg)"},"&::before":{top:`${_e/2+1}px`,left:`-${_e/2}px`,width:`calc(32.5% + ${_e}px)`,transformOrigin:"100% 50%",borderRadius:"100% 0 0 100%"},"&::after":{top:0,left:"37.5%",width:`calc(70% + ${_e}px)`,transformOrigin:"0 50%",borderRadius:"0 100% 100% 0",animation:"rotate-circle 4.25s ease-in"},".icon-line":{height:`${_e+1}px`,backgroundColor:nt=>nt.palette.success.main,display:"block",borderRadius:"100vw",position:"absolute",zIndex:10},"@keyframes rotate-circle":{"0%":{transform:"rotate(-45deg)"},"5%":{transform:"rotate(-45deg)"},"12%":{transform:"rotate(-405deg)"},"100%":{transform:"rotate(-405deg)"}}},children:[jsxRuntimeExports.jsx(Box,{component:"span",className:"icon-line line-tip",sx:{top:"57.5%",left:"17.5%",width:"31.25%",transform:"rotate(45deg)",animation:"icon-line-tip 0.75s","@keyframes icon-line-tip":{"0%":{width:"0",left:"1px",top:"23.75%"},"54%":{width:"0",left:"1px",top:"23.75%"},"70%":{width:"62.5%",left:"-10%",top:"46.25%"},"84%":{width:"21.25%",left:"26.25%",top:"60%"},"100%":{width:"31.25",left:"17.5%",top:"56.25%"}}}}),jsxRuntimeExports.jsx(Box,{component:"span",className:"icon-line line-long",sx:{top:"47.5%",right:"10%",width:"58.75%",transform:"rotate(-45deg)",animation:"icon-line-long 0.75s","@keyframes icon-line-long":{"0%":{width:"0",right:"57.5%",top:"67.5%"},"65%":{width:"0",right:"57.5%",top:"67.5%"},"84%":{width:"68.75%",right:"0px",top:"43.75%"},"100%":{width:"58.75%",right:"10%",top:"47.5%"}}}}),jsxRuntimeExports.jsx(Box,{className:"icon-circle",sx:{top:`-${_e}px`,left:`-${_e}px`,zIndex:10,width:et,height:et,borderRadius:"100%",position:"absolute",boxSizing:"contentBox",border:`${_e}px solid rgba(76, 175, 80, 0.5)`}}),jsxRuntimeExports.jsx(Box,{className:"icon-fix",sx:{top:`calc(8% - ${Math.sqrt(_e)}px)`,width:_e+1,left:`calc(32% - ${Math.sqrt(_e)}px)`,zIndex:1,height:et+_e*2,position:"absolute",transform:"rotate(-45deg)",backgroundColor:j}})]})}Success.propTypes={size:PropTypes.number,borderWidth:PropTypes.number,backgroundColor:PropTypes.string};Success.defaultProps={size:64,borderWidth:4,backgroundColor:"white"};function Button({...a}){return jsxRuntimeExports.jsx(Button$1,{variant:"outlined",color:"inherit",...a,sx:{borderRadius:2,borderColor:colors$1.strokeBorderBase,color:colors$1.foregroundsFgBase,backgroundColor:"#fff",fontWeight:500,fontSize:13,...a.sx}})}function BaseStatus({icon:a,title:j,color:_e,description:et,extraContent:nt,actions:tt}){return jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:1.5},children:[reactExports.isValidElement(a)?a:jsxRuntimeExports.jsx(Box,{sx:{backgroundColor:_e,borderRadius:"100%",fontSize:0},children:jsxRuntimeExports.jsx(Icon,{icon:a,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})}),jsxRuntimeExports.jsxs(Box,{sx:{textAlign:"center"},children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",sx:{fontWeight:500,color:_e},children:j}),jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{color:colors$1.foregroundsFgSubtile,overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"3",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:et})]}),nt,jsxRuntimeExports.jsx(Box,{children:tt})]})}BaseStatus.propTypes={icon:PropTypes.node,title:PropTypes.string,color:PropTypes.string,description:PropTypes.string,extraContent:PropTypes.node,actions:PropTypes.node};BaseStatus.defaultProps={icon:null,title:"",color:colors$1.foregroundsFgBase,description:"",extraContent:null,actions:null};function MfaCode({title:a,mfaCode:j}){return jsxRuntimeExports.jsxs(Box,{className:"status-mfa",sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",border:`1px solid ${colors$1.strokeBorderBase}`,borderRadius:2,maxWidth:"360px",backgroundColor:"transparent",p:1},children:[jsxRuntimeExports.jsx(Box,{className:"status-mfa-tip",sx:{textAlign:"center",textWrap:"balance"},children:a}),jsxRuntimeExports.jsx(Typography,{className:"status-mfa-code",sx:{mt:1,lineHeight:1,fontSize:"36px",fontWeight:700,letterSpacing:1},children:j})]})}MfaCode.propTypes={title:PropTypes.string,mfaCode:PropTypes.number};MfaCode.defaultProps={title:"",mfaCode:0};function ConnectStatus({status:a,nextWorkflow:j,mfaCode:_e,onCancel:et,onRetry:nt,onClose:tt,messages:ot,locale:ct,...ft}){const ht=translations$3[ct]||translations$3.en;return jsxRuntimeExports.jsxs(Box,{...ft,sx:{py:2,minHeight:200,...ft.sx},children:[a==="scanned"&&!j&&jsxRuntimeExports.jsx(BaseStatus,{icon:jsxRuntimeExports.jsx(LoadingMask,{size:52,borderRadius:12,children:jsxRuntimeExports.jsx(default_1$3,{style:{width:"100%",height:"100%"}})}),title:ht.requestConnect,description:ht.continueInWallet,extraContent:_e>0&&jsxRuntimeExports.jsx(MfaCode,{mfaCode:_e,title:ht.mfaCode}),actions:jsxRuntimeExports.jsx(Button,{onClick:et,children:ht.back})}),a==="scanned"&&!!j&&jsxRuntimeExports.jsx(BaseStatus,{color:colors$1.foregroundsFgInteractive,icon:data$i,title:ht.wait,description:ht.waiting,extraContent:_e>0&&jsxRuntimeExports.jsx(MfaCode,{mfaCode:_e,title:ht.mfaCode}),actions:jsxRuntimeExports.jsx(Button,{onClick:et,children:ht.back})}),a==="succeed"&&jsxRuntimeExports.jsx(BaseStatus,{color:"#3ab39d",icon:jsxRuntimeExports.jsx(Success,{size:52}),title:ht.success,description:ot.success,actions:jsxRuntimeExports.jsx(Button,{onClick:tt,children:ht.close})}),a==="error"&&jsxRuntimeExports.jsx(BaseStatus,{color:colors$1.buttonsButtonDanger,icon:data$r,title:ht.failed,description:ot.error||ht.error,actions:jsxRuntimeExports.jsx(Button,{onClick:nt,children:ht.retry})}),a==="busy"&&jsxRuntimeExports.jsx(BaseStatus,{color:"#ed6c02",icon:data$h,title:ht.busyTitle,description:ot.error||ht.busyDesc,actions:jsxRuntimeExports.jsx(Button,{onClick:nt,children:ht.retry})})]})}ConnectStatus.propTypes={status:PropTypes.string,nextWorkflow:PropTypes.string,mfaCode:PropTypes.number,onCancel:PropTypes.func,onRetry:PropTypes.func,onClose:PropTypes.func,messages:PropTypes.shape({confirm:PropTypes.string.isRequired,success:PropTypes.any.isRequired,error:PropTypes.any.isRequired}).isRequired,locale:PropTypes.oneOf(["en","zh"])};ConnectStatus.defaultProps={status:"",nextWorkflow:"",mfaCode:0,onCancel:noop$7,onRetry:noop$7,onClose:noop$7,locale:"en"};function QuickLoginItem({userSession:a,locale:j}){var et,nt,tt,ot;const _e=getSourceProvider(a==null?void 0:a.user)==="wallet";return jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:colors$1.surfacePrimarySubtitle}},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1.5,flex:1,overflow:"hidden"},children:[jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{src:a.user.avatar,did:a.user.did,size:48,variant:"circle",shape:"circle"}),jsxRuntimeExports.jsxs(Box,{sx:{flex:1,overflow:"hidden"},children:[jsxRuntimeExports.jsxs(Typography,{sx:{fontSize:"16px",fontWeight:"bold",display:"flex",alignItems:"center",gap:1,color:colors$1.textBase},children:[a.user.fullName,jsxRuntimeExports.jsx(Chip,{label:((et=a.user)==null?void 0:et.roleTitle)||((nt=a.user)==null?void 0:nt.role),size:"small",variant:"outlined",sx:()=>({height:"auto",fontWeight:"bold",fontSize:"12px",borderColor:colors$1.lineBorderStrong,color:colors$1.textSubtitle})})]}),_e?jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[jsxRuntimeExports.jsx(WalletOSIcon,{provider:(tt=a==null?void 0:a.extra)==null?void 0:tt.provider,walletOS:(ot=a==null?void 0:a.extra)==null?void 0:ot.walletOS,color:colors$1.textSubtitle}),jsxRuntimeExports.jsx(DID,{did:a.user.did,size:12,sx:{lineHeight:1,fontSize:"12px",mt:.5},responsive:!0})]}):jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"12px",color:colors$1.textSubtitle},children:a.user.email})]})]}),a.updatedAt&&jsxRuntimeExports.jsx(Box,{component:"span",sx:{color:colors$1.textMuted,fontSize:"12px",flexShrink:0},children:jsxRuntimeExports.jsx(RelativeTime,{value:a.updatedAt,locale:j})})]})}QuickLoginItem.propTypes={userSession:PropTypes.shape({user:PropTypes.shape({avatar:PropTypes.string,did:PropTypes.string,fullName:PropTypes.string,role:PropTypes.string,roleTitle:PropTypes.string,email:PropTypes.string}),extra:PropTypes.shape({walletOS:PropTypes.string,provider:PropTypes.string}),updatedAt:PropTypes.string}).isRequired,locale:PropTypes.string};QuickLoginItem.defaultProps={locale:"en"};function QuickConnect({userSessions:a,onLogin:j,onClose:_e,messages:et,onRetry:nt,onLoginAnother:tt}){const{t:ot,locale:ct,changeStatus:ft,blocklet:ht}=useStateContext(),dt=ot("otherAccount"),yt=useReactive({loadingId:null,status:"created",messages:{confirm:et.confirm,success:et.success,error:""},reset(){this.loadingId=null,this.status="created",this.messages.error=""}}),Tt=useMemoizedFn(async At=>{yt.loadingId=At.id;try{await j({...At,appPid:ht==null?void 0:ht.appPid}),yt.status="succeed"}catch(Rt){yt.status="error",yt.messages.error=Rt.messages}finally{yt.loadingId=null}}),St=useMemoizedFn(()=>{yt.reset(),nt()});return reactExports.useEffect(()=>{ft(yt.status)},[ft,yt.status]),yt.status!=="created"?jsxRuntimeExports.jsx(ConnectStatus,{status:yt.status,onRetry:St,onClose:_e,messages:yt.messages,locale:ct,className:"auth-status"}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a.map(At=>{var Rt;return jsxRuntimeExports.jsx(Tooltip,{title:ot("loginWithThisAccount"),arrow:!0,placement:"top",children:jsxRuntimeExports.jsxs(Box,{sx:{position:"relative"},onClick:()=>Tt(At),children:[yt.loadingId===At.id?jsxRuntimeExports.jsx(LinearProgress,{sx:{height:"2px",position:"absolute",top:0,left:0,right:0}}):null,jsxRuntimeExports.jsx(QuickLoginItem,{userSession:At,locale:ct})]})},(Rt=At==null?void 0:At.user)==null?void 0:Rt.did)}),jsxRuntimeExports.jsx(Tooltip,{title:ot("loginWithAnotherAccount"),arrow:!0,placement:"top",children:jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:colors$1.surfacePrimarySubtitle},color:colors$1.textBase},onClick:tt,children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(Box,{sx:{fontSize:0,p:.5},children:jsxRuntimeExports.jsx(Icon,{icon:data$q,fontSize:"40px"})}),jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"16px",fontWeight:"bold"},children:dt})]}),jsxRuntimeExports.jsx(Icon,{className:"other-item-icon",icon:data$p,fontSize:"24px"})]})})})]})}QuickConnect.propTypes={userSessions:PropTypes.array.isRequired,onLogin:PropTypes.func.isRequired,onRetry:PropTypes.func.isRequired,onClose:PropTypes.func.isRequired,onLoginAnother:PropTypes.func.isRequired,messages:PropTypes.object};QuickConnect.defaultProps={messages:{}};var HASH_UNDEFINED$2="__lodash_hash_undefined__";function setCacheAdd$1(a){return this.__data__.set(a,HASH_UNDEFINED$2),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(a){return this.__data__.has(a)}var _setCacheHas=setCacheHas$1,MapCache$2=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$3(a){var j=-1,_e=a==null?0:a.length;for(this.__data__=new MapCache$2;++j<_e;)this.add(a[j])}SetCache$3.prototype.add=SetCache$3.prototype.push=setCacheAdd;SetCache$3.prototype.has=setCacheHas;var _SetCache=SetCache$3;function baseFindIndex$1(a,j,_e,et){for(var nt=a.length,tt=_e+(et?1:-1);et?tt--:++tt<nt;)if(j(a[tt],tt,a))return tt;return-1}var _baseFindIndex=baseFindIndex$1;function baseIsNaN$1(a){return a!==a}var _baseIsNaN=baseIsNaN$1;function strictIndexOf$1(a,j,_e){for(var et=_e-1,nt=a.length;++et<nt;)if(a[et]===j)return et;return-1}var _strictIndexOf=strictIndexOf$1,baseFindIndex=_baseFindIndex,baseIsNaN=_baseIsNaN,strictIndexOf=_strictIndexOf;function baseIndexOf$2(a,j,_e){return j===j?strictIndexOf(a,j,_e):baseFindIndex(a,baseIsNaN,_e)}var _baseIndexOf=baseIndexOf$2,baseIndexOf$1=_baseIndexOf;function arrayIncludes$3(a,j){var _e=a==null?0:a.length;return!!_e&&baseIndexOf$1(a,j,0)>-1}var _arrayIncludes=arrayIncludes$3;function arrayIncludesWith$2(a,j,_e){for(var et=-1,nt=a==null?0:a.length;++et<nt;)if(_e(j,a[et]))return!0;return!1}var _arrayIncludesWith=arrayIncludesWith$2;function cacheHas$3(a,j){return a.has(j)}var _cacheHas=cacheHas$3,SetCache$2=_SetCache,arrayIncludes$2=_arrayIncludes,arrayIncludesWith$1=_arrayIncludesWith,arrayMap$3=_arrayMap,baseUnary$1=_baseUnary,cacheHas$2=_cacheHas,nativeMin=Math.min;function baseIntersection$1(a,j,_e){for(var et=_e?arrayIncludesWith$1:arrayIncludes$2,nt=a[0].length,tt=a.length,ot=tt,ct=Array(tt),ft=1/0,ht=[];ot--;){var dt=a[ot];ot&&j&&(dt=arrayMap$3(dt,baseUnary$1(j))),ft=nativeMin(dt.length,ft),ct[ot]=!_e&&(j||nt>=120&&dt.length>=120)?new SetCache$2(ot&&dt):void 0}dt=a[0];var yt=-1,Tt=ct[0];e:for(;++yt<nt&&ht.length<ft;){var St=dt[yt],At=j?j(St):St;if(St=_e||St!==0?St:0,!(Tt?cacheHas$2(Tt,At):et(ht,At,_e))){for(ot=tt;--ot;){var Rt=ct[ot];if(!(Rt?cacheHas$2(Rt,At):et(a[ot],At,_e)))continue e}Tt&&Tt.push(At),ht.push(St)}}return ht}var _baseIntersection=baseIntersection$1,isArrayLikeObject$1=isArrayLikeObject_1;function castArrayLikeObject$1(a){return isArrayLikeObject$1(a)?a:[]}var _castArrayLikeObject=castArrayLikeObject$1,arrayMap$2=_arrayMap,baseIntersection=_baseIntersection,baseRest$2=_baseRest,castArrayLikeObject=_castArrayLikeObject,intersection=baseRest$2(function(a){var j=arrayMap$2(a,castArrayLikeObject);return j.length&&j[0]===a[0]?baseIntersection(j):[]}),intersection_1=intersection;const intersection$1=getDefaultExportFromCjs$1(intersection_1),data$g={width:24,height:24,body:'<path fill="currentColor" d="M19 21q-.975 0-1.75-.563T16.175 19H11q-1.65 0-2.825-1.175T7 15q0-1.65 1.175-2.825T11 11h2q.825 0 1.413-.588T15 9q0-.825-.588-1.413T13 7H7.825q-.325.875-1.088 1.438T5 9q-1.25 0-2.125-.875T2 6q0-1.25.875-2.125T5 3q.975 0 1.738.563T7.824 5H13q1.65 0 2.825 1.175T17 9q0 1.65-1.175 2.825T13 13h-2q-.825 0-1.413.588T9 15q0 .825.588 1.413T11 17h5.175q.325-.875 1.088-1.438T19 15q1.25 0 2.125.875T22 18q0 1.25-.875 2.125T19 21ZM5 7q.425 0 .713-.288T6 6q0-.425-.288-.713T5 5q-.425 0-.713.288T4 6q0 .425.288.713T5 7Z"/>'},chromeExtDownloadUrl="https://chromewebstore.google.com/detail/did-wallet/ibjflpbmadchofnbpppegdbnifdgincp",edgeExtDownloadUrl="https://microsoftedge.microsoft.com/addons/detail/did-wallet/hjgoblidjnnnamdkinbichnfbmghmafd";function WebLoginItem({tokenState:a,locale:j,webWalletUrl:_e}){const et=detectWalletExtension(),{t:nt}=useStateContext(),tt=useMemoizedFn(()=>{openWebWallet({webWalletUrl:_e,url:a.url,locale:j})}),ot=useCreation(()=>{var St;const Tt=(St=window==null?void 0:window.navigator)==null?void 0:St.userAgent;return Tt.indexOf("Edge")>-1||Tt.indexOf("Edg")>-1?"edge":Tt.indexOf("Chrome")>-1?"chrome":"unknown"},[]),ct=useCreation(()=>ot==="edge"?edgeExtDownloadUrl:ot==="chrome"?chromeExtDownloadUrl:null,[ot]),ft=useCreation(()=>et?{onClick:tt}:ct?{href:ct,target:"_blank",rel:"noopener"}:{onClick:tt},[tt]),ht=useCreation(()=>et||ct?"Web Wallet Extension":"Web Wallet",[et,ct]),dt=useCreation(()=>!et&&!ct?new URL(_e).hostname:null,[_e,ct]),yt=useCreation(()=>et?null:ct?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["You can also use"," ",jsxRuntimeExports.jsx(Box,{onClick:tt,component:"span",sx:{color:colors$1.foregroundsFgInteractive,cursor:"pointer","&:hover":{textDecoration:"underline dashed"}},children:"Web Wallet"})]}):null,[et,ct]);return jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(default_1$3,{width:"24px",height:"24px"}),jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"14px",fontWeight:500},children:ht}),dt?jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"12px",color:colors$1.textMuted},children:dt}):null]}),yt?jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"12px",color:colors$1.textMuted},children:yt}):null]})]}),jsxRuntimeExports.jsx(Button,{...ft,startIcon:jsxRuntimeExports.jsx(Icon,{icon:data$g}),children:nt("connectButton")})]})}WebLoginItem.propTypes={tokenState:PropTypes.object.isRequired,locale:PropTypes.string,webWalletUrl:PropTypes.string.isRequired};WebLoginItem.defaultProps={locale:"en"};var qrCodeStyling={exports:{}};(function(a,j){(function(_e,et){a.exports=et()})(commonjsGlobal,function(){return(()=>{var _e={192:(tt,ot)=>{var ct,ft,ht=function(){var dt=function(st,ut){var pt=st,mt=It[ut],$t=null,xt=0,vt=null,it=[],bt={},Mt=function(qt,Dt){$t=function(Vt){for(var an=new Array(Vt),Xt=0;Xt<Vt;Xt+=1){an[Xt]=new Array(Vt);for(var pn=0;pn<Vt;pn+=1)an[Xt][pn]=null}return an}(xt=4*pt+17),Lt(0,0),Lt(xt-7,0),Lt(0,xt-7),Ot(),Ht(),Ft(qt,Dt),pt>=7&&Jt(qt),vt==null&&(vt=nn(pt,mt,it)),Zt(vt,Dt)},Lt=function(qt,Dt){for(var Vt=-1;Vt<=7;Vt+=1)if(!(qt+Vt<=-1||xt<=qt+Vt))for(var an=-1;an<=7;an+=1)Dt+an<=-1||xt<=Dt+an||($t[qt+Vt][Dt+an]=0<=Vt&&Vt<=6&&(an==0||an==6)||0<=an&&an<=6&&(Vt==0||Vt==6)||2<=Vt&&Vt<=4&&2<=an&&an<=4)},Ht=function(){for(var qt=8;qt<xt-8;qt+=1)$t[qt][6]==null&&($t[qt][6]=qt%2==0);for(var Dt=8;Dt<xt-8;Dt+=1)$t[6][Dt]==null&&($t[6][Dt]=Dt%2==0)},Ot=function(){for(var qt=Ct.getPatternPosition(pt),Dt=0;Dt<qt.length;Dt+=1)for(var Vt=0;Vt<qt.length;Vt+=1){var an=qt[Dt],Xt=qt[Vt];if($t[an][Xt]==null)for(var pn=-2;pn<=2;pn+=1)for(var En=-2;En<=2;En+=1)$t[an+pn][Xt+En]=pn==-2||pn==2||En==-2||En==2||pn==0&&En==0}},Jt=function(qt){for(var Dt=Ct.getBCHTypeNumber(pt),Vt=0;Vt<18;Vt+=1){var an=!qt&&(Dt>>Vt&1)==1;$t[Math.floor(Vt/3)][Vt%3+xt-8-3]=an}for(Vt=0;Vt<18;Vt+=1)an=!qt&&(Dt>>Vt&1)==1,$t[Vt%3+xt-8-3][Math.floor(Vt/3)]=an},Ft=function(qt,Dt){for(var Vt=mt<<3|Dt,an=Ct.getBCHTypeInfo(Vt),Xt=0;Xt<15;Xt+=1){var pn=!qt&&(an>>Xt&1)==1;Xt<6?$t[Xt][8]=pn:Xt<8?$t[Xt+1][8]=pn:$t[xt-15+Xt][8]=pn}for(Xt=0;Xt<15;Xt+=1)pn=!qt&&(an>>Xt&1)==1,Xt<8?$t[8][xt-Xt-1]=pn:Xt<9?$t[8][15-Xt-1+1]=pn:$t[8][15-Xt-1]=pn;$t[xt-8][8]=!qt},Zt=function(qt,Dt){for(var Vt=-1,an=xt-1,Xt=7,pn=0,En=Ct.getMaskFunction(Dt),sn=xt-1;sn>0;sn-=2)for(sn==6&&(sn-=1);;){for(var dn=0;dn<2;dn+=1)if($t[an][sn-dn]==null){var Mn=!1;pn<qt.length&&(Mn=(qt[pn]>>>Xt&1)==1),En(an,sn-dn)&&(Mn=!Mn),$t[an][sn-dn]=Mn,(Xt-=1)==-1&&(pn+=1,Xt=7)}if((an+=Vt)<0||xt<=an){an-=Vt,Vt=-Vt;break}}},nn=function(qt,Dt,Vt){for(var an=Bt.getRSBlocks(qt,Dt),Xt=Kt(),pn=0;pn<Vt.length;pn+=1){var En=Vt[pn];Xt.put(En.getMode(),4),Xt.put(En.getLength(),Ct.getLengthInBits(En.getMode(),qt)),En.write(Xt)}var sn=0;for(pn=0;pn<an.length;pn+=1)sn+=an[pn].dataCount;if(Xt.getLengthInBits()>8*sn)throw"code length overflow. ("+Xt.getLengthInBits()+">"+8*sn+")";for(Xt.getLengthInBits()+4<=8*sn&&Xt.put(0,4);Xt.getLengthInBits()%8!=0;)Xt.putBit(!1);for(;!(Xt.getLengthInBits()>=8*sn||(Xt.put(236,8),Xt.getLengthInBits()>=8*sn));)Xt.put(17,8);return function(dn,Mn){for(var yn=0,An=0,Tn=0,gn=new Array(Mn.length),vn=new Array(Mn.length),Ln=0;Ln<Mn.length;Ln+=1){var Sn=Mn[Ln].dataCount,In=Mn[Ln].totalCount-Sn;An=Math.max(An,Sn),Tn=Math.max(Tn,In),gn[Ln]=new Array(Sn);for(var Nn=0;Nn<gn[Ln].length;Nn+=1)gn[Ln][Nn]=255&dn.getBuffer()[Nn+yn];yn+=Sn;var rn=Ct.getErrorCorrectPolynomial(In),Ut=Pt(gn[Ln],rn.getLength()-1).mod(rn);for(vn[Ln]=new Array(rn.getLength()-1),Nn=0;Nn<vn[Ln].length;Nn+=1){var Yt=Nn+Ut.getLength()-vn[Ln].length;vn[Ln][Nn]=Yt>=0?Ut.getAt(Yt):0}}var fn=0;for(Nn=0;Nn<Mn.length;Nn+=1)fn+=Mn[Nn].totalCount;var $n=new Array(fn),Dn=0;for(Nn=0;Nn<An;Nn+=1)for(Ln=0;Ln<Mn.length;Ln+=1)Nn<gn[Ln].length&&($n[Dn]=gn[Ln][Nn],Dn+=1);for(Nn=0;Nn<Tn;Nn+=1)for(Ln=0;Ln<Mn.length;Ln+=1)Nn<vn[Ln].length&&($n[Dn]=vn[Ln][Nn],Dn+=1);return $n}(Xt,an)};bt.addData=function(qt,Dt){var Vt=null;switch(Dt=Dt||"Byte"){case"Numeric":Vt=jt(qt);break;case"Alphanumeric":Vt=zt(qt);break;case"Byte":Vt=Gt(qt);break;case"Kanji":Vt=tn(qt);break;default:throw"mode:"+Dt}it.push(Vt),vt=null},bt.isDark=function(qt,Dt){if(qt<0||xt<=qt||Dt<0||xt<=Dt)throw qt+","+Dt;return $t[qt][Dt]},bt.getModuleCount=function(){return xt},bt.make=function(){if(pt<1){for(var qt=1;qt<40;qt++){for(var Dt=Bt.getRSBlocks(qt,mt),Vt=Kt(),an=0;an<it.length;an++){var Xt=it[an];Vt.put(Xt.getMode(),4),Vt.put(Xt.getLength(),Ct.getLengthInBits(Xt.getMode(),qt)),Xt.write(Vt)}var pn=0;for(an=0;an<Dt.length;an++)pn+=Dt[an].dataCount;if(Vt.getLengthInBits()<=8*pn)break}pt=qt}Mt(!1,function(){for(var En=0,sn=0,dn=0;dn<8;dn+=1){Mt(!0,dn);var Mn=Ct.getLostPoint(bt);(dn==0||En>Mn)&&(En=Mn,sn=dn)}return sn}())},bt.createTableTag=function(qt,Dt){qt=qt||2;var Vt="";Vt+='<table style="',Vt+=" border-width: 0px; border-style: none;",Vt+=" border-collapse: collapse;",Vt+=" padding: 0px; margin: "+(Dt=Dt===void 0?4*qt:Dt)+"px;",Vt+='">',Vt+="<tbody>";for(var an=0;an<bt.getModuleCount();an+=1){Vt+="<tr>";for(var Xt=0;Xt<bt.getModuleCount();Xt+=1)Vt+='<td style="',Vt+=" border-width: 0px; border-style: none;",Vt+=" border-collapse: collapse;",Vt+=" padding: 0px; margin: 0px;",Vt+=" width: "+qt+"px;",Vt+=" height: "+qt+"px;",Vt+=" background-color: ",Vt+=bt.isDark(an,Xt)?"#000000":"#ffffff",Vt+=";",Vt+='"/>';Vt+="</tr>"}return(Vt+="</tbody>")+"</table>"},bt.createSvgTag=function(qt,Dt,Vt,an){var Xt={};typeof arguments[0]=="object"&&(qt=(Xt=arguments[0]).cellSize,Dt=Xt.margin,Vt=Xt.alt,an=Xt.title),qt=qt||2,Dt=Dt===void 0?4*qt:Dt,(Vt=typeof Vt=="string"?{text:Vt}:Vt||{}).text=Vt.text||null,Vt.id=Vt.text?Vt.id||"qrcode-description":null,(an=typeof an=="string"?{text:an}:an||{}).text=an.text||null,an.id=an.text?an.id||"qrcode-title":null;var pn,En,sn,dn,Mn=bt.getModuleCount()*qt+2*Dt,yn="";for(dn="l"+qt+",0 0,"+qt+" -"+qt+",0 0,-"+qt+"z ",yn+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',yn+=Xt.scalable?"":' width="'+Mn+'px" height="'+Mn+'px"',yn+=' viewBox="0 0 '+Mn+" "+Mn+'" ',yn+=' preserveAspectRatio="xMinYMin meet"',yn+=an.text||Vt.text?' role="img" aria-labelledby="'+cn([an.id,Vt.id].join(" ").trim())+'"':"",yn+=">",yn+=an.text?'<title id="'+cn(an.id)+'">'+cn(an.text)+"</title>":"",yn+=Vt.text?'<description id="'+cn(Vt.id)+'">'+cn(Vt.text)+"</description>":"",yn+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',yn+='<path d="',En=0;En<bt.getModuleCount();En+=1)for(sn=En*qt+Dt,pn=0;pn<bt.getModuleCount();pn+=1)bt.isDark(En,pn)&&(yn+="M"+(pn*qt+Dt)+","+sn+dn);return(yn+='" stroke="transparent" fill="black"/>')+"</svg>"},bt.createDataURL=function(qt,Dt){qt=qt||2,Dt=Dt===void 0?4*qt:Dt;var Vt=bt.getModuleCount()*qt+2*Dt,an=Dt,Xt=Vt-Dt;return rt(Vt,Vt,function(pn,En){if(an<=pn&&pn<Xt&&an<=En&&En<Xt){var sn=Math.floor((pn-an)/qt),dn=Math.floor((En-an)/qt);return bt.isDark(dn,sn)?0:1}return 1})},bt.createImgTag=function(qt,Dt,Vt){qt=qt||2,Dt=Dt===void 0?4*qt:Dt;var an=bt.getModuleCount()*qt+2*Dt,Xt="";return Xt+="<img",Xt+=' src="',Xt+=bt.createDataURL(qt,Dt),Xt+='"',Xt+=' width="',Xt+=an,Xt+='"',Xt+=' height="',Xt+=an,Xt+='"',Vt&&(Xt+=' alt="',Xt+=cn(Vt),Xt+='"'),Xt+"/>"};var cn=function(qt){for(var Dt="",Vt=0;Vt<qt.length;Vt+=1){var an=qt.charAt(Vt);switch(an){case"<":Dt+="<";break;case">":Dt+=">";break;case"&":Dt+="&";break;case'"':Dt+=""";break;default:Dt+=an}}return Dt};return bt.createASCII=function(qt,Dt){if((qt=qt||1)<2)return function(gn){gn=gn===void 0?2:gn;var vn,Ln,Sn,In,Nn,rn=1*bt.getModuleCount()+2*gn,Ut=gn,Yt=rn-gn,fn={"██":"█","█ ":"▀"," █":"▄"," ":" "},$n={"██":"▀","█ ":"▀"," █":" "," ":" "},Dn="";for(vn=0;vn<rn;vn+=2){for(Sn=Math.floor((vn-Ut)/1),In=Math.floor((vn+1-Ut)/1),Ln=0;Ln<rn;Ln+=1)Nn="█",Ut<=Ln&&Ln<Yt&&Ut<=vn&&vn<Yt&&bt.isDark(Sn,Math.floor((Ln-Ut)/1))&&(Nn=" "),Ut<=Ln&&Ln<Yt&&Ut<=vn+1&&vn+1<Yt&&bt.isDark(In,Math.floor((Ln-Ut)/1))?Nn+=" ":Nn+="█",Dn+=gn<1&&vn+1>=Yt?$n[Nn]:fn[Nn];Dn+=`
|
|
467
467
|
`}return rn%2&&gn>0?Dn.substring(0,Dn.length-rn-1)+Array(rn+1).join("▀"):Dn.substring(0,Dn.length-1)}(Dt);qt-=1,Dt=Dt===void 0?2*qt:Dt;var Vt,an,Xt,pn,En=bt.getModuleCount()*qt+2*Dt,sn=Dt,dn=En-Dt,Mn=Array(qt+1).join("██"),yn=Array(qt+1).join(" "),An="",Tn="";for(Vt=0;Vt<En;Vt+=1){for(Xt=Math.floor((Vt-sn)/qt),Tn="",an=0;an<En;an+=1)pn=1,sn<=an&&an<dn&&sn<=Vt&&Vt<dn&&bt.isDark(Xt,Math.floor((an-sn)/qt))&&(pn=0),Tn+=pn?Mn:yn;for(Xt=0;Xt<qt;Xt+=1)An+=Tn+`
|
|
468
468
|
`}return An.substring(0,An.length-1)},bt.renderTo2dContext=function(qt,Dt){Dt=Dt||2;for(var Vt=bt.getModuleCount(),an=0;an<Vt;an++)for(var Xt=0;Xt<Vt;Xt++)qt.fillStyle=bt.isDark(an,Xt)?"black":"white",qt.fillRect(an*Dt,Xt*Dt,Dt,Dt)},bt};dt.stringToBytes=(dt.stringToBytesFuncs={default:function(st){for(var ut=[],pt=0;pt<st.length;pt+=1){var mt=st.charCodeAt(pt);ut.push(255&mt)}return ut}}).default,dt.createStringToBytes=function(st,ut){var pt=function(){for(var $t=wt(st),xt=function(){var Ht=$t.read();if(Ht==-1)throw"eof";return Ht},vt=0,it={};;){var bt=$t.read();if(bt==-1)break;var Mt=xt(),Lt=xt()<<8|xt();it[String.fromCharCode(bt<<8|Mt)]=Lt,vt+=1}if(vt!=ut)throw vt+" != "+ut;return it}(),mt=63;return function($t){for(var xt=[],vt=0;vt<$t.length;vt+=1){var it=$t.charCodeAt(vt);if(it<128)xt.push(it);else{var bt=pt[$t.charAt(vt)];typeof bt=="number"?(255&bt)==bt?xt.push(bt):(xt.push(bt>>>8),xt.push(255&bt)):xt.push(mt)}}return xt}};var yt,Tt,St,At,Rt,It={L:1,M:0,Q:3,H:2},Ct=(yt=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],Tt=1335,St=7973,Rt=function(st){for(var ut=0;st!=0;)ut+=1,st>>>=1;return ut},(At={}).getBCHTypeInfo=function(st){for(var ut=st<<10;Rt(ut)-Rt(Tt)>=0;)ut^=Tt<<Rt(ut)-Rt(Tt);return 21522^(st<<10|ut)},At.getBCHTypeNumber=function(st){for(var ut=st<<12;Rt(ut)-Rt(St)>=0;)ut^=St<<Rt(ut)-Rt(St);return st<<12|ut},At.getPatternPosition=function(st){return yt[st-1]},At.getMaskFunction=function(st){switch(st){case 0:return function(ut,pt){return(ut+pt)%2==0};case 1:return function(ut,pt){return ut%2==0};case 2:return function(ut,pt){return pt%3==0};case 3:return function(ut,pt){return(ut+pt)%3==0};case 4:return function(ut,pt){return(Math.floor(ut/2)+Math.floor(pt/3))%2==0};case 5:return function(ut,pt){return ut*pt%2+ut*pt%3==0};case 6:return function(ut,pt){return(ut*pt%2+ut*pt%3)%2==0};case 7:return function(ut,pt){return(ut*pt%3+(ut+pt)%2)%2==0};default:throw"bad maskPattern:"+st}},At.getErrorCorrectPolynomial=function(st){for(var ut=Pt([1],0),pt=0;pt<st;pt+=1)ut=ut.multiply(Pt([1,kt.gexp(pt)],0));return ut},At.getLengthInBits=function(st,ut){if(1<=ut&&ut<10)switch(st){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+st}else if(ut<27)switch(st){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+st}else{if(!(ut<41))throw"type:"+ut;switch(st){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+st}}},At.getLostPoint=function(st){for(var ut=st.getModuleCount(),pt=0,mt=0;mt<ut;mt+=1)for(var $t=0;$t<ut;$t+=1){for(var xt=0,vt=st.isDark(mt,$t),it=-1;it<=1;it+=1)if(!(mt+it<0||ut<=mt+it))for(var bt=-1;bt<=1;bt+=1)$t+bt<0||ut<=$t+bt||it==0&&bt==0||vt==st.isDark(mt+it,$t+bt)&&(xt+=1);xt>5&&(pt+=3+xt-5)}for(mt=0;mt<ut-1;mt+=1)for($t=0;$t<ut-1;$t+=1){var Mt=0;st.isDark(mt,$t)&&(Mt+=1),st.isDark(mt+1,$t)&&(Mt+=1),st.isDark(mt,$t+1)&&(Mt+=1),st.isDark(mt+1,$t+1)&&(Mt+=1),Mt!=0&&Mt!=4||(pt+=3)}for(mt=0;mt<ut;mt+=1)for($t=0;$t<ut-6;$t+=1)st.isDark(mt,$t)&&!st.isDark(mt,$t+1)&&st.isDark(mt,$t+2)&&st.isDark(mt,$t+3)&&st.isDark(mt,$t+4)&&!st.isDark(mt,$t+5)&&st.isDark(mt,$t+6)&&(pt+=40);for($t=0;$t<ut;$t+=1)for(mt=0;mt<ut-6;mt+=1)st.isDark(mt,$t)&&!st.isDark(mt+1,$t)&&st.isDark(mt+2,$t)&&st.isDark(mt+3,$t)&&st.isDark(mt+4,$t)&&!st.isDark(mt+5,$t)&&st.isDark(mt+6,$t)&&(pt+=40);var Lt=0;for($t=0;$t<ut;$t+=1)for(mt=0;mt<ut;mt+=1)st.isDark(mt,$t)&&(Lt+=1);return pt+Math.abs(100*Lt/ut/ut-50)/5*10},At),kt=function(){for(var st=new Array(256),ut=new Array(256),pt=0;pt<8;pt+=1)st[pt]=1<<pt;for(pt=8;pt<256;pt+=1)st[pt]=st[pt-4]^st[pt-5]^st[pt-6]^st[pt-8];for(pt=0;pt<255;pt+=1)ut[st[pt]]=pt;return{glog:function(mt){if(mt<1)throw"glog("+mt+")";return ut[mt]},gexp:function(mt){for(;mt<0;)mt+=255;for(;mt>=256;)mt-=255;return st[mt]}}}();function Pt(st,ut){if(st.length===void 0)throw st.length+"/"+ut;var pt=function(){for(var $t=0;$t<st.length&&st[$t]==0;)$t+=1;for(var xt=new Array(st.length-$t+ut),vt=0;vt<st.length-$t;vt+=1)xt[vt]=st[vt+$t];return xt}(),mt={getAt:function($t){return pt[$t]},getLength:function(){return pt.length},multiply:function($t){for(var xt=new Array(mt.getLength()+$t.getLength()-1),vt=0;vt<mt.getLength();vt+=1)for(var it=0;it<$t.getLength();it+=1)xt[vt+it]^=kt.gexp(kt.glog(mt.getAt(vt))+kt.glog($t.getAt(it)));return Pt(xt,0)},mod:function($t){if(mt.getLength()-$t.getLength()<0)return mt;for(var xt=kt.glog(mt.getAt(0))-kt.glog($t.getAt(0)),vt=new Array(mt.getLength()),it=0;it<mt.getLength();it+=1)vt[it]=mt.getAt(it);for(it=0;it<$t.getLength();it+=1)vt[it]^=kt.gexp(kt.glog($t.getAt(it))+xt);return Pt(vt,0).mod($t)}};return mt}var Bt=function(){var st=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],ut=function(mt,$t){var xt={};return xt.totalCount=mt,xt.dataCount=$t,xt},pt={getRSBlocks:function(mt,$t){var xt=function(Jt,Ft){switch(Ft){case It.L:return st[4*(Jt-1)+0];case It.M:return st[4*(Jt-1)+1];case It.Q:return st[4*(Jt-1)+2];case It.H:return st[4*(Jt-1)+3];default:return}}(mt,$t);if(xt===void 0)throw"bad rs block @ typeNumber:"+mt+"/errorCorrectionLevel:"+$t;for(var vt=xt.length/3,it=[],bt=0;bt<vt;bt+=1)for(var Mt=xt[3*bt+0],Lt=xt[3*bt+1],Ht=xt[3*bt+2],Ot=0;Ot<Mt;Ot+=1)it.push(ut(Lt,Ht));return it}};return pt}(),Kt=function(){var st=[],ut=0,pt={getBuffer:function(){return st},getAt:function(mt){var $t=Math.floor(mt/8);return(st[$t]>>>7-mt%8&1)==1},put:function(mt,$t){for(var xt=0;xt<$t;xt+=1)pt.putBit((mt>>>$t-xt-1&1)==1)},getLengthInBits:function(){return ut},putBit:function(mt){var $t=Math.floor(ut/8);st.length<=$t&&st.push(0),mt&&(st[$t]|=128>>>ut%8),ut+=1}};return pt},jt=function(st){var ut=st,pt={getMode:function(){return 1},getLength:function(xt){return ut.length},write:function(xt){for(var vt=ut,it=0;it+2<vt.length;)xt.put(mt(vt.substring(it,it+3)),10),it+=3;it<vt.length&&(vt.length-it==1?xt.put(mt(vt.substring(it,it+1)),4):vt.length-it==2&&xt.put(mt(vt.substring(it,it+2)),7))}},mt=function(xt){for(var vt=0,it=0;it<xt.length;it+=1)vt=10*vt+$t(xt.charAt(it));return vt},$t=function(xt){if("0"<=xt&&xt<="9")return xt.charCodeAt(0)-48;throw"illegal char :"+xt};return pt},zt=function(st){var ut=st,pt={getMode:function(){return 2},getLength:function($t){return ut.length},write:function($t){for(var xt=ut,vt=0;vt+1<xt.length;)$t.put(45*mt(xt.charAt(vt))+mt(xt.charAt(vt+1)),11),vt+=2;vt<xt.length&&$t.put(mt(xt.charAt(vt)),6)}},mt=function($t){if("0"<=$t&&$t<="9")return $t.charCodeAt(0)-48;if("A"<=$t&&$t<="Z")return $t.charCodeAt(0)-65+10;switch($t){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+$t}};return pt},Gt=function(st){var ut=dt.stringToBytes(st);return{getMode:function(){return 4},getLength:function(pt){return ut.length},write:function(pt){for(var mt=0;mt<ut.length;mt+=1)pt.put(ut[mt],8)}}},tn=function(st){var ut=dt.stringToBytesFuncs.SJIS;if(!ut)throw"sjis not supported.";(function($t,xt){var vt=ut("友");if(vt.length!=2||(vt[0]<<8|vt[1])!=38726)throw"sjis not supported."})();var pt=ut(st),mt={getMode:function(){return 8},getLength:function($t){return~~(pt.length/2)},write:function($t){for(var xt=pt,vt=0;vt+1<xt.length;){var it=(255&xt[vt])<<8|255&xt[vt+1];if(33088<=it&&it<=40956)it-=33088;else{if(!(57408<=it&&it<=60351))throw"illegal char at "+(vt+1)+"/"+it;it-=49472}it=192*(it>>>8&255)+(255&it),$t.put(it,13),vt+=2}if(vt<xt.length)throw"illegal char at "+(vt+1)}};return mt},hn=function(){var st=[],ut={writeByte:function(pt){st.push(255&pt)},writeShort:function(pt){ut.writeByte(pt),ut.writeByte(pt>>>8)},writeBytes:function(pt,mt,$t){mt=mt||0,$t=$t||pt.length;for(var xt=0;xt<$t;xt+=1)ut.writeByte(pt[xt+mt])},writeString:function(pt){for(var mt=0;mt<pt.length;mt+=1)ut.writeByte(pt.charCodeAt(mt))},toByteArray:function(){return st},toString:function(){var pt="";pt+="[";for(var mt=0;mt<st.length;mt+=1)mt>0&&(pt+=","),pt+=st[mt];return pt+"]"}};return ut},wt=function(st){var ut=st,pt=0,mt=0,$t=0,xt={read:function(){for(;$t<8;){if(pt>=ut.length){if($t==0)return-1;throw"unexpected end of file./"+$t}var it=ut.charAt(pt);if(pt+=1,it=="=")return $t=0,-1;it.match(/^\s$/)||(mt=mt<<6|vt(it.charCodeAt(0)),$t+=6)}var bt=mt>>>$t-8&255;return $t-=8,bt}},vt=function(it){if(65<=it&&it<=90)return it-65;if(97<=it&&it<=122)return it-97+26;if(48<=it&&it<=57)return it-48+52;if(it==43)return 62;if(it==47)return 63;throw"c:"+it};return xt},rt=function(st,ut,pt){for(var mt=function(Lt,Ht){var Ot=Lt,Jt=Ht,Ft=new Array(Lt*Ht),Zt={setPixel:function(qt,Dt,Vt){Ft[Dt*Ot+qt]=Vt},write:function(qt){qt.writeString("GIF87a"),qt.writeShort(Ot),qt.writeShort(Jt),qt.writeByte(128),qt.writeByte(0),qt.writeByte(0),qt.writeByte(0),qt.writeByte(0),qt.writeByte(0),qt.writeByte(255),qt.writeByte(255),qt.writeByte(255),qt.writeString(","),qt.writeShort(0),qt.writeShort(0),qt.writeShort(Ot),qt.writeShort(Jt),qt.writeByte(0);var Dt=nn(2);qt.writeByte(2);for(var Vt=0;Dt.length-Vt>255;)qt.writeByte(255),qt.writeBytes(Dt,Vt,255),Vt+=255;qt.writeByte(Dt.length-Vt),qt.writeBytes(Dt,Vt,Dt.length-Vt),qt.writeByte(0),qt.writeString(";")}},nn=function(qt){for(var Dt=1<<qt,Vt=1+(1<<qt),an=qt+1,Xt=cn(),pn=0;pn<Dt;pn+=1)Xt.add(String.fromCharCode(pn));Xt.add(String.fromCharCode(Dt)),Xt.add(String.fromCharCode(Vt));var En,sn,dn,Mn=hn(),yn=(En=Mn,sn=0,dn=0,{write:function(vn,Ln){if(vn>>>Ln)throw"length over";for(;sn+Ln>=8;)En.writeByte(255&(vn<<sn|dn)),Ln-=8-sn,vn>>>=8-sn,dn=0,sn=0;dn|=vn<<sn,sn+=Ln},flush:function(){sn>0&&En.writeByte(dn)}});yn.write(Dt,an);var An=0,Tn=String.fromCharCode(Ft[An]);for(An+=1;An<Ft.length;){var gn=String.fromCharCode(Ft[An]);An+=1,Xt.contains(Tn+gn)?Tn+=gn:(yn.write(Xt.indexOf(Tn),an),Xt.size()<4095&&(Xt.size()==1<<an&&(an+=1),Xt.add(Tn+gn)),Tn=gn)}return yn.write(Xt.indexOf(Tn),an),yn.write(Vt,an),yn.flush(),Mn.toByteArray()},cn=function(){var qt={},Dt=0,Vt={add:function(an){if(Vt.contains(an))throw"dup key:"+an;qt[an]=Dt,Dt+=1},size:function(){return Dt},indexOf:function(an){return qt[an]},contains:function(an){return qt[an]!==void 0}};return Vt};return Zt}(st,ut),$t=0;$t<ut;$t+=1)for(var xt=0;xt<st;xt+=1)mt.setPixel(xt,$t,pt(xt,$t));var vt=hn();mt.write(vt);for(var it=function(){var Lt=0,Ht=0,Ot=0,Jt="",Ft={},Zt=function(cn){Jt+=String.fromCharCode(nn(63&cn))},nn=function(cn){if(!(cn<0)){if(cn<26)return 65+cn;if(cn<52)return cn-26+97;if(cn<62)return cn-52+48;if(cn==62)return 43;if(cn==63)return 47}throw"n:"+cn};return Ft.writeByte=function(cn){for(Lt=Lt<<8|255&cn,Ht+=8,Ot+=1;Ht>=6;)Zt(Lt>>>Ht-6),Ht-=6},Ft.flush=function(){if(Ht>0&&(Zt(Lt<<6-Ht),Lt=0,Ht=0),Ot%3!=0)for(var cn=3-Ot%3,qt=0;qt<cn;qt+=1)Jt+="="},Ft.toString=function(){return Jt},Ft}(),bt=vt.toByteArray(),Mt=0;Mt<bt.length;Mt+=1)it.writeByte(bt[Mt]);return it.flush(),"data:image/gif;base64,"+it};return dt}();ht.stringToBytesFuncs["UTF-8"]=function(dt){return function(yt){for(var Tt=[],St=0;St<yt.length;St++){var At=yt.charCodeAt(St);At<128?Tt.push(At):At<2048?Tt.push(192|At>>6,128|63&At):At<55296||At>=57344?Tt.push(224|At>>12,128|At>>6&63,128|63&At):(St++,At=65536+((1023&At)<<10|1023&yt.charCodeAt(St)),Tt.push(240|At>>18,128|At>>12&63,128|At>>6&63,128|63&At))}return Tt}(dt)},(ft=typeof(ct=function(){return ht})=="function"?ct.apply(ot,[]):ct)===void 0||(tt.exports=ft)},676:(tt,ot,ct)=>{ct.d(ot,{default:()=>cn});const ft="Numeric",ht="Alphanumeric",dt="Byte";var yt=function(){return yt=Object.assign||function(qt){for(var Dt,Vt=1,an=arguments.length;Vt<an;Vt++)for(var Xt in Dt=arguments[Vt])Object.prototype.hasOwnProperty.call(Dt,Xt)&&(qt[Xt]=Dt[Xt]);return qt},yt.apply(this,arguments)},Tt=function(){for(var qt=0,Dt=0,Vt=arguments.length;Dt<Vt;Dt++)qt+=arguments[Dt].length;var an=Array(qt),Xt=0;for(Dt=0;Dt<Vt;Dt++)for(var pn=arguments[Dt],En=0,sn=pn.length;En<sn;En++,Xt++)an[Xt]=pn[En];return an},St=function(qt){return!!qt&&typeof qt=="object"&&!Array.isArray(qt)};function At(qt){for(var Dt=[],Vt=1;Vt<arguments.length;Vt++)Dt[Vt-1]=arguments[Vt];if(!Dt.length)return qt;var an=Dt.shift();return an!==void 0&&St(qt)&&St(an)?(qt=yt({},qt),Object.keys(an).forEach(function(Xt){var pn=qt[Xt],En=an[Xt];Array.isArray(pn)&&Array.isArray(En)?qt[Xt]=En:St(pn)&&St(En)?qt[Xt]=At(Object.assign({},pn),En):qt[Xt]=En}),At.apply(void 0,Tt([qt],Dt))):qt}function Rt(qt,Dt){var Vt=document.createElement("a");Vt.download=Dt,Vt.href=qt,document.body.appendChild(Vt),Vt.click(),document.body.removeChild(Vt)}var It=function(qt,Dt,Vt,an){return new(Vt||(Vt=Promise))(function(Xt,pn){function En(Mn){try{dn(an.next(Mn))}catch(yn){pn(yn)}}function sn(Mn){try{dn(an.throw(Mn))}catch(yn){pn(yn)}}function dn(Mn){var yn;Mn.done?Xt(Mn.value):(yn=Mn.value,yn instanceof Vt?yn:new Vt(function(An){An(yn)})).then(En,sn)}dn((an=an.apply(qt,[])).next())})},Ct=function(qt,Dt){var Vt,an,Xt,pn,En={label:0,sent:function(){if(1&Xt[0])throw Xt[1];return Xt[1]},trys:[],ops:[]};return pn={next:sn(0),throw:sn(1),return:sn(2)},typeof Symbol=="function"&&(pn[Symbol.iterator]=function(){return this}),pn;function sn(dn){return function(Mn){return function(yn){if(Vt)throw new TypeError("Generator is already executing.");for(;En;)try{if(Vt=1,an&&(Xt=2&yn[0]?an.return:yn[0]?an.throw||((Xt=an.return)&&Xt.call(an),0):an.next)&&!(Xt=Xt.call(an,yn[1])).done)return Xt;switch(an=0,Xt&&(yn=[2&yn[0],Xt.value]),yn[0]){case 0:case 1:Xt=yn;break;case 4:return En.label++,{value:yn[1],done:!1};case 5:En.label++,an=yn[1],yn=[0];continue;case 7:yn=En.ops.pop(),En.trys.pop();continue;default:if(!((Xt=(Xt=En.trys).length>0&&Xt[Xt.length-1])||yn[0]!==6&&yn[0]!==2)){En=0;continue}if(yn[0]===3&&(!Xt||yn[1]>Xt[0]&&yn[1]<Xt[3])){En.label=yn[1];break}if(yn[0]===6&&En.label<Xt[1]){En.label=Xt[1],Xt=yn;break}if(Xt&&En.label<Xt[2]){En.label=Xt[2],En.ops.push(yn);break}Xt[2]&&En.ops.pop(),En.trys.pop();continue}yn=Dt.call(qt,En)}catch(An){yn=[6,An],an=0}finally{Vt=Xt=0}if(5&yn[0])throw yn[1];return{value:yn[0]?yn[1]:void 0,done:!0}}([dn,Mn])}}};function kt(qt){return It(this,void 0,void 0,function(){return Ct(this,function(Dt){return[2,new Promise(function(Vt){var an=new XMLHttpRequest;an.onload=function(){var Xt=new FileReader;Xt.onloadend=function(){Vt(Xt.result)},Xt.readAsDataURL(an.response)},an.open("GET",qt),an.responseType="blob",an.send()})]})})}const Pt={L:.07,M:.15,Q:.25,H:.3};var Bt=function(){return Bt=Object.assign||function(qt){for(var Dt,Vt=1,an=arguments.length;Vt<an;Vt++)for(var Xt in Dt=arguments[Vt])Object.prototype.hasOwnProperty.call(Dt,Xt)&&(qt[Xt]=Dt[Xt]);return qt},Bt.apply(this,arguments)},Kt=function(){function qt(Dt){var Vt=Dt.svg,an=Dt.type;this._svg=Vt,this._type=an}return qt.prototype.draw=function(Dt,Vt,an,Xt){var pn;switch(this._type){case"dots":pn=this._drawDot;break;case"classy":pn=this._drawClassy;break;case"classy-rounded":pn=this._drawClassyRounded;break;case"rounded":pn=this._drawRounded;break;case"extra-rounded":pn=this._drawExtraRounded;break;default:pn=this._drawSquare}pn.call(this,{x:Dt,y:Vt,size:an,getNeighbor:Xt})},qt.prototype._rotateFigure=function(Dt){var Vt,an=Dt.x,Xt=Dt.y,pn=Dt.size,En=Dt.rotation,sn=En===void 0?0:En,dn=an+pn/2,Mn=Xt+pn/2;(0,Dt.draw)(),(Vt=this._element)===null||Vt===void 0||Vt.setAttribute("transform","rotate("+180*sn/Math.PI+","+dn+","+Mn+")")},qt.prototype._basicDot=function(Dt){var Vt=this,an=Dt.size,Xt=Dt.x,pn=Dt.y;this._rotateFigure(Bt(Bt({},Dt),{draw:function(){Vt._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Vt._element.setAttribute("cx",String(Xt+an/2)),Vt._element.setAttribute("cy",String(pn+an/2)),Vt._element.setAttribute("r",String(an/2))}}))},qt.prototype._basicSquare=function(Dt){var Vt=this,an=Dt.size,Xt=Dt.x,pn=Dt.y;this._rotateFigure(Bt(Bt({},Dt),{draw:function(){Vt._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Vt._element.setAttribute("x",String(Xt)),Vt._element.setAttribute("y",String(pn)),Vt._element.setAttribute("width",String(an)),Vt._element.setAttribute("height",String(an))}}))},qt.prototype._basicSideRounded=function(Dt){var Vt=this,an=Dt.size,Xt=Dt.x,pn=Dt.y;this._rotateFigure(Bt(Bt({},Dt),{draw:function(){Vt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Vt._element.setAttribute("d","M "+Xt+" "+pn+"v "+an+"h "+an/2+"a "+an/2+" "+an/2+", 0, 0, 0, 0 "+-an)}}))},qt.prototype._basicCornerRounded=function(Dt){var Vt=this,an=Dt.size,Xt=Dt.x,pn=Dt.y;this._rotateFigure(Bt(Bt({},Dt),{draw:function(){Vt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Vt._element.setAttribute("d","M "+Xt+" "+pn+"v "+an+"h "+an+"v "+-an/2+"a "+an/2+" "+an/2+", 0, 0, 0, "+-an/2+" "+-an/2)}}))},qt.prototype._basicCornerExtraRounded=function(Dt){var Vt=this,an=Dt.size,Xt=Dt.x,pn=Dt.y;this._rotateFigure(Bt(Bt({},Dt),{draw:function(){Vt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Vt._element.setAttribute("d","M "+Xt+" "+pn+"v "+an+"h "+an+"a "+an+" "+an+", 0, 0, 0, "+-an+" "+-an)}}))},qt.prototype._basicCornersRounded=function(Dt){var Vt=this,an=Dt.size,Xt=Dt.x,pn=Dt.y;this._rotateFigure(Bt(Bt({},Dt),{draw:function(){Vt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Vt._element.setAttribute("d","M "+Xt+" "+pn+"v "+an/2+"a "+an/2+" "+an/2+", 0, 0, 0, "+an/2+" "+an/2+"h "+an/2+"v "+-an/2+"a "+an/2+" "+an/2+", 0, 0, 0, "+-an/2+" "+-an/2)}}))},qt.prototype._drawDot=function(Dt){var Vt=Dt.x,an=Dt.y,Xt=Dt.size;this._basicDot({x:Vt,y:an,size:Xt,rotation:0})},qt.prototype._drawSquare=function(Dt){var Vt=Dt.x,an=Dt.y,Xt=Dt.size;this._basicSquare({x:Vt,y:an,size:Xt,rotation:0})},qt.prototype._drawRounded=function(Dt){var Vt=Dt.x,an=Dt.y,Xt=Dt.size,pn=Dt.getNeighbor,En=pn?+pn(-1,0):0,sn=pn?+pn(1,0):0,dn=pn?+pn(0,-1):0,Mn=pn?+pn(0,1):0,yn=En+sn+dn+Mn;if(yn!==0)if(yn>2||En&&sn||dn&&Mn)this._basicSquare({x:Vt,y:an,size:Xt,rotation:0});else{if(yn===2){var An=0;return En&&dn?An=Math.PI/2:dn&&sn?An=Math.PI:sn&&Mn&&(An=-Math.PI/2),void this._basicCornerRounded({x:Vt,y:an,size:Xt,rotation:An})}if(yn===1)return An=0,dn?An=Math.PI/2:sn?An=Math.PI:Mn&&(An=-Math.PI/2),void this._basicSideRounded({x:Vt,y:an,size:Xt,rotation:An})}else this._basicDot({x:Vt,y:an,size:Xt,rotation:0})},qt.prototype._drawExtraRounded=function(Dt){var Vt=Dt.x,an=Dt.y,Xt=Dt.size,pn=Dt.getNeighbor,En=pn?+pn(-1,0):0,sn=pn?+pn(1,0):0,dn=pn?+pn(0,-1):0,Mn=pn?+pn(0,1):0,yn=En+sn+dn+Mn;if(yn!==0)if(yn>2||En&&sn||dn&&Mn)this._basicSquare({x:Vt,y:an,size:Xt,rotation:0});else{if(yn===2){var An=0;return En&&dn?An=Math.PI/2:dn&&sn?An=Math.PI:sn&&Mn&&(An=-Math.PI/2),void this._basicCornerExtraRounded({x:Vt,y:an,size:Xt,rotation:An})}if(yn===1)return An=0,dn?An=Math.PI/2:sn?An=Math.PI:Mn&&(An=-Math.PI/2),void this._basicSideRounded({x:Vt,y:an,size:Xt,rotation:An})}else this._basicDot({x:Vt,y:an,size:Xt,rotation:0})},qt.prototype._drawClassy=function(Dt){var Vt=Dt.x,an=Dt.y,Xt=Dt.size,pn=Dt.getNeighbor,En=pn?+pn(-1,0):0,sn=pn?+pn(1,0):0,dn=pn?+pn(0,-1):0,Mn=pn?+pn(0,1):0;En+sn+dn+Mn!==0?En||dn?sn||Mn?this._basicSquare({x:Vt,y:an,size:Xt,rotation:0}):this._basicCornerRounded({x:Vt,y:an,size:Xt,rotation:Math.PI/2}):this._basicCornerRounded({x:Vt,y:an,size:Xt,rotation:-Math.PI/2}):this._basicCornersRounded({x:Vt,y:an,size:Xt,rotation:Math.PI/2})},qt.prototype._drawClassyRounded=function(Dt){var Vt=Dt.x,an=Dt.y,Xt=Dt.size,pn=Dt.getNeighbor,En=pn?+pn(-1,0):0,sn=pn?+pn(1,0):0,dn=pn?+pn(0,-1):0,Mn=pn?+pn(0,1):0;En+sn+dn+Mn!==0?En||dn?sn||Mn?this._basicSquare({x:Vt,y:an,size:Xt,rotation:0}):this._basicCornerExtraRounded({x:Vt,y:an,size:Xt,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:Vt,y:an,size:Xt,rotation:-Math.PI/2}):this._basicCornersRounded({x:Vt,y:an,size:Xt,rotation:Math.PI/2})},qt}();const jt=Kt;var zt=function(){return zt=Object.assign||function(qt){for(var Dt,Vt=1,an=arguments.length;Vt<an;Vt++)for(var Xt in Dt=arguments[Vt])Object.prototype.hasOwnProperty.call(Dt,Xt)&&(qt[Xt]=Dt[Xt]);return qt},zt.apply(this,arguments)},Gt=function(){function qt(Dt){var Vt=Dt.svg,an=Dt.type;this._svg=Vt,this._type=an}return qt.prototype.draw=function(Dt,Vt,an,Xt){var pn;switch(this._type){case"square":pn=this._drawSquare;break;case"extra-rounded":pn=this._drawExtraRounded;break;default:pn=this._drawDot}pn.call(this,{x:Dt,y:Vt,size:an,rotation:Xt})},qt.prototype._rotateFigure=function(Dt){var Vt,an=Dt.x,Xt=Dt.y,pn=Dt.size,En=Dt.rotation,sn=En===void 0?0:En,dn=an+pn/2,Mn=Xt+pn/2;(0,Dt.draw)(),(Vt=this._element)===null||Vt===void 0||Vt.setAttribute("transform","rotate("+180*sn/Math.PI+","+dn+","+Mn+")")},qt.prototype._basicDot=function(Dt){var Vt=this,an=Dt.size,Xt=Dt.x,pn=Dt.y,En=an/7;this._rotateFigure(zt(zt({},Dt),{draw:function(){Vt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Vt._element.setAttribute("clip-rule","evenodd"),Vt._element.setAttribute("d","M "+(Xt+an/2)+" "+pn+"a "+an/2+" "+an/2+" 0 1 0 0.1 0zm 0 "+En+"a "+(an/2-En)+" "+(an/2-En)+" 0 1 1 -0.1 0Z")}}))},qt.prototype._basicSquare=function(Dt){var Vt=this,an=Dt.size,Xt=Dt.x,pn=Dt.y,En=an/7;this._rotateFigure(zt(zt({},Dt),{draw:function(){Vt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Vt._element.setAttribute("clip-rule","evenodd"),Vt._element.setAttribute("d","M "+Xt+" "+pn+"v "+an+"h "+an+"v "+-an+"zM "+(Xt+En)+" "+(pn+En)+"h "+(an-2*En)+"v "+(an-2*En)+"h "+(2*En-an)+"z")}}))},qt.prototype._basicExtraRounded=function(Dt){var Vt=this,an=Dt.size,Xt=Dt.x,pn=Dt.y,En=an/7;this._rotateFigure(zt(zt({},Dt),{draw:function(){Vt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Vt._element.setAttribute("clip-rule","evenodd"),Vt._element.setAttribute("d","M "+Xt+" "+(pn+2.5*En)+"v "+2*En+"a "+2.5*En+" "+2.5*En+", 0, 0, 0, "+2.5*En+" "+2.5*En+"h "+2*En+"a "+2.5*En+" "+2.5*En+", 0, 0, 0, "+2.5*En+" "+2.5*-En+"v "+-2*En+"a "+2.5*En+" "+2.5*En+", 0, 0, 0, "+2.5*-En+" "+2.5*-En+"h "+-2*En+"a "+2.5*En+" "+2.5*En+", 0, 0, 0, "+2.5*-En+" "+2.5*En+"M "+(Xt+2.5*En)+" "+(pn+En)+"h "+2*En+"a "+1.5*En+" "+1.5*En+", 0, 0, 1, "+1.5*En+" "+1.5*En+"v "+2*En+"a "+1.5*En+" "+1.5*En+", 0, 0, 1, "+1.5*-En+" "+1.5*En+"h "+-2*En+"a "+1.5*En+" "+1.5*En+", 0, 0, 1, "+1.5*-En+" "+1.5*-En+"v "+-2*En+"a "+1.5*En+" "+1.5*En+", 0, 0, 1, "+1.5*En+" "+1.5*-En)}}))},qt.prototype._drawDot=function(Dt){var Vt=Dt.x,an=Dt.y,Xt=Dt.size,pn=Dt.rotation;this._basicDot({x:Vt,y:an,size:Xt,rotation:pn})},qt.prototype._drawSquare=function(Dt){var Vt=Dt.x,an=Dt.y,Xt=Dt.size,pn=Dt.rotation;this._basicSquare({x:Vt,y:an,size:Xt,rotation:pn})},qt.prototype._drawExtraRounded=function(Dt){var Vt=Dt.x,an=Dt.y,Xt=Dt.size,pn=Dt.rotation;this._basicExtraRounded({x:Vt,y:an,size:Xt,rotation:pn})},qt}();const tn=Gt;var hn=function(){return hn=Object.assign||function(qt){for(var Dt,Vt=1,an=arguments.length;Vt<an;Vt++)for(var Xt in Dt=arguments[Vt])Object.prototype.hasOwnProperty.call(Dt,Xt)&&(qt[Xt]=Dt[Xt]);return qt},hn.apply(this,arguments)},wt=function(){function qt(Dt){var Vt=Dt.svg,an=Dt.type;this._svg=Vt,this._type=an}return qt.prototype.draw=function(Dt,Vt,an,Xt){(this._type==="square"?this._drawSquare:this._drawDot).call(this,{x:Dt,y:Vt,size:an,rotation:Xt})},qt.prototype._rotateFigure=function(Dt){var Vt,an=Dt.x,Xt=Dt.y,pn=Dt.size,En=Dt.rotation,sn=En===void 0?0:En,dn=an+pn/2,Mn=Xt+pn/2;(0,Dt.draw)(),(Vt=this._element)===null||Vt===void 0||Vt.setAttribute("transform","rotate("+180*sn/Math.PI+","+dn+","+Mn+")")},qt.prototype._basicDot=function(Dt){var Vt=this,an=Dt.size,Xt=Dt.x,pn=Dt.y;this._rotateFigure(hn(hn({},Dt),{draw:function(){Vt._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Vt._element.setAttribute("cx",String(Xt+an/2)),Vt._element.setAttribute("cy",String(pn+an/2)),Vt._element.setAttribute("r",String(an/2))}}))},qt.prototype._basicSquare=function(Dt){var Vt=this,an=Dt.size,Xt=Dt.x,pn=Dt.y;this._rotateFigure(hn(hn({},Dt),{draw:function(){Vt._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Vt._element.setAttribute("x",String(Xt)),Vt._element.setAttribute("y",String(pn)),Vt._element.setAttribute("width",String(an)),Vt._element.setAttribute("height",String(an))}}))},qt.prototype._drawDot=function(Dt){var Vt=Dt.x,an=Dt.y,Xt=Dt.size,pn=Dt.rotation;this._basicDot({x:Vt,y:an,size:Xt,rotation:pn})},qt.prototype._drawSquare=function(Dt){var Vt=Dt.x,an=Dt.y,Xt=Dt.size,pn=Dt.rotation;this._basicSquare({x:Vt,y:an,size:Xt,rotation:pn})},qt}();const rt=wt,st="circle";var ut=function(qt,Dt,Vt,an){return new(Vt||(Vt=Promise))(function(Xt,pn){function En(Mn){try{dn(an.next(Mn))}catch(yn){pn(yn)}}function sn(Mn){try{dn(an.throw(Mn))}catch(yn){pn(yn)}}function dn(Mn){var yn;Mn.done?Xt(Mn.value):(yn=Mn.value,yn instanceof Vt?yn:new Vt(function(An){An(yn)})).then(En,sn)}dn((an=an.apply(qt,[])).next())})},pt=function(qt,Dt){var Vt,an,Xt,pn,En={label:0,sent:function(){if(1&Xt[0])throw Xt[1];return Xt[1]},trys:[],ops:[]};return pn={next:sn(0),throw:sn(1),return:sn(2)},typeof Symbol=="function"&&(pn[Symbol.iterator]=function(){return this}),pn;function sn(dn){return function(Mn){return function(yn){if(Vt)throw new TypeError("Generator is already executing.");for(;En;)try{if(Vt=1,an&&(Xt=2&yn[0]?an.return:yn[0]?an.throw||((Xt=an.return)&&Xt.call(an),0):an.next)&&!(Xt=Xt.call(an,yn[1])).done)return Xt;switch(an=0,Xt&&(yn=[2&yn[0],Xt.value]),yn[0]){case 0:case 1:Xt=yn;break;case 4:return En.label++,{value:yn[1],done:!1};case 5:En.label++,an=yn[1],yn=[0];continue;case 7:yn=En.ops.pop(),En.trys.pop();continue;default:if(!((Xt=(Xt=En.trys).length>0&&Xt[Xt.length-1])||yn[0]!==6&&yn[0]!==2)){En=0;continue}if(yn[0]===3&&(!Xt||yn[1]>Xt[0]&&yn[1]<Xt[3])){En.label=yn[1];break}if(yn[0]===6&&En.label<Xt[1]){En.label=Xt[1],Xt=yn;break}if(Xt&&En.label<Xt[2]){En.label=Xt[2],En.ops.push(yn);break}Xt[2]&&En.ops.pop(),En.trys.pop();continue}yn=Dt.call(qt,En)}catch(An){yn=[6,An],an=0}finally{Vt=Xt=0}if(5&yn[0])throw yn[1];return{value:yn[0]?yn[1]:void 0,done:!0}}([dn,Mn])}}},mt=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],$t=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const xt=function(){function qt(Dt){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(Dt.width)),this._element.setAttribute("height",String(Dt.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._instanceId=qt.instanceCount++,this._options=Dt}return Object.defineProperty(qt.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),qt.prototype.getElement=function(){return this._element},qt.prototype.drawQR=function(Dt){return ut(this,void 0,void 0,function(){var Vt,an,Xt,pn,En,sn,dn,Mn,yn,An,Tn=this;return pt(this,function(gn){switch(gn.label){case 0:return Vt=Dt.getModuleCount(),an=Math.min(this._options.width,this._options.height)-2*this._options.margin,Xt=this._options.shape===st?an/Math.sqrt(2):an,pn=Xt/Vt,En={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=Dt,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(gn.sent(),!this._image)return[2];sn=this._options,dn=sn.imageOptions,Mn=sn.qrOptions,yn=dn.imageSize*Pt[Mn.errorCorrectionLevel],An=Math.floor(yn*Vt*Vt),En=function(vn){var Ln=vn.originalHeight,Sn=vn.originalWidth,In=vn.maxHiddenDots,Nn=vn.maxHiddenAxisDots,rn=vn.dotSize,Ut={x:0,y:0},Yt={x:0,y:0};if(Ln<=0||Sn<=0||In<=0||rn<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var fn=Ln/Sn;return Ut.x=Math.floor(Math.sqrt(In/fn)),Ut.x<=0&&(Ut.x=1),Nn&&Nn<Ut.x&&(Ut.x=Nn),Ut.x%2==0&&Ut.x--,Yt.x=Ut.x*rn,Ut.y=1+2*Math.ceil((Ut.x*fn-1)/2),Yt.y=Math.round(Yt.x*fn),(Ut.y*Ut.x>In||Nn&&Nn<Ut.y)&&(Nn&&Nn<Ut.y?(Ut.y=Nn,Ut.y%2==0&&Ut.x--):Ut.y-=2,Yt.y=Ut.y*rn,Ut.x=1+2*Math.ceil((Ut.y/fn-1)/2),Yt.x=Math.round(Yt.y/fn)),{height:Yt.y,width:Yt.x,hideYDots:Ut.y,hideXDots:Ut.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:An,maxHiddenAxisDots:Vt-14,dotSize:pn}),gn.label=2;case 2:return this.drawBackground(),this.drawDots(function(vn,Ln){var Sn,In,Nn,rn,Ut,Yt;return!(Tn._options.imageOptions.hideBackgroundDots&&vn>=(Vt-En.hideXDots)/2&&vn<(Vt+En.hideXDots)/2&&Ln>=(Vt-En.hideYDots)/2&&Ln<(Vt+En.hideYDots)/2||!((Sn=mt[vn])===null||Sn===void 0)&&Sn[Ln]||!((In=mt[vn-Vt+7])===null||In===void 0)&&In[Ln]||!((Nn=mt[vn])===null||Nn===void 0)&&Nn[Ln-Vt+7]||!((rn=$t[vn])===null||rn===void 0)&&rn[Ln]||!((Ut=$t[vn-Vt+7])===null||Ut===void 0)&&Ut[Ln]||!((Yt=$t[vn])===null||Yt===void 0)&&Yt[Ln-Vt+7])}),this.drawCorners(),this._options.image?[4,this.drawImage({width:En.width,height:En.height,count:Vt,dotSize:pn})]:[3,4];case 3:gn.sent(),gn.label=4;case 4:return[2]}})})},qt.prototype.drawBackground=function(){var Dt,Vt,an,Xt=this._element,pn=this._options;if(Xt){var En=(Dt=pn.backgroundOptions)===null||Dt===void 0?void 0:Dt.gradient,sn=(Vt=pn.backgroundOptions)===null||Vt===void 0?void 0:Vt.color;if((En||sn)&&this._createColor({options:En,color:sn,additionalRotation:0,x:0,y:0,height:pn.height,width:pn.width,name:"background-color"}),(an=pn.backgroundOptions)===null||an===void 0?void 0:an.round){var dn=Math.min(pn.width,pn.height),Mn=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),Mn.setAttribute("x",String((pn.width-dn)/2)),Mn.setAttribute("y",String((pn.height-dn)/2)),Mn.setAttribute("width",String(dn)),Mn.setAttribute("height",String(dn)),Mn.setAttribute("rx",String(dn/2*pn.backgroundOptions.round)),this._backgroundClipPath.appendChild(Mn)}}},qt.prototype.drawDots=function(Dt){var Vt,an,Xt=this;if(!this._qr)throw"QR code is not defined";var pn=this._options,En=this._qr.getModuleCount();if(En>pn.width||En>pn.height)throw"The canvas is too small.";var sn=Math.min(pn.width,pn.height)-2*pn.margin,dn=(pn.shape===st?sn/Math.sqrt(2):sn)/En,Mn=(pn.width-En*dn)/2,yn=(pn.height-En*dn)/2,An=new jt({svg:this._element,type:pn.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color-"+this._instanceId),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(Vt=pn.dotsOptions)===null||Vt===void 0?void 0:Vt.gradient,color:pn.dotsOptions.color,additionalRotation:0,x:0,y:0,height:pn.height,width:pn.width,name:"dot-color-"+this._instanceId});for(var Tn=function(Dn){for(var xn=function(jn){return Dt&&!Dt(Dn,jn)?"continue":!((an=gn._qr)===null||an===void 0)&&an.isDark(Dn,jn)?(An.draw(Mn+Dn*dn,yn+jn*dn,dn,function(Rn,Pn){return!(Dn+Rn<0||jn+Pn<0||Dn+Rn>=En||jn+Pn>=En)&&!(Dt&&!Dt(Dn+Rn,jn+Pn))&&!!Xt._qr&&Xt._qr.isDark(Dn+Rn,jn+Pn)}),void(An._element&&gn._dotsClipPath&&gn._dotsClipPath.appendChild(An._element))):"continue"},wn=0;wn<En;wn++)xn(wn)},gn=this,vn=0;vn<En;vn++)Tn(vn);if(pn.shape===st){var Ln=Math.floor((sn/dn-En)/2),Sn=En+2*Ln,In=Mn-Ln*dn,Nn=yn-Ln*dn,rn=[],Ut=Math.floor(Sn/2);for(vn=0;vn<Sn;vn++){rn[vn]=[];for(var Yt=0;Yt<Sn;Yt++)vn>=Ln-1&&vn<=Sn-Ln&&Yt>=Ln-1&&Yt<=Sn-Ln||Math.sqrt((vn-Ut)*(vn-Ut)+(Yt-Ut)*(Yt-Ut))>Ut?rn[vn][Yt]=0:rn[vn][Yt]=this._qr.isDark(Yt-2*Ln<0?Yt:Yt>=En?Yt-2*Ln:Yt-Ln,vn-2*Ln<0?vn:vn>=En?vn-2*Ln:vn-Ln)?1:0}var fn=function(Dn){for(var xn=function(jn){if(!rn[Dn][jn])return"continue";An.draw(In+Dn*dn,Nn+jn*dn,dn,function(Rn,Pn){var tr;return!!(!((tr=rn[Dn+Rn])===null||tr===void 0)&&tr[jn+Pn])}),An._element&&$n._dotsClipPath&&$n._dotsClipPath.appendChild(An._element)},wn=0;wn<Sn;wn++)xn(wn)},$n=this;for(vn=0;vn<Sn;vn++)fn(vn)}},qt.prototype.drawCorners=function(){var Dt=this;if(!this._qr)throw"QR code is not defined";var Vt=this._element,an=this._options;if(!Vt)throw"Element code is not defined";var Xt=this._qr.getModuleCount(),pn=Math.min(an.width,an.height)-2*an.margin,En=(an.shape===st?pn/Math.sqrt(2):pn)/Xt,sn=7*En,dn=3*En,Mn=(an.width-Xt*En)/2,yn=(an.height-Xt*En)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(An){var Tn,gn,vn,Ln,Sn,In,Nn,rn,Ut,Yt,fn,$n,Dn=An[0],xn=An[1],wn=An[2],jn=Mn+Dn*En*(Xt-7),Rn=yn+xn*En*(Xt-7),Pn=Dt._dotsClipPath,tr=Dt._dotsClipPath;if((!((Tn=an.cornersSquareOptions)===null||Tn===void 0)&&Tn.gradient||!((gn=an.cornersSquareOptions)===null||gn===void 0)&&gn.color)&&((Pn=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Dn+"-"+xn),Dt._defs.appendChild(Pn),Dt._cornersSquareClipPath=Dt._cornersDotClipPath=tr=Pn,Dt._createColor({options:(vn=an.cornersSquareOptions)===null||vn===void 0?void 0:vn.gradient,color:(Ln=an.cornersSquareOptions)===null||Ln===void 0?void 0:Ln.color,additionalRotation:wn,x:jn,y:Rn,height:sn,width:sn,name:"corners-square-color-"+Dn+"-"+xn})),(Sn=an.cornersSquareOptions)===null||Sn===void 0?void 0:Sn.type){var Bn=new tn({svg:Dt._element,type:an.cornersSquareOptions.type});Bn.draw(jn,Rn,sn,wn),Bn._element&&Pn&&Pn.appendChild(Bn._element)}else for(var qn=new jt({svg:Dt._element,type:an.dotsOptions.type}),$r=function(Vn){for(var Kn=function(Un){if(!(!((In=mt[Vn])===null||In===void 0)&&In[Un]))return"continue";qn.draw(jn+Vn*En,Rn+Un*En,En,function(Yn,un){var ln;return!!(!((ln=mt[Vn+Yn])===null||ln===void 0)&&ln[Un+un])}),qn._element&&Pn&&Pn.appendChild(qn._element)},br=0;br<mt[Vn].length;br++)Kn(br)},Fn=0;Fn<mt.length;Fn++)$r(Fn);if((!((Nn=an.cornersDotOptions)===null||Nn===void 0)&&Nn.gradient||!((rn=an.cornersDotOptions)===null||rn===void 0)&&rn.color)&&((tr=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Dn+"-"+xn),Dt._defs.appendChild(tr),Dt._cornersDotClipPath=tr,Dt._createColor({options:(Ut=an.cornersDotOptions)===null||Ut===void 0?void 0:Ut.gradient,color:(Yt=an.cornersDotOptions)===null||Yt===void 0?void 0:Yt.color,additionalRotation:wn,x:jn+2*En,y:Rn+2*En,height:dn,width:dn,name:"corners-dot-color-"+Dn+"-"+xn})),(fn=an.cornersDotOptions)===null||fn===void 0?void 0:fn.type){var Gn=new rt({svg:Dt._element,type:an.cornersDotOptions.type});Gn.draw(jn+2*En,Rn+2*En,dn,wn),Gn._element&&tr&&tr.appendChild(Gn._element)}else{qn=new jt({svg:Dt._element,type:an.dotsOptions.type});var Tr=function(Vn){for(var Kn=function(Un){if(!(!(($n=$t[Vn])===null||$n===void 0)&&$n[Un]))return"continue";qn.draw(jn+Vn*En,Rn+Un*En,En,function(Yn,un){var ln;return!!(!((ln=$t[Vn+Yn])===null||ln===void 0)&&ln[Un+un])}),qn._element&&tr&&tr.appendChild(qn._element)},br=0;br<$t[Vn].length;br++)Kn(br)};for(Fn=0;Fn<$t.length;Fn++)Tr(Fn)}})},qt.prototype.loadImage=function(){var Dt=this;return new Promise(function(Vt,an){var Xt=Dt._options,pn=new Image;if(!Xt.image)return an("Image is not defined");typeof Xt.imageOptions.crossOrigin=="string"&&(pn.crossOrigin=Xt.imageOptions.crossOrigin),Dt._image=pn,pn.onload=function(){Vt()},pn.src=Xt.image})},qt.prototype.drawImage=function(Dt){var Vt=Dt.width,an=Dt.height,Xt=Dt.count,pn=Dt.dotSize;return ut(this,void 0,void 0,function(){var En,sn,dn,Mn,yn,An,Tn,gn,vn;return pt(this,function(Ln){switch(Ln.label){case 0:return En=this._options,sn=(En.width-Xt*pn)/2,dn=(En.height-Xt*pn)/2,Mn=sn+En.imageOptions.margin+(Xt*pn-Vt)/2,yn=dn+En.imageOptions.margin+(Xt*pn-an)/2,An=Vt-2*En.imageOptions.margin,Tn=an-2*En.imageOptions.margin,(gn=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(Mn)),gn.setAttribute("y",String(yn)),gn.setAttribute("width",An+"px"),gn.setAttribute("height",Tn+"px"),[4,kt(En.image||"")];case 1:return vn=Ln.sent(),gn.setAttribute("href",vn||""),this._element.appendChild(gn),[2]}})})},qt.prototype._createColor=function(Dt){var Vt=Dt.options,an=Dt.color,Xt=Dt.additionalRotation,pn=Dt.x,En=Dt.y,sn=Dt.height,dn=Dt.width,Mn=Dt.name,yn=dn>sn?dn:sn,An=document.createElementNS("http://www.w3.org/2000/svg","rect");if(An.setAttribute("x",String(pn)),An.setAttribute("y",String(En)),An.setAttribute("height",String(sn)),An.setAttribute("width",String(dn)),An.setAttribute("clip-path","url('#clip-path-"+Mn+"')"),Vt){var Tn;if(Vt.type==="radial")(Tn=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",Mn),Tn.setAttribute("gradientUnits","userSpaceOnUse"),Tn.setAttribute("fx",String(pn+dn/2)),Tn.setAttribute("fy",String(En+sn/2)),Tn.setAttribute("cx",String(pn+dn/2)),Tn.setAttribute("cy",String(En+sn/2)),Tn.setAttribute("r",String(yn/2));else{var gn=((Vt.rotation||0)+Xt)%(2*Math.PI),vn=(gn+2*Math.PI)%(2*Math.PI),Ln=pn+dn/2,Sn=En+sn/2,In=pn+dn/2,Nn=En+sn/2;vn>=0&&vn<=.25*Math.PI||vn>1.75*Math.PI&&vn<=2*Math.PI?(Ln-=dn/2,Sn-=sn/2*Math.tan(gn),In+=dn/2,Nn+=sn/2*Math.tan(gn)):vn>.25*Math.PI&&vn<=.75*Math.PI?(Sn-=sn/2,Ln-=dn/2/Math.tan(gn),Nn+=sn/2,In+=dn/2/Math.tan(gn)):vn>.75*Math.PI&&vn<=1.25*Math.PI?(Ln+=dn/2,Sn+=sn/2*Math.tan(gn),In-=dn/2,Nn-=sn/2*Math.tan(gn)):vn>1.25*Math.PI&&vn<=1.75*Math.PI&&(Sn+=sn/2,Ln+=dn/2/Math.tan(gn),Nn-=sn/2,In-=dn/2/Math.tan(gn)),(Tn=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",Mn),Tn.setAttribute("gradientUnits","userSpaceOnUse"),Tn.setAttribute("x1",String(Math.round(Ln))),Tn.setAttribute("y1",String(Math.round(Sn))),Tn.setAttribute("x2",String(Math.round(In))),Tn.setAttribute("y2",String(Math.round(Nn)))}Vt.colorStops.forEach(function(rn){var Ut=rn.offset,Yt=rn.color,fn=document.createElementNS("http://www.w3.org/2000/svg","stop");fn.setAttribute("offset",100*Ut+"%"),fn.setAttribute("stop-color",Yt),Tn.appendChild(fn)}),An.setAttribute("fill","url('#"+Mn+"')"),this._defs.appendChild(Tn)}else an&&An.setAttribute("fill",an);this._element.appendChild(An)},qt.instanceCount=0,qt}(),vt="canvas";for(var it={},bt=0;bt<=40;bt++)it[bt]=bt;const Mt={type:vt,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:it[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var Lt=function(){return Lt=Object.assign||function(qt){for(var Dt,Vt=1,an=arguments.length;Vt<an;Vt++)for(var Xt in Dt=arguments[Vt])Object.prototype.hasOwnProperty.call(Dt,Xt)&&(qt[Xt]=Dt[Xt]);return qt},Lt.apply(this,arguments)};function Ht(qt){var Dt=Lt({},qt);if(!Dt.colorStops||!Dt.colorStops.length)throw"Field 'colorStops' is required in gradient";return Dt.rotation?Dt.rotation=Number(Dt.rotation):Dt.rotation=0,Dt.colorStops=Dt.colorStops.map(function(Vt){return Lt(Lt({},Vt),{offset:Number(Vt.offset)})}),Dt}function Ot(qt){var Dt=Lt({},qt);return Dt.width=Number(Dt.width),Dt.height=Number(Dt.height),Dt.margin=Number(Dt.margin),Dt.imageOptions=Lt(Lt({},Dt.imageOptions),{hideBackgroundDots:!!Dt.imageOptions.hideBackgroundDots,imageSize:Number(Dt.imageOptions.imageSize),margin:Number(Dt.imageOptions.margin)}),Dt.margin>Math.min(Dt.width,Dt.height)&&(Dt.margin=Math.min(Dt.width,Dt.height)),Dt.dotsOptions=Lt({},Dt.dotsOptions),Dt.dotsOptions.gradient&&(Dt.dotsOptions.gradient=Ht(Dt.dotsOptions.gradient)),Dt.cornersSquareOptions&&(Dt.cornersSquareOptions=Lt({},Dt.cornersSquareOptions),Dt.cornersSquareOptions.gradient&&(Dt.cornersSquareOptions.gradient=Ht(Dt.cornersSquareOptions.gradient))),Dt.cornersDotOptions&&(Dt.cornersDotOptions=Lt({},Dt.cornersDotOptions),Dt.cornersDotOptions.gradient&&(Dt.cornersDotOptions.gradient=Ht(Dt.cornersDotOptions.gradient))),Dt.backgroundOptions&&(Dt.backgroundOptions=Lt({},Dt.backgroundOptions),Dt.backgroundOptions.gradient&&(Dt.backgroundOptions.gradient=Ht(Dt.backgroundOptions.gradient))),Dt}var Jt=ct(192),Ft=ct.n(Jt),Zt=function(qt,Dt,Vt,an){return new(Vt||(Vt=Promise))(function(Xt,pn){function En(Mn){try{dn(an.next(Mn))}catch(yn){pn(yn)}}function sn(Mn){try{dn(an.throw(Mn))}catch(yn){pn(yn)}}function dn(Mn){var yn;Mn.done?Xt(Mn.value):(yn=Mn.value,yn instanceof Vt?yn:new Vt(function(An){An(yn)})).then(En,sn)}dn((an=an.apply(qt,[])).next())})},nn=function(qt,Dt){var Vt,an,Xt,pn,En={label:0,sent:function(){if(1&Xt[0])throw Xt[1];return Xt[1]},trys:[],ops:[]};return pn={next:sn(0),throw:sn(1),return:sn(2)},typeof Symbol=="function"&&(pn[Symbol.iterator]=function(){return this}),pn;function sn(dn){return function(Mn){return function(yn){if(Vt)throw new TypeError("Generator is already executing.");for(;En;)try{if(Vt=1,an&&(Xt=2&yn[0]?an.return:yn[0]?an.throw||((Xt=an.return)&&Xt.call(an),0):an.next)&&!(Xt=Xt.call(an,yn[1])).done)return Xt;switch(an=0,Xt&&(yn=[2&yn[0],Xt.value]),yn[0]){case 0:case 1:Xt=yn;break;case 4:return En.label++,{value:yn[1],done:!1};case 5:En.label++,an=yn[1],yn=[0];continue;case 7:yn=En.ops.pop(),En.trys.pop();continue;default:if(!((Xt=(Xt=En.trys).length>0&&Xt[Xt.length-1])||yn[0]!==6&&yn[0]!==2)){En=0;continue}if(yn[0]===3&&(!Xt||yn[1]>Xt[0]&&yn[1]<Xt[3])){En.label=yn[1];break}if(yn[0]===6&&En.label<Xt[1]){En.label=Xt[1],Xt=yn;break}if(Xt&&En.label<Xt[2]){En.label=Xt[2],En.ops.push(yn);break}Xt[2]&&En.ops.pop(),En.trys.pop();continue}yn=Dt.call(qt,En)}catch(An){yn=[6,An],an=0}finally{Vt=Xt=0}if(5&yn[0])throw yn[1];return{value:yn[0]?yn[1]:void 0,done:!0}}([dn,Mn])}}};const cn=function(){function qt(Dt){this._options=Dt?Ot(At(Mt,Dt)):Mt,this.update()}return qt._clearContainer=function(Dt){Dt&&(Dt.innerHTML="")},qt.prototype._setupSvg=function(){var Dt=this;if(this._qr){var Vt=new xt(this._options);this._svg=Vt.getElement(),this._svgDrawingPromise=Vt.drawQR(this._qr).then(function(){var an;Dt._svg&&((an=Dt._extension)===null||an===void 0||an.call(Dt,Vt.getElement(),Dt._options))})}},qt.prototype._setupCanvas=function(){var Dt,Vt=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=(Dt=this._svgDrawingPromise)===null||Dt===void 0?void 0:Dt.then(function(){if(Vt._svg){var an=Vt._svg,Xt=new XMLSerializer().serializeToString(an),pn="data:image/svg+xml;base64,"+btoa(Xt),En=new Image;return new Promise(function(sn){En.onload=function(){var dn,Mn;(Mn=(dn=Vt._canvas)===null||dn===void 0?void 0:dn.getContext("2d"))===null||Mn===void 0||Mn.drawImage(En,0,0),sn()},En.src=pn})}}))},qt.prototype._getElement=function(Dt){return Dt===void 0&&(Dt="png"),Zt(this,void 0,void 0,function(){return nn(this,function(Vt){switch(Vt.label){case 0:if(!this._qr)throw"QR code is empty";return Dt.toLowerCase()!=="svg"?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return Vt.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return Vt.sent(),[2,this._canvas]}})})},qt.prototype.update=function(Dt){qt._clearContainer(this._container),this._options=Dt?Ot(At(this._options,Dt)):this._options,this._options.data&&(this._qr=Ft()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(Vt){switch(!0){case/^[0-9]*$/.test(Vt):return ft;case/^[0-9A-Z $%*+\-./:]*$/.test(Vt):return ht;default:return dt}}(this._options.data)),this._qr.make(),this._options.type===vt?this._setupCanvas():this._setupSvg(),this.append(this._container))},qt.prototype.append=function(Dt){if(Dt){if(typeof Dt.appendChild!="function")throw"Container should be a single DOM node";this._options.type===vt?this._canvas&&Dt.appendChild(this._canvas):this._svg&&Dt.appendChild(this._svg),this._container=Dt}},qt.prototype.applyExtension=function(Dt){if(!Dt)throw"Extension function should be defined.";this._extension=Dt,this.update()},qt.prototype.deleteExtension=function(){this._extension=void 0,this.update()},qt.prototype.getRawData=function(Dt){return Dt===void 0&&(Dt="png"),Zt(this,void 0,void 0,function(){var Vt,an,Xt;return nn(this,function(pn){switch(pn.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(Dt)];case 1:return(Vt=pn.sent())?Dt.toLowerCase()==="svg"?(an=new XMLSerializer,Xt=an.serializeToString(Vt),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
|
|
469
469
|
`+Xt],{type:"image/svg+xml"})]):[2,new Promise(function(En){return Vt.toBlob(En,"image/"+Dt,1)})]:[2,null]}})})},qt.prototype.download=function(Dt){return Zt(this,void 0,void 0,function(){var Vt,an,Xt,pn,En;return nn(this,function(sn){switch(sn.label){case 0:if(!this._qr)throw"QR code is empty";return Vt="png",an="qr",typeof Dt=="string"?(Vt=Dt,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof Dt=="object"&&Dt!==null&&(Dt.name&&(an=Dt.name),Dt.extension&&(Vt=Dt.extension)),[4,this._getElement(Vt)];case 1:return(Xt=sn.sent())?(Vt.toLowerCase()==="svg"?(pn=new XMLSerializer,En=`<?xml version="1.0" standalone="no"?>\r
|
|
470
470
|
`+(En=pn.serializeToString(Xt)),Rt("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(En),an+".svg")):Rt(Xt.toDataURL("image/"+Vt),an+"."+Vt),[2]):[2]}})})},qt}()}},et={};function nt(tt){if(et[tt])return et[tt].exports;var ot=et[tt]={exports:{}};return _e[tt](ot,ot.exports,nt),ot.exports}return nt.n=tt=>{var ot=tt&&tt.__esModule?()=>tt.default:()=>tt;return nt.d(ot,{a:ot}),ot},nt.d=(tt,ot)=>{for(var ct in ot)nt.o(ot,ct)&&!nt.o(tt,ct)&&Object.defineProperty(tt,ct,{enumerable:!0,get:ot[ct]})},nt.o=(tt,ot)=>Object.prototype.hasOwnProperty.call(tt,ot),nt(676)})().default})})(qrCodeStyling);var qrCodeStylingExports=qrCodeStyling.exports;const QRCodeStyling=getDefaultExportFromCjs$1(qrCodeStylingExports),defaults={margin:0,dotsOptions:{type:"dots"},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}};function QRCode({data:a,size:j,image:_e,config:et,...nt}){const tt=reactExports.useRef(null),ot=reactExports.useMemo(()=>({...defaults,data:a,width:j,height:j,..._e&&{image:_e,imageOptions:{crossOrigin:"anonymous",margin:0}},...et}),[a,j,_e,et]),[ct]=reactExports.useState(new QRCodeStyling(ot));return reactExports.useEffect(()=>{tt.current&&ct.append(tt.current)},[ct,tt]),reactExports.useEffect(()=>{ct&&ct.update(ot)},[a,j,_e,et]),jsxRuntimeExports.jsx(Box,{ref:tt,...nt})}QRCode.propTypes={data:PropTypes.string.isRequired,size:PropTypes.number.isRequired,image:PropTypes.string,config:PropTypes.object};QRCode.defaultProps={image:null,config:{}};function MobileLoginItem({tokenState:a,locale:j,messages:_e}){const{t:et,matchSmallScreen:nt}=useStateContext(),tt="DID Wallet",ot=(_e==null?void 0:_e.scan)||et("scanWithWallet"),ct=et("download"),ft=et("downloadTips"),ht=160,dt=useCreation(()=>["zh","en"].includes?`https://www.didwallet.io/${j}`:"https://www.didwallet.io/en",[j]),yt=useCreation(()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ft," ",jsxRuntimeExports.jsx(Box,{component:"a",href:dt,target:"_blank",rel:"noopener",sx:{color:colors$1.foregroundsFgInteractive,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:ct})]}),[dt,ct,ft]);return jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",gap:1,justifyContent:"space-between",alignItems:nt?"center":"stretch",flexDirection:nt?"column":"row"},children:[jsxRuntimeExports.jsx(Box,{sx:{display:nt?"none":"block"},children:jsxRuntimeExports.jsx(default_1$3,{width:"24px",height:"24px"})}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",flex:1,wordBreak:"break-word",width:nt?186:"auto"},children:[jsxRuntimeExports.jsxs(Typography,{sx:{fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:1},children:[nt?jsxRuntimeExports.jsx(default_1$3,{width:"24px",height:"24px"}):null,tt]}),jsxRuntimeExports.jsx(Typography,{sx:{flex:1,color:colors$1.foregroundsFgMuted,fontSize:"12px"},children:ot}),jsxRuntimeExports.jsx(Box,{sx:{color:colors$1.foregroundsFgMuted,fontSize:"12px",display:nt?"none":"block"},children:yt})]}),jsxRuntimeExports.jsx(QRCode,{data:a.url,size:ht,sx:{p:1.5,borderRadius:2,border:`1px solid ${colors$1.strokeBorderBase}`,backgroundColor:"white",fontSize:0}}),jsxRuntimeExports.jsx(Box,{sx:{color:colors$1.textMuted,fontSize:"12px",display:nt?"block":"none"},children:yt})]})}MobileLoginItem.propTypes={tokenState:PropTypes.object.isRequired,locale:PropTypes.string,messages:PropTypes.object};MobileLoginItem.defaultProps={locale:"en",messages:{}};const data$f={width:256,height:315,body:'<path d="M213.803 167.03c.442 47.58 41.74 63.413 42.197 63.615c-.35 1.116-6.599 22.563-21.757 44.716c-13.104 19.153-26.705 38.235-48.13 38.63c-21.05.388-27.82-12.483-51.888-12.483c-24.061 0-31.582 12.088-51.51 12.871c-20.68.783-36.428-20.71-49.64-39.793c-27-39.033-47.633-110.3-19.928-158.406c13.763-23.89 38.36-39.017 65.056-39.405c20.307-.387 39.475 13.662 51.889 13.662c12.406 0 35.699-16.895 60.186-14.414c10.25.427 39.026 4.14 57.503 31.186c-1.49.923-34.335 20.044-33.978 59.822M174.24 50.199c10.98-13.29 18.369-31.79 16.353-50.199c-15.826.636-34.962 10.546-46.314 23.828c-10.173 11.763-19.082 30.589-16.678 48.633c17.64 1.365 35.66-8.964 46.64-22.262"/>'},data$e={width:256,height:250,body:'<path fill="#161614" d="M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0Zm-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931Zm6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66Zm4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08Zm7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27Zm9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622Zm10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868Zm10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403Z"/>'},data$d={width:256,height:262,body:'<path fill="#4285F4" d="M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622l38.755 30.023l2.685.268c24.659-22.774 38.875-56.282 38.875-96.027"/><path fill="#34A853" d="M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055c-34.523 0-63.824-22.773-74.269-54.25l-1.531.13l-40.298 31.187l-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1"/><path fill="#FBBC05" d="M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82c0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782"/><path fill="#EB4335" d="M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0C79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251"/>'};function IconItem({icon:a,...j}){return jsxRuntimeExports.jsx(IconButton,{...j,sx:{backgroundColor:"white",border:`1px solid ${colors$1.borderBase}`,...j==null?void 0:j.sx},children:jsxRuntimeExports.jsx(Icon,{icon:a,width:"1em",height:"1em"})})}IconItem.propTypes={icon:PropTypes.any.isRequired};function OAuthLoginStack({providerList:a,onLogin:j}){return jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(Icon,{icon:data$m,fontSize:"1.3rem"}),jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Others"})]}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",gap:2},children:a.map(et=>{const nt={[LOGIN_PROVIDER$1.AUTH0]:data$j,[LOGIN_PROVIDER$1.APPLE]:data$f,[LOGIN_PROVIDER$1.GITHUB]:data$e,[LOGIN_PROVIDER$1.GOOGLE]:data$d};return jsxRuntimeExports.jsx(IconItem,{icon:nt[et.provider],onClick:()=>j(et)},et.provider)})})]})}OAuthLoginStack.propTypes={onLogin:PropTypes.func.isRequired,providerList:PropTypes.array.isRequired};function OAuthItem({title:a,icon:j,..._e}){return jsxRuntimeExports.jsxs(ItemWrap,{..._e,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:colors$1.surfacePrimarySubtitle,"& .other-item-icon":{display:"inline-block",transform:"translateX(0)",opacity:"1"}},"& .other-item-icon":{opacity:"0",transform:"translateX(-100%)",transition:"transform 0.2s ease"},..._e==null?void 0:_e.sx},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(Icon,{icon:j,width:"1em",height:"1em",fontSize:"1.5rem",style:{transform:"scale(0.95)"}}),jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"16px",fontWeight:"bold"},children:a})]}),jsxRuntimeExports.jsx(Icon,{className:"other-item-icon",icon:data$p,fontSize:"1.3rem",color:colors$1.primaryBase})]})}OAuthItem.propTypes={title:PropTypes.string.isRequired,icon:PropTypes.string.isRequired};function OAuthLoginList({providerList:a,onLogin:j}){const{t:_e}=useStateContext(),et={[LOGIN_PROVIDER$1.AUTH0]:data$j,[LOGIN_PROVIDER$1.APPLE]:data$f,[LOGIN_PROVIDER$1.GITHUB]:data$e,[LOGIN_PROVIDER$1.GOOGLE]:data$d};return jsxRuntimeExports.jsx(Box,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:a.map(nt=>{if(nt.provider===LOGIN_PROVIDER$1.AUTH0&&a.length===1){const tt=_e("otherAccount");return jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:colors$1.surfacePrimarySubtitle}},onClick:()=>{j(nt)},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(Icon,{icon:data$m,fontSize:"1.3rem"}),jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"16px",fontWeight:"bold"},children:tt})]}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",gap:2},children:[{provider:"auth0"},{provider:"google"},{provider:"apple"}].map(ot=>jsxRuntimeExports.jsx(IconButton,{sx:{backgroundColor:"white",border:`1px solid ${colors$1.borderBase}`},children:jsxRuntimeExports.jsx(Icon,{icon:et[ot.provider],width:"1em",height:"1em"})},ot.provider))})]},nt.provider)}return jsxRuntimeExports.jsx(OAuthItem,{title:OAUTH_PROVIDER[nt.provider],icon:et[nt.provider],onClick:()=>{j(nt)}},nt.provider)})})}OAuthLoginList.propTypes={onLogin:PropTypes.func.isRequired,providerList:PropTypes.array.isRequired};function OAuthLogin({providerList:a,type:j,onSuccess:_e,onError:et,tokenState:nt}){const{extraParams:tt,changeStatus:ot}=useStateContext(),{loginOAuth:ct,logoutOAuth:ft,t:ht,oauthState:dt}=useOAuth(),yt=useMemoizedFn(async Tt=>{const St=tt==null?void 0:tt.sourceAppPid;try{dt.loading=!0,dt.status="scanned";const At=await ct(Tt,{action:nt.action,...tt}),Rt=getCookieOptions({returnDomain:!1});Cookie.remove("connected_did",Rt),Cookie.remove("connected_pk",Rt),Cookie.remove("connected_wallet_os",Rt),At!=null&&At.sessionToken&&(dt.loading=!1,dt.status="succeed",_e({...At,encrypted:!1},It=>It,{sourceAppPid:St,connected_app:getAppId$1(nt.appInfo,nt.memberAppInfo)}))}catch(At){const Rt=getApiErrorMessage(At,ht("loginOAuthFailed"));dt.loading=!1,dt.error=Rt,dt.status="error",await ft({provider:Tt.provider}),et(new Error(Rt))}});return reactExports.useEffect(()=>{ot(dt.status)},[ot,dt.status]),j==="stack"?jsxRuntimeExports.jsx(OAuthLoginStack,{providerList:a,onLogin:yt}):jsxRuntimeExports.jsx(OAuthLoginList,{providerList:a,onLogin:yt})}OAuthLogin.propTypes={providerList:PropTypes.array.isRequired,type:PropTypes.oneOf(["list","stack"]),onSuccess:PropTypes.func.isRequired,onError:PropTypes.func.isRequired,tokenState:PropTypes.object.isRequired};OAuthLogin.defaultProps={type:"stack"};function arraySome$1(a,j){for(var _e=-1,et=a==null?0:a.length;++_e<et;)if(j(a[_e],_e,a))return!0;return!1}var _arraySome=arraySome$1,SetCache$1=_SetCache,arraySome=_arraySome,cacheHas$1=_cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(a,j,_e,et,nt,tt){var ot=_e&COMPARE_PARTIAL_FLAG$5,ct=a.length,ft=j.length;if(ct!=ft&&!(ot&&ft>ct))return!1;var ht=tt.get(a),dt=tt.get(j);if(ht&&dt)return ht==j&&dt==a;var yt=-1,Tt=!0,St=_e&COMPARE_UNORDERED_FLAG$3?new SetCache$1:void 0;for(tt.set(a,j),tt.set(j,a);++yt<ct;){var At=a[yt],Rt=j[yt];if(et)var It=ot?et(Rt,At,yt,j,a,tt):et(At,Rt,yt,a,j,tt);if(It!==void 0){if(It)continue;Tt=!1;break}if(St){if(!arraySome(j,function(Ct,kt){if(!cacheHas$1(St,kt)&&(At===Ct||nt(At,Ct,_e,et,tt)))return St.push(kt)})){Tt=!1;break}}else if(!(At===Rt||nt(At,Rt,_e,et,tt))){Tt=!1;break}}return tt.delete(a),tt.delete(j),Tt}var _equalArrays=equalArrays$2;function mapToArray$1(a){var j=-1,_e=Array(a.size);return a.forEach(function(et,nt){_e[++j]=[nt,et]}),_e}var _mapToArray=mapToArray$1;function setToArray$3(a){var j=-1,_e=Array(a.size);return a.forEach(function(et){_e[++j]=et}),_e}var _setToArray=setToArray$3,Symbol$4=_Symbol,Uint8Array$1=_Uint8Array,eq$5=eq_1$1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray$2=_setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto$2=Symbol$4?Symbol$4.prototype:void 0,symbolValueOf=symbolProto$2?symbolProto$2.valueOf:void 0;function equalByTag$1(a,j,_e,et,nt,tt,ot){switch(_e){case dataViewTag:if(a.byteLength!=j.byteLength||a.byteOffset!=j.byteOffset)return!1;a=a.buffer,j=j.buffer;case arrayBufferTag:return!(a.byteLength!=j.byteLength||!tt(new Uint8Array$1(a),new Uint8Array$1(j)));case boolTag:case dateTag:case numberTag:return eq$5(+a,+j);case errorTag:return a.name==j.name&&a.message==j.message;case regexpTag:case stringTag:return a==j+"";case mapTag:var ct=mapToArray;case setTag:var ft=et&COMPARE_PARTIAL_FLAG$4;if(ct||(ct=setToArray$2),a.size!=j.size&&!ft)return!1;var ht=ot.get(a);if(ht)return ht==j;et|=COMPARE_UNORDERED_FLAG$2,ot.set(a,j);var dt=equalArrays$1(ct(a),ct(j),et,nt,tt,ot);return ot.delete(a),dt;case symbolTag$2:if(symbolValueOf)return symbolValueOf.call(a)==symbolValueOf.call(j)}return!1}var _equalByTag=equalByTag$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$3=Object.prototype,hasOwnProperty$6=objectProto$3.hasOwnProperty;function equalObjects$1(a,j,_e,et,nt,tt){var ot=_e&COMPARE_PARTIAL_FLAG$3,ct=getAllKeys(a),ft=ct.length,ht=getAllKeys(j),dt=ht.length;if(ft!=dt&&!ot)return!1;for(var yt=ft;yt--;){var Tt=ct[yt];if(!(ot?Tt in j:hasOwnProperty$6.call(j,Tt)))return!1}var St=tt.get(a),At=tt.get(j);if(St&&At)return St==j&&At==a;var Rt=!0;tt.set(a,j),tt.set(j,a);for(var It=ot;++yt<ft;){Tt=ct[yt];var Ct=a[Tt],kt=j[Tt];if(et)var Pt=ot?et(kt,Ct,Tt,j,a,tt):et(Ct,kt,Tt,a,j,tt);if(!(Pt===void 0?Ct===kt||nt(Ct,kt,_e,et,tt):Pt)){Rt=!1;break}It||(It=Tt=="constructor")}if(Rt&&!It){var Bt=a.constructor,Kt=j.constructor;Bt!=Kt&&"constructor"in a&&"constructor"in j&&!(typeof Bt=="function"&&Bt instanceof Bt&&typeof Kt=="function"&&Kt instanceof Kt)&&(Rt=!1)}return tt.delete(a),tt.delete(j),Rt}var _equalObjects=equalObjects$1,Stack$1=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray$7=isArray_1,isBuffer=isBufferExports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto$2=Object.prototype,hasOwnProperty$5=objectProto$2.hasOwnProperty;function baseIsEqualDeep$1(a,j,_e,et,nt,tt){var ot=isArray$7(a),ct=isArray$7(j),ft=ot?arrayTag:getTag(a),ht=ct?arrayTag:getTag(j);ft=ft==argsTag?objectTag:ft,ht=ht==argsTag?objectTag:ht;var dt=ft==objectTag,yt=ht==objectTag,Tt=ft==ht;if(Tt&&isBuffer(a)){if(!isBuffer(j))return!1;ot=!0,dt=!1}if(Tt&&!dt)return tt||(tt=new Stack$1),ot||isTypedArray(a)?equalArrays(a,j,_e,et,nt,tt):equalByTag(a,j,ft,_e,et,nt,tt);if(!(_e&COMPARE_PARTIAL_FLAG$2)){var St=dt&&hasOwnProperty$5.call(a,"__wrapped__"),At=yt&&hasOwnProperty$5.call(j,"__wrapped__");if(St||At){var Rt=St?a.value():a,It=At?j.value():j;return tt||(tt=new Stack$1),nt(Rt,It,_e,et,tt)}}return Tt?(tt||(tt=new Stack$1),equalObjects(a,j,_e,et,nt,tt)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike$3=isObjectLike_1;function baseIsEqual$3(a,j,_e,et,nt){return a===j?!0:a==null||j==null||!isObjectLike$3(a)&&!isObjectLike$3(j)?a!==a&&j!==j:baseIsEqualDeep(a,j,_e,et,baseIsEqual$3,nt)}var _baseIsEqual=baseIsEqual$3,Stack=_Stack,baseIsEqual$2=_baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(a,j,_e,et){var nt=_e.length,tt=nt,ot=!et;if(a==null)return!tt;for(a=Object(a);nt--;){var ct=_e[nt];if(ot&&ct[2]?ct[1]!==a[ct[0]]:!(ct[0]in a))return!1}for(;++nt<tt;){ct=_e[nt];var ft=ct[0],ht=a[ft],dt=ct[1];if(ot&&ct[2]){if(ht===void 0&&!(ft in a))return!1}else{var yt=new Stack;if(et)var Tt=et(ht,dt,ft,a,j,yt);if(!(Tt===void 0?baseIsEqual$2(dt,ht,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,et,yt):Tt))return!1}}return!0}var _baseIsMatch=baseIsMatch$1,isObject$9=isObject_1;function isStrictComparable$2(a){return a===a&&!isObject$9(a)}var _isStrictComparable=isStrictComparable$2,isStrictComparable$1=_isStrictComparable,keys$2=keys_1;function getMatchData$1(a){for(var j=keys$2(a),_e=j.length;_e--;){var et=j[_e],nt=a[et];j[_e]=[et,nt,isStrictComparable$1(nt)]}return j}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(a,j){return function(_e){return _e==null?!1:_e[a]===j&&(j!==void 0||a in Object(_e))}}var _matchesStrictComparable=matchesStrictComparable$2,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(a){var j=getMatchData(a);return j.length==1&&j[0][2]?matchesStrictComparable$1(j[0][0],j[0][1]):function(_e){return _e===a||baseIsMatch(_e,a,j)}}var _baseMatches=baseMatches$1,baseIsEqual$1=_baseIsEqual,get$4=get_1,hasIn=hasIn_1,isKey$3=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$3=_toKey,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(a,j){return isKey$3(a)&&isStrictComparable(j)?matchesStrictComparable(toKey$3(a),j):function(_e){var et=get$4(_e,a);return et===void 0&&et===j?hasIn(_e,a):baseIsEqual$1(j,et,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty$1,baseGet$2=_baseGet;function basePropertyDeep$1(a){return function(j){return baseGet$2(j,a)}}var _basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey$2=_isKey,toKey$2=_toKey;function property$1(a){return isKey$2(a)?baseProperty(toKey$2(a)):basePropertyDeep(a)}var property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity$1=identity_1,isArray$6=isArray_1,property=property_1;function baseIteratee$4(a){return typeof a=="function"?a:a==null?identity$1:typeof a=="object"?isArray$6(a)?baseMatchesProperty(a[0],a[1]):baseMatches(a):property(a)}var _baseIteratee=baseIteratee$4,FUNC_ERROR_TEXT$2="Expected a function";function negate$1(a){if(typeof a!="function")throw new TypeError(FUNC_ERROR_TEXT$2);return function(){var j=arguments;switch(j.length){case 0:return!a.call(this);case 1:return!a.call(this,j[0]);case 2:return!a.call(this,j[0],j[1]);case 3:return!a.call(this,j[0],j[1],j[2])}return!a.apply(this,j)}}var negate_1=negate$1,arrayMap$1=_arrayMap,baseIteratee$3=_baseIteratee,basePickBy=_basePickBy,getAllKeysIn=_getAllKeysIn;function pickBy$1(a,j){if(a==null)return{};var _e=arrayMap$1(getAllKeysIn(a),function(et){return[et]});return j=baseIteratee$3(j),basePickBy(a,_e,function(et,nt){return j(et,nt[0])})}var pickBy_1=pickBy$1,baseIteratee$2=_baseIteratee,negate=negate_1,pickBy=pickBy_1;function omitBy(a,j){return pickBy(a,negate(baseIteratee$2(j)))}var omitBy_1=omitBy;const omitBy$1=getDefaultExportFromCjs$1(omitBy_1);function useInterval(a,j){const _e=reactExports.useRef();reactExports.useEffect(()=>{_e.current=a},[a]),reactExports.useEffect(()=>{function et(){_e.current()}if(j!==null){const nt=setInterval(et,j);return()=>clearInterval(nt)}},[j])}var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(a,j)=>{for(var _e in j)__defProp(a,_e,{get:j[_e],enumerable:!0})},__copyProps=(a,j,_e,et)=>{if(j&&typeof j=="object"||typeof j=="function")for(let nt of __getOwnPropNames(j))!__hasOwnProp.call(a,nt)&&nt!==_e&&__defProp(a,nt,{get:()=>j[nt],enumerable:!(et=__getOwnPropDesc(j,nt))||et.enumerable});return a},__toCommonJS=a=>__copyProps(__defProp({},"__esModule",{value:!0}),a),phoenix_exports={};__export(phoenix_exports,{Channel:()=>Channel,LongPoll:()=>LongPoll,Presence:()=>Presence,Serializer:()=>serializer_default,Socket:()=>Socket$1});var phoenix_cjs=__toCommonJS(phoenix_exports),closure=a=>typeof a=="function"?a:function(){return a},globalSelf=typeof self<"u"?self:null,phxWindow=typeof window<"u"?window:null,global$1=globalSelf||phxWindow||global$1,DEFAULT_VSN="2.0.0",SOCKET_STATES={connecting:0,open:1,closing:2,closed:3},DEFAULT_TIMEOUT=1e4,WS_CLOSE_NORMAL=1e3,CHANNEL_STATES={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},CHANNEL_EVENTS={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},TRANSPORTS={longpoll:"longpoll",websocket:"websocket"},XHR_STATES={complete:4},Push=class{constructor(a,j,_e,et){this.channel=a,this.event=j,this.payload=_e||function(){return{}},this.receivedResp=null,this.timeout=et,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(a){this.timeout=a,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(a,j){return this.hasReceived(a)&&j(this.receivedResp.response),this.recHooks.push({status:a,callback:j}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:a,response:j,_ref:_e}){this.recHooks.filter(et=>et.status===a).forEach(et=>et.callback(j))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,a=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=a,this.matchReceive(a)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(a){return this.receivedResp&&this.receivedResp.status===a}trigger(a,j){this.channel.trigger(this.refEvent,{status:a,response:j})}},Timer=class{constructor(a,j){this.callback=a,this.timerCalc=j,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},Channel=class{constructor(a,j,_e){this.state=CHANNEL_STATES.closed,this.topic=a,this.params=closure(j||{}),this.socket=_e,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Push(this,CHANNEL_EVENTS.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Timer(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=CHANNEL_STATES.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(et=>et.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=CHANNEL_STATES.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=CHANNEL_STATES.closed,this.socket.remove(this)}),this.onError(et=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,et),this.isJoining()&&this.joinPush.reset(),this.state=CHANNEL_STATES.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new Push(this,CHANNEL_EVENTS.leave,closure({}),this.timeout).send(),this.state=CHANNEL_STATES.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(CHANNEL_EVENTS.reply,(et,nt)=>{this.trigger(this.replyEventName(nt),et)})}join(a=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=a,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(a){this.on(CHANNEL_EVENTS.close,a)}onError(a){return this.on(CHANNEL_EVENTS.error,j=>a(j))}on(a,j){let _e=this.bindingRef++;return this.bindings.push({event:a,ref:_e,callback:j}),_e}off(a,j){this.bindings=this.bindings.filter(_e=>!(_e.event===a&&(typeof j>"u"||j===_e.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(a,j,_e=this.timeout){if(j=j||{},!this.joinedOnce)throw new Error(`tried to push '${a}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let et=new Push(this,a,function(){return j},_e);return this.canPush()?et.send():(et.startTimeout(),this.pushBuffer.push(et)),et}leave(a=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=CHANNEL_STATES.leaving;let j=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(CHANNEL_EVENTS.close,"leave")},_e=new Push(this,CHANNEL_EVENTS.leave,closure({}),a);return _e.receive("ok",()=>j()).receive("timeout",()=>j()),_e.send(),this.canPush()||_e.trigger("ok",{}),_e}onMessage(a,j,_e){return j}isMember(a,j,_e,et){return this.topic!==a?!1:et&&et!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:a,event:j,payload:_e,joinRef:et}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(a=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=CHANNEL_STATES.joining,this.joinPush.resend(a))}trigger(a,j,_e,et){let nt=this.onMessage(a,j,_e,et);if(j&&!nt)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let tt=this.bindings.filter(ot=>ot.event===a);for(let ot=0;ot<tt.length;ot++)tt[ot].callback(nt,_e,et||this.joinRef())}replyEventName(a){return`chan_reply_${a}`}isClosed(){return this.state===CHANNEL_STATES.closed}isErrored(){return this.state===CHANNEL_STATES.errored}isJoined(){return this.state===CHANNEL_STATES.joined}isJoining(){return this.state===CHANNEL_STATES.joining}isLeaving(){return this.state===CHANNEL_STATES.leaving}},Ajax=class{static request(a,j,_e,et,nt,tt,ot){if(global$1.XDomainRequest){let ct=new global$1.XDomainRequest;return this.xdomainRequest(ct,a,j,et,nt,tt,ot)}else{let ct=new global$1.XMLHttpRequest;return this.xhrRequest(ct,a,j,_e,et,nt,tt,ot)}}static xdomainRequest(a,j,_e,et,nt,tt,ot){return a.timeout=nt,a.open(j,_e),a.onload=()=>{let ct=this.parseJSON(a.responseText);ot&&ot(ct)},tt&&(a.ontimeout=tt),a.onprogress=()=>{},a.send(et),a}static xhrRequest(a,j,_e,et,nt,tt,ot,ct){return a.open(j,_e,!0),a.timeout=tt,a.setRequestHeader("Content-Type",et),a.onerror=()=>ct&&ct(null),a.onreadystatechange=()=>{if(a.readyState===XHR_STATES.complete&&ct){let ft=this.parseJSON(a.responseText);ct(ft)}},ot&&(a.ontimeout=ot),a.send(nt),a}static parseJSON(a){if(!a||a==="")return null;try{return JSON.parse(a)}catch{return console&&console.log("failed to parse JSON response",a),null}}static serialize(a,j){let _e=[];for(var et in a){if(!Object.prototype.hasOwnProperty.call(a,et))continue;let nt=j?`${j}[${et}]`:et,tt=a[et];typeof tt=="object"?_e.push(this.serialize(tt,nt)):_e.push(encodeURIComponent(nt)+"="+encodeURIComponent(tt))}return _e.join("&")}static appendParams(a,j){if(Object.keys(j).length===0)return a;let _e=a.match(/\?/)?"&":"?";return`${a}${_e}${this.serialize(j)}`}},LongPoll=class{constructor(a){this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(a),this.readyState=SOCKET_STATES.connecting,this.poll()}normalizeEndpoint(a){return a.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+TRANSPORTS.websocket),"$1/"+TRANSPORTS.longpoll)}endpointURL(){return Ajax.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(a,j,_e){this.close(a,j,_e),this.readyState=SOCKET_STATES.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===SOCKET_STATES.open||this.readyState===SOCKET_STATES.connecting}poll(){this.ajax("GET","application/json",null,()=>this.ontimeout(),a=>{if(a){var{status:j,token:_e,messages:et}=a;this.token=_e}else j=0;switch(j){case 200:et.forEach(nt=>{setTimeout(()=>this.onmessage({data:nt}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=SOCKET_STATES.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${j}`)}})}send(a){this.currentBatch?this.currentBatch.push(a):this.awaitingBatchAck?this.batchBuffer.push(a):(this.currentBatch=[a],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(a){this.awaitingBatchAck=!0,this.ajax("POST","application/x-ndjson",a.join(`
|
|
471
|
-
`),()=>this.onerror("timeout"),j=>{this.awaitingBatchAck=!1,!j||j.status!==200?(this.onerror(j&&j.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(a,j,_e){for(let nt of this.reqs)nt.abort();this.readyState=SOCKET_STATES.closed;let et=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:a,reason:j,wasClean:_e});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",et)):this.onclose(et)}ajax(a,j,_e,et,nt){let tt,ot=()=>{this.reqs.delete(tt),et()};tt=Ajax.request(a,this.endpointURL(),j,_e,this.timeout,ot,ct=>{this.reqs.delete(tt),this.isActive()&&nt(ct)}),this.reqs.add(tt)}},Presence=class{constructor(a,j={}){let _e=j.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=a,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(_e.state,et=>{let{onJoin:nt,onLeave:tt,onSync:ot}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Presence.syncState(this.state,et,nt,tt),this.pendingDiffs.forEach(ct=>{this.state=Presence.syncDiff(this.state,ct,nt,tt)}),this.pendingDiffs=[],ot()}),this.channel.on(_e.diff,et=>{let{onJoin:nt,onLeave:tt,onSync:ot}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(et):(this.state=Presence.syncDiff(this.state,et,nt,tt),ot())})}onJoin(a){this.caller.onJoin=a}onLeave(a){this.caller.onLeave=a}onSync(a){this.caller.onSync=a}list(a){return Presence.list(this.state,a)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(a,j,_e,et){let nt=this.clone(a),tt={},ot={};return this.map(nt,(ct,ft)=>{j[ct]||(ot[ct]=ft)}),this.map(j,(ct,ft)=>{let ht=nt[ct];if(ht){let dt=ft.metas.map(At=>At.phx_ref),yt=ht.metas.map(At=>At.phx_ref),Tt=ft.metas.filter(At=>yt.indexOf(At.phx_ref)<0),St=ht.metas.filter(At=>dt.indexOf(At.phx_ref)<0);Tt.length>0&&(tt[ct]=ft,tt[ct].metas=Tt),St.length>0&&(ot[ct]=this.clone(ht),ot[ct].metas=St)}else tt[ct]=ft}),this.syncDiff(nt,{joins:tt,leaves:ot},_e,et)}static syncDiff(a,j,_e,et){let{joins:nt,leaves:tt}=this.clone(j);return _e||(_e=function(){}),et||(et=function(){}),this.map(nt,(ot,ct)=>{let ft=a[ot];if(a[ot]=this.clone(ct),ft){let ht=a[ot].metas.map(yt=>yt.phx_ref),dt=ft.metas.filter(yt=>ht.indexOf(yt.phx_ref)<0);a[ot].metas.unshift(...dt)}_e(ot,ft,ct)}),this.map(tt,(ot,ct)=>{let ft=a[ot];if(!ft)return;let ht=ct.metas.map(dt=>dt.phx_ref);ft.metas=ft.metas.filter(dt=>ht.indexOf(dt.phx_ref)<0),et(ot,ft,ct),ft.metas.length===0&&delete a[ot]}),a}static list(a,j){return j||(j=function(_e,et){return et}),this.map(a,(_e,et)=>j(_e,et))}static map(a,j){return Object.getOwnPropertyNames(a).map(_e=>j(_e,a[_e]))}static clone(a){return JSON.parse(JSON.stringify(a))}},serializer_default={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(a,j){if(a.payload.constructor===ArrayBuffer)return j(this.binaryEncode(a));{let _e=[a.join_ref,a.ref,a.topic,a.event,a.payload];return j(JSON.stringify(_e))}},decode(a,j){if(a.constructor===ArrayBuffer)return j(this.binaryDecode(a));{let[_e,et,nt,tt,ot]=JSON.parse(a);return j({join_ref:_e,ref:et,topic:nt,event:tt,payload:ot})}},binaryEncode(a){let{join_ref:j,ref:_e,event:et,topic:nt,payload:tt}=a,ot=this.META_LENGTH+j.length+_e.length+nt.length+et.length,ct=new ArrayBuffer(this.HEADER_LENGTH+ot),ft=new DataView(ct),ht=0;ft.setUint8(ht++,this.KINDS.push),ft.setUint8(ht++,j.length),ft.setUint8(ht++,_e.length),ft.setUint8(ht++,nt.length),ft.setUint8(ht++,et.length),Array.from(j,yt=>ft.setUint8(ht++,yt.charCodeAt(0))),Array.from(_e,yt=>ft.setUint8(ht++,yt.charCodeAt(0))),Array.from(nt,yt=>ft.setUint8(ht++,yt.charCodeAt(0))),Array.from(et,yt=>ft.setUint8(ht++,yt.charCodeAt(0)));var dt=new Uint8Array(ct.byteLength+tt.byteLength);return dt.set(new Uint8Array(ct),0),dt.set(new Uint8Array(tt),ct.byteLength),dt.buffer},binaryDecode(a){let j=new DataView(a),_e=j.getUint8(0),et=new TextDecoder;switch(_e){case this.KINDS.push:return this.decodePush(a,j,et);case this.KINDS.reply:return this.decodeReply(a,j,et);case this.KINDS.broadcast:return this.decodeBroadcast(a,j,et)}},decodePush(a,j,_e){let et=j.getUint8(1),nt=j.getUint8(2),tt=j.getUint8(3),ot=this.HEADER_LENGTH+this.META_LENGTH-1,ct=_e.decode(a.slice(ot,ot+et));ot=ot+et;let ft=_e.decode(a.slice(ot,ot+nt));ot=ot+nt;let ht=_e.decode(a.slice(ot,ot+tt));ot=ot+tt;let dt=a.slice(ot,a.byteLength);return{join_ref:ct,ref:null,topic:ft,event:ht,payload:dt}},decodeReply(a,j,_e){let et=j.getUint8(1),nt=j.getUint8(2),tt=j.getUint8(3),ot=j.getUint8(4),ct=this.HEADER_LENGTH+this.META_LENGTH,ft=_e.decode(a.slice(ct,ct+et));ct=ct+et;let ht=_e.decode(a.slice(ct,ct+nt));ct=ct+nt;let dt=_e.decode(a.slice(ct,ct+tt));ct=ct+tt;let yt=_e.decode(a.slice(ct,ct+ot));ct=ct+ot;let Tt=a.slice(ct,a.byteLength),St={status:yt,response:Tt};return{join_ref:ft,ref:ht,topic:dt,event:CHANNEL_EVENTS.reply,payload:St}},decodeBroadcast(a,j,_e){let et=j.getUint8(1),nt=j.getUint8(2),tt=this.HEADER_LENGTH+2,ot=_e.decode(a.slice(tt,tt+et));tt=tt+et;let ct=_e.decode(a.slice(tt,tt+nt));tt=tt+nt;let ft=a.slice(tt,a.byteLength);return{join_ref:null,ref:null,topic:ot,event:ct,payload:ft}}},Socket$1=class{constructor(j,_e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=_e.timeout||DEFAULT_TIMEOUT,this.transport=_e.transport||global$1.WebSocket||LongPoll,this.establishedConnections=0,this.defaultEncoder=serializer_default.encode.bind(serializer_default),this.defaultDecoder=serializer_default.decode.bind(serializer_default),this.closeWasClean=!1,this.binaryType=_e.binaryType||"arraybuffer",this.connectClock=1,this.transport!==LongPoll?(this.encode=_e.encode||this.defaultEncoder,this.decode=_e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let et=null;phxWindow&&phxWindow.addEventListener&&(phxWindow.addEventListener("pagehide",nt=>{this.conn&&(this.disconnect(),et=this.connectClock)}),phxWindow.addEventListener("pageshow",nt=>{et===this.connectClock&&(et=null,this.connect())})),this.heartbeatIntervalMs=_e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=nt=>_e.rejoinAfterMs?_e.rejoinAfterMs(nt):[1e3,2e3,5e3][nt-1]||1e4,this.reconnectAfterMs=nt=>_e.reconnectAfterMs?_e.reconnectAfterMs(nt):[10,50,100,150,200,250,500,1e3,2e3][nt-1]||5e3,this.logger=_e.logger||null,this.longpollerTimeout=_e.longpollerTimeout||2e4,this.params=closure(_e.params||{}),this.endPoint=`${j}/${TRANSPORTS.websocket}`,this.vsn=_e.vsn||DEFAULT_VSN,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Timer(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return LongPoll}replaceTransport(j){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=j}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let j=Ajax.appendParams(Ajax.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return j.charAt(0)!=="/"?j:j.charAt(1)==="/"?`${this.protocol()}:${j}`:`${this.protocol()}://${location.host}${j}`}disconnect(j,_e,et){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(j,_e,et)}connect(j){j&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=closure(j)),!this.conn&&(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=_e=>this.onConnError(_e),this.conn.onmessage=_e=>this.onConnMessage(_e),this.conn.onclose=_e=>this.onConnClose(_e))}log(j,_e,et){this.logger(j,_e,et)}hasLogger(){return this.logger!==null}onOpen(j){let _e=this.makeRef();return this.stateChangeCallbacks.open.push([_e,j]),_e}onClose(j){let _e=this.makeRef();return this.stateChangeCallbacks.close.push([_e,j]),_e}onError(j){let _e=this.makeRef();return this.stateChangeCallbacks.error.push([_e,j]),_e}onMessage(j){let _e=this.makeRef();return this.stateChangeCallbacks.message.push([_e,j]),_e}ping(j){if(!this.isConnected())return!1;let _e=this.makeRef(),et=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:_e});let nt=this.onMessage(tt=>{tt.ref===_e&&(this.off([nt]),j(Date.now()-et))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,j])=>j())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),WS_CLOSE_NORMAL,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(j,_e,et){if(!this.conn)return j&&j();this.waitForBufferDone(()=>{this.conn&&(_e?this.conn.close(_e,et||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),j&&j()})})}waitForBufferDone(j,_e=1){if(_e===5||!this.conn||!this.conn.bufferedAmount){j();return}setTimeout(()=>{this.waitForBufferDone(j,_e+1)},150*_e)}waitForSocketClosed(j,_e=1){if(_e===5||!this.conn||this.conn.readyState===SOCKET_STATES.closed){j();return}setTimeout(()=>{this.waitForSocketClosed(j,_e+1)},150*_e)}onConnClose(j){let _e=j&&j.code;this.hasLogger()&&this.log("transport","close",j),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&_e!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,et])=>et(j))}onConnError(j){this.hasLogger()&&this.log("transport",j);let _e=this.transport,et=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,nt])=>{nt(j,_e,et)}),(_e===this.transport||et>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(j=>{j.isErrored()||j.isLeaving()||j.isClosed()||j.trigger(CHANNEL_EVENTS.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case SOCKET_STATES.connecting:return"connecting";case SOCKET_STATES.open:return"open";case SOCKET_STATES.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(j){this.off(j.stateChangeRefs),this.channels=this.channels.filter(_e=>_e.joinRef()!==j.joinRef())}off(j){for(let _e in this.stateChangeCallbacks)this.stateChangeCallbacks[_e]=this.stateChangeCallbacks[_e].filter(([et])=>j.indexOf(et)===-1)}channel(j,_e={}){let et=new Channel(j,_e,this);return this.channels.push(et),et}push(j){if(this.hasLogger()){let{topic:_e,event:et,payload:nt,ref:tt,join_ref:ot}=j;this.log("push",`${_e} ${et} (${ot}, ${tt})`,nt)}this.isConnected()?this.encode(j,_e=>this.conn.send(_e)):this.sendBuffer.push(()=>this.encode(j,_e=>this.conn.send(_e)))}makeRef(){let j=this.ref+1;return j===this.ref?this.ref=0:this.ref=j,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(j=>j()),this.sendBuffer=[])}onConnMessage(j){this.decode(j.data,_e=>{let{topic:et,event:nt,payload:tt,ref:ot,join_ref:ct}=_e;ot&&ot===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${tt.status||""} ${et} ${nt} ${ot&&"("+ot+")"||""}`,tt);for(let ft=0;ft<this.channels.length;ft++){const ht=this.channels[ft];ht.isMember(et,nt,tt,ct)&&ht.trigger(nt,tt,ot,ct)}for(let ft=0;ft<this.stateChangeCallbacks.message.length;ft++){let[,ht]=this.stateChangeCallbacks.message[ft];ht(_e)}})}leaveOpenTopic(j){let _e=this.channels.find(et=>et.topic===j&&(et.isJoined()||et.isJoining()));_e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${j}"`),_e.leave())}},browser$5={exports:{}},s=1e3,m=s*60,h=m*60,d=h*24,w=d*7,y=d*365.25,ms=function(a,j){j=j||{};var _e=typeof a;if(_e==="string"&&a.length>0)return parse$e(a);if(_e==="number"&&isFinite(a))return j.long?fmtLong(a):fmtShort(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))};function parse$e(a){if(a=String(a),!(a.length>100)){var j=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(j){var _e=parseFloat(j[1]),et=(j[2]||"ms").toLowerCase();switch(et){case"years":case"year":case"yrs":case"yr":case"y":return _e*y;case"weeks":case"week":case"w":return _e*w;case"days":case"day":case"d":return _e*d;case"hours":case"hour":case"hrs":case"hr":case"h":return _e*h;case"minutes":case"minute":case"mins":case"min":case"m":return _e*m;case"seconds":case"second":case"secs":case"sec":case"s":return _e*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return _e;default:return}}}}function fmtShort(a){var j=Math.abs(a);return j>=d?Math.round(a/d)+"d":j>=h?Math.round(a/h)+"h":j>=m?Math.round(a/m)+"m":j>=s?Math.round(a/s)+"s":a+"ms"}function fmtLong(a){var j=Math.abs(a);return j>=d?plural(a,j,d,"day"):j>=h?plural(a,j,h,"hour"):j>=m?plural(a,j,m,"minute"):j>=s?plural(a,j,s,"second"):a+" ms"}function plural(a,j,_e,et){var nt=j>=_e*1.5;return Math.round(a/_e)+" "+et+(nt?"s":"")}const ms$1=getDefaultExportFromCjs$1(ms);function setup(a){_e.debug=_e,_e.default=_e,_e.coerce=ft,_e.disable=tt,_e.enable=nt,_e.enabled=ot,_e.humanize=ms,_e.destroy=ht,Object.keys(a).forEach(dt=>{_e[dt]=a[dt]}),_e.names=[],_e.skips=[],_e.formatters={};function j(dt){let yt=0;for(let Tt=0;Tt<dt.length;Tt++)yt=(yt<<5)-yt+dt.charCodeAt(Tt),yt|=0;return _e.colors[Math.abs(yt)%_e.colors.length]}_e.selectColor=j;function _e(dt){let yt,Tt=null,St,At;function Rt(...It){if(!Rt.enabled)return;const Ct=Rt,kt=Number(new Date),Pt=kt-(yt||kt);Ct.diff=Pt,Ct.prev=yt,Ct.curr=kt,yt=kt,It[0]=_e.coerce(It[0]),typeof It[0]!="string"&&It.unshift("%O");let Bt=0;It[0]=It[0].replace(/%([a-zA-Z%])/g,(jt,zt)=>{if(jt==="%%")return"%";Bt++;const Gt=_e.formatters[zt];if(typeof Gt=="function"){const tn=It[Bt];jt=Gt.call(Ct,tn),It.splice(Bt,1),Bt--}return jt}),_e.formatArgs.call(Ct,It),(Ct.log||_e.log).apply(Ct,It)}return Rt.namespace=dt,Rt.useColors=_e.useColors(),Rt.color=_e.selectColor(dt),Rt.extend=et,Rt.destroy=_e.destroy,Object.defineProperty(Rt,"enabled",{enumerable:!0,configurable:!1,get:()=>Tt!==null?Tt:(St!==_e.namespaces&&(St=_e.namespaces,At=_e.enabled(dt)),At),set:It=>{Tt=It}}),typeof _e.init=="function"&&_e.init(Rt),Rt}function et(dt,yt){const Tt=_e(this.namespace+(typeof yt>"u"?":":yt)+dt);return Tt.log=this.log,Tt}function nt(dt){_e.save(dt),_e.namespaces=dt,_e.names=[],_e.skips=[];let yt;const Tt=(typeof dt=="string"?dt:"").split(/[\s,]+/),St=Tt.length;for(yt=0;yt<St;yt++)Tt[yt]&&(dt=Tt[yt].replace(/\*/g,".*?"),dt[0]==="-"?_e.skips.push(new RegExp("^"+dt.slice(1)+"$")):_e.names.push(new RegExp("^"+dt+"$")))}function tt(){const dt=[..._e.names.map(ct),..._e.skips.map(ct).map(yt=>"-"+yt)].join(",");return _e.enable(""),dt}function ot(dt){if(dt[dt.length-1]==="*")return!0;let yt,Tt;for(yt=0,Tt=_e.skips.length;yt<Tt;yt++)if(_e.skips[yt].test(dt))return!1;for(yt=0,Tt=_e.names.length;yt<Tt;yt++)if(_e.names[yt].test(dt))return!0;return!1}function ct(dt){return dt.toString().substring(2,dt.toString().length-2).replace(/\.\*\?$/,"*")}function ft(dt){return dt instanceof Error?dt.stack||dt.message:dt}function ht(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return _e.enable(_e.load()),_e}var common$1=setup;(function(a,j){var _e={};j.formatArgs=nt,j.save=tt,j.load=ot,j.useColors=et,j.storage=ct(),j.destroy=(()=>{let ht=!1;return()=>{ht||(ht=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),j.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function et(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let ht;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(ht=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(ht[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function nt(ht){if(ht[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+ht[0]+(this.useColors?"%c ":" ")+"+"+a.exports.humanize(this.diff),!this.useColors)return;const dt="color: "+this.color;ht.splice(1,0,dt,"color: inherit");let yt=0,Tt=0;ht[0].replace(/%[a-zA-Z%]/g,St=>{St!=="%%"&&(yt++,St==="%c"&&(Tt=yt))}),ht.splice(Tt,0,dt)}j.log=console.debug||console.log||(()=>{});function tt(ht){try{ht?j.storage.setItem("debug",ht):j.storage.removeItem("debug")}catch{}}function ot(){let ht;try{ht=j.storage.getItem("debug")}catch{}return!ht&&typeof process$1$1<"u"&&"env"in process$1$1&&(ht=_e.DEBUG),ht}function ct(){try{return localStorage}catch{}}a.exports=common$1(j);const{formatters:ft}=a.exports;ft.j=function(ht){try{return JSON.stringify(ht)}catch(dt){return"[UnexpectedJSONParseError]: "+dt.message}}})(browser$5,browser$5.exports);var browserExports=browser$5.exports;const debug$4=browserExports;var logger=(a,j=!1)=>{const _e=debug$4(["@arcblock/ws",a].join(":"));return{debug:_e,warn:_e,info:_e,trace:j?_e:console.error,error:j?_e:console.error}};const createLogger=logger;var base$2=(a,j,_e)=>class extends a{constructor(nt,tt={}){super(nt,{transport:_e,...tt}),this._logger=createLogger("client",tt.silent),this.emitter=new j,this.onOpen(()=>{this._logger.debug("socket open",nt)}),this.onClose(()=>{this._logger.debug("socket close",nt)}),this.onError(ot=>{this._logger.error("socket error",ot.error)}),this.onMessage(ot=>{this._logger.debug("socket message",ot)})}on(nt,tt,ot={}){this.ensureJoinChannel(nt,ot),this.emitter.on(nt,tt)}off(nt,tt){tt?this.emitter.off(nt,tt):this.emitter.removeAllListeners(nt),this.ensureLeaveChannel(nt)}disconnect(nt,tt,ot){this.emitter.eventNames().forEach(ct=>{this.emitter.removeAllListeners(ct)}),super.disconnect(nt,tt,ot)}ensureJoinChannel(nt,tt={}){if(this.emitter.listenerCount(nt)>0)return;const ct=this.channel(nt,tt);ct.join().receive("ok",ft=>{this._logger.debug("join success",{topic:nt,message:ft})}).receive("error",ft=>{this._logger.error("join error",{topic:nt,error:ft})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:nt})}),ct.on(nt,({status:ft,response:ht})=>{ft==="ok"?this.emitter.emit(nt,ht):this._logger.debug("response error",{topic:nt,status:ft,data:ht})})}ensureLeaveChannel(nt){if(this.emitter.listenerCount(nt)>0)return;const ot=this.channels.find(ct=>ct.topic===nt);ot&&(this.remove(ot),ot.leave().receive("ok",ct=>{this._logger.debug("leave success",{topic:nt,message:ct})}).receive("error",ct=>{this._logger.error("leave error",{topic:nt,err:ct})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:nt})}),ot.off(nt))}subscribe(nt,tt={}){let ot=this.channels.find(ct=>ct.topic===nt);return ot||(ot=this.channel(nt,tt),ot.join().receive("ok",ct=>{this._logger.debug("join success",{topic:nt,message:ct})}).receive("error",ct=>{this._logger.error("join error",{topic:nt,error:ct})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:nt})}),ot)}unsubscribe(nt){this.ensureLeaveChannel(nt)}};const EventEmitter$3=eventemitter3Exports,{Socket}=phoenix_cjs,createClient=base$2;var browser$4=createClient(Socket,EventEmitter$3);const WsClient$1=browser$4;var browser$3={WsClient:WsClient$1};function usePageShow(a){const j=reactExports.useRef(a);reactExports.useEffect(()=>{j.current=a},[a]),reactExports.useEffect(()=>{const _e=et=>{!document.hidden&&j.current&&j.current(et)};return document.addEventListener("visibilitychange",_e),()=>{document.removeEventListener("visibilitychange",_e)}},[])}function getSocketHost(a){const j=a||window.location.href;return new URL(j).host}function getExtraHeaders(a){const j={},_e=a||window.location.href;if(_e){const{hostname:et,protocol:nt,port:tt}=new URL(_e);j["x-real-hostname"]=et,j["x-real-port"]=tt,j["x-real-protocol"]=nt.endsWith(":")?nt.substring(0,nt.length-1):nt}return j}const fns={};function createTokenFn({action:a,prefix:j,checkFn:_e,extraParams:et,baseUrl:nt}){const tt=`${j}/token?${stringifyQuery$1(et)}`;return fns[tt]||(fns[tt]=async function(){var yt,Tt;const ct=+new Date,ft=await _e(tt,{headers:getExtraHeaders(nt)}),ht=+new Date;if(ht-ct<500&&await sleep$1(500-(ht-ct)),(yt=ft==null?void 0:ft.data)!=null&&yt.token)return ft.data;if((Tt=ft==null?void 0:ft.data)!=null&&Tt.error)throw new Error(ft.data.error);const dt=isUrl(j)?j:`${nt}${j}`;throw new Error(`Error generating ${a} qrcode from: ${dt}`)}),fns[tt]}const parseExistingSession=()=>{try{const j=new URL(window.location.href).searchParams.get("__connect_url__");if(!j)return null;const _e=decodeConnectUrl(j);return{token:parseTokenFromConnectUrl(_e),url:_e}}catch(a){return{error:a}}},getAppId=()=>get$6(globalThis,"blocklet.appPid")||get$6(globalThis,"blocklet.appId")||get$6(globalThis,"env.appId")||"",getAppPrefix=()=>(get$6(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(RELAY_SOCKET_PREFIX,""),getRelayChannel=a=>`relay:${getAppId()}:${a}`,getRelayProtocol=()=>window.location.protocol==="https:"?"wss:":"ws:",isSameOrigin=a=>!a||new URL(a).origin===window.location.origin,isSessionEnded=a=>["succeed","error","timeout","busy"].includes(a);function useToken({action:a,checkFn:j,checkInterval:_e,checkTimeout:et,extraParams:nt,locale:tt,prefix:ot,tokenKey:ct,encKey:ft,onError:ht,onSuccess:dt,baseUrl:yt,autoConnect:Tt=!0,forceConnected:St=!0,saveConnect:At=!0,useSocket:Rt=!0,provider:It="wallet"}){const Ct=useReactive({checking:!1,loading:!1,token:"",url:"",store:null,status:"created",error:"",checkCount:0,mfaCode:0,appInfo:null,memberAppInfo:null,connectedDid:"",saveConnect:!1,inExistingSession:!1,nextWorkflow:"",baseUrl:yt,prefix:`${ot}/${a}`,extraParams:omitBy$1(nt,isNil$1),checkFn:j,results:{},action:a,provider:It}),kt=reactExports.useRef(null),Pt=translations$3[tt]||translations$3.en,Bt=useCreation(()=>parseExistingSession(),[]),Kt=Math.ceil(et/_e),jt=useReactive({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:zt,decrypt:Gt}=useSecurity(),tn=useBrowser(),hn=getVisitorId$2(),wt=reactExports.useRef(null),rt=reactExports.useRef(null),st={...Ct.extraParams,locale:tt,[ct]:Ct.token||(Bt==null?void 0:Bt.token),provider:Ct.provider},ut=async()=>{if(!(Bt!=null&&Bt.token&&(Bt==null?void 0:Bt.token)===Ct.token)){try{st[ct]&&Ct.status==="created"&&await Ct.checkFn(`${Ct.prefix}/timeout?${stringifyQuery$1(st)}`,{headers:getExtraHeaders(Ct.baseUrl)})}catch{}try{Ct.token&&rt.current&&(await wt.current.unsubscribe(getRelayChannel(Ct.token)),rt.current=null)}catch{}}},pt=useMemoizedFn((...Lt)=>{const Ht={[ft]:zt,...Ct.extraParams,locale:tt,forceConnected:St,autoConnect:Tt&&!tn.wallet&&!jt.cancelWhenScannedCounter&&["ios","android"].includes(Cookie.get("connected_wallet_os")),provider:Ct.provider};hn&&(Ht.visitorId=hn);const Ot=omit$1(kt.current||{},["sourceAppPid","verbose"]);return Object.keys(Ot).forEach(Ft=>{(!Ht[Ft]||Ft===ft&&Ot[Ft])&&(Ht[Ft]=Ot[Ft])}),Bt!=null&&Bt.token&&!Ht.sourceToken&&(Ht.sourceToken=Bt==null?void 0:Bt.token),createTokenFn({action:a,prefix:Ct.prefix,baseUrl:Ct.baseUrl,checkFn:Ct.checkFn,extraParams:Ht})(...Lt)}),mt=useMemoizedFn(async(Lt=!0)=>{Lt&&ut();try{Ct.loading=!0,Ct.token="",Ct.url="",Ct.store=null,Ct.extraParams=omitBy$1(nt,isNil$1),await sleep$1();const Ht=await pt(),Ot=Ht.extra||{};Ct.loading=!1,Ct.token=Ht.token,Ct.url=Ht.url,Ct.status="created",Ct.error="",Ct.checkCount=0,Ct.appInfo=Ht.appInfo,Ct.memberAppInfo=Ht.memberAppInfo,Ct.connectedDid=Ot.connectedDid,Ct.saveConnect=Ot.saveConnect}catch(Ht){Ct.loading=!1,Ct.status="error",Ct.error=`${Pt.generateError}: ${Ht.message}`}}),$t=()=>{jt.cancelWhenScannedCounter++};reactExports.useEffect(()=>{jt.cancelWhenScannedCounter>0&&(nt.nw?ht(new Error(Pt.retryForbidden)):mt())},[jt.cancelWhenScannedCounter]),reactExports.useEffect(()=>(Rt&&isSameOrigin(Ct.baseUrl)&&getAppId()?(!wt.current||wt.current.isConnected()===!1||wt.current.baseUrl!==Ct.baseUrl)&&(wt.current=new browser$3.WsClient(`${getRelayProtocol()}//${getSocketHost(Ct.baseUrl)}${getAppPrefix()}${RELAY_SOCKET_PREFIX}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),wt.current.baseUrl=Ct.baseUrl,wt.current.onOpen(()=>{jt.isSocketAvailable=!0}),wt.current.connect()):jt.isSocketAvailable&&(jt.isSocketAvailable=!1),()=>{wt.current&&(wt.current.disconnect(),wt.current=null)}),[Ct.baseUrl]);const xt=()=>!Ct.token||Ct.loading||isSessionEnded(Ct.status)?null:_e,vt=reactExports.useRef(null);reactExports.useEffect(()=>{vt.current={state:Ct,params:st}}),reactExports.useEffect(()=>()=>{const{state:Lt,params:Ht}=vt.current;Lt.status==="created"&&Ht[ct]&&Lt.checkFn(`${Lt.prefix}/timeout?${stringifyQuery$1(Ht)}`,{headers:getExtraHeaders(Lt.baseUrl)})},[]);const it=async(Lt=!1)=>{var Ht;if(Ct.checking||(Ct.status==="created"&&Ct.checkCount++,jt.isSocketAvailable&&!Lt))return null;try{Ct.checking=!0;const Ot=await Ct.checkFn(`${Ct.prefix}/status?${stringifyQuery$1(st)}`,{headers:getExtraHeaders(Ct.baseUrl)}),{status:Jt,error:Ft,mfaCode:Zt=0}=Ot.data;if(Ct.store=Ot.data,Ct.mfaCode=Zt,Ct.checking=!1,Ct.status=Jt,Jt==="error"&&Ft){const nn=new Error(Ft);throw nn.response=Ot,nn}return Ot.data}catch(Ot){const{response:Jt}=Ot;if(Jt!=null&&Jt.status){st[ct]&&Ct.checkFn(`${Ct.prefix}/timeout?${stringifyQuery$1(st)}`,{headers:getExtraHeaders(Ct.baseUrl)});const Ft=(Ht=Jt==null?void 0:Jt.data)!=null&&Ht.error?Jt.data.error:Ot.message,Zt=new Error(Ft);Zt.code=Jt.status,Ct.status="error",Ct.checking=!1,Ct.error=Ft,ht(Zt,Ct==null?void 0:Ct.store,Gt)}else Ct.status="error",Ct.checking=!1,Ct.error=Pt.generateError}return null},bt=async()=>{try{if(Bt.error)throw Bt.error;Ct.loading=!0,Ct.token=Bt.token,Ct.url=Bt.url,Ct.inExistingSession=!0;let Lt=await it();if((["scanned"].includes(Lt==null?void 0:Lt.status)||(Lt==null?void 0:Lt.sourceToken)===(Bt==null?void 0:Bt.token))&&(await mt(!1),Lt=await it()),kt.current=(Lt==null?void 0:Lt.extraParams)||null,Lt!=null&&Lt.status&&!["created"].includes(Lt==null?void 0:Lt.status))throw new Error(`${Pt.invalidSessionStatus} [${Lt.status}]`)}catch(Lt){Ct.status="error",Ct.error=Lt.message,ht(Lt,Ct==null?void 0:Ct.store,Gt)}finally{Ct.loading=!1}};reactExports.useEffect(()=>{var Lt;if(!Ct.token&&!Ct.store&&!Ct.loading&&!Ct.error)if(Bt)bt();else{mt(!1);return}if(Ct.status!=="timeout"&&Ct.checkCount>Kt){Ct.status="timeout",ut();return}if(Ct.status==="succeed"&&!jt.onSuccessCalled){const Ht=getConnectedInfo({...Ct.store,appInfo:Ct.appInfo,memberAppInfo:Ct.memberAppInfo});if(isSameOrigin(Ct.baseUrl)&&At&&Ct.saveConnect&&Ct.store.did&&updateConnectedInfo(Ht,!0),Ct.store){const{nextWorkflow:Ot}=Ct.store;if(Ot)try{const Jt=parseNextWorkflow(Ot,ct);Ct.nextWorkflow=(Jt==null?void 0:Jt.nextWorkflow)||Ot,Object.assign(Ct,Jt),Ct.store=null,Ct.error="",Ct.url="",Ct.appInfo=null,Ct.memberAppInfo=null,Ct.checkCount=0,Ct.status="scanned",Ct.results={...Ct.results,[Ct.token]:Ct.store},Ct.checkFn=createAxios({baseURL:Jt.baseUrl,timeout:8e3}).get,it()}catch(Jt){console.error(`Invalid nextWorkflow: ${Ot}`,Jt),Ct.status="error",Ct.error=`Invalid nextWorkflow: ${Ot}: ${Jt.message}`}else if(Ct.nextWorkflow&&(Ct.nextWorkflow="",Ct.url=""),typeof dt=="function"){const Jt=Object.values({...Ct.results,[Ct.token]:Ct.store});jt.onSuccessCalled=!0;const Ft=Jt.length>1?Jt:Jt[0],Zt=cloneDeep$1(Ft);dt(Zt,Gt,{sourceAppPid:nt==null?void 0:nt.sourceAppPid,...Ht})}}return}if((Lt=Ct.store)!=null&&Lt.nextWorkflow){const{nextWorkflow:Ht}=Ct.store;try{const Ot=parseNextWorkflow(Ht,ct);Ct.nextWorkflow=(Ot==null?void 0:Ot.nextWorkflow)||Ht,Object.assign(Ct,Ot),Ct.store=null,Ct.error="",Ct.url="",Ct.appInfo=null,Ct.memberAppInfo=null,Ct.checkCount=0,Ct.status="scanned",Ct.results={...Ct.results,[Ct.token]:Ct.store},Ct.checkFn=createAxios({baseURL:Ot.baseUrl,timeout:8e3}).get,it()}catch(Ot){console.error(`Invalid nextWorkflow: ${Ht}`,Ot),Ct.status="error",Ct.error=`Invalid nextWorkflow: ${Ht}: ${Ot.message}`}}});const Mt=reactExports.useRef(0);return reactExports.useEffect(()=>{if(Ct.token&&jt.isSocketAvailable&&wt.current){let Lt=!1;rt.current?rt.current.token!==Ct.token&&(wt.current.unsubscribe(getRelayChannel(rt.current.token)),Lt=!0):Lt=!0,Lt&&(rt.current=wt.current.subscribe(getRelayChannel(Ct.token)),Mt.current=0,rt.current.token=Ct.token,rt.current.on("updated",({response:Ht})=>{const Ot=+new Date(Ht.updatedAt);if(Ot<=Mt.current){console.warn("Ignore outdated message",Ht);return}Mt.current=Ot;let{status:Jt,error:Ft}=Ht;Jt==="forbidden"&&(Ft=Pt.forbidden,Jt="error"),Ct.status=Jt,Ct.mfaCode=Ht.mfaCode||0,Ct.store=Ht,Ct.error=Ft,Ft&&ht(new Error(Ft),Ct==null?void 0:Ct.store,Gt)}))}},[Ct.token,jt.isSocketAvailable,wt.current]),useInterval(it,xt()),usePageShow(()=>{jt.isSocketAvailable&&Ct.token&&isSessionEnded(Ct.status)===!1&&it(!0)}),{state:Ct,generate:mt,cancelWhenScanned:$t}}function WebviewLoginItem({tokenState:a,locale:j,tokenKey:_e}){const{t:et,isWalletWebview:nt,connectState:tt}=useStateContext(),ot=et(nt?"openDidConnect":"openInWallet"),ct=useCreation(()=>{if(!a.url)return"";const dt=new URL(window.location.href);dt.searchParams.set("tokenKey",a.token);const yt=new URL(a.url);return yt.searchParams.set("callback",encodeURIComponent(dt)),yt.searchParams.set("callback_delay",1500),yt.searchParams.set("locale",j),yt.href.replace(/^https?:\/\//,"abt://")},[_e,a.token]),ft=useMemoizedFn(()=>{default_1$4.call("authAction",{action:"auth",deepLink:ct})}),ht={};return nt||(ht.component="a",ht.href=ct),useMount(()=>{tt.autoActiveWebview&&ct&&(tt.autoActiveWebview=!1,ft())}),jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:colors$1.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...ht,onClick:nt?ft:noop$7,children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(default_1$3,{width:"24px",height:"24px"}),jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"14px",fontWeight:500},children:ot})]}),jsxRuntimeExports.jsx(Icon,{icon:data$p,fontSize:"1.3rem",color:colors$1.primaryBase})]})}WebviewLoginItem.propTypes={tokenState:PropTypes.object.isRequired,locale:PropTypes.string,tokenKey:PropTypes.string};WebviewLoginItem.defaultProps={locale:"en",tokenKey:"_t_"};const data$c={width:24,height:24,body:'<path fill="currentColor" d="M12 20q-3.35 0-5.675-2.325T4 12q0-3.35 2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.713T19 4q.425 0 .713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.713-.288T13 10q0-.425.288-.713T14 9h3.2q-.8-1.4-2.188-2.2T12 6Q9.5 6 7.75 7.75T6 12q0 2.5 1.75 4.25T12 18q1.7 0 3.113-.863t2.187-2.312q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20Z"/>'};function RefreshOverlay({onRefresh:a,...j}){const _e=et=>{et.stopPropagation(),a()};return jsxRuntimeExports.jsx(Box,{...j,onClick:_e,sx:{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(255, 255, 255, 0.75)",cursor:"pointer",...j.sx},children:jsxRuntimeExports.jsx(Box,{sx:{backgroundColor:colors$1.foregroundsFgInteractive,borderRadius:"100%",fontSize:0},children:jsxRuntimeExports.jsx(Icon,{icon:data$c,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})})})}RefreshOverlay.propTypes={onRefresh:PropTypes.func.isRequired};const busyStatusList=["scanned","succeed","error","busy"];function DIDWalletConnect({onSuccess:a,onError:j,action:_e,prefix:et,checkFn:nt,checkInterval:tt,checkTimeout:ot,locale:ct,tokenKey:ft,encKey:ht,baseUrl:dt,autoConnect:yt,forceConnected:Tt,saveConnect:St,useSocket:At,allowWallet:Rt,provider:It,webWalletUrl:Ct,onRecreateSession:kt,onClose:Pt,messages:Bt,enabledConnectTypes:Kt}){var dn,Mn,yn,An;if(typeof nt!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const jt=reactExports.useContext(SessionContext$1),{connectState:zt,extraParams:Gt,staticState:tn,changeStatus:hn,isWalletWebview:wt,matchSmallScreen:rt,t:st}=useStateContext(),ut=useBrowser(),pt=detectWalletExtension(),{setBaseUrl:mt,oauthState:$t,getOAuthConfigList:xt}=useOAuth(),vt=useCreation(()=>{var Tn;return It||(Gt==null?void 0:Gt.provider)||((Tn=jt==null?void 0:jt.session)==null?void 0:Tn.provider)||"wallet"},[Gt==null?void 0:Gt.provider,(dn=jt==null?void 0:jt.session)==null?void 0:dn.provider]),it=getWalletDid((Mn=jt==null?void 0:jt.session)==null?void 0:Mn.user);reactExports.useEffect(()=>{mt(dt)},[dt]);const{state:bt,generate:Mt,cancelWhenScanned:Lt}=useToken({action:_e,baseUrl:dt,checkFn:nt,checkInterval:tt,checkTimeout:ot,extraParams:Gt,prefix:et,onError:j,onSuccess:a,locale:ct,tokenKey:ft,encKey:ht,autoConnect:yt,forceConnected:Tt===!0?it||!0:Tt,saveConnect:St,useSocket:At,allowWallet:Rt,provider:vt}),[Ht,Ot]=reactExports.useState([]);useAsyncEffect(async()=>{const Tn=await xt({sourceAppPid:zt==null?void 0:zt.sourceAppPid});Ot(Tn)},[zt==null?void 0:zt.sourceAppPid]);const Jt=usePrevious(zt==null?void 0:zt.sourceAppPid);useUpdateEffect(()=>{isUndefined$2(Jt)||Mt()},[zt==null?void 0:zt.sourceAppPid]);const Ft=useCreation(()=>busyStatusList.includes($t.status)||busyStatusList.includes(bt.status),[bt.status,$t.status]);reactExports.useEffect(()=>{busyStatusList.includes($t.status)?hn($t.status):busyStatusList.includes(bt.status)?hn(bt.status):hn("created")},[hn,bt.status,$t.status]);const Zt=useMemoizedFn(()=>{kt(),$t.reset(),Mt(!1)}),nn=useMemoizedFn(()=>{kt(),tn.current.cancelCount++,Lt()}),cn=useCreation(()=>({confirm:Bt.confirm,success:Bt.success,error:bt.error||$t.error||""}),[Bt.confirm,Bt.success,bt.error,$t.error]),qt=useCreation(()=>Rt&&Kt.includes("mobile")&&!wt,[Rt,Kt,wt]),Dt=checkSameProtocol(Ct),Vt=useCreation(()=>Rt&&Kt.includes("web")&&(Dt||pt)&&(!ut.mobile.any||pt),[Rt,Kt,(yn=ut==null?void 0:ut.mobile)==null?void 0:yn.any]),an=useCreation(()=>Rt&&Kt.includes("mobile")&&ut.mobile.any&&!pt,[Rt,Kt,(An=ut==null?void 0:ut.mobile)==null?void 0:An.any]),Xt=useCreation(()=>{const Tn=intersection$1(Object.keys(OAUTH_PROVIDER),Kt);return Ht.filter(gn=>Tn.includes(gn.provider))},[Ht,Kt]),pn=useCreation(()=>Xt.length>0&&["login","invite"].includes(bt.action),[Xt]),En=useCreation(()=>{const Tn=qt||Vt||an;let gn=null;return pn&&(gn=Tn?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Divider,{sx:{color:colors$1.textMuted,width:rt?"200px":"368px",opacity:.6,maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:colors$1.lineStep}},children:"OR"}),jsxRuntimeExports.jsx(OAuthLogin,{providerList:Xt,onSuccess:a,onError:j,tokenState:bt,locale:ct,type:"list"})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{mt:1,textAlign:"center",color:colors$1.foregroundsFgSubtile},children:st("loginWithBelow")}),jsxRuntimeExports.jsx(OAuthLogin,{providerList:Xt,onSuccess:a,onError:j,tokenState:bt,type:"list",locale:ct})]})),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[bt.status==="timeout"?jsxRuntimeExports.jsx(RefreshOverlay,{onRefresh:Zt,sx:{zIndex:1,animation:"fadeIn 1s","@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}}}):null,jsxRuntimeExports.jsx(Box,{"data-did-auth-url":bt.url,sx:{display:"none"}}),an&&jsxRuntimeExports.jsx(WebviewLoginItem,{tokenState:bt,locale:ct,tokenKey:ft}),qt&&jsxRuntimeExports.jsx(MobileLoginItem,{tokenState:bt,messages:Bt,locale:ct}),Vt&&jsxRuntimeExports.jsx(WebLoginItem,{tokenState:bt,webWalletUrl:Ct,locale:ct}),gn]})},[bt,bt.url,bt.status,qt,Vt,an,Xt,pn,pn,a,j,ct,ft,Bt,Ct]);return useCreation(()=>bt.loading||$t.loading||!bt.token&&!bt.error,[bt.loading,$t.loading])?jsxRuntimeExports.jsx(Loading,{}):Ft?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{"data-did-auth-url":bt.url,sx:{display:"none"}}),jsxRuntimeExports.jsx(ConnectStatus,{status:$t.status||bt.status,nextWorkflow:bt.nextWorkflow,mfaCode:bt.mfaCode,onCancel:nn,onRetry:Zt,onClose:Pt,messages:cn,locale:ct,className:"auth-status"})]}):En}DIDWalletConnect.propTypes={onError:PropTypes.func,onSuccess:PropTypes.func.isRequired,action:PropTypes.string.isRequired,checkFn:PropTypes.func.isRequired,prefix:PropTypes.string,checkInterval:PropTypes.number,checkTimeout:PropTypes.number,locale:PropTypes.oneOf(["en","zh",""]),tokenKey:PropTypes.string,encKey:PropTypes.string,baseUrl:PropTypes.string,autoConnect:PropTypes.bool,forceConnected:PropTypes.oneOfType([PropTypes.bool,PropTypes.string]),saveConnect:PropTypes.bool,useSocket:PropTypes.bool,allowWallet:PropTypes.bool,provider:PropTypes.oneOf([LOGIN_PROVIDER$1.WALLET,...Object.keys(OAUTH_PROVIDER),""]),webWalletUrl:PropTypes.string,onRecreateSession:PropTypes.func,onClose:PropTypes.func,messages:PropTypes.object,enabledConnectTypes:PropTypes.arrayOf(PropTypes.oneOf(["web","mobile",...Object.keys(OAUTH_PROVIDER)]))};DIDWalletConnect.defaultProps={prefix:API_DID_PREFIX,onError:noop$7,checkInterval:2*1e3,checkTimeout:DEFAULT_TIMEOUT$1*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:getWebWalletUrl$1(),onRecreateSession:noop$7,onClose:noop$7,messages:{},enabledConnectTypes:["web","mobile",...Object.keys(OAUTH_PROVIDER)]};var Set$1=_Set,noop=noop_1,setToArray$1=_setToArray,INFINITY$2=1/0,createSet$1=Set$1&&1/setToArray$1(new Set$1([,-0]))[1]==INFINITY$2?function(a){return new Set$1(a)}:noop,_createSet=createSet$1,SetCache=_SetCache,arrayIncludes$1=_arrayIncludes,arrayIncludesWith=_arrayIncludesWith,cacheHas=_cacheHas,createSet=_createSet,setToArray=_setToArray,LARGE_ARRAY_SIZE=200;function baseUniq$2(a,j,_e){var et=-1,nt=arrayIncludes$1,tt=a.length,ot=!0,ct=[],ft=ct;if(_e)ot=!1,nt=arrayIncludesWith;else if(tt>=LARGE_ARRAY_SIZE){var ht=j?null:createSet(a);if(ht)return setToArray(ht);ot=!1,nt=cacheHas,ft=new SetCache}else ft=j?[]:ct;e:for(;++et<tt;){var dt=a[et],yt=j?j(dt):dt;if(dt=_e||dt!==0?dt:0,ot&&yt===yt){for(var Tt=ft.length;Tt--;)if(ft[Tt]===yt)continue e;j&&ft.push(yt),ct.push(dt)}else nt(ft,yt,_e)||(ft!==ct&&ft.push(yt),ct.push(dt))}return ct}var _baseUniq=baseUniq$2,baseFlatten$1=_baseFlatten,baseIteratee$1=_baseIteratee,baseRest$1=_baseRest,baseUniq$1=_baseUniq,isArrayLikeObject=isArrayLikeObject_1,last=last_1,unionBy=baseRest$1(function(a){var j=last(a);return isArrayLikeObject(j)&&(j=void 0),baseUniq$1(baseFlatten$1(a,1,isArrayLikeObject,!0),baseIteratee$1(j))}),unionBy_1=unionBy;const unionBy$1=getDefaultExportFromCjs$1(unionBy_1);var baseFor=_baseFor,keys$1=keys_1;function baseForOwn$1(a,j){return a&&baseFor(a,j,keys$1)}var _baseForOwn=baseForOwn$1,isArrayLike$1=isArrayLike_1;function createBaseEach$1(a,j){return function(_e,et){if(_e==null)return _e;if(!isArrayLike$1(_e))return a(_e,et);for(var nt=_e.length,tt=j?nt:-1,ot=Object(_e);(j?tt--:++tt<nt)&&et(ot[tt],tt,ot)!==!1;);return _e}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1,baseEach=_baseEach,isArrayLike=isArrayLike_1;function baseMap$1(a,j){var _e=-1,et=isArrayLike(a)?Array(a.length):[];return baseEach(a,function(nt,tt,ot){et[++_e]=j(nt,tt,ot)}),et}var _baseMap=baseMap$1;function baseSortBy$1(a,j){var _e=a.length;for(a.sort(j);_e--;)a[_e]=a[_e].value;return a}var _baseSortBy=baseSortBy$1,isSymbol$5=isSymbol_1;function compareAscending$1(a,j){if(a!==j){var _e=a!==void 0,et=a===null,nt=a===a,tt=isSymbol$5(a),ot=j!==void 0,ct=j===null,ft=j===j,ht=isSymbol$5(j);if(!ct&&!ht&&!tt&&a>j||tt&&ot&&ft&&!ct&&!ht||et&&ot&&ft||!_e&&ft||!nt)return 1;if(!et&&!tt&&!ht&&a<j||ht&&_e&&nt&&!et&&!tt||ct&&_e&&nt||!ot&&nt||!ft)return-1}return 0}var _compareAscending=compareAscending$1,compareAscending=_compareAscending;function compareMultiple$1(a,j,_e){for(var et=-1,nt=a.criteria,tt=j.criteria,ot=nt.length,ct=_e.length;++et<ot;){var ft=compareAscending(nt[et],tt[et]);if(ft){if(et>=ct)return ft;var ht=_e[et];return ft*(ht=="desc"?-1:1)}}return a.index-j.index}var _compareMultiple=compareMultiple$1,arrayMap=_arrayMap,baseGet$1=_baseGet,baseIteratee=_baseIteratee,baseMap=_baseMap,baseSortBy=_baseSortBy,baseUnary=_baseUnary,compareMultiple=_compareMultiple,identity=identity_1,isArray$5=isArray_1;function baseOrderBy$1(a,j,_e){j.length?j=arrayMap(j,function(tt){return isArray$5(tt)?function(ot){return baseGet$1(ot,tt.length===1?tt[0]:tt)}:tt}):j=[identity];var et=-1;j=arrayMap(j,baseUnary(baseIteratee));var nt=baseMap(a,function(tt,ot,ct){var ft=arrayMap(j,function(ht){return ht(tt)});return{criteria:ft,index:++et,value:tt}});return baseSortBy(nt,function(tt,ot){return compareMultiple(tt,ot,_e)})}var _baseOrderBy=baseOrderBy$1,baseFlatten=_baseFlatten,baseOrderBy=_baseOrderBy,baseRest=_baseRest,isIterateeCall=_isIterateeCall,sortBy=baseRest(function(a,j){if(a==null)return[];var _e=j.length;return _e>1&&isIterateeCall(a,j[0],j[1])?j=[]:_e>2&&isIterateeCall(j[0],j[1],j[2])&&(j=[j[0]]),baseOrderBy(a,baseFlatten(j,1),[])}),sortBy_1=sortBy;const sortBy$1=getDefaultExportFromCjs$1(sortBy_1),prefix$2=joinURL(AUTH_SERVICE_PREFIX,"/api/user-session");function useQuickConnect({appPid:a,sourceAppPid:j,loginAppPid:_e,autoFetch:et=!0,baseUrl:nt="/",fetchAll:tt=!1}={}){const ot=getVisitorId$2(),ct=useCreation(()=>createAxios({baseURL:joinURL(nt,prefix$2)},{lazy:!0,lazyTime:500}),[nt]),ft=useMemoizedFn(async()=>{const{data:Rt=[]}=await ct.get("",{params:{visitorId:ot}}),It=getFederatedEnabled(),Ct=getMaster();if(tt&&It&&Ct){const{data:kt}=await ct.get(joinURL(Ct.appUrl,AUTH_SERVICE_PREFIX,"/api/user-session"),{params:{visitorId:ot}});return Rt.concat(kt||[])}return!It||!Ct?Rt.filter(kt=>{var Pt;return((Pt=kt==null?void 0:kt.user)==null?void 0:Pt.sourceAppPid)===null}):Rt}),ht=useReactive({loaded:!1,loadingId:null}),dt=useRequest(ft,{manual:!et,onFinally(){ht.loaded=!0},refreshDeps:[nt]}),yt=async Rt=>{var Ct,kt,Pt;const It=pick$2(Rt,["userDid","visitorId","passportId","id"]);try{ht.loadingId=Rt.id;const Bt=getMaster();if(getFederatedEnabled()&&Bt&&_e!==Rt.appPid){const{data:jt}=await ct.post("login",{...It,appPid:_e},{baseURL:joinURL(Bt.appUrl,AUTH_SERVICE_PREFIX,"/api/user-session")});return jt}const{data:Kt}=await ct.post("login",{...It,appPid:_e});return Kt}catch(Bt){const Kt=Bt.response?((kt=(Ct=Bt.response)==null?void 0:Ct.data)==null?void 0:kt.error)||((Pt=Bt.response)==null?void 0:Pt.data):Bt.message;throw Toast$1.error(Kt),console.error("Quick login error",Bt),Bt}finally{ht.loadingId=null}},Tt=useCreation(()=>dt.data?dt.data.filter(Rt=>Rt.status!=="expired"):[],[dt.data]),St=useCreation(()=>{const Rt=new Date().getTime(),It=sortBy$1(Tt,Ct=>Rt-new Date(Ct.updatedAt).getTime());return unionBy$1(It,Ct=>[Ct.userDid].join("_"))},[Tt,j,a]),At=useCreation(()=>!!(St&&St.length>0),[St]);return{loadingId:ht.loadingId,userSessions:St,quickLoginEnabled:At,loginUserSession:yt,loading:dt.loading,loaded:dt.loaded,refresh:dt.refreshAsync}}const data$b={width:24,height:24,body:'<path fill="currentColor" d="M11.95 18q.525 0 .888-.363t.362-.887q0-.525-.362-.888t-.888-.362q-.525 0-.887.363t-.363.887q0 .525.363.888t.887.362Zm.05 4q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20Zm0-8Zm.1-4.3q.625 0 1.088.4t.462 1q0 .55-.337.975t-.763.8q-.575.5-1.012 1.1t-.438 1.35q0 .35.263.588t.612.237q.375 0 .638-.25t.337-.625q.1-.525.45-.938t.75-.787q.575-.55.988-1.2t.412-1.45q0-1.275-1.038-2.087T12.1 6q-.95 0-1.812.4T8.975 7.625q-.175.3-.113.638t.338.512q.35.2.725.125t.625-.425q.275-.375.688-.575t.862-.2Z"/>'},data$a={width:24,height:24,body:'<path fill="currentColor" d="m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4L9.55 18Z"/>'};function AppIcon({appInfo:a,...j}){const[_e,et]=reactExports.useState(!1);if(_e||!(a.appUrl||a.appLogo))return jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{did:a.appPid,size:32});let nt=a.appLogo||"";return isUrl(nt)||(nt=joinURL(a.appUrl||"",nt)),jsxRuntimeExports.jsx(Img,{src:nt,alt:a.appName||"Blocklet Icon",width:32,height:32,...j,onError:()=>et(!0)})}AppIcon.propTypes={appInfo:PropTypes.object.isRequired};const getAppDid=a=>a?a.split(":").pop():"";function AppInfoItem({appInfo:a,active:j,appLogo:_e}){return jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",fontWeight:600,color:colors$1.textBase,"& .app-info-content":{paddingLeft:"8px",overflow:"hidden"},"& .app-info-name":{maxWidth:"100%",paddingRight:"32px",lineHeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"},"& .app-info-did":{fontSize:0},"& .app-info-did .did-address-text":{color:colors$1.textMuted,fontSize:"12px"}},children:[_e||jsxRuntimeExports.jsx(Box,{sx:{borderRadius:"8px",overflow:"hidden",fontSize:0},children:jsxRuntimeExports.jsx(AppIcon,{appInfo:a})}),jsxRuntimeExports.jsxs(Box,{className:"app-info-content",children:[jsxRuntimeExports.jsx(Box,{className:"app-info-name",children:a.appName}),a.appPid&&jsxRuntimeExports.jsx(DidAddressWrapper,{size:12,className:"app-info-did",copyable:!1,color:colors$1.textMuted,compact:!1,responsive:!1,children:getAppDid(a.appPid)})]}),j?jsxRuntimeExports.jsx(IconButton,{size:"small",color:"success",children:jsxRuntimeExports.jsx(Icon$1,{icon:data$a,color:"success"})}):null]})}AppInfoItem.propTypes={appInfo:PropTypes.object.isRequired,active:PropTypes.bool,appLogo:PropTypes.node};AppInfoItem.defaultProps={active:!1,appLogo:null};function CurrentApp({appInfo:a}){const j=reactExports.useRef(null),_e=useReactive({hoverOnButton:!1,hoverOnPopover:!1}),et=useCreation(()=>_e.hoverOnButton||_e.hoverOnPopover,[_e.hoverOnButton,_e.hoverOnPopover]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{component:"span",ref:j,sx:{color:colors$1.foregroundsFgInteractive,cursor:"help"},onClick:()=>{_e.hoverOnButton=!0},onMouseEnter:()=>{_e.hoverOnButton=!0},onMouseLeave:()=>{setTimeout(()=>{_e.hoverOnButton=!1},200)},children:a.appName}),jsxRuntimeExports.jsx(Popover,{open:et,sx:{pointerEvents:"none"},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${colors$1.gray6}, 0px 0px 0px 1px ${colors$1.gray6}`,py:1,px:1.5,borderRadius:2,transform:"translateY(-6px) !important"}}},anchorEl:j.current,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{_e.open=!1},disableRestoreFocus:!0,children:jsxRuntimeExports.jsx(Box,{component:"span",sx:{pointerEvents:"auto"},onMouseEnter:()=>{_e.hoverOnPopover=!0},onMouseLeave:()=>{_e.hoverOnPopover=!1},children:jsxRuntimeExports.jsx(AppInfoItem,{appInfo:a,appLogo:jsxRuntimeExports.jsx(AppIcon,{appInfo:a})})})})]})}CurrentApp.propTypes={appInfo:PropTypes.object.isRequired};function SwitchApp(){const{appInfoList:a,t:j,extraParams:_e,connectState:et}=useStateContext(),nt=reactExports.useRef(null),tt=useReactive({open:!1});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{component:"span",ref:nt,sx:{textTransform:"lowercase",color:colors$1.foregroundsFgInteractive,cursor:"pointer"},onClick:()=>{tt.open=!0},children:j("switch")}),jsxRuntimeExports.jsx(Menu,{anchorEl:nt.current,open:tt.open,onClose:()=>{tt.open=!1},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${colors$1.gray6}, 0px 0px 0px 1px ${colors$1.gray6}`,borderRadius:2}}},children:a.map(ot=>jsxRuntimeExports.jsx(MenuItem,{onClick:()=>{tt.open=!1,et.sourceAppPid=ot.sourceAppPid},children:jsxRuntimeExports.jsx(AppInfoItem,{appInfo:ot,active:ot.sourceAppPid===(_e==null?void 0:_e.sourceAppPid)})},ot.appPid))})]})}function AppTips({locale:a,disableSwitchApp:j}){const{appInfoList:_e,extraParams:et,connectState:nt,blocklet:tt}=useStateContext(),ot=useCreation(()=>_e.find(ht=>isUndefined$2(et==null?void 0:et.sourceAppPid)?!0:isNull$3(ht.sourceAppPid)?ht.appPid===(tt==null?void 0:tt.appPid):ht.sourceAppPid===(et==null?void 0:et.sourceAppPid)),[et==null?void 0:et.sourceAppPid,_e]),ct=!j&&_e.length>1;useMount(()=>{(tt==null?void 0:tt.appPid)===(ot==null?void 0:ot.appPid)?nt.sourceAppPid=null:nt.sourceAppPid=ot==null?void 0:ot.appPid});const ft=useCreation(()=>a==="zh"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["您正在使用 ",jsxRuntimeExports.jsx(CurrentApp,{appInfo:ot,appInfoList:_e})," 账户来连接站点",ct?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[",点击",jsxRuntimeExports.jsx(SwitchApp,{appInfoList:_e})]}):null]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["You're using ",jsxRuntimeExports.jsx(CurrentApp,{appInfo:ot})," account for site access",ct?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[". Click to ",jsxRuntimeExports.jsx(SwitchApp,{appInfoList:_e})]}):null]}),[a,ot,_e,ct]);return isEmpty$1(_e)?null:jsxRuntimeExports.jsxs(Box,{sx:{fontSize:"13px",color:colors$1.foregroundsFgSubtile,lineHeight:1.5},children:[ft,ct&&jsxRuntimeExports.jsx(Box,{component:"span",sx:{display:"inline-block",ml:.5,fontSize:"13px",height:"16px",lineHeight:1,verticalAlign:"middle"},children:jsxRuntimeExports.jsx(Box,{component:Icon,icon:data$b,sx:{verticalAlign:"middle"}})})]})}AppTips.propTypes={locale:PropTypes.string,disableSwitchApp:PropTypes.bool};AppTips.defaultProps={locale:"en",disableSwitchApp:!1};var DidLogoColorful={};Object.defineProperty(DidLogoColorful,"__esModule",{value:!0});var default_1$2=DidLogoColorful.default=void 0;_interopRequireDefault$2(reactExports);var _jsxRuntime$2=jsxRuntimeExports;function _interopRequireDefault$2(a){return a&&a.__esModule?a:{default:a}}function ownKeys$2(a,j){var _e=Object.keys(a);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(a);j&&(et=et.filter(function(nt){return Object.getOwnPropertyDescriptor(a,nt).enumerable})),_e.push.apply(_e,et)}return _e}function _objectSpread(a){for(var j=1;j<arguments.length;j++){var _e=arguments[j]!=null?arguments[j]:{};j%2?ownKeys$2(Object(_e),!0).forEach(function(et){_defineProperty(a,et,_e[et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(_e)):ownKeys$2(Object(_e)).forEach(function(et){Object.defineProperty(a,et,Object.getOwnPropertyDescriptor(_e,et))})}return a}function _defineProperty(a,j,_e){return(j=_toPropertyKey(j))in a?Object.defineProperty(a,j,{value:_e,enumerable:!0,configurable:!0,writable:!0}):a[j]=_e,a}function _toPropertyKey(a){var j=_toPrimitive(a,"string");return typeof j=="symbol"?j:j+""}function _toPrimitive(a,j){if(typeof a!="object"||!a)return a;var _e=a[Symbol.toPrimitive];if(_e!==void 0){var et=_e.call(a,j||"default");if(typeof et!="object")return et;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(a)}var Component=function a(j){return(0,_jsxRuntime$2.jsxs)("svg",_objectSpread(_objectSpread({},j),{},{children:[(0,_jsxRuntime$2.jsx)("path",{d:"M7.366.646L8.46 0h3.981v11.96H8.564a.381.381 0 0 1-.194-.053L4.18 9.431V2.53l.508-.3.893.528-.508.3v5.845L8.7 11.046h2.85V.914h-2.85l-.44.26-.893-.528z",fill:"color(display-p3 .4196 .7412 .9961)"}),(0,_jsxRuntime$2.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.868 8.903V3.057L4.242.915H1.393v10.132h2.85l.44-.26.893.527-1.095.647H.5V0h3.981l4.28 2.53v6.9l-.506.3-.893-.528.506-.299z",fill:"color(display-p3 .2706 .5961 .9804)"})]}))};Component.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};Component.displayName="did-logo-colorful";default_1$2=DidLogoColorful.default=Component;function PoweredBy({...a}){return jsxRuntimeExports.jsxs(Box,{...a,sx:{display:"flex",alignItems:"center",color:colors$1.foregroundsFgMuted,gap:.5,...a.sx},children:[jsxRuntimeExports.jsx(default_1$2,{}),"Powered By",jsxRuntimeExports.jsx(Box,{component:"a",href:"https://www.didconnect.io/",target:"_blank",rel:"noopener",sx:{color:colors$1.foregroundsFgInteractive,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:"DID Connect"})]})}function AutoHeight({children:a,initHeight:j,slotProps:_e}){var ct;const[et,nt]=reactExports.useState(j),tt=reactExports.useRef(null),ot=useSize(tt);return reactExports.useEffect(()=>{ot!=null&&ot.height&&nt(ot.height)},[ot==null?void 0:ot.height,et]),jsxRuntimeExports.jsx(Box,{..._e==null?void 0:_e.root,sx:{height:et,overflow:"hidden",transition:"height 0.2s ease-in-out",...(ct=_e==null?void 0:_e.root)==null?void 0:ct.sx},children:jsxRuntimeExports.jsx(Box,{..._e==null?void 0:_e.container,ref:tt,children:a})})}AutoHeight.propTypes={initHeight:PropTypes.number,children:PropTypes.node.isRequired,slotProps:PropTypes.object};AutoHeight.defaultProps={initHeight:0,slotProps:{}};const didConnectTab="did-connect",quickConnectTab="quick-connect";function Connect$1({mode:a,isFullScreen:j,hideCloseButton:_e,...et}){var pt;const nt=useReactive({showTab:didConnectTab}),{connectState:tt,blocklet:ot,appInfoList:ct,extraParams:ft}=useStateContext(),{extraContent:ht,onSuccess:dt,action:yt,onClose:Tt,options:St}=et,At=useCreation(()=>ct.find(mt=>isUndefined$2(ft==null?void 0:ft.sourceAppPid)?!0:isNull$3(mt.sourceAppPid)?mt.appPid===(ot==null?void 0:ot.appPid):mt.sourceAppPid===(ft==null?void 0:ft.sourceAppPid)),[ft==null?void 0:ft.sourceAppPid,ct]),Rt=useCreation(()=>isNull$3(tt==null?void 0:tt.sourceAppPid)?At==null?void 0:At.appPid:(tt==null?void 0:tt.sourceAppPid)||getCurrentAppPid(),[tt==null?void 0:tt.sourceAppPid]),{quickLoginEnabled:It,loading:Ct,userSessions:kt,loginUserSession:Pt,refresh:Bt}=useQuickConnect({appPid:Rt,loginAppPid:ot==null?void 0:ot.appPid,sourceAppPid:tt==null?void 0:tt.sourceAppPid,autoFetch:["login"].includes(yt),baseUrl:(At==null?void 0:At.appUrl)||""}),Kt=useCreation(()=>{var mt;return((mt=et==null?void 0:et.messages)==null?void 0:mt.title)||DEFAULT_NAME},[(pt=et==null?void 0:et.messages)==null?void 0:pt.title]),jt=useCreation(()=>{if(yt==="login"){const mt=getMaster(ot),$t=getFederatedEnabled(ot);return ft!=null&&ft.forceConnected?kt.filter(xt=>xt.userDid===(ft==null?void 0:ft.forceConnected)):!$t||!mt?kt.filter(xt=>{var vt;return((vt=xt==null?void 0:xt.user)==null?void 0:vt.sourceAppPid)===null}):kt.filter(xt=>{var vt;return Rt===ot.appPid?((vt=xt.user)==null?void 0:vt.sourceAppPid)===(ft==null?void 0:ft.sourceAppPid):!0})}return kt},[ft==null?void 0:ft.forceConnected,yt,kt]),zt=useMemoizedFn(async(...mt)=>{var it,bt,Mt;const $t=await Pt(...mt),[xt]=mt,vt={};xt&&((it=xt==null?void 0:xt.user)!=null&&it.did&&(vt.connected_did=xt.user.did),(bt=xt==null?void 0:xt.user)!=null&&bt.pk&&(vt.connected_pk=xt.user.pk),(Mt=xt==null?void 0:xt.extra)!=null&&Mt.walletOS&&(vt.connected_wallet_os=xt.extra.walletOS),xt!=null&&xt.appPid&&(vt.connected_app=xt.appPid)),await dt({...$t,encrypted:!1},Lt=>Lt,vt)});reactExports.useEffect(()=>{(St==null?void 0:St.showQuickConnect)!==!1&&!Ct&&It&&(nt.showTab=quickConnectTab)},[Ct,It,St==null?void 0:St.showQuickConnect]);const Gt=useDebounce(Ct,{wait:100}),tn=useMemoizedFn(()=>{nt.showTab=didConnectTab}),hn=useMemoizedFn(()=>{nt.showTab=quickConnectTab}),wt=useCreation(()=>jt.length===0?!0:nt.showTab===didConnectTab||!It,[nt.showTab,It]),rt=useCreation(()=>{let mt=!0;return(Ct||Gt)&&(mt=!1),It||(mt=!1),St.showQuickConnect===!1&&(mt=!1),nt.showTab!==didConnectTab&&(mt=!1),mt},[It,nt.showTab,Ct,Gt]),st=useCreation(()=>jsxRuntimeExports.jsx(Box,{onClick:Tt,sx:{fontSize:"1.5rem",width:"1.5rem",height:"1.5rem",cursor:"pointer",color:colors$1.foregroundsFgSubtile,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:jsxRuntimeExports.jsx(Icon,{icon:data$r})}),[Tt]);let ut=null;return Ct||Gt?ut=jsxRuntimeExports.jsx(Loading,{}):wt?ut=jsxRuntimeExports.jsx(DIDWalletConnect,{...et,onClose:Tt}):ut=jsxRuntimeExports.jsx(QuickConnect,{userSessions:jt,onLogin:zt,onRetry:Bt,onClose:Tt,messages:et.messages,onLoginAnother:tn}),jsxRuntimeExports.jsxs(Card,{variant:"outlined",sx:{color:colors$1.foregroundsFgBase,backgroundColor:"white",borderRadius:2,borderColor:colors$1.strokeBorderBase,height:"100%",display:"flex",flexDirection:"column"},children:[jsxRuntimeExports.jsx(CardHeader,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[rt&&jsxRuntimeExports.jsx(IconButton,{size:"small",disabled:tt.status!=="created",onClick:hn,disableRipple:!0,sx:{fontSize:"0.75em"},children:jsxRuntimeExports.jsx(Icon,{icon:data$s,color:colors$1.textMuted})}),Kt]}),titleTypographyProps:{display:"flex",alignItems:"center",variant:"h6",lineHeight:"28px",fontWeight:600},action:_e?null:st,sx:{px:2.5,".MuiCardHeader-action":{margin:0,alignSelf:"center"}}}),jsxRuntimeExports.jsx(CardContent,{sx:{borderTop:`1px solid ${colors$1.strokeBorderBase}`,borderBottom:`1px solid ${colors$1.strokeBorderBase}`,flex:1,verticalAlign:"middle",overflow:"auto",p:2.5,position:"relative","&::after":{content:'""',height:"100%",verticalAlign:"middle",display:"inline-block",width:0}},children:jsxRuntimeExports.jsxs(AutoHeight,{slotProps:{root:{sx:{display:"inline-block",width:"100%",verticalAlign:"middle"}},container:{sx:{display:"flex",flexDirection:"column",gap:1}}},children:[jsxRuntimeExports.jsx(AppTips,{locale:et.locale,disableSwitchApp:et.disableSwitchApp}),ut,ht?jsxRuntimeExports.jsx(Box,{children:ht}):null]})}),jsxRuntimeExports.jsx(CardActions,{sx:{py:2,px:2.5,justifyContent:"center"},children:jsxRuntimeExports.jsx(PoweredBy,{sx:{fontSize:"12px"}})})]})}Connect$1.propTypes={action:PropTypes.string.isRequired,onSuccess:PropTypes.func,onClose:PropTypes.func,messages:PropTypes.object,extraContent:PropTypes.any,disableSwitchApp:PropTypes.bool,mode:PropTypes.oneOf(["fullScreen","dialog","normal"]),isFullScreen:PropTypes.bool,options:PropTypes.object,hideCloseButton:PropTypes.bool,locale:PropTypes.string};Connect$1.defaultProps={onSuccess:noop$7,onClose:noop$7,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!0,locale:"en"};function WrapConnect(a){const{checkFn:j,extraParams:_e,blocklet:et,action:nt,locale:tt}=a;if(typeof j!="function")throw new Error("Cannot initialize did connect component without a fetchFn");return jsxRuntimeExports.jsx(StateProvider,{blocklet:et,action:nt,locale:tt,extraParams:_e,sx:{position:"relative",width:"100%",height:"100%",lineHeight:1.2,fontFamily:"Inter",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:jsxRuntimeExports.jsx(Connect$1,{...a})})}WrapConnect.propTypes={checkFn:PropTypes.func.isRequired,extraParams:PropTypes.object,blocklet:PropTypes.object.isRequired,action:PropTypes.string.isRequired,locale:PropTypes.string};WrapConnect.defaultProps={extraParams:{},locale:"en"};const DidConnect=withWebWalletSWKeeper(withDialog(withBlocklet(WrapConnect))),CLOSE_TIMEOUT=2e3,ConnectHolder=reactExports.forwardRef((a,j)=>{const{api:_e}=reactExports.useContext(SessionContext$1),et={containerEl:null,popup:!0,checkFn:(_e==null?void 0:_e.get)||noop$7,messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},nt=useReactive({show:!1,...cloneDeep$1(et)}),[tt,ot]=reactExports.useState({}),ct=useMemoizedFn(()=>{const yt=cloneDeep$1(et);Object.keys(yt).forEach(Tt=>{nt[Tt]=yt[Tt]})}),ft=useMemoizedFn(()=>{nt.show=!1,ct()}),ht=useMemoizedFn(yt=>{const{containerEl:Tt,checkFn:St,popup:At,messages:Rt,...It}=cloneDeep$1(yt);typeof St=="function"&&(nt.checkFn=St),At!==void 0&&(nt.popup=At),Rt!==void 0&&(nt.messages=Rt),Tt!==void 0&&(nt.containerEl=Tt),ot(It),nt.show=!0});reactExports.useImperativeHandle(j,()=>({open:ht,close:ft}),[ht,ft]);const dt=jsxRuntimeExports.jsx(DidConnect,{open:!0,popup:nt.popup,messages:nt.messages,checkFn:nt.checkFn,...tt});return nt.containerEl?reactDomExports.createPortal(dt,nt.containerEl):nt.show&&dt});function useConnect(){const a=reactExports.useRef(null),j=useCreation(()=>new _default$2({concurrency:1})),_e=useMemoizedFn((...ct)=>{var ft;(ft=a.current)==null||ft.close(...ct)}),et=useMemoizedFn(({onSuccess:ct,onClose:ft,onEnd:ht,closeTimeout:dt=CLOSE_TIMEOUT,...yt},...Tt)=>{const St=()=>new Promise(At=>{typeof ct=="function"?yt.onSuccess=(...Rt)=>{ct(...Rt),setTimeout(()=>{_e(),At()},dt)}:yt.onSuccess=()=>{setTimeout(()=>{_e(),At()},dt)},typeof ft=="function"?yt.onClose=(...Rt)=>{ft(...Rt),_e(),At(),j.clear()}:yt.onClose=()=>{_e(),At(),j.clear()},setTimeout(()=>{var Rt;(Rt=a.current)==null||Rt.open(yt,...Tt)})});j.add(St)}),nt=useMemoizedFn((ct={},{baseUrl:ft,locale:ht="en",blocklet:dt=globalThis==null?void 0:globalThis.blocklet,closeTimeout:yt=CLOSE_TIMEOUT}={})=>new Promise((Tt,St)=>{const At=()=>new Promise(Rt=>{(async()=>{var zt;if(isUndefined$2(ft)){const Gt=getFederatedEnabled(),tn=getMaster();ft=Gt?tn.appUrl:window.location.origin}const{onSuccess:Ct,onClose:kt,onError:Pt,...Bt}=ct;if(!((zt=Bt==null?void 0:Bt.extraParams)!=null&&zt.provider))throw isFunction$8(Pt)&&Pt("Must have extraParams.provider"),new Error("Must have extraParams.provider");Bt!=null&&Bt.prefix||(Bt.prefix=window.location.origin+joinURL(dt==null?void 0:dt.prefix,API_DID_PREFIX));const Kt=new URLSearchParams;Kt.set("params",btoa(encodeURIComponent(JSON.stringify(Bt)))),Kt.set("appPid",dt==null?void 0:dt.appPid),Kt.set("locale",ht);const jt=openPopup(joinURL(ft||"/",AUTH_SERVICE_PREFIX,`/connect?${Kt.toString()}`));try{const Gt=await runPopup({popup:jt,closeTimeout:yt});updateConnectedInfo({connected_app:getAppId$1(),...Gt==null?void 0:Gt.options},!0),isFunction$8(Ct)?(Ct({...Gt.response,encrypted:!1}),_e(),Rt()):(_e(),Rt()),Tt({...Gt.response,encrypted:!1})}catch(Gt){throw Gt.message==="Popup closed"?isFunction$8(kt)?(kt(),Rt(),j.clear()):(Rt(),j.clear()):isFunction$8(Pt)&&Pt(Gt),Gt}})().catch(Ct=>{Rt(),St(Ct)})});j.add(At)})),tt=useCreation(()=>jsxRuntimeExports.jsx(ConnectHolder,{ref:a})),ot=useCreation(()=>({open:et,close:_e,openPopup:nt,queue:j}));return{connectHolder:tt,connectApi:ot}}const EVENTS={LOGIN:Symbol("login"),CANCEL_LOGIN:Symbol("cancelLogin"),LOGOUT:Symbol("logout"),SWITCH_PROFILE:Symbol("switchProfile"),CANCEL_SWITCH_PROFILE:Symbol("cancelSwitchProfile"),SWITCH_PASSPORT:Symbol("switchPassport"),CANCEL_SWITCH_PASSPORT:Symbol("cancelSwitchPassport"),BIND_WALLET:Symbol("bindWallet"),CANCEL_BIND_WALLET:Symbol("cancelBindWallet"),CONNECT_TO_DID_SPACE_FOR_FULL_ACCESS:Symbol("connectToDidSpaceForFullAccess")},translations$2={login:{en:{title:"Connect DID Wallet",scan:"Scan following qrcode to connect your DID Wallet",confirm:"Confirm connection in your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包",scan:"请使用 DID 钱包扫码下面的二维码完成连接",confirm:"在 DID 钱包中确认连接",success:"连接成功"}},"switch-specified-did":{en:{title:"Switch DID",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"你需要切换账号至 {did} 才能完成后续的操作",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-did":{en:{title:"Switch DID",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"请使用 DID 钱包扫码下面的二维码完成切换",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-profile":{en:{title:"Switch Profile",scan:"Scan following qrcode with DID Wallet to switch profile",confirm:"Select profile in your DID Wallet",success:"Profile updated"},zh:{title:"切换个人信息",scan:"请使用 DID 钱包扫码下面的二维码来切换个人信息",confirm:"在 DID 钱包中选择个人信息",success:"个人信息已经更新"}},"switch-passport":{en:{title:"Switch Passport",scan:"Scan following qrcode with DID Wallet to switch passport",confirm:"Select passport in your DID Wallet",success:"Passport and session updated"},zh:{title:"切换通行证",scan:"请使用 DID 钱包扫码二维码来切换通行证",confirm:"在 DID 钱包中选择通行证",success:"通行证和会话已经更新"}},"connect-to-did-spaces-for-user":{en:{title:"Please authorize the application to connect to your DID Space",scan:"Please use your DID wallet to scan the QR code for authorization",confirm:"Select the DID Spaces NFT in your DID wallet",success:"Connection successful"},zh:{title:"请授权应用连接你的 DID Space",scan:"请使用 DID 钱包扫码二维码来完成授权",confirm:"在 DID 钱包中选择 DID Spaces NFT",success:"连接成功"}},"bind-wallet":{en:{title:"Connect DID Wallet for enhanced security",scan:"Scan following qrcode with DID Wallet to connect your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包获得更高的安全性",scan:"请使用 DID 钱包扫码二维码来连接您的 DID 钱包",success:"连接成功"}},exchangePassport:{en:{action:"Exchange Passport with NFT",tooltip:"Exchange passport if you owns any required NFT"},zh:{action:"兑换通行证",tooltip:"通过出示你持有的特定 NFT 来获取通行证"}},lostPassport:{en:{action:"Lost Passport"},zh:{action:"找回通行证"}},switchAccountDialog:{en:{confirm:"Switch",title:"Switch Account",description:"Please switch accounts to complete next action",currentAccount:"Current account",nextAccount:"Account to be switched"},zh:{confirm:"切换",title:"切换账号",description:"请切换账号来完成后续的操作",currentAccount:"当前登录的账户",nextAccount:"即将切换的账户"}}};var re$2={exports:{}};const SEMVER_SPEC_VERSION="2.0.0",MAX_LENGTH$1=256,MAX_SAFE_INTEGER$2=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=MAX_LENGTH$1-6,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var constants$1={MAX_LENGTH:MAX_LENGTH$1,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$2,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},define_process_env_default$1={};const debug$3=typeof process$1$1=="object"&&define_process_env_default$1&&define_process_env_default$1.NODE_DEBUG&&/\bsemver\b/i.test(define_process_env_default$1.NODE_DEBUG)?(...a)=>console.error("SEMVER",...a):()=>{};var debug_1$1=debug$3;(function(a,j){const{MAX_SAFE_COMPONENT_LENGTH:_e,MAX_SAFE_BUILD_LENGTH:et,MAX_LENGTH:nt}=constants$1,tt=debug_1$1;j=a.exports={};const ot=j.re=[],ct=j.safeRe=[],ft=j.src=[],ht=j.t={};let dt=0;const yt="[a-zA-Z0-9-]",Tt=[["\\s",1],["\\d",nt],[yt,et]],St=Rt=>{for(const[It,Ct]of Tt)Rt=Rt.split(`${It}*`).join(`${It}{0,${Ct}}`).split(`${It}+`).join(`${It}{1,${Ct}}`);return Rt},At=(Rt,It,Ct)=>{const kt=St(It),Pt=dt++;tt(Rt,Pt,It),ht[Rt]=Pt,ft[Pt]=It,ot[Pt]=new RegExp(It,Ct?"g":void 0),ct[Pt]=new RegExp(kt,Ct?"g":void 0)};At("NUMERICIDENTIFIER","0|[1-9]\\d*"),At("NUMERICIDENTIFIERLOOSE","\\d+"),At("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${yt}*`),At("MAINVERSION",`(${ft[ht.NUMERICIDENTIFIER]})\\.(${ft[ht.NUMERICIDENTIFIER]})\\.(${ft[ht.NUMERICIDENTIFIER]})`),At("MAINVERSIONLOOSE",`(${ft[ht.NUMERICIDENTIFIERLOOSE]})\\.(${ft[ht.NUMERICIDENTIFIERLOOSE]})\\.(${ft[ht.NUMERICIDENTIFIERLOOSE]})`),At("PRERELEASEIDENTIFIER",`(?:${ft[ht.NUMERICIDENTIFIER]}|${ft[ht.NONNUMERICIDENTIFIER]})`),At("PRERELEASEIDENTIFIERLOOSE",`(?:${ft[ht.NUMERICIDENTIFIERLOOSE]}|${ft[ht.NONNUMERICIDENTIFIER]})`),At("PRERELEASE",`(?:-(${ft[ht.PRERELEASEIDENTIFIER]}(?:\\.${ft[ht.PRERELEASEIDENTIFIER]})*))`),At("PRERELEASELOOSE",`(?:-?(${ft[ht.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ft[ht.PRERELEASEIDENTIFIERLOOSE]})*))`),At("BUILDIDENTIFIER",`${yt}+`),At("BUILD",`(?:\\+(${ft[ht.BUILDIDENTIFIER]}(?:\\.${ft[ht.BUILDIDENTIFIER]})*))`),At("FULLPLAIN",`v?${ft[ht.MAINVERSION]}${ft[ht.PRERELEASE]}?${ft[ht.BUILD]}?`),At("FULL",`^${ft[ht.FULLPLAIN]}$`),At("LOOSEPLAIN",`[v=\\s]*${ft[ht.MAINVERSIONLOOSE]}${ft[ht.PRERELEASELOOSE]}?${ft[ht.BUILD]}?`),At("LOOSE",`^${ft[ht.LOOSEPLAIN]}$`),At("GTLT","((?:<|>)?=?)"),At("XRANGEIDENTIFIERLOOSE",`${ft[ht.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),At("XRANGEIDENTIFIER",`${ft[ht.NUMERICIDENTIFIER]}|x|X|\\*`),At("XRANGEPLAIN",`[v=\\s]*(${ft[ht.XRANGEIDENTIFIER]})(?:\\.(${ft[ht.XRANGEIDENTIFIER]})(?:\\.(${ft[ht.XRANGEIDENTIFIER]})(?:${ft[ht.PRERELEASE]})?${ft[ht.BUILD]}?)?)?`),At("XRANGEPLAINLOOSE",`[v=\\s]*(${ft[ht.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ft[ht.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ft[ht.XRANGEIDENTIFIERLOOSE]})(?:${ft[ht.PRERELEASELOOSE]})?${ft[ht.BUILD]}?)?)?`),At("XRANGE",`^${ft[ht.GTLT]}\\s*${ft[ht.XRANGEPLAIN]}$`),At("XRANGELOOSE",`^${ft[ht.GTLT]}\\s*${ft[ht.XRANGEPLAINLOOSE]}$`),At("COERCEPLAIN",`(^|[^\\d])(\\d{1,${_e}})(?:\\.(\\d{1,${_e}}))?(?:\\.(\\d{1,${_e}}))?`),At("COERCE",`${ft[ht.COERCEPLAIN]}(?:$|[^\\d])`),At("COERCEFULL",ft[ht.COERCEPLAIN]+`(?:${ft[ht.PRERELEASE]})?(?:${ft[ht.BUILD]})?(?:$|[^\\d])`),At("COERCERTL",ft[ht.COERCE],!0),At("COERCERTLFULL",ft[ht.COERCEFULL],!0),At("LONETILDE","(?:~>?)"),At("TILDETRIM",`(\\s*)${ft[ht.LONETILDE]}\\s+`,!0),j.tildeTrimReplace="$1~",At("TILDE",`^${ft[ht.LONETILDE]}${ft[ht.XRANGEPLAIN]}$`),At("TILDELOOSE",`^${ft[ht.LONETILDE]}${ft[ht.XRANGEPLAINLOOSE]}$`),At("LONECARET","(?:\\^)"),At("CARETTRIM",`(\\s*)${ft[ht.LONECARET]}\\s+`,!0),j.caretTrimReplace="$1^",At("CARET",`^${ft[ht.LONECARET]}${ft[ht.XRANGEPLAIN]}$`),At("CARETLOOSE",`^${ft[ht.LONECARET]}${ft[ht.XRANGEPLAINLOOSE]}$`),At("COMPARATORLOOSE",`^${ft[ht.GTLT]}\\s*(${ft[ht.LOOSEPLAIN]})$|^$`),At("COMPARATOR",`^${ft[ht.GTLT]}\\s*(${ft[ht.FULLPLAIN]})$|^$`),At("COMPARATORTRIM",`(\\s*)${ft[ht.GTLT]}\\s*(${ft[ht.LOOSEPLAIN]}|${ft[ht.XRANGEPLAIN]})`,!0),j.comparatorTrimReplace="$1$2$3",At("HYPHENRANGE",`^\\s*(${ft[ht.XRANGEPLAIN]})\\s+-\\s+(${ft[ht.XRANGEPLAIN]})\\s*$`),At("HYPHENRANGELOOSE",`^\\s*(${ft[ht.XRANGEPLAINLOOSE]})\\s+-\\s+(${ft[ht.XRANGEPLAINLOOSE]})\\s*$`),At("STAR","(<|>)?=?\\s*\\*"),At("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),At("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(re$2,re$2.exports);var reExports=re$2.exports;const looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$1=a=>a?typeof a!="object"?looseOption:a:emptyOpts;var parseOptions_1=parseOptions$1;const numeric=/^[0-9]+$/,compareIdentifiers$1=(a,j)=>{const _e=numeric.test(a),et=numeric.test(j);return _e&&et&&(a=+a,j=+j),a===j?0:_e&&!et?-1:et&&!_e?1:a<j?-1:1},rcompareIdentifiers=(a,j)=>compareIdentifiers$1(j,a);var identifiers$1={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers};const debug$2=debug_1$1,{MAX_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1}=constants$1,{safeRe:re$1,t:t$1}=reExports,parseOptions=parseOptions_1,{compareIdentifiers}=identifiers$1;let SemVer$d=class Zr{constructor(j,_e){if(_e=parseOptions(_e),j instanceof Zr){if(j.loose===!!_e.loose&&j.includePrerelease===!!_e.includePrerelease)return j;j=j.version}else if(typeof j!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof j}".`);if(j.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug$2("SemVer",j,_e),this.options=_e,this.loose=!!_e.loose,this.includePrerelease=!!_e.includePrerelease;const et=j.trim().match(_e.loose?re$1[t$1.LOOSE]:re$1[t$1.FULL]);if(!et)throw new TypeError(`Invalid Version: ${j}`);if(this.raw=j,this.major=+et[1],this.minor=+et[2],this.patch=+et[3],this.major>MAX_SAFE_INTEGER$1||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER$1||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER$1||this.patch<0)throw new TypeError("Invalid patch version");et[4]?this.prerelease=et[4].split(".").map(nt=>{if(/^[0-9]+$/.test(nt)){const tt=+nt;if(tt>=0&&tt<MAX_SAFE_INTEGER$1)return tt}return nt}):this.prerelease=[],this.build=et[5]?et[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(j){if(debug$2("SemVer.compare",this.version,this.options,j),!(j instanceof Zr)){if(typeof j=="string"&&j===this.version)return 0;j=new Zr(j,this.options)}return j.version===this.version?0:this.compareMain(j)||this.comparePre(j)}compareMain(j){return j instanceof Zr||(j=new Zr(j,this.options)),compareIdentifiers(this.major,j.major)||compareIdentifiers(this.minor,j.minor)||compareIdentifiers(this.patch,j.patch)}comparePre(j){if(j instanceof Zr||(j=new Zr(j,this.options)),this.prerelease.length&&!j.prerelease.length)return-1;if(!this.prerelease.length&&j.prerelease.length)return 1;if(!this.prerelease.length&&!j.prerelease.length)return 0;let _e=0;do{const et=this.prerelease[_e],nt=j.prerelease[_e];if(debug$2("prerelease compare",_e,et,nt),et===void 0&&nt===void 0)return 0;if(nt===void 0)return 1;if(et===void 0)return-1;if(et===nt)continue;return compareIdentifiers(et,nt)}while(++_e)}compareBuild(j){j instanceof Zr||(j=new Zr(j,this.options));let _e=0;do{const et=this.build[_e],nt=j.build[_e];if(debug$2("build compare",_e,et,nt),et===void 0&&nt===void 0)return 0;if(nt===void 0)return 1;if(et===void 0)return-1;if(et===nt)continue;return compareIdentifiers(et,nt)}while(++_e)}inc(j,_e,et){switch(j){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",_e,et);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",_e,et);break;case"prepatch":this.prerelease.length=0,this.inc("patch",_e,et),this.inc("pre",_e,et);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",_e,et),this.inc("pre",_e,et);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const nt=Number(et)?1:0;if(!_e&&et===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[nt];else{let tt=this.prerelease.length;for(;--tt>=0;)typeof this.prerelease[tt]=="number"&&(this.prerelease[tt]++,tt=-2);if(tt===-1){if(_e===this.prerelease.join(".")&&et===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(nt)}}if(_e){let tt=[_e,nt];et===!1&&(tt=[_e]),compareIdentifiers(this.prerelease[0],_e)===0?isNaN(this.prerelease[1])&&(this.prerelease=tt):this.prerelease=tt}break}default:throw new Error(`invalid increment argument: ${j}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var semver$2=SemVer$d;const SemVer$c=semver$2,parse$d=(a,j,_e=!1)=>{if(a instanceof SemVer$c)return a;try{return new SemVer$c(a,j)}catch(et){if(!_e)return null;throw et}};var parse_1=parse$d;const parse$c=parse_1,valid$2=(a,j)=>{const _e=parse$c(a,j);return _e?_e.version:null};var valid_1=valid$2;const parse$b=parse_1,clean$1=(a,j)=>{const _e=parse$b(a.trim().replace(/^[=v]+/,""),j);return _e?_e.version:null};var clean_1=clean$1;const SemVer$b=semver$2,inc$1=(a,j,_e,et,nt)=>{typeof _e=="string"&&(nt=et,et=_e,_e=void 0);try{return new SemVer$b(a instanceof SemVer$b?a.version:a,_e).inc(j,et,nt).version}catch{return null}};var inc_1=inc$1;const parse$a=parse_1,diff$1=(a,j)=>{const _e=parse$a(a,null,!0),et=parse$a(j,null,!0),nt=_e.compare(et);if(nt===0)return null;const tt=nt>0,ot=tt?_e:et,ct=tt?et:_e,ft=!!ot.prerelease.length;if(!!ct.prerelease.length&&!ft)return!ct.patch&&!ct.minor?"major":ot.patch?"patch":ot.minor?"minor":"major";const dt=ft?"pre":"";return _e.major!==et.major?dt+"major":_e.minor!==et.minor?dt+"minor":_e.patch!==et.patch?dt+"patch":"prerelease"};var diff_1=diff$1;const SemVer$a=semver$2,major$1=(a,j)=>new SemVer$a(a,j).major;var major_1=major$1;const SemVer$9=semver$2,minor$1=(a,j)=>new SemVer$9(a,j).minor;var minor_1=minor$1;const SemVer$8=semver$2,patch$1=(a,j)=>new SemVer$8(a,j).patch;var patch_1=patch$1;const parse$9=parse_1,prerelease$1=(a,j)=>{const _e=parse$9(a,j);return _e&&_e.prerelease.length?_e.prerelease:null};var prerelease_1=prerelease$1;const SemVer$7=semver$2,compare$b=(a,j,_e)=>new SemVer$7(a,_e).compare(new SemVer$7(j,_e));var compare_1=compare$b;const compare$a=compare_1,rcompare$1=(a,j,_e)=>compare$a(j,a,_e);var rcompare_1=rcompare$1;const compare$9=compare_1,compareLoose$1=(a,j)=>compare$9(a,j,!0);var compareLoose_1=compareLoose$1;const SemVer$6=semver$2,compareBuild$3=(a,j,_e)=>{const et=new SemVer$6(a,_e),nt=new SemVer$6(j,_e);return et.compare(nt)||et.compareBuild(nt)};var compareBuild_1=compareBuild$3;const compareBuild$2=compareBuild_1,sort$1=(a,j)=>a.sort((_e,et)=>compareBuild$2(_e,et,j));var sort_1=sort$1;const compareBuild$1=compareBuild_1,rsort$1=(a,j)=>a.sort((_e,et)=>compareBuild$1(et,_e,j));var rsort_1=rsort$1;const compare$8=compare_1,gt$4=(a,j,_e)=>compare$8(a,j,_e)>0;var gt_1=gt$4;const compare$7=compare_1,lt$3=(a,j,_e)=>compare$7(a,j,_e)<0;var lt_1=lt$3;const compare$6=compare_1,eq$4=(a,j,_e)=>compare$6(a,j,_e)===0;var eq_1=eq$4;const compare$5=compare_1,neq$2=(a,j,_e)=>compare$5(a,j,_e)!==0;var neq_1=neq$2;const compare$4=compare_1,gte$3=(a,j,_e)=>compare$4(a,j,_e)>=0;var gte_1=gte$3;const compare$3=compare_1,lte$3=(a,j,_e)=>compare$3(a,j,_e)<=0;var lte_1=lte$3;const eq$3=eq_1,neq$1=neq_1,gt$3=gt_1,gte$2=gte_1,lt$2=lt_1,lte$2=lte_1,cmp$1=(a,j,_e,et)=>{switch(j){case"===":return typeof a=="object"&&(a=a.version),typeof _e=="object"&&(_e=_e.version),a===_e;case"!==":return typeof a=="object"&&(a=a.version),typeof _e=="object"&&(_e=_e.version),a!==_e;case"":case"=":case"==":return eq$3(a,_e,et);case"!=":return neq$1(a,_e,et);case">":return gt$3(a,_e,et);case">=":return gte$2(a,_e,et);case"<":return lt$2(a,_e,et);case"<=":return lte$2(a,_e,et);default:throw new TypeError(`Invalid operator: ${j}`)}};var cmp_1=cmp$1;const SemVer$5=semver$2,parse$8=parse_1,{safeRe:re,t}=reExports,coerce$1=(a,j)=>{if(a instanceof SemVer$5)return a;if(typeof a=="number"&&(a=String(a)),typeof a!="string")return null;j=j||{};let _e=null;if(!j.rtl)_e=a.match(j.includePrerelease?re[t.COERCEFULL]:re[t.COERCE]);else{const ft=j.includePrerelease?re[t.COERCERTLFULL]:re[t.COERCERTL];let ht;for(;(ht=ft.exec(a))&&(!_e||_e.index+_e[0].length!==a.length);)(!_e||ht.index+ht[0].length!==_e.index+_e[0].length)&&(_e=ht),ft.lastIndex=ht.index+ht[1].length+ht[2].length;ft.lastIndex=-1}if(_e===null)return null;const et=_e[2],nt=_e[3]||"0",tt=_e[4]||"0",ot=j.includePrerelease&&_e[5]?`-${_e[5]}`:"",ct=j.includePrerelease&&_e[6]?`+${_e[6]}`:"";return parse$8(`${et}.${nt}.${tt}${ot}${ct}`,j)};var coerce_1=coerce$1;class LRUCache{constructor(){this.max=1e3,this.map=new Map}get(j){const _e=this.map.get(j);if(_e!==void 0)return this.map.delete(j),this.map.set(j,_e),_e}delete(j){return this.map.delete(j)}set(j,_e){if(!this.delete(j)&&_e!==void 0){if(this.map.size>=this.max){const nt=this.map.keys().next().value;this.delete(nt)}this.map.set(j,_e)}return this}}var lrucache=LRUCache,range,hasRequiredRange;function requireRange(){if(hasRequiredRange)return range;hasRequiredRange=1;const a=/\s+/g;class j{constructor(pt,mt){if(mt=nt(mt),pt instanceof j)return pt.loose===!!mt.loose&&pt.includePrerelease===!!mt.includePrerelease?pt:new j(pt.raw,mt);if(pt instanceof tt)return this.raw=pt.value,this.set=[[pt]],this.formatted=void 0,this;if(this.options=mt,this.loose=!!mt.loose,this.includePrerelease=!!mt.includePrerelease,this.raw=pt.trim().replace(a," "),this.set=this.raw.split("||").map($t=>this.parseRange($t.trim())).filter($t=>$t.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const $t=this.set[0];if(this.set=this.set.filter(xt=>!Rt(xt[0])),this.set.length===0)this.set=[$t];else if(this.set.length>1){for(const xt of this.set)if(xt.length===1&&It(xt[0])){this.set=[xt];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let pt=0;pt<this.set.length;pt++){pt>0&&(this.formatted+="||");const mt=this.set[pt];for(let $t=0;$t<mt.length;$t++)$t>0&&(this.formatted+=" "),this.formatted+=mt[$t].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(pt){const $t=((this.options.includePrerelease&&St)|(this.options.loose&&At))+":"+pt,xt=et.get($t);if(xt)return xt;const vt=this.options.loose,it=vt?ft[ht.HYPHENRANGELOOSE]:ft[ht.HYPHENRANGE];pt=pt.replace(it,rt(this.options.includePrerelease)),ot("hyphen replace",pt),pt=pt.replace(ft[ht.COMPARATORTRIM],dt),ot("comparator trim",pt),pt=pt.replace(ft[ht.TILDETRIM],yt),ot("tilde trim",pt),pt=pt.replace(ft[ht.CARETTRIM],Tt),ot("caret trim",pt);let bt=pt.split(" ").map(Ot=>kt(Ot,this.options)).join(" ").split(/\s+/).map(Ot=>wt(Ot,this.options));vt&&(bt=bt.filter(Ot=>(ot("loose invalid filter",Ot,this.options),!!Ot.match(ft[ht.COMPARATORLOOSE])))),ot("range list",bt);const Mt=new Map,Lt=bt.map(Ot=>new tt(Ot,this.options));for(const Ot of Lt){if(Rt(Ot))return[Ot];Mt.set(Ot.value,Ot)}Mt.size>1&&Mt.has("")&&Mt.delete("");const Ht=[...Mt.values()];return et.set($t,Ht),Ht}intersects(pt,mt){if(!(pt instanceof j))throw new TypeError("a Range is required");return this.set.some($t=>Ct($t,mt)&&pt.set.some(xt=>Ct(xt,mt)&&$t.every(vt=>xt.every(it=>vt.intersects(it,mt)))))}test(pt){if(!pt)return!1;if(typeof pt=="string")try{pt=new ct(pt,this.options)}catch{return!1}for(let mt=0;mt<this.set.length;mt++)if(st(this.set[mt],pt,this.options))return!0;return!1}}range=j;const _e=lrucache,et=new _e,nt=parseOptions_1,tt=requireComparator(),ot=debug_1$1,ct=semver$2,{safeRe:ft,t:ht,comparatorTrimReplace:dt,tildeTrimReplace:yt,caretTrimReplace:Tt}=reExports,{FLAG_INCLUDE_PRERELEASE:St,FLAG_LOOSE:At}=constants$1,Rt=ut=>ut.value==="<0.0.0-0",It=ut=>ut.value==="",Ct=(ut,pt)=>{let mt=!0;const $t=ut.slice();let xt=$t.pop();for(;mt&&$t.length;)mt=$t.every(vt=>xt.intersects(vt,pt)),xt=$t.pop();return mt},kt=(ut,pt)=>(ot("comp",ut,pt),ut=jt(ut,pt),ot("caret",ut),ut=Bt(ut,pt),ot("tildes",ut),ut=Gt(ut,pt),ot("xrange",ut),ut=hn(ut,pt),ot("stars",ut),ut),Pt=ut=>!ut||ut.toLowerCase()==="x"||ut==="*",Bt=(ut,pt)=>ut.trim().split(/\s+/).map(mt=>Kt(mt,pt)).join(" "),Kt=(ut,pt)=>{const mt=pt.loose?ft[ht.TILDELOOSE]:ft[ht.TILDE];return ut.replace(mt,($t,xt,vt,it,bt)=>{ot("tilde",ut,$t,xt,vt,it,bt);let Mt;return Pt(xt)?Mt="":Pt(vt)?Mt=`>=${xt}.0.0 <${+xt+1}.0.0-0`:Pt(it)?Mt=`>=${xt}.${vt}.0 <${xt}.${+vt+1}.0-0`:bt?(ot("replaceTilde pr",bt),Mt=`>=${xt}.${vt}.${it}-${bt} <${xt}.${+vt+1}.0-0`):Mt=`>=${xt}.${vt}.${it} <${xt}.${+vt+1}.0-0`,ot("tilde return",Mt),Mt})},jt=(ut,pt)=>ut.trim().split(/\s+/).map(mt=>zt(mt,pt)).join(" "),zt=(ut,pt)=>{ot("caret",ut,pt);const mt=pt.loose?ft[ht.CARETLOOSE]:ft[ht.CARET],$t=pt.includePrerelease?"-0":"";return ut.replace(mt,(xt,vt,it,bt,Mt)=>{ot("caret",ut,xt,vt,it,bt,Mt);let Lt;return Pt(vt)?Lt="":Pt(it)?Lt=`>=${vt}.0.0${$t} <${+vt+1}.0.0-0`:Pt(bt)?vt==="0"?Lt=`>=${vt}.${it}.0${$t} <${vt}.${+it+1}.0-0`:Lt=`>=${vt}.${it}.0${$t} <${+vt+1}.0.0-0`:Mt?(ot("replaceCaret pr",Mt),vt==="0"?it==="0"?Lt=`>=${vt}.${it}.${bt}-${Mt} <${vt}.${it}.${+bt+1}-0`:Lt=`>=${vt}.${it}.${bt}-${Mt} <${vt}.${+it+1}.0-0`:Lt=`>=${vt}.${it}.${bt}-${Mt} <${+vt+1}.0.0-0`):(ot("no pr"),vt==="0"?it==="0"?Lt=`>=${vt}.${it}.${bt}${$t} <${vt}.${it}.${+bt+1}-0`:Lt=`>=${vt}.${it}.${bt}${$t} <${vt}.${+it+1}.0-0`:Lt=`>=${vt}.${it}.${bt} <${+vt+1}.0.0-0`),ot("caret return",Lt),Lt})},Gt=(ut,pt)=>(ot("replaceXRanges",ut,pt),ut.split(/\s+/).map(mt=>tn(mt,pt)).join(" ")),tn=(ut,pt)=>{ut=ut.trim();const mt=pt.loose?ft[ht.XRANGELOOSE]:ft[ht.XRANGE];return ut.replace(mt,($t,xt,vt,it,bt,Mt)=>{ot("xRange",ut,$t,xt,vt,it,bt,Mt);const Lt=Pt(vt),Ht=Lt||Pt(it),Ot=Ht||Pt(bt),Jt=Ot;return xt==="="&&Jt&&(xt=""),Mt=pt.includePrerelease?"-0":"",Lt?xt===">"||xt==="<"?$t="<0.0.0-0":$t="*":xt&&Jt?(Ht&&(it=0),bt=0,xt===">"?(xt=">=",Ht?(vt=+vt+1,it=0,bt=0):(it=+it+1,bt=0)):xt==="<="&&(xt="<",Ht?vt=+vt+1:it=+it+1),xt==="<"&&(Mt="-0"),$t=`${xt+vt}.${it}.${bt}${Mt}`):Ht?$t=`>=${vt}.0.0${Mt} <${+vt+1}.0.0-0`:Ot&&($t=`>=${vt}.${it}.0${Mt} <${vt}.${+it+1}.0-0`),ot("xRange return",$t),$t})},hn=(ut,pt)=>(ot("replaceStars",ut,pt),ut.trim().replace(ft[ht.STAR],"")),wt=(ut,pt)=>(ot("replaceGTE0",ut,pt),ut.trim().replace(ft[pt.includePrerelease?ht.GTE0PRE:ht.GTE0],"")),rt=ut=>(pt,mt,$t,xt,vt,it,bt,Mt,Lt,Ht,Ot,Jt)=>(Pt($t)?mt="":Pt(xt)?mt=`>=${$t}.0.0${ut?"-0":""}`:Pt(vt)?mt=`>=${$t}.${xt}.0${ut?"-0":""}`:it?mt=`>=${mt}`:mt=`>=${mt}${ut?"-0":""}`,Pt(Lt)?Mt="":Pt(Ht)?Mt=`<${+Lt+1}.0.0-0`:Pt(Ot)?Mt=`<${Lt}.${+Ht+1}.0-0`:Jt?Mt=`<=${Lt}.${Ht}.${Ot}-${Jt}`:ut?Mt=`<${Lt}.${Ht}.${+Ot+1}-0`:Mt=`<=${Mt}`,`${mt} ${Mt}`.trim()),st=(ut,pt,mt)=>{for(let $t=0;$t<ut.length;$t++)if(!ut[$t].test(pt))return!1;if(pt.prerelease.length&&!mt.includePrerelease){for(let $t=0;$t<ut.length;$t++)if(ot(ut[$t].semver),ut[$t].semver!==tt.ANY&&ut[$t].semver.prerelease.length>0){const xt=ut[$t].semver;if(xt.major===pt.major&&xt.minor===pt.minor&&xt.patch===pt.patch)return!0}return!1}return!0};return range}var comparator,hasRequiredComparator;function requireComparator(){if(hasRequiredComparator)return comparator;hasRequiredComparator=1;const a=Symbol("SemVer ANY");class j{static get ANY(){return a}constructor(dt,yt){if(yt=_e(yt),dt instanceof j){if(dt.loose===!!yt.loose)return dt;dt=dt.value}dt=dt.trim().split(/\s+/).join(" "),ot("comparator",dt,yt),this.options=yt,this.loose=!!yt.loose,this.parse(dt),this.semver===a?this.value="":this.value=this.operator+this.semver.version,ot("comp",this)}parse(dt){const yt=this.options.loose?et[nt.COMPARATORLOOSE]:et[nt.COMPARATOR],Tt=dt.match(yt);if(!Tt)throw new TypeError(`Invalid comparator: ${dt}`);this.operator=Tt[1]!==void 0?Tt[1]:"",this.operator==="="&&(this.operator=""),Tt[2]?this.semver=new ct(Tt[2],this.options.loose):this.semver=a}toString(){return this.value}test(dt){if(ot("Comparator.test",dt,this.options.loose),this.semver===a||dt===a)return!0;if(typeof dt=="string")try{dt=new ct(dt,this.options)}catch{return!1}return tt(dt,this.operator,this.semver,this.options)}intersects(dt,yt){if(!(dt instanceof j))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new ft(dt.value,yt).test(this.value):dt.operator===""?dt.value===""?!0:new ft(this.value,yt).test(dt.semver):(yt=_e(yt),yt.includePrerelease&&(this.value==="<0.0.0-0"||dt.value==="<0.0.0-0")||!yt.includePrerelease&&(this.value.startsWith("<0.0.0")||dt.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&dt.operator.startsWith(">")||this.operator.startsWith("<")&&dt.operator.startsWith("<")||this.semver.version===dt.semver.version&&this.operator.includes("=")&&dt.operator.includes("=")||tt(this.semver,"<",dt.semver,yt)&&this.operator.startsWith(">")&&dt.operator.startsWith("<")||tt(this.semver,">",dt.semver,yt)&&this.operator.startsWith("<")&&dt.operator.startsWith(">")))}}comparator=j;const _e=parseOptions_1,{safeRe:et,t:nt}=reExports,tt=cmp_1,ot=debug_1$1,ct=semver$2,ft=requireRange();return comparator}const Range$9=requireRange(),satisfies$4=(a,j,_e)=>{try{j=new Range$9(j,_e)}catch{return!1}return j.test(a)};var satisfies_1=satisfies$4;const Range$8=requireRange(),toComparators$1=(a,j)=>new Range$8(a,j).set.map(_e=>_e.map(et=>et.value).join(" ").trim().split(" "));var toComparators_1=toComparators$1;const SemVer$4=semver$2,Range$7=requireRange(),maxSatisfying$1=(a,j,_e)=>{let et=null,nt=null,tt=null;try{tt=new Range$7(j,_e)}catch{return null}return a.forEach(ot=>{tt.test(ot)&&(!et||nt.compare(ot)===-1)&&(et=ot,nt=new SemVer$4(et,_e))}),et};var maxSatisfying_1=maxSatisfying$1;const SemVer$3=semver$2,Range$6=requireRange(),minSatisfying$1=(a,j,_e)=>{let et=null,nt=null,tt=null;try{tt=new Range$6(j,_e)}catch{return null}return a.forEach(ot=>{tt.test(ot)&&(!et||nt.compare(ot)===1)&&(et=ot,nt=new SemVer$3(et,_e))}),et};var minSatisfying_1=minSatisfying$1;const SemVer$2=semver$2,Range$5=requireRange(),gt$2=gt_1,minVersion$1=(a,j)=>{a=new Range$5(a,j);let _e=new SemVer$2("0.0.0");if(a.test(_e)||(_e=new SemVer$2("0.0.0-0"),a.test(_e)))return _e;_e=null;for(let et=0;et<a.set.length;++et){const nt=a.set[et];let tt=null;nt.forEach(ot=>{const ct=new SemVer$2(ot.semver.version);switch(ot.operator){case">":ct.prerelease.length===0?ct.patch++:ct.prerelease.push(0),ct.raw=ct.format();case"":case">=":(!tt||gt$2(ct,tt))&&(tt=ct);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${ot.operator}`)}}),tt&&(!_e||gt$2(_e,tt))&&(_e=tt)}return _e&&a.test(_e)?_e:null};var minVersion_1=minVersion$1;const Range$4=requireRange(),validRange$1=(a,j)=>{try{return new Range$4(a,j).range||"*"}catch{return null}};var valid$1=validRange$1;const SemVer$1=semver$2,Comparator$2=requireComparator(),{ANY:ANY$1}=Comparator$2,Range$3=requireRange(),satisfies$3=satisfies_1,gt$1=gt_1,lt$1=lt_1,lte$1=lte_1,gte$1=gte_1,outside$3=(a,j,_e,et)=>{a=new SemVer$1(a,et),j=new Range$3(j,et);let nt,tt,ot,ct,ft;switch(_e){case">":nt=gt$1,tt=lte$1,ot=lt$1,ct=">",ft=">=";break;case"<":nt=lt$1,tt=gte$1,ot=gt$1,ct="<",ft="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies$3(a,j,et))return!1;for(let ht=0;ht<j.set.length;++ht){const dt=j.set[ht];let yt=null,Tt=null;if(dt.forEach(St=>{St.semver===ANY$1&&(St=new Comparator$2(">=0.0.0")),yt=yt||St,Tt=Tt||St,nt(St.semver,yt.semver,et)?yt=St:ot(St.semver,Tt.semver,et)&&(Tt=St)}),yt.operator===ct||yt.operator===ft||(!Tt.operator||Tt.operator===ct)&&tt(a,Tt.semver))return!1;if(Tt.operator===ft&&ot(a,Tt.semver))return!1}return!0};var outside_1=outside$3;const outside$2=outside_1,gtr$1=(a,j,_e)=>outside$2(a,j,">",_e);var gtr_1=gtr$1;const outside$1=outside_1,ltr$1=(a,j,_e)=>outside$1(a,j,"<",_e);var ltr_1=ltr$1;const Range$2=requireRange(),intersects$1=(a,j,_e)=>(a=new Range$2(a,_e),j=new Range$2(j,_e),a.intersects(j,_e));var intersects_1=intersects$1;const satisfies$2=satisfies_1,compare$2=compare_1;var simplify=(a,j,_e)=>{const et=[];let nt=null,tt=null;const ot=a.sort((dt,yt)=>compare$2(dt,yt,_e));for(const dt of ot)satisfies$2(dt,j,_e)?(tt=dt,nt||(nt=dt)):(tt&&et.push([nt,tt]),tt=null,nt=null);nt&&et.push([nt,null]);const ct=[];for(const[dt,yt]of et)dt===yt?ct.push(dt):!yt&&dt===ot[0]?ct.push("*"):yt?dt===ot[0]?ct.push(`<=${yt}`):ct.push(`${dt} - ${yt}`):ct.push(`>=${dt}`);const ft=ct.join(" || "),ht=typeof j.raw=="string"?j.raw:String(j);return ft.length<ht.length?ft:j};const Range$1=requireRange(),Comparator$1=requireComparator(),{ANY}=Comparator$1,satisfies$1=satisfies_1,compare$1=compare_1,subset$1=(a,j,_e={})=>{if(a===j)return!0;a=new Range$1(a,_e),j=new Range$1(j,_e);let et=!1;e:for(const nt of a.set){for(const tt of j.set){const ot=simpleSubset(nt,tt,_e);if(et=et||ot!==null,ot)continue e}if(et)return!1}return!0},minimumVersionWithPreRelease=[new Comparator$1(">=0.0.0-0")],minimumVersion=[new Comparator$1(">=0.0.0")],simpleSubset=(a,j,_e)=>{if(a===j)return!0;if(a.length===1&&a[0].semver===ANY){if(j.length===1&&j[0].semver===ANY)return!0;_e.includePrerelease?a=minimumVersionWithPreRelease:a=minimumVersion}if(j.length===1&&j[0].semver===ANY){if(_e.includePrerelease)return!0;j=minimumVersion}const et=new Set;let nt,tt;for(const St of a)St.operator===">"||St.operator===">="?nt=higherGT(nt,St,_e):St.operator==="<"||St.operator==="<="?tt=lowerLT(tt,St,_e):et.add(St.semver);if(et.size>1)return null;let ot;if(nt&&tt){if(ot=compare$1(nt.semver,tt.semver,_e),ot>0)return null;if(ot===0&&(nt.operator!==">="||tt.operator!=="<="))return null}for(const St of et){if(nt&&!satisfies$1(St,String(nt),_e)||tt&&!satisfies$1(St,String(tt),_e))return null;for(const At of j)if(!satisfies$1(St,String(At),_e))return!1;return!0}let ct,ft,ht,dt,yt=tt&&!_e.includePrerelease&&tt.semver.prerelease.length?tt.semver:!1,Tt=nt&&!_e.includePrerelease&&nt.semver.prerelease.length?nt.semver:!1;yt&&yt.prerelease.length===1&&tt.operator==="<"&&yt.prerelease[0]===0&&(yt=!1);for(const St of j){if(dt=dt||St.operator===">"||St.operator===">=",ht=ht||St.operator==="<"||St.operator==="<=",nt){if(Tt&&St.semver.prerelease&&St.semver.prerelease.length&&St.semver.major===Tt.major&&St.semver.minor===Tt.minor&&St.semver.patch===Tt.patch&&(Tt=!1),St.operator===">"||St.operator===">="){if(ct=higherGT(nt,St,_e),ct===St&&ct!==nt)return!1}else if(nt.operator===">="&&!satisfies$1(nt.semver,String(St),_e))return!1}if(tt){if(yt&&St.semver.prerelease&&St.semver.prerelease.length&&St.semver.major===yt.major&&St.semver.minor===yt.minor&&St.semver.patch===yt.patch&&(yt=!1),St.operator==="<"||St.operator==="<="){if(ft=lowerLT(tt,St,_e),ft===St&&ft!==tt)return!1}else if(tt.operator==="<="&&!satisfies$1(tt.semver,String(St),_e))return!1}if(!St.operator&&(tt||nt)&&ot!==0)return!1}return!(nt&&ht&&!tt&&ot!==0||tt&&dt&&!nt&&ot!==0||Tt||yt)},higherGT=(a,j,_e)=>{if(!a)return j;const et=compare$1(a.semver,j.semver,_e);return et>0?a:et<0||j.operator===">"&&a.operator===">="?j:a},lowerLT=(a,j,_e)=>{if(!a)return j;const et=compare$1(a.semver,j.semver,_e);return et<0?a:et>0||j.operator==="<"&&a.operator==="<="?j:a};var subset_1=subset$1;const internalRe=reExports,constants=constants$1,SemVer=semver$2,identifiers=identifiers$1,parse$7=parse_1,valid=valid_1,clean=clean_1,inc=inc_1,diff=diff_1,major=major_1,minor=minor_1,patch=patch_1,prerelease=prerelease_1,compare=compare_1,rcompare=rcompare_1,compareLoose=compareLoose_1,compareBuild=compareBuild_1,sort=sort_1,rsort=rsort_1,gt=gt_1,lt=lt_1,eq$2=eq_1,neq=neq_1,gte=gte_1,lte=lte_1,cmp=cmp_1,coerce=coerce_1,Comparator=requireComparator(),Range=requireRange(),satisfies=satisfies_1,toComparators=toComparators_1,maxSatisfying=maxSatisfying_1,minSatisfying=minSatisfying_1,minVersion=minVersion_1,validRange=valid$1,outside=outside_1,gtr=gtr_1,ltr=ltr_1,intersects=intersects_1,simplifyRange=simplify,subset=subset_1;var semver={parse:parse$7,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq:eq$2,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers};const semver$1=getDefaultExportFromCjs$1(semver),BLACK_LIST=[`${AUTH_SERVICE_PREFIX}/connect`,`${AUTH_SERVICE_PREFIX}/login`,`${AUTH_SERVICE_PREFIX}/invite`,`${AUTH_SERVICE_PREFIX}/issue-passport`,`${AUTH_SERVICE_PREFIX}/oauth/*`],blackListRoute=BLACK_LIST.map(a=>pathToRegexp$1(a,[]));async function login(){const a=(window==null?void 0:window.blocklet)||{},j=window.location.pathname,{componentId:_e,CHAIN_TYPE:et="arcblock",appPid:nt}=a;if(blackListRoute.some(ct=>ct.exec(j)))return null;const ot=getApps();try{const ft=new URLSearchParams(window.location.search).get("inviter")||localStorage.getItem("inviter"),ht=withQuery(joinURL(window.location.origin,AUTH_SERVICE_PREFIX,"/api/user/loginByWallet"),{inviter:ft});return await default_1$4.asyncCall("arcLogin",{target:ht,chainType:et,appPid:nt,componentId:_e,apps:ot.map(yt=>{let Tt=yt==null?void 0:yt.appLogo;return isUrl(Tt)||(Tt=joinURL(yt.appUrl,Tt)),{appName:yt.appName,appPid:yt.appPid,appUrl:yt.appUrl,appLogo:Tt,sourceAppPid:yt.sourceAppPid}})})}catch(ct){return console.error(ct),null}}async function getVisitorId(){return await default_1$4.asyncCall("arcGetVisitorId")}function checkEnableAutoLogin({platform:a,version:j}={}){return!!(a==="ios"&&j&&semver$1.gte(j,"4.15.6")||a==="android"&&j&&semver$1.gte(j,"4.15.1"))}async function didSpacesIsRequired(a){var nt;if((nt=a==null?void 0:a.didSpace)!=null&&nt.endpoint||!window.blocklet||window.self!==window.top)return!1;const j=getWalletDid(a);if(isEmpty$1(j))return!1;const{componentMountPoints:_e}=window.blocklet,[,et]=window.blocklet.componentId.split("/");return _e.some(tt=>{var ot;return((ot=tt==null?void 0:tt.capabilities)==null?void 0:ot.didSpace)==="requiredOnConnect"&&et===tt.did})}const{Provider:Provider$4,Consumer:Consumer$4}=SessionContext$1,didConnectTimeoutError={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"},waitForDidConnect={en:"DID Connect is already opened, please wait for it to complete",zh:"DID Connect 已打开,请等待完成"};function createSessionContext(a=SESSION_TOKEN_STORAGE_KEY,j="ls",_e={},et={}){var ht;let nt="/";(ht=globalThis==null?void 0:globalThis.blocklet)!=null&&ht.prefix&&(nt=globalThis.blocklet.prefix),typeof et=="boolean"&&(et={appendAuthServicePrefix:et,extraParams:{}}),defaultsDeep$1(et,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:REFRESH_TOKEN_STORAGE_KEY});const tt=createStorage(a,j,_e),ot=createStorage(et.refreshTokenStorageKey,"ls");function ct(dt){var Dn,xn;const{connectApi:yt,connectHolder:Tt}=useConnect(),St=useBrowser(),At=useReactive({extraParams:{},options:{},currentLocale:dt.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof dt.autoConnect=="boolean"?dt.autoConnect:!!dt.autoLogin},get prefix(){return et.appendAuthServicePrefix||dt.appendAuthServicePrefix?joinURL(AUTH_SERVICE_PREFIX,dt.prefix):dt.prefix}}),Rt=useReactive({action:dt.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:""}),It=useCreation(()=>dt.locale||At.currentLocale||getBrowserLang(),[dt.locale,At.currentLocale]),{confirmApi:Ct,confirmHolder:kt}=useConfirm(),Pt=useMemoizedFn(()=>{if(Rt.open){const wn=waitForDidConnect[It]||waitForDidConnect.en;throw Toast$1.warning(wn),new Error(wn)}}),Bt=useCreation(()=>new EventEmitter$6,[]),Kt=useMemoizedFn((wn,jn,Rn)=>{const Pn={login:[EVENTS.LOGIN,EVENTS.CANCEL_LOGIN],"bind-wallet":[EVENTS.BIND_WALLET,EVENTS.CANCEL_BIND_WALLET],"switch-passport":[EVENTS.SWITCH_PASSPORT,EVENTS.CANCEL_SWITCH_PASSPORT],"switch-profile":[EVENTS.SWITCH_PROFILE,EVENTS.CANCEL_SWITCH_PROFILE],"switch-did":[EVENTS.LOGIN,EVENTS.CANCEL_LOGIN]};if(!Object.keys(Pn).includes(wn))return;const tr=async(...Bn)=>{isFunction$8(jn)&&await jn(...Bn),Bt.emit(wn,...Bn)};Bt.once(Pn[wn][0],tr),Bt.once(Pn[wn][1],async(...Bn)=>{isFunction$8(tr)&&Bt.off(Pn[wn][0],tr),isFunction$8(Rn)&&await Rn(...Bn),Bt.emit(`cancel-${wn}`,...Bn)})}),jt=usePrevious(Rt.initialized,(wn,jn)=>wn!==jn||wn===!0&&jn===!0),{handleRefreshUser:zt,handleRefreshToken:Gt,renewToken:tn,clearSession:hn,handleLoginResult:wt,decrypt:rt,service:st,getSessionToken:ut,getRefreshToken:pt,setRefreshToken:mt,setSessionToken:$t}=useSessionToken({state:Rt,pageState:At,sessionTokenStorage:tt,refreshTokenStorage:ot,serviceHost:dt.serviceHost,apiOptions:dt.apiOptions,lazyRefreshToken:dt.lazyRefreshToken}),xt=useMemoizedFn((wn,jn={},Rn={})=>{Pt();const Pn=wn;typeof Pn=="object"&&(wn=Pn.onSuccess,jn=Pn.extraParams||{},Rn=Pn.options||{},Rn.origin=Pn.origin||""),(!Rt.user||Rn.origin==="switch-did")&&(Rn.origin==="switch-did"?Kt("switch-did",wn,Pn==null?void 0:Pn.onCancel):Kt("login",wn,Pn==null?void 0:Pn.onCancel),At.extraParams=jn,At.options=Rn,Rt.action="login",In())}),vt=useMemoizedFn(async(wn,jn={},Rn={})=>{var Fn;Pt();const Pn=wn;typeof Pn=="object"&&(wn=Pn.onSuccess,jn=Pn.extraParams||{},Rn=Pn.options||{}),isUndefined$2(jn==null?void 0:jn.inviter)&&window.localStorage.getItem("inviter")&&(jn.inviter=window.localStorage.getItem("inviter"));const{params:tr}=await decodeUrlParams();if(isUndefined$2(jn==null?void 0:jn.forceConnected)&&(tr!=null&&tr.forceConnected)&&(jn.forceConnected=tr.forceConnected,isUndefined$2(Rn.showQuickConnect)&&(Rn.showQuickConnect=!1)),isUndefined$2(jn==null?void 0:jn.sourceAppPid)&&!isUndefined$2(tr==null?void 0:tr.sourceAppPid)&&(jn.sourceAppPid=tr.sourceAppPid),(jn==null?void 0:jn.openMode)==="redirect"){const Gn=(jn==null?void 0:jn.redirect)||"/",Tr=new URL(`${AUTH_SERVICE_PREFIX}/login`,window.location.origin);Tr.searchParams.set("redirect",Gn),jn!=null&&jn.forceConnected&&Tr.searchParams.set("forceConnected",jn==null?void 0:jn.forceConnected),isUndefined$2(jn==null?void 0:jn.sourceAppPid)||Tr.searchParams.set("sourceAppPid",jn==null?void 0:jn.sourceAppPid),isUndefined$2(jn==null?void 0:jn.inviter)||Tr.searchParams.set("inviter",jn==null?void 0:jn.inviter),Rn!=null&&Rn.origin&&Tr.searchParams.set("origin",Rn.origin),window.location.href=Tr.href;return}let Bn=jn==null?void 0:jn.sourceAppPid;isUndefined$2(Bn)&&An&&(Bn=Tn.appPid),await pWaitFor$1(()=>Rt.initialized),typeof Rn=="string"&&(Rn={origin:Rn});const qn=cloneDeep$1(jn);At.allowWallet=void 0;const $r=(qn==null?void 0:qn.openMode)||((Fn=dt==null?void 0:dt.extraParams)==null?void 0:Fn.openMode);isUndefined$2($r)?At.openMode="window":At.openMode=$r,Bn?Rt.baseUrl=globalThis.blocklet.appUrl:Rt.baseUrl="",xt(wn,qn,Rn)}),it=getVisitorId$2(),bt=useMemoizedFn(async wn=>{const jn=joinURL(AUTH_SERVICE_PREFIX,"/api/user/logout");await fetch(jn,{method:"POST",body:JSON.stringify({visitorId:it}),headers:{"Content-Type":"application/json"}}),hn(),Sn(),Rt.user=null,Rt.provider="",Rt.walletOS="",Rt.error="",Rt.loading=!1,Bt.emit("logout"),typeof wn=="function"&&wn()}),{userSessions:Mt,refresh:Lt,loaded:Ht,loginUserSession:Ot}=useQuickConnect({appPid:getCurrentAppPid(Rt.user),loginAppPid:(Dn=globalThis==null?void 0:globalThis.blocklet)==null?void 0:Dn.appPid,sourceAppPid:(xn=Rt==null?void 0:Rt.user)==null?void 0:xn.sourceAppPid,autoFetch:!1,fetchAll:!0}),Jt=useMemoizedFn(async()=>{Rt!=null&&Rt.user||await new Promise(wn=>{vt(()=>{wn()})})}),Ft=useMemoizedFn((wn,jn={},Rn={})=>{Pt();const Pn=wn;typeof Pn=="object"&&(wn=Pn.onSuccess,jn=Pn.extraParams||{},Rn=Pn.options||{}),typeof Rn=="string"&&(Rn={origin:Rn}),Rn!=null&&Rn.userSession?Ot(Rn.userSession).then(tr=>{updateConnectedInfo({connected_did:Rn.userSession.user.did,connected_pk:Rn.userSession.user.pk,connected_wallet_os:Rn.userSession.extra.walletOS,connected_app:getAppId$1()},!0),Kt("switch-did",wn),wt({...tr,encrypted:!1}),zt({showProgress:!0}).then(async()=>{await sleep$1(),Bt.emit(EVENTS.LOGIN,tr,rt,Yt.current),await Vt()})}):(isUndefined$2(jn==null?void 0:jn.forceConnected)&&(jn.forceConnected=!1),vt(wn,jn,{...Rn,origin:"switch-did"}))}),Zt=useMemoizedFn(async()=>{await new BlockletSDK().user.refreshProfile()}),nn=useMemoizedFn(async(wn,jn={})=>{await Jt(),Pt();const Rn=wn;typeof Rn=="object"&&(wn=Rn.onSuccess,jn=Rn.extraParams||{}),Kt("switch-profile",wn,Rn==null?void 0:Rn.onCancel),At.extraParams=jn,At.options={},Rt.action="switch-profile",In()}),cn=useMemoizedFn(async(wn,jn={})=>{await Jt(),Pt();const Rn=wn;typeof Rn=="object"&&(wn=Rn.onSuccess,jn=Rn.extraParams||{}),Kt("switch-passport",wn,Rn==null?void 0:Rn.onCancel),At.extraParams=jn,At.options={},Rt.action="switch-passport",In()}),qt=useMemoizedFn(async({extraParams:wn={},onSuccess:jn=()=>{},...Rn}={})=>{await Jt(),Pt(),At.extraParams={referrer:window.location.href,purpose:"authorize-for-import",...wn},At.options={},Rt.action="connect-to-did-spaces-for-user",In({hideCloseButton:!0,onSuccess:jn,...Rn})}),Dt=useMemoizedFn(async({extraParams:wn={},onSuccess:jn={}}={})=>{await Jt(),qt({extraParams:{purpose:"authorize-for-import",...wn},onSuccess:jn,hideCloseButton:!1})}),Vt=useMemoizedFn(async({extraParams:wn={},onSuccess:jn={}}={})=>{await Jt(),await didSpacesIsRequired(Rt==null?void 0:Rt.user)&&qt({extraParams:{purpose:"authorize-for-full-access",...wn},onSuccess:jn})}),an=useMemoizedFn(async(wn,jn={})=>{if(await Jt(),getWalletDid(Rt.user)){wn({},rt,Yt.current);return}Pt();const Rn=wn;typeof Rn=="object"&&(wn=Rn.onSuccess),Kt("bind-wallet",wn,Rn==null?void 0:Rn.onCancel),At.extraParams=jn,At.options={},Rt.action="bind-wallet",In()}),Xt=useMemoizedFn(async wn=>{At.extraParams={},At.options={},wt(wn),Rt.loading=!1,await zt({showProgress:!0}),await sleep$1(),Rt.action==="login"?(Bt.emit(EVENTS.LOGIN,wn,rt,Yt.current),Vt()):Rt.action==="switch-passport"&&Bt.emit(EVENTS.SWITCH_PASSPORT,wn,rt,Yt.current)}),pn=useMemoizedFn(wn=>{At.extraParams={},At.options={},wt(wn),Rt.loading=!1,zt({showProgress:!0}).then(async()=>{await sleep$1(),Bt.emit(EVENTS.BIND_WALLET,wn,rt,Yt.current)})}),En=useMemoizedFn(()=>{zt({showProgress:!0}),Bt.emit(EVENTS.CONNECT_TO_DID_SPACE_FOR_FULL_ACCESS)}),sn=useMemoizedFn(wn=>{At.extraParams={},At.options={},Rt.loading=!1,zt({showProgress:!0}).then(async()=>{await sleep$1(),Bt.emit(EVENTS.SWITCH_PROFILE,wn,rt,Yt.current)})}),dn=useMemoizedFn(wn=>{At.extraParams={},At.options={},Sn();const jn={login:EVENTS.CANCEL_LOGIN,"switch-profile":EVENTS.CANCEL_SWITCH_PROFILE,"switch-passport":EVENTS.CANCEL_SWITCH_PASSPORT,"bind-wallet":EVENTS.CANCEL_BIND_WALLET};Bt.emit(jn[wn])}),Mn=useMemoizedFn((wn,...jn)=>{try{$n[wn](...jn)}catch(Rn){console.error("Catch error in onSuccess",{action:wn,args:jn,err:Rn})}}),{federatedMaster:yn,federatedEnabled:An,master:Tn}=useFederated({locale:It,decrypt:rt,login:xt,handleLoginResult:wt,handleRefreshUser:zt,setRefreshToken:mt,setSessionToken:$t}),{checkMatch:gn}=useProtectedRoutes({protectedRoutes:dt.protectedRoutes||[]}),vn=useLatest(Mt),Ln=useMemoizedFn(async()=>(Ht||(await Lt(),await sleep$1()),vn.current)),Sn=useMemoizedFn(()=>{Rt.open=!1,yt.close()}),In=async(wn={})=>{var qn,$r,Fn,Gn,Tr,Vn,Kn;let jn=Rt.action;((qn=At==null?void 0:At.options)==null?void 0:qn.origin)==="switch-did"&&(jn=($r=At==null?void 0:At.options)==null?void 0:$r.origin);const Rn=translations$2[jn],Pn=Rn[It]||Rn.en,tr={...et.extraParams,...dt.extraParams,...At.extraParams,previousUserDid:(Fn=Rt==null?void 0:Rt.user)==null?void 0:Fn.did,email:(Gn=Rt==null?void 0:Rt.user)==null?void 0:Gn.email};if(jn==="switch-did"&&(tr!=null&&tr.forceConnected)){const br=(Un,Yn={})=>translate(translations$2["switch-specified-did"],Un,It,"en",Yn);Pn.title=br("title"),Pn.scan=br("scan",{did:tr.forceConnected}),Pn.confirm=br("confirm"),Pn.success=br("success")}tr==null||delete tr.openMode;const Bn={action:Rt.action,locale:It,hideCloseButton:wn==null?void 0:wn.hideCloseButton,extraParams:tr,options:{...dt.options||{},...At.options},checkTimeout:dt.timeout,webWalletUrl:dt.webWalletUrl,messages:Pn,useSocket:dt.useSocket,...omit$1(dt,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...pick$2(At.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:At.prefix,allowWallet:isUndefined$2(At.allowWallet)?Rt.action!=="login"||(((Tr=globalThis.blocklet)==null?void 0:Tr.DID_CONNECT_ALLOW_WALLET)||"1")==="1":At.allowWallet,onSuccess:async(...br)=>{Mn(Rt.action,...br),isFunction$8(wn==null?void 0:wn.onSuccess)&&await wn.onSuccess(...br),Rt.open=!1},onClose(...br){dn(Rt.action,...br)},onError(br){console.error(br)}};if(Rt.open=!0,["login"].includes(Rt.action)&&At.openMode==="window"&&!St.wallet)try{const br={...Bn,baseUrl:window.location.origin};isUrl(At.prefix)||(br.prefix=joinURL(window.location.origin,dt.serviceHost==="/"?"":dt.serviceHost,At.prefix)),(Vn=br.extraParams)!=null&&Vn.provider||(br.extraParams.provider=((Kn=Rt==null?void 0:Rt.user)==null?void 0:Kn.provider)||"wallet"),await yt.openPopup(br,{locale:It})}catch(br){br instanceof NotOpenError&&Sn(),br.message==="Timeout"?Toast$1.error(didConnectTimeoutError[It]||didConnectTimeoutError.en):console.error(br)}else yt.open(Bn)},Nn=useMemoizedFn(async()=>{const{params:wn,url:jn}=await decodeUrlParams();if(wn){const{switchBehavior:Rn,forceConnected:Pn,sourceAppPid:tr,showClose:Bn}=wn;Pn===Rt.user.did?window.history.replaceState(null,"trim",jn):Rn==="required"?Ft(()=>{},{openMode:"redirect",redirect:jn,sourceAppPid:tr,forceConnected:Pn}):Rn==="disabled"?window.history.replaceState(null,"trim",jn):Ct.open({title:translations$2.switchAccountDialog[It].title,content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:{textAlign:"center",mb:2},children:translations$2.switchAccountDialog[It].description}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",color:colors$1.foregroundsFgBase},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1},children:[jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{did:Rt.user.did,shape:"circle",variant:"circle",size:80}),jsxRuntimeExports.jsx(DID,{did:Rt.user.did,showAvatar:!1,compact:!0,responsive:!1}),translations$2.switchAccountDialog[It].currentAccount]}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",justifyContent:"center",px:2},children:jsxRuntimeExports.jsx(Box,{component:Icon,icon:data$w,fontSize:24,color:colors$1.foregroundsFgMuted,sx:{animation:"right 2.5s linear infinite","@keyframes right":{"0%":{transform:"translateX(-3px)",opacity:0},"60%":{transform:"translateX(3px)",opacity:1},"100%":{transform:"translateX(0px)",opacity:0}}}})}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1,fontWeight:500},children:[jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{did:Pn,shape:"circle",variant:"circle",size:80}),jsxRuntimeExports.jsx(DID,{did:Pn,showAvatar:!1,compact:!0,responsive:!1}),translations$2.switchAccountDialog[It].nextAccount]})]})]}),showCloseButton:Bn,showCancelButton:!1,confirmButtonText:translations$2.switchAccountDialog[It].confirm,async onConfirm(qn){const Fn=(await Ln()).find(Gn=>Gn.userDid===Pn);if(Fn){Ot(Fn).then(Gn=>{updateConnectedInfo({connected_did:Fn.user.did,connected_pk:Fn.user.pk,connected_wallet_os:Fn.extra.walletOS,connected_app:getAppId$1()},!0),wt({...Gn,encrypted:!1}),zt({showProgress:!0}).then(async()=>{await sleep$1(),Bt.emit(EVENTS.LOGIN,Gn,rt,Yt.current),await Vt()})}),qn();return}Ft(()=>{qn(),window.location.replace(jn)},{sourceAppPid:tr,forceConnected:Pn,enableSwitchApp:!1},{showQuickConnect:!0})}})}}),rn=useMemoizedFn(async(wn,jn)=>{const Rn=Object.assign({login:!0,bindWallet:!0,bindDidSpaces:!1},jn==null?void 0:jn.requirements),Pn=(jn==null?void 0:jn.openMode)||"popup";Rn.login&&await Jt(),Rn.bindWallet&&await new Promise(tr=>{an(()=>{tr()})}),Rn.bindDidSpaces&&(await didSpacesIsRequired(Rt==null?void 0:Rt.user)||await new Promise(tr=>{Rn.bindDidSpaces==="full"?Vt({onSuccess(){tr()}}):Rn.bindDidSpaces==="read"&&Dt({onSuccess(){tr()}})})),Pn==="window"?yt.openPopup(wn,jn):Pn==="popup"&&yt.open(wn)}),Ut={...Rt,loading:At.autoConnect&&!Rt.user||Rt.loading,openDidConnect:rn,login:vt,logout:bt,switchDid:Ft,autoSwitchDid:Nn,refreshProfile:Zt,switchProfile:nn,switchPassport:cn,connectToDidSpaceForImport:Dt,connectToDidSpaceForFullAccess:Vt,bindWallet:an,refresh:zt,updateConnectedInfo,federatedMaster:yn,useOAuth,OAuthProvider,OAuthConsumer,OAuthContext,useDid,WrapDid,getUserSessions:Ln},Yt=useLatest(Ut),fn={api:st,events:Bt,storage:tt,connectApi:yt,session:Yt.current},$n={login:Xt,"switch-profile":sn,"switch-passport":Xt,"bind-wallet":pn,"connect-to-did-spaces-for-user":En};return useUpdateEffect(()=>{if(Rt.initialized){const wn=!jt;Bt.emit("change",{user:cloneDeep$1(Rt.user),isFirst:wn})}},[Rt.user,Rt.initialized,Bt]),useUpdateEffect(()=>{Rt.initialized&&Rt.user&&Nn()},[Rt.initialized]),useMount(async()=>{default_1$4.registerAsyn("blocklet:logout",bt);const wn=Cookie.get("connected_app"),jn=getAppId$1();if(dt.autoDisconnect&&wn&&jn&&wn!==jn){hn(),Rt.initialized=!0,At.autoConnect?In():Sn();return}const Rn=ut();let Pn="web";if(St.mobile.apple.device?Pn="ios":St.mobile.android.device&&(Pn="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&St.wallet&&checkEnableAutoLogin({version:St.walletVersion,platform:Pn})){if(!it){const Bn=await getVisitorId();setVisitorId(Bn)}if(!Rn)try{Rt.loading=!0;const Bn=await login();if(Bn){await Xt({sessionToken:Bn.sessionToken,refreshToken:Bn.refreshToken,encrypted:!1}),Rt.initialized=!0;return}}finally{Rt.loading=!1}}if(Rn){await zt({showProgress:!0}),Rt.initialized=!0,await Vt();return}if(typeof window<"u"){const Bn=new URL(window.location.href),qn=Bn.searchParams.get("loginToken");if(qn){wt({loginToken:qn,encrypted:!1}),Bn.searchParams.delete("loginToken"),window.history.replaceState({},window.title,Bn.href);return}}if(pt()){await Gt(!0),Rt.initialized=!0;return}try{}catch(Bn){console.error("Federated: tryAutoLogin failed",Bn)}finally{Rt.initialized=!0}At.autoConnect?In():Sn()}),gn()&&!Rt.initialized?jsxRuntimeExports.jsx(Center,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):jsxRuntimeExports.jsx(Provider$4,{value:fn,children:jsxRuntimeExports.jsxs(OAuthProvider,{locale:It,onSwitchPassport:({sessionToken:wn,refreshToken:jn})=>{Xt({sessionToken:wn,refreshToken:jn,encrypted:!1})},onUnbindOAuth:()=>{zt()},onBindOAuth:()=>{zt()},children:[!Rt.open&&typeof dt.children=="function"?dt.children(Rt):dt.children,Tt,kt,et.rolling&&jsxRuntimeExports.jsx(WindowFocusAware,{callback:()=>tn()})]})})}ct.propTypes={children:PropTypes.any.isRequired,serviceHost:PropTypes.string,action:PropTypes.string,prefix:PropTypes.string,appendAuthServicePrefix:PropTypes.bool,locale:PropTypes.string,timeout:PropTypes.number,autoConnect:PropTypes.bool,autoDisconnect:PropTypes.bool,useSocket:PropTypes.bool,extraParams:PropTypes.object,options:PropTypes.object,webWalletUrl:PropTypes.string,protectedRoutes:PropTypes.arrayOf(PropTypes.string),apiOptions:PropTypes.object,lazyRefreshToken:PropTypes.bool},ct.defaultProps={serviceHost:nt,locale:"",action:"login",prefix:API_DID_PREFIX,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:DEFAULT_TIMEOUT$1*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function ft(dt){return function(Tt){return jsxRuntimeExports.jsx(ToastProvider,{children:jsxRuntimeExports.jsx(Consumer$4,{children:St=>jsxRuntimeExports.jsx(dt,{...Tt,...St})})})}}return{SessionProvider:dt=>jsxRuntimeExports.jsx(ToastProvider,{children:jsxRuntimeExports.jsx(ct,{...dt})}),SessionConsumer:Consumer$4,SessionContext:SessionContext$1,withSession:ft}}let path="/";window.env&&(path=window.env.groupPathPrefix||window.env.pathPrefix||"/");function formatCacheTtl(a,j){return[void 0,null,""].includes(a)?j:a/86400}var uo,co,fo;const sessionTokenExpireInDays=formatCacheTtl((fo=(co=(uo=window.blocklet)==null?void 0:uo.settings)==null?void 0:co.session)==null?void 0:fo.cacheTtl,constant$3.SESSION_CACHE_TTL/86400);var po,ho,mo;const refreshTokenExpireInDays=formatCacheTtl((mo=(ho=(po=window.blocklet)==null?void 0:po.settings)==null?void 0:ho.session)==null?void 0:mo.ttl,constant$3.SESSION_TTL/86400),{SessionProvider,SessionContext,SessionConsumer,withSession}=createSessionContext("login_token","cookie",{returnDomain:!1,path,expireInDays:sessionTokenExpireInDays},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays});function useSessionContext(){return reactExports.useContext(SessionContext)}function Root$1({children:a}){const j=create$3({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return jsxRuntimeExports.jsx(StyledEngineProvider,{injectFirst:!0,children:jsxRuntimeExports.jsx(ThemeProvider$1,{theme:j,children:jsxRuntimeExports.jsx(ThemeProvider$4,{theme:j,children:jsxRuntimeExports.jsx(LocaleProvider,{translations:translations$9,fallbackLocale:"en",children:jsxRuntimeExports.jsx(ToastProvider,{children:jsxRuntimeExports.jsx(RootInside,{theme:j,children:a})})})})})})}const url$1=new URL(window.location.href),mode=url$1.searchParams.get("mode")||"",isEmbedDialog=url$1.pathname.includes("embed")&&mode==="dialog",isEmbedSection=url$1.pathname.includes("embed")&&mode!=="dialog";function RootInside({children:a,theme:j}){var nt,tt,ot;const{locale:_e}=useLocaleContext(),et=css`
|
|
471
|
+
`),()=>this.onerror("timeout"),j=>{this.awaitingBatchAck=!1,!j||j.status!==200?(this.onerror(j&&j.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(a,j,_e){for(let nt of this.reqs)nt.abort();this.readyState=SOCKET_STATES.closed;let et=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:a,reason:j,wasClean:_e});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",et)):this.onclose(et)}ajax(a,j,_e,et,nt){let tt,ot=()=>{this.reqs.delete(tt),et()};tt=Ajax.request(a,this.endpointURL(),j,_e,this.timeout,ot,ct=>{this.reqs.delete(tt),this.isActive()&&nt(ct)}),this.reqs.add(tt)}},Presence=class{constructor(a,j={}){let _e=j.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=a,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(_e.state,et=>{let{onJoin:nt,onLeave:tt,onSync:ot}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Presence.syncState(this.state,et,nt,tt),this.pendingDiffs.forEach(ct=>{this.state=Presence.syncDiff(this.state,ct,nt,tt)}),this.pendingDiffs=[],ot()}),this.channel.on(_e.diff,et=>{let{onJoin:nt,onLeave:tt,onSync:ot}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(et):(this.state=Presence.syncDiff(this.state,et,nt,tt),ot())})}onJoin(a){this.caller.onJoin=a}onLeave(a){this.caller.onLeave=a}onSync(a){this.caller.onSync=a}list(a){return Presence.list(this.state,a)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(a,j,_e,et){let nt=this.clone(a),tt={},ot={};return this.map(nt,(ct,ft)=>{j[ct]||(ot[ct]=ft)}),this.map(j,(ct,ft)=>{let ht=nt[ct];if(ht){let dt=ft.metas.map(At=>At.phx_ref),yt=ht.metas.map(At=>At.phx_ref),Tt=ft.metas.filter(At=>yt.indexOf(At.phx_ref)<0),St=ht.metas.filter(At=>dt.indexOf(At.phx_ref)<0);Tt.length>0&&(tt[ct]=ft,tt[ct].metas=Tt),St.length>0&&(ot[ct]=this.clone(ht),ot[ct].metas=St)}else tt[ct]=ft}),this.syncDiff(nt,{joins:tt,leaves:ot},_e,et)}static syncDiff(a,j,_e,et){let{joins:nt,leaves:tt}=this.clone(j);return _e||(_e=function(){}),et||(et=function(){}),this.map(nt,(ot,ct)=>{let ft=a[ot];if(a[ot]=this.clone(ct),ft){let ht=a[ot].metas.map(yt=>yt.phx_ref),dt=ft.metas.filter(yt=>ht.indexOf(yt.phx_ref)<0);a[ot].metas.unshift(...dt)}_e(ot,ft,ct)}),this.map(tt,(ot,ct)=>{let ft=a[ot];if(!ft)return;let ht=ct.metas.map(dt=>dt.phx_ref);ft.metas=ft.metas.filter(dt=>ht.indexOf(dt.phx_ref)<0),et(ot,ft,ct),ft.metas.length===0&&delete a[ot]}),a}static list(a,j){return j||(j=function(_e,et){return et}),this.map(a,(_e,et)=>j(_e,et))}static map(a,j){return Object.getOwnPropertyNames(a).map(_e=>j(_e,a[_e]))}static clone(a){return JSON.parse(JSON.stringify(a))}},serializer_default={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(a,j){if(a.payload.constructor===ArrayBuffer)return j(this.binaryEncode(a));{let _e=[a.join_ref,a.ref,a.topic,a.event,a.payload];return j(JSON.stringify(_e))}},decode(a,j){if(a.constructor===ArrayBuffer)return j(this.binaryDecode(a));{let[_e,et,nt,tt,ot]=JSON.parse(a);return j({join_ref:_e,ref:et,topic:nt,event:tt,payload:ot})}},binaryEncode(a){let{join_ref:j,ref:_e,event:et,topic:nt,payload:tt}=a,ot=this.META_LENGTH+j.length+_e.length+nt.length+et.length,ct=new ArrayBuffer(this.HEADER_LENGTH+ot),ft=new DataView(ct),ht=0;ft.setUint8(ht++,this.KINDS.push),ft.setUint8(ht++,j.length),ft.setUint8(ht++,_e.length),ft.setUint8(ht++,nt.length),ft.setUint8(ht++,et.length),Array.from(j,yt=>ft.setUint8(ht++,yt.charCodeAt(0))),Array.from(_e,yt=>ft.setUint8(ht++,yt.charCodeAt(0))),Array.from(nt,yt=>ft.setUint8(ht++,yt.charCodeAt(0))),Array.from(et,yt=>ft.setUint8(ht++,yt.charCodeAt(0)));var dt=new Uint8Array(ct.byteLength+tt.byteLength);return dt.set(new Uint8Array(ct),0),dt.set(new Uint8Array(tt),ct.byteLength),dt.buffer},binaryDecode(a){let j=new DataView(a),_e=j.getUint8(0),et=new TextDecoder;switch(_e){case this.KINDS.push:return this.decodePush(a,j,et);case this.KINDS.reply:return this.decodeReply(a,j,et);case this.KINDS.broadcast:return this.decodeBroadcast(a,j,et)}},decodePush(a,j,_e){let et=j.getUint8(1),nt=j.getUint8(2),tt=j.getUint8(3),ot=this.HEADER_LENGTH+this.META_LENGTH-1,ct=_e.decode(a.slice(ot,ot+et));ot=ot+et;let ft=_e.decode(a.slice(ot,ot+nt));ot=ot+nt;let ht=_e.decode(a.slice(ot,ot+tt));ot=ot+tt;let dt=a.slice(ot,a.byteLength);return{join_ref:ct,ref:null,topic:ft,event:ht,payload:dt}},decodeReply(a,j,_e){let et=j.getUint8(1),nt=j.getUint8(2),tt=j.getUint8(3),ot=j.getUint8(4),ct=this.HEADER_LENGTH+this.META_LENGTH,ft=_e.decode(a.slice(ct,ct+et));ct=ct+et;let ht=_e.decode(a.slice(ct,ct+nt));ct=ct+nt;let dt=_e.decode(a.slice(ct,ct+tt));ct=ct+tt;let yt=_e.decode(a.slice(ct,ct+ot));ct=ct+ot;let Tt=a.slice(ct,a.byteLength),St={status:yt,response:Tt};return{join_ref:ft,ref:ht,topic:dt,event:CHANNEL_EVENTS.reply,payload:St}},decodeBroadcast(a,j,_e){let et=j.getUint8(1),nt=j.getUint8(2),tt=this.HEADER_LENGTH+2,ot=_e.decode(a.slice(tt,tt+et));tt=tt+et;let ct=_e.decode(a.slice(tt,tt+nt));tt=tt+nt;let ft=a.slice(tt,a.byteLength);return{join_ref:null,ref:null,topic:ot,event:ct,payload:ft}}},Socket$1=class{constructor(j,_e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=_e.timeout||DEFAULT_TIMEOUT,this.transport=_e.transport||global$1.WebSocket||LongPoll,this.establishedConnections=0,this.defaultEncoder=serializer_default.encode.bind(serializer_default),this.defaultDecoder=serializer_default.decode.bind(serializer_default),this.closeWasClean=!1,this.binaryType=_e.binaryType||"arraybuffer",this.connectClock=1,this.transport!==LongPoll?(this.encode=_e.encode||this.defaultEncoder,this.decode=_e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let et=null;phxWindow&&phxWindow.addEventListener&&(phxWindow.addEventListener("pagehide",nt=>{this.conn&&(this.disconnect(),et=this.connectClock)}),phxWindow.addEventListener("pageshow",nt=>{et===this.connectClock&&(et=null,this.connect())})),this.heartbeatIntervalMs=_e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=nt=>_e.rejoinAfterMs?_e.rejoinAfterMs(nt):[1e3,2e3,5e3][nt-1]||1e4,this.reconnectAfterMs=nt=>_e.reconnectAfterMs?_e.reconnectAfterMs(nt):[10,50,100,150,200,250,500,1e3,2e3][nt-1]||5e3,this.logger=_e.logger||null,this.longpollerTimeout=_e.longpollerTimeout||2e4,this.params=closure(_e.params||{}),this.endPoint=`${j}/${TRANSPORTS.websocket}`,this.vsn=_e.vsn||DEFAULT_VSN,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Timer(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return LongPoll}replaceTransport(j){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=j}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let j=Ajax.appendParams(Ajax.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return j.charAt(0)!=="/"?j:j.charAt(1)==="/"?`${this.protocol()}:${j}`:`${this.protocol()}://${location.host}${j}`}disconnect(j,_e,et){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(j,_e,et)}connect(j){j&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=closure(j)),!this.conn&&(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=_e=>this.onConnError(_e),this.conn.onmessage=_e=>this.onConnMessage(_e),this.conn.onclose=_e=>this.onConnClose(_e))}log(j,_e,et){this.logger(j,_e,et)}hasLogger(){return this.logger!==null}onOpen(j){let _e=this.makeRef();return this.stateChangeCallbacks.open.push([_e,j]),_e}onClose(j){let _e=this.makeRef();return this.stateChangeCallbacks.close.push([_e,j]),_e}onError(j){let _e=this.makeRef();return this.stateChangeCallbacks.error.push([_e,j]),_e}onMessage(j){let _e=this.makeRef();return this.stateChangeCallbacks.message.push([_e,j]),_e}ping(j){if(!this.isConnected())return!1;let _e=this.makeRef(),et=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:_e});let nt=this.onMessage(tt=>{tt.ref===_e&&(this.off([nt]),j(Date.now()-et))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,j])=>j())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),WS_CLOSE_NORMAL,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(j,_e,et){if(!this.conn)return j&&j();this.waitForBufferDone(()=>{this.conn&&(_e?this.conn.close(_e,et||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),j&&j()})})}waitForBufferDone(j,_e=1){if(_e===5||!this.conn||!this.conn.bufferedAmount){j();return}setTimeout(()=>{this.waitForBufferDone(j,_e+1)},150*_e)}waitForSocketClosed(j,_e=1){if(_e===5||!this.conn||this.conn.readyState===SOCKET_STATES.closed){j();return}setTimeout(()=>{this.waitForSocketClosed(j,_e+1)},150*_e)}onConnClose(j){let _e=j&&j.code;this.hasLogger()&&this.log("transport","close",j),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&_e!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,et])=>et(j))}onConnError(j){this.hasLogger()&&this.log("transport",j);let _e=this.transport,et=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,nt])=>{nt(j,_e,et)}),(_e===this.transport||et>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(j=>{j.isErrored()||j.isLeaving()||j.isClosed()||j.trigger(CHANNEL_EVENTS.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case SOCKET_STATES.connecting:return"connecting";case SOCKET_STATES.open:return"open";case SOCKET_STATES.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(j){this.off(j.stateChangeRefs),this.channels=this.channels.filter(_e=>_e.joinRef()!==j.joinRef())}off(j){for(let _e in this.stateChangeCallbacks)this.stateChangeCallbacks[_e]=this.stateChangeCallbacks[_e].filter(([et])=>j.indexOf(et)===-1)}channel(j,_e={}){let et=new Channel(j,_e,this);return this.channels.push(et),et}push(j){if(this.hasLogger()){let{topic:_e,event:et,payload:nt,ref:tt,join_ref:ot}=j;this.log("push",`${_e} ${et} (${ot}, ${tt})`,nt)}this.isConnected()?this.encode(j,_e=>this.conn.send(_e)):this.sendBuffer.push(()=>this.encode(j,_e=>this.conn.send(_e)))}makeRef(){let j=this.ref+1;return j===this.ref?this.ref=0:this.ref=j,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(j=>j()),this.sendBuffer=[])}onConnMessage(j){this.decode(j.data,_e=>{let{topic:et,event:nt,payload:tt,ref:ot,join_ref:ct}=_e;ot&&ot===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${tt.status||""} ${et} ${nt} ${ot&&"("+ot+")"||""}`,tt);for(let ft=0;ft<this.channels.length;ft++){const ht=this.channels[ft];ht.isMember(et,nt,tt,ct)&&ht.trigger(nt,tt,ot,ct)}for(let ft=0;ft<this.stateChangeCallbacks.message.length;ft++){let[,ht]=this.stateChangeCallbacks.message[ft];ht(_e)}})}leaveOpenTopic(j){let _e=this.channels.find(et=>et.topic===j&&(et.isJoined()||et.isJoining()));_e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${j}"`),_e.leave())}},browser$5={exports:{}},s=1e3,m=s*60,h=m*60,d=h*24,w=d*7,y=d*365.25,ms=function(a,j){j=j||{};var _e=typeof a;if(_e==="string"&&a.length>0)return parse$e(a);if(_e==="number"&&isFinite(a))return j.long?fmtLong(a):fmtShort(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))};function parse$e(a){if(a=String(a),!(a.length>100)){var j=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(j){var _e=parseFloat(j[1]),et=(j[2]||"ms").toLowerCase();switch(et){case"years":case"year":case"yrs":case"yr":case"y":return _e*y;case"weeks":case"week":case"w":return _e*w;case"days":case"day":case"d":return _e*d;case"hours":case"hour":case"hrs":case"hr":case"h":return _e*h;case"minutes":case"minute":case"mins":case"min":case"m":return _e*m;case"seconds":case"second":case"secs":case"sec":case"s":return _e*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return _e;default:return}}}}function fmtShort(a){var j=Math.abs(a);return j>=d?Math.round(a/d)+"d":j>=h?Math.round(a/h)+"h":j>=m?Math.round(a/m)+"m":j>=s?Math.round(a/s)+"s":a+"ms"}function fmtLong(a){var j=Math.abs(a);return j>=d?plural(a,j,d,"day"):j>=h?plural(a,j,h,"hour"):j>=m?plural(a,j,m,"minute"):j>=s?plural(a,j,s,"second"):a+" ms"}function plural(a,j,_e,et){var nt=j>=_e*1.5;return Math.round(a/_e)+" "+et+(nt?"s":"")}const ms$1=getDefaultExportFromCjs$1(ms);function setup(a){_e.debug=_e,_e.default=_e,_e.coerce=ft,_e.disable=tt,_e.enable=nt,_e.enabled=ot,_e.humanize=ms,_e.destroy=ht,Object.keys(a).forEach(dt=>{_e[dt]=a[dt]}),_e.names=[],_e.skips=[],_e.formatters={};function j(dt){let yt=0;for(let Tt=0;Tt<dt.length;Tt++)yt=(yt<<5)-yt+dt.charCodeAt(Tt),yt|=0;return _e.colors[Math.abs(yt)%_e.colors.length]}_e.selectColor=j;function _e(dt){let yt,Tt=null,St,At;function Rt(...It){if(!Rt.enabled)return;const Ct=Rt,kt=Number(new Date),Pt=kt-(yt||kt);Ct.diff=Pt,Ct.prev=yt,Ct.curr=kt,yt=kt,It[0]=_e.coerce(It[0]),typeof It[0]!="string"&&It.unshift("%O");let Bt=0;It[0]=It[0].replace(/%([a-zA-Z%])/g,(jt,zt)=>{if(jt==="%%")return"%";Bt++;const Gt=_e.formatters[zt];if(typeof Gt=="function"){const tn=It[Bt];jt=Gt.call(Ct,tn),It.splice(Bt,1),Bt--}return jt}),_e.formatArgs.call(Ct,It),(Ct.log||_e.log).apply(Ct,It)}return Rt.namespace=dt,Rt.useColors=_e.useColors(),Rt.color=_e.selectColor(dt),Rt.extend=et,Rt.destroy=_e.destroy,Object.defineProperty(Rt,"enabled",{enumerable:!0,configurable:!1,get:()=>Tt!==null?Tt:(St!==_e.namespaces&&(St=_e.namespaces,At=_e.enabled(dt)),At),set:It=>{Tt=It}}),typeof _e.init=="function"&&_e.init(Rt),Rt}function et(dt,yt){const Tt=_e(this.namespace+(typeof yt>"u"?":":yt)+dt);return Tt.log=this.log,Tt}function nt(dt){_e.save(dt),_e.namespaces=dt,_e.names=[],_e.skips=[];let yt;const Tt=(typeof dt=="string"?dt:"").split(/[\s,]+/),St=Tt.length;for(yt=0;yt<St;yt++)Tt[yt]&&(dt=Tt[yt].replace(/\*/g,".*?"),dt[0]==="-"?_e.skips.push(new RegExp("^"+dt.slice(1)+"$")):_e.names.push(new RegExp("^"+dt+"$")))}function tt(){const dt=[..._e.names.map(ct),..._e.skips.map(ct).map(yt=>"-"+yt)].join(",");return _e.enable(""),dt}function ot(dt){if(dt[dt.length-1]==="*")return!0;let yt,Tt;for(yt=0,Tt=_e.skips.length;yt<Tt;yt++)if(_e.skips[yt].test(dt))return!1;for(yt=0,Tt=_e.names.length;yt<Tt;yt++)if(_e.names[yt].test(dt))return!0;return!1}function ct(dt){return dt.toString().substring(2,dt.toString().length-2).replace(/\.\*\?$/,"*")}function ft(dt){return dt instanceof Error?dt.stack||dt.message:dt}function ht(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return _e.enable(_e.load()),_e}var common$1=setup;(function(a,j){var _e={};j.formatArgs=nt,j.save=tt,j.load=ot,j.useColors=et,j.storage=ct(),j.destroy=(()=>{let ht=!1;return()=>{ht||(ht=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),j.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function et(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let ht;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(ht=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(ht[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function nt(ht){if(ht[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+ht[0]+(this.useColors?"%c ":" ")+"+"+a.exports.humanize(this.diff),!this.useColors)return;const dt="color: "+this.color;ht.splice(1,0,dt,"color: inherit");let yt=0,Tt=0;ht[0].replace(/%[a-zA-Z%]/g,St=>{St!=="%%"&&(yt++,St==="%c"&&(Tt=yt))}),ht.splice(Tt,0,dt)}j.log=console.debug||console.log||(()=>{});function tt(ht){try{ht?j.storage.setItem("debug",ht):j.storage.removeItem("debug")}catch{}}function ot(){let ht;try{ht=j.storage.getItem("debug")}catch{}return!ht&&typeof process$1$1<"u"&&"env"in process$1$1&&(ht=_e.DEBUG),ht}function ct(){try{return localStorage}catch{}}a.exports=common$1(j);const{formatters:ft}=a.exports;ft.j=function(ht){try{return JSON.stringify(ht)}catch(dt){return"[UnexpectedJSONParseError]: "+dt.message}}})(browser$5,browser$5.exports);var browserExports=browser$5.exports;const debug$4=browserExports;var logger=(a,j=!1)=>{const _e=debug$4(["@arcblock/ws",a].join(":"));return{debug:_e,warn:_e,info:_e,trace:j?_e:console.error,error:j?_e:console.error}};const createLogger=logger;var base$2=(a,j,_e)=>class extends a{constructor(nt,tt={}){super(nt,{transport:_e,...tt}),this._logger=createLogger("client",tt.silent),this.emitter=new j,this.onOpen(()=>{this._logger.debug("socket open",nt)}),this.onClose(()=>{this._logger.debug("socket close",nt)}),this.onError(ot=>{this._logger.error("socket error",ot.error)}),this.onMessage(ot=>{this._logger.debug("socket message",ot)})}on(nt,tt,ot={}){this.ensureJoinChannel(nt,ot),this.emitter.on(nt,tt)}off(nt,tt){tt?this.emitter.off(nt,tt):this.emitter.removeAllListeners(nt),this.ensureLeaveChannel(nt)}disconnect(nt,tt,ot){this.emitter.eventNames().forEach(ct=>{this.emitter.removeAllListeners(ct)}),super.disconnect(nt,tt,ot)}ensureJoinChannel(nt,tt={}){if(this.emitter.listenerCount(nt)>0)return;const ct=this.channel(nt,tt);ct.join().receive("ok",ft=>{this._logger.debug("join success",{topic:nt,message:ft})}).receive("error",ft=>{this._logger.error("join error",{topic:nt,error:ft})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:nt})}),ct.on(nt,({status:ft,response:ht})=>{ft==="ok"?this.emitter.emit(nt,ht):this._logger.debug("response error",{topic:nt,status:ft,data:ht})})}ensureLeaveChannel(nt){if(this.emitter.listenerCount(nt)>0)return;const ot=this.channels.find(ct=>ct.topic===nt);ot&&(this.remove(ot),ot.leave().receive("ok",ct=>{this._logger.debug("leave success",{topic:nt,message:ct})}).receive("error",ct=>{this._logger.error("leave error",{topic:nt,err:ct})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:nt})}),ot.off(nt))}subscribe(nt,tt={}){let ot=this.channels.find(ct=>ct.topic===nt);return ot||(ot=this.channel(nt,tt),ot.join().receive("ok",ct=>{this._logger.debug("join success",{topic:nt,message:ct})}).receive("error",ct=>{this._logger.error("join error",{topic:nt,error:ct})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:nt})}),ot)}unsubscribe(nt){this.ensureLeaveChannel(nt)}};const EventEmitter$3=eventemitter3Exports,{Socket}=phoenix_cjs,createClient=base$2;var browser$4=createClient(Socket,EventEmitter$3);const WsClient$1=browser$4;var browser$3={WsClient:WsClient$1};function usePageShow(a){const j=reactExports.useRef(a);reactExports.useEffect(()=>{j.current=a},[a]),reactExports.useEffect(()=>{const _e=et=>{!document.hidden&&j.current&&j.current(et)};return document.addEventListener("visibilitychange",_e),()=>{document.removeEventListener("visibilitychange",_e)}},[])}function getSocketHost(a){const j=a||window.location.href;return new URL(j).host}function getExtraHeaders(a){const j={},_e=a||window.location.href;if(_e){const{hostname:et,protocol:nt,port:tt}=new URL(_e);j["x-real-hostname"]=et,j["x-real-port"]=tt,j["x-real-protocol"]=nt.endsWith(":")?nt.substring(0,nt.length-1):nt}return j}const fns={};function createTokenFn({action:a,prefix:j,checkFn:_e,extraParams:et,baseUrl:nt}){const tt=`${j}/token?${stringifyQuery$1(et)}`;return fns[tt]||(fns[tt]=async function(){var yt,Tt;const ct=+new Date,ft=await _e(tt,{headers:getExtraHeaders(nt)}),ht=+new Date;if(ht-ct<500&&await sleep$1(500-(ht-ct)),(yt=ft==null?void 0:ft.data)!=null&&yt.token)return ft.data;if((Tt=ft==null?void 0:ft.data)!=null&&Tt.error)throw new Error(ft.data.error);const dt=isUrl(j)?j:`${nt}${j}`;throw new Error(`Error generating ${a} qrcode from: ${dt}`)}),fns[tt]}const parseExistingSession=()=>{try{const j=new URL(window.location.href).searchParams.get("__connect_url__");if(!j)return null;const _e=decodeConnectUrl(j);return{token:parseTokenFromConnectUrl(_e),url:_e}}catch(a){return{error:a}}},getAppId=()=>get$6(globalThis,"blocklet.appPid")||get$6(globalThis,"blocklet.appId")||get$6(globalThis,"env.appId")||"",getAppPrefix=()=>(get$6(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(RELAY_SOCKET_PREFIX,""),getRelayChannel=a=>`relay:${getAppId()}:${a}`,getRelayProtocol=()=>window.location.protocol==="https:"?"wss:":"ws:",isSameOrigin=a=>!a||new URL(a).origin===window.location.origin,isSessionEnded=a=>["succeed","error","timeout","busy"].includes(a);function useToken({action:a,checkFn:j,checkInterval:_e,checkTimeout:et,extraParams:nt,locale:tt,prefix:ot,tokenKey:ct,encKey:ft,onError:ht,onSuccess:dt,baseUrl:yt,autoConnect:Tt=!0,forceConnected:St=!0,saveConnect:At=!0,useSocket:Rt=!0,provider:It="wallet"}){const Ct=useReactive({checking:!1,loading:!1,token:"",url:"",store:null,status:"created",error:"",checkCount:0,mfaCode:0,appInfo:null,memberAppInfo:null,connectedDid:"",saveConnect:!1,inExistingSession:!1,nextWorkflow:"",baseUrl:yt,prefix:`${ot}/${a}`,extraParams:omitBy$1(nt,isNil$1),checkFn:j,results:{},action:a,provider:It}),kt=reactExports.useRef(null),Pt=translations$3[tt]||translations$3.en,Bt=useCreation(()=>parseExistingSession(),[]),Kt=Math.ceil(et/_e),jt=useReactive({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:zt,decrypt:Gt}=useSecurity(),tn=useBrowser(),hn=getVisitorId$2(),wt=reactExports.useRef(null),rt=reactExports.useRef(null),st={...Ct.extraParams,locale:tt,[ct]:Ct.token||(Bt==null?void 0:Bt.token),provider:Ct.provider},ut=async()=>{if(!(Bt!=null&&Bt.token&&(Bt==null?void 0:Bt.token)===Ct.token)){try{st[ct]&&Ct.status==="created"&&await Ct.checkFn(`${Ct.prefix}/timeout?${stringifyQuery$1(st)}`,{headers:getExtraHeaders(Ct.baseUrl)})}catch{}try{Ct.token&&rt.current&&(await wt.current.unsubscribe(getRelayChannel(Ct.token)),rt.current=null)}catch{}}},pt=useMemoizedFn((...Lt)=>{const Ht={[ft]:zt,...Ct.extraParams,locale:tt,forceConnected:St,autoConnect:Tt&&!tn.wallet&&!jt.cancelWhenScannedCounter&&["ios","android"].includes(Cookie.get("connected_wallet_os")),provider:Ct.provider};hn&&(Ht.visitorId=hn);const Ot=omit$1(kt.current||{},["sourceAppPid","verbose"]);return Object.keys(Ot).forEach(Ft=>{(!Ht[Ft]||Ft===ft&&Ot[Ft])&&(Ht[Ft]=Ot[Ft])}),Bt!=null&&Bt.token&&!Ht.sourceToken&&(Ht.sourceToken=Bt==null?void 0:Bt.token),createTokenFn({action:a,prefix:Ct.prefix,baseUrl:Ct.baseUrl,checkFn:Ct.checkFn,extraParams:Ht})(...Lt)}),mt=useMemoizedFn(async(Lt=!0)=>{Lt&&ut();try{Ct.loading=!0,Ct.token="",Ct.url="",Ct.store=null,Ct.extraParams=omitBy$1(nt,isNil$1),await sleep$1();const Ht=await pt(),Ot=Ht.extra||{};Ct.loading=!1,Ct.token=Ht.token,Ct.url=Ht.url,Ct.status="created",Ct.error="",Ct.checkCount=0,Ct.appInfo=Ht.appInfo,Ct.memberAppInfo=Ht.memberAppInfo,Ct.connectedDid=Ot.connectedDid,Ct.saveConnect=Ot.saveConnect}catch(Ht){Ct.loading=!1,Ct.status="error",Ct.error=`${Pt.generateError}: ${Ht.message}`}}),$t=()=>{jt.cancelWhenScannedCounter++};reactExports.useEffect(()=>{jt.cancelWhenScannedCounter>0&&(nt.nw?ht(new Error(Pt.retryForbidden)):mt())},[jt.cancelWhenScannedCounter]),reactExports.useEffect(()=>(Rt&&isSameOrigin(Ct.baseUrl)&&getAppId()?(!wt.current||wt.current.isConnected()===!1||wt.current.baseUrl!==Ct.baseUrl)&&(wt.current=new browser$3.WsClient(`${getRelayProtocol()}//${getSocketHost(Ct.baseUrl)}${getAppPrefix()}${RELAY_SOCKET_PREFIX}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),wt.current.baseUrl=Ct.baseUrl,wt.current.onOpen(()=>{jt.isSocketAvailable=!0}),wt.current.connect()):jt.isSocketAvailable&&(jt.isSocketAvailable=!1),()=>{wt.current&&(wt.current.disconnect(),wt.current=null)}),[Ct.baseUrl]);const xt=()=>!Ct.token||Ct.loading||isSessionEnded(Ct.status)?null:_e,vt=reactExports.useRef(null);reactExports.useEffect(()=>{vt.current={state:Ct,params:st}}),reactExports.useEffect(()=>()=>{const{state:Lt,params:Ht}=vt.current;Lt.status==="created"&&Ht[ct]&&Lt.checkFn(`${Lt.prefix}/timeout?${stringifyQuery$1(Ht)}`,{headers:getExtraHeaders(Lt.baseUrl)})},[]);const it=async(Lt=!1)=>{var Ht;if(Ct.checking||(Ct.status==="created"&&Ct.checkCount++,jt.isSocketAvailable&&!Lt))return null;try{Ct.checking=!0;const Ot=await Ct.checkFn(`${Ct.prefix}/status?${stringifyQuery$1(st)}`,{headers:getExtraHeaders(Ct.baseUrl)}),{status:Jt,error:Ft,mfaCode:Zt=0}=Ot.data;if(Ct.store=Ot.data,Ct.mfaCode=Zt,Ct.checking=!1,Ct.status=Jt,Jt==="error"&&Ft){const nn=new Error(Ft);throw nn.response=Ot,nn}return Ot.data}catch(Ot){const{response:Jt}=Ot;if(Jt!=null&&Jt.status){st[ct]&&Ct.checkFn(`${Ct.prefix}/timeout?${stringifyQuery$1(st)}`,{headers:getExtraHeaders(Ct.baseUrl)});const Ft=(Ht=Jt==null?void 0:Jt.data)!=null&&Ht.error?Jt.data.error:Ot.message,Zt=new Error(Ft);Zt.code=Jt.status,Ct.status="error",Ct.checking=!1,Ct.error=Ft,ht(Zt,Ct==null?void 0:Ct.store,Gt)}else Ct.status="error",Ct.checking=!1,Ct.error=Pt.generateError}return null},bt=async()=>{try{if(Bt.error)throw Bt.error;Ct.loading=!0,Ct.token=Bt.token,Ct.url=Bt.url,Ct.inExistingSession=!0;let Lt=await it();if((["scanned"].includes(Lt==null?void 0:Lt.status)||(Lt==null?void 0:Lt.sourceToken)===(Bt==null?void 0:Bt.token))&&(await mt(!1),Lt=await it()),kt.current=(Lt==null?void 0:Lt.extraParams)||null,Lt!=null&&Lt.status&&!["created"].includes(Lt==null?void 0:Lt.status))throw new Error(`${Pt.invalidSessionStatus} [${Lt.status}]`)}catch(Lt){Ct.status="error",Ct.error=Lt.message,ht(Lt,Ct==null?void 0:Ct.store,Gt)}finally{Ct.loading=!1}};reactExports.useEffect(()=>{var Lt;if(!Ct.token&&!Ct.store&&!Ct.loading&&!Ct.error)if(Bt)bt();else{mt(!1);return}if(Ct.status!=="timeout"&&Ct.checkCount>Kt){Ct.status="timeout",ut();return}if(Ct.status==="succeed"&&!jt.onSuccessCalled){const Ht=getConnectedInfo({...Ct.store,appInfo:Ct.appInfo,memberAppInfo:Ct.memberAppInfo});if(isSameOrigin(Ct.baseUrl)&&At&&Ct.saveConnect&&Ct.store.did&&updateConnectedInfo(Ht,!0),Ct.store){const{nextWorkflow:Ot}=Ct.store;if(Ot)try{const Jt=parseNextWorkflow(Ot,ct);Ct.nextWorkflow=(Jt==null?void 0:Jt.nextWorkflow)||Ot,Object.assign(Ct,Jt),Ct.store=null,Ct.error="",Ct.url="",Ct.appInfo=null,Ct.memberAppInfo=null,Ct.checkCount=0,Ct.status="scanned",Ct.results={...Ct.results,[Ct.token]:Ct.store},Ct.checkFn=createAxios({baseURL:Jt.baseUrl,timeout:8e3}).get,it()}catch(Jt){console.error(`Invalid nextWorkflow: ${Ot}`,Jt),Ct.status="error",Ct.error=`Invalid nextWorkflow: ${Ot}: ${Jt.message}`}else if(Ct.nextWorkflow&&(Ct.nextWorkflow="",Ct.url=""),typeof dt=="function"){const Jt=Object.values({...Ct.results,[Ct.token]:Ct.store});jt.onSuccessCalled=!0;const Ft=Jt.length>1?Jt:Jt[0],Zt=cloneDeep$1(Ft);dt(Zt,Gt,{sourceAppPid:nt==null?void 0:nt.sourceAppPid,...Ht})}}return}if((Lt=Ct.store)!=null&&Lt.nextWorkflow){const{nextWorkflow:Ht}=Ct.store;try{const Ot=parseNextWorkflow(Ht,ct);Ct.nextWorkflow=(Ot==null?void 0:Ot.nextWorkflow)||Ht,Object.assign(Ct,Ot),Ct.store=null,Ct.error="",Ct.url="",Ct.appInfo=null,Ct.memberAppInfo=null,Ct.checkCount=0,Ct.status="scanned",Ct.results={...Ct.results,[Ct.token]:Ct.store},Ct.checkFn=createAxios({baseURL:Ot.baseUrl,timeout:8e3}).get,it()}catch(Ot){console.error(`Invalid nextWorkflow: ${Ht}`,Ot),Ct.status="error",Ct.error=`Invalid nextWorkflow: ${Ht}: ${Ot.message}`}}});const Mt=reactExports.useRef(0);return reactExports.useEffect(()=>{if(Ct.token&&jt.isSocketAvailable&&wt.current){let Lt=!1;rt.current?rt.current.token!==Ct.token&&(wt.current.unsubscribe(getRelayChannel(rt.current.token)),Lt=!0):Lt=!0,Lt&&(rt.current=wt.current.subscribe(getRelayChannel(Ct.token)),Mt.current=0,rt.current.token=Ct.token,rt.current.on("updated",({response:Ht})=>{const Ot=+new Date(Ht.updatedAt);if(Ot<=Mt.current){console.warn("Ignore outdated message",Ht);return}Mt.current=Ot;let{status:Jt,error:Ft}=Ht;Jt==="forbidden"&&(Ft=Pt.forbidden,Jt="error"),Ct.status=Jt,Ct.mfaCode=Ht.mfaCode||0,Ct.store=Ht,Ct.error=Ft,Ft&&ht(new Error(Ft),Ct==null?void 0:Ct.store,Gt)}))}},[Ct.token,jt.isSocketAvailable,wt.current]),useInterval(it,xt()),usePageShow(()=>{jt.isSocketAvailable&&Ct.token&&isSessionEnded(Ct.status)===!1&&it(!0)}),{state:Ct,generate:mt,cancelWhenScanned:$t}}function WebviewLoginItem({tokenState:a,locale:j,tokenKey:_e}){const{t:et,isWalletWebview:nt,connectState:tt}=useStateContext(),ot=et(nt?"openDidConnect":"openInWallet"),ct=useCreation(()=>{if(!a.url)return"";const dt=new URL(window.location.href);dt.searchParams.set("tokenKey",a.token);const yt=new URL(a.url);return yt.searchParams.set("callback",encodeURIComponent(dt)),yt.searchParams.set("callback_delay",1500),yt.searchParams.set("locale",j),yt.href.replace(/^https?:\/\//,"abt://")},[_e,a.token]),ft=useMemoizedFn(()=>{default_1$4.call("authAction",{action:"auth",deepLink:ct})}),ht={};return nt||(ht.component="a",ht.href=ct),useMount(()=>{tt.autoActiveWebview&&ct&&(tt.autoActiveWebview=!1,ft())}),jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:colors$1.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...ht,onClick:nt?ft:noop$7,children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(default_1$3,{width:"24px",height:"24px"}),jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"14px",fontWeight:500},children:ot})]}),jsxRuntimeExports.jsx(Icon,{icon:data$p,fontSize:"1.3rem",color:colors$1.primaryBase})]})}WebviewLoginItem.propTypes={tokenState:PropTypes.object.isRequired,locale:PropTypes.string,tokenKey:PropTypes.string};WebviewLoginItem.defaultProps={locale:"en",tokenKey:"_t_"};const data$c={width:24,height:24,body:'<path fill="currentColor" d="M12 20q-3.35 0-5.675-2.325T4 12q0-3.35 2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.713T19 4q.425 0 .713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.713-.288T13 10q0-.425.288-.713T14 9h3.2q-.8-1.4-2.188-2.2T12 6Q9.5 6 7.75 7.75T6 12q0 2.5 1.75 4.25T12 18q1.7 0 3.113-.863t2.187-2.312q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20Z"/>'};function RefreshOverlay({onRefresh:a,...j}){const _e=et=>{et.stopPropagation(),a()};return jsxRuntimeExports.jsx(Box,{...j,onClick:_e,sx:{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(255, 255, 255, 0.75)",cursor:"pointer",...j.sx},children:jsxRuntimeExports.jsx(Box,{sx:{backgroundColor:colors$1.foregroundsFgInteractive,borderRadius:"100%",fontSize:0},children:jsxRuntimeExports.jsx(Icon,{icon:data$c,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})})})}RefreshOverlay.propTypes={onRefresh:PropTypes.func.isRequired};const busyStatusList=["scanned","succeed","error","busy"];function DIDWalletConnect({onSuccess:a,onError:j,action:_e,prefix:et,checkFn:nt,checkInterval:tt,checkTimeout:ot,locale:ct,tokenKey:ft,encKey:ht,baseUrl:dt,autoConnect:yt,forceConnected:Tt,saveConnect:St,useSocket:At,allowWallet:Rt,provider:It,webWalletUrl:Ct,onRecreateSession:kt,onClose:Pt,messages:Bt,enabledConnectTypes:Kt}){var dn,Mn,yn,An;if(typeof nt!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const jt=reactExports.useContext(SessionContext$1),{connectState:zt,extraParams:Gt,staticState:tn,changeStatus:hn,isWalletWebview:wt,matchSmallScreen:rt,t:st}=useStateContext(),ut=useBrowser(),pt=detectWalletExtension(),{setBaseUrl:mt,oauthState:$t,getOAuthConfigList:xt}=useOAuth(),vt=useCreation(()=>{var Tn;return It||(Gt==null?void 0:Gt.provider)||((Tn=jt==null?void 0:jt.session)==null?void 0:Tn.provider)||"wallet"},[Gt==null?void 0:Gt.provider,(dn=jt==null?void 0:jt.session)==null?void 0:dn.provider]),it=getWalletDid((Mn=jt==null?void 0:jt.session)==null?void 0:Mn.user);reactExports.useEffect(()=>{mt(dt)},[dt]);const{state:bt,generate:Mt,cancelWhenScanned:Lt}=useToken({action:_e,baseUrl:dt,checkFn:nt,checkInterval:tt,checkTimeout:ot,extraParams:Gt,prefix:et,onError:j,onSuccess:a,locale:ct,tokenKey:ft,encKey:ht,autoConnect:yt,forceConnected:Tt===!0?it||!0:Tt,saveConnect:St,useSocket:At,allowWallet:Rt,provider:vt}),[Ht,Ot]=reactExports.useState([]);useAsyncEffect(async()=>{const Tn=await xt({sourceAppPid:zt==null?void 0:zt.sourceAppPid});Ot(Tn)},[zt==null?void 0:zt.sourceAppPid]);const Jt=usePrevious(zt==null?void 0:zt.sourceAppPid);useUpdateEffect(()=>{isUndefined$2(Jt)||Mt()},[zt==null?void 0:zt.sourceAppPid]);const Ft=useCreation(()=>busyStatusList.includes($t.status)||busyStatusList.includes(bt.status),[bt.status,$t.status]);reactExports.useEffect(()=>{busyStatusList.includes($t.status)?hn($t.status):busyStatusList.includes(bt.status)?hn(bt.status):hn("created")},[hn,bt.status,$t.status]);const Zt=useMemoizedFn(()=>{kt(),$t.reset(),Mt(!1)}),nn=useMemoizedFn(()=>{kt(),tn.current.cancelCount++,Lt()}),cn=useCreation(()=>({confirm:Bt.confirm,success:Bt.success,error:bt.error||$t.error||""}),[Bt.confirm,Bt.success,bt.error,$t.error]),qt=useCreation(()=>Rt&&Kt.includes("mobile")&&!wt,[Rt,Kt,wt]),Dt=checkSameProtocol(Ct),Vt=useCreation(()=>Rt&&Kt.includes("web")&&(Dt||pt)&&(!ut.mobile.any||pt),[Rt,Kt,(yn=ut==null?void 0:ut.mobile)==null?void 0:yn.any]),an=useCreation(()=>Rt&&Kt.includes("mobile")&&ut.mobile.any&&!pt,[Rt,Kt,(An=ut==null?void 0:ut.mobile)==null?void 0:An.any]),Xt=useCreation(()=>{const Tn=intersection$1(Object.keys(OAUTH_PROVIDER),Kt);return Ht.filter(gn=>Tn.includes(gn.provider))},[Ht,Kt]),pn=useCreation(()=>Xt.length>0&&["login","invite"].includes(bt.action),[Xt]),En=useCreation(()=>{const Tn=qt||Vt||an;let gn=null;return pn&&(gn=Tn?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Divider,{sx:{color:colors$1.textMuted,width:rt?"200px":"368px",opacity:.6,maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:colors$1.lineStep}},children:"OR"}),jsxRuntimeExports.jsx(OAuthLogin,{providerList:Xt,onSuccess:a,onError:j,tokenState:bt,locale:ct,type:"list"})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{mt:1,textAlign:"center",color:colors$1.foregroundsFgSubtile},children:st("loginWithBelow")}),jsxRuntimeExports.jsx(OAuthLogin,{providerList:Xt,onSuccess:a,onError:j,tokenState:bt,type:"list",locale:ct})]})),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[bt.status==="timeout"?jsxRuntimeExports.jsx(RefreshOverlay,{onRefresh:Zt,sx:{zIndex:1,animation:"fadeIn 1s","@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}}}):null,jsxRuntimeExports.jsx(Box,{"data-did-auth-url":bt.url,sx:{display:"none"}}),an&&jsxRuntimeExports.jsx(WebviewLoginItem,{tokenState:bt,locale:ct,tokenKey:ft}),qt&&jsxRuntimeExports.jsx(MobileLoginItem,{tokenState:bt,messages:Bt,locale:ct}),Vt&&jsxRuntimeExports.jsx(WebLoginItem,{tokenState:bt,webWalletUrl:Ct,locale:ct}),gn]})},[bt,bt.url,bt.status,qt,Vt,an,Xt,pn,pn,a,j,ct,ft,Bt,Ct]);return useCreation(()=>bt.loading||$t.loading||!bt.token&&!bt.error,[bt.loading,$t.loading])?jsxRuntimeExports.jsx(Loading,{}):Ft?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{"data-did-auth-url":bt.url,sx:{display:"none"}}),jsxRuntimeExports.jsx(ConnectStatus,{status:$t.status||bt.status,nextWorkflow:bt.nextWorkflow,mfaCode:bt.mfaCode,onCancel:nn,onRetry:Zt,onClose:Pt,messages:cn,locale:ct,className:"auth-status"})]}):En}DIDWalletConnect.propTypes={onError:PropTypes.func,onSuccess:PropTypes.func.isRequired,action:PropTypes.string.isRequired,checkFn:PropTypes.func.isRequired,prefix:PropTypes.string,checkInterval:PropTypes.number,checkTimeout:PropTypes.number,locale:PropTypes.oneOf(["en","zh",""]),tokenKey:PropTypes.string,encKey:PropTypes.string,baseUrl:PropTypes.string,autoConnect:PropTypes.bool,forceConnected:PropTypes.oneOfType([PropTypes.bool,PropTypes.string]),saveConnect:PropTypes.bool,useSocket:PropTypes.bool,allowWallet:PropTypes.bool,provider:PropTypes.oneOf([LOGIN_PROVIDER$1.WALLET,...Object.keys(OAUTH_PROVIDER),""]),webWalletUrl:PropTypes.string,onRecreateSession:PropTypes.func,onClose:PropTypes.func,messages:PropTypes.object,enabledConnectTypes:PropTypes.arrayOf(PropTypes.oneOf(["web","mobile",...Object.keys(OAUTH_PROVIDER)]))};DIDWalletConnect.defaultProps={prefix:API_DID_PREFIX,onError:noop$7,checkInterval:2*1e3,checkTimeout:DEFAULT_TIMEOUT$1*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:getWebWalletUrl$1(),onRecreateSession:noop$7,onClose:noop$7,messages:{},enabledConnectTypes:["web","mobile",...Object.keys(OAUTH_PROVIDER)]};var Set$1=_Set,noop=noop_1,setToArray$1=_setToArray,INFINITY$2=1/0,createSet$1=Set$1&&1/setToArray$1(new Set$1([,-0]))[1]==INFINITY$2?function(a){return new Set$1(a)}:noop,_createSet=createSet$1,SetCache=_SetCache,arrayIncludes$1=_arrayIncludes,arrayIncludesWith=_arrayIncludesWith,cacheHas=_cacheHas,createSet=_createSet,setToArray=_setToArray,LARGE_ARRAY_SIZE=200;function baseUniq$2(a,j,_e){var et=-1,nt=arrayIncludes$1,tt=a.length,ot=!0,ct=[],ft=ct;if(_e)ot=!1,nt=arrayIncludesWith;else if(tt>=LARGE_ARRAY_SIZE){var ht=j?null:createSet(a);if(ht)return setToArray(ht);ot=!1,nt=cacheHas,ft=new SetCache}else ft=j?[]:ct;e:for(;++et<tt;){var dt=a[et],yt=j?j(dt):dt;if(dt=_e||dt!==0?dt:0,ot&&yt===yt){for(var Tt=ft.length;Tt--;)if(ft[Tt]===yt)continue e;j&&ft.push(yt),ct.push(dt)}else nt(ft,yt,_e)||(ft!==ct&&ft.push(yt),ct.push(dt))}return ct}var _baseUniq=baseUniq$2,baseFlatten$1=_baseFlatten,baseIteratee$1=_baseIteratee,baseRest$1=_baseRest,baseUniq$1=_baseUniq,isArrayLikeObject=isArrayLikeObject_1,last=last_1,unionBy=baseRest$1(function(a){var j=last(a);return isArrayLikeObject(j)&&(j=void 0),baseUniq$1(baseFlatten$1(a,1,isArrayLikeObject,!0),baseIteratee$1(j))}),unionBy_1=unionBy;const unionBy$1=getDefaultExportFromCjs$1(unionBy_1);var baseFor=_baseFor,keys$1=keys_1;function baseForOwn$1(a,j){return a&&baseFor(a,j,keys$1)}var _baseForOwn=baseForOwn$1,isArrayLike$1=isArrayLike_1;function createBaseEach$1(a,j){return function(_e,et){if(_e==null)return _e;if(!isArrayLike$1(_e))return a(_e,et);for(var nt=_e.length,tt=j?nt:-1,ot=Object(_e);(j?tt--:++tt<nt)&&et(ot[tt],tt,ot)!==!1;);return _e}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1,baseEach=_baseEach,isArrayLike=isArrayLike_1;function baseMap$1(a,j){var _e=-1,et=isArrayLike(a)?Array(a.length):[];return baseEach(a,function(nt,tt,ot){et[++_e]=j(nt,tt,ot)}),et}var _baseMap=baseMap$1;function baseSortBy$1(a,j){var _e=a.length;for(a.sort(j);_e--;)a[_e]=a[_e].value;return a}var _baseSortBy=baseSortBy$1,isSymbol$5=isSymbol_1;function compareAscending$1(a,j){if(a!==j){var _e=a!==void 0,et=a===null,nt=a===a,tt=isSymbol$5(a),ot=j!==void 0,ct=j===null,ft=j===j,ht=isSymbol$5(j);if(!ct&&!ht&&!tt&&a>j||tt&&ot&&ft&&!ct&&!ht||et&&ot&&ft||!_e&&ft||!nt)return 1;if(!et&&!tt&&!ht&&a<j||ht&&_e&&nt&&!et&&!tt||ct&&_e&&nt||!ot&&nt||!ft)return-1}return 0}var _compareAscending=compareAscending$1,compareAscending=_compareAscending;function compareMultiple$1(a,j,_e){for(var et=-1,nt=a.criteria,tt=j.criteria,ot=nt.length,ct=_e.length;++et<ot;){var ft=compareAscending(nt[et],tt[et]);if(ft){if(et>=ct)return ft;var ht=_e[et];return ft*(ht=="desc"?-1:1)}}return a.index-j.index}var _compareMultiple=compareMultiple$1,arrayMap=_arrayMap,baseGet$1=_baseGet,baseIteratee=_baseIteratee,baseMap=_baseMap,baseSortBy=_baseSortBy,baseUnary=_baseUnary,compareMultiple=_compareMultiple,identity=identity_1,isArray$5=isArray_1;function baseOrderBy$1(a,j,_e){j.length?j=arrayMap(j,function(tt){return isArray$5(tt)?function(ot){return baseGet$1(ot,tt.length===1?tt[0]:tt)}:tt}):j=[identity];var et=-1;j=arrayMap(j,baseUnary(baseIteratee));var nt=baseMap(a,function(tt,ot,ct){var ft=arrayMap(j,function(ht){return ht(tt)});return{criteria:ft,index:++et,value:tt}});return baseSortBy(nt,function(tt,ot){return compareMultiple(tt,ot,_e)})}var _baseOrderBy=baseOrderBy$1,baseFlatten=_baseFlatten,baseOrderBy=_baseOrderBy,baseRest=_baseRest,isIterateeCall=_isIterateeCall,sortBy=baseRest(function(a,j){if(a==null)return[];var _e=j.length;return _e>1&&isIterateeCall(a,j[0],j[1])?j=[]:_e>2&&isIterateeCall(j[0],j[1],j[2])&&(j=[j[0]]),baseOrderBy(a,baseFlatten(j,1),[])}),sortBy_1=sortBy;const sortBy$1=getDefaultExportFromCjs$1(sortBy_1),prefix$2=joinURL(AUTH_SERVICE_PREFIX,"/api/user-session");function useQuickConnect({appPid:a,sourceAppPid:j,loginAppPid:_e,autoFetch:et=!0,baseUrl:nt="/",fetchAll:tt=!1}={}){const ot=getVisitorId$2(),ct=useCreation(()=>createAxios({baseURL:joinURL(nt,prefix$2)},{lazy:!0,lazyTime:500}),[nt]),ft=useMemoizedFn(async()=>{const{data:Rt=[]}=await ct.get("",{params:{visitorId:ot}}),It=getFederatedEnabled(),Ct=getMaster();if(tt&&It&&Ct){const{data:kt}=await ct.get(joinURL(Ct.appUrl,AUTH_SERVICE_PREFIX,"/api/user-session"),{params:{visitorId:ot}});return Rt.concat(kt||[])}return!It||!Ct?Rt.filter(kt=>{var Pt;return((Pt=kt==null?void 0:kt.user)==null?void 0:Pt.sourceAppPid)===null}):Rt}),ht=useReactive({loaded:!1,loadingId:null}),dt=useRequest(ft,{manual:!et,onFinally(){ht.loaded=!0},refreshDeps:[nt]}),yt=async Rt=>{var Ct,kt,Pt;const It=pick$2(Rt,["userDid","visitorId","passportId","id"]);try{ht.loadingId=Rt.id;const Bt=getMaster();if(getFederatedEnabled()&&Bt&&_e!==Rt.appPid){const{data:jt}=await ct.post("login",{...It,appPid:_e},{baseURL:joinURL(Bt.appUrl,AUTH_SERVICE_PREFIX,"/api/user-session")});return jt}const{data:Kt}=await ct.post("login",{...It,appPid:_e});return Kt}catch(Bt){const Kt=Bt.response?((kt=(Ct=Bt.response)==null?void 0:Ct.data)==null?void 0:kt.error)||((Pt=Bt.response)==null?void 0:Pt.data):Bt.message;throw Toast$1.error(Kt),console.error("Quick login error",Bt),Bt}finally{ht.loadingId=null}},Tt=useCreation(()=>dt.data?dt.data.filter(Rt=>Rt.status!=="expired"):[],[dt.data]),St=useCreation(()=>{const Rt=new Date().getTime(),It=sortBy$1(Tt,Ct=>Rt-new Date(Ct.updatedAt).getTime());return unionBy$1(It,Ct=>[Ct.userDid].join("_"))},[Tt,j,a]),At=useCreation(()=>!!(St&&St.length>0),[St]);return{loadingId:ht.loadingId,userSessions:St,quickLoginEnabled:At,loginUserSession:yt,loading:dt.loading,loaded:dt.loaded,refresh:dt.refreshAsync}}const data$b={width:24,height:24,body:'<path fill="currentColor" d="M11.95 18q.525 0 .888-.363t.362-.887q0-.525-.362-.888t-.888-.362q-.525 0-.887.363t-.363.887q0 .525.363.888t.887.362Zm.05 4q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20Zm0-8Zm.1-4.3q.625 0 1.088.4t.462 1q0 .55-.337.975t-.763.8q-.575.5-1.012 1.1t-.438 1.35q0 .35.263.588t.612.237q.375 0 .638-.25t.337-.625q.1-.525.45-.938t.75-.787q.575-.55.988-1.2t.412-1.45q0-1.275-1.038-2.087T12.1 6q-.95 0-1.812.4T8.975 7.625q-.175.3-.113.638t.338.512q.35.2.725.125t.625-.425q.275-.375.688-.575t.862-.2Z"/>'},data$a={width:24,height:24,body:'<path fill="currentColor" d="m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4L9.55 18Z"/>'};function AppIcon({appInfo:a,...j}){const[_e,et]=reactExports.useState(!1);if(_e||!(a.appUrl||a.appLogo))return jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{did:a.appPid,size:32});let nt=a.appLogo||"";return isUrl(nt)||(nt=joinURL(a.appUrl||"",nt)),jsxRuntimeExports.jsx(Img,{src:nt,alt:a.appName||"Blocklet Icon",width:32,height:32,...j,onError:()=>et(!0)})}AppIcon.propTypes={appInfo:PropTypes.object.isRequired};const getAppDid=a=>a?a.split(":").pop():"";function AppInfoItem({appInfo:a,active:j,appLogo:_e}){return jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",fontWeight:600,color:colors$1.textBase,"& .app-info-content":{paddingLeft:"8px",overflow:"hidden"},"& .app-info-name":{maxWidth:"100%",paddingRight:"32px",lineHeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"},"& .app-info-did":{fontSize:0},"& .app-info-did .did-address-text":{color:colors$1.textMuted,fontSize:"12px"}},children:[_e||jsxRuntimeExports.jsx(Box,{sx:{borderRadius:"8px",overflow:"hidden",fontSize:0},children:jsxRuntimeExports.jsx(AppIcon,{appInfo:a})}),jsxRuntimeExports.jsxs(Box,{className:"app-info-content",children:[jsxRuntimeExports.jsx(Box,{className:"app-info-name",children:a.appName}),a.appPid&&jsxRuntimeExports.jsx(DidAddressWrapper,{size:12,className:"app-info-did",copyable:!1,color:colors$1.textMuted,compact:!1,responsive:!1,children:getAppDid(a.appPid)})]}),j?jsxRuntimeExports.jsx(IconButton,{size:"small",color:"success",children:jsxRuntimeExports.jsx(Icon$1,{icon:data$a,color:"success"})}):null]})}AppInfoItem.propTypes={appInfo:PropTypes.object.isRequired,active:PropTypes.bool,appLogo:PropTypes.node};AppInfoItem.defaultProps={active:!1,appLogo:null};function CurrentApp({appInfo:a}){const j=reactExports.useRef(null),_e=useReactive({hoverOnButton:!1,hoverOnPopover:!1}),et=useCreation(()=>_e.hoverOnButton||_e.hoverOnPopover,[_e.hoverOnButton,_e.hoverOnPopover]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{component:"span",ref:j,sx:{color:colors$1.foregroundsFgInteractive,cursor:"help"},onClick:()=>{_e.hoverOnButton=!0},onMouseEnter:()=>{_e.hoverOnButton=!0},onMouseLeave:()=>{setTimeout(()=>{_e.hoverOnButton=!1},200)},children:a.appName}),jsxRuntimeExports.jsx(Popover,{open:et,sx:{pointerEvents:"none"},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${colors$1.gray6}, 0px 0px 0px 1px ${colors$1.gray6}`,py:1,px:1.5,borderRadius:2,transform:"translateY(-6px) !important"}}},anchorEl:j.current,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{_e.open=!1},disableRestoreFocus:!0,children:jsxRuntimeExports.jsx(Box,{component:"span",sx:{pointerEvents:"auto"},onMouseEnter:()=>{_e.hoverOnPopover=!0},onMouseLeave:()=>{_e.hoverOnPopover=!1},children:jsxRuntimeExports.jsx(AppInfoItem,{appInfo:a,appLogo:jsxRuntimeExports.jsx(AppIcon,{appInfo:a})})})})]})}CurrentApp.propTypes={appInfo:PropTypes.object.isRequired};function SwitchApp(){const{appInfoList:a,t:j,extraParams:_e,connectState:et}=useStateContext(),nt=reactExports.useRef(null),tt=useReactive({open:!1});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{component:"span",ref:nt,sx:{textTransform:"lowercase",color:colors$1.foregroundsFgInteractive,cursor:"pointer"},onClick:()=>{tt.open=!0},children:j("switch")}),jsxRuntimeExports.jsx(Menu,{anchorEl:nt.current,open:tt.open,onClose:()=>{tt.open=!1},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${colors$1.gray6}, 0px 0px 0px 1px ${colors$1.gray6}`,borderRadius:2}}},children:a.map(ot=>jsxRuntimeExports.jsx(MenuItem,{onClick:()=>{tt.open=!1,et.sourceAppPid=ot.sourceAppPid},children:jsxRuntimeExports.jsx(AppInfoItem,{appInfo:ot,active:ot.sourceAppPid===(_e==null?void 0:_e.sourceAppPid)})},ot.appPid))})]})}function AppTips({locale:a,disableSwitchApp:j}){const{appInfoList:_e,extraParams:et,connectState:nt,blocklet:tt}=useStateContext(),ot=useCreation(()=>_e.find(ht=>isUndefined$2(et==null?void 0:et.sourceAppPid)?!0:isNull$3(ht.sourceAppPid)?ht.appPid===(tt==null?void 0:tt.appPid):ht.sourceAppPid===(et==null?void 0:et.sourceAppPid)),[et==null?void 0:et.sourceAppPid,_e]),ct=!j&&_e.length>1;useMount(()=>{(tt==null?void 0:tt.appPid)===(ot==null?void 0:ot.appPid)?nt.sourceAppPid=null:nt.sourceAppPid=ot==null?void 0:ot.appPid});const ft=useCreation(()=>a==="zh"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["您正在使用 ",jsxRuntimeExports.jsx(CurrentApp,{appInfo:ot,appInfoList:_e})," 账户来连接站点",ct?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[",点击",jsxRuntimeExports.jsx(SwitchApp,{appInfoList:_e})]}):null]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["You're using ",jsxRuntimeExports.jsx(CurrentApp,{appInfo:ot})," account for site access",ct?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[". Click to ",jsxRuntimeExports.jsx(SwitchApp,{appInfoList:_e})]}):null]}),[a,ot,_e,ct]);return isEmpty$1(_e)?null:jsxRuntimeExports.jsxs(Box,{sx:{fontSize:"13px",color:colors$1.foregroundsFgSubtile,lineHeight:1.5},children:[ft,ct&&jsxRuntimeExports.jsx(Box,{component:"span",sx:{display:"inline-block",ml:.5,fontSize:"13px",height:"16px",lineHeight:1,verticalAlign:"middle"},children:jsxRuntimeExports.jsx(Box,{component:Icon,icon:data$b,sx:{verticalAlign:"middle"}})})]})}AppTips.propTypes={locale:PropTypes.string,disableSwitchApp:PropTypes.bool};AppTips.defaultProps={locale:"en",disableSwitchApp:!1};var DidLogoColorful={};Object.defineProperty(DidLogoColorful,"__esModule",{value:!0});var default_1$2=DidLogoColorful.default=void 0;_interopRequireDefault$2(reactExports);var _jsxRuntime$2=jsxRuntimeExports;function _interopRequireDefault$2(a){return a&&a.__esModule?a:{default:a}}function ownKeys$2(a,j){var _e=Object.keys(a);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(a);j&&(et=et.filter(function(nt){return Object.getOwnPropertyDescriptor(a,nt).enumerable})),_e.push.apply(_e,et)}return _e}function _objectSpread(a){for(var j=1;j<arguments.length;j++){var _e=arguments[j]!=null?arguments[j]:{};j%2?ownKeys$2(Object(_e),!0).forEach(function(et){_defineProperty(a,et,_e[et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(_e)):ownKeys$2(Object(_e)).forEach(function(et){Object.defineProperty(a,et,Object.getOwnPropertyDescriptor(_e,et))})}return a}function _defineProperty(a,j,_e){return(j=_toPropertyKey(j))in a?Object.defineProperty(a,j,{value:_e,enumerable:!0,configurable:!0,writable:!0}):a[j]=_e,a}function _toPropertyKey(a){var j=_toPrimitive(a,"string");return typeof j=="symbol"?j:j+""}function _toPrimitive(a,j){if(typeof a!="object"||!a)return a;var _e=a[Symbol.toPrimitive];if(_e!==void 0){var et=_e.call(a,j||"default");if(typeof et!="object")return et;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(a)}var Component=function a(j){return(0,_jsxRuntime$2.jsxs)("svg",_objectSpread(_objectSpread({},j),{},{children:[(0,_jsxRuntime$2.jsx)("path",{d:"M7.366.646L8.46 0h3.981v11.96H8.564a.381.381 0 0 1-.194-.053L4.18 9.431V2.53l.508-.3.893.528-.508.3v5.845L8.7 11.046h2.85V.914h-2.85l-.44.26-.893-.528z",fill:"color(display-p3 .4196 .7412 .9961)"}),(0,_jsxRuntime$2.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.868 8.903V3.057L4.242.915H1.393v10.132h2.85l.44-.26.893.527-1.095.647H.5V0h3.981l4.28 2.53v6.9l-.506.3-.893-.528.506-.299z",fill:"color(display-p3 .2706 .5961 .9804)"})]}))};Component.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};Component.displayName="did-logo-colorful";default_1$2=DidLogoColorful.default=Component;function PoweredBy({...a}){return jsxRuntimeExports.jsxs(Box,{...a,sx:{display:"flex",alignItems:"center",color:colors$1.foregroundsFgMuted,gap:.5,...a.sx},children:[jsxRuntimeExports.jsx(default_1$2,{}),"Powered By",jsxRuntimeExports.jsx(Box,{component:"a",href:"https://www.didconnect.io/",target:"_blank",rel:"noopener",sx:{color:colors$1.foregroundsFgInteractive,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:"DID Connect"})]})}function AutoHeight({children:a,initHeight:j,slotProps:_e}){var ct;const[et,nt]=reactExports.useState(j),tt=reactExports.useRef(null),ot=useSize(tt);return reactExports.useEffect(()=>{ot!=null&&ot.height&&nt(ot.height)},[ot==null?void 0:ot.height,et]),jsxRuntimeExports.jsx(Box,{..._e==null?void 0:_e.root,sx:{height:et,overflow:"hidden",transition:"height 0.2s ease-in-out",...(ct=_e==null?void 0:_e.root)==null?void 0:ct.sx},children:jsxRuntimeExports.jsx(Box,{..._e==null?void 0:_e.container,ref:tt,children:a})})}AutoHeight.propTypes={initHeight:PropTypes.number,children:PropTypes.node.isRequired,slotProps:PropTypes.object};AutoHeight.defaultProps={initHeight:0,slotProps:{}};const didConnectTab="did-connect",quickConnectTab="quick-connect";function Connect$1({mode:a,isFullScreen:j,hideCloseButton:_e,...et}){var pt;const nt=useReactive({showTab:didConnectTab}),{connectState:tt,blocklet:ot,appInfoList:ct,extraParams:ft}=useStateContext(),{extraContent:ht,onSuccess:dt,action:yt,onClose:Tt,options:St}=et,At=useCreation(()=>ct.find(mt=>isUndefined$2(ft==null?void 0:ft.sourceAppPid)?!0:isNull$3(mt.sourceAppPid)?mt.appPid===(ot==null?void 0:ot.appPid):mt.sourceAppPid===(ft==null?void 0:ft.sourceAppPid)),[ft==null?void 0:ft.sourceAppPid,ct]),Rt=useCreation(()=>isNull$3(tt==null?void 0:tt.sourceAppPid)?At==null?void 0:At.appPid:(tt==null?void 0:tt.sourceAppPid)||getCurrentAppPid(),[tt==null?void 0:tt.sourceAppPid]),{quickLoginEnabled:It,loading:Ct,userSessions:kt,loginUserSession:Pt,refresh:Bt}=useQuickConnect({appPid:Rt,loginAppPid:ot==null?void 0:ot.appPid,sourceAppPid:tt==null?void 0:tt.sourceAppPid,autoFetch:["login"].includes(yt),baseUrl:(At==null?void 0:At.appUrl)||""}),Kt=useCreation(()=>{var mt;return((mt=et==null?void 0:et.messages)==null?void 0:mt.title)||DEFAULT_NAME},[(pt=et==null?void 0:et.messages)==null?void 0:pt.title]),jt=useCreation(()=>{if(yt==="login"){const mt=getMaster(ot),$t=getFederatedEnabled(ot);return ft!=null&&ft.forceConnected?kt.filter(xt=>xt.userDid===(ft==null?void 0:ft.forceConnected)):!$t||!mt?kt.filter(xt=>{var vt;return((vt=xt==null?void 0:xt.user)==null?void 0:vt.sourceAppPid)===null}):kt.filter(xt=>{var vt;return Rt===ot.appPid?((vt=xt.user)==null?void 0:vt.sourceAppPid)===(ft==null?void 0:ft.sourceAppPid):!0})}return kt},[ft==null?void 0:ft.forceConnected,yt,kt]),zt=useMemoizedFn(async(...mt)=>{var it,bt,Mt;const $t=await Pt(...mt),[xt]=mt,vt={};xt&&((it=xt==null?void 0:xt.user)!=null&&it.did&&(vt.connected_did=xt.user.did),(bt=xt==null?void 0:xt.user)!=null&&bt.pk&&(vt.connected_pk=xt.user.pk),(Mt=xt==null?void 0:xt.extra)!=null&&Mt.walletOS&&(vt.connected_wallet_os=xt.extra.walletOS),xt!=null&&xt.appPid&&(vt.connected_app=xt.appPid)),await dt({...$t,encrypted:!1},Lt=>Lt,vt)});reactExports.useEffect(()=>{(St==null?void 0:St.showQuickConnect)!==!1&&!Ct&&It&&(nt.showTab=quickConnectTab)},[Ct,It,St==null?void 0:St.showQuickConnect]);const Gt=useDebounce(Ct,{wait:100}),tn=useMemoizedFn(()=>{nt.showTab=didConnectTab}),hn=useMemoizedFn(()=>{nt.showTab=quickConnectTab}),wt=useCreation(()=>jt.length===0?!0:nt.showTab===didConnectTab||!It,[nt.showTab,It]),rt=useCreation(()=>{let mt=!0;return(Ct||Gt)&&(mt=!1),It||(mt=!1),St.showQuickConnect===!1&&(mt=!1),nt.showTab!==didConnectTab&&(mt=!1),mt},[It,nt.showTab,Ct,Gt]),st=useCreation(()=>jsxRuntimeExports.jsx(Box,{onClick:Tt,sx:{fontSize:"1.5rem",width:"1.5rem",height:"1.5rem",cursor:"pointer",color:colors$1.foregroundsFgSubtile,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:jsxRuntimeExports.jsx(Icon,{icon:data$r})}),[Tt]);let ut=null;return Ct||Gt?ut=jsxRuntimeExports.jsx(Loading,{}):wt?ut=jsxRuntimeExports.jsx(DIDWalletConnect,{...et,onClose:Tt}):ut=jsxRuntimeExports.jsx(QuickConnect,{userSessions:jt,onLogin:zt,onRetry:Bt,onClose:Tt,messages:et.messages,onLoginAnother:tn}),jsxRuntimeExports.jsxs(Card,{variant:"outlined",sx:{color:colors$1.foregroundsFgBase,backgroundColor:"white",borderRadius:2,borderColor:colors$1.strokeBorderBase,height:"100%",display:"flex",flexDirection:"column"},children:[jsxRuntimeExports.jsx(CardHeader,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[rt&&jsxRuntimeExports.jsx(IconButton,{size:"small",disabled:tt.status!=="created",onClick:hn,disableRipple:!0,sx:{fontSize:"0.75em"},children:jsxRuntimeExports.jsx(Icon,{icon:data$s,color:colors$1.textMuted})}),Kt]}),titleTypographyProps:{display:"flex",alignItems:"center",variant:"h6",lineHeight:"28px",fontWeight:600},action:_e?null:st,sx:{px:2.5,".MuiCardHeader-action":{margin:0,alignSelf:"center"}}}),jsxRuntimeExports.jsx(CardContent,{sx:{borderTop:`1px solid ${colors$1.strokeBorderBase}`,borderBottom:`1px solid ${colors$1.strokeBorderBase}`,flex:1,verticalAlign:"middle",overflow:"auto",p:2.5,position:"relative","&::after":{content:'""',height:"100%",verticalAlign:"middle",display:"inline-block",width:0}},children:jsxRuntimeExports.jsxs(AutoHeight,{slotProps:{root:{sx:{display:"inline-block",width:"100%",verticalAlign:"middle"}},container:{sx:{display:"flex",flexDirection:"column",gap:1}}},children:[jsxRuntimeExports.jsx(AppTips,{locale:et.locale,disableSwitchApp:et.disableSwitchApp}),ut,ht?jsxRuntimeExports.jsx(Box,{children:ht}):null]})}),jsxRuntimeExports.jsx(CardActions,{sx:{py:2,px:2.5,justifyContent:"center"},children:jsxRuntimeExports.jsx(PoweredBy,{sx:{fontSize:"12px"}})})]})}Connect$1.propTypes={action:PropTypes.string.isRequired,onSuccess:PropTypes.func,onClose:PropTypes.func,messages:PropTypes.object,extraContent:PropTypes.any,disableSwitchApp:PropTypes.bool,mode:PropTypes.oneOf(["fullScreen","dialog","normal"]),isFullScreen:PropTypes.bool,options:PropTypes.object,hideCloseButton:PropTypes.bool,locale:PropTypes.string};Connect$1.defaultProps={onSuccess:noop$7,onClose:noop$7,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!0,locale:"en"};function WrapConnect(a){const{checkFn:j,extraParams:_e,blocklet:et,action:nt,locale:tt}=a;if(typeof j!="function")throw new Error("Cannot initialize did connect component without a fetchFn");return jsxRuntimeExports.jsx(StateProvider,{blocklet:et,action:nt,locale:tt,extraParams:_e,sx:{position:"relative",width:"100%",height:"100%",lineHeight:1.2,fontFamily:"Inter",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:jsxRuntimeExports.jsx(Connect$1,{...a})})}WrapConnect.propTypes={checkFn:PropTypes.func.isRequired,extraParams:PropTypes.object,blocklet:PropTypes.object.isRequired,action:PropTypes.string.isRequired,locale:PropTypes.string};WrapConnect.defaultProps={extraParams:{},locale:"en"};const DidConnect=withWebWalletSWKeeper(withDialog(withBlocklet(WrapConnect))),CLOSE_TIMEOUT=2e3,ConnectHolder=reactExports.forwardRef((a,j)=>{const{api:_e}=reactExports.useContext(SessionContext$1),et={containerEl:null,popup:!0,checkFn:(_e==null?void 0:_e.get)||noop$7,messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},nt=useReactive({show:!1,...cloneDeep$1(et)}),[tt,ot]=reactExports.useState({}),ct=useMemoizedFn(()=>{const yt=cloneDeep$1(et);Object.keys(yt).forEach(Tt=>{nt[Tt]=yt[Tt]})}),ft=useMemoizedFn(()=>{nt.show=!1,ct()}),ht=useMemoizedFn(yt=>{const{containerEl:Tt,checkFn:St,popup:At,messages:Rt,...It}=cloneDeep$1(yt);typeof St=="function"&&(nt.checkFn=St),At!==void 0&&(nt.popup=At),Rt!==void 0&&(nt.messages=Rt),Tt!==void 0&&(nt.containerEl=Tt),ot(It),nt.show=!0});reactExports.useImperativeHandle(j,()=>({open:ht,close:ft}),[ht,ft]);const dt=jsxRuntimeExports.jsx(DidConnect,{open:!0,popup:nt.popup,messages:nt.messages,checkFn:nt.checkFn,...tt});return nt.containerEl?reactDomExports.createPortal(dt,nt.containerEl):nt.show&&dt});function useConnect(){const a=reactExports.useRef(null),j=useCreation(()=>new _default$2({concurrency:1})),_e=useMemoizedFn((...ct)=>{var ft;(ft=a.current)==null||ft.close(...ct)}),et=useMemoizedFn(({onSuccess:ct,onClose:ft,onEnd:ht,closeTimeout:dt=CLOSE_TIMEOUT,...yt},...Tt)=>{const St=()=>new Promise(At=>{typeof ct=="function"?yt.onSuccess=(...Rt)=>{ct(...Rt),setTimeout(()=>{_e(),At()},dt)}:yt.onSuccess=()=>{setTimeout(()=>{_e(),At()},dt)},typeof ft=="function"?yt.onClose=(...Rt)=>{ft(...Rt),_e(),At(),j.clear()}:yt.onClose=()=>{_e(),At(),j.clear()},setTimeout(()=>{var Rt;(Rt=a.current)==null||Rt.open(yt,...Tt)})});j.add(St)}),nt=useMemoizedFn((ct={},{baseUrl:ft,locale:ht="en",blocklet:dt=globalThis==null?void 0:globalThis.blocklet,closeTimeout:yt=CLOSE_TIMEOUT}={})=>new Promise((Tt,St)=>{const At=()=>new Promise(Rt=>{(async()=>{var zt;if(isUndefined$2(ft)){const Gt=getFederatedEnabled(),tn=getMaster();ft=Gt?tn.appUrl:window.location.origin}const{onSuccess:Ct,onClose:kt,onError:Pt,...Bt}=ct;if(!((zt=Bt==null?void 0:Bt.extraParams)!=null&&zt.provider))throw isFunction$8(Pt)&&Pt("Must have extraParams.provider"),new Error("Must have extraParams.provider");Bt!=null&&Bt.prefix||(Bt.prefix=window.location.origin+joinURL(dt==null?void 0:dt.prefix,API_DID_PREFIX));const Kt={params:btoa(encodeURIComponent(JSON.stringify(Bt))),appPid:dt==null?void 0:dt.appPid,locale:ht},jt=openPopup(withQuery(joinURL(ft||"/",AUTH_SERVICE_PREFIX,"/connect"),Kt));try{const Gt=await runPopup({popup:jt,closeTimeout:yt});updateConnectedInfo({connected_app:getAppId$1(),...Gt==null?void 0:Gt.options},!0),isFunction$8(Ct)?(Ct({...Gt.response,encrypted:!1}),_e(),Rt()):(_e(),Rt()),Tt({...Gt.response,encrypted:!1})}catch(Gt){throw Gt.message==="Popup closed"?isFunction$8(kt)?(kt(),Rt(),j.clear()):(Rt(),j.clear()):isFunction$8(Pt)&&Pt(Gt),Gt}})().catch(Ct=>{Rt(),St(Ct)})});j.add(At)})),tt=useCreation(()=>jsxRuntimeExports.jsx(ConnectHolder,{ref:a})),ot=useCreation(()=>({open:et,close:_e,openPopup:nt,queue:j}));return{connectHolder:tt,connectApi:ot}}const EVENTS={LOGIN:Symbol("login"),CANCEL_LOGIN:Symbol("cancelLogin"),LOGOUT:Symbol("logout"),SWITCH_PROFILE:Symbol("switchProfile"),CANCEL_SWITCH_PROFILE:Symbol("cancelSwitchProfile"),SWITCH_PASSPORT:Symbol("switchPassport"),CANCEL_SWITCH_PASSPORT:Symbol("cancelSwitchPassport"),BIND_WALLET:Symbol("bindWallet"),CANCEL_BIND_WALLET:Symbol("cancelBindWallet"),CONNECT_TO_DID_SPACE_FOR_FULL_ACCESS:Symbol("connectToDidSpaceForFullAccess")},translations$2={login:{en:{title:"Connect DID Wallet",scan:"Scan following qrcode to connect your DID Wallet",confirm:"Confirm connection in your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包",scan:"请使用 DID 钱包扫码下面的二维码完成连接",confirm:"在 DID 钱包中确认连接",success:"连接成功"}},"switch-specified-did":{en:{title:"Switch DID",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"你需要切换账号至 {did} 才能完成后续的操作",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-did":{en:{title:"Switch DID",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"请使用 DID 钱包扫码下面的二维码完成切换",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-profile":{en:{title:"Switch Profile",scan:"Scan following qrcode with DID Wallet to switch profile",confirm:"Select profile in your DID Wallet",success:"Profile updated"},zh:{title:"切换个人信息",scan:"请使用 DID 钱包扫码下面的二维码来切换个人信息",confirm:"在 DID 钱包中选择个人信息",success:"个人信息已经更新"}},"switch-passport":{en:{title:"Switch Passport",scan:"Scan following qrcode with DID Wallet to switch passport",confirm:"Select passport in your DID Wallet",success:"Passport and session updated"},zh:{title:"切换通行证",scan:"请使用 DID 钱包扫码二维码来切换通行证",confirm:"在 DID 钱包中选择通行证",success:"通行证和会话已经更新"}},"connect-to-did-spaces-for-user":{en:{title:"Please authorize the application to connect to your DID Space",scan:"Please use your DID wallet to scan the QR code for authorization",confirm:"Select the DID Spaces NFT in your DID wallet",success:"Connection successful"},zh:{title:"请授权应用连接你的 DID Space",scan:"请使用 DID 钱包扫码二维码来完成授权",confirm:"在 DID 钱包中选择 DID Spaces NFT",success:"连接成功"}},"bind-wallet":{en:{title:"Connect DID Wallet for enhanced security",scan:"Scan following qrcode with DID Wallet to connect your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包获得更高的安全性",scan:"请使用 DID 钱包扫码二维码来连接您的 DID 钱包",success:"连接成功"}},exchangePassport:{en:{action:"Exchange Passport with NFT",tooltip:"Exchange passport if you owns any required NFT"},zh:{action:"兑换通行证",tooltip:"通过出示你持有的特定 NFT 来获取通行证"}},lostPassport:{en:{action:"Lost Passport"},zh:{action:"找回通行证"}},switchAccountDialog:{en:{confirm:"Switch",title:"Switch Account",description:"Please switch accounts to complete next action",currentAccount:"Current account",nextAccount:"Account to be switched"},zh:{confirm:"切换",title:"切换账号",description:"请切换账号来完成后续的操作",currentAccount:"当前登录的账户",nextAccount:"即将切换的账户"}}};var re$2={exports:{}};const SEMVER_SPEC_VERSION="2.0.0",MAX_LENGTH$1=256,MAX_SAFE_INTEGER$2=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=MAX_LENGTH$1-6,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var constants$1={MAX_LENGTH:MAX_LENGTH$1,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$2,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},define_process_env_default$1={};const debug$3=typeof process$1$1=="object"&&define_process_env_default$1&&define_process_env_default$1.NODE_DEBUG&&/\bsemver\b/i.test(define_process_env_default$1.NODE_DEBUG)?(...a)=>console.error("SEMVER",...a):()=>{};var debug_1$1=debug$3;(function(a,j){const{MAX_SAFE_COMPONENT_LENGTH:_e,MAX_SAFE_BUILD_LENGTH:et,MAX_LENGTH:nt}=constants$1,tt=debug_1$1;j=a.exports={};const ot=j.re=[],ct=j.safeRe=[],ft=j.src=[],ht=j.t={};let dt=0;const yt="[a-zA-Z0-9-]",Tt=[["\\s",1],["\\d",nt],[yt,et]],St=Rt=>{for(const[It,Ct]of Tt)Rt=Rt.split(`${It}*`).join(`${It}{0,${Ct}}`).split(`${It}+`).join(`${It}{1,${Ct}}`);return Rt},At=(Rt,It,Ct)=>{const kt=St(It),Pt=dt++;tt(Rt,Pt,It),ht[Rt]=Pt,ft[Pt]=It,ot[Pt]=new RegExp(It,Ct?"g":void 0),ct[Pt]=new RegExp(kt,Ct?"g":void 0)};At("NUMERICIDENTIFIER","0|[1-9]\\d*"),At("NUMERICIDENTIFIERLOOSE","\\d+"),At("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${yt}*`),At("MAINVERSION",`(${ft[ht.NUMERICIDENTIFIER]})\\.(${ft[ht.NUMERICIDENTIFIER]})\\.(${ft[ht.NUMERICIDENTIFIER]})`),At("MAINVERSIONLOOSE",`(${ft[ht.NUMERICIDENTIFIERLOOSE]})\\.(${ft[ht.NUMERICIDENTIFIERLOOSE]})\\.(${ft[ht.NUMERICIDENTIFIERLOOSE]})`),At("PRERELEASEIDENTIFIER",`(?:${ft[ht.NUMERICIDENTIFIER]}|${ft[ht.NONNUMERICIDENTIFIER]})`),At("PRERELEASEIDENTIFIERLOOSE",`(?:${ft[ht.NUMERICIDENTIFIERLOOSE]}|${ft[ht.NONNUMERICIDENTIFIER]})`),At("PRERELEASE",`(?:-(${ft[ht.PRERELEASEIDENTIFIER]}(?:\\.${ft[ht.PRERELEASEIDENTIFIER]})*))`),At("PRERELEASELOOSE",`(?:-?(${ft[ht.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ft[ht.PRERELEASEIDENTIFIERLOOSE]})*))`),At("BUILDIDENTIFIER",`${yt}+`),At("BUILD",`(?:\\+(${ft[ht.BUILDIDENTIFIER]}(?:\\.${ft[ht.BUILDIDENTIFIER]})*))`),At("FULLPLAIN",`v?${ft[ht.MAINVERSION]}${ft[ht.PRERELEASE]}?${ft[ht.BUILD]}?`),At("FULL",`^${ft[ht.FULLPLAIN]}$`),At("LOOSEPLAIN",`[v=\\s]*${ft[ht.MAINVERSIONLOOSE]}${ft[ht.PRERELEASELOOSE]}?${ft[ht.BUILD]}?`),At("LOOSE",`^${ft[ht.LOOSEPLAIN]}$`),At("GTLT","((?:<|>)?=?)"),At("XRANGEIDENTIFIERLOOSE",`${ft[ht.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),At("XRANGEIDENTIFIER",`${ft[ht.NUMERICIDENTIFIER]}|x|X|\\*`),At("XRANGEPLAIN",`[v=\\s]*(${ft[ht.XRANGEIDENTIFIER]})(?:\\.(${ft[ht.XRANGEIDENTIFIER]})(?:\\.(${ft[ht.XRANGEIDENTIFIER]})(?:${ft[ht.PRERELEASE]})?${ft[ht.BUILD]}?)?)?`),At("XRANGEPLAINLOOSE",`[v=\\s]*(${ft[ht.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ft[ht.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ft[ht.XRANGEIDENTIFIERLOOSE]})(?:${ft[ht.PRERELEASELOOSE]})?${ft[ht.BUILD]}?)?)?`),At("XRANGE",`^${ft[ht.GTLT]}\\s*${ft[ht.XRANGEPLAIN]}$`),At("XRANGELOOSE",`^${ft[ht.GTLT]}\\s*${ft[ht.XRANGEPLAINLOOSE]}$`),At("COERCEPLAIN",`(^|[^\\d])(\\d{1,${_e}})(?:\\.(\\d{1,${_e}}))?(?:\\.(\\d{1,${_e}}))?`),At("COERCE",`${ft[ht.COERCEPLAIN]}(?:$|[^\\d])`),At("COERCEFULL",ft[ht.COERCEPLAIN]+`(?:${ft[ht.PRERELEASE]})?(?:${ft[ht.BUILD]})?(?:$|[^\\d])`),At("COERCERTL",ft[ht.COERCE],!0),At("COERCERTLFULL",ft[ht.COERCEFULL],!0),At("LONETILDE","(?:~>?)"),At("TILDETRIM",`(\\s*)${ft[ht.LONETILDE]}\\s+`,!0),j.tildeTrimReplace="$1~",At("TILDE",`^${ft[ht.LONETILDE]}${ft[ht.XRANGEPLAIN]}$`),At("TILDELOOSE",`^${ft[ht.LONETILDE]}${ft[ht.XRANGEPLAINLOOSE]}$`),At("LONECARET","(?:\\^)"),At("CARETTRIM",`(\\s*)${ft[ht.LONECARET]}\\s+`,!0),j.caretTrimReplace="$1^",At("CARET",`^${ft[ht.LONECARET]}${ft[ht.XRANGEPLAIN]}$`),At("CARETLOOSE",`^${ft[ht.LONECARET]}${ft[ht.XRANGEPLAINLOOSE]}$`),At("COMPARATORLOOSE",`^${ft[ht.GTLT]}\\s*(${ft[ht.LOOSEPLAIN]})$|^$`),At("COMPARATOR",`^${ft[ht.GTLT]}\\s*(${ft[ht.FULLPLAIN]})$|^$`),At("COMPARATORTRIM",`(\\s*)${ft[ht.GTLT]}\\s*(${ft[ht.LOOSEPLAIN]}|${ft[ht.XRANGEPLAIN]})`,!0),j.comparatorTrimReplace="$1$2$3",At("HYPHENRANGE",`^\\s*(${ft[ht.XRANGEPLAIN]})\\s+-\\s+(${ft[ht.XRANGEPLAIN]})\\s*$`),At("HYPHENRANGELOOSE",`^\\s*(${ft[ht.XRANGEPLAINLOOSE]})\\s+-\\s+(${ft[ht.XRANGEPLAINLOOSE]})\\s*$`),At("STAR","(<|>)?=?\\s*\\*"),At("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),At("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(re$2,re$2.exports);var reExports=re$2.exports;const looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$1=a=>a?typeof a!="object"?looseOption:a:emptyOpts;var parseOptions_1=parseOptions$1;const numeric=/^[0-9]+$/,compareIdentifiers$1=(a,j)=>{const _e=numeric.test(a),et=numeric.test(j);return _e&&et&&(a=+a,j=+j),a===j?0:_e&&!et?-1:et&&!_e?1:a<j?-1:1},rcompareIdentifiers=(a,j)=>compareIdentifiers$1(j,a);var identifiers$1={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers};const debug$2=debug_1$1,{MAX_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1}=constants$1,{safeRe:re$1,t:t$1}=reExports,parseOptions=parseOptions_1,{compareIdentifiers}=identifiers$1;let SemVer$d=class Zr{constructor(j,_e){if(_e=parseOptions(_e),j instanceof Zr){if(j.loose===!!_e.loose&&j.includePrerelease===!!_e.includePrerelease)return j;j=j.version}else if(typeof j!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof j}".`);if(j.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug$2("SemVer",j,_e),this.options=_e,this.loose=!!_e.loose,this.includePrerelease=!!_e.includePrerelease;const et=j.trim().match(_e.loose?re$1[t$1.LOOSE]:re$1[t$1.FULL]);if(!et)throw new TypeError(`Invalid Version: ${j}`);if(this.raw=j,this.major=+et[1],this.minor=+et[2],this.patch=+et[3],this.major>MAX_SAFE_INTEGER$1||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER$1||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER$1||this.patch<0)throw new TypeError("Invalid patch version");et[4]?this.prerelease=et[4].split(".").map(nt=>{if(/^[0-9]+$/.test(nt)){const tt=+nt;if(tt>=0&&tt<MAX_SAFE_INTEGER$1)return tt}return nt}):this.prerelease=[],this.build=et[5]?et[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(j){if(debug$2("SemVer.compare",this.version,this.options,j),!(j instanceof Zr)){if(typeof j=="string"&&j===this.version)return 0;j=new Zr(j,this.options)}return j.version===this.version?0:this.compareMain(j)||this.comparePre(j)}compareMain(j){return j instanceof Zr||(j=new Zr(j,this.options)),compareIdentifiers(this.major,j.major)||compareIdentifiers(this.minor,j.minor)||compareIdentifiers(this.patch,j.patch)}comparePre(j){if(j instanceof Zr||(j=new Zr(j,this.options)),this.prerelease.length&&!j.prerelease.length)return-1;if(!this.prerelease.length&&j.prerelease.length)return 1;if(!this.prerelease.length&&!j.prerelease.length)return 0;let _e=0;do{const et=this.prerelease[_e],nt=j.prerelease[_e];if(debug$2("prerelease compare",_e,et,nt),et===void 0&&nt===void 0)return 0;if(nt===void 0)return 1;if(et===void 0)return-1;if(et===nt)continue;return compareIdentifiers(et,nt)}while(++_e)}compareBuild(j){j instanceof Zr||(j=new Zr(j,this.options));let _e=0;do{const et=this.build[_e],nt=j.build[_e];if(debug$2("build compare",_e,et,nt),et===void 0&&nt===void 0)return 0;if(nt===void 0)return 1;if(et===void 0)return-1;if(et===nt)continue;return compareIdentifiers(et,nt)}while(++_e)}inc(j,_e,et){switch(j){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",_e,et);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",_e,et);break;case"prepatch":this.prerelease.length=0,this.inc("patch",_e,et),this.inc("pre",_e,et);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",_e,et),this.inc("pre",_e,et);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const nt=Number(et)?1:0;if(!_e&&et===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[nt];else{let tt=this.prerelease.length;for(;--tt>=0;)typeof this.prerelease[tt]=="number"&&(this.prerelease[tt]++,tt=-2);if(tt===-1){if(_e===this.prerelease.join(".")&&et===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(nt)}}if(_e){let tt=[_e,nt];et===!1&&(tt=[_e]),compareIdentifiers(this.prerelease[0],_e)===0?isNaN(this.prerelease[1])&&(this.prerelease=tt):this.prerelease=tt}break}default:throw new Error(`invalid increment argument: ${j}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var semver$2=SemVer$d;const SemVer$c=semver$2,parse$d=(a,j,_e=!1)=>{if(a instanceof SemVer$c)return a;try{return new SemVer$c(a,j)}catch(et){if(!_e)return null;throw et}};var parse_1=parse$d;const parse$c=parse_1,valid$2=(a,j)=>{const _e=parse$c(a,j);return _e?_e.version:null};var valid_1=valid$2;const parse$b=parse_1,clean$1=(a,j)=>{const _e=parse$b(a.trim().replace(/^[=v]+/,""),j);return _e?_e.version:null};var clean_1=clean$1;const SemVer$b=semver$2,inc$1=(a,j,_e,et,nt)=>{typeof _e=="string"&&(nt=et,et=_e,_e=void 0);try{return new SemVer$b(a instanceof SemVer$b?a.version:a,_e).inc(j,et,nt).version}catch{return null}};var inc_1=inc$1;const parse$a=parse_1,diff$1=(a,j)=>{const _e=parse$a(a,null,!0),et=parse$a(j,null,!0),nt=_e.compare(et);if(nt===0)return null;const tt=nt>0,ot=tt?_e:et,ct=tt?et:_e,ft=!!ot.prerelease.length;if(!!ct.prerelease.length&&!ft)return!ct.patch&&!ct.minor?"major":ot.patch?"patch":ot.minor?"minor":"major";const dt=ft?"pre":"";return _e.major!==et.major?dt+"major":_e.minor!==et.minor?dt+"minor":_e.patch!==et.patch?dt+"patch":"prerelease"};var diff_1=diff$1;const SemVer$a=semver$2,major$1=(a,j)=>new SemVer$a(a,j).major;var major_1=major$1;const SemVer$9=semver$2,minor$1=(a,j)=>new SemVer$9(a,j).minor;var minor_1=minor$1;const SemVer$8=semver$2,patch$1=(a,j)=>new SemVer$8(a,j).patch;var patch_1=patch$1;const parse$9=parse_1,prerelease$1=(a,j)=>{const _e=parse$9(a,j);return _e&&_e.prerelease.length?_e.prerelease:null};var prerelease_1=prerelease$1;const SemVer$7=semver$2,compare$b=(a,j,_e)=>new SemVer$7(a,_e).compare(new SemVer$7(j,_e));var compare_1=compare$b;const compare$a=compare_1,rcompare$1=(a,j,_e)=>compare$a(j,a,_e);var rcompare_1=rcompare$1;const compare$9=compare_1,compareLoose$1=(a,j)=>compare$9(a,j,!0);var compareLoose_1=compareLoose$1;const SemVer$6=semver$2,compareBuild$3=(a,j,_e)=>{const et=new SemVer$6(a,_e),nt=new SemVer$6(j,_e);return et.compare(nt)||et.compareBuild(nt)};var compareBuild_1=compareBuild$3;const compareBuild$2=compareBuild_1,sort$1=(a,j)=>a.sort((_e,et)=>compareBuild$2(_e,et,j));var sort_1=sort$1;const compareBuild$1=compareBuild_1,rsort$1=(a,j)=>a.sort((_e,et)=>compareBuild$1(et,_e,j));var rsort_1=rsort$1;const compare$8=compare_1,gt$4=(a,j,_e)=>compare$8(a,j,_e)>0;var gt_1=gt$4;const compare$7=compare_1,lt$3=(a,j,_e)=>compare$7(a,j,_e)<0;var lt_1=lt$3;const compare$6=compare_1,eq$4=(a,j,_e)=>compare$6(a,j,_e)===0;var eq_1=eq$4;const compare$5=compare_1,neq$2=(a,j,_e)=>compare$5(a,j,_e)!==0;var neq_1=neq$2;const compare$4=compare_1,gte$3=(a,j,_e)=>compare$4(a,j,_e)>=0;var gte_1=gte$3;const compare$3=compare_1,lte$3=(a,j,_e)=>compare$3(a,j,_e)<=0;var lte_1=lte$3;const eq$3=eq_1,neq$1=neq_1,gt$3=gt_1,gte$2=gte_1,lt$2=lt_1,lte$2=lte_1,cmp$1=(a,j,_e,et)=>{switch(j){case"===":return typeof a=="object"&&(a=a.version),typeof _e=="object"&&(_e=_e.version),a===_e;case"!==":return typeof a=="object"&&(a=a.version),typeof _e=="object"&&(_e=_e.version),a!==_e;case"":case"=":case"==":return eq$3(a,_e,et);case"!=":return neq$1(a,_e,et);case">":return gt$3(a,_e,et);case">=":return gte$2(a,_e,et);case"<":return lt$2(a,_e,et);case"<=":return lte$2(a,_e,et);default:throw new TypeError(`Invalid operator: ${j}`)}};var cmp_1=cmp$1;const SemVer$5=semver$2,parse$8=parse_1,{safeRe:re,t}=reExports,coerce$1=(a,j)=>{if(a instanceof SemVer$5)return a;if(typeof a=="number"&&(a=String(a)),typeof a!="string")return null;j=j||{};let _e=null;if(!j.rtl)_e=a.match(j.includePrerelease?re[t.COERCEFULL]:re[t.COERCE]);else{const ft=j.includePrerelease?re[t.COERCERTLFULL]:re[t.COERCERTL];let ht;for(;(ht=ft.exec(a))&&(!_e||_e.index+_e[0].length!==a.length);)(!_e||ht.index+ht[0].length!==_e.index+_e[0].length)&&(_e=ht),ft.lastIndex=ht.index+ht[1].length+ht[2].length;ft.lastIndex=-1}if(_e===null)return null;const et=_e[2],nt=_e[3]||"0",tt=_e[4]||"0",ot=j.includePrerelease&&_e[5]?`-${_e[5]}`:"",ct=j.includePrerelease&&_e[6]?`+${_e[6]}`:"";return parse$8(`${et}.${nt}.${tt}${ot}${ct}`,j)};var coerce_1=coerce$1;class LRUCache{constructor(){this.max=1e3,this.map=new Map}get(j){const _e=this.map.get(j);if(_e!==void 0)return this.map.delete(j),this.map.set(j,_e),_e}delete(j){return this.map.delete(j)}set(j,_e){if(!this.delete(j)&&_e!==void 0){if(this.map.size>=this.max){const nt=this.map.keys().next().value;this.delete(nt)}this.map.set(j,_e)}return this}}var lrucache=LRUCache,range,hasRequiredRange;function requireRange(){if(hasRequiredRange)return range;hasRequiredRange=1;const a=/\s+/g;class j{constructor(pt,mt){if(mt=nt(mt),pt instanceof j)return pt.loose===!!mt.loose&&pt.includePrerelease===!!mt.includePrerelease?pt:new j(pt.raw,mt);if(pt instanceof tt)return this.raw=pt.value,this.set=[[pt]],this.formatted=void 0,this;if(this.options=mt,this.loose=!!mt.loose,this.includePrerelease=!!mt.includePrerelease,this.raw=pt.trim().replace(a," "),this.set=this.raw.split("||").map($t=>this.parseRange($t.trim())).filter($t=>$t.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const $t=this.set[0];if(this.set=this.set.filter(xt=>!Rt(xt[0])),this.set.length===0)this.set=[$t];else if(this.set.length>1){for(const xt of this.set)if(xt.length===1&&It(xt[0])){this.set=[xt];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let pt=0;pt<this.set.length;pt++){pt>0&&(this.formatted+="||");const mt=this.set[pt];for(let $t=0;$t<mt.length;$t++)$t>0&&(this.formatted+=" "),this.formatted+=mt[$t].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(pt){const $t=((this.options.includePrerelease&&St)|(this.options.loose&&At))+":"+pt,xt=et.get($t);if(xt)return xt;const vt=this.options.loose,it=vt?ft[ht.HYPHENRANGELOOSE]:ft[ht.HYPHENRANGE];pt=pt.replace(it,rt(this.options.includePrerelease)),ot("hyphen replace",pt),pt=pt.replace(ft[ht.COMPARATORTRIM],dt),ot("comparator trim",pt),pt=pt.replace(ft[ht.TILDETRIM],yt),ot("tilde trim",pt),pt=pt.replace(ft[ht.CARETTRIM],Tt),ot("caret trim",pt);let bt=pt.split(" ").map(Ot=>kt(Ot,this.options)).join(" ").split(/\s+/).map(Ot=>wt(Ot,this.options));vt&&(bt=bt.filter(Ot=>(ot("loose invalid filter",Ot,this.options),!!Ot.match(ft[ht.COMPARATORLOOSE])))),ot("range list",bt);const Mt=new Map,Lt=bt.map(Ot=>new tt(Ot,this.options));for(const Ot of Lt){if(Rt(Ot))return[Ot];Mt.set(Ot.value,Ot)}Mt.size>1&&Mt.has("")&&Mt.delete("");const Ht=[...Mt.values()];return et.set($t,Ht),Ht}intersects(pt,mt){if(!(pt instanceof j))throw new TypeError("a Range is required");return this.set.some($t=>Ct($t,mt)&&pt.set.some(xt=>Ct(xt,mt)&&$t.every(vt=>xt.every(it=>vt.intersects(it,mt)))))}test(pt){if(!pt)return!1;if(typeof pt=="string")try{pt=new ct(pt,this.options)}catch{return!1}for(let mt=0;mt<this.set.length;mt++)if(st(this.set[mt],pt,this.options))return!0;return!1}}range=j;const _e=lrucache,et=new _e,nt=parseOptions_1,tt=requireComparator(),ot=debug_1$1,ct=semver$2,{safeRe:ft,t:ht,comparatorTrimReplace:dt,tildeTrimReplace:yt,caretTrimReplace:Tt}=reExports,{FLAG_INCLUDE_PRERELEASE:St,FLAG_LOOSE:At}=constants$1,Rt=ut=>ut.value==="<0.0.0-0",It=ut=>ut.value==="",Ct=(ut,pt)=>{let mt=!0;const $t=ut.slice();let xt=$t.pop();for(;mt&&$t.length;)mt=$t.every(vt=>xt.intersects(vt,pt)),xt=$t.pop();return mt},kt=(ut,pt)=>(ot("comp",ut,pt),ut=jt(ut,pt),ot("caret",ut),ut=Bt(ut,pt),ot("tildes",ut),ut=Gt(ut,pt),ot("xrange",ut),ut=hn(ut,pt),ot("stars",ut),ut),Pt=ut=>!ut||ut.toLowerCase()==="x"||ut==="*",Bt=(ut,pt)=>ut.trim().split(/\s+/).map(mt=>Kt(mt,pt)).join(" "),Kt=(ut,pt)=>{const mt=pt.loose?ft[ht.TILDELOOSE]:ft[ht.TILDE];return ut.replace(mt,($t,xt,vt,it,bt)=>{ot("tilde",ut,$t,xt,vt,it,bt);let Mt;return Pt(xt)?Mt="":Pt(vt)?Mt=`>=${xt}.0.0 <${+xt+1}.0.0-0`:Pt(it)?Mt=`>=${xt}.${vt}.0 <${xt}.${+vt+1}.0-0`:bt?(ot("replaceTilde pr",bt),Mt=`>=${xt}.${vt}.${it}-${bt} <${xt}.${+vt+1}.0-0`):Mt=`>=${xt}.${vt}.${it} <${xt}.${+vt+1}.0-0`,ot("tilde return",Mt),Mt})},jt=(ut,pt)=>ut.trim().split(/\s+/).map(mt=>zt(mt,pt)).join(" "),zt=(ut,pt)=>{ot("caret",ut,pt);const mt=pt.loose?ft[ht.CARETLOOSE]:ft[ht.CARET],$t=pt.includePrerelease?"-0":"";return ut.replace(mt,(xt,vt,it,bt,Mt)=>{ot("caret",ut,xt,vt,it,bt,Mt);let Lt;return Pt(vt)?Lt="":Pt(it)?Lt=`>=${vt}.0.0${$t} <${+vt+1}.0.0-0`:Pt(bt)?vt==="0"?Lt=`>=${vt}.${it}.0${$t} <${vt}.${+it+1}.0-0`:Lt=`>=${vt}.${it}.0${$t} <${+vt+1}.0.0-0`:Mt?(ot("replaceCaret pr",Mt),vt==="0"?it==="0"?Lt=`>=${vt}.${it}.${bt}-${Mt} <${vt}.${it}.${+bt+1}-0`:Lt=`>=${vt}.${it}.${bt}-${Mt} <${vt}.${+it+1}.0-0`:Lt=`>=${vt}.${it}.${bt}-${Mt} <${+vt+1}.0.0-0`):(ot("no pr"),vt==="0"?it==="0"?Lt=`>=${vt}.${it}.${bt}${$t} <${vt}.${it}.${+bt+1}-0`:Lt=`>=${vt}.${it}.${bt}${$t} <${vt}.${+it+1}.0-0`:Lt=`>=${vt}.${it}.${bt} <${+vt+1}.0.0-0`),ot("caret return",Lt),Lt})},Gt=(ut,pt)=>(ot("replaceXRanges",ut,pt),ut.split(/\s+/).map(mt=>tn(mt,pt)).join(" ")),tn=(ut,pt)=>{ut=ut.trim();const mt=pt.loose?ft[ht.XRANGELOOSE]:ft[ht.XRANGE];return ut.replace(mt,($t,xt,vt,it,bt,Mt)=>{ot("xRange",ut,$t,xt,vt,it,bt,Mt);const Lt=Pt(vt),Ht=Lt||Pt(it),Ot=Ht||Pt(bt),Jt=Ot;return xt==="="&&Jt&&(xt=""),Mt=pt.includePrerelease?"-0":"",Lt?xt===">"||xt==="<"?$t="<0.0.0-0":$t="*":xt&&Jt?(Ht&&(it=0),bt=0,xt===">"?(xt=">=",Ht?(vt=+vt+1,it=0,bt=0):(it=+it+1,bt=0)):xt==="<="&&(xt="<",Ht?vt=+vt+1:it=+it+1),xt==="<"&&(Mt="-0"),$t=`${xt+vt}.${it}.${bt}${Mt}`):Ht?$t=`>=${vt}.0.0${Mt} <${+vt+1}.0.0-0`:Ot&&($t=`>=${vt}.${it}.0${Mt} <${vt}.${+it+1}.0-0`),ot("xRange return",$t),$t})},hn=(ut,pt)=>(ot("replaceStars",ut,pt),ut.trim().replace(ft[ht.STAR],"")),wt=(ut,pt)=>(ot("replaceGTE0",ut,pt),ut.trim().replace(ft[pt.includePrerelease?ht.GTE0PRE:ht.GTE0],"")),rt=ut=>(pt,mt,$t,xt,vt,it,bt,Mt,Lt,Ht,Ot,Jt)=>(Pt($t)?mt="":Pt(xt)?mt=`>=${$t}.0.0${ut?"-0":""}`:Pt(vt)?mt=`>=${$t}.${xt}.0${ut?"-0":""}`:it?mt=`>=${mt}`:mt=`>=${mt}${ut?"-0":""}`,Pt(Lt)?Mt="":Pt(Ht)?Mt=`<${+Lt+1}.0.0-0`:Pt(Ot)?Mt=`<${Lt}.${+Ht+1}.0-0`:Jt?Mt=`<=${Lt}.${Ht}.${Ot}-${Jt}`:ut?Mt=`<${Lt}.${Ht}.${+Ot+1}-0`:Mt=`<=${Mt}`,`${mt} ${Mt}`.trim()),st=(ut,pt,mt)=>{for(let $t=0;$t<ut.length;$t++)if(!ut[$t].test(pt))return!1;if(pt.prerelease.length&&!mt.includePrerelease){for(let $t=0;$t<ut.length;$t++)if(ot(ut[$t].semver),ut[$t].semver!==tt.ANY&&ut[$t].semver.prerelease.length>0){const xt=ut[$t].semver;if(xt.major===pt.major&&xt.minor===pt.minor&&xt.patch===pt.patch)return!0}return!1}return!0};return range}var comparator,hasRequiredComparator;function requireComparator(){if(hasRequiredComparator)return comparator;hasRequiredComparator=1;const a=Symbol("SemVer ANY");class j{static get ANY(){return a}constructor(dt,yt){if(yt=_e(yt),dt instanceof j){if(dt.loose===!!yt.loose)return dt;dt=dt.value}dt=dt.trim().split(/\s+/).join(" "),ot("comparator",dt,yt),this.options=yt,this.loose=!!yt.loose,this.parse(dt),this.semver===a?this.value="":this.value=this.operator+this.semver.version,ot("comp",this)}parse(dt){const yt=this.options.loose?et[nt.COMPARATORLOOSE]:et[nt.COMPARATOR],Tt=dt.match(yt);if(!Tt)throw new TypeError(`Invalid comparator: ${dt}`);this.operator=Tt[1]!==void 0?Tt[1]:"",this.operator==="="&&(this.operator=""),Tt[2]?this.semver=new ct(Tt[2],this.options.loose):this.semver=a}toString(){return this.value}test(dt){if(ot("Comparator.test",dt,this.options.loose),this.semver===a||dt===a)return!0;if(typeof dt=="string")try{dt=new ct(dt,this.options)}catch{return!1}return tt(dt,this.operator,this.semver,this.options)}intersects(dt,yt){if(!(dt instanceof j))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new ft(dt.value,yt).test(this.value):dt.operator===""?dt.value===""?!0:new ft(this.value,yt).test(dt.semver):(yt=_e(yt),yt.includePrerelease&&(this.value==="<0.0.0-0"||dt.value==="<0.0.0-0")||!yt.includePrerelease&&(this.value.startsWith("<0.0.0")||dt.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&dt.operator.startsWith(">")||this.operator.startsWith("<")&&dt.operator.startsWith("<")||this.semver.version===dt.semver.version&&this.operator.includes("=")&&dt.operator.includes("=")||tt(this.semver,"<",dt.semver,yt)&&this.operator.startsWith(">")&&dt.operator.startsWith("<")||tt(this.semver,">",dt.semver,yt)&&this.operator.startsWith("<")&&dt.operator.startsWith(">")))}}comparator=j;const _e=parseOptions_1,{safeRe:et,t:nt}=reExports,tt=cmp_1,ot=debug_1$1,ct=semver$2,ft=requireRange();return comparator}const Range$9=requireRange(),satisfies$4=(a,j,_e)=>{try{j=new Range$9(j,_e)}catch{return!1}return j.test(a)};var satisfies_1=satisfies$4;const Range$8=requireRange(),toComparators$1=(a,j)=>new Range$8(a,j).set.map(_e=>_e.map(et=>et.value).join(" ").trim().split(" "));var toComparators_1=toComparators$1;const SemVer$4=semver$2,Range$7=requireRange(),maxSatisfying$1=(a,j,_e)=>{let et=null,nt=null,tt=null;try{tt=new Range$7(j,_e)}catch{return null}return a.forEach(ot=>{tt.test(ot)&&(!et||nt.compare(ot)===-1)&&(et=ot,nt=new SemVer$4(et,_e))}),et};var maxSatisfying_1=maxSatisfying$1;const SemVer$3=semver$2,Range$6=requireRange(),minSatisfying$1=(a,j,_e)=>{let et=null,nt=null,tt=null;try{tt=new Range$6(j,_e)}catch{return null}return a.forEach(ot=>{tt.test(ot)&&(!et||nt.compare(ot)===1)&&(et=ot,nt=new SemVer$3(et,_e))}),et};var minSatisfying_1=minSatisfying$1;const SemVer$2=semver$2,Range$5=requireRange(),gt$2=gt_1,minVersion$1=(a,j)=>{a=new Range$5(a,j);let _e=new SemVer$2("0.0.0");if(a.test(_e)||(_e=new SemVer$2("0.0.0-0"),a.test(_e)))return _e;_e=null;for(let et=0;et<a.set.length;++et){const nt=a.set[et];let tt=null;nt.forEach(ot=>{const ct=new SemVer$2(ot.semver.version);switch(ot.operator){case">":ct.prerelease.length===0?ct.patch++:ct.prerelease.push(0),ct.raw=ct.format();case"":case">=":(!tt||gt$2(ct,tt))&&(tt=ct);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${ot.operator}`)}}),tt&&(!_e||gt$2(_e,tt))&&(_e=tt)}return _e&&a.test(_e)?_e:null};var minVersion_1=minVersion$1;const Range$4=requireRange(),validRange$1=(a,j)=>{try{return new Range$4(a,j).range||"*"}catch{return null}};var valid$1=validRange$1;const SemVer$1=semver$2,Comparator$2=requireComparator(),{ANY:ANY$1}=Comparator$2,Range$3=requireRange(),satisfies$3=satisfies_1,gt$1=gt_1,lt$1=lt_1,lte$1=lte_1,gte$1=gte_1,outside$3=(a,j,_e,et)=>{a=new SemVer$1(a,et),j=new Range$3(j,et);let nt,tt,ot,ct,ft;switch(_e){case">":nt=gt$1,tt=lte$1,ot=lt$1,ct=">",ft=">=";break;case"<":nt=lt$1,tt=gte$1,ot=gt$1,ct="<",ft="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies$3(a,j,et))return!1;for(let ht=0;ht<j.set.length;++ht){const dt=j.set[ht];let yt=null,Tt=null;if(dt.forEach(St=>{St.semver===ANY$1&&(St=new Comparator$2(">=0.0.0")),yt=yt||St,Tt=Tt||St,nt(St.semver,yt.semver,et)?yt=St:ot(St.semver,Tt.semver,et)&&(Tt=St)}),yt.operator===ct||yt.operator===ft||(!Tt.operator||Tt.operator===ct)&&tt(a,Tt.semver))return!1;if(Tt.operator===ft&&ot(a,Tt.semver))return!1}return!0};var outside_1=outside$3;const outside$2=outside_1,gtr$1=(a,j,_e)=>outside$2(a,j,">",_e);var gtr_1=gtr$1;const outside$1=outside_1,ltr$1=(a,j,_e)=>outside$1(a,j,"<",_e);var ltr_1=ltr$1;const Range$2=requireRange(),intersects$1=(a,j,_e)=>(a=new Range$2(a,_e),j=new Range$2(j,_e),a.intersects(j,_e));var intersects_1=intersects$1;const satisfies$2=satisfies_1,compare$2=compare_1;var simplify=(a,j,_e)=>{const et=[];let nt=null,tt=null;const ot=a.sort((dt,yt)=>compare$2(dt,yt,_e));for(const dt of ot)satisfies$2(dt,j,_e)?(tt=dt,nt||(nt=dt)):(tt&&et.push([nt,tt]),tt=null,nt=null);nt&&et.push([nt,null]);const ct=[];for(const[dt,yt]of et)dt===yt?ct.push(dt):!yt&&dt===ot[0]?ct.push("*"):yt?dt===ot[0]?ct.push(`<=${yt}`):ct.push(`${dt} - ${yt}`):ct.push(`>=${dt}`);const ft=ct.join(" || "),ht=typeof j.raw=="string"?j.raw:String(j);return ft.length<ht.length?ft:j};const Range$1=requireRange(),Comparator$1=requireComparator(),{ANY}=Comparator$1,satisfies$1=satisfies_1,compare$1=compare_1,subset$1=(a,j,_e={})=>{if(a===j)return!0;a=new Range$1(a,_e),j=new Range$1(j,_e);let et=!1;e:for(const nt of a.set){for(const tt of j.set){const ot=simpleSubset(nt,tt,_e);if(et=et||ot!==null,ot)continue e}if(et)return!1}return!0},minimumVersionWithPreRelease=[new Comparator$1(">=0.0.0-0")],minimumVersion=[new Comparator$1(">=0.0.0")],simpleSubset=(a,j,_e)=>{if(a===j)return!0;if(a.length===1&&a[0].semver===ANY){if(j.length===1&&j[0].semver===ANY)return!0;_e.includePrerelease?a=minimumVersionWithPreRelease:a=minimumVersion}if(j.length===1&&j[0].semver===ANY){if(_e.includePrerelease)return!0;j=minimumVersion}const et=new Set;let nt,tt;for(const St of a)St.operator===">"||St.operator===">="?nt=higherGT(nt,St,_e):St.operator==="<"||St.operator==="<="?tt=lowerLT(tt,St,_e):et.add(St.semver);if(et.size>1)return null;let ot;if(nt&&tt){if(ot=compare$1(nt.semver,tt.semver,_e),ot>0)return null;if(ot===0&&(nt.operator!==">="||tt.operator!=="<="))return null}for(const St of et){if(nt&&!satisfies$1(St,String(nt),_e)||tt&&!satisfies$1(St,String(tt),_e))return null;for(const At of j)if(!satisfies$1(St,String(At),_e))return!1;return!0}let ct,ft,ht,dt,yt=tt&&!_e.includePrerelease&&tt.semver.prerelease.length?tt.semver:!1,Tt=nt&&!_e.includePrerelease&&nt.semver.prerelease.length?nt.semver:!1;yt&&yt.prerelease.length===1&&tt.operator==="<"&&yt.prerelease[0]===0&&(yt=!1);for(const St of j){if(dt=dt||St.operator===">"||St.operator===">=",ht=ht||St.operator==="<"||St.operator==="<=",nt){if(Tt&&St.semver.prerelease&&St.semver.prerelease.length&&St.semver.major===Tt.major&&St.semver.minor===Tt.minor&&St.semver.patch===Tt.patch&&(Tt=!1),St.operator===">"||St.operator===">="){if(ct=higherGT(nt,St,_e),ct===St&&ct!==nt)return!1}else if(nt.operator===">="&&!satisfies$1(nt.semver,String(St),_e))return!1}if(tt){if(yt&&St.semver.prerelease&&St.semver.prerelease.length&&St.semver.major===yt.major&&St.semver.minor===yt.minor&&St.semver.patch===yt.patch&&(yt=!1),St.operator==="<"||St.operator==="<="){if(ft=lowerLT(tt,St,_e),ft===St&&ft!==tt)return!1}else if(tt.operator==="<="&&!satisfies$1(tt.semver,String(St),_e))return!1}if(!St.operator&&(tt||nt)&&ot!==0)return!1}return!(nt&&ht&&!tt&&ot!==0||tt&&dt&&!nt&&ot!==0||Tt||yt)},higherGT=(a,j,_e)=>{if(!a)return j;const et=compare$1(a.semver,j.semver,_e);return et>0?a:et<0||j.operator===">"&&a.operator===">="?j:a},lowerLT=(a,j,_e)=>{if(!a)return j;const et=compare$1(a.semver,j.semver,_e);return et<0?a:et>0||j.operator==="<"&&a.operator==="<="?j:a};var subset_1=subset$1;const internalRe=reExports,constants=constants$1,SemVer=semver$2,identifiers=identifiers$1,parse$7=parse_1,valid=valid_1,clean=clean_1,inc=inc_1,diff=diff_1,major=major_1,minor=minor_1,patch=patch_1,prerelease=prerelease_1,compare=compare_1,rcompare=rcompare_1,compareLoose=compareLoose_1,compareBuild=compareBuild_1,sort=sort_1,rsort=rsort_1,gt=gt_1,lt=lt_1,eq$2=eq_1,neq=neq_1,gte=gte_1,lte=lte_1,cmp=cmp_1,coerce=coerce_1,Comparator=requireComparator(),Range=requireRange(),satisfies=satisfies_1,toComparators=toComparators_1,maxSatisfying=maxSatisfying_1,minSatisfying=minSatisfying_1,minVersion=minVersion_1,validRange=valid$1,outside=outside_1,gtr=gtr_1,ltr=ltr_1,intersects=intersects_1,simplifyRange=simplify,subset=subset_1;var semver={parse:parse$7,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq:eq$2,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers};const semver$1=getDefaultExportFromCjs$1(semver),BLACK_LIST=[`${AUTH_SERVICE_PREFIX}/connect`,`${AUTH_SERVICE_PREFIX}/login`,`${AUTH_SERVICE_PREFIX}/invite`,`${AUTH_SERVICE_PREFIX}/issue-passport`,`${AUTH_SERVICE_PREFIX}/oauth/*`],blackListRoute=BLACK_LIST.map(a=>pathToRegexp$1(a,[]));async function login(){const a=(window==null?void 0:window.blocklet)||{},j=window.location.pathname,{componentId:_e,CHAIN_TYPE:et="arcblock",appPid:nt}=a;if(blackListRoute.some(ct=>ct.exec(j)))return null;const ot=getApps();try{const ft=new URLSearchParams(window.location.search).get("inviter")||localStorage.getItem("inviter"),ht=withQuery(joinURL(window.location.origin,AUTH_SERVICE_PREFIX,"/api/user/loginByWallet"),{inviter:ft});return await default_1$4.asyncCall("arcLogin",{target:ht,chainType:et,appPid:nt,componentId:_e,apps:ot.map(yt=>{let Tt=yt==null?void 0:yt.appLogo;return isUrl(Tt)||(Tt=joinURL(yt.appUrl,Tt)),{appName:yt.appName,appPid:yt.appPid,appUrl:yt.appUrl,appLogo:Tt,sourceAppPid:yt.sourceAppPid}})})}catch(ct){return console.error(ct),null}}async function getVisitorId(){return await default_1$4.asyncCall("arcGetVisitorId")}function checkEnableAutoLogin({platform:a,version:j}={}){return!!(a==="ios"&&j&&semver$1.gte(j,"4.15.6")||a==="android"&&j&&semver$1.gte(j,"4.15.1"))}async function didSpacesIsRequired(a){var nt;if((nt=a==null?void 0:a.didSpace)!=null&&nt.endpoint||!window.blocklet||window.self!==window.top)return!1;const j=getWalletDid(a);if(isEmpty$1(j))return!1;const{componentMountPoints:_e}=window.blocklet,[,et]=window.blocklet.componentId.split("/");return _e.some(tt=>{var ot;return((ot=tt==null?void 0:tt.capabilities)==null?void 0:ot.didSpace)==="requiredOnConnect"&&et===tt.did})}const{Provider:Provider$4,Consumer:Consumer$4}=SessionContext$1,didConnectTimeoutError={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"},waitForDidConnect={en:"DID Connect is already opened, please wait for it to complete",zh:"DID Connect 已打开,请等待完成"};function createSessionContext(a=SESSION_TOKEN_STORAGE_KEY,j="ls",_e={},et={}){var ht;let nt="/";(ht=globalThis==null?void 0:globalThis.blocklet)!=null&&ht.prefix&&(nt=globalThis.blocklet.prefix),typeof et=="boolean"&&(et={appendAuthServicePrefix:et,extraParams:{}}),defaultsDeep$1(et,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:REFRESH_TOKEN_STORAGE_KEY});const tt=createStorage(a,j,_e),ot=createStorage(et.refreshTokenStorageKey,"ls");function ct(dt){var Dn,xn;const{connectApi:yt,connectHolder:Tt}=useConnect(),St=useBrowser(),At=useReactive({extraParams:{},options:{},currentLocale:dt.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof dt.autoConnect=="boolean"?dt.autoConnect:!!dt.autoLogin},get prefix(){return et.appendAuthServicePrefix||dt.appendAuthServicePrefix?joinURL(AUTH_SERVICE_PREFIX,dt.prefix):dt.prefix}}),Rt=useReactive({action:dt.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:""}),It=useCreation(()=>dt.locale||At.currentLocale||getBrowserLang(),[dt.locale,At.currentLocale]),{confirmApi:Ct,confirmHolder:kt}=useConfirm(),Pt=useMemoizedFn(()=>{if(Rt.open){const wn=waitForDidConnect[It]||waitForDidConnect.en;throw Toast$1.warning(wn),new Error(wn)}}),Bt=useCreation(()=>new EventEmitter$6,[]),Kt=useMemoizedFn((wn,jn,Rn)=>{const Pn={login:[EVENTS.LOGIN,EVENTS.CANCEL_LOGIN],"bind-wallet":[EVENTS.BIND_WALLET,EVENTS.CANCEL_BIND_WALLET],"switch-passport":[EVENTS.SWITCH_PASSPORT,EVENTS.CANCEL_SWITCH_PASSPORT],"switch-profile":[EVENTS.SWITCH_PROFILE,EVENTS.CANCEL_SWITCH_PROFILE],"switch-did":[EVENTS.LOGIN,EVENTS.CANCEL_LOGIN]};if(!Object.keys(Pn).includes(wn))return;const tr=async(...Bn)=>{isFunction$8(jn)&&await jn(...Bn),Bt.emit(wn,...Bn)};Bt.once(Pn[wn][0],tr),Bt.once(Pn[wn][1],async(...Bn)=>{isFunction$8(tr)&&Bt.off(Pn[wn][0],tr),isFunction$8(Rn)&&await Rn(...Bn),Bt.emit(`cancel-${wn}`,...Bn)})}),jt=usePrevious(Rt.initialized,(wn,jn)=>wn!==jn||wn===!0&&jn===!0),{handleRefreshUser:zt,handleRefreshToken:Gt,renewToken:tn,clearSession:hn,handleLoginResult:wt,decrypt:rt,service:st,getSessionToken:ut,getRefreshToken:pt,setRefreshToken:mt,setSessionToken:$t}=useSessionToken({state:Rt,pageState:At,sessionTokenStorage:tt,refreshTokenStorage:ot,serviceHost:dt.serviceHost,apiOptions:dt.apiOptions,lazyRefreshToken:dt.lazyRefreshToken}),xt=useMemoizedFn((wn,jn={},Rn={})=>{Pt();const Pn=wn;typeof Pn=="object"&&(wn=Pn.onSuccess,jn=Pn.extraParams||{},Rn=Pn.options||{},Rn.origin=Pn.origin||""),(!Rt.user||Rn.origin==="switch-did")&&(Rn.origin==="switch-did"?Kt("switch-did",wn,Pn==null?void 0:Pn.onCancel):Kt("login",wn,Pn==null?void 0:Pn.onCancel),At.extraParams=jn,At.options=Rn,Rt.action="login",In())}),vt=useMemoizedFn(async(wn,jn={},Rn={})=>{var Fn;Pt();const Pn=wn;typeof Pn=="object"&&(wn=Pn.onSuccess,jn=Pn.extraParams||{},Rn=Pn.options||{}),isUndefined$2(jn==null?void 0:jn.inviter)&&window.localStorage.getItem("inviter")&&(jn.inviter=window.localStorage.getItem("inviter"));const{params:tr}=await decodeUrlParams();if(isUndefined$2(jn==null?void 0:jn.forceConnected)&&(tr!=null&&tr.forceConnected)&&(jn.forceConnected=tr.forceConnected,isUndefined$2(Rn.showQuickConnect)&&(Rn.showQuickConnect=!1)),isUndefined$2(jn==null?void 0:jn.sourceAppPid)&&!isUndefined$2(tr==null?void 0:tr.sourceAppPid)&&(jn.sourceAppPid=tr.sourceAppPid),(jn==null?void 0:jn.openMode)==="redirect"){const Gn=(jn==null?void 0:jn.redirect)||"/",Tr=new URL(`${AUTH_SERVICE_PREFIX}/login`,window.location.origin);Tr.searchParams.set("redirect",Gn),jn!=null&&jn.forceConnected&&Tr.searchParams.set("forceConnected",jn==null?void 0:jn.forceConnected),isUndefined$2(jn==null?void 0:jn.sourceAppPid)||Tr.searchParams.set("sourceAppPid",jn==null?void 0:jn.sourceAppPid),isUndefined$2(jn==null?void 0:jn.inviter)||Tr.searchParams.set("inviter",jn==null?void 0:jn.inviter),Rn!=null&&Rn.origin&&Tr.searchParams.set("origin",Rn.origin),window.location.href=Tr.href;return}let Bn=jn==null?void 0:jn.sourceAppPid;isUndefined$2(Bn)&&An&&(Bn=Tn.appPid),await pWaitFor$1(()=>Rt.initialized),typeof Rn=="string"&&(Rn={origin:Rn});const qn=cloneDeep$1(jn);At.allowWallet=void 0;const $r=(qn==null?void 0:qn.openMode)||((Fn=dt==null?void 0:dt.extraParams)==null?void 0:Fn.openMode);isUndefined$2($r)?At.openMode="window":At.openMode=$r,Bn?Rt.baseUrl=globalThis.blocklet.appUrl:Rt.baseUrl="",xt(wn,qn,Rn)}),it=getVisitorId$2(),bt=useMemoizedFn(async wn=>{const jn=joinURL(AUTH_SERVICE_PREFIX,"/api/user/logout");await fetch(jn,{method:"POST",body:JSON.stringify({visitorId:it}),headers:{"Content-Type":"application/json"}}),hn(),Sn(),Rt.user=null,Rt.provider="",Rt.walletOS="",Rt.error="",Rt.loading=!1,Bt.emit("logout"),typeof wn=="function"&&wn()}),{userSessions:Mt,refresh:Lt,loaded:Ht,loginUserSession:Ot}=useQuickConnect({appPid:getCurrentAppPid(Rt.user),loginAppPid:(Dn=globalThis==null?void 0:globalThis.blocklet)==null?void 0:Dn.appPid,sourceAppPid:(xn=Rt==null?void 0:Rt.user)==null?void 0:xn.sourceAppPid,autoFetch:!1,fetchAll:!0}),Jt=useMemoizedFn(async()=>{Rt!=null&&Rt.user||await new Promise(wn=>{vt(()=>{wn()})})}),Ft=useMemoizedFn((wn,jn={},Rn={})=>{Pt();const Pn=wn;typeof Pn=="object"&&(wn=Pn.onSuccess,jn=Pn.extraParams||{},Rn=Pn.options||{}),typeof Rn=="string"&&(Rn={origin:Rn}),Rn!=null&&Rn.userSession?Ot(Rn.userSession).then(tr=>{updateConnectedInfo({connected_did:Rn.userSession.user.did,connected_pk:Rn.userSession.user.pk,connected_wallet_os:Rn.userSession.extra.walletOS,connected_app:getAppId$1()},!0),Kt("switch-did",wn),wt({...tr,encrypted:!1}),zt({showProgress:!0}).then(async()=>{await sleep$1(),Bt.emit(EVENTS.LOGIN,tr,rt,Yt.current),await Vt()})}):(isUndefined$2(jn==null?void 0:jn.forceConnected)&&(jn.forceConnected=!1),vt(wn,jn,{...Rn,origin:"switch-did"}))}),Zt=useMemoizedFn(async()=>{await new BlockletSDK().user.refreshProfile()}),nn=useMemoizedFn(async(wn,jn={})=>{await Jt(),Pt();const Rn=wn;typeof Rn=="object"&&(wn=Rn.onSuccess,jn=Rn.extraParams||{}),Kt("switch-profile",wn,Rn==null?void 0:Rn.onCancel),At.extraParams=jn,At.options={},Rt.action="switch-profile",In()}),cn=useMemoizedFn(async(wn,jn={})=>{await Jt(),Pt();const Rn=wn;typeof Rn=="object"&&(wn=Rn.onSuccess,jn=Rn.extraParams||{}),Kt("switch-passport",wn,Rn==null?void 0:Rn.onCancel),At.extraParams=jn,At.options={},Rt.action="switch-passport",In()}),qt=useMemoizedFn(async({extraParams:wn={},onSuccess:jn=()=>{},...Rn}={})=>{await Jt(),Pt(),At.extraParams={referrer:window.location.href,purpose:"authorize-for-import",...wn},At.options={},Rt.action="connect-to-did-spaces-for-user",In({hideCloseButton:!0,onSuccess:jn,...Rn})}),Dt=useMemoizedFn(async({extraParams:wn={},onSuccess:jn={}}={})=>{await Jt(),qt({extraParams:{purpose:"authorize-for-import",...wn},onSuccess:jn,hideCloseButton:!1})}),Vt=useMemoizedFn(async({extraParams:wn={},onSuccess:jn={}}={})=>{await Jt(),await didSpacesIsRequired(Rt==null?void 0:Rt.user)&&qt({extraParams:{purpose:"authorize-for-full-access",...wn},onSuccess:jn})}),an=useMemoizedFn(async(wn,jn={})=>{if(await Jt(),getWalletDid(Rt.user)){wn({},rt,Yt.current);return}Pt();const Rn=wn;typeof Rn=="object"&&(wn=Rn.onSuccess),Kt("bind-wallet",wn,Rn==null?void 0:Rn.onCancel),At.extraParams=jn,At.options={},Rt.action="bind-wallet",In()}),Xt=useMemoizedFn(async wn=>{At.extraParams={},At.options={},wt(wn),Rt.loading=!1,await zt({showProgress:!0}),await sleep$1(),Rt.action==="login"?(Bt.emit(EVENTS.LOGIN,wn,rt,Yt.current),Vt()):Rt.action==="switch-passport"&&Bt.emit(EVENTS.SWITCH_PASSPORT,wn,rt,Yt.current)}),pn=useMemoizedFn(wn=>{At.extraParams={},At.options={},wt(wn),Rt.loading=!1,zt({showProgress:!0}).then(async()=>{await sleep$1(),Bt.emit(EVENTS.BIND_WALLET,wn,rt,Yt.current)})}),En=useMemoizedFn(()=>{zt({showProgress:!0}),Bt.emit(EVENTS.CONNECT_TO_DID_SPACE_FOR_FULL_ACCESS)}),sn=useMemoizedFn(wn=>{At.extraParams={},At.options={},Rt.loading=!1,zt({showProgress:!0}).then(async()=>{await sleep$1(),Bt.emit(EVENTS.SWITCH_PROFILE,wn,rt,Yt.current)})}),dn=useMemoizedFn(wn=>{At.extraParams={},At.options={},Sn();const jn={login:EVENTS.CANCEL_LOGIN,"switch-profile":EVENTS.CANCEL_SWITCH_PROFILE,"switch-passport":EVENTS.CANCEL_SWITCH_PASSPORT,"bind-wallet":EVENTS.CANCEL_BIND_WALLET};Bt.emit(jn[wn])}),Mn=useMemoizedFn((wn,...jn)=>{try{$n[wn](...jn)}catch(Rn){console.error("Catch error in onSuccess",{action:wn,args:jn,err:Rn})}}),{federatedMaster:yn,federatedEnabled:An,master:Tn}=useFederated({locale:It,decrypt:rt,login:xt,handleLoginResult:wt,handleRefreshUser:zt,setRefreshToken:mt,setSessionToken:$t}),{checkMatch:gn}=useProtectedRoutes({protectedRoutes:dt.protectedRoutes||[]}),vn=useLatest(Mt),Ln=useMemoizedFn(async()=>(Ht||(await Lt(),await sleep$1()),vn.current)),Sn=useMemoizedFn(()=>{Rt.open=!1,yt.close()}),In=async(wn={})=>{var qn,$r,Fn,Gn,Tr,Vn,Kn;let jn=Rt.action;((qn=At==null?void 0:At.options)==null?void 0:qn.origin)==="switch-did"&&(jn=($r=At==null?void 0:At.options)==null?void 0:$r.origin);const Rn=translations$2[jn],Pn=Rn[It]||Rn.en,tr={...et.extraParams,...dt.extraParams,...At.extraParams,previousUserDid:(Fn=Rt==null?void 0:Rt.user)==null?void 0:Fn.did,email:(Gn=Rt==null?void 0:Rt.user)==null?void 0:Gn.email};if(jn==="switch-did"&&(tr!=null&&tr.forceConnected)){const br=(Un,Yn={})=>translate(translations$2["switch-specified-did"],Un,It,"en",Yn);Pn.title=br("title"),Pn.scan=br("scan",{did:tr.forceConnected}),Pn.confirm=br("confirm"),Pn.success=br("success")}tr==null||delete tr.openMode;const Bn={action:Rt.action,locale:It,hideCloseButton:wn==null?void 0:wn.hideCloseButton,extraParams:tr,options:{...dt.options||{},...At.options},checkTimeout:dt.timeout,webWalletUrl:dt.webWalletUrl,messages:Pn,useSocket:dt.useSocket,...omit$1(dt,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...pick$2(At.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:At.prefix,allowWallet:isUndefined$2(At.allowWallet)?Rt.action!=="login"||(((Tr=globalThis.blocklet)==null?void 0:Tr.DID_CONNECT_ALLOW_WALLET)||"1")==="1":At.allowWallet,onSuccess:async(...br)=>{Mn(Rt.action,...br),isFunction$8(wn==null?void 0:wn.onSuccess)&&await wn.onSuccess(...br),Rt.open=!1},onClose(...br){dn(Rt.action,...br)},onError(br){console.error(br)}};if(Rt.open=!0,["login"].includes(Rt.action)&&At.openMode==="window"&&!St.wallet)try{const br={...Bn,baseUrl:window.location.origin};isUrl(At.prefix)||(br.prefix=joinURL(window.location.origin,dt.serviceHost==="/"?"":dt.serviceHost,At.prefix)),(Vn=br.extraParams)!=null&&Vn.provider||(br.extraParams.provider=((Kn=Rt==null?void 0:Rt.user)==null?void 0:Kn.provider)||"wallet"),await yt.openPopup(br,{locale:It})}catch(br){br instanceof NotOpenError&&Sn(),br.message==="Timeout"?Toast$1.error(didConnectTimeoutError[It]||didConnectTimeoutError.en):console.error(br)}else yt.open(Bn)},Nn=useMemoizedFn(async()=>{const{params:wn,url:jn}=await decodeUrlParams();if(wn){const{switchBehavior:Rn,forceConnected:Pn,sourceAppPid:tr,showClose:Bn}=wn;Pn===Rt.user.did?window.history.replaceState(null,"trim",jn):Rn==="required"?Ft(()=>{},{openMode:"redirect",redirect:jn,sourceAppPid:tr,forceConnected:Pn}):Rn==="disabled"?window.history.replaceState(null,"trim",jn):Ct.open({title:translations$2.switchAccountDialog[It].title,content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:{textAlign:"center",mb:2},children:translations$2.switchAccountDialog[It].description}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",color:colors$1.foregroundsFgBase},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1},children:[jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{did:Rt.user.did,shape:"circle",variant:"circle",size:80}),jsxRuntimeExports.jsx(DID,{did:Rt.user.did,showAvatar:!1,compact:!0,responsive:!1}),translations$2.switchAccountDialog[It].currentAccount]}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",justifyContent:"center",px:2},children:jsxRuntimeExports.jsx(Box,{component:Icon,icon:data$w,fontSize:24,color:colors$1.foregroundsFgMuted,sx:{animation:"right 2.5s linear infinite","@keyframes right":{"0%":{transform:"translateX(-3px)",opacity:0},"60%":{transform:"translateX(3px)",opacity:1},"100%":{transform:"translateX(0px)",opacity:0}}}})}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1,fontWeight:500},children:[jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{did:Pn,shape:"circle",variant:"circle",size:80}),jsxRuntimeExports.jsx(DID,{did:Pn,showAvatar:!1,compact:!0,responsive:!1}),translations$2.switchAccountDialog[It].nextAccount]})]})]}),showCloseButton:Bn,showCancelButton:!1,confirmButtonText:translations$2.switchAccountDialog[It].confirm,async onConfirm(qn){const Fn=(await Ln()).find(Gn=>Gn.userDid===Pn);if(Fn){Ot(Fn).then(Gn=>{updateConnectedInfo({connected_did:Fn.user.did,connected_pk:Fn.user.pk,connected_wallet_os:Fn.extra.walletOS,connected_app:getAppId$1()},!0),wt({...Gn,encrypted:!1}),zt({showProgress:!0}).then(async()=>{await sleep$1(),Bt.emit(EVENTS.LOGIN,Gn,rt,Yt.current),await Vt()})}),qn();return}Ft(()=>{qn(),window.location.replace(jn)},{sourceAppPid:tr,forceConnected:Pn,enableSwitchApp:!1},{showQuickConnect:!0})}})}}),rn=useMemoizedFn(async(wn,jn)=>{const Rn=Object.assign({login:!0,bindWallet:!0,bindDidSpaces:!1},jn==null?void 0:jn.requirements),Pn=(jn==null?void 0:jn.openMode)||"popup";Rn.login&&await Jt(),Rn.bindWallet&&await new Promise(tr=>{an(()=>{tr()})}),Rn.bindDidSpaces&&(await didSpacesIsRequired(Rt==null?void 0:Rt.user)||await new Promise(tr=>{Rn.bindDidSpaces==="full"?Vt({onSuccess(){tr()}}):Rn.bindDidSpaces==="read"&&Dt({onSuccess(){tr()}})})),Pn==="window"?yt.openPopup(wn,jn):Pn==="popup"&&yt.open(wn)}),Ut={...Rt,loading:At.autoConnect&&!Rt.user||Rt.loading,openDidConnect:rn,login:vt,logout:bt,switchDid:Ft,autoSwitchDid:Nn,refreshProfile:Zt,switchProfile:nn,switchPassport:cn,connectToDidSpaceForImport:Dt,connectToDidSpaceForFullAccess:Vt,bindWallet:an,refresh:zt,updateConnectedInfo,federatedMaster:yn,useOAuth,OAuthProvider,OAuthConsumer,OAuthContext,useDid,WrapDid,getUserSessions:Ln},Yt=useLatest(Ut),fn={api:st,events:Bt,storage:tt,connectApi:yt,session:Yt.current},$n={login:Xt,"switch-profile":sn,"switch-passport":Xt,"bind-wallet":pn,"connect-to-did-spaces-for-user":En};return useUpdateEffect(()=>{if(Rt.initialized){const wn=!jt;Bt.emit("change",{user:cloneDeep$1(Rt.user),isFirst:wn})}},[Rt.user,Rt.initialized,Bt]),useUpdateEffect(()=>{Rt.initialized&&Rt.user&&Nn()},[Rt.initialized]),useMount(async()=>{default_1$4.registerAsyn("blocklet:logout",bt);const wn=Cookie.get("connected_app"),jn=getAppId$1();if(dt.autoDisconnect&&wn&&jn&&wn!==jn){hn(),Rt.initialized=!0,At.autoConnect?In():Sn();return}const Rn=ut();let Pn="web";if(St.mobile.apple.device?Pn="ios":St.mobile.android.device&&(Pn="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&St.wallet&&checkEnableAutoLogin({version:St.walletVersion,platform:Pn})){if(!it){const Bn=await getVisitorId();setVisitorId(Bn)}if(!Rn)try{Rt.loading=!0;const Bn=await login();if(Bn){await Xt({sessionToken:Bn.sessionToken,refreshToken:Bn.refreshToken,encrypted:!1}),Rt.initialized=!0;return}}finally{Rt.loading=!1}}if(Rn){await zt({showProgress:!0}),Rt.initialized=!0,await Vt();return}if(typeof window<"u"){const Bn=new URL(window.location.href),qn=Bn.searchParams.get("loginToken");if(qn){wt({loginToken:qn,encrypted:!1}),Bn.searchParams.delete("loginToken"),window.history.replaceState({},window.title,Bn.href);return}}if(pt()){await Gt(!0),Rt.initialized=!0;return}try{}catch(Bn){console.error("Federated: tryAutoLogin failed",Bn)}finally{Rt.initialized=!0}At.autoConnect?In():Sn()}),gn()&&!Rt.initialized?jsxRuntimeExports.jsx(Center,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):jsxRuntimeExports.jsx(Provider$4,{value:fn,children:jsxRuntimeExports.jsxs(OAuthProvider,{locale:It,onSwitchPassport:({sessionToken:wn,refreshToken:jn})=>{Xt({sessionToken:wn,refreshToken:jn,encrypted:!1})},onUnbindOAuth:()=>{zt()},onBindOAuth:()=>{zt()},children:[!Rt.open&&typeof dt.children=="function"?dt.children(Rt):dt.children,Tt,kt,et.rolling&&jsxRuntimeExports.jsx(WindowFocusAware,{callback:()=>tn()})]})})}ct.propTypes={children:PropTypes.any.isRequired,serviceHost:PropTypes.string,action:PropTypes.string,prefix:PropTypes.string,appendAuthServicePrefix:PropTypes.bool,locale:PropTypes.string,timeout:PropTypes.number,autoConnect:PropTypes.bool,autoDisconnect:PropTypes.bool,useSocket:PropTypes.bool,extraParams:PropTypes.object,options:PropTypes.object,webWalletUrl:PropTypes.string,protectedRoutes:PropTypes.arrayOf(PropTypes.string),apiOptions:PropTypes.object,lazyRefreshToken:PropTypes.bool},ct.defaultProps={serviceHost:nt,locale:"",action:"login",prefix:API_DID_PREFIX,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:DEFAULT_TIMEOUT$1*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function ft(dt){return function(Tt){return jsxRuntimeExports.jsx(ToastProvider,{children:jsxRuntimeExports.jsx(Consumer$4,{children:St=>jsxRuntimeExports.jsx(dt,{...Tt,...St})})})}}return{SessionProvider:dt=>jsxRuntimeExports.jsx(ToastProvider,{children:jsxRuntimeExports.jsx(ct,{...dt})}),SessionConsumer:Consumer$4,SessionContext:SessionContext$1,withSession:ft}}let path="/";window.env&&(path=window.env.groupPathPrefix||window.env.pathPrefix||"/");function formatCacheTtl(a,j){return[void 0,null,""].includes(a)?j:a/86400}var uo,co,fo;const sessionTokenExpireInDays=formatCacheTtl((fo=(co=(uo=window.blocklet)==null?void 0:uo.settings)==null?void 0:co.session)==null?void 0:fo.cacheTtl,constant$3.SESSION_CACHE_TTL/86400);var po,ho,mo;const refreshTokenExpireInDays=formatCacheTtl((mo=(ho=(po=window.blocklet)==null?void 0:po.settings)==null?void 0:ho.session)==null?void 0:mo.ttl,constant$3.SESSION_TTL/86400),{SessionProvider,SessionContext,SessionConsumer,withSession}=createSessionContext("login_token","cookie",{returnDomain:!1,path,expireInDays:sessionTokenExpireInDays},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays});function useSessionContext(){return reactExports.useContext(SessionContext)}function Root$1({children:a}){const j=create$3({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return jsxRuntimeExports.jsx(StyledEngineProvider,{injectFirst:!0,children:jsxRuntimeExports.jsx(ThemeProvider$1,{theme:j,children:jsxRuntimeExports.jsx(ThemeProvider$4,{theme:j,children:jsxRuntimeExports.jsx(LocaleProvider,{translations:translations$9,fallbackLocale:"en",children:jsxRuntimeExports.jsx(ToastProvider,{children:jsxRuntimeExports.jsx(RootInside,{theme:j,children:a})})})})})})}const url$1=new URL(window.location.href),mode=url$1.searchParams.get("mode")||"",isEmbedDialog=url$1.pathname.includes("embed")&&mode==="dialog",isEmbedSection=url$1.pathname.includes("embed")&&mode!=="dialog";function RootInside({children:a,theme:j}){var nt,tt,ot;const{locale:_e}=useLocaleContext(),et=css`
|
|
472
472
|
${isEmbedDialog?"body { background-color: transparent }":""}
|
|
473
473
|
${isEmbedSection?".MuiModal-backdrop { background-color: transparent !important }":""}
|
|
474
474
|
a {
|
|
@@ -1349,4 +1349,4 @@ ${et.length}`,ot=Buffer$3.from(tt),ct=Buffer$3.concat([ot,nt]);return hash_1.def
|
|
|
1349
1349
|
`)&&a.flags==="s")}),fails$2=fails$d,globalThis$1=globalThis_1,$RegExp=globalThis$1.RegExp,regexpUnsupportedNcg=fails$2(function(){var a=$RegExp("(?<a>b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$<a>c")!=="bc"}),call$4=functionCall,uncurryThis$5=functionUncurryThis,toString$3=toString$4,regexpFlags=regexpFlags$1,stickyHelpers=regexpStickyHelpers,shared=shared$4,create$1=objectCreate,getInternalState=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$3=uncurryThis$5("".charAt),indexOf=uncurryThis$5("".indexOf),replace$1=uncurryThis$5("".replace),stringSlice$3=uncurryThis$5("".slice),UPDATES_LAST_INDEX_WRONG=function(){var a=/a/,j=/b*/g;return call$4(nativeExec,a,"a"),call$4(nativeExec,j,"a"),a.lastIndex!==0||j.lastIndex!==0}(),UNSUPPORTED_Y=stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=/()??/.exec("")[1]!==void 0,PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG;PATCH&&(patchedExec=function(j){var _e=this,et=getInternalState(_e),nt=toString$3(j),tt=et.raw,ot,ct,ft,ht,dt,yt,Tt;if(tt)return tt.lastIndex=_e.lastIndex,ot=call$4(patchedExec,tt,nt),_e.lastIndex=tt.lastIndex,ot;var St=et.groups,At=UNSUPPORTED_Y&&_e.sticky,Rt=call$4(regexpFlags,_e),It=_e.source,Ct=0,kt=nt;if(At&&(Rt=replace$1(Rt,"y",""),indexOf(Rt,"g")===-1&&(Rt+="g"),kt=stringSlice$3(nt,_e.lastIndex),_e.lastIndex>0&&(!_e.multiline||_e.multiline&&charAt$3(nt,_e.lastIndex-1)!==`
|
|
1350
1350
|
`)&&(It="(?: "+It+")",kt=" "+kt,Ct++),ct=new RegExp("^(?:"+It+")",Rt)),NPCG_INCLUDED&&(ct=new RegExp("^"+It+"$(?!\\s)",Rt)),UPDATES_LAST_INDEX_WRONG&&(ft=_e.lastIndex),ht=call$4(nativeExec,At?ct:_e,kt),At?ht?(ht.input=stringSlice$3(ht.input,Ct),ht[0]=stringSlice$3(ht[0],Ct),ht.index=_e.lastIndex,_e.lastIndex+=ht[0].length):_e.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&ht&&(_e.lastIndex=_e.global?ht.index+ht[0].length:ft),NPCG_INCLUDED&&ht&&ht.length>1&&call$4(nativeReplace,ht[0],ct,function(){for(dt=1;dt<arguments.length-2;dt++)arguments[dt]===void 0&&(ht[dt]=void 0)}),ht&&St)for(ht.groups=yt=create$1(null),dt=0;dt<St.length;dt++)Tt=St[dt],yt[Tt[0]]=ht[Tt[1]];return ht});var regexpExec$2=patchedExec,$$1=_export,exec=regexpExec$2;$$1({target:"RegExp",proto:!0,forced:/./.exec!==exec},{exec});var classofRaw=classofRaw$2,uncurryThis$4=functionUncurryThis,functionUncurryThisClause=function(a){if(classofRaw(a)==="Function")return uncurryThis$4(a)},isObject=isObject$6,classof$1=classofRaw$2,wellKnownSymbol$3=wellKnownSymbol$7,MATCH$1=wellKnownSymbol$3("match"),isRegexp=function(a){var j;return isObject(a)&&((j=a[MATCH$1])!==void 0?!!j:classof$1(a)==="RegExp")},isRegExp=isRegexp,$TypeError$1=TypeError,notARegexp=function(a){if(isRegExp(a))throw new $TypeError$1("The method doesn't accept regular expressions");return a},wellKnownSymbol$2=wellKnownSymbol$7,MATCH=wellKnownSymbol$2("match"),correctIsRegexpLogic=function(a){var j=/./;try{"/./"[a](j)}catch{try{return j[MATCH]=!1,"/./"[a](j)}catch{}}return!1},$=_export,uncurryThis$3=functionUncurryThisClause,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,toLength$1=toLength$3,toString$2=toString$4,notARegExp=notARegexp,requireObjectCoercible$2=requireObjectCoercible$5,correctIsRegExpLogic=correctIsRegexpLogic,slice=uncurryThis$3("".slice),min$1=Math.min,CORRECT_IS_REGEXP_LOGIC=correctIsRegExpLogic("endsWith"),MDN_POLYFILL_BUG=!CORRECT_IS_REGEXP_LOGIC&&!!function(){var a=getOwnPropertyDescriptor(String.prototype,"endsWith");return a&&!a.writable}();$({target:"String",proto:!0,forced:!MDN_POLYFILL_BUG&&!CORRECT_IS_REGEXP_LOGIC},{endsWith:function a(j){var _e=toString$2(requireObjectCoercible$2(this));notARegExp(j);var et=arguments.length>1?arguments[1]:void 0,nt=_e.length,tt=et===void 0?nt:min$1(toLength$1(et),nt),ot=toString$2(j);return slice(_e,tt-ot.length,tt)===ot}});var NATIVE_BIND=functionBindNative,FunctionPrototype=Function.prototype,apply$1=FunctionPrototype.apply,call$3=FunctionPrototype.call,functionApply=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND?call$3.bind(apply$1):function(){return call$3.apply(apply$1,arguments)}),call$2=functionCall,defineBuiltIn=defineBuiltIn$2,regexpExec$1=regexpExec$2,fails$1=fails$d,wellKnownSymbol$1=wellKnownSymbol$7,createNonEnumerableProperty=createNonEnumerableProperty$3,SPECIES=wellKnownSymbol$1("species"),RegExpPrototype=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(a,j,_e,et){var nt=wellKnownSymbol$1(a),tt=!fails$1(function(){var ht={};return ht[nt]=function(){return 7},""[a](ht)!==7}),ot=tt&&!fails$1(function(){var ht=!1,dt=/a/;return a==="split"&&(dt={},dt.constructor={},dt.constructor[SPECIES]=function(){return dt},dt.flags="",dt[nt]=/./[nt]),dt.exec=function(){return ht=!0,null},dt[nt](""),!ht});if(!tt||!ot||_e){var ct=/./[nt],ft=j(nt,""[a],function(ht,dt,yt,Tt,St){var At=dt.exec;return At===regexpExec$1||At===RegExpPrototype.exec?tt&&!St?{done:!0,value:call$2(ct,dt,yt,Tt)}:{done:!0,value:call$2(ht,yt,dt,Tt)}:{done:!1}});defineBuiltIn(String.prototype,a,ft[0]),defineBuiltIn(RegExpPrototype,nt,ft[1])}et&&createNonEnumerableProperty(RegExpPrototype[nt],"sham",!0)},uncurryThis$2=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$1=toString$4,requireObjectCoercible$1=requireObjectCoercible$5,charAt$2=uncurryThis$2("".charAt),charCodeAt=uncurryThis$2("".charCodeAt),stringSlice$2=uncurryThis$2("".slice),createMethod=function(a){return function(j,_e){var et=toString$1(requireObjectCoercible$1(j)),nt=toIntegerOrInfinity$1(_e),tt=et.length,ot,ct;return nt<0||nt>=tt?a?"":void 0:(ot=charCodeAt(et,nt),ot<55296||ot>56319||nt+1===tt||(ct=charCodeAt(et,nt+1))<56320||ct>57343?a?charAt$2(et,nt):ot:a?stringSlice$2(et,nt,nt+2):(ot-55296<<10)+(ct-56320)+65536)}},stringMultibyte={codeAt:createMethod(!1),charAt:createMethod(!0)},charAt$1=stringMultibyte.charAt,advanceStringIndex$1=function(a,j,_e){return j+(_e?charAt$1(a,j).length:1)},uncurryThis$1=functionUncurryThis,toObject=toObject$2,floor=Math.floor,charAt=uncurryThis$1("".charAt),replace=uncurryThis$1("".replace),stringSlice$1=uncurryThis$1("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(a,j,_e,et,nt,tt){var ot=_e+a.length,ct=et.length,ft=SUBSTITUTION_SYMBOLS_NO_NAMED;return nt!==void 0&&(nt=toObject(nt),ft=SUBSTITUTION_SYMBOLS),replace(tt,ft,function(ht,dt){var yt;switch(charAt(dt,0)){case"$":return"$";case"&":return a;case"`":return stringSlice$1(j,0,_e);case"'":return stringSlice$1(j,ot);case"<":yt=nt[stringSlice$1(dt,1,-1)];break;default:var Tt=+dt;if(Tt===0)return ht;if(Tt>ct){var St=floor(Tt/10);return St===0?ht:St<=ct?et[St-1]===void 0?charAt(dt,1):et[St-1]+charAt(dt,1):ht}yt=et[Tt-1]}return yt===void 0?"":yt})},call$1=functionCall,anObject$1=anObject$7,isCallable$1=isCallable$d,classof=classofRaw$2,regexpExec=regexpExec$2,$TypeError=TypeError,regexpExecAbstract=function(a,j){var _e=a.exec;if(isCallable$1(_e)){var et=call$1(_e,a,j);return et!==null&&anObject$1(et),et}if(classof(a)==="RegExp")return call$1(regexpExec,a,j);throw new $TypeError("RegExp#exec called on incompatible receiver")},apply=functionApply,call=functionCall,uncurryThis=functionUncurryThis,fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,fails=fails$d,anObject=anObject$7,isCallable=isCallable$d,isNullOrUndefined=isNullOrUndefined$3,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength=toLength$3,toString=toString$4,requireObjectCoercible=requireObjectCoercible$5,advanceStringIndex=advanceStringIndex$1,getMethod=getMethod$2,getSubstitution=getSubstitution$1,regExpExec=regexpExecAbstract,wellKnownSymbol=wellKnownSymbol$7,REPLACE=wellKnownSymbol("replace"),max=Math.max,min=Math.min,concat=uncurryThis([].concat),push=uncurryThis([].push),stringIndexOf=uncurryThis("".indexOf),stringSlice=uncurryThis("".slice),maybeToString=function(a){return a===void 0?a:String(a)},REPLACE_KEEPS_$0=function(){return"a".replace(/./,"$0")==="$0"}(),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=function(){return/./[REPLACE]?/./[REPLACE]("a","$0")==="":!1}(),REPLACE_SUPPORTS_NAMED_GROUPS=!fails(function(){var a=/./;return a.exec=function(){var j=[];return j.groups={a:"7"},j},"".replace(a,"$<a>")!=="7"});fixRegExpWellKnownSymbolLogic("replace",function(a,j,_e){var et=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(tt,ot){var ct=requireObjectCoercible(this),ft=isNullOrUndefined(tt)?void 0:getMethod(tt,REPLACE);return ft?call(ft,tt,ct,ot):call(j,toString(ct),tt,ot)},function(nt,tt){var ot=anObject(this),ct=toString(nt);if(typeof tt=="string"&&stringIndexOf(tt,et)===-1&&stringIndexOf(tt,"$<")===-1){var ft=_e(j,ot,ct,tt);if(ft.done)return ft.value}var ht=isCallable(tt);ht||(tt=toString(tt));var dt=ot.global,yt;dt&&(yt=ot.unicode,ot.lastIndex=0);for(var Tt=[],St;St=regExpExec(ot,ct),!(St===null||(push(Tt,St),!dt));){var At=toString(St[0]);At===""&&(ot.lastIndex=advanceStringIndex(ct,toLength(ot.lastIndex),yt))}for(var Rt="",It=0,Ct=0;Ct<Tt.length;Ct++){St=Tt[Ct];for(var kt=toString(St[0]),Pt=max(min(toIntegerOrInfinity(St.index),ct.length),0),Bt=[],Kt,jt=1;jt<St.length;jt++)push(Bt,maybeToString(St[jt]));var zt=St.groups;if(ht){var Gt=concat([kt],Bt,Pt,ct);zt!==void 0&&push(Gt,zt),Kt=toString(apply(tt,void 0,Gt))}else Kt=getSubstitution(kt,ct,Pt,Bt,zt,tt);Pt>=It&&(Rt+=stringSlice(ct,It,Pt)+Kt,It=Pt+kt.length)}return Rt+stringSlice(ct,It)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);const queryType={name:"Query"},mutationType={name:"Mutation"},subscriptionType=null,types=[{kind:"SCALAR",name:"Any",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Bytes",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Float32",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Int32",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Int64",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Uint32",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Uint64",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"AutoBackupInput",description:null,fields:null,inputFields:[{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"AutoCheckUpdateInput",description:null,fields:null,inputFields:[{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"BlockletAccessPolicyInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"roles",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null},{name:"reverse",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"isProtected",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"BlockletAccessPolicyQueryInput",description:null,fields:null,inputFields:[{name:"search",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"BlockletResponseHeaderPolicyInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"securityHeader",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"cors",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"customHeader",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"removeHeader",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"isProtected",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"BlockletResponseHeaderPolicyQueryInput",description:null,fields:null,inputFields:[{name:"search",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"BlockletSecurityRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pathPattern",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"priority",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"responseHeaderPolicyId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"accessPolicyId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"accessPolicy",description:null,type:{kind:"INPUT_OBJECT",name:"BlockletAccessPolicyInput",ofType:null},defaultValue:null},{name:"responseHeaderPolicy",description:null,type:{kind:"INPUT_OBJECT",name:"BlockletResponseHeaderPolicyInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"BlockletSecurityRuleQueryInput",description:null,fields:null,inputFields:[{name:"search",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"BlockletStoreInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"logoUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"maintainer",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"cdnUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"protected",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"scope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"ConfigEntryInput",description:null,fields:null,inputFields:[{name:"key",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"value",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"required",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"validation",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"secure",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"custom",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"shared",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"ConfigNavigationInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"link",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"icon",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"section",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"component",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"parent",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"visible",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"from",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"ConnectedAccountInput",description:null,fields:null,inputFields:[{name:"provider",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"userInfo",description:null,type:{kind:"INPUT_OBJECT",name:"ConnectedAccountInfoInput",ofType:null},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"ConnectedAccountInfoInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"picture",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"emailVerified",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"sub",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"extraData",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"DownloadTokenInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"token",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"HashFileInput",description:null,fields:null,inputFields:[{name:"file",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"hash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"InviteSettingsInput",description:null,fields:null,inputFields:[{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"IssuerInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"LoginEmailSettingsInput",description:null,fields:null,inputFields:[{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"requireVerified",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"requireUnique",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"trustOauthProviders",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"enableDomainBlackList",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"domainBlackList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"enableDomainWhiteList",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"domainWhiteList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"trustedIssuers",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"IssuerInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"LoginPhoneSettingsInput",description:null,fields:null,inputFields:[{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"requireVerified",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"requireUnique",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"trustedIssuers",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"IssuerInput",ofType:null}}},defaultValue:null},{name:"enableRegionBlackList",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"regionBlackList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"enableRegionWhiteList",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"regionWhiteList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"NodeInfoInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoUpgrade",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"enableWelcomePage",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"registerUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"webWalletUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletRegistryList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"BlockletStoreInput",ofType:null}}},defaultValue:null},{name:"diskAlertThreshold",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"enableBetaRelease",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"nftDomainUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"enableFileSystemIsolation",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"enableDocker",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"isDockerInstalled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"PagingInput",description:null,fields:null,inputFields:[{name:"total",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"pageSize",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"pageCount",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"page",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"PassportInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"issuer",description:null,type:{kind:"INPUT_OBJECT",name:"IssuerInput",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"issuanceDate",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"expirationDate",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"status",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"scope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"display",description:null,type:{kind:"INPUT_OBJECT",name:"PassportDisplayInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"PassportDisplayInput",description:null,fields:null,inputFields:[{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"content",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"PermissionInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"isProtected",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddBlockletAccessPolicyInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"data",description:null,type:{kind:"INPUT_OBJECT",name:"BlockletAccessPolicyInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddBlockletResponseHeaderPolicyInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"data",description:null,type:{kind:"INPUT_OBJECT",name:"BlockletResponseHeaderPolicyInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddBlockletSecurityRuleInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"data",description:null,type:{kind:"INPUT_OBJECT",name:"BlockletSecurityRuleInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddBlockletSpaceGatewayInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"spaceGateway",description:null,type:{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddBlockletStoreInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"scope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddDomainAliasInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"domainAlias",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"force",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"nftDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"chainHost",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"inBlockletSetup",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddLetsEncryptCertInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"siteId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"inBlockletSetup",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddNginxHttpsCertInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"privateKey",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"certificate",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddRoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rule",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleInput",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddRoutingSiteInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rules",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"RoutingRuleInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAuditFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"memberPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"status",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBackupBlockletInput",description:null,fields:null,inputFields:[{name:"appDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"to",description:null,type:{kind:"ENUM",name:"BackupTo",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletDetailInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"attachDiskInfo",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"attachRuntimeInfo",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"getOptionalComponents",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletDiffInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"hashFiles",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"HashFileInput",ofType:null}}},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletMetaInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletMetaFromUrlInput",description:null,fields:null,inputFields:[{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"checkPrice",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletRuntimeHistoryInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"hours",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCheckDomainsInput",description:null,fields:null,inputFields:[{name:"domains",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestClearCacheInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pattern",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestComponentsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDids",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigBlockletInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"configs",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConfigEntryInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigFederatedInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoLogin",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigNavigationsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"navigations",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConfigNavigationInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigNotificationInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"notification",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigOAuthInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"oauth",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigPassportIssuanceInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"enable",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigPublicToStoreInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"publicToStore",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigTrustedFactoriesInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"trustedFactories",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TrustedFactoryInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigTrustedPassportsInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"trustedPassports",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TrustedPassportInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConnectByStudioInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletTitle",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tenantScope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"messageId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConnectToStoreInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateAccessKeyInput",description:null,fields:null,inputFields:[{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passport",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateInvitationInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sourceAppPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"display",description:null,type:{kind:"INPUT_OBJECT",name:"PassportDisplayInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreatePassportIssuanceInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ownerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"display",description:null,type:{kind:"INPUT_OBJECT",name:"PassportDisplayInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreatePermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateProjectInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"ENUM",name:"PublishType",ofType:null},defaultValue:null},{name:"blockletDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletTitle",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tenantScope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateReleaseInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletVersion",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletTitle",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletDescription",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletLogo",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletIntroduction",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletScreenshots",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"note",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"status",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletComponents",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"uploadedResource",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"childName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"permissions",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateTransferNodeInvitationInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateWebHookInput",description:null,fields:null,inputFields:[{name:"type",description:null,type:{kind:"ENUM",name:"SenderType",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"params",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"WebHookParamInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteAccessKeyInput",description:null,fields:null,inputFields:[{name:"accessKeyId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"keepData",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletAccessPolicyInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletResponseHeaderPolicyInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletSecurityRuleInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletSpaceGatewayInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"spaceGatewayDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletStoreInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"scope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteComponentInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"keepData",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteDomainAliasInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"domainAlias",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteInvitationInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"inviteId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteNginxHttpsCertInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeletePermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ruleId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingSiteInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteTeamSessionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sessionId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteWebHookInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDisbandFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDisconnectFromStoreInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeScope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestEndSessionInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestFindCertificateByDomainInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGatewayInput",description:null,fields:null,inputFields:[{name:"requestLimit",description:null,type:{kind:"INPUT_OBJECT",name:"RequestLimitInput",ofType:null},defaultValue:null},{name:"cacheEnabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetAuditLogsInput",description:null,fields:null,inputFields:[{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"scope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"category",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletAccessPoliciesInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"query",description:null,type:{kind:"INPUT_OBJECT",name:"BlockletAccessPolicyQueryInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletAccessPolicyInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletBackupsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletNotificationsInput",description:null,fields:null,inputFields:[{name:"receiver",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sender",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"read",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletResponseHeaderPoliciesInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"query",description:null,type:{kind:"INPUT_OBJECT",name:"BlockletResponseHeaderPolicyQueryInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletResponseHeaderPolicyInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletSecurityRuleInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletSecurityRulesInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"query",description:null,type:{kind:"INPUT_OBJECT",name:"BlockletSecurityRuleQueryInput",ofType:null},defaultValue:null},{name:"includeDisabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletsInput",description:null,fields:null,inputFields:[{name:"useCache",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetDynamicComponentsInput",description:null,fields:null,inputFields:[{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetLauncherSessionInput",description:null,fields:null,inputFields:[{name:"launcherSessionId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"launcherUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetNotificationsInput",description:null,fields:null,inputFields:[{name:"receiver",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sender",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"read",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetPassportIssuancesInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ownerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetProjectsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tenantScope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetReleasesInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetRoutingSitesInput",description:null,fields:null,inputFields:[{name:"snapshotHash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetRoutingSnapshotsInput",description:null,fields:null,inputFields:[{name:"limit",description:null,type:{kind:"SCALAR",name:"Int32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetSelectedResourcesInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetSessionInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetSnapshotSitesInput",description:null,fields:null,inputFields:[{name:"hash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetTrafficInsightsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"startDate",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"endDate",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGrantPermissionForRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"roleName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"grantName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestHasPermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"permission",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestInstallComponentInput",description:null,fields:null,inputFields:[{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"mountPoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"file",description:null,type:{kind:"SCALAR",name:"Upload",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"diffVersion",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"deleteSet",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"configs",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConfigEntryInput",ofType:null}}},defaultValue:null},{name:"downloadTokenList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"DownloadTokenInput",ofType:null}}},defaultValue:null},{name:"skipNavigation",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"onlyRequired",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestIsDidDomainInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestIssuePassportToUserInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"display",description:null,type:{kind:"INPUT_OBJECT",name:"PassportDisplayInput",ofType:null},defaultValue:null},{name:"notify",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"notification",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestJoinFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestLimitInput",description:null,fields:null,inputFields:[{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"rate",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"ipHeader",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestLogoutUserInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"visitorId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestMigrateApplicationToStructV2Input",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appSk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestNodeRoutingInput",description:null,fields:null,inputFields:[{name:"provider",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"snapshotHash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"forceRepopulate",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestNodeRuntimeHistoryInput",description:null,fields:null,inputFields:[{name:"hours",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestProjectInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"messageId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestPublishToStoreInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestQuitFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestReadBlockletNotificationsInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestReadNotificationsInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestReleaseInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestResetNodeInput",description:null,fields:null,inputFields:[{name:"owner",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"blocklets",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"webhooks",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"certificates",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"accessKeys",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"blockletExtras",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"routingRules",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"users",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"invitations",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestRestoreBlockletInput",description:null,fields:null,inputFields:[{name:"endpoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"delegation",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"password",description:null,type:{kind:"SCALAR",name:"Bytes",ofType:null},defaultValue:null},{name:"wallet",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null},{name:"from",description:null,type:{kind:"ENUM",name:"BackupTo",ofType:null},defaultValue:null},{name:"appPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestRevokePermissionFromRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"roleName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"grantName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passportId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestSendEmailInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"receiver",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestSendMsgInput",description:null,fields:null,inputFields:[{name:"webhookId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"message",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestSendPushInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"receiver",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"notification",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestStartSessionInput",description:null,fields:null,inputFields:[{name:"data",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestSwitchProfileInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"profile",description:null,type:{kind:"INPUT_OBJECT",name:"UserProfileInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTagInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tag",description:null,type:{kind:"INPUT_OBJECT",name:"TagInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTagsInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTakeRoutingSnapshotInput",description:null,fields:null,inputFields:[{name:"dryRun",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"message",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamPermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"permission",description:null,type:{kind:"INPUT_OBJECT",name:"PermissionInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"INPUT_OBJECT",name:"RoleUpdateInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"user",description:null,type:{kind:"INPUT_OBJECT",name:"UserInfoInput",ofType:null},defaultValue:null},{name:"options",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserOptionsInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamUserOptionsInput",description:null,fields:null,inputFields:[{name:"enableConnectedAccount",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"includeTags",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAccessKeyInput",description:null,fields:null,inputFields:[{name:"accessKeyId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passport",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAppSessionConfigInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"config",description:null,type:{kind:"INPUT_OBJECT",name:"SessionConfigInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAutoBackupInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoBackup",description:null,type:{kind:"INPUT_OBJECT",name:"AutoBackupInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAutoCheckUpdateInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoCheckUpdate",description:null,type:{kind:"INPUT_OBJECT",name:"AutoCheckUpdateInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateBlockletAccessPolicyInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"data",description:null,type:{kind:"INPUT_OBJECT",name:"BlockletAccessPolicyInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateBlockletResponseHeaderPolicyInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"data",description:null,type:{kind:"INPUT_OBJECT",name:"BlockletResponseHeaderPolicyInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateBlockletSecurityRuleInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"data",description:null,type:{kind:"INPUT_OBJECT",name:"BlockletSecurityRuleInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateBlockletSpaceGatewayInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"where",description:null,type:{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",ofType:null},defaultValue:null},{name:"spaceGateway",description:null,type:{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateComponentMountPointInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"mountPoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateComponentTitleInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateComponentsInput",description:null,fields:null,inputFields:[{name:"updateId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"selectedComponents",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateInviteSettingsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"invite",description:null,type:{kind:"INPUT_OBJECT",name:"InviteSettingsInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateNginxHttpsCertInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdatePermissionsForRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"roleName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"grantNames",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateProjectInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletTitle",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletDescription",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletIntroduction",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoUpload",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"possibleSameStore",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rule",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleInput",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingSiteInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"corsAllowedOrigins",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateSelectedResourcesInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"resources",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateSessionInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"data",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateUserExtraInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateUserProfileInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"locale",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateUserTagsInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tags",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Uint32",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUsersInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"query",description:null,type:{kind:"INPUT_OBJECT",name:"UserQueryInput",ofType:null},defaultValue:null},{name:"sort",description:null,type:{kind:"INPUT_OBJECT",name:"UserSortInput",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"dids",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestVersionedBlockletInput",description:null,fields:null,inputFields:[{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"file",description:null,type:{kind:"SCALAR",name:"Upload",ofType:null},defaultValue:null},{name:"diffVersion",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"deleteSet",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"startImmediately",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"downloadTokenList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"DownloadTokenInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoleUpdateInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"from",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleFromInput",ofType:null},defaultValue:null},{name:"to",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleToInput",ofType:null},defaultValue:null},{name:"isProtected",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleFromInput",description:null,fields:null,inputFields:[{name:"pathPrefix",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"header",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"RoutingRuleHeaderInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleHeaderInput",description:null,fields:null,inputFields:[{name:"key",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"value",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"ENUM",name:"HeaderMatchType",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleResponseInput",description:null,fields:null,inputFields:[{name:"status",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"contentType",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"body",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleToInput",description:null,fields:null,inputFields:[{name:"port",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"ENUM",name:"BackendServiceType",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"redirectCode",description:null,type:{kind:"SCALAR",name:"Int32",ofType:null},defaultValue:null},{name:"interfaceName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pageGroup",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"response",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleResponseInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"SessionConfigInput",description:null,fields:null,inputFields:[{name:"cacheTtl",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"ttl",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"INPUT_OBJECT",name:"LoginEmailSettingsInput",ofType:null},defaultValue:null},{name:"phone",description:null,type:{kind:"INPUT_OBJECT",name:"LoginPhoneSettingsInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"protected",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"endpoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TagInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"color",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"createdAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"updatedAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TeamInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedFactoryInput",description:null,fields:null,inputFields:[{name:"holderDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"issuerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"factoryAddress",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passport",description:null,type:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingToInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportInput",description:null,fields:null,inputFields:[{name:"issuerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"mappings",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportMappingInput",description:null,fields:null,inputFields:[{name:"from",description:null,type:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingFromInput",ofType:null},defaultValue:null},{name:"to",description:null,type:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingToInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportMappingFromInput",description:null,fields:null,inputFields:[{name:"passport",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportMappingToInput",description:null,fields:null,inputFields:[{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ttl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ttlPolicy",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserInfoInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"avatar",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"fullName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"approved",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"createdAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"updatedAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"locale",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passports",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"PassportInput",ofType:null}}},defaultValue:null},{name:"firstLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"lastLoginIp",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sourceProvider",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sourceAppPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"connectedAccounts",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConnectedAccountInput",ofType:null}}},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null},{name:"tags",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TagInput",ofType:null}}},defaultValue:null},{name:"didSpace",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null},{name:"userSessions",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"UserSessionInput",ofType:null}}},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"phone",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"inviter",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"generation",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"emailVerified",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"phoneVerified",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserProfileInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"avatar",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"fullName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserQueryInput",description:null,fields:null,inputFields:[{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"approved",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"search",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"connectedDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tags",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Uint32",ofType:null}}},defaultValue:null},{name:"includeTags",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"includeUserSessions",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"inviter",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"invitee",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"generation",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserSessionInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"visitorId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ua",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passportId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"status",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"lastLoginIp",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null},{name:"createdAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"updatedAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserSortInput",description:null,fields:null,inputFields:[{name:"updatedAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"createdAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"WebHookParamInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"required",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"defaultValue",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"value",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AccessKey",description:null,fields:[{name:"accessKeyId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"accessKeyPublic",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passport",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastUsedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdBy",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedBy",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLog",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"scope",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"category",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"action",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"content",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"actor",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogActor",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"env",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogEnv",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ip",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ua",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLogActor",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fullName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLogEnv",description:null,fields:[{name:"browser",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogEnvItem",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"os",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogEnvItem",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLogEnvItem",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AutoBackup",description:null,fields:[{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AutoCheckUpdate",description:null,fields:[{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Backup",description:null,fields:[{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"userDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"strategy",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sourceUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"target",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"targetName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"targetUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"message",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"progress",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletAccessPolicy",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"roles",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"reverse",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletBackupState",description:null,fields:[{name:"appDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletCapabilities",description:null,fields:[{name:"clusterMode",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"component",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"navigation",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"didSpace",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resourceExportApi",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletController",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftOwner",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"chainHost",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expireDate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"consumedAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"launcherUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"launcherSessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ownerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"OBJECT",name:"BlockletControllerStatus",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletControllerStatus",description:null,fields:[{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"reason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletDiff",description:null,fields:[{name:"hasBlocklet",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addSet",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"changeSet",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"deleteSet",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletDist",description:null,fields:[{name:"tarball",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"integrity",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletEngine",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"displayName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"available",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"visible",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletHistoryItem",description:null,fields:[{name:"date",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpu",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMeta",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"interfaces",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaInterface",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"author",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMetaPerson",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"main",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stats",description:null,args:[],type:{kind:"OBJECT",name:"BlockletStats",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"homepage",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"path",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"community",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"documentation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"support",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"screenshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"keywords",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"group",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dist",description:null,args:[],type:{kind:"OBJECT",name:"BlockletDist",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"maintainers",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaPerson",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"contributors",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaPerson",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"repository",description:null,args:[],type:{kind:"OBJECT",name:"BlockletRepository",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"payment",description:null,args:[],type:{kind:"OBJECT",name:"BlockletPayment",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftFactory",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastPublishedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"capabilities",description:null,args:[],type:{kind:"OBJECT",name:"BlockletCapabilities",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"components",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ChildConfig",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Environment",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"requirements",description:null,args:[],type:{kind:"OBJECT",name:"Requirement",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"navigation",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Any",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"resources",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"resource",description:null,args:[],type:{kind:"OBJECT",name:"BlockletResource",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"engine",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"owner",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMetaOwner",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMetaInterface",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"path",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"prefix",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"protocol",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"services",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaService",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"cacheable",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"pageGroups",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMetaOwner",description:null,fields:[{name:"avatar",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"email",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fullName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMetaPerson",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"email",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMetaService",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"config",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMigrateRecord",description:null,fields:[{name:"appSk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"at",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPayment",description:null,fields:[{name:"price",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletPaymentPrice",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"share",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletPaymentShare",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPaymentPrice",description:null,fields:[{name:"address",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"symbol",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPaymentShare",description:null,fields:[{name:"address",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPreUpdateInfo",description:null,fields:[{name:"updateId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"UpdateList",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletRepository",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletResource",description:null,fields:[{name:"exportApi",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"types",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletResourceType",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"bundles",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletResourceBundle",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletResourceBundle",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"public",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletResourceType",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletResponseHeaderPolicy",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"securityHeader",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cors",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"customHeader",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"removeHeader",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletSecurityRule",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pathPattern",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"componentDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"priority",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"responseHeaderPolicyId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"accessPolicyId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"accessPolicy",description:null,args:[],type:{kind:"OBJECT",name:"BlockletAccessPolicy",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"responseHeaderPolicy",description:null,args:[],type:{kind:"OBJECT",name:"BlockletResponseHeaderPolicy",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletSettings",description:null,fields:[{name:"initialized",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enablePassportIssuance",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedPassports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"whoCanAccess",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"owner",description:null,args:[],type:{kind:"OBJECT",name:"WalletInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"children",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"SimpleBlockletState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"publicToStore",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"storeList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletStore",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"navigations",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigNavigation",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"oauth",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedFactories",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedFactory",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"notification",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"session",description:null,args:[],type:{kind:"OBJECT",name:"SessionConfig",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"federated",description:null,args:[],type:{kind:"OBJECT",name:"FederatedConfig",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoCheckUpdate",description:null,args:[],type:{kind:"OBJECT",name:"AutoCheckUpdate",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoBackup",description:null,args:[],type:{kind:"OBJECT",name:"AutoBackup",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"invite",description:null,args:[],type:{kind:"OBJECT",name:"InviteSettings",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletState",description:null,fields:[{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"BlockletStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"installedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pausedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stoppedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"configs",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"diskInfo",description:null,args:[],type:{kind:"OBJECT",name:"DiskInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"runtimeInfo",description:null,args:[],type:{kind:"OBJECT",name:"RuntimeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appRuntimeInfo",description:null,args:[],type:{kind:"OBJECT",name:"RuntimeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"source",description:null,args:[],type:{kind:"ENUM",name:"BlockletSource",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deployedFrom",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleSource",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"engine",description:null,args:[],type:{kind:"OBJECT",name:"BlockletEngine",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mode",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ports",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"children",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"optionalComponents",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"OptionalComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"trustedPassports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"trustedFactories",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedFactory",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"enablePassportIssuance",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dynamic",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"settings",description:null,args:[],type:{kind:"OBJECT",name:"BlockletSettings",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"site",description:null,args:[],type:{kind:"OBJECT",name:"RoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"controller",description:null,args:[],type:{kind:"OBJECT",name:"BlockletController",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"migratedFrom",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMigrateRecord",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalSk",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalSkSource",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"structVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletStats",description:null,fields:[{name:"downloads",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"star",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"purchases",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletStore",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logoUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"maintainer",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cdnUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"protected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"scope",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BooleanResponse",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"result",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Certificate",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"CertificateMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"matchedSites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"MatchedSites",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"source",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"CertificateIssuer",description:null,fields:[{name:"countryName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"organizationName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"commonName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"CertificateMeta",description:null,fields:[{name:"issuer",description:null,args:[],type:{kind:"OBJECT",name:"CertificateIssuer",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sans",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"validFrom",description:null,args:[],type:{kind:"SCALAR",name:"Int64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validTo",description:null,args:[],type:{kind:"SCALAR",name:"Int64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fingerprintAlg",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fingerprint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validityPeriod",description:null,args:[],type:{kind:"SCALAR",name:"Int64",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ChildConfig",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ComponentState",description:null,fields:[{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"BlockletStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"installedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pausedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stoppedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"configs",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"diskInfo",description:null,args:[],type:{kind:"OBJECT",name:"DiskInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"runtimeInfo",description:null,args:[],type:{kind:"OBJECT",name:"RuntimeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"source",description:null,args:[],type:{kind:"ENUM",name:"BlockletSource",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deployedFrom",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleSource",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"engine",description:null,args:[],type:{kind:"OBJECT",name:"BlockletEngine",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mode",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ports",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"children",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"dynamic",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dependents",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Dependent",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConfigEntry",description:null,fields:[{name:"key",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"secure",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"custom",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"shared",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConfigNavigation",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"link",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"icon",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"section",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"component",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"parent",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"visible",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"from",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConnectedAccount",description:null,fields:[{name:"provider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"userInfo",description:null,args:[],type:{kind:"OBJECT",name:"ConnectedAccountInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"extra",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConnectedAccountInfo",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"picture",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"email",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"emailVerified",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sub",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"extraData",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConnectedStore",description:null,fields:[{name:"storeId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"storeName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"storeUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"accessToken",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"developerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"developerEmail",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"developerName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"scope",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"CreateAccessKey",description:null,fields:[{name:"accessKeyId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"accessKeySecret",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passport",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastUsedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"DelegationState",description:null,fields:[{name:"delegated",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Dependent",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"DiskInfo",description:null,fields:[{name:"app",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"data",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"log",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cache",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blocklets",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Environment",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"default",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"secure",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"shared",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"FederatedConfig",description:null,fields:[{name:"config",description:null,args:[],type:{kind:"OBJECT",name:"FederatedConfigDetail",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"FederatedConfigSite",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"FederatedConfigDetail",description:null,fields:[{name:"appId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"delegation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isMaster",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoLogin",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"FederatedConfigSite",description:null,fields:[{name:"appId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"aliasDid",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"appName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appDescription",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"aliasDomain",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"appLogo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appLogoRect",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"serverId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"serverVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appliedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isMaster",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Fuel",description:null,fields:[{name:"endpoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"address",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"reason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Gateway",description:null,fields:[{name:"requestLimit",description:null,args:[],type:{kind:"OBJECT",name:"RequestLimit",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cacheEnabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"GeneralResponse",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"IPInfo",description:null,fields:[{name:"internalV4",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalV4",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"internalV6",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalV6",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"InviteInfo",description:null,fields:[{name:"inviteId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expireDate",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inviter",description:null,args:[],type:{kind:"OBJECT",name:"UserInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"teamDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"interfaceName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"display",description:null,args:[],type:{kind:"OBJECT",name:"PassportDisplay",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"InviteSettings",description:null,fields:[{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Issuer",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"KeyValue",description:null,fields:[{name:"key",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"LauncherInfo",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"provider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tag",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"chainHost",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"LoginEmailSettings",description:null,fields:[{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"requireVerified",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"requireUnique",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustOauthProviders",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enableDomainBlackList",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domainBlackList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"enableDomainWhiteList",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domainWhiteList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"trustedIssuers",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Issuer",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"LoginPhoneSettings",description:null,fields:[{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"requireVerified",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"requireUnique",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedIssuers",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Issuer",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"enableRegionBlackList",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"regionBlackList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"enableRegionWhiteList",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"regionWhiteList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"MatchedSites",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeEnvInfo",description:null,fields:[{name:"ip",description:null,args:[],type:{kind:"OBJECT",name:"IPInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"os",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"location",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"docker",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"image",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletEngines",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletEngine",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"gitpod",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"disk",description:null,args:[],type:{kind:"OBJECT",name:"DiskInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeHistoryItem",description:null,fields:[{name:"date",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpu",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"daemonMem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"serviceMem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"hubMem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeRouting",description:null,fields:[{name:"provider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"snapshotHash",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"adminPath",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"requestLimit",description:null,args:[],type:{kind:"OBJECT",name:"RequestLimit",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cacheEnabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeRuntimeConfig",description:null,fields:[{name:"blockletMaxMemoryLimit",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"daemonMaxMemoryLimit",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"proxyMaxMemoryLimit",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeState",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"initialized",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nodeOwner",description:null,args:[],type:{kind:"OBJECT",name:"WalletInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"initializedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mode",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"routing",description:null,args:[],type:{kind:"OBJECT",name:"NodeRouting",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"uptime",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoUpgrade",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nextVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"upgradeSessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"registerUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enableWelcomePage",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"webWalletUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletRegistryList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletStore",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"ownerNft",description:null,args:[],type:{kind:"OBJECT",name:"OwnerNft",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"diskAlertThreshold",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedPassports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"launcher",description:null,args:[],type:{kind:"OBJECT",name:"LauncherInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enablePassportIssuance",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"didRegistry",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"didDomain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedFactories",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedFactory",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"enableBetaRelease",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"runtimeConfig",description:null,args:[],type:{kind:"OBJECT",name:"NodeRuntimeConfig",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftDomainUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enableFileSystemIsolation",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enableDocker",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isDockerInstalled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Notification",description:null,fields:[{name:"sender",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"receiver",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"action",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"entityType",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"entityId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"read",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"severity",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"OptionalComponentState",description:null,fields:[{name:"logoUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dependencies",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"OptionalDependencies",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"OptionalDependencies",description:null,fields:[{name:"parentDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"parentName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"parentTitle",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"OwnerNft",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"holder",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuer",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"launcherSessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Paging",description:null,fields:[{name:"total",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pageSize",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pageCount",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"page",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Passport",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuer",description:null,args:[],type:{kind:"OBJECT",name:"Issuer",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"issuanceDate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expirationDate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"scope",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"display",description:null,args:[],type:{kind:"OBJECT",name:"PassportDisplay",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"PassportDisplay",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"content",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"PassportIssuanceInfo",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expireDate",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"teamDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ownerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"display",description:null,args:[],type:{kind:"OBJECT",name:"PassportDisplay",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Permission",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Project",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"ENUM",name:"PublishType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletTitle",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDescription",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletLogo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletIntroduction",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletScreenshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"componentDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastReleaseId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastReleaseFiles",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"connectedStores",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConnectedStore",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"tenantScope",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdBy",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoUpload",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"possibleSameStore",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Release",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"projectId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletTitle",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDescription",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletLogo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletIntroduction",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletScreenshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"note",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"files",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"ReleaseStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletComponents",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ReleaseComponent",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"publishedStoreIds",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"uploadedResource",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ReleaseComponent",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RequestLimit",description:null,fields:[{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"rate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ipHeader",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Requirement",description:null,fields:[{name:"server",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"os",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpu",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fuels",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Fuel",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseAccessKeys",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"AccessKey",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseAddLetsEncryptCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseAddNginxHttpsCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlocklet",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blocklet",description:null,args:[],type:{kind:"OBJECT",name:"BlockletState",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletAccessPolicies",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"accessPolicies",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletAccessPolicy",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletAccessPolicy",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"accessPolicy",description:null,args:[],type:{kind:"OBJECT",name:"BlockletAccessPolicy",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletDiff",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDiff",description:null,args:[],type:{kind:"OBJECT",name:"BlockletDiff",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletMeta",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletMetaFromUrl",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isFree",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inStore",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"registryUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletResponseHeaderPolicies",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"responseHeaderPolicies",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletResponseHeaderPolicy",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletResponseHeaderPolicy",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"responseHeaderPolicy",description:null,args:[],type:{kind:"OBJECT",name:"BlockletResponseHeaderPolicy",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletRuntimeHistory",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"history",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletHistoryItem",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletSecurityRule",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"securityRule",description:null,args:[],type:{kind:"OBJECT",name:"BlockletSecurityRule",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletSecurityRules",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"securityRules",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletSecurityRule",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletsFromBackup",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"backups",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletBackupState",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCheckComponentsForUpdates",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"preUpdateInfo",description:null,args:[],type:{kind:"OBJECT",name:"BlockletPreUpdateInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCheckDomains",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCheckNodeVersion",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseClearCache",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"removed",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseConnectByStudio",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseConnectToStore",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateAccessKey",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"data",description:null,args:[],type:{kind:"OBJECT",name:"CreateAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateInvitation",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inviteInfo",description:null,args:[],type:{kind:"OBJECT",name:"InviteInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreatePassportIssuance",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"info",description:null,args:[],type:{kind:"OBJECT",name:"PassportIssuanceInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateTransferNodeInvitation",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inviteInfo",description:null,args:[],type:{kind:"OBJECT",name:"InviteInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateWebHook",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"webhook",description:null,args:[],type:{kind:"OBJECT",name:"WebHookSender",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDelegationState",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"state",description:null,args:[],type:{kind:"OBJECT",name:"DelegationState",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDeleteAccessKey",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDeleteNginxHttpsCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDeleteWebHook",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDisconnectFromStore",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseFindCertificateByDomain",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cert",description:null,args:[],type:{kind:"OBJECT",name:"Certificate",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGateway",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"gateway",description:null,args:[],type:{kind:"OBJECT",name:"Gateway",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cacheEnabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetAuditLogs",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"AuditLog",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlockletBackups",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"backups",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Backup",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlockletNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Notification",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlockletSpaceGateways",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"spaceGateways",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"SpaceGateway",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlocklets",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blocklets",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletState",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetCertificates",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"certificates",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Certificate",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetDynamicComponents",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"components",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetInvitations",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"invitations",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"InviteInfo",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetLauncherSession",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"error",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"launcherSession",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetNodeEnv",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"info",description:null,args:[],type:{kind:"OBJECT",name:"NodeEnvInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetNodeInfo",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"info",description:null,args:[],type:{kind:"OBJECT",name:"NodeState",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Notification",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetPassportIssuances",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"PassportIssuanceInfo",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetProject",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"project",description:null,args:[],type:{kind:"OBJECT",name:"Project",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetProjects",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"projects",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Project",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRelease",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"release",description:null,args:[],type:{kind:"OBJECT",name:"Release",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetReleases",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"releases",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Release",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRoutingProviders",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"providers",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingProvider",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRoutingSites",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingSite",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRoutingSnapshots",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"snapshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingSnapshot",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetSelectedResources",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resources",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetSession",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"session",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetSnapshotSites",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingSite",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetTrafficInsights",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrafficInsight",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetUsersCount",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"count",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetUsersCountPerRole",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"counts",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"KeyValue",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseIsDidDomain",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseNodeRuntimeHistory",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"history",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"NodeHistoryItem",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponsePermission",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"permission",description:null,args:[],type:{kind:"OBJECT",name:"Permission",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponsePermissions",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"permissions",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Permission",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseProject",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"project",description:null,args:[],type:{kind:"OBJECT",name:"Project",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponsePublishToStore",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseReadBlockletNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"numAffected",description:null,args:[],type:{kind:"SCALAR",name:"Int32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseReadNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"numAffected",description:null,args:[],type:{kind:"SCALAR",name:"Int32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRelease",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"release",description:null,args:[],type:{kind:"OBJECT",name:"Release",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseResetNode",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRestartServer",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRole",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"OBJECT",name:"Role",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRoles",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"roles",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Role",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRoutingSite",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"site",description:null,args:[],type:{kind:"OBJECT",name:"RoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseSendMsg",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseSenderList",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"senders",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHookSender",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseTag",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tag",description:null,args:[],type:{kind:"OBJECT",name:"Tag",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseTags",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tags",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Tag",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseTakeRoutingSnapshot",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"hash",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUpdateAccessKey",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"data",description:null,args:[],type:{kind:"OBJECT",name:"AccessKey",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUpdateNginxHttpsCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUpgradeNodeVersion",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUser",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"user",description:null,args:[],type:{kind:"OBJECT",name:"UserInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUsers",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"users",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"UserInfo",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseWebHooks",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"webhooks",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHook",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Role",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"grants",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"extra",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingProvider",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"running",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"available",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"error",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRule",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"from",description:null,args:[],type:{kind:"OBJECT",name:"RoutingRuleFrom",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"to",description:null,args:[],type:{kind:"OBJECT",name:"RoutingRuleTo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRuleFrom",description:null,fields:[{name:"pathPrefix",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"header",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingRuleHeader",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRuleHeader",description:null,fields:[{name:"key",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"ENUM",name:"HeaderMatchType",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRuleResponse",description:null,fields:[{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"contentType",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"body",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRuleTo",description:null,fields:[{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"ENUM",name:"BackendServiceType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"redirectCode",description:null,args:[],type:{kind:"SCALAR",name:"Int32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"interfaceName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"componentId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pageGroup",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"response",description:null,args:[],type:{kind:"OBJECT",name:"RoutingRuleResponse",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingSite",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domainAliases",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Any",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"rules",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingRule",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"corsAllowedOrigins",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingSnapshot",description:null,fields:[{name:"hash",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tree",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"message",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"author",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RuntimeInfo",description:null,fields:[{name:"pid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uptime",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"memoryUsage",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpuUsage",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SessionConfig",description:null,fields:[{name:"cacheTtl",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ttl",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"email",description:null,args:[],type:{kind:"OBJECT",name:"LoginEmailSettings",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"phone",description:null,args:[],type:{kind:"OBJECT",name:"LoginPhoneSettings",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SimpleBlockletMeta",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SimpleBlockletState",description:null,fields:[{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"SimpleBlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"BlockletStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deployedFrom",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deletedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SpaceGateway",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"protected",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"endpoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Tag",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"color",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrafficInsight",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"date",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"totalRequests",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validRequests",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"failedRequests",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"generationTime",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueVisitors",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueFiles",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"excludedHits",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueReferrers",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueNotFound",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueStaticFiles",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logSize",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bandwidth",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedFactory",description:null,fields:[{name:"holderDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"factoryAddress",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passport",description:null,args:[],type:{kind:"OBJECT",name:"TrustedPassportMappingTo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassport",description:null,fields:[{name:"issuerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mappings",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassportMapping",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassportMapping",description:null,fields:[{name:"from",description:null,args:[],type:{kind:"OBJECT",name:"TrustedPassportMappingFrom",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"to",description:null,args:[],type:{kind:"OBJECT",name:"TrustedPassportMappingTo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassportMappingFrom",description:null,fields:[{name:"passport",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassportMappingTo",description:null,fields:[{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ttl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ttlPolicy",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"UpdateList",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"UserInfo",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"avatar",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fullName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"email",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"approved",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"locale",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Passport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"firstLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginIp",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sourceProvider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sourceAppPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"connectedAccounts",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConnectedAccount",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"extra",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tags",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Tag",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"didSpace",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"userSessions",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"UserSession",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"phone",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inviter",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"generation",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"emailVerified",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"phoneVerified",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"UserSession",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"visitorId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"userDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ua",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passportId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginIp",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"extra",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WalletInfo",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WebHook",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"ENUM",name:"SenderType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"params",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHookParam",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WebHookParam",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"defaultValue",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WebHookSender",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"ENUM",name:"SenderType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"params",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHookParam",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"BackendServiceType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"daemon",description:null,isDeprecated:!1,deprecationReason:null},{name:"blocklet",description:null,isDeprecated:!1,deprecationReason:null},{name:"redirect",description:null,isDeprecated:!1,deprecationReason:null},{name:"none",description:null,isDeprecated:!1,deprecationReason:null},{name:"general_proxy",description:null,isDeprecated:!1,deprecationReason:null},{name:"direct_response",description:null,isDeprecated:!1,deprecationReason:null},{name:"rewrite",description:null,isDeprecated:!1,deprecationReason:null},{name:"component",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"BackupTo",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"spaces",description:null,isDeprecated:!1,deprecationReason:null},{name:"disk",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"BlockletSource",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"registry",description:null,isDeprecated:!1,deprecationReason:null},{name:"local",description:null,isDeprecated:!1,deprecationReason:null},{name:"upload",description:null,isDeprecated:!1,deprecationReason:null},{name:"url",description:null,isDeprecated:!1,deprecationReason:null},{name:"custom",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"BlockletStatus",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"added",description:null,isDeprecated:!1,deprecationReason:null},{name:"downloading",description:null,isDeprecated:!1,deprecationReason:null},{name:"downloaded",description:null,isDeprecated:!1,deprecationReason:null},{name:"installing",description:null,isDeprecated:!1,deprecationReason:null},{name:"installed",description:null,isDeprecated:!1,deprecationReason:null},{name:"starting",description:null,isDeprecated:!1,deprecationReason:null},{name:"running",description:null,isDeprecated:!1,deprecationReason:null},{name:"stopping",description:null,isDeprecated:!1,deprecationReason:null},{name:"stopped",description:null,isDeprecated:!1,deprecationReason:null},{name:"error",description:null,isDeprecated:!1,deprecationReason:null},{name:"upgrading",description:null,isDeprecated:!1,deprecationReason:null},{name:"restarting",description:null,isDeprecated:!1,deprecationReason:null},{name:"corrupted",description:null,isDeprecated:!1,deprecationReason:null},{name:"waiting",description:null,isDeprecated:!1,deprecationReason:null},{name:"deleted",description:null,isDeprecated:!1,deprecationReason:null},{name:"unknown",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"HeaderMatchType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"exact",description:null,isDeprecated:!1,deprecationReason:null},{name:"partial",description:null,isDeprecated:!1,deprecationReason:null},{name:"regexp",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"PublishType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"resource",description:null,isDeprecated:!1,deprecationReason:null},{name:"pack",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"ReleaseStatus",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"draft",description:null,isDeprecated:!1,deprecationReason:null},{name:"published",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"SenderType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"slack",description:null,isDeprecated:!1,deprecationReason:null},{name:"api",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"StatusCode",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"ok",description:null,isDeprecated:!1,deprecationReason:null},{name:"blocklet_not_found",description:null,isDeprecated:!1,deprecationReason:null},{name:"blocklet_not_purchased",description:null,isDeprecated:!1,deprecationReason:null},{name:"forbidden",description:null,isDeprecated:!1,deprecationReason:null},{name:"internal",description:null,isDeprecated:!1,deprecationReason:null},{name:"timeout",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"SCALAR",name:"Upload",description:"The `Upload` scalar type represents a file upload.",fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Mutation",description:null,fields:[{name:"installBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestVersionedBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"installComponent",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestInstallComponentInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stopBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"reloadBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"restartBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteComponent",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteComponentInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cancelDownloadBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"checkComponentsForUpdates",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCheckComponentsForUpdates",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"upgradeComponents",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configPublicToStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigPublicToStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configNavigations",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigNavigationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configOAuth",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigOAuthInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configNotification",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigNotificationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sendEmail",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestSendEmailInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sendPush",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestSendPushInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"joinFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestJoinFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"quitFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestQuitFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"disbandFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDisbandFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configFederated",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigFederatedInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"auditFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAuditFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAppSessionConfig",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAppSessionConfigInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateComponentTitle",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateComponentTitleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateComponentMountPoint",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateComponentMountPointInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"backupBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBackupBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"restoreBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRestoreBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"migrateApplicationToStructV2",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestMigrateApplicationToStructV2Input",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addBlockletSpaceGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddBlockletSpaceGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteBlockletSpaceGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletSpaceGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateBlockletSpaceGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateBlockletSpaceGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAutoBackup",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAutoBackupInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAutoCheckUpdate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAutoCheckUpdateInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateInviteSettings",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateInviteSettingsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateNodeInfo",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"NodeInfoInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateNodeRouting",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestNodeRoutingInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"upgradeNodeVersion",description:null,args:[],type:{kind:"OBJECT",name:"ResponseUpgradeNodeVersion",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"restartServer",description:null,args:[],type:{kind:"OBJECT",name:"ResponseRestartServer",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resetNode",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestResetNodeInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseResetNode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGateway",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"clearCache",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestClearCacheInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseClearCache",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createMemberInvitation",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateInvitationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateInvitation",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createTransferInvitation",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateTransferNodeInvitationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateTransferNodeInvitation",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteInvitation",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteInvitationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createPassportIssuance",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreatePassportIssuanceInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreatePassportIssuance",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deletePassportIssuance",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteTeamSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configTrustedPassports",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigTrustedPassportsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configTrustedFactories",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigTrustedFactoriesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configPassportIssuance",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigPassportIssuanceInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"removeUser",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateUserTags",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateUserTagsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateUserProfile",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateUserProfileInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateUserExtra",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateUserExtraInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateUserApproval",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuePassportToUser",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestIssuePassportToUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"revokeUserPassport",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enableUserPassport",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"removeUserPassport",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"switchProfile",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestSwitchProfileInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createPermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreatePermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermission",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatePermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamPermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermission",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deletePermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeletePermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"grantPermissionForRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGrantPermissionForRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"revokePermissionFromRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokePermissionFromRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatePermissionsForRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdatePermissionsForRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"hasPermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestHasPermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"BooleanResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addBlockletStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddBlockletStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteBlockletStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createTag",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTag",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateTag",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTag",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteTag",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTag",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"readNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"unreadNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"readBlockletNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadBlockletNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadBlockletNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"unreadBlockletNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadBlockletNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadBlockletNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addRoutingSite",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddRoutingSiteInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addDomainAlias",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddDomainAliasInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteDomainAlias",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteDomainAliasInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRoutingSite",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingSiteInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateRoutingSite",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingSiteInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addRoutingRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddRoutingRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateRoutingRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRoutingRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"takeRoutingSnapshot",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTakeRoutingSnapshotInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTakeRoutingSnapshot",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateCertificate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateNginxHttpsCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUpdateNginxHttpsCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addCertificate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddNginxHttpsCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseAddNginxHttpsCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteCertificate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteNginxHttpsCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseDeleteNginxHttpsCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issueLetsEncryptCert",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddLetsEncryptCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseAddLetsEncryptCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createAccessKey",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateAccessKeyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAccessKey",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAccessKeyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUpdateAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteAccessKey",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteAccessKeyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseDeleteAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createWebHook",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateWebHookInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateWebHook",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteWebHook",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteWebHookInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseDeleteWebHook",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestStartSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"endSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestEndSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseProject",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseProject",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createRelease",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateReleaseInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRelease",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRelease",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReleaseInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateSelectedResources",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateSelectedResourcesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"connectToStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConnectToStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseConnectToStore",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"disconnectFromStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDisconnectFromStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseDisconnectFromStore",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"publishToStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestPublishToStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePublishToStore",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"connectByStudio",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConnectByStudioInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseConnectByStudio",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addBlockletSecurityRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddBlockletSecurityRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletSecurityRule",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateBlockletSecurityRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateBlockletSecurityRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletSecurityRule",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteBlockletSecurityRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletSecurityRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addBlockletResponseHeaderPolicy",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddBlockletResponseHeaderPolicyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletResponseHeaderPolicy",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateBlockletResponseHeaderPolicy",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateBlockletResponseHeaderPolicyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletResponseHeaderPolicy",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteBlockletResponseHeaderPolicy",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletResponseHeaderPolicyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addBlockletAccessPolicy",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddBlockletAccessPolicyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletAccessPolicy",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateBlockletAccessPolicy",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateBlockletAccessPolicyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletAccessPolicy",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteBlockletAccessPolicy",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletAccessPolicyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Query",description:null,fields:[{name:"getBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletDetailInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletMetaFromUrl",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletMetaFromUrlInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletMetaFromUrl",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletDiff",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletDiffInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletDiff",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlocklets",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlocklets",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletRuntimeHistory",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletRuntimeHistoryInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletRuntimeHistory",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletsFromBackup",description:null,args:[],type:{kind:"OBJECT",name:"ResponseBlockletsFromBackup",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getDynamicComponents",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetDynamicComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetDynamicComponents",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNodeInfo",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resetNodeStatus",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNodeEnv",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetNodeEnv",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"checkNodeVersion",description:null,args:[],type:{kind:"OBJECT",name:"ResponseCheckNodeVersion",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getDelegationState",description:null,args:[],type:{kind:"OBJECT",name:"ResponseDelegationState",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNodeRuntimeHistory",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestNodeRuntimeHistoryInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseNodeRuntimeHistory",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletMeta",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletMetaInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlockletNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoutingSites",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetRoutingSitesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetRoutingSites",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoutingSnapshots",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetRoutingSnapshotsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetRoutingSnapshots",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getSnapshotSites",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetSnapshotSitesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSnapshotSites",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoutingProviders",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetRoutingProviders",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isDidDomain",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestIsDidDomainInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseIsDidDomain",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getCertificates",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetCertificates",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"checkDomains",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCheckDomainsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCheckDomains",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"findCertificateByDomain",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestFindCertificateByDomainInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseFindCertificateByDomain",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getAccessKeys",description:null,args:[],type:{kind:"OBJECT",name:"ResponseAccessKeys",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getWebHooks",description:null,args:[],type:{kind:"OBJECT",name:"ResponseWebHooks",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getWebhookSenders",description:null,args:[],type:{kind:"OBJECT",name:"ResponseSenderList",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sendTestMessage",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestSendMsgInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseSendMsg",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoles",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoles",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getPermissions",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermissions",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getInvitations",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetInvitations",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUsers",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUsersInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUsers",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUser",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUsersCount",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetUsersCount",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUsersCountPerRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetUsersCountPerRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getOwner",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getPermissionsByRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermissions",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getPassportIssuances",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetPassportIssuancesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetPassportIssuances",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logoutUser",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestLogoutUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getTags",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTags",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getAuditLogs",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetAuditLogsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetAuditLogs",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getLauncherSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetLauncherSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetLauncherSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletBackups",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletBackupsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlockletBackups",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletSpaceGateways",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlockletSpaceGateways",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getTrafficInsights",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetTrafficInsightsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetTrafficInsights",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getProjects",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetProjectsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetProjects",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetProject",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getReleases",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetReleasesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetReleases",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRelease",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReleaseInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetRelease",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getSelectedResources",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetSelectedResourcesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSelectedResources",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletSecurityRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletSecurityRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletSecurityRule",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletSecurityRules",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletSecurityRulesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletSecurityRules",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletResponseHeaderPolicy",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletResponseHeaderPolicyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletAccessPolicy",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletResponseHeaderPolicies",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletResponseHeaderPoliciesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletResponseHeaderPolicies",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletAccessPolicy",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletAccessPolicyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletAccessPolicy",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletAccessPolicies",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletAccessPoliciesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletAccessPolicies",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:[{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"types",description:"A list of all types supported by this server.",args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"queryType",description:"The type that query operations will be rooted at.",args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"mutationType",description:"If this server supports mutation, the type that mutation operations will be rooted at.",args:[],type:{kind:"OBJECT",name:"__Type",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"subscriptionType",description:"If this server support subscription, the type that subscription operations will be rooted at.",args:[],type:{kind:"OBJECT",name:"__Type",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"directives",description:"A list of all directives supported by this server.",args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Directive",ofType:null}}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:[{name:"kind",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"ENUM",name:"__TypeKind",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"specifiedByURL",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fields",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Field",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"interfaces",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"possibleTypes",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"enumValues",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__EnumValue",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"inputFields",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"ofType",description:null,args:[],type:{kind:"OBJECT",name:"__Type",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",fields:null,inputFields:null,interfaces:null,enumValues:[{name:"SCALAR",description:"Indicates this type is a scalar.",isDeprecated:!1,deprecationReason:null},{name:"OBJECT",description:"Indicates this type is an object. `fields` and `interfaces` are valid fields.",isDeprecated:!1,deprecationReason:null},{name:"INTERFACE",description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.",isDeprecated:!1,deprecationReason:null},{name:"UNION",description:"Indicates this type is a union. `possibleTypes` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"ENUM",description:"Indicates this type is an enum. `enumValues` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_OBJECT",description:"Indicates this type is an input object. `inputFields` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"LIST",description:"Indicates this type is a list. `ofType` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"NON_NULL",description:"Indicates this type is a non-null. `ofType` is a valid field.",isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"OBJECT",name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"args",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"isDeprecated",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"deprecationReason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"defaultValue",description:"A GraphQL-formatted string representing the default value for this input value.",args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isDeprecated",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"deprecationReason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isDeprecated",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"deprecationReason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
1351
1351
|
|
|
1352
|
-
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isRepeatable",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"locations",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"ENUM",name:"__DirectiveLocation",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"args",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",fields:null,inputFields:null,interfaces:null,enumValues:[{name:"QUERY",description:"Location adjacent to a query operation.",isDeprecated:!1,deprecationReason:null},{name:"MUTATION",description:"Location adjacent to a mutation operation.",isDeprecated:!1,deprecationReason:null},{name:"SUBSCRIPTION",description:"Location adjacent to a subscription operation.",isDeprecated:!1,deprecationReason:null},{name:"FIELD",description:"Location adjacent to a field.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_DEFINITION",description:"Location adjacent to a fragment definition.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_SPREAD",description:"Location adjacent to a fragment spread.",isDeprecated:!1,deprecationReason:null},{name:"INLINE_FRAGMENT",description:"Location adjacent to an inline fragment.",isDeprecated:!1,deprecationReason:null},{name:"VARIABLE_DEFINITION",description:"Location adjacent to a variable definition.",isDeprecated:!1,deprecationReason:null},{name:"SCHEMA",description:"Location adjacent to a schema definition.",isDeprecated:!1,deprecationReason:null},{name:"SCALAR",description:"Location adjacent to a scalar definition.",isDeprecated:!1,deprecationReason:null},{name:"OBJECT",description:"Location adjacent to an object type definition.",isDeprecated:!1,deprecationReason:null},{name:"FIELD_DEFINITION",description:"Location adjacent to a field definition.",isDeprecated:!1,deprecationReason:null},{name:"ARGUMENT_DEFINITION",description:"Location adjacent to an argument definition.",isDeprecated:!1,deprecationReason:null},{name:"INTERFACE",description:"Location adjacent to an interface definition.",isDeprecated:!1,deprecationReason:null},{name:"UNION",description:"Location adjacent to a union definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM",description:"Location adjacent to an enum definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM_VALUE",description:"Location adjacent to an enum value definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_OBJECT",description:"Location adjacent to an input object type definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_FIELD_DEFINITION",description:"Location adjacent to an input object field definition.",isDeprecated:!1,deprecationReason:null}],possibleTypes:null}],directives=[{name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Included when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Skipped when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:["FIELD_DEFINITION","ARGUMENT_DEFINITION","INPUT_FIELD_DEFINITION","ENUM_VALUE"],args:[{name:"reason",description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:'"No longer supported"'}]},{name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:["SCALAR"],args:[{name:"url",description:"The URL that specifies the behavior of this scalar.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},defaultValue:null}]}],require$$4={queryType,mutationType,subscriptionType,types,directives},BaseClient=dist,schema=require$$4;let ABTNodeClient$1=class extends BaseClient{constructor(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"http://localhost:4000/api",_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const et={dataSource:"forge",httpEndpoint:j,socketEndpoint:()=>this._getSocketEndpoint(j),enableQuery:!0,enableSubscription:!0,enableMutation:!0,maxQueryDepth:6};super(et),this._endpoint=j,this._authToken=null,this._userAgent=_e}setAuthToken(j){this._authToken=j}_getSocketEndpoint(j){let _e=j.replace(/https?:\/\//,"ws://");return j.indexOf("https://")===0&&(_e=_e.replace("ws://","wss://")),"".concat(_e,"/socket")}_getSchema(){return schema}_getIgnoreFields(j){return[]}_getAuthHeaders(){const j={},_e=this._authToken;if(_e){const et=typeof _e=="function"?_e():_e;j.Authorization="Bearer ".concat(encodeURIComponent(et))}if(typeof window<"u"&&typeof window.location<"u"){const{hostname:et,port:nt,protocol:tt}=window.location;j["x-real-hostname"]=et,j["x-real-port"]=nt,j["x-real-protocol"]=tt.endsWith(":")?tt.substring(0,tt.length-1):tt}return this._userAgent&&(j["User-Agent"]=this._userAgent),j}};var base=ABTNodeClient$1;const EventEmitter=eventemitter3Exports,ABTNodeClient=base;class BrowserABTNodeClient extends ABTNodeClient{_getSocketOptions(){return{}}_getEventImplementation(){return EventEmitter}}var browser=BrowserABTNodeClient;const NodeClient=getDefaultExportFromCjs$1(browser),prefix$1=(window.env?window.env.apiPrefix:"/")||"/",client$1=new NodeClient(()=>`${prefix$1}/api/gql?locale=${getLocale()}`.replace(/\/+/g,"/").trim());function useSubscription$1({wsClient:a,event:j,cb:_e=()=>{},deps:et=[]}){reactExports.useEffect(()=>{const nt=a&&(!et.length||et.every(Boolean));return nt&&a.on(j,_e),()=>{nt&&a.off(j,_e)}},et)}let client;function create(){const a=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),j=`//${window.location.host}${a}/admin`;return new browser$3.WsClient(j,{heartbeatIntervalMs:100*1e3,params:()=>({token:Cookie.get("login_token")})})}function getWsClient(){return client||(client=create()),client}const useSubscription=(a,j=()=>{},_e=[])=>{a=`${window.blocklet.did}/${a}`;const{session:et}=useSessionContext();!client&&et.user&&(client=getWsClient(),client.connect()),useSubscription$1({wsClient:client,event:a,cb:j,deps:_e})};let cache=null;const fetch$1=async()=>{try{return(await api.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},getIp=()=>(cache||(cache=fetch$1()),cache),{Provider:Provider$2,Consumer:Consumer$2}=BlockletContext,parseEndpoint=(a,j)=>{const _e=/^{env\.(.+)}$/.exec(a);if(_e&&_e[1]){const et=((j==null?void 0:j.configs)||[]).find(nt=>nt.key===_e[1]);return!et&&!et.value?"":et.value}return a},getChainConfig=(()=>{const a={endpoint:"",data:{}};return async j=>{if(a.endpoint===j)return a.data;const et=await getChainClient(j).getConfig();return a.endpoint=j,a.data=et,et}})(),{did,appId}=window.env;function BlockletProvider({children:a,mode:j}){var pt;const[_e,et]=reactExports.useState(null),[nt,tt]=reactExports.useState(!1),[ot,ct]=reactExports.useState({}),[ft,ht]=reactExports.useState(),[dt,yt]=reactExports.useState(),[Tt,St]=reactExports.useState(),At=j==="setup",{loading:Rt,loadingDiskInfo:It,loadingRuntimeInfo:Ct,error:kt,blocklet:Pt,recommendedDomain:Bt,runtimeHistory:Kt,actions:{refreshBlocklet:jt,refreshDomainStatus:zt,setBlocklet:Gt}}=useBlocklet({did,client:client$1,useSubscription,getIP:getIp,useLocaleContext,getOptionalComponents:!0}),tn=reactExports.useRef(void 0);tn.current=(pt=Pt==null?void 0:Pt.meta)==null?void 0:pt.did;const hn=async()=>{try{tt(!0),et(null);const{data:mt}=await api.get("/blocklet/meta");ct(mt),tt(!1)}catch(mt){tt(!1),et(mt),Toast$1.error(mt.message)}},wt=async({showError:mt=!0}={})=>{var Ht,Ot;if(!((Ot=(Ht=ot==null?void 0:ot.requirements)==null?void 0:Ht.fuels)!=null&&Ot.length))return null;const{endpoint:$t,value:xt,address:vt}=ot.requirements.fuels[0],it=parseEndpoint($t,Pt),bt=xt;let Mt=xt;const Lt={endpoint:it,symbol:"",need:bt,current:0,owe:Number(bt)>0};try{const Jt=getChainClient(it),{config:Ft}=await getChainConfig(it),Zt=JSON.parse(Ft).token;let nn=vt;nn||(nn=Zt.address),yt({address:Zt.address,symbol:Zt.symbol,decimal:Zt.decimal});const{getAccountState:{state:cn},getTokenState:{state:qt}}=await Jt.doBatchQuery({getAccountState:{address:appId},getTokenState:{address:nn}});qt&&(Lt.symbol=qt.symbol);const Dt=((cn==null?void 0:cn.tokens)||[]).find(Vt=>Vt.address===nn);if(Dt){const Vt=lib$4.fromTokenToUnit(bt,Dt.decimal||18);Lt.current=lib$4.fromUnitToToken(Dt.value,Dt.decimal||18),Lt.owe=Vt.gt(new lib$4.BN(Dt.value)),Mt=Math.max(0,lib$4.fromUnitToToken(Vt.sub(new lib$4.BN(Dt.value)),Dt.decimal||18))}}catch(Jt){mt&&Toast$1.error(Jt.message)}return ht({...Lt,deficiency:Mt}),Lt},rt=async({configs:mt,childDid:$t})=>(await client$1.configBlocklet({input:{did:[did].concat($t).filter(Boolean),configs:mt}}),jt()),st=async mt=>{const{blocklet:$t}=await client$1.configNavigations({input:{did,navigations:mt}});Gt($t)};reactExports.useEffect(()=>{At&&hn(),jt({showError:!1})},[]),reactExports.useEffect(()=>{var mt;(mt=Pt==null?void 0:Pt.controller)!=null&&mt.launcherSessionId&&client$1.getLauncherSession({input:{launcherSessionId:Pt.controller.launcherSessionId,launcherUrl:Pt.controller.launcherUrl}}).then($t=>{St($t.launcherSession)}).catch($t=>{console.error("get launcher session error",$t)})},[Pt==null?void 0:Pt.appPid]);const ut={loading:nt||Rt,loadingDiskInfo:It,loadingRuntimeInfo:Ct,error:_e||kt,blocklet:Pt,launcherSession:Tt,did,recommendedDomain:Bt,runtimeHistory:Kt,appIdList:Pt?util$2.getBlockletAppIdList(Pt):[],env:window.blocklet||{},meta:ot,gas:ft,tokenInfo:dt,client:client$1,mode:j,actions:{refreshBlocklet:jt,refreshDomainStatus:zt,setBlocklet:Gt,refreshMeta:hn,refreshFuel:wt,configBlocklet:rt,configNavigations:st}};return jsxRuntimeExports.jsx(Provider$2,{value:ut,children:a})}BlockletProvider.propTypes={children:PropTypes.any,mode:PropTypes.oneOf(["dashboard","setup"]).isRequired};BlockletProvider.defaultProps={children:null};function useBlockletContext(){return reactExports.useContext(BlockletContext)}const NodeContext=reactExports.createContext({});function useNodeContext$1(){const{node:a}=reactExports.useContext(NodeContext);return{...a,inService:a.type==="service",inDaemon:a.type==="daemon"}}const{Provider:Provider$1,Consumer:Consumer$1}=NodeContext,imgPrefix=`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function NodeProvider({children:a}){const{serverDid:j,serverVersion:_e,mode:et,nftDomainUrl:nt,ownerNft:tt,launcher:ot}=window.env,ct={api:client$1,restApi:api,prefix:constant$3.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix,getSessionInHeader:()=>({}),ws:{getWsClient,create,useSubscription},type:"service",info:{did:j,version:_e,mode:et,nftDomainUrl:nt,ownerNft:tt,launcher:ot}};return jsxRuntimeExports.jsx(Provider$1,{value:{node:ct},children:a})}function useNodeContext(){const{node:a}=reactExports.useContext(NodeContext);return a}const NotificationContext=reactExports.createContext({}),{Provider,Consumer}=NotificationContext;function NotificationProvider({children:a}){const{did:j}=window.env,[_e,et]=reactExports.useState([]),[nt,tt]=reactExports.useState({total:0,pageSize:10,pageCount:0,page:1}),[ot,ct]=reactExports.useState(!1),ft=async({page:dt=1}={})=>{if(!ot){ct(!0);try{const yt=await client$1.getBlockletNotifications({input:{paging:{page:dt},teamDid:j}});et(yt.list),tt(yt.paging),ct(!1)}catch(yt){Toast$1.error(yt.message),ct(!1)}}};reactExports.useEffect(()=>{ft()},[]),useSubscription(constant$3.EVENTS.NOTIFICATION_BLOCKLET_CREATE,dt=>{et(yt=>[dt,...yt||[]])});const ht={loading:ot,refresh:ft,data:_e||[],paging:nt,api:client$1};return jsxRuntimeExports.jsx(Provider,{value:{notifications:ht},children:a})}function useNotificationContext(){const{notifications:a}=reactExports.useContext(NotificationContext);return a}const UserLogin=reactExports.lazy(()=>__vitePreload(()=>import("./login-DR3kcJtW.js"),__vite__mapDeps([0,1,2]))),UserLoginOAuthCallback=reactExports.lazy(()=>__vitePreload(()=>import("./login-oauth-callback-0EjAb9S0.js"),__vite__mapDeps([3,4,5,6]))),Connect=reactExports.lazy(()=>__vitePreload(()=>import("./connect-Cdtb7SHw.js"),__vite__mapDeps([7,8,1,9,10]))),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./exchange-passport-PFJEY5oF.js"),__vite__mapDeps([11,9,10,12]))),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./issue-passport-Bw_MHd9T.js"),__vite__mapDeps([13,14,15,16,17,1,18,19,20,12,9,10]))),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./lost-passport-CynXuP5y.js"),__vite__mapDeps([21,20,22,23,15,16,24,10,12,1,25,6,26]))),Start=reactExports.lazy(()=>__vitePreload(()=>import("./start-xeWBZiEu.js"),__vite__mapDeps([27,28,29,24,10,30,31,32,33]))),Setup=reactExports.lazy(()=>__vitePreload(()=>import("./setup-DdL2aJKn.js"),__vite__mapDeps([34,35,36,37,8,38,39,40,41,31,32,33,30]))),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./invite-B3LCoC_0.js"),__vite__mapDeps([42,14,15,16,17,1,18,19,20,12,9,10]))),Transfer=reactExports.lazy(()=>__vitePreload(()=>import("./transfer-DnYlCSpz.js"),__vite__mapDeps([43,31,32,33,9,10,20]))),Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./dashboard-DN-9-3gU.js").then(a=>a.k),__vite__mapDeps([44,45,46,47,48,49,50,51,52,5,6,53,54,28,55,56,57,25,18,58,59,60,10,61,4,62,63,64,41,65,66,32,67]))),UserCenter=reactExports.lazy(()=>__vitePreload(()=>import("./user-center-B0SlHHaj.js"),__vite__mapDeps([68,69,4,62,63,64,41,65,47,48,49,50,66,32,70,25,6,71,15,16,72,73,8,74,10,45,75,76,77,78,79,80,81,82,83,57,84,85,54,86,87,88,89,90,91,5,92]))),StudioHome=reactExports.lazy(()=>__vitePreload(()=>import("./home-DEHpnOzD.js"),__vite__mapDeps([93,94,62,63,64,41,4,50]))),StudioPreferences=reactExports.lazy(()=>__vitePreload(()=>import("./preferences-a3_XT82h.js"),__vite__mapDeps([95,96,94,62,63,64,41,4]))),StudioBranding=reactExports.lazy(()=>__vitePreload(()=>import("./branding-Cl9GX76R.js"),__vite__mapDeps([97,98,99,81,79,100,94,62,63,64,41,4,50,25,6]))),StudioLocalization=reactExports.lazy(()=>__vitePreload(()=>import("./localization-C4vP52vp.js"),__vite__mapDeps([101,94,62,63,64,41,4]))),AddResource=reactExports.lazy(()=>__vitePreload(()=>import("./add-resource-BfHXR_Y_.js"),__vite__mapDeps([102,103,104,105,47,48,49,50,52,86,83,85,5,6,53,106,23,98,107,108,51,18,24,10,25,55,109,79,35,36,37,8,38,39,40,41,110,111,112,89,113,114,115,116,117,118,119,120,54,46,121,122,66,26,123,124,125,126,74,127,70,128,4,129,130,88,75,63,84,91,131]))),Publish=reactExports.lazy(()=>__vitePreload(()=>import("./publish-resource-BwfmZpal.js"),__vite__mapDeps([132,133,105,54,29,77,78,79,16,80,81,47,48,49,50,82,83,57,84,85,86,45,87,64,88,75,60,51,52,5,6,53,18,24,10,99,100,134,25,108,135,33,61,114,136,38,8,70,130,72,137,98,104,106,23,107,55,109,128,91,90,117,118,138,139,26,56]))),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-CmjfXrfq.js"),[])),EmailKyc=reactExports.lazy(()=>__vitePreload(()=>import("./email-DqijDSOa.js"),__vite__mapDeps([140,141,142,9,10,53,20,143,50,86,83,49,85]))),Unsubscribe=reactExports.lazy(()=>__vitePreload(()=>import("./unsubscribe-Bx_0kT2c.js"),[])),OpenWindow=reactExports.lazy(()=>__vitePreload(()=>import("./open-window-BKaZeE7I.js"),[]));function App(){var et;const a=useLocation(),{t:j}=useLocaleContext();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${a.pathname}${a.search}`)},[a]);const _e=jsxRuntimeExports.jsx(Center,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelmetExport,{children:jsxRuntimeExports.jsx("title",{children:j("pageTitle.dashboard")})}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:_e,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window`,element:jsxRuntimeExports.jsx(OpenWindow,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(LostPassport,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(IssuePassport,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:jsxRuntimeExports.jsx(UserLogin,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/callback/:provider`,element:jsxRuntimeExports.jsx(UserLoginOAuthCallback,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:jsxRuntimeExports.jsx(Connect,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(ExchangePassport,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(Invite,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:jsxRuntimeExports.jsx(Transfer,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio`,element:jsxRuntimeExports.jsx(StudioHome,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:jsxRuntimeExports.jsx(StudioHome,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:jsxRuntimeExports.jsx(StudioPreferences,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/branding`,element:jsxRuntimeExports.jsx(StudioBranding,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:jsxRuntimeExports.jsx(StudioLocalization,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/kyc/email`,element:jsxRuntimeExports.jsx(EmailKyc,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:jsxRuntimeExports.jsx(AuthProvider,{children:jsxRuntimeExports.jsx(Start,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:jsxRuntimeExports.jsx(BlockletProvider,{mode:"setup",children:jsxRuntimeExports.jsx(Setup,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:jsxRuntimeExports.jsx(Unsubscribe,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:jsxRuntimeExports.jsx(AuthProvider,{roles:["*"],children:jsxRuntimeExports.jsx(UserCenter,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:jsxRuntimeExports.jsx(AuthProvider,{roles:["*"],children:jsxRuntimeExports.jsx(UserCenter,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:jsxRuntimeExports.jsx(NodeProvider,{children:jsxRuntimeExports.jsx(NotificationProvider,{children:jsxRuntimeExports.jsx(AuthProvider,{roles:["owner","admin","member"],children:jsxRuntimeExports.jsx(BlockletProvider,{mode:"dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})})})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:jsxRuntimeExports.jsx(Navigate,{to:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:jsxRuntimeExports.jsx(NodeProvider,{children:jsxRuntimeExports.jsx(AuthProvider,{roles:((et=window.blocklet)==null?void 0:et.tenantMode)===constant$2.BLOCKLET_TENANT_MODES.MULTIPLE?["owner","admin","guest"]:["owner","admin"],children:jsxRuntimeExports.jsx(BlockletProvider,{mode:"dashboard",children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"add",element:jsxRuntimeExports.jsx(AddResource,{})}),jsxRuntimeExports.jsx(Route,{path:"publish/*",element:jsxRuntimeExports.jsx(Publish,{})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})})})})]})})]})}function AppWrapper(){return jsxRuntimeExports.jsx(BrowserRouter,{basename:PREFIX,children:jsxRuntimeExports.jsx(Root$1,{children:jsxRuntimeExports.jsx(App,{})})})}const root=createRoot(document.getElementById("app"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=constant$3.WELLKNOWN_SERVICE_PATH_PREFIX;{async function a(){const{register:j}=await __vitePreload(async()=>{const{register:_e}=await import("./index-DTEEl-sV.js");return{register:_e}},[]);j(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(_e){console.error("Error during service worker registration:",_e)}})}a()}export{useMediaQuery as $,AvatarWithErrorBoundary as A,Box as B,Center as C,DID as D,default_1$4 as E,useSearchParams as F,constant$3 as G,HelmetExport as H,Container$1 as I,PoweredBy as J,DidConnect as K,Link as L,getWebWalletUrl$1 as M,useReactive as N,useRequest as O,PropTypes as P,createPassportSvg as Q,ResultWrapper as R,SessionContext as S,Typography as T,isNumber$2 as U,useLatest as V,defaultDayjs as W,requireCreateSvgIcon as X,interopRequireDefaultExports as Y,newStyled as Z,__read as _,Tooltip as a,_arrayMap as a$,LocaleContext as a0,ButtonComponent as a1,isFromWallet as a2,__vitePreload as a3,isFunction$8 as a4,api as a5,client$1 as a6,getManageSubscriptionURL as a7,util$2 as a8,Global as a9,LocaleProvider as aA,useLocation as aB,IconButton as aC,SessionUser as aD,generateUtilityClasses as aE,generateUtilityClass as aF,styled$1 as aG,capitalize$3 as aH,useDefaultProps as aI,_objectWithoutPropertiesLoose$1 as aJ,_extends$2 as aK,useSlotProps as aL,clsx$1 as aM,composeClasses as aN,ListContext as aO,useNodeContext$1 as aP,isDownloading as aQ,Menu as aR,Divider as aS,MenuItem as aT,getServerUrl as aU,sleep as aV,getLogoHash as aW,isInstalling as aX,useBlockletContext$1 as aY,getWalletType as aZ,_SetCache as a_,constant$2 as aa,isSuspended as ab,Img as ac,isSuspendedByExpired as ad,isSuspendedByTerminated as ae,formatToDatetime as af,calculateRetentionDate as ag,css as ah,Paper as ai,useTheme$1 as aj,useBlockletContext as ak,getFromQuery as al,saveServerUrl as am,hasRequiredEnvironments as an,PREFIX as ao,NodeProvider as ap,Routes as aq,Route as ar,Navigate as as,createSvgIcon$1 as at,Dialog as au,formatDateTime as av,getExplorerLink as aw,patchJsxToLocale as ax,ve as ay,en$1 as az,Button$1 as b,getQuery as b$,_baseUnary as b0,_arrayIncludes as b1,_arrayIncludesWith as b2,_cacheHas as b3,_baseFlatten as b4,_baseUniq as b5,_baseRest as b6,getDefaultExportFromCjs$1 as b7,_arrayFilter as b8,last_1 as b9,lib as bA,AUTH_SERVICE_PREFIX$1 as bB,SessionContext$1 as bC,noop$7 as bD,colors$1 as bE,Icon as bF,data$5 as bG,isEmpty$1 as bH,translate as bI,LOGIN_PROVIDER_NAME as bJ,data$j as bK,RelativeTime as bL,PASSPORT_STATUS as bM,data$a as bN,data$r as bO,getWalletDid$1 as bP,useConfirm as bQ,OAUTH_PROVIDER as bR,LOGIN_PROVIDER$1 as bS,data$f as bT,data$e as bU,data$d as bV,pick$2 as bW,useAsyncEffect as bX,getConnectedAccounts$1 as bY,getSourceProvider$1 as bZ,LinearProgress as b_,isArrayLikeObject_1 as ba,hasOwn$8 as bb,Emotion$1 as bc,createEmotionProps as bd,getSubscriptionUrlV2 as be,Chip as bf,dayjs$1 as bg,formatPrettyMsLocale as bh,Popover as bi,formatToDate as bj,List as bk,BlockletAdminRoles as bl,Popper as bm,ClickAwayListener as bn,useNotificationContext as bo,useNodeContext as bp,ErrorBoundary as bq,isServerless as br,colors$2 as bs,styled as bt,mergeProps as bu,useSubscription as bv,getWsClient as bw,useParams as bx,isFunction$3 as by,__assign as bz,joinURL as c,useTheme$2 as c$,pWaitFor$1 as c0,cloneDeep$1 as c1,useUpdateEffect as c2,Dialog$1 as c3,axios$4 as c4,useUnmount as c5,util$4 as c6,lib$4 as c7,getDIDColor as c8,Card as c9,MenuList as cA,getColor as cB,getBackground as cC,commonjsRequire as cD,default_1$5 as cE,create$3 as cF,isObject$p as cG,StyledEngineProvider as cH,ThemeProvider$1 as cI,ThemeProvider$4 as cJ,getThemeProps$1 as cK,useEnhancedEffect$1 as cL,keyframes as cM,getUnit as cN,toUnitless as cO,alpha$1 as cP,ButtonBase as cQ,debounce$5 as cR,ownerWindow as cS,useRtl as cT,useEventCallback$1 as cU,ownerDocument as cV,rootShouldForwardProp as cW,isMuiElement as cX,isHostComponent as cY,DialogContext as cZ,getDialogTitleUtilityClass as c_,CardHeader as ca,CardContent as cb,CardActions as cc,o as cd,red as ce,darken_1 as cf,lighten_1 as cg,resolveComponentProps as ch,mergeSlotProps as ci,useForkRef as cj,appendOwnerState as ck,getPath$1 as cl,alpha_1 as cm,useIsFocusVisible as cn,commonjsGlobal as co,propTypesExports as cp,reactDomExports as cq,adapter as cr,get$6 as cs,Buffer$1$1 as ct,base64 as cu,BlockletSDK as cv,getAugmentedNamespace as cw,emotionReact_browser_esm as cx,emotionCache_browser_esm as cy,SvgIcon as cz,useSessionContext as d,emphasize$1 as d$,DialogContent as d0,DialogActions as d1,getListItemIconUtilityClass as d2,listItemTextClasses as d3,getListItemTextUtilityClass as d4,ButtonGroupContext as d5,ButtonGroupButtonContext as d6,createChainedFunction$1 as d7,useControlled as d8,useId as d9,ThemeProvider as dA,withErrorBoundary as dB,omit$1 as dC,upperFirst$2 as dD,RELAY_SOCKET_PREFIX$1 as dE,formatMuiErrorMessage$1 as dF,GlobalStyles$2 as dG,ThemeProvider$2 as dH,createSpacing as dI,createBreakpoints as dJ,createTheme$1 as dK,private_safeDarken_1 as dL,private_safeLighten_1 as dM,private_safeEmphasize_1 as dN,private_safeAlpha_1 as dO,private_safeColorChannel_1 as dP,defaultSxConfig as dQ,styleFunctionSx$1 as dR,getOverlayAlpha as dS,hslToRgb_1 as dT,THEME_ID as dU,createTypography as dV,createMuiTheme as dW,darken$1 as dX,decomposeColor$1 as dY,duration$2 as dZ,easing as d_,throttle$4 as da,__spreadArray as db,useSize as dc,default_1$7 as dd,NavLink as de,matchPath as df,Fade as dg,getTranslation as dh,SessionPermission as di,NAVIGATION_URL as dj,createTheme$3 as dk,styled$2 as dl,handleBreakpoints as dm,resolveBreakpointValues as dn,createUnarySpacing as dp,deepmerge$1 as dq,mergeBreakpointsInOrder as dr,extendSxProp as ds,useThemeProps as dt,getValue$4 as du,tslib_es6$1 as dv,Modal as dw,Slide as dx,loadIcon as dy,createTheme as dz,useNavigate as e,lib$1 as e$,getContrastRatio$1 as e0,getLuminance$1 as e1,hexToRgb$1 as e2,hslToRgb$1 as e3,lighten$1 as e4,createMixins as e5,recomposeColor$1 as e6,responsiveFontSizes as e7,rgbToHex$1 as e8,getPaperUtilityClass as e9,_baseFindIndex as eA,toInteger_1 as eB,sortBy$1 as eC,global$2 as eD,hoistStatics as eE,GlobalStyles as eF,slotShouldForwardProp as eG,createAxios$2 as eH,flat as eI,defaultTheme$2 as eJ,objectAssign$1 as eK,React$2 as eL,_inheritsLoose$2 as eM,ReactDOM as eN,__awaiter as eO,__generator as eP,getTargetElement as eQ,useEventListener as eR,Buffer$3 as eS,browser$1 as eT,get_1 as eU,uniq_1 as eV,pLimit_1 as eW,require$$6 as eX,require$$0$3 as eY,process$1$1 as eZ,lib$5 as e_,paperClasses as ea,getIconButtonUtilityClass as eb,iconButtonClasses as ec,getTypographyUtilityClass as ed,typographyClasses as ee,chipClasses as ef,getChipUtilityClass as eg,buttonClasses as eh,getButtonUtilityClass as ei,Grow as ej,PopoverPaper as ek,PopoverRoot as el,getOffsetLeft as em,getOffsetTop as en,getPopoverUtilityClass as eo,popoverClasses as ep,getMenuItemUtilityClass as eq,menuItemClasses as er,getTooltipUtilityClass as es,tooltipClasses as et,emotionSerialize_esm as eu,emotionUtils_browser_esm as ev,Close as ew,_baseIteratee as ex,isArrayLike_1 as ey,keys_1 as ez,useBrowser as f,sortDomains as f$,urlPathFriendly$1 as f0,cloneDeep_1 as f1,getWebWalletUrl as f2,extractStatusUrlFromNextWorkflow as f3,hasRequiredSteps$1 as f4,getStoreList as f5,_baseOrderBy as f6,isArray_1 as f7,merge$2 as f8,omitBy$1 as f9,isString_1 as fA,isPlainObject_1 as fB,requireObjectWithoutPropertiesLoose as fC,setRef as fD,_assertThisInitialized$1 as fE,ClickToCopy as fF,emphasize_1 as fG,Collapse as fH,getCSRFToken as fI,axios$1 as fJ,isExtracting as fK,APP_PREFIX as fL,_baseIndexOf as fM,_baseToString as fN,_baseTrim as fO,_castSlice as fP,_charsEndIndex as fQ,_stringToArray as fR,toString_1 as fS,hasRequiredSteps as fT,urlEvaluation as fU,isDidDomainOrIpEchoDomain as fV,shouldCheckDomainStatus as fW,validateDomain as fX,axios_1 as fY,CopyButton as fZ,checkIsWildcardDomain as f_,parseURL as fa,parseQuery as fb,parseFilename as fc,stringifyParsedURL as fd,useDebounceFn as fe,Et as ff,semver$1 as fg,formatRegistryLogoPath as fh,getBlockletLogoUrl as fi,formatMountPoint as fj,isNil$1 as fk,flatten$3 as fl,_default as fm,getBlockletMetaUrl as fn,isNewStoreUrl as fo,nested as fp,Check$1 as fq,createPassportSvg$2 as fr,normalizePathPrefix_1 as fs,engine as ft,camelCase$1 as fu,Confirm as fv,getPathPrefix as fw,identity_1 as fx,_baseForOwn as fy,_baseMap as fz,getVisitorId$2 as g,columnGap as g$,getSystemDomains as g0,resolveProps as g1,Cookie as g2,getAccessUrl as g3,useUpdate as g4,tmp as g5,util$8 as g6,shams$1 as g7,callBound$3 as g8,objectKeys$3 as g9,useTimeout as gA,teardown as gB,DefaultPropsProvider as gC,useDefaultProps$1 as gD,createContainer as gE,useTheme$3 as gF,GlobalStyles$1 as gG,RtlProvider as gH,backgroundColor as gI,bgcolor as gJ,blend$1 as gK,border as gL,borderBottom as gM,borderBottomColor as gN,borderColor as gO,borderLeft as gP,borderLeftColor as gQ,borderRadius as gR,borderRight as gS,borderRightColor as gT,borderTop as gU,borderTopColor as gV,borderTransform as gW,boxSizing as gX,breakpoints as gY,color$1 as gZ,colorChannel$1 as g_,hasPropertyDescriptors_1 as ga,defineDataProperty as gb,callBindExports as gc,safeBufferExports as gd,requireBrowser$9 as ge,requireElliptic as gf,requireCryptoBrowserify as gg,ripemd160 as gh,getInviteLink as gi,getIssuePassportLink as gj,getTextColor_1 as gk,isProtectedRole as gl,ms$1 as gm,getChainClient as gn,compose as go,style$1 as gp,borders as gq,grid as gr,palette as gs,sizing as gt,spacing as gu,globalStateClasses as gv,isGlobalState as gw,createBox as gx,ClassNameGenerator as gy,Timeout as gz,useSecurity as h,data$b as h$,createStyled$2 as h0,createUnaryUnit as h1,gap as h2,getStyleFromPropValue as h3,getStyleValue as h4,gridArea as h5,gridAutoColumns as h6,gridAutoFlow as h7,gridAutoRows as h8,gridColumn as h9,sizingTransform as hA,systemDefaultTheme$1 as hB,unstable_createStyleFunctionSx as hC,useTheme$4 as hD,width as hE,TransitionGroup as hF,ENTERED as hG,ENTERING as hH,EXITING as hI,TransitionGroupContext as hJ,Transition$1 as hK,config$1 as hL,isRunning as hM,getTransferAppLink as hN,_copyArray as hO,DidAddressWrapper as hP,copy$1 as hQ,withTrailingSlash as hR,clsx$2 as hS,require$$1$4 as hT,require$$1$2 as hU,require$$4$3 as hV,colorManipulator as hW,require$$6$3 as hX,require$$6$2 as hY,createStyled$1 as hZ,require$$5 as h_,gridRow as ha,gridTemplateAreas as hb,gridTemplateColumns as hc,gridTemplateRows as hd,height as he,margin as hf,marginKeys as hg,maxHeight as hh,maxWidth as hi,minHeight as hj,minWidth as hk,outline as hl,outlineColor as hm,padding as hn,paddingKeys as ho,paletteTransform as hp,private_safeAlpha$1 as hq,private_safeColorChannel$1 as hr,private_safeDarken$1 as hs,private_safeEmphasize$1 as ht,private_safeLighten$1 as hu,rowGap as hv,shape as hw,shouldForwardProp$1 as hx,sizeHeight as hy,sizeWidth as hz,isUndefined$2 as i,clamp$1 as i0,extractEventHandlers as i1,forceReflow as i2,debounce_1 as i3,noop_1 as i4,formatTime as i5,hoistNonReactStatics_cjs as i6,isEqual$1 as i7,isEqual_1$1 as i8,pick_1$1 as i9,assertThisInitialized as iA,reactIsExports as iB,isValidClusterSize as iC,getBlockletUrlParams as iD,trimEnd$1 as iE,normalizePathPrefix$1 as iF,_isIndex as iG,dialogClasses as iH,FocusTrap as iI,localizedFormatPlugin as iJ,formatLocale as iK,_baseEach as iL,_baseAssignValue as iM,pTimeout$2 as iN,TimeoutError_1 as iO,debounce$3 as iP,uniq$1 as iQ,Backdrop as iR,createRoot as iS,isNil_1 as ia,omit_1 as ib,isAbsoluteUrl$1 as ic,withoutTrailingSlash as id,isString$2 as ie,isAbsoluteUrl$2 as ig,nanoid as ih,isEqual$3 as ii,useEffectWithTarget$1 as ij,__values as ik,isString$3 as il,_setPrototypeOf as im,filesize as io,Icon$1 as ip,CacheProvider as iq,createCache as ir,StyleSheet as is,ThemeContext$1 as it,React$3 as iu,isPlainObject$5 as iv,require$$2$1 as iw,require$$6$4 as ix,createPopper as iy,getScrollbarSize as iz,jsxRuntimeExports as j,useCreation as k,useMemoizedFn as l,useMount as m,CircularProgress as n,API_DID_PREFIX as o,AUTH_SERVICE_PREFIX as p,getMaster as q,reactExports as r,getFederatedEnabled as s,Toast$1 as t,useLocaleContext as u,setSessionToken as v,withQuery as w,setRefreshToken as x,setVisitorId as y,updateConnectedInfo as z};
|
|
1352
|
+
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isRepeatable",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"locations",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"ENUM",name:"__DirectiveLocation",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"args",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",fields:null,inputFields:null,interfaces:null,enumValues:[{name:"QUERY",description:"Location adjacent to a query operation.",isDeprecated:!1,deprecationReason:null},{name:"MUTATION",description:"Location adjacent to a mutation operation.",isDeprecated:!1,deprecationReason:null},{name:"SUBSCRIPTION",description:"Location adjacent to a subscription operation.",isDeprecated:!1,deprecationReason:null},{name:"FIELD",description:"Location adjacent to a field.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_DEFINITION",description:"Location adjacent to a fragment definition.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_SPREAD",description:"Location adjacent to a fragment spread.",isDeprecated:!1,deprecationReason:null},{name:"INLINE_FRAGMENT",description:"Location adjacent to an inline fragment.",isDeprecated:!1,deprecationReason:null},{name:"VARIABLE_DEFINITION",description:"Location adjacent to a variable definition.",isDeprecated:!1,deprecationReason:null},{name:"SCHEMA",description:"Location adjacent to a schema definition.",isDeprecated:!1,deprecationReason:null},{name:"SCALAR",description:"Location adjacent to a scalar definition.",isDeprecated:!1,deprecationReason:null},{name:"OBJECT",description:"Location adjacent to an object type definition.",isDeprecated:!1,deprecationReason:null},{name:"FIELD_DEFINITION",description:"Location adjacent to a field definition.",isDeprecated:!1,deprecationReason:null},{name:"ARGUMENT_DEFINITION",description:"Location adjacent to an argument definition.",isDeprecated:!1,deprecationReason:null},{name:"INTERFACE",description:"Location adjacent to an interface definition.",isDeprecated:!1,deprecationReason:null},{name:"UNION",description:"Location adjacent to a union definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM",description:"Location adjacent to an enum definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM_VALUE",description:"Location adjacent to an enum value definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_OBJECT",description:"Location adjacent to an input object type definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_FIELD_DEFINITION",description:"Location adjacent to an input object field definition.",isDeprecated:!1,deprecationReason:null}],possibleTypes:null}],directives=[{name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Included when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Skipped when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:["FIELD_DEFINITION","ARGUMENT_DEFINITION","INPUT_FIELD_DEFINITION","ENUM_VALUE"],args:[{name:"reason",description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:'"No longer supported"'}]},{name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:["SCALAR"],args:[{name:"url",description:"The URL that specifies the behavior of this scalar.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},defaultValue:null}]}],require$$4={queryType,mutationType,subscriptionType,types,directives},BaseClient=dist,schema=require$$4;let ABTNodeClient$1=class extends BaseClient{constructor(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"http://localhost:4000/api",_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const et={dataSource:"forge",httpEndpoint:j,socketEndpoint:()=>this._getSocketEndpoint(j),enableQuery:!0,enableSubscription:!0,enableMutation:!0,maxQueryDepth:6};super(et),this._endpoint=j,this._authToken=null,this._userAgent=_e}setAuthToken(j){this._authToken=j}_getSocketEndpoint(j){let _e=j.replace(/https?:\/\//,"ws://");return j.indexOf("https://")===0&&(_e=_e.replace("ws://","wss://")),"".concat(_e,"/socket")}_getSchema(){return schema}_getIgnoreFields(j){return[]}_getAuthHeaders(){const j={},_e=this._authToken;if(_e){const et=typeof _e=="function"?_e():_e;j.Authorization="Bearer ".concat(encodeURIComponent(et))}if(typeof window<"u"&&typeof window.location<"u"){const{hostname:et,port:nt,protocol:tt}=window.location;j["x-real-hostname"]=et,j["x-real-port"]=nt,j["x-real-protocol"]=tt.endsWith(":")?tt.substring(0,tt.length-1):tt}return this._userAgent&&(j["User-Agent"]=this._userAgent),j}};var base=ABTNodeClient$1;const EventEmitter=eventemitter3Exports,ABTNodeClient=base;class BrowserABTNodeClient extends ABTNodeClient{_getSocketOptions(){return{}}_getEventImplementation(){return EventEmitter}}var browser=BrowserABTNodeClient;const NodeClient=getDefaultExportFromCjs$1(browser),prefix$1=(window.env?window.env.apiPrefix:"/")||"/",client$1=new NodeClient(()=>`${prefix$1}/api/gql?locale=${getLocale()}`.replace(/\/+/g,"/").trim());function useSubscription$1({wsClient:a,event:j,cb:_e=()=>{},deps:et=[]}){reactExports.useEffect(()=>{const nt=a&&(!et.length||et.every(Boolean));return nt&&a.on(j,_e),()=>{nt&&a.off(j,_e)}},et)}let client;function create(){const a=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),j=`//${window.location.host}${a}/admin`;return new browser$3.WsClient(j,{heartbeatIntervalMs:100*1e3,params:()=>({token:Cookie.get("login_token")})})}function getWsClient(){return client||(client=create()),client}const useSubscription=(a,j=()=>{},_e=[])=>{a=`${window.blocklet.did}/${a}`;const{session:et}=useSessionContext();!client&&et.user&&(client=getWsClient(),client.connect()),useSubscription$1({wsClient:client,event:a,cb:j,deps:_e})};let cache=null;const fetch$1=async()=>{try{return(await api.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},getIp=()=>(cache||(cache=fetch$1()),cache),{Provider:Provider$2,Consumer:Consumer$2}=BlockletContext,parseEndpoint=(a,j)=>{const _e=/^{env\.(.+)}$/.exec(a);if(_e&&_e[1]){const et=((j==null?void 0:j.configs)||[]).find(nt=>nt.key===_e[1]);return!et&&!et.value?"":et.value}return a},getChainConfig=(()=>{const a={endpoint:"",data:{}};return async j=>{if(a.endpoint===j)return a.data;const et=await getChainClient(j).getConfig();return a.endpoint=j,a.data=et,et}})(),{did,appId}=window.env;function BlockletProvider({children:a,mode:j}){var pt;const[_e,et]=reactExports.useState(null),[nt,tt]=reactExports.useState(!1),[ot,ct]=reactExports.useState({}),[ft,ht]=reactExports.useState(),[dt,yt]=reactExports.useState(),[Tt,St]=reactExports.useState(),At=j==="setup",{loading:Rt,loadingDiskInfo:It,loadingRuntimeInfo:Ct,error:kt,blocklet:Pt,recommendedDomain:Bt,runtimeHistory:Kt,actions:{refreshBlocklet:jt,refreshDomainStatus:zt,setBlocklet:Gt}}=useBlocklet({did,client:client$1,useSubscription,getIP:getIp,useLocaleContext,getOptionalComponents:!0}),tn=reactExports.useRef(void 0);tn.current=(pt=Pt==null?void 0:Pt.meta)==null?void 0:pt.did;const hn=async()=>{try{tt(!0),et(null);const{data:mt}=await api.get("/blocklet/meta");ct(mt),tt(!1)}catch(mt){tt(!1),et(mt),Toast$1.error(mt.message)}},wt=async({showError:mt=!0}={})=>{var Ht,Ot;if(!((Ot=(Ht=ot==null?void 0:ot.requirements)==null?void 0:Ht.fuels)!=null&&Ot.length))return null;const{endpoint:$t,value:xt,address:vt}=ot.requirements.fuels[0],it=parseEndpoint($t,Pt),bt=xt;let Mt=xt;const Lt={endpoint:it,symbol:"",need:bt,current:0,owe:Number(bt)>0};try{const Jt=getChainClient(it),{config:Ft}=await getChainConfig(it),Zt=JSON.parse(Ft).token;let nn=vt;nn||(nn=Zt.address),yt({address:Zt.address,symbol:Zt.symbol,decimal:Zt.decimal});const{getAccountState:{state:cn},getTokenState:{state:qt}}=await Jt.doBatchQuery({getAccountState:{address:appId},getTokenState:{address:nn}});qt&&(Lt.symbol=qt.symbol);const Dt=((cn==null?void 0:cn.tokens)||[]).find(Vt=>Vt.address===nn);if(Dt){const Vt=lib$4.fromTokenToUnit(bt,Dt.decimal||18);Lt.current=lib$4.fromUnitToToken(Dt.value,Dt.decimal||18),Lt.owe=Vt.gt(new lib$4.BN(Dt.value)),Mt=Math.max(0,lib$4.fromUnitToToken(Vt.sub(new lib$4.BN(Dt.value)),Dt.decimal||18))}}catch(Jt){mt&&Toast$1.error(Jt.message)}return ht({...Lt,deficiency:Mt}),Lt},rt=async({configs:mt,childDid:$t})=>(await client$1.configBlocklet({input:{did:[did].concat($t).filter(Boolean),configs:mt}}),jt()),st=async mt=>{const{blocklet:$t}=await client$1.configNavigations({input:{did,navigations:mt}});Gt($t)};reactExports.useEffect(()=>{At&&hn(),jt({showError:!1})},[]),reactExports.useEffect(()=>{var mt;(mt=Pt==null?void 0:Pt.controller)!=null&&mt.launcherSessionId&&client$1.getLauncherSession({input:{launcherSessionId:Pt.controller.launcherSessionId,launcherUrl:Pt.controller.launcherUrl}}).then($t=>{St($t.launcherSession)}).catch($t=>{console.error("get launcher session error",$t)})},[Pt==null?void 0:Pt.appPid]);const ut={loading:nt||Rt,loadingDiskInfo:It,loadingRuntimeInfo:Ct,error:_e||kt,blocklet:Pt,launcherSession:Tt,did,recommendedDomain:Bt,runtimeHistory:Kt,appIdList:Pt?util$2.getBlockletAppIdList(Pt):[],env:window.blocklet||{},meta:ot,gas:ft,tokenInfo:dt,client:client$1,mode:j,actions:{refreshBlocklet:jt,refreshDomainStatus:zt,setBlocklet:Gt,refreshMeta:hn,refreshFuel:wt,configBlocklet:rt,configNavigations:st}};return jsxRuntimeExports.jsx(Provider$2,{value:ut,children:a})}BlockletProvider.propTypes={children:PropTypes.any,mode:PropTypes.oneOf(["dashboard","setup"]).isRequired};BlockletProvider.defaultProps={children:null};function useBlockletContext(){return reactExports.useContext(BlockletContext)}const NodeContext=reactExports.createContext({});function useNodeContext$1(){const{node:a}=reactExports.useContext(NodeContext);return{...a,inService:a.type==="service",inDaemon:a.type==="daemon"}}const{Provider:Provider$1,Consumer:Consumer$1}=NodeContext,imgPrefix=`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function NodeProvider({children:a}){const{serverDid:j,serverVersion:_e,mode:et,nftDomainUrl:nt,ownerNft:tt,launcher:ot}=window.env,ct={api:client$1,restApi:api,prefix:constant$3.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix,getSessionInHeader:()=>({}),ws:{getWsClient,create,useSubscription},type:"service",info:{did:j,version:_e,mode:et,nftDomainUrl:nt,ownerNft:tt,launcher:ot}};return jsxRuntimeExports.jsx(Provider$1,{value:{node:ct},children:a})}function useNodeContext(){const{node:a}=reactExports.useContext(NodeContext);return a}const NotificationContext=reactExports.createContext({}),{Provider,Consumer}=NotificationContext;function NotificationProvider({children:a}){const{did:j}=window.env,[_e,et]=reactExports.useState([]),[nt,tt]=reactExports.useState({total:0,pageSize:10,pageCount:0,page:1}),[ot,ct]=reactExports.useState(!1),ft=async({page:dt=1}={})=>{if(!ot){ct(!0);try{const yt=await client$1.getBlockletNotifications({input:{paging:{page:dt},teamDid:j}});et(yt.list),tt(yt.paging),ct(!1)}catch(yt){Toast$1.error(yt.message),ct(!1)}}};reactExports.useEffect(()=>{ft()},[]),useSubscription(constant$3.EVENTS.NOTIFICATION_BLOCKLET_CREATE,dt=>{et(yt=>[dt,...yt||[]])});const ht={loading:ot,refresh:ft,data:_e||[],paging:nt,api:client$1};return jsxRuntimeExports.jsx(Provider,{value:{notifications:ht},children:a})}function useNotificationContext(){const{notifications:a}=reactExports.useContext(NotificationContext);return a}const UserLogin=reactExports.lazy(()=>__vitePreload(()=>import("./login-DvR8ldSJ.js"),__vite__mapDeps([0,1,2]))),UserLoginOAuthCallback=reactExports.lazy(()=>__vitePreload(()=>import("./login-oauth-callback-C6I5hp6o.js"),__vite__mapDeps([3,4,5,6]))),Connect=reactExports.lazy(()=>__vitePreload(()=>import("./connect-6xrInacS.js"),__vite__mapDeps([7,8,1,9,10]))),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./exchange-passport-CnSh9yXL.js"),__vite__mapDeps([11,9,10,12]))),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./issue-passport-C9U5xfNL.js"),__vite__mapDeps([13,14,15,16,17,1,18,19,20,12,9,10]))),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./lost-passport-CSsACZsq.js"),__vite__mapDeps([21,20,22,23,15,16,24,10,12,1,25,6,26]))),Start=reactExports.lazy(()=>__vitePreload(()=>import("./start-BUk3sbrk.js"),__vite__mapDeps([27,28,29,24,10,30,31,32,33]))),Setup=reactExports.lazy(()=>__vitePreload(()=>import("./setup-Ct1D13HF.js"),__vite__mapDeps([34,35,36,8,37,38,39,40,31,32,33,30]))),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./invite-1m2hy3gm.js"),__vite__mapDeps([41,14,15,16,17,1,18,19,20,12,9,10]))),Transfer=reactExports.lazy(()=>__vitePreload(()=>import("./transfer-Bx_nNEq4.js"),__vite__mapDeps([42,31,32,33,9,10,20]))),Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./dashboard-BijWBRYU.js").then(a=>a.k),__vite__mapDeps([43,44,45,46,47,48,49,50,51,5,6,52,53,28,54,55,56,25,18,57,58,59,10,60,4,61,62,63,40,64,65,32,66]))),UserCenter=reactExports.lazy(()=>__vitePreload(()=>import("./user-center-C-BWN4ab.js"),__vite__mapDeps([67,68,4,61,62,63,40,64,46,47,48,49,65,32,69,25,6,70,15,16,71,72,8,10,39,73,74,54,51,75,76,77,44,78,79,80,81,82,83,84,85,56,86,53,87,88,89,90,91,5,92]))),StudioHome=reactExports.lazy(()=>__vitePreload(()=>import("./home-CcjOthQO.js"),__vite__mapDeps([93,94,61,62,63,40,4,49]))),StudioPreferences=reactExports.lazy(()=>__vitePreload(()=>import("./preferences-BPOKtF4g.js"),__vite__mapDeps([95,96,94,61,62,63,40,4]))),StudioBranding=reactExports.lazy(()=>__vitePreload(()=>import("./branding-D-eSt-2j.js"),__vite__mapDeps([97,98,99,84,82,100,94,61,62,63,40,4,49,25,6]))),StudioLocalization=reactExports.lazy(()=>__vitePreload(()=>import("./localization-Duro2u0E.js"),__vite__mapDeps([101,94,61,62,63,40,4]))),AddResource=reactExports.lazy(()=>__vitePreload(()=>import("./add-resource-RNKWAHa3.js"),__vite__mapDeps([102,103,104,105,46,47,48,49,51,75,76,77,5,6,52,106,23,98,107,108,50,18,24,10,25,54,109,82,35,36,8,37,38,39,40,110,111,112,89,113,114,115,116,117,118,119,120,53,45,121,122,65,26,123,124,125,126,71,72,73,74,69,127,128,4,129,130,88,78,62,86,91,131]))),Publish=reactExports.lazy(()=>__vitePreload(()=>import("./publish-resource-VECs77eT.js"),__vite__mapDeps([132,133,105,53,29,80,81,82,16,83,84,46,47,48,49,85,76,56,86,77,75,44,87,63,88,78,59,50,51,5,6,52,18,24,10,99,100,134,25,108,135,33,60,114,136,37,8,69,130,72,137,98,104,106,23,107,54,109,128,91,90,117,118,138,139,26,55]))),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-gK8L4BFM.js"),[])),EmailKyc=reactExports.lazy(()=>__vitePreload(()=>import("./email-DxESpXcD.js"),__vite__mapDeps([140,141,142,9,10,52,20,143,49,75,76,48,77]))),Unsubscribe=reactExports.lazy(()=>__vitePreload(()=>import("./unsubscribe-k6GIH3_j.js"),[])),OpenWindow=reactExports.lazy(()=>__vitePreload(()=>import("./open-window-BnMY49qX.js"),[]));function App(){var et;const a=useLocation(),{t:j}=useLocaleContext();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${a.pathname}${a.search}`)},[a]);const _e=jsxRuntimeExports.jsx(Center,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelmetExport,{children:jsxRuntimeExports.jsx("title",{children:j("pageTitle.dashboard")})}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:_e,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window`,element:jsxRuntimeExports.jsx(OpenWindow,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(LostPassport,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(IssuePassport,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:jsxRuntimeExports.jsx(UserLogin,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/callback/:provider`,element:jsxRuntimeExports.jsx(UserLoginOAuthCallback,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:jsxRuntimeExports.jsx(Connect,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(ExchangePassport,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(Invite,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:jsxRuntimeExports.jsx(Transfer,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio`,element:jsxRuntimeExports.jsx(StudioHome,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:jsxRuntimeExports.jsx(StudioHome,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:jsxRuntimeExports.jsx(StudioPreferences,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/branding`,element:jsxRuntimeExports.jsx(StudioBranding,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:jsxRuntimeExports.jsx(StudioLocalization,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/kyc/email`,element:jsxRuntimeExports.jsx(EmailKyc,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:jsxRuntimeExports.jsx(AuthProvider,{children:jsxRuntimeExports.jsx(Start,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:jsxRuntimeExports.jsx(BlockletProvider,{mode:"setup",children:jsxRuntimeExports.jsx(Setup,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:jsxRuntimeExports.jsx(Unsubscribe,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:jsxRuntimeExports.jsx(AuthProvider,{roles:["*"],children:jsxRuntimeExports.jsx(UserCenter,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:jsxRuntimeExports.jsx(AuthProvider,{roles:["*"],children:jsxRuntimeExports.jsx(UserCenter,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:jsxRuntimeExports.jsx(NodeProvider,{children:jsxRuntimeExports.jsx(NotificationProvider,{children:jsxRuntimeExports.jsx(AuthProvider,{roles:["owner","admin","member"],children:jsxRuntimeExports.jsx(BlockletProvider,{mode:"dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})})})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:jsxRuntimeExports.jsx(Navigate,{to:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:jsxRuntimeExports.jsx(NodeProvider,{children:jsxRuntimeExports.jsx(AuthProvider,{roles:((et=window.blocklet)==null?void 0:et.tenantMode)===constant$2.BLOCKLET_TENANT_MODES.MULTIPLE?["owner","admin","guest"]:["owner","admin"],children:jsxRuntimeExports.jsx(BlockletProvider,{mode:"dashboard",children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"add",element:jsxRuntimeExports.jsx(AddResource,{})}),jsxRuntimeExports.jsx(Route,{path:"publish/*",element:jsxRuntimeExports.jsx(Publish,{})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})})})})]})})]})}function AppWrapper(){return jsxRuntimeExports.jsx(BrowserRouter,{basename:PREFIX,children:jsxRuntimeExports.jsx(Root$1,{children:jsxRuntimeExports.jsx(App,{})})})}const root=createRoot(document.getElementById("app"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=constant$3.WELLKNOWN_SERVICE_PATH_PREFIX;{async function a(){const{register:j}=await __vitePreload(async()=>{const{register:_e}=await import("./index-DTEEl-sV.js");return{register:_e}},[]);j(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(_e){console.error("Error during service worker registration:",_e)}})}a()}export{interopRequireDefaultExports as $,AvatarWithErrorBoundary as A,Box as B,Center as C,DID as D,default_1$4 as E,useSearchParams as F,constant$3 as G,HelmetExport as H,Container$1 as I,PoweredBy as J,withHttps as K,Link as L,withHttp as M,DidConnect as N,getWebWalletUrl$1 as O,PropTypes as P,useReactive as Q,ResultWrapper as R,SessionContext as S,Typography as T,useRequest as U,createPassportSvg as V,isNumber$2 as W,useLatest as X,defaultDayjs as Y,requireCreateSvgIcon as Z,__read as _,Tooltip as a,getWalletType as a$,newStyled as a0,useMediaQuery as a1,LocaleContext as a2,ButtonComponent as a3,isFromWallet as a4,__vitePreload as a5,isFunction$8 as a6,api as a7,client$1 as a8,getManageSubscriptionURL as a9,Se as aA,en$1 as aB,LocaleProvider as aC,useLocation as aD,IconButton as aE,SessionUser as aF,generateUtilityClasses as aG,generateUtilityClass as aH,styled$1 as aI,capitalize$3 as aJ,useDefaultProps as aK,_objectWithoutPropertiesLoose$1 as aL,_extends$2 as aM,useSlotProps as aN,clsx$1 as aO,composeClasses as aP,ListContext as aQ,useNodeContext$1 as aR,isDownloading as aS,Menu as aT,Divider as aU,MenuItem as aV,getServerUrl as aW,sleep as aX,getLogoHash as aY,isInstalling as aZ,useBlockletContext$1 as a_,util$2 as aa,Global as ab,constant$2 as ac,isSuspended as ad,Img as ae,isSuspendedByExpired as af,isSuspendedByTerminated as ag,formatToDatetime as ah,calculateRetentionDate as ai,css as aj,Paper as ak,useTheme$1 as al,useBlockletContext as am,getFromQuery as an,saveServerUrl as ao,hasRequiredEnvironments as ap,PREFIX as aq,NodeProvider as ar,Routes as as,Route as at,Navigate as au,createSvgIcon$1 as av,Dialog as aw,formatDateTime as ax,getExplorerLink as ay,patchJsxToLocale as az,Button$1 as b,getQuery as b$,_SetCache as b0,_arrayMap as b1,_baseUnary as b2,_arrayIncludes as b3,_arrayIncludesWith as b4,_cacheHas as b5,_baseFlatten as b6,_baseUniq as b7,_baseRest as b8,getDefaultExportFromCjs$1 as b9,isFunction$3 as bA,__assign as bB,SessionContext$1 as bC,noop$7 as bD,colors$1 as bE,Icon as bF,data$5 as bG,isEmpty$1 as bH,translate as bI,LOGIN_PROVIDER_NAME as bJ,data$j as bK,RelativeTime as bL,PASSPORT_STATUS as bM,data$a as bN,data$r as bO,getWalletDid$1 as bP,useConfirm as bQ,OAUTH_PROVIDER as bR,LOGIN_PROVIDER$1 as bS,data$f as bT,data$e as bU,data$d as bV,pick$2 as bW,useAsyncEffect as bX,getConnectedAccounts$1 as bY,getSourceProvider$1 as bZ,LinearProgress as b_,_arrayFilter as ba,last_1 as bb,isArrayLikeObject_1 as bc,hasOwn$8 as bd,Emotion$1 as be,createEmotionProps as bf,getSubscriptionUrlV2 as bg,Chip as bh,dayjs$1 as bi,formatPrettyMsLocale as bj,Popover as bk,formatToDate as bl,List as bm,BlockletAdminRoles as bn,Popper as bo,ClickAwayListener as bp,useNotificationContext as bq,useNodeContext as br,ErrorBoundary as bs,isServerless as bt,colors$2 as bu,styled as bv,mergeProps as bw,useSubscription as bx,getWsClient as by,useParams as bz,joinURL as c,getDialogTitleUtilityClass as c$,pWaitFor$1 as c0,cloneDeep$1 as c1,useUpdateEffect as c2,Dialog$1 as c3,axios$4 as c4,useUnmount as c5,util$4 as c6,lib$4 as c7,getDIDColor as c8,Card as c9,MenuList as cA,getColor as cB,getBackground as cC,merge$2 as cD,default_1$5 as cE,create$3 as cF,isObject$p as cG,StyledEngineProvider as cH,ThemeProvider$1 as cI,ThemeProvider$4 as cJ,isString$2 as cK,getThemeProps$1 as cL,useEnhancedEffect$1 as cM,keyframes as cN,getUnit as cO,toUnitless as cP,alpha$1 as cQ,ButtonBase as cR,debounce$5 as cS,ownerWindow as cT,useRtl as cU,useEventCallback$1 as cV,ownerDocument as cW,rootShouldForwardProp as cX,isMuiElement as cY,isHostComponent as cZ,DialogContext as c_,CardHeader as ca,CardContent as cb,CardActions as cc,o as cd,red as ce,darken_1 as cf,lighten_1 as cg,resolveComponentProps as ch,mergeSlotProps as ci,useForkRef as cj,appendOwnerState as ck,getPath$1 as cl,alpha_1 as cm,useIsFocusVisible as cn,commonjsGlobal as co,propTypesExports as cp,reactDomExports as cq,adapter as cr,get$6 as cs,Buffer$1$1 as ct,base64 as cu,BlockletSDK as cv,getAugmentedNamespace as cw,emotionReact_browser_esm as cx,emotionCache_browser_esm as cy,SvgIcon as cz,useSessionContext as d,duration$2 as d$,useTheme$2 as d0,DialogContent as d1,DialogActions as d2,getListItemIconUtilityClass as d3,listItemTextClasses as d4,getListItemTextUtilityClass as d5,ButtonGroupContext as d6,ButtonGroupButtonContext as d7,createChainedFunction$1 as d8,useControlled as d9,loadIcon as dA,createTheme as dB,ThemeProvider as dC,withErrorBoundary as dD,omit$1 as dE,lib as dF,upperFirst$2 as dG,formatMuiErrorMessage$1 as dH,GlobalStyles$2 as dI,ThemeProvider$2 as dJ,createSpacing as dK,createBreakpoints as dL,createTheme$1 as dM,private_safeDarken_1 as dN,private_safeLighten_1 as dO,private_safeEmphasize_1 as dP,private_safeAlpha_1 as dQ,private_safeColorChannel_1 as dR,defaultSxConfig as dS,styleFunctionSx$1 as dT,getOverlayAlpha as dU,hslToRgb_1 as dV,THEME_ID as dW,createTypography as dX,createMuiTheme as dY,darken$1 as dZ,decomposeColor$1 as d_,useId as da,throttle$4 as db,__spreadArray as dc,useSize as dd,default_1$7 as de,NavLink as df,matchPath as dg,Fade as dh,AUTH_SERVICE_PREFIX$1 as di,getTranslation as dj,SessionPermission as dk,NAVIGATION_URL as dl,createTheme$3 as dm,styled$2 as dn,handleBreakpoints as dp,resolveBreakpointValues as dq,createUnarySpacing as dr,deepmerge$1 as ds,mergeBreakpointsInOrder as dt,extendSxProp as du,useThemeProps as dv,getValue$4 as dw,tslib_es6$1 as dx,Modal as dy,Slide as dz,useNavigate as e,pLimit_1 as e$,easing as e0,emphasize$1 as e1,getContrastRatio$1 as e2,getLuminance$1 as e3,hexToRgb$1 as e4,hslToRgb$1 as e5,lighten$1 as e6,createMixins as e7,recomposeColor$1 as e8,responsiveFontSizes as e9,isArrayLike_1 as eA,keys_1 as eB,_baseFindIndex as eC,toInteger_1 as eD,sortBy$1 as eE,global$2 as eF,hoistStatics as eG,GlobalStyles as eH,slotShouldForwardProp as eI,createAxios$2 as eJ,flat as eK,AxiosError as eL,lib$1 as eM,RELAY_SOCKET_PREFIX$1 as eN,defaultTheme$2 as eO,objectAssign$1 as eP,React$2 as eQ,_inheritsLoose$2 as eR,ReactDOM as eS,__awaiter as eT,__generator as eU,getTargetElement as eV,useEventListener as eW,Buffer$3 as eX,browser$1 as eY,get_1 as eZ,uniq_1 as e_,rgbToHex$1 as ea,getPaperUtilityClass as eb,paperClasses as ec,getIconButtonUtilityClass as ed,iconButtonClasses as ee,getTypographyUtilityClass as ef,typographyClasses as eg,chipClasses as eh,getChipUtilityClass as ei,buttonClasses as ej,getButtonUtilityClass as ek,Grow as el,PopoverPaper as em,PopoverRoot as en,getOffsetLeft as eo,getOffsetTop as ep,getPopoverUtilityClass as eq,popoverClasses as er,getMenuItemUtilityClass as es,menuItemClasses as et,getTooltipUtilityClass as eu,tooltipClasses as ev,emotionSerialize_esm as ew,emotionUtils_browser_esm as ex,Close as ey,_baseIteratee as ez,useBrowser as f,axios_1 as f$,require$$6 as f0,require$$0$3 as f1,process$1$1 as f2,lib$5 as f3,urlPathFriendly$1 as f4,cloneDeep_1 as f5,getWebWalletUrl as f6,extractStatusUrlFromNextWorkflow as f7,hasRequiredSteps$1 as f8,getStoreList as f9,identity_1 as fA,_baseForOwn as fB,_baseMap as fC,isString_1 as fD,isPlainObject_1 as fE,requireObjectWithoutPropertiesLoose as fF,setRef as fG,_assertThisInitialized$1 as fH,ClickToCopy as fI,emphasize_1 as fJ,Collapse as fK,getCSRFToken as fL,axios$1 as fM,isExtracting as fN,APP_PREFIX as fO,_baseIndexOf as fP,_baseToString as fQ,_baseTrim as fR,_castSlice as fS,_charsEndIndex as fT,_stringToArray as fU,toString_1 as fV,hasRequiredSteps as fW,urlEvaluation as fX,isDidDomainOrIpEchoDomain as fY,shouldCheckDomainStatus as fZ,validateDomain as f_,_baseOrderBy as fa,isArray_1 as fb,omitBy$1 as fc,parseURL as fd,parseQuery as fe,parseFilename as ff,stringifyParsedURL as fg,useDebounceFn as fh,Et as fi,semver$1 as fj,formatRegistryLogoPath as fk,getBlockletLogoUrl as fl,formatMountPoint as fm,isNil$1 as fn,flatten$3 as fo,_default as fp,getBlockletMetaUrl as fq,isNewStoreUrl as fr,nested as fs,Check$1 as ft,createPassportSvg$2 as fu,normalizePathPrefix_1 as fv,engine as fw,camelCase$1 as fx,Confirm as fy,getPathPrefix as fz,getVisitorId$2 as g,breakpoints as g$,CopyButton as g0,checkIsWildcardDomain as g1,sortDomains as g2,getSystemDomains as g3,resolveProps as g4,Cookie as g5,getAccessUrl as g6,useUpdate as g7,tmp as g8,util$8 as g9,createBox as gA,ClassNameGenerator as gB,Timeout as gC,useTimeout as gD,teardown as gE,DefaultPropsProvider as gF,useDefaultProps$1 as gG,createContainer as gH,useTheme$3 as gI,GlobalStyles$1 as gJ,RtlProvider as gK,backgroundColor as gL,bgcolor as gM,blend$1 as gN,border as gO,borderBottom as gP,borderBottomColor as gQ,borderColor as gR,borderLeft as gS,borderLeftColor as gT,borderRadius as gU,borderRight as gV,borderRightColor as gW,borderTop as gX,borderTopColor as gY,borderTransform as gZ,boxSizing as g_,shams$1 as ga,callBound$3 as gb,objectKeys$3 as gc,hasPropertyDescriptors_1 as gd,defineDataProperty as ge,callBindExports as gf,safeBufferExports as gg,requireBrowser$9 as gh,requireElliptic as gi,requireCryptoBrowserify as gj,ripemd160 as gk,getInviteLink as gl,getIssuePassportLink as gm,getTextColor_1 as gn,isProtectedRole as go,ms$1 as gp,getChainClient as gq,compose as gr,style$1 as gs,borders as gt,grid as gu,palette as gv,sizing as gw,spacing as gx,globalStateClasses as gy,isGlobalState as gz,useSecurity as h,require$$6$2 as h$,color$1 as h0,colorChannel$1 as h1,columnGap as h2,createStyled$2 as h3,createUnaryUnit as h4,gap as h5,getStyleFromPropValue as h6,getStyleValue as h7,gridArea as h8,gridAutoColumns as h9,shouldForwardProp$1 as hA,sizeHeight as hB,sizeWidth as hC,sizingTransform as hD,systemDefaultTheme$1 as hE,unstable_createStyleFunctionSx as hF,useTheme$4 as hG,width as hH,TransitionGroup as hI,ENTERED as hJ,ENTERING as hK,EXITING as hL,TransitionGroupContext as hM,Transition$1 as hN,config$1 as hO,isRunning as hP,getTransferAppLink as hQ,_copyArray as hR,DidAddressWrapper as hS,copy$1 as hT,withTrailingSlash as hU,clsx$2 as hV,require$$1$4 as hW,require$$1$2 as hX,require$$4$3 as hY,colorManipulator as hZ,require$$6$3 as h_,gridAutoFlow as ha,gridAutoRows as hb,gridColumn as hc,gridRow as hd,gridTemplateAreas as he,gridTemplateColumns as hf,gridTemplateRows as hg,height as hh,margin as hi,marginKeys as hj,maxHeight as hk,maxWidth as hl,minHeight as hm,minWidth as hn,outline as ho,outlineColor as hp,padding as hq,paddingKeys as hr,paletteTransform as hs,private_safeAlpha$1 as ht,private_safeColorChannel$1 as hu,private_safeDarken$1 as hv,private_safeEmphasize$1 as hw,private_safeLighten$1 as hx,rowGap as hy,shape as hz,isUndefined$2 as i,createStyled$1 as i0,require$$5 as i1,isEqual$1 as i2,data$b as i3,clamp$1 as i4,extractEventHandlers as i5,forceReflow as i6,debounce_1 as i7,noop_1 as i8,formatTime as i9,React$3 as iA,isPlainObject$5 as iB,require$$2$1 as iC,require$$6$4 as iD,createPopper as iE,getScrollbarSize as iF,assertThisInitialized as iG,reactIsExports as iH,isValidClusterSize as iI,getBlockletUrlParams as iJ,trimEnd$1 as iK,normalizePathPrefix$1 as iL,_isIndex as iM,dialogClasses as iN,FocusTrap as iO,localizedFormatPlugin as iP,formatLocale as iQ,_baseAssignValue as iR,pTimeout$2 as iS,TimeoutError_1 as iT,uniq$1 as iU,Backdrop as iV,createRoot as iW,hoistNonReactStatics_cjs as ia,isEqual_1$1 as ib,pick_1$1 as ic,isNil_1 as id,omit_1 as ie,isAbsoluteUrl$1 as ig,isObject_1 as ih,withoutTrailingSlash as ii,isAbsoluteUrl$2 as ij,nanoid as ik,isEqual$3 as il,useEffectWithTarget$1 as im,__values as io,isString$3 as ip,_baseEach as iq,_setPrototypeOf as ir,debounce$3 as is,isNull$3 as it,filesize as iu,Icon$1 as iv,CacheProvider as iw,createCache as ix,StyleSheet as iy,ThemeContext$1 as iz,jsxRuntimeExports as j,useCreation as k,useMemoizedFn as l,useMount as m,CircularProgress as n,API_DID_PREFIX as o,AUTH_SERVICE_PREFIX as p,getMaster as q,reactExports as r,getFederatedEnabled as s,Toast$1 as t,useLocaleContext as u,setSessionToken as v,withQuery as w,setRefreshToken as x,setVisitorId as y,updateConnectedInfo as z};
|