!function(C,L,H){"use strict";function _(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=L.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Eh(t,e)}function c(t){t=L.prototype.toString.call(t);return"Array]"===t.substring(t.length-6)}function v(t,e,i,n,r,o){e=e||[],i=i||[],n=n||[];try{e.push(t);var a=Function.apply(0,e);return i[i.length]="return "+a,Function.apply(0,i).apply(0,n)}catch(t){return o&&o(t),r}}function h(i){var n={};return{get:function(t){if(n[t]!==H)return n[t];var e;switch(t){case"WEBGL_depth_texture":e=i.getExtension("WEBGL_depth_texture")||i.getExtension("MOZ_WEBGL_depth_texture")||i.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":e=i.getExtension("EXT_texture_filter_anisotropic")||i.getExtension("MOZ_EXT_texture_filter_anisotropic")||i.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":e=i.getExtension("WEBGL_compressed_texture_s3tc")||i.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||i.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":e=i.getExtension("WEBGL_compressed_texture_pvrtc")||i.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;case"WEBGL_compressed_texture_etc1":e=i.getExtension("WEBGL_compressed_texture_etc1");break;default:e=i.getExtension(t)}return n[t]=e}}}function l(e,i,t){function n(t){if("highp"===t){if(0N(t,i)||c+FsN(r,a)||l+FsN(e,n)||l+FsN(o,s))?U:[c,l]},Gn=function(t,e,i){if(t&&i)if(e){if("style"===e)return t.getStyle(i);if("attr"===e)return t.getAttr(i);if(e===Ye)return t[i]}else if(t[i=fn(i)])return t[i]();return H},Hn=function(t,e,i,n){t&&i&&(e?"style"===e?t.s(i,n):"attr"===e?t.a(i,n):e===Ye&&(e=t[i],t[i]=n,t.fp("f:"+i,e,n)):t[i=gn(i)]&&t[i](n))},Wn=function(t,e,i){return e&&"top"!==e?"bottom"===e?{x:t.x,y:t.y,width:t.width,height:t.height*i}:"right"===e?{x:t.x,y:t.y,width:t.width*i,height:t.height}:"left"===e?{x:t.x+t.width*(1-i),y:t.y,width:t.width*i,height:t.height}:void 0:{x:t.x,y:t.y+t.height*(1-i),width:t.width,height:t.height*i}},qn=function(t,e,i,n,r){e&&lo(t,i,n,1,r,e)},Xn=function(t,e,i,n){var r=1-t;return r*r*e+2*t*r*i+t*t*n},Qn=function(t,e,i,n,r){var o=1-t;return o*o*o*e+3*o*o*t*i+3*o*t*t*n+t*t*t*r},Yn=function(t){var e,i,n,r,o=0;return t.forEach(function(t){if(0<(e=t.length))for(i=t[0],r=1;rr&&(r=s.width),i=i||s.height}return t.ss=n,{width:r,height:i*o}},sr=function(t,e,i,n,r,o){var a=e.length;if(1===a)hr(t,e[0],i,n,r);else for(var s=i.height/a,h={x:i.x,y:i.y,width:i.width,height:s},c=0;cG.imageCacheThreshold&&(e._cacheImage_[s]={__count__:0}),h=Gl.Default.toCanvas(e,mh(e),bh(e),null,r,o,i,null,n),e._cacheImage_[s][i]=h,e._cacheImage_[s].__count__++),e=h),a=t.createPattern(e,"repeat")}catch(t){a="black"}return a},vo=function(t){for(var e,i=[],n=0,r=t.length,o=0;o<65;o++)i[o]=o;for(o=0;o<65;o++)n=(n+i[o]+t.charCodeAt(o%r))%65,e=i[o],i[o]=i[n],i[n]=e;for(o=0;o<65;o++)i[o]=$o[i[o]];return i.join("")},yo=function(t,e,i,n,r,o,a){t.save(),t.translate(e,i),t.scale(1,a/o),t.arc(0,0,o,n,r),t.restore()},mo=function(t,e,i,n,r,o,a,s,h){6===arguments.length&&(h=s=a=o);var c=e+n,l=i+r,n=n>2,o=(3&s)<<4|(i=t.charCodeAt(c++))>>4,a=(15&i)<<2|(n=t.charCodeAt(c++))>>6,s=63&n,isNaN(i)?a=s=64:isNaN(n)&&(s=64),h=h+e.charAt(r)+e.charAt(o)+e.charAt(a)+e.charAt(s);return h},decode:function(t,e,i){for(var n,r,o,a,s,h="",c=i||0;c>4,r=(15&o)<<4|(a=e.indexOf(t.charAt(c++)))>>2,o=(3&a)<<6|(s=e.indexOf(t.charAt(c++))),h+=String.fromCharCode(n),64!=a&&(h+=String.fromCharCode(r)),64!=s&&(h+=String.fromCharCode(o));return decodeURIComponent(escape(h))},_utf8_encode:function(t){t=t.replace(/\r\n/g,"\n");for(var e="",i=0;i>6):(e+=String.fromCharCode(224|n>>12),e+=String.fromCharCode(128|63&n>>6)),e+=String.fromCharCode(128|63&n))}return e},_utf8_decode:function(t){for(var e,i,n="",r=0,o=0;r>8]+r[255&t>>16]+r[255&t>>24]+"-"+r[255&e]+r[255&e>>8]+"-"+r[64|15&e>>16]+r[255&e>>24]+"-"+r[128|63&i]+r[255&i>>8]+"-"+r[255&i>>16]+r[255&i>>24]+r[255&n]+r[255&n>>8]+r[255&n>>16]+r[255&n>>24]}}(),clamp:function(t,e,i){return Math.max(e,Math.min(i,t))},generateIncreasingID:(cm=0,function(){return++cm}),encodeBase64:function(t,e){return ta.encode(t,e||$o)},decodeBase64:function(t,e){return ta.decode(t,e||$o)},randomArray:function(t,e){for(var i=(e=e||t.length)-1;0>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16;var i=++e>>1;return e-tMath.abs(t.z)?sm.set(-t.y,t.x,0):sm.set(0,-t.z,t.y)):sm.crossVectors(t,e),this._x=sm.x,this._y=sm.y,this._z=sm.z,this._w=hm,this.normalize()},setFromUnitVectors:function(t,e){return om===H&&(om=new ha),(am=t.dot(e)+1)<1e-6?(am=0,Math.abs(t.x)>Math.abs(t.z)?om.set(-t.y,t.x,0):om.set(0,-t.z,t.y)):om.crossVectors(t,e),this._x=om.x,this._y=om.y,this._z=om.z,this._w=am,this.normalize()},multiply:function(t){return this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var i=t._x,n=t._y,r=t._z,o=t._w,a=e._x,s=e._y,t=e._z,e=e._w;return this._x=i*e+o*a+n*t-r*s,this._y=n*e+o*s+r*a-i*t,this._z=r*e+o*t+i*s-n*a,this._w=o*e-i*a-n*s-r*t,this}}),sa=Gl.Math.Vector4=function(t,e,i,n){this.x=t||0,this.y=e||0,this.z=i||0,this.w=n!==H?n:1},L.assign(sa.prototype,{isVector4:!0,set:function(t,e,i,n){return this.x=t,this.y=e,this.z=i,this.w=n,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this.w=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setW:function(t){return this.w=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w!==H?t.w:1,this},add:function(t,e){return e!==H?this.addVectors(t,e):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this},sub:function(t,e){return e!==H?this.subVectors(t,e):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},applyMatrix4:function(t){var e=this.x,i=this.y,n=this.z,r=this.w,t=t.el;return this.x=t[0]*e+t[4]*i+t[8]*n+t[12]*r,this.y=t[1]*e+t[5]*i+t[9]*n+t[13]*r,this.z=t[2]*e+t[6]*i+t[10]*n+t[14]*r,this.w=t[3]*e+t[7]*i+t[11]*n+t[15]*r,this},divideScalar:function(t){return this.multiplyScalar(1/t)},setAxisAngleFromQuaternion:function(t){this.w=2*Math.acos(t.w);var e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this},setAxisAngleFromRotationMatrix:function(t){var e,i,n,r=t.el,o=r[0],a=r[4],s=r[8],h=r[1],c=r[5],l=r[9],u=r[2],d=r[6],f=r[10];if(Math.abs(a-h)<.01&&Math.abs(s-u)<.01&&Math.abs(l-d)<.01){if(Math.abs(a+h)<.1&&Math.abs(s+u)<.1&&Math.abs(l+d)<.1&&Math.abs(o+c+f-3)<.1)return this.set(1,0,0,0),this;y=Math.PI;var g=(o+1)/2,p=(c+1)/2,_=(f+1)/2,v=(a+h)/4,t=(s+u)/4,r=(l+d)/4;return pthis.max.x||t.max.ythis.max.y||t.max.zthis.max.z)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this},isEmpty:function(){return this.max.xthis.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e},getBoundingBox:function(t){return t===H&&(t=new da),t.set(this.center,this.center),t.expandByScalar(this.radius),t},applyMatrix4:function(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this},translate:function(t){return this.center.add(t),this},equals:function(t){return t.center.equals(this.center)&&t.radius===this.radius}}),Ag=Gl.Math.Frustum=function(t,e,i,n,r,o){this.planes=[t!==H?t:new la,e!==H?e:new la,i!==H?i:new la,n!==H?n:new la,r!==H?r:new la,o!==H?o:new la]},L.assign(Ag.prototype,{set:function(t,e,i,n,r,o){var a=this.planes;return a[0].copy(t),a[1].copy(e),a[2].copy(i),a[3].copy(n),a[4].copy(r),a[5].copy(o),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){for(var e=this.planes,i=0;i<6;i++)e[i].copy(t.planes[i]);return this},setFromMatrix:function(t){var e=this.planes,i=t.el,n=i[0],r=i[1],o=i[2],a=i[3],s=i[4],h=i[5],c=i[6],l=i[7],u=i[8],d=i[9],f=i[10],g=i[11],p=i[12],_=i[13],t=i[14],i=i[15];return e[0].setComponents(a-n,l-s,g-u,i-p).normalize(),e[1].setComponents(a+n,l+s,g+u,i+p).normalize(),e[2].setComponents(a+r,l+h,g+d,i+_).normalize(),e[3].setComponents(a-r,l-h,g-d,i-_).normalize(),e[4].setComponents(a-o,l-c,g-f,i-t).normalize(),e[5].setComponents(a+o,l+c,g+f,i+t).normalize(),this},intersectsObject:(Vy=new Va,function(t){var e=t.geometry;return null===e.boundingSphere&&e.computeBoundingSphere(),Vy.copy(e.boundingSphere).applyMatrix4(t.matrixWorld),this.intersectsSphere(Vy)}),intersectsSprite:(zy=new Va,function(t){return zy.center.set(0,0,0),zy.radius=.7071067811865476,zy.applyMatrix4(t.matrixWorld),this.intersectsSphere(zy)}),intersectsSphere:function(t){for(var e=this.planes,i=t.center,n=-t.radius,r=0;r<6;r++)if(e[r].distanceToPoint(i)t&&Xm(e),e.lastPoint=n,e.details++,e.timeout=w(function(){Xm(this)}.bind(e),G.doubleClickSpeed)),2===e.details}),isShiftDown:function(t){return t?t.shiftKey:Li[16]},isCtrlDown:function(t){return t?B?t.metaKey:t.ctrlKey:B?Li[91]:Li[17]},getClientPoint:function(t){return Tr(t)&&(t=Er(t)),{x:t.clientX,y:t.clientY}},isMouseEvent:function(t){return t instanceof MouseEvent||0===t.type.indexOf("mouse")},getTargetElement:function(t){if(G.isMouseEvent(t)||!d.elementFromPoint)return t.target;t=vs(t);return d.elementFromPoint(t.x,t.y)},getPagePoint:function(t){return Tr(t)&&(t=Er(t)),{x:t.pageX,y:t.pageY}},createObject:function(t,e){var i,n=new t;for(i in e){var r,o=e[i];mn(o)?n[i]=o:0===i.indexOf("s:")?n.s(i.substr(2),e[i]):0===i.indexOf("a:")?n.a(i.substr(2),e[i]):(r=gn(i),o=e[i],n[r]?(n[r](o),"setToolTip"===r&&n.enableToolTip&&n.enableToolTip()):n[i]=o)}return n},setImage:function(t,e,i,n){var r=arguments.length;4===r?on(t,n,e,i):2===r?(pn(e)?on:nn)(t,e):1===r&&on(t,t)},getImage:function(t,e,i){var n;if(t==U)return U;if(yn(t)?n=t:(n=Oi[t],t&&n===H&&(tn&&tn[t]||on(t,t))),e&&n&&n.tagName){var r="override"===i?"colors_override":"override_rgb"===i?"colors_override_rgb":"override_a"===i?"colors_override_a":"colors";n[r]||(n[r]={__count__:0});t=n[r][e];return t||(n[r].__count__>G.imageCacheThreshold&&(n[r]={__count__:0}),t=function(e,t,i,n,r){var o=er();o.width=i,o.height=n;var a=o.getContext("2d");a.drawImage(e,0,0,i,n);try{for(var s=a.getImageData(0,0,i,n),h=s.data,c=0,l=h.length;ct.x+t.width||e.y>t.y+t.height)},containsRect:function(t,e){if(!t||!e)return!1;var i=e.x,n=e.y,r=e.width,o=e.height,a=t.width,s=t.height;if((a|s|r|o)<0)return!1;e=t.x,t=t.y;if(ir.width&&(n.left=o-e-s.width+vt),s.top+s.height>r.height&&(n.top=a-e-s.height+vt),s.left<0&&(n.left=o+e+vt),s.top<0&&(n.top=a+e+vt))):(n.left=t.x+vt,n.top=t.y+vt),Ei()):Ta()},startDragging:function(t,e,i){i==H&&(i=!0),t!==Ir&&(Ir?i&&(Tr(e)?Ir.handleWindowTouchEnd(e):Ir.handleWindowMouseUp(e)):Tr(e)?(g(C,ci,Cr),g(C,li,Mr)):(g(C,ai,Rr),g(C,si,Ar)),Ir=t)},getImageMap:function(){return Oi},toBoundaries:function(t,e,i,n){var r=[];return so(t,e,i,n).forEach(function(t){var e=[];t.forEach(function(t){e.push(t.x,t.y)}),r.push(e)}),r},getCurrentKeyCodeMap:function(){return Li},drawCenterImage:function(t,e,i,n,r,o,a,s){!r&&o&&o.isSelfViewEvent&&(r=o);var h=mh(e,r,o),c=bh(e,r,o);wh(t,e,S(i-h/2),S(n-c/2),h,c,r,o,a,s)},drawStretchImage:function(t,e,i,n,r,o,a,s,h,c,l,u){!s&&h&&h.isSelfViewEvent&&(s=h);var d=mh(e,s,h,o),f=bh(e,s,h,a);"uniform"===i?(f*=p=q(o/d,a/f),n+=S((o-(d*=p))/2),r+=S((a-f)/2),o=d,a=f):"centerUniform"===i&&((o=ly.main)throw new RangeError("Skybox camera must have lower priority than the main camera.");ly.skybox=Number(t)}},main:{configurable:!1,enumerable:!1,get:function(){return ly.main},set:function(t){if(t<=ly.skybox)throw new RangeError("Main camera must have higher priority than the skybox camera.");if(t>=ly.top)throw new RangeError("Main camera must have lower priority than the top camera.");ly.main=Number(t)}},top:{configurable:!1,enumerable:!1,get:function(){return ly.top},set:function(t){if(t<=ly.main)throw new RangeError("Top camera must have higher priority than the main camera.");ly.top=Number(t)}}})))},!0),An(e,{autoAdjustIndex:1,hierarchicalRendering:1,adjustChildrenToTop:1,autoHideScrollBar:1,autoUpdate:1,firstPersonMode:1,ortho:1,strict:1,stickToRight:1,instant:1,closePath:1,hierarchical:1,doubleClickToToggle:1,continuousLayout:1,syncSize:1},!0),va=G.disabledOpacity,ya=G.toolTipDelay,ma=G.devicePixelRatio,ba=G.autoMakeVisible,xa=G.autoHideScrollBar,wa=G.imageGradient,Ea=G.showToolTip,Ta=G.hideToolTip,Sa=G.dashPattern,Ia=G.lineCap,Ca=G.lineJoin,Ma=G.labelColor,Ra=G.labelSelectColor,Aa=G.labelFont,Pa=G.widgetIndent,Da=G.widgetRowHeight,Oa=G.widgetHeaderHeight,Ba=G.widgetTitleHeight,za=G.scrollBarColor,Va=G.scrollBarSize,La=G.scrollBarTimeout,Fa=G.scrollBarMinLength,ka=G.scrollBarInteractiveSize,ja=G.zoomIncrement,Na=G.scrollZoomIncrement,Ua=G.pinchZoomIncrement,Ga=G.zoomMax,Ha=G.zoomMin,Wa=G.createObject,qa=G.preventDefault,Xa=G.setImage,Qa=G.getImage,Ya=G.isImageComplete,Za=G.drawCenterImage,Ka=G.drawStretchImage,Ja=G.getId,$a=G.callLater,ts=G.cancelLater,es=G.sortFunc,is=G.clone,ns=G.getClass,rs=G.startAnim,os=G.brighter,as=G.darker,ss=G.drawText,hs=G.getTextSize,cs=G.isLeftButton,ls=G.isMiddleButton,us=G.isRightButton,ds=G.getTouchCount,fs=G.isDoubleClick,gs=G.isShiftDown,ps=G.isCtrlDown,_s=G.getClientPoint,vs=G.getPagePoint,ys=G.getDistance,ms=G.unionPoint,bs=G.unionRect,xs=G.containsPoint,ws=G.containsRect,Es=G.intersectsRect,Ts=G.intersection,Ss=G.getWindowInfo,Is=G.grow,Cs=G.getLogicalPoint,Ms=G.getScreenPoint,Rs=G.startDragging,As=G.removeHTML,Ps=G.createElement,Ds=G.segmentResolution,Os=G.shapeResolution,Bs=G.shapeSide,zs=G.def,Vs=function(t,e,i){zs("ht."+t,e,i)},Ls=function(t,e){t.childNodes.forEach(function(t){e(t),Ls(t,e)})},An(G,{toolTipLabelColor:Ma,toolTipLabelFont:Aa,toolTipBackground:r.toolTipBackground,toolTipShadowColor:jo,debugTipLabelFont:Aa,debugTipLabelColor:Ma,debugTipBackground:r.toolTipBackground,drawBreakableText:sr,setDevicePixelRatio:function(t){ma=G.devicePixelRatio="number"==typeof t?t:C.devicePixelRatio,Ls(d.body,function(t){t=t._ht;t&&t._canvas&&(rr(t._canvas,t.getWidth(),t.getHeight()),t.redraw?t.redraw():t.iv())})}},!0),Fs=1e-6,ks="undefined"!=typeof Uint16Array?Uint16Array:Array,js="undefined"!=typeof Float32Array?Float32Array:Array,Ns=function(t,e,i){e=[t[0]-e[0],t[1]-e[1],t[2]-e[2]];return!i||0<(i=ys(e))&&(e[0]/=i,e[1]/=i,e[2]/=i),e},Us=function(){var t,e="charCodeAt",i=2*(2*yt.length+1);for(t in C)if(t===bm+st[0]+(vt.length+2)){var n=C[t];if(!n)break;for(var r=n.length,o=0;oc)return i._70I?i._72I(t,e):i.moveTo(t,e),void(i.F-=c);if(i._70I?i._72I(n.x+s*i.F,n.y+h*i.F):i.moveTo(n.x+s*i.F,n.y+h*i.F),c-=i.F,i.F=0,i._70I=!i._70I,!c)return}var l=k(c/a);if(l){for(var u=s*r,d=h*r,f=s*o,g=h*o,p=0;pc)return o._70I?o._71I(t,e,i,n):o.moveTo(i,n),void(o.F-=c);if(l=o.F/c,r=o._20O(s,h,t,e,i,n,l),o._70I?o._71I(r[2],r[3],r[4],r[5]):o.moveTo(r[4],r[5]),o.F=0,o._70I=!o._70I,!c)return}var a=c-c*l,g=k(a/o._83O),p=f/c,_=d/c;if(g)for(var v=0;v2*P&&(r=2*P),h=-(r/(l=j(X(r)/(P/4)))),c=-n,0>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}function i(t){this.m=t}function n(t){this.m=t,this.mp=t._50O(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>2),e=3&i,1):1==r?(n+=c(e<<2|i>>4),e=15&i,2):2==r?(n+=c(e),n+=c(i>>2),e=3&i,3):(n+=c(e<<2|i>>4),n+=c(15&i),0));return 1==r&&(n+=c(e<<2)),n}function E(t){var e=t.substring(0,38);return e&&30==e.indexOf("05000420")?["ss",t.substring(38)]:[]}function o(t,e){var i=x(e=(e=e.replace(I,"")).replace(/[ \n]+/g,""),16);if(i._55O()>this.n._55O())return 0;var n=E(this._37O(i)[T](16).replace(/^1f+00/,""));if(0==n.length)return!1;for(var r,o,a=Bs,s=[0,.5,.75,.875,.9375],h=[],c=[],l=[],u=J/a,e=n[1],t=(i=t,n=e,t=C._4O.Util._56O(i,"ss"),(i={}).v=t==n,i.t=1,i.s=0,Ii=i.v,i.t=0,t),d=0,f=0;d>15;0<=--o;){var h=32767&this[t],c=this[t++]>>15,l=s*h+c*a;r=((h=a*h+((32767&l)<<15)+i[n]+(1073741823&r))>>>30)+(l>>>15)+s*c+(r>>>30),i[n++]=1073741823&h}return r},30):"Netscape"!=t?(a.am=function(t,e,i,n,r,o){for(;0<=--o;){var a=e*this[t++]+i[n]+r;r=k(a/67108864),i[n++]=67108863&a}return r},26):(a.am=function(t,e,i,n,r,o){for(var a=16383&e,s=e>>14;0<=--o;){var h=16383&this[t],c=this[t++]>>14,l=s*h+c*a;r=((h=a*h+((16383&l)<<14)+i[n]+r)>>28)+(l>>14)+s*c,i[n++]=268435455&h}return r},28);a.DB=t,a.DM=(1<>15)*e.mpl&e.um)<<15)&t.DM;for(t[n=i+e.m.t]+=e.m.am(0,r,t,i,0,e.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t._57O(),t._45O(e.m.t,t),0<=t._52O(e.m)&&t._78O(e.m,t)},t._75O=function(t,e,i){t._47O(e,i),this._74O(i)},t._76O=function(t,e){t._48O(e),this._74O(e)},a._77O=function(t){for(var e=this.t-1;0<=e;--e)t[e]=this[e];t.t=this.t,t.s=this.s},a._58O=function(t){this.t=1,this.s=t<0?-1:0,0n.DB?(n[n.t-1]|=(s&(1<>n.DB-a):n[n.t-1]|=s<=n.DB&&(a-=n.DB))}8==i&&0!=(128&t[0])&&(n.s=-1,0>r|s,s=(i[h]&o)<=i.t)e.t=0;else{var r=t%i.DB,o=i.DB-r,a=(1<>r;for(var s=n+1;s>r;0>=i.DB;if(t.t>=i.DB;r+=i.s}else{for(r+=i.s;n>=i.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=i.DV+r:0=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}0>r.F2:0),u=r.FV/o,d=(1<>h)&&(o=!0,a=c(n));0<=s;)h>(h+=i.DB-e)):(n=i[s]>>(h-=e)&r,h<=0&&(h+=i.DB,--s)),0f?g=oo[h]:o=!0)),t&&g&&g[0]&&g[j(.5)]&&a){var c,l=Ys(g[0]),u=Ys(g[1]);for(c in u)s.push(c);var d=0,i=l[s[0]],n=u[s[d++]],r=u[s[d++]],f=u[s[d++]],t=u[s[d++]],g=u[s[d++]],p=u[s[d++]],l=l[s[6]],d=u[s[d++]],a=O._27O(a);if(i===n&&a&&d){t=n+r+f+t+g+p;var _=!p||p===di;if(!_&&p)for(var v,y=0,m=p.length;y>>2]>>>24-o%4*8;e[n+o>>>2]|=a<<24-(n+o)%4*8}else if(65535>>2]=i[o>>>2];else e.push.apply(e,i);return this._65O+=r,this},_57O:function(){var t=this._84O,e=this._65O;t[e>>>2]&=4294967295<<32-e%4*8,t.length=j(e/4)},_88O:function(){var t=i._88O.call(this);return t._84O=this._84O.slice(0),t},_87O:function(t){for(var e=[],i=0;i>>2]>>>24-r%4*8;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},_68O:function(t){for(var e=t.length,i=[],n=0;n>>3]|=tt(t.substr(n,2),16)<<24-n%8*4;return new c._82O(i,e/2)}},o=n._8A={stringify:function(t){for(var e=t._84O,i=t._65O,n=[],r=0;r>>2]>>>24-r%4*8;n.push(u(o))}return n.join("")},_68O:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new c._82O(i,e)}},a=n._9A={stringify:function(t){try{return decodeURIComponent(escape(o.stringify(t)))}catch(t){throw new Error("")}},_68O:function(t){return o._68O(unescape(encodeURIComponent(t)))}},s=e._32O=i._80O({_1A:function(){this._83O=new c._82O,this._23O=0},_33O:function(t){typeof t==Ze&&(t=a._68O(t)),this._83O._89O(t),this._23O+=t._65O},_25O:function(t){var e=this._83O,i=e._84O,n=e._65O,r=this._79O,o=n/(4*r),a=(o=t?j(o):N((0|o)-this._22O,0))*r,n=q(4*a,n);if(a){for(var s=0;s>>7)^(g<<14|g>>>18)^g>>>3,g=((d=_[u-2])<<15|d>>>17)^(d<<13|d>>>19)^d>>>10,_[u]=f+_[u-7]+g+_[u-16]);var d=n&r^n&o^r&o,f=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),g=l+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&h^~s&c)+p[u]+_[u],l=c,c=h,h=s,s=0|a+g,a=o,o=r,r=n,n=0|g+(f+d)}i[0]=0|i[0]+n,i[1]=0|i[1]+r,i[2]=0|i[2]+o,i[3]=0|i[3]+a,i[4]=0|i[4]+s,i[5]=0|i[5]+h,i[6]=0|i[6]+c,i[7]=0|i[7]+l},_21O:function(){var t=this._83O,e=t._84O,i=8*this._23O,n=8*t._65O;return e[n>>>5]|=128<<24-n%32,e[14+(64+n>>>9<<4)]=k(i/4294967296),e[15+(64+n>>>9<<4)]=i,t._65O=4*e.length,this._25O(),this._64O},_88O:function(){var t=i._88O.call(this);return t._64O=this._64O._88O(),t}});t._41O=i._26O(n),t._42O=i._19O(n)}();var I=new RegExp("");I.compile("[^0-9a-f]","gi"),r._28O=-1,r._29O=-2,a._31O=o,a._63O=o,r._43O=-2;var C,p=new function(){var h=this;h._5O=function(t,e){if("8"!=t.substring(e+2,e+3))return 1;e=tt(t.substring(e+3,e+4));return 0==e?-1:0this.n._55O())return 0;e=E(this._37O(e)[T](K(2,4)).replace(D,""));if(0==e.length)return!1;var i=e[0];return e[1]==(n=t,C._4O.Util._56O(n,i))}var n}.bind(B(z))},function(){var t=be.length-me.length;if(0i._children.size())&&(e=i._children.size()),i._children.add(t,e),(i._childMap[t._id]=t).setParent(i),i.onChildAdded(t,e),i.fp(Ae,U,t)))},onChildAdded:function(){},removeChild:function(t){var e;this._childMap&&this._childMap[t._id]&&(e=this._children.remove(t),delete this._childMap[t._id],this.fp(Ae,t,U),t.setParent(U,e),this.onChildRemoved(t,e))},onChildRemoved:function(){},getChildAt:function(t){return this._children.get(t)},clearChildren:function(){if(!this._children.isEmpty())for(var t=0,e=this._children.toArray(),i=e.length;ti.interval&&(i.beforeAction&&i.beforeAction(),i.action&&n.each(function(t){i.action(t)}),i.afterAction&&i.afterAction(),i.lastTime=t)}r.length&&(n._30Q=C.requestAnimationFrame(o))}},Vs("DataModel",L,{ms_fire:1,ms_attr:1,ms_ac:["layers","name","autoAdjustIndex","hierarchicalRendering","background","envmap","postProcessingData","init"],_name:H,_autoAdjustIndex:!0,_hierarchicalRendering:!1,_background:H,_init:H,_envmap:H,_cubicEnvmap:!1,_postProcessingData:H,sm:function(){return this.getSelectionModel()},mm:function(t,e,i){this.addDataModelChangeListener(t,e,i)},umm:function(t,e){this.removeDataModelChangeListener(t,e)},md:function(t,e,i){this.addDataPropertyChangeListener(t,e,i)},umd:function(t,e){this.removeDataPropertyChangeListener(t,e)},mh:function(t,e,i){this.addHierarchyChangeListener(t,e,i)},umh:function(t,e){this.removeHierarchyChangeListener(t,e)},getAttrObject:function(){return this._attrObject},setAttrObject:function(t){return this._attrObject=t},getSelectionModel:function(){return this._selectionModel},size:function(){return this._datas.size()},isEmpty:function(){return this._datas.isEmpty()},getRoots:function(){return this._roots},getDatas:function(){return this._datas},getFullscreenDatas:function(){return this._fsDataMap},getReflectors:function(){return this._reflectorMap},getDataById:function(t){return this._dataMap[t]},removeDataById:function(t){this.remove(this.getDataById(t))},toDatas:function(t,e){return this._datas.toList(t,e)},each:function(t,e){this._datas.each(t,e)},getDataByTag:function(t){return this._78O[t]},getTagMap:function(){return this._78O},removeDataByTag:function(t){this.remove(this.getDataByTag(t))},add:function(t,e,i){var n=this,r=t._id,o=t._tag,a=n._roots;if(n._dataMap[r])throw"'"+r+"' already exists";o!=U&&(n._78O[o]=t),n._dataMap[r]=t,0<=i?n._datas.add(t,i):n._datas.add(t),t._parent||(n._rootMap[r]=t,0<=e?a.add(t,e):a.add(t)),t.s("fullscreen")!==H&&(n._fsDataMap[r]=t),t.s("shape3d.reflector")&&(n._reflectorMap[r]=t),t._21I(n),n.onAdded(t),n._36I.fire({kind:"add",data:t,rootsIndex:e,datasIndex:i})},onAdded:function(){},remove:function(t,e){var i,n,r,o,a,s;t&&(i=this,n=t._id,a=e&&e.keepStructure,r=e&&e.keepChildren,o=t.getTag(),t._dataModel===i&&(this.beginTransaction(),a?i._removingData||(i._removingData=t):i.prepareRemove(t),r||t.toChildren().each(function(t){i.remove(t,e)},i),a?i._removingData===t&&(t._parent&&t._parent.removeChild(t),delete i._removingData):t._parent&&t._parent.removeChild(t),a=i._datas.remove(t),delete i._dataMap[n],o!=U&&delete i._78O[o],i._rootMap[n]&&(delete i._rootMap[n],s=i._roots.remove(t)),i._fsDataMap[n]&&delete i._fsDataMap[n],i._reflectorMap[n]&&delete i._reflectorMap[n],t._21I(U),i.onRemoved(t),i._36I.fire({kind:Ct,data:t,rootsIndex:s,datasIndex:a}),this.endTransaction()))},onRemoved:function(){},prepareRemove:function(){},clear:function(){var t,e=this;e._datas.size()&&(t=e._historyManager?this.toJSON():H,e._datas.toArray().forEach(function(t){t._21I(U)}),e._datas.clear(),e._dataMap={},e._roots.clear(),e._rootMap={},e._fsDataMap={},e._reflectorMap={},e._78O={},e._36I.fire({kind:Mt,json:t}))},contains:function(t){return t&&t._dataModel===this},handleDataPropertyChange:function(t){var e,i,n,r,o=t.data,a=t.property;"parent"===a?(r=o._id,e=this._rootMap,i=this._roots,o._parent?e[r]&&(delete e[r],i.remove(o)):e[r]||(e[r]=o,i.add(o))):"tag"===a?(e=t.oldValue,n=t.newValue,i=this._78O,e!=U&&delete i[e],n!=U&&(i[n]=o)):"s:fullscreen"===a?(r=o._id,n=this._fsDataMap,t.oldValue!=U&&delete n[r],t.newValue!=U&&(n[r]=o)):"s:shape3d.reflector"===a&&(r=o._id,a=this._reflectorMap,t.oldValue&&delete a[r],t.newValue&&(a[r]=o)),this.onDataPropertyChanged(o,t),this._35I.fire(t)},onDataPropertyChanged:function(){},addDataModelChangeListener:function(t,e,i){this._36I.add(t,e,i)},removeDataModelChangeListener:function(t,e){this._36I.remove(t,e)},addSerializeListener:function(t,e,i){this._serializeNotifier.add(t,e,i)},removeSerializeListener:function(t,e){this._serializeNotifier.remove(t,e)},fireSerializeEvent:function(t){this._serializeNotifier.fire(t)},addDataPropertyChangeListener:function(t,e,i){this._35I.add(t,e,i)},removeDataPropertyChangeListener:function(t,e){this._35I.remove(t,e)},_38I:function(t,e,i){this._37I&&this._37I.fire({data:t,oldIndex:e,newIndex:i})},addHierarchyChangeListener:function(t,e,i){this._37I||(this._37I=new kh),this._37I.add(t,e,i)},removeHierarchyChangeListener:function(t,e){this._37I.remove(t,e)},getSiblings:function(t){t=t._parent;return t?t._children:this._roots},eachByHierarchical:function(t,e,i){if(e)return this._eachByHierarchical(t,e,i);for(var n=0,r=this._roots,o=r.size();ni.size()&&e--,i.add(t,e),this._38I(t,n,e))},moveUp:function(t){this.moveTo(t,this.getSiblings(t).indexOf(t)-1)},moveDown:function(t){this.moveTo(t,this.getSiblings(t).indexOf(t)+1)},moveToTop:function(t){this.moveTo(t,0)},moveToBottom:function(t){this.moveTo(t,this.getSiblings(t).size())},moveSelectionUp:function(t){this.beginTransaction(),t=t||this.sm();var e=new Lh;Do(t,e,this._roots),e.each(this.moveUp,this),this.endTransaction()},moveSelectionDown:function(t){this.beginTransaction(),t=t||this.sm();var e=new Lh;Oo(t,e,this._roots),e.each(this.moveDown,this),this.endTransaction()},moveSelectionToTop:function(t){this.beginTransaction(),t=t||this.sm();var e=new Lh;Po(t,e,this._roots),e.each(this.moveToTop,this),this.endTransaction()},moveSelectionToBottom:function(t){this.beginTransaction(),t=t||this.sm();var e=new Lh;Ao(t,e,this._roots),e.each(this.moveToBottom,this),this.endTransaction()},moveToIndex:function(t,e,i){var n=this.getDatas();null==i&&(i=n.indexOf(t)),i===e||i<0||0<=e&&e<=n.size()&&(n.remove(t),e>n.size()&&e--,n.add(t,e),this._76I(t,i,e))},bringForward:function(t){this.moveToIndex(t,this.getDatas().indexOf(t)+1)},bringToFront:function(t){this.moveToIndex(t,this.size())},sendBackward:function(t){this.moveToIndex(t,this.getDatas().indexOf(t)-1)},sendToBack:function(t){this.moveToIndex(t,0)},bringSelectionForward:function(t){this.beginTransaction(),t=t||this.sm();for(var e=new Lh,i=this.getDatas(),n=!1,r=0;rDatas: "+n.dm().getDatas().length+(t?"
Size: "+t.width+" * "+t.height:""),t=n.dm()._historyManager;t&&(e+="
Undoes: "+t.getHistories().length+" index: "+t.getHistoryIndex());t=n.getDebugTip();t&&(e+="
"+t),r.innerHTML=e,n._isDebugging&&requestAnimationFrame(i)},requestAnimationFrame(i),n._isDebugging=!0)},t.hideDebugTip=function(){var t=this._debugDiv;t&&(delete this._debugDiv,this.getView().removeChild(t),this._isDebugging=!1)},t.updateDOMAppendMatrix=function(){var t=this.getView();t&&(t.updateAppendMatrix=!0)},t.countFrame=function(){var t,e;this._isDebugging&&(1e3<(t=Date.now())-(e=this._fpsInfo).time?(e.fps=Math.round(1e5*(e.frames+1)/(t-e.time))/100,e.time=t,e.frames=0):e.frames++)}},ms_icons:function(t){t.getRotation=function(t){return t==U?0:t},t._15O=function(){var t=this,e=t.s(Ht);if(e){var i,n=t,r=t.data||t._data,o=t._38o={icons:e,rects:{}};for(i in e){var a=e[i],s=xh(a.shape3d,r,n);if(!(!1===xh(a.visible,r,n)||xh(a.for3d,r,n)&&!t.I3d||s&&!t.I3d)){var h=s?[s]:xh(a.names,r,n),c=h?h.length:0,l=xh(a.position,r,n)||3,u=xh(a.offsetX,r,n)||0,d=xh(a.offsetY,r,n)||0,f=xh(a.direction,r,n)||ft,g=xh(a.gap,r,n),p=g!=U?g:1,_=xh(a.rotation,r,n),g=xh(a.keepOrien,r,n),v=xh(a.rotationFixed,r,n)?_:t.getRotation(_,g,l),y=U,m=o.rects[i]=new Array(c);m.rotation=v;for(var b=0;be.x||t.x===e.x&&t.y>e.y)&&(i=Lo[i],r=-r);o=Fo(i,{x:0,y:0,width:ys(t,e),height:0},o);return o.x+=n,o.y+=r,(o=new oa(T(e.y-t.y,e.x-t.x)).tf(o)).x+=t.x,o.y+=t.y,o},pc=function(t,i,n,e,r){if(t._19Q=!0,!n.getEdgeGroup())return e?n.s("edge.gap"):0;if(En(n.getSourceAgent())||En(n.getTargetAgent()))return 0;var o,a=0,s=0,h=0;if(n.getEdgeGroup().getSiblings().each(function(t){t.each(function(t){var e;i.isVisible(t)&&t.s(Jt)==r&&(e=t.s("edge.gap"),h=(o?s+=h/2+e/2:o=t,e),t===n&&(a=s))})}),e)return s-a+h;e=a-s/2;return o&&n._40I!==o._40I&&(t._19Q=!1),e},_c=function(t,e,i){if("oval"===t){var n=0,r=i.height/i.width,o=r*r,a=i.x+i.width/2,s=i.y+i.height/2;Am(e).forEach(function(t){var e=t.x-a,t=t.y-s,t=e*e+t*t/o;n2*Math.PI&&(n=2*Math.PI),a=-(n/(h=Math.ceil(Math.abs(n)/(Math.PI/4)))),s=-i,0e._key&&i.reverse(),i._key=[i[0]._key,i[1]._key].join("|");e=this._lineMap[i._key];return e||((this._lineMap[i._key]=e=i)._triangles={},i._planes={},this._lineList.push(i)),e};var i=new ha(1,0,0),r=new ha(0,1,0),o=new ha(0,0,1),p=new ha,_=new ha;return x.prototype._addTriangle=function(t,e,i,n,r,o){var a,s=this._findVertex(t,i),h=this._findVertex(t,n),c=this._findVertex(t,r),l=this._findLine(s,h),u=this._findLine(h,c),t=this._findLine(c,s);e?((a=(new ha).fromArray(e,3*i))._key=g(a,o),(n=(new ha).fromArray(e,3*n))._key=g(n,o),(r=(new ha).fromArray(e,3*r))._key=g(r,o),d(l,0,a,h,n,c,r),d(u,0,n,c,r,s,a),d(t,0,r,s,a,h,n)):(_.subVectors(c,h),p.subVectors(h,s),(a=(new ha).crossVectors(p,_))._key=g(a,o),f(l,c,a),f(u,s,a),f(t,h,a))},x.prototype._toLineVS=function(t){for(var e=this._lineList,i=0,n=e.length;i=i){var o=1-(n[r]-i)/(e=this.curves[r]).getLength();return e.getPointAt(o)}r++}return null},Iv.getLength=function(){var t=this.getCurveLengths();return t[t.length-1]},Iv.getCurveLengths=function(){if(this.cacheLengths&&this.cacheLengths.length==this.curves.length)return this.cacheLengths;for(var t=[],e=0,i=this.curves.length,n=0;na&&(a=r.x),r.xt&&(t=r.y),r.ye&&(e=r.z),r.zs.y))if(t.y==a.y){if(t.x==a.x)return 1}else{h=c*(t.x-a.x)-h*(t.y-a.y);if(0==h)return 1;h<0||(n=!n)}}else if(t.y==a.y&&(s.x<=t.x&&t.x<=a.x||a.x<=t.x&&t.x<=s.x))return 1}return n}(S.p,_[C].p)||(x!=C&&b.push({froms:x,tos:C,hole:T}),I?(I=!1,p[C].push(S)):m=!0);I&&p[x].push(S)}}0e||t.y>i)},getRect:function(){var t=this.getWidth(),e=this.getHeight(),i=this.getAnchor(),t={x:-t*i.x,y:-e*i.y,width:t,height:e},e=this.getMatrix();return ms([e.tf(t.x,t.y),e.tf(t.x+t.width,t.y),e.tf(t.x+t.width,t.y+t.height),e.tf(t.x,t.y+t.height)])},getAnchorElevation:function(){return this._anchorElevation},getAnchor3d:function(){var t=this.getAnchor(),e=this._anchorElevation;return{x:t.x,y:e,z:t.y}},setAnchorElevation:function(t){var e=this._anchorElevation;return e!==t&&(this._anchorElevation=t,this.fp("anchorElevation",e,t),!0)},setAnchor3d:function(t,e,i,n){var r;"number"==typeof t?r={x:t,y:e,z:i}:(r=t.length?{x:t[0],y:t[1],z:t[2]}:t,n=e);i=this.getDataModel();i&&i.beginTransaction();t=this.getAnchor3d(),e=this.setAnchor(r.x,r.z);return this.setAnchorElevation(r.y)&&(e=!0),e&&n&&!Mi&&(this.getAnchor3d(),n=$s(this),n=Xs([r.x-t.x,r.y-t.y,r.z-t.z],n),this.p3(n)),i&&i.endTransaction(),e},getAnchor:function(){if(this.hasOwnProperty("_anchor"))return this._anchor;var t=Qa(this._image);return t&&t.anchorX!==H?{x:t.anchorX,y:t.anchorY}:this._anchor},setAnchor:function(t,e,i){"number"==typeof t?a={x:t,y:e}:(a=t.length?{x:t[0],y:t[1]}:t,i=e);var n=this.getAnchor();if(n.x===a.x&&n.y===a.y)return!1;var r,o,a,s=this.getDataModel();return s&&s.beginTransaction(),this._anchor=a,this.fp("anchor",n,a),i&&!Mi&&(r=this.getPosition(),o=this.getSize(),t=this.getRotation(),e=this.getScale(),i=-o.width*(n.x-a.x)*e.x,a=-o.height*(n.y-a.y)*e.y,e=Z(t),t=Q(t),this.setPosition(r.x+t*i-e*a,r.y+e*i+t*a)),s&&s.endTransaction(),!0},getScale:function(){return this._scale},setScale:function(t,e){e=2===arguments.length?{x:t,y:e}:t,t=this.getScale();t.x===e.x&&t.y===e.y||(this._scale=e,this.fp("scale",t,e))},getScaleTall:function(){return this._scaleTall},getScale3d:function(){var t=this._scaleTall,e=this.getScale();return[e.x,t,e.y]},getFinalScale3d:function(){var t=this.s3(),e=this._dynamicScale3d,i=this.getScale3d();return t&&(i[0]*=t[0],i[1]*=t[1],i[2]*=t[2]),e&&(i[0]*=e[0],i[1]*=e[1],i[2]*=e[2]),i},getFinalRotation3d:function(){return this._dynamicRotation||this.r3()},setScaleTall:function(t){var e=this._scaleTall;e!==t&&(this._scaleTall=t,this.fp("scaleTall",e,t))},setScale3d:function(t,e,i){t="number"==typeof t?{x:t,y:e,z:i}:t.length?{x:t[0],y:t[1],z:t[2]}:t;this.setScaleTall(t.y),this.setScale(t.x,t.z)},getCorners:function(t,e){t==U&&(t=0),e==U&&(e=t);var i=this.getAnchor(),n=this.getWidth(),r=this.getHeight(),o=-n*i.x-t,i=-r*i.y-e,t=n+2*t,r=r+2*e,e=this.getMatrix();return[e.tf(o,i),e.tf(o,i+r),e.tf(o+t,i+r),e.tf(o+t,i)]},getEditControlPoints:function(t,e,i){e==U&&(e=0),i==U&&(i=e);var n=this.getAnchor(),r=this.getWidth(),o=this.getHeight(),a=-r*n.x-e,n=-o*n.y-i,e=r+2*e,i=o+2*i;if(t)return[{x:a,y:n},{x:a,y:0},{x:a,y:n+i},{x:0,y:n+i},{x:a+e,y:n+i},{x:a+e,y:0},{x:a+e,y:n},{x:0,y:n}];t=this.getMatrix();return[t.tf(a,n),t.tf(a,0),t.tf(a,n+i),t.tf(0,n+i),t.tf(a+e,n+i),t.tf(a+e,0),t.tf(a+e,n),t.tf(0,n)]},rotateAt:function(t,e,i){var n=this._position,r=this._64O,o=new oa(r,n.x,n.y).tf(t,e),e=W(t*t+e*e),n=T(n.y-o.y,n.x-o.x)+i;this.setRotation(r+i),this.p(o.x+e*Q(n),o.y+e*Z(n))},onParentChanged:function(){cl.superClass.onParentChanged.apply(this,arguments),this._8I()},onPropertyChanged:(zv={},"width|height|position|anchor|rotation|scale|s:layout.h|s:layout.v".split("|").forEach(function(t){zv[t]=!0}),function(e){cl.superClass.onPropertyChanged.call(this,e),zv[e.property]&&!this._layoutUpdating&&this.updateLayoutParameters(null,e.property),this._69O&&this._69O.each(function(t){t.handleHostPropertyChange(e)}),this._49I&&this._49I.each(function(t){t.fp("agentChange",!0,!1)}),"a:layout"===e.property.substring(0,8)&&this.updateAttach()}),onHostChanged:function(){this.updateAttach(),this.updateLayoutParameters()},handleHostPropertyChange:function(t){this.updateAttach(t)},onStyleChanged:function(t){cl.superClass.onStyleChanged.apply(this,arguments),$h[t]&&this.updateAttach()},updateAttach:function(t){return Mi?void this.updateLayoutParameters():void(this._51I||(this._51I=1,this._71O(t),delete this._51I))},_71O:function(t){var e,i,n,r,o,a,s,h,c=this,l=c._host,u=t?t.property:U,d=t?t.oldValue:U,f=t?t.newValue:U;l instanceof cl&&((e=Qa(l.getImage()))&&e.layoutAttach&&(r=e.layoutAttach)),(t&&!Kh[u]&&"a:layout"!==u.substring(0,8)||!r||r(l,this))&&(l instanceof Gl.Grid?u===Re?c.setElevation(c._54O+f-d):t&&!Jh[u]||(s=c.s("attach.row.index"),h=c.s("attach.column.index"),(n=l.getCellRect(s,h))&&(i=c.s("attach.row.span"),o=c.s("attach.column.span"),1===i&&1===o||(n=bs(n,l.getCellRect(s+i-1,h+o-1))),ic(n,c,"attach.padding",1),c.setRect(n))):l instanceof yl&&0<=(a=c.s("attach.index"))&&(!t||tc[u])?(r=c.s("attach.thickness"),s=l.getScale(),i=Math.max(s.x,s.y),0e.x&&o.ye.y)return!0;return i.length<=n?(i.push(e),s.length++):i[s.length++]=e,!1}}),An(G,{fetch:function(t,e){var i="GET",n=!1,r=null,o="";e&&(i=e.method||"GET",n=e.sync,o=e.url,r=e.data||null),t.open(i,o,!n),e.responseType?t.responseType=e.responseType:e.overrideMimeType&&t.overrideMimeType&&t.overrideMimeType(e.overrideMimeType),t.send(r)},convertImageSrc:function(t,e){e&&"function"==typeof e||(e=function(){}),e(t)}}),Sl=Gl.Request=function(){this._xhr=new XMLHttpRequest,this._onloadFunc=function(){},this._errorFunc=function(){}},Vs("Request",L,{_responseType:null,_overrideMimeType:"text/plain",send:function(t){var e=this._xhr,i=this.onload,n=this.onerror;this.getResponseType()?t.responseType=this.getResponseType():this.getOverrideMimeType()&&(t.overrideMimeType=this.getOverrideMimeType()),e.onload=i,e.onerror=n,G.fetch(e,t)},onload:function(){},onerror:function(){},getResponseType:function(){return this._responseType},setResponseType:function(t){this._responseType=t},getOverrideMimeType:function(){return this._overrideMimeType},setOverrideMimeType:function(t){this._overrideMimeType=t},getResponseText:function(){var t=this._xhr;return t.response||t.responseText}}),vc.GraphView=function(t){var e=this;e._24I={},e._34I=new Lh,e._25I={},e._56I={},e._view=$n(1,e),e._canvas=er(e._view),e.dm(t||new Nh),this._coreInteractor=new Fl(this),e.setEditable(!1),e.setScrollBarVisible(G.graphViewScrollBarVisible),e._initView()},du("GraphView",L,{ms_v:1,ms_gv:1,ms_bnb:1,ms_tip:1,ms_dm:1,ms_lp:1,ms_fire:1,ms_sm:1,_49o:1,ms_txy:1,_52o:1,_51o:1,ms_ac:[le,ue,he,ce,"resettable","editInteractor",ae,"zoomable","pannable","rectSelectable","autoScrollZone",ye,"movableFunc","editableFunc","pointEditableFunc","rectEditableFunc","rotationEditableFunc","anchorEditableFunc","rectSelectBackground","rectSelectBorderColor","editPointSize","editPointBorderColor","editPointBackground","hoverDelay"],_zoomable:G.graphViewZoomable,_resettable:G.graphViewResettable,_pannable:G.graphViewPannable,_rectSelectable:G.graphViewRectSelectable,_autoScrollZone:G.graphViewAutoScrollZone,_rectSelectBackground:G.graphViewRectSelectBackground,_rectSelectBorderColor:G.graphViewRectSelectBorderColor,_editPointSize:G.graphViewEditPointSize,_editPointBorderColor:G.graphViewEditPointBorderColor,_editPointBackground:G.graphViewEditPointBackground,_scrollBarColor:za,_scrollBarSize:Va,_autoHideScrollBar:xa,_autoMakeVisible:ba,_currentActionType:null,getCoreInteractor:function(){return this._coreInteractor},getLayers:function(){return this._dataModel.getLayers()},setLayers:function(t){this._dataModel.setLayers(t)},setEditable:function(t){var e,i=this,n=i.__interactorMap__;n||(e=vc.XEditInteractor,n=i.__interactorMap__={scrollBar:new Nl(i),select:new kl(i),edit:new(e||Xl)(i),text:new jl(i),move:new lu(i),default:new hu(i),touch:new Ul(i,{editable:!1})}),t?(i._uieditable=!0,i.setInteractors([n.scrollBar,n.select,n.edit,n.text,n.move,n.default,n.touch])):(i._uieditable=!1,i.setInteractors([n.scrollBar,n.select,n.move,n.default,n.touch]))},getCanvas:function(){return this._canvas},_33I:function(t){var e=t.getUIClass();return e?new e(this,t):U},getDataUI:function(t){var e=this._25I[t._id];return e===H&&(e=this._33I(t),this._25I[t._id]=e),e},getNodeRect:function(t){return G.getNodeRect(this,t)},getFullscreenDatas:function(){return this._dataModel.getFullscreenDatas()},getEdgeInfo:function(t){t=this.getDataUI(t);return t?(t._79o(),t._78o):null},getEdgeSourcePosition:function(t){var e=this.getDataUI(t),t=e.s,e=e._data._40I;return sc(this,e,t("edge.source.position"),t("edge.source.offset.x"),t("edge.source.offset.y"),t("edge.source.anchor.x"),t("edge.source.anchor.y"))},getEdgeTargetPosition:function(t){var e=this.getDataUI(t),t=e.s,e=e._data._41I;return sc(this,e,t("edge.target.position"),t("edge.target.offset.x"),t("edge.target.offset.y"),t("edge.target.anchor.x"),t("edge.target.anchor.y"))},invalidateAll:function(t){var e=this;if(t){for(var i in e._25I){var n=e._25I[i];n&&n.dispose()}e._25I={},e._56I={},e._24I={},e._34I.clear(),e.redraw()}else e.dm().each(function(t){e.invalidateData(t)})},invalidateSelection:function(){var e=this;e.sm().each(function(t){e.invalidateData(t)})},invalidateData:function(t){this._24I[t._id]=t,this._21Q(t),this.iv()},_21Q:function(t){var e,i=this._24I;En(t)&&Ni[t.s(Jt)]&&((e=t.getSourceAgent())&&e.getAgentEdges().each(function(t){i[t._id]=t}),(e=t.getTargetAgent())&&e.getAgentEdges().each(function(t){i[t._id]=t}),this.iv())},redraw:function(t){this._32I||(t?this._34I.add(t):(this._32I=1,this._34I.clear()),this.iv())},each:function(e,i){var t,n,r=0,o=this.getLayers(),a=this._dataModel,s=a._datas._as,h=s.length;if(o){for(var c=o.length;ra+f&&s.tx(-(o.x+o.width-f)*l),o.y+o.heightd+b&&s.ty(-(o.y+o.height-b)*l))),delete s._23I),s._83I&&(delete s._83I,delete s._84I),s._98O(),s.countFrame(),zn(s._24I)||$a(s.iv,s)},isValidGuideLineSource:function(){return!0},tryUpdateRootData:function(){if(!this._rootDataUpdating){this._rootDataUpdating=!0;var t,e,i=this.getFullscreenDatas();for(e in i)t=i[e],this.scaleRootData(t);this._rootDataUpdating=!1}},scaleRootData:function(t){var e=t.s("fullscreen");if("uniform"===e||"fill"===e){t.getRotation()&&t.setRotation(0);var i=t.s("fullscreen.gap")||0,n=this.getWidth(),r=this.getHeight();if(n&&r){var o,a,s=n-2*i,h=r-2*i,c=t.getAnchor(),l=t.getScaledSize(),n=l.width,r=l.height,l=t.s("fullscreen.lock");if(l)return"uniform"===e?n/r=La?(delete t._85I,t.iv()):w(function(){t._86I()},La))},getVScrollBar:function(){return this._27I},getHScrollBar:function(){return this._28I},_98O:function(){var t=this._27I,e=this._28I;if(this._79O){if(this._autoHideScrollBar&&!this._85I)return t.style.visibility=te,void(e.style.visibility=te);var i=this.getScrollBarColor(),n=this._zoom,r=this.getScrollBarSize(),o=this.getViewRect(),a=this.getScrollRect(),s=o.height*n,h=a.height*n,c=o.width*n-r-2,l=s*((o.y-a.y)*n/h),u=s/h*s,d=t.style;sl.x||c.x===l.x&&c.y>l.y)&&(t=Lo[t],i=-i),(u=Fo(t,o.rect,n)).x+=e,u.y+=i,(u=o.mat.tf(u)).x+=o.origin.x,u.y+=o.origin.y,u);if(h&&h[re])return h.getPosition?h.getPosition(this,t,e,i,n,r):{x:(c.x+l.x)/2,y:(c.y+l.y)/2};if(s){var u,d=s.size();if(Wh[t]){if(d){if(0===(f=d%2))return gc(s.get(d/2-1),s.get(d/2),t,e,i,n,r);u=s.get((d-f)/2)}else u={x:(c.x+l.x)/2,y:(c.y+l.y)/2};return(u=Fo(t,{x:u.x,y:u.y,width:0,height:0},n)).x+=e,u.y+=i,u}return Hh[t]?gc(c,d?s.get(0):l,t,e,i,n,r):gc(d?s.get(d-1):c,l,t,e,i,n,r)}if(h){var f,h=h.points,d=h.size();return Wh[t]?0===(f=d%2)?gc(h.get(d/2-1),h.get(d/2),t,e,i,n,r):(u=h.get((d-f)/2),(u=Fo(t,{x:u.x,y:u.y,width:0,height:0},n)).x+=e,u.y+=i,u):Hh[t]?gc(h.get(0),h.get(1),t,e,i,n,r):gc(h.get(d-2),h.get(d-1),t,e,i,n,r)}}return Ji},_42:function(t){this._78o&&tu.superClass._42.call(this,t)},drawPath:function(e,t){e.beginPath();var i,n,r,o,a=t.type,s=t.points,h=t.segments,c=t.edgeTypeInfo;!a||s?(i=(r=t.sourcePoint).x,n=r.y,r=(o=t.targetPoint).x,o=o.y,a?h?((a=new Lh({x:i,y:n})).addAll(s),a.add({x:r,y:o}),ao(e,a,h)):(e.moveTo(i,n),s.each(function(t){e.lineTo(t.x,t.y)}),e.lineTo(r,o)):t.looped?e.arc(i,n,t.radius,0,J,!0):t.center?(e.moveTo(t.c1.x,t.c1.y),e.lineTo(i,n),e.lineTo(r,o),e.lineTo(t.c2.x,t.c2.y)):(e.moveTo(i,n),e.lineTo(r,o))):c&&(c.points?ao(e,c.points,c.segments):c[re]&&c[re](e,c))},_80o:function(t){var e=this.s,i=this._78o,n=i.width,r=i.selectWidth,o=i.borderWidth,a=i.repeatImage,s=t.lineJoin,h=t.lineCap,c=i.gray,l=i.pattern;t.lineJoin=i.join,t.lineCap=i.cap,this.drawPath(rh(t,l),i);var u=e("edge.width.absolute");u&&(t.save(),t.setTransform(1,0,0,1,0,0)),r&&(t.strokeStyle=i._97o,t.lineWidth=n+2*(o+r),t.stroke()),o&&(t.strokeStyle=c?G.toGrayColor(i.borderColor):i.borderColor,t.lineWidth=n+2*o,t.stroke());var d,o=c?G.toGrayColor(i.color):i.color;a?po(t,a,o,null,this._data,this.gv):t.strokeStyle=o,t.lineWidth=n,t.stroke(),i.is3d&&(d=c?G.toGrayColor(i._67o):i._67o,ho(t,o,d,n,this.gv._zoom,i._66o)),oh(t,l),e("edge.dash")&&(l=e("edge.dash.pattern"),(d=rh(t,l,this._2Q("edge.dash.offset")))!==t&&this.drawPath(d,i),this._1Q(t,"edge",e("edge.dash.width")||n,l)),u&&t.restore(),t.lineJoin=s,t.lineCap=h},_48O:function(){},_47O:function(){}}),zs(Ml=function(t,e){Bn(Ml,this,[t,e])},iu,{_3O:function(){var e,i,t,n,r,o,a,s,h,c,l=this.s,u=this._data,d=this.gv;this._88I=U,u.isExpanded()&&u.eachChild(function(t){!wn(t)||(t=d.getBoundsForGroup(t))&&((i=i||[]).push(t),e=bs(e,t))}),e?(s=d.getLabel(u),a=l("group.type"),n=(t=l("group.border.width")||0)/2,l("group.border.width.absolute")&&(t/=d._zoom),e=_c(a,i,e),ic(e,u,"group.padding",1),Is(e,t),r=this._88I={type:a,rect:e,_64o:e},a||s==U||(o=this.labelInfo={label:s,color:l("group.title.color"),font:l("group.title.font"),align:l("group.title.align")},u=(h=ar(o,s)).width+t,a=h.height+t,s=l("group.title.align"),(h=l("group.title.orientation"))===ct||h===lt?(e.height+=t,u>e.width&&(e.width=u)):h!==st&&h!==ht||(e.width+=t,u>e.height&&(e.height=u)),s=s===st?e.x:s===ht?e.x+e.width-u:e.x+e.width/2-u/2,h===lt?(r.titleRect={x:e.x,y:e.y+e.height,width:e.width,height:a},r.rect={x:e.x,y:e.y,width:e.width,height:e.height+a},o.rect={x:s,y:e.y+e.height,width:u,height:a}):h===st?(c=r.titleRect={x:e.x-a,y:e.y,width:a,height:e.height},r.rect={x:e.x-a,y:e.y,width:e.width+a,height:e.height},o.rect={x:c.x+a/2-e.height/2,y:c.y+e.height/2-a/2,width:e.height,height:a},o.rotation=-Math.PI/2):h===ht?(c=r.titleRect={x:e.x+e.width,y:e.y,width:a,height:e.height},r.rect={x:e.x,y:e.y,width:e.width+a,height:e.height},o.rect={x:c.x+a/2-e.height/2,y:c.y+e.height/2-a/2,width:e.height,height:a},o.rotation=Math.PI/2):(r.titleRect={x:e.x,y:e.y-a,width:e.width,height:a},r.rect={x:e.x,y:e.y-a,width:e.width,height:e.height+a},o.rect={x:s,y:e.y-a-n,width:u,height:a+t})),this._40O(r,l("group.border.width")/2)):Ml.superClass._3O.call(this)},getPosition:function(t,e,i,n){var r=this._88I;if(r){n=Fo(t,r.rect,n);return n.x+=e,n.y+=i,n}return Ml.superClass.getPosition.apply(this,arguments)},_24O:function(t,e){var i=this._88I;i&&!i.type&&"label2"!==t||Ml.superClass._24O.call(this,t,e)},_80o:function(t){var e=this._88I;if(e){var i=this._data,n=this.s,r=this.gv,o=e.type,a=e.rect,s=e._64o,h=e.titleRect,c=this.getBodyColor(),l=Qa(n("group.image"),c),u=n("group.image.stretch"),d=this.getBodyColor("group.background"),f=Qa(n("group.repeat.image"),c),g=n("group.gradient.pack"),p=n("group.gradient"),_=n("group.gradient.color"),v=n("group.border.width"),y=n("group.border.color"),m=n("group.border.pattern"),b=n("group.title.orientation"),x=n("group.depth"),w=n("group.border.radius"),E=n("group.border.join"),T=n("group.border.cap");n("group.border.width.absolute")&&(v/=r._zoom);var S=y,I=n("group.border.repeat.image");if((I=I&&Qa(I,y))&&(S=_o(t,I,y,null,i,r)),o){var y=t.lineJoin,C=t.lineCap;t.lineJoin=E,t.lineCap=T,l?(t.save(),uo(t,o,a,w),t.clip(),Ka(t,l,u,a.x,a.y,a.width,a.height,i,r,c),t.restore(),0s&&(s=e("shape.dash.width")),(a=e("shape.border.width.absolute")?(s+o+a)/this.gv._zoom/c:s*("square"===i._61o?.71:.5)+o+a/this.gv._zoom/c)&&(a*=c,h=is(h),eo(h,a,i._62o)),this._68o(h),(h=e("clip.percentage"))<1&&(h<0&&(h=0),i.clipRect=Wn(t.getAnchorRect(),e("clip.direction"),h)),(h=e("shape.fill.clip.percentage"))<1&&(h<0&&(h=0),i.shapeClipRect=Wn(t.getAnchorRect(),e("shape.fill.clip.direction"),h)),(h=e("shape.foreground.clip.percentage"))<1&&(h<0&&(h=0),i.shapeForegroundClipRect=Wn(t.getAnchorRect(),e("shape.foreground.clip.direction"),h)))},getPosition:function(t,e,i,n){var r=this._99o;if(r){n=Fo(t,r.rect,n);return n.x+=e,n.y+=i,n}return Ji},_42:function(t){this._99o&&au.superClass._42.call(this,t)},_80o:function(t){function e(t){return b?G.toGrayColor(t):t}var i,n=this,r=n.s,o=n._99o,a=o.position,s=o.scale,h=o.rotation,c=o.borderWidth,l=o.selectWidth/n.gv._zoom,u=o._27Q,d=o.shapeGradientPack,f=o._54o,g=o.clipRect,p=o.shapeClipRect,_=o.points,v=o.segments,y=n._data.isClosePath(),m=o.fillRule,b=o.gray,x=e(o._53o),w=x||u||d;t.save(),pr(t,a.x,a.y),_r(t,h),vr(t,s.x,s.y),g&&(t.beginPath(),t.rect(g.x,g.y,g.width,g.height),t.clip()),w&&p&&(t.save(),t.beginPath(),t.rect(p.x,p.y,p.width,p.height),t.clip()),pr(t,-a.x,-a.y);var E=o._60o,T=rh(t,E),h=t.lineJoin,s=t.lineCap;t.lineJoin=o._62o,t.lineCap=o._61o;g=e(o.bodyColor);w?(ao(t,_,v,y),d?ro(t,d,function(t){return Jr(t,o.bodyColor)}):u?go(t,u,g,null,n._data,n.gv):fo(t,i=g||x,o.shapeGradient,e(o._59o),o.gradientRect),t.fill(m),d&&t.restore(),p&&(t.restore(),pr(t,-a.x,-a.y)),T!==t&&ao(T,_,v,y)):ao(T,_,v,y);d=o.shapeForeground;d&&(t.save(),(p=o.shapeForegroundClipRect)&&(pr(t,a.x,a.y),t.beginPath(),t.rect(p.x,p.y,p.width,p.height),t.clip(),pr(t,-a.x,-a.y)),ao(t,_,v,y),fo(t,d,r("shape.foreground.gradient"),e(r("shape.foreground.gradient.color")),o.gradientRect),t.fill(m),t.restore());var S,m=r("shape.border.width.absolute");m&&(t.save(),t.setTransform(1,0,0,1,0,0)),l&&(t.strokeStyle=o._97o,t.lineWidth=f+2*(c+l),t.stroke()),c&&(t.strokeStyle=e(o.borderColor),t.lineWidth=f+2*c,t.stroke()),f&&(i=e(o._55o),o.shapeBorderRepeatImage?po(t,o.shapeBorderRepeatImage,i,null,n._data,n.gv):(!x&&g&&(i=g),t.strokeStyle=i),t.lineWidth=f,t.stroke(),o._94o&&ho(t,i,e(o._95o),f,n.gv._zoom,o._96o)),oh(t,E),r("shape.dash")&&0<(S=r("shape.dash.width")||f)&&(E=r("shape.dash.pattern"),(T=rh(t,E,n._2Q("shape.dash.offset")))!==t&&ao(T,_,v,y),n._1Q(t,"shape",S,E)),m&&t.restore(),t.lineJoin=h,t.lineCap=s,t.restore()},_48O:function(){},_47O:function(){}}),zs(Al=function(t,e){Bn(Al,this,[t,e])},au,{getRotation:function(t,e,i){t=t||0;var n=this._data.getPoints(),r=n.size();return 1e.x||t.y>e.y},clear:function(t){var e,i,n=this,r=n.gv,o=n.mark;n._57I=U,n.pendingClickThrough=U,n._lastLogicalPoint&&(o&&(0!==o.width&&0!==o.height&&((o=r.getDatasInRect(o,n.intersects())).isEmpty()||(e=r.sm(),i=e.toSelection(),o.each(function(t){e.co(t)?i.remove(t):i.add(t)}),e.ss(i))),As(n.div),delete n.div,delete n.mark,n.redraw(),n.fi({kind:"endRectSelect",event:t}),r.onRectSelectEnded()),n.clearDragging(),delete r._77O)},redraw:function(){var t=this;t._draw||(t._draw=1,w(function(){t.mark&&t._42(),delete t._draw},16))}}),lu=vc.MoveInteractor=function(t){Bn(lu,this,[t])},du("MoveInteractor",ql,{handle_mousedown:function(t){var e,i=this.gv;!cs(t)||i._editing||i._scrolling||Hr()||(!(e=i.getSelectedDataAt(t))||i._39Q(e)&&!i.isMovable(e)?i._focusData=U:(this._data=e,i.handleMouseDown&&i.handleMouseDown(t,e),this.startDragging(t),i.isMovable(e)&&(i._moving=1)))},handleWindowMouseUp:function(t){var e=this.gv;e.handleMouseUp&&e.handleMouseUp(t,this._data),this.clear(t)},handleWindowMouseMove:function(t){var e,i,n,r,o=this,a=o._data,s=o.gv;s._93O&&s._93O(t,a)||!s._moving||(o._logicalPoint||o.fi({kind:"prepareMove",event:t}),e={kind:n=o._logicalPoint?"betweenMove":"beginMove",event:t},i=o._logicalPoint=s.lp(t),"beginMove"!=n||o._alreadyBeginTransaction||(o._alreadyBeginTransaction=!0,s.getDataModel().beginTransaction()),n=(r=o._calcShift(n,t)).x,r=r.y,(a=o.gv.getMoveMode(t,a))&&("x"===a?r=0:"y"===a?n=0:"xy"!==a&&(n=r=0)),s.moveSelection(n,r),o._lastLogicalPoint=i,o.autoScroll(t),o.fi(e))},_calcShift:function(){var t=this._logicalPoint,e=this._lastLogicalPoint;return{x:t.x-e.x,y:t.y-e.y}},clear:function(t){var e=this.gv;this._lastLogicalPoint&&(this._lastLogicalPoint=this._data=e._moving=U,this._logicalPoint&&(this.fi({kind:"endMove",event:t}),e.onMoveEnded()),this.clearDragging()),this._alreadyBeginTransaction&&(this._alreadyBeginTransaction=!1,e.getDataModel().endTransaction())}}),jl=vc.TextEditInteractor=function(t){Bn(jl,this,[t]),this.init()},du("TextEditInteractor",ql,{init:function(){var i=this,t=this.input=d.createElement("input"),e=t.style;t.text="text",e.border="1px solid #d8d8d8",e.position="absolute",e.padding="2px 3px",e.outline="none",e.marginLeft="-90px",e.marginTop="-16px",e.backgroundColor="rgba(255,255,255, 0.9)",e.fontSize="14px",e.width="180px",e.height="32px",e.boxShadow="0 0 13px rgba(16,142,233, 0.5)",e.textAlign="center",e.boxSizing="border-box",g(t,"keyup",function(t){Wr(t)&&i.endTextEdit()}),g(t,"focus",function(){t.select()});var n=this.textarea=d.createElement("textarea"),r=this.wrap=d.createElement("div");r.appendChild(n),(e=n.style).margin=0,e.padding="4px",e.overflow="hidden",e.boxSizing="border-box",e.position="absolute",e.outline="none",e.backgroundColor="transparent",e.resize="none",e.textAlign="center",e.fontSize="14px",e.border="none",e.borderWidth=0,e.width="100%",e.top="50%",(e=r.style).boxSizing="border-box",e.margin=0,e.padding=0,e.position="absolute",e.boxShadow="0 0 13px rgba(16,142,233, 0.5)",e.border="1px solid #d8d8d8",e.backgroundColor="rgba(255,255,255, 0.9)",e.width="180px",e.marginLeft="-90px",g(n,"keydown",function(t){return(gs()||ps())&&Wr(t)?void i.endTextEdit():void i.calculateTextareaHeight(String.fromCharCode(t.keyCode))}),g(n,"focus",function(){n.select()});e=function(t){t.stopPropagation()};g(t,"mousedown",e),g(t,"touchstart",e),g(n,"mousedown",e),g(n,"touchstart",e),i.SIZING_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],i.HIDDEN_TEXTAREA_STYLE="visibility:hidden; min-height:0 !important;max-height:none !important;height:0 !important;visibility:hidden !important;overflow:hidden !important;position:absolute !important;z-index:-1000 !important;top:0 !important;right:0 !important",i.handleWindowClick=function(t){var e=i._editingDOM;e&&(e=e.getBoundingClientRect(),t=_s(t),xs(e,t)||i.endTextEdit())}},handle_mousedown:function(t){var e,i=this.gv;fs(t)&&!i._editing&&(!(e=i.getDataAt(t))||(t=i.getTextEditInfo(e))&&(this._editInfo=t,this._editTarget=e,i._editing=!0,t.isMultiline?this.handleMultilineEdit():this.handleTextEdit()))},handleMultilineEdit:function(){var t=this,e=t.gv,i=t._editTarget,n=t.getTargetValue(),r=t.textarea,o=t.wrap;this.hiddenTextarea||this.createHiddenTextarea(),null!==n&&n!==H||(n=""),r.value=n,t._editingDOM=r,e.getView().appendChild(o),this.layoutHTML(o,i),this.calculateTextareaHeight(),w(function(){r.focus(),g(C,"mousedown",t.handleWindowClick),g(C,"touchstart",t.handleWindowClick)},10)},handleTextEdit:function(){var t=this,e=t.gv,i=t._editTarget,n=t.getTargetValue(),r=t.input;null!==n&&n!==H||(n=""),r.value=n,t._editingDOM=r,e.getView().appendChild(r),this.layoutHTML(r,i),w(function(){r.focus(),g(C,"mousedown",t.handleWindowClick),g(C,"touchstart",t.handleWindowClick)},10)},layoutHTML:function(t,e){var i,n=this.gv,r=n.getZoom();e instanceof Gl.Node?(i=e.getRect(),t.style.left=(i.x+i.width/2)*r+n.tx()+"px",t.style.top=(i.y+i.height/2)*r+n.ty()+"px"):e instanceof Gl.Edge&&(i=n.getDataUI(e)._6I,t.style.left=(i.x+i.width/2)*r+n.tx()+"px",t.style.top=(i.y+i.height/2)*r+n.ty()+"px")},endTextEdit:function(){var t=this,e=t._editInfo.isMultiline?t.wrap:t.input,i=t._editInfo.isMultiline?t.textarea:t.input;t.setTargetValue(i.value),t.gv.getView().removeChild(e),t.gv._editing=!1,delete t._editingDOM,p(C,"mousedown",t.handlelick),p(C,"touchstart",t.handleWindowClick)},setTargetValue:function(t){var e=this._editTarget,i=this._editInfo,n=i.accessType,i=i.name;i&&n||(n="p",i="name"),"p"===n?e[Gl.Default.setter(i)](t):"a"===n?e.a(i,t):e.s(i,t)},getTargetValue:function(){var t=this._editTarget,e=this._editInfo,i=e.accessType,e=e.name;return e&&i||(i="p",e="name"),"p"!==i?"a"===i?t.a(e):t.s(e):t[Gl.Default.getter(e)]()},createHiddenTextarea:function(){this.hiddenTextarea=d.createElement("textarea"),this.hiddenTextarea.setAttribute("style","margin:0; padding:0; position:absolute; overflowY:scroll; resize:none; box-sizing:border-box;"),this.hiddenTextarea.setAttribute("rows","1"),this.gv.getView().appendChild(this.hiddenTextarea)},calculateHTMLStyle:function(t,e){if(e&&this.computedStyleCache)return this.computedStyleCache;var i=C.getComputedStyle(t),n=i.getPropertyValue("box-sizing")||i.getPropertyValue("-moz-box-sizing")||i.getPropertyValue("-webkit-box-sizing"),r=parseFloat(i.getPropertyValue("padding-bottom"))+parseFloat(i.getPropertyValue("padding-top")),t=parseFloat(i.getPropertyValue("border-bottom-width"))+parseFloat(i.getPropertyValue("border-top-width")),n={sizingStyle:this.SIZING_STYLE.map(function(t){return t+":"+i.getPropertyValue(t)}).join(";"),paddingSize:r,borderSize:t,boxSizing:n};return e&&(this.computedStyleCache=n),n},calculateTextareaHeight:function(t){t=t||"";var e=this.textarea,i=this.hiddenTextarea,n=this.wrap,r=this.calculateHTMLStyle(e,!1),o=r.paddingSize,a=r.borderSize,s=r.boxSizing,r=r.sizingStyle;i.setAttribute("style",r+";"+this.HIDDEN_TEXTAREA_STYLE),i.value=e.value+t;i=i.scrollHeight;"border-box"===s?i+=a:"content-box"===s&&(i-=o),e.style.height=i+"px",e.style.marginTop=0-.5*i+"px",n.style.height=Math.max(i,32)+"px",n.style.marginTop=-.5*i+"px"}}),Nl=vc.ScrollBarInteractor=function(t){Bn(Nl,this,[t])},du("ScrollBarInteractor",ql,{_41o:function(){return this.gv.getViewRect().height')+")"+a,r+="cursor:-webkit-image-set(url("+o+")"+devicePixelRatio+"x,url("+o+")1x)"+a),(a=d.createElement("style")).textContent="body."+t+" *, ."+t+"{"+r+"}",d.head.appendChild(a)},(Iv=Hl.Guide.Grid=function(t){this._interactor=t,this._alignmentGuideId=0,this._xAlignmentGuide=[],this._yAlignmentGuide=[]}).prototype={},Iv.prototype.constructor=Iv,L.defineProperties(Iv.prototype,{gridBlockSize:{get:function(){return this._gridBlockSize||this._interactor.getStyle("gridBlockSize")},set:function(t){this._gridBlockSize=t,this._interactor._42()}},gridThickLinesEvery:{get:function(){return this._gridThickLinesEvery||this._interactor.getStyle("gridThickLinesEvery")},set:function(t){this._gridThickLinesEvery=t,this._interactor._42()}},gridEnabled:{get:function(){return this._interactor.gridEnabled&&this.isValidGrid()}}}),Iv.prototype._42=function(){var t=this._interactor;this.gridEnabled&&this.drawGrid(),t.alignmentGuideEnabled&&this.drawAlignmentGuide()},Iv.prototype.makeMatrix=function(){var t=this._interactor.getStyle("gridAngle"),e=this._interactor.getStyle("gridRotation"),i=new Hl.Math.Matrix2d,n=Math.sin(t),t=Math.cos(t);return i.set(1,0,t,n,0,0),i.rotate(e),i},Iv.prototype.isValidGrid=function(){var t=Math.PI,e=this._interactor;if(e.gv._zoom=i.x&&p.y>=i.y&&p.x<=n.x&&p.y<=n.y&&d.push(p))}return d},Iv.prototype.solveTForPoint=function(t){for(var e=this._p1.x-t.x,i=this._p2.x-t.x,n=this._p3.x-t.x,r=this._p4.x-t.x,o=this.getRoots(r-3*n+3*i-e,3*n-6*i+3*e,3*i-3*e,e),a=H,s=1/0,h=0,c=o.length;hMath.PI&&(p-=2*Math.PI);var g=(p/Math.PI*180).toFixed(2)+"°"}else if("resize"===h){var p,_=n.rect,v=_.x,y=_.y,m=_.width,u=_.height,d=n.anchor,b=n.matrix,x=a.s&&a.s("keepAspectRatio")||l.getStyle("keepAspectRatio");gs(t)&&(x=!x);var w,E,T=i._unionPointMode1,f=i._unionPointMode2;!i._inSmartGuide||Gl.Default.isCtrlDown(t)||x||("L"===s||"R"===s?w="x":"T"!==s&&"B"!==s||(w="y"),i._adsorbedToClosest(c,w),o=!0),p=b.tfi(c),"LT"===s?(_=T(p,{x:v+m,y:y+u},m,u,x),E=9):"T"===s?(_=f({x:v,y:p.y},{x:v+m,y:y+u},m,u,x,"v"),E=1):"RT"===s?(_=T(p,{x:v,y:y+u},m,u,x),E=33):"L"===s?(_=f({x:p.x,y:y},{x:v+m,y:y+u},m,u,x,"h"),E=8):"R"===s?(_=f({x:v,y:y},{x:p.x,y:y+u},m,u,x,"h"),E=32):"LB"===s?(_=T(p,{x:v+m,y:y},m,u,x),E=12):"B"===s?(_=f({x:v,y:y},{x:v+m,y:p.y},m,u,x,"v"),E=4):"RB"===s&&(_=T(p,{x:v,y:y},m,u,x),E=36);d=b.tf(_.x+_.width*d.x,_.y+_.height*d.y);a instanceof Gl.Block&&(n.hasOwnProperty("freezeFlag")||(n.freezeFlag=a._freezeSyncFromChildren,a._freezeSyncFromChildren=!0)),a.setPosition(d),a.setSize(_.width,_.height),o&&(r=a.getRect(),l.rectGuide.gatherLines({node:a,x:r.x,y:r.y,w:r.width,h:r.height},w,E)),g=Math.round(_.width)+" * "+Math.round(_.height)}else if("line"===h){if(gs(t)){var h=a.getPoints(),h="P1"===s?h.get(1):h.get(0),S=c.x-h.x,I=c.y-h.y,C=l.getStyle("shiftLineRotateRound"),M=i._shiftDirList;if(!M||i._shiftRotateRound!==C){i._shiftRotateRound=C,i._shiftDirList=M=[];for(var R=0;RMath.abs(P)&&(P=z,A=B)}c={x:h.x+A.x*P,y:h.y+A.y*P},l.rectGuide.clear()}else i._inSmartGuide&&!Gl.Default.isCtrlDown(t)&&(i._adsorbedToClosest(c),o=!0);c=Hl.getDataMatrix(a).applyInverse(c);a.setPoint("P1"===s?0:1,c,!0);s=a.getPoints(),c=s.get(0),s=s.get(1);v=c.x-s.x,y=c.y-s.y,g=" "+Math.round(Math.sqrt(v*v+y*y))+" ",o&&(r=a.getRect(),l.rectGuide.gatherLines({node:a,x:r.x,y:r.y,w:r.width,h:r.height}))}g&&((l=Gl.Default.getLogicalPoint(t,l._canvas)).x+=Hl.Icons.TipShiftX,l.y+=Hl.Icons.TipShiftY,i.tipInfo={helperPos:l,text:g,size:g.length}),i._fireEditEvent("between",t)}},Gv.prototype._unionPointMode1=function(t,e,i,n,r){var o;return r&&i&&n&&(o=t.x-e.x,r=t.y-e.y,Math.abs(o*n)1+n||i.y<-n||i.y>1+n)return!0;n=e.getSize(),e=e.getScale();if(Math.min(Math.abs(n.width*e.x),Math.abs(n.height*e.y))*t.gv._zoomthis.screenInfo.size)){t=this._interactor;return this.selectedTarget=this.getMovableTarget(t.getSubModule("Rect").target),t.setCursor("default"),!0}}},Gv.prototype._42=function(t,e,i){this.screenInfo={};var n=this._interactor;n.editDetail||!this.gatherInfo(e,i)||n.editing&&!this.selectedTarget||Hl.Icons.DrawIcon(n,t,Hl.Icons.MoveDummy,this.screenInfo)},(Gv=Hl.RotateX=function(t){this.catalog="RotateX",this._interactor=t}).prototype={},(Gv.prototype.constructor=Gv).prototype.gatherInfo=function(t,e){if(1!==e.length)return 1Math.PI&&(c-=2*Math.PI),h=(c/Math.PI*180).toFixed(2)+"°",(c=Gl.Default.getLogicalPoint(t,r._canvas)).x+=Hl.Icons.TipShiftX,c.y+=Hl.Icons.TipShiftY,this.tipInfo={helperPos:c,text:h,size:h.length},r.fi({kind:"betweenEditRotation",event:t}))},Gv.prototype._42=function(t,e,i){var n=this;n._clockPainted=!1,n.info={},n.screenInfo={};var r=n._interactor;r.editDetail||n.gatherInfo(e,i)&&n.isVisible()&&(Hl.Icons.DrawIcon(r,t,Hl.Icons.RoundPoint,n.screenInfo.POS),n.tipInfo&&Hl.Icons.DrawIcon(r,t,Hl.Icons.TipHelper,n.tipInfo),n.editing&&n.drawClock(t))},Gv.prototype.drawClock=function(t){t.save();this._clockPainted=!0;var e=this.editing||{},i=e.screenInfo||this.screenInfo,n=i.LEN,r=n+8,o=n+18;t.save(),t.translate(i.CENTER.x,i.CENTER.y),t.beginPath(),t.strokeStyle="rgb(150, 150, 150)";for(var a,s,h,c,l,u=0;u<360;u++)a=u*Math.PI/180,0==u%5&&(s=Q(a)*n,h=Z(a)*n,c=Q(a)*r,l=Z(a)*r,t.moveTo(s,h),t.lineTo(c,l)),0==u%45&&(s=Q(a)*n,h=Z(a)*n,c=Q(a)*o,l=Z(a)*o,t.moveTo(s,h),t.lineTo(c,l));t.stroke(),t.rotate(-I);e=e.lastRotation||this.target.getRotation();t.beginPath(),t.fillStyle="rgba(255, 0, 0, 0.1)",t.strokeStyle="rgb(157, 157, 157)",t.moveTo(0,0),t.arc(0,0,o,0,e,!1),t.fill(),t.beginPath(),t.moveTo(0+o,0),t.arc(0,0,o,0,e,!1),t.stroke(),t.restore()},(du=Hl.Curve=function(t){this.catalog="Curve",this._interactor=t}).prototype={},du.prototype.constructor=du,L.defineProperties(du.prototype,{activing:{get:function(){return this._activing},set:function(t){t?(this._activing=new Hl.CurveActiving(this,t),this._activing._firePointChange()):((t=this._activing)&&t.dispose(),this._activing=null)}}}),du.PointType={Mirrored:0,Straight:1,Disconnected:2,Asymmetric:3},du.prototype.setUp=function(){var t=this._interactor;t&&t.gv.mp(this._onGraphviewPropertyChanged,this)},du.prototype._onGraphviewPropertyChanged=function(t){"zoom"!==t.property&&"translateX"!==t.property&&"translateY"!==t.property||this._handleDataChanged()},du.prototype.tearDown=function(){var t=this._interactor;t&&t.gv.ump(this._onGraphviewPropertyChanged,this)},du.prototype.canEnterEditDetailMode=function(){var t=this._interactor,e=t._getValidSelection();if(1===e.length){var i=e[0],e=i instanceof Gl.Edge;if(i instanceof Gl.Shape||e){if(e){e=i.s("edge.type");if(e&&"points"!==e)return}t=t.gv;if(t.isPointEditable(i)&&t.isEditable(i))return this.target=i,!0}}},du.prototype.canQuitEditDetailMode=function(t){var e=this._interactor._getLogicalPoint(t);return!this._checkEditRealPoint(e)&&this._interactor.gv.getDataAt(t)!==this.target||void 0},du.prototype.preHandleScroll=function(){var t=this.editing;return!(!t||!t.inEdit)||void 0},du.prototype.getCurrentSelectintStatus=function(){var i=this;if(i.activing&&!i.activing.selections){if(i.activing.status!=H)return i.activing.status;var t=function(t){var e=i.activing.status;i.activing.status=t,i._interactor.fp("shapePointStatus",e,t)},e=Hl.Curve.PointType,n=i.activing.point,r=i.activing.pairs;if(!r||1!==r.length)return t(e.Mirrored);var o=r[0],a=o.c1&&o.c1.isNearEnough(n),r=o.c2&&o.c2.isNearEnough(n);if(!o.c1||!o.c2)return t(a||r?e.Straight:e.Disconnected);if(a&&r)return t(e.Straight);if(a||r)return t(e.Asymmetric);r=o.c1.clone().sub(n),n=o.c2.clone().sub(n);return 1e-5o.limit&&"y"===o.dir&&(o.dir="x"),so.limit&&"x"===o.dir&&(o.dir="y"),"x"===(r=o.dir)?(x.y=a.y,o.limit=Math.max(o.limit,s)):"y"===r&&(x.x=a.x,o.limit=Math.max(o.limit,h))),(h=E._isEditEdgeSourceTarget())?(h=E._editEdgeSourceTarget(h,x,c))&&(w=(E.edgeEditResult=h).tipText):c||(_=E._guidingToEdit(x,r),g=c=1/0,(p="realPoint"===i?E._interactor.gridGuide.findClosest(x,r,!0):null)&&(p.x&&(c=p.x),p.y&&(g=p.y)),p=!1,_&&(_.xList&&(Math.abs(_.x)<=Math.abs(c)?(p=!0,c=_.x):delete _.xList),_.yList&&(Math.abs(_.y)<=Math.abs(g)?(p=!0,g=_.y):delete _.yList),p&&(E._guideInfo=_)),isFinite(c)&&(x.x+=c),isFinite(g)&&(x.y+=g),p&&(_.v=x))),l=E.screenInfo.curve,"realPoint"===T.type?((m=T.point).e!==H&&(x.e=m.e),l.moveRealPoint(m,x),T.point=x,E.highlight.point=x,v=n.status,u=n.selections,E.activing={point:x,status:v},u&&(d=x.clone().sub(m),f=0,u.forEach(function(t){var e=t.clone().add(d);l.moveRealPoint(t,e),u[f++]=e}),E.activing.selections=u)):"ctrlPoint"===T.type?(g=n.pairs[T.pairId],l.moveCtrlPoint(g,x,T.ctrlType),((p=n.status)===(_=Hl.Curve.PointType).Mirrored||p===_.Asymmetric)&&g.c1&&g.c2&&(m=new Hl.Math.Vector2(n.point),v="c1"===T.ctrlType?"c2":"c1",p===Hl.Curve.PointType.Mirrored?l.moveCtrlPoint(g,m.clone().multiplyScalar(2).sub(x),v):p===_.Asymmetric&&(y=g[v].clone().sub(m).length(),m=m.clone().sub(g[T.ctrlType]).setLength(y).add(m),isNaN(m.x)||l.moveCtrlPoint(g,m,v))),n._firePointChange()):"elevation"===T.type&&(b=(a=T.startPoint).e+(a.y-x.y)/t._zoom,E._setCurrentPointImpl("e",b),n._firePointChange(),w="E: "+Hl.toFixed(b)),(b=Gl.Default.getLogicalPoint(e,E._interactor._canvas)).x+=Hl.Icons.TipShiftX,b.y+=Hl.Icons.TipShiftY,w||(x=Hl.toWorldPosition(t,x),w=Hl.toFixed(x.x)+", "+Hl.toFixed(x.y)),E.tipInfo={helperPos:b,text:w,size:w.length},E._writeToHt(),E._interactor.fi({kind:"betweenEditPoint",event:e})));E._handlePanning(e)}},du.prototype._setCurrentPointImpl=function(t,e){var i=this._activing;if(!i)return!1;var n=this.target;if(!n)return!1;var r=i.getCurrentEditingPoint();if(!r)return!1;var o,a,s,h,c,l,u=i.editingCtrl;return u||(o=r.clone()),"e"===t?r.e=e:("x"===t||"y"===t?(a=i._lastFirePoint,a="x"===t?{x:e,y:a?a.y:0}:{x:a?a.x:0,y:e}):"object"==typeof t?(a=t).e!==H&&(r.e=t.e):(a={x:t,y:e},arguments[2]!==H&&(r.e=arguments[2])),e=Hl.getDataMatrix(n),a=Hl.toScreenPosition(this._interactor.gv,e.apply(a)),r.x=a.x,r.y=a.y),u||(s=o.multiplyScalar(-1).add(r),r.e&&o.e&&(s.e=r.e-o.e),(h=this.screenInfo.curve).moveCtrlDueToRealPointMovement(r,s),(c=i.selections)&&(l=0,c.forEach(function(t){var e=t.clone().add(s);isFinite(s.e)&&(e.e=(isFinite(t.e)?t.e:n.getElevation()||0)+s.e),h.moveRealPoint(t,e),c[l++]=e}),i.selections=c)),!0},du.prototype.setCurrentPoint=function(t,e){return!!this._setCurrentPointImpl(t,e)&&(this._writeToHt(),!0)},du.prototype._isEditEdgeSourceTarget=function(){if(!(this.target instanceof Gl.Edge))return!1;var t=this.editing.point,e=this.screenInfo.curve._curves;return t===e[0]._p1?"source":t===e[e.length-1]._p4&&"target"},du.prototype._editEdgeSourceTarget=function(e,t,i){var n=this,r=n.target;if(a="source"===e?r.getSource():r.getTarget()){var o,a,s,h,c,l,u=n._interactor.gv,d=Hl.toWorldPosition(u,t),f=n._calcHostAnchor(r,e,d,a);return!(f.index!==H||f.percent!==H?f.distance*u.getZoom()>n._interactor.getStyle("edgeHostEdgeMaxDistance"):!!n._interactor.getStyle("edgeHostDetectPerFrame")||(f.x<0||1g||"y"===e)&&(n=null),(Math.abs(d)>g||"x"===e)&&(r=null),n||r){g=!1,e={};if(n&&(g=!0,e.xList=n,e.x=u),r&&(g=!0,e.yList=r,e.y=d),g)return e}}},du.prototype._46O=function(t){var e=this;e.editing&&(e.editing=null,e._interactor.fi({kind:"endEditPoint",event:t})),e._guideInfo=null,e._edgeHostGuideInfo=null,e._pan&&(e._pan=null,e._interactor.fi({kind:"endPan",event:t})),e._multiSelect&&(e._handleMultiSelect(e._multiSelect),e._multiSelect=null),e.tipInfo=null,e.edgeEditResult=null},du.prototype._handleMultiSelect=function(t){if(t.startPoint&&t.endPoint){var e,i,n,r=this._interactor,o=r.gv,a=Hl.toScreenPosition(o,t.startPoint),t=Hl.toScreenPosition(o,t.endPoint),s=Gl.Default.unionPoint(a,t),h=this.screenInfo.curve._curves,c=[],l=function(t){t.x>=s.x&&t.y>=s.y&&t.x<=s.x+s.width&&t.y<=s.y+s.height&&c.indexOf(t)<0&&c.push(t)};for(f=0,g=h.length;fe.limit&&"y"===e.dir&&(e.dir="x"),ne.limit&&"x"===e.dir&&(e.dir="y");var o=e.dir;return"x"===o?(t.y=i.y,e.limit=Math.max(e.limit,n)):"y"===o&&(t.x=i.x,e.limit=Math.max(e.limit,r)),t},du.prototype._isAttachableLineShape=function(t){if(!t.getSegments)return!1;var e=t.getSegments();if(!e)return!0;e instanceof Gl.List&&(e=e.getArray());for(var i=1,n=e.length;ithis._interactor.getStyle("attachThreshold")?(t.s({"attach.index":-1}),void t.setHost(null)):(t.s("attach.offset.opposite")&&(h=c-h),t.s({"attach.index":l,"attach.offset":t.s("attach.offset.relative")?h/c:h}),{x:0,y:0})}t=i.calculateAttachPoint(r,e);if(t){i=t.point;return n.attach=t.index,this._calcShiftByAddon(i.x-e.x,i.y-e.y)}}),du.prototype._gatherGridInfo=function(t){var e,i,n=this._interactor,r=n._getValidSelection();if(r.length){if(1===r.length){if(!(e=r[0]).getRect)return void(this._target=null)}else if(!(e=Hl.Group.findOrCreateGroup(r)))return void(this._target=null)}else if((r=n.gv.sm().getSelection()).length&&!(e=r.get(0)).getRect)return void(this._target=null);e&&(i=e.getPosition(),r=e.getRect(),this._target={node:e,x:r.x-i.x,y:r.y-i.y,w:r.width,h:r.height,lp:{x:t.x,y:t.y},pos:{x:i.x,y:i.y},shiftGuide:{dir:"x",limit:0},downPosition:new Hl.Math.Vector2(t)},n.rectGuide.gatherRects())},du.prototype.clear=function(){this._edgeHostGuideInfo=null,this._interactor.rectGuide.clear(),this._interactor._42()},du.prototype._42=function(){var t=this._edgeHostGuideInfo;t&&this._interactor._drawHostGuide(t)},fu=L.freeze({DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,FUNC_ADD:32774,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,BLEND_COLOR:32773,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CULL_FACE:2884,BLEND:3042,DITHER:3024,STENCIL_TEST:2960,DEPTH_TEST:2929,SCISSOR_TEST:3089,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CW:2304,CCW:2305,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_UNIFORMS:35718,ACTIVE_ATTRIBUTES:35721,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,NOTEQUAL:517,GEQUAL:518,ALWAYS:519,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,VENDOR:7936,RENDERER:7937,VERSION:7938,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,TEXTURE1:33985,TEXTURE2:33986,TEXTURE3:33987,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE30:34014,TEXTURE31:34015,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,COMPILE_STATUS:35713,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,CONTEXT_LOST_WEBGL:37442,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,BROWSER_DEFAULT_WEBGL:37444,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGB_ETC1_WEBGL:36196,HALF_FLOAT_OES:36193,DOUBLE:5130,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,COLOR:6144,DEPTH:6145,STENCIL:6146,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,MAX_3D_TEXTURE_SIZE:32883,UNSIGNED_INT_2_10_10_10_REV:33640,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,MAX_TEXTURE_LOD_BIAS:34045,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,VERTEX_ATTRIB_ARRAY_INTEGER:35069,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,UNSIGNED_INT_10F_11F_11F_REV:35899,RGB9_E5:35901,UNSIGNED_INT_5_9_9_9_REV:35902,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,RASTERIZER_DISCARD:35977,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,UNSIGNED_INT_24_8:34042,DEPTH24_STENCIL8:35056,UNSIGNED_NORMALIZED:35863,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,MAX_SAMPLES:36183,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,VERTEX_ARRAY_BINDING:34229,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,SIGNED_NORMALIZED:36764,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,INVALID_INDEX:4294967295,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,SAMPLER_BINDING:35097,RGB10_A2UI:36975,INT_2_10_10_10_REV:36255,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497,TEXTURE_IMMUTABLE_FORMAT:37167,MAX_ELEMENT_INDEX:36203,TEXTURE_IMMUTABLE_LEVELS:33503,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047}),gv="undefined"!=typeof WebGL2RenderingContext,pv={aliasedLineWidthRange:fu.ALIASED_LINE_WIDTH_RANGE,aliasedPointSizeRange:fu.ALIASED_POINT_SIZE_RANGE,maxCombinedTextureImageUnits:fu.MAX_COMBINED_TEXTURE_IMAGE_UNITS,maxCubeMapTextureSize:fu.MAX_CUBE_MAP_TEXTURE_SIZE,maxFragmentUniformVectors:fu.MAX_FRAGMENT_UNIFORM_VECTORS,maxRenderBufferSize:fu.MAX_RENDERBUFFER_SIZE,maxTextureImageUnits:fu.MAX_TEXTURE_IMAGE_UNITS,maxTextureSize:fu.MAX_TEXTURE_SIZE,maxVaryingVectors:fu.MAX_VARYING_VECTORS,maxVertexAttribs:fu.MAX_VERTEX_ATTRIBS,maxVertexTextureImageUnits:fu.MAX_VERTEX_TEXTURE_IMAGE_UNITS,maxVertexUniformVectors:fu.MAX_VERTEX_UNIFORM_VECTORS,maxViewportDIMs:fu.MAX_VIEWPORT_DIMS},_v={max3DTextureSize:fu.MAX_3D_TEXTURE_SIZE,maxArrayTextureLayers:fu.MAX_ARRAY_TEXTURE_LAYERS,maxColorAttachments:fu.MAX_COLOR_ATTACHMENTS,maxCombinedFragmentUniformComponents:fu.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS,maxCombinedUniformBlocks:fu.MAX_COMBINED_UNIFORM_BLOCKS,maxCombinedVertexUniformComponents:fu.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS,maxDrawBuffers:fu.MAX_DRAW_BUFFERS,maxElementIndex:fu.MAX_ELEMENT_INDEX,maxElementsIndices:fu.MAX_ELEMENTS_INDICES,maxElementsVertices:fu.MAX_ELEMENTS_VERTICES,maxFragmentInpuComponents:fu.MAX_FRAGMENT_INPUT_COMPONENTS,maxFragmentUniformBlocks:fu.MAX_FRAGMENT_UNIFORM_BLOCKS,maxFragmentUniformComponents:fu.MAX_FRAGMENT_UNIFORM_COMPONENTS,maxProgramTexelOffset:fu.MAX_PROGRAM_TEXEL_OFFSET,maxSamples:fu.MAX_SAMPLES,maxTextureLODBias:fu.MAX_TEXTURE_LOD_BIAS,maxTransformFeedbackInterleavedComponents:fu.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS,maxTransformFeedbackSeparateAttribs:fu.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS,maxTransformFeedbackSeparateComponents:fu.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS,maxUniformBlockSize:fu.MAX_UNIFORM_BLOCK_SIZE,maxUniformBufferBindings:fu.MAX_UNIFORM_BUFFER_BINDINGS,maxVaryingComponents:fu.MAX_VARYING_COMPONENTS,maxVertexOutputComponents:fu.MAX_VERTEX_OUTPUT_COMPONENTS,maxVertexUniformBlocks:fu.MAX_VERTEX_UNIFORM_BLOCKS,maxVertexUniformComponents:fu.MAX_VERTEX_UNIFORM_COMPONENTS,minProgramTexelOffset:fu.MIN_PROGRAM_TEXEL_OFFSET},gu={for:function(t){var e=t._info;return e||(t._info=e=Cm(t,e)),e}},pu=function(){function t(e,i,t){return{def:e,getter:t?function(t){return 1t/Q(u)&&(s.adjust=!0),s},ku=function(t){var e=t[0],i=t[1],n=t[2],r=t[3],o=t[4],a=t[5],s=t[6],h=t[7],c=t[8],l=t[9],u=t[10],d=t[11],f=t[12],g=t[13],p=t[14],_=t[15],v=e*a-i*o,y=e*s-n*o,m=e*h-r*o,b=i*s-n*a,x=i*h-r*a,w=n*h-r*s,E=c*g-l*f,T=c*p-u*f,S=c*_-d*f,I=l*p-u*g,C=l*_-d*g,M=u*_-d*p,R=v*M-y*C+m*I+b*S-x*T+w*E;return R?(R=1/R,t[0]=(a*M-s*C+h*I)*R,t[1]=(n*C-i*M-r*I)*R,t[2]=(g*w-p*x+_*b)*R,t[3]=(u*x-l*w-d*b)*R,t[4]=(s*S-o*M-h*T)*R,t[5]=(e*M-n*S+r*T)*R,t[6]=(p*m-f*w-_*y)*R,t[7]=(c*w-u*m+d*y)*R,t[8]=(o*C-a*S+h*E)*R,t[9]=(i*S-e*C-r*E)*R,t[10]=(f*x-g*m+_*v)*R,t[11]=(l*m-c*x-d*v)*R,t[12]=(a*T-o*I-s*E)*R,t[13]=(e*I-i*T+n*E)*R,t[14]=(g*y-f*b-p*v)*R,void(t[15]=(c*b-l*y+u*v)*R)):U},ju=function(t,e){var i,n;e&&(i=e[0],n=e[1],e=e[2],t[12]=t[0]*i+t[4]*n+t[8]*e+t[12],t[13]=t[1]*i+t[5]*n+t[9]*e+t[13],t[14]=t[2]*i+t[6]*n+t[10]*e+t[14],t[15]=t[3]*i+t[7]*n+t[11]*e+t[15])},Nu=function(t,e){var i,n;e&&(i=e[0],n=e[1],e=e[2],t[0]=t[0]*i,t[1]=t[1]*i,t[2]=t[2]*i,t[3]=t[3]*i,t[4]=t[4]*n,t[5]=t[5]*n,t[6]=t[6]*n,t[7]=t[7]*n,t[8]=t[8]*e,t[9]=t[9]*e,t[10]=t[10]*e,t[11]=t[11]*e)},Uu=function(t,e,i){var n=e[0],r=e[1],o=e[2],a=e[3],s=e[4],h=e[5],c=e[6],l=e[7],u=e[8],d=e[9],f=e[10],g=e[11],p=e[12],_=e[13],v=e[14],y=e[15],m=i[0],b=i[1],x=i[2],e=i[3];return t[0]=m*n+b*s+x*u+e*p,t[1]=m*r+b*h+x*d+e*_,t[2]=m*o+b*c+x*f+e*v,t[3]=m*a+b*l+x*g+e*y,m=i[4],b=i[5],x=i[6],e=i[7],t[4]=m*n+b*s+x*u+e*p,t[5]=m*r+b*h+x*d+e*_,t[6]=m*o+b*c+x*f+e*v,t[7]=m*a+b*l+x*g+e*y,m=i[8],b=i[9],x=i[10],e=i[11],t[8]=m*n+b*s+x*u+e*p,t[9]=m*r+b*h+x*d+e*_,t[10]=m*o+b*c+x*f+e*v,t[11]=m*a+b*l+x*g+e*y,m=i[12],b=i[13],x=i[14],e=i[15],t[12]=m*n+b*s+x*u+e*p,t[13]=m*r+b*h+x*d+e*_,t[14]=m*o+b*c+x*f+e*v,t[15]=m*a+b*l+x*g+e*y,t},Gu=function(t,e,i,n){var r,o=e[0],a=e[1],s=e[2],h=n[0],c=n[1],l=n[2],u=i[0],d=i[1],f=i[2];return X(o-u)l[5]&l[0]>l[10]?(d=2*Math.sqrt(1+l[0]-l[5]-l[10]),c[3]=(l[6]-l[9])/d,c[0]=.25*d,c[1]=(l[1]+l[4])/d,c[2]=(l[8]+l[2])/d):l[5]>l[10]?(d=2*Math.sqrt(1+l[5]-l[0]-l[10]),c[3]=(l[8]-l[2])/d,c[0]=(l[1]+l[4])/d,c[1]=.25*d,c[2]=(l[6]+l[9])/d):(d=2*Math.sqrt(1+l[10]-l[0]-l[5]),c[3]=(l[1]-l[4])/d,c[0]=(l[8]+l[2])/d,c[1]=(l[6]+l[9])/d,c[2]=.25*d),n=i,s=(a=o=r)[0],t=a[1],f=a[2],h=a[3],a=(a=s*s+t*t+f*f+h*h)?1/a:0,o[0]=-s*a,o[1]=-t*a,o[2]=-f*a,o[3]=h*a,u=o,l=e.pos,c=u[0],d=u[1],r=u[2],s=u[3],f=c*(t=c+c),a=c*(h=d+d),u=c*(o=r+r),c=d*h,d*=o,r*=o,t*=s,h*=s,o*=s,n[0]=1-(c+r),n[1]=a+o,n[2]=u-h,n[3]=0,n[4]=a-o,n[5]=1-(f+r),n[6]=d+t,n[7]=0,n[8]=u+h,n[9]=d-t,n[10]=1-(f+c),n[11]=0,n[12]=l[0],n[13]=l[1],n[14]=l[2],n[15]=1,g&&Uu(i,i,g),xd(p,i)):xd(p,e)},Md=function(t,e,i,n,r){var o=t.s,a=t.gv,s=a.getGL(),h=a._prg,c=a._buffer,l=a._1O,u=yu.for(s).directAttribs();Qu(s,Yr,l),Cd(t,i),ad(s,0,o(e+".blend"),o(e+".light"),o(e+".opacity"),o(e+".reverse.flip"),o(e+".reverse.color"),o(e+".reverse.cull")),hd(s,h,l,r,c.uv,_f),u.aPosition=gd(s,c.vs,n,U),u.aNormal=gd(s,c.ns,vf,U),_d(s,c.is,yf),dd(s,0,yf.length),cd(s,0,l),sd(s),md(a)},Rd=function(t,e,i){var n=t.gv,r=t.data,t=t[e]={blend:n.getBodyColor(r)||n.getFaceBlend(r,e),light:n.getFaceLight(r,e),color:n.getFaceColor(r,e),opacity:n.getFaceOpacity(r,e),transparent:n.getFaceTransparent(r,e),reverseFlip:n.getFaceReverseFlip(r,e),reverseColor:n.getFaceReverseColor(r,e),reverseCull:n.getFaceReverseCull(r,e),texture:n.getFaceImage(r,e),blendTexture:n.getFaceBlendImage(r,e),discardSelectable:n.getFaceDiscardSelectable(r,e)};return"csg"!==e&&(t.uv=n.getFaceUv(r,e)||i&&i[e+"Uv"],t.uvScale=n.getFaceUvScale(r,e)||i&&i[e+"UvScale"],t.uvOffset=n.getFaceUvOffset(r,e)||i&&i[e+"UvOffset"],(e=n.getFaceMat(r,e))&&(e=$s(r,e),r.appendAnchorMatrix3d(e),t.mat=e)),t},Ad=function(t,e,i,n,r){var o,a,s,h=t[n];h&&r(h.transparent)&&(s=t.data,a=(o=t.gv)._buffer,r=o.getTexture(h.texture,s,n),t=o.getTexture(h.blendTexture,s),s=(n=yu.for(e)).directUniforms(),n=n.directAttribs(),hd(e,i,r,h.discardSelectable,a.uv,h.tuv,h.uvOffset,h.uvScale,t),ad(e,0,h.blend,h.light,h.opacity,h.reverseFlip,h.reverseColor,h.reverseCull),h.cs&&!o._batchColorDisabled?(s.uBatchColor=!0,n.aBatchColor=gd(e,a.batchColor,h.cs,i.aBatchColor,4)):s.uDiffuse=h.color||F["color.empty"],n.aPosition=gd(e,a.vs,h.vs,U),n.aNormal=gd(e,a.ns,h.ns,U),ud(e,0,h.vs.length/3),h.cs&&!o._batchColorDisabled&&(s.uBatchColor=!1,yd(e,i.aBatchColor)),sd(e),cd(e,0,r))},Pd=function(t,e,i){bn(t)?t.forEach(function(t){Pd(t,e,i)}):pn(t)?Pd(Gf(e,t),e,i):yn(t)&&t.shape3d?Pd(t.shape3d,e,i):i.push(t)},Dd=function(t,e,i,n,r,o){for(var a,s,h,c,l,u,d,f,g,p=[n-e,r-i],_=t?t.length:0,v=0;v<_;v++){for(s=2,h=(a=t[v])[0],c=a[1];s+1!opjujtpQ`mh\v!gjeof$!\v<*1/2!-opjujtpQb)5dfw!+!yjsubNNv!+!yjsubNxpebit!>!esppDxpebit\v!QBNXPEBIT`FTV!gfegj$!\v\v!gjeof$!\v~!fdobutjEfojMw|*itbEv)gj\v!ITBE!gfegj$!\v\v!gjeof$!\v~!ttfouihjsCidubCw|*ttfouihjsCidubCv)gj\v!TTFOUIHJSCIDUBC!gfegj$!\v\v!gjeof$!\v~!eofmCidubCw|*eofmCidubCv)gj\v!EOFMCIDUBC!gfegj$!\v\v!gjeof$!\v~!spmpDidubCw|*spmpDidubCv)gj\v!SPMPDIDUBC!gfegj$!\v~!wVs|*fsvuyfUeofmCv)gj\v~!wVw|*fsvuyfUv)gj<*opjujtpQb)4dfw!>!opjujtpQw~<**1/2!-opjujtpQb)5dfw!+!yjsubNNv)4dfw!>!emspXw<*yfusfw)4dfw!>!yfusfWw<**1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!?!udfggFupqt)gj<*mbnspOm!-^j]opjudfsjEupqTv)upe!>!udfggFupqt!ubpmg<*spudfWm)f{jmbnspo!>!mbnspOm!4dfw|*1/1!?!fhobSm)!gj~<*1/2!-*^j]fhobSupqTv!0!*spudfWm)iuhofm))ojn!.!1/2!>!fhobSm|*1/1!?!^j]fhobSupqTv)!gj<1/2!>!fhobSm!ubpmg<^j]opjujtpQupqTv!.!yfusfWw!>!spudfWm!4dfw|*1/1!>>!x/^j]spmpDupqTv)gj|!*,,j!j!uoj)spg\v!1!?!UPQT`YBN!gj$!\v\v!gjeof$!\v~~~,!chs/eJ|*1/1!?!fhobSm)!gj~<*1/2!-*^j]fhobSuojpQv!0!*spudfWm)iuhofm))ojn!.!1/2!>!fhobSm|*1/1!?!^j]fhobSuojpQv)!gj<1/2!>!fhobSm!ubpmg<^j]opjujtpQuojpQv!.!yfusfWw!>!spudfWm!4dfw|*1/1!>>!x/^j]spmpDuojpQv)gj|!*,,j!j!uoj)spg\v!1!?!UOJPQ`YBN!gj$!\v\v!gjeof$!\v~~,!chs/eJ|*1/1!>>!x/^j]spmpDsjEv)gj|!*,,j!j!uoj)spg\v!1!?!SJE`YBN!gj$!\v~+!chs/eJ\v!gjeof$!\v~+!nsfUusfcnbm!~!!>!fvmbWxpebit!%%!mmvDxpebit)!gj<*esppDxpebit!-tvjebSxpebit!-tbjCxpebit!-f{jTxpebit!-qbNxpebit!)xpebiTufh!.!1/2!>!fvmbWxpebit!ubpmg|!*fwjfdfSxpebit)!gj\v!QBNXPEBIT`FTV!gfegj$!\v~<*1/2!-fhobSuihjmebfIv0*yfusfWw)iuhofm)ojn!.!1/2!!>+!nsfUusfcnbm|*1/1!?!fhobSuihjmebfIv)gj<*1/1!-zujtofuoJuofjcnBuihjmebfIv!,!*zujtofuoJuofjcnBuihjmebfIv!.!1/2)!+!*M.!-O)upe)ybn!>!nsfUusfcnbm!ubpmg|*1/1!>>!x/spmpDuihjmebfIv)gj|*uihjMv)gj~\v!gjeof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3dfw!>!uftggp!3dfw!utopd!!!!!!!!!!!!\v|!*!fsbqnpd!ubpmg!-wv!3dfw!-f{jt!3dfw!-tiuqfe!E3sfmqnbt!)qsfMxpebiTE3fsvuyfu!ubpmg!!!!!!!!\v~!!!!!!!!\v<*!*!*!wv!-tiuqfe!)E3fsvuyfu!)iuqfEpUBCHSldbqov!-fsbqnpd!)qfut!osvufs!!!!!!!!!!!!\v|!*!fsbqnpd!ubpmg!-wv!3dfw!-tiuqfe!E3sfmqnbt!)fsbqnpDE3fsvuyfu!ubpmg!!!!!!!!\v~!!!!!!!!<*!tspudbGldbqoV!-w!)upe!osvufs|!*!w!5dfw!oj!utopd!)iuqfEpUBCHSldbqov!ubpmg!!!!!!!!\v<*!/2!-tspudbGldbQ!)5dfw!0!fmbdtoxpEldbqoV!>!tspudbGldbqoV!5dfw!utopd!!!!!!!!\v<*!/763!!-/763!+!/763!-/763!+!/763!+!/763!)4dfw!>!tspudbGldbQ!4dfw!utopd!!!!!!!!\v<*2!hojevmdyf)!opjudbsg!?.!2//1!00!!fmbdtoxpEldbqoV!ubpmg!utopd!!!!!!!!\v<*2!hojevmdoj)!2//1!?.!opjudbsg!00!!fmbdtqVldbQ!ubpmg!utopd!!!!!!!!\v=t.byteLength?i.bufferSubData(this.type,e,t):i.bufferData(this.type,t,this.drawType),this.data=t},Jf.prototype.bind=function(){this.gl.bindBuffer(this.type,this.buffer)},Jf.createVertexBuffer=function(t,e,i){return new Jf(t,t.ARRAY_BUFFER,e,i)},Jf.createIndexBuffer=function(t,e,i){return new Jf(t,t.ELEMENT_ARRAY_BUFFER,e,i)},Jf.create=function(t,e,i,n){return new Jf(t,e,n)},Jf.prototype.destroy=function(){this.gl.deleteBuffer(this.buffer)},($f=Zf.Shader=function(t,e,i){this.gl=t,this.program=tg(t,e,i),this.attributes=ng(t,this.program);i=ig(t,this.program);this.uniforms=dg(t,i)}).prototype.bind=function(){this.gl.useProgram(this.program)},$f.prototype.destroy=function(){this.gl},tg=function(t,e,i){var n=eg(t,t.VERTEX_SHADER,e),e=eg(t,t.FRAGMENT_SHADER,i);t.getShaderParameter(e,t.COMPILE_STATUS)||console.error(t.getError());i=t.createProgram();return t.attachShader(i,n),t.attachShader(i,e),t.linkProgram(i),t.getProgramParameter(i,t.LINK_STATUS)||(console.error("Error: Could not initialize shader."),console.error("gl.VALIDATE_STATUS",t.getProgramParameter(i,t.VALIDATE_STATUS)),console.error("gl.getError()",t.getError()),""!==t.getProgramInfoLog(i)&&console.warn("Warning: gl.getProgramInfoLog()",t.getProgramInfoLog(i)),t.deleteProgram(i),i=null),t.deleteShader(n),t.deleteShader(e),i},eg=function(t,e,i){e=t.createShader(e);return t.shaderSource(e,i),t.compileShader(e),t.getShaderParameter(e,t.COMPILE_STATUS)?e:(console.log(t.getShaderInfoLog(e)),null)},ig=function(t,e){for(var i={},n=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),r=0;rG.graph3dMaxVectorCacheTime)return n.redraw(),r._emptyTexture;if(!Ya(a,e))return r._emptyTexture}e&&(1!==e.s("texture.scale")?_=e.s("texture.scale"):1!==e.s("shape3d.texture.scale")&&(_=e.s("shape3d.texture.scale"))),_=_||1;var d=e&&(e.s("fixSizeOnScreen")||e.s("shape3d.fixSizeOnScreen")),f=d?r.NEAREST:r.LINEAR;d?"number"==typeof d&&(_*=d<0?1:d):e&&(e.s("vector.dynamic")||e.s("shape3d.vector.dynamic"))&&(d=(h=h||n.getData3dUI(e)).getVectorDynamicSize());var g=e&&e.s("shape3d");"billboard"===g?v=e.getTall()/e.getWidth():"plane"===g&&(v=e.getHeight()/e.getWidth());var p,_,v,y,m,b=mh(a,e);_=d?(g=c?n._devicePixelRatio||ma:n.getDevicePixelRatio(),p=0Vertices: "+t.vertices+"
Faces: "+t.faces+"
Lines: "+t.lines+"
"+(t.points?"Points: "+t.points+"
":"")+"Buffers: "+e+"
Cache Models: "+L.keys(Vi).length+"
Shape3d Models: "+L.keys(zi).length;return this.vr.isPresenting()&&(i+="
VR fps: "+this.vr.getFps()),t.textureCache&&(e=t.textureCache.count,i+="
2D Dynamic Textures: "+t.textureCache.count,02D Dynamic pixels: "+(1e6<(t=t.textureCache.pixels)?Math.round(t/1e6)+"M":1e3=t)break;n._43Q[n._44Q=e.id]&&!Ci[Ht.length]||(e.render(s,n,r),i())}}}var n=this;n.shadowMap.render(),n._44Q=-1;var r=n._frameState,o=r.renderState,e=o.glState,a=o.directUniforms(),s=n.getGL(),h=n._prg;o.syncLoss(),n._projectMatrix=qu(n),Wu(n,n._7O),n._viewMatrix=qs(n._7O),r.syncEnv(this._picking?this.pickColorMap:H),o.useProgram(h),i(!1,!0),s.clear(s.DEPTH_BUFFER_BIT);var c,l=n._picking,u=this._41Q,d=0,f=u.length;if(t(G.cameraPriority.skybox),l?(c=e.color.clear.slice(0),nd(s,[0,0,0,0])):(nd(s,[0,0,0,0]),e.blend.enabled=!1,e.depth.enabled=!1,e.depth.mask=!1,n.drawSky(s,h),n.drawReflectors(s)&&(n._projectMatrix=qu(n),Wu(n,n._7O),n._viewMatrix=qs(n._7O),r.syncEnv(),i()),e.blend.enabled=!1,e.depth.enabled=!0,e.depth.mask=!0,a.uTransparent=!1,n._31O._42(s,h)),!s.textureBatch||Ci[(ONE_FRAME_TIME-6)/2]){!l&&n.shadowMap.enable&&n.shadowMap.createShadow(a);for(var g=0,p=zh.length;gh?(t.deleteBuffer(n._buf),n._buf=null,r[i]=null):a++);if(a=n||r[1]<=t||r[1]>=n||r[2]<=t||r[2]>=n)&&(n=2*t*n/(t+n)/Math.min(r[0],r[1],r[2]),r=i.getScale3d(),i.setScale3d(r[0]*n,r[1]*n,r[2]*n),e=!0)),e&&this.invalidateData(i))},getSkyBox:function(){return this.getSkybox()},setSkyBox:function(t){return this.setSkybox(t)},getSkybox:function(){return this._skybox},setSkybox:function(t){var e=this._skybox;return e===t?void(t&&this._updateSkybox({property:"forceUpdate"})):(e&&(this._skyboxStyleMap&&e.setStyleMap(this._skyboxStyleMap),this._skyboxStyleMap=null,this._skyboxAnchor3d&&e.setAnchor3d(this._skyboxAnchor3d),this._skyboxAnchor3d=null,this._skyboxP3&&e.p3(this._skyboxP3),this._skyboxP3=null),this._skybox=t,this.ump(this._updateSkybox,this),t&&(t.dm()&&t.dm().remove(t),this._skyboxStyleMap=Gl.Default.clone(t.getStyleMap()),this._skyboxAnchor3d=t.getAnchor3d(),t.setAnchor3d(.5,.5,.5),this._skyboxP3=t.p3().slice(0),t.s({"shape3d.reverse.flip":!0,"shape3d.reverse.cull":!1,"all.reverse.flip":!0,"all.reverse.cull":!1,"front.reverse.flip":!0,"front.reverse.cull":!1,"back.reverse.flip":!0,"back.reverse.cull":!1,"left.reverse.flip":!0,"left.reverse.cull":!1,"right.reverse.flip":!0,"right.reverse.cull":!1,"top.reverse.flip":!0,"top.reverse.cull":!1,"bottom.reverse.flip":!0,"bottom.reverse.cull":!1}),this.mp(this._updateSkybox,this),this._updateSkybox({property:"forceUpdate"})),void this.fp("skybox",e,t))},drawSky:function(t,e){var i,n,r,o,a,s,h,c,l=this,u=l._skybox;u&&(i=yu.for(t).directUniforms(),c=l._headlightIntensity,n=to(l._headlightColor),e=l._prg,1!==c&&(n=[n[0]*c,n[1]*c,n[2]*c]),i.uHeadlightColor=[n[0],n[1],n[2],1],(r=l.getData3dUI(u))&&((a=(o=l.isOrtho())||this._computedProjectMatrix)&&(s=l._projectMatrix,o&&(l._ortho=!1),i.uPMatrix=l._projectMatrix=qu(l,!0)),h=u.p3(),c=this._eye,h[0]===c[0]&&h[1]===c[1]&&h[2]===c[2]||(u._position.x=c[0],u._54O=c[1],u._position.y=c[2]),r.validate(),r._42(t,e,f),a&&(o&&(l._ortho=!0),i.uPMatrix=l._projectMatrix=s)),t.clear(t.DEPTH_BUFFER_BIT),i.uHeadlightColor=[n[0],n[1],n[2],l._headlightDisabled?1:0])},getLogicalPoint:function(t){return Cs(t,this._canvas)},isRectOverlapping:function(t){return this.getData3dUI(t)._rectOverlapping},getHitFaceInfo:function(t){t.target&&(t=this.lp(t));var e=this.getDataInfoAt(t);if(e){t=this.intersectObject(t,e.data);if(t)return{data:e.data,face:t.part}}return U},unproject:function(t,e){var i=this.getWidth(),n=this.getHeight(),r=t.target?this.lp(t):t,o=(r.x-i/2)/i*2,t=-1*(r.y-n/2)/n*2;e=e||0;i=Hs(),r=qu(this),n=Wu(this);Uu(i,r,n),ku(i);i=Qs([o,t,e,1],i);return[i[0]/i[3],i[1]/i[3],i[2]/i[3]]},getDataAt:function(t){t=this.getDataInfoAt(t);return t?t.data:U},getDataInfoAt:function(t,e){return t.target&&(t=this.lp(t)),this._1o.get(dn(t.x,t.y,e),!0)},getDatasInRect:function(t){return this._1o.get(t)},setEditable:function(t){var e=this._editable;this._editable=t,this.fp(Ee,e,t)},isEditable:function(t){return t?!!this._editable&&(!!wn(t)&&(!!t.s("3d.editable")&&(!this._editableFunc||this._editableFunc(t)))):this._editable},isSelectable:function(t){return t.s("3d.selectable")&&this.sm().isSelectable(t)},isMovable:function(t){return(!En(t)||t.getStyle(Jt)===Vt)&&(!!t.s("3d.movable")&&(!this._movableFunc||this._movableFunc(t)))},isSizeEditable:function(t){return!!wn(t)&&(!this._sizeEditableFunc||this._sizeEditableFunc(t))},isRotationEditable:function(t){return!(!wn(t)||!1===t.IRotatable)&&(!this._rotationEditableFunc||this._rotationEditableFunc(t))},handleDelete:function(){this._editable&&this.removeSelection()},zoomIn:function(t){this.setZoom(ja,t)},zoomOut:function(t){this.setZoom(1/ja,t)},setZoom:(J_=new ha,$_=new ha,tv=new ha,ev=new ha,function(t,e){if(1!==t){var i=this;i._14o&&i._14o.stop(!0);var n,r=1/t;J_.copy(i.getCenter()),$_.copy(i.getEye());var o=i._ortho;if(o){if((n=i._orthoWidth)t)&&(this.isOrtho()?(e=this.getOrthoWidth()/2,Math.abs(i[0])<=e&&Math.abs(i[1]*n)<=e):(e=Math.sqrt(i[0]*i[0]+i[1]*i[1]+i[2]*i[2])*Math.tan(this.getFovy()/2),Math.abs(i[1]<=e)&&Math.abs(i[0])<=e*n))},getPVMatrix:function(){var t;return(t=this._18Q)||(t=qu(this),this._18Q=Uu(t,t,Wu(this)),this._18Q._wh=this.getWidth()/2/this.getHeight()),t},getFrustum:(Y_=new fa,Z_=new Ag,K_=new Array(16),function(){for(var t=this.getPVMatrix(),e=!1,i=0;i<16;i++)t[i]!==K_[i]&&(e=!0,K_[i]=t[i]);return e&&Z_.setFromMatrix(Y_.fromArray(t)),Z_}),toViewPosition:function(t){var e=this.getWidth()/2,i=this.getHeight()/2,n=this.getPVMatrix();return{x:e+e*(t=Qs([t[0],t[1],t[2],1],n))[0]/t[3],y:i-i*t[1]/t[3],z:t[2]/t[3]}},getHitPosition:function(t,e,i){var n=this.getWidth(),r=this.getHeight(),o=t.target?this.lp(t):t,a=o.x-n/2,s=o.y-r/2,t=this.getCenterInfo(),o=Wu(this);e=e||[0,0,0],i=i||[0,1,0],a=a/n*t.width,s=-1*s/r*t.height;a=[o[0]*a,o[4]*a,o[8]*a],s=[o[1]*s,o[5]*s,o[9]*s],a=[a[0]+s[0],a[1]+s[1],a[2]+s[2]],s=this.getCenter(),s=zu(this,e,i,[a[0]+s[0],a[1]+s[1],a[2]+s[2]]);return s||[0,0,0]},intersectObject:function(t,e){return this._raycaster.intersectObject(t,e)},intersectObjects:function(t,e,i){return this._raycaster.intersectObjects(t,e,i)},getLineLength:function(t){this.validate();t=this.getData3dUI(t);if(t&&t.getCache){t=t.getCache();if(t)return t[t.length-1].length}return 0},getLineOffset:function(t,e){var i=this.getData3dUI(t);if(i&&i.getCache){var n=i.getCache();if(n){var r=qf(n,e);if(!t.r3)return r;i=t.r3();if(0===i[0]&&0===i[1]&&0===i[2])return r;n=new ha(t.p3()),e=new ha(r.point).sub(n),r=new ha(r.tangent).add(e),t=(new aa).setFromEuler(new pa(i,t.getRotationMode(),!0));return e.applyQuaternion(t),r.applyQuaternion(t),{point:e.add(n),tangent:r.sub(e).normalize()}}}return U},isLabelVisible:function(){return!0},isNoteVisible:function(){return!0},moveCamera:function(t,e,i){var n=this,r=[(r=n.getEye())[0],r[1],r[2]],o=[(o=n.getCenter())[0],o[1],o[2]];if(t=t||r,e=e||o,n._flyAnim&&n._flyAnim.stop(!0),!(i=Rn(i)))return n.setEye(t[0],t[1],t[2]),n.setCenter(e[0],e[1],e[2]),delete n._flyAnim,!0;var a=[t[0]-r[0],t[1]-r[1],t[2]-r[2]],s=[e[0]-o[0],e[1]-o[1],e[2]-o[2]];return i.action=function(t){n.setCenter(o[0]+s[0]*t,o[1]+s[1]*t,o[2]+s[2]*t),n.setEye(r[0]+a[0]*t,r[1]+a[1]*t,r[2]+a[2]*t)},i._37o=function(){delete n._flyAnim},n._flyAnim=rs(i)},flyTo:(N_=new ha,U_=new ha,G_=new ha,H_=new ha,W_=new fa,q_=new Gl.Math.Quaternion,X_=new pa,Q_=new da,function(t,e,i){var n=this;i!==H?e={animation:e,ratio:i}:("boolean"==(h=typeof e)||"object"==h&&e.duration)&&(e={animation:e}),e=e||{},N_.fromArray(n.getEye()),U_.fromArray(n.getCenter());var r,o,a=[],s=e.center,h=e.distance===H;if(s&&G_.fromArray(s),t instanceof Gl.Node)s||G_.fromArray(t.p3()),h&&(Em(a,n,t),r=a.length);else{if(!(t=t||n.dm().getDatas()).length)return;if((h||!s)&&(a=[],t.forEach(function(t){Em(a,n,t)}),!(r=a.length)))return;s||(Q_.setFromPoints(a),G_.copy(Q_.min).add(Q_.max).multiplyScalar(.5))}n.setCenter(G_.x,G_.y,G_.z),H_.subVectors(N_,U_),(e.direction||e.worldDirection)&&(!e.worldDirection&&t instanceof Gl.Node?q_.setFromEuler(X_.set(t.r3(),t.getRotationMode(),!0)):q_.set(0,0,0,1),t=H_.length(),H_.fromArray(e.worldDirection||e.direction).applyQuaternion(q_).setLength(t));var c=0;if(h){var l,u,d,i=e.ratio||.8,f=e.xRatio||i,g=e.yRatio||i;if(n.isOrtho()){var p=-1/0;for(n._eye[0]=H_.x+G_.x,n._eye[1]=H_.y+G_.y,n._eye[2]=H_.z+G_.z,l=qu(n),Uu(l,l,Wu(n)),o=0;o>1);h<=1&&(h=0,t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,n.options.minFilter||t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,n.options.magFilter||t.LINEAR),t.renderbufferStorage(a,t.DEPTH_COMPONENT16,e,i)),r._maxSamplesChecked=!0,r.maxSamples=n.options.samples=h}}else t.renderbufferStorage(a,t.DEPTH_COMPONENT16,e,i);h&&!n._MSAAFbo&&(n._MSAAFbo=t.createFramebuffer(),n._MSAARbO=t.createRenderbuffer()),wu(t,n.frame),t.framebufferTexture2D(s,t.COLOR_ATTACHMENT0,o,n.texture,0),h||t.framebufferRenderbuffer(s,t.DEPTH_ATTACHMENT,a,n.render),Eu(t),h&&(t.bindRenderbuffer(t.RENDERBUFFER,n._MSAARbO),t.renderbufferStorageMultisample(t.RENDERBUFFER,h,t.RGBA8,e,i),wu(t,n._MSAAFbo),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.RENDERBUFFER,n._MSAARbO),t.framebufferRenderbuffer(s,t.DEPTH_ATTACHMENT,a,n.render),Eu(t)),$u(t,U),t.bindRenderbuffer(a,U),n.width=e,n.height=i}},toCanvas:function(){var t=this.gv.getGL();wu(t,this.frame);var e=this.width,i=this.height,n=new Uint8Array(4*e*i);t.readPixels(0,0,e,i,t.RGBA,t.UNSIGNED_BYTE,n),Eu(t);var r=d.createElement("canvas");r.width=e,r.height=i;t=r.getContext("2d"),i=t.createImageData(e,i);return i.data.set(n),t.putImageData(i,0,0),r}}),Ag=Bd.Interactor=function(t){this.gv=this.g3d=t},zd("Interactor",L,{ms_listener:1,getView:function(){return this.gv.getView()},setUp:function(){this.addListeners()},tearDown:function(){this.removeListeners()}}),Pg=Bd.DefaultInteractor=function(t){Bn(Pg,this,[t])},zd("DefaultInteractor",Ag,{getDataInfoAt:function(t,e){var i=this.gv,n=i.getDataInfoAt(t);if(!i.isBlockSelectable()||!n||!n.data)return n;if(!e&&i.isSelected(n.data))return n;for(var r=n.data;(r=r.getParent())&&r instanceof Gl.Block&&i.isSelectable(r);){var o=i.isSelected(r);if(o&&e)break;if(n={data:r,part:n},o&&!e)break}return n},handle_contextmenu:function(t){qa(t)},handle_mousewheel:function(t){this.gv.handleScroll(t,t.wheelDelta/40)},handle_DOMMouseScroll:function(t){2===t.axis&&this.gv.handleScroll(t,-t.detail)},handle_keydown:function(t){this.gv.handleKeyDown(t)},handle_mousedown:function(t){this.handle_touchstart(t)},handle_touchstart:function(t){qa(t);var e=this,i=e.gv,n=cs(t),r=e.getDataInfoAt(t),o=r?r.data:U,a=r?r.part:U,s=i.sm(),h=Pr(t),r=ds(t);i.setFocus(t)&&(e._62O=U,e._57I=U,e.pendingClickThrough=U,e.__lastClientPoint__=_s(t),o?ps(t)?s.co(o)?s.rs(o):s.as(o):s.co(o)?o instanceof _l&&o.isClickThroughEnabled()&&cs(t)&&(e.pendingClickThrough=_s(t)):s.ss(o):n&&(ps(t)?i.isRectSelectable()&&(e._62O=oe):e._57I=_s(t)),e._31Q&&(ts(e._31Q),delete e._31Q,delete e._32Q),e._62O||(i.isFirstPersonMode()&&(gs(t)||ls(t)||2X(y)?v:y,o===Wg?t.setRotationX(t.getRotationX()+e):o===qg?t.setRotationY(t.getRotationY()+e):o===Xg&&t.setRotationZ(t.getRotationZ()+e))});else if("move"===o||Kg[o]){if(o===Qg||o===Yg||o===Zg)r._87O||s.beginTransaction(),r.fi({kind:r._87O?"betweenEditScale":"beginEditScale",event:e}),r._87O=1;else{if(!r._moving){if(_e.touchRotateThreshold?(n.thetaStarted=!0,n.theta=u):h=0),p=P*(o+s)/2/i.getHeight(),c=0,(d=n.phi)==U?d=n.phi=p:(c=p-d,n.phiStarted||Math.abs(c)>e.touchRotateThreshold?(n.phiStarted=!0,n.phi=p):c=0),_=Math.sqrt(f.x*f.x+f.y*f.y),(u=n.vlen)?(d=r-g.x,p=o-g.y,f=a-g.x,g=s-g.y,p=Math.sqrt(d*d+p*p),f=Math.sqrt(f*f+g*g),g=u/2,(p=e._sign2(p-g))*(g=e._sign2(f-g))<0||0===p&&0===g?(l=1,n.vlen=_):(l=l||_/u,n.scaleStarted||Math.abs(l-1)>e.touchScaleThreshold?(n.vlen=_,n.scaleStarted=!0):l=1)):(u=n.vlen=_,l=1),1!==l&&i.setZoom(l),(c||h)&&e.rotate(t,h,-c),n.lastCenter={x:(a+r)/2,y:(s+o)/2}):n.pan?e.pan(t,v,y):(n=i.getWidth(),i=i.getHeight(),n&&i&&(n=-J*v/n,i=-J*y/i,e.rotate(t,n,i))))}},_sign2:function(t){return Math.abs(t)>16)/255,(255&t>>8)/255,(255&t)/255,(255&t>>24)/255]},zs(Vg=function(t){this.gv=t,this.gv.pickColorMap={_pickIdUsed:1e3}},L,{_iv:!0,iv:function(){this._iv=!0},get:function(t,e){this.validate();var i=this.gv.getGL();if(!i)return U;var n,r,o=this._resolution,a=Math.round(t.x*o),s=Math.ceil(t.width*o),h=Math.ceil(t.height*o),o=this.height-Math.round(t.y*o)-h,c=k(s/2),l=new Uint8Array(4*s*h),u=0,d=l.length,f=e?U:new Lh,g=e?U:{};if(wu(i,this.frame),i.readPixels(a,o,s,h,i.RGBA,i.UNSIGNED_BYTE,l),Eu(i),e){for(;u<=c;u++)for(var p=c-u,_=c+u,v=p;v<=_;v++)for(var y=p;y<=_;y++)if((v===p||v===_||y===p||y===_)&&(n=this.info(l,4*(v*s+y))))return n}else for(;ul||(n=s.intersectObject(e,t))&&((r=c.distanceToSquared(n.world))S)continue;E=!1}else b[x+"boundingBox"]=w=new Gl.Math.Box3,E=!0;for(f=0,g=_?_.length:p.length/3;f>2)-c,(1&d>>1)-l,(1&d)-u],r),e=i.toViewPosition(e),isNaN(e.x)||isNaN(e.y))return;o=Math.min(o,e.x),s=Math.max(s,e.x),a=Math.min(a,e.y),h=Math.max(h,e.y)}n={x:o,y:a,w:s-o,h:h-a};this._rectOverlapping=i.overlappingBox.isOverlapping(t,n)}else this._rectOverlapping&&(this._rectOverlapping=H)},getVectorDynamicSize:function(){var t=this.s("shape3d"),e=this.data;if("billboard"===t||"plane"===t||(i=e._currentCubeElementId)!=U){var i,n,r,o=this.gv,a=$s(e,o.getMat(e)),s=e.getAnchor3d(),h=.5-s.x,c=.5-s.y,l=.5-s.z,u=Math.min(this.s("vector.dynamic.maxsize"),o._glCapabilities.maxTextureSize)/o.getDevicePixelRatio(),s=function(t,e){t[0]+=h,t[1]+=c,t[2]+=l,e[0]+=h,e[1]+=c,e[2]+=l;var i=o.toViewPosition(Xs(t,a)),t=o.toViewPosition(Xs(e,a)),e=i.x-t.x,t=i.y-t.y;return Math.min(u,Math.sqrt(e*e+t*t))};return"billboard"===t?(n=s([-.5,0,0],[.5,0,0]),r=s([0,-.5,0],[0,.5,0])):"plane"===t?(n=s([-.5,0,0],[.5,0,0]),r=s([0,0,-.5],[0,0,.5])):e._currentCubeElementId!=U&&(t=3*bf[i+1],e=3*bf[i],i=3*bf[i+2],n=s([mf[t],mf[1+t],mf[2+t]],[mf[i],mf[1+i],mf[2+i]]),r=s([mf[t],mf[1+t],mf[2+t]],[mf[e],mf[1+e],mf[2+e]])),[n,r]}},vf:function(t,e){if(this.gv.getFaceVisible(this.data,t)){t=Rd(this,t);t.mat&&(this.faceMat=!0);var i=t.uv;if(i)for(var n=(n=this._cubeUvs)||(this._cubeUvs=new js([0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0])),r=0;r<8;r++)n[e+r]=i[r];return t}},_billboardInView:(a_=[-.5,-.5,0,-.5,.5,0,.5,-.5,0,.5,.5,0],s_=[-.5,0,-.5,-.5,0,.5,.5,0,-.5,.5,0,.5],h_=new da,c_=new ha,l_=new fa,function(t){if(!this.mat)return!0;var e=this.gv.getFrustum(),i="billboard"===t?a_:s_;h_.makeEmpty(),l_.fromArray(this.mat);for(var n=0,r=i.length;n 1. || tUv.y > 1.) discard;","\tgl_FragColor = vec4( blendOverlay( base.rgb, color ), base.a );","}"].join("\n")},zs(ep=function(t,e){Bn(ep,this,[t,e])},tp,{_80o:function(){}}),zs(ip=function(t,e){Bn(ip,this,[t,e])},$g,{_25Q:1,validate:function(t){var e=this;if(!e.s("geometry.cache")||!e.info){var i=e.gv,n=e.data,r=e.s,o=r("edge.width"),a=n._40I,s=n._41I;if(e.shapeModel=e.info=U,a&&s){var h,c,l,u,d,f,g=n.isLooped(),p=r(Jt),_=G.getEdgeType(p);if(_){var v=_(n,pc(e,i,n,g,p),i,e._19Q);if(!v.points||v.points.isEmpty())return;u=e.info={},d=v.segments,f=(l=v.points).size();for(var y=a.getElevation(),m=s.getElevation(),b=0;bp+s!nf!{njbTuu5o!jnppQe`fmmhW!j*f!xfNwbjuusdjfyqj>p!o^N!b4u!s]j^y!<3\v!!]vyojjsgupbsNno!pnjbuud5f!kwpjsfqx!N)b!u>s!jfywt!jfu{jjpToup!mfp{sjq!jodpljDupjmtppsQ<`\vm\vh!!v\vob!uo!psjfutjptmpvQuwjnp!o\v<<\v*!!v1o/j2g!p-senf!ncspppgmt!ovbtsfuT!j){5fdBfsws!b>z!!!jetfQnfssptgqtfodbusjuw!f4Ndbfuws!j\vy~)!!\vnn!]s!p3m!p^D]w!!4\v!|^!!*>s>p!m.p!D2f/t1v<)\v!!g~j\v!\vf!twmpfj!e\v!~n!b\vjq!jsdplmjpoDhw*!!\v|^#!\v\v!~q\vs~f!d\vjb!us!!esjpgmgpvDthfbu>z!f+d!usbpcmmpfDl!jsophm!p%D%f!tvvtgfgDjpem!p\vs|*!!f|t\vm!fe!j~g!g\vvp!!w-f{dz5y)/!swpDmp",zs(sp=function(t,e){Bn(sp,this,[t,e]),this._needRecoverPosition=!0},$g,{_25Q:1,validate:function(t){var e=this,i=e.data,n=e.s,r=i.getPoints(),o=r.size();e.dispatchBoundingBoxChanged();var a=i.p3(),s=e.mat=Hs();ju(s,a),fl(s,i.getFinalRotation3d(),i.getRotationMode());var h,c=i.getScale3d(),l=i._dynamicScale3d;l&&(c[0]*=l[0],c[1]*=l[1],c[2]*=l[2]),Nu(s,c),ju(s,Us(a)),e.s("geometry.cache")&&e.shapeModel||(e.shapeModel=e.info=U,!(1w!fwdV3w!\vw!!.w!f1d/53)!q+p!ty/^#~q\vsp!ob!/isjphmipqD!hgbmspGb`umw!Vswpn,b!ymcpmdv\vs<<*\v!v5osjvgmpcsgnp!eg!m+p!b*u!!ubdqffsssupvdsufdp,b!um!pgdp\vdy!/3w6V6w/!!-0s!p3m6p7D/ug,s!bmdpudj\vp:!3w/f1d.4!))!33d6f7w/!!)+!!,3!6z7y//!w+V!w3!6-7s/p-m!p3D6u7!/)!E+3!f3s6v7u/y-f!u3!6>7,/!!m*pf!qVtobq!b+d!l*E!p5x/o1t.d!b-m1f/!10!!)w3fddf5w)!!)Q!b,d!lzGyb/dwuVpws!t--s!p2m/p!D*ul,S!HmCpBdU\vpu,!!jmop!dw\vfj,p!om!p*d!\v*<<*\v!~5\vsgvmmpcbgup!eq!f+s!t*q!fuddufjswsfpEdfuqdufiqUtpbW!j+f!x*[!):!3d/p1o!t-u:!3j/o1!!g)m3pdbfuw!!j)o!w,D!mzjyq/[w-V!wd!p-ostpum!pjDou!!g)mEp3bfus!voufybfsu-!!>d,p!omtpud!\vj\v,g!mmppbdu\v!-,!!gmbpsdD\vm/!wwVfwd!3-)s!p2m/p1D-u!!b)tEq3ffdsuv!u*y!,)!vmtpfdE\vfp!dhufdufWqjtfbx![+)!!*h!f:u3E/f1q!u-i:)3!/w1V.w!!)*3!d*fm!p)D!ug!p)dEv3tf!s,v!uwyjffux![>!,*!c!gwpfed!3+!!)*!!dumdbfnsqs)p!dgubddfuqptsb!!++!!b*q!f5s/u1v.s!f--1!/.1n!b)y3cdmfvws!-)!!n,b!yzcym/vwsV!w*!!-*ss,!!>m!pwdf\vd<3*!!)8!sdvmmbcngqp)e!!u+f!y*u!vusdff3sEs)p!duuEdffqqutib-!!+w!f*d!3:)3w/V1w./!y--:!32//11!!).3!dwfVww!/)z!*,!!*z/yb/!w+V!wb!q-fsspumvpsDfu-!!).En3bfyscvmuvysf-u!!n>b,y!cmmpvds\v!<**!!*8d!uedpfgqctmbv!s+!!+*!!11//:1!!zeyp/gwcVmwv!s-!s+p!m1p/D8us,5!!m>p!de\vpu!dwffqdt5b)!!+1!/*1!!:*31!!u)f3ydufvws!f)3!E,)!!zuyD/pwmVpws!--!swpVmwp/Dyuz!!)*E<3\vfdspvmu!y,f>u!!u>f,y!umvpsdf\v3v!uuyffyuu!v>s,f!3mEp)d!\vu3!fusfvyuuyvfsuf!3>E,)!!mupDdp\vmE!3uffsyvuuvysffu3!E>),!!umDppdm\vp)!Eu3ffysuvvusyff3uE!)>!,u!Dmppmdp\vs<-*!!w:Vswv/myczg!p,e!!)+!!w*f!du3d)f!s1s/p5d1u-d!f1q/t1b!!*+!!+*!!b8t4q/f1d.u!d-p6s2s/f1d.u!!)*3!d+f!we!p)g!c,m!vzsy!/*wp!Duuf!y)uEv3sffs3vEu)y!fuuD!p>m,p!sm-p!dw\vVm!puDfuy!u)vEs3ff3sEv)u!yufDup!m>p,s!-m!pwdV\vwp!mupfDyuu!v)sEf33fEs)v!uuyDfpum!p>s,-!!mwpVdw\v/m!puDfuy!u)vEs3ff3sEv)u!yufDup!m>p,s!-m!pwdV\vws!pumfpyDuuv!s)fE33Ef)s!vuuDypfmup!s>-,!!wmVpwd/\vy-!supfmypuDvus!f)3EE3)f!suvDupymfpus!->!,w!Vmwp/dy\vz!!-usfpymupvDsuf!3)EE)3!fusDvpumypfsu-!!>w,V!wm/pydz\v!<,*!!)s!vwmfcdg3p)e!!1+/!4*8!-u!d1f/s2s6p!d*u!d+f!qbttbq!f+d!u*d!p1s/s1f!d-u5!/*1!.+!!)e3pdgfcwm!v)s!!,*!-!supfmypuDvus!f)3E",(gp=Gl.graph3d.PostProcessing.HueSaturation=function(r){function o(){u=!0;var t=r.getGL();c=new Bd.RenderTarget(r,t),h=r._postProcessing.createShader(t,gp.hueSaturationShader),a=Zf.Buffer.createIndexBuffer(t,new Uint16Array([0,2,1,1,2,3])),s=Zf.Buffer.createVertexBuffer(t,new Float32Array([0,0,1,0,0,1,1,1]))}var a,s,h,c,l=!1,u=!1,d=[],f=[],g=[];this.serializeProperties={hue:[0,0,0,0,0,0,0],saturation:[0,0,0,0,0,0,0],lightness:[0,0,0,0,0,0,0]},this.resetProperties=function(){var t,e=this.serializeProperties;for(t in e)this[t]=e[t]},this.resetProperties(),L.defineProperties(this,{enable:{get:function(){return l},set:function(t){!!l!=!!t&&((l=t)&&!u&&o(),r.iv())}},hue:{get:function(){return d},set:function(t){if(d!==t&&7===t.length){for(var e=0;e<7;e++)d[e]=t[e]/180;r.iv()}}},saturation:{get:function(){return f},set:function(t){if(f!==t&&7===t.length){for(var e=0;e<7;e++)f[e]=t[e]/100;r.iv()}}},lightness:{get:function(){return g},set:function(t){if(g!==t&&7===t.length){for(var e=0;e<7;e++)g[e]=t[e]/100;r.iv()}}}}),this._42=function(t,e){if(l){u||o();var i=e.width,n=e.height;if(i&&n){c.setSize(t,i,n),wu(t,c.frame),r.setViewport(t,0,0,c.width,c.height),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),h.bind(),t.activeTexture(t.TEXTURE0+0),$u(t,e.texture);e=h.uniforms;return e.image=0,e.hue=d,e.saturation=f,e.lightness=g,a.upload(),s.upload(),h.attributes.pos.pointer(s),t.drawElements(t.TRIANGLES,6,t.UNSIGNED_SHORT,0),$u(t,null),Eu(t),c}}}}).hueSaturationShader="!!\vb~u!u\vsf!dw3V!ww!V\vw<<*\v1\v/!2w!p-j1e/!1n!b-j1o/)2w!p,j!e1*/!3|!\v+!!hzm/`tQppqt.j!u-j1p/o2!!>.!!w1f/d35!)+q!pyt/^#!!\vq~s!f\vdb!nsqpmmfpsD3hEb!sjGn`bmhhf!<\v\vf!tmtt]i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\v!!-ssh)co!j>n!!w>f!do4j)Nidt!mu/b{p*m!!|c\v!!ugbmppmbgu!!\vg<3hj!gh!!)uibtpmm/g{!!\v=\v!!sg!3u!b>p!migt!m\v/<{1!/+1!!)>2!/m1!!u,b!pimtgm!/\vz<*1m!ttf!\vu!bgp3m!g>!!\vi!!iit!mu/bzp!m.g!!i\vt|m!/*zd!!+4!diftwm)/m{t~!!3\v/<1c!h+s!!iotsmv/u{f!s.!!\vg~3!<\v\v<\v*!*s1h/c4/0s1!/>2!)i!v.f!3ys/hmct)ig!2--3!gg!3--2!gi)tcmh/sy3!f,v!i)!2>/!1c0/4c/h1s*!*\v<<\v*!ys/hmct/ih!!->3!gi!v-f23gs)hc",(pp=Gl.graph3d.PostProcessing.Blur=function(a){function s(){f=!0;var t=a.getGL();d=new Bd.RenderTarget(a,t),l=a._postProcessing.createShader(t,pp.hBlurShader),u=a._postProcessing.createShader(t,pp.vBlurShader),h=Zf.Buffer.createIndexBuffer(t,new Uint16Array([0,2,1,1,2,3])),c=Zf.Buffer.createVertexBuffer(t,new Float32Array([0,0,1,0,0,1,1,1]))}var h,c,l,u,d,i,n=this,r=!1,f=!1;this.serializeProperties={value:0},this.resetProperties=function(){this.value=0},L.defineProperties(n,{enable:{get:function(){return r},set:function(t){!!r!=!!t&&((r=t)&&!f&&s(),a.iv())}},value:{get:function(){return i},set:function(t){i!==t&&(i=t,a.iv())}}}),this.resetProperties(),n._42=function(t,e){return r?n.drawImpl(t,e,i):void 0},n.drawImpl=function(t,e,i,n){f||s();var r=e.width,o=e.height;if(r&&o){n&&(r*=n,o*=n),d.setSize(t,r,o),wu(t,d.frame),a.setViewport(t,0,0,d.width,d.height),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),l.bind(),t.activeTexture(t.TEXTURE0+0),$u(t,e.texture);n=l.uniforms;return n.image=0,n.value=i/r,h.upload(),c.upload(),l.attributes.pos.pointer(c),t.drawElements(t.TRIANGLES,6,t.UNSIGNED_SHORT,0),Eu(t),wu(t,e.frame),a.setViewport(t,0,0,e.width,e.height),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),u.bind(),t.activeTexture(t.TEXTURE0+0),$u(t,d.texture),(n=u.uniforms).image=0,n.value=i/o,h.upload(),c.upload(),u.attributes.pos.pointer(c),t.drawElements(t.TRIANGLES,6,t.UNSIGNED_SHORT,0),Eu(t),$u(t,null),d}}}).hBlurShader="!!\vb~u!u\vsf!dw3V!ww!V\vw<<*\v1\v/!2w!p-j1e/!1n!b-j1o/)2w!p,j!e1*/!3|!\v+!!hzm/`tQppqt.j!u-j1p/o2!!>.!!w1f/d35!)+q!pyt/^#!!\vq~s!f\vd!!isjphmipqD!hgbmspGb`um\v,!!wnpvjte!!\vn!!-wffvdm5b)w!!1+/!11!/*4)!3udffywu!v-sffh3bEn)j!!j)nEb3hffs-v!uwyffdu3!)>!,w!Vnwv/ty!!\v.w!!u)f3ydufvws!f-3fEh)b!njjn!b)hEf3-f!swvfudy3f)u!!w>V,w!/nyv!t.!!\v4w!!u)f3ydufvws!f-3fEh)b!njjn!b)hEf3-f!swvfudy3f)u!!w>V,w!/nyv!t.!!\v3)!Eu3ffysuvvusyff3uE!)>!,j!nnbvhtf!-\v!=La?(delete t._58I,t.iv()):w(function(){t._94O()},La))},t._93I=function(){var t,e,i,n,r,o,a,s=this,h=s._27I;s._58I||!s._autoHideScrollBar?(h||or(s._79O,h=s._27I=tr()),t=(a=s._29I).height,e=s._59I,i=s.getScrollBarSize(),n=a.width-i-2,r=t*(-s.ty()/e),o=t*(t/e),a=h.style,t=La?(delete t._95O,t.iv()):w(function(){t._94I()},La))},t._92I=function(){var t,e,i,n,r,o,a,s=this,h=s._28I;s._95O||!s._autoHideScrollBar?(h||or(s._79O,h=s._28I=tr()),t=(a=s._29I).width,e=s._91I,i=s.getScrollBarSize(),n=a.height-i-2,r=t*(-s.tx()/e),o=t*(t/e),a=h.style,t=t.size()?U:t.get(e)},t.onDataDoubleClicked=function(){},t.onDataClicked=function(){},t.adjustTranslateX=function(){return 0},t.adjustTranslateY=function(t){var e=this.getHeight()-this._59I;return te.y+i?this.ty(-r+i-n):ri&&(t._14I=i),t._99I&&o&&t._99I(),(t._40o()||t._41o())&&(t._59I+=t.getScrollBarSize(),t._99I&&o&&(t._91I+=t.getScrollBarSize())),gr(n,t.tx(),t.ty(),1),o?t._12I(n):t._24I&&t._13I(n),t._93I(),t._92I(),n.restore(),t._32I=t._24I=t._96I=U,e&&(t.scrollToIndex(t.getRowIndex(e)),delete t._23I),t.tx(t.tx()),t.ty(t.ty())},t.canHandleSelectMode=function(){return!0}},_a._48o=function(t){t._rootVisible=!0,t._rootData=U,t._35o=function(){this._expandMap={},this._levelMap={}},t.validateModel=function(){var t=this,e=t._rootData;t._rows.clear(),t._levelMap={},t._rowMap={},t._currentLevel=0,e?t._rootVisible?t.isVisible(e)&&t.buildData(e):t.buildChildren(e):t.buildChildren(),delete t._currentLevel},t.buildData=function(t){var e=t._id,i=this._rows;this._rowMap[e]=i.size(),i.add(t),this._levelMap[e]=this._currentLevel,this.isExpanded(t)&&(this._currentLevel++,this.buildChildren(t),this._currentLevel--)},t.buildChildren=function(t){var e=this,i=t?t._children:e._dataModel._roots,n=e.getCurrentSortFunc();n&&e.isChildrenSortable(t)?i.toList(e.isVisible,e).sort(n).each(e.buildData,e):i.each(function(t){e.isVisible(t)&&e.buildData(t)})},t.getLevel=function(t){return this._levelMap[t._id]},t.getToggleIcon=function(t){var e=this._loader,i=this._collapseIcon;return e&&!e.isLoaded(t)?i:t.hasChildren()?this.isExpanded(t)?this._expandIcon:i:U},t.isCheckMode=function(){return this._checkMode!=U},t.isChildrenSortable=function(){return!0},t.handleDataModelChange=function(t){t.kind===Ct?delete this._expandMap[t.data._id]:t.kind===Mt&&(this._expandMap={}),this.ivm()},t.toggle=function(t){this.isExpanded(t)?this.collapse(t):this.expand(t)},t.isExpanded=function(t){return 1===this._expandMap[t._id]},t.expand=function(t){var e=this._loader;this.isExpanded(t)||(e&&!e.isLoaded(t)&&e.load(t),this._expandMap[t._id]=1,this.ivm(),this.onExpanded(t))},t.onExpanded=function(){},t.collapse=function(t){this.isExpanded(t)&&(delete this._expandMap[t._id],this.ivm(),this.onCollapsed(t))},t.onCollapsed=function(){},t.expandAll=function(t){var e;t?(this.expand(t),t.eachChild(function(t){this.expandAll(t)},this)):((e=this)._dataModel.each(function(t){t.hasChildren()&&(e._expandMap[t._id]=1)}),e.ivm())},t.collapseAll=function(){this._expandMap={},this.ivm()},t.makeVisible=function(t){if(t)if(!this._rootData||t.isDescendantOf(this._rootData)){for(var e=t._parent;e;)this.expand(e),e=e._parent;this._23I=t,this.iv()}},t.checkData=function(t){var e,i=this._checkMode,n=this.sm(),r=n.co(t);if(!n.sg()||!r){if(this._32o=1,i===it)r?n.rs(t):n.as(t);else if(i===Ae)(e=new Lh(t)).addAll(t._children);else if("descendant"===i)e=new Lh,xp(t,e);else if("all"===i&&(e=new Lh,xp(t,e),!r))for(var o=t._parent;o;)e.add(o),o=o._parent;e&&(r?n.rs(e):n.as(e)),delete this._32o}},t.drawTree=function(t,e,i,n,r,o,a){var s=this,h=s._indent,c=s._levelMap[e._id],l=s.getIconWidth(e),u=Qa(s.getToggleIcon(e));u?(Za(t,u,(n+=h*c)+h/2,r+a/2,e,s),n+=h):n+=h*(c+1),s._checkMode&&(Za(t,s.getCheckIcon(e),n+h/2,r+a/2,e,s),n+=h),s.drawIcon(t,e,n,r,l,a),s.drawLabel(t,e,n+l,r,a)}},_a._14Q=function(t){t.getIcon=function(t){return t.getIcon()},t.getIconWidth=function(t){return this.getIcon(t)?this._indent:0},t.drawIcon=function(t,e,i,n,r,o){var a,s;r&&(a=this.getBodyColor(e),(s=Qa(this.getIcon(e),a))&&(o-=this.isRowLineVisible()?1:0,Ka(t,s,qe,i,n,r,o,e,this,a),bo(t,this.getBorderColor(e),i,n,r,o)))},t.drawLabel=function(t,e,i,n,r){ss(t,this.getLabel(e),this.getLabelFont(e),this.getLabelColor(e),i,n,0,r)}},_a._50o=function(t){t._98I=function(){var t=this._39o=new Nh;this._60I=new Lh,t.mm(this._17o,this),t.md(this._18o,this),t.mh(this._19o,this)},t.setColumns=function(t){this._39o.clear(),this.addColumns(t)},t.addColumns=function(t){var i=this._39o;t.forEach(function(t){var e;t instanceof Mp||(e=ns(t.className),t=Wa(e||Mp,t)),i.add(t)})},t.onColumnClicked=function(){},t.onCheckColumnClicked=function(){},t._3Q=function(t){for(var e,i=0,n=this._60I,r=n.size();i=n.x&&r.add({column:t,startX:i._91I}),i._91I=e)})},t.drawData=function(n,r,o){var a=this,s=a._rowHeight,h=s*o,c=a.isSelected(r),t=a._29I,e=t.x,t=t.width;a.drawRowBackground(n,r,c,e,h,t,s),a._60I.each(function(t){var e=t.column,i=t.startX,t=e.getWidth();0=f&&n.xs){n.ty(s-E.endY);break}}}n.ty(n.ty())}else if(d||f){n._9o&&(i.x=0,wr(n._8o.getView(),i)),rr(t,_,s);v=fr(t),y=0;if(gr(v,0,n.ty(),1),v.clearRect(0,0,_,s),c.clear(),o._roots.each(function(t){var e;t.isVisible()&&(p&&p.tab===t||(e=n.drawTab(v,t,0,y,_,h,n._tabBackground)),c.add({_75o:e,tab:t,startY:y,endY:y+h,height:h}),y+=h+l)}),n._23Q=N(0,y-l),p&&(x=p.position,n.drawTab(v,p.tab,0,p.startY,_,p.height,n._moveBackground),lo(v,0,x,_,1,n._insertColor)),v.restore(),n._selectionChanged){n._selectionChanged=!1;for(m=n.ty(),b=0;bs){n.ty(s-E.endY);break}}}n.ty(n.ty())}else{n._9o&&(i.y=0,wr(n._8o.getView(),i)),rr(t,a,h);var x,v=fr(t),w=0;if(gr(v,n.tx(),0,1),v.clearRect(0,0,a,h),c.clear(),o._roots.each(function(t){var e,i;t.isVisible()&&(i=n.getTabWidth(t),p&&p.tab===t||(e=n.drawTab(v,t,w,0,i,h,n._tabBackground)),c.add({_75o:e,tab:t,startX:w,endX:w+i,width:i}),w+=i+l)}),n._64I=N(0,w-l),p&&(x=p.position,n.drawTab(v,p.tab,p.startX,0,p.width,h,n._moveBackground),qn(v,n._insertColor,x,0,h)),v.restore(),n._selectionChanged){n._selectionChanged=!1;for(var E,T=n.tx(),b=0;ba){n.tx(a-E.endX);break}}}n.tx(n.tx())}for(var S=[],I=r.children,b=0;b=t.startX&&n<=e&&s._7Q({tab:h.tab,startX:h.startX+r,width:h.width,front:i,insertTab:t.tab,position:i?N(0,t.startX-a):q(s._64I,e+a)})}))):(r=_s(t).y-e.y,!e._25o&&!e.moving&&2=t.startY&&o<=e&&s._7Q({tab:h.tab,startY:h.startY+r,height:h.height,front:i,insertTab:t.tab,position:i?N(0,t.startY-a):q(s._23Q,e+a)})})))},handleWindowMouseUp:function(t){this.handleWindowTouchEnd(t)},handleWindowTouchEnd:function(){var t,e,i,n,r=this,o=r.tv,a=o._tabPosition,s=o.getTabModel(),h=s._roots,c=r._73o;r.moving?((t=o._23o)&&t.insertTab!==t.tab&&(e=t.tab,i=h.remove(e),0<=(n=h.indexOf(t.insertTab))&&(t.front||n++,n<=h.size()&&(h.add(e,n),s._38I(e,i,n)))),o._7Q(U),delete r.moving):!r._25o&&c&&(e=c.tab,(n=r._74o)&&n.tab!==e||(!e.isDisabled()&&xs(c._75o,r.lp)?(c=function(){var t=h.indexOf(e);s.remove(e),o.onTabClosed(e,t)},o.onTabClosing(e,c)&&c()):e.isDisabled()||o._8o===e||s.sm().ss(e))),r._25o=r._73o=r._74o=a===ct||a===lt?r.x=r.lp=r.tx=U:r.y=r.lp=r.ty=U}}),Sp.PropertyView=function(t){var e=this;e._view=$n(1,e),e._canvas=er(e._view),or(e._view,e._79O=tr()),e._rows=new Lh,e._28o=new Lh,e._26o={},e._26Q={};var i=e._propertyModel=new Nh,n=e.ivm;i.mm(n,e),i.md(n,e),i.mh(n,e),e.dm(t||new Nh),new Dp(e)},Ip("PropertyView",L,{ms_ac:[qt,Xt,Wt,Ee,Te,"categorizable",de,we,ye,me,be,le,ue,ce,"selectRowIndex",se,"background",fe,ve,pe,_e,ge],ms_v:1,ms_dm:1,ms_fire:1,ms_sm:1,_49o:1,ms_txy:1,ms_lp:1,ms_vs:1,_45o:1,_47o:1,ms_tip:1,_29I:Ji,_59I:0,_9I:0,_selectRowIndex:-1,_editable:!0,_batchEditable:!0,_categorizable:!0,_indent:Pa,_background:G.propertyViewBackground,_expandIcon:G.propertyViewExpandIcon,_collapseIcon:G.propertyViewCollapseIcon,_scrollBarColor:za,_scrollBarSize:Va,_autoHideScrollBar:xa,_selectBackground:G.propertyViewSelectBackground,_rowHeight:Da,_rowLineVisible:G.propertyViewRowLineVisible,_rowLineColor:G.propertyViewRowLineColor,_10I:.5,_columnLineVisible:G.propertyViewColumnLineVisible,_columnLineColor:G.propertyViewColumnLineColor,_labelColor:G.propertyViewLabelColor,_labelSelectColor:G.propertyViewLabelSelectColor,_labelFont:G.propertyViewLabelFont,getRows:function(){return this._rows},getColumnPosition:function(){return this._10I},setColumnPosition:function(t){t<0&&(t=0),1c&&(t._14I=c);var d=fr(e),f=t._background;gr(d,0,-r,1),d.beginPath(),d.rect(0,r,i,n),d.clip(),d.clearRect(0,r,i,n),t._93db(d),f&&lo(d,0,0,a,u,f);for(var g=t._31I;gl.y+l.height&&(c=s.y+r-l.y-l.height),c&&(e.ty(e.ty()-c),h.y-=c),e.beginEditing({data:o.data,property:a,value:e.getValue(o.data,a),event:t,rect:s,editorRect:h,view:e}))),e.setSelectRowIndex(n)),this.clear()},handleWindowMouseMove:function(t){this.handleWindowTouchMove(t)},handleWindowTouchMove:function(t){var e,i=this.pv,n=this.ty,r=this.cp,o=_s(t),a=this._62O;"p"===a?i.setTranslateY(n+o.y-r.y):"c"===a?16<(e=i.getWidth()-i._indent)&&((t=this.p-(r.x-o.x)/e)<(e=16/e)&&(t=e),1-e=r.startX&&oo.startX&&no.startX&&n