-
Notifications
You must be signed in to change notification settings - Fork 1
/
service-worker.js
2 lines (2 loc) · 15.4 KB
/
service-worker.js
1
2
!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="./",r(r.s=2)}([function(t,e,r){t.exports=r(4)},function(t,e,r){"use strict";function n(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(s){return void r(s)}c.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}r.d(e,"a",(function(){return o}))},function(t,e,r){"use strict";r.r(e),function(t){var e=r(0),n=r.n(e),o=r(1),i="undefined"===typeof t||!1;i?(importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"),workbox.setConfig({debug:!0})):importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"),self.addEventListener("message",(function(t){t.data&&"SKIP_WAITING"===t.data.type&&self.skipWaiting()})),workbox.core.clientsClaim(),i||(workbox.precaching.precacheAndRoute([{'revision':'e64bc2c572eb8fc1cc5244816b288e22','url':'./index.html'},{'revision':null,'url':'./static/css/main.ead42fdd.chunk.css'},{'revision':null,'url':'./static/js/0.161fbce8.chunk.js'},{'revision':null,'url':'./static/js/55.130a8a2e.chunk.js'},{'revision':null,'url':'./static/js/56.e8301889.chunk.js'},{'revision':null,'url':'./static/js/57.fd0125af.chunk.js'},{'revision':null,'url':'./static/js/58.e2742ad2.chunk.js'},{'revision':null,'url':'./static/js/59.df6342f6.chunk.js'},{'revision':null,'url':'./static/js/60.a39c37c1.chunk.js'},{'revision':null,'url':'./static/js/61.74530ff2.chunk.js'},{'revision':null,'url':'./static/js/62.f7e18b20.chunk.js'},{'revision':null,'url':'./static/js/63.58f957a3.chunk.js'},{'revision':null,'url':'./static/js/64.b8a80f35.chunk.js'},{'revision':null,'url':'./static/js/65.8ecf9b80.chunk.js'},{'revision':null,'url':'./static/js/66.66735d5d.chunk.js'},{'revision':null,'url':'./static/js/bug-issue-template.6e5e7ef0.chunk.js'},{'revision':null,'url':'./static/js/firebase.23c00bd7.chunk.js'},{'revision':null,'url':'./static/js/locales/ar-SA-json.3960559e.chunk.js'},{'revision':null,'url':'./static/js/locales/bg-BG-json.1982536f.chunk.js'},{'revision':null,'url':'./static/js/locales/bn-BD-json.5a5f23e4.chunk.js'},{'revision':null,'url':'./static/js/locales/ca-ES-json.981fb0a6.chunk.js'},{'revision':null,'url':'./static/js/locales/cs-CZ-json.84260e8e.chunk.js'},{'revision':null,'url':'./static/js/locales/da-DK-json.d7fe7915.chunk.js'},{'revision':null,'url':'./static/js/locales/de-DE-json.7f7e4d20.chunk.js'},{'revision':null,'url':'./static/js/locales/el-GR-json.b0ba8bca.chunk.js'},{'revision':null,'url':'./static/js/locales/es-ES-json.536b632e.chunk.js'},{'revision':null,'url':'./static/js/locales/eu-ES-json.326ac9bf.chunk.js'},{'revision':null,'url':'./static/js/locales/fa-IR-json.ae7d5589.chunk.js'},{'revision':null,'url':'./static/js/locales/fi-FI-json.dc425c44.chunk.js'},{'revision':null,'url':'./static/js/locales/fr-FR-json.fc12f732.chunk.js'},{'revision':null,'url':'./static/js/locales/gl-ES-json.e9679a83.chunk.js'},{'revision':null,'url':'./static/js/locales/he-IL-json.2210a506.chunk.js'},{'revision':null,'url':'./static/js/locales/hi-IN-json.7db57940.chunk.js'},{'revision':null,'url':'./static/js/locales/hu-HU-json.900ff784.chunk.js'},{'revision':null,'url':'./static/js/locales/id-ID-json.7c8bb95b.chunk.js'},{'revision':null,'url':'./static/js/locales/it-IT-json.fd5d216e.chunk.js'},{'revision':null,'url':'./static/js/locales/ja-JP-json.3f4106ff.chunk.js'},{'revision':null,'url':'./static/js/locales/kab-KAB-json.d177c293.chunk.js'},{'revision':null,'url':'./static/js/locales/kk-KZ-json.4a515763.chunk.js'},{'revision':null,'url':'./static/js/locales/ko-KR-json.5ce407c2.chunk.js'},{'revision':null,'url':'./static/js/locales/lt-LT-json.9f877ad8.chunk.js'},{'revision':null,'url':'./static/js/locales/lv-LV-json.748f358c.chunk.js'},{'revision':null,'url':'./static/js/locales/mr-IN-json.96a2be71.chunk.js'},{'revision':null,'url':'./static/js/locales/my-MM-json.e1759f89.chunk.js'},{'revision':null,'url':'./static/js/locales/nb-NO-json.4aaef7bd.chunk.js'},{'revision':null,'url':'./static/js/locales/nl-NL-json.e77637cc.chunk.js'},{'revision':null,'url':'./static/js/locales/nn-NO-json.86de238a.chunk.js'},{'revision':null,'url':'./static/js/locales/oc-FR-json.69c4bc54.chunk.js'},{'revision':null,'url':'./static/js/locales/pa-IN-json.25ec6b57.chunk.js'},{'revision':null,'url':'./static/js/locales/pl-PL-json.0fbbef6f.chunk.js'},{'revision':null,'url':'./static/js/locales/pt-BR-json.455eb291.chunk.js'},{'revision':null,'url':'./static/js/locales/pt-PT-json.b85c8765.chunk.js'},{'revision':null,'url':'./static/js/locales/ro-RO-json.9473e208.chunk.js'},{'revision':null,'url':'./static/js/locales/ru-RU-json.4caf7d4e.chunk.js'},{'revision':null,'url':'./static/js/locales/si-LK-json.404f1b9f.chunk.js'},{'revision':null,'url':'./static/js/locales/sk-SK-json.8deb13bd.chunk.js'},{'revision':null,'url':'./static/js/locales/sl-SI-json.abfe645a.chunk.js'},{'revision':null,'url':'./static/js/locales/sv-SE-json.07a76a0a.chunk.js'},{'revision':null,'url':'./static/js/locales/ta-IN-json.e109d6ce.chunk.js'},{'revision':null,'url':'./static/js/locales/tr-TR-json.fce6349c.chunk.js'},{'revision':null,'url':'./static/js/locales/uk-UA-json.f67ea920.chunk.js'},{'revision':null,'url':'./static/js/locales/vi-VN-json.fc41d3d8.chunk.js'},{'revision':null,'url':'./static/js/locales/zh-CN-json.801b9ffb.chunk.js'},{'revision':null,'url':'./static/js/locales/zh-HK-json.67275986.chunk.js'},{'revision':null,'url':'./static/js/locales/zh-TW-json.dd347c34.chunk.js'},{'revision':null,'url':'./static/js/main.ca8f87a4.chunk.js'},{'revision':null,'url':'./static/js/pwacompat.0ac3826d.chunk.js'},{'revision':null,'url':'./static/js/runtime-main.73bb6ad1.js'},{'revision':null,'url':'./static/js/socketIoClient.2a8ba870.chunk.js'}]),workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("./index.html"),{blacklist:[/^\/_/,/\/[^/?]+\.[^/]+$/]})),workbox.routing.registerRoute(new RegExp("/(fonts.css|.+.(ttf|woff2|otf))"),new workbox.strategies.StaleWhileRevalidate({cacheName:"fonts",plugins:[new workbox.expiration.Plugin({maxEntries:10})]})),self.addEventListener("fetch",(function(t){if("POST"===t.request.method&&t.request.url.endsWith("/web-share-target"))return t.respondWith(Object(o.a)(n.a.mark((function e(){var r,o,i;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.request.formData();case 2:return r=e.sent,o=r.get("file"),e.next=6,caches.open("web-share-target");case 6:return i=e.sent,e.next=9,i.put("shared-file",new Response(o));case 9:return e.abrupt("return",Response.redirect("/?web-share-target",303));case 10:case"end":return e.stop()}}),e)})))())}))}.call(this,r(3))},function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"===typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,s=[],f=!1,l=-1;function h(){f&&u&&(f=!1,u.length?s=u.concat(s):l=-1,s.length&&p())}function p(){if(!f){var t=c(h);f=!0;for(var e=s.length;e;){for(u=s,s=[];++l<e;)u&&u[l].run();l=-1,e=s.length}u=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];s.push(new d(t,e)),1!==s.length||f||c(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(N){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=f(t,e,r);if("normal"===u.type){if(n=r.done?d:h,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=s;var l="suspendedStart",h="suspendedYield",p="executing",d="completed",y={};function v(){}function g(){}function m(){}var w={};w[i]=function(){return this};var b=Object.getPrototypeOf,x=b&&b(b(S([])));x&&x!==r&&n.call(x,i)&&(w=x);var L=m.prototype=v.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"===typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function _(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var r=t[i];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:P}}function P(){return{value:e,done:!0}}return g.prototype=L.constructor=m,m.constructor=g,g.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(L),t},t.awrap=function(t){return{__await:t}},E(T.prototype),T.prototype[a]=function(){return this},t.AsyncIterator=T,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new T(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(L),u(L,c,"Generator"),L[i]=function(){return this},L.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=S,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:S(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=n}catch(o){Function("r","regeneratorRuntime = r")(n)}}]);
//# sourceMappingURL=service-worker.js.map