@abtnode/blocklet-services 1.16.23-beta-47ca27f8 → 1.16.23-beta-c9c4e08e
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/libs/connect/session.js +10 -2
- package/api/services/auth/connect/issue-passport.js +82 -4
- package/dist/assets/{Add-HAkh2sOx.js → Add-0a5Bdqhh.js} +1 -1
- package/dist/assets/{Avatar-5PX3dF0M.js → Avatar-saexB4KL.js} +1 -1
- package/dist/assets/Box-4YGfDU-g.js +1 -0
- package/dist/assets/Box-Hidy-XzL.js +1 -0
- package/dist/assets/{Button-Taj4wxsV.js → Button-AJi8qZ6-.js} +1 -1
- package/dist/assets/{ButtonBase-ds-9hfKF.js → ButtonBase-0pgu0-ph.js} +2 -2
- package/dist/assets/{ButtonBase-TsfR2Ejp.js → ButtonBase-9ceABoYu.js} +4 -4
- package/dist/assets/CardContent-bbwDoZDs.js +1 -0
- package/dist/assets/{CheckCircle-wp8Rpkat.js → CheckCircle-BDZRhSkP.js} +1 -1
- package/dist/assets/{ChevronLeft-MTYzdGu1.js → ChevronLeft-M0afXKmQ.js} +1 -1
- package/dist/assets/{ChevronRight-23KxaoBu.js → ChevronRight-RsAvNbwV.js} +1 -1
- package/dist/assets/{Chip-oMHQfGpn.js → Chip-lI13RVXr.js} +1 -1
- package/dist/assets/{CircularProgress-UhRyzU-L.js → CircularProgress-kMtOxiWg.js} +1 -1
- package/dist/assets/{Close-7tjuDTIQ.js → Close-zM8cubHu.js} +1 -1
- package/dist/assets/Collapse-FIr8nqIc.js +1 -0
- package/dist/assets/{DeleteOutline-dHCLXJOk.js → DeleteOutline-EHVgqvq4.js} +1 -1
- package/dist/assets/{Done-0AHeZpV_.js → Done-jdYlqoaE.js} +1 -1
- package/dist/assets/{Download-RrzGwcpL.js → Download-f08g7jN3.js} +1 -1
- package/dist/assets/Edit-koRkIVnL.js +1 -0
- package/dist/assets/{EditIcon-JNYyqVkw.js → EditIcon--DhsX3gA.js} +1 -1
- package/dist/assets/{ExpandMore-HS9ZdUC5.js → ExpandMore-1SjTg2X5.js} +1 -1
- package/dist/assets/{ExpandMore-AZp5Wv95.js → ExpandMore-llY3IWdb.js} +1 -1
- package/dist/assets/{FilterList-tSSRG144.js → FilterList-i66TyoIR.js} +4 -4
- package/dist/assets/{Google-XP8iq_9h.js → Google-rn5zJeSt.js} +1 -1
- package/dist/assets/Grid-Kxa_RgMY.js +1 -0
- package/dist/assets/Grid-Vr6qJbOC.js +1 -0
- package/dist/assets/{Hidden-jOHh-nOO.js → Hidden-GPvyksuf.js} +1 -1
- package/dist/assets/{IconButton-UwR3-0NL.js → IconButton-_3vtt-nm.js} +2 -2
- package/dist/assets/{IconButton-N0c6O5nz.js → IconButton-voWUDqTe.js} +1 -1
- package/dist/assets/{InfoOutlined-mkAnLuml.js → InfoOutlined-Nx_BxmxM.js} +1 -1
- package/dist/assets/{InputAdornment-_p1uwE3h.js → InputAdornment-Y2e0EkJL.js} +1 -1
- package/dist/assets/InputAdornment-Z0M4lARx.js +1 -0
- package/dist/assets/InputLabel-ht6pCtWn.js +1 -0
- package/dist/assets/{Launch-t50iGquN.js → Launch-ocWAtGIZ.js} +1 -1
- package/dist/assets/{Link-S6gXb_sR.js → Link-Djztkjpf.js} +1 -1
- package/dist/assets/Link-MbvE8LVS.js +1 -0
- package/dist/assets/ListItem-CQpqM3So.js +1 -0
- package/dist/assets/ListItemText-KvPqm6Jl.js +1 -0
- package/dist/assets/{LockIcon-N64w0tOF.js → LockIcon-g-NIbeeL.js} +1 -1
- package/dist/assets/{Loop-cXU2nixm.js → Loop-1F5yP5Sf.js} +1 -1
- package/dist/assets/Menu-EYAj-L5o.js +1 -0
- package/dist/assets/{OpenInNew-e-1hEprE.js → OpenInNew-KoZ6NVve.js} +1 -1
- package/dist/assets/{Pagination-hF6gAwBG.js → Pagination-RIzFNd3d.js} +1 -1
- package/dist/assets/{Paper-dhztGun2.js → Paper-KR2zG2e1.js} +1 -1
- package/dist/assets/{RevokeIcon-6b0zoRoM.js → RevokeIcon-k7gup88V.js} +1 -1
- package/dist/assets/{Search-hARQKO4c.js → Search-DKuqYO71.js} +2 -2
- package/dist/assets/{Search-K8k_olp5.js → Search-jxH6gV3G.js} +1 -1
- package/dist/assets/Select-j4dphzS1.js +2 -0
- package/dist/assets/{ServerLogo-Z-AxAPF-.js → ServerLogo-jSiVEGfc.js} +1 -1
- package/dist/assets/{Skeleton-DOJpxB_p.js → Skeleton-4Bzp9rD2.js} +4 -4
- package/dist/assets/Stepper-6z_En7Ez.js +1 -0
- package/dist/assets/{TextField-Xzz8twmn.js → TextField-MqhQ7k_u.js} +2 -2
- package/dist/assets/TextField-TIIUFfIa.js +1 -0
- package/dist/assets/{Toolbar-erlbYT0o.js → Toolbar-mUgc5lSm.js} +1 -1
- package/dist/assets/{Tooltip-N8uXItlt.js → Tooltip-pHdHXs1x.js} +1 -1
- package/dist/assets/{Typography-UDbZ1S4P.js → Typography-at7Lfh5t.js} +1 -1
- package/dist/assets/access-control-pPSUaB5V.js +13 -0
- package/dist/assets/actions-_M8QNJCv.js +1 -0
- package/dist/assets/{add-component-core-JltpkqM1.js → add-component-core-vFFv0oMu.js} +25 -25
- package/dist/assets/add-resource-F6M9SxXb.js +1 -0
- package/dist/assets/addon-mZLwCS5i.js +31 -0
- package/dist/assets/{analytics-QLTA0Klt.js → analytics-X1Aa9edO.js} +8 -8
- package/dist/assets/api--aPGZZak.js +1 -0
- package/dist/assets/{audit-logs-QNzACvgL.js → audit-logs-fB_fjc8-.js} +3 -3
- package/dist/assets/button-aYcZyw38.js +1 -0
- package/dist/assets/click-to-copy-wV-Xrdm0.js +1 -0
- package/dist/assets/{complete-kSWTrUDB.js → complete-4wYoB0m7.js} +2 -2
- package/dist/assets/{component-R4OOvs3Y.js → component-UEuO0cie.js} +6 -6
- package/dist/assets/config-6dxfhAj_.js +32 -0
- package/dist/assets/{config-M72R5lj3.js → config-9gtFu_z9.js} +1 -1
- package/dist/assets/{config-navigation-TqAA_VTM.js → config-navigation-GQKikGmQ.js} +7 -7
- package/dist/assets/{config-space-hqP646ET.js → config-space-QevjRYTe.js} +1 -1
- package/dist/assets/confirm-7bSGI57a.js +7 -0
- package/dist/assets/{connect-qstsRWWM.js → connect-mbk2hX85.js} +1 -1
- package/dist/assets/connect-rrK1U4-M.js +5 -0
- package/dist/assets/connect-to-EhqsMD-x.js +54 -0
- package/dist/assets/{content-layout-5a5YwWiV.js → content-layout-Hr0Rhkxd.js} +1 -1
- package/dist/assets/{createStack-otVt5u3V.js → createStack-uP5Lw019.js} +1 -1
- package/dist/assets/{createSvgIcon-vJHFh5-e.js → createSvgIcon-WPRtXjzD.js} +1 -1
- package/dist/assets/createSvgIcon-yyT8bUWt.js +1 -0
- package/dist/assets/dashboard-QmSVk38R.js +134 -0
- package/dist/assets/{did-address-EcQj8KKn.js → did-address-0CJZ1hTv.js} +1 -1
- package/dist/assets/domain-FRsEJtjg.js +9 -0
- package/dist/assets/domain-list-sWtOJHZE.js +12 -0
- package/dist/assets/{exchange-passport-fwa9EQLX.js → exchange-passport-3HXvKt39.js} +1 -1
- package/dist/assets/fallback-bTiy993_.js +15 -0
- package/dist/assets/fuel-aLCEGQBm.js +32 -0
- package/dist/assets/fullpage-sluJlU9w.js +1 -0
- package/dist/assets/home-YUABDbdq.js +1 -0
- package/dist/assets/{iframe-RYGZInxO.js → iframe-tSgJlkja.js} +1 -1
- package/dist/assets/{index-wqiaLCSa.js → index-0x54J6vw.js} +8 -8
- package/dist/assets/{index-3Gt1qwaG.js → index-28ZeZ4Px.js} +1 -1
- package/dist/assets/index-3Gq88ATv.js +1 -0
- package/dist/assets/index-3HM6kgF3.js +1 -0
- package/dist/assets/{index-lH7kst-l.js → index-5eI60Acc.js} +1 -1
- package/dist/assets/{index-MICfQdxp.js → index-BbNutsxB.js} +1 -1
- package/dist/assets/{index-7dpcVR4r.js → index-DpfNlt5t.js} +2 -2
- package/dist/assets/{index-dSx-_bkh.js → index-FYC2Mdgd.js} +1 -1
- package/dist/assets/index-GeEeMTnx.js +1 -0
- package/dist/assets/{index--wiF8mdU.js → index-Gxq7K81Z.js} +3 -3
- package/dist/assets/{index-bzO1lgrh.js → index-HQiCzdfo.js} +1 -1
- package/dist/assets/{index-fy3VHxQ-.js → index-HSkSeOXF.js} +1 -1
- package/dist/assets/{index-A70j6-FT.js → index-IIfvsd64.js} +1 -1
- package/dist/assets/{index-M2Q-LUVW.js → index-VLyXJrSM.js} +5 -5
- package/dist/assets/{index-ifZh0v2H.js → index-XfYQRkib.js} +3 -3
- package/dist/assets/{index-zANLoUbz.js → index-YT5xL2Uw.js} +3 -3
- package/dist/assets/{index-1LoAlz_D.js → index-cbNOXa5L.js} +3 -3
- package/dist/assets/{index-vK8pD1J5.js → index-f95kNfHS.js} +1 -1
- package/dist/assets/{index-f2e8-jph.js → index-fUO5Depg.js} +1 -1
- package/dist/assets/{index-x-hWO8c2.js → index-h8HAvCIo.js} +1 -1
- package/dist/assets/{index-3L-shBOI.js → index-ktOfCEiQ.js} +1 -1
- package/dist/assets/index-lnMv_-tz.js +4 -0
- package/dist/assets/{index-7CTOHAM7.js → index-m2g0wxvf.js} +1 -1
- package/dist/assets/{index-yavkBA9P.js → index-nlMx0Pkv.js} +1 -1
- package/dist/assets/{index-z68tym-5.js → index-pGbT4yfj.js} +1 -1
- package/dist/assets/index-t3_35jAF.js +1 -0
- package/dist/assets/{index-eHJVJ0oa.js → index-u-GE3BTp.js} +9 -9
- package/dist/assets/{index-wzDvlRWd.js → index-uDkwKD_m.js} +1 -1
- package/dist/assets/{index-p49pWz3A.js → index-vFPaiaOa.js} +1 -1
- package/dist/assets/{index.es-g7x0RbBb.js → index.es-WqdbzMMA.js} +1 -1
- package/dist/assets/index.esm-8eXF7vW3.js +1 -0
- package/dist/assets/invitation-5BTphIRX.js +200 -0
- package/dist/assets/invite-xA1RX6Ru.js +10 -0
- package/dist/assets/issue-passport-bpGms9YB.js +1 -0
- package/dist/assets/{jss-plugin-props-sort.esm-WZ6qfOAb.js → jss-plugin-props-sort.esm-6oUKcv-U.js} +1 -1
- package/dist/assets/{launch-result-message-OfebXpdW.js → launch-result-message-eMHkuPAd.js} +1 -1
- package/dist/assets/{layout-T_0qJLQ2.js → layout-qefLTTXj.js} +2 -2
- package/dist/assets/list-header-eObNTorD.js +57 -0
- package/dist/assets/{listItemButtonClasses-hkZeStXq.js → listItemButtonClasses-EzjM5W1B.js} +1 -1
- package/dist/assets/localization-9wrHBYfW.js +1 -0
- package/dist/assets/{log-I1GzaD_w.js → log-svrVwIOb.js} +1 -1
- package/dist/assets/{login-04v880Iz.js → login-e66zu5Wk.js} +1 -1
- package/dist/assets/{logo-uploader-GWc0UE5a.js → logo-uploader-Xjm2hVjF.js} +3 -3
- package/dist/assets/{lost-passport-F5idDReU.js → lost-passport-iXAhJYo-.js} +4 -4
- package/dist/assets/{lottie-HUeyVXHO.js → lottie-F5gFbpyt.js} +1 -1
- package/dist/assets/notifications-ZYuBeXGk.js +62 -0
- package/dist/assets/overview-TPx-R0_S.js +12 -0
- package/dist/assets/page-header-ZTfGVY_H.js +31 -0
- package/dist/assets/permission-4PC8xSJN.js +7 -0
- package/dist/assets/{preferences-8RXBVFut.js → preferences-RH1LPh09.js} +1 -1
- package/dist/assets/publish-resource-rPm6dg0_.js +1 -0
- package/dist/assets/{react-Pl9wLqVE.js → react-oacgJH2V.js} +3 -3
- package/dist/assets/{selector-8S0Ovg2V.js → selector-TddQn3jx.js} +3 -3
- package/dist/assets/session-917r6dEa.js +1 -0
- package/dist/assets/setup-V1H5uS4e.js +19 -0
- package/dist/assets/{slicedToArray-sAkvvam0.js → slicedToArray-ZZKDh6nd.js} +1 -1
- package/dist/assets/{spaces-pyZ1WB8d.js → spaces-ijCgqPhL.js} +1 -1
- package/dist/assets/start-ztPGxEP2.js +186 -0
- package/dist/assets/step-actions-MiYGXTbU.js +31 -0
- package/dist/assets/studio-uDblvb8y.js +6 -0
- package/dist/assets/{styled-vyyGyo-B.js → styled--KG4RxYC.js} +1 -1
- package/dist/assets/switch-control-8Ix6THlq.js +13 -0
- package/dist/assets/{toUpper-2qNPrjIY.js → toUpper-lNfRZxn4.js} +1 -1
- package/dist/assets/transfer-A_b1gi7p.js +16 -0
- package/dist/assets/{uniqBy-pUE78X3A.js → uniqBy-dQ8eGfYo.js} +1 -1
- package/dist/assets/{unsubscribe-xRe3X65Z.js → unsubscribe-0wpDTabl.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-CtHsgbj0.js → use-blocklet-info-for-connect-did-spaces-TrClapIR.js} +1 -1
- package/dist/assets/{useAsync-pxr77aA7.js → useAsync-VmxO4pF4.js} +1 -1
- package/dist/assets/useLocalStorage-FwOTd6r2.js +1 -0
- package/dist/assets/useMediaQuery-ll0_8kAu.js +1 -0
- package/dist/assets/{useSetState-W0uZizyA.js → useSetState-ruMvgmdH.js} +1 -1
- package/dist/assets/{useSlotProps-JXekjaoI.js → useSlotProps-Bsg5wrI9.js} +1 -1
- package/dist/assets/useTheme-QQ9ZlGSI.js +1 -0
- package/dist/assets/user-center-Aclo8pyD.js +57 -0
- package/dist/assets/{util-QwXbQR6E.js → util-_BeTKW_Y.js} +1 -1
- package/dist/assets/{wrap-locale-BPajZpMF.js → wrap-locale-IxZ-GSRz.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +18 -18
- package/dist/assets/Box-2_oXuYOC.js +0 -1
- package/dist/assets/Box-yQhvFXZ4.js +0 -1
- package/dist/assets/CardContent-Vn0H-ykk.js +0 -1
- package/dist/assets/Checkbox-WEkSGgqM.js +0 -1
- package/dist/assets/Collapse-Rktw-r6T.js +0 -1
- package/dist/assets/Edit-9FHLgqnc.js +0 -1
- package/dist/assets/Grid-LxqZ048V.js +0 -1
- package/dist/assets/Grid-uIDC1Dk-.js +0 -1
- package/dist/assets/InputAdornment-eiYABgDx.js +0 -1
- package/dist/assets/InputLabel-Z2BfnoGi.js +0 -1
- package/dist/assets/Link-Ztw8lZh_.js +0 -1
- package/dist/assets/ListItem-CsQT7_Y0.js +0 -1
- package/dist/assets/ListItemText-Z_BlB5GU.js +0 -1
- package/dist/assets/Select-VVRpAz6G.js +0 -2
- package/dist/assets/StepLabel-qH6Jspwz.js +0 -1
- package/dist/assets/TextField-7oqc3A5T.js +0 -1
- package/dist/assets/Typography-gcm4VbT4.js +0 -1
- package/dist/assets/access-control-1-AB8Zz4.js +0 -13
- package/dist/assets/actions-pPHDcJiy.js +0 -1
- package/dist/assets/add-resource-3pZIROMS.js +0 -1
- package/dist/assets/addon-0ytccgFe.js +0 -31
- package/dist/assets/api-plw61fT1.js +0 -1
- package/dist/assets/button-LQo--zEq.js +0 -1
- package/dist/assets/click-to-copy-YCRgRpgV.js +0 -1
- package/dist/assets/config-EMixIt7x.js +0 -32
- package/dist/assets/confirm-qiO2KLCl.js +0 -7
- package/dist/assets/connect-to-tAiM-2C-.js +0 -54
- package/dist/assets/connect-w4waItwI.js +0 -5
- package/dist/assets/createSvgIcon-dMfYf-BF.js +0 -1
- package/dist/assets/dashboard-tk2Zj0Iy.js +0 -134
- package/dist/assets/domain-2CdQ_Y3W.js +0 -9
- package/dist/assets/domain-list-RmHrzAld.js +0 -12
- package/dist/assets/fallback-rmh2tyHR.js +0 -15
- package/dist/assets/formControlState-ITAwsVlF.js +0 -1
- package/dist/assets/fuel-OeFTUAqM.js +0 -32
- package/dist/assets/fullpage-ulgaGMfr.js +0 -1
- package/dist/assets/home-Kau_sqYV.js +0 -1
- package/dist/assets/index-IfzllcnH.js +0 -1
- package/dist/assets/index-S3AXT8xr.js +0 -4
- package/dist/assets/index-VFVjYT5M.js +0 -1
- package/dist/assets/index-W2uUvH1R.js +0 -1
- package/dist/assets/index-XhgQcf4c.js +0 -1
- package/dist/assets/index.esm-EKRhXnXW.js +0 -1
- package/dist/assets/invite-zRKtERWD.js +0 -209
- package/dist/assets/issue-passport-9JCUpg-H.js +0 -23
- package/dist/assets/list-header-utM5dBjc.js +0 -57
- package/dist/assets/localization-91hg4t7I.js +0 -1
- package/dist/assets/notifications-l1yCHIQ4.js +0 -62
- package/dist/assets/overview-nK3M7e6f.js +0 -12
- package/dist/assets/page-header-UMumPn76.js +0 -31
- package/dist/assets/permission-4bghYHvM.js +0 -7
- package/dist/assets/publish-resource-hzXbza9w.js +0 -1
- package/dist/assets/session-qd-ncyNw.js +0 -1
- package/dist/assets/setup-Azfq43r5.js +0 -19
- package/dist/assets/start-1Un44vsd.js +0 -186
- package/dist/assets/step-actions-mQONdxTQ.js +0 -31
- package/dist/assets/studio-DELVgW-e.js +0 -6
- package/dist/assets/switch-control-U_pIrchw.js +0 -13
- package/dist/assets/transfer-wFwEqrOx.js +0 -16
- package/dist/assets/useMediaQuery--siIU3rp.js +0 -1
- package/dist/assets/useTheme-umtft1k4.js +0 -1
- package/dist/assets/user-center-at2edvXt.js +0 -57
|
@@ -513,7 +513,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
513
513
|
`}return Ne.substring(0,Ne.length-1)},x.renderTo2dContext=function(j,L){L=L||2;for(var Z=x.getModuleCount(),K=0;K<Z;K++)for(var te=0;te<Z;te++)j.fillStyle=x.isDark(K,te)?"black":"white",j.fillRect(K*L,te*L,L,L)},x};c.stringToBytes=(c.stringToBytesFuncs={default:function(T){for(var u=[],h=0;h<T.length;h+=1){var E=T.charCodeAt(h);u.push(255&E)}return u}}).default,c.createStringToBytes=function(T,u){var h=function(){for(var S=Q(T),C=function(){var ne=S.read();if(ne==-1)throw"eof";return ne},I=0,_={};;){var x=S.read();if(x==-1)break;var v=C(),k=C()<<8|C();_[String.fromCharCode(x<<8|v)]=k,I+=1}if(I!=u)throw I+" != "+u;return _}(),E=63;return function(S){for(var C=[],I=0;I<S.length;I+=1){var _=S.charCodeAt(I);if(_<128)C.push(_);else{var x=h[S.charAt(I)];typeof x=="number"?(255&x)==x?C.push(x):(C.push(x>>>8),C.push(255&x)):C.push(E)}}return C}};var d,p,y,g,b,R={L:1,M:0,Q:3,H:2},A=(d=[[],[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]],p=1335,y=7973,b=function(T){for(var u=0;T!=0;)u+=1,T>>>=1;return u},(g={}).getBCHTypeInfo=function(T){for(var u=T<<10;b(u)-b(p)>=0;)u^=p<<b(u)-b(p);return 21522^(T<<10|u)},g.getBCHTypeNumber=function(T){for(var u=T<<12;b(u)-b(y)>=0;)u^=y<<b(u)-b(y);return T<<12|u},g.getPatternPosition=function(T){return d[T-1]},g.getMaskFunction=function(T){switch(T){case 0:return function(u,h){return(u+h)%2==0};case 1:return function(u,h){return u%2==0};case 2:return function(u,h){return h%3==0};case 3:return function(u,h){return(u+h)%3==0};case 4:return function(u,h){return(Math.floor(u/2)+Math.floor(h/3))%2==0};case 5:return function(u,h){return u*h%2+u*h%3==0};case 6:return function(u,h){return(u*h%2+u*h%3)%2==0};case 7:return function(u,h){return(u*h%3+(u+h)%2)%2==0};default:throw"bad maskPattern:"+T}},g.getErrorCorrectPolynomial=function(T){for(var u=D([1],0),h=0;h<T;h+=1)u=u.multiply(D([1,$.gexp(h)],0));return u},g.getLengthInBits=function(T,u){if(1<=u&&u<10)switch(T){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+T}else if(u<27)switch(T){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+T}else{if(!(u<41))throw"type:"+u;switch(T){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+T}}},g.getLostPoint=function(T){for(var u=T.getModuleCount(),h=0,E=0;E<u;E+=1)for(var S=0;S<u;S+=1){for(var C=0,I=T.isDark(E,S),_=-1;_<=1;_+=1)if(!(E+_<0||u<=E+_))for(var x=-1;x<=1;x+=1)S+x<0||u<=S+x||_==0&&x==0||I==T.isDark(E+_,S+x)&&(C+=1);C>5&&(h+=3+C-5)}for(E=0;E<u-1;E+=1)for(S=0;S<u-1;S+=1){var v=0;T.isDark(E,S)&&(v+=1),T.isDark(E+1,S)&&(v+=1),T.isDark(E,S+1)&&(v+=1),T.isDark(E+1,S+1)&&(v+=1),v!=0&&v!=4||(h+=3)}for(E=0;E<u;E+=1)for(S=0;S<u-6;S+=1)T.isDark(E,S)&&!T.isDark(E,S+1)&&T.isDark(E,S+2)&&T.isDark(E,S+3)&&T.isDark(E,S+4)&&!T.isDark(E,S+5)&&T.isDark(E,S+6)&&(h+=40);for(S=0;S<u;S+=1)for(E=0;E<u-6;E+=1)T.isDark(E,S)&&!T.isDark(E+1,S)&&T.isDark(E+2,S)&&T.isDark(E+3,S)&&T.isDark(E+4,S)&&!T.isDark(E+5,S)&&T.isDark(E+6,S)&&(h+=40);var k=0;for(S=0;S<u;S+=1)for(E=0;E<u;E+=1)T.isDark(E,S)&&(k+=1);return h+Math.abs(100*k/u/u-50)/5*10},g),$=function(){for(var T=new Array(256),u=new Array(256),h=0;h<8;h+=1)T[h]=1<<h;for(h=8;h<256;h+=1)T[h]=T[h-4]^T[h-5]^T[h-6]^T[h-8];for(h=0;h<255;h+=1)u[T[h]]=h;return{glog:function(E){if(E<1)throw"glog("+E+")";return u[E]},gexp:function(E){for(;E<0;)E+=255;for(;E>=256;)E-=255;return T[E]}}}();function D(T,u){if(T.length===void 0)throw T.length+"/"+u;var h=function(){for(var S=0;S<T.length&&T[S]==0;)S+=1;for(var C=new Array(T.length-S+u),I=0;I<T.length-S;I+=1)C[I]=T[I+S];return C}(),E={getAt:function(S){return h[S]},getLength:function(){return h.length},multiply:function(S){for(var C=new Array(E.getLength()+S.getLength()-1),I=0;I<E.getLength();I+=1)for(var _=0;_<S.getLength();_+=1)C[I+_]^=$.gexp($.glog(E.getAt(I))+$.glog(S.getAt(_)));return D(C,0)},mod:function(S){if(E.getLength()-S.getLength()<0)return E;for(var C=$.glog(E.getAt(0))-$.glog(S.getAt(0)),I=new Array(E.getLength()),_=0;_<E.getLength();_+=1)I[_]=E.getAt(_);for(_=0;_<S.getLength();_+=1)I[_]^=$.gexp($.glog(S.getAt(_))+C);return D(I,0).mod(S)}};return E}var M=function(){var T=[[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]],u=function(E,S){var C={};return C.totalCount=E,C.dataCount=S,C},h={getRSBlocks:function(E,S){var C=function(q,ie){switch(ie){case R.L:return T[4*(q-1)+0];case R.M:return T[4*(q-1)+1];case R.Q:return T[4*(q-1)+2];case R.H:return T[4*(q-1)+3];default:return}}(E,S);if(C===void 0)throw"bad rs block @ typeNumber:"+E+"/errorCorrectionLevel:"+S;for(var I=C.length/3,_=[],x=0;x<I;x+=1)for(var v=C[3*x+0],k=C[3*x+1],ne=C[3*x+2],N=0;N<v;N+=1)_.push(u(k,ne));return _}};return h}(),J=function(){var T=[],u=0,h={getBuffer:function(){return T},getAt:function(E){var S=Math.floor(E/8);return(T[S]>>>7-E%8&1)==1},put:function(E,S){for(var C=0;C<S;C+=1)h.putBit((E>>>S-C-1&1)==1)},getLengthInBits:function(){return u},putBit:function(E){var S=Math.floor(u/8);T.length<=S&&T.push(0),E&&(T[S]|=128>>>u%8),u+=1}};return h},U=function(T){var u=T,h={getMode:function(){return 1},getLength:function(C){return u.length},write:function(C){for(var I=u,_=0;_+2<I.length;)C.put(E(I.substring(_,_+3)),10),_+=3;_<I.length&&(I.length-_==1?C.put(E(I.substring(_,_+1)),4):I.length-_==2&&C.put(E(I.substring(_,_+2)),7))}},E=function(C){for(var I=0,_=0;_<C.length;_+=1)I=10*I+S(C.charAt(_));return I},S=function(C){if("0"<=C&&C<="9")return C.charCodeAt(0)-48;throw"illegal char :"+C};return h},V=function(T){var u=T,h={getMode:function(){return 2},getLength:function(S){return u.length},write:function(S){for(var C=u,I=0;I+1<C.length;)S.put(45*E(C.charAt(I))+E(C.charAt(I+1)),11),I+=2;I<C.length&&S.put(E(C.charAt(I)),6)}},E=function(S){if("0"<=S&&S<="9")return S.charCodeAt(0)-48;if("A"<=S&&S<="Z")return S.charCodeAt(0)-65+10;switch(S){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 :"+S}};return h},X=function(T){var u=c.stringToBytes(T);return{getMode:function(){return 4},getLength:function(h){return u.length},write:function(h){for(var E=0;E<u.length;E+=1)h.put(u[E],8)}}},re=function(T){var u=c.stringToBytesFuncs.SJIS;if(!u)throw"sjis not supported.";(function(S,C){var I=u("友");if(I.length!=2||(I[0]<<8|I[1])!=38726)throw"sjis not supported."})();var h=u(T),E={getMode:function(){return 8},getLength:function(S){return~~(h.length/2)},write:function(S){for(var C=h,I=0;I+1<C.length;){var _=(255&C[I])<<8|255&C[I+1];if(33088<=_&&_<=40956)_-=33088;else{if(!(57408<=_&&_<=60351))throw"illegal char at "+(I+1)+"/"+_;_-=49472}_=192*(_>>>8&255)+(255&_),S.put(_,13),I+=2}if(I<C.length)throw"illegal char at "+(I+1)}};return E},le=function(){var T=[],u={writeByte:function(h){T.push(255&h)},writeShort:function(h){u.writeByte(h),u.writeByte(h>>>8)},writeBytes:function(h,E,S){E=E||0,S=S||h.length;for(var C=0;C<S;C+=1)u.writeByte(h[C+E])},writeString:function(h){for(var E=0;E<h.length;E+=1)u.writeByte(h.charCodeAt(E))},toByteArray:function(){return T},toString:function(){var h="";h+="[";for(var E=0;E<T.length;E+=1)E>0&&(h+=","),h+=T[E];return h+"]"}};return u},Q=function(T){var u=T,h=0,E=0,S=0,C={read:function(){for(;S<8;){if(h>=u.length){if(S==0)return-1;throw"unexpected end of file./"+S}var _=u.charAt(h);if(h+=1,_=="=")return S=0,-1;_.match(/^\s$/)||(E=E<<6|I(_.charCodeAt(0)),S+=6)}var x=E>>>S-8&255;return S-=8,x}},I=function(_){if(65<=_&&_<=90)return _-65;if(97<=_&&_<=122)return _-97+26;if(48<=_&&_<=57)return _-48+52;if(_==43)return 62;if(_==47)return 63;throw"c:"+_};return C},P=function(T,u,h){for(var E=function(k,ne){var N=k,q=ne,ie=new Array(k*ne),ue={setPixel:function(j,L,Z){ie[L*N+j]=Z},write:function(j){j.writeString("GIF87a"),j.writeShort(N),j.writeShort(q),j.writeByte(128),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(255),j.writeByte(255),j.writeByte(255),j.writeString(","),j.writeShort(0),j.writeShort(0),j.writeShort(N),j.writeShort(q),j.writeByte(0);var L=he(2);j.writeByte(2);for(var Z=0;L.length-Z>255;)j.writeByte(255),j.writeBytes(L,Z,255),Z+=255;j.writeByte(L.length-Z),j.writeBytes(L,Z,L.length-Z),j.writeByte(0),j.writeString(";")}},he=function(j){for(var L=1<<j,Z=1+(1<<j),K=j+1,te=Se(),ye=0;ye<L;ye+=1)te.add(String.fromCharCode(ye));te.add(String.fromCharCode(L)),te.add(String.fromCharCode(Z));var pe,ae,me,we=le(),be=(pe=we,ae=0,me=0,{write:function(ke,Ce){if(ke>>>Ce)throw"length over";for(;ae+Ce>=8;)pe.writeByte(255&(ke<<ae|me)),Ce-=8-ae,ke>>>=8-ae,me=0,ae=0;me|=ke<<ae,ae+=Ce},flush:function(){ae>0&&pe.writeByte(me)}});be.write(L,K);var Ne=0,Je=String.fromCharCode(ie[Ne]);for(Ne+=1;Ne<ie.length;){var Be=String.fromCharCode(ie[Ne]);Ne+=1,te.contains(Je+Be)?Je+=Be:(be.write(te.indexOf(Je),K),te.size()<4095&&(te.size()==1<<K&&(K+=1),te.add(Je+Be)),Je=Be)}return be.write(te.indexOf(Je),K),be.write(Z,K),be.flush(),we.toByteArray()},Se=function(){var j={},L=0,Z={add:function(K){if(Z.contains(K))throw"dup key:"+K;j[K]=L,L+=1},size:function(){return L},indexOf:function(K){return j[K]},contains:function(K){return j[K]!==void 0}};return Z};return ue}(T,u),S=0;S<u;S+=1)for(var C=0;C<T;C+=1)E.setPixel(C,S,h(C,S));var I=le();E.write(I);for(var _=function(){var k=0,ne=0,N=0,q="",ie={},ue=function(Se){q+=String.fromCharCode(he(63&Se))},he=function(Se){if(!(Se<0)){if(Se<26)return 65+Se;if(Se<52)return Se-26+97;if(Se<62)return Se-52+48;if(Se==62)return 43;if(Se==63)return 47}throw"n:"+Se};return ie.writeByte=function(Se){for(k=k<<8|255&Se,ne+=8,N+=1;ne>=6;)ue(k>>>ne-6),ne-=6},ie.flush=function(){if(ne>0&&(ue(k<<6-ne),k=0,ne=0),N%3!=0)for(var Se=3-N%3,j=0;j<Se;j+=1)q+="="},ie.toString=function(){return q},ie}(),x=I.toByteArray(),v=0;v<x.length;v+=1)_.writeByte(x[v]);return _.flush(),"data:image/gif;base64,"+_};return c}();f.stringToBytesFuncs["UTF-8"]=function(c){return function(d){for(var p=[],y=0;y<d.length;y++){var g=d.charCodeAt(y);g<128?p.push(g):g<2048?p.push(192|g>>6,128|63&g):g<55296||g>=57344?p.push(224|g>>12,128|g>>6&63,128|63&g):(y++,g=65536+((1023&g)<<10|1023&d.charCodeAt(y)),p.push(240|g>>18,128|g>>12&63,128|g>>6&63,128|63&g))}return p}(c)},(l=typeof(s=function(){return f})=="function"?s.apply(o,[]):s)===void 0||(a.exports=l)},676:(a,o,s)=>{s.d(o,{default:()=>Se});const l="Numeric",f="Alphanumeric",c="Byte";var d=function(){return d=Object.assign||function(j){for(var L,Z=1,K=arguments.length;Z<K;Z++)for(var te in L=arguments[Z])Object.prototype.hasOwnProperty.call(L,te)&&(j[te]=L[te]);return j},d.apply(this,arguments)},p=function(){for(var j=0,L=0,Z=arguments.length;L<Z;L++)j+=arguments[L].length;var K=Array(j),te=0;for(L=0;L<Z;L++)for(var ye=arguments[L],pe=0,ae=ye.length;pe<ae;pe++,te++)K[te]=ye[pe];return K},y=function(j){return!!j&&typeof j=="object"&&!Array.isArray(j)};function g(j){for(var L=[],Z=1;Z<arguments.length;Z++)L[Z-1]=arguments[Z];if(!L.length)return j;var K=L.shift();return K!==void 0&&y(j)&&y(K)?(j=d({},j),Object.keys(K).forEach(function(te){var ye=j[te],pe=K[te];Array.isArray(ye)&&Array.isArray(pe)?j[te]=pe:y(ye)&&y(pe)?j[te]=g(Object.assign({},ye),pe):j[te]=pe}),g.apply(void 0,p([j],L))):j}function b(j,L){var Z=document.createElement("a");Z.download=L,Z.href=j,document.body.appendChild(Z),Z.click(),document.body.removeChild(Z)}var R=function(j,L,Z,K){return new(Z||(Z=Promise))(function(te,ye){function pe(we){try{me(K.next(we))}catch(be){ye(be)}}function ae(we){try{me(K.throw(we))}catch(be){ye(be)}}function me(we){var be;we.done?te(we.value):(be=we.value,be instanceof Z?be:new Z(function(Ne){Ne(be)})).then(pe,ae)}me((K=K.apply(j,L||[])).next())})},A=function(j,L){var Z,K,te,ye,pe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ye={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(ye[Symbol.iterator]=function(){return this}),ye;function ae(me){return function(we){return function(be){if(Z)throw new TypeError("Generator is already executing.");for(;pe;)try{if(Z=1,K&&(te=2&be[0]?K.return:be[0]?K.throw||((te=K.return)&&te.call(K),0):K.next)&&!(te=te.call(K,be[1])).done)return te;switch(K=0,te&&(be=[2&be[0],te.value]),be[0]){case 0:case 1:te=be;break;case 4:return pe.label++,{value:be[1],done:!1};case 5:pe.label++,K=be[1],be=[0];continue;case 7:be=pe.ops.pop(),pe.trys.pop();continue;default:if(!((te=(te=pe.trys).length>0&&te[te.length-1])||be[0]!==6&&be[0]!==2)){pe=0;continue}if(be[0]===3&&(!te||be[1]>te[0]&&be[1]<te[3])){pe.label=be[1];break}if(be[0]===6&&pe.label<te[1]){pe.label=te[1],te=be;break}if(te&&pe.label<te[2]){pe.label=te[2],pe.ops.push(be);break}te[2]&&pe.ops.pop(),pe.trys.pop();continue}be=L.call(j,pe)}catch(Ne){be=[6,Ne],K=0}finally{Z=te=0}if(5&be[0])throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}([me,we])}}};function $(j){return R(this,void 0,void 0,function(){return A(this,function(L){return[2,new Promise(function(Z){var K=new XMLHttpRequest;K.onload=function(){var te=new FileReader;te.onloadend=function(){Z(te.result)},te.readAsDataURL(K.response)},K.open("GET",j),K.responseType="blob",K.send()})]})})}const D={L:.07,M:.15,Q:.25,H:.3};var M=function(){return M=Object.assign||function(j){for(var L,Z=1,K=arguments.length;Z<K;Z++)for(var te in L=arguments[Z])Object.prototype.hasOwnProperty.call(L,te)&&(j[te]=L[te]);return j},M.apply(this,arguments)},J=function(){function j(L){var Z=L.svg,K=L.type;this._svg=Z,this._type=K}return j.prototype.draw=function(L,Z,K,te){var ye;switch(this._type){case"dots":ye=this._drawDot;break;case"classy":ye=this._drawClassy;break;case"classy-rounded":ye=this._drawClassyRounded;break;case"rounded":ye=this._drawRounded;break;case"extra-rounded":ye=this._drawExtraRounded;break;default:ye=this._drawSquare}ye.call(this,{x:L,y:Z,size:K,getNeighbor:te})},j.prototype._rotateFigure=function(L){var Z,K=L.x,te=L.y,ye=L.size,pe=L.rotation,ae=pe===void 0?0:pe,me=K+ye/2,we=te+ye/2;(0,L.draw)(),(Z=this._element)===null||Z===void 0||Z.setAttribute("transform","rotate("+180*ae/Math.PI+","+me+","+we+")")},j.prototype._basicDot=function(L){var Z=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(M(M({},L),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Z._element.setAttribute("cx",String(te+K/2)),Z._element.setAttribute("cy",String(ye+K/2)),Z._element.setAttribute("r",String(K/2))}}))},j.prototype._basicSquare=function(L){var Z=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(M(M({},L),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Z._element.setAttribute("x",String(te)),Z._element.setAttribute("y",String(ye)),Z._element.setAttribute("width",String(K)),Z._element.setAttribute("height",String(K))}}))},j.prototype._basicSideRounded=function(L){var Z=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(M(M({},L),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ye+"v "+K+"h "+K/2+"a "+K/2+" "+K/2+", 0, 0, 0, 0 "+-K)}}))},j.prototype._basicCornerRounded=function(L){var Z=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(M(M({},L),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ye+"v "+K+"h "+K+"v "+-K/2+"a "+K/2+" "+K/2+", 0, 0, 0, "+-K/2+" "+-K/2)}}))},j.prototype._basicCornerExtraRounded=function(L){var Z=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(M(M({},L),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ye+"v "+K+"h "+K+"a "+K+" "+K+", 0, 0, 0, "+-K+" "+-K)}}))},j.prototype._basicCornersRounded=function(L){var Z=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(M(M({},L),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ye+"v "+K/2+"a "+K/2+" "+K/2+", 0, 0, 0, "+K/2+" "+K/2+"h "+K/2+"v "+-K/2+"a "+K/2+" "+K/2+", 0, 0, 0, "+-K/2+" "+-K/2)}}))},j.prototype._drawDot=function(L){var Z=L.x,K=L.y,te=L.size;this._basicDot({x:Z,y:K,size:te,rotation:0})},j.prototype._drawSquare=function(L){var Z=L.x,K=L.y,te=L.size;this._basicSquare({x:Z,y:K,size:te,rotation:0})},j.prototype._drawRounded=function(L){var Z=L.x,K=L.y,te=L.size,ye=L.getNeighbor,pe=ye?+ye(-1,0):0,ae=ye?+ye(1,0):0,me=ye?+ye(0,-1):0,we=ye?+ye(0,1):0,be=pe+ae+me+we;if(be!==0)if(be>2||pe&&ae||me&&we)this._basicSquare({x:Z,y:K,size:te,rotation:0});else{if(be===2){var Ne=0;return pe&&me?Ne=Math.PI/2:me&&ae?Ne=Math.PI:ae&&we&&(Ne=-Math.PI/2),void this._basicCornerRounded({x:Z,y:K,size:te,rotation:Ne})}if(be===1)return Ne=0,me?Ne=Math.PI/2:ae?Ne=Math.PI:we&&(Ne=-Math.PI/2),void this._basicSideRounded({x:Z,y:K,size:te,rotation:Ne})}else this._basicDot({x:Z,y:K,size:te,rotation:0})},j.prototype._drawExtraRounded=function(L){var Z=L.x,K=L.y,te=L.size,ye=L.getNeighbor,pe=ye?+ye(-1,0):0,ae=ye?+ye(1,0):0,me=ye?+ye(0,-1):0,we=ye?+ye(0,1):0,be=pe+ae+me+we;if(be!==0)if(be>2||pe&&ae||me&&we)this._basicSquare({x:Z,y:K,size:te,rotation:0});else{if(be===2){var Ne=0;return pe&&me?Ne=Math.PI/2:me&&ae?Ne=Math.PI:ae&&we&&(Ne=-Math.PI/2),void this._basicCornerExtraRounded({x:Z,y:K,size:te,rotation:Ne})}if(be===1)return Ne=0,me?Ne=Math.PI/2:ae?Ne=Math.PI:we&&(Ne=-Math.PI/2),void this._basicSideRounded({x:Z,y:K,size:te,rotation:Ne})}else this._basicDot({x:Z,y:K,size:te,rotation:0})},j.prototype._drawClassy=function(L){var Z=L.x,K=L.y,te=L.size,ye=L.getNeighbor,pe=ye?+ye(-1,0):0,ae=ye?+ye(1,0):0,me=ye?+ye(0,-1):0,we=ye?+ye(0,1):0;pe+ae+me+we!==0?pe||me?ae||we?this._basicSquare({x:Z,y:K,size:te,rotation:0}):this._basicCornerRounded({x:Z,y:K,size:te,rotation:Math.PI/2}):this._basicCornerRounded({x:Z,y:K,size:te,rotation:-Math.PI/2}):this._basicCornersRounded({x:Z,y:K,size:te,rotation:Math.PI/2})},j.prototype._drawClassyRounded=function(L){var Z=L.x,K=L.y,te=L.size,ye=L.getNeighbor,pe=ye?+ye(-1,0):0,ae=ye?+ye(1,0):0,me=ye?+ye(0,-1):0,we=ye?+ye(0,1):0;pe+ae+me+we!==0?pe||me?ae||we?this._basicSquare({x:Z,y:K,size:te,rotation:0}):this._basicCornerExtraRounded({x:Z,y:K,size:te,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:Z,y:K,size:te,rotation:-Math.PI/2}):this._basicCornersRounded({x:Z,y:K,size:te,rotation:Math.PI/2})},j}();const U=J;var V=function(){return V=Object.assign||function(j){for(var L,Z=1,K=arguments.length;Z<K;Z++)for(var te in L=arguments[Z])Object.prototype.hasOwnProperty.call(L,te)&&(j[te]=L[te]);return j},V.apply(this,arguments)},X=function(){function j(L){var Z=L.svg,K=L.type;this._svg=Z,this._type=K}return j.prototype.draw=function(L,Z,K,te){var ye;switch(this._type){case"square":ye=this._drawSquare;break;case"extra-rounded":ye=this._drawExtraRounded;break;default:ye=this._drawDot}ye.call(this,{x:L,y:Z,size:K,rotation:te})},j.prototype._rotateFigure=function(L){var Z,K=L.x,te=L.y,ye=L.size,pe=L.rotation,ae=pe===void 0?0:pe,me=K+ye/2,we=te+ye/2;(0,L.draw)(),(Z=this._element)===null||Z===void 0||Z.setAttribute("transform","rotate("+180*ae/Math.PI+","+me+","+we+")")},j.prototype._basicDot=function(L){var Z=this,K=L.size,te=L.x,ye=L.y,pe=K/7;this._rotateFigure(V(V({},L),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("clip-rule","evenodd"),Z._element.setAttribute("d","M "+(te+K/2)+" "+ye+"a "+K/2+" "+K/2+" 0 1 0 0.1 0zm 0 "+pe+"a "+(K/2-pe)+" "+(K/2-pe)+" 0 1 1 -0.1 0Z")}}))},j.prototype._basicSquare=function(L){var Z=this,K=L.size,te=L.x,ye=L.y,pe=K/7;this._rotateFigure(V(V({},L),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("clip-rule","evenodd"),Z._element.setAttribute("d","M "+te+" "+ye+"v "+K+"h "+K+"v "+-K+"zM "+(te+pe)+" "+(ye+pe)+"h "+(K-2*pe)+"v "+(K-2*pe)+"h "+(2*pe-K)+"z")}}))},j.prototype._basicExtraRounded=function(L){var Z=this,K=L.size,te=L.x,ye=L.y,pe=K/7;this._rotateFigure(V(V({},L),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("clip-rule","evenodd"),Z._element.setAttribute("d","M "+te+" "+(ye+2.5*pe)+"v "+2*pe+"a "+2.5*pe+" "+2.5*pe+", 0, 0, 0, "+2.5*pe+" "+2.5*pe+"h "+2*pe+"a "+2.5*pe+" "+2.5*pe+", 0, 0, 0, "+2.5*pe+" "+2.5*-pe+"v "+-2*pe+"a "+2.5*pe+" "+2.5*pe+", 0, 0, 0, "+2.5*-pe+" "+2.5*-pe+"h "+-2*pe+"a "+2.5*pe+" "+2.5*pe+", 0, 0, 0, "+2.5*-pe+" "+2.5*pe+"M "+(te+2.5*pe)+" "+(ye+pe)+"h "+2*pe+"a "+1.5*pe+" "+1.5*pe+", 0, 0, 1, "+1.5*pe+" "+1.5*pe+"v "+2*pe+"a "+1.5*pe+" "+1.5*pe+", 0, 0, 1, "+1.5*-pe+" "+1.5*pe+"h "+-2*pe+"a "+1.5*pe+" "+1.5*pe+", 0, 0, 1, "+1.5*-pe+" "+1.5*-pe+"v "+-2*pe+"a "+1.5*pe+" "+1.5*pe+", 0, 0, 1, "+1.5*pe+" "+1.5*-pe)}}))},j.prototype._drawDot=function(L){var Z=L.x,K=L.y,te=L.size,ye=L.rotation;this._basicDot({x:Z,y:K,size:te,rotation:ye})},j.prototype._drawSquare=function(L){var Z=L.x,K=L.y,te=L.size,ye=L.rotation;this._basicSquare({x:Z,y:K,size:te,rotation:ye})},j.prototype._drawExtraRounded=function(L){var Z=L.x,K=L.y,te=L.size,ye=L.rotation;this._basicExtraRounded({x:Z,y:K,size:te,rotation:ye})},j}();const re=X;var le=function(){return le=Object.assign||function(j){for(var L,Z=1,K=arguments.length;Z<K;Z++)for(var te in L=arguments[Z])Object.prototype.hasOwnProperty.call(L,te)&&(j[te]=L[te]);return j},le.apply(this,arguments)},Q=function(){function j(L){var Z=L.svg,K=L.type;this._svg=Z,this._type=K}return j.prototype.draw=function(L,Z,K,te){(this._type==="square"?this._drawSquare:this._drawDot).call(this,{x:L,y:Z,size:K,rotation:te})},j.prototype._rotateFigure=function(L){var Z,K=L.x,te=L.y,ye=L.size,pe=L.rotation,ae=pe===void 0?0:pe,me=K+ye/2,we=te+ye/2;(0,L.draw)(),(Z=this._element)===null||Z===void 0||Z.setAttribute("transform","rotate("+180*ae/Math.PI+","+me+","+we+")")},j.prototype._basicDot=function(L){var Z=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(le(le({},L),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Z._element.setAttribute("cx",String(te+K/2)),Z._element.setAttribute("cy",String(ye+K/2)),Z._element.setAttribute("r",String(K/2))}}))},j.prototype._basicSquare=function(L){var Z=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(le(le({},L),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Z._element.setAttribute("x",String(te)),Z._element.setAttribute("y",String(ye)),Z._element.setAttribute("width",String(K)),Z._element.setAttribute("height",String(K))}}))},j.prototype._drawDot=function(L){var Z=L.x,K=L.y,te=L.size,ye=L.rotation;this._basicDot({x:Z,y:K,size:te,rotation:ye})},j.prototype._drawSquare=function(L){var Z=L.x,K=L.y,te=L.size,ye=L.rotation;this._basicSquare({x:Z,y:K,size:te,rotation:ye})},j}();const P=Q,T="circle";var u=function(j,L,Z,K){return new(Z||(Z=Promise))(function(te,ye){function pe(we){try{me(K.next(we))}catch(be){ye(be)}}function ae(we){try{me(K.throw(we))}catch(be){ye(be)}}function me(we){var be;we.done?te(we.value):(be=we.value,be instanceof Z?be:new Z(function(Ne){Ne(be)})).then(pe,ae)}me((K=K.apply(j,L||[])).next())})},h=function(j,L){var Z,K,te,ye,pe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ye={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(ye[Symbol.iterator]=function(){return this}),ye;function ae(me){return function(we){return function(be){if(Z)throw new TypeError("Generator is already executing.");for(;pe;)try{if(Z=1,K&&(te=2&be[0]?K.return:be[0]?K.throw||((te=K.return)&&te.call(K),0):K.next)&&!(te=te.call(K,be[1])).done)return te;switch(K=0,te&&(be=[2&be[0],te.value]),be[0]){case 0:case 1:te=be;break;case 4:return pe.label++,{value:be[1],done:!1};case 5:pe.label++,K=be[1],be=[0];continue;case 7:be=pe.ops.pop(),pe.trys.pop();continue;default:if(!((te=(te=pe.trys).length>0&&te[te.length-1])||be[0]!==6&&be[0]!==2)){pe=0;continue}if(be[0]===3&&(!te||be[1]>te[0]&&be[1]<te[3])){pe.label=be[1];break}if(be[0]===6&&pe.label<te[1]){pe.label=te[1],te=be;break}if(te&&pe.label<te[2]){pe.label=te[2],pe.ops.push(be);break}te[2]&&pe.ops.pop(),pe.trys.pop();continue}be=L.call(j,pe)}catch(Ne){be=[6,Ne],K=0}finally{Z=te=0}if(5&be[0])throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}([me,we])}}},E=[[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]],S=[[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 C=function(){function j(L){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(L.width)),this._element.setAttribute("height",String(L.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._instanceId=j.instanceCount++,this._options=L}return Object.defineProperty(j.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),j.prototype.getElement=function(){return this._element},j.prototype.drawQR=function(L){return u(this,void 0,void 0,function(){var Z,K,te,ye,pe,ae,me,we,be,Ne,Je=this;return h(this,function(Be){switch(Be.label){case 0:return Z=L.getModuleCount(),K=Math.min(this._options.width,this._options.height)-2*this._options.margin,te=this._options.shape===T?K/Math.sqrt(2):K,ye=te/Z,pe={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=L,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Be.sent(),!this._image)return[2];ae=this._options,me=ae.imageOptions,we=ae.qrOptions,be=me.imageSize*D[we.errorCorrectionLevel],Ne=Math.floor(be*Z*Z),pe=function(ke){var Ce=ke.originalHeight,Oe=ke.originalWidth,Ke=ke.maxHiddenDots,Me=ke.maxHiddenAxisDots,G=ke.dotSize,B={x:0,y:0},F={x:0,y:0};if(Ce<=0||Oe<=0||Ke<=0||G<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var se=Ce/Oe;return B.x=Math.floor(Math.sqrt(Ke/se)),B.x<=0&&(B.x=1),Me&&Me<B.x&&(B.x=Me),B.x%2==0&&B.x--,F.x=B.x*G,B.y=1+2*Math.ceil((B.x*se-1)/2),F.y=Math.round(F.x*se),(B.y*B.x>Ke||Me&&Me<B.y)&&(Me&&Me<B.y?(B.y=Me,B.y%2==0&&B.x--):B.y-=2,F.y=B.y*G,B.x=1+2*Math.ceil((B.y/se-1)/2),F.x=Math.round(F.y/se)),{height:F.y,width:F.x,hideYDots:B.y,hideXDots:B.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Ne,maxHiddenAxisDots:Z-14,dotSize:ye}),Be.label=2;case 2:return this.drawBackground(),this.drawDots(function(ke,Ce){var Oe,Ke,Me,G,B,F;return!(Je._options.imageOptions.hideBackgroundDots&&ke>=(Z-pe.hideXDots)/2&&ke<(Z+pe.hideXDots)/2&&Ce>=(Z-pe.hideYDots)/2&&Ce<(Z+pe.hideYDots)/2||!((Oe=E[ke])===null||Oe===void 0)&&Oe[Ce]||!((Ke=E[ke-Z+7])===null||Ke===void 0)&&Ke[Ce]||!((Me=E[ke])===null||Me===void 0)&&Me[Ce-Z+7]||!((G=S[ke])===null||G===void 0)&&G[Ce]||!((B=S[ke-Z+7])===null||B===void 0)&&B[Ce]||!((F=S[ke])===null||F===void 0)&&F[Ce-Z+7])}),this.drawCorners(),this._options.image?[4,this.drawImage({width:pe.width,height:pe.height,count:Z,dotSize:ye})]:[3,4];case 3:Be.sent(),Be.label=4;case 4:return[2]}})})},j.prototype.drawBackground=function(){var L,Z,K,te=this._element,ye=this._options;if(te){var pe=(L=ye.backgroundOptions)===null||L===void 0?void 0:L.gradient,ae=(Z=ye.backgroundOptions)===null||Z===void 0?void 0:Z.color;if((pe||ae)&&this._createColor({options:pe,color:ae,additionalRotation:0,x:0,y:0,height:ye.height,width:ye.width,name:"background-color"}),(K=ye.backgroundOptions)===null||K===void 0?void 0:K.round){var me=Math.min(ye.width,ye.height),we=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),we.setAttribute("x",String((ye.width-me)/2)),we.setAttribute("y",String((ye.height-me)/2)),we.setAttribute("width",String(me)),we.setAttribute("height",String(me)),we.setAttribute("rx",String(me/2*ye.backgroundOptions.round)),this._backgroundClipPath.appendChild(we)}}},j.prototype.drawDots=function(L){var Z,K,te=this;if(!this._qr)throw"QR code is not defined";var ye=this._options,pe=this._qr.getModuleCount();if(pe>ye.width||pe>ye.height)throw"The canvas is too small.";var ae=Math.min(ye.width,ye.height)-2*ye.margin,me=(ye.shape===T?ae/Math.sqrt(2):ae)/pe,we=(ye.width-pe*me)/2,be=(ye.height-pe*me)/2,Ne=new U({svg:this._element,type:ye.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:(Z=ye.dotsOptions)===null||Z===void 0?void 0:Z.gradient,color:ye.dotsOptions.color,additionalRotation:0,x:0,y:0,height:ye.height,width:ye.width,name:"dot-color-"+this._instanceId});for(var Je=function(Ae){for(var _e=function(Ue){return L&&!L(Ae,Ue)?"continue":!((K=Be._qr)===null||K===void 0)&&K.isDark(Ae,Ue)?(Ne.draw(we+Ae*me,be+Ue*me,me,function(je,ft){return!(Ae+je<0||Ue+ft<0||Ae+je>=pe||Ue+ft>=pe)&&!(L&&!L(Ae+je,Ue+ft))&&!!te._qr&&te._qr.isDark(Ae+je,Ue+ft)}),void(Ne._element&&Be._dotsClipPath&&Be._dotsClipPath.appendChild(Ne._element))):"continue"},We=0;We<pe;We++)_e(We)},Be=this,ke=0;ke<pe;ke++)Je(ke);if(ye.shape===T){var Ce=Math.floor((ae/me-pe)/2),Oe=pe+2*Ce,Ke=we-Ce*me,Me=be-Ce*me,G=[],B=Math.floor(Oe/2);for(ke=0;ke<Oe;ke++){G[ke]=[];for(var F=0;F<Oe;F++)ke>=Ce-1&&ke<=Oe-Ce&&F>=Ce-1&&F<=Oe-Ce||Math.sqrt((ke-B)*(ke-B)+(F-B)*(F-B))>B?G[ke][F]=0:G[ke][F]=this._qr.isDark(F-2*Ce<0?F:F>=pe?F-2*Ce:F-Ce,ke-2*Ce<0?ke:ke>=pe?ke-2*Ce:ke-Ce)?1:0}var se=function(Ae){for(var _e=function(Ue){if(!G[Ae][Ue])return"continue";Ne.draw(Ke+Ae*me,Me+Ue*me,me,function(je,ft){var Ze;return!!(!((Ze=G[Ae+je])===null||Ze===void 0)&&Ze[Ue+ft])}),Ne._element&&Ee._dotsClipPath&&Ee._dotsClipPath.appendChild(Ne._element)},We=0;We<Oe;We++)_e(We)},Ee=this;for(ke=0;ke<Oe;ke++)se(ke)}},j.prototype.drawCorners=function(){var L=this;if(!this._qr)throw"QR code is not defined";var Z=this._element,K=this._options;if(!Z)throw"Element code is not defined";var te=this._qr.getModuleCount(),ye=Math.min(K.width,K.height)-2*K.margin,pe=(K.shape===T?ye/Math.sqrt(2):ye)/te,ae=7*pe,me=3*pe,we=(K.width-te*pe)/2,be=(K.height-te*pe)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(Ne){var Je,Be,ke,Ce,Oe,Ke,Me,G,B,F,se,Ee,Ae=Ne[0],_e=Ne[1],We=Ne[2],Ue=we+Ae*pe*(te-7),je=be+_e*pe*(te-7),ft=L._dotsClipPath,Ze=L._dotsClipPath;if((!((Je=K.cornersSquareOptions)===null||Je===void 0)&&Je.gradient||!((Be=K.cornersSquareOptions)===null||Be===void 0)&&Be.color)&&((ft=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Ae+"-"+_e),L._defs.appendChild(ft),L._cornersSquareClipPath=L._cornersDotClipPath=Ze=ft,L._createColor({options:(ke=K.cornersSquareOptions)===null||ke===void 0?void 0:ke.gradient,color:(Ce=K.cornersSquareOptions)===null||Ce===void 0?void 0:Ce.color,additionalRotation:We,x:Ue,y:je,height:ae,width:ae,name:"corners-square-color-"+Ae+"-"+_e})),(Oe=K.cornersSquareOptions)===null||Oe===void 0?void 0:Oe.type){var rt=new re({svg:L._element,type:K.cornersSquareOptions.type});rt.draw(Ue,je,ae,We),rt._element&&ft&&ft.appendChild(rt._element)}else for(var Pt=new U({svg:L._element,type:K.dotsOptions.type}),mt=function(st){for(var tn=function(nt){if(!(!((Ke=E[st])===null||Ke===void 0)&&Ke[nt]))return"continue";Pt.draw(Ue+st*pe,je+nt*pe,pe,function(an,ee){var oe;return!!(!((oe=E[st+an])===null||oe===void 0)&&oe[nt+ee])}),Pt._element&&ft&&ft.appendChild(Pt._element)},At=0;At<E[st].length;At++)tn(At)},ot=0;ot<E.length;ot++)mt(ot);if((!((Me=K.cornersDotOptions)===null||Me===void 0)&&Me.gradient||!((G=K.cornersDotOptions)===null||G===void 0)&&G.color)&&((Ze=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Ae+"-"+_e),L._defs.appendChild(Ze),L._cornersDotClipPath=Ze,L._createColor({options:(B=K.cornersDotOptions)===null||B===void 0?void 0:B.gradient,color:(F=K.cornersDotOptions)===null||F===void 0?void 0:F.color,additionalRotation:We,x:Ue+2*pe,y:je+2*pe,height:me,width:me,name:"corners-dot-color-"+Ae+"-"+_e})),(se=K.cornersDotOptions)===null||se===void 0?void 0:se.type){var Kt=new P({svg:L._element,type:K.cornersDotOptions.type});Kt.draw(Ue+2*pe,je+2*pe,me,We),Kt._element&&Ze&&Ze.appendChild(Kt._element)}else{Pt=new U({svg:L._element,type:K.dotsOptions.type});var St=function(st){for(var tn=function(nt){if(!(!((Ee=S[st])===null||Ee===void 0)&&Ee[nt]))return"continue";Pt.draw(Ue+st*pe,je+nt*pe,pe,function(an,ee){var oe;return!!(!((oe=S[st+an])===null||oe===void 0)&&oe[nt+ee])}),Pt._element&&Ze&&Ze.appendChild(Pt._element)},At=0;At<S[st].length;At++)tn(At)};for(ot=0;ot<S.length;ot++)St(ot)}})},j.prototype.loadImage=function(){var L=this;return new Promise(function(Z,K){var te=L._options,ye=new Image;if(!te.image)return K("Image is not defined");typeof te.imageOptions.crossOrigin=="string"&&(ye.crossOrigin=te.imageOptions.crossOrigin),L._image=ye,ye.onload=function(){Z()},ye.src=te.image})},j.prototype.drawImage=function(L){var Z=L.width,K=L.height,te=L.count,ye=L.dotSize;return u(this,void 0,void 0,function(){var pe,ae,me,we,be,Ne,Je,Be,ke;return h(this,function(Ce){switch(Ce.label){case 0:return pe=this._options,ae=(pe.width-te*ye)/2,me=(pe.height-te*ye)/2,we=ae+pe.imageOptions.margin+(te*ye-Z)/2,be=me+pe.imageOptions.margin+(te*ye-K)/2,Ne=Z-2*pe.imageOptions.margin,Je=K-2*pe.imageOptions.margin,(Be=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(we)),Be.setAttribute("y",String(be)),Be.setAttribute("width",Ne+"px"),Be.setAttribute("height",Je+"px"),[4,$(pe.image||"")];case 1:return ke=Ce.sent(),Be.setAttribute("href",ke||""),this._element.appendChild(Be),[2]}})})},j.prototype._createColor=function(L){var Z=L.options,K=L.color,te=L.additionalRotation,ye=L.x,pe=L.y,ae=L.height,me=L.width,we=L.name,be=me>ae?me:ae,Ne=document.createElementNS("http://www.w3.org/2000/svg","rect");if(Ne.setAttribute("x",String(ye)),Ne.setAttribute("y",String(pe)),Ne.setAttribute("height",String(ae)),Ne.setAttribute("width",String(me)),Ne.setAttribute("clip-path","url('#clip-path-"+we+"')"),Z){var Je;if(Z.type==="radial")(Je=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",we),Je.setAttribute("gradientUnits","userSpaceOnUse"),Je.setAttribute("fx",String(ye+me/2)),Je.setAttribute("fy",String(pe+ae/2)),Je.setAttribute("cx",String(ye+me/2)),Je.setAttribute("cy",String(pe+ae/2)),Je.setAttribute("r",String(be/2));else{var Be=((Z.rotation||0)+te)%(2*Math.PI),ke=(Be+2*Math.PI)%(2*Math.PI),Ce=ye+me/2,Oe=pe+ae/2,Ke=ye+me/2,Me=pe+ae/2;ke>=0&&ke<=.25*Math.PI||ke>1.75*Math.PI&&ke<=2*Math.PI?(Ce-=me/2,Oe-=ae/2*Math.tan(Be),Ke+=me/2,Me+=ae/2*Math.tan(Be)):ke>.25*Math.PI&&ke<=.75*Math.PI?(Oe-=ae/2,Ce-=me/2/Math.tan(Be),Me+=ae/2,Ke+=me/2/Math.tan(Be)):ke>.75*Math.PI&&ke<=1.25*Math.PI?(Ce+=me/2,Oe+=ae/2*Math.tan(Be),Ke-=me/2,Me-=ae/2*Math.tan(Be)):ke>1.25*Math.PI&&ke<=1.75*Math.PI&&(Oe+=ae/2,Ce+=me/2/Math.tan(Be),Me-=ae/2,Ke-=me/2/Math.tan(Be)),(Je=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",we),Je.setAttribute("gradientUnits","userSpaceOnUse"),Je.setAttribute("x1",String(Math.round(Ce))),Je.setAttribute("y1",String(Math.round(Oe))),Je.setAttribute("x2",String(Math.round(Ke))),Je.setAttribute("y2",String(Math.round(Me)))}Z.colorStops.forEach(function(G){var B=G.offset,F=G.color,se=document.createElementNS("http://www.w3.org/2000/svg","stop");se.setAttribute("offset",100*B+"%"),se.setAttribute("stop-color",F),Je.appendChild(se)}),Ne.setAttribute("fill","url('#"+we+"')"),this._defs.appendChild(Je)}else K&&Ne.setAttribute("fill",K);this._element.appendChild(Ne)},j.instanceCount=0,j}(),I="canvas";for(var _={},x=0;x<=40;x++)_[x]=x;const v={type:I,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:_[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 k=function(){return k=Object.assign||function(j){for(var L,Z=1,K=arguments.length;Z<K;Z++)for(var te in L=arguments[Z])Object.prototype.hasOwnProperty.call(L,te)&&(j[te]=L[te]);return j},k.apply(this,arguments)};function ne(j){var L=k({},j);if(!L.colorStops||!L.colorStops.length)throw"Field 'colorStops' is required in gradient";return L.rotation?L.rotation=Number(L.rotation):L.rotation=0,L.colorStops=L.colorStops.map(function(Z){return k(k({},Z),{offset:Number(Z.offset)})}),L}function N(j){var L=k({},j);return L.width=Number(L.width),L.height=Number(L.height),L.margin=Number(L.margin),L.imageOptions=k(k({},L.imageOptions),{hideBackgroundDots:!!L.imageOptions.hideBackgroundDots,imageSize:Number(L.imageOptions.imageSize),margin:Number(L.imageOptions.margin)}),L.margin>Math.min(L.width,L.height)&&(L.margin=Math.min(L.width,L.height)),L.dotsOptions=k({},L.dotsOptions),L.dotsOptions.gradient&&(L.dotsOptions.gradient=ne(L.dotsOptions.gradient)),L.cornersSquareOptions&&(L.cornersSquareOptions=k({},L.cornersSquareOptions),L.cornersSquareOptions.gradient&&(L.cornersSquareOptions.gradient=ne(L.cornersSquareOptions.gradient))),L.cornersDotOptions&&(L.cornersDotOptions=k({},L.cornersDotOptions),L.cornersDotOptions.gradient&&(L.cornersDotOptions.gradient=ne(L.cornersDotOptions.gradient))),L.backgroundOptions&&(L.backgroundOptions=k({},L.backgroundOptions),L.backgroundOptions.gradient&&(L.backgroundOptions.gradient=ne(L.backgroundOptions.gradient))),L}var q=s(192),ie=s.n(q),ue=function(j,L,Z,K){return new(Z||(Z=Promise))(function(te,ye){function pe(we){try{me(K.next(we))}catch(be){ye(be)}}function ae(we){try{me(K.throw(we))}catch(be){ye(be)}}function me(we){var be;we.done?te(we.value):(be=we.value,be instanceof Z?be:new Z(function(Ne){Ne(be)})).then(pe,ae)}me((K=K.apply(j,L||[])).next())})},he=function(j,L){var Z,K,te,ye,pe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ye={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(ye[Symbol.iterator]=function(){return this}),ye;function ae(me){return function(we){return function(be){if(Z)throw new TypeError("Generator is already executing.");for(;pe;)try{if(Z=1,K&&(te=2&be[0]?K.return:be[0]?K.throw||((te=K.return)&&te.call(K),0):K.next)&&!(te=te.call(K,be[1])).done)return te;switch(K=0,te&&(be=[2&be[0],te.value]),be[0]){case 0:case 1:te=be;break;case 4:return pe.label++,{value:be[1],done:!1};case 5:pe.label++,K=be[1],be=[0];continue;case 7:be=pe.ops.pop(),pe.trys.pop();continue;default:if(!((te=(te=pe.trys).length>0&&te[te.length-1])||be[0]!==6&&be[0]!==2)){pe=0;continue}if(be[0]===3&&(!te||be[1]>te[0]&&be[1]<te[3])){pe.label=be[1];break}if(be[0]===6&&pe.label<te[1]){pe.label=te[1],te=be;break}if(te&&pe.label<te[2]){pe.label=te[2],pe.ops.push(be);break}te[2]&&pe.ops.pop(),pe.trys.pop();continue}be=L.call(j,pe)}catch(Ne){be=[6,Ne],K=0}finally{Z=te=0}if(5&be[0])throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}([me,we])}}};const Se=function(){function j(L){this._options=L?N(g(v,L)):v,this.update()}return j._clearContainer=function(L){L&&(L.innerHTML="")},j.prototype._setupSvg=function(){var L=this;if(this._qr){var Z=new C(this._options);this._svg=Z.getElement(),this._svgDrawingPromise=Z.drawQR(this._qr).then(function(){var K;L._svg&&((K=L._extension)===null||K===void 0||K.call(L,Z.getElement(),L._options))})}},j.prototype._setupCanvas=function(){var L,Z=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=(L=this._svgDrawingPromise)===null||L===void 0?void 0:L.then(function(){if(Z._svg){var K=Z._svg,te=new XMLSerializer().serializeToString(K),ye="data:image/svg+xml;base64,"+btoa(te),pe=new Image;return new Promise(function(ae){pe.onload=function(){var me,we;(we=(me=Z._canvas)===null||me===void 0?void 0:me.getContext("2d"))===null||we===void 0||we.drawImage(pe,0,0),ae()},pe.src=ye})}}))},j.prototype._getElement=function(L){return L===void 0&&(L="png"),ue(this,void 0,void 0,function(){return he(this,function(Z){switch(Z.label){case 0:if(!this._qr)throw"QR code is empty";return L.toLowerCase()!=="svg"?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return Z.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return Z.sent(),[2,this._canvas]}})})},j.prototype.update=function(L){j._clearContainer(this._container),this._options=L?N(g(this._options,L)):this._options,this._options.data&&(this._qr=ie()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(Z){switch(!0){case/^[0-9]*$/.test(Z):return l;case/^[0-9A-Z $%*+\-./:]*$/.test(Z):return f;default:return c}}(this._options.data)),this._qr.make(),this._options.type===I?this._setupCanvas():this._setupSvg(),this.append(this._container))},j.prototype.append=function(L){if(L){if(typeof L.appendChild!="function")throw"Container should be a single DOM node";this._options.type===I?this._canvas&&L.appendChild(this._canvas):this._svg&&L.appendChild(this._svg),this._container=L}},j.prototype.applyExtension=function(L){if(!L)throw"Extension function should be defined.";this._extension=L,this.update()},j.prototype.deleteExtension=function(){this._extension=void 0,this.update()},j.prototype.getRawData=function(L){return L===void 0&&(L="png"),ue(this,void 0,void 0,function(){var Z,K,te;return he(this,function(ye){switch(ye.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(L)];case 1:return(Z=ye.sent())?L.toLowerCase()==="svg"?(K=new XMLSerializer,te=K.serializeToString(Z),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
|
|
514
514
|
`+te],{type:"image/svg+xml"})]):[2,new Promise(function(pe){return Z.toBlob(pe,"image/"+L,1)})]:[2,null]}})})},j.prototype.download=function(L){return ue(this,void 0,void 0,function(){var Z,K,te,ye,pe;return he(this,function(ae){switch(ae.label){case 0:if(!this._qr)throw"QR code is empty";return Z="png",K="qr",typeof L=="string"?(Z=L,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof L=="object"&&L!==null&&(L.name&&(K=L.name),L.extension&&(Z=L.extension)),[4,this._getElement(Z)];case 1:return(te=ae.sent())?(Z.toLowerCase()==="svg"?(ye=new XMLSerializer,pe=`<?xml version="1.0" standalone="no"?>\r
|
|
515
515
|
`+(pe=ye.serializeToString(te)),b("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(pe),K+".svg")):b(te.toDataURL("image/"+Z),K+"."+Z),[2]):[2]}})})},j}()}},r={};function i(a){if(r[a])return r[a].exports;var o=r[a]={exports:{}};return n[a](o,o.exports,i),o.exports}return i.n=a=>{var o=a&&a.__esModule?()=>a.default:()=>a;return i.d(o,{a:o}),o},i.d=(a,o)=>{for(var s in o)i.o(o,s)&&!i.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:o[s]})},i.o=(a,o)=>Object.prototype.hasOwnProperty.call(a,o),i(676)})().default})})($X);var jGe=$X.exports;const JGe=Ut(jGe),VGe={margin:0,dotsOptions:{type:"dots"},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}};function kR({data:e,size:t,image:n,config:r,...i}){const a=z.useRef(null),o=z.useMemo(()=>({...VGe,data:e,width:t,height:t,...n&&{image:n,imageOptions:{crossOrigin:"anonymous",margin:0}},...r}),[e,t,n,r]),[s]=z.useState(new JGe(o));return z.useEffect(()=>{a.current&&s.append(a.current)},[s,a]),z.useEffect(()=>{s&&s.update(o)},[e,t,n,r]),W.jsx(yt,{ref:a,...i})}kR.propTypes={data:ge.string.isRequired,size:ge.number.isRequired,image:ge.string,config:ge.object};kR.defaultProps={image:null,config:{}};function DR({tokenState:e,locale:t,messages:n}){const{t:r,matchSmallScreen:i}=Wl(),a="DID Wallet",o=(n==null?void 0:n.scan)||r("scanWithWallet"),s=r("download"),l=r("downloadTips"),f=160,c=en(()=>["zh","en"].includes?`https://www.didwallet.io/${t}`:"https://www.didwallet.io/en",[t]),d=en(()=>W.jsxs(W.Fragment,{children:[l," ",W.jsx(yt,{component:"a",href:c,target:"_blank",rel:"noreferrer",sx:{color:Rt.foregroundsFgInteractive,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:s})]}),[c,s,l]);return W.jsxs(Zu,{sx:{display:"flex",gap:1,justifyContent:"space-between",alignItems:i?"center":"stretch",flexDirection:i?"column":"row"},children:[W.jsx(yt,{sx:{display:i?"none":"block"},children:W.jsx(Ip,{width:"24px",height:"24px"})}),W.jsxs(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",flex:1,wordBreak:"break-word",width:i?186:"auto"},children:[W.jsxs(Br,{sx:{fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:1},children:[i?W.jsx(Ip,{width:"24px",height:"24px"}):null,a]}),W.jsx(Br,{sx:{flex:1,color:Rt.foregroundsFgMuted,fontSize:"12px"},children:o}),W.jsx(yt,{sx:{color:Rt.foregroundsFgMuted,fontSize:"12px",display:i?"none":"block"},children:d})]}),W.jsx(kR,{data:e.url,size:f,sx:{p:1.5,borderRadius:2,border:`1px solid ${Rt.strokeBorderBase}`,backgroundColor:"white",fontSize:0}}),W.jsx(yt,{sx:{color:Rt.textMuted,fontSize:"12px",display:i?"block":"none"},children:d})]})}DR.propTypes={tokenState:ge.object.isRequired,locale:ge.string,messages:ge.object};DR.defaultProps={locale:"en",messages:{}};const IX={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"/>'},kX={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"/>'},DX={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"/>'},OX={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"/>'},OR={width:256,height:285,body:'<path d="M220.412 0h-92.415l28.562 89.006h92.416l-74.77 53.077l28.57 89.511c48.128-35.06 63.854-88.12 46.208-142.588L220.413 0ZM7.018 89.006h92.416L127.997 0H35.589L7.019 89.006c-17.655 54.468-1.92 107.529 46.207 142.588l28.563-89.51l-74.77-53.078Zm46.208 142.588l74.77 52.97l74.77-52.97l-74.77-53.847l-74.77 53.847Z"/>'};function LX({icon:e,...t}){return W.jsx(zu,{...t,sx:{backgroundColor:"white",border:`1px solid ${Rt.borderBase}`,...t==null?void 0:t.sx},children:W.jsx(Zn,{icon:e})})}LX.propTypes={icon:ge.any.isRequired};function PX({providerList:e,onLogin:t}){return W.jsxs(Zu,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[W.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[W.jsx(Zn,{icon:IX,fontSize:"1.3rem"}),W.jsx(Br,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Others"})]}),W.jsx(yt,{sx:{display:"flex",gap:2},children:e.map(r=>{const i={auth0:OR,apple:kX,github:DX,google:OX};return W.jsx(LX,{icon:i[r.provider],onClick:()=>t(r)},r.provider)})})]})}PX.propTypes={onLogin:ge.func.isRequired,providerList:ge.array.isRequired};function MX({title:e,icon:t,...n}){return W.jsxs(Zu,{...n,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:Rt.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"},...n==null?void 0:n.sx},children:[W.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[W.jsx(Zn,{icon:t,fontSize:"1.5rem",style:{transform:"scale(0.95)"}}),W.jsx(Br,{sx:{fontSize:"16px",fontWeight:"bold"},children:e})]}),W.jsx(Zn,{className:"other-item-icon",icon:GE,fontSize:"1.3rem",color:Rt.primaryBase})]})}MX.propTypes={title:ge.string.isRequired,icon:ge.string.isRequired};function BX({providerList:e,onLogin:t}){return W.jsx(yt,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:e.map(n=>{const r={auth0:OR,apple:kX,github:DX,google:OX},i={auth0:"Auth0",apple:"Apple",github:"Github",google:"Google"};return W.jsx(MX,{title:i[n.provider],icon:r[n.provider],onClick:()=>{t(n)}},n.provider)})})}BX.propTypes={onLogin:ge.func.isRequired,providerList:ge.array.isRequired};function f2({providerList:e,type:t,onSuccess:n,onError:r,tokenState:i}){const{extraParams:a,changeStatus:o}=Wl(),{loginOAuth:s,logoutOAuth:l,translation:f,oauthState:c}=mR(),d=Ct(async p=>{try{c.loading=!0,c.status="scanned";const y=await s(p,{action:i.action,...a}),g=tf({returnDomain:!1});Mr.remove("connected_did",g),Mr.remove("connected_pk",g),Mr.remove("connected_wallet_os",g),Mr.set("connected_app",nR(i.appInfo,i.memberAppInfo),g),y!=null&&y.sessionToken&&(c.loading=!1,c.status="succeed",await l({provider:p.provider}),n({...y,encrypted:!1},b=>b,{sourceAppPid:a==null?void 0:a.sourceAppPid}))}catch(y){const g=qZ(y,f.loginOAuthFailed);c.loading=!1,c.error=g,c.status="error",await l({provider:p.provider}),r(new Error(g))}});return z.useEffect(()=>{o(c.status)},[o,c.status]),t==="stack"?W.jsx(PX,{providerList:e,onLogin:d}):W.jsx(BX,{providerList:e,onLogin:d})}f2.propTypes={providerList:ge.array.isRequired,type:ge.oneOf(["list","stack"]),onSuccess:ge.func.isRequired,onError:ge.func.isRequired,tokenState:ge.object.isRequired};f2.defaultProps={type:"stack"};var qGe=Xb,GGe=rC,WGe=1,zGe=2;function KGe(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var l=s[0],f=e[l],c=s[1];if(o&&s[2]){if(f===void 0&&!(l in e))return!1}else{var d=new qGe;if(r)var p=r(f,c,l,e,t,d);if(!(p===void 0?GGe(c,f,WGe|zGe,r,d):p))return!1}}return!0}var YGe=KGe,ZGe=zi;function XGe(e){return e===e&&!ZGe(e)}var NX=XGe,QGe=NX,eWe=Sm;function tWe(e){for(var t=eWe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,QGe(i)]}return t}var nWe=tWe;function rWe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var FX=rWe,iWe=YGe,aWe=nWe,oWe=FX;function sWe(e){var t=aWe(e);return t.length==1&&t[0][2]?oWe(t[0][0],t[0][1]):function(n){return n===e||iWe(n,e,t)}}var lWe=sWe,uWe=rC,cWe=hm,fWe=UW,dWe=v8,pWe=NX,hWe=FX,mWe=Wp,gWe=1,yWe=2;function vWe(e,t){return dWe(e)&&pWe(t)?hWe(mWe(e),t):function(n){var r=cWe(n,e);return r===void 0&&r===t?fWe(n,e):uWe(t,r,gWe|yWe)}}var bWe=vWe,EWe=pm;function TWe(e){return function(t){return EWe(t,e)}}var AWe=TWe,wWe=cG,SWe=AWe,_We=v8,xWe=Wp;function CWe(e){return _We(e)?wWe(xWe(e)):SWe(e)}var RWe=CWe,$We=lWe,IWe=bWe,kWe=nE,DWe=Ta,OWe=RWe;function LWe(e){return typeof e=="function"?e:e==null?kWe:typeof e=="object"?DWe(e)?IWe(e[0],e[1]):$We(e):OWe(e)}var zE=LWe,PWe="Expected a function";function MWe(e){if(typeof e!="function")throw new TypeError(PWe);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var BWe=MWe,NWe=qp,FWe=zE,UWe=FW,HWe=q8;function jWe(e,t){if(e==null)return{};var n=NWe(HWe(e),function(r){return[r]});return t=FWe(t),UWe(e,n,function(r,i){return t(r,i[0])})}var JWe=jWe,VWe=zE,qWe=BWe,GWe=JWe;function WWe(e,t){return GWe(e,qWe(VWe(t)))}var zWe=WWe;const LF=Ut(zWe);function KWe(e){return e==null}var YWe=KWe;const PF=Ut(YWe);var UX={};Object.defineProperty(UX,"__esModule",{value:!0});var ZWe=UX.default=XWe,GS=z;function XWe(e,t){const n=(0,GS.useRef)();(0,GS.useEffect)(()=>{n.current=e},[e]),(0,GS.useEffect)(()=>{function r(){n.current()}if(t!==null){const i=setInterval(r,t);return()=>clearInterval(i)}},[t])}var HX={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,f,c){this.fn=l,this.context=f,this.once=c||!1}function a(l,f,c,d,p){if(typeof c!="function")throw new TypeError("The listener must be a function");var y=new i(c,d||l,p),g=n?n+f:f;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],y]:l._events[g].push(y):(l._events[g]=y,l._eventsCount++),l}function o(l,f){--l._eventsCount===0?l._events=new r:delete l._events[f]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var f=[],c,d;if(this._eventsCount===0)return f;for(d in c=this._events)t.call(c,d)&&f.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(c)):f},s.prototype.listeners=function(f){var c=n?n+f:f,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,y=d.length,g=new Array(y);p<y;p++)g[p]=d[p].fn;return g},s.prototype.listenerCount=function(f){var c=n?n+f:f,d=this._events[c];return d?d.fn?1:d.length:0},s.prototype.emit=function(f,c,d,p,y,g){var b=n?n+f:f;if(!this._events[b])return!1;var R=this._events[b],A=arguments.length,$,D;if(R.fn){switch(R.once&&this.removeListener(f,R.fn,void 0,!0),A){case 1:return R.fn.call(R.context),!0;case 2:return R.fn.call(R.context,c),!0;case 3:return R.fn.call(R.context,c,d),!0;case 4:return R.fn.call(R.context,c,d,p),!0;case 5:return R.fn.call(R.context,c,d,p,y),!0;case 6:return R.fn.call(R.context,c,d,p,y,g),!0}for(D=1,$=new Array(A-1);D<A;D++)$[D-1]=arguments[D];R.fn.apply(R.context,$)}else{var M=R.length,J;for(D=0;D<M;D++)switch(R[D].once&&this.removeListener(f,R[D].fn,void 0,!0),A){case 1:R[D].fn.call(R[D].context);break;case 2:R[D].fn.call(R[D].context,c);break;case 3:R[D].fn.call(R[D].context,c,d);break;case 4:R[D].fn.call(R[D].context,c,d,p);break;default:if(!$)for(J=1,$=new Array(A-1);J<A;J++)$[J-1]=arguments[J];R[D].fn.apply(R[D].context,$)}}return!0},s.prototype.on=function(f,c,d){return a(this,f,c,d,!1)},s.prototype.once=function(f,c,d){return a(this,f,c,d,!0)},s.prototype.removeListener=function(f,c,d,p){var y=n?n+f:f;if(!this._events[y])return this;if(!c)return o(this,y),this;var g=this._events[y];if(g.fn)g.fn===c&&(!p||g.once)&&(!d||g.context===d)&&o(this,y);else{for(var b=0,R=[],A=g.length;b<A;b++)(g[b].fn!==c||p&&!g[b].once||d&&g[b].context!==d)&&R.push(g[b]);R.length?this._events[y]=R.length===1?R[0]:R:o(this,y)}return this},s.prototype.removeAllListeners=function(f){var c;return f?(c=n?n+f:f,this._events[c]&&o(this,c)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(HX);var jX=HX.exports,LR=Object.defineProperty,QWe=Object.getOwnPropertyDescriptor,eze=Object.getOwnPropertyNames,tze=Object.prototype.hasOwnProperty,nze=(e,t)=>{for(var n in t)LR(e,n,{get:t[n],enumerable:!0})},rze=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of eze(t))!tze.call(e,i)&&i!==n&&LR(e,i,{get:()=>t[i],enumerable:!(r=QWe(t,i))||r.enumerable});return e},ize=e=>rze(LR({},"__esModule",{value:!0}),e),JX={};nze(JX,{Channel:()=>qX,LongPoll:()=>Wv,Presence:()=>b0,Serializer:()=>E0,Socket:()=>fze});var aze=ize(JX),V0=e=>typeof e=="function"?e:function(){return e},oze=typeof self<"u"?self:null,v0=typeof window<"u"?window:null,q0=oze||v0||q0,sze="2.0.0",_s={connecting:0,open:1,closing:2,closed:3},lze=1e4,uze=1e3,ka={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},dl={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},tx={longpoll:"longpoll",websocket:"websocket"},cze={complete:4},Ny=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(e){this.timeout=e,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(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}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,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},VX=class{constructor(e,t){this.callback=e,this.timerCalc=t,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))}},qX=class{constructor(e,t,n){this.state=ka.closed,this.topic=e,this.params=V0(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Ny(this,dl.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new VX(()=>{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=ka.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=ka.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=ka.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=ka.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 Ny(this,dl.leave,V0({}),this.timeout).send(),this.state=ka.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(dl.reply,(r,i)=>{this.trigger(this.replyEventName(i),r)})}join(e=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=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(e){this.on(dl.close,e)}onError(e){return this.on(dl.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Ny(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=ka.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(dl.close,"leave")},n=new Ny(this,dl.leave,V0({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=ka.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let i=this.onMessage(e,t,n,r);if(t&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let a=this.bindings.filter(o=>o.event===e);for(let o=0;o<a.length;o++)a[o].callback(i,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===ka.closed}isErrored(){return this.state===ka.errored}isJoined(){return this.state===ka.joined}isJoining(){return this.state===ka.joining}isLeaving(){return this.state===ka.leaving}},d2=class{static request(e,t,n,r,i,a,o){if(q0.XDomainRequest){let s=new q0.XDomainRequest;return this.xdomainRequest(s,e,t,r,i,a,o)}else{let s=new q0.XMLHttpRequest;return this.xhrRequest(s,e,t,n,r,i,a,o)}}static xdomainRequest(e,t,n,r,i,a,o){return e.timeout=i,e.open(t,n),e.onload=()=>{let s=this.parseJSON(e.responseText);o&&o(s)},a&&(e.ontimeout=a),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,i,a,o,s){return e.open(t,n,!0),e.timeout=a,e.setRequestHeader("Content-Type",r),e.onerror=()=>s&&s(null),e.onreadystatechange=()=>{if(e.readyState===cze.complete&&s){let l=this.parseJSON(e.responseText);s(l)}},o&&(e.ontimeout=o),e.send(i),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=t?`${t}[${r}]`:r,a=e[r];typeof a=="object"?n.push(this.serialize(a,i)):n.push(encodeURIComponent(i)+"="+encodeURIComponent(a))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},Wv=class{constructor(e){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(e),this.readyState=_s.connecting,this.poll()}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+tx.websocket),"$1/"+tx.longpoll)}endpointURL(){return d2.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=_s.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===_s.open||this.readyState===_s.connecting}poll(){this.ajax("GET","application/json",null,()=>this.ontimeout(),e=>{if(e){var{status:t,token:n,messages:r}=e;this.token=n}else t=0;switch(t){case 200:r.forEach(i=>{setTimeout(()=>this.onmessage({data:i}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=_s.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 ${t}`)}})}send(e){this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST","application/x-ndjson",e.join(`
|
|
516
|
-
`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let i of this.reqs)i.abort();this.readyState=_s.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,i){let a,o=()=>{this.reqs.delete(a),r()};a=d2.request(e,this.endpointURL(),t,n,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},b0=class{constructor(e,t={}){let n=t.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(n.state,r=>{let{onJoin:i,onLeave:a,onSync:o}=this.caller;this.joinRef=this.channel.joinRef(),this.state=b0.syncState(this.state,r,i,a),this.pendingDiffs.forEach(s=>{this.state=b0.syncDiff(this.state,s,i,a)}),this.pendingDiffs=[],o()}),this.channel.on(n.diff,r=>{let{onJoin:i,onLeave:a,onSync:o}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(r):(this.state=b0.syncDiff(this.state,r,i,a),o())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return b0.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,t,n,r){let i=this.clone(e),a={},o={};return this.map(i,(s,l)=>{t[s]||(o[s]=l)}),this.map(t,(s,l)=>{let f=i[s];if(f){let c=l.metas.map(g=>g.phx_ref),d=f.metas.map(g=>g.phx_ref),p=l.metas.filter(g=>d.indexOf(g.phx_ref)<0),y=f.metas.filter(g=>c.indexOf(g.phx_ref)<0);p.length>0&&(a[s]=l,a[s].metas=p),y.length>0&&(o[s]=this.clone(f),o[s].metas=y)}else a[s]=l}),this.syncDiff(i,{joins:a,leaves:o},n,r)}static syncDiff(e,t,n,r){let{joins:i,leaves:a}=this.clone(t);return n||(n=function(){}),r||(r=function(){}),this.map(i,(o,s)=>{let l=e[o];if(e[o]=this.clone(s),l){let f=e[o].metas.map(d=>d.phx_ref),c=l.metas.filter(d=>f.indexOf(d.phx_ref)<0);e[o].metas.unshift(...c)}n(o,l,s)}),this.map(a,(o,s)=>{let l=e[o];if(!l)return;let f=s.metas.map(c=>c.phx_ref);l.metas=l.metas.filter(c=>f.indexOf(c.phx_ref)<0),r(o,l,s),l.metas.length===0&&delete e[o]}),e}static list(e,t){return t||(t=function(n,r){return r}),this.map(e,(n,r)=>t(n,r))}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static clone(e){return JSON.parse(JSON.stringify(e))}},E0={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,a,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:a,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:a}=e,o=this.META_LENGTH+t.length+n.length+i.length+r.length,s=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(s),f=0;l.setUint8(f++,this.KINDS.push),l.setUint8(f++,t.length),l.setUint8(f++,n.length),l.setUint8(f++,i.length),l.setUint8(f++,r.length),Array.from(t,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(i,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(f++,d.charCodeAt(0)));var c=new Uint8Array(s.byteLength+a.byteLength);return c.set(new Uint8Array(s),0),c.set(new Uint8Array(a),s.byteLength),c.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(e.slice(o,o+r));o=o+r;let l=n.decode(e.slice(o,o+i));o=o+i;let f=n.decode(e.slice(o,o+a));o=o+a;let c=e.slice(o,e.byteLength);return{join_ref:s,ref:null,topic:l,event:f,payload:c}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(s,s+r));s=s+r;let f=n.decode(e.slice(s,s+i));s=s+i;let c=n.decode(e.slice(s,s+a));s=s+a;let d=n.decode(e.slice(s,s+o));s=s+o;let p=e.slice(s,e.byteLength),y={status:d,response:p};return{join_ref:l,ref:f,topic:c,event:dl.reply,payload:y}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=this.HEADER_LENGTH+2,o=n.decode(e.slice(a,a+r));a=a+r;let s=n.decode(e.slice(a,a+i));a=a+i;let l=e.slice(a,e.byteLength);return{join_ref:null,ref:null,topic:o,event:s,payload:l}}},fze=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||lze,this.transport=n.transport||q0.WebSocket||Wv,this.establishedConnections=0,this.defaultEncoder=E0.encode.bind(E0),this.defaultDecoder=E0.decode.bind(E0),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Wv?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;v0&&v0.addEventListener&&(v0.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),v0.addEventListener("pageshow",i=>{r===this.connectClock&&(r=null,this.connect())})),this.heartbeatIntervalMs=n.heartbeatIntervalMs||3e4,this.rejoinAfterMs=i=>n.rejoinAfterMs?n.rejoinAfterMs(i):[1e3,2e3,5e3][i-1]||1e4,this.reconnectAfterMs=i=>n.reconnectAfterMs?n.reconnectAfterMs(i):[10,50,100,150,200,250,500,1e3,2e3][i-1]||5e3,this.logger=n.logger||null,this.longpollerTimeout=n.longpollerTimeout||2e4,this.params=V0(n.params||{}),this.endPoint=`${t}/${tx.websocket}`,this.vsn=n.vsn||sze,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new VX(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Wv}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=d2.appendParams(d2.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,n,r){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,n,r)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=V0(t)),!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=n=>this.onConnError(n),this.conn.onmessage=n=>this.onConnMessage(n),this.conn.onclose=n=>this.onConnClose(n))}log(t,n,r){this.logger(t,n,r)}hasLogger(){return this.logger!==null}onOpen(t){let n=this.makeRef();return this.stateChangeCallbacks.open.push([n,t]),n}onClose(t){let n=this.makeRef();return this.stateChangeCallbacks.close.push([n,t]),n}onError(t){let n=this.makeRef();return this.stateChangeCallbacks.error.push([n,t]),n}onMessage(t){let n=this.makeRef();return this.stateChangeCallbacks.message.push([n,t]),n}ping(t){if(!this.isConnected())return!1;let n=this.makeRef(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:n});let i=this.onMessage(a=>{a.ref===n&&(this.off([i]),t(Date.now()-r))});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(([,t])=>t())}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(),uze,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,n,r){if(!this.conn)return t&&t();this.waitForBufferDone(()=>{this.conn&&(n?this.conn.close(n,r||""):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),t&&t()})})}waitForBufferDone(t,n=1){if(n===5||!this.conn||!this.conn.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(t,n+1)},150*n)}waitForSocketClosed(t,n=1){if(n===5||!this.conn||this.conn.readyState===_s.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(t,n+1)},150*n)}onConnClose(t){let n=t&&t.code;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&n!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,r])=>r(t))}onConnError(t){this.hasLogger()&&this.log("transport",t);let n=this.transport,r=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,i])=>{i(t,n,r)}),(n===this.transport||r>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(dl.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case _s.connecting:return"connecting";case _s.open:return"open";case _s.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(n=>n.joinRef()!==t.joinRef())}off(t){for(let n in this.stateChangeCallbacks)this.stateChangeCallbacks[n]=this.stateChangeCallbacks[n].filter(([r])=>t.indexOf(r)===-1)}channel(t,n={}){let r=new qX(t,n,this);return this.channels.push(r),r}push(t){if(this.hasLogger()){let{topic:n,event:r,payload:i,ref:a,join_ref:o}=t;this.log("push",`${n} ${r} (${o}, ${a})`,i)}this.isConnected()?this.encode(t,n=>this.conn.send(n)):this.sendBuffer.push(()=>this.encode(t,n=>this.conn.send(n)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,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(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:i,payload:a,ref:o,join_ref:s}=n;o&&o===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${a.status||""} ${r} ${i} ${o&&"("+o+")"||""}`,a);for(let l=0;l<this.channels.length;l++){const f=this.channels[l];f.isMember(r,i,a,s)&&f.trigger(i,a,o,s)}for(let l=0;l<this.stateChangeCallbacks.message.length;l++){let[,f]=this.stateChangeCallbacks.message[l];f(n)}})}leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r.isJoined()||r.isJoining()));n&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),n.leave())}},nx={exports:{}},WS,MF;function dze(){if(MF)return WS;MF=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;WS=function(c,d){d=d||{};var p=typeof c;if(p==="string"&&c.length>0)return o(c);if(p==="number"&&isFinite(c))return d.long?l(c):s(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function o(c){if(c=String(c),!(c.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(d){var p=parseFloat(d[1]),y=(d[2]||"ms").toLowerCase();switch(y){case"years":case"year":case"yrs":case"yr":case"y":return p*a;case"weeks":case"week":case"w":return p*i;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function s(c){var d=Math.abs(c);return d>=r?Math.round(c/r)+"d":d>=n?Math.round(c/n)+"h":d>=t?Math.round(c/t)+"m":d>=e?Math.round(c/e)+"s":c+"ms"}function l(c){var d=Math.abs(c);return d>=r?f(c,d,r,"day"):d>=n?f(c,d,n,"hour"):d>=t?f(c,d,t,"minute"):d>=e?f(c,d,e,"second"):c+" ms"}function f(c,d,p,y){var g=d>=p*1.5;return Math.round(c/p)+" "+y+(g?"s":"")}return WS}function pze(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=o,n.humanize=dze(),n.destroy=f,Object.keys(e).forEach(c=>{n[c]=e[c]}),n.names=[],n.skips=[],n.formatters={};function t(c){let d=0;for(let p=0;p<c.length;p++)d=(d<<5)-d+c.charCodeAt(p),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(c){let d,p=null,y,g;function b(...R){if(!b.enabled)return;const A=b,$=Number(new Date),D=$-(d||$);A.diff=D,A.prev=d,A.curr=$,d=$,R[0]=n.coerce(R[0]),typeof R[0]!="string"&&R.unshift("%O");let M=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(U,V)=>{if(U==="%%")return"%";M++;const X=n.formatters[V];if(typeof X=="function"){const re=R[M];U=X.call(A,re),R.splice(M,1),M--}return U}),n.formatArgs.call(A,R),(A.log||n.log).apply(A,R)}return b.namespace=c,b.useColors=n.useColors(),b.color=n.selectColor(c),b.extend=r,b.destroy=n.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(y!==n.namespaces&&(y=n.namespaces,g=n.enabled(c)),g),set:R=>{p=R}}),typeof n.init=="function"&&n.init(b),b}function r(c,d){const p=n(this.namespace+(typeof d>"u"?":":d)+c);return p.log=this.log,p}function i(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];let d;const p=(typeof c=="string"?c:"").split(/[\s,]+/),y=p.length;for(d=0;d<y;d++)p[d]&&(c=p[d].replace(/\*/g,".*?"),c[0]==="-"?n.skips.push(new RegExp("^"+c.slice(1)+"$")):n.names.push(new RegExp("^"+c+"$")))}function a(){const c=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let d,p;for(d=0,p=n.skips.length;d<p;d++)if(n.skips[d].test(c))return!1;for(d=0,p=n.names.length;d<p;d++)if(n.names[d].test(c))return!0;return!1}function s(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function l(c){return c instanceof Error?c.stack||c.message:c}function f(){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 n.enable(n.load()),n}var hze=pze;(function(e,t){var n={};t.formatArgs=i,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.destroy=(()=>{let f=!1;return()=>{f||(f=!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`."))}})(),t.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 r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1: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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(f){if(f[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+f[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;f.splice(1,0,c,"color: inherit");let d=0,p=0;f[0].replace(/%[a-zA-Z%]/g,y=>{y!=="%%"&&(d++,y==="%c"&&(p=d))}),f.splice(p,0,c)}t.log=console.debug||console.log||(()=>{});function a(f){try{f?t.storage.setItem("debug",f):t.storage.removeItem("debug")}catch{}}function o(){let f;try{f=t.storage.getItem("debug")}catch{}return!f&&typeof Xt<"u"&&"env"in Xt&&(f=n.DEBUG),f}function s(){try{return localStorage}catch{}}e.exports=hze(t);const{formatters:l}=e.exports;l.j=function(f){try{return JSON.stringify(f)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(nx,nx.exports);var PR=nx.exports;const mze=PR;var gze=(e,t=!1)=>{const n=mze(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const yze=gze;var vze=(e,t,n)=>class extends e{constructor(i,a={}){super(i,{transport:n,...a}),this._logger=yze("client",a.silent),this.emitter=new t,this.onOpen(()=>{this._logger.debug("socket open",i)}),this.onClose(()=>{this._logger.debug("socket close",i)}),this.onError(o=>{this._logger.error("socket error",o.error)}),this.onMessage(o=>{this._logger.debug("socket message",o)})}on(i,a,o={}){this.ensureJoinChannel(i,o),this.emitter.on(i,a)}off(i,a){a?this.emitter.off(i,a):this.emitter.removeAllListeners(i),this.ensureLeaveChannel(i)}disconnect(i,a,o){this.emitter.eventNames().forEach(s=>{this.emitter.removeAllListeners(s)}),super.disconnect(i,a,o)}ensureJoinChannel(i,a={}){if(this.emitter.listenerCount(i)>0)return;const s=this.channel(i,a);s.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),s.on(i,({status:l,response:f})=>{l==="ok"?this.emitter.emit(i,f):this._logger.debug("response error",{topic:i,status:l,data:f})})}ensureLeaveChannel(i){if(this.emitter.listenerCount(i)>0)return;const o=this.channels.find(s=>s.topic===i);o&&(this.remove(o),o.leave().receive("ok",s=>{this._logger.debug("leave success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("leave error",{topic:i,err:s})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:i})}),o.off(i))}subscribe(i,a={}){let o=this.channels.find(s=>s.topic===i);return o||(o=this.channel(i,a),o.join().receive("ok",s=>{this._logger.debug("join success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("join error",{topic:i,error:s})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),o)}unsubscribe(i){this.ensureLeaveChannel(i)}};const bze=jX,{Socket:Eze}=aze,Tze=vze;var Aze=Tze(Eze,bze);const wze=Aze;var MR={WsClient:wze};function Sze(e){const t=z.useRef(e);z.useEffect(()=>{t.current=e},[e]),z.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function _ze(e){const t=e||window.location.href;return new URL(t).host}function T0(e){const t={},n=e||window.location.href;if(n){const{hostname:r,protocol:i,port:a}=new URL(n);t["x-real-hostname"]=r,t["x-real-port"]=a,t["x-real-protocol"]=i.endsWith(":")?i.substring(0,i.length-1):i}return t}const zS={};function xze({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const a=`${t}/token?${m0(r)}`;return zS[a]||(zS[a]=async function(){var d,p;const s=+new Date,l=await n(a,{headers:T0(i)}),f=+new Date;if(f-s<500&&await Nm(500-(f-s)),(d=l==null?void 0:l.data)!=null&&d.token)return l.data;if((p=l==null?void 0:l.data)!=null&&p.error)throw new Error(l.data.error);const c=zb(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${c}`)}),zS[a]}const Cze=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=ZJe(t);return{token:XJe(n),url:n}}catch(e){return{error:e}}},GX=()=>Ms(globalThis,"blocklet.appPid")||Ms(globalThis,"blocklet.appId")||Ms(globalThis,"env.appId")||"",Rze=()=>(Ms(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(FZ,""),KS=e=>`relay:${GX()}:${e}`,$ze=()=>window.location.protocol==="https:"?"wss:":"ws:",BF=e=>!e||new URL(e).origin===window.location.origin,NF=e=>["succeed","error","timeout","busy"].includes(e);function Ize({action:e,checkFn:t,checkInterval:n,checkTimeout:r,extraParams:i,locale:a,prefix:o,tokenKey:s,encKey:l,onError:f,onSuccess:c,baseUrl:d,autoConnect:p=!0,forceConnected:y=!0,saveConnect:g=!0,useSocket:b=!0,provider:R="wallet"}){const A=Di({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:d,prefix:`${o}/${e}`,extraParams:LF(i,PF),checkFn:t,results:{},action:e,provider:R}),$=B1[a]||B1.en,D=en(()=>Cze(),[]),M=Math.ceil(r/n),J=Di({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:U,decrypt:V}=Kqe(),X=$m(),re=gm(),le=Ct((...x)=>{const v={[l]:U,...A.extraParams,locale:a,forceConnected:y,autoConnect:p&&!X.wallet&&!J.cancelWhenScannedCounter&&["ios","android"].includes(Mr.get("connected_wallet_os")),provider:A.provider};return re&&(v.visitorId=re),xze({action:e,prefix:A.prefix,baseUrl:A.baseUrl,checkFn:A.checkFn,extraParams:v})(...x)}),Q=()=>{J.cancelWhenScannedCounter++};z.useEffect(()=>{J.cancelWhenScannedCounter>0&&(i.nw?f(new Error($.retryForbidden)):S())},[J.cancelWhenScannedCounter]);const P=z.useRef(null),T=z.useRef(null);z.useEffect(()=>(b&&BF(A.baseUrl)&&GX()?(!P.current||P.current.isConnected()===!1||P.current.baseUrl!==A.baseUrl)&&(P.current=new MR.WsClient(`${$ze()}//${_ze(A.baseUrl)}${Rze()}${FZ}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),P.current.baseUrl=A.baseUrl,P.current.onOpen(()=>{J.isSocketAvailable=!0}),P.current.connect()):J.isSocketAvailable&&(J.isSocketAvailable=!1),()=>{P.current&&(P.current.disconnect(),P.current=null)}),[A.baseUrl]);const u={...A.extraParams,locale:a,[s]:A.token||(D==null?void 0:D.token),provider:A.provider},h=()=>!A.token||A.loading||NF(A.status)?null:n,E=async()=>{try{u[s]&&A.status==="created"&&await A.checkFn(`${A.prefix}/timeout?${m0(u)}`,{headers:T0(A.baseUrl)})}catch{}try{A.token&&T.current&&(await P.current.unsubscribe(KS(A.token)),T.current=null)}catch{}},S=Ct(async(x=!0)=>{x&&E();try{A.loading=!0,A.token="",A.url="",A.store=null,A.extraParams=LF(i,PF),await Nm();const v=await le(),k=v.extra||{};A.loading=!1,A.token=v.token,A.url=v.url,A.status="created",A.error="",A.checkCount=0,A.appInfo=v.appInfo,A.memberAppInfo=v.memberAppInfo,A.connectedDid=k.connectedDid,A.saveConnect=k.saveConnect}catch(v){A.loading=!1,A.status="error",A.error=`${$.generateError}: ${v.message}`}}),C=z.useRef(null);z.useEffect(()=>{C.current={state:A,params:u}}),z.useEffect(()=>()=>{const{state:x,params:v}=C.current;x.status==="created"&&v[s]&&x.checkFn(`${x.prefix}/timeout?${m0(v)}`,{headers:T0(x.baseUrl)})},[]);const I=async()=>{try{if(D.error)throw D.error;A.loading=!0,A.token=D.token,A.url=D.url,A.inExistingSession=!0;const x=await _();if(x!=null&&x.status&&(x==null?void 0:x.status)!=="created")throw new Error(`${$.invalidSessionStatus} [${x.status}]`)}catch(x){A.status="error",A.error=x.message,f(x,A==null?void 0:A.store,V)}finally{A.loading=!1}};z.useEffect(()=>{if(!A.token&&!A.store&&!A.loading&&!A.error)if(D)I();else{S(!1);return}if(A.status!=="timeout"&&A.checkCount>M){A.status="timeout",E();return}if(A.status==="succeed"&&!J.onSuccessCalled&&(BF(A.baseUrl)&&g&&A.saveConnect&&A.store.did&&JZ({...A.store,appInfo:A.appInfo,memberAppInfo:A.memberAppInfo}),A.store)){const{nextWorkflow:x}=A.store;if(x)try{const v=QJe(x,s);A.nextWorkflow=(v==null?void 0:v.nextWorkflow)||x,Object.assign(A,v),A.store=null,A.error="",A.url="",A.appInfo=null,A.memberAppInfo=null,A.checkCount=0,A.status="scanned",A.results={...A.results,[A.token]:A.store},A.checkFn=Gl({baseURL:v.baseUrl,timeout:8e3}).get,_()}catch(v){console.error(`Invalid nextWorkflow: ${x}`,v),A.status="error",A.error=`Invalid nextWorkflow: ${x}: ${v.message}`}else if(A.nextWorkflow&&(A.nextWorkflow="",A.url=""),typeof c=="function"){const v=Object.values({...A.results,[A.token]:A.store});J.onSuccessCalled=!0;const k=v.length>1?v:v[0],ne=_l(k);c(ne,V,{sourceAppPid:i==null?void 0:i.sourceAppPid})}}}),z.useEffect(()=>{if(A.token&&J.isSocketAvailable&&P.current){let x=!1;T.current?T.current.token!==A.token&&(P.current.unsubscribe(KS(T.current.token)),x=!0):x=!0,x&&(T.current=P.current.subscribe(KS(A.token)),T.current.token=A.token,T.current.on("updated",({response:v})=>{let{status:k,error:ne}=v;k==="forbidden"&&(ne=$.forbidden,k="error"),A.status=k,A.mfaCode=v.mfaCode||0,A.store=v,A.error=ne}))}},[A.token,J.isSocketAvailable,P.current]);const _=async(x=!1)=>{var v;if(A.checking||(A.status==="created"&&A.checkCount++,J.isSocketAvailable&&!x))return null;try{A.checking=!0;const k=await A.checkFn(`${A.prefix}/status?${m0(u)}`,{headers:T0(A.baseUrl)}),{status:ne,error:N,mfaCode:q=0}=k.data;if(A.store=k.data,A.mfaCode=q,A.checking=!1,A.status=ne,ne==="error"&&N){const ie=new Error(N);throw ie.response=k,ie}return k.data}catch(k){const{response:ne}=k;if(ne!=null&&ne.status){u[s]&&A.checkFn(`${A.prefix}/timeout?${m0(u)}`,{headers:T0(A.baseUrl)});const N=(v=ne==null?void 0:ne.data)!=null&&v.error?ne.data.error:k.message,q=new Error(N);q.code=ne.status,A.status="error",A.checking=!1,A.error=N,f(q,A==null?void 0:A.store,V)}else A.status="error",A.checking=!1,A.error=$.generateError}return null};return ZWe(_,h()),Sze(()=>{J.isSocketAvailable&&A.token&&NF(A.status)===!1&&_(!0)}),{state:A,generate:S,cancelWhenScanned:Q}}function BR({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i}=Wl(),a=r("openInWallet"),o=en(()=>{if(!e.url)return"";const f=new URL(window.location.href);f.searchParams.set("tokenKey",e.token);const c=new URL(e.url);return c.searchParams.set("callback",encodeURIComponent(f)),c.searchParams.set("callback_delay",1500),c.searchParams.set("locale",t),c.href.replace(/^https?:\/\//,"abt://")},[n,e.token]),s=Ct(()=>{sn(()=>import("./index-3L-shBOI.js").then(f=>f.i),__vite__mapDeps([])).then(f=>{f.call||(f=f.default),f.call("authAction",{action:"auth",deepLink:o})}).catch(f=>{console.error("load dsbridge error",f)})}),l={};return i||(l.component="a",l.href=o),xm(()=>{o&&s()}),W.jsxs(Zu,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:Rt.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...l,onClick:i?s:Bn,children:[W.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[W.jsx(Ip,{width:"24px",height:"24px"}),W.jsx(Br,{sx:{fontSize:"14px",fontWeight:500},children:a})]}),W.jsx(Zn,{icon:GE,fontSize:"1.3rem",color:Rt.primaryBase})]})}BR.propTypes={tokenState:ge.object.isRequired,locale:ge.string,tokenKey:ge.string};BR.defaultProps={locale:"en",tokenKey:"_t_"};const kze={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 WX({onRefresh:e,...t}){const n=r=>{r.stopPropagation(),e()};return W.jsx(yt,{...t,onClick:n,sx:{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(0, 0, 0, 0.1)",cursor:"pointer",...t.sx},children:W.jsx(yt,{sx:{backgroundColor:Rt.foregroundsFgInteractive,borderRadius:"100%",fontSize:0},children:W.jsx(Zn,{icon:kze,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})})})}WX.propTypes={onRefresh:ge.func.isRequired};const Fy=["scanned","succeed","error","busy"];function NR({onSuccess:e,onError:t,action:n,prefix:r,checkFn:i,checkInterval:a,checkTimeout:o,locale:s,tokenKey:l,encKey:f,baseUrl:c,autoConnect:d,forceConnected:p,saveConnect:y,useSocket:g,allowWallet:b,provider:R,webWalletUrl:A,onRecreateSession:$,onClose:D,messages:M,enabledConnectTypes:J}){var K,te,ye;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const U=z.useContext(fh),{connectState:V,extraParams:X,staticState:re,changeStatus:le,isWalletWebview:Q,matchSmallScreen:P}=Wl(),T=$m(),u=en(()=>{var pe;return R||(X==null?void 0:X.provider)||((pe=U==null?void 0:U.session)==null?void 0:pe.provider)||"wallet"},[X==null?void 0:X.provider,(K=U==null?void 0:U.session)==null?void 0:K.provider]);z.useEffect(()=>{C(c)},[c]);const{state:h,generate:E,cancelWhenScanned:S}=Ize({action:n,baseUrl:c,checkFn:i,checkInterval:a,checkTimeout:o,extraParams:X,prefix:r,onError:t,onSuccess:e,locale:s,tokenKey:l,encKey:f,autoConnect:d,forceConnected:p,saveConnect:y,useSocket:g,allowWallet:b,provider:u}),{setBaseUrl:C,oauthConfigList:I,oauthState:_}=mR({defaultStatus:h.status}),x=jz(V==null?void 0:V.sourceAppPid);af(()=>{Eu(x)||E()},[V==null?void 0:V.sourceAppPid]);const v=en(()=>Fy.includes(_.status)||Fy.includes(h.status),[h.status,_.status]);z.useEffect(()=>{Fy.includes(_.status)?le(_.status):Fy.includes(h.status)?le(h.status):le("created")},[le,h.status,_.status]);const k=Ct(()=>{$(),_.reset(),h.inExistingSession||E(!1)}),ne=Ct(()=>{$(),h.inExistingSession||(re.current.cancelCount++,S())}),N=en(()=>({confirm:M.confirm,success:M.success,error:h.error||_.error||""}),[M.confirm,M.success,h.error,_.error]),q=en(()=>b&&J.includes("mobile")&&!Q,[b,J,Q]),ie=HZ(A),ue=en(()=>b&&J.includes("web")&&(ie||Wb())&&!T.mobile.any,[b,J,(te=T==null?void 0:T.mobile)==null?void 0:te.any]),he=en(()=>b&&J.includes("mobile")&&T.mobile.any,[b,J,(ye=T==null?void 0:T.mobile)==null?void 0:ye.any]),Se=en(()=>{const pe=NGe(["auth0","apple","github","google"],J);return I.filter(ae=>pe.includes(ae.provider))},[I,J]),j=en(()=>Se.length>0&&["login","invite"].includes(h.action),[Se]),L=en(()=>{const pe=q||ue||he;let ae=null;return j&&(ae=pe?W.jsxs(W.Fragment,{children:[W.jsx(Y8,{light:!0,sx:{color:Rt.textMuted,width:P?"200px":"368px",maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:Rt.lineStep}},children:"OR"}),W.jsx(f2,{providerList:Se,onSuccess:e,onError:t,tokenState:h,locale:s})]}):W.jsx(f2,{providerList:Se,onSuccess:e,onError:t,tokenState:h,type:"list",locale:s})),W.jsxs(W.Fragment,{children:[h.status==="timeout"?W.jsx(WX,{onRefresh:k,sx:{zIndex:1,animation:"fadeIn 1s","@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}}}):null,W.jsx(yt,{"data-did-auth-url":h.url,sx:{display:"none"}}),he&&W.jsx(BR,{tokenState:h,locale:s,tokenKey:l}),q&&W.jsx(DR,{tokenState:h,messages:M,locale:s}),ue&&W.jsx(IR,{tokenState:h,webWalletUrl:A,locale:s}),ae]})},[h.url,h.status,q,ue,he]);return en(()=>h.loading||_.loading||!h.token,[h.loading,_.loading])?W.jsx(TR,{}):v?W.jsxs(W.Fragment,{children:[W.jsx(yt,{"data-did-auth-url":h.url,sx:{display:"none"}}),W.jsx(WE,{status:_.status||h.status,nextWorkflow:h.nextWorkflow,mfaCode:h.mfaCode,onCancel:ne,onRetry:k,onClose:D,messages:N,locale:s,className:"auth-status"})]}):L}NR.propTypes={onError:ge.func,onSuccess:ge.func.isRequired,action:ge.string.isRequired,checkFn:ge.func.isRequired,prefix:ge.string,checkInterval:ge.number,checkTimeout:ge.number,locale:ge.oneOf(["en","zh",""]),tokenKey:ge.string,encKey:ge.string,baseUrl:ge.string,autoConnect:ge.bool,forceConnected:ge.oneOfType([ge.bool,ge.string]),saveConnect:ge.bool,useSocket:ge.bool,allowWallet:ge.bool,provider:ge.oneOf(["wallet","auth0",""]),webWalletUrl:ge.string,onRecreateSession:ge.func,onClose:ge.func,messages:ge.object,enabledConnectTypes:ge.arrayOf(ge.oneOf(["web","mobile","github","apple","google","auth0"]))};NR.defaultProps={prefix:tR,onError:Bn,checkInterval:2*1e3,checkTimeout:NZ*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:UZ(),onRecreateSession:Bn,onClose:Bn,messages:{},enabledConnectTypes:["web","mobile","github","apple","google","auth0"]};var YS=IW,Dze=XG,Oze=nC,Lze=1/0,Pze=YS&&1/Oze(new YS([,-0]))[1]==Lze?function(e){return new YS(e)}:Dze,Mze=Pze,Bze=eC,Nze=CX,Fze=RX,Uze=tC,Hze=Mze,jze=nC,Jze=200;function Vze(e,t,n){var r=-1,i=Nze,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=Fze;else if(a>=Jze){var f=t?null:Hze(e);if(f)return jze(f);o=!1,i=Uze,l=new Bze}else l=t?[]:s;e:for(;++r<a;){var c=e[r],d=t?t(c):c;if(c=n||c!==0?c:0,o&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}var zX=Vze,qze=G8,Gze=zE,Wze=wm,zze=zX,FF=N8,Kze=rE,Yze=Wze(function(e){var t=Kze(e);return FF(t)&&(t=void 0),zze(qze(e,1,FF,!0),Gze(t))}),Zze=Yze;const Xze=Ut(Zze);var Qze=lW,eKe=Sm;function tKe(e,t){return e&&Qze(e,t,eKe)}var nKe=tKe,rKe=yf;function iKe(e,t){return function(n,r){if(n==null)return n;if(!rKe(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var aKe=iKe,oKe=nKe,sKe=aKe,lKe=sKe(oKe),uKe=lKe,cKe=uKe,fKe=yf;function dKe(e,t){var n=-1,r=fKe(e)?Array(e.length):[];return cKe(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var pKe=dKe;function hKe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var mKe=hKe,UF=fm;function gKe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=UF(e),o=t!==void 0,s=t===null,l=t===t,f=UF(t);if(!s&&!f&&!a&&e>t||a&&o&&l&&!s&&!f||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!f&&e<t||f&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var yKe=gKe,vKe=yKe;function bKe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=vKe(i[r],a[r]);if(l){if(r>=s)return l;var f=n[r];return l*(f=="desc"?-1:1)}}return e.index-t.index}var EKe=bKe,ZS=qp,TKe=pm,AKe=zE,wKe=pKe,SKe=mKe,_Ke=Tm,xKe=EKe,CKe=nE,RKe=Ta;function $Ke(e,t,n){t.length?t=ZS(t,function(a){return RKe(a)?function(o){return TKe(o,a.length===1?a[0]:a)}:a}):t=[CKe];var r=-1;t=ZS(t,_Ke(AKe));var i=wKe(e,function(a,o,s){var l=ZS(t,function(f){return f(a)});return{criteria:l,index:++r,value:a}});return SKe(i,function(a,o){return xKe(a,o,n)})}var IKe=$Ke,kKe=G8,DKe=IKe,OKe=wm,HF=wW,LKe=OKe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&HF(e,t[0],t[1])?t=[]:n>2&&HF(t[0],t[1],t[2])&&(t=[t[0]]),DKe(e,kKe(t,1),[])}),PKe=LKe;const KX=Ut(PKe),MKe=On(Vi,"/api/user-session");function YX({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/"}={}){const a=gm(),o=en(()=>Gl({baseURL:On(i,MKe)},{lazy:!0,lazyTime:500}),[i]),s=Ct(async()=>{const{data:y}=await o.get("",{params:{visitorId:a,appPid:e}});return y}),l=Di({loaded:!1,loadingId:null}),f=bOe(s,{manual:!r,onFinally(){l.loaded=!0},refreshDeps:[e,i]}),c=async y=>{var b,R,A;const g=iE(y,["userDid","visitorId","passportId"]);try{l.loadingId=y.id;const{data:$}=await o.post("login",{...g,appPid:n});return $}catch($){const D=$.response?((R=(b=$.response)==null?void 0:b.data)==null?void 0:R.error)||((A=$.response)==null?void 0:A.data):$.message;throw Ci.error(D),console.error("Quick login error",$),$}finally{l.loadingId=null}},d=en(()=>{if(!f.data)return[];const y=new Date().getTime(),g=KX(f.data,b=>y-new Date(b.updatedAt).getTime());return Xze(g,b=>[b.userDid].join("_"))},[f.data,t,e]),p=en(()=>!!(d&&d.length>0),[d]);return{loadingId:l.loadingId,userSessions:d,quickLoginEnabled:p,loginUserSession:c,loading:f.loading,loaded:f.loaded,refresh:f.refreshAsync}}const BKe={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"/>'},NKe={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 FR({appInfo:e,...t}){const[n,r]=z.useState(!1);if(n||!(e.appUrl||e.appLogo))return W.jsx(Bl,{did:e.appPid,size:32});let i=e.appLogo||"";return zb(i)||(i=On(e.appUrl||"",i)),W.jsx(Yd,{src:i,alt:e.appName||"Blocklet Icon",width:32,height:32,...t,onError:()=>r(!0)})}FR.propTypes={appInfo:ge.object.isRequired};const FKe=e=>e?e.split(":").pop():"";function KE({appInfo:e,active:t,appLogo:n}){return W.jsxs(yt,{sx:{display:"flex",alignItems:"center",fontWeight:600,color:Rt.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:Rt.textMuted,fontSize:"12px"}},children:[n||W.jsx(yt,{sx:{borderRadius:"8px",overflow:"hidden",fontSize:0},children:W.jsx(FR,{appInfo:e})}),W.jsxs(yt,{className:"app-info-content",children:[W.jsx(yt,{className:"app-info-name",children:e.appName}),e.appPid&&W.jsx(TE,{size:12,className:"app-info-did",copyable:!1,color:Rt.textMuted,compact:!1,responsive:!1,children:FKe(e.appPid)})]}),t?W.jsx(zu,{size:"small",color:"success",children:W.jsx(yke,{icon:NKe,color:"success"})}):null]})}KE.propTypes={appInfo:ge.object.isRequired,active:ge.bool,appLogo:ge.node};KE.defaultProps={active:!1,appLogo:null};function rx({appInfo:e}){const t=z.useRef(null),n=Di({hoverOnButton:!1,hoverOnPopover:!1}),r=en(()=>n.hoverOnButton||n.hoverOnPopover,[n.hoverOnButton,n.hoverOnPopover]);return W.jsxs(W.Fragment,{children:[W.jsx(yt,{ref:t,sx:{color:Rt.foregroundsFgInteractive,cursor:"help"},onClick:()=>{n.hoverOnButton=!0},onMouseEnter:()=>{n.hoverOnButton=!0},onMouseLeave:()=>{setTimeout(()=>{n.hoverOnButton=!1},200)},children:e.appName}),W.jsx(mz,{open:r,sx:{pointerEvents:"none"},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${Rt.gray6}, 0px 0px 0px 1px ${Rt.gray6}`,py:1,px:1.5,borderRadius:2,transform:"translateY(-6px) !important"}}},anchorEl:t.current,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{n.open=!1},disableRestoreFocus:!0,children:W.jsx(yt,{sx:{pointerEvents:"auto"},onMouseEnter:()=>{n.hoverOnPopover=!0},onMouseLeave:()=>{n.hoverOnPopover=!1},children:W.jsx(KE,{appInfo:e,appLogo:W.jsx(FR,{appInfo:e})})})})]})}rx.propTypes={appInfo:ge.object.isRequired};function jF(){const{appInfoList:e,t,extraParams:n,connectState:r}=Wl(),i=z.useRef(null),a=Di({open:!1});return W.jsxs(W.Fragment,{children:[W.jsx(yt,{ref:i,sx:{textTransform:"lowercase",color:Rt.foregroundsFgInteractive,cursor:"pointer"},onClick:()=>{a.open=!0},children:t("switch")}),W.jsx(aDe,{anchorEl:i.current,open:a.open,onClose:()=>{a.open=!1},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${Rt.gray6}, 0px 0px 0px 1px ${Rt.gray6}`,borderRadius:2}}},children:e.map(o=>W.jsx(J3,{onClick:()=>{a.open=!1,r.sourceAppPid=o.sourceAppPid},children:W.jsx(KE,{appInfo:o,active:o.sourceAppPid===(n==null?void 0:n.sourceAppPid)})},o.appPid))})]})}function UR({locale:e,disableSwitchApp:t}){const{appInfoList:n,extraParams:r,connectState:i,blocklet:a}=Wl(),o=en(()=>n.find(f=>ep.isUndefined(r==null?void 0:r.sourceAppPid)?!0:ep.isNull(f.sourceAppPid)?f.appPid===(a==null?void 0:a.appPid):f.sourceAppPid===(r==null?void 0:r.sourceAppPid)),[r==null?void 0:r.sourceAppPid,n]),s=!t&&n.length>1;xm(()=>{(a==null?void 0:a.appPid)===(o==null?void 0:o.appPid)?i.sourceAppPid=null:i.sourceAppPid=o==null?void 0:o.appPid});const l=en(()=>e==="zh"?W.jsxs(W.Fragment,{children:["您正在使用 ",W.jsx(rx,{appInfo:o,appInfoList:n})," 账户来连接站点",s?W.jsxs(W.Fragment,{children:[",点击",W.jsx(jF,{appInfoList:n})]}):null]}):W.jsxs(W.Fragment,{children:["You're using ",W.jsx(rx,{appInfo:o})," account for site access",s?W.jsxs(W.Fragment,{children:[". Click to ",W.jsx(jF,{appInfoList:n})]}):null]}),[e,o,n,s]);return ep.isEmpty(n)?null:W.jsxs(yt,{sx:{fontSize:"13px",color:Rt.foregroundsFgSubtile,display:"flex",alignItems:"center",whiteSpace:"pre"},children:[l,s&&W.jsx(yt,{component:Zn,icon:BKe,sx:{ml:.5}})]})}UR.propTypes={locale:ge.string,disableSwitchApp:ge.bool};UR.defaultProps={locale:"en",disableSwitchApp:!1};var HR={};Object.defineProperty(HR,"__esModule",{value:!0});var ZX=HR.default=void 0;UKe(z);var XS=W;function UKe(e){return e&&e.__esModule?e:{default:e}}function JF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function VF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JF(Object(n),!0).forEach(function(r){HKe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HKe(e,t,n){return t=jKe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jKe(e){var t=JKe(e,"string");return typeof t=="symbol"?t:String(t)}function JKe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jR=function(t){return(0,XS.jsxs)("svg",VF(VF({},t),{},{children:[(0,XS.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,XS.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)"})]}))};jR.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};jR.displayName="did-logo-colorful";ZX=HR.default=jR;function VKe({...e}){return W.jsxs(yt,{...e,sx:{display:"flex",alignItems:"center",color:Rt.foregroundsFgMuted,gap:.5,...e.sx},children:[W.jsx(ZX,{}),"Power By DID Connect"]})}function JR({children:e,initHeight:t,slotProps:n}){var s;const[r,i]=z.useState(t),a=z.useRef(null),o=Cm(a);return z.useEffect(()=>{o!=null&&o.height&&i(o.height)},[o==null?void 0:o.height,r]),W.jsx(yt,{...n==null?void 0:n.root,sx:{height:r,overflow:"hidden",transition:"height 0.2s ease-in-out",...(s=n==null?void 0:n.root)==null?void 0:s.sx},children:W.jsx(yt,{...n==null?void 0:n.container,ref:a,children:e})})}JR.propTypes={initHeight:ge.number,children:ge.node.isRequired,slotProps:ge.object};JR.defaultProps={initHeight:0,slotProps:{}};const Uy="did-connect",qF="quick-connect";function VR({mode:e,isFullScreen:t,hideCloseButton:n,...r}){var Q;const i=Di({showTab:Uy}),{connectState:a,blocklet:o}=Wl(),{extraContent:s,onSuccess:l,action:f,onClose:c,options:d}=r,p=en(()=>(a==null?void 0:a.sourceAppPid)||SK(),[a==null?void 0:a.sourceAppPid]),{quickLoginEnabled:y,loading:g,userSessions:b,loginUserSession:R,refresh:A}=YX({appPid:p,loginAppPid:o==null?void 0:o.appPid,sourceAppPid:a==null?void 0:a.sourceAppPid,autoFetch:["login"].includes(f)}),$=en(()=>{var P;return((P=r==null?void 0:r.messages)==null?void 0:P.title)||WJe},[(Q=r==null?void 0:r.messages)==null?void 0:Q.title]),D=Ct(async(...P)=>{const T=await R(...P);await l({...T,encrypted:!1},u=>u)});z.useEffect(()=>{(d==null?void 0:d.showQuickConnect)!==!1&&!g&&y&&(i.showTab=qF)},[g,y,d==null?void 0:d.showQuickConnect]);const M=xOe(g,{wait:100}),J=Ct(()=>{i.showTab=Uy}),U=Ct(()=>{i.showTab=qF}),V=en(()=>i.showTab===Uy||!y,[i.showTab,y]),X=en(()=>{let P=!0;return(g||M)&&(P=!1),y||(P=!1),d.showQuickConnect===!1&&(P=!1),i.showTab!==Uy&&(P=!1),P},[y,i.showTab,g,M]),re=en(()=>W.jsx(yt,{onClick:c,sx:{fontSize:"1.5rem",width:"1.5rem",height:"1.5rem",cursor:"pointer",color:Rt.foregroundsFgSubtile,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:W.jsx(Zn,{icon:TX})}),[c]);let le=null;return g||M?le=W.jsx(TR,{}):V?le=W.jsx(NR,{...r,onClose:c}):le=W.jsx($R,{userSessions:b,onLogin:D,onRetry:A,onClose:c,messages:r.messages,onLoginAnother:J}),W.jsxs(W$e,{variant:"outlined",sx:{color:Rt.foregroundsFgBase,backgroundColor:"white",borderRadius:2,borderColor:Rt.strokeBorderBase,height:"100%",display:"flex",flexDirection:"column"},children:[W.jsx(mIe,{title:W.jsxs(W.Fragment,{children:[X&&W.jsx(zu,{size:"small",disabled:a.status!=="created",onClick:U,disableRipple:!0,sx:{fontSize:"0.75em"},children:W.jsx(Zn,{icon:Cqe,color:Rt.textMuted})}),$]}),titleTypographyProps:{display:"flex",alignItems:"center",variant:"h6",lineHeight:"28px",fontWeight:600},action:n?null:re,sx:{px:2.5,".MuiCardHeader-action":{margin:0,alignSelf:"center"}}}),W.jsx(aIe,{sx:{borderTop:`1px solid ${Rt.strokeBorderBase}`,borderBottom:`1px solid ${Rt.strokeBorderBase}`,flex:1,verticalAlign:"middle",overflow:"auto",p:2.5,position:"relative","&::after":{content:'""',height:"100%",verticalAlign:"middle",display:"inline-block",width:0}},children:W.jsxs(JR,{slotProps:{root:{sx:{display:"inline-block",width:"100%",verticalAlign:"middle"}},container:{sx:{display:"flex",flexDirection:"column",gap:1}}},children:[W.jsx(UR,{locale:r.locale,disableSwitchApp:r.disableSwitchApp}),le,s?W.jsx(yt,{children:s}):null]})}),W.jsx(Q$e,{sx:{py:2,px:2.5,justifyContent:"center"},children:W.jsx(VKe,{sx:{fontSize:"12px"}})})]})}VR.propTypes={action:ge.string.isRequired,onSuccess:ge.func,onClose:ge.func,messages:ge.object,extraContent:ge.any,disableSwitchApp:ge.bool,mode:ge.oneOf(["fullScreen","dialog","normal"]),isFullScreen:ge.bool,options:ge.object,hideCloseButton:ge.bool,locale:ge.string};VR.defaultProps={onSuccess:Bn,onClose:Bn,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!0,locale:"en"};function qR(e){const{checkFn:t,extraParams:n,blocklet:r,action:i,locale:a}=e;if(typeof t!="function")throw new Error("Cannot initialize did connect component without a fetchFn");return W.jsx(AR,{blocklet:r,action:i,locale:a,extraParams:n,sx:{position:"relative",width:"100%",height:"100%",lineHeight:1.2,fontFamily:"Inter",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:W.jsx(VR,{...e})})}qR.propTypes={checkFn:ge.func.isRequired,extraParams:ge.object,blocklet:ge.object.isRequired,action:ge.string.isRequired,locale:ge.string};qR.defaultProps={extraParams:{},locale:"en"};const qKe=qqe($qe(zqe(qR))),GKe=z.forwardRef((e,t)=>{const{api:n}=z.useContext(fh),r={containerEl:null,popup:!0,checkFn:(n==null?void 0:n.get)||Bn,onSuccess:()=>{setTimeout(()=>{f()},2e3)},messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},i=Di({show:!1,..._l(r)}),[a,o]=z.useState({}),s=Ct(d=>{const{containerEl:p,checkFn:y,popup:g,onSuccess:b,messages:R,...A}=_l(d);typeof y=="function"&&(i.checkFn=y),typeof b=="function"&&(i.onSuccess=(...$)=>{b(...$),setTimeout(()=>{f()},2e3)}),g!==void 0&&(i.popup=g),R!==void 0&&(i.messages=R),p!==void 0&&(i.containerEl=p),o(A),i.show=!0}),l=Ct(()=>{const d=_l(r);Object.keys(d).forEach(p=>{i[p]=d[p]})}),f=Ct(()=>{i.show=!1,l()});z.useImperativeHandle(t,()=>({open:s,close:f}),[s,f]);const c=W.jsx(qKe,{open:!0,popup:i.popup,messages:i.messages,onClose:f,onSuccess:i.onSuccess,checkFn:i.checkFn,...a});return i.containerEl?W1.createPortal(c,i.containerEl):i.show&&c});function WKe(){const e=z.useRef(null),t=Ct((...o)=>{var s;(s=e.current)==null||s.open(...o)}),n=Ct(async(o={},{baseUrl:s,locale:l="en",blocklet:f=globalThis==null?void 0:globalThis.blocklet}={})=>{var R;if(Eu(s)){const A=Fm(),$=uh();s=A?$.appUrl:window.location.origin}const{onSuccess:c,onClose:d,onError:p,...y}=o;if(!((R=y==null?void 0:y.extraParams)!=null&&R.provider))throw Oc(p)&&p("Must have extraParams.provider"),new Error("Must have extraParams.provider");y!=null&&y.prefix||(y.prefix=window.location.origin+On(f==null?void 0:f.prefix,tR));const g=new URLSearchParams;g.set("params",btoa(encodeURIComponent(JSON.stringify(y)))),g.set("appPid",f==null?void 0:f.appPid),g.set("locale",l);const b=_qe(On(s||"/",Vi,`/connect?${g.toString()}`));try{const A=await xqe({popup:b});return Oc(c)&&c({...A,encrypted:!1}),{...A,encrypted:!1}}catch(A){throw A.message==="Popup closed"?Oc(d)&&d():Oc(p)&&p(A),A}}),r=Ct((...o)=>{var s;(s=e.current)==null||s.close(...o)}),i=en(()=>W.jsx(GKe,{ref:e})),a=en(()=>({open:t,close:r,openPopup:n}));return{connectHolder:i,connectApi:a}}const ei={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")},sd={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-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:"通行证和会话已经更新"}},"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 ix={exports:{}};const zKe="2.0.0",XX=256,KKe=Number.MAX_SAFE_INTEGER||9007199254740991,YKe=16,ZKe=XX-6,XKe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var YE={MAX_LENGTH:XX,MAX_SAFE_COMPONENT_LENGTH:YKe,MAX_SAFE_BUILD_LENGTH:ZKe,MAX_SAFE_INTEGER:KKe,RELEASE_TYPES:XKe,SEMVER_SPEC_VERSION:zKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},QS={};const QKe=typeof Xt=="object"&&QS&&QS.NODE_DEBUG&&/\bsemver\b/i.test(QS.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var ZE=QKe;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=YE,a=ZE;t=e.exports={};const o=t.re=[],s=t.safeRe=[],l=t.src=[],f=t.t={};let c=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[d,r]],y=b=>{for(const[R,A]of p)b=b.split(`${R}*`).join(`${R}{0,${A}}`).split(`${R}+`).join(`${R}{1,${A}}`);return b},g=(b,R,A)=>{const $=y(R),D=c++;a(b,D,R),f[b]=D,l[D]=R,o[D]=new RegExp(R,A?"g":void 0),s[D]=new RegExp($,A?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),g("MAINVERSION",`(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${l[f.NUMERICIDENTIFIER]}|${l[f.NONNUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${l[f.NUMERICIDENTIFIERLOOSE]}|${l[f.NONNUMERICIDENTIFIER]})`),g("PRERELEASE",`(?:-(${l[f.PRERELEASEIDENTIFIER]}(?:\\.${l[f.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${l[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[f.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${d}+`),g("BUILD",`(?:\\+(${l[f.BUILDIDENTIFIER]}(?:\\.${l[f.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${l[f.MAINVERSION]}${l[f.PRERELEASE]}?${l[f.BUILD]}?`),g("FULL",`^${l[f.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${l[f.MAINVERSIONLOOSE]}${l[f.PRERELEASELOOSE]}?${l[f.BUILD]}?`),g("LOOSE",`^${l[f.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${l[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${l[f.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:${l[f.PRERELEASE]})?${l[f.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:${l[f.PRERELEASELOOSE]})?${l[f.BUILD]}?)?)?`),g("XRANGE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAINLOOSE]}$`),g("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),g("COERCERTL",l[f.COERCE],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${l[f.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${l[f.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${l[f.LONECARET]}${l[f.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${l[f.LONECARET]}${l[f.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${l[f.GTLT]}\\s*(${l[f.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]}|${l[f.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${l[f.XRANGEPLAIN]})\\s+-\\s+(${l[f.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${l[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[f.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(ix,ix.exports);var Um=ix.exports;const eYe=Object.freeze({loose:!0}),tYe=Object.freeze({}),nYe=e=>e?typeof e!="object"?eYe:e:tYe;var GR=nYe;const GF=/^[0-9]+$/,QX=(e,t)=>{const n=GF.test(e),r=GF.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},rYe=(e,t)=>QX(t,e);var eQ={compareIdentifiers:QX,rcompareIdentifiers:rYe};const Hy=ZE,{MAX_LENGTH:WF,MAX_SAFE_INTEGER:jy}=YE,{safeRe:zF,t:KF}=Um,iYe=GR,{compareIdentifiers:ld}=eQ;let aYe=class vs{constructor(t,n){if(n=iYe(n),t instanceof vs){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>WF)throw new TypeError(`version is longer than ${WF} characters`);Hy("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?zF[KF.LOOSE]:zF[KF.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>jy||this.major<0)throw new TypeError("Invalid major version");if(this.minor>jy||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>jy||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const a=+i;if(a>=0&&a<jy)return a}return i}):this.prerelease=[],this.build=r[5]?r[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(t){if(Hy("SemVer.compare",this.version,this.options,t),!(t instanceof vs)){if(typeof t=="string"&&t===this.version)return 0;t=new vs(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof vs||(t=new vs(t,this.options)),ld(this.major,t.major)||ld(this.minor,t.minor)||ld(this.patch,t.patch)}comparePre(t){if(t instanceof vs||(t=new vs(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],i=t.prerelease[n];if(Hy("prerelease compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return ld(r,i)}while(++n)}compareBuild(t){t instanceof vs||(t=new vs(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(Hy("prerelease compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return ld(r,i)}while(++n)}inc(t,n,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);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 i=Number(r)?1:0;if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(n){let a=[n,i];r===!1&&(a=[n]),ld(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var ia=aYe;const YF=ia,oYe=(e,t,n=!1)=>{if(e instanceof YF)return e;try{return new YF(e,t)}catch(r){if(!n)return null;throw r}};var dh=oYe;const sYe=dh,lYe=(e,t)=>{const n=sYe(e,t);return n?n.version:null};var uYe=lYe;const cYe=dh,fYe=(e,t)=>{const n=cYe(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var dYe=fYe;const ZF=ia,pYe=(e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new ZF(e instanceof ZF?e.version:e,n).inc(t,r,i).version}catch{return null}};var hYe=pYe;const XF=dh,mYe=(e,t)=>{const n=XF(e,null,!0),r=XF(t,null,!0),i=n.compare(r);if(i===0)return null;const a=i>0,o=a?n:r,s=a?r:n,l=!!o.prerelease.length;if(!!s.prerelease.length&&!l)return!s.patch&&!s.minor?"major":o.patch?"patch":o.minor?"minor":"major";const c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};var gYe=mYe;const yYe=ia,vYe=(e,t)=>new yYe(e,t).major;var bYe=vYe;const EYe=ia,TYe=(e,t)=>new EYe(e,t).minor;var AYe=TYe;const wYe=ia,SYe=(e,t)=>new wYe(e,t).patch;var _Ye=SYe;const xYe=dh,CYe=(e,t)=>{const n=xYe(e,t);return n&&n.prerelease.length?n.prerelease:null};var RYe=CYe;const QF=ia,$Ye=(e,t,n)=>new QF(e,n).compare(new QF(t,n));var cs=$Ye;const IYe=cs,kYe=(e,t,n)=>IYe(t,e,n);var DYe=kYe;const OYe=cs,LYe=(e,t)=>OYe(e,t,!0);var PYe=LYe;const eU=ia,MYe=(e,t,n)=>{const r=new eU(e,n),i=new eU(t,n);return r.compare(i)||r.compareBuild(i)};var WR=MYe;const BYe=WR,NYe=(e,t)=>e.sort((n,r)=>BYe(n,r,t));var FYe=NYe;const UYe=WR,HYe=(e,t)=>e.sort((n,r)=>UYe(r,n,t));var jYe=HYe;const JYe=cs,VYe=(e,t,n)=>JYe(e,t,n)>0;var XE=VYe;const qYe=cs,GYe=(e,t,n)=>qYe(e,t,n)<0;var zR=GYe;const WYe=cs,zYe=(e,t,n)=>WYe(e,t,n)===0;var tQ=zYe;const KYe=cs,YYe=(e,t,n)=>KYe(e,t,n)!==0;var nQ=YYe;const ZYe=cs,XYe=(e,t,n)=>ZYe(e,t,n)>=0;var KR=XYe;const QYe=cs,eZe=(e,t,n)=>QYe(e,t,n)<=0;var YR=eZe;const tZe=tQ,nZe=nQ,rZe=XE,iZe=KR,aZe=zR,oZe=YR,sZe=(e,t,n,r)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return tZe(e,n,r);case"!=":return nZe(e,n,r);case">":return rZe(e,n,r);case">=":return iZe(e,n,r);case"<":return aZe(e,n,r);case"<=":return oZe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var rQ=sZe;const lZe=ia,uZe=dh,{safeRe:Jy,t:Vy}=Um,cZe=(e,t)=>{if(e instanceof lZe)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(Jy[Vy.COERCE]);else{let r;for(;(r=Jy[Vy.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),Jy[Vy.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;Jy[Vy.COERCERTL].lastIndex=-1}return n===null?null:uZe(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var fZe=cZe,e5,tU;function dZe(){return tU||(tU=1,e5=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),e5}var pZe=Vn;Vn.Node=uf;Vn.create=Vn;function Vn(e){var t=this;if(t instanceof Vn||(t=new Vn),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}Vn.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t};Vn.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};Vn.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};Vn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)mZe(this,arguments[e]);return this.length};Vn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)gZe(this,arguments[e]);return this.length};Vn.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};Vn.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};Vn.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;n!==null;r++)e.call(t,n.value,r,this),n=n.next};Vn.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;n!==null;r--)e.call(t,n.value,r,this),n=n.prev};Vn.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value};Vn.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value};Vn.prototype.map=function(e,t){t=t||this;for(var n=new Vn,r=this.head;r!==null;)n.push(e.call(t,r.value,this)),r=r.next;return n};Vn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new Vn,r=this.tail;r!==null;)n.push(e.call(t,r.value,this)),r=r.prev;return n};Vn.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;r!==null;i++)n=e(n,r.value,i),r=r.next;return n};Vn.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;r!==null;i--)n=e(n,r.value,i),r=r.prev;return n};Vn.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e};Vn.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e};Vn.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new Vn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,i=this.head;i!==null&&r<e;r++)i=i.next;for(;i!==null&&r<t;r++,i=i.next)n.push(i.value);return n};Vn.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new Vn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,i=this.tail;i!==null&&r>t;r--)i=i.prev;for(;i!==null&&r>e;r--,i=i.prev)n.push(i.value);return n};Vn.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,i=this.head;i!==null&&r<e;r++)i=i.next;for(var a=[],r=0;i&&r<t;r++)a.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var r=0;r<n.length;r++)i=hZe(this,i,n[r]);return a};Vn.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};function hZe(e,t,n){var r=t===e.head?new uf(n,null,t,e):new uf(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function mZe(e,t){e.tail=new uf(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function gZe(e,t){e.head=new uf(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function uf(e,t,n,r){if(!(this instanceof uf))return new uf(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{dZe()(Vn)}catch{}const yZe=pZe,Sc=Symbol("max"),ml=Symbol("length"),ud=Symbol("lengthCalculator"),G0=Symbol("allowStale"),Bc=Symbol("maxAge"),pl=Symbol("dispose"),nU=Symbol("noDisposeOnSet"),ci=Symbol("lruList"),qo=Symbol("cache"),iQ=Symbol("updateAgeOnGet"),t5=()=>1;class vZe{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Sc]=t.max||1/0;const n=t.length||t5;if(this[ud]=typeof n!="function"?t5:n,this[G0]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Bc]=t.maxAge||0,this[pl]=t.dispose,this[nU]=t.noDisposeOnSet||!1,this[iQ]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Sc]=t||1/0,o0(this)}get max(){return this[Sc]}set allowStale(t){this[G0]=!!t}get allowStale(){return this[G0]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Bc]=t,o0(this)}get maxAge(){return this[Bc]}set lengthCalculator(t){typeof t!="function"&&(t=t5),t!==this[ud]&&(this[ud]=t,this[ml]=0,this[ci].forEach(n=>{n.length=this[ud](n.value,n.key),this[ml]+=n.length})),o0(this)}get lengthCalculator(){return this[ud]}get length(){return this[ml]}get itemCount(){return this[ci].length}rforEach(t,n){n=n||this;for(let r=this[ci].tail;r!==null;){const i=r.prev;rU(this,t,r,n),r=i}}forEach(t,n){n=n||this;for(let r=this[ci].head;r!==null;){const i=r.next;rU(this,t,r,n),r=i}}keys(){return this[ci].toArray().map(t=>t.key)}values(){return this[ci].toArray().map(t=>t.value)}reset(){this[pl]&&this[ci]&&this[ci].length&&this[ci].forEach(t=>this[pl](t.key,t.value)),this[qo]=new Map,this[ci]=new yZe,this[ml]=0}dump(){return this[ci].map(t=>p2(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[ci]}set(t,n,r){if(r=r||this[Bc],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const i=r?Date.now():0,a=this[ud](n,t);if(this[qo].has(t)){if(a>this[Sc])return tp(this,this[qo].get(t)),!1;const l=this[qo].get(t).value;return this[pl]&&(this[nU]||this[pl](t,l.value)),l.now=i,l.maxAge=r,l.value=n,this[ml]+=a-l.length,l.length=a,this.get(t),o0(this),!0}const o=new bZe(t,n,a,i,r);return o.length>this[Sc]?(this[pl]&&this[pl](t,n),!1):(this[ml]+=o.length,this[ci].unshift(o),this[qo].set(t,this[ci].head),o0(this),!0)}has(t){if(!this[qo].has(t))return!1;const n=this[qo].get(t).value;return!p2(this,n)}get(t){return n5(this,t,!0)}peek(t){return n5(this,t,!1)}pop(){const t=this[ci].tail;return t?(tp(this,t),t.value):null}del(t){tp(this,this[qo].get(t))}load(t){this.reset();const n=Date.now();for(let r=t.length-1;r>=0;r--){const i=t[r],a=i.e||0;if(a===0)this.set(i.k,i.v);else{const o=a-n;o>0&&this.set(i.k,i.v,o)}}}prune(){this[qo].forEach((t,n)=>n5(this,n,!1))}}const n5=(e,t,n)=>{const r=e[qo].get(t);if(r){const i=r.value;if(p2(e,i)){if(tp(e,r),!e[G0])return}else n&&(e[iQ]&&(r.value.now=Date.now()),e[ci].unshiftNode(r));return i.value}},p2=(e,t)=>{if(!t||!t.maxAge&&!e[Bc])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Bc]&&n>e[Bc]},o0=e=>{if(e[ml]>e[Sc])for(let t=e[ci].tail;e[ml]>e[Sc]&&t!==null;){const n=t.prev;tp(e,t),t=n}},tp=(e,t)=>{if(t){const n=t.value;e[pl]&&e[pl](n.key,n.value),e[ml]-=n.length,e[qo].delete(n.key),e[ci].removeNode(t)}};class bZe{constructor(t,n,r,i,a){this.key=t,this.value=n,this.length=r,this.now=i,this.maxAge=a||0}}const rU=(e,t,n,r)=>{let i=n.value;p2(e,i)&&(tp(e,n),e[G0]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var EZe=vZe,r5,iU;function fs(){if(iU)return r5;iU=1;class e{constructor(u,h){if(h=r(h),u instanceof e)return u.loose===!!h.loose&&u.includePrerelease===!!h.includePrerelease?u:new e(u.raw,h);if(u instanceof i)return this.raw=u.value,this.set=[[u]],this.format(),this;if(this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease,this.raw=u.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(E=>this.parseRange(E.trim())).filter(E=>E.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const E=this.set[0];if(this.set=this.set.filter(S=>!g(S[0])),this.set.length===0)this.set=[E];else if(this.set.length>1){for(const S of this.set)if(S.length===1&&b(S[0])){this.set=[S];break}}}this.format()}format(){return this.range=this.set.map(u=>u.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(u){const E=((this.options.includePrerelease&&p)|(this.options.loose&&y))+":"+u,S=n.get(E);if(S)return S;const C=this.options.loose,I=C?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];u=u.replace(I,Q(this.options.includePrerelease)),a("hyphen replace",u),u=u.replace(s[l.COMPARATORTRIM],f),a("comparator trim",u),u=u.replace(s[l.TILDETRIM],c),a("tilde trim",u),u=u.replace(s[l.CARETTRIM],d),a("caret trim",u);let _=u.split(" ").map(ne=>A(ne,this.options)).join(" ").split(/\s+/).map(ne=>le(ne,this.options));C&&(_=_.filter(ne=>(a("loose invalid filter",ne,this.options),!!ne.match(s[l.COMPARATORLOOSE])))),a("range list",_);const x=new Map,v=_.map(ne=>new i(ne,this.options));for(const ne of v){if(g(ne))return[ne];x.set(ne.value,ne)}x.size>1&&x.has("")&&x.delete("");const k=[...x.values()];return n.set(E,k),k}intersects(u,h){if(!(u instanceof e))throw new TypeError("a Range is required");return this.set.some(E=>R(E,h)&&u.set.some(S=>R(S,h)&&E.every(C=>S.every(I=>C.intersects(I,h)))))}test(u){if(!u)return!1;if(typeof u=="string")try{u=new o(u,this.options)}catch{return!1}for(let h=0;h<this.set.length;h++)if(P(this.set[h],u,this.options))return!0;return!1}}r5=e;const t=EZe,n=new t({max:1e3}),r=GR,i=QE(),a=ZE,o=ia,{safeRe:s,t:l,comparatorTrimReplace:f,tildeTrimReplace:c,caretTrimReplace:d}=Um,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:y}=YE,g=T=>T.value==="<0.0.0-0",b=T=>T.value==="",R=(T,u)=>{let h=!0;const E=T.slice();let S=E.pop();for(;h&&E.length;)h=E.every(C=>S.intersects(C,u)),S=E.pop();return h},A=(T,u)=>(a("comp",T,u),T=J(T,u),a("caret",T),T=D(T,u),a("tildes",T),T=V(T,u),a("xrange",T),T=re(T,u),a("stars",T),T),$=T=>!T||T.toLowerCase()==="x"||T==="*",D=(T,u)=>T.trim().split(/\s+/).map(h=>M(h,u)).join(" "),M=(T,u)=>{const h=u.loose?s[l.TILDELOOSE]:s[l.TILDE];return T.replace(h,(E,S,C,I,_)=>{a("tilde",T,E,S,C,I,_);let x;return $(S)?x="":$(C)?x=`>=${S}.0.0 <${+S+1}.0.0-0`:$(I)?x=`>=${S}.${C}.0 <${S}.${+C+1}.0-0`:_?(a("replaceTilde pr",_),x=`>=${S}.${C}.${I}-${_} <${S}.${+C+1}.0-0`):x=`>=${S}.${C}.${I} <${S}.${+C+1}.0-0`,a("tilde return",x),x})},J=(T,u)=>T.trim().split(/\s+/).map(h=>U(h,u)).join(" "),U=(T,u)=>{a("caret",T,u);const h=u.loose?s[l.CARETLOOSE]:s[l.CARET],E=u.includePrerelease?"-0":"";return T.replace(h,(S,C,I,_,x)=>{a("caret",T,S,C,I,_,x);let v;return $(C)?v="":$(I)?v=`>=${C}.0.0${E} <${+C+1}.0.0-0`:$(_)?C==="0"?v=`>=${C}.${I}.0${E} <${C}.${+I+1}.0-0`:v=`>=${C}.${I}.0${E} <${+C+1}.0.0-0`:x?(a("replaceCaret pr",x),C==="0"?I==="0"?v=`>=${C}.${I}.${_}-${x} <${C}.${I}.${+_+1}-0`:v=`>=${C}.${I}.${_}-${x} <${C}.${+I+1}.0-0`:v=`>=${C}.${I}.${_}-${x} <${+C+1}.0.0-0`):(a("no pr"),C==="0"?I==="0"?v=`>=${C}.${I}.${_}${E} <${C}.${I}.${+_+1}-0`:v=`>=${C}.${I}.${_}${E} <${C}.${+I+1}.0-0`:v=`>=${C}.${I}.${_} <${+C+1}.0.0-0`),a("caret return",v),v})},V=(T,u)=>(a("replaceXRanges",T,u),T.split(/\s+/).map(h=>X(h,u)).join(" ")),X=(T,u)=>{T=T.trim();const h=u.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return T.replace(h,(E,S,C,I,_,x)=>{a("xRange",T,E,S,C,I,_,x);const v=$(C),k=v||$(I),ne=k||$(_),N=ne;return S==="="&&N&&(S=""),x=u.includePrerelease?"-0":"",v?S===">"||S==="<"?E="<0.0.0-0":E="*":S&&N?(k&&(I=0),_=0,S===">"?(S=">=",k?(C=+C+1,I=0,_=0):(I=+I+1,_=0)):S==="<="&&(S="<",k?C=+C+1:I=+I+1),S==="<"&&(x="-0"),E=`${S+C}.${I}.${_}${x}`):k?E=`>=${C}.0.0${x} <${+C+1}.0.0-0`:ne&&(E=`>=${C}.${I}.0${x} <${C}.${+I+1}.0-0`),a("xRange return",E),E})},re=(T,u)=>(a("replaceStars",T,u),T.trim().replace(s[l.STAR],"")),le=(T,u)=>(a("replaceGTE0",T,u),T.trim().replace(s[u.includePrerelease?l.GTE0PRE:l.GTE0],"")),Q=T=>(u,h,E,S,C,I,_,x,v,k,ne,N,q)=>($(E)?h="":$(S)?h=`>=${E}.0.0${T?"-0":""}`:$(C)?h=`>=${E}.${S}.0${T?"-0":""}`:I?h=`>=${h}`:h=`>=${h}${T?"-0":""}`,$(v)?x="":$(k)?x=`<${+v+1}.0.0-0`:$(ne)?x=`<${v}.${+k+1}.0-0`:N?x=`<=${v}.${k}.${ne}-${N}`:T?x=`<${v}.${k}.${+ne+1}-0`:x=`<=${x}`,`${h} ${x}`.trim()),P=(T,u,h)=>{for(let E=0;E<T.length;E++)if(!T[E].test(u))return!1;if(u.prerelease.length&&!h.includePrerelease){for(let E=0;E<T.length;E++)if(a(T[E].semver),T[E].semver!==i.ANY&&T[E].semver.prerelease.length>0){const S=T[E].semver;if(S.major===u.major&&S.minor===u.minor&&S.patch===u.patch)return!0}return!1}return!0};return r5}var i5,aU;function QE(){if(aU)return i5;aU=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=n(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),o("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(c){const d=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],p=c.match(d);if(!p)throw new TypeError(`Invalid comparator: ${c}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new s(p[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(o("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new s(c,this.options)}catch{return!1}return a(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new l(this.value,d).test(c.semver):(d=n(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||a(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||a(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}i5=t;const n=GR,{safeRe:r,t:i}=Um,a=rQ,o=ZE,s=ia,l=fs();return i5}const TZe=fs(),AZe=(e,t,n)=>{try{t=new TZe(t,n)}catch{return!1}return t.test(e)};var eT=AZe;const wZe=fs(),SZe=(e,t)=>new wZe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var _Ze=SZe;const xZe=ia,CZe=fs(),RZe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new CZe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===-1)&&(r=o,i=new xZe(r,n))}),r};var $Ze=RZe;const IZe=ia,kZe=fs(),DZe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new kZe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===1)&&(r=o,i=new IZe(r,n))}),r};var OZe=DZe;const a5=ia,LZe=fs(),oU=XE,PZe=(e,t)=>{e=new LZe(e,t);let n=new a5("0.0.0");if(e.test(n)||(n=new a5("0.0.0-0"),e.test(n)))return n;n=null;for(let r=0;r<e.set.length;++r){const i=e.set[r];let a=null;i.forEach(o=>{const s=new a5(o.semver.version);switch(o.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!a||oU(s,a))&&(a=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),a&&(!n||oU(n,a))&&(n=a)}return n&&e.test(n)?n:null};var MZe=PZe;const BZe=fs(),NZe=(e,t)=>{try{return new BZe(e,t).range||"*"}catch{return null}};var FZe=NZe;const UZe=ia,aQ=QE(),{ANY:HZe}=aQ,jZe=fs(),JZe=eT,sU=XE,lU=zR,VZe=YR,qZe=KR,GZe=(e,t,n,r)=>{e=new UZe(e,r),t=new jZe(t,r);let i,a,o,s,l;switch(n){case">":i=sU,a=VZe,o=lU,s=">",l=">=";break;case"<":i=lU,a=qZe,o=sU,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(JZe(e,t,r))return!1;for(let f=0;f<t.set.length;++f){const c=t.set[f];let d=null,p=null;if(c.forEach(y=>{y.semver===HZe&&(y=new aQ(">=0.0.0")),d=d||y,p=p||y,i(y.semver,d.semver,r)?d=y:o(y.semver,p.semver,r)&&(p=y)}),d.operator===s||d.operator===l||(!p.operator||p.operator===s)&&a(e,p.semver))return!1;if(p.operator===l&&o(e,p.semver))return!1}return!0};var ZR=GZe;const WZe=ZR,zZe=(e,t,n)=>WZe(e,t,">",n);var KZe=zZe;const YZe=ZR,ZZe=(e,t,n)=>YZe(e,t,"<",n);var XZe=ZZe;const uU=fs(),QZe=(e,t,n)=>(e=new uU(e,n),t=new uU(t,n),e.intersects(t,n));var eXe=QZe;const tXe=eT,nXe=cs;var rXe=(e,t,n)=>{const r=[];let i=null,a=null;const o=e.sort((c,d)=>nXe(c,d,n));for(const c of o)tXe(c,t,n)?(a=c,i||(i=c)):(a&&r.push([i,a]),a=null,i=null);i&&r.push([i,null]);const s=[];for(const[c,d]of r)c===d?s.push(c):!d&&c===o[0]?s.push("*"):d?c===o[0]?s.push(`<=${d}`):s.push(`${c} - ${d}`):s.push(`>=${c}`);const l=s.join(" || "),f=typeof t.raw=="string"?t.raw:String(t);return l.length<f.length?l:t};const cU=fs(),XR=QE(),{ANY:o5}=XR,s0=eT,QR=cs,iXe=(e,t,n={})=>{if(e===t)return!0;e=new cU(e,n),t=new cU(t,n);let r=!1;e:for(const i of e.set){for(const a of t.set){const o=oXe(i,a,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},aXe=[new XR(">=0.0.0-0")],fU=[new XR(">=0.0.0")],oXe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===o5){if(t.length===1&&t[0].semver===o5)return!0;n.includePrerelease?e=aXe:e=fU}if(t.length===1&&t[0].semver===o5){if(n.includePrerelease)return!0;t=fU}const r=new Set;let i,a;for(const y of e)y.operator===">"||y.operator===">="?i=dU(i,y,n):y.operator==="<"||y.operator==="<="?a=pU(a,y,n):r.add(y.semver);if(r.size>1)return null;let o;if(i&&a){if(o=QR(i.semver,a.semver,n),o>0)return null;if(o===0&&(i.operator!==">="||a.operator!=="<="))return null}for(const y of r){if(i&&!s0(y,String(i),n)||a&&!s0(y,String(a),n))return null;for(const g of t)if(!s0(y,String(g),n))return!1;return!0}let s,l,f,c,d=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1,p=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1;d&&d.prerelease.length===1&&a.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const y of t){if(c=c||y.operator===">"||y.operator===">=",f=f||y.operator==="<"||y.operator==="<=",i){if(p&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===p.major&&y.semver.minor===p.minor&&y.semver.patch===p.patch&&(p=!1),y.operator===">"||y.operator===">="){if(s=dU(i,y,n),s===y&&s!==i)return!1}else if(i.operator===">="&&!s0(i.semver,String(y),n))return!1}if(a){if(d&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===d.major&&y.semver.minor===d.minor&&y.semver.patch===d.patch&&(d=!1),y.operator==="<"||y.operator==="<="){if(l=pU(a,y,n),l===y&&l!==a)return!1}else if(a.operator==="<="&&!s0(a.semver,String(y),n))return!1}if(!y.operator&&(a||i)&&o!==0)return!1}return!(i&&f&&!a&&o!==0||a&&c&&!i&&o!==0||p||d)},dU=(e,t,n)=>{if(!e)return t;const r=QR(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},pU=(e,t,n)=>{if(!e)return t;const r=QR(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var sXe=iXe;const s5=Um,hU=YE,lXe=ia,mU=eQ,uXe=dh,cXe=uYe,fXe=dYe,dXe=hYe,pXe=gYe,hXe=bYe,mXe=AYe,gXe=_Ye,yXe=RYe,vXe=cs,bXe=DYe,EXe=PYe,TXe=WR,AXe=FYe,wXe=jYe,SXe=XE,_Xe=zR,xXe=tQ,CXe=nQ,RXe=KR,$Xe=YR,IXe=rQ,kXe=fZe,DXe=QE(),OXe=fs(),LXe=eT,PXe=_Ze,MXe=$Ze,BXe=OZe,NXe=MZe,FXe=FZe,UXe=ZR,HXe=KZe,jXe=XZe,JXe=eXe,VXe=rXe,qXe=sXe;var oQ={parse:uXe,valid:cXe,clean:fXe,inc:dXe,diff:pXe,major:hXe,minor:mXe,patch:gXe,prerelease:yXe,compare:vXe,rcompare:bXe,compareLoose:EXe,compareBuild:TXe,sort:AXe,rsort:wXe,gt:SXe,lt:_Xe,eq:xXe,neq:CXe,gte:RXe,lte:$Xe,cmp:IXe,coerce:kXe,Comparator:DXe,Range:OXe,satisfies:LXe,toComparators:PXe,maxSatisfying:MXe,minSatisfying:BXe,minVersion:NXe,validRange:FXe,outside:UXe,gtr:HXe,ltr:jXe,intersects:JXe,simplifyRange:VXe,subset:qXe,SemVer:lXe,re:s5.re,src:s5.src,tokens:s5.t,SEMVER_SPEC_VERSION:hU.SEMVER_SPEC_VERSION,RELEASE_TYPES:hU.RELEASE_TYPES,compareIdentifiers:mU.compareIdentifiers,rcompareIdentifiers:mU.rcompareIdentifiers};const gU=Ut(oQ);async function sQ(...e){return new Promise((t,n)=>{sn(()=>import("./index-3L-shBOI.js").then(r=>r.i),__vite__mapDeps([])).then(r=>{r.call||(r=r.default),r.call(...e,i=>{try{const a=JSON.parse(i);if(a.code===0){const o=JSON.parse(a.data);t(o)}else n(new Error(a.error))}catch{t(i)}})}).catch(r=>{console.error("load dsbridge error",r)})})}const GXe=[`${Vi}/connect`,`${Vi}/login`,`${Vi}/invite`,`${Vi}/issue-passport`];async function WXe(){const e=(window==null?void 0:window.blocklet)||{},t=window.location.pathname,{componentId:n,CHAIN_TYPE:r="arcblock",appPid:i}=e;if(GXe.includes(t))return null;const a=mX();try{const o=`${window.location.origin}${Vi}/api/user/loginByWallet`;return await sQ("arcLogin",{target:o,chainType:r,appPid:i,componentId:n,apps:a.map(l=>{let f=l==null?void 0:l.appLogo;return zb(f)||(f=On(l.appUrl,f)),{appName:l.appName,appPid:l.appPid,appUrl:l.appUrl,appLogo:f,sourceAppPid:l.sourceAppPid}})})}catch(o){return console.error(o),null}}async function zXe(){return await sQ("arcGetVisitorId")}function KXe({platform:e,version:t}={}){return!!(e==="ios"&&t&&gU.gte(t,"4.15.6")||e==="android"&&t&&gU.gte(t,"4.15.1"))}const{Provider:YXe,Consumer:yU}=fh,vU={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"};function ZXe(e=qJe,t="ls",n={},r={}){var f;let i="/";(f=globalThis==null?void 0:globalThis.blocklet)!=null&&f.prefix&&(i=globalThis.blocklet.prefix),typeof r=="boolean"&&(r={appendAuthServicePrefix:r,extraParams:{}}),sRe(r,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:GJe});const a=AM(e,t,n),o=AM(r.refreshTokenStorageKey,"ls");function s(c){var Je,Be;const{connectApi:d,connectHolder:p}=WKe(),y=$m(),g=Di({extraParams:{},options:{},currentLocale:c.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof c.autoConnect=="boolean"?c.autoConnect:!!c.autoLogin},get prefix(){return r.appendAuthServicePrefix||c.appendAuthServicePrefix?On(Vi,c.prefix):c.prefix}}),b=Di({action:c.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:"",get locale(){return c.locale||g.currentLocale||GZ()}}),{confirmApi:R,confirmHolder:A}=vPe(),$=en(()=>new uRe,[]),D=Ct((ke,Ce,Oe)=>{const Ke={login:[ei.LOGIN,ei.CANCEL_LOGIN],"bind-wallet":[ei.BIND_WALLET,ei.CANCEL_BIND_WALLET],"switch-passport":[ei.SWITCH_PASSPORT,ei.CANCEL_SWITCH_PASSPORT],"switch-profile":[ei.SWITCH_PROFILE,ei.CANCEL_SWITCH_PROFILE],"switch-did":[ei.LOGIN,ei.CANCEL_LOGIN]};if(!Object.keys(Ke).includes(ke))return;const Me=async(...G)=>{Oc(Ce)&&await Ce(...G),$.emit(ke,...G)};$.once(Ke[ke][0],Me),$.once(Ke[ke][1],async(...G)=>{Oc(Me)&&$.off(Ke[ke][0],Me),Oc(Oe)&&await Oe(...G),$.emit(`cancel-${ke}`,...G)})}),M=jz(b.initialized,(ke,Ce)=>ke!==Ce||ke===!0&&Ce===!0),{handleRefreshUser:J,handleRefreshToken:U,renewToken:V,clearSession:X,handleLoginResult:re,decrypt:le,service:Q,getSessionToken:P,getRefreshToken:T,setRefreshToken:u,setSessionToken:h}=dqe({state:b,pageState:g,sessionTokenStorage:a,refreshTokenStorage:o,serviceHost:c.serviceHost,apiOptions:c.apiOptions,lazyRefreshToken:c.lazyRefreshToken}),E=Ct((ke,Ce={},Oe={})=>{const Ke=ke;typeof Ke=="object"&&(ke=Ke.onSuccess,Ce=Ke.extraParams||{},Oe=Ke.options||{},Oe.origin=Ke.origin||""),(!b.user||Oe.origin==="switch-did")&&(Oe.origin==="switch-did"?D("switch-did",ke,Ke==null?void 0:Ke.onCancel):D("login",ke,Ke==null?void 0:Ke.onCancel),g.extraParams=Ce,g.options=Oe,b.action="login",Ne())}),S=Ct(async(ke,Ce={},Oe={})=>{var F;if((Ce==null?void 0:Ce.openMode)==="redirect"){const se=(Ce==null?void 0:Ce.redirect)||"/",Ee=new URL(`${Vi}/login`,window.location.origin);Ee.searchParams.set("redirect",se),Ce!=null&&Ce.forceConnected&&Ee.searchParams.set("forceConnected",Ce==null?void 0:Ce.forceConnected),Oe!=null&&Oe.origin&&Ee.searchParams.set("origin",Oe.origin),window.location.href=Ee.href;return}let Ke=Ce==null?void 0:Ce.sourceAppPid;Eu(Ke)&&K&&(Ke=te.appPid),await WW(()=>b.initialized);const Me=ke;typeof Me=="object"&&(ke=Me.onSuccess,Ce=Me.extraParams||{},Oe=Me.options||{}),typeof Oe=="string"&&(Oe={origin:Oe});const G=_l(Ce);g.allowWallet=void 0;const B=(G==null?void 0:G.openMode)||((F=c==null?void 0:c.extraParams)==null?void 0:F.openMode);Eu(B)?g.openMode="window":g.openMode=B,Ke?(b.baseUrl=globalThis.blocklet.appUrl,E(ke,G,Oe)):(b.baseUrl="",E(ke,G,Oe))}),C=gm(),I=Ct(async ke=>{const Ce=On(Vi,"/api/user/logout");await fetch(Ce,{method:"POST",body:JSON.stringify({visitorId:C}),headers:{"Content-Type":"application/json"}}),X(),be(),b.user=null,b.provider="",b.walletOS="",b.error="",b.loading=!1,$.emit("logout"),typeof ke=="function"&&ke()}),{userSessions:_,refresh:x,loaded:v,loginUserSession:k}=YX({appPid:SK(b.user),loginAppPid:(Je=globalThis==null?void 0:globalThis.blocklet)==null?void 0:Je.appPid,sourceAppPid:(Be=b==null?void 0:b.user)==null?void 0:Be.sourceAppPid,autoFetch:!1}),ne=Ct((ke,Ce={},Oe={})=>{const Ke=ke;typeof Ke=="object"&&(ke=Ke.onSuccess,Ce=Ke.extraParams||{},Oe=Ke.options||{}),typeof Oe=="string"&&(Oe={origin:Oe}),Oe!=null&&Oe.userSession?k(Oe.userSession).then(Me=>{D("switch-did",ke),re({...Me,encrypted:!1}),J(!0).then(()=>{$.emit(ei.LOGIN,Me,le)})}):(Eu(Ce==null?void 0:Ce.forceConnected)&&(Ce.forceConnected=!1),S(ke,Ce,{...Oe,origin:"switch-did"}))}),N=Ct((ke,Ce={})=>{const Oe=ke;typeof Oe=="object"&&(ke=Oe.onSuccess,Ce=Oe.extraParams||{}),b.user&&(D("switch-profile",ke,Oe==null?void 0:Oe.onCancel),g.extraParams=Ce,g.options={},b.action="switch-profile",Ne())}),q=Ct((ke,Ce={})=>{const Oe=ke;typeof Oe=="object"&&(ke=Oe.onSuccess,Ce=Oe.extraParams||{}),b.user&&(D("switch-passport",ke,Oe==null?void 0:Oe.onCancel),g.extraParams=Ce,g.options={},b.action="switch-passport",Ne())}),ie=Ct((ke,Ce={})=>{const Oe=ke;typeof Oe=="object"&&(ke=Oe.onSuccess),b.user&&(D("bind-wallet",ke,Oe==null?void 0:Oe.onCancel),g.extraParams=Ce,g.options={},b.action="bind-wallet",Ne())}),ue=Ct(ke=>{g.extraParams={},g.options={},re(ke),b.loading=!1,J(!0).then(()=>{b.action==="login"?$.emit(ei.LOGIN,ke,le):b.action==="switch-passport"&&$.emit(ei.SWITCH_PASSPORT,ke,le)})}),he=Ct(ke=>{g.extraParams={},g.options={},re(ke),b.loading=!1,J(!0).then(()=>{$.emit(ei.BIND_WALLET,ke,le)})}),Se=Ct(ke=>{g.extraParams={},g.options={},b.loading=!1,J(!0).then(()=>{$.emit(ei.SWITCH_PROFILE,ke,le)})}),j=Ct(ke=>{g.extraParams={},g.options={},be();const Ce={login:ei.CANCEL_LOGIN,"switch-profile":ei.CANCEL_SWITCH_PROFILE,"switch-passport":ei.CANCEL_SWITCH_PASSPORT,"bind-wallet":ei.CANCEL_BIND_WALLET};$.emit(Ce[ke])}),L=Ct((ke,...Ce)=>{try{we[ke](...Ce)}catch(Oe){console.error("Catch error in onSuccess",{action:ke,args:Ce,err:Oe})}}),{federatedMaster:Z,federatedEnabled:K,master:te}=lqe({locale:b.locale,decrypt:le,login:E,logout:I,handleLoginResult:re,handleRefreshUser:J,setRefreshToken:u,setSessionToken:h}),{checkMatch:ye}=Sqe({protectedRoutes:c.protectedRoutes||[]}),pe=pE(_),ae=Ct(async()=>(v||(await x(),await Nm()),pe.current)),me={api:Q,events:$,storage:a,connectApi:d,session:{...b,loading:g.autoConnect&&!b.user||b.loading,login:S,logout:I,switchDid:ne,switchProfile:N,switchPassport:q,bindWallet:ie,refresh:J,updateConnectedInfo:JZ,federatedMaster:Z,useOAuth:mR,OAuthProvider:s2,OAuthConsumer:VVe,OAuthContext:hR,useDid:uX,WrapDid:dX,getUserSessions:ae}},we={login:ue,"switch-profile":Se,"switch-passport":ue,"bind-wallet":he},be=Ct(()=>{b.open=!1,d.close()}),Ne=async()=>{var Me,G,B,F,se;const ke=sd[b.action],Ce=ke[b.locale]||ke.en,Oe={...r.extraParams,...c.extraParams,...g.extraParams,previousUserDid:(Me=b==null?void 0:b.user)==null?void 0:Me.did,email:(G=b==null?void 0:b.user)==null?void 0:G.email};Oe==null||delete Oe.openMode;const Ke={action:b.action,locale:b.locale,extraParams:Oe,options:{...c.options||{},...g.options},checkTimeout:c.timeout,webWalletUrl:c.webWalletUrl,messages:Ce,useSocket:c.useSocket,...f6(c,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...iE(g.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:g.prefix,allowWallet:Eu(g.allowWallet)?b.action!=="login"||(((B=globalThis.blocklet)==null?void 0:B.DID_CONNECT_ALLOW_WALLET)||"1")==="1":g.allowWallet,onSuccess(...Ee){L(b.action,...Ee),setTimeout(()=>{b.open=!1},2e3)},onClose(...Ee){j(b.action,...Ee)},onError(Ee){console.error(Ee)}};if(b.open=!0,["login"].includes(b.action)&&g.openMode==="window"&&!y.wallet)try{const Ee={...Ke,baseUrl:window.location.origin};zb(g.prefix)||(Ee.prefix=On(window.location.origin,c.serviceHost==="/"?"":c.serviceHost,g.prefix)),(F=Ee.extraParams)!=null&&F.provider||(Ee.extraParams.provider=((se=b==null?void 0:b.user)==null?void 0:se.provider)||"wallet"),await d.openPopup(Ee,{locale:b.locale})}catch(Ee){Ee.message==="Timeout"?Ci.error(vU[b.locale]||vU.en):console.error(Ee)}else d.open(Ke)};return af(()=>{if(b.initialized){const ke=!M;$.emit("change",{user:_l(b.user),isFirst:ke})}},[b.user,b.initialized,$]),af(()=>{if(b.initialized&&b.user){const{params:ke,url:Ce}=eVe();if(ke){const{switchBehavior:Oe,forceConnected:Ke,sourceAppPid:Me}=ke;window.history.replaceState(null,"trim",Ce),Ke!==b.user.did&&(Oe==="required"?ne(()=>{},{openMode:"redirect",sourceAppPid:Me,forceConnected:Ke}):Oe==="disabled"||setTimeout(()=>{R.open({title:sd.switchAccountDialog[b.locale].title,content:W.jsxs(W.Fragment,{children:[W.jsx(Br,{variant:"body1",sx:{textAlign:"center",mb:2},children:sd.switchAccountDialog[b.locale].description}),W.jsxs(yt,{sx:{display:"flex",alignItems:"center",color:Rt.foregroundsFgBase},children:[W.jsxs(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1},children:[W.jsx(Bl,{did:b.user.did,shape:"circle",variant:"circle",size:80}),W.jsx(Ep,{did:b.user.did,showAvatar:!1,compact:!0,responsive:!1}),sd.switchAccountDialog[b.locale].currentAccount]}),W.jsx(yt,{sx:{display:"flex",justifyContent:"center",px:2},children:W.jsx(yt,{component:Zn,icon:ePe,fontSize:24,color:Rt.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}}}})}),W.jsxs(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1,fontWeight:500},children:[W.jsx(Bl,{did:Ke,shape:"circle",variant:"circle",size:80}),W.jsx(Ep,{did:Ke,showAvatar:!1,compact:!0,responsive:!1}),sd.switchAccountDialog[b.locale].nextAccount]})]})]}),showCancelButton:!1,confirmButtonText:sd.switchAccountDialog[b.locale].confirm,onConfirm(G){G(),ne(()=>{window.location.reload()},{sourceAppPid:Me,forceConnected:Ke},{showQuickConnect:!1})}})},1e3))}}},[b.initialized]),xm(async()=>{const ke=Mr.get("connected_app"),Ce=nR();if(c.autoDisconnect&&ke&&Ce&&ke!==Ce){X(),b.initialized=!0,g.autoConnect?Ne():be();return}const Oe=P();let Ke="web";if(y.mobile.apple.device?Ke="ios":y.mobile.android.device&&(Ke="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&y.wallet&&KXe({version:y.walletVersion,platform:Ke})){if(!C){const G=await zXe();JG(G)}if(!Oe)try{b.loading=!0;const G=await WXe();if(G){b.initialized=!0,ue({sessionToken:G.sessionToken,refreshToken:G.refreshToken,encrypted:!1});return}}finally{b.loading=!1}}if(Oe){await J(!0),b.initialized=!0;return}if(typeof window<"u"){const G=new URL(window.location.href),B=G.searchParams.get("loginToken");if(B){re({loginToken:B,encrypted:!1}),G.searchParams.delete("loginToken"),window.history.replaceState({},window.title,G.href);return}}if(T()){await U(!0),b.initialized=!0;return}try{}catch(G){console.error("Federated: tryAutoLogin failed",G)}finally{b.initialized=!0}g.autoConnect?Ne():be()}),ye()&&!b.initialized?W.jsx(pp,{children:W.jsx(K8,{})}):W.jsx(YXe,{value:me,children:W.jsxs(s2,{locale:b.locale,onSwitchPassport:({sessionToken:ke,refreshToken:Ce})=>{ue({sessionToken:ke,refreshToken:Ce,encrypted:!1})},onBindOAuth:()=>{J()},children:[!b.open&&typeof c.children=="function"?c.children(b):c.children,p,A,r.rolling&&W.jsx(WZ,{callback:()=>V()})]})})}s.propTypes={children:ge.any.isRequired,serviceHost:ge.string,action:ge.string,prefix:ge.string,appendAuthServicePrefix:ge.bool,locale:ge.string,timeout:ge.number,autoConnect:ge.bool,autoDisconnect:ge.bool,useSocket:ge.bool,extraParams:ge.object,options:ge.object,webWalletUrl:ge.string,protectedRoutes:ge.arrayOf(ge.string),apiOptions:ge.object,lazyRefreshToken:ge.bool},s.defaultProps={serviceHost:i,locale:"",action:"login",prefix:tR,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:NZ*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function l(c){return function(p){return W.jsx(F3,{children:W.jsx(yU,{children:y=>W.jsx(c,{...p,...y})})})}}return{SessionProvider:c=>W.jsx(F3,{children:W.jsx(s,{...c})}),SessionConsumer:yU,SessionContext:fh,withSession:l}}let lQ="/";window.env&&(lQ=window.env.groupPathPrefix||window.env.pathPrefix||"/");function uQ(e,t){return[void 0,null,""].includes(e)?t:e/86400}var YH,ZH,XH;const XXe=uQ((XH=(ZH=(YH=window.blocklet)==null?void 0:YH.settings)==null?void 0:ZH.session)==null?void 0:XH.cacheTtl,1/144);var QH,ej,tj;const QXe=uQ((tj=(ej=(QH=window.blocklet)==null?void 0:QH.settings)==null?void 0:ej.session)==null?void 0:tj.ttl,7),{SessionProvider:eQe,SessionContext:tQe,SessionConsumer:Gmt,withSession:Wmt}=ZXe("login_token","cookie",{returnDomain:!1,path:lQ,expireInDays:XXe},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays:QXe});function cQ(){return z.useContext(tQe)}function nQe({children:e}){const t=Lq({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return W.jsx(yq,{injectFirst:!0,children:W.jsx(nve,{theme:t,children:W.jsx(gq,{theme:t,children:W.jsx($8,{translations:o6e,fallbackLocale:"en",children:W.jsx(F3,{children:W.jsx(t$,{theme:t,children:e})})})})})})}const e$=new URL(window.location.href),fQ=e$.searchParams.get("mode")||"",rQe=e$.pathname.includes("embed")&&fQ==="dialog",iQe=e$.pathname.includes("embed")&&fQ!=="dialog";function t$({children:e,theme:t}){var i,a,o;const{locale:n}=Kb(),r=Gs`
|
|
516
|
+
`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let i of this.reqs)i.abort();this.readyState=_s.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,i){let a,o=()=>{this.reqs.delete(a),r()};a=d2.request(e,this.endpointURL(),t,n,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},b0=class{constructor(e,t={}){let n=t.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(n.state,r=>{let{onJoin:i,onLeave:a,onSync:o}=this.caller;this.joinRef=this.channel.joinRef(),this.state=b0.syncState(this.state,r,i,a),this.pendingDiffs.forEach(s=>{this.state=b0.syncDiff(this.state,s,i,a)}),this.pendingDiffs=[],o()}),this.channel.on(n.diff,r=>{let{onJoin:i,onLeave:a,onSync:o}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(r):(this.state=b0.syncDiff(this.state,r,i,a),o())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return b0.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,t,n,r){let i=this.clone(e),a={},o={};return this.map(i,(s,l)=>{t[s]||(o[s]=l)}),this.map(t,(s,l)=>{let f=i[s];if(f){let c=l.metas.map(g=>g.phx_ref),d=f.metas.map(g=>g.phx_ref),p=l.metas.filter(g=>d.indexOf(g.phx_ref)<0),y=f.metas.filter(g=>c.indexOf(g.phx_ref)<0);p.length>0&&(a[s]=l,a[s].metas=p),y.length>0&&(o[s]=this.clone(f),o[s].metas=y)}else a[s]=l}),this.syncDiff(i,{joins:a,leaves:o},n,r)}static syncDiff(e,t,n,r){let{joins:i,leaves:a}=this.clone(t);return n||(n=function(){}),r||(r=function(){}),this.map(i,(o,s)=>{let l=e[o];if(e[o]=this.clone(s),l){let f=e[o].metas.map(d=>d.phx_ref),c=l.metas.filter(d=>f.indexOf(d.phx_ref)<0);e[o].metas.unshift(...c)}n(o,l,s)}),this.map(a,(o,s)=>{let l=e[o];if(!l)return;let f=s.metas.map(c=>c.phx_ref);l.metas=l.metas.filter(c=>f.indexOf(c.phx_ref)<0),r(o,l,s),l.metas.length===0&&delete e[o]}),e}static list(e,t){return t||(t=function(n,r){return r}),this.map(e,(n,r)=>t(n,r))}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static clone(e){return JSON.parse(JSON.stringify(e))}},E0={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,a,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:a,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:a}=e,o=this.META_LENGTH+t.length+n.length+i.length+r.length,s=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(s),f=0;l.setUint8(f++,this.KINDS.push),l.setUint8(f++,t.length),l.setUint8(f++,n.length),l.setUint8(f++,i.length),l.setUint8(f++,r.length),Array.from(t,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(i,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(f++,d.charCodeAt(0)));var c=new Uint8Array(s.byteLength+a.byteLength);return c.set(new Uint8Array(s),0),c.set(new Uint8Array(a),s.byteLength),c.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(e.slice(o,o+r));o=o+r;let l=n.decode(e.slice(o,o+i));o=o+i;let f=n.decode(e.slice(o,o+a));o=o+a;let c=e.slice(o,e.byteLength);return{join_ref:s,ref:null,topic:l,event:f,payload:c}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(s,s+r));s=s+r;let f=n.decode(e.slice(s,s+i));s=s+i;let c=n.decode(e.slice(s,s+a));s=s+a;let d=n.decode(e.slice(s,s+o));s=s+o;let p=e.slice(s,e.byteLength),y={status:d,response:p};return{join_ref:l,ref:f,topic:c,event:dl.reply,payload:y}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=this.HEADER_LENGTH+2,o=n.decode(e.slice(a,a+r));a=a+r;let s=n.decode(e.slice(a,a+i));a=a+i;let l=e.slice(a,e.byteLength);return{join_ref:null,ref:null,topic:o,event:s,payload:l}}},fze=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||lze,this.transport=n.transport||q0.WebSocket||Wv,this.establishedConnections=0,this.defaultEncoder=E0.encode.bind(E0),this.defaultDecoder=E0.decode.bind(E0),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Wv?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;v0&&v0.addEventListener&&(v0.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),v0.addEventListener("pageshow",i=>{r===this.connectClock&&(r=null,this.connect())})),this.heartbeatIntervalMs=n.heartbeatIntervalMs||3e4,this.rejoinAfterMs=i=>n.rejoinAfterMs?n.rejoinAfterMs(i):[1e3,2e3,5e3][i-1]||1e4,this.reconnectAfterMs=i=>n.reconnectAfterMs?n.reconnectAfterMs(i):[10,50,100,150,200,250,500,1e3,2e3][i-1]||5e3,this.logger=n.logger||null,this.longpollerTimeout=n.longpollerTimeout||2e4,this.params=V0(n.params||{}),this.endPoint=`${t}/${tx.websocket}`,this.vsn=n.vsn||sze,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new VX(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Wv}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=d2.appendParams(d2.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,n,r){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,n,r)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=V0(t)),!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=n=>this.onConnError(n),this.conn.onmessage=n=>this.onConnMessage(n),this.conn.onclose=n=>this.onConnClose(n))}log(t,n,r){this.logger(t,n,r)}hasLogger(){return this.logger!==null}onOpen(t){let n=this.makeRef();return this.stateChangeCallbacks.open.push([n,t]),n}onClose(t){let n=this.makeRef();return this.stateChangeCallbacks.close.push([n,t]),n}onError(t){let n=this.makeRef();return this.stateChangeCallbacks.error.push([n,t]),n}onMessage(t){let n=this.makeRef();return this.stateChangeCallbacks.message.push([n,t]),n}ping(t){if(!this.isConnected())return!1;let n=this.makeRef(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:n});let i=this.onMessage(a=>{a.ref===n&&(this.off([i]),t(Date.now()-r))});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(([,t])=>t())}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(),uze,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,n,r){if(!this.conn)return t&&t();this.waitForBufferDone(()=>{this.conn&&(n?this.conn.close(n,r||""):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),t&&t()})})}waitForBufferDone(t,n=1){if(n===5||!this.conn||!this.conn.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(t,n+1)},150*n)}waitForSocketClosed(t,n=1){if(n===5||!this.conn||this.conn.readyState===_s.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(t,n+1)},150*n)}onConnClose(t){let n=t&&t.code;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&n!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,r])=>r(t))}onConnError(t){this.hasLogger()&&this.log("transport",t);let n=this.transport,r=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,i])=>{i(t,n,r)}),(n===this.transport||r>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(dl.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case _s.connecting:return"connecting";case _s.open:return"open";case _s.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(n=>n.joinRef()!==t.joinRef())}off(t){for(let n in this.stateChangeCallbacks)this.stateChangeCallbacks[n]=this.stateChangeCallbacks[n].filter(([r])=>t.indexOf(r)===-1)}channel(t,n={}){let r=new qX(t,n,this);return this.channels.push(r),r}push(t){if(this.hasLogger()){let{topic:n,event:r,payload:i,ref:a,join_ref:o}=t;this.log("push",`${n} ${r} (${o}, ${a})`,i)}this.isConnected()?this.encode(t,n=>this.conn.send(n)):this.sendBuffer.push(()=>this.encode(t,n=>this.conn.send(n)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,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(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:i,payload:a,ref:o,join_ref:s}=n;o&&o===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${a.status||""} ${r} ${i} ${o&&"("+o+")"||""}`,a);for(let l=0;l<this.channels.length;l++){const f=this.channels[l];f.isMember(r,i,a,s)&&f.trigger(i,a,o,s)}for(let l=0;l<this.stateChangeCallbacks.message.length;l++){let[,f]=this.stateChangeCallbacks.message[l];f(n)}})}leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r.isJoined()||r.isJoining()));n&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),n.leave())}},nx={exports:{}},WS,MF;function dze(){if(MF)return WS;MF=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;WS=function(c,d){d=d||{};var p=typeof c;if(p==="string"&&c.length>0)return o(c);if(p==="number"&&isFinite(c))return d.long?l(c):s(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function o(c){if(c=String(c),!(c.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(d){var p=parseFloat(d[1]),y=(d[2]||"ms").toLowerCase();switch(y){case"years":case"year":case"yrs":case"yr":case"y":return p*a;case"weeks":case"week":case"w":return p*i;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function s(c){var d=Math.abs(c);return d>=r?Math.round(c/r)+"d":d>=n?Math.round(c/n)+"h":d>=t?Math.round(c/t)+"m":d>=e?Math.round(c/e)+"s":c+"ms"}function l(c){var d=Math.abs(c);return d>=r?f(c,d,r,"day"):d>=n?f(c,d,n,"hour"):d>=t?f(c,d,t,"minute"):d>=e?f(c,d,e,"second"):c+" ms"}function f(c,d,p,y){var g=d>=p*1.5;return Math.round(c/p)+" "+y+(g?"s":"")}return WS}function pze(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=o,n.humanize=dze(),n.destroy=f,Object.keys(e).forEach(c=>{n[c]=e[c]}),n.names=[],n.skips=[],n.formatters={};function t(c){let d=0;for(let p=0;p<c.length;p++)d=(d<<5)-d+c.charCodeAt(p),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(c){let d,p=null,y,g;function b(...R){if(!b.enabled)return;const A=b,$=Number(new Date),D=$-(d||$);A.diff=D,A.prev=d,A.curr=$,d=$,R[0]=n.coerce(R[0]),typeof R[0]!="string"&&R.unshift("%O");let M=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(U,V)=>{if(U==="%%")return"%";M++;const X=n.formatters[V];if(typeof X=="function"){const re=R[M];U=X.call(A,re),R.splice(M,1),M--}return U}),n.formatArgs.call(A,R),(A.log||n.log).apply(A,R)}return b.namespace=c,b.useColors=n.useColors(),b.color=n.selectColor(c),b.extend=r,b.destroy=n.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(y!==n.namespaces&&(y=n.namespaces,g=n.enabled(c)),g),set:R=>{p=R}}),typeof n.init=="function"&&n.init(b),b}function r(c,d){const p=n(this.namespace+(typeof d>"u"?":":d)+c);return p.log=this.log,p}function i(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];let d;const p=(typeof c=="string"?c:"").split(/[\s,]+/),y=p.length;for(d=0;d<y;d++)p[d]&&(c=p[d].replace(/\*/g,".*?"),c[0]==="-"?n.skips.push(new RegExp("^"+c.slice(1)+"$")):n.names.push(new RegExp("^"+c+"$")))}function a(){const c=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let d,p;for(d=0,p=n.skips.length;d<p;d++)if(n.skips[d].test(c))return!1;for(d=0,p=n.names.length;d<p;d++)if(n.names[d].test(c))return!0;return!1}function s(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function l(c){return c instanceof Error?c.stack||c.message:c}function f(){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 n.enable(n.load()),n}var hze=pze;(function(e,t){var n={};t.formatArgs=i,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.destroy=(()=>{let f=!1;return()=>{f||(f=!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`."))}})(),t.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 r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1: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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(f){if(f[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+f[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;f.splice(1,0,c,"color: inherit");let d=0,p=0;f[0].replace(/%[a-zA-Z%]/g,y=>{y!=="%%"&&(d++,y==="%c"&&(p=d))}),f.splice(p,0,c)}t.log=console.debug||console.log||(()=>{});function a(f){try{f?t.storage.setItem("debug",f):t.storage.removeItem("debug")}catch{}}function o(){let f;try{f=t.storage.getItem("debug")}catch{}return!f&&typeof Xt<"u"&&"env"in Xt&&(f=n.DEBUG),f}function s(){try{return localStorage}catch{}}e.exports=hze(t);const{formatters:l}=e.exports;l.j=function(f){try{return JSON.stringify(f)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(nx,nx.exports);var PR=nx.exports;const mze=PR;var gze=(e,t=!1)=>{const n=mze(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const yze=gze;var vze=(e,t,n)=>class extends e{constructor(i,a={}){super(i,{transport:n,...a}),this._logger=yze("client",a.silent),this.emitter=new t,this.onOpen(()=>{this._logger.debug("socket open",i)}),this.onClose(()=>{this._logger.debug("socket close",i)}),this.onError(o=>{this._logger.error("socket error",o.error)}),this.onMessage(o=>{this._logger.debug("socket message",o)})}on(i,a,o={}){this.ensureJoinChannel(i,o),this.emitter.on(i,a)}off(i,a){a?this.emitter.off(i,a):this.emitter.removeAllListeners(i),this.ensureLeaveChannel(i)}disconnect(i,a,o){this.emitter.eventNames().forEach(s=>{this.emitter.removeAllListeners(s)}),super.disconnect(i,a,o)}ensureJoinChannel(i,a={}){if(this.emitter.listenerCount(i)>0)return;const s=this.channel(i,a);s.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),s.on(i,({status:l,response:f})=>{l==="ok"?this.emitter.emit(i,f):this._logger.debug("response error",{topic:i,status:l,data:f})})}ensureLeaveChannel(i){if(this.emitter.listenerCount(i)>0)return;const o=this.channels.find(s=>s.topic===i);o&&(this.remove(o),o.leave().receive("ok",s=>{this._logger.debug("leave success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("leave error",{topic:i,err:s})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:i})}),o.off(i))}subscribe(i,a={}){let o=this.channels.find(s=>s.topic===i);return o||(o=this.channel(i,a),o.join().receive("ok",s=>{this._logger.debug("join success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("join error",{topic:i,error:s})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),o)}unsubscribe(i){this.ensureLeaveChannel(i)}};const bze=jX,{Socket:Eze}=aze,Tze=vze;var Aze=Tze(Eze,bze);const wze=Aze;var MR={WsClient:wze};function Sze(e){const t=z.useRef(e);z.useEffect(()=>{t.current=e},[e]),z.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function _ze(e){const t=e||window.location.href;return new URL(t).host}function T0(e){const t={},n=e||window.location.href;if(n){const{hostname:r,protocol:i,port:a}=new URL(n);t["x-real-hostname"]=r,t["x-real-port"]=a,t["x-real-protocol"]=i.endsWith(":")?i.substring(0,i.length-1):i}return t}const zS={};function xze({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const a=`${t}/token?${m0(r)}`;return zS[a]||(zS[a]=async function(){var d,p;const s=+new Date,l=await n(a,{headers:T0(i)}),f=+new Date;if(f-s<500&&await Nm(500-(f-s)),(d=l==null?void 0:l.data)!=null&&d.token)return l.data;if((p=l==null?void 0:l.data)!=null&&p.error)throw new Error(l.data.error);const c=zb(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${c}`)}),zS[a]}const Cze=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=ZJe(t);return{token:XJe(n),url:n}}catch(e){return{error:e}}},GX=()=>Ms(globalThis,"blocklet.appPid")||Ms(globalThis,"blocklet.appId")||Ms(globalThis,"env.appId")||"",Rze=()=>(Ms(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(FZ,""),KS=e=>`relay:${GX()}:${e}`,$ze=()=>window.location.protocol==="https:"?"wss:":"ws:",BF=e=>!e||new URL(e).origin===window.location.origin,NF=e=>["succeed","error","timeout","busy"].includes(e);function Ize({action:e,checkFn:t,checkInterval:n,checkTimeout:r,extraParams:i,locale:a,prefix:o,tokenKey:s,encKey:l,onError:f,onSuccess:c,baseUrl:d,autoConnect:p=!0,forceConnected:y=!0,saveConnect:g=!0,useSocket:b=!0,provider:R="wallet"}){const A=Di({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:d,prefix:`${o}/${e}`,extraParams:LF(i,PF),checkFn:t,results:{},action:e,provider:R}),$=B1[a]||B1.en,D=en(()=>Cze(),[]),M=Math.ceil(r/n),J=Di({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:U,decrypt:V}=Kqe(),X=$m(),re=gm(),le=Ct((...x)=>{const v={[l]:U,...A.extraParams,locale:a,forceConnected:y,autoConnect:p&&!X.wallet&&!J.cancelWhenScannedCounter&&["ios","android"].includes(Mr.get("connected_wallet_os")),provider:A.provider};return re&&(v.visitorId=re),xze({action:e,prefix:A.prefix,baseUrl:A.baseUrl,checkFn:A.checkFn,extraParams:v})(...x)}),Q=()=>{J.cancelWhenScannedCounter++};z.useEffect(()=>{J.cancelWhenScannedCounter>0&&(i.nw?f(new Error($.retryForbidden)):S())},[J.cancelWhenScannedCounter]);const P=z.useRef(null),T=z.useRef(null);z.useEffect(()=>(b&&BF(A.baseUrl)&&GX()?(!P.current||P.current.isConnected()===!1||P.current.baseUrl!==A.baseUrl)&&(P.current=new MR.WsClient(`${$ze()}//${_ze(A.baseUrl)}${Rze()}${FZ}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),P.current.baseUrl=A.baseUrl,P.current.onOpen(()=>{J.isSocketAvailable=!0}),P.current.connect()):J.isSocketAvailable&&(J.isSocketAvailable=!1),()=>{P.current&&(P.current.disconnect(),P.current=null)}),[A.baseUrl]);const u={...A.extraParams,locale:a,[s]:A.token||(D==null?void 0:D.token),provider:A.provider},h=()=>!A.token||A.loading||NF(A.status)?null:n,E=async()=>{try{u[s]&&A.status==="created"&&await A.checkFn(`${A.prefix}/timeout?${m0(u)}`,{headers:T0(A.baseUrl)})}catch{}try{A.token&&T.current&&(await P.current.unsubscribe(KS(A.token)),T.current=null)}catch{}},S=Ct(async(x=!0)=>{x&&E();try{A.loading=!0,A.token="",A.url="",A.store=null,A.extraParams=LF(i,PF),await Nm();const v=await le(),k=v.extra||{};A.loading=!1,A.token=v.token,A.url=v.url,A.status="created",A.error="",A.checkCount=0,A.appInfo=v.appInfo,A.memberAppInfo=v.memberAppInfo,A.connectedDid=k.connectedDid,A.saveConnect=k.saveConnect}catch(v){A.loading=!1,A.status="error",A.error=`${$.generateError}: ${v.message}`}}),C=z.useRef(null);z.useEffect(()=>{C.current={state:A,params:u}}),z.useEffect(()=>()=>{const{state:x,params:v}=C.current;x.status==="created"&&v[s]&&x.checkFn(`${x.prefix}/timeout?${m0(v)}`,{headers:T0(x.baseUrl)})},[]);const I=async()=>{try{if(D.error)throw D.error;A.loading=!0,A.token=D.token,A.url=D.url,A.inExistingSession=!0;const x=await _();if(x!=null&&x.status&&(x==null?void 0:x.status)!=="created")throw new Error(`${$.invalidSessionStatus} [${x.status}]`)}catch(x){A.status="error",A.error=x.message,f(x,A==null?void 0:A.store,V)}finally{A.loading=!1}};z.useEffect(()=>{if(!A.token&&!A.store&&!A.loading&&!A.error)if(D)I();else{S(!1);return}if(A.status!=="timeout"&&A.checkCount>M){A.status="timeout",E();return}if(A.status==="succeed"&&!J.onSuccessCalled&&(BF(A.baseUrl)&&g&&A.saveConnect&&A.store.did&&JZ({...A.store,appInfo:A.appInfo,memberAppInfo:A.memberAppInfo}),A.store)){const{nextWorkflow:x}=A.store;if(x)try{const v=QJe(x,s);A.nextWorkflow=(v==null?void 0:v.nextWorkflow)||x,Object.assign(A,v),A.store=null,A.error="",A.url="",A.appInfo=null,A.memberAppInfo=null,A.checkCount=0,A.status="scanned",A.results={...A.results,[A.token]:A.store},A.checkFn=Gl({baseURL:v.baseUrl,timeout:8e3}).get,_()}catch(v){console.error(`Invalid nextWorkflow: ${x}`,v),A.status="error",A.error=`Invalid nextWorkflow: ${x}: ${v.message}`}else if(A.nextWorkflow&&(A.nextWorkflow="",A.url=""),typeof c=="function"){const v=Object.values({...A.results,[A.token]:A.store});J.onSuccessCalled=!0;const k=v.length>1?v:v[0],ne=_l(k);c(ne,V,{sourceAppPid:i==null?void 0:i.sourceAppPid})}}}),z.useEffect(()=>{if(A.token&&J.isSocketAvailable&&P.current){let x=!1;T.current?T.current.token!==A.token&&(P.current.unsubscribe(KS(T.current.token)),x=!0):x=!0,x&&(T.current=P.current.subscribe(KS(A.token)),T.current.token=A.token,T.current.on("updated",({response:v})=>{let{status:k,error:ne}=v;k==="forbidden"&&(ne=$.forbidden,k="error"),A.status=k,A.mfaCode=v.mfaCode||0,A.store=v,A.error=ne}))}},[A.token,J.isSocketAvailable,P.current]);const _=async(x=!1)=>{var v;if(A.checking||(A.status==="created"&&A.checkCount++,J.isSocketAvailable&&!x))return null;try{A.checking=!0;const k=await A.checkFn(`${A.prefix}/status?${m0(u)}`,{headers:T0(A.baseUrl)}),{status:ne,error:N,mfaCode:q=0}=k.data;if(A.store=k.data,A.mfaCode=q,A.checking=!1,A.status=ne,ne==="error"&&N){const ie=new Error(N);throw ie.response=k,ie}return k.data}catch(k){const{response:ne}=k;if(ne!=null&&ne.status){u[s]&&A.checkFn(`${A.prefix}/timeout?${m0(u)}`,{headers:T0(A.baseUrl)});const N=(v=ne==null?void 0:ne.data)!=null&&v.error?ne.data.error:k.message,q=new Error(N);q.code=ne.status,A.status="error",A.checking=!1,A.error=N,f(q,A==null?void 0:A.store,V)}else A.status="error",A.checking=!1,A.error=$.generateError}return null};return ZWe(_,h()),Sze(()=>{J.isSocketAvailable&&A.token&&NF(A.status)===!1&&_(!0)}),{state:A,generate:S,cancelWhenScanned:Q}}function BR({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i}=Wl(),a=r("openInWallet"),o=en(()=>{if(!e.url)return"";const f=new URL(window.location.href);f.searchParams.set("tokenKey",e.token);const c=new URL(e.url);return c.searchParams.set("callback",encodeURIComponent(f)),c.searchParams.set("callback_delay",1500),c.searchParams.set("locale",t),c.href.replace(/^https?:\/\//,"abt://")},[n,e.token]),s=Ct(()=>{sn(()=>import("./index-ktOfCEiQ.js").then(f=>f.i),__vite__mapDeps([])).then(f=>{f.call||(f=f.default),f.call("authAction",{action:"auth",deepLink:o})}).catch(f=>{console.error("load dsbridge error",f)})}),l={};return i||(l.component="a",l.href=o),xm(()=>{o&&s()}),W.jsxs(Zu,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:Rt.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...l,onClick:i?s:Bn,children:[W.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[W.jsx(Ip,{width:"24px",height:"24px"}),W.jsx(Br,{sx:{fontSize:"14px",fontWeight:500},children:a})]}),W.jsx(Zn,{icon:GE,fontSize:"1.3rem",color:Rt.primaryBase})]})}BR.propTypes={tokenState:ge.object.isRequired,locale:ge.string,tokenKey:ge.string};BR.defaultProps={locale:"en",tokenKey:"_t_"};const kze={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 WX({onRefresh:e,...t}){const n=r=>{r.stopPropagation(),e()};return W.jsx(yt,{...t,onClick:n,sx:{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(0, 0, 0, 0.1)",cursor:"pointer",...t.sx},children:W.jsx(yt,{sx:{backgroundColor:Rt.foregroundsFgInteractive,borderRadius:"100%",fontSize:0},children:W.jsx(Zn,{icon:kze,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})})})}WX.propTypes={onRefresh:ge.func.isRequired};const Fy=["scanned","succeed","error","busy"];function NR({onSuccess:e,onError:t,action:n,prefix:r,checkFn:i,checkInterval:a,checkTimeout:o,locale:s,tokenKey:l,encKey:f,baseUrl:c,autoConnect:d,forceConnected:p,saveConnect:y,useSocket:g,allowWallet:b,provider:R,webWalletUrl:A,onRecreateSession:$,onClose:D,messages:M,enabledConnectTypes:J}){var K,te,ye;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const U=z.useContext(fh),{connectState:V,extraParams:X,staticState:re,changeStatus:le,isWalletWebview:Q,matchSmallScreen:P}=Wl(),T=$m(),u=en(()=>{var pe;return R||(X==null?void 0:X.provider)||((pe=U==null?void 0:U.session)==null?void 0:pe.provider)||"wallet"},[X==null?void 0:X.provider,(K=U==null?void 0:U.session)==null?void 0:K.provider]);z.useEffect(()=>{C(c)},[c]);const{state:h,generate:E,cancelWhenScanned:S}=Ize({action:n,baseUrl:c,checkFn:i,checkInterval:a,checkTimeout:o,extraParams:X,prefix:r,onError:t,onSuccess:e,locale:s,tokenKey:l,encKey:f,autoConnect:d,forceConnected:p,saveConnect:y,useSocket:g,allowWallet:b,provider:u}),{setBaseUrl:C,oauthConfigList:I,oauthState:_}=mR({defaultStatus:h.status}),x=jz(V==null?void 0:V.sourceAppPid);af(()=>{Eu(x)||E()},[V==null?void 0:V.sourceAppPid]);const v=en(()=>Fy.includes(_.status)||Fy.includes(h.status),[h.status,_.status]);z.useEffect(()=>{Fy.includes(_.status)?le(_.status):Fy.includes(h.status)?le(h.status):le("created")},[le,h.status,_.status]);const k=Ct(()=>{$(),_.reset(),h.inExistingSession||E(!1)}),ne=Ct(()=>{$(),h.inExistingSession||(re.current.cancelCount++,S())}),N=en(()=>({confirm:M.confirm,success:M.success,error:h.error||_.error||""}),[M.confirm,M.success,h.error,_.error]),q=en(()=>b&&J.includes("mobile")&&!Q,[b,J,Q]),ie=HZ(A),ue=en(()=>b&&J.includes("web")&&(ie||Wb())&&!T.mobile.any,[b,J,(te=T==null?void 0:T.mobile)==null?void 0:te.any]),he=en(()=>b&&J.includes("mobile")&&T.mobile.any,[b,J,(ye=T==null?void 0:T.mobile)==null?void 0:ye.any]),Se=en(()=>{const pe=NGe(["auth0","apple","github","google"],J);return I.filter(ae=>pe.includes(ae.provider))},[I,J]),j=en(()=>Se.length>0&&["login","invite"].includes(h.action),[Se]),L=en(()=>{const pe=q||ue||he;let ae=null;return j&&(ae=pe?W.jsxs(W.Fragment,{children:[W.jsx(Y8,{light:!0,sx:{color:Rt.textMuted,width:P?"200px":"368px",maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:Rt.lineStep}},children:"OR"}),W.jsx(f2,{providerList:Se,onSuccess:e,onError:t,tokenState:h,locale:s})]}):W.jsx(f2,{providerList:Se,onSuccess:e,onError:t,tokenState:h,type:"list",locale:s})),W.jsxs(W.Fragment,{children:[h.status==="timeout"?W.jsx(WX,{onRefresh:k,sx:{zIndex:1,animation:"fadeIn 1s","@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}}}):null,W.jsx(yt,{"data-did-auth-url":h.url,sx:{display:"none"}}),he&&W.jsx(BR,{tokenState:h,locale:s,tokenKey:l}),q&&W.jsx(DR,{tokenState:h,messages:M,locale:s}),ue&&W.jsx(IR,{tokenState:h,webWalletUrl:A,locale:s}),ae]})},[h.url,h.status,q,ue,he]);return en(()=>h.loading||_.loading||!h.token,[h.loading,_.loading])?W.jsx(TR,{}):v?W.jsxs(W.Fragment,{children:[W.jsx(yt,{"data-did-auth-url":h.url,sx:{display:"none"}}),W.jsx(WE,{status:_.status||h.status,nextWorkflow:h.nextWorkflow,mfaCode:h.mfaCode,onCancel:ne,onRetry:k,onClose:D,messages:N,locale:s,className:"auth-status"})]}):L}NR.propTypes={onError:ge.func,onSuccess:ge.func.isRequired,action:ge.string.isRequired,checkFn:ge.func.isRequired,prefix:ge.string,checkInterval:ge.number,checkTimeout:ge.number,locale:ge.oneOf(["en","zh",""]),tokenKey:ge.string,encKey:ge.string,baseUrl:ge.string,autoConnect:ge.bool,forceConnected:ge.oneOfType([ge.bool,ge.string]),saveConnect:ge.bool,useSocket:ge.bool,allowWallet:ge.bool,provider:ge.oneOf(["wallet","auth0",""]),webWalletUrl:ge.string,onRecreateSession:ge.func,onClose:ge.func,messages:ge.object,enabledConnectTypes:ge.arrayOf(ge.oneOf(["web","mobile","github","apple","google","auth0"]))};NR.defaultProps={prefix:tR,onError:Bn,checkInterval:2*1e3,checkTimeout:NZ*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:UZ(),onRecreateSession:Bn,onClose:Bn,messages:{},enabledConnectTypes:["web","mobile","github","apple","google","auth0"]};var YS=IW,Dze=XG,Oze=nC,Lze=1/0,Pze=YS&&1/Oze(new YS([,-0]))[1]==Lze?function(e){return new YS(e)}:Dze,Mze=Pze,Bze=eC,Nze=CX,Fze=RX,Uze=tC,Hze=Mze,jze=nC,Jze=200;function Vze(e,t,n){var r=-1,i=Nze,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=Fze;else if(a>=Jze){var f=t?null:Hze(e);if(f)return jze(f);o=!1,i=Uze,l=new Bze}else l=t?[]:s;e:for(;++r<a;){var c=e[r],d=t?t(c):c;if(c=n||c!==0?c:0,o&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}var zX=Vze,qze=G8,Gze=zE,Wze=wm,zze=zX,FF=N8,Kze=rE,Yze=Wze(function(e){var t=Kze(e);return FF(t)&&(t=void 0),zze(qze(e,1,FF,!0),Gze(t))}),Zze=Yze;const Xze=Ut(Zze);var Qze=lW,eKe=Sm;function tKe(e,t){return e&&Qze(e,t,eKe)}var nKe=tKe,rKe=yf;function iKe(e,t){return function(n,r){if(n==null)return n;if(!rKe(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var aKe=iKe,oKe=nKe,sKe=aKe,lKe=sKe(oKe),uKe=lKe,cKe=uKe,fKe=yf;function dKe(e,t){var n=-1,r=fKe(e)?Array(e.length):[];return cKe(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var pKe=dKe;function hKe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var mKe=hKe,UF=fm;function gKe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=UF(e),o=t!==void 0,s=t===null,l=t===t,f=UF(t);if(!s&&!f&&!a&&e>t||a&&o&&l&&!s&&!f||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!f&&e<t||f&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var yKe=gKe,vKe=yKe;function bKe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=vKe(i[r],a[r]);if(l){if(r>=s)return l;var f=n[r];return l*(f=="desc"?-1:1)}}return e.index-t.index}var EKe=bKe,ZS=qp,TKe=pm,AKe=zE,wKe=pKe,SKe=mKe,_Ke=Tm,xKe=EKe,CKe=nE,RKe=Ta;function $Ke(e,t,n){t.length?t=ZS(t,function(a){return RKe(a)?function(o){return TKe(o,a.length===1?a[0]:a)}:a}):t=[CKe];var r=-1;t=ZS(t,_Ke(AKe));var i=wKe(e,function(a,o,s){var l=ZS(t,function(f){return f(a)});return{criteria:l,index:++r,value:a}});return SKe(i,function(a,o){return xKe(a,o,n)})}var IKe=$Ke,kKe=G8,DKe=IKe,OKe=wm,HF=wW,LKe=OKe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&HF(e,t[0],t[1])?t=[]:n>2&&HF(t[0],t[1],t[2])&&(t=[t[0]]),DKe(e,kKe(t,1),[])}),PKe=LKe;const KX=Ut(PKe),MKe=On(Vi,"/api/user-session");function YX({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/"}={}){const a=gm(),o=en(()=>Gl({baseURL:On(i,MKe)},{lazy:!0,lazyTime:500}),[i]),s=Ct(async()=>{const{data:y}=await o.get("",{params:{visitorId:a,appPid:e}});return y}),l=Di({loaded:!1,loadingId:null}),f=bOe(s,{manual:!r,onFinally(){l.loaded=!0},refreshDeps:[e,i]}),c=async y=>{var b,R,A;const g=iE(y,["userDid","visitorId","passportId"]);try{l.loadingId=y.id;const{data:$}=await o.post("login",{...g,appPid:n});return $}catch($){const D=$.response?((R=(b=$.response)==null?void 0:b.data)==null?void 0:R.error)||((A=$.response)==null?void 0:A.data):$.message;throw Ci.error(D),console.error("Quick login error",$),$}finally{l.loadingId=null}},d=en(()=>{if(!f.data)return[];const y=new Date().getTime(),g=KX(f.data,b=>y-new Date(b.updatedAt).getTime());return Xze(g,b=>[b.userDid].join("_"))},[f.data,t,e]),p=en(()=>!!(d&&d.length>0),[d]);return{loadingId:l.loadingId,userSessions:d,quickLoginEnabled:p,loginUserSession:c,loading:f.loading,loaded:f.loaded,refresh:f.refreshAsync}}const BKe={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"/>'},NKe={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 FR({appInfo:e,...t}){const[n,r]=z.useState(!1);if(n||!(e.appUrl||e.appLogo))return W.jsx(Bl,{did:e.appPid,size:32});let i=e.appLogo||"";return zb(i)||(i=On(e.appUrl||"",i)),W.jsx(Yd,{src:i,alt:e.appName||"Blocklet Icon",width:32,height:32,...t,onError:()=>r(!0)})}FR.propTypes={appInfo:ge.object.isRequired};const FKe=e=>e?e.split(":").pop():"";function KE({appInfo:e,active:t,appLogo:n}){return W.jsxs(yt,{sx:{display:"flex",alignItems:"center",fontWeight:600,color:Rt.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:Rt.textMuted,fontSize:"12px"}},children:[n||W.jsx(yt,{sx:{borderRadius:"8px",overflow:"hidden",fontSize:0},children:W.jsx(FR,{appInfo:e})}),W.jsxs(yt,{className:"app-info-content",children:[W.jsx(yt,{className:"app-info-name",children:e.appName}),e.appPid&&W.jsx(TE,{size:12,className:"app-info-did",copyable:!1,color:Rt.textMuted,compact:!1,responsive:!1,children:FKe(e.appPid)})]}),t?W.jsx(zu,{size:"small",color:"success",children:W.jsx(yke,{icon:NKe,color:"success"})}):null]})}KE.propTypes={appInfo:ge.object.isRequired,active:ge.bool,appLogo:ge.node};KE.defaultProps={active:!1,appLogo:null};function rx({appInfo:e}){const t=z.useRef(null),n=Di({hoverOnButton:!1,hoverOnPopover:!1}),r=en(()=>n.hoverOnButton||n.hoverOnPopover,[n.hoverOnButton,n.hoverOnPopover]);return W.jsxs(W.Fragment,{children:[W.jsx(yt,{ref:t,sx:{color:Rt.foregroundsFgInteractive,cursor:"help"},onClick:()=>{n.hoverOnButton=!0},onMouseEnter:()=>{n.hoverOnButton=!0},onMouseLeave:()=>{setTimeout(()=>{n.hoverOnButton=!1},200)},children:e.appName}),W.jsx(mz,{open:r,sx:{pointerEvents:"none"},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${Rt.gray6}, 0px 0px 0px 1px ${Rt.gray6}`,py:1,px:1.5,borderRadius:2,transform:"translateY(-6px) !important"}}},anchorEl:t.current,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{n.open=!1},disableRestoreFocus:!0,children:W.jsx(yt,{sx:{pointerEvents:"auto"},onMouseEnter:()=>{n.hoverOnPopover=!0},onMouseLeave:()=>{n.hoverOnPopover=!1},children:W.jsx(KE,{appInfo:e,appLogo:W.jsx(FR,{appInfo:e})})})})]})}rx.propTypes={appInfo:ge.object.isRequired};function jF(){const{appInfoList:e,t,extraParams:n,connectState:r}=Wl(),i=z.useRef(null),a=Di({open:!1});return W.jsxs(W.Fragment,{children:[W.jsx(yt,{ref:i,sx:{textTransform:"lowercase",color:Rt.foregroundsFgInteractive,cursor:"pointer"},onClick:()=>{a.open=!0},children:t("switch")}),W.jsx(aDe,{anchorEl:i.current,open:a.open,onClose:()=>{a.open=!1},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${Rt.gray6}, 0px 0px 0px 1px ${Rt.gray6}`,borderRadius:2}}},children:e.map(o=>W.jsx(J3,{onClick:()=>{a.open=!1,r.sourceAppPid=o.sourceAppPid},children:W.jsx(KE,{appInfo:o,active:o.sourceAppPid===(n==null?void 0:n.sourceAppPid)})},o.appPid))})]})}function UR({locale:e,disableSwitchApp:t}){const{appInfoList:n,extraParams:r,connectState:i,blocklet:a}=Wl(),o=en(()=>n.find(f=>ep.isUndefined(r==null?void 0:r.sourceAppPid)?!0:ep.isNull(f.sourceAppPid)?f.appPid===(a==null?void 0:a.appPid):f.sourceAppPid===(r==null?void 0:r.sourceAppPid)),[r==null?void 0:r.sourceAppPid,n]),s=!t&&n.length>1;xm(()=>{(a==null?void 0:a.appPid)===(o==null?void 0:o.appPid)?i.sourceAppPid=null:i.sourceAppPid=o==null?void 0:o.appPid});const l=en(()=>e==="zh"?W.jsxs(W.Fragment,{children:["您正在使用 ",W.jsx(rx,{appInfo:o,appInfoList:n})," 账户来连接站点",s?W.jsxs(W.Fragment,{children:[",点击",W.jsx(jF,{appInfoList:n})]}):null]}):W.jsxs(W.Fragment,{children:["You're using ",W.jsx(rx,{appInfo:o})," account for site access",s?W.jsxs(W.Fragment,{children:[". Click to ",W.jsx(jF,{appInfoList:n})]}):null]}),[e,o,n,s]);return ep.isEmpty(n)?null:W.jsxs(yt,{sx:{fontSize:"13px",color:Rt.foregroundsFgSubtile,display:"flex",alignItems:"center",whiteSpace:"pre"},children:[l,s&&W.jsx(yt,{component:Zn,icon:BKe,sx:{ml:.5}})]})}UR.propTypes={locale:ge.string,disableSwitchApp:ge.bool};UR.defaultProps={locale:"en",disableSwitchApp:!1};var HR={};Object.defineProperty(HR,"__esModule",{value:!0});var ZX=HR.default=void 0;UKe(z);var XS=W;function UKe(e){return e&&e.__esModule?e:{default:e}}function JF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function VF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JF(Object(n),!0).forEach(function(r){HKe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HKe(e,t,n){return t=jKe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jKe(e){var t=JKe(e,"string");return typeof t=="symbol"?t:String(t)}function JKe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jR=function(t){return(0,XS.jsxs)("svg",VF(VF({},t),{},{children:[(0,XS.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,XS.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)"})]}))};jR.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};jR.displayName="did-logo-colorful";ZX=HR.default=jR;function VKe({...e}){return W.jsxs(yt,{...e,sx:{display:"flex",alignItems:"center",color:Rt.foregroundsFgMuted,gap:.5,...e.sx},children:[W.jsx(ZX,{}),"Power By DID Connect"]})}function JR({children:e,initHeight:t,slotProps:n}){var s;const[r,i]=z.useState(t),a=z.useRef(null),o=Cm(a);return z.useEffect(()=>{o!=null&&o.height&&i(o.height)},[o==null?void 0:o.height,r]),W.jsx(yt,{...n==null?void 0:n.root,sx:{height:r,overflow:"hidden",transition:"height 0.2s ease-in-out",...(s=n==null?void 0:n.root)==null?void 0:s.sx},children:W.jsx(yt,{...n==null?void 0:n.container,ref:a,children:e})})}JR.propTypes={initHeight:ge.number,children:ge.node.isRequired,slotProps:ge.object};JR.defaultProps={initHeight:0,slotProps:{}};const Uy="did-connect",qF="quick-connect";function VR({mode:e,isFullScreen:t,hideCloseButton:n,...r}){var Q;const i=Di({showTab:Uy}),{connectState:a,blocklet:o}=Wl(),{extraContent:s,onSuccess:l,action:f,onClose:c,options:d}=r,p=en(()=>(a==null?void 0:a.sourceAppPid)||SK(),[a==null?void 0:a.sourceAppPid]),{quickLoginEnabled:y,loading:g,userSessions:b,loginUserSession:R,refresh:A}=YX({appPid:p,loginAppPid:o==null?void 0:o.appPid,sourceAppPid:a==null?void 0:a.sourceAppPid,autoFetch:["login"].includes(f)}),$=en(()=>{var P;return((P=r==null?void 0:r.messages)==null?void 0:P.title)||WJe},[(Q=r==null?void 0:r.messages)==null?void 0:Q.title]),D=Ct(async(...P)=>{const T=await R(...P);await l({...T,encrypted:!1},u=>u)});z.useEffect(()=>{(d==null?void 0:d.showQuickConnect)!==!1&&!g&&y&&(i.showTab=qF)},[g,y,d==null?void 0:d.showQuickConnect]);const M=xOe(g,{wait:100}),J=Ct(()=>{i.showTab=Uy}),U=Ct(()=>{i.showTab=qF}),V=en(()=>i.showTab===Uy||!y,[i.showTab,y]),X=en(()=>{let P=!0;return(g||M)&&(P=!1),y||(P=!1),d.showQuickConnect===!1&&(P=!1),i.showTab!==Uy&&(P=!1),P},[y,i.showTab,g,M]),re=en(()=>W.jsx(yt,{onClick:c,sx:{fontSize:"1.5rem",width:"1.5rem",height:"1.5rem",cursor:"pointer",color:Rt.foregroundsFgSubtile,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:W.jsx(Zn,{icon:TX})}),[c]);let le=null;return g||M?le=W.jsx(TR,{}):V?le=W.jsx(NR,{...r,onClose:c}):le=W.jsx($R,{userSessions:b,onLogin:D,onRetry:A,onClose:c,messages:r.messages,onLoginAnother:J}),W.jsxs(W$e,{variant:"outlined",sx:{color:Rt.foregroundsFgBase,backgroundColor:"white",borderRadius:2,borderColor:Rt.strokeBorderBase,height:"100%",display:"flex",flexDirection:"column"},children:[W.jsx(mIe,{title:W.jsxs(W.Fragment,{children:[X&&W.jsx(zu,{size:"small",disabled:a.status!=="created",onClick:U,disableRipple:!0,sx:{fontSize:"0.75em"},children:W.jsx(Zn,{icon:Cqe,color:Rt.textMuted})}),$]}),titleTypographyProps:{display:"flex",alignItems:"center",variant:"h6",lineHeight:"28px",fontWeight:600},action:n?null:re,sx:{px:2.5,".MuiCardHeader-action":{margin:0,alignSelf:"center"}}}),W.jsx(aIe,{sx:{borderTop:`1px solid ${Rt.strokeBorderBase}`,borderBottom:`1px solid ${Rt.strokeBorderBase}`,flex:1,verticalAlign:"middle",overflow:"auto",p:2.5,position:"relative","&::after":{content:'""',height:"100%",verticalAlign:"middle",display:"inline-block",width:0}},children:W.jsxs(JR,{slotProps:{root:{sx:{display:"inline-block",width:"100%",verticalAlign:"middle"}},container:{sx:{display:"flex",flexDirection:"column",gap:1}}},children:[W.jsx(UR,{locale:r.locale,disableSwitchApp:r.disableSwitchApp}),le,s?W.jsx(yt,{children:s}):null]})}),W.jsx(Q$e,{sx:{py:2,px:2.5,justifyContent:"center"},children:W.jsx(VKe,{sx:{fontSize:"12px"}})})]})}VR.propTypes={action:ge.string.isRequired,onSuccess:ge.func,onClose:ge.func,messages:ge.object,extraContent:ge.any,disableSwitchApp:ge.bool,mode:ge.oneOf(["fullScreen","dialog","normal"]),isFullScreen:ge.bool,options:ge.object,hideCloseButton:ge.bool,locale:ge.string};VR.defaultProps={onSuccess:Bn,onClose:Bn,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!0,locale:"en"};function qR(e){const{checkFn:t,extraParams:n,blocklet:r,action:i,locale:a}=e;if(typeof t!="function")throw new Error("Cannot initialize did connect component without a fetchFn");return W.jsx(AR,{blocklet:r,action:i,locale:a,extraParams:n,sx:{position:"relative",width:"100%",height:"100%",lineHeight:1.2,fontFamily:"Inter",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:W.jsx(VR,{...e})})}qR.propTypes={checkFn:ge.func.isRequired,extraParams:ge.object,blocklet:ge.object.isRequired,action:ge.string.isRequired,locale:ge.string};qR.defaultProps={extraParams:{},locale:"en"};const qKe=qqe($qe(zqe(qR))),GKe=z.forwardRef((e,t)=>{const{api:n}=z.useContext(fh),r={containerEl:null,popup:!0,checkFn:(n==null?void 0:n.get)||Bn,onSuccess:()=>{setTimeout(()=>{f()},2e3)},messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},i=Di({show:!1,..._l(r)}),[a,o]=z.useState({}),s=Ct(d=>{const{containerEl:p,checkFn:y,popup:g,onSuccess:b,messages:R,...A}=_l(d);typeof y=="function"&&(i.checkFn=y),typeof b=="function"&&(i.onSuccess=(...$)=>{b(...$),setTimeout(()=>{f()},2e3)}),g!==void 0&&(i.popup=g),R!==void 0&&(i.messages=R),p!==void 0&&(i.containerEl=p),o(A),i.show=!0}),l=Ct(()=>{const d=_l(r);Object.keys(d).forEach(p=>{i[p]=d[p]})}),f=Ct(()=>{i.show=!1,l()});z.useImperativeHandle(t,()=>({open:s,close:f}),[s,f]);const c=W.jsx(qKe,{open:!0,popup:i.popup,messages:i.messages,onClose:f,onSuccess:i.onSuccess,checkFn:i.checkFn,...a});return i.containerEl?W1.createPortal(c,i.containerEl):i.show&&c});function WKe(){const e=z.useRef(null),t=Ct((...o)=>{var s;(s=e.current)==null||s.open(...o)}),n=Ct(async(o={},{baseUrl:s,locale:l="en",blocklet:f=globalThis==null?void 0:globalThis.blocklet}={})=>{var R;if(Eu(s)){const A=Fm(),$=uh();s=A?$.appUrl:window.location.origin}const{onSuccess:c,onClose:d,onError:p,...y}=o;if(!((R=y==null?void 0:y.extraParams)!=null&&R.provider))throw Oc(p)&&p("Must have extraParams.provider"),new Error("Must have extraParams.provider");y!=null&&y.prefix||(y.prefix=window.location.origin+On(f==null?void 0:f.prefix,tR));const g=new URLSearchParams;g.set("params",btoa(encodeURIComponent(JSON.stringify(y)))),g.set("appPid",f==null?void 0:f.appPid),g.set("locale",l);const b=_qe(On(s||"/",Vi,`/connect?${g.toString()}`));try{const A=await xqe({popup:b});return Oc(c)&&c({...A,encrypted:!1}),{...A,encrypted:!1}}catch(A){throw A.message==="Popup closed"?Oc(d)&&d():Oc(p)&&p(A),A}}),r=Ct((...o)=>{var s;(s=e.current)==null||s.close(...o)}),i=en(()=>W.jsx(GKe,{ref:e})),a=en(()=>({open:t,close:r,openPopup:n}));return{connectHolder:i,connectApi:a}}const ei={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")},sd={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-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:"通行证和会话已经更新"}},"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 ix={exports:{}};const zKe="2.0.0",XX=256,KKe=Number.MAX_SAFE_INTEGER||9007199254740991,YKe=16,ZKe=XX-6,XKe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var YE={MAX_LENGTH:XX,MAX_SAFE_COMPONENT_LENGTH:YKe,MAX_SAFE_BUILD_LENGTH:ZKe,MAX_SAFE_INTEGER:KKe,RELEASE_TYPES:XKe,SEMVER_SPEC_VERSION:zKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},QS={};const QKe=typeof Xt=="object"&&QS&&QS.NODE_DEBUG&&/\bsemver\b/i.test(QS.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var ZE=QKe;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=YE,a=ZE;t=e.exports={};const o=t.re=[],s=t.safeRe=[],l=t.src=[],f=t.t={};let c=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[d,r]],y=b=>{for(const[R,A]of p)b=b.split(`${R}*`).join(`${R}{0,${A}}`).split(`${R}+`).join(`${R}{1,${A}}`);return b},g=(b,R,A)=>{const $=y(R),D=c++;a(b,D,R),f[b]=D,l[D]=R,o[D]=new RegExp(R,A?"g":void 0),s[D]=new RegExp($,A?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),g("MAINVERSION",`(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${l[f.NUMERICIDENTIFIER]}|${l[f.NONNUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${l[f.NUMERICIDENTIFIERLOOSE]}|${l[f.NONNUMERICIDENTIFIER]})`),g("PRERELEASE",`(?:-(${l[f.PRERELEASEIDENTIFIER]}(?:\\.${l[f.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${l[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[f.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${d}+`),g("BUILD",`(?:\\+(${l[f.BUILDIDENTIFIER]}(?:\\.${l[f.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${l[f.MAINVERSION]}${l[f.PRERELEASE]}?${l[f.BUILD]}?`),g("FULL",`^${l[f.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${l[f.MAINVERSIONLOOSE]}${l[f.PRERELEASELOOSE]}?${l[f.BUILD]}?`),g("LOOSE",`^${l[f.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${l[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${l[f.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:${l[f.PRERELEASE]})?${l[f.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:${l[f.PRERELEASELOOSE]})?${l[f.BUILD]}?)?)?`),g("XRANGE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAINLOOSE]}$`),g("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),g("COERCERTL",l[f.COERCE],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${l[f.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${l[f.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${l[f.LONECARET]}${l[f.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${l[f.LONECARET]}${l[f.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${l[f.GTLT]}\\s*(${l[f.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]}|${l[f.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${l[f.XRANGEPLAIN]})\\s+-\\s+(${l[f.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${l[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[f.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(ix,ix.exports);var Um=ix.exports;const eYe=Object.freeze({loose:!0}),tYe=Object.freeze({}),nYe=e=>e?typeof e!="object"?eYe:e:tYe;var GR=nYe;const GF=/^[0-9]+$/,QX=(e,t)=>{const n=GF.test(e),r=GF.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},rYe=(e,t)=>QX(t,e);var eQ={compareIdentifiers:QX,rcompareIdentifiers:rYe};const Hy=ZE,{MAX_LENGTH:WF,MAX_SAFE_INTEGER:jy}=YE,{safeRe:zF,t:KF}=Um,iYe=GR,{compareIdentifiers:ld}=eQ;let aYe=class vs{constructor(t,n){if(n=iYe(n),t instanceof vs){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>WF)throw new TypeError(`version is longer than ${WF} characters`);Hy("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?zF[KF.LOOSE]:zF[KF.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>jy||this.major<0)throw new TypeError("Invalid major version");if(this.minor>jy||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>jy||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const a=+i;if(a>=0&&a<jy)return a}return i}):this.prerelease=[],this.build=r[5]?r[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(t){if(Hy("SemVer.compare",this.version,this.options,t),!(t instanceof vs)){if(typeof t=="string"&&t===this.version)return 0;t=new vs(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof vs||(t=new vs(t,this.options)),ld(this.major,t.major)||ld(this.minor,t.minor)||ld(this.patch,t.patch)}comparePre(t){if(t instanceof vs||(t=new vs(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],i=t.prerelease[n];if(Hy("prerelease compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return ld(r,i)}while(++n)}compareBuild(t){t instanceof vs||(t=new vs(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(Hy("prerelease compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return ld(r,i)}while(++n)}inc(t,n,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);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 i=Number(r)?1:0;if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(n){let a=[n,i];r===!1&&(a=[n]),ld(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var ia=aYe;const YF=ia,oYe=(e,t,n=!1)=>{if(e instanceof YF)return e;try{return new YF(e,t)}catch(r){if(!n)return null;throw r}};var dh=oYe;const sYe=dh,lYe=(e,t)=>{const n=sYe(e,t);return n?n.version:null};var uYe=lYe;const cYe=dh,fYe=(e,t)=>{const n=cYe(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var dYe=fYe;const ZF=ia,pYe=(e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new ZF(e instanceof ZF?e.version:e,n).inc(t,r,i).version}catch{return null}};var hYe=pYe;const XF=dh,mYe=(e,t)=>{const n=XF(e,null,!0),r=XF(t,null,!0),i=n.compare(r);if(i===0)return null;const a=i>0,o=a?n:r,s=a?r:n,l=!!o.prerelease.length;if(!!s.prerelease.length&&!l)return!s.patch&&!s.minor?"major":o.patch?"patch":o.minor?"minor":"major";const c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};var gYe=mYe;const yYe=ia,vYe=(e,t)=>new yYe(e,t).major;var bYe=vYe;const EYe=ia,TYe=(e,t)=>new EYe(e,t).minor;var AYe=TYe;const wYe=ia,SYe=(e,t)=>new wYe(e,t).patch;var _Ye=SYe;const xYe=dh,CYe=(e,t)=>{const n=xYe(e,t);return n&&n.prerelease.length?n.prerelease:null};var RYe=CYe;const QF=ia,$Ye=(e,t,n)=>new QF(e,n).compare(new QF(t,n));var cs=$Ye;const IYe=cs,kYe=(e,t,n)=>IYe(t,e,n);var DYe=kYe;const OYe=cs,LYe=(e,t)=>OYe(e,t,!0);var PYe=LYe;const eU=ia,MYe=(e,t,n)=>{const r=new eU(e,n),i=new eU(t,n);return r.compare(i)||r.compareBuild(i)};var WR=MYe;const BYe=WR,NYe=(e,t)=>e.sort((n,r)=>BYe(n,r,t));var FYe=NYe;const UYe=WR,HYe=(e,t)=>e.sort((n,r)=>UYe(r,n,t));var jYe=HYe;const JYe=cs,VYe=(e,t,n)=>JYe(e,t,n)>0;var XE=VYe;const qYe=cs,GYe=(e,t,n)=>qYe(e,t,n)<0;var zR=GYe;const WYe=cs,zYe=(e,t,n)=>WYe(e,t,n)===0;var tQ=zYe;const KYe=cs,YYe=(e,t,n)=>KYe(e,t,n)!==0;var nQ=YYe;const ZYe=cs,XYe=(e,t,n)=>ZYe(e,t,n)>=0;var KR=XYe;const QYe=cs,eZe=(e,t,n)=>QYe(e,t,n)<=0;var YR=eZe;const tZe=tQ,nZe=nQ,rZe=XE,iZe=KR,aZe=zR,oZe=YR,sZe=(e,t,n,r)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return tZe(e,n,r);case"!=":return nZe(e,n,r);case">":return rZe(e,n,r);case">=":return iZe(e,n,r);case"<":return aZe(e,n,r);case"<=":return oZe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var rQ=sZe;const lZe=ia,uZe=dh,{safeRe:Jy,t:Vy}=Um,cZe=(e,t)=>{if(e instanceof lZe)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(Jy[Vy.COERCE]);else{let r;for(;(r=Jy[Vy.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),Jy[Vy.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;Jy[Vy.COERCERTL].lastIndex=-1}return n===null?null:uZe(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var fZe=cZe,e5,tU;function dZe(){return tU||(tU=1,e5=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),e5}var pZe=Vn;Vn.Node=uf;Vn.create=Vn;function Vn(e){var t=this;if(t instanceof Vn||(t=new Vn),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}Vn.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t};Vn.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};Vn.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};Vn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)mZe(this,arguments[e]);return this.length};Vn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)gZe(this,arguments[e]);return this.length};Vn.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};Vn.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};Vn.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;n!==null;r++)e.call(t,n.value,r,this),n=n.next};Vn.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;n!==null;r--)e.call(t,n.value,r,this),n=n.prev};Vn.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value};Vn.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value};Vn.prototype.map=function(e,t){t=t||this;for(var n=new Vn,r=this.head;r!==null;)n.push(e.call(t,r.value,this)),r=r.next;return n};Vn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new Vn,r=this.tail;r!==null;)n.push(e.call(t,r.value,this)),r=r.prev;return n};Vn.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;r!==null;i++)n=e(n,r.value,i),r=r.next;return n};Vn.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;r!==null;i--)n=e(n,r.value,i),r=r.prev;return n};Vn.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e};Vn.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e};Vn.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new Vn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,i=this.head;i!==null&&r<e;r++)i=i.next;for(;i!==null&&r<t;r++,i=i.next)n.push(i.value);return n};Vn.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new Vn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,i=this.tail;i!==null&&r>t;r--)i=i.prev;for(;i!==null&&r>e;r--,i=i.prev)n.push(i.value);return n};Vn.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,i=this.head;i!==null&&r<e;r++)i=i.next;for(var a=[],r=0;i&&r<t;r++)a.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var r=0;r<n.length;r++)i=hZe(this,i,n[r]);return a};Vn.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};function hZe(e,t,n){var r=t===e.head?new uf(n,null,t,e):new uf(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function mZe(e,t){e.tail=new uf(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function gZe(e,t){e.head=new uf(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function uf(e,t,n,r){if(!(this instanceof uf))return new uf(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{dZe()(Vn)}catch{}const yZe=pZe,Sc=Symbol("max"),ml=Symbol("length"),ud=Symbol("lengthCalculator"),G0=Symbol("allowStale"),Bc=Symbol("maxAge"),pl=Symbol("dispose"),nU=Symbol("noDisposeOnSet"),ci=Symbol("lruList"),qo=Symbol("cache"),iQ=Symbol("updateAgeOnGet"),t5=()=>1;class vZe{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Sc]=t.max||1/0;const n=t.length||t5;if(this[ud]=typeof n!="function"?t5:n,this[G0]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Bc]=t.maxAge||0,this[pl]=t.dispose,this[nU]=t.noDisposeOnSet||!1,this[iQ]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Sc]=t||1/0,o0(this)}get max(){return this[Sc]}set allowStale(t){this[G0]=!!t}get allowStale(){return this[G0]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Bc]=t,o0(this)}get maxAge(){return this[Bc]}set lengthCalculator(t){typeof t!="function"&&(t=t5),t!==this[ud]&&(this[ud]=t,this[ml]=0,this[ci].forEach(n=>{n.length=this[ud](n.value,n.key),this[ml]+=n.length})),o0(this)}get lengthCalculator(){return this[ud]}get length(){return this[ml]}get itemCount(){return this[ci].length}rforEach(t,n){n=n||this;for(let r=this[ci].tail;r!==null;){const i=r.prev;rU(this,t,r,n),r=i}}forEach(t,n){n=n||this;for(let r=this[ci].head;r!==null;){const i=r.next;rU(this,t,r,n),r=i}}keys(){return this[ci].toArray().map(t=>t.key)}values(){return this[ci].toArray().map(t=>t.value)}reset(){this[pl]&&this[ci]&&this[ci].length&&this[ci].forEach(t=>this[pl](t.key,t.value)),this[qo]=new Map,this[ci]=new yZe,this[ml]=0}dump(){return this[ci].map(t=>p2(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[ci]}set(t,n,r){if(r=r||this[Bc],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const i=r?Date.now():0,a=this[ud](n,t);if(this[qo].has(t)){if(a>this[Sc])return tp(this,this[qo].get(t)),!1;const l=this[qo].get(t).value;return this[pl]&&(this[nU]||this[pl](t,l.value)),l.now=i,l.maxAge=r,l.value=n,this[ml]+=a-l.length,l.length=a,this.get(t),o0(this),!0}const o=new bZe(t,n,a,i,r);return o.length>this[Sc]?(this[pl]&&this[pl](t,n),!1):(this[ml]+=o.length,this[ci].unshift(o),this[qo].set(t,this[ci].head),o0(this),!0)}has(t){if(!this[qo].has(t))return!1;const n=this[qo].get(t).value;return!p2(this,n)}get(t){return n5(this,t,!0)}peek(t){return n5(this,t,!1)}pop(){const t=this[ci].tail;return t?(tp(this,t),t.value):null}del(t){tp(this,this[qo].get(t))}load(t){this.reset();const n=Date.now();for(let r=t.length-1;r>=0;r--){const i=t[r],a=i.e||0;if(a===0)this.set(i.k,i.v);else{const o=a-n;o>0&&this.set(i.k,i.v,o)}}}prune(){this[qo].forEach((t,n)=>n5(this,n,!1))}}const n5=(e,t,n)=>{const r=e[qo].get(t);if(r){const i=r.value;if(p2(e,i)){if(tp(e,r),!e[G0])return}else n&&(e[iQ]&&(r.value.now=Date.now()),e[ci].unshiftNode(r));return i.value}},p2=(e,t)=>{if(!t||!t.maxAge&&!e[Bc])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Bc]&&n>e[Bc]},o0=e=>{if(e[ml]>e[Sc])for(let t=e[ci].tail;e[ml]>e[Sc]&&t!==null;){const n=t.prev;tp(e,t),t=n}},tp=(e,t)=>{if(t){const n=t.value;e[pl]&&e[pl](n.key,n.value),e[ml]-=n.length,e[qo].delete(n.key),e[ci].removeNode(t)}};class bZe{constructor(t,n,r,i,a){this.key=t,this.value=n,this.length=r,this.now=i,this.maxAge=a||0}}const rU=(e,t,n,r)=>{let i=n.value;p2(e,i)&&(tp(e,n),e[G0]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var EZe=vZe,r5,iU;function fs(){if(iU)return r5;iU=1;class e{constructor(u,h){if(h=r(h),u instanceof e)return u.loose===!!h.loose&&u.includePrerelease===!!h.includePrerelease?u:new e(u.raw,h);if(u instanceof i)return this.raw=u.value,this.set=[[u]],this.format(),this;if(this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease,this.raw=u.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(E=>this.parseRange(E.trim())).filter(E=>E.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const E=this.set[0];if(this.set=this.set.filter(S=>!g(S[0])),this.set.length===0)this.set=[E];else if(this.set.length>1){for(const S of this.set)if(S.length===1&&b(S[0])){this.set=[S];break}}}this.format()}format(){return this.range=this.set.map(u=>u.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(u){const E=((this.options.includePrerelease&&p)|(this.options.loose&&y))+":"+u,S=n.get(E);if(S)return S;const C=this.options.loose,I=C?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];u=u.replace(I,Q(this.options.includePrerelease)),a("hyphen replace",u),u=u.replace(s[l.COMPARATORTRIM],f),a("comparator trim",u),u=u.replace(s[l.TILDETRIM],c),a("tilde trim",u),u=u.replace(s[l.CARETTRIM],d),a("caret trim",u);let _=u.split(" ").map(ne=>A(ne,this.options)).join(" ").split(/\s+/).map(ne=>le(ne,this.options));C&&(_=_.filter(ne=>(a("loose invalid filter",ne,this.options),!!ne.match(s[l.COMPARATORLOOSE])))),a("range list",_);const x=new Map,v=_.map(ne=>new i(ne,this.options));for(const ne of v){if(g(ne))return[ne];x.set(ne.value,ne)}x.size>1&&x.has("")&&x.delete("");const k=[...x.values()];return n.set(E,k),k}intersects(u,h){if(!(u instanceof e))throw new TypeError("a Range is required");return this.set.some(E=>R(E,h)&&u.set.some(S=>R(S,h)&&E.every(C=>S.every(I=>C.intersects(I,h)))))}test(u){if(!u)return!1;if(typeof u=="string")try{u=new o(u,this.options)}catch{return!1}for(let h=0;h<this.set.length;h++)if(P(this.set[h],u,this.options))return!0;return!1}}r5=e;const t=EZe,n=new t({max:1e3}),r=GR,i=QE(),a=ZE,o=ia,{safeRe:s,t:l,comparatorTrimReplace:f,tildeTrimReplace:c,caretTrimReplace:d}=Um,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:y}=YE,g=T=>T.value==="<0.0.0-0",b=T=>T.value==="",R=(T,u)=>{let h=!0;const E=T.slice();let S=E.pop();for(;h&&E.length;)h=E.every(C=>S.intersects(C,u)),S=E.pop();return h},A=(T,u)=>(a("comp",T,u),T=J(T,u),a("caret",T),T=D(T,u),a("tildes",T),T=V(T,u),a("xrange",T),T=re(T,u),a("stars",T),T),$=T=>!T||T.toLowerCase()==="x"||T==="*",D=(T,u)=>T.trim().split(/\s+/).map(h=>M(h,u)).join(" "),M=(T,u)=>{const h=u.loose?s[l.TILDELOOSE]:s[l.TILDE];return T.replace(h,(E,S,C,I,_)=>{a("tilde",T,E,S,C,I,_);let x;return $(S)?x="":$(C)?x=`>=${S}.0.0 <${+S+1}.0.0-0`:$(I)?x=`>=${S}.${C}.0 <${S}.${+C+1}.0-0`:_?(a("replaceTilde pr",_),x=`>=${S}.${C}.${I}-${_} <${S}.${+C+1}.0-0`):x=`>=${S}.${C}.${I} <${S}.${+C+1}.0-0`,a("tilde return",x),x})},J=(T,u)=>T.trim().split(/\s+/).map(h=>U(h,u)).join(" "),U=(T,u)=>{a("caret",T,u);const h=u.loose?s[l.CARETLOOSE]:s[l.CARET],E=u.includePrerelease?"-0":"";return T.replace(h,(S,C,I,_,x)=>{a("caret",T,S,C,I,_,x);let v;return $(C)?v="":$(I)?v=`>=${C}.0.0${E} <${+C+1}.0.0-0`:$(_)?C==="0"?v=`>=${C}.${I}.0${E} <${C}.${+I+1}.0-0`:v=`>=${C}.${I}.0${E} <${+C+1}.0.0-0`:x?(a("replaceCaret pr",x),C==="0"?I==="0"?v=`>=${C}.${I}.${_}-${x} <${C}.${I}.${+_+1}-0`:v=`>=${C}.${I}.${_}-${x} <${C}.${+I+1}.0-0`:v=`>=${C}.${I}.${_}-${x} <${+C+1}.0.0-0`):(a("no pr"),C==="0"?I==="0"?v=`>=${C}.${I}.${_}${E} <${C}.${I}.${+_+1}-0`:v=`>=${C}.${I}.${_}${E} <${C}.${+I+1}.0-0`:v=`>=${C}.${I}.${_} <${+C+1}.0.0-0`),a("caret return",v),v})},V=(T,u)=>(a("replaceXRanges",T,u),T.split(/\s+/).map(h=>X(h,u)).join(" ")),X=(T,u)=>{T=T.trim();const h=u.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return T.replace(h,(E,S,C,I,_,x)=>{a("xRange",T,E,S,C,I,_,x);const v=$(C),k=v||$(I),ne=k||$(_),N=ne;return S==="="&&N&&(S=""),x=u.includePrerelease?"-0":"",v?S===">"||S==="<"?E="<0.0.0-0":E="*":S&&N?(k&&(I=0),_=0,S===">"?(S=">=",k?(C=+C+1,I=0,_=0):(I=+I+1,_=0)):S==="<="&&(S="<",k?C=+C+1:I=+I+1),S==="<"&&(x="-0"),E=`${S+C}.${I}.${_}${x}`):k?E=`>=${C}.0.0${x} <${+C+1}.0.0-0`:ne&&(E=`>=${C}.${I}.0${x} <${C}.${+I+1}.0-0`),a("xRange return",E),E})},re=(T,u)=>(a("replaceStars",T,u),T.trim().replace(s[l.STAR],"")),le=(T,u)=>(a("replaceGTE0",T,u),T.trim().replace(s[u.includePrerelease?l.GTE0PRE:l.GTE0],"")),Q=T=>(u,h,E,S,C,I,_,x,v,k,ne,N,q)=>($(E)?h="":$(S)?h=`>=${E}.0.0${T?"-0":""}`:$(C)?h=`>=${E}.${S}.0${T?"-0":""}`:I?h=`>=${h}`:h=`>=${h}${T?"-0":""}`,$(v)?x="":$(k)?x=`<${+v+1}.0.0-0`:$(ne)?x=`<${v}.${+k+1}.0-0`:N?x=`<=${v}.${k}.${ne}-${N}`:T?x=`<${v}.${k}.${+ne+1}-0`:x=`<=${x}`,`${h} ${x}`.trim()),P=(T,u,h)=>{for(let E=0;E<T.length;E++)if(!T[E].test(u))return!1;if(u.prerelease.length&&!h.includePrerelease){for(let E=0;E<T.length;E++)if(a(T[E].semver),T[E].semver!==i.ANY&&T[E].semver.prerelease.length>0){const S=T[E].semver;if(S.major===u.major&&S.minor===u.minor&&S.patch===u.patch)return!0}return!1}return!0};return r5}var i5,aU;function QE(){if(aU)return i5;aU=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=n(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),o("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(c){const d=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],p=c.match(d);if(!p)throw new TypeError(`Invalid comparator: ${c}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new s(p[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(o("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new s(c,this.options)}catch{return!1}return a(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new l(this.value,d).test(c.semver):(d=n(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||a(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||a(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}i5=t;const n=GR,{safeRe:r,t:i}=Um,a=rQ,o=ZE,s=ia,l=fs();return i5}const TZe=fs(),AZe=(e,t,n)=>{try{t=new TZe(t,n)}catch{return!1}return t.test(e)};var eT=AZe;const wZe=fs(),SZe=(e,t)=>new wZe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var _Ze=SZe;const xZe=ia,CZe=fs(),RZe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new CZe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===-1)&&(r=o,i=new xZe(r,n))}),r};var $Ze=RZe;const IZe=ia,kZe=fs(),DZe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new kZe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===1)&&(r=o,i=new IZe(r,n))}),r};var OZe=DZe;const a5=ia,LZe=fs(),oU=XE,PZe=(e,t)=>{e=new LZe(e,t);let n=new a5("0.0.0");if(e.test(n)||(n=new a5("0.0.0-0"),e.test(n)))return n;n=null;for(let r=0;r<e.set.length;++r){const i=e.set[r];let a=null;i.forEach(o=>{const s=new a5(o.semver.version);switch(o.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!a||oU(s,a))&&(a=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),a&&(!n||oU(n,a))&&(n=a)}return n&&e.test(n)?n:null};var MZe=PZe;const BZe=fs(),NZe=(e,t)=>{try{return new BZe(e,t).range||"*"}catch{return null}};var FZe=NZe;const UZe=ia,aQ=QE(),{ANY:HZe}=aQ,jZe=fs(),JZe=eT,sU=XE,lU=zR,VZe=YR,qZe=KR,GZe=(e,t,n,r)=>{e=new UZe(e,r),t=new jZe(t,r);let i,a,o,s,l;switch(n){case">":i=sU,a=VZe,o=lU,s=">",l=">=";break;case"<":i=lU,a=qZe,o=sU,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(JZe(e,t,r))return!1;for(let f=0;f<t.set.length;++f){const c=t.set[f];let d=null,p=null;if(c.forEach(y=>{y.semver===HZe&&(y=new aQ(">=0.0.0")),d=d||y,p=p||y,i(y.semver,d.semver,r)?d=y:o(y.semver,p.semver,r)&&(p=y)}),d.operator===s||d.operator===l||(!p.operator||p.operator===s)&&a(e,p.semver))return!1;if(p.operator===l&&o(e,p.semver))return!1}return!0};var ZR=GZe;const WZe=ZR,zZe=(e,t,n)=>WZe(e,t,">",n);var KZe=zZe;const YZe=ZR,ZZe=(e,t,n)=>YZe(e,t,"<",n);var XZe=ZZe;const uU=fs(),QZe=(e,t,n)=>(e=new uU(e,n),t=new uU(t,n),e.intersects(t,n));var eXe=QZe;const tXe=eT,nXe=cs;var rXe=(e,t,n)=>{const r=[];let i=null,a=null;const o=e.sort((c,d)=>nXe(c,d,n));for(const c of o)tXe(c,t,n)?(a=c,i||(i=c)):(a&&r.push([i,a]),a=null,i=null);i&&r.push([i,null]);const s=[];for(const[c,d]of r)c===d?s.push(c):!d&&c===o[0]?s.push("*"):d?c===o[0]?s.push(`<=${d}`):s.push(`${c} - ${d}`):s.push(`>=${c}`);const l=s.join(" || "),f=typeof t.raw=="string"?t.raw:String(t);return l.length<f.length?l:t};const cU=fs(),XR=QE(),{ANY:o5}=XR,s0=eT,QR=cs,iXe=(e,t,n={})=>{if(e===t)return!0;e=new cU(e,n),t=new cU(t,n);let r=!1;e:for(const i of e.set){for(const a of t.set){const o=oXe(i,a,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},aXe=[new XR(">=0.0.0-0")],fU=[new XR(">=0.0.0")],oXe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===o5){if(t.length===1&&t[0].semver===o5)return!0;n.includePrerelease?e=aXe:e=fU}if(t.length===1&&t[0].semver===o5){if(n.includePrerelease)return!0;t=fU}const r=new Set;let i,a;for(const y of e)y.operator===">"||y.operator===">="?i=dU(i,y,n):y.operator==="<"||y.operator==="<="?a=pU(a,y,n):r.add(y.semver);if(r.size>1)return null;let o;if(i&&a){if(o=QR(i.semver,a.semver,n),o>0)return null;if(o===0&&(i.operator!==">="||a.operator!=="<="))return null}for(const y of r){if(i&&!s0(y,String(i),n)||a&&!s0(y,String(a),n))return null;for(const g of t)if(!s0(y,String(g),n))return!1;return!0}let s,l,f,c,d=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1,p=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1;d&&d.prerelease.length===1&&a.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const y of t){if(c=c||y.operator===">"||y.operator===">=",f=f||y.operator==="<"||y.operator==="<=",i){if(p&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===p.major&&y.semver.minor===p.minor&&y.semver.patch===p.patch&&(p=!1),y.operator===">"||y.operator===">="){if(s=dU(i,y,n),s===y&&s!==i)return!1}else if(i.operator===">="&&!s0(i.semver,String(y),n))return!1}if(a){if(d&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===d.major&&y.semver.minor===d.minor&&y.semver.patch===d.patch&&(d=!1),y.operator==="<"||y.operator==="<="){if(l=pU(a,y,n),l===y&&l!==a)return!1}else if(a.operator==="<="&&!s0(a.semver,String(y),n))return!1}if(!y.operator&&(a||i)&&o!==0)return!1}return!(i&&f&&!a&&o!==0||a&&c&&!i&&o!==0||p||d)},dU=(e,t,n)=>{if(!e)return t;const r=QR(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},pU=(e,t,n)=>{if(!e)return t;const r=QR(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var sXe=iXe;const s5=Um,hU=YE,lXe=ia,mU=eQ,uXe=dh,cXe=uYe,fXe=dYe,dXe=hYe,pXe=gYe,hXe=bYe,mXe=AYe,gXe=_Ye,yXe=RYe,vXe=cs,bXe=DYe,EXe=PYe,TXe=WR,AXe=FYe,wXe=jYe,SXe=XE,_Xe=zR,xXe=tQ,CXe=nQ,RXe=KR,$Xe=YR,IXe=rQ,kXe=fZe,DXe=QE(),OXe=fs(),LXe=eT,PXe=_Ze,MXe=$Ze,BXe=OZe,NXe=MZe,FXe=FZe,UXe=ZR,HXe=KZe,jXe=XZe,JXe=eXe,VXe=rXe,qXe=sXe;var oQ={parse:uXe,valid:cXe,clean:fXe,inc:dXe,diff:pXe,major:hXe,minor:mXe,patch:gXe,prerelease:yXe,compare:vXe,rcompare:bXe,compareLoose:EXe,compareBuild:TXe,sort:AXe,rsort:wXe,gt:SXe,lt:_Xe,eq:xXe,neq:CXe,gte:RXe,lte:$Xe,cmp:IXe,coerce:kXe,Comparator:DXe,Range:OXe,satisfies:LXe,toComparators:PXe,maxSatisfying:MXe,minSatisfying:BXe,minVersion:NXe,validRange:FXe,outside:UXe,gtr:HXe,ltr:jXe,intersects:JXe,simplifyRange:VXe,subset:qXe,SemVer:lXe,re:s5.re,src:s5.src,tokens:s5.t,SEMVER_SPEC_VERSION:hU.SEMVER_SPEC_VERSION,RELEASE_TYPES:hU.RELEASE_TYPES,compareIdentifiers:mU.compareIdentifiers,rcompareIdentifiers:mU.rcompareIdentifiers};const gU=Ut(oQ);async function sQ(...e){return new Promise((t,n)=>{sn(()=>import("./index-ktOfCEiQ.js").then(r=>r.i),__vite__mapDeps([])).then(r=>{r.call||(r=r.default),r.call(...e,i=>{try{const a=JSON.parse(i);if(a.code===0){const o=JSON.parse(a.data);t(o)}else n(new Error(a.error))}catch{t(i)}})}).catch(r=>{console.error("load dsbridge error",r)})})}const GXe=[`${Vi}/connect`,`${Vi}/login`,`${Vi}/invite`,`${Vi}/issue-passport`];async function WXe(){const e=(window==null?void 0:window.blocklet)||{},t=window.location.pathname,{componentId:n,CHAIN_TYPE:r="arcblock",appPid:i}=e;if(GXe.includes(t))return null;const a=mX();try{const o=`${window.location.origin}${Vi}/api/user/loginByWallet`;return await sQ("arcLogin",{target:o,chainType:r,appPid:i,componentId:n,apps:a.map(l=>{let f=l==null?void 0:l.appLogo;return zb(f)||(f=On(l.appUrl,f)),{appName:l.appName,appPid:l.appPid,appUrl:l.appUrl,appLogo:f,sourceAppPid:l.sourceAppPid}})})}catch(o){return console.error(o),null}}async function zXe(){return await sQ("arcGetVisitorId")}function KXe({platform:e,version:t}={}){return!!(e==="ios"&&t&&gU.gte(t,"4.15.6")||e==="android"&&t&&gU.gte(t,"4.15.1"))}const{Provider:YXe,Consumer:yU}=fh,vU={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"};function ZXe(e=qJe,t="ls",n={},r={}){var f;let i="/";(f=globalThis==null?void 0:globalThis.blocklet)!=null&&f.prefix&&(i=globalThis.blocklet.prefix),typeof r=="boolean"&&(r={appendAuthServicePrefix:r,extraParams:{}}),sRe(r,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:GJe});const a=AM(e,t,n),o=AM(r.refreshTokenStorageKey,"ls");function s(c){var Je,Be;const{connectApi:d,connectHolder:p}=WKe(),y=$m(),g=Di({extraParams:{},options:{},currentLocale:c.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof c.autoConnect=="boolean"?c.autoConnect:!!c.autoLogin},get prefix(){return r.appendAuthServicePrefix||c.appendAuthServicePrefix?On(Vi,c.prefix):c.prefix}}),b=Di({action:c.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:"",get locale(){return c.locale||g.currentLocale||GZ()}}),{confirmApi:R,confirmHolder:A}=vPe(),$=en(()=>new uRe,[]),D=Ct((ke,Ce,Oe)=>{const Ke={login:[ei.LOGIN,ei.CANCEL_LOGIN],"bind-wallet":[ei.BIND_WALLET,ei.CANCEL_BIND_WALLET],"switch-passport":[ei.SWITCH_PASSPORT,ei.CANCEL_SWITCH_PASSPORT],"switch-profile":[ei.SWITCH_PROFILE,ei.CANCEL_SWITCH_PROFILE],"switch-did":[ei.LOGIN,ei.CANCEL_LOGIN]};if(!Object.keys(Ke).includes(ke))return;const Me=async(...G)=>{Oc(Ce)&&await Ce(...G),$.emit(ke,...G)};$.once(Ke[ke][0],Me),$.once(Ke[ke][1],async(...G)=>{Oc(Me)&&$.off(Ke[ke][0],Me),Oc(Oe)&&await Oe(...G),$.emit(`cancel-${ke}`,...G)})}),M=jz(b.initialized,(ke,Ce)=>ke!==Ce||ke===!0&&Ce===!0),{handleRefreshUser:J,handleRefreshToken:U,renewToken:V,clearSession:X,handleLoginResult:re,decrypt:le,service:Q,getSessionToken:P,getRefreshToken:T,setRefreshToken:u,setSessionToken:h}=dqe({state:b,pageState:g,sessionTokenStorage:a,refreshTokenStorage:o,serviceHost:c.serviceHost,apiOptions:c.apiOptions,lazyRefreshToken:c.lazyRefreshToken}),E=Ct((ke,Ce={},Oe={})=>{const Ke=ke;typeof Ke=="object"&&(ke=Ke.onSuccess,Ce=Ke.extraParams||{},Oe=Ke.options||{},Oe.origin=Ke.origin||""),(!b.user||Oe.origin==="switch-did")&&(Oe.origin==="switch-did"?D("switch-did",ke,Ke==null?void 0:Ke.onCancel):D("login",ke,Ke==null?void 0:Ke.onCancel),g.extraParams=Ce,g.options=Oe,b.action="login",Ne())}),S=Ct(async(ke,Ce={},Oe={})=>{var F;if((Ce==null?void 0:Ce.openMode)==="redirect"){const se=(Ce==null?void 0:Ce.redirect)||"/",Ee=new URL(`${Vi}/login`,window.location.origin);Ee.searchParams.set("redirect",se),Ce!=null&&Ce.forceConnected&&Ee.searchParams.set("forceConnected",Ce==null?void 0:Ce.forceConnected),Oe!=null&&Oe.origin&&Ee.searchParams.set("origin",Oe.origin),window.location.href=Ee.href;return}let Ke=Ce==null?void 0:Ce.sourceAppPid;Eu(Ke)&&K&&(Ke=te.appPid),await WW(()=>b.initialized);const Me=ke;typeof Me=="object"&&(ke=Me.onSuccess,Ce=Me.extraParams||{},Oe=Me.options||{}),typeof Oe=="string"&&(Oe={origin:Oe});const G=_l(Ce);g.allowWallet=void 0;const B=(G==null?void 0:G.openMode)||((F=c==null?void 0:c.extraParams)==null?void 0:F.openMode);Eu(B)?g.openMode="window":g.openMode=B,Ke?(b.baseUrl=globalThis.blocklet.appUrl,E(ke,G,Oe)):(b.baseUrl="",E(ke,G,Oe))}),C=gm(),I=Ct(async ke=>{const Ce=On(Vi,"/api/user/logout");await fetch(Ce,{method:"POST",body:JSON.stringify({visitorId:C}),headers:{"Content-Type":"application/json"}}),X(),be(),b.user=null,b.provider="",b.walletOS="",b.error="",b.loading=!1,$.emit("logout"),typeof ke=="function"&&ke()}),{userSessions:_,refresh:x,loaded:v,loginUserSession:k}=YX({appPid:SK(b.user),loginAppPid:(Je=globalThis==null?void 0:globalThis.blocklet)==null?void 0:Je.appPid,sourceAppPid:(Be=b==null?void 0:b.user)==null?void 0:Be.sourceAppPid,autoFetch:!1}),ne=Ct((ke,Ce={},Oe={})=>{const Ke=ke;typeof Ke=="object"&&(ke=Ke.onSuccess,Ce=Ke.extraParams||{},Oe=Ke.options||{}),typeof Oe=="string"&&(Oe={origin:Oe}),Oe!=null&&Oe.userSession?k(Oe.userSession).then(Me=>{D("switch-did",ke),re({...Me,encrypted:!1}),J(!0).then(()=>{$.emit(ei.LOGIN,Me,le)})}):(Eu(Ce==null?void 0:Ce.forceConnected)&&(Ce.forceConnected=!1),S(ke,Ce,{...Oe,origin:"switch-did"}))}),N=Ct((ke,Ce={})=>{const Oe=ke;typeof Oe=="object"&&(ke=Oe.onSuccess,Ce=Oe.extraParams||{}),b.user&&(D("switch-profile",ke,Oe==null?void 0:Oe.onCancel),g.extraParams=Ce,g.options={},b.action="switch-profile",Ne())}),q=Ct((ke,Ce={})=>{const Oe=ke;typeof Oe=="object"&&(ke=Oe.onSuccess,Ce=Oe.extraParams||{}),b.user&&(D("switch-passport",ke,Oe==null?void 0:Oe.onCancel),g.extraParams=Ce,g.options={},b.action="switch-passport",Ne())}),ie=Ct((ke,Ce={})=>{const Oe=ke;typeof Oe=="object"&&(ke=Oe.onSuccess),b.user&&(D("bind-wallet",ke,Oe==null?void 0:Oe.onCancel),g.extraParams=Ce,g.options={},b.action="bind-wallet",Ne())}),ue=Ct(ke=>{g.extraParams={},g.options={},re(ke),b.loading=!1,J(!0).then(()=>{b.action==="login"?$.emit(ei.LOGIN,ke,le):b.action==="switch-passport"&&$.emit(ei.SWITCH_PASSPORT,ke,le)})}),he=Ct(ke=>{g.extraParams={},g.options={},re(ke),b.loading=!1,J(!0).then(()=>{$.emit(ei.BIND_WALLET,ke,le)})}),Se=Ct(ke=>{g.extraParams={},g.options={},b.loading=!1,J(!0).then(()=>{$.emit(ei.SWITCH_PROFILE,ke,le)})}),j=Ct(ke=>{g.extraParams={},g.options={},be();const Ce={login:ei.CANCEL_LOGIN,"switch-profile":ei.CANCEL_SWITCH_PROFILE,"switch-passport":ei.CANCEL_SWITCH_PASSPORT,"bind-wallet":ei.CANCEL_BIND_WALLET};$.emit(Ce[ke])}),L=Ct((ke,...Ce)=>{try{we[ke](...Ce)}catch(Oe){console.error("Catch error in onSuccess",{action:ke,args:Ce,err:Oe})}}),{federatedMaster:Z,federatedEnabled:K,master:te}=lqe({locale:b.locale,decrypt:le,login:E,logout:I,handleLoginResult:re,handleRefreshUser:J,setRefreshToken:u,setSessionToken:h}),{checkMatch:ye}=Sqe({protectedRoutes:c.protectedRoutes||[]}),pe=pE(_),ae=Ct(async()=>(v||(await x(),await Nm()),pe.current)),me={api:Q,events:$,storage:a,connectApi:d,session:{...b,loading:g.autoConnect&&!b.user||b.loading,login:S,logout:I,switchDid:ne,switchProfile:N,switchPassport:q,bindWallet:ie,refresh:J,updateConnectedInfo:JZ,federatedMaster:Z,useOAuth:mR,OAuthProvider:s2,OAuthConsumer:VVe,OAuthContext:hR,useDid:uX,WrapDid:dX,getUserSessions:ae}},we={login:ue,"switch-profile":Se,"switch-passport":ue,"bind-wallet":he},be=Ct(()=>{b.open=!1,d.close()}),Ne=async()=>{var Me,G,B,F,se;const ke=sd[b.action],Ce=ke[b.locale]||ke.en,Oe={...r.extraParams,...c.extraParams,...g.extraParams,previousUserDid:(Me=b==null?void 0:b.user)==null?void 0:Me.did,email:(G=b==null?void 0:b.user)==null?void 0:G.email};Oe==null||delete Oe.openMode;const Ke={action:b.action,locale:b.locale,extraParams:Oe,options:{...c.options||{},...g.options},checkTimeout:c.timeout,webWalletUrl:c.webWalletUrl,messages:Ce,useSocket:c.useSocket,...f6(c,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...iE(g.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:g.prefix,allowWallet:Eu(g.allowWallet)?b.action!=="login"||(((B=globalThis.blocklet)==null?void 0:B.DID_CONNECT_ALLOW_WALLET)||"1")==="1":g.allowWallet,onSuccess(...Ee){L(b.action,...Ee),setTimeout(()=>{b.open=!1},2e3)},onClose(...Ee){j(b.action,...Ee)},onError(Ee){console.error(Ee)}};if(b.open=!0,["login"].includes(b.action)&&g.openMode==="window"&&!y.wallet)try{const Ee={...Ke,baseUrl:window.location.origin};zb(g.prefix)||(Ee.prefix=On(window.location.origin,c.serviceHost==="/"?"":c.serviceHost,g.prefix)),(F=Ee.extraParams)!=null&&F.provider||(Ee.extraParams.provider=((se=b==null?void 0:b.user)==null?void 0:se.provider)||"wallet"),await d.openPopup(Ee,{locale:b.locale})}catch(Ee){Ee.message==="Timeout"?Ci.error(vU[b.locale]||vU.en):console.error(Ee)}else d.open(Ke)};return af(()=>{if(b.initialized){const ke=!M;$.emit("change",{user:_l(b.user),isFirst:ke})}},[b.user,b.initialized,$]),af(()=>{if(b.initialized&&b.user){const{params:ke,url:Ce}=eVe();if(ke){const{switchBehavior:Oe,forceConnected:Ke,sourceAppPid:Me}=ke;window.history.replaceState(null,"trim",Ce),Ke!==b.user.did&&(Oe==="required"?ne(()=>{},{openMode:"redirect",sourceAppPid:Me,forceConnected:Ke}):Oe==="disabled"||setTimeout(()=>{R.open({title:sd.switchAccountDialog[b.locale].title,content:W.jsxs(W.Fragment,{children:[W.jsx(Br,{variant:"body1",sx:{textAlign:"center",mb:2},children:sd.switchAccountDialog[b.locale].description}),W.jsxs(yt,{sx:{display:"flex",alignItems:"center",color:Rt.foregroundsFgBase},children:[W.jsxs(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1},children:[W.jsx(Bl,{did:b.user.did,shape:"circle",variant:"circle",size:80}),W.jsx(Ep,{did:b.user.did,showAvatar:!1,compact:!0,responsive:!1}),sd.switchAccountDialog[b.locale].currentAccount]}),W.jsx(yt,{sx:{display:"flex",justifyContent:"center",px:2},children:W.jsx(yt,{component:Zn,icon:ePe,fontSize:24,color:Rt.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}}}})}),W.jsxs(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1,fontWeight:500},children:[W.jsx(Bl,{did:Ke,shape:"circle",variant:"circle",size:80}),W.jsx(Ep,{did:Ke,showAvatar:!1,compact:!0,responsive:!1}),sd.switchAccountDialog[b.locale].nextAccount]})]})]}),showCancelButton:!1,confirmButtonText:sd.switchAccountDialog[b.locale].confirm,onConfirm(G){G(),ne(()=>{window.location.reload()},{sourceAppPid:Me,forceConnected:Ke},{showQuickConnect:!1})}})},1e3))}}},[b.initialized]),xm(async()=>{const ke=Mr.get("connected_app"),Ce=nR();if(c.autoDisconnect&&ke&&Ce&&ke!==Ce){X(),b.initialized=!0,g.autoConnect?Ne():be();return}const Oe=P();let Ke="web";if(y.mobile.apple.device?Ke="ios":y.mobile.android.device&&(Ke="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&y.wallet&&KXe({version:y.walletVersion,platform:Ke})){if(!C){const G=await zXe();JG(G)}if(!Oe)try{b.loading=!0;const G=await WXe();if(G){b.initialized=!0,ue({sessionToken:G.sessionToken,refreshToken:G.refreshToken,encrypted:!1});return}}finally{b.loading=!1}}if(Oe){await J(!0),b.initialized=!0;return}if(typeof window<"u"){const G=new URL(window.location.href),B=G.searchParams.get("loginToken");if(B){re({loginToken:B,encrypted:!1}),G.searchParams.delete("loginToken"),window.history.replaceState({},window.title,G.href);return}}if(T()){await U(!0),b.initialized=!0;return}try{}catch(G){console.error("Federated: tryAutoLogin failed",G)}finally{b.initialized=!0}g.autoConnect?Ne():be()}),ye()&&!b.initialized?W.jsx(pp,{children:W.jsx(K8,{})}):W.jsx(YXe,{value:me,children:W.jsxs(s2,{locale:b.locale,onSwitchPassport:({sessionToken:ke,refreshToken:Ce})=>{ue({sessionToken:ke,refreshToken:Ce,encrypted:!1})},onBindOAuth:()=>{J()},children:[!b.open&&typeof c.children=="function"?c.children(b):c.children,p,A,r.rolling&&W.jsx(WZ,{callback:()=>V()})]})})}s.propTypes={children:ge.any.isRequired,serviceHost:ge.string,action:ge.string,prefix:ge.string,appendAuthServicePrefix:ge.bool,locale:ge.string,timeout:ge.number,autoConnect:ge.bool,autoDisconnect:ge.bool,useSocket:ge.bool,extraParams:ge.object,options:ge.object,webWalletUrl:ge.string,protectedRoutes:ge.arrayOf(ge.string),apiOptions:ge.object,lazyRefreshToken:ge.bool},s.defaultProps={serviceHost:i,locale:"",action:"login",prefix:tR,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:NZ*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function l(c){return function(p){return W.jsx(F3,{children:W.jsx(yU,{children:y=>W.jsx(c,{...p,...y})})})}}return{SessionProvider:c=>W.jsx(F3,{children:W.jsx(s,{...c})}),SessionConsumer:yU,SessionContext:fh,withSession:l}}let lQ="/";window.env&&(lQ=window.env.groupPathPrefix||window.env.pathPrefix||"/");function uQ(e,t){return[void 0,null,""].includes(e)?t:e/86400}var YH,ZH,XH;const XXe=uQ((XH=(ZH=(YH=window.blocklet)==null?void 0:YH.settings)==null?void 0:ZH.session)==null?void 0:XH.cacheTtl,1/144);var QH,ej,tj;const QXe=uQ((tj=(ej=(QH=window.blocklet)==null?void 0:QH.settings)==null?void 0:ej.session)==null?void 0:tj.ttl,7),{SessionProvider:eQe,SessionContext:tQe,SessionConsumer:Gmt,withSession:Wmt}=ZXe("login_token","cookie",{returnDomain:!1,path:lQ,expireInDays:XXe},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays:QXe});function cQ(){return z.useContext(tQe)}function nQe({children:e}){const t=Lq({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return W.jsx(yq,{injectFirst:!0,children:W.jsx(nve,{theme:t,children:W.jsx(gq,{theme:t,children:W.jsx($8,{translations:o6e,fallbackLocale:"en",children:W.jsx(F3,{children:W.jsx(t$,{theme:t,children:e})})})})})})}const e$=new URL(window.location.href),fQ=e$.searchParams.get("mode")||"",rQe=e$.pathname.includes("embed")&&fQ==="dialog",iQe=e$.pathname.includes("embed")&&fQ!=="dialog";function t$({children:e,theme:t}){var i,a,o;const{locale:n}=Kb(),r=Gs`
|
|
517
517
|
${rQe?"body { background-color: transparent }":""}
|
|
518
518
|
${iQe?".MuiModal-backdrop { background-color: transparent !important }":""}
|
|
519
519
|
a {
|
|
@@ -1319,10 +1319,10 @@ ${r.length}`,o=Ft.from(a),s=Ft.concat([o,i]);return ast.default.keccak256s(s)}et
|
|
|
1319
1319
|
`)&&e.flags==="s")}),Cht=Ka,Rht=za,$ht=Rht.RegExp,Iht=Cht(function(){var e=$ht("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Fd=Eh,RT=Aa,kht=CT,Dht=Qpt,Oht=rht,Lht=oI,Pht=Aht,Mht=tre.get,Bht=xht,Nht=Iht,Fht=Lht("native-string-replace",String.prototype.replace),R2=RegExp.prototype.exec,Rx=R2,Uht=RT("".charAt),Hht=RT("".indexOf),jht=RT("".replace),B5=RT("".slice),$x=function(){var e=/a/,t=/b*/g;return Fd(R2,e,"a"),Fd(R2,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),dre=Oht.BROKEN_CARET,Ix=/()??/.exec("")[1]!==void 0,Jht=$x||Ix||dre||Bht||Nht;Jht&&(Rx=function(t){var n=this,r=Mht(n),i=kht(t),a=r.raw,o,s,l,f,c,d,p;if(a)return a.lastIndex=n.lastIndex,o=Fd(Rx,a,i),n.lastIndex=a.lastIndex,o;var y=r.groups,g=dre&&n.sticky,b=Fd(Dht,n),R=n.source,A=0,$=i;if(g&&(b=jht(b,"y",""),Hht(b,"g")===-1&&(b+="g"),$=B5(i,n.lastIndex),n.lastIndex>0&&(!n.multiline||n.multiline&&Uht(i,n.lastIndex-1)!==`
|
|
1320
1320
|
`)&&(R="(?: "+R+")",$=" "+$,A++),s=new RegExp("^(?:"+R+")",b)),Ix&&(s=new RegExp("^"+R+"$(?!\\s)",b)),$x&&(l=n.lastIndex),f=Fd(R2,g?s:n,$),g?f?(f.input=B5(f.input,A),f[0]=B5(f[0],A),f.index=n.lastIndex,n.lastIndex+=f[0].length):n.lastIndex=0:$x&&f&&(n.lastIndex=n.global?f.index+f[0].length:l),Ix&&f&&f.length>1&&Fd(Fht,f[0],s,function(){for(c=1;c<arguments.length-2;c++)arguments[c]===void 0&&(f[c]=void 0)}),f&&y)for(f.groups=d=Pht(null),c=0;c<y.length;c++)p=y[c],d[p[0]]=f[p[1]];return f});var gI=Rx,Vht=sre,DH=gI;Vht({target:"RegExp",proto:!0,forced:/./.exec!==DH},{exec:DH});var qht=tI,pre=Function.prototype,OH=pre.apply,LH=pre.call,Ght=typeof Reflect=="object"&&Reflect.apply||(qht?LH.bind(OH):function(){return LH.apply(OH,arguments)}),Wht=Qm,zht=Aa,hre=function(e){if(Wht(e)==="Function")return zht(e)},PH=hre,MH=rre,Kht=gI,BH=Ka,mre=_f,Yht=sI,Zht=mre("species"),N5=RegExp.prototype,Xht=function(e,t,n,r){var i=mre(e),a=!BH(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!BH(function(){var f=!1,c=/a/;return e==="split"&&(c={},c.constructor={},c.constructor[Zht]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return f=!0,null},c[i](""),!f});if(!a||!o||n){var s=PH(/./[i]),l=t(i,""[e],function(f,c,d,p,y){var g=PH(f),b=c.exec;return b===Kht||b===N5.exec?a&&!y?{done:!0,value:s(c,d,p)}:{done:!0,value:g(d,c,p)}:{done:!1}});MH(String.prototype,e,l[0]),MH(N5,i,l[1])}r&&Yht(N5[i],"sham",!0)},yI=Aa,Qht=xT,e0t=CT,t0t=eg,n0t=yI("".charAt),NH=yI("".charCodeAt),r0t=yI("".slice),FH=function(e){return function(t,n){var r=e0t(t0t(t)),i=Qht(n),a=r.length,o,s;return i<0||i>=a?e?"":void 0:(o=NH(r,i),o<55296||o>56319||i+1===a||(s=NH(r,i+1))<56320||s>57343?e?n0t(r,i):o:e?r0t(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},i0t={codeAt:FH(!1),charAt:FH(!0)},a0t=i0t.charAt,o0t=function(e,t,n){return t+(n?a0t(e,t).length:1)},vI=Aa,s0t=qne,l0t=Math.floor,F5=vI("".charAt),u0t=vI("".replace),U5=vI("".slice),c0t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f0t=/\$([$&'`]|\d{1,2})/g,d0t=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,l=f0t;return i!==void 0&&(i=s0t(i),l=c0t),u0t(a,l,function(f,c){var d;switch(F5(c,0)){case"$":return"$";case"&":return e;case"`":return U5(t,0,n);case"'":return U5(t,o);case"<":d=i[U5(c,1,-1)];break;default:var p=+c;if(p===0)return f;if(p>s){var y=l0t(p/10);return y===0?f:y<=s?r[y-1]===void 0?F5(c,1):r[y-1]+F5(c,1):f}d=r[p-1]}return d===void 0?"":d})},UH=Eh,p0t=xf,h0t=Ya,m0t=Qm,g0t=gI,y0t=TypeError,v0t=function(e,t){var n=e.exec;if(h0t(n)){var r=UH(n,e,t);return r!==null&&p0t(r),r}if(m0t(e)==="RegExp")return UH(g0t,e,t);throw y0t("RegExp#exec called on incompatible receiver")},b0t=Ght,HH=Eh,$T=Aa,E0t=Xht,T0t=Ka,A0t=xf,w0t=Ya,S0t=nI,_0t=xT,x0t=fI,pd=CT,C0t=eg,R0t=o0t,$0t=Jne,I0t=d0t,k0t=v0t,D0t=_f,kx=D0t("replace"),O0t=Math.max,L0t=Math.min,P0t=$T([].concat),H5=$T([].push),jH=$T("".indexOf),JH=$T("".slice),M0t=function(e){return e===void 0?e:String(e)},B0t=function(){return"a".replace(/./,"$0")==="$0"}(),VH=function(){return/./[kx]?/./[kx]("a","$0")==="":!1}(),N0t=!T0t(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"});E0t("replace",function(e,t,n){var r=VH?"$":"$0";return[function(a,o){var s=C0t(this),l=S0t(a)?void 0:$0t(a,kx);return l?HH(l,a,s,o):HH(t,pd(s),a,o)},function(i,a){var o=A0t(this),s=pd(i);if(typeof a=="string"&&jH(a,r)===-1&&jH(a,"$<")===-1){var l=n(t,o,s,a);if(l.done)return l.value}var f=w0t(a);f||(a=pd(a));var c=o.global;if(c){var d=o.unicode;o.lastIndex=0}for(var p=[];;){var y=k0t(o,s);if(y===null||(H5(p,y),!c))break;var g=pd(y[0]);g===""&&(o.lastIndex=R0t(s,x0t(o.lastIndex),d))}for(var b="",R=0,A=0;A<p.length;A++){y=p[A];for(var $=pd(y[0]),D=O0t(L0t(_0t(y.index),s.length),0),M=[],J=1;J<y.length;J++)H5(M,M0t(y[J]));var U=y.groups;if(f){var V=P0t([$],M,D,s);U!==void 0&&H5(V,U);var X=pd(b0t(a,void 0,V))}else X=I0t($,s,D,M,U,a);D>=R&&(b+=JH(s,R,D)+X,R=D+$.length)}return b+JH(s,R)}]},!N0t||!B0t||VH);var F0t=Th,U0t=Qm,H0t=_f,j0t=H0t("match"),J0t=function(e){var t;return F0t(e)&&((t=e[j0t])!==void 0?!!t:U0t(e)=="RegExp")},V0t=J0t,q0t=TypeError,G0t=function(e){if(V0t(e))throw q0t("The method doesn't accept regular expressions");return e},W0t=_f,z0t=W0t("match"),K0t=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[z0t]=!1,"/./"[e](t)}catch{}}return!1},Y0t=sre,gre=hre,Z0t=ST.f,X0t=fI,qH=CT,Q0t=G0t,e1t=eg,t1t=K0t,GH=gre("".endsWith),n1t=gre("".slice),r1t=Math.min,yre=t1t("endsWith"),i1t=!yre&&!!function(){var e=Z0t(String.prototype,"endsWith");return e&&!e.writable}();Y0t({target:"String",proto:!0,forced:!i1t&&!yre},{endsWith:function(t){var n=qH(e1t(this));Q0t(t);var r=arguments.length>1?arguments[1]:void 0,i=n.length,a=r===void 0?i:r1t(X0t(r),i),o=qH(t);return GH?GH(n,o,a):n1t(n,a-o.length,a)===o}});const a1t={name:"Query"},o1t={name:"Mutation"},s1t=null,l1t=[{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:"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}],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:"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}],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:"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:"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}],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}],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:"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:"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:"attachRuntimeInfo",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:"RequestChangeBlockletStoreInput",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}],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:"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}],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}],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}],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}],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:"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:"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:"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:"RequestGetAutoBackupInput",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:"RequestGetAutoCheckUpdateInput",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:"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:"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}],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}],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:"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}],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:"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:"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:"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}],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:"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:"RequestUpdateWhoCanAccessInput",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:"whoCanAccess",description:null,type:{kind:"SCALAR",name:"String",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:"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}],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}],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}],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}],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:"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}],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}],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:"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:"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}],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}],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}],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}],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}],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:"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}],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}],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}],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}],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}],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}],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:"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:"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:"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:"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:"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:"ResponseGetAutoBackup",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoBackup",description:null,args:[],type:{kind:"OBJECT",name:"AutoBackup",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetAutoCheckUpdate",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoCheckUpdate",description:null,args:[],type:{kind:"OBJECT",name:"AutoCheckUpdate",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:"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:"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}],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}],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}],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:"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:"updateWhoCanAccess",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateWhoCanAccessInput",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:"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:"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:"RequestChangeBlockletStoreInput",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:"RequestChangeBlockletStoreInput",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}],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:"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:"getAutoBackup",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetAutoBackupInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetAutoBackup",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getAutoCheckUpdate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetAutoCheckUpdateInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetAutoCheckUpdate",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}],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.
|
|
1321
1321
|
|
|
1322
|
-
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}],u1t=[{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}]}],c1t={queryType:a1t,mutationType:o1t,subscriptionType:s1t,types:l1t,directives:u1t},f1t=wne,d1t=c1t;let p1t=class extends f1t{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"http://localhost:4000/api",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r={dataSource:"forge",httpEndpoint:t,socketEndpoint:()=>this._getSocketEndpoint(t),enableQuery:!0,enableSubscription:!0,enableMutation:!0,maxQueryDepth:6};super(r),this._endpoint=t,this._authToken=null,this._userAgent=n}setAuthToken(t){this._authToken=t}_getSocketEndpoint(t){let n=t.replace(/https?:\/\//,"ws://");return t.indexOf("https://")===0&&(n=n.replace("ws://","wss://")),"".concat(n,"/socket")}_getSchema(){return d1t}_getIgnoreFields(t){return[]}_getAuthHeaders(){const t={},n=this._authToken;if(n){const r=typeof n=="function"?n():n;t.Authorization="Bearer ".concat(encodeURIComponent(r))}if(typeof window<"u"&&typeof window.location<"u"){const{hostname:r,port:i,protocol:a}=window.location;t["x-real-hostname"]=r,t["x-real-port"]=i,t["x-real-protocol"]=a.endsWith(":")?a.substring(0,a.length-1):a}return this._userAgent&&(t["User-Agent"]=this._userAgent),t}};var h1t=p1t;const m1t=jX,g1t=h1t;class y1t extends g1t{_getSocketOptions(){return{}}_getEventImplementation(){return m1t}}var v1t=y1t;const b1t=Ut(v1t),E1t=(window.env?window.env.apiPrefix:"/")||"/",gl=new b1t(()=>`${E1t}/api/gql?locale=${i6()}`.replace(/\/+/g,"/").trim());function T1t({wsClient:e,event:t,cb:n=()=>{},deps:r=[]}){z.useEffect(()=>{const i=e&&(!r.length||r.every(Boolean));return i&&e.on(t,n),()=>{i&&e.off(t,n)}},r)}let Hc;function vre(){const e=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),t=`//${window.location.host}${e}/admin`;return new MR.WsClient(t,{heartbeatIntervalMs:100*1e3,params:()=>({token:Mr.get("login_token")})})}function bre(){return Hc||(Hc=vre()),Hc}const bI=(e,t=()=>{},n=[])=>{e=`${window.blocklet.did}/${e}`;const{session:r}=cQ();!Hc&&r.user&&(Hc=bre(),Hc.connect()),T1t({wsClient:Hc,event:e,cb:t,deps:n})};let j5=null;const A1t=async()=>{try{return(await Xm.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},w1t=()=>(j5||(j5=A1t()),j5),{Provider:S1t,Consumer:iyt}=m$,_1t=e=>e&&Ms(e,"settings.publicToStore")?e.settings.publicToStore:!1,x1t=(e,t)=>{const n=/^{env\.(.+)}$/.exec(e);if(n&&n[1]){const r=((t==null?void 0:t.configs)||[]).find(i=>i.key===n[1]);return!r&&!r.value?"":r.value}return e},C1t=(()=>{const e={endpoint:"",data:{}};return async t=>{if(e.endpoint===t)return e.data;const r=await _ne(t).getConfig();return e.endpoint=t,e.data=r,r}})(),{did:hd,appId:R1t}=window.env;function Z0({children:e,mode:t}){const[n,r]=z.useState(null),[i,a]=z.useState(!1),[o,s]=z.useState(),[l,f]=z.useState({}),[c,d]=z.useState(),[p,y]=z.useState(),g=t==="setup",{loading:b,loadingRuntimeInfo:R,error:A,blocklet:$,recommendedDomain:D,runtimeHistory:M,actions:{refreshBlocklet:J,refreshDomainStatus:U,setBlocklet:V}}=mat({did:hd,client:gl,useSubscription:bI,getIP:w1t,useLocaleContext:Kb}),X=async()=>{try{a(!0),r(null);const{data:h}=await Xm.get("/blocklet/meta");f(h),a(!1)}catch(h){a(!1),r(h),Ci.error(h.message)}},re=async({showError:h=!0}={})=>{var k,ne;if(!((ne=(k=l==null?void 0:l.requirements)==null?void 0:k.fuels)!=null&&ne.length))return null;const{endpoint:E,value:S,address:C}=l.requirements.fuels[0],I=x1t(E,$),_=S;let x=S;const v={endpoint:I,symbol:"",need:_,current:0,owe:Number(_)>0};try{const N=_ne(I),{config:q}=await C1t(I),ie=JSON.parse(q).token;let ue=C;ue||(ue=ie.address),y({address:ie.address,symbol:ie.symbol,decimal:ie.decimal});const{getAccountState:{state:he},getTokenState:{state:Se}}=await N.doBatchQuery({getAccountState:{address:R1t},getTokenState:{address:ue}});Se&&(v.symbol=Se.symbol);const j=((he==null?void 0:he.tokens)||[]).find(L=>L.address===ue);if(j){const L=ai.fromTokenToUnit(_,j.decimal||18);v.current=ai.fromUnitToToken(j.value,j.decimal||18),v.owe=L.gt(new ai.BN(j.value)),x=Math.max(0,ai.fromUnitToToken(L.sub(new ai.BN(j.value)),j.decimal||18))}}catch(N){h&&Ci.error(N.message)}return d({...v,deficiency:x}),v},le=async({configs:h,childDid:E})=>(await gl.configBlocklet({input:{did:[hd].concat(E).filter(Boolean),configs:h}}),J()),Q=async h=>{const{blocklet:E}=await gl.updateWhoCanAccess({input:{did:[hd],whoCanAccess:h}});V(E)},P=async h=>{const{blocklet:E}=await gl.configPublicToStore({input:{did:hd,publicToStore:h}});V(E)},T=async h=>{const{blocklet:E}=await gl.configNavigations({input:{did:hd,navigations:h}});V(E)};z.useEffect(()=>{g&&X(),J({showError:!1})},[]),z.useEffect(()=>{if(!$||!($!=null&&$.controller))return;const{controller:h}=$;Rit(h.chainHost,h.nftId).then(E=>{E.expirationDate=ax.getNftExpirationDate(E),E.expired=ax.isNFTExpired(E),s(E)}).catch(E=>console.error(E))},[$==null?void 0:$.appPid]);const u={loading:i||b,loadingRuntimeInfo:R,error:n||A,blocklet:$,did:hd,recommendedDomain:D,runtimeHistory:M,appIdList:$?ite($):[],env:window.blocklet||{},meta:l,gas:c,tokenInfo:p,getPublicInstance:_1t,nftState:o,client:gl,mode:t,actions:{refreshBlocklet:J,refreshDomainStatus:U,setBlocklet:V,refreshMeta:X,refreshFuel:re,configBlocklet:le,configWhoCanAccess:Q,configPublicToStore:P,configNavigations:T}};return W.jsx(S1t,{value:u,children:e})}Z0.propTypes={children:ge.any,mode:ge.oneOf(["dashboard","setup"]).isRequired};Z0.defaultProps={children:null};function ayt(){return z.useContext(m$)}const EI=z.createContext({});function oyt(){const{node:e}=z.useContext(EI);return{...e,inService:e.type==="service",inDaemon:e.type==="daemon"}}const{Provider:$1t,Consumer:syt}=EI,I1t=`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function WH({children:e}){const{serverDid:t,serverVersion:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}=window.env,s={api:gl,restApi:Xm,prefix:Zt.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix:I1t,getSessionInHeader:()=>({}),ws:{getWsClient:bre,create:vre,useSubscription:bI},type:"service",info:{did:t,version:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}};return W.jsx($1t,{value:{node:s},children:e})}function lyt(){const{node:e}=z.useContext(EI);return e}const Ere=z.createContext({}),{Provider:k1t,Consumer:uyt}=Ere;function D1t({children:e}){const{did:t}=window.env,[n,r]=z.useState([]),[i,a]=z.useState({total:0,pageSize:10,pageCount:0,page:1}),[o,s]=z.useState(!1),l=async({page:c=1}={})=>{if(!o){s(!0);try{const d=await gl.getBlockletNotifications({input:{paging:{page:c},teamDid:t}});r(d.list),a(d.paging),s(!1)}catch(d){Ci.error(d.message),s(!1)}}};z.useEffect(()=>{l()},[]),bI(Zt.EVENTS.NOTIFICATION_BLOCKLET_CREATE,c=>{r(d=>[c,...d||[]])});const f={loading:o,refresh:l,data:n||[],paging:i,api:gl};return W.jsx(k1t,{value:{notifications:f},children:e})}function cyt(){const{notifications:e}=z.useContext(Ere);return e}const O1t=z.lazy(()=>sn(()=>import("./login-04v880Iz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),L1t=z.lazy(()=>sn(()=>import("./connect-qstsRWWM.js"),__vite__mapDeps([9,10,1,11,3,5,6,7]))),P1t=z.lazy(()=>sn(()=>import("./exchange-passport-fwa9EQLX.js"),__vite__mapDeps([12,11,13,14,15,16]))),M1t=z.lazy(()=>sn(()=>import("./issue-passport-9JCUpg-H.js"),__vite__mapDeps([17,18,19,15,11,13,1,16,20]))),B1t=z.lazy(()=>sn(()=>import("./lost-passport-F5idDReU.js"),__vite__mapDeps([21,18,19,15,22,23,24,20,13,1,16,25,26]))),N1t=z.lazy(()=>sn(()=>import("./start-1Un44vsd.js"),__vite__mapDeps([27,2,23,24,15,20,28,29,30,31,32,3,33,4,34]))),F1t=z.lazy(()=>sn(()=>import("./setup-Azfq43r5.js"),__vite__mapDeps([35,36,37,38,39,10,40,41,29,30,31,15,28,32,3]))),U1t=z.lazy(()=>sn(()=>import("./invite-zRKtERWD.js"),__vite__mapDeps([42,19,15,43,1,44,18,16,13,14]))),H1t=z.lazy(()=>sn(()=>import("./transfer-wFwEqrOx.js"),__vite__mapDeps([45,2,29,30,31,15,3,4]))),j1t=z.lazy(()=>sn(()=>import("./dashboard-tk2Zj0Iy.js").then(e=>e.v),__vite__mapDeps([46,47,48,15,49,50,44,51,14,52,20,53,31,19,54,55,56,57,58,25,16,39,10,40,41,2,24,59,60,61,62,38,63,30,64,32,3,65,8,7,4]))),zH=z.lazy(()=>sn(()=>import("./user-center-at2edvXt.js"),__vite__mapDeps([66,67,59,61,62,38,63,60,30,47,40,68,69,70,71,53,10,72,73]))),J1t=z.lazy(()=>sn(()=>import("./home-Kau_sqYV.js"),__vite__mapDeps([74,75,61,62,38,63,59,2,3]))),V1t=z.lazy(()=>sn(()=>import("./preferences-8RXBVFut.js"),__vite__mapDeps([76,77,61,62,38,63,75,59,2]))),q1t=z.lazy(()=>sn(()=>import("./localization-91hg4t7I.js"),__vite__mapDeps([78,75,61,62,38,63,59,2]))),G1t=z.lazy(()=>sn(()=>import("./add-resource-3pZIROMS.js"),__vite__mapDeps([79,80,69,81,19,15,82,73,55,49,20,31,36,37,38,39,10,40,41,83,84,85,86,87,22,88,16,89,90,91,92,93,14,94,95,54,96,64,57,97,98,99,52,53,100,44,23,24,26,101,102,103,104,59,105,106,58,107,63,108,109,32]))),KH=z.lazy(()=>sn(()=>import("./publish-resource-hzXbza9w.js"),__vite__mapDeps([110,111,56,19,15,112,113,99,71,53,114,47,62,115,116,95,51,16,14,23,24,20,54,49,31,55,117,25,52,44,89,90,91,118,119,103,104,93,10,120,121,122,41,32,3]))),W1t=z.lazy(()=>sn(()=>import("./index-W2uUvH1R.js"),__vite__mapDeps([]))),z1t=z.lazy(()=>sn(()=>import("./unsubscribe-xRe3X65Z.js"),__vite__mapDeps([123,3,34,4])));function K1t(){const e=qs();z.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${e.pathname}${e.search}`)},[e]);const t=W.jsx(pp,{children:W.jsx(Dq,{})});return W.jsx(z.Suspense,{fallback:t,children:W.jsxs(N_,{children:[W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:W.jsx(B1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:W.jsx(M1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:W.jsx(O1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:W.jsx(L1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:W.jsx(P1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:W.jsx(U1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:W.jsx(H1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:W.jsx(J1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:W.jsx(V1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:W.jsx(q1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:W.jsx(_c,{children:W.jsx(N1t,{})})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:W.jsx(Z0,{mode:"setup",children:W.jsx(F1t,{})})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:W.jsx(z1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:W.jsx(_c,{roles:["*"],children:W.jsx(zH,{})})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:W.jsx(_c,{roles:["*"],children:W.jsx(zH,{})})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:W.jsx(WH,{children:W.jsx(D1t,{children:W.jsx(_c,{roles:["owner","admin","member"],children:W.jsx(Z0,{mode:"dashboard",children:W.jsx(j1t,{})})})})})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:W.jsx(jV,{to:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:W.jsx(WH,{children:W.jsx(_c,{roles:["owner","admin"],children:W.jsx(Z0,{mode:"dashboard",children:W.jsxs(N_,{children:[W.jsx(_r,{path:"publish",element:W.jsx(KH,{})}),W.jsx(_r,{path:"publish/*",element:W.jsx(KH,{})}),W.jsx(_r,{path:"add",element:W.jsx(G1t,{})}),W.jsx(_r,{path:"*",element:W.jsx(W1t,{})})]})})})})})]})})}function Y1t(){return W.jsx(Ihe,{basename:Rne,children:W.jsx(nQe,{children:W.jsx(K1t,{})})})}const Z1t=yV(document.getElementById("app"));Z1t.render(W.jsx(Y1t,{}));const X1t=Zt.WELLKNOWN_SERVICE_PATH_PREFIX;{async function e(){const{register:t}=await sn(()=>import("./index-7SG8bi1h.js"),__vite__mapDeps([]));t(`${X1t}/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(n){console.error("Error during service worker registration:",n)}})}e()}export{yt as $,Bl as A,Ygt as B,pp as C,Ep as D,JG as E,tmt as F,Eu as G,en as H,Zt as I,qKe as J,UZ as K,Ohe as L,tQe as M,qG as N,$6 as O,ge as P,T1 as Q,wb as R,Dq as S,Ci as T,zt as U,Br as V,ir as W,B7 as X,si as Y,qAe as Z,xe as _,Kn as a,Xit as a$,Rt as a0,tge as a1,Di as a2,$m as a3,sn as a4,nyt as a5,Xm as a6,Rit as a7,gl as a8,eat as a9,$8 as aA,qs as aB,p$ as aC,eC as aD,qp as aE,Tm as aF,CX as aG,RX as aH,tC as aI,G8 as aJ,zX as aK,wm as aL,Ut as aM,I6e as aN,rE as aO,N8 as aP,$s as aQ,yi as aR,sat as aS,U_ as aT,XV as aU,M7 as aV,oyt as aW,Qmt as aX,Zit as aY,zit as aZ,fgt as a_,X7 as aa,Oa as ab,eyt as ac,tyt as ad,ax as ae,Ogt as af,Yd as ag,qit as ah,Gs as ai,ayt as aj,Qgt as ak,Xgt as al,mct as am,Rne as an,WH as ao,N_ as ap,_r as aq,jV as ar,yE as as,lgt as at,igt as au,agt as av,bOe as aw,a$ as ax,Xi as ay,i6e as az,Bge as b,zW as b$,jgt as b0,ngt as b1,Bgt as b2,cgt as b3,Jgt as b4,z0 as b5,ep as b6,TOe as b7,bI as b8,Y7 as b9,TQ as bA,Zmt as bB,xne as bC,aR as bD,fh as bE,K8 as bF,J3 as bG,NKe as bH,TX as bI,pf as bJ,et as bK,MZ as bL,Umt as bM,Y8 as bN,cz as bO,BZ as bP,pX as bQ,vm as bR,az as bS,oz as bT,TK as bU,vPe as bV,_l as bW,$1 as bX,Pb as bY,g6 as bZ,Vhe as b_,h1e as ba,f1e as bb,Dl as bc,Lgt as bd,xgt as be,lm as bf,ugt as bg,Sit as bh,$gt as bi,cyt as bj,lyt as bk,wK as bl,Vgt as bm,bre as bn,Xpe as bo,Yb as bp,Zp as bq,am as br,om as bs,zu as bt,Zn as bu,wR as bv,mm as bw,ss as bx,Bn as by,ez as bz,wt as c,Fhe as c$,oE as c0,k8 as c1,sE as c2,Mke as c3,u$ as c4,c$ as c5,zmt as c6,X8 as c7,rz as c8,ls as c9,rm as cA,i8 as cB,Kd as cC,r8 as cD,xK as cE,Pge as cF,Cme as cG,w1 as cH,F7 as cI,_q as cJ,eq as cK,$3 as cL,W1 as cM,m3e as cN,Bb as cO,Jhe as cP,qhe as cQ,Whe as cR,Ib as cS,o8 as cT,D6 as cU,Ggt as cV,Lq as cW,vmt as cX,yq as cY,Dye as cZ,gq as c_,bmt as ca,Emt as cb,iz as cc,WG as cd,Xo as ce,mn as cf,C8 as cg,Cm as ch,O8 as ci,emt as cj,R7 as ck,Wf as cl,Cq as cm,ti as cn,P7 as co,Pu as cp,rf as cq,yo as cr,$b as cs,os as ct,uve as cu,Ii as cv,Rq as cw,Us as cx,im as cy,nm as cz,ur as d,nE as d$,Sye as d0,lc as d1,Iq as d2,QV as d3,Nme as d4,Ol as d5,umt as d6,Tq as d7,lmt as d8,tm as d9,Cgt as dA,Igt as dB,Sq as dC,IKe as dD,Ta as dE,qgt as dF,_Oe as dG,yV as dH,_it as dI,Yit as dJ,Ngt as dK,jit as dL,Dgt as dM,Agt as dN,PF as dO,wmt as dP,Wit as dQ,Ait as dR,_gt as dS,Qit as dT,tat as dU,hct as dV,dit as dW,Hgt as dX,Xmt as dY,vE as dZ,wgt as d_,Pmt as da,Lye as db,Pq as dc,Fmt as dd,f6 as de,zE as df,Pye as dg,gmt as dh,aDe as di,pE as dj,wOe as dk,b6 as dl,Er as dm,cE as dn,fE as dp,af as dq,ii as dr,Ma as ds,Wme as dt,Ft as du,bgt as dv,Sgt as dw,WW as dx,Ms as dy,pgt as dz,N7 as e,SRe as e$,nKe as e0,pKe as e1,AQ as e2,F8 as e3,GCe as e4,O$e as e5,P$e as e6,l8 as e7,Gq as e8,pC as e9,kq as eA,F1e as eB,$1e as eC,sm as eD,pmt as eE,hmt as eF,Vme as eG,dmt as eH,cmt as eI,VL as eJ,jme as eK,Qc as eL,dye as eM,mmt as eN,Ll as eO,Oq as eP,vye as eQ,G_ as eR,Fme as eS,Wge as eT,kb as eU,$ye as eV,fmt as eW,nwe as eX,rwe as eY,dRe as eZ,xmt as e_,Jme as ea,gU as eb,iE as ec,h6 as ed,kmt as ee,hz as ef,Gke as eg,mz as eh,xP as ei,_P as ej,Hke as ek,Omt as el,Xt as em,omt as en,amt as eo,imt as ep,smt as eq,D8 as er,yf as es,Sm as et,uGe as eu,xG as ev,Bu as ew,dz as ex,Rgt as ey,_1e as ez,Gt as f,Hz as f$,Cmt as f0,Jn as f1,f$e as f2,py as f3,I$e as f4,wP as f5,Dmt as f6,oDe as f7,Qh as f8,pDe as f9,Mr as fA,xee as fB,Bz as fC,Q1t as fD,ggt as fE,vgt as fF,zgt as fG,Tgt as fH,Ste as fI,_ne as fJ,o0e as fK,dgt as fL,ygt as fM,Bmt as fN,Egt as fO,rat as fP,aat as fQ,wit as fR,xit as fS,dW as fT,TE as fU,vK as fV,rmt as fW,Pz as fX,XG as fY,sgt as fZ,Y0e as f_,El as fa,Z0e as fb,Kqe as fc,Vit as fd,Zgt as fe,ete as ff,DU as fg,ai as fh,hgt as fi,xX as fj,A8 as fk,QTe as fl,w8 as fm,Brt as fn,_8 as fo,Wu as fp,rgt as fq,Yz as fr,cit as fs,dC as ft,ogt as fu,mgt as fv,kgt as fw,Mgt as fx,lat as fy,iat as fz,qn as g,W8 as g0,YWe as g1,fCe as g2,R$ as g3,$$ as g4,kp as g5,Ymt as g6,tgt as g7,Nmt as g8,Pgt as g9,jhe as gA,ay as gB,Kit as gC,Git as gD,nat as gE,Tee as gF,rve as gG,tE as gH,Pl as gI,qye as gJ,aT as gK,uKe as gL,L8 as gM,pOe as gN,_mt as gO,Smt as gP,Mz as gQ,fZ as gR,Hi as gS,Fgt as gT,tz as gU,KW as gV,RLe as gW,LF as ga,V3 as gb,Mmt as gc,$De as gd,k1 as ge,W_ as gf,egt as gg,Amt as gh,h4e as gi,s4e as gj,C$e as gk,Rmt as gl,gIe as gm,yke as gn,dke as go,$mt as gp,vke as gq,Imt as gr,zke as gs,Lmt as gt,nmt as gu,fC as gv,zIe as gw,HRe as gx,T4 as gy,ymt as gz,Yt as h,nr as i,W as j,ym as k,Kb as l,On as m,cQ as n,z2 as o,gm as p,Ct as q,z as r,Db as s,xm as t,s8 as u,Vi as v,tR as w,uh as x,Fm as y,Kgt as z};
|
|
1322
|
+
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}],u1t=[{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}]}],c1t={queryType:a1t,mutationType:o1t,subscriptionType:s1t,types:l1t,directives:u1t},f1t=wne,d1t=c1t;let p1t=class extends f1t{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"http://localhost:4000/api",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r={dataSource:"forge",httpEndpoint:t,socketEndpoint:()=>this._getSocketEndpoint(t),enableQuery:!0,enableSubscription:!0,enableMutation:!0,maxQueryDepth:6};super(r),this._endpoint=t,this._authToken=null,this._userAgent=n}setAuthToken(t){this._authToken=t}_getSocketEndpoint(t){let n=t.replace(/https?:\/\//,"ws://");return t.indexOf("https://")===0&&(n=n.replace("ws://","wss://")),"".concat(n,"/socket")}_getSchema(){return d1t}_getIgnoreFields(t){return[]}_getAuthHeaders(){const t={},n=this._authToken;if(n){const r=typeof n=="function"?n():n;t.Authorization="Bearer ".concat(encodeURIComponent(r))}if(typeof window<"u"&&typeof window.location<"u"){const{hostname:r,port:i,protocol:a}=window.location;t["x-real-hostname"]=r,t["x-real-port"]=i,t["x-real-protocol"]=a.endsWith(":")?a.substring(0,a.length-1):a}return this._userAgent&&(t["User-Agent"]=this._userAgent),t}};var h1t=p1t;const m1t=jX,g1t=h1t;class y1t extends g1t{_getSocketOptions(){return{}}_getEventImplementation(){return m1t}}var v1t=y1t;const b1t=Ut(v1t),E1t=(window.env?window.env.apiPrefix:"/")||"/",gl=new b1t(()=>`${E1t}/api/gql?locale=${i6()}`.replace(/\/+/g,"/").trim());function T1t({wsClient:e,event:t,cb:n=()=>{},deps:r=[]}){z.useEffect(()=>{const i=e&&(!r.length||r.every(Boolean));return i&&e.on(t,n),()=>{i&&e.off(t,n)}},r)}let Hc;function vre(){const e=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),t=`//${window.location.host}${e}/admin`;return new MR.WsClient(t,{heartbeatIntervalMs:100*1e3,params:()=>({token:Mr.get("login_token")})})}function bre(){return Hc||(Hc=vre()),Hc}const bI=(e,t=()=>{},n=[])=>{e=`${window.blocklet.did}/${e}`;const{session:r}=cQ();!Hc&&r.user&&(Hc=bre(),Hc.connect()),T1t({wsClient:Hc,event:e,cb:t,deps:n})};let j5=null;const A1t=async()=>{try{return(await Xm.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},w1t=()=>(j5||(j5=A1t()),j5),{Provider:S1t,Consumer:iyt}=m$,_1t=e=>e&&Ms(e,"settings.publicToStore")?e.settings.publicToStore:!1,x1t=(e,t)=>{const n=/^{env\.(.+)}$/.exec(e);if(n&&n[1]){const r=((t==null?void 0:t.configs)||[]).find(i=>i.key===n[1]);return!r&&!r.value?"":r.value}return e},C1t=(()=>{const e={endpoint:"",data:{}};return async t=>{if(e.endpoint===t)return e.data;const r=await _ne(t).getConfig();return e.endpoint=t,e.data=r,r}})(),{did:hd,appId:R1t}=window.env;function Z0({children:e,mode:t}){const[n,r]=z.useState(null),[i,a]=z.useState(!1),[o,s]=z.useState(),[l,f]=z.useState({}),[c,d]=z.useState(),[p,y]=z.useState(),g=t==="setup",{loading:b,loadingRuntimeInfo:R,error:A,blocklet:$,recommendedDomain:D,runtimeHistory:M,actions:{refreshBlocklet:J,refreshDomainStatus:U,setBlocklet:V}}=mat({did:hd,client:gl,useSubscription:bI,getIP:w1t,useLocaleContext:Kb}),X=async()=>{try{a(!0),r(null);const{data:h}=await Xm.get("/blocklet/meta");f(h),a(!1)}catch(h){a(!1),r(h),Ci.error(h.message)}},re=async({showError:h=!0}={})=>{var k,ne;if(!((ne=(k=l==null?void 0:l.requirements)==null?void 0:k.fuels)!=null&&ne.length))return null;const{endpoint:E,value:S,address:C}=l.requirements.fuels[0],I=x1t(E,$),_=S;let x=S;const v={endpoint:I,symbol:"",need:_,current:0,owe:Number(_)>0};try{const N=_ne(I),{config:q}=await C1t(I),ie=JSON.parse(q).token;let ue=C;ue||(ue=ie.address),y({address:ie.address,symbol:ie.symbol,decimal:ie.decimal});const{getAccountState:{state:he},getTokenState:{state:Se}}=await N.doBatchQuery({getAccountState:{address:R1t},getTokenState:{address:ue}});Se&&(v.symbol=Se.symbol);const j=((he==null?void 0:he.tokens)||[]).find(L=>L.address===ue);if(j){const L=ai.fromTokenToUnit(_,j.decimal||18);v.current=ai.fromUnitToToken(j.value,j.decimal||18),v.owe=L.gt(new ai.BN(j.value)),x=Math.max(0,ai.fromUnitToToken(L.sub(new ai.BN(j.value)),j.decimal||18))}}catch(N){h&&Ci.error(N.message)}return d({...v,deficiency:x}),v},le=async({configs:h,childDid:E})=>(await gl.configBlocklet({input:{did:[hd].concat(E).filter(Boolean),configs:h}}),J()),Q=async h=>{const{blocklet:E}=await gl.updateWhoCanAccess({input:{did:[hd],whoCanAccess:h}});V(E)},P=async h=>{const{blocklet:E}=await gl.configPublicToStore({input:{did:hd,publicToStore:h}});V(E)},T=async h=>{const{blocklet:E}=await gl.configNavigations({input:{did:hd,navigations:h}});V(E)};z.useEffect(()=>{g&&X(),J({showError:!1})},[]),z.useEffect(()=>{if(!$||!($!=null&&$.controller))return;const{controller:h}=$;Rit(h.chainHost,h.nftId).then(E=>{E.expirationDate=ax.getNftExpirationDate(E),E.expired=ax.isNFTExpired(E),s(E)}).catch(E=>console.error(E))},[$==null?void 0:$.appPid]);const u={loading:i||b,loadingRuntimeInfo:R,error:n||A,blocklet:$,did:hd,recommendedDomain:D,runtimeHistory:M,appIdList:$?ite($):[],env:window.blocklet||{},meta:l,gas:c,tokenInfo:p,getPublicInstance:_1t,nftState:o,client:gl,mode:t,actions:{refreshBlocklet:J,refreshDomainStatus:U,setBlocklet:V,refreshMeta:X,refreshFuel:re,configBlocklet:le,configWhoCanAccess:Q,configPublicToStore:P,configNavigations:T}};return W.jsx(S1t,{value:u,children:e})}Z0.propTypes={children:ge.any,mode:ge.oneOf(["dashboard","setup"]).isRequired};Z0.defaultProps={children:null};function ayt(){return z.useContext(m$)}const EI=z.createContext({});function oyt(){const{node:e}=z.useContext(EI);return{...e,inService:e.type==="service",inDaemon:e.type==="daemon"}}const{Provider:$1t,Consumer:syt}=EI,I1t=`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function WH({children:e}){const{serverDid:t,serverVersion:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}=window.env,s={api:gl,restApi:Xm,prefix:Zt.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix:I1t,getSessionInHeader:()=>({}),ws:{getWsClient:bre,create:vre,useSubscription:bI},type:"service",info:{did:t,version:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}};return W.jsx($1t,{value:{node:s},children:e})}function lyt(){const{node:e}=z.useContext(EI);return e}const Ere=z.createContext({}),{Provider:k1t,Consumer:uyt}=Ere;function D1t({children:e}){const{did:t}=window.env,[n,r]=z.useState([]),[i,a]=z.useState({total:0,pageSize:10,pageCount:0,page:1}),[o,s]=z.useState(!1),l=async({page:c=1}={})=>{if(!o){s(!0);try{const d=await gl.getBlockletNotifications({input:{paging:{page:c},teamDid:t}});r(d.list),a(d.paging),s(!1)}catch(d){Ci.error(d.message),s(!1)}}};z.useEffect(()=>{l()},[]),bI(Zt.EVENTS.NOTIFICATION_BLOCKLET_CREATE,c=>{r(d=>[c,...d||[]])});const f={loading:o,refresh:l,data:n||[],paging:i,api:gl};return W.jsx(k1t,{value:{notifications:f},children:e})}function cyt(){const{notifications:e}=z.useContext(Ere);return e}const O1t=z.lazy(()=>sn(()=>import("./login-e66zu5Wk.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),L1t=z.lazy(()=>sn(()=>import("./connect-mbk2hX85.js"),__vite__mapDeps([9,10,1,11,3,5,6,7]))),P1t=z.lazy(()=>sn(()=>import("./exchange-passport-3HXvKt39.js"),__vite__mapDeps([12,11,13,14,15,16]))),M1t=z.lazy(()=>sn(()=>import("./issue-passport-bpGms9YB.js"),__vite__mapDeps([17,18,19,15,20,1,21,22,16,13,14,3]))),B1t=z.lazy(()=>sn(()=>import("./lost-passport-iXAhJYo-.js"),__vite__mapDeps([23,22,19,15,24,25,26,13,1,16,27,28]))),N1t=z.lazy(()=>sn(()=>import("./start-ztPGxEP2.js"),__vite__mapDeps([29,2,25,26,15,30,31,32,33,34,3,35,4,36]))),F1t=z.lazy(()=>sn(()=>import("./setup-V1H5uS4e.js"),__vite__mapDeps([37,38,39,40,41,10,42,43,31,32,33,15,30,34,3]))),U1t=z.lazy(()=>sn(()=>import("./invite-xA1RX6Ru.js"),__vite__mapDeps([44,18,19,15,20,1,21,22,16,13,14]))),H1t=z.lazy(()=>sn(()=>import("./transfer-A_b1gi7p.js"),__vite__mapDeps([45,2,31,32,33,15,3,4]))),j1t=z.lazy(()=>sn(()=>import("./dashboard-QmSVk38R.js").then(e=>e.v),__vite__mapDeps([46,47,48,15,49,50,21,51,14,52,33,19,26,53,54,55,56,57,58,27,16,41,10,42,43,2,59,60,61,62,40,63,32,64,34,3,65,8,7,4]))),zH=z.lazy(()=>sn(()=>import("./user-center-Aclo8pyD.js"),__vite__mapDeps([66,67,59,61,62,40,63,60,32,47,42,68,69,70,71,53,10,72,73]))),J1t=z.lazy(()=>sn(()=>import("./home-YUABDbdq.js"),__vite__mapDeps([74,75,61,62,40,63,59,2,3]))),V1t=z.lazy(()=>sn(()=>import("./preferences-RH1LPh09.js"),__vite__mapDeps([76,77,61,62,40,63,75,59,2]))),q1t=z.lazy(()=>sn(()=>import("./localization-9wrHBYfW.js"),__vite__mapDeps([78,75,61,62,40,63,59,2]))),G1t=z.lazy(()=>sn(()=>import("./add-resource-F6M9SxXb.js"),__vite__mapDeps([79,80,69,81,19,15,82,73,55,49,26,33,38,39,40,41,10,42,43,83,84,85,86,87,24,88,16,89,90,91,92,93,14,94,95,54,96,64,57,97,98,99,52,53,100,21,25,28,101,102,103,104,59,105,106,58,107,63,108,109,34]))),KH=z.lazy(()=>sn(()=>import("./publish-resource-rPm6dg0_.js"),__vite__mapDeps([110,111,56,19,15,112,113,99,71,53,114,47,62,115,116,95,51,16,14,25,26,54,49,33,55,117,27,52,21,89,90,91,118,119,103,104,93,10,120,121,122,43,34,3]))),W1t=z.lazy(()=>sn(()=>import("./index-3Gq88ATv.js"),__vite__mapDeps([]))),z1t=z.lazy(()=>sn(()=>import("./unsubscribe-0wpDTabl.js"),__vite__mapDeps([123,3,36,4])));function K1t(){const e=qs();z.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${e.pathname}${e.search}`)},[e]);const t=W.jsx(pp,{children:W.jsx(Dq,{})});return W.jsx(z.Suspense,{fallback:t,children:W.jsxs(N_,{children:[W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:W.jsx(B1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:W.jsx(M1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:W.jsx(O1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:W.jsx(L1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:W.jsx(P1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:W.jsx(U1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:W.jsx(H1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:W.jsx(J1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:W.jsx(V1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:W.jsx(q1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:W.jsx(_c,{children:W.jsx(N1t,{})})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:W.jsx(Z0,{mode:"setup",children:W.jsx(F1t,{})})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:W.jsx(z1t,{})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:W.jsx(_c,{roles:["*"],children:W.jsx(zH,{})})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:W.jsx(_c,{roles:["*"],children:W.jsx(zH,{})})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:W.jsx(WH,{children:W.jsx(D1t,{children:W.jsx(_c,{roles:["owner","admin","member"],children:W.jsx(Z0,{mode:"dashboard",children:W.jsx(j1t,{})})})})})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:W.jsx(jV,{to:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),W.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:W.jsx(WH,{children:W.jsx(_c,{roles:["owner","admin"],children:W.jsx(Z0,{mode:"dashboard",children:W.jsxs(N_,{children:[W.jsx(_r,{path:"publish",element:W.jsx(KH,{})}),W.jsx(_r,{path:"publish/*",element:W.jsx(KH,{})}),W.jsx(_r,{path:"add",element:W.jsx(G1t,{})}),W.jsx(_r,{path:"*",element:W.jsx(W1t,{})})]})})})})})]})})}function Y1t(){return W.jsx(Ihe,{basename:Rne,children:W.jsx(nQe,{children:W.jsx(K1t,{})})})}const Z1t=yV(document.getElementById("app"));Z1t.render(W.jsx(Y1t,{}));const X1t=Zt.WELLKNOWN_SERVICE_PATH_PREFIX;{async function e(){const{register:t}=await sn(()=>import("./index-7SG8bi1h.js"),__vite__mapDeps([]));t(`${X1t}/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(n){console.error("Error during service worker registration:",n)}})}e()}export{bOe as $,Bl as A,Ygt as B,pp as C,Ep as D,JG as E,tmt as F,Eu as G,en as H,Zt as I,qKe as J,UZ as K,Ohe as L,tQe as M,wb as N,zt as O,ge as P,Br as Q,ir as R,Dq as S,Ci as T,B7 as U,si as V,qAe as W,yt as X,Rt as Y,Di as Z,xe as _,Kn as a,fgt as a$,nyt as a0,tge as a1,T1 as a2,qG as a3,$m as a4,$6 as a5,sn as a6,Xm as a7,Rit as a8,gl as a9,$8 as aA,qs as aB,p$ as aC,$s as aD,yi as aE,Dl as aF,U_ as aG,XV as aH,M7 as aI,eC as aJ,qp as aK,Tm as aL,CX as aM,RX as aN,tC as aO,G8 as aP,zX as aQ,wm as aR,Ut as aS,I6e as aT,rE as aU,N8 as aV,sat as aW,oyt as aX,Qmt as aY,Zit as aZ,zit as a_,eat as aa,X7 as ab,Oa as ac,eyt as ad,tyt as ae,ax as af,Ogt as ag,Yd as ah,qit as ai,Gs as aj,ayt as ak,Qgt as al,Xgt as am,mct as an,Rne as ao,WH as ap,N_ as aq,_r as ar,jV as as,yE as at,lgt as au,igt as av,agt as aw,a$ as ax,Xi as ay,i6e as az,Bge as b,zW as b$,Xit as b0,jgt as b1,ngt as b2,Bgt as b3,cgt as b4,Jgt as b5,z0 as b6,ep as b7,TOe as b8,bI as b9,TQ as bA,Zmt as bB,xne as bC,aR as bD,fh as bE,K8 as bF,J3 as bG,NKe as bH,TX as bI,pf as bJ,et as bK,MZ as bL,Umt as bM,Y8 as bN,cz as bO,BZ as bP,pX as bQ,vm as bR,az as bS,oz as bT,TK as bU,vPe as bV,_l as bW,$1 as bX,Pb as bY,g6 as bZ,Vhe as b_,Y7 as ba,h1e as bb,f1e as bc,Lgt as bd,xgt as be,lm as bf,ugt as bg,Sit as bh,$gt as bi,cyt as bj,lyt as bk,wK as bl,Vgt as bm,bre as bn,Xpe as bo,Yb as bp,Zp as bq,am as br,om as bs,zu as bt,Zn as bu,wR as bv,mm as bw,ss as bx,Bn as by,ez as bz,wt as c,Fhe as c$,oE as c0,k8 as c1,sE as c2,Mke as c3,u$ as c4,c$ as c5,zmt as c6,X8 as c7,rz as c8,ls as c9,rm as cA,i8 as cB,Kd as cC,r8 as cD,xK as cE,Pge as cF,Cme as cG,w1 as cH,F7 as cI,_q as cJ,eq as cK,$3 as cL,W1 as cM,m3e as cN,Bb as cO,Jhe as cP,qhe as cQ,Whe as cR,Ib as cS,o8 as cT,D6 as cU,Ggt as cV,Lq as cW,vmt as cX,yq as cY,Dye as cZ,gq as c_,bmt as ca,Emt as cb,iz as cc,WG as cd,Xo as ce,mn as cf,C8 as cg,Cm as ch,O8 as ci,emt as cj,R7 as ck,Wf as cl,Cq as cm,ti as cn,P7 as co,Pu as cp,rf as cq,yo as cr,$b as cs,os as ct,uve as cu,Ii as cv,Rq as cw,Us as cx,im as cy,nm as cz,ur as d,nE as d$,Sye as d0,lc as d1,Iq as d2,QV as d3,Nme as d4,Ol as d5,umt as d6,Tq as d7,lmt as d8,tm as d9,Cgt as dA,Igt as dB,Sq as dC,IKe as dD,Ta as dE,qgt as dF,_Oe as dG,yV as dH,_it as dI,Yit as dJ,Ngt as dK,jit as dL,Dgt as dM,Agt as dN,PF as dO,wmt as dP,Wit as dQ,Ait as dR,_gt as dS,Qit as dT,tat as dU,hct as dV,dit as dW,Hgt as dX,Xmt as dY,vE as dZ,wgt as d_,Pmt as da,Lye as db,Pq as dc,Fmt as dd,f6 as de,zE as df,Pye as dg,gmt as dh,aDe as di,pE as dj,wOe as dk,b6 as dl,Er as dm,cE as dn,fE as dp,af as dq,ii as dr,Ma as ds,Wme as dt,Ft as du,bgt as dv,Sgt as dw,WW as dx,Ms as dy,pgt as dz,N7 as e,SRe as e$,nKe as e0,pKe as e1,AQ as e2,F8 as e3,GCe as e4,O$e as e5,P$e as e6,l8 as e7,Gq as e8,pC as e9,kq as eA,F1e as eB,$1e as eC,sm as eD,pmt as eE,hmt as eF,Vme as eG,dmt as eH,cmt as eI,VL as eJ,jme as eK,Qc as eL,dye as eM,mmt as eN,Ll as eO,Oq as eP,vye as eQ,G_ as eR,Fme as eS,Wge as eT,kb as eU,$ye as eV,fmt as eW,nwe as eX,rwe as eY,dRe as eZ,xmt as e_,Jme as ea,gU as eb,iE as ec,h6 as ed,kmt as ee,hz as ef,Gke as eg,mz as eh,xP as ei,_P as ej,Hke as ek,Omt as el,Xt as em,omt as en,amt as eo,imt as ep,smt as eq,D8 as er,yf as es,Sm as et,uGe as eu,xG as ev,Bu as ew,dz as ex,Rgt as ey,_1e as ez,Gt as f,Hz as f$,Cmt as f0,Jn as f1,f$e as f2,py as f3,I$e as f4,wP as f5,Dmt as f6,oDe as f7,Qh as f8,pDe as f9,Mr as fA,xee as fB,Bz as fC,Q1t as fD,ggt as fE,vgt as fF,zgt as fG,Tgt as fH,Ste as fI,_ne as fJ,o0e as fK,dgt as fL,ygt as fM,Bmt as fN,Egt as fO,rat as fP,aat as fQ,wit as fR,xit as fS,dW as fT,TE as fU,vK as fV,rmt as fW,Pz as fX,XG as fY,sgt as fZ,Y0e as f_,El as fa,Z0e as fb,Kqe as fc,Vit as fd,Zgt as fe,ete as ff,DU as fg,ai as fh,hgt as fi,xX as fj,A8 as fk,QTe as fl,w8 as fm,Brt as fn,_8 as fo,Wu as fp,rgt as fq,Yz as fr,cit as fs,dC as ft,ogt as fu,mgt as fv,kgt as fw,Mgt as fx,lat as fy,iat as fz,qn as g,W8 as g0,YWe as g1,fCe as g2,R$ as g3,$$ as g4,kp as g5,Ymt as g6,tgt as g7,Nmt as g8,Pgt as g9,jhe as gA,ay as gB,Kit as gC,Git as gD,nat as gE,Tee as gF,rve as gG,tE as gH,Pl as gI,qye as gJ,aT as gK,uKe as gL,L8 as gM,pOe as gN,_mt as gO,Smt as gP,Mz as gQ,fZ as gR,Hi as gS,Fgt as gT,tz as gU,KW as gV,RLe as gW,LF as ga,V3 as gb,Mmt as gc,$De as gd,k1 as ge,W_ as gf,egt as gg,Amt as gh,h4e as gi,s4e as gj,C$e as gk,Rmt as gl,gIe as gm,yke as gn,dke as go,$mt as gp,vke as gq,Imt as gr,zke as gs,Lmt as gt,nmt as gu,fC as gv,zIe as gw,HRe as gx,T4 as gy,ymt as gz,Yt as h,nr as i,W as j,ym as k,Kb as l,On as m,cQ as n,z2 as o,gm as p,Ct as q,z as r,Db as s,xm as t,s8 as u,Vi as v,tR as w,uh as x,Fm as y,Kgt as z};
|
|
1323
1323
|
function __vite__mapDeps(indexes) {
|
|
1324
1324
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
1325
|
-
__vite__mapDeps.viteFileDeps = ["assets/login-
|
|
1325
|
+
__vite__mapDeps.viteFileDeps = ["assets/login-e66zu5Wk.js","assets/use-passport-id-pXgWCnyq.js","assets/createSvgIcon-WPRtXjzD.js","assets/Box-4YGfDU-g.js","assets/Typography-at7Lfh5t.js","assets/Tooltip-pHdHXs1x.js","assets/useTheme-QQ9ZlGSI.js","assets/useSlotProps-Bsg5wrI9.js","assets/ButtonBase-9ceABoYu.js","assets/connect-mbk2hX85.js","assets/index-fUO5Depg.js","assets/fullpage-sluJlU9w.js","assets/exchange-passport-3HXvKt39.js","assets/wrap-locale-IxZ-GSRz.js","assets/CircularProgress-kMtOxiWg.js","assets/styled--KG4RxYC.js","assets/Box-Hidy-XzL.js","assets/issue-passport-bpGms9YB.js","assets/invitation-5BTphIRX.js","assets/createSvgIcon-yyT8bUWt.js","assets/index-GeEeMTnx.js","assets/session-917r6dEa.js","assets/CheckCircle-BDZRhSkP.js","assets/lost-passport-iXAhJYo-.js","assets/Done-jdYlqoaE.js","assets/did-address-0CJZ1hTv.js","assets/Link-MbvE8LVS.js","assets/Avatar-saexB4KL.js","assets/Stepper-6z_En7Ez.js","assets/start-ztPGxEP2.js","assets/ServerLogo-jSiVEGfc.js","assets/addon-mZLwCS5i.js","assets/selector-TddQn3jx.js","assets/IconButton-_3vtt-nm.js","assets/useMediaQuery-ll0_8kAu.js","assets/Link-Djztkjpf.js","assets/Paper-KR2zG2e1.js","assets/setup-V1H5uS4e.js","assets/config-space-QevjRYTe.js","assets/Skeleton-4Bzp9rD2.js","assets/Hidden-GPvyksuf.js","assets/spaces-ijCgqPhL.js","assets/index-cnER8eGh.js","assets/api--aPGZZak.js","assets/invite-xA1RX6Ru.js","assets/transfer-A_b1gi7p.js","assets/dashboard-QmSVk38R.js","assets/index-3HM6kgF3.js","assets/permission-4PC8xSJN.js","assets/Menu-EYAj-L5o.js","assets/useAsync-VmxO4pF4.js","assets/index-5eI60Acc.js","assets/useLocalStorage-FwOTd6r2.js","assets/createStack-uP5Lw019.js","assets/confirm-7bSGI57a.js","assets/index-XfYQRkib.js","assets/useSetState-ruMvgmdH.js","assets/ListItemText-KvPqm6Jl.js","assets/Chip-lI13RVXr.js","assets/fallback-bTiy993_.js","assets/index-YT5xL2Uw.js","assets/index-HQiCzdfo.js","assets/Toolbar-mUgc5lSm.js","assets/ExpandMore-1SjTg2X5.js","assets/listItemButtonClasses-EzjM5W1B.js","assets/IconButton-voWUDqTe.js","assets/user-center-Aclo8pyD.js","assets/index-VLyXJrSM.js","assets/RevokeIcon-k7gup88V.js","assets/uniqBy-dQ8eGfYo.js","assets/index-m2g0wxvf.js","assets/TextField-MqhQ7k_u.js","assets/InputAdornment-Y2e0EkJL.js","assets/index-HSkSeOXF.js","assets/home-YUABDbdq.js","assets/studio-uDblvb8y.js","assets/preferences-RH1LPh09.js","assets/iframe-tSgJlkja.js","assets/localization-9wrHBYfW.js","assets/add-resource-F6M9SxXb.js","assets/add-component-core-vFFv0oMu.js","assets/page-header-ZTfGVY_H.js","assets/use-blocklet-info-for-connect-did-spaces-TrClapIR.js","assets/lottie-F5gFbpyt.js","assets/launch-result-message-eMHkuPAd.js","assets/index-t3_35jAF.js","assets/EditIcon--DhsX3gA.js","assets/Close-zM8cubHu.js","assets/Google-rn5zJeSt.js","assets/TextField-TIIUFfIa.js","assets/Select-j4dphzS1.js","assets/InputLabel-ht6pCtWn.js","assets/logo-uploader-Xjm2hVjF.js","assets/index-h8HAvCIo.js","assets/jss-plugin-props-sort.esm-6oUKcv-U.js","assets/toPropertyKey-NzAT2yhV.js","assets/ListItem-CQpqM3So.js","assets/util-_BeTKW_Y.js","assets/index-DpfNlt5t.js","assets/Search-DKuqYO71.js","assets/index-f95kNfHS.js","assets/Launch-ocWAtGIZ.js","assets/Add-0a5Bdqhh.js","assets/DeleteOutline-EHVgqvq4.js","assets/click-to-copy-wV-Xrdm0.js","assets/preact.module-yJdvQMHZ.js","assets/connect-to-EhqsMD-x.js","assets/index-FYC2Mdgd.js","assets/content-layout-Hr0Rhkxd.js","assets/add-component-core-wegghUnI.css","assets/publish-resource-rPm6dg0_.js","assets/index-u-GE3BTp.js","assets/index-vFPaiaOa.js","assets/FilterList-i66TyoIR.js","assets/Grid-Kxa_RgMY.js","assets/index-uDkwKD_m.js","assets/redux-XOuz_cVf.js","assets/ChevronRight-RsAvNbwV.js","assets/InputAdornment-Z0M4lARx.js","assets/Download-f08g7jN3.js","assets/ExpandMore-llY3IWdb.js","assets/OpenInNew-KoZ6NVve.js","assets/Collapse-FIr8nqIc.js","assets/unsubscribe-0wpDTabl.js"]
|
|
1326
1326
|
}
|
|
1327
1327
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
1328
1328
|
}
|