gs-bim-air 3.0.0 → 3.0.1

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.
@@ -1 +0,0 @@
1
- (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["331"]=t():e["331"]=t()})("undefined"!==typeof self?self:this,(function(){return function(){var e={1331:function(e,t,r){"use strict";r(8706),r(3792),r(4114),r(4743),r(1745),r(6573),r(8100),r(7936),r(2010),r(9432),r(6099),r(3362),r(7495),r(5440),r(4594),r(9833),r(6594),r(5477),r(1489),r(8140),r(1630),r(2170),r(5044),r(1920),r(1694),r(9955),r(1903),r(1134),r(3206),r(4496),r(6651),r(2887),r(9369),r(6812),r(8995),r(1575),r(6072),r(8747),r(8845),r(9423),r(7301),r(373),r(6614),r(1405),r(7467),r(4732),r(3684),r(9577),r(3500),r(3611);var n,o=r(4370),i={};function _(e){return new Promise((function(t){if(i[e]&&(i[e].close(),i[e]=null,n=null),i[e])t();else{var r=indexedDB.open(e,22);r.onupgradeneeded=function(t){i[e]=t.target.result,i[e].objectStoreNames.contains("FILE_DATA")||(n=i[e].createObjectStore("FILE_DATA",{autoIncrement:!0}))},r.onsuccess=function(r){if(i[e]&&n)t();else if(i[e]=r.target.result,i[e].objectStoreNames.contains("FILE_DATA")){var o=i[e].transaction(["FILE_DATA"],"readwrite");n=o.objectStore("FILE_DATA"),t()}else n=i[e].createObjectStore("FILE_DATA",{autoIncrement:!0}),t()},r.onerror=function(e){console.error("创建idb报错:",e)}}}))}function a(e,t){return new Promise((function(r){try{if(i[e]){var n=i[e].transaction(["FILE_DATA"],"readonly"),o=n.objectStore("FILE_DATA"),a=o.get(t);a.onsuccess=function(e){r(e.target.result)},a.onerror=function(e){console.error("获取idb数据报错:",e),r(!1)}}else _(e).then((function(){var n=i[e].transaction(["FILE_DATA"],"readonly"),o=n.objectStore("FILE_DATA"),_=o.get(t);_.onsuccess=function(e){r(e.target.result)},_.onerror=function(e){console.error("获取idb数据报错:",e),r(!1)}}))}catch(s){console.error("idb报错:",s)}}))}function s(e,t,r){return new Promise((function(n,o){if(i[e]){var a=i[e].transaction(["FILE_DATA"],"readwrite"),s=a.objectStore("FILE_DATA"),l=s.put(r,t);l.onsuccess=function(e){n(e.target.result)},l.onerror=function(e){console.error("获取idb数据报错:",e),n(!1)}}else _(e).then((function(){var o=i[e].transaction(["FILE_DATA"],"readwrite"),_=o.objectStore("FILE_DATA"),a=_.put(r,t);a.onsuccess=function(e){n(e.target.result)},a.onerror=function(e){console.error("获取idb数据报错:",e),n(!1)}}))}))}r(7764),r(2953),r(3296),r(7208),r(8408),r(4603),r(7566),r(8721),r(4554),r(2892);var l,u,c=function(){function e(){this.items={},this.len=0}return e.prototype.add=function(e,t){e in this.items?this.items[e]=t:(this.items[e]=t,this.len++)},e.prototype.addRange=function(e){for(var t in e)this.add(t,e[t])},e.prototype.remove=function(e){return e in this.items&&(delete this.items[e],this.len--,!0)},e.prototype.clear=function(){this.items={},this.len=0},e.prototype.has=function(e){return e in this.items},e.prototype.get=function(e){var t=this.items[e];return t||null},Object.defineProperty(e.prototype,"count",{get:function(){return this.len},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e){for(var t in this.items){var r=e(t,this.items[t]);if(!1===r)return}},e}(),S=(function(){function e(){this.typeName="NumberKeyList",this.items={},this.len=0}e.prototype.add=function(e,t){e in this.items?this.items[e]=t:(this.items[e]=t,this.len++)},e.prototype.addRange=function(e){for(var t in e)this.add(parseInt(t),e[t])},e.prototype.remove=function(e){return e in this.items&&(delete this.items[e],this.len--,!0)},e.prototype.clear=function(){this.items={},this.len=0},e.prototype.has=function(e){return e in this.items},e.prototype.get=function(e){var t=this.items[e];return t||null},Object.defineProperty(e.prototype,"first",{get:function(){var e=null;for(var t in this.items){e=this.items[t];break}return e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this.len},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e){for(var t in this.items){var r=e(Number(t),this.items[t]);if(!1===r)return}}}(),function(){function e(){this.typeName="NumberSortedList",this.inOrder=!1,this.items=new Array}return Object.defineProperty(e.prototype,"count",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),e.prototype.indexOf=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t][1]==e)return t;return-1},e.prototype.indexOfKey=function(e){var t=0,r=this.items.length-1;while(t<=r){var n=Math.floor((t+r)/2);if(e===this.items[n][0])return n;e>this.items[n][0]?t=n+1:r=n-1}return-1},e.prototype.add=function(e,t){var r=this.items.length-1,n=0,o=r;if(0!=this.items.length)if(e<this.items[0][0])this.items.unshift([e,t]);else if(e>=this.items[r][0])this.items.push([e,t]);else{var i=-1;while(n<o){var _=Math.floor((n+o)/2);if(_>0&&e<=this.items[_][0]&&e>=this.items[_-1][0]){i=_;break}if(_<r&&e>=this.items[_][0]&&e<=this.items[_+1][0]){i=_+1;break}e>this.items[_][0]?n=_+1:o=_-1}if(i>=0){if(this.inOrder)for(var a=i;a<this.items.length;a++){if(this.items[a][0]!=e)break;i=a+1}this.items.splice(i,0,[e,t])}}else this.items.push([e,t])},e.prototype.removeAt=function(e){return e>=0&&e<this.items.length&&(this.items.splice(e,1),!0)},e.prototype.remove=function(e){var t=this.indexOfKey(e);this.removeAt(t)},e.prototype.keyByIndex=function(e){return e>=0&&e<this.items.length?this.items[e][0]:-1},e.prototype.valueByIndex=function(e){return e>=0&&e<this.items.length?this.items[e][1]:null},e.prototype.clear=function(){this.items=new Array},e.prototype.forEach=function(e){for(var t=this.items.length,r=0;r<t;r++){var n=e(this.items[r][1]);if(!1===n)return}},e}()),d=function(){function e(e){this.typeName="List",this.items=e?new Array(e):[]}return Object.defineProperty(e.prototype,"count",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),e.prototype.indexOf=function(e){return this.items.indexOf(e)},e.prototype.lastIndexOf=function(e){return this.items.lastIndexOf(e)},e.prototype.add=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];(e=this.items).push.apply(e,(0,o.fX)([],(0,o.zs)(t),!1))},e.prototype.insert=function(e,t){0==e?this.items.unshift(t):this.items.splice(e,0,t)},e.prototype.addRange=function(e){this.items=this.items.concat(e.items)},e.prototype.remove=function(e){for(var t=this.items.length,r=0;r<t;r++)if(this.items[r]==e)return this.items.splice(r,1),!0;return!1},e.prototype.removeAt=function(e){return e>=0&&e<this.items.length&&(this.items.splice(e,1),!0)},e.prototype.removeRange=function(e,t){return e>=0&&e<this.items.length&&(this.items.splice(e,t),!0)},e.prototype.clear=function(){this.items=[]},e.prototype.get=function(e){var t=this.items[e];return void 0!=t?t:null},e.prototype.contains=function(e){return this.items.indexOf(e)>=0},e.prototype.forEach=function(e){for(var t=this.items.length,r=0;r<t;r++){var n=e(this.items[r],r);if(!1===n)return}},e.prototype.reverseForEach=function(e){for(var t=this.items.length,r=t-1;r>=0;r--){var n=e(this.items[r],r);if(!1===n)return}},e}(),f=(function(){function e(e){this.typeName="Stack",this.index=-1,this.items=e?new Array(e):[]}Object.defineProperty(e.prototype,"count",{get:function(){return this.index+1},enumerable:!1,configurable:!0}),e.prototype.push=function(e){this.items[++this.index]=e},e.prototype.add=function(e){this.items[++this.index]=e},e.prototype.pop=function(){return this.index>=0?this.items[this.index--]:null},e.prototype.peek=function(){return this.index>=0?this.items[this.index]:null},e.prototype.peekDirect=function(){return this.items[this.index]},e.prototype.peekPrev=function(){return this.index>0?this.items[this.index-1]:null},e.prototype.get=function(e){var t=this.items[e];return void 0!=t?t:null},e.prototype.forEach=function(e){for(var t=this.items.length,r=0;r<t;r++){var n=e(this.items[r]);if(!1===n)return}}}(),r(8598),function(){function e(t){this._resolve=null,this._reject=null,this._nullResolve=function(e){},this._nullReject=function(e){},this._event=null,this._resultValue=null,this._resultReason=null,this._resolved=!1,this._rejected=!1,this.allResolveNotify=null,this.allRejectNotify=null,this.joinList=[],t&&(this._event=t),e.promises.add(this)}return Object.defineProperty(e.prototype,"resolved",{get:function(){return this._resolved},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rejected",{get:function(){return this._rejected},enumerable:!1,configurable:!0}),e.prototype.then=function(e){return this._resolve=e,this},e.prototype.catch=function(e){return this._reject=e,this},e.prototype.resolve=function(e){this.allResolveNotify?this.allResolveNotify(e):(this._resultValue=e,this._resolved=!0)},e.prototype.reject=function(e){this.allRejectNotify?this.allRejectNotify(e):(this._resultReason=e,this._rejected=!0)},e.prototype.join=function(e){this.joinList.push(e)},e.prototype._execute=function(){var e=this;if(this._event&&(this._event((function(t){e.resolve(t)}),(function(t){e.reject(t)})),this._event=null),this._resolved){if(this._resolve&&this._resolve(this._resultValue),this.joinList)for(var t=0;t<this.joinList.length;t++){var r=this.joinList[t];r._resolve&&r._resolve(this._resultValue)}return!0}if(this._rejected){if(this._reject&&this._reject(this._resultReason),this.joinList)for(t=0;t<this.joinList.length;t++){r=this.joinList[t];r._reject&&r._reject(this._resultReason)}return!0}return!1},e.all=function(t){var r=new e,n=0,o=0,i=new Array(t.length),_=new Array(t.length);return t.forEach((function(e){e["allResolveNotify"]=function(a){var s=t.indexOf(e);i[s]=a,n++,n==t.length?(r._resultValue=i,r._resolved=!0):n+o==t.length&&(r._resultReason=_,r._rejected=!0)},e._resolved&&e["allResolveNotify"](e._resultValue),e["allRejectNotify"]=function(i){var a=t.indexOf(e);_[a]=i,o++,o!=t.length&&n+o!=t.length||(r._resultReason=_,r._rejected=!0)},e._rejected&&e["allRejectNotify"](e._resultReason)})),r},e.processPromises=function(t){if(e.promises.count>0)if(t)for(var r=0,n=e.promises.items,o=0;o<n.length;o++){var i=n[o];if(i["allResolveNotify"])n.splice(o,1),o--;else if(i._execute()&&(n.splice(o,1),o--,r++),r==t)break}else for(n=e.promises.items,o=0;o<n.length;o++){i=n[o];(i["allResolveNotify"]||i._execute())&&(n.splice(o,1),o--)}},e.promises=new d,e}()),m={ModelUrls:{sourceUrl:"",model:"",system:"",headers:{}}},h=m;(function(e){e[e["Idle"]=0]="Idle",e[e["Busy"]=1]="Busy"})(l||(l={})),function(e){e[e["None"]=0]="None",e[e["Initialize"]=1]="Initialize",e[e["GetJson"]=2]="GetJson",e[e["GetGSZ"]=3]="GetGSZ",e[e["GetGSM"]=4]="GetGSM",e[e["GetImage"]=5]="GetImage",e[e["ComputeHLODLevels"]=6]="ComputeHLODLevels",e[e["GetBTZ"]=7]="GetBTZ",e[e["GetFile"]=8]="GetFile",e[e["GetURLImage"]=9]="GetURLImage",e[e["GetOsgbGSM"]=10]="GetOsgbGSM",e[e["GetImageArrayBuffer"]=11]="GetImageArrayBuffer",e[e["Decompression"]=12]="Decompression",e[e["ComputeSphericalPolynomial"]=20]="ComputeSphericalPolynomial",e[e["ComputeOneSphericalHarmonics"]=21]="ComputeOneSphericalHarmonics",e[e["ComputeCollision"]=13]="ComputeCollision",e[e["ComputeCollisionByTriangles"]=14]="ComputeCollisionByTriangles",e[e["ComputeInstancesCulling"]=15]="ComputeInstancesCulling"}(u||(u={}));var p,y=function(){function e(e,t){this.type=e,this.data=t}return e}();(function(){function e(e){void 0===e&&(e=8);var t=this;this.workers=new d,this.tasks=new S,this.workerNoCounter=1,this.workerCount=8,this.workerInitializePromises=[],this.tasks.inOrder=!0,this.workerCount=e;for(var n=0;n<this.workerCount;n++){var o=new Promise((function(e){var n;n=new Worker(new URL(r.p+r.u(331),r.b)),n["no"]=t.workerNoCounter++,n["state"]=l.Idle,t.workers.add(n),n.onmessage=function(r){if(r.data.type===u.Initialize)e(null);else{var o=n["promise"];o&&(r&&r.data&&r.data.succeeded?o.resolve(new y(r.data.type,r.data.result)):o.reject(r.data.error))}if(n["state"]=l.Idle,n["promise"]=null,t.tasks.count>0){var i=t.tasks.items[0][1];t.tasks.removeAt(0),n["state"]=l.Busy,n["promise"]=i.promise,i.transfer?n.postMessage({cmd:i.type,params:i.params},i.transfer):n.postMessage({cmd:i.type,params:i.params})}},n.postMessage({cmd:u.Initialize,params:{no:n["no"],urls:{model:h.ModelUrls.model,system:h.ModelUrls.system,headers:h.ModelUrls.headers}}})}));this.workerInitializePromises.push(o)}}e.init=function(t){return void 0===t&&(t=8),this.instance=new e(t),Promise.all(this.instance.workerInitializePromises)},e.execute=function(t,r,n,o){void 0===n&&(n=0),this.instance||(this.instance=new e);var i=!1,_=new f;return this.instance.workers.forEach((function(e){if(e["state"]==l.Idle)return e["state"]=l.Busy,e["promise"]=_,o?e.postMessage({cmd:t,params:r},o):e.postMessage({cmd:t,params:r}),i=!0,!1})),i||this.instance.tasks.add(n,{type:t,params:r,transfer:o,promise:_}),_},e.dispose=function(){this.instance&&(console.log("workers dispose----------------"),this.instance.workers.forEach((function(e){e.terminate()})))},e.instance=null})(),r(3175);WebAssembly.instantiateStreaming||(WebAssembly.instantiateStreaming=function(e,t){return(0,o.sH)(void 0,void 0,void 0,(function(){var r;return(0,o.YH)(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[4,n.sent().arrayBuffer()];case 2:return r=n.sent(),[4,WebAssembly.instantiate(r,t)];case 3:return[2,n.sent()]}}))}))});var G,g,w=new Promise((function(e){p=e}));(function(e){e[e["None"]=0]="None",e[e["Intersect"]=1]="Intersect",e[e["Touch"]=2]="Touch",e[e["Contain"]=4]="Contain",e[e["Soft"]=8]="Soft"})(g||(g={}));var v=null,E=null,b=null,P=null,T=null,C=null,I=null,A=null,L=null,F=null,D=null,O=null,B=function(){v||(v=G._GS_Init_Database,E=G._GS_Fina_Database,b=function(e){var t=G.allocateUTF8(e),r=G._GS_Open_Segment(t);return G._free(t),r},G._GS_Open_Segment_By_Key,P=G._GS_Close_Segment,function(e){var t=G.allocateUTF8(e);G._GS_Delete_Segment(t),G._free(t)},G._GS_Delete_By_Key,function(e){var t=G._malloc(256);G._GS_Show_Segment_Name(e,t);var r=G.UTF8ToString(t);return G._free(t),r},function(e){var t=G._malloc(1024);G._GS_Show_Segment_Path(e,t);var r=G.UTF8ToString(t);return G._free(t),r},function(e){var t=G.allocateUTF8(e),r=G._GS_Segment_Exists(t);return G._free(t),!!r},function(e,t){var r=G.allocateUTF8(t);G._GS_Move_Key(e,r),G._free(r)},G._GS_Move_Key_By_Key,function(e){var t=G.allocateUTF8(e),r=G._GS_Rename_Segment(t);return G._free(t),r},function(e){var t=G._malloc(4),r=G._malloc(4);G._GS_Segment_To_Stream_By_Key(e,t,r);var n=G.HEAP32[t/4],o=G.HEAP32[r/4],i=new ArrayBuffer(o),_=new Uint8Array(i);return _.set(G.HEAP8.subarray(n,n+o)),i},function(e){var t=G._malloc(4),r=G._malloc(4);G._GS_Segment_To_Stream_With_Compression_By_Key(e,t,r);var n=G.HEAP32[t/4],o=G.HEAP32[r/4],i=new ArrayBuffer(o),_=new Uint8Array(i);return _.set(G.HEAP8.subarray(n,n+o)),i},T=function(e,t){var r=G._malloc(e.byteLength),n=new Int8Array(e);G.HEAP8.set(n,r);var o=_GS_Stream_To_Segment_By_Key(r,e.byteLength,t);return G._free(r),n=null,o},function(e,t,r){var n=G._malloc(e.byteLength),o=G.allocateUTF8(r),i=new Int8Array(e);G.HEAP8.set(i,n);var _=_GS_Stream_With_Compression_To_Segment_By_Key(n,e.byteLength,t,o);return G._free(n),G._free(o),i=null,_},C=function(e,t,r,n){if(t.length>0&&r.length>0){var o=G._malloc(4*t.length);G.HEAP32.set(t,o/4);var i=G._malloc(4*r.length);G.HEAP32.set(r,i/4);var _=G._GS_Compute_Collision_By_Keys(e,o,t.length,i,r.length,n);return G._free(o),G._free(i),_}return-1},function(){var e=G._malloc(4);G._GS_Show_Collision_Count(e);var t=G.HEAP32[e/4];return G._free(e),t},function(e){var t=G._malloc(4),r=G._malloc(4),n=G._malloc(4),o=G._malloc(4);G._GS_Show_Collision_Elements(e,t,r,n,o);var i=G.HEAP32[t/4],_=G.HEAP32[r/4],a=G.HEAP32[n/4],s=G.HEAP32[o/4];return G._free(t),G._free(r),G._free(n),G._free(o),new Int32Array([i,_,a,s])},function(e){var t=G._malloc(1024),r=G._malloc(1024);G._GS_Show_Collision_Paths(e,t,r);var n=G.UTF8ToString(t),o=G.UTF8ToString(r);return G._free(t),G._free(r),[n,o]},function(e){var t=G._malloc(4),r=G._malloc(2048),n=G._malloc(4),o=G._malloc(2048);G._GS_Show_Collision_Path_By_Keys(e,t,r,n,o);for(var i=G.HEAP32[t/4],_=new Int32Array(i),a=G.HEAP32[n/4],s=new Int32Array(a),l=0;l<i;l++)_[l]=G.HEAP32[r/4+l];for(l=0;l<a;l++)s[l]=G.HEAP32[o/4+l];return G._free(t),G._free(r),G._free(n),G._free(o),[_,s]},function(e){var t=G._malloc(24);G._GS_Show_Collision_Position(e,t);var r=new Float32Array(3);return r[0]=G.HEAPF32[t/4],r[1]=G.HEAPF32[t/4+1],r[2]=G.HEAPF32[t/4+2],G._free(t),r},function(e){var t=G._malloc(4);G._GS_Show_Collision_Type(e,t);var r=G.HEAP32[t/4];return G._free(t),r},I=function(e){var t=null,r=G._malloc(4),n=G._malloc(4),o=G._malloc(4),i=G._malloc(4),_=G._malloc(4),a=G._malloc(e.byteLength),s=new Int8Array(e);G.HEAP8.set(s,a),G._GS_Load_Image(a,e.byteLength,r,n,o,i,_);var l=G.HEAP32[r/4],u=G.HEAP32[n/4],c=G.HEAP32[o/4],S=G.HEAP32[i/4],d=G.HEAP32[_/4],f=u*c*S;return d?(t=new Float32Array(f),t.set(G.HEAPF32.subarray(l/4,l/4+f))):(t=new Uint8Array(f),t.set(G.HEAP8.subarray(l,l+f))),G._free(a),G._free(l),G._free(r),G._free(n),G._free(o),G._free(i),G._free(_),{width:u,height:c,channels:S,isHdr:d,data:t}},A=function(e){var t=null,r=G._malloc(4),n=G._malloc(4),o=G._malloc(e.byteLength),i=new Int8Array(e);G.HEAP8.set(i,o),G._GS_Decompress_Data(o,e.byteLength,r,n);var _=G.HEAP32[r/4],a=G.HEAP32[n/4];return t=new Uint8Array(a),t.set(G.HEAP8.subarray(_,_+a)),G._free(o),G._free(_),G._free(r),G._free(n),t},L=function(e,t,r,n,o,i,_,a,s,l){var u=G._malloc(o.byteLength);G.HEAP8.set(o,u);var c=G._malloc(i.byteLength);G.HEAP8.set(i,c);var S=G._malloc(_.byteLength);G.HEAP8.set(_,S);var d=G._malloc(a.byteLength);G.HEAP8.set(a,d);var f=G._malloc(s.byteLength);G.HEAP8.set(s,f);var m=G._malloc(l.byteLength);G.HEAP8.set(l,m);var h=G._malloc(216);G._GS_Compute_Spherical_Polynomial(e,t,r,n?1:0,u,c,S,d,f,m,h);var p=new Float64Array(27);return p.set(G.HEAPF64.subarray(h/8,h/8+27)),G._free(u),G._free(c),G._free(S),G._free(d),G._free(f),G._free(m),G._free(h),p},F=function(e,t,r,n,o,i){var _=G._malloc(o.byteLength);G.HEAP8.set(o,_);var a=G._malloc(72);G.HEAPF64.set(i,a/8);var s=G._malloc(216);G._GS_Compute_One_Spherical_Harmonics(e,t,r,n?1:0,_,a,s);var l=new Float64Array(27);return l.set(G.HEAPF64.subarray(s/8,s/8+27)),G._free(_),G._free(a),G._free(s),l},D=function(e,t,r,n,o,i,_,a,s,l){var u=null;if(t.length>=3&&n.length>=3){var c=G._malloc(4*e.length);G.HEAPF32.set(e,c/4);var S=G._malloc(4*r.length);G.HEAPF32.set(r,S/4);var d=G._malloc(4*t.length);G.HEAP32.set(t,d/4);var f=G._malloc(4*n.length);G.HEAP32.set(n,f/4);var m=0;i&&(m=G._malloc(64),G.HEAPF32.set(i,m/4));var h=0;_&&(h=G._malloc(64),G.HEAPF32.set(i,h/4));var p=G._malloc(4),y=G._malloc(12);if(G._GS_FLT_Compute_Collision_Triangles(c,d,t.length,S,f,n.length,o,m,h,a,s,l,p,y)){var g=new Float32Array(3);g[0]=G.HEAPF32[y/4],g[1]=G.HEAPF32[y/4+1],g[2]=G.HEAPF32[y/4+2],u={type:G.HEAP32[p/4],point:g}}G._free(c),G._free(S),G._free(d),G._free(f),m&&G._free(m),h&&G._free(h),G._free(p),G._free(y)}return u},O=function(e,t,r,n,o,i){var _=G._malloc(24);G.HEAPF32.set(e,_/4);var a=G._malloc(4*t.length);G.HEAPF32.set(t,a/4);var s=G._malloc(96);G.HEAPF32.set(r,s/4);var l=G._malloc(64);G.HEAPF32.set(n,l/4);var u=G._malloc(4),c=G._malloc(4);G._GS_Compute_Instances_Culling(_,a,t.length/16,s,l,o,i?1:0,u,c);var S=G.HEAP32[u/4],d=G.HEAP32[c/4],f=new Float32Array(16*d);return f.set(G.HEAPF32.subarray(S,S+16*d)),G._free(_),G._free(a),G._free(s),G._free(l),G._free(S),G._free(d),f})},M=0,k=function(){M=0};function x(e){for(var t=new ArrayBuffer(4),r=new DataView(t),n=0;n<4;n++)r.setUint8(n,e[M+n]);var o=r.getUint32(0,!0);return M+=4,o}var R=function(e,t){void 0===t&&(t=!0);var r=0;if(t)for(var n=M+4-1;n>=M;n--)r=(r<<8)+e[n];else for(n=M;n<M+4;n++)r=(r<<8)+e[n];return M+=4,r},N=function(e){var t=R(e),r=new TextDecoder,n=r.decode(e.subarray(M,M+t));return M+=t,n},U=function(e){var t=new ArrayBuffer(1),r=new DataView(t);return r.setUint8(0,e[M++]),!!r.getUint8(0)},j=function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=!0);var n=0;n=t?R(e,r)/4:R(e,r);var o=new Uint8Array(4*n);return o.set(e.subarray(M,M+4*n)),M+=4*n,new Float32Array(o.buffer)},H=function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=!0);var n=0;n=t?R(e,r)/4:R(e,r);var o=new Uint8Array(4*n);return o.set(e.subarray(M,M+4*n)),M+=4*n,new Int32Array(o.buffer)},K=function(e,t){void 0===t&&(t=!0);var r=R(e,t),n=new Uint8Array(r);return n.set(e.subarray(M,M+r)),M+=r,n},V={get:function(e,t){return void 0===t&&(t=!1),new Promise((function(r,n){var o=new XMLHttpRequest;o.open("GET",e,!0),t&&(o.responseType="blob");var i=z.urls.headers();Object.keys(i).forEach((function(e){o.setRequestHeader(e,i[e])})),o.onload=function(){200==o.status?r({data:o.response}):n()},o.onerror=function(e){console.log("worker xhr error: ",e),n()},o.send()}))}},z={urls:{model:function(e){return""},system:function(){return""},headers:function(){return{}}},getImageResource:function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=!1),new Promise((function(o){if(t||(console.log("请求路径出错:","projectId:",e,"resourcePath:",t),o(null)),!1!==r&&e)a(e,t).then((function(r){if(r)o(r);else{var i="";i="LonganSystem"===e?z.urls.system()+t:(n?e.split("_")[0]:z.urls.model(e))+t,V.get(i,!0).then((function(r){if(r&&r.data){var n=new FileReader;n.readAsArrayBuffer(r.data),n.onload=function(r){if(r.target["readyState"]==FileReader.DONE){var n=r.target["result"],i=I(n);o(i),s(e,t,i)}}}else o(null)}))}})).catch((function(e){console.error("idb获取数据出错:",e)}));else{var i="";i="LonganSystem"===e?z.urls.system()+t:!e&&t?t:(n?e.split("_")[0]:z.urls.model(e))+t,V.get(i,!0).then((function(e){if(e&&e.data){var t=new FileReader;t.readAsArrayBuffer(e.data),t.onload=function(e){if(e.target["readyState"]==FileReader.DONE){var t=e.target["result"],r=I(t);o(r)}}}}))}}))},getGSMResource:function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=!1),new Promise((function(o,i){if(e&&t||(console.log("请求路径出错:","projectId:",e,"resourcePath:",t),i(null)),r)a(e,t).then((function(r){if(r)o({data:r.buffer,isCompressed:!1});else{var _="";_="LonganSystem"===e?z.urls.system()+t:(n?e.split("_")[0]:z.urls.model(e))+t,V.get(_,!0).then((function(e){var t=new FileReader;t.readAsArrayBuffer(e.data),t.onload=function(e){if(e.target["readyState"]==FileReader.DONE){var t=e.target["result"];o({data:t,isCompressed:!0})}}})).catch((function(e){i("getGSMResource reject4"),console.error("获取"+t+"失败",e)}))}})).catch((function(e){i("getGSMResource reject5"),console.error("idb获取数据出错:",e)}));else{var _="";_="LonganSystem"===e?z.urls.system()+t:(n?e.split("_")[0]:z.urls.model(e))+t,V.get(_,!0).then((function(e){var t=new FileReader;t.readAsArrayBuffer(e.data),t.onload=function(e){if(e.target["readyState"]==FileReader.DONE){var t=e.target["result"];o({data:t,isCompressed:!0})}}})).catch((function(e){i("getGSMResource reject2"),console.error("获取"+t+"失败",e)}))}}))},decompression:function(e,t,r,n,o){return void 0===o&&(o=!0),new Promise((function(i,_){if(r){var a=A(n);i(a),o&&s(e,t,a)}else i(new Uint8Array(n))}))},getFileResource:function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=!1),new Promise((function(o){if(e&&t||(console.log("请求路径出错:","projectId:",e,"resourcePath:",t),o(null)),r)a(e,t).then((function(r){if(r)o(r);else{var i="";i="LonganSystem"===e?z.urls.system()+t:(n?e.split("_")[0]:z.urls.model(e))+t,V.get(i,!0).then((function(r){if(r&&r.data){var n=new FileReader;n.readAsArrayBuffer(r.data),n.onload=function(r){if(r.target["readyState"]==FileReader.DONE){var n=r.target["result"];o(n),s(e,t,n)}}}else o(null)}))}})).catch((function(e){console.error("idb获取数据出错:",e)}));else{var i="";i="LonganSystem"===e?z.urls.system()+t:(n?e.split("_")[0]:z.urls.model(e))+t,V.get(i,!0).then((function(e){if(e&&e.data){var t=new FileReader;t.readAsArrayBuffer(e.data),t.onload=function(e){if(e.target["readyState"]==FileReader.DONE){var t=e.target["result"];o(t)}}}}))}}))},getOsgbGSM:function(e,t){return new Promise((function(r){e&&t||(console.log("请求路径出错:","uri",e,"relativePath",t),r(null));var n="".concat(e,"?relativePath=").concat(encodeURIComponent(t));V.get(n,!0).then((function(e){if(e&&e.data){var t=new FileReader;t.readAsArrayBuffer(e.data),t.onload=function(e){if(e.target["readyState"]==FileReader.DONE){var t=e.target["result"];r(t)}}}else r(null)}))}))}},W=!1;self.Module||(self.Module={}),self.Module.onRuntimeInitialized=function(){G=self["Module"],B(),v(),console.log("Worker Initialized"),W=!0},self.onmessage=function(e){if(e&&e.data)switch(e.data.cmd){case u.Initialize:var t=setInterval((function(){if(W){p(G);var r=e.data.params;z.urls.model=function(e){return r.urls.model.replace("$modelId",e)},z.urls.system=function(){return r.urls.system},z.urls.headers=function(){return r.urls.headers},self.postMessage({succeeded:!0,type:u.Initialize,result:{}},null),clearInterval(t)}}),100);break;case u.GetImage:w.then((function(t){var r=e.data.params;z.getImageResource(r.projectId,r.resourcePath,r.isFromIDB,r.isFromLocal).then((function(e){self.postMessage({succeeded:!0,type:u.GetImage,result:{width:e.width,height:e.height,channels:e.channels,isHdr:e.isHdr,data:e.data}},null,[e.data])}))}));break;case u.GetURLImage:w.then((function(t){var r=new XMLHttpRequest;r.open("GET",e.data.params,!0),r.responseType="blob",r.onload=function(){if(200==r.status){var e=new FileReader;e.readAsArrayBuffer(r.response),e.onload=function(e){if(e.target["readyState"]==FileReader.DONE){var t=e.target["result"],r=I(t);self.postMessage({succeeded:!0,type:u.GetImage,result:{width:r.width,height:r.height,channels:r.channels,isHdr:r.isHdr,data:r.data}},null,[r.data])}}}},r.onerror=function(e){console.log("worker xhr error: ",e)},r.send()}));break;case u.GetImageArrayBuffer:w.then((function(t){var r=e.data.params,n=I(r);self.postMessage({succeeded:!0,type:u.GetImage,result:{width:n.width,height:n.height,channels:n.channels,isHdr:n.isHdr,data:n.data}},null,[n.data])}));break;case u.GetGSM:w.then((function(t){var r=e.data.params;z.getGSMResource(r.projectId,r.resourcePath,r.isFromIDB,r.isFromLocal).then((function(e){self.postMessage({succeeded:!0,type:u.GetGSM,result:{data:e}},null,[e.data])})).catch((function(e){self.postMessage({succeeded:!1,type:u.GetGSM,result:{data:"modelService getGSMResource reject"}},null),console.error("获取"+r.resourcePath+"失败",e)}))}));break;case u.Decompression:w.then((function(t){var r=e.data.params;z.decompression(r.projectId,r.resourcePath,r.isCompressed,r.data,r.isFromIDB).then((function(e){if(k(),"25.4.14.0"===r.modelVersion){var t=e[0];if(M+=1,t){x(e),N(e),N(e),H(e,!1);for(var n=R(e),i=new Array,_=0;_<n;_++){var a=N(e),s=R(e),l=R(e),S=R(e),d=R(e),f=R(e);i.push({name:a,slot:s,size:l,type:S,offset:d,stride:f})}R(e);var m=new Array,h=new c;for(_=0;_<i.length;_++){var p=j(e,!1);m.push(p);var y=i[_].name,G=y.indexOf("_");-1!==G&&(y=y.substring(G+1)),h.add(y,p)}var g=H(e,!1);self.postMessage({succeeded:!0,type:u.Decompression,result:{formats:i,vertexes:h.items,indexes:g}},null,(0,o.fX)((0,o.fX)([],(0,o.zs)(m),!1),[g],!1))}}else if("25.6.4.0"===r.modelVersion){for(N(e),H(e,!1),n=R(e),i=new Array,_=0;_<n;_++){a=N(e),s=R(e),l=R(e),S=R(e),d=R(e),f=R(e);i.push({name:a,slot:s,size:l,type:S,offset:d,stride:f})}R(e),m=new Array,h=new c;var w=!0;for(_=0;_<i.length;_++){y=i[_].name;var v=y.indexOf("_");if(-1!==v&&(y=y.substring(v+1)),y.indexOf("uv")>-1){w=!1;break}}for(_=0;_<i.length;_++){y=i[_].name,v=y.indexOf("_");if(-1!==v&&(y=y.substring(v+1)),"position"===y||"normal"===y||w){p=j(e);m.push(p),h.add(y,p)}else{var E=j(e),b=(G=0,new Array);while(G<E.length){var P=E[G];G++;var T=E[G];G++;for(var C=new Float32Array(T),I=0;I<T;I++){var A=E[G];G++,C[I]=A}var L=new Float32Array(P*T);for(I=0;I<P;I++)L.set(C,I*T);b.push(L)}for(var F=0,D=0;D<b.length;D++)F+=b[D].length;p=new Float32Array(F);for(var O=0,B=0;B<b.length;B++)p.set(b[B],O),O+=b[B].length;h.add(y,p)}}g=H(e);self.postMessage({succeeded:!0,type:u.Decompression,result:{formats:i,vertexes:h.items,indexes:g}},null,(0,o.fX)((0,o.fX)([],(0,o.zs)(m),!1),[g],!1))}else if("24.6.11.0"===r.modelVersion){for(N(e),H(e,!1),n=R(e),i=new Array,_=0;_<n;_++){a=N(e),s=R(e),l=R(e),S=R(e),d=R(e),f=R(e);i.push({name:a,slot:s,size:l,type:S,offset:d,stride:f})}for(R(e),m=new Array,h=new c,_=0;_<i.length;_++){p=j(e);m.push(p);y=i[_].name,G=y.indexOf("_");-1!==G&&(y=y.substring(G+1)),h.add(y,p)}g=H(e);self.postMessage({succeeded:!0,type:u.Decompression,result:{formats:i,vertexes:h.items,indexes:g}},null,(0,o.fX)((0,o.fX)([],(0,o.zs)(m),!1),[g],!1))}else console.error("model Version Error:",r.modelVersion)})).catch((function(e){console.log("获取"+r.resourcePath+"失败",e)}))}));break;case u.GetFile:w.then((function(t){var r=e.data.params;z.getFileResource(r.projectId,r.resourcePath,r.isFromIDB,r.isFromLocal).then((function(e){self.postMessage({succeeded:!0,type:u.GetFile,result:e},null,[e])}))}));break;case u.GetOsgbGSM:w.then((function(t){var r=e.data.params;z.getOsgbGSM(r.osgbId,r.relativePath).then((function(e){e||self.postMessage({succeeded:!1,type:u.GetOsgbGSM,result:null},null,[]);var t=A(e);k();N(t);for(var r=R(t),n=new Array,o=0;o<r;o++){var i=N(t),_=R(t),a=R(t),s=R(t),l=R(t),c=R(t);n.push({name:i,slot:_,size:a,type:s,offset:l,stride:c})}var S,d,f=j(t),m=H(t),h=U(t);h&&(N(t),R(t),R(t),S=K(t),d=I(S)),self.postMessage({succeeded:!0,type:u.GetOsgbGSM,result:{formats:n,vertexes:f,indexes:m,image:d}},null,[f,m,d])}))}));break;case u.ComputeSphericalPolynomial:w.then((function(t){var r=e.data.params;if(r.back instanceof Uint8Array){var n=L(r.size,r.format,r.type,r.gammaSpace,r.right,r.left,r.up,r.down,r.front,r.back);self.postMessage({succeeded:!0,type:u.ComputeSphericalPolynomial,result:{data:n}},null,[n])}}));break;case u.ComputeOneSphericalHarmonics:w.then((function(t){var r=e.data.params;if(r.face instanceof Uint8Array){var n=new Float64Array(9);n[0]=r.face_direct[0]._x,n[1]=r.face_direct[0]._y,n[2]=r.face_direct[0]._z,n[3]=r.face_direct[1]._x,n[4]=r.face_direct[1]._y,n[5]=r.face_direct[1]._z,n[6]=r.face_direct[2]._x,n[7]=r.face_direct[2]._y,n[8]=r.face_direct[2]._z;var o=F(r.size,r.format,r.type,r.gammaSpace?1:0,r.face,n);self.postMessage({succeeded:!0,type:u.ComputeOneSphericalHarmonics,result:{data:o}},null,[o])}}));break;case u.ComputeCollision:w.then((function(t){var r=e.data.params;B(),v();var n=b("/include library"),o=b("ro1");T(r.roStream1,o),P();var i=b("ro2");T(r.roStream2,i),P();C(n,new Int32Array([o]),new Int32Array([i]),g.Touch);P(),E()}));break;case u.ComputeCollisionByTriangles:w.then((function(t){var r=e.data.params,n=D(r.position1,r.indexes1,r.position2,r.indexes2,r.stride,r.mm1,r.mm2,r.type,r.tolerance,r.soft_distance);self.postMessage({succeeded:!0,type:u.ComputeCollisionByTriangles,result:{data:n}},null,n?[n.point]:void 0)}));break;case u.ComputeInstancesCulling:w.then((function(t){var r=e.data.params,n=O(r.templateBB,r.instancesMM,r.frustumPlanes,r.projectionViewMatrix,r.cullingExtent,r.approximate);self.postMessage({succeeded:!0,type:u.ComputeInstancesCulling,result:{data:n,instancesMM:r.instancesMM}},null,n?[n,r.instancesMM]:void 0)}));break}}},3175:function(e,t,r){var n="/",o=r(4100)["default"];r(6280),r(8706),r(6835),r(3771),r(2008),r(4423),r(3792),r(8598),r(4114),r(4782),r(4554),r(4743),r(9142),r(1745),r(6573),r(8100),r(7936),r(2010),r(5081),r(8085),r(605),r(2152),r(761),r(2892),r(9085),r(3851),r(9432),r(6099),r(3362),r(7495),r(9479),r(8781),r(9449),r(1699),r(7764),r(1761),r(8156),r(5440),r(1392),r(778),r(4594),r(9833),r(6594),r(2107),r(5477),r(1489),r(3690),r(1740),r(8140),r(1630),r(2170),r(5044),r(1920),r(1694),r(9955),r(1903),r(1134),r(3206),r(4496),r(6651),r(2887),r(9369),r(6812),r(8995),r(1575),r(6072),r(8747),r(8845),r(9423),r(7301),r(373),r(6614),r(1405),r(7467),r(4732),r(3684),r(9577),r(3500),r(2953),r(3611),r(3296),r(7208),r(8408),r(4603),r(7566),r(8721);var i="undefined"!=typeof i?i:{},_=Object.assign({},i),a="./this.program",s=function(e,t){throw t},l="object"==("undefined"===typeof window?"undefined":o(window)),u="function"==typeof importScripts,c="object"==("undefined"===typeof process?"undefined":o(process))&&"object"==o(process.versions)&&"string"==typeof process.versions.node,S=!l&&!c&&!u;if(i["ENVIRONMENT"])throw new Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -sENVIRONMENT=web or -sENVIRONMENT=node)");var d,f,m,h="";function p(e){return i["locateFile"]?i["locateFile"](e,h):h+e}if(h="https://static.graphicstone.com/bimAir-v2.3",c){if("undefined"==typeof process||!process.release||"node"!==process.release.name)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");var y=process.versions.node,G=y.split(".").slice(0,3);G=1e4*G[0]+100*G[1]+1*G[2].split("-")[0];if(G<16e4)throw new Error("This emscripten-generated code requires node v16.0.0 (detected v"+y+")");var g=r(4383),w=r(4384);h=u?w.dirname(h)+"/":n+"/",d=function(e,t){return e=ue(e)?new URL(e):w.normalize(e),g.readFileSync(e,t?void 0:"utf8")},m=function(e){var t=d(e,!0);return t.buffer||(t=new Uint8Array(t)),M(t.buffer),t},f=function(e,t,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=ue(e)?new URL(e):w.normalize(e),g.readFile(e,n?void 0:"utf8",(function(e,o){e?r(e):t(n?o.buffer:o)}))},!i["thisProgram"]&&process.argv.length>1&&(a=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),e["exports"]=i,process.on("uncaughtException",(function(e){if("unwind"!==e&&!(e instanceof be)&&!(e.context instanceof be))throw e})),s=function(e,t){throw process.exitCode=e,t},i["inspect"]=function(){return"[Emscripten Module object]"}}else if(S){if("object"==("undefined"===typeof process?"undefined":o(process))||"object"==("undefined"===typeof window?"undefined":o(window))||"function"==typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");"undefined"!=typeof read&&(d=read),m=function(e){if("function"==typeof readbuffer)return new Uint8Array(readbuffer(e));var t=read(e,"binary");return M("object"==o(t)),t},f=function(e,t,r){setTimeout((function(){return t(m(e))}))},"undefined"==typeof clearTimeout&&(globalThis.clearTimeout=function(e){}),"undefined"==typeof setTimeout&&(globalThis.setTimeout=function(e){return"function"==typeof e?e():oe()}),"undefined"!=typeof scriptArgs?scriptArgs:"undefined"!=typeof arguments&&arguments,"function"==typeof quit&&(s=function(e,t){throw setTimeout((function(){if(!(t instanceof be)){var r=t;t&&"object"==o(t)&&t.stack&&(r=[t,t.stack]),E("exiting due to exception: ".concat(r))}quit(e)})),t}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)}else{if(!l&&!u)throw new Error("environment detection error");if(u?h=self.location.href:"undefined"!=typeof document&&document.currentScript&&(h=document.currentScript.src),0!==h.indexOf("blob:"))h=h.substr(0,h.replace(/[?#].*/,"").lastIndexOf("/")+1);else if(0===h.indexOf("blob:")){if(-1!==h.indexOf("null"))h="https://static.graphicstone.com/bimAir-v2.3";else h="https://static.graphicstone.com/bimAir-v2.3"}else h="https://static.graphicstone.com/bimAir-v2.3";if("object"!=("undefined"===typeof window?"undefined":o(window))&&"function"!=typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");d=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},u&&(m=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),f=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)},function(e){return document.title=e}}var v=i["print"]||console.log.bind(console),E=i["printErr"]||console.error.bind(console);Object.assign(i,_),_=null,Ut(),i["arguments"]&&i["arguments"],pe("arguments","arguments_"),i["thisProgram"]&&(a=i["thisProgram"]),pe("thisProgram","thisProgram"),i["quit"]&&(s=i["quit"]),pe("quit","quit_"),M("undefined"==typeof i["memoryInitializerPrefixURL"],"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),M("undefined"==typeof i["pthreadMainPrefixURL"],"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),M("undefined"==typeof i["cdInitializerPrefixURL"],"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),M("undefined"==typeof i["filePackagePrefixURL"],"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),M("undefined"==typeof i["read"],"Module.read option was removed (modify read_ in JS)"),M("undefined"==typeof i["readAsync"],"Module.readAsync option was removed (modify readAsync in JS)"),M("undefined"==typeof i["readBinary"],"Module.readBinary option was removed (modify readBinary in JS)"),M("undefined"==typeof i["setWindowTitle"],"Module.setWindowTitle option was removed (modify setWindowTitle in JS)"),M("undefined"==typeof i["TOTAL_MEMORY"],"Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY"),pe("asm","wasmExports"),pe("read","read_"),pe("readAsync","readAsync"),pe("readBinary","readBinary"),pe("setWindowTitle","setWindowTitle");var b;M(!S,"shell environment detected but not enabled at build time. Add 'shell' to `-sENVIRONMENT` to enable."),i["wasmBinary"]&&(b=i["wasmBinary"]),pe("wasmBinary","wasmBinary");var P,T=i["noExitRuntime"]||!0;pe("noExitRuntime","noExitRuntime"),"object"!=("undefined"===typeof WebAssembly?"undefined":o(WebAssembly))&&oe("no native wasm support detected");var C,I,A,L,F,D,O,B=!1;function M(e,t){e||oe("Assertion failed"+(t?": "+t:""))}function k(){var e=P.buffer;i["HEAP8"]=C=new Int8Array(e),i["HEAP16"]=A=new Int16Array(e),i["HEAPU8"]=I=new Uint8Array(e),i["HEAPU16"]=new Uint16Array(e),i["HEAP32"]=L=new Int32Array(e),i["HEAPU32"]=F=new Uint32Array(e),i["HEAPF32"]=new Float32Array(e),i["HEAPF64"]=D=new Float64Array(e)}function x(){var e=qt();M(0==(3&e)),0==e&&(e+=4),F[e>>2]=34821223,F[e+4>>2]=2310721022,F[0]=1668509029}function R(){if(!B){var e=qt();0==e&&(e+=4);var t=F[e>>2],r=F[e+4>>2];34821223==t&&2310721022==r||oe("Stack overflow! Stack cookie has been overwritten at ".concat(Te(e),", expected hex dwords 0x89BACDFE and 0x2135467, but received ").concat(Te(r)," ").concat(Te(t))),1668509029!=F[0]&&oe("Runtime error: The application has corrupted its heap memory area (address zero)!")}}M(!i["STACK_SIZE"],"STACK_SIZE can no longer be set at runtime. Use -sSTACK_SIZE at link time"),M("undefined"!=typeof Int32Array&&"undefined"!==typeof Float64Array&&void 0!=Int32Array.prototype.subarray&&void 0!=Int32Array.prototype.set,"JS engine does not provide full typed array support"),M(!i["wasmMemory"],"Use of `wasmMemory` detected. Use -sIMPORTED_MEMORY to define wasmMemory externally"),M(!i["INITIAL_MEMORY"],"Detected runtime INITIAL_MEMORY setting. Use -sIMPORTED_MEMORY to define wasmMemory dynamically"),function(){var e=new Int16Array(1),t=new Int8Array(e.buffer);if(e[0]=25459,115!==t[0]||99!==t[1])throw"Runtime error: expected the system to be little-endian! (Run with -sSUPPORT_BIG_ENDIAN to bypass)"}();var N=[],U=[],j=[],H=!1,K=0;function V(){return T||K>0}function z(){if(i["preRun"]){"function"==typeof i["preRun"]&&(i["preRun"]=[i["preRun"]]);while(i["preRun"].length)q(i["preRun"].shift())}Pe(N)}function W(){M(!H),H=!0,R(),i["noFSInit"]||tt.init.initialized||tt.init(),tt.ignorePermissions=!1,He.init(),Pe(U)}function X(){if(R(),i["postRun"]){"function"==typeof i["postRun"]&&(i["postRun"]=[i["postRun"]]);while(i["postRun"].length)J(i["postRun"].shift())}Pe(j)}function q(e){N.unshift(e)}function Y(e){U.unshift(e)}function J(e){j.unshift(e)}M(Math.imul,"This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),M(Math.fround,"This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),M(Math.clz32,"This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),M(Math.trunc,"This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");var Z=0,Q=null,$=null,ee={};function te(e){var t=e;while(1){if(!ee[e])return e;e=t+Math.random()}}function re(e){Z++,i["monitorRunDependencies"]&&i["monitorRunDependencies"](Z),e?(M(!ee[e]),ee[e]=1,null===Q&&"undefined"!=typeof setInterval&&(Q=setInterval((function(){if(B)return clearInterval(Q),void(Q=null);var e=!1;for(var t in ee)e||(e=!0,E("still waiting on run dependencies:")),E("dependency: ".concat(t));e&&E("(end of list)")}),1e4))):E("warning: run dependency added without ID")}function ne(e){if(Z--,i["monitorRunDependencies"]&&i["monitorRunDependencies"](Z),e?(M(ee[e]),delete ee[e]):E("warning: run dependency removed without ID"),0==Z&&(null!==Q&&(clearInterval(Q),Q=null),$)){var t=$;$=null,t()}}function oe(e){i["onAbort"]&&i["onAbort"](e),e="Aborted("+e+")",E(e),B=!0,1;var t=new WebAssembly.RuntimeError(e);throw t}var ie,_e,ae,se="data:application/octet-stream;base64,";function le(e){return e.startsWith(se)}function ue(e){return e.startsWith("file://")}function ce(e){return function(){M(H,"native function `".concat(e,"` called before runtime initialization"));var t=Ht[e];return M(t,"exported native function `".concat(e,"` not found")),t.apply(null,arguments)}}function Se(e){if(e==ie&&b)return new Uint8Array(b);if(m)return m(e);throw"both async and sync fetching of the wasm failed"}function de(e){if(!b&&(l||u)){if("function"==typeof fetch&&!ue(e))return fetch(e,{credentials:"same-origin"}).then((function(t){if(!t["ok"])throw"failed to load wasm binary file at '"+e+"'";return t["arrayBuffer"]()})).catch((function(){return Se(e)}));if(f)return new Promise((function(t,r){f(e,(function(e){return t(new Uint8Array(e))}),r)}))}return Promise.resolve().then((function(){return Se(e)}))}function fe(e,t,r){return de(e).then((function(e){return WebAssembly.instantiate(e,t)})).then((function(e){return e})).then(r,(function(e){E("failed to asynchronously prepare wasm: ".concat(e)),ue(ie)&&E("warning: Loading from a file URI (".concat(ie,") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing")),oe(e)}))}function me(e,t,r,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||le(t)||ue(t)||c||"function"!=typeof fetch?fe(t,r,n):fetch(t,{credentials:"same-origin"}).then((function(e){var o=WebAssembly.instantiateStreaming(e,r);return o.then(n,(function(e){return E("wasm streaming compile failed: ".concat(e)),E("falling back to ArrayBuffer instantiation"),fe(t,r,n)}))}))}function he(){var e={env:jt,wasi_snapshot_preview1:jt};function t(e,t){var r=e.exports;return Ht=r,P=Ht["memory"],M(P,"memory not found in wasm exports"),k(),O=Ht["__indirect_function_table"],M(O,"table not found in wasm exports"),Y(Ht["__wasm_call_ctors"]),ne("wasm-instantiate"),r}re("wasm-instantiate");var r=i;function n(e){M(i===r,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),r=null,t(e["instance"])}if(i["instantiateWasm"])try{return i["instantiateWasm"](e,t)}catch(o){return E("Module.instantiateWasm callback failed with error: ".concat(o)),!1}return me(b,ie,e,n),{}}function pe(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Object.getOwnPropertyDescriptor(i,e)||Object.defineProperty(i,e,{configurable:!0,get:function(){var n=r?" (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)":"";oe("`Module.".concat(e,"` has been replaced by `").concat(t,"`")+n)}})}function ye(e){Object.getOwnPropertyDescriptor(i,e)&&oe("`Module.".concat(e,"` was supplied but `").concat(e,"` not included in INCOMING_MODULE_JS_API"))}function Ge(e){return"FS_createPath"===e||"FS_createDataFile"===e||"FS_createPreloadedFile"===e||"FS_unlink"===e||"addRunDependency"===e||"FS_createLazyFile"===e||"FS_createDevice"===e||"removeRunDependency"===e}function ge(e,t){"undefined"!==typeof globalThis&&Object.defineProperty(globalThis,e,{configurable:!0,get:function(){Ce("`"+e+"` is not longer defined by emscripten. "+t)}})}function we(e){"undefined"===typeof globalThis||Object.getOwnPropertyDescriptor(globalThis,e)||Object.defineProperty(globalThis,e,{configurable:!0,get:function(){var t="`"+e+"` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line",r=e;r.startsWith("_")||(r="$"+e),t+=" (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE='"+r+"')",Ge(e)&&(t+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you"),Ce(t)}}),ve(e)}function ve(e){Object.getOwnPropertyDescriptor(i,e)||Object.defineProperty(i,e,{configurable:!0,get:function(){var t="'"+e+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the Emscripten FAQ)";Ge(e)&&(t+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you"),oe(t)}})}ie="/js/longanWithoutShareArrayBuffer/longan.worker.wasm",le(ie)||(ie=p(ie)),ge("buffer","Please use HEAP8.buffer or wasmMemory.buffer"),ge("asm","Please use wasmExports instead");var Ee={1198173:function(e,t){i.showCollisionComputeStatus&&i.showCollisionComputeStatus(e,t)},1198263:function(e,t){i.showCollisionComputeStatus&&i.showCollisionComputeStatus(e,t)}};function be(e){this.name="ExitStatus",this.message="Program terminated with exit(".concat(e,")"),this.status=e}var Pe=function(e){while(e.length>0)e.shift()(i)};var Te=function(e){return M("number"===typeof e),e>>>=0,"0x"+e.toString(16).padStart(8,"0")};var Ce=function e(t){e.shown||(e.shown={}),e.shown[t]||(e.shown[t]=1,c&&(t="warning: "+t),E(t))},Ie="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,Ae=function(e,t,r){var n=t+r,o=t;while(e[o]&&!(o>=n))++o;if(o-t>16&&e.buffer&&Ie)return Ie.decode(e.subarray(t,o));var i="";while(t<o){var _=e[t++];if(128&_){var a=63&e[t++];if(192!=(224&_)){var s=63&e[t++];if(224==(240&_)?_=(15&_)<<12|a<<6|s:(240!=(248&_)&&Ce("Invalid UTF-8 leading byte "+Te(_)+" encountered when deserializing a UTF-8 string in wasm memory to a JS string!"),_=(7&_)<<18|a<<12|s<<6|63&e[t++]),_<65536)i+=String.fromCharCode(_);else{var l=_-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&_)<<6|a)}else i+=String.fromCharCode(_)}return i},Le=function(e,t){return M("number"==typeof e),e?Ae(I,e,t):""},Fe=function(e,t,r,n){oe("Assertion failed: ".concat(Le(e),", at: ")+[t?Le(t):"unknown filename",r,n?Le(n):"unknown function"])},De=function(e){return L[zt()>>2]=e,e},Oe={isAbs:function(e){return"/"===e.charAt(0)},splitPath:function(e){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return t.exec(e).slice(1)},normalizeArray:function(e,t){for(var r=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:function(e){var t=Oe.isAbs(e),r="/"===e.substr(-1);return e=Oe.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"),e||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:function(e){var t=Oe.splitPath(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},basename:function(e){if("/"===e)return"/";e=Oe.normalize(e),e=e.replace(/\/$/,"");var t=e.lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:function(){var e=Array.prototype.slice.call(arguments);return Oe.normalize(e.join("/"))},join2:function(e,t){return Oe.normalize(e+"/"+t)}},Be=function(){if("object"==("undefined"===typeof crypto?"undefined":o(crypto))&&"function"==typeof crypto["getRandomValues"])return function(e){return crypto.getRandomValues(e)};if(c)try{var e=r(Object(function(){var e=new Error("Cannot find module 'crypto'");throw e.code="MODULE_NOT_FOUND",e}())),t=e["randomFillSync"];if(t)return function(t){return e["randomFillSync"](t)};var n=e["randomBytes"];return function(e){return e.set(n(e.byteLength)),e}}catch(i){}oe("no cryptographic support found for randomDevice. consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: (array) => { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };")},Me=function(e){return(Me=Be())(e)},ke={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:tt.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,t=Oe.isAbs(n)}return e=Oe.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"),(t?"/":"")+e||"."},relative:function(e,t){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var r=e.length-1;r>=0;r--)if(""!==e[r])break;return t>r?[]:e.slice(t,r-t+1)}e=ke.resolve(e).substr(1),t=ke.resolve(t).substr(1);for(var n=r(e.split("/")),o=r(t.split("/")),i=Math.min(n.length,o.length),_=i,a=0;a<i;a++)if(n[a]!==o[a]){_=a;break}var s=[];for(a=_;a<n.length;a++)s.push("..");return s=s.concat(o.slice(_)),s.join("/")}},xe=[],Re=function(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},Ne=function(e,t,r,n){if(M("string"===typeof e),!(n>0))return 0;for(var o=r,i=r+n-1,_=0;_<e.length;++_){var a=e.charCodeAt(_);if(a>=55296&&a<=57343){var s=e.charCodeAt(++_);a=65536+((1023&a)<<10)|1023&s}if(a<=127){if(r>=i)break;t[r++]=a}else if(a<=2047){if(r+1>=i)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=i)break;a>1114111&&Ce("Invalid Unicode code point "+Te(a)+" encountered when serializing a JS string to a UTF-8 string in wasm memory! (Valid unicode code points should be in range 0-0x10FFFF)."),t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}return t[r]=0,r-o};function Ue(e,t,r){var n=r>0?r:Re(e)+1,o=new Array(n),i=Ne(e,o,0,o.length);return t&&(o.length=i),o}var je=function(){if(!xe.length){var e=null;if(c){var t=256,r=Buffer.alloc(t),n=0,o=process.stdin.fd;try{n=g.readSync(o,r)}catch(i){if(!i.toString().includes("EOF"))throw i;n=0}e=n>0?r.slice(0,n).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?(e=window.prompt("Input: "),null!==e&&(e+="\n")):"function"==typeof readline&&(e=readline(),null!==e&&(e+="\n"));if(!e)return null;xe=Ue(e,!0)}return xe.shift()},He={ttys:[],init:function(){},shutdown:function(){},register:function(e,t){He.ttys[e]={input:[],output:[],ops:t},tt.registerDevice(e,He.stream_ops)},stream_ops:{open:function(e){var t=He.ttys[e.node.rdev];if(!t)throw new tt.ErrnoError(43);e.tty=t,e.seekable=!1},close:function(e){e.tty.ops.fsync(e.tty)},fsync:function(e){e.tty.ops.fsync(e.tty)},read:function(e,t,r,n,o){if(!e.tty||!e.tty.ops.get_char)throw new tt.ErrnoError(60);for(var i=0,_=0;_<n;_++){var a;try{a=e.tty.ops.get_char(e.tty)}catch(s){throw new tt.ErrnoError(29)}if(void 0===a&&0===i)throw new tt.ErrnoError(6);if(null===a||void 0===a)break;i++,t[r+_]=a}return i&&(e.node.timestamp=Date.now()),i},write:function(e,t,r,n,o){if(!e.tty||!e.tty.ops.put_char)throw new tt.ErrnoError(60);try{for(var i=0;i<n;i++)e.tty.ops.put_char(e.tty,t[r+i])}catch(_){throw new tt.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),i}},default_tty_ops:{get_char:function(e){return je()},put_char:function(e,t){null===t||10===t?(v(Ae(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync:function(e){e.output&&e.output.length>0&&(v(Ae(e.output,0)),e.output=[])},ioctl_tcgets:function(e){return{c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[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]}},ioctl_tcsets:function(e,t,r){return 0},ioctl_tiocgwinsz:function(e){return[24,80]}},default_tty1_ops:{put_char:function(e,t){null===t||10===t?(E(Ae(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync:function(e){e.output&&e.output.length>0&&(E(Ae(e.output,0)),e.output=[])}}},Ke=function(e){oe("internal error: mmapAlloc called but `emscripten_builtin_memalign` native symbol not exported")},Ve={ops_table:null,mount:function(e){return Ve.createNode(null,"/",16895,0)},createNode:function(e,t,r,n){if(tt.isBlkdev(r)||tt.isFIFO(r))throw new tt.ErrnoError(63);Ve.ops_table||(Ve.ops_table={dir:{node:{getattr:Ve.node_ops.getattr,setattr:Ve.node_ops.setattr,lookup:Ve.node_ops.lookup,mknod:Ve.node_ops.mknod,rename:Ve.node_ops.rename,unlink:Ve.node_ops.unlink,rmdir:Ve.node_ops.rmdir,readdir:Ve.node_ops.readdir,symlink:Ve.node_ops.symlink},stream:{llseek:Ve.stream_ops.llseek}},file:{node:{getattr:Ve.node_ops.getattr,setattr:Ve.node_ops.setattr},stream:{llseek:Ve.stream_ops.llseek,read:Ve.stream_ops.read,write:Ve.stream_ops.write,allocate:Ve.stream_ops.allocate,mmap:Ve.stream_ops.mmap,msync:Ve.stream_ops.msync}},link:{node:{getattr:Ve.node_ops.getattr,setattr:Ve.node_ops.setattr,readlink:Ve.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Ve.node_ops.getattr,setattr:Ve.node_ops.setattr},stream:tt.chrdev_stream_ops}});var o=tt.createNode(e,t,r,n);return tt.isDir(o.mode)?(o.node_ops=Ve.ops_table.dir.node,o.stream_ops=Ve.ops_table.dir.stream,o.contents={}):tt.isFile(o.mode)?(o.node_ops=Ve.ops_table.file.node,o.stream_ops=Ve.ops_table.file.stream,o.usedBytes=0,o.contents=null):tt.isLink(o.mode)?(o.node_ops=Ve.ops_table.link.node,o.stream_ops=Ve.ops_table.link.stream):tt.isChrdev(o.mode)&&(o.node_ops=Ve.ops_table.chrdev.node,o.stream_ops=Ve.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[t]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage:function(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){var n=1048576;t=Math.max(t,r*(r<n?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var o=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(o.subarray(0,e.usedBytes),0)}},resizeFileStorage:function(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr:function(e){var t={};return t.dev=tt.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,tt.isDir(e.mode)?t.size=4096:tt.isFile(e.mode)?t.size=e.usedBytes:tt.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&Ve.resizeFileStorage(e,t.size)},lookup:function(e,t){throw tt.genericErrors[44]},mknod:function(e,t,r,n){return Ve.createNode(e,t,r,n)},rename:function(e,t,r){if(tt.isDir(e.mode)){var n;try{n=tt.lookupNode(t,r)}catch(i){}if(n)for(var o in n.contents)throw new tt.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink:function(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir:function(e,t){var r=tt.lookupNode(e,t);for(var n in r.contents)throw new tt.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir:function(e){var t=[".",".."];for(var r in e.contents)e.contents.hasOwnProperty(r)&&t.push(r);return t},symlink:function(e,t,r){var n=Ve.createNode(e,t,41471,0);return n.link=r,n},readlink:function(e){if(!tt.isLink(e.mode))throw new tt.ErrnoError(28);return e.link}},stream_ops:{read:function(e,t,r,n,o){var i=e.node.contents;if(o>=e.node.usedBytes)return 0;var _=Math.min(e.node.usedBytes-o,n);if(M(_>=0),_>8&&i.subarray)t.set(i.subarray(o,o+_),r);else for(var a=0;a<_;a++)t[r+a]=i[o+a];return _},write:function(e,t,r,n,o,i){if(M(!(t instanceof ArrayBuffer)),t.buffer===C.buffer&&(i=!1),!n)return 0;var _=e.node;if(_.timestamp=Date.now(),t.subarray&&(!_.contents||_.contents.subarray)){if(i)return M(0===o,"canOwn must imply no weird position inside the file"),_.contents=t.subarray(r,r+n),_.usedBytes=n,n;if(0===_.usedBytes&&0===o)return _.contents=t.slice(r,r+n),_.usedBytes=n,n;if(o+n<=_.usedBytes)return _.contents.set(t.subarray(r,r+n),o),n}if(Ve.expandFileStorage(_,o+n),_.contents.subarray&&t.subarray)_.contents.set(t.subarray(r,r+n),o);else for(var a=0;a<n;a++)_.contents[o+a]=t[r+a];return _.usedBytes=Math.max(_.usedBytes,o+n),n},llseek:function(e,t,r){var n=t;if(1===r?n+=e.position:2===r&&tt.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new tt.ErrnoError(28);return n},allocate:function(e,t,r){Ve.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap:function(e,t,r,n,o){if(!tt.isFile(e.node.mode))throw new tt.ErrnoError(43);var i,_,a=e.node.contents;if(2&o||a.buffer!==C.buffer){if((r>0||r+t<a.length)&&(a=a.subarray?a.subarray(r,r+t):Array.prototype.slice.call(a,r,r+t)),_=!0,i=Ke(t),!i)throw new tt.ErrnoError(48);C.set(a,i)}else _=!1,i=a.byteOffset;return{ptr:i,allocated:_}},msync:function(e,t,r,n,o){return Ve.stream_ops.write(e,t,0,n,r,!1),0}}},ze=function(e,t,r,n){var o=n?"":te("al ".concat(e));f(e,(function(r){M(r,'Loading data file "'.concat(e,'" failed (no arrayBuffer).')),t(new Uint8Array(r)),o&&ne(o)}),(function(t){if(!r)throw'Loading data file "'.concat(e,'" failed.');r()})),o&&re(o)},We=i["preloadPlugins"]||[],Xe=function(e,t,r,n){"undefined"!=typeof Browser&&Browser.init();var o=!1;return We.forEach((function(i){o||i["canHandle"](t)&&(i["handle"](e,t,r,n),o=!0)})),o},qe=function(e,t,r,n,o,i,_,a,s,l){var u=t?ke.resolve(Oe.join2(e,t)):e,c=te("cp ".concat(u));function S(r){function S(r){l&&l(),a||tt.createDataFile(e,t,r,n,o,s),i&&i(),ne(c)}Xe(r,u,S,(function(){_&&_(),ne(c)}))||S(r)}re(c),"string"==typeof r?ze(r,(function(e){return S(e)}),_):S(r)},Ye=function(e){var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},r=t[e];if("undefined"==typeof r)throw new Error("Unknown file open mode: ".concat(e));return r},Je=function(e,t){var r=0;return e&&(r|=365),t&&(r|=146),r},Ze={0:"Success",1:"Arg list too long",2:"Permission denied",3:"Address already in use",4:"Address not available",5:"Address family not supported by protocol family",6:"No more processes",7:"Socket already connected",8:"Bad file number",9:"Trying to read unreadable message",10:"Mount device busy",11:"Operation canceled",12:"No children",13:"Connection aborted",14:"Connection refused",15:"Connection reset by peer",16:"File locking deadlock error",17:"Destination address required",18:"Math arg out of domain of func",19:"Quota exceeded",20:"File exists",21:"Bad address",22:"File too large",23:"Host is unreachable",24:"Identifier removed",25:"Illegal byte sequence",26:"Connection already in progress",27:"Interrupted system call",28:"Invalid argument",29:"I/O error",30:"Socket is already connected",31:"Is a directory",32:"Too many symbolic links",33:"Too many open files",34:"Too many links",35:"Message too long",36:"Multihop attempted",37:"File or path name too long",38:"Network interface is not configured",39:"Connection reset by network",40:"Network is unreachable",41:"Too many open files in system",42:"No buffer space available",43:"No such device",44:"No such file or directory",45:"Exec format error",46:"No record locks available",47:"The link has been severed",48:"Not enough core",49:"No message of desired type",50:"Protocol not available",51:"No space left on device",52:"Function not implemented",53:"Socket is not connected",54:"Not a directory",55:"Directory not empty",56:"State not recoverable",57:"Socket operation on non-socket",59:"Not a typewriter",60:"No such device or address",61:"Value too large for defined data type",62:"Previous owner died",63:"Not super-user",64:"Broken pipe",65:"Protocol error",66:"Unknown protocol",67:"Protocol wrong type for socket",68:"Math result not representable",69:"Read only file system",70:"Illegal seek",71:"No such process",72:"Stale file handle",73:"Connection timed out",74:"Text file busy",75:"Cross-device link",100:"Device not a stream",101:"Bad font file fmt",102:"Invalid slot",103:"Invalid request code",104:"No anode",105:"Block device required",106:"Channel number out of range",107:"Level 3 halted",108:"Level 3 reset",109:"Link number out of range",110:"Protocol driver not attached",111:"No CSI structure available",112:"Level 2 halted",113:"Invalid exchange",114:"Invalid request descriptor",115:"Exchange full",116:"No data (for no delay io)",117:"Timer expired",118:"Out of streams resources",119:"Machine is not on the network",120:"Package not installed",121:"The object is remote",122:"Advertise error",123:"Srmount error",124:"Communication error on send",125:"Cross mount point (not really error)",126:"Given log. name not unique",127:"f.d. invalid for this operation",128:"Remote address changed",129:"Can access a needed shared lib",130:"Accessing a corrupted shared lib",131:".lib section in a.out corrupted",132:"Attempting to link in too many libs",133:"Attempting to exec a shared library",135:"Streams pipe error",136:"Too many users",137:"Socket type not supported",138:"Not supported",139:"Protocol family not supported",140:"Can't send after socket shutdown",141:"Too many references",142:"Host is down",148:"No medium (in tape drive)",156:"Level 2 not synchronized"},Qe={},$e=function(e){return Ce("warning: build with -sDEMANGLE_SUPPORT to link in libcxxabi demangling"),e},et=function(e){var t=/\b_Z[\w\d_]+/g;return e.replace(t,(function(e){var t=$e(e);return e===t?e:t+" ["+e+"]"}))},tt={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=ke.resolve(e),!e)return{path:"",node:null};var r={follow_mount:!0,recurse_count:0};if(t=Object.assign(r,t),t.recurse_count>8)throw new tt.ErrnoError(32);for(var n=e.split("/").filter((function(e){return!!e})),o=tt.root,i="/",_=0;_<n.length;_++){var a=_===n.length-1;if(a&&t.parent)break;if(o=tt.lookupNode(o,n[_]),i=Oe.join2(i,n[_]),tt.isMountpoint(o)&&(!a||a&&t.follow_mount)&&(o=o.mounted.root),!a||t.follow){var s=0;while(tt.isLink(o.mode)){var l=tt.readlink(i);i=ke.resolve(Oe.dirname(i),l);var u=tt.lookupPath(i,{recurse_count:t.recurse_count+1});if(o=u.node,s++>40)throw new tt.ErrnoError(32)}}}return{path:i,node:o}},getPath:function(e){var t;while(1){if(tt.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?"".concat(r,"/").concat(t):r+t:r}t=t?"".concat(e.name,"/").concat(t):e.name,e=e.parent}},hashName:function(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%tt.nameTable.length},hashAddNode:function(e){var t=tt.hashName(e.parent.id,e.name);e.name_next=tt.nameTable[t],tt.nameTable[t]=e},hashRemoveNode:function(e){var t=tt.hashName(e.parent.id,e.name);if(tt.nameTable[t]===e)tt.nameTable[t]=e.name_next;else{var r=tt.nameTable[t];while(r){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}}},lookupNode:function(e,t){var r=tt.mayLookup(e);if(r)throw new tt.ErrnoError(r,e);for(var n=tt.hashName(e.id,t),o=tt.nameTable[n];o;o=o.name_next){var i=o.name;if(o.parent.id===e.id&&i===t)return o}return tt.lookup(e,t)},createNode:function(e,t,r,n){M("object"==o(e));var i=new tt.FSNode(e,t,r,n);return tt.hashAddNode(i),i},destroyNode:function(e){tt.hashRemoveNode(e)},isRoot:function(e){return e===e.parent},isMountpoint:function(e){return!!e.mounted},isFile:function(e){return 32768===(61440&e)},isDir:function(e){return 16384===(61440&e)},isLink:function(e){return 40960===(61440&e)},isChrdev:function(e){return 8192===(61440&e)},isBlkdev:function(e){return 24576===(61440&e)},isFIFO:function(e){return 4096===(61440&e)},isSocket:function(e){return 49152===(49152&e)},flagsToPermissionString:function(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:function(e,t){return tt.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2},mayLookup:function(e){var t=tt.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate:function(e,t){try{tt.lookupNode(e,t);return 20}catch(r){}return tt.nodePermissions(e,"wx")},mayDelete:function(e,t,r){var n;try{n=tt.lookupNode(e,t)}catch(i){return i.errno}var o=tt.nodePermissions(e,"wx");if(o)return o;if(r){if(!tt.isDir(n.mode))return 54;if(tt.isRoot(n)||tt.getPath(n)===tt.cwd())return 10}else if(tt.isDir(n.mode))return 31;return 0},mayOpen:function(e,t){return e?tt.isLink(e.mode)?32:tt.isDir(e.mode)&&("r"!==tt.flagsToPermissionString(t)||512&t)?31:tt.nodePermissions(e,tt.flagsToPermissionString(t)):44},MAX_OPEN_FDS:4096,nextfd:function(){for(var e=0;e<=tt.MAX_OPEN_FDS;e++)if(!tt.streams[e])return e;throw new tt.ErrnoError(33)},getStreamChecked:function(e){var t=tt.getStream(e);if(!t)throw new tt.ErrnoError(8);return t},getStream:function(e){return tt.streams[e]},createStream:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return tt.FSStream||(tt.FSStream=function(){this.shared={}},tt.FSStream.prototype={},Object.defineProperties(tt.FSStream.prototype,{object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!==(2097155&this.flags)}},isWrite:{get:function(){return 0!==(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}},flags:{get:function(){return this.shared.flags},set:function(e){this.shared.flags=e}},position:{get:function(){return this.shared.position},set:function(e){this.shared.position=e}}})),e=Object.assign(new tt.FSStream,e),-1==t&&(t=tt.nextfd()),e.fd=t,tt.streams[t]=e,e},closeStream:function(e){tt.streams[e]=null},chrdev_stream_ops:{open:function(e){var t=tt.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:function(){throw new tt.ErrnoError(70)}},major:function(e){return e>>8},minor:function(e){return 255&e},makedev:function(e,t){return e<<8|t},registerDevice:function(e,t){tt.devices[e]={stream_ops:t}},getDevice:function(e){return tt.devices[e]},getMounts:function(e){var t=[],r=[e];while(r.length){var n=r.pop();t.push(n),r.push.apply(r,n.mounts)}return t},syncfs:function(e,t){"function"==typeof e&&(t=e,e=!1),tt.syncFSRequests++,tt.syncFSRequests>1&&E("warning: ".concat(tt.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var r=tt.getMounts(tt.root.mount),n=0;function o(e){return M(tt.syncFSRequests>0),tt.syncFSRequests--,t(e)}function i(e){if(e)return i.errored?void 0:(i.errored=!0,o(e));++n>=r.length&&o(null)}r.forEach((function(t){if(!t.type.syncfs)return i(null);t.type.syncfs(t,e,i)}))},mount:function(e,t,r){if("string"==typeof e)throw e;var n,o="/"===r,i=!r;if(o&&tt.root)throw new tt.ErrnoError(10);if(!o&&!i){var _=tt.lookupPath(r,{follow_mount:!1});if(r=_.path,n=_.node,tt.isMountpoint(n))throw new tt.ErrnoError(10);if(!tt.isDir(n.mode))throw new tt.ErrnoError(54)}var a={type:e,opts:t,mountpoint:r,mounts:[]},s=e.mount(a);return s.mount=a,a.root=s,o?tt.root=s:n&&(n.mounted=a,n.mount&&n.mount.mounts.push(a)),s},unmount:function(e){var t=tt.lookupPath(e,{follow_mount:!1});if(!tt.isMountpoint(t.node))throw new tt.ErrnoError(28);var r=t.node,n=r.mounted,o=tt.getMounts(n);Object.keys(tt.nameTable).forEach((function(e){var t=tt.nameTable[e];while(t){var r=t.name_next;o.includes(t.mount)&&tt.destroyNode(t),t=r}})),r.mounted=null;var i=r.mount.mounts.indexOf(n);M(-1!==i),r.mount.mounts.splice(i,1)},lookup:function(e,t){return e.node_ops.lookup(e,t)},mknod:function(e,t,r){var n=tt.lookupPath(e,{parent:!0}),o=n.node,i=Oe.basename(e);if(!i||"."===i||".."===i)throw new tt.ErrnoError(28);var _=tt.mayCreate(o,i);if(_)throw new tt.ErrnoError(_);if(!o.node_ops.mknod)throw new tt.ErrnoError(63);return o.node_ops.mknod(o,i,t,r)},create:function(e,t){return t=void 0!==t?t:438,t&=4095,t|=32768,tt.mknod(e,t,0)},mkdir:function(e,t){return t=void 0!==t?t:511,t&=1023,t|=16384,tt.mknod(e,t,0)},mkdirTree:function(e,t){for(var r=e.split("/"),n="",o=0;o<r.length;++o)if(r[o]){n+="/"+r[o];try{tt.mkdir(n,t)}catch(i){if(20!=i.errno)throw i}}},mkdev:function(e,t,r){return"undefined"==typeof r&&(r=t,t=438),t|=8192,tt.mknod(e,t,r)},symlink:function(e,t){if(!ke.resolve(e))throw new tt.ErrnoError(44);var r=tt.lookupPath(t,{parent:!0}),n=r.node;if(!n)throw new tt.ErrnoError(44);var o=Oe.basename(t),i=tt.mayCreate(n,o);if(i)throw new tt.ErrnoError(i);if(!n.node_ops.symlink)throw new tt.ErrnoError(63);return n.node_ops.symlink(n,o,e)},rename:function(e,t){var r,n,o,i=Oe.dirname(e),_=Oe.dirname(t),a=Oe.basename(e),s=Oe.basename(t);if(r=tt.lookupPath(e,{parent:!0}),n=r.node,r=tt.lookupPath(t,{parent:!0}),o=r.node,!n||!o)throw new tt.ErrnoError(44);if(n.mount!==o.mount)throw new tt.ErrnoError(75);var l,u=tt.lookupNode(n,a),c=ke.relative(e,_);if("."!==c.charAt(0))throw new tt.ErrnoError(28);if(c=ke.relative(t,i),"."!==c.charAt(0))throw new tt.ErrnoError(55);try{l=tt.lookupNode(o,s)}catch(f){}if(u!==l){var S=tt.isDir(u.mode),d=tt.mayDelete(n,a,S);if(d)throw new tt.ErrnoError(d);if(d=l?tt.mayDelete(o,s,S):tt.mayCreate(o,s),d)throw new tt.ErrnoError(d);if(!n.node_ops.rename)throw new tt.ErrnoError(63);if(tt.isMountpoint(u)||l&&tt.isMountpoint(l))throw new tt.ErrnoError(10);if(o!==n&&(d=tt.nodePermissions(n,"w"),d))throw new tt.ErrnoError(d);tt.hashRemoveNode(u);try{n.node_ops.rename(u,o,s)}catch(f){throw f}finally{tt.hashAddNode(u)}}},rmdir:function(e){var t=tt.lookupPath(e,{parent:!0}),r=t.node,n=Oe.basename(e),o=tt.lookupNode(r,n),i=tt.mayDelete(r,n,!0);if(i)throw new tt.ErrnoError(i);if(!r.node_ops.rmdir)throw new tt.ErrnoError(63);if(tt.isMountpoint(o))throw new tt.ErrnoError(10);r.node_ops.rmdir(r,n),tt.destroyNode(o)},readdir:function(e){var t=tt.lookupPath(e,{follow:!0}),r=t.node;if(!r.node_ops.readdir)throw new tt.ErrnoError(54);return r.node_ops.readdir(r)},unlink:function(e){var t=tt.lookupPath(e,{parent:!0}),r=t.node;if(!r)throw new tt.ErrnoError(44);var n=Oe.basename(e),o=tt.lookupNode(r,n),i=tt.mayDelete(r,n,!1);if(i)throw new tt.ErrnoError(i);if(!r.node_ops.unlink)throw new tt.ErrnoError(63);if(tt.isMountpoint(o))throw new tt.ErrnoError(10);r.node_ops.unlink(r,n),tt.destroyNode(o)},readlink:function(e){var t=tt.lookupPath(e),r=t.node;if(!r)throw new tt.ErrnoError(44);if(!r.node_ops.readlink)throw new tt.ErrnoError(28);return ke.resolve(tt.getPath(r.parent),r.node_ops.readlink(r))},stat:function(e,t){var r=tt.lookupPath(e,{follow:!t}),n=r.node;if(!n)throw new tt.ErrnoError(44);if(!n.node_ops.getattr)throw new tt.ErrnoError(63);return n.node_ops.getattr(n)},lstat:function(e){return tt.stat(e,!0)},chmod:function(e,t,r){var n;if("string"==typeof e){var o=tt.lookupPath(e,{follow:!r});n=o.node}else n=e;if(!n.node_ops.setattr)throw new tt.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod:function(e,t){tt.chmod(e,t,!0)},fchmod:function(e,t){var r=tt.getStreamChecked(e);tt.chmod(r.node,t)},chown:function(e,t,r,n){var o;if("string"==typeof e){var i=tt.lookupPath(e,{follow:!n});o=i.node}else o=e;if(!o.node_ops.setattr)throw new tt.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:function(e,t,r){tt.chown(e,t,r,!0)},fchown:function(e,t,r){var n=tt.getStreamChecked(e);tt.chown(n.node,t,r)},truncate:function(e,t){if(t<0)throw new tt.ErrnoError(28);var r;if("string"==typeof e){var n=tt.lookupPath(e,{follow:!0});r=n.node}else r=e;if(!r.node_ops.setattr)throw new tt.ErrnoError(63);if(tt.isDir(r.mode))throw new tt.ErrnoError(31);if(!tt.isFile(r.mode))throw new tt.ErrnoError(28);var o=tt.nodePermissions(r,"w");if(o)throw new tt.ErrnoError(o);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate:function(e,t){var r=tt.getStreamChecked(e);if(0===(2097155&r.flags))throw new tt.ErrnoError(28);tt.truncate(r.node,t)},utime:function(e,t,r){var n=tt.lookupPath(e,{follow:!0}),o=n.node;o.node_ops.setattr(o,{timestamp:Math.max(t,r)})},open:function(e,t,r){if(""===e)throw new tt.ErrnoError(44);var n;if(t="string"==typeof t?Ye(t):t,r="undefined"==typeof r?438:r,r=64&t?4095&r|32768:0,"object"==o(e))n=e;else{e=Oe.normalize(e);try{var _=tt.lookupPath(e,{follow:!(131072&t)});n=_.node}catch(u){}}var a=!1;if(64&t)if(n){if(128&t)throw new tt.ErrnoError(20)}else n=tt.mknod(e,r,0),a=!0;if(!n)throw new tt.ErrnoError(44);if(tt.isChrdev(n.mode)&&(t&=-513),65536&t&&!tt.isDir(n.mode))throw new tt.ErrnoError(54);if(!a){var s=tt.mayOpen(n,t);if(s)throw new tt.ErrnoError(s)}512&t&&!a&&tt.truncate(n,0),t&=-131713;var l=tt.createStream({node:n,path:tt.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return l.stream_ops.open&&l.stream_ops.open(l),!i["logReadFiles"]||1&t||(tt.readFiles||(tt.readFiles={}),e in tt.readFiles||(tt.readFiles[e]=1)),l},close:function(e){if(tt.isClosed(e))throw new tt.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(t){throw t}finally{tt.closeStream(e.fd)}e.fd=null},isClosed:function(e){return null===e.fd},llseek:function(e,t,r){if(tt.isClosed(e))throw new tt.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new tt.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new tt.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read:function(e,t,r,n,o){if(M(r>=0),n<0||o<0)throw new tt.ErrnoError(28);if(tt.isClosed(e))throw new tt.ErrnoError(8);if(1===(2097155&e.flags))throw new tt.ErrnoError(8);if(tt.isDir(e.node.mode))throw new tt.ErrnoError(31);if(!e.stream_ops.read)throw new tt.ErrnoError(28);var i="undefined"!=typeof o;if(i){if(!e.seekable)throw new tt.ErrnoError(70)}else o=e.position;var _=e.stream_ops.read(e,t,r,n,o);return i||(e.position+=_),_},write:function(e,t,r,n,o,i){if(M(r>=0),n<0||o<0)throw new tt.ErrnoError(28);if(tt.isClosed(e))throw new tt.ErrnoError(8);if(0===(2097155&e.flags))throw new tt.ErrnoError(8);if(tt.isDir(e.node.mode))throw new tt.ErrnoError(31);if(!e.stream_ops.write)throw new tt.ErrnoError(28);e.seekable&&1024&e.flags&&tt.llseek(e,0,2);var _="undefined"!=typeof o;if(_){if(!e.seekable)throw new tt.ErrnoError(70)}else o=e.position;var a=e.stream_ops.write(e,t,r,n,o,i);return _||(e.position+=a),a},allocate:function(e,t,r){if(tt.isClosed(e))throw new tt.ErrnoError(8);if(t<0||r<=0)throw new tt.ErrnoError(28);if(0===(2097155&e.flags))throw new tt.ErrnoError(8);if(!tt.isFile(e.node.mode)&&!tt.isDir(e.node.mode))throw new tt.ErrnoError(43);if(!e.stream_ops.allocate)throw new tt.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap:function(e,t,r,n,o){if(0!==(2&n)&&0===(2&o)&&2!==(2097155&e.flags))throw new tt.ErrnoError(2);if(1===(2097155&e.flags))throw new tt.ErrnoError(2);if(!e.stream_ops.mmap)throw new tt.ErrnoError(43);return e.stream_ops.mmap(e,t,r,n,o)},msync:function(e,t,r,n,o){return M(r>=0),e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,o):0},munmap:function(e){return 0},ioctl:function(e,t,r){if(!e.stream_ops.ioctl)throw new tt.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error('Invalid encoding type "'.concat(r.encoding,'"'));var n=tt.open(e,r.flags),o=tt.stat(e),i=o.size,_=new Uint8Array(i);return tt.read(n,_,0,i,0),"utf8"===r.encoding?t=Ae(_,0):"binary"===r.encoding&&(t=_),tt.close(n),t},writeFile:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.flags=r.flags||577;var n=tt.open(e,r.flags,r.mode);if("string"==typeof t){var o=new Uint8Array(Re(t)+1),i=Ne(t,o,0,o.length);tt.write(n,o,0,i,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");tt.write(n,t,0,t.byteLength,void 0,r.canOwn)}tt.close(n)},cwd:function(){return tt.currentPath},chdir:function(e){var t=tt.lookupPath(e,{follow:!0});if(null===t.node)throw new tt.ErrnoError(44);if(!tt.isDir(t.node.mode))throw new tt.ErrnoError(54);var r=tt.nodePermissions(t.node,"x");if(r)throw new tt.ErrnoError(r);tt.currentPath=t.path},createDefaultDirectories:function(){tt.mkdir("/tmp"),tt.mkdir("/home"),tt.mkdir("/home/web_user")},createDefaultDevices:function(){tt.mkdir("/dev"),tt.registerDevice(tt.makedev(1,3),{read:function(){return 0},write:function(e,t,r,n,o){return n}}),tt.mkdev("/dev/null",tt.makedev(1,3)),He.register(tt.makedev(5,0),He.default_tty_ops),He.register(tt.makedev(6,0),He.default_tty1_ops),tt.mkdev("/dev/tty",tt.makedev(5,0)),tt.mkdev("/dev/tty1",tt.makedev(6,0));var e=new Uint8Array(1024),t=0,r=function(){return 0===t&&(t=Me(e).byteLength),e[--t]};tt.createDevice("/dev","random",r),tt.createDevice("/dev","urandom",r),tt.mkdir("/dev/shm"),tt.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){tt.mkdir("/proc");var e=tt.mkdir("/proc/self");tt.mkdir("/proc/self/fd"),tt.mount({mount:function(){var t=tt.createNode(e,"fd",16895,73);return t.node_ops={lookup:function(e,t){var r=+t,n=tt.getStreamChecked(r),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return n.path}}};return o.parent=o,o}},t}},{},"/proc/self/fd")},createStandardStreams:function(){i["stdin"]?tt.createDevice("/dev","stdin",i["stdin"]):tt.symlink("/dev/tty","/dev/stdin"),i["stdout"]?tt.createDevice("/dev","stdout",null,i["stdout"]):tt.symlink("/dev/tty","/dev/stdout"),i["stderr"]?tt.createDevice("/dev","stderr",null,i["stderr"]):tt.symlink("/dev/tty1","/dev/stderr");var e=tt.open("/dev/stdin",0),t=tt.open("/dev/stdout",1),r=tt.open("/dev/stderr",1);M(0===e.fd,"invalid handle for stdin (".concat(e.fd,")")),M(1===t.fd,"invalid handle for stdout (".concat(t.fd,")")),M(2===r.fd,"invalid handle for stderr (".concat(r.fd,")"))},ensureErrnoError:function(){tt.ErrnoError||(tt.ErrnoError=function(e,t){this.name="ErrnoError",this.node=t,this.setErrno=function(e){for(var t in this.errno=e,Qe)if(Qe[t]===e){this.code=t;break}},this.setErrno(e),this.message=Ze[e],this.stack&&(Object.defineProperty(this,"stack",{value:(new Error).stack,writable:!0}),this.stack=et(this.stack))},tt.ErrnoError.prototype=new Error,tt.ErrnoError.prototype.constructor=tt.ErrnoError,[44].forEach((function(e){tt.genericErrors[e]=new tt.ErrnoError(e),tt.genericErrors[e].stack="<generic error, no stack>"})))},staticInit:function(){tt.ensureErrnoError(),tt.nameTable=new Array(4096),tt.mount(Ve,{},"/"),tt.createDefaultDirectories(),tt.createDefaultDevices(),tt.createSpecialDirectories(),tt.filesystems={MEMFS:Ve}},init:function(e,t,r){M(!tt.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),tt.init.initialized=!0,tt.ensureErrnoError(),i["stdin"]=e||i["stdin"],i["stdout"]=t||i["stdout"],i["stderr"]=r||i["stderr"],tt.createStandardStreams()},quit:function(){tt.init.initialized=!1,Vt(0);for(var e=0;e<tt.streams.length;e++){var t=tt.streams[e];t&&tt.close(t)}},findObject:function(e,t){var r=tt.analyzePath(e,t);return r.exists?r.object:null},analyzePath:function(e,t){try{var r=tt.lookupPath(e,{follow:!t});e=r.path}catch(o){}var n={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{r=tt.lookupPath(e,{parent:!0});n.parentExists=!0,n.parentPath=r.path,n.parentObject=r.node,n.name=Oe.basename(e),r=tt.lookupPath(e,{follow:!t}),n.exists=!0,n.path=r.path,n.object=r.node,n.name=r.node.name,n.isRoot="/"===r.path}catch(o){n.error=o.errno}return n},createPath:function(e,t,r,n){e="string"==typeof e?e:tt.getPath(e);var o=t.split("/").reverse();while(o.length){var i=o.pop();if(i){var _=Oe.join2(e,i);try{tt.mkdir(_)}catch(a){}e=_}}return _},createFile:function(e,t,r,n,o){var i=Oe.join2("string"==typeof e?e:tt.getPath(e),t),_=Je(n,o);return tt.create(i,_)},createDataFile:function(e,t,r,n,o,i){var _=t;e&&(e="string"==typeof e?e:tt.getPath(e),_=t?Oe.join2(e,t):e);var a=Je(n,o),s=tt.create(_,a);if(r){if("string"==typeof r){for(var l=new Array(r.length),u=0,c=r.length;u<c;++u)l[u]=r.charCodeAt(u);r=l}tt.chmod(s,146|a);var S=tt.open(s,577);tt.write(S,r,0,r.length,0,i),tt.close(S),tt.chmod(s,a)}return s},createDevice:function(e,t,r,n){var o=Oe.join2("string"==typeof e?e:tt.getPath(e),t),i=Je(!!r,!!n);tt.createDevice.major||(tt.createDevice.major=64);var _=tt.makedev(tt.createDevice.major++,0);return tt.registerDevice(_,{open:function(e){e.seekable=!1},close:function(e){n&&n.buffer&&n.buffer.length&&n(10)},read:function(e,t,n,o,i){for(var _=0,a=0;a<o;a++){var s;try{s=r()}catch(l){throw new tt.ErrnoError(29)}if(void 0===s&&0===_)throw new tt.ErrnoError(6);if(null===s||void 0===s)break;_++,t[n+a]=s}return _&&(e.node.timestamp=Date.now()),_},write:function(e,t,r,o,i){for(var _=0;_<o;_++)try{n(t[r+_])}catch(a){throw new tt.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),_}}),tt.mkdev(o,i,_)},forceLoadFile:function(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!d)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=Ue(d(e.url),!0),e.usedBytes=e.contents.length}catch(t){throw new tt.ErrnoError(29)}},createLazyFile:function(e,t,r,n,o){function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}},i.prototype.setDataGetter=function(e){this.getter=e},i.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),o=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,i=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,_=1048576;o||(_=n);var a=function(e,t){if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",r,!1),n!==_&&o.setRequestHeader("Range","bytes="+e+"-"+t),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+r+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):Ue(o.responseText||"",!0)},s=this;s.setDataGetter((function(e){var t=e*_,r=(e+1)*_-1;if(r=Math.min(r,n-1),"undefined"==typeof s.chunks[e]&&(s.chunks[e]=a(t,r)),"undefined"==typeof s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!i&&n||(_=n=1,n=this.getter(0).length,_=n,v("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=_,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!u)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var _=new i;Object.defineProperties(_,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var a={isDevice:!1,contents:_}}else a={isDevice:!1,url:r};var s=tt.createFile(e,t,a,n,o);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var l={},c=Object.keys(s.stream_ops);function S(e,t,r,n,o){var i=e.node.contents;if(o>=i.length)return 0;var _=Math.min(i.length-o,n);if(M(_>=0),i.slice)for(var a=0;a<_;a++)t[r+a]=i[o+a];else for(a=0;a<_;a++)t[r+a]=i.get(o+a);return _}return c.forEach((function(e){var t=s.stream_ops[e];l[e]=function(){return tt.forceLoadFile(s),t.apply(null,arguments)}})),l.read=function(e,t,r,n,o){return tt.forceLoadFile(s),S(e,t,r,n,o)},l.mmap=function(e,t,r,n,o){tt.forceLoadFile(s);var i=Ke(t);if(!i)throw new tt.ErrnoError(48);return S(e,C,i,t,r),{ptr:i,allocated:!0}},s.stream_ops=l,s},absolutePath:function(){oe("FS.absolutePath has been removed; use PATH_FS.resolve instead")},createFolder:function(){oe("FS.createFolder has been removed; use FS.mkdir instead")},createLink:function(){oe("FS.createLink has been removed; use FS.symlink instead")},joinPath:function(){oe("FS.joinPath has been removed; use PATH.join instead")},mmapAlloc:function(){oe("FS.mmapAlloc has been replaced by the top level function mmapAlloc")},standardizePath:function(){oe("FS.standardizePath has been removed; use PATH.normalize instead")}},rt={DEFAULT_POLLMASK:5,calculateAt:function(e,t,r){if(Oe.isAbs(t))return t;var n;if(-100===e)n=tt.cwd();else{var o=rt.getStreamFromFD(e);n=o.path}if(0==t.length){if(!r)throw new tt.ErrnoError(44);return n}return Oe.join2(n,t)},doStat:function(e,t,r){try{var n=e(t)}catch(a){if(a&&a.node&&Oe.normalize(t)!==Oe.normalize(tt.getPath(a.node)))return-54;throw a}L[r>>2]=n.dev,L[r+4>>2]=n.mode,F[r+8>>2]=n.nlink,L[r+12>>2]=n.uid,L[r+16>>2]=n.gid,L[r+20>>2]=n.rdev,ae=[n.size>>>0,(_e=n.size,+Math.abs(_e)>=1?_e>0?+Math.floor(_e/4294967296)>>>0:~~+Math.ceil((_e-+(~~_e>>>0))/4294967296)>>>0:0)],L[r+24>>2]=ae[0],L[r+28>>2]=ae[1],L[r+32>>2]=4096,L[r+36>>2]=n.blocks;var o=n.atime.getTime(),i=n.mtime.getTime(),_=n.ctime.getTime();return ae=[Math.floor(o/1e3)>>>0,(_e=Math.floor(o/1e3),+Math.abs(_e)>=1?_e>0?+Math.floor(_e/4294967296)>>>0:~~+Math.ceil((_e-+(~~_e>>>0))/4294967296)>>>0:0)],L[r+40>>2]=ae[0],L[r+44>>2]=ae[1],F[r+48>>2]=o%1e3*1e3,ae=[Math.floor(i/1e3)>>>0,(_e=Math.floor(i/1e3),+Math.abs(_e)>=1?_e>0?+Math.floor(_e/4294967296)>>>0:~~+Math.ceil((_e-+(~~_e>>>0))/4294967296)>>>0:0)],L[r+56>>2]=ae[0],L[r+60>>2]=ae[1],F[r+64>>2]=i%1e3*1e3,ae=[Math.floor(_/1e3)>>>0,(_e=Math.floor(_/1e3),+Math.abs(_e)>=1?_e>0?+Math.floor(_e/4294967296)>>>0:~~+Math.ceil((_e-+(~~_e>>>0))/4294967296)>>>0:0)],L[r+72>>2]=ae[0],L[r+76>>2]=ae[1],F[r+80>>2]=_%1e3*1e3,ae=[n.ino>>>0,(_e=n.ino,+Math.abs(_e)>=1?_e>0?+Math.floor(_e/4294967296)>>>0:~~+Math.ceil((_e-+(~~_e>>>0))/4294967296)>>>0:0)],L[r+88>>2]=ae[0],L[r+92>>2]=ae[1],0},doMsync:function(e,t,r,n,o){if(!tt.isFile(t.node.mode))throw new tt.ErrnoError(43);if(2&n)return 0;var i=I.slice(e,e+r);tt.msync(t,i,o,r,n)},varargs:void 0,get:function(){M(void 0!=rt.varargs);var e=L[rt.varargs>>2];return rt.varargs+=4,e},getp:function(){return rt.get()},getStr:function(e){var t=Le(e);return t},getStreamFromFD:function(e){var t=tt.getStreamChecked(e);return t}};function nt(e,t,r){rt.varargs=r;try{var n=rt.getStreamFromFD(e);switch(t){case 0:var o,i=rt.get();if(i<0)return-28;while(tt.streams[i])i++;return o=tt.createStream(n,i),o.fd;case 1:case 2:return 0;case 3:return n.flags;case 4:i=rt.get();return n.flags|=i,0;case 5:i=rt.getp();var _=0;return A[i+_>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return De(28),-1;default:return-28}}catch(a){if("undefined"==typeof tt||"ErrnoError"!==a.name)throw a;return-a.errno}}function ot(e,t,r){rt.varargs=r;try{var n=rt.getStreamFromFD(e);switch(t){case 21509:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var o=n.tty.ops.ioctl_tcgets(n),i=rt.getp();L[i>>2]=o.c_iflag||0,L[i+4>>2]=o.c_oflag||0,L[i+8>>2]=o.c_cflag||0,L[i+12>>2]=o.c_lflag||0;for(var _=0;_<32;_++)C[i+_+17|0]=o.c_cc[_]||0;return 0}return 0;case 21510:case 21511:case 21512:return n.tty?0:-59;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){i=rt.getp();var a=L[i>>2],s=L[i+4>>2],l=L[i+8>>2],u=L[i+12>>2],c=[];for(_=0;_<32;_++)c.push(C[i+_+17|0]);return n.tty.ops.ioctl_tcsets(n.tty,t,{c_iflag:a,c_oflag:s,c_cflag:l,c_lflag:u,c_cc:c})}return 0;case 21519:if(!n.tty)return-59;i=rt.getp();return L[i>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:i=rt.getp();return tt.ioctl(n,t,i);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var S=n.tty.ops.ioctl_tiocgwinsz(n.tty);i=rt.getp();A[i>>1]=S[0],A[i+2>>1]=S[1]}return 0;case 21524:return n.tty?0:-59;case 21515:return n.tty?0:-59;default:return-28}}catch(d){if("undefined"==typeof tt||"ErrnoError"!==d.name)throw d;return-d.errno}}function it(e,t,r,n){rt.varargs=n;try{t=rt.getStr(t),t=rt.calculateAt(e,t);var o=n?rt.get():0;return tt.open(t,r,o).fd}catch(i){if("undefined"==typeof tt||"ErrnoError"!==i.name)throw i;return-i.errno}}var _t=function(){throw 1/0},at=function(){oe("native code called abort()")},st=[],lt=function(e,t){var r;M(Array.isArray(st)),M(t%16==0),st.length=0;while(r=I[e++]){var n=String.fromCharCode(r),o=["d","f","i"];M(o.includes(n),"Invalid character ".concat(r,'("').concat(n,'") in readEmAsmArgs! Use only [').concat(o,'], and do not specify "v" for void return argument.')),t+=105!=r&&t%8?4:0,st.push(105==r?L[t>>2]:D[t>>3]),t+=105==r?4:8}return st},ut=function(e,t,r){var n=lt(t,r);return Ee.hasOwnProperty(e)||oe("No EM_ASM constant found at address ".concat(e)),Ee[e].apply(null,n)},ct=function(e,t,r){return ut(e,t,r)},St=function(e,t,r){return I.copyWithin(e,t,t+r)},dt=function(){return 2147483648},ft=function(e){var t=P.buffer,r=(e-t.byteLength+65535)/65536;try{return P.grow(r),k(),1}catch(n){E("growMemory: Attempted to grow heap from ".concat(t.byteLength," bytes to ").concat(e," bytes, but got error: ").concat(n))}},mt=function(e){var t=I.length;e>>>=0,M(e>t);var r=dt();if(e>r)return E("Cannot enlarge memory, requested ".concat(e," bytes, but the limit is ").concat(r," bytes!")),!1;for(var n=function(e,t){return e+(t-e%t)%t},o=1;o<=4;o*=2){var i=t*(1+.2/o);i=Math.min(i,e+100663296);var _=Math.min(r,n(Math.max(e,i),65536)),a=ft(_);if(a)return!0}return E("Failed to grow the heap from ".concat(t," bytes to ").concat(_," bytes, not enough memory!")),!1},ht={},pt=function(){return a||"./this.program"},yt=function e(){if(!e.strings){var t=("object"==("undefined"===typeof navigator?"undefined":o(navigator))&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:t,_:pt()};for(var n in ht)void 0===ht[n]?delete r[n]:r[n]=ht[n];var i=[];for(var n in r)i.push("".concat(n,"=").concat(r[n]));e.strings=i}return e.strings},Gt=function(e,t){for(var r=0;r<e.length;++r)M(e.charCodeAt(r)===(255&e.charCodeAt(r))),C[t++|0]=e.charCodeAt(r);C[t|0]=0},gt=function(e,t){var r=0;return yt().forEach((function(n,o){var i=t+r;F[e+4*o>>2]=i,Gt(n,i),r+=n.length+1})),0},wt=function(e,t){var r=yt();F[e>>2]=r.length;var n=0;return r.forEach((function(e){return n+=e.length+1})),F[t>>2]=n,0},vt=function(e){e,V()||(i["onExit"]&&i["onExit"](e),B=!0),s(e,new be(e))},Et=function(e,t){if(e,ur(),V()&&!t){var r="program exited (with status: ".concat(e,"), but keepRuntimeAlive() is set (counter=").concat(K,") due to an async operation, so halting execution but not exiting the runtime or preventing further async execution (you can use emscripten_force_exit, if you want to force a true shutdown)");E(r)}vt(e)},bt=Et;function Pt(e){try{var t=rt.getStreamFromFD(e);return tt.close(t),0}catch(r){if("undefined"==typeof tt||"ErrnoError"!==r.name)throw r;return r.errno}}var Tt=function(e,t,r,n){for(var o=0,i=0;i<r;i++){var _=F[t>>2],a=F[t+4>>2];t+=8;var s=tt.read(e,C,_,a,n);if(s<0)return-1;if(o+=s,s<a)break;"undefined"!==typeof n&&(n+=s)}return o};function Ct(e,t,r,n){try{var o=rt.getStreamFromFD(e),i=Tt(o,t,r);return F[n>>2]=i,0}catch(_){if("undefined"==typeof tt||"ErrnoError"!==_.name)throw _;return _.errno}}var It=function(e,t){return M(e==e>>>0||e==(0|e)),M(t===(0|t)),t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN};function At(e,t,r,n,o){var i=It(t,r);try{if(isNaN(i))return 61;var _=rt.getStreamFromFD(e);return tt.llseek(_,i,n),ae=[_.position>>>0,(_e=_.position,+Math.abs(_e)>=1?_e>0?+Math.floor(_e/4294967296)>>>0:~~+Math.ceil((_e-+(~~_e>>>0))/4294967296)>>>0:0)],L[o>>2]=ae[0],L[o+4>>2]=ae[1],_.getdents&&0===i&&0===n&&(_.getdents=null),0}catch(a){if("undefined"==typeof tt||"ErrnoError"!==a.name)throw a;return a.errno}}var Lt=function(e,t,r,n){for(var o=0,i=0;i<r;i++){var _=F[t>>2],a=F[t+4>>2];t+=8;var s=tt.write(e,C,_,a,n);if(s<0)return-1;o+=s,"undefined"!==typeof n&&(n+=s)}return o};function Ft(e,t,r,n){try{var o=rt.getStreamFromFD(e),i=Lt(o,t,r);return F[n>>2]=i,0}catch(_){if("undefined"==typeof tt||"ErrnoError"!==_.name)throw _;return _.errno}}var Dt=[],Ot=function(e){var t=Dt[e];return t||(e>=Dt.length&&(Dt.length=e+1),Dt[e]=t=O.get(e)),M(O.get(e)==t,"JavaScript-side Wasm function table mirror is out of date!"),t},Bt=function(e,t,r){return M("number"==typeof r,"stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),Ne(e,I,t,r)},Mt=function(e){var t=Re(e)+1,r=Kt(t);return r&&Bt(e,r,t),r},kt=Mt,xt=function(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=tt.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n},Rt=365,Nt=146;function Ut(){ye("fetchSettings")}Object.defineProperties(xt.prototype,{read:{get:function(){return(this.mode&Rt)===Rt},set:function(e){e?this.mode|=Rt:this.mode&=~Rt}},write:{get:function(){return(this.mode&Nt)===Nt},set:function(e){e?this.mode|=Nt:this.mode&=~Nt}},isFolder:{get:function(){return tt.isDir(this.mode)}},isDevice:{get:function(){return tt.isChrdev(this.mode)}}}),tt.FSNode=xt,tt.createPreloadedFile=qe,tt.staticInit(),Qe={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135};var jt={__assert_fail:Fe,__syscall_fcntl64:nt,__syscall_ioctl:ot,__syscall_openat:it,_emscripten_throw_longjmp:_t,abort:at,emscripten_asm_const_int:ct,emscripten_memcpy_big:St,emscripten_resize_heap:mt,environ_get:gt,environ_sizes_get:wt,exit:bt,fd_close:Pt,fd_read:Ct,fd_seek:At,fd_write:Ft,invoke_ii:nr,invoke_iii:Qt,invoke_iiii:er,invoke_iiiii:$t,invoke_v:tr,invoke_vi:or,invoke_vii:rr,invoke_viiii:Zt},Ht=he(),Kt=(ce("__wasm_call_ctors"),i["_malloc"]=ce("malloc")),Vt=(i["_free"]=ce("free"),i["_GS_Add_Font_Library"]=ce("GS_Add_Font_Library"),i["_GS_Font_Library_Exists"]=ce("GS_Font_Library_Exists"),i["_GS_Remove_Font_Library"]=ce("GS_Remove_Font_Library"),i["_GS_Clear_Font_Library"]=ce("GS_Clear_Font_Library"),i["_GS_Set_Driver_Configs"]=ce("GS_Set_Driver_Configs"),i["_GS_Set_Driver_Options"]=ce("GS_Set_Driver_Options"),i["_GS_Show_Driver_Options"]=ce("GS_Show_Driver_Options"),i["_GS_Show_One_Driver_Option"]=ce("GS_Show_One_Driver_Option"),i["_GS_Set_Shader"]=ce("GS_Set_Shader"),i["_GS_Set_Vertex_Shader"]=ce("GS_Set_Vertex_Shader"),i["_GS_Set_Fragment_Shader"]=ce("GS_Set_Fragment_Shader"),i["_GS_UnSet_Shader"]=ce("GS_UnSet_Shader"),i["_GS_Show_Shader"]=ce("GS_Show_Shader"),i["_GS_Show_One_Shader"]=ce("GS_Show_One_Shader"),i["_GS_Set_Viewport"]=ce("GS_Set_Viewport"),i["_GS_UnSet_Viewport"]=ce("GS_UnSet_Viewport"),i["_GS_Show_Viewport"]=ce("GS_Show_Viewport"),i["_GS_Set_Camera"]=ce("GS_Set_Camera"),i["_GS_Set_Camera_Position"]=ce("GS_Set_Camera_Position"),i["_GS_Set_Camera_Target"]=ce("GS_Set_Camera_Target"),i["_GS_Set_Camera_Up"]=ce("GS_Set_Camera_Up"),i["_GS_Set_Camera_Field"]=ce("GS_Set_Camera_Field"),i["_GS_Set_Camera_Extent"]=ce("GS_Set_Camera_Extent"),i["_GS_Set_Camera_View"]=ce("GS_Set_Camera_View"),i["_GS_Set_Camera_Projection"]=ce("GS_Set_Camera_Projection"),i["_GS_Keep_Camera_Ratio"]=ce("GS_Keep_Camera_Ratio"),i["_GS_Show_Camera"]=ce("GS_Show_Camera"),i["_GS_Show_Camera_Position"]=ce("GS_Show_Camera_Position"),i["_GS_Show_Camera_Target"]=ce("GS_Show_Camera_Target"),i["_GS_Show_Camera_Up"]=ce("GS_Show_Camera_Up"),i["_GS_Show_Camera_Field"]=ce("GS_Show_Camera_Field"),i["_GS_Show_Camera_Extent"]=ce("GS_Show_Camera_Extent"),i["_GS_Show_Camera_View"]=ce("GS_Show_Camera_View"),i["_GS_Show_Camera_Projection"]=ce("GS_Show_Camera_Projection"),i["_GS_Show_Camera_Projection_Matrix"]=ce("GS_Show_Camera_Projection_Matrix"),i["_GS_Show_Camera_View_Matrix"]=ce("GS_Show_Camera_View_Matrix"),i["_GS_Show_Path_Camera_Position"]=ce("GS_Show_Path_Camera_Position"),i["_GS_Show_Path_Camera_Target"]=ce("GS_Show_Path_Camera_Target"),i["_GS_Dolly_Camera"]=ce("GS_Dolly_Camera"),i["_GS_Roll_Camera"]=ce("GS_Roll_Camera"),i["_GS_Zoom_Camera"]=ce("GS_Zoom_Camera"),i["_GS_UnSet_Camera"]=ce("GS_UnSet_Camera"),i["_GS_Set_Color"]=ce("GS_Set_Color"),i["_GS_UnSet_Color"]=ce("GS_UnSet_Color"),i["_GS_UnSet_One_Color"]=ce("GS_UnSet_One_Color"),i["_GS_Show_Color"]=ce("GS_Show_Color"),i["_GS_Show_One_Color"]=ce("GS_Show_One_Color"),i["_GS_Show_Color_By_Value"]=ce("GS_Show_Color_By_Value"),i["_GS_Set_Visibility"]=ce("GS_Set_Visibility"),i["_GS_Show_Visibility"]=ce("GS_Show_Visibility"),i["_GS_Show_One_Visibility"]=ce("GS_Show_One_Visibility"),i["_GS_UnSet_Visibility"]=ce("GS_UnSet_Visibility"),i["_GS_UnSet_One_Visibility"]=ce("GS_UnSet_One_Visibility"),i["_GS_Set_Selectability"]=ce("GS_Set_Selectability"),i["_GS_UnSet_Selectability"]=ce("GS_UnSet_Selectability"),i["_GS_UnSet_One_Selectability"]=ce("GS_UnSet_One_Selectability"),i["_GS_Show_Selectability"]=ce("GS_Show_Selectability"),i["_GS_Show_One_Selectability"]=ce("GS_Show_One_Selectability"),i["_GS_Set_Rendering_Options"]=ce("GS_Set_Rendering_Options"),i["_GS_UnSet_Rendering_Options"]=ce("GS_UnSet_Rendering_Options"),i["_GS_UnSet_One_Rendering_Option"]=ce("GS_UnSet_One_Rendering_Option"),i["_GS_Show_Rendering_Options"]=ce("GS_Show_Rendering_Options"),i["_GS_Show_One_Rendering_Option"]=ce("GS_Show_One_Rendering_Option"),i["_GS_Show_One_Path_Rendering_Option"]=ce("GS_Show_One_Path_Rendering_Option"),i["_GS_Show_One_Default_Rendering_Option"]=ce("GS_Show_One_Default_Rendering_Option"),i["_GS_Set_Heuristic_Options"]=ce("GS_Set_Heuristic_Options"),i["_GS_Set_One_Heuristic_Option"]=ce("GS_Set_One_Heuristic_Option"),i["_GS_UnSet_Heuristic_Options"]=ce("GS_UnSet_Heuristic_Options"),i["_GS_UnSet_One_Heuristic_Option"]=ce("GS_UnSet_One_Heuristic_Option"),i["_GS_Show_Heuristic_Options"]=ce("GS_Show_Heuristic_Options"),i["_GS_Show_One_Heuristic_Option"]=ce("GS_Show_One_Heuristic_Option"),i["_GS_Set_ModellingMatrix"]=ce("GS_Set_ModellingMatrix"),i["_GS_UnSet_ModellingMatrix"]=ce("GS_UnSet_ModellingMatrix"),i["_GS_Append_ModellingMatrix"]=ce("GS_Append_ModellingMatrix"),i["_GS_Show_ModellingMatrix"]=ce("GS_Show_ModellingMatrix"),i["_GS_Show_Path_ModellingMatrix"]=ce("GS_Show_Path_ModellingMatrix"),i["_GS_Set_Condition"]=ce("GS_Set_Condition"),i["_GS_UnSet_Condition"]=ce("GS_UnSet_Condition"),i["_GS_Show_Condition"]=ce("GS_Show_Condition"),i["_GS_Set_Text_Font"]=ce("GS_Set_Text_Font"),i["_GS_UnSet_Text_Font"]=ce("GS_UnSet_Text_Font"),i["_GS_UnSet_One_Text_Font"]=ce("GS_UnSet_One_Text_Font"),i["_GS_Show_Text_Font"]=ce("GS_Show_Text_Font"),i["_GS_Show_One_Text_Font"]=ce("GS_Show_One_Text_Font"),i["_GS_Attribute_Exists"]=ce("GS_Attribute_Exists"),i["_GS_Set_Event"]=ce("GS_Set_Event"),i["_GS_Unset_Event"]=ce("GS_Unset_Event"),i["_GS_Show_Event"]=ce("GS_Show_Event"),i["_GS_Get_Version"]=ce("GS_Get_Version"),i["_GS_Init_Database"]=ce("GS_Init_Database"),i["_GS_Open_Segment"]=ce("GS_Open_Segment"),i["_GS_Close_Segment"]=ce("GS_Close_Segment"),i["_GS_Fina_Database"]=ce("GS_Fina_Database"),i["_GS_Delete_Segment"]=ce("GS_Delete_Segment"),i["_GS_Update_Display"]=ce("GS_Update_Display"),i["_GS_Update_View_Display_By_Key"]=ce("GS_Update_View_Display_By_Key"),i["_GS_Update_View_Display_With_Framerate_By_Key"]=ce("GS_Update_View_Display_With_Framerate_By_Key"),i["_GS_Update_View_Display_With_Time_By_Key"]=ce("GS_Update_View_Display_With_Time_By_Key"),i["_GS_Save_Segment"]=ce("GS_Save_Segment"),i["_GS_Save_Segment_By_Key"]=ce("GS_Save_Segment_By_Key"),i["_GS_Save_Segment_Data"]=ce("GS_Save_Segment_Data"),i["_GS_Save_Segment_Data_By_Key"]=ce("GS_Save_Segment_Data_By_Key"),i["_GS_Load_Segment"]=ce("GS_Load_Segment"),i["_GS_Load_Segment_With_Compression"]=ce("GS_Load_Segment_With_Compression"),i["_GS_Load_Segment_By_Key"]=ce("GS_Load_Segment_By_Key"),i["_GS_Load_Segment_With_Compression_By_Key"]=ce("GS_Load_Segment_With_Compression_By_Key"),i["_GS_Load_Segment_Data"]=ce("GS_Load_Segment_Data"),i["_GS_Load_Segment_Data_With_Compression"]=ce("GS_Load_Segment_Data_With_Compression"),i["_GS_Load_Segment_Data_By_Key"]=ce("GS_Load_Segment_Data_By_Key"),i["_GS_Load_Segment_Data_With_Compression_By_Key"]=ce("GS_Load_Segment_Data_With_Compression_By_Key"),i["_GS_Segment_To_Stream"]=ce("GS_Segment_To_Stream"),i["_GS_Segment_To_Stream_By_Key"]=ce("GS_Segment_To_Stream_By_Key"),i["_GS_Segment_To_Stream_With_Compression"]=ce("GS_Segment_To_Stream_With_Compression"),i["_GS_Segment_To_Stream_With_Compression_By_Key"]=ce("GS_Segment_To_Stream_With_Compression_By_Key"),i["_GS_Stream_To_Segment"]=ce("GS_Stream_To_Segment"),i["_GS_Stream_To_Segment_By_Key"]=ce("GS_Stream_To_Segment_By_Key"),i["_GS_Stream_With_Compression_To_Segment"]=ce("GS_Stream_With_Compression_To_Segment"),i["_GS_Stream_With_Compression_To_Segment_By_Key"]=ce("GS_Stream_With_Compression_To_Segment_By_Key"),i["_GS_Segment_Data_To_Stream"]=ce("GS_Segment_Data_To_Stream"),i["_GS_Stream_To_Segment_Data"]=ce("GS_Stream_To_Segment_Data"),i["_GS_Geometry_Data_To_Stream"]=ce("GS_Geometry_Data_To_Stream"),i["_GS_Geometry_Data_To_Stream_With_Compression"]=ce("GS_Geometry_Data_To_Stream_With_Compression"),i["_GS_Stream_To_Geometry_Data_With_Compression"]=ce("GS_Stream_To_Geometry_Data_With_Compression"),i["_GS_Stream_To_Geometry_Data"]=ce("GS_Stream_To_Geometry_Data"),i["_GS_Stream_To_Geometry_Data_By_Key"]=ce("GS_Stream_To_Geometry_Data_By_Key"),i["_GS_Stream_To_Geometry_Data_By_Keys"]=ce("GS_Stream_To_Geometry_Data_By_Keys"),i["_GS_Copy_Segment_By_Key"]=ce("GS_Copy_Segment_By_Key"),i["_GS_Compress_File"]=ce("GS_Compress_File"),i["_GS_Define_Error_Handler"]=ce("GS_Define_Error_Handler"),i["_GS_Define_Log_Handler"]=ce("GS_Define_Log_Handler"),i["_GS_Show_Database_Info"]=ce("GS_Show_Database_Info"),i["_GS_Show_Allocated_Memory_Size"]=ce("GS_Show_Allocated_Memory_Size"),i["_GS_Insert_Marker"]=ce("GS_Insert_Marker"),i["_GS_Edit_Marker"]=ce("GS_Edit_Marker"),i["_GS_Show_Marker"]=ce("GS_Show_Marker"),i["_GS_Insert_Point_Cloud"]=ce("GS_Insert_Point_Cloud"),i["_GS_Edit_Point_Cloud"]=ce("GS_Edit_Point_Cloud"),i["_GS_Show_Point_Cloud_Count"]=ce("GS_Show_Point_Cloud_Count"),i["_GS_Show_Point_Cloud"]=ce("GS_Show_Point_Cloud"),i["_GS_Insert_Line"]=ce("GS_Insert_Line"),i["_GS_Show_Line"]=ce("GS_Show_Line"),i["_GS_Edit_Line"]=ce("GS_Edit_Line"),i["_GS_Insert_Polyline"]=ce("GS_Insert_Polyline"),i["_GS_Show_Polyline"]=ce("GS_Show_Polyline"),i["_GS_Show_Polyline_Count"]=ce("GS_Show_Polyline_Count"),i["_GS_Edit_Polyline"]=ce("GS_Edit_Polyline"),i["_GS_Insert_Circular_Arc"]=ce("GS_Insert_Circular_Arc"),i["_GS_Show_Circular_Arc"]=ce("GS_Show_Circular_Arc"),i["_GS_Edit_Circular_Arc"]=ce("GS_Edit_Circular_Arc"),i["_GS_Insert_Ellipse_Arc"]=ce("GS_Insert_Ellipse_Arc"),i["_GS_Show_Ellipse_Arc"]=ce("GS_Show_Ellipse_Arc"),i["_GS_Edit_Ellipse_Arc"]=ce("GS_Edit_Ellipse_Arc"),i["_GS_Insert_Circle"]=ce("GS_Insert_Circle"),i["_GS_Show_Circle"]=ce("GS_Show_Circle"),i["_GS_Edit_Circle"]=ce("GS_Edit_Circle"),i["_GS_Insert_Ellipse"]=ce("GS_Insert_Ellipse"),i["_GS_Show_Ellipse"]=ce("GS_Show_Ellipse"),i["_GS_Edit_Ellipse"]=ce("GS_Edit_Ellipse"),i["_GS_Insert_Cylinder"]=ce("GS_Insert_Cylinder"),i["_GS_Show_Cylinder"]=ce("GS_Show_Cylinder"),i["_GS_Edit_Cylinder"]=ce("GS_Edit_Cylinder"),i["_GS_Insert_PolyCylinder"]=ce("GS_Insert_PolyCylinder"),i["_GS_Show_PolyCylinder_Count"]=ce("GS_Show_PolyCylinder_Count"),i["_GS_Show_PolyCylinder"]=ce("GS_Show_PolyCylinder"),i["_GS_Edit_PolyCylinder"]=ce("GS_Edit_PolyCylinder"),i["_GS_Insert_Shell"]=ce("GS_Insert_Shell"),i["_GS_Edit_Shell"]=ce("GS_Edit_Shell"),i["_GS_Show_Shell"]=ce("GS_Show_Shell"),i["_GS_Show_Shell_Size"]=ce("GS_Show_Shell_Size"),i["_GS_Insert_Triangular_Shell"]=ce("GS_Insert_Triangular_Shell"),i["_GS_Insert_Mesh"]=ce("GS_Insert_Mesh"),i["_GS_Edit_Mesh_Points"]=ce("GS_Edit_Mesh_Points"),i["_GS_Show_Mesh_Size"]=ce("GS_Show_Mesh_Size"),i["_GS_Show_Mesh"]=ce("GS_Show_Mesh"),i["_GS_Insert_DShell"]=ce("GS_Insert_DShell"),i["_GS_Edit_DShell"]=ce("GS_Edit_DShell"),i["_GS_Show_DShell_Size"]=ce("GS_Show_DShell_Size"),i["_GS_Show_DShell"]=ce("GS_Show_DShell"),i["_GS_Insert_Triangular_DShell"]=ce("GS_Insert_Triangular_DShell"),i["_GS_Insert_DMesh"]=ce("GS_Insert_DMesh"),i["_GS_Edit_DMesh_Points"]=ce("GS_Edit_DMesh_Points"),i["_GS_Show_DMesh_Size"]=ce("GS_Show_DMesh_Size"),i["_GS_Show_DMesh"]=ce("GS_Show_DMesh"),i["_GS_Insert_Light"]=ce("GS_Insert_Light"),i["_GS_Edit_Light"]=ce("GS_Edit_Light"),i["_GS_Show_Light"]=ce("GS_Show_Light"),i["_GS_Insert_Image_By_Key"]=ce("GS_Insert_Image_By_Key"),i["_GS_Insert_Image"]=ce("GS_Insert_Image"),i["_GS_Set_Image_Options"]=ce("GS_Set_Image_Options"),i["_GS_UnSet_One_Image_Option"]=ce("GS_UnSet_One_Image_Option"),i["_GS_Set_Image_Data"]=ce("GS_Set_Image_Data"),i["_GS_UnSet_Image_Data"]=ce("GS_UnSet_Image_Data"),i["_GS_Show_Image_Position"]=ce("GS_Show_Image_Position"),i["_GS_Show_Image_Size"]=ce("GS_Show_Image_Size"),i["_GS_Show_Image_Data_Size"]=ce("GS_Show_Image_Data_Size"),i["_GS_Show_Image_Data"]=ce("GS_Show_Image_Data"),i["_GS_Show_Image_Options"]=ce("GS_Show_Image_Options"),i["_GS_Show_One_Image_Option"]=ce("GS_Show_One_Image_Option"),i["_GS_Show_Image"]=ce("GS_Show_Image"),i["_GS_Insert_Cutting_Planes"]=ce("GS_Insert_Cutting_Planes"),i["_GS_Edit_Cutting_Planes"]=ce("GS_Edit_Cutting_Planes"),i["_GS_Show_Cutting_Planes"]=ce("GS_Show_Cutting_Planes"),i["_GS_Image_Exists"]=ce("GS_Image_Exists"),i["_GS_Set_Geometry_Color"]=ce("GS_Set_Geometry_Color"),i["_GS_Set_Geometry_Color_By_Value"]=ce("GS_Set_Geometry_Color_By_Value"),i["_GS_Show_Geometry_Color"]=ce("GS_Show_Geometry_Color"),i["_GS_Show_Geometry_Color_Type"]=ce("GS_Show_Geometry_Color_Type"),i["_GS_Show_Geometry_Color_By_Value"]=ce("GS_Show_Geometry_Color_By_Value"),i["_GS_UnSet_Geometry_Color"]=ce("GS_UnSet_Geometry_Color"),i["_GS_Show_Geometry_Vertices_Position_By_Indexes"]=ce("GS_Show_Geometry_Vertices_Position_By_Indexes"),i["_GS_Show_Geometry_Element_Type"]=ce("GS_Show_Geometry_Element_Type"),i["_GS_Set_Geometry_Texture_Coords"]=ce("GS_Set_Geometry_Texture_Coords"),i["_GS_Show_Geometry_Texture_Coords"]=ce("GS_Show_Geometry_Texture_Coords"),i["_GS_UnSet_Geometry_Texture_Coords"]=ce("GS_UnSet_Geometry_Texture_Coords"),i["_GS_Set_Geometry_Normals"]=ce("GS_Set_Geometry_Normals"),i["_GS_Show_Geometry_Normals"]=ce("GS_Show_Geometry_Normals"),i["_GS_UnSet_Geometry_Normals"]=ce("GS_UnSet_Geometry_Normals"),i["_GS_Compute_Geometry_Normals"]=ce("GS_Compute_Geometry_Normals"),i["_GS_Set_Geometry_Tangents"]=ce("GS_Set_Geometry_Tangents"),i["_GS_Show_Geometry_Tangents"]=ce("GS_Show_Geometry_Tangents"),i["_GS_UnSet_Geometry_Tangents"]=ce("GS_UnSet_Geometry_Tangents"),i["_GS_Compute_Geometry_Buffers"]=ce("GS_Compute_Geometry_Buffers"),i["_GS_Compute_Geometry_Buffers_By_Key"]=ce("GS_Compute_Geometry_Buffers_By_Key"),i["_GS_Apply_ModellingMatrix"]=ce("GS_Apply_ModellingMatrix"),i["_GS_FLT_Matrix_Multiply_Point"]=ce("GS_FLT_Matrix_Multiply_Point"),i["_GS_Merge_Shell"]=ce("GS_Merge_Shell"),i["_GS_Insert_Vector_Text"]=ce("GS_Insert_Vector_Text"),i["_GS_Extrude_By_Shell_ComputeData"]=ce("GS_Extrude_By_Shell_ComputeData"),i["_GS_Triangulate_Polygon_Xy"]=ce("GS_Triangulate_Polygon_Xy"),i["_GS_Extrude_By_Shell"]=ce("GS_Extrude_By_Shell"),i["_GS_DExtrude_By_Shell"]=ce("GS_DExtrude_By_Shell"),i["_GS_DTriangulate_Polygon_Xy"]=ce("GS_DTriangulate_Polygon_Xy"),i["_GS_Rotate_By_Shell"]=ce("GS_Rotate_By_Shell"),i["_GS_DRotate_By_Shell"]=ce("GS_DRotate_By_Shell"),i["_GS_Sweep_By_Shell"]=ce("GS_Sweep_By_Shell"),i["_GS_FLT_Vector_Is_Zero"]=ce("GS_FLT_Vector_Is_Zero"),i["_GS_FLT_Vector_Normalize"]=ce("GS_FLT_Vector_Normalize"),i["_GS_FLT_Point_Subtract"]=ce("GS_FLT_Point_Subtract"),i["_GS_FLT_Vector_Is_Parallel"]=ce("GS_FLT_Vector_Is_Parallel"),i["_GS_FLT_Vector_Cross"]=ce("GS_FLT_Vector_Cross"),i["_GS_FLT_Point_Is_Same"]=ce("GS_FLT_Point_Is_Same"),i["_GS_FLT_Vector_Reverse"]=ce("GS_FLT_Vector_Reverse"),i["_GS_FLT_Vector_Angle"]=ce("GS_FLT_Vector_Angle"),i["_GS_DSweep_By_Shell"]=ce("GS_DSweep_By_Shell"),i["_GS_Vector_Is_Zero"]=ce("GS_Vector_Is_Zero"),i["_GS_Vector_Normalize"]=ce("GS_Vector_Normalize"),i["_GS_Point_Subtract"]=ce("GS_Point_Subtract"),i["_GS_Vector_Is_Parallel"]=ce("GS_Vector_Is_Parallel"),i["_GS_Vector_Cross"]=ce("GS_Vector_Cross"),i["_GS_Matrix_Multiply_Point"]=ce("GS_Matrix_Multiply_Point"),i["_GS_Point_Is_Same"]=ce("GS_Point_Is_Same"),i["_GS_Vector_Reverse"]=ce("GS_Vector_Reverse"),i["_GS_Vector_Angle"]=ce("GS_Vector_Angle"),i["_GS_Compute_Geometry_Tessellate_Data"]=ce("GS_Compute_Geometry_Tessellate_Data"),i["_GS_Show_Geometry_Tessellate_Data_Count"]=ce("GS_Show_Geometry_Tessellate_Data_Count"),i["_GS_Show_Geometry_Tessellate_Data"]=ce("GS_Show_Geometry_Tessellate_Data"),i["_GS_Clear_Geometry_Tessellate_Data"]=ce("GS_Clear_Geometry_Tessellate_Data"),i["_GS_Insert_Parametric_Geometries"]=ce("GS_Insert_Parametric_Geometries"),i["_GS_Show_Parametric_Geometries"]=ce("GS_Show_Parametric_Geometries"),i["_GS_Show_Parametric_Geometries_Counts"]=ce("GS_Show_Parametric_Geometries_Counts"),i["_GS_Insert_Parametric_Geometry"]=ce("GS_Insert_Parametric_Geometry"),i["_GS_Boolean_Subtract"]=ce("GS_Boolean_Subtract"),i["_GS_Insert_Negative_Parametric_Geometries"]=ce("GS_Insert_Negative_Parametric_Geometries"),i["_GS_Insert_Negative_Parametric_Geometry"]=ce("GS_Insert_Negative_Parametric_Geometry"),i["_GS_Delete_Negative_Parametric_Geometry"]=ce("GS_Delete_Negative_Parametric_Geometry"),i["_GS_Edit_Parametric_Geometry"]=ce("GS_Edit_Parametric_Geometry"),i["_GS_Edit_Parametric_Geometry_IndexInverse"]=ce("GS_Edit_Parametric_Geometry_IndexInverse"),i["_GS_Edit_Negative_Parametric_Geometry"]=ce("GS_Edit_Negative_Parametric_Geometry"),i["_GS_Show_Parametric_Geometry"]=ce("GS_Show_Parametric_Geometry"),i["_GS_Project_Point_To_Line"]=ce("GS_Project_Point_To_Line"),i["_GS_Point_Add"]=ce("GS_Point_Add"),i["_GS_Compute_Parametric_Geometry"]=ce("GS_Compute_Parametric_Geometry"),i["_GS_Resize_By_Key"]=ce("GS_Resize_By_Key"),i["_GS_Show_Key_Type"]=ce("GS_Show_Key_Type"),i["_GS_Is_Valid_Key"]=ce("GS_Is_Valid_Key"),i["_GS_Show_Owner_By_Key"]=ce("GS_Show_Owner_By_Key"),i["_GS_Open_Segment_By_Key"]=ce("GS_Open_Segment_By_Key"),i["_GS_Add_Segment_By_Key"]=ce("GS_Add_Segment_By_Key"),i["_GS_Clear_Attributes"]=ce("GS_Clear_Attributes"),i["_GS_Clear_Attributes_By_Key"]=ce("GS_Clear_Attributes_By_Key"),i["_GS_Clear_Includes"]=ce("GS_Clear_Includes"),i["_GS_Clear_Includes_By_Key"]=ce("GS_Clear_Includes_By_Key"),i["_GS_Clear_Styles"]=ce("GS_Clear_Styles"),i["_GS_Clear_Styles_By_Key"]=ce("GS_Clear_Styles_By_Key"),i["_GS_Clear_Subsegments"]=ce("GS_Clear_Subsegments"),i["_GS_Clear_Subsegments_By_Key"]=ce("GS_Clear_Subsegments_By_Key"),i["_GS_Clear_Data"]=ce("GS_Clear_Data"),i["_GS_Clear_Data_By_Key"]=ce("GS_Clear_Data_By_Key"),i["_GS_Clear_All"]=ce("GS_Clear_All"),i["_GS_Clear_All_By_Key"]=ce("GS_Clear_All_By_Key"),i["_GS_Delete_By_Key"]=ce("GS_Delete_By_Key"),i["_GS_Clear_Geometry"]=ce("GS_Clear_Geometry"),i["_GS_Clear_Geometry_By_Key"]=ce("GS_Clear_Geometry_By_Key"),i["_GS_Include_Segment_By_Key"]=ce("GS_Include_Segment_By_Key"),i["_GS_Conditional_Include_By_Key"]=ce("GS_Conditional_Include_By_Key"),i["_GS_Style_Segment_By_Key"]=ce("GS_Style_Segment_By_Key"),i["_GS_Conditional_Style_By_Key"]=ce("GS_Conditional_Style_By_Key"),i["_GS_Show_Subsegment_Count"]=ce("GS_Show_Subsegment_Count"),i["_GS_Show_Subsegment"]=ce("GS_Show_Subsegment"),i["_GS_Show_All_Subsegment_Count"]=ce("GS_Show_All_Subsegment_Count"),i["_GS_Show_Subsegment_List"]=ce("GS_Show_Subsegment_List"),i["_GS_Show_All_Subsegment_List"]=ce("GS_Show_All_Subsegment_List"),i["_GS_Show_Segment_Name"]=ce("GS_Show_Segment_Name"),i["_GS_Show_Segment_Path"]=ce("GS_Show_Segment_Path"),i["_GS_Show_Attribute_Count"]=ce("GS_Show_Attribute_Count"),i["_GS_Show_Attribute_List"]=ce("GS_Show_Attribute_List"),i["_GS_Show_Attrubute"]=ce("GS_Show_Attrubute"),i["_GS_Show_Geometry_Count"]=ce("GS_Show_Geometry_Count"),i["_GS_Show_Geometry_List"]=ce("GS_Show_Geometry_List"),i["_GS_Show_Geometry"]=ce("GS_Show_Geometry"),i["_GS_Show_Include_Count"]=ce("GS_Show_Include_Count"),i["_GS_Show_Include_List"]=ce("GS_Show_Include_List"),i["_GS_Show_Include"]=ce("GS_Show_Include"),i["_GS_Show_Include_Segment"]=ce("GS_Show_Include_Segment"),i["_GS_Show_Included_Count"]=ce("GS_Show_Included_Count"),i["_GS_Show_Included_List"]=ce("GS_Show_Included_List"),i["_GS_Show_Style_Count"]=ce("GS_Show_Style_Count"),i["_GS_Show_Style_List"]=ce("GS_Show_Style_List"),i["_GS_Show_Style"]=ce("GS_Show_Style"),i["_GS_Show_Style_Segment"]=ce("GS_Show_Style_Segment"),i["_GS_Show_Styled_Count"]=ce("GS_Show_Styled_Count"),i["_GS_Show_Styled_List"]=ce("GS_Show_Styled_List"),i["_GS_Segment_Exists"]=ce("GS_Segment_Exists"),i["_GS_Rename_Segment"]=ce("GS_Rename_Segment"),i["_GS_Rename_Segment_By_Key"]=ce("GS_Rename_Segment_By_Key"),i["_GS_Move_Key"]=ce("GS_Move_Key"),i["_GS_Move_Key_By_Key"]=ce("GS_Move_Key_By_Key"),i["_GS_Set_Key_Index"]=ce("GS_Set_Key_Index"),i["_GS_Show_Key_Index"]=ce("GS_Show_Key_Index"),i["_GS_Add_Property_Boolean"]=ce("GS_Add_Property_Boolean"),i["_GS_Add_Property_Integer"]=ce("GS_Add_Property_Integer"),i["_GS_Add_Property_Long"]=ce("GS_Add_Property_Long"),i["_GS_Add_Property_Double"]=ce("GS_Add_Property_Double"),i["_GS_Add_Property_Float"]=ce("GS_Add_Property_Float"),i["_GS_Add_Property_Double_By_Pointer"]=ce("GS_Add_Property_Double_By_Pointer"),i["_GS_Add_Property_String"]=ce("GS_Add_Property_String"),i["_GS_Add_Property_Json"]=ce("GS_Add_Property_Json"),i["_GS_Add_Property_Byte_Array"]=ce("GS_Add_Property_Byte_Array"),i["_GS_Show_Property_Type"]=ce("GS_Show_Property_Type"),i["_GS_Show_Property_Boolean"]=ce("GS_Show_Property_Boolean"),i["_GS_Show_Property_Integer"]=ce("GS_Show_Property_Integer"),i["_GS_Show_Property_Long"]=ce("GS_Show_Property_Long"),i["_GS_Show_Property_Double"]=ce("GS_Show_Property_Double"),i["_GS_Show_Property_Float"]=ce("GS_Show_Property_Float"),i["_GS_Show_Property_String_Length"]=ce("GS_Show_Property_String_Length"),i["_GS_Show_Property_String"]=ce("GS_Show_Property_String"),i["_GS_Show_Property_Byte_Array_Length"]=ce("GS_Show_Property_Byte_Array_Length"),i["_GS_Show_Property_Byte_Array"]=ce("GS_Show_Property_Byte_Array"),i["_GS_Property_Exists"]=ce("GS_Property_Exists"),i["_GS_Remove_Property"]=ce("GS_Remove_Property"),i["_GS_Clear_Properties"]=ce("GS_Clear_Properties"),i["_GS_Show_Property_Count"]=ce("GS_Show_Property_Count"),i["_GS_Show_Property_Keys"]=ce("GS_Show_Property_Keys"),i["_GS_Show_Key_By_Name"]=ce("GS_Show_Key_By_Name"),i["_GS_Open_Geometry"]=ce("GS_Open_Geometry"),i["_GS_Close_Geometry"]=ce("GS_Close_Geometry"),i["_GS_Compute_Path"]=ce("GS_Compute_Path"),i["_GS_Compute_Coordinates_By_Key"]=ce("GS_Compute_Coordinates_By_Key"),i["_GS_Compute_Coordinates_By_Path"]=ce("GS_Compute_Coordinates_By_Path"),i["_GS_DCompute_Coordinates_By_Key"]=ce("GS_DCompute_Coordinates_By_Key"),i["_GS_Compute_Boundingbox_By_Key"]=ce("GS_Compute_Boundingbox_By_Key"),i["_GS_Compute_Boundingbox_With_Visibility_By_Key"]=ce("GS_Compute_Boundingbox_With_Visibility_By_Key"),i["_GS_Compute_View_Boundingbox_By_Key"]=ce("GS_Compute_View_Boundingbox_By_Key"),i["_GS_Compute_View_Boundingbox_By_Keys"]=ce("GS_Compute_View_Boundingbox_By_Keys"),i["_GS_Compute_View_Boundingboxes_By_Keys"]=ce("GS_Compute_View_Boundingboxes_By_Keys"),i["_GS_Compute_Geometry_Boundingbox_By_Key"]=ce("GS_Compute_Geometry_Boundingbox_By_Key"),i["_GS_Compute_Segment_Boundingbox_By_Key"]=ce("GS_Compute_Segment_Boundingbox_By_Key"),i["_GS_Clear_Segment_Boundingbox_By_Key"]=ce("GS_Clear_Segment_Boundingbox_By_Key"),i["_GS_FLT_Matrix_Multiply_WPoint"]=ce("GS_FLT_Matrix_Multiply_WPoint"),i["_GS_FLT_Project_Point_To_Line"]=ce("GS_FLT_Project_Point_To_Line"),i["_GS_FLT_Distance_Point_Point"]=ce("GS_FLT_Distance_Point_Point"),i["_GS_Compute_Selection_By_Key"]=ce("GS_Compute_Selection_By_Key"),i["_GS_Compute_Selection_By_Area"]=ce("GS_Compute_Selection_By_Area"),i["_GS_FLT_Distance_Line_Line_With_Points"]=ce("GS_FLT_Distance_Line_Line_With_Points"),i["_GS_FLT_Intersection_Ray_Triangle"]=ce("GS_FLT_Intersection_Ray_Triangle"),i["_GS_FLT_Point_Add"]=ce("GS_FLT_Point_Add"),i["_GS_FLT_Vector_Divide"]=ce("GS_FLT_Vector_Divide"),i["_GS_FLT_Is_Intersecting_Triangle_Triangle_With_Type"]=ce("GS_FLT_Is_Intersecting_Triangle_Triangle_With_Type"),i["_GS_Compute_Collision_By_Keys"]=ce("GS_Compute_Collision_By_Keys"),i["_GS_Compute_Collision_By_Key"]=ce("GS_Compute_Collision_By_Key"),i["_GS_Show_Selection_Count"]=ce("GS_Show_Selection_Count"),i["_GS_Show_Selection_Element"]=ce("GS_Show_Selection_Element"),i["_GS_Show_Selection_Path"]=ce("GS_Show_Selection_Path"),i["_GS_Show_Selection_Path_By_Keys"]=ce("GS_Show_Selection_Path_By_Keys"),i["_GS_Show_Selection_Position"]=ce("GS_Show_Selection_Position"),i["_GS_Show_Selection_Position_By_Value"]=ce("GS_Show_Selection_Position_By_Value"),i["_GS_Show_Selection_Param"]=ce("GS_Show_Selection_Param"),i["_GS_Show_Selection_Indexes"]=ce("GS_Show_Selection_Indexes"),i["_GS_Show_Selection_Test_Info"]=ce("GS_Show_Selection_Test_Info"),i["_GS_Show_Collision_Count"]=ce("GS_Show_Collision_Count"),i["_GS_Show_Collision_Elements"]=ce("GS_Show_Collision_Elements"),i["_GS_Show_Collision_Paths"]=ce("GS_Show_Collision_Paths"),i["_GS_Show_Collision_Path_By_Keys"]=ce("GS_Show_Collision_Path_By_Keys"),i["_GS_Show_Collision_Position"]=ce("GS_Show_Collision_Position"),i["_GS_Show_Collision_Type"]=ce("GS_Show_Collision_Type"),i["_GS_Compute_Visible_By_Key"]=ce("GS_Compute_Visible_By_Key"),i["_GS_FLT_Is_Intersection_Ray_BBox"]=ce("GS_FLT_Is_Intersection_Ray_BBox"),i["_GS_Compute_Ray_Test"]=ce("GS_Compute_Ray_Test"),i["_GS_Compute_Geometry_Ray_Test"]=ce("GS_Compute_Geometry_Ray_Test"),i["_GS_Compute_Box_Test"]=ce("GS_Compute_Box_Test"),i["_GS_Vector_Module"]=ce("GS_Vector_Module"),i["_GS_Compute_Area"]=ce("GS_Compute_Area"),i["_GS_Compute_Polygon_Area"]=ce("GS_Compute_Polygon_Area"),i["_GS_Polygon_Normal"]=ce("GS_Polygon_Normal"),i["_GS_Compute_Volume"]=ce("GS_Compute_Volume"),i["_GS_Compute_Geometry_Distance"]=ce("GS_Compute_Geometry_Distance"),i["_GS_Is_Solid_Geometry"]=ce("GS_Is_Solid_Geometry"),i["_GS_Set_BoundingBox"]=ce("GS_Set_BoundingBox"),i["_GS_Show_BoundingBox"]=ce("GS_Show_BoundingBox"),i["_GS_Set_BoundingBox_By_Key"]=ce("GS_Set_BoundingBox_By_Key"),i["_GS_Show_BoundingBox_By_Key"]=ce("GS_Show_BoundingBox_By_Key"),i["_GS_Compute_Instances_Culling"]=ce("GS_Compute_Instances_Culling"),i["_GS_Load_Image"]=ce("GS_Load_Image"),i["_GS_Decompress_Data"]=ce("GS_Decompress_Data"),i["_GS_Compute_Spherical_Polynomial"]=ce("GS_Compute_Spherical_Polynomial"),i["_GS_Compute_One_Spherical_Harmonics"]=ce("GS_Compute_One_Spherical_Harmonics"),i["_GS_Boolean_Intersection_Graph"]=ce("GS_Boolean_Intersection_Graph"),i["_GS_Boolean_Intersect_Polyline_Polygon_Xy"]=ce("GS_Boolean_Intersect_Polyline_Polygon_Xy"),i["_GS_Boolean_Intersect_Polygon_Polygon_Xy"]=ce("GS_Boolean_Intersect_Polygon_Polygon_Xy"),i["_GS_Boolean_Intersect_Graph_Polygon_Xy"]=ce("GS_Boolean_Intersect_Graph_Polygon_Xy"),i["_GS_Boolean_Subtract_Polygon_Polygon_Xy"]=ce("GS_Boolean_Subtract_Polygon_Polygon_Xy"),i["_GS_Boolean_Cut_Polygon_Polygon_Xy"]=ce("GS_Boolean_Cut_Polygon_Polygon_Xy"),i["_GS_Intersection_Plane_Triangle"]=ce("GS_Intersection_Plane_Triangle"),i["_GS_Point_Is_Same_By_Index"]=ce("GS_Point_Is_Same_By_Index"),i["_GS_Point_Subtract_By_Index"]=ce("GS_Point_Subtract_By_Index"),i["_GS_Vector_Angle_With_Normal"]=ce("GS_Vector_Angle_With_Normal"),i["_GS_Intersection_LineSegment_LineSegment"]=ce("GS_Intersection_LineSegment_LineSegment"),i["_GS_Vector_Divide"]=ce("GS_Vector_Divide"),i["_GS_Is_Point_In_Polygon_Xy"]=ce("GS_Is_Point_In_Polygon_Xy"),i["_GS_Distance_Point_Point"]=ce("GS_Distance_Point_Point"),i["_GS_Is_Point_On_Polygon_Xy"]=ce("GS_Is_Point_On_Polygon_Xy"),i["_GS_Is_Point_In_LineSegment"]=ce("GS_Is_Point_In_LineSegment"),i["_GS_Project_Point_To_Plane"]=ce("GS_Project_Point_To_Plane"),i["_GS_Vector_Is_Same"]=ce("GS_Vector_Is_Same"),i["_GS_Project_Point_To_LineSegment"]=ce("GS_Project_Point_To_LineSegment"),i["_GS_Triangle_Normal"]=ce("GS_Triangle_Normal"),i["_GS_Distance_Point_LineSegment"]=ce("GS_Distance_Point_LineSegment"),i["_GS_BB_Is_Intersection"]=ce("GS_BB_Is_Intersection"),i["_GS_Intersection_Triangle_Triangle"]=ce("GS_Intersection_Triangle_Triangle"),i["_GS_Intersection_Ray_Triangles"]=ce("GS_Intersection_Ray_Triangles"),i["_GS_Is_Point_In_Plane"]=ce("GS_Is_Point_In_Plane"),i["_GS_Boolean_Cut"]=ce("GS_Boolean_Cut"),i["_GS_BB_Create_By_Points"]=ce("GS_BB_Create_By_Points"),i["_GS_Intersection_Plane_Triangle_With_Info"]=ce("GS_Intersection_Plane_Triangle_With_Info"),i["_GS_Matrix_Rotate"]=ce("GS_Matrix_Rotate"),i["_GS_Matrix_Inverse"]=ce("GS_Matrix_Inverse"),i["_GS_Point_QuickSort"]=ce("GS_Point_QuickSort"),i["_GS_DTriangulate_Polygon"]=ce("GS_DTriangulate_Polygon"),i["_GS_Compute_Subdivide_Curve_Count"]=ce("GS_Compute_Subdivide_Curve_Count"),i["_GS_Subdivide_Curve"]=ce("GS_Subdivide_Curve"),i["_GS_Delaunay_On_Triangle"]=ce("GS_Delaunay_On_Triangle"),i["_GS_Is_Point_In_Triangle"]=ce("GS_Is_Point_In_Triangle"),i["_GS_Delaunay_On_Triangle_By_Indexes"]=ce("GS_Delaunay_On_Triangle_By_Indexes"),i["_GS_Closest_Point"]=ce("GS_Closest_Point"),i["_GS_Constrained_Delaunay_On_Triangle"]=ce("GS_Constrained_Delaunay_On_Triangle"),i["_GS_Constrained_Delaunay_On_Triangle_By_Indexes"]=ce("GS_Constrained_Delaunay_On_Triangle_By_Indexes"),i["_GS_Compute_Triangles_Borders"]=ce("GS_Compute_Triangles_Borders"),i["_GS_Distance_Point"]=ce("GS_Distance_Point"),i["_GS_Planar_Polyline_Offset"]=ce("GS_Planar_Polyline_Offset"),i["_Internal_Is_Solid_Body"]=ce("Internal_Is_Solid_Body"),i["_GS_Is_Solid_Body"]=ce("GS_Is_Solid_Body"),i["_Internal_Has_Invalid_Triangles"]=ce("Internal_Has_Invalid_Triangles"),i["_GS_Create_Float_Triangles"]=ce("GS_Create_Float_Triangles"),i["_GS_Find_Neighbor_Triangle"]=ce("GS_Find_Neighbor_Triangle"),i["_GS_FLT_Compute_Ray_Test_Triangles_By_Projection"]=ce("GS_FLT_Compute_Ray_Test_Triangles_By_Projection"),i["_GS_Compute_Ray_Test_Triangles"]=ce("GS_Compute_Ray_Test_Triangles"),i["_GS_FLT_Compute_Distance_Triangles"]=ce("GS_FLT_Compute_Distance_Triangles"),i["_GS_FLT_Compute_Collision_Triangles"]=ce("GS_FLT_Compute_Collision_Triangles"),i["_Matrix_Det"]=ce("Matrix_Det"),i["_GS_FLT_Matrix_Inverse"]=ce("GS_FLT_Matrix_Inverse"),i["_GS_FLT_Matrix_Multiply"]=ce("GS_FLT_Matrix_Multiply"),i["_GS_FLT_Matrix_Clone"]=ce("GS_FLT_Matrix_Clone"),i["_GS_Matrix_Multiply"]=ce("GS_Matrix_Multiply"),i["_GS_Matrix_Clone"]=ce("GS_Matrix_Clone"),i["_GS_FLT_Vector_Module"]=ce("GS_FLT_Vector_Module"),i["_GS_FLT_Vector_Include_Angle"]=ce("GS_FLT_Vector_Include_Angle"),i["_GS_FLT_Vector_Dot"]=ce("GS_FLT_Vector_Dot"),i["_GS_FLT_Vector_Angle_With_Normal"]=ce("GS_FLT_Vector_Angle_With_Normal"),i["_GS_FLT_Vector_Is_Perpendicular"]=ce("GS_FLT_Vector_Is_Perpendicular"),i["_GS_FLT_Triangle_Normal"]=ce("GS_FLT_Triangle_Normal"),i["_GS_FLT_Polygon_Normal"]=ce("GS_FLT_Polygon_Normal"),i["_GS_FLT_Distance_Point"]=ce("GS_FLT_Distance_Point"),i["_GS_FLT_Distance_Point_Line"]=ce("GS_FLT_Distance_Point_Line"),i["_GS_FLT_Distance_Point_LineSegment"]=ce("GS_FLT_Distance_Point_LineSegment"),i["_GS_FLT_Distance_Line_LineSegment"]=ce("GS_FLT_Distance_Line_LineSegment"),i["_GS_FLT_Closest_Point"]=ce("GS_FLT_Closest_Point"),i["_GS_FLT_Distance_LineSegment_LineSegment"]=ce("GS_FLT_Distance_LineSegment_LineSegment"),i["_GS_FLT_Intersection_Line_LineSegment"]=ce("GS_FLT_Intersection_Line_LineSegment"),i["_GS_FLT_Distance_Point_Plane"]=ce("GS_FLT_Distance_Point_Plane"),i["_GS_FLT_Project_Point_To_Plane"]=ce("GS_FLT_Project_Point_To_Plane"),i["_GS_FLT_Project_Point_to_Triangle"]=ce("GS_FLT_Project_Point_to_Triangle"),i["_GS_FLT_Is_Point_In_LineSegment"]=ce("GS_FLT_Is_Point_In_LineSegment"),i["_GS_FLT_Is_Point_In_Triangle"]=ce("GS_FLT_Is_Point_In_Triangle"),i["_GS_FLT_Intersection_Line_Line"]=ce("GS_FLT_Intersection_Line_Line"),i["_GS_FLT_Intersection_LineSegment_LineSegment"]=ce("GS_FLT_Intersection_LineSegment_LineSegment"),i["_GS_FLT_Intersection_Line_Plane"]=ce("GS_FLT_Intersection_Line_Plane"),i["_GS_FLT_Intersection_Line_Triangle"]=ce("GS_FLT_Intersection_Line_Triangle"),i["_GS_FLT_Intersection_LineSegment_Triangle"]=ce("GS_FLT_Intersection_LineSegment_Triangle"),i["_GS_FLT_Intersection_LineSegment_Triangle_With_Type"]=ce("GS_FLT_Intersection_LineSegment_Triangle_With_Type"),i["_GS_FLT_Intersection_Ray_Triangle_With_Type"]=ce("GS_FLT_Intersection_Ray_Triangle_With_Type"),i["_GS_Vector_Multiply"]=ce("GS_Vector_Multiply"),i["_GS_Vector_Dot"]=ce("GS_Vector_Dot"),i["_GS_Vector_Include_Angle"]=ce("GS_Vector_Include_Angle"),i["_GS_Vector_Param"]=ce("GS_Vector_Param"),i["_GS_Vector_Is_Perpendicular"]=ce("GS_Vector_Is_Perpendicular"),i["_GS_Polygon_Normal_With_Indexes"]=ce("GS_Polygon_Normal_With_Indexes"),i["_GS_Distance_Point_Line"]=ce("GS_Distance_Point_Line"),i["_GS_Intersection_Line_LineSegment"]=ce("GS_Intersection_Line_LineSegment"),i["_GS_Intersection_Line_Plane"]=ce("GS_Intersection_Line_Plane"),i["_GS_Intersection_Line_Triangle"]=ce("GS_Intersection_Line_Triangle"),i["_GS_Intersection_Line_Triangle_Roughly"]=ce("GS_Intersection_Line_Triangle_Roughly"),i["_GS_Is_Intersecting_LineSegment_LineSegment"]=ce("GS_Is_Intersecting_LineSegment_LineSegment"),i["_GS_BB_Create_By_Indexed_Points"]=ce("GS_BB_Create_By_Indexed_Points"),i["_GS_Intersection_Ray_Triangle"]=ce("GS_Intersection_Ray_Triangle"),i["_GS_Is_Intersection_Ray_BBox"]=ce("GS_Is_Intersection_Ray_BBox"),ce("setTempRet0"),i["_fflush"]=ce("fflush")),zt=ce("__errno_location"),Wt=ce("setThrew"),Xt=function(){return(Xt=Ht["emscripten_stack_init"])()},qt=function(){return(qt=Ht["emscripten_stack_get_end"])()},Yt=ce("stackSave"),Jt=ce("stackRestore");ce("stackAlloc"),i["dynCall_jiji"]=ce("dynCall_jiji"),i["___start_em_js"]=1196488,i["___stop_em_js"]=1198173;function Zt(e,t,r,n,o){var i=Yt();try{Ot(e)(t,r,n,o)}catch(_){if(Jt(i),_!==_+0)throw _;Wt(1,0)}}function Qt(e,t,r){var n=Yt();try{return Ot(e)(t,r)}catch(o){if(Jt(n),o!==o+0)throw o;Wt(1,0)}}function $t(e,t,r,n,o){var i=Yt();try{return Ot(e)(t,r,n,o)}catch(_){if(Jt(i),_!==_+0)throw _;Wt(1,0)}}function er(e,t,r,n){var o=Yt();try{return Ot(e)(t,r,n)}catch(i){if(Jt(o),i!==i+0)throw i;Wt(1,0)}}function tr(e){var t=Yt();try{Ot(e)()}catch(r){if(Jt(t),r!==r+0)throw r;Wt(1,0)}}function rr(e,t,r){var n=Yt();try{Ot(e)(t,r)}catch(o){if(Jt(n),o!==o+0)throw o;Wt(1,0)}}function nr(e,t){var r=Yt();try{return Ot(e)(t)}catch(n){if(Jt(r),n!==n+0)throw n;Wt(1,0)}}function or(e,t){var r=Yt();try{Ot(e)(t)}catch(n){if(Jt(r),n!==n+0)throw n;Wt(1,0)}}i["UTF8ToString"]=Le,i["allocateUTF8"]=kt;var ir=["writeI53ToI64","writeI53ToI64Clamped","writeI53ToI64Signaling","writeI53ToU64Clamped","writeI53ToU64Signaling","readI53FromI64","readI53FromU64","convertI32PairToI53","convertU32PairToI53","isLeapYear","ydayFromDate","arraySum","addDays","inetPton4","inetNtop4","inetPton6","inetNtop6","readSockaddr","writeSockaddr","getHostByName","getCallstack","emscriptenLog","convertPCtoSourceLocation","runMainThreadEmAsm","jstoi_q","jstoi_s","listenOnce","autoResumeAudioContext","dynCallLegacy","getDynCaller","dynCall","handleException","runtimeKeepalivePush","runtimeKeepalivePop","callUserCallback","maybeExit","safeSetTimeout","asmjsMangle","handleAllocatorInit","HandleAllocator","getNativeTypeSize","STACK_SIZE","STACK_ALIGN","POINTER_SIZE","ASSERTIONS","getCFunc","ccall","cwrap","uleb128Encode","sigToWasmTypes","generateFuncType","convertJsFunctionToWasm","getEmptyTableSlot","updateTableMap","getFunctionAddress","addFunction","removeFunction","reallyNegative","unSign","strLen","reSign","formatString","intArrayToString","AsciiToString","UTF16ToString","stringToUTF16","lengthBytesUTF16","UTF32ToString","stringToUTF32","lengthBytesUTF32","stringToUTF8OnStack","writeArrayToMemory","registerKeyEventCallback","maybeCStringToJsString","findEventTarget","findCanvasEventTarget","getBoundingClientRect","fillMouseEventData","registerMouseEventCallback","registerWheelEventCallback","registerUiEventCallback","registerFocusEventCallback","fillDeviceOrientationEventData","registerDeviceOrientationEventCallback","fillDeviceMotionEventData","registerDeviceMotionEventCallback","screenOrientation","fillOrientationChangeEventData","registerOrientationChangeEventCallback","fillFullscreenChangeEventData","registerFullscreenChangeEventCallback","JSEvents_requestFullscreen","JSEvents_resizeCanvasForFullscreen","registerRestoreOldStyle","hideEverythingExceptGivenElement","restoreHiddenElements","setLetterbox","softFullscreenResizeWebGLRenderTarget","doRequestFullscreen","fillPointerlockChangeEventData","registerPointerlockChangeEventCallback","registerPointerlockErrorEventCallback","requestPointerLock","fillVisibilityChangeEventData","registerVisibilityChangeEventCallback","registerTouchEventCallback","fillGamepadEventData","registerGamepadEventCallback","registerBeforeUnloadEventCallback","fillBatteryEventData","battery","registerBatteryEventCallback","setCanvasElementSize","getCanvasElementSize","jsStackTrace","stackTrace","checkWasiClock","wasiRightsToMuslOFlags","wasiOFlagsToMuslOFlags","createDyncallWrapper","setImmediateWrapped","clearImmediateWrapped","polyfillSetImmediate","getPromise","makePromise","idsToPromises","makePromiseCallback","ExceptionInfo","findMatchingCatch","setMainLoop","getSocketFromFD","getSocketAddress","_setNetworkCallback","heapObjectForWebGLType","heapAccessShiftForWebGLHeap","webgl_enable_ANGLE_instanced_arrays","webgl_enable_OES_vertex_array_object","webgl_enable_WEBGL_draw_buffers","webgl_enable_WEBGL_multi_draw","emscriptenWebGLGet","computeUnpackAlignedImageSize","colorChannelsInGlTextureFormat","emscriptenWebGLGetTexPixelData","__glGenObject","emscriptenWebGLGetUniform","webglGetUniformLocation","webglPrepareUniformLocationsBeforeFirstUse","webglGetLeftBracePos","emscriptenWebGLGetVertexAttrib","__glGetActiveAttribOrUniform","writeGLArray","registerWebGlEventCallback","runAndAbortIfError","SDL_unicode","SDL_ttfContext","SDL_audio","GLFW_Window","ALLOC_NORMAL","ALLOC_STACK","allocate","writeStringToMemory","writeAsciiToMemory"];ir.forEach(we);var _r,ar=["run","addOnPreRun","addOnInit","addOnPreMain","addOnExit","addOnPostRun","addRunDependency","removeRunDependency","FS_createFolder","FS_createPath","FS_createDataFile","FS_createLazyFile","FS_createLink","FS_createDevice","FS_readFile","FS_unlink","out","err","callMain","abort","keepRuntimeAlive","wasmMemory","wasmTable","wasmExports","stackAlloc","stackSave","stackRestore","getTempRet0","setTempRet0","writeStackCookie","checkStackCookie","convertI32PairToI53Checked","ptrToString","zeroMemory","exitJS","getHeapMax","growMemory","ENV","MONTH_DAYS_REGULAR","MONTH_DAYS_LEAP","MONTH_DAYS_REGULAR_CUMULATIVE","MONTH_DAYS_LEAP_CUMULATIVE","ERRNO_CODES","ERRNO_MESSAGES","setErrNo","DNS","Protocols","Sockets","initRandomFill","randomFill","timers","warnOnce","UNWIND_CACHE","readEmAsmArgsArray","readEmAsmArgs","runEmAsmFunction","getExecutableName","asyncLoad","alignMemory","mmapAlloc","freeTableIndexes","functionsInTableMap","setValue","getValue","PATH","PATH_FS","UTF8Decoder","UTF8ArrayToString","stringToUTF8Array","stringToUTF8","lengthBytesUTF8","intArrayFromString","stringToAscii","UTF16Decoder","stringToNewUTF8","JSEvents","specialHTMLTargets","currentFullscreenStrategy","restoreOldWindowedStyle","demangle","demangleAll","ExitStatus","getEnvStrings","doReadv","doWritev","promiseMap","uncaughtExceptionCount","exceptionLast","exceptionCaught","Browser","wget","SYSCALLS","preloadPlugins","FS_createPreloadedFile","FS_modeStringToFlags","FS_getMode","FS_stdin_getChar_buffer","FS_stdin_getChar","FS","MEMFS","TTY","PIPEFS","SOCKFS","tempFixedLengthArray","miniTempWebGLFloatBuffers","miniTempWebGLIntBuffers","GL","emscripten_webgl_power_preferences","AL","GLUT","EGL","GLEW","IDBStore","SDL","SDL_gfx","GLFW","allocateUTF8OnStack"];function sr(){Xt(),x()}function lr(){function e(){_r||(_r=!0,i["calledRun"]=!0,B||(W(),i["onRuntimeInitialized"]&&i["onRuntimeInitialized"](),M(!i["_main"],'compiled without a main, but one is present. if you added it from JS, use Module["onRuntimeInitialized"]'),X()))}Z>0||(sr(),z(),Z>0||(i["setStatus"]?(i["setStatus"]("Running..."),setTimeout((function(){setTimeout((function(){i["setStatus"]("")}),1),e()}),1)):e(),R()))}function ur(){var e=v,t=E,r=!1;v=E=function(e){r=!0};try{Vt(0),["stdout","stderr"].forEach((function(e){var t=tt.analyzePath("/dev/"+e);if(t){var n=t.object,o=n.rdev,i=He.ttys[o];i&&i.output&&i.output.length&&(r=!0)}}))}catch(n){}v=e,E=t,r&&Ce("stdio streams had content in them that was not flushed. you should set EXIT_RUNTIME to 1 (see the Emscripten FAQ), or make sure to emit a newline when you printf etc.")}if(ar.forEach(ve),$=function e(){_r||lr(),_r||($=e)},i["preInit"]){"function"==typeof i["preInit"]&&(i["preInit"]=[i["preInit"]]);while(i["preInit"].length>0)i["preInit"].pop()()}lr(),self.Module=i},4383:function(e){"use strict";e.exports=require("fs")},4384:function(e){"use strict";e.exports=require("path")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.m=e,r.x=function(){var e=r.O(void 0,[353],(function(){return r(1331)}));return e=r.O(e),e},function(){var e=[];r.O=function(t,n,o,i){if(!n){var _=1/0;for(u=0;u<e.length;u++){n=e[u][0],o=e[u][1],i=e[u][2];for(var a=!0,s=0;s<n.length;s++)(!1&i||_>=i)&&Object.keys(r.O).every((function(e){return r.O[e](n[s])}))?n.splice(s--,1):(a=!1,i<_&&(_=i));if(a){e.splice(u--,1);var l=o();void 0!==l&&(t=l)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,o,i]}}(),function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(t,n){return r.f[n](e,t),t}),[]))}}(),function(){r.u=function(e){return"BimAirWorker.umd.min."+e+".js"}}(),function(){r.miniCssF=function(e){}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.p=""}(),function(){r.b=self.location+"";var e={331:1},t=function(t){var n=t[0],i=t[1],_=t[2];for(var a in i)r.o(i,a)&&(r.m[a]=i[a]);_&&_(r);while(n.length)e[n.pop()]=1;o(t)};r.f.i=function(t,n){e[t]||importScripts(r.p+r.u(t))};var n=("undefined"!==typeof self?self:this)["webpackChunkgs_bimair_platform_v3_0"]=("undefined"!==typeof self?self:this)["webpackChunkgs_bimair_platform_v3_0"]||[],o=n.push.bind(n);n.push=t}(),function(){var e=r.x;r.x=function(){return r.e(353).then(e)}}();var n=r.x();return n=n["default"],n}()}));