(()=>{var e;try{e=window.localStorage}catch(s){console.log("LocalStorage is unavailable!")}var i=window.SKIN_DIRS||{},o=window.__OPTIONS__.rules_url,a=o.slice(o.indexOf(`/${window.__OPTIONS__.locale}/`)+1);function _(i){var o=(i.ui.skin||"basic").toLocaleLowerCase(),a=window.location.search.match(new RegExp("[?&]skin=([^&]*)(&?)","i")),_=a?a[1]:null;if(!e)return _||o;var s=`lastApiSkin_${i.cache_id}`,t=`userSkin_${i.cache_id}`;return _?e.setItem(t,_):_=e.getItem(t),e.getItem(s)===o&&_?_:(e.removeItem(t),e.setItem(s,o),o)}window.__OPTIONS__.rules_url="https://static.popiplay.dev/rules/"+a,window.initializeCasinoOptions=e=>{var o=_(e),{root:a,res:s="dist"}=i[o]||i.basic||{};e.ui.applied_skin=a,e.resources_root_path=e.resources_path+(a?`/${a}`:""),e.resources_path+=`/${s}`,e.game_bundle_source=e.resources_path+"/bundle.js",window.__OPTIONS__=e},window.initializeCasinoOptions(window.__OPTIONS__)})();