Update third-party libraries.
This commit is contained in:
parent
d013eefd45
commit
abd183cafc
@ -1,117 +1,117 @@
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(m){var p=0;return function(){return p<m.length?{done:!1,value:m[p++]}:{done:!0}}};$jscomp.arrayIterator=function(m){return{next:$jscomp.arrayIteratorImpl(m)}};$jscomp.makeIterator=function(m){var p="undefined"!=typeof Symbol&&Symbol.iterator&&m[Symbol.iterator];return p?p.call(m):$jscomp.arrayIterator(m)};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
|
||||
$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.getGlobal=function(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var p=0;p<m.length;++p){var l=m[p];if(l&&l.Math==Math)return l}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(m,p,l){if(m==Array.prototype||m==Object.prototype)return m;m[p]=l.value;return m};$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";
|
||||
var $jscomp$lookupPolyfilledValue=function(m,p){var l=$jscomp.propertyToPolyfillSymbol[p];if(null==l)return m[p];l=m[l];return void 0!==l?l:m[p]};$jscomp.polyfill=function(m,p,l,q){p&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(m,p,l,q):$jscomp.polyfillUnisolated(m,p,l,q))};
|
||||
$jscomp.polyfillUnisolated=function(m,p,l,q){l=$jscomp.global;m=m.split(".");for(q=0;q<m.length-1;q++){var k=m[q];if(!(k in l))return;l=l[k]}m=m[m.length-1];q=l[m];p=p(q);p!=q&&null!=p&&$jscomp.defineProperty(l,m,{configurable:!0,writable:!0,value:p})};
|
||||
$jscomp.polyfillIsolated=function(m,p,l,q){var k=m.split(".");m=1===k.length;q=k[0];q=!m&&q in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var A=0;A<k.length-1;A++){var g=k[A];if(!(g in q))return;q=q[g]}k=k[k.length-1];l=$jscomp.IS_SYMBOL_NATIVE&&"es6"===l?q[k]:null;p=p(l);null!=p&&(m?$jscomp.defineProperty($jscomp.polyfills,k,{configurable:!0,writable:!0,value:p}):p!==l&&(void 0===$jscomp.propertyToPolyfillSymbol[k]&&(l=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[k]=$jscomp.IS_SYMBOL_NATIVE?
|
||||
$jscomp.global.Symbol(k):$jscomp.POLYFILL_PREFIX+l+"$"+k),$jscomp.defineProperty(q,$jscomp.propertyToPolyfillSymbol[k],{configurable:!0,writable:!0,value:p})))};
|
||||
$jscomp.polyfill("Promise",function(m){function p(){this.batch_=null}function l(g){return g instanceof k?g:new k(function(n,u){n(g)})}if(m&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&"undefined"===typeof $jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return m;p.prototype.asyncExecute=function(g){if(null==this.batch_){this.batch_=[];var n=this;this.asyncExecuteFunction(function(){n.executeBatch_()})}this.batch_.push(g)};
|
||||
var q=$jscomp.global.setTimeout;p.prototype.asyncExecuteFunction=function(g){q(g,0)};p.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var g=this.batch_;this.batch_=[];for(var n=0;n<g.length;++n){var u=g[n];g[n]=null;try{u()}catch(z){this.asyncThrow_(z)}}}this.batch_=null};p.prototype.asyncThrow_=function(g){this.asyncExecuteFunction(function(){throw g;})};var k=function(g){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var n=this.createResolveAndReject_();
|
||||
try{g(n.resolve,n.reject)}catch(u){n.reject(u)}};k.prototype.createResolveAndReject_=function(){function g(z){return function(P){u||(u=!0,z.call(n,P))}}var n=this,u=!1;return{resolve:g(this.resolveTo_),reject:g(this.reject_)}};k.prototype.resolveTo_=function(g){if(g===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof k)this.settleSameAsPromise_(g);else{a:switch(typeof g){case "object":var n=null!=g;break a;case "function":n=!0;break a;default:n=!1}n?this.resolveToNonPromiseObj_(g):
|
||||
this.fulfill_(g)}};k.prototype.resolveToNonPromiseObj_=function(g){var n=void 0;try{n=g.then}catch(u){this.reject_(u);return}"function"==typeof n?this.settleSameAsThenable_(n,g):this.fulfill_(g)};k.prototype.reject_=function(g){this.settle_(2,g)};k.prototype.fulfill_=function(g){this.settle_(1,g)};k.prototype.settle_=function(g,n){if(0!=this.state_)throw Error("Cannot settle("+g+", "+n+"): Promise already settled in state"+this.state_);this.state_=g;this.result_=n;2===this.state_&&this.scheduleUnhandledRejectionCheck_();
|
||||
this.executeOnSettledCallbacks_()};k.prototype.scheduleUnhandledRejectionCheck_=function(){var g=this;q(function(){if(g.notifyUnhandledRejection_()){var n=$jscomp.global.console;"undefined"!==typeof n&&n.error(g.result_)}},1)};k.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var g=$jscomp.global.CustomEvent,n=$jscomp.global.Event,u=$jscomp.global.dispatchEvent;if("undefined"===typeof u)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):
|
||||
"function"===typeof n?g=new n("unhandledrejection",{cancelable:!0}):(g=$jscomp.global.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.result_;return u(g)};k.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var g=0;g<this.onSettledCallbacks_.length;++g)A.asyncExecute(this.onSettledCallbacks_[g]);this.onSettledCallbacks_=null}};var A=new p;k.prototype.settleSameAsPromise_=function(g){var n=this.createResolveAndReject_();
|
||||
g.callWhenSettled_(n.resolve,n.reject)};k.prototype.settleSameAsThenable_=function(g,n){var u=this.createResolveAndReject_();try{g.call(n,u.resolve,u.reject)}catch(z){u.reject(z)}};k.prototype.then=function(g,n){function u(V,W){return"function"==typeof V?function(v){try{z(V(v))}catch(x){P(x)}}:W}var z,P,aa=new k(function(V,W){z=V;P=W});this.callWhenSettled_(u(g,z),u(n,P));return aa};k.prototype.catch=function(g){return this.then(void 0,g)};k.prototype.callWhenSettled_=function(g,n){function u(){switch(z.state_){case 1:g(z.result_);
|
||||
break;case 2:n(z.result_);break;default:throw Error("Unexpected state: "+z.state_);}}var z=this;null==this.onSettledCallbacks_?A.asyncExecute(u):this.onSettledCallbacks_.push(u);this.isRejectionHandled_=!0};k.resolve=l;k.reject=function(g){return new k(function(n,u){u(g)})};k.race=function(g){return new k(function(n,u){for(var z=$jscomp.makeIterator(g),P=z.next();!P.done;P=z.next())l(P.value).callWhenSettled_(n,u)})};k.all=function(g){var n=$jscomp.makeIterator(g),u=n.next();return u.done?l([]):new k(function(z,
|
||||
P){function aa(v){return function(x){V[v]=x;W--;0==W&&z(V)}}var V=[],W=0;do V.push(void 0),W++,l(u.value).callWhenSettled_(aa(V.length-1),P),u=n.next();while(!u.done)})};return k},"es6","es3");
|
||||
$jscomp.polyfill("Array.prototype.copyWithin",function(m){function p(l){l=Number(l);return Infinity===l||-Infinity===l?l:l|0}return m?m:function(l,q,k){var A=this.length;l=p(l);q=p(q);k=void 0===k?A:p(k);l=0>l?Math.max(A+l,0):Math.min(l,A);q=0>q?Math.max(A+q,0):Math.min(q,A);k=0>k?Math.max(A+k,0):Math.min(k,A);if(l<q)for(;q<k;)q in this?this[l++]=this[q++]:(delete this[l++],q++);else for(k=Math.min(k,A+q-l),l+=k-q;k>q;)--k in this?this[--l]=this[k]:delete this[--l];return this}},"es6","es3");
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(m){var n=0;return function(){return n<m.length?{done:!1,value:m[n++]}:{done:!0}}};$jscomp.arrayIterator=function(m){return{next:$jscomp.arrayIteratorImpl(m)}};$jscomp.makeIterator=function(m){var n="undefined"!=typeof Symbol&&Symbol.iterator&&m[Symbol.iterator];return n?n.call(m):$jscomp.arrayIterator(m)};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
|
||||
$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.getGlobal=function(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var n=0;n<m.length;++n){var h=m[n];if(h&&h.Math==Math)return h}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(m,n,h){if(m==Array.prototype||m==Object.prototype)return m;m[n]=h.value;return m};$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";
|
||||
var $jscomp$lookupPolyfilledValue=function(m,n){var h=$jscomp.propertyToPolyfillSymbol[n];if(null==h)return m[n];h=m[h];return void 0!==h?h:m[n]};$jscomp.polyfill=function(m,n,h,q){n&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(m,n,h,q):$jscomp.polyfillUnisolated(m,n,h,q))};
|
||||
$jscomp.polyfillUnisolated=function(m,n,h,q){h=$jscomp.global;m=m.split(".");for(q=0;q<m.length-1;q++){var k=m[q];if(!(k in h))return;h=h[k]}m=m[m.length-1];q=h[m];n=n(q);n!=q&&null!=n&&$jscomp.defineProperty(h,m,{configurable:!0,writable:!0,value:n})};
|
||||
$jscomp.polyfillIsolated=function(m,n,h,q){var k=m.split(".");m=1===k.length;q=k[0];q=!m&&q in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var z=0;z<k.length-1;z++){var g=k[z];if(!(g in q))return;q=q[g]}k=k[k.length-1];h=$jscomp.IS_SYMBOL_NATIVE&&"es6"===h?q[k]:null;n=n(h);null!=n&&(m?$jscomp.defineProperty($jscomp.polyfills,k,{configurable:!0,writable:!0,value:n}):n!==h&&(void 0===$jscomp.propertyToPolyfillSymbol[k]&&(h=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[k]=$jscomp.IS_SYMBOL_NATIVE?
|
||||
$jscomp.global.Symbol(k):$jscomp.POLYFILL_PREFIX+h+"$"+k),$jscomp.defineProperty(q,$jscomp.propertyToPolyfillSymbol[k],{configurable:!0,writable:!0,value:n})))};
|
||||
$jscomp.polyfill("Promise",function(m){function n(){this.batch_=null}function h(g){return g instanceof k?g:new k(function(p,u){p(g)})}if(m&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&"undefined"===typeof $jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return m;n.prototype.asyncExecute=function(g){if(null==this.batch_){this.batch_=[];var p=this;this.asyncExecuteFunction(function(){p.executeBatch_()})}this.batch_.push(g)};
|
||||
var q=$jscomp.global.setTimeout;n.prototype.asyncExecuteFunction=function(g){q(g,0)};n.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var g=this.batch_;this.batch_=[];for(var p=0;p<g.length;++p){var u=g[p];g[p]=null;try{u()}catch(A){this.asyncThrow_(A)}}}this.batch_=null};n.prototype.asyncThrow_=function(g){this.asyncExecuteFunction(function(){throw g;})};var k=function(g){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var p=this.createResolveAndReject_();
|
||||
try{g(p.resolve,p.reject)}catch(u){p.reject(u)}};k.prototype.createResolveAndReject_=function(){function g(A){return function(E){u||(u=!0,A.call(p,E))}}var p=this,u=!1;return{resolve:g(this.resolveTo_),reject:g(this.reject_)}};k.prototype.resolveTo_=function(g){if(g===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof k)this.settleSameAsPromise_(g);else{a:switch(typeof g){case "object":var p=null!=g;break a;case "function":p=!0;break a;default:p=!1}p?this.resolveToNonPromiseObj_(g):
|
||||
this.fulfill_(g)}};k.prototype.resolveToNonPromiseObj_=function(g){var p=void 0;try{p=g.then}catch(u){this.reject_(u);return}"function"==typeof p?this.settleSameAsThenable_(p,g):this.fulfill_(g)};k.prototype.reject_=function(g){this.settle_(2,g)};k.prototype.fulfill_=function(g){this.settle_(1,g)};k.prototype.settle_=function(g,p){if(0!=this.state_)throw Error("Cannot settle("+g+", "+p+"): Promise already settled in state"+this.state_);this.state_=g;this.result_=p;2===this.state_&&this.scheduleUnhandledRejectionCheck_();
|
||||
this.executeOnSettledCallbacks_()};k.prototype.scheduleUnhandledRejectionCheck_=function(){var g=this;q(function(){if(g.notifyUnhandledRejection_()){var p=$jscomp.global.console;"undefined"!==typeof p&&p.error(g.result_)}},1)};k.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var g=$jscomp.global.CustomEvent,p=$jscomp.global.Event,u=$jscomp.global.dispatchEvent;if("undefined"===typeof u)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):
|
||||
"function"===typeof p?g=new p("unhandledrejection",{cancelable:!0}):(g=$jscomp.global.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.result_;return u(g)};k.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var g=0;g<this.onSettledCallbacks_.length;++g)z.asyncExecute(this.onSettledCallbacks_[g]);this.onSettledCallbacks_=null}};var z=new n;k.prototype.settleSameAsPromise_=function(g){var p=this.createResolveAndReject_();
|
||||
g.callWhenSettled_(p.resolve,p.reject)};k.prototype.settleSameAsThenable_=function(g,p){var u=this.createResolveAndReject_();try{g.call(p,u.resolve,u.reject)}catch(A){u.reject(A)}};k.prototype.then=function(g,p){function u(U,V){return"function"==typeof U?function(v){try{A(U(v))}catch(x){E(x)}}:V}var A,E,ea=new k(function(U,V){A=U;E=V});this.callWhenSettled_(u(g,A),u(p,E));return ea};k.prototype.catch=function(g){return this.then(void 0,g)};k.prototype.callWhenSettled_=function(g,p){function u(){switch(A.state_){case 1:g(A.result_);
|
||||
break;case 2:p(A.result_);break;default:throw Error("Unexpected state: "+A.state_);}}var A=this;null==this.onSettledCallbacks_?z.asyncExecute(u):this.onSettledCallbacks_.push(u);this.isRejectionHandled_=!0};k.resolve=h;k.reject=function(g){return new k(function(p,u){u(g)})};k.race=function(g){return new k(function(p,u){for(var A=$jscomp.makeIterator(g),E=A.next();!E.done;E=A.next())h(E.value).callWhenSettled_(p,u)})};k.all=function(g){var p=$jscomp.makeIterator(g),u=p.next();return u.done?h([]):new k(function(A,
|
||||
E){function ea(v){return function(x){U[v]=x;V--;0==V&&A(U)}}var U=[],V=0;do U.push(void 0),V++,h(u.value).callWhenSettled_(ea(U.length-1),E),u=p.next();while(!u.done)})};return k},"es6","es3");$jscomp.checkStringArgs=function(m,n,h){if(null==m)throw new TypeError("The 'this' value for String.prototype."+h+" must not be null or undefined");if(n instanceof RegExp)throw new TypeError("First argument to String.prototype."+h+" must not be a regular expression");return m+""};
|
||||
$jscomp.polyfill("String.prototype.startsWith",function(m){return m?m:function(n,h){var q=$jscomp.checkStringArgs(this,n,"startsWith");n+="";var k=q.length,z=n.length;h=Math.max(0,Math.min(h|0,q.length));for(var g=0;g<z&&h<k;)if(q[h++]!=n[g++])return!1;return g>=z}},"es6","es3");
|
||||
$jscomp.polyfill("Array.prototype.copyWithin",function(m){function n(h){h=Number(h);return Infinity===h||-Infinity===h?h:h|0}return m?m:function(h,q,k){var z=this.length;h=n(h);q=n(q);k=void 0===k?z:n(k);h=0>h?Math.max(z+h,0):Math.min(h,z);q=0>q?Math.max(z+q,0):Math.min(q,z);k=0>k?Math.max(z+k,0):Math.min(k,z);if(h<q)for(;q<k;)q in this?this[h++]=this[q++]:(delete this[h++],q++);else for(k=Math.min(k,z+q-h),h+=k-q;k>q;)--k in this?this[--h]=this[k]:delete this[--h];return this}},"es6","es3");
|
||||
$jscomp.typedArrayCopyWithin=function(m){return m?m:Array.prototype.copyWithin};$jscomp.polyfill("Int8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");
|
||||
$jscomp.polyfill("Uint16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float64Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");
|
||||
var DracoDecoderModule=function(){var m="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(m=m||__filename);return function(p){function l(e){return a.locateFile?a.locateFile(e,X):X+e}function q(e,b){e||n("Assertion failed: "+b)}function k(e,b,c){var d=b+c;for(c=b;e[c]&&!(c>=d);)++c;if(16<c-b&&e.subarray&&Da)return Da.decode(e.subarray(b,c));for(d="";b<c;){var f=e[b++];if(f&128){var t=e[b++]&63;if(192==(f&224))d+=String.fromCharCode((f&
|
||||
31)<<6|t);else{var Y=e[b++]&63;f=224==(f&240)?(f&15)<<12|t<<6|Y:(f&7)<<18|t<<12|Y<<6|e[b++]&63;65536>f?d+=String.fromCharCode(f):(f-=65536,d+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else d+=String.fromCharCode(f)}return d}function A(e,b){return e?k(ja,e,b):""}function g(e){Ea=e;a.HEAP8=ba=new Int8Array(e);a.HEAP16=new Int16Array(e);a.HEAP32=F=new Int32Array(e);a.HEAPU8=ja=new Uint8Array(e);a.HEAPU16=new Uint16Array(e);a.HEAPU32=new Uint32Array(e);a.HEAPF32=new Float32Array(e);a.HEAPF64=new Float64Array(e)}
|
||||
function n(e){if(a.onAbort)a.onAbort(e);e+="";ia(e);Fa=!0;e=new WebAssembly.RuntimeError("abort("+e+"). Build with -s ASSERTIONS=1 for more info.");sa(e);throw e;}function u(e,b){return String.prototype.startsWith?e.startsWith(b):0===e.indexOf(b)}function z(e){try{if(e==Q&&ka)return new Uint8Array(ka);if(oa)return oa(e);throw"both async and sync fetching of the wasm failed";}catch(b){n(b)}}function P(){if(!ka&&(pa||fa)){if("function"===typeof fetch&&!u(Q,"file://"))return fetch(Q,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+
|
||||
Q+"'";return e.arrayBuffer()}).catch(function(){return z(Q)});if(Ga)return new Promise(function(e,b){Ga(Q,function(c){e(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return z(Q)})}function aa(e){for(;0<e.length;){var b=e.shift();if("function"==typeof b)b(a);else{var c=b.func;"number"===typeof c?void 0===b.arg?ta.get(c)():ta.get(c)(b.arg):c(void 0===b.arg?null:b.arg)}}}function V(e){this.excPtr=e;this.ptr=e-D.SIZE;this.set_type=function(b){F[this.ptr+D.TYPE_OFFSET>>2]=b};this.get_type=
|
||||
function(){return F[this.ptr+D.TYPE_OFFSET>>2]};this.set_destructor=function(b){F[this.ptr+D.DESTRUCTOR_OFFSET>>2]=b};this.get_destructor=function(){return F[this.ptr+D.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(b){F[this.ptr+D.REFCOUNT_OFFSET>>2]=b};this.set_caught=function(b){ba[this.ptr+D.CAUGHT_OFFSET>>0]=b?1:0};this.get_caught=function(){return 0!=ba[this.ptr+D.CAUGHT_OFFSET>>0]};this.set_rethrown=function(b){ba[this.ptr+D.RETHROWN_OFFSET>>0]=b?1:0};this.get_rethrown=function(){return 0!=
|
||||
ba[this.ptr+D.RETHROWN_OFFSET>>0]};this.init=function(b,c){this.set_type(b);this.set_destructor(c);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){F[this.ptr+D.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var b=F[this.ptr+D.REFCOUNT_OFFSET>>2];F[this.ptr+D.REFCOUNT_OFFSET>>2]=b-1;return 1===b}}function W(e){function b(){if(!qa&&(qa=!0,a.calledRun=!0,!Fa)){Ha=!0;aa(Ia);aa(ua);Ja(a);if(a.onRuntimeInitialized)a.onRuntimeInitialized();if(a.postRun)for("function"==
|
||||
typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)Ka.unshift(a.postRun.shift());aa(Ka)}}if(!(0<ha)){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)La.unshift(a.preRun.shift());aa(La);0<ha||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1);b()},1)):b())}}function v(){}function x(e){return(e||v).__cache__}function S(e,b){var c=x(b),d=c[e];if(d)return d;d=Object.create((b||v).prototype);d.ptr=e;return c[e]=
|
||||
d}function da(e){if("string"===typeof e){for(var b=0,c=0;c<e.length;++c){var d=e.charCodeAt(c);55296<=d&&57343>=d&&(d=65536+((d&1023)<<10)|e.charCodeAt(++c)&1023);127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}b=Array(b+1);c=0;d=b.length;if(0<d){d=c+d-1;for(var f=0;f<e.length;++f){var t=e.charCodeAt(f);if(55296<=t&&57343>=t){var Y=e.charCodeAt(++f);t=65536+((t&1023)<<10)|Y&1023}if(127>=t){if(c>=d)break;b[c++]=t}else{if(2047>=t){if(c+1>=d)break;b[c++]=192|t>>6}else{if(65535>=t){if(c+2>=d)break;b[c++]=224|
|
||||
t>>12}else{if(c+3>=d)break;b[c++]=240|t>>18;b[c++]=128|t>>12&63}b[c++]=128|t>>6&63}b[c++]=128|t&63}}b[c]=0}e=r.alloc(b,ba);r.copy(b,ba,e);return e}return e}function va(e){if("object"===typeof e){var b=r.alloc(e,ba);r.copy(e,ba,b);return b}return e}function ca(){throw"cannot construct a VoidPtr, no constructor in IDL";}function T(){this.ptr=Ma();x(T)[this.ptr]=this}function R(){this.ptr=Na();x(R)[this.ptr]=this}function Z(){this.ptr=Oa();x(Z)[this.ptr]=this}function w(){this.ptr=Pa();x(w)[this.ptr]=
|
||||
this}function C(){this.ptr=Qa();x(C)[this.ptr]=this}function G(){this.ptr=Ra();x(G)[this.ptr]=this}function H(){this.ptr=Sa();x(H)[this.ptr]=this}function E(){this.ptr=Ta();x(E)[this.ptr]=this}function U(){this.ptr=Ua();x(U)[this.ptr]=this}function B(){throw"cannot construct a Status, no constructor in IDL";}function I(){this.ptr=Va();x(I)[this.ptr]=this}function J(){this.ptr=Wa();x(J)[this.ptr]=this}function K(){this.ptr=Xa();x(K)[this.ptr]=this}function L(){this.ptr=Ya();x(L)[this.ptr]=this}function M(){this.ptr=
|
||||
Za();x(M)[this.ptr]=this}function N(){this.ptr=$a();x(N)[this.ptr]=this}function O(){this.ptr=ab();x(O)[this.ptr]=this}function y(){this.ptr=bb();x(y)[this.ptr]=this}function h(){this.ptr=cb();x(h)[this.ptr]=this}p=p||{};var a="undefined"!==typeof p?p:{},Ja,sa;a.ready=new Promise(function(e,b){Ja=e;sa=b});var db=!1,eb=!1;a.onRuntimeInitialized=function(){db=!0;a.callRuntimeCallbacks(a.mainCallbacks);if(eb&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){eb=!0;
|
||||
if(db&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(e){if("string"!==typeof e)return!1;e=e.split(".");return 2>e.length||3<e.length?!1:1==e[0]&&0<=e[1]&&4>=e[1]?!0:0!=e[0]||10<e[1]?!1:!0};var la={},ea;for(ea in a)a.hasOwnProperty(ea)&&(la[ea]=a[ea]);var pa=!1,fa=!1,wa=!1,fb=!1;pa="object"===typeof window;fa="function"===typeof importScripts;wa="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node;fb=!pa&&!wa&&
|
||||
!fa;var X="",xa,ya;if(wa){X=fa?require("path").dirname(X)+"/":__dirname+"/";var za=function(e,b){xa||(xa=require("fs"));ya||(ya=require("path"));e=ya.normalize(e);return xa.readFileSync(e,b?null:"utf8")};var oa=function(e){e=za(e,!0);e.buffer||(e=new Uint8Array(e));q(e.buffer);return e};1<process.argv.length&&process.argv[1].replace(/\\/g,"/");process.argv.slice(2);a.inspect=function(){return"[Emscripten Module object]"}}else if(fb)"undefined"!=typeof read&&(za=function(e){return read(e)}),oa=function(e){if("function"===
|
||||
typeof readbuffer)return new Uint8Array(readbuffer(e));e=read(e,"binary");q("object"===typeof e);return e},"undefined"!==typeof print&&("undefined"===typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!==typeof printErr?printErr:print);else if(pa||fa){fa?X=self.location.href:"undefined"!==typeof document&&document.currentScript&&(X=document.currentScript.src);m&&(X=m);X=0!==X.indexOf("blob:")?X.substr(0,X.lastIndexOf("/")+1):"";za=function(e){var b=new XMLHttpRequest;
|
||||
b.open("GET",e,!1);b.send(null);return b.responseText};fa&&(oa=function(e){var b=new XMLHttpRequest;b.open("GET",e,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)});var Ga=function(e,b,c){var d=new XMLHttpRequest;d.open("GET",e,!0);d.responseType="arraybuffer";d.onload=function(){200==d.status||0==d.status&&d.response?b(d.response):c()};d.onerror=c;d.send(null)}}var Ad=a.print||console.log.bind(console),ia=a.printErr||console.warn.bind(console);for(ea in la)la.hasOwnProperty(ea)&&
|
||||
(a[ea]=la[ea]);la=null;var ka;a.wasmBinary&&(ka=a.wasmBinary);"object"!==typeof WebAssembly&&n("no native wasm support detected");var ra,Fa=!1,Da="undefined"!==typeof TextDecoder?new TextDecoder("utf8"):void 0,Ea,ba,ja,F,ta,La=[],Ia=[],ua=[],Ka=[],Ha=!1,ha=0,Aa=null,ma=null;a.preloadedImages={};a.preloadedAudios={};var Q="draco_decoder.wasm";u(Q,"data:application/octet-stream;base64,")||(Q=l(Q));var D={DESTRUCTOR_OFFSET:0,REFCOUNT_OFFSET:4,TYPE_OFFSET:8,CAUGHT_OFFSET:12,RETHROWN_OFFSET:13,SIZE:16},
|
||||
Bd=0,na={mappings:{},buffers:[null,[],[]],printChar:function(e,b){var c=na.buffers[e];0===b||10===b?((1===e?Ad:ia)(k(c,0)),c.length=0):c.push(b)},varargs:void 0,get:function(){na.varargs+=4;return F[na.varargs-4>>2]},getStr:function(e){return A(e)},get64:function(e,b){return e}},Cd={h:function(e){return gb(e+D.SIZE)+D.SIZE},g:function(e,b,c){(new V(e)).init(b,c);Bd++;throw e;},a:function(){n()},d:function(e,b,c){ja.copyWithin(e,b,b+c)},e:function(e){var b=ja.length;e>>>=0;if(2147483648<e)return!1;
|
||||
for(var c=1;4>=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,e+100663296);var f=Math,t=f.min;d=Math.max(e,d);0<d%65536&&(d+=65536-d%65536);f=t.call(f,2147483648,d);a:{try{ra.grow(f-Ea.byteLength+65535>>>16);g(ra.buffer);var Y=1;break a}catch(Ba){}Y=void 0}if(Y)return!0}return!1},f:function(e){return 0},c:function(e,b,c,d,f){},b:function(e,b,c,d){for(var f=0,t=0;t<c;t++){for(var Y=F[b+8*t>>2],Ba=F[b+(8*t+4)>>2],Ca=0;Ca<Ba;Ca++)na.printChar(e,ja[Y+Ca]);f+=Ba}F[d>>2]=f;return 0}};(function(){function e(f,t){a.asm=
|
||||
f.exports;ra=a.asm.i;g(ra.buffer);ta=a.asm.k;Ia.unshift(a.asm.j);ha--;a.monitorRunDependencies&&a.monitorRunDependencies(ha);0==ha&&(null!==Aa&&(clearInterval(Aa),Aa=null),ma&&(f=ma,ma=null,f()))}function b(f){e(f.instance)}function c(f){return P().then(function(t){return WebAssembly.instantiate(t,d)}).then(f,function(t){ia("failed to asynchronously prepare wasm: "+t);n(t)})}var d={a:Cd};ha++;a.monitorRunDependencies&&a.monitorRunDependencies(ha);if(a.instantiateWasm)try{return a.instantiateWasm(d,
|
||||
e)}catch(f){return ia("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return ka||"function"!==typeof WebAssembly.instantiateStreaming||u(Q,"data:application/octet-stream;base64,")||u(Q,"file://")||"function"!==typeof fetch?c(b):fetch(Q,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,d).then(b,function(t){ia("wasm streaming compile failed: "+t);ia("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(sa);return{}})();
|
||||
a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.j).apply(null,arguments)};var hb=a._emscripten_bind_VoidPtr___destroy___0=function(){return(hb=a._emscripten_bind_VoidPtr___destroy___0=a.asm.l).apply(null,arguments)},Ma=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(Ma=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=a.asm.m).apply(null,arguments)},ib=a._emscripten_bind_DecoderBuffer_Init_2=function(){return(ib=a._emscripten_bind_DecoderBuffer_Init_2=a.asm.n).apply(null,
|
||||
arguments)},jb=a._emscripten_bind_DecoderBuffer___destroy___0=function(){return(jb=a._emscripten_bind_DecoderBuffer___destroy___0=a.asm.o).apply(null,arguments)},Na=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=function(){return(Na=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=a.asm.p).apply(null,arguments)},kb=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(kb=a._emscripten_bind_AttributeTransformData_transform_type_0=a.asm.q).apply(null,
|
||||
arguments)},lb=a._emscripten_bind_AttributeTransformData___destroy___0=function(){return(lb=a._emscripten_bind_AttributeTransformData___destroy___0=a.asm.r).apply(null,arguments)},Oa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Oa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.s).apply(null,arguments)},mb=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(mb=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.t).apply(null,arguments)},
|
||||
Pa=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Pa=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.u).apply(null,arguments)},nb=a._emscripten_bind_PointAttribute_size_0=function(){return(nb=a._emscripten_bind_PointAttribute_size_0=a.asm.v).apply(null,arguments)},ob=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(ob=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=a.asm.w).apply(null,arguments)},pb=a._emscripten_bind_PointAttribute_attribute_type_0=
|
||||
function(){return(pb=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.x).apply(null,arguments)},qb=a._emscripten_bind_PointAttribute_data_type_0=function(){return(qb=a._emscripten_bind_PointAttribute_data_type_0=a.asm.y).apply(null,arguments)},rb=a._emscripten_bind_PointAttribute_num_components_0=function(){return(rb=a._emscripten_bind_PointAttribute_num_components_0=a.asm.z).apply(null,arguments)},sb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(sb=a._emscripten_bind_PointAttribute_normalized_0=
|
||||
a.asm.A).apply(null,arguments)},tb=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(tb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.B).apply(null,arguments)},ub=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(ub=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.C).apply(null,arguments)},vb=a._emscripten_bind_PointAttribute_unique_id_0=function(){return(vb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.D).apply(null,arguments)},wb=a._emscripten_bind_PointAttribute___destroy___0=
|
||||
function(){return(wb=a._emscripten_bind_PointAttribute___destroy___0=a.asm.E).apply(null,arguments)},Qa=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(Qa=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=a.asm.F).apply(null,arguments)},xb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(xb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=a.asm.G).apply(null,
|
||||
arguments)},yb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return(yb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=a.asm.H).apply(null,arguments)},zb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(zb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=a.asm.I).apply(null,arguments)},Ab=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(Ab=a._emscripten_bind_AttributeQuantizationTransform_range_0=
|
||||
a.asm.J).apply(null,arguments)},Bb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return(Bb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=a.asm.K).apply(null,arguments)},Ra=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(Ra=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=a.asm.L).apply(null,arguments)},Cb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=
|
||||
function(){return(Cb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=a.asm.M).apply(null,arguments)},Db=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(Db=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=a.asm.N).apply(null,arguments)},Eb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Eb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=a.asm.O).apply(null,arguments)},Sa=a._emscripten_bind_PointCloud_PointCloud_0=
|
||||
function(){return(Sa=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.P).apply(null,arguments)},Fb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(Fb=a._emscripten_bind_PointCloud_num_attributes_0=a.asm.Q).apply(null,arguments)},Gb=a._emscripten_bind_PointCloud_num_points_0=function(){return(Gb=a._emscripten_bind_PointCloud_num_points_0=a.asm.R).apply(null,arguments)},Hb=a._emscripten_bind_PointCloud___destroy___0=function(){return(Hb=a._emscripten_bind_PointCloud___destroy___0=a.asm.S).apply(null,
|
||||
arguments)},Ta=a._emscripten_bind_Mesh_Mesh_0=function(){return(Ta=a._emscripten_bind_Mesh_Mesh_0=a.asm.T).apply(null,arguments)},Ib=a._emscripten_bind_Mesh_num_faces_0=function(){return(Ib=a._emscripten_bind_Mesh_num_faces_0=a.asm.U).apply(null,arguments)},Jb=a._emscripten_bind_Mesh_num_attributes_0=function(){return(Jb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.V).apply(null,arguments)},Kb=a._emscripten_bind_Mesh_num_points_0=function(){return(Kb=a._emscripten_bind_Mesh_num_points_0=a.asm.W).apply(null,
|
||||
arguments)},Lb=a._emscripten_bind_Mesh___destroy___0=function(){return(Lb=a._emscripten_bind_Mesh___destroy___0=a.asm.X).apply(null,arguments)},Ua=a._emscripten_bind_Metadata_Metadata_0=function(){return(Ua=a._emscripten_bind_Metadata_Metadata_0=a.asm.Y).apply(null,arguments)},Mb=a._emscripten_bind_Metadata___destroy___0=function(){return(Mb=a._emscripten_bind_Metadata___destroy___0=a.asm.Z).apply(null,arguments)},Nb=a._emscripten_bind_Status_code_0=function(){return(Nb=a._emscripten_bind_Status_code_0=
|
||||
a.asm._).apply(null,arguments)},Ob=a._emscripten_bind_Status_ok_0=function(){return(Ob=a._emscripten_bind_Status_ok_0=a.asm.$).apply(null,arguments)},Pb=a._emscripten_bind_Status_error_msg_0=function(){return(Pb=a._emscripten_bind_Status_error_msg_0=a.asm.aa).apply(null,arguments)},Qb=a._emscripten_bind_Status___destroy___0=function(){return(Qb=a._emscripten_bind_Status___destroy___0=a.asm.ba).apply(null,arguments)},Va=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return(Va=
|
||||
a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=a.asm.ca).apply(null,arguments)},Rb=a._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(Rb=a._emscripten_bind_DracoFloat32Array_GetValue_1=a.asm.da).apply(null,arguments)},Sb=a._emscripten_bind_DracoFloat32Array_size_0=function(){return(Sb=a._emscripten_bind_DracoFloat32Array_size_0=a.asm.ea).apply(null,arguments)},Tb=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(Tb=a._emscripten_bind_DracoFloat32Array___destroy___0=
|
||||
a.asm.fa).apply(null,arguments)},Wa=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Wa=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=a.asm.ga).apply(null,arguments)},Ub=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(Ub=a._emscripten_bind_DracoInt8Array_GetValue_1=a.asm.ha).apply(null,arguments)},Vb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(Vb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.ia).apply(null,arguments)},Wb=a._emscripten_bind_DracoInt8Array___destroy___0=
|
||||
function(){return(Wb=a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.ja).apply(null,arguments)},Xa=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(Xa=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=a.asm.ka).apply(null,arguments)},Xb=a._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(Xb=a._emscripten_bind_DracoUInt8Array_GetValue_1=a.asm.la).apply(null,arguments)},Yb=a._emscripten_bind_DracoUInt8Array_size_0=function(){return(Yb=a._emscripten_bind_DracoUInt8Array_size_0=
|
||||
a.asm.ma).apply(null,arguments)},Zb=a._emscripten_bind_DracoUInt8Array___destroy___0=function(){return(Zb=a._emscripten_bind_DracoUInt8Array___destroy___0=a.asm.na).apply(null,arguments)},Ya=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(Ya=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=a.asm.oa).apply(null,arguments)},$b=a._emscripten_bind_DracoInt16Array_GetValue_1=function(){return($b=a._emscripten_bind_DracoInt16Array_GetValue_1=a.asm.pa).apply(null,arguments)},ac=
|
||||
a._emscripten_bind_DracoInt16Array_size_0=function(){return(ac=a._emscripten_bind_DracoInt16Array_size_0=a.asm.qa).apply(null,arguments)},bc=a._emscripten_bind_DracoInt16Array___destroy___0=function(){return(bc=a._emscripten_bind_DracoInt16Array___destroy___0=a.asm.ra).apply(null,arguments)},Za=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=function(){return(Za=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=a.asm.sa).apply(null,arguments)},cc=a._emscripten_bind_DracoUInt16Array_GetValue_1=
|
||||
function(){return(cc=a._emscripten_bind_DracoUInt16Array_GetValue_1=a.asm.ta).apply(null,arguments)},dc=a._emscripten_bind_DracoUInt16Array_size_0=function(){return(dc=a._emscripten_bind_DracoUInt16Array_size_0=a.asm.ua).apply(null,arguments)},ec=a._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(ec=a._emscripten_bind_DracoUInt16Array___destroy___0=a.asm.va).apply(null,arguments)},$a=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return($a=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=
|
||||
a.asm.wa).apply(null,arguments)},fc=a._emscripten_bind_DracoInt32Array_GetValue_1=function(){return(fc=a._emscripten_bind_DracoInt32Array_GetValue_1=a.asm.xa).apply(null,arguments)},gc=a._emscripten_bind_DracoInt32Array_size_0=function(){return(gc=a._emscripten_bind_DracoInt32Array_size_0=a.asm.ya).apply(null,arguments)},hc=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return(hc=a._emscripten_bind_DracoInt32Array___destroy___0=a.asm.za).apply(null,arguments)},ab=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=
|
||||
function(){return(ab=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=a.asm.Aa).apply(null,arguments)},ic=a._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return(ic=a._emscripten_bind_DracoUInt32Array_GetValue_1=a.asm.Ba).apply(null,arguments)},jc=a._emscripten_bind_DracoUInt32Array_size_0=function(){return(jc=a._emscripten_bind_DracoUInt32Array_size_0=a.asm.Ca).apply(null,arguments)},kc=a._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(kc=a._emscripten_bind_DracoUInt32Array___destroy___0=
|
||||
a.asm.Da).apply(null,arguments)},bb=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return(bb=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=a.asm.Ea).apply(null,arguments)},lc=a._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(lc=a._emscripten_bind_MetadataQuerier_HasEntry_2=a.asm.Fa).apply(null,arguments)},mc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(mc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=a.asm.Ga).apply(null,arguments)},nc=
|
||||
a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=function(){return(nc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=a.asm.Ha).apply(null,arguments)},oc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=function(){return(oc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=a.asm.Ia).apply(null,arguments)},pc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(pc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=a.asm.Ja).apply(null,arguments)},qc=a._emscripten_bind_MetadataQuerier_NumEntries_1=
|
||||
function(){return(qc=a._emscripten_bind_MetadataQuerier_NumEntries_1=a.asm.Ka).apply(null,arguments)},rc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(rc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=a.asm.La).apply(null,arguments)},sc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return(sc=a._emscripten_bind_MetadataQuerier___destroy___0=a.asm.Ma).apply(null,arguments)},cb=a._emscripten_bind_Decoder_Decoder_0=function(){return(cb=a._emscripten_bind_Decoder_Decoder_0=
|
||||
a.asm.Na).apply(null,arguments)},tc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(tc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=a.asm.Oa).apply(null,arguments)},uc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(uc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=a.asm.Pa).apply(null,arguments)},vc=a._emscripten_bind_Decoder_GetAttributeId_2=function(){return(vc=a._emscripten_bind_Decoder_GetAttributeId_2=a.asm.Qa).apply(null,arguments)},wc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=
|
||||
function(){return(wc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=a.asm.Ra).apply(null,arguments)},xc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(xc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=a.asm.Sa).apply(null,arguments)},yc=a._emscripten_bind_Decoder_GetAttribute_2=function(){return(yc=a._emscripten_bind_Decoder_GetAttribute_2=a.asm.Ta).apply(null,arguments)},zc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(zc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=
|
||||
a.asm.Ua).apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetMetadata_1=function(){return(Ac=a._emscripten_bind_Decoder_GetMetadata_1=a.asm.Va).apply(null,arguments)},Bc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(Bc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=a.asm.Wa).apply(null,arguments)},Cc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return(Cc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=a.asm.Xa).apply(null,arguments)},Dc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=
|
||||
function(){return(Dc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=a.asm.Ya).apply(null,arguments)},Ec=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(Ec=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=a.asm.Za).apply(null,arguments)},Fc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(Fc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=a.asm._a).apply(null,arguments)},Gc=a._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(Gc=
|
||||
a._emscripten_bind_Decoder_GetAttributeFloat_3=a.asm.$a).apply(null,arguments)},Hc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(Hc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=a.asm.ab).apply(null,arguments)},Ic=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(Ic=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=a.asm.bb).apply(null,arguments)},Jc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(Jc=
|
||||
a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=a.asm.cb).apply(null,arguments)},Kc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(Kc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=a.asm.db).apply(null,arguments)},Lc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(Lc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=a.asm.eb).apply(null,arguments)},Mc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=
|
||||
function(){return(Mc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=a.asm.fb).apply(null,arguments)},Nc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(Nc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=a.asm.gb).apply(null,arguments)},Oc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(Oc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=a.asm.hb).apply(null,arguments)},Pc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=
|
||||
function(){return(Pc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=a.asm.ib).apply(null,arguments)},Qc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(Qc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=a.asm.jb).apply(null,arguments)},Rc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(Rc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=a.asm.kb).apply(null,arguments)},Sc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=
|
||||
function(){return(Sc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=a.asm.lb).apply(null,arguments)},Tc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return(Tc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=a.asm.mb).apply(null,arguments)},Uc=a._emscripten_bind_Decoder___destroy___0=function(){return(Uc=a._emscripten_bind_Decoder___destroy___0=a.asm.nb).apply(null,arguments)},Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=
|
||||
a.asm.ob).apply(null,arguments)},Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=function(){return(Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=a.asm.pb).apply(null,arguments)},Xc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(Xc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=a.asm.qb).apply(null,arguments)},Yc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=
|
||||
function(){return(Yc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=a.asm.rb).apply(null,arguments)},Zc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(Zc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.sb).apply(null,arguments)},$c=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return($c=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.tb).apply(null,arguments)},ad=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=
|
||||
function(){return(ad=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.ub).apply(null,arguments)},bd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(bd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.vb).apply(null,arguments)},cd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(cd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.wb).apply(null,arguments)},dd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=
|
||||
function(){return(dd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=a.asm.xb).apply(null,arguments)},ed=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(ed=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.yb).apply(null,arguments)},fd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(fd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.zb).apply(null,arguments)},gd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=
|
||||
function(){return(gd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=a.asm.Ab).apply(null,arguments)},hd=a._emscripten_enum_draco_DataType_DT_INVALID=function(){return(hd=a._emscripten_enum_draco_DataType_DT_INVALID=a.asm.Bb).apply(null,arguments)},id=a._emscripten_enum_draco_DataType_DT_INT8=function(){return(id=a._emscripten_enum_draco_DataType_DT_INT8=a.asm.Cb).apply(null,arguments)},jd=a._emscripten_enum_draco_DataType_DT_UINT8=function(){return(jd=a._emscripten_enum_draco_DataType_DT_UINT8=
|
||||
a.asm.Db).apply(null,arguments)},kd=a._emscripten_enum_draco_DataType_DT_INT16=function(){return(kd=a._emscripten_enum_draco_DataType_DT_INT16=a.asm.Eb).apply(null,arguments)},ld=a._emscripten_enum_draco_DataType_DT_UINT16=function(){return(ld=a._emscripten_enum_draco_DataType_DT_UINT16=a.asm.Fb).apply(null,arguments)},md=a._emscripten_enum_draco_DataType_DT_INT32=function(){return(md=a._emscripten_enum_draco_DataType_DT_INT32=a.asm.Gb).apply(null,arguments)},nd=a._emscripten_enum_draco_DataType_DT_UINT32=
|
||||
function(){return(nd=a._emscripten_enum_draco_DataType_DT_UINT32=a.asm.Hb).apply(null,arguments)},od=a._emscripten_enum_draco_DataType_DT_INT64=function(){return(od=a._emscripten_enum_draco_DataType_DT_INT64=a.asm.Ib).apply(null,arguments)},pd=a._emscripten_enum_draco_DataType_DT_UINT64=function(){return(pd=a._emscripten_enum_draco_DataType_DT_UINT64=a.asm.Jb).apply(null,arguments)},qd=a._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(qd=a._emscripten_enum_draco_DataType_DT_FLOAT32=a.asm.Kb).apply(null,
|
||||
arguments)},rd=a._emscripten_enum_draco_DataType_DT_FLOAT64=function(){return(rd=a._emscripten_enum_draco_DataType_DT_FLOAT64=a.asm.Lb).apply(null,arguments)},sd=a._emscripten_enum_draco_DataType_DT_BOOL=function(){return(sd=a._emscripten_enum_draco_DataType_DT_BOOL=a.asm.Mb).apply(null,arguments)},td=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(td=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=a.asm.Nb).apply(null,arguments)},ud=a._emscripten_enum_draco_StatusCode_OK=function(){return(ud=
|
||||
a._emscripten_enum_draco_StatusCode_OK=a.asm.Ob).apply(null,arguments)},vd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(vd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=a.asm.Pb).apply(null,arguments)},wd=a._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(wd=a._emscripten_enum_draco_StatusCode_IO_ERROR=a.asm.Qb).apply(null,arguments)},xd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(xd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=
|
||||
a.asm.Rb).apply(null,arguments)},yd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(yd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=a.asm.Sb).apply(null,arguments)},zd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(zd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=a.asm.Tb).apply(null,arguments)};a._free=function(){return(a._free=a.asm.Ub).apply(null,arguments)};var gb=a._malloc=function(){return(gb=a._malloc=a.asm.Vb).apply(null,arguments)};
|
||||
a.callRuntimeCallbacks=aa;var qa;ma=function b(){qa||W();qa||(ma=b)};a.run=W;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0<a.preInit.length;)a.preInit.pop()();W();v.prototype=Object.create(v.prototype);v.prototype.constructor=v;v.prototype.__class__=v;v.__cache__={};a.WrapperObject=v;a.getCache=x;a.wrapPointer=S;a.castObject=function(b,c){return S(b.ptr,c)};a.NULL=S(0);a.destroy=function(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";
|
||||
b.__destroy__();delete x(b.__class__)[b.ptr]};a.compare=function(b,c){return b.ptr===c.ptr};a.getPointer=function(b){return b.ptr};a.getClass=function(b){return b.__class__};var r={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(r.needed){for(var b=0;b<r.temps.length;b++)a._free(r.temps[b]);r.temps.length=0;a._free(r.buffer);r.buffer=0;r.size+=r.needed;r.needed=0}r.buffer||(r.size+=128,r.buffer=a._malloc(r.size),q(r.buffer));r.pos=0},alloc:function(b,c){q(r.buffer);b=b.length*c.BYTES_PER_ELEMENT;
|
||||
b=b+7&-8;r.pos+b>=r.size?(q(0<b),r.needed+=b,c=a._malloc(b),r.temps.push(c)):(c=r.buffer+r.pos,r.pos+=b);return c},copy:function(b,c,d){d>>>=0;switch(c.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var f=0;f<b.length;f++)c[d+f]=b[f]}};ca.prototype=Object.create(v.prototype);ca.prototype.constructor=ca;ca.prototype.__class__=ca;ca.__cache__={};a.VoidPtr=ca;ca.prototype.__destroy__=ca.prototype.__destroy__=function(){hb(this.ptr)};T.prototype=Object.create(v.prototype);
|
||||
T.prototype.constructor=T;T.prototype.__class__=T;T.__cache__={};a.DecoderBuffer=T;T.prototype.Init=T.prototype.Init=function(b,c){var d=this.ptr;r.prepare();"object"==typeof b&&(b=va(b));c&&"object"===typeof c&&(c=c.ptr);ib(d,b,c)};T.prototype.__destroy__=T.prototype.__destroy__=function(){jb(this.ptr)};R.prototype=Object.create(v.prototype);R.prototype.constructor=R;R.prototype.__class__=R;R.__cache__={};a.AttributeTransformData=R;R.prototype.transform_type=R.prototype.transform_type=function(){return kb(this.ptr)};
|
||||
R.prototype.__destroy__=R.prototype.__destroy__=function(){lb(this.ptr)};Z.prototype=Object.create(v.prototype);Z.prototype.constructor=Z;Z.prototype.__class__=Z;Z.__cache__={};a.GeometryAttribute=Z;Z.prototype.__destroy__=Z.prototype.__destroy__=function(){mb(this.ptr)};w.prototype=Object.create(v.prototype);w.prototype.constructor=w;w.prototype.__class__=w;w.__cache__={};a.PointAttribute=w;w.prototype.size=w.prototype.size=function(){return nb(this.ptr)};w.prototype.GetAttributeTransformData=w.prototype.GetAttributeTransformData=
|
||||
function(){return S(ob(this.ptr),R)};w.prototype.attribute_type=w.prototype.attribute_type=function(){return pb(this.ptr)};w.prototype.data_type=w.prototype.data_type=function(){return qb(this.ptr)};w.prototype.num_components=w.prototype.num_components=function(){return rb(this.ptr)};w.prototype.normalized=w.prototype.normalized=function(){return!!sb(this.ptr)};w.prototype.byte_stride=w.prototype.byte_stride=function(){return tb(this.ptr)};w.prototype.byte_offset=w.prototype.byte_offset=function(){return ub(this.ptr)};
|
||||
w.prototype.unique_id=w.prototype.unique_id=function(){return vb(this.ptr)};w.prototype.__destroy__=w.prototype.__destroy__=function(){wb(this.ptr)};C.prototype=Object.create(v.prototype);C.prototype.constructor=C;C.prototype.__class__=C;C.__cache__={};a.AttributeQuantizationTransform=C;C.prototype.InitFromAttribute=C.prototype.InitFromAttribute=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return!!xb(c,b)};C.prototype.quantization_bits=C.prototype.quantization_bits=function(){return yb(this.ptr)};
|
||||
C.prototype.min_value=C.prototype.min_value=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return zb(c,b)};C.prototype.range=C.prototype.range=function(){return Ab(this.ptr)};C.prototype.__destroy__=C.prototype.__destroy__=function(){Bb(this.ptr)};G.prototype=Object.create(v.prototype);G.prototype.constructor=G;G.prototype.__class__=G;G.__cache__={};a.AttributeOctahedronTransform=G;G.prototype.InitFromAttribute=G.prototype.InitFromAttribute=function(b){var c=this.ptr;b&&"object"===typeof b&&
|
||||
(b=b.ptr);return!!Cb(c,b)};G.prototype.quantization_bits=G.prototype.quantization_bits=function(){return Db(this.ptr)};G.prototype.__destroy__=G.prototype.__destroy__=function(){Eb(this.ptr)};H.prototype=Object.create(v.prototype);H.prototype.constructor=H;H.prototype.__class__=H;H.__cache__={};a.PointCloud=H;H.prototype.num_attributes=H.prototype.num_attributes=function(){return Fb(this.ptr)};H.prototype.num_points=H.prototype.num_points=function(){return Gb(this.ptr)};H.prototype.__destroy__=H.prototype.__destroy__=
|
||||
function(){Hb(this.ptr)};E.prototype=Object.create(v.prototype);E.prototype.constructor=E;E.prototype.__class__=E;E.__cache__={};a.Mesh=E;E.prototype.num_faces=E.prototype.num_faces=function(){return Ib(this.ptr)};E.prototype.num_attributes=E.prototype.num_attributes=function(){return Jb(this.ptr)};E.prototype.num_points=E.prototype.num_points=function(){return Kb(this.ptr)};E.prototype.__destroy__=E.prototype.__destroy__=function(){Lb(this.ptr)};U.prototype=Object.create(v.prototype);U.prototype.constructor=
|
||||
U;U.prototype.__class__=U;U.__cache__={};a.Metadata=U;U.prototype.__destroy__=U.prototype.__destroy__=function(){Mb(this.ptr)};B.prototype=Object.create(v.prototype);B.prototype.constructor=B;B.prototype.__class__=B;B.__cache__={};a.Status=B;B.prototype.code=B.prototype.code=function(){return Nb(this.ptr)};B.prototype.ok=B.prototype.ok=function(){return!!Ob(this.ptr)};B.prototype.error_msg=B.prototype.error_msg=function(){return A(Pb(this.ptr))};B.prototype.__destroy__=B.prototype.__destroy__=function(){Qb(this.ptr)};
|
||||
I.prototype=Object.create(v.prototype);I.prototype.constructor=I;I.prototype.__class__=I;I.__cache__={};a.DracoFloat32Array=I;I.prototype.GetValue=I.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Rb(c,b)};I.prototype.size=I.prototype.size=function(){return Sb(this.ptr)};I.prototype.__destroy__=I.prototype.__destroy__=function(){Tb(this.ptr)};J.prototype=Object.create(v.prototype);J.prototype.constructor=J;J.prototype.__class__=J;J.__cache__={};a.DracoInt8Array=
|
||||
J;J.prototype.GetValue=J.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Ub(c,b)};J.prototype.size=J.prototype.size=function(){return Vb(this.ptr)};J.prototype.__destroy__=J.prototype.__destroy__=function(){Wb(this.ptr)};K.prototype=Object.create(v.prototype);K.prototype.constructor=K;K.prototype.__class__=K;K.__cache__={};a.DracoUInt8Array=K;K.prototype.GetValue=K.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Xb(c,b)};
|
||||
K.prototype.size=K.prototype.size=function(){return Yb(this.ptr)};K.prototype.__destroy__=K.prototype.__destroy__=function(){Zb(this.ptr)};L.prototype=Object.create(v.prototype);L.prototype.constructor=L;L.prototype.__class__=L;L.__cache__={};a.DracoInt16Array=L;L.prototype.GetValue=L.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return $b(c,b)};L.prototype.size=L.prototype.size=function(){return ac(this.ptr)};L.prototype.__destroy__=L.prototype.__destroy__=function(){bc(this.ptr)};
|
||||
M.prototype=Object.create(v.prototype);M.prototype.constructor=M;M.prototype.__class__=M;M.__cache__={};a.DracoUInt16Array=M;M.prototype.GetValue=M.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return cc(c,b)};M.prototype.size=M.prototype.size=function(){return dc(this.ptr)};M.prototype.__destroy__=M.prototype.__destroy__=function(){ec(this.ptr)};N.prototype=Object.create(v.prototype);N.prototype.constructor=N;N.prototype.__class__=N;N.__cache__={};a.DracoInt32Array=
|
||||
N;N.prototype.GetValue=N.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return fc(c,b)};N.prototype.size=N.prototype.size=function(){return gc(this.ptr)};N.prototype.__destroy__=N.prototype.__destroy__=function(){hc(this.ptr)};O.prototype=Object.create(v.prototype);O.prototype.constructor=O;O.prototype.__class__=O;O.__cache__={};a.DracoUInt32Array=O;O.prototype.GetValue=O.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return ic(c,b)};
|
||||
O.prototype.size=O.prototype.size=function(){return jc(this.ptr)};O.prototype.__destroy__=O.prototype.__destroy__=function(){kc(this.ptr)};y.prototype=Object.create(v.prototype);y.prototype.constructor=y;y.prototype.__class__=y;y.__cache__={};a.MetadataQuerier=y;y.prototype.HasEntry=y.prototype.HasEntry=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:da(c);return!!lc(d,b,c)};y.prototype.GetIntEntry=y.prototype.GetIntEntry=function(b,c){var d=
|
||||
this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:da(c);return mc(d,b,c)};y.prototype.GetIntEntryArray=y.prototype.GetIntEntryArray=function(b,c,d){var f=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:da(c);d&&"object"===typeof d&&(d=d.ptr);nc(f,b,c,d)};y.prototype.GetDoubleEntry=y.prototype.GetDoubleEntry=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:da(c);return oc(d,
|
||||
b,c)};y.prototype.GetStringEntry=y.prototype.GetStringEntry=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:da(c);return A(pc(d,b,c))};y.prototype.NumEntries=y.prototype.NumEntries=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return qc(c,b)};y.prototype.GetEntryName=y.prototype.GetEntryName=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return A(rc(d,b,c))};y.prototype.__destroy__=
|
||||
y.prototype.__destroy__=function(){sc(this.ptr)};h.prototype=Object.create(v.prototype);h.prototype.constructor=h;h.prototype.__class__=h;h.__cache__={};a.Decoder=h;h.prototype.DecodeArrayToPointCloud=h.prototype.DecodeArrayToPointCloud=function(b,c,d){var f=this.ptr;r.prepare();"object"==typeof b&&(b=va(b));c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return S(tc(f,b,c,d),B)};h.prototype.DecodeArrayToMesh=h.prototype.DecodeArrayToMesh=function(b,c,d){var f=this.ptr;r.prepare();
|
||||
"object"==typeof b&&(b=va(b));c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return S(uc(f,b,c,d),B)};h.prototype.GetAttributeId=h.prototype.GetAttributeId=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return vc(d,b,c)};h.prototype.GetAttributeIdByName=h.prototype.GetAttributeIdByName=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:da(c);return wc(d,b,c)};h.prototype.GetAttributeIdByMetadataEntry=
|
||||
h.prototype.GetAttributeIdByMetadataEntry=function(b,c,d){var f=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:da(c);d=d&&"object"===typeof d?d.ptr:da(d);return xc(f,b,c,d)};h.prototype.GetAttribute=h.prototype.GetAttribute=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return S(yc(d,b,c),w)};h.prototype.GetAttributeByUniqueId=h.prototype.GetAttributeByUniqueId=function(b,c){var d=this.ptr;b&&"object"===typeof b&&
|
||||
(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return S(zc(d,b,c),w)};h.prototype.GetMetadata=h.prototype.GetMetadata=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return S(Ac(c,b),U)};h.prototype.GetAttributeMetadata=h.prototype.GetAttributeMetadata=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return S(Bc(d,b,c),U)};h.prototype.GetFaceFromMesh=h.prototype.GetFaceFromMesh=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);
|
||||
c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Cc(f,b,c,d)};h.prototype.GetTriangleStripsFromMesh=h.prototype.GetTriangleStripsFromMesh=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return Dc(d,b,c)};h.prototype.GetTrianglesUInt16Array=h.prototype.GetTrianglesUInt16Array=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Ec(f,b,c,
|
||||
d)};h.prototype.GetTrianglesUInt32Array=h.prototype.GetTrianglesUInt32Array=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Fc(f,b,c,d)};h.prototype.GetAttributeFloat=h.prototype.GetAttributeFloat=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Gc(f,b,c,d)};h.prototype.GetAttributeFloatForAllPoints=h.prototype.GetAttributeFloatForAllPoints=
|
||||
function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Hc(f,b,c,d)};h.prototype.GetAttributeIntForAllPoints=h.prototype.GetAttributeIntForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Ic(f,b,c,d)};h.prototype.GetAttributeInt8ForAllPoints=h.prototype.GetAttributeInt8ForAllPoints=function(b,c,d){var f=this.ptr;
|
||||
b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Jc(f,b,c,d)};h.prototype.GetAttributeUInt8ForAllPoints=h.prototype.GetAttributeUInt8ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Kc(f,b,c,d)};h.prototype.GetAttributeInt16ForAllPoints=h.prototype.GetAttributeInt16ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=
|
||||
b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Lc(f,b,c,d)};h.prototype.GetAttributeUInt16ForAllPoints=h.prototype.GetAttributeUInt16ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Mc(f,b,c,d)};h.prototype.GetAttributeInt32ForAllPoints=h.prototype.GetAttributeInt32ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&
|
||||
(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Nc(f,b,c,d)};h.prototype.GetAttributeUInt32ForAllPoints=h.prototype.GetAttributeUInt32ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Oc(f,b,c,d)};h.prototype.GetAttributeDataArrayForAllPoints=h.prototype.GetAttributeDataArrayForAllPoints=function(b,c,d,f,t){var Y=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&
|
||||
"object"===typeof d&&(d=d.ptr);f&&"object"===typeof f&&(f=f.ptr);t&&"object"===typeof t&&(t=t.ptr);return!!Pc(Y,b,c,d,f,t)};h.prototype.SkipAttributeTransform=h.prototype.SkipAttributeTransform=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);Qc(c,b)};h.prototype.GetEncodedGeometryType_Deprecated=h.prototype.GetEncodedGeometryType_Deprecated=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Rc(c,b)};h.prototype.DecodeBufferToPointCloud=h.prototype.DecodeBufferToPointCloud=
|
||||
function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return S(Sc(d,b,c),B)};h.prototype.DecodeBufferToMesh=h.prototype.DecodeBufferToMesh=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return S(Tc(d,b,c),B)};h.prototype.__destroy__=h.prototype.__destroy__=function(){Uc(this.ptr)};(function(){function b(){a.ATTRIBUTE_INVALID_TRANSFORM=Vc();a.ATTRIBUTE_NO_TRANSFORM=Wc();a.ATTRIBUTE_QUANTIZATION_TRANSFORM=Xc();
|
||||
a.ATTRIBUTE_OCTAHEDRON_TRANSFORM=Yc();a.INVALID=Zc();a.POSITION=$c();a.NORMAL=ad();a.COLOR=bd();a.TEX_COORD=cd();a.GENERIC=dd();a.INVALID_GEOMETRY_TYPE=ed();a.POINT_CLOUD=fd();a.TRIANGULAR_MESH=gd();a.DT_INVALID=hd();a.DT_INT8=id();a.DT_UINT8=jd();a.DT_INT16=kd();a.DT_UINT16=ld();a.DT_INT32=md();a.DT_UINT32=nd();a.DT_INT64=od();a.DT_UINT64=pd();a.DT_FLOAT32=qd();a.DT_FLOAT64=rd();a.DT_BOOL=sd();a.DT_TYPES_COUNT=td();a.OK=ud();a.DRACO_ERROR=vd();a.IO_ERROR=wd();a.INVALID_PARAMETER=xd();a.UNSUPPORTED_VERSION=
|
||||
yd();a.UNKNOWN_VERSION=zd()}Ha?b():ua.unshift(b)})();a.mainCallbacks=ua;if("function"===typeof a.onModuleParsed)a.onModuleParsed();a.Decoder.prototype.GetEncodedGeometryType=function(b){if(b.__class__&&b.__class__===a.DecoderBuffer)return a.Decoder.prototype.GetEncodedGeometryType_Deprecated(b);if(8>b.byteLength)return a.INVALID_GEOMETRY_TYPE;switch(b[7]){case 0:return a.POINT_CLOUD;case 1:return a.TRIANGULAR_MESH;default:return a.INVALID_GEOMETRY_TYPE}};return p.ready}}();
|
||||
var DracoDecoderModule=function(){var m="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(m=m||__filename);return function(n){function h(e){return a.locateFile?a.locateFile(e,W):W+e}function q(e,b){e||p("Assertion failed: "+b)}function k(e,b,c){var d=b+c;for(c=b;e[c]&&!(c>=d);)++c;if(16<c-b&&e.subarray&&Aa)return Aa.decode(e.subarray(b,c));for(d="";b<c;){var f=e[b++];if(f&128){var t=e[b++]&63;if(192==(f&224))d+=String.fromCharCode((f&
|
||||
31)<<6|t);else{var X=e[b++]&63;f=224==(f&240)?(f&15)<<12|t<<6|X:(f&7)<<18|t<<12|X<<6|e[b++]&63;65536>f?d+=String.fromCharCode(f):(f-=65536,d+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else d+=String.fromCharCode(f)}return d}function z(e,b){return e?k(ja,e,b):""}function g(e){Ba=e;a.HEAP8=Z=new Int8Array(e);a.HEAP16=new Int16Array(e);a.HEAP32=F=new Int32Array(e);a.HEAPU8=ja=new Uint8Array(e);a.HEAPU16=new Uint16Array(e);a.HEAPU32=new Uint32Array(e);a.HEAPF32=new Float32Array(e);a.HEAPF64=new Float64Array(e)}
|
||||
function p(e){if(a.onAbort)a.onAbort(e);e="Aborted("+e+")";fa(e);Ca=!0;e=new WebAssembly.RuntimeError(e+". Build with -s ASSERTIONS=1 for more info.");sa(e);throw e;}function u(e){try{if(e==P&&ka)return new Uint8Array(ka);if(ta)return ta(e);throw"both async and sync fetching of the wasm failed";}catch(b){p(b)}}function A(){if(!ka&&(Da||la)){if("function"===typeof fetch&&!P.startsWith("file://"))return fetch(P,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+
|
||||
P+"'";return e.arrayBuffer()}).catch(function(){return u(P)});if(ua)return new Promise(function(e,b){ua(P,function(c){e(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return u(P)})}function E(e){for(;0<e.length;){var b=e.shift();if("function"==typeof b)b(a);else{var c=b.func;"number"===typeof c?void 0===b.arg?ea(c)():ea(c)(b.arg):c(void 0===b.arg?null:b.arg)}}}function ea(e){var b=pa[e];b||(e>=pa.length&&(pa.length=e+1),pa[e]=b=Ea.get(e));return b}function U(e){this.excPtr=e;this.ptr=
|
||||
e-16;this.set_type=function(b){F[this.ptr+4>>2]=b};this.get_type=function(){return F[this.ptr+4>>2]};this.set_destructor=function(b){F[this.ptr+8>>2]=b};this.get_destructor=function(){return F[this.ptr+8>>2]};this.set_refcount=function(b){F[this.ptr>>2]=b};this.set_caught=function(b){Z[this.ptr+12>>0]=b?1:0};this.get_caught=function(){return 0!=Z[this.ptr+12>>0]};this.set_rethrown=function(b){Z[this.ptr+13>>0]=b?1:0};this.get_rethrown=function(){return 0!=Z[this.ptr+13>>0]};this.init=function(b,c){this.set_type(b);
|
||||
this.set_destructor(c);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){F[this.ptr>>2]+=1};this.release_ref=function(){var b=F[this.ptr>>2];F[this.ptr>>2]=b-1;return 1===b}}function V(e){function b(){if(!qa&&(qa=!0,a.calledRun=!0,!Ca)){Fa=!0;E(va);Ga(a);if(a.onRuntimeInitialized)a.onRuntimeInitialized();if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)Ha.unshift(a.postRun.shift());E(Ha)}}if(!(0<da)){if(a.preRun)for("function"==
|
||||
typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)Ia.unshift(a.preRun.shift());E(Ia);0<da||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1);b()},1)):b())}}function v(){}function x(e){return(e||v).__cache__}function R(e,b){var c=x(b),d=c[e];if(d)return d;d=Object.create((b||v).prototype);d.ptr=e;return c[e]=d}function ba(e){if("string"===typeof e){for(var b=0,c=0;c<e.length;++c){var d=e.charCodeAt(c);55296<=d&&57343>=d&&(d=65536+((d&1023)<<
|
||||
10)|e.charCodeAt(++c)&1023);127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}b=Array(b+1);c=0;d=b.length;if(0<d){d=c+d-1;for(var f=0;f<e.length;++f){var t=e.charCodeAt(f);if(55296<=t&&57343>=t){var X=e.charCodeAt(++f);t=65536+((t&1023)<<10)|X&1023}if(127>=t){if(c>=d)break;b[c++]=t}else{if(2047>=t){if(c+1>=d)break;b[c++]=192|t>>6}else{if(65535>=t){if(c+2>=d)break;b[c++]=224|t>>12}else{if(c+3>=d)break;b[c++]=240|t>>18;b[c++]=128|t>>12&63}b[c++]=128|t>>6&63}b[c++]=128|t&63}}b[c]=0}e=r.alloc(b,Z);r.copy(b,Z,
|
||||
e);return e}return e}function wa(e){if("object"===typeof e){var b=r.alloc(e,Z);r.copy(e,Z,b);return b}return e}function aa(){throw"cannot construct a VoidPtr, no constructor in IDL";}function S(){this.ptr=Ja();x(S)[this.ptr]=this}function Q(){this.ptr=Ka();x(Q)[this.ptr]=this}function Y(){this.ptr=La();x(Y)[this.ptr]=this}function w(){this.ptr=Ma();x(w)[this.ptr]=this}function C(){this.ptr=Na();x(C)[this.ptr]=this}function G(){this.ptr=Oa();x(G)[this.ptr]=this}function H(){this.ptr=Pa();x(H)[this.ptr]=
|
||||
this}function D(){this.ptr=Qa();x(D)[this.ptr]=this}function T(){this.ptr=Ra();x(T)[this.ptr]=this}function B(){throw"cannot construct a Status, no constructor in IDL";}function I(){this.ptr=Sa();x(I)[this.ptr]=this}function J(){this.ptr=Ta();x(J)[this.ptr]=this}function K(){this.ptr=Ua();x(K)[this.ptr]=this}function L(){this.ptr=Va();x(L)[this.ptr]=this}function M(){this.ptr=Wa();x(M)[this.ptr]=this}function N(){this.ptr=Xa();x(N)[this.ptr]=this}function O(){this.ptr=Ya();x(O)[this.ptr]=this}function y(){this.ptr=
|
||||
Za();x(y)[this.ptr]=this}function l(){this.ptr=$a();x(l)[this.ptr]=this}n=n||{};var a="undefined"!==typeof n?n:{},Ga,sa;a.ready=new Promise(function(e,b){Ga=e;sa=b});var ab=!1,bb=!1;a.onRuntimeInitialized=function(){ab=!0;if(bb&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){bb=!0;if(ab&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(e){if("string"!==typeof e)return!1;e=e.split(".");return 2>e.length||3<e.length?!1:1==
|
||||
e[0]&&0<=e[1]&&5>=e[1]?!0:0!=e[0]||10<e[1]?!1:!0};var ma={},ca;for(ca in a)a.hasOwnProperty(ca)&&(ma[ca]=a[ca]);var Da="object"===typeof window,la="function"===typeof importScripts,W="",ha,ia;if("object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node){W=la?require("path").dirname(W)+"/":__dirname+"/";var cb=function(e,b){ha||(ha=require("fs"));ia||(ia=require("path"));e=ia.normalize(e);return ha.readFileSync(e,b?null:"utf8")};var ta=function(e){e=cb(e,
|
||||
!0);e.buffer||(e=new Uint8Array(e));q(e.buffer);return e};var ua=function(e,b,c){ha||(ha=require("fs"));ia||(ia=require("path"));e=ia.normalize(e);ha.readFile(e,function(d,f){d?c(d):b(f.buffer)})};1<process.argv.length&&process.argv[1].replace(/\\/g,"/");process.argv.slice(2);a.inspect=function(){return"[Emscripten Module object]"}}else if(Da||la)la?W=self.location.href:"undefined"!==typeof document&&document.currentScript&&(W=document.currentScript.src),m&&(W=m),W=0!==W.indexOf("blob:")?W.substr(0,
|
||||
W.replace(/[?#].*/,"").lastIndexOf("/")+1):"",cb=function(e){var b=new XMLHttpRequest;b.open("GET",e,!1);b.send(null);return b.responseText},la&&(ta=function(e){var b=new XMLHttpRequest;b.open("GET",e,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)}),ua=function(e,b,c){var d=new XMLHttpRequest;d.open("GET",e,!0);d.responseType="arraybuffer";d.onload=function(){200==d.status||0==d.status&&d.response?b(d.response):c()};d.onerror=c;d.send(null)};var xd=a.print||console.log.bind(console),
|
||||
fa=a.printErr||console.warn.bind(console);for(ca in ma)ma.hasOwnProperty(ca)&&(a[ca]=ma[ca]);ma=null;var ka;a.wasmBinary&&(ka=a.wasmBinary);"object"!==typeof WebAssembly&&p("no native wasm support detected");var ra,Ca=!1,Aa="undefined"!==typeof TextDecoder?new TextDecoder("utf8"):void 0,Ba,Z,ja,F,Ea,Ia=[],va=[],Ha=[],Fa=!1,da=0,xa=null,na=null;a.preloadedImages={};a.preloadedAudios={};var P="draco_decoder.wasm";P.startsWith("data:application/octet-stream;base64,")||(P=h(P));var pa=[],yd=0,oa={mappings:{},
|
||||
buffers:[null,[],[]],printChar:function(e,b){var c=oa.buffers[e];0===b||10===b?((1===e?xd:fa)(k(c,0)),c.length=0):c.push(b)},varargs:void 0,get:function(){oa.varargs+=4;return F[oa.varargs-4>>2]},getStr:function(e){return z(e)},get64:function(e,b){return e}},zd={h:function(e){return db(e+16)+16},g:function(e,b,c){(new U(e)).init(b,c);yd++;throw e;},a:function(){p("")},d:function(e,b,c){ja.copyWithin(e,b,b+c)},e:function(e){var b=ja.length;e>>>=0;if(2147483648<e)return!1;for(var c=1;4>=c;c*=2){var d=
|
||||
b*(1+.2/c);d=Math.min(d,e+100663296);var f=Math,t=f.min;d=Math.max(e,d);0<d%65536&&(d+=65536-d%65536);f=t.call(f,2147483648,d);a:{try{ra.grow(f-Ba.byteLength+65535>>>16);g(ra.buffer);var X=1;break a}catch(ya){}X=void 0}if(X)return!0}return!1},f:function(e){return 0},c:function(e,b,c,d,f){},b:function(e,b,c,d){for(var f=0,t=0;t<c;t++){var X=F[b>>2],ya=F[b+4>>2];b+=8;for(var za=0;za<ya;za++)oa.printChar(e,ja[X+za]);f+=ya}F[d>>2]=f;return 0}};(function(){function e(f,t){a.asm=f.exports;ra=a.asm.i;g(ra.buffer);
|
||||
Ea=a.asm.k;va.unshift(a.asm.j);da--;a.monitorRunDependencies&&a.monitorRunDependencies(da);0==da&&(null!==xa&&(clearInterval(xa),xa=null),na&&(f=na,na=null,f()))}function b(f){e(f.instance)}function c(f){return A().then(function(t){return WebAssembly.instantiate(t,d)}).then(function(t){return t}).then(f,function(t){fa("failed to asynchronously prepare wasm: "+t);p(t)})}var d={a:zd};da++;a.monitorRunDependencies&&a.monitorRunDependencies(da);if(a.instantiateWasm)try{return a.instantiateWasm(d,e)}catch(f){return fa("Module.instantiateWasm callback failed with error: "+
|
||||
f),!1}(function(){return ka||"function"!==typeof WebAssembly.instantiateStreaming||P.startsWith("data:application/octet-stream;base64,")||P.startsWith("file://")||"function"!==typeof fetch?c(b):fetch(P,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,d).then(b,function(t){fa("wasm streaming compile failed: "+t);fa("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(sa);return{}})();a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=
|
||||
a.asm.j).apply(null,arguments)};var eb=a._emscripten_bind_VoidPtr___destroy___0=function(){return(eb=a._emscripten_bind_VoidPtr___destroy___0=a.asm.l).apply(null,arguments)},Ja=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(Ja=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=a.asm.m).apply(null,arguments)},fb=a._emscripten_bind_DecoderBuffer_Init_2=function(){return(fb=a._emscripten_bind_DecoderBuffer_Init_2=a.asm.n).apply(null,arguments)},gb=a._emscripten_bind_DecoderBuffer___destroy___0=
|
||||
function(){return(gb=a._emscripten_bind_DecoderBuffer___destroy___0=a.asm.o).apply(null,arguments)},Ka=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=function(){return(Ka=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=a.asm.p).apply(null,arguments)},hb=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(hb=a._emscripten_bind_AttributeTransformData_transform_type_0=a.asm.q).apply(null,arguments)},ib=a._emscripten_bind_AttributeTransformData___destroy___0=
|
||||
function(){return(ib=a._emscripten_bind_AttributeTransformData___destroy___0=a.asm.r).apply(null,arguments)},La=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(La=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.s).apply(null,arguments)},jb=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(jb=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.t).apply(null,arguments)},Ma=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Ma=
|
||||
a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.u).apply(null,arguments)},kb=a._emscripten_bind_PointAttribute_size_0=function(){return(kb=a._emscripten_bind_PointAttribute_size_0=a.asm.v).apply(null,arguments)},lb=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(lb=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=a.asm.w).apply(null,arguments)},mb=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return(mb=a._emscripten_bind_PointAttribute_attribute_type_0=
|
||||
a.asm.x).apply(null,arguments)},nb=a._emscripten_bind_PointAttribute_data_type_0=function(){return(nb=a._emscripten_bind_PointAttribute_data_type_0=a.asm.y).apply(null,arguments)},ob=a._emscripten_bind_PointAttribute_num_components_0=function(){return(ob=a._emscripten_bind_PointAttribute_num_components_0=a.asm.z).apply(null,arguments)},pb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(pb=a._emscripten_bind_PointAttribute_normalized_0=a.asm.A).apply(null,arguments)},qb=a._emscripten_bind_PointAttribute_byte_stride_0=
|
||||
function(){return(qb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.B).apply(null,arguments)},rb=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(rb=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.C).apply(null,arguments)},sb=a._emscripten_bind_PointAttribute_unique_id_0=function(){return(sb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.D).apply(null,arguments)},tb=a._emscripten_bind_PointAttribute___destroy___0=function(){return(tb=a._emscripten_bind_PointAttribute___destroy___0=
|
||||
a.asm.E).apply(null,arguments)},Na=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(Na=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=a.asm.F).apply(null,arguments)},ub=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(ub=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=a.asm.G).apply(null,arguments)},vb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=
|
||||
function(){return(vb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=a.asm.H).apply(null,arguments)},wb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(wb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=a.asm.I).apply(null,arguments)},xb=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(xb=a._emscripten_bind_AttributeQuantizationTransform_range_0=a.asm.J).apply(null,arguments)},yb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=
|
||||
function(){return(yb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=a.asm.K).apply(null,arguments)},Oa=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(Oa=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=a.asm.L).apply(null,arguments)},zb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=function(){return(zb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=a.asm.M).apply(null,
|
||||
arguments)},Ab=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(Ab=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=a.asm.N).apply(null,arguments)},Bb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Bb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=a.asm.O).apply(null,arguments)},Pa=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Pa=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.P).apply(null,
|
||||
arguments)},Cb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(Cb=a._emscripten_bind_PointCloud_num_attributes_0=a.asm.Q).apply(null,arguments)},Db=a._emscripten_bind_PointCloud_num_points_0=function(){return(Db=a._emscripten_bind_PointCloud_num_points_0=a.asm.R).apply(null,arguments)},Eb=a._emscripten_bind_PointCloud___destroy___0=function(){return(Eb=a._emscripten_bind_PointCloud___destroy___0=a.asm.S).apply(null,arguments)},Qa=a._emscripten_bind_Mesh_Mesh_0=function(){return(Qa=
|
||||
a._emscripten_bind_Mesh_Mesh_0=a.asm.T).apply(null,arguments)},Fb=a._emscripten_bind_Mesh_num_faces_0=function(){return(Fb=a._emscripten_bind_Mesh_num_faces_0=a.asm.U).apply(null,arguments)},Gb=a._emscripten_bind_Mesh_num_attributes_0=function(){return(Gb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.V).apply(null,arguments)},Hb=a._emscripten_bind_Mesh_num_points_0=function(){return(Hb=a._emscripten_bind_Mesh_num_points_0=a.asm.W).apply(null,arguments)},Ib=a._emscripten_bind_Mesh___destroy___0=function(){return(Ib=
|
||||
a._emscripten_bind_Mesh___destroy___0=a.asm.X).apply(null,arguments)},Ra=a._emscripten_bind_Metadata_Metadata_0=function(){return(Ra=a._emscripten_bind_Metadata_Metadata_0=a.asm.Y).apply(null,arguments)},Jb=a._emscripten_bind_Metadata___destroy___0=function(){return(Jb=a._emscripten_bind_Metadata___destroy___0=a.asm.Z).apply(null,arguments)},Kb=a._emscripten_bind_Status_code_0=function(){return(Kb=a._emscripten_bind_Status_code_0=a.asm._).apply(null,arguments)},Lb=a._emscripten_bind_Status_ok_0=function(){return(Lb=
|
||||
a._emscripten_bind_Status_ok_0=a.asm.$).apply(null,arguments)},Mb=a._emscripten_bind_Status_error_msg_0=function(){return(Mb=a._emscripten_bind_Status_error_msg_0=a.asm.aa).apply(null,arguments)},Nb=a._emscripten_bind_Status___destroy___0=function(){return(Nb=a._emscripten_bind_Status___destroy___0=a.asm.ba).apply(null,arguments)},Sa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return(Sa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=a.asm.ca).apply(null,arguments)},
|
||||
Ob=a._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(Ob=a._emscripten_bind_DracoFloat32Array_GetValue_1=a.asm.da).apply(null,arguments)},Pb=a._emscripten_bind_DracoFloat32Array_size_0=function(){return(Pb=a._emscripten_bind_DracoFloat32Array_size_0=a.asm.ea).apply(null,arguments)},Qb=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(Qb=a._emscripten_bind_DracoFloat32Array___destroy___0=a.asm.fa).apply(null,arguments)},Ta=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=
|
||||
function(){return(Ta=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=a.asm.ga).apply(null,arguments)},Rb=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(Rb=a._emscripten_bind_DracoInt8Array_GetValue_1=a.asm.ha).apply(null,arguments)},Sb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(Sb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.ia).apply(null,arguments)},Tb=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return(Tb=a._emscripten_bind_DracoInt8Array___destroy___0=
|
||||
a.asm.ja).apply(null,arguments)},Ua=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(Ua=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=a.asm.ka).apply(null,arguments)},Ub=a._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(Ub=a._emscripten_bind_DracoUInt8Array_GetValue_1=a.asm.la).apply(null,arguments)},Vb=a._emscripten_bind_DracoUInt8Array_size_0=function(){return(Vb=a._emscripten_bind_DracoUInt8Array_size_0=a.asm.ma).apply(null,arguments)},Wb=a._emscripten_bind_DracoUInt8Array___destroy___0=
|
||||
function(){return(Wb=a._emscripten_bind_DracoUInt8Array___destroy___0=a.asm.na).apply(null,arguments)},Va=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(Va=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=a.asm.oa).apply(null,arguments)},Xb=a._emscripten_bind_DracoInt16Array_GetValue_1=function(){return(Xb=a._emscripten_bind_DracoInt16Array_GetValue_1=a.asm.pa).apply(null,arguments)},Yb=a._emscripten_bind_DracoInt16Array_size_0=function(){return(Yb=a._emscripten_bind_DracoInt16Array_size_0=
|
||||
a.asm.qa).apply(null,arguments)},Zb=a._emscripten_bind_DracoInt16Array___destroy___0=function(){return(Zb=a._emscripten_bind_DracoInt16Array___destroy___0=a.asm.ra).apply(null,arguments)},Wa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=function(){return(Wa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=a.asm.sa).apply(null,arguments)},$b=a._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return($b=a._emscripten_bind_DracoUInt16Array_GetValue_1=a.asm.ta).apply(null,arguments)},
|
||||
ac=a._emscripten_bind_DracoUInt16Array_size_0=function(){return(ac=a._emscripten_bind_DracoUInt16Array_size_0=a.asm.ua).apply(null,arguments)},bc=a._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(bc=a._emscripten_bind_DracoUInt16Array___destroy___0=a.asm.va).apply(null,arguments)},Xa=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return(Xa=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=a.asm.wa).apply(null,arguments)},cc=a._emscripten_bind_DracoInt32Array_GetValue_1=
|
||||
function(){return(cc=a._emscripten_bind_DracoInt32Array_GetValue_1=a.asm.xa).apply(null,arguments)},dc=a._emscripten_bind_DracoInt32Array_size_0=function(){return(dc=a._emscripten_bind_DracoInt32Array_size_0=a.asm.ya).apply(null,arguments)},ec=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return(ec=a._emscripten_bind_DracoInt32Array___destroy___0=a.asm.za).apply(null,arguments)},Ya=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=function(){return(Ya=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=
|
||||
a.asm.Aa).apply(null,arguments)},fc=a._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return(fc=a._emscripten_bind_DracoUInt32Array_GetValue_1=a.asm.Ba).apply(null,arguments)},gc=a._emscripten_bind_DracoUInt32Array_size_0=function(){return(gc=a._emscripten_bind_DracoUInt32Array_size_0=a.asm.Ca).apply(null,arguments)},hc=a._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(hc=a._emscripten_bind_DracoUInt32Array___destroy___0=a.asm.Da).apply(null,arguments)},Za=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=
|
||||
function(){return(Za=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=a.asm.Ea).apply(null,arguments)},ic=a._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(ic=a._emscripten_bind_MetadataQuerier_HasEntry_2=a.asm.Fa).apply(null,arguments)},jc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(jc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=a.asm.Ga).apply(null,arguments)},kc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=function(){return(kc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=
|
||||
a.asm.Ha).apply(null,arguments)},lc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=function(){return(lc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=a.asm.Ia).apply(null,arguments)},mc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(mc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=a.asm.Ja).apply(null,arguments)},nc=a._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return(nc=a._emscripten_bind_MetadataQuerier_NumEntries_1=a.asm.Ka).apply(null,arguments)},
|
||||
oc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(oc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=a.asm.La).apply(null,arguments)},pc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return(pc=a._emscripten_bind_MetadataQuerier___destroy___0=a.asm.Ma).apply(null,arguments)},$a=a._emscripten_bind_Decoder_Decoder_0=function(){return($a=a._emscripten_bind_Decoder_Decoder_0=a.asm.Na).apply(null,arguments)},qc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(qc=
|
||||
a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=a.asm.Oa).apply(null,arguments)},rc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(rc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=a.asm.Pa).apply(null,arguments)},sc=a._emscripten_bind_Decoder_GetAttributeId_2=function(){return(sc=a._emscripten_bind_Decoder_GetAttributeId_2=a.asm.Qa).apply(null,arguments)},tc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return(tc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=
|
||||
a.asm.Ra).apply(null,arguments)},uc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(uc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=a.asm.Sa).apply(null,arguments)},vc=a._emscripten_bind_Decoder_GetAttribute_2=function(){return(vc=a._emscripten_bind_Decoder_GetAttribute_2=a.asm.Ta).apply(null,arguments)},wc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(wc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=a.asm.Ua).apply(null,arguments)},
|
||||
xc=a._emscripten_bind_Decoder_GetMetadata_1=function(){return(xc=a._emscripten_bind_Decoder_GetMetadata_1=a.asm.Va).apply(null,arguments)},yc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(yc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=a.asm.Wa).apply(null,arguments)},zc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return(zc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=a.asm.Xa).apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=
|
||||
function(){return(Ac=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=a.asm.Ya).apply(null,arguments)},Bc=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(Bc=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=a.asm.Za).apply(null,arguments)},Cc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(Cc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=a.asm._a).apply(null,arguments)},Dc=a._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(Dc=
|
||||
a._emscripten_bind_Decoder_GetAttributeFloat_3=a.asm.$a).apply(null,arguments)},Ec=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(Ec=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=a.asm.ab).apply(null,arguments)},Fc=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(Fc=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=a.asm.bb).apply(null,arguments)},Gc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(Gc=
|
||||
a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=a.asm.cb).apply(null,arguments)},Hc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(Hc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=a.asm.db).apply(null,arguments)},Ic=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(Ic=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=a.asm.eb).apply(null,arguments)},Jc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=
|
||||
function(){return(Jc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=a.asm.fb).apply(null,arguments)},Kc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(Kc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=a.asm.gb).apply(null,arguments)},Lc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(Lc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=a.asm.hb).apply(null,arguments)},Mc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=
|
||||
function(){return(Mc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=a.asm.ib).apply(null,arguments)},Nc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(Nc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=a.asm.jb).apply(null,arguments)},Oc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(Oc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=a.asm.kb).apply(null,arguments)},Pc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=
|
||||
function(){return(Pc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=a.asm.lb).apply(null,arguments)},Qc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return(Qc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=a.asm.mb).apply(null,arguments)},Rc=a._emscripten_bind_Decoder___destroy___0=function(){return(Rc=a._emscripten_bind_Decoder___destroy___0=a.asm.nb).apply(null,arguments)},Sc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(Sc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=
|
||||
a.asm.ob).apply(null,arguments)},Tc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=function(){return(Tc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=a.asm.pb).apply(null,arguments)},Uc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(Uc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=a.asm.qb).apply(null,arguments)},Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=
|
||||
function(){return(Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=a.asm.rb).apply(null,arguments)},Wc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(Wc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.sb).apply(null,arguments)},Xc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(Xc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.tb).apply(null,arguments)},Yc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=
|
||||
function(){return(Yc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.ub).apply(null,arguments)},Zc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(Zc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.vb).apply(null,arguments)},$c=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return($c=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.wb).apply(null,arguments)},ad=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=
|
||||
function(){return(ad=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=a.asm.xb).apply(null,arguments)},bd=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(bd=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.yb).apply(null,arguments)},cd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(cd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.zb).apply(null,arguments)},dd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=
|
||||
function(){return(dd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=a.asm.Ab).apply(null,arguments)},ed=a._emscripten_enum_draco_DataType_DT_INVALID=function(){return(ed=a._emscripten_enum_draco_DataType_DT_INVALID=a.asm.Bb).apply(null,arguments)},fd=a._emscripten_enum_draco_DataType_DT_INT8=function(){return(fd=a._emscripten_enum_draco_DataType_DT_INT8=a.asm.Cb).apply(null,arguments)},gd=a._emscripten_enum_draco_DataType_DT_UINT8=function(){return(gd=a._emscripten_enum_draco_DataType_DT_UINT8=
|
||||
a.asm.Db).apply(null,arguments)},hd=a._emscripten_enum_draco_DataType_DT_INT16=function(){return(hd=a._emscripten_enum_draco_DataType_DT_INT16=a.asm.Eb).apply(null,arguments)},id=a._emscripten_enum_draco_DataType_DT_UINT16=function(){return(id=a._emscripten_enum_draco_DataType_DT_UINT16=a.asm.Fb).apply(null,arguments)},jd=a._emscripten_enum_draco_DataType_DT_INT32=function(){return(jd=a._emscripten_enum_draco_DataType_DT_INT32=a.asm.Gb).apply(null,arguments)},kd=a._emscripten_enum_draco_DataType_DT_UINT32=
|
||||
function(){return(kd=a._emscripten_enum_draco_DataType_DT_UINT32=a.asm.Hb).apply(null,arguments)},ld=a._emscripten_enum_draco_DataType_DT_INT64=function(){return(ld=a._emscripten_enum_draco_DataType_DT_INT64=a.asm.Ib).apply(null,arguments)},md=a._emscripten_enum_draco_DataType_DT_UINT64=function(){return(md=a._emscripten_enum_draco_DataType_DT_UINT64=a.asm.Jb).apply(null,arguments)},nd=a._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(nd=a._emscripten_enum_draco_DataType_DT_FLOAT32=a.asm.Kb).apply(null,
|
||||
arguments)},od=a._emscripten_enum_draco_DataType_DT_FLOAT64=function(){return(od=a._emscripten_enum_draco_DataType_DT_FLOAT64=a.asm.Lb).apply(null,arguments)},pd=a._emscripten_enum_draco_DataType_DT_BOOL=function(){return(pd=a._emscripten_enum_draco_DataType_DT_BOOL=a.asm.Mb).apply(null,arguments)},qd=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(qd=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=a.asm.Nb).apply(null,arguments)},rd=a._emscripten_enum_draco_StatusCode_OK=function(){return(rd=
|
||||
a._emscripten_enum_draco_StatusCode_OK=a.asm.Ob).apply(null,arguments)},sd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(sd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=a.asm.Pb).apply(null,arguments)},td=a._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(td=a._emscripten_enum_draco_StatusCode_IO_ERROR=a.asm.Qb).apply(null,arguments)},ud=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(ud=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=
|
||||
a.asm.Rb).apply(null,arguments)},vd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(vd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=a.asm.Sb).apply(null,arguments)},wd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(wd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=a.asm.Tb).apply(null,arguments)},db=a._malloc=function(){return(db=a._malloc=a.asm.Ub).apply(null,arguments)};a._free=function(){return(a._free=a.asm.Vb).apply(null,arguments)};
|
||||
var qa;na=function b(){qa||V();qa||(na=b)};a.run=V;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0<a.preInit.length;)a.preInit.pop()();V();v.prototype=Object.create(v.prototype);v.prototype.constructor=v;v.prototype.__class__=v;v.__cache__={};a.WrapperObject=v;a.getCache=x;a.wrapPointer=R;a.castObject=function(b,c){return R(b.ptr,c)};a.NULL=R(0);a.destroy=function(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";b.__destroy__();delete x(b.__class__)[b.ptr]};
|
||||
a.compare=function(b,c){return b.ptr===c.ptr};a.getPointer=function(b){return b.ptr};a.getClass=function(b){return b.__class__};var r={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(r.needed){for(var b=0;b<r.temps.length;b++)a._free(r.temps[b]);r.temps.length=0;a._free(r.buffer);r.buffer=0;r.size+=r.needed;r.needed=0}r.buffer||(r.size+=128,r.buffer=a._malloc(r.size),q(r.buffer));r.pos=0},alloc:function(b,c){q(r.buffer);b=b.length*c.BYTES_PER_ELEMENT;b=b+7&-8;r.pos+b>=r.size?(q(0<b),
|
||||
r.needed+=b,c=a._malloc(b),r.temps.push(c)):(c=r.buffer+r.pos,r.pos+=b);return c},copy:function(b,c,d){d>>>=0;switch(c.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var f=0;f<b.length;f++)c[d+f]=b[f]}};aa.prototype=Object.create(v.prototype);aa.prototype.constructor=aa;aa.prototype.__class__=aa;aa.__cache__={};a.VoidPtr=aa;aa.prototype.__destroy__=aa.prototype.__destroy__=function(){eb(this.ptr)};S.prototype=Object.create(v.prototype);S.prototype.constructor=S;S.prototype.__class__=
|
||||
S;S.__cache__={};a.DecoderBuffer=S;S.prototype.Init=S.prototype.Init=function(b,c){var d=this.ptr;r.prepare();"object"==typeof b&&(b=wa(b));c&&"object"===typeof c&&(c=c.ptr);fb(d,b,c)};S.prototype.__destroy__=S.prototype.__destroy__=function(){gb(this.ptr)};Q.prototype=Object.create(v.prototype);Q.prototype.constructor=Q;Q.prototype.__class__=Q;Q.__cache__={};a.AttributeTransformData=Q;Q.prototype.transform_type=Q.prototype.transform_type=function(){return hb(this.ptr)};Q.prototype.__destroy__=Q.prototype.__destroy__=
|
||||
function(){ib(this.ptr)};Y.prototype=Object.create(v.prototype);Y.prototype.constructor=Y;Y.prototype.__class__=Y;Y.__cache__={};a.GeometryAttribute=Y;Y.prototype.__destroy__=Y.prototype.__destroy__=function(){jb(this.ptr)};w.prototype=Object.create(v.prototype);w.prototype.constructor=w;w.prototype.__class__=w;w.__cache__={};a.PointAttribute=w;w.prototype.size=w.prototype.size=function(){return kb(this.ptr)};w.prototype.GetAttributeTransformData=w.prototype.GetAttributeTransformData=function(){return R(lb(this.ptr),
|
||||
Q)};w.prototype.attribute_type=w.prototype.attribute_type=function(){return mb(this.ptr)};w.prototype.data_type=w.prototype.data_type=function(){return nb(this.ptr)};w.prototype.num_components=w.prototype.num_components=function(){return ob(this.ptr)};w.prototype.normalized=w.prototype.normalized=function(){return!!pb(this.ptr)};w.prototype.byte_stride=w.prototype.byte_stride=function(){return qb(this.ptr)};w.prototype.byte_offset=w.prototype.byte_offset=function(){return rb(this.ptr)};w.prototype.unique_id=
|
||||
w.prototype.unique_id=function(){return sb(this.ptr)};w.prototype.__destroy__=w.prototype.__destroy__=function(){tb(this.ptr)};C.prototype=Object.create(v.prototype);C.prototype.constructor=C;C.prototype.__class__=C;C.__cache__={};a.AttributeQuantizationTransform=C;C.prototype.InitFromAttribute=C.prototype.InitFromAttribute=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return!!ub(c,b)};C.prototype.quantization_bits=C.prototype.quantization_bits=function(){return vb(this.ptr)};C.prototype.min_value=
|
||||
C.prototype.min_value=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return wb(c,b)};C.prototype.range=C.prototype.range=function(){return xb(this.ptr)};C.prototype.__destroy__=C.prototype.__destroy__=function(){yb(this.ptr)};G.prototype=Object.create(v.prototype);G.prototype.constructor=G;G.prototype.__class__=G;G.__cache__={};a.AttributeOctahedronTransform=G;G.prototype.InitFromAttribute=G.prototype.InitFromAttribute=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return!!zb(c,
|
||||
b)};G.prototype.quantization_bits=G.prototype.quantization_bits=function(){return Ab(this.ptr)};G.prototype.__destroy__=G.prototype.__destroy__=function(){Bb(this.ptr)};H.prototype=Object.create(v.prototype);H.prototype.constructor=H;H.prototype.__class__=H;H.__cache__={};a.PointCloud=H;H.prototype.num_attributes=H.prototype.num_attributes=function(){return Cb(this.ptr)};H.prototype.num_points=H.prototype.num_points=function(){return Db(this.ptr)};H.prototype.__destroy__=H.prototype.__destroy__=function(){Eb(this.ptr)};
|
||||
D.prototype=Object.create(v.prototype);D.prototype.constructor=D;D.prototype.__class__=D;D.__cache__={};a.Mesh=D;D.prototype.num_faces=D.prototype.num_faces=function(){return Fb(this.ptr)};D.prototype.num_attributes=D.prototype.num_attributes=function(){return Gb(this.ptr)};D.prototype.num_points=D.prototype.num_points=function(){return Hb(this.ptr)};D.prototype.__destroy__=D.prototype.__destroy__=function(){Ib(this.ptr)};T.prototype=Object.create(v.prototype);T.prototype.constructor=T;T.prototype.__class__=
|
||||
T;T.__cache__={};a.Metadata=T;T.prototype.__destroy__=T.prototype.__destroy__=function(){Jb(this.ptr)};B.prototype=Object.create(v.prototype);B.prototype.constructor=B;B.prototype.__class__=B;B.__cache__={};a.Status=B;B.prototype.code=B.prototype.code=function(){return Kb(this.ptr)};B.prototype.ok=B.prototype.ok=function(){return!!Lb(this.ptr)};B.prototype.error_msg=B.prototype.error_msg=function(){return z(Mb(this.ptr))};B.prototype.__destroy__=B.prototype.__destroy__=function(){Nb(this.ptr)};I.prototype=
|
||||
Object.create(v.prototype);I.prototype.constructor=I;I.prototype.__class__=I;I.__cache__={};a.DracoFloat32Array=I;I.prototype.GetValue=I.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Ob(c,b)};I.prototype.size=I.prototype.size=function(){return Pb(this.ptr)};I.prototype.__destroy__=I.prototype.__destroy__=function(){Qb(this.ptr)};J.prototype=Object.create(v.prototype);J.prototype.constructor=J;J.prototype.__class__=J;J.__cache__={};a.DracoInt8Array=J;J.prototype.GetValue=
|
||||
J.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Rb(c,b)};J.prototype.size=J.prototype.size=function(){return Sb(this.ptr)};J.prototype.__destroy__=J.prototype.__destroy__=function(){Tb(this.ptr)};K.prototype=Object.create(v.prototype);K.prototype.constructor=K;K.prototype.__class__=K;K.__cache__={};a.DracoUInt8Array=K;K.prototype.GetValue=K.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Ub(c,b)};K.prototype.size=K.prototype.size=
|
||||
function(){return Vb(this.ptr)};K.prototype.__destroy__=K.prototype.__destroy__=function(){Wb(this.ptr)};L.prototype=Object.create(v.prototype);L.prototype.constructor=L;L.prototype.__class__=L;L.__cache__={};a.DracoInt16Array=L;L.prototype.GetValue=L.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Xb(c,b)};L.prototype.size=L.prototype.size=function(){return Yb(this.ptr)};L.prototype.__destroy__=L.prototype.__destroy__=function(){Zb(this.ptr)};M.prototype=Object.create(v.prototype);
|
||||
M.prototype.constructor=M;M.prototype.__class__=M;M.__cache__={};a.DracoUInt16Array=M;M.prototype.GetValue=M.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return $b(c,b)};M.prototype.size=M.prototype.size=function(){return ac(this.ptr)};M.prototype.__destroy__=M.prototype.__destroy__=function(){bc(this.ptr)};N.prototype=Object.create(v.prototype);N.prototype.constructor=N;N.prototype.__class__=N;N.__cache__={};a.DracoInt32Array=N;N.prototype.GetValue=N.prototype.GetValue=
|
||||
function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return cc(c,b)};N.prototype.size=N.prototype.size=function(){return dc(this.ptr)};N.prototype.__destroy__=N.prototype.__destroy__=function(){ec(this.ptr)};O.prototype=Object.create(v.prototype);O.prototype.constructor=O;O.prototype.__class__=O;O.__cache__={};a.DracoUInt32Array=O;O.prototype.GetValue=O.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return fc(c,b)};O.prototype.size=O.prototype.size=function(){return gc(this.ptr)};
|
||||
O.prototype.__destroy__=O.prototype.__destroy__=function(){hc(this.ptr)};y.prototype=Object.create(v.prototype);y.prototype.constructor=y;y.prototype.__class__=y;y.__cache__={};a.MetadataQuerier=y;y.prototype.HasEntry=y.prototype.HasEntry=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:ba(c);return!!ic(d,b,c)};y.prototype.GetIntEntry=y.prototype.GetIntEntry=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===
|
||||
typeof c?c.ptr:ba(c);return jc(d,b,c)};y.prototype.GetIntEntryArray=y.prototype.GetIntEntryArray=function(b,c,d){var f=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:ba(c);d&&"object"===typeof d&&(d=d.ptr);kc(f,b,c,d)};y.prototype.GetDoubleEntry=y.prototype.GetDoubleEntry=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:ba(c);return lc(d,b,c)};y.prototype.GetStringEntry=y.prototype.GetStringEntry=function(b,
|
||||
c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:ba(c);return z(mc(d,b,c))};y.prototype.NumEntries=y.prototype.NumEntries=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return nc(c,b)};y.prototype.GetEntryName=y.prototype.GetEntryName=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return z(oc(d,b,c))};y.prototype.__destroy__=y.prototype.__destroy__=function(){pc(this.ptr)};l.prototype=Object.create(v.prototype);
|
||||
l.prototype.constructor=l;l.prototype.__class__=l;l.__cache__={};a.Decoder=l;l.prototype.DecodeArrayToPointCloud=l.prototype.DecodeArrayToPointCloud=function(b,c,d){var f=this.ptr;r.prepare();"object"==typeof b&&(b=wa(b));c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return R(qc(f,b,c,d),B)};l.prototype.DecodeArrayToMesh=l.prototype.DecodeArrayToMesh=function(b,c,d){var f=this.ptr;r.prepare();"object"==typeof b&&(b=wa(b));c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&
|
||||
(d=d.ptr);return R(rc(f,b,c,d),B)};l.prototype.GetAttributeId=l.prototype.GetAttributeId=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return sc(d,b,c)};l.prototype.GetAttributeIdByName=l.prototype.GetAttributeIdByName=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:ba(c);return tc(d,b,c)};l.prototype.GetAttributeIdByMetadataEntry=l.prototype.GetAttributeIdByMetadataEntry=function(b,c,d){var f=
|
||||
this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:ba(c);d=d&&"object"===typeof d?d.ptr:ba(d);return uc(f,b,c,d)};l.prototype.GetAttribute=l.prototype.GetAttribute=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return R(vc(d,b,c),w)};l.prototype.GetAttributeByUniqueId=l.prototype.GetAttributeByUniqueId=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return R(wc(d,b,
|
||||
c),w)};l.prototype.GetMetadata=l.prototype.GetMetadata=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return R(xc(c,b),T)};l.prototype.GetAttributeMetadata=l.prototype.GetAttributeMetadata=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return R(yc(d,b,c),T)};l.prototype.GetFaceFromMesh=l.prototype.GetFaceFromMesh=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&
|
||||
(d=d.ptr);return!!zc(f,b,c,d)};l.prototype.GetTriangleStripsFromMesh=l.prototype.GetTriangleStripsFromMesh=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return Ac(d,b,c)};l.prototype.GetTrianglesUInt16Array=l.prototype.GetTrianglesUInt16Array=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Bc(f,b,c,d)};l.prototype.GetTrianglesUInt32Array=l.prototype.GetTrianglesUInt32Array=
|
||||
function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Cc(f,b,c,d)};l.prototype.GetAttributeFloat=l.prototype.GetAttributeFloat=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Dc(f,b,c,d)};l.prototype.GetAttributeFloatForAllPoints=l.prototype.GetAttributeFloatForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&
|
||||
(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Ec(f,b,c,d)};l.prototype.GetAttributeIntForAllPoints=l.prototype.GetAttributeIntForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Fc(f,b,c,d)};l.prototype.GetAttributeInt8ForAllPoints=l.prototype.GetAttributeInt8ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&
|
||||
(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Gc(f,b,c,d)};l.prototype.GetAttributeUInt8ForAllPoints=l.prototype.GetAttributeUInt8ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Hc(f,b,c,d)};l.prototype.GetAttributeInt16ForAllPoints=l.prototype.GetAttributeInt16ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&
|
||||
(d=d.ptr);return!!Ic(f,b,c,d)};l.prototype.GetAttributeUInt16ForAllPoints=l.prototype.GetAttributeUInt16ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Jc(f,b,c,d)};l.prototype.GetAttributeInt32ForAllPoints=l.prototype.GetAttributeInt32ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Kc(f,
|
||||
b,c,d)};l.prototype.GetAttributeUInt32ForAllPoints=l.prototype.GetAttributeUInt32ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Lc(f,b,c,d)};l.prototype.GetAttributeDataArrayForAllPoints=l.prototype.GetAttributeDataArrayForAllPoints=function(b,c,d,f,t){var X=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);f&&"object"===typeof f&&
|
||||
(f=f.ptr);t&&"object"===typeof t&&(t=t.ptr);return!!Mc(X,b,c,d,f,t)};l.prototype.SkipAttributeTransform=l.prototype.SkipAttributeTransform=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);Nc(c,b)};l.prototype.GetEncodedGeometryType_Deprecated=l.prototype.GetEncodedGeometryType_Deprecated=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Oc(c,b)};l.prototype.DecodeBufferToPointCloud=l.prototype.DecodeBufferToPointCloud=function(b,c){var d=this.ptr;b&&"object"===typeof b&&
|
||||
(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return R(Pc(d,b,c),B)};l.prototype.DecodeBufferToMesh=l.prototype.DecodeBufferToMesh=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return R(Qc(d,b,c),B)};l.prototype.__destroy__=l.prototype.__destroy__=function(){Rc(this.ptr)};(function(){function b(){a.ATTRIBUTE_INVALID_TRANSFORM=Sc();a.ATTRIBUTE_NO_TRANSFORM=Tc();a.ATTRIBUTE_QUANTIZATION_TRANSFORM=Uc();a.ATTRIBUTE_OCTAHEDRON_TRANSFORM=Vc();a.INVALID=Wc();
|
||||
a.POSITION=Xc();a.NORMAL=Yc();a.COLOR=Zc();a.TEX_COORD=$c();a.GENERIC=ad();a.INVALID_GEOMETRY_TYPE=bd();a.POINT_CLOUD=cd();a.TRIANGULAR_MESH=dd();a.DT_INVALID=ed();a.DT_INT8=fd();a.DT_UINT8=gd();a.DT_INT16=hd();a.DT_UINT16=id();a.DT_INT32=jd();a.DT_UINT32=kd();a.DT_INT64=ld();a.DT_UINT64=md();a.DT_FLOAT32=nd();a.DT_FLOAT64=od();a.DT_BOOL=pd();a.DT_TYPES_COUNT=qd();a.OK=rd();a.DRACO_ERROR=sd();a.IO_ERROR=td();a.INVALID_PARAMETER=ud();a.UNSUPPORTED_VERSION=vd();a.UNKNOWN_VERSION=wd()}Fa?b():va.unshift(b)})();
|
||||
if("function"===typeof a.onModuleParsed)a.onModuleParsed();a.Decoder.prototype.GetEncodedGeometryType=function(b){if(b.__class__&&b.__class__===a.DecoderBuffer)return a.Decoder.prototype.GetEncodedGeometryType_Deprecated(b);if(8>b.byteLength)return a.INVALID_GEOMETRY_TYPE;switch(b[7]){case 0:return a.POINT_CLOUD;case 1:return a.TRIANGULAR_MESH;default:return a.INVALID_GEOMETRY_TYPE}};return n.ready}}();
|
||||
"object"===typeof exports&&"object"===typeof module?module.exports=DracoDecoderModule:"function"===typeof define&&define.amd?define([],function(){return DracoDecoderModule}):"object"===typeof exports&&(exports.DracoDecoderModule=DracoDecoderModule);
|
||||
|
||||
Binary file not shown.
@ -728,7 +728,7 @@ var require_web_ifc_mt = __commonJS({
|
||||
function receiveInstance(instance, module2) {
|
||||
var exports3 = instance.exports;
|
||||
Module["asm"] = exports3;
|
||||
wasmTable = Module["asm"]["qa"];
|
||||
wasmTable = Module["asm"]["pa"];
|
||||
wasmModule = module2;
|
||||
if (!ENVIRONMENT_IS_PTHREAD) {
|
||||
var numWorkersToLoad = PThread.unusedWorkers.length;
|
||||
@ -782,11 +782,11 @@ var require_web_ifc_mt = __commonJS({
|
||||
}
|
||||
var tempDouble;
|
||||
var tempI64;
|
||||
var ASM_CONSTS = { 41585: function($0, $1) {
|
||||
var ASM_CONSTS = { 41793: function($0, $1) {
|
||||
setTimeout(function() {
|
||||
_do_emscripten_dispatch_to_thread($0, $1);
|
||||
}, 0);
|
||||
}, 41663: function() {
|
||||
}, 41871: function() {
|
||||
throw "Canceled!";
|
||||
} };
|
||||
function initPthreadsJS() {
|
||||
@ -3267,60 +3267,9 @@ var require_web_ifc_mt = __commonJS({
|
||||
}, get64: function(low, high) {
|
||||
return low;
|
||||
} };
|
||||
function ___sys_fcntl64(fd, cmd, varargs) {
|
||||
if (ENVIRONMENT_IS_PTHREAD)
|
||||
return _emscripten_proxy_to_main_thread_js(2, 1, fd, cmd, varargs);
|
||||
SYSCALLS.varargs = varargs;
|
||||
try {
|
||||
var stream = SYSCALLS.getStreamFromFD(fd);
|
||||
switch (cmd) {
|
||||
case 0: {
|
||||
var arg = SYSCALLS.get();
|
||||
if (arg < 0) {
|
||||
return -28;
|
||||
}
|
||||
var newStream;
|
||||
newStream = FS.open(stream.path, stream.flags, 0, arg);
|
||||
return newStream.fd;
|
||||
}
|
||||
case 1:
|
||||
case 2:
|
||||
return 0;
|
||||
case 3:
|
||||
return stream.flags;
|
||||
case 4: {
|
||||
var arg = SYSCALLS.get();
|
||||
stream.flags |= arg;
|
||||
return 0;
|
||||
}
|
||||
case 12: {
|
||||
var arg = SYSCALLS.get();
|
||||
var offset = 0;
|
||||
GROWABLE_HEAP_I16()[arg + offset >> 1] = 2;
|
||||
return 0;
|
||||
}
|
||||
case 13:
|
||||
case 14:
|
||||
return 0;
|
||||
case 16:
|
||||
case 8:
|
||||
return -28;
|
||||
case 9:
|
||||
setErrNo(28);
|
||||
return -1;
|
||||
default: {
|
||||
return -28;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
||||
abort(e);
|
||||
return -e.errno;
|
||||
}
|
||||
}
|
||||
function ___sys_ioctl(fd, op, varargs) {
|
||||
if (ENVIRONMENT_IS_PTHREAD)
|
||||
return _emscripten_proxy_to_main_thread_js(3, 1, fd, op, varargs);
|
||||
return _emscripten_proxy_to_main_thread_js(2, 1, fd, op, varargs);
|
||||
SYSCALLS.varargs = varargs;
|
||||
try {
|
||||
var stream = SYSCALLS.getStreamFromFD(fd);
|
||||
@ -3378,7 +3327,7 @@ var require_web_ifc_mt = __commonJS({
|
||||
}
|
||||
function ___sys_open(path, flags, varargs) {
|
||||
if (ENVIRONMENT_IS_PTHREAD)
|
||||
return _emscripten_proxy_to_main_thread_js(4, 1, path, flags, varargs);
|
||||
return _emscripten_proxy_to_main_thread_js(3, 1, path, flags, varargs);
|
||||
SYSCALLS.varargs = varargs;
|
||||
try {
|
||||
var pathname = SYSCALLS.getStr(path);
|
||||
@ -5184,7 +5133,7 @@ var require_web_ifc_mt = __commonJS({
|
||||
}
|
||||
function _emscripten_set_canvas_element_size_main_thread(target, width, height) {
|
||||
if (ENVIRONMENT_IS_PTHREAD)
|
||||
return _emscripten_proxy_to_main_thread_js(5, 1, target, width, height);
|
||||
return _emscripten_proxy_to_main_thread_js(4, 1, target, width, height);
|
||||
return _emscripten_set_canvas_element_size_calling_thread(target, width, height);
|
||||
}
|
||||
function _emscripten_set_canvas_element_size(target, width, height) {
|
||||
@ -5376,7 +5325,7 @@ var require_web_ifc_mt = __commonJS({
|
||||
}
|
||||
function _environ_get(__environ, environ_buf) {
|
||||
if (ENVIRONMENT_IS_PTHREAD)
|
||||
return _emscripten_proxy_to_main_thread_js(6, 1, __environ, environ_buf);
|
||||
return _emscripten_proxy_to_main_thread_js(5, 1, __environ, environ_buf);
|
||||
try {
|
||||
var bufSize = 0;
|
||||
getEnvStrings().forEach(function(string, i) {
|
||||
@ -5394,7 +5343,7 @@ var require_web_ifc_mt = __commonJS({
|
||||
}
|
||||
function _environ_sizes_get(penviron_count, penviron_buf_size) {
|
||||
if (ENVIRONMENT_IS_PTHREAD)
|
||||
return _emscripten_proxy_to_main_thread_js(7, 1, penviron_count, penviron_buf_size);
|
||||
return _emscripten_proxy_to_main_thread_js(6, 1, penviron_count, penviron_buf_size);
|
||||
try {
|
||||
var strings = getEnvStrings();
|
||||
GROWABLE_HEAP_I32()[penviron_count >> 2] = strings.length;
|
||||
@ -5412,7 +5361,7 @@ var require_web_ifc_mt = __commonJS({
|
||||
}
|
||||
function _fd_close(fd) {
|
||||
if (ENVIRONMENT_IS_PTHREAD)
|
||||
return _emscripten_proxy_to_main_thread_js(8, 1, fd);
|
||||
return _emscripten_proxy_to_main_thread_js(7, 1, fd);
|
||||
try {
|
||||
var stream = SYSCALLS.getStreamFromFD(fd);
|
||||
FS.close(stream);
|
||||
@ -5425,7 +5374,7 @@ var require_web_ifc_mt = __commonJS({
|
||||
}
|
||||
function _fd_read(fd, iov, iovcnt, pnum) {
|
||||
if (ENVIRONMENT_IS_PTHREAD)
|
||||
return _emscripten_proxy_to_main_thread_js(9, 1, fd, iov, iovcnt, pnum);
|
||||
return _emscripten_proxy_to_main_thread_js(8, 1, fd, iov, iovcnt, pnum);
|
||||
try {
|
||||
var stream = SYSCALLS.getStreamFromFD(fd);
|
||||
var num = SYSCALLS.doReadv(stream, iov, iovcnt);
|
||||
@ -5439,7 +5388,7 @@ var require_web_ifc_mt = __commonJS({
|
||||
}
|
||||
function _fd_seek(fd, offset_low, offset_high, whence, newOffset) {
|
||||
if (ENVIRONMENT_IS_PTHREAD)
|
||||
return _emscripten_proxy_to_main_thread_js(10, 1, fd, offset_low, offset_high, whence, newOffset);
|
||||
return _emscripten_proxy_to_main_thread_js(9, 1, fd, offset_low, offset_high, whence, newOffset);
|
||||
try {
|
||||
var stream = SYSCALLS.getStreamFromFD(fd);
|
||||
var HIGH_OFFSET = 4294967296;
|
||||
@ -5461,7 +5410,7 @@ var require_web_ifc_mt = __commonJS({
|
||||
}
|
||||
function _fd_write(fd, iov, iovcnt, pnum) {
|
||||
if (ENVIRONMENT_IS_PTHREAD)
|
||||
return _emscripten_proxy_to_main_thread_js(11, 1, fd, iov, iovcnt, pnum);
|
||||
return _emscripten_proxy_to_main_thread_js(10, 1, fd, iov, iovcnt, pnum);
|
||||
try {
|
||||
var stream = SYSCALLS.getStreamFromFD(fd);
|
||||
var num = SYSCALLS.doWritev(stream, iov, iovcnt);
|
||||
@ -5884,7 +5833,7 @@ var require_web_ifc_mt = __commonJS({
|
||||
UnboundTypeError = Module["UnboundTypeError"] = extendError(Error, "UnboundTypeError");
|
||||
init_emval();
|
||||
var GLctx;
|
||||
var proxiedFunctionTable = [null, _atexit, ___sys_fcntl64, ___sys_ioctl, ___sys_open, _emscripten_set_canvas_element_size_main_thread, _environ_get, _environ_sizes_get, _fd_close, _fd_read, _fd_seek, _fd_write];
|
||||
var proxiedFunctionTable = [null, _atexit, ___sys_ioctl, ___sys_open, _emscripten_set_canvas_element_size_main_thread, _environ_get, _environ_sizes_get, _fd_close, _fd_read, _fd_seek, _fd_write];
|
||||
function intArrayFromString(stringy, dontAddNull, length) {
|
||||
var len = length > 0 ? length : lengthBytesUTF8(stringy) + 1;
|
||||
var u8array = new Array(len);
|
||||
@ -5897,126 +5846,126 @@ var require_web_ifc_mt = __commonJS({
|
||||
__ATINIT__.push({ func: function() {
|
||||
___wasm_call_ctors();
|
||||
} });
|
||||
var asmLibraryArg = { "p": ___assert_fail, "P": ___cxa_allocate_exception, "O": ___cxa_throw, "K": ___sys_fcntl64, "ha": ___sys_ioctl, "ia": ___sys_open, "na": __embind_finalize_value_array, "w": __embind_finalize_value_object, "ka": __embind_register_bool, "z": __embind_register_class, "y": __embind_register_class_constructor, "e": __embind_register_class_function, "ja": __embind_register_emval, "ma": __embind_register_enum, "E": __embind_register_enum_value, "M": __embind_register_float, "i": __embind_register_function, "s": __embind_register_integer, "q": __embind_register_memory_view, "N": __embind_register_std_string, "F": __embind_register_std_wstring, "oa": __embind_register_value_array, "l": __embind_register_value_array_element, "x": __embind_register_value_object, "h": __embind_register_value_object_field, "la": __embind_register_void, "$": __emscripten_notify_thread_queue, "u": __emval_as, "pa": __emval_call, "b": __emval_decref, "_": __emval_get_global, "r": __emval_get_property, "o": __emval_incref, "ba": __emval_instanceof, "Q": __emval_is_number, "G": __emval_new_array, "j": __emval_new_cstring, "A": __emval_new_object, "t": __emval_run_destructors, "m": __emval_set_property, "g": __emval_take_value, "I": _abort, "fa": _clock_gettime, "B": _emscripten_asm_const_int, "aa": _emscripten_check_blocking_allowed, "H": _emscripten_conditional_set_current_thread_status, "k": _emscripten_futex_wait, "n": _emscripten_futex_wake, "d": _emscripten_get_now, "D": _emscripten_is_main_browser_thread, "C": _emscripten_is_main_runtime_thread, "U": _emscripten_memcpy_big, "W": _emscripten_receive_on_main_thread_js, "v": _emscripten_resize_heap, "X": _emscripten_set_canvas_element_size, "f": _emscripten_set_current_thread_status, "Y": _emscripten_webgl_create_context, "da": _environ_get, "ea": _environ_sizes_get, "L": _fd_close, "ga": _fd_read, "R": _fd_seek, "J": _fd_write, "T": initPthreadsJS, "a": wasmMemory || Module["wasmMemory"], "V": _pthread_cleanup_push, "Z": _pthread_create, "c": _pthread_self, "S": _setTempRet0, "ca": _strftime_l };
|
||||
var asmLibraryArg = { "p": ___assert_fail, "H": ___cxa_allocate_exception, "G": ___cxa_throw, "ha": ___sys_ioctl, "ia": ___sys_open, "na": __embind_finalize_value_array, "w": __embind_finalize_value_object, "ka": __embind_register_bool, "z": __embind_register_class, "y": __embind_register_class_constructor, "e": __embind_register_class_function, "ja": __embind_register_emval, "ma": __embind_register_enum, "E": __embind_register_enum_value, "N": __embind_register_float, "i": __embind_register_function, "u": __embind_register_integer, "q": __embind_register_memory_view, "O": __embind_register_std_string, "F": __embind_register_std_wstring, "oa": __embind_register_value_array, "l": __embind_register_value_array_element, "x": __embind_register_value_object, "h": __embind_register_value_object_field, "la": __embind_register_void, "$": __emscripten_notify_thread_queue, "s": __emval_as, "P": __emval_call, "b": __emval_decref, "Z": __emval_get_global, "t": __emval_get_property, "o": __emval_incref, "ba": __emval_instanceof, "Q": __emval_is_number, "I": __emval_new_array, "j": __emval_new_cstring, "A": __emval_new_object, "r": __emval_run_destructors, "m": __emval_set_property, "g": __emval_take_value, "K": _abort, "fa": _clock_gettime, "B": _emscripten_asm_const_int, "aa": _emscripten_check_blocking_allowed, "J": _emscripten_conditional_set_current_thread_status, "k": _emscripten_futex_wait, "n": _emscripten_futex_wake, "d": _emscripten_get_now, "D": _emscripten_is_main_browser_thread, "C": _emscripten_is_main_runtime_thread, "U": _emscripten_memcpy_big, "W": _emscripten_receive_on_main_thread_js, "v": _emscripten_resize_heap, "X": _emscripten_set_canvas_element_size, "f": _emscripten_set_current_thread_status, "Y": _emscripten_webgl_create_context, "da": _environ_get, "ea": _environ_sizes_get, "M": _fd_close, "ga": _fd_read, "R": _fd_seek, "L": _fd_write, "T": initPthreadsJS, "a": wasmMemory || Module["wasmMemory"], "V": _pthread_cleanup_push, "_": _pthread_create, "c": _pthread_self, "S": _setTempRet0, "ca": _strftime_l };
|
||||
var asm = createWasm();
|
||||
var ___wasm_call_ctors = Module["___wasm_call_ctors"] = function() {
|
||||
return (___wasm_call_ctors = Module["___wasm_call_ctors"] = Module["asm"]["ra"]).apply(null, arguments);
|
||||
return (___wasm_call_ctors = Module["___wasm_call_ctors"] = Module["asm"]["qa"]).apply(null, arguments);
|
||||
};
|
||||
var _main = Module["_main"] = function() {
|
||||
return (_main = Module["_main"] = Module["asm"]["sa"]).apply(null, arguments);
|
||||
return (_main = Module["_main"] = Module["asm"]["ra"]).apply(null, arguments);
|
||||
};
|
||||
var _malloc = Module["_malloc"] = function() {
|
||||
return (_malloc = Module["_malloc"] = Module["asm"]["ta"]).apply(null, arguments);
|
||||
return (_malloc = Module["_malloc"] = Module["asm"]["sa"]).apply(null, arguments);
|
||||
};
|
||||
var _free = Module["_free"] = function() {
|
||||
return (_free = Module["_free"] = Module["asm"]["ua"]).apply(null, arguments);
|
||||
return (_free = Module["_free"] = Module["asm"]["ta"]).apply(null, arguments);
|
||||
};
|
||||
var ___getTypeName = Module["___getTypeName"] = function() {
|
||||
return (___getTypeName = Module["___getTypeName"] = Module["asm"]["va"]).apply(null, arguments);
|
||||
return (___getTypeName = Module["___getTypeName"] = Module["asm"]["ua"]).apply(null, arguments);
|
||||
};
|
||||
var ___embind_register_native_and_builtin_types = Module["___embind_register_native_and_builtin_types"] = function() {
|
||||
return (___embind_register_native_and_builtin_types = Module["___embind_register_native_and_builtin_types"] = Module["asm"]["wa"]).apply(null, arguments);
|
||||
return (___embind_register_native_and_builtin_types = Module["___embind_register_native_and_builtin_types"] = Module["asm"]["va"]).apply(null, arguments);
|
||||
};
|
||||
var ___errno_location = Module["___errno_location"] = function() {
|
||||
return (___errno_location = Module["___errno_location"] = Module["asm"]["xa"]).apply(null, arguments);
|
||||
return (___errno_location = Module["___errno_location"] = Module["asm"]["wa"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_get_global_libc = Module["_emscripten_get_global_libc"] = function() {
|
||||
return (_emscripten_get_global_libc = Module["_emscripten_get_global_libc"] = Module["asm"]["ya"]).apply(null, arguments);
|
||||
return (_emscripten_get_global_libc = Module["_emscripten_get_global_libc"] = Module["asm"]["xa"]).apply(null, arguments);
|
||||
};
|
||||
var ___em_js__initPthreadsJS = Module["___em_js__initPthreadsJS"] = function() {
|
||||
return (___em_js__initPthreadsJS = Module["___em_js__initPthreadsJS"] = Module["asm"]["za"]).apply(null, arguments);
|
||||
return (___em_js__initPthreadsJS = Module["___em_js__initPthreadsJS"] = Module["asm"]["ya"]).apply(null, arguments);
|
||||
};
|
||||
var stackSave = Module["stackSave"] = function() {
|
||||
return (stackSave = Module["stackSave"] = Module["asm"]["Aa"]).apply(null, arguments);
|
||||
return (stackSave = Module["stackSave"] = Module["asm"]["za"]).apply(null, arguments);
|
||||
};
|
||||
var stackRestore = Module["stackRestore"] = function() {
|
||||
return (stackRestore = Module["stackRestore"] = Module["asm"]["Ba"]).apply(null, arguments);
|
||||
return (stackRestore = Module["stackRestore"] = Module["asm"]["Aa"]).apply(null, arguments);
|
||||
};
|
||||
var stackAlloc = Module["stackAlloc"] = function() {
|
||||
return (stackAlloc = Module["stackAlloc"] = Module["asm"]["Ca"]).apply(null, arguments);
|
||||
return (stackAlloc = Module["stackAlloc"] = Module["asm"]["Ba"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_stack_set_limits = Module["_emscripten_stack_set_limits"] = function() {
|
||||
return (_emscripten_stack_set_limits = Module["_emscripten_stack_set_limits"] = Module["asm"]["Da"]).apply(null, arguments);
|
||||
return (_emscripten_stack_set_limits = Module["_emscripten_stack_set_limits"] = Module["asm"]["Ca"]).apply(null, arguments);
|
||||
};
|
||||
var _memalign = Module["_memalign"] = function() {
|
||||
return (_memalign = Module["_memalign"] = Module["asm"]["Ea"]).apply(null, arguments);
|
||||
return (_memalign = Module["_memalign"] = Module["asm"]["Da"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_main_browser_thread_id = Module["_emscripten_main_browser_thread_id"] = function() {
|
||||
return (_emscripten_main_browser_thread_id = Module["_emscripten_main_browser_thread_id"] = Module["asm"]["Fa"]).apply(null, arguments);
|
||||
return (_emscripten_main_browser_thread_id = Module["_emscripten_main_browser_thread_id"] = Module["asm"]["Ea"]).apply(null, arguments);
|
||||
};
|
||||
var ___pthread_tsd_run_dtors = Module["___pthread_tsd_run_dtors"] = function() {
|
||||
return (___pthread_tsd_run_dtors = Module["___pthread_tsd_run_dtors"] = Module["asm"]["Ga"]).apply(null, arguments);
|
||||
return (___pthread_tsd_run_dtors = Module["___pthread_tsd_run_dtors"] = Module["asm"]["Fa"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_main_thread_process_queued_calls = Module["_emscripten_main_thread_process_queued_calls"] = function() {
|
||||
return (_emscripten_main_thread_process_queued_calls = Module["_emscripten_main_thread_process_queued_calls"] = Module["asm"]["Ha"]).apply(null, arguments);
|
||||
return (_emscripten_main_thread_process_queued_calls = Module["_emscripten_main_thread_process_queued_calls"] = Module["asm"]["Ga"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_current_thread_process_queued_calls = Module["_emscripten_current_thread_process_queued_calls"] = function() {
|
||||
return (_emscripten_current_thread_process_queued_calls = Module["_emscripten_current_thread_process_queued_calls"] = Module["asm"]["Ia"]).apply(null, arguments);
|
||||
return (_emscripten_current_thread_process_queued_calls = Module["_emscripten_current_thread_process_queued_calls"] = Module["asm"]["Ha"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_register_main_browser_thread_id = Module["_emscripten_register_main_browser_thread_id"] = function() {
|
||||
return (_emscripten_register_main_browser_thread_id = Module["_emscripten_register_main_browser_thread_id"] = Module["asm"]["Ja"]).apply(null, arguments);
|
||||
return (_emscripten_register_main_browser_thread_id = Module["_emscripten_register_main_browser_thread_id"] = Module["asm"]["Ia"]).apply(null, arguments);
|
||||
};
|
||||
var _do_emscripten_dispatch_to_thread = Module["_do_emscripten_dispatch_to_thread"] = function() {
|
||||
return (_do_emscripten_dispatch_to_thread = Module["_do_emscripten_dispatch_to_thread"] = Module["asm"]["Ka"]).apply(null, arguments);
|
||||
return (_do_emscripten_dispatch_to_thread = Module["_do_emscripten_dispatch_to_thread"] = Module["asm"]["Ja"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_async_run_in_main_thread = Module["_emscripten_async_run_in_main_thread"] = function() {
|
||||
return (_emscripten_async_run_in_main_thread = Module["_emscripten_async_run_in_main_thread"] = Module["asm"]["La"]).apply(null, arguments);
|
||||
return (_emscripten_async_run_in_main_thread = Module["_emscripten_async_run_in_main_thread"] = Module["asm"]["Ka"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_sync_run_in_main_thread = Module["_emscripten_sync_run_in_main_thread"] = function() {
|
||||
return (_emscripten_sync_run_in_main_thread = Module["_emscripten_sync_run_in_main_thread"] = Module["asm"]["Ma"]).apply(null, arguments);
|
||||
return (_emscripten_sync_run_in_main_thread = Module["_emscripten_sync_run_in_main_thread"] = Module["asm"]["La"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_sync_run_in_main_thread_0 = Module["_emscripten_sync_run_in_main_thread_0"] = function() {
|
||||
return (_emscripten_sync_run_in_main_thread_0 = Module["_emscripten_sync_run_in_main_thread_0"] = Module["asm"]["Na"]).apply(null, arguments);
|
||||
return (_emscripten_sync_run_in_main_thread_0 = Module["_emscripten_sync_run_in_main_thread_0"] = Module["asm"]["Ma"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_sync_run_in_main_thread_1 = Module["_emscripten_sync_run_in_main_thread_1"] = function() {
|
||||
return (_emscripten_sync_run_in_main_thread_1 = Module["_emscripten_sync_run_in_main_thread_1"] = Module["asm"]["Oa"]).apply(null, arguments);
|
||||
return (_emscripten_sync_run_in_main_thread_1 = Module["_emscripten_sync_run_in_main_thread_1"] = Module["asm"]["Na"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_sync_run_in_main_thread_2 = Module["_emscripten_sync_run_in_main_thread_2"] = function() {
|
||||
return (_emscripten_sync_run_in_main_thread_2 = Module["_emscripten_sync_run_in_main_thread_2"] = Module["asm"]["Pa"]).apply(null, arguments);
|
||||
return (_emscripten_sync_run_in_main_thread_2 = Module["_emscripten_sync_run_in_main_thread_2"] = Module["asm"]["Oa"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_sync_run_in_main_thread_xprintf_varargs = Module["_emscripten_sync_run_in_main_thread_xprintf_varargs"] = function() {
|
||||
return (_emscripten_sync_run_in_main_thread_xprintf_varargs = Module["_emscripten_sync_run_in_main_thread_xprintf_varargs"] = Module["asm"]["Qa"]).apply(null, arguments);
|
||||
return (_emscripten_sync_run_in_main_thread_xprintf_varargs = Module["_emscripten_sync_run_in_main_thread_xprintf_varargs"] = Module["asm"]["Pa"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_sync_run_in_main_thread_3 = Module["_emscripten_sync_run_in_main_thread_3"] = function() {
|
||||
return (_emscripten_sync_run_in_main_thread_3 = Module["_emscripten_sync_run_in_main_thread_3"] = Module["asm"]["Ra"]).apply(null, arguments);
|
||||
return (_emscripten_sync_run_in_main_thread_3 = Module["_emscripten_sync_run_in_main_thread_3"] = Module["asm"]["Qa"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_sync_run_in_main_thread_4 = Module["_emscripten_sync_run_in_main_thread_4"] = function() {
|
||||
return (_emscripten_sync_run_in_main_thread_4 = Module["_emscripten_sync_run_in_main_thread_4"] = Module["asm"]["Sa"]).apply(null, arguments);
|
||||
return (_emscripten_sync_run_in_main_thread_4 = Module["_emscripten_sync_run_in_main_thread_4"] = Module["asm"]["Ra"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_sync_run_in_main_thread_5 = Module["_emscripten_sync_run_in_main_thread_5"] = function() {
|
||||
return (_emscripten_sync_run_in_main_thread_5 = Module["_emscripten_sync_run_in_main_thread_5"] = Module["asm"]["Ta"]).apply(null, arguments);
|
||||
return (_emscripten_sync_run_in_main_thread_5 = Module["_emscripten_sync_run_in_main_thread_5"] = Module["asm"]["Sa"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_sync_run_in_main_thread_6 = Module["_emscripten_sync_run_in_main_thread_6"] = function() {
|
||||
return (_emscripten_sync_run_in_main_thread_6 = Module["_emscripten_sync_run_in_main_thread_6"] = Module["asm"]["Ua"]).apply(null, arguments);
|
||||
return (_emscripten_sync_run_in_main_thread_6 = Module["_emscripten_sync_run_in_main_thread_6"] = Module["asm"]["Ta"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_sync_run_in_main_thread_7 = Module["_emscripten_sync_run_in_main_thread_7"] = function() {
|
||||
return (_emscripten_sync_run_in_main_thread_7 = Module["_emscripten_sync_run_in_main_thread_7"] = Module["asm"]["Va"]).apply(null, arguments);
|
||||
return (_emscripten_sync_run_in_main_thread_7 = Module["_emscripten_sync_run_in_main_thread_7"] = Module["asm"]["Ua"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_run_in_main_runtime_thread_js = Module["_emscripten_run_in_main_runtime_thread_js"] = function() {
|
||||
return (_emscripten_run_in_main_runtime_thread_js = Module["_emscripten_run_in_main_runtime_thread_js"] = Module["asm"]["Wa"]).apply(null, arguments);
|
||||
return (_emscripten_run_in_main_runtime_thread_js = Module["_emscripten_run_in_main_runtime_thread_js"] = Module["asm"]["Va"]).apply(null, arguments);
|
||||
};
|
||||
var __emscripten_call_on_thread = Module["__emscripten_call_on_thread"] = function() {
|
||||
return (__emscripten_call_on_thread = Module["__emscripten_call_on_thread"] = Module["asm"]["Xa"]).apply(null, arguments);
|
||||
return (__emscripten_call_on_thread = Module["__emscripten_call_on_thread"] = Module["asm"]["Wa"]).apply(null, arguments);
|
||||
};
|
||||
var _emscripten_tls_init = Module["_emscripten_tls_init"] = function() {
|
||||
return (_emscripten_tls_init = Module["_emscripten_tls_init"] = Module["asm"]["Ya"]).apply(null, arguments);
|
||||
return (_emscripten_tls_init = Module["_emscripten_tls_init"] = Module["asm"]["Xa"]).apply(null, arguments);
|
||||
};
|
||||
var dynCall_jiji = Module["dynCall_jiji"] = function() {
|
||||
return (dynCall_jiji = Module["dynCall_jiji"] = Module["asm"]["Za"]).apply(null, arguments);
|
||||
return (dynCall_jiji = Module["dynCall_jiji"] = Module["asm"]["Ya"]).apply(null, arguments);
|
||||
};
|
||||
var dynCall_viijii = Module["dynCall_viijii"] = function() {
|
||||
return (dynCall_viijii = Module["dynCall_viijii"] = Module["asm"]["_a"]).apply(null, arguments);
|
||||
return (dynCall_viijii = Module["dynCall_viijii"] = Module["asm"]["Za"]).apply(null, arguments);
|
||||
};
|
||||
var dynCall_iiiiiijj = Module["dynCall_iiiiiijj"] = function() {
|
||||
return (dynCall_iiiiiijj = Module["dynCall_iiiiiijj"] = Module["asm"]["$a"]).apply(null, arguments);
|
||||
return (dynCall_iiiiiijj = Module["dynCall_iiiiiijj"] = Module["asm"]["_a"]).apply(null, arguments);
|
||||
};
|
||||
var dynCall_iiiiij = Module["dynCall_iiiiij"] = function() {
|
||||
return (dynCall_iiiiij = Module["dynCall_iiiiij"] = Module["asm"]["ab"]).apply(null, arguments);
|
||||
return (dynCall_iiiiij = Module["dynCall_iiiiij"] = Module["asm"]["$a"]).apply(null, arguments);
|
||||
};
|
||||
var dynCall_iiiiijj = Module["dynCall_iiiiijj"] = function() {
|
||||
return (dynCall_iiiiijj = Module["dynCall_iiiiijj"] = Module["asm"]["bb"]).apply(null, arguments);
|
||||
return (dynCall_iiiiijj = Module["dynCall_iiiiijj"] = Module["asm"]["ab"]).apply(null, arguments);
|
||||
};
|
||||
var _main_thread_futex = Module["_main_thread_futex"] = 51720;
|
||||
var _main_thread_futex = Module["_main_thread_futex"] = 51928;
|
||||
Module["addRunDependency"] = addRunDependency;
|
||||
Module["removeRunDependency"] = removeRunDependency;
|
||||
Module["FS_createPath"] = FS.createPath;
|
||||
@ -6726,7 +6675,7 @@ var require_web_ifc = __commonJS({
|
||||
function receiveInstance(instance, module2) {
|
||||
var exports3 = instance.exports;
|
||||
Module["asm"] = exports3;
|
||||
wasmTable = Module["asm"]["ca"];
|
||||
wasmTable = Module["asm"]["ba"];
|
||||
removeRunDependency("wasm-instantiate");
|
||||
}
|
||||
addRunDependency("wasm-instantiate");
|
||||
@ -6865,10 +6814,6 @@ var require_web_ifc = __commonJS({
|
||||
uncaughtExceptionCount++;
|
||||
throw ptr;
|
||||
}
|
||||
function setErrNo(value) {
|
||||
HEAP32[___errno_location() >>> 2] = value;
|
||||
return value;
|
||||
}
|
||||
var PATH = { splitPath: function(filename) {
|
||||
var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
|
||||
return splitPathRe.exec(filename).slice(1);
|
||||
@ -8947,55 +8892,6 @@ var require_web_ifc = __commonJS({
|
||||
}, get64: function(low, high) {
|
||||
return low;
|
||||
} };
|
||||
function ___sys_fcntl64(fd, cmd, varargs) {
|
||||
SYSCALLS.varargs = varargs;
|
||||
try {
|
||||
var stream = SYSCALLS.getStreamFromFD(fd);
|
||||
switch (cmd) {
|
||||
case 0: {
|
||||
var arg = SYSCALLS.get();
|
||||
if (arg < 0) {
|
||||
return -28;
|
||||
}
|
||||
var newStream;
|
||||
newStream = FS.open(stream.path, stream.flags, 0, arg);
|
||||
return newStream.fd;
|
||||
}
|
||||
case 1:
|
||||
case 2:
|
||||
return 0;
|
||||
case 3:
|
||||
return stream.flags;
|
||||
case 4: {
|
||||
var arg = SYSCALLS.get();
|
||||
stream.flags |= arg;
|
||||
return 0;
|
||||
}
|
||||
case 12: {
|
||||
var arg = SYSCALLS.get();
|
||||
var offset = 0;
|
||||
HEAP16[arg + offset >>> 1] = 2;
|
||||
return 0;
|
||||
}
|
||||
case 13:
|
||||
case 14:
|
||||
return 0;
|
||||
case 16:
|
||||
case 8:
|
||||
return -28;
|
||||
case 9:
|
||||
setErrNo(28);
|
||||
return -1;
|
||||
default: {
|
||||
return -28;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
||||
abort(e);
|
||||
return -e.errno;
|
||||
}
|
||||
}
|
||||
function ___sys_ioctl(fd, op, varargs) {
|
||||
SYSCALLS.varargs = varargs;
|
||||
try {
|
||||
@ -10548,6 +10444,10 @@ var require_web_ifc = __commonJS({
|
||||
return performance.now();
|
||||
};
|
||||
var _emscripten_get_now_is_monotonic = true;
|
||||
function setErrNo(value) {
|
||||
HEAP32[___errno_location() >>> 2] = value;
|
||||
return value;
|
||||
}
|
||||
function _clock_gettime(clk_id, tp) {
|
||||
var now;
|
||||
if (clk_id === 0) {
|
||||
@ -10986,43 +10886,43 @@ var require_web_ifc = __commonJS({
|
||||
__ATINIT__.push({ func: function() {
|
||||
___wasm_call_ctors();
|
||||
} });
|
||||
var asmLibraryArg = { "x": ___assert_fail, "H": ___cxa_allocate_exception, "G": ___cxa_throw, "C": ___sys_fcntl64, "V": ___sys_ioctl, "W": ___sys_open, "$": __embind_finalize_value_array, "q": __embind_finalize_value_object, "Y": __embind_register_bool, "t": __embind_register_class, "s": __embind_register_class_constructor, "c": __embind_register_class_function, "X": __embind_register_emval, "_": __embind_register_enum, "v": __embind_register_enum_value, "E": __embind_register_float, "f": __embind_register_function, "m": __embind_register_integer, "k": __embind_register_memory_view, "F": __embind_register_std_string, "w": __embind_register_std_wstring, "aa": __embind_register_value_array, "h": __embind_register_value_array_element, "r": __embind_register_value_object, "e": __embind_register_value_object_field, "Z": __embind_register_void, "o": __emval_as, "ba": __emval_call, "b": __emval_decref, "J": __emval_get_global, "l": __emval_get_property, "j": __emval_incref, "N": __emval_instanceof, "I": __emval_is_number, "y": __emval_new_array, "g": __emval_new_cstring, "u": __emval_new_object, "n": __emval_run_destructors, "i": __emval_set_property, "d": __emval_take_value, "A": _abort, "T": _clock_gettime, "M": _emscripten_memcpy_big, "p": _emscripten_resize_heap, "R": _environ_get, "S": _environ_sizes_get, "D": _fd_close, "U": _fd_read, "K": _fd_seek, "B": _fd_write, "a": wasmMemory, "z": _pthread_mutexattr_destroy, "P": _pthread_mutexattr_init, "O": _pthread_mutexattr_settype, "L": _setTempRet0, "Q": _strftime_l };
|
||||
var asmLibraryArg = { "z": ___assert_fail, "y": ___cxa_allocate_exception, "x": ___cxa_throw, "V": ___sys_ioctl, "W": ___sys_open, "$": __embind_finalize_value_array, "q": __embind_finalize_value_object, "Y": __embind_register_bool, "t": __embind_register_class, "s": __embind_register_class_constructor, "c": __embind_register_class_function, "X": __embind_register_emval, "_": __embind_register_enum, "v": __embind_register_enum_value, "F": __embind_register_float, "f": __embind_register_function, "o": __embind_register_integer, "k": __embind_register_memory_view, "G": __embind_register_std_string, "w": __embind_register_std_wstring, "aa": __embind_register_value_array, "h": __embind_register_value_array_element, "r": __embind_register_value_object, "e": __embind_register_value_object_field, "Z": __embind_register_void, "m": __emval_as, "H": __emval_call, "b": __emval_decref, "J": __emval_get_global, "n": __emval_get_property, "j": __emval_incref, "N": __emval_instanceof, "I": __emval_is_number, "A": __emval_new_array, "g": __emval_new_cstring, "u": __emval_new_object, "l": __emval_run_destructors, "i": __emval_set_property, "d": __emval_take_value, "C": _abort, "T": _clock_gettime, "M": _emscripten_memcpy_big, "p": _emscripten_resize_heap, "R": _environ_get, "S": _environ_sizes_get, "E": _fd_close, "U": _fd_read, "K": _fd_seek, "D": _fd_write, "a": wasmMemory, "B": _pthread_mutexattr_destroy, "P": _pthread_mutexattr_init, "O": _pthread_mutexattr_settype, "L": _setTempRet0, "Q": _strftime_l };
|
||||
var asm = createWasm();
|
||||
var ___wasm_call_ctors = Module["___wasm_call_ctors"] = function() {
|
||||
return (___wasm_call_ctors = Module["___wasm_call_ctors"] = Module["asm"]["da"]).apply(null, arguments);
|
||||
return (___wasm_call_ctors = Module["___wasm_call_ctors"] = Module["asm"]["ca"]).apply(null, arguments);
|
||||
};
|
||||
var _main = Module["_main"] = function() {
|
||||
return (_main = Module["_main"] = Module["asm"]["ea"]).apply(null, arguments);
|
||||
return (_main = Module["_main"] = Module["asm"]["da"]).apply(null, arguments);
|
||||
};
|
||||
var _malloc = Module["_malloc"] = function() {
|
||||
return (_malloc = Module["_malloc"] = Module["asm"]["fa"]).apply(null, arguments);
|
||||
return (_malloc = Module["_malloc"] = Module["asm"]["ea"]).apply(null, arguments);
|
||||
};
|
||||
var _free = Module["_free"] = function() {
|
||||
return (_free = Module["_free"] = Module["asm"]["ga"]).apply(null, arguments);
|
||||
return (_free = Module["_free"] = Module["asm"]["fa"]).apply(null, arguments);
|
||||
};
|
||||
var ___getTypeName = Module["___getTypeName"] = function() {
|
||||
return (___getTypeName = Module["___getTypeName"] = Module["asm"]["ha"]).apply(null, arguments);
|
||||
return (___getTypeName = Module["___getTypeName"] = Module["asm"]["ga"]).apply(null, arguments);
|
||||
};
|
||||
var ___embind_register_native_and_builtin_types = Module["___embind_register_native_and_builtin_types"] = function() {
|
||||
return (___embind_register_native_and_builtin_types = Module["___embind_register_native_and_builtin_types"] = Module["asm"]["ia"]).apply(null, arguments);
|
||||
return (___embind_register_native_and_builtin_types = Module["___embind_register_native_and_builtin_types"] = Module["asm"]["ha"]).apply(null, arguments);
|
||||
};
|
||||
var ___errno_location = Module["___errno_location"] = function() {
|
||||
return (___errno_location = Module["___errno_location"] = Module["asm"]["ja"]).apply(null, arguments);
|
||||
return (___errno_location = Module["___errno_location"] = Module["asm"]["ia"]).apply(null, arguments);
|
||||
};
|
||||
var dynCall_jiji = Module["dynCall_jiji"] = function() {
|
||||
return (dynCall_jiji = Module["dynCall_jiji"] = Module["asm"]["ka"]).apply(null, arguments);
|
||||
return (dynCall_jiji = Module["dynCall_jiji"] = Module["asm"]["ja"]).apply(null, arguments);
|
||||
};
|
||||
var dynCall_viijii = Module["dynCall_viijii"] = function() {
|
||||
return (dynCall_viijii = Module["dynCall_viijii"] = Module["asm"]["la"]).apply(null, arguments);
|
||||
return (dynCall_viijii = Module["dynCall_viijii"] = Module["asm"]["ka"]).apply(null, arguments);
|
||||
};
|
||||
var dynCall_iiiiiijj = Module["dynCall_iiiiiijj"] = function() {
|
||||
return (dynCall_iiiiiijj = Module["dynCall_iiiiiijj"] = Module["asm"]["ma"]).apply(null, arguments);
|
||||
return (dynCall_iiiiiijj = Module["dynCall_iiiiiijj"] = Module["asm"]["la"]).apply(null, arguments);
|
||||
};
|
||||
var dynCall_iiiiij = Module["dynCall_iiiiij"] = function() {
|
||||
return (dynCall_iiiiij = Module["dynCall_iiiiij"] = Module["asm"]["na"]).apply(null, arguments);
|
||||
return (dynCall_iiiiij = Module["dynCall_iiiiij"] = Module["asm"]["ma"]).apply(null, arguments);
|
||||
};
|
||||
var dynCall_iiiiijj = Module["dynCall_iiiiijj"] = function() {
|
||||
return (dynCall_iiiiijj = Module["dynCall_iiiiijj"] = Module["asm"]["oa"]).apply(null, arguments);
|
||||
return (dynCall_iiiiijj = Module["dynCall_iiiiijj"] = Module["asm"]["na"]).apply(null, arguments);
|
||||
};
|
||||
Module["addRunDependency"] = addRunDependency;
|
||||
Module["removeRunDependency"] = removeRunDependency;
|
||||
@ -29169,19 +29069,19 @@ var IfcEventType = class {
|
||||
}
|
||||
};
|
||||
var IfcExtendedProperties = class {
|
||||
constructor(expressID, type, Name, Description, Properties) {
|
||||
constructor(expressID, type, Name, Description, Properties2) {
|
||||
this.expressID = expressID;
|
||||
this.type = type;
|
||||
this.Name = Name;
|
||||
this.Description = Description;
|
||||
this.Properties = Properties;
|
||||
this.Properties = Properties2;
|
||||
}
|
||||
static FromTape(expressID, type, tape) {
|
||||
let ptr = 0;
|
||||
let Name = tape[ptr++];
|
||||
let Description = tape[ptr++];
|
||||
let Properties = tape[ptr++];
|
||||
return new IfcExtendedProperties(expressID, type, Name, Description, Properties);
|
||||
let Properties2 = tape[ptr++];
|
||||
return new IfcExtendedProperties(expressID, type, Name, Description, Properties2);
|
||||
}
|
||||
ToTape() {
|
||||
let args = [];
|
||||
@ -34427,21 +34327,21 @@ var IfcMaterialProfileWithOffsets = class {
|
||||
}
|
||||
};
|
||||
var IfcMaterialProperties = class {
|
||||
constructor(expressID, type, Name, Description, Properties, Material) {
|
||||
constructor(expressID, type, Name, Description, Properties2, Material) {
|
||||
this.expressID = expressID;
|
||||
this.type = type;
|
||||
this.Name = Name;
|
||||
this.Description = Description;
|
||||
this.Properties = Properties;
|
||||
this.Properties = Properties2;
|
||||
this.Material = Material;
|
||||
}
|
||||
static FromTape(expressID, type, tape) {
|
||||
let ptr = 0;
|
||||
let Name = tape[ptr++];
|
||||
let Description = tape[ptr++];
|
||||
let Properties = tape[ptr++];
|
||||
let Properties2 = tape[ptr++];
|
||||
let Material = tape[ptr++];
|
||||
return new IfcMaterialProperties(expressID, type, Name, Description, Properties, Material);
|
||||
return new IfcMaterialProperties(expressID, type, Name, Description, Properties2, Material);
|
||||
}
|
||||
ToTape() {
|
||||
let args = [];
|
||||
@ -37599,21 +37499,21 @@ var IfcProfileDef = class {
|
||||
}
|
||||
};
|
||||
var IfcProfileProperties = class {
|
||||
constructor(expressID, type, Name, Description, Properties, ProfileDefinition) {
|
||||
constructor(expressID, type, Name, Description, Properties2, ProfileDefinition) {
|
||||
this.expressID = expressID;
|
||||
this.type = type;
|
||||
this.Name = Name;
|
||||
this.Description = Description;
|
||||
this.Properties = Properties;
|
||||
this.Properties = Properties2;
|
||||
this.ProfileDefinition = ProfileDefinition;
|
||||
}
|
||||
static FromTape(expressID, type, tape) {
|
||||
let ptr = 0;
|
||||
let Name = tape[ptr++];
|
||||
let Description = tape[ptr++];
|
||||
let Properties = tape[ptr++];
|
||||
let Properties2 = tape[ptr++];
|
||||
let ProfileDefinition = tape[ptr++];
|
||||
return new IfcProfileProperties(expressID, type, Name, Description, Properties, ProfileDefinition);
|
||||
return new IfcProfileProperties(expressID, type, Name, Description, Properties2, ProfileDefinition);
|
||||
}
|
||||
ToTape() {
|
||||
let args = [];
|
||||
@ -51617,9 +51517,362 @@ var IfcZone = class {
|
||||
}
|
||||
};
|
||||
|
||||
// dist/helpers/ifc-elements.ts
|
||||
var IfcElements2 = {
|
||||
103090709: "IFCPROJECT",
|
||||
4097777520: "IFCSITE",
|
||||
4031249490: "IFCBUILDING",
|
||||
3124254112: "IFCBUILDINGSTOREY",
|
||||
3856911033: "IFCSPACE",
|
||||
1674181508: "IFCANNOTATION",
|
||||
25142252: "IFCCONTROLLER",
|
||||
32344328: "IFCBOILER",
|
||||
76236018: "IFCLAMP",
|
||||
90941305: "IFCPUMP",
|
||||
177149247: "IFCAIRTERMINALBOX",
|
||||
182646315: "IFCFLOWINSTRUMENT",
|
||||
263784265: "IFCFURNISHINGELEMENT",
|
||||
264262732: "IFCELECTRICGENERATOR",
|
||||
277319702: "IFCAUDIOVISUALAPPLIANCE",
|
||||
310824031: "IFCPIPEFITTING",
|
||||
331165859: "IFCSTAIR",
|
||||
342316401: "IFCDUCTFITTING",
|
||||
377706215: "IFCMECHANICALFASTENER",
|
||||
395920057: "IFCDOOR",
|
||||
402227799: "IFCELECTRICMOTOR",
|
||||
413509423: "IFCSYSTEMFURNITUREELEMENT",
|
||||
484807127: "IFCEVAPORATOR",
|
||||
486154966: "IFCWINDOWSTANDARDCASE",
|
||||
629592764: "IFCLIGHTFIXTURE",
|
||||
630975310: "IFCUNITARYCONTROLELEMENT",
|
||||
635142910: "IFCCABLECARRIERFITTING",
|
||||
639361253: "IFCCOIL",
|
||||
647756555: "IFCFASTENER",
|
||||
707683696: "IFCFLOWSTORAGEDEVICE",
|
||||
738039164: "IFCPROTECTIVEDEVICE",
|
||||
753842376: "IFCBEAM",
|
||||
812556717: "IFCTANK",
|
||||
819412036: "IFCFILTER",
|
||||
843113511: "IFCCOLUMN",
|
||||
862014818: "IFCELECTRICDISTRIBUTIONBOARD",
|
||||
900683007: "IFCFOOTING",
|
||||
905975707: "IFCCOLUMNSTANDARDCASE",
|
||||
926996030: "IFCVOIDINGFEATURE",
|
||||
979691226: "IFCREINFORCINGBAR",
|
||||
987401354: "IFCFLOWSEGMENT",
|
||||
1003880860: "IFCELECTRICTIMECONTROL",
|
||||
1051757585: "IFCCABLEFITTING",
|
||||
1052013943: "IFCDISTRIBUTIONCHAMBERELEMENT",
|
||||
1062813311: "IFCDISTRIBUTIONCONTROLELEMENT",
|
||||
1073191201: "IFCMEMBER",
|
||||
1095909175: "IFCBUILDINGELEMENTPROXY",
|
||||
1156407060: "IFCPLATESTANDARDCASE",
|
||||
1162798199: "IFCSWITCHINGDEVICE",
|
||||
1329646415: "IFCSHADINGDEVICE",
|
||||
1335981549: "IFCDISCRETEACCESSORY",
|
||||
1360408905: "IFCDUCTSILENCER",
|
||||
1404847402: "IFCSTACKTERMINAL",
|
||||
1426591983: "IFCFIRESUPPRESSIONTERMINAL",
|
||||
1437502449: "IFCMEDICALDEVICE",
|
||||
1509553395: "IFCFURNITURE",
|
||||
1529196076: "IFCSLAB",
|
||||
1620046519: "IFCTRANSPORTELEMENT",
|
||||
1634111441: "IFCAIRTERMINAL",
|
||||
1658829314: "IFCENERGYCONVERSIONDEVICE",
|
||||
1677625105: "IFCCIVILELEMENT",
|
||||
1687234759: "IFCPILE",
|
||||
1904799276: "IFCELECTRICAPPLIANCE",
|
||||
1911478936: "IFCMEMBERSTANDARDCASE",
|
||||
1945004755: "IFCDISTRIBUTIONELEMENT",
|
||||
1973544240: "IFCCOVERING",
|
||||
1999602285: "IFCSPACEHEATER",
|
||||
2016517767: "IFCROOF",
|
||||
2056796094: "IFCAIRTOAIRHEATRECOVERY",
|
||||
2058353004: "IFCFLOWCONTROLLER",
|
||||
2068733104: "IFCHUMIDIFIER",
|
||||
2176052936: "IFCJUNCTIONBOX",
|
||||
2188021234: "IFCFLOWMETER",
|
||||
2223149337: "IFCFLOWTERMINAL",
|
||||
2262370178: "IFCRAILING",
|
||||
2272882330: "IFCCONDENSER",
|
||||
2295281155: "IFCPROTECTIVEDEVICETRIPPINGUNIT",
|
||||
2320036040: "IFCREINFORCINGMESH",
|
||||
2347447852: "IFCTENDONANCHOR",
|
||||
2391383451: "IFCVIBRATIONISOLATOR",
|
||||
2391406946: "IFCWALL",
|
||||
2474470126: "IFCMOTORCONNECTION",
|
||||
2769231204: "IFCVIRTUALELEMENT",
|
||||
2814081492: "IFCENGINE",
|
||||
2906023776: "IFCBEAMSTANDARDCASE",
|
||||
2938176219: "IFCBURNER",
|
||||
2979338954: "IFCBUILDINGELEMENTPART",
|
||||
3024970846: "IFCRAMP",
|
||||
3026737570: "IFCTUBEBUNDLE",
|
||||
3027962421: "IFCSLABSTANDARDCASE",
|
||||
3040386961: "IFCDISTRIBUTIONFLOWELEMENT",
|
||||
3053780830: "IFCSANITARYTERMINAL",
|
||||
3079942009: "IFCOPENINGSTANDARDCASE",
|
||||
3087945054: "IFCALARM",
|
||||
3101698114: "IFCSURFACEFEATURE",
|
||||
3127900445: "IFCSLABELEMENTEDCASE",
|
||||
3132237377: "IFCFLOWMOVINGDEVICE",
|
||||
3171933400: "IFCPLATE",
|
||||
3221913625: "IFCCOMMUNICATIONSAPPLIANCE",
|
||||
3242481149: "IFCDOORSTANDARDCASE",
|
||||
3283111854: "IFCRAMPFLIGHT",
|
||||
3296154744: "IFCCHIMNEY",
|
||||
3304561284: "IFCWINDOW",
|
||||
3310460725: "IFCELECTRICFLOWSTORAGEDEVICE",
|
||||
3319311131: "IFCHEATEXCHANGER",
|
||||
3415622556: "IFCFAN",
|
||||
3420628829: "IFCSOLARDEVICE",
|
||||
3493046030: "IFCGEOGRAPHICELEMENT",
|
||||
3495092785: "IFCCURTAINWALL",
|
||||
3508470533: "IFCFLOWTREATMENTDEVICE",
|
||||
3512223829: "IFCWALLSTANDARDCASE",
|
||||
3518393246: "IFCDUCTSEGMENT",
|
||||
3571504051: "IFCCOMPRESSOR",
|
||||
3588315303: "IFCOPENINGELEMENT",
|
||||
3612865200: "IFCPIPESEGMENT",
|
||||
3640358203: "IFCCOOLINGTOWER",
|
||||
3651124850: "IFCPROJECTIONELEMENT",
|
||||
3694346114: "IFCOUTLET",
|
||||
3747195512: "IFCEVAPORATIVECOOLER",
|
||||
3758799889: "IFCCABLECARRIERSEGMENT",
|
||||
3824725483: "IFCTENDON",
|
||||
3825984169: "IFCTRANSFORMER",
|
||||
3902619387: "IFCCHILLER",
|
||||
4074379575: "IFCDAMPER",
|
||||
4086658281: "IFCSENSOR",
|
||||
4123344466: "IFCELEMENTASSEMBLY",
|
||||
4136498852: "IFCCOOLEDBEAM",
|
||||
4156078855: "IFCWALLELEMENTEDCASE",
|
||||
4175244083: "IFCINTERCEPTOR",
|
||||
4207607924: "IFCVALVE",
|
||||
4217484030: "IFCCABLESEGMENT",
|
||||
4237592921: "IFCWASTETERMINAL",
|
||||
4252922144: "IFCSTAIRFLIGHT",
|
||||
4278956645: "IFCFLOWFITTING",
|
||||
4288193352: "IFCACTUATOR",
|
||||
4292641817: "IFCUNITARYEQUIPMENT",
|
||||
3009204131: "IFCGRID"
|
||||
};
|
||||
|
||||
// dist/helpers/properties.ts
|
||||
var PropsNames = {
|
||||
aggregates: {
|
||||
name: IFCRELAGGREGATES,
|
||||
relating: "RelatingObject",
|
||||
related: "RelatedObjects",
|
||||
key: "children"
|
||||
},
|
||||
spatial: {
|
||||
name: IFCRELCONTAINEDINSPATIALSTRUCTURE,
|
||||
relating: "RelatingStructure",
|
||||
related: "RelatedElements",
|
||||
key: "children"
|
||||
},
|
||||
psets: {
|
||||
name: IFCRELDEFINESBYPROPERTIES,
|
||||
relating: "RelatingPropertyDefinition",
|
||||
related: "RelatedObjects",
|
||||
key: "hasPsets"
|
||||
},
|
||||
materials: {
|
||||
name: IFCRELASSOCIATESMATERIAL,
|
||||
relating: "RelatingMaterial",
|
||||
related: "RelatedObjects",
|
||||
key: "hasMaterial"
|
||||
},
|
||||
type: {
|
||||
name: IFCRELDEFINESBYTYPE,
|
||||
relating: "RelatingType",
|
||||
related: "RelatedObjects",
|
||||
key: "hasType"
|
||||
}
|
||||
};
|
||||
var Properties = class {
|
||||
constructor(api) {
|
||||
this.api = api;
|
||||
}
|
||||
getItemProperties(modelID, id, recursive = false) {
|
||||
return __async(this, null, function* () {
|
||||
return this.api.GetLine(modelID, id, recursive);
|
||||
});
|
||||
}
|
||||
getPropertySets(modelID, elementID, recursive = false) {
|
||||
return __async(this, null, function* () {
|
||||
return yield this.getProperty(modelID, elementID, recursive, PropsNames.psets);
|
||||
});
|
||||
}
|
||||
getTypeProperties(modelID, elementID, recursive = false) {
|
||||
return __async(this, null, function* () {
|
||||
return yield this.getProperty(modelID, elementID, recursive, PropsNames.type);
|
||||
});
|
||||
}
|
||||
getMaterialsProperties(modelID, elementID, recursive = false) {
|
||||
return __async(this, null, function* () {
|
||||
return yield this.getProperty(modelID, elementID, recursive, PropsNames.materials);
|
||||
});
|
||||
}
|
||||
getSpatialStructure(modelID, includeProperties) {
|
||||
return __async(this, null, function* () {
|
||||
yield this.getAllTypesOfModel(modelID);
|
||||
const chunks = yield this.getSpatialTreeChunks(modelID);
|
||||
const allLines = yield this.api.GetLineIDsWithType(modelID, IFCPROJECT);
|
||||
const projectID = allLines.get(0);
|
||||
const project = Properties.newIfcProject(projectID);
|
||||
yield this.getSpatialNode(modelID, project, chunks, includeProperties);
|
||||
this.cleanupTypes();
|
||||
return project;
|
||||
});
|
||||
}
|
||||
getAllItemsOfType(modelID, type, verbose) {
|
||||
return __async(this, null, function* () {
|
||||
let items = [];
|
||||
const lines = yield this.api.GetLineIDsWithType(modelID, type);
|
||||
for (let i = 0; i < lines.size(); i++)
|
||||
items.push(lines.get(i));
|
||||
if (!verbose)
|
||||
return items;
|
||||
const result = [];
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
result.push(yield this.api.GetLine(modelID, items[i]));
|
||||
}
|
||||
return result;
|
||||
});
|
||||
}
|
||||
getProperty(modelID, elementID, recursive = false, propName) {
|
||||
return __async(this, null, function* () {
|
||||
const propSetIds = yield this.getAllRelatedItemsOfType(modelID, elementID, propName);
|
||||
const result = [];
|
||||
for (let i = 0; i < propSetIds.length; i++) {
|
||||
result.push(yield this.api.GetLine(modelID, propSetIds[i], recursive));
|
||||
}
|
||||
return result;
|
||||
});
|
||||
}
|
||||
getChunks(modelID, chunks, propNames) {
|
||||
return __async(this, null, function* () {
|
||||
const relation = yield this.api.GetLineIDsWithType(modelID, propNames.name);
|
||||
for (let i = 0; i < relation.size(); i++) {
|
||||
const rel = yield this.api.GetLine(modelID, relation.get(i), false);
|
||||
this.saveChunk(chunks, propNames, rel);
|
||||
}
|
||||
});
|
||||
}
|
||||
static isRelated(id, rel, propNames) {
|
||||
const relatedItems = rel[propNames.related];
|
||||
if (Array.isArray(relatedItems)) {
|
||||
const values = relatedItems.map((item) => item.value);
|
||||
return values.includes(id);
|
||||
}
|
||||
return relatedItems.value === id;
|
||||
}
|
||||
static newIfcProject(id) {
|
||||
return {
|
||||
expressID: id,
|
||||
type: "IFCPROJECT",
|
||||
children: []
|
||||
};
|
||||
}
|
||||
getSpatialNode(modelID, node, treeChunks, includeProperties) {
|
||||
return __async(this, null, function* () {
|
||||
yield this.getChildren(modelID, node, treeChunks, PropsNames.aggregates, includeProperties);
|
||||
yield this.getChildren(modelID, node, treeChunks, PropsNames.spatial, includeProperties);
|
||||
});
|
||||
}
|
||||
getChildren(modelID, node, treeChunks, propNames, includeProperties) {
|
||||
return __async(this, null, function* () {
|
||||
const children = treeChunks[node.expressID];
|
||||
if (children == void 0)
|
||||
return;
|
||||
const prop = propNames.key;
|
||||
const nodes = [];
|
||||
for (let i = 0; i < children.length; i++) {
|
||||
const child = children[i];
|
||||
let node2 = this.newNode(child);
|
||||
if (includeProperties) {
|
||||
const properties = yield this.getItemProperties(modelID, node2.expressID);
|
||||
node2 = __spreadValues(__spreadValues({}, properties), node2);
|
||||
}
|
||||
yield this.getSpatialNode(modelID, node2, treeChunks, includeProperties);
|
||||
nodes.push(node2);
|
||||
}
|
||||
node[prop] = nodes;
|
||||
});
|
||||
}
|
||||
newNode(id) {
|
||||
const typeName = this.getNodeType(id);
|
||||
return {
|
||||
expressID: id,
|
||||
type: typeName,
|
||||
children: []
|
||||
};
|
||||
}
|
||||
getNodeType(id) {
|
||||
const typeID = this.types[id];
|
||||
return IfcElements2[typeID];
|
||||
}
|
||||
getSpatialTreeChunks(modelID) {
|
||||
return __async(this, null, function* () {
|
||||
const treeChunks = {};
|
||||
yield this.getChunks(modelID, treeChunks, PropsNames.aggregates);
|
||||
yield this.getChunks(modelID, treeChunks, PropsNames.spatial);
|
||||
return treeChunks;
|
||||
});
|
||||
}
|
||||
saveChunk(chunks, propNames, rel) {
|
||||
const relating = rel[propNames.relating].value;
|
||||
const related = rel[propNames.related].map((r) => r.value);
|
||||
if (chunks[relating] == void 0) {
|
||||
chunks[relating] = related;
|
||||
} else {
|
||||
chunks[relating] = chunks[relating].concat(related);
|
||||
}
|
||||
}
|
||||
getRelated(rel, propNames, IDs) {
|
||||
const element = rel[propNames.relating];
|
||||
if (!Array.isArray(element))
|
||||
IDs.push(element.value);
|
||||
else
|
||||
element.forEach((ele) => IDs.push(ele.value));
|
||||
}
|
||||
getAllRelatedItemsOfType(modelID, id, propNames) {
|
||||
return __async(this, null, function* () {
|
||||
const lines = yield this.api.GetLineIDsWithType(modelID, propNames.name);
|
||||
const IDs = [];
|
||||
for (let i = 0; i < lines.size(); i++) {
|
||||
const rel = yield this.api.GetLine(modelID, lines.get(i));
|
||||
const isRelated = Properties.isRelated(id, rel, propNames);
|
||||
if (isRelated)
|
||||
this.getRelated(rel, propNames, IDs);
|
||||
}
|
||||
return IDs;
|
||||
});
|
||||
}
|
||||
cleanupTypes() {
|
||||
this.types = {};
|
||||
}
|
||||
getAllTypesOfModel(modelID) {
|
||||
return __async(this, null, function* () {
|
||||
const result = {};
|
||||
const elements = Object.keys(IfcElements2).map((e) => parseInt(e));
|
||||
for (let i = 0; i < elements.length; i++) {
|
||||
const element = elements[i];
|
||||
const lines = yield this.api.GetLineIDsWithType(modelID, element);
|
||||
const size = lines.size();
|
||||
for (let i2 = 0; i2 < size; i2++)
|
||||
result[lines.get(i2)] = element;
|
||||
}
|
||||
this.types = result;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// dist/web-ifc-api.ts
|
||||
var WebIFCWasm;
|
||||
if (self.crossOriginIsolated) {
|
||||
if (typeof self !== "undefined" && self.crossOriginIsolated) {
|
||||
WebIFCWasm = require_web_ifc_mt();
|
||||
} else {
|
||||
WebIFCWasm = require_web_ifc();
|
||||
@ -51637,12 +51890,13 @@ var LINE_END = 9;
|
||||
function ms() {
|
||||
return new Date().getTime();
|
||||
}
|
||||
var IfcAPI = class {
|
||||
var IfcAPI2 = class {
|
||||
constructor() {
|
||||
this.wasmModule = void 0;
|
||||
this.fs = void 0;
|
||||
this.wasmPath = "";
|
||||
this.ifcGuidMap = new Map();
|
||||
this.properties = new Properties(this);
|
||||
}
|
||||
Init(customLocateFileHandler) {
|
||||
return __async(this, null, function* () {
|
||||
@ -51661,7 +51915,6 @@ var IfcAPI = class {
|
||||
});
|
||||
}
|
||||
OpenModel(data, settings) {
|
||||
this.wasmModule["FS_createDataFile"]("/", "filename", data, true, true, true);
|
||||
let s = __spreadValues({
|
||||
COORDINATE_TO_ORIGIN: false,
|
||||
USE_FAST_BOOLS: false,
|
||||
@ -51670,8 +51923,15 @@ var IfcAPI = class {
|
||||
CIRCLE_SEGMENTS_HIGH: 12,
|
||||
BOOL_ABORT_THRESHOLD: 1e4
|
||||
}, settings);
|
||||
let result = this.wasmModule.OpenModel(s);
|
||||
this.wasmModule["FS_unlink"]("/filename");
|
||||
let offsetInSrc = 0;
|
||||
let result = this.wasmModule.OpenModel(s, (destPtr, destSize) => {
|
||||
let srcSize = Math.min(data.byteLength - offsetInSrc, destSize);
|
||||
let dest = this.wasmModule.HEAPU8.subarray(destPtr, destPtr + destSize);
|
||||
let src = data.subarray(offsetInSrc, offsetInSrc + srcSize);
|
||||
dest.set(src);
|
||||
offsetInSrc += srcSize;
|
||||
return srcSize;
|
||||
});
|
||||
return result;
|
||||
}
|
||||
CreateModel(settings) {
|
||||
|
||||
Binary file not shown.
16
package.json
16
package.json
@ -5,12 +5,12 @@
|
||||
"repository": "github:kovacsv/Online3DViewer",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"clean-css-cli": "^5.3.3",
|
||||
"eslint": "^7.30.0",
|
||||
"clean-css-cli": "^5.5.0",
|
||||
"eslint": "^8.4.1",
|
||||
"fantasticon": "^1.2.2",
|
||||
"google-closure-compiler": "^20210302.0.0",
|
||||
"http-server": "^0.12.3",
|
||||
"mocha": "^8.3.2",
|
||||
"google-closure-compiler": "^20211201.0.0",
|
||||
"http-server": "^14.0.0",
|
||||
"mocha": "^9.1.3",
|
||||
"oslllo-svg-fixer": "^1.4.0",
|
||||
"rewire": "^5.0.0",
|
||||
"svgo": "^2.3.1"
|
||||
@ -25,11 +25,11 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@simonwep/pickr": "1.8.2",
|
||||
"draco3d": "1.4.3",
|
||||
"draco3d": "1.5.0",
|
||||
"fflate": "0.7.1",
|
||||
"rhino3dm": "7.11.1",
|
||||
"three": "0.135.0",
|
||||
"web-ifc": "0.0.29"
|
||||
"web-ifc": "0.0.30"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"env": {
|
||||
@ -45,7 +45,7 @@
|
||||
"THREE": "readonly",
|
||||
"DracoDecoderModule": "readonly",
|
||||
"rhino3dm": "readonly",
|
||||
"IfcAPI": "readonly"
|
||||
"IfcAPI2": "readonly"
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 12
|
||||
|
||||
@ -32,7 +32,7 @@ OV.ImporterIfc = class extends OV.ImporterBase
|
||||
{
|
||||
if (this.ifc === null) {
|
||||
OV.LoadExternalLibrary ('loaders/web-ifc-api.js').then (() => {
|
||||
this.ifc = new IfcAPI ();
|
||||
this.ifc = new IfcAPI2 ();
|
||||
this.ifc.Init ().then (() => {
|
||||
this.ImportIfcContent (fileContent);
|
||||
onFinish ();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user