@abtnode/blocklet-services 1.16.42-beta-20250407-220350-e3782a91 → 1.16.42-beta-20250408-050422-92c8eef3
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/{ArrowDropDown-CIcX9so8.js → ArrowDropDown-WXsjNpSB.js} +1 -1
- package/dist/assets/{CheckCircle-BBenFQEZ.js → CheckCircle-D7CrWlJ6.js} +1 -1
- package/dist/assets/{ChevronLeft-XZDsaitS.js → ChevronLeft-DeulnkX8.js} +1 -1
- package/dist/assets/{ChevronRight-DfhN5qTp.js → ChevronRight-CACHNf5Y.js} +1 -1
- package/dist/assets/{DeleteOutline-DVPNhMfh.js → DeleteOutline-DT1G93_1.js} +1 -1
- package/dist/assets/{Done-Bu72PctM.js → Done-D9sjuoNQ.js} +1 -1
- package/dist/assets/{Download-CDVTENqI.js → Download-CBzqKt6X.js} +1 -1
- package/dist/assets/{Error-CDj0R4_e.js → Error-l_WxG8z-.js} +1 -1
- package/dist/assets/{ExpandLess-Dt46nF0t.js → ExpandLess-uIJAqSZm.js} +1 -1
- package/dist/assets/{Google-BxEqzKy9.js → Google-BchHLUIl.js} +1 -1
- package/dist/assets/{InfoOutlined-Cga_EIiY.js → InfoOutlined-DFTm-vVr.js} +1 -1
- package/dist/assets/{Launch-hbSlZ0zw.js → Launch-DQCS90NS.js} +1 -1
- package/dist/assets/{LaunchOutlined-FPKJQ1Ta.js → LaunchOutlined-DttrDnYo.js} +1 -1
- package/dist/assets/{MoreHoriz-CiMTPRBH.js → MoreHoriz-BD8SroCJ.js} +1 -1
- package/dist/assets/{PlayArrow-CTZ2QlWx.js → PlayArrow-BEUAi9Bt.js} +1 -1
- package/dist/assets/{TuneOutlined-BVx9kD7P.js → TuneOutlined-CzDTcEdK.js} +1 -1
- package/dist/assets/{ViewList-Rdv91ijz.js → ViewList-6gwww-su.js} +1 -1
- package/dist/assets/{access-control-DZAkdMhI.js → access-control-Bp6fLweq.js} +1 -1
- package/dist/assets/{actions-DVfOVgcp.js → actions-C9vqEgMU.js} +1 -1
- package/dist/assets/{add-component-core-BRwA72Ul.js → add-component-core-e0A2r7mm.js} +1 -1
- package/dist/assets/{add-resource-DmAz4Wic.js → add-resource-tZ8OPVzc.js} +1 -1
- package/dist/assets/{addon-dV77wOE-.js → addon-BNDsoean.js} +1 -1
- package/dist/assets/{advanced-C5DmDZyt.js → advanced-vuRNp9gZ.js} +1 -1
- package/dist/assets/{appearance-B_lR60lO.js → appearance-CFcde0Qw.js} +1 -1
- package/dist/assets/{audit-logs-C0ApIidf.js → audit-logs-C51Acdy3.js} +1 -1
- package/dist/assets/{base32-CHVLLVvB.js → base32-CEWQZb_G.js} +1 -1
- package/dist/assets/{branding-CHqonQEq.js → branding-B4OmIbxT.js} +1 -1
- package/dist/assets/{branding-DlWkjNZy.js → branding-PF95Dp3j.js} +2 -2
- package/dist/assets/{bundle-avatar-CP1Y8_9Y.js → bundle-avatar-xyEwd0kl.js} +1 -1
- package/dist/assets/{button-CYnp_Qaz.js → button-BQLtMsfK.js} +1 -1
- package/dist/assets/{click-to-copy-BNduK3fH.js → click-to-copy-CkbZjUXU.js} +1 -1
- package/dist/assets/{complete-Cb2HEBpG.js → complete-BnqT6D6R.js} +1 -1
- package/dist/assets/{component-CQscxGQo.js → component-BbpzttYw.js} +1 -1
- package/dist/assets/{config-B7w-t9zX.js → config-BRGxJ2eh.js} +1 -1
- package/dist/assets/{config-Dtwn5KYi.js → config-DXNBk8Sr.js} +1 -1
- package/dist/assets/{config-navigation-CzVRprQB.js → config-navigation-Bp_tpZTf.js} +3 -3
- package/dist/assets/{config-space-DwDB8lsp.js → config-space-DLpGXOv3.js} +1 -1
- package/dist/assets/{confirm-B2IOP2M3.js → confirm-DMfA-cen.js} +1 -1
- package/dist/assets/connect-BbnPPMBE.js +5 -0
- package/dist/assets/{connect-xfYZ8IAV.js → connect-DrhKSeJG.js} +1 -1
- package/dist/assets/{connect-to-5OMMyaiW.js → connect-to-BWtx4RxY.js} +1 -1
- package/dist/assets/{dashboard-CFCEDlP-.js → dashboard-D1IAu0pg.js} +3 -3
- package/dist/assets/{delete-confirm-CfIbUYYk.js → delete-confirm-BOPmqCDE.js} +1 -1
- package/dist/assets/{did-address-Cv_JswP5.js → did-address-_2BUka_2.js} +1 -1
- package/dist/assets/domain-C058D5cL.js +9 -0
- package/dist/assets/{domain-action-card-zrJxt72X.js → domain-action-card-hJylsZDf.js} +2 -2
- package/dist/assets/domains-CHSNHTzm.js +1 -0
- package/dist/assets/{email-CPcF02_u.js → email-DTd5dLMw.js} +1 -1
- package/dist/assets/{exchange-passport-CuVimc1z.js → exchange-passport-CUoEzJAn.js} +1 -1
- package/dist/assets/{fuel-DBtsoBpG.js → fuel-D1-QzTfA.js} +1 -1
- package/dist/assets/{get-safe-url-B0p0Sl-_.js → get-safe-url-B2pIo8YT.js} +1 -1
- package/dist/assets/{get-safe-url-DBsoYX8R.js → get-safe-url-M62JolcK.js} +1 -1
- package/dist/assets/{home-DOEBAXN2.js → home-D8xdbvkr.js} +1 -1
- package/dist/assets/{iframe-DAyXsLzg.js → iframe-BGb_KeKZ.js} +1 -1
- package/dist/assets/{index-D4WK9Fpj.js → index--QvOAcHK.js} +3 -3
- package/dist/assets/{index-CIKA5OOH.js → index-BQddb9SV.js} +4 -4
- package/dist/assets/{index-DUqwPXHV.js → index-Bcipz7Xh.js} +1 -1
- package/dist/assets/{index-DdmAJNiO.js → index-Be9flGYn.js} +1 -1
- package/dist/assets/{index-d2gQqAm6.js → index-Bgbz960f.js} +1 -1
- package/dist/assets/{index-Hx9TNFzZ.js → index-Biod65HH.js} +1 -1
- package/dist/assets/{index-BUDc_5A6.js → index-BmIHv0Ao.js} +1 -1
- package/dist/assets/{index-BVLCYG1J.js → index-Bn6qMcz9.js} +1 -1
- package/dist/assets/{index-DjhdGCFl.js → index-COXsk6dn.js} +1 -1
- package/dist/assets/{index-nHbtopN7.js → index-CqRb1YIC.js} +1 -1
- package/dist/assets/{index-CuJTCVC9.js → index-DOTrxWIb.js} +1 -1
- package/dist/assets/{index-BxtbFqQ7.js → index-DUqEJSX8.js} +1 -1
- package/dist/assets/{index-CPrWUCW6.js → index-DY7FozBP.js} +1 -1
- package/dist/assets/{index-BAphTUTz.js → index-Dja0MgHa.js} +3 -3
- package/dist/assets/{index-D9AtvVSE.js → index-DvX6CH9d.js} +1 -1
- package/dist/assets/{index-CY-SffSN.js → index-Tc7h84RU.js} +1 -1
- package/dist/assets/{index-C6oT-lJS.js → index-r4W5xGua.js} +1 -1
- package/dist/assets/{invitation-BN-WW8c1.js → invitation-CLrDi0w3.js} +1 -1
- package/dist/assets/{invite-DHJiC6BF.js → invite-BlqLHSHA.js} +1 -1
- package/dist/assets/{issue-passport-CCDXWogO.js → issue-passport-0xgFeiRm.js} +1 -1
- package/dist/assets/{item-BtVm0eZl.js → item-DFeRxihy.js} +1 -1
- package/dist/assets/{landing-page-B6GPz-DA.js → landing-page-Dl8nGCZh.js} +1 -1
- package/dist/assets/{layout-CkeNygRb.js → layout-BQ9Qhixa.js} +1 -1
- package/dist/assets/{list-8seiNFE0.js → list-BO1EU3G2.js} +1 -1
- package/dist/assets/localization-rR3sV7At.js +1 -0
- package/dist/assets/{log-CYLd2Knl.js → log-Qir3lxDV.js} +1 -1
- package/dist/assets/{login-Cuye2iE2.js → login-C780ZUv4.js} +1 -1
- package/dist/assets/{login-oauth-callback-Obvjcq-B.js → login-oauth-callback-CfaWz0tg.js} +1 -1
- package/dist/assets/{logo-uploader-CejcEz3E.js → logo-uploader-gCM0_9lk.js} +3 -3
- package/dist/assets/{lost-passport-BB_BfMMj.js → lost-passport-ieF1z1Fq.js} +1 -1
- package/dist/assets/{open-window-BSZzCk0O.js → open-window-DMkA-B_A.js} +1 -1
- package/dist/assets/{overview-CgGEof25.js → overview-CqE5Qd7t.js} +1 -1
- package/dist/assets/{page-header-BbutANxz.js → page-header-D3dCkXy7.js} +1 -1
- package/dist/assets/{permission-D7sDivJU.js → permission-ClAqVelD.js} +1 -1
- package/dist/assets/{preferences-Cr9xOl3Y.js → preferences-YM19d1y9.js} +1 -1
- package/dist/assets/{profile-embed-IW6vPild.js → profile-embed-DJJJzari.js} +1 -1
- package/dist/assets/{publish-resource-D5qodgK0.js → publish-resource-BFGnGhHk.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-ONm9Sfm9.js → react-beautiful-dnd.esm-Cx5BcFIr.js} +1 -1
- package/dist/assets/{relative-time-BlwUAPs3.js → relative-time-BUHtgSDe.js} +1 -1
- package/dist/assets/{runtime-C5P9bpb_.js → runtime-B5YY9Qgr.js} +1 -1
- package/dist/assets/sdk-DRBcrGrS.js +1 -0
- package/dist/assets/{security-Bpsae55i.js → security-Dad28Y4W.js} +1 -1
- package/dist/assets/{session-D21Dok5b.js → session-Clq9kJzg.js} +1 -1
- package/dist/assets/setup-DEJbIHrj.js +19 -0
- package/dist/assets/{spaces-BCWZ7kDs.js → spaces-CcqmBId2.js} +1 -1
- package/dist/assets/{start-BtbB_6hq.js → start-9UMY8DNC.js} +1 -1
- package/dist/assets/{status-CED3HmVQ.js → status-BFrUchan.js} +1 -1
- package/dist/assets/{step-actions-DKSbOH-i.js → step-actions-DZ9FTtHm.js} +1 -1
- package/dist/assets/{studio-D6is1ZB_.js → studio-Bv91lan_.js} +1 -1
- package/dist/assets/{switch-control-CHr40nyS.js → switch-control-DjMziEFc.js} +1 -1
- package/dist/assets/{traffic-BTceliDE.js → traffic-DPZuINtB.js} +1 -1
- package/dist/assets/{transfer-zO5YVafL.js → transfer-PY0D3H2H.js} +1 -1
- package/dist/assets/{unsubscribe-BIs2kGvq.js → unsubscribe-B3uFNG06.js} +1 -1
- package/dist/assets/useAsync-BmuLIImU.js +1 -0
- package/dist/assets/{useAsyncRetry-BAg_7Lam.js → useAsyncRetry-CwtLImQi.js} +2 -2
- package/dist/assets/{useLocalStorage-Bip9kD-Q.js → useLocalStorage-C1_Fkr6_.js} +1 -1
- package/dist/assets/{user-center-B6K3hCJc.js → user-center-C2i8ji9Q.js} +1 -1
- package/dist/assets/{util-CzLAhqb9.js → util-BL-qFiRh.js} +1 -1
- package/dist/assets/{util-MwMuX2uT.js → util-CORzDFgw.js} +1 -1
- package/dist/assets/{vendor-arcblock-DV12D9BN.js → vendor-arcblock-D8eCUoJY.js} +44 -44
- package/dist/assets/{vendor-ux-did-connect-BihFfRkM.js → vendor-ux-did-connect-BQ3cvv_1.js} +2 -2
- package/dist/assets/{wrap-locale-BycFng9T.js → wrap-locale-BFOSjPWa.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/service-worker.js +1 -1
- package/package.json +28 -28
- package/dist/assets/connect-rJwegOE9.js +0 -5
- package/dist/assets/domain-VSKg_phi.js +0 -9
- package/dist/assets/domains-BjnGIAJ9.js +0 -1
- package/dist/assets/localization-Da3qFRTd.js +0 -1
- package/dist/assets/sdk-DJ0rC1b9.js +0 -1
- package/dist/assets/setup-kIyimAYS.js +0 -19
- package/dist/assets/useAsync-BJWebEpq.js +0 -1
- package/dist/assets/useAsync-CX7JRRJM.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{av as _,an as i}from"./vendor-ux-did-connect-
|
|
1
|
+
import{av as _,an as i}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{_ as e}from"./vendor-arcblock-D8eCUoJY.js";import{z as a}from"./index--QvOAcHK.js";import{j as r}from"./vendor-mui-core-C-PhacC8.js";const u={en:_(a),ar:()=>e(()=>import("./ar-688M-cDq.js"),[]).then(t=>_(t.default)),de:()=>e(()=>import("./de-dAK4siFW.js"),[]).then(t=>_(t.default)),es:()=>e(()=>import("./es-DScgwpYm.js"),[]).then(t=>_(t.default)),fr:()=>e(()=>import("./fr-BBQTxbA5.js"),[]).then(t=>_(t.default)),hi:()=>e(()=>import("./hi-Bw7OKUaN.js"),[]).then(t=>_(t.default)),id:()=>e(()=>import("./id-CKyyz3c3.js"),[]).then(t=>_(t.default)),ja:()=>e(()=>import("./ja-C9-S8RGg.js"),[]).then(t=>_(t.default)),ko:()=>e(()=>import("./ko-B7Et6Phj.js"),[]).then(t=>_(t.default)),pt:()=>e(()=>import("./pt-BYJAg1Zs.js"),[]).then(t=>_(t.default)),ru:()=>e(()=>import("./ru-DUqsqieR.js"),[]).then(t=>_(t.default)),th:()=>e(()=>import("./th-BIzIDice.js"),[]).then(t=>_(t.default)),vi:()=>e(()=>import("./vi-DQnObbNS.js"),[]).then(t=>_(t.default)),"zh-TW":()=>e(()=>import("./zh-tw-DqaJtqXb.js"),[]).then(t=>_(t.default)),zh:()=>e(()=>import("./zh-DQI8vsAI.js"),[]).then(t=>_(t.default))};function f(t){return function(o){return r.jsx(i,{translations:u,children:r.jsx(t,{...o})})}}export{f as w};
|
package/dist/index.html
CHANGED
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
background-color: transparent;
|
|
16
16
|
}
|
|
17
17
|
</style>
|
|
18
|
-
<script type="module" crossorigin src="/.well-known/service/static/assets/index
|
|
18
|
+
<script type="module" crossorigin src="/.well-known/service/static/assets/index--QvOAcHK.js"></script>
|
|
19
19
|
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-react-DoD83n6N.js">
|
|
20
20
|
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-mui-core-C-PhacC8.js">
|
|
21
21
|
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-utils-CRBr0QUY.js">
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-hooks-DtYI0-rF.js">
|
|
23
23
|
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/lottie-web-B6s7dDoL.js">
|
|
24
|
-
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-ux-did-connect-
|
|
25
|
-
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-arcblock-
|
|
24
|
+
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-ux-did-connect-BQ3cvv_1.js">
|
|
25
|
+
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-arcblock-D8eCUoJY.js">
|
|
26
26
|
<link rel="stylesheet" crossorigin href="/.well-known/service/static/assets/vendor-ux-did-connect-BDmhBveY.css">
|
|
27
27
|
<link rel="manifest" href="/.well-known/service/static/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/.well-known/service/static/registerSW.js"></script></head>
|
|
28
28
|
|
package/dist/service-worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
try{self["workbox:core:7.0.0"]&&_()}catch{}const ue=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},fe=ue;let R=class extends Error{constructor(e,t){const n=fe(e,t);super(n),this.name=e,this.details=t}};const de=new Set,d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},M=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),pe=s=>{for(const e of Object.keys(d))s(e)},ge={updateDetails:s=>{pe(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||M(d.googleAnalytics),getPrecacheName:s=>s||M(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||M(d.runtime),getSuffix:()=>d.suffix};function B(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function me(s,e,t,n){const a=B(e.url,t);if(e.url===a)return s.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,r);for(const c of i){const o=B(c.url,t);if(a===o)return s.match(c,n)}}let we=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};async function ye(){for(const s of de)await s()}const _e=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function Re(s){return new Promise(e=>setTimeout(e,s))}function be(){self.addEventListener("activate",()=>self.clients.claim())}try{self["workbox:core:7.0.0"]&&_()}catch{}const Ce=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},xe=Ce;let u=class extends Error{constructor(e,t){const n=xe(e,t);super(n),this.name=e,this.details=t}};const p={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},A=s=>[p.prefix,s,p.suffix].filter(e=>e&&e.length>0).join("-"),Ee=s=>{for(const e of Object.keys(p))s(e)},H={updateDetails:s=>{Ee(e=>{typeof s[e]=="string"&&(p[e]=s[e])})},getGoogleAnalyticsName:s=>s||A(p.googleAnalytics),getPrecacheName:s=>s||A(p.precache),getPrefix:()=>p.prefix,getRuntimeName:s=>s||A(p.runtime),getSuffix:()=>p.suffix};function q(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:7.0.0"]&&_()}catch{}const ke="__WB_REVISION__";function De(s){if(!s)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const r=new URL(s,location.href);return{cacheKey:r.href,url:r.href}}const{revision:e,url:t}=s;if(!t)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(!e){const r=new URL(t,location.href);return{cacheKey:r.href,url:r.href}}const n=new URL(t,location.href),a=new URL(t,location.href);return n.searchParams.set(ke,e),{cacheKey:n.href,url:a.href}}class Ue{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;n?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return n}}}class Le{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:n})=>{const a=(n==null?void 0:n.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}let C;function Pe(){if(C===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),C=!0}catch{C=!1}C=!1}return C}async function ve(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new u("cross-origin-copy-response",{origin:t});const n=s.clone(),r={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},i=Pe()?n.body:await n.blob();return new Response(i,r)}const Ne=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function V(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function Te(s,e,t,n){const a=V(e.url,t);if(e.url===a)return s.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,r);for(const c of i){const o=V(c.url,t);if(a===o)return s.match(c,n)}}class Me{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const Ae=new Set;async function Oe(){for(const s of Ae)await s()}function Se(s){return new Promise(e=>setTimeout(e,s))}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}let Ie=class{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new Me,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=U(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new u("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=U(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=U(e);await Se(0);const a=await this.getCacheKey(n,"write");if(!t)throw new u("cache-put-with-no-response",{url:Ne(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),f=l?await Te(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?r.clone():r)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await Oe(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:i,oldResponse:f,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}},Ke=class{constructor(e={}){this.cacheName=H.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new Ie(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new u("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}};class y extends Ke{constructor(e={}){e.cacheName=H.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(y.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const n=await t.cacheMatch(e);return n||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let n;const a=t.params||{};if(this._fallbackToNetwork){const r=a.integrity,i=e.integrity,c=!i||i===r;n=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?i||r:void 0})),r&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,n.clone()))}else throw new u("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const n=await t.fetch(e);if(!await t.cachePut(e,n.clone()))throw new u("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[n,a]of this.plugins.entries())a!==y.copyRedirectedCacheableResponsesPlugin&&(a===y.defaultPrecacheCacheabilityPlugin&&(e=n),a.cacheWillUpdate&&t++);t===0?this.plugins.push(y.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}y.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};y.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await ve(s):s}};class We{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new y({cacheName:H.getPrecacheName(e),plugins:[...t,new Le({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const n of e){typeof n=="string"?t.push(n):n&&n.revision===void 0&&t.push(n.url);const{cacheKey:a,url:r}=De(n),i=typeof n!="string"&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(r)&&this._urlsToCacheKeys.get(r)!==a)throw new u("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(r),secondEntry:a});if(typeof n!="string"&&n.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==n.integrity)throw new u("add-to-cache-list-conflicting-integrities",{url:r});this._cacheKeysToIntegrities.set(a,n.integrity)}if(this._urlsToCacheKeys.set(r,a),this._urlsToCacheModes.set(r,i),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")}
|
|
2
|
-
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return q(e,async()=>{const t=new Ue;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),l=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:l,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return q(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let O;const X=()=>(O||(O=new We),O);try{self["workbox:routing:7.0.0"]&&_()}catch{}const Z="GET",v=s=>s&&typeof s=="object"?s:{handle:s};let D=class{constructor(e,t,n=Z){this.handler=v(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=v(e)}},$e=class extends D{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}},je=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=Z){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},x;const He=()=>(x||(x=new je,x.addFetchListener(),x.addCacheListener()),x);function Fe(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new D(i,e,t)}else if(s instanceof RegExp)n=new $e(s,e,t);else if(typeof s=="function")n=new D(s,e,t);else if(s instanceof D)n=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return He().registerRoute(n),n}function Be(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*qe(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=Be(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class Ve extends D{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of qe(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function Ge(s){const e=X(),t=new Ve(e,s);Fe(t)}function Qe(s){X().precache(s)}function Je(s,e){Qe(s),Ge(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const ze=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Ye=ze;class Xe extends Error{constructor(e,t){const n=Ye(e,t);super(n),this.name=e,this.details=t}}function ee(s){s.then(()=>{})}const Ze=(s,e)=>e.some(t=>s instanceof t);let G,Q;function et(){return G||(G=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function tt(){return Q||(Q=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const te=new WeakMap,$=new WeakMap,se=new WeakMap,S=new WeakMap,F=new WeakMap;function st(s){const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("success",r),s.removeEventListener("error",i)},r=()=>{t(m(s.result)),a()},i=()=>{n(s.error),a()};s.addEventListener("success",r),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&te.set(t,s)}).catch(()=>{}),F.set(e,s),e}function nt(s){if($.has(s))return;const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("complete",r),s.removeEventListener("error",i),s.removeEventListener("abort",i)},r=()=>{t(),a()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",r),s.addEventListener("error",i),s.addEventListener("abort",i)});$.set(s,e)}let j={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return $.get(s);if(e==="objectStoreNames")return s.objectStoreNames||se.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function at(s){j=s(j)}function rt(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(I(this),e,...t);return se.set(n,e.sort?e.sort():[e]),m(n)}:tt().includes(s)?function(...e){return s.apply(I(this),e),m(te.get(this))}:function(...e){return m(s.apply(I(this),e))}}function it(s){return typeof s=="function"?rt(s):(s instanceof IDBTransaction&&nt(s),Ze(s,et())?new Proxy(s,j):s)}function m(s){if(s instanceof IDBRequest)return st(s);if(S.has(s))return S.get(s);const e=it(s);return e!==s&&(S.set(s,e),F.set(e,s)),e}const I=s=>F.get(s);function ct(s,e,{blocked:t,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(s,e),c=m(i);return n&&i.addEventListener("upgradeneeded",o=>{n(m(i.result),o.oldVersion,o.newVersion,m(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{r&&o.addEventListener("close",()=>r()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function ot(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),m(t).then(()=>{})}const lt=["get","getKey","getAll","getAllKeys","count"],ht=["put","add","delete","clear"],K=new Map;function J(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(K.get(e))return K.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,a=ht.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(a||lt.includes(t)))return;const r=async function(i,...c){const o=this.transaction(i,a?"readwrite":"readonly");let l=o.store;return n&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return K.set(e,r),r}at(s=>({...s,get:(e,t,n)=>J(e,t)||s.get(e,t,n),has:(e,t)=>!!J(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const ut="workbox-expiration",E="cache-entries",z=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class ft{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(E,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&ot(this._cacheName)}async setTimestamp(e,t){e=z(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(E,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(E,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(E).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&i>=t?r.push(a.value):i++),a=await a.continue()}const c=[];for(const o of r)await n.delete(E,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+z(e)}async getDb(){return this._db||(this._db=await ct(ut,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class dt{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new ft(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const a of t)await n.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,ee(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<n:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},W=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),pt=s=>{for(const e of Object.keys(g))s(e)},gt={updateDetails:s=>{pt(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||W(g.googleAnalytics),getPrecacheName:s=>s||W(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||W(g.runtime),getSuffix:()=>g.suffix},mt=new Set;function wt(s){mt.add(s)}class yt{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:n,cacheName:a,cachedResponse:r})=>{if(!r)return null;const i=this._isResponseDateFresh(r),c=this._getCacheExpiration(a);ee(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?r:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(n.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&wt(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===gt.getRuntimeName())throw new Xe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new dt(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ne="GET",N=s=>s&&typeof s=="object"?s:{handle:s};class P{constructor(e,t,n=ne){this.handler=N(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=N(e)}}class _t extends P{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class Rt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=ne){this._defaultHandlerMap.set(t,N(e))}setCatchHandler(e){this._catchHandler=N(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new R("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new R("unregister-route-route-not-registered")}}let k;const bt=()=>(k||(k=new Rt,k.addFetchListener(),k.addCacheListener()),k);function T(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new P(i,e,t)}else if(s instanceof RegExp)n=new _t(s,e,t);else if(typeof s=="function")n=new P(s,e,t);else if(s instanceof P)n=s;else throw new R("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return bt().registerRoute(n),n}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function L(s){return typeof s=="string"?new Request(s):s}class Ct{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new we,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=L(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new R("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=L(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=L(e);await Re(0);const a=await this.getCacheKey(n,"write");if(!t)throw new R("cache-put-with-no-response",{url:_e(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),f=l?await me(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?r.clone():r)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ye(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:i,oldResponse:f,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=L(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class ae{constructor(e={}){this.cacheName=ge.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new Ct(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new R("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}}class re extends ae{async _handle(e,t){let n=await t.cacheMatch(e),a;if(!n)try{n=await t.fetchAndCachePut(e)}catch(r){r instanceof Error&&(a=r)}if(!n)throw new R("no-response",{url:e.url,error:a});return n}}const xt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class ie extends ae{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(xt)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new R("no-response",{url:e.url,error:r});return a}}const ce="sw-update",oe="/lastUpdateMsgTime",Et=5e3;let le=!1;function kt(s,e=50,t=5e3){return new Promise(n=>{const a=Date.now(),r=()=>{s()||Date.now()-a>=t?n():setTimeout(r,e)};r()})}self.addEventListener("message",s=>{s.data&&s.data.type==="CLIENT_UPDATE_READY"&&(console.log("Service Worker: client ready"),le=!0)});async function Dt(s){const t=await(await caches.open(ce)).match(`${oe}-${s}`);if(t){const n=await t.text();return Number(n)}return 0}async function Ut(s,e){const t=await caches.open(ce),n=new Response(String(s));await t.put(`${oe}-${e}`,n)}const Y=/updatedAt:\s*\d+,/g,Lt={cacheDidUpdate:async({request:s,oldResponse:e,newResponse:t})=>{if(e)try{let n=await e.clone().text(),a=await t.clone().text();if(s.url.includes("__blocklet__.js")&&(n=n.replace(Y,"updatedAt: ,"),a=a.replace(Y,"updatedAt: ,")),n!==a){const r=Date.now(),i=await Dt(s.url);if(r-i<Et)return;await kt(()=>le),await Ut(r,s.url),console.log("document version or session updated",s.url),(await self.clients.matchAll()).forEach(o=>{o.postMessage({type:"SW_DOCUMENT_UPDATED",url:s.url})})}}catch(n){console.error("Error comparing document responses:",n)}}};Je(([{"revision":null,"url":"assets/access-control-DZAkdMhI.js"},{"revision":null,"url":"assets/actions-DVfOVgcp.js"},{"revision":null,"url":"assets/add-component-core-BRwA72Ul.js"},{"revision":null,"url":"assets/add-component-core-D-IRi6XF.css"},{"revision":null,"url":"assets/add-resource-DmAz4Wic.js"},{"revision":null,"url":"assets/addon-dV77wOE-.js"},{"revision":null,"url":"assets/advanced-C5DmDZyt.js"},{"revision":null,"url":"assets/api-DlN8K5Jg.js"},{"revision":null,"url":"assets/appearance-B_lR60lO.js"},{"revision":null,"url":"assets/ar-688M-cDq.js"},{"revision":null,"url":"assets/ar-DrRqcx2b.js"},{"revision":null,"url":"assets/ArrowDropDown-CIcX9so8.js"},{"revision":null,"url":"assets/audit-logs-C0ApIidf.js"},{"revision":null,"url":"assets/base32-CHVLLVvB.js"},{"revision":null,"url":"assets/branding-CHqonQEq.js"},{"revision":null,"url":"assets/branding-DlWkjNZy.js"},{"revision":null,"url":"assets/bundle-avatar-CP1Y8_9Y.js"},{"revision":null,"url":"assets/button-CYnp_Qaz.js"},{"revision":null,"url":"assets/CheckCircle-BBenFQEZ.js"},{"revision":null,"url":"assets/ChevronLeft-XZDsaitS.js"},{"revision":null,"url":"assets/ChevronRight-DfhN5qTp.js"},{"revision":null,"url":"assets/click-to-copy-BNduK3fH.js"},{"revision":null,"url":"assets/cloneDeep-C7Ok409J.js"},{"revision":null,"url":"assets/Community-BKnwgGcO.js"},{"revision":null,"url":"assets/complete-Cb2HEBpG.js"},{"revision":null,"url":"assets/component-CQscxGQo.js"},{"revision":null,"url":"assets/config-B7w-t9zX.js"},{"revision":null,"url":"assets/config-Dtwn5KYi.js"},{"revision":null,"url":"assets/config-navigation-CzVRprQB.js"},{"revision":null,"url":"assets/config-space-DwDB8lsp.js"},{"revision":null,"url":"assets/confirm-B2IOP2M3.js"},{"revision":null,"url":"assets/connect-rJwegOE9.js"},{"revision":null,"url":"assets/connect-to-5OMMyaiW.js"},{"revision":null,"url":"assets/connect-xfYZ8IAV.js"},{"revision":null,"url":"assets/content-layout-uPtoKIAs.js"},{"revision":null,"url":"assets/dashboard-CFCEDlP-.js"},{"revision":null,"url":"assets/de-BRPos3d1.js"},{"revision":null,"url":"assets/de-dAK4siFW.js"},{"revision":null,"url":"assets/delete-confirm-CfIbUYYk.js"},{"revision":null,"url":"assets/DeleteOutline-DVPNhMfh.js"},{"revision":null,"url":"assets/did-address-Cv_JswP5.js"},{"revision":null,"url":"assets/domain-action-card-zrJxt72X.js"},{"revision":null,"url":"assets/domain-VSKg_phi.js"},{"revision":null,"url":"assets/domains-BjnGIAJ9.js"},{"revision":null,"url":"assets/Done-Bu72PctM.js"},{"revision":null,"url":"assets/Download-CDVTENqI.js"},{"revision":null,"url":"assets/EditIcon-Bww8_WRx.js"},{"revision":null,"url":"assets/Email-C6-GXQIV.js"},{"revision":null,"url":"assets/email-CPcF02_u.js"},{"revision":null,"url":"assets/empty-spinner-CoimPnT0.js"},{"revision":null,"url":"assets/Error-CDj0R4_e.js"},{"revision":null,"url":"assets/es-D2rCdMgt.js"},{"revision":null,"url":"assets/es-DScgwpYm.js"},{"revision":null,"url":"assets/exchange-passport-CuVimc1z.js"},{"revision":null,"url":"assets/ExpandLess-Dt46nF0t.js"},{"revision":null,"url":"assets/format-error-LAoTjvJe.js"},{"revision":null,"url":"assets/fr-BBQTxbA5.js"},{"revision":null,"url":"assets/fr-DAFx50ef.js"},{"revision":null,"url":"assets/fuel-DBtsoBpG.js"},{"revision":null,"url":"assets/get-safe-url-B0p0Sl-_.js"},{"revision":null,"url":"assets/get-safe-url-DBsoYX8R.js"},{"revision":null,"url":"assets/Google-BxEqzKy9.js"},{"revision":null,"url":"assets/hi-Bw7OKUaN.js"},{"revision":null,"url":"assets/hi-CkD7b6N9.js"},{"revision":null,"url":"assets/Holiday-BSfwdA-4.js"},{"revision":null,"url":"assets/home-DOEBAXN2.js"},{"revision":null,"url":"assets/id-BMWKdVei.js"},{"revision":null,"url":"assets/id-CKyyz3c3.js"},{"revision":null,"url":"assets/iframe-DAyXsLzg.js"},{"revision":null,"url":"assets/index-AgKpYdvC.css"},{"revision":null,"url":"assets/index-B9lZsGBd.js"},{"revision":null,"url":"assets/index-BAphTUTz.js"},{"revision":null,"url":"assets/index-BUDc_5A6.js"},{"revision":null,"url":"assets/index-BVLCYG1J.js"},{"revision":null,"url":"assets/index-BxtbFqQ7.js"},{"revision":null,"url":"assets/index-BYC998Xz.js"},{"revision":null,"url":"assets/index-C-E-0SKx.js"},{"revision":null,"url":"assets/index-C6oT-lJS.js"},{"revision":null,"url":"assets/index-CDJctLrv.js"},{"revision":null,"url":"assets/index-CIKA5OOH.js"},{"revision":null,"url":"assets/index-CKv9guDo.js"},{"revision":null,"url":"assets/index-CPrWUCW6.js"},{"revision":null,"url":"assets/index-CuJTCVC9.js"},{"revision":null,"url":"assets/index-CY-SffSN.js"},{"revision":null,"url":"assets/index-d2gQqAm6.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-D4WK9Fpj.js"},{"revision":null,"url":"assets/index-D9AtvVSE.js"},{"revision":null,"url":"assets/index-DdmAJNiO.js"},{"revision":null,"url":"assets/index-DjhdGCFl.js"},{"revision":null,"url":"assets/index-DUqwPXHV.js"},{"revision":null,"url":"assets/index-DvDiL1rm.js"},{"revision":null,"url":"assets/index-Hx9TNFzZ.js"},{"revision":null,"url":"assets/index-nHbtopN7.js"},{"revision":null,"url":"assets/index-pV_0wOyY.js"},{"revision":null,"url":"assets/index-tUQxVYYQ.js"},{"revision":null,"url":"assets/InfoOutlined-Cga_EIiY.js"},{"revision":null,"url":"assets/invitation-BN-WW8c1.js"},{"revision":null,"url":"assets/invite-DHJiC6BF.js"},{"revision":null,"url":"assets/issue-passport-CCDXWogO.js"},{"revision":null,"url":"assets/item-BtVm0eZl.js"},{"revision":null,"url":"assets/ja-C9-S8RGg.js"},{"revision":null,"url":"assets/ja-D2jInSAT.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-B7Et6Phj.js"},{"revision":null,"url":"assets/ko-BGB5KJZq.js"},{"revision":null,"url":"assets/landing-page-B6GPz-DA.js"},{"revision":null,"url":"assets/Launch-hbSlZ0zw.js"},{"revision":null,"url":"assets/launch-result-message-DvcvHHH1.js"},{"revision":null,"url":"assets/LaunchOutlined-FPKJQ1Ta.js"},{"revision":null,"url":"assets/layout-CkeNygRb.js"},{"revision":null,"url":"assets/list-8seiNFE0.js"},{"revision":null,"url":"assets/list-header-DvakxkxK.js"},{"revision":null,"url":"assets/localization-Da3qFRTd.js"},{"revision":null,"url":"assets/Location-CT1S5M1P.js"},{"revision":null,"url":"assets/LockIcon-kY343jXt.js"},{"revision":null,"url":"assets/log-CYLd2Knl.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/login-Cuye2iE2.js"},{"revision":null,"url":"assets/login-oauth-callback-Obvjcq-B.js"},{"revision":null,"url":"assets/logo-uploader-CejcEz3E.js"},{"revision":null,"url":"assets/lost-passport-BB_BfMMj.js"},{"revision":null,"url":"assets/lottie-react.esm-CPHH620R.js"},{"revision":null,"url":"assets/lottie-web-B6s7dDoL.js"},{"revision":null,"url":"assets/Meeting-PVrGyQbK.js"},{"revision":null,"url":"assets/MoreHoriz-CiMTPRBH.js"},{"revision":null,"url":"assets/OffSick-DD3oLLQu.js"},{"revision":null,"url":"assets/omit-r8RGw6zD.js"},{"revision":null,"url":"assets/open-window-BSZzCk0O.js"},{"revision":null,"url":"assets/overview-CgGEof25.js"},{"revision":null,"url":"assets/page-header-BbutANxz.js"},{"revision":null,"url":"assets/permission-D7sDivJU.js"},{"revision":null,"url":"assets/Phone-BcpEH3XZ.js"},{"revision":null,"url":"assets/PlayArrow-CTZ2QlWx.js"},{"revision":null,"url":"assets/preferences-Cr9xOl3Y.js"},{"revision":null,"url":"assets/profile-embed-IW6vPild.js"},{"revision":null,"url":"assets/pt-BYJAg1Zs.js"},{"revision":null,"url":"assets/pt-DY0Ku5W5.js"},{"revision":null,"url":"assets/publish-resource-D5qodgK0.js"},{"revision":null,"url":"assets/QuestionMarkCircle-BHP2onYz.js"},{"revision":null,"url":"assets/raf-schd.esm-GV-XhwE0.js"},{"revision":null,"url":"assets/react-beautiful-dnd.esm-ONm9Sfm9.js"},{"revision":null,"url":"assets/relative-time-BlwUAPs3.js"},{"revision":null,"url":"assets/ru-Cv5vRo7s.js"},{"revision":null,"url":"assets/ru-DUqsqieR.js"},{"revision":null,"url":"assets/runtime-C5P9bpb_.js"},{"revision":null,"url":"assets/sdk-DJ0rC1b9.js"},{"revision":null,"url":"assets/security-Bpsae55i.js"},{"revision":null,"url":"assets/ServerLogo-Bi89KNz4.js"},{"revision":null,"url":"assets/session-D21Dok5b.js"},{"revision":null,"url":"assets/setup-kIyimAYS.js"},{"revision":null,"url":"assets/shorten-label-C642GTxb.js"},{"revision":null,"url":"assets/simple-select-i-SepLIh.js"},{"revision":null,"url":"assets/slicedToArray-B6WXjdrb.js"},{"revision":null,"url":"assets/spaces-BCWZ7kDs.js"},{"revision":null,"url":"assets/start-BtbB_6hq.js"},{"revision":null,"url":"assets/status-CED3HmVQ.js"},{"revision":null,"url":"assets/step-actions-DKSbOH-i.js"},{"revision":null,"url":"assets/studio-D6is1ZB_.js"},{"revision":null,"url":"assets/switch-control-CHr40nyS.js"},{"revision":null,"url":"assets/th-BIzIDice.js"},{"revision":null,"url":"assets/th-D6oDBVGi.js"},{"revision":null,"url":"assets/Timezone-Ce85fX7w.js"},{"revision":null,"url":"assets/traffic-BTceliDE.js"},{"revision":null,"url":"assets/transfer-zO5YVafL.js"},{"revision":null,"url":"assets/TuneOutlined-BVx9kD7P.js"},{"revision":null,"url":"assets/unsubscribe-BIs2kGvq.js"},{"revision":null,"url":"assets/use-mobile-B_Gqv6b6.js"},{"revision":null,"url":"assets/use-mobile-DudfIz3d.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-BJWebEpq.js"},{"revision":null,"url":"assets/useAsync-CX7JRRJM.js"},{"revision":null,"url":"assets/useAsyncRetry-BAg_7Lam.js"},{"revision":null,"url":"assets/useLocalStorage-Bip9kD-Q.js"},{"revision":null,"url":"assets/user-center-B6K3hCJc.js"},{"revision":null,"url":"assets/useSetState-BL3ktMon.js"},{"revision":null,"url":"assets/util-CzLAhqb9.js"},{"revision":null,"url":"assets/util-MwMuX2uT.js"},{"revision":null,"url":"assets/vendor-arcblock-DV12D9BN.js"},{"revision":null,"url":"assets/vendor-hooks-DtYI0-rF.js"},{"revision":null,"url":"assets/vendor-mui-core-C-PhacC8.js"},{"revision":null,"url":"assets/vendor-mui-x-BiTj3AZC.js"},{"revision":null,"url":"assets/vendor-react-DoD83n6N.js"},{"revision":null,"url":"assets/vendor-utils-CRBr0QUY.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-BDmhBveY.css"},{"revision":null,"url":"assets/vendor-ux-did-connect-BihFfRkM.js"},{"revision":null,"url":"assets/vi-BKKJMbW2.js"},{"revision":null,"url":"assets/vi-DQnObbNS.js"},{"revision":null,"url":"assets/ViewList-Rdv91ijz.js"},{"revision":null,"url":"assets/WorkingRemotely-DfgJTsRm.js"},{"revision":null,"url":"assets/wrap-locale-BycFng9T.js"},{"revision":null,"url":"assets/zh-D4Lak9gZ.js"},{"revision":null,"url":"assets/zh-DQI8vsAI.js"},{"revision":null,"url":"assets/zh-tw-B08rjgK3.js"},{"revision":null,"url":"assets/zh-tw-DqaJtqXb.js"},{"revision":"ec4175af1bd544510a21ab4a24380054","url":"index.html"},{"revision":"629a14a7e3397a134f5a30b5dc735183","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"3c1549cff96a2d2baec44397663c083e","url":"share/shared-service-worker.js"},{"revision":"19d4c6a99cb8ed11e68209a612e7ec44","url":"share/workbox-v7.3.0/workbox-background-sync.prod.js"},{"revision":"d9d631014689e2b4b0e343c129671749","url":"share/workbox-v7.3.0/workbox-broadcast-update.prod.js"},{"revision":"bdb39ceb7380dcb1483c543e8856242b","url":"share/workbox-v7.3.0/workbox-cacheable-response.prod.js"},{"revision":"b84dd900eb18e8bc842666bbb740604e","url":"share/workbox-v7.3.0/workbox-core.prod.js"},{"revision":"c582a61c037234d8283eea0b97693b1b","url":"share/workbox-v7.3.0/workbox-expiration.prod.js"},{"revision":"866ba7d03bd871fa990976e4db312ab3","url":"share/workbox-v7.3.0/workbox-navigation-preload.prod.js"},{"revision":"0c55bb581ea7ce5ebfac1ce95cdda21f","url":"share/workbox-v7.3.0/workbox-offline-ga.prod.js"},{"revision":"770d183cf1f189a1ceb11ba8b5d808fa","url":"share/workbox-v7.3.0/workbox-precaching.prod.js"},{"revision":"295decbe1eb3b073a2a8d67cfbdf5692","url":"share/workbox-v7.3.0/workbox-range-requests.prod.js"},{"revision":"0bcb90677f3508ebc8a3571d14194478","url":"share/workbox-v7.3.0/workbox-recipes.prod.js"},{"revision":"4af96b70b2d20b041e2edd7ef1a8ef27","url":"share/workbox-v7.3.0/workbox-routing.prod.js"},{"revision":"c78c21b4058a1134ad3e12286c57cb2f","url":"share/workbox-v7.3.0/workbox-strategies.prod.js"},{"revision":"7eeb2d820d409221e076d31951fdcf79","url":"share/workbox-v7.3.0/workbox-streams.prod.js"},{"revision":"aa7368887577b9719a46b585d5dcc7a5","url":"share/workbox-v7.3.0/workbox-sw.js"},{"revision":"e768668db4eeefde11b58542900ab2ad","url":"share/workbox-v7.3.0/workbox-window.prod.umd.js"},{"revision":"f272d080151aa40322ce1603c6261ec1","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));be();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const he=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));T(({request:s})=>he(s)?!1:s.url.includes("/static/"),new re({cacheName:`static-${self.registration.scope}`,plugins:[new yt({maxEntries:200})]}));T(({request:s,url:e})=>{var t,n;return(n=(t=self.blocklet)==null?void 0:t.canCache)!=null&&n.call(t,{url:e})?["image","font","style","script"].includes(s.destination):!1},new re({cacheName:`static-resources-${self.registration.scope}`}));T(({request:s})=>he(s)?!1:s.url.includes("/images/")||s.url.includes("/router/-template-styles/"),new ie({cacheName:`StaleWhileRevalidate-${self.registration.scope}`}));const w={};T(({request:s})=>["document"].includes(s.destination)?(Object.keys(w).forEach(e=>delete w[e]),!0):!w.env&&s.url.includes(".well-known/service/api/env")?(w.env=!0,!0):!w.session&&s.url.includes(".well-known/service/api/did/session")?(w.session=!0,!0):!w.blocklet&&s.url.endsWith("__blocklet__.js")?(w.blocklet=!0,!0):!1,new ie({cacheName:`documents-${self.registration.scope}`,plugins:[Lt]}));
|
|
2
|
+
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return q(e,async()=>{const t=new Ue;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),l=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:l,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return q(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let O;const X=()=>(O||(O=new We),O);try{self["workbox:routing:7.0.0"]&&_()}catch{}const Z="GET",v=s=>s&&typeof s=="object"?s:{handle:s};let D=class{constructor(e,t,n=Z){this.handler=v(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=v(e)}},$e=class extends D{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}},je=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=Z){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},x;const He=()=>(x||(x=new je,x.addFetchListener(),x.addCacheListener()),x);function Fe(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new D(i,e,t)}else if(s instanceof RegExp)n=new $e(s,e,t);else if(typeof s=="function")n=new D(s,e,t);else if(s instanceof D)n=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return He().registerRoute(n),n}function Be(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*qe(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=Be(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class Ve extends D{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of qe(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function Ge(s){const e=X(),t=new Ve(e,s);Fe(t)}function Qe(s){X().precache(s)}function Je(s,e){Qe(s),Ge(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const ze=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Ye=ze;class Xe extends Error{constructor(e,t){const n=Ye(e,t);super(n),this.name=e,this.details=t}}function ee(s){s.then(()=>{})}const Ze=(s,e)=>e.some(t=>s instanceof t);let G,Q;function et(){return G||(G=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function tt(){return Q||(Q=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const te=new WeakMap,$=new WeakMap,se=new WeakMap,S=new WeakMap,F=new WeakMap;function st(s){const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("success",r),s.removeEventListener("error",i)},r=()=>{t(m(s.result)),a()},i=()=>{n(s.error),a()};s.addEventListener("success",r),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&te.set(t,s)}).catch(()=>{}),F.set(e,s),e}function nt(s){if($.has(s))return;const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("complete",r),s.removeEventListener("error",i),s.removeEventListener("abort",i)},r=()=>{t(),a()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",r),s.addEventListener("error",i),s.addEventListener("abort",i)});$.set(s,e)}let j={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return $.get(s);if(e==="objectStoreNames")return s.objectStoreNames||se.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function at(s){j=s(j)}function rt(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(I(this),e,...t);return se.set(n,e.sort?e.sort():[e]),m(n)}:tt().includes(s)?function(...e){return s.apply(I(this),e),m(te.get(this))}:function(...e){return m(s.apply(I(this),e))}}function it(s){return typeof s=="function"?rt(s):(s instanceof IDBTransaction&&nt(s),Ze(s,et())?new Proxy(s,j):s)}function m(s){if(s instanceof IDBRequest)return st(s);if(S.has(s))return S.get(s);const e=it(s);return e!==s&&(S.set(s,e),F.set(e,s)),e}const I=s=>F.get(s);function ct(s,e,{blocked:t,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(s,e),c=m(i);return n&&i.addEventListener("upgradeneeded",o=>{n(m(i.result),o.oldVersion,o.newVersion,m(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{r&&o.addEventListener("close",()=>r()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function ot(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),m(t).then(()=>{})}const lt=["get","getKey","getAll","getAllKeys","count"],ht=["put","add","delete","clear"],K=new Map;function J(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(K.get(e))return K.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,a=ht.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(a||lt.includes(t)))return;const r=async function(i,...c){const o=this.transaction(i,a?"readwrite":"readonly");let l=o.store;return n&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return K.set(e,r),r}at(s=>({...s,get:(e,t,n)=>J(e,t)||s.get(e,t,n),has:(e,t)=>!!J(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const ut="workbox-expiration",E="cache-entries",z=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class ft{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(E,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&ot(this._cacheName)}async setTimestamp(e,t){e=z(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(E,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(E,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(E).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&i>=t?r.push(a.value):i++),a=await a.continue()}const c=[];for(const o of r)await n.delete(E,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+z(e)}async getDb(){return this._db||(this._db=await ct(ut,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class dt{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new ft(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const a of t)await n.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,ee(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<n:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},W=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),pt=s=>{for(const e of Object.keys(g))s(e)},gt={updateDetails:s=>{pt(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||W(g.googleAnalytics),getPrecacheName:s=>s||W(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||W(g.runtime),getSuffix:()=>g.suffix},mt=new Set;function wt(s){mt.add(s)}class yt{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:n,cacheName:a,cachedResponse:r})=>{if(!r)return null;const i=this._isResponseDateFresh(r),c=this._getCacheExpiration(a);ee(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?r:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(n.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&wt(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===gt.getRuntimeName())throw new Xe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new dt(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ne="GET",N=s=>s&&typeof s=="object"?s:{handle:s};class P{constructor(e,t,n=ne){this.handler=N(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=N(e)}}class _t extends P{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class Rt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=ne){this._defaultHandlerMap.set(t,N(e))}setCatchHandler(e){this._catchHandler=N(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new R("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new R("unregister-route-route-not-registered")}}let k;const bt=()=>(k||(k=new Rt,k.addFetchListener(),k.addCacheListener()),k);function T(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new P(i,e,t)}else if(s instanceof RegExp)n=new _t(s,e,t);else if(typeof s=="function")n=new P(s,e,t);else if(s instanceof P)n=s;else throw new R("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return bt().registerRoute(n),n}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function L(s){return typeof s=="string"?new Request(s):s}class Ct{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new we,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=L(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new R("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=L(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=L(e);await Re(0);const a=await this.getCacheKey(n,"write");if(!t)throw new R("cache-put-with-no-response",{url:_e(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),f=l?await me(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?r.clone():r)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ye(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:i,oldResponse:f,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=L(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class ae{constructor(e={}){this.cacheName=ge.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new Ct(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new R("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}}class re extends ae{async _handle(e,t){let n=await t.cacheMatch(e),a;if(!n)try{n=await t.fetchAndCachePut(e)}catch(r){r instanceof Error&&(a=r)}if(!n)throw new R("no-response",{url:e.url,error:a});return n}}const xt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class ie extends ae{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(xt)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new R("no-response",{url:e.url,error:r});return a}}const ce="sw-update",oe="/lastUpdateMsgTime",Et=5e3;let le=!1;function kt(s,e=50,t=5e3){return new Promise(n=>{const a=Date.now(),r=()=>{s()||Date.now()-a>=t?n():setTimeout(r,e)};r()})}self.addEventListener("message",s=>{s.data&&s.data.type==="CLIENT_UPDATE_READY"&&(console.log("Service Worker: client ready"),le=!0)});async function Dt(s){const t=await(await caches.open(ce)).match(`${oe}-${s}`);if(t){const n=await t.text();return Number(n)}return 0}async function Ut(s,e){const t=await caches.open(ce),n=new Response(String(s));await t.put(`${oe}-${e}`,n)}const Y=/updatedAt:\s*\d+,/g,Lt={cacheDidUpdate:async({request:s,oldResponse:e,newResponse:t})=>{if(e)try{let n=await e.clone().text(),a=await t.clone().text();if(s.url.includes("__blocklet__.js")&&(n=n.replace(Y,"updatedAt: ,"),a=a.replace(Y,"updatedAt: ,")),n!==a){const r=Date.now(),i=await Dt(s.url);if(r-i<Et)return;await kt(()=>le),await Ut(r,s.url),console.log("document version or session updated",s.url),(await self.clients.matchAll()).forEach(o=>{o.postMessage({type:"SW_DOCUMENT_UPDATED",url:s.url})})}}catch(n){console.error("Error comparing document responses:",n)}}};Je(([{"revision":null,"url":"assets/access-control-Bp6fLweq.js"},{"revision":null,"url":"assets/actions-C9vqEgMU.js"},{"revision":null,"url":"assets/add-component-core-D-IRi6XF.css"},{"revision":null,"url":"assets/add-component-core-e0A2r7mm.js"},{"revision":null,"url":"assets/add-resource-tZ8OPVzc.js"},{"revision":null,"url":"assets/addon-BNDsoean.js"},{"revision":null,"url":"assets/advanced-vuRNp9gZ.js"},{"revision":null,"url":"assets/api-DlN8K5Jg.js"},{"revision":null,"url":"assets/appearance-CFcde0Qw.js"},{"revision":null,"url":"assets/ar-688M-cDq.js"},{"revision":null,"url":"assets/ar-DrRqcx2b.js"},{"revision":null,"url":"assets/ArrowDropDown-WXsjNpSB.js"},{"revision":null,"url":"assets/audit-logs-C51Acdy3.js"},{"revision":null,"url":"assets/base32-CEWQZb_G.js"},{"revision":null,"url":"assets/branding-B4OmIbxT.js"},{"revision":null,"url":"assets/branding-PF95Dp3j.js"},{"revision":null,"url":"assets/bundle-avatar-xyEwd0kl.js"},{"revision":null,"url":"assets/button-BQLtMsfK.js"},{"revision":null,"url":"assets/CheckCircle-D7CrWlJ6.js"},{"revision":null,"url":"assets/ChevronLeft-DeulnkX8.js"},{"revision":null,"url":"assets/ChevronRight-CACHNf5Y.js"},{"revision":null,"url":"assets/click-to-copy-CkbZjUXU.js"},{"revision":null,"url":"assets/cloneDeep-C7Ok409J.js"},{"revision":null,"url":"assets/Community-BKnwgGcO.js"},{"revision":null,"url":"assets/complete-BnqT6D6R.js"},{"revision":null,"url":"assets/component-BbpzttYw.js"},{"revision":null,"url":"assets/config-BRGxJ2eh.js"},{"revision":null,"url":"assets/config-DXNBk8Sr.js"},{"revision":null,"url":"assets/config-navigation-Bp_tpZTf.js"},{"revision":null,"url":"assets/config-space-DLpGXOv3.js"},{"revision":null,"url":"assets/confirm-DMfA-cen.js"},{"revision":null,"url":"assets/connect-BbnPPMBE.js"},{"revision":null,"url":"assets/connect-DrhKSeJG.js"},{"revision":null,"url":"assets/connect-to-BWtx4RxY.js"},{"revision":null,"url":"assets/content-layout-uPtoKIAs.js"},{"revision":null,"url":"assets/dashboard-D1IAu0pg.js"},{"revision":null,"url":"assets/de-BRPos3d1.js"},{"revision":null,"url":"assets/de-dAK4siFW.js"},{"revision":null,"url":"assets/delete-confirm-BOPmqCDE.js"},{"revision":null,"url":"assets/DeleteOutline-DT1G93_1.js"},{"revision":null,"url":"assets/did-address-_2BUka_2.js"},{"revision":null,"url":"assets/domain-action-card-hJylsZDf.js"},{"revision":null,"url":"assets/domain-C058D5cL.js"},{"revision":null,"url":"assets/domains-CHSNHTzm.js"},{"revision":null,"url":"assets/Done-D9sjuoNQ.js"},{"revision":null,"url":"assets/Download-CBzqKt6X.js"},{"revision":null,"url":"assets/EditIcon-Bww8_WRx.js"},{"revision":null,"url":"assets/Email-C6-GXQIV.js"},{"revision":null,"url":"assets/email-DTd5dLMw.js"},{"revision":null,"url":"assets/empty-spinner-CoimPnT0.js"},{"revision":null,"url":"assets/Error-l_WxG8z-.js"},{"revision":null,"url":"assets/es-D2rCdMgt.js"},{"revision":null,"url":"assets/es-DScgwpYm.js"},{"revision":null,"url":"assets/exchange-passport-CUoEzJAn.js"},{"revision":null,"url":"assets/ExpandLess-uIJAqSZm.js"},{"revision":null,"url":"assets/format-error-LAoTjvJe.js"},{"revision":null,"url":"assets/fr-BBQTxbA5.js"},{"revision":null,"url":"assets/fr-DAFx50ef.js"},{"revision":null,"url":"assets/fuel-D1-QzTfA.js"},{"revision":null,"url":"assets/get-safe-url-B2pIo8YT.js"},{"revision":null,"url":"assets/get-safe-url-M62JolcK.js"},{"revision":null,"url":"assets/Google-BchHLUIl.js"},{"revision":null,"url":"assets/hi-Bw7OKUaN.js"},{"revision":null,"url":"assets/hi-CkD7b6N9.js"},{"revision":null,"url":"assets/Holiday-BSfwdA-4.js"},{"revision":null,"url":"assets/home-D8xdbvkr.js"},{"revision":null,"url":"assets/id-BMWKdVei.js"},{"revision":null,"url":"assets/id-CKyyz3c3.js"},{"revision":null,"url":"assets/iframe-BGb_KeKZ.js"},{"revision":null,"url":"assets/index--QvOAcHK.js"},{"revision":null,"url":"assets/index-AgKpYdvC.css"},{"revision":null,"url":"assets/index-B9lZsGBd.js"},{"revision":null,"url":"assets/index-Bcipz7Xh.js"},{"revision":null,"url":"assets/index-Be9flGYn.js"},{"revision":null,"url":"assets/index-Bgbz960f.js"},{"revision":null,"url":"assets/index-Biod65HH.js"},{"revision":null,"url":"assets/index-BmIHv0Ao.js"},{"revision":null,"url":"assets/index-Bn6qMcz9.js"},{"revision":null,"url":"assets/index-BQddb9SV.js"},{"revision":null,"url":"assets/index-BYC998Xz.js"},{"revision":null,"url":"assets/index-C-E-0SKx.js"},{"revision":null,"url":"assets/index-CDJctLrv.js"},{"revision":null,"url":"assets/index-CKv9guDo.js"},{"revision":null,"url":"assets/index-COXsk6dn.js"},{"revision":null,"url":"assets/index-CqRb1YIC.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-Dja0MgHa.js"},{"revision":null,"url":"assets/index-DOTrxWIb.js"},{"revision":null,"url":"assets/index-DUqEJSX8.js"},{"revision":null,"url":"assets/index-DvDiL1rm.js"},{"revision":null,"url":"assets/index-DvX6CH9d.js"},{"revision":null,"url":"assets/index-DY7FozBP.js"},{"revision":null,"url":"assets/index-pV_0wOyY.js"},{"revision":null,"url":"assets/index-r4W5xGua.js"},{"revision":null,"url":"assets/index-Tc7h84RU.js"},{"revision":null,"url":"assets/index-tUQxVYYQ.js"},{"revision":null,"url":"assets/InfoOutlined-DFTm-vVr.js"},{"revision":null,"url":"assets/invitation-CLrDi0w3.js"},{"revision":null,"url":"assets/invite-BlqLHSHA.js"},{"revision":null,"url":"assets/issue-passport-0xgFeiRm.js"},{"revision":null,"url":"assets/item-DFeRxihy.js"},{"revision":null,"url":"assets/ja-C9-S8RGg.js"},{"revision":null,"url":"assets/ja-D2jInSAT.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-B7Et6Phj.js"},{"revision":null,"url":"assets/ko-BGB5KJZq.js"},{"revision":null,"url":"assets/landing-page-Dl8nGCZh.js"},{"revision":null,"url":"assets/Launch-DQCS90NS.js"},{"revision":null,"url":"assets/launch-result-message-DvcvHHH1.js"},{"revision":null,"url":"assets/LaunchOutlined-DttrDnYo.js"},{"revision":null,"url":"assets/layout-BQ9Qhixa.js"},{"revision":null,"url":"assets/list-BO1EU3G2.js"},{"revision":null,"url":"assets/list-header-DvakxkxK.js"},{"revision":null,"url":"assets/localization-rR3sV7At.js"},{"revision":null,"url":"assets/Location-CT1S5M1P.js"},{"revision":null,"url":"assets/LockIcon-kY343jXt.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/log-Qir3lxDV.js"},{"revision":null,"url":"assets/login-C780ZUv4.js"},{"revision":null,"url":"assets/login-oauth-callback-CfaWz0tg.js"},{"revision":null,"url":"assets/logo-uploader-gCM0_9lk.js"},{"revision":null,"url":"assets/lost-passport-ieF1z1Fq.js"},{"revision":null,"url":"assets/lottie-react.esm-CPHH620R.js"},{"revision":null,"url":"assets/lottie-web-B6s7dDoL.js"},{"revision":null,"url":"assets/Meeting-PVrGyQbK.js"},{"revision":null,"url":"assets/MoreHoriz-BD8SroCJ.js"},{"revision":null,"url":"assets/OffSick-DD3oLLQu.js"},{"revision":null,"url":"assets/omit-r8RGw6zD.js"},{"revision":null,"url":"assets/open-window-DMkA-B_A.js"},{"revision":null,"url":"assets/overview-CqE5Qd7t.js"},{"revision":null,"url":"assets/page-header-D3dCkXy7.js"},{"revision":null,"url":"assets/permission-ClAqVelD.js"},{"revision":null,"url":"assets/Phone-BcpEH3XZ.js"},{"revision":null,"url":"assets/PlayArrow-BEUAi9Bt.js"},{"revision":null,"url":"assets/preferences-YM19d1y9.js"},{"revision":null,"url":"assets/profile-embed-DJJJzari.js"},{"revision":null,"url":"assets/pt-BYJAg1Zs.js"},{"revision":null,"url":"assets/pt-DY0Ku5W5.js"},{"revision":null,"url":"assets/publish-resource-BFGnGhHk.js"},{"revision":null,"url":"assets/QuestionMarkCircle-BHP2onYz.js"},{"revision":null,"url":"assets/raf-schd.esm-GV-XhwE0.js"},{"revision":null,"url":"assets/react-beautiful-dnd.esm-Cx5BcFIr.js"},{"revision":null,"url":"assets/relative-time-BUHtgSDe.js"},{"revision":null,"url":"assets/ru-Cv5vRo7s.js"},{"revision":null,"url":"assets/ru-DUqsqieR.js"},{"revision":null,"url":"assets/runtime-B5YY9Qgr.js"},{"revision":null,"url":"assets/sdk-DRBcrGrS.js"},{"revision":null,"url":"assets/security-Dad28Y4W.js"},{"revision":null,"url":"assets/ServerLogo-Bi89KNz4.js"},{"revision":null,"url":"assets/session-Clq9kJzg.js"},{"revision":null,"url":"assets/setup-DEJbIHrj.js"},{"revision":null,"url":"assets/shorten-label-C642GTxb.js"},{"revision":null,"url":"assets/simple-select-i-SepLIh.js"},{"revision":null,"url":"assets/slicedToArray-B6WXjdrb.js"},{"revision":null,"url":"assets/spaces-CcqmBId2.js"},{"revision":null,"url":"assets/start-9UMY8DNC.js"},{"revision":null,"url":"assets/status-BFrUchan.js"},{"revision":null,"url":"assets/step-actions-DZ9FTtHm.js"},{"revision":null,"url":"assets/studio-Bv91lan_.js"},{"revision":null,"url":"assets/switch-control-DjMziEFc.js"},{"revision":null,"url":"assets/th-BIzIDice.js"},{"revision":null,"url":"assets/th-D6oDBVGi.js"},{"revision":null,"url":"assets/Timezone-Ce85fX7w.js"},{"revision":null,"url":"assets/traffic-DPZuINtB.js"},{"revision":null,"url":"assets/transfer-PY0D3H2H.js"},{"revision":null,"url":"assets/TuneOutlined-CzDTcEdK.js"},{"revision":null,"url":"assets/unsubscribe-B3uFNG06.js"},{"revision":null,"url":"assets/use-mobile-B_Gqv6b6.js"},{"revision":null,"url":"assets/use-mobile-DudfIz3d.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-BmuLIImU.js"},{"revision":null,"url":"assets/useAsyncRetry-CwtLImQi.js"},{"revision":null,"url":"assets/useLocalStorage-C1_Fkr6_.js"},{"revision":null,"url":"assets/user-center-C2i8ji9Q.js"},{"revision":null,"url":"assets/useSetState-BL3ktMon.js"},{"revision":null,"url":"assets/util-BL-qFiRh.js"},{"revision":null,"url":"assets/util-CORzDFgw.js"},{"revision":null,"url":"assets/vendor-arcblock-D8eCUoJY.js"},{"revision":null,"url":"assets/vendor-hooks-DtYI0-rF.js"},{"revision":null,"url":"assets/vendor-mui-core-C-PhacC8.js"},{"revision":null,"url":"assets/vendor-mui-x-BiTj3AZC.js"},{"revision":null,"url":"assets/vendor-react-DoD83n6N.js"},{"revision":null,"url":"assets/vendor-utils-CRBr0QUY.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-BDmhBveY.css"},{"revision":null,"url":"assets/vendor-ux-did-connect-BQ3cvv_1.js"},{"revision":null,"url":"assets/vi-BKKJMbW2.js"},{"revision":null,"url":"assets/vi-DQnObbNS.js"},{"revision":null,"url":"assets/ViewList-6gwww-su.js"},{"revision":null,"url":"assets/WorkingRemotely-DfgJTsRm.js"},{"revision":null,"url":"assets/wrap-locale-BFOSjPWa.js"},{"revision":null,"url":"assets/zh-D4Lak9gZ.js"},{"revision":null,"url":"assets/zh-DQI8vsAI.js"},{"revision":null,"url":"assets/zh-tw-B08rjgK3.js"},{"revision":null,"url":"assets/zh-tw-DqaJtqXb.js"},{"revision":"8ca16f1c5ca70ec376220e750af5e0be","url":"index.html"},{"revision":"629a14a7e3397a134f5a30b5dc735183","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"3c1549cff96a2d2baec44397663c083e","url":"share/shared-service-worker.js"},{"revision":"19d4c6a99cb8ed11e68209a612e7ec44","url":"share/workbox-v7.3.0/workbox-background-sync.prod.js"},{"revision":"d9d631014689e2b4b0e343c129671749","url":"share/workbox-v7.3.0/workbox-broadcast-update.prod.js"},{"revision":"bdb39ceb7380dcb1483c543e8856242b","url":"share/workbox-v7.3.0/workbox-cacheable-response.prod.js"},{"revision":"b84dd900eb18e8bc842666bbb740604e","url":"share/workbox-v7.3.0/workbox-core.prod.js"},{"revision":"c582a61c037234d8283eea0b97693b1b","url":"share/workbox-v7.3.0/workbox-expiration.prod.js"},{"revision":"866ba7d03bd871fa990976e4db312ab3","url":"share/workbox-v7.3.0/workbox-navigation-preload.prod.js"},{"revision":"0c55bb581ea7ce5ebfac1ce95cdda21f","url":"share/workbox-v7.3.0/workbox-offline-ga.prod.js"},{"revision":"770d183cf1f189a1ceb11ba8b5d808fa","url":"share/workbox-v7.3.0/workbox-precaching.prod.js"},{"revision":"295decbe1eb3b073a2a8d67cfbdf5692","url":"share/workbox-v7.3.0/workbox-range-requests.prod.js"},{"revision":"0bcb90677f3508ebc8a3571d14194478","url":"share/workbox-v7.3.0/workbox-recipes.prod.js"},{"revision":"4af96b70b2d20b041e2edd7ef1a8ef27","url":"share/workbox-v7.3.0/workbox-routing.prod.js"},{"revision":"c78c21b4058a1134ad3e12286c57cb2f","url":"share/workbox-v7.3.0/workbox-strategies.prod.js"},{"revision":"7eeb2d820d409221e076d31951fdcf79","url":"share/workbox-v7.3.0/workbox-streams.prod.js"},{"revision":"aa7368887577b9719a46b585d5dcc7a5","url":"share/workbox-v7.3.0/workbox-sw.js"},{"revision":"e768668db4eeefde11b58542900ab2ad","url":"share/workbox-v7.3.0/workbox-window.prod.umd.js"},{"revision":"f272d080151aa40322ce1603c6261ec1","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));be();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const he=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));T(({request:s})=>he(s)?!1:s.url.includes("/static/"),new re({cacheName:`static-${self.registration.scope}`,plugins:[new yt({maxEntries:200})]}));T(({request:s,url:e})=>{var t,n;return(n=(t=self.blocklet)==null?void 0:t.canCache)!=null&&n.call(t,{url:e})?["image","font","style","script"].includes(s.destination):!1},new re({cacheName:`static-resources-${self.registration.scope}`}));T(({request:s})=>he(s)?!1:s.url.includes("/images/")||s.url.includes("/router/-template-styles/"),new ie({cacheName:`StaleWhileRevalidate-${self.registration.scope}`}));const w={};T(({request:s})=>["document"].includes(s.destination)?(Object.keys(w).forEach(e=>delete w[e]),!0):!w.env&&s.url.includes(".well-known/service/api/env")?(w.env=!0,!0):!w.session&&s.url.includes(".well-known/service/api/did/session")?(w.session=!0,!0):!w.blocklet&&s.url.endsWith("__blocklet__.js")?(w.blocklet=!0,!0):!1,new ie({cacheName:`documents-${self.registration.scope}`,plugins:[Lt]}));
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.42-beta-
|
|
6
|
+
"version": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
7
7
|
"description": "Provide unified services for every blocklet",
|
|
8
8
|
"main": "api/index.js",
|
|
9
9
|
"files": [
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@abtnode/analytics": "1.16.42-beta-
|
|
37
|
-
"@abtnode/auth": "1.16.42-beta-
|
|
38
|
-
"@abtnode/client": "1.16.42-beta-
|
|
39
|
-
"@abtnode/connect-storage": "1.16.42-beta-
|
|
40
|
-
"@abtnode/constant": "1.16.42-beta-
|
|
41
|
-
"@abtnode/core": "1.16.42-beta-
|
|
42
|
-
"@abtnode/cron": "1.16.42-beta-
|
|
43
|
-
"@abtnode/logger": "1.16.42-beta-
|
|
44
|
-
"@abtnode/models": "1.16.42-beta-
|
|
45
|
-
"@abtnode/router-templates": "1.16.42-beta-
|
|
46
|
-
"@abtnode/util": "1.16.42-beta-
|
|
36
|
+
"@abtnode/analytics": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
37
|
+
"@abtnode/auth": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
38
|
+
"@abtnode/client": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
39
|
+
"@abtnode/connect-storage": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
40
|
+
"@abtnode/constant": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
41
|
+
"@abtnode/core": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
42
|
+
"@abtnode/cron": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
43
|
+
"@abtnode/logger": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
44
|
+
"@abtnode/models": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
45
|
+
"@abtnode/router-templates": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
46
|
+
"@abtnode/util": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
47
47
|
"@arcblock/did": "^1.19.18",
|
|
48
48
|
"@arcblock/did-auth": "1.19.18",
|
|
49
49
|
"@arcblock/did-ext": "^1.19.18",
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
"@arcblock/jwt": "1.19.18",
|
|
54
54
|
"@arcblock/validator": "^1.19.18",
|
|
55
55
|
"@arcblock/ws": "1.19.18",
|
|
56
|
-
"@blocklet/constant": "1.16.42-beta-
|
|
56
|
+
"@blocklet/constant": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
57
57
|
"@blocklet/did-space-js": "^1.0.41",
|
|
58
|
-
"@blocklet/env": "1.16.42-beta-
|
|
58
|
+
"@blocklet/env": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
59
59
|
"@blocklet/form-builder": "^0.1.11",
|
|
60
60
|
"@blocklet/form-collector": "^0.1.8",
|
|
61
|
-
"@blocklet/images": "1.16.42-beta-
|
|
62
|
-
"@blocklet/js-sdk": "1.16.42-beta-
|
|
63
|
-
"@blocklet/meta": "1.16.42-beta-
|
|
64
|
-
"@blocklet/sdk": "1.16.42-beta-
|
|
61
|
+
"@blocklet/images": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
62
|
+
"@blocklet/js-sdk": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
63
|
+
"@blocklet/meta": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
64
|
+
"@blocklet/sdk": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
65
65
|
"@blocklet/theme-builder": "^0.1.8",
|
|
66
66
|
"@blocklet/uploader-server": "^0.1.94",
|
|
67
67
|
"@blocklet/xss": "^0.1.31",
|
|
@@ -115,15 +115,15 @@
|
|
|
115
115
|
"whatwg-url": "14.0.0"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
|
-
"@abtnode/ux": "1.16.42-beta-
|
|
119
|
-
"@arcblock/bridge": "^2.12.
|
|
120
|
-
"@arcblock/did-connect": "^2.12.
|
|
121
|
-
"@arcblock/icons": "^2.12.
|
|
122
|
-
"@arcblock/react-hooks": "^2.12.
|
|
123
|
-
"@arcblock/ux": "^2.12.
|
|
124
|
-
"@blocklet/launcher-layout": "^2.12.
|
|
125
|
-
"@blocklet/tracker": "1.16.42-beta-
|
|
126
|
-
"@blocklet/ui-react": "^2.12.
|
|
118
|
+
"@abtnode/ux": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
119
|
+
"@arcblock/bridge": "^2.12.60",
|
|
120
|
+
"@arcblock/did-connect": "^2.12.60",
|
|
121
|
+
"@arcblock/icons": "^2.12.60",
|
|
122
|
+
"@arcblock/react-hooks": "^2.12.60",
|
|
123
|
+
"@arcblock/ux": "^2.12.60",
|
|
124
|
+
"@blocklet/launcher-layout": "^2.12.60",
|
|
125
|
+
"@blocklet/tracker": "1.16.42-beta-20250408-050422-92c8eef3",
|
|
126
|
+
"@blocklet/ui-react": "^2.12.60",
|
|
127
127
|
"@blocklet/uploader": "^0.1.82",
|
|
128
128
|
"@emotion/react": "^11.11.4",
|
|
129
129
|
"@emotion/styled": "^11.11.5",
|
|
@@ -200,5 +200,5 @@
|
|
|
200
200
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
201
201
|
"email": "shijun@arcblock.io"
|
|
202
202
|
},
|
|
203
|
-
"gitHead": "
|
|
203
|
+
"gitHead": "ae0b425aed5c8d8c4ae651595535860467e11e74"
|
|
204
204
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as r,a3 as f,T as y,E as h,aa as x}from"./vendor-mui-core-C-PhacC8.js";import"./vendor-react-DoD83n6N.js";import{y as g}from"./vendor-utils-CRBr0QUY.js";import{u as w}from"./useAsync-BJWebEpq.js";import{u as C,aM as T,C as i,aY as j,V as k,al as v}from"./vendor-ux-did-connect-BihFfRkM.js";import{u as P,s as S}from"./index-D4WK9Fpj.js";import"./useAsync-CX7JRRJM.js";import"./vendor-hooks-DtYI0-rF.js";import"./lottie-web-B6s7dDoL.js";import"./vendor-arcblock-DV12D9BN.js";function U({children:p}){const{t:n,locale:u}=C(),{api:c,session:o}=P(),{encryptKey:l,decrypt:m}=T(),t=w(async()=>{var s;const e=new URL(window.location.href);e.pathname=g(((s=window==null?void 0:window.env)==null?void 0:s.apiPrefix)??"/","/api/did/setup/token"),e.searchParams.set("_ek_",l);const{data:a}=await c.get(e.href);return a}),d=async e=>{const a=Array.isArray(e)?e.find(s=>s.sessionToken):e;S(m(a.sessionToken));try{await o.refresh()}catch(s){k.error(s.message)}};return!t.value||t.loading||o.loading?r.jsx(i,{relative:"parent",children:r.jsx(f,{})}):o.user?p:t.error?r.jsx(i,{relative:"parent",children:r.jsx(y,{children:t.error.message})}):r.jsx(R,{popup:!0,open:!0,hideCloseButton:!0,action:"pre-setup",checkFn:c.get,checkTimeout:10*60*1e3,webWalletUrl:j(),onSuccess:d,locale:u,messages:{title:n("setup.connect.title"),scan:n("setup.connect.scan"),confirm:n("setup.connect.confirm"),success:n("setup.connect.success")},extraParams:{setup:!0,nw:t.value.url}})}U.propTypes={children:h.any.isRequired};const R=x(v)`
|
|
2
|
-
.action-info-desc {
|
|
3
|
-
padding: 0 72px;
|
|
4
|
-
}
|
|
5
|
-
`;export{U as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as o,a4 as i,E as h,aa as C}from"./vendor-mui-core-C-PhacC8.js";import{o as k,f as B,ag as w,d as x}from"./index-D4WK9Fpj.js";import{D as E,a as I,b}from"./domain-action-card-zrJxt72X.js";import{aZ as T}from"./vendor-ux-did-connect-BihFfRkM.js";import{P as A}from"./page-header-BbutANxz.js";import{r}from"./vendor-react-DoD83n6N.js";import{_ as L}from"./useSetState-BL3ktMon.js";import{S as D}from"./button-CYnp_Qaz.js";import{S as W}from"./layout-CkeNygRb.js";import{S as _}from"./step-actions-DKSbOH-i.js";import"./vendor-arcblock-DV12D9BN.js";import"./vendor-utils-CRBr0QUY.js";import"./vendor-hooks-DtYI0-rF.js";import"./lottie-web-B6s7dDoL.js";import"./ExpandLess-Dt46nF0t.js";import"./permission-D7sDivJU.js";import"./session-D21Dok5b.js";import"./useAsyncRetry-BAg_7Lam.js";import"./useAsync-CX7JRRJM.js";import"./confirm-B2IOP2M3.js";import"./format-error-LAoTjvJe.js";import"./actions-DVfOVgcp.js";import"./MoreHoriz-CiMTPRBH.js";import"./delete-confirm-CfIbUYYk.js";import"./click-to-copy-BNduK3fH.js";import"./shorten-label-C642GTxb.js";import"./util-CzLAhqb9.js";import"./InfoOutlined-Cga_EIiY.js";import"./useAsync-BJWebEpq.js";import"./index-nHbtopN7.js";import"./CheckCircle-BBenFQEZ.js";import"./content-layout-uPtoKIAs.js";import"./use-mobile-DudfIz3d.js";function d({onNext:s,onPrevious:S}){var u,f;const{t:n}=r.useContext(T),[j,p]=r.useState(!1),{blocklet:e}=k(),[l,y]=r.useState(""),P=(((e==null?void 0:e.site)||{}).domainAliases||[]).map(t=>B.replaceSlotToIp(t.value,l)),[a,m]=L({domain:"",invalidDNSDomain:null,type:"",addDomainState:{text:""}}),c=(f=(u=e.environments)==null?void 0:u.find(t=>t.key==="BLOCKLET_APP_PK"))==null?void 0:f.value,g=P.find(t=>w.isDidDomain(t));return r.useEffect(()=>{x.get(`/dns-resolve?hostname=${window.location.hostname}`).then(({data:t})=>{y(t.address||"")}).catch(t=>{console.error(t.message)})},[]),o.jsxs($,{children:[o.jsx(i,{className:"header",children:o.jsx(A,{title:n("setup.domain.title"),subTitle:n("setup.domain.subTitle"),onClickBack:S})}),o.jsxs(i,{className:"form",sx:{display:"flex",flexDirection:"column",gap:3,overflowY:"auto"},children:[o.jsxs(i,{children:[o.jsx(i,{color:"text.primary",fontWeight:"fontWeightBold",fontSize:"1.125rem",children:o.jsx(i,{display:"inline",children:`${n("setup.domain.buyOrConnect")} (${n("common.optional")})`})}),o.jsx(i,{mt:1,children:o.jsx(I,{blocklet:e,bugDidDomainProps:{appPk:c,appId:e.appPid,siteId:e.site.id,teamDid:e.meta.did,inBlockletSetup:!0},connectDomainProps:{autoFocus:!1,appPk:c,appId:e.appPid,siteId:e.site.id,teamDid:e.meta.did,cnameDomain:g,currentIp:l,inBlockletSetup:!0,shouldCheckDomain:!0,resolveDomain:t=>x.get(`/dns-resolve?hostname=${t}`),onInputDomain:t=>{m({domain:t.domain,type:t.type}),p(t.error)},onStateChange:t=>m({addDomainState:t}),onSuccess:t=>{const v={domain:t.domain,type:t.type,nftDid:t.nftDid,chainHost:t.chainHost};m(v),s()},onError:p}})})]}),o.jsxs(i,{children:[o.jsx(i,{color:"text.primary",fontWeight:"fontWeightBold",fontSize:"1.125rem",children:o.jsx(i,{display:"inline",children:n("setup.domain.skipDescription")})}),o.jsx(i,{mt:1,children:o.jsx(b,{inSetup:!0,showAllDomains:!0})})]})]}),o.jsx(_,{mt:8,disabled:!!a.addDomainState.text,blocklet:e,onStartNow:()=>s("complete"),children:a.domain?o.jsx(D,{variant:"contained",loading:!!a.addDomainState.text,disabled:j||!!a.addDomainState.text||!a.domain,onClick:()=>s(),children:a.addDomainState.text||n("setup.continue")}):o.jsx(D,{variant:"contained",disabled:!!a.addDomainState.text,onClick:()=>s(),children:n("setup.continue")})})]})}function St(s){return o.jsx(E,{children:o.jsx(d,{...s})})}d.propTypes={onNext:h.func,onPrevious:h.func};d.defaultProps={onNext:()=>{},onPrevious:()=>{}};const $=C(W)`
|
|
2
|
-
height: 100%;
|
|
3
|
-
overflow-y: hidden;
|
|
4
|
-
|
|
5
|
-
.form {
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 100%;
|
|
8
|
-
}
|
|
9
|
-
`;export{St as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as m}from"./vendor-react-DoD83n6N.js";import{u as p}from"./vendor-ux-did-connect-BihFfRkM.js";import{D as a,A as n,K as l,f as c}from"./index-D4WK9Fpj.js";import{a as u,b as x}from"./domain-action-card-zrJxt72X.js";import{j as t,a4 as f,ae as d,ad as h}from"./vendor-mui-core-C-PhacC8.js";import"./vendor-utils-CRBr0QUY.js";import"./vendor-hooks-DtYI0-rF.js";import"./lottie-web-B6s7dDoL.js";import"./vendor-arcblock-DV12D9BN.js";import"./ExpandLess-Dt46nF0t.js";import"./permission-D7sDivJU.js";import"./session-D21Dok5b.js";import"./useAsyncRetry-BAg_7Lam.js";import"./useAsync-CX7JRRJM.js";import"./confirm-B2IOP2M3.js";import"./format-error-LAoTjvJe.js";import"./actions-DVfOVgcp.js";import"./MoreHoriz-CiMTPRBH.js";import"./delete-confirm-CfIbUYYk.js";import"./click-to-copy-BNduK3fH.js";import"./shorten-label-C642GTxb.js";import"./util-CzLAhqb9.js";import"./useSetState-BL3ktMon.js";import"./InfoOutlined-Cga_EIiY.js";import"./useAsync-BJWebEpq.js";import"./index-nHbtopN7.js";import"./CheckCircle-BBenFQEZ.js";function j(){const{blocklet:o}=a(),{inService:i}=n(),{t:s}=p(),e=m.useMemo(()=>{let r=!0;return l(o)&&(r=r&&i),r},[i,o]);return t.jsxs(f,{component:d,sx:{maxWidth:820},gap:3,children:[t.jsxs(t.Fragment,{children:[c.isAccessible(o.status)===!1&&t.jsx(h,{severity:"warning",children:s("blocklet.router.noRunning")}),e&&t.jsx(u,{blocklet:o})]}),t.jsx(x,{showAllDomains:!0})]})}j.propTypes={};export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./vendor-mui-core-C-PhacC8.js";import"./vendor-react-DoD83n6N.js";import{S as t}from"./studio-D6is1ZB_.js";import"./vendor-ux-did-connect-BihFfRkM.js";import"./vendor-utils-CRBr0QUY.js";import"./vendor-hooks-DtYI0-rF.js";import"./lottie-web-B6s7dDoL.js";import"./vendor-arcblock-DV12D9BN.js";import"./TuneOutlined-BVx9kD7P.js";function d(){return o.jsx(t,{children:"Coming soon..."})}export{d as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Q as o}from"./vendor-ux-did-connect-BihFfRkM.js";const e=new o;export{e as b};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/connect-rJwegOE9.js","assets/vendor-mui-core-C-PhacC8.js","assets/vendor-react-DoD83n6N.js","assets/vendor-utils-CRBr0QUY.js","assets/useAsync-BJWebEpq.js","assets/useAsync-CX7JRRJM.js","assets/vendor-hooks-DtYI0-rF.js","assets/vendor-ux-did-connect-BihFfRkM.js","assets/lottie-web-B6s7dDoL.js","assets/vendor-ux-did-connect-BDmhBveY.css","assets/index-D4WK9Fpj.js","assets/vendor-arcblock-DV12D9BN.js","assets/config-B7w-t9zX.js","assets/index-Hx9TNFzZ.js","assets/Done-Bu72PctM.js","assets/Google-BxEqzKy9.js","assets/cloneDeep-C7Ok409J.js","assets/logo-uploader-CejcEz3E.js","assets/index-tUQxVYYQ.js","assets/page-header-BbutANxz.js","assets/layout-CkeNygRb.js","assets/content-layout-uPtoKIAs.js","assets/step-actions-DKSbOH-i.js","assets/use-mobile-DudfIz3d.js","assets/button-CYnp_Qaz.js","assets/index-BVLCYG1J.js","assets/config-space-DwDB8lsp.js","assets/spaces-BCWZ7kDs.js","assets/api-DlN8K5Jg.js","assets/connect-to-5OMMyaiW.js","assets/DeleteOutline-DVPNhMfh.js","assets/format-error-LAoTjvJe.js","assets/domain-VSKg_phi.js","assets/domain-action-card-zrJxt72X.js","assets/ExpandLess-Dt46nF0t.js","assets/permission-D7sDivJU.js","assets/session-D21Dok5b.js","assets/useAsyncRetry-BAg_7Lam.js","assets/confirm-B2IOP2M3.js","assets/actions-DVfOVgcp.js","assets/MoreHoriz-CiMTPRBH.js","assets/delete-confirm-CfIbUYYk.js","assets/click-to-copy-BNduK3fH.js","assets/shorten-label-C642GTxb.js","assets/util-CzLAhqb9.js","assets/useSetState-BL3ktMon.js","assets/InfoOutlined-Cga_EIiY.js","assets/index-nHbtopN7.js","assets/CheckCircle-BBenFQEZ.js","assets/access-control-DZAkdMhI.js","assets/config-Dtwn5KYi.js","assets/fuel-DBtsoBpG.js","assets/Launch-hbSlZ0zw.js","assets/did-address-Cv_JswP5.js","assets/complete-Cb2HEBpG.js","assets/launch-result-message-DvcvHHH1.js","assets/get-safe-url-DBsoYX8R.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{S as Q,_ as d,L as W}from"./vendor-arcblock-DV12D9BN.js";import{j as e,aa as T,t as q,e as K,bu as G,a4 as X,a3 as J,b5 as Y}from"./vendor-mui-core-C-PhacC8.js";import{f as ee,k as te,r as i,h as se,i as c,j as oe}from"./vendor-react-DoD83n6N.js";import{y as o}from"./vendor-utils-CRBr0QUY.js";import{u as ae,aP as ne,m as V}from"./vendor-ux-did-connect-BihFfRkM.js";import{C as re}from"./config-space-DwDB8lsp.js";import{H as ie}from"./addon-dV77wOE-.js";import{S as le}from"./ServerLogo-Bi89KNz4.js";import{o as pe,u as ce,q as k,r as de,t as ue,P as A,N as Le,f as me,S as he,h as x}from"./index-D4WK9Fpj.js";import{g as fe}from"./get-safe-url-DBsoYX8R.js";import"./vendor-hooks-DtYI0-rF.js";import"./lottie-web-B6s7dDoL.js";import"./spaces-BCWZ7kDs.js";import"./api-DlN8K5Jg.js";import"./QuestionMarkCircle-BHP2onYz.js";var E=function(m){return e.jsxs("svg",{...m,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 10.6417L31.72 0L13.288 10.6417V24.7942L1 31.8887V53.1722L19.432 63.8139L31.6902 56.7366L31.72 56.7538L31.7498 56.7366L44.008 63.8139L62.44 53.1722V31.8887L50.152 24.7942V10.6417ZM60.52 32.9972L48.232 25.9027V11.7502L31.72 2.21703L15.208 11.7502V25.9028L2.92 32.9972V52.0636L19.432 61.5968L31.6902 54.5196L31.72 54.5368L31.7498 54.5196L44.008 61.5968L60.52 52.0636V32.9972Z",fill:"url(#paint0_linear_615_426)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.1521 24.8307L31.7201 14.189L13.2881 24.8307V46.1141L31.7201 56.7558L50.1521 46.1141V24.8307ZM15.2081 25.9392L31.7201 16.406L48.2321 25.9392V45.0056L31.7201 54.5388L15.2081 45.0056V25.9392ZM28.5464 23.0464C28.6641 22.6342 29.0408 22.3501 29.4695 22.3501H33.9707C34.3993 22.3501 34.776 22.6342 34.8938 23.0464L35.7504 26.0447L37.8696 27.2681L40.8945 26.5109C41.3103 26.4068 41.7447 26.591 41.959 26.9622L44.2096 30.8604C44.424 31.2316 44.3662 31.6998 44.0682 32.0079L41.8999 34.2489V36.6959L44.0682 38.9369C44.3662 39.245 44.424 39.7133 44.2096 40.0845L41.959 43.9827C41.7447 44.3539 41.3103 44.538 40.8945 44.4339L37.8696 43.6767L35.7504 44.9002L34.8938 47.8984C34.776 48.3106 34.3993 48.5947 33.9707 48.5947H29.4695C29.0408 48.5947 28.6641 48.3106 28.5464 47.8984L27.6897 44.9002L25.5706 43.6767L22.5457 44.4339C22.1299 44.538 21.6955 44.3539 21.4812 43.9827L19.2305 40.0845C19.0162 39.7133 19.0739 39.245 19.372 38.9369L21.5402 36.6959V34.2489L19.372 32.0079C19.0739 31.6998 19.0162 31.2316 19.2305 30.8604L21.4812 26.9622C21.6955 26.591 22.1299 26.4068 22.5457 26.5109L25.5706 27.2681L27.6897 26.0447L28.5464 23.0464ZM28.9861 27.5132C29.2018 27.3887 29.3607 27.1851 29.4292 26.9456L30.1936 24.2701H33.2466L34.011 26.9456C34.0794 27.1851 34.2383 27.3887 34.4541 27.5132L37.2459 29.1251C37.4617 29.2497 37.7174 29.2855 37.9591 29.225L40.6583 28.5493L42.1848 31.1932L40.25 33.193C40.0768 33.372 39.9799 33.6114 39.9799 33.8605V37.0843C39.9799 37.3334 40.0768 37.5728 40.25 37.7518L42.1848 39.7516L40.6583 42.3955L37.9591 41.7198C37.7174 41.6593 37.4617 41.6951 37.2459 41.8197L34.4541 43.4316C34.2383 43.5561 34.0794 43.7597 34.011 43.9992L33.2466 46.6747H30.1936L29.4292 43.9992C29.3607 43.7597 29.2018 43.5561 28.9861 43.4316L26.1942 41.8197C25.9785 41.6951 25.7228 41.6593 25.4811 41.7198L22.7819 42.3955L21.2554 39.7516L23.1902 37.7518C23.3634 37.5728 23.4602 37.3334 23.4602 37.0843V33.8605C23.4602 33.6114 23.3634 33.372 23.1902 33.193L21.2554 31.1932L22.7819 28.5493L25.4811 29.225C25.7228 29.2855 25.9785 29.2497 26.1942 29.1251L28.9861 27.5132ZM31.7201 41.6407C28.3134 41.6407 25.5517 38.8791 25.5517 35.4724C25.5517 32.0657 28.3134 29.3041 31.7201 29.3041C35.1268 29.3041 37.8884 32.0657 37.8884 35.4724C37.8884 38.8791 35.1268 41.6407 31.7201 41.6407ZM35.9684 35.4724C35.9684 37.8187 34.0664 39.7207 31.7201 39.7207C29.3738 39.7207 27.4717 37.8187 27.4717 35.4724C27.4717 33.1261 29.3738 31.2241 31.7201 31.2241C34.0664 31.2241 35.9684 33.1261 35.9684 35.4724Z",fill:"url(#paint1_linear_615_426)"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"paint0_linear_615_426",x1:"31.72",y1:"95.7208",x2:"95.488",y2:"34.3249",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#0FA4B7"}),e.jsx("stop",{offset:"0.494757",stopColor:"#1DC1C7"}),e.jsx("stop",{offset:"1",stopColor:"#2BE0D7"})]}),e.jsxs("linearGradient",{id:"paint1_linear_615_426",x1:"28.4374",y1:"99.2464",x2:"98.7613",y2:"44.9372",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#0FA4B7"}),e.jsx("stop",{offset:"0.494757",stopColor:"#1DC1C7"}),e.jsx("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]})};E.defaultProps={width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};E.displayName="server-logo-notext";const _e=E,xe=T.span`
|
|
3
|
-
color: ${m=>m.theme.palette.error.main};
|
|
4
|
-
&::before {
|
|
5
|
-
content: '*';
|
|
6
|
-
}
|
|
7
|
-
`,C=xe,Ce=i.lazy(()=>d(()=>import("./connect-rJwegOE9.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))),Ee=i.lazy(()=>d(()=>import("./config-B7w-t9zX.js"),__vite__mapDeps([12,1,2,3,7,6,8,9,13,14,15,16,10,11,17,18,19,20,21,22,23,24]))),ge=i.lazy(()=>d(()=>import("./index-BVLCYG1J.js"),__vite__mapDeps([25,1,2,7,3,6,8,9,19,10,11,26,27,28,29,30,31,22,23,20,21]))),je=i.lazy(()=>d(()=>import("./domain-VSKg_phi.js"),__vite__mapDeps([32,1,2,10,11,7,3,6,8,9,33,34,35,36,37,5,38,31,39,40,41,42,43,44,45,46,4,47,48,19,24,20,21,22,23]))),ye=i.lazy(()=>d(()=>import("./access-control-DZAkdMhI.js"),__vite__mapDeps([49,1,2,7,3,6,8,9,50,19,10,11,20,21,22,23,24]))),ve=i.lazy(()=>d(()=>import("./fuel-DBtsoBpG.js"),__vite__mapDeps([51,1,2,3,52,7,6,8,9,53,19,10,11,20,21,22,23,24]))),Pe=i.lazy(()=>d(()=>import("./complete-Cb2HEBpG.js"),__vite__mapDeps([54,1,2,7,3,6,8,9,10,11,55,56,24,20,21])));function He(){var R,w,I;const m=q(a=>a.breakpoints.down("md")),$=K(),{t,locale:B}=ae(),[g,D]=ee(),h=te(),{meta:u,blocklet:r,actions:l,loading:N}=pe(),O=localStorage.getItem("blocklet-server-url"),{session:j}=ce(),M=k("fromLauncher"),y=k("visitorId");y&&(ne(y),g.delete("visitorId"),D(g)),i.useEffect(()=>{de(),j.user&&(l==null||l.refreshMeta(),l==null||l.refreshBlocklet({showError:!1}))},[j.user]),i.useEffect(()=>{l.refreshFuel({showError:!1})},[(R=r==null?void 0:r.meta)==null?void 0:R.did]);const s=`${V.WELLKNOWN_SERVICE_PATH_PREFIX}/setup`,U=a=>{var f;const n=(f=a==null?void 0:a.capabilities)==null?void 0:f.didSpace;return n?n===x.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||n===x.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP?{key:"did-space",name:e.jsxs(e.Fragment,{children:[t("setup.steps.didSpace")," ",e.jsx(C,{})]}),path:o(s,"did-space")}:n===x.BLOCKLET_APP_SPACE_REQUIREMENT.OPTIONAL?{key:"did-space",name:e.jsx(e.Fragment,{children:t("setup.steps.didSpace")}),path:o(s,"did-space")}:(console.warn(`capabilities.didSpace cannot take the value ${n}`),null):null},p=[{key:"access",name:t("setup.steps.access"),path:o(s,"access")},{key:"domain",name:t("setup.domain.title"),path:o(s,"domain")},U(r),{key:"config",name:e.jsxs(e.Fragment,{children:[t("setup.steps.config")," ",ue(u)&&e.jsx(C,{})]}),path:o(s,"config")},(I=(w=u==null?void 0:u.requirements)==null?void 0:w.fuels)!=null&&I.length?{key:"fuel",name:e.jsxs(e.Fragment,{children:[t("setup.steps.fuel")," ",e.jsx(C,{})]}),path:o(s,"fuel")}:null].filter(Boolean),_=p.findIndex(a=>`${A.replace(/\/$/,"")}${s}/${a.key}`===window.location.pathname),F=o(A,V.WELLKNOWN_SERVICE_PATH_PREFIX,`/blocklet/logo?v=${r==null?void 0:r.updatedAt}`),b=async a=>{const{search:n}=new URL(window.location.href);if(!a)p[_+1]?h(`${o(s,p[_+1].key)}${n}`):h(`${o(s,"complete")}${n}`);else{const f=p.findIndex(z=>z.key===a);f>-1?h(`${o(s,p[f].key)}${n}`):h(`${o(s,"complete")}${n}`)}await l.refreshBlocklet()},H=()=>{h(-1)};function L(a,n){return e.jsxs(Ce,{children:[!r&&e.jsx(X,{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",children:e.jsx(J,{})}),r&&e.jsx(a,{blocklet:r,...n,onNext:b,onPrevious:H,buttonText:_===p.length-1?t("setup.startNow"):""})]})}const v=()=>{window.open(fe(O,{allowDomains:null}))},Z=m?e.jsx(_e,{onClick:v,width:"32",height:"32",style:{cursor:"pointer"}}):e.jsx(le,{onClick:v,width:"128",height:"48",style:{marginTop:-1,cursor:"pointer"}}),P=[{key:"install",name:t("launchBlocklet.steps.installApp"),path:o(s,"install")},{key:"setup",name:t("setup.steps.launchApp"),children:p}];let S=[{key:"agreement",name:t("launchBlocklet.introduction"),path:o(s,"agreement")},...P];return M&&(S=[{key:"purchase-space",name:t("launchBlocklet.steps.purchaseSpace")},{key:"prepare-space",name:t("launchBlocklet.steps.prepareSpace")},...P]),e.jsx(Q,{steps:S,children:e.jsx(Le,{children:e.jsxs(re,{children:[e.jsx(G,{styles:Se}),e.jsx(Re,{locale:B,loading:N,blockletMeta:{...u,title:me.getDisplayName({...r,meta:u})},navLogo:Z,pcWidth:"80%",style:{height:"100%"},logoUrl:F,useOfSkeleton:!1,headerEndAddons:e.jsx(ie,{SessionContext:he,sessionManagerProps:{disableLogout:!0}}),theme:$,launchingText:t("setup.title"),children:e.jsxs(se,{children:[e.jsx(c,{path:"access",element:L(ye)}),e.jsx(c,{path:"domain",element:L(je)}),e.jsx(c,{path:"did-space",element:L(ge)}),e.jsx(c,{path:"config",element:L(Ee)}),e.jsx(c,{path:"fuel",element:L(ve)}),e.jsx(c,{path:"complete",element:L(Pe)}),e.jsx(c,{path:"*",element:e.jsx(oe,{to:`access${window.location.search}`,replace:!0})})]})})]})})})}const Se=Y`
|
|
8
|
-
html,
|
|
9
|
-
body,
|
|
10
|
-
#app,
|
|
11
|
-
#app > .wrapper {
|
|
12
|
-
height: 100%;
|
|
13
|
-
}
|
|
14
|
-
`,Re=T(W)`
|
|
15
|
-
.layout-content {
|
|
16
|
-
min-width: 0;
|
|
17
|
-
flex: 1 1 0;
|
|
18
|
-
}
|
|
19
|
-
`;export{He as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as r}from"./vendor-react-DoD83n6N.js";import{r as s}from"./useAsync-CX7JRRJM.js";var o=s();const a=r(o);export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{w as R}from"./vendor-hooks-DtYI0-rF.js";import{r as g}from"./vendor-react-DoD83n6N.js";var i={},l={},v={},M;function h(){if(M)return v;M=1,Object.defineProperty(v,"__esModule",{value:!0});var e=g;function r(){var t=e.useRef(!1),s=e.useCallback(function(){return t.current},[]);return e.useEffect(function(){return t.current=!0,function(){t.current=!1}},[]),s}return v.default=r,v}var p;function F(){if(p)return l;p=1,Object.defineProperty(l,"__esModule",{value:!0});var e=R,r=g,t=e.__importDefault(h());function s(d,u,a){u===void 0&&(u=[]),a===void 0&&(a={loading:!1});var f=r.useRef(0),o=t.default(),y=r.useState(a),b=y[0],_=y[1],U=r.useCallback(function(){for(var m=[],c=0;c<arguments.length;c++)m[c]=arguments[c];var A=++f.current;return b.loading||_(function(n){return e.__assign(e.__assign({},n),{loading:!0})}),d.apply(void 0,m).then(function(n){return o()&&A===f.current&&_({value:n,loading:!1}),n},function(n){return o()&&A===f.current&&_({error:n,loading:!1}),n})},u);return[b,U]}return l.default=s,l}var q;function S(){if(q)return i;q=1,Object.defineProperty(i,"__esModule",{value:!0});var e=R,r=g,t=e.__importDefault(F());function s(d,u){u===void 0&&(u=[]);var a=t.default(d,u,{loading:!0}),f=a[0],o=a[1];return r.useEffect(function(){o()},[o]),f}return i.default=s,i}export{S as r};
|