-
Notifications
You must be signed in to change notification settings - Fork 0
/
service-worker.js
3 lines (3 loc) · 60.6 KB
/
service-worker.js
1
2
3
/*! For license information please see service-worker.js.LICENSE.txt */
!function(){"use strict";var e={900:function(){try{self["workbox:cacheable-response:6.5.2"]&&_()}catch(e){}},923:function(){try{self["workbox:core:6.5.2"]&&_()}catch(e){}},190:function(){try{self["workbox:expiration:6.5.2"]&&_()}catch(e){}},437:function(){try{self["workbox:precaching:6.5.2"]&&_()}catch(e){}},748:function(){try{self["workbox:recipes:6.5.2"]&&_()}catch(e){}},185:function(){try{self["workbox:routing:6.5.2"]&&_()}catch(e){}},833:function(){try{self["workbox:strategies:6.5.2"]&&_()}catch(e){}}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){t=function(){return r};var r={},n=Object.prototype,a=n.hasOwnProperty,s="function"==typeof Symbol?Symbol:{},i=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",o=s.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(O){u=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,s=Object.create(a.prototype),i=new E(n||[]);return s._invoke=function(e,t,r){var n="suspendedStart";return function(a,s){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw s;return C()}for(r.method=a,r.arg=s;;){var i=r.delegate;if(i){var c=k(i,r);if(c){if(c===l)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var o=f(e,t,r);if("normal"===o.type){if(n=r.done?"completed":"suspendedYield",o.arg===l)continue;return{value:o.arg,done:r.done}}"throw"===o.type&&(n="completed",r.method="throw",r.arg=o.arg)}}}(e,r,i),s}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}r.wrap=h;var l={};function p(){}function v(){}function d(){}var y={};u(y,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==n&&a.call(b,i)&&(y=b);var m=d.prototype=p.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(t,r){function n(s,i,c,o){var u=f(t[s],t,i);if("throw"!==u.type){var h=u.arg,l=h.value;return l&&"object"==e(l)&&a.call(l,"__await")?r.resolve(l.__await).then((function(e){n("next",e,c,o)}),(function(e){n("throw",e,c,o)})):r.resolve(l).then((function(e){h.value=e,c(h)}),(function(e){return n("throw",e,c,o)}))}o(u.arg)}var s;this._invoke=function(e,t){function a(){return new r((function(r,a){n(e,t,r,a)}))}return s=s?s.then(a,a):a()}}function k(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,l;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(a.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:C}}function C(){return{value:void 0,done:!0}}return v.prototype=d,u(m,"constructor",d),u(d,"constructor",v),v.displayName=u(d,o,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,o,"GeneratorFunction")),e.prototype=Object.create(m),e},r.awrap=function(e){return{__await:e}},x(w.prototype),u(w.prototype,c,(function(){return this})),r.AsyncIterator=w,r.async=function(e,t,n,a,s){void 0===s&&(s=Promise);var i=new w(h(e,t,n,a),s);return r.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(m),u(m,o,"Generator"),u(m,i,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=L,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(R),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var s=this.tryEntries[n],i=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var c=a.call(s,"catchLoc"),o=a.call(s,"finallyLoc");if(c&&o){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!o)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var s=n;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var i=s?s.completion:{};return i.type=e,i.arg=t,s?(this.method="next",this.next=s.finallyLoc,l):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),R(r),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;R(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},r}function n(e,t,r,n,a,s,i){try{var c=e[s](i),o=c.value}catch(u){return void r(u)}c.done?t(o):Promise.resolve(o).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(a,s){var i=e.apply(t,r);function c(e){n(i,a,s,c,o,"next",e)}function o(e){n(i,a,s,c,o,"throw",e)}c(void 0)}))}}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function l(t,r){if(r&&("object"===e(r)||"function"===typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function p(e){var t=f();return function(){var r,n=h(e);if(t){var a=h(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function v(e,t,r){return v=f()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return r&&o(a,r.prototype),a},v.apply(null,arguments)}function d(e){var t="function"===typeof Map?new Map:void 0;return d=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return v(e,arguments,h(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),o(n,e)},d(e)}r(923);var y=function(e){for(var t=e,r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return n.length>0&&(t+=" :: ".concat(JSON.stringify(n))),t},g=function(e){u(r,e);var t=p(r);function r(e,n){var a;c(this,r);var s=y(e,n);return(a=t.call(this,s)).name=e,a.details=n,a}return i(r)}(d(Error)),b=function(e){return new URL(String(e),location.href).href.replace(new RegExp("^".concat(location.origin)),"")},m=null,x=(r(900),function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this._statuses=t.statuses,this._headers=t.headers}return i(e,[{key:"isResponseCacheable",value:function(e){var t=this;var r=!0;return this._statuses&&(r=this._statuses.includes(e.status)),this._headers&&r&&(r=Object.keys(this._headers).some((function(r){return e.headers.get(r)===t._headers[r]}))),r}}]),e}()),w=i((function e(r){var n=this;c(this,e),this.cacheWillUpdate=function(){var e=a(t().mark((function e(r){var a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=r.response,!n._cacheableResponse.isResponseCacheable(a)){e.next=3;break}return e.abrupt("return",a);case 3:return e.abrupt("return",null);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._cacheableResponse=new x(r)})),k=new Set;function _(e){k.add(e)}var R,E={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!==typeof registration?registration.scope:""},L=function(e){return[E.prefix,e,E.suffix].filter((function(e){return e&&e.length>0})).join("-")},C=function(e){return e||L(E.precache)},O=function(e){return e||L(E.runtime)};function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function T(e,t){if(e){if("string"===typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}function q(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=T(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,s=e},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw s}}}}function S(e,t){var r,n=new URL(e),a=q(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;n.searchParams.delete(s)}}catch(i){a.e(i)}finally{a.f()}return n.href}function U(e,t,r,n){return N.apply(this,arguments)}function N(){return(N=a(t().mark((function e(r,n,a,s){var i,c,o,u,h,f,l;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=S(n.url,a),n.url!==i){e.next=3;break}return e.abrupt("return",r.match(n,s));case 3:return c=Object.assign(Object.assign({},s),{ignoreSearch:!0}),e.next=6,r.keys(n,c);case 6:o=e.sent,u=q(o),e.prev=8,u.s();case 10:if((h=u.n()).done){e.next=17;break}if(f=h.value,l=S(f.url,a),i!==l){e.next=15;break}return e.abrupt("return",r.match(f,s));case 15:e.next=10;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(8),u.e(e.t0);case 22:return e.prev=22,u.f(),e.finish(22);case 25:return e.abrupt("return");case 26:case"end":return e.stop()}}),e,null,[[8,19,22,25]])})))).apply(this,arguments)}function D(){if(void 0===R){var e=new Response("");if("body"in e)try{new Response(e.body),R=!0}catch(t){R=!1}R=!1}return R}function j(e){e.then((function(){}))}var I=i((function e(){var t=this;c(this,e),this.promise=new Promise((function(e,r){t.resolve=e,t.reject=r}))}));function A(){return M.apply(this,arguments)}function M(){return(M=a(t().mark((function e(){var r,n,a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,r=q(k),e.prev=2,r.s();case 4:if((n=r.n()).done){e.next=11;break}return a=n.value,e.next=8,a();case 8:0;case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),r.e(e.t0);case 16:return e.prev=16,r.f(),e.finish(16);case 19:0;case 20:case"end":return e.stop()}}),e,null,[[2,13,16,19]])})))).apply(this,arguments)}function K(e){return new Promise((function(t){return setTimeout(t,e)}))}function W(e,t){var r=t();return e.waitUntil(r),r}function B(e,t){return F.apply(this,arguments)}function F(){return(F=a(t().mark((function e(r,n){var a,s,i,c,o,u;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=null,r.url&&(s=new URL(r.url),a=s.origin),a===self.location.origin){e.next=4;break}throw new g("cross-origin-copy-response",{origin:a});case 4:if(i=r.clone(),c={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},o=n?n(c):c,!D()){e.next=11;break}e.t0=i.body,e.next=14;break;case 11:return e.next=13,i.blob();case 13:e.t0=e.sent;case 14:return u=e.t0,e.abrupt("return",new Response(u,o));case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function H(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){H(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $,Y;var Q=new WeakMap,J=new WeakMap,z=new WeakMap,X=new WeakMap,Z=new WeakMap;var ee={get:function(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return J.get(e);if("objectStoreNames"===t)return e.objectStoreNames||z.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return ne(e[t])},set:function(e,t,r){return e[t]=r,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function te(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(Y||(Y=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(ae(this),r),ne(Q.get(this))}:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ne(e.apply(ae(this),r))}:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var s=e.call.apply(e,[ae(this),t].concat(n));return z.set(s,t.sort?t.sort():[t]),ne(s)}}function re(e){return"function"===typeof e?te(e):(e instanceof IDBTransaction&&function(e){if(!J.has(e)){var t=new Promise((function(t,r){var n=function(){e.removeEventListener("complete",a),e.removeEventListener("error",s),e.removeEventListener("abort",s)},a=function(){t(),n()},s=function(){r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",s),e.addEventListener("abort",s)}));J.set(e,t)}}(e),t=e,($||($=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((function(e){return t instanceof e}))?new Proxy(e,ee):e);var t}function ne(e){if(e instanceof IDBRequest)return function(e){var t=new Promise((function(t,r){var n=function(){e.removeEventListener("success",a),e.removeEventListener("error",s)},a=function(){t(ne(e.result)),n()},s=function(){r(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",s)}));return t.then((function(t){t instanceof IDBCursor&&Q.set(t,e)})).catch((function(){})),Z.set(t,e),t}(e);if(X.has(e))return X.get(e);var t=re(e);return t!==e&&(X.set(e,t),Z.set(t,e)),t}var ae=function(e){return Z.get(e)};function se(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.blocked,a=r.upgrade,s=r.blocking,i=r.terminated,c=indexedDB.open(e,t),o=ne(c);return a&&c.addEventListener("upgradeneeded",(function(e){a(ne(c.result),e.oldVersion,e.newVersion,ne(c.transaction))})),n&&c.addEventListener("blocked",(function(){return n()})),o.then((function(e){i&&e.addEventListener("close",(function(){return i()})),s&&e.addEventListener("versionchange",(function(){return s()}))})).catch((function(){})),o}var ie=["get","getKey","getAll","getAllKeys","count"],ce=["put","add","delete","clear"],oe=new Map;function ue(e,r){if(e instanceof IDBDatabase&&!(r in e)&&"string"===typeof r){if(oe.get(r))return oe.get(r);var n=r.replace(/FromIndex$/,""),s=r!==n,i=ce.includes(n);if(n in(s?IDBIndex:IDBObjectStore).prototype&&(i||ie.includes(n))){var c=function(){var e=a(t().mark((function e(r){var a,c,o,u,h,f,l=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(c=this.transaction(r,i?"readwrite":"readonly"),o=c.store,u=l.length,h=new Array(u>1?u-1:0),f=1;f<u;f++)h[f-1]=l[f];return s&&(o=o.index(h.shift())),e.next=6,Promise.all([(a=o)[n].apply(a,h),i&&c.done]);case 6:return e.abrupt("return",e.sent[0]);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();return oe.set(r,c),c}}}ee=function(e){return V(V({},e),{},{get:function(t,r,n){return ue(t,r)||e.get(t,r,n)},has:function(t,r){return!!ue(t,r)||e.has(t,r)}})}(ee);r(190);var he="cache-entries",fe=function(e){var t=new URL(e,location.href);return t.hash="",t.href},le=function(){function e(t){c(this,e),this._db=null,this._cacheName=t}return i(e,[{key:"_upgradeDb",value:function(e){var t=e.createObjectStore(he,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}},{key:"_upgradeDbAndDeleteOldDbs",value:function(e){this._upgradeDb(e),this._cacheName&&function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).blocked,r=indexedDB.deleteDatabase(e);t&&r.addEventListener("blocked",(function(){return t()})),ne(r).then((function(){}))}(this._cacheName)}},{key:"setTimestamp",value:function(){var e=a(t().mark((function e(r,n){var a,s,i;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=fe(r),a={url:r,timestamp:n,cacheName:this._cacheName,id:this._getId(r)},e.next=4,this.getDb();case 4:return s=e.sent,i=s.transaction(he,"readwrite",{durability:"relaxed"}),e.next=8,i.store.put(a);case 8:return e.next=10,i.done;case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getTimestamp",value:function(){var e=a(t().mark((function e(r){var n,a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getDb();case 2:return n=e.sent,e.next=5,n.get(he,this._getId(r));case 5:return a=e.sent,e.abrupt("return",null===a||void 0===a?void 0:a.timestamp);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"expireEntries",value:function(){var e=a(t().mark((function e(r,n){var a,s,i,c,o,u,h,f,l;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getDb();case 2:return a=e.sent,e.next=5,a.transaction(he).store.index("timestamp").openCursor(null,"prev");case 5:s=e.sent,i=[],c=0;case 8:if(!s){e.next=16;break}return(o=s.value).cacheName===this._cacheName&&(r&&o.timestamp<r||n&&c>=n?i.push(s.value):c++),e.next=13,s.continue();case 13:s=e.sent,e.next=8;break;case 16:u=[],h=0,f=i;case 18:if(!(h<f.length)){e.next=26;break}return l=f[h],e.next=22,a.delete(he,l.id);case 22:u.push(l.url);case 23:h++,e.next=18;break;case 26:return e.abrupt("return",u);case 27:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_getId",value:function(e){return this._cacheName+"|"+fe(e)}},{key:"getDb",value:function(){var e=a(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._db){e.next=4;break}return e.next=3,se("workbox-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)});case 3:this._db=e.sent;case 4:return e.abrupt("return",this._db);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),pe=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=r.maxEntries,this._maxAgeSeconds=r.maxAgeSeconds,this._matchOptions=r.matchOptions,this._cacheName=t,this._timestampModel=new le(t)}return i(e,[{key:"expireEntries",value:function(){var e=a(t().mark((function e(){var r,n,a,s,i,c;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isRunning){e.next=3;break}return this._rerunRequested=!0,e.abrupt("return");case 3:return this._isRunning=!0,r=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,e.next=7,this._timestampModel.expireEntries(r,this._maxEntries);case 7:return n=e.sent,e.next=10,self.caches.open(this._cacheName);case 10:a=e.sent,s=q(n),e.prev=12,s.s();case 14:if((i=s.n()).done){e.next=20;break}return c=i.value,e.next=18,a.delete(c,this._matchOptions);case 18:e.next=14;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(12),s.e(e.t0);case 25:return e.prev=25,s.f(),e.finish(25);case 28:0,this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,j(this.expireEntries()));case 31:case"end":return e.stop()}}),e,this,[[12,22,25,28]])})));return function(){return e.apply(this,arguments)}}()},{key:"updateTimestamp",value:function(){var e=a(t().mark((function e(r){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,this._timestampModel.setTimestamp(r,Date.now());case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"isURLExpired",value:function(){var e=a(t().mark((function e(r){var n,a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._maxAgeSeconds){e.next=6;break}e.next=3;break;case 3:return e.abrupt("return",!1);case 6:return e.next=8,this._timestampModel.getTimestamp(r);case 8:return n=e.sent,a=Date.now()-1e3*this._maxAgeSeconds,e.abrupt("return",void 0===n||n<a);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=a(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._rerunRequested=!1,e.next=3,this._timestampModel.expireEntries(1/0);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,s=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(s.push(n.value),!t||s.length!==t);i=!0);}catch(o){c=!0,a=o}finally{try{i||null==r.return||r.return()}finally{if(c)throw a}}return s}}(e,t)||T(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var de=function(){function e(){var r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.cachedResponseWillBeUsed=function(){var e=a(t().mark((function e(n){var a,s,i,c,o,u,h;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.event,s=n.request,i=n.cacheName,c=n.cachedResponse){e.next=3;break}return e.abrupt("return",null);case 3:if(o=r._isResponseDateFresh(c),j((u=r._getCacheExpiration(i)).expireEntries()),h=u.updateTimestamp(s.url),a)try{a.waitUntil(h)}catch(t){0}return e.abrupt("return",o?c:null);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.cacheDidUpdate=function(){var e=a(t().mark((function e(n){var a,s,i;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.cacheName,s=n.request,i=r._getCacheExpiration(a),e.next=5,i.updateTimestamp(s.url);case 5:return e.next=7,i.expireEntries();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._config=n,this._maxAgeSeconds=n.maxAgeSeconds,this._cacheExpirations=new Map,n.purgeOnQuotaError&&_((function(){return r.deleteCacheAndMetadata()}))}return i(e,[{key:"_getCacheExpiration",value:function(e){if(e===O())throw new g("expire-custom-caches-only");var t=this._cacheExpirations.get(e);return t||(t=new pe(e,this._config),this._cacheExpirations.set(e,t)),t}},{key:"_isResponseDateFresh",value:function(e){if(!this._maxAgeSeconds)return!0;var t=this._getDateHeaderTimestamp(e);return null===t||t>=Date.now()-1e3*this._maxAgeSeconds}},{key:"_getDateHeaderTimestamp",value:function(e){if(!e.headers.has("date"))return null;var t=e.headers.get("date"),r=new Date(t).getTime();return isNaN(r)?null:r}},{key:"deleteCacheAndMetadata",value:function(){var e=a(t().mark((function e(){var r,n,a,s,i;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=q(this._cacheExpirations),e.prev=1,r.s();case 3:if((n=r.n()).done){e.next=11;break}return a=ve(n.value,2),s=a[0],i=a[1],e.next=7,self.caches.delete(s);case 7:return e.next=9,i.delete();case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),r.e(e.t0);case 16:return e.prev=16,r.f(),e.finish(16);case 19:this._cacheExpirations=new Map;case 20:case"end":return e.stop()}}),e,this,[[1,13,16,19]])})));return function(){return e.apply(this,arguments)}}()}]),e}();function ye(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||T(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r(437);function ge(e){if(!e)throw new g("add-to-cache-list-unexpected-type",{entry:e});if("string"===typeof e)return{cacheKey:(t=new URL(e,location.href)).href,url:t.href};var t,r=e.revision,n=e.url;if(!n)throw new g("add-to-cache-list-unexpected-type",{entry:e});if(!r)return{cacheKey:(t=new URL(n,location.href)).href,url:t.href};var a=new URL(n,location.href),s=new URL(n,location.href);return a.searchParams.set("__WB_REVISION__",r),{cacheKey:a.href,url:s.href}}var be=i((function e(){var r=this;c(this,e),this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=function(){var e=a(t().mark((function e(r){var n,a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.request,(a=r.state)&&(a.originalRequest=n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.cachedResponseWillBeUsed=function(){var e=a(t().mark((function e(n){var a,s,i,c;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.event,s=n.state,i=n.cachedResponse,"install"===a.type&&s&&s.originalRequest&&s.originalRequest instanceof Request&&(c=s.originalRequest.url,i?r.notUpdatedURLs.push(c):r.updatedURLs.push(c)),e.abrupt("return",i);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),me=i((function e(r){var n=this,s=r.precacheController;c(this,e),this.cacheKeyWillBeUsed=function(){var e=a(t().mark((function e(r){var a,s,i;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=r.request,s=r.params,i=(null===s||void 0===s?void 0:s.cacheKey)||n._precacheController.getCacheKeyForURL(a.url),e.abrupt("return",i?new Request(i,{headers:a.headers}):a);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._precacheController=s}));r(833);function xe(e){return"string"===typeof e?new Request(e):e}var we=function(){function e(t,r){c(this,e),this._cacheKeys={},Object.assign(this,r),this.event=r.event,this._strategy=t,this._handlerDeferred=new I,this._extendLifetimePromises=[],this._plugins=ye(t.plugins),this._pluginStateMap=new Map;var n,a=q(this._plugins);try{for(a.s();!(n=a.n()).done;){var s=n.value;this._pluginStateMap.set(s,{})}}catch(i){a.e(i)}finally{a.f()}this.event.waitUntil(this._handlerDeferred.promise)}return i(e,[{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=a(t().mark((function e(r){var n,a,s,i,c,o,u,h,f,l,p,v;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.event,!("navigate"===(a=xe(r)).mode&&n instanceof FetchEvent&&n.preloadResponse)){e.next=9;break}return e.next=5,n.preloadResponse;case 5:if(!(s=e.sent)){e.next=9;break}return e.abrupt("return",s);case 9:i=this.hasCallback("fetchDidFail")?a.clone():null,e.prev=10,c=q(this.iterateCallbacks("requestWillFetch")),e.prev=12,c.s();case 14:if((o=c.n()).done){e.next=21;break}return u=o.value,e.next=18,u({request:a.clone(),event:n});case 18:a=e.sent;case 19:e.next=14;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(12),c.e(e.t0);case 26:return e.prev=26,c.f(),e.finish(26);case 29:e.next=35;break;case 31:if(e.prev=31,e.t1=e.catch(10),!(e.t1 instanceof Error)){e.next=35;break}throw new g("plugin-error-request-will-fetch",{thrownErrorMessage:e.t1.message});case 35:return h=a.clone(),e.prev=36,e.next=39,fetch(a,"navigate"===a.mode?void 0:this._strategy.fetchOptions);case 39:f=e.sent,l=q(this.iterateCallbacks("fetchDidSucceed")),e.prev=42,l.s();case 44:if((p=l.n()).done){e.next=51;break}return v=p.value,e.next=48,v({event:n,request:h,response:f});case 48:f=e.sent;case 49:e.next=44;break;case 51:e.next=56;break;case 53:e.prev=53,e.t2=e.catch(42),l.e(e.t2);case 56:return e.prev=56,l.f(),e.finish(56);case 59:return e.abrupt("return",f);case 62:if(e.prev=62,e.t3=e.catch(36),!i){e.next=68;break}return e.next=68,this.runCallbacks("fetchDidFail",{error:e.t3,event:n,originalRequest:i.clone(),request:h.clone()});case 68:throw e.t3;case 69:case"end":return e.stop()}}),e,this,[[10,31],[12,23,26,29],[36,62],[42,53,56,59]])})));return function(t){return e.apply(this,arguments)}}())},{key:"fetchAndCachePut",value:function(){var e=a(t().mark((function e(r){var n,a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetch(r);case 2:return n=e.sent,a=n.clone(),this.waitUntil(this.cachePut(r,a)),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"cacheMatch",value:function(){var e=a(t().mark((function e(r){var n,a,s,i,c,o,u,h,f,l;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=xe(r),s=this._strategy,i=s.cacheName,c=s.matchOptions,e.next=4,this.getCacheKey(n,"read");case 4:return o=e.sent,u=Object.assign(Object.assign({},c),{cacheName:i}),e.next=8,caches.match(o,u);case 8:a=e.sent,h=q(this.iterateCallbacks("cachedResponseWillBeUsed")),e.prev=11,h.s();case 13:if((f=h.n()).done){e.next=23;break}return l=f.value,e.next=17,l({cacheName:i,matchOptions:c,cachedResponse:a,request:o,event:this.event});case 17:if(e.t0=e.sent,e.t0){e.next=20;break}e.t0=void 0;case 20:a=e.t0;case 21:e.next=13;break;case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(11),h.e(e.t1);case 28:return e.prev=28,h.f(),e.finish(28);case 31:return e.abrupt("return",a);case 32:case"end":return e.stop()}}),e,this,[[11,25,28,31]])})));return function(t){return e.apply(this,arguments)}}()},{key:"cachePut",value:function(){var e=a(t().mark((function e(r,n){var a,s,i,c,o,u,h,f,l,p,v,d,y;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=xe(r),e.next=3,K(0);case 3:return e.next=5,this.getCacheKey(a,"write");case 5:s=e.sent,e.next=11;break;case 9:(i=n.headers.get("Vary"))&&m.debug("The response for ".concat(b(s.url)," ")+"has a 'Vary: ".concat(i,"' header. ")+"Consider setting the {ignoreVary: true} option on your strategy to ensure cache matching and deletion works as expected.");case 11:if(n){e.next=14;break}throw new g("cache-put-with-no-response",{url:b(s.url)});case 14:return e.next=16,this._ensureResponseSafeToCache(n);case 16:if(c=e.sent){e.next=20;break}return e.abrupt("return",!1);case 20:return o=this._strategy,u=o.cacheName,h=o.matchOptions,e.next=23,self.caches.open(u);case 23:if(f=e.sent,!(l=this.hasCallback("cacheDidUpdate"))){e.next=31;break}return e.next=28,U(f,s.clone(),["__WB_REVISION__"],h);case 28:e.t0=e.sent,e.next=32;break;case 31:e.t0=null;case 32:return p=e.t0,e.prev=34,e.next=37,f.put(s,l?c.clone():c);case 37:e.next=46;break;case 39:if(e.prev=39,e.t1=e.catch(34),!(e.t1 instanceof Error)){e.next=46;break}if("QuotaExceededError"!==e.t1.name){e.next=45;break}return e.next=45,A();case 45:throw e.t1;case 46:v=q(this.iterateCallbacks("cacheDidUpdate")),e.prev=47,v.s();case 49:if((d=v.n()).done){e.next=55;break}return y=d.value,e.next=53,y({cacheName:u,oldResponse:p,newResponse:c.clone(),request:s,event:this.event});case 53:e.next=49;break;case 55:e.next=60;break;case 57:e.prev=57,e.t2=e.catch(47),v.e(e.t2);case 60:return e.prev=60,v.f(),e.finish(60);case 63:return e.abrupt("return",!0);case 64:case"end":return e.stop()}}),e,this,[[34,39],[47,57,60,63]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getCacheKey",value:function(){var e=a(t().mark((function e(r,n){var a,s,i,c,o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a="".concat(r.url," | ").concat(n),this._cacheKeys[a]){e.next=24;break}s=r,i=q(this.iterateCallbacks("cacheKeyWillBeUsed")),e.prev=4,i.s();case 6:if((c=i.n()).done){e.next=15;break}return o=c.value,e.t0=xe,e.next=11,o({mode:n,request:s,event:this.event,params:this.params});case 11:e.t1=e.sent,s=(0,e.t0)(e.t1);case 13:e.next=6;break;case 15:e.next=20;break;case 17:e.prev=17,e.t2=e.catch(4),i.e(e.t2);case 20:return e.prev=20,i.f(),e.finish(20);case 23:this._cacheKeys[a]=s;case 24:return e.abrupt("return",this._cacheKeys[a]);case 25:case"end":return e.stop()}}),e,this,[[4,17,20,23]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"hasCallback",value:function(e){var t,r=q(this._strategy.plugins);try{for(r.s();!(t=r.n()).done;){if(e in t.value)return!0}}catch(n){r.e(n)}finally{r.f()}return!1}},{key:"runCallbacks",value:function(){var e=a(t().mark((function e(r,n){var a,s,i;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=q(this.iterateCallbacks(r)),e.prev=1,a.s();case 3:if((s=a.n()).done){e.next=9;break}return i=s.value,e.next=7,i(n);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),a.e(e.t0);case 14:return e.prev=14,a.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"iterateCallbacks",value:t().mark((function e(r){var n,a,s,i=this;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=q(this._strategy.plugins),e.prev=1,s=t().mark((function e(){var n,s,c;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof(n=a.value)[r]){e.next=6;break}return s=i._pluginStateMap.get(n),c=function(e){var t=Object.assign(Object.assign({},e),{state:s});return n[r](t)},e.next=6,c;case 6:case"end":return e.stop()}}),e)})),n.s();case 4:if((a=n.n()).done){e.next=8;break}return e.delegateYield(s(),"t0",6);case 6:e.next=4;break;case 8:e.next=13;break;case 10:e.prev=10,e.t1=e.catch(1),n.e(e.t1);case 13:return e.prev=13,n.f(),e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,10,13,16]])}))},{key:"waitUntil",value:function(e){return this._extendLifetimePromises.push(e),e}},{key:"doneWaiting",value:function(){var e=a(t().mark((function e(){var r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this._extendLifetimePromises.shift())){e.next=5;break}return e.next=3,r;case 3:e.next=0;break;case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"destroy",value:function(){this._handlerDeferred.resolve(null)}},{key:"_ensureResponseSafeToCache",value:function(){var e=a(t().mark((function e(r){var n,a,s,i,c;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r,a=!1,s=q(this.iterateCallbacks("cacheWillUpdate")),e.prev=3,s.s();case 5:if((i=s.n()).done){e.next=18;break}return c=i.value,e.next=9,c({request:this.request,response:n,event:this.event});case 9:if(e.t0=e.sent,e.t0){e.next=12;break}e.t0=void 0;case 12:if(n=e.t0,a=!0,n){e.next=16;break}return e.abrupt("break",18);case 16:e.next=5;break;case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(3),s.e(e.t1);case 23:return e.prev=23,s.f(),e.finish(23);case 26:return a||n&&200!==n.status&&(n=void 0),e.abrupt("return",n);case 28:case"end":return e.stop()}}),e,this,[[3,20,23,26]])})));return function(t){return e.apply(this,arguments)}}()}]),e}(),ke=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.cacheName=O(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}return i(e,[{key:"handle",value:function(e){return ve(this.handleAll(e),1)[0]}},{key:"handleAll",value:function(e){e instanceof FetchEvent&&(e={event:e,request:e.request});var t=e.event,r="string"===typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new we(this,{event:t,request:r,params:n}),s=this._getResponse(a,r,t);return[s,this._awaitComplete(s,a,r,t)]}},{key:"_getResponse",value:function(){var e=a(t().mark((function e(r,n,a){var s,i,c,o,u,h,f;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.runCallbacks("handlerWillStart",{event:a,request:n});case 2:return s=void 0,e.prev=3,e.next=6,this._handle(n,r);case 6:if((s=e.sent)&&"error"!==s.type){e.next=9;break}throw new g("no-response",{url:n.url});case 9:e.next=39;break;case 11:if(e.prev=11,e.t0=e.catch(3),!(e.t0 instanceof Error)){e.next=34;break}i=q(r.iterateCallbacks("handlerDidError")),e.prev=15,i.s();case 17:if((c=i.n()).done){e.next=26;break}return o=c.value,e.next=21,o({error:e.t0,event:a,request:n});case 21:if(!(s=e.sent)){e.next=24;break}return e.abrupt("break",26);case 24:e.next=17;break;case 26:e.next=31;break;case 28:e.prev=28,e.t1=e.catch(15),i.e(e.t1);case 31:return e.prev=31,i.f(),e.finish(31);case 34:if(s){e.next=38;break}throw e.t0;case 38:0;case 39:u=q(r.iterateCallbacks("handlerWillRespond")),e.prev=40,u.s();case 42:if((h=u.n()).done){e.next=49;break}return f=h.value,e.next=46,f({event:a,request:n,response:s});case 46:s=e.sent;case 47:e.next=42;break;case 49:e.next=54;break;case 51:e.prev=51,e.t2=e.catch(40),u.e(e.t2);case 54:return e.prev=54,u.f(),e.finish(54);case 57:return e.abrupt("return",s);case 58:case"end":return e.stop()}}),e,this,[[3,11],[15,28,31,34],[40,51,54,57]])})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"_awaitComplete",value:function(){var e=a(t().mark((function e(r,n,a,s){var i,c;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r;case 3:i=e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:return e.prev=8,e.next=11,n.runCallbacks("handlerDidRespond",{event:s,request:a,response:i});case 11:return e.next=13,n.doneWaiting();case 13:e.next=18;break;case 15:e.prev=15,e.t1=e.catch(8),e.t1 instanceof Error&&(c=e.t1);case 18:return e.next=20,n.runCallbacks("handlerDidComplete",{event:s,request:a,response:i,error:c});case 20:if(n.destroy(),!c){e.next=23;break}throw c;case 23:case"end":return e.stop()}}),e,null,[[0,6],[8,15]])})));return function(t,r,n,a){return e.apply(this,arguments)}}()}]),e}(),_e=function(e){u(n,e);var r=p(n);function n(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(this,n),t.cacheName=C(t.cacheName),(e=r.call(this,t))._fallbackToNetwork=!1!==t.fallbackToNetwork,e.plugins.push(n.copyRedirectedCacheableResponsesPlugin),e}return i(n,[{key:"_handle",value:function(){var e=a(t().mark((function e(r,n){var a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.cacheMatch(r);case 2:if(!(a=e.sent)){e.next=5;break}return e.abrupt("return",a);case 5:if(!n.event||"install"!==n.event.type){e.next=9;break}return e.next=8,this._handleInstall(r,n);case 8:case 11:return e.abrupt("return",e.sent);case 9:return e.next=11,this._handleFetch(r,n);case 12:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_handleFetch",value:function(){var e=a(t().mark((function e(r,n){var a,s,i,c,o,u;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=n.params||{},!this._fallbackToNetwork){e.next=17;break}return i=s.integrity,c=r.integrity,o=!c||c===i,e.next=8,n.fetch(new Request(r,{integrity:c||i}));case 8:if(a=e.sent,!i||!o){e.next=15;break}return this._useDefaultCacheabilityPluginIfNeeded(),e.next=13,n.cachePut(r,a.clone());case 13:e.sent;case 15:e.next=18;break;case 17:throw new g("missing-precache-entry",{cacheName:this.cacheName,url:r.url});case 18:e.next=34;break;case 23:e.t0=e.sent;case 24:u=e.t0,m.groupCollapsed("Precaching is responding to: "+b(r.url)),m.log("Serving the precached url: ".concat(b(u instanceof Request?u.url:u))),m.groupCollapsed("View request details here."),m.log(r),m.groupEnd(),m.groupCollapsed("View response details here."),m.log(a),m.groupEnd(),m.groupEnd();case 34:return e.abrupt("return",a);case 35:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_handleInstall",value:function(){var e=a(t().mark((function e(r,n){var a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._useDefaultCacheabilityPluginIfNeeded(),e.next=3,n.fetch(r);case 3:return a=e.sent,e.next=6,n.cachePut(r,a.clone());case 6:if(e.sent){e.next=9;break}throw new g("bad-precaching-response",{url:r.url,status:a.status});case 9:return e.abrupt("return",a);case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_useDefaultCacheabilityPluginIfNeeded",value:function(){var e,t=null,r=0,a=q(this.plugins.entries());try{for(a.s();!(e=a.n()).done;){var s=ve(e.value,2),i=s[0],c=s[1];c!==n.copyRedirectedCacheableResponsesPlugin&&(c===n.defaultPrecacheCacheabilityPlugin&&(t=i),c.cacheWillUpdate&&r++)}}catch(o){a.e(o)}finally{a.f()}0===r?this.plugins.push(n.defaultPrecacheCacheabilityPlugin):r>1&&null!==t&&this.plugins.splice(t,1)}}]),n}(ke);_e.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:function(e){return a(t().mark((function r(){var n;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=e.response)&&!(n.status>=400)){t.next=3;break}return t.abrupt("return",null);case 3:return t.abrupt("return",n);case 4:case"end":return t.stop()}}),r)})))()}},_e.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:function(e){return a(t().mark((function r(){var n;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e.response).redirected){t.next=7;break}return t.next=4,B(n);case 4:t.t0=t.sent,t.next=8;break;case 7:t.t0=n;case 8:return t.abrupt("return",t.t0);case 9:case"end":return t.stop()}}),r)})))()}};var Re,Ee=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.cacheName,n=t.plugins,a=void 0===n?[]:n,s=t.fallbackToNetwork,i=void 0===s||s;c(this,e),this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new _e({cacheName:C(r),plugins:[].concat(ye(a),[new me({precacheController:this})]),fallbackToNetwork:i}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}return i(e,[{key:"strategy",get:function(){return this._strategy}},{key:"precache",value:function(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}},{key:"addToCacheList",value:function(e){var t,r=[],n=q(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;"string"===typeof a?r.push(a):a&&void 0===a.revision&&r.push(a.url);var s=ge(a),i=s.cacheKey,c=s.url,o="string"!==typeof a&&a.revision?"reload":"default";if(this._urlsToCacheKeys.has(c)&&this._urlsToCacheKeys.get(c)!==i)throw new g("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(c),secondEntry:i});if("string"!==typeof a&&a.integrity){if(this._cacheKeysToIntegrities.has(i)&&this._cacheKeysToIntegrities.get(i)!==a.integrity)throw new g("add-to-cache-list-conflicting-integrities",{url:c});this._cacheKeysToIntegrities.set(i,a.integrity)}if(this._urlsToCacheKeys.set(c,i),this._urlsToCacheModes.set(c,o),r.length>0){var u="Workbox is precaching URLs without revision "+"info: ".concat(r.join(", "),"\nThis is generally NOT safe. ")+"Learn more at https://bit.ly/wb-precache";console.warn(u)}}}catch(h){n.e(h)}finally{n.f()}}},{key:"install",value:function(e){var r=this;return W(e,a(t().mark((function n(){var a,s,i,c,o,u,h,f,l,p,v;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=new be,r.strategy.plugins.push(a),s=q(r._urlsToCacheKeys),t.prev=3,s.s();case 5:if((i=s.n()).done){t.next=14;break}return c=ve(i.value,2),o=c[0],u=c[1],h=r._cacheKeysToIntegrities.get(u),f=r._urlsToCacheModes.get(o),l=new Request(o,{integrity:h,cache:f,credentials:"same-origin"}),t.next=12,Promise.all(r.strategy.handleAll({params:{cacheKey:u},request:l,event:e}));case 12:t.next=5;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(3),s.e(t.t0);case 19:return t.prev=19,s.f(),t.finish(19);case 22:return p=a.updatedURLs,v=a.notUpdatedURLs,t.abrupt("return",{updatedURLs:p,notUpdatedURLs:v});case 25:case"end":return t.stop()}}),n,null,[[3,16,19,22]])}))))}},{key:"activate",value:function(e){var r=this;return W(e,a(t().mark((function e(){var n,a,s,i,c,o,u;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,self.caches.open(r.strategy.cacheName);case 2:return n=e.sent,e.next=5,n.keys();case 5:a=e.sent,s=new Set(r._urlsToCacheKeys.values()),i=[],c=q(a),e.prev=9,c.s();case 11:if((o=c.n()).done){e.next=19;break}if(u=o.value,s.has(u.url)){e.next=17;break}return e.next=16,n.delete(u);case 16:i.push(u.url);case 17:e.next=11;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(9),c.e(e.t0);case 24:return e.prev=24,c.f(),e.finish(24);case 27:return e.abrupt("return",{deletedURLs:i});case 29:case"end":return e.stop()}}),e,null,[[9,21,24,27]])}))))}},{key:"getURLsToCacheKeys",value:function(){return this._urlsToCacheKeys}},{key:"getCachedURLs",value:function(){return ye(this._urlsToCacheKeys.keys())}},{key:"getCacheKeyForURL",value:function(e){var t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}},{key:"getIntegrityForCacheKey",value:function(e){return this._cacheKeysToIntegrities.get(e)}},{key:"matchPrecache",value:function(){var e=a(t().mark((function e(r){var n,a,s;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r instanceof Request?r.url:r,!(a=this.getCacheKeyForURL(n))){e.next=7;break}return e.next=5,self.caches.open(this.strategy.cacheName);case 5:return s=e.sent,e.abrupt("return",s.match(a));case 7:return e.abrupt("return",void 0);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"createHandlerBoundToURL",value:function(e){var t=this,r=this.getCacheKeyForURL(e);if(!r)throw new g("non-precached-url",{url:e});return function(n){return n.request=new Request(e),n.params=Object.assign({cacheKey:r},n.params),t.strategy.handle(n)}}}]),e}(),Le=function(){return Re||(Re=new Ee),Re};r(185);var Ce,Oe="GET",Pe=function(e){return e&&"object"===typeof e?e:{handle:e}},Te=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oe;c(this,e),this.handler=Pe(r),this.match=t,this.method=n}return i(e,[{key:"setCatchHandler",value:function(e){this.catchHandler=Pe(e)}}]),e}(),qe=function(e){u(r,e);var t=p(r);function r(e,n,a){c(this,r);return t.call(this,(function(t){var r=t.url,n=e.exec(r.href);if(n&&(r.origin===location.origin||0===n.index))return n.slice(1)}),n,a)}return i(r)}(Te),Se=function(){function e(){c(this,e),this._routes=new Map,this._defaultHandlerMap=new Map}return i(e,[{key:"routes",get:function(){return this._routes}},{key:"addFetchListener",value:function(){var e=this;self.addEventListener("fetch",(function(t){var r=t.request,n=e.handleRequest({request:r,event:t});n&&t.respondWith(n)}))}},{key:"addCacheListener",value:function(){var e=this;self.addEventListener("message",(function(t){if(t.data&&"CACHE_URLS"===t.data.type){var r=t.data.payload;0;var n=Promise.all(r.urlsToCache.map((function(r){"string"===typeof r&&(r=[r]);var n=v(Request,ye(r));return e.handleRequest({request:n,event:t})})));t.waitUntil(n),t.ports&&t.ports[0]&&n.then((function(){return t.ports[0].postMessage(!0)}))}}))}},{key:"handleRequest",value:function(e){var r=this,n=e.request,s=e.event;var i=new URL(n.url,location.href);if(i.protocol.startsWith("http")){var c=i.origin===location.origin,o=this.findMatchingRoute({event:s,request:n,sameOrigin:c,url:i}),u=o.params,h=o.route,f=h&&h.handler;0;var l=n.method;if(!f&&this._defaultHandlerMap.has(l)&&(f=this._defaultHandlerMap.get(l)),f){var p;0;try{p=f.handle({url:i,request:n,event:s,params:u})}catch(d){p=Promise.reject(d)}var v=h&&h.catchHandler;return p instanceof Promise&&(this._catchHandler||v)&&(p=p.catch(function(){var e=a(t().mark((function e(a){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!v){e.next=11;break}return e.prev=2,e.next=5,v.handle({url:i,request:n,event:s,params:u});case 5:return e.abrupt("return",e.sent);case 8:e.prev=8,e.t0=e.catch(2),e.t0 instanceof Error&&(a=e.t0);case 11:if(!r._catchHandler){e.next=14;break}return e.abrupt("return",r._catchHandler.handle({url:i,request:n,event:s}));case 14:throw a;case 15:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t){return e.apply(this,arguments)}}())),p}}}},{key:"findMatchingRoute",value:function(e){var t,r=e.url,n=e.sameOrigin,a=e.request,s=e.event,i=q(this._routes.get(a.method)||[]);try{for(i.s();!(t=i.n()).done;){var c=t.value,o=void 0,u=c.match({url:r,sameOrigin:n,request:a,event:s});if(u)return o=u,(Array.isArray(o)&&0===o.length||u.constructor===Object&&0===Object.keys(u).length||"boolean"===typeof u)&&(o=void 0),{route:c,params:o}}}catch(h){i.e(h)}finally{i.f()}return{}}},{key:"setDefaultHandler",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oe;this._defaultHandlerMap.set(t,Pe(e))}},{key:"setCatchHandler",value:function(e){this._catchHandler=Pe(e)}},{key:"registerRoute",value:function(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}},{key:"unregisterRoute",value:function(e){if(!this._routes.has(e.method))throw new g("unregister-route-but-not-found-with-method",{method:e.method});var t=this._routes.get(e.method).indexOf(e);if(!(t>-1))throw new g("unregister-route-route-not-registered");this._routes.get(e.method).splice(t,1)}}]),e}(),Ue=function(){return Ce||((Ce=new Se).addFetchListener(),Ce.addCacheListener()),Ce};function Ne(e,t,r){var n;if("string"===typeof e){var a=new URL(e,location.href);n=new Te((function(e){return e.url.href===a.href}),t,r)}else if(e instanceof RegExp)n=new qe(e,t,r);else if("function"===typeof e)n=new Te(e,t,r);else{if(!(e instanceof Te))throw new g("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});n=e}return Ue().registerRoute(n),n}function De(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function(){var r=a[n];t.some((function(e){return e.test(r)}))&&e.searchParams.delete(r)},n=0,a=ye(e.searchParams.keys());n<a.length;n++)r();return e}var je=t().mark(Ie);function Ie(e){var r,n,a,s,i,c,o,u,h,f,l,p,v,d,y,g,b=arguments;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=b.length>1&&void 0!==b[1]?b[1]:{},n=r.ignoreURLParametersMatching,a=void 0===n?[/^utm_/,/^fbclid$/]:n,s=r.directoryIndex,i=void 0===s?"index.html":s,c=r.cleanURLs,o=void 0===c||c,u=r.urlManipulation,(h=new URL(e,location.href)).hash="",t.next=5,h.href;case 5:return f=De(h,a),t.next=8,f.href;case 8:if(!i||!f.pathname.endsWith("/")){t.next=13;break}return(l=new URL(f.href)).pathname+=i,t.next=13,l.href;case 13:if(!o){t.next=18;break}return(p=new URL(f.href)).pathname+=".html",t.next=18,p.href;case 18:if(!u){t.next=37;break}v=u({url:h}),d=q(v),t.prev=21,d.s();case 23:if((y=d.n()).done){t.next=29;break}return g=y.value,t.next=27,g.href;case 27:t.next=23;break;case 29:t.next=34;break;case 31:t.prev=31,t.t0=t.catch(21),d.e(t.t0);case 34:return t.prev=34,d.f(),t.finish(34);case 37:case"end":return t.stop()}}),je,null,[[21,31,34,37]])}var Ae=function(e){u(r,e);var t=p(r);function r(e,n){c(this,r);return t.call(this,(function(t){var r,a=t.request,s=e.getURLsToCacheKeys(),i=q(Ie(a.url,n));try{for(i.s();!(r=i.n()).done;){var c=r.value,o=s.get(c);if(o)return{cacheKey:o,integrity:e.getIntegrityForCacheKey(o)}}}catch(u){i.e(u)}finally{i.f()}}),e.strategy)}return i(r)}(Te);var Me,Ke=function(e){u(n,e);var r=p(n);function n(){return c(this,n),r.apply(this,arguments)}return i(n,[{key:"_handle",value:function(){var e=a(t().mark((function e(r,n){var a,s;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return[],e.next=4,n.cacheMatch(r);case 4:if(a=e.sent,s=void 0,a){e.next=20;break}return e.prev=8,e.next=11,n.fetchAndCachePut(r);case 11:a=e.sent,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(8),e.t0 instanceof Error&&(s=e.t0);case 17:0,e.next=21;break;case 20:0;case 21:if(a){e.next=24;break}throw new g("no-response",{url:r.url,error:s});case 24:return e.abrupt("return",a);case 25:case"end":return e.stop()}}),e,this,[[8,14]])})));return function(t,r){return e.apply(this,arguments)}}()}]),n}(ke),We={cacheWillUpdate:function(){var e=a(t().mark((function e(r){var n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(200!==(n=r.response).status&&0!==n.status){e.next=3;break}return e.abrupt("return",n);case 3:return e.abrupt("return",null);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},Be=function(e){u(n,e);var r=p(n);function n(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(this,n),(e=r.call(this,t)).plugins.some((function(e){return"cacheWillUpdate"in e}))||e.plugins.unshift(We),e._networkTimeoutSeconds=t.networkTimeoutSeconds||0,e}return i(n,[{key:"_handle",value:function(){var e=a(t().mark((function e(r,n){var s,i,c,o,u,h,f,l;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=[],i=[],this._networkTimeoutSeconds&&(o=this._getTimeoutPromise({request:r,logs:s,handler:n}),u=o.id,h=o.promise,c=u,i.push(h)),f=this._getNetworkPromise({timeoutId:c,request:r,logs:s,handler:n}),i.push(f),e.next=8,n.waitUntil(a(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.waitUntil(Promise.race(i));case 2:if(e.t0=e.sent,e.t0){e.next=7;break}return e.next=6,f;case 6:e.t0=e.sent;case 7:return e.abrupt("return",e.t0);case 8:case"end":return e.stop()}}),e)})))());case 8:if(l=e.sent){e.next=12;break}throw new g("no-response",{url:r.url});case 12:return e.abrupt("return",l);case 13:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_getTimeoutPromise",value:function(e){var r,n=this,s=e.request,i=(e.logs,e.handler),c=new Promise((function(e){var c=function(){var r=a(t().mark((function r(){return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e,t.next=4,i.cacheMatch(s);case 4:t.t1=t.sent,(0,t.t0)(t.t1);case 6:case"end":return t.stop()}}),r)})));return function(){return r.apply(this,arguments)}}();r=setTimeout(c,1e3*n._networkTimeoutSeconds)}));return{promise:c,id:r}}},{key:"_getNetworkPromise",value:function(){var e=a(t().mark((function e(r){var n,a,s,i,c;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.timeoutId,a=r.request,r.logs,s=r.handler,e.prev=1,e.next=4,s.fetchAndCachePut(a);case 4:c=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),e.t0 instanceof Error&&(i=e.t0);case 10:if(n&&clearTimeout(n),!i&&c){e.next=17;break}return e.next=15,s.cacheMatch(a);case 15:c=e.sent;case 17:return e.abrupt("return",c);case 18:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(t){return e.apply(this,arguments)}}()}]),n}(ke),Fe=function(e){u(n,e);var r=p(n);function n(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(this,n),(e=r.call(this,t)).plugins.some((function(e){return"cacheWillUpdate"in e}))||e.plugins.unshift(We),e}return i(n,[{key:"_handle",value:function(){var e=a(t().mark((function e(r,n){var a,s,i;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return[],a=n.fetchAndCachePut(r).catch((function(){})),n.waitUntil(a),e.next=6,n.cacheMatch(r);case 6:if(!(s=e.sent)){e.next=11;break}0,e.next=21;break;case 11:return e.prev=12,e.next=15,a;case 15:s=e.sent,e.next=21;break;case 18:e.prev=18,e.t0=e.catch(12),e.t0 instanceof Error&&(i=e.t0);case 21:if(s){e.next=24;break}throw new g("no-response",{url:r.url,error:i});case 24:return e.abrupt("return",s);case 25:case"end":return e.stop()}}),e,this,[[12,18]])})));return function(t,r){return e.apply(this,arguments)}}()}]),n}(ke);r(748);function He(e){self.addEventListener("install",(function(t){var r=e.urls.map((function(r){return e.strategy.handleAll({event:t,request:new Request(r)})[1]}));t.waitUntil(Promise.all(r))}))}function Ge(e){return Ve.apply(this,arguments)}function Ve(){return(Ve=a(t().mark((function e(r){var n,a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.request,r._mode,(a=new URL(n.url||n)).searchParams.delete("s"),a.searchParams.delete("key"),e.abrupt("return",a.href);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}self.addEventListener("activate",(function(){return self.clients.claim()})),function(e){Le().precache(e)}([{'revision':'a9ce3ef33f9411f8e731672b59c614f8','url':'/offline-sdk-2gis-workbox/index.html'},{'revision':null,'url':'/offline-sdk-2gis-workbox/static/css/main.12dae86e.css'},{'revision':null,'url':'/offline-sdk-2gis-workbox/static/js/787.2039d84d.chunk.js'},{'revision':null,'url':'/offline-sdk-2gis-workbox/static/js/main.86f747b8.js'}]),function(e){var t=Le();Ne(new Ae(t,e))}(Me);var $e,Ye=new RegExp("/[^/?]+\\.[^/]+$");Ne((function(e){var t=e.request,r=e.url;return"navigate"===t.mode&&(!r.pathname.startsWith("/_")&&!r.pathname.match(Ye))}),($e="/offline-sdk-2gis-workbox/index.html",Le().createHandlerBoundToURL($e))),Ne((function(e){var t=e.url;return t.origin===self.location.origin&&t.pathname.endsWith(".png")}),new Fe({cacheName:"images",plugins:[new de({maxEntries:50})]})),Ne(new RegExp("^https://tile"),new Ke({cacheName:"tiles",plugins:[{cacheKeyWillBeUsed:Ge},new w({statuses:[0,200]})]})),Ne(new RegExp("^https://mapgl.2gis.com/api/fonts/"),new Ke({cacheName:"fonts",plugins:[new w({statuses:[0,200]})]}));var Qe=new Be({cacheName:"styles",plugins:[{cacheKeyWillBeUsed:Ge},new w({statuses:[0,200]})]});Ne(new RegExp("^https://styles.api.2gis.com/"),Qe);var Je=new BroadcastChannel("2gis-update-channel");self.addEventListener("activate",(function(e){Je.postMessage({type:"TILES_CAN_UPDATE"})}));var ze=new Be({cacheName:"core2gis",plugins:[new w({statuses:[0,200]})]});Ne(new RegExp("https://mapgl.2gis.com/api/js"),ze);He({urls:["https://mapgl.2gis.com/api/js"],strategy:ze}),He({urls:["https://styles.api.2gis.com/styles/c080bb6a-8134-4993-93a1-5b4d8c36a59b"],strategy:Qe}),self.addEventListener("message",(function(e){e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()}))}()}();
//# sourceMappingURL=service-worker.js.map