diff --git a/asset-manifest.json b/asset-manifest.json index 852d772..e9485aa 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,6 +1,6 @@ { - "main.js": "/static/js/main.2117dace.js", - "main.js.map": "/static/js/main.2117dace.js.map", + "main.js": "/static/js/main.ed29f542.js", + "main.js.map": "/static/js/main.ed29f542.js.map", "static/media/mdwa.eot?62057485": "/static/media/mdwa.34af6454.eot", "static/media/mdwa.svg?62057485": "/static/media/mdwa.c8dbaea5.svg", "static/media/mdwa.ttf?62057485": "/static/media/mdwa.e76431cd.ttf", diff --git a/index.html b/index.html index 6d8ca20..12b43cd 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -The Most Dangerous Writing App
\ No newline at end of file +The Most Dangerous Writing App
\ No newline at end of file diff --git a/service-worker.js b/service-worker.js index ab1d5d8..fc0e704 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1 +1 @@ -"use strict";var precacheConfig=[["/index.html","654a4776f4949e333484fc016870b990"],["/static/js/main.2117dace.js","65aac9ab35e639a492bf10143d70e104"],["/static/media/mdwa.34af6454.eot","34af6454b289c92bf5b2f4533ed70452"],["/static/media/mdwa.ba50e0c5.woff2","ba50e0c5be72b9c956ec6ec3689ee863"],["/static/media/mdwa.c8dbaea5.svg","c8dbaea568e9cd26a28f7aa71f8fa565"],["/static/media/mdwa.e76431cd.ttf","e76431cd22ce7ea2f627b98f512f8d9b"],["/static/media/mdwa.faab8634.woff","faab86340831b4efdd470b06d93b4854"]],cacheName="sw-precache-v3-sw-precache-webpack-plugin-"+(self.registration?self.registration.scope:""),ignoreUrlParametersMatching=[/^utm_/],addDirectoryIndex=function(e,t){var n=new URL(e);return"/"===n.pathname.slice(-1)&&(n.pathname+=t),n.toString()},cleanResponse=function(t){return t.redirected?("body"in t?Promise.resolve(t.body):t.blob()).then(function(e){return new Response(e,{headers:t.headers,status:t.status,statusText:t.statusText})}):Promise.resolve(t)},createCacheKey=function(e,t,n,r){var a=new URL(e);return r&&a.pathname.match(r)||(a.search+=(a.search?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(n)),a.toString()},isPathWhitelisted=function(e,t){if(0===e.length)return!0;var n=new URL(t).pathname;return e.some(function(e){return n.match(e)})},stripIgnoredUrlParameters=function(e,n){var t=new URL(e);return t.hash="",t.search=t.search.slice(1).split("&").map(function(e){return e.split("=")}).filter(function(t){return n.every(function(e){return!e.test(t[0])})}).map(function(e){return e.join("=")}).join("&"),t.toString()},hashParamName="_sw-precache",urlsToCacheKeys=new Map(precacheConfig.map(function(e){var t=e[0],n=e[1],r=new URL(t,self.location),a=createCacheKey(r,hashParamName,n,/\.\w{8}\./);return[r.toString(),a]}));function setOfCachedUrls(e){return e.keys().then(function(e){return e.map(function(e){return e.url})}).then(function(e){return new Set(e)})}self.addEventListener("install",function(e){e.waitUntil(caches.open(cacheName).then(function(r){return setOfCachedUrls(r).then(function(n){return Promise.all(Array.from(urlsToCacheKeys.values()).map(function(t){if(!n.has(t)){var e=new Request(t,{credentials:"same-origin"});return fetch(e).then(function(e){if(!e.ok)throw new Error("Request for "+t+" returned a response with status "+e.status);return cleanResponse(e).then(function(e){return r.put(t,e)})})}}))})}).then(function(){return self.skipWaiting()}))}),self.addEventListener("activate",function(e){var n=new Set(urlsToCacheKeys.values());e.waitUntil(caches.open(cacheName).then(function(t){return t.keys().then(function(e){return Promise.all(e.map(function(e){if(!n.has(e.url))return t.delete(e)}))})}).then(function(){return self.clients.claim()}))}),self.addEventListener("fetch",function(t){if("GET"===t.request.method){var e,n=stripIgnoredUrlParameters(t.request.url,ignoreUrlParametersMatching),r="index.html";(e=urlsToCacheKeys.has(n))||(n=addDirectoryIndex(n,r),e=urlsToCacheKeys.has(n));var a="/index.html";!e&&"navigate"===t.request.mode&&isPathWhitelisted(["^(?!\\/__).*"],t.request.url)&&(n=new URL(a,self.location).toString(),e=urlsToCacheKeys.has(n)),e&&t.respondWith(caches.open(cacheName).then(function(e){return e.match(urlsToCacheKeys.get(n)).then(function(e){if(e)return e;throw Error("The cached response that was expected is missing.")})}).catch(function(e){return console.warn('Couldn\'t serve response for "%s" from cache: %O',t.request.url,e),fetch(t.request)}))}}); \ No newline at end of file +"use strict";var precacheConfig=[["/index.html","6edc62947cba6761775efc6984e7fd8e"],["/static/js/main.ed29f542.js","3b0ba76a0ae6b3293fb6729d8141d55e"],["/static/media/mdwa.34af6454.eot","34af6454b289c92bf5b2f4533ed70452"],["/static/media/mdwa.ba50e0c5.woff2","ba50e0c5be72b9c956ec6ec3689ee863"],["/static/media/mdwa.c8dbaea5.svg","c8dbaea568e9cd26a28f7aa71f8fa565"],["/static/media/mdwa.e76431cd.ttf","e76431cd22ce7ea2f627b98f512f8d9b"],["/static/media/mdwa.faab8634.woff","faab86340831b4efdd470b06d93b4854"]],cacheName="sw-precache-v3-sw-precache-webpack-plugin-"+(self.registration?self.registration.scope:""),ignoreUrlParametersMatching=[/^utm_/],addDirectoryIndex=function(e,t){var n=new URL(e);return"/"===n.pathname.slice(-1)&&(n.pathname+=t),n.toString()},cleanResponse=function(t){return t.redirected?("body"in t?Promise.resolve(t.body):t.blob()).then(function(e){return new Response(e,{headers:t.headers,status:t.status,statusText:t.statusText})}):Promise.resolve(t)},createCacheKey=function(e,t,n,r){var a=new URL(e);return r&&a.pathname.match(r)||(a.search+=(a.search?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(n)),a.toString()},isPathWhitelisted=function(e,t){if(0===e.length)return!0;var n=new URL(t).pathname;return e.some(function(e){return n.match(e)})},stripIgnoredUrlParameters=function(e,n){var t=new URL(e);return t.hash="",t.search=t.search.slice(1).split("&").map(function(e){return e.split("=")}).filter(function(t){return n.every(function(e){return!e.test(t[0])})}).map(function(e){return e.join("=")}).join("&"),t.toString()},hashParamName="_sw-precache",urlsToCacheKeys=new Map(precacheConfig.map(function(e){var t=e[0],n=e[1],r=new URL(t,self.location),a=createCacheKey(r,hashParamName,n,/\.\w{8}\./);return[r.toString(),a]}));function setOfCachedUrls(e){return e.keys().then(function(e){return e.map(function(e){return e.url})}).then(function(e){return new Set(e)})}self.addEventListener("install",function(e){e.waitUntil(caches.open(cacheName).then(function(r){return setOfCachedUrls(r).then(function(n){return Promise.all(Array.from(urlsToCacheKeys.values()).map(function(t){if(!n.has(t)){var e=new Request(t,{credentials:"same-origin"});return fetch(e).then(function(e){if(!e.ok)throw new Error("Request for "+t+" returned a response with status "+e.status);return cleanResponse(e).then(function(e){return r.put(t,e)})})}}))})}).then(function(){return self.skipWaiting()}))}),self.addEventListener("activate",function(e){var n=new Set(urlsToCacheKeys.values());e.waitUntil(caches.open(cacheName).then(function(t){return t.keys().then(function(e){return Promise.all(e.map(function(e){if(!n.has(e.url))return t.delete(e)}))})}).then(function(){return self.clients.claim()}))}),self.addEventListener("fetch",function(t){if("GET"===t.request.method){var e,n=stripIgnoredUrlParameters(t.request.url,ignoreUrlParametersMatching),r="index.html";(e=urlsToCacheKeys.has(n))||(n=addDirectoryIndex(n,r),e=urlsToCacheKeys.has(n));var a="/index.html";!e&&"navigate"===t.request.mode&&isPathWhitelisted(["^(?!\\/__).*"],t.request.url)&&(n=new URL(a,self.location).toString(),e=urlsToCacheKeys.has(n)),e&&t.respondWith(caches.open(cacheName).then(function(e){return e.match(urlsToCacheKeys.get(n)).then(function(e){if(e)return e;throw Error("The cached response that was expected is missing.")})}).catch(function(e){return console.warn('Couldn\'t serve response for "%s" from cache: %O',t.request.url,e),fetch(t.request)}))}}); \ No newline at end of file diff --git a/static/js/main.2117dace.js b/static/js/main.2117dace.js deleted file mode 100644 index da33156..0000000 --- a/static/js/main.2117dace.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(t){var r={};function o(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=t,o.c=r,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(n,e){if(1&e&&(n=o(n)),8&e)return n;if(4&e&&"object"===typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)o.d(t,r,function(e){return n[e]}.bind(null,r));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="/",o(o.s=49)}([function(e,n,t){"use strict";e.exports=t(43)},function(e,n,t){var r;!function(){"use strict";var a={}.hasOwnProperty;function l(){for(var e=[],n=0;n=n.status}function l(n){try{n.dispatchEvent(new MouseEvent("click"))}catch(e){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(t)}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof e&&e.global===e?e:void 0,o=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype?function(e,n,t){var r=f.URL||f.webkitURL,o=document.createElement("a");n=n||e.name||"download",o.download=n,o.rel="noopener","string"==typeof e?(o.href=e,o.origin===location.origin?l(o):a(o.href)?c(e,n,t):l(o,o.target="_blank")):(o.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(o.href)},4e4),setTimeout(function(){l(o)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,t){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob((o=e,"undefined"==typeof(i=t)?i={autoBom:!1}:"object"!=typeof i&&(console.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\ufeff",o],{type:o.type}):o),n);else if(a(e))c(e,n,t);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){l(r)})}var o,i}:function(e,n,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return c(e,n,t);var o="application/octet-stream"===e.type,i=/constructor/i.test(f.HTMLElement)||f.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||o&&i)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=a?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},l.readAsDataURL(e)}else{var u=f.URL||f.webkitURL,s=u.createObjectURL(e);r?r.location=s:location.href=s,r=null,setTimeout(function(){u.revokeObjectURL(s)},4e4)}});f.saveAs=o.saveAs=o,"undefined"!=typeof i&&(i.exports=o)})?n.apply(o,t):n)||(i.exports=r)}).call(this,e(5))},function(e,n,t){"use strict";var r=i(t(25)),o=i(t(9));function i(e){return e&&e.__esModule?e:{default:e}}e.exports={TransitionGroup:o.default,CSSTransitionGroup:r.default}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function r(e,n){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{};return function(e){function n(){return a(this,n),p(this,A(n).apply(this,arguments))}return m(n,u.a.Component),s(n,[{key:"render",value:function(){return u.a.createElement(k.Consumer,null,function(e){return u.a.createElement(t,Object.assign({},e,r))})}}]),n}()}var F=t(1),S=T(function(e){var n=e.progress,t=e.danger,r=e.won;return u.a.createElement("div",{className:F("progress",{danger:t,won:r})},u.a.createElement("div",{style:{width:100*n+"%"}}))}),I=T(function(e){var n=e.words;return u.a.createElement("div",{className:"wordcount"},n||0," ",1===n?"word":"words")}),M=t(13),_=function(e){var n=e.words,t="https://twitter.com/intent/tweet?text=I+wrote+".concat(n,"+words+using+The+Most+Dangerous+Writing+App+-+until+it+deleted+everything+.+%23MDWA&url=http%3A%2F%2Fwww.themostdangerouswritingapp.com"),r="I wrote ".concat(n," words using The Most Dangerous Writing App - until it deleted everything.");return u.a.createElement("a",{className:"tweet",href:t},r)},P=T(function(e){var n=e.onReset,t=e.toggleHelp,r=e.limit,o=e.type,i=e.lost,a=e.words;return u.a.createElement(M.CSSTransitionGroup,{transitionName:"failure",transitionEnterTimeout:500,transitionLeaveTimeout:100},i&&u.a.createElement("div",{className:"failure",key:"failScreen"},u.a.createElement("a",{className:"navButton helpButton white",onClick:t},"Help"),u.a.createElement("div",{className:"inner"},u.a.createElement("h3",null,"You failed."),u.a.createElement(_,{words:a}),u.a.createElement(y,{ghost:!0,noPanel:!0,color:"white",label:"Try Again.",type:o,limit:r,onSubmit:n}))))}),N=t(12),O=t.n(N),D=function(e){function t(e){var n;return a(this,t),(n=p(this,A(t).call(this,e))).download=n.download.bind(d(d(n))),n}return m(t,u.a.Component),s(t,[{key:"download",value:function(){var e=this.props.text.replace(/[",.!-::']/g,""),n=e.indexOf(" ",25),t=e.substr(0,n>0?n:30),r=(new Date).toLocaleDateString(),o=new Blob([this.props.text],{type:"text/plain;charset=utf-8"}),i="".concat(t," (MDWA ").concat(r,").txt");O.a.saveAs(o,i)}},{key:"render",value:function(){var t=this;return u.a.createElement(k.Consumer,null,function(e){var n=e.words;return u.a.createElement("button",{onClick:t.download,className:"tiny light ghost"},"Download ",n||0," ",1===n?"word":"words")})}}]),t}(),W=function(e){function t(e){var n;return a(this,t),(n=p(this,A(t).call(this,e))).onChange=n.onChange.bind(d(d(n))),n.onStroke=n.onStroke.bind(d(d(n))),n.clearLetter=n.clearLetter.bind(d(d(n))),n.onScroll=n.onScroll.bind(d(d(n))),n.input=u.a.createRef(),n.wrapper=u.a.createRef(),n.state={cutTop:!1,cutBottom:!1,text:"",letter:"",timerId:null},n.invalid_chars=["Backspace","Tab","Enter","Control","Alt","Meta","Escape","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","CapsLock","Shift","Delete"],n.control_keys=["a","c","v","x","f"],n}return m(t,r["Component"]),s(t,[{key:"onScroll",value:function(e){var n=this.input.current,t=n.scrollTop,r=n.scrollHeight,o=this.wrapper.current.clientHeight;this.setState({cutTop:t>0,cutBottom:r-10>o+t&&r>o})}},{key:"componentDidMount",value:function(){this.input.current.focus()}},{key:"onChange",value:function(e){this.setState({text:e.target.value})}},{key:"onStroke",value:function(e){var n=e.key,t=e.ctrlKey||e.metaKey,r=e.metaKey||e.altKey;this.invalid_chars.includes(n)||e.repeat||(!this.props.won&&t&&this.control_keys.includes(n)?e.preventDefault():t&&r&&"n"===n?this.props.onNightMode():t&&r&&"f"===n?this.props.onFullScreen():(clearInterval(this.state.timerId),this.setState({letter:n,timerId:setInterval(this.clearLetter,200)}),this.props.onStroke(n,this.state.text)))}},{key:"clearLetter",value:function(){clearInterval(this.state.timerId),this.setState({letter:""})}},{key:"reset",value:function(){this.setState({cutTop:!1,cutBottom:!1,text:""})}},{key:"render",value:function(){var o=this;return u.a.createElement(k.Consumer,null,function(e){var n=e.danger,t=e.hardcore,r=e.won;return u.a.createElement("div",{className:v()("editor",{danger:n,hardcore:t&&!r,"cut-top":o.state.cutTop,"cut-bottom":o.state.cutBottom}),ref:o.wrapper},t&&u.a.createElement("div",{className:"hardcore"},o.state.letter),u.a.createElement("textarea",{placeholder:"Start typing...",spellCheck:"false",onKeyDown:o.onStroke,onChange:o.onChange,onScroll:o.onScroll,ref:o.input,value:o.state.text}))})}}]),t}(),R=function(e){function t(e){var n;return a(this,t),(n=p(this,A(t).call(this,e))).handleStroke=n.handleStroke.bind(d(d(n))),n.reset=n.reset.bind(d(d(n))),n.toggleFullscreen=n.toggleFullscreen.bind(d(d(n))),n.toggleNightMode=n.toggleNightMode.bind(d(d(n))),n.now=n.now.bind(d(d(n))),n.editor=u.a.createRef(),n.state={run:!1,startTime:null,fullscreen:!1,nightMode:"true"===localStorage.getItem("mdwa.night-mode"),progress:0,timeSinceStroke:0,danger:!1,won:!1,lost:!1,fade:2,kill:5,limit:n.props.limit||5,type:n.props.type||"timed",hardcore:n.props.hardcore,onReset:n.reset,toggleHelp:n.props.onHelp},n}return m(t,u.a.Component),s(t,[{key:"startWriting",value:function(){var e=this;this.setState({run:!0,startTime:this.now(),timerID:setInterval(function(){return e.tick()},100)})}},{key:"toggleNightMode",value:function(){localStorage.setItem("mdwa.night-mode",!this.state.nightMode),this.setState(function(e,n){return{nightMode:!e.nightMode}})}},{key:"toggleFullscreen",value:function(){this.setState(function(e,n){return{fullscreen:!e.fullscreen}})}},{key:"handleStroke",value:function(e,n){this.state.run||this.state.won||this.startWriting(),this.toggleDanger(!1);var t=n.trim().length&&n.trim().split(/\s+/).length;this.setState({text:n,words:t,timeSinceStroke:0})}},{key:"stopWriting",value:function(){clearInterval(this.state.timerID)}},{key:"toggleDanger",value:function(e){this.state.danger!==e&&this.setState({danger:e})}},{key:"now",value:function(){return(new Date).getTime()/1e3}},{key:"win",value:function(){this.stopWriting(),this.setState({won:!0,run:!1})}},{key:"fail",value:function(){this.stopWriting(),this.setState({lost:!0})}},{key:"reset",value:function(e,n,t){this.setState({type:e,limit:n,hardcore:t,won:!1,lost:!1,run:!1,startTime:null,progress:0,timeSinceStroke:0,danger:!1,words:0}),this.editor.current&&this.editor.current.reset()}},{key:"tick",value:function(){var e=this.state,n=e.run,t=e.words,r=e.timeSinceStroke,o=e.startTime,i=e.fade,a=e.type,l=e.limit,u=e.kill;if(n){var s=r>=i;if(r>=u)return this.fail();var c=this.now()-o,f=("timed"===a?c/60:t)/l;f>=1&&this.win(),this.setState(function(e,n){return{words:t,progress:f,danger:s,timeSinceStroke:e.timeSinceStroke+.1}})}}},{key:"render",value:function(){var e=this.state,n=e.fullscreen,t=e.danger,r=e.won,o=e.lost,i=e.text,a=e.nightMode,l=v()("app",{"night-mode":a,danger:t});return u.a.createElement(B.a,{enabled:n},u.a.createElement(k.Provider,{value:this.state},u.a.createElement("div",{className:l},u.a.createElement(P,null),u.a.createElement(S,null),u.a.createElement("div",{className:"buttons"},r&&u.a.createElement(D,{text:i}),u.a.createElement("i",{className:"icon-night-mode",onClick:this.toggleNightMode}),u.a.createElement("i",{className:"icon-fullscreen",onClick:this.toggleFullscreen})),!o&&u.a.createElement("div",{className:"content"},u.a.createElement(W,{ref:this.editor,won:r,onStroke:this.handleStroke,onNightMode:this.toggleNightMode,onFullScreen:this.toggleFullscreen}),r?u.a.createElement(y,{small:!0,ghost:!0,hidePanel:!0,label:"Start Again",onSubmit:this.reset}):u.a.createElement(I,null)))))}}]),t}(),U=function(e){function t(e){var n;return a(this,t),(n=p(this,A(t).call(this,e))).toggleHelp=n.toggleHelp.bind(d(d(n))),n.toggleHome=n.toggleHome.bind(d(d(n))),n.toggleWrite=n.toggleWrite.bind(d(d(n))),n.state={screen:"home"},n}return m(t,r["Component"]),s(t,[{key:"toggleHelp",value:function(){this.setState({screen:"help"})}},{key:"toggleHome",value:function(){this.setState({screen:"home"})}},{key:"toggleWrite",value:function(e,n,t){console.log("Ready to write",e,n,t),this.setState({type:e,limit:n,hardcore:t,screen:"write"})}},{key:"render",value:function(){var e=this.state.screen;return u.a.createElement("div",null,"home"===e&&u.a.createElement(C,{onHelp:this.toggleHelp,onWrite:this.toggleWrite}),"write"===e&&u.a.createElement(R,Object.assign({onHelp:this.toggleHelp},this.state)),"help"===e&&u.a.createElement(w,{onWrite:this.toggleWrite,onBack:this.toggleHome}))}}]),t}(),z=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function L(e){navigator.serviceWorker.register(e).then(function(n){n.onupdatefound=function(){var e=n.installing;e.onstatechange=function(){"installed"===e.state&&(navigator.serviceWorker.controller?console.log("New content is available; please refresh."):console.log("Content is cached for offline use."))}}}).catch(function(e){console.error("Error during service worker registration:",e)})}i.a.render(u.a.createElement(U,null),document.getElementById("root")),function(){if("serviceWorker"in navigator){if(new URL("",window.location).origin!==window.location.origin)return;window.addEventListener("load",function(){var n,e="".concat("","/service-worker.js");z?(n=e,fetch(n).then(function(e){404===e.status||-1===e.headers.get("content-type").indexOf("javascript")?navigator.serviceWorker.ready.then(function(e){e.unregister().then(function(){window.location.reload()})}):L(n)}).catch(function(){console.log("No internet connection found. App is running in offline mode.")}),navigator.serviceWorker.ready.then(function(){console.log("This web app is being served cache-first by a service worker. To learn more, visit https://goo.gl/SC7cgQ")})):L(e)})}}()},function(e,n,t){"use strict";var r=t(3);n.__esModule=!0,n.default=n.animationEnd=n.animationDelay=n.animationTiming=n.animationDuration=n.animationName=n.transitionEnd=n.transitionDuration=n.transitionDelay=n.transitionTiming=n.transitionProperty=n.transform=void 0;var o,i,a,l,u,s,c,f,d,p,A,h=r(t(8)),m="transform";if(n.transform=m,n.animationEnd=a,n.transitionEnd=i,n.transitionDelay=c,n.transitionTiming=s,n.transitionDuration=u,n.transitionProperty=l,n.animationDelay=A,n.animationTiming=p,n.animationDuration=d,n.animationName=f,h.default){var g=function(){for(var e,n,t=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},o=Object.keys(r),i="",a=0;a=0&&l.splice(n,1)}function g(e){var n=document.createElement("style");return e.attrs.type="text/css",y(n,e.attrs),h(e,n),n}function y(n,t){Object.keys(t).forEach(function(e){n.setAttribute(e,t[e])})}function b(n,e){var t,r,o,i,a,l;if(e.transform&&n.css){if(!(i=e.transform(n.css)))return function(){};n.css=i}if(e.singleton){var u=f++;t=c||(c=g(e)),r=C.bind(null,t,u,!1),o=C.bind(null,t,u,!0)}else o=n.sourceMap&&"function"===typeof URL&&"function"===typeof URL.createObjectURL&&"function"===typeof URL.revokeObjectURL&&"function"===typeof Blob&&"function"===typeof btoa?(a=e,l=document.createElement("link"),a.attrs.type="text/css",a.attrs.rel="stylesheet",y(l,a.attrs),h(a,l),r=function(e,n,t){var r=t.css,o=t.sourceMap,i=void 0===n.convertToAbsoluteUrls&&o;(n.convertToAbsoluteUrls||i)&&(r=d(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(a),l&&URL.revokeObjectURL(l)}.bind(null,t=l,e),function(){m(t),t.href&&URL.revokeObjectURL(t.href)}):(t=g(e),r=function(e,n){var t=n.css,r=n.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}.bind(null,t),function(){m(t)});return r(n),function(e){if(e){if(e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap)return;r(n=e)}else o()}}e.exports=function(e,a){if("undefined"!==typeof DEBUG&&DEBUG&&"object"!==typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(a=a||{}).attrs="object"===typeof a.attrs?a.attrs:{},a.singleton||(a.singleton=s()),a.insertInto||(a.insertInto="head"),a.insertAt||(a.insertAt="bottom");var l=A(e,a);return p(l,a),function(e){for(var n=[],t=0;t=n){t=e;break}e=e.next}while(e!==a);null===t?t=a:t===a&&(a=i,c()),(n=t.previous).next=t.previous=i,i.next=t,i.previous=n}}function d(){if(-1===o&&null!==a&&1===a.priorityLevel){i=!0;try{for(;f(),null!==a&&1===a.priorityLevel;);}finally{i=!1,null!==a?c():s=!1}}}function n(e){i=!0;var n=r;r=e;try{if(e)for(;null!==a;){var t=U.unstable_now();if(!(a.expirationTime<=t))break;for(;f(),null!==a&&a.expirationTime<=t;);}else if(null!==a)for(;f(),null!==a&&!w(););}finally{i=!1,r=n,null!==a?c():s=!1,d()}}var t,p,A=Date,h="function"===typeof setTimeout?setTimeout:void 0,m="function"===typeof clearTimeout?clearTimeout:void 0,g="function"===typeof requestAnimationFrame?requestAnimationFrame:void 0,y="function"===typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function b(n){t=g(function(e){m(p),n(e)}),p=h(function(){y(t),n(U.unstable_now())},100)}if("object"===typeof performance&&"function"===typeof performance.now){var v=performance;U.unstable_now=function(){return v.now()}}else U.unstable_now=function(){return A.now()};var E,C,w,x=null;if("undefined"!==typeof window?x=window:"undefined"!==typeof e&&(x=e),x&&x._schedMock){var B=x._schedMock;E=B[0],C=B[1],w=B[2],U.unstable_now=B[3]}else if("undefined"===typeof window||"function"!==typeof MessageChannel){var k=null,T=function(e){if(null!==k)try{k(e)}finally{k=null}};E=function(e){null!==k?setTimeout(E,0,e):(k=e,setTimeout(T,0,!1))},C=function(){k=null},w=function(){return!1}}else{"undefined"!==typeof console&&("function"!==typeof g&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var F=null,S=!1,I=-1,M=!1,_=!1,P=0,N=33,O=33;w=function(){return P<=U.unstable_now()};var D=new MessageChannel,W=D.port2;D.port1.onmessage=function(){S=!1;var e=F,n=I;F=null,I=-1;var t=U.unstable_now(),r=!1;if(0>=P-t){if(!(-1!==n&&n<=t))return M||(M=!0,b(R)),F=e,void(I=n);r=!0}if(null!==e){_=!0;try{e(r)}finally{_=!1}}};var R=function(e){if(null!==F){b(R);var n=e-P+O;nn&&(n=8),O=nn?W.postMessage(void 0):M||(M=!0,b(R))},C=function(){F=null,S=!1,I=-1}}U.unstable_ImmediatePriority=1,U.unstable_UserBlockingPriority=2,U.unstable_NormalPriority=3,U.unstable_IdlePriority=5,U.unstable_LowPriority=4,U.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=l,r=o;l=e,o=U.unstable_now();try{return n()}finally{l=t,o=r,d()}},U.unstable_next=function(e){switch(l){case 1:case 2:case 3:var n=3;break;default:n=l}var t=l,r=o;l=n,o=U.unstable_now();try{return e()}finally{l=t,o=r,d()}},U.unstable_scheduleCallback=function(e,n){var t=-1!==o?o:U.unstable_now();if("object"===typeof n&&null!==n&&"number"===typeof n.timeout)n=t+n.timeout;else switch(l){case 1:n=t+-1;break;case 2:n=t+250;break;case 5:n=t+1073741823;break;case 4:n=t+1e4;break;default:n=t+5e3}if(e={callback:e,priorityLevel:l,expirationTime:n,next:null,previous:null},null===a)a=e.next=e.previous=e,c();else{t=null;var r=a;do{if(r.expirationTime>n){t=r;break}r=r.next}while(r!==a);null===t?t=a:t===a&&(a=e,c()),(n=t.previous).next=t.previous=e,e.next=t,e.previous=n}return e},U.unstable_cancelCallback=function(e){var n=e.next;if(null!==n){if(n===e)a=null;else{e===a&&(a=n);var t=e.previous;(t.next=n).previous=t}e.next=e.previous=null}},U.unstable_wrapCallback=function(t){var r=l;return function(){var e=l,n=o;l=r,o=U.unstable_now();try{return t.apply(this,arguments)}finally{l=e,o=n,d()}}},U.unstable_getCurrentPriorityLevel=function(){return l},U.unstable_shouldYield=function(){return!r&&(null!==a&&a.expirationTimethis.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=se,e.release=ce}y(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:le,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=le,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function n(){}function t(){return r.apply(this,arguments)}var r=this;n.prototype=r.prototype;var o=new n;return y(o,t.prototype),((t.prototype=o).constructor=t).Interface=y({},r.Interface,e),t.extend=r.extend,fe(t),t},fe(ue);var de=ue.extend({data:null}),pe=ue.extend({data:null}),Ae=[9,13,27,32],he=H&&"CompositionEvent"in window,me=null;H&&"documentMode"in document&&(me=document.documentMode);var ge=H&&"TextEvent"in window&&!me,ye=H&&(!he||me&&8=me),be=String.fromCharCode(32),ve={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ee=!1;function Ce(e,n){switch(e){case"keyup":return-1!==Ae.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function we(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var xe=!1;var Be={eventTypes:ve,extractEvents:function(e,n,t,r){var o=void 0,i=void 0;if(he)e:{switch(e){case"compositionstart":o=ve.compositionStart;break e;case"compositionend":o=ve.compositionEnd;break e;case"compositionupdate":o=ve.compositionUpdate;break e}o=void 0}else xe?Ce(e,t)&&(o=ve.compositionEnd):"keydown"===e&&229===t.keyCode&&(o=ve.compositionStart);return i=o?(ye&&"ko"!==t.locale&&(xe||o!==ve.compositionStart?o===ve.compositionEnd&&xe&&(i=ie()):(re="value"in(te=r)?te.value:te.textContent,xe=!0)),o=de.getPooled(o,n,t,r),i?o.data=i:null!==(i=we(t))&&(o.data=i),q(o),o):null,(e=ge?function(e,n){switch(e){case"compositionend":return we(n);case"keypress":return 32!==n.which?null:(Ee=!0,be);case"textInput":return(e=n.data)===be&&Ee?null:e;default:return null}}(e,t):function(e,n){if(xe)return"compositionend"===e||!he&&Ce(e,n)?(e=ie(),oe=re=te=null,xe=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1