@glowjs/core
Version:
GlowJS数字孪生引擎核心库。
1 lines • 3.93 MB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.GLOW=t():e.GLOW=t()}(self,()=>(()=>{var __webpack_modules__={854:e=>{"use strict";function t(e,t,n){n=n||2;var a,o,A,c,d,g,f,_=t&&t.length,p=_?t[0]*n:e.length,m=i(e,0,p,n,!0),C=[];if(!m||m.next===m.prev)return C;if(_&&(m=function(e,t,r,n){var a,o,A,c=[];for(a=0,o=t.length;a<o;a++)(A=i(e,t[a]*n,a<o-1?t[a+1]*n:e.length,n,!1))===A.next&&(A.steiner=!0),c.push(u(A));for(c.sort(h),a=0;a<c.length;a++)l(c[a],r),r=s(r,r.next);return r}(e,t,m,n)),e.length>80*n){a=A=e[0],o=c=e[1];for(var I=n;I<p;I+=n)(d=e[I])<a&&(a=d),(g=e[I+1])<o&&(o=g),d>A&&(A=d),g>c&&(c=g);f=0!==(f=Math.max(A-a,c-o))?1/f:0}return r(m,C,n,a,o,f),C}function i(e,t,i,s,r){var n,a;if(r===S(e,t,i,s)>0)for(n=t;n<i;n+=s)a=y(n,e[n],e[n+1],a);else for(n=i-s;n>=t;n-=s)a=y(n,e[n],e[n+1],a);return a&&p(a,a.next)&&(b(a),a=a.next),a}function s(e,t){if(!e)return e;t||(t=e);var i,s=e;do{if(i=!1,s.steiner||!p(s,s.next)&&0!==_(s.prev,s,s.next))s=s.next;else{if(b(s),(s=t=s.prev)===s.next)break;i=!0}}while(i||s!==t);return t}function r(e,t,i,h,l,c,u){if(e){!u&&c&&function(e,t,i,s){var r=e;do{null===r.z&&(r.z=d(r.x,r.y,t,i,s)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==e);r.prevZ.nextZ=null,r.prevZ=null,function(e){var t,i,s,r,n,a,o,A,h=1;do{for(i=e,e=null,n=null,a=0;i;){for(a++,s=i,o=0,t=0;t<h&&(o++,s=s.nextZ);t++);for(A=h;o>0||A>0&&s;)0!==o&&(0===A||!s||i.z<=s.z)?(r=i,i=i.nextZ,o--):(r=s,s=s.nextZ,A--),n?n.nextZ=r:e=r,r.prevZ=n,n=r;i=s}n.nextZ=null,h*=2}while(a>1)}(r)}(e,h,l,c);for(var g,f,_=e;e.prev!==e.next;)if(g=e.prev,f=e.next,c?a(e,h,l,c):n(e))t.push(g.i/i),t.push(e.i/i),t.push(f.i/i),b(e),e=f.next,_=f.next;else if((e=f)===_){u?1===u?r(e=o(s(e),t,i),t,i,h,l,c,2):2===u&&A(e,t,i,h,l,c):r(s(e),t,i,h,l,c,1);break}}}function n(e){var t=e.prev,i=e,s=e.next;if(_(t,i,s)>=0)return!1;for(var r=e.next.next;r!==e.prev;){if(g(t.x,t.y,i.x,i.y,s.x,s.y,r.x,r.y)&&_(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function a(e,t,i,s){var r=e.prev,n=e,a=e.next;if(_(r,n,a)>=0)return!1;for(var o=r.x<n.x?r.x<a.x?r.x:a.x:n.x<a.x?n.x:a.x,A=r.y<n.y?r.y<a.y?r.y:a.y:n.y<a.y?n.y:a.y,h=r.x>n.x?r.x>a.x?r.x:a.x:n.x>a.x?n.x:a.x,l=r.y>n.y?r.y>a.y?r.y:a.y:n.y>a.y?n.y:a.y,c=d(o,A,t,i,s),u=d(h,l,t,i,s),f=e.prevZ,p=e.nextZ;f&&f.z>=c&&p&&p.z<=u;){if(f!==e.prev&&f!==e.next&&g(r.x,r.y,n.x,n.y,a.x,a.y,f.x,f.y)&&_(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,p!==e.prev&&p!==e.next&&g(r.x,r.y,n.x,n.y,a.x,a.y,p.x,p.y)&&_(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;f&&f.z>=c;){if(f!==e.prev&&f!==e.next&&g(r.x,r.y,n.x,n.y,a.x,a.y,f.x,f.y)&&_(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;p&&p.z<=u;){if(p!==e.prev&&p!==e.next&&g(r.x,r.y,n.x,n.y,a.x,a.y,p.x,p.y)&&_(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function o(e,t,i){var r=e;do{var n=r.prev,a=r.next.next;!p(n,a)&&m(n,r,r.next,a)&&E(n,a)&&E(a,n)&&(t.push(n.i/i),t.push(r.i/i),t.push(a.i/i),b(r),b(r.next),r=e=a),r=r.next}while(r!==e);return s(r)}function A(e,t,i,n,a,o){var A=e;do{for(var h=A.next.next;h!==A.prev;){if(A.i!==h.i&&f(A,h)){var l=B(A,h);return A=s(A,A.next),l=s(l,l.next),r(A,t,i,n,a,o),void r(l,t,i,n,a,o)}h=h.next}A=A.next}while(A!==e)}function h(e,t){return e.x-t.x}function l(e,t){if(t=function(e,t){var i,s=t,r=e.x,n=e.y,a=-1/0;do{if(n<=s.y&&n>=s.next.y&&s.next.y!==s.y){var o=s.x+(n-s.y)*(s.next.x-s.x)/(s.next.y-s.y);if(o<=r&&o>a){if(a=o,o===r){if(n===s.y)return s;if(n===s.next.y)return s.next}i=s.x<s.next.x?s:s.next}}s=s.next}while(s!==t);if(!i)return null;if(r===a)return i;var A,h=i,l=i.x,d=i.y,u=1/0;s=i;do{r>=s.x&&s.x>=l&&r!==s.x&&g(n<d?r:a,n,l,d,n<d?a:r,n,s.x,s.y)&&(A=Math.abs(n-s.y)/(r-s.x),E(s,e)&&(A<u||A===u&&(s.x>i.x||s.x===i.x&&c(i,s)))&&(i=s,u=A)),s=s.next}while(s!==h);return i}(e,t),t){var i=B(t,e);s(t,t.next),s(i,i.next)}}function c(e,t){return _(e.prev,e,t.prev)<0&&_(t.next,e,e.next)<0}function d(e,t,i,s,r){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)*r)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-s)*r)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function u(e){var t=e,i=e;do{(t.x<i.x||t.x===i.x&&t.y<i.y)&&(i=t),t=t.next}while(t!==e);return i}function g(e,t,i,s,r,n,a,o){return(r-a)*(t-o)-(e-a)*(n-o)>=0&&(e-a)*(s-o)-(i-a)*(t-o)>=0&&(i-a)*(n-o)-(r-a)*(s-o)>=0}function f(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var i=e;do{if(i.i!==e.i&&i.next.i!==e.i&&i.i!==t.i&&i.next.i!==t.i&&m(i,i.next,e,t))return!0;i=i.next}while(i!==e);return!1}(e,t)&&(E(e,t)&&E(t,e)&&function(e,t){var i=e,s=!1,r=(e.x+t.x)/2,n=(e.y+t.y)/2;do{i.y>n!=i.next.y>n&&i.next.y!==i.y&&r<(i.next.x-i.x)*(n-i.y)/(i.next.y-i.y)+i.x&&(s=!s),i=i.next}while(i!==e);return s}(e,t)&&(_(e.prev,e,t.prev)||_(e,t.prev,t))||p(e,t)&&_(e.prev,e,e.next)>0&&_(t.prev,t,t.next)>0)}function _(e,t,i){return(t.y-e.y)*(i.x-t.x)-(t.x-e.x)*(i.y-t.y)}function p(e,t){return e.x===t.x&&e.y===t.y}function m(e,t,i,s){var r=I(_(e,t,i)),n=I(_(e,t,s)),a=I(_(i,s,e)),o=I(_(i,s,t));return r!==n&&a!==o||(!(0!==r||!C(e,i,t))||(!(0!==n||!C(e,s,t))||(!(0!==a||!C(i,e,s))||!(0!==o||!C(i,t,s)))))}function C(e,t,i){return t.x<=Math.max(e.x,i.x)&&t.x>=Math.min(e.x,i.x)&&t.y<=Math.max(e.y,i.y)&&t.y>=Math.min(e.y,i.y)}function I(e){return e>0?1:e<0?-1:0}function E(e,t){return _(e.prev,e,e.next)<0?_(e,t,e.next)>=0&&_(e,e.prev,t)>=0:_(e,t,e.prev)<0||_(e,e.next,t)<0}function B(e,t){var i=new v(e.i,e.x,e.y),s=new v(t.i,t.x,t.y),r=e.next,n=t.prev;return e.next=t,t.prev=e,i.next=r,r.prev=i,s.next=i,i.prev=s,n.next=s,s.prev=n,s}function y(e,t,i,s){var r=new v(e,t,i);return s?(r.next=s.next,r.prev=s,s.next.prev=r,s.next=r):(r.prev=r,r.next=r),r}function b(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function v(e,t,i){this.i=e,this.x=t,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function S(e,t,i,s){for(var r=0,n=t,a=i-s;n<i;n+=s)r+=(e[a]-e[n])*(e[n+1]+e[a+1]),a=n;return r}e.exports=t,e.exports.default=t,t.deviation=function(e,t,i,s){var r=t&&t.length,n=r?t[0]*i:e.length,a=Math.abs(S(e,0,n,i));if(r)for(var o=0,A=t.length;o<A;o++){var h=t[o]*i,l=o<A-1?t[o+1]*i:e.length;a-=Math.abs(S(e,h,l,i))}var c=0;for(o=0;o<s.length;o+=3){var d=s[o]*i,u=s[o+1]*i,g=s[o+2]*i;c+=Math.abs((e[d]-e[g])*(e[u+1]-e[d+1])-(e[d]-e[u])*(e[g+1]-e[d+1]))}return 0===a&&0===c?0:Math.abs((c-a)/a)},t.flatten=function(e){for(var t=e[0][0].length,i={vertices:[],holes:[],dimensions:t},s=0,r=0;r<e.length;r++){for(var n=0;n<e[r].length;n++)for(var a=0;a<t;a++)i.vertices.push(e[r][n][a]);r>0&&(s+=e[r-1].length,i.holes.push(s))}return i}},241:function(e,t,i){var s,r,n;n=function(){var e,t={defaultRadius:40,defaultRenderer:"canvas2d",defaultGradient:{.25:"rgb(0,0,255)",.55:"rgb(0,255,0)",.85:"yellow",1:"rgb(255,0,0)"},defaultMaxOpacity:1,defaultMinOpacity:0,defaultBlur:.85,defaultXField:"x",defaultYField:"y",defaultValueField:"value",plugins:{}},i=function(){var e=function(e){this._coordinator={},this._data=[],this._radi=[],this._min=10,this._max=1,this._xField=e.xField||e.defaultXField,this._yField=e.yField||e.defaultYField,this._valueField=e.valueField||e.defaultValueField,e.radius&&(this._cfgRadius=e.radius)},i=t.defaultRadius;return e.prototype={_organiseData:function(e,t){var s=e[this._xField],r=e[this._yField],n=this._radi,a=this._data,o=this._max,A=this._min,h=e[this._valueField]||1,l=e.radius||this._cfgRadius||i;a[s]||(a[s]=[],n[s]=[]),a[s][r]?a[s][r]+=h:(a[s][r]=h,n[s][r]=l);var c=a[s][r];return c>o?(t?this.setDataMax(c):this._max=c,!1):c<A?(t?this.setDataMin(c):this._min=c,!1):{x:s,y:r,value:h,radius:l,min:A,max:o}},_unOrganizeData:function(){var e=[],t=this._data,i=this._radi;for(var s in t)for(var r in t[s])e.push({x:s,y:r,radius:i[s][r],value:t[s][r]});return{min:this._min,max:this._max,data:e}},_onExtremaChange:function(){this._coordinator.emit("extremachange",{min:this._min,max:this._max})},addData:function(){if(arguments[0].length>0)for(var e=arguments[0],t=e.length;t--;)this.addData.call(this,e[t]);else{var i=this._organiseData(arguments[0],!0);i&&(0===this._data.length&&(this._min=this._max=i.value),this._coordinator.emit("renderpartial",{min:this._min,max:this._max,data:[i]}))}return this},setData:function(e){var t=e.data,i=t.length;this._data=[],this._radi=[];for(var s=0;s<i;s++)this._organiseData(t[s],!1);return this._max=e.max,this._min=e.min||0,this._onExtremaChange(),this._coordinator.emit("renderall",this._getInternalData()),this},removeData:function(){},setDataMax:function(e){return this._max=e,this._onExtremaChange(),this._coordinator.emit("renderall",this._getInternalData()),this},setDataMin:function(e){return this._min=e,this._onExtremaChange(),this._coordinator.emit("renderall",this._getInternalData()),this},setCoordinator:function(e){this._coordinator=e},_getInternalData:function(){return{max:this._max,min:this._min,data:this._data,radi:this._radi}},getData:function(){return this._unOrganizeData()}},e}(),s=function(){var e=function(e){var t=e.gradient||e.defaultGradient,i=document.createElement("canvas"),s=i.getContext("2d");i.width=256,i.height=1;var r=s.createLinearGradient(0,0,256,1);for(var n in t)r.addColorStop(n,t[n]);return s.fillStyle=r,s.fillRect(0,0,256,1),s.getImageData(0,0,256,1).data},t=function(e,t){var i=document.createElement("canvas"),s=i.getContext("2d"),r=e,n=e;if(i.width=i.height=2*e,1==t)s.beginPath(),s.arc(r,n,e,0,2*Math.PI,!1),s.fillStyle="rgba(0,0,0,1)",s.fill();else{var a=s.createRadialGradient(r,n,e*t,r,n,e);a.addColorStop(0,"rgba(0,0,0,1)"),a.addColorStop(1,"rgba(0,0,0,0)"),s.fillStyle=a,s.fillRect(0,0,2*e,2*e)}return i};function i(t){var i=this.shadowCanvas=document.createElement("canvas"),s=this.canvas=t.canvas||document.createElement("canvas");this._renderBoundaries=[1e4,1e4,0,0],s.className="heatmap-canvas",this.shadowCtx=i.getContext("2d",{willReadFrequently:!0}),this.ctx=s.getContext("2d"),s.style.cssText=i.style.cssText="position:absolute;left:0;top:0;",this._palette=e(t),this._templates={},this._setStyles(t)}return i.prototype={renderPartial:function(e){e.data.length>0&&(this._drawAlpha(e),this._colorize())},renderAll:function(e){this._clear(),e.data.length>0&&(this._drawAlpha(function(e){for(var t=[],i=e.min,s=e.max,r=e.radi,n=(e=e.data,Object.keys(e)),a=n.length;a--;)for(var o=n[a],A=Object.keys(e[o]),h=A.length;h--;){var l=A[h],c=e[o][l],d=r[o][l];t.push({x:o,y:l,value:c,radius:d})}return{min:i,max:s,data:t}}(e)),this._colorize())},_updateGradient:function(t){this._palette=e(t)},updateConfig:function(e){e.gradient&&this._updateGradient(e),this._setStyles(e)},setDimensions:function(e,t){this._width=e,this._height=t,this.canvas.width=this.shadowCanvas.width=e,this.canvas.height=this.shadowCanvas.height=t},_clear:function(){this.shadowCtx.clearRect(0,0,this._width,this._height),this.ctx.clearRect(0,0,this._width,this._height)},_setStyles:function(e){this._blur=0==e.blur?0:e.blur||e.defaultBlur,e.backgroundColor&&(this.canvas.style.backgroundColor=e.backgroundColor),this._width=this.canvas.width=this.shadowCanvas.width=e.width||this._width,this._height=this.canvas.height=this.shadowCanvas.height=e.height||this._height,this._opacity=255*(e.opacity||0),this._maxOpacity=255*(e.maxOpacity||e.defaultMaxOpacity),this._minOpacity=255*(e.minOpacity||e.defaultMinOpacity),this._useGradientOpacity=!!e.useGradientOpacity},_drawAlpha:function(e){for(var i=this._min=e.min,s=this._max=e.max,r=(e=e.data||[]).length,n=1-this._blur;r--;){var a,o=e[r],A=o.x,h=o.y,l=o.radius,c=Math.min(o.value,s),d=A-l,u=h-l,g=this.shadowCtx;this._templates[l]?a=this._templates[l]:this._templates[l]=a=t(l,n);var f=(c-i)/(s-i);g.globalAlpha=f<.01?.01:f,g.drawImage(a,d,u),d<this._renderBoundaries[0]&&(this._renderBoundaries[0]=d),u<this._renderBoundaries[1]&&(this._renderBoundaries[1]=u),d+2*l>this._renderBoundaries[2]&&(this._renderBoundaries[2]=d+2*l),u+2*l>this._renderBoundaries[3]&&(this._renderBoundaries[3]=u+2*l)}},_colorize:function(){var e=this._renderBoundaries[0],t=this._renderBoundaries[1],i=this._renderBoundaries[2]-e,s=this._renderBoundaries[3]-t,r=this._width,n=this._height,a=this._opacity,o=this._maxOpacity,A=this._minOpacity,h=this._useGradientOpacity;e<0&&(e=0),t<0&&(t=0),e+i>r&&(i=r-e),t+s>n&&(s=n-t);for(var l=this.shadowCtx.getImageData(e,t,i,s),c=l.data,d=c.length,u=this._palette,g=3;g<d;g+=4){var f,_=c[g],p=4*_;p&&(f=a>0?a:_<o?_<A?A:_:o,c[g-3]=u[p],c[g-2]=u[p+1],c[g-1]=u[p+2],c[g]=h?u[p+3]:f)}this.ctx.putImageData(l,e,t),this._renderBoundaries=[1e3,1e3,0,0]},getValueAt:function(e){var t=this.shadowCtx.getImageData(e.x,e.y,1,1).data[3],i=this._max,s=this._min;return Math.abs(i-s)*(t/255)|0},getDataURL:function(){return this.canvas.toDataURL()}},i}(),r=(e=!1,"canvas2d"===t.defaultRenderer&&(e=s),e),n=function(){for(var e={},t=arguments.length,i=0;i<t;i++){var s=arguments[i];for(var r in s)e[r]=s[r]}return e},a=function(){var e=function(){function e(){this.cStore={}}return e.prototype={on:function(e,t,i){var s=this.cStore;s[e]||(s[e]=[]),s[e].push(function(e){return t.call(i,e)})},emit:function(e,t){var i=this.cStore;if(i[e])for(var s=i[e].length,r=0;r<s;r++)(0,i[e][r])(t)}},e}();function s(){var s,a,o,A,h=this._config=n(t,arguments[0]||{});if(this._coordinator=new e,h.plugin){var l=h.plugin;if(!t.plugins[l])throw new Error("Plugin '"+l+"' not found. Maybe it was not registered.");var c=t.plugins[l];this._renderer=new c.renderer(h),this._store=new c.store(h)}else this._renderer=new r(h),this._store=new i(h);a=(s=this)._renderer,o=s._coordinator,A=s._store,o.on("renderpartial",a.renderPartial,a),o.on("renderall",a.renderAll,a),o.on("extremachange",function(e){s._config.onExtremaChange&&s._config.onExtremaChange({min:e.min,max:e.max,gradient:s._config.gradient||s._config.defaultGradient})}),A.setCoordinator(o)}return s.prototype={addData:function(){return this._store.addData.apply(this._store,arguments),this},removeData:function(){return this._store.removeData&&this._store.removeData.apply(this._store,arguments),this},setData:function(){return this._store.setData.apply(this._store,arguments),this},setDataMax:function(){return this._store.setDataMax.apply(this._store,arguments),this},setDataMin:function(){return this._store.setDataMin.apply(this._store,arguments),this},configure:function(e){return this._config=n(this._config,e),this._renderer.updateConfig(this._config),this._coordinator.emit("renderall",this._store._getInternalData()),this},repaint:function(){return this._coordinator.emit("renderall",this._store._getInternalData()),this},getData:function(){return this._store.getData()},getDataURL:function(){return this._renderer.getDataURL()},getValueAt:function(e){return this._store.getValueAt?this._store.getValueAt(e):this._renderer.getValueAt?this._renderer.getValueAt(e):null}},s}();return{create:function(e){return new a(e)},register:function(e,i){t.plugins[e]=i}}},e.exports?e.exports=n():void 0===(r="function"==typeof(s=n)?s.call(t,i,t,e):s)||(e.exports=r)},731:(e,t,i)=>{"use strict";var s=i(276),r=i(289),n=i(262),a=i(577);function o(e,t,i,s){return function(i,r,n){var a=e(e(t(r[1],n[0]),t(-n[1],r[0])),e(t(i[1],r[0]),t(-r[1],i[0]))),o=e(t(i[1],n[0]),t(-n[1],i[0])),A=s(a,o);return A[A.length-1]}}function A(e,t,i,s){return function(r,n,a,o){var A=e(e(i(e(t(a[1],o[0]),t(-o[1],a[0])),n[2]),e(i(e(t(n[1],o[0]),t(-o[1],n[0])),-a[2]),i(e(t(n[1],a[0]),t(-a[1],n[0])),o[2]))),e(i(e(t(n[1],o[0]),t(-o[1],n[0])),r[2]),e(i(e(t(r[1],o[0]),t(-o[1],r[0])),-n[2]),i(e(t(r[1],n[0]),t(-n[1],r[0])),o[2])))),h=e(e(i(e(t(a[1],o[0]),t(-o[1],a[0])),r[2]),e(i(e(t(r[1],o[0]),t(-o[1],r[0])),-a[2]),i(e(t(r[1],a[0]),t(-a[1],r[0])),o[2]))),e(i(e(t(n[1],a[0]),t(-a[1],n[0])),r[2]),e(i(e(t(r[1],a[0]),t(-a[1],r[0])),-n[2]),i(e(t(r[1],n[0]),t(-n[1],r[0])),a[2])))),l=s(A,h);return l[l.length-1]}}function h(e,t,i,s){return function(r,n,a,o,A){var h=e(e(e(i(e(i(e(t(o[1],A[0]),t(-A[1],o[0])),a[2]),e(i(e(t(a[1],A[0]),t(-A[1],a[0])),-o[2]),i(e(t(a[1],o[0]),t(-o[1],a[0])),A[2]))),n[3]),e(i(e(i(e(t(o[1],A[0]),t(-A[1],o[0])),n[2]),e(i(e(t(n[1],A[0]),t(-A[1],n[0])),-o[2]),i(e(t(n[1],o[0]),t(-o[1],n[0])),A[2]))),-a[3]),i(e(i(e(t(a[1],A[0]),t(-A[1],a[0])),n[2]),e(i(e(t(n[1],A[0]),t(-A[1],n[0])),-a[2]),i(e(t(n[1],a[0]),t(-a[1],n[0])),A[2]))),o[3]))),e(i(e(i(e(t(a[1],o[0]),t(-o[1],a[0])),n[2]),e(i(e(t(n[1],o[0]),t(-o[1],n[0])),-a[2]),i(e(t(n[1],a[0]),t(-a[1],n[0])),o[2]))),-A[3]),e(i(e(i(e(t(o[1],A[0]),t(-A[1],o[0])),n[2]),e(i(e(t(n[1],A[0]),t(-A[1],n[0])),-o[2]),i(e(t(n[1],o[0]),t(-o[1],n[0])),A[2]))),r[3]),i(e(i(e(t(o[1],A[0]),t(-A[1],o[0])),r[2]),e(i(e(t(r[1],A[0]),t(-A[1],r[0])),-o[2]),i(e(t(r[1],o[0]),t(-o[1],r[0])),A[2]))),-n[3])))),e(e(i(e(i(e(t(n[1],A[0]),t(-A[1],n[0])),r[2]),e(i(e(t(r[1],A[0]),t(-A[1],r[0])),-n[2]),i(e(t(r[1],n[0]),t(-n[1],r[0])),A[2]))),o[3]),e(i(e(i(e(t(n[1],o[0]),t(-o[1],n[0])),r[2]),e(i(e(t(r[1],o[0]),t(-o[1],r[0])),-n[2]),i(e(t(r[1],n[0]),t(-n[1],r[0])),o[2]))),-A[3]),i(e(i(e(t(a[1],o[0]),t(-o[1],a[0])),n[2]),e(i(e(t(n[1],o[0]),t(-o[1],n[0])),-a[2]),i(e(t(n[1],a[0]),t(-a[1],n[0])),o[2]))),r[3]))),e(i(e(i(e(t(a[1],o[0]),t(-o[1],a[0])),r[2]),e(i(e(t(r[1],o[0]),t(-o[1],r[0])),-a[2]),i(e(t(r[1],a[0]),t(-a[1],r[0])),o[2]))),-n[3]),e(i(e(i(e(t(n[1],o[0]),t(-o[1],n[0])),r[2]),e(i(e(t(r[1],o[0]),t(-o[1],r[0])),-n[2]),i(e(t(r[1],n[0]),t(-n[1],r[0])),o[2]))),a[3]),i(e(i(e(t(n[1],a[0]),t(-a[1],n[0])),r[2]),e(i(e(t(r[1],a[0]),t(-a[1],r[0])),-n[2]),i(e(t(r[1],n[0]),t(-n[1],r[0])),a[2]))),-o[3]))))),l=e(e(e(i(e(i(e(t(o[1],A[0]),t(-A[1],o[0])),a[2]),e(i(e(t(a[1],A[0]),t(-A[1],a[0])),-o[2]),i(e(t(a[1],o[0]),t(-o[1],a[0])),A[2]))),r[3]),i(e(i(e(t(o[1],A[0]),t(-A[1],o[0])),r[2]),e(i(e(t(r[1],A[0]),t(-A[1],r[0])),-o[2]),i(e(t(r[1],o[0]),t(-o[1],r[0])),A[2]))),-a[3])),e(i(e(i(e(t(a[1],A[0]),t(-A[1],a[0])),r[2]),e(i(e(t(r[1],A[0]),t(-A[1],r[0])),-a[2]),i(e(t(r[1],a[0]),t(-a[1],r[0])),A[2]))),o[3]),i(e(i(e(t(a[1],o[0]),t(-o[1],a[0])),r[2]),e(i(e(t(r[1],o[0]),t(-o[1],r[0])),-a[2]),i(e(t(r[1],a[0]),t(-a[1],r[0])),o[2]))),-A[3]))),e(e(i(e(i(e(t(a[1],A[0]),t(-A[1],a[0])),n[2]),e(i(e(t(n[1],A[0]),t(-A[1],n[0])),-a[2]),i(e(t(n[1],a[0]),t(-a[1],n[0])),A[2]))),r[3]),i(e(i(e(t(a[1],A[0]),t(-A[1],a[0])),r[2]),e(i(e(t(r[1],A[0]),t(-A[1],r[0])),-a[2]),i(e(t(r[1],a[0]),t(-a[1],r[0])),A[2]))),-n[3])),e(i(e(i(e(t(n[1],A[0]),t(-A[1],n[0])),r[2]),e(i(e(t(r[1],A[0]),t(-A[1],r[0])),-n[2]),i(e(t(r[1],n[0]),t(-n[1],r[0])),A[2]))),a[3]),i(e(i(e(t(n[1],a[0]),t(-a[1],n[0])),r[2]),e(i(e(t(r[1],a[0]),t(-a[1],r[0])),-n[2]),i(e(t(r[1],n[0]),t(-n[1],r[0])),a[2]))),-A[3])))),c=s(h,l);return c[c.length-1]}}function l(e){return(3===e?o:4===e?A:h)(r,s,n,a)}var c=l(3),d=l(4),u=[function(){return 0},function(){return 0},function(e,t){return t[0]-e[0]},function(e,t,i){var s,r=(e[1]-i[1])*(t[0]-i[0]),n=(e[0]-i[0])*(t[1]-i[1]),a=r-n;if(r>0){if(n<=0)return a;s=r+n}else{if(!(r<0))return a;if(n>=0)return a;s=-(r+n)}var o=33306690738754716e-32*s;return a>=o||a<=-o?a:c(e,t,i)},function(e,t,i,s){var r=e[0]-s[0],n=t[0]-s[0],a=i[0]-s[0],o=e[1]-s[1],A=t[1]-s[1],h=i[1]-s[1],l=e[2]-s[2],c=t[2]-s[2],u=i[2]-s[2],g=n*h,f=a*A,_=a*o,p=r*h,m=r*A,C=n*o,I=l*(g-f)+c*(_-p)+u*(m-C),E=7771561172376103e-31*((Math.abs(g)+Math.abs(f))*Math.abs(l)+(Math.abs(_)+Math.abs(p))*Math.abs(c)+(Math.abs(m)+Math.abs(C))*Math.abs(u));return I>E||-I>E?I:d(e,t,i,s)}];function g(e){var t=u[e.length];return t||(t=u[e.length]=l(e.length)),t.apply(void 0,e)}function f(e,t,i,s,r,n,a){return function(t,i,o,A,h){switch(arguments.length){case 0:case 1:return 0;case 2:return s(t,i);case 3:return r(t,i,o);case 4:return n(t,i,o,A);case 5:return a(t,i,o,A,h)}for(var l=new Array(arguments.length),c=0;c<arguments.length;++c)l[c]=arguments[c];return e(l)}}!function(){for(;u.length<=5;)u.push(l(u.length));e.exports=f.apply(void 0,[g].concat(u));for(var t=0;t<=5;++t)e.exports[t]=u[t]}()},889:(e,t,i)=>{e.exports=function(e,t){for(var i=t[0],r=t[1],n=e.length,a=1,o=n,A=0,h=n-1;A<o;h=A++){var l=e[A],c=e[h],d=l[1],u=c[1];if(u<d){if(u<r&&r<d){if(0===(g=s(l,c,t)))return 0;a^=0<g|0}else if(r===d){if(d<e[(A+1)%n][1]){if(0===(g=s(l,c,t)))return 0;a^=0<g|0}}}else if(d<u){if(d<r&&r<u){if(0===(g=s(l,c,t)))return 0;a^=g<0|0}else if(r===d){if(e[(A+1)%n][1]<d){var g;if(0===(g=s(l,c,t)))return 0;a^=g<0|0}}}else if(r===d){var f=Math.min(l[0],c[0]),_=Math.max(l[0],c[0]);if(0===A){for(;h>0;){var p=(h+n-1)%n;if((I=e[p])[1]!==r)break;var m=I[0];f=Math.min(f,m),_=Math.max(_,m),h=p}if(0===h)return f<=i&&i<=_?0:1;o=h+1}for(var C=e[(h+n-1)%n][1];A+1<o;){var I;if((I=e[A+1])[1]!==r)break;m=I[0];f=Math.min(f,m),_=Math.max(_,m),A+=1}if(f<=i&&i<=_)return 0;var E=e[(A+1)%n][1];i<f&&C<r!=E<r&&(a^=1)}}return 2*a-1};var s=i(731)},262:(e,t,i)=>{"use strict";var s=i(276),r=i(790);e.exports=function(e,t){var i=e.length;if(1===i){var n=s(e[0],t);return n[0]?n:[n[1]]}var a=new Array(2*i),o=[.1,.1],A=[.1,.1],h=0;s(e[0],t,o),o[0]&&(a[h++]=o[0]);for(var l=1;l<i;++l){s(e[l],t,A);var c=o[1];r(c,A[0],o),o[0]&&(a[h++]=o[0]);var d=A[1],u=o[1],g=d+u,f=u-(g-d);o[1]=g,f&&(a[h++]=f)}o[1]&&(a[h++]=o[1]);0===h&&(a[h++]=0);return a.length=h,a}},577:e=>{"use strict";e.exports=function(e,t){var i=0|e.length,s=0|t.length;if(1===i&&1===s)return function(e,t){var i=e+t,s=i-e,r=i-s,n=t-s,a=e-r,o=a+n;if(o)return[o,i];return[i]}(e[0],-t[0]);var r,n,a=new Array(i+s),o=0,A=0,h=0,l=Math.abs,c=e[A],d=l(c),u=-t[h],g=l(u);d<g?(n=c,(A+=1)<i&&(d=l(c=e[A]))):(n=u,(h+=1)<s&&(g=l(u=-t[h])));A<i&&d<g||h>=s?(r=c,(A+=1)<i&&(d=l(c=e[A]))):(r=u,(h+=1)<s&&(g=l(u=-t[h])));var f,_,p=r+n,m=p-r,C=n-m,I=C,E=p;for(;A<i&&h<s;)d<g?(r=c,(A+=1)<i&&(d=l(c=e[A]))):(r=u,(h+=1)<s&&(g=l(u=-t[h]))),(C=(n=I)-(m=(p=r+n)-r))&&(a[o++]=C),I=E-((f=E+p)-(_=f-E))+(p-_),E=f;for(;A<i;)(C=(n=I)-(m=(p=(r=c)+n)-r))&&(a[o++]=C),I=E-((f=E+p)-(_=f-E))+(p-_),E=f,(A+=1)<i&&(c=e[A]);for(;h<s;)(C=(n=I)-(m=(p=(r=u)+n)-r))&&(a[o++]=C),I=E-((f=E+p)-(_=f-E))+(p-_),E=f,(h+=1)<s&&(u=-t[h]);I&&(a[o++]=I);E&&(a[o++]=E);o||(a[o++]=0);return a.length=o,a}},289:e=>{"use strict";e.exports=function(e,t){var i=0|e.length,s=0|t.length;if(1===i&&1===s)return function(e,t){var i=e+t,s=i-e,r=i-s,n=t-s,a=e-r,o=a+n;if(o)return[o,i];return[i]}(e[0],t[0]);var r,n,a=new Array(i+s),o=0,A=0,h=0,l=Math.abs,c=e[A],d=l(c),u=t[h],g=l(u);d<g?(n=c,(A+=1)<i&&(d=l(c=e[A]))):(n=u,(h+=1)<s&&(g=l(u=t[h])));A<i&&d<g||h>=s?(r=c,(A+=1)<i&&(d=l(c=e[A]))):(r=u,(h+=1)<s&&(g=l(u=t[h])));var f,_,p=r+n,m=p-r,C=n-m,I=C,E=p;for(;A<i&&h<s;)d<g?(r=c,(A+=1)<i&&(d=l(c=e[A]))):(r=u,(h+=1)<s&&(g=l(u=t[h]))),(C=(n=I)-(m=(p=r+n)-r))&&(a[o++]=C),I=E-((f=E+p)-(_=f-E))+(p-_),E=f;for(;A<i;)(C=(n=I)-(m=(p=(r=c)+n)-r))&&(a[o++]=C),I=E-((f=E+p)-(_=f-E))+(p-_),E=f,(A+=1)<i&&(c=e[A]);for(;h<s;)(C=(n=I)-(m=(p=(r=u)+n)-r))&&(a[o++]=C),I=E-((f=E+p)-(_=f-E))+(p-_),E=f,(h+=1)<s&&(u=t[h]);I&&(a[o++]=I);E&&(a[o++]=E);o||(a[o++]=0);return a.length=o,a}},276:e=>{"use strict";e.exports=function(e,i,s){var r=e*i,n=t*e,a=n-(n-e),o=e-a,A=t*i,h=A-(A-i),l=i-h,c=o*l-(r-a*h-o*h-a*l);if(s)return s[0]=c,s[1]=r,s;return[c,r]};var t=+(Math.pow(2,27)+1)},790:e=>{"use strict";e.exports=function(e,t,i){var s=e+t,r=s-e,n=t-r,a=e-(s-r);if(i)return i[0]=a+n,i[1]=s,i;return[a+n,s]}},673:(e,t,i)=>{"use strict";i.r(t),i.d(t,{checkCanvasSize:()=>n,createLevel:()=>c,frameUpdate:()=>d,getValue:()=>a,initImport:()=>r,render:()=>o,setCurValue:()=>A,setValue:()=>h,tweenUpdate:()=>l});const s={value:null};function r(e){if(s.value)throw"请勿在一个html页面创建多个GlowJS实例,要创建多个实例请使用iframe技术!";s.value=e}function n(){s.value&&s.value.checkCanvasSize()}function a(e,t){let i=s.value?s.value.getValue(e,t):"";return JSON.stringify(i)}function o(){s.value&&s.value.render()}function A(e,t,i){s.value&&s.value.setCurValue(e,t,i)}function h(e,t,i){s.value&&s.value.setValue(e,t,i)}function l(){s.value&&s.value.tweenUpdate()}function c(e){s.value&&s.value.createLevel(e)}function d(e){s&&s.value.frameUpdate(e)}},862:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{AS:()=>dispose,Ay:()=>__WEBPACK_DEFAULT_EXPORT__,Gd:()=>has_power_envir,H5:()=>get_heatmap_list,HU:()=>get_serial_num,Hu:()=>has_asset_volume,MC:()=>has_archive,Us:()=>json_to_project_file,X9:()=>get_campuses,Xp:()=>has_it,Y1:()=>get_license_info,_S:()=>has_link,cc:()=>run_render_loop,dz:()=>load_project,ff:()=>get_project_res_list,g8:()=>get_full_license_info,i6:()=>get_main_level,xC:()=>get_function_module,zn:()=>get_project_serial_num});var _snippets_wasm_4b0f351a8e6eeb46_import_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(673);let wasm;const heap=new Array(128).fill(void 0);function getObject(e){return heap[e]}heap.push(void 0,null,!0,!1);let heap_next=heap.length;function addHeapObject(e){heap_next===heap.length&&heap.push(heap.length+1);const t=heap_next;return heap_next=heap[t],heap[t]=e,t}function handleError(e,t){try{return e.apply(this,t)}catch(e){wasm.__wbindgen_exn_store(addHeapObject(e))}}function dropObject(e){e<132||(heap[e]=heap_next,heap_next=e)}function takeObject(e){const t=getObject(e);return dropObject(e),t}const cachedTextDecoder="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&cachedTextDecoder.decode();let cachedUint8ArrayMemory0=null;function getUint8ArrayMemory0(){return null!==cachedUint8ArrayMemory0&&0!==cachedUint8ArrayMemory0.byteLength||(cachedUint8ArrayMemory0=new Uint8Array(wasm.memory.buffer)),cachedUint8ArrayMemory0}function getStringFromWasm0(e,t){return e>>>=0,cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(e,e+t))}let WASM_VECTOR_LEN=0;const cachedTextEncoder="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},encodeString="function"==typeof cachedTextEncoder.encodeInto?function(e,t){return cachedTextEncoder.encodeInto(e,t)}:function(e,t){const i=cachedTextEncoder.encode(e);return t.set(i),{read:e.length,written:i.length}};function passStringToWasm0(e,t,i){if(void 0===i){const i=cachedTextEncoder.encode(e),s=t(i.length,1)>>>0;return getUint8ArrayMemory0().subarray(s,s+i.length).set(i),WASM_VECTOR_LEN=i.length,s}let s=e.length,r=t(s,1)>>>0;const n=getUint8ArrayMemory0();let a=0;for(;a<s;a++){const t=e.charCodeAt(a);if(t>127)break;n[r+a]=t}if(a!==s){0!==a&&(e=e.slice(a)),r=i(r,s,s=a+3*e.length,1)>>>0;const t=getUint8ArrayMemory0().subarray(r+a,r+s);a+=encodeString(e,t).written,r=i(r,s,a,1)>>>0}return WASM_VECTOR_LEN=a,r}function isLikeNone(e){return null==e}let cachedDataViewMemory0=null;function getDataViewMemory0(){return(null===cachedDataViewMemory0||!0===cachedDataViewMemory0.buffer.detached||void 0===cachedDataViewMemory0.buffer.detached&&cachedDataViewMemory0.buffer!==wasm.memory.buffer)&&(cachedDataViewMemory0=new DataView(wasm.memory.buffer)),cachedDataViewMemory0}const CLOSURE_DTORS="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>{wasm.__wbindgen_export_4.get(e.dtor)(e.a,e.b)});function makeClosure(e,t,i,s){const r={a:e,b:t,cnt:1,dtor:i},n=(...e)=>{r.cnt++;try{return s(r.a,r.b,...e)}finally{0===--r.cnt&&(wasm.__wbindgen_export_4.get(r.dtor)(r.a,r.b),r.a=0,CLOSURE_DTORS.unregister(r))}};return n.original=r,CLOSURE_DTORS.register(n,r,r),n}function makeMutClosure(e,t,i,s){const r={a:e,b:t,cnt:1,dtor:i},n=(...e)=>{r.cnt++;const t=r.a;r.a=0;try{return s(t,r.b,...e)}finally{0===--r.cnt?(wasm.__wbindgen_export_4.get(r.dtor)(t,r.b),CLOSURE_DTORS.unregister(r)):r.a=t}};return n.original=r,CLOSURE_DTORS.register(n,r,r),n}function debugString(e){const t=typeof e;if("number"==t||"boolean"==t||null==e)return`${e}`;if("string"==t)return`"${e}"`;if("symbol"==t){const t=e.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==t){const t=e.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(e)){const t=e.length;let i="[";t>0&&(i+=debugString(e[0]));for(let s=1;s<t;s++)i+=", "+debugString(e[s]);return i+="]",i}const i=/\[object ([^\]]+)\]/.exec(toString.call(e));let s;if(!(i&&i.length>1))return toString.call(e);if(s=i[1],"Object"==s)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:s}function get_serial_num(){let e,t;try{const r=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.get_serial_num(r);var i=getDataViewMemory0().getInt32(r+0,!0),s=getDataViewMemory0().getInt32(r+4,!0);return e=i,t=s,getStringFromWasm0(i,s)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_free(e,t,1)}}function has_power_envir(){return 0!==wasm.has_power_envir()}function get_heatmap_list(e){return takeObject(wasm.get_heatmap_list(addHeapObject(e)))}function run_render_loop(){return takeObject(wasm.run_render_loop())}function get_project_res_list(e){return takeObject(wasm.get_project_res_list(addHeapObject(e)))}function get_license_info(){let e,t;try{const r=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.get_license_info(r);var i=getDataViewMemory0().getInt32(r+0,!0),s=getDataViewMemory0().getInt32(r+4,!0);return e=i,t=s,getStringFromWasm0(i,s)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_free(e,t,1)}}function has_asset_volume(){return 0!==wasm.has_asset_volume()}function load_project(){return takeObject(wasm.load_project())}function get_full_license_info(e,t){return takeObject(wasm.get_full_license_info(addHeapObject(e),addHeapObject(t)))}function has_it(){return 0!==wasm.has_it()}function get_function_module(e,t){return takeObject(wasm.get_function_module(addHeapObject(e),addHeapObject(t)))}function json_to_project_file(e){return takeObject(wasm.json_to_project_file(addHeapObject(e)))}function get_polling_link_list(e){return takeObject(wasm.get_polling_link_list(addHeapObject(e)))}function get_campuses(e){return takeObject(wasm.get_campuses(addHeapObject(e)))}function get_project_serial_num(e){return takeObject(wasm.get_project_serial_num(addHeapObject(e)))}function has_archive(){return 0!==wasm.has_archive()}function dispose(){wasm.dispose()}function project_file_to_json(e){return takeObject(wasm.project_file_to_json(addHeapObject(e)))}function has_link(){return 0!==wasm.has_link()}function get_main_level(e){return takeObject(wasm.get_main_level(addHeapObject(e)))}function __wbg_adapter_28(e,t){wasm._dyn_core__ops__function__Fn_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h889c800ec23bce8c(e,t)}function __wbg_adapter_31(e,t){wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h59db16d3e5038a17(e,t)}function __wbg_adapter_34(e,t,i){wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc393f2e3b6a5cf23(e,t,addHeapObject(i))}function __wbg_adapter_41(e,t,i,s,r){return 0!==wasm.wasm_bindgen__convert__closures__invoke3_mut__hb0c394d1a1e81a8c(e,t,addHeapObject(i),s,addHeapObject(r))}function __wbg_adapter_68(e,t,i,s){wasm.wasm_bindgen__convert__closures__invoke2_mut__h6c76ed57825e6e23(e,t,addHeapObject(i),addHeapObject(s))}const __wbindgen_enum_RequestMode=["same-origin","no-cors","cors","navigate"];async function __wbg_load(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const i=await e.arrayBuffer();return await WebAssembly.instantiate(i,t)}{const i=await WebAssembly.instantiate(e,t);return i instanceof WebAssembly.Instance?{instance:i,module:e}:i}}function __wbg_get_imports(){const imports={wbg:{}};return imports.wbg.__wbg_arrayBuffer_d0ca2ad8bda0039b=function(){return handleError(function(e){return addHeapObject(getObject(e).arrayBuffer())},arguments)},imports.wbg.__wbg_buffer_61b7ce01341d7f88=function(e){return addHeapObject(getObject(e).buffer)},imports.wbg.__wbg_call_500db948e69c7330=function(){return handleError(function(e,t,i){return addHeapObject(getObject(e).call(getObject(t),getObject(i)))},arguments)},imports.wbg.__wbg_call_b0d8e36992d9900d=function(){return handleError(function(e,t){return addHeapObject(getObject(e).call(getObject(t)))},arguments)},imports.wbg.__wbg_clearInterval_998151d924a72ab2=function(e,t){getObject(e).clearInterval(t)},imports.wbg.__wbg_createLevel_3c9e4222ccd6a530=function(e){(0,_snippets_wasm_4b0f351a8e6eeb46_import_js__WEBPACK_IMPORTED_MODULE_0__.createLevel)(takeObject(e))},imports.wbg.__wbg_eval_cd0c386c3899dd07=function(){return handleError(function(arg0,arg1){const ret=eval(getStringFromWasm0(arg0,arg1));return addHeapObject(ret)},arguments)},imports.wbg.__wbg_fetch_e26fdd92ea39f634=function(e,t){return addHeapObject(getObject(e).fetch(getObject(t)))},imports.wbg.__wbg_filter_31a1b79a7b355887=function(e,t,i){try{var s={a:t,b:i};const r=getObject(e).filter((e,t,i)=>{const r=s.a;s.a=0;try{return __wbg_adapter_41(r,s.b,e,t,i)}finally{s.a=r}});return addHeapObject(r)}finally{s.a=s.b=0}},imports.wbg.__wbg_frameUpdate_0d1db230c17e8e94=function(e){(0,_snippets_wasm_4b0f351a8e6eeb46_import_js__WEBPACK_IMPORTED_MODULE_0__.frameUpdate)(getObject(e))},imports.wbg.__wbg_getItem_badd23d1a06e7b19=function(){return handleError(function(e,t,i,s){const r=getObject(t).getItem(getStringFromWasm0(i,s));var n=isLikeNone(r)?0:passStringToWasm0(r,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),a=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(e+4,a,!0),getDataViewMemory0().setInt32(e+0,n,!0)},arguments)},imports.wbg.__wbg_getTime_ab8b72009983c537=function(e){return getObject(e).getTime()},imports.wbg.__wbg_getTimezoneOffset_ec375e661c590c7a=function(e){return getObject(e).getTimezoneOffset()},imports.wbg.__wbg_getValue_1740a37b135eb576=function(e,t,i,s){let r,n;try{r=t,n=i;const a=passStringToWasm0((0,_snippets_wasm_4b0f351a8e6eeb46_import_js__WEBPACK_IMPORTED_MODULE_0__.getValue)(getStringFromWasm0(t,i),takeObject(s)),wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),o=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(e+4,o,!0),getDataViewMemory0().setInt32(e+0,a,!0)}finally{wasm.__wbindgen_free(r,n,1)}},imports.wbg.__wbg_get_660724f0ef14ada8=function(e,t,i){const s=getObject(e)[getStringFromWasm0(t,i)];return isLikeNone(s)?0:addHeapObject(s)},imports.wbg.__wbg_get_9aa3dff3f0266054=function(e,t){return addHeapObject(getObject(e)[t>>>0])},imports.wbg.__wbg_get_bbccf8970793c087=function(){return handleError(function(e,t){return addHeapObject(Reflect.get(getObject(e),getObject(t)))},arguments)},imports.wbg.__wbg_has_94c2fc1d261bbfe9=function(){return handleError(function(e,t){return Reflect.has(getObject(e),getObject(t))},arguments)},imports.wbg.__wbg_host_7131cd3aac9f8fd5=function(){return handleError(function(e,t){const i=passStringToWasm0(getObject(t).host,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),s=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(e+4,s,!0),getDataViewMemory0().setInt32(e+0,i,!0)},arguments)},imports.wbg.__wbg_includes_48df4cb918d24687=function(e,t,i){return getObject(e).includes(getObject(t),i)},imports.wbg.__wbg_instanceof_Response_d3453657e10c4300=function(e){let t;try{t=getObject(e)instanceof Response}catch(e){t=!1}return t},imports.wbg.__wbg_instanceof_Window_d2514c6a7ee7ba60=function(e){let t;try{t=getObject(e)instanceof Window}catch(e){t=!1}return t},imports.wbg.__wbg_length_65d1cd11729ced11=function(e){return getObject(e).length},imports.wbg.__wbg_length_d65cf0786bfc5739=function(e){return getObject(e).length},imports.wbg.__wbg_localStorage_9ca2da984fd56239=function(){return handleError(function(e){const t=getObject(e).localStorage;return isLikeNone(t)?0:addHeapObject(t)},arguments)},imports.wbg.__wbg_location_b2ec7e36fec8a8ff=function(e){return addHeapObject(getObject(e).location)},imports.wbg.__wbg_new0_55477545727914d9=function(){return addHeapObject(new Date)},imports.wbg.__wbg_new_254fa9eac11932ae=function(){return addHeapObject(new Array)},imports.wbg.__wbg_new_3d446df9155128ef=function(e,t){try{var i={a:e,b:t};const s=new Promise((e,t)=>{const s=i.a;i.a=0;try{return __wbg_adapter_68(s,i.b,e,t)}finally{i.a=s}});return addHeapObject(s)}finally{i.a=i.b=0}},imports.wbg.__wbg_new_3ff5b33b1ce712df=function(e){return addHeapObject(new Uint8Array(getObject(e)))},imports.wbg.__wbg_new_41257536af60ed14=function(e){return addHeapObject(new Date(getObject(e)))},imports.wbg.__wbg_new_688846f374351c92=function(){return addHeapObject(new Object)},imports.wbg.__wbg_newnoargs_fd9e4bf8be2bc16d=function(e,t){return addHeapObject(new Function(getStringFromWasm0(e,t)))},imports.wbg.__wbg_newwithbyteoffsetandlength_ba35896968751d91=function(e,t,i){return addHeapObject(new Uint8Array(getObject(e),t>>>0,i>>>0))},imports.wbg.__wbg_newwithstrandinit_a1f6583f20e4faff=function(){return handleError(function(e,t,i){return addHeapObject(new Request(getStringFromWasm0(e,t),getObject(i)))},arguments)},imports.wbg.__wbg_now_64d0bb151e5d3889=function(){return Date.now()},imports.wbg.__wbg_parent_c40ca7a909d9a21d=function(){return handleError(function(e){const t=getObject(e).parent;return isLikeNone(t)?0:addHeapObject(t)},arguments)},imports.wbg.__wbg_parse_161c68378e086ae1=function(){return handleError(function(e,t){return addHeapObject(JSON.parse(getStringFromWasm0(e,t)))},arguments)},imports.wbg.__wbg_push_6edad0df4b546b2c=function(e,t){return getObject(e).push(getObject(t))},imports.wbg.__wbg_queueMicrotask_2181040e064c0dc8=function(e){queueMicrotask(getObject(e))},imports.wbg.__wbg_queueMicrotask_ef9ac43769cbcc4f=function(e){return addHeapObject(getObject(e).queueMicrotask)},imports.wbg.__wbg_random_a435d21390634bdf=function(){return Math.random()},imports.wbg.__wbg_resolve_0bf7c44d641804f9=function(e){return addHeapObject(Promise.resolve(getObject(e)))},imports.wbg.__wbg_setInterval_a129313c86e38113=function(){return handleError(function(e,t,i){return getObject(e).setInterval(getObject(t),i)},arguments)},imports.wbg.__wbg_setValue_7620e8e4175e72ac=function(e,t,i,s,r){let n,a,o,A;try{n=e,a=t,o=s,A=r,(0,_snippets_wasm_4b0f351a8e6eeb46_import_js__WEBPACK_IMPORTED_MODULE_0__.setValue)(getStringFromWasm0(e,t),takeObject(i),getStringFromWasm0(s,r))}finally{wasm.__wbindgen_free(n,a,1),wasm.__wbindgen_free(o,A,1)}},imports.wbg.__wbg_set_23d69db4e5c66a6e=function(e,t,i){getObject(e).set(getObject(t),i>>>0)},imports.wbg.__wbg_set_4e647025551483bd=function(){return handleError(function(e,t,i){return Reflect.set(getObject(e),getObject(t),getObject(i))},arguments)},imports.wbg.__wbg_setmethod_cfc7f688ba46a6be=function(e,t,i){getObject(e).method=getStringFromWasm0(t,i)},imports.wbg.__wbg_setmode_cd03637eb7da01e0=function(e,t){getObject(e).mode=__wbindgen_enum_RequestMode[t]},imports.wbg.__wbg_static_accessor_GLOBAL_0be7472e492ad3e3=function(){const e=void 0===__webpack_require__.g?null:__webpack_require__.g;return isLikeNone(e)?0:addHeapObject(e)},imports.wbg.__wbg_static_accessor_GLOBAL_THIS_1a6eb482d12c9bfb=function(){const e="undefined"==typeof globalThis?null:globalThis;return isLikeNone(e)?0:addHeapObject(e)},imports.wbg.__wbg_static_accessor_SELF_1dc398a895c82351=function(){const e="undefined"==typeof self?null:self;return isLikeNone(e)?0:addHeapObject(e)},imports.wbg.__wbg_static_accessor_WINDOW_ae1c80c7eea8d64a=function(){const e="undefined"==typeof window?null:window;return isLikeNone(e)?0:addHeapObject(e)},imports.wbg.__wbg_statusText_613aac5c001080c1=function(e,t){const i=passStringToWasm0(getObject(t).statusText,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),s=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(e+4,s,!0),getDataViewMemory0().setInt32(e+0,i,!0)},imports.wbg.__wbg_status_317f53bc4c7638df=function(e){return getObject(e).status},imports.wbg.__wbg_stringify_f4f701bc34ceda61=function(){return handleError(function(e){return addHeapObject(JSON.stringify(getObject(e)))},arguments)},imports.wbg.__wbg_then_0438fad860fe38e1=function(e,t){return addHeapObject(getObject(e).then(getObject(t)))},imports.wbg.__wbg_then_0ffafeddf0e182a4=function(e,t,i){return addHeapObject(getObject(e).then(getObject(t),getObject(i)))},imports.wbg.__wbindgen_boolean_get=function(e){const t=getObject(e);return"boolean"==typeof t?t?1:0:2},imports.wbg.__wbindgen_cb_drop=function(e){const t=takeObject(e).original;if(1==t.cnt--)return t.a=0,!0;return!1},imports.wbg.__wbindgen_closure_wrapper162=function(e,t,i){return addHeapObject(makeClosure(e,t,70,__wbg_adapter_28))},imports.wbg.__wbindgen_closure_wrapper164=function(e,t,i){return addHeapObject(makeMutClosure(e,t,70,__wbg_adapter_31))},imports.wbg.__wbindgen_closure_wrapper990=function(e,t,i){return addHeapObject(makeMutClosure(e,t,70,__wbg_adapter_34))},imports.wbg.__wbindgen_debug_string=function(e,t){const i=passStringToWasm0(debugString(getObject(t)),wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),s=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(e+4,s,!0),getDataViewMemory0().setInt32(e+0,i,!0)},imports.wbg.__wbindgen_is_function=function(e){return"function"==typeof getObject(e)},imports.wbg.__wbindgen_is_undefined=function(e){return void 0===getObject(e)},imports.wbg.__wbindgen_memory=function(){return addHeapObject(wasm.memory)},imports.wbg.__wbindgen_number_get=function(e,t){const i=getObject(t),s="number"==typeof i?i:void 0;getDataViewMemory0().setFloat64(e+8,isLikeNone(s)?0:s,!0),getDataViewMemory0().setInt32(e+0,!isLikeNone(s),!0)},imports.wbg.__wbindgen_number_new=function(e){return addHeapObject(e)},imports.wbg.__wbindgen_object_clone_ref=function(e){return addHeapObject(getObject(e))},imports.wbg.__wbindgen_object_drop_ref=function(e){takeObject(e)},imports.wbg.__wbindgen_string_get=function(e,t){const i=getObject(t),s="string"==typeof i?i:void 0;var r=isLikeNone(s)?0:passStringToWasm0(s,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),n=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(e+4,n,!0),getDataViewMemory0().setInt32(e+0,r,!0)},imports.wbg.__wbindgen_string_new=function(e,t){return addHeapObject(getStringFromWasm0(e,t))},imports.wbg.__wbindgen_throw=function(e,t){throw new Error(getStringFromWasm0(e,t))},imports["./snippets/wasm-4b0f351a8e6eeb46/import.js"]=_snippets_wasm_4b0f351a8e6eeb46_import_js__WEBPACK_IMPORTED_MODULE_0__,imports}function __wbg_init_memory(e,t){}function __wbg_finalize_init(e,t){return wasm=e.exports,__wbg_init.__wbindgen_wasm_module=t,cachedDataViewMemory0=null,cachedUint8ArrayMemory0=null,wasm}function initSync(e){if(void 0!==wasm)return wasm;void 0!==e&&Object.getPrototypeOf(e)===Object.prototype&&({module:e}=e);const t=__wbg_get_imports();__wbg_init_memory(t),e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));return __wbg_finalize_init(new WebAssembly.Instance(e,t),e)}async function __wbg_init(e){if(void 0!==wasm)return wasm;void 0!==e&&Object.getPrototypeOf(e)===Object.prototype&&({module_or_path:e}=e);const t=__wbg_get_imports();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e)),__wbg_init_memory(t);const{instance:i,module:s}=await __wbg_load(await e,t);return __wbg_finalize_init(i,s)}const __WEBPACK_DEFAULT_EXPORT__=__wbg_init}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var i=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(i.exports,i,i.exports,__webpack_require__),i.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var i in t)__webpack_require__.o(t,i)&&!__webpack_require__.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AbstractMesh:()=>Js,ActionManager:()=>Xp,AdvancedDynamicTexture:()=>km,AnimationGroup:()=>Vp,Animator:()=>Mb,App:()=>ZD,ArcRotateCamera:()=>fg,ArchiveBox:()=>ix,ArchiveCabinet:()=>NT,ArchiveCabinetGroup:()=>kT,ArchiveGrid:()=>zQ,ArchiveMgr:()=>tQ,AssetContainer:()=>Yr,Base:()=>yb,Billboard:()=>pT,BoardCard:()=>ex,BoundingBox:()=>ms,BoundingInfo:()=>bs,Building:()=>kQ,Button:()=>qm,Cabinet:()=>ZT,CabinetMgr:()=>JT,Camera:()=>_s,CameraMgr:()=>sS,CameraMode:()=>Mv,CameraPerson:()=>Nv,Campus:()=>UQ,Color3:()=>$t,Color4:()=>ei,ColorCorrection:()=>rT,ColorCurves:()=>ni,Component:()=>xb,Container:()=>Om,Control:()=>Fm,Corner:()=>IT,CreateBox:()=>en,CreateCylinder:()=>da,CreateGround:()=>qr,CreateLineSystem:()=>jn,CreateLines:()=>Zn,CreatePlane:()=>ga,CreateSphere:()=>ta,CreateTube:()=>la,CubeTexture:()=>ec,DecorateGrid:()=>oT,DistanceTool:()=>sx,DoorWindow:()=>$v,DoorWindowDirection:()=>Xv,EPSILON:()=>vb,Easing:()=>Py,EasingFunction:()=>jv,Effect:()=>me,EffectMgr:()=>lT,Ellipse:()=>Gm,Engine:()=>Ls,EngineInstrumentation:()=>jp,Entity:()=>Rv,EntityType:()=>Tb,EnvironmentTextureSource:()=>Zv,EnvironmentTextureTools:()=>Kd,EquiRectangularCubeTexture:()=>Td,EventDispatcher:()=>Eb,EventMgr:()=>cT,EventType:()=>bb,ExecuteCodeAction:()=>Jp,FPSBar:()=>dT,Floor:()=>NQ,Fog:()=>oS,FresnelParameters:()=>Yl,FunctionModule:()=>lb,GUIMgr:()=>mT,Geometry:()=>ws,Gizmo:()=>am,GizmoManager:()=>pm,GlowLayer:()=>gp,GradientRectangle:()=>uT,GridMaterial:()=>Ry,Group:()=>iQ,Heatmap:()=>MQ,HeatmapType:()=>TQ,HeightTool:()=>rx,HemisphericLight:()=>af,HighlightLayer:()=>mp,Image:()=>Vm,ImageProcessingConfiguration:()=>Ai,InfoListPanel:()=>$D,InputText:()=>Zm,InstancedMesh:()=>Gr,InstantiatedEntries:()=>zr,KeyCode:()=>wv,LeakLine:()=>HT,LevelMgr:()=>qQ,Line2D:()=>Xm,LinesMesh:()=>Jn,ManualWall:()=>dQ,Material:()=>Mr,MaterialMgr:()=>ZQ,Matrix:()=>St,Measure:()=>Rm,Mesh:()=>Ur,NetworkPort:()=>qT,Node:()=>gs,NodeMaterial:()=>Uc,Observer:()=>t,OrthographicView:()=>qv,PBRMaterial:()=>vl,POI:()=>gQ,POIPlus:()=>yQ,ParticleHelper:()=>nf,ParticleSystem:()=>Jg,Path:()=>Yv,PathAnimation:()=>Wv,PickingInfo:()=>Ei,Pipe:()=>fQ,PipelineMgr:()=>sD,Plane:()=>is,PointerDragBehavior:()=>tm,PointerEventTypes:()=>Di,PointerInfo:()=>Mi,PrefabWall:()=>SQ,Quaternion:()=>vt,RackMounted:()=>jT,Ray:()=>zu,Rectangle:()=>Um,RectangleProgress:()=>gT,ResPool:()=>jQ,ResTool:()=>nx,ResToolType:()=>ax,Roaming:()=>eS,Room:()=>DT,RunTime:()=>db,Scalar:()=>Kt,Scene:()=>As,SceneInstrumentation:()=>qp,SceneLoader:()=>v_,SkyBox:()=>nT,SphericalPolynomial:()=>Ia,StackPanel:()=>Km,StandardMaterial:()=>zl,Style:()=>Rb,SystemResId:()=>Qb,Text3D:()=>uQ,TextBlock:()=>Jm,Texture:()=>An,Thing:()=>Kv,Tools:()=>it,TransformNode:()=>Us,Tween:()=>Vy,TxtAlign:()=>IQ,Union:()=>wQ,Vector2:()=>Bt,Vector3:()=>yt,Vector4:()=>bt,VertexBuffer:()=>Ii,VertexData:()=>xs,VideoFusion:()=>_Q,Wall:()=>ET,addTo:()=>gv,ajax:()=>Vb,angleTo:()=>pv,blobToDataURL:()=>Fb,centerTo:()=>mv,createPlacement:()=>nQ,cross:()=>fv,dataURLtoBlob:()=>kb,deepClone:()=>mb,defaultEffectValue:()=>nS,delCookie:()=>Lb,distanceTo:()=>tv,distanceToParallelLine:()=>nv,distanceToProjection:()=>rv,dot:()=>_v,explode:()=>Cb,get:()=>Hb,getCookie:()=>Ob,getJson:()=>zb,getLineIntersection:()=>av,getOrigin:()=>Sv,getQueryString:()=>Ub,getSegmentIntersection:()=>lv,getSegmentPartIncludePoint:()=>dv,greateThanOrEqual:()=>jb,greaterThan:()=>qb,ignoreYAxis:()=>Cv,isHexColor:()=>Db,isLAN:()=>Kb,isLineParallel:()=>ov,isPlacement:()=>rQ,lengthTo:()=>Iv,lessThan:()=>Zb,lessThanOrEqual:()=>$b,multiplyTo:()=>Ev,newGuid:()=>gb,newGuid16:()=>_b,newGuid32:()=>pb,newGuid8:()=>fb,normalizeTo:()=>Bv,onSegment:()=>hv,post:()=>Yb,postFile:()=>Wb,postFiles:()=>Jb,project:()=>sv,relateToPoint:()=>Av,round:()=>Xb,scaleTo:()=>yv,segmentFullInclude:()=>uv,setCookie:()=>Pb,subtractTo:()=>bv,to:()=>Gb,toPoint:()=>iv,toVector3:()=>ev,traverse:()=>Ib,version:()=>ub,verticalVector:()=>vv,withinEpsilon:()=>Sb});class e{constructor(e,t=!1,i,s){this.initialize(e,t,i,s)}initialize(e,t=!1,i,s){return this.mask=e,this.skipNextObservers=t,this.target=i,this.currentTarget=s,this}}class t{constructor(e,t,i=null){this.callback=e,this.mask=t,this.scope=i,this._willBeUnregistered=!1,this.unregisterOnNextCall=!1,this._remove=null}remove(){this._remove&&this._remove()}}class i{static FromPromise(e,t){const s=new i;return e.then(e=>{s.notifyObservers(e)}).catch(e=>{if(!t)throw e;t.notifyObservers(e)}),s}get observers(){return this._observers}constructor(t,i=!1){this.notifyIfTriggered=i,this._observers=new Array,this._numObserversMarkedAsDeleted=0,this._hasNotified=!1,this._eventState=new e(0),t&&(this._onObserverAdded=t)}add(e,i=-1,s=!1,r=null,n=!1){if(!e)return null;const a=new t(e,i,r);return a.unregisterOnNextCall=n,s?this._observers.unshift(a):this._observers.push(a),this._onObserverAdded&&this._onObserverAdded(a),this._hasNotified&&this.notifyIfTriggered&&void 0!==this._lastNotifiedValue&&this.notifyObserver(a,this._lastNotifiedValue),a._remove=()=>{this.remove(a)},a}addOnce(e){return this.add(e,void 0,void 0,void 0,!0)}remove(e){if(!e)return!1;e._remove=null;return-1!==this._observers.indexOf(e)&&(this._deferUnregister(e),!0)}removeCallback(e,t){for(let i=0;i<this._observers.length;i++){const s=this._observers[i];if(!s._willBeUnregistered&&(s.callback===e&&(!t||t===s.scope)))return this._deferUnregister(s),!0}return!1}_deferUnregister(e){e._willBeUnregistered||(this._numObserversMarkedAsDeleted++,e.unregisterOnNextCall=!1,e._willBeUnregistered=!0,setTimeout(()=>{this._remove(e)},0))}_remove(e,t=!0){if(!e)return!1;const i=this._observers.indexOf(e);return-1!==i&&(t&&this._numObserversMarkedAsDeleted--,this._observers.splice(i,1),!0)}makeObserverTopPriority(e){this._r