You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4 lines
156 KiB
4 lines
156 KiB
10 months ago
|
var UnityLoader=UnityLoader||{Compression:{identity:{require:function(){return{}},decompress:function(e){return e}},gzip:{require:function(e){var t={"inflate.js":function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(e);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var r=a.inflateInit2(this.strm,t.windowBits);if(r!==l.Z_OK)throw new Error(u[r]);this.header=new f,a.inflateGetHeader(this.strm,this.header)}function o(e,t){var r=new n(t);if(r.push(e,!0),r.err)throw r.msg||u[r.err];return r.result}function i(e,t){return t=t||{},t.raw=!0,o(e,t)}var a=e("./zlib/inflate"),s=e("./utils/common"),d=e("./utils/strings"),l=e("./zlib/constants"),u=e("./zlib/messages"),c=e("./zlib/zstream"),f=e("./zlib/gzheader"),h=Object.prototype.toString;n.prototype.push=function(e,t){var r,n,o,i,u,c,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,w=!1;if(this.ended)return!1;n=t===~~t?t:t===!0?l.Z_FINISH:l.Z_NO_FLUSH,"string"==typeof e?f.input=d.binstring2buf(e):"[object ArrayBuffer]"===h.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new s.Buf8(p),f.next_out=0,f.avail_out=p),r=a.inflate(f,l.Z_NO_FLUSH),r===l.Z_NEED_DICT&&m&&(c="string"==typeof m?d.string2buf(m):"[object ArrayBuffer]"===h.call(m)?new Uint8Array(m):m,r=a.inflateSetDictionary(this.strm,c)),r===l.Z_BUF_ERROR&&w===!0&&(r=l.Z_OK,w=!1),r!==l.Z_STREAM_END&&r!==l.Z_OK)return this.onEnd(r),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&r!==l.Z_STREAM_END&&(0!==f.avail_in||n!==l.Z_FINISH&&n!==l.Z_SYNC_FLUSH)||("string"===this.options.to?(o=d.utf8border(f.output,f.next_out),i=f.next_out-o,u=d.buf2string(f.output,o),f.next_out=i,f.avail_out=p-i,i&&s.arraySet(f.output,f.output,o,i,0),this.onData(u)):this.onData(s.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(w=!0)}while((f.avail_in>0||0===f.avail_out)&&r!==l.Z_STREAM_END);return r===l.Z_STREAM_END&&(n=l.Z_FINISH),n===l.Z_FINISH?(r=a.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===l.Z_OK):n!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),f.avail_out=0,!0)},n.prototype.onData=function(e){this.chunks.push(e)},n.prototype.onEnd=function(e){e===l.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=n,r.inflate=o,r.inflateRaw=i,r.ungzip=o},"utils/common.js":function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,r,n,o){if(t.subarray&&e.subarray)return void e.set(t.subarray(r,r+n),o);for(var i=0;i<n;i++)e[o+i]=t[r+i]},flattenChunks:function(e){var t,r,n,o,i,a;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(a=new Uint8Array(n),o=0,t=0,r=e.length;t<r;t++)i=e[t],a.set(i,o),o+=i.length;return a}},i={arraySet:function(e,t,r,n,o){for(var i=0;i<n;i++)e[o+i]=t[r+i]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,o)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,i))},r.setTyped(n)},"utils/strings.js":function(e,t,r){"use strict";function n(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,o.shrinkBuf(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}var o=e("./comm
|
||
|
n.bit_pos_+=w[g].bits,b=w[g].value,h[y]=b,0!==b&&(p-=32>>b,++m)}if(1!==m&&0!==p)throw new Error("[ReadHuffmanCode] invalid num_codes or space");d(h,e,a,n)}if(i=L(t,r,T,a,e),0===i)throw new Error("[ReadHuffmanCode] BuildHuffmanTable failed: ");return i}function u(e,t,r){var n,o;return n=s(e,t,r),o=M.kBlockLengthPrefixCode[n].nbits,M.kBlockLengthPrefixCode[n].offset+r.readBits(o)}function c(e,t,r){var n;return e<q?(r+=Z[e],r&=3,n=t[r]+Y[e]):n=e-q+1,n}function f(e,t){for(var r=e[t],n=t;n;--n)e[n]=e[n-1];e[0]=r}function h(e,t){var r,n=new Uint8Array(256);for(r=0;r<256;++r)n[r]=r;for(r=0;r<t;++r){var o=e[r];e[r]=n[o],o&&f(n,o)}}function p(e,t){this.alphabet_size=e,this.num_htrees=t,this.codes=new Array(t+t*G[e+31>>>5]),this.htrees=new Uint32Array(t)}function m(e,t){var r,n,i,a={num_htrees:null,context_map:null},d=0;t.readMoreInput();var u=a.num_htrees=o(t)+1,c=a.context_map=new Uint8Array(e);if(u<=1)return a;for(r=t.readBits(1),r&&(d=t.readBits(4)+1),n=[],i=0;i<F;i++)n[i]=new B(0,0);for(l(u+d,n,0,t),i=0;i<e;){var f;if(t.readMoreInput(),f=s(n,0,t),0===f)c[i]=0,++i;else if(f<=d)for(var p=1+(1<<f)+t.readBits(f);--p;){if(i>=e)throw new Error("[DecodeContextMap] i >= context_map_size");c[i]=0,++i}else c[i]=f-d,++i}return t.readBits(1)&&h(c,e),a}function w(e,t,r,n,o,i,a){var d,l=2*r,u=r,c=s(t,r*F,a);d=0===c?o[l+(1&i[u])]:1===c?o[l+(i[u]-1&1)]+1:c-2,d>=e&&(d-=e),n[r]=d,o[l+(1&i[u])]=d,++i[u]}function b(e,t,r,n,o,i){var a,s=o+1,d=r&o,l=i.pos_&E.IBUF_MASK;if(t<8||i.bit_pos_+(t<<3)<i.bit_end_pos_)for(;t-- >0;)i.readMoreInput(),n[d++]=i.readBits(8),d===s&&(e.write(n,s),d=0);else{if(i.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;i.bit_pos_<32;)n[d]=i.val_>>>i.bit_pos_,i.bit_pos_+=8,++d,--t;if(a=i.bit_end_pos_-i.bit_pos_>>3,l+a>E.IBUF_MASK){for(var u=E.IBUF_MASK+1-l,c=0;c<u;c++)n[d+c]=i.buf_[l+c];a-=u,d+=u,t-=u,l=0}for(var c=0;c<a;c++)n[d+c]=i.buf_[l+c];if(d+=a,t-=a,d>=s){e.write(n,s),d-=s;for(var c=0;c<d;c++)n[c]=n[s+c]}for(;d+t>=s;){if(a=s-d,i.input_.read(n,d,a)<a)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");e.write(n,s),t-=a,d=0}if(i.input_.read(n,d,t)<t)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");i.reset()}}function y(e){var t=e.bit_pos_+7&-8,r=e.readBits(t-e.bit_pos_);return 0==r}function g(e){var t=new U(e),r=new E(t);n(r);var o=a(r);return o.meta_block_length}function v(e,t){var r=new U(e);null==t&&(t=g(e));var n=new Uint8Array(t),o=new x(n);return A(r,o),o.pos<o.buffer.length&&(o.buffer=o.buffer.subarray(0,o.pos)),o.buffer}function A(e,t){var r,i,d,f,h,g,v,A,U,x=0,L=0,N=0,R=0,T=[16,15,11,4],D=0,z=0,V=0,Z=[new p(0,0),new p(0,0),new p(0,0)];const Y=128+E.READ_SIZE;U=new E(e),N=n(U),i=(1<<N)-16,d=1<<N,f=d-1,h=new Uint8Array(d+Y+k.maxDictionaryWordLength),g=d,v=[],A=[];for(var G=0;G<3240;G++)v[G]=new B(0,0),A[G]=new B(0,0);for(;!L;){var J,j,X,K,Q,_,$,ee,te,re=0,ne=[1<<28,1<<28,1<<28],oe=[0],ie=[1,1,1],ae=[0,1,0,1,0,1],se=[0],de=null,le=null,ue=null,ce=0,fe=null,he=0,pe=0,me=null,we=0,be=0,ye=0;for(r=0;r<3;++r)Z[r].codes=null,Z[r].htrees=null;U.readMoreInput();var ge=a(U);if(re=ge.meta_block_length,x+re>t.buffer.length){var ve=new Uint8Array(x+re);ve.set(t.buffer),t.buffer=ve}if(L=ge.input_end,J=ge.is_uncompressed,ge.is_metadata)for(y(U);re>0;--re)U.readMoreInput(),U.readBits(8);else if(0!==re)if(J)U.bit_pos_=U.bit_pos_+7&-8,b(t,re,x,h,f,U),x+=re;else{for(r=0;r<3;++r)ie[r]=o(U)+1,ie[r]>=2&&(l(ie[r]+2,v,r*F,U),l(I,A,r*F,U),ne[r]=u(A,r*F,U),se[r]=1);for(U.readMoreInput(),j=U.readBits(2),X=q+(U.readBits(4)<<j),K=(1<<j)-1,Q=X+(48<<j),le=new Uint8Array(ie[0]),r=0;r<ie[0];++r)U.readMoreInput(),le[r]=U.readBits(2)<<1;var Ae=m(ie[0]<<S,U);_=Ae.num_htrees,de=Ae.context_map;var Ue=m(ie[2]<<P,U);for($=Ue.num_htrees,ue=Ue.context_map,Z[0]=new p(C,_),Z[1]=new p(H,ie[1]),Z[2]=new p(Q,$),r=0;r<3;++r)Z[r].decode(U);for(fe=0,me=0,ee=le[oe[0]],be=W.lookupOffsets[ee],ye=W.lookupOffsets[ee+1],te=Z[1].htrees[0];re>0;){var xe,Ee,ke,Be,Le,We,Me,Oe,Ne,Re,Ce;for(U.readMoreInput(),0===ne[1]&&(w(ie[1],v,1,oe,ae,se,U),ne[1]=u(A,F,U),te=Z[1].htrees[oe[1]]),--ne[1],xe=s(
|
||
|
},"dec/dictionary-browser.js":function(e,t,r){var n=e("base64-js");r.init=function(){var t=e("./decode").BrotliDecompressBuffer,r=n.toByteArray(e("./dictionary.bin.js"));return t(r)}},"dec/huffman.js":function(e,t,r){function n(e,t){this.bits=e,this.value=t}function o(e,t){for(var r=1<<t-1;e&r;)r>>=1;return(e&r-1)+r}function i(e,t,r,o,i){do o-=r,e[t+o]=new n(i.bits,i.value);while(o>0)}function a(e,t,r){for(var n=1<<t-r;t<s&&(n-=e[t],!(n<=0));)++t,n<<=1;return t-r}r.HuffmanCode=n;const s=15;r.BrotliBuildHuffmanTable=function(e,t,r,d,l){var u,c,f,h,p,m,w,b,y,g,v,A=t,U=new Int32Array(16),x=new Int32Array(16);for(v=new Int32Array(l),f=0;f<l;f++)U[d[f]]++;for(x[1]=0,c=1;c<s;c++)x[c+1]=x[c]+U[c];for(f=0;f<l;f++)0!==d[f]&&(v[x[d[f]]++]=f);if(b=r,y=1<<b,g=y,1===x[s]){for(h=0;h<g;++h)e[t+h]=new n(0,65535&v[0]);return g}for(h=0,f=0,c=1,p=2;c<=r;++c,p<<=1)for(;U[c]>0;--U[c])u=new n(255&c,65535&v[f++]),i(e,t+h,p,y,u),h=o(h,c);for(w=g-1,m=-1,c=r+1,p=2;c<=s;++c,p<<=1)for(;U[c]>0;--U[c])(h&w)!==m&&(t+=y,b=a(U,c,r),y=1<<b,g+=y,m=h&w,e[A+m]=new n(b+r&255,t-A-m&65535)),u=new n(c-r&255,65535&v[f++]),i(e,t+(h>>r),p,y,u),h=o(h,c);return g}},"dec/prefix.js":function(e,t,r){function n(e,t){this.offset=e,this.nbits=t}r.kBlockLengthPrefixCode=[new n(1,2),new n(5,2),new n(9,2),new n(13,2),new n(17,3),new n(25,3),new n(33,3),new n(41,3),new n(49,4),new n(65,4),new n(81,4),new n(97,4),new n(113,5),new n(145,5),new n(177,5),new n(209,5),new n(241,6),new n(305,6),new n(369,7),new n(497,8),new n(753,9),new n(1265,10),new n(2289,11),new n(4337,12),new n(8433,13),new n(16625,24)],r.kInsertLengthPrefixCode=[new n(0,0),new n(1,0),new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,1),new n(8,1),new n(10,2),new n(14,2),new n(18,3),new n(26,3),new n(34,4),new n(50,4),new n(66,5),new n(98,5),new n(130,6),new n(194,7),new n(322,8),new n(578,9),new n(1090,10),new n(2114,12),new n(6210,14),new n(22594,24)],r.kCopyLengthPrefixCode=[new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,0),new n(7,0),new n(8,0),new n(9,0),new n(10,1),new n(12,1),new n(14,2),new n(18,2),new n(22,3),new n(30,3),new n(38,4),new n(54,4),new n(70,5),new n(102,5),new n(134,6),new n(198,7),new n(326,8),new n(582,9),new n(1094,10),new n(2118,24)],r.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],r.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},"dec/streams.js":function(e,t,r){function n(e){this.buffer=e,this.pos=0}function o(e){this.buffer=e,this.pos=0}n.prototype.read=function(e,t,r){this.pos+r>this.buffer.length&&(r=this.buffer.length-this.pos);for(var n=0;n<r;n++)e[t+n]=this.buffer[this.pos+n];return this.pos+=r,r},r.BrotliInput=n,o.prototype.write=function(e,t){if(this.pos+t>this.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(e.subarray(0,t),this.pos),this.pos+=t,t},r.BrotliOutput=o},"dec/transform.js":function(e,t,r){function n(e,t,r){this.prefix=new Uint8Array(e.length),this.transform=t,this.suffix=new Uint8Array(r.length);for(var n=0;n<e.length;n++)this.prefix[n]=e.charCodeAt(n);for(var n=0;n<r.length;n++)this.suffix[n]=r.charCodeAt(n)}function o(e,t){return e[t]<192?(e[t]>=97&&e[t]<=122&&(e[t]^=32),1):e[t]<224?(e[t+1]^=32,2):(e[t+2]^=5,3)}var i=e("./dictionary");const a=0,s=1,d=2,l=3,u=4,c=5,f=6,h=7,p=8,m=9,w=10,b=11,y=12,g=13,v=14,A=15,U=16,x=17,E=18,k=20;var B=[new n("",a,""),new n("",a," "),new n(" ",a," "),new n("",y,""),new n("",w," "),new n("",a," the "),new n(" ",a,""),new n("s ",a," "),new n("",a," of "),new n("",w,""),new n("",a," and "),new n("",g,""),new n("",s,""),new n(", ",a," "),new n("",a,", "),new n(" ",w," "),new n("",a," in "),new n("",a," to "),new n("e ",a," "),new n("",a,'"'),new n("",a,"."),new n("",a,'">'),new n("",a,"\n"),new n("",l,""),new n("",a,"]"),new n("",a," for "),new n("",v,""),new n("",d,""),new n("",a," a "),new n("",a," that "),new n(" ",w,""),new n("",a,". "),new n(".",a,""),new n(" ",a,", "),new n("",A,""),new n("",a," with "),new n("",a,"'"),new n("",a," from "),new n("",a," by "),new n("",U,""),new n("",x,""),new n(" the ",a,""),new n("",u,""),new n("",a,". The "),new n("",b,""),new n("",a," on "),new n("",a," as "),
|
||
|
width:screen.width?screen.width:0,height:screen.height?screen.height:0,browser:a,browserVersion:s,mobile:l,os:u,osVersion:p,gpu:function(){var e=document.createElement("canvas"),t=e.getContext("experimental-webgl");if(t){var r=t.getExtension("WEBGL_debug_renderer_info");if(r)return t.getParameter(r.UNMASKED_RENDERER_WEBGL)}return n}(),language:window.navigator.userLanguage||window.navigator.language,hasWebGL:function(){if(!window.WebGLRenderingContext)return 0;var e=document.createElement("canvas"),t=e.getContext("webgl2");return t?2:(t=e.getContext("experimental-webgl2"),t?2:(t=e.getContext("webgl"),t||(t=e.getContext("experimental-webgl"))?1:0))}(),hasCursorLock:function(){var e=document.createElement("canvas");return e.requestPointerLock||e.mozRequestPointerLock||e.webkitRequestPointerLock||e.msRequestPointerLock?1:0}(),hasFullscreen:function(){var e=document.createElement("canvas");return(e.requestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen||e.webkitRequestFullScreen)&&(a.indexOf("Safari")==-1||s>=10.1)?1:0}(),hasThreads:"undefined"!=typeof SharedArrayBuffer,hasWasm:"object"==typeof WebAssembly&&"function"==typeof WebAssembly.validate&&"function"==typeof WebAssembly.compile,hasWasmThreads:function(){if("object"!=typeof WebAssembly)return!1;if("undefined"==typeof SharedArrayBuffer)return!1;var e=new WebAssembly.Memory({initial:1,maximum:1,shared:!0}),t=e.buffer instanceof SharedArrayBuffer;return delete e,t}()}}(),compatibilityCheck:function(e,t,r){UnityLoader.SystemInfo.hasWebGL?UnityLoader.SystemInfo.mobile?e.popup("Please note that Unity WebGL is not currently supported on mobiles. Press OK if you wish to continue anyway.",[{text:"OK",callback:t}]):["Edge","Firefox","Chrome","Safari"].indexOf(UnityLoader.SystemInfo.browser)==-1?e.popup("Please note that your browser is not currently supported for this Unity WebGL content. Press OK if you wish to continue anyway.",[{text:"OK",callback:t}]):t():e.popup("Your browser does not support WebGL",[{text:"OK",callback:r}])},buildCompatibilityCheck:function(e,t,r){function n(){if("undefined"==typeof e.graphicsAPI)return!0;for(var t=0;t<e.graphicsAPI.length;t++){var r=e.graphicsAPI[t];if("WebGL 2.0"==r&&2==UnityLoader.SystemInfo.hasWebGL)return!0;if("WebGL 1.0"==r&&UnityLoader.SystemInfo.hasWebGL>=1)return!0;e.print("Warning: Unsupported graphics API "+r)}return!1}n()?!UnityLoader.SystemInfo.hasThreads&&e.multithreading?r("Your browser does not support multithreading."):t():r("Your browser does not support any of the required graphics API for this content.")},Blobs:{},loadCode:function(e,t,r,n){var o=[].slice.call(UnityLoader.Cryptography.md5(t)).map(function(e){return("0"+e.toString(16)).substr(-2)}).join(""),i=document.createElement("script"),a=(n.isModularized?function(e){return new Blob([e],{type:"application/javascript"})}:function(e,t){return new Blob(['UnityLoader["'+t+'"]=',e],{type:"text/javascript"})})(t,o),s=URL.createObjectURL(a);UnityLoader.Blobs[s]=n,e.deinitializers.push(function(){delete UnityLoader.Blobs[s],delete UnityLoader[o],document.body.removeChild(document.getElementById(o))}),i.src=s,i.id=o,i.onload=function(){e.developmentBuild||URL.revokeObjectURL(s),r(o,a),delete i.onload},document.body.appendChild(i)},setupIndexedDBJob:function(e,t){function r(n){r.called||(r.called=!0,e.indexedDB=n,t.complete())}try{var n=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,o=n.open("/idbfs-test");o.onerror=function(e){e.preventDefault(),r()},o.onsuccess=function(){o.result.close(),r(n)}}catch(e){r()}},processWasmCodeJob:function(e,t){e.wasmBinary=UnityLoader.Job.result(e,"downloadWasmCode"),t.complete()},processWasmFrameworkJob:function(e,t){var r=UnityLoader.Job.result(e,"downloadWasmFramework");UnityLoader.loadCode(e,r,function(r,n){e.mainScriptUrlOrBlob=n,e.isModularized&&(UnityLoader[r]=UnityModule),UnityLoader[r](e),t.complete()},{Module:e,url:e.wasmFrameworkUrl,isModularized:e.isModularized})},processAsmCodeJob:function(e,t){var r=UnityLoader.Job.result(e,"downloadAsmCode");UnityLoader.loadCode(e,Math.fround?r:Uni
|