No Description

service-worker.js 48KB

123
  1. /*! For license information please see service-worker.js.LICENSE.txt */
  2. !function(){"use strict";var e={923:function(){try{self["workbox:core:5.1.4"]&&_()}catch(e){}},190:function(){try{self["workbox:expiration:5.1.4"]&&_()}catch(e){}},437:function(){try{self["workbox:precaching:5.1.4"]&&_()}catch(e){}},185:function(){try{self["workbox:routing:5.1.4"]&&_()}catch(e){}},833:function(){try{self["workbox:strategies:5.1.4"]&&_()}catch(e){}}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}!function(){r(923);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){var r=function(t,r){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!==e(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===e(r)?r:String(r)}function n(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,t(a.key),a)}}function a(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function o(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&&c(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function s(){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 f(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 h(e){var t=s();return function(){var r,n=u(e);if(t){var a=u(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f(this,r)}}function l(e,t,r){return l=s()?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&&c(a,r.prototype),a},l.apply(null,arguments)}function p(e){var t="function"===typeof Map?new Map:void 0;return p=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 l(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)},p(e)}var v=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},d=function(e){o(r,e);var t=h(r);function r(e,n){var a;i(this,r);var c=v(e,n);return(a=t.call(this,c)).name=e,a.details=n,a}return a(r)}(p(Error)),y=new Set;function m(e){y.add(e)}var g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!==typeof registration?registration.scope:""},x=function(e){return[g.prefix,e,g.suffix].filter((function(e){return e&&e.length>0})).join("-")},w=function(e){return e||x(g.precache)},b=function(e){return e||x(g.runtime)};function k(){k=function(){return t};var t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(U){s=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,c=Object.create(i.prototype),o=new q(n||[]);return a(c,"_invoke",{value:_(e,r,o)}),c}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(U){return{type:"throw",arg:U}}}t.wrap=f;var l={};function p(){}function v(){}function d(){}var y={};s(y,c,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==r&&n.call(g,c)&&(y=g);var x=d.prototype=p.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(t,r){function i(a,c,o,u){var s=h(t[a],t,c);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==e(l)&&n.call(l,"__await")?r.resolve(l.__await).then((function(e){i("next",e,o,u)}),(function(e){i("throw",e,o,u)})):r.resolve(l).then((function(e){f.value=e,o(f)}),(function(e){return i("throw",e,o,u)}))}u(s.arg)}var c;a(this,"_invoke",{value:function(e,t){function n(){return new r((function(r,n){i(e,t,r,n)}))}return c=c?c.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(a,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw i;return T()}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var o=R(c,r);if(o){if(o===l)continue;return o}}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 u=h(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function R(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,R(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),l;var a=h(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,l;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function E(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return v.prototype=d,a(x,"constructor",{value:d,configurable:!0}),a(d,"constructor",{value:v,configurable:!0}),v.displayName=s(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},w(b.prototype),s(b.prototype,o,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,a,i){void 0===i&&(i=Promise);var c=new b(f(e,r,n,a),i);return t.isGeneratorFunction(r)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},w(x),s(x,u,"Generator"),s(x,c,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,q.prototype={constructor:q,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(L),!e)for(var t in this)"t"===t.charAt(0)&&n.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 c.type="throw",c.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var o=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(o&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(o){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=e,c.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(c)},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),L(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;L(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function _(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 R(e,t){if(e){if("string"===typeof e)return _(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)?_(e,t):void 0}}function E(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=R(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 i,c=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){o=!0,i=e},f:function(){try{c||null==r.return||r.return()}finally{if(o)throw i}}}}function L(e,t,r,n,a,i,c){try{var o=e[i](c),u=o.value}catch(s){return void r(s)}o.done?t(u):Promise.resolve(u).then(n,a)}function q(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function c(e){L(i,n,a,c,o,"next",e)}function o(e){L(i,n,a,c,o,"throw",e)}c(void 0)}))}}function O(){return T.apply(this,arguments)}function T(){return(T=q(k().mark((function e(){var t,r,n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,t=E(y),e.prev=2,t.s();case 4:if((r=t.n()).done){e.next=11;break}return n=r.value,e.next=8,n();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),t.e(e.t0);case 16:return e.prev=16,t.f(),e.finish(16);case 19:0;case 20:case"end":return e.stop()}}),e,null,[[2,13,16,19]])})))).apply(this,arguments)}var U,N=function(e){return new URL(String(e),location.href).href.replace(new RegExp("^".concat(location.origin)),"")},S=function(e,t){return e.filter((function(e){return t in e}))},j=function(){var e=q(k().mark((function e(t){var r,n,a,i,c,o,u,s;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.request,n=t.mode,a=t.plugins,i=S(void 0===a?[]:a,"cacheKeyWillBeUsed"),c=r,o=E(i),e.prev=4,o.s();case 6:if((u=o.n()).done){e.next=15;break}return s=u.value,e.next=10,s.cacheKeyWillBeUsed.call(s,{mode:n,request:c});case 10:"string"===typeof(c=e.sent)&&(c=new Request(c));case 13:e.next=6;break;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(4),o.e(e.t0);case 20:return e.prev=20,o.f(),e.finish(20);case 23:return e.abrupt("return",c);case 24:case"end":return e.stop()}}),e,null,[[4,17,20,23]])})));return function(t){return e.apply(this,arguments)}}(),A=function(){var e=q(k().mark((function e(t){var r,n,a,i,c,o,u,s,f,h;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.request,n=t.response,a=t.event,i=t.plugins,c=n,o=!1,u=E(void 0===i?[]:i),e.prev=4,u.s();case 6:if((s=u.n()).done){e.next=19;break}if(!("cacheWillUpdate"in(f=s.value))){e.next=17;break}return o=!0,h=f.cacheWillUpdate,e.next=13,h.call(f,{request:r,response:c,event:a});case 13:if(c=e.sent){e.next=17;break}return e.abrupt("break",19);case 17:e.next=6;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(4),u.e(e.t0);case 24:return e.prev=24,u.f(),e.finish(24);case 27:return o||(c=c&&200===c.status?c:void 0),e.abrupt("return",c||null);case 29:case"end":return e.stop()}}),e,null,[[4,21,24,27]])})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=q(k().mark((function e(t){var r,n,a,i,c,o,u,s,f,h,l,p,v;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cacheName,n=t.request,a=t.event,i=t.matchOptions,c=t.plugins,o=void 0===c?[]:c,e.next=3,self.caches.open(r);case 3:return u=e.sent,e.next=6,j({plugins:o,request:n,mode:"read"});case 6:return s=e.sent,e.next=9,u.match(s,i);case 9:f=e.sent,h=E(o),e.prev=12,h.s();case 14:if((l=h.n()).done){e.next=24;break}if(!("cachedResponseWillBeUsed"in(p=l.value))){e.next=22;break}return v=p.cachedResponseWillBeUsed,e.next=20,v.call(p,{cacheName:r,event:a,matchOptions:i,cachedResponse:f,request:s});case 20:f=e.sent;case 22:e.next=14;break;case 24:e.next=29;break;case 26:e.prev=26,e.t0=e.catch(12),h.e(e.t0);case 29:return e.prev=29,h.f(),e.finish(29);case 32:return e.abrupt("return",f);case 33:case"end":return e.stop()}}),e,null,[[12,26,29,32]])})));return function(t){return e.apply(this,arguments)}}(),C=function(){var e=q(k().mark((function e(t){var r,n,a,i,c,o,u,s,f,h,l,p,v,y,m;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.cacheName,n=t.request,a=t.response,i=t.event,c=t.plugins,o=void 0===c?[]:c,u=t.matchOptions,e.next=4;break;case 4:return e.next=6,j({plugins:o,request:n,mode:"write"});case 6:if(s=e.sent,a){e.next=10;break}throw new d("cache-put-with-no-response",{url:N(s.url)});case 10:return e.next=12,A({event:i,plugins:o,response:a,request:s});case 12:if(f=e.sent){e.next=16;break}return e.abrupt("return");case 16:return e.next=18,self.caches.open(r);case 18:if(h=e.sent,!((l=S(o,"cacheDidUpdate")).length>0)){e.next=26;break}return e.next=23,P({cacheName:r,matchOptions:u,request:s});case 23:e.t0=e.sent,e.next=27;break;case 26:e.t0=null;case 27:return p=e.t0,e.prev=29,e.next=32,h.put(s,f);case 32:e.next=40;break;case 34:if(e.prev=34,e.t1=e.catch(29),"QuotaExceededError"!==e.t1.name){e.next=39;break}return e.next=39,O();case 39:throw e.t1;case 40:v=E(l),e.prev=41,v.s();case 43:if((y=v.n()).done){e.next=49;break}return m=y.value,e.next=47,m.cacheDidUpdate.call(m,{cacheName:r,event:i,oldResponse:p,newResponse:f,request:s});case 47:e.next=43;break;case 49:e.next=54;break;case 51:e.prev=51,e.t2=e.catch(41),v.e(e.t2);case 54:return e.prev=54,v.f(),e.finish(54);case 57:case"end":return e.stop()}}),e,null,[[29,34],[41,51,54,57]])})));return function(t){return e.apply(this,arguments)}}(),K={put:C,match:P};function M(){if(void 0===U){var e=new Response("");if("body"in e)try{new Response(e.body),U=!0}catch(t){U=!1}U=!1}return U}function I(e){e.then((function(){}))}function W(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,i,c,o=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(f){s=!0,a=f}finally{try{if(!u&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(s)throw a}}return o}}(e,t)||R(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 D=function(){function e(t,r){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=a.onupgradeneeded,o=a.onversionchange;i(this,e),this._db=null,this._name=t,this._version=r,this._onupgradeneeded=c,this._onversionchange=o||function(){return n.close()}}return a(e,[{key:"db",get:function(){return this._db}},{key:"open",value:function(){var e=q(k().mark((function e(){var t=this;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._db){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,new Promise((function(e,r){var n=!1;setTimeout((function(){n=!0,r(new Error("The open request was blocked and timed out"))}),t.OPEN_TIMEOUT);var a=indexedDB.open(t._name,t._version);a.onerror=function(){return r(a.error)},a.onupgradeneeded=function(e){n?(a.transaction.abort(),a.result.close()):"function"===typeof t._onupgradeneeded&&t._onupgradeneeded(e)},a.onsuccess=function(){var r=a.result;n?r.close():(r.onversionchange=t._onversionchange.bind(t),e(r))}}));case 4:return this._db=e.sent,e.abrupt("return",this);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getKey",value:function(){var e=q(k().mark((function e(t,r){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAllKeys(t,r,1);case 2:return e.abrupt("return",e.sent[0]);case 3:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getAll",value:function(){var e=q(k().mark((function e(t,r,n){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAllMatching(t,{query:r,count:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"getAllKeys",value:function(){var e=q(k().mark((function e(t,r,n){var a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAllMatching(t,{query:r,count:n,includeKeys:!0});case 2:return a=e.sent,e.abrupt("return",a.map((function(e){return e.key})));case 4:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"getAllMatching",value:function(){var e=q(k().mark((function e(t){var r,n,a,i,c,o,u,s,f,h=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=h.length>1&&void 0!==h[1]?h[1]:{},n=r.index,a=r.query,i=void 0===a?null:a,c=r.direction,o=void 0===c?"next":c,u=r.count,s=r.includeKeys,f=void 0!==s&&s,e.next=3,this.transaction([t],"readonly",(function(e,r){var a=e.objectStore(t),c=n?a.index(n):a,s=[],h=c.openCursor(i,o);h.onsuccess=function(){var e=h.result;e?(s.push(f?e:e.value),u&&s.length>=u?r(s):e.continue()):r(s)}}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"transaction",value:function(){var e=q(k().mark((function e(t,r,n){var a=this;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.open();case 2:return e.next=4,new Promise((function(e,i){var c=a._db.transaction(t,r);c.onabort=function(){return i(c.error)},c.oncomplete=function(){return e()},n(c,(function(t){return e(t)}))}));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"_call",value:function(){var e=q(k().mark((function e(t,r,n){var a,i,c,o,u=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a=u.length,i=new Array(a>3?a-3:0),c=3;c<a;c++)i[c-3]=u[c];return o=function(e,n){var a=e.objectStore(r),c=a[t].apply(a,i);c.onsuccess=function(){return n(c.result)}},e.next=4,this.transaction([r],n,o);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"close",value:function(){this._db&&(this._db.close(),this._db=null)}}]),e}();D.prototype.OPEN_TIMEOUT=2e3;for(var F=function(){var e,t=W(B[H],2),r=t[0],n=E(t[1]);try{var a=function(){var t=e.value;t in IDBObjectStore.prototype&&(D.prototype[t]=function(){var e=q(k().mark((function e(n){var a,i,c,o=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a=o.length,i=new Array(a>1?a-1:0),c=1;c<a;c++)i[c-1]=o[c];return e.next=3,this._call.apply(this,[t,n,r].concat(i));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}())};for(n.s();!(e=n.n()).done;)a()}catch(i){n.e(i)}finally{n.f()}},H=0,B=Object.entries({readonly:["get","count","getKey","getAll","getAllKeys"],readwrite:["add","put","clear","delete"]});H<B.length;H++)F();var G=function(){var e=q(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e,r){var n=indexedDB.deleteDatabase(t);n.onerror=function(){r(n.error)},n.onblocked=function(){r(new Error("Delete blocked"))},n.onsuccess=function(){e()}}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Q=function(){var e=q(k().mark((function e(t){var r,n,a,i,c,o,u,s,f,h,l,p,v,y,m,g,x,w,b,_,R;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.request,n=t.fetchOptions,a=t.event,i=t.plugins,c=void 0===i?[]:i,"string"===typeof r&&(r=new Request(r)),!(a instanceof FetchEvent&&a.preloadResponse)){e.next=9;break}return e.next=5,a.preloadResponse;case 5:if(!(o=e.sent)){e.next=9;break}return e.abrupt("return",o);case 9:0,u=S(c,"fetchDidFail"),s=u.length>0?r.clone():null,e.prev=12,f=E(c),e.prev=14,f.s();case 16:if((h=f.n()).done){e.next=27;break}if(!("requestWillFetch"in(l=h.value))){e.next=25;break}return p=l.requestWillFetch,v=r.clone(),e.next=23,p.call(l,{request:v,event:a});case 23:r=e.sent;case 25:e.next=16;break;case 27:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(14),f.e(e.t0);case 32:return e.prev=32,f.f(),e.finish(32);case 35:e.next=40;break;case 37:throw e.prev=37,e.t1=e.catch(12),new d("plugin-error-request-will-fetch",{thrownError:e.t1});case 40:if(y=r.clone(),e.prev=41,"navigate"!==r.mode){e.next=48;break}return e.next=45,fetch(r);case 45:m=e.sent,e.next=51;break;case 48:return e.next=50,fetch(r,n);case 50:m=e.sent;case 51:0,g=E(c),e.prev=53,g.s();case 55:if((x=g.n()).done){e.next=64;break}if(!("fetchDidSucceed"in(w=x.value))){e.next=62;break}return e.next=60,w.fetchDidSucceed.call(w,{event:a,request:y,response:m});case 60:m=e.sent;case 62:e.next=55;break;case 64:e.next=69;break;case 66:e.prev=66,e.t2=e.catch(53),g.e(e.t2);case 69:return e.prev=69,g.f(),e.finish(69);case 72:return e.abrupt("return",m);case 75:e.prev=75,e.t3=e.catch(41),b=E(u),e.prev=79,b.s();case 81:if((_=b.n()).done){e.next=87;break}return R=_.value,e.next=85,R.fetchDidFail.call(R,{error:e.t3,event:a,originalRequest:s.clone(),request:y.clone()});case 85:e.next=81;break;case 87:e.next=92;break;case 89:e.prev=89,e.t4=e.catch(79),b.e(e.t4);case 92:return e.prev=92,b.f(),e.finish(92);case 95:throw e.t3;case 96:case"end":return e.stop()}}),e,null,[[12,37],[14,29,32,35],[41,75],[53,66,69,72],[79,89,92,95]])})));return function(t){return e.apply(this,arguments)}}(),Y={fetch:Q};function $(e,t){return J.apply(this,arguments)}function J(){return(J=q(k().mark((function e(t,r){var n,a,i,c;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.clone(),a={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},i=r?r(a):a,!M()){e.next=7;break}e.t0=n.body,e.next=10;break;case 7:return e.next=9,n.blob();case 9:e.t0=e.sent;case 10:return c=e.t0,e.abrupt("return",new Response(c,i));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}r(190);var V="cache-entries",z=function(e){var t=new URL(e,location.href);return t.hash="",t.href},X=function(){function e(t){var r=this;i(this,e),this._cacheName=t,this._db=new D("workbox-expiration",1,{onupgradeneeded:function(e){return r._handleUpgrade(e)}})}return a(e,[{key:"_handleUpgrade",value:function(e){var t=e.target.result.createObjectStore(V,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1}),G(this._cacheName)}},{key:"setTimestamp",value:function(){var e=q(k().mark((function e(t,r){var n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=z(t),n={url:t,timestamp:r,cacheName:this._cacheName,id:this._getId(t)},e.next=4,this._db.put(V,n);case 4:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getTimestamp",value:function(){var e=q(k().mark((function e(t){var r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._db.get(V,this._getId(t));case 2:return r=e.sent,e.abrupt("return",r.timestamp);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"expireEntries",value:function(){var e=q(k().mark((function e(t,r){var n,a,i,c,o,u=this;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._db.transaction(V,"readwrite",(function(e,n){var a=e.objectStore(V).index("timestamp").openCursor(null,"prev"),i=[],c=0;a.onsuccess=function(){var e=a.result;if(e){var o=e.value;o.cacheName===u._cacheName&&(t&&o.timestamp<t||r&&c>=r?i.push(e.value):c++),e.continue()}else n(i)}}));case 2:n=e.sent,a=[],i=E(n),e.prev=5,i.s();case 7:if((c=i.n()).done){e.next=14;break}return o=c.value,e.next=11,this._db.delete(V,o.id);case 11:a.push(o.url);case 12:e.next=7;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(5),i.e(e.t0);case 19:return e.prev=19,i.f(),e.finish(19);case 22:return e.abrupt("return",a);case 23:case"end":return e.stop()}}),e,this,[[5,16,19,22]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_getId",value:function(e){return this._cacheName+"|"+z(e)}}]),e}(),Z=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=r.maxEntries,this._maxAgeSeconds=r.maxAgeSeconds,this._cacheName=t,this._timestampModel=new X(t)}return a(e,[{key:"expireEntries",value:function(){var e=q(k().mark((function e(){var t,r,n,a,i,c;return k().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,t=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,e.next=7,this._timestampModel.expireEntries(t,this._maxEntries);case 7:return r=e.sent,e.next=10,self.caches.open(this._cacheName);case 10:n=e.sent,a=E(r),e.prev=12,a.s();case 14:if((i=a.n()).done){e.next=20;break}return c=i.value,e.next=18,n.delete(c);case 18:e.next=14;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(12),a.e(e.t0);case 25:return e.prev=25,a.f(),e.finish(25);case 28:0,this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,I(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=q(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,this._timestampModel.setTimestamp(t,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=q(k().mark((function e(t){var r,n;return k().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(t);case 8:return r=e.sent,n=Date.now()-1e3*this._maxAgeSeconds,e.abrupt("return",r<n);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=q(k().mark((function e(){return k().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}(),ee=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this.cachedResponseWillBeUsed=function(){var e=q(k().mark((function e(r){var n,a,i,c,o,u,s;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.event,a=r.request,i=r.cacheName,c=r.cachedResponse){e.next=3;break}return e.abrupt("return",null);case 3:if(o=t._isResponseDateFresh(c),I((u=t._getCacheExpiration(i)).expireEntries()),s=u.updateTimestamp(a.url),n)try{n.waitUntil(s)}catch(f){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=q(k().mark((function e(r){var n,a,i;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.cacheName,a=r.request,i=t._getCacheExpiration(n),e.next=5,i.updateTimestamp(a.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=r,this._maxAgeSeconds=r.maxAgeSeconds,this._cacheExpirations=new Map,r.purgeOnQuotaError&&m((function(){return t.deleteCacheAndMetadata()}))}return a(e,[{key:"_getCacheExpiration",value:function(e){if(e===b())throw new d("expire-custom-caches-only");var t=this._cacheExpirations.get(e);return t||(t=new Z(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=q(k().mark((function e(){var t,r,n,a,i;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=E(this._cacheExpirations),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=11;break}return n=W(r.value,2),a=n[0],i=n[1],e.next=7,self.caches.delete(a);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),t.e(e.t0);case 16:return e.prev=16,t.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 te(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||R(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);var re=[],ne=function(){return re};function ae(e){if(!e)throw new d("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 d("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),i=new URL(n,location.href);return a.searchParams.set("__WB_REVISION__",r),{cacheKey:a.href,url:i.href}}var ie,ce=function(){function e(t){i(this,e),this._cacheName=w(t),this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map}return a(e,[{key:"addToCacheList",value:function(e){var t,r=[],n=E(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 i=ae(a),c=i.cacheKey,o=i.url,u="string"!==typeof a&&a.revision?"reload":"default";if(this._urlsToCacheKeys.has(o)&&this._urlsToCacheKeys.get(o)!==c)throw new d("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(o),secondEntry:c});if("string"!==typeof a&&a.integrity){if(this._cacheKeysToIntegrities.has(c)&&this._cacheKeysToIntegrities.get(c)!==a.integrity)throw new d("add-to-cache-list-conflicting-integrities",{url:o});this._cacheKeysToIntegrities.set(c,a.integrity)}if(this._urlsToCacheKeys.set(o,c),this._urlsToCacheModes.set(o,u),r.length>0){var s="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(s)}}}catch(f){n.e(f)}finally{n.f()}}},{key:"install",value:function(){var e=q(k().mark((function e(){var t,r,n,a,i,c,o,u,s,f,h,l,p,v,d,y=this,m=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=m.length>0&&void 0!==m[0]?m[0]:{},r=t.event,n=t.plugins,a=[],i=[],e.next=6,self.caches.open(this._cacheName);case 6:return c=e.sent,e.next=9,c.keys();case 9:o=e.sent,u=new Set(o.map((function(e){return e.url}))),s=E(this._urlsToCacheKeys);try{for(s.s();!(f=s.n()).done;)h=W(f.value,2),l=h[0],p=h[1],u.has(p)?i.push(l):a.push({cacheKey:p,url:l})}catch(g){s.e(g)}finally{s.f()}return v=a.map((function(e){var t=e.cacheKey,a=e.url,i=y._cacheKeysToIntegrities.get(t),c=y._urlsToCacheModes.get(a);return y._addURLToCache({cacheKey:t,cacheMode:c,event:r,integrity:i,plugins:n,url:a})})),e.next=16,Promise.all(v);case 16:return d=a.map((function(e){return e.url})),e.abrupt("return",{updatedURLs:d,notUpdatedURLs:i});case 19:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"activate",value:function(){var e=q(k().mark((function e(){var t,r,n,a,i,c,o;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,self.caches.open(this._cacheName);case 2:return t=e.sent,e.next=5,t.keys();case 5:r=e.sent,n=new Set(this._urlsToCacheKeys.values()),a=[],i=E(r),e.prev=9,i.s();case 11:if((c=i.n()).done){e.next=19;break}if(o=c.value,n.has(o.url)){e.next=17;break}return e.next=16,t.delete(o);case 16:a.push(o.url);case 17:e.next=11;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(9),i.e(e.t0);case 24:return e.prev=24,i.f(),e.finish(24);case 27:return e.abrupt("return",{deletedURLs:a});case 29:case"end":return e.stop()}}),e,this,[[9,21,24,27]])})));return function(){return e.apply(this,arguments)}}()},{key:"_addURLToCache",value:function(){var e=q(k().mark((function e(t){var r,n,a,i,c,o,u,s,f,h,l,p;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cacheKey,n=t.url,a=t.cacheMode,i=t.event,c=t.plugins,o=t.integrity,u=new Request(n,{integrity:o,cache:a,credentials:"same-origin"}),e.next=4,Y.fetch({event:i,plugins:c,request:u});case 4:s=e.sent,h=E(c||[]);try{for(h.s();!(l=h.n()).done;)"cacheWillUpdate"in(p=l.value)&&(f=p)}catch(v){h.e(v)}finally{h.f()}if(!f){e.next=13;break}return e.next=10,f.cacheWillUpdate({event:i,request:u,response:s});case 10:e.t0=e.sent,e.next=14;break;case 13:e.t0=s.status<400;case 14:if(e.t0){e.next=17;break}throw new d("bad-precaching-response",{url:n,status:s.status});case 17:if(!s.redirected){e.next=21;break}return e.next=20,$(s);case 20:s=e.sent;case 21:return e.next=23,K.put({event:i,plugins:c,response:s,request:r===n?u:new Request(r),cacheName:this._cacheName,matchOptions:{ignoreSearch:!0}});case 23:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getURLsToCacheKeys",value:function(){return this._urlsToCacheKeys}},{key:"getCachedURLs",value:function(){return te(this._urlsToCacheKeys.keys())}},{key:"getCacheKeyForURL",value:function(e){var t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}},{key:"matchPrecache",value:function(){var e=q(k().mark((function e(t){var r,n,a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t instanceof Request?t.url:t,!(n=this.getCacheKeyForURL(r))){e.next=7;break}return e.next=5,self.caches.open(this._cacheName);case 5:return a=e.sent,e.abrupt("return",a.match(n));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:"createHandler",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(){var r=q(k().mark((function r(n){var a,i;return k().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=n.request,r.prev=1,r.next=4,e.matchPrecache(a);case 4:if(!(i=r.sent)){r.next=7;break}return r.abrupt("return",i);case 7:throw new d("missing-precache-entry",{cacheName:e._cacheName,url:a instanceof Request?a.url:a});case 10:if(r.prev=10,r.t0=r.catch(1),!t){r.next=15;break}return r.abrupt("return",fetch(a));case 15:throw r.t0;case 16:case"end":return r.stop()}}),r,null,[[1,10]])})));return function(e){return r.apply(this,arguments)}}()}},{key:"createHandlerBoundToURL",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.getCacheKeyForURL(e);if(!r)throw new d("non-precached-url",{url:e});var n=this.createHandler(t),a=new Request(e);return function(){return n({request:a})}}}]),e}(),oe=function(){return ie||(ie=new ce),ie};function ue(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=te(e.searchParams.keys());n<a.length;n++)r();return e}var se=function(e,t){var r,n=oe().getURLsToCacheKeys(),a=E(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.ignoreURLParametersMatching,n=t.directoryIndex,a=t.cleanURLs,i=t.urlManipulation;return k().mark((function t(){var c,o,u,s,f,h,l,p;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(c=new URL(e,location.href)).hash="",t.next=4,c.href;case 4:return o=ue(c,r),t.next=7,o.href;case 7:if(!n||!o.pathname.endsWith("/")){t.next=12;break}return(u=new URL(o.href)).pathname+=n,t.next=12,u.href;case 12:if(!a){t.next=17;break}return(s=new URL(o.href)).pathname+=".html",t.next=17,s.href;case 17:if(!i){t.next=36;break}f=i({url:c}),h=E(f),t.prev=20,h.s();case 22:if((l=h.n()).done){t.next=28;break}return p=l.value,t.next=26,p.href;case 26:t.next=22;break;case 28:t.next=33;break;case 30:t.prev=30,t.t0=t.catch(20),h.e(t.t0);case 33:return t.prev=33,h.f(),t.finish(33);case 36:case"end":return t.stop()}}),t,null,[[20,30,33,36]])}))()}(e,t));try{for(a.s();!(r=a.n()).done;){var i=r.value,c=n.get(i);if(c)return c}}catch(o){a.e(o)}finally{a.f()}},fe=!1;function he(e){fe||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreURLParametersMatching,r=void 0===t?[/^utm_/]:t,n=e.directoryIndex,a=void 0===n?"index.html":n,i=e.cleanURLs,c=void 0===i||i,o=e.urlManipulation,u=w();self.addEventListener("fetch",(function(e){var t=se(e.request.url,{cleanURLs:c,directoryIndex:a,ignoreURLParametersMatching:r,urlManipulation:o});if(t){var n=self.caches.open(u).then((function(e){return e.match(t)})).then((function(e){return e||fetch(t)}));e.respondWith(n)}}))}(e),fe=!0)}var le=function(e){var t=oe(),r=ne();e.waitUntil(t.install({event:e,plugins:r}).catch((function(e){throw e})))},pe=function(e){var t=oe();e.waitUntil(t.activate())};r(185);var ve,de=function(e){return e&&"object"===typeof e?e:{handle:e}},ye=a((function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET";i(this,e),this.handler=de(r),this.match=t,this.method=n})),me=function(e){o(r,e);var t=h(r);function r(e,n,a){i(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 a(r)}(ye),ge=function(){function e(){i(this,e),this._routes=new Map}return a(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(t){"string"===typeof t&&(t=[t]);var r=l(Request,te(t));return e.handleRequest({request:r})})));t.waitUntil(n),t.ports&&t.ports[0]&&n.then((function(){return t.ports[0].postMessage(!0)}))}}))}},{key:"handleRequest",value:function(e){var t=this,r=e.request,n=e.event;var a=new URL(r.url,location.href);if(a.protocol.startsWith("http")){var i=this.findMatchingRoute({url:a,request:r,event:n}),c=i.params,o=i.route,u=o&&o.handler;if(!u&&this._defaultHandler&&(u=this._defaultHandler),u){var s;0;try{s=u.handle({url:a,request:r,event:n,params:c})}catch(f){s=Promise.reject(f)}return s instanceof Promise&&this._catchHandler&&(s=s.catch((function(e){return t._catchHandler.handle({url:a,request:r,event:n})}))),s}}}},{key:"findMatchingRoute",value:function(e){var t=e.url,r=e.request,n=e.event;var a,i=E(this._routes.get(r.method)||[]);try{for(i.s();!(a=i.n()).done;){var c=a.value,o=void 0,u=c.match({url:t,request:r,event:n});if(u)return o=u,(Array.isArray(u)&&0===u.length||u.constructor===Object&&0===Object.keys(u).length||"boolean"===typeof u)&&(o=void 0),{route:c,params:o}}}catch(s){i.e(s)}finally{i.f()}return{}}},{key:"setDefaultHandler",value:function(e){this._defaultHandler=de(e)}},{key:"setCatchHandler",value:function(e){this._catchHandler=de(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 d("unregister-route-but-not-found-with-method",{method:e.method});var t=this._routes.get(e.method).indexOf(e);if(!(t>-1))throw new d("unregister-route-route-not-registered");this._routes.get(e.method).splice(t,1)}}]),e}(),xe=function(){return ve||((ve=new ge).addFetchListener(),ve.addCacheListener()),ve};function we(e,t,r){var n;if("string"===typeof e){var a=new URL(e,location.href);n=new ye((function(e){return e.url.href===a.href}),t,r)}else if(e instanceof RegExp)n=new me(e,t,r);else if("function"===typeof e)n=new ye(e,t,r);else{if(!(e instanceof ye))throw new d("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});n=e}return xe().registerRoute(n),n}r(833);var be,ke={cacheWillUpdate:function(){var e=q(k().mark((function e(t){var r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(200!==(r=t.response).status&&0!==r.status){e.next=3;break}return e.abrupt("return",r);case 3:return e.abrupt("return",null);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},_e=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(i(this,e),this._cacheName=b(t.cacheName),this._plugins=t.plugins||[],t.plugins){var r=t.plugins.some((function(e){return!!e.cacheWillUpdate}));this._plugins=r?t.plugins:[ke].concat(te(t.plugins))}else this._plugins=[ke];this._fetchOptions=t.fetchOptions,this._matchOptions=t.matchOptions}return a(e,[{key:"handle",value:function(){var e=q(k().mark((function e(t){var r,n,a,i,c;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.event,n=t.request,[],"string"===typeof n&&(n=new Request(n)),a=this._getFromNetwork({request:n,event:r}),e.next=7,K.match({cacheName:this._cacheName,request:n,event:r,matchOptions:this._matchOptions,plugins:this._plugins});case 7:if(!(i=e.sent)){e.next=13;break}if(r)try{r.waitUntil(a)}catch(c){0}e.next=23;break;case 13:return e.prev=14,e.next=17,a;case 17:i=e.sent,e.next=23;break;case 20:e.prev=20,e.t0=e.catch(14),c=e.t0;case 23:if(i){e.next=26;break}throw new d("no-response",{url:n.url,error:c});case 26:return e.abrupt("return",i);case 27:case"end":return e.stop()}}),e,this,[[14,20]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_getFromNetwork",value:function(){var e=q(k().mark((function e(t){var r,n,a,i;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.request,n=t.event,e.next=3,Y.fetch({request:r,event:n,fetchOptions:this._fetchOptions,plugins:this._plugins});case 3:if(a=e.sent,i=K.put({cacheName:this._cacheName,request:r,response:a.clone(),event:n,plugins:this._plugins}),n)try{n.waitUntil(i)}catch(c){0}return e.abrupt("return",a);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}();self.addEventListener("activate",(function(){return self.clients.claim()})),function(e){oe().addToCacheList(e),e.length>0&&(self.addEventListener("install",le),self.addEventListener("activate",pe))}([{'revision':'31635c139dd2f2fa54622292ea1b4e1d','url':'/index.html'},{'revision':null,'url':'/static/css/main.efe4b27a.css'},{'revision':null,'url':'/static/js/186.a076517b.chunk.js'},{'revision':null,'url':'/static/js/22.7ec1dda8.chunk.js'},{'revision':null,'url':'/static/js/272.fc222ae9.chunk.js'},{'revision':null,'url':'/static/js/372.1940d375.chunk.js'},{'revision':null,'url':'/static/js/377.31684c30.chunk.js'},{'revision':null,'url':'/static/js/738.23d458d2.chunk.js'},{'revision':null,'url':'/static/js/841.bef26980.chunk.js'},{'revision':null,'url':'/static/js/851.b02dec88.chunk.js'},{'revision':null,'url':'/static/js/856.c55f21fe.chunk.js'},{'revision':null,'url':'/static/js/main.8518b217.js'},{'revision':null,'url':'/static/media/1 2.a51ecd8ad682ea72b959.png'},{'revision':null,'url':'/static/media/1.a51ecd8ad682ea72b959.png'},{'revision':null,'url':'/static/media/2 2.fbbc9f16a9decddcee56.png'},{'revision':null,'url':'/static/media/2.fbbc9f16a9decddcee56.png'},{'revision':null,'url':'/static/media/3 2.f7991a06ad032687f02b.png'},{'revision':null,'url':'/static/media/3.f7991a06ad032687f02b.png'},{'revision':null,'url':'/static/media/4 2.17c13979ca7e0a0907dc.png'},{'revision':null,'url':'/static/media/4.17c13979ca7e0a0907dc.png'},{'revision':null,'url':'/static/media/5 2.0a70de4a6953fe2358b6.png'},{'revision':null,'url':'/static/media/5.0a70de4a6953fe2358b6.png'},{'revision':null,'url':'/static/media/6 2.7577bce6bb05b2b844a5.png'},{'revision':null,'url':'/static/media/6.7577bce6bb05b2b844a5.png'},{'revision':null,'url':'/static/media/7 2.e0245648655da2db113d.png'},{'revision':null,'url':'/static/media/7.e0245648655da2db113d.png'},{'revision':null,'url':'/static/media/8 2.3f6cd91d6ef70858b113.png'},{'revision':null,'url':'/static/media/8.3f6cd91d6ef70858b113.png'},{'revision':null,'url':'/static/media/9 2.3703b887cbdd492a6f66.png'},{'revision':null,'url':'/static/media/9.3703b887cbdd492a6f66.png'}]),he(be);var Re,Ee=new RegExp("/[^/?]+\\.[^/]+$");we((function(e){var t=e.request,r=e.url;return"navigate"===t.mode&&(!r.pathname.startsWith("/_")&&!r.pathname.match(Ee))}),(Re="/index.html",oe().createHandlerBoundToURL(Re))),we((function(e){var t=e.url;return t.origin===self.location.origin&&t.pathname.endsWith(".png")}),new _e({cacheName:"images",plugins:[new ee({maxEntries:50})]})),self.addEventListener("message",(function(e){e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()}))}()}();
  3. //# sourceMappingURL=service-worker.js.map