@abtnode/blocklet-services 1.16.21 → 1.16.22-beta-f47f2cf7
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/dist/assets/{Add-bt6SVv9G.js → Add-LDEf8DQg.js} +1 -1
- package/dist/assets/{Alert-fzSO0kDd.js → Alert-vWiM7yjS.js} +1 -1
- package/dist/assets/{ArrowDropDown-BVRz1Dl4.js → ArrowDropDown-VDOchtvn.js} +1 -1
- package/dist/assets/{Autocomplete-Mf7ySzwU.js → Autocomplete-i9jtdebF.js} +1 -1
- package/dist/assets/{Avatar-K6OaXDZ4.js → Avatar-yqyuIZ56.js} +1 -1
- package/dist/assets/{ButtonGroup-oHv_n3Uq.js → ButtonGroup-F595PjjB.js} +1 -1
- package/dist/assets/{CardContent-dbkBV230.js → CardContent-ekWcA9xq.js} +1 -1
- package/dist/assets/{CheckCircle-hL-IUT6q.js → CheckCircle-YDuvJgsY.js} +1 -1
- package/dist/assets/{Checkbox-9-rDGnGt.js → Checkbox-FAvvPRMi.js} +1 -1
- package/dist/assets/{ChevronRight-LWjgeEYU.js → ChevronRight-2zV-EBdQ.js} +1 -1
- package/dist/assets/{DeleteOutline-GkpxzkXa.js → DeleteOutline-Na5jYanp.js} +1 -1
- package/dist/assets/{DialogContentText-Vu-BdXEX.js → DialogContentText-rCKX8V2o.js} +1 -1
- package/dist/assets/{Done-j5eCF6jg.js → Done-6x0KAx6b.js} +1 -1
- package/dist/assets/{Download-i19pr97k.js → Download-SHFaFook.js} +1 -1
- package/dist/assets/{Edit-5qpZEtkS.js → Edit-Gp4Awbnb.js} +1 -1
- package/dist/assets/{EditIcon-PLG9-IL7.js → EditIcon-0Rwc1Sfx.js} +1 -1
- package/dist/assets/{ExpandMore-WRbnfWmE.js → ExpandMore-cCR6PfVd.js} +1 -1
- package/dist/assets/{FilterList-K9Uso_4u.js → FilterList-_e3TGjvk.js} +1 -1
- package/dist/assets/{FormControl-iRfjRIOl.js → FormControl-FuFP_-xW.js} +1 -1
- package/dist/assets/{FormControlLabel-AkL5QQtq.js → FormControlLabel-efXmMNAj.js} +1 -1
- package/dist/assets/{FormGroup-wvHZzmmD.js → FormGroup-62MBopyd.js} +1 -1
- package/dist/assets/{Google-ZWXikJO_.js → Google-bfk_WZie.js} +1 -1
- package/dist/assets/{Grid-zyeSJ3wZ.js → Grid-hq8tXmAE.js} +1 -1
- package/dist/assets/{Hidden-GHQEcd1H.js → Hidden-_2gAiz8I.js} +1 -1
- package/dist/assets/{Icon-tk1MFHkY.js → Icon-Hs_4R15m.js} +1 -1
- package/dist/assets/{InfoOutlined-n4SuHMob.js → InfoOutlined-BSQNe7N0.js} +1 -1
- package/dist/assets/{InputAdornment-xLAUWmxY.js → InputAdornment-tAiuMjJ3.js} +1 -1
- package/dist/assets/{InputLabel-9dhtp71X.js → InputLabel-sJuMXXTU.js} +1 -1
- package/dist/assets/{LastPage-oKswUEqc.js → LastPage-yJC3z7U6.js} +1 -1
- package/dist/assets/{Launch-_TuIFwCs.js → Launch-skY4QDHZ.js} +1 -1
- package/dist/assets/{LaunchOutlined-uyxHjAJt.js → LaunchOutlined-lpo-HuHe.js} +1 -1
- package/dist/assets/{ListItem-mXlOmPfw.js → ListItem-X7GPpG5G.js} +1 -1
- package/dist/assets/{LockIcon-_VbgQnyL.js → LockIcon-PHYGo9W9.js} +1 -1
- package/dist/assets/{Loop-Zt6IG1hV.js → Loop-QQNwh5zr.js} +1 -1
- package/dist/assets/{MoreHoriz-bNNdGHUX.js → MoreHoriz-UJyFgSQT.js} +1 -1
- package/dist/assets/{MoreVert-6ctaEpVo.js → MoreVert-P_r5HcyN.js} +1 -1
- package/dist/assets/{OpenInNew-EUWBnmvC.js → OpenInNew-wkpRYQBR.js} +1 -1
- package/dist/assets/{Pagination-xbaiLUoY.js → Pagination-tkn_cWWJ.js} +1 -1
- package/dist/assets/{PlayArrow-GRR1UfvW.js → PlayArrow-aZsZH5W7.js} +1 -1
- package/dist/assets/{RadioGroup-Wf8W3ZUP.js → RadioGroup-R24vXL2w.js} +1 -1
- package/dist/assets/{Search-R2YWOork.js → Search-mY4_Gjp8.js} +1 -1
- package/dist/assets/{Select-3f4a0_GV.js → Select-JkWGcMNY.js} +1 -1
- package/dist/assets/{ServerLogo-UIQ8H-JM.js → ServerLogo-CSR6LLNC.js} +1 -1
- package/dist/assets/{Skeleton-vOZfRyQG.js → Skeleton-MQVf1zeC.js} +1 -1
- package/dist/assets/{Slider-rJ5ZiJRq.js → Slider-xU9YvSC8.js} +1 -1
- package/dist/assets/{Stepper-qv7dWtzH.js → Stepper-cogqYRt3.js} +1 -1
- package/dist/assets/{TableRow-OaqX6Tqj.js → TableRow-S0z2jg7V.js} +1 -1
- package/dist/assets/{TextField-Wyekhk78.js → TextField-u2bxSAc-.js} +1 -1
- package/dist/assets/{Toolbar-7x5-T7Ys.js → Toolbar-xxqBJj87.js} +1 -1
- package/dist/assets/{access-control-sZ_373TF.js → access-control-j2dUeB1u.js} +1 -1
- package/dist/assets/{actions-Xb93Fqn6.js → actions-9-iCZmM3.js} +1 -1
- package/dist/assets/{add-component-core-eUon1xcH.js → add-component-core-lt9WbiLS.js} +1 -1
- package/dist/assets/add-resource-gfheYdrT.js +1 -0
- package/dist/assets/{addon-pPfT_C02.js → addon-pRI3jYW5.js} +1 -1
- package/dist/assets/{analytics-KWdMaioI.js → analytics-VArfUMdd.js} +1 -1
- package/dist/assets/api-VkXAZ8rS.js +1 -0
- package/dist/assets/{audit-logs-3otkosgL.js → audit-logs-vT1fZvTJ.js} +1 -1
- package/dist/assets/{button-wjV61tJk.js → button-zcH1UQ55.js} +1 -1
- package/dist/assets/{click-to-copy-y405iYqU.js → click-to-copy-0Jqh0K6m.js} +1 -1
- package/dist/assets/{complete-Y3Mpshc0.js → complete-r-PNcyt4.js} +1 -1
- package/dist/assets/{component-CVdfilGm.js → component-eg_2HfkJ.js} +2 -2
- package/dist/assets/{config-bkMq9ILx.js → config-C1zi8xBj.js} +1 -1
- package/dist/assets/{config-R4otABVI.js → config-fVHVFSN5.js} +1 -1
- package/dist/assets/{config-navigation-Ks0oWlhw.js → config-navigation-a_Pt_vLl.js} +1 -1
- package/dist/assets/{confirm-DzkZ2U7D.js → confirm-OAB3XwCu.js} +1 -1
- package/dist/assets/{confirm-HILJ5sgy.js → confirm-U8trI8sh.js} +1 -1
- package/dist/assets/{connect-UoScJBiD.js → connect-E3xXeAei.js} +1 -1
- package/dist/assets/{connect-Sa-PoCtv.js → connect-rbx5T2GT.js} +1 -1
- package/dist/assets/{content-layout-joIdD4Ha.js → content-layout-rHIg8LgN.js} +1 -1
- package/dist/assets/{dashboard-ucoCpVVE.js → dashboard-fV0BczKQ.js} +3 -3
- package/dist/assets/{did-address-EvLV_neh.js → did-address-zj1cM-u2.js} +1 -1
- package/dist/assets/{did-utils-FrjNFot0.js → did-utils-w4Fz-kUW.js} +1 -1
- package/dist/assets/{domain-oCL0AeM1.js → domain-99KBslEj.js} +1 -1
- package/dist/assets/{domain-list-MNvXMsCJ.js → domain-list-SBd0FAim.js} +1 -1
- package/dist/assets/{exchange-passport-pvHiGWDx.js → exchange-passport-XMcIXLjZ.js} +1 -1
- package/dist/assets/{fallback-kaIBtHL1.js → fallback-liNYH2Ir.js} +1 -1
- package/dist/assets/{format-error-wykwIGB8.js → format-error-2W3A06Jw.js} +1 -1
- package/dist/assets/{fuel-gttwIDgu.js → fuel-__ms_dWJ.js} +1 -1
- package/dist/assets/{fullpage-w--_Qfi_.js → fullpage-ZETP85XU.js} +1 -1
- package/dist/assets/{home-UnAPx__h.js → home-p-h3Ka4K.js} +1 -1
- package/dist/assets/{iframe-8GzqFlQD.js → iframe-ntkUMxwt.js} +1 -1
- package/dist/assets/{index-eQh3htj_.js → index-4oRyCjgx.js} +1 -1
- package/dist/assets/{index-dU1B41UW.js → index-4p4tVyyG.js} +1 -1
- package/dist/assets/{index-rFu-FqJl.js → index-J75uP8vG.js} +1 -1
- package/dist/assets/{index-KxeBO9YH.js → index-KGC-suTM.js} +1 -1
- package/dist/assets/{index-lm42cyj2.js → index-MMjnoZvc.js} +3 -3
- package/dist/assets/{index-48XKs7i2.js → index-Mw5sjLFX.js} +1 -1
- package/dist/assets/{index-dn0GLbuV.js → index-OcPycBwK.js} +1 -1
- package/dist/assets/{index-JHXd03yp.js → index-PR8Yfwm9.js} +1 -1
- package/dist/assets/{index-YYJ36RNU.js → index-SfrVnmj3.js} +1 -1
- package/dist/assets/{index-kISfyqYd.js → index-UVz8nDjF.js} +1 -1
- package/dist/assets/{index-ZrS9Yszi.js → index-VlbXENi2.js} +1 -1
- package/dist/assets/{index-QMHlq_j4.js → index-WO73mi9B.js} +1 -1
- package/dist/assets/{index-S4CEecHq.js → index-WOHYN7r2.js} +1 -1
- package/dist/assets/{index-Z3z1VFLe.js → index-YIV3ZeKw.js} +1 -1
- package/dist/assets/{index-hND2553g.js → index-ZWk0ce0v.js} +1 -1
- package/dist/assets/{index-srroQufO.js → index-bkJmmZxf.js} +1 -1
- package/dist/assets/{index-ndCevgQH.js → index-cClf5DR3.js} +1 -1
- package/dist/assets/{index-YMezvWCK.js → index-dbP1WPUp.js} +1 -1
- package/dist/assets/{index-QN3Atre9.js → index-g4tgCwv9.js} +1 -1
- package/dist/assets/{index-MOrXpk1I.js → index-gOYo1anT.js} +1 -1
- package/dist/assets/{index-q1L4Rt-P.js → index-kGlwpUUE.js} +1 -1
- package/dist/assets/{index-RvzSkwb-.js → index-oIQOqerV.js} +3 -3
- package/dist/assets/{index-5-pH2qe3.js → index-sHseTlJL.js} +3 -3
- package/dist/assets/{index-XXKdpKDI.js → index-sPvdoX0V.js} +1 -1
- package/dist/assets/{index-7qwO_l2S.js → index-t_Z0q1g_.js} +1 -1
- package/dist/assets/{index--5-hHGMr.js → index-ureJxRiy.js} +1 -1
- package/dist/assets/{index-zB3__yN7.js → index-xy2NREuZ.js} +1 -1
- package/dist/assets/{index.es-9cWgKEEj.js → index.es-OlH7_usn.js} +1 -1
- package/dist/assets/{index.esm--ulFpkOr.js → index.esm-seyLxH9D.js} +1 -1
- package/dist/assets/{invite-Kiuc4f3g.js → invite-kMtkdup7.js} +1 -1
- package/dist/assets/{issue-passport-EvC83isD.js → issue-passport-TlmpXOGE.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-6qLpgyYP.js → jss-plugin-props-sort.esm-U5ZnYCzJ.js} +1 -1
- package/dist/assets/{launch-result-message-G8Q-vMgj.js → launch-result-message-F8Ofxx_e.js} +1 -1
- package/dist/assets/{layout-Tv93dvg0.js → layout-BLaaNYtw.js} +1 -1
- package/dist/assets/{list-header-pWcDGww3.js → list-header-c_UCYd3h.js} +1 -1
- package/dist/assets/localization-RolchIpb.js +1 -0
- package/dist/assets/{log-DmAVug2U.js → log-4G78yJLN.js} +1 -1
- package/dist/assets/{login-mPK0ECCS.js → login-ihXqRdGT.js} +1 -1
- package/dist/assets/{logo-uploader--gyIl65f.js → logo-uploader-ka1rqsHQ.js} +3 -3
- package/dist/assets/{lost-passport-qglsNof1.js → lost-passport-aeYrHQyC.js} +3 -3
- package/dist/assets/{lottie-Ntb0WgKL.js → lottie-sh4s0pNq.js} +1 -1
- package/dist/assets/{memoize-one.esm-_hBYdtBF.js → memoize-one.esm-W-dn2p84.js} +1 -1
- package/dist/assets/{nav-menu-n-gHiZNN.js → nav-menu-q73bLcEq.js} +1 -1
- package/dist/assets/{notifications-ri_xK-DG.js → notifications-pZ9MHdfQ.js} +1 -1
- package/dist/assets/{overview-FS6q2bNX.js → overview-VaivnzQ7.js} +1 -1
- package/dist/assets/{page-header-k9pxrTyz.js → page-header-3dDUdORn.js} +1 -1
- package/dist/assets/{permission-nZTsZ0WS.js → permission-ZvEWJSxV.js} +1 -1
- package/dist/assets/preferences-O017YSkE.js +1 -0
- package/dist/assets/publish-resource-9olgaUUj.js +1 -0
- package/dist/assets/{react-P6LpeM6F.js → react-9u2r2plx.js} +3 -3
- package/dist/assets/{selector-U2IzDfpl.js → selector-aWeTH_Xy.js} +1 -1
- package/dist/assets/session-ieY35lEq.js +1 -0
- package/dist/assets/{setup-LJiMgRrA.js → setup-E-WnVF3c.js} +3 -3
- package/dist/assets/{slicedToArray-rvrRoJWm.js → slicedToArray-WD452XR4.js} +1 -1
- package/dist/assets/{spaces-Zfss07Dw.js → spaces-zU6EswmD.js} +1 -1
- package/dist/assets/{start-yx6hJR0G.js → start-OS7_x_to.js} +1 -1
- package/dist/assets/{step-actions-s65Gu0Gm.js → step-actions-aej3hvRe.js} +1 -1
- package/dist/assets/{studio-fPjrPx_W.js → studio-cTSL4ry_.js} +1 -1
- package/dist/assets/{switch-control-Ibk2Hq71.js → switch-control-AxKlF0qa.js} +1 -1
- package/dist/assets/{transfer-5j4o71oH.js → transfer-nZJ3uNpL.js} +1 -1
- package/dist/assets/{uniqBy-E9ysHx3q.js → uniqBy-MB2OLxCc.js} +1 -1
- package/dist/assets/{unsubscribe-UDtvo2es.js → unsubscribe-kdT3WbRL.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-ufLIGKTr.js → use-blocklet-info-for-connect-did-spaces-Zu5fLwEo.js} +1 -1
- package/dist/assets/{useAsync-c4_liX2s.js → useAsync-4TdvRTWi.js} +1 -1
- package/dist/assets/{useFormControl-74pXAYtI.js → useFormControl-Qd1sZJH7.js} +1 -1
- package/dist/assets/{useLocalStorage-DpKr2KRx.js → useLocalStorage-HSuIS8dC.js} +1 -1
- package/dist/assets/{useSetState-y2knwpSH.js → useSetState-MgFJAi6n.js} +1 -1
- package/dist/assets/{user-eRvHZyFC.js → user-IWQIFpC6.js} +1 -1
- package/dist/assets/{util-ERLM63JX.js → util-lFswG4bk.js} +1 -1
- package/dist/assets/{wallet-hidden-topbar-NDSHw08q.js → wallet-hidden-topbar-QxBPCxK0.js} +3 -3
- package/dist/assets/{wrap-locale-wQfZepjD.js → wrap-locale-muuCseT-.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +18 -18
- package/dist/assets/add-resource-F5pGDC5G.js +0 -1
- package/dist/assets/api-bPHHyjfQ.js +0 -1
- package/dist/assets/localization-PhFvv0Bs.js +0 -1
- package/dist/assets/preferences-aHNijIaU.js +0 -1
- package/dist/assets/publish-resource-9a-xQ2Bs.js +0 -1
- package/dist/assets/session-FvRnItWJ.js +0 -1
|
@@ -628,7 +628,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
628
628
|
`}return Oe.substring(0,Oe.length-1)},E.renderTo2dContext=function(j,$){$=$||2;for(var Z=E.getModuleCount(),W=0;W<Z;W++)for(var te=0;te<Z;te++)j.fillStyle=E.isDark(W,te)?"black":"white",j.fillRect(W*$,te*$,$,$)},E};u.stringToBytes=(u.stringToBytesFuncs={default:function(T){for(var c=[],f=0;f<T.length;f+=1){var b=T.charCodeAt(f);c.push(255&b)}return c}}).default,u.createStringToBytes=function(T,c){var f=function(){for(var D=Q(T),R=function(){var ne=D.read();if(ne==-1)throw"eof";return ne},x=0,w={};;){var E=D.read();if(E==-1)break;var y=R(),_=R()<<8|R();w[String.fromCharCode(E<<8|y)]=_,x+=1}if(x!=c)throw x+" != "+c;return w}(),b=63;return function(D){for(var R=[],x=0;x<D.length;x+=1){var w=D.charCodeAt(x);if(w<128)R.push(w);else{var E=f[D.charAt(x)];typeof E=="number"?(255&E)==E?R.push(E):(R.push(E>>>8),R.push(255&E)):R.push(b)}}return R}};var p,h,v,g,k,C={L:1,M:0,Q:3,H:2},S=(p=[[],[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]],h=1335,v=7973,k=function(T){for(var c=0;T!=0;)c+=1,T>>>=1;return c},(g={}).getBCHTypeInfo=function(T){for(var c=T<<10;k(c)-k(h)>=0;)c^=h<<k(c)-k(h);return 21522^(T<<10|c)},g.getBCHTypeNumber=function(T){for(var c=T<<12;k(c)-k(v)>=0;)c^=v<<k(c)-k(v);return T<<12|c},g.getPatternPosition=function(T){return p[T-1]},g.getMaskFunction=function(T){switch(T){case 0:return function(c,f){return(c+f)%2==0};case 1:return function(c,f){return c%2==0};case 2:return function(c,f){return f%3==0};case 3:return function(c,f){return(c+f)%3==0};case 4:return function(c,f){return(Math.floor(c/2)+Math.floor(f/3))%2==0};case 5:return function(c,f){return c*f%2+c*f%3==0};case 6:return function(c,f){return(c*f%2+c*f%3)%2==0};case 7:return function(c,f){return(c*f%3+(c+f)%2)%2==0};default:throw"bad maskPattern:"+T}},g.getErrorCorrectPolynomial=function(T){for(var c=L([1],0),f=0;f<T;f+=1)c=c.multiply(L([1,I.gexp(f)],0));return c},g.getLengthInBits=function(T,c){if(1<=c&&c<10)switch(T){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+T}else if(c<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(!(c<41))throw"type:"+c;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 c=T.getModuleCount(),f=0,b=0;b<c;b+=1)for(var D=0;D<c;D+=1){for(var R=0,x=T.isDark(b,D),w=-1;w<=1;w+=1)if(!(b+w<0||c<=b+w))for(var E=-1;E<=1;E+=1)D+E<0||c<=D+E||w==0&&E==0||x==T.isDark(b+w,D+E)&&(R+=1);R>5&&(f+=3+R-5)}for(b=0;b<c-1;b+=1)for(D=0;D<c-1;D+=1){var y=0;T.isDark(b,D)&&(y+=1),T.isDark(b+1,D)&&(y+=1),T.isDark(b,D+1)&&(y+=1),T.isDark(b+1,D+1)&&(y+=1),y!=0&&y!=4||(f+=3)}for(b=0;b<c;b+=1)for(D=0;D<c-6;D+=1)T.isDark(b,D)&&!T.isDark(b,D+1)&&T.isDark(b,D+2)&&T.isDark(b,D+3)&&T.isDark(b,D+4)&&!T.isDark(b,D+5)&&T.isDark(b,D+6)&&(f+=40);for(D=0;D<c;D+=1)for(b=0;b<c-6;b+=1)T.isDark(b,D)&&!T.isDark(b+1,D)&&T.isDark(b+2,D)&&T.isDark(b+3,D)&&T.isDark(b+4,D)&&!T.isDark(b+5,D)&&T.isDark(b+6,D)&&(f+=40);var _=0;for(D=0;D<c;D+=1)for(b=0;b<c;b+=1)T.isDark(b,D)&&(_+=1);return f+Math.abs(100*_/c/c-50)/5*10},g),I=function(){for(var T=new Array(256),c=new Array(256),f=0;f<8;f+=1)T[f]=1<<f;for(f=8;f<256;f+=1)T[f]=T[f-4]^T[f-5]^T[f-6]^T[f-8];for(f=0;f<255;f+=1)c[T[f]]=f;return{glog:function(b){if(b<1)throw"glog("+b+")";return c[b]},gexp:function(b){for(;b<0;)b+=255;for(;b>=256;)b-=255;return T[b]}}}();function L(T,c){if(T.length===void 0)throw T.length+"/"+c;var f=function(){for(var D=0;D<T.length&&T[D]==0;)D+=1;for(var R=new Array(T.length-D+c),x=0;x<T.length-D;x+=1)R[x]=T[x+D];return R}(),b={getAt:function(D){return f[D]},getLength:function(){return f.length},multiply:function(D){for(var R=new Array(b.getLength()+D.getLength()-1),x=0;x<b.getLength();x+=1)for(var w=0;w<D.getLength();w+=1)R[x+w]^=I.gexp(I.glog(b.getAt(x))+I.glog(D.getAt(w)));return L(R,0)},mod:function(D){if(b.getLength()-D.getLength()<0)return b;for(var R=I.glog(b.getAt(0))-I.glog(D.getAt(0)),x=new Array(b.getLength()),w=0;w<b.getLength();w+=1)x[w]=b.getAt(w);for(w=0;w<D.getLength();w+=1)x[w]^=I.gexp(I.glog(D.getAt(w))+R);return L(x,0).mod(D)}};return b}var N=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]],c=function(b,D){var R={};return R.totalCount=b,R.dataCount=D,R},f={getRSBlocks:function(b,D){var R=function(z,ie){switch(ie){case C.L:return T[4*(z-1)+0];case C.M:return T[4*(z-1)+1];case C.Q:return T[4*(z-1)+2];case C.H:return T[4*(z-1)+3];default:return}}(b,D);if(R===void 0)throw"bad rs block @ typeNumber:"+b+"/errorCorrectionLevel:"+D;for(var x=R.length/3,w=[],E=0;E<x;E+=1)for(var y=R[3*E+0],_=R[3*E+1],ne=R[3*E+2],M=0;M<y;M+=1)w.push(c(_,ne));return w}};return f}(),q=function(){var T=[],c=0,f={getBuffer:function(){return T},getAt:function(b){var D=Math.floor(b/8);return(T[D]>>>7-b%8&1)==1},put:function(b,D){for(var R=0;R<D;R+=1)f.putBit((b>>>D-R-1&1)==1)},getLengthInBits:function(){return c},putBit:function(b){var D=Math.floor(c/8);T.length<=D&&T.push(0),b&&(T[D]|=128>>>c%8),c+=1}};return f},H=function(T){var c=T,f={getMode:function(){return 1},getLength:function(R){return c.length},write:function(R){for(var x=c,w=0;w+2<x.length;)R.put(b(x.substring(w,w+3)),10),w+=3;w<x.length&&(x.length-w==1?R.put(b(x.substring(w,w+1)),4):x.length-w==2&&R.put(b(x.substring(w,w+2)),7))}},b=function(R){for(var x=0,w=0;w<R.length;w+=1)x=10*x+D(R.charAt(w));return x},D=function(R){if("0"<=R&&R<="9")return R.charCodeAt(0)-48;throw"illegal char :"+R};return f},V=function(T){var c=T,f={getMode:function(){return 2},getLength:function(D){return c.length},write:function(D){for(var R=c,x=0;x+1<R.length;)D.put(45*b(R.charAt(x))+b(R.charAt(x+1)),11),x+=2;x<R.length&&D.put(b(R.charAt(x)),6)}},b=function(D){if("0"<=D&&D<="9")return D.charCodeAt(0)-48;if("A"<=D&&D<="Z")return D.charCodeAt(0)-65+10;switch(D){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 :"+D}};return f},X=function(T){var c=u.stringToBytes(T);return{getMode:function(){return 4},getLength:function(f){return c.length},write:function(f){for(var b=0;b<c.length;b+=1)f.put(c[b],8)}}},re=function(T){var c=u.stringToBytesFuncs.SJIS;if(!c)throw"sjis not supported.";(function(D,R){var x=c("友");if(x.length!=2||(x[0]<<8|x[1])!=38726)throw"sjis not supported."})();var f=c(T),b={getMode:function(){return 8},getLength:function(D){return~~(f.length/2)},write:function(D){for(var R=f,x=0;x+1<R.length;){var w=(255&R[x])<<8|255&R[x+1];if(33088<=w&&w<=40956)w-=33088;else{if(!(57408<=w&&w<=60351))throw"illegal char at "+(x+1)+"/"+w;w-=49472}w=192*(w>>>8&255)+(255&w),D.put(w,13),x+=2}if(x<R.length)throw"illegal char at "+(x+1)}};return b},le=function(){var T=[],c={writeByte:function(f){T.push(255&f)},writeShort:function(f){c.writeByte(f),c.writeByte(f>>>8)},writeBytes:function(f,b,D){b=b||0,D=D||f.length;for(var R=0;R<D;R+=1)c.writeByte(f[R+b])},writeString:function(f){for(var b=0;b<f.length;b+=1)c.writeByte(f.charCodeAt(b))},toByteArray:function(){return T},toString:function(){var f="";f+="[";for(var b=0;b<T.length;b+=1)b>0&&(f+=","),f+=T[b];return f+"]"}};return c},Q=function(T){var c=T,f=0,b=0,D=0,R={read:function(){for(;D<8;){if(f>=c.length){if(D==0)return-1;throw"unexpected end of file./"+D}var w=c.charAt(f);if(f+=1,w=="=")return D=0,-1;w.match(/^\s$/)||(b=b<<6|x(w.charCodeAt(0)),D+=6)}var E=b>>>D-8&255;return D-=8,E}},x=function(w){if(65<=w&&w<=90)return w-65;if(97<=w&&w<=122)return w-97+26;if(48<=w&&w<=57)return w-48+52;if(w==43)return 62;if(w==47)return 63;throw"c:"+w};return R},B=function(T,c,f){for(var b=function(_,ne){var M=_,z=ne,ie=new Array(_*ne),ce={setPixel:function(j,$,Z){ie[$*M+j]=Z},write:function(j){j.writeString("GIF87a"),j.writeShort(M),j.writeShort(z),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(M),j.writeShort(z),j.writeByte(0);var $=he(2);j.writeByte(2);for(var Z=0;$.length-Z>255;)j.writeByte(255),j.writeBytes($,Z,255),Z+=255;j.writeByte($.length-Z),j.writeBytes($,Z,$.length-Z),j.writeByte(0),j.writeString(";")}},he=function(j){for(var $=1<<j,Z=1+(1<<j),W=j+1,te=De(),ge=0;ge<$;ge+=1)te.add(String.fromCharCode(ge));te.add(String.fromCharCode($)),te.add(String.fromCharCode(Z));var fe,oe,me,Ae=le(),ye=(fe=Ae,oe=0,me=0,{write:function(Pe,Ie){if(Pe>>>Ie)throw"length over";for(;oe+Ie>=8;)fe.writeByte(255&(Pe<<oe|me)),Ie-=8-oe,Pe>>>=8-oe,me=0,oe=0;me|=Pe<<oe,oe+=Ie},flush:function(){oe>0&&fe.writeByte(me)}});ye.write($,W);var Oe=0,$e=String.fromCharCode(ie[Oe]);for(Oe+=1;Oe<ie.length;){var Ee=String.fromCharCode(ie[Oe]);Oe+=1,te.contains($e+Ee)?$e+=Ee:(ye.write(te.indexOf($e),W),te.size()<4095&&(te.size()==1<<W&&(W+=1),te.add($e+Ee)),$e=Ee)}return ye.write(te.indexOf($e),W),ye.write(Z,W),ye.flush(),Ae.toByteArray()},De=function(){var j={},$=0,Z={add:function(W){if(Z.contains(W))throw"dup key:"+W;j[W]=$,$+=1},size:function(){return $},indexOf:function(W){return j[W]},contains:function(W){return j[W]!==void 0}};return Z};return ce}(T,c),D=0;D<c;D+=1)for(var R=0;R<T;R+=1)b.setPixel(R,D,f(R,D));var x=le();b.write(x);for(var w=function(){var _=0,ne=0,M=0,z="",ie={},ce=function(De){z+=String.fromCharCode(he(63&De))},he=function(De){if(!(De<0)){if(De<26)return 65+De;if(De<52)return De-26+97;if(De<62)return De-52+48;if(De==62)return 43;if(De==63)return 47}throw"n:"+De};return ie.writeByte=function(De){for(_=_<<8|255&De,ne+=8,M+=1;ne>=6;)ce(_>>>ne-6),ne-=6},ie.flush=function(){if(ne>0&&(ce(_<<6-ne),_=0,ne=0),M%3!=0)for(var De=3-M%3,j=0;j<De;j+=1)z+="="},ie.toString=function(){return z},ie}(),E=x.toByteArray(),y=0;y<E.length;y+=1)w.writeByte(E[y]);return w.flush(),"data:image/gif;base64,"+w};return u}();d.stringToBytesFuncs["UTF-8"]=function(u){return function(p){for(var h=[],v=0;v<p.length;v++){var g=p.charCodeAt(v);g<128?h.push(g):g<2048?h.push(192|g>>6,128|63&g):g<55296||g>=57344?h.push(224|g>>12,128|g>>6&63,128|63&g):(v++,g=65536+((1023&g)<<10|1023&p.charCodeAt(v)),h.push(240|g>>18,128|g>>12&63,128|g>>6&63,128|63&g))}return h}(u)},(l=typeof(s=function(){return d})=="function"?s.apply(o,[]):s)===void 0||(a.exports=l)},676:(a,o,s)=>{s.d(o,{default:()=>De});const l="Numeric",d="Alphanumeric",u="Byte";var p=function(){return p=Object.assign||function(j){for(var $,Z=1,W=arguments.length;Z<W;Z++)for(var te in $=arguments[Z])Object.prototype.hasOwnProperty.call($,te)&&(j[te]=$[te]);return j},p.apply(this,arguments)},h=function(){for(var j=0,$=0,Z=arguments.length;$<Z;$++)j+=arguments[$].length;var W=Array(j),te=0;for($=0;$<Z;$++)for(var ge=arguments[$],fe=0,oe=ge.length;fe<oe;fe++,te++)W[te]=ge[fe];return W},v=function(j){return!!j&&typeof j=="object"&&!Array.isArray(j)};function g(j){for(var $=[],Z=1;Z<arguments.length;Z++)$[Z-1]=arguments[Z];if(!$.length)return j;var W=$.shift();return W!==void 0&&v(j)&&v(W)?(j=p({},j),Object.keys(W).forEach(function(te){var ge=j[te],fe=W[te];Array.isArray(ge)&&Array.isArray(fe)?j[te]=fe:v(ge)&&v(fe)?j[te]=g(Object.assign({},ge),fe):j[te]=fe}),g.apply(void 0,h([j],$))):j}function k(j,$){var Z=document.createElement("a");Z.download=$,Z.href=j,document.body.appendChild(Z),Z.click(),document.body.removeChild(Z)}var C=function(j,$,Z,W){return new(Z||(Z=Promise))(function(te,ge){function fe(Ae){try{me(W.next(Ae))}catch(ye){ge(ye)}}function oe(Ae){try{me(W.throw(Ae))}catch(ye){ge(ye)}}function me(Ae){var ye;Ae.done?te(Ae.value):(ye=Ae.value,ye instanceof Z?ye:new Z(function(Oe){Oe(ye)})).then(fe,oe)}me((W=W.apply(j,$||[])).next())})},S=function(j,$){var Z,W,te,ge,fe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ge={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function oe(me){return function(Ae){return function(ye){if(Z)throw new TypeError("Generator is already executing.");for(;fe;)try{if(Z=1,W&&(te=2&ye[0]?W.return:ye[0]?W.throw||((te=W.return)&&te.call(W),0):W.next)&&!(te=te.call(W,ye[1])).done)return te;switch(W=0,te&&(ye=[2&ye[0],te.value]),ye[0]){case 0:case 1:te=ye;break;case 4:return fe.label++,{value:ye[1],done:!1};case 5:fe.label++,W=ye[1],ye=[0];continue;case 7:ye=fe.ops.pop(),fe.trys.pop();continue;default:if(!((te=(te=fe.trys).length>0&&te[te.length-1])||ye[0]!==6&&ye[0]!==2)){fe=0;continue}if(ye[0]===3&&(!te||ye[1]>te[0]&&ye[1]<te[3])){fe.label=ye[1];break}if(ye[0]===6&&fe.label<te[1]){fe.label=te[1],te=ye;break}if(te&&fe.label<te[2]){fe.label=te[2],fe.ops.push(ye);break}te[2]&&fe.ops.pop(),fe.trys.pop();continue}ye=$.call(j,fe)}catch(Oe){ye=[6,Oe],W=0}finally{Z=te=0}if(5&ye[0])throw ye[1];return{value:ye[0]?ye[1]:void 0,done:!0}}([me,Ae])}}};function I(j){return C(this,void 0,void 0,function(){return S(this,function($){return[2,new Promise(function(Z){var W=new XMLHttpRequest;W.onload=function(){var te=new FileReader;te.onloadend=function(){Z(te.result)},te.readAsDataURL(W.response)},W.open("GET",j),W.responseType="blob",W.send()})]})})}const L={L:.07,M:.15,Q:.25,H:.3};var N=function(){return N=Object.assign||function(j){for(var $,Z=1,W=arguments.length;Z<W;Z++)for(var te in $=arguments[Z])Object.prototype.hasOwnProperty.call($,te)&&(j[te]=$[te]);return j},N.apply(this,arguments)},q=function(){function j($){var Z=$.svg,W=$.type;this._svg=Z,this._type=W}return j.prototype.draw=function($,Z,W,te){var ge;switch(this._type){case"dots":ge=this._drawDot;break;case"classy":ge=this._drawClassy;break;case"classy-rounded":ge=this._drawClassyRounded;break;case"rounded":ge=this._drawRounded;break;case"extra-rounded":ge=this._drawExtraRounded;break;default:ge=this._drawSquare}ge.call(this,{x:$,y:Z,size:W,getNeighbor:te})},j.prototype._rotateFigure=function($){var Z,W=$.x,te=$.y,ge=$.size,fe=$.rotation,oe=fe===void 0?0:fe,me=W+ge/2,Ae=te+ge/2;(0,$.draw)(),(Z=this._element)===null||Z===void 0||Z.setAttribute("transform","rotate("+180*oe/Math.PI+","+me+","+Ae+")")},j.prototype._basicDot=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(N(N({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Z._element.setAttribute("cx",String(te+W/2)),Z._element.setAttribute("cy",String(ge+W/2)),Z._element.setAttribute("r",String(W/2))}}))},j.prototype._basicSquare=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(N(N({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Z._element.setAttribute("x",String(te)),Z._element.setAttribute("y",String(ge)),Z._element.setAttribute("width",String(W)),Z._element.setAttribute("height",String(W))}}))},j.prototype._basicSideRounded=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(N(N({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ge+"v "+W+"h "+W/2+"a "+W/2+" "+W/2+", 0, 0, 0, 0 "+-W)}}))},j.prototype._basicCornerRounded=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(N(N({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ge+"v "+W+"h "+W+"v "+-W/2+"a "+W/2+" "+W/2+", 0, 0, 0, "+-W/2+" "+-W/2)}}))},j.prototype._basicCornerExtraRounded=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(N(N({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ge+"v "+W+"h "+W+"a "+W+" "+W+", 0, 0, 0, "+-W+" "+-W)}}))},j.prototype._basicCornersRounded=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(N(N({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ge+"v "+W/2+"a "+W/2+" "+W/2+", 0, 0, 0, "+W/2+" "+W/2+"h "+W/2+"v "+-W/2+"a "+W/2+" "+W/2+", 0, 0, 0, "+-W/2+" "+-W/2)}}))},j.prototype._drawDot=function($){var Z=$.x,W=$.y,te=$.size;this._basicDot({x:Z,y:W,size:te,rotation:0})},j.prototype._drawSquare=function($){var Z=$.x,W=$.y,te=$.size;this._basicSquare({x:Z,y:W,size:te,rotation:0})},j.prototype._drawRounded=function($){var Z=$.x,W=$.y,te=$.size,ge=$.getNeighbor,fe=ge?+ge(-1,0):0,oe=ge?+ge(1,0):0,me=ge?+ge(0,-1):0,Ae=ge?+ge(0,1):0,ye=fe+oe+me+Ae;if(ye!==0)if(ye>2||fe&&oe||me&&Ae)this._basicSquare({x:Z,y:W,size:te,rotation:0});else{if(ye===2){var Oe=0;return fe&&me?Oe=Math.PI/2:me&&oe?Oe=Math.PI:oe&&Ae&&(Oe=-Math.PI/2),void this._basicCornerRounded({x:Z,y:W,size:te,rotation:Oe})}if(ye===1)return Oe=0,me?Oe=Math.PI/2:oe?Oe=Math.PI:Ae&&(Oe=-Math.PI/2),void this._basicSideRounded({x:Z,y:W,size:te,rotation:Oe})}else this._basicDot({x:Z,y:W,size:te,rotation:0})},j.prototype._drawExtraRounded=function($){var Z=$.x,W=$.y,te=$.size,ge=$.getNeighbor,fe=ge?+ge(-1,0):0,oe=ge?+ge(1,0):0,me=ge?+ge(0,-1):0,Ae=ge?+ge(0,1):0,ye=fe+oe+me+Ae;if(ye!==0)if(ye>2||fe&&oe||me&&Ae)this._basicSquare({x:Z,y:W,size:te,rotation:0});else{if(ye===2){var Oe=0;return fe&&me?Oe=Math.PI/2:me&&oe?Oe=Math.PI:oe&&Ae&&(Oe=-Math.PI/2),void this._basicCornerExtraRounded({x:Z,y:W,size:te,rotation:Oe})}if(ye===1)return Oe=0,me?Oe=Math.PI/2:oe?Oe=Math.PI:Ae&&(Oe=-Math.PI/2),void this._basicSideRounded({x:Z,y:W,size:te,rotation:Oe})}else this._basicDot({x:Z,y:W,size:te,rotation:0})},j.prototype._drawClassy=function($){var Z=$.x,W=$.y,te=$.size,ge=$.getNeighbor,fe=ge?+ge(-1,0):0,oe=ge?+ge(1,0):0,me=ge?+ge(0,-1):0,Ae=ge?+ge(0,1):0;fe+oe+me+Ae!==0?fe||me?oe||Ae?this._basicSquare({x:Z,y:W,size:te,rotation:0}):this._basicCornerRounded({x:Z,y:W,size:te,rotation:Math.PI/2}):this._basicCornerRounded({x:Z,y:W,size:te,rotation:-Math.PI/2}):this._basicCornersRounded({x:Z,y:W,size:te,rotation:Math.PI/2})},j.prototype._drawClassyRounded=function($){var Z=$.x,W=$.y,te=$.size,ge=$.getNeighbor,fe=ge?+ge(-1,0):0,oe=ge?+ge(1,0):0,me=ge?+ge(0,-1):0,Ae=ge?+ge(0,1):0;fe+oe+me+Ae!==0?fe||me?oe||Ae?this._basicSquare({x:Z,y:W,size:te,rotation:0}):this._basicCornerExtraRounded({x:Z,y:W,size:te,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:Z,y:W,size:te,rotation:-Math.PI/2}):this._basicCornersRounded({x:Z,y:W,size:te,rotation:Math.PI/2})},j}();const H=q;var V=function(){return V=Object.assign||function(j){for(var $,Z=1,W=arguments.length;Z<W;Z++)for(var te in $=arguments[Z])Object.prototype.hasOwnProperty.call($,te)&&(j[te]=$[te]);return j},V.apply(this,arguments)},X=function(){function j($){var Z=$.svg,W=$.type;this._svg=Z,this._type=W}return j.prototype.draw=function($,Z,W,te){var ge;switch(this._type){case"square":ge=this._drawSquare;break;case"extra-rounded":ge=this._drawExtraRounded;break;default:ge=this._drawDot}ge.call(this,{x:$,y:Z,size:W,rotation:te})},j.prototype._rotateFigure=function($){var Z,W=$.x,te=$.y,ge=$.size,fe=$.rotation,oe=fe===void 0?0:fe,me=W+ge/2,Ae=te+ge/2;(0,$.draw)(),(Z=this._element)===null||Z===void 0||Z.setAttribute("transform","rotate("+180*oe/Math.PI+","+me+","+Ae+")")},j.prototype._basicDot=function($){var Z=this,W=$.size,te=$.x,ge=$.y,fe=W/7;this._rotateFigure(V(V({},$),{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+W/2)+" "+ge+"a "+W/2+" "+W/2+" 0 1 0 0.1 0zm 0 "+fe+"a "+(W/2-fe)+" "+(W/2-fe)+" 0 1 1 -0.1 0Z")}}))},j.prototype._basicSquare=function($){var Z=this,W=$.size,te=$.x,ge=$.y,fe=W/7;this._rotateFigure(V(V({},$),{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+" "+ge+"v "+W+"h "+W+"v "+-W+"zM "+(te+fe)+" "+(ge+fe)+"h "+(W-2*fe)+"v "+(W-2*fe)+"h "+(2*fe-W)+"z")}}))},j.prototype._basicExtraRounded=function($){var Z=this,W=$.size,te=$.x,ge=$.y,fe=W/7;this._rotateFigure(V(V({},$),{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+" "+(ge+2.5*fe)+"v "+2*fe+"a "+2.5*fe+" "+2.5*fe+", 0, 0, 0, "+2.5*fe+" "+2.5*fe+"h "+2*fe+"a "+2.5*fe+" "+2.5*fe+", 0, 0, 0, "+2.5*fe+" "+2.5*-fe+"v "+-2*fe+"a "+2.5*fe+" "+2.5*fe+", 0, 0, 0, "+2.5*-fe+" "+2.5*-fe+"h "+-2*fe+"a "+2.5*fe+" "+2.5*fe+", 0, 0, 0, "+2.5*-fe+" "+2.5*fe+"M "+(te+2.5*fe)+" "+(ge+fe)+"h "+2*fe+"a "+1.5*fe+" "+1.5*fe+", 0, 0, 1, "+1.5*fe+" "+1.5*fe+"v "+2*fe+"a "+1.5*fe+" "+1.5*fe+", 0, 0, 1, "+1.5*-fe+" "+1.5*fe+"h "+-2*fe+"a "+1.5*fe+" "+1.5*fe+", 0, 0, 1, "+1.5*-fe+" "+1.5*-fe+"v "+-2*fe+"a "+1.5*fe+" "+1.5*fe+", 0, 0, 1, "+1.5*fe+" "+1.5*-fe)}}))},j.prototype._drawDot=function($){var Z=$.x,W=$.y,te=$.size,ge=$.rotation;this._basicDot({x:Z,y:W,size:te,rotation:ge})},j.prototype._drawSquare=function($){var Z=$.x,W=$.y,te=$.size,ge=$.rotation;this._basicSquare({x:Z,y:W,size:te,rotation:ge})},j.prototype._drawExtraRounded=function($){var Z=$.x,W=$.y,te=$.size,ge=$.rotation;this._basicExtraRounded({x:Z,y:W,size:te,rotation:ge})},j}();const re=X;var le=function(){return le=Object.assign||function(j){for(var $,Z=1,W=arguments.length;Z<W;Z++)for(var te in $=arguments[Z])Object.prototype.hasOwnProperty.call($,te)&&(j[te]=$[te]);return j},le.apply(this,arguments)},Q=function(){function j($){var Z=$.svg,W=$.type;this._svg=Z,this._type=W}return j.prototype.draw=function($,Z,W,te){(this._type==="square"?this._drawSquare:this._drawDot).call(this,{x:$,y:Z,size:W,rotation:te})},j.prototype._rotateFigure=function($){var Z,W=$.x,te=$.y,ge=$.size,fe=$.rotation,oe=fe===void 0?0:fe,me=W+ge/2,Ae=te+ge/2;(0,$.draw)(),(Z=this._element)===null||Z===void 0||Z.setAttribute("transform","rotate("+180*oe/Math.PI+","+me+","+Ae+")")},j.prototype._basicDot=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(le(le({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Z._element.setAttribute("cx",String(te+W/2)),Z._element.setAttribute("cy",String(ge+W/2)),Z._element.setAttribute("r",String(W/2))}}))},j.prototype._basicSquare=function($){var Z=this,W=$.size,te=$.x,ge=$.y;this._rotateFigure(le(le({},$),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Z._element.setAttribute("x",String(te)),Z._element.setAttribute("y",String(ge)),Z._element.setAttribute("width",String(W)),Z._element.setAttribute("height",String(W))}}))},j.prototype._drawDot=function($){var Z=$.x,W=$.y,te=$.size,ge=$.rotation;this._basicDot({x:Z,y:W,size:te,rotation:ge})},j.prototype._drawSquare=function($){var Z=$.x,W=$.y,te=$.size,ge=$.rotation;this._basicSquare({x:Z,y:W,size:te,rotation:ge})},j}();const B=Q,T="circle";var c=function(j,$,Z,W){return new(Z||(Z=Promise))(function(te,ge){function fe(Ae){try{me(W.next(Ae))}catch(ye){ge(ye)}}function oe(Ae){try{me(W.throw(Ae))}catch(ye){ge(ye)}}function me(Ae){var ye;Ae.done?te(Ae.value):(ye=Ae.value,ye instanceof Z?ye:new Z(function(Oe){Oe(ye)})).then(fe,oe)}me((W=W.apply(j,$||[])).next())})},f=function(j,$){var Z,W,te,ge,fe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ge={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function oe(me){return function(Ae){return function(ye){if(Z)throw new TypeError("Generator is already executing.");for(;fe;)try{if(Z=1,W&&(te=2&ye[0]?W.return:ye[0]?W.throw||((te=W.return)&&te.call(W),0):W.next)&&!(te=te.call(W,ye[1])).done)return te;switch(W=0,te&&(ye=[2&ye[0],te.value]),ye[0]){case 0:case 1:te=ye;break;case 4:return fe.label++,{value:ye[1],done:!1};case 5:fe.label++,W=ye[1],ye=[0];continue;case 7:ye=fe.ops.pop(),fe.trys.pop();continue;default:if(!((te=(te=fe.trys).length>0&&te[te.length-1])||ye[0]!==6&&ye[0]!==2)){fe=0;continue}if(ye[0]===3&&(!te||ye[1]>te[0]&&ye[1]<te[3])){fe.label=ye[1];break}if(ye[0]===6&&fe.label<te[1]){fe.label=te[1],te=ye;break}if(te&&fe.label<te[2]){fe.label=te[2],fe.ops.push(ye);break}te[2]&&fe.ops.pop(),fe.trys.pop();continue}ye=$.call(j,fe)}catch(Oe){ye=[6,Oe],W=0}finally{Z=te=0}if(5&ye[0])throw ye[1];return{value:ye[0]?ye[1]:void 0,done:!0}}([me,Ae])}}},b=[[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]],D=[[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 R=function(){function j($){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String($.width)),this._element.setAttribute("height",String($.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._instanceId=j.instanceCount++,this._options=$}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($){return c(this,void 0,void 0,function(){var Z,W,te,ge,fe,oe,me,Ae,ye,Oe,$e=this;return f(this,function(Ee){switch(Ee.label){case 0:return Z=$.getModuleCount(),W=Math.min(this._options.width,this._options.height)-2*this._options.margin,te=this._options.shape===T?W/Math.sqrt(2):W,ge=te/Z,fe={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=$,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Ee.sent(),!this._image)return[2];oe=this._options,me=oe.imageOptions,Ae=oe.qrOptions,ye=me.imageSize*L[Ae.errorCorrectionLevel],Oe=Math.floor(ye*Z*Z),fe=function(Pe){var Ie=Pe.originalHeight,Ue=Pe.originalWidth,Xe=Pe.maxHiddenDots,Me=Pe.maxHiddenAxisDots,J=Pe.dotSize,O={x:0,y:0},F={x:0,y:0};if(Ie<=0||Ue<=0||Xe<=0||J<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var se=Ie/Ue;return O.x=Math.floor(Math.sqrt(Xe/se)),O.x<=0&&(O.x=1),Me&&Me<O.x&&(O.x=Me),O.x%2==0&&O.x--,F.x=O.x*J,O.y=1+2*Math.ceil((O.x*se-1)/2),F.y=Math.round(F.x*se),(O.y*O.x>Xe||Me&&Me<O.y)&&(Me&&Me<O.y?(O.y=Me,O.y%2==0&&O.x--):O.y-=2,F.y=O.y*J,O.x=1+2*Math.ceil((O.y/se-1)/2),F.x=Math.round(F.y/se)),{height:F.y,width:F.x,hideYDots:O.y,hideXDots:O.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Oe,maxHiddenAxisDots:Z-14,dotSize:ge}),Ee.label=2;case 2:return this.drawBackground(),this.drawDots(function(Pe,Ie){var Ue,Xe,Me,J,O,F;return!($e._options.imageOptions.hideBackgroundDots&&Pe>=(Z-fe.hideXDots)/2&&Pe<(Z+fe.hideXDots)/2&&Ie>=(Z-fe.hideYDots)/2&&Ie<(Z+fe.hideYDots)/2||!((Ue=b[Pe])===null||Ue===void 0)&&Ue[Ie]||!((Xe=b[Pe-Z+7])===null||Xe===void 0)&&Xe[Ie]||!((Me=b[Pe])===null||Me===void 0)&&Me[Ie-Z+7]||!((J=D[Pe])===null||J===void 0)&&J[Ie]||!((O=D[Pe-Z+7])===null||O===void 0)&&O[Ie]||!((F=D[Pe])===null||F===void 0)&&F[Ie-Z+7])}),this.drawCorners(),this._options.image?[4,this.drawImage({width:fe.width,height:fe.height,count:Z,dotSize:ge})]:[3,4];case 3:Ee.sent(),Ee.label=4;case 4:return[2]}})})},j.prototype.drawBackground=function(){var $,Z,W,te=this._element,ge=this._options;if(te){var fe=($=ge.backgroundOptions)===null||$===void 0?void 0:$.gradient,oe=(Z=ge.backgroundOptions)===null||Z===void 0?void 0:Z.color;if((fe||oe)&&this._createColor({options:fe,color:oe,additionalRotation:0,x:0,y:0,height:ge.height,width:ge.width,name:"background-color"}),(W=ge.backgroundOptions)===null||W===void 0?void 0:W.round){var me=Math.min(ge.width,ge.height),Ae=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),Ae.setAttribute("x",String((ge.width-me)/2)),Ae.setAttribute("y",String((ge.height-me)/2)),Ae.setAttribute("width",String(me)),Ae.setAttribute("height",String(me)),Ae.setAttribute("rx",String(me/2*ge.backgroundOptions.round)),this._backgroundClipPath.appendChild(Ae)}}},j.prototype.drawDots=function($){var Z,W,te=this;if(!this._qr)throw"QR code is not defined";var ge=this._options,fe=this._qr.getModuleCount();if(fe>ge.width||fe>ge.height)throw"The canvas is too small.";var oe=Math.min(ge.width,ge.height)-2*ge.margin,me=(ge.shape===T?oe/Math.sqrt(2):oe)/fe,Ae=(ge.width-fe*me)/2,ye=(ge.height-fe*me)/2,Oe=new H({svg:this._element,type:ge.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=ge.dotsOptions)===null||Z===void 0?void 0:Z.gradient,color:ge.dotsOptions.color,additionalRotation:0,x:0,y:0,height:ge.height,width:ge.width,name:"dot-color-"+this._instanceId});for(var $e=function(Se){for(var we=function(He){return $&&!$(Se,He)?"continue":!((W=Ee._qr)===null||W===void 0)&&W.isDark(Se,He)?(Oe.draw(Ae+Se*me,ye+He*me,me,function(qe,dt){return!(Se+qe<0||He+dt<0||Se+qe>=fe||He+dt>=fe)&&!($&&!$(Se+qe,He+dt))&&!!te._qr&&te._qr.isDark(Se+qe,He+dt)}),void(Oe._element&&Ee._dotsClipPath&&Ee._dotsClipPath.appendChild(Oe._element))):"continue"},Ge=0;Ge<fe;Ge++)we(Ge)},Ee=this,Pe=0;Pe<fe;Pe++)$e(Pe);if(ge.shape===T){var Ie=Math.floor((oe/me-fe)/2),Ue=fe+2*Ie,Xe=Ae-Ie*me,Me=ye-Ie*me,J=[],O=Math.floor(Ue/2);for(Pe=0;Pe<Ue;Pe++){J[Pe]=[];for(var F=0;F<Ue;F++)Pe>=Ie-1&&Pe<=Ue-Ie&&F>=Ie-1&&F<=Ue-Ie||Math.sqrt((Pe-O)*(Pe-O)+(F-O)*(F-O))>O?J[Pe][F]=0:J[Pe][F]=this._qr.isDark(F-2*Ie<0?F:F>=fe?F-2*Ie:F-Ie,Pe-2*Ie<0?Pe:Pe>=fe?Pe-2*Ie:Pe-Ie)?1:0}var se=function(Se){for(var we=function(He){if(!J[Se][He])return"continue";Oe.draw(Xe+Se*me,Me+He*me,me,function(qe,dt){var Ye;return!!(!((Ye=J[Se+qe])===null||Ye===void 0)&&Ye[He+dt])}),Oe._element&&ke._dotsClipPath&&ke._dotsClipPath.appendChild(Oe._element)},Ge=0;Ge<Ue;Ge++)we(Ge)},ke=this;for(Pe=0;Pe<Ue;Pe++)se(Pe)}},j.prototype.drawCorners=function(){var $=this;if(!this._qr)throw"QR code is not defined";var Z=this._element,W=this._options;if(!Z)throw"Element code is not defined";var te=this._qr.getModuleCount(),ge=Math.min(W.width,W.height)-2*W.margin,fe=(W.shape===T?ge/Math.sqrt(2):ge)/te,oe=7*fe,me=3*fe,Ae=(W.width-te*fe)/2,ye=(W.height-te*fe)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(Oe){var $e,Ee,Pe,Ie,Ue,Xe,Me,J,O,F,se,ke,Se=Oe[0],we=Oe[1],Ge=Oe[2],He=Ae+Se*fe*(te-7),qe=ye+we*fe*(te-7),dt=$._dotsClipPath,Ye=$._dotsClipPath;if((!(($e=W.cornersSquareOptions)===null||$e===void 0)&&$e.gradient||!((Ee=W.cornersSquareOptions)===null||Ee===void 0)&&Ee.color)&&((dt=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Se+"-"+we),$._defs.appendChild(dt),$._cornersSquareClipPath=$._cornersDotClipPath=Ye=dt,$._createColor({options:(Pe=W.cornersSquareOptions)===null||Pe===void 0?void 0:Pe.gradient,color:(Ie=W.cornersSquareOptions)===null||Ie===void 0?void 0:Ie.color,additionalRotation:Ge,x:He,y:qe,height:oe,width:oe,name:"corners-square-color-"+Se+"-"+we})),(Ue=W.cornersSquareOptions)===null||Ue===void 0?void 0:Ue.type){var rt=new re({svg:$._element,type:W.cornersSquareOptions.type});rt.draw(He,qe,oe,Ge),rt._element&&dt&&dt.appendChild(rt._element)}else for(var $t=new H({svg:$._element,type:W.dotsOptions.type}),mt=function(st){for(var Zt=function(nt){if(!(!((Xe=b[st])===null||Xe===void 0)&&Xe[nt]))return"continue";$t.draw(He+st*fe,qe+nt*fe,fe,function(tn,ee){var ae;return!!(!((ae=b[st+tn])===null||ae===void 0)&&ae[nt+ee])}),$t._element&&dt&&dt.appendChild($t._element)},St=0;St<b[st].length;St++)Zt(St)},ot=0;ot<b.length;ot++)mt(ot);if((!((Me=W.cornersDotOptions)===null||Me===void 0)&&Me.gradient||!((J=W.cornersDotOptions)===null||J===void 0)&&J.color)&&((Ye=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Se+"-"+we),$._defs.appendChild(Ye),$._cornersDotClipPath=Ye,$._createColor({options:(O=W.cornersDotOptions)===null||O===void 0?void 0:O.gradient,color:(F=W.cornersDotOptions)===null||F===void 0?void 0:F.color,additionalRotation:Ge,x:He+2*fe,y:qe+2*fe,height:me,width:me,name:"corners-dot-color-"+Se+"-"+we})),(se=W.cornersDotOptions)===null||se===void 0?void 0:se.type){var Gt=new B({svg:$._element,type:W.cornersDotOptions.type});Gt.draw(He+2*fe,qe+2*fe,me,Ge),Gt._element&&Ye&&Ye.appendChild(Gt._element)}else{$t=new H({svg:$._element,type:W.dotsOptions.type});var At=function(st){for(var Zt=function(nt){if(!(!((ke=D[st])===null||ke===void 0)&&ke[nt]))return"continue";$t.draw(He+st*fe,qe+nt*fe,fe,function(tn,ee){var ae;return!!(!((ae=D[st+tn])===null||ae===void 0)&&ae[nt+ee])}),$t._element&&Ye&&Ye.appendChild($t._element)},St=0;St<D[st].length;St++)Zt(St)};for(ot=0;ot<D.length;ot++)At(ot)}})},j.prototype.loadImage=function(){var $=this;return new Promise(function(Z,W){var te=$._options,ge=new Image;if(!te.image)return W("Image is not defined");typeof te.imageOptions.crossOrigin=="string"&&(ge.crossOrigin=te.imageOptions.crossOrigin),$._image=ge,ge.onload=function(){Z()},ge.src=te.image})},j.prototype.drawImage=function($){var Z=$.width,W=$.height,te=$.count,ge=$.dotSize;return c(this,void 0,void 0,function(){var fe,oe,me,Ae,ye,Oe,$e,Ee,Pe;return f(this,function(Ie){switch(Ie.label){case 0:return fe=this._options,oe=(fe.width-te*ge)/2,me=(fe.height-te*ge)/2,Ae=oe+fe.imageOptions.margin+(te*ge-Z)/2,ye=me+fe.imageOptions.margin+(te*ge-W)/2,Oe=Z-2*fe.imageOptions.margin,$e=W-2*fe.imageOptions.margin,(Ee=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(Ae)),Ee.setAttribute("y",String(ye)),Ee.setAttribute("width",Oe+"px"),Ee.setAttribute("height",$e+"px"),[4,I(fe.image||"")];case 1:return Pe=Ie.sent(),Ee.setAttribute("href",Pe||""),this._element.appendChild(Ee),[2]}})})},j.prototype._createColor=function($){var Z=$.options,W=$.color,te=$.additionalRotation,ge=$.x,fe=$.y,oe=$.height,me=$.width,Ae=$.name,ye=me>oe?me:oe,Oe=document.createElementNS("http://www.w3.org/2000/svg","rect");if(Oe.setAttribute("x",String(ge)),Oe.setAttribute("y",String(fe)),Oe.setAttribute("height",String(oe)),Oe.setAttribute("width",String(me)),Oe.setAttribute("clip-path","url('#clip-path-"+Ae+"')"),Z){var $e;if(Z.type==="radial")($e=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",Ae),$e.setAttribute("gradientUnits","userSpaceOnUse"),$e.setAttribute("fx",String(ge+me/2)),$e.setAttribute("fy",String(fe+oe/2)),$e.setAttribute("cx",String(ge+me/2)),$e.setAttribute("cy",String(fe+oe/2)),$e.setAttribute("r",String(ye/2));else{var Ee=((Z.rotation||0)+te)%(2*Math.PI),Pe=(Ee+2*Math.PI)%(2*Math.PI),Ie=ge+me/2,Ue=fe+oe/2,Xe=ge+me/2,Me=fe+oe/2;Pe>=0&&Pe<=.25*Math.PI||Pe>1.75*Math.PI&&Pe<=2*Math.PI?(Ie-=me/2,Ue-=oe/2*Math.tan(Ee),Xe+=me/2,Me+=oe/2*Math.tan(Ee)):Pe>.25*Math.PI&&Pe<=.75*Math.PI?(Ue-=oe/2,Ie-=me/2/Math.tan(Ee),Me+=oe/2,Xe+=me/2/Math.tan(Ee)):Pe>.75*Math.PI&&Pe<=1.25*Math.PI?(Ie+=me/2,Ue+=oe/2*Math.tan(Ee),Xe-=me/2,Me-=oe/2*Math.tan(Ee)):Pe>1.25*Math.PI&&Pe<=1.75*Math.PI&&(Ue+=oe/2,Ie+=me/2/Math.tan(Ee),Me-=oe/2,Xe-=me/2/Math.tan(Ee)),($e=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",Ae),$e.setAttribute("gradientUnits","userSpaceOnUse"),$e.setAttribute("x1",String(Math.round(Ie))),$e.setAttribute("y1",String(Math.round(Ue))),$e.setAttribute("x2",String(Math.round(Xe))),$e.setAttribute("y2",String(Math.round(Me)))}Z.colorStops.forEach(function(J){var O=J.offset,F=J.color,se=document.createElementNS("http://www.w3.org/2000/svg","stop");se.setAttribute("offset",100*O+"%"),se.setAttribute("stop-color",F),$e.appendChild(se)}),Oe.setAttribute("fill","url('#"+Ae+"')"),this._defs.appendChild($e)}else W&&Oe.setAttribute("fill",W);this._element.appendChild(Oe)},j.instanceCount=0,j}(),x="canvas";for(var w={},E=0;E<=40;E++)w[E]=E;const y={type:x,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:w[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 _=function(){return _=Object.assign||function(j){for(var $,Z=1,W=arguments.length;Z<W;Z++)for(var te in $=arguments[Z])Object.prototype.hasOwnProperty.call($,te)&&(j[te]=$[te]);return j},_.apply(this,arguments)};function ne(j){var $=_({},j);if(!$.colorStops||!$.colorStops.length)throw"Field 'colorStops' is required in gradient";return $.rotation?$.rotation=Number($.rotation):$.rotation=0,$.colorStops=$.colorStops.map(function(Z){return _(_({},Z),{offset:Number(Z.offset)})}),$}function M(j){var $=_({},j);return $.width=Number($.width),$.height=Number($.height),$.margin=Number($.margin),$.imageOptions=_(_({},$.imageOptions),{hideBackgroundDots:!!$.imageOptions.hideBackgroundDots,imageSize:Number($.imageOptions.imageSize),margin:Number($.imageOptions.margin)}),$.margin>Math.min($.width,$.height)&&($.margin=Math.min($.width,$.height)),$.dotsOptions=_({},$.dotsOptions),$.dotsOptions.gradient&&($.dotsOptions.gradient=ne($.dotsOptions.gradient)),$.cornersSquareOptions&&($.cornersSquareOptions=_({},$.cornersSquareOptions),$.cornersSquareOptions.gradient&&($.cornersSquareOptions.gradient=ne($.cornersSquareOptions.gradient))),$.cornersDotOptions&&($.cornersDotOptions=_({},$.cornersDotOptions),$.cornersDotOptions.gradient&&($.cornersDotOptions.gradient=ne($.cornersDotOptions.gradient))),$.backgroundOptions&&($.backgroundOptions=_({},$.backgroundOptions),$.backgroundOptions.gradient&&($.backgroundOptions.gradient=ne($.backgroundOptions.gradient))),$}var z=s(192),ie=s.n(z),ce=function(j,$,Z,W){return new(Z||(Z=Promise))(function(te,ge){function fe(Ae){try{me(W.next(Ae))}catch(ye){ge(ye)}}function oe(Ae){try{me(W.throw(Ae))}catch(ye){ge(ye)}}function me(Ae){var ye;Ae.done?te(Ae.value):(ye=Ae.value,ye instanceof Z?ye:new Z(function(Oe){Oe(ye)})).then(fe,oe)}me((W=W.apply(j,$||[])).next())})},he=function(j,$){var Z,W,te,ge,fe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ge={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function oe(me){return function(Ae){return function(ye){if(Z)throw new TypeError("Generator is already executing.");for(;fe;)try{if(Z=1,W&&(te=2&ye[0]?W.return:ye[0]?W.throw||((te=W.return)&&te.call(W),0):W.next)&&!(te=te.call(W,ye[1])).done)return te;switch(W=0,te&&(ye=[2&ye[0],te.value]),ye[0]){case 0:case 1:te=ye;break;case 4:return fe.label++,{value:ye[1],done:!1};case 5:fe.label++,W=ye[1],ye=[0];continue;case 7:ye=fe.ops.pop(),fe.trys.pop();continue;default:if(!((te=(te=fe.trys).length>0&&te[te.length-1])||ye[0]!==6&&ye[0]!==2)){fe=0;continue}if(ye[0]===3&&(!te||ye[1]>te[0]&&ye[1]<te[3])){fe.label=ye[1];break}if(ye[0]===6&&fe.label<te[1]){fe.label=te[1],te=ye;break}if(te&&fe.label<te[2]){fe.label=te[2],fe.ops.push(ye);break}te[2]&&fe.ops.pop(),fe.trys.pop();continue}ye=$.call(j,fe)}catch(Oe){ye=[6,Oe],W=0}finally{Z=te=0}if(5&ye[0])throw ye[1];return{value:ye[0]?ye[1]:void 0,done:!0}}([me,Ae])}}};const De=function(){function j($){this._options=$?M(g(y,$)):y,this.update()}return j._clearContainer=function($){$&&($.innerHTML="")},j.prototype._setupSvg=function(){var $=this;if(this._qr){var Z=new R(this._options);this._svg=Z.getElement(),this._svgDrawingPromise=Z.drawQR(this._qr).then(function(){var W;$._svg&&((W=$._extension)===null||W===void 0||W.call($,Z.getElement(),$._options))})}},j.prototype._setupCanvas=function(){var $,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=($=this._svgDrawingPromise)===null||$===void 0?void 0:$.then(function(){if(Z._svg){var W=Z._svg,te=new XMLSerializer().serializeToString(W),ge="data:image/svg+xml;base64,"+btoa(te),fe=new Image;return new Promise(function(oe){fe.onload=function(){var me,Ae;(Ae=(me=Z._canvas)===null||me===void 0?void 0:me.getContext("2d"))===null||Ae===void 0||Ae.drawImage(fe,0,0),oe()},fe.src=ge})}}))},j.prototype._getElement=function($){return $===void 0&&($="png"),ce(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 $.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($){j._clearContainer(this._container),this._options=$?M(g(this._options,$)):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 d;default:return u}}(this._options.data)),this._qr.make(),this._options.type===x?this._setupCanvas():this._setupSvg(),this.append(this._container))},j.prototype.append=function($){if($){if(typeof $.appendChild!="function")throw"Container should be a single DOM node";this._options.type===x?this._canvas&&$.appendChild(this._canvas):this._svg&&$.appendChild(this._svg),this._container=$}},j.prototype.applyExtension=function($){if(!$)throw"Extension function should be defined.";this._extension=$,this.update()},j.prototype.deleteExtension=function(){this._extension=void 0,this.update()},j.prototype.getRawData=function($){return $===void 0&&($="png"),ce(this,void 0,void 0,function(){var Z,W,te;return he(this,function(ge){switch(ge.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement($)];case 1:return(Z=ge.sent())?$.toLowerCase()==="svg"?(W=new XMLSerializer,te=W.serializeToString(Z),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
|
|
629
629
|
`+te],{type:"image/svg+xml"})]):[2,new Promise(function(fe){return Z.toBlob(fe,"image/"+$,1)})]:[2,null]}})})},j.prototype.download=function($){return ce(this,void 0,void 0,function(){var Z,W,te,ge,fe;return he(this,function(oe){switch(oe.label){case 0:if(!this._qr)throw"QR code is empty";return Z="png",W="qr",typeof $=="string"?(Z=$,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof $=="object"&&$!==null&&($.name&&(W=$.name),$.extension&&(Z=$.extension)),[4,this._getElement(Z)];case 1:return(te=oe.sent())?(Z.toLowerCase()==="svg"?(ge=new XMLSerializer,fe=`<?xml version="1.0" standalone="no"?>\r
|
|
630
630
|
`+(fe=ge.serializeToString(te)),k("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(fe),W+".svg")):k(te.toDataURL("image/"+Z),W+"."+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})})(XZ);var xze=XZ.exports;const Ize=Nt(xze),_ze={margin:0,dotsOptions:{type:"dots"},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}};function h_({data:e,size:t,image:n,config:r,...i}){const a=G.useRef(null),o=G.useMemo(()=>({..._ze,data:e,width:t,height:t,...n&&{image:n,imageOptions:{crossOrigin:"anonymous",margin:0}},...r}),[e,t,n,r]),[s]=G.useState(new Ize(o));return G.useEffect(()=>{a.current&&s.append(a.current)},[s,a]),G.useEffect(()=>{s&&s.update(o)},[e,t,n,r]),Y.jsx(vt,{ref:a,...i})}h_.propTypes={data:be.string.isRequired,size:be.number.isRequired,image:be.string,config:be.object};h_.defaultProps={image:null,config:{}};function m_({tokenState:e,locale:t,messages:n}){const{t:r}=zc(),i="Mobile Wallet",a=(n==null?void 0:n.scan)||r("scanWithWallet"),o=r("download"),s=r("downloadTips"),l=180,d=mn(()=>["zh","en"].includes?`https://www.didwallet.io/${t}`:"https://www.didwallet.io/en",[t]);return Y.jsxs(Jc,{sx:{display:"flex",gap:1,justifyContent:"space-between",alignItems:{xs:"center",md:"stretch"},flexDirection:{xs:"column",md:"row"}},children:[Y.jsx(vt,{sx:{display:{xs:"none",md:"block"}},children:Y.jsx(Xn,{icon:Rze,fontSize:"1.3rem"})}),Y.jsxs(vt,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",flex:1},children:[Y.jsx(xi,{sx:{fontSize:"16px",fontWeight:"bold"},children:i}),Y.jsx(xi,{sx:{flex:1,color:zt.textMuted,fontSize:"14px",display:{xs:"none",md:"block"}},children:a}),Y.jsxs(vt,{sx:{color:zt.textMuted,fontSize:"12px",display:{xs:"none",md:"block"}},children:[s," ",Y.jsx(vt,{component:"a",href:d,target:"_blank",rel:"noreferrer",sx:{color:zt.primary100,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:o})]})]}),Y.jsx(h_,{data:e.url,size:l,sx:{p:1.5,borderRadius:2,backgroundColor:"white",fontSize:0}})]})}m_.propTypes={tokenState:be.object.isRequired,locale:be.string,messages:be.object};m_.defaultProps={locale:"en",messages:{}};const QZ={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"/>'},eX={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"/>'},tX={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"/>'},nX={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"/>'},g_={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 rX({icon:e,...t}){return Y.jsx(Bs,{...t,sx:{backgroundColor:"white",border:`1px solid ${zt.borderBase}`,...t==null?void 0:t.sx},children:Y.jsx(Xn,{icon:e})})}rX.propTypes={icon:be.any.isRequired};function iX({providerList:e,onLogin:t}){return Y.jsxs(Jc,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[Y.jsxs(vt,{sx:{display:"flex",alignItems:"center",gap:1},children:[Y.jsx(Xn,{icon:QZ,fontSize:"1.3rem"}),Y.jsx(xi,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Others"})]}),Y.jsx(vt,{sx:{display:"flex",gap:2},children:e.map(r=>{const i={auth0:g_,apple:eX,github:tX,google:nX};return Y.jsx(rX,{icon:i[r.provider],onClick:()=>t(r)},r.provider)})})]})}iX.propTypes={onLogin:be.func.isRequired,providerList:be.array.isRequired};function aX({title:e,icon:t,...n}){return Y.jsxs(Jc,{...n,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:zt.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:[Y.jsxs(vt,{sx:{display:"flex",alignItems:"center",gap:1},children:[Y.jsx(Xn,{icon:t,fontSize:"1.5rem",style:{transform:"scale(0.95)"}}),Y.jsx(xi,{sx:{fontSize:"16px",fontWeight:"bold"},children:e})]}),Y.jsx(Xn,{className:"other-item-icon",icon:IT,fontSize:"1.3rem",color:zt.primaryBase})]})}aX.propTypes={title:be.string.isRequired,icon:be.string.isRequired};function oX({providerList:e,onLogin:t}){return Y.jsx(vt,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:e.map(n=>{const r={auth0:g_,apple:eX,github:tX,google:nX},i={auth0:"Auth0",apple:"Apple",github:"Github",google:"Google"};return Y.jsx(aX,{title:i[n.provider],icon:r[n.provider],onClick:()=>{t(n)}},n.provider)})})}oX.propTypes={onLogin:be.func.isRequired,providerList:be.array.isRequired};function Gb({providerList:e,type:t,onSuccess:n,onError:r,tokenState:i}){const{extraParams:a,changeStatus:o}=zc(),{loginOAuth:s,logoutOAuth:l,translation:d,oauthState:u}=B6(),p=xt(async h=>{try{u.loading=!0,u.status="scanned";const v=await s(h,{action:i.action,...a}),g=Zu({returnDomain:!1});$r.remove("connected_did",g),$r.remove("connected_pk",g),$r.remove("connected_wallet_os",g),$r.set("connected_app",T6(i.appInfo,i.memberAppInfo),g),v!=null&&v.sessionToken&&(u.loading=!1,u.status="succeed",await l({provider:h.provider}),n({...v,encrypted:!1},k=>k,{sourceAppPid:a==null?void 0:a.sourceAppPid}))}catch(v){const g=NY(v,d.loginOAuthFailed);u.loading=!1,u.error=g,u.status="error",await l({provider:h.provider}),r(new Error(g))}});return G.useEffect(()=>{o(u.status)},[o,u.status]),t==="stack"?Y.jsx(iX,{providerList:e,onLogin:p}):Y.jsx(oX,{providerList:e,onLogin:p})}Gb.propTypes={providerList:be.array.isRequired,type:be.oneOf(["list","stack"]),onSuccess:be.func.isRequired,onError:be.func.isRequired,tokenState:be.object.isRequired};Gb.defaultProps={type:"stack"};var Lze=F2,Pze=$4,$ze=1,Bze=2;function Nze(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],d=e[l],u=s[1];if(o&&s[2]){if(d===void 0&&!(l in e))return!1}else{var p=new Lze;if(r)var h=r(d,u,l,e,t,p);if(!(h===void 0?Pze(u,d,$ze|Bze,r,p):h))return!1}}return!0}var Oze=Nze,Mze=Ji;function Fze(e){return e===e&&!Mze(e)}var sX=Fze,Uze=sX,Hze=i0;function jze(e){for(var t=Hze(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Uze(i)]}return t}var qze=jze;function Vze(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var lX=Vze,zze=Oze,Jze=qze,Gze=lX;function Wze(e){var t=Jze(e);return t.length==1&&t[0][2]?Gze(t[0][0],t[0][1]):function(n){return n===e||zze(n,e,t)}}var Kze=Wze,Yze=$4,Zze=Yg,Xze=CG,Qze=t4,eJe=sX,tJe=lX,nJe=Pf,rJe=1,iJe=2;function aJe(e,t){return Qze(e)&&eJe(t)?tJe(nJe(e),t):function(n){var r=Zze(n,e);return r===void 0&&r===t?Xze(n,e):Yze(t,r,rJe|iJe)}}var oJe=aJe,sJe=Kg;function lJe(e){return function(t){return sJe(t,e)}}var cJe=lJe,uJe=Xz,dJe=cJe,pJe=t4,fJe=Pf;function hJe(e){return pJe(e)?uJe(fJe(e)):dJe(e)}var mJe=hJe,gJe=Kze,vJe=oJe,yJe=q2,bJe=Ta,TJe=mJe;function kJe(e){return typeof e=="function"?e:e==null?yJe:typeof e=="object"?bJe(e)?vJe(e[0],e[1]):gJe(e):TJe(e)}var PT=kJe,SJe="Expected a function";function AJe(e){if(typeof e!="function")throw new TypeError(SJe);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 DJe=AJe,wJe=_f,EJe=PT,CJe=EG,RJe=E4;function xJe(e,t){if(e==null)return{};var n=wJe(RJe(e),function(r){return[r]});return t=EJe(t),CJe(e,n,function(r,i){return t(r,i[0])})}var IJe=xJe,_Je=PT,LJe=DJe,PJe=IJe;function $Je(e,t){return PJe(e,LJe(_Je(t)))}var BJe=$Je;const aF=Nt(BJe);function NJe(e){return e==null}var OJe=NJe;const oF=Nt(OJe);var cX={};Object.defineProperty(cX,"__esModule",{value:!0});var MJe=cX.default=FJe,_w=G;function FJe(e,t){const n=(0,_w.useRef)();(0,_w.useEffect)(()=>{n.current=e},[e]),(0,_w.useEffect)(()=>{function r(){n.current()}if(t!==null){const i=setInterval(r,t);return()=>clearInterval(i)}},[t])}var uX={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,d,u){this.fn=l,this.context=d,this.once=u||!1}function a(l,d,u,p,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var v=new i(u,p||l,h),g=n?n+d:d;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],v]:l._events[g].push(v):(l._events[g]=v,l._eventsCount++),l}function o(l,d){--l._eventsCount===0?l._events=new r:delete l._events[d]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var d=[],u,p;if(this._eventsCount===0)return d;for(p in u=this._events)t.call(u,p)&&d.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(u)):d},s.prototype.listeners=function(d){var u=n?n+d:d,p=this._events[u];if(!p)return[];if(p.fn)return[p.fn];for(var h=0,v=p.length,g=new Array(v);h<v;h++)g[h]=p[h].fn;return g},s.prototype.listenerCount=function(d){var u=n?n+d:d,p=this._events[u];return p?p.fn?1:p.length:0},s.prototype.emit=function(d,u,p,h,v,g){var k=n?n+d:d;if(!this._events[k])return!1;var C=this._events[k],S=arguments.length,I,L;if(C.fn){switch(C.once&&this.removeListener(d,C.fn,void 0,!0),S){case 1:return C.fn.call(C.context),!0;case 2:return C.fn.call(C.context,u),!0;case 3:return C.fn.call(C.context,u,p),!0;case 4:return C.fn.call(C.context,u,p,h),!0;case 5:return C.fn.call(C.context,u,p,h,v),!0;case 6:return C.fn.call(C.context,u,p,h,v,g),!0}for(L=1,I=new Array(S-1);L<S;L++)I[L-1]=arguments[L];C.fn.apply(C.context,I)}else{var N=C.length,q;for(L=0;L<N;L++)switch(C[L].once&&this.removeListener(d,C[L].fn,void 0,!0),S){case 1:C[L].fn.call(C[L].context);break;case 2:C[L].fn.call(C[L].context,u);break;case 3:C[L].fn.call(C[L].context,u,p);break;case 4:C[L].fn.call(C[L].context,u,p,h);break;default:if(!I)for(q=1,I=new Array(S-1);q<S;q++)I[q-1]=arguments[q];C[L].fn.apply(C[L].context,I)}}return!0},s.prototype.on=function(d,u,p){return a(this,d,u,p,!1)},s.prototype.once=function(d,u,p){return a(this,d,u,p,!0)},s.prototype.removeListener=function(d,u,p,h){var v=n?n+d:d;if(!this._events[v])return this;if(!u)return o(this,v),this;var g=this._events[v];if(g.fn)g.fn===u&&(!h||g.once)&&(!p||g.context===p)&&o(this,v);else{for(var k=0,C=[],S=g.length;k<S;k++)(g[k].fn!==u||h&&!g[k].once||p&&g[k].context!==p)&&C.push(g[k]);C.length?this._events[v]=C.length===1?C[0]:C:o(this,v)}return this},s.prototype.removeAllListeners=function(d){var u;return d?(u=n?n+d:d,this._events[u]&&o(this,u)):(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})(uX);var dX=uX.exports,v_=Object.defineProperty,UJe=Object.getOwnPropertyDescriptor,HJe=Object.getOwnPropertyNames,jJe=Object.prototype.hasOwnProperty,qJe=(e,t)=>{for(var n in t)v_(e,n,{get:t[n],enumerable:!0})},VJe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of HJe(t))!jJe.call(e,i)&&i!==n&&v_(e,i,{get:()=>t[i],enumerable:!(r=UJe(t,i))||r.enumerable});return e},zJe=e=>VJe(v_({},"__esModule",{value:!0}),e),pX={};qJe(pX,{Channel:()=>hX,LongPoll:()=>Ry,Presence:()=>rm,Serializer:()=>im,Socket:()=>XJe});var JJe=zJe(pX),Im=e=>typeof e=="function"?e:function(){return e},GJe=typeof self<"u"?self:null,nm=typeof window<"u"?window:null,_m=GJe||nm||_m,WJe="2.0.0",Ss={connecting:0,open:1,closing:2,closed:3},KJe=1e4,YJe=1e3,Ia={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},ol={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},MR={longpoll:"longpoll",websocket:"websocket"},ZJe={complete:4},bv=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})}},fX=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))}},hX=class{constructor(e,t,n){this.state=Ia.closed,this.topic=e,this.params=Im(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new bv(this,ol.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new fX(()=>{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=Ia.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=Ia.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=Ia.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=Ia.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 bv(this,ol.leave,Im({}),this.timeout).send(),this.state=Ia.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(ol.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(ol.close,e)}onError(e){return this.on(ol.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 bv(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=Ia.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(ol.close,"leave")},n=new bv(this,ol.leave,Im({}),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=Ia.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===Ia.closed}isErrored(){return this.state===Ia.errored}isJoined(){return this.state===Ia.joined}isJoining(){return this.state===Ia.joining}isLeaving(){return this.state===Ia.leaving}},Wb=class{static request(e,t,n,r,i,a,o){if(_m.XDomainRequest){let s=new _m.XDomainRequest;return this.xdomainRequest(s,e,t,r,i,a,o)}else{let s=new _m.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===ZJe.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)}`}},Ry=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=Ss.connecting,this.poll()}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+MR.websocket),"$1/"+MR.longpoll)}endpointURL(){return Wb.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=Ss.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Ss.open||this.readyState===Ss.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=Ss.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(`
|
|
631
|
-
`),()=>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=Ss.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=Wb.request(e,this.endpointURL(),t,n,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},rm=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=rm.syncState(this.state,r,i,a),this.pendingDiffs.forEach(s=>{this.state=rm.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=rm.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 rm.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 d=i[s];if(d){let u=l.metas.map(g=>g.phx_ref),p=d.metas.map(g=>g.phx_ref),h=l.metas.filter(g=>p.indexOf(g.phx_ref)<0),v=d.metas.filter(g=>u.indexOf(g.phx_ref)<0);h.length>0&&(a[s]=l,a[s].metas=h),v.length>0&&(o[s]=this.clone(d),o[s].metas=v)}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 d=e[o].metas.map(p=>p.phx_ref),u=l.metas.filter(p=>d.indexOf(p.phx_ref)<0);e[o].metas.unshift(...u)}n(o,l,s)}),this.map(a,(o,s)=>{let l=e[o];if(!l)return;let d=s.metas.map(u=>u.phx_ref);l.metas=l.metas.filter(u=>d.indexOf(u.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))}},im={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),d=0;l.setUint8(d++,this.KINDS.push),l.setUint8(d++,t.length),l.setUint8(d++,n.length),l.setUint8(d++,i.length),l.setUint8(d++,r.length),Array.from(t,p=>l.setUint8(d++,p.charCodeAt(0))),Array.from(n,p=>l.setUint8(d++,p.charCodeAt(0))),Array.from(i,p=>l.setUint8(d++,p.charCodeAt(0))),Array.from(r,p=>l.setUint8(d++,p.charCodeAt(0)));var u=new Uint8Array(s.byteLength+a.byteLength);return u.set(new Uint8Array(s),0),u.set(new Uint8Array(a),s.byteLength),u.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 d=n.decode(e.slice(o,o+a));o=o+a;let u=e.slice(o,e.byteLength);return{join_ref:s,ref:null,topic:l,event:d,payload:u}},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 d=n.decode(e.slice(s,s+i));s=s+i;let u=n.decode(e.slice(s,s+a));s=s+a;let p=n.decode(e.slice(s,s+o));s=s+o;let h=e.slice(s,e.byteLength),v={status:p,response:h};return{join_ref:l,ref:d,topic:u,event:ol.reply,payload:v}},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}}},XJe=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||KJe,this.transport=n.transport||_m.WebSocket||Ry,this.establishedConnections=0,this.defaultEncoder=im.encode.bind(im),this.defaultDecoder=im.decode.bind(im),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Ry?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;nm&&nm.addEventListener&&(nm.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),nm.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=Im(n.params||{}),this.endPoint=`${t}/${MR.websocket}`,this.vsn=n.vsn||WJe,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new fX(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Ry}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=Wb.appendParams(Wb.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=Im(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(),YJe,"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===Ss.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(ol.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Ss.connecting:return"connecting";case Ss.open:return"open";case Ss.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 hX(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 d=this.channels[l];d.isMember(r,i,a,s)&&d.trigger(i,a,o,s)}for(let l=0;l<this.stateChangeCallbacks.message.length;l++){let[,d]=this.stateChangeCallbacks.message[l];d(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())}},FR={exports:{}},Lw,sF;function QJe(){if(sF)return Lw;sF=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;Lw=function(u,p){p=p||{};var h=typeof u;if(h==="string"&&u.length>0)return o(u);if(h==="number"&&isFinite(u))return p.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function o(u){if(u=String(u),!(u.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(p){var h=parseFloat(p[1]),v=(p[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return h*a;case"weeks":case"week":case"w":return h*i;case"days":case"day":case"d":return h*r;case"hours":case"hour":case"hrs":case"hr":case"h":return h*n;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function s(u){var p=Math.abs(u);return p>=r?Math.round(u/r)+"d":p>=n?Math.round(u/n)+"h":p>=t?Math.round(u/t)+"m":p>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var p=Math.abs(u);return p>=r?d(u,p,r,"day"):p>=n?d(u,p,n,"hour"):p>=t?d(u,p,t,"minute"):p>=e?d(u,p,e,"second"):u+" ms"}function d(u,p,h,v){var g=p>=h*1.5;return Math.round(u/h)+" "+v+(g?"s":"")}return Lw}function eGe(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=o,n.humanize=QJe(),n.destroy=d,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let p=0;for(let h=0;h<u.length;h++)p=(p<<5)-p+u.charCodeAt(h),p|=0;return n.colors[Math.abs(p)%n.colors.length]}n.selectColor=t;function n(u){let p,h=null,v,g;function k(...C){if(!k.enabled)return;const S=k,I=Number(new Date),L=I-(p||I);S.diff=L,S.prev=p,S.curr=I,p=I,C[0]=n.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let N=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(H,V)=>{if(H==="%%")return"%";N++;const X=n.formatters[V];if(typeof X=="function"){const re=C[N];H=X.call(S,re),C.splice(N,1),N--}return H}),n.formatArgs.call(S,C),(S.log||n.log).apply(S,C)}return k.namespace=u,k.useColors=n.useColors(),k.color=n.selectColor(u),k.extend=r,k.destroy=n.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(v!==n.namespaces&&(v=n.namespaces,g=n.enabled(u)),g),set:C=>{h=C}}),typeof n.init=="function"&&n.init(k),k}function r(u,p){const h=n(this.namespace+(typeof p>"u"?":":p)+u);return h.log=this.log,h}function i(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let p;const h=(typeof u=="string"?u:"").split(/[\s,]+/),v=h.length;for(p=0;p<v;p++)h[p]&&(u=h[p].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")))}function a(){const u=[...n.names.map(s),...n.skips.map(s).map(p=>"-"+p)].join(",");return n.enable(""),u}function o(u){if(u[u.length-1]==="*")return!0;let p,h;for(p=0,h=n.skips.length;p<h;p++)if(n.skips[p].test(u))return!1;for(p=0,h=n.names.length;p<h;p++)if(n.names[p].test(u))return!0;return!1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function d(){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 tGe=eGe;(function(e,t){var n={};t.formatArgs=i,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.destroy=(()=>{let d=!1;return()=>{d||(d=!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(d){if(d[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+d[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;d.splice(1,0,u,"color: inherit");let p=0,h=0;d[0].replace(/%[a-zA-Z%]/g,v=>{v!=="%%"&&(p++,v==="%c"&&(h=p))}),d.splice(h,0,u)}t.log=console.debug||console.log||(()=>{});function a(d){try{d?t.storage.setItem("debug",d):t.storage.removeItem("debug")}catch{}}function o(){let d;try{d=t.storage.getItem("debug")}catch{}return!d&&typeof Kt<"u"&&"env"in Kt&&(d=n.DEBUG),d}function s(){try{return localStorage}catch{}}e.exports=tGe(t);const{formatters:l}=e.exports;l.j=function(d){try{return JSON.stringify(d)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(FR,FR.exports);var y_=FR.exports;const nGe=y_;var rGe=(e,t=!1)=>{const n=nGe(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const iGe=rGe;var aGe=(e,t,n)=>class extends e{constructor(i,a={}){super(i,{transport:n,...a}),this._logger=iGe("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:d})=>{l==="ok"?this.emitter.emit(i,d):this._logger.debug("response error",{topic:i,status:l,data:d})})}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 oGe=dX,{Socket:sGe}=JJe,lGe=aGe;var cGe=lGe(sGe,oGe);const uGe=cGe;var b_={WsClient:uGe};function dGe(e){const t=G.useRef(e);G.useEffect(()=>{t.current=e},[e]),G.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function pGe(e){const t=e||window.location.href;return new URL(t).host}function am(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 Pw={};function fGe({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const a=`${t}/token?${em(r)}`;return Pw[a]||(Pw[a]=async function(){var d,u;const s=await n(a,{headers:am(i)});if((d=s==null?void 0:s.data)!=null&&d.token)return s.data;if((u=s==null?void 0:s.data)!=null&&u.error)throw new Error(s.data.error);const l=O2(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${l}`)}),Pw[a]}const hGe=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=AUe(t);return{token:DUe(n),url:n}}catch(e){return{error:e}}},mX=()=>Sc(globalThis,"blocklet.appPid")||Sc(globalThis,"blocklet.appId")||Sc(globalThis,"env.appId")||"",mGe=()=>(Sc(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(nZ,""),$w=e=>`relay:${mX()}:${e}`,gGe=()=>window.location.protocol==="https:"?"wss:":"ws:",lF=e=>!e||new URL(e).origin===window.location.origin,cF=e=>["succeed","error","timeout","busy"].includes(e);function vGe({action:e,checkFn:t,checkInterval:n,checkTimeout:r,extraParams:i,locale:a,prefix:o,tokenKey:s,encKey:l,onError:d,onSuccess:u,baseUrl:p,autoConnect:h=!0,forceConnected:v=!0,saveConnect:g=!0,useSocket:k=!0,provider:C="wallet"}){const S=ea({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:p,prefix:`${o}/${e}`,extraParams:aF(i,oF),checkFn:t,results:{},action:e,provider:C}),I=Sg[a]||Sg.en,L=mn(()=>hGe(),[]),N=Math.ceil(r/n),q=ea({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:H,decrypt:V}=Cqe(),X=l0(),re=Xg(),le=xt((...E)=>{const y={[l]:H,...S.extraParams,locale:a,forceConnected:v,autoConnect:h&&!X.wallet&&!q.cancelWhenScannedCounter&&["ios","android"].includes($r.get("connected_wallet_os")),provider:S.provider};return re&&(y.visitorId=re),fGe({action:e,prefix:S.prefix,baseUrl:S.baseUrl,checkFn:S.checkFn,extraParams:y})(...E)}),Q=()=>{q.cancelWhenScannedCounter++};G.useEffect(()=>{q.cancelWhenScannedCounter>0&&(i.nw?d(new Error(I.retryForbidden)):D())},[q.cancelWhenScannedCounter]);const B=G.useRef(null),T=G.useRef(null);G.useEffect(()=>(k&&lF(S.baseUrl)&&mX()?(!B.current||B.current.isConnected()===!1||B.current.baseUrl!==S.baseUrl)&&(B.current=new b_.WsClient(`${gGe()}//${pGe(S.baseUrl)}${mGe()}${nZ}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),B.current.baseUrl=S.baseUrl,B.current.onOpen(()=>{q.isSocketAvailable=!0}),B.current.connect()):q.isSocketAvailable&&(q.isSocketAvailable=!1),()=>{B.current&&(B.current.disconnect(),B.current=null)}),[S.baseUrl]);const c={...S.extraParams,locale:a,[s]:S.token||(L==null?void 0:L.token),provider:S.provider},f=()=>!S.token||S.loading||cF(S.status)?null:n,b=async()=>{try{c[s]&&S.status==="created"&&await S.checkFn(`${S.prefix}/timeout?${em(c)}`,{headers:am(S.baseUrl)})}catch{}try{S.token&&T.current&&(await B.current.unsubscribe($w(S.token)),T.current=null)}catch{}},D=xt(async(E=!0)=>{E&&b();try{S.loading=!0,S.token="",S.url="",S.store=null,S.extraParams=aF(i,oF),await kT();const y=await le(),_=y.extra||{};S.loading=!1,S.token=y.token,S.url=y.url,S.status="created",S.error="",S.checkCount=0,S.appInfo=y.appInfo,S.memberAppInfo=y.memberAppInfo,S.connectedDid=_.connectedDid,S.saveConnect=_.saveConnect}catch(y){S.loading=!1,S.status="error",S.error=`${I.generateError}: ${y.message}`}}),R=G.useRef(null);G.useEffect(()=>{R.current={state:S,params:c}}),G.useEffect(()=>()=>{const{state:E,params:y}=R.current;E.status==="created"&&y[s]&&E.checkFn(`${E.prefix}/timeout?${em(y)}`,{headers:am(E.baseUrl)})},[]);const x=async()=>{try{if(L.error)throw L.error;S.loading=!0,S.token=L.token,S.url=L.url,S.inExistingSession=!0;const E=await w();if(E!=null&&E.status&&(E==null?void 0:E.status)!=="created")throw new Error(`${I.invalidSessionStatus} [${E.status}]`)}catch(E){S.status="error",S.error=E.message,d(E,S==null?void 0:S.store,V)}finally{S.loading=!1}};G.useEffect(()=>{if(!S.token&&!S.store&&!S.loading&&!S.error)if(L)x();else{D(!1);return}if(S.status!=="timeout"&&S.checkCount>N){S.status="timeout",b();return}if(S.status==="succeed"&&!q.onSuccessCalled&&(lF(S.baseUrl)&&g&&S.saveConnect&&S.store.did&&$Y({...S.store,appInfo:S.appInfo,memberAppInfo:S.memberAppInfo}),S.store)){const{nextWorkflow:E}=S.store;if(E)try{const y=wUe(E,s);S.nextWorkflow=(y==null?void 0:y.nextWorkflow)||E,Object.assign(S,y),S.store=null,S.error="",S.url="",S.appInfo=null,S.memberAppInfo=null,S.checkCount=0,S.status="scanned",S.results={...S.results,[S.token]:S.store},S.checkFn=Ul({baseURL:y.baseUrl,timeout:8e3}).get,w()}catch(y){console.error(`Invalid nextWorkflow: ${E}`,y),S.status="error",S.error=`Invalid nextWorkflow: ${E}: ${y.message}`}else if(S.nextWorkflow&&(S.nextWorkflow="",S.url=""),typeof u=="function"){const y=Object.values({...S.results,[S.token]:S.store});q.onSuccessCalled=!0;const _=y.length>1?y:y[0],ne=Tl(_);u(ne,V,{sourceAppPid:i==null?void 0:i.sourceAppPid})}}}),G.useEffect(()=>{if(S.token&&q.isSocketAvailable&&B.current){let E=!1;T.current?T.current.token!==S.token&&(B.current.unsubscribe($w(T.current.token)),E=!0):E=!0,E&&(T.current=B.current.subscribe($w(S.token)),T.current.token=S.token,T.current.on("updated",({response:y})=>{let{status:_,error:ne}=y;_==="forbidden"&&(ne=I.forbidden,_="error"),S.status=_,S.mfaCode=y.mfaCode||0,S.store=y,S.error=ne}))}},[S.token,q.isSocketAvailable,B.current]);const w=async(E=!1)=>{var y;if(S.checking||(S.status==="created"&&S.checkCount++,q.isSocketAvailable&&!E))return null;try{S.checking=!0;const _=await S.checkFn(`${S.prefix}/status?${em(c)}`,{headers:am(S.baseUrl)}),{status:ne,error:M,mfaCode:z=0}=_.data;if(S.store=_.data,S.mfaCode=z,S.checking=!1,S.status=ne,ne==="error"&&M){const ie=new Error(M);throw ie.response=_,ie}return _.data}catch(_){const{response:ne}=_;if(ne!=null&&ne.status){c[s]&&S.checkFn(`${S.prefix}/timeout?${em(c)}`,{headers:am(S.baseUrl)});const M=(y=ne==null?void 0:ne.data)!=null&&y.error?ne.data.error:_.message,z=new Error(M);z.code=ne.status,S.status="error",S.checking=!1,S.error=M,d(z,S==null?void 0:S.store,V)}else S.status="error",S.checking=!1,S.error=I.generateError}return null};return MJe(w,f()),dGe(()=>{q.isSocketAvailable&&S.token&&cF(S.status)===!1&&w(!0)}),{state:S,generate:D,cancelWhenScanned:Q}}var T_={};Object.defineProperty(T_,"__esModule",{value:!0});var gX=T_.default=void 0;yGe(G);var sn=Y;function yGe(e){return e&&e.__esModule?e:{default:e}}function uF(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 dF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uF(Object(n),!0).forEach(function(r){bGe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bGe(e,t,n){return t=TGe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TGe(e){var t=kGe(e,"string");return typeof t=="symbol"?t:String(t)}function kGe(e,t){if(typeof e!="object"||e===null)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 k_=function(t){return(0,sn.jsxs)("svg",dF(dF({},t),{},{children:[(0,sn.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,sn.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"url(#paint0_linear)"}),(0,sn.jsx)("path",{d:"M3.52 7.36A2.56 2.56 0 0 1 6.08 4.8h19.84a2.56 2.56 0 0 1 2.56 2.56v12.16a2.56 2.56 0 0 1-2.56 2.56H6.08a2.56 2.56 0 0 1-2.56-2.56V7.36z",fill:"#9FCBFF",filter:"url(#filter0_i)"}),(0,sn.jsx)("path",{d:"M2.56 9.28a2.56 2.56 0 0 1 2.56-2.56h21.76a2.56 2.56 0 0 1 2.56 2.56v13.6a2.56 2.56 0 0 1-2.56 2.56H5.12a2.56 2.56 0 0 1-2.56-2.56V9.28z",fill:"url(#paint1_linear)",filter:"url(#filter1_d)"}),(0,sn.jsx)("path",{d:"M0 22.32l32-6.16V32H0v-9.68z",fill:"url(#paint2_linear)",filter:"url(#filter2_d)"}),(0,sn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.536 9.248h8.288c.408 0 .74.3.74.672v4.64c0 .371-.332.672-.74.672H5.536c-.408 0-.74-.3-.74-.672v-.04a.158.158 0 1 0-.316 0v.04c0 .53.473.96 1.056.96h8.288c.583 0 1.056-.43 1.056-.96V9.92c0-.53-.473-.96-1.056-.96H5.536c-.583 0-1.056.43-1.056.96v.04a.158.158 0 0 0 .317 0v-.04c0-.371.33-.672.739-.672zm-1.023 4.638a.127.127 0 0 0 .087.034h1.267c.472 0 .83-.107 1.076-.322.25-.217.381-.548.397-.993a11.281 11.281 0 0 0 0-.734c-.012-.426-.148-.751-.406-.975-.258-.224-.622-.336-1.09-.336H4.6a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.794-.806c-.099.1-.253.149-.464.149h-.502V11.25h.478c.21 0 .369.051.474.154.108.102.166.26.172.475.006.09.01.208.01.355s-.004.267-.01.36c-.006.221-.059.383-.158.485zm1.63.806a.127.127 0 0 0 .087.034h.64a.116.116 0 0 0 .087-.034.11.11 0 0 0 .038-.086v-3.12a.11.11 0 0 0-.038-.086.116.116 0 0 0-.086-.034h-.641a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.637.034a.127.127 0 0 1-.086-.034.128.128 0 0 1-.033-.086v-3.12c0-.035.01-.064.033-.086a.127.127 0 0 1 .086-.034h1.244c.469 0 .832.112 1.09.336.259.224.394.549.407.974a11.244 11.244 0 0 1 0 .735c-.016.445-.148.776-.397.993-.245.215-.604.322-1.076.322H9.574zm1.244-.691c.21 0 .365-.05.464-.149.099-.102.152-.264.158-.485a5.52 5.52 0 0 0 .01-.36c0-.147-.004-.265-.01-.355-.006-.214-.064-.373-.172-.475-.106-.103-.263-.154-.474-.154h-.478v1.978h.502zm2.468-1.382a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.286-.288.286zm0 1.495a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.287-.288.287z",fill:"#4598FA"})]}),(0,sn.jsxs)("defs",{children:[(0,sn.jsxs)("filter",{id:"filter0_i",x:"3.52",y:"1.8",width:"24.96",height:"20.28",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,sn.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,sn.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,sn.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,sn.jsx)("feOffset",{dy:"-3"}),(0,sn.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,sn.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,sn.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.2 0"}),(0,sn.jsx)("feBlend",{in2:"shape",result:"effect1_innerShadow"})]}),(0,sn.jsxs)("filter",{id:"filter1_d",x:"-1.44",y:"1.72",width:"34.88",height:"26.72",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,sn.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,sn.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,sn.jsx)("feOffset",{dy:"-1"}),(0,sn.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,sn.jsx)("feColorMatrix",{values:"0 0 0 0 0.220767 0 0 0 0 0.470803 0 0 0 0 0.701605 0 0 0 0.18 0"}),(0,sn.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,sn.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,sn.jsxs)("filter",{id:"filter2_d",x:"-5",y:"11.16",width:"42",height:"25.84",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,sn.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,sn.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,sn.jsx)("feOffset",{}),(0,sn.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,sn.jsx)("feColorMatrix",{values:"0 0 0 0 0.14382 0 0 0 0 0.205065 0 0 0 0 0.522634 0 0 0 0.25 0"}),(0,sn.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,sn.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,sn.jsxs)("linearGradient",{id:"paint0_linear",x1:"16",x2:"16",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,sn.jsx)("stop",{stopColor:"#4F9DF6"}),(0,sn.jsx)("stop",{offset:"1",stopColor:"#0A79F8"})]}),(0,sn.jsxs)("linearGradient",{id:"paint1_linear",x1:"16",y1:"6.72",x2:"16",y2:"25.44",gradientUnits:"userSpaceOnUse",children:[(0,sn.jsx)("stop",{stopColor:"#fff"}),(0,sn.jsx)("stop",{offset:"1",stopColor:"#ECEFFF"})]}),(0,sn.jsxs)("linearGradient",{id:"paint2_linear",x1:"16",y1:"19.2",x2:"18.48",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,sn.jsx)("stop",{offset:".007",stopColor:"#77B2F6"}),(0,sn.jsx)("stop",{offset:".055",stopColor:"#4F9DF6"}),(0,sn.jsx)("stop",{offset:"1",stopColor:"#4598FA"})]}),(0,sn.jsx)("clipPath",{id:"clip0",children:(0,sn.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"#fff"})})]})]}))};k_.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};k_.displayName="did-wallet";var SGe=k_;gX=T_.default=SGe;function S_({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i}=zc(),a=r("openInWallet"),o=mn(()=>{if(!e.url)return"";const d=new URL(window.location.href);d.searchParams.set("tokenKey",e.token);const u=new URL(e.url);return u.searchParams.set("callback",encodeURIComponent(d)),u.searchParams.set("callback_delay",1500),u.searchParams.set("locale",t),u.href.replace(/^https?:\/\//,"abt://")},[n,e.token]),s=xt(()=>{Ur(()=>import("./index-KxeBO9YH.js").then(d=>d.i),__vite__mapDeps([])).then(d=>{d.call||(d=d.default),d.call("authAction",{action:"auth",deepLink:o})}).catch(d=>{console.error("load dsbridge error",d)})}),l={};return i||(l.component="a",l.href=o),o0(()=>{o&&s()}),Y.jsxs(Jc,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:zt.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...l,onClick:i?s:sr,children:[Y.jsxs(vt,{sx:{display:"flex",alignItems:"center",gap:1},children:[Y.jsx(gX,{}),Y.jsx(xi,{sx:{fontSize:"16px",fontWeight:"bold"},children:a})]}),Y.jsx(Xn,{icon:IT,fontSize:"1.3rem",color:zt.primaryBase})]})}S_.propTypes={tokenState:be.object.isRequired,locale:be.string,tokenKey:be.string};S_.defaultProps={locale:"en",tokenKey:"_t_"};function vX(){return Y.jsx(vt,{sx:{height:"100%",minWidth:"160px",minHeight:"160px",display:"flex",justifyContent:"center",alignItems:"center"},children:Y.jsx(jg,{sx:{color:zt.primary100}})})}const Tv=["scanned","succeed","error","busy"];function A_({onSuccess:e,onError:t,action:n,prefix:r,checkFn:i,checkInterval:a,checkTimeout:o,locale:s,tokenKey:l,encKey:d,baseUrl:u,autoConnect:p,forceConnected:h,saveConnect:v,useSocket:g,allowWallet:k,provider:C,webWalletUrl:S,onRecreateSession:I,messages:L,enabledConnectTypes:N}){var Z,W,te;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const q=G.useContext(Kf),{lostPassportUrl:H,connectState:V,extraParams:X,staticState:re,changeStatus:le,t:Q,isWalletWebview:B}=zc(),T=l0(),c=mn(()=>{var ge;return C||(X==null?void 0:X.provider)||((ge=q==null?void 0:q.session)==null?void 0:ge.provider)||"wallet"},[X==null?void 0:X.provider,(Z=q==null?void 0:q.session)==null?void 0:Z.provider]);G.useEffect(()=>{R(u)},[u]);const{state:f,generate:b,cancelWhenScanned:D}=vGe({action:n,baseUrl:u,checkFn:i,checkInterval:a,checkTimeout:o,extraParams:X,prefix:r,onError:t,onSuccess:e,locale:s,tokenKey:l,encKey:d,autoConnect:p,forceConnected:h,saveConnect:v,useSocket:g,allowWallet:k,provider:c}),{setBaseUrl:R,oauthConfigList:x,oauthState:w}=B6({defaultStatus:f.status});af(()=>{b()},[V==null?void 0:V.sourceAppPid]);const E=mn(()=>Tv.includes(w.status)||Tv.includes(f.status),[f.status,w.status]);G.useEffect(()=>{Tv.includes(w.status)?le(w.status):Tv.includes(f.status)?le(f.status):le("created")},[le,f.status,w.status]);const y=xt(()=>{I(),w.reset(),f.inExistingSession||b()}),_=xt(()=>{I(),f.inExistingSession||(re.current.cancelCount++,D())}),ne=mn(()=>({confirm:L.confirm,success:L.success,error:f.error||w.error||""}),[L.confirm,L.success,f.error,w.error]),M=mn(()=>k&&N.includes("mobile")&&!B,[k,N,B]),z=LY(S),ie=mn(()=>k&&N.includes("web")&&(z||N2())&&!T.mobile.any,[k,N,(W=T==null?void 0:T.mobile)==null?void 0:W.any]),ce=mn(()=>k&&N.includes("mobile")&&T.mobile.any,[k,N,(te=T==null?void 0:T.mobile)==null?void 0:te.any]),he=mn(()=>{const ge=Eze(["auth0","apple","github","google"],N);return x.filter(fe=>ge.includes(fe.provider))},[x,N]),De=mn(()=>he.length>0&&["login","invite"].includes(f.action),[he]),j=mn(()=>{const ge=M||ie||ce;let fe=null;return De&&(fe=ge?Y.jsxs(Y.Fragment,{children:[Y.jsx(ZI,{light:!0,sx:{color:zt.textMuted,width:{xs:"200px",md:"368px"},maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:zt.lineStep}},children:"OR"}),Y.jsx(Gb,{providerList:he,onSuccess:e,onError:t,tokenState:f,locale:s})]}):Y.jsx(Gb,{providerList:he,onSuccess:e,onError:t,tokenState:f,type:"list",locale:s})),Y.jsxs(Y.Fragment,{children:[Y.jsx(vt,{"data-did-auth-url":f.url,sx:{display:"none"}}),ce&&Y.jsx(S_,{tokenState:f,locale:s,tokenKey:l}),M&&Y.jsx(m_,{tokenState:f,messages:L,locale:s}),ie&&Y.jsx(f_,{tokenState:f,webWalletUrl:S,locale:s}),ge&&H&&Y.jsx(Hz,{href:H,underline:"none",sx:{fontSize:"12px",width:"auto",margin:"auto",display:{xs:"inline-block",md:"none"}},children:Q("lostPassport")}),fe]})},[f.url,H,M,ie,ce]);return mn(()=>f.loading||w.loading,[f.loading,w.loading])?Y.jsx(vX,{}):E?Y.jsxs(Y.Fragment,{children:[Y.jsx(vt,{"data-did-auth-url":f.url,sx:{display:"none"}}),Y.jsx(LT,{status:w.status||f.status,nextWorkflow:f.nextWorkflow,mfaCode:f.mfaCode,onCancel:_,onRetry:y,messages:ne,locale:s,className:"auth-status"})]}):j}A_.propTypes={onError:be.func,onSuccess:be.func.isRequired,action:be.string.isRequired,checkFn:be.func.isRequired,prefix:be.string,checkInterval:be.number,checkTimeout:be.number,locale:be.oneOf(["en","zh",""]),tokenKey:be.string,encKey:be.string,baseUrl:be.string,autoConnect:be.bool,forceConnected:be.oneOfType([be.bool,be.string]),saveConnect:be.bool,useSocket:be.bool,allowWallet:be.bool,provider:be.oneOf(["wallet","auth0",""]),webWalletUrl:be.string,onRecreateSession:be.func,messages:be.object,enabledConnectTypes:be.arrayOf(be.oneOf(["web","mobile","github","apple","google","auth0"]))};A_.defaultProps={prefix:P6,onError:sr,checkInterval:2*1e3,checkTimeout:tZ*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:_Y(),onRecreateSession:sr,messages:{},enabledConnectTypes:["web","mobile","github","apple","google","auth0"]};var Bw=vG,AGe=FJ,DGe=P4,wGe=1/0,EGe=Bw&&1/DGe(new Bw([,-0]))[1]==wGe?function(e){return new Bw(e)}:AGe,CGe=EGe,RGe=_4,xGe=YZ,IGe=ZZ,_Ge=L4,LGe=CGe,PGe=P4,$Ge=200;function BGe(e,t,n){var r=-1,i=xGe,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=IGe;else if(a>=$Ge){var d=t?null:LGe(e);if(d)return PGe(d);o=!1,i=_Ge,l=new RGe}else l=t?[]:s;e:for(;++r<a;){var u=e[r],p=t?t(u):u;if(u=n||u!==0?u:0,o&&p===p){for(var h=l.length;h--;)if(l[h]===p)continue e;t&&l.push(p),s.push(u)}else i(l,p,n)||(l!==s&&l.push(p),s.push(u))}return s}var yX=BGe,NGe=C4,OGe=PT,MGe=r0,FGe=yX,pF=b4,UGe=V2,HGe=MGe(function(e){var t=UGe(e);return pF(t)&&(t=void 0),FGe(NGe(e,1,pF,!0),OGe(t))}),jGe=HGe;const qGe=Nt(jGe);var VGe=KJ,zGe=i0;function JGe(e,t){return e&&VGe(e,t,zGe)}var GGe=JGe,WGe=dd;function KGe(e,t){return function(n,r){if(n==null)return n;if(!WGe(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 YGe=KGe,ZGe=GGe,XGe=YGe,QGe=XGe(ZGe),eWe=QGe,tWe=eWe,nWe=dd;function rWe(e,t){var n=-1,r=nWe(e)?Array(e.length):[];return tWe(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var iWe=rWe;function aWe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var oWe=aWe,fF=Gg;function sWe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=fF(e),o=t!==void 0,s=t===null,l=t===t,d=fF(t);if(!s&&!d&&!a&&e>t||a&&o&&l&&!s&&!d||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!d&&e<t||d&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var lWe=sWe,cWe=lWe;function uWe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=cWe(i[r],a[r]);if(l){if(r>=s)return l;var d=n[r];return l*(d=="desc"?-1:1)}}return e.index-t.index}var dWe=uWe,Nw=_f,pWe=Kg,fWe=PT,hWe=iWe,mWe=oWe,gWe=t0,vWe=dWe,yWe=q2,bWe=Ta;function TWe(e,t,n){t.length?t=Nw(t,function(a){return bWe(a)?function(o){return pWe(o,a.length===1?a[0]:a)}:a}):t=[yWe];var r=-1;t=Nw(t,gWe(fWe));var i=hWe(e,function(a,o,s){var l=Nw(t,function(d){return d(a)});return{criteria:l,index:++r,value:a}});return mWe(i,function(a,o){return vWe(a,o,n)})}var kWe=TWe,SWe=C4,AWe=kWe,DWe=r0,hF=uG,wWe=DWe(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]]),AWe(e,SWe(t,1),[])}),EWe=wWe;const bX=Nt(EWe),CWe=Ln(ji,"/api/user-session");function TX({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/"}={}){const a=Xg(),o=mn(()=>Ul({baseURL:Ln(i,CWe)},{lazy:!0,lazyTime:500}),[i]),s=xt(async()=>{const{data:v}=await o.get("",{params:{visitorId:a,appPid:e}});return v}),l=ea({loaded:!1,loadingId:null}),d=j8e(s,{manual:!r,onFinally(){l.loaded=!0},refreshDeps:[e,i]}),u=async v=>{var k,C,S;const g=z2(v,["userDid","visitorId","passportId"]);try{l.loadingId=v.id;const{data:I}=await o.post("login",{...g,appPid:n});return I}catch(I){const L=I.response?((C=(k=I.response)==null?void 0:k.data)==null?void 0:C.error)||((S=I.response)==null?void 0:S.data):I.message;throw wi.error(L),console.error("Quick login error",I),I}finally{l.loadingId=null}},p=mn(()=>{if(!d.data)return[];const v=new Date().getTime(),g=d.data.filter(C=>t!==null?!0:C.appPid===e),k=bX(g,C=>v-new Date(C.updatedAt).getTime());return qGe(k,C=>[C.userDid].join("_"))},[d.data,t,e]),h=mn(()=>p.data&&p.data.length>0,[p==null?void 0:p.data]);return{loadingId:l.loadingId,userSessions:p,quickLoginEnabled:h,loginUserSession:u,loading:d.loading,loaded:d.loaded,refresh:d.refreshAsync}}const kv="did-connect",mF="quick-connect";function D_({mode:e,hideCloseButton:t,...n}){var le;const r=ea({showTab:kv}),{connectState:i,blocklet:a}=zc(),{extraContent:o,onSuccess:s,action:l,onClose:d,options:u}=n,p=mn(()=>(i==null?void 0:i.sourceAppPid)||yW(),[i==null?void 0:i.sourceAppPid]),{quickLoginEnabled:h,loading:v,userSessions:g,loginUserSession:k,refresh:C}=TX({appPid:p,loginAppPid:a==null?void 0:a.appPid,sourceAppPid:i==null?void 0:i.sourceAppPid,autoFetch:["login"].includes(l)}),S=mn(()=>{var Q;return((Q=n==null?void 0:n.messages)==null?void 0:Q.title)||kHe},[(le=n==null?void 0:n.messages)==null?void 0:le.title]),I=xt(async(...Q)=>{const B=await k(...Q);await s({...B,encrypted:!1},T=>T)});G.useEffect(()=>{(u==null?void 0:u.showQuickConnect)!==!1&&!v&&h&&(r.showTab=mF)},[v,h,u==null?void 0:u.showQuickConnect]);const L=W8e(v,{wait:100}),N=xt(()=>{r.showTab=kv}),q=xt(()=>{r.showTab=mF}),H=mn(()=>r.showTab===kv||!h,[r.showTab,h]),V=mn(()=>{let Q=!0;return(v||L)&&(Q=!1),h||(Q=!1),u.showQuickConnect===!1&&(Q=!1),r.showTab!==kv&&(Q=!1),Q},[h,r.showTab,v,L]),X=mn(()=>Y.jsx(vt,{onClick:d,sx:{fontSize:"1.5rem",cursor:"pointer",width:"1.5rem",height:"1.5rem",textAlign:"center",color:zt.textMuted,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:Y.jsx(vt,{component:"span",sx:{display:"block",fontWeight:"lighter",lineHeight:1,transform:"scale(1.3)"},children:"×"})}),[d]);let re=null;return v||L?re=Y.jsx(vX,{}):H?re=Y.jsx(A_,{...n}):re=Y.jsx(p_,{userSessions:g,onLogin:I,onRetry:C,messages:n.messages,onLoginAnother:N}),Y.jsxs(vt,{sx:{display:"flex",flexDirection:"column",gap:1.5,color:zt.textBase,width:"100%"},children:[e==="dialog"?Y.jsxs(vt,{sx:{pb:2,display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:{xs:"none",md:`1px solid ${zt.lineStep}`}},children:[Y.jsxs(xi,{component:"h3",variant:"h6",sx:{display:"flex",alignItems:"center"},children:[V&&Y.jsx(Bs,{size:"small",disabled:i.status!=="created",onClick:q,disableRipple:!0,sx:{fontSize:"0.75em"},children:Y.jsx(Xn,{icon:W9,color:zt.textMuted})}),S]}),!t&&Y.jsx(vt,{sx:{display:{xs:"none",md:"block"}},children:X})]}):Y.jsxs(xi,{component:"h3",variant:"h4",sx:{pt:{xs:1.5,md:3},pb:{xs:0,md:1.5},fontWeight:"bold",display:"flex",alignItems:"center"},children:[V&&Y.jsx(Bs,{size:"small",onClick:q,disabled:i.status!=="created",disableRipple:!0,sx:{fontSize:"0.75em"},children:Y.jsx(Xn,{icon:W9,color:zt.textMuted})}),S]}),re,Y.jsxs(vt,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",pt:1.5,pb:{xs:1.5,md:0},px:{xs:3,md:0},position:{xs:"fixed",md:"static"},top:0,left:0,right:0,backgroundColor:"white",borderBottom:{xs:`1px solid ${zt.lineStep}`,md:"none"}},children:[Y.jsx(r_,{disableSwitchApp:n.disableSwitchApp}),e==="dialog"&&!t&&Y.jsx(vt,{sx:{display:{xs:"block",md:"none"}},children:X})]}),o?Y.jsx(vt,{children:o}):null]})}D_.propTypes={onSuccess:be.func,onClose:be.func,action:be.string.isRequired,messages:be.object,extraContent:be.any,disableSwitchApp:be.bool,mode:be.oneOf(["fullScreen","dialog","normal"]),options:be.object,hideCloseButton:be.bool};D_.defaultProps={onSuccess:sr,onClose:sr,mode:"normal",extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!1};function w_(e){const{checkFn:t,extraParams:n,blocklet:r,action:i,locale:a,lostPassportUrl:o}=e;if(typeof t!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const[s,l]=G.useState(300),d=G.useRef(null),u=s0(d);return G.useEffect(()=>{u!=null&&u.height&&u.height>s&&l(u.height)},[u==null?void 0:u.height,s]),Y.jsx(vt,{sx:{position:"relative",width:"100%",height:"100%",display:"flex",alignItems:"center",lineHeight:1.2,fontFamily:"Lato",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:Y.jsx(t_,{blocklet:r,action:i,locale:a,extraParams:n,lostPassportUrl:o,children:Y.jsx(vt,{sx:{height:s,overflow:"hidden",transition:"height 0.2s ease"},children:Y.jsx(vt,{ref:d,children:Y.jsx(D_,{...e})})})})})}w_.propTypes={checkFn:be.func.isRequired,extraParams:be.object,blocklet:be.object.isRequired,action:be.string.isRequired,locale:be.string,lostPassportUrl:be.string};w_.defaultProps={extraParams:{},locale:"en",lostPassportUrl:void 0};const RWe=Aqe(sqe(Eqe(w_))),xWe=G.forwardRef((e,t)=>{const{api:n}=G.useContext(Kf),r={containerEl:null,popup:!0,checkFn:(n==null?void 0:n.get)||sr,onSuccess:()=>{setTimeout(()=>{d()},2e3)},messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},i=ea({show:!1,...Tl(r)}),[a,o]=G.useState({}),s=xt(p=>{const{containerEl:h,checkFn:v,popup:g,onSuccess:k,messages:C,...S}=Tl(p);typeof v=="function"&&(i.checkFn=v),typeof k=="function"&&(i.onSuccess=(...I)=>{k(...I),setTimeout(()=>{d()},2e3)}),g!==void 0&&(i.popup=g),C!==void 0&&(i.messages=C),h!==void 0&&(i.containerEl=h),o(S),i.show=!0}),l=xt(()=>{const p=Tl(r);Object.keys(p).forEach(h=>{i[h]=p[h]})}),d=xt(()=>{i.show=!1,l()});G.useImperativeHandle(t,()=>({open:s,close:d}),[s,d]);const u=Y.jsx(RWe,{open:!0,popup:i.popup,messages:i.messages,onClose:d,onSuccess:i.onSuccess,checkFn:i.checkFn,...a});return i.containerEl?Lg.createPortal(u,i.containerEl):i.show&&u});function IWe(){const e=G.useRef(null),t=xt((...o)=>{var s;(s=e.current)==null||s.open(...o)}),n=xt(async(o={},{baseUrl:s,locale:l="en",blocklet:d=globalThis==null?void 0:globalThis.blocklet}={})=>{var C;if(pc(s)){const S=g0(),I=Gf();s=S?I.appUrl:window.location.origin}const{onSuccess:u,onClose:p,onError:h,...v}=o;if(!((C=v==null?void 0:v.extraParams)!=null&&C.provider))throw Eu(h)&&h("Must have extraParams.provider"),new Error("Must have extraParams.provider");v!=null&&v.prefix||(v.prefix=window.location.origin+Ln(d==null?void 0:d.prefix,P6));const g=new URLSearchParams;g.set("params",btoa(encodeURIComponent(JSON.stringify(v)))),g.set("appPid",d==null?void 0:d.appPid),g.set("locale",l);const k=ije(Ln(s||"/",ji,`/connect?${g.toString()}`));try{const S=await aje({popup:k});return Eu(u)&&u({...S,encrypted:!1}),{...S,encrypted:!1}}catch(S){throw S.message==="Popup closed"?Eu(p)&&p():Eu(h)&&h(S),S}}),r=xt((...o)=>{var s;(s=e.current)==null||s.close(...o)}),i=mn(()=>Y.jsx(xWe,{ref:e})),a=mn(()=>({open:t,close:r,openPopup:n}));return{connectHolder:i,connectApi:a}}const Qr={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")},_We={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:"Bind DID Wallet",scan:"Scan following qrcode with DID Wallet to bind wallet",confirm:"Select passport in your DID Wallet",success:"Passport and session updated"},zh:{title:"绑定 DID 钱包",scan:"请使用 DID 钱包扫码下面的二维码以绑定 DID 钱包",confirm:"在 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:"找回通行证"}}};var UR={exports:{}};const LWe="2.0.0",kX=256,PWe=Number.MAX_SAFE_INTEGER||9007199254740991,$We=16,BWe=kX-6,NWe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var $T={MAX_LENGTH:kX,MAX_SAFE_COMPONENT_LENGTH:$We,MAX_SAFE_BUILD_LENGTH:BWe,MAX_SAFE_INTEGER:PWe,RELEASE_TYPES:NWe,SEMVER_SPEC_VERSION:LWe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Ow={};const OWe=typeof Kt=="object"&&Ow&&Ow.NODE_DEBUG&&/\bsemver\b/i.test(Ow.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var BT=OWe;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=$T,a=BT;t=e.exports={};const o=t.re=[],s=t.safeRe=[],l=t.src=[],d=t.t={};let u=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[p,r]],v=k=>{for(const[C,S]of h)k=k.split(`${C}*`).join(`${C}{0,${S}}`).split(`${C}+`).join(`${C}{1,${S}}`);return k},g=(k,C,S)=>{const I=v(C),L=u++;a(k,L,C),d[k]=L,l[L]=C,o[L]=new RegExp(C,S?"g":void 0),s[L]=new RegExp(I,S?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),g("MAINVERSION",`(${l[d.NUMERICIDENTIFIER]})\\.(${l[d.NUMERICIDENTIFIER]})\\.(${l[d.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${l[d.NUMERICIDENTIFIERLOOSE]})\\.(${l[d.NUMERICIDENTIFIERLOOSE]})\\.(${l[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${l[d.NUMERICIDENTIFIER]}|${l[d.NONNUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${l[d.NUMERICIDENTIFIERLOOSE]}|${l[d.NONNUMERICIDENTIFIER]})`),g("PRERELEASE",`(?:-(${l[d.PRERELEASEIDENTIFIER]}(?:\\.${l[d.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${l[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[d.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${p}+`),g("BUILD",`(?:\\+(${l[d.BUILDIDENTIFIER]}(?:\\.${l[d.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${l[d.MAINVERSION]}${l[d.PRERELEASE]}?${l[d.BUILD]}?`),g("FULL",`^${l[d.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${l[d.MAINVERSIONLOOSE]}${l[d.PRERELEASELOOSE]}?${l[d.BUILD]}?`),g("LOOSE",`^${l[d.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${l[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${l[d.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${l[d.XRANGEIDENTIFIER]})(?:\\.(${l[d.XRANGEIDENTIFIER]})(?:\\.(${l[d.XRANGEIDENTIFIER]})(?:${l[d.PRERELEASE]})?${l[d.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${l[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})(?:${l[d.PRERELEASELOOSE]})?${l[d.BUILD]}?)?)?`),g("XRANGE",`^${l[d.GTLT]}\\s*${l[d.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${l[d.GTLT]}\\s*${l[d.XRANGEPLAINLOOSE]}$`),g("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),g("COERCERTL",l[d.COERCE],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${l[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${l[d.LONETILDE]}${l[d.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${l[d.LONETILDE]}${l[d.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${l[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${l[d.LONECARET]}${l[d.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${l[d.LONECARET]}${l[d.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${l[d.GTLT]}\\s*(${l[d.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]}|${l[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${l[d.XRANGEPLAIN]})\\s+-\\s+(${l[d.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${l[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[d.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(UR,UR.exports);var b0=UR.exports;const MWe=Object.freeze({loose:!0}),FWe=Object.freeze({}),UWe=e=>e?typeof e!="object"?MWe:e:FWe;var E_=UWe;const gF=/^[0-9]+$/,SX=(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},HWe=(e,t)=>SX(t,e);var AX={compareIdentifiers:SX,rcompareIdentifiers:HWe};const Sv=BT,{MAX_LENGTH:vF,MAX_SAFE_INTEGER:Av}=$T,{safeRe:yF,t:bF}=b0,jWe=E_,{compareIdentifiers:Yd}=AX;let qWe=class ms{constructor(t,n){if(n=jWe(n),t instanceof ms){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>vF)throw new TypeError(`version is longer than ${vF} characters`);Sv("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?yF[bF.LOOSE]:yF[bF.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>Av||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Av||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Av||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<Av)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(Sv("SemVer.compare",this.version,this.options,t),!(t instanceof ms)){if(typeof t=="string"&&t===this.version)return 0;t=new ms(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof ms||(t=new ms(t,this.options)),Yd(this.major,t.major)||Yd(this.minor,t.minor)||Yd(this.patch,t.patch)}comparePre(t){if(t instanceof ms||(t=new ms(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(Sv("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 Yd(r,i)}while(++n)}compareBuild(t){t instanceof ms||(t=new ms(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(Sv("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 Yd(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]),Yd(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 ra=qWe;const TF=ra,VWe=(e,t,n=!1)=>{if(e instanceof TF)return e;try{return new TF(e,t)}catch(r){if(!n)return null;throw r}};var Yf=VWe;const zWe=Yf,JWe=(e,t)=>{const n=zWe(e,t);return n?n.version:null};var GWe=JWe;const WWe=Yf,KWe=(e,t)=>{const n=WWe(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var YWe=KWe;const kF=ra,ZWe=(e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new kF(e instanceof kF?e.version:e,n).inc(t,r,i).version}catch{return null}};var XWe=ZWe;const SF=Yf,QWe=(e,t)=>{const n=SF(e,null,!0),r=SF(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 u=l?"pre":"";return n.major!==r.major?u+"major":n.minor!==r.minor?u+"minor":n.patch!==r.patch?u+"patch":"prerelease"};var eKe=QWe;const tKe=ra,nKe=(e,t)=>new tKe(e,t).major;var rKe=nKe;const iKe=ra,aKe=(e,t)=>new iKe(e,t).minor;var oKe=aKe;const sKe=ra,lKe=(e,t)=>new sKe(e,t).patch;var cKe=lKe;const uKe=Yf,dKe=(e,t)=>{const n=uKe(e,t);return n&&n.prerelease.length?n.prerelease:null};var pKe=dKe;const AF=ra,fKe=(e,t,n)=>new AF(e,n).compare(new AF(t,n));var ss=fKe;const hKe=ss,mKe=(e,t,n)=>hKe(t,e,n);var gKe=mKe;const vKe=ss,yKe=(e,t)=>vKe(e,t,!0);var bKe=yKe;const DF=ra,TKe=(e,t,n)=>{const r=new DF(e,n),i=new DF(t,n);return r.compare(i)||r.compareBuild(i)};var C_=TKe;const kKe=C_,SKe=(e,t)=>e.sort((n,r)=>kKe(n,r,t));var AKe=SKe;const DKe=C_,wKe=(e,t)=>e.sort((n,r)=>DKe(r,n,t));var EKe=wKe;const CKe=ss,RKe=(e,t,n)=>CKe(e,t,n)>0;var NT=RKe;const xKe=ss,IKe=(e,t,n)=>xKe(e,t,n)<0;var R_=IKe;const _Ke=ss,LKe=(e,t,n)=>_Ke(e,t,n)===0;var DX=LKe;const PKe=ss,$Ke=(e,t,n)=>PKe(e,t,n)!==0;var wX=$Ke;const BKe=ss,NKe=(e,t,n)=>BKe(e,t,n)>=0;var x_=NKe;const OKe=ss,MKe=(e,t,n)=>OKe(e,t,n)<=0;var I_=MKe;const FKe=DX,UKe=wX,HKe=NT,jKe=x_,qKe=R_,VKe=I_,zKe=(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 FKe(e,n,r);case"!=":return UKe(e,n,r);case">":return HKe(e,n,r);case">=":return jKe(e,n,r);case"<":return qKe(e,n,r);case"<=":return VKe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var EX=zKe;const JKe=ra,GKe=Yf,{safeRe:Dv,t:wv}=b0,WKe=(e,t)=>{if(e instanceof JKe)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(Dv[wv.COERCE]);else{let r;for(;(r=Dv[wv.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),Dv[wv.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;Dv[wv.COERCERTL].lastIndex=-1}return n===null?null:GKe(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var KKe=WKe,Mw,wF;function YKe(){return wF||(wF=1,Mw=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),Mw}var ZKe=jn;jn.Node=td;jn.create=jn;function jn(e){var t=this;if(t instanceof jn||(t=new jn),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}jn.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};jn.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++}};jn.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++}};jn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)QKe(this,arguments[e]);return this.length};jn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)eYe(this,arguments[e]);return this.length};jn.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}};jn.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}};jn.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};jn.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};jn.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};jn.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};jn.prototype.map=function(e,t){t=t||this;for(var n=new jn,r=this.head;r!==null;)n.push(e.call(t,r.value,this)),r=r.next;return n};jn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new jn,r=this.tail;r!==null;)n.push(e.call(t,r.value,this)),r=r.prev;return n};jn.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};jn.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};jn.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};jn.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};jn.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 jn;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};jn.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 jn;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};jn.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=XKe(this,i,n[r]);return a};jn.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 XKe(e,t,n){var r=t===e.head?new td(n,null,t,e):new td(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function QKe(e,t){e.tail=new td(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function eYe(e,t){e.head=new td(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function td(e,t,n,r){if(!(this instanceof td))return new td(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{YKe()(jn)}catch{}const tYe=ZKe,yu=Symbol("max"),cl=Symbol("length"),Zd=Symbol("lengthCalculator"),Lm=Symbol("allowStale"),Iu=Symbol("maxAge"),sl=Symbol("dispose"),EF=Symbol("noDisposeOnSet"),li=Symbol("lruList"),Jo=Symbol("cache"),CX=Symbol("updateAgeOnGet"),Fw=()=>1;class nYe{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[yu]=t.max||1/0;const n=t.length||Fw;if(this[Zd]=typeof n!="function"?Fw:n,this[Lm]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Iu]=t.maxAge||0,this[sl]=t.dispose,this[EF]=t.noDisposeOnSet||!1,this[CX]=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[yu]=t||1/0,Vh(this)}get max(){return this[yu]}set allowStale(t){this[Lm]=!!t}get allowStale(){return this[Lm]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Iu]=t,Vh(this)}get maxAge(){return this[Iu]}set lengthCalculator(t){typeof t!="function"&&(t=Fw),t!==this[Zd]&&(this[Zd]=t,this[cl]=0,this[li].forEach(n=>{n.length=this[Zd](n.value,n.key),this[cl]+=n.length})),Vh(this)}get lengthCalculator(){return this[Zd]}get length(){return this[cl]}get itemCount(){return this[li].length}rforEach(t,n){n=n||this;for(let r=this[li].tail;r!==null;){const i=r.prev;CF(this,t,r,n),r=i}}forEach(t,n){n=n||this;for(let r=this[li].head;r!==null;){const i=r.next;CF(this,t,r,n),r=i}}keys(){return this[li].toArray().map(t=>t.key)}values(){return this[li].toArray().map(t=>t.value)}reset(){this[sl]&&this[li]&&this[li].length&&this[li].forEach(t=>this[sl](t.key,t.value)),this[Jo]=new Map,this[li]=new tYe,this[cl]=0}dump(){return this[li].map(t=>Kb(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[li]}set(t,n,r){if(r=r||this[Iu],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const i=r?Date.now():0,a=this[Zd](n,t);if(this[Jo].has(t)){if(a>this[yu])return Fp(this,this[Jo].get(t)),!1;const l=this[Jo].get(t).value;return this[sl]&&(this[EF]||this[sl](t,l.value)),l.now=i,l.maxAge=r,l.value=n,this[cl]+=a-l.length,l.length=a,this.get(t),Vh(this),!0}const o=new rYe(t,n,a,i,r);return o.length>this[yu]?(this[sl]&&this[sl](t,n),!1):(this[cl]+=o.length,this[li].unshift(o),this[Jo].set(t,this[li].head),Vh(this),!0)}has(t){if(!this[Jo].has(t))return!1;const n=this[Jo].get(t).value;return!Kb(this,n)}get(t){return Uw(this,t,!0)}peek(t){return Uw(this,t,!1)}pop(){const t=this[li].tail;return t?(Fp(this,t),t.value):null}del(t){Fp(this,this[Jo].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[Jo].forEach((t,n)=>Uw(this,n,!1))}}const Uw=(e,t,n)=>{const r=e[Jo].get(t);if(r){const i=r.value;if(Kb(e,i)){if(Fp(e,r),!e[Lm])return}else n&&(e[CX]&&(r.value.now=Date.now()),e[li].unshiftNode(r));return i.value}},Kb=(e,t)=>{if(!t||!t.maxAge&&!e[Iu])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Iu]&&n>e[Iu]},Vh=e=>{if(e[cl]>e[yu])for(let t=e[li].tail;e[cl]>e[yu]&&t!==null;){const n=t.prev;Fp(e,t),t=n}},Fp=(e,t)=>{if(t){const n=t.value;e[sl]&&e[sl](n.key,n.value),e[cl]-=n.length,e[Jo].delete(n.key),e[li].removeNode(t)}};class rYe{constructor(t,n,r,i,a){this.key=t,this.value=n,this.length=r,this.now=i,this.maxAge=a||0}}const CF=(e,t,n,r)=>{let i=n.value;Kb(e,i)&&(Fp(e,n),e[Lm]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var iYe=nYe,Hw,RF;function ls(){if(RF)return Hw;RF=1;class e{constructor(c,f){if(f=r(f),c instanceof e)return c.loose===!!f.loose&&c.includePrerelease===!!f.includePrerelease?c:new e(c.raw,f);if(c instanceof i)return this.raw=c.value,this.set=[[c]],this.format(),this;if(this.options=f,this.loose=!!f.loose,this.includePrerelease=!!f.includePrerelease,this.raw=c.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(b=>this.parseRange(b.trim())).filter(b=>b.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const b=this.set[0];if(this.set=this.set.filter(D=>!g(D[0])),this.set.length===0)this.set=[b];else if(this.set.length>1){for(const D of this.set)if(D.length===1&&k(D[0])){this.set=[D];break}}}this.format()}format(){return this.range=this.set.map(c=>c.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(c){const b=((this.options.includePrerelease&&h)|(this.options.loose&&v))+":"+c,D=n.get(b);if(D)return D;const R=this.options.loose,x=R?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];c=c.replace(x,Q(this.options.includePrerelease)),a("hyphen replace",c),c=c.replace(s[l.COMPARATORTRIM],d),a("comparator trim",c),c=c.replace(s[l.TILDETRIM],u),a("tilde trim",c),c=c.replace(s[l.CARETTRIM],p),a("caret trim",c);let w=c.split(" ").map(ne=>S(ne,this.options)).join(" ").split(/\s+/).map(ne=>le(ne,this.options));R&&(w=w.filter(ne=>(a("loose invalid filter",ne,this.options),!!ne.match(s[l.COMPARATORLOOSE])))),a("range list",w);const E=new Map,y=w.map(ne=>new i(ne,this.options));for(const ne of y){if(g(ne))return[ne];E.set(ne.value,ne)}E.size>1&&E.has("")&&E.delete("");const _=[...E.values()];return n.set(b,_),_}intersects(c,f){if(!(c instanceof e))throw new TypeError("a Range is required");return this.set.some(b=>C(b,f)&&c.set.some(D=>C(D,f)&&b.every(R=>D.every(x=>R.intersects(x,f)))))}test(c){if(!c)return!1;if(typeof c=="string")try{c=new o(c,this.options)}catch{return!1}for(let f=0;f<this.set.length;f++)if(B(this.set[f],c,this.options))return!0;return!1}}Hw=e;const t=iYe,n=new t({max:1e3}),r=E_,i=OT(),a=BT,o=ra,{safeRe:s,t:l,comparatorTrimReplace:d,tildeTrimReplace:u,caretTrimReplace:p}=b0,{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:v}=$T,g=T=>T.value==="<0.0.0-0",k=T=>T.value==="",C=(T,c)=>{let f=!0;const b=T.slice();let D=b.pop();for(;f&&b.length;)f=b.every(R=>D.intersects(R,c)),D=b.pop();return f},S=(T,c)=>(a("comp",T,c),T=q(T,c),a("caret",T),T=L(T,c),a("tildes",T),T=V(T,c),a("xrange",T),T=re(T,c),a("stars",T),T),I=T=>!T||T.toLowerCase()==="x"||T==="*",L=(T,c)=>T.trim().split(/\s+/).map(f=>N(f,c)).join(" "),N=(T,c)=>{const f=c.loose?s[l.TILDELOOSE]:s[l.TILDE];return T.replace(f,(b,D,R,x,w)=>{a("tilde",T,b,D,R,x,w);let E;return I(D)?E="":I(R)?E=`>=${D}.0.0 <${+D+1}.0.0-0`:I(x)?E=`>=${D}.${R}.0 <${D}.${+R+1}.0-0`:w?(a("replaceTilde pr",w),E=`>=${D}.${R}.${x}-${w} <${D}.${+R+1}.0-0`):E=`>=${D}.${R}.${x} <${D}.${+R+1}.0-0`,a("tilde return",E),E})},q=(T,c)=>T.trim().split(/\s+/).map(f=>H(f,c)).join(" "),H=(T,c)=>{a("caret",T,c);const f=c.loose?s[l.CARETLOOSE]:s[l.CARET],b=c.includePrerelease?"-0":"";return T.replace(f,(D,R,x,w,E)=>{a("caret",T,D,R,x,w,E);let y;return I(R)?y="":I(x)?y=`>=${R}.0.0${b} <${+R+1}.0.0-0`:I(w)?R==="0"?y=`>=${R}.${x}.0${b} <${R}.${+x+1}.0-0`:y=`>=${R}.${x}.0${b} <${+R+1}.0.0-0`:E?(a("replaceCaret pr",E),R==="0"?x==="0"?y=`>=${R}.${x}.${w}-${E} <${R}.${x}.${+w+1}-0`:y=`>=${R}.${x}.${w}-${E} <${R}.${+x+1}.0-0`:y=`>=${R}.${x}.${w}-${E} <${+R+1}.0.0-0`):(a("no pr"),R==="0"?x==="0"?y=`>=${R}.${x}.${w}${b} <${R}.${x}.${+w+1}-0`:y=`>=${R}.${x}.${w}${b} <${R}.${+x+1}.0-0`:y=`>=${R}.${x}.${w} <${+R+1}.0.0-0`),a("caret return",y),y})},V=(T,c)=>(a("replaceXRanges",T,c),T.split(/\s+/).map(f=>X(f,c)).join(" ")),X=(T,c)=>{T=T.trim();const f=c.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return T.replace(f,(b,D,R,x,w,E)=>{a("xRange",T,b,D,R,x,w,E);const y=I(R),_=y||I(x),ne=_||I(w),M=ne;return D==="="&&M&&(D=""),E=c.includePrerelease?"-0":"",y?D===">"||D==="<"?b="<0.0.0-0":b="*":D&&M?(_&&(x=0),w=0,D===">"?(D=">=",_?(R=+R+1,x=0,w=0):(x=+x+1,w=0)):D==="<="&&(D="<",_?R=+R+1:x=+x+1),D==="<"&&(E="-0"),b=`${D+R}.${x}.${w}${E}`):_?b=`>=${R}.0.0${E} <${+R+1}.0.0-0`:ne&&(b=`>=${R}.${x}.0${E} <${R}.${+x+1}.0-0`),a("xRange return",b),b})},re=(T,c)=>(a("replaceStars",T,c),T.trim().replace(s[l.STAR],"")),le=(T,c)=>(a("replaceGTE0",T,c),T.trim().replace(s[c.includePrerelease?l.GTE0PRE:l.GTE0],"")),Q=T=>(c,f,b,D,R,x,w,E,y,_,ne,M,z)=>(I(b)?f="":I(D)?f=`>=${b}.0.0${T?"-0":""}`:I(R)?f=`>=${b}.${D}.0${T?"-0":""}`:x?f=`>=${f}`:f=`>=${f}${T?"-0":""}`,I(y)?E="":I(_)?E=`<${+y+1}.0.0-0`:I(ne)?E=`<${y}.${+_+1}.0-0`:M?E=`<=${y}.${_}.${ne}-${M}`:T?E=`<${y}.${_}.${+ne+1}-0`:E=`<=${E}`,`${f} ${E}`.trim()),B=(T,c,f)=>{for(let b=0;b<T.length;b++)if(!T[b].test(c))return!1;if(c.prerelease.length&&!f.includePrerelease){for(let b=0;b<T.length;b++)if(a(T[b].semver),T[b].semver!==i.ANY&&T[b].semver.prerelease.length>0){const D=T[b].semver;if(D.major===c.major&&D.minor===c.minor&&D.patch===c.patch)return!0}return!1}return!0};return Hw}var jw,xF;function OT(){if(xF)return jw;xF=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(u,p){if(p=n(p),u instanceof t){if(u.loose===!!p.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),o("comparator",u,p),this.options=p,this.loose=!!p.loose,this.parse(u),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(u){const p=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],h=u.match(p);if(!h)throw new TypeError(`Invalid comparator: ${u}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new s(h[2],this.options.loose):this.semver=e}toString(){return this.value}test(u){if(o("Comparator.test",u,this.options.loose),this.semver===e||u===e)return!0;if(typeof u=="string")try{u=new s(u,this.options)}catch{return!1}return a(u,this.operator,this.semver,this.options)}intersects(u,p){if(!(u instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(u.value,p).test(this.value):u.operator===""?u.value===""?!0:new l(this.value,p).test(u.semver):(p=n(p),p.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!p.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||a(this.semver,"<",u.semver,p)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||a(this.semver,">",u.semver,p)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}jw=t;const n=E_,{safeRe:r,t:i}=b0,a=EX,o=BT,s=ra,l=ls();return jw}const aYe=ls(),oYe=(e,t,n)=>{try{t=new aYe(t,n)}catch{return!1}return t.test(e)};var MT=oYe;const sYe=ls(),lYe=(e,t)=>new sYe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var cYe=lYe;const uYe=ra,dYe=ls(),pYe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new dYe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===-1)&&(r=o,i=new uYe(r,n))}),r};var fYe=pYe;const hYe=ra,mYe=ls(),gYe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new mYe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===1)&&(r=o,i=new hYe(r,n))}),r};var vYe=gYe;const qw=ra,yYe=ls(),IF=NT,bYe=(e,t)=>{e=new yYe(e,t);let n=new qw("0.0.0");if(e.test(n)||(n=new qw("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 qw(o.semver.version);switch(o.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!a||IF(s,a))&&(a=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),a&&(!n||IF(n,a))&&(n=a)}return n&&e.test(n)?n:null};var TYe=bYe;const kYe=ls(),SYe=(e,t)=>{try{return new kYe(e,t).range||"*"}catch{return null}};var AYe=SYe;const DYe=ra,RX=OT(),{ANY:wYe}=RX,EYe=ls(),CYe=MT,_F=NT,LF=R_,RYe=I_,xYe=x_,IYe=(e,t,n,r)=>{e=new DYe(e,r),t=new EYe(t,r);let i,a,o,s,l;switch(n){case">":i=_F,a=RYe,o=LF,s=">",l=">=";break;case"<":i=LF,a=xYe,o=_F,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(CYe(e,t,r))return!1;for(let d=0;d<t.set.length;++d){const u=t.set[d];let p=null,h=null;if(u.forEach(v=>{v.semver===wYe&&(v=new RX(">=0.0.0")),p=p||v,h=h||v,i(v.semver,p.semver,r)?p=v:o(v.semver,h.semver,r)&&(h=v)}),p.operator===s||p.operator===l||(!h.operator||h.operator===s)&&a(e,h.semver))return!1;if(h.operator===l&&o(e,h.semver))return!1}return!0};var __=IYe;const _Ye=__,LYe=(e,t,n)=>_Ye(e,t,">",n);var PYe=LYe;const $Ye=__,BYe=(e,t,n)=>$Ye(e,t,"<",n);var NYe=BYe;const PF=ls(),OYe=(e,t,n)=>(e=new PF(e,n),t=new PF(t,n),e.intersects(t,n));var MYe=OYe;const FYe=MT,UYe=ss;var HYe=(e,t,n)=>{const r=[];let i=null,a=null;const o=e.sort((u,p)=>UYe(u,p,n));for(const u of o)FYe(u,t,n)?(a=u,i||(i=u)):(a&&r.push([i,a]),a=null,i=null);i&&r.push([i,null]);const s=[];for(const[u,p]of r)u===p?s.push(u):!p&&u===o[0]?s.push("*"):p?u===o[0]?s.push(`<=${p}`):s.push(`${u} - ${p}`):s.push(`>=${u}`);const l=s.join(" || "),d=typeof t.raw=="string"?t.raw:String(t);return l.length<d.length?l:t};const $F=ls(),L_=OT(),{ANY:Vw}=L_,zh=MT,P_=ss,jYe=(e,t,n={})=>{if(e===t)return!0;e=new $F(e,n),t=new $F(t,n);let r=!1;e:for(const i of e.set){for(const a of t.set){const o=VYe(i,a,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},qYe=[new L_(">=0.0.0-0")],BF=[new L_(">=0.0.0")],VYe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Vw){if(t.length===1&&t[0].semver===Vw)return!0;n.includePrerelease?e=qYe:e=BF}if(t.length===1&&t[0].semver===Vw){if(n.includePrerelease)return!0;t=BF}const r=new Set;let i,a;for(const v of e)v.operator===">"||v.operator===">="?i=NF(i,v,n):v.operator==="<"||v.operator==="<="?a=OF(a,v,n):r.add(v.semver);if(r.size>1)return null;let o;if(i&&a){if(o=P_(i.semver,a.semver,n),o>0)return null;if(o===0&&(i.operator!==">="||a.operator!=="<="))return null}for(const v of r){if(i&&!zh(v,String(i),n)||a&&!zh(v,String(a),n))return null;for(const g of t)if(!zh(v,String(g),n))return!1;return!0}let s,l,d,u,p=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1,h=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1;p&&p.prerelease.length===1&&a.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(const v of t){if(u=u||v.operator===">"||v.operator===">=",d=d||v.operator==="<"||v.operator==="<=",i){if(h&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===h.major&&v.semver.minor===h.minor&&v.semver.patch===h.patch&&(h=!1),v.operator===">"||v.operator===">="){if(s=NF(i,v,n),s===v&&s!==i)return!1}else if(i.operator===">="&&!zh(i.semver,String(v),n))return!1}if(a){if(p&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===p.major&&v.semver.minor===p.minor&&v.semver.patch===p.patch&&(p=!1),v.operator==="<"||v.operator==="<="){if(l=OF(a,v,n),l===v&&l!==a)return!1}else if(a.operator==="<="&&!zh(a.semver,String(v),n))return!1}if(!v.operator&&(a||i)&&o!==0)return!1}return!(i&&d&&!a&&o!==0||a&&u&&!i&&o!==0||h||p)},NF=(e,t,n)=>{if(!e)return t;const r=P_(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},OF=(e,t,n)=>{if(!e)return t;const r=P_(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var zYe=jYe;const zw=b0,MF=$T,JYe=ra,FF=AX,GYe=Yf,WYe=GWe,KYe=YWe,YYe=XWe,ZYe=eKe,XYe=rKe,QYe=oKe,eZe=cKe,tZe=pKe,nZe=ss,rZe=gKe,iZe=bKe,aZe=C_,oZe=AKe,sZe=EKe,lZe=NT,cZe=R_,uZe=DX,dZe=wX,pZe=x_,fZe=I_,hZe=EX,mZe=KKe,gZe=OT(),vZe=ls(),yZe=MT,bZe=cYe,TZe=fYe,kZe=vYe,SZe=TYe,AZe=AYe,DZe=__,wZe=PYe,EZe=NYe,CZe=MYe,RZe=HYe,xZe=zYe;var xX={parse:GYe,valid:WYe,clean:KYe,inc:YYe,diff:ZYe,major:XYe,minor:QYe,patch:eZe,prerelease:tZe,compare:nZe,rcompare:rZe,compareLoose:iZe,compareBuild:aZe,sort:oZe,rsort:sZe,gt:lZe,lt:cZe,eq:uZe,neq:dZe,gte:pZe,lte:fZe,cmp:hZe,coerce:mZe,Comparator:gZe,Range:vZe,satisfies:yZe,toComparators:bZe,maxSatisfying:TZe,minSatisfying:kZe,minVersion:SZe,validRange:AZe,outside:DZe,gtr:wZe,ltr:EZe,intersects:CZe,simplifyRange:RZe,subset:xZe,SemVer:JYe,re:zw.re,src:zw.src,tokens:zw.t,SEMVER_SPEC_VERSION:MF.SEMVER_SPEC_VERSION,RELEASE_TYPES:MF.RELEASE_TYPES,compareIdentifiers:FF.compareIdentifiers,rcompareIdentifiers:FF.rcompareIdentifiers};const UF=Nt(xX);async function IX(...e){return new Promise((t,n)=>{Ur(()=>import("./index-KxeBO9YH.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 IZe=[`${ji}/connect`,`${ji}/login`,`${ji}/invite`,`${ji}/issue-passport`];async function _Ze(){const e=(window==null?void 0:window.blocklet)||{},t=window.location.pathname,{componentId:n,CHAIN_TYPE:r="arcblock",appPid:i}=e;if(IZe.includes(t))return null;const a=sZ();try{const o=`${window.location.origin}${ji}/api/user/loginByWallet`;return await IX("arcLogin",{target:o,chainType:r,appPid:i,componentId:n,apps:a.map(l=>{let d=l==null?void 0:l.appLogo;return O2(d)||(d=Ln(l.appUrl,d)),{appName:l.appName,appPid:l.appPid,appUrl:l.appUrl,appLogo:d,sourceAppPid:l.sourceAppPid}})})}catch(o){return console.error(o),null}}async function LZe(){return await IX("arcGetVisitorId")}function PZe({platform:e,version:t}={}){return!!(e==="ios"&&t&&UF.gte(t,"4.15.6")||e==="android"&&t&&UF.gte(t,"4.15.1"))}const{Provider:$Ze,Consumer:HF}=Kf,jF={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"};function BZe(e=bHe,t="ls",n={},r={}){var d;let i="/";(d=globalThis==null?void 0:globalThis.blocklet)!=null&&d.prefix&&(i=globalThis.blocklet.prefix),typeof r=="boolean"&&(r={appendAuthServicePrefix:r,extraParams:{}}),F7e(r,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:THe});const a=RN(e,t,n),o=RN(r.refreshTokenStorageKey,"ls");function s(u){var ye,Oe;const{connectApi:p,connectHolder:h}=IWe(),v=l0(),g=ea({action:u.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:"",get locale(){return u.locale||k.currentLocale||OY()}}),k=ea({extraParams:{},options:{},currentLocale:u.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof u.autoConnect=="boolean"?u.autoConnect:!!u.autoLogin},get prefix(){return r.appendAuthServicePrefix||u.appendAuthServicePrefix?Ln(ji,u.prefix):u.prefix}}),C=mn(()=>new H7e,[]),S=xt(($e,Ee,Pe)=>{const Ie={login:[Qr.LOGIN,Qr.CANCEL_LOGIN],"bind-wallet":[Qr.BIND_WALLET,Qr.CANCEL_BIND_WALLET],"switch-passport":[Qr.SWITCH_PASSPORT,Qr.CANCEL_SWITCH_PASSPORT],"switch-profile":[Qr.SWITCH_PROFILE,Qr.CANCEL_SWITCH_PROFILE],"switch-did":[Qr.LOGIN,Qr.CANCEL_LOGIN]};if(!Object.keys(Ie).includes($e))return;const Ue=async(...Xe)=>{Eu(Ee)&&await Ee(...Xe),C.emit($e,...Xe)};C.once(Ie[$e][0],Ue),C.once(Ie[$e][1],async(...Xe)=>{Eu(Ue)&&C.off(Ie[$e][0],Ue),Eu(Pe)&&await Pe(...Xe),C.emit(`cancel-${$e}`,...Xe)})}),I=nPe(g.initialized,($e,Ee)=>$e!==Ee||$e===!0&&Ee===!0);af(()=>{if(g.initialized){const $e=!I;C.emit("change",{user:Tl(g.user),isFirst:$e})}},[g.user,g.initialized,C]);const{handleRefreshUser:L,handleRefreshToken:N,renewToken:q,clearSession:H,handleLoginResult:V,decrypt:X,service:re,getSessionToken:le,getRefreshToken:Q,setRefreshToken:B,setSessionToken:T}=zHe({state:g,pageState:k,sessionTokenStorage:a,refreshTokenStorage:o,serviceHost:u.serviceHost,apiOptions:u.apiOptions,lazyRefreshToken:u.lazyRefreshToken}),c=xt(($e,Ee={},Pe={})=>{const Ie=$e;typeof Ie=="object"&&($e=Ie.onSuccess,Ee=Ie.extraParams||{},Pe=Ie.options||{},Pe.origin=Ie.origin||""),(!g.user||Pe.origin==="switch-did")&&(Pe.origin==="switch-did"?S("switch-did",$e,Ie==null?void 0:Ie.onCancel):S("login",$e,Ie==null?void 0:Ie.onCancel),k.extraParams=Ee,k.options=Pe,g.action="login",Ae())}),f=xt(async($e,Ee={},Pe={})=>{var J;if((Ee==null?void 0:Ee.openMode)==="redirect"){const O=(Ee==null?void 0:Ee.redirect)||"/",F=new URL(`${ji}/login`,window.location.origin);F.searchParams.set("redirect",O),window.location.href=F.href;return}let Ie=Ee==null?void 0:Ee.sourceAppPid;pc(Ie)&&$&&(Ie=Z.appPid),await $G(()=>g.initialized);const Ue=$e;typeof Ue=="object"&&($e=Ue.onSuccess,Ee=Ue.extraParams||{},Pe=Ue.options||{}),typeof Pe=="string"&&(Pe={origin:Pe});const Xe=Tl(Ee);k.allowWallet=void 0;const Me=(Xe==null?void 0:Xe.openMode)||((J=u==null?void 0:u.extraParams)==null?void 0:J.openMode);pc(Me)?k.openMode="window":k.openMode=Me,Ie?(g.baseUrl=globalThis.blocklet.appUrl,c($e,Xe,Pe)):(g.baseUrl="",c($e,Xe,Pe))}),b=Xg(),D=xt(async $e=>{const Ee=Ln(ji,"/api/user/logout");await fetch(Ee,{method:"POST",body:JSON.stringify({visitorId:b}),headers:{"Content-Type":"application/json"}}),H(),me(),g.user=null,g.provider="",g.walletOS="",g.error="",g.loading=!1,C.emit("logout"),typeof $e=="function"&&$e()}),{userSessions:R,refresh:x,loaded:w,loginUserSession:E}=TX({appPid:yW(g.user),loginAppPid:(ye=globalThis==null?void 0:globalThis.blocklet)==null?void 0:ye.appPid,sourceAppPid:(Oe=g==null?void 0:g.user)==null?void 0:Oe.sourceAppPid,autoFetch:!1}),y=xt(($e,Ee={},Pe={})=>{const Ie=$e;typeof Ie=="object"&&($e=Ie.onSuccess,Ee=Ie.extraParams||{},Pe=Ie.options||{}),typeof Pe=="string"&&(Pe={origin:Pe}),Pe!=null&&Pe.userSession?E(Pe.userSession).then(Ue=>{S("switch-did",$e),V({...Ue,encrypted:!1}),L(!0).then(()=>{C.emit(Qr.LOGIN,Ue,X)})}):(pc(Ee==null?void 0:Ee.forceConnected)&&(Ee.forceConnected=!1),f($e,Ee,{...Pe,origin:"switch-did"}))}),_=xt(($e,Ee={})=>{const Pe=$e;typeof Pe=="object"&&($e=Pe.onSuccess,Ee=Pe.extraParams||{}),g.user&&(S("switch-profile",$e,Pe==null?void 0:Pe.onCancel),k.extraParams=Ee,k.options={},g.action="switch-profile",Ae())}),ne=xt(($e,Ee={})=>{const Pe=$e;typeof Pe=="object"&&($e=Pe.onSuccess,Ee=Pe.extraParams||{}),g.user&&(S("switch-passport",$e,Pe==null?void 0:Pe.onCancel),k.extraParams=Ee,k.options={},g.action="switch-passport",Ae())}),M=xt(($e,Ee={})=>{const Pe=$e;typeof Pe=="object"&&($e=Pe.onSuccess),g.user&&(S("bind-wallet",$e,Pe==null?void 0:Pe.onCancel),k.extraParams=Ee,k.options={},g.action="bind-wallet",Ae())}),z=xt($e=>{k.extraParams={},k.options={},V($e),g.loading=!1,L(!0).then(()=>{g.action==="login"?C.emit(Qr.LOGIN,$e,X):g.action==="switch-passport"&&C.emit(Qr.SWITCH_PASSPORT,$e,X)})}),ie=xt($e=>{k.extraParams={},k.options={},V($e),g.loading=!1,L(!0).then(()=>{C.emit(Qr.BIND_WALLET,$e,X)})}),ce=xt($e=>{k.extraParams={},k.options={},g.loading=!1,L(!0).then(()=>{C.emit(Qr.SWITCH_PROFILE,$e,X)})}),he=xt($e=>{k.extraParams={},k.options={},me();const Ee={login:Qr.CANCEL_LOGIN,"switch-profile":Qr.CANCEL_SWITCH_PROFILE,"switch-passport":Qr.CANCEL_SWITCH_PASSPORT,"bind-wallet":Qr.CANCEL_BIND_WALLET};C.emit(Ee[$e])}),De=xt(($e,...Ee)=>{try{oe[$e](...Ee)}catch(Pe){console.error("Catch error in onSuccess",{action:$e,args:Ee,err:Pe})}}),{federatedMaster:j,federatedEnabled:$,master:Z}=HHe({locale:g.locale,decrypt:X,login:c,logout:D,handleLoginResult:V,handleRefreshUser:L,setRefreshToken:B,setSessionToken:T}),{checkMatch:W}=rje({protectedRoutes:u.protectedRoutes||[]});o0(async()=>{const $e=$r.get("connected_app"),Ee=T6();if(u.autoDisconnect&&$e&&Ee&&$e!==Ee){H(),g.initialized=!0,k.autoConnect?Ae():me();return}const Pe=le();let Ie="web";if(v.mobile.apple.device?Ie="ios":v.mobile.android.device&&(Ie="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&v.wallet&&PZe({version:v.walletVersion,platform:Ie})){if(!b){const Xe=await LZe();_J(Xe)}if(!Pe)try{g.loading=!0;const Xe=await _Ze();if(Xe){g.initialized=!0,z({sessionToken:Xe.sessionToken,refreshToken:Xe.refreshToken,encrypted:!1});return}}finally{g.loading=!1}}if(Pe){await L(!0),g.initialized=!0;return}if(typeof window<"u"){const Xe=new URL(window.location.href),Me=Xe.searchParams.get("loginToken");if(Me){V({loginToken:Me,encrypted:!1}),Xe.searchParams.delete("loginToken"),window.history.replaceState({},window.title,Xe.href);return}}if(Q()){await N(!0),g.initialized=!0;return}try{}catch(Xe){console.error("Federated: tryAutoLogin failed",Xe)}finally{g.initialized=!0}k.autoConnect?Ae():me()});const te=Z2(R),ge=xt(async()=>(w||(await x(),await kT()),te.current)),fe={api:re,events:C,storage:a,connectApi:p,session:{...g,loading:k.autoConnect&&!g.user||g.loading,login:f,logout:D,switchDid:y,switchProfile:_,switchPassport:ne,bindWallet:M,refresh:L,updateConnectedInfo:$Y,federatedMaster:j,useOAuth:B6,OAuthProvider:jb,OAuthConsumer:AHe,OAuthContext:$6,useDid:eZ,WrapDid:aZ,getUserSessions:ge}},oe={login:z,"switch-profile":ce,"switch-passport":z,"bind-wallet":ie},me=xt(()=>{g.open=!1,p.close()}),Ae=async()=>{var Ue,Xe,Me,J,O;const $e=_We[g.action],Ee=$e[g.locale]||$e.en,Pe={...r.extraParams,...u.extraParams,...k.extraParams,previousUserDid:(Ue=g==null?void 0:g.user)==null?void 0:Ue.did,email:(Xe=g==null?void 0:g.user)==null?void 0:Xe.email};Pe==null||delete Pe.openMode;const Ie={action:g.action,locale:g.locale,extraParams:Pe,options:{...u.options||{},...k.options},checkTimeout:u.timeout,webWalletUrl:u.webWalletUrl,messages:Ee,useSocket:u.useSocket,...eR(u,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...z2(k.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:k.prefix,allowWallet:pc(k.allowWallet)?g.action!=="login"||(((Me=globalThis.blocklet)==null?void 0:Me.DID_CONNECT_ALLOW_WALLET)||"1")==="1":k.allowWallet,onSuccess(...F){De(g.action,...F),setTimeout(()=>{g.open=!1},2e3)},onClose(...F){he(g.action,...F)},onError(F){console.error(F)}};if(g.open=!0,["login"].includes(g.action)&&k.openMode==="window"&&!v.wallet)try{const F={...Ie,baseUrl:window.location.origin};O2(k.prefix)||(F.prefix=Ln(window.location.origin,u.serviceHost==="/"?"":u.serviceHost,k.prefix)),(J=F.extraParams)!=null&&J.provider||(F.extraParams.provider=((O=g==null?void 0:g.user)==null?void 0:O.provider)||"wallet"),await p.openPopup(F,{locale:g.locale})}catch(F){F.message==="Timeout"?wi.error(jF[g.locale]||jF.en):console.error(F)}else p.open(Ie)};return W()&&!g.initialized?Y.jsx(Xp,{children:Y.jsx(jg,{})}):Y.jsx($Ze,{value:fe,children:Y.jsxs(jb,{locale:g.locale,onSwitchPassport:({sessionToken:$e,refreshToken:Ee})=>{z({sessionToken:$e,refreshToken:Ee,encrypted:!1})},onBindOAuth:()=>{L()},children:[!g.open&&typeof u.children=="function"?u.children(g):u.children,h,r.rolling&&Y.jsx(MY,{callback:()=>q()})]})})}s.propTypes={children:be.any.isRequired,serviceHost:be.string,action:be.string,prefix:be.string,appendAuthServicePrefix:be.bool,locale:be.string,timeout:be.number,autoConnect:be.bool,autoDisconnect:be.bool,useSocket:be.bool,extraParams:be.object,options:be.object,webWalletUrl:be.string,protectedRoutes:be.arrayOf(be.string),apiOptions:be.object,lazyRefreshToken:be.bool},s.defaultProps={serviceHost:i,locale:"",action:"login",prefix:P6,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:tZ*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function l(u){return function(h){return Y.jsx(kb,{children:Y.jsx(HF,{children:v=>Y.jsx(u,{...h,...v})})})}}return{SessionProvider:u=>Y.jsx(kb,{children:Y.jsx(s,{...u})}),SessionConsumer:HF,SessionContext:Kf,withSession:l}}let _X="/";window.env&&(_X=window.env.groupPathPrefix||window.env.pathPrefix||"/");function LX(e,t){return[void 0,null,""].includes(e)?t:e/86400}var TH,kH,SH;const NZe=LX((SH=(kH=(TH=window.blocklet)==null?void 0:TH.settings)==null?void 0:kH.session)==null?void 0:SH.cacheTtl,1/144);var AH,DH,wH;const OZe=LX((wH=(DH=(AH=window.blocklet)==null?void 0:AH.settings)==null?void 0:DH.session)==null?void 0:wH.ttl,7),{SessionProvider:MZe,SessionContext:FZe,SessionConsumer:Agt,withSession:Dgt}=BZe("login_token","cookie",{returnDomain:!1,path:_X,expireInDays:NZe},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays:OZe});function PX(){return G.useContext(FZe)}function UZe({children:e}){const t=tz({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return Y.jsx(UV,{injectFirst:!0,children:Y.jsx(ez,{theme:t,children:Y.jsx(FV,{theme:t,children:Y.jsx(p4,{translations:MIe,fallbackLocale:"en",children:Y.jsx(kb,{children:Y.jsx(B_,{theme:t,children:e})})})})})})}const $_=new URL(window.location.href),$X=$_.searchParams.get("mode")||"",HZe=$_.pathname.includes("embed")&&$X==="dialog",jZe=$_.pathname.includes("embed")&&$X!=="dialog";function B_({children:e,theme:t}){var i,a,o;const{locale:n}=M2(),r=Fc`
|
|
631
|
+
`),()=>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=Ss.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=Wb.request(e,this.endpointURL(),t,n,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},rm=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=rm.syncState(this.state,r,i,a),this.pendingDiffs.forEach(s=>{this.state=rm.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=rm.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 rm.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 d=i[s];if(d){let u=l.metas.map(g=>g.phx_ref),p=d.metas.map(g=>g.phx_ref),h=l.metas.filter(g=>p.indexOf(g.phx_ref)<0),v=d.metas.filter(g=>u.indexOf(g.phx_ref)<0);h.length>0&&(a[s]=l,a[s].metas=h),v.length>0&&(o[s]=this.clone(d),o[s].metas=v)}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 d=e[o].metas.map(p=>p.phx_ref),u=l.metas.filter(p=>d.indexOf(p.phx_ref)<0);e[o].metas.unshift(...u)}n(o,l,s)}),this.map(a,(o,s)=>{let l=e[o];if(!l)return;let d=s.metas.map(u=>u.phx_ref);l.metas=l.metas.filter(u=>d.indexOf(u.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))}},im={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),d=0;l.setUint8(d++,this.KINDS.push),l.setUint8(d++,t.length),l.setUint8(d++,n.length),l.setUint8(d++,i.length),l.setUint8(d++,r.length),Array.from(t,p=>l.setUint8(d++,p.charCodeAt(0))),Array.from(n,p=>l.setUint8(d++,p.charCodeAt(0))),Array.from(i,p=>l.setUint8(d++,p.charCodeAt(0))),Array.from(r,p=>l.setUint8(d++,p.charCodeAt(0)));var u=new Uint8Array(s.byteLength+a.byteLength);return u.set(new Uint8Array(s),0),u.set(new Uint8Array(a),s.byteLength),u.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 d=n.decode(e.slice(o,o+a));o=o+a;let u=e.slice(o,e.byteLength);return{join_ref:s,ref:null,topic:l,event:d,payload:u}},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 d=n.decode(e.slice(s,s+i));s=s+i;let u=n.decode(e.slice(s,s+a));s=s+a;let p=n.decode(e.slice(s,s+o));s=s+o;let h=e.slice(s,e.byteLength),v={status:p,response:h};return{join_ref:l,ref:d,topic:u,event:ol.reply,payload:v}},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}}},XJe=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||KJe,this.transport=n.transport||_m.WebSocket||Ry,this.establishedConnections=0,this.defaultEncoder=im.encode.bind(im),this.defaultDecoder=im.decode.bind(im),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Ry?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;nm&&nm.addEventListener&&(nm.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),nm.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=Im(n.params||{}),this.endPoint=`${t}/${MR.websocket}`,this.vsn=n.vsn||WJe,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new fX(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Ry}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=Wb.appendParams(Wb.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=Im(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(),YJe,"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===Ss.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(ol.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Ss.connecting:return"connecting";case Ss.open:return"open";case Ss.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 hX(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 d=this.channels[l];d.isMember(r,i,a,s)&&d.trigger(i,a,o,s)}for(let l=0;l<this.stateChangeCallbacks.message.length;l++){let[,d]=this.stateChangeCallbacks.message[l];d(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())}},FR={exports:{}},Lw,sF;function QJe(){if(sF)return Lw;sF=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;Lw=function(u,p){p=p||{};var h=typeof u;if(h==="string"&&u.length>0)return o(u);if(h==="number"&&isFinite(u))return p.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function o(u){if(u=String(u),!(u.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(p){var h=parseFloat(p[1]),v=(p[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return h*a;case"weeks":case"week":case"w":return h*i;case"days":case"day":case"d":return h*r;case"hours":case"hour":case"hrs":case"hr":case"h":return h*n;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function s(u){var p=Math.abs(u);return p>=r?Math.round(u/r)+"d":p>=n?Math.round(u/n)+"h":p>=t?Math.round(u/t)+"m":p>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var p=Math.abs(u);return p>=r?d(u,p,r,"day"):p>=n?d(u,p,n,"hour"):p>=t?d(u,p,t,"minute"):p>=e?d(u,p,e,"second"):u+" ms"}function d(u,p,h,v){var g=p>=h*1.5;return Math.round(u/h)+" "+v+(g?"s":"")}return Lw}function eGe(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=o,n.humanize=QJe(),n.destroy=d,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let p=0;for(let h=0;h<u.length;h++)p=(p<<5)-p+u.charCodeAt(h),p|=0;return n.colors[Math.abs(p)%n.colors.length]}n.selectColor=t;function n(u){let p,h=null,v,g;function k(...C){if(!k.enabled)return;const S=k,I=Number(new Date),L=I-(p||I);S.diff=L,S.prev=p,S.curr=I,p=I,C[0]=n.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let N=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(H,V)=>{if(H==="%%")return"%";N++;const X=n.formatters[V];if(typeof X=="function"){const re=C[N];H=X.call(S,re),C.splice(N,1),N--}return H}),n.formatArgs.call(S,C),(S.log||n.log).apply(S,C)}return k.namespace=u,k.useColors=n.useColors(),k.color=n.selectColor(u),k.extend=r,k.destroy=n.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(v!==n.namespaces&&(v=n.namespaces,g=n.enabled(u)),g),set:C=>{h=C}}),typeof n.init=="function"&&n.init(k),k}function r(u,p){const h=n(this.namespace+(typeof p>"u"?":":p)+u);return h.log=this.log,h}function i(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let p;const h=(typeof u=="string"?u:"").split(/[\s,]+/),v=h.length;for(p=0;p<v;p++)h[p]&&(u=h[p].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")))}function a(){const u=[...n.names.map(s),...n.skips.map(s).map(p=>"-"+p)].join(",");return n.enable(""),u}function o(u){if(u[u.length-1]==="*")return!0;let p,h;for(p=0,h=n.skips.length;p<h;p++)if(n.skips[p].test(u))return!1;for(p=0,h=n.names.length;p<h;p++)if(n.names[p].test(u))return!0;return!1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function d(){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 tGe=eGe;(function(e,t){var n={};t.formatArgs=i,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.destroy=(()=>{let d=!1;return()=>{d||(d=!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(d){if(d[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+d[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;d.splice(1,0,u,"color: inherit");let p=0,h=0;d[0].replace(/%[a-zA-Z%]/g,v=>{v!=="%%"&&(p++,v==="%c"&&(h=p))}),d.splice(h,0,u)}t.log=console.debug||console.log||(()=>{});function a(d){try{d?t.storage.setItem("debug",d):t.storage.removeItem("debug")}catch{}}function o(){let d;try{d=t.storage.getItem("debug")}catch{}return!d&&typeof Kt<"u"&&"env"in Kt&&(d=n.DEBUG),d}function s(){try{return localStorage}catch{}}e.exports=tGe(t);const{formatters:l}=e.exports;l.j=function(d){try{return JSON.stringify(d)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(FR,FR.exports);var y_=FR.exports;const nGe=y_;var rGe=(e,t=!1)=>{const n=nGe(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const iGe=rGe;var aGe=(e,t,n)=>class extends e{constructor(i,a={}){super(i,{transport:n,...a}),this._logger=iGe("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:d})=>{l==="ok"?this.emitter.emit(i,d):this._logger.debug("response error",{topic:i,status:l,data:d})})}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 oGe=dX,{Socket:sGe}=JJe,lGe=aGe;var cGe=lGe(sGe,oGe);const uGe=cGe;var b_={WsClient:uGe};function dGe(e){const t=G.useRef(e);G.useEffect(()=>{t.current=e},[e]),G.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function pGe(e){const t=e||window.location.href;return new URL(t).host}function am(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 Pw={};function fGe({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const a=`${t}/token?${em(r)}`;return Pw[a]||(Pw[a]=async function(){var d,u;const s=await n(a,{headers:am(i)});if((d=s==null?void 0:s.data)!=null&&d.token)return s.data;if((u=s==null?void 0:s.data)!=null&&u.error)throw new Error(s.data.error);const l=O2(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${l}`)}),Pw[a]}const hGe=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=AUe(t);return{token:DUe(n),url:n}}catch(e){return{error:e}}},mX=()=>Sc(globalThis,"blocklet.appPid")||Sc(globalThis,"blocklet.appId")||Sc(globalThis,"env.appId")||"",mGe=()=>(Sc(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(nZ,""),$w=e=>`relay:${mX()}:${e}`,gGe=()=>window.location.protocol==="https:"?"wss:":"ws:",lF=e=>!e||new URL(e).origin===window.location.origin,cF=e=>["succeed","error","timeout","busy"].includes(e);function vGe({action:e,checkFn:t,checkInterval:n,checkTimeout:r,extraParams:i,locale:a,prefix:o,tokenKey:s,encKey:l,onError:d,onSuccess:u,baseUrl:p,autoConnect:h=!0,forceConnected:v=!0,saveConnect:g=!0,useSocket:k=!0,provider:C="wallet"}){const S=ea({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:p,prefix:`${o}/${e}`,extraParams:aF(i,oF),checkFn:t,results:{},action:e,provider:C}),I=Sg[a]||Sg.en,L=mn(()=>hGe(),[]),N=Math.ceil(r/n),q=ea({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:H,decrypt:V}=Cqe(),X=l0(),re=Xg(),le=xt((...E)=>{const y={[l]:H,...S.extraParams,locale:a,forceConnected:v,autoConnect:h&&!X.wallet&&!q.cancelWhenScannedCounter&&["ios","android"].includes($r.get("connected_wallet_os")),provider:S.provider};return re&&(y.visitorId=re),fGe({action:e,prefix:S.prefix,baseUrl:S.baseUrl,checkFn:S.checkFn,extraParams:y})(...E)}),Q=()=>{q.cancelWhenScannedCounter++};G.useEffect(()=>{q.cancelWhenScannedCounter>0&&(i.nw?d(new Error(I.retryForbidden)):D())},[q.cancelWhenScannedCounter]);const B=G.useRef(null),T=G.useRef(null);G.useEffect(()=>(k&&lF(S.baseUrl)&&mX()?(!B.current||B.current.isConnected()===!1||B.current.baseUrl!==S.baseUrl)&&(B.current=new b_.WsClient(`${gGe()}//${pGe(S.baseUrl)}${mGe()}${nZ}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),B.current.baseUrl=S.baseUrl,B.current.onOpen(()=>{q.isSocketAvailable=!0}),B.current.connect()):q.isSocketAvailable&&(q.isSocketAvailable=!1),()=>{B.current&&(B.current.disconnect(),B.current=null)}),[S.baseUrl]);const c={...S.extraParams,locale:a,[s]:S.token||(L==null?void 0:L.token),provider:S.provider},f=()=>!S.token||S.loading||cF(S.status)?null:n,b=async()=>{try{c[s]&&S.status==="created"&&await S.checkFn(`${S.prefix}/timeout?${em(c)}`,{headers:am(S.baseUrl)})}catch{}try{S.token&&T.current&&(await B.current.unsubscribe($w(S.token)),T.current=null)}catch{}},D=xt(async(E=!0)=>{E&&b();try{S.loading=!0,S.token="",S.url="",S.store=null,S.extraParams=aF(i,oF),await kT();const y=await le(),_=y.extra||{};S.loading=!1,S.token=y.token,S.url=y.url,S.status="created",S.error="",S.checkCount=0,S.appInfo=y.appInfo,S.memberAppInfo=y.memberAppInfo,S.connectedDid=_.connectedDid,S.saveConnect=_.saveConnect}catch(y){S.loading=!1,S.status="error",S.error=`${I.generateError}: ${y.message}`}}),R=G.useRef(null);G.useEffect(()=>{R.current={state:S,params:c}}),G.useEffect(()=>()=>{const{state:E,params:y}=R.current;E.status==="created"&&y[s]&&E.checkFn(`${E.prefix}/timeout?${em(y)}`,{headers:am(E.baseUrl)})},[]);const x=async()=>{try{if(L.error)throw L.error;S.loading=!0,S.token=L.token,S.url=L.url,S.inExistingSession=!0;const E=await w();if(E!=null&&E.status&&(E==null?void 0:E.status)!=="created")throw new Error(`${I.invalidSessionStatus} [${E.status}]`)}catch(E){S.status="error",S.error=E.message,d(E,S==null?void 0:S.store,V)}finally{S.loading=!1}};G.useEffect(()=>{if(!S.token&&!S.store&&!S.loading&&!S.error)if(L)x();else{D(!1);return}if(S.status!=="timeout"&&S.checkCount>N){S.status="timeout",b();return}if(S.status==="succeed"&&!q.onSuccessCalled&&(lF(S.baseUrl)&&g&&S.saveConnect&&S.store.did&&$Y({...S.store,appInfo:S.appInfo,memberAppInfo:S.memberAppInfo}),S.store)){const{nextWorkflow:E}=S.store;if(E)try{const y=wUe(E,s);S.nextWorkflow=(y==null?void 0:y.nextWorkflow)||E,Object.assign(S,y),S.store=null,S.error="",S.url="",S.appInfo=null,S.memberAppInfo=null,S.checkCount=0,S.status="scanned",S.results={...S.results,[S.token]:S.store},S.checkFn=Ul({baseURL:y.baseUrl,timeout:8e3}).get,w()}catch(y){console.error(`Invalid nextWorkflow: ${E}`,y),S.status="error",S.error=`Invalid nextWorkflow: ${E}: ${y.message}`}else if(S.nextWorkflow&&(S.nextWorkflow="",S.url=""),typeof u=="function"){const y=Object.values({...S.results,[S.token]:S.store});q.onSuccessCalled=!0;const _=y.length>1?y:y[0],ne=Tl(_);u(ne,V,{sourceAppPid:i==null?void 0:i.sourceAppPid})}}}),G.useEffect(()=>{if(S.token&&q.isSocketAvailable&&B.current){let E=!1;T.current?T.current.token!==S.token&&(B.current.unsubscribe($w(T.current.token)),E=!0):E=!0,E&&(T.current=B.current.subscribe($w(S.token)),T.current.token=S.token,T.current.on("updated",({response:y})=>{let{status:_,error:ne}=y;_==="forbidden"&&(ne=I.forbidden,_="error"),S.status=_,S.mfaCode=y.mfaCode||0,S.store=y,S.error=ne}))}},[S.token,q.isSocketAvailable,B.current]);const w=async(E=!1)=>{var y;if(S.checking||(S.status==="created"&&S.checkCount++,q.isSocketAvailable&&!E))return null;try{S.checking=!0;const _=await S.checkFn(`${S.prefix}/status?${em(c)}`,{headers:am(S.baseUrl)}),{status:ne,error:M,mfaCode:z=0}=_.data;if(S.store=_.data,S.mfaCode=z,S.checking=!1,S.status=ne,ne==="error"&&M){const ie=new Error(M);throw ie.response=_,ie}return _.data}catch(_){const{response:ne}=_;if(ne!=null&&ne.status){c[s]&&S.checkFn(`${S.prefix}/timeout?${em(c)}`,{headers:am(S.baseUrl)});const M=(y=ne==null?void 0:ne.data)!=null&&y.error?ne.data.error:_.message,z=new Error(M);z.code=ne.status,S.status="error",S.checking=!1,S.error=M,d(z,S==null?void 0:S.store,V)}else S.status="error",S.checking=!1,S.error=I.generateError}return null};return MJe(w,f()),dGe(()=>{q.isSocketAvailable&&S.token&&cF(S.status)===!1&&w(!0)}),{state:S,generate:D,cancelWhenScanned:Q}}var T_={};Object.defineProperty(T_,"__esModule",{value:!0});var gX=T_.default=void 0;yGe(G);var sn=Y;function yGe(e){return e&&e.__esModule?e:{default:e}}function uF(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 dF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uF(Object(n),!0).forEach(function(r){bGe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bGe(e,t,n){return t=TGe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TGe(e){var t=kGe(e,"string");return typeof t=="symbol"?t:String(t)}function kGe(e,t){if(typeof e!="object"||e===null)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 k_=function(t){return(0,sn.jsxs)("svg",dF(dF({},t),{},{children:[(0,sn.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,sn.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"url(#paint0_linear)"}),(0,sn.jsx)("path",{d:"M3.52 7.36A2.56 2.56 0 0 1 6.08 4.8h19.84a2.56 2.56 0 0 1 2.56 2.56v12.16a2.56 2.56 0 0 1-2.56 2.56H6.08a2.56 2.56 0 0 1-2.56-2.56V7.36z",fill:"#9FCBFF",filter:"url(#filter0_i)"}),(0,sn.jsx)("path",{d:"M2.56 9.28a2.56 2.56 0 0 1 2.56-2.56h21.76a2.56 2.56 0 0 1 2.56 2.56v13.6a2.56 2.56 0 0 1-2.56 2.56H5.12a2.56 2.56 0 0 1-2.56-2.56V9.28z",fill:"url(#paint1_linear)",filter:"url(#filter1_d)"}),(0,sn.jsx)("path",{d:"M0 22.32l32-6.16V32H0v-9.68z",fill:"url(#paint2_linear)",filter:"url(#filter2_d)"}),(0,sn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.536 9.248h8.288c.408 0 .74.3.74.672v4.64c0 .371-.332.672-.74.672H5.536c-.408 0-.74-.3-.74-.672v-.04a.158.158 0 1 0-.316 0v.04c0 .53.473.96 1.056.96h8.288c.583 0 1.056-.43 1.056-.96V9.92c0-.53-.473-.96-1.056-.96H5.536c-.583 0-1.056.43-1.056.96v.04a.158.158 0 0 0 .317 0v-.04c0-.371.33-.672.739-.672zm-1.023 4.638a.127.127 0 0 0 .087.034h1.267c.472 0 .83-.107 1.076-.322.25-.217.381-.548.397-.993a11.281 11.281 0 0 0 0-.734c-.012-.426-.148-.751-.406-.975-.258-.224-.622-.336-1.09-.336H4.6a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.794-.806c-.099.1-.253.149-.464.149h-.502V11.25h.478c.21 0 .369.051.474.154.108.102.166.26.172.475.006.09.01.208.01.355s-.004.267-.01.36c-.006.221-.059.383-.158.485zm1.63.806a.127.127 0 0 0 .087.034h.64a.116.116 0 0 0 .087-.034.11.11 0 0 0 .038-.086v-3.12a.11.11 0 0 0-.038-.086.116.116 0 0 0-.086-.034h-.641a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.637.034a.127.127 0 0 1-.086-.034.128.128 0 0 1-.033-.086v-3.12c0-.035.01-.064.033-.086a.127.127 0 0 1 .086-.034h1.244c.469 0 .832.112 1.09.336.259.224.394.549.407.974a11.244 11.244 0 0 1 0 .735c-.016.445-.148.776-.397.993-.245.215-.604.322-1.076.322H9.574zm1.244-.691c.21 0 .365-.05.464-.149.099-.102.152-.264.158-.485a5.52 5.52 0 0 0 .01-.36c0-.147-.004-.265-.01-.355-.006-.214-.064-.373-.172-.475-.106-.103-.263-.154-.474-.154h-.478v1.978h.502zm2.468-1.382a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.286-.288.286zm0 1.495a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.287-.288.287z",fill:"#4598FA"})]}),(0,sn.jsxs)("defs",{children:[(0,sn.jsxs)("filter",{id:"filter0_i",x:"3.52",y:"1.8",width:"24.96",height:"20.28",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,sn.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,sn.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,sn.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,sn.jsx)("feOffset",{dy:"-3"}),(0,sn.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,sn.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,sn.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.2 0"}),(0,sn.jsx)("feBlend",{in2:"shape",result:"effect1_innerShadow"})]}),(0,sn.jsxs)("filter",{id:"filter1_d",x:"-1.44",y:"1.72",width:"34.88",height:"26.72",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,sn.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,sn.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,sn.jsx)("feOffset",{dy:"-1"}),(0,sn.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,sn.jsx)("feColorMatrix",{values:"0 0 0 0 0.220767 0 0 0 0 0.470803 0 0 0 0 0.701605 0 0 0 0.18 0"}),(0,sn.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,sn.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,sn.jsxs)("filter",{id:"filter2_d",x:"-5",y:"11.16",width:"42",height:"25.84",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,sn.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,sn.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,sn.jsx)("feOffset",{}),(0,sn.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,sn.jsx)("feColorMatrix",{values:"0 0 0 0 0.14382 0 0 0 0 0.205065 0 0 0 0 0.522634 0 0 0 0.25 0"}),(0,sn.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,sn.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,sn.jsxs)("linearGradient",{id:"paint0_linear",x1:"16",x2:"16",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,sn.jsx)("stop",{stopColor:"#4F9DF6"}),(0,sn.jsx)("stop",{offset:"1",stopColor:"#0A79F8"})]}),(0,sn.jsxs)("linearGradient",{id:"paint1_linear",x1:"16",y1:"6.72",x2:"16",y2:"25.44",gradientUnits:"userSpaceOnUse",children:[(0,sn.jsx)("stop",{stopColor:"#fff"}),(0,sn.jsx)("stop",{offset:"1",stopColor:"#ECEFFF"})]}),(0,sn.jsxs)("linearGradient",{id:"paint2_linear",x1:"16",y1:"19.2",x2:"18.48",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,sn.jsx)("stop",{offset:".007",stopColor:"#77B2F6"}),(0,sn.jsx)("stop",{offset:".055",stopColor:"#4F9DF6"}),(0,sn.jsx)("stop",{offset:"1",stopColor:"#4598FA"})]}),(0,sn.jsx)("clipPath",{id:"clip0",children:(0,sn.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"#fff"})})]})]}))};k_.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};k_.displayName="did-wallet";var SGe=k_;gX=T_.default=SGe;function S_({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i}=zc(),a=r("openInWallet"),o=mn(()=>{if(!e.url)return"";const d=new URL(window.location.href);d.searchParams.set("tokenKey",e.token);const u=new URL(e.url);return u.searchParams.set("callback",encodeURIComponent(d)),u.searchParams.set("callback_delay",1500),u.searchParams.set("locale",t),u.href.replace(/^https?:\/\//,"abt://")},[n,e.token]),s=xt(()=>{Ur(()=>import("./index-KGC-suTM.js").then(d=>d.i),__vite__mapDeps([])).then(d=>{d.call||(d=d.default),d.call("authAction",{action:"auth",deepLink:o})}).catch(d=>{console.error("load dsbridge error",d)})}),l={};return i||(l.component="a",l.href=o),o0(()=>{o&&s()}),Y.jsxs(Jc,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:zt.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...l,onClick:i?s:sr,children:[Y.jsxs(vt,{sx:{display:"flex",alignItems:"center",gap:1},children:[Y.jsx(gX,{}),Y.jsx(xi,{sx:{fontSize:"16px",fontWeight:"bold"},children:a})]}),Y.jsx(Xn,{icon:IT,fontSize:"1.3rem",color:zt.primaryBase})]})}S_.propTypes={tokenState:be.object.isRequired,locale:be.string,tokenKey:be.string};S_.defaultProps={locale:"en",tokenKey:"_t_"};function vX(){return Y.jsx(vt,{sx:{height:"100%",minWidth:"160px",minHeight:"160px",display:"flex",justifyContent:"center",alignItems:"center"},children:Y.jsx(jg,{sx:{color:zt.primary100}})})}const Tv=["scanned","succeed","error","busy"];function A_({onSuccess:e,onError:t,action:n,prefix:r,checkFn:i,checkInterval:a,checkTimeout:o,locale:s,tokenKey:l,encKey:d,baseUrl:u,autoConnect:p,forceConnected:h,saveConnect:v,useSocket:g,allowWallet:k,provider:C,webWalletUrl:S,onRecreateSession:I,messages:L,enabledConnectTypes:N}){var Z,W,te;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const q=G.useContext(Kf),{lostPassportUrl:H,connectState:V,extraParams:X,staticState:re,changeStatus:le,t:Q,isWalletWebview:B}=zc(),T=l0(),c=mn(()=>{var ge;return C||(X==null?void 0:X.provider)||((ge=q==null?void 0:q.session)==null?void 0:ge.provider)||"wallet"},[X==null?void 0:X.provider,(Z=q==null?void 0:q.session)==null?void 0:Z.provider]);G.useEffect(()=>{R(u)},[u]);const{state:f,generate:b,cancelWhenScanned:D}=vGe({action:n,baseUrl:u,checkFn:i,checkInterval:a,checkTimeout:o,extraParams:X,prefix:r,onError:t,onSuccess:e,locale:s,tokenKey:l,encKey:d,autoConnect:p,forceConnected:h,saveConnect:v,useSocket:g,allowWallet:k,provider:c}),{setBaseUrl:R,oauthConfigList:x,oauthState:w}=B6({defaultStatus:f.status});af(()=>{b()},[V==null?void 0:V.sourceAppPid]);const E=mn(()=>Tv.includes(w.status)||Tv.includes(f.status),[f.status,w.status]);G.useEffect(()=>{Tv.includes(w.status)?le(w.status):Tv.includes(f.status)?le(f.status):le("created")},[le,f.status,w.status]);const y=xt(()=>{I(),w.reset(),f.inExistingSession||b()}),_=xt(()=>{I(),f.inExistingSession||(re.current.cancelCount++,D())}),ne=mn(()=>({confirm:L.confirm,success:L.success,error:f.error||w.error||""}),[L.confirm,L.success,f.error,w.error]),M=mn(()=>k&&N.includes("mobile")&&!B,[k,N,B]),z=LY(S),ie=mn(()=>k&&N.includes("web")&&(z||N2())&&!T.mobile.any,[k,N,(W=T==null?void 0:T.mobile)==null?void 0:W.any]),ce=mn(()=>k&&N.includes("mobile")&&T.mobile.any,[k,N,(te=T==null?void 0:T.mobile)==null?void 0:te.any]),he=mn(()=>{const ge=Eze(["auth0","apple","github","google"],N);return x.filter(fe=>ge.includes(fe.provider))},[x,N]),De=mn(()=>he.length>0&&["login","invite"].includes(f.action),[he]),j=mn(()=>{const ge=M||ie||ce;let fe=null;return De&&(fe=ge?Y.jsxs(Y.Fragment,{children:[Y.jsx(ZI,{light:!0,sx:{color:zt.textMuted,width:{xs:"200px",md:"368px"},maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:zt.lineStep}},children:"OR"}),Y.jsx(Gb,{providerList:he,onSuccess:e,onError:t,tokenState:f,locale:s})]}):Y.jsx(Gb,{providerList:he,onSuccess:e,onError:t,tokenState:f,type:"list",locale:s})),Y.jsxs(Y.Fragment,{children:[Y.jsx(vt,{"data-did-auth-url":f.url,sx:{display:"none"}}),ce&&Y.jsx(S_,{tokenState:f,locale:s,tokenKey:l}),M&&Y.jsx(m_,{tokenState:f,messages:L,locale:s}),ie&&Y.jsx(f_,{tokenState:f,webWalletUrl:S,locale:s}),ge&&H&&Y.jsx(Hz,{href:H,underline:"none",sx:{fontSize:"12px",width:"auto",margin:"auto",display:{xs:"inline-block",md:"none"}},children:Q("lostPassport")}),fe]})},[f.url,H,M,ie,ce]);return mn(()=>f.loading||w.loading,[f.loading,w.loading])?Y.jsx(vX,{}):E?Y.jsxs(Y.Fragment,{children:[Y.jsx(vt,{"data-did-auth-url":f.url,sx:{display:"none"}}),Y.jsx(LT,{status:w.status||f.status,nextWorkflow:f.nextWorkflow,mfaCode:f.mfaCode,onCancel:_,onRetry:y,messages:ne,locale:s,className:"auth-status"})]}):j}A_.propTypes={onError:be.func,onSuccess:be.func.isRequired,action:be.string.isRequired,checkFn:be.func.isRequired,prefix:be.string,checkInterval:be.number,checkTimeout:be.number,locale:be.oneOf(["en","zh",""]),tokenKey:be.string,encKey:be.string,baseUrl:be.string,autoConnect:be.bool,forceConnected:be.oneOfType([be.bool,be.string]),saveConnect:be.bool,useSocket:be.bool,allowWallet:be.bool,provider:be.oneOf(["wallet","auth0",""]),webWalletUrl:be.string,onRecreateSession:be.func,messages:be.object,enabledConnectTypes:be.arrayOf(be.oneOf(["web","mobile","github","apple","google","auth0"]))};A_.defaultProps={prefix:P6,onError:sr,checkInterval:2*1e3,checkTimeout:tZ*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:_Y(),onRecreateSession:sr,messages:{},enabledConnectTypes:["web","mobile","github","apple","google","auth0"]};var Bw=vG,AGe=FJ,DGe=P4,wGe=1/0,EGe=Bw&&1/DGe(new Bw([,-0]))[1]==wGe?function(e){return new Bw(e)}:AGe,CGe=EGe,RGe=_4,xGe=YZ,IGe=ZZ,_Ge=L4,LGe=CGe,PGe=P4,$Ge=200;function BGe(e,t,n){var r=-1,i=xGe,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=IGe;else if(a>=$Ge){var d=t?null:LGe(e);if(d)return PGe(d);o=!1,i=_Ge,l=new RGe}else l=t?[]:s;e:for(;++r<a;){var u=e[r],p=t?t(u):u;if(u=n||u!==0?u:0,o&&p===p){for(var h=l.length;h--;)if(l[h]===p)continue e;t&&l.push(p),s.push(u)}else i(l,p,n)||(l!==s&&l.push(p),s.push(u))}return s}var yX=BGe,NGe=C4,OGe=PT,MGe=r0,FGe=yX,pF=b4,UGe=V2,HGe=MGe(function(e){var t=UGe(e);return pF(t)&&(t=void 0),FGe(NGe(e,1,pF,!0),OGe(t))}),jGe=HGe;const qGe=Nt(jGe);var VGe=KJ,zGe=i0;function JGe(e,t){return e&&VGe(e,t,zGe)}var GGe=JGe,WGe=dd;function KGe(e,t){return function(n,r){if(n==null)return n;if(!WGe(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 YGe=KGe,ZGe=GGe,XGe=YGe,QGe=XGe(ZGe),eWe=QGe,tWe=eWe,nWe=dd;function rWe(e,t){var n=-1,r=nWe(e)?Array(e.length):[];return tWe(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var iWe=rWe;function aWe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var oWe=aWe,fF=Gg;function sWe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=fF(e),o=t!==void 0,s=t===null,l=t===t,d=fF(t);if(!s&&!d&&!a&&e>t||a&&o&&l&&!s&&!d||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!d&&e<t||d&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var lWe=sWe,cWe=lWe;function uWe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=cWe(i[r],a[r]);if(l){if(r>=s)return l;var d=n[r];return l*(d=="desc"?-1:1)}}return e.index-t.index}var dWe=uWe,Nw=_f,pWe=Kg,fWe=PT,hWe=iWe,mWe=oWe,gWe=t0,vWe=dWe,yWe=q2,bWe=Ta;function TWe(e,t,n){t.length?t=Nw(t,function(a){return bWe(a)?function(o){return pWe(o,a.length===1?a[0]:a)}:a}):t=[yWe];var r=-1;t=Nw(t,gWe(fWe));var i=hWe(e,function(a,o,s){var l=Nw(t,function(d){return d(a)});return{criteria:l,index:++r,value:a}});return mWe(i,function(a,o){return vWe(a,o,n)})}var kWe=TWe,SWe=C4,AWe=kWe,DWe=r0,hF=uG,wWe=DWe(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]]),AWe(e,SWe(t,1),[])}),EWe=wWe;const bX=Nt(EWe),CWe=Ln(ji,"/api/user-session");function TX({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/"}={}){const a=Xg(),o=mn(()=>Ul({baseURL:Ln(i,CWe)},{lazy:!0,lazyTime:500}),[i]),s=xt(async()=>{const{data:v}=await o.get("",{params:{visitorId:a,appPid:e}});return v}),l=ea({loaded:!1,loadingId:null}),d=j8e(s,{manual:!r,onFinally(){l.loaded=!0},refreshDeps:[e,i]}),u=async v=>{var k,C,S;const g=z2(v,["userDid","visitorId","passportId"]);try{l.loadingId=v.id;const{data:I}=await o.post("login",{...g,appPid:n});return I}catch(I){const L=I.response?((C=(k=I.response)==null?void 0:k.data)==null?void 0:C.error)||((S=I.response)==null?void 0:S.data):I.message;throw wi.error(L),console.error("Quick login error",I),I}finally{l.loadingId=null}},p=mn(()=>{if(!d.data)return[];const v=new Date().getTime(),g=d.data.filter(C=>t!==null?!0:C.appPid===e),k=bX(g,C=>v-new Date(C.updatedAt).getTime());return qGe(k,C=>[C.userDid].join("_"))},[d.data,t,e]),h=mn(()=>p.data&&p.data.length>0,[p==null?void 0:p.data]);return{loadingId:l.loadingId,userSessions:p,quickLoginEnabled:h,loginUserSession:u,loading:d.loading,loaded:d.loaded,refresh:d.refreshAsync}}const kv="did-connect",mF="quick-connect";function D_({mode:e,hideCloseButton:t,...n}){var le;const r=ea({showTab:kv}),{connectState:i,blocklet:a}=zc(),{extraContent:o,onSuccess:s,action:l,onClose:d,options:u}=n,p=mn(()=>(i==null?void 0:i.sourceAppPid)||yW(),[i==null?void 0:i.sourceAppPid]),{quickLoginEnabled:h,loading:v,userSessions:g,loginUserSession:k,refresh:C}=TX({appPid:p,loginAppPid:a==null?void 0:a.appPid,sourceAppPid:i==null?void 0:i.sourceAppPid,autoFetch:["login"].includes(l)}),S=mn(()=>{var Q;return((Q=n==null?void 0:n.messages)==null?void 0:Q.title)||kHe},[(le=n==null?void 0:n.messages)==null?void 0:le.title]),I=xt(async(...Q)=>{const B=await k(...Q);await s({...B,encrypted:!1},T=>T)});G.useEffect(()=>{(u==null?void 0:u.showQuickConnect)!==!1&&!v&&h&&(r.showTab=mF)},[v,h,u==null?void 0:u.showQuickConnect]);const L=W8e(v,{wait:100}),N=xt(()=>{r.showTab=kv}),q=xt(()=>{r.showTab=mF}),H=mn(()=>r.showTab===kv||!h,[r.showTab,h]),V=mn(()=>{let Q=!0;return(v||L)&&(Q=!1),h||(Q=!1),u.showQuickConnect===!1&&(Q=!1),r.showTab!==kv&&(Q=!1),Q},[h,r.showTab,v,L]),X=mn(()=>Y.jsx(vt,{onClick:d,sx:{fontSize:"1.5rem",cursor:"pointer",width:"1.5rem",height:"1.5rem",textAlign:"center",color:zt.textMuted,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:Y.jsx(vt,{component:"span",sx:{display:"block",fontWeight:"lighter",lineHeight:1,transform:"scale(1.3)"},children:"×"})}),[d]);let re=null;return v||L?re=Y.jsx(vX,{}):H?re=Y.jsx(A_,{...n}):re=Y.jsx(p_,{userSessions:g,onLogin:I,onRetry:C,messages:n.messages,onLoginAnother:N}),Y.jsxs(vt,{sx:{display:"flex",flexDirection:"column",gap:1.5,color:zt.textBase,width:"100%"},children:[e==="dialog"?Y.jsxs(vt,{sx:{pb:2,display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:{xs:"none",md:`1px solid ${zt.lineStep}`}},children:[Y.jsxs(xi,{component:"h3",variant:"h6",sx:{display:"flex",alignItems:"center"},children:[V&&Y.jsx(Bs,{size:"small",disabled:i.status!=="created",onClick:q,disableRipple:!0,sx:{fontSize:"0.75em"},children:Y.jsx(Xn,{icon:W9,color:zt.textMuted})}),S]}),!t&&Y.jsx(vt,{sx:{display:{xs:"none",md:"block"}},children:X})]}):Y.jsxs(xi,{component:"h3",variant:"h4",sx:{pt:{xs:1.5,md:3},pb:{xs:0,md:1.5},fontWeight:"bold",display:"flex",alignItems:"center"},children:[V&&Y.jsx(Bs,{size:"small",onClick:q,disabled:i.status!=="created",disableRipple:!0,sx:{fontSize:"0.75em"},children:Y.jsx(Xn,{icon:W9,color:zt.textMuted})}),S]}),re,Y.jsxs(vt,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",pt:1.5,pb:{xs:1.5,md:0},px:{xs:3,md:0},position:{xs:"fixed",md:"static"},top:0,left:0,right:0,backgroundColor:"white",borderBottom:{xs:`1px solid ${zt.lineStep}`,md:"none"}},children:[Y.jsx(r_,{disableSwitchApp:n.disableSwitchApp}),e==="dialog"&&!t&&Y.jsx(vt,{sx:{display:{xs:"block",md:"none"}},children:X})]}),o?Y.jsx(vt,{children:o}):null]})}D_.propTypes={onSuccess:be.func,onClose:be.func,action:be.string.isRequired,messages:be.object,extraContent:be.any,disableSwitchApp:be.bool,mode:be.oneOf(["fullScreen","dialog","normal"]),options:be.object,hideCloseButton:be.bool};D_.defaultProps={onSuccess:sr,onClose:sr,mode:"normal",extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!1};function w_(e){const{checkFn:t,extraParams:n,blocklet:r,action:i,locale:a,lostPassportUrl:o}=e;if(typeof t!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const[s,l]=G.useState(300),d=G.useRef(null),u=s0(d);return G.useEffect(()=>{u!=null&&u.height&&u.height>s&&l(u.height)},[u==null?void 0:u.height,s]),Y.jsx(vt,{sx:{position:"relative",width:"100%",height:"100%",display:"flex",alignItems:"center",lineHeight:1.2,fontFamily:"Lato",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:Y.jsx(t_,{blocklet:r,action:i,locale:a,extraParams:n,lostPassportUrl:o,children:Y.jsx(vt,{sx:{height:s,overflow:"hidden",transition:"height 0.2s ease"},children:Y.jsx(vt,{ref:d,children:Y.jsx(D_,{...e})})})})})}w_.propTypes={checkFn:be.func.isRequired,extraParams:be.object,blocklet:be.object.isRequired,action:be.string.isRequired,locale:be.string,lostPassportUrl:be.string};w_.defaultProps={extraParams:{},locale:"en",lostPassportUrl:void 0};const RWe=Aqe(sqe(Eqe(w_))),xWe=G.forwardRef((e,t)=>{const{api:n}=G.useContext(Kf),r={containerEl:null,popup:!0,checkFn:(n==null?void 0:n.get)||sr,onSuccess:()=>{setTimeout(()=>{d()},2e3)},messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},i=ea({show:!1,...Tl(r)}),[a,o]=G.useState({}),s=xt(p=>{const{containerEl:h,checkFn:v,popup:g,onSuccess:k,messages:C,...S}=Tl(p);typeof v=="function"&&(i.checkFn=v),typeof k=="function"&&(i.onSuccess=(...I)=>{k(...I),setTimeout(()=>{d()},2e3)}),g!==void 0&&(i.popup=g),C!==void 0&&(i.messages=C),h!==void 0&&(i.containerEl=h),o(S),i.show=!0}),l=xt(()=>{const p=Tl(r);Object.keys(p).forEach(h=>{i[h]=p[h]})}),d=xt(()=>{i.show=!1,l()});G.useImperativeHandle(t,()=>({open:s,close:d}),[s,d]);const u=Y.jsx(RWe,{open:!0,popup:i.popup,messages:i.messages,onClose:d,onSuccess:i.onSuccess,checkFn:i.checkFn,...a});return i.containerEl?Lg.createPortal(u,i.containerEl):i.show&&u});function IWe(){const e=G.useRef(null),t=xt((...o)=>{var s;(s=e.current)==null||s.open(...o)}),n=xt(async(o={},{baseUrl:s,locale:l="en",blocklet:d=globalThis==null?void 0:globalThis.blocklet}={})=>{var C;if(pc(s)){const S=g0(),I=Gf();s=S?I.appUrl:window.location.origin}const{onSuccess:u,onClose:p,onError:h,...v}=o;if(!((C=v==null?void 0:v.extraParams)!=null&&C.provider))throw Eu(h)&&h("Must have extraParams.provider"),new Error("Must have extraParams.provider");v!=null&&v.prefix||(v.prefix=window.location.origin+Ln(d==null?void 0:d.prefix,P6));const g=new URLSearchParams;g.set("params",btoa(encodeURIComponent(JSON.stringify(v)))),g.set("appPid",d==null?void 0:d.appPid),g.set("locale",l);const k=ije(Ln(s||"/",ji,`/connect?${g.toString()}`));try{const S=await aje({popup:k});return Eu(u)&&u({...S,encrypted:!1}),{...S,encrypted:!1}}catch(S){throw S.message==="Popup closed"?Eu(p)&&p():Eu(h)&&h(S),S}}),r=xt((...o)=>{var s;(s=e.current)==null||s.close(...o)}),i=mn(()=>Y.jsx(xWe,{ref:e})),a=mn(()=>({open:t,close:r,openPopup:n}));return{connectHolder:i,connectApi:a}}const Qr={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")},_We={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:"Bind DID Wallet",scan:"Scan following qrcode with DID Wallet to bind wallet",confirm:"Select passport in your DID Wallet",success:"Passport and session updated"},zh:{title:"绑定 DID 钱包",scan:"请使用 DID 钱包扫码下面的二维码以绑定 DID 钱包",confirm:"在 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:"找回通行证"}}};var UR={exports:{}};const LWe="2.0.0",kX=256,PWe=Number.MAX_SAFE_INTEGER||9007199254740991,$We=16,BWe=kX-6,NWe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var $T={MAX_LENGTH:kX,MAX_SAFE_COMPONENT_LENGTH:$We,MAX_SAFE_BUILD_LENGTH:BWe,MAX_SAFE_INTEGER:PWe,RELEASE_TYPES:NWe,SEMVER_SPEC_VERSION:LWe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Ow={};const OWe=typeof Kt=="object"&&Ow&&Ow.NODE_DEBUG&&/\bsemver\b/i.test(Ow.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var BT=OWe;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=$T,a=BT;t=e.exports={};const o=t.re=[],s=t.safeRe=[],l=t.src=[],d=t.t={};let u=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[p,r]],v=k=>{for(const[C,S]of h)k=k.split(`${C}*`).join(`${C}{0,${S}}`).split(`${C}+`).join(`${C}{1,${S}}`);return k},g=(k,C,S)=>{const I=v(C),L=u++;a(k,L,C),d[k]=L,l[L]=C,o[L]=new RegExp(C,S?"g":void 0),s[L]=new RegExp(I,S?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),g("MAINVERSION",`(${l[d.NUMERICIDENTIFIER]})\\.(${l[d.NUMERICIDENTIFIER]})\\.(${l[d.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${l[d.NUMERICIDENTIFIERLOOSE]})\\.(${l[d.NUMERICIDENTIFIERLOOSE]})\\.(${l[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${l[d.NUMERICIDENTIFIER]}|${l[d.NONNUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${l[d.NUMERICIDENTIFIERLOOSE]}|${l[d.NONNUMERICIDENTIFIER]})`),g("PRERELEASE",`(?:-(${l[d.PRERELEASEIDENTIFIER]}(?:\\.${l[d.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${l[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[d.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${p}+`),g("BUILD",`(?:\\+(${l[d.BUILDIDENTIFIER]}(?:\\.${l[d.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${l[d.MAINVERSION]}${l[d.PRERELEASE]}?${l[d.BUILD]}?`),g("FULL",`^${l[d.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${l[d.MAINVERSIONLOOSE]}${l[d.PRERELEASELOOSE]}?${l[d.BUILD]}?`),g("LOOSE",`^${l[d.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${l[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${l[d.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${l[d.XRANGEIDENTIFIER]})(?:\\.(${l[d.XRANGEIDENTIFIER]})(?:\\.(${l[d.XRANGEIDENTIFIER]})(?:${l[d.PRERELEASE]})?${l[d.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${l[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})(?:${l[d.PRERELEASELOOSE]})?${l[d.BUILD]}?)?)?`),g("XRANGE",`^${l[d.GTLT]}\\s*${l[d.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${l[d.GTLT]}\\s*${l[d.XRANGEPLAINLOOSE]}$`),g("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),g("COERCERTL",l[d.COERCE],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${l[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${l[d.LONETILDE]}${l[d.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${l[d.LONETILDE]}${l[d.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${l[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${l[d.LONECARET]}${l[d.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${l[d.LONECARET]}${l[d.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${l[d.GTLT]}\\s*(${l[d.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]}|${l[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${l[d.XRANGEPLAIN]})\\s+-\\s+(${l[d.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${l[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[d.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(UR,UR.exports);var b0=UR.exports;const MWe=Object.freeze({loose:!0}),FWe=Object.freeze({}),UWe=e=>e?typeof e!="object"?MWe:e:FWe;var E_=UWe;const gF=/^[0-9]+$/,SX=(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},HWe=(e,t)=>SX(t,e);var AX={compareIdentifiers:SX,rcompareIdentifiers:HWe};const Sv=BT,{MAX_LENGTH:vF,MAX_SAFE_INTEGER:Av}=$T,{safeRe:yF,t:bF}=b0,jWe=E_,{compareIdentifiers:Yd}=AX;let qWe=class ms{constructor(t,n){if(n=jWe(n),t instanceof ms){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>vF)throw new TypeError(`version is longer than ${vF} characters`);Sv("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?yF[bF.LOOSE]:yF[bF.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>Av||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Av||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Av||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<Av)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(Sv("SemVer.compare",this.version,this.options,t),!(t instanceof ms)){if(typeof t=="string"&&t===this.version)return 0;t=new ms(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof ms||(t=new ms(t,this.options)),Yd(this.major,t.major)||Yd(this.minor,t.minor)||Yd(this.patch,t.patch)}comparePre(t){if(t instanceof ms||(t=new ms(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(Sv("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 Yd(r,i)}while(++n)}compareBuild(t){t instanceof ms||(t=new ms(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(Sv("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 Yd(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]),Yd(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 ra=qWe;const TF=ra,VWe=(e,t,n=!1)=>{if(e instanceof TF)return e;try{return new TF(e,t)}catch(r){if(!n)return null;throw r}};var Yf=VWe;const zWe=Yf,JWe=(e,t)=>{const n=zWe(e,t);return n?n.version:null};var GWe=JWe;const WWe=Yf,KWe=(e,t)=>{const n=WWe(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var YWe=KWe;const kF=ra,ZWe=(e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new kF(e instanceof kF?e.version:e,n).inc(t,r,i).version}catch{return null}};var XWe=ZWe;const SF=Yf,QWe=(e,t)=>{const n=SF(e,null,!0),r=SF(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 u=l?"pre":"";return n.major!==r.major?u+"major":n.minor!==r.minor?u+"minor":n.patch!==r.patch?u+"patch":"prerelease"};var eKe=QWe;const tKe=ra,nKe=(e,t)=>new tKe(e,t).major;var rKe=nKe;const iKe=ra,aKe=(e,t)=>new iKe(e,t).minor;var oKe=aKe;const sKe=ra,lKe=(e,t)=>new sKe(e,t).patch;var cKe=lKe;const uKe=Yf,dKe=(e,t)=>{const n=uKe(e,t);return n&&n.prerelease.length?n.prerelease:null};var pKe=dKe;const AF=ra,fKe=(e,t,n)=>new AF(e,n).compare(new AF(t,n));var ss=fKe;const hKe=ss,mKe=(e,t,n)=>hKe(t,e,n);var gKe=mKe;const vKe=ss,yKe=(e,t)=>vKe(e,t,!0);var bKe=yKe;const DF=ra,TKe=(e,t,n)=>{const r=new DF(e,n),i=new DF(t,n);return r.compare(i)||r.compareBuild(i)};var C_=TKe;const kKe=C_,SKe=(e,t)=>e.sort((n,r)=>kKe(n,r,t));var AKe=SKe;const DKe=C_,wKe=(e,t)=>e.sort((n,r)=>DKe(r,n,t));var EKe=wKe;const CKe=ss,RKe=(e,t,n)=>CKe(e,t,n)>0;var NT=RKe;const xKe=ss,IKe=(e,t,n)=>xKe(e,t,n)<0;var R_=IKe;const _Ke=ss,LKe=(e,t,n)=>_Ke(e,t,n)===0;var DX=LKe;const PKe=ss,$Ke=(e,t,n)=>PKe(e,t,n)!==0;var wX=$Ke;const BKe=ss,NKe=(e,t,n)=>BKe(e,t,n)>=0;var x_=NKe;const OKe=ss,MKe=(e,t,n)=>OKe(e,t,n)<=0;var I_=MKe;const FKe=DX,UKe=wX,HKe=NT,jKe=x_,qKe=R_,VKe=I_,zKe=(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 FKe(e,n,r);case"!=":return UKe(e,n,r);case">":return HKe(e,n,r);case">=":return jKe(e,n,r);case"<":return qKe(e,n,r);case"<=":return VKe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var EX=zKe;const JKe=ra,GKe=Yf,{safeRe:Dv,t:wv}=b0,WKe=(e,t)=>{if(e instanceof JKe)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(Dv[wv.COERCE]);else{let r;for(;(r=Dv[wv.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),Dv[wv.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;Dv[wv.COERCERTL].lastIndex=-1}return n===null?null:GKe(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var KKe=WKe,Mw,wF;function YKe(){return wF||(wF=1,Mw=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),Mw}var ZKe=jn;jn.Node=td;jn.create=jn;function jn(e){var t=this;if(t instanceof jn||(t=new jn),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}jn.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};jn.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++}};jn.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++}};jn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)QKe(this,arguments[e]);return this.length};jn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)eYe(this,arguments[e]);return this.length};jn.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}};jn.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}};jn.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};jn.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};jn.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};jn.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};jn.prototype.map=function(e,t){t=t||this;for(var n=new jn,r=this.head;r!==null;)n.push(e.call(t,r.value,this)),r=r.next;return n};jn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new jn,r=this.tail;r!==null;)n.push(e.call(t,r.value,this)),r=r.prev;return n};jn.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};jn.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};jn.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};jn.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};jn.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 jn;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};jn.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 jn;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};jn.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=XKe(this,i,n[r]);return a};jn.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 XKe(e,t,n){var r=t===e.head?new td(n,null,t,e):new td(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function QKe(e,t){e.tail=new td(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function eYe(e,t){e.head=new td(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function td(e,t,n,r){if(!(this instanceof td))return new td(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{YKe()(jn)}catch{}const tYe=ZKe,yu=Symbol("max"),cl=Symbol("length"),Zd=Symbol("lengthCalculator"),Lm=Symbol("allowStale"),Iu=Symbol("maxAge"),sl=Symbol("dispose"),EF=Symbol("noDisposeOnSet"),li=Symbol("lruList"),Jo=Symbol("cache"),CX=Symbol("updateAgeOnGet"),Fw=()=>1;class nYe{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[yu]=t.max||1/0;const n=t.length||Fw;if(this[Zd]=typeof n!="function"?Fw:n,this[Lm]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Iu]=t.maxAge||0,this[sl]=t.dispose,this[EF]=t.noDisposeOnSet||!1,this[CX]=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[yu]=t||1/0,Vh(this)}get max(){return this[yu]}set allowStale(t){this[Lm]=!!t}get allowStale(){return this[Lm]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Iu]=t,Vh(this)}get maxAge(){return this[Iu]}set lengthCalculator(t){typeof t!="function"&&(t=Fw),t!==this[Zd]&&(this[Zd]=t,this[cl]=0,this[li].forEach(n=>{n.length=this[Zd](n.value,n.key),this[cl]+=n.length})),Vh(this)}get lengthCalculator(){return this[Zd]}get length(){return this[cl]}get itemCount(){return this[li].length}rforEach(t,n){n=n||this;for(let r=this[li].tail;r!==null;){const i=r.prev;CF(this,t,r,n),r=i}}forEach(t,n){n=n||this;for(let r=this[li].head;r!==null;){const i=r.next;CF(this,t,r,n),r=i}}keys(){return this[li].toArray().map(t=>t.key)}values(){return this[li].toArray().map(t=>t.value)}reset(){this[sl]&&this[li]&&this[li].length&&this[li].forEach(t=>this[sl](t.key,t.value)),this[Jo]=new Map,this[li]=new tYe,this[cl]=0}dump(){return this[li].map(t=>Kb(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[li]}set(t,n,r){if(r=r||this[Iu],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const i=r?Date.now():0,a=this[Zd](n,t);if(this[Jo].has(t)){if(a>this[yu])return Fp(this,this[Jo].get(t)),!1;const l=this[Jo].get(t).value;return this[sl]&&(this[EF]||this[sl](t,l.value)),l.now=i,l.maxAge=r,l.value=n,this[cl]+=a-l.length,l.length=a,this.get(t),Vh(this),!0}const o=new rYe(t,n,a,i,r);return o.length>this[yu]?(this[sl]&&this[sl](t,n),!1):(this[cl]+=o.length,this[li].unshift(o),this[Jo].set(t,this[li].head),Vh(this),!0)}has(t){if(!this[Jo].has(t))return!1;const n=this[Jo].get(t).value;return!Kb(this,n)}get(t){return Uw(this,t,!0)}peek(t){return Uw(this,t,!1)}pop(){const t=this[li].tail;return t?(Fp(this,t),t.value):null}del(t){Fp(this,this[Jo].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[Jo].forEach((t,n)=>Uw(this,n,!1))}}const Uw=(e,t,n)=>{const r=e[Jo].get(t);if(r){const i=r.value;if(Kb(e,i)){if(Fp(e,r),!e[Lm])return}else n&&(e[CX]&&(r.value.now=Date.now()),e[li].unshiftNode(r));return i.value}},Kb=(e,t)=>{if(!t||!t.maxAge&&!e[Iu])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Iu]&&n>e[Iu]},Vh=e=>{if(e[cl]>e[yu])for(let t=e[li].tail;e[cl]>e[yu]&&t!==null;){const n=t.prev;Fp(e,t),t=n}},Fp=(e,t)=>{if(t){const n=t.value;e[sl]&&e[sl](n.key,n.value),e[cl]-=n.length,e[Jo].delete(n.key),e[li].removeNode(t)}};class rYe{constructor(t,n,r,i,a){this.key=t,this.value=n,this.length=r,this.now=i,this.maxAge=a||0}}const CF=(e,t,n,r)=>{let i=n.value;Kb(e,i)&&(Fp(e,n),e[Lm]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var iYe=nYe,Hw,RF;function ls(){if(RF)return Hw;RF=1;class e{constructor(c,f){if(f=r(f),c instanceof e)return c.loose===!!f.loose&&c.includePrerelease===!!f.includePrerelease?c:new e(c.raw,f);if(c instanceof i)return this.raw=c.value,this.set=[[c]],this.format(),this;if(this.options=f,this.loose=!!f.loose,this.includePrerelease=!!f.includePrerelease,this.raw=c.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(b=>this.parseRange(b.trim())).filter(b=>b.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const b=this.set[0];if(this.set=this.set.filter(D=>!g(D[0])),this.set.length===0)this.set=[b];else if(this.set.length>1){for(const D of this.set)if(D.length===1&&k(D[0])){this.set=[D];break}}}this.format()}format(){return this.range=this.set.map(c=>c.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(c){const b=((this.options.includePrerelease&&h)|(this.options.loose&&v))+":"+c,D=n.get(b);if(D)return D;const R=this.options.loose,x=R?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];c=c.replace(x,Q(this.options.includePrerelease)),a("hyphen replace",c),c=c.replace(s[l.COMPARATORTRIM],d),a("comparator trim",c),c=c.replace(s[l.TILDETRIM],u),a("tilde trim",c),c=c.replace(s[l.CARETTRIM],p),a("caret trim",c);let w=c.split(" ").map(ne=>S(ne,this.options)).join(" ").split(/\s+/).map(ne=>le(ne,this.options));R&&(w=w.filter(ne=>(a("loose invalid filter",ne,this.options),!!ne.match(s[l.COMPARATORLOOSE])))),a("range list",w);const E=new Map,y=w.map(ne=>new i(ne,this.options));for(const ne of y){if(g(ne))return[ne];E.set(ne.value,ne)}E.size>1&&E.has("")&&E.delete("");const _=[...E.values()];return n.set(b,_),_}intersects(c,f){if(!(c instanceof e))throw new TypeError("a Range is required");return this.set.some(b=>C(b,f)&&c.set.some(D=>C(D,f)&&b.every(R=>D.every(x=>R.intersects(x,f)))))}test(c){if(!c)return!1;if(typeof c=="string")try{c=new o(c,this.options)}catch{return!1}for(let f=0;f<this.set.length;f++)if(B(this.set[f],c,this.options))return!0;return!1}}Hw=e;const t=iYe,n=new t({max:1e3}),r=E_,i=OT(),a=BT,o=ra,{safeRe:s,t:l,comparatorTrimReplace:d,tildeTrimReplace:u,caretTrimReplace:p}=b0,{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:v}=$T,g=T=>T.value==="<0.0.0-0",k=T=>T.value==="",C=(T,c)=>{let f=!0;const b=T.slice();let D=b.pop();for(;f&&b.length;)f=b.every(R=>D.intersects(R,c)),D=b.pop();return f},S=(T,c)=>(a("comp",T,c),T=q(T,c),a("caret",T),T=L(T,c),a("tildes",T),T=V(T,c),a("xrange",T),T=re(T,c),a("stars",T),T),I=T=>!T||T.toLowerCase()==="x"||T==="*",L=(T,c)=>T.trim().split(/\s+/).map(f=>N(f,c)).join(" "),N=(T,c)=>{const f=c.loose?s[l.TILDELOOSE]:s[l.TILDE];return T.replace(f,(b,D,R,x,w)=>{a("tilde",T,b,D,R,x,w);let E;return I(D)?E="":I(R)?E=`>=${D}.0.0 <${+D+1}.0.0-0`:I(x)?E=`>=${D}.${R}.0 <${D}.${+R+1}.0-0`:w?(a("replaceTilde pr",w),E=`>=${D}.${R}.${x}-${w} <${D}.${+R+1}.0-0`):E=`>=${D}.${R}.${x} <${D}.${+R+1}.0-0`,a("tilde return",E),E})},q=(T,c)=>T.trim().split(/\s+/).map(f=>H(f,c)).join(" "),H=(T,c)=>{a("caret",T,c);const f=c.loose?s[l.CARETLOOSE]:s[l.CARET],b=c.includePrerelease?"-0":"";return T.replace(f,(D,R,x,w,E)=>{a("caret",T,D,R,x,w,E);let y;return I(R)?y="":I(x)?y=`>=${R}.0.0${b} <${+R+1}.0.0-0`:I(w)?R==="0"?y=`>=${R}.${x}.0${b} <${R}.${+x+1}.0-0`:y=`>=${R}.${x}.0${b} <${+R+1}.0.0-0`:E?(a("replaceCaret pr",E),R==="0"?x==="0"?y=`>=${R}.${x}.${w}-${E} <${R}.${x}.${+w+1}-0`:y=`>=${R}.${x}.${w}-${E} <${R}.${+x+1}.0-0`:y=`>=${R}.${x}.${w}-${E} <${+R+1}.0.0-0`):(a("no pr"),R==="0"?x==="0"?y=`>=${R}.${x}.${w}${b} <${R}.${x}.${+w+1}-0`:y=`>=${R}.${x}.${w}${b} <${R}.${+x+1}.0-0`:y=`>=${R}.${x}.${w} <${+R+1}.0.0-0`),a("caret return",y),y})},V=(T,c)=>(a("replaceXRanges",T,c),T.split(/\s+/).map(f=>X(f,c)).join(" ")),X=(T,c)=>{T=T.trim();const f=c.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return T.replace(f,(b,D,R,x,w,E)=>{a("xRange",T,b,D,R,x,w,E);const y=I(R),_=y||I(x),ne=_||I(w),M=ne;return D==="="&&M&&(D=""),E=c.includePrerelease?"-0":"",y?D===">"||D==="<"?b="<0.0.0-0":b="*":D&&M?(_&&(x=0),w=0,D===">"?(D=">=",_?(R=+R+1,x=0,w=0):(x=+x+1,w=0)):D==="<="&&(D="<",_?R=+R+1:x=+x+1),D==="<"&&(E="-0"),b=`${D+R}.${x}.${w}${E}`):_?b=`>=${R}.0.0${E} <${+R+1}.0.0-0`:ne&&(b=`>=${R}.${x}.0${E} <${R}.${+x+1}.0-0`),a("xRange return",b),b})},re=(T,c)=>(a("replaceStars",T,c),T.trim().replace(s[l.STAR],"")),le=(T,c)=>(a("replaceGTE0",T,c),T.trim().replace(s[c.includePrerelease?l.GTE0PRE:l.GTE0],"")),Q=T=>(c,f,b,D,R,x,w,E,y,_,ne,M,z)=>(I(b)?f="":I(D)?f=`>=${b}.0.0${T?"-0":""}`:I(R)?f=`>=${b}.${D}.0${T?"-0":""}`:x?f=`>=${f}`:f=`>=${f}${T?"-0":""}`,I(y)?E="":I(_)?E=`<${+y+1}.0.0-0`:I(ne)?E=`<${y}.${+_+1}.0-0`:M?E=`<=${y}.${_}.${ne}-${M}`:T?E=`<${y}.${_}.${+ne+1}-0`:E=`<=${E}`,`${f} ${E}`.trim()),B=(T,c,f)=>{for(let b=0;b<T.length;b++)if(!T[b].test(c))return!1;if(c.prerelease.length&&!f.includePrerelease){for(let b=0;b<T.length;b++)if(a(T[b].semver),T[b].semver!==i.ANY&&T[b].semver.prerelease.length>0){const D=T[b].semver;if(D.major===c.major&&D.minor===c.minor&&D.patch===c.patch)return!0}return!1}return!0};return Hw}var jw,xF;function OT(){if(xF)return jw;xF=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(u,p){if(p=n(p),u instanceof t){if(u.loose===!!p.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),o("comparator",u,p),this.options=p,this.loose=!!p.loose,this.parse(u),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(u){const p=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],h=u.match(p);if(!h)throw new TypeError(`Invalid comparator: ${u}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new s(h[2],this.options.loose):this.semver=e}toString(){return this.value}test(u){if(o("Comparator.test",u,this.options.loose),this.semver===e||u===e)return!0;if(typeof u=="string")try{u=new s(u,this.options)}catch{return!1}return a(u,this.operator,this.semver,this.options)}intersects(u,p){if(!(u instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(u.value,p).test(this.value):u.operator===""?u.value===""?!0:new l(this.value,p).test(u.semver):(p=n(p),p.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!p.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||a(this.semver,"<",u.semver,p)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||a(this.semver,">",u.semver,p)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}jw=t;const n=E_,{safeRe:r,t:i}=b0,a=EX,o=BT,s=ra,l=ls();return jw}const aYe=ls(),oYe=(e,t,n)=>{try{t=new aYe(t,n)}catch{return!1}return t.test(e)};var MT=oYe;const sYe=ls(),lYe=(e,t)=>new sYe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var cYe=lYe;const uYe=ra,dYe=ls(),pYe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new dYe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===-1)&&(r=o,i=new uYe(r,n))}),r};var fYe=pYe;const hYe=ra,mYe=ls(),gYe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new mYe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===1)&&(r=o,i=new hYe(r,n))}),r};var vYe=gYe;const qw=ra,yYe=ls(),IF=NT,bYe=(e,t)=>{e=new yYe(e,t);let n=new qw("0.0.0");if(e.test(n)||(n=new qw("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 qw(o.semver.version);switch(o.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!a||IF(s,a))&&(a=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),a&&(!n||IF(n,a))&&(n=a)}return n&&e.test(n)?n:null};var TYe=bYe;const kYe=ls(),SYe=(e,t)=>{try{return new kYe(e,t).range||"*"}catch{return null}};var AYe=SYe;const DYe=ra,RX=OT(),{ANY:wYe}=RX,EYe=ls(),CYe=MT,_F=NT,LF=R_,RYe=I_,xYe=x_,IYe=(e,t,n,r)=>{e=new DYe(e,r),t=new EYe(t,r);let i,a,o,s,l;switch(n){case">":i=_F,a=RYe,o=LF,s=">",l=">=";break;case"<":i=LF,a=xYe,o=_F,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(CYe(e,t,r))return!1;for(let d=0;d<t.set.length;++d){const u=t.set[d];let p=null,h=null;if(u.forEach(v=>{v.semver===wYe&&(v=new RX(">=0.0.0")),p=p||v,h=h||v,i(v.semver,p.semver,r)?p=v:o(v.semver,h.semver,r)&&(h=v)}),p.operator===s||p.operator===l||(!h.operator||h.operator===s)&&a(e,h.semver))return!1;if(h.operator===l&&o(e,h.semver))return!1}return!0};var __=IYe;const _Ye=__,LYe=(e,t,n)=>_Ye(e,t,">",n);var PYe=LYe;const $Ye=__,BYe=(e,t,n)=>$Ye(e,t,"<",n);var NYe=BYe;const PF=ls(),OYe=(e,t,n)=>(e=new PF(e,n),t=new PF(t,n),e.intersects(t,n));var MYe=OYe;const FYe=MT,UYe=ss;var HYe=(e,t,n)=>{const r=[];let i=null,a=null;const o=e.sort((u,p)=>UYe(u,p,n));for(const u of o)FYe(u,t,n)?(a=u,i||(i=u)):(a&&r.push([i,a]),a=null,i=null);i&&r.push([i,null]);const s=[];for(const[u,p]of r)u===p?s.push(u):!p&&u===o[0]?s.push("*"):p?u===o[0]?s.push(`<=${p}`):s.push(`${u} - ${p}`):s.push(`>=${u}`);const l=s.join(" || "),d=typeof t.raw=="string"?t.raw:String(t);return l.length<d.length?l:t};const $F=ls(),L_=OT(),{ANY:Vw}=L_,zh=MT,P_=ss,jYe=(e,t,n={})=>{if(e===t)return!0;e=new $F(e,n),t=new $F(t,n);let r=!1;e:for(const i of e.set){for(const a of t.set){const o=VYe(i,a,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},qYe=[new L_(">=0.0.0-0")],BF=[new L_(">=0.0.0")],VYe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Vw){if(t.length===1&&t[0].semver===Vw)return!0;n.includePrerelease?e=qYe:e=BF}if(t.length===1&&t[0].semver===Vw){if(n.includePrerelease)return!0;t=BF}const r=new Set;let i,a;for(const v of e)v.operator===">"||v.operator===">="?i=NF(i,v,n):v.operator==="<"||v.operator==="<="?a=OF(a,v,n):r.add(v.semver);if(r.size>1)return null;let o;if(i&&a){if(o=P_(i.semver,a.semver,n),o>0)return null;if(o===0&&(i.operator!==">="||a.operator!=="<="))return null}for(const v of r){if(i&&!zh(v,String(i),n)||a&&!zh(v,String(a),n))return null;for(const g of t)if(!zh(v,String(g),n))return!1;return!0}let s,l,d,u,p=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1,h=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1;p&&p.prerelease.length===1&&a.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(const v of t){if(u=u||v.operator===">"||v.operator===">=",d=d||v.operator==="<"||v.operator==="<=",i){if(h&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===h.major&&v.semver.minor===h.minor&&v.semver.patch===h.patch&&(h=!1),v.operator===">"||v.operator===">="){if(s=NF(i,v,n),s===v&&s!==i)return!1}else if(i.operator===">="&&!zh(i.semver,String(v),n))return!1}if(a){if(p&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===p.major&&v.semver.minor===p.minor&&v.semver.patch===p.patch&&(p=!1),v.operator==="<"||v.operator==="<="){if(l=OF(a,v,n),l===v&&l!==a)return!1}else if(a.operator==="<="&&!zh(a.semver,String(v),n))return!1}if(!v.operator&&(a||i)&&o!==0)return!1}return!(i&&d&&!a&&o!==0||a&&u&&!i&&o!==0||h||p)},NF=(e,t,n)=>{if(!e)return t;const r=P_(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},OF=(e,t,n)=>{if(!e)return t;const r=P_(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var zYe=jYe;const zw=b0,MF=$T,JYe=ra,FF=AX,GYe=Yf,WYe=GWe,KYe=YWe,YYe=XWe,ZYe=eKe,XYe=rKe,QYe=oKe,eZe=cKe,tZe=pKe,nZe=ss,rZe=gKe,iZe=bKe,aZe=C_,oZe=AKe,sZe=EKe,lZe=NT,cZe=R_,uZe=DX,dZe=wX,pZe=x_,fZe=I_,hZe=EX,mZe=KKe,gZe=OT(),vZe=ls(),yZe=MT,bZe=cYe,TZe=fYe,kZe=vYe,SZe=TYe,AZe=AYe,DZe=__,wZe=PYe,EZe=NYe,CZe=MYe,RZe=HYe,xZe=zYe;var xX={parse:GYe,valid:WYe,clean:KYe,inc:YYe,diff:ZYe,major:XYe,minor:QYe,patch:eZe,prerelease:tZe,compare:nZe,rcompare:rZe,compareLoose:iZe,compareBuild:aZe,sort:oZe,rsort:sZe,gt:lZe,lt:cZe,eq:uZe,neq:dZe,gte:pZe,lte:fZe,cmp:hZe,coerce:mZe,Comparator:gZe,Range:vZe,satisfies:yZe,toComparators:bZe,maxSatisfying:TZe,minSatisfying:kZe,minVersion:SZe,validRange:AZe,outside:DZe,gtr:wZe,ltr:EZe,intersects:CZe,simplifyRange:RZe,subset:xZe,SemVer:JYe,re:zw.re,src:zw.src,tokens:zw.t,SEMVER_SPEC_VERSION:MF.SEMVER_SPEC_VERSION,RELEASE_TYPES:MF.RELEASE_TYPES,compareIdentifiers:FF.compareIdentifiers,rcompareIdentifiers:FF.rcompareIdentifiers};const UF=Nt(xX);async function IX(...e){return new Promise((t,n)=>{Ur(()=>import("./index-KGC-suTM.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 IZe=[`${ji}/connect`,`${ji}/login`,`${ji}/invite`,`${ji}/issue-passport`];async function _Ze(){const e=(window==null?void 0:window.blocklet)||{},t=window.location.pathname,{componentId:n,CHAIN_TYPE:r="arcblock",appPid:i}=e;if(IZe.includes(t))return null;const a=sZ();try{const o=`${window.location.origin}${ji}/api/user/loginByWallet`;return await IX("arcLogin",{target:o,chainType:r,appPid:i,componentId:n,apps:a.map(l=>{let d=l==null?void 0:l.appLogo;return O2(d)||(d=Ln(l.appUrl,d)),{appName:l.appName,appPid:l.appPid,appUrl:l.appUrl,appLogo:d,sourceAppPid:l.sourceAppPid}})})}catch(o){return console.error(o),null}}async function LZe(){return await IX("arcGetVisitorId")}function PZe({platform:e,version:t}={}){return!!(e==="ios"&&t&&UF.gte(t,"4.15.6")||e==="android"&&t&&UF.gte(t,"4.15.1"))}const{Provider:$Ze,Consumer:HF}=Kf,jF={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"};function BZe(e=bHe,t="ls",n={},r={}){var d;let i="/";(d=globalThis==null?void 0:globalThis.blocklet)!=null&&d.prefix&&(i=globalThis.blocklet.prefix),typeof r=="boolean"&&(r={appendAuthServicePrefix:r,extraParams:{}}),F7e(r,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:THe});const a=RN(e,t,n),o=RN(r.refreshTokenStorageKey,"ls");function s(u){var ye,Oe;const{connectApi:p,connectHolder:h}=IWe(),v=l0(),g=ea({action:u.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:"",get locale(){return u.locale||k.currentLocale||OY()}}),k=ea({extraParams:{},options:{},currentLocale:u.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof u.autoConnect=="boolean"?u.autoConnect:!!u.autoLogin},get prefix(){return r.appendAuthServicePrefix||u.appendAuthServicePrefix?Ln(ji,u.prefix):u.prefix}}),C=mn(()=>new H7e,[]),S=xt(($e,Ee,Pe)=>{const Ie={login:[Qr.LOGIN,Qr.CANCEL_LOGIN],"bind-wallet":[Qr.BIND_WALLET,Qr.CANCEL_BIND_WALLET],"switch-passport":[Qr.SWITCH_PASSPORT,Qr.CANCEL_SWITCH_PASSPORT],"switch-profile":[Qr.SWITCH_PROFILE,Qr.CANCEL_SWITCH_PROFILE],"switch-did":[Qr.LOGIN,Qr.CANCEL_LOGIN]};if(!Object.keys(Ie).includes($e))return;const Ue=async(...Xe)=>{Eu(Ee)&&await Ee(...Xe),C.emit($e,...Xe)};C.once(Ie[$e][0],Ue),C.once(Ie[$e][1],async(...Xe)=>{Eu(Ue)&&C.off(Ie[$e][0],Ue),Eu(Pe)&&await Pe(...Xe),C.emit(`cancel-${$e}`,...Xe)})}),I=nPe(g.initialized,($e,Ee)=>$e!==Ee||$e===!0&&Ee===!0);af(()=>{if(g.initialized){const $e=!I;C.emit("change",{user:Tl(g.user),isFirst:$e})}},[g.user,g.initialized,C]);const{handleRefreshUser:L,handleRefreshToken:N,renewToken:q,clearSession:H,handleLoginResult:V,decrypt:X,service:re,getSessionToken:le,getRefreshToken:Q,setRefreshToken:B,setSessionToken:T}=zHe({state:g,pageState:k,sessionTokenStorage:a,refreshTokenStorage:o,serviceHost:u.serviceHost,apiOptions:u.apiOptions,lazyRefreshToken:u.lazyRefreshToken}),c=xt(($e,Ee={},Pe={})=>{const Ie=$e;typeof Ie=="object"&&($e=Ie.onSuccess,Ee=Ie.extraParams||{},Pe=Ie.options||{},Pe.origin=Ie.origin||""),(!g.user||Pe.origin==="switch-did")&&(Pe.origin==="switch-did"?S("switch-did",$e,Ie==null?void 0:Ie.onCancel):S("login",$e,Ie==null?void 0:Ie.onCancel),k.extraParams=Ee,k.options=Pe,g.action="login",Ae())}),f=xt(async($e,Ee={},Pe={})=>{var J;if((Ee==null?void 0:Ee.openMode)==="redirect"){const O=(Ee==null?void 0:Ee.redirect)||"/",F=new URL(`${ji}/login`,window.location.origin);F.searchParams.set("redirect",O),window.location.href=F.href;return}let Ie=Ee==null?void 0:Ee.sourceAppPid;pc(Ie)&&$&&(Ie=Z.appPid),await $G(()=>g.initialized);const Ue=$e;typeof Ue=="object"&&($e=Ue.onSuccess,Ee=Ue.extraParams||{},Pe=Ue.options||{}),typeof Pe=="string"&&(Pe={origin:Pe});const Xe=Tl(Ee);k.allowWallet=void 0;const Me=(Xe==null?void 0:Xe.openMode)||((J=u==null?void 0:u.extraParams)==null?void 0:J.openMode);pc(Me)?k.openMode="window":k.openMode=Me,Ie?(g.baseUrl=globalThis.blocklet.appUrl,c($e,Xe,Pe)):(g.baseUrl="",c($e,Xe,Pe))}),b=Xg(),D=xt(async $e=>{const Ee=Ln(ji,"/api/user/logout");await fetch(Ee,{method:"POST",body:JSON.stringify({visitorId:b}),headers:{"Content-Type":"application/json"}}),H(),me(),g.user=null,g.provider="",g.walletOS="",g.error="",g.loading=!1,C.emit("logout"),typeof $e=="function"&&$e()}),{userSessions:R,refresh:x,loaded:w,loginUserSession:E}=TX({appPid:yW(g.user),loginAppPid:(ye=globalThis==null?void 0:globalThis.blocklet)==null?void 0:ye.appPid,sourceAppPid:(Oe=g==null?void 0:g.user)==null?void 0:Oe.sourceAppPid,autoFetch:!1}),y=xt(($e,Ee={},Pe={})=>{const Ie=$e;typeof Ie=="object"&&($e=Ie.onSuccess,Ee=Ie.extraParams||{},Pe=Ie.options||{}),typeof Pe=="string"&&(Pe={origin:Pe}),Pe!=null&&Pe.userSession?E(Pe.userSession).then(Ue=>{S("switch-did",$e),V({...Ue,encrypted:!1}),L(!0).then(()=>{C.emit(Qr.LOGIN,Ue,X)})}):(pc(Ee==null?void 0:Ee.forceConnected)&&(Ee.forceConnected=!1),f($e,Ee,{...Pe,origin:"switch-did"}))}),_=xt(($e,Ee={})=>{const Pe=$e;typeof Pe=="object"&&($e=Pe.onSuccess,Ee=Pe.extraParams||{}),g.user&&(S("switch-profile",$e,Pe==null?void 0:Pe.onCancel),k.extraParams=Ee,k.options={},g.action="switch-profile",Ae())}),ne=xt(($e,Ee={})=>{const Pe=$e;typeof Pe=="object"&&($e=Pe.onSuccess,Ee=Pe.extraParams||{}),g.user&&(S("switch-passport",$e,Pe==null?void 0:Pe.onCancel),k.extraParams=Ee,k.options={},g.action="switch-passport",Ae())}),M=xt(($e,Ee={})=>{const Pe=$e;typeof Pe=="object"&&($e=Pe.onSuccess),g.user&&(S("bind-wallet",$e,Pe==null?void 0:Pe.onCancel),k.extraParams=Ee,k.options={},g.action="bind-wallet",Ae())}),z=xt($e=>{k.extraParams={},k.options={},V($e),g.loading=!1,L(!0).then(()=>{g.action==="login"?C.emit(Qr.LOGIN,$e,X):g.action==="switch-passport"&&C.emit(Qr.SWITCH_PASSPORT,$e,X)})}),ie=xt($e=>{k.extraParams={},k.options={},V($e),g.loading=!1,L(!0).then(()=>{C.emit(Qr.BIND_WALLET,$e,X)})}),ce=xt($e=>{k.extraParams={},k.options={},g.loading=!1,L(!0).then(()=>{C.emit(Qr.SWITCH_PROFILE,$e,X)})}),he=xt($e=>{k.extraParams={},k.options={},me();const Ee={login:Qr.CANCEL_LOGIN,"switch-profile":Qr.CANCEL_SWITCH_PROFILE,"switch-passport":Qr.CANCEL_SWITCH_PASSPORT,"bind-wallet":Qr.CANCEL_BIND_WALLET};C.emit(Ee[$e])}),De=xt(($e,...Ee)=>{try{oe[$e](...Ee)}catch(Pe){console.error("Catch error in onSuccess",{action:$e,args:Ee,err:Pe})}}),{federatedMaster:j,federatedEnabled:$,master:Z}=HHe({locale:g.locale,decrypt:X,login:c,logout:D,handleLoginResult:V,handleRefreshUser:L,setRefreshToken:B,setSessionToken:T}),{checkMatch:W}=rje({protectedRoutes:u.protectedRoutes||[]});o0(async()=>{const $e=$r.get("connected_app"),Ee=T6();if(u.autoDisconnect&&$e&&Ee&&$e!==Ee){H(),g.initialized=!0,k.autoConnect?Ae():me();return}const Pe=le();let Ie="web";if(v.mobile.apple.device?Ie="ios":v.mobile.android.device&&(Ie="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&v.wallet&&PZe({version:v.walletVersion,platform:Ie})){if(!b){const Xe=await LZe();_J(Xe)}if(!Pe)try{g.loading=!0;const Xe=await _Ze();if(Xe){g.initialized=!0,z({sessionToken:Xe.sessionToken,refreshToken:Xe.refreshToken,encrypted:!1});return}}finally{g.loading=!1}}if(Pe){await L(!0),g.initialized=!0;return}if(typeof window<"u"){const Xe=new URL(window.location.href),Me=Xe.searchParams.get("loginToken");if(Me){V({loginToken:Me,encrypted:!1}),Xe.searchParams.delete("loginToken"),window.history.replaceState({},window.title,Xe.href);return}}if(Q()){await N(!0),g.initialized=!0;return}try{}catch(Xe){console.error("Federated: tryAutoLogin failed",Xe)}finally{g.initialized=!0}k.autoConnect?Ae():me()});const te=Z2(R),ge=xt(async()=>(w||(await x(),await kT()),te.current)),fe={api:re,events:C,storage:a,connectApi:p,session:{...g,loading:k.autoConnect&&!g.user||g.loading,login:f,logout:D,switchDid:y,switchProfile:_,switchPassport:ne,bindWallet:M,refresh:L,updateConnectedInfo:$Y,federatedMaster:j,useOAuth:B6,OAuthProvider:jb,OAuthConsumer:AHe,OAuthContext:$6,useDid:eZ,WrapDid:aZ,getUserSessions:ge}},oe={login:z,"switch-profile":ce,"switch-passport":z,"bind-wallet":ie},me=xt(()=>{g.open=!1,p.close()}),Ae=async()=>{var Ue,Xe,Me,J,O;const $e=_We[g.action],Ee=$e[g.locale]||$e.en,Pe={...r.extraParams,...u.extraParams,...k.extraParams,previousUserDid:(Ue=g==null?void 0:g.user)==null?void 0:Ue.did,email:(Xe=g==null?void 0:g.user)==null?void 0:Xe.email};Pe==null||delete Pe.openMode;const Ie={action:g.action,locale:g.locale,extraParams:Pe,options:{...u.options||{},...k.options},checkTimeout:u.timeout,webWalletUrl:u.webWalletUrl,messages:Ee,useSocket:u.useSocket,...eR(u,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...z2(k.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:k.prefix,allowWallet:pc(k.allowWallet)?g.action!=="login"||(((Me=globalThis.blocklet)==null?void 0:Me.DID_CONNECT_ALLOW_WALLET)||"1")==="1":k.allowWallet,onSuccess(...F){De(g.action,...F),setTimeout(()=>{g.open=!1},2e3)},onClose(...F){he(g.action,...F)},onError(F){console.error(F)}};if(g.open=!0,["login"].includes(g.action)&&k.openMode==="window"&&!v.wallet)try{const F={...Ie,baseUrl:window.location.origin};O2(k.prefix)||(F.prefix=Ln(window.location.origin,u.serviceHost==="/"?"":u.serviceHost,k.prefix)),(J=F.extraParams)!=null&&J.provider||(F.extraParams.provider=((O=g==null?void 0:g.user)==null?void 0:O.provider)||"wallet"),await p.openPopup(F,{locale:g.locale})}catch(F){F.message==="Timeout"?wi.error(jF[g.locale]||jF.en):console.error(F)}else p.open(Ie)};return W()&&!g.initialized?Y.jsx(Xp,{children:Y.jsx(jg,{})}):Y.jsx($Ze,{value:fe,children:Y.jsxs(jb,{locale:g.locale,onSwitchPassport:({sessionToken:$e,refreshToken:Ee})=>{z({sessionToken:$e,refreshToken:Ee,encrypted:!1})},onBindOAuth:()=>{L()},children:[!g.open&&typeof u.children=="function"?u.children(g):u.children,h,r.rolling&&Y.jsx(MY,{callback:()=>q()})]})})}s.propTypes={children:be.any.isRequired,serviceHost:be.string,action:be.string,prefix:be.string,appendAuthServicePrefix:be.bool,locale:be.string,timeout:be.number,autoConnect:be.bool,autoDisconnect:be.bool,useSocket:be.bool,extraParams:be.object,options:be.object,webWalletUrl:be.string,protectedRoutes:be.arrayOf(be.string),apiOptions:be.object,lazyRefreshToken:be.bool},s.defaultProps={serviceHost:i,locale:"",action:"login",prefix:P6,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:tZ*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function l(u){return function(h){return Y.jsx(kb,{children:Y.jsx(HF,{children:v=>Y.jsx(u,{...h,...v})})})}}return{SessionProvider:u=>Y.jsx(kb,{children:Y.jsx(s,{...u})}),SessionConsumer:HF,SessionContext:Kf,withSession:l}}let _X="/";window.env&&(_X=window.env.groupPathPrefix||window.env.pathPrefix||"/");function LX(e,t){return[void 0,null,""].includes(e)?t:e/86400}var TH,kH,SH;const NZe=LX((SH=(kH=(TH=window.blocklet)==null?void 0:TH.settings)==null?void 0:kH.session)==null?void 0:SH.cacheTtl,1/144);var AH,DH,wH;const OZe=LX((wH=(DH=(AH=window.blocklet)==null?void 0:AH.settings)==null?void 0:DH.session)==null?void 0:wH.ttl,7),{SessionProvider:MZe,SessionContext:FZe,SessionConsumer:Agt,withSession:Dgt}=BZe("login_token","cookie",{returnDomain:!1,path:_X,expireInDays:NZe},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays:OZe});function PX(){return G.useContext(FZe)}function UZe({children:e}){const t=tz({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return Y.jsx(UV,{injectFirst:!0,children:Y.jsx(ez,{theme:t,children:Y.jsx(FV,{theme:t,children:Y.jsx(p4,{translations:MIe,fallbackLocale:"en",children:Y.jsx(kb,{children:Y.jsx(B_,{theme:t,children:e})})})})})})}const $_=new URL(window.location.href),$X=$_.searchParams.get("mode")||"",HZe=$_.pathname.includes("embed")&&$X==="dialog",jZe=$_.pathname.includes("embed")&&$X!=="dialog";function B_({children:e,theme:t}){var i,a,o;const{locale:n}=M2(),r=Fc`
|
|
632
632
|
${HZe?"body { background-color: transparent }":""}
|
|
633
633
|
${jZe?".MuiModal-backdrop { background-color: transparent !important }":""}
|
|
634
634
|
a {
|
|
@@ -1434,10 +1434,10 @@ ${r.length}`,o=Ft.from(a),s=Ft.concat([o,i]);return Oat.default.keccak256s(s)}et
|
|
|
1434
1434
|
`)&&e.flags==="s")}),aft=Wa,oft=Ga,sft=oft.RegExp,lft=aft(function(){var e=sft("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Ep=ih,pk=ka,cft=dk,uft=_pt,dft=Bpt,pft=U5,fft=eft,hft=Dne.get,mft=ift,gft=lft,vft=pft("native-string-replace",String.prototype.replace),u3=RegExp.prototype.exec,ux=u3,yft=pk("".charAt),bft=pk("".indexOf),Tft=pk("".replace),kE=pk("".slice),dx=function(){var e=/a/,t=/b*/g;return Ep(u3,e,"a"),Ep(u3,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),Bne=dft.BROKEN_CARET,px=/()??/.exec("")[1]!==void 0,kft=dx||px||Bne||mft||gft;kft&&(ux=function(t){var n=this,r=hft(n),i=cft(t),a=r.raw,o,s,l,d,u,p,h;if(a)return a.lastIndex=n.lastIndex,o=Ep(ux,a,i),n.lastIndex=a.lastIndex,o;var v=r.groups,g=Bne&&n.sticky,k=Ep(uft,n),C=n.source,S=0,I=i;if(g&&(k=Tft(k,"y",""),bft(k,"g")===-1&&(k+="g"),I=kE(i,n.lastIndex),n.lastIndex>0&&(!n.multiline||n.multiline&&yft(i,n.lastIndex-1)!==`
|
|
1435
1435
|
`)&&(C="(?: "+C+")",I=" "+I,S++),s=new RegExp("^(?:"+C+")",k)),px&&(s=new RegExp("^"+C+"$(?!\\s)",k)),dx&&(l=n.lastIndex),d=Ep(u3,g?s:n,I),g?d?(d.input=kE(d.input,S),d[0]=kE(d[0],S),d.index=n.lastIndex,n.lastIndex+=d[0].length):n.lastIndex=0:dx&&d&&(n.lastIndex=n.global?d.index+d[0].length:l),px&&d&&d.length>1&&Ep(vft,d[0],s,function(){for(u=1;u<arguments.length-2;u++)arguments[u]===void 0&&(d[u]=void 0)}),d&&v)for(d.groups=p=fft(null),u=0;u<v.length;u++)h=v[u],p[h[0]]=d[h[1]];return d});var Y5=ux,Sft=Ine,nH=Y5;Sft({target:"RegExp",proto:!0,forced:/./.exec!==nH},{exec:nH});var Aft=B5,Nne=Function.prototype,rH=Nne.apply,iH=Nne.call,Dft=typeof Reflect=="object"&&Reflect.apply||(Aft?iH.bind(rH):function(){return iH.apply(rH,arguments)}),wft=L0,Eft=ka,One=function(e){if(wft(e)==="Function")return Eft(e)},aH=One,oH=Ene,Cft=Y5,sH=Wa,Mne=Td,Rft=H5,xft=Mne("species"),SE=RegExp.prototype,Ift=function(e,t,n,r){var i=Mne(e),a=!sH(function(){var d={};return d[i]=function(){return 7},""[e](d)!=7}),o=a&&!sH(function(){var d=!1,u=/a/;return e==="split"&&(u={},u.constructor={},u.constructor[xft]=function(){return u},u.flags="",u[i]=/./[i]),u.exec=function(){return d=!0,null},u[i](""),!d});if(!a||!o||n){var s=aH(/./[i]),l=t(i,""[e],function(d,u,p,h,v){var g=aH(d),k=u.exec;return k===Cft||k===SE.exec?a&&!v?{done:!0,value:s(u,p,h)}:{done:!0,value:g(p,u,h)}:{done:!1}});oH(String.prototype,e,l[0]),oH(SE,i,l[1])}r&&Rft(SE[i],"sham",!0)},Z5=ka,_ft=uk,Lft=dk,Pft=P0,$ft=Z5("".charAt),lH=Z5("".charCodeAt),Bft=Z5("".slice),cH=function(e){return function(t,n){var r=Lft(Pft(t)),i=_ft(n),a=r.length,o,s;return i<0||i>=a?e?"":void 0:(o=lH(r,i),o<55296||o>56319||i+1===a||(s=lH(r,i+1))<56320||s>57343?e?$ft(r,i):o:e?Bft(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},Nft={codeAt:cH(!1),charAt:cH(!0)},Oft=Nft.charAt,Mft=function(e,t,n){return t+(n?Oft(e,t).length:1)},X5=ka,Fft=hne,Uft=Math.floor,AE=X5("".charAt),Hft=X5("".replace),DE=X5("".slice),jft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qft=/\$([$&'`]|\d{1,2})/g,Vft=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,l=qft;return i!==void 0&&(i=Fft(i),l=jft),Hft(a,l,function(d,u){var p;switch(AE(u,0)){case"$":return"$";case"&":return e;case"`":return DE(t,0,n);case"'":return DE(t,o);case"<":p=i[DE(u,1,-1)];break;default:var h=+u;if(h===0)return d;if(h>s){var v=Uft(h/10);return v===0?d:v<=s?r[v-1]===void 0?AE(u,1):r[v-1]+AE(u,1):d}p=r[h-1]}return p===void 0?"":p})},uH=ih,zft=kd,Jft=Ka,Gft=L0,Wft=Y5,Kft=TypeError,Yft=function(e,t){var n=e.exec;if(Jft(n)){var r=uH(n,e,t);return r!==null&&zft(r),r}if(Gft(e)==="RegExp")return uH(Wft,e,t);throw Kft("RegExp#exec called on incompatible receiver")},Zft=Dft,dH=ih,fk=ka,Xft=Ift,Qft=Wa,eht=kd,tht=Ka,nht=N5,rht=uk,iht=z5,tp=dk,aht=P0,oht=Mft,sht=pne,lht=Vft,cht=Yft,uht=Td,fx=uht("replace"),dht=Math.max,pht=Math.min,fht=fk([].concat),wE=fk([].push),pH=fk("".indexOf),fH=fk("".slice),hht=function(e){return e===void 0?e:String(e)},mht=function(){return"a".replace(/./,"$0")==="$0"}(),hH=function(){return/./[fx]?/./[fx]("a","$0")==="":!1}(),ght=!Qft(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"});Xft("replace",function(e,t,n){var r=hH?"$":"$0";return[function(a,o){var s=aht(this),l=nht(a)?void 0:sht(a,fx);return l?dH(l,a,s,o):dH(t,tp(s),a,o)},function(i,a){var o=eht(this),s=tp(i);if(typeof a=="string"&&pH(a,r)===-1&&pH(a,"$<")===-1){var l=n(t,o,s,a);if(l.done)return l.value}var d=tht(a);d||(a=tp(a));var u=o.global;if(u){var p=o.unicode;o.lastIndex=0}for(var h=[];;){var v=cht(o,s);if(v===null||(wE(h,v),!u))break;var g=tp(v[0]);g===""&&(o.lastIndex=oht(s,iht(o.lastIndex),p))}for(var k="",C=0,S=0;S<h.length;S++){v=h[S];for(var I=tp(v[0]),L=dht(pht(rht(v.index),s.length),0),N=[],q=1;q<v.length;q++)wE(N,hht(v[q]));var H=v.groups;if(d){var V=fht([I],N,L,s);H!==void 0&&wE(V,H);var X=tp(Zft(a,void 0,V))}else X=lht(I,s,L,N,H,a);L>=C&&(k+=fH(s,C,L)+X,C=L+I.length)}return k+fH(s,C)}]},!ght||!mht||hH);var vht=ah,yht=L0,bht=Td,Tht=bht("match"),kht=function(e){var t;return vht(e)&&((t=e[Tht])!==void 0?!!t:yht(e)=="RegExp")},Sht=kht,Aht=TypeError,Dht=function(e){if(Sht(e))throw Aht("The method doesn't accept regular expressions");return e},wht=Td,Eht=wht("match"),Cht=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Eht]=!1,"/./"[e](t)}catch{}}return!1},Rht=Ine,Fne=One,xht=lk.f,Iht=z5,mH=dk,_ht=Dht,Lht=P0,Pht=Cht,gH=Fne("".endsWith),$ht=Fne("".slice),Bht=Math.min,Une=Pht("endsWith"),Nht=!Une&&!!function(){var e=xht(String.prototype,"endsWith");return e&&!e.writable}();Rht({target:"String",proto:!0,forced:!Nht&&!Une},{endsWith:function(t){var n=mH(Lht(this));_ht(t);var r=arguments.length>1?arguments[1]:void 0,i=n.length,a=r===void 0?i:Bht(Iht(r),i),o=mH(t);return gH?gH(n,o,a):$ht(n,a-o.length,a)===o}});const Oht={name:"Query"},Mht={name:"Mutation"},Fht=null,Uht=[{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:"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}],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}],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:"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}],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:"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:"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}],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:"updateUserRole",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:"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.
|
|
1436
1436
|
|
|
1437
|
-
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}],Hht=[{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}]}],jht={queryType:Oht,mutationType:Mht,subscriptionType:Fht,types:Uht,directives:Hht},qht=Jte,Vht=jht;let zht=class extends qht{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 Vht}_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 Jht=zht;const Ght=dX,Wht=Jht;class Kht extends Wht{_getSocketOptions(){return{}}_getEventImplementation(){return Ght}}var Yht=Kht;const Zht=Nt(Yht),Xht=(window.env?window.env.apiPrefix:"/")||"/",ul=new Zht(()=>`${Xht}/api/gql?locale=${WC()}`.replace(/\/+/g,"/").trim());function Qht({wsClient:e,event:t,cb:n=()=>{},deps:r=[]}){G.useEffect(()=>{const i=e&&(!r.length||r.every(Boolean));return i&&e.on(t,n),()=>{i&&e.off(t,n)}},r)}let $u;function Hne(){const e=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),t=`//${window.location.host}${e}/admin`;return new b_.WsClient(t,{heartbeatIntervalMs:100*1e3,params:()=>({token:$r.get("login_token")})})}function jne(){return $u||($u=Hne()),$u}const Q5=(e,t=()=>{},n=[])=>{e=`${window.blocklet.did}/${e}`;const{session:r}=PX();!$u&&r.user&&($u=jne(),$u.connect()),Qht({wsClient:$u,event:e,cb:t,deps:n})};let EE=null;const emt=async()=>{try{return(await _0.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},tmt=()=>(EE||(EE=emt()),EE),{Provider:nmt,Consumer:$0t}=K_,rmt=e=>e&&Sc(e,"settings.publicToStore")?e.settings.publicToStore:!1,imt=(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},amt=(()=>{const e={endpoint:"",data:{}};return async t=>{if(e.endpoint===t)return e.data;const r=await Wte(t).getConfig();return e.endpoint=t,e.data=r,r}})(),{did:np,appId:omt}=window.env;function Om({children:e,mode:t}){const[n,r]=G.useState(null),[i,a]=G.useState(!1),[o,s]=G.useState(),[l,d]=G.useState({}),[u,p]=G.useState(),[h,v]=G.useState(),g=t==="setup",{loading:k,loadingRuntimeInfo:C,error:S,blocklet:I,recommendedDomain:L,runtimeHistory:N,actions:{refreshBlocklet:q,refreshDomainStatus:H,setBlocklet:V}}=Grt({did:np,client:ul,useSubscription:Q5,getIP:tmt,useLocaleContext:M2}),X=async()=>{try{a(!0),r(null);const{data:f}=await _0.get("/blocklet/meta");d(f),a(!1)}catch(f){a(!1),r(f),wi.error(f.message)}},re=async({showError:f=!0}={})=>{var _,ne;if(!((ne=(_=l==null?void 0:l.requirements)==null?void 0:_.fuels)!=null&&ne.length))return null;const{endpoint:b,value:D,address:R}=l.requirements.fuels[0],x=imt(b,I),w=D;let E=D;const y={endpoint:x,symbol:"",need:w,current:0,owe:Number(w)>0};try{const M=Wte(x),{config:z}=await amt(x),ie=JSON.parse(z).token;let ce=R;ce||(ce=ie.address),v({address:ie.address,symbol:ie.symbol,decimal:ie.decimal});const{getAccountState:{state:he},getTokenState:{state:De}}=await M.doBatchQuery({getAccountState:{address:omt},getTokenState:{address:ce}});De&&(y.symbol=De.symbol);const j=((he==null?void 0:he.tokens)||[]).find($=>$.address===ce);if(j){const $=ii.fromTokenToUnit(w,j.decimal||18);y.current=ii.fromUnitToToken(j.value,j.decimal||18),y.owe=$.gt(new ii.BN(j.value)),E=Math.max(0,ii.fromUnitToToken($.sub(new ii.BN(j.value)),j.decimal||18))}}catch(M){f&&wi.error(M.message)}return p({...y,deficiency:E}),y},le=async({configs:f,childDid:b})=>(await ul.configBlocklet({input:{did:[np].concat(b).filter(Boolean),configs:f}}),q()),Q=async f=>{const{blocklet:b}=await ul.updateWhoCanAccess({input:{did:[np],whoCanAccess:f}});V(b)},B=async f=>{const{blocklet:b}=await ul.configPublicToStore({input:{did:np,publicToStore:f}});V(b)},T=async f=>{const{blocklet:b}=await ul.configNavigations({input:{did:np,navigations:f}});V(b)};G.useEffect(()=>{g&&X(),q({showError:!1})},[]),G.useEffect(()=>{if(!I||!(I!=null&&I.controller))return;const{controller:f}=I;ort(f.chainHost,f.nftId).then(b=>{b.expirationDate=HR.getNftExpirationDate(b),b.expired=HR.isNFTExpired(b),s(b)}).catch(b=>console.error(b))},[I==null?void 0:I.appPid]);const c={loading:i||k,loadingRuntimeInfo:C,error:n||S,blocklet:I,did:np,recommendedDomain:L,runtimeHistory:N,appIdList:I?Cee(I):[],env:window.blocklet||{},meta:l,gas:u,tokenInfo:h,getPublicInstance:rmt,nftState:o,client:ul,mode:t,actions:{refreshBlocklet:q,refreshDomainStatus:H,setBlocklet:V,refreshMeta:X,refreshFuel:re,configBlocklet:le,configWhoCanAccess:Q,configPublicToStore:B,configNavigations:T}};return Y.jsx(nmt,{value:c,children:e})}Om.propTypes={children:be.any,mode:be.oneOf(["dashboard","setup"]).isRequired};Om.defaultProps={children:null};function B0t(){return G.useContext(K_)}const e7=G.createContext({});function N0t(){const{node:e}=G.useContext(e7);return{...e,inService:e.type==="service",inDaemon:e.type==="daemon"}}const{Provider:smt,Consumer:O0t}=e7,lmt=`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function vH({children:e}){const{serverDid:t,serverVersion:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}=window.env,s={api:ul,restApi:_0,prefix:Wt.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix:lmt,getSessionInHeader:()=>({}),ws:{getWsClient:jne,create:Hne,useSubscription:Q5},type:"service",info:{did:t,version:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}};return Y.jsx(smt,{value:{node:s},children:e})}function M0t(){const{node:e}=G.useContext(e7);return e}const qne=G.createContext({}),{Provider:cmt,Consumer:F0t}=qne;function umt({children:e}){const{did:t}=window.env,[n,r]=G.useState([]),[i,a]=G.useState({total:0,pageSize:10,pageCount:0,page:1}),[o,s]=G.useState(!1),l=async({page:u=1}={})=>{if(!o){s(!0);try{const p=await ul.getBlockletNotifications({input:{paging:{page:u},teamDid:t}});r(p.list),a(p.paging),s(!1)}catch(p){wi.error(p.message),s(!1)}}};G.useEffect(()=>{l()},[]),Q5(Wt.EVENTS.NOTIFICATION_BLOCKLET_CREATE,u=>{r(p=>[u,...p||[]])});const d={loading:o,refresh:l,data:n||[],paging:i,api:ul};return Y.jsx(cmt,{value:{notifications:d},children:e})}function U0t(){const{notifications:e}=G.useContext(qne);return e}const dmt=G.lazy(()=>Ur(()=>import("./login-mPK0ECCS.js"),__vite__mapDeps([0,1,2]))),pmt=G.lazy(()=>Ur(()=>import("./connect-Sa-PoCtv.js"),__vite__mapDeps([3,4,1,5]))),fmt=G.lazy(()=>Ur(()=>import("./exchange-passport-pvHiGWDx.js"),__vite__mapDeps([6,5,7]))),hmt=G.lazy(()=>Ur(()=>import("./issue-passport-EvC83isD.js"),__vite__mapDeps([8,9,5,7,1]))),mmt=G.lazy(()=>Ur(()=>import("./lost-passport-qglsNof1.js"),__vite__mapDeps([10,9,11,12,7,1,13,14]))),gmt=G.lazy(()=>Ur(()=>import("./start-yx6hJR0G.js"),__vite__mapDeps([15,16,12,17,18,19]))),vmt=G.lazy(()=>Ur(()=>import("./setup-LJiMgRrA.js").then(e=>e.s),__vite__mapDeps([20,21,22,23,18,19,17,24,4,25]))),ymt=G.lazy(()=>Ur(()=>import("./invite-Kiuc4f3g.js"),__vite__mapDeps([26,27,1,28,9,7]))),bmt=G.lazy(()=>Ur(()=>import("./transfer-5j4o71oH.js"),__vite__mapDeps([29,9,18,19]))),Tmt=G.lazy(()=>Ur(()=>import("./dashboard-ucoCpVVE.js").then(e=>e.o),__vite__mapDeps([30,31,32,33,28,34,35,36,37,38,39,40,16,41,42,43,44,45,13,46,24,4,25,47,48,49,19,50,51,52,53,54,23,55]))),yH=G.lazy(()=>Ur(()=>import("./user-eRvHZyFC.js"),__vite__mapDeps([56,57,47,51,52,53,48,49,19,13,58,31,12,59,4,60,61,38,43,44,55,62,63,64,65,66,39]))),kmt=G.lazy(()=>Ur(()=>import("./home-UnAPx__h.js"),__vite__mapDeps([67,68,50,51,52,53,54,23,47]))),Smt=G.lazy(()=>Ur(()=>import("./preferences-aHNijIaU.js"),__vite__mapDeps([69,70,50,51,52,53,54,23,68,47]))),Amt=G.lazy(()=>Ur(()=>import("./localization-PhFvv0Bs.js"),__vite__mapDeps([71,68,50,51,52,53,54,23,47]))),Dmt=G.lazy(()=>Ur(()=>import("./add-resource-F5pGDC5G.js"),__vite__mapDeps([72,73,74,75,21,22,23,46,76,77,78,79,11,80,64,63,44,65,62,81,82,25,83,84,36,37,38,39,49,85,86,87,58,28,12,14,88,35,89,90,91,92,47,93,94,66,95,96,97,24,4,98,53,41,99]))),bH=G.lazy(()=>Ur(()=>import("./publish-resource-9a-xQ2Bs.js"),__vite__mapDeps([100,101,40,102,103,87,55,43,44,63,45,65,36,37,38,39,62,64,31,104,54,105,106,84,94,93,34,12,107,13,35,28,66,108,91,82,4,53,109,25]))),wmt=G.lazy(()=>Ur(()=>import("./index-eQh3htj_.js"),__vite__mapDeps([]))),Emt=G.lazy(()=>Ur(()=>import("./unsubscribe-UDtvo2es.js"),__vite__mapDeps([110,111])));function Cmt(){const e=Us();G.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${e.pathname}${e.search}`)},[e]);const t=Y.jsx(Xp,{children:Y.jsx(jg,{})});return Y.jsx(G.Suspense,{fallback:t,children:Y.jsxs(SC,{children:[Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:Y.jsx(mmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:Y.jsx(hmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:Y.jsx(dmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:Y.jsx(pmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:Y.jsx(fmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:Y.jsx(ymt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:Y.jsx(bmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:Y.jsx(kmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:Y.jsx(Smt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:Y.jsx(Amt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:Y.jsx(bu,{children:Y.jsx(gmt,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:Y.jsx(Om,{mode:"setup",children:Y.jsx(vmt,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:Y.jsx(Emt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:Y.jsx(bu,{roles:["*"],children:Y.jsx(yH,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:Y.jsx(bu,{roles:["*"],children:Y.jsx(yH,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:Y.jsx(vH,{children:Y.jsx(umt,{children:Y.jsx(bu,{roles:["owner","admin","member"],children:Y.jsx(Om,{mode:"dashboard",children:Y.jsx(Tmt,{})})})})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:Y.jsx(pV,{to:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:Y.jsx(vH,{children:Y.jsx(bu,{roles:["owner","admin"],children:Y.jsx(Om,{mode:"dashboard",children:Y.jsxs(SC,{children:[Y.jsx(Sr,{path:"publish",element:Y.jsx(bH,{})}),Y.jsx(Sr,{path:"publish/*",element:Y.jsx(bH,{})}),Y.jsx(Sr,{path:"add",element:Y.jsx(Dmt,{})}),Y.jsx(Sr,{path:"*",element:Y.jsx(wmt,{})})]})})})})})]})})}function Rmt(){return Y.jsx(ehe,{basename:Zte,children:Y.jsx(UZe,{children:Y.jsx(Cmt,{})})})}const xmt=Hq(document.getElementById("app"));xmt.render(Y.jsx(Rmt,{}));const Imt=Wt.WELLKNOWN_SERVICE_PATH_PREFIX;{async function e(){const{register:t}=await Ur(()=>import("./index-7SG8bi1h.js"),__vite__mapDeps([]));t(`${Imt}/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{po as $,gd as A,vt as B,Xp as C,_T as D,PJ as E,Fb as F,sg as G,Hz as H,Nwe as I,zt as J,ud as K,rhe as L,cd as M,ea as N,u3e as O,be as P,Ur as Q,L0t as R,jg as S,xi as T,XI as U,_0 as V,ort as W,ul as X,Lrt as Y,PI as Z,l0 as _,Ic as a,ZZ as a$,I0t as a0,_0t as a1,HR as a2,c0t as a3,mf as a4,Art as a5,Fc as a6,Vg as a7,B0t as a8,N0t as a9,mIe as aA,gIe as aB,vIe as aC,yIe as aD,bIe as aE,TIe as aF,SIe as aG,kIe as aH,p4 as aI,Us as aJ,Bs as aK,G_ as aL,tr as aM,er as aN,en as aO,Et as aP,cr as aQ,an as aR,Le as aS,Ku as aT,rn as aU,wr as aV,UC as aW,_4 as aX,_f as aY,t0 as aZ,YZ as a_,V8e as aa,che as ab,xw as ac,x0t as ad,R0t as ae,Glt as af,Zte as ag,vH as ah,SC as ai,Sr as aj,pV as ak,S2 as al,ST as am,Fgt as an,Bgt as ao,Ngt as ap,j8e as aq,F_ as ar,Yi as as,lIe as at,cIe as au,dIe as av,uIe as aw,pIe as ax,fIe as ay,hIe as az,_z as b,QZ as b$,L4 as b0,C4 as b1,yX as b2,r0 as b3,Nt as b4,l4e as b5,V2 as b6,b4 as b7,Frt as b8,Igt as b9,R2e as bA,a0t as bB,E2 as bC,qI as bD,U0t as bE,M0t as bF,UZ as bG,T0t as bH,jne as bI,Sfe as bJ,yr as bK,mg as bL,$a as bM,Fi as bN,Sc as bO,D6 as bP,sr as bQ,cg as bR,b2 as bS,rr as bT,Cl as bU,Gr as bV,Xn as bW,C2 as bX,q_ as bY,V_ as bZ,wgt as b_,xrt as ba,Ert as bb,jgt as bc,X2e as bd,ZI as be,vb as bf,Irt as bg,y0t as bh,Pgt as bi,f0t as bj,Hgt as bk,b0t as bl,$m as bm,Q5 as bn,_I as bo,Pme as bp,Ime as bq,Kf as br,u0t as bs,Rz as bt,n0t as bu,qg as bv,Ugt as bw,U2e as bx,nrt as by,za as bz,Ln as c,jc as c$,e4 as c0,Hqe as c1,Ii as c2,sgt as c3,lgt as c4,vm as c5,fn as c6,u4 as c7,s0 as c8,Lmt as c9,Aee as cA,nU as cB,T3e as cC,egt as cD,ngt as cE,K$ as cF,rgt as cG,XV as cH,$z as cI,P3e as cJ,Pz as cK,g2 as cL,v2 as cM,ad as cN,fgt as cO,Nrt as cP,C0t as cQ,$r as cR,YQ as cS,ii as cT,zgt as cU,KZ as cV,a4 as cW,VDe as cX,o4 as cY,mnt as cZ,l4 as c_,uI as ca,Lz as cb,Nz as cc,h4 as cd,IY as ce,hhe as cf,gz as cg,KV as ch,Od as ci,ei as cj,vI as ck,Rc as cl,hl as cm,mi as cn,vo as co,bW as cp,et as cq,Cqe as cr,Srt as cs,ugt as ct,z2 as cu,Ygt as cv,k6 as cw,Y6 as cx,e3e as cy,n3e as cz,PX as d,e0t as d$,$gt as d0,Z6 as d1,Ogt as d2,Jgt as d3,s0t as d4,p0t as d5,Urt as d6,nW as d7,_mt as d8,Ggt as d9,p2 as dA,r0e as dB,Rl as dC,Hmt as dD,VV as dE,ko as dF,Umt as dG,JV as dH,YV as dI,Fg as dJ,T1e as dK,rz as dL,bgt as dM,xgt as dN,Lg as dO,k1e as dP,Ju as dQ,Wmt as dR,Z2 as dS,J8e as dT,rR as dU,W2 as dV,K2 as dW,af as dX,ri as dY,f0e as dZ,Ft as d_,Kgt as da,D0t as db,i_ as dc,N6 as dd,Rgt as de,Tl as df,Xgt as dg,Kte as dh,Jlt as di,Gee as dj,Wte as dk,Wu as dl,sR as dm,S0t as dn,tz as dp,ogt as dq,UV as dr,ez as ds,FV as dt,Bl as du,d1e as dv,ru as dw,DC as dx,SV as dy,yI as dz,I3 as e,Jmt as e$,$G as e0,Vgt as e1,r0t as e2,o0t as e3,kWe as e4,Ta as e5,k0t as e6,MC as e7,G8e as e8,Hq as e9,UF as eA,qz as eB,M2e as eC,X$ as eD,Z$ as eE,P2e as eF,igt as eG,Kt as eH,Mmt as eI,Omt as eJ,Nmt as eK,Fmt as eL,f4 as eM,a_ as eN,dd as eO,i0 as eP,ZVe as eQ,hJ as eR,qZ as eS,Fz as eT,i0t as eU,Vme as eV,g0e as eW,ige as eX,Wme as eY,Hg as eZ,zmt as e_,rrt as ea,Rrt as eb,h0t as ec,yrt as ed,l0t as ee,Qgt as ef,oF as eg,wrt as eh,ert as ei,t0t as ej,PT as ek,Vnt as el,v0t as em,q2 as en,GGe as eo,iWe as ep,JX as eq,T4 as er,D7e as es,_rt as et,Prt as eu,FI as ev,hz as ew,X6 as ex,c0e as ey,ove as ez,xt as f,eR as f$,u0e as f0,Vmt as f1,jmt as f2,d2 as f3,Ug as f4,b$ as f5,s0e as f6,Gu as f7,j0e as f8,Gmt as f9,Wgt as fA,mgt as fB,Zgt as fC,Brt as fD,Ort as fE,trt as fF,irt as fG,QJ as fH,xT as fI,NZ as fJ,ub as fK,z3 as fL,vz as fM,Bmt as fN,eW as fO,FJ as fP,Mgt as fQ,mme as fR,oW as fS,R4 as fT,OJe as fU,q5e as fV,hW as fW,l5 as fX,c5 as fY,gf as fZ,Cgt as f_,xl as fa,QV as fb,W0e as fc,l0e as fd,IC as fe,i0e as ff,A0e as fg,m2 as fh,g1e as fi,qmt as fj,sve as fk,Xmt as fl,xve as fm,Ive as fn,Bve as fo,Qmt as fp,Hn as fq,Lbe as fr,H1 as fs,Zbe as ft,Q2e as fu,Bh as fv,oTe as fw,ml as fx,gme as fy,qgt as fz,Xg as g,Lgt as g0,vgt as g1,d0t as g2,aF as g3,wb as g4,hgt as g5,X7e as g6,_C as g7,_gt as g8,Kmt as g9,qT as gA,eWe as gB,m4 as gC,N8e as gD,pgt as gE,dgt as gF,tW as gG,LG as gH,dX as gI,iY as gJ,m0t as gK,xz as gL,YLe as gM,t1e as ga,Zmt as gb,Q1e as gc,Wbe as gd,t2e as ge,tgt as gf,H2e as gg,agt as gh,$mt as gi,K6 as gj,h2 as gk,X1e as gl,nye as gm,XS as gn,Ymt as go,phe as gp,M1 as gq,Crt as gr,Drt as gs,$rt as gt,zQ as gu,J1e as gv,A2 as gw,j2 as gx,Uc as gy,I1e as gz,o0 as h,ji as i,Y as j,P6 as k,Gf as l,g0 as m,wi as n,E0t as o,_J as p,Pmt as q,G as r,w0t as s,pc as t,M2 as u,mn as v,Wt as w,RWe as x,_Y as y,FZe as z};
|
|
1437
|
+
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}],Hht=[{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}]}],jht={queryType:Oht,mutationType:Mht,subscriptionType:Fht,types:Uht,directives:Hht},qht=Jte,Vht=jht;let zht=class extends qht{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 Vht}_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 Jht=zht;const Ght=dX,Wht=Jht;class Kht extends Wht{_getSocketOptions(){return{}}_getEventImplementation(){return Ght}}var Yht=Kht;const Zht=Nt(Yht),Xht=(window.env?window.env.apiPrefix:"/")||"/",ul=new Zht(()=>`${Xht}/api/gql?locale=${WC()}`.replace(/\/+/g,"/").trim());function Qht({wsClient:e,event:t,cb:n=()=>{},deps:r=[]}){G.useEffect(()=>{const i=e&&(!r.length||r.every(Boolean));return i&&e.on(t,n),()=>{i&&e.off(t,n)}},r)}let $u;function Hne(){const e=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),t=`//${window.location.host}${e}/admin`;return new b_.WsClient(t,{heartbeatIntervalMs:100*1e3,params:()=>({token:$r.get("login_token")})})}function jne(){return $u||($u=Hne()),$u}const Q5=(e,t=()=>{},n=[])=>{e=`${window.blocklet.did}/${e}`;const{session:r}=PX();!$u&&r.user&&($u=jne(),$u.connect()),Qht({wsClient:$u,event:e,cb:t,deps:n})};let EE=null;const emt=async()=>{try{return(await _0.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},tmt=()=>(EE||(EE=emt()),EE),{Provider:nmt,Consumer:$0t}=K_,rmt=e=>e&&Sc(e,"settings.publicToStore")?e.settings.publicToStore:!1,imt=(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},amt=(()=>{const e={endpoint:"",data:{}};return async t=>{if(e.endpoint===t)return e.data;const r=await Wte(t).getConfig();return e.endpoint=t,e.data=r,r}})(),{did:np,appId:omt}=window.env;function Om({children:e,mode:t}){const[n,r]=G.useState(null),[i,a]=G.useState(!1),[o,s]=G.useState(),[l,d]=G.useState({}),[u,p]=G.useState(),[h,v]=G.useState(),g=t==="setup",{loading:k,loadingRuntimeInfo:C,error:S,blocklet:I,recommendedDomain:L,runtimeHistory:N,actions:{refreshBlocklet:q,refreshDomainStatus:H,setBlocklet:V}}=Grt({did:np,client:ul,useSubscription:Q5,getIP:tmt,useLocaleContext:M2}),X=async()=>{try{a(!0),r(null);const{data:f}=await _0.get("/blocklet/meta");d(f),a(!1)}catch(f){a(!1),r(f),wi.error(f.message)}},re=async({showError:f=!0}={})=>{var _,ne;if(!((ne=(_=l==null?void 0:l.requirements)==null?void 0:_.fuels)!=null&&ne.length))return null;const{endpoint:b,value:D,address:R}=l.requirements.fuels[0],x=imt(b,I),w=D;let E=D;const y={endpoint:x,symbol:"",need:w,current:0,owe:Number(w)>0};try{const M=Wte(x),{config:z}=await amt(x),ie=JSON.parse(z).token;let ce=R;ce||(ce=ie.address),v({address:ie.address,symbol:ie.symbol,decimal:ie.decimal});const{getAccountState:{state:he},getTokenState:{state:De}}=await M.doBatchQuery({getAccountState:{address:omt},getTokenState:{address:ce}});De&&(y.symbol=De.symbol);const j=((he==null?void 0:he.tokens)||[]).find($=>$.address===ce);if(j){const $=ii.fromTokenToUnit(w,j.decimal||18);y.current=ii.fromUnitToToken(j.value,j.decimal||18),y.owe=$.gt(new ii.BN(j.value)),E=Math.max(0,ii.fromUnitToToken($.sub(new ii.BN(j.value)),j.decimal||18))}}catch(M){f&&wi.error(M.message)}return p({...y,deficiency:E}),y},le=async({configs:f,childDid:b})=>(await ul.configBlocklet({input:{did:[np].concat(b).filter(Boolean),configs:f}}),q()),Q=async f=>{const{blocklet:b}=await ul.updateWhoCanAccess({input:{did:[np],whoCanAccess:f}});V(b)},B=async f=>{const{blocklet:b}=await ul.configPublicToStore({input:{did:np,publicToStore:f}});V(b)},T=async f=>{const{blocklet:b}=await ul.configNavigations({input:{did:np,navigations:f}});V(b)};G.useEffect(()=>{g&&X(),q({showError:!1})},[]),G.useEffect(()=>{if(!I||!(I!=null&&I.controller))return;const{controller:f}=I;ort(f.chainHost,f.nftId).then(b=>{b.expirationDate=HR.getNftExpirationDate(b),b.expired=HR.isNFTExpired(b),s(b)}).catch(b=>console.error(b))},[I==null?void 0:I.appPid]);const c={loading:i||k,loadingRuntimeInfo:C,error:n||S,blocklet:I,did:np,recommendedDomain:L,runtimeHistory:N,appIdList:I?Cee(I):[],env:window.blocklet||{},meta:l,gas:u,tokenInfo:h,getPublicInstance:rmt,nftState:o,client:ul,mode:t,actions:{refreshBlocklet:q,refreshDomainStatus:H,setBlocklet:V,refreshMeta:X,refreshFuel:re,configBlocklet:le,configWhoCanAccess:Q,configPublicToStore:B,configNavigations:T}};return Y.jsx(nmt,{value:c,children:e})}Om.propTypes={children:be.any,mode:be.oneOf(["dashboard","setup"]).isRequired};Om.defaultProps={children:null};function B0t(){return G.useContext(K_)}const e7=G.createContext({});function N0t(){const{node:e}=G.useContext(e7);return{...e,inService:e.type==="service",inDaemon:e.type==="daemon"}}const{Provider:smt,Consumer:O0t}=e7,lmt=`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function vH({children:e}){const{serverDid:t,serverVersion:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}=window.env,s={api:ul,restApi:_0,prefix:Wt.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix:lmt,getSessionInHeader:()=>({}),ws:{getWsClient:jne,create:Hne,useSubscription:Q5},type:"service",info:{did:t,version:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}};return Y.jsx(smt,{value:{node:s},children:e})}function M0t(){const{node:e}=G.useContext(e7);return e}const qne=G.createContext({}),{Provider:cmt,Consumer:F0t}=qne;function umt({children:e}){const{did:t}=window.env,[n,r]=G.useState([]),[i,a]=G.useState({total:0,pageSize:10,pageCount:0,page:1}),[o,s]=G.useState(!1),l=async({page:u=1}={})=>{if(!o){s(!0);try{const p=await ul.getBlockletNotifications({input:{paging:{page:u},teamDid:t}});r(p.list),a(p.paging),s(!1)}catch(p){wi.error(p.message),s(!1)}}};G.useEffect(()=>{l()},[]),Q5(Wt.EVENTS.NOTIFICATION_BLOCKLET_CREATE,u=>{r(p=>[u,...p||[]])});const d={loading:o,refresh:l,data:n||[],paging:i,api:ul};return Y.jsx(cmt,{value:{notifications:d},children:e})}function U0t(){const{notifications:e}=G.useContext(qne);return e}const dmt=G.lazy(()=>Ur(()=>import("./login-ihXqRdGT.js"),__vite__mapDeps([0,1,2]))),pmt=G.lazy(()=>Ur(()=>import("./connect-rbx5T2GT.js"),__vite__mapDeps([3,4,1,5]))),fmt=G.lazy(()=>Ur(()=>import("./exchange-passport-XMcIXLjZ.js"),__vite__mapDeps([6,5,7]))),hmt=G.lazy(()=>Ur(()=>import("./issue-passport-TlmpXOGE.js"),__vite__mapDeps([8,9,5,7,1]))),mmt=G.lazy(()=>Ur(()=>import("./lost-passport-aeYrHQyC.js"),__vite__mapDeps([10,9,11,12,7,1,13,14]))),gmt=G.lazy(()=>Ur(()=>import("./start-OS7_x_to.js"),__vite__mapDeps([15,16,12,17,18,19]))),vmt=G.lazy(()=>Ur(()=>import("./setup-E-WnVF3c.js").then(e=>e.s),__vite__mapDeps([20,21,22,23,18,19,17,24,4,25]))),ymt=G.lazy(()=>Ur(()=>import("./invite-kMtkdup7.js"),__vite__mapDeps([26,27,1,28,9,7]))),bmt=G.lazy(()=>Ur(()=>import("./transfer-nZJ3uNpL.js"),__vite__mapDeps([29,9,18,19]))),Tmt=G.lazy(()=>Ur(()=>import("./dashboard-fV0BczKQ.js").then(e=>e.o),__vite__mapDeps([30,31,32,33,28,34,35,36,37,38,39,40,16,41,42,43,44,45,13,46,24,4,25,47,48,49,19,50,51,52,53,54,23,55]))),yH=G.lazy(()=>Ur(()=>import("./user-IWQIFpC6.js"),__vite__mapDeps([56,57,47,51,52,53,48,49,19,13,58,31,12,59,4,60,61,38,43,44,55,62,63,64,65,66,39]))),kmt=G.lazy(()=>Ur(()=>import("./home-p-h3Ka4K.js"),__vite__mapDeps([67,68,50,51,52,53,54,23,47]))),Smt=G.lazy(()=>Ur(()=>import("./preferences-O017YSkE.js"),__vite__mapDeps([69,70,50,51,52,53,54,23,68,47]))),Amt=G.lazy(()=>Ur(()=>import("./localization-RolchIpb.js"),__vite__mapDeps([71,68,50,51,52,53,54,23,47]))),Dmt=G.lazy(()=>Ur(()=>import("./add-resource-gfheYdrT.js"),__vite__mapDeps([72,73,74,75,21,22,23,46,76,77,78,79,11,80,64,63,44,65,62,81,82,25,83,84,36,37,38,39,49,85,86,87,58,28,12,14,88,35,89,90,91,92,47,93,94,66,95,96,97,24,4,98,53,41,99]))),bH=G.lazy(()=>Ur(()=>import("./publish-resource-9olgaUUj.js"),__vite__mapDeps([100,101,40,102,103,87,55,43,44,63,45,65,36,37,38,39,62,64,31,104,54,105,106,84,94,93,34,12,107,13,35,28,66,108,91,82,4,53,109,25]))),wmt=G.lazy(()=>Ur(()=>import("./index-4oRyCjgx.js"),__vite__mapDeps([]))),Emt=G.lazy(()=>Ur(()=>import("./unsubscribe-kdT3WbRL.js"),__vite__mapDeps([110,111])));function Cmt(){const e=Us();G.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${e.pathname}${e.search}`)},[e]);const t=Y.jsx(Xp,{children:Y.jsx(jg,{})});return Y.jsx(G.Suspense,{fallback:t,children:Y.jsxs(SC,{children:[Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:Y.jsx(mmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:Y.jsx(hmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:Y.jsx(dmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:Y.jsx(pmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:Y.jsx(fmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:Y.jsx(ymt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:Y.jsx(bmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:Y.jsx(kmt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:Y.jsx(Smt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:Y.jsx(Amt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:Y.jsx(bu,{children:Y.jsx(gmt,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:Y.jsx(Om,{mode:"setup",children:Y.jsx(vmt,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:Y.jsx(Emt,{})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:Y.jsx(bu,{roles:["*"],children:Y.jsx(yH,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:Y.jsx(bu,{roles:["*"],children:Y.jsx(yH,{})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:Y.jsx(vH,{children:Y.jsx(umt,{children:Y.jsx(bu,{roles:["owner","admin","member"],children:Y.jsx(Om,{mode:"dashboard",children:Y.jsx(Tmt,{})})})})})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:Y.jsx(pV,{to:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),Y.jsx(Sr,{path:`${Wt.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:Y.jsx(vH,{children:Y.jsx(bu,{roles:["owner","admin"],children:Y.jsx(Om,{mode:"dashboard",children:Y.jsxs(SC,{children:[Y.jsx(Sr,{path:"publish",element:Y.jsx(bH,{})}),Y.jsx(Sr,{path:"publish/*",element:Y.jsx(bH,{})}),Y.jsx(Sr,{path:"add",element:Y.jsx(Dmt,{})}),Y.jsx(Sr,{path:"*",element:Y.jsx(wmt,{})})]})})})})})]})})}function Rmt(){return Y.jsx(ehe,{basename:Zte,children:Y.jsx(UZe,{children:Y.jsx(Cmt,{})})})}const xmt=Hq(document.getElementById("app"));xmt.render(Y.jsx(Rmt,{}));const Imt=Wt.WELLKNOWN_SERVICE_PATH_PREFIX;{async function e(){const{register:t}=await Ur(()=>import("./index-7SG8bi1h.js"),__vite__mapDeps([]));t(`${Imt}/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{po as $,gd as A,vt as B,Xp as C,_T as D,PJ as E,Fb as F,sg as G,Hz as H,Nwe as I,zt as J,ud as K,rhe as L,cd as M,ea as N,u3e as O,be as P,Ur as Q,L0t as R,jg as S,xi as T,XI as U,_0 as V,ort as W,ul as X,Lrt as Y,PI as Z,l0 as _,Ic as a,ZZ as a$,I0t as a0,_0t as a1,HR as a2,c0t as a3,mf as a4,Art as a5,Fc as a6,Vg as a7,B0t as a8,N0t as a9,mIe as aA,gIe as aB,vIe as aC,yIe as aD,bIe as aE,TIe as aF,SIe as aG,kIe as aH,p4 as aI,Us as aJ,Bs as aK,G_ as aL,tr as aM,er as aN,en as aO,Et as aP,cr as aQ,an as aR,Le as aS,Ku as aT,rn as aU,wr as aV,UC as aW,_4 as aX,_f as aY,t0 as aZ,YZ as a_,V8e as aa,che as ab,xw as ac,x0t as ad,R0t as ae,Glt as af,Zte as ag,vH as ah,SC as ai,Sr as aj,pV as ak,S2 as al,ST as am,Fgt as an,Bgt as ao,Ngt as ap,j8e as aq,F_ as ar,Yi as as,lIe as at,cIe as au,dIe as av,uIe as aw,pIe as ax,fIe as ay,hIe as az,_z as b,QZ as b$,L4 as b0,C4 as b1,yX as b2,r0 as b3,Nt as b4,l4e as b5,V2 as b6,b4 as b7,Frt as b8,Igt as b9,R2e as bA,a0t as bB,E2 as bC,qI as bD,U0t as bE,M0t as bF,UZ as bG,T0t as bH,jne as bI,Sfe as bJ,yr as bK,mg as bL,$a as bM,Fi as bN,Sc as bO,D6 as bP,sr as bQ,cg as bR,b2 as bS,rr as bT,Cl as bU,Gr as bV,Xn as bW,C2 as bX,q_ as bY,V_ as bZ,wgt as b_,xrt as ba,Ert as bb,jgt as bc,X2e as bd,ZI as be,vb as bf,Irt as bg,y0t as bh,Pgt as bi,f0t as bj,Hgt as bk,b0t as bl,$m as bm,Q5 as bn,_I as bo,Pme as bp,Ime as bq,Kf as br,u0t as bs,Rz as bt,n0t as bu,qg as bv,Ugt as bw,U2e as bx,nrt as by,za as bz,Ln as c,jc as c$,e4 as c0,Hqe as c1,Ii as c2,sgt as c3,lgt as c4,vm as c5,fn as c6,u4 as c7,s0 as c8,Lmt as c9,Aee as cA,nU as cB,T3e as cC,egt as cD,ngt as cE,K$ as cF,rgt as cG,XV as cH,$z as cI,P3e as cJ,Pz as cK,g2 as cL,v2 as cM,ad as cN,fgt as cO,Nrt as cP,C0t as cQ,$r as cR,YQ as cS,ii as cT,zgt as cU,KZ as cV,a4 as cW,VDe as cX,o4 as cY,mnt as cZ,l4 as c_,uI as ca,Lz as cb,Nz as cc,h4 as cd,IY as ce,hhe as cf,gz as cg,KV as ch,Od as ci,ei as cj,vI as ck,Rc as cl,hl as cm,mi as cn,vo as co,bW as cp,et as cq,Cqe as cr,Srt as cs,ugt as ct,z2 as cu,Ygt as cv,k6 as cw,Y6 as cx,e3e as cy,n3e as cz,PX as d,e0t as d$,$gt as d0,Z6 as d1,Ogt as d2,Jgt as d3,s0t as d4,p0t as d5,Urt as d6,nW as d7,_mt as d8,Ggt as d9,p2 as dA,r0e as dB,Rl as dC,Hmt as dD,VV as dE,ko as dF,Umt as dG,JV as dH,YV as dI,Fg as dJ,T1e as dK,rz as dL,bgt as dM,xgt as dN,Lg as dO,k1e as dP,Ju as dQ,Wmt as dR,Z2 as dS,J8e as dT,rR as dU,W2 as dV,K2 as dW,af as dX,ri as dY,f0e as dZ,Ft as d_,Kgt as da,D0t as db,i_ as dc,N6 as dd,Rgt as de,Tl as df,Xgt as dg,Kte as dh,Jlt as di,Gee as dj,Wte as dk,Wu as dl,sR as dm,S0t as dn,tz as dp,ogt as dq,UV as dr,ez as ds,FV as dt,Bl as du,d1e as dv,ru as dw,DC as dx,SV as dy,yI as dz,I3 as e,Jmt as e$,$G as e0,Vgt as e1,r0t as e2,o0t as e3,kWe as e4,Ta as e5,k0t as e6,MC as e7,G8e as e8,Hq as e9,UF as eA,qz as eB,M2e as eC,X$ as eD,Z$ as eE,P2e as eF,igt as eG,Kt as eH,Mmt as eI,Omt as eJ,Nmt as eK,Fmt as eL,f4 as eM,a_ as eN,dd as eO,i0 as eP,ZVe as eQ,hJ as eR,qZ as eS,Fz as eT,i0t as eU,Vme as eV,g0e as eW,ige as eX,Wme as eY,Hg as eZ,zmt as e_,rrt as ea,Rrt as eb,h0t as ec,yrt as ed,l0t as ee,Qgt as ef,oF as eg,wrt as eh,ert as ei,t0t as ej,PT as ek,Vnt as el,v0t as em,q2 as en,GGe as eo,iWe as ep,JX as eq,T4 as er,D7e as es,_rt as et,Prt as eu,FI as ev,hz as ew,X6 as ex,c0e as ey,ove as ez,xt as f,eR as f$,u0e as f0,Vmt as f1,jmt as f2,d2 as f3,Ug as f4,b$ as f5,s0e as f6,Gu as f7,j0e as f8,Gmt as f9,Wgt as fA,mgt as fB,Zgt as fC,Brt as fD,Ort as fE,trt as fF,irt as fG,QJ as fH,xT as fI,NZ as fJ,ub as fK,z3 as fL,vz as fM,Bmt as fN,eW as fO,FJ as fP,Mgt as fQ,mme as fR,oW as fS,R4 as fT,OJe as fU,q5e as fV,hW as fW,l5 as fX,c5 as fY,gf as fZ,Cgt as f_,xl as fa,QV as fb,W0e as fc,l0e as fd,IC as fe,i0e as ff,A0e as fg,m2 as fh,g1e as fi,qmt as fj,sve as fk,Xmt as fl,xve as fm,Ive as fn,Bve as fo,Qmt as fp,Hn as fq,Lbe as fr,H1 as fs,Zbe as ft,Q2e as fu,Bh as fv,oTe as fw,ml as fx,gme as fy,qgt as fz,Xg as g,Lgt as g0,vgt as g1,d0t as g2,aF as g3,wb as g4,hgt as g5,X7e as g6,_C as g7,_gt as g8,Kmt as g9,qT as gA,eWe as gB,m4 as gC,N8e as gD,pgt as gE,dgt as gF,tW as gG,LG as gH,dX as gI,iY as gJ,m0t as gK,xz as gL,YLe as gM,t1e as ga,Zmt as gb,Q1e as gc,Wbe as gd,t2e as ge,tgt as gf,H2e as gg,agt as gh,$mt as gi,K6 as gj,h2 as gk,X1e as gl,nye as gm,XS as gn,Ymt as go,phe as gp,M1 as gq,Crt as gr,Drt as gs,$rt as gt,zQ as gu,J1e as gv,A2 as gw,j2 as gx,Uc as gy,I1e as gz,o0 as h,ji as i,Y as j,P6 as k,Gf as l,g0 as m,wi as n,E0t as o,_J as p,Pmt as q,G as r,w0t as s,pc as t,M2 as u,mn as v,Wt as w,RWe as x,_Y as y,FZe as z};
|
|
1438
1438
|
function __vite__mapDeps(indexes) {
|
|
1439
1439
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
1440
|
-
__vite__mapDeps.viteFileDeps = ["assets/login-
|
|
1440
|
+
__vite__mapDeps.viteFileDeps = ["assets/login-ihXqRdGT.js","assets/use-passport-id-pXgWCnyq.js","assets/LaunchOutlined-lpo-HuHe.js","assets/connect-rbx5T2GT.js","assets/index-bkJmmZxf.js","assets/fullpage-ZETP85XU.js","assets/exchange-passport-XMcIXLjZ.js","assets/wrap-locale-muuCseT-.js","assets/issue-passport-TlmpXOGE.js","assets/CheckCircle-YDuvJgsY.js","assets/lost-passport-aeYrHQyC.js","assets/Done-6x0KAx6b.js","assets/did-address-zj1cM-u2.js","assets/Avatar-yqyuIZ56.js","assets/Stepper-cogqYRt3.js","assets/start-OS7_x_to.js","assets/PlayArrow-aZsZH5W7.js","assets/ServerLogo-CSR6LLNC.js","assets/addon-pRI3jYW5.js","assets/selector-aWeTH_Xy.js","assets/setup-E-WnVF3c.js","assets/index-SfrVnmj3.js","assets/Skeleton-MQVf1zeC.js","assets/Hidden-_2gAiz8I.js","assets/spaces-zU6EswmD.js","assets/api-VkXAZ8rS.js","assets/invite-kMtkdup7.js","assets/index-xy2NREuZ.js","assets/session-ieY35lEq.js","assets/transfer-nZJ3uNpL.js","assets/dashboard-fV0BczKQ.js","assets/index-kGlwpUUE.js","assets/permission-ZvEWJSxV.js","assets/useAsync-4TdvRTWi.js","assets/MoreVert-P_r5HcyN.js","assets/useLocalStorage-HSuIS8dC.js","assets/confirm-U8trI8sh.js","assets/DialogContentText-rCKX8V2o.js","assets/Alert-vWiM7yjS.js","assets/format-error-2W3A06Jw.js","assets/useSetState-MgFJAi6n.js","assets/ButtonGroup-F595PjjB.js","assets/RadioGroup-R24vXL2w.js","assets/FormControlLabel-efXmMNAj.js","assets/useFormControl-Qd1sZJH7.js","assets/FormGroup-62MBopyd.js","assets/index-ZWk0ce0v.js","assets/fallback-liNYH2Ir.js","assets/wallet-hidden-topbar-QxBPCxK0.js","assets/ListItem-X7GPpG5G.js","assets/index-J75uP8vG.js","assets/nav-menu-q73bLcEq.js","assets/MoreHoriz-UJyFgSQT.js","assets/ExpandMore-cCR6PfVd.js","assets/Toolbar-xxqBJj87.js","assets/Checkbox-FAvvPRMi.js","assets/user-IWQIFpC6.js","assets/index-sPvdoX0V.js","assets/index-WOHYN7r2.js","assets/did-utils-w4Fz-kUW.js","assets/index.esm-seyLxH9D.js","assets/confirm-OAB3XwCu.js","assets/Select-JkWGcMNY.js","assets/FormControl-FuFP_-xW.js","assets/TextField-u2bxSAc-.js","assets/InputLabel-sJuMXXTU.js","assets/InputAdornment-tAiuMjJ3.js","assets/home-p-h3Ka4K.js","assets/studio-cTSL4ry_.js","assets/preferences-O017YSkE.js","assets/iframe-ntkUMxwt.js","assets/localization-RolchIpb.js","assets/add-resource-gfheYdrT.js","assets/add-component-core-lt9WbiLS.js","assets/uniqBy-MB2OLxCc.js","assets/page-header-3dDUdORn.js","assets/lottie-sh4s0pNq.js","assets/launch-result-message-F8Ofxx_e.js","assets/index-UVz8nDjF.js","assets/EditIcon-0Rwc1Sfx.js","assets/Google-bfk_WZie.js","assets/logo-uploader-ka1rqsHQ.js","assets/index-dbP1WPUp.js","assets/jss-plugin-props-sort.esm-U5ZnYCzJ.js","assets/toPropertyKey-NzAT2yhV.js","assets/util-lFswG4bk.js","assets/index-WO73mi9B.js","assets/TableRow-S0z2jg7V.js","assets/ArrowDropDown-VDOchtvn.js","assets/Add-LDEf8DQg.js","assets/Launch-skY4QDHZ.js","assets/DeleteOutline-Na5jYanp.js","assets/click-to-copy-0Jqh0K6m.js","assets/Search-mY4_Gjp8.js","assets/Grid-hq8tXmAE.js","assets/preact.module-yJdvQMHZ.js","assets/content-layout-rHIg8LgN.js","assets/use-blocklet-info-for-connect-did-spaces-Zu5fLwEo.js","assets/index-g4tgCwv9.js","assets/add-component-core-wegghUnI.css","assets/publish-resource-9olgaUUj.js","assets/index-oIQOqerV.js","assets/index-OcPycBwK.js","assets/FilterList-_e3TGjvk.js","assets/LastPage-yJC3z7U6.js","assets/index-ureJxRiy.js","assets/redux-XOuz_cVf.js","assets/ChevronRight-2zV-EBdQ.js","assets/Download-SHFaFook.js","assets/OpenInNew-wkpRYQBR.js","assets/unsubscribe-kdT3WbRL.js","assets/CardContent-ekWcA9xq.js"]
|
|
1441
1441
|
}
|
|
1442
1442
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
1443
1443
|
}
|