PageSourceSearch

https://www.misjuegos.com/game.lazy.8c14097f.js

js misjuegos.com collected 2026-10-10 01:19:44 UTC 55,287 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkorca=self.webpackChunkorca||[]).push([[578,979],{471:(t,e,i)=>{i.r(e),i.d(e,{default:()=>N});var s=i(407);const n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],o=(()=>{if("undefined"==typeof document)return!1;const t=n[0],e={};for(const i of n){const s=i?.[1];if(s in document){for(const[s,n]of i.entries())e[t[s]]=n;return e}}return!1})(),r={change:o.fullscreenchange,error:o.fullscreenerror};let a={request:(t=document.documentElement,e)=>new Promise(((i,s)=>{const n=()=>{a.off("change",n),i()};a.on("change",n);const r=t[o.requestFullscreen](e);r instanceof Promise&&r.then(n).catch(s)})),exit:()=>new Promise(((t,e)=>{if(!a.isFullscreen)return void t();const i=()=>{a.off("change",i),t()};a.on("change",i);const s=document[o.exitFullscreen]();s instanceof Promise&&s.then(i).catch(e)})),toggle:(t,e)=>a.isFullscreen?a.exit():a.request(t,e),onchange(t){a.on("change",t)},onerror(t){a.on("error",t)},on(t,e){const i=r[t];i&&document.addEventListener(i,e,!1)},off(t,e){const i=r[t];i&&document.removeEventListener(i,e,!1)},raw:o};Object.defineProperties(a,{isFullscreen:{get:()=>Boolean(document[o.fullscreenElement])},element:{enumerable:!0,get:()=>document[o.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>Boolean(document[o.fullscreenEnabled])}}),o||(a={isEnabled:!1});const l=a,d=Object.freeze({PORTRAIT:"portrait",PORTRAIT_PRIMARY:"portrait-primary",PORTRAIT_SECONDARY:"portrait-secondary",LANDSCAPE:"landscape",LANDSCAPE_PRIMARY:"landscape-primary",LANDSCAPE_SECONDARY:"landscape-secondary",NATURAL:"natural",ANY:"any"});let c;let h;let u;var p=i(384);let m;var g=i(979);let A;var f=i(359);let y;class w extends f.Z{constructor(t){if(super("ratings",f.D.REPLACE),y||(y=this),this._options=Object.assign({},{upvoteClass:"is-thumbs-up",downvoteClass:"is-thumbs-down",storageName:"spGs_ratings"},t),this._upvoteButtons=document.querySelectorAll(`.${this._options.upvoteClass}`),this._downvoteButtons=document.querySelectorAll(`.${this._options.downvoteClass}`),this._upvoteButtons&&this._downvoteButtons)return this._ratingArray=[],this._currentVote=0,this._rating=new class{constructor(t){return A||(A=this),this.options=Object.assign({},{siteid:!1,gameid:!1,url:"https://popularity.tlpg.nl",debug:!1},t),this.xhr=new XMLHttpRequest,A}saveRating(t,e){let i={siteid:this.options.siteid,gameid:this.options.gameid,count:1,stars:t};this.options.debug&&console.info("[Rating] requestData",i),this.xhr.addEventListener("readystatechange",(function(){if(4===this.readyState&&200===this.status){let t;try{t=JSON.parse(this.responseText)}catch{t=this.responseText}e(void 0,t)}}));try{this.xhr.open("POST",`${this.options.url}/rating/saveRating/`,!0),this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(JSON.stringify(i))}catch(t){e(t)}}}({siteid:window.SITE_OPTIONS.id,gameid:window.GAME_OPTIONS.id,url:window.SITE_OPTIONS.popularityUrl}),y}get ratingArray(){return this._ratingArray}set ratingArray(t){Array.isArray(t)&&(this._ratingArray=t)}get currentVote(){return this._currentVote}set currentVote(t){this._currentVote=t}load(){this._votedOn(!0)&&this._updateView();for(const t of this._upvoteButtons)this._votedOn()||(t.disabled=!1),t.addEventListener("click",this._voting.bind(this));for(const t of this._downvoteButtons)this._votedOn()||(t.disabled=!1),t.addEventListener("click",this._voting.bind(this))}_votedOn(t){if(!this.getGamesFromStorage())return!1;try{this.ratingArray=JSON.parse(this.getGamesFromStorage())}catch{this.ratingArray=this.getGamesFromStorage()}for(let e=0;e<this.ratingArray.length;e++)if(this.ratingArray[e].id===window.GAME_OPTIONS.id)return t&&(this.currentVote=this.ratingArray[e].rating),!0}_voting(t){t.stopPropagation();const e=t.currentTarget;if(this.currentVote=e.classList.contains("is-thumbs-up")?5:1,e.disabled=!0,e.classList.add("is-loading"),this._votedOn(!1)){try{this.ratingArray=JSON.parse(this.getGamesFromStorage())}catch{this.ratingArray=this.getGamesFromStorage()}for(let t=0;t<this.ratingArray.length;t++)if(this.ratingArray[t].id===window.GAME_OPTIONS.id){const e={id:window.GAME_OPTIONS.id,rating:this.currentVote};this.ratingArray.splice(t,1),this.ratingArray.push(e),this.addGameToStorage(e)}}else{const t={id:window.GAME_OPTIONS.id,rating:this.currentVote};this.ratingArray.push(t),this.addGameToStorage(t)}
1setTimeout((()=>{e.classList.remove("is-loading"),e.disabled=!1,this._updateView()}),1e3),this._rating.saveRating(this.currentVote,(t=>{}))}_updateView(){if(this.currentVote>2.5){for(const t of this._upvoteButtons)t.disabled=!0,t.style.pointerEvents="none";for(const t of this._downvoteButtons)t.disabled=!1,t.style.pointerEvents="auto"}else{for(const t of this._upvoteButtons)t.disabled=!1,t.style.pointerEvents="auto";for(const t of this._downvoteButtons)t.disabled=!0,t.style.pointerEvents="none"}if(0===window.GAME_OPTIONS.votes){const t=document.querySelector("#ratingStars").childNodes,e=document.querySelector("#ratingCount"),i=document.querySelector("#ratingOfFive");if(e.textContent=`${Number.parseInt(e.textContent)+1}`,this.currentVote>2.5){for(const e of t)e.classList.add("is-active");i.textContent="5"}else t[0].classList.add("is-active"),i.textContent="1"}}}const v=w;let E;class b extends f.Z{constructor(){return super("lastplayed",f.D.SHIFT),E||(E=this),E}add(t){this.addGameToStorage({id:window.GAME_OPTIONS.id,title:window.GAME_OPTIONS.title,description:window.GAME_OPTIONS.description,url:window.GAME_OPTIONS.url,thumbnail:window.GAME_OPTIONS.thumbnail,thumbnailRetina:window.GAME_OPTIONS.thumbnailRetina},t)}}const S=b;let L;class q extends f.Z{constructor(){return super("favorites"),L||(L=this),this._favoriteButtons=document.querySelectorAll(".is-favorite"),this.favoriteArray=[],L}_isAlreadyFavorited(){if(!this.getGamesFromStorage())return!1;try{this.favoriteArray=JSON.parse(this.getGamesFromStorage())}catch{this.favoriteArray=this.getGamesFromStorage()}for(const t of this.favoriteArray)if(t.id===window.GAME_OPTIONS.id)return!0}load(t,e,i){this._isAlreadyFavorited()&&this._updateView();for(const s of this._favoriteButtons)s.addEventListener("click",(()=>{this._isAlreadyFavorited()?(this.removeGameFromStorage(window.GAME_OPTIONS.id,i),"function"==typeof t&&t()):(this.addGameToStorage({id:window.GAME_OPTIONS.id,title:window.GAME_OPTIONS.title,description:window.GAME_OPTIONS.description,url:window.GAME_OPTIONS.url,thumbnail:window.GAME_OPTIONS.thumbnail,thumbnailRetina:window.GAME_OPTIONS.thumbnailRetina},e),"function"==typeof t&&t()),this._updateView()}))}_updateView(){for(const t of this._favoriteButtons)this._isAlreadyFavorited()?t.classList.add("favorited"):t.classList.remove("favorited")}}const T=q;let _;var O=i(516);class k extends O.Z{static parseDocument(t){const e="object"==typeof t.classList&&t.classList.contains("tabs-container")?[t]:t.querySelectorAll(".tabs-container");s.Z.each(e,(t=>{(0,s.Z)(t).tabs({hover:Object.hasOwn(t.dataset,"hover")})}))}static defaultConfig(){return{hover:!1}}constructor(t,e){super(t,e),this.root=this.config.get("root"),this.root.dataset.casualAttached="attached",this.hover=this.config.get("hover"),this.nav=this.findNav(),this.navItems=this.findNavItems(),this.content=this.findContent(),this.contentItems=this.findContentItems(),this.setupNavEvents(),(0,s.Z)(this.root).data("tabs",this),this.trigger("init")}findNav(){return this.root.querySelector(".tabs")}findNavItems(){return this.nav.querySelectorAll("li")}findContent(){return this.root.querySelector(".tabs-content")}findContentItems(){return this.root.querySelectorAll(".tabs-content > ul > li")}setupNavEvents(){s.Z.each(this.navItems,((t,e)=>{t.addEventListener("click",(()=>{this.setActive(e)})),this.hover&&t.addEventListener("mouseover",(()=>{this.setActive(e)}))}))}setActive(t){s.Z.each(this.navItems,(t=>{t.classList.remove("is-active")})),s.Z.each(this.contentItems,(t=>{t.classList.remove("is-active")})),this.navItems[t].classList.add("is-active"),this.contentItems[t].classList.add("is-active"),this.trigger("open",{index:t})}}s.Z.registerPlugin("tabs",k);class M extends O.Z{static parseDocument(t){const e="object"==typeof t.classList&&t.classList.contains("tooltip")?[t]:t.querySelectorAll(".tooltip");s.Z.each(e,(t=>{(0,s.Z)(t).tooltip({hover:Object.hasOwn(t.dataset,"hover")})}))}static defaultConfig(){return{hover:!1}}constructor(t,e){super(t,e),this.root=this.config.get("root"),this.root.dataset.casualAttached="attached",this.hover=this.config.get("hover"),this.wrapper=this.findWrapper(),this.setupEvents(),(0,s.Z)(this.root).data("tooltip",this),this.trigger("init")}findWrapper(){return this.root.querySelector(".tooltip-wrapper")}setupEvents(){this.wrapper&&(this.root.addEventListener("click",this.generateTooltip.bind(this)),this.hover&&(this.root.addEventListener("mousemove",this.generateTooltip.bind(this)),this.root.addEventListener("mouseenter",this.generateTooltip.bind(this)),this.root.addEventListener("mouseleave",(()=>{this.wrapper.style.top="-999px",this.wrapper.style.left="-999px"}))))}generateTooltip(t){const e=this.root.getBoundingClientRect(),i=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,s=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,n=t.pageY-(e.top+i),o=t.pageX-(e.left+s);this.wrapper.style.top=`${n+20}px`,this.wrapper.style.left=`${o+20}px`}}s.Z.registerPlugin("tooltip",M);
1var C=i(254);class R extends C.Z{static parseDocument(t){const e="object"==typeof t.classList&&t.classList.contains("notification")?[t]:t.querySelectorAll(".notification");s.Z.each(e,(t=>{const e=(0,s.Z)(t);if(e.data("notification"))return;const i=t.querySelector(".delete");e.notification({body:void 0,closeButton:i,isDismissible:!!i,destroyOnDismiss:!0,dismissInterval:Object.hasOwn(t.dataset,"dismissInterval")?t.dataset.dismissInterval:void 0})}))}constructor(t,e){if(super("notification",t,e),this.isFixed=this.config.get("isFixed",!1),this.isDismissible&&(this.config.has("closeButton")||this.prependCloseButton(),this.setupCloseEvent()),this.isFixed){const t=new IntersectionObserver((t=>{for(const e of t)e.isIntersecting?(this.root.classList.add("is-fixed"),this.show()):(this.root.classList.remove("is-fixed"),this.hide())}),{threshold:1});let e=this.root.previousSibling;for(;e&&1!==e.nodeType;)e=e.previousSibling;t.observe(e)}else this.show();this.root.insertAdjacentHTML("beforeend",this.body),(0,s.Z)(this.root).data("notification",this),this.trigger("init")}}s.Z.registerPlugin("notification",R);class x extends O.Z{static parseDocument(){}static defaultConfig(){return{style:"card",closable:!0}}constructor(t,e){super(t,e),this.style=this.config.get("style"),this.root=this.config.get("root"),this.root.dataset.casualAttached="attached",this.root.classList.contains("modal")||this.root.classList.add("modal"),this.parent?this.parent.append(this.root):this.root.parentNode?this.parent=this.root.parentNode:(this.parent=document.body,this.parent.append(this.root)),this.background=s.Z.findOrCreateElement(".modal-background",this.root),this.content="card"===this.style?s.Z.findOrCreateElement(".modal-card",this.root):s.Z.findOrCreateElement(".modal-content",this.root),this.closable=this.config.get("closable"),this.body=this.config.get("body"),this.title=this.config.get("title"),this.config.get("bodyUrl")?s.Z.ajax(this.config.get("bodyUrl")).then((t=>{this.body=t,this.buildModal()})):this.buildModal(),(0,s.Z)(this.root).data("modal",this),this.trigger("init")}buildModal(){"card"===this.style?this.createCardStructure():this.content.innerHTML||(this.content.innerHTML=this.body),this.closable&&(this.closeButton="card"===this.style?s.Z.findOrCreateElement(".delete",this.header,"button"):s.Z.findOrCreateElement(".modal-close",this.root,"button")),"card"===this.style&&this.createButtons(),this.setupEvents()}createCardStructure(){this.header=s.Z.findOrCreateElement(".modal-card-head",this.content,"header"),this.headerTitle=s.Z.findOrCreateElement(".modal-card-title",this.header,"p"),this.headerTitle.innerHTML||(this.headerTitle.innerHTML=this.title),this.cardBody=s.Z.findOrCreateElement(".modal-card-body",this.content,"section"),this.cardBody.innerHTML||(this.cardBody.innerHTML=this.body),this.footer=s.Z.findOrCreateElement(".modal-card-foot",this.content,"footer")}setupEvents(){this.closable&&(this.closeButton.addEventListener("click",this.close.bind(this)),this.keyupListenerBound=t=>this.keyupListener(t),document.addEventListener("keyup",this.keyupListenerBound),this.background.addEventListener("click",this.close.bind(this)))}createButtons(){const t=this.config.get("buttons",[]);let e=this;s.Z.each(t,(function(t){const i=s.Z.createElement("button",t.classes);i.innerHTML=t.label,i.addEventListener("click",(function(e){t.onClick(e)})),e.footer.append(i)}))}open(){this.root.classList.add("is-active"),document.documentElement.classList.add("is-clipped"),this.trigger("open")}close(){this.root.classList.remove("is-active"),document.documentElement.classList.remove("is-clipped"),this.trigger("close")}keyupListener(t){if(!this.root.classList.contains("is-active"))return;let e=t.key||t.keyCode;"Escape"!==e&&"Esc"!==e&&27!==e||this.close()}destroy(){super.destroy(),this.root.remove(),this.parent=void 0,this.root=void 0,this.background=void 0,this.content=void 0,"card"===this.style&&(this.header=void 0,this.headerTitle=void 0,this.cardBody=void 0,this.footer=void 0),this.closable&&(this.closeButton=void 0,document.removeEventListener("keyup",this.keyupListenerBound)),this.config.gets=[],this.trigger("destroyed")}}let I;s.Z.registerPlugin("modal",x),s.Z.registerPlugin("alert",class extends x{static parseDocument(){}static defaultConfig(){return{type:"info",title:"",body:"",confirm:"Okay",cancel:void 0,style:"card",parent:document.body,showHeader:!0}}constructor(t,e){super(t,e),this.root.classList.add("alert"),(0,s.Z)(this.root).data("alert",this),this.trigger("init"),this.open()}
1createCardStructure(){if(this.config.get("showHeader")){this.header=s.Z.findOrCreateElement(".modal-card-head",this.content,"header",["modal-card-head","has-background-"+this.config.get("type")]);const t="warning"===this.config.get("type")?"black":"white";this.headerTitle=s.Z.createElement("p",["modal-card-title","has-text-"+t]),this.headerTitle.innerHTML=this.title,this.header.append(this.headerTitle)}this.cardBody=s.Z.findOrCreateElement(".modal-card-body",this.content,"section"),this.cardBody.innerHTML||(this.cardBody.innerHTML=this.body),this.footer=s.Z.findOrCreateElement(".modal-card-foot",this.content,"footer")}createButtons(){let t={close:!0,destroy:!0,onClick:function(){}},e=this.config.get("confirm");"string"==typeof e&&(e={label:e,classes:[]}),e={...t,...e};let i=s.Z.createElement("button",["button","is-"+this.config.get("type")].concat(e.classes));if(i.innerHTML=e.label,i.addEventListener("click",(t=>{e.onClick(t),e.close&&this.close(),e.destroy&&this.destroy()})),this.footer.append(i),this.config.get("cancel")){let e=this.config.get("cancel");"string"==typeof e&&(e={label:e,classes:[]}),e={...t,...e};let i=s.Z.createElement("button",["button"].concat(e.classes));i.innerHTML=e.label,i.addEventListener("click",(t=>{e.onClick(t),e.close&&this.close(),e.destroy&&this.destroy()})),this.footer.append(i)}}});class P extends g.default{constructor(t){return super(t),I||(I=this),this.preRoll=void 0,this.orientation=new class{constructor(){return c||(c=this),this.orientations=d,this.orientationMatch=!1,this.orientationLock=d.ANY,this.orientationLockElement=void 0,this.fullscreenRequestElement=void 0,c}async start(){void 0===this.orientationLockElement&&(await this._showOrientationLock(),window.addEventListener("resize",this._showOrientationLock))}destroy(){window.removeEventListener("resize",this._showOrientationLock),document.removeEventListener("fullscreenchange",this._showFullscreenState),this.fullscreenRequestElement.removeEventListener("click",this.constructor.setScreenLock.bind(void 0,window.GAME_OPTIONS.orientation))}static async setScreenLock(t){if(l.isEnabled&&!l.isFullscreen)try{await l.request()}catch(t){throw new Error(t)}if(void 0===window.safari&&(!l.isEnabled||l.isFullscreen)&&"function"==typeof screen.orientation.lock&&("orientation"in screen||"mozOrientation"in screen||"msOrientation"in screen)&&[d.LANDSCAPE,d.PORTRAIT].includes(t))try{await screen.orientation.lock(t)}catch(t){throw new Error(t)}}static async unsetScreenLock(){if(l.isEnabled&&l.isFullscreen)try{await l.exit()}catch(t){throw new Error(t)}try{await screen.orientation.unlock()}catch(t){throw new Error(t)}}_showOrientationLock(){let t;window.matchMedia(`(orientation: ${d.PORTRAIT})`).matches&&(t=d.PORTRAIT),window.matchMedia(`(orientation: ${d.LANDSCAPE})`).matches&&(t=d.LANDSCAPE),[d.LANDSCAPE,d.PORTRAIT].includes(window.GAME_OPTIONS.orientation)?(this.orientationMatch=window.GAME_OPTIONS.orientation===t,this.orientationLock=window.GAME_OPTIONS.orientation):(this.orientationMatch=!0,this.orientationLock=d.ANY);const e="orientationLock";if(this.orientationLockElement=document.querySelector(`#${e}`),!this.orientationLockElement){this.orientationLockElement=document.createElement("div"),this.orientationLockElement.id=e,this.orientationLockElement.classList.add("orientation-lock",this.orientationLock);const t=document.createElement("div");t.classList.add("phone"),this.orientationLockElement.append(t);const i=document.createElement("div");i.classList.add("title"),i.textContent=window.TRANSLATIONS.orientationLockText||"Rotate your phone!",this.orientationLockElement.append(i),document.body.append(this.orientationLockElement)}this.orientationMatch?this.orientationLockElement.classList.remove("is-active"):this.orientationLockElement.classList.add("is-active")}_showFullscreenState(){if(!l.isEnabled)return;const t="fullscreenRequest";if(this.fullscreenRequestElement=document.querySelector(`#${t}`),!this.fullscreenRequestElement){this.fullscreenRequestElement=document.createElement("div"),this.fullscreenRequestElement.id=t,this.fullscreenRequestElement.classList.add("fullscreen-request");const e=document.createElement("i");e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"></path></svg>',this.fullscreenRequestElement.append(e);const i=document.createElement("div");i.classList.add("title"),i.textContent=window.TRANSLATIONS.fullscreenRequestText||"Tap for fullscreen!",this.fullscreenRequestElement.append(i),this.fullscreenRequestElement.addEventListener("click",this.constructor.setScreenLock.bind(void 0,window.GAME_OPTIONS.orientation)),document.body.append(this.fullscreenRequestElement)}l.isFullscreen?this.fullscreenRequestElement.classList.remove("is-active"):this.fullscreenRequestElement.classList.add("is-active")}},this.publisher={id:"",name:"",policy:""},this._startGameSelectors=["#splashScreen",".start-game"],this.uAgent.isDesktop||("playing"!==history.state&&history.replaceState("idle",document.title,window.location.href),window.addEventListener("popstate",(t=>{"idle"===t.state?window.location.reload():"playing"===t.state&&this.startGame()}))),I}
1async start(){if(!this.gdpr.consented){const t=document.querySelectorAll(".start-game");for(const e of t)e.classList.remove("is-loading"),e.disabled=!1}try{await super.start();const t=await this._checkPublisherUrlAgainstGdpr();if(t&&(this.publisher.id=t.publisherId,this.publisher.name=t.publisherName,this.publisher.policy=t.publisherPolicy,t.allowed?this._createPublisherConsentNotification():await this._createPublisherConsent()),"swf"===window.GAME_OPTIONS.format||!this.uAgent.isDesktop&&window.GAME_OPTIONS.desktopOnly)for(const t of this._startGameSelectors){const e=document.querySelectorAll(t);if(void 0!==e)for(const t of e)t.classList.contains("button")&&t.classList.remove("is-loading")}else if(this.gdpr.consented&&window.GAME_OPTIONS.preRoll&&"playing"!==history.state&&!window.parent.document.all&&window.parent.atob){const t=document.createElement("div");t.id="preRoll",t.classList.add("pre-roll-container"),this.uAgent.isDesktop?document.querySelector("#game").append(t):document.body.append(t);try{await this.headerLift.load();const e=await this.headerLift.requestVideo(),i=window.setTimeout((()=>{this.startGame(),window.clearTimeout(i)}),3e4);this.preRoll=this._setupPreRoll(e,t,i),this.preRoll.start()}catch(t){console.error(t),this.uAgent.isDesktop?this.startGame():this.setupStartEvent()}}else this.uAgent.isDesktop||"playing"===history.state?this.startGame():this.setupStartEvent()}catch(t){console.error(t)}if(window.GAME_OPTIONS.desktopOnly&&this.uAgent.isDesktop||!window.GAME_OPTIONS.desktopOnly||window.GAME_OPTIONS.desktopOnly&&window.GAME_OPTIONS.hasApps){const t=new v,e=new T;t.load(),e.load((()=>this.userMenu.updateUserMenuContent()),(()=>this.userMenu.addCount()),(()=>this.userMenu.removeCount())),this.gdpr.consent.thirdParty&&this._enableShareOptions()}this._enableBackToTop();const t=document.querySelector("#moreRelatedButton");return t&&t.addEventListener("click",(()=>{window.gtag&&window.gtag("event","more_games_button",{more_games_action:"clicked"}),(0,p.IR)(30,"#moreRelatedGames",500)})),I}_setupPreRoll(t,e,i){return this._coefficient=0,this._preRollManagerLoaded=!1,new class{constructor(t,e){h||(h=this);const i={prefix:"preroll_",autoStart:!1,responsive:!0,fullscreen:!0,width:640,height:360,debug:!1,hasTimer:!1,timerHeight:4,locale:"en",tag:"https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=",splashEnabled:!0,splashButtonText:"play now!",splashImageSource:"",splashCustomStyles:"",managerLoaded:function(t){console.info("[IMA]",t)},loaded:function(){},started:function(){},clicked:function(){},closed:function(){},completed:function(){},error:function(t){console.info("[IMA]",t)}};if(this.options=Object.assign({},i,e),"string"==typeof t){this.options.debug&&console.info("[IMA]",this.options.tag),this.container=document.querySelector(`#${t}`),this.options.responsive&&(this.options.width=this.options.fullscreen?document.documentElement.clientWidth:this.container.offsetWidth,this.options.height=this.options.fullscreen?document.documentElement.clientHeight:this.container.offsetHeight),this.options.hasTimer&&(this.options.height-=this.options.timerHeight),this.adsLoader=void 0,this.adsManager=void 0,this.adDisplayContainer=void 0,this.adPlayButton=void 0,this.intervalTimer=void 0,this.safetyTimer=void 0,this.isCompleted=!1,this.adForReporting=void 0,this.autoPlayEnabled=!1;try{if(!navigator.userAgent.includes("Firefox")&&void 0===window.safari){const t="data:audio/mpeg;base64,/+MYxAAAAANIAUAAAASEEB/jwOFM/0MM/90b/+RhST//w4NFwOjf///PZu////9lns5GFDv//l9GlUIEEIAAAgIg8Ir/JGq3/+MYxDsLIj5QMYcoAP0dv9HIjUcH//yYSg+CIbkGP//8w0bLVjUP///3Z0x5QCAv/yLjwtGKTEFNRTMuOTeqqqqqqqqqqqqq/+MYxEkNmdJkUYc4AKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",e="data:audio/ogg;base64,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",i=new Audio;i.autoplay=!0,i.volume=0,i.addEventListener("play",(()=>{this.autoPlayEnabled=!0})),i.src=i.canPlayType("audio/ogg")?e:t}}catch(t){console.error("[IMA]",t)}return h}this.options.error("Identifier parameter missing!")}start(){if(!this.options.tag)return void this.options.error("No VAST tag provided!");if(this.options.tag.error)return void this.options.error(this.options.tag.error);const t=this.options.debug?"https://imasdk.googleapis.com/js/sdkloader/ima3_debug.js":"https://imasdk.googleapis.com/js/sdkloader/ima3.js",e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=t,e.addEventListener("load",(()=>{if(window.google)this._createPlayer();else{let t=0;const e=setInterval((()=>{20===t?(this.options.error("Script failed to parse!"),clearInterval(e)):(t++,window.google&&(this._createPlayer(),clearInterval(e)))}),100)}}),{once:!0}),e.addEventListener("error",(()=>{this.options.error("Script failed to load!")}),{once:!0}),this.container.append(e)}play(){if(this.adsManager&&this.adDisplayContainer){this.adDisplayContainer.initialize();try{this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start()}catch(t){this.options.error(t)}}else this.options.error("adsManager is not defined!")}_createSplash(){if(!this.options.splashEnabled)return;const t=this.options.width,e=this.options.height,i=this.options.splashImageSource,s=this.options.splashButtonText;document.head.insertAdjacentHTML("beforeend","<style>\n                    .splashContainer {\n                        display: flex;\n                        justify-content: center;\n                        align-items: center;\n                        position: absolute;\n                        top: 0;\n                        width: 100%;\n                        height: 100%;\n                        overflow: hidden;\n                        background-color: hsla(0, 0%, 13%, 1);\n                        border-radius: 2px;\n                    }\n\n                    .splashContainer > img {\n                        display: block;\n                        object-fit: cover;\n                        position: absolute;\n                        z-index: 1;\n                        top: 0;\n                        right: 0;\n                        bottom: 0;\n                        left: 0;\n                        width: calc(100% + 100px);\n                        height: calc(100% + 100px);\n                        margin: -50px;\n                        -webkit-filter: blur(20px);\n                        filter: blur(20px);\n                        cursor: pointer;\n                    }\n\n                    .splashContainer > div {\n                        flex: 1;\n                        position: absolute;\n                        z-index: 1;\n                    }\n\n                    .splashContainer figure {\n                        position: relative;\n                        margin: auto;\n                        padding: 0;\n                        width: 150px;\n                        height: 150px;\n                        overflow: hidden;\n                        border: solid 2px white;\n                        border-radius: 10px;\n                        box-shadow: 0 0 5px rgba(0, 0, 0, .75);\n                    }\n\n                    .splashContainer figure:before {\n                        display: block;\n                        content: '';\n                        position: absolute;\n                        z-index: 1;\n                        width: 100%;\n                        height: 100%;\n                        background-image:\n                            linear-gradient(120deg, rgba(0, 0, 0, .5) 0%, transparent 25%),\n                            linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, transparent 10%),\n                            linear-gradient(240deg, rgba(0, 0, 0, .5) 0%, transparent 25%);\n                    }\n\n                    .splashContainer figure img {\n                        display: block;\n                        width: 100%;\n                        height: auto;\n                    }\n\n                    .splashContainer button {\n                        position: relative;\n                        min-width: 180px;\n                        min-height: 45px;\n                        height: auto;\n                        line-height: 45px;\n                        margin: 20px auto 0;\n                        padding: 0;\n                        border: 0;\n                        border-radius: 25px;\n                        border-bottom: 5px solid grey;\n                        white-space: nowrap;\n                        text-overflow: ellipsis;\n                        text-align: center;\n                        text-transform: uppercase;\n                        text-shadow: 1px 1px 1px rgba(0, 0, 0, .004);\n                        font-family: 'Roboto Condensed', 'Helvetica Neue', 'Arial', 'sans-serif';\n                        font-size: 16px;\n                        font-weight: bold;\n                        cursor: pointer;\n                        box-shadow: inset 0 -1px 1px hsla(0, 0%, 100%, .1), inset 0 1px 1px hsla(0, 0%, 100%, .2);\n                        will-change: transform;\n                        transition: transform .15s linear;\n                    }\n\n                    .splashContainer button:focus {\n                        outline: none;\n                    }\n\n                    .splashContainer button:active {\n                        box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .13);\n                        transform: translateY(-5px);\n                    }\n                </style>"),""!==this.options.splashCustomStyles&&document.head.insertAdjacentHTML("beforeend",this.options.splashCustomStyles);const n=document.createElement("div");n.id="splash",n.classList.add("splashContainer"),n.addEventListener("click",(()=>{const t=document.querySelector("#splash");t&&t.remove(),this.play()}));const o=document.createElement("img");o.src=i,o.width=t,o.height=e,o.alt=s;const r=document.createElement("div"),a=document.createElement("figure"),l=document.createElement("img");l.src=i,l.width=t,l.height=e,l.alt=s;const d=document.createElement("button");d.setAttribute("aria-label",s),d.textContent=s,n.append(o),a.append(l),r.append(a),r.append(d),n.append(r),this.container.append(n)}_createPlayer(){const t=document.createElement("div");t.id=`${this.options.prefix}adContainer`,this.options.responsive?(t.style.position="absolute",t.style.top="0",t.style.left="0"):t.style.margin="auto",t.style.width=this.options.width+"px",t.style.height=this.options.height+"px",this.adPlayButton=document.createElement("button"),this.adPlayButton.id=`${this.options.prefix}adPlayButton`,this.adPlayButton.classList.add("button","is-square","is-large","is-light"),this.adPlayButton.style.display="none",this.adPlayButton.style.position="absolute",this.adPlayButton.style.top="50%",this.adPlayButton.style.left="50%",this.adPlayButton.style.transform="translate(-50%, -50%)",this.adPlayButton.innerHTML='\n            <sp
1an class="icon is-small" style="transform: translateX(1px)">\n                <i class="fas fa-play"></i>\n            </span>\n        ',this.adPlayButton.addEventListener("click",(()=>{this.adsManager&&this.adsManager.resume()})),t.append(this.adPlayButton),this.container.append(t),this.options.responsive&&window.addEventListener("resize",(()=>{this.options.width=this.options.fullscreen?document.documentElement.clientWidth:this.container.offsetWidth,this.options.height=this.options.fullscreen?document.documentElement.clientHeight:this.container.offsetHeight,t.style.width=this.options.width+"px",t.style.height=this.options.height+"px"})),this._setUpIMA()}_setUpIMA(){this._createAdDisplayContainer(),this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this._onAdsManagerLoaded,!1,this),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this._onAdError,!1,this);const t=new google.ima.AdsRequest;t.adTagUrl=this.options.tag,t.setAdWillAutoPlay(this.autoPlayEnabled),t.setAdWillPlayMuted(!1),t.setContinuousPlayback(!1),t.linearAdSlotWidth=this.options.width,t.linearAdSlotHeight=this.options.height,t.nonLinearAdSlotWidth=this.options.width,t.nonLinearAdSlotHeight=this.options.height,t.forceNonLinearFullSlot=!0,this.adsLoader.requestAds(t)}_createAdDisplayContainer(){google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.options.locale);const t=document.querySelector(`#${this.options.prefix}adContainer`);this.adDisplayContainer=new google.ima.AdDisplayContainer(t);const e=t.querySelectorAll("iframe");for(const t of e)t.setAttribute("title","advertisement")}_onAdsManagerLoaded(t){const e=new google.ima.AdsRenderingSettings;e.restoreCustomPlaybackStateOnAdBreakComplete=!1,e.enablePreloading=!0,this.adsManager=t.getAdsManager(e),this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this._onAdError.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LOADED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CLICK,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.TAPPED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.USER_CLOSE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.RESUMED,this._onAdEvent.bind(this),this),this.options.autoStart&&(this.autoPlayEnabled?this.play():this._createSplash()),this.options.responsive&&window.addEventListener("resize",(()=>{this.adsManager.resize(this.options.width,this.options.height,google.ima.ViewMode.NORMAL)})),this.options.managerLoaded(this.autoPlayEnabled)}_onAdEvent(t){const e=this,i=t.getAd();switch(t.type){case google.ima.AdEvent.Type.PAUSED:this.adPlayButton.style.display="block";break;case google.ima.AdEvent.Type.RESUMED:this.adPlayButton.style.display="none";break;case google.ima.AdEvent.Type.LOADED:this.adForReporting=i,this._safetyTimerLoaded=setTimeout((function(){e.isCompleted=!0,e._onAdError({g:{type:"Safety Timer",errorMessage:"Safety timer failed to clear in AdEvent.Type.STARTED.",errorCode:0}}),clearTimeout(e._safetyTimerLoaded),e._safetyTimerLoaded=void 0}),1e4),this.options.loaded(i.isLinear());break;case google.ima.AdEvent.Type.STARTED:this._safetyTimerLoaded&&(window.clearTimeout(this._safetyTimerLoaded),this._safetyTimerLoaded=void 0),i.isLinear()?(this.intervalTimer=setInterval((function(){const t=e.adsManager.getRemainingTime();t>=0&&e.options.started(t)}),300),this.options.started()):(this.isCompleted=!0,this._onAdError({g:{type:"Safety Timer",errorMessage:"Safety timer triggered. Ad is non-linear.",errorCode:0}}));break;case google.ima.AdEvent.Type.COMPLETE:i.isLinear()&&(this.intervalTimer&&(clearInterval(this.intervalTimer),this.intervalTimer=void 0),this.safetyTimer&&(clearTimeout(this.safetyTimer),this.safetyTimer=void 0),this.safetyTimer=setTimeout((function(){e.isCompleted||(e.isCompleted=!0,e._onAdError({g:{type:"Safety Timer",errorMessage:"Safety timer triggered. Ad is linear, but did not trigger ALL_ADS_COMPLETED.",errorCode:0}}),clearTimeout(e.safetyTimer),e.safetyTimer=void 0)}),1e3));break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.isCompleted||(this.isCompleted=!0,this.options.completed());break;case google.ima.AdEvent.Type.CLICK:case google.ima.AdEvent.Type.TAPPED:this.options.clicked();break;case google.ima.AdEvent.Type.USER_CLOSE:this.options.closed()}}_onAdError(t){this.adsManager&&(this.adDisplayContainer.destroy(),this.adsManager.destroy());const e=document.querySelector("#splash");e&&e.remove();const i="function"==typeof t.getError?t.getError():t;i.data_&&(i.g=i.data_,delete i.data_),this.adForReporting&&i.g&&(i.g.ad=this.adForReporting),this.options.error(i)}}(e.id,{tag:t,debug:!1,responsive:!0,fullscreen:!this.uAgent.isDesktop,autoStart:this.uAgent.isDesktop&&"disabled"===window.GAME_OPTIONS.popup,splashEnabled:!1,locale:window.SITE_OPTIONS.language,hasTimer:!0,managerLoaded:t=>{this._preRollManagerLoaded=!0,window.clearTimeout(i),this.setupStartEvent()},loaded:t=>{if(t){const t=document.createElement("div");t.classList.add("pre-roll-progress-container"),t.innerHTML=`\n                        <p>${window.TRANSLATIONS.preRollCountDownMessage}</p>\n                        <div><div class="pre-roll-progress-bar-inner" /></div>\n                    `,e.append(t)}},started:t=>{if(this.uAgent.isDesktop){const t=document.querySelector("#splashScreen");t&&t.classList.remove("is-active")}if(e.classList.add("is-active"),t){const i=e.querySelector(".pre-roll-progress-container");i.classList.add("is-active");const s=i.querySelector(".pre-roll-progress-bar-inner"),n=Number.parseInt(t,10);0===this._coefficient&&(this._coefficient=100/n);let o=100-(this._coefficient*n-this._coefficient);o=o<100?o:100,s.style.width=`${o}%`}},closed:()=>this.startGame(),completed:()=>this.startGame(),error:()=>{window.clearTimeout(i),this.preRoll=void 0,this.uAgent.isDesktop||this._preRollManagerLoaded?this.startGame():this.setupStartEvent()}})}setupStartEvent(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._startGameSelectors;if(!this._startGameButtonsAreBound){this._startGameButtonsAreBound=!0;for(const e of t){const t=document.querySelectorAll(e);if(void 0!==t)for(const e of t)e.classList.contains("button")&&(e.classList.remove("is-loading"),e.disabled=!1),e.addEventListener("click",this.startPreRoll.bind(this))}}}_clearAndPrepareDocument(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=["#confetti",":scope > nav",":scope > section",":scope > footer",":scope > div"];for(const i of t)e[e.length-1]+=`:not(${i})`;for(const t of e){const e=document.body.querySelectorAll(t);for(const t of e)t.remove()}document.documentElement.classList.toggle("is-clipped"),document.body.style.background="#000"}async startPreRoll(){if(this.preRoll){if(!this.uAgent.isDesktop){this._clearAndPrepareDocument([".pre-roll-container"]);try{await this.orientation.constructor.setScreenLock(window.GAME_OPTIONS.orientation)}catch{}}this.preRoll.container.classList.add("is-active"),this.preRoll.play(),this.uAgent.isDesktop||"playing"===history.state||history.pushState("playing",document.title,window.location.href)}else this.startGame()}async startGame(){if(this._gameAlreadyStarted)return;if(this._gameAlreadyStarted=!0,void 0!==this.preRoll&&(this.preRoll=void 0),this.uAgent.isDesktop){const t=document.querySelector("#splashScreen"),e=document.querySelector("#preRoll");t&&t.remove(),e&&e.remove()}else{this._clearAndPrepareDocument([".orientation-lock","fullscreen-request"]);try{await this.orientation.start(),await this.orientation.constructor.setScreenLock(window.GAME_OPTIONS.orientation)}catch{}}const t=this.uAgent.isDesktop?document.querySelector("#game"):document.body,e=new class{constructor(t){if(u||(u=this),this.root=void 0===t?document.body:t,!this.root)throw new Error("Missing a Preloader Target element!");return this.loader=void 0,u}create(){if(this.loader)this.destroy(),this.create();else{this.loader=document.createElement("div");const t=document.createElement("div");t.classList.add("page-loader-ball-container");for(let e=0;e<3;e++){const i=document.createElement("div");i.classList.add("page-loader-ball-child"),i.classList.add(`page-loader-ball-${e}`),t.append(i)}this.loader.append(t),this.loader.classList.add("page-loader"),this.root.append(this.loader)}}destroy(){this.loader&&(this.loader.remove(),this.loader=void 0)}}(t);e.create();const i=document.createElement("iframe");
1if(i.setAttribute("aria-label","game"),window.GAME_OPTIONS.disableScrollbars&&i.setAttribute("scrolling","no"),i.setAttribute("allowFullScreen",""),i.setAttribute("sandbox","allow-scripts allow-pointer-lock allow-forms allow-same-origin allow-popups"),this.uAgent.isDesktop)this._setDesktopFrameDimensions(i),window.addEventListener("resize",(()=>this._setDesktopFrameDimensions(i)));else{const t=function(t){t.width=`${document.documentElement.clientWidth}`,t.height=`${document.documentElement.clientHeight}`,t.style.width=document.documentElement.clientWidth+"px",t.style.height=document.documentElement.clientHeight+"px"};t(i),window.addEventListener("resize",(()=>t(i)))}let s=0;i.addEventListener("load",(()=>{if(!(s>0)){if(s++,this.uAgent.isDesktop||"playing"===history.state||history.pushState("playing",document.title,window.location.href),this.uAgent.isDesktop||new class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return m||(m=this),this._drag=this._drag.bind(this),this._snap=this._snap.bind(this),this._remember=this._remember.bind(this),this.options=Object.assign({},{icon:"/favicons/android-icon-36x36.png",iconRetina:"/favicons/android-icon-72x72.png",storageName:"spGs_inGame"},t),m}start(){const t=document.querySelectorAll("body")[0];let e=document.querySelector("#inGame");e||(e=document.createElement("button"),e.id="inGame",e.classList.add("in-game-button"),e.innerHTML=`\n                <i class="fas fa-chevron-left"></i>\n                <img\n                    src="${this.options.icon}"\n                    srcset="${this.options.icon}, ${this.options.iconRetina} 2x"\n                    width="36"\n                    height="36"\n                    alt="Logo">\n            `,t.append(e));const i=this._position();this._applyStyles(e,i);let s=document.querySelector("#trash");s||(s=document.createElement("i"),s.id="trash",s.classList.add("in-game-trash"),s.innerHTML='<i class="far fa-trash"></i>',t.append(s)),e.addEventListener("click",(()=>{history.back()})),e.addEventListener("touchmove",this._drag),e.addEventListener("touchend",this._snap),e.addEventListener("touchend",this._remember),e.setAttribute("attr-active","true"),window.addEventListener("resize",(function(){e.style.top="61px",e.style.borderRadius="0 290486px 290486px 0"}))}_applyStyles(t,e){e<=60?(t.style.top="0",t.style.bottom="auto",t.style.borderRadius="0 0 290486px 0",t.setAttribute("attr-snapped","true")):e>=window.innerHeight-t.offsetHeight-60?(t.setAttribute("attr-active","false"),t.setAttribute("attr-snapped","false")):(t.style.top=e+"px",t.style.borderRadius="0 290486px 290486px 0",t.setAttribute("attr-snapped","false")),this._toggleTrash(!1,!1)}_snap(t){const e=t.target,i=e.getBoundingClientRect().top;this._applyStyles(e,i)}_drag(t){t.preventDefault();const e=t.target;for(let i=0;i<t.changedTouches.length;i++){let s=t.changedTouches[i].pageY;const n=e.offsetHeight/2;if(s>=n-3&&s<window.innerHeight-n+3){const t=290486;e.style.top=s-n+"px",e.style.bottom="auto",e.style.borderRadius=`0 ${t}px ${t}px 0`}}const i=e.getBoundingClientRect().top>=window.innerHeight-e.offsetHeight-60;this._toggleTrash(!0,i)}_toggleTrash(t,e){const i=document.querySelector("#trash");i&&(t?i.setAttribute("attr-active","true"):i.setAttribute("attr-active","false"),e?i.setAttribute("attr-inrange","true"):i.setAttribute("attr-inrange","false"))}_position(){const t=(0,p.GQ)(this.options.storageName);if(!t)return"61px";{const e=JSON.parse(t);for(const t of e)if(t.id===window.GAME_OPTIONS.id)return t.y}}_remember(t){const e=(0,p.GQ)(this.options.storageName),i=t.target,s=i.getBoundingClientRect().top>=window.innerHeight-i.offsetHeight-60?61:i.getBoundingClientRect().top;let n=!1;if(e){let t=JSON.parse(e);for(let e=0;e<t.length;e++)t[e].id===window.GAME_OPTIONS.id?(t.splice(e,1),t.push({id:window.GAME_OPTIONS.id,y:s}),(0,p.A6)(this.options.storageName,JSON.stringify(t)),n=!0):e!==t.length-1||n||(t.push({id:window.GAME_OPTIONS.id,y:s}),(0,p.A6)(this.options.storageName,JSON.stringify(t)))}else{let t=[];t.push({id:window.GAME_OPTIONS.id,y:s}),(0,p.A6)(this.options.storageName,JSON.stringify(t))}}}({icon:"/favicons/tg-push-icon-fg.png",iconRetina:"/favicons/tg-push-icon-fg.png"}).start(),this.uAgent.isDesktop){const t=new class{constructor(){return _||(_=this),this.button=void 0,this.frame=void 0,_}start(t,e,i,s){this.button&&this.frame&&(t||e)&&(this.button.addEventListener("click",(()=>{this._toggleTheater(i,s)})),this.button.removeAttribute("disabled")),e&&this._toggleTheater(i,s)}_toggleTheater(t,e){this.frame.classList.contains("is-theater")?(document.documentElement.classList.remove("is-clipped"),this.frame.classList.remove("is-theater"),this.button.classList.remove("shrink")):(document.documentElement.classList.add("is-cl
1ipped"),this.frame.classList.add("is-theater"),this.button.classList.add("shrink"),"function"==typeof t&&t()),e()}};t.button=document.querySelector("#theaterButton"),t.frame=document.querySelector("#gameFrameSection"),t.start(window.GAME_OPTIONS.theater,"disabled"!==window.GAME_OPTIONS.popup,(()=>{window.gtag&&window.gtag("event","theater",{theater_action:"open"})}),(()=>{this._setDesktopFrameDimensions(i)}))}setTimeout((function(){e.destroy()}),1e3),(new S).add((()=>{this.userMenu.addCount(),this.uAgent.isDesktop&&this.userMenu.updateUserMenuContent()}))}})),i.addEventListener("error",(function(){"playing"===history.state&&(history.replaceState("idle",document.title,window.location.href),window.location.reload())})),t.append(i);let n=window.GAME_OPTIONS.location;n.includes("gamedistribution")&&(n=(0,p.kD)(n,"gdpr-targeting",this.gdpr.consent.googleAds?"1":"0"),n=(0,p.kD)(n,"gdpr-tracking",this.gdpr.consent.tracking?"1":"0"),n=(0,p.kD)(n,"gdpr-third-party",this.gdpr.consent.thirdParty?"1":"0"),n=(0,p.kD)(n,"euConsent",this.gdpr.consent.consentString)),n=(0,p.kD)(n,"gd_sdk_referrer_url",encodeURIComponent(document.location.href||document.location.origin)),i.src=n,i.focus()}_setDesktopFrameDimensions(t){t.width="100%",t.height="100%";const e=document.querySelector("#game");if(window.GAME_OPTIONS.width&&window.GAME_OPTIONS.height&&window.GAME_OPTIONS.enforceRatio){e.classList.add("has-locked-ratio");let i=window.GAME_OPTIONS.width,s=window.GAME_OPTIONS.height,n=i,o=s;n=e.clientWidth,o=s/i*e.clientWidth,o>e.clientHeight&&(n=i/s*e.clientHeight,o=e.clientHeight),t.width=n,t.height=o}else t.style.width="100%",t.style.height="100%"}_enableShareOptions(){const t=document.querySelector("#shareButton"),e=document.querySelector("#shareContainer");if(!t||!e)return;t.addEventListener("click",s),t.removeAttribute("disabled");const i=function(){e.classList.contains("is-active")&&e.classList.remove("is-active"),e.classList.contains("is-loading")&&e.classList.remove("is-loading"),t.disabled=!0,t.removeEventListener("click",s)};async function s(){if(e.classList.toggle("is-active"),!document.querySelector("#addThisScript")){e.classList.add("is-loading");try{await(0,p.HA)([{src:"https://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4eafce3e56a67582",id:"addThisScript",async:!0}])}catch{i()}finally{if(window.addthis&&"function"==typeof window.addthis.events){const t=setInterval((function(){e.firstElementChild.hasChildNodes()&&(e.classList.remove("is-loading"),clearInterval(t))}),50)}else i()}}}const n=document.querySelector("#shareButtonMobile");n.removeAttribute("disabled"),n.addEventListener("click",(async()=>{try{await navigator.share({title:GAME_OPTIONS.title,text:GAME_OPTIONS.description,url:GAME_OPTIONS.url})}catch(t){console.error(t)}}))}_checkPublisherUrlAgainstGdpr(){return new Promise((t=>{let e,i,s,n=!0,o=window.GAME_OPTIONS.location.indexOf("?")>0?window.GAME_OPTIONS.location.indexOf("?"):window.GAME_OPTIONS.location.length,r=window.GAME_OPTIONS.location.slice(0,Math.max(0,o)).toLowerCase();for(let o=0;o<this.gdpr.blockedPublishers.length;o++)for(let a=0;a<this.gdpr.blockedPublishers[o].cdnDomains.length;a++)if(""!==this.gdpr.blockedPublishers[o].cdnDomains[a]&&r.includes(this.gdpr.blockedPublishers[o].cdnDomains[a]))return n=!1,e=this.gdpr.blockedPublishers[o].id,i=this.gdpr.blockedPublishers[o].name,s=this.gdpr.blockedPublishers[o].policyUrl,t({allowed:n,publisherId:e,publisherName:i,publisherPolicy:s});let a=this.gdpr.publishers.find((t=>{for(let e=0;e<t.cdnDomains.length;e++)if(""!==t.cdnDomains[e]&&r.includes(t.cdnDomains[e]))return!0}));return t({allowed:n,publisherId:a?a.id:e,publisherName:a?a.name:i,publisherPolicy:a?a.policyUrl:s})}))}_createPublisherConsent(){return new Promise((t=>{if(!this.publisher.id||!this.publisher.name)return t();const e=window.TRANSLATIONS.cmpWallPublisherConsentDescription.replaceAll("#partner",this.publisher.name).replaceAll("#privacy",`\n                        <a href="${this.publisher.policy}" target="_blank" rel="noreferrer">\n                            ${window.TRANSLATIONS.cmpWallDisclaimerPolicyLink}\n                        </a>\n                    `);if("mobile"===this.displayMode)(0,s.Z)().alert({type:"info",title:`${window.TRANSLATIONS.cmpWallPublisherConsentTitle} ${this.publisher.name}`,body:e,closable:!1,confirm:{close:!1,destroy:!1,label:window.TRANSLATIONS.reviewGdpr,onClick:function(){window.Optanon&&window.Optanon.ToggleInfoDisplay()}}});else{const t=document.querySelector("#game"),i=document.createElement("div");i.id="publisherConsent",i.classList.add("publisher-consent"),i.classList.add("content"),i.innerHTML=`\n                    <div class="title">\n                        ${window.TRANSLATIONS.cmpWallPublisherConsentTitle}
1\n                        <span></span>.\n                    </div>\n                    <p>${e}</p>\n                    <hr />\n                    <div class="buttons">\n                        <button id="publisherConsentButton" class="button">\n                            ${window.TRANSLATIONS.reviewGdpr}\n                        </button>\n                    </div>\n                `,t.append(i),i.querySelector("#publisherConsentButton").addEventListener("click",(()=>{window.Optanon&&window.Optanon.ToggleInfoDisplay()}));const s=i.querySelectorAll(".title > span");for(const t of s)t.textContent=this.publisher.name;setTimeout((function(){i.classList.add("is-active")}),500)}}))}_createPublisherConsentNotification(){if(!this.publisher.id||!this.publisher.name)return;try{if(JSON.parse((0,p.GQ)("dismissed_publisher_consent_notification")))return}catch{}const t=document.querySelector(".publisher-disclaimer-notification"),e=(0,s.Z)(t).notification({body:window.TRANSLATIONS.cmpWallDisclaimerDescription.replaceAll("#publisherName",this.publisher.name).replaceAll("#policyLink",`<strong><a href="${this.publisher.policy}" target="_blank" rel="noreferrer">${window.TRANSLATIONS.cmpWallDisclaimerPolicyLink}</a></strong>`),color:"info",isDismissible:!0,destroyOnDismiss:!0,isFixed:!this.uAgent.isDesktop});e&&e.on("dismissed",(function(){(0,p.A6)("dismissed_publisher_consent_notification","true")}))}_enableBackToTop(){const t=document.querySelector("#backToTop");if(!t)return;t.addEventListener("click",(t=>{t.preventDefault(),(0,p.IR)(30,"#navbar",500)}));const e=this.uAgent.isDesktop?document.querySelector("#gameFrameSection"):document.querySelector(".title-bar"),i=document.querySelector("footer"),s=e.getBoundingClientRect(),n=document.documentElement.scrollTop||0;document.addEventListener("scroll",(()=>{const e=window.pageYOffset||document.documentElement.scrollTop,o=s.bottom-s.height/2+n,r=i.getBoundingClientRect(),a=r.bottom-r.height;e>o?t.classList.add("is-active"):e<o&&t.classList.remove("is-active"),e>a?t.classList.add("footer-margin"):e<a&&t.classList.remove("footer-margin")}))}}const N=P}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.