\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]"));function em(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(ex(a),"\n ".concat(et("gameOver.stats_intro",{count:aX.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:eC(e)})," ").concat(eE(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(ey,"\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,aC({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)?ef["icon:checkmark_checked"]:ef["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(ed.map(function(e){return{label:ef["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,rW._)(i))return[2,i.v];return[3,1];case 3:return[2]}})})()}}),(n=1e4>X(),{icon:ef["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:ef["icon:unlocked_upgrades"],text:et("unlocks.upgrades"),help:et("main_menu.unlocks_help"),value:function(){(function(){rX.apply(this,arguments)})()}},{icon:ef["icon:unlocked_levels"],text:et("unlocks.levels"),help:et("main_menu.unlocks_help"),value:function(){(function(){rY.apply(this,arguments)})()}}].concat(M(function(e){if(!e0("donation_reminder"))return[];var a=e$();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:ef["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:ef["icon:settings"],value:function(){rV()}},{icon:ef["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,aC({title:et("help.title"),allowClose:!0,content:[eo(et("help.content",{catchRateBest:95,catchRateGood:90,levelTimeBest:30,levelTimeGood:60,missesBest:3,missesGood:6,wallBouncedBest:3,wallBouncedGood:10})),eo(et("help.upgrades"))].concat(M(eS.map(function(e){return'\n".concat(s," \n").concat(_,"\n
\n ").concat(e.help(1),"\n "+et("help.levels")+"
"],M(ez.filter(function(e){var a;return null===(a=e.credit)||void 0===a?void 0:a.trim()}).map(function(e){return'\n
aQ(r2),a=e&&r2.perks.picky_eater&&eA(r2),r=eH(r2),t=r2.perks.clairvoyant,n=aS(r2);a||-1!==r||r2.perks.zen||(n=0);var i=t&&r2.brickHP.reduce(function(e,a){return e+a},0),s=r2.gameZoneWidth+"_"+r2.bricks.join("_")+ai.complete+"_"+r+"_"+a+"_"+r2.ballsColor+"_"+r2.perks.pierce_color+"_"+i+"_"+n;if(s!==am){am=s,ap.width=r2.gameZoneWidth,ap.height=r2.gameZoneWidth+1;var _=ap.getContext("2d");_.clearRect(0,0,r2.gameZoneWidth,r2.gameZoneWidth),_.resetTransform(),_.translate(-r2.offsetX,0),r2.bricks.forEach(function(i,s){var o=eP(r2,s),l=eO(r2,s);if(i){var u=r===Math.floor(s/r2.level.size),d=r2.ballsColor!==i&&"black"!==i&&a||e&&r2.perks.zen&&"black"===i||u;_.globalCompositeOperation="source-over",ak(r2,_,i,o,l,d?n:-1,t>=2),r2.brickHP[s]>1&&t&&(_.globalCompositeOperation="source-over",ay(_,r2.brickHP[s].toString(),t>=2?i:r2.level.color,r2.puckHeight,o,l)),"black"===i&&(_.globalCompositeOperation="source-over",function(e,a,r,t,n){var i="svg"+a+"_"+r+"_"+a.complete;if(!ag[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),ag[i]=s}e.drawImage(ag[i],Math.round(t-r/2),Math.round(n-r/2))}(_,ai,r2.brickWidth,o,l))}})}an.drawImage(ap,r2.offsetX,0)}(),rD("render:lights"),an.globalCompositeOperation="screen",rc(e.lights,function(a){var r=a.x,t=a.y,n=a.time,i=a.color,s=(a.size,a.duration);an.globalAlpha=.5*Math.min(1,2-(e.levelTime-n)/s*2),ak(e,an,i,r,t,-1,e.perks.clairvoyant>=2)}),rD("render:texts"),an.globalCompositeOperation="screen",rc(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;an.globalAlpha=Math.max(0,Math.min(1,2-o/_*2)),an.globalCompositeOperation="source-over",ay(an,a.text,i,s,r,t-o/10)}),rD("render:particles"),rc(e.particles,function(a){var r=a.x,t=a.y,n=a.time,i=a.color,s=a.size,_=a.duration;an.globalAlpha=Math.max(0,Math.min(1,2-(e.levelTime-n)/_*2)),an.globalCompositeOperation="screen",ab(an,i,s,r,t)}),rD("render:extra_life"),e.perks.extra_life){an.globalAlpha=1,an.globalCompositeOperation="source-over",an.fillStyle=e.puckColor;for(var y=0;y