@arcgis/core 5.0.0-next.46 → 5.0.0-next.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/108675a17e432a02cf66.js +1 -0
- package/assets/esri/core/workers/chunks/19270a2de33f2662005b.js +1 -0
- package/assets/esri/core/workers/chunks/{c5d6b416baf24e74b9ba.js → 1dfa949cc4f4c18ed4cf.js} +1 -1
- package/assets/esri/core/workers/chunks/404229f10aef5ac23c87.js +1 -0
- package/assets/esri/core/workers/chunks/46b63a65484b102e9ccb.js +1 -0
- package/assets/esri/core/workers/chunks/{9f6c63a580b28ab715bd.js → 5ffeb8fb58d59bad68c3.js} +1 -1
- package/assets/esri/core/workers/chunks/657602e6a84e8b4576fb.js +1 -0
- package/assets/esri/core/workers/chunks/6d3ae7969ea86a2e0b13.js +1 -0
- package/assets/esri/core/workers/chunks/75d8244b725a2aee2003.js +1 -0
- package/assets/esri/core/workers/chunks/{a4f492aa5444e6381063.js → 7d631ebf8f79225cf0f6.js} +1 -1
- package/assets/esri/core/workers/chunks/9319d57494482668ab19.js +1 -0
- package/assets/esri/core/workers/chunks/dae715b2b0094641e42f.js +1 -0
- package/assets/esri/core/workers/chunks/ecb4c223c0278971cdc9.js +1 -0
- package/assets/esri/core/workers/chunks/f92a78ce5510e0d0d0f7.js +1 -0
- package/assets/esri/core/workers/chunks/fa92a7c11befbad8739f.js +1 -0
- package/config.js +1 -1
- package/interfaces.d.ts +57 -57
- package/kernel.js +1 -1
- package/layers/ParquetLayer.js +1 -1
- package/layers/graphics/sources/ParquetSource.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/support/{ParquetEncodingBase.js → ParquetGeometryEncodingBase.js} +1 -1
- package/layers/support/ParquetGeometryEncodingLocation.d.ts +4 -0
- package/layers/support/ParquetGeometryEncodingLocation.js +5 -0
- package/layers/support/ParquetGeometryEncodingWkb.d.ts +4 -0
- package/layers/support/ParquetGeometryEncodingWkb.js +5 -0
- package/layers/support/parquetEncodingUtils.js +1 -1
- package/layers/support/parquetUtils.js +1 -1
- package/libs/parquet/parquet.js +1 -1
- package/package.json +2 -2
- package/support/revision.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillDepth.js +1 -1
- package/views/SelectionManager.js +1 -1
- package/views/support/selectionUtils.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/FeatureForm/TextElementInput.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
- package/widgets/support/Selector2D/selectorUtils.js +1 -1
- package/assets/esri/core/workers/chunks/024104997daea0d74b38.js +0 -1
- package/assets/esri/core/workers/chunks/08ef90e3fcfd4eda4301.js +0 -1
- package/assets/esri/core/workers/chunks/2d3ae187f8aa3495d4ae.js +0 -1
- package/assets/esri/core/workers/chunks/2f8cf7d9ff1f4de19a4c.js +0 -1
- package/assets/esri/core/workers/chunks/338570424337be05cef5.js +0 -1
- package/assets/esri/core/workers/chunks/36130910ba141f34531b.js +0 -1
- package/assets/esri/core/workers/chunks/59889855d23baec1adf9.js +0 -1
- package/assets/esri/core/workers/chunks/8d4cc5f1d07b4aa3aea0.js +0 -1
- package/assets/esri/core/workers/chunks/a00bba1c7cbf8cd7892c.js +0 -1
- package/assets/esri/core/workers/chunks/a34a14fd989dbbd3c2d0.js +0 -1
- package/assets/esri/core/workers/chunks/d0014b4a8c013f59b113.js +0 -1
- package/assets/esri/core/workers/chunks/e6784251bbb8b71ead93.js +0 -1
- package/layers/support/ParquetEncodingLocation.d.ts +0 -4
- package/layers/support/ParquetEncodingLocation.js +0 -5
- package/layers/support/ParquetEncodingWkb.d.ts +0 -4
- package/layers/support/ParquetEncodingWkb.js +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6052],{11053:(r,e,t)=>{t.d(e,{c:()=>n,g:()=>a});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}},96052:(r,e,t)=>{t.d(e,{l:()=>u});var n,a=t(11053),o={exports:{}};const i=(0,a.g)(function(){return n||(n=1,r=o,e="undefined"!=typeof document?document.currentScript?.src:void 0,t=async function(r={}){var t,n=r,a="./this.program",o="";try{o=new URL(".",e).href}catch{}t=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)};var i,u,s,f,l,c,p,v,d,h,g,y,m,w,T=console.log.bind(console),b=console.error.bind(console),A=!1,C=!1;function P(){var r=f.buffer;l=new Int8Array(r),p=new Int16Array(r),n.HEAPU8=c=new Uint8Array(r),v=new Uint16Array(r),d=new Int32Array(r),n.HEAPU32=h=new Uint32Array(r),g=new Float32Array(r),n.HEAPF64=y=new Float64Array(r),m=new BigInt64Array(r),w=new BigUint64Array(r)}var W,E=0,F=null;function _(r){n.onAbort?.(r),b(r="Aborted("+r+")"),A=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw s?.(e),e}async function R(r){if(!i)try{var e=await t(r);return new Uint8Array(e)}catch{}return function(r){if(r==W&&i)return new Uint8Array(i);throw"both async and sync fetching of the wasm failed"}(r)}var x=r=>{for(;r.length>0;)r.shift()(n)},k=[],$=r=>k.push(r),S=[],I=r=>S.push(r);class O{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){h[this.ptr+4>>2]=r}get_type(){return h[this.ptr+4>>2]}set_destructor(r){h[this.ptr+8>>2]=r}get_destructor(){return h[this.ptr+8>>2]}set_caught(r){r=r?1:0,l[this.ptr+12]=r}get_caught(){return 0!=l[this.ptr+12]}set_rethrown(r){r=r?1:0,l[this.ptr+13]=r}get_rethrown(){return 0!=l[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){h[this.ptr+16>>2]=r}get_adjusted_ptr(){return h[this.ptr+16>>2]}}var U={},D=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function M(r){return this.fromWireType(h[r>>2])}var B={},V={},j={},N=class extends Error{constructor(r){super(r),this.name="InternalError"}},L=r=>{throw new N(r)},H=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&L("Mismatched type converter count");for(var a=0;a<r.length;++a)J(r[a],n[a])}r.forEach(r=>j[r]=e);var a=new Array(e.length),o=[],i=0;e.forEach((r,e)=>{V.hasOwnProperty(r)?a[e]=V[r]:(o.push(r),B.hasOwnProperty(r)||(B[r]=[]),B[r].push(()=>{a[e]=V[r],++i===o.length&&n(a)}))}),0===o.length&&n(a)},z={},G=r=>{for(var e="";;){var t=c[r++];if(!t)return e;e+=String.fromCharCode(t)}},Y=class extends Error{constructor(r){super(r),this.name="BindingError"}},q=r=>{throw new Y(r)};function J(r,e,t={}){return function(r,e,t={}){var n=e.name;if(r||q(`type "${n}" must have a positive integer typeid pointer`),V.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;q(`Cannot register type '${n}' twice`)}if(V[r]=e,delete j[r],B.hasOwnProperty(r)){var a=B[r];delete B[r],a.forEach(r=>r())}}(r,e,t)}var K=(r,e,t)=>{switch(e){case 1:return t?r=>l[r]:r=>c[r];case 2:return t?r=>p[r>>1]:r=>v[r>>1];case 4:return t?r=>d[r>>2]:r=>h[r>>2];case 8:return t?r=>m[r>>3]:r=>w[r>>3];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Q=[],X=[0,1,,1,null,1,!0,1,!1,1],Z=r=>{r>9&&0===--X[r+1]&&(X[r]=void 0,Q.push(r))},rr=r=>(r||q(`Cannot use deleted val. handle = ${r}`),X[r]),er=r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Q.pop()||X.length;return X[e]=r,X[e+1]=1,e}}},tr={name:"emscripten::val",fromWireType:r=>{var e=rr(r);return Z(r),e},toWireType:(r,e)=>er(e),argPackAdvance:8,readValueFromPointer:M,destructorFunction:null},nr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(g[r>>2])};case 8:return function(r){return this.fromWireType(y[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}};var ar,or=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||q(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},ir=(r,e,t)=>{n.hasOwnProperty(r)?((void 0===t||void 0!==n[r].overloadTable&&void 0!==n[r].overloadTable[t])&&q(`Cannot register public name '${r}' twice`),or(n,r,r),n[r].overloadTable.hasOwnProperty(t)&&q(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),n[r].overloadTable[t]=e):(n[r]=e,n[r].argCount=t)},ur=(r,e,t)=>{n.hasOwnProperty(r)||L("Replacing nonexistent public symbol"),void 0!==n[r].overloadTable&&void 0!==t?n[r].overloadTable[t]=e:(n[r]=e,n[r].argCount=t)},sr=[],fr=r=>{var e=sr[r];return e||(sr[r]=e=ar.get(r)),e},lr=(r,e,t=!1)=>{r=G(r);var n=fr(e);return"function"!=typeof n&&q(`unknown function pointer with signature ${r}: ${e}`),n};class cr extends Error{}var pr,vr,dr,hr,gr=r=>{var e=vr(r),t=G(e);return hr(e),t},yr=(r,e,t)=>((r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,o=t+n-1,i=0;i<r.length;++i){var u=r.codePointAt(i);if(u<=127){if(t>=o)break;e[t++]=u}else if(u<=2047){if(t+1>=o)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=o)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=o)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u,i++}}return e[t]=0,t-a})(r,c,e,t),mr=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},wr="undefined"!=typeof TextDecoder?new TextDecoder:void 0,Tr=(r,e=0,t=NaN)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&wr)return wr.decode(r.subarray(e,a));for(var o="";e<a;){var i=r[e++];if(128&i){var u=63&r[e++];if(192!=(224&i)){var s=63&r[e++];if((i=224==(240&i)?(15&i)<<12|u<<6|s:(7&i)<<18|u<<12|s<<6|63&r[e++])<65536)o+=String.fromCharCode(i);else{var f=i-65536;o+=String.fromCharCode(55296|f>>10,56320|1023&f)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o},br=(r,e)=>r?Tr(c,r,e):"",Ar="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Cr=(r,e)=>{for(var t=r>>1,n=t+e/2,a=t;!(a>=n)&&v[a];)++a;if(a-t>16&&Ar)return Ar.decode(v.subarray(t,a));for(var o="",i=t;!(i>=n);++i){var u=v[i];if(0==u)break;o+=String.fromCharCode(u)}return o},Pr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,o=0;o<a;++o){var i=r.charCodeAt(o);p[e>>1]=i,e+=2}return p[e>>1]=0,e-n},Wr=r=>2*r.length,Er=(r,e)=>{for(var t="",n=0;!(n>=e/4);n++){var a=d[r+4*n>>2];if(!a)break;t+=String.fromCodePoint(a)}return t},Fr=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,a=n+t-4,o=0;o<r.length;++o){var i=r.codePointAt(o);if(i>65535&&o++,d[e>>2]=i,(e+=4)+4>a)break}return d[e>>2]=0,e-n},_r=r=>{for(var e=0,t=0;t<r.length;++t)r.codePointAt(t)>65535&&t++,e+=4;return e},Rr={},xr=(r,e)=>Math.ceil(r/e)*e,kr=r=>{var e=(r-f.buffer.byteLength+65535)/65536|0;try{return f.grow(e),P(),1}catch(r){}},$r={},Sr=()=>{if(!Sr.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:a||"./this.program"};for(var e in $r)void 0===$r[e]?delete r[e]:r[e]=$r[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);Sr.strings=t}return Sr.strings},Ir=[null,[],[]],Or=(r,e)=>{var t=Ir[r];0===e||10===e?((1===r?T:b)(Tr(t)),t.length=0):t.push(e)},Ur=(r,e)=>{r<128?e.push(r):e.push(r%128|128,r>>7)},Dr=[],Mr=(r,e)=>{ar.set(r,e),sr[r]=ar.get(r)};n.noExitRuntime&&n.noExitRuntime,n.print&&(T=n.print),n.printErr&&(b=n.printErr),n.wasmBinary&&(i=n.wasmBinary),n.arguments&&n.arguments,n.thisProgram&&(a=n.thisProgram),n.addFunction=(r,e)=>{var t=(r=>(pr||(pr=new WeakMap,((r,e)=>{if(pr)for(var t=0;t<0+e;t++){var n=fr(t);n&&pr.set(n,t)}})(0,ar.length)),pr.get(r)||0))(r);if(t)return t;var n=(()=>{if(Dr.length)return Dr.pop();try{ar.grow(1)}catch(r){if(!(r instanceof RangeError))throw r;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return ar.length-1})();try{Mr(n,r)}catch(t){if(!(t instanceof TypeError))throw t;var a=((r,e)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function((r=>{for(var e={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},t={parameters:[],results:"v"==r[0]?[]:[e[r[0]]]},n=1;n<r.length;++n)t.parameters.push(e[r[n]]);return t})(e),r);var t=[1];((r,e)=>{var t=r.slice(0,1),n=r.slice(1),a={i:127,p:127,j:126,f:125,d:124,e:111};for(var o of(e.push(96),Ur(n.length,e),n))e.push(a[o]);"v"==t?e.push(0):e.push(1,a[t])})(e,t);var n=[0,97,115,109,1,0,0,0,1];Ur(t.length,n),n.push(...t),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var a=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(a,{e:{f:r}}).exports.f})(r,e);Mr(n,a)}return pr.set(r,n),n},n.UTF8ToString=br;var Br={c:(r,e,t)=>{throw new O(r).init(e,t),r},y:()=>_(""),l:r=>{var e=U[r];delete U[r];var t=e.elements,n=t.length,a=t.map(r=>r.getterReturnType).concat(t.map(r=>r.setterArgumentType)),o=e.rawConstructor,i=e.rawDestructor;H([r],a,r=>(t.forEach((e,t)=>{var a=r[t],o=e.getter,i=e.getterContext,u=r[t+n],s=e.setter,f=e.setterContext;e.read=r=>a.fromWireType(o(i,r)),e.write=(r,e)=>{var t=[];s(f,r,u.toWireType(t,e)),D(t)}}),[{name:e.name,fromWireType:r=>{for(var e=new Array(n),a=0;a<n;++a)e[a]=t[a].read(r);return i(r),e},toWireType:(r,a)=>{if(n!==a.length)throw new TypeError(`Incorrect number of tuple elements for ${e.name}: expected=${n}, actual=${a.length}`);for(var u=o(),s=0;s<n;++s)t[s].write(u,a[s]);return null!==r&&r.push(i,u),u},argPackAdvance:8,readValueFromPointer:M,destructorFunction:i}]))},o:r=>{var e=z[r];delete z[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map(r=>r.getterReturnType).concat(a.map(r=>r.setterArgumentType));H([r],o,r=>{var o={};return a.forEach((e,t)=>{var n=e.fieldName,i=r[t],u=r[t].optional,s=e.getter,f=e.getterContext,l=r[t+a.length],c=e.setter,p=e.setterContext;o[n]={read:r=>i.fromWireType(s(f,r)),write:(r,e)=>{var t=[];c(p,r,l.toWireType(t,e)),D(t)},optional:u}}),[{name:e.name,fromWireType:r=>{var e={};for(var t in o)e[t]=o[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var a in o)if(!(a in e)&&!o[a].optional)throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,e[a]);return null!==r&&r.push(n,i),i},argPackAdvance:8,readValueFromPointer:M,destructorFunction:n}]})},t:(r,e,t,n,a)=>{e=G(e);const o=0n===n;let i=r=>r;if(o){const r=8*t;i=e=>BigInt.asUintN(r,e),a=i(a)}J(r,{name:e,fromWireType:i,toWireType:(r,e)=>("number"==typeof e&&(e=BigInt(e)),e),argPackAdvance:8,readValueFromPointer:K(e,t,!o),destructorFunction:null})},D:(r,e,t,n)=>{J(r,{name:e=G(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(c[r])},destructorFunction:null})},B:r=>J(r,tr),s:(r,e,t)=>{J(r,{name:e=G(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:nr(e,t),destructorFunction:null})},b:(r,e,t,n,a,o,i,u)=>{var s=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(h[e+4*n>>2]);return t})(e,t);r=(r=>{const e=(r=r.trim()).indexOf("(");return-1===e?r:r.slice(0,e)})(r=G(r)),a=lr(n,a,i),ir(r,function(){((r,e)=>{var t=[],n={};throw e.forEach(function r(e){n[e]||V[e]||(j[e]?j[e].forEach(r):(t.push(e),n[e]=!0))}),new cr(`${r}: `+t.map(gr).join([", "]))})(`Cannot call ${r} due to unbound types`,s)},e-1),H([],s,t=>{var n=[t[0],null].concat(t.slice(1));return ur(r,function(r,e,t,n,a){var o=e.length;o<2&&q("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var i=function(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}(e),u="void"!==e[0].name,s=o-2,f=new Array(s),l=[],c=[];return((r,e)=>Object.defineProperty(e,"name",{value:r}))(r,function(...r){c.length=0,l.length=1,l[0]=a;for(var t=0;t<s;++t)f[t]=e[t+2].toWireType(c,r[t]),l.push(f[t]);return function(r){if(i)D(c);else for(var t=2;t<e.length;t++){var n=1===t?void 0:f[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(u)return e[0].fromWireType(r)}(n(...l))})}(r,n,0,a,o),e-1),[]})},j:(r,e,t,n,a)=>{e=G(e);let o=r=>r;if(0===n){var i=32-8*t;o=r=>r<<i>>>i,a=o(a)}J(r,{name:e,fromWireType:o,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:K(e,t,0!==n),destructorFunction:null})},d:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][e];function a(r){var e=h[r>>2],t=h[r+4>>2];return new n(l.buffer,t,e)}J(r,{name:t=G(t),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},C:(r,e)=>{J(r,{name:e=G(e),fromWireType(r){for(var e,t=h[r>>2],n=r+4,a=n,o=0;o<=t;++o){var i=n+o;if(o==t||0==c[i]){var u=br(a,i-a);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),a=i+1}}return hr(r),e},toWireType(r,e){var t;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT||q("Cannot pass non-string to std::string"),t=n?mr(e):e.length;var a=dr(4+t+1),o=a+4;return h[a>>2]=t,n?yr(e,o,t+1):c.set(e,o),null!==r&&r.push(hr,a),a},argPackAdvance:8,readValueFromPointer:M,destructorFunction(r){hr(r)}})},n:(r,e,t)=>{var n,a,o,i;t=G(t),2===e?(n=Cr,a=Pr,i=Wr,o=r=>v[r>>1]):4===e&&(n=Er,a=Fr,i=_r,o=r=>h[r>>2]),J(r,{name:t,fromWireType:r=>{for(var t,a=h[r>>2],i=r+4,u=0;u<=a;++u){var s=r+4+u*e;if(u==a||0==o(s)){var f=n(i,s-i);void 0===t?t=f:(t+=String.fromCharCode(0),t+=f),i=s+e}}return hr(r),t},toWireType:(r,n)=>{"string"!=typeof n&&q(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),u=dr(4+o+e);return h[u>>2]=o/e,a(n,u+4,o+e),null!==r&&r.push(hr,u),u},argPackAdvance:8,readValueFromPointer:M,destructorFunction(r){hr(r)}})},m:(r,e,t,n,a,o)=>{U[r]={name:G(e),rawConstructor:lr(t,n),rawDestructor:lr(a,o),elements:[]}},f:(r,e,t,n,a,o,i,u,s)=>{U[r].elements.push({getterReturnType:e,getter:lr(t,n),getterContext:a,setterArgumentType:o,setter:lr(i,u),setterContext:s})},p:(r,e,t,n,a,o)=>{z[r]={name:G(e),rawConstructor:lr(t,n),rawDestructor:lr(a,o),fields:[]}},e:(r,e,t,n,a,o,i,u,s,f)=>{z[r].fields.push({fieldName:G(e),getterReturnType:t,getter:lr(n,a),getterContext:o,setterArgumentType:i,setter:lr(u,s),setterContext:f})},u:(r,e)=>{J(r,{isVoid:!0,name:e=G(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},a:Z,r:r=>{r>9&&(X[r+1]+=1)},A:()=>er([]),i:r=>er((r=>{var e=Rr[r];return void 0===e?G(r):e})(r)),k:()=>er({}),g:(r,e,t)=>{r=rr(r),e=rr(e),t=rr(t),r[e]=t},h:(r,e)=>{var t=(r=(r=>{var e=V[r];return void 0===e&&q(`_emval_take_value has unknown type ${gr(r)}`),e})(r)).readValueFromPointer(e);return er(t)},v:(r,e,t,n)=>{var a=(new Date).getFullYear(),o=new Date(a,0,1),i=new Date(a,6,1),u=o.getTimezoneOffset(),s=i.getTimezoneOffset(),f=Math.max(u,s);h[r>>2]=60*f,d[e>>2]=Number(u!=s);var l=r=>{var e=r>=0?"-":"+",t=Math.abs(r);return`UTC${e}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`},c=l(u),p=l(s);s<u?(yr(c,t,17),yr(p,n,17)):(yr(c,n,17),yr(p,t,17))},z:r=>{var e=c.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var a=e*(1+.2/n);a=Math.min(a,r+100663296);var o=Math.min(t,xr(Math.max(r,a),65536));if(kr(o))return!0}return!1},w:(r,e)=>{var t=0,n=0;for(var a of Sr()){var o=e+t;h[r+n>>2]=o,t+=yr(a,o,1/0)+1,n+=4}return 0},x:(r,e)=>{var t=Sr();h[r>>2]=t.length;var n=0;for(var a of t)n+=mr(a)+1;return h[e>>2]=n,0},q:(r,e,t,n)=>{for(var a=0,o=0;o<t;o++){var i=h[e>>2],u=h[e+4>>2];e+=8;for(var s=0;s<u;s++)Or(r,c[i+s]);a+=u}return h[n>>2]=a,0}},Vr=await async function(){function r(r,e){return Vr=r.exports,f=Vr.E,P(),ar=Vr.H,function(r){vr=r.G,n._malloc=dr=r.I,n._free=hr=r.J}(Vr),function(){if(E--,n.monitorRunDependencies?.(E),0==E&&F){var r=F;F=null,r()}}(),Vr}E++,n.monitorRunDependencies?.(E);var e={a:Br};return n.instantiateWasm?new Promise((t,a)=>{n.instantiateWasm(e,(e,n)=>{t(r(e))})}):(W??=function(r){return n.locateFile?n.locateFile(r,o):o+r}("lyr3DMain.wasm"),function(e){return r(e.instance)}(await async function(r,e,t){if(!r&&"function"==typeof WebAssembly.instantiateStreaming)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(r){b(`wasm streaming compile failed: ${r}`),b("falling back to ArrayBuffer instantiation")}return async function(r,e){try{var t=await R(r);return await WebAssembly.instantiate(t,e)}catch(r){b(`failed to asynchronously prepare wasm: ${r}`),_(r)}}(e,t)}(i,W,e)))}();return function(){if(n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.shift()()}(),function r(){function e(){n.calledRun=!0,A||(C=!0,Vr.F(),u?.(n),n.onRuntimeInitialized?.(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)$(n.postRun.shift());x(k)}())}E>0?F=r:(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)I(n.preRun.shift());x(S)}(),E>0?F=r:n.setStatus?(n.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>n.setStatus(""),1),e()},1)):e())}(),C?n:new Promise((r,e)=>{u=r,s=e})},r.exports=t,r.exports.default=t),o.exports;var r,e,t}()),u=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[177],{11053:(e,r,f)=>{f.d(r,{c:()=>i,g:()=>a});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},50177:(e,r,f)=>{f.d(r,{l:()=>u});var i,a,n,t,b=f(11053),o={exports:{}},k=(i||(i=1,a=o,n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,t=function(e={}){var r,f,i=e;i.ready=new Promise((e,i)=>{r=e,f=i});var a=Object.assign({},i),t="object"==typeof window,b="function"==typeof importScripts;"object"==typeof process&&"object"==typeof process.versions&&process.versions.node;var o,k="";(t||b)&&(b?k=self.location.href:"undefined"!=typeof document&&document.currentScript&&(k=document.currentScript.src),n&&(k=n),k=0!==k.indexOf("blob:")?k.substr(0,k.replace(/[?#].*/,"").lastIndexOf("/")+1):"",b&&(o=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var u,c=i.print||console.log.bind(console),s=i.printErr||console.error.bind(console);Object.assign(i,a),a=null,i.arguments&&i.arguments,i.thisProgram&&i.thisProgram,i.quit&&i.quit,i.wasmBinary&&(u=i.wasmBinary);var A,l={Memory:function(e){this.buffer=new ArrayBuffer(65536*e.initial)},Module:function(e){},Instance:function(e,r){this.exports=function(e){for(var r,f=new Uint8Array(123),i=25;i>=0;--i)f[48+i]=52+i,f[65+i]=i,f[97+i]=26+i;function a(e,r,i){for(var a,n,t=0,b=r,o=i.length,k=r+(3*o>>2)-("="==i[o-2])-("="==i[o-1]);t<o;t+=4)a=f[i.charCodeAt(t+1)],n=f[i.charCodeAt(t+2)],e[b++]=f[i.charCodeAt(t)]<<2|a>>4,b<k&&(e[b++]=a<<4|n>>2),b<k&&(e[b++]=n<<6|f[i.charCodeAt(t+3)])}function n(e){a(r,1024,"LSsgICAwWDB4AC0wWCswWCAwWC0weCsweCAweABuYW4AaW5mAE5BTgBJTkYALgAobnVsbCkAR290IGVycm9yICVkCgAlZCAlZCAoJWYsJWYpLCglZiwlZiksKCVmLCVmKSAK"),a(r,1136,"GQAKABkZGQAAAAAFAAAAAAAACQAAAAALAAAAAAAAAAAZABEKGRkZAwoHAAEACQsYAAAJBgsAAAsABhkAAAAZGRk="),a(r,1217,"DgAAAAAAAAAAGQAKDRkZGQANAAACAAkOAAAACQAOAAAO"),a(r,1275,"DA=="),a(r,1287,"EwAAAAATAAAAAAkMAAAAAAAMAAAM"),a(r,1333,"EA=="),a(r,1345,"DwAAAAQPAAAAAAkQAAAAAAAQAAAQ"),a(r,1391,"Eg=="),a(r,1403,"EQAAAAARAAAAAAkSAAAAAAASAAASAAAaAAAAGhoa"),a(r,1458,"GgAAABoaGgAAAAAAAAk="),a(r,1507,"FA=="),a(r,1519,"FwAAAAAXAAAAAAkUAAAAAAAUAAAU"),a(r,1565,"Fg=="),a(r,1577,"FQAAAAAVAAAAAAkWAAAAAAAWAAAWAAAwMTIzNDU2Nzg5QUJDREVG"),a(r,1616,"BQ=="),a(r,1628,"JQ=="),a(r,1652,"JgAAACcAAACYCAAAAAQ="),a(r,1676,"AQ=="),a(r,1692,"/////wo="),a(r,1760,"YI8=")}f[43]=62,f[47]=63;var t=new ArrayBuffer(16),b=new Int32Array(t),o=new Float64Array(t);function k(e){return b[e]}function u(e,r){b[e]=r}function c(){return o[0]}function s(e){o[0]=e}function A(){throw new Error("abort")}return function(e){var f=e.a,i=f.a,a=i.buffer;i.grow=function(e){e|=0;var f=0|He(),n=f+e|0;if(f<n&&n<65536){var k=new ArrayBuffer(y(n,65536));new Int8Array(k).set(t),t=new Int8Array(k),b=new Int16Array(k),o=new Int32Array(k),l=new Uint8Array(k),v=new Uint16Array(k),d=new Uint32Array(k),h=new Float32Array(k),w=new Float64Array(k),a=k,i.buffer=a,r=l}return f};var t=new Int8Array(a),b=new Int16Array(a),o=new Int32Array(a),l=new Uint8Array(a),v=new Uint16Array(a),d=new Uint32Array(a),h=new Float32Array(a),w=new Float64Array(a),y=Math.imul,p=Math.fround,m=Math.abs,g=Math.clz32,C=f.b,E=f.c,R=f.d,I=f.e,M=f.f,S=f.g,P=f.h,_=f.i,U=36704,B=0,F=0;function T(e){var r,f=0,i=0,a=0,n=0,t=0,b=0,k=0,u=0,c=0,s=0,A=0,v=0;U=r=U-16|0;e:{r:{f:{i:{a:{n:{t:{b:{o:{if((e|=0)>>>0<=244){if(3&(f=(b=o[854])>>>(i=(k=e>>>0<11?16:e+11&504)>>>3|0)|0)){f=3456+(e=(i=i+(1&~f)|0)<<3)|0,a=o[e+3464>>2],(0|f)!=(0|(e=o[a+8>>2]))?(o[e+12>>2]=f,o[f+8>>2]=e):(A=3416,v=_e(i)&b,o[A>>2]=v),e=a+8|0,f=i<<3,o[a+4>>2]=3|f,o[4+(f=f+a|0)>>2]=1|o[f+4>>2];break e}if((s=o[856])>>>0>=k>>>0)break o;if(f){f=3456+(e=(a=Fe((0-(e=2<<i)|e)&f<<i))<<3)|0,n=o[e+3464>>2],(0|f)!=(0|(e=o[n+8>>2]))?(o[e+12>>2]=f,o[f+8>>2]=e):(b=_e(a)&b,o[854]=b),o[n+4>>2]=3|k,a=(e=a<<3)-k|0,o[4+(i=n+k|0)>>2]=1|a,o[e+n>>2]=a,s&&(f=3456+(-8&s)|0,t=o[859],(e=1<<(s>>>3))&b?e=o[f+8>>2]:(o[854]=e|b,e=f),o[f+8>>2]=t,o[e+12>>2]=t,o[t+12>>2]=f,o[t+8>>2]=e),e=n+8|0,o[859]=i,o[856]=a;break e}if(!(c=o[855]))break o;for(i=o[3720+(Fe(c)<<2)>>2],n=(-8&o[i+4>>2])-k|0,f=i;(e=o[f+16>>2])||(e=o[f+20>>2]);)n=(a=(f=(-8&o[e+4>>2])-k|0)>>>0<n>>>0)?f:n,i=a?e:i,f=e;if(u=o[i+24>>2],(0|(a=o[i+12>>2]))!=(0|i)){e=o[i+8>>2],o[e+12>>2]=a,o[a+8>>2]=e;break r}if(!(e=o[(f=i+20|0)>>2])){if(!(e=o[i+16>>2]))break b;f=i+16|0}for(;t=f,a=e,(e=o[(f=e+20|0)>>2])||(f=a+16|0,e=o[a+16>>2]););o[t>>2]=0;break r}if(k=-1,!(e>>>0>4294967231)&&(k=-8&(e=e+11|0),c=o[855])){n=0-k|0,b=0,k>>>0<256||(b=31,k>>>0>16777215||(b=62+((k>>>38-(e=g(e>>>8|0))&1)-(e<<1)|0)|0));k:{u:{if(f=o[3720+(b<<2)>>2])for(e=0,i=k<<(31!=(0|b)?25-(b>>>1|0)|0:0);;){if(!((t=(-8&o[f+4>>2])-k|0)>>>0>=n>>>0||(a=f,n=t))){n=0,e=f;break u}if(t=o[f+20>>2],f=o[16+((i>>>29&4)+f|0)>>2],e=t?(0|t)==(0|f)?e:t:e,i<<=1,!f)break}else e=0;if(!(e|a)){if(a=0,!(e=(0-(e=2<<b)|e)&c))break o;e=o[3720+(Fe(e)<<2)>>2]}if(!e)break k}for(;n=(i=(f=(-8&o[e+4>>2])-k|0)>>>0<n>>>0)?f:n,a=i?e:a,e=(f=o[e+16>>2])||o[e+20>>2];);}if(!(!a|o[856]-k>>>0<=n>>>0)){if(b=o[a+24>>2],(0|a)!=(0|(i=o[a+12>>2]))){e=o[a+8>>2],o[e+12>>2]=i,o[i+8>>2]=e;break f}if(!(e=o[(f=a+20|0)>>2])){if(!(e=o[a+16>>2]))break t;f=a+16|0}for(;t=f,i=e,(e=o[(f=e+20|0)>>2])||(f=i+16|0,e=o[i+16>>2]););o[t>>2]=0;break f}}}if((e=o[856])>>>0>=k>>>0){a=o[859],(f=e-k|0)>>>0>=16?(o[4+(i=a+k|0)>>2]=1|f,o[e+a>>2]=f,o[a+4>>2]=3|k):(o[a+4>>2]=3|e,o[4+(e=e+a|0)>>2]=1|o[e+4>>2],i=0,f=0),o[856]=f,o[859]=i,e=a+8|0;break e}if((u=o[857])>>>0>k>>>0){f=u-k|0,o[857]=f,e=(i=o[860])+k|0,o[860]=e,o[e+4>>2]=1|f,o[i+4>>2]=3|k,e=i+8|0;break e}if(e=0,n=k+47|0,o[972]?i=o[974]:(o[975]=-1,o[976]=-1,o[973]=4096,o[974]=4096,o[972]=r+12&-16^1431655768,o[977]=0,o[965]=0,i=4096),(f=(b=n+i|0)&(t=0-i|0))>>>0<=k>>>0)break e;if((a=o[964])&&a>>>0<(c=(i=o[962])+f|0)>>>0|i>>>0>=c>>>0)break e;o:{if(!(4&l[3860])){k:{u:{c:{s:{if(a=o[860])for(e=3864;;){if((i=o[e>>2])>>>0<=a>>>0&a>>>0<i+o[e+4>>2]>>>0)break s;if(!(e=o[e+8>>2]))break}if(-1==(0|(i=Me(0))))break k;if(b=f,(e=(a=o[973])-1|0)&i&&(b=(f-i|0)+(e+i&0-a)|0),b>>>0<=k>>>0)break k;if((a=o[964])&&a>>>0<(t=(e=o[962])+b|0)>>>0|e>>>0>=t>>>0)break k;if((0|i)!=(0|(e=Me(b))))break c;break o}if((0|(i=Me(b=t&b-u)))==(o[e>>2]+o[e+4>>2]|0))break u;e=i}if(-1==(0|e))break k;if(k+48>>>0<=b>>>0){i=e;break o}if(-1==(0|Me(i=(i=o[974])+(n-b|0)&0-i)))break k;b=i+b|0,i=e;break o}if(-1!=(0|i))break o}o[965]=4|o[965]}if(-1==(0|(i=Me(f)))|-1==(0|(e=Me(0)))|e>>>0<=i>>>0)break i;if((b=e-i|0)>>>0<=k+40>>>0)break i}e=o[962]+b|0,o[962]=e,e>>>0>d[963]&&(o[963]=e);o:{if(n=o[860]){for(e=3864;;){if(((a=o[e>>2])+(f=o[e+4>>2])|0)==(0|i))break o;if(!(e=o[e+8>>2]))break}break n}for((e=o[858])>>>0<=i>>>0&&e||(o[858]=i),e=0,o[967]=b,o[966]=i,o[862]=-1,o[863]=o[972],o[969]=0;f=3456+(a=e<<3)|0,o[a+3464>>2]=f,o[a+3468>>2]=f,32!=(0|(e=e+1|0)););f=(a=b-40|0)-(e=-8-i&7)|0,o[857]=f,e=e+i|0,o[860]=e,o[e+4>>2]=1|f,o[4+(i+a|0)>>2]=40,o[861]=o[976];break a}if(8&o[e+12>>2]|i>>>0<=n>>>0|a>>>0>n>>>0)break n;o[e+4>>2]=f+b,i=(e=-8-n&7)+n|0,o[860]=i,e=(f=o[857]+b|0)-e|0,o[857]=e,o[i+4>>2]=1|e,o[4+(f+n|0)>>2]=40,o[861]=o[976];break a}a=0;break r}i=0;break f}d[858]>i>>>0&&(o[858]=i),f=i+b|0,e=3864;n:{t:{b:{for(;;){if((0|f)!=o[e>>2]){if(e=o[e+8>>2])continue;break b}break}if(!(8&l[e+12|0]))break t}for(e=3864;!((f=o[e>>2])>>>0<=n>>>0&&(t=f+o[e+4>>2]|0)>>>0>n>>>0);)e=o[e+8>>2];for(f=(a=b-40|0)-(e=-8-i&7)|0,o[857]=f,e=e+i|0,o[860]=e,o[e+4>>2]=1|f,o[4+(i+a|0)>>2]=40,o[861]=o[976],o[(a=(e=(t+(39-t&7)|0)-47|0)>>>0<n+16>>>0?n:e)+4>>2]=27,e=o[969],o[a+16>>2]=o[968],o[a+20>>2]=e,e=o[967],o[a+8>>2]=o[966],o[a+12>>2]=e,o[968]=a+8,o[967]=b,o[966]=i,o[969]=0,e=a+24|0;o[e+4>>2]=7,f=e+8|0,e=e+4|0,f>>>0<t>>>0;);if((0|a)==(0|n))break a;if(o[a+4>>2]=-2&o[a+4>>2],t=a-n|0,o[n+4>>2]=1|t,o[a>>2]=t,t>>>0<=255){f=3456+(-8&t)|0,(i=o[854])&(e=1<<(t>>>3))?e=o[f+8>>2]:(o[854]=e|i,e=f),o[f+8>>2]=n,o[e+12>>2]=n,o[n+12>>2]=f,o[n+8>>2]=e;break a}if(e=31,t>>>0<=16777215&&(e=62+((t>>>38-(e=g(t>>>8|0))&1)-(e<<1)|0)|0),o[n+28>>2]=e,o[n+16>>2]=0,o[n+20>>2]=0,f=3720+(e<<2)|0,(a=o[855])&(i=1<<e)){for(e=t<<(31!=(0|e)?25-(e>>>1|0)|0:0),a=o[f>>2];;){if((0|t)==(-8&o[(f=a)+4>>2]))break n;if(i=e>>>29|0,e<<=1,!(a=o[16+(i=(4&i)+f|0)>>2]))break}o[i+16>>2]=n}else o[855]=i|a,o[f>>2]=n;o[n+24>>2]=f,o[n+12>>2]=n,o[n+8>>2]=n;break a}o[e>>2]=i,o[e+4>>2]=o[e+4>>2]+b,o[4+(c=(-8-i&7)+i|0)>>2]=3|k,b=(n=f+(-8-f&7)|0)-(u=k+c|0)|0;t:if(o[860]!=(0|n))if(o[859]!=(0|n)){if(1==(3&(i=o[n+4>>2]))){t=-8&i;b:if(i>>>0<=255){if((0|(f=o[n+12>>2]))==(0|(e=o[n+8>>2]))){A=3416,v=o[854]&_e(i>>>3|0),o[A>>2]=v;break b}o[e+12>>2]=f,o[f+8>>2]=e}else{k=o[n+24>>2];o:if((0|n)==(0|(e=o[n+12>>2]))){k:{if(!(i=o[(f=n+20|0)>>2])){if(!(i=o[n+16>>2]))break k;f=n+16|0}for(;a=f,(i=o[(f=(e=i)+20|0)>>2])||(f=e+16|0,i=o[e+16>>2]););o[a>>2]=0;break o}e=0}else f=o[n+8>>2],o[f+12>>2]=e,o[e+8>>2]=f;if(k){i=o[n+28>>2];o:{if(o[(f=3720+(i<<2)|0)>>2]==(0|n)){if(o[f>>2]=e,e)break o;A=3420,v=o[855]&_e(i),o[A>>2]=v;break b}if(o[k+(o[k+16>>2]==(0|n)?16:20)>>2]=e,!e)break b}o[e+24>>2]=k,(f=o[n+16>>2])&&(o[e+16>>2]=f,o[f+24>>2]=e),(f=o[n+20>>2])&&(o[e+20>>2]=f,o[f+24>>2]=e)}}b=t+b|0,i=o[4+(n=n+t|0)>>2]}if(o[n+4>>2]=-2&i,o[u+4>>2]=1|b,o[b+u>>2]=b,b>>>0<=255)f=3456+(-8&b)|0,(i=o[854])&(e=1<<(b>>>3))?e=o[f+8>>2]:(o[854]=e|i,e=f),o[f+8>>2]=u,o[e+12>>2]=u,o[u+12>>2]=f,o[u+8>>2]=e;else{i=31,b>>>0<=16777215&&(i=62+((b>>>38-(e=g(b>>>8|0))&1)-(e<<1)|0)|0),o[u+28>>2]=i,o[u+16>>2]=0,o[u+20>>2]=0,f=3720+(i<<2)|0;b:{if((a=o[855])&(e=1<<i)){for(i=b<<(31!=(0|i)?25-(i>>>1|0)|0:0),e=o[f>>2];;){if(f=e,(-8&o[e+4>>2])==(0|b))break b;if(a=i>>>29|0,i<<=1,!(e=o[16+(a=(4&a)+e|0)>>2]))break}o[a+16>>2]=u}else o[855]=e|a,o[f>>2]=u;o[u+24>>2]=f,o[u+12>>2]=u,o[u+8>>2]=u;break t}e=o[f+8>>2],o[e+12>>2]=u,o[f+8>>2]=u,o[u+24>>2]=0,o[u+12>>2]=f,o[u+8>>2]=e}}else o[859]=u,e=o[856]+b|0,o[856]=e,o[u+4>>2]=1|e,o[e+u>>2]=e;else o[860]=u,e=o[857]+b|0,o[857]=e,o[u+4>>2]=1|e;e=c+8|0;break e}e=o[f+8>>2],o[e+12>>2]=n,o[f+8>>2]=n,o[n+24>>2]=0,o[n+12>>2]=f,o[n+8>>2]=e}if(!((e=o[857])>>>0<=k>>>0)){f=e-k|0,o[857]=f,e=(i=o[860])+k|0,o[860]=e,o[e+4>>2]=1|f,o[i+4>>2]=3|k,e=i+8|0;break e}}o[806]=48,e=0;break e}f:if(b){f=o[a+28>>2];i:{if(o[(e=3720+(f<<2)|0)>>2]==(0|a)){if(o[e>>2]=i,i)break i;c=_e(f)&c,o[855]=c;break f}if(o[b+(o[b+16>>2]==(0|a)?16:20)>>2]=i,!i)break f}o[i+24>>2]=b,(e=o[a+16>>2])&&(o[i+16>>2]=e,o[e+24>>2]=i),(e=o[a+20>>2])&&(o[i+20>>2]=e,o[e+24>>2]=i)}f:if(n>>>0<=15)e=n+k|0,o[a+4>>2]=3|e,o[4+(e=e+a|0)>>2]=1|o[e+4>>2];else if(o[a+4>>2]=3|k,o[4+(t=a+k|0)>>2]=1|n,o[n+t>>2]=n,n>>>0<=255)f=3456+(-8&n)|0,(i=o[854])&(e=1<<(n>>>3))?e=o[f+8>>2]:(o[854]=e|i,e=f),o[f+8>>2]=t,o[e+12>>2]=t,o[t+12>>2]=f,o[t+8>>2]=e;else{e=31,n>>>0<=16777215&&(e=62+((n>>>38-(e=g(n>>>8|0))&1)-(e<<1)|0)|0),o[t+28>>2]=e,o[t+16>>2]=0,o[t+20>>2]=0,f=3720+(e<<2)|0;i:{if((i=1<<e)&c){for(e=n<<(31!=(0|e)?25-(e>>>1|0)|0:0),k=o[f>>2];;){if((-8&o[(f=k)+4>>2])==(0|n))break i;if(i=e>>>29|0,e<<=1,!(k=o[16+(i=(4&i)+f|0)>>2]))break}o[i+16>>2]=t}else o[855]=i|c,o[f>>2]=t;o[t+24>>2]=f,o[t+12>>2]=t,o[t+8>>2]=t;break f}e=o[f+8>>2],o[e+12>>2]=t,o[f+8>>2]=t,o[t+24>>2]=0,o[t+12>>2]=f,o[t+8>>2]=e}e=a+8|0;break e}r:if(u){f=o[i+28>>2];f:{if(o[(e=3720+(f<<2)|0)>>2]==(0|i)){if(o[e>>2]=a,a)break f;A=3420,v=_e(f)&c,o[A>>2]=v;break r}if(o[u+(o[u+16>>2]==(0|i)?16:20)>>2]=a,!a)break r}o[a+24>>2]=u,(e=o[i+16>>2])&&(o[a+16>>2]=e,o[e+24>>2]=a),(e=o[i+20>>2])&&(o[a+20>>2]=e,o[e+24>>2]=a)}n>>>0<=15?(e=n+k|0,o[i+4>>2]=3|e,o[4+(e=e+i|0)>>2]=1|o[e+4>>2]):(o[i+4>>2]=3|k,o[4+(a=i+k|0)>>2]=1|n,o[a+n>>2]=n,s&&(f=3456+(-8&s)|0,t=o[859],(e=1<<(s>>>3))&b?e=o[f+8>>2]:(o[854]=e|b,e=f),o[f+8>>2]=t,o[e+12>>2]=t,o[t+12>>2]=f,o[t+8>>2]=e),o[859]=a,o[856]=n),e=i+8|0}return U=r+16|0,0|e}function Q(e,r){var f,i,a,n,b,k,u,c,s=p(0),v=0,d=p(0),y=p(0),m=0,g=p(0),C=p(0),E=p(0),R=0,I=0,M=p(0),S=0,P=0,_=p(0),B=0,F=0;U=f=U-144|0,c=o[o[o[r+4>>2]+8>>2]>>2],u=o[c>>2],n=o[u+16>>2],b=o[o[u+4>>2]+16>>2],k=o[r>>2],a=o[o[k+4>>2]+16>>2],i=o[k+16>>2],te(a,o[e+72>>2],i)>p(0)&&(s=h[a+28>>2],y=h[a+32>>2],v=o[e+72>>2],d=h[v+28>>2],g=h[v+32>>2],E=h[i+28>>2],w[f+40>>3]=h[i+32>>2],w[f+32>>3]=E,w[f+24>>3]=g,w[f+16>>3]=d,w[f+8>>3]=y,w[f>>3]=s,Ue(1098,f));e:{r:{f:if((0|i)!=(0|n)&&(g=(s=h[i+32>>2])<=(y=h[a+32>>2])?s:y,y=h[n+32>>2],!(g>((d=h[b+32>>2])<=y?y:d)))){i:{if(!(!((d=h[i+28>>2])<(g=h[n+28>>2]))&(!(s<=y)|d!=g))){if(!(te(b,i,n)>p(0)))break i;break f}if(te(a,n,i)<p(0))break f}I=b,v=n,P=i,(s=h[(R=a)+28>>2])<(y=h[i+28>>2])|s==y&h[R+32>>2]<=h[i+32>>2]?(m=P,P=R):m=R,(s=h[v+28>>2])>(y=h[I+28>>2])|s==y&h[I+32>>2]<=h[v+32>>2]?(s=y,R=v,v=I):R=I,(y=h[P+28>>2])<s|s==y&h[P+32>>2]<=h[v+32>>2]?(y=s,I=R,S=v,R=m,v=P):(I=m,S=P);i:if((d=h[R+28>>2])>y|d==y&h[S+32>>2]<=h[R+32>>2])if(!((E=h[I+28>>2])>d)&(!(h[R+32>>2]<=h[I+32>>2])|d!=E))if(s=te(v,S,R),d=te(v,I,R),y=h[S+28>>2],(g=(s=(m=p(s-d)<p(0))?p(-s):s)<p(0)?p(0):s)<=(d=(s=m?d:p(-d))<p(0)?p(0):s)){if(C=h[I+28>>2],s=p(p(y+C)*p(.5)),d==p(0))break i;s=p(p(p(C-y)*p(g/p(g+d)))+y)}else s=h[I+28>>2],s=p(p(p(y-s)*p(d/p(g+d)))+s);else{if(s=p(0),g=p(d-y),M=p(y-h[v+28>>2]),(_=p(g+M))>p(0)&&(s=h[((m=g>M)?v:R)+32>>2],s=p(p(p(s-h[(m?R:v)+32>>2])*p((m?M:g)/_))+p(h[S+32>>2]-s))),E=p(E-d),(M=p(g+E))>p(0)&&(C=h[((m=g<E)?S:I)+32>>2],C=p(p(p(C-h[(m?I:S)+32>>2])*p((m?g:E)/M))+p(h[R+32>>2]-C))),(E=(s=(m=p(s+C)<p(0))?p(-s):s)<p(0)?p(0):s)<=(C=(s=m?p(-C):C)<p(0)?p(0):s)){if(s=p(p(y+d)*p(.5)),C==p(0))break i;s=p(p(g*p(E/p(E+C)))+y);break i}s=p(p(p(y-d)*p(C/p(E+C)))+d)}else s=p(p(y+d)*p(.5));h[f+84>>2]=s,(s=h[v+32>>2])<(y=h[R+32>>2])|s==y&h[v+28>>2]<=h[R+28>>2]?(m=R,R=v):m=v,(s=h[I+32>>2])>(y=h[S+32>>2])|s==y&h[S+28>>2]<=h[I+28>>2]?(s=y,v=I,I=S):v=S,(y=h[R+32>>2])<s|s==y&h[R+28>>2]<=h[I+28>>2]?(y=s,P=v,S=I,v=m,I=R):(P=m,S=R);i:{a:if((d=h[v+32>>2])>y|d==y&h[S+28>>2]<=h[v+28>>2]){if(!(!((C=h[P+32>>2])>d)&(!(h[v+28>>2]<=h[P+28>>2])|d!=C))){if(s=p(0),g=p(0),E=p(d-y),M=p(y-h[I+32>>2]),(_=p(E+M))>p(0)&&(g=h[((m=E>M)?I:v)+28>>2],g=p(p(p(g-h[(m?v:I)+28>>2])*p((m?M:E)/_))+p(h[S+28>>2]-g))),C=p(C-d),(M=p(E+C))>p(0)&&(s=h[((m=C>E)?S:P)+28>>2],s=p(p(p(s-h[(m?P:S)+28>>2])*p((m?E:C)/M))+p(h[v+28>>2]-s))),(g=(g=(v=p(g+s)<p(0))?p(-g):g)<p(0)?p(0):g)<=(s=(s=v?p(-s):s)<p(0)?p(0):s)){if(s==p(0))break a;h[f+88>>2]=p(E*p(g/p(g+s)))+y;break i}h[f+88>>2]=p(p(y-d)*p(s/p(g+s)))+d;break i}if(s=p(0),g=p(0),E=p(d-y),M=h[I+32>>2],_=p(y-M),p(E+_)>p(0)&&(g=h[S+28>>2],g=p(p(p(g-h[v+28>>2])*_)+p(E*p(g-h[I+28>>2])))),d=p(d-C),E=p(C-M),p(d+E)>p(0)&&(s=h[P+28>>2],s=p(p(p(s-h[v+28>>2])*E)+p(d*p(s-h[I+28>>2])))),(d=(d=(v=p(g-s)<p(0))?p(-g):g)<p(0)?p(0):d)<=(s=(s=v?s:p(-s))<p(0)?p(0):s)){if(s==p(0)){h[f+88>>2]=p(y+C)*p(.5);break i}h[f+88>>2]=p(p(C-y)*p(d/p(d+s)))+y;break i}h[f+88>>2]=p(p(y-C)*p(s/p(d+s)))+C;break i}h[f+88>>2]=p(y+d)*p(.5)}y=h[f+84>>2],m=o[e+72>>2];i:{if(y<(s=h[m+28>>2]))d=h[m+32>>2];else{if(s!=y)break i;if(!((d=h[m+32>>2])>=h[f+88>>2]))break i}h[f+88>>2]=d,h[f+84>>2]=s,y=s}(s=C=h[(v=i)+28>>2])<(d=h[n+28>>2])||s==d&&h[v+32>>2]<=h[n+32>>2]||(s=d,v=n);i:{if(s<y)g=h[v+32>>2];else{if(s!=y)break i;if(!((g=h[v+32>>2])<=h[f+88>>2]))break i}h[f+88>>2]=g,h[f+84>>2]=s,y=s}if(!(y==C&h[f+88>>2]==h[i+32>>2])&(d!=y|h[f+88>>2]!=h[n+32>>2])){i:{a:{if(!((y=h[m+28>>2])==h[a+28>>2]&h[a+32>>2]==h[m+32>>2])){if(te(a,m,f+56|0)>=p(0))break a;m=o[e+72>>2],y=h[m+28>>2]}if(y==h[b+28>>2]&h[b+32>>2]==h[m+32>>2])break i;if(!(te(b,m,f+56|0)<=p(0)))break i}if((0|(v=o[e+72>>2]))==(0|b)){if(!V(o[k+4>>2]))break e;if(!K(o[u+4>>2],k))break e;for(v=o[o[r>>2]+16>>2];r=o[o[o[r+4>>2]+4>>2]>>2],R=o[r>>2],(0|v)==o[R+16>>2];);if(l[r+15|0]&&(m=0,(v=J(o[o[o[o[o[r+4>>2]+8>>2]>>2]>>2]+4>>2],o[R+12>>2]))&&Z(o[r>>2])&&(o[r>>2]=v,t[r+15|0]=0,o[v+24>>2]=r,m=o[o[o[r+4>>2]+4>>2]>>2]),r=m),!r)break e;m=o[o[o[r+4>>2]+8>>2]>>2],v=o[m>>2],oe(e,m,c),F=1,Y(e,r,o[o[v+4>>2]+12>>2],v,v,1);break f}if((0|v)==(0|a)){if(!V(o[u+4>>2]))break e;if(!K(o[k+12>>2],o[o[u+4>>2]+12>>2]))break e;for(m=o[o[o[r>>2]+4>>2]+16>>2],v=r;v=o[o[o[v+4>>2]+4>>2]>>2],(0|m)==o[o[o[v>>2]+4>>2]+16>>2];);m=o[o[o[o[o[o[v+4>>2]+8>>2]>>2]>>2]+4>>2]+8>>2],o[r>>2]=o[o[u+4>>2]+12>>2],F=1,Y(e,v,o[oe(e,r,0)+8>>2],o[o[k+4>>2]+8>>2],m,1);break f}if(te(a,v,f+56|0)>=p(0)){if(t[r+14|0]=1,t[o[o[o[r+4>>2]+4>>2]>>2]+14|0]=1,!V(o[k+4>>2]))break e;m=o[k+16>>2],v=o[e+72>>2],h[m+28>>2]=h[v+28>>2],h[m+32>>2]=h[v+32>>2]}else v=o[e+72>>2];if(!(te(b,v,f+56|0)<=p(0)))break f;if(t[c+14|0]=1,t[r+14|0]=1,!V(o[u+4>>2]))break e;r=o[u+16>>2],e=o[e+72>>2],h[r+28>>2]=h[e+28>>2],h[r+32>>2]=h[e+32>>2];break f}if(!V(o[k+4>>2]))break e;if(!V(o[u+4>>2]))break e;if(!K(o[o[u+4>>2]+12>>2],k))break e;if(v=o[k+16>>2],h[v+28>>2]=h[f+84>>2],h[v+32>>2]=h[f+88>>2],m=q(o[e+68>>2],v),v=o[k+16>>2],o[v+36>>2]=m,2147483647==(0|m))break r;o[f+112>>2]=o[i+12>>2],o[f+116>>2]=o[a+12>>2],o[f+120>>2]=o[n+12>>2],o[f+124>>2]=o[b+12>>2],o[v+24>>2]=0,o[v+16>>2]=0,o[v+20>>2]=0,s=h[v+28>>2],C=(y=p(h[a+28>>2]-s))<p(0)?p(-y):y,y=h[v+32>>2],d=p(h[a+32>>2]-y),g=p(C+(d<p(0)?p(-d):d)),C=(d=p(h[i+28>>2]-s))<p(0)?p(-d):d,d=p(h[i+32>>2]-y),C=p(C+(d<p(0)?p(-d):d)),B=+p(C+g),d=p(.5*+g/B),h[f+96>>2]=d,g=p(.5*+C/B),h[f+100>>2]=g,C=p(p(p(d*h[i+16>>2])+p(h[a+16>>2]*g))+p(0)),h[v+16>>2]=C,E=p(p(p(d*h[i+20>>2])+p(h[a+20>>2]*g))+p(0)),h[v+20>>2]=E,g=p(p(p(d*h[i+24>>2])+p(h[a+24>>2]*g))+p(0)),h[v+24>>2]=g,M=(d=p(h[n+28>>2]-s))<p(0)?p(-d):d,d=p(h[n+32>>2]-y),d=p(M+(d<p(0)?p(-d):d)),M=(s=p(h[b+28>>2]-s))<p(0)?p(-s):s,s=p(h[b+32>>2]-y),s=p(M+(s<p(0)?p(-s):s)),B=+p(d+s),s=p(.5*+s/B),h[f+104>>2]=s,y=p(.5*+d/B),h[f+108>>2]=y,d=p(C+p(p(s*h[n+16>>2])+p(h[b+16>>2]*y))),h[v+16>>2]=d,C=p(E+p(p(s*h[n+20>>2])+p(h[b+20>>2]*y))),h[v+20>>2]=C,s=p(g+p(p(s*h[n+24>>2])+p(h[b+24>>2]*y))),h[v+24>>2]=s,h[f+140>>2]=s,h[f+136>>2]=C,h[f+132>>2]=d,o[v+12>>2]=0,v=v+12|0,10==(0|(m=o[e+1736>>2]))?We[o[e+76>>2]](f+132|0,f+112|0,f+96|0,v):We[0|m](f+132|0,f+112|0,f+96|0,v,o[e+1896>>2]),o[v>>2]|l[e+60|0]||(11==(0|(v=o[e+1732>>2]))?We[o[e+12>>2]](100156):We[0|v](100156,o[e+1896>>2]),t[e+60|0]=1),t[c+14|0]=1,t[r+14|0]=1,t[o[o[o[r+4>>2]+4>>2]>>2]+14|0]=1}else D(e,r)}return U=f+144|0,F}Se(o[e+68>>2]),o[e+68>>2]=0}Be(e+1740|0,1),A()}function O(e,r,f,i,a,n){var k,u,c,s,A,v=0,d=0,h=0,p=0,m=0,g=0,C=0,E=0,R=0,I=0,M=0,S=0,P=0,_=0,B=0,F=0;U=k=U-80|0,o[k+76>>2]=r,c=a-192|0,s=i-384|0,A=k+55|0,u=k+56|0;e:{r:{f:{i:{a:for(;;){v=0;n:for(;;){if(h=r,(2147483647^E)<(0|v))break i;E=v+E|0;t:{b:{o:{if(d=l[0|(v=r)])for(;;){k:{u:if(r=255&d){if(37!=(0|r))break k;for(d=v;;){if(37!=l[d+1|0]){r=d;break u}if(v=v+1|0,m=l[d+2|0],d=r=d+2|0,37!=(0|m))break}}else r=v;if((0|(v=v-h|0))>(0|(B=2147483647^E)))break i;if(e&&Ae(e,h,v),v)continue n;o[k+76>>2]=r,v=r+1|0,R=-1,d=t[r+1|0]-48|0,36!=l[r+2|0]|d>>>0>=10||(R=d,M=1,v=r+3|0),o[k+76>>2]=v,g=0;u:if((r=(d=t[0|v])-32|0)>>>0>31)m=v;else if(m=v,75913&(r=1<<r))for(;;){if(m=v+1|0,o[k+76>>2]=m,g|=r,(r=(d=t[v+1|0])-32|0)>>>0>=32)break u;if(v=m,!(75913&(r=1<<r)))break}u:if(42!=(0|d)){if((0|(I=pe(k+76|0)))<0)break i;d=o[k+76>>2]}else{if(d=m+1|0,36!=l[m+2|0]|t[m+1|0]-48>>>0>=10){if(M)break o;if(!e){o[k+76>>2]=d,M=0,I=0;break u}r=o[f>>2],o[f>>2]=r+4,M=0,r=o[r>>2]}else r=t[0|d],d=m+3|0,M=1,e?r=o[(r<<3)+s>>2]:(o[(r<<2)+c>>2]=10,r=0);if(o[k+76>>2]=d,I=r,(0|r)>=0)break u;I=0-r|0,g|=8192}if(v=0,p=-1,46==l[0|d])if(42!=l[d+1|0])o[k+76>>2]=d+1,p=pe(k+76|0),r=o[k+76>>2],P=1;else{if(r=d+2|0,36!=l[d+3|0]|t[d+2|0]-48>>>0>=10){if(M)break o;e?(d=o[f>>2],o[f>>2]=d+4,p=o[d>>2]):p=0}else r=t[0|r],e?p=o[(r<<3)+s>>2]:(o[(r<<2)+c>>2]=10,p=0),r=d+4|0;o[k+76>>2]=r,P=(0|p)>=0}else r=d,P=0;for(;;){if(_=v,m=28,C=r,(d=t[0|r])-123>>>0<4294967238)break f;if(r=r+1|0,!((v=l[1071+(d+y(v,58)|0)|0])-1>>>0<8))break}o[k+76>>2]=r;u:if(27==(0|v)){if((0|R)>=0)break f;if(v=0,!e)continue n}else{if(!v)break f;if((0|R)>=0){if(!e){o[(R<<2)+a>>2]=v;continue a}v=o[4+(d=(R<<3)+i|0)>>2],o[k+64>>2]=o[d>>2],o[k+68>>2]=v;break u}if(!e)break t;ae(k- -64|0,v,f)}if(32&l[0|e])break r;d=-65537&g,g=8192&g?d:g,R=0,S=1024,m=u;u:{c:{s:{A:{l:{v:{d:{h:{w:{y:{p:{m:{g:{C:{E:{switch(v=t[0|C],(v=_&&3==(15&v)?-45&v:v)-88|0){case 11:break u;case 9:case 13:case 14:case 15:break c;case 27:break d;case 12:case 17:break y;case 23:break p;case 0:case 32:break m;case 24:break g;case 22:break C;case 29:break E;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 10:case 16:case 18:case 19:case 20:case 21:case 25:case 26:case 28:case 30:case 31:break b}switch(v-65|0){case 0:case 4:case 5:case 6:break c;case 2:break l;case 1:case 3:break b}if(83==(0|v))break v;break b}h=o[k+64>>2],d=o[k+68>>2],S=1024;break w}v=0;C:switch(255&_){case 0:case 1:case 6:o[o[k+64>>2]>>2]=E;continue n;case 2:h=o[k+64>>2],o[h>>2]=E,o[h+4>>2]=E>>31;continue n;case 3:b[o[k+64>>2]>>1]=E;continue n;case 4:t[o[k+64>>2]]=E;continue n;case 7:break C;default:continue n}h=o[k+64>>2],o[h>>2]=E,o[h+4>>2]=E>>31;continue n}p=p>>>0<=8?8:p,g|=8,v=120}if(r=u,(h=o[k+64>>2])|(d=o[k+68>>2]))for(F=32&v;t[0|(r=r-1|0)]=F|l[1600+(15&h)|0],_=!d&h>>>0>15|!!(0|d),C=d,d=d>>>4|0,h=(15&C)<<28|h>>>4,_;);if(h=r,!(o[k+64>>2]|o[k+68>>2])|!(8&g))break h;S=1024+(v>>>4|0)|0,R=2;break h}if(r=u,d=v=o[k+68>>2],v|(h=o[k+64>>2]))for(;t[0|(r=r-1|0)]=7&h|48,C=!d&h>>>0>7|!!(0|d),d=(v=d)>>>3|0,h=(7&v)<<29|h>>>3,C;);if(h=r,!(8&g))break h;p=(0|(r=u-r|0))<(0|p)?p:r+1|0;break h}h=o[k+64>>2],d=r=o[k+68>>2],(0|r)<0?(d=v=0-(r+!!(0|h)|0)|0,h=0-h|0,o[k+64>>2]=h,o[k+68>>2]=v,R=1,S=1024):2048&g?(R=1,S=1025):S=(R=1&g)?1026:1024}h=he(h,d,u)}if((0|p)<0&P)break i;if(g=P?-65537&g:g,!(p|0!=((r=o[k+64>>2])|(v=o[k+68>>2])))){h=u,p=0;break b}p=(0|(r=!(r|v)+(u-h|0)|0))<(0|p)?p:r;break b}C=m=p>>>0>=2147483647?2147483647:p,g=!!(0|m);d:{h:{w:{y:if(!(!(3&(r=h=(r=o[k+64>>2])||1071))|!m))for(;;){if(!l[0|r])break w;if(g=!!(0|(C=C-1|0)),!(3&(r=r+1|0)))break y;if(!C)break}if(!g)break h;if(!(!l[0|r]|C>>>0<4))for(;;){if(~(v=o[r>>2])&v-16843009&-2139062144)break w;if(r=r+4|0,!((C=C-4|0)>>>0>3))break}if(!C)break h}for(;;){if(!l[0|r])break d;if(r=r+1|0,!(C=C-1|0))break}}r=0}if(m=(r=r?r-h|0:m)+h|0,(0|p)>=0){g=d,p=r;break b}if(g=d,p=r,l[0|m])break i;break b}if(p){d=o[k+64>>2];break A}v=0,Ee(e,32,I,0,g);break s}o[k+12>>2]=0,o[k+8>>2]=o[k+64>>2],d=k+8|0,o[k+64>>2]=d,p=-1}for(v=0;;){if(h=o[d>>2]){if((0|(h=ce(k+4|0,h)))<0)break r;if(!(h>>>0>p-v>>>0)&&(d=d+4|0,p>>>0>(v=v+h|0)>>>0))continue}break}if(m=61,(0|v)<0)break f;if(Ee(e,32,I,v,g),v)for(m=0,d=o[k+64>>2];;){if(!(h=o[d>>2]))break s;if((m=(h=ce(p=k+4|0,h))+m|0)>>>0>v>>>0)break s;if(Ae(e,p,h),d=d+4|0,!(v>>>0>m>>>0))break}else v=0}Ee(e,32,I,v,8192^g),v=(0|v)<(0|I)?I:v;continue n}if((0|p)<0&P)break i;if(m=61,(0|(v=0|We[0|n](e,w[k+64>>3],I,p,g,v)))>=0)continue n;break f}t[k+55|0]=o[k+64>>2],p=1,h=A,g=d;break b}d=l[v+1|0],v=v+1|0}if(e)break e;if(!M)break t;for(v=1;;){if(e=o[(v<<2)+a>>2]){if(ae((v<<3)+i|0,e,f),E=1,10!=(0|(v=v+1|0)))continue;break e}break}if(E=1,v>>>0>=10)break e;for(;;){if(o[(v<<2)+a>>2])break o;if(10==(0|(v=v+1|0)))break}break e}m=28;break f}if((0|(r=(0|(d=m-h|0))<(0|p)?p:d))>(2147483647^R))break i;if(m=61,(0|B)<(0|(v=(0|(p=r+R|0))<(0|I)?I:p)))break f;Ee(e,32,v,p,g),Ae(e,S,R),Ee(e,48,v,p,65536^g),Ee(e,48,r,d,0),Ae(e,h,d),Ee(e,32,v,p,8192^g),r=o[k+76>>2];continue}break}break}E=0;break e}m=61}o[806]=m}E=-1}return U=k+80|0,E}function W(e,r){var f,i=0,a=0,n=0,b=0,k=p(0),u=0,c=0,s=p(0),v=0,d=0;U=f=U-16|0,o[e+72>>2]=r,i=n=o[r+8>>2];e:{r:{f:{for(;;){if(a=o[i+24>>2])break f;if((0|n)==(0|(i=o[i+8>>2])))break}for(o[f>>2]=o[n+4>>2],n=i=o[e+64>>2];n=o[n+4>>2],(a=o[n>>2])&&!(0|We[o[i+16>>2]](o[i+12>>2],f,a)););if(a=o[n>>2],n=o[o[o[a+4>>2]+8>>2]>>2],u=o[n>>2],b=o[a>>2],te(o[o[b+4>>2]+16>>2],r,o[b+16>>2])==p(0)){if(k=h[r+28>>2],i=o[a>>2],n=o[i+16>>2],!(k!=h[n+28>>2]|h[n+32>>2]!=h[r+32>>2])){ke(e,i,o[r+8>>2]);break r}if(b=o[i+4>>2],n=o[b+16>>2],!(k==h[n+28>>2]&h[n+32>>2]==h[r+32>>2])){if(!V(b))break e;if(l[a+15|0]){if(!Z(o[i+8>>2]))break e;t[a+15|0]=0}if(!K(o[r+8>>2],i))break e;W(e,r);break r}for(;a=o[o[o[a+4>>2]+4>>2]>>2],(0|n)==o[o[o[a>>2]+4>>2]+16>>2];);if(n=o[o[o[a+4>>2]+8>>2]>>2],u=o[n>>2],b=o[u+4>>2],i=o[b+8>>2],l[n+15|0]){if(o[u+24>>2]=0,Pe(o[n+4>>2]),x(n),!Z(b))break e;b=o[o[i+4>>2]+12>>2]}if(!K(o[r+8>>2],b))break e;c=o[b+8>>2],n=o[o[i+4>>2]+16>>2],k=h[n+28>>2],u=o[i+16>>2],Y(e,a,c,i,r=k<(s=h[u+28>>2])|k==s&h[n+32>>2]<=h[u+32>>2]?i:0,1);break r}if(c=l[a+12|0],u=o[u+4>>2],v=o[u+16>>2],k=h[v+28>>2],d=o[o[b+4>>2]+16>>2],i=a,k<(s=h[d+28>>2])||k==s&&(i=a,h[v+32>>2]<=h[d+32>>2])||(i=n),c|l[i+15|0]){i:{if((0|a)==(0|i)){if(n=J(o[o[r+8>>2]+4>>2],o[b+12>>2]))break i;break e}if(!(n=J(o[o[u+8>>2]+4>>2],o[r+8>>2])))break e;n=o[n+4>>2]}if(l[i+15|0]){if(Z(o[i>>2])){o[i>>2]=n,t[i+15|0]=0,o[n+24>>2]=i,W(e,r);break r}break e}if(!(i=T(16)))break e;if(o[i>>2]=n,a=Ce(o[e+64>>2],o[a+4>>2],i),o[i+4>>2]=a,!a)break e;t[i+13|0]=0,t[i+14|0]=0,t[i+15|0]=0,o[n+24>>2]=i,b=o[e+56>>2],n=o[o[i>>2]+28>>2]+o[o[o[a+4>>2]>>2]+8>>2]|0,o[i+8>>2]=n;i:{a:switch(b-100130|0){case 0:a=1&n;break i;case 1:a=!!(0|n);break i;case 2:a=(0|n)>0;break i;case 3:a=n>>>31|0;break i;case 4:break a;default:break i}a=n-2>>>0<4294967293}t[i+12|0]=a,W(e,r);break r}Y(i=e,a,e=o[r+8>>2],e,0,1);break r}for(r=o[o[a>>2]+16>>2];a=o[o[o[a+4>>2]+4>>2]>>2],i=o[a>>2],(0|r)==o[i+16>>2];);if(l[a+15|0]){if(!(r=J(o[o[o[o[o[a+4>>2]+8>>2]>>2]>>2]+4>>2],o[i+12>>2])))break e;if(!Z(o[a>>2]))break e;if(o[a>>2]=r,t[a+15|0]=0,o[r+24>>2]=a,!(a=o[o[o[a+4>>2]+4>>2]>>2]))break e}if(r=o[o[o[a+4>>2]+8>>2]>>2],i=o[r>>2],r=oe(e,r,0),(0|i)!=(0|(n=o[r+8>>2])))Y(e,a,n,i,i,1);else{if(n=o[a>>2],v=o[o[o[a+4>>2]+8>>2]>>2],u=o[v>>2],o[o[n+4>>2]+16>>2]!=o[o[u+4>>2]+16>>2]&&Q(e,a),d=1,b=o[e+72>>2],k=h[b+28>>2],c=o[n+16>>2],!(k!=h[c+28>>2]|h[c+32>>2]!=h[b+32>>2])){if(!K(o[o[i+4>>2]+12>>2],n))break e;for(i=o[o[a>>2]+16>>2];a=o[o[o[a+4>>2]+4>>2]>>2],b=o[a>>2],(0|i)==o[b+16>>2];);if(l[a+15|0]){if(!(i=J(o[o[o[o[o[a+4>>2]+8>>2]>>2]>>2]+4>>2],o[b+12>>2])))break e;if(!Z(o[a>>2]))break e;if(o[a>>2]=i,t[a+15|0]=0,o[i+24>>2]=a,!(a=o[o[o[a+4>>2]+4>>2]>>2]))break e}b=o[o[o[a+4>>2]+8>>2]>>2],i=o[b>>2],oe(e,b,v),b=o[e+72>>2],k=h[b+28>>2],d=0}f:{if(s=k,c=o[u+16>>2],s!=(k=h[c+28>>2])|h[c+32>>2]!=h[b+32>>2]){if(d)break f}else{if(!K(r,o[o[u+4>>2]+12>>2]))break e;r=oe(e,v,0)}Y(e,a,o[r+8>>2],i,i,1);break r}if(i=o[n+16>>2],!((s=h[i+28>>2])>k)&(!(h[c+32>>2]<=h[i+32>>2])|k!=s)||(n=o[o[u+4>>2]+12>>2]),!(r=J(o[o[r+8>>2]+4>>2],n)))break e;Y(e,a,r,i=o[r+8>>2],i,0),t[o[o[r+4>>2]+24>>2]+15|0]=1,L(e,a)}}return void(U=f+16|0)}Be(e+1740|0,1),A()}function H(e){e|=0;var r,f=0,i=0,a=0,n=p(0),t=p(0),b=0,k=0,u=p(0),c=0,s=p(0),A=p(0),l=0,v=p(0),d=p(0),w=p(0),y=p(0),m=p(0),g=p(0),C=p(0),E=p(0),R=p(0),I=p(0),M=p(0),S=0,P=0,_=0,B=0,F=0,T=0,Q=0,O=0,W=p(0);r=o[e+8>>2],f=U-80|0,y=h[e+16>>2],h[f+8>>2]=y,m=h[e+20>>2],h[f+12>>2]=m,g=h[e+24>>2],h[f+16>>2]=g,c=o[r>>2];e:if(P=y==p(0)&m==p(0)&g==p(0)){if(o[f+76>>2]=-42943038,o[f+68>>2]=-42943038,o[f+72>>2]=-42943038,o[f+64>>2]=2104540610,o[f+56>>2]=2104540610,o[f+60>>2]=2104540610,(0|r)!=(0|c)){for(w=p(19999999867631625e21),R=p(-19999999867631625e21),C=p(-19999999867631625e21),E=p(19999999867631625e21),I=p(-19999999867631625e21),M=p(19999999867631625e21),s=p(-19999999867631625e21),u=p(19999999867631625e21),v=p(-19999999867631625e21),t=p(19999999867631625e21),A=p(-19999999867631625e21),d=p(19999999867631625e21),i=c;s=(a=(n=h[i+24>>2])>s)?n:s,R=a?n:R,u=(l=n<u)?n:u,w=l?n:w,v=(k=(n=h[i+20>>2])>v)?n:v,C=k?n:C,t=(S=t>n)?n:t,E=S?n:E,A=(b=(n=h[i+16>>2])>A)?n:A,I=b?n:I,_=b?i:_,d=(b=n<d)?n:d,M=b?n:M,B=b?i:B,F=a?i:F,T=l?i:T,Q=k?i:Q,O=S?i:O,(0|r)!=(0|(i=o[i>>2])););o[f+20>>2]=B,h[f+56>>2]=M,h[f+68>>2]=I,o[f+32>>2]=_,h[f+60>>2]=E,o[f+24>>2]=O,h[f+72>>2]=C,o[f+36>>2]=Q,h[f+64>>2]=w,o[f+28>>2]=T,h[f+76>>2]=R,o[f+40>>2]=F,u=p(s-u),s=p(A-d),t=p(v-t)}else s=p(-3999999973526325e22),u=p(-3999999973526325e22),t=p(-3999999973526325e22);if(i=2,a=(k=t>s)<<2,l=k,b=f+56|0,l=p(h[(k=f+68|0)+a>>2]-h[b+a>>2])<u?2:l,h[(a=l<<2)+b>>2]>=h[a+k>>2])o[f+8>>2]=0,o[f+12>>2]=0;else{if(i=o[(a=l<<2)+(f+20|0)>>2],a=o[a+(f+32|0)>>2],I=h[a+16>>2],w=p(h[i+16>>2]-I),h[f+44>>2]=w,M=h[a+20>>2],A=p(h[i+20>>2]-M),h[f+48>>2]=A,W=h[a+24>>2],d=p(h[i+24>>2]-W),R=p(-w),(0|r)!=(0|c)){for(E=p(-A),C=p(-d),t=p(0),i=c;u=p(h[i+20>>2]-M),n=p(h[i+16>>2]-I),s=p(p(w*u)+p(n*E)),v=p(h[i+24>>2]-W),u=p(p(A*v)+p(u*C)),n=p(p(d*n)+p(v*R)),(v=p(p(s*s)+p(p(u*u)+p(n*n))))>t&&(g=s,m=n,y=u,t=v),(0|r)!=(0|(i=o[i>>2])););if(h[f+16>>2]=g,h[f+12>>2]=m,h[f+8>>2]=y,!(t<=p(0)))break e}else C=p(-d),E=p(-A);o[f+16>>2]=0,o[f+8>>2]=0,o[f+12>>2]=0,i=(A<p(0)?E:A)>(w<p(0)?R:w),t=h[(f+44|0)+(i<<2)>>2],i=(d<p(0)?C:d)>(t<p(0)?p(-t):t)?2:i}o[(f+8|0)+(i<<2)>>2]=1065353216,g=h[f+16>>2],y=h[f+8>>2],m=h[f+12>>2]}if(k=f+8|0,a=(m<p(0)?p(-m):m)>(y<p(0)?p(-y):y),t=h[k+(a<<2)>>2],i=e+28|0,f=(g<p(0)?p(-g):g)>(t<p(0)?p(-t):t)?2:a,o[i+(a=f<<2)>>2]=0,o[(b=(3!=(0|(b=f+1|0))?b:0)<<2)+i>>2]=1065353216,o[(f=(f+2>>>0)%3<<2)+i>>2]=0,o[(i=e+40|0)+a>>2]=0,a=h[a+k>>2]>p(0),h[i+b>>2]=p(a?-0:0),h[f+i>>2]=p(a?1:-1),!(a=(0|r)==(0|c)))for(i=c;f=o[i+20>>2],o[i+28>>2]=o[i+16>>2],o[i+32>>2]=f,(0|r)!=(0|(i=o[i>>2])););if(P&&(0|(f=o[r+40>>2]))!=(0|(k=r+40|0))){for(t=p(0);;){if(b=o[f+8>>2],o[(i=b)+28>>2]>0)for(;l=o[i+16>>2],S=o[o[i+4>>2]+16>>2],t=p(p(p(h[l+28>>2]-h[S+28>>2])*p(h[l+32>>2]+h[S+32>>2]))+t),(0|b)!=(0|(i=o[i+12>>2])););if((0|k)==(0|(f=o[f>>2])))break}if(t<p(0)){if(!a)for(;h[c+32>>2]=-h[c+32>>2],(0|(c=o[c>>2]))!=(0|r););h[e+40>>2]=-h[e+40>>2],h[e+44>>2]=-h[e+44>>2],h[e+48>>2]=-h[e+48>>2]}}}function x(e){var r=0,f=0,i=0,a=0,n=0,t=0,b=0,k=0,u=0;e:if(e|=0){n=(i=e-8|0)+(e=-8&(r=o[e-4>>2]))|0;r:if(!(1&r)){if(!(2&r))break e;if((i=i-(r=o[i>>2])|0)>>>0<d[858])break e;e=e+r|0;f:{i:{if(o[859]!=(0|i)){if(r>>>0<=255){if(a=r>>>3|0,(0|(r=o[i+12>>2]))==(0|(f=o[i+8>>2]))){k=3416,u=o[854]&_e(a),o[k>>2]=u;break r}o[f+12>>2]=r,o[r+8>>2]=f;break r}if(b=o[i+24>>2],(0|i)!=(0|(r=o[i+12>>2]))){f=o[i+8>>2],o[f+12>>2]=r,o[r+8>>2]=f;break f}if(!(f=o[(a=i+20|0)>>2])){if(!(f=o[i+16>>2]))break i;a=i+16|0}for(;t=a,(f=o[(a=(r=f)+20|0)>>2])||(a=r+16|0,f=o[r+16>>2]););o[t>>2]=0;break f}if(3&~(r=o[n+4>>2]))break r;return o[856]=e,o[n+4>>2]=-2&r,o[i+4>>2]=1|e,void(o[n>>2]=e)}r=0}if(b){f=o[i+28>>2];f:{if(o[(a=3720+(f<<2)|0)>>2]==(0|i)){if(o[a>>2]=r,r)break f;k=3420,u=o[855]&_e(f),o[k>>2]=u;break r}if(o[b+(o[b+16>>2]==(0|i)?16:20)>>2]=r,!r)break r}o[r+24>>2]=b,(f=o[i+16>>2])&&(o[r+16>>2]=f,o[f+24>>2]=r),(f=o[i+20>>2])&&(o[r+20>>2]=f,o[f+24>>2]=r)}}if(!(i>>>0>=n>>>0)&&1&(r=o[n+4>>2])){r:{f:{i:{a:{if(!(2&r)){if(o[860]==(0|n)){if(o[860]=i,e=o[857]+e|0,o[857]=e,o[i+4>>2]=1|e,o[859]!=(0|i))break e;return o[856]=0,void(o[859]=0)}if(o[859]==(0|n))return o[859]=i,e=o[856]+e|0,o[856]=e,o[i+4>>2]=1|e,void(o[e+i>>2]=e);if(e=(-8&r)+e|0,r>>>0<=255){if(a=r>>>3|0,(0|(r=o[n+12>>2]))==(0|(f=o[n+8>>2]))){k=3416,u=o[854]&_e(a),o[k>>2]=u;break f}o[f+12>>2]=r,o[r+8>>2]=f;break f}if(b=o[n+24>>2],(0|n)!=(0|(r=o[n+12>>2]))){f=o[n+8>>2],o[f+12>>2]=r,o[r+8>>2]=f;break i}if(!(f=o[(a=n+20|0)>>2])){if(!(f=o[n+16>>2]))break a;a=n+16|0}for(;t=a,(f=o[(a=(r=f)+20|0)>>2])||(a=r+16|0,f=o[r+16>>2]););o[t>>2]=0;break i}o[n+4>>2]=-2&r,o[i+4>>2]=1|e,o[e+i>>2]=e;break r}r=0}if(b){f=o[n+28>>2];i:{if(o[(a=3720+(f<<2)|0)>>2]==(0|n)){if(o[a>>2]=r,r)break i;k=3420,u=o[855]&_e(f),o[k>>2]=u;break f}if(o[b+(o[b+16>>2]==(0|n)?16:20)>>2]=r,!r)break f}o[r+24>>2]=b,(f=o[n+16>>2])&&(o[r+16>>2]=f,o[f+24>>2]=r),(f=o[n+20>>2])&&(o[r+20>>2]=f,o[f+24>>2]=r)}}if(o[i+4>>2]=1|e,o[e+i>>2]=e,o[859]==(0|i))return void(o[856]=e)}if(e>>>0<=255)return r=3456+(-8&e)|0,(f=o[854])&(e=1<<(e>>>3))?e=o[r+8>>2]:(o[854]=e|f,e=r),o[r+8>>2]=i,o[e+12>>2]=i,o[i+12>>2]=r,void(o[i+8>>2]=e);f=31,e>>>0<=16777215&&(f=62+((e>>>38-(r=g(e>>>8|0))&1)-(r<<1)|0)|0),o[i+28>>2]=f,o[i+16>>2]=0,o[i+20>>2]=0,r=3720+(f<<2)|0;r:{f:{if((a=o[855])&(t=1<<f)){for(f=e<<(31!=(0|f)?25-(f>>>1|0)|0:0),r=o[r>>2];;){if(a=r,(-8&o[r+4>>2])==(0|e))break f;if(t=f>>>29|0,f<<=1,!(r=o[16+(t=r+(4&t)|0)>>2]))break}o[t+16>>2]=i,o[i+24>>2]=a}else o[855]=a|t,o[r>>2]=i,o[i+24>>2]=r;o[i+12>>2]=i,o[i+8>>2]=i;break r}e=o[a+8>>2],o[e+12>>2]=i,o[a+8>>2]=i,o[i+24>>2]=0,o[i+12>>2]=a,o[i+8>>2]=e}e=o[862]-1|0,o[862]=e||-1}}}function j(e,r){var f,i=0,a=0,n=0,t=0,b=0,k=0,u=0;f=e+r|0;e:{r:if(!(1&(i=o[e+4>>2]))){if(!(2&i))break e;r=(i=o[e>>2])+r|0;f:{i:{a:{if((0|(e=e-i|0))!=o[859]){if(i>>>0<=255){if((0|(a=o[e+8>>2]))!=(0|(n=o[e+12>>2])))break a;k=3416,u=o[854]&_e(i>>>3|0),o[k>>2]=u;break r}if(b=o[e+24>>2],(0|(i=o[e+12>>2]))!=(0|e)){a=o[e+8>>2],o[a+12>>2]=i,o[i+8>>2]=a;break f}if(!(a=o[(n=e+20|0)>>2])){if(!(a=o[e+16>>2]))break i;n=e+16|0}for(;t=n,(a=o[(n=(i=a)+20|0)>>2])||(n=i+16|0,a=o[i+16>>2]););o[t>>2]=0;break f}if(3&~(i=o[f+4>>2]))break r;return o[856]=r,o[f+4>>2]=-2&i,o[e+4>>2]=1|r,void(o[f>>2]=r)}o[a+12>>2]=n,o[n+8>>2]=a;break r}i=0}if(b){a=o[e+28>>2];f:{if(o[(n=3720+(a<<2)|0)>>2]==(0|e)){if(o[n>>2]=i,i)break f;k=3420,u=o[855]&_e(a),o[k>>2]=u;break r}if(o[b+(o[b+16>>2]==(0|e)?16:20)>>2]=i,!i)break r}o[i+24>>2]=b,(a=o[e+16>>2])&&(o[i+16>>2]=a,o[a+24>>2]=i),(a=o[e+20>>2])&&(o[i+20>>2]=a,o[a+24>>2]=i)}}r:{f:{i:{a:{if(!(2&(i=o[f+4>>2]))){if(o[860]==(0|f)){if(o[860]=e,r=o[857]+r|0,o[857]=r,o[e+4>>2]=1|r,o[859]!=(0|e))break e;return o[856]=0,void(o[859]=0)}if(o[859]==(0|f))return o[859]=e,r=o[856]+r|0,o[856]=r,o[e+4>>2]=1|r,void(o[e+r>>2]=r);if(r=(-8&i)+r|0,i>>>0<=255){if(n=i>>>3|0,(0|(i=o[f+12>>2]))==(0|(a=o[f+8>>2]))){k=3416,u=o[854]&_e(n),o[k>>2]=u;break f}o[a+12>>2]=i,o[i+8>>2]=a;break f}if(b=o[f+24>>2],(0|f)!=(0|(i=o[f+12>>2]))){a=o[f+8>>2],o[a+12>>2]=i,o[i+8>>2]=a;break i}if(!(a=o[(n=f+20|0)>>2])){if(!(a=o[f+16>>2]))break a;n=f+16|0}for(;t=n,(a=o[(n=(i=a)+20|0)>>2])||(n=i+16|0,a=o[i+16>>2]););o[t>>2]=0;break i}o[f+4>>2]=-2&i,o[e+4>>2]=1|r,o[e+r>>2]=r;break r}i=0}if(b){a=o[f+28>>2];i:{if(o[(n=3720+(a<<2)|0)>>2]==(0|f)){if(o[n>>2]=i,i)break i;k=3420,u=o[855]&_e(a),o[k>>2]=u;break f}if(o[b+(o[b+16>>2]==(0|f)?16:20)>>2]=i,!i)break f}o[i+24>>2]=b,(a=o[f+16>>2])&&(o[i+16>>2]=a,o[a+24>>2]=i),(a=o[f+20>>2])&&(o[i+20>>2]=a,o[a+24>>2]=i)}}if(o[e+4>>2]=1|r,o[e+r>>2]=r,o[859]==(0|e))return void(o[856]=r)}if(r>>>0<=255)return i=3456+(-8&r)|0,(a=o[854])&(r=1<<(r>>>3))?r=o[i+8>>2]:(o[854]=r|a,r=i),o[i+8>>2]=e,o[r+12>>2]=e,o[e+12>>2]=i,void(o[e+8>>2]=r);a=31,r>>>0<=16777215&&(a=62+((r>>>38-(i=g(r>>>8|0))&1)-(i<<1)|0)|0),o[e+28>>2]=a,o[e+16>>2]=0,o[e+20>>2]=0,i=3720+(a<<2)|0;r:{if((n=o[855])&(t=1<<a)){for(a=r<<(31!=(0|a)?25-(a>>>1|0)|0:0),i=o[i>>2];;){if(n=i,(-8&o[i+4>>2])==(0|r))break r;if(t=a>>>29|0,a<<=1,!(i=o[16+(t=i+(4&t)|0)>>2]))break}o[t+16>>2]=e,o[e+24>>2]=n}else o[855]=n|t,o[i>>2]=e,o[e+24>>2]=i;return o[e+12>>2]=e,void(o[e+8>>2]=e)}r=o[n+8>>2],o[r+12>>2]=e,o[n+8>>2]=e,o[e+24>>2]=0,o[e+12>>2]=n,o[e+8>>2]=r}}function D(e,r){var f=0,i=0,a=0,n=0,b=p(0),k=0,u=p(0),c=0,s=0,l=0,v=0,d=0,w=0,y=0,m=0,g=0,C=0,E=0,R=0;e:{l=o[r>>2],a=o[l+16>>2],u=h[a+28>>2],f=o[o[o[r+4>>2]+8>>2]>>2],v=o[f>>2],n=o[v+16>>2];r:{if(!(!(u<(b=h[n+28>>2]))&(!(h[a+32>>2]<=h[n+32>>2])|u!=b))){if(te(o[o[v+4>>2]+16>>2],a,n)>p(0))break r;if(a=o[l+16>>2],n=o[v+16>>2],!(h[a+28>>2]==h[n+28>>2]&h[a+32>>2]==h[n+32>>2])){if(!V(o[v+4>>2]))break e;if(!K(l,o[o[v+4>>2]+12>>2]))break e;return t[f+14|0]=1,t[r+14|0]=1,1}if(i=1,(0|a)==(0|n))break r;if(k=o[e+68>>2],(0|(n=o[a+36>>2]))>=0){if(d=o[k>>2],c=o[d>>2],s=o[d+4>>2],r=o[4+(g=s+(n<<3)|0)>>2],y=o[d+8>>2],m=o[c+(y<<2)>>2],o[c+(r<<2)>>2]=m,E=i=(m<<3)+s|0,o[i+4>>2]=r,C=y-1|0,o[d+8>>2]=C,(0|r)<(0|y)){f:{if((0|r)<2||(f=o[(o[c+(r<<1&-4)>>2]<<3)+s>>2],b=h[f+28>>2],w=o[i>>2],b<(u=h[w+28>>2])||!(!(h[f+32>>2]<=h[w+32>>2])|u!=b)))for(R=(m<<3)+s|0;;){if((0|C)<=(0|(f=r<<1))||(k=o[(o[c+((i=1|f)<<2)>>2]<<3)+s>>2],u=h[k+28>>2],a=o[(o[c+(f<<2)>>2]<<3)+s>>2],!(u<(b=h[a+28>>2]))&(!(h[k+32>>2]<=h[a+32>>2])|u!=b)||(f=i)),(0|f)>=(0|y)){f=r;break f}if(w=o[R>>2],u=h[w+28>>2],k=o[c+(f<<2)>>2],i=o[(a=(k<<3)+s|0)>>2],u<(b=h[i+28>>2])){f=r;break f}if(!(!(h[w+32>>2]<=h[i+32>>2])|u!=b)){f=r;break f}o[c+(r<<2)>>2]=k,o[a+4>>2]=r,r=f}for(;;){if(k=o[c+((f=r>>>1|0)<<2)>>2],i=o[(a=(k<<3)+s|0)>>2],(b=h[i+28>>2])<u){f=r;break f}if(!(!(h[i+32>>2]<=h[w+32>>2])|u!=b)){f=r;break f}if(o[c+(r<<2)>>2]=k,o[a+4>>2]=r,i=r>>>0>3,r=f,!i)break}}o[c+(f<<2)>>2]=m,o[E+4>>2]=f}o[g>>2]=0,o[g+4>>2]=o[d+16>>2],o[d+16>>2]=n}else{o[o[k+4>>2]+(~n<<2)>>2]=0;f:if(!((0|(r=o[k+12>>2]))<=0))for(n=o[k+8>>2]-4|0;;){if(o[o[n+(r<<2)>>2]>>2])break f;if(f=r-1|0,o[k+12>>2]=f,i=(0|r)>1,r=f,!i)break}}return ke(e,o[o[v+4>>2]+12>>2],l),1}if(!(te(o[o[l+4>>2]+16>>2],n,a)<p(0))){if(i=1,t[r+14|0]=1,t[o[o[o[r+4>>2]+4>>2]>>2]+14|0]=1,!V(o[l+4>>2]))break e;if(!K(o[o[v+4>>2]+12>>2],l))break e}}return i}Be(e+1740|0,1),A()}function G(e,r){var f,i,a=0,n=0,t=0,b=0,k=0,u=0,c=0,s=0,A=0,l=0,v=0;if(!e)return T(r);if(r>>>0>=4294967232)return o[806]=48,0;f=r>>>0<11?16:r+11&-8,n=-8&(i=o[4+(t=e-8|0)>>2]);e:if(3&i){b=n+t|0;r:if(n>>>0>=f>>>0){if((a=n-f|0)>>>0<16)break r;o[t+4>>2]=1&i|f|2,o[4+(n=t+f|0)>>2]=3|a,o[b+4>>2]=1|o[b+4>>2],j(n,a)}else if(o[860]!=(0|b))if(o[859]!=(0|b)){if(2&(k=o[b+4>>2]))break e;if((u=n+(-8&k)|0)>>>0<f>>>0)break e;s=u-f|0;f:if(k>>>0<=255){if((0|(a=o[b+12>>2]))==(0|(n=o[b+8>>2]))){l=3416,v=o[854]&_e(k>>>3|0),o[l>>2]=v;break f}o[n+12>>2]=a,o[a+8>>2]=n}else{c=o[b+24>>2];i:if((0|b)==(0|(n=o[b+12>>2]))){a:{if(!(k=o[(a=b+20|0)>>2])){if(!(k=o[b+16>>2]))break a;a=b+16|0}for(;A=a,(k=o[(a=(n=k)+20|0)>>2])||(a=n+16|0,k=o[n+16>>2]););o[A>>2]=0;break i}n=0}else a=o[b+8>>2],o[a+12>>2]=n,o[n+8>>2]=a;if(c){a=o[b+28>>2];i:{if(o[(k=3720+(a<<2)|0)>>2]==(0|b)){if(o[k>>2]=n,n)break i;l=3420,v=o[855]&_e(a),o[l>>2]=v;break f}if(o[(o[c+16>>2]==(0|b)?16:20)+c>>2]=n,!n)break f}o[n+24>>2]=c,(a=o[b+16>>2])&&(o[n+16>>2]=a,o[a+24>>2]=n),(a=o[b+20>>2])&&(o[n+20>>2]=a,o[a+24>>2]=n)}}s>>>0<=15?(o[t+4>>2]=1&i|u|2,o[4+(a=t+u|0)>>2]=1|o[a+4>>2]):(o[t+4>>2]=1&i|f|2,o[4+(a=t+f|0)>>2]=3|s,o[4+(n=t+u|0)>>2]=1|o[n+4>>2],j(a,s))}else{if((n=n+o[856]|0)>>>0<f>>>0)break e;(a=n-f|0)>>>0>=16?(o[t+4>>2]=1&i|f|2,o[4+(k=t+f|0)>>2]=1|a,o[(n=n+t|0)>>2]=a,o[n+4>>2]=-2&o[n+4>>2]):(o[t+4>>2]=n|1&i|2,o[4+(a=n+t|0)>>2]=1|o[a+4>>2],a=0),o[859]=k,o[856]=a}else{if((n=n+o[857]|0)>>>0<=f>>>0)break e;o[t+4>>2]=1&i|f|2,n=n-f|0,o[4+(a=t+f|0)>>2]=1|n,o[857]=n,o[860]=a}a=t}else{if(f>>>0<256)break e;if(n>>>0>=f+4>>>0&&(a=t,n-f>>>0<=o[974]<<1>>>0))break e;a=0}return a?a+8|0:(a=T(r))?(N(a,e,r>>>0>(t=(3&(t=o[e-4>>2])?-4:-8)+(-8&t)|0)>>>0?t:r),x(e),a):0}function L(e,r){var f=0,i=0,a=0,n=0,b=0,k=0,u=p(0),c=0,s=p(0);for(i=o[o[o[r+4>>2]+8>>2]>>2];;){e:{if(l[i+14|0])for(;i=o[o[o[(r=i)+4>>2]+8>>2]>>2],l[i+14|0];);r:{f:{i:{a:{if(l[r+14|0])f=r;else{if(!(f=o[o[o[r+4>>2]+4>>2]>>2]))break a;if(i=r,!l[f+14|0])break a}t[f+14|0]=0,a=o[f>>2],r=o[o[a+4>>2]+16>>2],b=o[i>>2];n:if((0|r)!=o[o[b+4>>2]+16>>2]){u=h[r+28>>2],c=o[o[o[f+4>>2]+8>>2]>>2],n=o[c>>2],k=o[o[n+4>>2]+16>>2];t:{if(!(!(u<(s=h[k+28>>2]))&(!(h[r+32>>2]<=h[k+32>>2])|u!=s))){if(te(r,k,o[a+16>>2])<p(0)){r=f;break n}if(t[f+14|0]=1,t[o[o[o[f+4>>2]+4>>2]>>2]+14|0]=1,!(r=V(a)))break r;if(K(o[n+4>>2],r))break t;break e}if(te(k,r,o[n+16>>2])>p(0)){r=f;break n}if(t[c+14|0]=1,t[f+14|0]=1,!(r=V(n)))break e;if(!K(o[a+12>>2],o[n+4>>2]))break e;r=o[r+4>>2]}if(t[o[r+20>>2]+21|0]=l[f+12|0],l[i+15|0]){if(o[o[i>>2]+24>>2]=0,Pe(o[i+4>>2]),x(i),!Z(b))break e;i=o[o[o[f+4>>2]+8>>2]>>2],b=o[i>>2],r=f}else if(l[f+15|0]){if(o[o[f>>2]+24>>2]=0,Pe(o[f+4>>2]),x(f),!Z(a))break e;r=o[o[o[i+4>>2]+4>>2]>>2],a=o[r>>2]}else r=f}else r=f;if(o[a+16>>2]==o[b+16>>2])break f;if(f=o[o[a+4>>2]+16>>2],n=o[o[b+4>>2]+16>>2],l[i+15|0]|l[r+15|0]|(0|f)==(0|n))break i;if((0|(k=f))!=(0|(f=o[e+72>>2]))&(0|f)!=(0|n))break i;if(!Q(e,r))break f}return}D(e,r)}if(o[a+16>>2]!=o[b+16>>2])continue;if(n=o[a+4>>2],f=o[b+4>>2],o[n+16>>2]!=o[f+16>>2])continue;if(o[b+28>>2]=o[b+28>>2]+o[a+28>>2],o[f+28>>2]=o[f+28>>2]+o[n+28>>2],o[o[r>>2]+24>>2]=0,Pe(o[r+4>>2]),x(r),!Z(a))break e;r=o[o[o[i+4>>2]+4>>2]>>2];continue}}break}Be(e+1740|0,1),A()}function Y(e,r,f,i,a,n){var b=0,k=0,u=0,c=0,s=0;e:{for(;;){if(k=o[f+4>>2],!(b=T(16)))break e;if(o[b>>2]=k,u=Ce(o[e+64>>2],o[r+4>>2],b),o[b+4>>2]=u,!u)break e;if(t[b+13|0]=0,t[b+14|0]=0,t[b+15|0]=0,o[k+24>>2]=b,(0|i)==(0|(f=o[f+8>>2])))break}if(f=o[o[o[r+4>>2]+8>>2]>>2],k=o[o[f>>2]+4>>2],a=a||o[k+8>>2],o[k+16>>2]==o[a+16>>2]){if(o[k+8>>2]!=(0|a)){if(!K(o[o[k+4>>2]+12>>2],k))break e;if(!K(o[o[a+4>>2]+12>>2],k))break e}i=(a=o[r+8>>2])-(u=o[k+28>>2])|0,o[f+8>>2]=i;r:{f:switch(o[e+56>>2]-100130|0){case 4:b=i-2>>>0<4294967293;break r;case 3:b=i>>>31|0;break r;case 2:b=(0|i)>0;break r;case 1:b=(0|a)!=(0|u);break r;case 0:break f;default:break r}b=1&i}if(t[f+12|0]=b,t[r+14|0]=1,u=o[o[o[f+4>>2]+8>>2]>>2],i=o[o[u>>2]+4>>2],o[i+16>>2]==o[k+16>>2])for(a=f+4|0;;){if(r=u,o[(b=i)+8>>2]!=(0|k)){if(!K(o[o[b+4>>2]+12>>2],b))break e;if(!K(o[o[k+4>>2]+12>>2],b))break e}i=(c=o[f+8>>2])-(s=o[b+28>>2])|0,o[r+8>>2]=i;r:{f:switch(o[e+56>>2]-100130|0){case 0:u=1&i;break r;case 1:u=(0|c)!=(0|s);break r;case 2:u=(0|i)>0;break r;case 3:u=i>>>31|0;break r;case 4:break f;default:break r}u=i-2>>>0<4294967293}if(t[r+12|0]=u,t[f+14|0]=1,D(e,f)&&(o[b+28>>2]=o[b+28>>2]+o[k+28>>2],i=o[b+4>>2],o[i+28>>2]=o[i+28>>2]+o[o[k+4>>2]+28>>2],o[o[f>>2]+24>>2]=0,Pe(o[a>>2]),x(f),!Z(k)))break e;if(a=r+4|0,u=o[o[o[(f=r)+4>>2]+8>>2]>>2],i=o[o[u>>2]+4>>2],k=b,o[i+16>>2]!=o[b+16>>2])break}else r=f}return t[r+14|0]=1,void(n&&L(e,r))}Be(e+1740|0,1),A()}function Z(e){var r,f=0,i=0,a=0,n=0,b=0;if(n=o[e+4>>2],(0|(r=o[n+20>>2]))!=(0|(i=o[e+20>>2]))){for(f=a=o[i+8>>2];o[f+20>>2]=r,(0|a)!=(0|(f=o[f+12>>2])););f=o[i>>2],a=o[i+4>>2],o[f+4>>2]=a,o[a>>2]=f,x(i)}if((0|(a=o[e+8>>2]))!=(0|e)){if(b=o[e+4>>2],f=o[b+12>>2],o[o[b+20>>2]+8>>2]=f,o[o[e+16>>2]+8>>2]=a,b=o[f+8>>2],o[o[a+4>>2]+12>>2]=f,o[o[b+4>>2]+12>>2]=e,o[e+8>>2]=b,o[f+8>>2]=a,(0|i)==(0|r)){if(!(i=T(24)))return 0;for(f=o[e+20>>2],a=o[f+4>>2],o[i+4>>2]=a,o[a>>2]=i,o[i>>2]=f,o[f+4>>2]=i,o[i+12>>2]=0,o[i+16>>2]=0,o[i+8>>2]=e,t[i+20|0]=0,t[i+21|0]=l[f+21|0],f=e;o[f+20>>2]=i,(0|(f=o[f+12>>2]))!=(0|e););}}else{for(i=o[e+16>>2],f=a=o[i+8>>2];o[f+16>>2]=0,(0|a)!=(0|(f=o[f+8>>2])););f=o[i>>2],a=o[i+4>>2],o[f+4>>2]=a,o[a>>2]=f,x(i)}if((0|(f=o[n+8>>2]))!=(0|n))i=o[o[n+4>>2]+12>>2],o[o[e+20>>2]+8>>2]=i,o[o[n+16>>2]+8>>2]=f,a=o[i+8>>2],o[o[f+4>>2]+12>>2]=i,o[o[a+4>>2]+12>>2]=n,o[n+8>>2]=a,o[i+8>>2]=f;else{for(i=o[n+16>>2],f=a=o[i+8>>2];o[f+16>>2]=0,(0|a)!=(0|(f=o[f+8>>2])););for(f=o[i>>2],a=o[i+4>>2],o[f+4>>2]=a,o[a>>2]=f,x(i),i=o[n+20>>2],f=n=o[i+8>>2];o[f+20>>2]=0,(0|n)!=(0|(f=o[f+12>>2])););f=o[i>>2],n=o[i+4>>2],o[f+4>>2]=n,o[n>>2]=f,x(i)}return f=o[e+4>>2],f=o[(e=e>>>0>f>>>0?f:e)>>2],i=o[o[e+4>>2]>>2],o[o[f+4>>2]>>2]=i,o[o[i+4>>2]>>2]=f,x(e),1}function J(e,r){var f=0,i=0,a=0,n=0,b=0,k=0,u=0,c=0,s=0,A=0;e:if(f=T(64)){if(k=o[e+4>>2],n=o[(i=e>>>0>k>>>0?k:e)+4>>2],a=o[n>>2],o[f+32>>2]=a,o[o[a+4>>2]>>2]=f,o[f>>2]=i,i=n,n=f+32|0,o[i>>2]=n,o[f+16>>2]=0,o[f+20>>2]=0,o[f+12>>2]=n,o[f+4>>2]=n,o[f+24>>2]=0,o[f+28>>2]=0,o[f+48>>2]=0,o[f+52>>2]=0,o[f+44>>2]=f,o[f+40>>2]=n,o[f+36>>2]=f,o[f+56>>2]=0,o[f+60>>2]=0,o[f+8>>2]=f,a=n,u=f,(0|(i=b=o[r+20>>2]))!=(0|(c=o[e+20>>2]))){for(i=a=o[i+8>>2];o[i+20>>2]=c,(0|a)!=(0|(i=o[i+12>>2])););i=o[b>>2],a=o[b+4>>2],o[i+4>>2]=a,o[a>>2]=i,x(b),k=o[e+4>>2],u=o[f+8>>2],a=o[u+4>>2],i=o[e+20>>2]}if(e=o[e+12>>2],s=o[e+8>>2],o[a+12>>2]=e,o[o[s+4>>2]+12>>2]=f,o[f+8>>2]=s,o[e+8>>2]=u,e=o[r+8>>2],a=o[f+40>>2],o[o[a+4>>2]+12>>2]=r,o[o[e+4>>2]+12>>2]=n,o[f+40>>2]=e,o[r+8>>2]=a,o[f+16>>2]=o[k+16>>2],e=o[r+16>>2],o[f+52>>2]=i,o[f+48>>2]=e,o[f+20>>2]=i,o[i+8>>2]=n,(0|b)==(0|c)){if(!(e=T(24)))break e;for(r=o[i+4>>2],o[e+4>>2]=r,o[r>>2]=e,o[e>>2]=i,o[i+4>>2]=e,o[e+12>>2]=0,o[e+16>>2]=0,o[e+8>>2]=f,t[e+20|0]=0,t[e+21|0]=l[i+21|0],i=f;o[i+20>>2]=e,(0|(i=o[i+12>>2]))!=(0|f););}A=f}return A}function N(e,r,f){var i=0,a=0;if(f>>>0>=512)P(0|e,0|r,0|f);else{i=e+f|0;e:if(3&(e^r))if(i>>>0<4)f=e;else if((a=i-4|0)>>>0<e>>>0)f=e;else for(f=e;t[0|f]=l[0|r],t[f+1|0]=l[r+1|0],t[f+2|0]=l[r+2|0],t[f+3|0]=l[r+3|0],r=r+4|0,a>>>0>=(f=f+4|0)>>>0;);else{r:if(3&e)if(f)for(f=e;;){if(t[0|f]=l[0|r],r=r+1|0,!(3&(f=f+1|0)))break r;if(!(f>>>0<i>>>0))break}else f=e;else f=e;if(!((e=-4&i)>>>0<64||(a=e+-64|0)>>>0<f>>>0))for(;o[f>>2]=o[r>>2],o[f+4>>2]=o[r+4>>2],o[f+8>>2]=o[r+8>>2],o[f+12>>2]=o[r+12>>2],o[f+16>>2]=o[r+16>>2],o[f+20>>2]=o[r+20>>2],o[f+24>>2]=o[r+24>>2],o[f+28>>2]=o[r+28>>2],o[f+32>>2]=o[r+32>>2],o[f+36>>2]=o[r+36>>2],o[f+40>>2]=o[r+40>>2],o[f+44>>2]=o[r+44>>2],o[f+48>>2]=o[r+48>>2],o[f+52>>2]=o[r+52>>2],o[f+56>>2]=o[r+56>>2],o[f+60>>2]=o[r+60>>2],r=r- -64|0,a>>>0>=(f=f- -64|0)>>>0;);if(e>>>0<=f>>>0)break e;for(;o[f>>2]=o[r>>2],r=r+4|0,e>>>0>(f=f+4|0)>>>0;);}if(f>>>0<i>>>0)for(;t[0|f]=l[0|r],r=r+1|0,(0|i)!=(0|(f=f+1|0)););}}function V(e){var r,f=0,i=0,a=0,n=0,t=0;if(r=e,e=0,(f=T(64))&&(a=o[r+4>>2],n=o[(i=a>>>0<r>>>0?a:r)+4>>2],t=o[n>>2],o[f+32>>2]=t,o[o[t+4>>2]>>2]=f,o[f>>2]=i,i=f+32|0,o[n>>2]=i,o[f+16>>2]=0,o[f+20>>2]=0,o[f+12>>2]=i,o[f+4>>2]=i,o[f+24>>2]=0,o[f+28>>2]=0,o[f+48>>2]=0,o[f+52>>2]=0,o[f+40>>2]=i,o[f+36>>2]=f,o[f+56>>2]=0,o[f+60>>2]=0,o[f+8>>2]=f,n=o[r+12>>2],t=o[n+8>>2],o[f+44>>2]=n,o[o[t+4>>2]+12>>2]=f,o[f+8>>2]=t,o[n+8>>2]=f,n=o[a+16>>2],o[f+16>>2]=n,a=T(40))){for(e=o[n+4>>2],o[a+4>>2]=e,o[e>>2]=a,o[a>>2]=n,o[n+4>>2]=a,o[a+12>>2]=0,o[a+8>>2]=i,e=i;o[e+16>>2]=a,(0|i)!=(0|(e=o[e+8>>2])););e=o[r+20>>2],o[f+20>>2]=e,o[f+52>>2]=e,e=f}return e?(f=o[e+4>>2],e=o[r+4>>2],i=o[o[e+4>>2]+12>>2],a=o[i+8>>2],n=o[e+8>>2],o[o[n+4>>2]+12>>2]=i,o[o[a+4>>2]+12>>2]=e,o[e+8>>2]=a,o[i+8>>2]=n,i=o[f+8>>2],a=o[e+8>>2],o[o[a+4>>2]+12>>2]=f,o[o[i+4>>2]+12>>2]=e,o[e+8>>2]=i,o[f+8>>2]=a,o[e+16>>2]=o[f+16>>2],i=o[f+4>>2],o[o[i+16>>2]+8>>2]=i,o[i+20>>2]=o[e+20>>2],o[f+28>>2]=o[r+28>>2],o[i+28>>2]=o[e+28>>2],f):0}function z(e){var r,f=0,i=0,a=0,n=0,t=0,b=0,k=0,u=0;if((0|(n=o[40+(e|=0)>>2]))!=(0|(r=e+40|0)))for(;;){if(u=o[n>>2],!l[n+21|0]){for(k=o[n+8>>2],e=o[k+12>>2];;){if(o[e+20>>2]=0,b=o[e+12>>2],f=o[e+4>>2],!o[f+20>>2]){if(a=o[e+16>>2],(0|(i=o[e+8>>2]))!=(0|e))o[a+8>>2]=i,a=o[f+12>>2],t=o[a+8>>2],o[o[i+4>>2]+12>>2]=a,o[o[t+4>>2]+12>>2]=e,o[e+8>>2]=t,o[a+8>>2]=i;else{for(f=i=o[a+8>>2];o[f+16>>2]=0,(0|i)!=(0|(f=o[f+8>>2])););f=o[a>>2],i=o[a+4>>2],o[f+4>>2]=i,o[i>>2]=f,x(a),f=o[e+4>>2]}if(a=o[f+16>>2],(0|(i=o[f+8>>2]))!=(0|f))o[a+8>>2]=i,a=o[o[f+4>>2]+12>>2],t=o[a+8>>2],o[o[i+4>>2]+12>>2]=a,o[o[t+4>>2]+12>>2]=f,o[f+8>>2]=t,o[a+8>>2]=i;else{for(f=i=o[a+8>>2];o[f+16>>2]=0,(0|i)!=(0|(f=o[f+8>>2])););f=o[a>>2],i=o[a+4>>2],o[f+4>>2]=i,o[i>>2]=f,x(a),f=o[e+4>>2]}a=o[(f=e>>>0>f>>>0?f:e)>>2],i=o[o[f+4>>2]>>2],o[o[a+4>>2]>>2]=i,o[o[i+4>>2]>>2]=a,x(f)}if(f=(0|e)!=(0|k),e=b,!f)break}e=o[n>>2],b=o[n+4>>2],o[e+4>>2]=b,o[b>>2]=e,x(n)}if((0|r)==(0|(n=u)))break}}function K(e,r){var f=0,i=0,a=0,n=0,b=0,k=0;if((0|e)!=(0|r)){if((0|(i=o[r+16>>2]))!=(0|(b=o[e+16>>2]))){for(f=a=o[i+8>>2];o[f+16>>2]=b,(0|a)!=(0|(f=o[f+8>>2])););f=o[i>>2],a=o[i+4>>2],o[f+4>>2]=a,o[a>>2]=f,x(i)}if((0|(k=o[e+20>>2]))!=(0|(a=o[r+20>>2]))){for(f=n=o[a+8>>2];o[f+20>>2]=k,(0|n)!=(0|(f=o[f+12>>2])););f=o[a>>2],n=o[a+4>>2],o[f+4>>2]=n,o[n>>2]=f,x(a)}if(f=o[e+8>>2],n=o[r+8>>2],o[o[n+4>>2]+12>>2]=e,o[o[f+4>>2]+12>>2]=r,o[r+8>>2]=f,o[e+8>>2]=n,(0|i)==(0|b)){if(!(i=T(40)))return 0;for(f=o[e+16>>2],b=o[f+4>>2],o[i+4>>2]=b,o[b>>2]=i,o[i>>2]=f,o[f+4>>2]=i,o[i+12>>2]=0,o[i+8>>2]=r,f=r;o[f+16>>2]=i,(0|(f=o[f+8>>2]))!=(0|r););o[o[e+16>>2]+8>>2]=e}if((0|a)==(0|k)){if(!(i=T(24)))return 0;for(f=o[e+20>>2],a=o[f+4>>2],o[i+4>>2]=a,o[a>>2]=i,o[i>>2]=f,o[f+4>>2]=i,o[i+12>>2]=0,o[i+16>>2]=0,o[i+8>>2]=r,t[i+20|0]=0,t[i+21|0]=l[f+21|0],f=r;o[f+20>>2]=i,(0|(f=o[f+12>>2]))!=(0|r););o[o[e+20>>2]+8>>2]=e}}return 1}function q(e,r){var f=0,i=0,a=0,n=0,t=0,b=0,k=p(0),u=0,c=0,s=p(0);if(o[e+20>>2]){i=r,f=o[e>>2],e=o[f+8>>2]+1|0,o[f+8>>2]=e;e:{if(!((0|(r=o[f+12>>2]))>=e<<1)){if(o[f+12>>2]=r<<1,a=o[f+4>>2],r=G(n=o[f>>2],r<<3|4),o[f>>2]=r,!r){o[f>>2]=n,a=2147483647;break e}if(r=G(o[f+4>>2],8+(o[f+12>>2]<<3)|0),o[f+4>>2]=r,!r){o[f+4>>2]=a,a=2147483647;break e}}if(n=o[f+4>>2],a=e,(r=o[f+16>>2])&&(o[f+16>>2]=o[4+(n+(r<<3)|0)>>2],a=r),t=o[f>>2],o[t+(e<<2)>>2]=a,o[(b=n+(a<<3)|0)>>2]=i,o[b+4>>2]=e,o[f+20>>2]){r:if(e>>>0<2)r=e;else for(k=h[i+28>>2];;){if(f=o[((r=e>>1)<<2)+t>>2],c=o[(u=n+(f<<3)|0)>>2],(s=h[c+28>>2])<k){r=e;break r}if(!(!(h[c+32>>2]<=h[i+32>>2])|k!=s)){r=e;break r}if(o[(e<<2)+t>>2]=f,o[u+4>>2]=e,!((e=r)>>>0>1))break}o[(r<<2)+t>>2]=a,o[b+4>>2]=r}}return a}if(i=(f=o[e+12>>2])+1|0,o[e+12>>2]=i,a=o[e+4>>2],(0|(n=i))<(0|(i=o[e+16>>2])))i=a;else if(o[e+16>>2]=i<<1,i=G(a,i<<3),o[e+4>>2]=i,!i)return o[e+4>>2]=a,2147483647;return o[(f<<2)+i>>2]=r,-1^f}function $(e){var r,f,i=0,a=0,n=0,b=0,k=0;r=T(40),f=T(40);e:{if(!(n=T(24))||!r|!f){if(r&&x(r),f&&x(f),!n)break e;return x(n),0}if(!(i=T(64)))return 0;for(a=o[e+68>>2],b=o[(a=a>>>0<(b=e- -64|0)>>>0?a:b)+4>>2],k=o[b>>2],o[i+32>>2]=k,o[o[k+4>>2]>>2]=i,o[i>>2]=a,a=b,b=i+32|0,o[a>>2]=b,o[i+16>>2]=0,o[i+20>>2]=0,o[i+12>>2]=b,o[i+4>>2]=b,o[i+24>>2]=0,o[i+28>>2]=0,o[i+48>>2]=0,o[i+52>>2]=0,o[i+44>>2]=i,o[i+40>>2]=b,o[i+36>>2]=i,o[i+56>>2]=0,o[i+60>>2]=0,o[i+8>>2]=i,a=o[e+4>>2],o[r+4>>2]=a,o[a>>2]=r,o[r+12>>2]=0,o[r+8>>2]=i,a=i;o[a+16>>2]=r,(0|(a=o[a+8>>2]))!=(0|i););for(o[f+4>>2]=r,o[r>>2]=f,o[f>>2]=e,o[e+4>>2]=f,o[f+12>>2]=0,o[f+8>>2]=b,a=b;o[a+16>>2]=f,(0|b)!=(0|(a=o[a+8>>2])););for(a=o[e+44>>2],o[n+4>>2]=a,o[a>>2]=n,o[n>>2]=e+40,o[e+44>>2]=n,o[n+12>>2]=0,o[n+16>>2]=0,o[n+8>>2]=i,t[n+20|0]=0,t[n+21|0]=l[e+61|0],a=i;o[a+20>>2]=n,(0|(a=o[a+12>>2]))!=(0|i););}return i}function X(e){e|=0;var r=0,f=0,i=0,a=0,n=0,k=p(0);if((r=T(128))&&(o[r+8>>2]=0,o[r+12>>2]=0,f=r+40|0,o[r+44>>2]=f,o[r+48>>2]=0,o[r+52>>2]=0,o[r+40>>2]=f,b[r+54>>1]=0,b[r+56>>1]=0,b[r+58>>1]=0,b[r+60>>1]=0,o[r+72>>2]=0,o[r+76>>2]=0,f=r+96|0,o[r+68>>2]=f,i=r- -64|0,o[r+64>>2]=i,o[r+80>>2]=0,o[r+84>>2]=0,o[r+88>>2]=0,o[r+92>>2]=0,o[r+104>>2]=0,o[r+108>>2]=0,o[r+100>>2]=i,o[r+96>>2]=f,o[r+112>>2]=0,o[r+116>>2]=0,o[r+120>>2]=0,o[r+124>>2]=0,o[r>>2]=r,o[r+4>>2]=r),o[e+8>>2]=r,!r)return 0;e:{if((0|(r=o[e+112>>2]))>0)for(a=116+((r<<4)+e|0)|0,f=e+116|0,r=o[e+4>>2];;){n=o[f+12>>2];r:{if(!r){if(i=0,!(r=$(o[e+8>>2])))break e;if(K(r,o[r+4>>2]))break r;break e}if(!V(r))return 0;r=o[r+12>>2]}if(i=o[r+16>>2],o[i+12>>2]=n,h[i+16>>2]=h[f>>2],k=h[f+4>>2],o[i+24>>2]=0,h[i+20>>2]=k,o[r+28>>2]=1,o[o[r+4>>2]+28>>2]=-1,o[e+4>>2]=r,!(a>>>0>(f=f+16|0)>>>0))break}t[e+108|0]=0,o[e+112>>2]=0,i=1}return 0|i}function ee(e,r){r|=0;var f=0;if((0|(f=o[(e|=0)>>2]))!=(0|r))for(;;){e:if(r>>>0>f>>>0){r:switch(0|f){case 0:11==(0|(f=o[e+1732>>2]))?We[o[e+12>>2]](100151):We[0|f](100151,o[e+1896>>2]),o[e>>2]&&ee(e,0),o[e+112>>2]=0,f=1,o[e>>2]=1,t[e+108|0]=0,o[e+1896>>2]=0,o[e+8>>2]=0;break e;case 1:break r;default:break e}if(11==(0|(f=o[e+1732>>2]))?We[o[e+12>>2]](100152):We[0|f](100152,o[e+1896>>2]),1!=o[e>>2]&&ee(e,1),o[e>>2]=2,o[e+4>>2]=0,f=2,o[e+112>>2]<=0)break e;t[e+108|0]=1}else{r:switch(f-1|0){case 1:11==(0|(f=o[e+1732>>2]))?We[o[e+12>>2]](100154):We[0|f](100154,o[e+1896>>2]),2!=o[e>>2]&&ee(e,2),f=1,o[e>>2]=1;break e;case 0:break r;default:break e}11==(0|(f=o[e+1732>>2]))?We[o[e+12>>2]](100153):We[0|f](100153,o[e+1896>>2]),(f=o[e+8>>2])&&ve(f),f=0,o[e+8>>2]=0,o[e>>2]=0,o[e+4>>2]=0}if((0|r)==(0|f))break}}function re(e,r){var f=0,i=0,a=0,n=0,b=0,k=0;o[e+8>>2]=7,o[e+4>>2]=0,f=o[r+20>>2];e:if(l[f+21|0]){a=r;r:{f:{for(;;){if(l[f+20|0])break e;if(t[f+20|0]=1,o[f+16>>2]=i,a=o[o[a+12>>2]+4>>2],i=o[a+20>>2],l[i+21|0]){if(l[i+20|0])break f;if(t[i+20|0]=1,o[i+16>>2]=f,n=n+2|0,a=o[a+8>>2],f=o[a+20>>2],l[f+21|0])continue;break e}break}n|=1;break r}n|=1}i=f}else a=r;b=o[r+4>>2],f=o[b+20>>2];e:if(!(!l[f+21|0]|l[f+20|0])){r:{f:{for(;;){if(t[f+20|0]=1,o[f+16>>2]=i,r=o[b+12>>2],b=o[r+4>>2],i=o[b+20>>2],l[i+21|0]){if(l[i+20|0])break f;if(t[i+20|0]=1,o[i+16>>2]=f,k=k+2|0,r=o[o[b+8>>2]+4>>2],b=o[r+4>>2],f=o[b+20>>2],!l[f+21|0])break e;if(!l[f+20|0])continue;break e}break}k|=1;break r}k|=1}i=f}f=n+k|0,o[e>>2]=f;e:{if(1&n){if(!(1&k))break e;o[e>>2]=f-1,r=r+8|0}else r=a+4|0;r=o[r>>2]}if(o[e+4>>2]=r,i)for(;t[i+20|0]=0,i=o[i+16>>2];);}function fe(e,r,f){var i=0,a=0,n=0,t=0,b=0,o=0,k=0,u=0,c=0;e:{r:{f:{i:{a:{n:{t:{b:{o:{k:{if(r){if(!f)break k;break o}F=0,e=(e>>>0)/(f>>>0)|0;break e}if(!e)break b;break t}if(!(f-1&f))break n;t=0-(n=(g(f)+33|0)-g(r)|0)|0;break i}F=0,e=(r>>>0)/0|0;break e}if((i=32-g(r)|0)>>>0<31)break a;break f}if(1==(0|f))break r;f=31&(n=Fe(f)),(63&n)>>>0>=32?e=r>>>f|0:(i=r>>>f|0,e=((1<<f)-1&r)<<32-f|e>>>f),F=i;break e}n=i+1|0,t=63-i|0}if(a=31&(i=63&n),i>>>0>=32?(i=0,b=r>>>a|0):(i=r>>>a|0,b=((1<<a)-1&r)<<32-a|e>>>a),a=31&(t&=63),t>>>0>=32?(r=e<<a,e=0):(r=(1<<a)-1&e>>>32-a|r<<a,e<<=a),n)for(c=-1==(0|(t=f-1|0))?-1:0;o=i<<1|b>>>31,b=(i=b<<1|r>>>31)-(k=f&(a=c-(o+(i>>>0>t>>>0)|0)>>31))|0,i=o-(i>>>0<k>>>0)|0,r=r<<1|e>>>31,e=u|e<<1,u=1&a,n=n-1|0;);F=r<<1|e>>>31,e=u|e<<1;break e}e=0,r=0}F=r}return e}function ie(e){var r,f,i,a,n=0,t=0,b=0,k=p(0),u=0,c=p(0),s=0,A=0,l=0,v=0;if(f=o[e+4>>2],r=o[e>>2],t=o[r+4>>2],a=o[(n=f+(t<<3)|0)>>2],!((0|(i=o[e+8>>2]))<=0)&&(s=o[(i<<2)+r>>2],o[r+4>>2]=s,o[4+(A=(s<<3)+f|0)>>2]=1,o[n>>2]=0,o[n+4>>2]=o[e+16>>2],l=i-1|0,o[e+8>>2]=l,o[e+16>>2]=t,1!=(0|i))){for(n=1;(0|l)<=(0|(e=n<<1))||(b=o[(o[((t=1|e)<<2)+r>>2]<<3)+f>>2],k=h[b+28>>2],u=o[(o[(e<<2)+r>>2]<<3)+f>>2],!(k<(c=h[u+28>>2]))&(!(h[b+32>>2]<=h[u+32>>2])|k!=c)||(e=t)),!((0|e)>=(0|i)||(t=o[A>>2],k=h[t+28>>2],b=o[(e<<2)+r>>2],v=o[(u=(b<<3)+f|0)>>2],k<(c=h[v+28>>2])|k==c&h[t+32>>2]<=h[v+32>>2]));)o[(n<<2)+r>>2]=b,o[u+4>>2]=n,n=e;o[(n<<2)+r>>2]=s,o[A+4>>2]=n}return a}function ae(e,r,f){switch(r-9|0){case 0:return r=o[f>>2],o[f>>2]=r+4,void(o[e>>2]=o[r>>2]);case 6:return r=o[f>>2],o[f>>2]=r+4,r=b[r>>1],o[e>>2]=r,void(o[e+4>>2]=r>>31);case 7:return r=o[f>>2],o[f>>2]=r+4,o[e>>2]=v[r>>1],void(o[e+4>>2]=0);case 8:return r=o[f>>2],o[f>>2]=r+4,r=t[0|r],o[e>>2]=r,void(o[e+4>>2]=r>>31);case 9:return r=o[f>>2],o[f>>2]=r+4,o[e>>2]=l[0|r],void(o[e+4>>2]=0);case 16:return r=o[f>>2]+7&-8,o[f>>2]=r+8,void(w[e>>3]=w[r>>3]);case 17:A();default:return;case 1:case 4:case 14:return r=o[f>>2],o[f>>2]=r+4,r=o[r>>2],o[e>>2]=r,void(o[e+4>>2]=r>>31);case 2:case 5:case 11:case 15:return r=o[f>>2],o[f>>2]=r+4,o[e>>2]=o[r>>2],void(o[e+4>>2]=0);case 3:case 10:case 12:case 13:}r=o[f>>2]+7&-8,o[f>>2]=r+8,f=o[r+4>>2],o[e>>2]=o[r>>2],o[e+4>>2]=f}function ne(e,r,f){var i=0,a=0;if(f&&(t[0|e]=r,t[(i=e+f|0)-1|0]=r,!(f>>>0<3||(t[e+2|0]=r,t[e+1|0]=r,t[i-3|0]=r,t[i-2|0]=r,f>>>0<7||(t[e+3|0]=r,t[i-4|0]=r,f>>>0<9||(a=(i=0-e&3)+e|0,e=y(255&r,16843009),o[a>>2]=e,o[(r=(f=f-i&-4)+a|0)-4>>2]=e,f>>>0<9||(o[a+8>>2]=e,o[a+4>>2]=e,o[r-8>>2]=e,o[r-12>>2]=e,f>>>0<25||(o[a+24>>2]=e,o[a+20>>2]=e,o[a+16>>2]=e,o[a+12>>2]=e,o[r-16>>2]=e,o[r-20>>2]=e,o[r-24>>2]=e,o[r-28>>2]=e,(f=f-(r=4&a|24)|0)>>>0<32))))))))for(e=ge(e,0,1,1),i=F,r=r+a|0;o[r+24>>2]=e,o[r+28>>2]=i,o[r+16>>2]=e,o[r+20>>2]=i,o[r+8>>2]=e,o[r+12>>2]=i,o[r>>2]=e,o[r+4>>2]=i,r=r+32|0,(f=f-32|0)>>>0>31;);}function te(e,r,f){var i,a=p(0),n=0,t=p(0),b=p(0),k=0,u=p(0),c=p(0),s=p(0);U=i=U+-64|0;e:{r:{if(!(!(k=(a=h[r+28>>2])>(b=h[e+28>>2]))&(!(h[e+32>>2]<=h[r+32>>2])|a!=b))){if((t=h[f+28>>2])>a|a==t&h[r+32>>2]<=h[f+32>>2])break e;if(n=1,k)break r}n=0,a==b&&(n=h[e+32>>2]<=h[r+32>>2])}k=n,n=1,(t=h[f+28>>2])>a||(n=0,a==t&&(n=h[r+32>>2]<=h[f+32>>2])),u=h[e+32>>2],c=h[r+32>>2],s=h[f+32>>2],w[i+40>>3]=t,w[i+24>>3]=a,w[i+48>>3]=s,w[i+32>>3]=c,w[i+16>>3]=u,w[i+8>>3]=b,o[i+4>>2]=n,o[i>>2]=k,Ue(1092,i),t=h[f+28>>2],b=h[e+28>>2],a=h[r+28>>2]}return u=p(0),U=i- -64|0,b=p(a-b),a=p(t-a),p(b+a)>p(0)&&(t=h[r+32>>2],u=p(p(p(t-h[f+32>>2])*b)+p(a*p(t-h[e+32>>2])))),u}function be(e,r,f){switch(r-100100|0){case 0:return void(o[e+88>>2]=f||15);case 6:return void(o[e+1716>>2]=f||3);case 4:return t[e+80|0]=!!(0|f),void(o[e+92>>2]=f||14);case 10:return t[e+80|0]=!!(0|f),void(o[e+1720>>2]=f||4);case 1:return void(o[e+96>>2]=f||13);case 7:return void(o[e+1724>>2]=f||5);case 2:return void(o[e+100>>2]=f||12);case 8:return void(o[e+1728>>2]=f||6);case 3:return void(o[e+12>>2]=f||18);case 9:return void(o[e+1732>>2]=f||11);case 5:return void(o[e+76>>2]=f||17);case 11:return void(o[e+1736>>2]=f||10);case 12:return void(o[e+104>>2]=f||16)}11==(0|(r=o[e+1732>>2]))?We[o[e+12>>2]](100900):We[0|r](100900,o[e+1896>>2])}function oe(e,r,f){var i=0,a=0,n=0,b=0;i=o[r>>2];e:{if((0|r)!=(0|f))for(;;){if(t[r+15|0]=0,b=o[r+4>>2],n=o[o[b+8>>2]>>2],a=o[n>>2],o[a+16>>2]!=o[i+16>>2]){if(!l[n+15|0])return e=l[r+12|0],f=o[i+20>>2],o[f+8>>2]=i,t[f+21|0]=e,o[i+24>>2]=0,Pe(b),x(r),i;if(!(a=J(o[o[i+8>>2]+4>>2],o[a+4>>2])))break e;if(!Z(o[n>>2]))break e;o[n>>2]=a,t[n+15|0]=0,o[a+24>>2]=n}if(o[i+8>>2]!=(0|a)){if(!K(o[o[a+4>>2]+12>>2],a))break e;if(!K(i,a))break e}if(a=l[r+12|0],i=o[r>>2],b=o[i+20>>2],o[b+8>>2]=i,t[b+21|0]=a,o[i+24>>2]=0,Pe(o[r+4>>2]),x(r),i=o[n>>2],(0|f)==(0|(r=n)))break}return i}Be(e+1740|0,1),A()}function ke(e,r,f){var i,a,n=0;U=i=U-48|0,o[i+24>>2]=0,o[i+28>>2]=0,o[i+16>>2]=0,o[i+20>>2]=0,o[i+8>>2]=0,o[i+12>>2]=0,o[i>>2]=1056964608,o[i+4>>2]=1056964608,n=o[r+16>>2],o[i+16>>2]=o[n+12>>2],o[i+20>>2]=o[o[f+16>>2]+12>>2],h[i+36>>2]=h[n+16>>2],h[i+40>>2]=h[n+20>>2],h[i+44>>2]=h[n+24>>2],o[n+12>>2]=0,n=n+12|0,10==(0|(a=o[e+1736>>2]))?We[o[e+76>>2]](i+36|0,i+16|0,i,n):We[0|a](i+36|0,i+16|0,i,n,o[e+1896>>2]),o[n>>2]||(o[n>>2]=o[i+16>>2]),K(r,f)||(Be(e+1740|0,1),A()),U=i+48|0}function ue(e,r,f){var i,a=0,n=0;if(U=i=U-208|0,o[i+204>>2]=r,ne(r=i+160|0,0,40),o[i+200>>2]=o[i+204>>2],!((0|O(0,e,i+200|0,i+80|0,r,f))<0)){r=o[423]<0,a=o[404],o[404]=-33&a;e:{r:{if(o[416]){if(o[408])break r}else o[416]=80,o[411]=0,o[408]=0,o[409]=0,n=o[415],o[415]=i;if(Re(1616))break e}O(1616,e,i+200|0,i+80|0,i+160|0,f)}n&&(We[o[413]](1616,0,0),o[416]=0,o[415]=n,o[411]=0,o[408]=0,o[409]=0),o[404]=o[404]|32&a}U=i+208|0}function ce(e,r){if(!e)return 0;e:{r:{if(e){if(r>>>0<=127)break r;if(o[o[845]>>2]){if(r>>>0<=2047){t[e+1|0]=63&r|128,t[0|e]=r>>>6|192,e=2;break e}if(!(57344!=(-8192&r)&r>>>0>=55296)){t[e+2|0]=63&r|128,t[0|e]=r>>>12|224,t[e+1|0]=r>>>6&63|128,e=3;break e}if(r-65536>>>0<=1048575){t[e+3|0]=63&r|128,t[0|e]=r>>>18|240,t[e+2|0]=r>>>6&63|128,t[e+1|0]=r>>>12&63|128,e=4;break e}}else if(57216==(-128&r))break r;o[806]=25,e=-1}else e=1;break e}t[0|e]=r,e=1}return e}function se(e){var r,f=0,i=0,a=0,n=0,t=p(0),b=p(0);if(!(f=o[e+12>>2]))return ie(o[e>>2]);if(a=o[e+8>>2],r=o[o[(a+(f<<2)|0)-4>>2]>>2],i=o[e>>2],o[i+8>>2]&&(n=o[o[i+4>>2]+(o[o[i>>2]+4>>2]<<3)>>2],!(!((t=h[n+28>>2])<(b=h[r+28>>2]))&(!(h[n+32>>2]<=h[r+32>>2])|t!=b))))return ie(i);for(i=a-8|0,a=((0|f)>0?1:f)-1|0;;){if((0|f)<2)return o[e+12>>2]=a,r;if(n=f<<2,f=f-1|0,o[o[i+n>>2]>>2])break}return o[e+12>>2]=f,r}function Ae(e,r,f){var i=0,a=0,n=0;if(!(32&l[0|e]))e:{if(!(i=o[e+16>>2])){if(Re(e))break e;i=o[e+16>>2]}if(i-(a=o[e+20>>2])>>>0<f>>>0)We[o[e+36>>2]](e,r,f);else{r:{f:if(!(!f|o[e+80>>2]<0)){for(i=f;;){if(10!=l[(n=r+i|0)-1|0]){if(i=i-1|0)continue;break f}break}if(We[o[e+36>>2]](e,r,i)>>>0<i>>>0)break e;f=f-i|0,a=o[e+20>>2];break r}n=r}N(a,n,f),o[e+20>>2]=o[e+20>>2]+f}}}function le(e,r){var f=0,i=0,a=0;(f=T(16))&&(a=$(o[e+8>>2]))&&(i=o[a+16>>2],h[i+32>>2]=r,o[i+28>>2]=2112929218,i=o[o[a+4>>2]+16>>2],h[i+32>>2]=r,o[i+28>>2]=-34554430,o[e+72>>2]=i,t[f+15|0]=0,t[f+12|0]=0,o[f+8>>2]=0,o[f>>2]=a,t[f+13|0]=1,t[f+14|0]=0,i=f,f=Ce(a=o[e+64>>2],a,f),o[i+4>>2]=f,f)||(Be(e+1740|0,1),A())}function ve(e){var r=0,f=0,i=0;if((0|(r=o[40+(e|=0)>>2]))!=(0|(f=e+40|0)))for(;i=o[r>>2],x(r),(0|f)!=(0|(r=i)););if((0|(r=o[e>>2]))!=(0|e))for(;i=o[r>>2],x(r),(0|(r=i))!=(0|e););if((0|(r=o[e+64>>2]))!=(0|(f=e- -64|0)))for(;i=o[r>>2],x(r),(0|f)!=(0|(r=i)););x(e)}function de(e){var r=0,f=p(0),i=p(0);if(!(r=o[e+12>>2]))return e=o[e>>2],o[o[e+4>>2]+(o[o[e>>2]+4>>2]<<3)>>2];r=o[o[(o[e+8>>2]+(r<<2)|0)-4>>2]>>2],e=o[e>>2];e:{if(o[e+8>>2]){if(e=o[o[e+4>>2]+(o[o[e>>2]+4>>2]<<3)>>2],(f=h[e+28>>2])<(i=h[r+28>>2]))break e;if(f==i&&h[e+32>>2]<=h[r+32>>2])break e}e=r}return e}function he(e,r,f){var i=0,a=0,n=0,b=0;if(r)for(;n=f=f-1|0,b=(a=e)-ge(e=fe(e,r,10),i=F,10,0)|48,t[0|n]=b,a=r>>>0>9,r=i,a;);if(e)for(;r=(e>>>0)/10|0,t[0|(f=f-1|0)]=e-y(r,10)|48,i=e>>>0>9,e=r,i;);return f}function we(e,r,f,i){var a,n=0,t=0;if(a=o[980]+1|0,o[980]=a,o[e>>2]=a,i)for(;;){if(!o[(n=(t<<3)+f|0)>>2])return o[n>>2]=a,o[n+4>>2]=r,o[n+8>>2]=0,B=i,f;if((0|(t=t+1|0))==(0|i))break}return n=e,e=i<<1,r=we(n,r,G(f,i<<4|8),e),B=e,r}function ye(e,r){var f,i,a=0;if(s(+e),f=0|k(1),i=0|k(0),2047!=(0|(a=f>>>20&2047))){if(!a)return 0==e?a=0:(e=ye(0x10000000000000000*e,r),a=o[r>>2]+-64|0),o[r>>2]=a,e;o[r>>2]=a-1022,u(0,0|i),u(1,-2146435073&f|1071644672),e=+c()}return e}function pe(e){var r=0,f=0,i=0;if(t[o[e>>2]]-48>>>0>=10)return 0;for(;i=o[e>>2],f=-1,r>>>0<=214748364&&(f=(0|(f=t[0|i]-48|0))>(2147483647^(r=y(r,10)))?-1:f+r|0),o[e>>2]=i+1,r=f,t[i+1|0]-48>>>0<10;);return r}function me(e,r,f){var i=p(0),a=p(0),n=0,t=p(0),b=p(0);return i=h[r+28>>2],a=p(i-h[e+28>>2]),i=p(h[f+28>>2]-i),(t=p(a+i))>p(0)?(b=h[((n=i>a)?e:f)+32>>2],i=p(p(p(b-h[(n?f:e)+32>>2])*p((n?a:i)/t))+p(h[r+32>>2]-b))):i=p(0),i}function ge(e,r,f,i){var a,n,t,b,o=0,k=0;return b=y(o=f>>>16|0,k=e>>>16|0),o=(65535&(k=((t=y(a=65535&f,n=65535&e))>>>16|0)+y(k,a)|0))+y(o,n)|0,F=(y(r,f)+b|0)+y(e,i)+(k>>>16)+(o>>>16)|0,65535&t|o<<16}function Ce(e,r,f){for(var i=0;r=o[r+8>>2],(i=o[r>>2])&&!(0|We[o[e+16>>2]](o[e+12>>2],i,f)););return(e=T(12))&&(o[e>>2]=f,f=o[r+4>>2],o[e+4>>2]=f,o[f+8>>2]=e,o[e+8>>2]=r,o[r+4>>2]=e),e}function Ee(e,r,f,i,a){var n;if(U=n=U-256|0,!(73728&a|(0|f)<=(0|i))){if(ne(n,255&r,(f=(i=f-i|0)>>>0<256)?i:256),!f)for(;Ae(e,n,256),(i=i-256|0)>>>0>255;);Ae(e,n,i)}U=n+256|0}function Re(e){var r=0;return r=o[e+72>>2],o[e+72>>2]=r-1|r,8&(r=o[e>>2])?(o[e>>2]=32|r,-1):(o[e+4>>2]=0,o[e+8>>2]=0,r=o[e+44>>2],o[e+28>>2]=r,o[e+20>>2]=r,o[e+16>>2]=r+o[e+48>>2],0)}function Ie(e,r,f){var i=0,a=0,n=0;e:if(f)for(;;){if(!(n=o[(a=(i<<3)+r|0)>>2]))break e;if((0|e)==(0|n))return o[a+4>>2];if((0|(i=i+1|0))==(0|f))break}return 0}function Me(e){var r=0,f=0;e:{if(!((e=(r=o[440])+(f=e+7&-8)|0)>>>0<=r>>>0&&f)){if(e>>>0<=He()<<16>>>0)break e;if(0|S(0|e))break e}return o[806]=48,-1}return o[440]=e,r}function Se(e){var r=0;(r=o[e>>2])&&(x(o[r+4>>2]),x(o[r>>2]),x(r)),(r=o[e+8>>2])&&x(r),(r=o[e+4>>2])&&x(r),x(e)}function Pe(e){var r,f;r=o[e+4>>2],f=o[e+8>>2],o[r+8>>2]=f,o[f+4>>2]=r,x(e)}function _e(e){var r;return(-1>>>(r=31&e)&-2)<<r|(-1<<(e=0-e&31)&-2)>>>e}function Ue(e,r){var f;U=f=U-16|0,o[f+12>>2]=r,ue(e,r,40),U=f+16|0}function Be(e,r){e|=0,r|=0,o[978]||(o[978]=e,o[979]=r),M()}function Fe(e){return e?31-g(e-1^e)|0:32}function Te(e,r){}function Qe(e){}function Oe(){}r=l,n();var We=function(e){return e.set=function(e,r){this[e]=r},e.get=function(e){return this[e]},e}([null,function(e,r,f){e|=0,r=o[20+(r|=0)>>2],o[r+16>>2]=o[e+84>>2],o[e+84>>2]=r,t[r+20|0]=1},function(e,r,f){r|=0,f|=0,3==(0|(f=o[1716+(e|=0)>>2]))?We[o[e+88>>2]](6):We[0|f](6,o[e+1896>>2]),5==(0|(f=o[e+1724>>2]))?We[o[e+96>>2]](o[o[r+16>>2]+12>>2]):We[0|f](o[o[r+16>>2]+12>>2],o[e+1896>>2]),5==(0|(f=o[e+1724>>2]))?We[o[e+96>>2]](o[o[o[r+4>>2]+16>>2]+12>>2]):We[0|f](o[o[o[r+4>>2]+16>>2]+12>>2],o[e+1896>>2]),f=o[r+20>>2];e:if(l[f+21|0])for(;;){if(l[f+20|0])break e;if(t[f+20|0]=1,r=o[r+8>>2],5==(0|(f=o[e+1724>>2]))?We[o[e+96>>2]](o[o[o[r+4>>2]+16>>2]+12>>2]):We[0|f](o[o[o[r+4>>2]+16>>2]+12>>2],o[e+1896>>2]),f=o[r+20>>2],!l[f+21|0])break}6==(0|(r=o[e+1728>>2]))?We[o[e+100>>2]]():We[0|r](o[e+1896>>2])},Te,Te,Te,Qe,function(e,r,f){r|=0,f|=0,3==(0|(f=o[1716+(e|=0)>>2]))?We[o[e+88>>2]](5):We[0|f](5,o[e+1896>>2]),5==(0|(f=o[e+1724>>2]))?We[o[e+96>>2]](o[o[r+16>>2]+12>>2]):We[0|f](o[o[r+16>>2]+12>>2],o[e+1896>>2]),5==(0|(f=o[e+1724>>2]))?We[o[e+96>>2]](o[o[o[r+4>>2]+16>>2]+12>>2]):We[0|f](o[o[o[r+4>>2]+16>>2]+12>>2],o[e+1896>>2]),f=o[r+20>>2];e:if(l[f+21|0])for(;;){if(l[f+20|0])break e;if(t[f+20|0]=1,r=o[o[r+12>>2]+4>>2],5==(0|(f=o[e+1724>>2]))?We[o[e+96>>2]](o[o[r+16>>2]+12>>2]):We[0|f](o[o[r+16>>2]+12>>2],o[e+1896>>2]),f=o[r+20>>2],!l[f+21|0]|l[f+20|0])break e;if(t[f+20|0]=1,r=o[r+8>>2],5==(0|(f=o[e+1724>>2]))?We[o[e+96>>2]](o[o[o[r+4>>2]+16>>2]+12>>2]):We[0|f](o[o[o[r+4>>2]+16>>2]+12>>2],o[e+1896>>2]),f=o[r+20>>2],!l[f+21|0])break}6==(0|(r=o[e+1728>>2]))?We[o[e+100>>2]]():We[0|r](o[e+1896>>2])},function(e,r){e|=0,r|=0;var f=p(0),i=p(0);if((f=h[e+28>>2])<(i=h[r+28>>2]))e=1;else{if(f!=i)return 0;e=h[e+32>>2]<=h[r+32>>2]}return 0|e},function(e,r,f){e|=0,r|=0,f|=0;var i,a,n=p(0),t=p(0);return f=o[f>>2],i=o[o[f+4>>2]+16>>2],r=o[r>>2],(0|(a=o[o[r+4>>2]+16>>2]))==(0|(e=o[e+72>>2]))?(0|e)==(0|i)?(r=o[r+16>>2],n=h[r+28>>2],f=o[f+16>>2],!(n<(t=h[f+28>>2]))&(!(h[r+32>>2]<=h[f+32>>2])|n!=t)?te(e,f,r)>=p(0)|0:te(e,r,f)<=p(0)|0):te(i,e,o[f+16>>2])<=p(0)|0:(r=o[r+16>>2],(0|e)==(0|i)?te(a,e,r)>=p(0)|0:me(a,e,r)>=me(o[o[f+4>>2]+16>>2],e,o[f+16>>2])|0)},function(e,r,f,i,a){},Te,Oe,Qe,Qe,Qe,Qe,function(e,r,f,i){},Qe,ee,function(e){e|=0;var r=0,f=0,i=p(0),a=p(0),n=p(0),t=p(0),b=p(0),k=0,u=p(0),c=0,s=0,A=p(0),v=p(0),d=0,w=p(0),y=p(0),m=0,g=p(0),C=p(0),E=p(0),R=p(0),I=p(0),M=p(0),S=0;e:{r:if(!((0|(d=o[e+112>>2]))<3)){if(m=116+((S=d<<4)+e|0)|0,g=h[e+124>>2],C=h[e+120>>2],t=h[e+24>>2],E=h[e+116>>2],u=h[e+16>>2],b=h[e+20>>2],!(u!=p(0)|b!=p(0))&t==p(0))for(f=e+148|0,t=p(0),b=p(0),u=p(0),i=A=p(h[(r=e+132|0)>>2]-E),a=v=p(h[e+136>>2]-C),w=n=p(h[e+140>>2]-g);R=p(h[r+20>>2]-C),I=p(h[f>>2]-E),M=p(p(i*R)-p(I*a)),y=p(h[r+24>>2]-g),a=p(p(a*y)-p(R*w)),i=p(p(w*I)-p(y*i)),p(p(M*t)+p(p(a*u)+p(b*i)))>=p(0)?(t=p(t+M),b=p(b+i),a=p(u+a)):(t=p(t-M),b=p(b-i),a=p(u-a)),u=a,i=I,a=R,w=y,m>>>0>(f=(r=f)+16|0)>>>0;);else A=p(h[e+132>>2]-E),v=p(h[e+136>>2]-C),n=p(h[e+140>>2]-g);for(f=e+148|0,r=c=e+132|0;;){i=n,n=v,k=r,a=A,v=p(h[r+20>>2]-C),A=p(h[(r=f)>>2]-E),y=p(p(p(a*v)-p(n*A))*t),w=n,n=p(h[k+24>>2]-g);f:if((i=p(y+p(p(p(p(w*n)-p(v*i))*u)+p(b*p(p(i*A)-p(n*a))))))!=p(0)){if(i>p(0)){if(f=0,k=(0|s)<0,s=1,!k)break f;break e}if(f=0,k=(0|s)>0,s=-1,k)break e}if(!(m>>>0>(f=r+16|0)>>>0))break}if(s){f=1;f:{i:switch(o[e+56>>2]-100132|0){case 0:if((0|s)>=0)break f;break r;case 2:break e;case 1:break i;default:break f}if((0|s)>0)break r}3==(0|(r=o[e+1716>>2]))?We[o[e+88>>2]](l[e+81|0]?2:(0|d)<4?4:6):We[0|r](l[e+81|0]?2:(0|d)<4?4:6,o[e+1896>>2]),5==(0|(r=o[e+1724>>2]))?We[o[e+96>>2]](o[e+128>>2]):We[0|r](o[e+128>>2],o[e+1896>>2]);f:if((0|s)<=0){if((0|d)<2)break f;for(r=S+100|0;f=e+r|0,5==(0|(k=o[e+1724>>2]))?We[o[e+96>>2]](o[f+12>>2]):We[0|k](o[f+12>>2],o[e+1896>>2]),f=(0|r)>132,r=r-16|0,f;);}else if(!(c>>>0>=m>>>0))for(;5==(0|(r=o[e+1724>>2]))?We[o[e+96>>2]](o[c+12>>2]):We[0|r](o[c+12>>2],o[e+1896>>2]),m>>>0>(c=c+16|0)>>>0;);6==(0|(r=o[e+1728>>2]))?We[o[e+100>>2]]():We[0|r](o[e+1896>>2])}}f=1}return 0|f},X,Be,H,function(e){e|=0;var r,f=0,i=0,a=0,n=0,b=0,k=0,u=0,c=p(0),s=0,l=p(0),v=0,d=0,w=0,m=0,g=0,C=0,E=0,R=0,I=0;U=r=U-48|0,t[e+60|0]=0;e:{if(f=o[e+8>>2],(0|(i=o[f+64>>2]))!=(0|(u=f- -64|0)))for(;;){f=o[i+12>>2],a=o[i>>2],b=o[i+16>>2],n=o[o[i+4>>2]+16>>2];r:{if(!(h[b+28>>2]!=h[n+28>>2]|h[b+32>>2]!=h[n+32>>2]|o[f+12>>2]==(0|i))){if(ke(e,f,i),Z(i)){n=o[f+12>>2];break r}break e}n=f,f=i}if(o[n+12>>2]==(0|f)){if((0|f)!=(0|n)&&(a=(0|a)!=(0|n)&o[a+4>>2]!=(0|n)?a:o[a>>2],!Z(n)))break e;if(i=(0|f)==(0|a)|o[a+4>>2]==(0|f)?o[a>>2]:a,!Z(f))break e}else i=a;if((0|i)==(0|u))break}(i=T(28))?((f=T(28))?(o[f+8>>2]=0,o[f+12>>2]=32,n=T(132),o[f>>2]=n,n?(a=T(264),o[f+4>>2]=a,a?(o[f+24>>2]=8,o[f+16>>2]=0,o[f+20>>2]=0,o[n+4>>2]=1,o[a+8>>2]=0):(x(n),x(f),f=0)):(x(f),f=0)):f=0,o[i>>2]=f,f?(a=T(128),o[i+4>>2]=a,a?(o[i+24>>2]=8,o[i+20>>2]=0,o[i+12>>2]=0,o[i+16>>2]=32):(x(o[f+4>>2]),x(o[f>>2]),x(f),x(i),i=0)):(x(i),i=0)):i=0,d=i,o[e+68>>2]=d;r:if(d){i=a=o[e+8>>2];f:{i:{for(;;){if((0|a)!=(0|(i=o[i>>2]))){if(f=q(d,i),o[i+36>>2]=f,2147483647!=(0|f))continue;break i}break}if(U=C=U-400|0,a=T(4+(f=(E=o[d+12>>2])<<2)|0),o[d+8>>2]=a,U=C+400|0,a){if((n=(f+a|0)-4|0)>>>0>=a>>>0)for(f=o[d+4>>2],i=a;o[i>>2]=f,f=f+4|0,n>>>0>=(i=i+4|0)>>>0;);for(o[C+4>>2]=n,o[C>>2]=a,v=8|C,R=2016473283,b=C;;){if((u=o[v-4>>2])>>>0>(k=o[b>>2])+40>>>0)for(;;){for(R=y(R,1539415821)+1|0,m=o[(f=((R>>>0)%(1+(u-k>>2)>>>0)<<2)+k|0)>>2],o[f>>2]=o[k>>2],o[k>>2]=m,f=u+4|0,i=k-4|0;;){a=f,n=i,i=i+4|0,s=o[n+4>>2],g=o[s>>2],c=h[g+28>>2],w=o[m>>2];a:if(!(c<(l=h[w+28>>2])))for(;;){if(f=i,!(!(h[g+32>>2]<=h[w+32>>2])|c!=l))break a;if(i=f+4|0,n=f,s=o[f+4>>2],g=o[s>>2],l>(c=h[g+28>>2]))break}v=o[(f=a-4|0)>>2],g=o[v>>2];a:if(!(l<(c=h[g+28>>2])))for(;;){if(!(!(h[w+32>>2]<=h[g+32>>2])|c!=l))break a;if(a=f,v=o[(f=f-4|0)>>2],g=o[v>>2],l<(c=h[g+28>>2]))break}if(o[i>>2]=v,o[f>>2]=s,!(f>>>0>i>>>0))break}if(v=o[i>>2],o[i>>2]=s,o[f>>2]=v,(i-k|0)<(u-f|0)?(f=a,i=u,u=n):(f=k,i=n,k=a),o[b+4>>2]=i,o[b>>2]=f,b=b+8|0,!(k+40>>>0<u>>>0))break}if(v=b,(s=k+4|0)>>>0<=u>>>0)for(;;){w=o[s>>2];a:if(!(k>>>0>=(f=i=s)>>>0))for(;;){if(b=o[w>>2],c=h[b+28>>2],n=o[(f=i-4|0)>>2],a=o[n>>2],c<(l=h[a+28>>2])){f=i;break a}if(!(!(h[b+32>>2]<=h[a+32>>2])|c!=l)){f=i;break a}if(o[i>>2]=n,i=f,!(k>>>0<f>>>0))break}if(o[f>>2]=w,!((s=s+4|0)>>>0<=u>>>0))break}if(!(C>>>0<=(b=v-8|0)>>>0))break}if(o[d+20>>2]=1,o[d+16>>2]=E,E=o[d>>2],(0|(b=o[E+8>>2]))>0)for(w=o[E+4>>2],m=o[E>>2],f=b;;){for(n=f,d=w+((s=o[m+(f<<2)>>2])<<3)|0,i=f;(0|b)<=(0|(f=i<<1))||(k=o[w+(o[m+((a=1|f)<<2)>>2]<<3)>>2],c=h[k+28>>2],u=o[w+(o[m+(f<<2)>>2]<<3)>>2],!(c<(l=h[u+28>>2]))&(!(h[k+32>>2]<=h[u+32>>2])|c!=l)||(f=a)),!((0|f)>(0|b)||(v=o[d>>2],c=h[v+28>>2],k=o[m+(f<<2)>>2],a=o[(u=w+(k<<3)|0)>>2],c<(l=h[a+28>>2])|c==l&h[v+32>>2]<=h[a+32>>2]));)o[m+(i<<2)>>2]=k,o[u+4>>2]=i,i=f;if(o[m+(i<<2)>>2]=s,o[d+4>>2]=i,f=n-1|0,!((0|n)>1))break}o[E+20>>2]=1,i=1}else i=0;if(i)break f}Se(o[e+68>>2]),o[e+68>>2]=0;break r}if((f=T(20))&&(o[f+16>>2]=9,o[f+12>>2]=e,o[f>>2]=0,o[f+8>>2]=f,o[f+4>>2]=f),o[e+64>>2]=f,!f)break e;if(le(e,p(-3999999973526325e22)),le(e,p(3999999973526325e22)),f=se(o[e+68>>2]))for(;;){f:if(i=de(o[e+68>>2]))for(;;){if(h[i+28>>2]!=h[f+28>>2]|h[i+32>>2]!=h[f+32>>2])break f;if(n=o[se(o[e+68>>2])+8>>2],a=o[f+8>>2],o[r+24>>2]=0,o[r+28>>2]=0,o[r+16>>2]=0,o[r+20>>2]=0,o[r+8>>2]=0,o[r+12>>2]=0,o[r>>2]=1056964608,o[r+4>>2]=1056964608,i=o[a+16>>2],o[r+16>>2]=o[i+12>>2],o[r+20>>2]=o[o[n+16>>2]+12>>2],h[r+36>>2]=h[i+16>>2],h[r+40>>2]=h[i+20>>2],h[r+44>>2]=h[i+24>>2],o[i+12>>2]=0,b=i+12|0,10==(0|(i=o[e+1736>>2]))?We[o[e+76>>2]](r+36|0,r+16|0,r,b):We[0|i](r+36|0,r+16|0,r,b,o[e+1896>>2]),o[b>>2]||(o[b>>2]=o[r+16>>2]),!K(a,n))break e;if(!(i=de(o[e+68>>2])))break}if(W(e,f),!(f=se(o[e+68>>2])))break}for(i=o[o[o[e+64>>2]+4>>2]>>2],o[e+72>>2]=o[o[i>>2]+16>>2];o[o[i>>2]+24>>2]=0,Pe(o[i+4>>2]),x(i),f=o[e+64>>2],i=o[o[f+4>>2]>>2];);if((0|f)!=(0|(i=o[f+4>>2])))for(;x(i),(0|f)!=(0|(i=o[i+4>>2])););if(x(f),Se(o[e+68>>2]),I=1,f=o[e+8>>2],(0|(e=o[f+40>>2]))!=(0|(i=f+40|0)))for(;;){if(a=o[e+8>>2],e=o[e>>2],(0|a)==o[o[a+12>>2]+12>>2]&&(f=o[a+8>>2],o[f+28>>2]=o[f+28>>2]+o[a+28>>2],f=o[f+4>>2],o[f+28>>2]=o[f+28>>2]+o[o[a+4>>2]+28>>2],!Z(a))){I=0;break r}if((0|e)==(0|i))break}}return U=r+48|0,0|I}Be(e+1740|0,1),A()},function(e,r,f){r|=0,f|=0;var i=0,a=0,n=0,t=0;n=1;e:if((0|(i=o[64+(e|=0)>>2]))!=(0|(a=e- -64|0))){if(t=0-r|0,!f)for(;;)if(e=l[o[i+20>>2]+21|0],o[i+28>>2]=(0|e)!=l[o[o[i+4>>2]+20>>2]+21|0]?e?r:t:0,(0|a)==(0|(i=o[i>>2])))break e;for(;;){if(e=o[i>>2],(0|(f=l[o[i+20>>2]+21|0]))==l[o[o[i+4>>2]+20>>2]+21|0]){if(!Z(i)){n=0;break e}}else o[i+28>>2]=f?r:t;if((0|a)==(0|(i=e)))break}}return 0|n},function(e){e|=0;var r,f=0,i=0,a=0,n=p(0),t=p(0),b=0,k=0,u=0;if((0|(f=o[e+40>>2]))!=(0|(r=e+40|0)))for(;;){if(e=o[f>>2],l[f+21|0]){for(f=f+8|0;f=o[f>>2],a=o[o[f+4>>2]+16>>2],n=h[a+28>>2],i=o[f+16>>2],!(!(n<(t=h[i+28>>2]))&(!(h[a+32>>2]<=h[i+32>>2])|n!=t));)f=o[f+8>>2]+4|0;for(;!(!(n>t)&(!(h[i+32>>2]<=h[a+32>>2])|n!=t));)f=o[f+12>>2],i=o[f+16>>2],t=h[i+28>>2],a=o[o[f+4>>2]+16>>2],n=h[a+28>>2];e:{if((0|(a=o[o[f+8>>2]+4>>2]))!=o[f+12>>2])for(;;){if(i=o[o[f+4>>2]+16>>2],n=h[i+28>>2],b=o[a+16>>2],!(n<(t=h[b+28>>2]))&(!(h[i+32>>2]<=h[b+32>>2])|n!=t)){r:if(o[a+12>>2]!=(0|f))for(;;){if(i=o[o[f+8>>2]+4>>2],b=o[i+16>>2],n=h[b+28>>2],k=o[o[i+4>>2]+16>>2],!(n<(t=h[k+28>>2])|n==t&h[b+32>>2]<=h[k+32>>2])){if(!(te(o[o[f+4>>2]+16>>2],o[f+16>>2],b)>=p(0)))break r;i=o[o[f+8>>2]+4>>2]}if(f=J(f,i),i=0,!f)break e;if((0|(f=o[f+4>>2]))==o[a+12>>2])break}f=o[f+12>>2]}else{r:if((0|(i=o[a+12>>2]))!=(0|f))for(b=a+12|0;;){if(k=o[o[i+4>>2]+16>>2],n=h[k+28>>2],u=o[i+16>>2],!(n<(t=h[u+28>>2])|n==t&h[k+32>>2]<=h[u+32>>2])){if(!(te(o[a+16>>2],o[o[a+4>>2]+16>>2],k)<=p(0)))break r;i=o[b>>2]}if(a=J(i,a),i=0,!a)break e;if(b=(a=o[a+4>>2])+12|0,(0|(i=o[a+12>>2]))==(0|f))break}a=o[o[a+8>>2]+4>>2]}if(o[f+12>>2]==(0|a))break}if(i=o[a+12>>2],o[i+12>>2]!=(0|f))for(;;){if(a=J(i,a),i=0,!a)break e;if(a=o[a+4>>2],i=o[a+12>>2],o[i+12>>2]==(0|f))break}i=1}if(!i)return 0}if((0|r)==(0|(f=e)))break}return 1},function(e,r){e|=0;var f,i=0,a=0;if((0|(i=o[40+(r|=0)>>2]))!=(0|(f=r+40|0)))for(;;){if(l[i+21|0]){for(3==(0|(r=o[e+1716>>2]))?We[o[e+88>>2]](2):We[0|r](2,o[e+1896>>2]),r=o[i+8>>2];5==(0|(a=o[e+1724>>2]))?We[o[e+96>>2]](o[o[r+16>>2]+12>>2]):We[0|a](o[o[r+16>>2]+12>>2],o[e+1896>>2]),(0|(r=o[r+12>>2]))!=o[i+8>>2];);6==(0|(r=o[e+1728>>2]))?We[o[e+100>>2]]():We[0|r](o[e+1896>>2])}if((0|f)==(0|(i=o[i>>2])))break}},function(e,r){r|=0;var f,i,a=0,n=0,b=0,k=0,u=0,c=0,s=0,A=0,v=0,d=0,h=0,w=0,y=0,p=0,m=0,g=0,C=0;if(U=f=U-16|0,o[84+(e|=0)>>2]=0,!(a=(0|(s=o[r+40>>2]))==(0|(i=r+40|0)))){for(r=s;t[r+20|0]=0,(0|i)!=(0|(r=o[r>>2])););if(!a){for(;;){if(!(l[s+20|0]|!l[s+21|0])){if(u=o[s+8>>2],l[e+80|0])r=1,a=1;else{k=0,b=0,r=0,n=o[(a=u)+20>>2];e:if(l[n+21|0])for(;;){if(l[(r=n)+20|0]){r=b;break e}if(t[r+20|0]=1,o[r+16>>2]=b,k=k+1|0,b=r,a=o[a+8>>2],n=o[a+20>>2],!l[n+21|0])break}n=o[u+4>>2],b=o[n+20>>2];e:{r:if(!l[b+21|0]|l[b+20|0]){if(h=u,!r)break e}else for(a=r;;){if(t[(r=b)+20|0]=1,o[r+16>>2]=a,k=k+1|0,h=o[n+12>>2],n=o[h+4>>2],b=o[n+20>>2],!l[b+21|0])break r;if(a=r,l[b+20|0])break}for(;t[r+20|0]=0,r=o[r+16>>2];);}w=(0|k)>1,b=0,n=0,r=0,A=o[u+12>>2],a=o[(c=A)+20>>2];e:if(l[a+21|0])for(;;){if(l[(r=a)+20|0]){r=n;break e}if(t[r+20|0]=1,o[r+16>>2]=n,b=b+1|0,n=r,c=o[c+8>>2],a=o[c+20>>2],!l[a+21|0])break}v=w?k:1,n=o[A+4>>2],k=o[n+20>>2];e:{r:if(!l[k+21|0]|l[k+20|0]){if(!r)break e}else for(a=r;;){if(t[(r=k)+20|0]=1,o[r+16>>2]=a,b=b+1|0,A=o[n+12>>2],n=o[A+4>>2],k=o[n+20>>2],!l[k+21|0])break r;if(a=r,l[k+20|0])break}for(;t[r+20|0]=0,r=o[r+16>>2];);}y=(0|b)>(0|v),k=0,n=0,r=0,d=o[o[u+8>>2]+4>>2],a=o[(c=d)+20>>2];e:if(l[a+21|0])for(;;){if(l[(r=a)+20|0]){r=n;break e}if(t[r+20|0]=1,o[r+16>>2]=n,k=k+1|0,n=r,c=o[c+8>>2],a=o[c+20>>2],!l[a+21|0])break}c=y?b:v,n=o[d+4>>2],b=o[n+20>>2];e:{r:if(!l[b+21|0]|l[b+20|0]){if(!r)break e}else for(a=r;;){if(t[(r=b)+20|0]=1,o[r+16>>2]=a,k=k+1|0,d=o[n+12>>2],n=o[d+4>>2],b=o[n+20>>2],!l[b+21|0])break r;if(a=r,l[b+20|0])break}for(;t[r+20|0]=0,r=o[r+16>>2];);}re(r=f+4|0,u),p=o[f+12>>2],m=o[f+8>>2],a=o[f+4>>2],re(r,o[u+12>>2]),g=o[f+12>>2],C=o[f+8>>2],v=o[f+4>>2],re(r,o[o[u+8>>2]+4>>2]),r=k,(0|(r=(b=(0|(r=(n=(0|(r=(k=(0|k)>(0|c))?r:c))<(0|a))?a:r))<(0|v))?v:r))>=(0|(a=o[f+4>>2]))?(u=b?C:n?m:k?d:y?A:w?h:u,a=b?g:n?p:k||y||w?2:1):(u=o[f+8>>2],r=a,a=o[f+12>>2])}We[0|a](e,u,r)}if((0|i)==(0|(s=o[s>>2])))break}if(u=o[e+84>>2]){for(3==(0|(r=o[e+1716>>2]))?We[o[e+88>>2]](4):We[0|r](4,o[e+1896>>2]),k=-1;;){for(r=o[u+8>>2];l[e+80|0]&&(0|(a=!(n=l[o[o[r+4>>2]+20>>2]+21|0])))!=(0|k)&&(4==(0|(b=o[e+1720>>2]))?We[o[e+92>>2]](!n):We[0|b](!n,o[e+1896>>2]),k=a),5==(0|(a=o[e+1724>>2]))?We[o[e+96>>2]](o[o[r+16>>2]+12>>2]):We[0|a](o[o[r+16>>2]+12>>2],o[e+1896>>2]),(0|(r=o[r+12>>2]))!=o[u+8>>2];);if(!(u=o[u+16>>2]))break}6==(0|(r=o[e+1728>>2]))?We[o[e+100>>2]]():We[0|r](o[e+1896>>2]),o[e+84>>2]=0}}}U=f+16|0},z,ve,function(e,r){e|=0;var f,i=0;(0|(f=o[4+(r|=0)>>2]))<o[r+8>>2]&&(i=o[r>>2]+(y(o[r+12>>2],f)<<2)|0,h[i>>2]=h[e>>2],h[i+4>>2]=h[e+4>>2],o[r+4>>2]=f+1)},Qe,Oe,function(e,r,f,i){e|=0,r|=0,f|=0,i|=0,f=0;e:{if(r=o[456]){if(!((f=o[r>>2])>>>0<100001)){r=T(12);break e}}else r=T(1200008),o[r+4>>2]=12,o[r>>2]=0,o[456]=r;o[r>>2]=f+1,r=8+(y(f,12)+r|0)|0}h[r>>2]=h[e>>2],h[r+4>>2]=h[e+4>>2],h[r+8>>2]=h[e+8>>2],o[i>>2]=r},function(e){var r;e|=0,U=r=U-16|0,o[r>>2]=e,U=e=U-16|0,o[e+12>>2]=r,ue(1078,r,0),U=e+16|0,U=r+16|0},Qe,function(e){return 0},function(e,r,f){r|=0,f|=0;var i,a=0,n=0,t=0,b=0,k=0,u=0;U=i=U-32|0,a=o[28+(e|=0)>>2],o[i+16>>2]=a,t=o[e+20>>2],o[i+28>>2]=f,o[i+24>>2]=r,r=t-a|0,o[i+20>>2]=r,t=r+f|0,k=2;e:{r:{r=i+16|0,(a=0|R(o[e+60>>2],0|r,2,i+12|0))?(o[806]=a,a=-1):a=0;f:{if(a)a=r;else for(;;){if((0|(n=o[i+12>>2]))==(0|t))break f;if((0|n)<0){a=r;break r}if(b=n-((u=(b=o[r+4>>2])>>>0<n>>>0)?b:0)|0,o[(a=(u<<3)+r|0)>>2]=b+o[a>>2],o[(r=(u?12:4)+r|0)>>2]=o[r>>2]-b,t=t-n|0,r=a,k=k-u|0,(n=0|R(o[e+60>>2],0|r,0|k,i+12|0))?(o[806]=n,n=-1):n=0,n)break}if(-1!=(0|t))break r}r=o[e+44>>2],o[e+28>>2]=r,o[e+20>>2]=r,o[e+16>>2]=r+o[e+48>>2],e=f;break e}o[e+28>>2]=0,o[e+16>>2]=0,o[e+20>>2]=0,o[e>>2]=32|o[e>>2],e=0,2!=(0|k)&&(e=f-o[a+4>>2]|0)}return U=i+32|0,0|e},function(e,r,f,i){return F=0,0},function(e,r,f,i,a,n){e|=0,r=+r,f|=0,i|=0,a|=0,n|=0;var b,u=0,c=0,A=0,v=0,d=0,h=0,w=0,p=0,g=0,C=0,E=0,R=0,I=0,M=0,S=0,P=0,_=0,B=0,T=0,Q=0;U=b=U-560|0,o[b+44>>2]=0,s(+r),u=0|k(1),k(0),(0|u)<0?(I=1,P=1034,s(+(r=-r)),u=0|k(1),k(0)):2048&a?(I=1,P=1037):(P=(I=1&a)?1040:1035,B=!I);e:if(2146435072&~u){M=b+16|0;r:{f:{i:{if(r=ye(r,b+44|0),0!=(r+=r)){if(u=o[b+44>>2],o[b+44>>2]=u-1,97!=(0|(S=32|n)))break i;break r}if(97==(0|(S=32|n)))break r;d=o[b+44>>2],h=(0|i)<0?6:i;break f}d=u-29|0,o[b+44>>2]=d,r*=268435456,h=(0|i)<0?6:i}for(c=g=(b+48|0)+((0|d)>=0?288:0)|0;i=r<4294967296&r>=0?~~r>>>0:0,o[c>>2]=i,c=c+4|0,0!=(r=1e9*(r-+(i>>>0))););if((0|d)<=0)i=d,u=c,A=g;else for(A=g,i=d;;){if(v=(0|i)>=29?29:i,!(A>>>0>(u=c-4|0)>>>0)){for(p=0;i=o[u>>2],w=31&v,_=p,(63&v)>>>0>=32?(p=i<<w,i=0):(p=(1<<w)-1&i>>>32-w,i<<=w),p=p+C|0,T=u,Q=(w=_+i|0)-ge(p=fe(w,i>>>0>w>>>0?p+1|0:p,1e9),F,1e9,0)|0,o[T>>2]=Q,A>>>0<=(u=u-4|0)>>>0;);p&&(o[(A=A-4|0)>>2]=p)}for(;A>>>0<(u=c)>>>0&&!o[(c=u-4|0)>>2];);if(i=o[b+44>>2]-v|0,o[b+44>>2]=i,c=u,!((0|i)>0))break}if((0|i)<0)for(R=1+((h+25>>>0)/9|0)|0,C=102==(0|S);;){if(w=(0|(i=0-i|0))>=9?9:i,u>>>0<=A>>>0)c=o[A>>2];else{for(p=1e9>>>w|0,v=~(-1<<w),i=0,c=A;_=i,i=o[c>>2],o[c>>2]=_+(i>>>w|0),i=y(p,i&v),(c=c+4|0)>>>0<u>>>0;);c=o[A>>2],i&&(o[u>>2]=i,u=u+4|0)}if(i=w+o[b+44>>2]|0,o[b+44>>2]=i,A=(!c<<2)+A|0,u=u-(c=C?g:A)>>2>(0|R)?c+(R<<2)|0:u,!((0|i)<0))break}if(i=0,!(u>>>0<=A>>>0||(i=y(g-A>>2,9),c=10,(v=o[A>>2])>>>0<10)))for(;i=i+1|0,v>>>0>=(c=y(c,10))>>>0;);if((0|(c=(h-(102!=(0|S)?i:0)|0)-(103==(0|S)&!!(0|h))|0))<(y(u-g>>2,9)-9|0)){if(d=(R=((b+48|0)+((0|d)<0?4:292)|0)+((v=(0|(p=c+9216|0))/9|0)<<2)|0)-4096|0,c=10,(0|(w=p-y(v,9)|0))<=7)for(;c=y(c,10),8!=(0|(w=w+1|0)););if(!(!(w=(C=o[d>>2])-y(c,p=(C>>>0)/(c>>>0)|0)|0)&(0|(v=R-4092|0))==(0|u))&&(!(1&p)&&(r=9007199254740992,!(1&t[R-4100|0])|1e9!=(0|c)|A>>>0>=d>>>0)||(r=9007199254740994),E=(0|u)==(0|v)?1:1.5,E=(v=c>>>1|0)>>>0>w>>>0?.5:(0|v)==(0|w)?E:1.5,45!=l[0|P]|B||(E=-E,r=-r),v=C-w|0,o[d>>2]=v,r+E!=r)){if(i=c+v|0,o[d>>2]=i,i>>>0>=1e9)for(;o[d>>2]=0,(d=d-4|0)>>>0<A>>>0&&(o[(A=A-4|0)>>2]=0),i=o[d>>2]+1|0,o[d>>2]=i,i>>>0>999999999;);if(i=y(g-A>>2,9),c=10,!((v=o[A>>2])>>>0<10))for(;i=i+1|0,v>>>0>=(c=y(c,10))>>>0;);}u=u>>>0>(c=d+4|0)>>>0?c:u}for(;v=u,!(p=u>>>0<=A>>>0)&&!o[(u=u-4|0)>>2];);if(103==(0|S)){if(h=((u=(0|(c=h||1))>(0|i)&(0|i)>-5)?-1^i:-1)+c|0,n=(u?-1:-2)+n|0,!(d=8&a)){if(u=-9,!p&&(d=o[v-4>>2])&&(w=10,u=0,!((d>>>0)%10|0))){for(;c=u,u=u+1|0,!((d>>>0)%((w=y(w,10))>>>0)|0););u=-1^c}c=y(v-g>>2,9),70!=(-33&n)?(d=0,h=(0|(u=(0|(u=((i+c|0)+u|0)-9|0))>0?u:0))>(0|h)?h:u):(d=0,h=(0|(u=(0|(u=(u+c|0)-9|0))>0?u:0))>(0|h)?h:u)}}else d=8&a;if(w=-1,(0|((p=d|h)?2147483645:2147483646))<(0|h))break e;if(C=1+(!!(0|p)+h|0)|0,70!=(0|(c=-33&n))){if((M-(u=he(((u=i>>31)^i)-u|0,0,M))|0)<=1)for(;t[0|(u=u-1|0)]=48,(M-u|0)<2;);if(t[0|(R=u-2|0)]=n,t[u-1|0]=(0|i)<0?45:43,(0|(u=M-R|0))>(2147483647^C))break e}else{if((2147483647^C)<(0|i))break e;u=(0|i)>0?i:0}if((0|(i=u+C|0))>(2147483647^I))break e;Ee(e,32,f,C=i+I|0,a),Ae(e,P,I),Ee(e,48,f,C,65536^a);f:{i:{a:{if(70==(0|c)){for(i=8|(n=b+16|0),d=9|n,A=c=A>>>0>g>>>0?g:A;;){u=he(o[A>>2],0,d);n:if((0|c)==(0|A))(0|u)==(0|d)&&(t[b+24|0]=48,u=i);else{if(b+16>>>0>=u>>>0)break n;for(;t[0|(u=u-1|0)]=48,b+16>>>0<u>>>0;);}if(Ae(e,u,d-u|0),!(g>>>0>=(A=A+4|0)>>>0))break}if(p&&Ae(e,1069,1),(0|h)<=0|A>>>0>=v>>>0)break a;for(;;){if((u=he(o[A>>2],0,d))>>>0>b+16>>>0)for(;t[0|(u=u-1|0)]=48,b+16>>>0<u>>>0;);if(Ae(e,u,(0|h)>=9?9:h),u=h-9|0,v>>>0<=(A=A+4|0)>>>0)break i;if(i=(0|h)>9,h=u,!i)break}break i}n:if(!((0|h)<0))for(g=A>>>0<v>>>0?v:A+4|0,i=8|(n=b+16|0),v=9|n,c=A;;){(0|v)==(0|(u=he(o[c>>2],0,v)))&&(t[b+24|0]=48,u=i);t:if((0|c)==(0|A))Ae(e,u,1),u=u+1|0,d|h&&Ae(e,1069,1);else{if(b+16>>>0>=u>>>0)break t;for(;t[0|(u=u-1|0)]=48,b+16>>>0<u>>>0;);}if(Ae(e,u,(0|(n=v-u|0))<(0|h)?n:h),h=h-n|0,g>>>0<=(c=c+4|0)>>>0)break n;if(!((0|h)>=0))break}Ee(e,48,h+18|0,18,0),Ae(e,R,M-R|0);break f}u=h}Ee(e,48,u+9|0,9,0)}Ee(e,32,f,C,8192^a),w=(0|f)<(0|C)?C:f;break e}if(d=(n<<26>>31&9)+P|0,!(i>>>0>11)){for(u=12-i|0,E=16;E*=16,u=u-1|0;);r=45!=l[0|d]?r+E-E:-(E+(-r-E))}for((0|M)==(0|(u=he(((u=o[b+44>>2])^(c=u>>31))-c|0,0,M)))&&(t[b+15|0]=48,u=b+15|0),g=2|I,A=32&n,c=o[b+44>>2],t[0|(h=u-2|0)]=n+15,t[u-1|0]=(0|c)<0?45:43,u=8&a,c=b+16|0;n=c,v=m(r)<2147483648?~~r:-2147483648,t[0|c]=A|l[v+1600|0],!((0|i)>0|u)&0==(r=16*(r-+(0|v)))|1!=((c=n+1|0)-(b+16|0)|0)||(t[n+1|0]=46,c=n+2|0),0!=r;);w=-1,(2147483645-(n=(u=M-h|0)+g|0)|0)<(0|i)||(v=n,A=c-(n=b+16|0)|0,Ee(e,32,f,c=v+(i=i&&(A-2|0)<(0|i)?i+2|0:A)|0,a),Ae(e,d,g),Ee(e,48,f,c,65536^a),Ae(e,n,A),Ee(e,48,i-A|0,0,0),Ae(e,h,u),Ee(e,32,f,c,8192^a),w=(0|f)<(0|c)?c:f)}else Ee(e,32,f,u=I+3|0,-65537&a),Ae(e,P,I),i=32&n,Ae(e,r!=r?i?1053:1061:i?1057:1065,3),Ee(e,32,f,u,8192^a),w=(0|f)<(0|u)?u:f;return U=b+560|0,0|w}]);function He(){return a.byteLength/65536|0}return{j:function(){o[845]=3260,o[827]=42},k:T,l:x,m:We,n:function(e,r,f,i,a,n){e|=0,r|=0,f|=0,i|=0,a|=0,n|=0;for(var k=0,u=0,c=0,s=0,v=0,d=p(0),w=0,m=p(0),g=p(0),R=0,M=0,S=0,P=0,U=0,F=0;(k=o[1776+(u=s<<2)>>2])&&(o[k>>2]=0),(k=o[1776+(4|u)>>2])&&(o[k>>2]=0),(k=o[1776+(8|u)>>2])&&(o[k>>2]=0),(k=o[1776+(12|u)>>2])&&(o[k>>2]=0),100!=(0|(s=s+4|0)););if((s=o[544])||(s=T(16),o[544]=s),o[s+8>>2]=n,o[s+4>>2]=0,o[s+12>>2]=i,o[s>>2]=a,(s=o[545])||((a=T(1900))?(o[a+100>>2]=12,o[a+96>>2]=13,o[a+92>>2]=14,o[a+88>>2]=15,b[a+80>>1]=0,o[a+52>>2]=0,o[a+56>>2]=100130,o[a+16>>2]=0,o[a+20>>2]=0,o[a>>2]=0,o[a+1896>>2]=0,o[a+1736>>2]=10,o[a+1732>>2]=11,o[a+1728>>2]=6,o[a+1724>>2]=5,o[a+1720>>2]=4,o[a+1716>>2]=3,o[a+104>>2]=16,o[a+76>>2]=17,o[a+12>>2]=18,o[a+24>>2]=0):a=0,o[545]=a,be(a,100107,31),be(o[545],100100,32),be(o[545],100102,33),be(o[545],100105,34),be(o[545],100103,35),be(o[545],100104,36),o[o[545]+56>>2]=100130,a=o[545],h[a+16>>2]=0,h[a+24>>2]=1,h[a+20>>2]=0,s=o[545]),a=0,n=o[544],o[s>>2]&&ee(s,0),o[s+112>>2]=0,o[s>>2]=1,t[s+108|0]=0,o[s+1896>>2]=n,o[s+8>>2]=0,(0|f)>0)for(n=0;;){if(S=o[(n<<2)+r>>2],k=o[545],1!=o[k>>2]&&ee(k,1),o[k>>2]=2,o[k+4>>2]=0,o[k+112>>2]>0&&(t[k+108|0]=1),s=0,(0|S)>0)for(;;){v=o[545],2!=o[v>>2]&&ee(v,2),w=(y(a+s|0,i)<<2)+e|0;e:{r:{if(l[v+108|0]){if(!X(v)){if(11!=(0|(u=o[v+1732>>2])))break r;We[o[v+12>>2]](100902);break e}o[v+4>>2]=0}if(F=(R=+(m=(P=(R=+(d=h[w+4>>2]))<-1e37)?p(-9999999933815813e21):d))>1e37,c=(M=+(g=(U=(M=+(d=h[w>>2]))<-1e37)?p(-9999999933815813e21):d))>1e37,((k=+(d=h[w+8>>2])<-1e37)|(u=+(d=k?p(-9999999933815813e21):d)>1e37)|P|R>1e37||M>1e37||U)&&(11==(0|(k=o[v+1732>>2]))?We[o[v+12>>2]](100155):We[0|k](100155,o[v+1896>>2])),m=F?p(9999999933815813e21):m,g=c?p(9999999933815813e21):g,!o[v+8>>2]){if((0|(k=o[v+112>>2]))<=99){h[124+(c=v+(k<<4)|0)>>2]=u?p(9999999933815813e21):d,h[c+120>>2]=m,h[c+116>>2]=g,o[c+128>>2]=w,o[v+112>>2]=k+1;break e}if(!X(v)){if(11!=(0|(u=o[v+1732>>2])))break r;We[o[v+12>>2]](100902);break e}}f:{i:{if(!(k=o[v+4>>2])){if(!(u=$(o[v+8>>2])))break f;if(K(u,o[u+4>>2]))break i;break f}if(!V(k))break f;u=o[k+12>>2]}k=o[u+16>>2],h[k+16>>2]=g,o[k+12>>2]=w,o[k+24>>2]=0,h[k+20>>2]=m,o[u+28>>2]=1,o[o[u+4>>2]+28>>2]=-1,o[v+4>>2]=u;break e}if(11==(0|(u=o[v+1732>>2]))){We[o[v+12>>2]](100902);break e}}We[0|u](100902,o[v+1896>>2])}if((0|S)==(0|(s=s+1|0)))break}if(k=o[545],2!=o[k>>2]&&ee(k,2),o[k>>2]=1,a=a+S|0,(0|(n=n+1|0))==(0|f))break}c=o[545],e=T(40),o[e>>2]=0,u=we(a=c+1740|0,1,e,4),k=B,e=0;e:{r:{for(;;){if(e){if(11!=(0|(r=o[c+1732>>2]))){if(e=o[c+1896>>2],o[978]=0,C(0|r,100902,0|e),e=o[978],o[978]=0,r=-1,e&&(i=o[979])){if(!(r=Ie(o[e>>2],u,k)))break r;B=i}if(e=B,1==(0|r))continue;break e}if(e=o[c+12>>2],o[978]=0,I(0|e,100902),e=o[978],o[978]=0,r=-1,e&&(i=o[979])){if(!(r=Ie(o[e>>2],u,k)))break r;B=i}if(e=B,1==(0|r))continue;break e}if(1!=o[c>>2]){if(o[978]=0,C(19,0|c,1),e=o[978],o[978]=0,r=-1,e&&(i=o[979])){if(!(r=Ie(o[e>>2],u,k)))break r;B=i}if(e=B,1==(0|r))continue}if(o[c>>2]=0,!o[c+8>>2]){if(!(l[c+80|0]|16!=o[c+104>>2])){if(o[978]=0,f=0|E(20,0|c),e=o[978],o[978]=0,r=-1,e&&(i=o[979])){if(!(r=Ie(o[e>>2],u,k)))break r;B=i}if(e=B,1==(0|r))continue;if(f){o[c+1896>>2]=0;break e}}if(o[978]=0,f=0|E(21,0|c),e=o[978],o[978]=0,r=-1,e&&(i=o[979])){if(!(r=Ie(o[e>>2],u,k)))break r;B=i}if(e=B,1==(0|r))continue;if(!f){if(o[978]=0,C(22,0|a,1),e=o[978],o[978]=0,e&&(i=o[979])){if(!Ie(o[e>>2],u,k))break r;B=i}e=B;continue}}if(o[978]=0,H(c),e=o[978],o[978]=0,r=-1,e&&(i=o[979])){if(!(r=Ie(o[e>>2],u,k)))break r;B=i}if(e=B,1!=(0|r)){if(o[978]=0,f=0|E(24,0|c),e=o[978],o[978]=0,r=-1,e&&(i=o[979])){if(!(r=Ie(o[e>>2],u,k)))break r;B=i}if(e=B,1!=(0|r))if(f){n=o[c+8>>2];f:{i:{if(!l[c+60|0]){if(l[c+81|0]?(o[978]=0,f=0|_(25,0|n,1,1)):(o[978]=0,f=0|E(26,0|n)),e=o[978],o[978]=0,r=-1,e&&(i=o[979])){if(!(r=Ie(o[e>>2],u,k)))break r;B=i}if(e=B,1==(0|r))continue;if(!f){if(o[978]=0,C(22,0|a,1),e=o[978],o[978]=0,e&&(i=o[979])){if(!Ie(o[e>>2],u,k))break r;B=i}e=B;continue}if(15!=o[c+88>>2]|12!=o[c+100>>2]|13!=o[c+96>>2]|14!=o[c+92>>2]||3!=o[c+1716>>2]|6!=o[c+1728>>2]|5!=o[c+1724>>2]||4!=o[c+1720>>2])if(l[c+81|0]){if(o[978]=0,C(27,0|c,0|n),e=o[978],o[978]=0,r=-1,e&&(i=o[979])){if(!(r=Ie(o[e>>2],u,k)))break r;B=i}if(e=B,1==(0|r))continue}else{if(o[978]=0,C(28,0|c,0|n),e=o[978],o[978]=0,r=-1,e&&(i=o[979])){if(!(r=Ie(o[e>>2],u,k)))break r;B=i}if(e=B,1==(0|r))continue}if(16!=o[c+104>>2]){if(o[978]=0,z(n),e=o[978],o[978]=0,r=-1,e&&(i=o[979])){if(!(r=Ie(o[e>>2],u,k)))break r;B=i}if(e=B,1==(0|r))continue;if(e=o[c+104>>2],o[978]=0,I(0|e,0|n),e=o[978],o[978]=0,r=-1,!e)break f;if(!(i=o[979]))break f;if(r=Ie(o[e>>2],u,k))break i;break r}}if(o[978]=0,ve(n),e=o[978],o[978]=0,r=-1,e&&(i=o[979])){if(!(r=Ie(o[e>>2],u,k)))break r;B=i}if(e=B,1==(0|r))continue;o[c+8>>2]=0,o[c+1896>>2]=0;break e}B=i}if(e=B,1!=(0|r))break}else{if(o[978]=0,C(22,0|a,1),e=o[978],o[978]=0,e&&(i=o[979])){if(!Ie(o[e>>2],u,k))break r;B=i}e=B}}}o[c+1896>>2]=0,o[c+8>>2]=0;break e}x(u),Be(e,i),A()}return x(u),o[o[544]+4>>2]},o:function(e,r){e|=0,r|=0,o[978]||(o[978]=e,o[979]=r)},p:function(){return 0|U},q:function(e){U=e|=0}}}(e)}(r)},instantiate:function(e,r){return{then:function(f){var i=new l.Module(e);f({instance:new l.Instance(i,r)})}}},RuntimeError:Error};u=[],"object"!=typeof l&&M("no native wasm support detected");var v,d,h=!1;function w(){var e=A.buffer;i.HEAP8=new Int8Array(e),i.HEAP16=new Int16Array(e),i.HEAPU8=v=new Uint8Array(e),i.HEAPU16=new Uint16Array(e),i.HEAP32=new Int32Array(e),i.HEAPU32=d=new Uint32Array(e),i.HEAPF32=new Float32Array(e),i.HEAPF64=new Float64Array(e)}var y=i.INITIAL_MEMORY||4194304;A=i.wasmMemory?i.wasmMemory:new l.Memory({initial:y/65536,maximum:32768}),w(),y=A.buffer.byteLength;var p=[],m=[],g=[];function C(e){p.unshift(e)}function E(e){g.unshift(e)}var R=0,I=null;function M(e){i.onAbort?.(e),s(e="Aborted("+e+")"),h=!0,e+=". Build with -sASSERTIONS for more info.";var r=new l.RuntimeError(e);throw f(r),r}var S,P="data:application/octet-stream;base64,",_=e=>e.startsWith(P);function U(e){if(e==S&&u)return new Uint8Array(u);var r=function(e){if(_(e))return function(e){for(var r=atob(e),f=new Uint8Array(r.length),i=0;i<r.length;++i)f[i]=r.charCodeAt(i);return f}(e.slice(P.length))}(e);if(r)return r;if(o)return o(e);throw"both async and sync fetching of the wasm failed"}function B(e,r,f){return function(e){return u||_(e)||!t&&!b||"function"!=typeof fetch?Promise.resolve().then(()=>U(e)):fetch(e,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw"failed to load wasm binary file at '"+e+"'";return r.arrayBuffer()}).catch(()=>U(e))}(e).then(e=>l.instantiate(e,r)).then(e=>e).then(f,e=>{s(`failed to asynchronously prepare wasm: ${e}`),M(e)})}_(S="libtess-asm.wasm")||(S=function(e){return i.locateFile?i.locateFile(e,k):k+e}(S));var F=e=>{for(;e.length>0;)e.shift()(i)};i.noExitRuntime;var T,Q=e=>{var r=(e-A.buffer.byteLength+65535)/65536;try{return A.grow(r),w(),1}catch(e){}},O=[null,[],[]],W="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,H=(e,r)=>{var f=O[e];0===r||10===r?((1===e?c:s)(((e,r)=>{for(var f=r+void 0,i=r;e[i]&&!(i>=f);)++i;if(i-r>16&&e.buffer&&W)return W.decode(e.subarray(r,i));for(var a="";r<i;){var n=e[r++];if(128&n){var t=63&e[r++];if(192!=(224&n)){var b=63&e[r++];if((n=224==(240&n)?(15&n)<<12|t<<6|b:(7&n)<<18|t<<12|b<<6|63&e[r++])<65536)a+=String.fromCharCode(n);else{var o=n-65536;a+=String.fromCharCode(55296|o>>10,56320|1023&o)}}else a+=String.fromCharCode((31&n)<<6|t)}else a+=String.fromCharCode(n)}return a})(f,0)),f.length=0):f.push(r)},x=[],j=e=>{var r=x[e];return r||(e>=x.length&&(x.length=e+1),x[e]=r=T.get(e)),r},D={f:()=>{throw 1/0},h:(e,r,f)=>v.copyWithin(e,r,r+f),g:e=>{var r=v.length,f=2147483648;if((e>>>=0)>f)return!1;for(var i=(e,r)=>e+(r-e%r)%r,a=1;a<=4;a*=2){var n=r*(1+.2/a);n=Math.min(n,e+100663296);var t=Math.min(f,i(Math.max(e,n),65536));if(Q(t))return!0}return!1},d:(e,r,f,i)=>{for(var a=0,n=0;n<f;n++){var t=d[r>>2],b=d[r+4>>2];r+=8;for(var o=0;o<b;o++)H(e,v[t+o]);a+=b}return d[i>>2]=a,0},c:function(e,r){var f=Z();try{return j(e)(r)}catch(e){if(J(f),e!==e+0)throw e;Y(1,0)}},i:function(e,r,f,i){var a=Z();try{return j(e)(r,f,i)}catch(e){if(J(a),e!==e+0)throw e;Y(1,0)}},e:function(e,r){var f=Z();try{j(e)(r)}catch(e){if(J(f),e!==e+0)throw e;Y(1,0)}},b:function(e,r,f){var i=Z();try{j(e)(r,f)}catch(e){if(J(i),e!==e+0)throw e;Y(1,0)}},a:A},G=function(){var e={a:D};function r(e,r){return G=e.exports,T=G.m,function(e){m.unshift(e)}(G.j),function(){if(R--,i.monitorRunDependencies?.(R),0==R&&I){var e=I;I=null,e()}}(),G}if(R++,i.monitorRunDependencies?.(R),i.instantiateWasm)try{return i.instantiateWasm(e,r)}catch(e){s(`Module.instantiateWasm callback failed with error: ${e}`),f(e)}return function(e,r,f,i){return e||"function"!=typeof l.instantiateStreaming||_(r)||"function"!=typeof fetch?B(r,f,i):fetch(r,{credentials:"same-origin"}).then(e=>l.instantiateStreaming(e,f).then(i,function(e){return s(`wasm streaming compile failed: ${e}`),s("falling back to ArrayBuffer instantiation"),B(r,f,i)}))}(u,S,e,function(e){r(e.instance)}).catch(f),{}}();i._malloc=e=>(i._malloc=G.k)(e),i._free=e=>(i._free=G.l)(e),i._triangulate=(e,r,f,a,n,t)=>(i._triangulate=G.n)(e,r,f,a,n,t);var L,Y=(e,r)=>(Y=G.o)(e,r),Z=()=>(Z=G.p)(),J=e=>(J=G.q)(e);function N(){function e(){L||(L=!0,i.calledRun=!0,h||(F(m),r(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),function(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)E(i.postRun.shift());F(g)}()))}R>0||(function(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)C(i.preRun.shift());F(p)}(),R>0||(i.setStatus?(i.setStatus("Running..."),setTimeout(function(){setTimeout(function(){i.setStatus("")},1),e()},1)):e()))}if(I=function e(){L||N(),L||(I=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();N();let V=null,z=null,K=null,q=null,$=0;return i.triangulate=(e,r,f)=>{V||(V=i._triangulate);let a=i.HEAPF32;const n=i.HEAP32.BYTES_PER_ELEMENT,t=a.BYTES_PER_ELEMENT;f>$&&($=f,K&&(i._free(K),K=0),z&&(i._free(z),z=0)),K||(K=i._malloc(f*t)),q||(q=i._malloc(4e3*n));const b=2*f;z||(z=i._malloc(b*t)),a=i.HEAPF32,a.set(e,K/t),i.HEAP32.set(r,q/n);const o=b/2,k=V(K,q,Math.min(r.length,4e3),2,z,o),u=2*k;a=i.HEAPF32;const c=a.slice(z/t,z/t+u),s={};return s.buffer=c,s.vertexCount=k,s},e.ready},a.exports=t),o.exports);const u=function(e,r){for(var f=0;f<r.length;f++){const i=r[f];if("string"!=typeof i&&!Array.isArray(i))for(const r in i)if("default"!==r&&!(r in e)){const f=Object.getOwnPropertyDescriptor(i,r);f&&Object.defineProperty(e,r,f.get?f:{enumerable:!0,get:()=>i[r]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,b.g)(k)},[k])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5367],{11053:(a,r,t)=>{t.d(r,{c:()=>e,g:()=>n});var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}},15367:(a,r,t)=>{t.d(r,{a:()=>s});var e,n=t(11053),o={exports:{}};const i=(0,n.g)(function(){return e||(e=1,a=o,r=globalThis.document?.currentScript?.src,t=async function(a={}){var t,e=a,n="./this.program",o="";try{o=new URL(".",r).href}catch{}t=async a=>{if((a=await fetch(a,{credentials:"same-origin"})).ok)return a.arrayBuffer();throw Error(a.status+" : "+a.url)};var i,s,u,f,l,h,c,w,d,p,v,m,b,y,g,$=console.log.bind(console),A=console.error.bind(console),C=!1,k=!1;function E(){var a=Zr.buffer;l=new Int8Array(a),c=new Int16Array(a),h=new Uint8Array(a),w=new Uint16Array(a),d=new Int32Array(a),p=new Uint32Array(a),v=new Float32Array(a),m=new Float64Array(a),b=new BigInt64Array(a),y=new BigUint64Array(a)}function x(a){throw e.onAbort?.(a),A(a="Aborted("+a+")"),C=!0,a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info."),f?.(a),a}async function O(a){if(!i)try{var r=await t(a);return new Uint8Array(r)}catch{}if(a!=g||!i)throw"both async and sync fetching of the wasm failed";return new Uint8Array(i)}class T{name="ExitStatus";constructor(a){this.message=`Program terminated with exit(${a})`,this.status=a}}var S=a=>{for(;0<a.length;)a.shift()(e)},P=[],j=[],D=()=>{var a=e.preRun.shift();j.push(a)},R=!0;class q{constructor(a){this.ra=a-24}}var I={},B=a=>{for(;a.length;){var r=a.pop();a.pop()(r)}};function M(a){return this.sa(p[a>>2])}var z={},U={},N={},F=class extends Error{constructor(a){super(a),this.name="InternalError"}},L=(a,r,t)=>{function e(r){if((r=t(r)).length!==a.length)throw new F("Mismatched type converter count");for(var e=0;e<a.length;++e)H(a[e],r[e])}a.forEach(a=>N[a]=r);var n=Array(r.length),o=[],i=0;r.forEach((a,r)=>{U.hasOwnProperty(a)?n[r]=U[a]:(o.push(a),z.hasOwnProperty(a)||(z[a]=[]),z[a].push(()=>{n[r]=U[a],++i===o.length&&e(n)}))}),0===o.length&&e(n)},W=a=>{for(var r="";;){var t=h[a++];if(!t)return r;r+=String.fromCharCode(t)}},_=class extends Error{constructor(a){super(a),this.name="BindingError"}};function H(a,r,t={}){return function(a,r,t={}){var e=r.name;if(!a)throw new _(`type "${e}" must have a positive integer typeid pointer`);if(U.hasOwnProperty(a)){if(t.Mb)return;throw new _(`Cannot register type '${e}' twice`)}U[a]=r,delete N[a],z.hasOwnProperty(a)&&(r=z[a],delete z[a],r.forEach(a=>a()))}(a,r,t)}var G=(a,r,t)=>{switch(r){case 1:return t?a=>l[a]:a=>h[a];case 2:return t?a=>c[a>>1]:a=>w[a>>1];case 4:return t?a=>d[a>>2]:a=>p[a>>2];case 8:return t?a=>b[a>>3]:a=>y[a>>3];default:throw new TypeError(`invalid integer width (${r}): ${a}`)}},J=a=>{throw new _(a.ma.ta.na.name+" instance already deleted")},K=!1,V=()=>{},Q=a=>globalThis.FinalizationRegistry?(K=new FinalizationRegistry(a=>{--(a=a.ma).count.value,0===a.count.value&&(a.xa?a.Ba.Ha(a.xa):a.ta.na.Ha(a.ra))}),V=a=>{K.unregister(a)},(Q=a=>{var r=a.ma;return r.xa&&K.register(a,{ma:r},a),a})(a)):(Q=a=>a,a);function Y(){}var X=(a,r)=>Object.defineProperty(r,"name",{value:a}),Z={},aa=(a,r,t)=>{if(void 0===a[r].ua){var e=a[r];a[r]=function(...e){if(!a[r].ua.hasOwnProperty(e.length))throw new _(`Function '${t}' called with an invalid number of arguments (${e.length}) - expects one of (${a[r].ua})!`);return a[r].ua[e.length].apply(this,e)},a[r].ua=[],a[r].ua[e.Ma]=e}},ra=(a,r,t)=>{if(e.hasOwnProperty(a)){if(void 0===t||void 0!==e[a].ua&&void 0!==e[a].ua[t])throw new _(`Cannot register public name '${a}' twice`);if(aa(e,a,a),e[a].ua.hasOwnProperty(t))throw new _(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`);e[a].ua[t]=r}else e[a]=r,e[a].Ma=t};function ta(a,r,t,e,n,o,i,s){this.name=a,this.constructor=r,this.La=t,this.Ha=e,this.ya=n,this.Hb=o,this.Xa=i,this.Fb=s,this.Sb=[]}var ea=(a,r,t)=>{for(;r!==t;){if(!r.Xa)throw new _(`Expected null or instance of ${t.name}, got an instance of ${r.name}`);a=r.Xa(a),r=r.ya}return a},na=a=>{if(null===a)return"null";var r=typeof a;return"object"===r||"array"===r||"function"===r?a.toString():""+a};function oa(a,r){if(null===r){if(this.lb)throw new _(`null is not a valid ${this.name}`);return 0}if(!r.ma)throw new _(`Cannot pass "${na(r)}" as a ${this.name}`);if(!r.ma.ra)throw new _(`Cannot pass deleted object as a pointer of type ${this.name}`);return ea(r.ma.ra,r.ma.ta.na,this.na)}function ia(a,r){if(null===r){if(this.lb)throw new _(`null is not a valid ${this.name}`);if(this.ab){var t=this.nb();return null!==a&&a.push(this.Ha,t),t}return 0}if(!r||!r.ma)throw new _(`Cannot pass "${na(r)}" as a ${this.name}`);if(!r.ma.ra)throw new _(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.$a&&r.ma.ta.$a)throw new _(`Cannot convert argument of type ${r.ma.Ba?r.ma.Ba.name:r.ma.ta.name} to parameter type ${this.name}`);if(t=ea(r.ma.ra,r.ma.ta.na,this.na),this.ab){if(void 0===r.ma.xa)throw new _("Passing raw pointer to smart pointer is illegal");switch(this.Xb){case 0:if(r.ma.Ba!==this)throw new _(`Cannot convert argument of type ${r.ma.Ba?r.ma.Ba.name:r.ma.ta.name} to parameter type ${this.name}`);t=r.ma.xa;break;case 1:t=r.ma.xa;break;case 2:if(r.ma.Ba===this)t=r.ma.xa;else{var e=r.clone();t=this.Tb(t,xa(()=>e.delete())),null!==a&&a.push(this.Ha,t)}break;default:throw new _("Unsupporting sharing policy")}}return t}function sa(a,r){if(null===r){if(this.lb)throw new _(`null is not a valid ${this.name}`);return 0}if(!r.ma)throw new _(`Cannot pass "${na(r)}" as a ${this.name}`);if(!r.ma.ra)throw new _(`Cannot pass deleted object as a pointer of type ${this.name}`);if(r.ma.ta.$a)throw new _(`Cannot convert argument of type ${r.ma.ta.name} to parameter type ${this.name}`);return ea(r.ma.ra,r.ma.ta.na,this.na)}var ua=(a,r,t)=>r===t?a:void 0===t.ya||null===(a=ua(a,r,t.ya))?null:t.Fb(a),fa={},la=(a,r)=>{if(!r.ta||!r.ra)throw new F("makeClassHandle requires ptr and ptrType");if(!!r.Ba!=!!r.xa)throw new F("Both smartPtrType and smartPtr must be specified");return r.count={value:1},Q(Object.create(a,{ma:{value:r,writable:!0}}))};function ha(a,r,t,e,n,o,i,s,u,f,l){this.name=a,this.na=r,this.lb=t,this.$a=e,this.ab=n,this.Rb=o,this.Xb=i,this.yb=s,this.nb=u,this.Tb=f,this.Ha=l,n||void 0!==r.ya?this.wa=ia:(this.wa=e?oa:sa,this.Aa=null)}var ca=(a,r,t)=>{if(!e.hasOwnProperty(a))throw new F("Replacing nonexistent public symbol");void 0!==e[a].ua&&void 0!==t?e[a].ua[t]=r:(e[a]=r,e[a].Ma=t)},wa=[],da=(a,r)=>{var t;if(a=W(a),(t=wa[r])||(wa[r]=t=at.get(r)),"function"!=typeof t)throw new _(`unknown function pointer with signature ${a}: ${r}`);return t};class pa extends Error{}var va=a=>{a=Kr(a);var r=W(a);return Qr(a),r},ma=(a,r)=>{var t=[],e={};throw r.forEach(function a(r){e[r]||U[r]||(N[r]?N[r].forEach(a):(t.push(r),e[r]=!0))}),new pa(`${a}: `+t.map(va).join([", "]))};function ba(a,r,t,e,n){var o=r.length;if(2>o)throw new _("argTypes array size mismatch! Must at least get return value and 'this' types!");var i=null!==r[1]&&null!==t,s=function(a){for(var r=1;r<a.length;++r)if(null!==a[r]&&void 0===a[r].Aa)return!0;return!1}(r),u=!r[0].Nb,f=o-2,l=Array(f),h=[],c=[];return X(a,function(...a){if(c.length=0,h.length=i?2:1,h[0]=n,i){var t=r[1].wa(c,this);h[1]=t}for(var o=0;o<f;++o)l[o]=r[o+2].wa(c,a[o]),h.push(l[o]);if(a=e(...h),s)B(c);else for(o=i?1:2;o<r.length;o++){var w=1===o?t:l[o-2];null!==r[o].Aa&&r[o].Aa(w)}return u?r[0].sa(a):void 0})}var ya=(a,r)=>{for(var t=[],e=0;e<a;e++)t.push(p[r+4*e>>2]);return t},ga=a=>{const r=(a=a.trim()).indexOf("(");return-1===r?a:a.slice(0,r)},$a=(a,r,t)=>{if(!(a instanceof Object))throw new _(`${t} with invalid "this": ${a}`);if(!(a instanceof r.na.constructor))throw new _(`${t} incompatible with "this" of type ${a.constructor.name}`);if(!a.ma.ra)throw new _(`cannot call emscripten binding method ${t} on deleted object`);return ea(a.ma.ra,a.ma.ta.na,r.na)},Aa=[],Ca=[0,1,,1,null,1,!0,1,!1,1],ka=a=>{9<a&&0===--Ca[a+1]&&(Ca[a]=void 0,Aa.push(a))},Ea=a=>{if(!a)throw new _(`Cannot use deleted val. handle = ${a}`);return Ca[a]},xa=a=>{switch(a){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const r=Aa.pop()||Ca.length;return Ca[r]=a,Ca[r+1]=1,r}},Oa={name:"emscripten::val",sa:a=>{var r=Ea(a);return ka(a),r},wa:(a,r)=>xa(r),Ea:M,Aa:null},Ta=(a,r,t)=>{switch(r){case 1:return t?function(a){return this.sa(l[a])}:function(a){return this.sa(h[a])};case 2:return t?function(a){return this.sa(c[a>>1])}:function(a){return this.sa(w[a>>1])};case 4:return t?function(a){return this.sa(d[a>>2])}:function(a){return this.sa(p[a>>2])};default:throw new TypeError(`invalid integer width (${r}): ${a}`)}},Sa=(a,r)=>{var t=U[a];if(void 0===t)throw a=`${r} has unknown type ${va(a)}`,new _(a);return t},Pa=(a,r)=>{switch(r){case 4:return function(a){return this.sa(v[a>>2])};case 8:return function(a){return this.sa(m[a>>3])};default:throw new TypeError(`invalid float width (${r}): ${a}`)}},ja=Object.assign({optional:!0},Oa),Da=(a,r,t,e)=>{if(!(0<e))return 0;var n=t;e=t+e-1;for(var o=0;o<a.length;++o){var i=a.codePointAt(o);if(127>=i){if(t>=e)break;r[t++]=i}else if(2047>=i){if(t+1>=e)break;r[t++]=192|i>>6,r[t++]=128|63&i}else if(65535>=i){if(t+2>=e)break;r[t++]=224|i>>12,r[t++]=128|i>>6&63,r[t++]=128|63&i}else{if(t+3>=e)break;r[t++]=240|i>>18,r[t++]=128|i>>12&63,r[t++]=128|i>>6&63,r[t++]=128|63&i,o++}}return r[t]=0,t-n},Ra=a=>{for(var r=0,t=0;t<a.length;++t){var e=a.charCodeAt(t);127>=e?r++:2047>=e?r+=2:55296<=e&&57343>=e?(r+=4,++t):r+=3}return r},qa=globalThis.TextDecoder&&new TextDecoder,Ia=(a,r,t,e)=>{if(t=r+t,e)return t;for(;a[r]&&!(r>=t);)++r;return r},Ba=(a,r=0,t,e)=>{if(16<(t=Ia(a,r,t,e))-r&&a.buffer&&qa)return qa.decode(a.subarray(r,t));for(e="";r<t;){var n=a[r++];if(128&n){var o=63&a[r++];if(192==(224&n))e+=String.fromCharCode((31&n)<<6|o);else{var i=63&a[r++];65536>(n=224==(240&n)?(15&n)<<12|o<<6|i:(7&n)<<18|o<<12|i<<6|63&a[r++])?e+=String.fromCharCode(n):(n-=65536,e+=String.fromCharCode(55296|n>>10,56320|1023&n))}}else e+=String.fromCharCode(n)}return e},Ma=globalThis.TextDecoder?new TextDecoder("utf-16le"):void 0,za=(a,r,t)=>{if(16<(r=Ia(w,a>>=1,r/2,t))-a&&Ma)return Ma.decode(w.subarray(a,r));for(t="";a<r;++a)t+=String.fromCharCode(w[a]);return t},Ua=(a,r,t)=>{if(t??=2147483647,2>t)return 0;var e=r;t=(t-=2)<2*a.length?t/2:a.length;for(var n=0;n<t;++n)c[r>>1]=a.charCodeAt(n),r+=2;return c[r>>1]=0,r-e},Na=a=>2*a.length,Fa=(a,r,t)=>{var e="";a>>=2;for(var n=0;!(n>=r/4);n++){var o=p[a+n];if(!o&&!t)break;e+=String.fromCodePoint(o)}return e},La=(a,r,t)=>{if(t??=2147483647,4>t)return 0;var e=r;t=e+t-4;for(var n=0;n<a.length;++n){var o=a.codePointAt(n);if(65535<o&&n++,d[r>>2]=o,(r+=4)+4>t)break}return d[r>>2]=0,r-e},Wa=a=>{for(var r=0,t=0;t<a.length;++t)65535<a.codePointAt(t)&&t++,r+=4;return r},_a=0,Ha=[],Ga={},Ja=a=>{var r=Ga[a];return void 0===r?W(a):r},Ka=(a,r,t,e,n)=>Ha[a](r,t,e,n),Va=(a,r)=>{for(var t=0,e=a.length-1;0<=e;e--){var n=a[e];"."===n?a.splice(e,1):".."===n?(a.splice(e,1),t++):t&&(a.splice(e,1),t--)}if(r)for(;t;t--)a.unshift("..");return a},Qa=a=>{var r="/"===a.charAt(0),t="/"===a.slice(-1);return(a=Va(a.split("/").filter(a=>!!a),!r).join("/"))||r||(a="."),a&&t&&(a+="/"),(r?"/":"")+a},Ya=a=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);return a=r[0],r=r[1],a||r?(r&&=r.slice(0,-1),a+r):"."},Xa=a=>{(Xa=a=>crypto.getRandomValues(a))(a)},Za=[],ar=[];function rr(a,r){ar[a]={input:[],output:[],Ra:r},Or(a,tr)}var tr={open(a){var r=ar[a.node.fb];if(!r)throw new dr(43);a.Ca=r,a.seekable=!1},close(a){a.Ca.Ra.Za(a.Ca)},Za(a){a.Ca.Ra.Za(a.Ca)},read(a,r,t,e){if(!a.Ca||!a.Ca.Ra.sb)throw new dr(60);for(var n=0,o=0;o<e;o++){try{var i=a.Ca.Ra.sb(a.Ca)}catch(a){throw new dr(29)}if(void 0===i&&0===n)throw new dr(6);if(null==i)break;n++,r[t+o]=i}return n&&(a.node.Na=Date.now()),n},write(a,r,t,e){if(!a.Ca||!a.Ca.Ra.mb)throw new dr(60);try{for(var n=0;n<e;n++)a.Ca.Ra.mb(a.Ca,r[t+n])}catch(a){throw new dr(29)}return e&&(a.node.Da=a.node.za=Date.now()),n}},er={sb(){a:{if(!Za.length){var a=null;if(globalThis.window?.prompt&&null!==(a=window.prompt("Input: "))&&(a+="\n"),!a){var r=null;break a}r=Array(Ra(a)+1),a=Da(a,r,0,r.length),r.length=a,Za=r}r=Za.shift()}return r},mb(a,r){null===r||10===r?($(Ba(a.output)),a.output=[]):0!=r&&a.output.push(r)},Za(a){0<a.output?.length&&($(Ba(a.output)),a.output=[])},lc:()=>({cc:25856,ec:5,bc:191,dc:35387,ac:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),mc:()=>0,nc:()=>[24,80]},nr={mb(a,r){null===r||10===r?(A(Ba(a.output)),a.output=[]):0!=r&&a.output.push(r)},Za(a){0<a.output?.length&&(A(Ba(a.output)),a.output=[])}},or={Ga:null,Ja:()=>or.createNode(null,"/",16895,0),createNode(a,r,t,e){if(24576==(61440&t)||4096==(61440&t))throw new dr(63);return or.Ga||(or.Ga={dir:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia,Ua:or.pa.Ua,cb:or.pa.cb,zb:or.pa.zb,Cb:or.pa.Cb,Bb:or.pa.Bb,ob:or.pa.ob,gb:or.pa.gb},stream:{Fa:or.qa.Fa}},file:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia},stream:{Fa:or.qa.Fa,read:or.qa.read,write:or.qa.write,vb:or.qa.vb,xb:or.qa.xb}},link:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia,Wa:or.pa.Wa},stream:{}},pb:{node:{Ka:or.pa.Ka,Ia:or.pa.Ia},stream:xr}}),16384==(61440&(t=gr(a,r,t,e)).mode)?(t.pa=or.Ga.dir.node,t.qa=or.Ga.dir.stream,t.oa={}):32768==(61440&t.mode)?(t.pa=or.Ga.file.node,t.qa=or.Ga.file.stream,t.va=0,t.oa=null):40960==(61440&t.mode)?(t.pa=or.Ga.link.node,t.qa=or.Ga.link.stream):8192==(61440&t.mode)&&(t.pa=or.Ga.pb.node,t.qa=or.Ga.pb.stream),t.Na=t.Da=t.za=Date.now(),a&&(a.oa[r]=t,a.Na=a.Da=a.za=t.Na),t},ic:a=>a.oa?a.oa.subarray?a.oa.subarray(0,a.va):new Uint8Array(a.oa):new Uint8Array(0),pa:{Ka(a){var r={};return r.fc=8192==(61440&a.mode)?a.id:1,r.kc=a.id,r.mode=a.mode,r.oc=1,r.uid=0,r.jc=0,r.fb=a.fb,16384==(61440&a.mode)?r.size=4096:32768==(61440&a.mode)?r.size=a.va:40960==(61440&a.mode)?r.size=a.link.length:r.size=0,r.Na=new Date(a.Na),r.Da=new Date(a.Da),r.za=new Date(a.za),r.Db=4096,r.$b=Math.ceil(r.size/r.Db),r},Ia(a,r){for(var t of["mode","atime","mtime","ctime"])null!=r[t]&&(a[t]=r[t]);void 0!==r.size&&(r=r.size,a.va!=r&&(0==r?(a.oa=null,a.va=0):(t=a.oa,a.oa=new Uint8Array(r),t&&a.oa.set(t.subarray(0,Math.min(r,a.va))),a.va=r)))},Ua(){throw or.hb||(or.hb=new dr(44),or.hb.stack="<generic error, no stack>"),or.hb},cb:(a,r,t,e)=>or.createNode(a,r,t,e),zb(a,r,t){try{var e=yr(r,t)}catch(a){}if(e){if(16384==(61440&a.mode))for(var n in e.oa)throw new dr(55);if(n=br(e.parent.id,e.name),lr[n]===e)lr[n]=e.Qa;else for(n=lr[n];n;){if(n.Qa===e){n.Qa=e.Qa;break}n=n.Qa}}delete a.parent.oa[a.name],r.oa[t]=a,a.name=t,r.za=r.Da=a.parent.za=a.parent.Da=Date.now()},Cb(a,r){delete a.oa[r],a.za=a.Da=Date.now()},Bb(a,r){var t,e=yr(a,r);for(t in e.oa)throw new dr(55);delete a.oa[r],a.za=a.Da=Date.now()},ob:a=>[".","..",...Object.keys(a.oa)],gb:(a,r,t)=>((a=or.createNode(a,r,41471,0)).link=t,a),Wa(a){if(40960!=(61440&a.mode))throw new dr(28);return a.link}},qa:{read(a,r,t,e,n){var o=a.node.oa;if(n>=a.node.va)return 0;if(8<(a=Math.min(a.node.va-n,e))&&o.subarray)r.set(o.subarray(n,n+a),t);else for(e=0;e<a;e++)r[t+e]=o[n+e];return a},write(a,r,t,e,n,o){if(r.buffer===l.buffer&&(o=!1),!e)return 0;if((a=a.node).Da=a.za=Date.now(),r.subarray&&(!a.oa||a.oa.subarray)){if(o)return a.oa=r.subarray(t,t+e),a.va=e;if(0===a.va&&0===n)return a.oa=r.slice(t,t+e),a.va=e;if(n+e<=a.va)return a.oa.set(r.subarray(t,t+e),n),e}o=n+e;var i=a.oa?a.oa.length:0;if(i>=o||(o=Math.max(o,i*(1048576>i?2:1.125)>>>0),0!=i&&(o=Math.max(o,256)),i=a.oa,a.oa=new Uint8Array(o),0<a.va&&a.oa.set(i.subarray(0,a.va),0)),a.oa.subarray&&r.subarray)a.oa.set(r.subarray(t,t+e),n);else for(o=0;o<e;o++)a.oa[n+o]=r[t+o];return a.va=Math.max(a.va,n+e),e},Fa(a,r,t){if(1===t?r+=a.position:2===t&&32768==(61440&a.node.mode)&&(r+=a.node.va),0>r)throw new dr(28);return r},vb(a,r,t,e,n){if(32768!=(61440&a.node.mode))throw new dr(43);if(a=a.node.oa,2&n||!a||a.buffer!==l.buffer){n=!0,e=65536*Math.ceil(r/65536);var o=Yr(65536,e);if(o&&h.fill(0,o,o+e),!(e=o))throw new dr(48);a&&((0<t||t+r<a.length)&&(a=a.subarray?a.subarray(t,t+r):Array.prototype.slice.call(a,t,t+r)),l.set(a,e))}else n=!1,e=a.byteOffset;return{ra:e,Zb:n}},xb:(a,r,t,e)=>(or.qa.write(a,r,0,e,t,!1),0)}},ir=null,sr={},ur=[],fr=1,lr=null,hr=!1,cr=!0,wr={},dr=class{name="ErrnoError";constructor(a){this.Ta=a}},pr=class{bb={};node=null;get flags(){return this.bb.flags}set flags(a){this.bb.flags=a}get position(){return this.bb.position}set position(a){this.bb.position=a}},vr=class{pa={};qa={};eb=null;constructor(a,r,t,e){a||=this,this.parent=a,this.Ja=a.Ja,this.id=fr++,this.name=r,this.mode=t,this.fb=e,this.Na=this.Da=this.za=Date.now()}get read(){return!(365&~this.mode)}set read(a){a?this.mode|=365:this.mode&=-366}get write(){return!(146&~this.mode)}set write(a){a?this.mode|=146:this.mode&=-147}};function mr(a,r={}){if(!a)throw new dr(44);r.jb??(r.jb=!0),"/"===a.charAt(0)||(a="//"+a);var t=0;a:for(;40>t;t++){a=a.split("/").filter(a=>!!a);for(var e=ir,n="/",o=0;o<a.length;o++){var i=o===a.length-1;if(i&&r.parent)break;if("."!==a[o])if(".."===a[o]){if(n=Ya(n),e===e.parent){a=n+"/"+a.slice(o+1).join("/"),t--;continue a}e=e.parent}else{n=Qa(n+"/"+a[o]);try{e=yr(e,a[o])}catch(a){if(44===a?.Ta&&i&&r.Qb)return{path:n};throw a}if(!e.eb||i&&!r.jb||(e=e.eb.root),40960==(61440&e.mode)&&(!i||r.ib)){if(!e.pa.Wa)throw new dr(52);"/"===(e=e.pa.Wa(e)).charAt(0)||(e=Ya(n)+"/"+e),a=e+"/"+a.slice(o+1).join("/");continue a}}}return{path:n,node:e}}throw new dr(32)}function br(a,r){for(var t=0,e=0;e<r.length;e++)t=(t<<5)-t+r.charCodeAt(e)|0;return(a+t>>>0)%lr.length}function yr(a,r){var t=16384==(61440&a.mode)?(t=Ar(a,"x"))?t:a.pa.Ua?0:2:54;if(t)throw new dr(t);for(t=lr[br(a.id,r)];t;t=t.Qa){var e=t.name;if(t.parent.id===a.id&&e===r)return t}return a.pa.Ua(a,r)}function gr(a,r,t,e){return r=br((a=new vr(a,r,t,e)).parent.id,a.name),a.Qa=lr[r],lr[r]=a}function $r(a){var r=["r","w","rw"][3&a];return 512&a&&(r+="w"),r}function Ar(a,r){return cr?0:!r.includes("r")||292&a.mode?r.includes("w")&&!(146&a.mode)||r.includes("x")&&!(73&a.mode)?2:0:2}function Cr(a,r){if(16384!=(61440&a.mode))return 54;try{return yr(a,r),20}catch(a){}return Ar(a,"wx")}function kr(a){if(!(a=ur[a]))throw new dr(8);return a}function Er(a,r){var t=void 0,e=t?null:a;if(t??=a.pa.Ia,!t)throw new dr(63);t(e,r)}var xr={open(a){a.qa=sr[a.node.fb].qa,a.qa.open?.(a)},Fa(){throw new dr(70)}};function Or(a,r){sr[a]={qa:r}}function Tr(a,r){var t="/"===r;if(t&&ir)throw new dr(10);if(!t&&r){var e=mr(r,{jb:!1});if(r=e.path,(e=e.node).eb)throw new dr(10);if(16384!=(61440&e.mode))throw new dr(54)}r={type:a,pc:{},wb:r,Pb:[]},(a=a.Ja(r)).Ja=r,r.root=a,t?ir=a:e&&(e.eb=r,e.Ja&&e.Ja.Pb.push(r))}function Sr(a,r,t){var e=mr(a,{parent:!0}).node;if(!(a=a&&a.match(/([^\/]+|\/)\/*$/)[1]))throw new dr(28);if("."===a||".."===a)throw new dr(20);var n=Cr(e,a);if(n)throw new dr(n);if(!e.pa.cb)throw new dr(63);return e.pa.cb(e,a,r,t)}function Pr(a){return Sr(a,16895,0)}function jr(a,r,t){void 0===t&&(t=r,r=438),Sr(a,8192|r,t)}function Dr(a,r){if(!((...a)=>{for(var r="",t=!1,e=a.length-1;-1<=e&&!t;e--){if("string"!=typeof(t=0<=e?a[e]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";r=t+"/"+r,t="/"===t.charAt(0)}return(t?"/":"")+(r=Va(r.split("/").filter(a=>!!a),!t).join("/"))||"."})(a))throw new dr(44);var t=mr(r,{parent:!0}).node;if(!t)throw new dr(44);var e=Cr(t,r=r&&r.match(/([^\/]+|\/)\/*$/)[1]);if(e)throw new dr(e);if(!t.pa.gb)throw new dr(63);t.pa.gb(t,r,a)}function Rr(a,r){if(""===a)throw new dr(44);if("string"==typeof r){var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===t)throw Error(`Unknown file open mode: ${r}`);r=t}if(t=64&r?33206:0,"object"==typeof a)var n=a;else{var o=a.endsWith("/");n=(a=mr(a,{ib:!(131072&r),Qb:!0})).node,a=a.path}var i=!1;if(64&r)if(n){if(128&r)throw new dr(20)}else{if(o)throw new dr(31);n=Sr(a,511|t,0),i=!0}if(!n)throw new dr(44);if(8192==(61440&n.mode)&&(r&=-513),65536&r&&16384!=(61440&n.mode))throw new dr(54);if(!i&&(o=n?40960==(61440&n.mode)?32:16384==(61440&n.mode)&&("r"!==$r(r)||576&r)?31:Ar(n,$r(r)):44))throw new dr(o);if(512&r&&!i){if(16384==(61440&(o="string"==typeof(o=n)?mr(o,{ib:!0}).node:o).mode))throw new dr(31);if(32768!=(61440&o.mode))throw new dr(28);var s=Ar(o,"w");if(s)throw new dr(s);Er(o,{size:0,timestamp:Date.now()})}r&=-131713;a:for(o=n;;){if(o===o.parent){o=o.Ja.wb;var u=u?"/"!==o[o.length-1]?`${o}/${u}`:o+u:o;break a}u=u?`${o.name}/${u}`:o.name,o=o.parent}if(u={node:n,path:u,flags:r,seekable:!0,position:0,qa:n.qa,Yb:[],error:!1},o=-1,u=Object.assign(new pr,u),-1==o)a:{for(o=0;4096>=o;o++)if(!ur[o])break a;throw new dr(33)}u.Pa=o,ur[o]=u,u.qa.open&&u.qa.open(u),i&&(t&=511,Er(n="string"==typeof n?mr(n,{ib:!0}).node:n,{mode:4095&t|-4096&n.mode,za:Date.now(),hc:void 0})),!e.logReadFiles||1&r||a in wr||(wr[a]=1)}function qr(a,r,t){if(null===a.Pa)throw new dr(8);if(!a.seekable||!a.qa.Fa)throw new dr(70);if(0!=t&&1!=t&&2!=t)throw new dr(28);a.position=a.qa.Fa(a,r,t),a.Yb=[]}function Ir(a,r,t){a=Qa("/dev/"+a);var e=((a,r)=>{var t=0;return a&&(t|=365),r&&(t|=146),t})(!!r,!!t);Ir.ub??(Ir.ub=64);var n=Ir.ub++<<8;Or(n,{open(a){a.seekable=!1},close(){t?.buffer?.length&&t(10)},read(a,t,e,n){for(var o=0,i=0;i<n;i++){try{var s=r()}catch(a){throw new dr(29)}if(void 0===s&&0===o)throw new dr(6);if(null==s)break;o++,t[e+i]=s}return o&&(a.node.Na=Date.now()),o},write(a,r,e,n){for(var o=0;o<n;o++)try{t(r[e+o])}catch(a){throw new dr(29)}return n&&(a.node.Da=a.node.za=Date.now()),o}}),jr(a,e,n)}var Br,Mr={},zr={},Ur=a=>{if(!(a instanceof T||"unwind"==a))throw a},Nr=a=>{throw s=a,R||0<_a||(e.onExit?.(a),C=!0),new T(a)},Fr=[],Lr={},Wr=a=>{var r;return(r=/\bwasm-function\[\d+\]:(0x[0-9a-f]+)/.exec(a))?+r[1]:(r=/:(\d+):\d+(?:\)|$)/.exec(a))?2147483648|+r[1]:0},_r=a=>{for(var r of a)(a=Wr(r))&&(Lr[a]=r)},Hr=a=>{if(!(a=Lr[a]))return 0;var r;if(r=/^\s+at .*\.wasm\.(.*) \(.*\)$/.exec(a))r=r[1];else if(r=/^\s+at (.*) \(.*\)$/.exec(a))r=r[1];else{if(!(r=/^(.+?)@/.exec(a)))return 0;r=r[1]}Qr(Hr.Ab??0),a=Hr;var t=Ra(r)+1,e=Vr(t);return e&&Da(r,h,e,t),a.Ab=e,Hr.Ab},Gr={},Jr=()=>{if(!Br){var a,r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:n||"./this.program"};for(a in Gr)void 0===Gr[a]?delete r[a]:r[a]=Gr[a];var t=[];for(a in r)t.push(`${a}=${r[a]}`);Br=t}return Br};if((()=>{let a=Y.prototype;Object.assign(a,{isAliasOf:function(a){if(!(this instanceof Y&&a instanceof Y))return!1;var r=this.ma.ta.na,t=this.ma.ra;a.ma=a.ma;var e=a.ma.ta.na;for(a=a.ma.ra;r.ya;)t=r.Xa(t),r=r.ya;for(;e.ya;)a=e.Xa(a),e=e.ya;return r===e&&t===a},clone:function(){if(this.ma.ra||J(this),this.ma.Va)return this.ma.count.value+=1,this;var a=Q,r=Object,t=r.create,e=Object.getPrototypeOf(this),n=this.ma;return(a=a(t.call(r,e,{ma:{value:{count:n.count,Sa:n.Sa,Va:n.Va,ra:n.ra,ta:n.ta,xa:n.xa,Ba:n.Ba}}}))).ma.count.value+=1,a.ma.Sa=!1,a},delete(){if(this.ma.ra||J(this),this.ma.Sa&&!this.ma.Va)throw new _("Object already scheduled for deletion");V(this);var a=this.ma;--a.count.value,0===a.count.value&&(a.xa?a.Ba.Ha(a.xa):a.ta.na.Ha(a.ra)),this.ma.Va||(this.ma.xa=void 0,this.ma.ra=void 0)},isDeleted:function(){return!this.ma.ra},deleteLater:function(){if(this.ma.ra||J(this),this.ma.Sa&&!this.ma.Va)throw new _("Object already scheduled for deletion");return this.ma.Sa=!0,this}});const r=Symbol.dispose;r&&(a[r]=a.delete)})(),Object.assign(ha.prototype,{Ib(a){return this.yb&&(a=this.yb(a)),a},qb(a){this.Ha?.(a)},Ea:M,sa:function(a){function r(){return this.ab?la(this.na.La,{ta:this.Rb,ra:t,Ba:this,xa:a}):la(this.na.La,{ta:this,ra:a})}var t=this.Ib(a);if(!t)return this.qb(a),null;var e=((a,r)=>{if(void 0===r)throw new _("ptr should not be undefined");for(;a.ya;)r=a.Xa(r),a=a.ya;return fa[r]})(this.na,t);if(void 0!==e)return 0===e.ma.count.value?(e.ma.ra=t,e.ma.xa=a,e.clone()):(e=e.clone(),this.qb(a),e);if(e=this.na.Hb(t),!(e=Z[e]))return r.call(this);e=this.$a?e.Eb:e.pointerType;var n=ua(t,this.na,e.na);return null===n?r.call(this):this.ab?la(e.na.La,{ta:e,ra:n,Ba:this,xa:a}):la(e.na.La,{ta:e,ra:n})}}),lr=Array(4096),Tr(or,"/"),Pr("/tmp"),Pr("/home"),Pr("/home/web_user"),function(){Pr("/dev"),Or(259,{read:()=>0,write:(a,r,t,e)=>e,Fa:()=>0}),jr("/dev/null",259),rr(1280,er),rr(1536,nr),jr("/dev/tty",1280),jr("/dev/tty1",1536);var a=new Uint8Array(1024),r=0,t=()=>(0===r&&(Xa(a),r=a.byteLength),a[--r]);Ir("random",t),Ir("urandom",t),Pr("/dev/shm"),Pr("/dev/shm/tmp")}(),function(){Pr("/proc");var a=Pr("/proc/self");Pr("/proc/self/fd"),Tr({Ja(){var r=gr(a,"fd",16895,73);return r.qa={Fa:or.qa.Fa},r.pa={Ua(a,r){var t=kr(a=+r);return(a={parent:null,Ja:{wb:"fake"},pa:{Wa:()=>t.path},id:a+1}).parent=a},ob:()=>Array.from(ur.entries()).filter(([,a])=>a).map(([a])=>a.toString())},r}},"/proc/self/fd")}(),e.noExitRuntime&&(R=e.noExitRuntime),e.print&&($=e.print),e.printErr&&(A=e.printErr),e.wasmBinary&&(i=e.wasmBinary),e.thisProgram&&(n=e.thisProgram),e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.shift()();var Kr,Vr,Qr,Yr,Xr,Zr,at,rt,tt={212604:()=>"undefined"!=typeof wasmOffsetConverter},et={U:function(){return"undefined"!=typeof wasmOffsetConverter},n:(a,r,t)=>{var e=new q(a);throw p[e.ra+16>>2]=0,p[e.ra+4>>2]=r,p[e.ra+8>>2]=t,a},Q:()=>x(""),r:a=>{var r=I[a];delete I[a];var t=r.nb,e=r.Ha,n=r.rb,o=n.map(a=>a.Lb).concat(n.map(a=>a.Vb));L([a],o,a=>{var o={};return n.forEach((r,t)=>{var e=a[t],i=r.Jb,s=r.Kb,u=a[t+n.length],f=r.Ub,l=r.Wb;o[r.Gb]={read:a=>e.sa(i(s,a)),write:(a,r)=>{var t=[];f(l,a,u.wa(t,r)),B(t)},optional:a[t].optional}}),[{name:r.name,sa:a=>{var r,t={};for(r in o)t[r]=o[r].read(a);return e(a),t},wa:(a,r)=>{for(var n in o)if(!(n in r)&&!o[n].optional)throw new TypeError(`Missing field: "${n}"`);var i=t();for(n in o)o[n].write(i,r[n]);return null!==a&&a.push(e,i),i},Ea:M,Aa:e}]})},E:(a,r,t,e,n)=>{r=W(r);let o=a=>a;if(e=0n===e){const a=8*t;o=r=>BigInt.asUintN(a,r),n=o(n)}H(a,{name:r,sa:o,wa:(a,r)=>("number"==typeof r&&(r=BigInt(r)),r),Ea:G(r,t,!e),Aa:null})},ba:(a,r,t,e)=>{H(a,{name:r=W(r),sa:function(a){return!!a},wa:function(a,r){return r?t:e},Ea:function(a){return this.sa(h[a])},Aa:null})},e:(a,r,t,e,n,o,i,s,u,f,l,h,c)=>{l=W(l),o=da(n,o),s&&=da(i,s),f&&=da(u,f),c=da(h,c);var w=(a=>{var r=(a=a.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=r&&57>=r?`_${a}`:a})(l);ra(w,function(){ma(`Cannot construct ${l} due to unbound types`,[e])}),L([a,r,t],e?[e]:[],r=>{if(r=r[0],e)var t=r.na,n=t.La;else n=Y.prototype;r=X(l,function(...a){if(Object.getPrototypeOf(this)!==i)throw new _(`Use 'new' to construct ${l}`);if(void 0===h.Oa)throw new _(`${l} has no accessible constructor`);var r=h.Oa[a.length];if(void 0===r)throw new _(`Tried to invoke ctor of ${l} with invalid number of parameters (${a.length}) - expected (${Object.keys(h.Oa).toString()}) parameters instead!`);return r.apply(this,a)});var i=Object.create(n,{constructor:{value:r}});r.prototype=i;var u,h=new ta(l,r,i,c,t,o,s,f);return h.ya&&((u=h.ya).Ya??(u.Ya=[]),h.ya.Ya.push(h)),t=new ha(l,h,!0,!1,!1),u=new ha(l+"*",h,!1,!1,!1),n=new ha(l+" const*",h,!1,!0,!1),Z[a]={pointerType:u,Eb:n},ca(w,r),[t,u,n]})},v:(a,r,t,e,n,o,i)=>{var s=ya(t,e);r=W(r),r=ga(r),o=da(n,o),L([],[a],a=>{function e(){ma(`Cannot call ${n} due to unbound types`,s)}var n=`${(a=a[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]);var u=a.na.constructor;return void 0===u[r]?(e.Ma=t-1,u[r]=e):(aa(u,r,n),u[r].ua[t-1]=e),L([],s,e=>{if(e=ba(n,[e[0],null].concat(e.slice(1)),null,o,i),void 0===u[r].ua?(e.Ma=t-1,u[r]=e):u[r].ua[t-1]=e,a.na.Ya)for(const t of a.na.Ya)t.constructor.hasOwnProperty(r)||(t.constructor[r]=e);return[]}),[]})},g:(a,r,t,e,n,o)=>{var i=ya(r,t);n=da(e,n),L([],[a],a=>{var t=`constructor ${(a=a[0]).name}`;if(void 0===a.na.Oa&&(a.na.Oa=[]),void 0!==a.na.Oa[r-1])throw new _(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${a.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return a.na.Oa[r-1]=()=>{ma(`Cannot construct ${a.name} due to unbound types`,i)},L([],i,e=>(e.splice(1,0,null),a.na.Oa[r-1]=ba(t,e,null,n,o),[])),[]})},b:(a,r,t,e,n,o,i,s)=>{var u=ya(t,e);r=W(r),r=ga(r),o=da(n,o),L([],[a],a=>{function e(){ma(`Cannot call ${n} due to unbound types`,u)}var n=`${(a=a[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&a.na.Sb.push(r);var f=a.na.La,l=f[r];return void 0===l||void 0===l.ua&&l.className!==a.name&&l.Ma===t-2?(e.Ma=t-2,e.className=a.name,f[r]=e):(aa(f,r,n),f[r].ua[t-2]=e),L([],u,e=>(e=ba(n,e,a,o,i),void 0===f[r].ua?(e.Ma=t-2,f[r]=e):f[r].ua[t-2]=e,[])),[]})},c:(a,r,t,e,n,o,i,s,u,f)=>{r=W(r),n=da(e,n),L([],[a],a=>{var e=`${(a=a[0]).name}.${r}`,l={get(){ma(`Cannot access ${e} due to unbound types`,[t,i])},enumerable:!0,configurable:!0};return l.set=u?()=>ma(`Cannot access ${e} due to unbound types`,[t,i]):()=>{throw new _(e+" is a read-only property")},Object.defineProperty(a.na.La,r,l),L([],u?[t,i]:[t],t=>{var i=t[0],l={get(){var r=$a(this,a,e+" getter");return i.sa(n(o,r))},enumerable:!0};if(u){u=da(s,u);var h=t[1];l.set=function(r){var t=$a(this,a,e+" setter"),n=[];u(f,t,h.wa(n,r)),B(n)}}return Object.defineProperty(a.na.La,r,l),[]}),[]})},_:a=>H(a,Oa),m:(a,r,t,e)=>{function n(){}r=W(r),n.values={},H(a,{name:r,constructor:n,sa:function(a){return this.constructor.values[a]},wa:(a,r)=>r.value,Ea:Ta(r,t,e),Aa:null}),ra(r,n)},d:(a,r,t)=>{var e=Sa(a,"enum");r=W(r),a=e.constructor,e=Object.create(e.constructor.prototype,{value:{value:t},constructor:{value:X(`${e.name}_${r}`,function(){})}}),a.values[t]=e,a[r]=e},D:(a,r,t)=>{H(a,{name:r=W(r),sa:a=>a,wa:(a,r)=>r,Ea:Pa(r,t),Aa:null})},da:(a,r,t,e,n,o)=>{var i=ya(r,t);a=W(a),a=ga(a),n=da(e,n),ra(a,function(){ma(`Cannot call ${a} due to unbound types`,i)},r-1),L([],i,t=>(ca(a,ba(a,[t[0],null].concat(t.slice(1)),null,n,o),r-1),[]))},w:(a,r,t,e,n)=>{r=W(r);let o=a=>a;if(0===e){var i=32-8*t;o=a=>a<<i>>>i,n=o(n)}H(a,{name:r,sa:o,wa:(a,r)=>r,Ea:G(r,t,0!==e),Aa:null})},o:(a,r,t)=>{function e(a){return new n(l.buffer,p[a+4>>2],p[a>>2])}var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][r];H(a,{name:t=W(t),sa:e,Ea:e},{Mb:!0})},t:a=>{H(a,ja)},k:(a,r,t,e,n,o,i,s,u,f,l,h)=>{t=W(t),o=da(n,o),s=da(i,s),f=da(u,f),h=da(l,h),L([a],[r],a=>(a=a[0],[new ha(t,a.na,!1,!1,!0,a,e,o,s,f,h)]))},aa:(a,r)=>{H(a,{name:r=W(r),sa(a){var r=(r=a+4)?Ba(h,r,p[a>>2],!0):"";return Qr(a),r},wa(a,r){r instanceof ArrayBuffer&&(r=new Uint8Array(r));var t="string"==typeof r;if(!(t||ArrayBuffer.isView(r)&&1==r.BYTES_PER_ELEMENT))throw new _("Cannot pass non-string to std::string");var e=t?Ra(r):r.length,n=Vr(4+e+1),o=n+4;return p[n>>2]=e,t?Da(r,h,o,e+1):h.set(r,o),null!==a&&a.push(Qr,n),n},Ea:M,Aa(a){Qr(a)}})},A:(a,r,t)=>{if(t=W(t),2===r)var e=za,n=Ua,o=Na;else e=Fa,n=La,o=Wa;H(a,{name:t,sa:a=>{var t=e(a+4,p[a>>2]*r,!0);return Qr(a),t},wa:(a,e)=>{if("string"!=typeof e)throw new _(`Cannot pass non-string to C++ string type ${t}`);var i=o(e),s=Vr(4+i+r);return p[s>>2]=i/r,n(e,s+4,i+r),null!==a&&a.push(Qr,s),s},Ea:M,Aa(a){Qr(a)}})},s:(a,r,t,e,n,o)=>{I[a]={name:W(r),nb:da(t,e),Ha:da(n,o),rb:[]}},l:(a,r,t,e,n,o,i,s,u,f)=>{I[a].rb.push({Gb:W(r),Lb:t,Jb:da(e,n),Kb:o,Vb:i,Ub:da(s,u),Wb:f})},ca:(a,r)=>{H(a,{Nb:!0,name:r=W(r),sa:()=>{},wa:()=>{}})},I:()=>{R=!1,_a=0},i:(a,r,t)=>{var[e,...n]=((a,r)=>{for(var t=Array(a),e=0;e<a;++e)t[e]=Sa(p[r+4*e>>2],`parameter ${e}`);return t})(a,r),o=e.wa.bind(e),i=n.map(a=>a.Ea.bind(a));a--;var s=Array(a);return r=`methodCaller<(${n.map(a=>a.name)}) => ${e.name}>`,(a=>{var r=Ha.length;return Ha.push(a),r})(X(r,(r,e,n,u)=>{for(var f=0,l=0;l<a;++l)s[l]=i[l](u+f),f+=8;switch(t){case 0:var h=Ea(r).apply(null,s);break;case 2:h=Reflect.construct(Ea(r),s);break;case 3:h=s[0];break;case 1:h=Ea(r)[Ja(e)](...s)}return h=o(r=[],h),r.length&&(p[n>>2]=xa(r)),h}))},a:ka,W:a=>a?(a=Ja(a),xa(globalThis[a])):xa(globalThis),q:(a,r)=>(a=Ea(a),r=Ea(r),xa(a[r])),f:a=>{9<a&&(Ca[a+1]+=1)},$:(a,r)=>(a=Ea(a))instanceof Ea(r),j:Ka,Z:Ka,u:a=>"number"==typeof(a=Ea(a)),x:a=>"string"==typeof(a=Ea(a)),F:()=>xa([]),p:a=>xa(Ja(a)),h:a=>{var r=Ea(a);B(r),ka(a)},z:a=>(a=Ea(a),xa(typeof a)),G:(a,r)=>{if(zr[a]&&(clearTimeout(zr[a].id),delete zr[a]),!r)return 0;var t=setTimeout(()=>{delete zr[a],(a=>{if(!C)try{if(a(),!(R||0<_a))try{s=a=s,Nr(a)}catch(a){Ur(a)}}catch(a){Ur(a)}})(()=>Xr(a,performance.now()))},r);return zr[a]={id:t,qc:r},0},S:(a,r,t,e)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1).getTimezoneOffset();n=new Date(n,6,1).getTimezoneOffset(),p[a>>2]=60*Math.max(o,n),d[r>>2]=Number(o!=n),a=(r=a=>{var r=Math.abs(a);return`UTC${0<=a?"-":"+"}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`})(o),r=r(n),n<o?(Da(a,h,t,17),Da(r,h,e,17)):(Da(a,h,e,17),Da(r,h,t,17))},P:function(a,r,t){return 0<=a&&3>=a?(b[t>>3]=BigInt(Math.round(1e6*(0===a?Date.now():performance.now()))),0):28},Y:(a,r,t)=>{Fr.length=0;for(var e;e=h[r++];){var n=105!=e;t+=(n&=112!=e)&&t%8?4:0,Fr.push(112==e?p[t>>2]:106==e?b[t>>3]:105==e?d[t>>2]:m[t>>3]),t+=n?8:4}return tt[a](...Fr)},C:(a,r)=>A(a?Ba(h,a,r):""),y:()=>performance.now(),T:Hr,H:a=>{var r=h.length;if(2147483648<(a>>>=0))return!1;for(var t=1;4>=t;t*=2){var e=r*(1+.2/t);e=Math.min(e,a+100663296);a:{e=(Math.min(2147483648,65536*Math.ceil(Math.max(a,e)/65536))-Zr.buffer.byteLength+65535)/65536|0;try{Zr.grow(e),E();var n=1;break a}catch(a){}n=void 0}if(n)return!0}return!1},X:()=>{var a=Error().stack.toString().split("\n");return"Error"==a[0]&&a.shift(),_r(a),Lr.tb=Wr(a[3]),Lr.Ob=a,Lr.tb},V:(a,r,t)=>{if(Lr.tb==a)var e=Lr.Ob;else"Error"==(e=Error().stack.toString().split("\n"))[0]&&e.shift(),_r(e);for(var n=3;e[n]&&Wr(e[n])!=a;)++n;for(a=0;a<t&&e[a+n];++a)d[r+4*a>>2]=Wr(e[a+n]);return a},K:(a,r)=>{var t,e=0,n=0;for(t of Jr()){var o=r+e;p[a+n>>2]=o,e+=Da(t,h,o,1/0)+1,n+=4}return 0},L:(a,r)=>{var t=Jr();for(var e of(p[a>>2]=t.length,a=0,t))a+=Ra(e)+1;return p[r>>2]=a,0},B:a=>{s=a,Nr(a)},O:function(a){try{var r=kr(a);if(null===r.Pa)throw new dr(8);r.kb&&(r.kb=null);try{r.qa.close&&r.qa.close(r)}catch(a){throw a}finally{ur[r.Pa]=null}return r.Pa=null,0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},N:function(a,r,t,e){try{a:{var n=kr(a);a=r;for(var o,i=r=0;i<t;i++){var s=p[a>>2],u=p[a+4>>2];a+=8;var f=n,h=s,c=u,w=o,d=l;if(0>c||0>w)throw new dr(28);if(null===f.Pa)throw new dr(8);if(1==(2097155&f.flags))throw new dr(8);if(16384==(61440&f.node.mode))throw new dr(31);if(!f.qa.read)throw new dr(28);var v=void 0!==w;if(v){if(!f.seekable)throw new dr(70)}else w=f.position;var m=f.qa.read(f,d,h,c,w);v||(f.position+=m);var b=m;if(0>b){var y=-1;break a}if(r+=b,b<u)break;void 0!==o&&(o+=b)}y=r}return p[e>>2]=y,0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},J:function(a,r,t,e){r=-9007199254740992>r||9007199254740992<r?NaN:Number(r);try{if(isNaN(r))return 61;var n=kr(a);return qr(n,r,t),b[e>>3]=BigInt(n.position),n.kb&&0===r&&0===t&&(n.kb=null),0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},M:function(a,r,t,e){try{a:{var n=kr(a);a=r;for(var o,i=r=0;i<t;i++){var s=p[a>>2],u=p[a+4>>2];a+=8;var f=n,h=s,c=u,w=o,d=l;if(0>c||0>w)throw new dr(28);if(null===f.Pa)throw new dr(8);if(!(2097155&f.flags))throw new dr(8);if(16384==(61440&f.node.mode))throw new dr(31);if(!f.qa.write)throw new dr(28);f.seekable&&1024&f.flags&&qr(f,0,2);var v=void 0!==w;if(v){if(!f.seekable)throw new dr(70)}else w=f.position;var m=f.qa.write(f,d,h,c,w,void 0);v||(f.position+=m);var b=m;if(0>b){var y=-1;break a}if(r+=b,b<u)break;void 0!==o&&(o+=b)}y=r}return p[e>>2]=y,0}catch(a){if(void 0===Mr||"ErrnoError"!==a.name)throw a;return a.Ta}},R:Nr};return rt=await async function(){function a(a){return a=rt=a.exports,Kr=a.ga,Vr=a.ha,Qr=a.ia,Yr=a.ka,Xr=a.la,Zr=a.ea,at=a.ja,E(),rt}var r={a:et};return e.instantiateWasm?new Promise(t=>{e.instantiateWasm(r,(r,e)=>{t(a(r))})}):(g??=e.locateFile?e.locateFile("arcgis-knowledge-client-core-simd.wasm",o):o+"arcgis-knowledge-client-core-simd.wasm",a((await async function(a){var r=g;if(!i)try{var t=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(t,a)}catch(a){A(`wasm streaming compile failed: ${a}`),A("falling back to ArrayBuffer instantiation")}return async function(a,r){try{var t=await O(a);return await WebAssembly.instantiate(t,r)}catch(a){A(`failed to asynchronously prepare wasm: ${a}`),x(a)}}(r,a)}(r)).instance))}(),function(){function a(){if(e.calledRun=!0,!C){var a,r;if(k=!0,e.noFSInit||hr||(hr=!0,a??=e.stdin,r??=e.stdout,t??=e.stderr,a?Ir("stdin",a):Dr("/dev/tty","/dev/stdin"),r?Ir("stdout",null,r):Dr("/dev/tty","/dev/stdout"),t?Ir("stderr",null,t):Dr("/dev/tty1","/dev/stderr"),Rr("/dev/stdin",0),Rr("/dev/stdout",1),Rr("/dev/stderr",1)),rt.fa(),cr=!1,u?.(e),e.onRuntimeInitialized?.(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var t=e.postRun.shift();P.push(t)}S(P)}}if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)D();S(j),e.setStatus?(e.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>e.setStatus(""),1),a()},1)):a()}(),k?e:new Promise((a,r)=>{u=a,f=r})},a.exports=t,a.exports.default=t),o.exports;var a,r,t}()),s=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2390],{11053:(e,t,r)=>{r.d(t,{c:()=>n,g:()=>i});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},22390:(e,t,r)=>{r.d(t,{isAnimatedPNG:()=>f,parseApng:()=>l});var n,i=r(11053),s=r(74887),a=r(78659),o={exports:{}};o.exports;const u=(0,i.g)((n||(n=1,h=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.isNotPNG=function(e){return e===s},t.isNotAPNG=function(e){return e===a},t.default=function(e){var t=new Uint8Array(e);if(Array.prototype.some.call(o,function(e,r){return e!==t[r]}))return s;var r=!1;if(u(t,function(e){return!(r="acTL"===e)}),!r)return a;var n=[],h=[],p=null,m=null,d=0,v=new i.APNG;if(u(t,function(e,t,r,s){var a=new DataView(t.buffer);switch(e){case"IHDR":p=t.subarray(r+8,r+8+s),v.width=a.getUint32(r+8),v.height=a.getUint32(r+12);break;case"acTL":v.numPlays=a.getUint32(r+8+4);break;case"fcTL":m&&(v.frames.push(m),d++),(m=new i.Frame).width=a.getUint32(r+8+4),m.height=a.getUint32(r+8+8),m.left=a.getUint32(r+8+12),m.top=a.getUint32(r+8+16);var o=a.getUint16(r+8+20),u=a.getUint16(r+8+22);0===u&&(u=100),m.delay=1e3*o/u,m.delay<=10&&(m.delay=100),v.playTime+=m.delay,m.disposeOp=a.getUint8(r+8+24),m.blendOp=a.getUint8(r+8+25),m.dataParts=[],0===d&&2===m.disposeOp&&(m.disposeOp=1);break;case"fdAT":m&&m.dataParts.push(t.subarray(r+8+4,r+8+s));break;case"IDAT":m&&m.dataParts.push(t.subarray(r+8,r+8+s));break;case"IEND":h.push(l(t,r,12+s));break;default:n.push(l(t,r,12+s))}}),m&&v.frames.push(m),0==v.frames.length)return a;var _=new Blob(n),g=new Blob(h);return v.frames.forEach(function(e){var t=[];t.push(o),p.set(f(e.width),0),p.set(f(e.height),4),t.push(c("IHDR",p)),t.push(_),e.dataParts.forEach(function(e){return t.push(c("IDAT",e))}),t.push(g),e.imageData=new Blob(t,{type:"image/png"}),delete e.dataParts,t=null}),v};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(1)),i=r(2),s=new Error("Not a PNG"),a=new Error("Not an animated PNG"),o=new Uint8Array([137,80,78,71,13,10,26,10]);function u(e,t){var r=new DataView(e.buffer),n=8,i=void 0,s=void 0,a=void 0;do{s=r.getUint32(n),a=t(i=h(e,n+4,4),e,n,s),n+=12+s}while(!1!==a&&"IEND"!=i&&n<e.length)}function h(e,t,r){var n=Array.prototype.slice.call(e.subarray(t,t+r));return String.fromCharCode.apply(String,n)}function l(e,t,r){var n=new Uint8Array(r);return n.set(e.subarray(t,t+r)),n}var c=function(e,t){var r=e.length+t.length,i=new Uint8Array(r+8),s=new DataView(i.buffer);s.setUint32(0,t.length),i.set(function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(e),4),i.set(t,8);var a=(0,n.default)(i,4,r);return s.setUint32(r+4,a),i},f=function(e){return new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e])}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,i=t,s=t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length-t);i<s;i++)n=n>>>8^r[255&(n^e[i])];return-1^n};for(var r=new Uint32Array(256),n=0;n<256;n++){for(var i=n,s=0;s<8;s++)i=1&i?3988292384^i>>>1:i>>>1;r[n]=i}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Frame=t.APNG=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(3));function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.APNG=function(){function e(){s(this,e),this.width=0,this.height=0,this.numPlays=0,this.playTime=0,this.frames=[]}return n(e,[{key:"createImages",value:function(){return Promise.all(this.frames.map(function(e){return e.createImage()}))}},{key:"getPlayer",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.createImages().then(function(){return new i.default(t,e,r)})}}]),e}(),t.Frame=function(){function e(){s(this,e),this.left=0,this.top=0,this.width=0,this.height=0,this.delay=0,this.disposeOp=0,this.blendOp=0,this.imageData=null,this.imageElement=null}return n(e,[{key:"createImage",value:function(){var e=this;return this.imageElement?Promise.resolve():new Promise(function(t,r){var n=URL.createObjectURL(e.imageData);e.imageElement=document.createElement("img"),e.imageElement.onload=function(){URL.revokeObjectURL(n),t()},e.imageElement.onerror=function(){URL.revokeObjectURL(n),e.imageElement=null,r(new Error("Image creation error"))},e.imageElement.src=n})}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){function t(e,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.playbackRate=1,i._currentFrameNumber=0,i._ended=!1,i._paused=!0,i._numPlays=0,i._rafId=null,i._apng=e,i.context=r,i.stop(),n&&i.play(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"renderNextFrame",value:function(){this._currentFrameNumber=(this._currentFrameNumber+1)%this._apng.frames.length,this._currentFrameNumber===this._apng.frames.length-1&&(this._numPlays++,0!==this._apng.numPlays&&this._numPlays>=this._apng.numPlays&&(this._ended=!0,this._paused=!0)),this._prevFrame&&1==this._prevFrame.disposeOp?this.context.clearRect(this._prevFrame.left,this._prevFrame.top,this._prevFrame.width,this._prevFrame.height):this._prevFrame&&2==this._prevFrame.disposeOp&&this.context.putImageData(this._prevFrameData,this._prevFrame.left,this._prevFrame.top);var e=this.currentFrame;this._prevFrame=e,this._prevFrameData=null,2==e.disposeOp&&(this._prevFrameData=this.context.getImageData(e.left,e.top,e.width,e.height)),0==e.blendOp&&this.context.clearRect(e.left,e.top,e.width,e.height),this.context.drawImage(e.imageElement,e.left,e.top),this.emit("frame",this._currentFrameNumber),this._ended&&this.emit("end")}},{key:"play",value:function(){var e=this;this._rafId&&cancelAnimationFrame(this._rafId),this.emit("play"),this._ended&&this.stop(),this._paused=!1;var t=performance.now()+this.currentFrame.delay/this.playbackRate;this._rafId=requestAnimationFrame(function r(n){if(!e._ended&&!e._paused){if(n>=t){for(;n-t>=e._apng.playTime/e.playbackRate;)t+=e._apng.playTime/e.playbackRate,e._numPlays++;do{e.renderNextFrame(),t+=e.currentFrame.delay/e.playbackRate}while(!e._ended&&!e._paused&&n>t)}e._rafId=requestAnimationFrame(r)}})}},{key:"pause",value:function(){this._paused||(this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=null),this.emit("pause"),this._paused=!0)}},{key:"stop",value:function(){this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=null),this.emit("stop"),this._numPlays=0,this._ended=!1,this._paused=!0,this._currentFrameNumber=-1,this.context.clearRect(0,0,this._apng.width,this._apng.height),this.renderNextFrame()}},{key:"currentFrameNumber",get:function(){return this._currentFrameNumber}},{key:"currentFrame",get:function(){return this._apng.frames[this._currentFrameNumber]}},{key:"paused",get:function(){return this._paused}},{key:"ended",get:function(){return this._ended}}]),t}(function(e){return e&&e.__esModule?e:{default:e}}(r(4)).default);t.default=i},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,a,o,u,h;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(s(r=this._events[e]))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),r.apply(this,o)}else if(i(r))for(o=Array.prototype.slice.call(arguments,1),a=(h=r.slice()).length,u=0;u<a;u++)h[u].apply(this,o);return!0},r.prototype.addListener=function(e,t){var a;if(!n(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(a=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},r.prototype.removeListener=function(e,t){var r,s,a,o;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(r=this._events[e]).length,s=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(r)){for(o=a;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){s=o;break}if(s<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(s,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}}])},o.exports=h()),o.exports));var h;async function l(e,t){const r=u(e);if(r instanceof Error)throw r;await r.createImages(),(0,s.Te)(t);const{frames:n,width:i,height:o}=r,h=document.createElement("canvas");h.width=i,h.height=o;const l=h.getContext("2d",{willReadFrequently:!0}),c=[],f=[];let p=0;for(const e of n){const t=(0,a.l5)(e.delay||100);f.push(t),p+=t;const r=e.imageElement;0===e.blendOp?l.globalCompositeOperation="copy":l.globalCompositeOperation="source-over";const n=2===e.disposeOp?l.getImageData(e.left,e.top,e.width,e.height):void 0;l.drawImage(r,e.left,e.top);const s=l.getImageData(0,0,i,o);c.push(s),0===e.disposeOp||(1===e.disposeOp?l.clearRect(e.left,e.top,e.width,e.height):2===e.disposeOp&&l.putImageData(n,e.left,e.top))}return{frameCount:n.length,duration:p,frameDurations:f,getFrame:e=>c[e],width:i,height:o}}const c=[137,80,78,71,13,10,26,10];function f(e){if(!function(e){const t=new Uint8Array(e);return!c.some((e,r)=>e!==t[r])}(e))return!1;const t=new DataView(e),r=new Uint8Array(e);let n,i=8;do{const e=t.getUint32(i);if(n=String.fromCharCode.apply(String,Array.prototype.slice.call(r.subarray(i+4,i+8))),"acTL"===n)return!0;i+=12+e}while("IEND"!==n&&i<r.length);return!1}}}]);
|