@abtnode/webapp 1.16.29-beta-a076832b → 1.16.29-beta-bb5685f8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{Add-BhAOgw8n.js → Add-C0jlH_zP.js} +1 -1
- package/dist/assets/{ArrowDropDown-BhDZI_jd.js → ArrowDropDown-DrehtX2f.js} +1 -1
- package/dist/assets/{Autocomplete-chf9WG4F.js → Autocomplete-CdIGu-2l.js} +1 -1
- package/dist/assets/{Breadcrumbs-Un40qFmK.js → Breadcrumbs-Oi4z-7JU.js} +1 -1
- package/dist/assets/{ButtonGroup-BE_QoGeC.js → ButtonGroup-NvrTYf1s.js} +1 -1
- package/dist/assets/{CheckCircle-B2UAY6EW.js → CheckCircle-uTfAh2GX.js} +1 -1
- package/dist/assets/{ChevronLeft-LgQFTPg9.js → ChevronLeft-C-HoTf-Q.js} +1 -1
- package/dist/assets/{ChevronRight-R1AD6T8t.js → ChevronRight-c5xZzIfK.js} +1 -1
- package/dist/assets/{Close-BA4_6LGT.js → Close-C5A1sroQ.js} +1 -1
- package/dist/assets/{Delete-BuQlLthh.js → Delete-BqtdSlNQ.js} +1 -1
- package/dist/assets/DeleteOutline-DWh2h-xw.js +1 -0
- package/dist/assets/{DeleteOutline-CfWsbc1a.js → DeleteOutline-DuzabIUt.js} +1 -1
- package/dist/assets/{Done-CbG1n7TV.js → Done-MfHSISFV.js} +1 -1
- package/dist/assets/{Edit-D2R20RFt.js → Edit-Cn_G48ZU.js} +1 -1
- package/dist/assets/{EditIcon-DWIVTczi.js → EditIcon-B1ovGBjD.js} +1 -1
- package/dist/assets/{FilterList-gGx11q-p.js → FilterList-DiA-6Il8.js} +1 -1
- package/dist/assets/{Google-CpcA0NCN.js → Google-DQdWmIOC.js} +1 -1
- package/dist/assets/{Https-YbDZUE--.js → Https-BRpH0Ae8.js} +1 -1
- package/dist/assets/{InputAdornment-BPwm2dnh.js → InputAdornment-CDb1Pg-S.js} +1 -1
- package/dist/assets/{InputLabel-CfRvg3E0.js → InputLabel-Xa0HFZxn.js} +1 -1
- package/dist/assets/{LastPage-BkIsmfi2.js → LastPage-BtCi2wuv.js} +1 -1
- package/dist/assets/{Launch-BFRTKCgX.js → Launch-BRBdnw92.js} +1 -1
- package/dist/assets/{Link-BZodiBIz.js → Link-B8edwUNQ.js} +1 -1
- package/dist/assets/{LoadingButton-DQ3wXyLh.js → LoadingButton-UpGMfSHA.js} +1 -1
- package/dist/assets/{LockIcon-CF3Yl9tf.js → LockIcon-Bs5dBhg9.js} +1 -1
- package/dist/assets/{Loop-DJX-NWYU.js → Loop-QRcaFYyu.js} +1 -1
- package/dist/assets/{MoreVert-Cw5JqD-n.js → MoreVert-0x6ZKOOm.js} +1 -1
- package/dist/assets/{Pagination-Dw6rLiDa.js → Pagination-BWwDGBkP.js} +1 -1
- package/dist/assets/{Public-4ZipZDUd.js → Public-DBy7o1UF.js} +1 -1
- package/dist/assets/{SchemaReference.es-C2JY9xEh.js → SchemaReference.es-p0gT2gqO.js} +1 -1
- package/dist/assets/{Search-Co3tOmY1.js → Search-DwG5nouB.js} +1 -1
- package/dist/assets/{Select-BHyxLJXO.js → Select-CjUz8jvK.js} +1 -1
- package/dist/assets/{Skeleton-FWWrVymY.js → Skeleton-CDB0GyGY.js} +1 -1
- package/dist/assets/{Slider-CTrqzFQ0.js → Slider-DwYIlYBn.js} +1 -1
- package/dist/assets/{Stepper-BYinN7qr.js → Stepper-antHQYRF.js} +1 -1
- package/dist/assets/{TextField-DsYRZFfL.js → TextField-WEzwgjP0.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-LuLWYYav.js → ToggleButtonGroup-dJuSsWUY.js} +1 -1
- package/dist/assets/{ViewList-IW1QaH_L.js → ViewList-BAMGdQxk.js} +1 -1
- package/dist/assets/actions-Axwta7IP.js +11 -0
- package/dist/assets/{actions-DkgRiPBw.js → actions-BbcoFZjT.js} +1 -1
- package/dist/assets/{agreement-DByQv9ZX.js → agreement-CiDOtCXU.js} +1 -1
- package/dist/assets/api-DgUgGcaK.js +1 -0
- package/dist/assets/{app-avatar-Cx6kCeuS.js → app-avatar-DSkk2bqr.js} +1 -1
- package/dist/assets/{audit-logs-XHAxITYC.js → audit-logs-C-4-t6rX.js} +1 -1
- package/dist/assets/blocklet-CbzARbti.js +1 -0
- package/dist/assets/{brace-fold.es-LH9Jpy3f.js → brace-fold.es-CGT1cM_X.js} +1 -1
- package/dist/assets/{bundle-avatar-D3srwykJ.js → bundle-avatar-BRoQ90__.js} +1 -1
- package/dist/assets/{chart-CwUcOCm9.js → chart-DnmL96Rh.js} +1 -1
- package/dist/assets/{click-to-copy-CPgkX4m2.js → click-to-copy-Pr-Zbrif.js} +1 -1
- package/dist/assets/{closebrackets.es-CZSR_3xe.js → closebrackets.es-DsNYy4i3.js} +1 -1
- package/dist/assets/{codemirror.es-CDBPSM3n.js → codemirror.es-DwAzghgf.js} +1 -1
- package/dist/assets/{comment.es-DGH4itKk.js → comment.es-DhPl6sms.js} +1 -1
- package/dist/assets/{config-navigation-NRSeF0zB.js → config-navigation-DAD-pXS6.js} +1 -1
- package/dist/assets/{delete-confirm-DGNC6LoB.js → delete-confirm-C2q7Vvj-.js} +1 -1
- package/dist/assets/{detail-gUZ7dE3r.js → detail-BTV64Agz.js} +3 -3
- package/dist/assets/{dialog.es-BCpHrEUI.js → dialog.es-Bbrn4b99.js} +1 -1
- package/dist/assets/{download-cKQNB8IS.js → download-B9hXOuXD.js} +1 -1
- package/dist/assets/{foldgutter.es-B4z5FPpx.js → foldgutter.es-BJubswZD.js} +1 -1
- package/dist/assets/getValidReactChildren-CqAGVe_y.js +1 -0
- package/dist/assets/{hint.es-CjtvhU7v.js → hint.es-C-RplnH-.js} +1 -1
- package/dist/assets/{hint.es2-C3fkpJdT.js → hint.es2-CNgpWTT8.js} +1 -1
- package/dist/assets/{iframe-a4uHsJw3.js → iframe-z1F3R-br.js} +1 -1
- package/dist/assets/{index-D3BiJZx7.js → index-3GrPYR-0.js} +1 -1
- package/dist/assets/{index-223JGPy0.js → index-7QaQQyyg.js} +1 -1
- package/dist/assets/{index-B6yK_bzX.js → index-9TIeU8eV.js} +3 -3
- package/dist/assets/{index-Bl4RVAyg.js → index-Amewrci5.js} +1 -1
- package/dist/assets/{index-Asa_0R8u.js → index-B-ejgY6o.js} +1 -1
- package/dist/assets/{index-CaILkSHA.js → index-BDKa_BY3.js} +13 -13
- package/dist/assets/{index-BPGGylov.js → index-BJgIXaX1.js} +1 -1
- package/dist/assets/{index-ByUD-X5g.js → index-BKYjcIDk.js} +1 -1
- package/dist/assets/{index-987rzvE8.js → index-BNcfbTbf.js} +1 -1
- package/dist/assets/{index-DlnomLD1.js → index-BYxffRHK.js} +1 -1
- package/dist/assets/{index-ltfZ8gtL.js → index-Bd27-rFC.js} +1 -1
- package/dist/assets/{index-ZT9QeB3O.js → index-BeATEtzy.js} +1 -1
- package/dist/assets/{index-CuDSWVTP.js → index-BniMuAse.js} +1 -1
- package/dist/assets/{index-D21hPRpg.js → index-BuCL0HpY.js} +1 -1
- package/dist/assets/{index-BdXc-VnA.js → index-C2d2WkHe.js} +1 -1
- package/dist/assets/{index-DLXcR0K0.js → index-C6YaOYlB.js} +1 -1
- package/dist/assets/{index-rDmYbmrh.js → index-CSEZ2el2.js} +1 -1
- package/dist/assets/{index-D2bnoRiO.js → index-CSOdd_os.js} +1 -1
- package/dist/assets/{index-Do9FcEok.js → index-C_LsHXyQ.js} +1 -1
- package/dist/assets/{index-CiHdSPzG.js → index-CdfKqS5O.js} +1 -1
- package/dist/assets/{index-DesqGCgv.js → index-CgtLAydP.js} +1 -1
- package/dist/assets/{index-dI-5DMUE.js → index-Csvz8Imb.js} +1 -1
- package/dist/assets/{index-7DZ48QpY.js → index-D-5tSEIi.js} +1 -1
- package/dist/assets/{index-C7XdmdZm.js → index-D5kwWkvv.js} +1 -1
- package/dist/assets/{index-C32jjYE0.js → index-DKWkPDvp.js} +1 -1
- package/dist/assets/{index-Byw0qEee.js → index-DOduirD-.js} +1 -1
- package/dist/assets/{index-QpveLXno.js → index-DcDo8U3a.js} +1 -1
- package/dist/assets/{index-C4vYMHes.js → index-DdpOtHIy.js} +1 -1
- package/dist/assets/{index-DtSAlyAb.js → index-Ddq4jr_U.js} +2 -2
- package/dist/assets/{index-BsnWcB_C.js → index-DkP2dxtw.js} +1 -1
- package/dist/assets/{index-BH5Du5OK.js → index-DmQo-C54.js} +3 -3
- package/dist/assets/{index-D858U3Qw.js → index-DqaA-1j3.js} +1 -1
- package/dist/assets/{index-CmnxH5_7.js → index-Dx7GtFO4.js} +1 -1
- package/dist/assets/{index-CuQoWTSG.js → index-DyoBof3A.js} +1 -1
- package/dist/assets/{index-CbVpP-kP.js → index-GDpPN-gh.js} +1 -1
- package/dist/assets/{index-9D4yHZMO.js → index-HfmVdk5l.js} +1 -1
- package/dist/assets/{index-DCdEnHXm.js → index-KpJXpdYI.js} +1 -1
- package/dist/assets/{index-iAyUVxpq.js → index-P3idGO87.js} +1 -1
- package/dist/assets/{index-DECoPT7p.js → index-WbmzOgUa.js} +1 -1
- package/dist/assets/{index-BS3cETry.js → index-_bmSdh1U.js} +5 -5
- package/dist/assets/{index-DGMii6rV.js → index-eBDS1eXE.js} +1 -1
- package/dist/assets/{index-Dp7ygnu_.js → index-n9PgzTmH.js} +1 -1
- package/dist/assets/{index-erVE_nO9.js → index-nRTaNnQw.js} +1 -1
- package/dist/assets/{index-BooGyAWJ.js → index-qxGoRIpD.js} +1 -1
- package/dist/assets/{index.es-D7AXw11H.js → index.es-mE5_ixZH.js} +1 -1
- package/dist/assets/{index.esm-UKhIq9Zf.js → index.esm-fGXhVzzq.js} +1 -1
- package/dist/assets/{info-addon.es-BOBKDmMJ.js → info-addon.es-BvVuxhQQ.js} +1 -1
- package/dist/assets/{info.es-TxCSWnxL.js → info.es-MM55o9RA.js} +1 -1
- package/dist/assets/{install-from-url-C2MMBwn8.js → install-from-url-D0Mot9As.js} +1 -1
- package/dist/assets/{invitation-fKgtV8Zz.js → invitation-DQ7pnJkF.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-DSWbb6Lw.js → is-path-prefix-equal-DMaJOeQN.js} +1 -1
- package/dist/assets/{isEqual-j-zS_8Gf.js → isEqual-BQFT4gzY.js} +1 -1
- package/dist/assets/{item-DafV54vj.js → item-C7ih-Gxw.js} +1 -1
- package/dist/assets/{javascript.es-Bs8LWftY.js → javascript.es-BiK5ETle.js} +1 -1
- package/dist/assets/{jump-to-line.es-D-yW_11z.js → jump-to-line.es-xLmM6XQj.js} +1 -1
- package/dist/assets/{jump.es-BOkuipP6.js → jump.es-BK7Mo0mV.js} +1 -1
- package/dist/assets/{line-BT-CqrvO.js → line-DRJUtJJ7.js} +3 -3
- package/dist/assets/{lint.es-Bnw9EvpL.js → lint.es-CP-Ar6xo.js} +1 -1
- package/dist/assets/{lint.es2-ClUYPmWE.js → lint.es2-WhVmGalN.js} +1 -1
- package/dist/assets/{lint.es3-Wt4762FH.js → lint.es3-DAPaYml5.js} +1 -1
- package/dist/assets/{list-header-D8gIqGsc.js → list-header-Dyo4DcEh.js} +1 -1
- package/dist/assets/{log-B4RGVLfQ.js → log-Dg18Gkt2.js} +1 -1
- package/dist/assets/{lottie-DPC4uwjn.js → lottie-Bqw4aFON.js} +1 -1
- package/dist/assets/{matchbrackets.es-B_DBzsmq.js → matchbrackets.es-DVUMeePc.js} +1 -1
- package/dist/assets/{memory-BkPehB2B.js → memory-BLxwSKAa.js} +1 -1
- package/dist/assets/{mode.es-Rcfl9bQx.js → mode.es-DvtWXSbp.js} +1 -1
- package/dist/assets/{mode.es2-q3QJyvaG.js → mode.es2-yGA392Ce.js} +1 -1
- package/dist/assets/{mode.es3-BFNoOjTH.js → mode.es3-bF1o4S_X.js} +1 -1
- package/dist/assets/{onlineParser.es-Co9RB_dz.js → onlineParser.es-D8oRG-7l.js} +1 -1
- package/dist/assets/{overview-B0Vrv3iN.js → overview-e30PAYmB.js} +1 -1
- package/dist/assets/{react-DspsQPdu.js → react-Dixc1jm3.js} +3 -3
- package/dist/assets/{redux-CW-2wISG.js → redux-Cw-bFLc5.js} +1 -1
- package/dist/assets/{resource-dialog-B2JtbLNW.js → resource-dialog-C522yqNu.js} +1 -1
- package/dist/assets/{runtime-Cdoj20eA.js → runtime-D6nwOziK.js} +1 -1
- package/dist/assets/{search.es-CZGl1gJE.js → search.es-Cd0QD07l.js} +1 -1
- package/dist/assets/{searchcursor.es-CV5CjRq7.js → searchcursor.es-Bfc4-LPG.js} +1 -1
- package/dist/assets/service-DgYqociD.js +1 -0
- package/dist/assets/{shorten-label-MNOvw9uc.js → shorten-label-DlpxUgCq.js} +1 -1
- package/dist/assets/{show-hint.es-Dv8MKhoo.js → show-hint.es-CN7yg_JP.js} +1 -1
- package/dist/assets/{slicedToArray-BjdTUeMu.js → slicedToArray-CiZnKyCy.js} +1 -1
- package/dist/assets/{spaces-CJAn8A_O.js → spaces-Ca83-jCl.js} +1 -1
- package/dist/assets/{sublime.es-CeJNrSLR.js → sublime.es-DgFQ3pas.js} +1 -1
- package/dist/assets/{switch-control-DRGFY74g.js → switch-control-67XrThc4.js} +1 -1
- package/dist/assets/{table-icons-BL8xSB3P.js → table-icons-CRJe_3MP.js} +2 -2
- package/dist/assets/{tag-BcsNyCIC.js → tag-DAjEEpCa.js} +1 -1
- package/dist/assets/{team-BwAkC099.js → team-CyhoyJ9a.js} +1 -1
- package/dist/assets/{toUpper-Cc1D9AuZ.js → toUpper-CYBV7cHO.js} +1 -1
- package/dist/assets/{traffic-D8r3k_ae.js → traffic-DeHbNL-I.js} +1 -1
- package/dist/assets/{url-evaluation-Ddzyc50Z.js → url-evaluation-CbzEvBzd.js} +1 -1
- package/dist/assets/{url-join-BdHqt1dS.js → url-join-DIhz1PVb.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-ByiBXoYS.js → use-blocklet-info-for-connect-did-spaces-DuQNnaZW.js} +1 -1
- package/dist/assets/{useLocalStorage-xuSREX68.js → useLocalStorage-BRZrZD2R.js} +1 -1
- package/dist/assets/{util-BxfggyNA.js → util-9vU2zZs2.js} +1 -1
- package/dist/assets/{wait-container-Cb5wu-yb.js → wait-container-oqsX_-iJ.js} +1 -1
- package/dist/assets/{withStyles-Bix6STf4.js → withStyles-CBM6laCD.js} +1 -1
- package/dist/assets/{wrap-locale-C2eTlgXw.js → wrap-locale-BFSbv413.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/DeleteOutline-BuR7k_j3.js +0 -1
- package/dist/assets/actions-DCJ-sSPn.js +0 -11
- package/dist/assets/api-Bm6QocBj.js +0 -1
- package/dist/assets/blocklet-sVlwX65X.js +0 -1
- package/dist/assets/getValidReactChildren-CYcUTCCR.js +0 -1
- package/dist/assets/service-DM6evFxx.js +0 -1
package/dist/service-worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
try{self["workbox:core:7.0.0"]&&_()}catch{}const ae=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},ne=ae;let y=class extends Error{constructor(e,t){const r=ne(e,t);super(r),this.name=e,this.details=t}};const ie=new Set,d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},N=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),ce=s=>{for(const e of Object.keys(d))s(e)},oe={updateDetails:s=>{ce(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||N(d.googleAnalytics),getPrecacheName:s=>s||N(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||N(d.runtime),getSuffix:()=>d.suffix};function $(s,e){const t=new URL(s);for(const r of e)t.searchParams.delete(r);return t.href}async function le(s,e,t,r){const a=$(e.url,t);if(e.url===a)return s.match(e,r);const i=Object.assign(Object.assign({},r),{ignoreSearch:!0}),n=await s.keys(e,i);for(const c of n){const o=$(c.url,t);if(a===o)return s.match(c,r)}}let he=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};async function ue(){for(const s of ie)await s()}const fe=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function de(s){return new Promise(e=>setTimeout(e,s))}function pe(){self.addEventListener("activate",()=>self.clients.claim())}try{self["workbox:core:7.0.0"]&&_()}catch{}const ge=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},me=ge;let u=class extends Error{constructor(e,t){const r=me(e,t);super(r),this.name=e,this.details=t}};const p={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},M=s=>[p.prefix,s,p.suffix].filter(e=>e&&e.length>0).join("-"),we=s=>{for(const e of Object.keys(p))s(e)},j={updateDetails:s=>{we(e=>{typeof s[e]=="string"&&(p[e]=s[e])})},getGoogleAnalyticsName:s=>s||M(p.googleAnalytics),getPrecacheName:s=>s||M(p.precache),getPrefix:()=>p.prefix,getRuntimeName:s=>s||M(p.runtime),getSuffix:()=>p.suffix};function H(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:7.0.0"]&&_()}catch{}const ye="__WB_REVISION__";function _e(s){if(!s)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const i=new URL(s,location.href);return{cacheKey:i.href,url:i.href}}const{revision:e,url:t}=s;if(!t)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(!e){const i=new URL(t,location.href);return{cacheKey:i.href,url:i.href}}const r=new URL(t,location.href),a=new URL(t,location.href);return r.searchParams.set(ye,e),{cacheKey:r.href,url:a.href}}class Re{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:r})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;r?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return r}}}class be{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:r})=>{const a=(r==null?void 0:r.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}let b;function Ce(){if(b===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),b=!0}catch{b=!1}b=!1}return b}async function xe(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 r=s.clone(),a={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},i=e?e(a):a,n=Ce()?r.body:await r.blob();return new Response(n,i)}const ke=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function B(s,e){const t=new URL(s);for(const r of e)t.searchParams.delete(r);return t.href}async function Ee(s,e,t,r){const a=B(e.url,t);if(e.url===a)return s.match(e,r);const i=Object.assign(Object.assign({},r),{ignoreSearch:!0}),n=await s.keys(e,i);for(const c of n){const o=B(c.url,t);if(a===o)return s.match(c,r)}}class De{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const Ue=new Set;async function Le(){for(const s of Ue)await s()}function Pe(s){return new Promise(e=>setTimeout(e,s))}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function D(s){return typeof s=="string"?new Request(s):s}let ve=class{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new De,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=D(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new u("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=D(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=D(e);await Pe(0);const a=await this.getCacheKey(r,"write");if(!t)throw new u("cache-put-with-no-response",{url:ke(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await Ee(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await Le(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=D(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}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,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}},Ne=class{constructor(e={}){this.cacheName=j.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,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new ve(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,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(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}};class w extends Ne{constructor(e={}){e.cacheName=j.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(w.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const r=await t.cacheMatch(e);return r||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let r;const a=t.params||{};if(this._fallbackToNetwork){const i=a.integrity,n=e.integrity,c=!n||n===i;r=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?n||i:void 0})),i&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,r.clone()))}else throw new u("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return r}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const r=await t.fetch(e);if(!await t.cachePut(e,r.clone()))throw new u("bad-precaching-response",{url:e.url,status:r.status});return r}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[r,a]of this.plugins.entries())a!==w.copyRedirectedCacheableResponsesPlugin&&(a===w.defaultPrecacheCacheabilityPlugin&&(e=r),a.cacheWillUpdate&&t++);t===0?this.plugins.push(w.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}w.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};w.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await xe(s):s}};class Me{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:r=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new w({cacheName:j.getPrecacheName(e),plugins:[...t,new be({precacheController:this})],fallbackToNetwork:r}),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 r of e){typeof r=="string"?t.push(r):r&&r.revision===void 0&&t.push(r.url);const{cacheKey:a,url:i}=_e(r),n=typeof r!="string"&&r.revision?"reload":"default";if(this._urlsToCacheKeys.has(i)&&this._urlsToCacheKeys.get(i)!==a)throw new u("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(i),secondEntry:a});if(typeof r!="string"&&r.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==r.integrity)throw new u("add-to-cache-list-conflicting-integrities",{url:i});this._cacheKeysToIntegrities.set(a,r.integrity)}if(this._urlsToCacheKeys.set(i,a),this._urlsToCacheModes.set(i,n),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 H(e,async()=>{const t=new Re;this.strategy.plugins.push(t);for(const[i,n]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(n),o=this._urlsToCacheModes.get(i),l=new Request(i,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:l,event:e}))}const{updatedURLs:r,notUpdatedURLs:a}=t;return{updatedURLs:r,notUpdatedURLs:a}})}activate(e){return H(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),r=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),i=[];for(const n of r)a.has(n.url)||(await t.delete(n),i.push(n.url));return{deletedURLs:i}})}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,r=this.getCacheKeyForURL(t);if(r)return(await self.caches.open(this.strategy.cacheName)).match(r)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return r=>(r.request=new Request(e),r.params=Object.assign({cacheKey:t},r.params),this.strategy.handle(r))}}let T;const J=()=>(T||(T=new Me),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const z="GET",P=s=>s&&typeof s=="object"?s:{handle:s};let E=class{constructor(e,t,r=z){this.handler=P(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=P(e)}},Te=class extends E{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}},Oe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.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:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,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:n,params:c}}return{}}setDefaultHandler(e,t=z){this._defaultHandlerMap.set(t,P(e))}setCatchHandler(e){this._catchHandler=P(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")}},C;const Se=()=>(C||(C=new Oe,C.addFetchListener(),C.addCacheListener()),C);function Ae(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new E(n,e,t)}else if(s instanceof RegExp)r=new Te(s,e,t);else if(typeof s=="function")r=new E(s,e,t);else if(s instanceof E)r=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Se().registerRoute(r),r}function Ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(r=>r.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:r=!0,urlManipulation:a}={}){const i=new URL(s,location.href);i.hash="",yield i.href;const n=Ke(i,e);if(yield n.href,t&&n.pathname.endsWith("/")){const c=new URL(n.href);c.pathname+=t,yield c.href}if(r){const c=new URL(n.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:i});for(const o of c)yield o.href}}class We extends E{constructor(e,t){const r=({request:a})=>{const i=e.getURLsToCacheKeys();for(const n of Ie(a.url,t)){const c=i.get(n);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(r,e.strategy)}}function je(s){const e=J(),t=new We(e,s);Ae(t)}function qe(s){J().precache(s)}function $e(s,e){qe(s),je(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const He=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Be=He;class Fe extends Error{constructor(e,t){const r=Be(e,t);super(r),this.name=e,this.details=t}}function X(s){s.then(()=>{})}const Ve=(s,e)=>e.some(t=>s instanceof t);let F,V;function Ge(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qe(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,I=new WeakMap,Z=new WeakMap,O=new WeakMap,q=new WeakMap;function Je(s){const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("success",i),s.removeEventListener("error",n)},i=()=>{t(m(s.result)),a()},n=()=>{r(s.error),a()};s.addEventListener("success",i),s.addEventListener("error",n)});return e.then(t=>{t instanceof IDBCursor&&Y.set(t,s)}).catch(()=>{}),q.set(e,s),e}function ze(s){if(I.has(s))return;const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("complete",i),s.removeEventListener("error",n),s.removeEventListener("abort",n)},i=()=>{t(),a()},n=()=>{r(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",i),s.addEventListener("error",n),s.addEventListener("abort",n)});I.set(s,e)}let W={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return I.get(s);if(e==="objectStoreNames")return s.objectStoreNames||Z.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 Xe(s){W=s(W)}function Ye(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=s.call(S(this),e,...t);return Z.set(r,e.sort?e.sort():[e]),m(r)}:Qe().includes(s)?function(...e){return s.apply(S(this),e),m(Y.get(this))}:function(...e){return m(s.apply(S(this),e))}}function Ze(s){return typeof s=="function"?Ye(s):(s instanceof IDBTransaction&&ze(s),Ve(s,Ge())?new Proxy(s,W):s)}function m(s){if(s instanceof IDBRequest)return Je(s);if(O.has(s))return O.get(s);const e=Ze(s);return e!==s&&(O.set(s,e),q.set(e,s)),e}const S=s=>q.get(s);function et(s,e,{blocked:t,upgrade:r,blocking:a,terminated:i}={}){const n=indexedDB.open(s,e),c=m(n);return r&&n.addEventListener("upgradeneeded",o=>{r(m(n.result),o.oldVersion,o.newVersion,m(n.transaction),o)}),t&&n.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{i&&o.addEventListener("close",()=>i()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function tt(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",r=>e(r.oldVersion,r)),m(t).then(()=>{})}const st=["get","getKey","getAll","getAllKeys","count"],rt=["put","add","delete","clear"],A=new Map;function G(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(A.get(e))return A.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,a=rt.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(a||st.includes(t)))return;const i=async function(n,...c){const o=this.transaction(n,a?"readwrite":"readonly");let l=o.store;return r&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return A.set(e,i),i}Xe(s=>({...s,get:(e,t,r)=>G(e,t)||s.get(e,t,r),has:(e,t)=>!!G(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const at="workbox-expiration",x="cache-entries",Q=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class nt{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(x,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&tt(this._cacheName)}async setTimestamp(e,t){e=Q(e);const r={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},i=(await this.getDb()).transaction(x,"readwrite",{durability:"relaxed"});await i.store.put(r),await i.done}async getTimestamp(e){const r=await(await this.getDb()).get(x,this._getId(e));return r==null?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let a=await r.transaction(x).store.index("timestamp").openCursor(null,"prev");const i=[];let n=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&n>=t?i.push(a.value):n++),a=await a.continue()}const c=[];for(const o of i)await r.delete(x,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Q(e)}async getDb(){return this._db||(this._db=await et(at,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class it{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 nt(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),r=await self.caches.open(this._cacheName);for(const a of t)await r.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,X(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),r=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<r:!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:""},K=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),ct=s=>{for(const e of Object.keys(g))s(e)},ot={updateDetails:s=>{ct(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||K(g.googleAnalytics),getPrecacheName:s=>s||K(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||K(g.runtime),getSuffix:()=>g.suffix},lt=new Set;function ht(s){lt.add(s)}class ut{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:r,cacheName:a,cachedResponse:i})=>{if(!i)return null;const n=this._isResponseDateFresh(i),c=this._getCacheExpiration(a);X(c.expireEntries());const o=c.updateTimestamp(r.url);if(t)try{t.waitUntil(o)}catch{}return n?i:null},this.cacheDidUpdate=async({cacheName:t,request:r})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(r.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&ht(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===ot.getRuntimeName())throw new Fe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new it(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 r=Date.now();return t>=r-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 ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class L{constructor(e,t,r=ee){this.handler=v(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=v(e)}}class ft extends L{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}}class dt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.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:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,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:n,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 y("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 y("unregister-route-route-not-registered")}}let k;const pt=()=>(k||(k=new dt,k.addFetchListener(),k.addCacheListener()),k);function te(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new L(n,e,t)}else if(s instanceof RegExp)r=new ft(s,e,t);else if(typeof s=="function")r=new L(s,e,t);else if(s instanceof L)r=s;else throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return pt().registerRoute(r),r}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}class gt{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new he,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=U(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=U(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=U(e);await de(0);const a=await this.getCacheKey(r,"write");if(!t)throw new y("cache-put-with-no-response",{url:fe(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await le(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ue(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}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,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}}class se{constructor(e={}){this.cacheName=oe.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,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new gt(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new y("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}}class mt extends se{async _handle(e,t){let r=await t.cacheMatch(e),a;if(!r)try{r=await t.fetchAndCachePut(e)}catch(i){i instanceof Error&&(a=i)}if(!r)throw new y("no-response",{url:e.url,error:a});return r}}const wt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class yt extends se{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(wt)}async _handle(e,t){const r=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(r);let a=await t.cacheMatch(e),i;if(!a)try{a=await r}catch(n){n instanceof Error&&(i=n)}if(!a)throw new y("no-response",{url:e.url,error:i});return a}}$e(([{"revision":null,"url":"assets/actions-DCJ-sSPn.js"},{"revision":null,"url":"assets/actions-DkgRiPBw.js"},{"revision":null,"url":"assets/Add-BhAOgw8n.js"},{"revision":null,"url":"assets/agreement-DByQv9ZX.js"},{"revision":null,"url":"assets/api-Bm6QocBj.js"},{"revision":null,"url":"assets/app-avatar-Cx6kCeuS.js"},{"revision":null,"url":"assets/ar-DEFG_HSF.js"},{"revision":null,"url":"assets/ar-XdwzyXYH.js"},{"revision":null,"url":"assets/ArrowDropDown-BhDZI_jd.js"},{"revision":null,"url":"assets/audit-logs-XHAxITYC.js"},{"revision":null,"url":"assets/Autocomplete-chf9WG4F.js"},{"revision":null,"url":"assets/blocklet-sVlwX65X.js"},{"revision":null,"url":"assets/brace-fold.es-LH9Jpy3f.js"},{"revision":null,"url":"assets/Breadcrumbs-Un40qFmK.js"},{"revision":null,"url":"assets/bundle-avatar-D3srwykJ.js"},{"revision":null,"url":"assets/ButtonGroup-BE_QoGeC.js"},{"revision":null,"url":"assets/chart-CwUcOCm9.js"},{"revision":null,"url":"assets/CheckCircle-B2UAY6EW.js"},{"revision":null,"url":"assets/ChevronLeft-LgQFTPg9.js"},{"revision":null,"url":"assets/ChevronRight-R1AD6T8t.js"},{"revision":null,"url":"assets/click-to-copy-CPgkX4m2.js"},{"revision":null,"url":"assets/Close-BA4_6LGT.js"},{"revision":null,"url":"assets/closebrackets.es-CZSR_3xe.js"},{"revision":null,"url":"assets/codemirror.es-CDBPSM3n.js"},{"revision":null,"url":"assets/comment.es-DGH4itKk.js"},{"revision":null,"url":"assets/config-navigation-NRSeF0zB.js"},{"revision":null,"url":"assets/de-BhcSSVI_.js"},{"revision":null,"url":"assets/de-BXx5XWMv.js"},{"revision":null,"url":"assets/Delete-BuQlLthh.js"},{"revision":null,"url":"assets/delete-confirm-DGNC6LoB.js"},{"revision":null,"url":"assets/DeleteOutline-BuR7k_j3.js"},{"revision":null,"url":"assets/DeleteOutline-CfWsbc1a.js"},{"revision":null,"url":"assets/detail-gUZ7dE3r.js"},{"revision":null,"url":"assets/dialog.es-BCpHrEUI.js"},{"revision":null,"url":"assets/Done-CbG1n7TV.js"},{"revision":null,"url":"assets/download-cKQNB8IS.js"},{"revision":null,"url":"assets/download-D33dFtt_.css"},{"revision":null,"url":"assets/Edit-D2R20RFt.js"},{"revision":null,"url":"assets/EditIcon-DWIVTczi.js"},{"revision":null,"url":"assets/es-CE8qLgeN.js"},{"revision":null,"url":"assets/es-dYDfzHE0.js"},{"revision":null,"url":"assets/FilterList-gGx11q-p.js"},{"revision":null,"url":"assets/foldgutter.es-B4z5FPpx.js"},{"revision":null,"url":"assets/forEachState.es-D8bf0zSr.js"},{"revision":null,"url":"assets/fr-DGLilU-8.js"},{"revision":null,"url":"assets/fr-IbaIGGgw.js"},{"revision":null,"url":"assets/getValidReactChildren-CYcUTCCR.js"},{"revision":null,"url":"assets/Google-CpcA0NCN.js"},{"revision":null,"url":"assets/hi-EiYI5FnU.js"},{"revision":null,"url":"assets/hi-LDjl5wGc.js"},{"revision":null,"url":"assets/hint.es-CjtvhU7v.js"},{"revision":null,"url":"assets/hint.es2-C3fkpJdT.js"},{"revision":null,"url":"assets/Https-YbDZUE--.js"},{"revision":null,"url":"assets/id-BHuBzbF-.js"},{"revision":null,"url":"assets/id-DduzF3jK.js"},{"revision":null,"url":"assets/iframe-a4uHsJw3.js"},{"revision":null,"url":"assets/index-223JGPy0.js"},{"revision":null,"url":"assets/index-7DZ48QpY.js"},{"revision":null,"url":"assets/index-987rzvE8.js"},{"revision":null,"url":"assets/index-9D4yHZMO.js"},{"revision":null,"url":"assets/index-Asa_0R8u.js"},{"revision":null,"url":"assets/index-B6yK_bzX.js"},{"revision":null,"url":"assets/index-BdXc-VnA.js"},{"revision":null,"url":"assets/index-BH5Du5OK.js"},{"revision":null,"url":"assets/index-Bl4RVAyg.js"},{"revision":null,"url":"assets/index-BooGyAWJ.js"},{"revision":null,"url":"assets/index-BPGGylov.js"},{"revision":null,"url":"assets/index-BS3cETry.js"},{"revision":null,"url":"assets/index-BsnWcB_C.js"},{"revision":null,"url":"assets/index-ByUD-X5g.js"},{"revision":null,"url":"assets/index-Byw0qEee.js"},{"revision":null,"url":"assets/index-C32jjYE0.js"},{"revision":null,"url":"assets/index-C4vYMHes.js"},{"revision":null,"url":"assets/index-C7igR7se.css"},{"revision":null,"url":"assets/index-C7XdmdZm.js"},{"revision":null,"url":"assets/index-CaILkSHA.js"},{"revision":null,"url":"assets/index-CbVpP-kP.js"},{"revision":null,"url":"assets/index-CiHdSPzG.js"},{"revision":null,"url":"assets/index-CmnxH5_7.js"},{"revision":null,"url":"assets/index-CuDSWVTP.js"},{"revision":null,"url":"assets/index-CuQoWTSG.js"},{"revision":null,"url":"assets/index-D21hPRpg.js"},{"revision":null,"url":"assets/index-D2bnoRiO.js"},{"revision":null,"url":"assets/index-D3BiJZx7.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-D7K8de1w.css"},{"revision":null,"url":"assets/index-D858U3Qw.js"},{"revision":null,"url":"assets/index-D9k2I5J1.js"},{"revision":null,"url":"assets/index-DCdEnHXm.js"},{"revision":null,"url":"assets/index-DECoPT7p.js"},{"revision":null,"url":"assets/index-DesqGCgv.js"},{"revision":null,"url":"assets/index-DGMii6rV.js"},{"revision":null,"url":"assets/index-dI-5DMUE.js"},{"revision":null,"url":"assets/index-DlnomLD1.js"},{"revision":null,"url":"assets/index-DLXcR0K0.js"},{"revision":null,"url":"assets/index-Do9FcEok.js"},{"revision":null,"url":"assets/index-Dp7ygnu_.js"},{"revision":null,"url":"assets/index-DtSAlyAb.js"},{"revision":null,"url":"assets/index-DU3JORH0.css"},{"revision":null,"url":"assets/index-erVE_nO9.js"},{"revision":null,"url":"assets/index-iAyUVxpq.js"},{"revision":null,"url":"assets/index-ltfZ8gtL.js"},{"revision":null,"url":"assets/index-QpveLXno.js"},{"revision":null,"url":"assets/index-rDmYbmrh.js"},{"revision":null,"url":"assets/index-ZT9QeB3O.js"},{"revision":null,"url":"assets/index.es-D7AXw11H.js"},{"revision":null,"url":"assets/index.esm-UKhIq9Zf.js"},{"revision":null,"url":"assets/info-addon.es-BOBKDmMJ.js"},{"revision":null,"url":"assets/info.es-TxCSWnxL.js"},{"revision":null,"url":"assets/InputAdornment-BPwm2dnh.js"},{"revision":null,"url":"assets/InputLabel-CfRvg3E0.js"},{"revision":null,"url":"assets/install-from-url-C2MMBwn8.js"},{"revision":null,"url":"assets/introspection.es-CPJcz6nz.js"},{"revision":null,"url":"assets/invitation-fKgtV8Zz.js"},{"revision":null,"url":"assets/is-path-prefix-equal-DSWbb6Lw.js"},{"revision":null,"url":"assets/isEqual-j-zS_8Gf.js"},{"revision":null,"url":"assets/item-CxkJY_14.css"},{"revision":null,"url":"assets/item-DafV54vj.js"},{"revision":null,"url":"assets/ja-BeNRi6CF.js"},{"revision":null,"url":"assets/ja-CQab-CnH.js"},{"revision":null,"url":"assets/javascript.es-Bs8LWftY.js"},{"revision":null,"url":"assets/jump-to-line.es-D-yW_11z.js"},{"revision":null,"url":"assets/jump.es-BOkuipP6.js"},{"revision":null,"url":"assets/ko-BGPBfmUw.js"},{"revision":null,"url":"assets/ko-BwMl9-je.js"},{"revision":null,"url":"assets/LastPage-BkIsmfi2.js"},{"revision":null,"url":"assets/Launch-BFRTKCgX.js"},{"revision":null,"url":"assets/line-BT-CqrvO.js"},{"revision":null,"url":"assets/Link-BZodiBIz.js"},{"revision":null,"url":"assets/lint.es-Bnw9EvpL.js"},{"revision":null,"url":"assets/lint.es2-ClUYPmWE.js"},{"revision":null,"url":"assets/lint.es3-Wt4762FH.js"},{"revision":null,"url":"assets/list-header-D8gIqGsc.js"},{"revision":null,"url":"assets/LoadingButton-DQ3wXyLh.js"},{"revision":null,"url":"assets/LockIcon-CF3Yl9tf.js"},{"revision":null,"url":"assets/log-B4RGVLfQ.js"},{"revision":null,"url":"assets/logo-BKA11TRi.js"},{"revision":null,"url":"assets/Loop-DJX-NWYU.js"},{"revision":null,"url":"assets/lottie-DPC4uwjn.js"},{"revision":null,"url":"assets/matchbrackets.es-B_DBzsmq.js"},{"revision":null,"url":"assets/memoize-one.esm-BdPwpGay.js"},{"revision":null,"url":"assets/memory-BkPehB2B.js"},{"revision":null,"url":"assets/mode-B2dWMeTO.js"},{"revision":null,"url":"assets/mode.es-Rcfl9bQx.js"},{"revision":null,"url":"assets/mode.es2-q3QJyvaG.js"},{"revision":null,"url":"assets/mode.es3-BFNoOjTH.js"},{"revision":null,"url":"assets/MoreVert-Cw5JqD-n.js"},{"revision":null,"url":"assets/onlineParser.es-Co9RB_dz.js"},{"revision":null,"url":"assets/overview-B0Vrv3iN.js"},{"revision":null,"url":"assets/Pagination-Dw6rLiDa.js"},{"revision":null,"url":"assets/preact.module-B1z5cdvs.js"},{"revision":null,"url":"assets/pt-BmW9xdbz.js"},{"revision":null,"url":"assets/pt-CKVSjj07.js"},{"revision":null,"url":"assets/Public-4ZipZDUd.js"},{"revision":null,"url":"assets/Range.es-DaV7MD2W.js"},{"revision":null,"url":"assets/react-BW7E7-P9.css"},{"revision":null,"url":"assets/react-DspsQPdu.js"},{"revision":null,"url":"assets/redux-CW-2wISG.js"},{"revision":null,"url":"assets/resource-dialog-B2JtbLNW.js"},{"revision":null,"url":"assets/ru-BYWTtj7Q.js"},{"revision":null,"url":"assets/ru-DufkUHOM.js"},{"revision":null,"url":"assets/runtime-Cdoj20eA.js"},{"revision":null,"url":"assets/SchemaReference.es-C2JY9xEh.js"},{"revision":null,"url":"assets/Search-Co3tOmY1.js"},{"revision":null,"url":"assets/search.es-CZGl1gJE.js"},{"revision":null,"url":"assets/searchcursor.es-CV5CjRq7.js"},{"revision":null,"url":"assets/Select-BHyxLJXO.js"},{"revision":null,"url":"assets/service-DM6evFxx.js"},{"revision":null,"url":"assets/shorten-label-MNOvw9uc.js"},{"revision":null,"url":"assets/show-hint.es-Dv8MKhoo.js"},{"revision":null,"url":"assets/Skeleton-FWWrVymY.js"},{"revision":null,"url":"assets/slicedToArray-BjdTUeMu.js"},{"revision":null,"url":"assets/Slider-CTrqzFQ0.js"},{"revision":null,"url":"assets/spaces-CJAn8A_O.js"},{"revision":null,"url":"assets/Stepper-BYinN7qr.js"},{"revision":null,"url":"assets/sublime.es-CeJNrSLR.js"},{"revision":null,"url":"assets/switch-control-DRGFY74g.js"},{"revision":null,"url":"assets/table-icons-BL8xSB3P.js"},{"revision":null,"url":"assets/tag-BcsNyCIC.js"},{"revision":null,"url":"assets/team-BwAkC099.js"},{"revision":null,"url":"assets/TextField-DsYRZFfL.js"},{"revision":null,"url":"assets/th-Dl-J4TkD.js"},{"revision":null,"url":"assets/th-TJjvBNbR.js"},{"revision":null,"url":"assets/ToggleButtonGroup-LuLWYYav.js"},{"revision":null,"url":"assets/toUpper-Cc1D9AuZ.js"},{"revision":null,"url":"assets/traffic-D8r3k_ae.js"},{"revision":null,"url":"assets/url-evaluation-Ddzyc50Z.js"},{"revision":null,"url":"assets/url-join-BdHqt1dS.js"},{"revision":null,"url":"assets/use-blocklet-info-for-connect-did-spaces-ByiBXoYS.js"},{"revision":null,"url":"assets/useLocalStorage-xuSREX68.js"},{"revision":null,"url":"assets/util-BxfggyNA.js"},{"revision":null,"url":"assets/vi-BMeJuBa9.js"},{"revision":null,"url":"assets/vi-DGeyTUFq.js"},{"revision":null,"url":"assets/ViewList-IW1QaH_L.js"},{"revision":null,"url":"assets/wait-container-Cb5wu-yb.js"},{"revision":null,"url":"assets/withStyles-Bix6STf4.js"},{"revision":null,"url":"assets/wrap-locale-C2eTlgXw.js"},{"revision":null,"url":"assets/zh-BDoN11lM.js"},{"revision":null,"url":"assets/zh-CPeMUIOU.js"},{"revision":null,"url":"assets/zh-tw-C76dFi4k.js"},{"revision":null,"url":"assets/zh-tw-Dg9g_7UM.js"},{"revision":"1a966ec541e09feab6e09d6a3464571a","url":"icons/css/all.css"},{"revision":"8cb29294e1259a11a4dcfc53db228c0c","url":"icons/css/brands.css"},{"revision":"e261b026495a963a3440c2cabaafffd9","url":"icons/css/brands.min.css"},{"revision":"b40c99e5b26dfdd9c49d45f550044137","url":"icons/css/fontawesome.css"},{"revision":"40af17bd614587f6c474f1d1ae9cd743","url":"icons/css/fontawesome.min.css"},{"revision":"03077cdd0957040d48261696c05e9215","url":"icons/css/light.css"},{"revision":"fe218a7af84a0e83bf616f465b9f0f4a","url":"icons/css/light.min.css"},{"revision":"0edef273c821c290c49ba04e0b699ee0","url":"index.html"},{"revision":"be6aad568a9de402ad83ef7601f9d6ce","url":"registerSW.js"},{"revision":"eee7588574d50fc529352609420cb773","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));pe();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const re=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/static/")},new mt({cacheName:"static",plugins:[new ut({maxEntries:200})]}));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/images/")||e.url.includes("/icons/")},new yt);
|
|
2
|
+
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return H(e,async()=>{const t=new Re;this.strategy.plugins.push(t);for(const[i,n]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(n),o=this._urlsToCacheModes.get(i),l=new Request(i,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:l,event:e}))}const{updatedURLs:r,notUpdatedURLs:a}=t;return{updatedURLs:r,notUpdatedURLs:a}})}activate(e){return H(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),r=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),i=[];for(const n of r)a.has(n.url)||(await t.delete(n),i.push(n.url));return{deletedURLs:i}})}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,r=this.getCacheKeyForURL(t);if(r)return(await self.caches.open(this.strategy.cacheName)).match(r)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return r=>(r.request=new Request(e),r.params=Object.assign({cacheKey:t},r.params),this.strategy.handle(r))}}let T;const J=()=>(T||(T=new Me),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const z="GET",P=s=>s&&typeof s=="object"?s:{handle:s};let E=class{constructor(e,t,r=z){this.handler=P(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=P(e)}},Te=class extends E{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}},Oe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.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:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,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:n,params:c}}return{}}setDefaultHandler(e,t=z){this._defaultHandlerMap.set(t,P(e))}setCatchHandler(e){this._catchHandler=P(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")}},C;const Se=()=>(C||(C=new Oe,C.addFetchListener(),C.addCacheListener()),C);function Ae(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new E(n,e,t)}else if(s instanceof RegExp)r=new Te(s,e,t);else if(typeof s=="function")r=new E(s,e,t);else if(s instanceof E)r=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Se().registerRoute(r),r}function Ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(r=>r.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:r=!0,urlManipulation:a}={}){const i=new URL(s,location.href);i.hash="",yield i.href;const n=Ke(i,e);if(yield n.href,t&&n.pathname.endsWith("/")){const c=new URL(n.href);c.pathname+=t,yield c.href}if(r){const c=new URL(n.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:i});for(const o of c)yield o.href}}class We extends E{constructor(e,t){const r=({request:a})=>{const i=e.getURLsToCacheKeys();for(const n of Ie(a.url,t)){const c=i.get(n);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(r,e.strategy)}}function je(s){const e=J(),t=new We(e,s);Ae(t)}function qe(s){J().precache(s)}function $e(s,e){qe(s),je(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const He=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Be=He;class Fe extends Error{constructor(e,t){const r=Be(e,t);super(r),this.name=e,this.details=t}}function X(s){s.then(()=>{})}const Ve=(s,e)=>e.some(t=>s instanceof t);let F,V;function Ge(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qe(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,I=new WeakMap,Z=new WeakMap,O=new WeakMap,q=new WeakMap;function Je(s){const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("success",i),s.removeEventListener("error",n)},i=()=>{t(m(s.result)),a()},n=()=>{r(s.error),a()};s.addEventListener("success",i),s.addEventListener("error",n)});return e.then(t=>{t instanceof IDBCursor&&Y.set(t,s)}).catch(()=>{}),q.set(e,s),e}function ze(s){if(I.has(s))return;const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("complete",i),s.removeEventListener("error",n),s.removeEventListener("abort",n)},i=()=>{t(),a()},n=()=>{r(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",i),s.addEventListener("error",n),s.addEventListener("abort",n)});I.set(s,e)}let W={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return I.get(s);if(e==="objectStoreNames")return s.objectStoreNames||Z.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 Xe(s){W=s(W)}function Ye(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=s.call(S(this),e,...t);return Z.set(r,e.sort?e.sort():[e]),m(r)}:Qe().includes(s)?function(...e){return s.apply(S(this),e),m(Y.get(this))}:function(...e){return m(s.apply(S(this),e))}}function Ze(s){return typeof s=="function"?Ye(s):(s instanceof IDBTransaction&&ze(s),Ve(s,Ge())?new Proxy(s,W):s)}function m(s){if(s instanceof IDBRequest)return Je(s);if(O.has(s))return O.get(s);const e=Ze(s);return e!==s&&(O.set(s,e),q.set(e,s)),e}const S=s=>q.get(s);function et(s,e,{blocked:t,upgrade:r,blocking:a,terminated:i}={}){const n=indexedDB.open(s,e),c=m(n);return r&&n.addEventListener("upgradeneeded",o=>{r(m(n.result),o.oldVersion,o.newVersion,m(n.transaction),o)}),t&&n.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{i&&o.addEventListener("close",()=>i()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function tt(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",r=>e(r.oldVersion,r)),m(t).then(()=>{})}const st=["get","getKey","getAll","getAllKeys","count"],rt=["put","add","delete","clear"],A=new Map;function G(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(A.get(e))return A.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,a=rt.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(a||st.includes(t)))return;const i=async function(n,...c){const o=this.transaction(n,a?"readwrite":"readonly");let l=o.store;return r&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return A.set(e,i),i}Xe(s=>({...s,get:(e,t,r)=>G(e,t)||s.get(e,t,r),has:(e,t)=>!!G(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const at="workbox-expiration",x="cache-entries",Q=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class nt{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(x,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&tt(this._cacheName)}async setTimestamp(e,t){e=Q(e);const r={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},i=(await this.getDb()).transaction(x,"readwrite",{durability:"relaxed"});await i.store.put(r),await i.done}async getTimestamp(e){const r=await(await this.getDb()).get(x,this._getId(e));return r==null?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let a=await r.transaction(x).store.index("timestamp").openCursor(null,"prev");const i=[];let n=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&n>=t?i.push(a.value):n++),a=await a.continue()}const c=[];for(const o of i)await r.delete(x,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Q(e)}async getDb(){return this._db||(this._db=await et(at,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class it{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 nt(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),r=await self.caches.open(this._cacheName);for(const a of t)await r.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,X(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),r=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<r:!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:""},K=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),ct=s=>{for(const e of Object.keys(g))s(e)},ot={updateDetails:s=>{ct(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||K(g.googleAnalytics),getPrecacheName:s=>s||K(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||K(g.runtime),getSuffix:()=>g.suffix},lt=new Set;function ht(s){lt.add(s)}class ut{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:r,cacheName:a,cachedResponse:i})=>{if(!i)return null;const n=this._isResponseDateFresh(i),c=this._getCacheExpiration(a);X(c.expireEntries());const o=c.updateTimestamp(r.url);if(t)try{t.waitUntil(o)}catch{}return n?i:null},this.cacheDidUpdate=async({cacheName:t,request:r})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(r.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&ht(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===ot.getRuntimeName())throw new Fe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new it(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 r=Date.now();return t>=r-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 ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class L{constructor(e,t,r=ee){this.handler=v(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=v(e)}}class ft extends L{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}}class dt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.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:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,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:n,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 y("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 y("unregister-route-route-not-registered")}}let k;const pt=()=>(k||(k=new dt,k.addFetchListener(),k.addCacheListener()),k);function te(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new L(n,e,t)}else if(s instanceof RegExp)r=new ft(s,e,t);else if(typeof s=="function")r=new L(s,e,t);else if(s instanceof L)r=s;else throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return pt().registerRoute(r),r}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}class gt{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new he,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=U(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=U(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=U(e);await de(0);const a=await this.getCacheKey(r,"write");if(!t)throw new y("cache-put-with-no-response",{url:fe(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await le(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ue(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}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,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}}class se{constructor(e={}){this.cacheName=oe.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,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new gt(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new y("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}}class mt extends se{async _handle(e,t){let r=await t.cacheMatch(e),a;if(!r)try{r=await t.fetchAndCachePut(e)}catch(i){i instanceof Error&&(a=i)}if(!r)throw new y("no-response",{url:e.url,error:a});return r}}const wt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class yt extends se{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(wt)}async _handle(e,t){const r=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(r);let a=await t.cacheMatch(e),i;if(!a)try{a=await r}catch(n){n instanceof Error&&(i=n)}if(!a)throw new y("no-response",{url:e.url,error:i});return a}}$e(([{"revision":null,"url":"assets/actions-Axwta7IP.js"},{"revision":null,"url":"assets/actions-BbcoFZjT.js"},{"revision":null,"url":"assets/Add-C0jlH_zP.js"},{"revision":null,"url":"assets/agreement-CiDOtCXU.js"},{"revision":null,"url":"assets/api-DgUgGcaK.js"},{"revision":null,"url":"assets/app-avatar-DSkk2bqr.js"},{"revision":null,"url":"assets/ar-DEFG_HSF.js"},{"revision":null,"url":"assets/ar-XdwzyXYH.js"},{"revision":null,"url":"assets/ArrowDropDown-DrehtX2f.js"},{"revision":null,"url":"assets/audit-logs-C-4-t6rX.js"},{"revision":null,"url":"assets/Autocomplete-CdIGu-2l.js"},{"revision":null,"url":"assets/blocklet-CbzARbti.js"},{"revision":null,"url":"assets/brace-fold.es-CGT1cM_X.js"},{"revision":null,"url":"assets/Breadcrumbs-Oi4z-7JU.js"},{"revision":null,"url":"assets/bundle-avatar-BRoQ90__.js"},{"revision":null,"url":"assets/ButtonGroup-NvrTYf1s.js"},{"revision":null,"url":"assets/chart-DnmL96Rh.js"},{"revision":null,"url":"assets/CheckCircle-uTfAh2GX.js"},{"revision":null,"url":"assets/ChevronLeft-C-HoTf-Q.js"},{"revision":null,"url":"assets/ChevronRight-c5xZzIfK.js"},{"revision":null,"url":"assets/click-to-copy-Pr-Zbrif.js"},{"revision":null,"url":"assets/Close-C5A1sroQ.js"},{"revision":null,"url":"assets/closebrackets.es-DsNYy4i3.js"},{"revision":null,"url":"assets/codemirror.es-DwAzghgf.js"},{"revision":null,"url":"assets/comment.es-DhPl6sms.js"},{"revision":null,"url":"assets/config-navigation-DAD-pXS6.js"},{"revision":null,"url":"assets/de-BhcSSVI_.js"},{"revision":null,"url":"assets/de-BXx5XWMv.js"},{"revision":null,"url":"assets/Delete-BqtdSlNQ.js"},{"revision":null,"url":"assets/delete-confirm-C2q7Vvj-.js"},{"revision":null,"url":"assets/DeleteOutline-DuzabIUt.js"},{"revision":null,"url":"assets/DeleteOutline-DWh2h-xw.js"},{"revision":null,"url":"assets/detail-BTV64Agz.js"},{"revision":null,"url":"assets/dialog.es-Bbrn4b99.js"},{"revision":null,"url":"assets/Done-MfHSISFV.js"},{"revision":null,"url":"assets/download-B9hXOuXD.js"},{"revision":null,"url":"assets/download-D33dFtt_.css"},{"revision":null,"url":"assets/Edit-Cn_G48ZU.js"},{"revision":null,"url":"assets/EditIcon-B1ovGBjD.js"},{"revision":null,"url":"assets/es-CE8qLgeN.js"},{"revision":null,"url":"assets/es-dYDfzHE0.js"},{"revision":null,"url":"assets/FilterList-DiA-6Il8.js"},{"revision":null,"url":"assets/foldgutter.es-BJubswZD.js"},{"revision":null,"url":"assets/forEachState.es-D8bf0zSr.js"},{"revision":null,"url":"assets/fr-DGLilU-8.js"},{"revision":null,"url":"assets/fr-IbaIGGgw.js"},{"revision":null,"url":"assets/getValidReactChildren-CqAGVe_y.js"},{"revision":null,"url":"assets/Google-DQdWmIOC.js"},{"revision":null,"url":"assets/hi-EiYI5FnU.js"},{"revision":null,"url":"assets/hi-LDjl5wGc.js"},{"revision":null,"url":"assets/hint.es-C-RplnH-.js"},{"revision":null,"url":"assets/hint.es2-CNgpWTT8.js"},{"revision":null,"url":"assets/Https-BRpH0Ae8.js"},{"revision":null,"url":"assets/id-BHuBzbF-.js"},{"revision":null,"url":"assets/id-DduzF3jK.js"},{"revision":null,"url":"assets/iframe-z1F3R-br.js"},{"revision":null,"url":"assets/index-_bmSdh1U.js"},{"revision":null,"url":"assets/index-3GrPYR-0.js"},{"revision":null,"url":"assets/index-7QaQQyyg.js"},{"revision":null,"url":"assets/index-9TIeU8eV.js"},{"revision":null,"url":"assets/index-Amewrci5.js"},{"revision":null,"url":"assets/index-B-ejgY6o.js"},{"revision":null,"url":"assets/index-Bd27-rFC.js"},{"revision":null,"url":"assets/index-BDKa_BY3.js"},{"revision":null,"url":"assets/index-BeATEtzy.js"},{"revision":null,"url":"assets/index-BJgIXaX1.js"},{"revision":null,"url":"assets/index-BKYjcIDk.js"},{"revision":null,"url":"assets/index-BNcfbTbf.js"},{"revision":null,"url":"assets/index-BniMuAse.js"},{"revision":null,"url":"assets/index-BuCL0HpY.js"},{"revision":null,"url":"assets/index-BYxffRHK.js"},{"revision":null,"url":"assets/index-C_LsHXyQ.js"},{"revision":null,"url":"assets/index-C2d2WkHe.js"},{"revision":null,"url":"assets/index-C6YaOYlB.js"},{"revision":null,"url":"assets/index-C7igR7se.css"},{"revision":null,"url":"assets/index-CdfKqS5O.js"},{"revision":null,"url":"assets/index-CgtLAydP.js"},{"revision":null,"url":"assets/index-CSEZ2el2.js"},{"revision":null,"url":"assets/index-CSOdd_os.js"},{"revision":null,"url":"assets/index-Csvz8Imb.js"},{"revision":null,"url":"assets/index-D-5tSEIi.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-D5kwWkvv.js"},{"revision":null,"url":"assets/index-D7K8de1w.css"},{"revision":null,"url":"assets/index-D9k2I5J1.js"},{"revision":null,"url":"assets/index-DcDo8U3a.js"},{"revision":null,"url":"assets/index-DdpOtHIy.js"},{"revision":null,"url":"assets/index-Ddq4jr_U.js"},{"revision":null,"url":"assets/index-DkP2dxtw.js"},{"revision":null,"url":"assets/index-DKWkPDvp.js"},{"revision":null,"url":"assets/index-DmQo-C54.js"},{"revision":null,"url":"assets/index-DOduirD-.js"},{"revision":null,"url":"assets/index-DqaA-1j3.js"},{"revision":null,"url":"assets/index-DU3JORH0.css"},{"revision":null,"url":"assets/index-Dx7GtFO4.js"},{"revision":null,"url":"assets/index-DyoBof3A.js"},{"revision":null,"url":"assets/index-eBDS1eXE.js"},{"revision":null,"url":"assets/index-GDpPN-gh.js"},{"revision":null,"url":"assets/index-HfmVdk5l.js"},{"revision":null,"url":"assets/index-KpJXpdYI.js"},{"revision":null,"url":"assets/index-n9PgzTmH.js"},{"revision":null,"url":"assets/index-nRTaNnQw.js"},{"revision":null,"url":"assets/index-P3idGO87.js"},{"revision":null,"url":"assets/index-qxGoRIpD.js"},{"revision":null,"url":"assets/index-WbmzOgUa.js"},{"revision":null,"url":"assets/index.es-mE5_ixZH.js"},{"revision":null,"url":"assets/index.esm-fGXhVzzq.js"},{"revision":null,"url":"assets/info-addon.es-BvVuxhQQ.js"},{"revision":null,"url":"assets/info.es-MM55o9RA.js"},{"revision":null,"url":"assets/InputAdornment-CDb1Pg-S.js"},{"revision":null,"url":"assets/InputLabel-Xa0HFZxn.js"},{"revision":null,"url":"assets/install-from-url-D0Mot9As.js"},{"revision":null,"url":"assets/introspection.es-CPJcz6nz.js"},{"revision":null,"url":"assets/invitation-DQ7pnJkF.js"},{"revision":null,"url":"assets/is-path-prefix-equal-DMaJOeQN.js"},{"revision":null,"url":"assets/isEqual-BQFT4gzY.js"},{"revision":null,"url":"assets/item-C7ih-Gxw.js"},{"revision":null,"url":"assets/item-CxkJY_14.css"},{"revision":null,"url":"assets/ja-BeNRi6CF.js"},{"revision":null,"url":"assets/ja-CQab-CnH.js"},{"revision":null,"url":"assets/javascript.es-BiK5ETle.js"},{"revision":null,"url":"assets/jump-to-line.es-xLmM6XQj.js"},{"revision":null,"url":"assets/jump.es-BK7Mo0mV.js"},{"revision":null,"url":"assets/ko-BGPBfmUw.js"},{"revision":null,"url":"assets/ko-BwMl9-je.js"},{"revision":null,"url":"assets/LastPage-BtCi2wuv.js"},{"revision":null,"url":"assets/Launch-BRBdnw92.js"},{"revision":null,"url":"assets/line-DRJUtJJ7.js"},{"revision":null,"url":"assets/Link-B8edwUNQ.js"},{"revision":null,"url":"assets/lint.es-CP-Ar6xo.js"},{"revision":null,"url":"assets/lint.es2-WhVmGalN.js"},{"revision":null,"url":"assets/lint.es3-DAPaYml5.js"},{"revision":null,"url":"assets/list-header-Dyo4DcEh.js"},{"revision":null,"url":"assets/LoadingButton-UpGMfSHA.js"},{"revision":null,"url":"assets/LockIcon-Bs5dBhg9.js"},{"revision":null,"url":"assets/log-Dg18Gkt2.js"},{"revision":null,"url":"assets/logo-BKA11TRi.js"},{"revision":null,"url":"assets/Loop-QRcaFYyu.js"},{"revision":null,"url":"assets/lottie-Bqw4aFON.js"},{"revision":null,"url":"assets/matchbrackets.es-DVUMeePc.js"},{"revision":null,"url":"assets/memoize-one.esm-BdPwpGay.js"},{"revision":null,"url":"assets/memory-BLxwSKAa.js"},{"revision":null,"url":"assets/mode-B2dWMeTO.js"},{"revision":null,"url":"assets/mode.es-DvtWXSbp.js"},{"revision":null,"url":"assets/mode.es2-yGA392Ce.js"},{"revision":null,"url":"assets/mode.es3-bF1o4S_X.js"},{"revision":null,"url":"assets/MoreVert-0x6ZKOOm.js"},{"revision":null,"url":"assets/onlineParser.es-D8oRG-7l.js"},{"revision":null,"url":"assets/overview-e30PAYmB.js"},{"revision":null,"url":"assets/Pagination-BWwDGBkP.js"},{"revision":null,"url":"assets/preact.module-B1z5cdvs.js"},{"revision":null,"url":"assets/pt-BmW9xdbz.js"},{"revision":null,"url":"assets/pt-CKVSjj07.js"},{"revision":null,"url":"assets/Public-DBy7o1UF.js"},{"revision":null,"url":"assets/Range.es-DaV7MD2W.js"},{"revision":null,"url":"assets/react-BW7E7-P9.css"},{"revision":null,"url":"assets/react-Dixc1jm3.js"},{"revision":null,"url":"assets/redux-Cw-bFLc5.js"},{"revision":null,"url":"assets/resource-dialog-C522yqNu.js"},{"revision":null,"url":"assets/ru-BYWTtj7Q.js"},{"revision":null,"url":"assets/ru-DufkUHOM.js"},{"revision":null,"url":"assets/runtime-D6nwOziK.js"},{"revision":null,"url":"assets/SchemaReference.es-p0gT2gqO.js"},{"revision":null,"url":"assets/Search-DwG5nouB.js"},{"revision":null,"url":"assets/search.es-Cd0QD07l.js"},{"revision":null,"url":"assets/searchcursor.es-Bfc4-LPG.js"},{"revision":null,"url":"assets/Select-CjUz8jvK.js"},{"revision":null,"url":"assets/service-DgYqociD.js"},{"revision":null,"url":"assets/shorten-label-DlpxUgCq.js"},{"revision":null,"url":"assets/show-hint.es-CN7yg_JP.js"},{"revision":null,"url":"assets/Skeleton-CDB0GyGY.js"},{"revision":null,"url":"assets/slicedToArray-CiZnKyCy.js"},{"revision":null,"url":"assets/Slider-DwYIlYBn.js"},{"revision":null,"url":"assets/spaces-Ca83-jCl.js"},{"revision":null,"url":"assets/Stepper-antHQYRF.js"},{"revision":null,"url":"assets/sublime.es-DgFQ3pas.js"},{"revision":null,"url":"assets/switch-control-67XrThc4.js"},{"revision":null,"url":"assets/table-icons-CRJe_3MP.js"},{"revision":null,"url":"assets/tag-DAjEEpCa.js"},{"revision":null,"url":"assets/team-CyhoyJ9a.js"},{"revision":null,"url":"assets/TextField-WEzwgjP0.js"},{"revision":null,"url":"assets/th-Dl-J4TkD.js"},{"revision":null,"url":"assets/th-TJjvBNbR.js"},{"revision":null,"url":"assets/ToggleButtonGroup-dJuSsWUY.js"},{"revision":null,"url":"assets/toUpper-CYBV7cHO.js"},{"revision":null,"url":"assets/traffic-DeHbNL-I.js"},{"revision":null,"url":"assets/url-evaluation-CbzEvBzd.js"},{"revision":null,"url":"assets/url-join-DIhz1PVb.js"},{"revision":null,"url":"assets/use-blocklet-info-for-connect-did-spaces-DuQNnaZW.js"},{"revision":null,"url":"assets/useLocalStorage-BRZrZD2R.js"},{"revision":null,"url":"assets/util-9vU2zZs2.js"},{"revision":null,"url":"assets/vi-BMeJuBa9.js"},{"revision":null,"url":"assets/vi-DGeyTUFq.js"},{"revision":null,"url":"assets/ViewList-BAMGdQxk.js"},{"revision":null,"url":"assets/wait-container-oqsX_-iJ.js"},{"revision":null,"url":"assets/withStyles-CBM6laCD.js"},{"revision":null,"url":"assets/wrap-locale-BFSbv413.js"},{"revision":null,"url":"assets/zh-BDoN11lM.js"},{"revision":null,"url":"assets/zh-CPeMUIOU.js"},{"revision":null,"url":"assets/zh-tw-C76dFi4k.js"},{"revision":null,"url":"assets/zh-tw-Dg9g_7UM.js"},{"revision":"1a966ec541e09feab6e09d6a3464571a","url":"icons/css/all.css"},{"revision":"8cb29294e1259a11a4dcfc53db228c0c","url":"icons/css/brands.css"},{"revision":"e261b026495a963a3440c2cabaafffd9","url":"icons/css/brands.min.css"},{"revision":"b40c99e5b26dfdd9c49d45f550044137","url":"icons/css/fontawesome.css"},{"revision":"40af17bd614587f6c474f1d1ae9cd743","url":"icons/css/fontawesome.min.css"},{"revision":"03077cdd0957040d48261696c05e9215","url":"icons/css/light.css"},{"revision":"fe218a7af84a0e83bf616f465b9f0f4a","url":"icons/css/light.min.css"},{"revision":"5d0e844a29381fc2a0e85799c097a225","url":"index.html"},{"revision":"be6aad568a9de402ad83ef7601f9d6ce","url":"registerSW.js"},{"revision":"eee7588574d50fc529352609420cb773","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));pe();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const re=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/static/")},new mt({cacheName:"static",plugins:[new ut({maxEntries:200})]}));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/images/")||e.url.includes("/icons/")},new yt);
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as e}from"./index-DtSAlyAb.js";import{r as t}from"./DeleteOutline-CfWsbc1a.js";var r=t();const i=e(r);export{i as D};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{bs as Ie,bt as Ue,bu as Oe,bv as Te,bw as qe,bx as ze,by as Ne,bz as ke,bA as He,g as Fe,bB as Ge,bC as Ve,bD as We,r as v,j as n,P as j,a1 as Ke,aK as R,aL as b,bE as Xe,n as Ye,z as Je,bk as Ze,f as pe,M as P,b as H,bF as M,a2 as Qe,aY as et,J as tt,N as nt,bc as at,S as rt,aD as st,C as se,a9 as ot,ad as oe,B as it,F as ie,m as q,aW as ce,A as le,aa as ct,aN as lt,K as ut,bG as dt,bH as mt,bI as pt}from"./index-DtSAlyAb.js";import{_ as ft}from"./useLocalStorage-xuSREX68.js";import{d as vt}from"./MoreVert-Cw5JqD-n.js";import{d as ht}from"./Delete-BuQlLthh.js";import{B as gt}from"./ButtonGroup-BE_QoGeC.js";import{R as xt,b as ue,u as _t}from"./url-evaluation-Ddzyc50Z.js";var St=Ie,jt=Te,yt=qe,Dt=Ue,Rt=Oe,bt=ze,Ct=200;function $t(e,r,o,c){var s=-1,u=jt,g=!0,x=e.length,d=[],i=r.length;if(!x)return d;o&&(r=Dt(r,Rt(o))),c?(u=yt,g=!1):r.length>=Ct&&(u=bt,g=!1,r=new St(r));e:for(;++s<x;){var p=e[s],f=o==null?p:o(p);if(p=c||p!==0?p:0,g&&f===f){for(var C=i;C--;)if(r[C]===f)continue e;d.push(p)}else u(r,f,c)||d.push(p)}return d}var Lt=$t,wt=Lt,Bt=Ne,de=ke;function Pt(e,r,o){var c=e.length;if(c<2)return c?de(e[0]):[];for(var s=-1,u=Array(c);++s<c;)for(var g=e[s],x=-1;++x<c;)x!=s&&(u[s]=wt(u[s]||g,e[x],r,o));return de(Bt(u,1),r,o)}var Mt=Pt,At=Ge,Et=He,It=Mt,Ut=We,Ot=Ve,Tt=Et(function(e){var r=Ot(e);return r=typeof r=="function"?r:void 0,It(At(e,Ut),void 0,r)}),qt=Tt;const zt=Fe(qt),fe=v.createContext({});function ve({children:e,type:r}){const[o,c]=v.useState([]),s=v.useRef([]),u=d=>{if(!s.current.includes(d)){const i=[...s.current,d];c(i),s.current=i}},g=d=>{if(s.current.includes(d)){const i=s.current.filter(p=>p!==d);c(i),s.current=i}},x=d=>{const i=o.filter(f=>d.find(C=>C===f));zt(i,o).forEach(f=>g(f))};return n.jsx(fe.Provider,{value:{type:r,deletingBlocklets:o,addDeletingDid:u,removeDeletingDid:g,matchDeletingDid:x},children:e})}ve.propTypes={type:j.string,children:j.node.isRequired};ve.defaultProps={type:"blocklets"};function _n(){return v.useContext(fe)}const Nt=(e,r)=>{if(!e)return"";if(!r)return e;const o=new URL(e),c=new URLSearchParams(o.searchParams),s=new URL(Ke(o.origin,r));return s.search=c.toString(),s.toString()};var F={},kt=b;Object.defineProperty(F,"__esModule",{value:!0});var he=F.default=void 0,Ht=kt(R()),Ft=n;he=F.default=(0,Ht.default)((0,Ft.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");var G={},Gt=b;Object.defineProperty(G,"__esModule",{value:!0});var ge=G.default=void 0,Vt=Gt(R()),Wt=n;ge=G.default=(0,Vt.default)((0,Wt.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var V={},Kt=b;Object.defineProperty(V,"__esModule",{value:!0});var xe=V.default=void 0,Xt=Kt(R()),Yt=n;xe=V.default=(0,Xt.default)((0,Yt.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var W={},Jt=b;Object.defineProperty(W,"__esModule",{value:!0});var _e=W.default=void 0,Zt=Jt(R()),Qt=n;_e=W.default=(0,Zt.default)((0,Qt.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var K={},en=b;Object.defineProperty(K,"__esModule",{value:!0});var Se=K.default=void 0,tn=en(R()),nn=n;Se=K.default=(0,tn.default)((0,nn.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var X={},an=b;Object.defineProperty(X,"__esModule",{value:!0});var je=X.default=void 0,rn=an(R()),sn=n;je=X.default=(0,rn.default)((0,sn.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Y={},on=b;Object.defineProperty(Y,"__esModule",{value:!0});var ye=Y.default=void 0,cn=on(R()),ln=n;ye=Y.default=(0,cn.default)((0,ln.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var J={},un=b;Object.defineProperty(J,"__esModule",{value:!0});var De=J.default=void 0,dn=un(R()),mn=n;De=J.default=(0,dn.default)((0,mn.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");const S={Start:he,Stop:ge,Restart:xe,Reload:_e,Remove:ht,Config:Se,Log:je,Group:ye,Cancel:De,Dashboard:Xe};function Z({blocklet:e,onStart:r,onComplete:o,variant:c,hasPermission:s,getComponentUrl:u,useBlockletUrlEvaluation:g,...x}){const d=Je(),i=Ze(),[p,f]=v.useState(null),[C,Q]=v.useState(null),[A,E]=v.useState(!1),[m,z]=v.useState(null),{t:a}=v.useContext(pe),[Re]=ft("skip-blocklet-setup",!1),{loading:be,recommendedUrl:Ce}=g(e),ee=P.isInProgress(e.status),[N,te]=v.useState(!1);v.useEffect(()=>{var l,y;if(!(e!=null&&e.controller))return;te(((y=(l=e==null?void 0:e.controller)==null?void 0:l.status)==null?void 0:y.value)===H.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var D,$,L;try{const h=await i.api.getLauncherSession({input:{launcherSessionId:(D=e==null?void 0:e.controller)==null?void 0:D.launcherSessionId,launcherUrl:($=e==null?void 0:e.controller)==null?void 0:$.launcherUrl}});if(h!=null&&h.error){console.error("get launcher session failed",h.error);return}te([ie.LAUNCH_SESSION_STATUS.expired,ie.LAUNCH_SESSION_STATUS.terminated].includes((L=h==null?void 0:h.launcherSession)==null?void 0:L.status))}catch(h){console.error("call getLauncherSession error",h)}})()},[]);const{inService:k}=i,$e=()=>{const t=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),l=u==null?void 0:u({mountPoint:t,blocklet:e});window.open(Nt(l,".well-known/service/admin"))},I=(t,l,y=!1)=>async()=>{const D=async U=>{var T;r({action:t,blocklet:e}),E(!0),Q(t);let O=!1;try{if(t==="remove")await l(U);else if(t==="start"){if(!P.hasRunnableComponent(e)){le.error(a("blocklet.noComponent"));return}if(!k&&!Re&&!((T=e.settings)!=null&&T.initialized)&&e.mode!==H.BLOCKLET_MODES.DEVELOPMENT){const _=ct(i.info),re=new URL(Ce);re.searchParams.set("serverUrl",_),window.open(re.href),o({action:t,blocklet:e});return}const w=e.children.filter(_=>!P.isInProgress(_.status)&&_.status!=="running").map(_=>_.meta.did),B={did:e.meta.did,componentDids:w};await l({input:B})}else if(["stop","restart","reload"].includes(t)){const w=e.children.filter(_=>_.status==="running").map(_=>_.meta.did),B={did:e.meta.did,componentDids:w};await l({input:B})}else{const w={did:e.meta.did};await l({input:w})}t==="remove"?O=!0:await lt(1e3),t==="reload"&&le.success(a("blocklet.reloadSuccess")),z(null),o({action:t,blocklet:e})}catch(w){const B=`Blocklet ${t} failed: ${ut(w)}`;throw o({action:t,blocklet:e,error:new Error(B)}),new Error(B)}finally{O||E(!1)}},$=()=>{E(!1),z(null)},L=P.getDisplayName(e,!0),h=e.mode===H.BLOCKLET_MODES.DEVELOPMENT?{description:()=>n.jsx(q,{component:"div",children:n.jsx(q,{gutterBottom:!0,children:a("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(U,O)=>n.jsxs(q,{component:"div",children:[n.jsx(q,{gutterBottom:!0,children:a("blocklet.action.removeApplicationDescription")}),n.jsxs(xt,{name:"removeType",value:U.removeType,onChange:T=>O({...U,removeType:T.target.value}),children:[n.jsx(ce,{value:"backup",control:n.jsx(ue,{}),label:a("blocklet.action.removeApplicationAfterBackup")}),n.jsx(ce,{value:"complete",control:n.jsx(ue,{}),label:a("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},Ee={stop:{title:`${a("common.stop")} ${L}`,description:a("blocklet.action.stopDescription"),confirm:a("blocklet.action.confirmStop"),cancel:a("common.cancel"),onConfirm:D,onCancel:$},restart:{title:`${a("common.restart")} ${L}`,description:a("blocklet.action.restartDescription"),confirm:a("blocklet.action.confirmRestart"),cancel:a("common.cancel"),onConfirm:D,onCancel:$},remove:{title:`${a("common.remove")} ${L}`,confirm:a("blocklet.action.confirmRemove"),cancel:a("common.cancel"),onConfirm:D,onCancel:$,...h},cancelDownload:{title:`${a("common.cancel")}`,description:a("blocklet.action.cancelDownloadDescription",{name:L}),confirm:a("common.confirm"),cancel:a("common.cancel"),onConfirm:D,onCancel:$}};y?z(Ee[t]):await D()},Le=!!p,we=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}f(t.currentTarget)},Be=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}f(null)},ne=async(t,l)=>{try{l.stopPropagation(),l.preventDefault()}catch{}if(typeof t.handler=="function")try{E(!0),Q(t.action),await t.handler()}catch(y){console.error(`Blocklet ${t.name} failed: `,y)}finally{E(!1),f(null)}else f(null)},Pe=!k&&P.isDeletableBlocklet(e)?{action:"remove",icon:S.Remove,name:a("common.remove"),handler:I("remove",async({removeType:t})=>{t==="backup"&&await i.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await i.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:ee}:null,Me={action:"remove",icon:({sx:t,...l})=>n.jsx(S.Cancel,{sx:{...t,paddingRight:"2px",zoom:.95},...l}),name:a("common.cancel"),handler:I("cancelDownload",i.api.cancelDownloadBlocklet,!0)},Ae=P.getAppMissingConfigs(e),ae=[{action:"start",icon:S.Start,name:a("common.start"),handler:I("start",i.api.startBlocklet),disabled:N||e.children.every(t=>t.status==="running")||M(e.status)||be||ee},{action:"stop",icon:S.Stop,name:a("common.stop"),handler:I("stop",i.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",icon:S.Restart,name:a("common.restart"),handler:I("restart",i.api.restartBlocklet,!0),disabled:N||e.status!=="running"},M(e.status)?Me:Pe,{separator:!0},k?null:{action:"dashboard",icon:({style:t,...l})=>n.jsx(S.Dashboard,{...l,style:{...t,width:"26px",height:"26px",paddingRight:"3px"}}),name:a("sidebar.dashboard"),handler:$e,disabled:N||e.status!=="running"},{separator:!0},{onlyInMenu:!0,action:"config",icon:S.Config,name:a("common.config"),handler:()=>{d(`/blocklets/${e.meta.did}/configuration`)},disabled:M(e.status)},{onlyInMenu:!0,action:"team",icon:S.Group,name:a("common.manageTeam"),handler:()=>{d(`/blocklets/${e.meta.did}/members`)},disabled:M(e.status)},{onlyInMenu:!0,action:"log",icon:S.Log,name:a("common.log"),handler:()=>{d(`/logs/blocklet-${e.meta.did}`)},disabled:M(e.status)}].filter(Boolean);return c==="menu"?n.jsxs(me,{"data-cy":"blocklet-actions",children:[n.jsx(Qe,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:we,size:"small",disabled:!s||!M(e.status)&&A,children:n.jsx(vt,{})}),n.jsxs(et,{id:"actions-menu",anchorEl:p,keepMounted:!0,open:Le,onClose:Be,PaperProps:{},children:[Ae.length>0&&n.jsxs(tt,{style:{maxWidth:"400px"},severity:"error",children:[a("blocklet.config.missingRequired"),n.jsx("br",{}),n.jsx(nt,{to:`/blocklets/${e.meta.did}/components`,children:a("blocklet.config.gotoFix")})]}),ae.map((t,l)=>t.separator?n.jsx(at,{},`separator-${l}`):n.jsxs(rt,{dense:!0,onClick:y=>ne(t,y),disabled:A||t.disabled,"data-cy":`${t.action}-blocklet`,children:[n.jsx(st,{style:{minWidth:24},children:C===t.action&&A?n.jsx(se,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{fontSize:"small"})}),n.jsx(ot,{primary:t.name})]},t.name))]}),m&&n.jsx(oe,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]}):n.jsxs(me,{"data-cy":"blocklet-actions",...x,children:[n.jsx(gt,{children:ae.filter(t=>!t.separator&&!t.onlyInMenu).map(t=>n.jsxs(it,{title:t.name,"data-cy":`${t.action}-blocklet`,onClick:()=>ne(t),disabled:!!t.disabled||A,children:[C===t.action&&A?n.jsx(se,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{}),n.jsx("span",{className:"blocklet-action-text",children:t.name})]},t.name))}),m&&n.jsx(oe,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]})}Z.propTypes={getComponentUrl:j.func,blocklet:j.object.isRequired,onStart:j.func.isRequired,onComplete:j.func.isRequired,variant:j.oneOf(["menu","group"]),hasPermission:j.bool,useBlockletUrlEvaluation:j.func};Z.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const me=Ye.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
|
|
5
|
-
@media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
|
|
6
|
-
.MuiButton-root {
|
|
7
|
-
padding: 4px;
|
|
8
|
-
font-size: 10px;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
`;function Sn({...e}){const{locale:r}=v.useContext(pe),o=dt(Z,"mutate_blocklets"),c=({mountPoint:s,blocklet:u})=>mt({blocklet:u,mountPoint:s,params:pt(u,r)});return n.jsx(o,{...e,getComponentUrl:c,useBlockletUrlEvaluation:_t})}export{Sn as B,ve as D,V as R,Lt as _,ge as a,S as b,he as c,ye as d,xe as e,_n as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{av as a}from"./index-DtSAlyAb.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t}from"./index-DtSAlyAb.js";const e=t.createContext({});function r(){return t.useContext(e)}export{e as B,r as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r}from"./index-DtSAlyAb.js";function a(t){return r.Children.toArray(t).filter(e=>r.isValidElement(e))}export{a as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as m,f as l,M as s,j as o,P as a}from"./index-DtSAlyAb.js";import{T as c,M as n,t as u}from"./table-icons-BL8xSB3P.js";import"./FilterList-gGx11q-p.js";import"./Select-BHyxLJXO.js";import"./Delete-BuQlLthh.js";import"./InputLabel-CfRvg3E0.js";import"./TextField-DsYRZFfL.js";import"./LastPage-BkIsmfi2.js";import"./slicedToArray-BjdTUeMu.js";import"./Search-Co3tOmY1.js";import"./actions-DCJ-sSPn.js";import"./useLocalStorage-xuSREX68.js";import"./MoreVert-Cw5JqD-n.js";import"./ButtonGroup-BE_QoGeC.js";import"./getValidReactChildren-CYcUTCCR.js";import"./url-evaluation-Ddzyc50Z.js";import"./tag-BcsNyCIC.js";import"./ChevronLeft-LgQFTPg9.js";import"./Edit-D2R20RFt.js";import"./ChevronRight-R1AD6T8t.js";import"./DeleteOutline-CfWsbc1a.js";import"./redux-CW-2wISG.js";import"./Skeleton-FWWrVymY.js";import"./InputAdornment-BPwm2dnh.js";import"./index-Do9FcEok.js";import"./memoize-one.esm-BdPwpGay.js";import"./Add-BhAOgw8n.js";import"./ArrowDropDown-BhDZI_jd.js";function d({blocklet:i,...r}){const{t}=m.useContext(l),e=s.getBlockletServices(i);if(e.length===0)return o.jsx("div",{children:t("blocklet.noService")});const p=[{title:t("common.name"),field:"name"},{title:t("common.protocol"),field:"protocol"},{title:t("common.port"),field:"port"},{title:t("blocklet.upstreamPort"),field:"upstreamPort"}];return o.jsx(c,{...r,children:o.jsx(n,{columns:p,icons:{...u},options:{sorting:!1,emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",search:!1,pageSize:1e3,pageSizeOptions:[1e3]},localization:{body:{emptyDataSourceMessage:t("blocklet.noService")}},data:e})})}d.propTypes={blocklet:a.object.isRequired};export{d as default};
|