Файловый менеджер - Редактировать - /home/jogoso94/public_html/jogos/freecell_xp/dmloader.js
�азад
var FileLoader={options:{retryCount:4,retryInterval:1e3},request:function(e,i,s,a){if(void 0===i)throw"No method specified";if("responseType"==typeof i)throw"No responseType specified";void 0===a&&(a=0);var d={send:function(){var n=this.onprogress,o=this.onload,t=this.onerror,r=new XMLHttpRequest;r.open(i,e,!0),r.responseType=s,r.onprogress=function(e){n&&n(r,e)},r.onerror=function(e){a==FileLoader.options.retryCount?t&&t(r,e):(a+=1,setTimeout(d.send.bind(d),FileLoader.options.retryInterval))},r.onload=function(e){o&&o(r,e)},r.send(null)}};return d},size:function(e,t){var n=FileLoader.request(e,"HEAD","text");n.onerror=function(e,n){t(void 0)},n.onload=function(e,n){var o;4===e.readyState&&(200===e.status?(o=e.getResponseHeader("content-length"),t(o)):t(void 0))},n.send()},load:function(t,r,i,s,a,d){var e=FileLoader.request(t,"GET",r);e.onprogress=function(e,n){var o;n.lengthComputable?s(n.loaded,n.total):(o=e.getResponseHeader("content-length"),s(n.loaded,(null!=o?o:i)||n.loaded))},e.onerror=function(e,n){a("Error loading '"+t+"' ("+n+")")},e.onload=function(e,n){var o;4===e.readyState&&(200===e.status?(o=e.response,d("json"==r&&"string"==typeof o?JSON.parse(o):o)):a("Error loading '"+t+"' ("+n+")"))},e.send()}},EngineLoader={wasm_size:2e6,wasmjs_size:25e4,asmjs_size:4e6,stream_wasm:!1,loadAndInstantiateWasmAsync:function(e,o,t,n){FileLoader.load(e,"arraybuffer",EngineLoader.wasm_size,function(e,n){Progress.calculateProgress(o,t,e,n)},function(e){throw e},function(o){Module.instantiateWasm=function(e,n){WebAssembly.instantiate(new Uint8Array(o),e).then(function(e){n(e.instance)}).catch(function(e){throw console.log("wasm instantiation failed! "+e),e});return{}},n()})},setupWasmStreamAsync:async function(o,i,s){var t=fetch;"function"==typeof TransformStream&&ReadableStream.prototype.pipeThrough&&(t=async function(e){var n=await fetch(e),o=(o=n.headers.get("Content-Length"))||EngineLoader.wasm_size;const t=parseInt(o,10);let r=0;return o=new TransformStream({transform(e,n){r+=e.byteLength,Progress.calculateProgress(i,s,r,t),n.enqueue(e)}}),new Response(n.body.pipeThrough(o),n)}),Module.instantiateWasm=function(e,n){return WebAssembly.instantiateStreaming(t(o),e).then(function(e){Progress.calculateProgress(i,s,1,1),n(e.instance)}).catch(function(e){throw console.log("wasm streaming instantiation failed! "+e),e}),{}}},loadWasmAsync:function(e){EngineLoader.stream_wasm&&"function"==typeof WebAssembly.instantiateStreaming?(EngineLoader.setupWasmStreamAsync(e+".wasm",10,50),EngineLoader.loadAndRunScriptAsync(e+"_wasm.js",EngineLoader.wasmjs_size,0,10)):EngineLoader.loadAndInstantiateWasmAsync(e+".wasm",0,40,function(){EngineLoader.loadAndRunScriptAsync(e+"_wasm.js",EngineLoader.wasmjs_size,40,50)})},loadAsmJsAsync:function(e){EngineLoader.loadAndRunScriptAsync(e+"_asmjs.js",EngineLoader.asmjs_size,0,50)},loadAndRunScriptAsync:function(e,n,o,t){FileLoader.load(e,"text",n,function(e,n){Progress.calculateProgress(o,t,e,n)},function(e){throw e},function(e){var n=document.createElement("script");n.text=e,document.body.appendChild(n)})},load:function(e,n){Progress.addProgress(Module.setupCanvas(e)),Module.isWASMSupported?EngineLoader.loadWasmAsync(n):EngineLoader.loadAsmJsAsync(n)}},GameArchiveLoader={_files:[],_fileIndex:0,isCompleted:!1,_onFileLoadedListeners:[],_onArchiveLoadedListeners:[],_onFileDownloadErrorListeners:[],_currentDownloadBytes:0,_totalDownloadBytes:0,_archiveLocationFilter:function(e){return"split"+e},cleanUp:function(){this._files=[],this._fileIndex=0,this.isCompleted=!1,this._onGameArchiveLoaderCompletedListeners=[],this._onAllTargetsBuiltListeners=[],this._onFileDownloadErrorListeners=[],this._currentDownloadBytes=0,this._totalDownloadBytes=0},addListener:function(e,n){if("function"!=typeof n)throw"Invalid callback registration";e.push(n)},notifyListeners:function(e,n){for(i=0;i<e.length;++i)e[i](n)},addFileDownloadErrorListener:function(e){this.addListener(this._onFileDownloadErrorListeners,e)},notifyFileDownloadError:function(e){this.notifyListeners(this._onFileDownloadErrorListeners,e)},addFileLoadedListener:function(e){this.addListener(this._onFileLoadedListeners,e)},notifyFileLoaded:function(e){this.notifyListeners(this._onFileLoadedListeners,{name:e.name,data:e.data})},addArchiveLoadedListener:function(e){this.addListener(this._onArchiveLoadedListeners,e)},notifyArchiveLoaded:function(){this.notifyListeners(this._onArchiveLoadedListeners)},setFileLocationFilter:function(e){if("function"!=typeof e)throw"Invalid filter";this._archiveLocationFilter=e},loadArchiveDescription:function(n){FileLoader.load(this._archiveLocationFilter(n),"json",void 0,function(e,n){},function(e){GameArchiveLoader.notifyFileDownloadError(n)},function(e){GameArchiveLoader.onReceiveDescription(e)})},onReceiveDescription:function(e){this._files=e.content,this._totalDownloadBytes=0;for(var n=this._currentDownloadBytes=0;n<this._files.length;++n)this._totalDownloadBytes+=this._files[n].size;this.downloadContent()},downloadContent:function(){var e=this._files[this._fileIndex],n=(1<e.pieces.length&&(e.data=new Uint8Array(e.size)),e.pieces.length);void 0!==this.MAX_CONCURRENT_XHR&&(n=Math.min(n,this.MAX_CONCURRENT_XHR));for(var o=0;o<n;++o)this.downloadPiece(e,o)},notifyDownloadProgress:function(){Progress.calculateProgress(50,100,this._currentDownloadBytes,this._totalDownloadBytes)},downloadPiece:function(n,e){if(e<n.lastRequestedPiece)throw"Request out of order";var o=n.pieces[e],t=(n.lastRequestedPiece=e,n.totalLoadedPieces=0,0),r=this._archiveLocationFilter("/"+o.name);FileLoader.load(r,"arraybuffer",void 0,function(e,n){var o=e-t;t=e,GameArchiveLoader._currentDownloadBytes+=o,GameArchiveLoader.notifyDownloadProgress()},function(e){GameArchiveLoader.notifyFileDownloadError(e)},function(e){o.data=new Uint8Array(e),o.dataLength=o.data.length,o.dataLength,t=o.dataLength,GameArchiveLoader.onPieceLoaded(n,o),GameArchiveLoader.notifyDownloadProgress(),o.data=void 0})},addPieceToFile:function(e,n){if(1==e.pieces.length)e.data=n.data;else{var o=n.offset,t=o+n.data.length;if(o<0)throw"Buffer underflow";if(t>e.data.length)throw"Buffer overflow";e.data.set(n.data,n.offset)}},onPieceLoaded:function(e,n){var o;this.addPieceToFile(e,n),++e.totalLoadedPieces,e.totalLoadedPieces==e.pieces.length?this.onFileLoaded(e):(o=e.lastRequestedPiece+1)<e.pieces.length&&this.downloadPiece(e,o)},verifyFile:function(e){for(var n=0,o=0;o<e.pieces.length;++o)n+=e.pieces[o].dataLength;if(n!=e.size)throw"Unexpected data size";if(1<e.pieces.length){e.data;for(var t=e.pieces,o=0;o<t.length;++o){var r=t[o],i=r.offset,r=i+r.dataLength;if(0<o){var s=t[o-1];if(s.offset+s.dataLength>i)throw"Segment underflow"}if(t.length-2>o)if(r>t[o+1].offset)throw"Segment overflow"}}},onFileLoaded:function(e){this.verifyFile(e),this.notifyFileLoaded(e),++this._fileIndex,this._fileIndex==this._files.length?this.onArchiveLoaded():this.downloadContent()},onArchiveLoaded:function(){this.isCompleted=!0,this.notifyArchiveLoaded()}},Progress={progress_id:"defold-progress",bar_id:"defold-progress-bar",listeners:[],addListener:function(e){if("function"!=typeof e)throw"Invalid callback registration";this.listeners.push(e)},notifyListeners:function(e){for(i=0;i<this.listeners.length;++i)this.listeners[i](e)},addProgress:function(e){e.insertAdjacentHTML("afterend",'<div id="'+Progress.progress_id+'" class="canvas-app-progress"><div id="'+Progress.bar_id+'" class="canvas-app-progress-bar" style="width: 0%;"></div></div>'),Progress.bar=document.getElementById(Progress.bar_id),Progress.progress=document.getElementById(Progress.progress_id)},updateProgress:function(e){Progress.bar&&(Progress.bar.style.width=Math.min(e,100)+"%"),Progress.notifyListeners(e)},calculateProgress:function(e,n,o,t){this.updateProgress(e+o/t*(n-e))},removeProgress:function(){null!==Progress.progress.parentElement&&(Progress.progress.parentElement.removeChild(Progress.progress),Module.canvas.style.background="")}},Module={noInitialRun:!0,_filesToPreload:[],_archiveLoaded:!1,_preLoadDone:!1,_waitingForArchive:!1,persistentStorage:!0,_syncInProgress:!1,_syncNeeded:!1,_syncInitial:!1,_syncMaxTries:3,_syncTries:0,arguments:[],print:function(e){console.log(e)},printErr:function(e){console.error(e)},setStatus:function(e){console.log(e)},isWASMSupported:function(){try{if("object"==typeof WebAssembly&&"function"==typeof WebAssembly.instantiate){var e=new WebAssembly.Module(Uint8Array.of(0,97,115,109,1,0,0,0));if(e instanceof WebAssembly.Module)return new WebAssembly.Instance(e)instanceof WebAssembly.Instance}}catch(e){}return!1}(),prepareErrorObject:function(e,n,o,t,r){var i=(n=void 0===n?"":n)+":"+(o=void 0===o?0:o)+":"+(t=void 0===t?0:t),s=r||(void 0!==window.event?window.event.error:"")||e||"Undefined Error",a="",d="",s=("object"==typeof s&&void 0!==s.stack&&void 0!==s.message?(d=String(s.stack),a=String(s.message)):(a=(d=String(s).split("\n")).shift(),d=d.join("\n")),d=d||i,/at (\S+:\d*$)/.exec(a));return s&&(a=a.replace(/(at \S+:\d*$)/,""),d=s[1]+"\n"+d),a=a.replace(/(abort\(.+\)) at .+/,"$1"),{stack:d=(d=(d=(d=(d=d.replace(/\?{1}\S+(:\d+:\d+)/g,"$1")).replace(/ *at (\S+)$/gm,"@$1")).replace(/ *at (\S+)(?: \[as \S+\])? +\((.+)\)/g,"$1@$2")).replace(/^((?:Object|Array)\.)/gm,"")).split("\n"),message:a}},hasWebGLSupport:function(){var n=!1;try{var e=document.createElement("canvas"),o=e.getContext("webgl")||e.getContext("experimental-webgl");o&&o instanceof WebGLRenderingContext&&(n=!0)}catch(e){console.log("An error occurred while detecting WebGL support: "+e),n=!1}return n},setupCanvas:function(e){return e=void 0===e?"canvas":e,Module.canvas=document.getElementById(e),Module.canvas},runApp:function(e,n){Module.setupCanvas(e);var o,t={archive_location_filter:function(e){return"split"+e},unsupported_webgl_callback:void 0,engine_arguments:[],persistent_storage:!0,custom_heap_size:void 0,disable_context_menu:!0,retry_time:1,retry_count:10,can_not_download_file_callback:void 0};for(o in n)n.hasOwnProperty(o)&&(t[o]=n[o]);Module.arguments=t.engine_arguments,Module.persistentStorage=t.persistent_storage;var r=t.full_screen_container;"string"==typeof r&&(r=document.querySelector(r)),Module.fullScreenContainer=r||Module.canvas,Module.hasWebGLSupport()?(Module.canvas.focus(),t.disable_context_menu&&(Module.canvas.oncontextmenu=function(e){e.preventDefault()}),FileLoader.options.retryCount=t.retry_count,FileLoader.options.retryInterval=1e3*t.retry_time,"function"==typeof t.can_not_download_file_callback&&GameArchiveLoader.addFileDownloadErrorListener(t.can_not_download_file_callback),GameArchiveLoader.addFileLoadedListener(Module.onArchiveFileLoaded),GameArchiveLoader.addArchiveLoadedListener(Module.onArchiveLoaded),GameArchiveLoader.setFileLocationFilter(t.archive_location_filter),GameArchiveLoader.loadArchiveDescription("/archive_files.json")):(Progress.updateProgress(100,"Unable to start game, WebGL not supported"),Module.setStatus=function(e){e&&Module.printErr("[missing WebGL] "+e)},"function"==typeof t.unsupported_webgl_callback&&t.unsupported_webgl_callback())},onArchiveFileLoaded:function(e){Module._filesToPreload.push({path:e.name,data:e.data})},onArchiveLoaded:function(){GameArchiveLoader.cleanUp(),Module._archiveLoaded=!0,Progress.updateProgress(100,"Starting..."),Module._waitingForArchive&&Module._preloadAndCallMain()},toggleFullscreen:function(e){GLFW.isFullscreen?GLFW.cancelFullScreen():GLFW.requestFullScreen(e)},preSync:function(n){1!=Module.persistentStorage?(Module._syncInitial=!0,n()):FS.syncfs(!0,function(e){e?(Module._syncTries+=1,console.warn("Unable to synchronize mounted file systems: "+e),Module._syncMaxTries>Module._syncTries?Module.preSync(n):(Module._syncInitial=!0,n())):(Module._syncInitial=!0,void 0!==n&&n())})},preloadAll:function(){if(!Module._preLoadDone){Module._preLoadDone=!0;for(var e=0;e<Module._filesToPreload.length;++e){var n=Module._filesToPreload[e];FS.createPreloadedFile("",n.path,n.data,!0,!0)}}},persistentSync:function(){1==Module.persistentStorage&&Module._syncInitial&&(Module._syncInProgress?Module._syncNeeded=!0:Module._startSyncFS())},preInit:[function(){var e=DMSYS.GetUserPersistentDataRoot();try{FS.mkdir(e)}catch(e){return Module.persistentStorage=!1,void Module._preloadAndCallMain()}try{FS.mount(IDBFS,{},e);var o=FS.close;FS.close=function(e){var n=o(e);return Module.persistentSync(),n}}catch(e){return Module.persistentStorage=!1,void Module._preloadAndCallMain()}Module.preSync(function(){Module._preloadAndCallMain()})}],preRun:[function(){Module._archiveLoaded&&Module.preloadAll()}],postRun:[function(){Module._archiveLoaded&&Progress.removeProgress()}],_preloadAndCallMain:function(){Module._archiveLoaded?(Module.preloadAll(),Progress.removeProgress(),void 0===Module.callMain?Module.noInitialRun=!1:Module.callMain(Module.arguments)):Module._waitingForArchive=!0},_startSyncFS:function(){Module._syncInProgress=!0,Module._syncMaxTries>Module._syncTries&&FS.syncfs(!1,function(e){Module._syncInProgress=!1,e&&(console.warn("Unable to synchronize mounted file systems: "+e),Module._syncTries+=1),Module._syncNeeded&&(Module._syncNeeded=!1,Module._startSyncFS())})}};window.onerror=function(e,n,o,t,r){var i;void 0!==Module.ccall&&(i=Module.prepareErrorObject(e,n,o,t,r),Module.ccall("JSWriteDump","null",["string"],[JSON.stringify(i.stack)])),Module.setStatus("Exception thrown, see JavaScript console"),Module.setStatus=function(e){e&&Module.printErr("[post-exception status] "+e)}}; //# sourceMappingURL=dmloader.js.map
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка