\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]"));function eg(e){for(var a=0,r=0;r \n ").concat(a.name,"\n ").concat(a.help(Math.max(1,e.perks[a.id])),"\n ".concat(et("score_panel.upgrades_picked")," ".concat(et("score_panel.upcoming_levels")," ").concat(r," \n ").concat(e.name,"\n ").concat(e.help(1),"\n ".concat(a," ").concat(et("gameOver.cumulative_total",{startTs:n,endTs:t})," \n ").concat(a.name,"\n ").concat(eB(a),"\n ".concat(et("gameOver.stats_intro",{count:aK.length-1})," "+et("gameOver.creative")+" ".concat(et("score_panel.close_to_unlock"),' \n ").concat(s,"\n ").concat(null===(a=t.reason)||void 0===a?void 0:a.text,"\n ".concat(et("level_up.before_buttons",{score:e.score-e.levelStartScore,catchGain:n,levelSpawnedCoins:e.levelSpawnedCoins,time:Math.round(e.levelTime/1e3),timeGain:t,levelMisses:e.levelMisses,missesGain:s,levelWallBounces:e.levelWallBounces,wallHitsGain:i,compliment:o}),"\n ").concat(et("level_up.after_buttons",{level:e.currentLevel+1,max:eT(e)})," ").concat(eA(e,e.currentLevel+1)," \n ").concat(e.name," \n ").concat(e.name," \n \n Made in France by Renan LE CARO. \n Donate\n Discord\n F-Droid\n Google Play\n itch.io \n Gitlab\n Web version\n HackerNews\n Privacy Policy\n Archives\n v.'.concat(ef,"\n ".concat(1===s.length?et("unlocks.just_unlocked"):et("unlocks.just_unlocked_plural",{count:s.length}),"
\n \n ").concat(s.map(function(e){var a=e.l;return e.r,' \n '.concat(e," : ").concat(b).concat(r,'
\n "+n.map(function(a){var r,t=null!==(r=a.field(e))&&void 0!==r?r:0;return" "}).join(""),[4,aT({title:et("history.title"),className:"history",content:["\n"+(a.render||function(e){return e.toString()})(t)+" "}).join("")+"\n
\n "),i&&e&&{icon:V("show_old_versions_in_stats",!1)?eW["icon:checkmark_checked"]:eW["icon:checkmark_unchecked"],value:"toggle",text:et("history.include_past_versions")}]})];case 1:if(!(o=u.sent()))return[2,{v:void 0}];return o.startsWith("sort:")&&((l=parseInt(o.split(":")[1]))==a?r*=-1:(r=-1,a=l)),"toggle"===o&&U("show_old_versions_in_stats",!V("show_old_versions_in_stats",!1)),[2]}})},a=0,r=-1,n=[{label:et("history.columns.started"),field:function(e){return e.started},render:function(e){return new Date(e).toISOString().slice(0,10)}},{label:et("history.columns.score"),field:function(e){return e.score}}].concat(M(ec.map(function(e){return{label:eW["icon:"+e.id],tooltip:e.name,field:function(a){var r;return(null===(r=a.perks)||void 0===r?void 0:r[e.id])||0},render:function(e){return e||"-"}}}))),s.label=1;case 1:return[5,(0,q.__values)(e())];case 2:if(i=s.sent(),"object"===(0,rf._)(i))return[2,i.v];return[3,1];case 3:return[2]}})})()}}),(n=1e4>X(),{icon:eW["icon:editor"],text:et("editor.title"),disabled:n,help:n?et("editor.locked",{min:1e4}):et("editor.help"),value:function(){return(0,W._)(function(){return(0,q.__generator)(this,function(e){return aH().then(),[2]})})()}}),{icon:eW["icon:unlocked_upgrades"],text:et("unlocks.upgrades"),help:et("main_menu.unlocks_help"),value:function(){(function(){rK.apply(this,arguments)})()}},{icon:eW["icon:unlocked_levels"],text:et("unlocks.levels"),help:et("main_menu.unlocks_help"),value:function(){(function(){rX.apply(this,arguments)})()}}].concat(M(function(e){if(!e1("donation_reminder"))return[];var a=eQ();return[{text:et("main_menu.donate",{hours:a}),help:et("main_menu.donate_help",{suggestion:Math.min(20,Math.max(1,.2*a)).toFixed(0)}),icon:eW["icon:premium"],value:function(){window.open("https://paypal.me/renanlecaro","_blank")}}]}(0)),[{text:et("main_menu.settings_title"),help:et("main_menu.settings_help"),icon:eW["icon:settings"],value:function(){rZ()}},{icon:eW["icon:help"],text:et("help.title"),help:et("help.help"),value:function(){return(0,W._)(function(){return(0,q.__generator)(this,function(e){switch(e.label){case 0:return[4,aT({title:et("help.title"),allowClose:!0,content:[el(et("help.content",{catchRateBest:95,catchRateGood:90,levelTimeBest:30,levelTimeGood:60,missesBest:3,missesGood:6,wallBouncedBest:3,wallBouncedGood:10})),el(et("help.upgrades"))].concat(M(ex.map(function(e){return'\n".concat(s," \n").concat(_,"\n
\n ").concat(e.help(1),"\n "+et("help.levels")+"
"],M(eS.filter(function(e){var a;return null===(a=e.credit)||void 0===a?void 0:a.trim()}).map(function(e){return'\n
a$(r1),a=e&&r1.perks.picky_eater&&eH(r1),r=eD(r1),t=r1.perks.clairvoyant,n=ax(r1);a||-1!==r||r1.perks.zen||(n=0);var i=t&&r1.brickHP.reduce(function(e,a){return e+a},0),s=r1.gameZoneWidth+"_"+r1.bricks.join("_")+as.complete+"_"+r+"_"+a+"_"+r1.ballsColor+"_"+r1.perks.pierce_color+"_"+i+"_"+n;if(s!==ag){ag=s,am.width=r1.gameZoneWidth,am.height=r1.gameZoneWidth+1;var _=am.getContext("2d");_.clearRect(0,0,r1.gameZoneWidth,r1.gameZoneWidth),_.resetTransform(),_.translate(-r1.offsetX,0),r1.bricks.forEach(function(i,s){var o=eO(r1,s),l=eG(r1,s);if(i){var u=r===Math.floor(s/r1.level.size),d=r1.ballsColor!==i&&"black"!==i&&a||e&&r1.perks.zen&&"black"===i||u;_.globalCompositeOperation="source-over",ay(r1,_,i,o,l,d?n:-1,t>=2),r1.brickHP[s]>1&&t&&(_.globalCompositeOperation="source-over",af(_,r1.brickHP[s].toString(),t>=2?i:r1.level.color,r1.puckHeight,o,l)),"black"===i&&(_.globalCompositeOperation="source-over",function(e,a,r,t,n){var i="svg"+a+"_"+r+"_"+a.complete;if(!ab[i]){var s=document.createElement("canvas");s.width=r,s.height=r;var _=s.getContext("2d"),o=r/Math.max(a.width,a.height),l=a.width*o,u=a.height*o;_.drawImage(a,(r-l)/2,(r-u)/2,l,u),ab[i]=s}e.drawImage(ab[i],Math.round(t-r/2),Math.round(n-r/2))}(_,as,r1.brickWidth,o,l))}})}ai.drawImage(am,r1.offsetX,0)}(),rH("render:lights"),ai.globalCompositeOperation="screen",rd(e.lights,function(a){var r=a.x,t=a.y,n=a.time,i=a.color,s=(a.size,a.duration);ai.globalAlpha=.5*Math.min(1,2-(e.levelTime-n)/s*2),ay(e,ai,i,r,t,-1,e.perks.clairvoyant>=2)}),rH("render:texts"),ai.globalCompositeOperation="screen",rd(e.texts,function(a){var r=a.x,t=a.y,n=a.time,i=a.color,s=a.size,_=a.duration,o=e.levelTime-n;ai.globalAlpha=Math.max(0,Math.min(1,2-o/_*2)),ai.globalCompositeOperation="source-over",af(ai,a.text,i,s,r,t-o/10)}),rH("render:particles"),rd(e.particles,function(a){var r=a.x,t=a.y,n=a.time,i=a.color,s=a.size,_=a.duration;ai.globalAlpha=Math.max(0,Math.min(1,2-(e.levelTime-n)/_*2)),ai.globalCompositeOperation="screen",ah(ai,i,s,r,t)}),rH("render:extra_life"),e.perks.extra_life){ai.globalAlpha=1,ai.globalCompositeOperation="source-over",ai.fillStyle=e.puckColor;for(var y=0;y