diff --git a/about.html b/about.html index 40f6012..57354e3 100644 --- a/about.html +++ b/about.html @@ -1 +1 @@ -Solvenius \ No newline at end of file +Solvenius \ No newline at end of file diff --git a/assets/manifest.webmanifest b/assets/manifest.webmanifest index 5f0b82e..30eda74 100644 --- a/assets/manifest.webmanifest +++ b/assets/manifest.webmanifest @@ -123,7 +123,7 @@ "shortcuts": [ { "name": "Play!", - "url": "game", + "url": "../game", "description": "Play a game", "icons": [ { @@ -134,7 +134,7 @@ }, { "name": "Top score", - "url": "top-score", + "url": "../top-score", "description": "Top score on this device", "icons": [ { @@ -145,7 +145,7 @@ }, { "name": "Help", - "url": "help", + "url": "../help", "description": "Online help", "icons": [ { diff --git a/game.html b/game.html index 40f6012..57354e3 100644 --- a/game.html +++ b/game.html @@ -1 +1 @@ -Solvenius \ No newline at end of file +Solvenius \ No newline at end of file diff --git a/help.html b/help.html index 40f6012..57354e3 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -Solvenius \ No newline at end of file +Solvenius \ No newline at end of file diff --git a/index.html b/index.html index 40f6012..57354e3 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Solvenius \ No newline at end of file +Solvenius \ No newline at end of file diff --git a/service-worker.js b/service-worker.js index 522c9b4..686bc4d 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1 +1 @@ -if(!self.define){const e=e=>{"require"!==e&&(e+=".js");let s=Promise.resolve();return a[e]||(s=new Promise((async s=>{if("document"in self){const a=document.createElement("script");a.src=e,document.head.appendChild(a),a.onload=s}else importScripts(e),s()}))),s.then((()=>{if(!a[e])throw new Error(`Module ${e} didn’t register its module`);return a[e]}))},s=(s,a)=>{Promise.all(s.map(e)).then((e=>a(1===e.length?e[0]:e)))},a={require:Promise.resolve(s)};self.define=(s,r,c)=>{a[s]||(a[s]=Promise.resolve().then((()=>{let a={};const i={uri:location.origin+s.slice(1)};return Promise.all(r.map((s=>{switch(s){case"exports":return a;case"module":return i;default:return e(s)}}))).then((e=>{const s=c(...e);return a.default||(a.default=s),a}))})))}}define("./service-worker.js",["./workbox-15dd0bab"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"about.html",revision:"2c7f45e2c84c677c03f12fbd7997676a"},{url:"assets/android-chrome-144x144.png",revision:"d7dff48274625440cd5c4df2432a543a"},{url:"assets/android-chrome-192x192.png",revision:"c75e57007ee0d42a0e55166d77bdb3fb"},{url:"assets/android-chrome-256x256.png",revision:"195edc87e43c0b061a15e6e2960eece8"},{url:"assets/android-chrome-36x36.png",revision:"a2668055207e79a1dd0f4c8932037fa1"},{url:"assets/android-chrome-384x384.png",revision:"9c76ea3326fc9b2f8890e167fda26cf4"},{url:"assets/android-chrome-48x48.png",revision:"d55689a7fbd6268840a6d02973aab11f"},{url:"assets/android-chrome-512x512.png",revision:"fd520886284551f7b94b24c0c3d4d696"},{url:"assets/android-chrome-72x72.png",revision:"1ddaa87fbf3f23aaef308ee48e7cdde1"},{url:"assets/android-chrome-96x96.png",revision:"7f5c302513b4f93311e7337b6b1739b4"},{url:"assets/android-chrome-maskable-144x144.png",revision:"ed617238f7f6f03720699b2db17a5877"},{url:"assets/android-chrome-maskable-192x192.png",revision:"0cf53920bb8973108aab1b0c48ada418"},{url:"assets/android-chrome-maskable-256x256.png",revision:"68bb521bdc0d85d3f3ec26ee73eea51a"},{url:"assets/android-chrome-maskable-36x36.png",revision:"21b8351e654762f05c4438dc2f434e8a"},{url:"assets/android-chrome-maskable-384x384.png",revision:"5011a189be6ef7ff9d914aa813c46a90"},{url:"assets/android-chrome-maskable-48x48.png",revision:"a53d271d0384e9a03fa27eea564fcf72"},{url:"assets/android-chrome-maskable-512x512.png",revision:"2ca4d4b2578ab21d3c684331e12ba9fa"},{url:"assets/android-chrome-maskable-72x72.png",revision:"ed9b730395224bc09bb82639dbe4b702"},{url:"assets/android-chrome-maskable-96x96.png",revision:"e3c69013703cdabe40b75e05d9b6d027"},{url:"assets/apple-touch-icon-1024x1024.png",revision:"d130b7f2a2f4e8a3fb84f82c73e25924"},{url:"assets/apple-touch-icon-114x114.png",revision:"7aaca02ba715aed273b3e9ef97517603"},{url:"assets/apple-touch-icon-120x120.png",revision:"5de9cd4586fa2b79a4b9878cc4e04305"},{url:"assets/apple-touch-icon-144x144.png",revision:"cba8f29d40699da52d0d947f44195417"},{url:"assets/apple-touch-icon-152x152.png",revision:"430a7a2eba13855dec405701cc33a4dc"},{url:"assets/apple-touch-icon-167x167.png",revision:"d9404737bf23c7b18854733ed398dbc7"},{url:"assets/apple-touch-icon-180x180.png",revision:"e0e382b8abfd34cd665d02762c8034b1"},{url:"assets/apple-touch-icon-57x57.png",revision:"7acf375dfd9703abb6c9ef54e5429078"},{url:"assets/apple-touch-icon-60x60.png",revision:"aa79f717f7500c73fae73ff85510dfa4"},{url:"assets/apple-touch-icon-72x72.png",revision:"3726460fbf9dec2d0c5e41e60e952267"},{url:"assets/apple-touch-icon-76x76.png",revision:"729b9c0a24e33a4efe40c179ac84c43e"},{url:"assets/apple-touch-icon-precomposed.png",revision:"e0e382b8abfd34cd665d02762c8034b1"},{url:"assets/apple-touch-icon.png",revision:"e0e382b8abfd34cd665d02762c8034b1"},{url:"assets/favicon-16x16.png",revision:"eca7f971d0d19e4dbfde3f8ebe9ae62f"},{url:"assets/favicon-32x32.png",revision:"ccc7f6d94fddc93a12ffe3b054a89e32"},{url:"assets/favicon-48x48.png",revision:"d55689a7fbd6268840a6d02973aab11f"},{url:"assets/favicon.ico",revision:"ace605fbbdb7525e6db4dd6b14099672"},{url:"assets/manifest.webmanifest",revision:"d2f324e3c9e9a8c3c890fceaec187a17"},{url:"game.html",revision:"2c7f45e2c84c677c03f12fbd7997676a"},{url:"game.mp3",revision:"634f29cfd8464e54935fdfb23d567169"},{url:"help.html",revision:"2c7f45e2c84c677c03f12fbd7997676a"},{url:"index.html",revision:"2c7f45e2c84c677c03f12fbd7997676a"},{url:"perfectMatch.mp3",revision:"f48d6c9b61ca5fffbc3538cfab7ea48f"},{url:"preview.png",revision:"0fcd1fe4ea7ef4198b1b196c6005ab69"},{url:"settings.html",revision:"2c7f45e2c84c677c03f12fbd7997676a"},{url:"shortcuts/help.png",revision:"e12cdaa2b6e8a50e5caab13643d54b69"},{url:"shortcuts/play.png",revision:"0c3e71f4747e2107a43c0293884ba9d9"},{url:"shortcuts/top-score.png",revision:"f5d2feca8e962b90737bd0c265026b14"},{url:"solvenius.34907657dc4189bdf1da.js",revision:null},{url:"title.mp3",revision:"2bdadd4db8dc85928ab90a2931fec487"},{url:"top-score.html",revision:"2c7f45e2c84c677c03f12fbd7997676a"}],{})})); +if(!self.define){const e=e=>{"require"!==e&&(e+=".js");let a=Promise.resolve();return s[e]||(a=new Promise((async a=>{if("document"in self){const s=document.createElement("script");s.src=e,document.head.appendChild(s),s.onload=a}else importScripts(e),a()}))),a.then((()=>{if(!s[e])throw new Error(`Module ${e} didn’t register its module`);return s[e]}))},a=(a,s)=>{Promise.all(a.map(e)).then((e=>s(1===e.length?e[0]:e)))},s={require:Promise.resolve(a)};self.define=(a,r,i)=>{s[a]||(s[a]=Promise.resolve().then((()=>{let s={};const d={uri:location.origin+a.slice(1)};return Promise.all(r.map((a=>{switch(a){case"exports":return s;case"module":return d;default:return e(a)}}))).then((e=>{const a=i(...e);return s.default||(s.default=a),s}))})))}}define("./service-worker.js",["./workbox-15dd0bab"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"about.html",revision:"8f8aa96da3d9e2ece10a7585f12f0afd"},{url:"assets/android-chrome-144x144.png",revision:"d7dff48274625440cd5c4df2432a543a"},{url:"assets/android-chrome-192x192.png",revision:"c75e57007ee0d42a0e55166d77bdb3fb"},{url:"assets/android-chrome-256x256.png",revision:"195edc87e43c0b061a15e6e2960eece8"},{url:"assets/android-chrome-36x36.png",revision:"a2668055207e79a1dd0f4c8932037fa1"},{url:"assets/android-chrome-384x384.png",revision:"9c76ea3326fc9b2f8890e167fda26cf4"},{url:"assets/android-chrome-48x48.png",revision:"d55689a7fbd6268840a6d02973aab11f"},{url:"assets/android-chrome-512x512.png",revision:"fd520886284551f7b94b24c0c3d4d696"},{url:"assets/android-chrome-72x72.png",revision:"1ddaa87fbf3f23aaef308ee48e7cdde1"},{url:"assets/android-chrome-96x96.png",revision:"7f5c302513b4f93311e7337b6b1739b4"},{url:"assets/android-chrome-maskable-144x144.png",revision:"ed617238f7f6f03720699b2db17a5877"},{url:"assets/android-chrome-maskable-192x192.png",revision:"0cf53920bb8973108aab1b0c48ada418"},{url:"assets/android-chrome-maskable-256x256.png",revision:"68bb521bdc0d85d3f3ec26ee73eea51a"},{url:"assets/android-chrome-maskable-36x36.png",revision:"21b8351e654762f05c4438dc2f434e8a"},{url:"assets/android-chrome-maskable-384x384.png",revision:"5011a189be6ef7ff9d914aa813c46a90"},{url:"assets/android-chrome-maskable-48x48.png",revision:"a53d271d0384e9a03fa27eea564fcf72"},{url:"assets/android-chrome-maskable-512x512.png",revision:"2ca4d4b2578ab21d3c684331e12ba9fa"},{url:"assets/android-chrome-maskable-72x72.png",revision:"ed9b730395224bc09bb82639dbe4b702"},{url:"assets/android-chrome-maskable-96x96.png",revision:"e3c69013703cdabe40b75e05d9b6d027"},{url:"assets/apple-touch-icon-1024x1024.png",revision:"d130b7f2a2f4e8a3fb84f82c73e25924"},{url:"assets/apple-touch-icon-114x114.png",revision:"7aaca02ba715aed273b3e9ef97517603"},{url:"assets/apple-touch-icon-120x120.png",revision:"5de9cd4586fa2b79a4b9878cc4e04305"},{url:"assets/apple-touch-icon-144x144.png",revision:"cba8f29d40699da52d0d947f44195417"},{url:"assets/apple-touch-icon-152x152.png",revision:"430a7a2eba13855dec405701cc33a4dc"},{url:"assets/apple-touch-icon-167x167.png",revision:"d9404737bf23c7b18854733ed398dbc7"},{url:"assets/apple-touch-icon-180x180.png",revision:"e0e382b8abfd34cd665d02762c8034b1"},{url:"assets/apple-touch-icon-57x57.png",revision:"7acf375dfd9703abb6c9ef54e5429078"},{url:"assets/apple-touch-icon-60x60.png",revision:"aa79f717f7500c73fae73ff85510dfa4"},{url:"assets/apple-touch-icon-72x72.png",revision:"3726460fbf9dec2d0c5e41e60e952267"},{url:"assets/apple-touch-icon-76x76.png",revision:"729b9c0a24e33a4efe40c179ac84c43e"},{url:"assets/apple-touch-icon-precomposed.png",revision:"e0e382b8abfd34cd665d02762c8034b1"},{url:"assets/apple-touch-icon.png",revision:"e0e382b8abfd34cd665d02762c8034b1"},{url:"assets/favicon-16x16.png",revision:"eca7f971d0d19e4dbfde3f8ebe9ae62f"},{url:"assets/favicon-32x32.png",revision:"ccc7f6d94fddc93a12ffe3b054a89e32"},{url:"assets/favicon-48x48.png",revision:"d55689a7fbd6268840a6d02973aab11f"},{url:"assets/favicon.ico",revision:"ace605fbbdb7525e6db4dd6b14099672"},{url:"assets/manifest.webmanifest",revision:"696c00a745f3d961ee1f07a1229a28aa"},{url:"game.html",revision:"8f8aa96da3d9e2ece10a7585f12f0afd"},{url:"game.mp3",revision:"634f29cfd8464e54935fdfb23d567169"},{url:"help.html",revision:"8f8aa96da3d9e2ece10a7585f12f0afd"},{url:"index.html",revision:"8f8aa96da3d9e2ece10a7585f12f0afd"},{url:"perfectMatch.mp3",revision:"f48d6c9b61ca5fffbc3538cfab7ea48f"},{url:"preview.png",revision:"0fcd1fe4ea7ef4198b1b196c6005ab69"},{url:"settings.html",revision:"8f8aa96da3d9e2ece10a7585f12f0afd"},{url:"shortcuts/help.png",revision:"e12cdaa2b6e8a50e5caab13643d54b69"},{url:"shortcuts/play.png",revision:"0c3e71f4747e2107a43c0293884ba9d9"},{url:"shortcuts/top-score.png",revision:"f5d2feca8e962b90737bd0c265026b14"},{url:"solvenius.b1ff853902a85718ec26.js",revision:null},{url:"title.mp3",revision:"2bdadd4db8dc85928ab90a2931fec487"},{url:"top-score.html",revision:"8f8aa96da3d9e2ece10a7585f12f0afd"}],{})})); diff --git a/settings.html b/settings.html index 40f6012..57354e3 100644 --- a/settings.html +++ b/settings.html @@ -1 +1 @@ -Solvenius \ No newline at end of file +Solvenius \ No newline at end of file diff --git a/solvenius.34907657dc4189bdf1da.js b/solvenius.b1ff853902a85718ec26.js similarity index 97% rename from solvenius.34907657dc4189bdf1da.js rename to solvenius.b1ff853902a85718ec26.js index eda8c91..2b93ad7 100644 --- a/solvenius.34907657dc4189bdf1da.js +++ b/solvenius.b1ff853902a85718ec26.js @@ -1 +1 @@ -(()=>{var n={528:(n,r,e)=>{"use strict";e.d(r,{Z:()=>o});var t=e(645),u=e.n(t),i=e(504),a=u()((function(n){return n[1]}));a.i(i.Z),a.push([n.id,"*{box-sizing:border-box}body{font-family:sans-serif;position:absolute;width:100%;height:100%;overscroll-behavior:none;user-select:none}.container{background:#90f590;color:#013301;display:flex;margin-left:auto;margin-right:auto;width:50%;height:100%;font-size:1.1em}a:visited,a:active{color:blue}a.button{width:50%;text-decoration:none}a.button:visited,a.button:active{color:#093607}h1,h2,h3{font-weight:bold;text-align:center}h1{font-size:2em}h3{margin-top:2em;margin-bottom:1em}p,ul{margin-top:1em;margin-bottom:1em}ul{list-style:disc;list-style-position:inside}li{margin-top:.5em;margin-bottom:.5em}.button{display:block;font-size:1.2em;padding:.7em;border:2px solid #011b01;border-radius:1em;text-transform:uppercase;text-align:center;margin:.5em;cursor:pointer;color:#093607;background:#64d164;box-shadow:3px 3px #6ba86b}.button:hover{background:#54b354;box-shadow:3px 3px #008500}.page{flex:1;display:flex;flex-flow:column;align-items:center;justify-content:space-around}.textPage .content{background:#fff;flex:1;overflow-y:auto;padding:1em;border:.2em solid #90f590}.attribution{white-space:pre-line;word-wrap:break-word;word-break:break-all}.page.home h1{font-size:3em;font-weight:bold;text-align:center;padding-top:.5em;padding-bottom:.5em;background:#054e05;color:#ff0;width:100%;text-shadow:1px 1px 1px #000,2px 2px 4px #f7f1a2}.page.home .links{flex:1;display:flex;flex-flow:column;align-items:center;justify-content:space-around;width:80%}.page.game .info{width:50%;margin-top:.5em;margin-bottom:.5em;display:flex}.page.game .info>*{flex:1}.page.game .info .timeLabel{text-align:right}.page.game .sequenceDisplay{background:#fff389;text-align:center;width:50%;font-size:1.75em;padding-top:.75em;padding-bottom:.75em;font-family:monospace;border-radius:.5em}.page.game .attemptsArea{flex:1;width:50%;background:#fff;overflow-y:auto;margin-top:.5em;margin-bottom:.5em;font-family:monospace;font-size:1.5em;line-height:1.75em;padding:.25em;text-align:center;border-radius:.5em}.page.game .attemptsArea .attemptRow *{margin-right:1em}.page.game .attemptsArea .attemptRow *:last-child{margin-right:0}.page.game .attemptsArea .attemptRow .matching{color:green}.page.game .attemptsArea .attemptRow .misplaced{text-decoration:underline;color:#b8860b}.page.game .attemptsArea .attemptRow .unused{text-decoration:line-through;color:darkred}.page.game .sequenceButtonsBox{margin:.25em;border-radius:.5em}.page.game .sequenceButtonsBox>div:last-child{display:flex;justify-content:flex-end}.page.game .sequenceButtonsBox .sequenceButton{display:inline-flex;padding:.15em;margin:.15em;width:2.75em;height:2.75em;background:#054e05;color:#ff0;border-radius:.5em;cursor:pointer;justify-content:center;align-items:center}.page.game .sequenceButtonsBox .sequenceButton:hover{background:#1a611a}.page.game .controlButtonsBox{width:100%;display:flex;justify-content:center;align-items:center;margin-top:1em}.page.game .controlButtonsBox>.button{flex:1}.page.topScore .label{margin-top:1em}.page.topScore .topScoreBox{flex:1;display:flex;font-weight:bold;font-size:4em;margin-top:1em;margin-bottom:1em;align-items:center}@media all and (max-width: 800px){.container{width:100%}.page.home .links{width:100%}.page.game .info{width:85%}.page.game .sequenceDisplay{width:85%}.page.game .attemptsArea{width:85%}}",""]);const o=a},504:(n,r,e)=>{"use strict";e.d(r,{Z:()=>i});var t=e(645),u=e.n(t)()((function(n){return n[1]}));u.push([n.id,"/* http://meyerweb.com/eric/tools/css/reset/ \n v2.0 | 20110126\n License: none (public domain)\n*/\n\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed, \nfigure, figcaption, footer, header, hgroup, \nmenu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tfont-size: 100%;\n\tfont: inherit;\n\tvertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure, \nfooter, header, hgroup, menu, nav, section {\n\tdisplay: block;\n}\nbody {\n\tline-height: 1;\n}\nol, ul {\n\tlist-style: none;\n}\nblockquote, q {\n\tquotes: none;\n}\nblockquote:before, blockquote:after,\nq:before, q:after {\n\tcontent: '';\n\tcontent: none;\n}\ntable {\n\tborder-collapse: collapse;\n\tborder-spacing: 0;\n}",""]);const i=u},645:n=>{"use strict";n.exports=function(n){var r=[];return r.toString=function(){return this.map((function(r){var e=n(r);return r[2]?"@media ".concat(r[2]," {").concat(e,"}"):e})).join("")},r.i=function(n,e,t){"string"==typeof n&&(n=[[null,n,""]]);var u={};if(t)for(var i=0;i=0;t--)r=s(n,e[t],r);return r})));function $(n){throw new Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}function I(n,r){for(var e,t=[],u=y(n,r,0,t);u&&(e=t.pop());u=y(e.a,e.b,0,t));return u}function y(n,r,e,t){if(n===r)return!0;if("object"!=typeof n||null===n||null===r)return"function"==typeof n&&$(5),!1;if(e>100)return t.push(A(n,r)),!0;for(var u in n.$<0&&(n=Jr(n),r=Jr(r)),n)if(!y(n[u],r[u],e+1,t))return!1;return!0}e((function(n,r){for(var e=r.length,t=new Array(e),u=0;ue.length&&(u=e.length);for(var i=new Array(t+u),a=0;a"),r}));var N=e(I);function w(n,r,e){if("object"!=typeof n)return n===r?0:n0})),e((function(n,r){return w(n,r)>=0}));var L=e((function(n,r){var e=w(n,r);return e<0?Yr:e?Kr:zr}));function A(n,r){return{a:n,b:r}}function R(n,r,e){return{a:n,b:r,c:e}}function O(n,r){var e={};for(var t in n)e[t]=n[t];for(var t in r)e[t]=r[t];return e}function S(n,r){if("string"==typeof n)return n+r;if(!n.b)return r;var e=k(n.a,r);n=n.b;for(var t=e;n.b;n=n.b)t=t.b=k(n.a,r);return e}e(S);var T={$:0};function k(n,r){return{$:1,a:n,b:r}}var x=e(k);function P(n){for(var r=T,e=n.length;e--;)r=k(n[e],r);return r}function M(n){for(var r=[];n.b;n=n.b)r.push(n.a);return r}var C=t((function(n,r,e){for(var t=[];r.b&&e.b;r=r.b,e=e.b)t.push(s(n,r.a,e.a));return P(t)})),D=(u((function(n,r,e,t){for(var u=[];r.b&&e.b&&t.b;r=r.b,e=e.b,t=t.b)u.push(l(n,r.a,e.a,t.a));return P(u)})),i((function(n,r,e,t,u){for(var i=[];r.b&&e.b&&t.b&&u.b;r=r.b,e=e.b,t=t.b,u=u.b)i.push(v(n,r.a,e.a,t.a,u.a));return P(i)})),a((function(n,r,e,t,u,i){for(var a=[];r.b&&e.b&&t.b&&u.b&&i.b;r=r.b,e=e.b,t=t.b,u=u.b,i=i.b)a.push(d(n,r.a,e.a,t.a,u.a,i.a));return P(a)})),e((function(n,r){return P(M(r).sort((function(r,e){return w(n(r),n(e))})))})),e((function(n,r){return P(M(r).sort((function(r,e){var t=s(n,r,e);return t===zr?0:t===Yr?-1:1})))})),e((function(n,r){return n+r}))),j=(e((function(n,r){return n-r})),e((function(n,r){return n*r})),e((function(n,r){return n/r})),e((function(n,r){return n/r|0})),e(Math.pow),e((function(n,r){return r%n})),e((function(n,r){var e=r%n;return 0===n?$(11):e>0&&n<0||e<0&&n>0?e+n:e})));Math.PI,Math.E,Math.cos,Math.sin,Math.tan,Math.acos,Math.asin,Math.atan,e(Math.atan2);var _=Math.ceil,F=Math.floor,q=(Math.round,Math.sqrt,Math.log);isNaN,e((function(n,r){return n&&r})),e((function(n,r){return n||r})),e((function(n,r){return n!==r})),e((function(n,r){return n+r})),e((function(n,r){return n+r})),e((function(n,r){for(var e=r.length,t=new Array(e),u=0;u-1})),V=e((function(n,r){return 0===r.indexOf(n)})),J=(e((function(n,r){return r.length>=n.length&&r.lastIndexOf(n)===r.length-n.length})),e((function(n,r){var e=n.length;if(e<1)return T;for(var t=0,u=[];(t=r.indexOf(n,t))>-1;)u.push(t),t+=e;return P(u)})));function z(n){return{$:2,b:n}}var K=z((function(n){return"number"!=typeof n?fn("an INT",n):-2147483647=r.length?fn("a LONGER array. Need index "+u+" but only see "+r.length+" entries",r):(t=un(n.b,r[u]),Ve(t)?t:Zr(s(ne,u,t.a))):fn("an ARRAY",r);case 8:if("object"!=typeof r||null===r||on(r))return fn("an OBJECT",r);var i=T;for(var a in r)if(r.hasOwnProperty(a)){if(t=un(n.b,r[a]),!Ve(t))return Zr(s(Wr,a,t.a));i=k(A(a,t.a),i)}return re(Ne(i));case 9:for(var o=n.f,c=n.g,f=0;f=0&&r.splice(e,1)}}}var Hn,Vn=e((function(n,r){return function(e){return n(r(e))}}));var Jn="undefined"!=typeof document?document:{};function zn(n,r){n.appendChild(r)}function Kn(n){return{$:0,a:n}}u((function(n,r,e,t){var u=t.node;return u.parentNode.replaceChild(cr(n,(function(){})),u),{}}));var Yn=e((function(n,r){return e((function(e,t){for(var u=[],i=0;t.b;t=t.b){var a=t.a;i+=a.b||0,u.push(a)}return i+=u.length,{$:1,c:r,d:ar(e),e:u,f:n,b:i}}))}))(void 0);e((function(n,r){return e((function(e,t){for(var u=[],i=0;t.b;t=t.b){var a=t.a;i+=a.b.b||0,u.push(a)}return i+=u.length,{$:2,c:r,d:ar(e),e:u,f:n,b:i}}))}))(void 0);var Zn=e((function(n,r){return{$:4,j:n,k:r,b:1+(r.b||0)}}));function Qn(n,r){return{$:5,l:n,m:r,k:void 0}}e((function(n,r){return Qn([n,r],(function(){return n(r)}))})),t((function(n,r,e){return Qn([n,r,e],(function(){return s(n,r,e)}))})),u((function(n,r,e,t){return Qn([n,r,e,t],(function(){return l(n,r,e,t)}))})),i((function(n,r,e,t,u){return Qn([n,r,e,t,u],(function(){return v(n,r,e,t,u)}))})),a((function(n,r,e,t,u,i){return Qn([n,r,e,t,u,i],(function(){return d(n,r,e,t,u,i)}))})),o((function(n,r,e,t,u,i,a){return Qn([n,r,e,t,u,i,a],(function(){return b(n,r,e,t,u,i,a)}))})),c((function(n,r,e,t,u,i,a,o){return Qn([n,r,e,t,u,i,a,o],(function(){return h(n,r,e,t,u,i,a,o)}))})),f((function(n,r,e,t,u,i,a,o,c){return Qn([n,r,e,t,u,i,a,o,c],(function(){return function(n,r,e,t,u,i,a,o,c){return 8===n.a?n.f(r,e,t,u,i,a,o,c):n(r)(e)(t)(u)(i)(a)(o)(c)}(n,r,e,t,u,i,a,o,c)}))}));var Wn=e((function(n,r){return{$:"a0",n,o:r}})),nr=e((function(n,r){return{$:"a1",n,o:r}})),rr=e((function(n,r){return{$:"a2",n,o:r}})),er=e((function(n,r){return{$:"a3",n,o:r}}));t((function(n,r,e){return{$:"a4",n:r,o:{f:n,o:e}}})),e((function(n,r){return"a0"===r.$?s(Wn,r.n,function(n,r){var e=Ze(r);return{$:r.$,a:e?l(Ke,e<3?ur:ir,Ye(n),r.a):s(ze,n,r.a)}}(n,r.o)):r}));var tr,ur=e((function(n,r){return A(n(r.a),r.b)})),ir=e((function(n,r){return{y:n(r.y),at:r.at,ap:r.ap}}));function ar(n){for(var r={};n.b;n=n.b){var e=n.a,t=e.$,u=e.n,i=e.o;if("a2"!==t){var a=r[t]||(r[t]={});"a3"===t&&"class"===u?or(a,u,i):a[u]=i}else"className"===u?or(r,u,i):r[u]=i}return r}function or(n,r,e){var t=n[r];n[r]=t?t+" "+e:e}function cr(n,r){var e=n.$;if(5===e)return cr(n.k||(n.k=n.m()),r);if(0===e)return Jn.createTextNode(n.a);if(4===e){for(var t=n.k,u=n.j;4===t.$;)"object"!=typeof u?u=[u,t.j]:u.push(t.j),t=t.k;var i={j:u,p:r};return(a=cr(t,i)).elm_event_node_ref=i,a}if(3===e)return fr(a=n.h(n.g),r,n.d),a;var a=n.f?Jn.createElementNS(n.f,n.c):Jn.createElement(n.c);Hn&&"a"==n.c&&a.addEventListener("click",Hn(a)),fr(a,r,n.d);for(var o=n.e,c=0;c0&&mr(e,1,t,s));case 4:for(var l=n.j,v=r.j,d=!1,b=n.k;4===b.$;)d=!0,"object"!=typeof l?l=[l,b.j]:l.push(b.j),b=b.k;for(var h=r.k;4===h.$;)d=!0,"object"!=typeof v?v=[v,h.j]:v.push(h.j),h=h.k;return d&&l.length!==v.length?void mr(e,0,t,r):((d?function(n,r){for(var e=0;eo?mr(e,6,t,{v:o,i:a-o}):a0||a.length>0||O)&&mr(e,8,t,{w:u,x:a,y:O})}var Nr="_elmW6BL";function wr(n,r,e,t,u,i){var a=n[e];if(!a)return a={c:0,z:t,r:u,s:void 0},i.push({r:u,A:a}),void(n[e]=a);if(1===a.c){i.push({r:u,A:a}),a.c=2;var o=[];return gr(a.z,t,o,a.r),a.r=u,void(a.s.s={w:o,A:a})}wr(n,r,e+Nr,t,u,i)}function Lr(n,r,e,t,u){var i=n[e];if(i){if(0===i.c){i.c=2;var a=[];return gr(t,i.z,a,u),void mr(r,9,u,{w:a,A:i})}Lr(n,r,e+Nr,t,u)}else{var o=mr(r,9,u,void 0);n[e]={c:1,z:t,r:u,s:o}}}function Ar(n,r,e,t){Rr(n,r,e,0,0,r.b,t)}function Rr(n,r,e,t,u,i,a){for(var o=e[t],c=o.r;c===u;){var f=o.$;if(1===f)Ar(n,r.k,o.s,a);else if(8===f)o.t=n,o.u=a,(s=o.s.w).length>0&&Rr(n,r,s,0,u,i,a);else if(9===f){o.t=n,o.u=a;var s,l=o.s;l&&(l.A.s=n,(s=l.w).length>0&&Rr(n,r,s,0,u,i,a))}else o.t=n,o.u=a;if(!(o=e[++t])||(c=o.r)>i)return t}var v=r.$;if(4===v){for(var d=r.k;4===d.$;)d=d.k;return Rr(n,d,e,t,u+1,i,n.elm_event_node_ref)}for(var b=r.e,h=n.childNodes,p=0;pi))return t;u=g}return t}function Or(n,r,e,t){return 0===e.length?n:(Ar(n,r,e,t),Sr(n,e))}function Sr(n,r){for(var e=0;e>n})),e((function(n,r){return r>>>n}));var Ur=e((function(n,r){return pn((function(e){var t=setInterval((function(){En(r)}),n);return function(){clearInterval(t)}}))})),Xr=x,Hr=E,Vr=(t((function(n,r,t){var u=t.c,i=t.d,a=e((function(r,e){if(r.$){var t=r.a;return l(Hr,n,e,t)}var u=r.a;return l(Hr,a,e,u)}));return l(Hr,a,l(Hr,n,r,i),u)})),t((function(n,r,e){for(;;){if(-2===e.$)return r;var t=e.b,u=e.c,i=e.d,a=e.e,o=n,c=l(n,t,u,l(Vr,n,r,a));n=o,r=c,e=i}}))),Jr=function(n){return l(Vr,t((function(n,r,e){return s(Xr,A(n,r),e)})),T,n)},zr=1,Kr=2,Yr=0,Zr=function(n){return{$:1,a:n}},Qr=e((function(n,r){return{$:3,a:n,b:r}})),Wr=e((function(n,r){return{$:0,a:n,b:r}})),ne=e((function(n,r){return{$:1,a:n,b:r}})),re=function(n){return{$:0,a:n}},ee=function(n){return{$:2,a:n}},te=D,ue=function(n){return{$:0,a:n}},ie={$:1},ae=X,oe=vn,ce=function(n){return n+""},fe=e((function(n,r){return s(B,n,M(r))})),se=e((function(n,r){return P(s(G,n,r))})),le=function(n){return s(fe,"\n ",s(se,"\n",n))},ve=t((function(n,r,e){for(;;){if(!e.b)return r;var t=e.a,u=e.b,i=n,a=s(n,t,r);n=i,r=a,e=u}})),de=function(n){return l(ve,e((function(n,r){return r+1})),0,n)},be=C,he=t((function(n,r,e){for(;;){if(!(w(n,r)<1))return e;var t=n,u=r-1,i=s(Xr,r,e);n=t,r=u,e=i}})),pe=e((function(n,r){return l(he,n,r,T)})),me=e((function(n,r){return l(be,n,s(pe,0,de(r)-1),r)})),ge=function(n){var r=n.charCodeAt(0);return 55296<=r&&r<=56319?1024*(r-55296)+n.charCodeAt(1)-56320+65536:r},Ee=function(n){var r=ge(n);return 97<=r&&r<=122},$e=function(n){var r=ge(n);return r<=90&&65<=r},Ie=function(n){return Ee(n)||$e(n)},ye=function(n){return Ee(n)||$e(n)||function(n){var r=ge(n);return r<=57&&48<=r}(n)},Ne=function(n){return l(ve,Xr,T,n)},we=e((function(n,r){return"\n\n("+ce(n+1)+") "+le(Le(r))})),Le=function(n){return s(Ae,n,T)},Ae=e((function(n,r){n:for(;;)switch(n.$){case 0:var e=n.a,t=n.b,u=function(){var n,r,t=(r=(n=e).charCodeAt(0),isNaN(r)?ie:ue(55296<=r&&r<=56319?A(n[0]+n[1],n.slice(2)):A(n[0],n.slice(1))));if(1===t.$)return!1;var u=t.a,i=u.a,a=u.b;return Ie(i)&&s(ae,ye,a)}(),i=t,a=s(Xr,u?"."+e:"['"+e+"']",r);n=i,r=a;continue n;case 1:var o=n.a,c=(t=n.b,"["+ce(o)+"]");n=i=t,r=a=s(Xr,c,r);continue n;case 2:var f=n.a;if(f.b){if(f.b.b){var l=(r.b?"The Json.Decode.oneOf at json"+s(fe,"",Ne(r)):"Json.Decode.oneOf")+" failed in the following "+ce(de(f))+" ways:";return s(fe,"\n\n",s(Xr,l,s(me,we,f)))}n=i=t=f.a,r=a=r;continue n}return"Ran into a Json.Decode.oneOf with no possibilities"+(r.b?" at json"+s(fe,"",Ne(r)):"!");default:var v=n.a,d=n.b;return(l=r.b?"Problem with the value at json"+s(fe,"",Ne(r))+":\n\n ":"Problem with the given value:\n\n")+le(s(oe,4,d))+"\n\n"+v}})),Re=32,Oe=u((function(n,r,e,t){return{$:0,a:n,b:r,c:e,d:t}})),Se=[],Te=_,ke=e((function(n,r){return q(r)/q(n)})),xe=Te(s(ke,2,Re)),Pe=v(Oe,0,xe,Se,Se),Me=p,Ce=function(n){return{$:1,a:n}},De=(e((function(n,r){return n(r)})),e((function(n,r){return r(n)})),N),je=F,_e=function(n){return n.length},Fe=e((function(n,r){return w(n,r)>0?n:r})),qe=m,Ge=e((function(n,r){for(;;){var e=s(qe,Re,n),t=e.a,u=e.b,i=s(Xr,{$:0,a:t},r);if(!u.b)return Ne(i);n=u,r=i}})),Be=e((function(n,r){for(;;){var e=Te(r/Re);if(1===e)return s(qe,Re,n).a;n=s(Ge,n,T),r=e}})),Ue=e((function(n,r){if(r.b){var e=r.b*Re,t=je(s(ke,Re,e-1)),u=n?Ne(r.e):r.e,i=s(Be,u,r.b);return v(Oe,_e(r.d)+e,s(Fe,5,t*xe),i,r.d)}return v(Oe,_e(r.d),xe,Se,r.d)})),Xe=i((function(n,r,e,t,u){for(;;){if(r<0)return s(Ue,!1,{e:t,b:e/Re|0,d:u});var i=Ce(l(Me,Re,r,n));n=n,r-=Re,e=e,t=s(Xr,i,t),u=u}})),He=e((function(n,r){if(n<=0)return Pe;var e=n%Re,t=l(Me,e,n-e,r);return d(Xe,r,n-e-Re,n,T,t)})),Ve=function(n){return!n.$},Je=nn,ze=rn,Ke=en,Ye=function(n){return{$:0,a:n}},Ze=function(n){switch(n.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3}},Qe=function(n){return n},We=Qe,nt=a((function(n,r,e,t,u,i){return{aE:i,aI:r,aP:t,aR:e,aU:n,aV:u}})),rt=H,et=U,tt=e((function(n,r){return n<1?r:l(et,n,r.length,r)})),ut=J,it=function(n){return""===n},at=e((function(n,r){return n<1?"":l(et,0,n,r)})),ot=i((function(n,r,e,t,u){if(it(u)||s(rt,"@",u))return ie;var i=s(ut,":",u);if(i.b){if(i.b.b)return ie;var a=i.a,o=function(n){for(var r=0,e=n.charCodeAt(0),t=43==e||45==e?1:0,u=t;u500?l(ve,n,r,Ne(b)):v(pt,n,r,e+1,b)))))}return s(n,u,s(n,a,s(n,c,r)))}return s(n,u,s(n,a,r))}return s(n,u,r)}return r})),mt=t((function(n,r,e){return v(pt,n,r,0,e)})),gt=e((function(n,r){return l(mt,e((function(r,e){return s(Xr,n(r),e)})),T,r)})),Et=mn,$t=e((function(n,r){return s(Et,(function(r){return bt(n(r))}),r)})),It=t((function(n,r,e){return s(Et,(function(r){return s(Et,(function(e){return bt(s(n,r,e))}),e)}),r)})),yt=function(n){return l(mt,It(Xr),bt(T),n)},Nt=kn,wt=e((function(n,r){var e=r;return $n(s(Et,Nt(n),e))})),Lt=t((function(n,r,e){return s($t,(function(n){return 0}),yt(s(gt,wt(n),r)))})),At=t((function(n,r,e){return bt(0)})),Rt=e((function(n,r){return s($t,n,r)}));On.Task=Sn(ht,Lt,At,Rt);var Ot,St=Pn("Task"),Tt=e((function(n,r){return St(s($t,n,r))})),kt=Y,xt=Q,Pt={$:0},Mt=function(n){return{$:1,a:n}},Ct={$:5},Dt=function(n){return{$:1,a:n}},jt={$:4},_t={$:6},Ft={$:3},qt={$:2},Gt=Mn,Bt=t((function(n,r,e){return n?Gt(P([r,e])):r})),Ut=function(n){return{$:2,a:n}},Xt=function(n){return A(1,n)},Ht=function(n){return n<0?-n:n},Vt=e((function(n,r){return{$:0,a:n,b:r}})),Jt=function(n){var r=n.a,e=n.b;return s(Vt,1664525*r+e>>>0,e)},zt=function(n){var r=n.a,e=277803737*(r^r>>>4+(r>>>28));return(e>>>22^e)>>>0},Kt=e((function(n,r){return function(e){var t=Jt(e),u=Ht(r-n),i=zt(t);return A((1*(67108863&zt(e))*134217728+1*(134217727&i))/9007199254740992*u+n,Jt(t))}})),Yt=t((function(n,r,e){for(;;){var t=n.a,u=n.b;if(!r.b)return u;var i=r.a,a=r.b;if(w(e,Ht(t))<1)return u;n=i,r=a,e-=Ht(t)}})),Zt=e((function(n,r){var e=r;return function(r){var t=e(r),u=t.a,i=t.b;return A(n(u),i)}})),Qt=e((function(n,r){var e,t=function(n){var r=n.a;return Ht(r)},u=t(n)+(e=s(gt,t,r),l(ve,te,0,e));return s(Zt,s(Yt,n,r),s(Kt,0,u))})),Wt=e((function(n,r){return s(Qt,Xt(n),s(gt,Xt,r))})),nu=s(Wt,0,P([1,2,3,4,5,6,7,8,9])),ru=(e((function(n,r){return{$:0,a:n,b:r}})),Ot=Qe,pn((function(n){n(hn(Ot(Date.now())))}))),eu=function(n){return n},tu=s(Et,(function(n){return bt((r=n,t=(e=Jt(s(Vt,0,1013904223))).a,u=e.b,Jt(s(Vt,t+r>>>0,u))));var r,e,t,u}),ru),uu=e((function(n,r){return n(r)})),iu=t((function(n,r,e){if(r.b){var t=r.a,u=r.b,i=s(uu,t,e),a=i.a,o=i.b;return s(Et,(function(r){return l(iu,n,u,o)}),s(Nt,n,a))}return bt(e)})),au=t((function(n,r,e){return bt(e)})),ou=e((function(n,r){return s(Zt,n,r)}));On.Random=Sn(tu,iu,au,ou);var cu,fu,su=Pn("Random"),lu=e((function(n,r){return su(s(Zt,n,r))})),vu=u((function(n,r,e,t){for(;;){if(r<1)return A(n,t);var u=e(t),i=u.a,a=u.b;n=s(Xr,i,n),r-=1,e=e,t=a}})),du=e((function(n,r){var e=r;return function(r){return v(vu,T,n,e,r)}})),bu=function(n){return s(lu,Ut,s(du,n,nu))},hu=Cn,pu=t((function(n,r,e){var t=e.a,u=e.b;return A(n(t),r(u))})),mu=Gt(T),gu=i((function(n,r,e,t,u){return{D:t,F:e,B:r,w:u,I:n}})),Eu=function(n){if(n.b){if(""!==n.a||n.b.b){var r=n.a,e=n.b;return s(Xr,r,Eu(e))}return T}return T},$u=e((function(n,r){if(1===r.$)return ue(P([n]));var e=r.a;return ue(s(Xr,n,e))})),Iu=function(n){try{return ue(decodeURIComponent(n))}catch(n){return ie}},yu=L,Nu=e((function(n,r){n:for(;;){if(-2===r.$)return ie;var e=r.b,t=r.c,u=r.d,i=r.e;switch(s(yu,n,e)){case 0:n=n,r=u;continue n;case 1:return ue(t);default:n=n,r=i;continue n}}})),wu=i((function(n,r,e,t,u){return{$:-1,a:n,b:r,c:e,d:t,e:u}})),Lu={$:-2},Au=i((function(n,r,e,t,u){if(-1!==u.$||u.a){if(-1!==t.$||t.a||-1!==t.d.$||t.d.a)return d(wu,n,r,e,t,u);t.a,h=t.b,p=t.c;var i=t.d,a=(i.a,i.b),o=i.c,c=i.d,f=i.e;return g=t.e,d(wu,0,h,p,d(wu,1,a,o,c,f),d(wu,1,r,e,g,u))}u.a;var s=u.b,l=u.c,v=u.d,b=u.e;if(-1!==t.$||t.a)return d(wu,n,s,l,d(wu,0,r,e,t,v),b);t.a;var h=t.b,p=t.c,m=t.d,g=t.e;return d(wu,0,r,e,d(wu,1,h,p,m,g),d(wu,1,s,l,v,b))})),Ru=t((function(n,r,e){if(-2===e.$)return d(wu,0,n,r,Lu,Lu);var t=e.a,u=e.b,i=e.c,a=e.d,o=e.e;switch(s(yu,n,u)){case 0:return d(Au,t,u,i,l(Ru,n,r,a),o);case 1:return d(wu,t,u,r,a,o);default:return d(Au,t,u,i,a,l(Ru,n,r,o))}})),Ou=t((function(n,r,e){var t=l(Ru,n,r,e);if(-1!==t.$||t.a)return t;t.a;var u=t.b,i=t.c,a=t.d,o=t.e;return d(wu,1,u,i,a,o)})),Su=function(n){if(-1===n.$&&-1===n.d.$&&-1===n.e.$){if(-1!==n.e.d.$||n.e.d.a){n.a,u=n.b,i=n.c;var r=n.d,e=(r.a,o=r.b,c=r.c,f=r.d,s=r.e,n.e);return e.a,v=e.b,b=e.c,t=e.d,E=e.e,d(wu,1,u,i,d(wu,0,o,c,f,s),d(wu,0,v,b,t,E))}n.a;var t,u=n.b,i=n.c,a=n.d,o=(a.a,a.b),c=a.c,f=a.d,s=a.e,l=n.e,v=(l.a,l.b),b=l.c,h=((t=l.d).a,t.b),p=t.c,m=t.d,g=t.e,E=l.e;return d(wu,0,h,p,d(wu,1,u,i,d(wu,0,o,c,f,s),m),d(wu,1,v,b,g,E))}return n},Tu=function(n){if(-1===n.$&&-1===n.d.$&&-1===n.e.$){if(-1!==n.d.d.$||n.d.d.a){n.a,u=n.b,i=n.c;var r=n.d,e=(r.a,o=r.b,c=r.c,r.d),t=(h=r.e,n.e);return t.a,m=t.b,g=t.c,E=t.d,$=t.e,d(wu,1,u,i,d(wu,0,o,c,e,h),d(wu,0,m,g,E,$))}n.a;var u=n.b,i=n.c,a=n.d,o=(a.a,a.b),c=a.c,f=a.d,s=(f.a,f.b),l=f.c,v=f.d,b=f.e,h=a.e,p=n.e,m=(p.a,p.b),g=p.c,E=p.d,$=p.e;return d(wu,0,o,c,d(wu,1,s,l,v,b),d(wu,1,u,i,h,d(wu,0,m,g,E,$)))}return n},ku=o((function(n,r,e,t,u,i,a){if(-1!==i.$||i.a){n:for(;;){if(-1===a.$&&1===a.a){if(-1===a.d.$){if(1===a.d.a)return a.a,a.d.a,Tu(r);break n}return a.a,a.d,Tu(r)}break n}return r}i.a;var o=i.b,c=i.c,f=i.d,s=i.e;return d(wu,e,o,c,f,d(wu,0,t,u,s,a))})),xu=function(n){if(-1===n.$&&-1===n.d.$){var r=n.a,e=n.b,t=n.c,u=n.d,i=u.a,a=u.d,o=n.e;if(1===i){if(-1!==a.$||a.a){var c=Su(n);if(-1===c.$){var f=c.a,s=c.b,l=c.c,v=c.d,b=c.e;return d(Au,f,s,l,xu(v),b)}return Lu}return a.a,d(wu,r,e,t,xu(u),o)}return d(wu,r,e,t,xu(u),o)}return Lu},Pu=e((function(n,r){if(-2===r.$)return Lu;var e=r.a,t=r.b,u=r.c,i=r.d,a=r.e;if(w(n,t)<0){if(-1===i.$&&1===i.a){i.a;var o=i.d;if(-1!==o.$||o.a){var c=Su(r);if(-1===c.$){var f=c.a,l=c.b,v=c.c,b=c.d,p=c.e;return d(Au,f,l,v,s(Pu,n,b),p)}return Lu}return o.a,d(wu,e,t,u,s(Pu,n,i),a)}return d(wu,e,t,u,s(Pu,n,i),a)}return s(Mu,n,h(ku,n,r,e,t,u,i,a))})),Mu=e((function(n,r){if(-1===r.$){var e=r.a,t=r.b,u=r.c,i=r.d,a=r.e;if(I(n,t)){var o=function(n){for(;;){if(-1!==n.$||-1!==n.d.$)return n;n=n.d}}(a);if(-1===o.$){var c=o.b,f=o.c;return d(Au,e,c,f,i,xu(a))}return Lu}return d(Au,e,t,u,i,s(Pu,n,a))}return Lu})),Cu=e((function(n,r){var e=s(Pu,n,r);if(-1!==e.$||e.a)return e;e.a;var t=e.b,u=e.c,i=e.d,a=e.e;return d(wu,1,t,u,i,a)})),Du=t((function(n,r,e){var t=r(s(Nu,n,e));if(t.$)return s(Cu,n,e);var u=t.a;return l(Ou,n,u,e)})),ju=e((function(n,r){var e=s(se,"=",n);if(e.b&&e.b.b&&!e.b.b.b){var t=e.a,u=e.b.a,i=Iu(t);if(1===i.$)return r;var a=i.a,o=Iu(u);if(1===o.$)return r;var c=o.a;return l(Du,a,$u(c),r)}return r})),_u=Lu,Fu=e((function(n,r){return function(n){n:for(;;){if(n.b){var r=n.a,e=n.b,t=r.B;if(t.b){if(""!==t.a||t.b.b){n=e;continue n}return ue(r.w)}return ue(r.w)}return ie}}(n(d(gu,T,function(n){var r=s(se,"/",n);if(r.b&&""===r.a){var e=r.b;return Eu(e)}return Eu(e=r)}(r.aP),function(n){if(1===n.$)return _u;var r=n.a;return l(mt,ju,_u,s(se,"&",r))}(r.aV),r.aE,Qe)))})),qu="about",Gu="game",Bu="help",Uu=e((function(n,r){var e=r.I,t=r.B,u=r.F,i=r.D,a=r.w;return d(gu,e,t,u,i,n(a))})),Xu=e((function(n,r){var e=r;return function(r){var t=r.I,u=r.B,i=r.F,a=r.D,o=r.w;return s(gt,Uu(o),e(d(gu,t,u,i,a,n)))}})),Hu=e((function(n,r){return r.b?l(mt,Xr,r,n):n})),Vu=e((function(n,r){return e=s(gt,n,r),l(mt,Hu,T,e);var e})),Ju=function(n){return function(r){var e=r.I,t=r.B,u=r.F,i=r.D,a=r.w;if(t.b){var o=t.a,c=t.b;return I(o,n)?P([d(gu,s(Xr,o,e),c,u,i,a)]):T}return T}},zu="settings",Ku="solvenius",Yu=e((function(n,r){var e=n,t=r;return function(n){return s(Vu,t,e(n))}})),Zu="top-score",Qu=(fu=function(n){return s(Yu,Ju(Ku),Ju(n))},cu=P([s(Xu,0,Ju(Ku)),s(Xu,1,fu(Gu)),s(Xu,2,fu(zu)),s(Xu,3,fu(Zu)),s(Xu,4,fu(Bu)),s(Xu,5,fu(qu))]),function(n){return s(Vu,(function(r){return r(n)}),cu)}),Wu=e((function(n,r){return r.$?n:r.a})),ni=dn,ri=Bn("playMusic",ni),ei=e((function(n,r){var e=function(){var e,t;switch(function(n){return s(Wu,6,s(Fu,Qu,n))}(n)){case 0:return A(Pt,mu);case 1:return l(pu,Dt,hu(Mt),(e=r.a4,A(t={Q:T,t:2,C:T,K:ie,L:0,U:!1,A:3e4,ae:0,af:0,N:!1,a4:e,q:T},bu(t.t))));case 3:return A(qt,mu);case 2:return A(Ft,mu);case 4:return A(jt,mu);case 5:return A(Ct,mu);default:return A(_t,mu)}}(),t=e.a,u=e.b,i=1===t.$?ue("game.mp3"):ue("title.mp3");return A(O(r,{ab:i,H:t}),l(Bt,!I(i,r.ab),u,ri(s(Wu,"",i))))})),ti=t((function(n,r,e){var t={ab:ie,am:e,H:Pt,V:n.ai,a4:n.aj,a5:n.a5};return s(ei,r,t)})),ui=K,ii=Z,ai=function(n){return{$:9,a:n}},oi=function(n){return{$:10,a:n}},ci=function(n){return{$:11,a:n}},fi=Mn,si=t((function(n,r,e){return r(n(e))})),li=e((function(n,r){return{$:0,a:n,b:r}})),vi=e((function(n,r){return{aT:r,a3:n}})),di=bt(s(vi,_u,_u)),bi=e((function(n,r){var e=n.a,t=n.b,u=s(Nu,e,r);if(1===u.$)return l(Ou,e,P([t]),r);var i=u.a;return l(Ou,e,s(Xr,t,i),r)})),hi=function(n){return pn((function(r){var e=n.f;2===e.$&&e.c&&e.c(),n.f=null,r(hn(0))}))},pi=t((function(n,r,e){for(;;){if(-2===e.$)return r;var t=e.b,u=e.c,i=e.d,a=e.e,o=n,c=l(n,t,u,l(pi,n,r,i));n=o,r=c,e=a}})),mi=a((function(n,r,u,i,a,o){var c=t((function(e,t,i){n:for(;;){var a=i.a,o=i.b;if(a.b){var c=a.a,f=c.a,s=c.b,d=a.b;if(w(f,e)<0){e=e,t=t,i=A(d,l(n,f,s,o));continue n}return w(f,e)>0?A(a,l(u,e,t,o)):A(d,v(r,f,s,t,o))}return A(a,l(u,e,t,o))}})),f=l(pi,c,A(Jr(i),o),a),s=f.a,d=f.b;return l(ve,e((function(r,e){var t=r.a,u=r.b;return l(n,t,u,e)})),d,s)})),gi=xn,Ei=Ur,$i=$n,Ii=t((function(n,r,e){if(r.b){var t=r.a,u=r.b,i=$i(s(Ei,t,s(gi,n,t)));return s(Et,(function(r){return l(Ii,n,u,l(Ou,t,r,e))}),i)}return bt(e)})),yi=t((function(n,r,e){var i=e.aT,a=t((function(n,r,e){var t=e.a,u=e.b,i=e.c;return R(t,u,s(Et,(function(n){return i}),hi(r)))})),o=l(ve,bi,_u,r),c=t((function(n,r,e){var t=e.a,u=e.b,i=e.c;return R(s(Xr,n,t),u,i)})),f=u((function(n,r,e,t){var u=t.a,i=t.b,a=t.c;return R(u,l(Ou,n,e,i),a)})),v=b(mi,c,f,a,o,i,R(T,_u,bt(0))),d=v.a,h=v.b,p=v.c;return s(Et,(function(n){return bt(s(vi,o,n))}),s(Et,(function(r){return l(Ii,n,d,h)}),p))})),Ni=t((function(n,r,e){var t=s(Nu,r,e.a3);if(1===t.$)return bt(e);var u=t.a;return s(Et,(function(n){return bt(e)}),s(Et,(function(r){return yt(s(gt,(function(e){return s(Nt,n,e(r))}),u))}),ru))})),wi=t((function(n,r,e){return n(r(e))})),Li=e((function(n,r){var e=r.a,t=r.b;return s(li,e,s(wi,n,t))}));On.Time=Sn(di,yi,Ni,0,Li);var Ai=Pn("Time"),Ri=e((function(n,r){return Ai(s(li,n,r))})),Oi=t((function(n,r,e){return{$:0,a:n,b:r,c:e}})),Si=e((function(n,r){return{aQ:r,a2:n}})),Ti=bt(s(Si,T,_u)),ki=function(n){var r=n.a,e=n.b;return A(S(function(n){return n?"w_":"d_"}(r),e),n)},xi=function(n){return l(ve,e((function(n,r){var e=n.a,t=n.b;return l(Ou,e,t,r)})),_u,n)},Pi=e((function(n,r){return{aD:r,aJ:n}})),Mi=t((function(n,r,e){var t=e.a,u=e.b;return s($t,(function(n){return A(r,n)}),l(qr,t?Fr:_r,u,(function(e){return s(gi,n,s(Pi,r,e))})))})),Ci=e((function(n,r){return l(pi,Ou,r,n)})),Di=t((function(n,r,e){var i=t((function(r,e,t){var u=t.a,i=t.b,a=t.c;return R(u,i,s(Xr,l(Mi,n,r,e),a))})),a=t((function(n,r,e){var t=e.a,u=e.b,i=e.c;return R(s(Xr,r,t),u,i)})),o=u((function(n,r,e,t){var u=t.a,i=t.b,a=t.c;return R(u,l(Ou,n,r,i),a)})),c=s(gt,ki,r),f=b(mi,a,o,i,e.aQ,xi(c),R(T,_u,T)),v=f.a,d=f.b,h=f.c;return s(Et,(function(n){return bt(s(Si,c,s(Ci,d,xi(n))))}),s(Et,(function(n){return yt(h)}),yt(s(gt,hi,v))))})),ji=t((function(n,r,e){var t=n(r);if(t.$)return e;var u=t.a;return s(Xr,u,e)})),_i=e((function(n,r){return l(mt,ji(n),T,r)})),Fi=t((function(n,r,e){var t=r.aJ,u=r.aD,i=s(_i,(function(n){var r=n.a,e=n.b,i=(e.a,e.b,e.c);return I(r,t)?s(Gr,i,u):ie}),e.a2);return s(Et,(function(n){return bt(e)}),yt(s(gt,Nt(n),i)))})),qi=e((function(n,r){var e=r.a,t=r.b,u=r.c;return l(Oi,e,t,s(ze,n,u))}));On["Browser.Events"]=Sn(Ti,Di,Fi,0,qi);var Gi,Bi,Ui,Xi,Hi,Vi,Ji,zi=Pn("Browser.Events"),Ki=s(t((function(n,r,e){return zi(l(Oi,n,r,e))})),0,"keydown"),Yi=(Bi=ui,Gn(Gi="topScoreChanged"),On[Gi]={f:Vn,u:Bi,a:function(n,r){var e=T,u=On[n].u,i=hn(null);return On[n].b=i,On[n].c=t((function(n,r,t){return e=r,i})),{send:function(n){var t=s(tn,u,n);Ve(t)||$(4,t.a);for(var i=t.a,a=e;a.b;a=a.b)r(a.a(i))}}}},Pn(Gi)),Zi=function(n){return n.A<=0},Qi=Bn("saveTopScore",dn),Wi=e((function(n,r){var e=r.H;if(1===e.$){var t=e.a;return Zi(t)&&w(t.ae,r.a4)>0?A(O(r,{a4:t.ae}),Qi(t.ae)):A(r,mu)}return A(r,mu)})),na={$:1},ra=function(n){return{$:0,a:n}},ea=function(n){return!n},ta=function(n){return!(Zi(n)||n.N||n.U||(r=n.C,!r.b));var r},ua=t((function(n,r,e){for(;;){if(n<=0)return e;if(!r.b)return e;var t=r.a;n-=1,r=r.b,e=s(Xr,t,e)}})),ia=e((function(n,r){return Ne(l(ua,n,r,T))})),aa=t((function(n,r,e){if(r<=0)return T;var t=A(r,e);n:for(;;){r:for(;;){if(!t.b.b)return e;if(!t.b.b.b){if(1===t.a)break n;break r}switch(t.a){case 1:break n;case 2:var u=t.b;return P([a=u.a,v=u.b.a]);case 3:if(t.b.b.b.b){var i=t.b,a=i.a,o=i.b;return P([a,v=o.a,b=o.b.a])}break r;default:if(t.b.b.b.b&&t.b.b.b.b.b){var c=t.b,f=(a=c.a,c.b),v=f.a,d=f.b,b=d.a,h=d.b,p=h.a,m=h.b;return s(Xr,a,s(Xr,v,s(Xr,b,s(Xr,p,n>1e3?s(ia,r-4,m):l(aa,n+1,r-4,m)))))}break r}}return e}return P([a=t.b.a])})),oa=e((function(n,r){return l(aa,0,n,r)})),ca=e((function(n,r){for(;;){if(!r.b)return!1;var e=r.a,t=r.b;if(n(e))return!0;n=n,r=t}})),fa=e((function(n,r){return!s(ca,s(wi,ea,n),r)})),sa=t((function(n,r,e){for(;;){var t=s(qe,Re,n),u=t.a,i=t.b;if(w(_e(u),Re)<0)return s(Ue,!0,{e:r,b:e,d:u});n=i,r=s(Xr,Ce(u),r),e+=1}})),la=e((function(n,r){return r.$?ie:n(r.a)})),va=4294967295>>>32-xe,da=g,ba=t((function(n,r,e){for(;;){var t=s(da,va&r>>>n,e);if(t.$){var u=t.a;return s(da,va&r,u)}var i=t.a;n-=xe,r=r,e=i}})),ha=e((function(n,r){var e=r.a,t=r.b,u=r.c,i=r.d;return n<0||w(n,e)>-1?ie:w(n,function(n){return n>>>5<<5}(e))>-1?ue(s(da,va&n,i)):ue(l(ba,t,n,u))})),pa=e((function(n,r){if(r.$)return ie;var e=r.a;return ue(n(e))})),ma=t((function(n,r,e){return s(la,(function(t){return t?ue(e):l(ma,n,r,e+1)}),s(pa,De(n),s(ha,e,r)))})),ga=function(n){switch(n){case 0:return"0";case 1:return"1";case 2:return"2";case 3:return"3";case 4:return"4";case 5:return"5";case 6:return"6";case 7:return"7";case 8:return"8";default:return"9"}},Ea=e((function(n,r){var e=n.a,t=n.b,u=s(Wu,"!!!",s(ha,e,r._)),i=ga(t);if(I(i,u))return O(r,{E:l(Ou,i,e,r.E),v:s(Xr,0,r.v)});var a=s(Wu,-1,s(Nu,i,r.E))+1,o=l(ma,i,r._,a);if(o.$)return O(r,{v:s(Xr,2,r.v)});var c=o.a;return O(r,{E:l(Ou,i,c,r.E),v:s(Xr,1,r.v)})})),$a=e((function(n,r){return A(n,r)})),Ia=e((function(n,r){var e,t={_:(e=s(gt,ga,n),e.b?l(sa,e,T,0):Pe),E:_u,v:T},u=l(ve,Ea,t,s(me,$a,r));return I(de(r),de(n))?re(Ne(u.v)):Zr("The sequence of expected digits and the sequence of actual digits have different lengths!")})),ya=function(n){if(n.$)return ie;var r=n.a;return ue(r)},Na=e((function(n,r){return n+s(Fe,0,6*n-(r/1e3|0))})),wa=e((function(n,r){return w(n,r)<0?n:r})),La=j,Aa=Bn("playSound",ni),Ra=e((function(n,r){if(ta(r)){var e=S(r.q,P([n])),t=O(r,{q:e});return I(de(e),de(r.C))?function(n){var r=s(Wu,T,ya(s(Ia,n.C,n.q)));if(s(fa,De(0),r))return function(n){var r=s(La,n.t,n.af+1),e=n.ae+s(Na,n.t,n.L),t=n.A+4e3*n.t,u=r?n.t:s(wa,9,n.t+1);return A(O(n,{Q:T,t:u,C:T,L:0,A:t,ae:e,af:r,q:T}),Gt(P([bu(u),Aa("perfectMatch.mp3")])))}(n);var e=l(be,$a,n.q,r);return A(O(n,{Q:s(Xr,e,n.Q),q:T}),mu)}(t):A(t,mu)}return A(r,mu)})),Oa=e((function(n,r){if(ta(r)){var e=n-s(Wu,n,r.K),t=s(Fe,0,r.A-e);return A(O(r,{K:ue(n),L:r.L+e,A:t}),mu)}return A(r,mu)})),Sa=e((function(n,r){var e=function(){switch(n){case"0":return ue(ra(0));case"1":return ue(ra(1));case"2":return ue(ra(2));case"3":return ue(ra(3));case"4":return ue(ra(4));case"5":return ue(ra(5));case"6":return ue(ra(6));case"7":return ue(ra(7));case"8":return ue(ra(8));case"9":return ue(ra(9));case"Backspace":return ue(na);default:return ie}}();return s(Wu,A(r,mu),s(pa,(function(n){return s(Ta,n,r)}),e))})),Ta=e((function(n,r){switch(n.$){case 0:var e=n.a;return s(Ra,e,r);case 1:return function(n){return ta(n)?A(O(n,{q:s(oa,de(n.q)-1,n.q)}),mu):A(n,mu)}(r);case 2:return A(O(r,{C:n.a}),mu);case 3:return A(O(r,{K:ie,U:!0}),mu);case 4:return A(O(r,{U:!1}),mu);case 5:return A(O(r,{K:ie,N:!0}),mu);case 6:return A(O(r,{N:!1}),mu);case 7:return A(O(r,{A:0,N:!1}),mu);case 8:var t=n.a;return s(Sa,t,r);default:var u=n.a;return s(Oa,u,r)}})),ka=u((function(n,r,e,t){var u=t,i=u.a,a=u.b,o=s(hu,r,a);return A(O(e,{H:n(i)}),o)})),xa=e((function(n,r){var e=A(n,r.H);n:for(;1===e.b.$;)switch(e.a.$){case 10:var t=e.a.a,u=e.b.a;return v(ka,Dt,Mt,r,s(Ta,{$:9,a:t},u));case 9:var i=e.a.a;return u=e.b.a,v(ka,Dt,Mt,r,s(Ta,{$:8,a:i},u));case 1:var a=e.a.a;return u=e.b.a,v(ka,Dt,Mt,r,s(Ta,a,u));default:break n}return A(r,mu)})),Pa=Dr,Ma=Bn("resetTopScore",(function(n){return null})),Ca=e((function(n,r){if(1===n.$)return r;var e=n.a;return r+":"+ce(e)})),Da=t((function(n,r,e){return 1===r.$?e:S(e,S(n,r.a))})),ja=dn,_a=Bn("saveSettings",(function(n){return r=P([A("musicEnabled",ja(n.al)),A("soundsEnabled",ja(n.ar))]),l(ve,e((function(n,r){var e=n.a,t=n.b;return l(bn,e,t,r)})),{},r);var r})),Fa=e((function(n,r){var e=n(r.V);return A(O(r,{V:e}),_a(e))})),qa=e((function(n,r){switch(n.$){case 8:var e=n.a;return s(ei,e,r);case 7:return n.a.$?A(r,function(n){return s(Tt,dt,pn((function(r){try{Fr.location=n}catch(n){Jn.location.reload(!1)}})))}(n.a.a)):(e=n.a.a,A(r,s(Pa,r.am,function(n){var r=n.aU?"https://":"http://";return l(Da,"#",n.aE,l(Da,"?",n.aV,S(s(Ca,n.aR,S(r,n.aI)),n.aP)))}(e))));case 2:return n.a,A(r,Ma(0));case 11:return A(O(r,{a4:n.a}),mu);case 3:return n.a?(n.a,s(Fa,(function(n){return O(n,{ar:!n.ar})}),r)):(n.a,s(Fa,(function(n){return O(n,{al:!n.al})}),r));default:return A(r,mu)}})),Ga=t((function(n,r,e){var t=e,u=t.a,i=t.b,a=s(n,r,u),o=a.a,c=a.b;return A(o,Gt(P([i,c])))})),Ba=e((function(n,r){return l(Ga,Wi,n,l(Ga,xa,n,s(qa,n,r)))})),Ua=function(n){return{$:5,a:n}},Xa=function(n){return{$:4,a:n}},Ha=function(n){return{$:0,a:n}},Va=function(n){return{$:6,a:n}},Ja=function(n){return{$:3,a:n}},za=function(n){return{$:2,a:n}},Ka=e((function(n,r){return s(rr,n,ni(r))})),Ya=Ka("className"),Za=Yn("div"),Qa=Zn,Wa=e((function(n,r){return{bd:s(gt,Qa(n),r.bd),bL:r.bL}})),no=Yn("a"),ro=Yn("li"),eo=Kn,to=function(n){return s(ro,P([Ya("attribution")]),P([eo(n)]))},uo=Yn("h3"),io=function(n){return s(Ka,"href",/^javascript:/i.test((r=n).replace(/\s/g,""))?"":r);var r},ao=Yn("p"),oo=Yn("span"),co=Ya("button"),fo=t((function(n,r,e){var t=io(function(n){var r=function(){switch(n){case 0:return"";case 1:return Gu;case 2:return zu;case 3:return Zu;case 4:return Bu;case 5:return qu;default:return"not-found"}}();return s(fe,"",P(["/",Ku,"/",r]))}(n));return s(no,s(Xr,t,r),P([eo(e)]))})),so=t((function(n,r,e){return l(fo,n,s(Xr,co,r),e)})),lo=e((function(n,r){return s(Za,s(Xr,Ya("page"),n),r)})),vo=e((function(n,r){return s(lo,s(Xr,Ya("textPage"),n),P([s(Za,P([Ya("content")]),r),l(so,0,T,"🏠 Home")]))})),bo=Yn("ul"),ho=Yn("h1"),po=Wn,mo=e((function(n,r){return s(po,n,{$:0,a:r})})),go=function(n){return s(mo,"click",Ye(n))},Eo=P([s(ho,T,P([eo("Game paused")])),s(Za,P([go({$:4}),co]),P([eo("▢️ Resume")]))]),$o={$:3},Io={$:5},yo=function(n){return s(Za,P([Ya("attemptRow")]),s(gt,(function(n){var r,e,t=n.a,u=n.b;return s(oo,P([Ya((r=u,e=function(n){switch(n){case 0:return"Matching";case 1:return"Misplaced";default:return"Unused"}}(r),e.toLowerCase()))]),P([eo(ga(t))]))}),n))},No=e((function(n,r){return s(Za,s(Xr,Ya("sequenceButton"),s(Xr,co,n)),P([s(oo,T,P([eo(r)]))]))})),wo=function(n){return s(No,P([go(ra(n))]),ga(n))},Lo=s(No,P([go(na)]),"<"),Ao=s(Za,P([Ya("sequenceButtonsBox")]),P([s(Za,T,s(gt,wo,P([1,2,3]))),s(Za,T,s(gt,wo,P([4,5,6]))),s(Za,T,s(gt,wo,P([7,8,9]))),s(Za,T,P([wo(0),Lo]))])),Ro=t((function(n,r,e){for(;;){if(r<=0)return n;n=s(Xr,e,n),r-=1,e=e}})),Oo=e((function(n,r){return l(Ro,T,n,r)})),So=e((function(n,r){var e=s(gt,ga,r),t=s(Oo,n-de(r),"_");return s(Za,P([Ya("sequenceDisplay")]),P([eo(s(fe," ",S(e,t)))]))})),To=function(n){return ce(n)},ko={$:6},xo={$:7},Po=nr;Ui={Main:{init:(Hi=(Xi={br:ti,bC:function(n){return{$:8,a:n}},bD:function(n){return{$:7,a:n}},bI:function(n){var r=s(ze,ai,s(xt,"key",ii));return fi(P([Ki(r),s(Ri,333,s(si,eu,oi)),Yi(ci)]))},bM:Ba,bN:function(n){var r=function(){var r=n.H;switch(r.$){case 0:return s(Wa,Ha,{bd:P([s(lo,P([Ya("home")]),P([s(ho,T,P([eo("Solvenius 4")])),s(Za,P([Ya("links")]),P([l(so,1,T,"▢️ Play!"),l(so,3,T,"πŸ† Top score"),l(so,2,T,"βš™οΈ Settings"),l(so,4,T,"❓ Help"),l(so,5,T,"ℹ️ About...")]))]))]),bL:"Solvenius"});case 1:var e=r.a;return s(Wa,Mt,function(n){var r=n.U?Eo:n.N?P([s(ho,T,P([eo("Stop the game?")])),s(Za,P([go(ko),co]),P([eo("▢️ Resume")])),s(Za,P([go(xo),co]),P([eo("⏹️ Exit")]))]):Zi(n)?function(n){return P([s(ho,T,P([eo("Game over!")])),s(Za,T,P([s(uo,T,P([eo("Your score is: "+ce(n.ae))])),s(uo,T,P([eo(w(n.ae,n.a4)>0?"🌟 New top score! 🌟":"")]))])),l(so,1,T,"πŸ”ƒ Play again"),l(so,0,T,"🏠 Home")])}(n):function(n){return P([s(Za,P([Ya("info")]),P([s(oo,T,P([eo("Score: "+To(n.ae))])),s(oo,P([Ya("timeLabel")]),P([eo("Time: "+s(Wu,"",ya((e=n.A,t=e/1e3,u=je(t)%60,i=P([ce(u),"s"]),a=je(t/60),o=S(a>0?P([ce(a),"m "]):T,i),e>=0?re(s(fe,"",o)):Zr("Milliseconds must be >= 0")))))]))])),s(So,n.t,n.q),(r=n.Q,s(Za,P([Ya("attemptsArea")]),s(gt,yo,r))),Ao,s(Za,P([Ya("controlButtonsBox")]),P([s(Za,P([go($o),co]),P([eo("⏸️ Pause")])),s(Za,P([go(Io),co]),P([eo("⏹️ Exit")]))]))]);var r,e,t,u,i,a,o}(n);return{bd:P([s(lo,P([Ya("game")]),r)]),bL:"Solvenius"}}(e));case 2:return s(Wa,za,function(n){return{bd:P([s(lo,P([Ya("topScore")]),P([s(ho,P([Ya("label")]),P([eo("Your top score is:")])),s(Za,P([Ya("topScoreBox")]),P([s(oo,T,P([eo(To(n))]))])),s(Za,P([go(0),n>0?co:s(Po,"display","none")]),P([eo("πŸ—‘οΈ Reset")])),l(so,0,T,"🏠 Home")]))]),bL:"Solvenius - Top Score"}}(n.a4));case 3:return s(Wa,Ja,function(n){return{bd:P([s(lo,P([Ya("settings")]),P([s(Za,P([go(0),co]),P([eo(n.al?"πŸ”ŠπŸŽΆ Music is on":"πŸ”‡πŸŽΆ Music is off")])),s(Za,P([go(1),co]),P([eo(n.ar?"πŸ”ŠπŸ”” Sounds are on":"πŸ”‡πŸ”” Sounds are off")])),l(so,0,T,"🏠 Home")]))]),bL:"Solvenius - Settings"}}(n.V));case 4:return s(Wa,Xa,{bd:P([s(vo,P([Ya("help")]),P([s(ao,T,P([eo("Deduce as many sequences as you can, before the time runs out!")])),s(ao,T,P([eo("When the game starts, you'll have to infer a sequence of 2 digits; as the game goes on, sequences grow longer and longer - up to 9 digits: the objective is to make a score greater than your previous top score.")])),s(ao,T,P([eo("Wrong input sequences will give you clues on the actual secret sequence; every digit will be:")])),s(bo,T,P([s(ro,T,P([eo("GREEN if it is exactly in that position in the secret sequence")])),s(ro,T,P([eo("YELLOW (and underlined) if it is in the secret sequence, but in another position")])),s(ro,T,P([eo("RED (and stricken-through) if it is not in the secret sequence")]))])),s(ao,T,P([eo("You will earn points - and even additional time - by inferring the right sequence: the quicker you are, the more points you receive.")])),s(ao,T,P([eo("There are no limits on the number of attempts you can perform; but the time flows, making the game end as soon as the countdown reaches 0.")]))]))]),bL:"Solvenius - Reference"});case 5:return s(Wa,Ua,function(n){return{bd:P([s(vo,P([Ya("about")]),P([s(ao,T,P([eo("Solvenius 4 (v"+n.a5+") is an open source app created using the Elm language.")])),s(ao,T,P([eo("Copyright Β© 2001-2023 Gianluca Costa.")])),s(ao,T,P([s(oo,T,P([eo("To explore the source code, please visit the ")])),s(no,P([io("https://github.com/giancosta86/solvenius")]),P([eo("GitHub repository")])),s(oo,T,P([eo(".")]))])),s(uo,T,P([eo("Audio credits")])),s(bo,T,P([to("The Entertainer by Kevin MacLeod\nLink: https://incompetech.filmmusic.io/song/5765-the-entertainer\nLicense: https://filmmusic.io/standard-license"),to("Frogs Legs Rag by Kevin MacLeod\nLink: https://incompetech.filmmusic.io/song/5761-frogs-legs-rag\nLicense: https://filmmusic.io/standard-license"),to("Ding sound\nLink: https://djlunatique.com/ding-sound-effect/\nLicense: https://creativecommons.org/publicdomain/zero/1.0/")])),s(ao,T,P([eo("NOTE: the original audio files have been compressed when creating the game.")]))]))]),bL:"About Solvenius..."}}({a5:n.a5}));default:return s(Wa,Va,{bd:P([s(lo,P([Ya("notFound")]),P([s(Za,T,P([eo("O__o You have requested a missing page!")])),l(so,0,T,"🏠 Home")]))]),bL:"Solvenius - Page not found"})}}(),e=s(Za,P([Ya("container")]),r.bd);return O(r,{bd:P([e])})}}).bC,Vi=Xi.bD,Ji=function(){Ji.a(Hi(Cr()))},xr({aq:function(n){return Ji.a=n,Fr.addEventListener("popstate",Ji),Fr.navigator.userAgent.indexOf("Trident")<0||Fr.addEventListener("hashchange",Ji),e((function(r,e){if(!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&e.button<1&&!r.target&&!r.hasAttribute("download")){e.preventDefault();var t=r.href,u=Cr(),i=vt(t).a;n(Vi(i&&u.aU===i.aU&&u.aI===i.aI&&u.aR.a===i.aR.a?{$:0,a:i}:function(n){return{$:1,a:n}}(t)))}}))},br:function(n){return l(Xi.br,n,Cr(),Ji)},bN:Xi.bN,bM:Xi.bM,bI:Xi.bI}))(s(Je,(function(n){return s(Je,(function(r){return s(Je,(function(e){return Ye({ai:e,aj:r,a5:n})}),s(xt,"initialSettings",s(Je,(function(n){return s(Je,(function(r){return Ye({al:r,ar:n})}),s(xt,"musicEnabled",kt))}),s(xt,"soundsEnabled",kt))))}),s(xt,"initialTopScore",ui))}),s(xt,"version",ii)))(0)}},n.Elm?function n(r,e){for(var t in e)t in r?"init"==t?$(6):n(r[t],e[t]):r[t]=e[t]}(n.Elm,Ui):n.Elm=Ui}(this)},376:(n,r,e)=>{const t=e(225),{MAX_LENGTH:u,MAX_SAFE_INTEGER:i}=e(295),{re:a,t:o}=e(765),c=e(893),{compareIdentifiers:f}=e(742);class s{constructor(n,r){if(r=c(r),n instanceof s){if(n.loose===!!r.loose&&n.includePrerelease===!!r.includePrerelease)return n;n=n.version}else if("string"!=typeof n)throw new TypeError(`Invalid Version: ${n}`);if(n.length>u)throw new TypeError(`version is longer than ${u} characters`);t("SemVer",n,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const e=n.trim().match(r.loose?a[o.LOOSE]:a[o.FULL]);if(!e)throw new TypeError(`Invalid Version: ${n}`);if(this.raw=n,this.major=+e[1],this.minor=+e[2],this.patch=+e[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");e[4]?this.prerelease=e[4].split(".").map((n=>{if(/^[0-9]+$/.test(n)){const r=+n;if(r>=0&&r=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${n}`)}return this.format(),this.raw=this.version,this}}n.exports=s},295:n=>{const r=Number.MAX_SAFE_INTEGER||9007199254740991;n.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:r,MAX_SAFE_COMPONENT_LENGTH:16}},225:n=>{const r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};n.exports=r},742:n=>{const r=/^[0-9]+$/,e=(n,e)=>{const t=r.test(n),u=r.test(e);return t&&u&&(n=+n,e=+e),n===e?0:t&&!u?-1:u&&!t?1:ne(r,n)}},893:n=>{const r=["includePrerelease","loose","rtl"];n.exports=n=>n?"object"!=typeof n?{loose:!0}:r.filter((r=>n[r])).reduce(((n,r)=>(n[r]=!0,n)),{}):{}},765:(n,r,e)=>{const{MAX_SAFE_COMPONENT_LENGTH:t}=e(295),u=e(225),i=(r=n.exports={}).re=[],a=r.src=[],o=r.t={};let c=0;const f=(n,r,e)=>{const t=c++;u(t,r),o[n]=t,a[t]=r,i[t]=new RegExp(r,e?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","[0-9]+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),f("MAINVERSION",`(${a[o.NUMERICIDENTIFIER]})\\.(${a[o.NUMERICIDENTIFIER]})\\.(${a[o.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${a[o.NUMERICIDENTIFIERLOOSE]})\\.(${a[o.NUMERICIDENTIFIERLOOSE]})\\.(${a[o.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${a[o.NUMERICIDENTIFIER]}|${a[o.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${a[o.NUMERICIDENTIFIERLOOSE]}|${a[o.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${a[o.PRERELEASEIDENTIFIER]}(?:\\.${a[o.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${a[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[o.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER","[0-9A-Za-z-]+"),f("BUILD",`(?:\\+(${a[o.BUILDIDENTIFIER]}(?:\\.${a[o.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${a[o.MAINVERSION]}${a[o.PRERELEASE]}?${a[o.BUILD]}?`),f("FULL",`^${a[o.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${a[o.MAINVERSIONLOOSE]}${a[o.PRERELEASELOOSE]}?${a[o.BUILD]}?`),f("LOOSE",`^${a[o.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${a[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${a[o.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${a[o.XRANGEIDENTIFIER]})(?:\\.(${a[o.XRANGEIDENTIFIER]})(?:\\.(${a[o.XRANGEIDENTIFIER]})(?:${a[o.PRERELEASE]})?${a[o.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${a[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[o.XRANGEIDENTIFIERLOOSE]})(?:${a[o.PRERELEASELOOSE]})?${a[o.BUILD]}?)?)?`),f("XRANGE",`^${a[o.GTLT]}\\s*${a[o.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${a[o.GTLT]}\\s*${a[o.XRANGEPLAINLOOSE]}$`),f("COERCE",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?(?:$|[^\\d])`),f("COERCERTL",a[o.COERCE],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${a[o.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",f("TILDE",`^${a[o.LONETILDE]}${a[o.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${a[o.LONETILDE]}${a[o.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${a[o.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",f("CARET",`^${a[o.LONECARET]}${a[o.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${a[o.LONECARET]}${a[o.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${a[o.GTLT]}\\s*(${a[o.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${a[o.GTLT]}\\s*(${a[o.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${a[o.GTLT]}\\s*(${a[o.LOOSEPLAIN]}|${a[o.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${a[o.XRANGEPLAIN]})\\s+-\\s+(${a[o.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${a[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[o.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0.0.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},896:(n,r,e)=>{"use strict";e.r(r),e.d(r,{default:()=>m});var t=e(379),u=e.n(t),i=e(795),a=e.n(i),o=e(569),c=e.n(o),f=e(565),s=e.n(f),l=e(216),v=e.n(l),d=e(589),b=e.n(d),h=e(528),p={};p.styleTagTransform=b(),p.setAttributes=s(),p.insert=c().bind(null,"head"),p.domAPI=a(),p.insertStyleElement=v(),u()(h.Z,p);const m=h.Z&&h.Z.locals?h.Z.locals:void 0},379:n=>{"use strict";var r=[];function e(n){for(var e=-1,t=0;t{"use strict";var r={};n.exports=function(n,e){var t=function(n){if(void 0===r[n]){var e=document.querySelector(n);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(n){e=null}r[n]=e}return r[n]}(n);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(e)}},216:n=>{"use strict";n.exports=function(n){var r=document.createElement("style");return n.setAttributes(r,n.attributes),n.insert(r),r}},565:(n,r,e)=>{"use strict";n.exports=function(n){var r=e.nc;r&&n.setAttribute("nonce",r)}},795:n=>{"use strict";n.exports=function(n){var r=n.insertStyleElement(n);return{update:function(e){!function(n,r,e){var t=e.css,u=e.media,i=e.sourceMap;u?n.setAttribute("media",u):n.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),r.styleTagTransform(t,n)}(r,n,e)},remove:function(){!function(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n)}(r)}}}},589:n=>{"use strict";n.exports=function(n,r){if(r.styleSheet)r.styleSheet.cssText=n;else{for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(document.createTextNode(n))}}},778:(n,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ConditionalPlayer=void 0;var e=function(){function n(n){this.audioElement=document.createElement("audio"),this.audioElement.style.display="none",document.body.append(this.audioElement),this.audioElement.loop=n}return Object.defineProperty(n.prototype,"enabled",{get:function(){return!this.audioElement.muted},set:function(n){this.audioElement.muted=!n},enumerable:!1,configurable:!0}),n.prototype.play=function(n){this.audioElement.src=n,this.audioElement.play()},n}();r.ConditionalPlayer=e},826:(n,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ElmApp=void 0;var e=function(){function n(n,r,e){var t;e?t=e:(t=document.createElement("div"),document.body.append(t)),this.elmSystem=n.init({node:t,flags:r})}return n.prototype.ensurePort=function(n){if(!Reflect.has(this.elmSystem.ports,n))throw new Error("Port '"+n+"' was not published by the Elm system")},n.prototype.listenOnJsPort=function(n,r){return this.ensurePort(n),this.elmSystem.ports[n].subscribe(r),this},n.prototype.sendToPort=function(n,r){return this.ensurePort(n),this.elmSystem.ports[n].send(r),this},n}();r.ElmApp=e},780:(n,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LocalStorageVar=void 0;var e=function(){function n(n){this.key=n}return Object.defineProperty(n.prototype,"value",{get:function(){var n=localStorage.getItem(this.key);return n?JSON.parse(n):null},set:function(n){null!=n?localStorage.setItem(this.key,JSON.stringify(n)):localStorage.removeItem(this.key)},enumerable:!1,configurable:!0}),n}();r.LocalStorageVar=e},299:function(n,r,e){"use strict";var t=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(r,"__esModule",{value:!0});var u,i,a,o,c=e(826),f=e(780),s=e(932),l=e(778),v=t(e(376)),d=t(e(306));e(896),i=new f.LocalStorageVar("previousVersion"),a=new v.default(null!==(u=i.value)&&void 0!==u?u:d.default.version),1==(o=new v.default(d.default.version)).compare(a)&&alert("Solvenius just got an automatic update and is ready to run! ^__^\n\nYour new version: "+o),i.value=o.format(),"serviceWorker"in navigator&&navigator.serviceWorker.register("service-worker.js").then((function(n){console.log("Service worker registered:",n)})).catch((function(n){console.log("Service worker registration failed:",n)})),function(){var n,r,e=new f.LocalStorageVar("topScore"),t=new f.LocalStorageVar("settings"),u=null!==(n=t.value)&&void 0!==n?n:{musicEnabled:!0,soundsEnabled:!0},i={initialTopScore:null!==(r=e.value)&&void 0!==r?r:0,initialSettings:u,version:d.default.version},a=new l.ConditionalPlayer(!0);a.enabled=u.musicEnabled;var o=new l.ConditionalPlayer(!1);o.enabled=u.soundsEnabled;var v=new c.ElmApp(s.Elm.Main,i);v.listenOnJsPort("saveTopScore",(function(n){e.value=n})).listenOnJsPort("resetTopScore",(function(){confirm("Reset the top score?")&&(e.value=null,v.sendToPort("topScoreChanged",0))})).listenOnJsPort("saveSettings",(function(n){a.enabled=n.musicEnabled,o.enabled=n.soundsEnabled,t.value=n})).listenOnJsPort("playMusic",(function(n){a.play(n)})).listenOnJsPort("playSound",(function(n){o.play(n)}))}()},306:n=>{"use strict";n.exports=JSON.parse('{"name":"solvenius","version":"4.9.0","description":"Logic game in modern Elm","private":true,"scripts":{"clean":"rimraf dist elm-stuff/generated-code","clean:all":"yarn clean && rimraf node_modules elm-stuff","test":"elm-test","start":"webpack serve --open --config webpack.dev.js","build":"yarn test && webpack --config webpack.prod.js","start:dist":"http-server dist -o /solvenius/ -a 0.0.0.0"},"author":{"name":"Gianluca Costa","url":"https://gianlucacosta.info/","email":"gianluca@gianlucacosta.info"},"license":"Apache-2.0","repository":{"type":"git","url":"https://github.com/giancosta86/solvenius"},"homepage":"https://gianlucacosta.info/solvenius","bugs":{"url":"https://github.com/giancosta86/solvenius/issues"},"devDependencies":{"@types/semver":"^7.3.8","clean-webpack-plugin":"^4.0.0-alpha.0","copy-webpack-plugin":"^9.0.1","css-loader":"^6.1.0","elm":"0.19.1-5","elm-format":"^0.8.5","elm-test":"^0.19.1-revision7","elm-webpack-loader":"^8.0.0","favicons":"^7.1.4","favicons-webpack-plugin":"^6.0.1","html-webpack-plugin":"^5.3.2","http-server":"^0.12.3","prettier":"^2.3.2","rimraf":"^5.0.5","sass":"^1.35.2","sass-loader":"^12.1.0","style-loader":"^3.1.0","ts-loader":"^9.2.3","typescript":"^4.3.5","webpack":"^5.45.1","webpack-cli":"^4.7.2","webpack-dev-server":"^3.11.2","webpack-merge":"^5.8.0","workbox-webpack-plugin":"^6.1.5"},"dependencies":{"semver":"^7.3.5"}}')}},r={};function e(t){var u=r[t];if(void 0!==u)return u.exports;var i=r[t]={id:t,exports:{}};return n[t].call(i.exports,i,i.exports,e),i.exports}e.n=n=>{var r=n&&n.__esModule?()=>n.default:()=>n;return e.d(r,{a:r}),r},e.d=(n,r)=>{for(var t in r)e.o(r,t)&&!e.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:r[t]})},e.o=(n,r)=>Object.prototype.hasOwnProperty.call(n,r),e.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e(299)})(); \ No newline at end of file +(()=>{var n={528:(n,r,e)=>{"use strict";e.d(r,{Z:()=>o});var t=e(645),u=e.n(t),i=e(504),a=u()((function(n){return n[1]}));a.i(i.Z),a.push([n.id,"*{box-sizing:border-box}body{font-family:sans-serif;position:absolute;width:100%;height:100%;overscroll-behavior:none;user-select:none}.container{background:#90f590;color:#013301;display:flex;margin-left:auto;margin-right:auto;width:50%;height:100%;font-size:1.1em}a:visited,a:active{color:blue}a.button{width:50%;text-decoration:none}a.button:visited,a.button:active{color:#093607}h1,h2,h3{font-weight:bold;text-align:center}h1{font-size:2em}h3{margin-top:2em;margin-bottom:1em}p,ul{margin-top:1em;margin-bottom:1em}ul{list-style:disc;list-style-position:inside}li{margin-top:.5em;margin-bottom:.5em}.button{display:block;font-size:1.2em;padding:.7em;border:2px solid #011b01;border-radius:1em;text-transform:uppercase;text-align:center;margin:.5em;cursor:pointer;color:#093607;background:#64d164;box-shadow:3px 3px #6ba86b}.button:hover{background:#54b354;box-shadow:3px 3px #008500}.page{flex:1;display:flex;flex-flow:column;align-items:center;justify-content:space-around}.textPage .content{background:#fff;flex:1;overflow-y:auto;padding:1em;border:.2em solid #90f590}.attribution{white-space:pre-line;word-wrap:break-word;word-break:break-all}.page.home h1{font-size:3em;font-weight:bold;text-align:center;padding-top:.5em;padding-bottom:.5em;background:#054e05;color:#ff0;width:100%;text-shadow:1px 1px 1px #000,2px 2px 4px #f7f1a2}.page.home .links{flex:1;display:flex;flex-flow:column;align-items:center;justify-content:space-around;width:80%}.page.game .info{width:50%;margin-top:.5em;margin-bottom:.5em;display:flex}.page.game .info>*{flex:1}.page.game .info .timeLabel{text-align:right}.page.game .sequenceDisplay{background:#fff389;text-align:center;width:50%;font-size:1.75em;padding-top:.75em;padding-bottom:.75em;font-family:monospace;border-radius:.5em}.page.game .attemptsArea{flex:1;width:50%;background:#fff;overflow-y:auto;margin-top:.5em;margin-bottom:.5em;font-family:monospace;font-size:1.5em;line-height:1.75em;padding:.25em;text-align:center;border-radius:.5em}.page.game .attemptsArea .attemptRow *{margin-right:1em}.page.game .attemptsArea .attemptRow *:last-child{margin-right:0}.page.game .attemptsArea .attemptRow .matching{color:green}.page.game .attemptsArea .attemptRow .misplaced{text-decoration:underline;color:#b8860b}.page.game .attemptsArea .attemptRow .unused{text-decoration:line-through;color:darkred}.page.game .sequenceButtonsBox{margin:.25em;border-radius:.5em}.page.game .sequenceButtonsBox>div:last-child{display:flex;justify-content:flex-end}.page.game .sequenceButtonsBox .sequenceButton{display:inline-flex;padding:.15em;margin:.15em;width:2.75em;height:2.75em;background:#054e05;color:#ff0;border-radius:.5em;cursor:pointer;justify-content:center;align-items:center}.page.game .sequenceButtonsBox .sequenceButton:hover{background:#1a611a}.page.game .controlButtonsBox{width:100%;display:flex;justify-content:center;align-items:center;margin-top:1em}.page.game .controlButtonsBox>.button{flex:1}.page.topScore .label{margin-top:1em}.page.topScore .topScoreBox{flex:1;display:flex;font-weight:bold;font-size:4em;margin-top:1em;margin-bottom:1em;align-items:center}@media all and (max-width: 800px){.container{width:100%}.page.home .links{width:100%}.page.game .info{width:85%}.page.game .sequenceDisplay{width:85%}.page.game .attemptsArea{width:85%}}",""]);const o=a},504:(n,r,e)=>{"use strict";e.d(r,{Z:()=>i});var t=e(645),u=e.n(t)()((function(n){return n[1]}));u.push([n.id,"/* http://meyerweb.com/eric/tools/css/reset/ \n v2.0 | 20110126\n License: none (public domain)\n*/\n\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed, \nfigure, figcaption, footer, header, hgroup, \nmenu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tfont-size: 100%;\n\tfont: inherit;\n\tvertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure, \nfooter, header, hgroup, menu, nav, section {\n\tdisplay: block;\n}\nbody {\n\tline-height: 1;\n}\nol, ul {\n\tlist-style: none;\n}\nblockquote, q {\n\tquotes: none;\n}\nblockquote:before, blockquote:after,\nq:before, q:after {\n\tcontent: '';\n\tcontent: none;\n}\ntable {\n\tborder-collapse: collapse;\n\tborder-spacing: 0;\n}",""]);const i=u},645:n=>{"use strict";n.exports=function(n){var r=[];return r.toString=function(){return this.map((function(r){var e=n(r);return r[2]?"@media ".concat(r[2]," {").concat(e,"}"):e})).join("")},r.i=function(n,e,t){"string"==typeof n&&(n=[[null,n,""]]);var u={};if(t)for(var i=0;i=0;t--)r=s(n,e[t],r);return r})));function $(n){throw new Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}function I(n,r){for(var e,t=[],u=y(n,r,0,t);u&&(e=t.pop());u=y(e.a,e.b,0,t));return u}function y(n,r,e,t){if(n===r)return!0;if("object"!=typeof n||null===n||null===r)return"function"==typeof n&&$(5),!1;if(e>100)return t.push(A(n,r)),!0;for(var u in n.$<0&&(n=Jr(n),r=Jr(r)),n)if(!y(n[u],r[u],e+1,t))return!1;return!0}e((function(n,r){for(var e=r.length,t=new Array(e),u=0;ue.length&&(u=e.length);for(var i=new Array(t+u),a=0;a"),r}));var N=e(I);function w(n,r,e){if("object"!=typeof n)return n===r?0:n0})),e((function(n,r){return w(n,r)>=0}));var L=e((function(n,r){var e=w(n,r);return e<0?Yr:e?Kr:zr}));function A(n,r){return{a:n,b:r}}function R(n,r,e){return{a:n,b:r,c:e}}function O(n,r){var e={};for(var t in n)e[t]=n[t];for(var t in r)e[t]=r[t];return e}function S(n,r){if("string"==typeof n)return n+r;if(!n.b)return r;var e=k(n.a,r);n=n.b;for(var t=e;n.b;n=n.b)t=t.b=k(n.a,r);return e}e(S);var T={$:0};function k(n,r){return{$:1,a:n,b:r}}var x=e(k);function P(n){for(var r=T,e=n.length;e--;)r=k(n[e],r);return r}function M(n){for(var r=[];n.b;n=n.b)r.push(n.a);return r}var C=t((function(n,r,e){for(var t=[];r.b&&e.b;r=r.b,e=e.b)t.push(s(n,r.a,e.a));return P(t)})),D=(u((function(n,r,e,t){for(var u=[];r.b&&e.b&&t.b;r=r.b,e=e.b,t=t.b)u.push(l(n,r.a,e.a,t.a));return P(u)})),i((function(n,r,e,t,u){for(var i=[];r.b&&e.b&&t.b&&u.b;r=r.b,e=e.b,t=t.b,u=u.b)i.push(v(n,r.a,e.a,t.a,u.a));return P(i)})),a((function(n,r,e,t,u,i){for(var a=[];r.b&&e.b&&t.b&&u.b&&i.b;r=r.b,e=e.b,t=t.b,u=u.b,i=i.b)a.push(d(n,r.a,e.a,t.a,u.a,i.a));return P(a)})),e((function(n,r){return P(M(r).sort((function(r,e){return w(n(r),n(e))})))})),e((function(n,r){return P(M(r).sort((function(r,e){var t=s(n,r,e);return t===zr?0:t===Yr?-1:1})))})),e((function(n,r){return n+r}))),j=(e((function(n,r){return n-r})),e((function(n,r){return n*r})),e((function(n,r){return n/r})),e((function(n,r){return n/r|0})),e(Math.pow),e((function(n,r){return r%n})),e((function(n,r){var e=r%n;return 0===n?$(11):e>0&&n<0||e<0&&n>0?e+n:e})));Math.PI,Math.E,Math.cos,Math.sin,Math.tan,Math.acos,Math.asin,Math.atan,e(Math.atan2);var _=Math.ceil,F=Math.floor,q=(Math.round,Math.sqrt,Math.log);isNaN,e((function(n,r){return n&&r})),e((function(n,r){return n||r})),e((function(n,r){return n!==r})),e((function(n,r){return n+r})),e((function(n,r){return n+r})),e((function(n,r){for(var e=r.length,t=new Array(e),u=0;u-1})),V=e((function(n,r){return 0===r.indexOf(n)})),J=(e((function(n,r){return r.length>=n.length&&r.lastIndexOf(n)===r.length-n.length})),e((function(n,r){var e=n.length;if(e<1)return T;for(var t=0,u=[];(t=r.indexOf(n,t))>-1;)u.push(t),t+=e;return P(u)})));function z(n){return{$:2,b:n}}var K=z((function(n){return"number"!=typeof n?fn("an INT",n):-2147483647=r.length?fn("a LONGER array. Need index "+u+" but only see "+r.length+" entries",r):(t=un(n.b,r[u]),Ve(t)?t:Zr(s(ne,u,t.a))):fn("an ARRAY",r);case 8:if("object"!=typeof r||null===r||on(r))return fn("an OBJECT",r);var i=T;for(var a in r)if(r.hasOwnProperty(a)){if(t=un(n.b,r[a]),!Ve(t))return Zr(s(Wr,a,t.a));i=k(A(a,t.a),i)}return re(Ne(i));case 9:for(var o=n.f,c=n.g,f=0;f=0&&r.splice(e,1)}}}var Hn,Vn=e((function(n,r){return function(e){return n(r(e))}}));var Jn="undefined"!=typeof document?document:{};function zn(n,r){n.appendChild(r)}function Kn(n){return{$:0,a:n}}u((function(n,r,e,t){var u=t.node;return u.parentNode.replaceChild(cr(n,(function(){})),u),{}}));var Yn=e((function(n,r){return e((function(e,t){for(var u=[],i=0;t.b;t=t.b){var a=t.a;i+=a.b||0,u.push(a)}return i+=u.length,{$:1,c:r,d:ar(e),e:u,f:n,b:i}}))}))(void 0);e((function(n,r){return e((function(e,t){for(var u=[],i=0;t.b;t=t.b){var a=t.a;i+=a.b.b||0,u.push(a)}return i+=u.length,{$:2,c:r,d:ar(e),e:u,f:n,b:i}}))}))(void 0);var Zn=e((function(n,r){return{$:4,j:n,k:r,b:1+(r.b||0)}}));function Qn(n,r){return{$:5,l:n,m:r,k:void 0}}e((function(n,r){return Qn([n,r],(function(){return n(r)}))})),t((function(n,r,e){return Qn([n,r,e],(function(){return s(n,r,e)}))})),u((function(n,r,e,t){return Qn([n,r,e,t],(function(){return l(n,r,e,t)}))})),i((function(n,r,e,t,u){return Qn([n,r,e,t,u],(function(){return v(n,r,e,t,u)}))})),a((function(n,r,e,t,u,i){return Qn([n,r,e,t,u,i],(function(){return d(n,r,e,t,u,i)}))})),o((function(n,r,e,t,u,i,a){return Qn([n,r,e,t,u,i,a],(function(){return b(n,r,e,t,u,i,a)}))})),c((function(n,r,e,t,u,i,a,o){return Qn([n,r,e,t,u,i,a,o],(function(){return h(n,r,e,t,u,i,a,o)}))})),f((function(n,r,e,t,u,i,a,o,c){return Qn([n,r,e,t,u,i,a,o,c],(function(){return function(n,r,e,t,u,i,a,o,c){return 8===n.a?n.f(r,e,t,u,i,a,o,c):n(r)(e)(t)(u)(i)(a)(o)(c)}(n,r,e,t,u,i,a,o,c)}))}));var Wn=e((function(n,r){return{$:"a0",n,o:r}})),nr=e((function(n,r){return{$:"a1",n,o:r}})),rr=e((function(n,r){return{$:"a2",n,o:r}})),er=e((function(n,r){return{$:"a3",n,o:r}}));t((function(n,r,e){return{$:"a4",n:r,o:{f:n,o:e}}})),e((function(n,r){return"a0"===r.$?s(Wn,r.n,function(n,r){var e=Ze(r);return{$:r.$,a:e?l(Ke,e<3?ur:ir,Ye(n),r.a):s(ze,n,r.a)}}(n,r.o)):r}));var tr,ur=e((function(n,r){return A(n(r.a),r.b)})),ir=e((function(n,r){return{y:n(r.y),at:r.at,ap:r.ap}}));function ar(n){for(var r={};n.b;n=n.b){var e=n.a,t=e.$,u=e.n,i=e.o;if("a2"!==t){var a=r[t]||(r[t]={});"a3"===t&&"class"===u?or(a,u,i):a[u]=i}else"className"===u?or(r,u,i):r[u]=i}return r}function or(n,r,e){var t=n[r];n[r]=t?t+" "+e:e}function cr(n,r){var e=n.$;if(5===e)return cr(n.k||(n.k=n.m()),r);if(0===e)return Jn.createTextNode(n.a);if(4===e){for(var t=n.k,u=n.j;4===t.$;)"object"!=typeof u?u=[u,t.j]:u.push(t.j),t=t.k;var i={j:u,p:r};return(a=cr(t,i)).elm_event_node_ref=i,a}if(3===e)return fr(a=n.h(n.g),r,n.d),a;var a=n.f?Jn.createElementNS(n.f,n.c):Jn.createElement(n.c);Hn&&"a"==n.c&&a.addEventListener("click",Hn(a)),fr(a,r,n.d);for(var o=n.e,c=0;c0&&mr(e,1,t,s));case 4:for(var l=n.j,v=r.j,d=!1,b=n.k;4===b.$;)d=!0,"object"!=typeof l?l=[l,b.j]:l.push(b.j),b=b.k;for(var h=r.k;4===h.$;)d=!0,"object"!=typeof v?v=[v,h.j]:v.push(h.j),h=h.k;return d&&l.length!==v.length?void mr(e,0,t,r):((d?function(n,r){for(var e=0;eo?mr(e,6,t,{v:o,i:a-o}):a0||a.length>0||O)&&mr(e,8,t,{w:u,x:a,y:O})}var Nr="_elmW6BL";function wr(n,r,e,t,u,i){var a=n[e];if(!a)return a={c:0,z:t,r:u,s:void 0},i.push({r:u,A:a}),void(n[e]=a);if(1===a.c){i.push({r:u,A:a}),a.c=2;var o=[];return gr(a.z,t,o,a.r),a.r=u,void(a.s.s={w:o,A:a})}wr(n,r,e+Nr,t,u,i)}function Lr(n,r,e,t,u){var i=n[e];if(i){if(0===i.c){i.c=2;var a=[];return gr(t,i.z,a,u),void mr(r,9,u,{w:a,A:i})}Lr(n,r,e+Nr,t,u)}else{var o=mr(r,9,u,void 0);n[e]={c:1,z:t,r:u,s:o}}}function Ar(n,r,e,t){Rr(n,r,e,0,0,r.b,t)}function Rr(n,r,e,t,u,i,a){for(var o=e[t],c=o.r;c===u;){var f=o.$;if(1===f)Ar(n,r.k,o.s,a);else if(8===f)o.t=n,o.u=a,(s=o.s.w).length>0&&Rr(n,r,s,0,u,i,a);else if(9===f){o.t=n,o.u=a;var s,l=o.s;l&&(l.A.s=n,(s=l.w).length>0&&Rr(n,r,s,0,u,i,a))}else o.t=n,o.u=a;if(!(o=e[++t])||(c=o.r)>i)return t}var v=r.$;if(4===v){for(var d=r.k;4===d.$;)d=d.k;return Rr(n,d,e,t,u+1,i,n.elm_event_node_ref)}for(var b=r.e,h=n.childNodes,p=0;pi))return t;u=g}return t}function Or(n,r,e,t){return 0===e.length?n:(Ar(n,r,e,t),Sr(n,e))}function Sr(n,r){for(var e=0;e>n})),e((function(n,r){return r>>>n}));var Ur=e((function(n,r){return pn((function(e){var t=setInterval((function(){En(r)}),n);return function(){clearInterval(t)}}))})),Xr=x,Hr=E,Vr=(t((function(n,r,t){var u=t.c,i=t.d,a=e((function(r,e){if(r.$){var t=r.a;return l(Hr,n,e,t)}var u=r.a;return l(Hr,a,e,u)}));return l(Hr,a,l(Hr,n,r,i),u)})),t((function(n,r,e){for(;;){if(-2===e.$)return r;var t=e.b,u=e.c,i=e.d,a=e.e,o=n,c=l(n,t,u,l(Vr,n,r,a));n=o,r=c,e=i}}))),Jr=function(n){return l(Vr,t((function(n,r,e){return s(Xr,A(n,r),e)})),T,n)},zr=1,Kr=2,Yr=0,Zr=function(n){return{$:1,a:n}},Qr=e((function(n,r){return{$:3,a:n,b:r}})),Wr=e((function(n,r){return{$:0,a:n,b:r}})),ne=e((function(n,r){return{$:1,a:n,b:r}})),re=function(n){return{$:0,a:n}},ee=function(n){return{$:2,a:n}},te=D,ue=function(n){return{$:0,a:n}},ie={$:1},ae=X,oe=vn,ce=function(n){return n+""},fe=e((function(n,r){return s(B,n,M(r))})),se=e((function(n,r){return P(s(G,n,r))})),le=function(n){return s(fe,"\n ",s(se,"\n",n))},ve=t((function(n,r,e){for(;;){if(!e.b)return r;var t=e.a,u=e.b,i=n,a=s(n,t,r);n=i,r=a,e=u}})),de=function(n){return l(ve,e((function(n,r){return r+1})),0,n)},be=C,he=t((function(n,r,e){for(;;){if(!(w(n,r)<1))return e;var t=n,u=r-1,i=s(Xr,r,e);n=t,r=u,e=i}})),pe=e((function(n,r){return l(he,n,r,T)})),me=e((function(n,r){return l(be,n,s(pe,0,de(r)-1),r)})),ge=function(n){var r=n.charCodeAt(0);return 55296<=r&&r<=56319?1024*(r-55296)+n.charCodeAt(1)-56320+65536:r},Ee=function(n){var r=ge(n);return 97<=r&&r<=122},$e=function(n){var r=ge(n);return r<=90&&65<=r},Ie=function(n){return Ee(n)||$e(n)},ye=function(n){return Ee(n)||$e(n)||function(n){var r=ge(n);return r<=57&&48<=r}(n)},Ne=function(n){return l(ve,Xr,T,n)},we=e((function(n,r){return"\n\n("+ce(n+1)+") "+le(Le(r))})),Le=function(n){return s(Ae,n,T)},Ae=e((function(n,r){n:for(;;)switch(n.$){case 0:var e=n.a,t=n.b,u=function(){var n,r,t=(r=(n=e).charCodeAt(0),isNaN(r)?ie:ue(55296<=r&&r<=56319?A(n[0]+n[1],n.slice(2)):A(n[0],n.slice(1))));if(1===t.$)return!1;var u=t.a,i=u.a,a=u.b;return Ie(i)&&s(ae,ye,a)}(),i=t,a=s(Xr,u?"."+e:"['"+e+"']",r);n=i,r=a;continue n;case 1:var o=n.a,c=(t=n.b,"["+ce(o)+"]");n=i=t,r=a=s(Xr,c,r);continue n;case 2:var f=n.a;if(f.b){if(f.b.b){var l=(r.b?"The Json.Decode.oneOf at json"+s(fe,"",Ne(r)):"Json.Decode.oneOf")+" failed in the following "+ce(de(f))+" ways:";return s(fe,"\n\n",s(Xr,l,s(me,we,f)))}n=i=t=f.a,r=a=r;continue n}return"Ran into a Json.Decode.oneOf with no possibilities"+(r.b?" at json"+s(fe,"",Ne(r)):"!");default:var v=n.a,d=n.b;return(l=r.b?"Problem with the value at json"+s(fe,"",Ne(r))+":\n\n ":"Problem with the given value:\n\n")+le(s(oe,4,d))+"\n\n"+v}})),Re=32,Oe=u((function(n,r,e,t){return{$:0,a:n,b:r,c:e,d:t}})),Se=[],Te=_,ke=e((function(n,r){return q(r)/q(n)})),xe=Te(s(ke,2,Re)),Pe=v(Oe,0,xe,Se,Se),Me=p,Ce=function(n){return{$:1,a:n}},De=(e((function(n,r){return n(r)})),e((function(n,r){return r(n)})),N),je=F,_e=function(n){return n.length},Fe=e((function(n,r){return w(n,r)>0?n:r})),qe=m,Ge=e((function(n,r){for(;;){var e=s(qe,Re,n),t=e.a,u=e.b,i=s(Xr,{$:0,a:t},r);if(!u.b)return Ne(i);n=u,r=i}})),Be=e((function(n,r){for(;;){var e=Te(r/Re);if(1===e)return s(qe,Re,n).a;n=s(Ge,n,T),r=e}})),Ue=e((function(n,r){if(r.b){var e=r.b*Re,t=je(s(ke,Re,e-1)),u=n?Ne(r.e):r.e,i=s(Be,u,r.b);return v(Oe,_e(r.d)+e,s(Fe,5,t*xe),i,r.d)}return v(Oe,_e(r.d),xe,Se,r.d)})),Xe=i((function(n,r,e,t,u){for(;;){if(r<0)return s(Ue,!1,{e:t,b:e/Re|0,d:u});var i=Ce(l(Me,Re,r,n));n=n,r-=Re,e=e,t=s(Xr,i,t),u=u}})),He=e((function(n,r){if(n<=0)return Pe;var e=n%Re,t=l(Me,e,n-e,r);return d(Xe,r,n-e-Re,n,T,t)})),Ve=function(n){return!n.$},Je=nn,ze=rn,Ke=en,Ye=function(n){return{$:0,a:n}},Ze=function(n){switch(n.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3}},Qe=function(n){return n},We=Qe,nt=a((function(n,r,e,t,u,i){return{aE:i,aI:r,aP:t,aR:e,aU:n,aV:u}})),rt=H,et=U,tt=e((function(n,r){return n<1?r:l(et,n,r.length,r)})),ut=J,it=function(n){return""===n},at=e((function(n,r){return n<1?"":l(et,0,n,r)})),ot=i((function(n,r,e,t,u){if(it(u)||s(rt,"@",u))return ie;var i=s(ut,":",u);if(i.b){if(i.b.b)return ie;var a=i.a,o=function(n){for(var r=0,e=n.charCodeAt(0),t=43==e||45==e?1:0,u=t;u500?l(ve,n,r,Ne(b)):v(pt,n,r,e+1,b)))))}return s(n,u,s(n,a,s(n,c,r)))}return s(n,u,s(n,a,r))}return s(n,u,r)}return r})),mt=t((function(n,r,e){return v(pt,n,r,0,e)})),gt=e((function(n,r){return l(mt,e((function(r,e){return s(Xr,n(r),e)})),T,r)})),Et=mn,$t=e((function(n,r){return s(Et,(function(r){return bt(n(r))}),r)})),It=t((function(n,r,e){return s(Et,(function(r){return s(Et,(function(e){return bt(s(n,r,e))}),e)}),r)})),yt=function(n){return l(mt,It(Xr),bt(T),n)},Nt=kn,wt=e((function(n,r){var e=r;return $n(s(Et,Nt(n),e))})),Lt=t((function(n,r,e){return s($t,(function(n){return 0}),yt(s(gt,wt(n),r)))})),At=t((function(n,r,e){return bt(0)})),Rt=e((function(n,r){return s($t,n,r)}));On.Task=Sn(ht,Lt,At,Rt);var Ot,St=Pn("Task"),Tt=e((function(n,r){return St(s($t,n,r))})),kt=Y,xt=Q,Pt={$:0},Mt=function(n){return{$:1,a:n}},Ct={$:5},Dt=function(n){return{$:1,a:n}},jt={$:4},_t={$:6},Ft={$:3},qt={$:2},Gt=Mn,Bt=t((function(n,r,e){return n?Gt(P([r,e])):r})),Ut=function(n){return{$:2,a:n}},Xt=function(n){return A(1,n)},Ht=function(n){return n<0?-n:n},Vt=e((function(n,r){return{$:0,a:n,b:r}})),Jt=function(n){var r=n.a,e=n.b;return s(Vt,1664525*r+e>>>0,e)},zt=function(n){var r=n.a,e=277803737*(r^r>>>4+(r>>>28));return(e>>>22^e)>>>0},Kt=e((function(n,r){return function(e){var t=Jt(e),u=Ht(r-n),i=zt(t);return A((1*(67108863&zt(e))*134217728+1*(134217727&i))/9007199254740992*u+n,Jt(t))}})),Yt=t((function(n,r,e){for(;;){var t=n.a,u=n.b;if(!r.b)return u;var i=r.a,a=r.b;if(w(e,Ht(t))<1)return u;n=i,r=a,e-=Ht(t)}})),Zt=e((function(n,r){var e=r;return function(r){var t=e(r),u=t.a,i=t.b;return A(n(u),i)}})),Qt=e((function(n,r){var e,t=function(n){var r=n.a;return Ht(r)},u=t(n)+(e=s(gt,t,r),l(ve,te,0,e));return s(Zt,s(Yt,n,r),s(Kt,0,u))})),Wt=e((function(n,r){return s(Qt,Xt(n),s(gt,Xt,r))})),nu=s(Wt,0,P([1,2,3,4,5,6,7,8,9])),ru=(e((function(n,r){return{$:0,a:n,b:r}})),Ot=Qe,pn((function(n){n(hn(Ot(Date.now())))}))),eu=function(n){return n},tu=s(Et,(function(n){return bt((r=n,t=(e=Jt(s(Vt,0,1013904223))).a,u=e.b,Jt(s(Vt,t+r>>>0,u))));var r,e,t,u}),ru),uu=e((function(n,r){return n(r)})),iu=t((function(n,r,e){if(r.b){var t=r.a,u=r.b,i=s(uu,t,e),a=i.a,o=i.b;return s(Et,(function(r){return l(iu,n,u,o)}),s(Nt,n,a))}return bt(e)})),au=t((function(n,r,e){return bt(e)})),ou=e((function(n,r){return s(Zt,n,r)}));On.Random=Sn(tu,iu,au,ou);var cu,fu,su=Pn("Random"),lu=e((function(n,r){return su(s(Zt,n,r))})),vu=u((function(n,r,e,t){for(;;){if(r<1)return A(n,t);var u=e(t),i=u.a,a=u.b;n=s(Xr,i,n),r-=1,e=e,t=a}})),du=e((function(n,r){var e=r;return function(r){return v(vu,T,n,e,r)}})),bu=function(n){return s(lu,Ut,s(du,n,nu))},hu=Cn,pu=t((function(n,r,e){var t=e.a,u=e.b;return A(n(t),r(u))})),mu=Gt(T),gu=i((function(n,r,e,t,u){return{D:t,F:e,B:r,w:u,I:n}})),Eu=function(n){if(n.b){if(""!==n.a||n.b.b){var r=n.a,e=n.b;return s(Xr,r,Eu(e))}return T}return T},$u=e((function(n,r){if(1===r.$)return ue(P([n]));var e=r.a;return ue(s(Xr,n,e))})),Iu=function(n){try{return ue(decodeURIComponent(n))}catch(n){return ie}},yu=L,Nu=e((function(n,r){n:for(;;){if(-2===r.$)return ie;var e=r.b,t=r.c,u=r.d,i=r.e;switch(s(yu,n,e)){case 0:n=n,r=u;continue n;case 1:return ue(t);default:n=n,r=i;continue n}}})),wu=i((function(n,r,e,t,u){return{$:-1,a:n,b:r,c:e,d:t,e:u}})),Lu={$:-2},Au=i((function(n,r,e,t,u){if(-1!==u.$||u.a){if(-1!==t.$||t.a||-1!==t.d.$||t.d.a)return d(wu,n,r,e,t,u);t.a,h=t.b,p=t.c;var i=t.d,a=(i.a,i.b),o=i.c,c=i.d,f=i.e;return g=t.e,d(wu,0,h,p,d(wu,1,a,o,c,f),d(wu,1,r,e,g,u))}u.a;var s=u.b,l=u.c,v=u.d,b=u.e;if(-1!==t.$||t.a)return d(wu,n,s,l,d(wu,0,r,e,t,v),b);t.a;var h=t.b,p=t.c,m=t.d,g=t.e;return d(wu,0,r,e,d(wu,1,h,p,m,g),d(wu,1,s,l,v,b))})),Ru=t((function(n,r,e){if(-2===e.$)return d(wu,0,n,r,Lu,Lu);var t=e.a,u=e.b,i=e.c,a=e.d,o=e.e;switch(s(yu,n,u)){case 0:return d(Au,t,u,i,l(Ru,n,r,a),o);case 1:return d(wu,t,u,r,a,o);default:return d(Au,t,u,i,a,l(Ru,n,r,o))}})),Ou=t((function(n,r,e){var t=l(Ru,n,r,e);if(-1!==t.$||t.a)return t;t.a;var u=t.b,i=t.c,a=t.d,o=t.e;return d(wu,1,u,i,a,o)})),Su=function(n){if(-1===n.$&&-1===n.d.$&&-1===n.e.$){if(-1!==n.e.d.$||n.e.d.a){n.a,u=n.b,i=n.c;var r=n.d,e=(r.a,o=r.b,c=r.c,f=r.d,s=r.e,n.e);return e.a,v=e.b,b=e.c,t=e.d,E=e.e,d(wu,1,u,i,d(wu,0,o,c,f,s),d(wu,0,v,b,t,E))}n.a;var t,u=n.b,i=n.c,a=n.d,o=(a.a,a.b),c=a.c,f=a.d,s=a.e,l=n.e,v=(l.a,l.b),b=l.c,h=((t=l.d).a,t.b),p=t.c,m=t.d,g=t.e,E=l.e;return d(wu,0,h,p,d(wu,1,u,i,d(wu,0,o,c,f,s),m),d(wu,1,v,b,g,E))}return n},Tu=function(n){if(-1===n.$&&-1===n.d.$&&-1===n.e.$){if(-1!==n.d.d.$||n.d.d.a){n.a,u=n.b,i=n.c;var r=n.d,e=(r.a,o=r.b,c=r.c,r.d),t=(h=r.e,n.e);return t.a,m=t.b,g=t.c,E=t.d,$=t.e,d(wu,1,u,i,d(wu,0,o,c,e,h),d(wu,0,m,g,E,$))}n.a;var u=n.b,i=n.c,a=n.d,o=(a.a,a.b),c=a.c,f=a.d,s=(f.a,f.b),l=f.c,v=f.d,b=f.e,h=a.e,p=n.e,m=(p.a,p.b),g=p.c,E=p.d,$=p.e;return d(wu,0,o,c,d(wu,1,s,l,v,b),d(wu,1,u,i,h,d(wu,0,m,g,E,$)))}return n},ku=o((function(n,r,e,t,u,i,a){if(-1!==i.$||i.a){n:for(;;){if(-1===a.$&&1===a.a){if(-1===a.d.$){if(1===a.d.a)return a.a,a.d.a,Tu(r);break n}return a.a,a.d,Tu(r)}break n}return r}i.a;var o=i.b,c=i.c,f=i.d,s=i.e;return d(wu,e,o,c,f,d(wu,0,t,u,s,a))})),xu=function(n){if(-1===n.$&&-1===n.d.$){var r=n.a,e=n.b,t=n.c,u=n.d,i=u.a,a=u.d,o=n.e;if(1===i){if(-1!==a.$||a.a){var c=Su(n);if(-1===c.$){var f=c.a,s=c.b,l=c.c,v=c.d,b=c.e;return d(Au,f,s,l,xu(v),b)}return Lu}return a.a,d(wu,r,e,t,xu(u),o)}return d(wu,r,e,t,xu(u),o)}return Lu},Pu=e((function(n,r){if(-2===r.$)return Lu;var e=r.a,t=r.b,u=r.c,i=r.d,a=r.e;if(w(n,t)<0){if(-1===i.$&&1===i.a){i.a;var o=i.d;if(-1!==o.$||o.a){var c=Su(r);if(-1===c.$){var f=c.a,l=c.b,v=c.c,b=c.d,p=c.e;return d(Au,f,l,v,s(Pu,n,b),p)}return Lu}return o.a,d(wu,e,t,u,s(Pu,n,i),a)}return d(wu,e,t,u,s(Pu,n,i),a)}return s(Mu,n,h(ku,n,r,e,t,u,i,a))})),Mu=e((function(n,r){if(-1===r.$){var e=r.a,t=r.b,u=r.c,i=r.d,a=r.e;if(I(n,t)){var o=function(n){for(;;){if(-1!==n.$||-1!==n.d.$)return n;n=n.d}}(a);if(-1===o.$){var c=o.b,f=o.c;return d(Au,e,c,f,i,xu(a))}return Lu}return d(Au,e,t,u,i,s(Pu,n,a))}return Lu})),Cu=e((function(n,r){var e=s(Pu,n,r);if(-1!==e.$||e.a)return e;e.a;var t=e.b,u=e.c,i=e.d,a=e.e;return d(wu,1,t,u,i,a)})),Du=t((function(n,r,e){var t=r(s(Nu,n,e));if(t.$)return s(Cu,n,e);var u=t.a;return l(Ou,n,u,e)})),ju=e((function(n,r){var e=s(se,"=",n);if(e.b&&e.b.b&&!e.b.b.b){var t=e.a,u=e.b.a,i=Iu(t);if(1===i.$)return r;var a=i.a,o=Iu(u);if(1===o.$)return r;var c=o.a;return l(Du,a,$u(c),r)}return r})),_u=Lu,Fu=e((function(n,r){return function(n){n:for(;;){if(n.b){var r=n.a,e=n.b,t=r.B;if(t.b){if(""!==t.a||t.b.b){n=e;continue n}return ue(r.w)}return ue(r.w)}return ie}}(n(d(gu,T,function(n){var r=s(se,"/",n);if(r.b&&""===r.a){var e=r.b;return Eu(e)}return Eu(e=r)}(r.aP),function(n){if(1===n.$)return _u;var r=n.a;return l(mt,ju,_u,s(se,"&",r))}(r.aV),r.aE,Qe)))})),qu="about",Gu="game",Bu="help",Uu=e((function(n,r){var e=r.I,t=r.B,u=r.F,i=r.D,a=r.w;return d(gu,e,t,u,i,n(a))})),Xu=e((function(n,r){var e=r;return function(r){var t=r.I,u=r.B,i=r.F,a=r.D,o=r.w;return s(gt,Uu(o),e(d(gu,t,u,i,a,n)))}})),Hu=e((function(n,r){return r.b?l(mt,Xr,r,n):n})),Vu=e((function(n,r){return e=s(gt,n,r),l(mt,Hu,T,e);var e})),Ju=function(n){return function(r){var e=r.I,t=r.B,u=r.F,i=r.D,a=r.w;if(t.b){var o=t.a,c=t.b;return I(o,n)?P([d(gu,s(Xr,o,e),c,u,i,a)]):T}return T}},zu="settings",Ku="solvenius",Yu=e((function(n,r){var e=n,t=r;return function(n){return s(Vu,t,e(n))}})),Zu="top-score",Qu=(fu=function(n){return s(Yu,Ju(Ku),Ju(n))},cu=P([s(Xu,0,Ju(Ku)),s(Xu,1,fu(Gu)),s(Xu,2,fu(zu)),s(Xu,3,fu(Zu)),s(Xu,4,fu(Bu)),s(Xu,5,fu(qu))]),function(n){return s(Vu,(function(r){return r(n)}),cu)}),Wu=e((function(n,r){return r.$?n:r.a})),ni=dn,ri=Bn("playMusic",ni),ei=e((function(n,r){var e=function(){var e,t;switch(function(n){return s(Wu,6,s(Fu,Qu,n))}(n)){case 0:return A(Pt,mu);case 1:return l(pu,Dt,hu(Mt),(e=r.a4,A(t={Q:T,t:2,C:T,K:ie,L:0,U:!1,A:3e4,ae:0,af:0,N:!1,a4:e,q:T},bu(t.t))));case 3:return A(qt,mu);case 2:return A(Ft,mu);case 4:return A(jt,mu);case 5:return A(Ct,mu);default:return A(_t,mu)}}(),t=e.a,u=e.b,i=1===t.$?ue("game.mp3"):ue("title.mp3");return A(O(r,{ab:i,H:t}),l(Bt,!I(i,r.ab),u,ri(s(Wu,"",i))))})),ti=t((function(n,r,e){var t={ab:ie,am:e,H:Pt,V:n.ai,a4:n.aj,a5:n.a5};return s(ei,r,t)})),ui=K,ii=Z,ai=function(n){return{$:9,a:n}},oi=function(n){return{$:10,a:n}},ci=function(n){return{$:11,a:n}},fi=Mn,si=t((function(n,r,e){return r(n(e))})),li=e((function(n,r){return{$:0,a:n,b:r}})),vi=e((function(n,r){return{aT:r,a3:n}})),di=bt(s(vi,_u,_u)),bi=e((function(n,r){var e=n.a,t=n.b,u=s(Nu,e,r);if(1===u.$)return l(Ou,e,P([t]),r);var i=u.a;return l(Ou,e,s(Xr,t,i),r)})),hi=function(n){return pn((function(r){var e=n.f;2===e.$&&e.c&&e.c(),n.f=null,r(hn(0))}))},pi=t((function(n,r,e){for(;;){if(-2===e.$)return r;var t=e.b,u=e.c,i=e.d,a=e.e,o=n,c=l(n,t,u,l(pi,n,r,i));n=o,r=c,e=a}})),mi=a((function(n,r,u,i,a,o){var c=t((function(e,t,i){n:for(;;){var a=i.a,o=i.b;if(a.b){var c=a.a,f=c.a,s=c.b,d=a.b;if(w(f,e)<0){e=e,t=t,i=A(d,l(n,f,s,o));continue n}return w(f,e)>0?A(a,l(u,e,t,o)):A(d,v(r,f,s,t,o))}return A(a,l(u,e,t,o))}})),f=l(pi,c,A(Jr(i),o),a),s=f.a,d=f.b;return l(ve,e((function(r,e){var t=r.a,u=r.b;return l(n,t,u,e)})),d,s)})),gi=xn,Ei=Ur,$i=$n,Ii=t((function(n,r,e){if(r.b){var t=r.a,u=r.b,i=$i(s(Ei,t,s(gi,n,t)));return s(Et,(function(r){return l(Ii,n,u,l(Ou,t,r,e))}),i)}return bt(e)})),yi=t((function(n,r,e){var i=e.aT,a=t((function(n,r,e){var t=e.a,u=e.b,i=e.c;return R(t,u,s(Et,(function(n){return i}),hi(r)))})),o=l(ve,bi,_u,r),c=t((function(n,r,e){var t=e.a,u=e.b,i=e.c;return R(s(Xr,n,t),u,i)})),f=u((function(n,r,e,t){var u=t.a,i=t.b,a=t.c;return R(u,l(Ou,n,e,i),a)})),v=b(mi,c,f,a,o,i,R(T,_u,bt(0))),d=v.a,h=v.b,p=v.c;return s(Et,(function(n){return bt(s(vi,o,n))}),s(Et,(function(r){return l(Ii,n,d,h)}),p))})),Ni=t((function(n,r,e){var t=s(Nu,r,e.a3);if(1===t.$)return bt(e);var u=t.a;return s(Et,(function(n){return bt(e)}),s(Et,(function(r){return yt(s(gt,(function(e){return s(Nt,n,e(r))}),u))}),ru))})),wi=t((function(n,r,e){return n(r(e))})),Li=e((function(n,r){var e=r.a,t=r.b;return s(li,e,s(wi,n,t))}));On.Time=Sn(di,yi,Ni,0,Li);var Ai=Pn("Time"),Ri=e((function(n,r){return Ai(s(li,n,r))})),Oi=t((function(n,r,e){return{$:0,a:n,b:r,c:e}})),Si=e((function(n,r){return{aQ:r,a2:n}})),Ti=bt(s(Si,T,_u)),ki=function(n){var r=n.a,e=n.b;return A(S(function(n){return n?"w_":"d_"}(r),e),n)},xi=function(n){return l(ve,e((function(n,r){var e=n.a,t=n.b;return l(Ou,e,t,r)})),_u,n)},Pi=e((function(n,r){return{aD:r,aJ:n}})),Mi=t((function(n,r,e){var t=e.a,u=e.b;return s($t,(function(n){return A(r,n)}),l(qr,t?Fr:_r,u,(function(e){return s(gi,n,s(Pi,r,e))})))})),Ci=e((function(n,r){return l(pi,Ou,r,n)})),Di=t((function(n,r,e){var i=t((function(r,e,t){var u=t.a,i=t.b,a=t.c;return R(u,i,s(Xr,l(Mi,n,r,e),a))})),a=t((function(n,r,e){var t=e.a,u=e.b,i=e.c;return R(s(Xr,r,t),u,i)})),o=u((function(n,r,e,t){var u=t.a,i=t.b,a=t.c;return R(u,l(Ou,n,r,i),a)})),c=s(gt,ki,r),f=b(mi,a,o,i,e.aQ,xi(c),R(T,_u,T)),v=f.a,d=f.b,h=f.c;return s(Et,(function(n){return bt(s(Si,c,s(Ci,d,xi(n))))}),s(Et,(function(n){return yt(h)}),yt(s(gt,hi,v))))})),ji=t((function(n,r,e){var t=n(r);if(t.$)return e;var u=t.a;return s(Xr,u,e)})),_i=e((function(n,r){return l(mt,ji(n),T,r)})),Fi=t((function(n,r,e){var t=r.aJ,u=r.aD,i=s(_i,(function(n){var r=n.a,e=n.b,i=(e.a,e.b,e.c);return I(r,t)?s(Gr,i,u):ie}),e.a2);return s(Et,(function(n){return bt(e)}),yt(s(gt,Nt(n),i)))})),qi=e((function(n,r){var e=r.a,t=r.b,u=r.c;return l(Oi,e,t,s(ze,n,u))}));On["Browser.Events"]=Sn(Ti,Di,Fi,0,qi);var Gi,Bi,Ui,Xi,Hi,Vi,Ji,zi=Pn("Browser.Events"),Ki=s(t((function(n,r,e){return zi(l(Oi,n,r,e))})),0,"keydown"),Yi=(Bi=ui,Gn(Gi="topScoreChanged"),On[Gi]={f:Vn,u:Bi,a:function(n,r){var e=T,u=On[n].u,i=hn(null);return On[n].b=i,On[n].c=t((function(n,r,t){return e=r,i})),{send:function(n){var t=s(tn,u,n);Ve(t)||$(4,t.a);for(var i=t.a,a=e;a.b;a=a.b)r(a.a(i))}}}},Pn(Gi)),Zi=function(n){return n.A<=0},Qi=Bn("saveTopScore",dn),Wi=e((function(n,r){var e=r.H;if(1===e.$){var t=e.a;return Zi(t)&&w(t.ae,r.a4)>0?A(O(r,{a4:t.ae}),Qi(t.ae)):A(r,mu)}return A(r,mu)})),na={$:1},ra=function(n){return{$:0,a:n}},ea=function(n){return!n},ta=function(n){return!(Zi(n)||n.N||n.U||(r=n.C,!r.b));var r},ua=t((function(n,r,e){for(;;){if(n<=0)return e;if(!r.b)return e;var t=r.a;n-=1,r=r.b,e=s(Xr,t,e)}})),ia=e((function(n,r){return Ne(l(ua,n,r,T))})),aa=t((function(n,r,e){if(r<=0)return T;var t=A(r,e);n:for(;;){r:for(;;){if(!t.b.b)return e;if(!t.b.b.b){if(1===t.a)break n;break r}switch(t.a){case 1:break n;case 2:var u=t.b;return P([a=u.a,v=u.b.a]);case 3:if(t.b.b.b.b){var i=t.b,a=i.a,o=i.b;return P([a,v=o.a,b=o.b.a])}break r;default:if(t.b.b.b.b&&t.b.b.b.b.b){var c=t.b,f=(a=c.a,c.b),v=f.a,d=f.b,b=d.a,h=d.b,p=h.a,m=h.b;return s(Xr,a,s(Xr,v,s(Xr,b,s(Xr,p,n>1e3?s(ia,r-4,m):l(aa,n+1,r-4,m)))))}break r}}return e}return P([a=t.b.a])})),oa=e((function(n,r){return l(aa,0,n,r)})),ca=e((function(n,r){for(;;){if(!r.b)return!1;var e=r.a,t=r.b;if(n(e))return!0;n=n,r=t}})),fa=e((function(n,r){return!s(ca,s(wi,ea,n),r)})),sa=t((function(n,r,e){for(;;){var t=s(qe,Re,n),u=t.a,i=t.b;if(w(_e(u),Re)<0)return s(Ue,!0,{e:r,b:e,d:u});n=i,r=s(Xr,Ce(u),r),e+=1}})),la=e((function(n,r){return r.$?ie:n(r.a)})),va=4294967295>>>32-xe,da=g,ba=t((function(n,r,e){for(;;){var t=s(da,va&r>>>n,e);if(t.$){var u=t.a;return s(da,va&r,u)}var i=t.a;n-=xe,r=r,e=i}})),ha=e((function(n,r){var e=r.a,t=r.b,u=r.c,i=r.d;return n<0||w(n,e)>-1?ie:w(n,function(n){return n>>>5<<5}(e))>-1?ue(s(da,va&n,i)):ue(l(ba,t,n,u))})),pa=e((function(n,r){if(r.$)return ie;var e=r.a;return ue(n(e))})),ma=t((function(n,r,e){return s(la,(function(t){return t?ue(e):l(ma,n,r,e+1)}),s(pa,De(n),s(ha,e,r)))})),ga=function(n){switch(n){case 0:return"0";case 1:return"1";case 2:return"2";case 3:return"3";case 4:return"4";case 5:return"5";case 6:return"6";case 7:return"7";case 8:return"8";default:return"9"}},Ea=e((function(n,r){var e=n.a,t=n.b,u=s(Wu,"!!!",s(ha,e,r._)),i=ga(t);if(I(i,u))return O(r,{E:l(Ou,i,e,r.E),v:s(Xr,0,r.v)});var a=s(Wu,-1,s(Nu,i,r.E))+1,o=l(ma,i,r._,a);if(o.$)return O(r,{v:s(Xr,2,r.v)});var c=o.a;return O(r,{E:l(Ou,i,c,r.E),v:s(Xr,1,r.v)})})),$a=e((function(n,r){return A(n,r)})),Ia=e((function(n,r){var e,t={_:(e=s(gt,ga,n),e.b?l(sa,e,T,0):Pe),E:_u,v:T},u=l(ve,Ea,t,s(me,$a,r));return I(de(r),de(n))?re(Ne(u.v)):Zr("The sequence of expected digits and the sequence of actual digits have different lengths!")})),ya=function(n){if(n.$)return ie;var r=n.a;return ue(r)},Na=e((function(n,r){return n+s(Fe,0,6*n-(r/1e3|0))})),wa=e((function(n,r){return w(n,r)<0?n:r})),La=j,Aa=Bn("playSound",ni),Ra=e((function(n,r){if(ta(r)){var e=S(r.q,P([n])),t=O(r,{q:e});return I(de(e),de(r.C))?function(n){var r=s(Wu,T,ya(s(Ia,n.C,n.q)));if(s(fa,De(0),r))return function(n){var r=s(La,n.t,n.af+1),e=n.ae+s(Na,n.t,n.L),t=n.A+4e3*n.t,u=r?n.t:s(wa,9,n.t+1);return A(O(n,{Q:T,t:u,C:T,L:0,A:t,ae:e,af:r,q:T}),Gt(P([bu(u),Aa("perfectMatch.mp3")])))}(n);var e=l(be,$a,n.q,r);return A(O(n,{Q:s(Xr,e,n.Q),q:T}),mu)}(t):A(t,mu)}return A(r,mu)})),Oa=e((function(n,r){if(ta(r)){var e=n-s(Wu,n,r.K),t=s(Fe,0,r.A-e);return A(O(r,{K:ue(n),L:r.L+e,A:t}),mu)}return A(r,mu)})),Sa=e((function(n,r){var e=function(){switch(n){case"0":return ue(ra(0));case"1":return ue(ra(1));case"2":return ue(ra(2));case"3":return ue(ra(3));case"4":return ue(ra(4));case"5":return ue(ra(5));case"6":return ue(ra(6));case"7":return ue(ra(7));case"8":return ue(ra(8));case"9":return ue(ra(9));case"Backspace":return ue(na);default:return ie}}();return s(Wu,A(r,mu),s(pa,(function(n){return s(Ta,n,r)}),e))})),Ta=e((function(n,r){switch(n.$){case 0:var e=n.a;return s(Ra,e,r);case 1:return function(n){return ta(n)?A(O(n,{q:s(oa,de(n.q)-1,n.q)}),mu):A(n,mu)}(r);case 2:return A(O(r,{C:n.a}),mu);case 3:return A(O(r,{K:ie,U:!0}),mu);case 4:return A(O(r,{U:!1}),mu);case 5:return A(O(r,{K:ie,N:!0}),mu);case 6:return A(O(r,{N:!1}),mu);case 7:return A(O(r,{A:0,N:!1}),mu);case 8:var t=n.a;return s(Sa,t,r);default:var u=n.a;return s(Oa,u,r)}})),ka=u((function(n,r,e,t){var u=t,i=u.a,a=u.b,o=s(hu,r,a);return A(O(e,{H:n(i)}),o)})),xa=e((function(n,r){var e=A(n,r.H);n:for(;1===e.b.$;)switch(e.a.$){case 10:var t=e.a.a,u=e.b.a;return v(ka,Dt,Mt,r,s(Ta,{$:9,a:t},u));case 9:var i=e.a.a;return u=e.b.a,v(ka,Dt,Mt,r,s(Ta,{$:8,a:i},u));case 1:var a=e.a.a;return u=e.b.a,v(ka,Dt,Mt,r,s(Ta,a,u));default:break n}return A(r,mu)})),Pa=Dr,Ma=Bn("resetTopScore",(function(n){return null})),Ca=e((function(n,r){if(1===n.$)return r;var e=n.a;return r+":"+ce(e)})),Da=t((function(n,r,e){return 1===r.$?e:S(e,S(n,r.a))})),ja=dn,_a=Bn("saveSettings",(function(n){return r=P([A("musicEnabled",ja(n.al)),A("soundsEnabled",ja(n.ar))]),l(ve,e((function(n,r){var e=n.a,t=n.b;return l(bn,e,t,r)})),{},r);var r})),Fa=e((function(n,r){var e=n(r.V);return A(O(r,{V:e}),_a(e))})),qa=e((function(n,r){switch(n.$){case 8:var e=n.a;return s(ei,e,r);case 7:return n.a.$?A(r,function(n){return s(Tt,dt,pn((function(r){try{Fr.location=n}catch(n){Jn.location.reload(!1)}})))}(n.a.a)):(e=n.a.a,A(r,s(Pa,r.am,function(n){var r=n.aU?"https://":"http://";return l(Da,"#",n.aE,l(Da,"?",n.aV,S(s(Ca,n.aR,S(r,n.aI)),n.aP)))}(e))));case 2:return n.a,A(r,Ma(0));case 11:return A(O(r,{a4:n.a}),mu);case 3:return n.a?(n.a,s(Fa,(function(n){return O(n,{ar:!n.ar})}),r)):(n.a,s(Fa,(function(n){return O(n,{al:!n.al})}),r));default:return A(r,mu)}})),Ga=t((function(n,r,e){var t=e,u=t.a,i=t.b,a=s(n,r,u),o=a.a,c=a.b;return A(o,Gt(P([i,c])))})),Ba=e((function(n,r){return l(Ga,Wi,n,l(Ga,xa,n,s(qa,n,r)))})),Ua=function(n){return{$:5,a:n}},Xa=function(n){return{$:4,a:n}},Ha=function(n){return{$:0,a:n}},Va=function(n){return{$:6,a:n}},Ja=function(n){return{$:3,a:n}},za=function(n){return{$:2,a:n}},Ka=e((function(n,r){return s(rr,n,ni(r))})),Ya=Ka("className"),Za=Yn("div"),Qa=Zn,Wa=e((function(n,r){return{bd:s(gt,Qa(n),r.bd),bL:r.bL}})),no=Yn("a"),ro=Yn("li"),eo=Kn,to=function(n){return s(ro,P([Ya("attribution")]),P([eo(n)]))},uo=Yn("h3"),io=function(n){return s(Ka,"href",/^javascript:/i.test((r=n).replace(/\s/g,""))?"":r);var r},ao=Yn("p"),oo=Yn("span"),co=Ya("button"),fo=t((function(n,r,e){var t=io(function(n){var r=function(){switch(n){case 0:return"";case 1:return Gu;case 2:return zu;case 3:return Zu;case 4:return Bu;case 5:return qu;default:return"not-found"}}();return s(fe,"",P(["/",Ku,"/",r]))}(n));return s(no,s(Xr,t,r),P([eo(e)]))})),so=t((function(n,r,e){return l(fo,n,s(Xr,co,r),e)})),lo=e((function(n,r){return s(Za,s(Xr,Ya("page"),n),r)})),vo=e((function(n,r){return s(lo,s(Xr,Ya("textPage"),n),P([s(Za,P([Ya("content")]),r),l(so,0,T,"🏠 Home")]))})),bo=Yn("ul"),ho=Yn("h1"),po=Wn,mo=e((function(n,r){return s(po,n,{$:0,a:r})})),go=function(n){return s(mo,"click",Ye(n))},Eo=P([s(ho,T,P([eo("Game paused")])),s(Za,P([go({$:4}),co]),P([eo("▢️ Resume")]))]),$o={$:3},Io={$:5},yo=function(n){return s(Za,P([Ya("attemptRow")]),s(gt,(function(n){var r,e,t=n.a,u=n.b;return s(oo,P([Ya((r=u,e=function(n){switch(n){case 0:return"Matching";case 1:return"Misplaced";default:return"Unused"}}(r),e.toLowerCase()))]),P([eo(ga(t))]))}),n))},No=e((function(n,r){return s(Za,s(Xr,Ya("sequenceButton"),s(Xr,co,n)),P([s(oo,T,P([eo(r)]))]))})),wo=function(n){return s(No,P([go(ra(n))]),ga(n))},Lo=s(No,P([go(na)]),"<"),Ao=s(Za,P([Ya("sequenceButtonsBox")]),P([s(Za,T,s(gt,wo,P([1,2,3]))),s(Za,T,s(gt,wo,P([4,5,6]))),s(Za,T,s(gt,wo,P([7,8,9]))),s(Za,T,P([wo(0),Lo]))])),Ro=t((function(n,r,e){for(;;){if(r<=0)return n;n=s(Xr,e,n),r-=1,e=e}})),Oo=e((function(n,r){return l(Ro,T,n,r)})),So=e((function(n,r){var e=s(gt,ga,r),t=s(Oo,n-de(r),"_");return s(Za,P([Ya("sequenceDisplay")]),P([eo(s(fe," ",S(e,t)))]))})),To=function(n){return ce(n)},ko={$:6},xo={$:7},Po=nr;Ui={Main:{init:(Hi=(Xi={br:ti,bC:function(n){return{$:8,a:n}},bD:function(n){return{$:7,a:n}},bI:function(n){var r=s(ze,ai,s(xt,"key",ii));return fi(P([Ki(r),s(Ri,333,s(si,eu,oi)),Yi(ci)]))},bM:Ba,bN:function(n){var r=function(){var r=n.H;switch(r.$){case 0:return s(Wa,Ha,{bd:P([s(lo,P([Ya("home")]),P([s(ho,T,P([eo("Solvenius 4")])),s(Za,P([Ya("links")]),P([l(so,1,T,"▢️ Play!"),l(so,3,T,"πŸ† Top score"),l(so,2,T,"βš™οΈ Settings"),l(so,4,T,"❓ Help"),l(so,5,T,"ℹ️ About...")]))]))]),bL:"Solvenius"});case 1:var e=r.a;return s(Wa,Mt,function(n){var r=n.U?Eo:n.N?P([s(ho,T,P([eo("Stop the game?")])),s(Za,P([go(ko),co]),P([eo("▢️ Resume")])),s(Za,P([go(xo),co]),P([eo("⏹️ Exit")]))]):Zi(n)?function(n){return P([s(ho,T,P([eo("Game over!")])),s(Za,T,P([s(uo,T,P([eo("Your score is: "+ce(n.ae))])),s(uo,T,P([eo(w(n.ae,n.a4)>0?"🌟 New top score! 🌟":"")]))])),l(so,1,T,"πŸ”ƒ Play again"),l(so,0,T,"🏠 Home")])}(n):function(n){return P([s(Za,P([Ya("info")]),P([s(oo,T,P([eo("Score: "+To(n.ae))])),s(oo,P([Ya("timeLabel")]),P([eo("Time: "+s(Wu,"",ya((e=n.A,t=e/1e3,u=je(t)%60,i=P([ce(u),"s"]),a=je(t/60),o=S(a>0?P([ce(a),"m "]):T,i),e>=0?re(s(fe,"",o)):Zr("Milliseconds must be >= 0")))))]))])),s(So,n.t,n.q),(r=n.Q,s(Za,P([Ya("attemptsArea")]),s(gt,yo,r))),Ao,s(Za,P([Ya("controlButtonsBox")]),P([s(Za,P([go($o),co]),P([eo("⏸️ Pause")])),s(Za,P([go(Io),co]),P([eo("⏹️ Exit")]))]))]);var r,e,t,u,i,a,o}(n);return{bd:P([s(lo,P([Ya("game")]),r)]),bL:"Solvenius"}}(e));case 2:return s(Wa,za,function(n){return{bd:P([s(lo,P([Ya("topScore")]),P([s(ho,P([Ya("label")]),P([eo("Your top score is:")])),s(Za,P([Ya("topScoreBox")]),P([s(oo,T,P([eo(To(n))]))])),s(Za,P([go(0),n>0?co:s(Po,"display","none")]),P([eo("πŸ—‘οΈ Reset")])),l(so,0,T,"🏠 Home")]))]),bL:"Solvenius - Top Score"}}(n.a4));case 3:return s(Wa,Ja,function(n){return{bd:P([s(lo,P([Ya("settings")]),P([s(Za,P([go(0),co]),P([eo(n.al?"πŸ”ŠπŸŽΆ Music is on":"πŸ”‡πŸŽΆ Music is off")])),s(Za,P([go(1),co]),P([eo(n.ar?"πŸ”ŠπŸ”” Sounds are on":"πŸ”‡πŸ”” Sounds are off")])),l(so,0,T,"🏠 Home")]))]),bL:"Solvenius - Settings"}}(n.V));case 4:return s(Wa,Xa,{bd:P([s(vo,P([Ya("help")]),P([s(ao,T,P([eo("Deduce as many sequences as you can, before the time runs out!")])),s(ao,T,P([eo("When the game starts, you'll have to infer a sequence of 2 digits; as the game goes on, sequences grow longer and longer - up to 9 digits: the objective is to make a score greater than your previous top score.")])),s(ao,T,P([eo("Wrong input sequences will give you clues on the actual secret sequence; every digit will be:")])),s(bo,T,P([s(ro,T,P([eo("GREEN if it is exactly in that position in the secret sequence")])),s(ro,T,P([eo("YELLOW (and underlined) if it is in the secret sequence, but in another position")])),s(ro,T,P([eo("RED (and stricken-through) if it is not in the secret sequence")]))])),s(ao,T,P([eo("You will earn points - and even additional time - by inferring the right sequence: the quicker you are, the more points you receive.")])),s(ao,T,P([eo("There are no limits on the number of attempts you can perform; but the time flows, making the game end as soon as the countdown reaches 0.")]))]))]),bL:"Solvenius - Reference"});case 5:return s(Wa,Ua,function(n){return{bd:P([s(vo,P([Ya("about")]),P([s(ao,T,P([eo("Solvenius 4 (v"+n.a5+") is an open source app created using the Elm language.")])),s(ao,T,P([eo("Copyright Β© 2001-2023 Gianluca Costa.")])),s(ao,T,P([s(oo,T,P([eo("To explore the source code, please visit the ")])),s(no,P([io("https://github.com/giancosta86/solvenius")]),P([eo("GitHub repository")])),s(oo,T,P([eo(".")]))])),s(uo,T,P([eo("Audio credits")])),s(bo,T,P([to("The Entertainer by Kevin MacLeod\nLink: https://incompetech.filmmusic.io/song/5765-the-entertainer\nLicense: https://filmmusic.io/standard-license"),to("Frogs Legs Rag by Kevin MacLeod\nLink: https://incompetech.filmmusic.io/song/5761-frogs-legs-rag\nLicense: https://filmmusic.io/standard-license"),to("Ding sound\nLink: https://djlunatique.com/ding-sound-effect/\nLicense: https://creativecommons.org/publicdomain/zero/1.0/")])),s(ao,T,P([eo("NOTE: the original audio files have been compressed when creating the game.")]))]))]),bL:"About Solvenius..."}}({a5:n.a5}));default:return s(Wa,Va,{bd:P([s(lo,P([Ya("notFound")]),P([s(Za,T,P([eo("O__o You have requested a missing page!")])),l(so,0,T,"🏠 Home")]))]),bL:"Solvenius - Page not found"})}}(),e=s(Za,P([Ya("container")]),r.bd);return O(r,{bd:P([e])})}}).bC,Vi=Xi.bD,Ji=function(){Ji.a(Hi(Cr()))},xr({aq:function(n){return Ji.a=n,Fr.addEventListener("popstate",Ji),Fr.navigator.userAgent.indexOf("Trident")<0||Fr.addEventListener("hashchange",Ji),e((function(r,e){if(!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&e.button<1&&!r.target&&!r.hasAttribute("download")){e.preventDefault();var t=r.href,u=Cr(),i=vt(t).a;n(Vi(i&&u.aU===i.aU&&u.aI===i.aI&&u.aR.a===i.aR.a?{$:0,a:i}:function(n){return{$:1,a:n}}(t)))}}))},br:function(n){return l(Xi.br,n,Cr(),Ji)},bN:Xi.bN,bM:Xi.bM,bI:Xi.bI}))(s(Je,(function(n){return s(Je,(function(r){return s(Je,(function(e){return Ye({ai:e,aj:r,a5:n})}),s(xt,"initialSettings",s(Je,(function(n){return s(Je,(function(r){return Ye({al:r,ar:n})}),s(xt,"musicEnabled",kt))}),s(xt,"soundsEnabled",kt))))}),s(xt,"initialTopScore",ui))}),s(xt,"version",ii)))(0)}},n.Elm?function n(r,e){for(var t in e)t in r?"init"==t?$(6):n(r[t],e[t]):r[t]=e[t]}(n.Elm,Ui):n.Elm=Ui}(this)},376:(n,r,e)=>{const t=e(225),{MAX_LENGTH:u,MAX_SAFE_INTEGER:i}=e(295),{re:a,t:o}=e(765),c=e(893),{compareIdentifiers:f}=e(742);class s{constructor(n,r){if(r=c(r),n instanceof s){if(n.loose===!!r.loose&&n.includePrerelease===!!r.includePrerelease)return n;n=n.version}else if("string"!=typeof n)throw new TypeError(`Invalid Version: ${n}`);if(n.length>u)throw new TypeError(`version is longer than ${u} characters`);t("SemVer",n,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const e=n.trim().match(r.loose?a[o.LOOSE]:a[o.FULL]);if(!e)throw new TypeError(`Invalid Version: ${n}`);if(this.raw=n,this.major=+e[1],this.minor=+e[2],this.patch=+e[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");e[4]?this.prerelease=e[4].split(".").map((n=>{if(/^[0-9]+$/.test(n)){const r=+n;if(r>=0&&r=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${n}`)}return this.format(),this.raw=this.version,this}}n.exports=s},295:n=>{const r=Number.MAX_SAFE_INTEGER||9007199254740991;n.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:r,MAX_SAFE_COMPONENT_LENGTH:16}},225:n=>{const r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};n.exports=r},742:n=>{const r=/^[0-9]+$/,e=(n,e)=>{const t=r.test(n),u=r.test(e);return t&&u&&(n=+n,e=+e),n===e?0:t&&!u?-1:u&&!t?1:ne(r,n)}},893:n=>{const r=["includePrerelease","loose","rtl"];n.exports=n=>n?"object"!=typeof n?{loose:!0}:r.filter((r=>n[r])).reduce(((n,r)=>(n[r]=!0,n)),{}):{}},765:(n,r,e)=>{const{MAX_SAFE_COMPONENT_LENGTH:t}=e(295),u=e(225),i=(r=n.exports={}).re=[],a=r.src=[],o=r.t={};let c=0;const f=(n,r,e)=>{const t=c++;u(t,r),o[n]=t,a[t]=r,i[t]=new RegExp(r,e?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","[0-9]+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),f("MAINVERSION",`(${a[o.NUMERICIDENTIFIER]})\\.(${a[o.NUMERICIDENTIFIER]})\\.(${a[o.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${a[o.NUMERICIDENTIFIERLOOSE]})\\.(${a[o.NUMERICIDENTIFIERLOOSE]})\\.(${a[o.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${a[o.NUMERICIDENTIFIER]}|${a[o.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${a[o.NUMERICIDENTIFIERLOOSE]}|${a[o.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${a[o.PRERELEASEIDENTIFIER]}(?:\\.${a[o.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${a[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[o.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER","[0-9A-Za-z-]+"),f("BUILD",`(?:\\+(${a[o.BUILDIDENTIFIER]}(?:\\.${a[o.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${a[o.MAINVERSION]}${a[o.PRERELEASE]}?${a[o.BUILD]}?`),f("FULL",`^${a[o.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${a[o.MAINVERSIONLOOSE]}${a[o.PRERELEASELOOSE]}?${a[o.BUILD]}?`),f("LOOSE",`^${a[o.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${a[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${a[o.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${a[o.XRANGEIDENTIFIER]})(?:\\.(${a[o.XRANGEIDENTIFIER]})(?:\\.(${a[o.XRANGEIDENTIFIER]})(?:${a[o.PRERELEASE]})?${a[o.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${a[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[o.XRANGEIDENTIFIERLOOSE]})(?:${a[o.PRERELEASELOOSE]})?${a[o.BUILD]}?)?)?`),f("XRANGE",`^${a[o.GTLT]}\\s*${a[o.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${a[o.GTLT]}\\s*${a[o.XRANGEPLAINLOOSE]}$`),f("COERCE",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?(?:$|[^\\d])`),f("COERCERTL",a[o.COERCE],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${a[o.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",f("TILDE",`^${a[o.LONETILDE]}${a[o.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${a[o.LONETILDE]}${a[o.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${a[o.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",f("CARET",`^${a[o.LONECARET]}${a[o.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${a[o.LONECARET]}${a[o.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${a[o.GTLT]}\\s*(${a[o.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${a[o.GTLT]}\\s*(${a[o.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${a[o.GTLT]}\\s*(${a[o.LOOSEPLAIN]}|${a[o.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${a[o.XRANGEPLAIN]})\\s+-\\s+(${a[o.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${a[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[o.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0.0.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},896:(n,r,e)=>{"use strict";e.r(r),e.d(r,{default:()=>m});var t=e(379),u=e.n(t),i=e(795),a=e.n(i),o=e(569),c=e.n(o),f=e(565),s=e.n(f),l=e(216),v=e.n(l),d=e(589),b=e.n(d),h=e(528),p={};p.styleTagTransform=b(),p.setAttributes=s(),p.insert=c().bind(null,"head"),p.domAPI=a(),p.insertStyleElement=v(),u()(h.Z,p);const m=h.Z&&h.Z.locals?h.Z.locals:void 0},379:n=>{"use strict";var r=[];function e(n){for(var e=-1,t=0;t{"use strict";var r={};n.exports=function(n,e){var t=function(n){if(void 0===r[n]){var e=document.querySelector(n);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(n){e=null}r[n]=e}return r[n]}(n);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(e)}},216:n=>{"use strict";n.exports=function(n){var r=document.createElement("style");return n.setAttributes(r,n.attributes),n.insert(r),r}},565:(n,r,e)=>{"use strict";n.exports=function(n){var r=e.nc;r&&n.setAttribute("nonce",r)}},795:n=>{"use strict";n.exports=function(n){var r=n.insertStyleElement(n);return{update:function(e){!function(n,r,e){var t=e.css,u=e.media,i=e.sourceMap;u?n.setAttribute("media",u):n.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),r.styleTagTransform(t,n)}(r,n,e)},remove:function(){!function(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n)}(r)}}}},589:n=>{"use strict";n.exports=function(n,r){if(r.styleSheet)r.styleSheet.cssText=n;else{for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(document.createTextNode(n))}}},778:(n,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ConditionalPlayer=void 0;var e=function(){function n(n){this.audioElement=document.createElement("audio"),this.audioElement.style.display="none",document.body.append(this.audioElement),this.audioElement.loop=n}return Object.defineProperty(n.prototype,"enabled",{get:function(){return!this.audioElement.muted},set:function(n){this.audioElement.muted=!n},enumerable:!1,configurable:!0}),n.prototype.play=function(n){this.audioElement.src=n,this.audioElement.play()},n}();r.ConditionalPlayer=e},826:(n,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ElmApp=void 0;var e=function(){function n(n,r,e){var t;e?t=e:(t=document.createElement("div"),document.body.append(t)),this.elmSystem=n.init({node:t,flags:r})}return n.prototype.ensurePort=function(n){if(!Reflect.has(this.elmSystem.ports,n))throw new Error("Port '"+n+"' was not published by the Elm system")},n.prototype.listenOnJsPort=function(n,r){return this.ensurePort(n),this.elmSystem.ports[n].subscribe(r),this},n.prototype.sendToPort=function(n,r){return this.ensurePort(n),this.elmSystem.ports[n].send(r),this},n}();r.ElmApp=e},780:(n,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LocalStorageVar=void 0;var e=function(){function n(n){this.key=n}return Object.defineProperty(n.prototype,"value",{get:function(){var n=localStorage.getItem(this.key);return n?JSON.parse(n):null},set:function(n){null!=n?localStorage.setItem(this.key,JSON.stringify(n)):localStorage.removeItem(this.key)},enumerable:!1,configurable:!0}),n}();r.LocalStorageVar=e},299:function(n,r,e){"use strict";var t=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(r,"__esModule",{value:!0});var u,i,a,o,c=e(826),f=e(780),s=e(932),l=e(778),v=t(e(376)),d=t(e(306));e(896),i=new f.LocalStorageVar("previousVersion"),a=new v.default(null!==(u=i.value)&&void 0!==u?u:d.default.version),1==(o=new v.default(d.default.version)).compare(a)&&alert("Solvenius just got an automatic update and is ready to run! ^__^\n\nYour new version: "+o),i.value=o.format(),"serviceWorker"in navigator&&navigator.serviceWorker.register("service-worker.js").then((function(n){console.log("Service worker registered:",n)})).catch((function(n){console.log("Service worker registration failed:",n)})),function(){var n,r,e=new f.LocalStorageVar("topScore"),t=new f.LocalStorageVar("settings"),u=null!==(n=t.value)&&void 0!==n?n:{musicEnabled:!0,soundsEnabled:!0},i={initialTopScore:null!==(r=e.value)&&void 0!==r?r:0,initialSettings:u,version:d.default.version},a=new l.ConditionalPlayer(!0);a.enabled=u.musicEnabled;var o=new l.ConditionalPlayer(!1);o.enabled=u.soundsEnabled;var v=new c.ElmApp(s.Elm.Main,i);v.listenOnJsPort("saveTopScore",(function(n){e.value=n})).listenOnJsPort("resetTopScore",(function(){confirm("Reset the top score?")&&(e.value=null,v.sendToPort("topScoreChanged",0))})).listenOnJsPort("saveSettings",(function(n){a.enabled=n.musicEnabled,o.enabled=n.soundsEnabled,t.value=n})).listenOnJsPort("playMusic",(function(n){a.play(n)})).listenOnJsPort("playSound",(function(n){o.play(n)}))}()},306:n=>{"use strict";n.exports=JSON.parse('{"name":"solvenius","version":"4.10.0","description":"Logic game in modern Elm","private":true,"scripts":{"clean":"rimraf dist elm-stuff/generated-code","clean:all":"yarn clean && rimraf node_modules elm-stuff","test":"elm-test","start":"webpack serve --open --config webpack.dev.js","build":"yarn test && webpack --config webpack.prod.js","start:dist":"http-server dist -o /solvenius/ -a 0.0.0.0"},"author":{"name":"Gianluca Costa","url":"https://gianlucacosta.info/","email":"gianluca@gianlucacosta.info"},"license":"Apache-2.0","repository":{"type":"git","url":"https://github.com/giancosta86/solvenius"},"homepage":"https://gianlucacosta.info/solvenius","bugs":{"url":"https://github.com/giancosta86/solvenius/issues"},"devDependencies":{"@types/semver":"^7.3.8","clean-webpack-plugin":"^4.0.0-alpha.0","copy-webpack-plugin":"^9.0.1","css-loader":"^6.1.0","elm":"0.19.1-5","elm-format":"^0.8.5","elm-test":"^0.19.1-revision7","elm-webpack-loader":"^8.0.0","favicons":"^7.1.4","favicons-webpack-plugin":"^6.0.1","html-webpack-plugin":"^5.3.2","http-server":"^0.12.3","prettier":"^2.3.2","rimraf":"^5.0.5","sass":"^1.35.2","sass-loader":"^12.1.0","style-loader":"^3.1.0","ts-loader":"^9.2.3","typescript":"^4.3.5","webpack":"^5.45.1","webpack-cli":"^4.7.2","webpack-dev-server":"^3.11.2","webpack-merge":"^5.8.0","workbox-webpack-plugin":"^6.1.5"},"dependencies":{"semver":"^7.3.5"}}')}},r={};function e(t){var u=r[t];if(void 0!==u)return u.exports;var i=r[t]={id:t,exports:{}};return n[t].call(i.exports,i,i.exports,e),i.exports}e.n=n=>{var r=n&&n.__esModule?()=>n.default:()=>n;return e.d(r,{a:r}),r},e.d=(n,r)=>{for(var t in r)e.o(r,t)&&!e.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:r[t]})},e.o=(n,r)=>Object.prototype.hasOwnProperty.call(n,r),e.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e(299)})(); \ No newline at end of file diff --git a/top-score.html b/top-score.html index 40f6012..57354e3 100644 --- a/top-score.html +++ b/top-score.html @@ -1 +1 @@ -Solvenius \ No newline at end of file +Solvenius \ No newline at end of file