diff --git a/assets/default.5f5cce99c868ff445756.js b/assets/default.5f5cce99c868ff445756.js deleted file mode 100644 index 8f193ea..0000000 --- a/assets/default.5f5cce99c868ff445756.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see default.5f5cce99c868ff445756.js.LICENSE.txt */ -!function(){var e={"./src/js/cfg-loader/cfg-loader.js":function(e,t,n){n("./node_modules/core-js/modules/es.promise.js"),n("./node_modules/core-js/modules/es.array.iterator.js"),n("./node_modules/core-js/modules/web.dom-collections.iterator.js");e.exports=class{constructor(e,t){this.reader=e,this.parser=t}async load(e){const t=[],n=[];return e.forEach(((e,s)=>{n.push(this.reader(e).then((e=>this.parser(e))).then((e=>{t[s]=e})))})),Promise.all(n).then((()=>Object.assign({},...t)))}}},"./src/js/cfg-loader/cfg-reader-fetch.js":function(e,t,n){n("./node_modules/core-js/modules/es.promise.js"),e.exports=function(e){return fetch(e,{cache:"no-store"}).then((e=>e.ok?e.text():""))}},"./src/js/helpers-html/i18n.js":function(e,t,n){function s(){return IMAGINARY.i18n.getLang()}function o(e){return IMAGINARY.i18n.setLang(e).then((()=>{$("[data-i18n-text]").each(((e,t)=>{$(t).html(IMAGINARY.i18n.t($(t).data("i18n-text")))}))}))}n("./node_modules/core-js/modules/es.array.iterator.js"),n("./node_modules/core-js/modules/es.promise.js"),n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),e.exports={init:function(e,t){return IMAGINARY.i18n.init({queryStringVariable:"lang",translationsDirectory:"tr",defaultLanguage:"en"}).then((()=>{const t=Object.keys(e.languages);return Promise.all(t.map((e=>IMAGINARY.i18n.loadLang(e))))})).then((()=>o(t)))},getLanguage:s,setLanguage:o,refresh:function(){o(s())}}},"./src/js/helpers-html/object-store.js":function(e,t,n){n("./node_modules/core-js/modules/es.promise.js"),n("./node_modules/core-js/modules/es.array.iterator.js"),n("./node_modules/core-js/modules/es.object.from-entries.js"),n("./node_modules/core-js/modules/es.array.reverse.js");e.exports=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.fixedObjects=[],this.userObjects=[],this.loadUserObjects(),e&&this.loadFixedObjects(e)}async loadFixedObjects(e){fetch(e,{cache:"no-store"}).then((e=>e.json())).then((e=>{this.fixedObjects=e.mazes}))}loadUserObjects(){try{const e=JSON.parse(localStorage.getItem("reinforcementLearning2.mazeStore.mazes"));e&&(this.userObjects=e)}catch(e){console.error("Unable to access local storage ".concat(e))}}saveLocal(){try{localStorage.setItem("reinforcementLearning2.mazeStore.mazes",JSON.stringify(this.userObjects))}catch(e){console.error("Unable to access local storage ".concat(e))}}getAllObjects(){return{...this.getAllUserObjects(),...this.getAllFixedObjects()}}getAllFixedObjects(){return Object.fromEntries(this.fixedObjects.map(((e,t)=>["F".concat(t),e])))}getAllUserObjects(){return Object.fromEntries(this.userObjects.map(((e,t)=>["L".concat(t),e])).reverse())}get(e){return"F"===e[0]?this.fixedObjects[e.substr(1)]:this.userObjects[e.substr(1)]}set(e,t){null===e||void 0===this.userObjects[e.substr(1)]?this.userObjects.push(t):this.userObjects[e.substr(1)]=t,this.saveLocal()}}},"./src/js/helpers-html/show-fatal-error.js":function(e){e.exports=function(e,t){$("
").addClass("fatal-error").append($("").addClass("fatal-error-text").html(e)).append($("").addClass("fatal-error-details").html(t.message)).appendTo("body"),$("html").addClass("with-fatal-error")}},"./src/js/helpers-pixi/pixi-helpers.js":function(e,t,n){"use strict";function s(e,t,n){const s=e.getBoundingClientRect();return[t*(s.width/e.width)+s.left,n*(s.height/e.height)+s.top]}n.r(t),n.d(t,{screenCoordinates:function(){return s}})},"./src/js/helpers/array-2d.js":function(e){class t{static create(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const s=[];for(let o=0;o