function WaitDefinition(e,t){return new Promise(((i,n)=>{let s=setInterval((()=>{null!=e&&(i(e),clearInterval(s))}),t)}))}const GamesPage={GetRequest:e=>new Promise(((t,i)=>{fetch(e,{method:"GET",mode:"cors"}).then((e=>{e.status>=200&&e.status<=299?e.text().then((e=>{t(e)})):i(new Error)})).catch((e=>i(e)))})),JSONPostRequest:(e,t)=>new Promise(((i,n)=>{fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),mode:"cors"}).then((e=>{e.status>=200&&e.status<=299?e.json().then((e=>{i(e)})):n(new Error)})).catch((e=>n(e)))})),SetElementHTMLFromWeb:async(e,t)=>{let i=await GamesPage.GetRequest(t).catch((e=>{throw e}));e.html(i)},SearchStore:e=>GamesPage.JSONPostRequest("https://dapp.isotopic.io/api/v1/store/search",e),GetThumbnailSrcURL:e=>`https://dapp.isotopic.io/api/v1/store/files/${e}/thumbnail`};GamesPage.SearchStoreFeaturedPromise=GamesPage.SearchStore({special:"featured",limit:6}).catch((e=>{throw e})),GamesPage.SearchStoreRecentPromise=GamesPage.SearchStore({platform:"pc-mobile-web-vr-mac-linux",orderby:"created_at DESC",limit:24,other:"available-not(school_project)"}).catch((e=>{throw e})),GamesPage.SearchStoreRandomPromise=GamesPage.SearchStore({platform:"pc-mobile-web-vr-mac-linux",limit:26,other:"available"}).catch((e=>{throw e})),GamesPage.CountSearchPromise=GamesPage.SearchStore({limit:1}).catch((e=>{throw e}));let storesidebarRes=GamesPage.GetRequest("https://dapp.isotopic.io/games-page/sidebar").catch((e=>{throw e}));$(document).ready((async()=>{const e=$("#games-window-target"),t=($("#store-sidebar"),$("#featured-target"),$("#grid-2")),i=$("#top-games-slideshow");let n=[{img:"https://dapp.isotopic.io/media/banner-top/isotopic_shorts_banner.jpg",url:"https://isotopic.io/shorts",src:"https://dapp.isotopic.io/media/banner-top/isotopic_shorts.webm",title:"Isotopic Shorts",text:"Watch curated gaming content, and find your next favorite Indie Game by discovering short videos.",is_video:!0,type:"video/webm"},{img:"https://dapp.isotopic.io/media/ads/GGEM.png",url:"https://www.br1game.com/signup",title:"BR1 Infinite",text:"Play for free now!",src:"",is_video:!1},{img:"https://dapp.isotopic.io/media/banner-top/FULL_RELEASE-ISOTOPIC-STORE.jpeg",url:"https://isotopic.io/isotopic-game-store-launches-paid-games/",src:"https://dapp.isotopic.io/media/banner-top/ISOTOPIC-FULL-RELEASE.webm",title:"WE ARE LIVE!",text:"Isotopic now supports premium games! Read more about the latest release and games coming to Isotopic!",is_video:!0,type:"video/webm"},{img:"https://dapp.isotopic.io/media/banner-top/FULL_RELEASE-ISOTOPIC-STORE.jpeg",url:"https://isotopic.io/game/?game=Kelly_Covert_Demo",src:"https://dapp.isotopic.io/media/kelly-covert/kelly_covert_demo_trailer.webm",title:"Exclusive on Isotopic",text:"Kelly Covert Demo, now exclusively available on ISOTOPIC!",is_video:!0},{img:"https://dapp.isotopic.io/media/act-zero/event_header_we_the_refugees.jpg",url:"https://store.isotopic.io/We_The_Refugees_Ticket_to_Europe",src:"",title:"PLAY NOW",text:"An interactive fiction adventure game about refugees. Now on Isotopic!",is_video:!1},{img:"https://dapp.isotopic.io/media/thewake/the-wake-banner.png",url:"https://isotopic.io/game/?game=The_Wake",src:"https://dapp.isotopic.io/media/thewake/the%20wake%20trailer%20-%20isotopic.mp4",title:"The Wake on Isotopic",text:"Play this intense isometric multiplayer role-playing game, download from Isotopic.",is_video:!0},{img:"https://dapp.isotopic.io/api/v1/store/files/The_Shore_Demo/page_images/?index=2",url:"https://isotopic.io/game/?game=THE_SHORE",title:"The Shore on Isotopic",text:"Try this H.P. Lovecraft-inspired psychological horror game. Now LIVE on the store.",src:"https://dapp.isotopic.io/media/the_shore/the_shore-isotopic.webm",is_video:!0},{img:"https://dapp.isotopic.io/media/metanemesis/meta-nemesis-banner-game-map.jpg",url:"https://isotopic.io/game/?game=Meta_Nemesis",title:"Meta Nemesis on Isotopic",text:"Elite 5v5 FPS multiplayer battles, coming soon to Isotopic!",src:"",is_video:!1},{img:"https://dapp.isotopic.io/api/v1/store/files/Astra_Nova/page_images/?index=1",url:"https://isotopic.io/game/?game=Astra_Nova",title:"First true MetaRPG Experience",text:"Check out Astra Nova on the Isotopic Game Store!",src:"https://dapp.isotopic.io/media/astra-nova/astra-nova-isotopic-game store.mp4",is_video:!0},{img:"https://dapp.isotopic.io/media/coe/cards-of-ethernity-isotopic-game-store.png",url:"https://isotopic.io/game/?game=Cards_of_Ethernity",title:"Cards of Ethernity",text:"Play the best blockchain-enabled Card Collecting Game on Isotopic NOW!",src:"https://dapp.isotopic.io/media/coe/Cards-of-ethernity-Teaser-ISOTOPIC.mp4",is_video:!0},{img:"https://dapp.isotopic.io/api/v1/store/files/leptons-vr/page_images/?index=1",url:"https://isotopic.io/leptonsvr-blockchain-vr-game/",title:"IN-GAME REWARDS",text:"All items, skins and weapons are non-fungible tokens that you can take with you to other games in our platform, trade or exchange with other players, and create a unique collection.",src:"https://dapp.isotopic.io/media/LEPTONS_VR_INTRO_low.mp4",is_video:!0},{img:"https://dapp.isotopic.io/media/HERCULES-VR-GAME.jpg",url:"https://isotopic.io/game/?game=The_Shore_Demo",title:"AGE OF HERCULES VR",text:"Defeat the Stymphalian birds on the sixth labour of Eurystheus. Hide behind the rocks and shake the krotala to frighten the birds. Shot the birds with the poisonous arrows from the slain Hydra.",src:"https://dapp.isotopic.io/media/Stymphalides.mp4",is_video:!0}],s=[{img:"https://dapp.isotopic.io/media/banner-top/isotopic_shorts_banner.jpg",url:"https://isotopic.io/shorts",btn_text:"Isotopic Shorts"},{img:"https://dapp.isotopic.io/media/banner-top/FULL_RELEASE-ISOTOPIC-STORE.jpeg",url:"https://isotopic.io/isotopic-game-store-launches-paid-games/",btn_text:"Read More"},{img:"https://dapp.isotopic.io/media/clash-antroll-games/clash-banner.jpg",url:"https://isotopic.io/game/?game=CLASH_HEROES_OF_FERALIA_TERRA",btn_text:"Coming Soon"},{img:"https://dapp.isotopic.io/media/banner-middle/banner-ATLM.jpg",url:"https://isotopic.io/game/?game=Aurora_The_Lost_Medallion",btn_text:"Coming Soon"},{img:"https://dapp.isotopic.io/media/banner-middle/banner-skaramazuzu.jpg",url:"https://isotopic.io/game/?game=Skaramazuru",btn_text:"Coming Soon"},{img:"https://dapp.isotopic.io/media/banner-middle/banner-abtos-covert.jpg",url:"https://isotopic.io/game/?game=Abtos_Covert",btn_text:"Coming Soon"},{img:"https://dapp.isotopic.io/media/OneClick-Publisher-isotopic.jpg",url:"https://isotopic.io/announcing-one-click-publishing-through-unity-editor/",btn_text:"Read More"},{img:"https://dapp.isotopic.io/media/polygon-id-isotopic-game-store.jpg",url:"",btn_text:"Coming Soon"},{img:"https://dapp.isotopic.io/media/isotopic-game-store-download-client.jpg",url:"https://dapp.isotopic.io/downloads/client/IsotopicClient.msi",btn_text:"Download Now"},{img:"https://dapp.isotopic.io/media/coming-soon/fnaf-roaming-coming-soon.png",url:"",btn_text:"Coming Soon"}];const o=(e=1)=>1===e?'':0===e?'':void 0,a=e=>{let t="";t=0==e.price?"FREE":e.price+" $";let i="";return null!=e.discount&&0!=e.discount&&(i=`

-${e.discount}%

`),`\n \n
\n \n
${e.title}
\n \n ${i}\n
\n \n `},r=e=>{const t=p(e);return`\n \n
\n \n
\n \n \n \n
\n
\n\n
\n
\n \n
${e.title}
\n
\n \n
\n
\n ${null==e.rating.rating?`

${e.special_tags?.includes("coming_soon")?"COMING SOON":"Not enough ratings."}

`:Array.from(Array(5).keys()).map(((t,i)=>i+1<=Math.round(e.rating.rating)?o(1):o(0))).join("\n")}\n
\n
\n \x3c!-- \n

${e.short_description}

\n
--\x3e\n\n \n
\n
\n \n \x3c!--Read more--\x3e\n
${t.iconHtml}
\n
${t.price}
\n \n
\n
\n \n
\n \n
\n `},c=e=>{const t=p(e);return`\n
\n
\n
\n \n \n \n \n
\n
\n\n
\n
\n \n
${e.title}
\n
\n \n
\n ${null==e.rating.rating?`

${e.special_tags?.includes("coming_soon")?"COMING SOON.":"Not enough ratings."}

`:Array.from(Array(5).keys()).map(((t,i)=>i+1<=Math.round(e.rating.rating)?o(1):o(0))).join("\n")}\n
\n \n \x3c!-- \n

${e.short_description}

\n
--\x3e\n\n \n
\n
\n \x3c!--
--\x3e\n \n \x3c!--Read more--\x3e\n
${t.iconHtml}
\n
${t.price}
\n \n
\n
\n
\n
\n
\n `},l='\x3c!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e',p=e=>{var t=e.platform.split("-");let i="";t.forEach((function(e){var t="";"pc"===e?t=l:"mobile"===e?t='\x3c!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e':"web"===e?t='\x3c!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e':"vr"===e&&(t='\x3c!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e'),i+=t}));let n="";"pc"==e.platform&&(n=l);let s="";s=0==e.price?"FREE":e.price+"$";return{iconHtml:i,price:s}},d=()=>{window.innerWidth<950?$(".slideshow-card").css("display","none"):$(".slideshow-card").css("display","flex")};window.addEventListener("resize",d),window.addEventListener("fullscreenchange",d),(async()=>{const e=$("#store-sidebar");let t=await storesidebarRes;e.html(t)})(),await WaitDefinition(typeof Flickity,100),d(),(async()=>{e.append('\n \x3c!--______________SLIDESHOW________________________________________--\x3e\n\n
\n \x3c!-- Additional required wrapper --\x3e\n
\n \x3c!-- Slides --\x3e\n \x3c!-- *append here*--\x3e\n \n
\n \x3c!-- If we need pagination --\x3e\n
\n
\n
\n ');const o=$("#swiper-div");for(let e=0;e\n \n \n
\n
${n[e].title}
\n

${n[e].text}

\n
\n
\n \n `):o.append(`\n
\n \n \n
\n
${n[e].title}
\n

${n[e].text}

\n
\n
\n
\n `);e.append("