(()=>{"use strict";function t(t,n,o,r,e,c){return i(function(t,n){return t<>>32-n}(i(i(n,t),i(r,c)),e),o)}function n(n,o,r,e,i,c,s){return t(o&r|~o&e,n,o,i,c,s)}function o(n,o,r,e,i,c,s){return t(o&e|r&~e,n,o,i,c,s)}function r(n,o,r,e,i,c,s){return t(o^r^e,n,o,i,c,s)}function e(n,o,r,e,i,c,s){return t(r^(o|~e),n,o,i,c,s)}function i(t,n){const o=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(o>>16)<<16|65535&o}let c,s;try{s=localStorage.getItem("savegame_idbfs_hash")}catch(t){}function a(t){if(!s)return t;try{return t.replace(c,s)}catch(n){return t}}try{try{const t=window.location.href.split("?")[0].replace(/\/[^/]*$/,"");c=function(t){for(var n,o="0123456789ABCDEF",r="",e=0;e>>4&15)+o.charAt(15&n);return r}(function(t){for(var n="",o=0;o<32*t.length;o+=8)n+=String.fromCharCode(t[o>>5]>>>o%32&255);return n}(function(t,c){t[c>>5]|=128<>>9<<4)]=c;for(var s=1732584193,a=-271733879,u=-1732584194,d=271733878,p=0;p>2),o=0;o>5]|=(255&t.charCodeAt(o/8))<=0&&(l.unity="/unity/dist/unity.js",l["unity-2020"]="/unity-2020/dist/unity-2020.js",p="/loaders"),!window.config)throw Error("window.config not found");const f=l[window.config.loader];if(!f)throw Error(`Loader "${window.config.loader}" not found`);if(!window.config.unityWebglLoaderUrl){const t=window.config.unityVersion?window.config.unityVersion.split("."):[],n=t[0],o=t[1];if("2019"===n)window.config.unityWebglLoaderUrl=1===o?"UnityLoader.2019.1.js":"UnityLoader.2019.2.js";else window.config.unityWebglLoaderUrl="UnityLoader.js"}const y=document.createElement("script");y.src="poki-sdk.js",y.onload=()=>{const t=document.createElement("script");t.src=p+f,document.body.appendChild(t)},document.body.appendChild(y)})();