@abtnode/blocklet-services 1.16.44-beta-20250512-155818-937e465d → 1.16.44-beta-20250513-030435-c2d99062

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/assets/{access-control-CCSlKYYz.js → access-control-Din7doVd.js} +1 -1
  2. package/dist/assets/{add-component-core-C7-Epxoj.js → add-component-core-5x4gTem5.js} +1 -1
  3. package/dist/assets/{add-resource-CJHw7ea0.js → add-resource-BrZnm53f.js} +1 -1
  4. package/dist/assets/{advanced-tG5IRVhQ.js → advanced-CN6mCSES.js} +1 -1
  5. package/dist/assets/{appearance-bRLsRDs2.js → appearance-Bowm1Shj.js} +1 -1
  6. package/dist/assets/{audit-logs-B3-Fo3nR.js → audit-logs-DczjqamJ.js} +1 -1
  7. package/dist/assets/{authorize-DNTNbUhI.js → authorize-D2LCmekq.js} +1 -1
  8. package/dist/assets/{branding-By8KDk5Q.js → branding-B6AmOMI6.js} +1 -1
  9. package/dist/assets/{branding-hDeNkLC2.js → branding-CwhhJRKu.js} +2 -2
  10. package/dist/assets/{bundle-avatar-DYTLzqlT.js → bundle-avatar-CDJRatFg.js} +1 -1
  11. package/dist/assets/{complete-6R-n_Ra9.js → complete-CKhw9u_z.js} +1 -1
  12. package/dist/assets/{component-Blsql2u0.js → component-Cb3m5qUw.js} +1 -1
  13. package/dist/assets/{config-D6r2ZAFY.js → config-kGXJEkFJ.js} +1 -1
  14. package/dist/assets/{config-navigation-B0nu0al4.js → config-navigation-CKVyFhfH.js} +3 -3
  15. package/dist/assets/{config-space-d34Deg7R.js → config-space-CogRdhoQ.js} +1 -1
  16. package/dist/assets/{confirm-DjTZImyg.js → confirm-SdqBW-ti.js} +1 -1
  17. package/dist/assets/{connect-Cu2Ssv5A.js → connect-BMn4CxDk.js} +1 -1
  18. package/dist/assets/connect-HAC-YfHh.js +5 -0
  19. package/dist/assets/{connect-to-BG15Vnyg.js → connect-to-eNQDY2rc.js} +1 -1
  20. package/dist/assets/{dashboard-BIOpvfj3.js → dashboard-BYxl5V9e.js} +3 -3
  21. package/dist/assets/{delete-confirm-BzuBR6TW.js → delete-confirm-CKF_eljP.js} +1 -1
  22. package/dist/assets/domain-DotN6lCb.js +9 -0
  23. package/dist/assets/{domain-action-card-Bcs_GWxq.js → domain-action-card-DHH9PLRG.js} +1 -1
  24. package/dist/assets/domains-BV2pykxi.js +1 -0
  25. package/dist/assets/dot-BA3EvSrh.js +7 -0
  26. package/dist/assets/{email-BZVu6WP-.js → email-CHR0EOis.js} +1 -1
  27. package/dist/assets/{exchange-passport-8jdiPDph.js → exchange-passport-D0iIXJxD.js} +1 -1
  28. package/dist/assets/{fuel-Dx_cnsCl.js → fuel-nMTHNcy-.js} +1 -1
  29. package/dist/assets/{gen-access-key-CqKmmKML.js → gen-access-key-DH4wNzRm.js} +1 -1
  30. package/dist/assets/{index-Dyl-XQ73.js → index-B54lTbup.js} +1 -1
  31. package/dist/assets/{index-SzdSxpkq.js → index-BA8C83iz.js} +1 -1
  32. package/dist/assets/{index-C-A13dEh.js → index-BCNchyGN.js} +1 -1
  33. package/dist/assets/{index-C5SsKJ2n.js → index-BCtmnJeV.js} +1 -1
  34. package/dist/assets/{index-B9nvthxv.js → index-BJxv6GA4.js} +1 -1
  35. package/dist/assets/{index-Jnk92KZC.js → index-BLGGjT7N.js} +5 -5
  36. package/dist/assets/{index-Btl_rz0J.js → index-B_-kynzD.js} +3 -3
  37. package/dist/assets/{index-Bju4sfVL.js → index-BuXc3Oag.js} +1 -1
  38. package/dist/assets/{index-DefO2n6z.js → index-CIkPfxzG.js} +2 -2
  39. package/dist/assets/{index-ioZVVJtg.js → index-CYeNo51G.js} +1 -1
  40. package/dist/assets/{index-Cc-e6lxg.js → index-CfxcUIhC.js} +1 -1
  41. package/dist/assets/{index-USO5zFMh.js → index-Ctzl9JDw.js} +1 -1
  42. package/dist/assets/{index-HU4yqI-9.js → index-CxwBhS0_.js} +1 -1
  43. package/dist/assets/{index-DjEDWgGs.js → index-D7eC9ptO.js} +1 -1
  44. package/dist/assets/{index-Du38Vjy4.js → index-D9KfgDPN.js} +4 -4
  45. package/dist/assets/{invitation-1bsb30Yz.js → invitation-DzT9Qa0A.js} +1 -1
  46. package/dist/assets/{invite-CALl83Zc.js → invite-CQPeUOT4.js} +1 -1
  47. package/dist/assets/{issue-passport-BcStTsbv.js → issue-passport-BYhvmLsl.js} +1 -1
  48. package/dist/assets/{item-Bk_1JLeG.js → item-D942q-4T.js} +1 -1
  49. package/dist/assets/{layout-D93HKT6w.js → layout-BcLfVSqs.js} +1 -1
  50. package/dist/assets/{list-rt6nku1-.js → list-BiJWMg_P.js} +1 -1
  51. package/dist/assets/{list-D96_O-GY.js → list-DKUSPdB6.js} +2 -2
  52. package/dist/assets/{log--AX8zo75.js → log-Iko0jLNA.js} +1 -1
  53. package/dist/assets/{login-WRcteY7r.js → login-4Yq_pPSw.js} +1 -1
  54. package/dist/assets/{logo-uploader-CQCy6MG3.js → logo-uploader-Cnkdgyfv.js} +2 -2
  55. package/dist/assets/{lost-passport-kJX7pEJj.js → lost-passport-D5jMtgH_.js} +1 -1
  56. package/dist/assets/open-window--2G6Qjbq.js +1 -1
  57. package/dist/assets/{overview-CpKMiGEK.js → overview-CaQ-tV1t.js} +1 -1
  58. package/dist/assets/{passport-item-CIvCqz_R.js → passport-item-DH3_49G1.js} +1 -1
  59. package/dist/assets/{publish-resource-CCa5xfwz.js → publish-resource-BtFRgv4P.js} +1 -1
  60. package/dist/assets/{runtime-eXYlg9Cz.js → runtime-B0207zk1.js} +1 -1
  61. package/dist/assets/{security-DM8MeY05.js → security-CX01lhxW.js} +1 -1
  62. package/dist/assets/setup-DIAgbS7c.js +30 -0
  63. package/dist/assets/{start-CIjuDAiX.js → start-CMRQU8Px.js} +1 -1
  64. package/dist/assets/{status-CUMJd-nJ.js → status-DSQPLYSp.js} +1 -1
  65. package/dist/assets/{step-actions-CeJCmiCS.js → step-actions-BfGTFkaB.js} +1 -1
  66. package/dist/assets/{traffic-B5x_6GvF.js → traffic-ClE631in.js} +1 -1
  67. package/dist/assets/{transfer-CTEHVklh.js → transfer-BnR8fjLW.js} +1 -1
  68. package/dist/assets/{unsubscribe-Bi2IV-2n.js → unsubscribe-rUE2LcLN.js} +1 -1
  69. package/dist/assets/{use-blocklet-logo-BEy8Tnso.js → use-blocklet-logo-Phq7jasP.js} +1 -1
  70. package/dist/assets/useAsync-DV3NyLhI.js +1 -0
  71. package/dist/assets/{user-center-DcXdjtRX.js → user-center-D25Vw-wP.js} +1 -1
  72. package/dist/assets/{util-MKllNgBs.js → util-Btd7aQEC.js} +1 -1
  73. package/dist/assets/{wrap-locale-B9TkXFQe.js → wrap-locale-CPW6a0PM.js} +1 -1
  74. package/dist/index.html +1 -1
  75. package/dist/service-worker.js +1 -1
  76. package/package.json +21 -21
  77. package/dist/assets/connect-K4ZmMu4L.js +0 -5
  78. package/dist/assets/domain-wh85yL2O.js +0 -9
  79. package/dist/assets/domains-bzKFbARj.js +0 -1
  80. package/dist/assets/dot-C4hULxc0.js +0 -7
  81. package/dist/assets/setup-BEsU41BB.js +0 -30
  82. package/dist/assets/useAsync-C8ydfEEr.js +0 -1
  83. package/dist/assets/useAsync-CMWsznMW.js +0 -1
@@ -1 +1 @@
1
- import{ay as _,aq as i}from"./vendor-ux-did-connect-DHrruicZ.js";import{_ as e}from"./vendor-arcblock-uz9DVywv.js";import{y as a}from"./index-DefO2n6z.js";import{j as r}from"./vendor-mui-core-D_bnq77o.js";const u={en:_(a),ar:()=>e(()=>import("./ar-Blzb8h2o.js"),[]).then(t=>_(t.default)),de:()=>e(()=>import("./de-BxI5dM9K.js"),[]).then(t=>_(t.default)),es:()=>e(()=>import("./es-BuUaHPig.js"),[]).then(t=>_(t.default)),fr:()=>e(()=>import("./fr-DezMACmP.js"),[]).then(t=>_(t.default)),hi:()=>e(()=>import("./hi-ClbEozhq.js"),[]).then(t=>_(t.default)),id:()=>e(()=>import("./id-CXYm-1K3.js"),[]).then(t=>_(t.default)),ja:()=>e(()=>import("./ja-B5V7b8Cm.js"),[]).then(t=>_(t.default)),ko:()=>e(()=>import("./ko-DP9up1nF.js"),[]).then(t=>_(t.default)),pt:()=>e(()=>import("./pt-CG45pWr4.js"),[]).then(t=>_(t.default)),ru:()=>e(()=>import("./ru-0VhRQc7t.js"),[]).then(t=>_(t.default)),th:()=>e(()=>import("./th-DwH8cjcw.js"),[]).then(t=>_(t.default)),vi:()=>e(()=>import("./vi-CcmTJggB.js"),[]).then(t=>_(t.default)),"zh-TW":()=>e(()=>import("./zh-tw-mW-UVEHx.js"),[]).then(t=>_(t.default)),zh:()=>e(()=>import("./zh-C2MKZFZw.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};
1
+ import{ay as _,aq as i}from"./vendor-ux-did-connect-DHrruicZ.js";import{_ as e}from"./vendor-arcblock-uz9DVywv.js";import{y as a}from"./index-CIkPfxzG.js";import{j as r}from"./vendor-mui-core-D_bnq77o.js";const u={en:_(a),ar:()=>e(()=>import("./ar-Blzb8h2o.js"),[]).then(t=>_(t.default)),de:()=>e(()=>import("./de-BxI5dM9K.js"),[]).then(t=>_(t.default)),es:()=>e(()=>import("./es-BuUaHPig.js"),[]).then(t=>_(t.default)),fr:()=>e(()=>import("./fr-DezMACmP.js"),[]).then(t=>_(t.default)),hi:()=>e(()=>import("./hi-ClbEozhq.js"),[]).then(t=>_(t.default)),id:()=>e(()=>import("./id-CXYm-1K3.js"),[]).then(t=>_(t.default)),ja:()=>e(()=>import("./ja-B5V7b8Cm.js"),[]).then(t=>_(t.default)),ko:()=>e(()=>import("./ko-DP9up1nF.js"),[]).then(t=>_(t.default)),pt:()=>e(()=>import("./pt-CG45pWr4.js"),[]).then(t=>_(t.default)),ru:()=>e(()=>import("./ru-0VhRQc7t.js"),[]).then(t=>_(t.default)),th:()=>e(()=>import("./th-DwH8cjcw.js"),[]).then(t=>_(t.default)),vi:()=>e(()=>import("./vi-CcmTJggB.js"),[]).then(t=>_(t.default)),"zh-TW":()=>e(()=>import("./zh-tw-mW-UVEHx.js"),[]).then(t=>_(t.default)),zh:()=>e(()=>import("./zh-C2MKZFZw.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,7 +15,7 @@
15
15
  background-color: transparent;
16
16
  }
17
17
  </style>
18
- <script type="module" crossorigin src="/.well-known/service/static/assets/index-DefO2n6z.js"></script>
18
+ <script type="module" crossorigin src="/.well-known/service/static/assets/index-CIkPfxzG.js"></script>
19
19
  <link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-react-DEoibe3W.js">
20
20
  <link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-mui-core-D_bnq77o.js">
21
21
  <link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-utils-rHXShPKm.js">
@@ -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 q(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=q(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=q(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("-"),ke=s=>{for(const e of Object.keys(p))s(e)},B={updateDetails:s=>{ke(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 V(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:7.0.0"]&&_()}catch{}const Ee="__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(Ee,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 Te=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function G(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function Ne(s,e,t,n){const a=G(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=G(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:Te(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 Ne(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=B.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=B.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:B.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 V(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 V(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 Z=()=>(O||(O=new We),O);try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};let D=class{constructor(e,t,n=ee){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=ee){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 Be(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 Fe(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=Fe(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=Z(),t=new Ve(e,s);Be(t)}function Je(s){Z().precache(s)}function Qe(s,e){Je(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 te(s){s.then(()=>{})}const Ze=(s,e)=>e.some(t=>s instanceof t);let J,Q;function et(){return J||(J=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function tt(){return Q||(Q=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const se=new WeakMap,$=new WeakMap,ne=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&&se.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||ne.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 ne.set(n,e.sort?e.sort():[e]),m(n)}:tt().includes(s)?function(...e){return s.apply(I(this),e),m(se.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 z(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)=>z(e,t)||s.get(e,t,n),has:(e,t)=>!!z(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const ut="workbox-expiration",k="cache-entries",Y=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(k,{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=Y(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(k,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(k,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(k).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(k,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Y(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,te(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);te(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 ae="GET",T=s=>s&&typeof s=="object"?s:{handle:s};class P{constructor(e,t,n=ae){this.handler=T(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=T(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=ae){this._defaultHandlerMap.set(t,T(e))}setCatchHandler(e){this._catchHandler=T(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 E;const bt=()=>(E||(E=new Rt,E.addFetchListener(),E.addCacheListener()),E);function N(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 re{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 ie extends re{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 ce extends re{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 H="sw-update-reload-times",oe="/lastUpdateMsgTimestamps",kt=10,Et=20*1e3;let le=!1;function Dt(s,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>{s.apply(this,n)},e)}}function Ut(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 Lt(s){const t=await(await caches.open(H)).match(`${oe}-${s}`);if(t)try{const n=await t.text();return JSON.parse(n)}catch{return[]}return[]}async function Pt(s,e){const t=await caches.open(H);if((await t.keys()).length>100){await caches.delete(H);return}const a=new Response(JSON.stringify(s));await t.put(`${oe}-${e}`,a)}const vt=Dt(async()=>{(await self.clients.matchAll()).forEach(e=>{e.postMessage({type:"SW_DOCUMENT_UPDATED"})})},100),X=/updatedAt:\s*\d+,/g,Tt={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(X,"updatedAt: ,"),a=a.replace(X,"updatedAt: ,")),n!==a){const r=Date.now(),c=(await Lt(s.url)).filter(o=>r-o<Et);if(c.length>=kt){console.warn("[SW] update too frequent, skip:",s.url);return}await Ut(()=>le),await Pt(c,s.url),console.log("[SW] document version or session updated",s.url),vt()}}catch(n){console.error("[SW] Error comparing document responses:",n)}}};Qe(([{"revision":null,"url":"assets/access-control-CCSlKYYz.js"},{"revision":null,"url":"assets/actions-BjTeIzgS.js"},{"revision":null,"url":"assets/AdapterDayjs-BD9H1lZ-.js"},{"revision":null,"url":"assets/add-component-core-C7-Epxoj.js"},{"revision":null,"url":"assets/add-component-core-D-IRi6XF.css"},{"revision":null,"url":"assets/add-resource-CJHw7ea0.js"},{"revision":null,"url":"assets/addon--u4EErgw.js"},{"revision":null,"url":"assets/advanced-tG5IRVhQ.js"},{"revision":null,"url":"assets/api-BjteVZFg.js"},{"revision":null,"url":"assets/appearance-bRLsRDs2.js"},{"revision":null,"url":"assets/ar-Blzb8h2o.js"},{"revision":null,"url":"assets/ar-BRKjvO8p.js"},{"revision":null,"url":"assets/ArrowDropDown-BrO-zDlb.js"},{"revision":null,"url":"assets/audit-logs-B3-Fo3nR.js"},{"revision":null,"url":"assets/authorize-DNTNbUhI.js"},{"revision":null,"url":"assets/base32-_zEVBJUg.js"},{"revision":null,"url":"assets/branding-By8KDk5Q.js"},{"revision":null,"url":"assets/branding-hDeNkLC2.js"},{"revision":null,"url":"assets/bundle-avatar-DYTLzqlT.js"},{"revision":null,"url":"assets/button-D8hoY4xw.js"},{"revision":null,"url":"assets/CheckCircle-Ds4QI0ey.js"},{"revision":null,"url":"assets/ChevronLeft-CnQaQ-rc.js"},{"revision":null,"url":"assets/ChevronRight-a_2_x6Ew.js"},{"revision":null,"url":"assets/click-to-copy-CFiGx48J.js"},{"revision":null,"url":"assets/cloneDeep-UpFQ2VNg.js"},{"revision":null,"url":"assets/collapse-QV_2gdtM.js"},{"revision":null,"url":"assets/Community-DW6DJTIs.js"},{"revision":null,"url":"assets/complete-6R-n_Ra9.js"},{"revision":null,"url":"assets/component-Blsql2u0.js"},{"revision":null,"url":"assets/config-D6r2ZAFY.js"},{"revision":null,"url":"assets/config-LE_EJolF.js"},{"revision":null,"url":"assets/config-navigation-B0nu0al4.js"},{"revision":null,"url":"assets/config-space-d34Deg7R.js"},{"revision":null,"url":"assets/confirm-DjTZImyg.js"},{"revision":null,"url":"assets/connect-Cu2Ssv5A.js"},{"revision":null,"url":"assets/connect-K4ZmMu4L.js"},{"revision":null,"url":"assets/connect-to-BG15Vnyg.js"},{"revision":null,"url":"assets/content-layout-BzF-fNQz.js"},{"revision":null,"url":"assets/dashboard-BIOpvfj3.js"},{"revision":null,"url":"assets/de-BxI5dM9K.js"},{"revision":null,"url":"assets/de-D3cg0t9f.js"},{"revision":null,"url":"assets/delete-confirm-BzuBR6TW.js"},{"revision":null,"url":"assets/DeleteOutline-CFN4r-OG.js"},{"revision":null,"url":"assets/did-address-DjwPl1uy.js"},{"revision":null,"url":"assets/domain-action-card-Bcs_GWxq.js"},{"revision":null,"url":"assets/domain-wh85yL2O.js"},{"revision":null,"url":"assets/domains-bzKFbARj.js"},{"revision":null,"url":"assets/Done-DqSE6KPe.js"},{"revision":null,"url":"assets/dot-C4hULxc0.js"},{"revision":null,"url":"assets/Download-C_LRKzbG.js"},{"revision":null,"url":"assets/Edit-CbR4eoK8.js"},{"revision":null,"url":"assets/EditIcon-DxUWMw59.js"},{"revision":null,"url":"assets/email-BZVu6WP-.js"},{"revision":null,"url":"assets/Email-DWueGk7t.js"},{"revision":null,"url":"assets/empty-spinner-n0_Ehns5.js"},{"revision":null,"url":"assets/Error-jEHdDLNk.js"},{"revision":null,"url":"assets/es-BuUaHPig.js"},{"revision":null,"url":"assets/es-DPjqApVE.js"},{"revision":null,"url":"assets/exchange-passport-8jdiPDph.js"},{"revision":null,"url":"assets/ExpandLess-CkoEHpgk.js"},{"revision":null,"url":"assets/format-error-BrmqJs5a.js"},{"revision":null,"url":"assets/fr-DezMACmP.js"},{"revision":null,"url":"assets/fr-Dscs9WsP.js"},{"revision":null,"url":"assets/fuel-Dx_cnsCl.js"},{"revision":null,"url":"assets/gen-access-key-CqKmmKML.js"},{"revision":null,"url":"assets/get-safe-url-B5RJTMjC.js"},{"revision":null,"url":"assets/get-safe-url-Bk6PlU7n.js"},{"revision":null,"url":"assets/Google-DHEolkW-.js"},{"revision":null,"url":"assets/hi-B8D3j6bs.js"},{"revision":null,"url":"assets/hi-ClbEozhq.js"},{"revision":null,"url":"assets/Holiday-Dwvo6QkZ.js"},{"revision":null,"url":"assets/home-DzCwBE8F.js"},{"revision":null,"url":"assets/id-CXYm-1K3.js"},{"revision":null,"url":"assets/id-DWMMQI0G.js"},{"revision":null,"url":"assets/iframe-DW7zzzTG.js"},{"revision":null,"url":"assets/index-8CHxrfFP.js"},{"revision":null,"url":"assets/index-AgKpYdvC.css"},{"revision":null,"url":"assets/index-B8r-LrrM.js"},{"revision":null,"url":"assets/index-B9nvthxv.js"},{"revision":null,"url":"assets/index-BDYaw77z.js"},{"revision":null,"url":"assets/index-BIPRCLBG.js"},{"revision":null,"url":"assets/index-Bju4sfVL.js"},{"revision":null,"url":"assets/index-Bs1kxR8_.js"},{"revision":null,"url":"assets/index-Btl_rz0J.js"},{"revision":null,"url":"assets/index-BYCeMwoO.js"},{"revision":null,"url":"assets/index-C-A13dEh.js"},{"revision":null,"url":"assets/index-C0Iiqot3.css"},{"revision":null,"url":"assets/index-C5SsKJ2n.js"},{"revision":null,"url":"assets/index-Cc-e6lxg.js"},{"revision":null,"url":"assets/index-CPE8Apzb.js"},{"revision":null,"url":"assets/index-CPfvVvHv.js"},{"revision":null,"url":"assets/index-DcUhenm6.js"},{"revision":null,"url":"assets/index-DefO2n6z.js"},{"revision":null,"url":"assets/index-DjEDWgGs.js"},{"revision":null,"url":"assets/index-DOq-_YXu.css"},{"revision":null,"url":"assets/index-Du38Vjy4.js"},{"revision":null,"url":"assets/index-DVQCgvFb.js"},{"revision":null,"url":"assets/index-Dyl-XQ73.js"},{"revision":null,"url":"assets/index-enM9Y412.js"},{"revision":null,"url":"assets/index-ftkgQlGr.js"},{"revision":null,"url":"assets/index-HU4yqI-9.js"},{"revision":null,"url":"assets/index-ioZVVJtg.js"},{"revision":null,"url":"assets/index-Jnk92KZC.js"},{"revision":null,"url":"assets/index-SzdSxpkq.js"},{"revision":null,"url":"assets/index-USO5zFMh.js"},{"revision":null,"url":"assets/InfoOutlined-DkG0jjos.js"},{"revision":null,"url":"assets/invitation-1bsb30Yz.js"},{"revision":null,"url":"assets/invite-CALl83Zc.js"},{"revision":null,"url":"assets/issue-passport-BcStTsbv.js"},{"revision":null,"url":"assets/item-Bk_1JLeG.js"},{"revision":null,"url":"assets/ja-3LoBq68U.js"},{"revision":null,"url":"assets/ja-B5V7b8Cm.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-B2dxwXDl.js"},{"revision":null,"url":"assets/ko-DP9up1nF.js"},{"revision":null,"url":"assets/landing-page-Due4o1uF.js"},{"revision":null,"url":"assets/Launch-B-2Jomi6.js"},{"revision":null,"url":"assets/launch-result-message-DIYoykBK.js"},{"revision":null,"url":"assets/LaunchOutlined-CXNijfqX.js"},{"revision":null,"url":"assets/layout-D93HKT6w.js"},{"revision":null,"url":"assets/list-D96_O-GY.js"},{"revision":null,"url":"assets/list-header-HqBQs1yn.js"},{"revision":null,"url":"assets/list-rt6nku1-.js"},{"revision":null,"url":"assets/localization-BUDtnbyU.js"},{"revision":null,"url":"assets/Location-DUEOr9J2.js"},{"revision":null,"url":"assets/LockIcon-Cjg8jV1E.js"},{"revision":null,"url":"assets/log--AX8zo75.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/logger-BLZgTs_U.js"},{"revision":null,"url":"assets/login-oauth-callback-DZaPZfnA.js"},{"revision":null,"url":"assets/login-WRcteY7r.js"},{"revision":null,"url":"assets/logo-uploader-CQCy6MG3.js"},{"revision":null,"url":"assets/lost-passport-kJX7pEJj.js"},{"revision":null,"url":"assets/lottie-error-CMOXHtBH.js"},{"revision":null,"url":"assets/lottie-loading-o-GBrhM9.js"},{"revision":null,"url":"assets/lottie-react.esm-D2t-u0YU.js"},{"revision":null,"url":"assets/lottie-web-jYmAQWuC.js"},{"revision":null,"url":"assets/lottie-welcome-C9B95FIi.js"},{"revision":null,"url":"assets/Meeting-CJaI_cKm.js"},{"revision":null,"url":"assets/MoreHoriz-B6KdR0Y8.js"},{"revision":null,"url":"assets/OffSick-C9VqqjrN.js"},{"revision":null,"url":"assets/omit-D2k92RIF.js"},{"revision":null,"url":"assets/open-window--2G6Qjbq.js"},{"revision":null,"url":"assets/overview-CpKMiGEK.js"},{"revision":null,"url":"assets/page-header-xyZktwBS.js"},{"revision":null,"url":"assets/passport-item-CIvCqz_R.js"},{"revision":null,"url":"assets/permission-BH1TY_tz.js"},{"revision":null,"url":"assets/Phone-DcHUzCa-.js"},{"revision":null,"url":"assets/PlayArrow-BToG9L6q.js"},{"revision":null,"url":"assets/preferences-CfmnTXfl.js"},{"revision":null,"url":"assets/profile-embed-ZtzRYgXv.js"},{"revision":null,"url":"assets/pt-CG45pWr4.js"},{"revision":null,"url":"assets/pt-eei1_Z4R.js"},{"revision":null,"url":"assets/publish-resource-CCa5xfwz.js"},{"revision":null,"url":"assets/QuestionMarkCircle-BPVDAm8U.js"},{"revision":null,"url":"assets/raf-schd.esm-B3j6BePR.js"},{"revision":null,"url":"assets/react-beautiful-dnd.esm-7PS2VwOi.js"},{"revision":null,"url":"assets/ru-0VhRQc7t.js"},{"revision":null,"url":"assets/ru-ZKgT6XdU.js"},{"revision":null,"url":"assets/runtime-eXYlg9Cz.js"},{"revision":null,"url":"assets/sdk-9eXJSWHG.js"},{"revision":null,"url":"assets/section-Cv4udilp.js"},{"revision":null,"url":"assets/security-DM8MeY05.js"},{"revision":null,"url":"assets/ServerLogo-s6cfhx92.js"},{"revision":null,"url":"assets/session-CHdTc1We.js"},{"revision":null,"url":"assets/setup-BEsU41BB.js"},{"revision":null,"url":"assets/shorten-label-Cng55547.js"},{"revision":null,"url":"assets/simple-select-CP_Svi_D.js"},{"revision":null,"url":"assets/slicedToArray-C7EPqaHf.js"},{"revision":null,"url":"assets/spaces-BVG-t3ND.js"},{"revision":null,"url":"assets/start-CIjuDAiX.js"},{"revision":null,"url":"assets/starting-progress-CiLZpNpg.js"},{"revision":null,"url":"assets/status-CUMJd-nJ.js"},{"revision":null,"url":"assets/step-actions-CeJCmiCS.js"},{"revision":null,"url":"assets/studio-DikseKRr.js"},{"revision":null,"url":"assets/switch-control-C5i52ixk.js"},{"revision":null,"url":"assets/th-CG5eLRZo.js"},{"revision":null,"url":"assets/th-DwH8cjcw.js"},{"revision":null,"url":"assets/Timezone-B-Ho_Uno.js"},{"revision":null,"url":"assets/traffic-B5x_6GvF.js"},{"revision":null,"url":"assets/transfer-CTEHVklh.js"},{"revision":null,"url":"assets/TuneOutlined-BR2H7Mxj.js"},{"revision":null,"url":"assets/unsubscribe-Bi2IV-2n.js"},{"revision":null,"url":"assets/use-blocklet-logo-BEy8Tnso.js"},{"revision":null,"url":"assets/use-mobile-Boa_xu9A.js"},{"revision":null,"url":"assets/use-mobile-DyX6Fl8Z.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-C8ydfEEr.js"},{"revision":null,"url":"assets/useAsync-CMWsznMW.js"},{"revision":null,"url":"assets/useLocalStorage-DVnkpneF.js"},{"revision":null,"url":"assets/user-center-DcXdjtRX.js"},{"revision":null,"url":"assets/useSetState-CWq0AVWn.js"},{"revision":null,"url":"assets/util-CEAObyfj.js"},{"revision":null,"url":"assets/util-MKllNgBs.js"},{"revision":null,"url":"assets/vendor-arcblock-uz9DVywv.js"},{"revision":null,"url":"assets/vendor-hooks-rDgu5KV9.js"},{"revision":null,"url":"assets/vendor-mui-core-D_bnq77o.js"},{"revision":null,"url":"assets/vendor-mui-x-R-0SFz4c.js"},{"revision":null,"url":"assets/vendor-react-DEoibe3W.js"},{"revision":null,"url":"assets/vendor-utils-rHXShPKm.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-DHrruicZ.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-DpSGLE7B.css"},{"revision":null,"url":"assets/vi-CcmTJggB.js"},{"revision":null,"url":"assets/vi-CoZs3B42.js"},{"revision":null,"url":"assets/ViewList-D8vtMKQz.js"},{"revision":null,"url":"assets/WorkingRemotely-lJ6DUMCR.js"},{"revision":null,"url":"assets/wrap-locale-B9TkXFQe.js"},{"revision":null,"url":"assets/zh-C2MKZFZw.js"},{"revision":null,"url":"assets/zh-CgkeS2I3.js"},{"revision":null,"url":"assets/zh-tw-CuakNRcW.js"},{"revision":null,"url":"assets/zh-tw-mW-UVEHx.js"},{"revision":"54ae7b553cb2540cbdc1b83c1e476c00","url":"index.html"},{"revision":"629a14a7e3397a134f5a30b5dc735183","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"8f9b8997bf5804519b8e9f8dd1bb6ef9","url":"share/shared-bridge.html"},{"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"));N(({request:s})=>he(s)?!1:s.url.includes("/static/"),new ie({cacheName:`static-${self.registration.scope}`,plugins:[new yt({maxEntries:200})]}));N(({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 ie({cacheName:`static-resources-${self.registration.scope}`}));N(({request:s})=>he(s)?!1:s.url.includes("/images/")||s.url.includes("/router/-template-styles/"),new ce({cacheName:`StaleWhileRevalidate-${self.registration.scope}`}));const Nt={cacheKeyWillBeUsed({request:s}){const e=new URL(s.url);return s.destination==="document"&&e.pathname.startsWith("/.well-known/service/admin")?(e.pathname="/.well-known/service/admin",e.search="",e.toString()):s.url}},w={};N(({request:s})=>{const e=new URL(s.url);return s.destination==="document"&&e.pathname.startsWith("/.well-known/service/admin")?(Object.keys(w).forEach(t=>delete w[t]),!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 ce({cacheName:`documents-${self.registration.scope}`,plugins:[Tt,Nt]}));
2
+ This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return V(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 V(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 Z=()=>(O||(O=new We),O);try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};let D=class{constructor(e,t,n=ee){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=ee){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 Be(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 Fe(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=Fe(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=Z(),t=new Ve(e,s);Be(t)}function Je(s){Z().precache(s)}function Qe(s,e){Je(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 te(s){s.then(()=>{})}const Ze=(s,e)=>e.some(t=>s instanceof t);let J,Q;function et(){return J||(J=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function tt(){return Q||(Q=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const se=new WeakMap,$=new WeakMap,ne=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&&se.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||ne.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 ne.set(n,e.sort?e.sort():[e]),m(n)}:tt().includes(s)?function(...e){return s.apply(I(this),e),m(se.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 z(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)=>z(e,t)||s.get(e,t,n),has:(e,t)=>!!z(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const ut="workbox-expiration",k="cache-entries",Y=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(k,{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=Y(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(k,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(k,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(k).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(k,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Y(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,te(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);te(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 ae="GET",T=s=>s&&typeof s=="object"?s:{handle:s};class P{constructor(e,t,n=ae){this.handler=T(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=T(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=ae){this._defaultHandlerMap.set(t,T(e))}setCatchHandler(e){this._catchHandler=T(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 E;const bt=()=>(E||(E=new Rt,E.addFetchListener(),E.addCacheListener()),E);function N(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 re{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 ie extends re{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 ce extends re{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 H="sw-update-reload-times",oe="/lastUpdateMsgTimestamps",kt=10,Et=20*1e3;let le=!1;function Dt(s,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>{s.apply(this,n)},e)}}function Ut(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 Lt(s){const t=await(await caches.open(H)).match(`${oe}-${s}`);if(t)try{const n=await t.text();return JSON.parse(n)}catch{return[]}return[]}async function Pt(s,e){const t=await caches.open(H);if((await t.keys()).length>100){await caches.delete(H);return}const a=new Response(JSON.stringify(s));await t.put(`${oe}-${e}`,a)}const vt=Dt(async()=>{(await self.clients.matchAll()).forEach(e=>{e.postMessage({type:"SW_DOCUMENT_UPDATED"})})},100),X=/updatedAt:\s*\d+,/g,Tt={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(X,"updatedAt: ,"),a=a.replace(X,"updatedAt: ,")),n!==a){const r=Date.now(),c=(await Lt(s.url)).filter(o=>r-o<Et);if(c.length>=kt){console.warn("[SW] update too frequent, skip:",s.url);return}await Ut(()=>le),await Pt(c,s.url),console.log("[SW] document version or session updated",s.url),vt()}}catch(n){console.error("[SW] Error comparing document responses:",n)}}};Qe(([{"revision":null,"url":"assets/access-control-Din7doVd.js"},{"revision":null,"url":"assets/actions-BjTeIzgS.js"},{"revision":null,"url":"assets/AdapterDayjs-BD9H1lZ-.js"},{"revision":null,"url":"assets/add-component-core-5x4gTem5.js"},{"revision":null,"url":"assets/add-component-core-D-IRi6XF.css"},{"revision":null,"url":"assets/add-resource-BrZnm53f.js"},{"revision":null,"url":"assets/addon--u4EErgw.js"},{"revision":null,"url":"assets/advanced-CN6mCSES.js"},{"revision":null,"url":"assets/api-BjteVZFg.js"},{"revision":null,"url":"assets/appearance-Bowm1Shj.js"},{"revision":null,"url":"assets/ar-Blzb8h2o.js"},{"revision":null,"url":"assets/ar-BRKjvO8p.js"},{"revision":null,"url":"assets/ArrowDropDown-BrO-zDlb.js"},{"revision":null,"url":"assets/audit-logs-DczjqamJ.js"},{"revision":null,"url":"assets/authorize-D2LCmekq.js"},{"revision":null,"url":"assets/base32-_zEVBJUg.js"},{"revision":null,"url":"assets/branding-B6AmOMI6.js"},{"revision":null,"url":"assets/branding-CwhhJRKu.js"},{"revision":null,"url":"assets/bundle-avatar-CDJRatFg.js"},{"revision":null,"url":"assets/button-D8hoY4xw.js"},{"revision":null,"url":"assets/CheckCircle-Ds4QI0ey.js"},{"revision":null,"url":"assets/ChevronLeft-CnQaQ-rc.js"},{"revision":null,"url":"assets/ChevronRight-a_2_x6Ew.js"},{"revision":null,"url":"assets/click-to-copy-CFiGx48J.js"},{"revision":null,"url":"assets/cloneDeep-UpFQ2VNg.js"},{"revision":null,"url":"assets/collapse-QV_2gdtM.js"},{"revision":null,"url":"assets/Community-DW6DJTIs.js"},{"revision":null,"url":"assets/complete-CKhw9u_z.js"},{"revision":null,"url":"assets/component-Cb3m5qUw.js"},{"revision":null,"url":"assets/config-kGXJEkFJ.js"},{"revision":null,"url":"assets/config-LE_EJolF.js"},{"revision":null,"url":"assets/config-navigation-CKVyFhfH.js"},{"revision":null,"url":"assets/config-space-CogRdhoQ.js"},{"revision":null,"url":"assets/confirm-SdqBW-ti.js"},{"revision":null,"url":"assets/connect-BMn4CxDk.js"},{"revision":null,"url":"assets/connect-HAC-YfHh.js"},{"revision":null,"url":"assets/connect-to-eNQDY2rc.js"},{"revision":null,"url":"assets/content-layout-BzF-fNQz.js"},{"revision":null,"url":"assets/dashboard-BYxl5V9e.js"},{"revision":null,"url":"assets/de-BxI5dM9K.js"},{"revision":null,"url":"assets/de-D3cg0t9f.js"},{"revision":null,"url":"assets/delete-confirm-CKF_eljP.js"},{"revision":null,"url":"assets/DeleteOutline-CFN4r-OG.js"},{"revision":null,"url":"assets/did-address-DjwPl1uy.js"},{"revision":null,"url":"assets/domain-action-card-DHH9PLRG.js"},{"revision":null,"url":"assets/domain-DotN6lCb.js"},{"revision":null,"url":"assets/domains-BV2pykxi.js"},{"revision":null,"url":"assets/Done-DqSE6KPe.js"},{"revision":null,"url":"assets/dot-BA3EvSrh.js"},{"revision":null,"url":"assets/Download-C_LRKzbG.js"},{"revision":null,"url":"assets/Edit-CbR4eoK8.js"},{"revision":null,"url":"assets/EditIcon-DxUWMw59.js"},{"revision":null,"url":"assets/email-CHR0EOis.js"},{"revision":null,"url":"assets/Email-DWueGk7t.js"},{"revision":null,"url":"assets/empty-spinner-n0_Ehns5.js"},{"revision":null,"url":"assets/Error-jEHdDLNk.js"},{"revision":null,"url":"assets/es-BuUaHPig.js"},{"revision":null,"url":"assets/es-DPjqApVE.js"},{"revision":null,"url":"assets/exchange-passport-D0iIXJxD.js"},{"revision":null,"url":"assets/ExpandLess-CkoEHpgk.js"},{"revision":null,"url":"assets/format-error-BrmqJs5a.js"},{"revision":null,"url":"assets/fr-DezMACmP.js"},{"revision":null,"url":"assets/fr-Dscs9WsP.js"},{"revision":null,"url":"assets/fuel-nMTHNcy-.js"},{"revision":null,"url":"assets/gen-access-key-DH4wNzRm.js"},{"revision":null,"url":"assets/get-safe-url-B5RJTMjC.js"},{"revision":null,"url":"assets/get-safe-url-Bk6PlU7n.js"},{"revision":null,"url":"assets/Google-DHEolkW-.js"},{"revision":null,"url":"assets/hi-B8D3j6bs.js"},{"revision":null,"url":"assets/hi-ClbEozhq.js"},{"revision":null,"url":"assets/Holiday-Dwvo6QkZ.js"},{"revision":null,"url":"assets/home-DzCwBE8F.js"},{"revision":null,"url":"assets/id-CXYm-1K3.js"},{"revision":null,"url":"assets/id-DWMMQI0G.js"},{"revision":null,"url":"assets/iframe-DW7zzzTG.js"},{"revision":null,"url":"assets/index-8CHxrfFP.js"},{"revision":null,"url":"assets/index-AgKpYdvC.css"},{"revision":null,"url":"assets/index-B_-kynzD.js"},{"revision":null,"url":"assets/index-B54lTbup.js"},{"revision":null,"url":"assets/index-B8r-LrrM.js"},{"revision":null,"url":"assets/index-BA8C83iz.js"},{"revision":null,"url":"assets/index-BCNchyGN.js"},{"revision":null,"url":"assets/index-BCtmnJeV.js"},{"revision":null,"url":"assets/index-BDYaw77z.js"},{"revision":null,"url":"assets/index-BIPRCLBG.js"},{"revision":null,"url":"assets/index-BJxv6GA4.js"},{"revision":null,"url":"assets/index-BLGGjT7N.js"},{"revision":null,"url":"assets/index-Bs1kxR8_.js"},{"revision":null,"url":"assets/index-BuXc3Oag.js"},{"revision":null,"url":"assets/index-BYCeMwoO.js"},{"revision":null,"url":"assets/index-C0Iiqot3.css"},{"revision":null,"url":"assets/index-CfxcUIhC.js"},{"revision":null,"url":"assets/index-CIkPfxzG.js"},{"revision":null,"url":"assets/index-CPE8Apzb.js"},{"revision":null,"url":"assets/index-CPfvVvHv.js"},{"revision":null,"url":"assets/index-Ctzl9JDw.js"},{"revision":null,"url":"assets/index-CxwBhS0_.js"},{"revision":null,"url":"assets/index-CYeNo51G.js"},{"revision":null,"url":"assets/index-D7eC9ptO.js"},{"revision":null,"url":"assets/index-D9KfgDPN.js"},{"revision":null,"url":"assets/index-DcUhenm6.js"},{"revision":null,"url":"assets/index-DOq-_YXu.css"},{"revision":null,"url":"assets/index-DVQCgvFb.js"},{"revision":null,"url":"assets/index-enM9Y412.js"},{"revision":null,"url":"assets/index-ftkgQlGr.js"},{"revision":null,"url":"assets/InfoOutlined-DkG0jjos.js"},{"revision":null,"url":"assets/invitation-DzT9Qa0A.js"},{"revision":null,"url":"assets/invite-CQPeUOT4.js"},{"revision":null,"url":"assets/issue-passport-BYhvmLsl.js"},{"revision":null,"url":"assets/item-D942q-4T.js"},{"revision":null,"url":"assets/ja-3LoBq68U.js"},{"revision":null,"url":"assets/ja-B5V7b8Cm.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-B2dxwXDl.js"},{"revision":null,"url":"assets/ko-DP9up1nF.js"},{"revision":null,"url":"assets/landing-page-Due4o1uF.js"},{"revision":null,"url":"assets/Launch-B-2Jomi6.js"},{"revision":null,"url":"assets/launch-result-message-DIYoykBK.js"},{"revision":null,"url":"assets/LaunchOutlined-CXNijfqX.js"},{"revision":null,"url":"assets/layout-BcLfVSqs.js"},{"revision":null,"url":"assets/list-BiJWMg_P.js"},{"revision":null,"url":"assets/list-DKUSPdB6.js"},{"revision":null,"url":"assets/list-header-HqBQs1yn.js"},{"revision":null,"url":"assets/localization-BUDtnbyU.js"},{"revision":null,"url":"assets/Location-DUEOr9J2.js"},{"revision":null,"url":"assets/LockIcon-Cjg8jV1E.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/log-Iko0jLNA.js"},{"revision":null,"url":"assets/logger-BLZgTs_U.js"},{"revision":null,"url":"assets/login-4Yq_pPSw.js"},{"revision":null,"url":"assets/login-oauth-callback-DZaPZfnA.js"},{"revision":null,"url":"assets/logo-uploader-Cnkdgyfv.js"},{"revision":null,"url":"assets/lost-passport-D5jMtgH_.js"},{"revision":null,"url":"assets/lottie-error-CMOXHtBH.js"},{"revision":null,"url":"assets/lottie-loading-o-GBrhM9.js"},{"revision":null,"url":"assets/lottie-react.esm-D2t-u0YU.js"},{"revision":null,"url":"assets/lottie-web-jYmAQWuC.js"},{"revision":null,"url":"assets/lottie-welcome-C9B95FIi.js"},{"revision":null,"url":"assets/Meeting-CJaI_cKm.js"},{"revision":null,"url":"assets/MoreHoriz-B6KdR0Y8.js"},{"revision":null,"url":"assets/OffSick-C9VqqjrN.js"},{"revision":null,"url":"assets/omit-D2k92RIF.js"},{"revision":null,"url":"assets/open-window--2G6Qjbq.js"},{"revision":null,"url":"assets/overview-CaQ-tV1t.js"},{"revision":null,"url":"assets/page-header-xyZktwBS.js"},{"revision":null,"url":"assets/passport-item-DH3_49G1.js"},{"revision":null,"url":"assets/permission-BH1TY_tz.js"},{"revision":null,"url":"assets/Phone-DcHUzCa-.js"},{"revision":null,"url":"assets/PlayArrow-BToG9L6q.js"},{"revision":null,"url":"assets/preferences-CfmnTXfl.js"},{"revision":null,"url":"assets/profile-embed-ZtzRYgXv.js"},{"revision":null,"url":"assets/pt-CG45pWr4.js"},{"revision":null,"url":"assets/pt-eei1_Z4R.js"},{"revision":null,"url":"assets/publish-resource-BtFRgv4P.js"},{"revision":null,"url":"assets/QuestionMarkCircle-BPVDAm8U.js"},{"revision":null,"url":"assets/raf-schd.esm-B3j6BePR.js"},{"revision":null,"url":"assets/react-beautiful-dnd.esm-7PS2VwOi.js"},{"revision":null,"url":"assets/ru-0VhRQc7t.js"},{"revision":null,"url":"assets/ru-ZKgT6XdU.js"},{"revision":null,"url":"assets/runtime-B0207zk1.js"},{"revision":null,"url":"assets/sdk-9eXJSWHG.js"},{"revision":null,"url":"assets/section-Cv4udilp.js"},{"revision":null,"url":"assets/security-CX01lhxW.js"},{"revision":null,"url":"assets/ServerLogo-s6cfhx92.js"},{"revision":null,"url":"assets/session-CHdTc1We.js"},{"revision":null,"url":"assets/setup-DIAgbS7c.js"},{"revision":null,"url":"assets/shorten-label-Cng55547.js"},{"revision":null,"url":"assets/simple-select-CP_Svi_D.js"},{"revision":null,"url":"assets/slicedToArray-C7EPqaHf.js"},{"revision":null,"url":"assets/spaces-BVG-t3ND.js"},{"revision":null,"url":"assets/start-CMRQU8Px.js"},{"revision":null,"url":"assets/starting-progress-CiLZpNpg.js"},{"revision":null,"url":"assets/status-DSQPLYSp.js"},{"revision":null,"url":"assets/step-actions-BfGTFkaB.js"},{"revision":null,"url":"assets/studio-DikseKRr.js"},{"revision":null,"url":"assets/switch-control-C5i52ixk.js"},{"revision":null,"url":"assets/th-CG5eLRZo.js"},{"revision":null,"url":"assets/th-DwH8cjcw.js"},{"revision":null,"url":"assets/Timezone-B-Ho_Uno.js"},{"revision":null,"url":"assets/traffic-ClE631in.js"},{"revision":null,"url":"assets/transfer-BnR8fjLW.js"},{"revision":null,"url":"assets/TuneOutlined-BR2H7Mxj.js"},{"revision":null,"url":"assets/unsubscribe-rUE2LcLN.js"},{"revision":null,"url":"assets/use-blocklet-logo-Phq7jasP.js"},{"revision":null,"url":"assets/use-mobile-Boa_xu9A.js"},{"revision":null,"url":"assets/use-mobile-DyX6Fl8Z.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-DV3NyLhI.js"},{"revision":null,"url":"assets/useLocalStorage-DVnkpneF.js"},{"revision":null,"url":"assets/user-center-D25Vw-wP.js"},{"revision":null,"url":"assets/useSetState-CWq0AVWn.js"},{"revision":null,"url":"assets/util-Btd7aQEC.js"},{"revision":null,"url":"assets/util-CEAObyfj.js"},{"revision":null,"url":"assets/vendor-arcblock-uz9DVywv.js"},{"revision":null,"url":"assets/vendor-hooks-rDgu5KV9.js"},{"revision":null,"url":"assets/vendor-mui-core-D_bnq77o.js"},{"revision":null,"url":"assets/vendor-mui-x-R-0SFz4c.js"},{"revision":null,"url":"assets/vendor-react-DEoibe3W.js"},{"revision":null,"url":"assets/vendor-utils-rHXShPKm.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-DHrruicZ.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-DpSGLE7B.css"},{"revision":null,"url":"assets/vi-CcmTJggB.js"},{"revision":null,"url":"assets/vi-CoZs3B42.js"},{"revision":null,"url":"assets/ViewList-D8vtMKQz.js"},{"revision":null,"url":"assets/WorkingRemotely-lJ6DUMCR.js"},{"revision":null,"url":"assets/wrap-locale-CPW6a0PM.js"},{"revision":null,"url":"assets/zh-C2MKZFZw.js"},{"revision":null,"url":"assets/zh-CgkeS2I3.js"},{"revision":null,"url":"assets/zh-tw-CuakNRcW.js"},{"revision":null,"url":"assets/zh-tw-mW-UVEHx.js"},{"revision":"820360ca0e3190aab40f5b314d925177","url":"index.html"},{"revision":"629a14a7e3397a134f5a30b5dc735183","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"8f9b8997bf5804519b8e9f8dd1bb6ef9","url":"share/shared-bridge.html"},{"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"));N(({request:s})=>he(s)?!1:s.url.includes("/static/"),new ie({cacheName:`static-${self.registration.scope}`,plugins:[new yt({maxEntries:200})]}));N(({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 ie({cacheName:`static-resources-${self.registration.scope}`}));N(({request:s})=>he(s)?!1:s.url.includes("/images/")||s.url.includes("/router/-template-styles/"),new ce({cacheName:`StaleWhileRevalidate-${self.registration.scope}`}));const Nt={cacheKeyWillBeUsed({request:s}){const e=new URL(s.url);return s.destination==="document"&&e.pathname.startsWith("/.well-known/service/admin")?(e.pathname="/.well-known/service/admin",e.search="",e.toString()):s.url}},w={};N(({request:s})=>{const e=new URL(s.url);return s.destination==="document"&&e.pathname.startsWith("/.well-known/service/admin")?(Object.keys(w).forEach(t=>delete w[t]),!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 ce({cacheName:`documents-${self.registration.scope}`,plugins:[Tt,Nt]}));
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.44-beta-20250512-155818-937e465d",
6
+ "version": "1.16.44-beta-20250513-030435-c2d99062",
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.44-beta-20250512-155818-937e465d",
37
- "@abtnode/auth": "1.16.44-beta-20250512-155818-937e465d",
38
- "@abtnode/client": "1.16.44-beta-20250512-155818-937e465d",
39
- "@abtnode/connect-storage": "1.16.44-beta-20250512-155818-937e465d",
40
- "@abtnode/constant": "1.16.44-beta-20250512-155818-937e465d",
41
- "@abtnode/core": "1.16.44-beta-20250512-155818-937e465d",
42
- "@abtnode/cron": "1.16.44-beta-20250512-155818-937e465d",
43
- "@abtnode/logger": "1.16.44-beta-20250512-155818-937e465d",
44
- "@abtnode/models": "1.16.44-beta-20250512-155818-937e465d",
45
- "@abtnode/router-templates": "1.16.44-beta-20250512-155818-937e465d",
46
- "@abtnode/util": "1.16.44-beta-20250512-155818-937e465d",
36
+ "@abtnode/analytics": "1.16.44-beta-20250513-030435-c2d99062",
37
+ "@abtnode/auth": "1.16.44-beta-20250513-030435-c2d99062",
38
+ "@abtnode/client": "1.16.44-beta-20250513-030435-c2d99062",
39
+ "@abtnode/connect-storage": "1.16.44-beta-20250513-030435-c2d99062",
40
+ "@abtnode/constant": "1.16.44-beta-20250513-030435-c2d99062",
41
+ "@abtnode/core": "1.16.44-beta-20250513-030435-c2d99062",
42
+ "@abtnode/cron": "1.16.44-beta-20250513-030435-c2d99062",
43
+ "@abtnode/logger": "1.16.44-beta-20250513-030435-c2d99062",
44
+ "@abtnode/models": "1.16.44-beta-20250513-030435-c2d99062",
45
+ "@abtnode/router-templates": "1.16.44-beta-20250513-030435-c2d99062",
46
+ "@abtnode/util": "1.16.44-beta-20250513-030435-c2d99062",
47
47
  "@arcblock/did": "1.20.8",
48
48
  "@arcblock/did-auth": "1.20.8",
49
49
  "@arcblock/did-ext": "1.20.8",
@@ -53,17 +53,17 @@
53
53
  "@arcblock/jwt": "1.20.8",
54
54
  "@arcblock/validator": "1.20.8",
55
55
  "@arcblock/ws": "1.20.8",
56
- "@blocklet/constant": "1.16.44-beta-20250512-155818-937e465d",
56
+ "@blocklet/constant": "1.16.44-beta-20250513-030435-c2d99062",
57
57
  "@blocklet/dbhub": "^0.2.9",
58
58
  "@blocklet/did-space-js": "^1.0.51",
59
- "@blocklet/env": "1.16.44-beta-20250512-155818-937e465d",
59
+ "@blocklet/env": "1.16.44-beta-20250513-030435-c2d99062",
60
60
  "@blocklet/form-builder": "^0.1.11",
61
61
  "@blocklet/form-collector": "^0.1.8",
62
- "@blocklet/images": "1.16.44-beta-20250512-155818-937e465d",
63
- "@blocklet/js-sdk": "1.16.44-beta-20250512-155818-937e465d",
62
+ "@blocklet/images": "1.16.44-beta-20250513-030435-c2d99062",
63
+ "@blocklet/js-sdk": "1.16.44-beta-20250513-030435-c2d99062",
64
64
  "@blocklet/mcp": "^1.10.2",
65
- "@blocklet/meta": "1.16.44-beta-20250512-155818-937e465d",
66
- "@blocklet/sdk": "1.16.44-beta-20250512-155818-937e465d",
65
+ "@blocklet/meta": "1.16.44-beta-20250513-030435-c2d99062",
66
+ "@blocklet/sdk": "1.16.44-beta-20250513-030435-c2d99062",
67
67
  "@blocklet/theme": "^2.13.29",
68
68
  "@blocklet/theme-builder": "^0.1.15",
69
69
  "@blocklet/uploader-server": "^0.1.98",
@@ -119,7 +119,7 @@
119
119
  "whatwg-url": "14.0.0"
120
120
  },
121
121
  "devDependencies": {
122
- "@abtnode/ux": "1.16.44-beta-20250512-155818-937e465d",
122
+ "@abtnode/ux": "1.16.44-beta-20250513-030435-c2d99062",
123
123
  "@arcblock/bridge": "^2.13.29",
124
124
  "@arcblock/did-connect": "^2.13.29",
125
125
  "@arcblock/icons": "^2.13.29",
@@ -127,7 +127,7 @@
127
127
  "@arcblock/ux": "^2.13.29",
128
128
  "@blocklet/launcher-layout": "^2.13.29",
129
129
  "@blocklet/payment-react": "^1.18.40",
130
- "@blocklet/tracker": "1.16.44-beta-20250512-155818-937e465d",
130
+ "@blocklet/tracker": "1.16.44-beta-20250513-030435-c2d99062",
131
131
  "@blocklet/ui-react": "^2.13.29",
132
132
  "@blocklet/uploader": "^0.1.90",
133
133
  "@emotion/react": "^11.11.4",
@@ -205,5 +205,5 @@
205
205
  "url": "https://github.com/ArcBlock/blocklet-server/issues",
206
206
  "email": "shijun@arcblock.io"
207
207
  },
208
- "gitHead": "562fc0ac82df09c8fc50f27811565de331bda84d"
208
+ "gitHead": "c3a3efef44ccf08705abb47875edba6169e76faa"
209
209
  }
@@ -1,5 +0,0 @@
1
- import{j as r,ab as f,T as y,H as h,ah as x}from"./vendor-mui-core-D_bnq77o.js";import"./vendor-react-DEoibe3W.js";import{A as g}from"./vendor-utils-rHXShPKm.js";import{u as w}from"./useAsync-C8ydfEEr.js";import{u as C,aQ as T,C as i,b1 as j,_ as k,ao as v}from"./vendor-ux-did-connect-DHrruicZ.js";import{u as P,s as S}from"./index-DefO2n6z.js";import"./useAsync-CMWsznMW.js";import"./vendor-hooks-rDgu5KV9.js";import"./lottie-web-jYmAQWuC.js";import"./vendor-arcblock-uz9DVywv.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(b,{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 b=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,aa as e,H as h,ah as v}from"./vendor-mui-core-D_bnq77o.js";import{n as C,f as k,ag as b,d as B}from"./index-DefO2n6z.js";import{D as w,a as I,b as E}from"./domain-action-card-Bcs_GWxq.js";import{b2 as T}from"./vendor-ux-did-connect-DHrruicZ.js";import{P as A}from"./page-header-xyZktwBS.js";import{r}from"./vendor-react-DEoibe3W.js";import{_ as L}from"./useSetState-CWq0AVWn.js";import{S as x}from"./button-D8hoY4xw.js";import{S as W}from"./layout-D93HKT6w.js";import{S as H}from"./step-actions-CeJCmiCS.js";import"./vendor-arcblock-uz9DVywv.js";import"./vendor-utils-rHXShPKm.js";import"./vendor-hooks-rDgu5KV9.js";import"./lottie-web-jYmAQWuC.js";import"./ExpandLess-CkoEHpgk.js";import"./permission-BH1TY_tz.js";import"./session-CHdTc1We.js";import"./dot-C4hULxc0.js";import"./useAsync-CMWsznMW.js";import"./confirm-DjTZImyg.js";import"./format-error-BrmqJs5a.js";import"./actions-BjTeIzgS.js";import"./MoreHoriz-B6KdR0Y8.js";import"./delete-confirm-BzuBR6TW.js";import"./click-to-copy-CFiGx48J.js";import"./util-MKllNgBs.js";import"./InfoOutlined-DkG0jjos.js";import"./useAsync-C8ydfEEr.js";import"./index-enM9Y412.js";import"./CheckCircle-Ds4QI0ey.js";import"./content-layout-BzF-fNQz.js";import"./use-mobile-DyX6Fl8Z.js";function d({onNext:s,onPrevious:D}){var u,f;const{t:n}=r.useContext(T),[S,p]=r.useState(!1),{blocklet:i}=C(),[l,j]=r.useState(""),y=(((i==null?void 0:i.site)||{}).domainAliases||[]).map(t=>k.replaceSlotToIp(t.value,l)),[a,m]=L({domain:"",invalidDNSDomain:null,type:"",addDomainState:{text:""}}),c=(f=(u=i.environments)==null?void 0:u.find(t=>t.key==="BLOCKLET_APP_PK"))==null?void 0:f.value,P=y.find(t=>b.isDidDomain(t));return r.useEffect(()=>{B.get(`/dns-resolve?hostname=${window.location.hostname}`).then(({data:t})=>{j(t.address||"")}).catch(t=>{console.error(t.message)})},[]),o.jsxs(_,{children:[o.jsx(e,{className:"header",children:o.jsx(A,{title:n("setup.domain.title"),subTitle:n("setup.domain.subTitle"),onClickBack:D})}),o.jsxs(e,{className:"form",sx:{display:"flex",flexDirection:"column",gap:3,overflowY:"auto"},children:[o.jsxs(e,{children:[o.jsx(e,{color:"text.primary",fontWeight:"fontWeightBold",fontSize:"1.125rem",children:o.jsx(e,{display:"inline",children:`${n("setup.domain.buyOrConnect")} (${n("common.optional")})`})}),o.jsx(e,{mt:1,children:o.jsx(I,{blocklet:i,bugDidDomainProps:{appPk:c,appId:i.appPid,siteId:i.site.id,teamDid:i.meta.did,inBlockletSetup:!0},connectDomainProps:{autoFocus:!1,appPk:c,appId:i.appPid,siteId:i.site.id,teamDid:i.meta.did,cnameDomain:P,currentIp:l,inBlockletSetup:!0,shouldCheckDomain:!0,onInputDomain:t=>{m({domain:t.domain,type:t.type}),p(t.error)},onStateChange:t=>m({addDomainState:t}),onSuccess:t=>{const g={domain:t.domain,type:t.type,nftDid:t.nftDid,chainHost:t.chainHost};m(g),s()},onError:p}})})]}),o.jsx(e,{children:o.jsx(E,{inSetup:!0,showAllDomains:!0,systemTips:o.jsx(e,{color:"text.primary",fontWeight:"fontWeightBold",fontSize:"1.125rem",mb:1,children:o.jsx(e,{display:"inline",children:n("setup.domain.skipDescription")})})})})]}),o.jsx(H,{mt:8,disabled:!!a.addDomainState.text,blocklet:i,onStartNow:()=>s("complete"),children:a.domain?o.jsx(x,{variant:"contained",loading:!!a.addDomainState.text,disabled:S||!!a.addDomainState.text||!a.domain,onClick:()=>s(),children:a.addDomainState.text||n("setup.continue")}):o.jsx(x,{variant:"contained",disabled:!!a.addDomainState.text,onClick:()=>s(),children:n("setup.continue")})})]})}function Dt(s){return o.jsx(w,{children:o.jsx(d,{...s})})}d.propTypes={onNext:h.func,onPrevious:h.func};d.defaultProps={onNext:()=>{},onPrevious:()=>{}};const _=v(W)`
2
- height: 100%;
3
- overflow-y: hidden;
4
-
5
- .form {
6
- width: 100%;
7
- height: 100%;
8
- }
9
- `;export{Dt as default};
@@ -1 +0,0 @@
1
- import{r as m}from"./vendor-react-DEoibe3W.js";import{u as n}from"./vendor-ux-did-connect-DHrruicZ.js";import{C as p,z as l,I as c,f as u}from"./index-DefO2n6z.js";import{a as x,b as d}from"./domain-action-card-Bcs_GWxq.js";import{j as t,aa as k,al as f,ak as h}from"./vendor-mui-core-D_bnq77o.js";import"./vendor-utils-rHXShPKm.js";import"./vendor-hooks-rDgu5KV9.js";import"./lottie-web-jYmAQWuC.js";import"./vendor-arcblock-uz9DVywv.js";import"./ExpandLess-CkoEHpgk.js";import"./permission-BH1TY_tz.js";import"./session-CHdTc1We.js";import"./dot-C4hULxc0.js";import"./useAsync-CMWsznMW.js";import"./confirm-DjTZImyg.js";import"./format-error-BrmqJs5a.js";import"./actions-BjTeIzgS.js";import"./MoreHoriz-B6KdR0Y8.js";import"./delete-confirm-BzuBR6TW.js";import"./click-to-copy-CFiGx48J.js";import"./util-MKllNgBs.js";import"./useSetState-CWq0AVWn.js";import"./InfoOutlined-DkG0jjos.js";import"./useAsync-C8ydfEEr.js";import"./index-enM9Y412.js";import"./CheckCircle-Ds4QI0ey.js";function D(){const{blocklet:o,actions:{updateBlockletDomainAliases:s}}=p(),{inService:r}=l(),{t:e}=n(),a=m.useMemo(()=>{let i=!0;return c(o)&&(i=i&&r),i},[r,o]);return t.jsxs(k,{component:f,sx:{maxWidth:820},gap:3,children:[t.jsxs(t.Fragment,{children:[u.isAccessible(o.status)===!1&&t.jsx(h,{severity:"warning",children:e("blocklet.router.noRunning")}),a&&t.jsx(x,{blocklet:o,updateBlockletDomainAliases:s,connectDomainProps:{shouldCheckDomain:!0}})]}),t.jsx(d,{showAllDomains:!0,updateBlockletDomainAliases:s})]})}D.propTypes={};export{D as default};
@@ -1,7 +0,0 @@
1
- import{x as m}from"./vendor-hooks-rDgu5KV9.js";import{r as v}from"./vendor-react-DEoibe3W.js";import{r as y}from"./useAsync-CMWsznMW.js";import{ah as p}from"./vendor-mui-core-D_bnq77o.js";var c={};Object.defineProperty(c,"__esModule",{value:!0});var e=m,i=v,b=e.__importDefault(y()),A=function(r,t){t===void 0&&(t=[]);var a=i.useState(0),l=a[0],_=a[1],s=b.default(r,e.__spreadArrays(t,[l])),o=s.loading,d=i.useCallback(function(){o||_(function(f){return f+1})},e.__spreadArrays(t,[o]));return e.__assign(e.__assign({},s),{retry:d})},D=c.default=A;const n={success:"#3ab39d",error:"#D0021B"},u="10px",k=p.div`
2
- display: inline-block;
3
- min-width: ${r=>r.size||u};
4
- min-height: ${r=>r.size||u};
5
- background-color: ${r=>n[r.color]||r.color||n.success};
6
- border-radius: 100%;
7
- `;export{k as D,D as _};
@@ -1,30 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/connect-K4ZmMu4L.js","assets/vendor-mui-core-D_bnq77o.js","assets/vendor-react-DEoibe3W.js","assets/vendor-utils-rHXShPKm.js","assets/useAsync-C8ydfEEr.js","assets/useAsync-CMWsznMW.js","assets/vendor-hooks-rDgu5KV9.js","assets/vendor-ux-did-connect-DHrruicZ.js","assets/lottie-web-jYmAQWuC.js","assets/vendor-ux-did-connect-DpSGLE7B.css","assets/index-DefO2n6z.js","assets/vendor-arcblock-uz9DVywv.js","assets/index-DOq-_YXu.css","assets/config-D6r2ZAFY.js","assets/index-Bju4sfVL.js","assets/Done-DqSE6KPe.js","assets/collapse-QV_2gdtM.js","assets/Google-DHEolkW-.js","assets/cloneDeep-UpFQ2VNg.js","assets/logo-uploader-CQCy6MG3.js","assets/index-DVQCgvFb.js","assets/page-header-xyZktwBS.js","assets/layout-D93HKT6w.js","assets/content-layout-BzF-fNQz.js","assets/step-actions-CeJCmiCS.js","assets/use-mobile-DyX6Fl8Z.js","assets/button-D8hoY4xw.js","assets/index-B9nvthxv.js","assets/config-space-d34Deg7R.js","assets/spaces-BVG-t3ND.js","assets/api-BjteVZFg.js","assets/connect-to-BG15Vnyg.js","assets/DeleteOutline-CFN4r-OG.js","assets/format-error-BrmqJs5a.js","assets/domain-wh85yL2O.js","assets/domain-action-card-Bcs_GWxq.js","assets/ExpandLess-CkoEHpgk.js","assets/permission-BH1TY_tz.js","assets/session-CHdTc1We.js","assets/dot-C4hULxc0.js","assets/confirm-DjTZImyg.js","assets/actions-BjTeIzgS.js","assets/MoreHoriz-B6KdR0Y8.js","assets/delete-confirm-BzuBR6TW.js","assets/click-to-copy-CFiGx48J.js","assets/util-MKllNgBs.js","assets/useSetState-CWq0AVWn.js","assets/InfoOutlined-DkG0jjos.js","assets/index-enM9Y412.js","assets/CheckCircle-Ds4QI0ey.js","assets/access-control-CCSlKYYz.js","assets/config-LE_EJolF.js","assets/fuel-Dx_cnsCl.js","assets/Launch-B-2Jomi6.js","assets/did-address-DjwPl1uy.js","assets/complete-6R-n_Ra9.js","assets/launch-result-message-DIYoykBK.js","assets/get-safe-url-B5RJTMjC.js","assets/starting-progress-CiLZpNpg.js"])))=>i.map(i=>d[i]);
2
- import{S as Q,L as W,_ as d,c as _}from"./vendor-arcblock-uz9DVywv.js";import{j as e,ah as T,v as q,e as K,bE as G,aa as X,ab as J,b7 as Y}from"./vendor-mui-core-D_bnq77o.js";import{h as ee,f as te,r as i,i as se,j as c,k as oe}from"./vendor-react-DEoibe3W.js";import{A as o}from"./vendor-utils-rHXShPKm.js";import{u as ae,aT as ne,j as A}from"./vendor-ux-did-connect-DHrruicZ.js";import{C as re}from"./config-space-d34Deg7R.js";import{H as ie}from"./addon--u4EErgw.js";import{S as le}from"./ServerLogo-s6cfhx92.js";import{n as pe,u as ce,o as V,q as de,r as ue,P as k,N as Le,f as he,S as me}from"./index-DefO2n6z.js";import{g as fe}from"./get-safe-url-B5RJTMjC.js";import"./vendor-hooks-rDgu5KV9.js";import"./lottie-web-jYmAQWuC.js";import"./spaces-BVG-t3ND.js";import"./api-BjteVZFg.js";import"./QuestionMarkCircle-BPVDAm8U.js";var E=function(h){return e.jsxs("svg",{...h,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 xe=E,_e=T.span`
3
- color: ${h=>h.theme.palette.error.main};
4
- &::before {
5
- content: '*';
6
- }
7
- `,C=_e,Ce=i.lazy(()=>d(()=>import("./connect-K4ZmMu4L.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),Ee=i.lazy(()=>d(()=>import("./config-D6r2ZAFY.js"),__vite__mapDeps([13,1,2,3,7,6,8,9,14,15,16,17,18,10,11,12,19,20,21,22,23,24,25,26]))),ge=i.lazy(()=>d(()=>import("./index-B9nvthxv.js"),__vite__mapDeps([27,1,2,7,3,6,8,9,21,10,11,12,28,29,30,31,32,33,24,25,22,23]))),je=i.lazy(()=>d(()=>import("./domain-wh85yL2O.js"),__vite__mapDeps([34,1,2,10,11,7,3,6,8,9,12,35,36,37,38,39,5,40,33,41,42,43,44,45,46,47,4,48,49,21,26,22,23,24,25]))),ye=i.lazy(()=>d(()=>import("./access-control-CCSlKYYz.js"),__vite__mapDeps([50,1,2,7,3,6,8,9,51,21,10,11,12,22,23,24,25,26]))),ve=i.lazy(()=>d(()=>import("./fuel-Dx_cnsCl.js"),__vite__mapDeps([52,1,2,3,53,7,6,8,9,54,21,10,11,12,22,23,24,25,26]))),Pe=i.lazy(()=>d(()=>import("./complete-6R-n_Ra9.js"),__vite__mapDeps([55,1,2,7,3,6,8,9,10,11,12,56,57,26,22,23,58])));function He(){var R,w,I;const h=q(a=>a.breakpoints.down("md")),$=K(),{t,locale:B}=ae(),[g,D]=ee(),m=te(),{meta:u,blocklet:r,actions:l,loading:N}=pe(),O=localStorage.getItem("blocklet-server-url"),{session:j}=ce(),M=V("fromLauncher"),y=V("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=`${A.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===_.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||n===_.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===_.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),x=p.findIndex(a=>`${k.replace(/\/$/,"")}${s}/${a.key}`===window.location.pathname),F=o(k,A.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[x+1]?m(`${o(s,p[x+1].key)}${n}`):m(`${o(s,"complete")}${n}`);else{const f=p.findIndex(z=>z.key===a);f>-1?m(`${o(s,p[f].key)}${n}`):m(`${o(s,"complete")}${n}`)}await l.refreshBlocklet()},H=()=>{m(-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:x===p.length-1?t("setup.startNow"):""})]})}const v=()=>{window.open(fe(O,{allowDomains:null}))},Z=h?e.jsx(xe,{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,{children:e.jsx(W,{locale:B,loading:N,blockletMeta:{...u,title:he.getDisplayName({...r,meta:u})},navLogo:Z,pcWidth:"80%",style:{height:"100%"},logoUrl:F,useOfSkeleton:!1,headerEndAddons:e.jsx(ie,{SessionContext:me,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("div")`
15
- /* display: flex;
16
- min-width: 0;
17
- flex: 1 1 0; */
18
- height: 100%;
19
-
20
- & .layout-content {
21
- min-width: 0;
22
- flex: 1 1 0;
23
- }
24
-
25
- & .ll-header {
26
- @media (max-width: 960px) {
27
- padding: 0 12px;
28
- }
29
- }
30
- `;export{He as default};
@@ -1 +0,0 @@
1
- import{g as r}from"./vendor-react-DEoibe3W.js";import{r as s}from"./useAsync-CMWsznMW.js";var o=s();const a=r(o);export{a as u};
@@ -1 +0,0 @@
1
- import{x as R}from"./vendor-hooks-rDgu5KV9.js";import{r as g}from"./vendor-react-DEoibe3W.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};