UNPKG

awv3

Version:
1 lines 263 kB
!function(e,t){"use strict";function i(e,t){return t={exports:{}},e(t,t.exports),t.exports}function n(e){for(var t=window.location.search.substring(1).split("&"),i=0;i<t.length;i++){var n=t[i].split("=");if(n[0]==e)return n[1]}}function r(e){return("string"==typeof e||e instanceof String)&&(e=document.querySelector(e)),e}function o(e,t,i,n){var r,o,a,s=["-moz-","-webkit-","-o-","-ms-","-khtml-"];e.style[t]="",a=e.style[t];try{if(e.style[t]=i,e.style[t]!==a)return}catch(e){}for(r=0;r<s.length;++r){o=s[r]+i;try{if(e.style[t]=o,e.style[t]!==a)return}catch(e){}}e.style[t]=n}function a(e){console.error(e)}function s(e){throw new Error(e)}function c(t,i,n,r){Array.isArray(i)&&1==i.length&&"object"===Bi(i[0])&&(i=h(t,n.join("."),i[0],!0)),n=void 0===n?[]:n,r=void 0===r?{}:r;var o=void 0,a=void 0;for(var s in i)i.hasOwnProperty(s)&&(o=s,a=i[s],n.push(o),"object"===(void 0===a?"undefined":Bi(a))&&null!==a?a instanceof e.Euler?(r[o+".x"]=a.x,r[o+".y"]=a.y,r[o+".z"]=a.z):r=c(t,a,n,r):"number"==typeof a&&(r[n.join(".")]=a),n.pop());return r}function u(e,t){return t.split(".").reduce(function(e,t){return e[t]},e)}function l(e,t){var i=t.split(/\.(?=[^.]+$)/);return 1==i.length?[e,i[0],i.length]:[u(e,i[0]),i[1],i.length]}function h(e,t,i,n){var r={},o=[],a=l(e,t);return a[0][a[1]].forEach(function(e){if(Array.isArray(i)){var t={};i.forEach(function(i){var n={};n[i]=e[i],Object.assign(t,n)}),o.push(t)}else"object"===(void 0===i?"undefined":Bi(i))&&o.push(i)}),1==a[2]||n?r=o:r[a[1]]=o,r}function f(t,i){return i.parent===t&&t instanceof e.Scene||t.view?i.traverse(function(i){i.scene=t instanceof e.Scene?t:t.scene,i.view=t.view,i.canvas=t.canvas,i.emit(e.Object3D.Events.Lifecycle.ViewFound,i.view)}):i.traverse(function(e){e.scene=void 0,e.view=void 0,e.canvas=void 0}),i}function d(e,t){e.material&&t(e);var i=!0,n=!1,r=void 0;try{for(var o,a=e.children[Symbol.iterator]();!(i=(o=a.next()).done);i=!0){var s=o.value;s.updateParentMaterials&&d(s,t)}}catch(e){n=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}}function p(e,t){for(var i=["polygonOffsetFactor","polygonOffsetUnits"],n=0;n<i.length;n++){var r=i[n];void 0!==t[r]&&(e[r]=t[r],delete t[r])}}function v(t,i){var n=i.options,r=t.id,o=t.line.groups,a=new e.LineSegments;return a.renderOrder=n.renderOrder.LineSegments,a.userData={id:0,parentId:r,refs:o.map(function(e){return e.meta})},a.geometry=new e.BufferGeometry,a.geometry.addAttribute("position",new e.BufferAttribute(t.line.vertices,3)),a.geometry.groups=[],t.line.distances&&a.geometry.addAttribute("lineDistance",new e.BufferAttribute(t.line.distances,1)),n.materials.multi?a.material=o.map(function(t){y(t.meta),a.geometry.groups.push({start:t.start/3,count:t.count/3,materialIndex:t.index,meta:t.meta});var i=n.lineShader,r=n.lineShaderOptions;"DASHED"===t.meta.material.linetype&&(i=e.LineDashedMaterial,r=Ui({},r,{dashSize:2,gapSize:2})),t.meta.material.color=r.color||new(Function.prototype.bind.apply(e.Color,[null].concat($i(t.meta.material.color)))),t.meta.material.opacity=void 0!==r.opacity?r.opacity:t.meta.material.opacity;var o=new i(Ui({},r,{color:t.meta.material.color,opacity:t.meta.material.opacity}));return o.meta=t.meta,o.parent=a,o}):(t.properties.material.color=n.lineShaderOptions.color||t.properties.material.color,t.properties.material.opacity=void 0!==n.lineShaderOptions.opacity?n.lineShaderOptions.opacity:t.properties.material.opacity,a.material=new n.lineShader(Ui({},n.lineShaderOptions,{color:t.properties.material.color,opacity:t.properties.material.opacity})),a.material.parent=a),g(a,t,o)}function m(t,i){var n=i.options,r=t.id,o=t.mesh.groups,a=new e.Mesh;if(n.materials.shadows&&(a.castShadow=!0,a.receiveShadow=!0),a.renderOrder=n.renderOrder.Mesh,a.userData={id:0,parentId:r,refs:o.map(function(e){return e.meta})},n.materials.multi){a.geometry=new e.Geometry;for(var s=0,c=t.mesh.vertices.length/3;s<c;s++)a.geometry.vertices.push(new e.Vector3(t.mesh.vertices[3*s+0],t.mesh.vertices[3*s+1],t.mesh.vertices[3*s+2]));for(var u=void 0,l=void 0,h=void 0,f=void 0,d=0,p=o[d++],v=0,m=t.mesh.indices.length/3;v<m;v++)p.start+p.count<=3*v&&(p=o[d++]),u=t.mesh.indices[3*v+0],l=t.mesh.indices[3*v+1],h=t.mesh.indices[3*v+2],f=t.mesh.normals?[new e.Vector3(t.mesh.normals[3*u+0],t.mesh.normals[3*u+1],t.mesh.normals[3*u+2]),new e.Vector3(t.mesh.normals[3*l+0],t.mesh.normals[3*l+1],t.mesh.normals[3*l+2]),new e.Vector3(t.mesh.normals[3*h+0],t.mesh.normals[3*h+1],t.mesh.normals[3*h+2])]:void 0,a.geometry.faces.push(new e.Face3(u,l,h,f,void 0,p.index));t.mesh.normals||a.geometry.computeVertexNormals()}else a.geometry=new e.BufferGeometry,a.geometry.addAttribute("position",new e.BufferAttribute(t.mesh.vertices,3)),a.geometry.setIndex(new e.BufferAttribute(t.mesh.indices,1)),t.mesh.normals?a.geometry.addAttribute("normal",new e.BufferAttribute(t.mesh.normals,3)):a.geometry.computeVertexNormals(),!!t.mesh.uvs&&a.geometry.addAttribute("uv",new e.BufferAttribute(t.mesh.uvs,2));return n.materials.multi?a.material=o.map(function(t){y(t.meta),t.meta.material.color=n.meshShaderOptions.color||new(Function.prototype.bind.apply(e.Color,[null].concat($i(t.meta.material.color)))),t.meta.material.opacity=void 0!==n.meshShaderOptions.opacity?n.meshShaderOptions.opacity:t.meta.material.opacity;var i=new n.meshShader(Ui({},n.meshShaderOptions,{color:t.meta.material.color,opacity:t.meta.material.opacity}));return i.meta=t.meta,i.parent=a,i}):(t.properties.material.color=n.meshShaderOptions.color||t.properties.material.color,t.properties.material.opacity=void 0!==n.meshShaderOptions.opacity?n.meshShaderOptions.opacity:t.properties.material.opacity,a.material=new n.meshShader(Ui({},n.meshShaderOptions,t.properties.material,{color:t.properties.material.color,opacity:t.properties.material.opacity})),a.material.parent=a),g(a,t,o)}function y(t){t.box=new e.Box3(new(Function.prototype.bind.apply(e.Vector3,[null].concat($i(t.min)))),new(Function.prototype.bind.apply(e.Vector3,[null].concat($i(t.max))))),delete t.min,delete t.max;for(var i in t){var n=t[i];Array.isArray(n)&&3==n.length&&(t[i]=(new e.Vector3).fromArray(n))}}function g(e,t,i){return t.properties.box?(e.geometry.boundingBox=t.properties.box,e.geometry.boundingSphere=t.properties.sphere):(e.geometry.computeBoundingBox(),e.geometry.computeBoundingSphere()),e}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return e=Ui({callback:"function"==typeof e?e:function(){return null},session:void 0,id:tn()},Qi.all,e),{id:e.id,resolve:t,reject:i,promises:[],command:n||"",options:e,array:[],map:{},models:[],patches:[],results:[],errors:[],bytes:0,bytesUncompressed:0,socketTime:null,time:0}}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a("Context undefined");if(Array.isArray(e)){if(1===e.length)return _(e[0]);var t=b();return t.array=e,_(t)}if(delete e.resolve,delete e.reject,delete e.promises,delete e.mapitem,e.array.length>0&&0===e.models.length){var i=!0,n=!1,r=void 0;try{for(var o,s=e.array[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var c=o.value;c.mapitem&&(e.map[c.mapitem]=c);var u=_(c);u.models.forEach(function(t){return e.models.push(t)}),u.patches.forEach(function(t){return e.patches.push(t)})}}catch(e){n=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(n)throw r}}}return e.firstModel=void 0,e.models.length>0&&(e.firstModel=e.models[0]),e.firstResult=void 0,e.results.length>0&&(e.firstResult=e.results[0].result),e}function w(t,i){var n=i.models,r=i.options,o=t.properties,a=o.min,s=o.max,c=o.meta,u=o.material,l=u.color,h=u.emissive,f=(u.opacity,u.map),d=new e.Group;if(d.name="geometry",d.userData={id:t.id,meta:c},l&&(t.properties.material.color=new e.Color(l[0]/255,l[1]/255,l[2]/255)),h&&(t.properties.material.emissive=new e.Color(h[0]/255,h[1]/255,h[2]/255)),f&&r.session){var p=null;if(t.properties.material.map){var y=t.properties.material.map;if(!(p=r.session.materials[y])){var g=session.globals.resources[y];(p=r.session.materials[y]=(new e.TextureLoader).setCrossOrigin("anonymous").load(g)).wrapS=e.RepeatWrapping,p.wrapT=e.RepeatWrapping}}t.properties.material.map=p}if(a&&s&&(t.properties.box=new e.Box3(new(Function.prototype.bind.apply(e.Vector3,[null].concat($i(a)))),new(Function.prototype.bind.apply(e.Vector3,[null].concat($i(s))))),t.properties.sphere=t.properties.box.getBoundingSphere(),d.bounds=d.bounds||{box:new e.Box3,sphere:new e.Sphere},d.bounds.box=t.properties.box,d.bounds.sphere=t.properties.sphere),void 0!==t.mesh){var b=m(t,i);b&&(d.add(b),r.callback({type:pa.Factory.Mesh,model:d,data:b,meta:b.meta,material:b.material}))}if(void 0!==t.line){var _=v(t,i);_&&(d.add(_),r.callback({type:pa.Factory.Line,model:d,data:_,meta:_.meta,material:_.material}))}if(t.cones){var w=!0,k=!1,S=void 0;try{for(var x,O=t.cones[Symbol.iterator]();!(w=(x=O.next()).done);w=!0){var E=x.value;r.callback({type:pa.Factory.Cone,model:d,data:E,meta:E.meta,material:E.material})}}catch(e){k=!0,S=e}finally{try{!w&&O.return&&O.return()}finally{if(k)throw S}}}if(t.vertices){var A=new da,j=!0,P=!1,T=void 0;try{for(var M,D=t.vertices[Symbol.iterator]();!(j=(M=D.next()).done);j=!0){var C=M.value;A.points.push({id:C.id,meta:Ui({},C.meta,{type:"point",position:new(Function.prototype.bind.apply(e.Vector3,[null].concat($i(C.p)))),layer:t.properties.layer})})}}catch(e){P=!0,T=e}finally{try{!j&&D.return&&D.return()}finally{if(P)throw T}}r.callback({type:pa.Factory.Vertex,model:d,data:A}),d.add(A)}if(t.coordinateSystems){var R=!0,F=!1,I=void 0;try{for(var L,B=t.coordinateSystems[Symbol.iterator]();!(R=(L=B.next()).done);R=!0){var N=L.value;r.callback({type:pa.Factory.Csys,model:d,data:N,meta:N.meta})}}catch(e){F=!0,I=e}finally{try{!R&&B.return&&B.return()}finally{if(F)throw I}}}if(t.text){var z=!0,Z=!1,V=void 0;try{for(var U,H=t.text[Symbol.iterator]();!(z=(U=H.next()).done);z=!0){var q=U.value;r.callback({type:pa.Factory.Text,model:d,data:q,meta:q.meta})}}catch(e){Z=!0,V=e}finally{try{!z&&H.return&&H.return()}finally{if(Z)throw V}}}n.push(d),r.callback({type:pa.Factory.Model,model:d,data:t,meta:c})}function k(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return t.reduce(function(t,r){return e.addEventListener(r,i,n),Ui({},t,Vi({},r,{type:r,fulfilled:!1,detach:function(){return e.removeEventListener(r,i)}}))},{})}function S(e){var t=e.target||e.srcElement;t.__resizeRAF__&&Ea(t.__resizeRAF__),t.__resizeRAF__=Oa(function(){var i=t.__resizeTrigger__;i.__resizeListeners__.forEach(function(t){t.call(i,e)})})}function x(e){var t=Xa.call(e,Wa),i=e[Wa];try{e[Wa]=void 0;var n=!0}catch(e){}var r=$a.call(e);return n&&(t?e[Wa]=i:delete e[Wa]),r}function O(e){return Ka.call(e)}function E(e){return null==e?void 0===e?Qa:Ja:es&&es in Object(e)?x(e):O(e)}function A(e){return null!=e&&"object"==typeof e}function j(e){if(!A(e)||E(e)!=is)return!1;var t=ts(e);if(null===t)return!0;var i=as.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&os.call(i)==ss}function P(e,t,i){function n(){d===f&&(d=f.slice())}function r(){return h}function o(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return n(),d.push(e),function(){if(t){t=!1,n();var i=d.indexOf(e);d.splice(i,1)}}}function a(e){if(!j(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,h=l(h,e)}finally{p=!1}for(var t=f=d,i=0;i<t.length;i++)(0,t[i])();return e}function s(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");l=e,a({type:ls.INIT})}function c(){var e,t=o;return e={subscribe:function(e){function i(){e.next&&e.next(r())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");return i(),{unsubscribe:t(i)}}},e[us]=function(){return this},e}var u;if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error("Expected the enhancer to be a function.");return i(P)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var l=e,h=t,f=[],d=f,p=!1;return a({type:ls.INIT}),u={dispatch:a,subscribe:o,getState:r,replaceReducer:s},u[us]=c,u}function T(e,t){var i=t&&t.type;return"Given action "+(i&&'"'+i.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function M(e){Object.keys(e).forEach(function(t){var i=e[t];if(void 0===i(void 0,{type:ls.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===i(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+ls.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function D(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function C(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){return function(i,n,r){var o=e(i,n,r),a=o.dispatch,s=[],c={getState:o.getState,dispatch:function(e){return a(e)}};return s=t.map(function(e){return e(c)}),a=D.apply(void 0,s)(o.dispatch),hs({},o,{dispatch:a})}}}function R(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r}function F(){this.__data__=[],this.size=0}function I(e,t){return e===t||e!==e&&t!==t}function L(e,t){for(var i=e.length;i--;)if(vs(e[i][0],t))return i;return-1}function B(e){var t=this.__data__,i=ms(t,e);return!(i<0)&&(i==t.length-1?t.pop():ys.call(t,i,1),--this.size,!0)}function N(e){var t=this.__data__,i=ms(t,e);return i<0?void 0:t[i][1]}function z(e){return ms(this.__data__,e)>-1}function Z(e,t){var i=this.__data__,n=ms(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this}function V(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function U(){this.__data__=new ks,this.size=0}function H(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}function q(e){return this.__data__.get(e)}function Y(e){return this.__data__.has(e)}function G(e){var t=Ds.call(e,Rs),i=e[Rs];try{e[Rs]=void 0;var n=!0}catch(e){}var r=Cs.call(e);return n&&(t?e[Rs]=i:delete e[Rs]),r}function X(e){return Is.call(e)}function $(e){return null==e?void 0===e?Ns:Bs:zs&&zs in Object(e)?Fs(e):Ls(e)}function W(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function K(e){if(!Vs(e))return!1;var t=Zs(e);return t==Hs||t==qs||t==Us||t==Ys}function J(e){return!!$s&&$s in e}function Q(e){if(null!=e){try{return Ks.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ee(e){return!(!Vs(e)||Ws(e))&&(Gs(e)?oc:ec).test(Js(e))}function te(e,t){return null==e?void 0:e[t]}function ie(e,t){var i=sc(e,t);return ac(i)?i:void 0}function ne(){this.__data__=lc?lc(null):{},this.size=0}function re(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function oe(e){var t=this.__data__;if(lc){var i=t[e];return i===dc?void 0:i}return pc.call(t,e)?t[e]:void 0}function ae(e){var t=this.__data__;return lc?void 0!==t[e]:mc.call(t,e)}function se(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=lc&&void 0===t?gc:t,this}function ce(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function ue(){this.size=0,this.__data__={hash:new _c,map:new(uc||ks),string:new _c}}function le(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function he(e,t){var i=e.__data__;return kc(t)?i["string"==typeof t?"string":"hash"]:i.map}function fe(e){var t=Sc(this,e).delete(e);return this.size-=t?1:0,t}function de(e){return Sc(this,e).get(e)}function pe(e){return Sc(this,e).has(e)}function ve(e,t){var i=Sc(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this}function me(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function ye(e,t){var i=this.__data__;if(i instanceof ks){var n=i.__data__;if(!uc||n.length<Pc-1)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new jc(n)}return i.set(e,t),this.size=i.size,this}function ge(e){var t=this.__data__=new ks(e);this.size=t.size}function be(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}function _e(e,t,i){"__proto__"==t&&Cc?Cc(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function we(e,t,i){var n=e[t];Fc.call(e,t)&&vs(n,i)&&(void 0!==i||t in e)||Rc(e,t,i)}function ke(e,t,i,n){var r=!i;i||(i={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=n?n(i[s],e[s],s,i,e):void 0;void 0===c&&(c=e[s]),r?Rc(i,s,c):Ic(i,s,c)}return i}function Se(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}function xe(e){return null!=e&&"object"==typeof e}function Oe(e){return Nc(e)&&Zs(e)==zc}function Ee(){return!1}function Ae(e,t){return!!(t=null==t?$c:t)&&("number"==typeof e||Wc.test(e))&&e>-1&&e%1==0&&e<t}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Jc}function Pe(e){return Nc(e)&&Qc(e.length)&&!!eu[Zs(e)]}function Te(e){return function(t){return e(t)}}function Me(e,t){var i=Yc(e),n=!i&&qc(e),r=!i&&!n&&Xc(e),o=!i&&!n&&!r&&ou(e),a=i||n||r||o,s=a?Bc(e.length,String):[],c=s.length;for(var u in e)!t&&!au.call(e,u)||a&&("length"==u||r&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Kc(u,c))||s.push(u);return s}function De(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||cu)}function Ce(e,t){return function(i){return e(t(i))}}function Re(e){if(!uu(e))return hu(e);var t=[];for(var i in Object(e))fu.call(e,i)&&"constructor"!=i&&t.push(i);return t}function Fe(e){return null!=e&&Qc(e.length)&&!Gs(e)}function Ie(e){return pu(e)?su(e):du(e)}function Le(e,t){return e&&Lc(t,vu(t),e)}function Be(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}function Ne(e){if(!Vs(e))return yu(e);var t=uu(e),i=[];for(var n in e)("constructor"!=n||!t&&gu.call(e,n))&&i.push(n);return i}function ze(e){return pu(e)?su(e,!0):bu(e)}function Ze(e,t){return e&&Lc(t,_u(t),e)}function Ve(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t}function Ue(e,t){for(var i=-1,n=null==e?0:e.length,r=0,o=[];++i<n;){var a=e[i];t(a,i,e)&&(o[r++]=a)}return o}function He(){return[]}function qe(e,t){return Lc(e,ju(e),t)}function Ye(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}function Ge(e,t){return Lc(e,Du(e),t)}function Xe(e,t,i){var n=t(e);return Yc(e)?n:Tu(n,i(e))}function $e(e){return Ru(e,vu,ju)}function We(e){return Ru(e,_u,Du)}function Ke(e){var t=e.length,i=e.constructor(t);return t&&"string"==typeof e[0]&&Xu.call(e,"index")&&(i.index=e.index,i.input=e.input),i}function Je(e){var t=new e.constructor(e.byteLength);return new Wu(t).set(new Wu(e)),t}function Qe(e,t){var i=t?Ku(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function et(e,t){return e.set(t[0],t[1]),e}function tt(e,t,i,n){var r=-1,o=null==e?0:e.length;for(n&&o&&(i=e[++r]);++r<o;)i=t(i,e[r],r,e);return i}function it(e){var t=-1,i=Array(e.size);return e.forEach(function(e,n){i[++t]=[n,e]}),i}function nt(e,t,i){var n=t?i(tl(e),il):tl(e);return el(n,Qu,new e.constructor)}function rt(e){var t=new e.constructor(e.source,rl.exec(e));return t.lastIndex=e.lastIndex,t}function ot(e,t){return e.add(t),e}function at(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}function st(e,t,i){var n=t?i(sl(e),cl):sl(e);return el(n,al,new e.constructor)}function ct(e){return hl?Object(hl.call(e)):{}}function ut(e,t){var i=t?Ku(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function lt(e,t,i,n){var r=e.constructor;switch(t){case kl:return Ku(e);case pl:case vl:return new r(+e);case Sl:return Ju(e,n);case xl:case Ol:case El:case Al:case jl:case Pl:case Tl:case Ml:case Dl:return dl(e,n);case ml:return nl(e,n,i);case yl:case _l:return new r(e);case gl:return ol(e);case bl:return ul(e,n,i);case wl:return fl(e)}}function ht(e){return"function"!=typeof e.constructor||uu(e)?{}:Fl(Mu(e))}function ft(e,t,i,n,r,o){var a,s=t&Ll,c=t&Bl,u=t&Nl;if(i&&(a=r?i(e,n,r,o):i(e)),void 0!==a)return a;if(!Vs(e))return e;var l=Yc(e);if(l){if(a=$u(e),!s)return Su(e,a)}else{var h=Gu(e),f=h==Zl||h==Vl;if(Xc(e))return ku(e,s);if(h==Ul||h==zl||f&&!r){if(a=c||f?{}:Il(e),!s)return c?Cu(e,wu(a,e)):Pu(e,mu(a,e))}else{if(!Hl[h])return r?e:{};a=Cl(e,h,ft,s)}}o||(o=new Mc);var d=o.get(e);if(d)return d;o.set(e,a);var p=u?c?Iu:Fu:c?keysIn:vu,v=l?void 0:p(e);return Dc(v||e,function(n,r){v&&(n=e[r=n]),Ic(a,r,ft(n,t,i,r,e,o))}),a}function dt(e){return"symbol"==typeof e||Nc(e)&&Zs(e)==Yl}function pt(e,t){if(Yc(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!Gl(e))||($l.test(e)||!Xl.test(e)||null!=t&&e in Object(t))}function vt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(Kl);var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var a=e.apply(this,n);return i.cache=o.set(r,a)||o,a};return i.cache=new(vt.Cache||jc),i}function mt(e){var t=Jl(e,function(e){return i.size===Ql&&i.clear(),e}),i=t.cache;return t}function yt(e){if("string"==typeof e)return e;if(Yc(e))return ds(e,yt)+"";if(Gl(e))return ah?ah.call(e):"";var t=e+"";return"0"==t&&1/e==-rh?"-0":t}function gt(e){return null==e?"":sh(e)}function bt(e,t){return Yc(e)?e:Wl(e,t)?[e]:nh(ch(e))}function _t(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}function wt(e){if("string"==typeof e||Gl(e))return e;var t=e+"";return"0"==t&&1/e==-hh?"-0":t}function kt(e,t){for(var i=0,n=(t=uh(t,e)).length;null!=e&&i<n;)e=e[fh(t[i++])];return i&&i==n?e:void 0}function St(e,t,i){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(i=i>r?r:i)<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(r);++n<r;)o[n]=e[n+t];return o}function xt(e,t){return t.length<2?e:dh(e,ph(t,0,-1))}function Ot(e,t){return t=uh(t,e),null==(e=vh(e,t))||delete e[fh(lh(t))]}function Et(e){if(!Nc(e)||Zs(e)!=yh)return!1;var t=Mu(e);if(null===t)return!0;var i=wh.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&_h.call(i)==kh}function At(e){return Sh(e)?void 0:e}function jt(e){return Yc(e)||qc(e)||!!(Oh&&e&&e[Oh])}function Pt(e,t,i,n,r){var o=-1,a=e.length;for(i||(i=Eh),r||(r=[]);++o<a;){var s=e[o];t>0&&i(s)?t>1?Pt(s,t-1,i,n,r):Tu(r,s):n||(r[r.length]=s)}return r}function Tt(e){return(null==e?0:e.length)?Ah(e,1):[]}function Mt(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function Dt(e,t,i){return t=Th(void 0===t?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=Th(n.length-t,0),a=Array(o);++r<o;)a[r]=n[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=n[r];return s[t]=i(a),Ph(e,this,s)}}function Ct(e){return function(){return e}}function Rt(e){return e}function Ft(e){var t=0,i=0;return function(){var n=Lh(),r=Ih-(n-i);if(i=n,r>0){if(++t>=Fh)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function It(e){return Bh(Mh(e,void 0,jh),e+"")}function Lt(e){return ql(e,zh|Zh)}function Bt(e){return this.__data__.set(e,qh),this}function Nt(e){return this.__data__.has(e)}function zt(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new jc;++t<i;)this.add(e[t])}function Zt(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}function Vt(e,t){return e.has(t)}function Ut(e,t,i,n,r,o){var a=i&Kh,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var l=-1,h=!0,f=i&Jh?new Xh:void 0;for(o.set(e,t),o.set(t,e);++l<s;){var d=e[l],p=t[l];if(n)var v=a?n(p,d,l,t,e,o):n(d,p,l,e,t,o);if(void 0!==v){if(v)continue;h=!1;break}if(f){if(!$h(t,function(e,t){if(!Wh(f,t)&&(d===e||r(d,e,i,n,o)))return f.push(t)})){h=!1;break}}else if(d!==p&&!r(d,p,i,n,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function Ht(e,t,i,n,r,o,a){switch(i){case df:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ff:return!(e.byteLength!=t.byteLength||!o(new Wu(e),new Wu(t)));case nf:case rf:case sf:return vs(+e,+t);case of:return e.name==t.name&&e.message==t.message;case cf:case lf:return e==t+"";case af:var s=tl;case uf:var c=n&ef;if(s||(s=sl),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;n|=tf,a.set(e,t);var l=Qh(s(e),s(t),n,r,o,a);return a.delete(e),l;case hf:if(vf)return vf.call(e)==vf.call(t)}return!1}function qt(e,t,i,n,r,o){var a=i&yf,s=Fu(e),c=s.length;if(c!=Fu(t).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in t:gf.call(t,l)))return!1}var h=o.get(e);if(h&&o.get(t))return h==t;var f=!0;o.set(e,t),o.set(t,e);for(var d=a;++u<c;){var p=e[l=s[u]],v=t[l];if(n)var m=a?n(v,p,l,t,e,o):n(p,v,l,e,t,o);if(!(void 0===m?p===v||r(p,v,i,n,o):m)){f=!1;break}d||(d="constructor"==l)}if(f&&!d){var y=e.constructor,g=t.constructor;y!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof g&&g instanceof g)&&(f=!1)}return o.delete(e),o.delete(t),f}function Yt(e,t,i,n,r,o){var a=Yc(e),s=Yc(t),c=a?kf:Gu(e),u=s?kf:Gu(t),l=(c=c==wf?Sf:c)==Sf,h=(u=u==wf?Sf:u)==Sf,f=c==u;if(f&&Xc(e)){if(!Xc(t))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new Mc),a||ou(e)?Qh(e,t,i,n,r,o):mf(e,t,c,i,n,r,o);if(!(i&_f)){var d=l&&xf.call(e,"__wrapped__"),p=h&&xf.call(t,"__wrapped__");if(d||p){var v=d?e.value():e,m=p?t.value():t;return o||(o=new Mc),r(v,m,i,n,o)}}return!!f&&(o||(o=new Mc),bf(e,t,i,n,r,o))}function Gt(e,t,i,n,r){return e===t||(null==e||null==t||!Nc(e)&&!Nc(t)?e!==e&&t!==t:Of(e,t,i,n,Gt,r))}function Xt(e,t,i,n){var r=i.length,o=r,a=!n;if(null==e)return!o;for(e=Object(e);r--;){var s=i[r];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++r<o;){var c=(s=i[r])[0],u=e[c],l=s[1];if(a&&s[2]){if(void 0===u&&!(c in e))return!1}else{var h=new Mc;if(n)var f=n(u,l,c,e,t,h);if(!(void 0===f?Ef(l,u,Af|jf,n,h):f))return!1}}return!0}function $t(e){return e===e&&!Vs(e)}function Wt(e){for(var t=vu(e),i=t.length;i--;){var n=t[i],r=e[n];t[i]=[n,r,Tf(r)]}return t}function Kt(e,t){return function(i){return null!=i&&(i[e]===t&&(void 0!==t||e in Object(i)))}}function Jt(e){var t=Mf(e);return 1==t.length&&t[0][2]?Df(t[0][0],t[0][1]):function(i){return i===e||Pf(i,e,t)}}function Qt(e,t,i){var n=null==e?void 0:dh(e,t);return void 0===n?i:n}function ei(e,t){return null!=e&&t in Object(e)}function ti(e,t,i){for(var n=-1,r=(t=uh(t,e)).length,o=!1;++n<r;){var a=fh(t[n]);if(!(o=null!=e&&i(e,a)))break;e=e[a]}return o||++n!=r?o:!!(r=null==e?0:e.length)&&Qc(r)&&Kc(a,r)&&(Yc(e)||qc(e))}function ii(e,t){return null!=e&&If(e,t,Ff)}function ni(e,t){return Wl(e)&&Tf(t)?Df(fh(e),t):function(i){var n=Rf(i,e);return void 0===n&&n===t?Lf(i,e):Ef(t,n,Bf|Nf)}}function ri(e){return function(t){return null==t?void 0:t[e]}}function oi(e){return function(t){return dh(t,e)}}function ai(e){return Wl(e)?Zf(fh(e)):Vf(e)}function si(e){return"function"==typeof e?e:null==e?Ch:"object"==typeof e?Yc(e)?zf(e[0],e[1]):Cf(e):Uf(e)}function ci(e){if("function"!=typeof e)throw new TypeError(qf);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ui(e,t,i,n){if(!Vs(e))return e;for(var r=-1,o=(t=uh(t,e)).length,a=o-1,s=e;null!=s&&++r<o;){var c=fh(t[r]),u=i;if(r!=a){var l=s[c];void 0===(u=n?n(l,c,s):void 0)&&(u=Vs(l)?l:Kc(t[r+1])?[]:{})}Ic(s,c,u),s=s[c]}return e}function li(e,t,i){for(var n=-1,r=t.length,o={};++n<r;){var a=t[n],s=dh(e,a);i(s,a)&&Gf(o,uh(a,e),s)}return o}function hi(e,t){if(null==e)return{};var i=ds(Iu(e),function(e){return[e]});return t=Hf(t),Xf(e,i,function(e,i){return t(e,i[0])})}function fi(e,t){return $f(e,Yf(Hf(t)))}function di(e,t){var i=t.type,n=Yi(t,["type"]);switch(i){case Qf.addChild:return Ui({},e,Vi({},n.from,[].concat($i(e[n.from]),[n.child])));case Qf.removeChild:return Ui({},e,Vi({},n.from,e[n.from].filter(function(e){return e!==n.child})));case Qf.removeAllChilds:return 0===e[n.from].length?e:Ui({},e,Vi({},n.from,[]));case Qf.event:return Ui({},e,{lastEvent:n.event});default:return e}}function pi(e,t){var i=t.type,n=Yi(t,["type"]);switch(i){case nd.enable:return Ui({},e,{enabled:n.enabled,collapsed:!n.enabled||e.collapsed});case nd.toggle:return Ui({},e,{enabled:!e.enabled,collapsed:!!e.enabled||e.collapsed});case nd.collapse:return Ui({},e,{collapsed:n.collapsed});case nd.toggleCollapse:return Ui({},e,{collapsed:!e.collapsed});case nd.addElement:return Ui({},e,{elements:[].concat($i(e.elements),[n.element])});case nd.removeElement:return Ui({},e,{elements:e.elements.filter(function(e){return e!==n.element})});case nd.removeAllElements:return Ui({},e,{elements:[]});default:return e}}function vi(e,t,i,n){for(var r=e.length,o=i+(n?1:-1);n?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function mi(e){return e!==e}function yi(e,t,i){for(var n=i-1,r=e.length;++n<r;)if(e[n]===t)return n;return-1}function gi(e,t,i){return t===t?ud(e,t,i):sd(e,cd,i)}function bi(e,t){return!!(null==e?0:e.length)&&ld(e,t,0)>-1}function _i(e,t,i){for(var n=-1,r=null==e?0:e.length;++n<r;)if(i(t,e[n]))return!0;return!1}function wi(e,t,i,n){var r=-1,o=hd,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;i&&(t=ds(t,iu(i))),n?(o=fd,a=!1):t.length>=dd&&(o=Wh,a=!1,t=new Xh(t));e:for(;++r<s;){var l=e[r],h=null==i?l:i(l);if(l=n||0!==l?l:0,a&&h===h){for(var f=u;f--;)if(t[f]===h)continue e;c.push(l)}else o(t,h,n)||c.push(l)}return c}function ki(e,t){return Bh(Mh(e,t,Ch),e+"")}function Si(e){return Nc(e)&&pu(e)}function xi(e,t){var i=t.type,n=Yi(t,["type"]);switch(i){case wd.setTree:return Ui({},e,{tree:n.tree});case wd.destroyTree:return Ui({},e,{tree:{1:{id:1,name:"",class:"",parent:null},root:1}});case wd.patchTree:return Ui({},e,{tree:yd.apply_patch(e.tree,n.patches)});case wd.message:return Ui({},e,{messages:[].concat($i(e.messages),[{type:n.type,message:n.message,reset:n.reset}])});case wd.setActiveFeature:return Ui({},e,{activeFeature:n.feature});case wd.setDefaultFeatureVisibility:return Ui({},e,{defaultFeatureVisibility:n.visible});case wd.linkPlugins:return Ui({},e,{plugins:[].concat($i(e.plugins),$i(Array.isArray(n.plugins)?n.plugins:[n.plugins]))});case wd.unlinkPlugins:return Ui({},e,{plugins:md.apply(void 0,[e.plugins].concat($i(Array.isArray(n.plugins)?n.plugins:[n.plugins])))});case wd.updateTree:return Ui({},e,{tree:Ui({},e.tree,Vi({},n.node,Ui({},e.tree[n.node],n.attributes)))});default:return e}}function Oi(e,t){var i=b(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).options;return Ui({},i,t.session.options,{session:session,callback:function(e){if("Model"===e.type){t.session.options.updateMaterials&&e.model.updateMaterials(),t.session.options.centerGeometry&&e.model.centerGeometry();var n=e.model.userData.id,r=t.primitives[n];if(r){var o=r.references.slice();r.destroy(),t.primitives[n]=e.model,e.model.references=[],o.forEach(function(t){var i=t.parent;if(t.destroyAsync(),i){var n=e.model.clone();i.addAsync(n),e.model.references.push(n)}})}else t.primitives[n]=e.model,e.model.references=[],t.waiting[n]&&(t.waiting[n].forEach(function(t){return t(e.model)}),delete t.waiting[n],t.updateView())}i.callback(e),t.session.options.callback&&t.session.options.callback(e)}})}function Ei(e){if("number"==typeof e)return e;if(Gl(e))return Rd;if(Vs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Vs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Fd,"");var i=Ld.test(e);return i||Bd.test(e)?Nd(e.slice(2),i?2:8):Id.test(e)?Rd:+e}function Ai(e,t,i){function n(t){var i=f,n=d;return f=d=void 0,g=t,v=e.apply(n,i)}function r(e){return g=e,m=setTimeout(s,t),b?n(e):v}function o(e){var i=e-g,n=t-(e-y);return _?Ud(n,p-i):n}function a(e){var i=e-y,n=e-g;return void 0===y||i>=t||i<0||_&&n>=p}function s(){var e=Cd();if(a(e))return c(e);m=setTimeout(s,o(e))}function c(e){return m=void 0,w&&f?n(e):(f=d=void 0,v)}function u(){void 0!==m&&clearTimeout(m),g=0,f=y=d=m=void 0}function l(){return void 0===m?v:c(Cd())}function h(){var e=Cd(),i=a(e);if(f=arguments,d=this,y=e,i){if(void 0===m)return r(y);if(_)return m=setTimeout(s,t),n(y)}return void 0===m&&(m=setTimeout(s,t)),v}var f,d,p,v,m,y,g=0,b=!1,_=!1,w=!0;if("function"!=typeof e)throw new TypeError(Zd);return t=zd(t)||0,Vs(i)&&(b=!!i.leading,p=(_="maxWait"in i)?Vd(zd(i.maxWait)||0,t):p,w="trailing"in i?!!i.trailing:w),h.cancel=u,h.flush=l,h}function ji(e,t,i){var n=!0,r=!0;if("function"!=typeof e)throw new TypeError(qd);return Vs(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),Hd(e,t,{leading:n,maxWait:t,trailing:r})}function Pi(e){var t=e.root,i=e.parent,n=e.clones,r=e.container,o=e.primitive,a=n[e.item]=o.clone();o.references.push(a);var s=[t];for(i=r;i&&i.userData&&i.userData.id;)s.push(i.userData.id),i=i.parent;s=s.reverse();var c=!0,u=!1,l=void 0;try{for(var h,f=a.children.keys()[Symbol.iterator]();!(c=(h=f.next()).done);c=!0){var d=h.value,p=a.children[d],v=o.children[d];if(p.material)if(Array.isArray(p.material))for(var m=0,y=p.material.length;m<y;m++){var g=v.material[m];(p.material[m]=g.clone(!0)).meta=Ui({},g.meta,{originalId:g.meta.id,id:[].concat($i(s),[g.meta.id]).join(",")})}else p.material=v.material.clone(!0),p.material.meta=Ui({},v.material.meta)}}catch(e){u=!0,l=e}finally{try{!c&&f.return&&f.return()}finally{if(u)throw l}}return r.reset(a).add(a)}function Ti(e,t){var i=!0,n=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done);i=!0){var s=o.value,c=e.elements[s];if(c.type===ad.Type.Console)return e.store.dispatch(ed.update(c.id,{focus:!0})),e.store.dispatch(ed.event(c.id,event)),!0;if(c.type===ad.Type.Group&&Ti(e,c.children))return!0}}catch(e){n=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}return!1}function Mi(e){if(!(e.target instanceof HTMLInputElement))for(var t in this.plugins){var i=this.plugins[t];if(i.enabled&&!i.collapsed&&Ti(this,i.elements))return}}function Di(e,t){requestAnimationFrame(function(){hp=hp.then(function(){fp=e.id,dp[fp]&&Ci(fp),dp[fp]={stack:{},stateStack:[],order:0,plugin:e},e.addElement(Ii(e,Fi(t())))})})}function Ci(e){var t=dp[e];t&&(Object.values(t.stack).forEach(function(e){e.unsubscribes&&e.unsubscribes.forEach(function(e){return e()}),e.component&&e.component.componentWillUnmount&&e.component.componentWillUnmount(),e.component=void 0,e.element.destroy(),e.element=void 0,e.children=void 0}),delete dp[e],t.plugin.destroyElements())}function Ri(e,t){(Array.isArray(e)?e:[e]).forEach(function(e){e.el&&!(e.el.prototype instanceof ad)&&t.push(e),e.children&&Ri(e.children,t)})}function Fi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];if(Array.isArray(e))for(var i in e)e[i]=Fi(e[i]||{},[].concat($i(t),[parseInt(i)]));else e.depth=[].concat($i(t)),e.children&&(e.children=Fi(e.children,t));return e}function Ii(e,t,i){arguments.length>3&&void 0!==arguments[3]&&arguments[3];var n=dp[e.id];if(Array.isArray(t))return t.map(function(t){return Ii(e,t,i)});if(t.el){var r=t.tag+"."+t.depth.join("."),o=n.stack[r],a=o||t;a.element,i=i||a.parent;if(o||(n.stack[r]=a),a.parent=i,a.el.prototype instanceof ad){var s=Ui({},t.props,{children:Ii(e,t.children,a).filter(function(e){return e}).map(function(e){return e.id})});o?a.element.update(s):a.element=new a.el(n.plugin,s),a.unsubscribes&&a.unsubscribes.forEach(function(e){return e()}),a.unsubscribes=a.handlers.map(function(e){var i=e.charAt(2).toLowerCase()+e.substr(3);return a.element.observe(function(e){return e[i]},function(i,n){return t.events[e](i,n)})})}else a.element=Ii(e,t.children,i);return a.element}}t=t&&"default"in t?t.default:t;var Li,Bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ni=function(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,i){function n(r,o){try{var a=t[r](o),s=a.value}catch(e){return void i(e)}if(!a.done)return Promise.resolve(s).then(function(e){n("next",e)},function(e){n("throw",e)});e(s)}return n("next")})}},zi=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Zi=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),Vi=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},Ui=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Hi=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},qi=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Yi=function(e,t){var i={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);return i},Gi=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Xi=function(){function e(e,t){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),$i=function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)},Wi=function(){function e(){zi(this,e),this._callbacks=void 0,this._inspectors=void 0}return Zi(e,[{key:"subscribe",value:function(e,t,i){return this.on(e,t,i).removeListener.bind(this,e,t)}},{key:"once",value:function(e,t){this.on(e,t,{remove:!0})}},{key:"onFirst",value:function(e,t){this.on(e,t,{priority:1})}},{key:"onLast",value:function(e,t){this.on(e,t,{priority:-1})}},{key:"on",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(e)){var n=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var c=a.value;this.on(c,t,i)}}catch(e){r=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}}else if("object"===(void 0===e?"undefined":Bi(e))){"object"===(void 0===t?"undefined":Bi(t))&&(i=t);var u=!0,l=!1,h=void 0;try{for(var f,d=Object.entries(e)[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var p=Xi(f.value,2),v=p[0];"function"==typeof(y=p[1])&&this.on(v,y,i)}}catch(e){l=!0,h=e}finally{try{!u&&d.return&&d.return()}finally{if(l)throw h}}}else if("string"==typeof e&&"function"==typeof t){var m=e,y=t,g=i,b=g.remove,_=void 0!==b&&b,w=g.priority,k=void 0===w?0:w,S=g.sync,x=void 0!==S&&S;this._callbacks||(this._callbacks={});var O=this._callbacks[m];if(O||(O=this._callbacks[m]=[]),O.indexOf(y)<0&&(y.remove=_,y.sync=x,y.priority=k,O.push(y),O.sort(function(e,t){return t.priority-e.priority}),this._inspectors)){var E=!0,A=!1,j=void 0;try{for(var P,T=this._inspectors[Symbol.iterator]();!(E=(P=T.next()).done);E=!0)(0,P.value)({action:"Add",type:m,callback:y})}catch(e){A=!0,j=e}finally{try{!E&&T.return&&T.return()}finally{if(A)throw j}}}}return this}},{key:"inspect",value:function(e){this._inspectors||(this._inspectors=[]),this._inspectors.push(e)}},{key:"removeListener",value:function(e,t){if(!Array.isArray(e)&&"object"===(void 0===e?"undefined":Bi(e))&&void 0===t){var i=!0,n=!1,r=void 0;try{for(var o,a=Object.entries(e)[Symbol.iterator]();!(i=(o=a.next()).done);i=!0){var s=Xi(o.value,2),c=s[0],u=s[1];this.removeListener(c,u)}}catch(e){n=!0,r=e}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}return this}this._callbacks||(this._callbacks={}),e=Array.isArray(e)?e:[e];var l=!0,h=!1,f=void 0;try{for(var d,p=e[Symbol.iterator]();!(l=(d=p.next()).done);l=!0){var c=d.value,v=this._callbacks[c];if(v)if(t){var m=v.indexOf(t);if(m>-1&&v.splice(m,1),this._inspectors){var y=!0,g=!1,b=void 0;try{for(var _,w=this._inspectors[Symbol.iterator]();!(y=(_=w.next()).done);y=!0)(0,_.value)({action:"Remove",type:c,callback:t})}catch(e){g=!0,b=e}finally{try{!y&&w.return&&w.return()}finally{if(g)throw b}}}}else if(delete this._callbacks[c],this._inspectors){var k=!0,S=!1,x=void 0;try{for(var O,E=this._inspectors[Symbol.iterator]();!(k=(O=E.next()).done);k=!0)(0,O.value)({action:"Remove",type:c,callback:void 0})}catch(e){S=!0,x=e}finally{try{!k&&E.return&&E.return()}finally{if(S)throw x}}}}}catch(e){h=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(h)throw f}}return this}},{key:"removeListeners",value:function(){this._callbacks=void 0}},{key:"removeInspectors",value:function(){this._inspectors=void 0}},{key:"emit",value:function(e){for(var t=this,i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];this._callbacks||(this._callbacks={});var o=this._callbacks[e];o=o?[].concat($i(o)):[];var a=!0,s=!1,c=void 0;try{for(var u,l=o[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var h=u.value;h.sync&&(h.remove&&this.removeListener(e,h),h.call.apply(h,[this].concat(n)))}}catch(e){s=!0,c=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw c}}var f=Promise.resolve(),d=!0,p=!1,v=void 0;try{for(var m,y=o[Symbol.iterator]();!(d=(m=y.next()).done);d=!0)!function(){var i=m.value;i.sync||(f=f.then(function(){return i.remove&&t.removeListener(e,i),i.call.apply(i,[t].concat(n))}))}()}catch(e){p=!0,v=e}finally{try{!d&&y.return&&y.return()}finally{if(p)throw v}}return f}},{key:"bubble",value:function(e){this._callbacks||(this._callbacks={});for(var t=this._callbacks[e],i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];if(t)return this.emit.apply(this,[e].concat(n));if(this.parent){var o;return(o=this.parent).bubble.apply(o,[e].concat(n))}return Promise.resolve()}},{key:"findListener",value:function(e){return this._callbacks||(this._callbacks={}),this._callbacks[e]?this:this.parent?this.parent.find(e):void 0}},{key:"hasListener",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this._callbacks||(this._callbacks={});var i=this._callbacks[e];return!(!i||t&&t!==i)}}],[{key:"mixin",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t.hasListener=e.prototype.hasListener,t.subscribe=e.prototype.subscribe,t.on=e.prototype.on,t.once=e.prototype.once,t.onFirst=e.prototype.onFirst,t.onLast=e.prototype.onLast,t.inspect=e.prototype.inspect,t.removeListener=e.prototype.removeListener,t.removeListeners=e.prototype.removeListeners,t.removeInspectors=e.prototype.removeInspectors,t.emit=e.prototype.emit,t.bubble=e.prototype.bubble,t.findListener=e.prototype.findListener,i&&t.on.bind(t)(i)}}]),e}(),Ki={resolution:1,up:[0,1,0],stats:!1,debug:!1,ambientIntensity:1,renderOrder:{Mesh:0,LineSegments:100},updateView:{focus:!1,zoom:!1,rotate:!1,layers:!1},materials:{lazy:!1,multi:!0,lineDistances:!0,shadows:!0,lights:!0},lineShader:e.LineBasicMaterial,lineShaderOptions:{transparent:!0,fog:!1},meshShader:e.MeshPhysicalMaterial,meshShaderOptions:(Li={transparent:!0,fog:!1,reflectivity:1,polygonOffset:!0,polygonOffsetFactor:1,polygonOffsetUnits:1,emissive:new e.Color(0)},Vi(Li,"reflectivity",1),Vi(Li,"metalness",.8),Vi(Li,"roughness",.7),Vi(Li,"clearCoat",.75),Vi(Li,"clearCoatRoughness",.5),Vi(Li,"envMapIntensity",.75),Li)},Ji=function(e){function t(){zi(this,t);var e=Gi(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));for(var i in Ki)!function(i){Object.defineProperty(e,i,{configurable:!0,get:function(){return Ki[i]},set:function(n){return e.emit(t.Events.Changed,i,Ki[i]=n)}})}(i);return e}return qi(t,e),Zi(t,[{key:"all",get:function(){return Ki}}]),t}(Wi);Ji.Events={Changed:"Changed"};var Qi=new Ji,en="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},tn=i(function(e,t){var i=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;(t=e.exports=function(){for(var e,i="",n=0;n<32;n++)e=16*t.random()|0,n>4&&n<21&&!(n%4)&&(i+="-"),i+=(12===n?4:16===n?3&e|8:e).toString(16);return i}).isUUID=function(e){return i.test(e)},t.random=function(){return Math.random()}}),nn=function(){function e(){zi(this,e),this.stamp=void 0,this.total=void 0}return Zi(e,[{key:"begin",value:function(){return this.stamp=performance.now(),this}},{key:"end",value:function(){return this.stamp=performance.now()-this.stamp,(!this.total||this.stamp>this.total)&&(this.total=this.stamp),this}},{key:"printCurrent",value:function(){return console.log(this.stamp),this}},{key:"printTotal",value:function(){return console.log(this.total),this}},{key:"clear",value:function(){return this.total=void 0,this}}]),e}(),rn=function(){function e(e,t){return e=e.toString(),String(t+e).slice(-t.length)}var t=performance.now(),i=Date.now();return{get:function(){var n=performance.now()-t,r=i+n,o=Math.trunc(r/6e4)%60,a=Math.trunc(r/1e3)%60,s=Math.trunc(1e3*r)%1e6;return e(o,"00")+":"+e(a,"00")+"."+e(s,"000000")}}}(),on=Object.freeze({url:n,queryDom:r,setPrefixedValue:o,Performance:nn,Timestamp:rn}),an=Object.freeze({log:a,halt:s}),sn=Math.ceil,cn=Math.floor,un=function(e){return isNaN(e=+e)?0:(e>0?cn:sn)(e)},ln=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e},hn=i(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),fn=i(function(e){var t=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=t)}),dn=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},pn=function(e,t,i){if(dn(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,r){return e.call(t,i,n,r)}}return function(){return e.apply(t,arguments)}},vn=function(e){return"object"==typeof e?null!==e:"function"==typeof e},mn=function(e){if(!vn(e))throw TypeError(e+" is not an object!");return e},yn=function(e){try{return!!e()}catch(e){return!0}},gn=!yn(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),bn=hn.document,_n=vn(bn)&&vn(bn.createElement),wn=function(e){return _n?bn.createElement(e):{}},kn=!gn&&!yn(function(){return 7!=Object.defineProperty(wn("div"),"a",{get:function(){return 7}}).a}),Sn=function(e,t){if(!vn(e))return e;var i,n;if(t&&"function"==typeof(i=e.toString)&&!vn(n=i.call(e)))return n;if("function"==typeof(i=e.valueOf)&&!vn(n=i.call(e)))return n;if(!t&&"function"==typeof(i=e.toString)&&!vn(n=i.call(e)))return n;throw TypeError("Can't convert object to primitive value")},xn=Object.defineProperty,On={f:gn?Object.defineProperty:function(e,t,i){if(mn(e),t=Sn(t,!0),mn(i),kn)try{return xn(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},En=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},An=gn?function(e,t,i){return On.f(e,t,En(1,i))}:function(e,t,i){return e[t]=i,e},jn=function(e,t,i){var n,r,o,a=e&jn.F,s=e&jn.G,c=e&jn.S,u=e&jn.P,l=e&jn.B,h=e&jn.W,f=s?fn:fn[t]||(fn[t]={}),d=f.prototype,p=s?hn:c?hn[t]:(hn[t]||{}).prototype;s&&(i=t);for(n in i)(r=!a&&p&&void 0!==p[n])&&n in f||(o=r?p[n]:i[n],f[n]=s&&"function"!=typeof p[n]?i[n]:l&&r?pn(o,hn):h&&p[n]==o?function(e){var t=function(t,i,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,i)}return new e(t,i,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(o):u&&"function"==typeof o?pn(Function.call,o):o,u&&((f.virtual||(f.virtual={}))[n]=o,e&jn.R&&d&&!d[n]&&An(d,n,o)))};jn.F=1,jn.G=2,jn.S=4,jn.P=8,jn.B=16,jn.W=32,jn.U=64,jn.R=128;var Pn=jn,Tn=An,Mn={}.hasOwnProperty,Dn=function(e,t){return Mn.call(e,t)},Cn={},Rn={}.toString,Fn=function(e){return Rn.call(e).slice(8,-1)},In=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==Fn(e)?e.split(""):Object(e)},Ln=function(e){return In(ln(e))},Bn=Math.min,Nn=function(e){return e>0?Bn(un(e),9007199254740991):0},zn=Math.max,Zn=Math.min,Vn=function(e,t){return e=un(e),e<0?zn(e+t,0):Zn(e,t)},Un=hn["__core-js_shared__"]||(hn[