!function(t){var r={};function __webpack_require__(a){if(r[a])return r[a].exports;var o=r[a]={i:a,l:!1,exports:{}};return t[a].call(o.exports,o,o.exports,__webpack_require__),o.l=!0,o.exports}__webpack_require__.m=t,__webpack_require__.c=r,__webpack_require__.d=function(t,r,a){__webpack_require__.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:a})},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.t=function(t,r){if(1&r&&(t=__webpack_require__(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(__webpack_require__.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)__webpack_require__.d(a,o,function(r){return t[r]}.bind(null,o));return a},__webpack_require__.n=function(t){var r=t&&t.__esModule?function getDefault(){return t.default}:function getModuleExports(){return t};return __webpack_require__.d(r,"a",r),r},__webpack_require__.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=7)}([function(t,r,a){t.exports=a(6)},function(t,r,a){"use strict";try{self["workbox:core:5.1.4"]&&_()}catch(t){}},function(t,r,a){"use strict";try{self["workbox:precaching:5.1.4"]&&_()}catch(t){}},function(t,r,a){"use strict";try{self["workbox:routing:5.1.4"]&&_()}catch(t){}},function(t,r,a){"use strict";try{self["workbox:strategies:5.1.4"]&&_()}catch(t){}},function(t,r,a){"use strict";try{self["workbox:expiration:5.1.4"]&&_()}catch(t){}},function(t,r,a){var o=function(t){"use strict";var r,a=Object.prototype,o=a.hasOwnProperty,c="function"==typeof Symbol?Symbol:{},i=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function define(t,r,a){return Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,a){return t[r]=a}}function wrap(t,r,a,o){var c=r&&r.prototype instanceof Generator?r:Generator,i=Object.create(c.prototype),u=new Context(o||[]);return i._invoke=function makeInvokeMethod(t,r,a){var o=h;return function invoke(c,i){if(o===d)throw new Error("Generator is already running");if(o===_){if("throw"===c)throw i;return doneResult()}for(a.method=c,a.arg=i;;){var u=a.delegate;if(u){var l=maybeInvokeDelegate(u,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(o===h)throw o=_,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o=d;var y=tryCatch(t,r,a);if("normal"===y.type){if(o=a.done?_:p,y.arg===v)continue;return{value:y.arg,done:a.done}}"throw"===y.type&&(o=_,a.method="throw",a.arg=y.arg)}}}(t,a,u),i}function tryCatch(t,r,a){try{return{type:"normal",arg:t.call(r,a)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var h="suspendedStart",p="suspendedYield",d="executing",_="completed",v={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var y={};y[i]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(values([])));g&&g!==a&&o.call(g,i)&&(y=g);var x=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(y);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(a,c,i,u){var l=tryCatch(t[a],t,c);if("throw"!==l.type){var h=l.arg,p=h.value;return p&&"object"==typeof p&&o.call(p,"__await")?r.resolve(p.__await).then((function(t){invoke("next",t,i,u)}),(function(t){invoke("throw",t,i,u)})):r.resolve(p).then((function(t){h.value=t,i(h)}),(function(t){return invoke("throw",t,i,u)}))}u(l.arg)}var a;this._invoke=function enqueue(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,a){invoke(t,o,r,a)}))}return a=a?a.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(t,a){var o=t.iterator[a.method];if(o===r){if(a.delegate=null,"throw"===a.method){if(t.iterator.return&&(a.method="return",a.arg=r,maybeInvokeDelegate(t,a),"throw"===a.method))return v;a.method="throw",a.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var c=tryCatch(o,t.iterator,a.arg);if("throw"===c.type)return a.method="throw",a.arg=c.arg,a.delegate=null,v;var i=c.arg;return i?i.done?(a[t.resultName]=i.value,a.next=t.nextLoc,"return"!==a.method&&(a.method="next",a.arg=r),a.delegate=null,v):i:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,v)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(t){if(t){var a=t[i];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,u=function next(){for(;++c=0;--c){var i=this.tryEntries[c],u=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),h=o.call(i,"finallyLoc");if(l&&h){if(this.prev=0;--a){var c=this.tryEntries[a];if(c.tryLoc<=this.prev&&o.call(c,"finallyLoc")&&this.prev=0;--r){var a=this.tryEntries[r];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),resetTryEntry(a),v}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc===t){var o=a.completion;if("throw"===o.type){var c=o.arg;resetTryEntry(a)}return c}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(t,a,o){return this.delegate={iterator:values(t),resultName:a,nextLoc:o},"next"===this.method&&(this.arg=r),v}},t}(t.exports);try{regeneratorRuntime=o}catch(t){Function("r","regeneratorRuntime = r")(o)}},function(t,r,a){"use strict";function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,o=new Array(r);a=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function e(t){throw t},f:c}}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,u=!0,l=!1;return{s:function s(){a=t[Symbol.iterator]()},n:function n(){var t=a.next();return u=t.done,t},e:function e(t){l=!0,i=t},f:function f(){try{u||null==a.return||a.return()}finally{if(l)throw i}}}}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){return t.__proto__=r,t})(t,r)}function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf(t,r)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _createSuper(t){var r=_isNativeReflectConstruct();return function _createSuperInternal(){var a,o=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;a=Reflect.construct(o,arguments,c)}else a=o.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function construct_construct(t,r,a){return(construct_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(t,r,a){var o=[null];o.push.apply(o,r);var c=new(Function.bind.apply(t,o));return a&&_setPrototypeOf(c,a.prototype),c}).apply(null,arguments)}function wrapNativeSuper_wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return(wrapNativeSuper_wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct_construct(t,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t)})(t)}var o=function fallback(t){for(var r=t,a=arguments.length,o=new Array(a>1?a-1:0),c=1;c0&&(r+=" :: ".concat(JSON.stringify(o))),r},c=function(t){_inherits(WorkboxError,t);var r=_createSuper(WorkboxError);function WorkboxError(t,a){var c;_classCallCheck(this,WorkboxError);var i=o(t,a);return(c=r.call(this,i)).name=t,c.details=a,c}return WorkboxError}(wrapNativeSuper_wrapNativeSuper(Error)),i=new Set;function registerQuotaErrorCallback(t){i.add(t)}var u={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},l=function _createCacheName(t){return[u.prefix,t,u.suffix].filter((function(t){return t&&t.length>0})).join("-")},h=function getPrecacheName(t){return t||l(u.precache)},p=function getRuntimeName(t){return t||l(u.runtime)},d=a(0),_=a.n(d);function asyncGeneratorStep(t,r,a,o,c,i,u){try{var l=t[i](u),h=l.value}catch(t){return void a(t)}l.done?r(h):Promise.resolve(h).then(o,c)}function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(o,c){var i=t.apply(r,a);function _next(t){asyncGeneratorStep(i,o,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(i,o,c,_next,_throw,"throw",t)}_next(void 0)}))}}function executeQuotaErrorCallbacks(){return _executeQuotaErrorCallbacks.apply(this,arguments)}function _executeQuotaErrorCallbacks(){return(_executeQuotaErrorCallbacks=_asyncToGenerator(_.a.mark((function _callee(){var t,r,a;return _.a.wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:0,t=_createForOfIteratorHelper(i),o.prev=2,t.s();case 4:if((r=t.n()).done){o.next=11;break}return a=r.value,o.next=8,a();case 8:0;case 9:o.next=4;break;case 11:o.next=16;break;case 13:o.prev=13,o.t0=o.catch(2),t.e(o.t0);case 16:return o.prev=16,t.f(),o.finish(16);case 19:0;case 20:case"end":return o.stop()}}),_callee,null,[[2,13,16,19]])})))).apply(this,arguments)}var v,y=function getFriendlyURL(t){return new URL(String(t),location.href).href.replace(new RegExp("^".concat(location.origin)),"")},m=function filter(t,r){return t.filter((function(t){return r in t}))},g=function(){var t=_asyncToGenerator(_.a.mark((function _callee(t){var r,a,o,c,i,u,l,h;return _.a.wrap((function _callee$(p){for(;;)switch(p.prev=p.next){case 0:r=t.request,a=t.mode,o=t.plugins,c=m(void 0===o?[]:o,"cacheKeyWillBeUsed"),i=r,u=_createForOfIteratorHelper(c),p.prev=4,u.s();case 6:if((l=u.n()).done){p.next=15;break}return h=l.value,p.next=10,h.cacheKeyWillBeUsed.call(h,{mode:a,request:i});case 10:"string"==typeof(i=p.sent)&&(i=new Request(i));case 13:p.next=6;break;case 15:p.next=20;break;case 17:p.prev=17,p.t0=p.catch(4),u.e(p.t0);case 20:return p.prev=20,u.f(),p.finish(20);case 23:return p.abrupt("return",i);case 24:case"end":return p.stop()}}),_callee,null,[[4,17,20,23]])})));return function _getEffectiveRequest(r){return t.apply(this,arguments)}}(),x=function(){var t=_asyncToGenerator(_.a.mark((function _callee2(t){var r,a,o,c,i,u,l,h,p,d;return _.a.wrap((function _callee2$(_){for(;;)switch(_.prev=_.next){case 0:r=t.request,a=t.response,o=t.event,c=t.plugins,i=a,u=!1,l=_createForOfIteratorHelper(void 0===c?[]:c),_.prev=4,l.s();case 6:if((h=l.n()).done){_.next=19;break}if(!("cacheWillUpdate"in(p=h.value))){_.next=17;break}return u=!0,d=p.cacheWillUpdate,_.next=13,d.call(p,{request:r,response:i,event:o});case 13:if(i=_.sent){_.next=17;break}return _.abrupt("break",19);case 17:_.next=6;break;case 19:_.next=24;break;case 21:_.prev=21,_.t0=_.catch(4),l.e(_.t0);case 24:return _.prev=24,l.f(),_.finish(24);case 27:return u||(i=i&&200===i.status?i:void 0),_.abrupt("return",i||null);case 29:case"end":return _.stop()}}),_callee2,null,[[4,21,24,27]])})));return function _isResponseSafeToCache(r){return t.apply(this,arguments)}}(),b=function(){var t=_asyncToGenerator(_.a.mark((function _callee3(t){var r,a,o,c,i,u,l,h,p,d,v,y,m;return _.a.wrap((function _callee3$(_){for(;;)switch(_.prev=_.next){case 0:return r=t.cacheName,a=t.request,o=t.event,c=t.matchOptions,i=t.plugins,u=void 0===i?[]:i,_.next=3,self.caches.open(r);case 3:return l=_.sent,_.next=6,g({plugins:u,request:a,mode:"read"});case 6:return h=_.sent,_.next=9,l.match(h,c);case 9:p=_.sent,d=_createForOfIteratorHelper(u),_.prev=12,d.s();case 14:if((v=d.n()).done){_.next=24;break}if(!("cachedResponseWillBeUsed"in(y=v.value))){_.next=22;break}return m=y.cachedResponseWillBeUsed,_.next=20,m.call(y,{cacheName:r,event:o,matchOptions:c,cachedResponse:p,request:h});case 20:p=_.sent;case 22:_.next=14;break;case 24:_.next=29;break;case 26:_.prev=26,_.t0=_.catch(12),d.e(_.t0);case 29:return _.prev=29,d.f(),_.finish(29);case 32:return _.abrupt("return",p);case 33:case"end":return _.stop()}}),_callee3,null,[[12,26,29,32]])})));return function matchWrapper(r){return t.apply(this,arguments)}}(),w={put:function(){var t=_asyncToGenerator(_.a.mark((function _callee4(t){var r,a,o,i,u,l,h,p,d,v,w,k,R,T,C;return _.a.wrap((function _callee4$(_){for(;;)switch(_.prev=_.next){case 0:r=t.cacheName,a=t.request,o=t.response,i=t.event,u=t.plugins,l=void 0===u?[]:u,h=t.matchOptions,_.next=4;break;case 4:return _.next=6,g({plugins:l,request:a,mode:"write"});case 6:if(p=_.sent,o){_.next=10;break}throw new c("cache-put-with-no-response",{url:y(p.url)});case 10:return _.next=12,x({event:i,plugins:l,response:o,request:p});case 12:if(d=_.sent){_.next=16;break}return _.abrupt("return");case 16:return _.next=18,self.caches.open(r);case 18:if(v=_.sent,!((w=m(l,"cacheDidUpdate")).length>0)){_.next=26;break}return _.next=23,b({cacheName:r,matchOptions:h,request:p});case 23:_.t0=_.sent,_.next=27;break;case 26:_.t0=null;case 27:return k=_.t0,_.prev=29,_.next=32,v.put(p,d);case 32:_.next=40;break;case 34:if(_.prev=34,_.t1=_.catch(29),"QuotaExceededError"!==_.t1.name){_.next=39;break}return _.next=39,executeQuotaErrorCallbacks();case 39:throw _.t1;case 40:R=_createForOfIteratorHelper(w),_.prev=41,R.s();case 43:if((T=R.n()).done){_.next=49;break}return C=T.value,_.next=47,C.cacheDidUpdate.call(C,{cacheName:r,event:i,oldResponse:k,newResponse:d,request:p});case 47:_.next=43;break;case 49:_.next=54;break;case 51:_.prev=51,_.t2=_.catch(41),R.e(_.t2);case 54:return _.prev=54,R.f(),_.finish(54);case 57:case"end":return _.stop()}}),_callee4,null,[[29,34],[41,51,54,57]])})));return function putWrapper(r){return t.apply(this,arguments)}}(),match:b};function canConstructResponseFromBodyStream(){if(void 0===v){var t=new Response("");if("body"in t)try{new Response(t.body),v=!0}catch(t){v=!1}v=!1}return v}function dontWaitFor(t){t.then((function(){}))}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var a=[],o=!0,c=!1,i=void 0;try{for(var u,l=t[Symbol.iterator]();!(o=(u=l.next()).done)&&(a.push(u.value),!r||a.length!==r);o=!0);}catch(t){c=!0,i=t}finally{try{o||null==l.return||l.return()}finally{if(c)throw i}}return a}}(t,r)||_unsupportedIterableToArray(t,r)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _defineProperties(t,r){for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:{},c=o.onupgradeneeded,i=o.onversionchange;_classCallCheck(this,DBWrapper),this._db=null,this._name=t,this._version=r,this._onupgradeneeded=c,this._onversionchange=i||function(){return a.close()}}var t,r,a,o,c,i,u;return _createClass(DBWrapper,[{key:"open",value:(u=_asyncToGenerator(_.a.mark((function _callee(){var t=this;return _.a.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:if(!this._db){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,new Promise((function(r,a){var o=!1;setTimeout((function(){o=!0,a(new Error("The open request was blocked and timed out"))}),t.OPEN_TIMEOUT);var c=indexedDB.open(t._name,t._version);c.onerror=function(){return a(c.error)},c.onupgradeneeded=function(r){o?(c.transaction.abort(),c.result.close()):"function"==typeof t._onupgradeneeded&&t._onupgradeneeded(r)},c.onsuccess=function(){var a=c.result;o?a.close():(a.onversionchange=t._onversionchange.bind(t),r(a))}}));case 4:return this._db=r.sent,r.abrupt("return",this);case 6:case"end":return r.stop()}}),_callee,this)}))),function open(){return u.apply(this,arguments)})},{key:"getKey",value:(i=_asyncToGenerator(_.a.mark((function _callee2(t,r){return _.a.wrap((function _callee2$(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.getAllKeys(t,r,1);case 2:return a.abrupt("return",a.sent[0]);case 3:case"end":return a.stop()}}),_callee2,this)}))),function getKey(t,r){return i.apply(this,arguments)})},{key:"getAll",value:(c=_asyncToGenerator(_.a.mark((function _callee3(t,r,a){return _.a.wrap((function _callee3$(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this.getAllMatching(t,{query:r,count:a});case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}}),_callee3,this)}))),function getAll(t,r,a){return c.apply(this,arguments)})},{key:"getAllKeys",value:(o=_asyncToGenerator(_.a.mark((function _callee4(t,r,a){var o;return _.a.wrap((function _callee4$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.getAllMatching(t,{query:r,count:a,includeKeys:!0});case 2:return o=c.sent,c.abrupt("return",o.map((function(t){return t.key})));case 4:case"end":return c.stop()}}),_callee4,this)}))),function getAllKeys(t,r,a){return o.apply(this,arguments)})},{key:"getAllMatching",value:(a=_asyncToGenerator(_.a.mark((function _callee5(t){var r,a,o,c,i,u,l,h,p,d=arguments;return _.a.wrap((function _callee5$(_){for(;;)switch(_.prev=_.next){case 0:return r=d.length>1&&void 0!==d[1]?d[1]:{},a=r.index,o=r.query,c=void 0===o?null:o,i=r.direction,u=void 0===i?"next":i,l=r.count,h=r.includeKeys,p=void 0!==h&&h,_.next=3,this.transaction([t],"readonly",(function(r,o){var i=r.objectStore(t),h=a?i.index(a):i,d=[],_=h.openCursor(c,u);_.onsuccess=function(){var t=_.result;t?(d.push(p?t:t.value),l&&d.length>=l?o(d):t.continue()):o(d)}}));case 3:return _.abrupt("return",_.sent);case 4:case"end":return _.stop()}}),_callee5,this)}))),function getAllMatching(t){return a.apply(this,arguments)})},{key:"transaction",value:(r=_asyncToGenerator(_.a.mark((function _callee6(t,r,a){var o=this;return _.a.wrap((function _callee6$(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.open();case 2:return c.next=4,new Promise((function(c,i){var u=o._db.transaction(t,r);u.onabort=function(){return i(u.error)},u.oncomplete=function(){return c()},a(u,(function(t){return c(t)}))}));case 4:return c.abrupt("return",c.sent);case 5:case"end":return c.stop()}}),_callee6,this)}))),function transaction(t,a,o){return r.apply(this,arguments)})},{key:"_call",value:(t=_asyncToGenerator(_.a.mark((function _callee7(t,r,a){var o,c,i,u,l=arguments;return _.a.wrap((function _callee7$(h){for(;;)switch(h.prev=h.next){case 0:for(o=l.length,c=new Array(o>3?o-3:0),i=3;i1?o-1:0),i=1;i0?r.clone():null,_.prev=12,d=_createForOfIteratorHelper(u),_.prev=14,d.s();case 16:if((v=d.n()).done){_.next=27;break}if(!("requestWillFetch"in(y=v.value))){_.next=25;break}return g=y.requestWillFetch,x=r.clone(),_.next=23,g.call(y,{request:x,event:o});case 23:r=_.sent;case 25:_.next=16;break;case 27:_.next=32;break;case 29:_.prev=29,_.t0=_.catch(14),d.e(_.t0);case 32:return _.prev=32,d.f(),_.finish(32);case 35:_.next=40;break;case 37:throw _.prev=37,_.t1=_.catch(12),new c("plugin-error-request-will-fetch",{thrownError:_.t1});case 40:if(b=r.clone(),_.prev=41,"navigate"!==r.mode){_.next=48;break}return _.next=45,fetch(r);case 45:w=_.sent,_.next=51;break;case 48:return _.next=50,fetch(r,a);case 50:w=_.sent;case 51:0,k=_createForOfIteratorHelper(u),_.prev=53,k.s();case 55:if((R=k.n()).done){_.next=64;break}if(!("fetchDidSucceed"in(T=R.value))){_.next=62;break}return _.next=60,T.fetchDidSucceed.call(T,{event:o,request:b,response:w});case 60:w=_.sent;case 62:_.next=55;break;case 64:_.next=69;break;case 66:_.prev=66,_.t2=_.catch(53),k.e(_.t2);case 69:return _.prev=69,k.f(),_.finish(69);case 72:return _.abrupt("return",w);case 75:_.prev=75,_.t3=_.catch(41),C=_createForOfIteratorHelper(h),_.prev=79,C.s();case 81:if((E=C.n()).done){_.next=87;break}return L=E.value,_.next=85,L.fetchDidFail.call(L,{error:_.t3,event:o,originalRequest:p.clone(),request:b.clone()});case 85:_.next=81;break;case 87:_.next=92;break;case 89:_.prev=89,_.t4=_.catch(79),C.e(_.t4);case 92:return _.prev=92,C.f(),_.finish(92);case 95:throw _.t3;case 96:case"end":return _.stop()}}),_callee,null,[[12,37],[14,29,32,35],[41,75],[53,66,69,72],[79,89,92,95]])})));return function wrappedFetch(r){return t.apply(this,arguments)}}()};function copyResponse(t,r){return _copyResponse.apply(this,arguments)}function _copyResponse(){return(_copyResponse=_asyncToGenerator(_.a.mark((function _callee(t,r){var a,o,c,i;return _.a.wrap((function _callee$(u){for(;;)switch(u.prev=u.next){case 0:if(a=t.clone(),o={headers:new Headers(a.headers),status:a.status,statusText:a.statusText},c=r?r(o):o,!canConstructResponseFromBodyStream()){u.next=7;break}u.t0=a.body,u.next=10;break;case 7:return u.next=9,a.blob();case 9:u.t0=u.sent;case 10:return i=u.t0,u.abrupt("return",new Response(i,c));case 12:case"end":return u.stop()}}),_callee)})))).apply(this,arguments)}a(5);var O="cache-entries",q=function normalizeURL(t){var r=new URL(t,location.href);return r.hash="",r.href},S=function(){function CacheTimestampsModel(t){var r=this;_classCallCheck(this,CacheTimestampsModel),this._cacheName=t,this._db=new k("workbox-expiration",1,{onupgradeneeded:function onupgradeneeded(t){return r._handleUpgrade(t)}})}var t,r,a;return _createClass(CacheTimestampsModel,[{key:"_handleUpgrade",value:function _handleUpgrade(t){var r=t.target.result.createObjectStore(O,{keyPath:"id"});r.createIndex("cacheName","cacheName",{unique:!1}),r.createIndex("timestamp","timestamp",{unique:!1}),E(this._cacheName)}},{key:"setTimestamp",value:(a=_asyncToGenerator(_.a.mark((function _callee(t,r){var a;return _.a.wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:return t=q(t),a={url:t,timestamp:r,cacheName:this._cacheName,id:this._getId(t)},o.next=4,this._db.put(O,a);case 4:case"end":return o.stop()}}),_callee,this)}))),function setTimestamp(t,r){return a.apply(this,arguments)})},{key:"getTimestamp",value:(r=_asyncToGenerator(_.a.mark((function _callee2(t){var r;return _.a.wrap((function _callee2$(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this._db.get(O,this._getId(t));case 2:return r=a.sent,a.abrupt("return",r.timestamp);case 4:case"end":return a.stop()}}),_callee2,this)}))),function getTimestamp(t){return r.apply(this,arguments)})},{key:"expireEntries",value:(t=_asyncToGenerator(_.a.mark((function _callee3(t,r){var a,o,c,i,u,l=this;return _.a.wrap((function _callee3$(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,this._db.transaction(O,"readwrite",(function(a,o){var c=a.objectStore(O).index("timestamp").openCursor(null,"prev"),i=[],u=0;c.onsuccess=function(){var a=c.result;if(a){var h=a.value;h.cacheName===l._cacheName&&(t&&h.timestamp=r?i.push(a.value):u++),a.continue()}else o(i)}}));case 2:a=h.sent,o=[],c=_createForOfIteratorHelper(a),h.prev=5,c.s();case 7:if((i=c.n()).done){h.next=14;break}return u=i.value,h.next=11,this._db.delete(O,u.id);case 11:o.push(u.url);case 12:h.next=7;break;case 14:h.next=19;break;case 16:h.prev=16,h.t0=h.catch(5),c.e(h.t0);case 19:return h.prev=19,c.f(),h.finish(19);case 22:return h.abrupt("return",o);case 23:case"end":return h.stop()}}),_callee3,this,[[5,16,19,22]])}))),function expireEntries(r,a){return t.apply(this,arguments)})},{key:"_getId",value:function _getId(t){return this._cacheName+"|"+q(t)}}]),CacheTimestampsModel}(),A=function(){function CacheExpiration(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,CacheExpiration),this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=r.maxEntries,this._maxAgeSeconds=r.maxAgeSeconds,this._cacheName=t,this._timestampModel=new S(t)}var t,r,a,o;return _createClass(CacheExpiration,[{key:"expireEntries",value:(o=_asyncToGenerator(_.a.mark((function _callee(){var t,r,a,o,c,i;return _.a.wrap((function _callee$(u){for(;;)switch(u.prev=u.next){case 0:if(!this._isRunning){u.next=3;break}return this._rerunRequested=!0,u.abrupt("return");case 3:return this._isRunning=!0,t=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,u.next=7,this._timestampModel.expireEntries(t,this._maxEntries);case 7:return r=u.sent,u.next=10,self.caches.open(this._cacheName);case 10:a=u.sent,o=_createForOfIteratorHelper(r),u.prev=12,o.s();case 14:if((c=o.n()).done){u.next=20;break}return i=c.value,u.next=18,a.delete(i);case 18:u.next=14;break;case 20:u.next=25;break;case 22:u.prev=22,u.t0=u.catch(12),o.e(u.t0);case 25:return u.prev=25,o.f(),u.finish(25);case 28:this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,dontWaitFor(this.expireEntries()));case 31:case"end":return u.stop()}}),_callee,this,[[12,22,25,28]])}))),function expireEntries(){return o.apply(this,arguments)})},{key:"updateTimestamp",value:(a=_asyncToGenerator(_.a.mark((function _callee2(t){return _.a.wrap((function _callee2$(r){for(;;)switch(r.prev=r.next){case 0:return r.next=3,this._timestampModel.setTimestamp(t,Date.now());case 3:case"end":return r.stop()}}),_callee2,this)}))),function updateTimestamp(t){return a.apply(this,arguments)})},{key:"isURLExpired",value:(r=_asyncToGenerator(_.a.mark((function _callee3(t){var r,a;return _.a.wrap((function _callee3$(o){for(;;)switch(o.prev=o.next){case 0:if(this._maxAgeSeconds){o.next=6;break}o.next=3;break;case 3:return o.abrupt("return",!1);case 6:return o.next=8,this._timestampModel.getTimestamp(t);case 8:return r=o.sent,a=Date.now()-1e3*this._maxAgeSeconds,o.abrupt("return",r0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,ExpirationPlugin),this.cachedResponseWillBeUsed=function(){var r=_asyncToGenerator(_.a.mark((function _callee(r){var a,o,c,i,u,l,h;return _.a.wrap((function _callee$(p){for(;;)switch(p.prev=p.next){case 0:if(a=r.event,o=r.request,c=r.cacheName,i=r.cachedResponse){p.next=3;break}return p.abrupt("return",null);case 3:if(u=t._isResponseDateFresh(i),dontWaitFor((l=t._getCacheExpiration(c)).expireEntries()),h=l.updateTimestamp(o.url),a)try{a.waitUntil(h)}catch(t){0}return p.abrupt("return",u?i:null);case 9:case"end":return p.stop()}}),_callee)})));return function(t){return r.apply(this,arguments)}}(),this.cacheDidUpdate=function(){var r=_asyncToGenerator(_.a.mark((function _callee2(r){var a,o,c;return _.a.wrap((function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:return a=r.cacheName,o=r.request,c=t._getCacheExpiration(a),i.next=5,c.updateTimestamp(o.url);case 5:return i.next=7,c.expireEntries();case 7:case"end":return i.stop()}}),_callee2)})));return function(t){return r.apply(this,arguments)}}(),this._config=r,this._maxAgeSeconds=r.maxAgeSeconds,this._cacheExpirations=new Map,r.purgeOnQuotaError&®isterQuotaErrorCallback((function(){return t.deleteCacheAndMetadata()}))}var t;return _createClass(ExpirationPlugin,[{key:"_getCacheExpiration",value:function _getCacheExpiration(t){if(t===p())throw new c("expire-custom-caches-only");var r=this._cacheExpirations.get(t);return r||(r=new A(t,this._config),this._cacheExpirations.set(t,r)),r}},{key:"_isResponseDateFresh",value:function _isResponseDateFresh(t){if(!this._maxAgeSeconds)return!0;var r=this._getDateHeaderTimestamp(t);return null===r||r>=Date.now()-1e3*this._maxAgeSeconds}},{key:"_getDateHeaderTimestamp",value:function _getDateHeaderTimestamp(t){if(!t.headers.has("date"))return null;var r=t.headers.get("date"),a=new Date(r).getTime();return isNaN(a)?null:a}},{key:"deleteCacheAndMetadata",value:(t=_asyncToGenerator(_.a.mark((function _callee3(){var t,r,a,o,c;return _.a.wrap((function _callee3$(i){for(;;)switch(i.prev=i.next){case 0:t=_createForOfIteratorHelper(this._cacheExpirations),i.prev=1,t.s();case 3:if((r=t.n()).done){i.next=11;break}return a=_slicedToArray(r.value,2),o=a[0],c=a[1],i.next=7,self.caches.delete(o);case 7:return i.next=9,c.delete();case 9:i.next=3;break;case 11:i.next=16;break;case 13:i.prev=13,i.t0=i.catch(1),t.e(i.t0);case 16:return i.prev=16,t.f(),i.finish(16);case 19:this._cacheExpirations=new Map;case 20:case"end":return i.stop()}}),_callee3,this,[[1,13,16,19]])}))),function deleteCacheAndMetadata(){return t.apply(this,arguments)})}]),ExpirationPlugin}(),U=(a(2),[]),P=function get(){return U};function createCacheKey(t){if(!t)throw new c("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){var r=new URL(t,location.href);return{cacheKey:r.href,url:r.href}}var a=t.revision,o=t.url;if(!o)throw new c("add-to-cache-list-unexpected-type",{entry:t});if(!a){var i=new URL(o,location.href);return{cacheKey:i.href,url:i.href}}var u=new URL(o,location.href),l=new URL(o,location.href);return u.searchParams.set("__WB_REVISION__",a),{cacheKey:u.href,url:l.href}}var N,G=function(){function PrecacheController(t){_classCallCheck(this,PrecacheController),this._cacheName=h(t),this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map}var t,r,a,o;return _createClass(PrecacheController,[{key:"addToCacheList",value:function addToCacheList(t){var r,a=[],o=_createForOfIteratorHelper(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;"string"==typeof i?a.push(i):i&&void 0===i.revision&&a.push(i.url);var u=createCacheKey(i),l=u.cacheKey,h=u.url,p="string"!=typeof i&&i.revision?"reload":"default";if(this._urlsToCacheKeys.has(h)&&this._urlsToCacheKeys.get(h)!==l)throw new c("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(h),secondEntry:l});if("string"!=typeof i&&i.integrity){if(this._cacheKeysToIntegrities.has(l)&&this._cacheKeysToIntegrities.get(l)!==i.integrity)throw new c("add-to-cache-list-conflicting-integrities",{url:h});this._cacheKeysToIntegrities.set(l,i.integrity)}if(this._urlsToCacheKeys.set(h,l),this._urlsToCacheModes.set(h,p),a.length>0){var d="Workbox is precaching URLs without revision "+"info: ".concat(a.join(", "),"\nThis is generally NOT safe. ")+"Learn more at https://bit.ly/wb-precache";console.warn(d)}}}catch(t){o.e(t)}finally{o.f()}}},{key:"install",value:(o=_asyncToGenerator(_.a.mark((function _callee(){var t,r,a,o,c,i,u,l,h,p,d,v,y,m,g,x=this,b=arguments;return _.a.wrap((function _callee$(_){for(;;)switch(_.prev=_.next){case 0:return t=b.length>0&&void 0!==b[0]?b[0]:{},r=t.event,a=t.plugins,o=[],c=[],_.next=6,self.caches.open(this._cacheName);case 6:return i=_.sent,_.next=9,i.keys();case 9:u=_.sent,l=new Set(u.map((function(t){return t.url}))),h=_createForOfIteratorHelper(this._urlsToCacheKeys);try{for(h.s();!(p=h.n()).done;)d=_slicedToArray(p.value,2),v=d[0],y=d[1],l.has(y)?c.push(v):o.push({cacheKey:y,url:v})}catch(t){h.e(t)}finally{h.f()}return m=o.map((function(t){var o=t.cacheKey,c=t.url,i=x._cacheKeysToIntegrities.get(o),u=x._urlsToCacheModes.get(c);return x._addURLToCache({cacheKey:o,cacheMode:u,event:r,integrity:i,plugins:a,url:c})})),_.next=16,Promise.all(m);case 16:return g=o.map((function(t){return t.url})),_.abrupt("return",{updatedURLs:g,notUpdatedURLs:c});case 19:case"end":return _.stop()}}),_callee,this)}))),function install(){return o.apply(this,arguments)})},{key:"activate",value:(a=_asyncToGenerator(_.a.mark((function _callee2(){var t,r,a,o,c,i,u;return _.a.wrap((function _callee2$(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,self.caches.open(this._cacheName);case 2:return t=l.sent,l.next=5,t.keys();case 5:r=l.sent,a=new Set(this._urlsToCacheKeys.values()),o=[],c=_createForOfIteratorHelper(r),l.prev=9,c.s();case 11:if((i=c.n()).done){l.next=19;break}if(u=i.value,a.has(u.url)){l.next=17;break}return l.next=16,t.delete(u);case 16:o.push(u.url);case 17:l.next=11;break;case 19:l.next=24;break;case 21:l.prev=21,l.t0=l.catch(9),c.e(l.t0);case 24:return l.prev=24,c.f(),l.finish(24);case 27:return l.abrupt("return",{deletedURLs:o});case 29:case"end":return l.stop()}}),_callee2,this,[[9,21,24,27]])}))),function activate(){return a.apply(this,arguments)})},{key:"_addURLToCache",value:(r=_asyncToGenerator(_.a.mark((function _callee3(t){var r,a,o,i,u,l,h,p,d,v,y,m;return _.a.wrap((function _callee3$(_){for(;;)switch(_.prev=_.next){case 0:return r=t.cacheKey,a=t.url,o=t.cacheMode,i=t.event,u=t.plugins,l=t.integrity,h=new Request(a,{integrity:l,cache:o,credentials:"same-origin"}),_.next=4,L.fetch({event:i,plugins:u,request:h});case 4:p=_.sent,v=_createForOfIteratorHelper(u||[]);try{for(v.s();!(y=v.n()).done;)"cacheWillUpdate"in(m=y.value)&&(d=m)}catch(t){v.e(t)}finally{v.f()}if(!d){_.next=13;break}return _.next=10,d.cacheWillUpdate({event:i,request:h,response:p});case 10:_.t0=_.sent,_.next=14;break;case 13:_.t0=p.status<400;case 14:if(_.t0){_.next=17;break}throw new c("bad-precaching-response",{url:a,status:p.status});case 17:if(!p.redirected){_.next=21;break}return _.next=20,copyResponse(p);case 20:p=_.sent;case 21:return _.next=23,w.put({event:i,plugins:u,response:p,request:r===a?h:new Request(r),cacheName:this._cacheName,matchOptions:{ignoreSearch:!0}});case 23:case"end":return _.stop()}}),_callee3,this)}))),function _addURLToCache(t){return r.apply(this,arguments)})},{key:"getURLsToCacheKeys",value:function getURLsToCacheKeys(){return this._urlsToCacheKeys}},{key:"getCachedURLs",value:function getCachedURLs(){return _toConsumableArray(this._urlsToCacheKeys.keys())}},{key:"getCacheKeyForURL",value:function getCacheKeyForURL(t){var r=new URL(t,location.href);return this._urlsToCacheKeys.get(r.href)}},{key:"matchPrecache",value:(t=_asyncToGenerator(_.a.mark((function _callee4(t){var r,a,o;return _.a.wrap((function _callee4$(c){for(;;)switch(c.prev=c.next){case 0:if(r=t instanceof Request?t.url:t,!(a=this.getCacheKeyForURL(r))){c.next=7;break}return c.next=5,self.caches.open(this._cacheName);case 5:return o=c.sent,c.abrupt("return",o.match(a));case 7:return c.abrupt("return",void 0);case 8:case"end":return c.stop()}}),_callee4,this)}))),function matchPrecache(r){return t.apply(this,arguments)})},{key:"createHandler",value:function createHandler(){var t=this,r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(){var a=_asyncToGenerator(_.a.mark((function _callee5(a){var o,i;return _.a.wrap((function _callee5$(u){for(;;)switch(u.prev=u.next){case 0:return o=a.request,u.prev=1,u.next=4,t.matchPrecache(o);case 4:if(!(i=u.sent)){u.next=7;break}return u.abrupt("return",i);case 7:throw new c("missing-precache-entry",{cacheName:t._cacheName,url:o instanceof Request?o.url:o});case 10:if(u.prev=10,u.t0=u.catch(1),!r){u.next=15;break}return u.abrupt("return",fetch(o));case 15:throw u.t0;case 16:case"end":return u.stop()}}),_callee5,null,[[1,10]])})));return function(t){return a.apply(this,arguments)}}()}},{key:"createHandlerBoundToURL",value:function createHandlerBoundToURL(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this.getCacheKeyForURL(t);if(!a)throw new c("non-precached-url",{url:t});var o=this.createHandler(r),i=new Request(t);return function(){return o({request:i})}}}]),PrecacheController}(),M=function getOrCreatePrecacheController(){return N||(N=new G),N};function removeIgnoredSearchParams(t){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=function _loop(){var a=c[o];r.some((function(t){return t.test(a)}))&&t.searchParams.delete(a)},o=0,c=_toConsumableArray(t.searchParams.keys());o1&&void 0!==g[1]?g[1]:{},a=r.ignoreURLParametersMatching,o=r.directoryIndex,c=r.cleanURLs,i=r.urlManipulation,(u=new URL(t,location.href)).hash="",_.next=5,u.href;case 5:return l=removeIgnoredSearchParams(u,a),_.next=8,l.href;case 8:if(!o||!l.pathname.endsWith("/")){_.next=13;break}return(h=new URL(l.href)).pathname+=o,_.next=13,h.href;case 13:if(!c){_.next=18;break}return(p=new URL(l.href)).pathname+=".html",_.next=18,p.href;case 18:if(!i){_.next=37;break}d=i({url:u}),v=_createForOfIteratorHelper(d),_.prev=21,v.s();case 23:if((y=v.n()).done){_.next=29;break}return m=y.value,_.next=27,m.href;case 27:_.next=23;break;case 29:_.next=34;break;case 31:_.prev=31,_.t0=_.catch(21),v.e(_.t0);case 34:return _.prev=34,v.f(),_.finish(34);case 37:case"end":return _.stop()}}),W,null,[[21,31,34,37]])}var H=function getCacheKeyForURL(t,r){var a,o=M().getURLsToCacheKeys(),c=_createForOfIteratorHelper(generateURLVariations(t,r));try{for(c.s();!(a=c.n()).done;){var i=a.value,u=o.get(i);if(u)return u}}catch(t){c.e(t)}finally{c.f()}},j=!1;function addRoute(t){j||(!function addFetchListener(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.ignoreURLParametersMatching,a=void 0===r?[/^utm_/]:r,o=t.directoryIndex,c=void 0===o?"index.html":o,i=t.cleanURLs,u=void 0===i||i,l=t.urlManipulation,p=h();self.addEventListener("fetch",(function(t){var r=H(t.request.url,{cleanURLs:u,directoryIndex:c,ignoreURLParametersMatching:a,urlManipulation:l});if(r){var o=self.caches.open(p).then((function(t){return t.match(r)})).then((function(t){return t||fetch(r)}));t.respondWith(o)}}))}(t),j=!0)}var K=function installListener(t){var r=M(),a=P();t.waitUntil(r.install({event:t,plugins:a}).catch((function(t){throw t})))},D=function activateListener(t){var r=M();t.waitUntil(r.activate())};a(3);var $,B=function normalizeHandler(t){return t&&"object"==typeof t?t:{handle:t}},Q=function Route(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET";_classCallCheck(this,Route),this.handler=B(r),this.match=t,this.method=a},V=function(t){_inherits(RegExpRoute,t);var r=_createSuper(RegExpRoute);function RegExpRoute(t,a,o){_classCallCheck(this,RegExpRoute);return r.call(this,(function match(r){var a=r.url,o=t.exec(a.href);if(o&&(a.origin===location.origin||0===o.index))return o.slice(1)}),a,o)}return RegExpRoute}(Q),z=function(){function Router(){_classCallCheck(this,Router),this._routes=new Map}return _createClass(Router,[{key:"addFetchListener",value:function addFetchListener(){var t=this;self.addEventListener("fetch",(function(r){var a=r.request,o=t.handleRequest({request:a,event:r});o&&r.respondWith(o)}))}},{key:"addCacheListener",value:function addCacheListener(){var t=this;self.addEventListener("message",(function(r){if(r.data&&"CACHE_URLS"===r.data.type){var a=r.data.payload;0;var o=Promise.all(a.urlsToCache.map((function(r){"string"==typeof r&&(r=[r]);var a=construct_construct(Request,_toConsumableArray(r));return t.handleRequest({request:a})})));r.waitUntil(o),r.ports&&r.ports[0]&&o.then((function(){return r.ports[0].postMessage(!0)}))}}))}},{key:"handleRequest",value:function handleRequest(t){var r=this,a=t.request,o=t.event;var c=new URL(a.url,location.href);if(c.protocol.startsWith("http")){var i=this.findMatchingRoute({url:c,request:a,event:o}),u=i.params,l=i.route,h=l&&l.handler;if(!h&&this._defaultHandler&&(h=this._defaultHandler),h){var p;0;try{p=h.handle({url:c,request:a,event:o,params:u})}catch(t){p=Promise.reject(t)}return p instanceof Promise&&this._catchHandler&&(p=p.catch((function(t){return r._catchHandler.handle({url:c,request:a,event:o})}))),p}}}},{key:"findMatchingRoute",value:function findMatchingRoute(t){var r=t.url,a=t.request,o=t.event;var c,i=_createForOfIteratorHelper(this._routes.get(a.method)||[]);try{for(i.s();!(c=i.n()).done;){var u=c.value,l=void 0,h=u.match({url:r,request:a,event:o});if(h)return l=h,(Array.isArray(h)&&0===h.length||h.constructor===Object&&0===Object.keys(h).length||"boolean"==typeof h)&&(l=void 0),{route:u,params:l}}}catch(t){i.e(t)}finally{i.f()}return{}}},{key:"setDefaultHandler",value:function setDefaultHandler(t){this._defaultHandler=B(t)}},{key:"setCatchHandler",value:function setCatchHandler(t){this._catchHandler=B(t)}},{key:"registerRoute",value:function registerRoute(t){this._routes.has(t.method)||this._routes.set(t.method,[]),this._routes.get(t.method).push(t)}},{key:"unregisterRoute",value:function unregisterRoute(t){if(!this._routes.has(t.method))throw new c("unregister-route-but-not-found-with-method",{method:t.method});var r=this._routes.get(t.method).indexOf(t);if(!(r>-1))throw new c("unregister-route-route-not-registered");this._routes.get(t.method).splice(r,1)}},{key:"routes",get:function get(){return this._routes}}]),Router}(),Y=function getOrCreateDefaultRouter(){return $||(($=new z).addFetchListener(),$.addCacheListener()),$};function registerRoute(t,r,a){var o;if("string"==typeof t){var i=new URL(t,location.href);o=new Q((function matchCallback(t){return t.url.href===i.href}),r,a)}else if(t instanceof RegExp)o=new V(t,r,a);else if("function"==typeof t)o=new Q(t,r,a);else{if(!(t instanceof Q))throw new c("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});o=t}return Y().registerRoute(o),o}a(4);var J,X={cacheWillUpdate:(J=_asyncToGenerator(_.a.mark((function _callee(t){var r;return _.a.wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:if(200!==(r=t.response).status&&0!==r.status){a.next=3;break}return a.abrupt("return",r);case 3:return a.abrupt("return",null);case 4:case"end":return a.stop()}}),_callee)}))),function cacheWillUpdate(t){return J.apply(this,arguments)})},Z=function(){function StaleWhileRevalidate(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,StaleWhileRevalidate),this._cacheName=p(t.cacheName),this._plugins=t.plugins||[],t.plugins){var r=t.plugins.some((function(t){return!!t.cacheWillUpdate}));this._plugins=r?t.plugins:[X].concat(_toConsumableArray(t.plugins))}else this._plugins=[X];this._fetchOptions=t.fetchOptions,this._matchOptions=t.matchOptions}var t,r;return _createClass(StaleWhileRevalidate,[{key:"handle",value:(r=_asyncToGenerator(_.a.mark((function _callee(t){var r,a,o,i,u;return _.a.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:return r=t.event,"string"==typeof(a=t.request)&&(a=new Request(a)),o=this._getFromNetwork({request:a,event:r}),l.next=7,w.match({cacheName:this._cacheName,request:a,event:r,matchOptions:this._matchOptions,plugins:this._plugins});case 7:if(!(i=l.sent)){l.next=13;break}if(r)try{r.waitUntil(o)}catch(t){}l.next=23;break;case 13:return l.prev=14,l.next=17,o;case 17:i=l.sent,l.next=23;break;case 20:l.prev=20,l.t0=l.catch(14),u=l.t0;case 23:if(i){l.next=26;break}throw new c("no-response",{url:a.url,error:u});case 26:return l.abrupt("return",i);case 27:case"end":return l.stop()}}),_callee,this,[[14,20]])}))),function handle(t){return r.apply(this,arguments)})},{key:"_getFromNetwork",value:(t=_asyncToGenerator(_.a.mark((function _callee2(t){var r,a,o,c;return _.a.wrap((function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:return r=t.request,a=t.event,i.next=3,L.fetch({request:r,event:a,fetchOptions:this._fetchOptions,plugins:this._plugins});case 3:if(o=i.sent,c=w.put({cacheName:this._cacheName,request:r,response:o.clone(),event:a,plugins:this._plugins}),a)try{a.waitUntil(c)}catch(t){}return i.abrupt("return",o);case 7:case"end":return i.stop()}}),_callee2,this)}))),function _getFromNetwork(r){return t.apply(this,arguments)})}]),StaleWhileRevalidate}();!function clientsClaim(){self.addEventListener("activate",(function(){return self.clients.claim()}))}(),function precacheAndRoute(t,r){!function precache(t){M().addToCacheList(t),t.length>0&&(self.addEventListener("install",K),self.addEventListener("activate",D))}(t),addRoute(r)}([{'revision':null,'url':'build/2.d9338536.js'},{'revision':null,'url':'build/bundle.f0f5edae.js'},{'revision':null,'url':'build/main.c534b235.js'},{'revision':'c65c8d6465a87009af9d4041f5a7b6f8','url':'index.html'},{'revision':null,'url':'static/media/EMELAY_logoDark.b1bb74dd.png'},{'revision':null,'url':'static/media/Emealay_Logo_weiss.bed4eea8.png'}]);var ee=new RegExp("/[^/?]+\\.[^/]+$");registerRoute((function(t){var r=t.request,a=t.url;return"navigate"===r.mode&&(!a.pathname.startsWith("/_")&&!a.pathname.match(ee))}),function createHandlerBoundToURL_createHandlerBoundToURL(t){return M().createHandlerBoundToURL(t)}("/index.html")),registerRoute((function(t){var r=t.url;return r.origin===self.location.origin&&r.pathname.endsWith(".png")}),new Z({cacheName:"images",plugins:[new I({maxEntries:50})]})),self.addEventListener("message",(function(t){t.data&&"SKIP_WAITING"===t.data.type&&self.skipWaiting()}))}]);