1 |
- !function(t){var e=this.webpackHotUpdate;this.webpackHotUpdate=function(t,n){!function(t,e){if(!v[t]||!y[t])return;for(var n in y[t]=!1,e)Object.prototype.hasOwnProperty.call(e,n)&&(l[n]=e[n]);0==--h&&0===p&&w()}(t,n),e&&e(t,n)};var n,i=!0,r="6df4d029c444098820b0",o={},g=[],A=[];function s(t){var e=O[t];if(!e)return S;var i=function(i){return e.hot.active?(O[i]?-1===O[i].parents.indexOf(t)&&O[i].parents.push(t):(g=[t],n=i),-1===e.children.indexOf(i)&&e.children.push(i)):(console.warn("[HMR] unexpected require("+i+") from disposed module "+t),g=[]),S(i)},r=function(t){return{configurable:!0,enumerable:!0,get:function(){return S[t]},set:function(e){S[t]=e}}};for(var o in S)Object.prototype.hasOwnProperty.call(S,o)&&"e"!==o&&"t"!==o&&Object.defineProperty(i,o,r(o));return i.e=function(t){return"ready"===a&&u("prepare"),p++,S.e(t).then(e,(function(t){throw e(),t}));function e(){p--,"prepare"===a&&(d[t]||x(t),0===p&&0===h&&w())}},i.t=function(t,e){return 1&e&&(t=i(t)),S.t(t,-2&e)},i}function C(t){var e={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],_main:n!==t,active:!0,accept:function(t,n){if(void 0===t)e._selfAccepted=!0;else if("function"==typeof t)e._selfAccepted=t;else if("object"==typeof t)for(var i=0;i<t.length;i++)e._acceptedDependencies[t[i]]=n||function(){};else e._acceptedDependencies[t]=n||function(){}},decline:function(t){if(void 0===t)e._selfDeclined=!0;else if("object"==typeof t)for(var n=0;n<t.length;n++)e._declinedDependencies[t[n]]=!0;else e._declinedDependencies[t]=!0},dispose:function(t){e._disposeHandlers.push(t)},addDisposeHandler:function(t){e._disposeHandlers.push(t)},removeDisposeHandler:function(t){var n=e._disposeHandlers.indexOf(t);n>=0&&e._disposeHandlers.splice(n,1)},check:b,apply:P,status:function(t){if(!t)return a;I.push(t)},addStatusHandler:function(t){I.push(t)},removeStatusHandler:function(t){var e=I.indexOf(t);e>=0&&I.splice(e,1)},data:o[t]};return n=void 0,e}var I=[],a="idle";function u(t){a=t;for(var e=0;e<I.length;e++)I[e].call(null,t)}var c,l,f,h=0,p=0,d={},y={},v={};function m(t){return+t+""===t?+t:t}function b(t){if("idle"!==a)throw new Error("check() is only allowed in idle status");return i=t,u("check"),(e=1e4,e=e||1e4,new Promise((function(t,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var i=new XMLHttpRequest,o=S.p+""+r+".hot-update.json";i.open("GET",o,!0),i.timeout=e,i.send(null)}catch(t){return n(t)}i.onreadystatechange=function(){if(4===i.readyState)if(0===i.status)n(new Error("Manifest request to "+o+" timed out."));else if(404===i.status)t();else if(200!==i.status&&304!==i.status)n(new Error("Manifest request to "+o+" failed."));else{try{var e=JSON.parse(i.responseText)}catch(t){return void n(t)}t(e)}}}))).then((function(t){if(!t)return u("idle"),null;y={},d={},v=t.c,f=t.h,u("prepare");var e=new Promise((function(t,e){c={resolve:t,reject:e}}));l={};return x(0),"prepare"===a&&0===p&&0===h&&w(),e}));var e}function x(t){v[t]?(y[t]=!0,h++,function(t){var e=document.createElement("script");e.charset="utf-8",e.src=S.p+""+t+"."+r+".hot-update.js",document.head.appendChild(e)}(t)):d[t]=!0}function w(){u("ready");var t=c;if(c=null,t)if(i)Promise.resolve().then((function(){return P(i)})).then((function(e){t.resolve(e)}),(function(e){t.reject(e)}));else{var e=[];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&e.push(m(n));t.resolve(e)}}function P(e){if("ready"!==a)throw new Error("apply() is only allowed in ready status");var n,i,A,s,C;function I(t){for(var e=[t],n={},i=e.map((function(t){return{chain:[t],id:t}}));i.length>0;){var r=i.pop(),o=r.id,g=r.chain;if((s=O[o])&&!s.hot._selfAccepted){if(s.hot._selfDeclined)return{type:"self-declined",chain:g,moduleId:o};if(s.hot._main)return{type:"unaccepted",chain:g,moduleId:o};for(var A=0;A<s.parents.length;A++){var C=s.parents[A],I=O[C];if(I){if(I.hot._declinedDependencies[o])return{type:"declined",chain:g.concat([C]),moduleId:o,parentId:C};-1===e.indexOf(C)&&(I.hot._acceptedDependencies[o]?(n[C]||(n[C]=[]),c(n[C],[o])):(delete n[C],e.push(C),i.push({chain:g.concat([C]),id:C})))}}}}return{type:"accepted",moduleId:t,outdatedModules:e,outdatedDependencies:n}}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];-1===t.indexOf(i)&&t.push(i)}}e=e||{};var h={},p=[],d={},y=function(){console.warn("[HMR] unexpected require("+x.moduleId+") to disposed module")};for(var b in l)if(Object.prototype.hasOwnProperty.call(l,b)){var x;C=m(b);var w=!1,P=!1,_=!1,E="";switch((x=l[b]?I(C):{type:"disposed",moduleId:b}).chain&&(E="\nUpdate propagation: "+x.chain.join(" -> ")),x.type){case"self-declined":e.onDeclined&&e.onDeclined(x),e.ignoreDeclined||(w=new Error("Aborted because of self decline: "+x.moduleId+E));break;case"declined":e.onDeclined&&e.onDeclined(x),e.ignoreDeclined||(w=new Error("Aborted because of declined dependency: "+x.moduleId+" in "+x.parentId+E));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(x),e.ignoreUnaccepted||(w=new Error("Aborted because "+C+" is not accepted"+E));break;case"accepted":e.onAccepted&&e.onAccepted(x),P=!0;break;case"disposed":e.onDisposed&&e.onDisposed(x),_=!0;break;default:throw new Error("Unexception type "+x.type)}if(w)return u("abort"),Promise.reject(w);if(P)for(C in d[C]=l[C],c(p,x.outdatedModules),x.outdatedDependencies)Object.prototype.hasOwnProperty.call(x.outdatedDependencies,C)&&(h[C]||(h[C]=[]),c(h[C],x.outdatedDependencies[C]));_&&(c(p,[x.moduleId]),d[C]=y)}var M,D=[];for(i=0;i<p.length;i++)C=p[i],O[C]&&O[C].hot._selfAccepted&&d[C]!==y&&D.push({module:C,errorHandler:O[C].hot._selfAccepted});u("dispose"),Object.keys(v).forEach((function(t){!1===v[t]&&function(t){delete installedChunks[t]}(t)}));for(var j,k,L=p.slice();L.length>0;)if(C=L.pop(),s=O[C]){var N={},T=s.hot._disposeHandlers;for(A=0;A<T.length;A++)(n=T[A])(N);for(o[C]=N,s.hot.active=!1,delete O[C],delete h[C],A=0;A<s.children.length;A++){var R=O[s.children[A]];R&&((M=R.parents.indexOf(C))>=0&&R.parents.splice(M,1))}}for(C in h)if(Object.prototype.hasOwnProperty.call(h,C)&&(s=O[C]))for(k=h[C],A=0;A<k.length;A++)j=k[A],(M=s.children.indexOf(j))>=0&&s.children.splice(M,1);for(C in u("apply"),r=f,d)Object.prototype.hasOwnProperty.call(d,C)&&(t[C]=d[C]);var F=null;for(C in h)if(Object.prototype.hasOwnProperty.call(h,C)&&(s=O[C])){k=h[C];var G=[];for(i=0;i<k.length;i++)if(j=k[i],n=s.hot._acceptedDependencies[j]){if(-1!==G.indexOf(n))continue;G.push(n)}for(i=0;i<G.length;i++){n=G[i];try{n(k)}catch(t){e.onErrored&&e.onErrored({type:"accept-errored",moduleId:C,dependencyId:k[i],error:t}),e.ignoreErrored||F||(F=t)}}}for(i=0;i<D.length;i++){var U=D[i];C=U.module,g=[C];try{S(C)}catch(t){if("function"==typeof U.errorHandler)try{U.errorHandler(t)}catch(n){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:C,error:n,originalError:t}),e.ignoreErrored||F||(F=n),F||(F=t)}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:C,error:t}),e.ignoreErrored||F||(F=t)}}return F?(u("fail"),Promise.reject(F)):(u("idle"),new Promise((function(t){t(p)})))}var O={};function S(e){if(O[e])return O[e].exports;var n=O[e]={i:e,l:!1,exports:{},hot:C(e),parents:(A=g,g=[],A),children:[]};return t[e].call(n.exports,n,n.exports,s(e)),n.l=!0,n.exports}S.m=t,S.c=O,S.d=function(t,e,n){S.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},S.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},S.t=function(t,e){if(1&e&&(t=S(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(S.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)S.d(n,i,function(e){return t[e]}.bind(null,i));return n},S.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return S.d(e,"a",e),e},S.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},S.p="",S.h=function(){return r},s(157)(S.s=157)}([function(t,e,n){var i=n(2),r=n(14),o=n(18),g=n(19),A=n(23),s=function(t,e,n){var C,I,a,u,c=t&s.F,l=t&s.G,f=t&s.S,h=t&s.P,p=t&s.B,d=l?i:f?i[e]||(i[e]={}):(i[e]||{}).prototype,y=l?r:r[e]||(r[e]={}),v=y.prototype||(y.prototype={});for(C in l&&(n=e),n)a=((I=!c&&d&&void 0!==d[C])?d:n)[C],u=p&&I?A(a,i):h&&"function"==typeof a?A(Function.call,a):a,d&&g(d,C,a,t&s.U),y[C]!=a&&o(y,C,u),h&&v[C]!=a&&(v[C]=a)};i.core=r,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var i=n(3);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var i=n(53)("wks"),r=n(42),o=n(2).Symbol,g="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=g&&o[t]||(g?o:r)("Symbol."+t))}).store=i},function(t,e,n){t.exports=!n(4)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(25),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e,n){var i=n(1),r=n(112),o=n(27),g=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return g(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";var i,r;Object.defineProperty(e,"__esModule",{value:!0}),e.SVGURI="http://www.w3.org/2000/svg",e.SVGPATH="http://www.w3.org/1999/xlink",e.STATE_CHILD="__state",e.POINT="point",e.DOOR="door",e.COLUMN="column",e.CASEMENT="casement",e.SLIDEDOOR="slideDoor",e.TAGGING="tagging",e.GROUNDCASE="groundCase",e.BAYCASE="bayCase",e.FURNCOLUMN="furnColumn",e.FURNFLUE="furnFlue",e.LINE="line",e.SEFTLINE="seftline",e.OPENSPACE="openSpace",e.ARCH=((i={})[e.POINT]="点",i[e.DOOR]="门",i[e.COLUMN]="柱子",i[e.CASEMENT]="窗户",i[e.SLIDEDOOR]="移门",i[e.TAGGING]="标注",i[e.GROUNDCASE]="落地窗",i[e.BAYCASE]="飘窗",i[e.FURNCOLUMN]="框架柱",i[e.FURNFLUE]="烟道",i[e.LINE]="墙",i[e.SEFTLINE]="墙",i[e.OPENSPACE]="开放空间",i),e.DEFAULT=((r={})[e.OPENSPACE]={width:.8,height:2},r[e.DOOR]={width:.8,height:2},r[e.SLIDEDOOR]={width:1.5,height:2},r[e.CASEMENT]={width:.8,height:1.2},r[e.BAYCASE]={width:1.5,height:1.2},r[e.GROUNDCASE]={width:1.5,height:2},r[e.COLUMN]={width:.65,tick:.65},r[e.FURNCOLUMN]={width:.65,tick:.65},r[e.FURNFLUE]={width:.65,tick:.65},r[e.LINE]={width:.5},r)},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var o=n(13),g=n(374);e.calcVector=function(t){var e=1/((t=i({},t)).x*t.y<0?Math.abs(t.x-t.y):t.x+t.y);return t.x=t.x*e,t.y=t.y*e,t},e.strictLineVector=function(t){var n=t.points[1].x-t.points[0].x,i=t.points[1].y-t.points[0].y,r=Math.abs(n/1),o=Math.abs(i/1),g=r>o?r:o,A={x:n/g,y:i/g};return e.calcVector(A)},e.lineVector=function(t,n){void 0===n&&(n=.001);var i=e.strictLineVector(t);return Math.abs(i.x)<n&&(i.x=0),Math.abs(i.y)<n&&(i.y=0),i},e.verticalLine=function(t){var n=e.lineVector(t),i=n.x,r=n.y;if(i-r!=0){var o={x:r/(r-i),y:i/(i-r)};return e.calcVector(o)}return{x:i,y:r}},e.lineDis=function(t){return Number(Math.sqrt(Math.pow(t.points[0].x-t.points[1].x,2)+Math.pow(t.points[0].y-t.points[1].y,2)).toFixed(4))},e.lineCenter=function(t){return{x:(t.points[0].x+t.points[1].x)/2,y:(t.points[0].y+t.points[1].y)/2}},e.segmentsIntr=function(t,n){var i=t.points,r=i[0],o=i[1],g=n.points,A=g[0],s=g[1],C=(o.y-r.y)*(s.x-A.x)-(r.x-o.x)*(A.y-s.y);if(0==C)return!1;var I=((o.x-r.x)*(s.x-A.x)*(A.y-r.y)+(o.y-r.y)*(s.x-A.x)*r.x-(s.y-A.y)*(o.x-r.x)*A.x)/C,a=-((o.y-r.y)*(s.y-A.y)*(A.x-r.x)+(o.x-r.x)*(s.y-A.y)*r.y-(s.x-A.x)*(o.y-r.y)*A.y)/C;return!(!e.isContainPoint(t,{x:I,y:a})||!e.isContainPoint(n,{x:I,y:a}))&&{x:I,y:a}},e.segmentsIntrFine=function(t,e){var n=t.points,i=n[0],r=n[1],o=e.points,g=o[0],A=o[1],s=(r.y-i.y)*(A.x-g.x)-(i.x-r.x)*(g.y-A.y);if(0==s)return!1;var C=((r.x-i.x)*(A.x-g.x)*(g.y-i.y)+(r.y-i.y)*(A.x-g.x)*i.x-(A.y-g.y)*(r.x-i.x)*g.x)/s,I=-((r.y-i.y)*(A.y-g.y)*(g.x-i.x)+(r.x-i.x)*(A.y-g.y)*i.y-(A.x-g.x)*(r.y-i.y)*g.y)/s;return!isNaN(C)&&!isNaN(I)&&{x:C,y:I}},e.pointLineDis=function(t,e){var n=0,i=t.points[1].x-t.points[0].x,r=e.x-t.points[0].x,o=e.x-t.points[1].x,g=t.points[1].y-t.points[0].y,A=e.y-t.points[0].y,s=e.y-t.points[1].y,C=i*r+g*A,I=i*i+g*g;if(C<=0)n=Math.sqrt(r*r+A*A);else if(C>=I)n=Math.sqrt(o*o+s*s);else{var a=C/I,u=t.points[0].x+i*a,c=t.points[0].y+g*a;n=Math.sqrt((e.x-u)*(e.x-u)+(c-e.y)*(c-e.y))}return n},e.isContainPoint=function(t,n){return!Math.abs(e.pointLineDis(t,n))||Math.abs(e.pointLineDis(t,n))<.01},e.getVerLinePoint=function(t,n){return e.getVectorPosPoint(e.verticalLine(t),t.points[0],n)},e.getVectorPosPoint=function(t,n,i){var r={points:[n,{x:n.x+1e4*t.x,y:n.y+1e4*t.y}]};return e.getLinePoint(r,i)},e.getLinePoint=function(t,n){var i,r=n;if(o.type.isNumber(r.x)&&o.type.isNumber(r.y)){var g=e.lineVector(t),A=g.x,s=g.y,C=Math.abs(A)>Math.abs(s)?"x":"y";(i={})[C]=r[C],r=i}var I=e.lineVector(t,1e-7),a=I.y/I.x,u=t.points[0].y-a*t.points[0].x;return a>100||a<-100?{x:t.points[0].x,y:r.y}:o.type.isNumber(r.x)?{x:r.x,y:a*r.x+u}:o.type.isNumber(r.y)?{x:(r.y-u)/a,y:r.y}:{x:0,y:0}},e.getFlexLinePoint=function(t,n){var i=e.strictLineVector(t),r=i.x,o=i.y,g=(r=Math.abs(r))>(o=Math.abs(o))?{x:n.x}:{y:n.y};return e.getLinePoint(t,g)},e.getDisVectorPoints=function(t,e,n){var i=Math.atan(t.y/t.x);return[{x:e.x+n*Math.cos(i),y:e.y+n*Math.sin(i)},{x:e.x+-n*Math.cos(i),y:e.y+-n*Math.sin(i)}]},e.getDisPointLinePoints=function(t,n,i){return e.getDisVectorPoints(e.lineVector(t),n,i)},e.getLineDisPoint=function(t,n){var i=e.getDisPointLinePoints(t,t.points[0],n),r=i[0],o=i[1],g=e.lineVector(t),A=e.lineVector({points:[t.points[0],r]});return g.x*A.x>=0&&g.y*A.y>=0?r:o},e.getLineDisSelectPoint=function(t,n,i){var r=e.getDisPointLinePoints(t,n,i),o=r[0],g=r[1];return e.isContainPoint(t,o)?o:g},e.getDisVerticalLinePoints=function(t,n,i){return e.getDisVectorPoints(e.verticalLine(t),n,i)},e.getLineVerticalChangePoint=function(t,n,i){var r=e.segmentsIntrFine(t,n);return r?e.getLineVerticalPoint(t,r,e.lineVector(n),i):r},e.getLineVerticalPoint=function(t,n,i,r){var o=e.getDisVerticalLinePoints(t,n,r),g=o[0],A=o[1],s=e.lineVector({points:[n,g]}),C=e.lineVector({points:[n,A]}),I=i.x*s.x,a=i.y*s.y,u=i.x*C.x,c=i.x*C.y;return I>=0&&a>=0?g:u>=0&&c>=0||(I<a?I:a)<(u<c?u:c)?A:g},e.getPointCoordinate=function(t){return t.x>=0&&t.y>=0?1:t.x>=0&&t.y<=0?2:t.x<=0&&t.y<=0?3:t.x<=0&&t.y>=0?4:0},e.getLineCoordinate=function(t){var e=t.points[1].x-t.points[0].x,n=t.points[1].y-t.points[0].y;return e>=0&&n>=0?1:e>=0&&n<=0?4:e<=0&&n<=0?3:2},e.getPointCoordDistance=function(t,n){return e.getPointCoordinate(t)-e.getPointCoordinate(n)},e.faceArea=function(t){var e=t.length;if(e<3)return 0;for(var n=t[0].y*(t[e-1].x-t[1].x),i=1;i<e;++i)n+=t[i].y*(t[i-1].x-t[(i+1)%e].x);return Math.abs(n/2)},e.pointInside=function(t,e){for(var n=!1,i=e.x,r=e.y,o=0,g=t.length-1;o<t.length;g=o++){var A=t[o].x,s=t[o].y,C=t[g].x,I=t[g].y;s>r!=I>r&&i<=(C-A)*(r-s)/(I-s)+A&&(n=!n)}return n},e.pointInsideBorder=function(t,n){for(var i=0;i<t.length;i++){var r={points:[t[i],t[i===t.length-1?0:i+1]]};if(e.isContainPoint(r,n))return!0}return!1},e.isClockWise=function(t,e){var n,i,r;void 0===e&&(e=!0);var o,g=0,A=e?-1:1;if(null==t||t.length<3)return!1;var s=t.length;for(n=0;n<s;n++)r=(n+2)%s,o=(t[i=(n+1)%s].x-t[n].x)*(t[r].y*A-t[i].y*A),(o-=(t[i].y*A-t[n].y*A)*(t[r].x-t[i].x))<0?g--:o>0&&g++;return g>0},e.isLineIntersect=function(t,e){var n=t.points[1].y-t.points[0].y,i=t.points[0].x-t.points[1].x,r=n*t.points[0].x+i*t.points[0].y,o=e.points[1].y-e.points[0].y,g=e.points[0].x-e.points[1].x,A=o*e.points[0].x+g*e.points[0].y,s=n*g-o*i;if(0==s)return!1;var C=(g*r-i*A)/s,I=(n*A-o*r)/s;if((a(t.points[0].x,C,t.points[1].x)||a(t.points[0].y,I,t.points[1].y))&&(a(e.points[0].x,C,e.points[1].x)||a(e.points[0].y,I,e.points[1].y)))return!0;function a(t,e,n){return!(Math.abs(t-e)<1e-6||Math.abs(e-n)<1e-6)&&(t<=e&&e<=n||n<=e&&e<=t)}return!1},e.isFaceIntersect=function(t,n){for(var i=0;i<t.length;i++)for(var r=i+1===t.length?0:i+1,o={points:[t[i],t[r]]},g=0;g<n.length;g++){r=g+1===n.length?0:g+1;var A={points:[n[g],n[r]]},s=e.isLineIntersect(A,o),C=e.isLineIntersect(o,A);if(s&&C)return!0}return!1},e.isFaceContain=function(t,n){return n.every((function(n){return e.pointInside(t,n)}))&&!e.isFaceIntersect(t,n)},e.isFaceChild=function(t,n){return n.every((function(n){return e.pointInside(t,n)||e.pointInsideBorder(t,n)}))&&!e.isFaceIntersect(t,n)},e.faceCenter=function(t){for(var e=0,n=0,i=0;i<t.length;i++)e+=t[i].x,n+=t[i].y;return{x:e/=t.length,y:n/=t.length}},e.faceRotate=function(t,n){var i=window.THREE,r=e.faceCenter(t),o=(new i.Matrix3).translate(-r.x,-r.y),g=(new i.Matrix3).rotate(i.Math.degToRad(n)),A=(new i.Matrix3).translate(r.x,r.y),s=new i.Matrix3;return s.premultiply(o),s.premultiply(g),s.premultiply(A),t.map((function(t){var e=new i.Vector2(t.x,t.y);return e.applyMatrix3(s),{x:e.x,y:e.y}}))},e.lineStretch=function(t,n){t=i(i({},t),{points:t.points.map((function(t){return{x:t.x,y:t.y}}))});var r=e.lineCenter(t),o=e.getDisPointLinePoints(t,r,n/2),g=o[0],A=o[1];return e.lineDis({points:[t.points[0],g]})>e.lineDis({points:[t.points[0],A]})?(t.points[0].x=A.x,t.points[0].y=A.y,t.points[1].x=g.x,t.points[1].y=g.y):(t.points[0].x=g.x,t.points[0].y=g.y,t.points[1].x=A.x,t.points[1].y=A.y),t},e.getAngle=function(t,n){var i=e.segmentsIntr(t,n);if(!i)return 0;var r=t.points[0],o=n.points[1],g=r.x-i.x,A=r.y-i.y,s=o.x-i.x,C=o.y-i.y,I=g*s+A*C,a=g*C-A*s;return Math.atan2(a,I)},e.PointCmp=function(t,e,n){if(Math.abs(t.x-e.x)<.02&&(e=i(i({},e),{x:t.x})),Math.abs(t.y-e.y)<.02&&(e=i(i({},e),{x:t.y})),t.x>=0&&e.x<0)return!0;if(0==t.x&&0==e.x)return t.y>e.y;var r=(t.x-n.x)*(e.y-n.y)-(e.x-n.x)*(t.y-n.y);return r<0||!(r>0)&&(t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y)>(e.x-n.x)*(e.x-n.y)+(e.y-n.y)*(e.y-n.y)},e.clockwiseSorting=function(t,e){t=t.map((function(t){return i({},t)}));for(var n=0;n<t.length;n++){var r=t[n];r.x=Number(r.x.toFixed(2)),r.y=Number(r.y.toFixed(2));for(var o=n+1;o<t.length;o++){var g=t[o];g.x=Number(g.x.toFixed(2)),g.y=Number(g.y.toFixed(2)),Math.abs(r.x-g.x)<.02&&(t[o]=i(i({},g),{x:r.x})),Math.abs(r.y-g.y)<.02&&(t[o]=i(i({},g),{y:r.y}))}}var A=Math.atan2(t[e].y,t[e].x);return t.sort((function(t,e){return Math.atan2(e.y,e.x)-Math.atan2(t.y,t.x)+(Math.atan2(e.y,e.x)>A?-2*Math.PI:0)+(Math.atan2(t.y,t.x)>A?2*Math.PI:0)}))},e.clockwiseSortPoints=function(t){var n=0,i=0;(t=r(t)).forEach((function(t){n+=t.x,i+=t.y}));for(var o={x:n/t.length,y:i/t.length},g=0;g<t.length-1;g++)for(var A=0;A<t.length;A++)if(A<t.length-1){if(e.PointCmp(t[A],t[A+1],o)){var s=t[A];t[A]=t[A+1],t[A+1]=s}}else if(e.PointCmp(t[A],t[0],o)){s=t[A];t[A]=t[0],t[0]=s}return t},e.faceClip=function(t,e){return g.default.intersect(t,e)},e.faceClipArea=function(t,n){return e.faceClip(t,n).reduce((function(t,n){return t+e.faceArea(n)}),0)}},function(t,e,n){var i=n(28);t.exports=function(t){return Object(i(t))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRange=function(t){var e=Math.abs(Math.min.apply(Math,t)),n=Math.abs(Math.max.apply(Math,t));return Math.ceil(e+n)},e.getMapMultipleWH=function(t,e,n,i){void 0===i&&(i=10);var r=Math.abs(Math.min.apply(Math,n.vertex.map((function(t){return t.x})))),o=Math.abs(Math.max.apply(Math,n.vertex.map((function(t){return t.x})))),g=Math.abs(Math.min.apply(Math,n.vertex.map((function(t){return t.y})))),A=Math.abs(Math.max.apply(Math,n.vertex.map((function(t){return t.y})))),s=Math.ceil(r+o)/t,C=Math.ceil(g+A)/e,I=s>C?s:C,a=t*I,u=e*I;return{width:a,height:u,multiple:I,left:r/(r+o)*a,top:g/(g+A)*u,scale:1-2*i*I/a}},e.debounce=function(t,e,n,i){void 0===e&&(e=16);var r=null,o=[],g=0;return function(){for(var A=[],s=0;s<arguments.length;s++)A[s]=arguments[s];g||i&&i(),g++,o.push(A),clearTimeout(r),r=setTimeout((function(){n?(t(n(o)),o=[]):t.apply(void 0,A),g=0}),e)}},e.throttle=function(t,e){var n=null;return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=+new Date;(o-n>e||!n)&&(t.apply(void 0,i),n=o)}},e.getType=function(t){return Object.prototype.toString.call(t).slice(8,-1)},e.type={};["String","Number","Boolean","Undefined","Null","Object","Function","Array","Date","RegExp"].forEach((function(t){return e.type["is"+t]=function(n){return e.getType(n)===t}})),e.convertBase64UrlToBlob=function(t){for(var e=t.split(","),n=e[0].match(/:(.*?);/)[1],i=atob(e[1]),r=i.length,o=new Uint8Array(r);r--;)o[r]=i.charCodeAt(r);return new Blob([o],{type:n})},e.strEascpeLen=function(t){for(var e=t,n=e.length,i=0;i<n;i++){~escape(e.substr(i,1)).indexOf("%u")&&n++}return n}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(54),r=n(28);t.exports=function(t){return i(r(t))}},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=n(372),o=n(9),g=n(13),A=0,s={enter:"mouseenter",leave:"mouseleave",click:"click",drag:"mousedown"},C=function(){function t(e){var n=this;this.zIndex=0,this.render=e.renderer,this.id=++A,this.__state=new r.State(i(i({},e),{select:!1}),{afferent:this,notice:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n.notice&&n.notice.apply(n,t),n.update&&n.update();var i=Object.keys(t[0].args);if((~i.indexOf("x")||~i.indexOf("y"))&&n.wallPos)try{n.wallPos()}catch(t){}~i.indexOf("select")&&n.wallSelect&&n.wallSelect()},childAttr:o.STATE_CHILD,intercept:this.intercept&&function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.intercept.apply(n,t)}}),this.__state.bindDataChange(),r.getter(this,this.__state),r.setter(this,this.__state),Object.defineProperties(this,{multiple:{get:function(){return n.renderer.props.multiple/n.renderer.props.scale}}}),t.examples.get(this.renderer).push(this),this.grentNode&&(this.real=this.grentNode(),this.setHoverStyle&&this.setUnHoverStyle&&(this.enter=this.setHoverStyle,this.leave=function(){return n.select||n.setUnHoverStyle()},this.wallSelect=function(){n.select?n.setHoverStyle():n.setUnHoverStyle()}),this.listen()),this.real.id="ele"+A.toString()}return t.prototype.intercept=function(t,e,n,i){return e},t.prototype.changeSelect=function(e){var n=this;this.select!==e&&(this.__state.direct=!0,this.select=e,this.update&&this.update(),this.__state.direct=!1,this.wallSelect&&this.wallSelect(),e&&t.examples.get(this.renderer).forEach((function(t){t!==n&&t.select&&t.changeSelect(!1)})))},t.prototype.click=function(t){this.changeSelect(!0),t.stopPropagation()},t.prototype.nextTick=function(t){this.__state.nextTick(t)},t.prototype.nextChange=function(t){this.__state.nextChange(t)},t.prototype.listen=function(){this.__draging=!1,this.bindEvent("enter"),this.bindEvent("leave"),this.bindEvent("click"),this.bindEvent("drag")},t.prototype.unEvent=function(){this.unbindEvent("enter"),this.unbindEvent("leave"),this.unbindEvent("click"),this.unbindEvent("drag")},t.prototype.destroy=function(){this.__destroy=!0,this.unEvent();var e=t.examples.get(this.renderer);e.splice(e.indexOf(this),1)},t.prototype.bindDrag=function(t){var e=this,n={x:t.offsetX,y:t.offsetY};this.dragStart&&this.dragStart(t,n);var i=g.throttle((function(t){var i={x:t.offsetX,y:t.offsetY};e.__draging=!0,e.drag({x:i.x-n.x,y:i.y-n.y},i,n),t.preventDefault()}),10),r=function(t){document.documentElement.removeEventListener("mousemove",i,!1),document.documentElement.removeEventListener("mouseup",r,!1),e.__draging=!1,e.dragEnd&&e.dragEnd({x:t.offsetX,y:t.offsetY}),e.__leave&&e.leave()};document.documentElement.addEventListener("mousemove",i,!1),document.documentElement.addEventListener("mouseup",r,!1),t.preventDefault()},t.prototype.bindEvent=function(e){var n=this;if(this[e]){var i="__bind_"+e;this[i]&&this.unbindEvent(e);var r="drag"===e?this.bindDrag.bind(this):function(i){var r=t.examples.get(n.renderer);"enter"===e&&r.some((function(t){return t.__draging}))||(!n.__draging||"enter"!==e&&"leave"!==e?n[e](i):n.__leave="leave"===e)};this.real.addEventListener(s[e],r,!1),this[i]=r}},t.prototype.unbindEvent=function(t){this["__bind_"+t]&&this.real.removeEventListener(s[t],this["__bind_"+t],!1)},t.examples=new Map,t.multiples=new Map,t.update=function(e){t.examples.get(e).forEach((function(t){return t.update&&t.update()}))},t.init=function(e){t.examples.set(e,[])},t}();e.CADElement=C},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(8),r=n(36);t.exports=n(6)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(2),r=n(18),o=n(17),g=n(42)("src"),A=n(161),s=(""+A).split("toString");n(14).inspectSource=function(t){return A.call(t)},(t.exports=function(t,e,n,A){var C="function"==typeof n;C&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(C&&(o(n,g)||r(n,g,t[e]?""+t[e]:s.join(String(e)))),t===i?t[e]=n:A?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[g]||A.call(this)}))},function(t,e,n){var i=n(55),r=n(36),o=n(15),g=n(27),A=n(17),s=n(112),C=Object.getOwnPropertyDescriptor;e.f=n(6)?C:function(t,e){if(t=o(t),e=g(e,!0),s)try{return C(t,e)}catch(t){}if(A(t,e))return r(!i.f.call(t,e),t[e])}},function(t,e,n){var i=n(17),r=n(11),o=n(80)("IE_PROTO"),g=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?g:null}},function(t,e,n){var i=n(0),r=n(4),o=n(28),g=/"/g,A=function(t,e,n,i){var r=String(o(t)),A="<"+e;return""!==n&&(A+=" "+n+'="'+String(i).replace(g,""")+'"'),A+">"+r+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(A),i(i.P+i.F*r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e,n){var i=n(12);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){"use strict";var i=n(4);t.exports=function(t,e){return!!t&&i((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){var i=n(3);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var i=n(0),r=n(14),o=n(4);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],g={};g[t]=e(n),i(i.S+i.F*o((function(){n(1)})),"Object",g)}},function(t,e,n){var i=n(23),r=n(54),o=n(11),g=n(7),A=n(95);t.exports=function(t,e){var n=1==t,s=2==t,C=3==t,I=4==t,a=6==t,u=5==t||a,c=e||A;return function(e,A,l){for(var f,h,p=o(e),d=r(p),y=i(A,l,3),v=g(d.length),m=0,b=n?c(e,v):s?c(e,0):void 0;v>m;m++)if((u||m in d)&&(h=y(f=d[m],m,p),t))if(n)b[m]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return m;case 2:b.push(f)}else if(I)return!1;return a?-1:C||I?I:b}}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n},A=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var s=n(16),C=n(375),I=n(10),a=n(13),u=function(t){function e(n){var i=n.minWidth,r=void 0===i?.1:i,A=n.deleteWidth,s=void 0===A?.05:A,I=g(n,["minWidth","deleteWidth"]),a=t.call(this,I)||this;return a.zIndex=1,a.linePoints=a.linePoints.map((function(t){var e=new C.default(o(o({},t),{renderer:a.renderer}),a.attachment);return e.click=function(){return a.changeSelect(!0)},e})),a.minWidth=r,a.deleteWidth=s,a.real.setAttribute("class","variable"),e.attaArch.get(a.attachment)?e.attaArch.get(a.attachment).push(a):e.attaArch.set(a.attachment,[a]),Object.defineProperty(a,"rooms",{get:function(){var t=this.renderer.processing;return t.getRoomsByLine(this.attachment).map((function(e){return e.ground.map((function(e){var n=t.points.find((function(t){return t.id===e}));return n?n.ele:t.data.vertex.find((function(t){return t.id===e}))}))}))}}),a.attachment.update(),a}return r(e,t),e.prototype.setAttachment=function(t){if(void 0===t&&(t=this.attachment),console.error("set new attach"),this.attachment!==t){var n=e.attaArch.get(this.attachment),i=e.attaArch.get(t)||e.attaArch.set(t,[]).get(t);n.splice(n.indexOf(this),1),i.push(this),this.linePoints.forEach((function(e){e.line=t})),this.attachment=t}},e.prototype.checkPoint=function(t,e){return void 0===e&&(e=this.attachment),!I.isContainPoint(e,t)},e.prototype.checkWidth=function(t){return void 0===t&&(t=this.linePoints),I.lineDis({points:t})<this.minWidth},e.prototype.checkPointOverlapAttaArch=function(t){return void 0===t&&(t=e.attaArch.get(this.attachment)),!(t.length<=1)&&t.some((function(e){return t.some((function(t){return e!==t&&(I.isContainPoint({points:t.linePoints},e.linePoints[0])||I.isContainPoint({points:t.linePoints},e.linePoints[1]))}))}))},e.prototype.checkLineAllPoint=function(t,n){return void 0===t&&(t=e.attaArch.get(this.attachment)),void 0===n&&(n=this.attachment),0!==t.length&&t.some((function(t){return!I.isContainPoint(n,t.linePoints[0])||!I.isContainPoint(n,t.linePoints[1])}))},e.prototype.getLineNewAll=function(t,n){void 0===t&&(t=this.linePoints),void 0===n&&(n=this);var i=A(e.attaArch.get(this.attachment));return i.splice(i.indexOf(n),1,{linePoints:t}),i},e.prototype.qualified=function(t,e){return void 0===t&&(t=this.linePoints),void 0===e&&(e=this.attachment),!(this.checkPoint(t[0],e)||this.checkPoint(t[1],e)||this.checkWidth(t))},e.prototype.lineChange=function(t,e){var n=this,i=e.x,r=e.y,g=this.attachment.points.findIndex((function(e){return e===t})),A={points:0===g?[{x:i,y:r},this.attachment.points[1]]:[this.attachment.points[0],{x:i,y:r}]},s=I.lineDis({points:[A.points[g],this.linePoints[0]]}),a=I.getDisPointLinePoints(A,A.points[g],s),u=a[0],c=a[1],l=I.lineDis({points:[u,this.linePoints[0]]})>I.lineDis({points:[c,this.linePoints[0]]})?c:u,f=I.lineDis({points:[A.points[g],this.linePoints[1]]}),h=I.getDisPointLinePoints(A,A.points[g],f),p=h[0],d=h[1],y=I.lineDis({points:[p,this.linePoints[0]]})>I.lineDis({points:[d,this.linePoints[0]]})?d:p,v=(I.lineDis({points:[this.linePoints[0],l]})<I.lineDis({points:[this.linePoints[0],y]})?[l,y]:[y,l]).map((function(t){return C.default.prototype.getLineInsertPoint.call(o(o({},n.linePoints[0]),{line:A}),t)}));return{line:A,points:v}},e.prototype.pointChange=function(t,e){var n=e.x,i=e.y;return 0===this.linePoints.findIndex((function(e){return e===t}))?[{x:n,y:i},this.linePoints[1]]:[this.linePoints[0],{x:n,y:i}]},e.prototype.lineChangeCheck=function(t,e,n){return this.qualified(t,e)&&!this.checkLineAllPoint(n,e)&&!this.checkPointOverlapAttaArch(n)},e.prototype.intercept=function(t,n,i){var r,o,g=this,A=n.x,s=n.y;if(a.type.isUndefined(A)||a.type.isUndefined(s))return!0;if(o=this.attachment.points.find((function(e){return t.some((function(t){return t===e}))}))){var C=this.lineChange(o,{x:A,y:s}),I=C.points,u=C.line,c=t.filter((function(t){return t instanceof e&&t.attachment.id===g.attachment.id})),l=(c=Array.from(new Set(c))).map((function(e){var n=t.findIndex((function(t){return t===e}));return~n?g===e?{linePoints:I}:{linePoints:i[n].__points}:e}));return!I.some((function(t){return!t}))&&(!!this.lineChangeCheck(I,u,l)&&(this.nextChange((function(){I.forEach((function(t,e){g.linePoints[e].x=t.x,g.linePoints[e].y=t.y}))})),this.attachment.update(),{__points:I}))}if(~(r=t.findIndex((function(t){return g.linePoints.some((function(e){return e===t}))})))){var f=i[r],h=this.pointChange(t[r],f);return this.attachment.update(),!(this.checkPoint(f)||this.checkWidth(h)||this.checkPointOverlapAttaArch(this.getLineNewAll(h)))}},e.prototype.dragEnd=function(){var t=this;this.nextTick((function(){I.lineDis({points:t.linePoints})<=t.deleteWidth&&t.destroy()}))},e.prototype.destroy=function(){var n=e.attaArch.get(this.attachment);n.splice(n.indexOf(this),1),this.linePoints[0].destroy(),this.linePoints[1].destroy(),this.attachment=null,this.linePoints=null,this.update=null,t.prototype.destroy.call(this),this.attachment.update()},e.attaArch=new Map,e}(s.CADElement);e.default=u},function(t,e,n){var i=n(114),r=n(81);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){var i=n(1),r=n(115),o=n(81),g=n(80)("IE_PROTO"),A=function(){},s=function(){var t,e=n(78)("iframe"),i=o.length;for(e.style.display="none",n(82).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;i--;)delete s.prototype[o[i]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(A.prototype=i(t),n=new A,A.prototype=null,n[g]=t):n=s(),void 0===e?n:r(n,e)}},function(t,e,n){"use strict";if(n(6)){var i=n(37),r=n(2),o=n(4),g=n(0),A=n(73),s=n(104),C=n(23),I=n(47),a=n(36),u=n(18),c=n(48),l=n(25),f=n(7),h=n(137),p=n(43),d=n(27),y=n(17),v=n(39),m=n(3),b=n(11),x=n(93),w=n(33),P=n(21),O=n(44).f,S=n(56),_=n(42),E=n(5),M=n(30),D=n(61),j=n(58),k=n(97),L=n(45),N=n(68),T=n(46),R=n(96),F=n(127),G=n(8),U=n(20),V=G.f,W=U.f,Z=r.RangeError,z=r.TypeError,B=r.Uint8Array,H=Array.prototype,J=s.ArrayBuffer,K=s.DataView,X=M(0),Y=M(2),Q=M(3),q=M(4),$=M(5),tt=M(6),et=D(!0),nt=D(!1),it=k.values,rt=k.keys,ot=k.entries,gt=H.lastIndexOf,At=H.reduce,st=H.reduceRight,Ct=H.join,It=H.sort,at=H.slice,ut=H.toString,ct=H.toLocaleString,lt=E("iterator"),ft=E("toStringTag"),ht=_("typed_constructor"),pt=_("def_constructor"),dt=A.CONSTR,yt=A.TYPED,vt=A.VIEW,mt=M(1,(function(t,e){return Ot(j(t,t[pt]),e)})),bt=o((function(){return 1===new B(new Uint16Array([1]).buffer)[0]})),xt=!!B&&!!B.prototype.set&&o((function(){new B(1).set({})})),wt=function(t,e){var n=l(t);if(n<0||n%e)throw Z("Wrong offset!");return n},Pt=function(t){if(m(t)&&yt in t)return t;throw z(t+" is not a typed array!")},Ot=function(t,e){if(!(m(t)&&ht in t))throw z("It is not a typed array constructor!");return new t(e)},St=function(t,e){return _t(j(t,t[pt]),e)},_t=function(t,e){for(var n=0,i=e.length,r=Ot(t,i);i>n;)r[n]=e[n++];return r},Et=function(t,e,n){V(t,e,{get:function(){return this._d[n]}})},Mt=function(t){var e,n,i,r,o,g,A=b(t),s=arguments.length,I=s>1?arguments[1]:void 0,a=void 0!==I,u=S(A);if(null!=u&&!x(u)){for(g=u.call(A),i=[],e=0;!(o=g.next()).done;e++)i.push(o.value);A=i}for(a&&s>2&&(I=C(I,arguments[2],2)),e=0,n=f(A.length),r=Ot(this,n);n>e;e++)r[e]=a?I(A[e],e):A[e];return r},Dt=function(){for(var t=0,e=arguments.length,n=Ot(this,e);e>t;)n[t]=arguments[t++];return n},jt=!!B&&o((function(){ct.call(new B(1))})),kt=function(){return ct.apply(jt?at.call(Pt(this)):Pt(this),arguments)},Lt={copyWithin:function(t,e){return F.call(Pt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return q(Pt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(Pt(this),arguments)},filter:function(t){return St(this,Y(Pt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return $(Pt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Pt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){X(Pt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Pt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Pt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return Ct.apply(Pt(this),arguments)},lastIndexOf:function(t){return gt.apply(Pt(this),arguments)},map:function(t){return mt(Pt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return At.apply(Pt(this),arguments)},reduceRight:function(t){return st.apply(Pt(this),arguments)},reverse:function(){for(var t,e=Pt(this).length,n=Math.floor(e/2),i=0;i<n;)t=this[i],this[i++]=this[--e],this[e]=t;return this},some:function(t){return Q(Pt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return It.call(Pt(this),t)},subarray:function(t,e){var n=Pt(this),i=n.length,r=p(t,i);return new(j(n,n[pt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,f((void 0===e?i:p(e,i))-r))}},Nt=function(t,e){return St(this,at.call(Pt(this),t,e))},Tt=function(t){Pt(this);var e=wt(arguments[1],1),n=this.length,i=b(t),r=f(i.length),o=0;if(r+e>n)throw Z("Wrong length!");for(;o<r;)this[e+o]=i[o++]},Rt={entries:function(){return ot.call(Pt(this))},keys:function(){return rt.call(Pt(this))},values:function(){return it.call(Pt(this))}},Ft=function(t,e){return m(t)&&t[yt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Gt=function(t,e){return Ft(t,e=d(e,!0))?a(2,t[e]):W(t,e)},Ut=function(t,e,n){return!(Ft(t,e=d(e,!0))&&m(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?V(t,e,n):(t[e]=n.value,t)};dt||(U.f=Gt,G.f=Ut),g(g.S+g.F*!dt,"Object",{getOwnPropertyDescriptor:Gt,defineProperty:Ut}),o((function(){ut.call({})}))&&(ut=ct=function(){return Ct.call(this)});var Vt=c({},Lt);c(Vt,Rt),u(Vt,lt,Rt.values),c(Vt,{slice:Nt,set:Tt,constructor:function(){},toString:ut,toLocaleString:kt}),Et(Vt,"buffer","b"),Et(Vt,"byteOffset","o"),Et(Vt,"byteLength","l"),Et(Vt,"length","e"),V(Vt,ft,{get:function(){return this[yt]}}),t.exports=function(t,e,n,s){var C=t+((s=!!s)?"Clamped":"")+"Array",a="get"+t,c="set"+t,l=r[C],p=l||{},d=l&&P(l),y=!l||!A.ABV,b={},x=l&&l.prototype,S=function(t,n){V(t,n,{get:function(){return function(t,n){var i=t._d;return i.v[a](n*e+i.o,bt)}(this,n)},set:function(t){return function(t,n,i){var r=t._d;s&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),r.v[c](n*e+r.o,i,bt)}(this,n,t)},enumerable:!0})};y?(l=n((function(t,n,i,r){I(t,l,C,"_d");var o,g,A,s,a=0,c=0;if(m(n)){if(!(n instanceof J||"ArrayBuffer"==(s=v(n))||"SharedArrayBuffer"==s))return yt in n?_t(l,n):Mt.call(l,n);o=n,c=wt(i,e);var p=n.byteLength;if(void 0===r){if(p%e)throw Z("Wrong length!");if((g=p-c)<0)throw Z("Wrong length!")}else if((g=f(r)*e)+c>p)throw Z("Wrong length!");A=g/e}else A=h(n),o=new J(g=A*e);for(u(t,"_d",{b:o,o:c,l:g,e:A,v:new K(o)});a<A;)S(t,a++)})),x=l.prototype=w(Vt),u(x,"constructor",l)):o((function(){l(1)}))&&o((function(){new l(-1)}))&&N((function(t){new l,new l(null),new l(1.5),new l(t)}),!0)||(l=n((function(t,n,i,r){var o;return I(t,l,C),m(n)?n instanceof J||"ArrayBuffer"==(o=v(n))||"SharedArrayBuffer"==o?void 0!==r?new p(n,wt(i,e),r):void 0!==i?new p(n,wt(i,e)):new p(n):yt in n?_t(l,n):Mt.call(l,n):new p(h(n))})),X(d!==Function.prototype?O(p).concat(O(d)):O(p),(function(t){t in l||u(l,t,p[t])})),l.prototype=x,i||(x.constructor=l));var _=x[lt],E=!!_&&("values"==_.name||null==_.name),M=Rt.values;u(l,ht,!0),u(x,yt,C),u(x,vt,!0),u(x,pt,l),(s?new l(1)[ft]==C:ft in x)||V(x,ft,{get:function(){return C}}),b[C]=l,g(g.G+g.W+g.F*(l!=p),b),g(g.S,C,{BYTES_PER_ELEMENT:e}),g(g.S+g.F*o((function(){p.of.call(l,1)})),C,{from:Mt,of:Dt}),"BYTES_PER_ELEMENT"in x||u(x,"BYTES_PER_ELEMENT",e),g(g.P,C,Lt),T(C),g(g.P+g.F*xt,C,{set:Tt}),g(g.P+g.F*!E,C,Rt),i||x.toString==ut||(x.toString=ut),g(g.P+g.F*o((function(){new l(1).slice()})),C,{slice:Nt}),g(g.P+g.F*(o((function(){return[1,2].toLocaleString()!=new l([1,2]).toLocaleString()}))||!o((function(){x.toLocaleString.call([1,2])}))),C,{toLocaleString:kt}),L[C]=E?_:M,i||E||u(x,lt,M)}}else t.exports=function(){}},function(t,e,n){var i=n(132),r=n(0),o=n(53)("metadata"),g=o.store||(o.store=new(n(135))),A=function(t,e,n){var r=g.get(t);if(!r){if(!n)return;g.set(t,r=new i)}var o=r.get(e);if(!o){if(!n)return;r.set(e,o=new i)}return o};t.exports={store:g,map:A,has:function(t,e,n){var i=A(e,n,!1);return void 0!==i&&i.has(t)},get:function(t,e,n){var i=A(e,n,!1);return void 0===i?void 0:i.get(t)},set:function(t,e,n,i){A(n,i,!0).set(t,e)},keys:function(t,e){var n=A(t,e,!1),i=[];return n&&n.forEach((function(t,e){i.push(e)})),i},key:function(t){return void 0===t||"symbol"==typeof t?t:String(t)},exp:function(t){r(r.S,"Reflect",t)}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=!1},function(t,e,n){var i=n(42)("meta"),r=n(3),o=n(17),g=n(8).f,A=0,s=Object.isExtensible||function(){return!0},C=!n(4)((function(){return s(Object.preventExtensions({}))})),I=function(t){g(t,i,{value:{i:"O"+ ++A,w:{}}})},a=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!s(t))return"F";if(!e)return"E";I(t)}return t[i].i},getWeak:function(t,e){if(!o(t,i)){if(!s(t))return!0;if(!e)return!1;I(t)}return t[i].w},onFreeze:function(t){return C&&a.NEED&&s(t)&&!o(t,i)&&I(t),t}}},function(t,e,n){var i=n(24),r=n(5)("toStringTag"),o="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,g;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:o?i(e):"Object"==(g=i(e))&&"function"==typeof e.callee?"Arguments":g}},function(t,e,n){var i=n(5)("unscopables"),r=Array.prototype;null==r[i]&&n(18)(r,i,{}),t.exports=function(t){r[i][t]=!0}},function(t,e,n){var i=n(23),r=n(125),o=n(93),g=n(1),A=n(7),s=n(56),C={},I={};(e=t.exports=function(t,e,n,a,u){var c,l,f,h,p=u?function(){return t}:s(t),d=i(n,a,e?2:1),y=0;if("function"!=typeof p)throw TypeError(t+" is not iterable!");if(o(p)){for(c=A(t.length);c>y;y++)if((h=e?d(g(l=t[y])[0],l[1]):d(t[y]))===C||h===I)return h}else for(f=p.call(t);!(l=f.next()).done;)if((h=r(f,d,l.value,e))===C||h===I)return h}).BREAK=C,e.RETURN=I},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e,n){var i=n(25),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},function(t,e,n){var i=n(114),r=n(81).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e){t.exports={}},function(t,e,n){"use strict";var i=n(2),r=n(8),o=n(6),g=n(5)("species");t.exports=function(t){var e=i[t];o&&e&&!e[g]&&r.f(e,g,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var i=n(19);t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},function(t,e,n){var i=n(3);t.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var g=function(t){function e(n){var i=n.hover,r=o(n,["hover"]),g=this;if(!r.renderer)throw r;return i||(i={fillColor:e.Setting.get(r.renderer).fillColor,storkeColor:e.Setting.get(r.renderer).storkeColor}),(g=t.call(this,r)||this).hover=i,g.hover.r=g.hover.r||g.init.r,g.real.setAttribute("class","variable"),g.adopt=!1,g.disable=!1,g.zIndex=2,g}return r(e,t),e.prototype.click=function(){var t=this;console.log(this.renderer.processing.points.find((function(e){return e.ele===t})))},e.prototype.setHoverStyle=function(){this.fillColor=this.hover.fillColor,this.strokeWidth=this.hover.r,this.storkeColor=this.hover.storkeColor},e.prototype.setUnHoverStyle=function(){this.fillColor=this.init.fillColor,this.strokeWidth=this.init.strokeWidth,this.storkeColor=this.init.storkeColor},e.prototype.dragStart=function(){this.dragStartPoint={x:this.x,y:this.y}},e.prototype.drag=function(t){if(this.disable)return!1;this.x=this.dragStartPoint.x+t.x*this.multiple,this.y=this.dragStartPoint.y+t.y*this.multiple},e.prototype.dragEnd=function(){delete this.dragStartPoint},e.Setting=new Map,e}(n(109).default);e.default=g},function(t,e,n){var i=n(8).f,r=n(17),o=n(5)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){var i=n(0),r=n(28),o=n(4),g=n(86),A="["+g+"]",s=RegExp("^"+A+A+"*"),C=RegExp(A+A+"*$"),I=function(t,e,n){var r={},A=o((function(){return!!g[t]()||"
"!="
"[t]()})),s=r[t]=A?e(a):g[t];n&&(r[n]=s),i(i.P+i.F*A,"String",r)},a=I.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(s,"")),2&e&&(t=t.replace(C,"")),t};t.exports=I},function(t,e,n){var i=n(14),r=n(2),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(37)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var i=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(39),r=n(5)("iterator"),o=n(45);t.exports=n(14).getIteratorMethod=function(t){if(null!=t)return t[r]||t["@@iterator"]||o[i(t)]}},function(t,e,n){"use strict";var i=n(1);t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var i=n(1),r=n(12),o=n(5)("species");t.exports=function(t,e){var n,g=i(t).constructor;return void 0===g||null==(n=i(g)[o])?e:r(n)}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n},A=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var s=n(9),C=n(50),I=n(16),a=n(31),u=n(13),c=n(10),l=function(t){function e(e){var n=e.points,i=e.fill,r=void 0===i?"rgba(0,0,0,0)":i,A=e.stroke,s=void 0===A?"rgba(255,255,255,0.5)":A,I=e.width,a=void 0===I?1:I,u=e.hover,l=g(e,["points","fill","stroke","width","hover"]),f=this,h=[n[0],n[1]],p=n.slice(2).map((function(t){return new C.default(o(o({},t),{renderer:l.renderer}))})),d={fill:r,stroke:s,width:a};return u=u||o(o({},d),{fill:"rgba(243, 255, 0, 0.8)",strokeBorder:"rgba(243, 255, 0, 0.8)"}),(f=t.call(this,o(o({linePoints:h,hover:u,otherPoints:p},d),l))||this).points=f.linePoints.concat(f.otherPoints),f.selectLineIndex=-1,f.init=d,f.cacheVers=[c.lineVector({points:[f.points[1],f.points[2]]}),c.lineVector({points:[f.points[0],f.points[3]]})],f.__enterHandle=function(){f.hasTriggerEvent()||~f.selectLineIndex&&!f.select||Object.keys(f.hover).forEach((function(t){return f[t]=f.hover[t]}))},f.__leaveHandle=function(){f.hasTriggerEvent()||f.select||Object.keys(f.init).forEach((function(t){return f[t]=f.init[t]}))},f.__lineEnter=function(t){f.hasTriggerEvent()||~f.selectLineIndex||f.__draging||(f.selectLineIndex=f.lines.indexOf(t.target),f.update())},f.__lineLeave=function(t){f.hasTriggerEvent()||f.__draging||(f.selectLineIndex=-1,f.update())},f.__lineClick=function(t){return t.stopPropagation()},f}return r(e,t),e.prototype.updateFirstLinePoints=function(){this.firstLinePoints=this.attachment.points.map((function(t){return{x:t.x,y:t.y}}))},e.prototype.grentNode=function(){var t=this,e=document.createElementNS(s.SVGURI,"g");return this.wrapPath=document.createElementNS(s.SVGURI,"path"),this.leftLine=document.createElementNS(s.SVGURI,"path"),this.rightLine=document.createElementNS(s.SVGURI,"path"),this.bottomLeft=document.createElementNS(s.SVGURI,"path"),this.topLine=document.createElementNS(s.SVGURI,"path"),this.overLine1=document.createElementNS(s.SVGURI,"path"),this.overLine2=document.createElementNS(s.SVGURI,"path"),this.lines=[this.leftLine,this.rightLine,this.topLine,this.overLine1,this.overLine2,this.bottomLeft],this.wrapPath.setAttribute("stroke","rgba(0,0,0,0)"),this.nextTick((function(){t.points=t.linePoints.concat(t.otherPoints),t.addEvent(),t.updateThickness(),t.updateFirstLinePoints()})),e.appendChild(this.overLine1),e.appendChild(this.overLine2),e.appendChild(this.wrapPath),e.appendChild(this.leftLine),e.appendChild(this.topLine),e.appendChild(this.rightLine),e.appendChild(this.bottomLeft),e},e.prototype.update=function(){var t=this;if(this.points){var e=this.width*this.multiple;this.lines.forEach((function(n){n.setAttribute("stroke-width",e.toString()),n.setAttribute("stroke-linecap","round"),n.setAttribute("stroke",t.stroke)})),u.type.isNumber(this.hoverIndex)?this.lines[this.hoverIndex].setAttribute("stroke",this.hover.strokeBorder):(this.wrapPath.setAttribute("stroke-width","0"),this.wrapPath.setAttribute("fill",this.fill),this.wrapPath.setAttribute("d","M "+this.points.map((function(t){return t.x+" "+t.y})).join(" L "))),this.overLine1.setAttribute("d","M "+this.points[0].x+" "+this.points[0].y+" L "+this.points[2].x+" "+this.points[2].y),this.overLine2.setAttribute("d","M "+this.points[3].x+" "+this.points[3].y+" L "+this.points[1].x+" "+this.points[1].y),this.topLine.setAttribute("d","M "+this.points[3].x+" "+this.points[3].y+" L "+this.points[2].x+" "+this.points[2].y),this.leftLine.setAttribute("d","M "+this.points[0].x+" "+this.points[0].y+" L "+this.points[3].x+" "+this.points[3].y),this.rightLine.setAttribute("d","M "+this.points[2].x+" "+this.points[2].y+" L "+this.points[1].x+" "+this.points[1].y),this.bottomLeft.setAttribute("d","M "+this.points[0].x+" "+this.points[0].y+" L "+this.points[1].x+" "+this.points[1].y),~this.selectLineIndex&&this.lines[this.selectLineIndex].setAttribute("stroke",this.hover.strokeBorder),this.attachment.update()}},e.prototype.hasTriggerEvent=function(){return I.CADElement.examples.get(this.renderer).some((function(t){return t.__draging}))},e.prototype.wallSelect=function(){var t=this;this.select?Object.keys(this.hover).forEach((function(e){return t[e]=t.hover[e]})):Object.keys(this.init).forEach((function(e){return t[e]=t.init[e]}))},e.prototype.addEvent=function(){var t=this;this.wrapPath.addEventListener("mouseenter",this.__enterHandle,!1),this.wrapPath.addEventListener("mouseleave",this.__leaveHandle,!1),this.lines.forEach((function(e){e.addEventListener("mouseenter",t.__lineEnter,!1),e.addEventListener("mouseleave",t.__lineLeave,!1),e.addEventListener("click",t.__lineClick,!1)}))},e.prototype.updateThickness=function(t){void 0===t&&(t=[this.points[0],this.points[3]]),this.thickness=c.lineDis({points:t})},e.prototype.checkPeripheral=function(t){var e=this;return void 0===t&&(t=this.points),this.readyPoints=t,this.attachment.wallLines.every((function(n){return n===e.attachment||!c.segmentsIntr(n,{points:[t[0],t[3]]})&&!c.segmentsIntr(n,{points:[t[1],t[2]]})}))},e.prototype.getPeripheral=function(t){void 0===t&&(t=this.points);var e={x:this.firstLinePoints[0].x-this.attachment.points[0].x,y:this.firstLinePoints[0].y-this.attachment.points[0].y},n={x:this.firstLinePoints[1].x-this.attachment.points[1].x,y:this.firstLinePoints[1].y-this.attachment.points[1].y},i=e.x||e.y?e:n,r={x:t[3].x+i.x,y:t[3].y+i.y},o={x:t[2].x+i.x,y:t[2].y+i.y},g={points:[t[0],t[1]]},s=c.getDisVerticalLinePoints(g,t[0],this.thickness).sort((function(t,e){return c.lineDis({points:[t,r]})-c.lineDis({points:[e,r]})}))[0],C=c.getDisVerticalLinePoints(g,t[1],this.thickness).sort((function(t,e){return c.lineDis({points:[t,o]})-c.lineDis({points:[e,o]})}))[0],I=c.getDisPointLinePoints({points:[t[0],s]},t[0],this.thickness),a=I[0],u=I[1];s=c.lineDis({points:[a,t[3]]})>c.lineDis({points:[u,t[3]]})?u:a;var l=c.getDisPointLinePoints({points:[t[1],C]},t[1],this.thickness),f=l[0],h=l[1];return C=c.lineDis({points:[f,t[2]]})>c.lineDis({points:[h,t[2]]})?h:f,(t=A(t))[2]=C,t[3]=s,this.checkPeripheral(t)?[C,s]:[]},e.prototype.updatePeripheral=function(t){void 0===t&&(t=this.points);var e=this.getPeripheral(t);return!(0===e.length||!this.checkPeripheral(t.slice(0,2).concat(e)))&&(this.points[2].x=e[0].x,this.points[2].y=e[0].y,this.points[3].x=e[1].x,this.points[3].y=e[1].y,this.readyPoints=t.slice(0,2).concat(e),!0)},e.prototype.intercept=function(e,n,i){var r,g,s,C,I=this,a=n.x,l=n.y;if(u.type.isUndefined(a)||u.type.isUndefined(l))return!0;if(!1===(r=t.prototype.intercept.call(this,e,{x:a,y:l},i)))return r;if(g=this.points.findIndex((function(t){return e.some((function(e){return e===t}))})),C=this.attachment.points.findIndex((function(t){return s=e.find((function(e){return e===t}))})),!~g&&s){(h=[])[this.points.indexOf(this.linePoints[0])]=r.__points[0],h[this.points.indexOf(this.linePoints[1])]=r.__points[1],h.push(this.points[2],this.points[3]),this.firstLinePoints[C]=s;var f=this.getPeripheral(h);if(this.cacheVers=[c.lineVector({points:[this.points[1],this.points[2]]}),c.lineVector({points:[this.points[0],this.points[3]]})],0===f.length)return!1}else{var h=A(this.points);if(!~g)return r;if(h[g]=o({},i[e.indexOf(h[g])]),!(g<2)){var p,d=void 0,y=void 0,v=void 0,m=void 0,b=void 0;2===g?(d={points:[this.points[1],this.points[2]]},y={points:[this.points[0],this.points[3]]},p=this.points[2],v=2,m=3,b=this.cacheVers[1]):(y={points:[this.points[1],this.points[2]]},d={points:[this.points[0],this.points[3]]},p=this.points[3],v=3,m=2,b=d,b=this.cacheVers[0]);var x=c.lineVector(d);if(x.x-b.x<.01&&x.y-b.y<.01){var w=c.getLinePoint(d,{x:a,y:l}),P=c.getLinePoint(y,{x:a,y:l}),O=y.points[1].x+a-p.x,S=y.points[1].y+l-p.y,_=c.getLinePoint(y,{x:O,y:S}),E=Math.abs(this.moveLineDis-c.lineDis({points:[w,P]}))>Math.abs(this.moveLineDis-c.lineDis({points:[w,_]}))?_:P;h[v]=w,h[m]=E}return this.readyPoints=h,this.nextTick((function(){I.tick>I.maxTick&&(I.thickness=I.maxTick-.011,I.updatePeripheral())})),!0}if(!this.updatePeripheral(h))return!1}return r},e.prototype.dragStart=function(t){var e=this.lines.indexOf(t.target);this.__index=e<3?e:-1,this.__startPoints=this.points.map((function(t){return{x:t.x,y:t.y}}))},e.prototype.drag=function(t){var e=t.x*this.multiple,n=t.y*this.multiple,i=~this.__index?[this.points[this.__index]]:this.linePoints,r=~this.__index?[this.__startPoints[this.__index]]:this.__startPoints;if(this.__index<2)i.forEach((function(t,i){t.x=r[i].x+e,t.y=r[i].y+n}));else{var o=c.getLinePoint({points:[this.points[0],this.points[3]]},{x:this.__startPoints[3].x+e,y:this.__startPoints[3].y+n}),g=c.getLinePoint({points:[this.points[1],this.points[2]]},{x:this.__startPoints[2].x+e,y:this.__startPoints[2].y+n});this.checkPeripheral(this.points.slice(0,2).map((function(t){return{x:t.x,y:t.y}})).concat([g,o]))&&(this.points[3].x=o.x,this.points[3].y=o.y,this.points[2].x=g.x,this.points[2].y=g.y)}},e.prototype.dragEnd=function(){delete this.dragStartPoints,delete this.__index,this.updateThickness(),this.__leaveHandle(),this.__lineLeave(),t.prototype.dragEnd.call(this)},e.prototype.delEvent=function(){var t=this;this.wrapPath.removeEventListener("mouseenter",this.__enterHandle,!1),this.wrapPath.removeEventListener("mouseleave",this.__leaveHandle,!1),this.lines.forEach((function(e){e.removeEventListener("mouseenter",t.__lineEnter,!1),e.removeEventListener("mouseleave",t.__lineLeave,!1),e.removeEventListener("click",t.__lineClick,!1)}))},e.prototype.destroy=function(){this.delEvent(),t.prototype.destroy.call(this)},e}(a.default);e.default=l},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var A=n(9),s=n(31),C=n(10),I=function(t){function e(e){var n=e.points,i=e.fill,r=void 0===i?"rgba(0,0,0,0)":i,A=e.stroke,s=void 0===A?"rgba(255,255,255,0.5)":A,C=e.outWidth,I=void 0===C?1:C,a=e.foorWidth,u=void 0===a?6:a,c=e.linecap,l=void 0===c?"square":c,f=e.foorColor,h=void 0===f?"rgba(0,0,0,0)":f,p=e.hover,d=e.within,y=void 0===d?0:d,v=g(e,["points","fill","stroke","outWidth","foorWidth","linecap","foorColor","hover","within"]),m=this,b={fill:r,stroke:s,outWidth:I,foorWidth:u,foorColor:h,linecap:l};return p=p||o(o({},b),{fill:"rgba(243, 255, 0, 0.8)"}),(m=t.call(this,o(o({linePoints:n,hover:p,within:y},b),v))||this).init=b,m}return r(e,t),e.prototype.grentNode=function(){var t=this,e=document.createElementNS(A.SVGURI,"g");return this.arc=document.createElementNS(A.SVGURI,"path"),this.outLine=document.createElementNS(A.SVGURI,"path"),e.appendChild(this.outLine),e.appendChild(this.arc),this.nextTick((function(){e.appendChild(t.linePoints[0].real),e.appendChild(t.linePoints[1].real)})),e},e.prototype.getCalcPoint=function(t){void 0===t&&(t=C.lineDis({points:this.linePoints}));var e=this.linePoints[0];return C.getDisVectorPoints(C.verticalLine(this.attachment),e,t)[0]},e.prototype.getDrawArgs=function(){var t,e,n,i;0===this.within||2===this.within?(n=(t=this.linePoints)[0],i=t[1]):(i=(e=this.linePoints)[0],n=e[1]);var r=C.lineDis({points:this.linePoints}),o=C.getDisVerticalLinePoints(this.attachment,n,r),g=o[0],A=o[1],s=0===this.within||1===this.within?this.rooms.some((function(t){return C.pointInside(t,g)}))?g:A:this.rooms.some((function(t){return!C.pointInside(t,g)}))?g:A;return[n,i,s,r,C.isClockWise([n,i,s])]},e.prototype.update=function(){var t=this.getDrawArgs(),e=t[0],n=t[1],i=t[2],r=t[3],o=t[4];this.arc.setAttribute("d","M "+e.x+" "+e.y+" L "+i.x+" "+i.y+" A "+r+" "+r+" 0 0 "+(o?"1":"0")+" "+n.x+" "+n.y+" Z"),this.arc.setAttribute("stroke-width",(this.outWidth*this.multiple).toString()),this.arc.setAttribute("stroke",this.stroke),this.arc.setAttribute("fill",this.fill),this.outLine.setAttribute("stroke",this.foorColor),this.outLine.setAttribute("fill",this.fill),this.outLine.setAttribute("stroke-width",(this.foorWidth*this.multiple).toString()),this.outLine.setAttribute("stroke-linecap",this.linecap),this.outLine.setAttribute("d","M "+this.linePoints[0].x+" "+this.linePoints[0].y+" L "+this.linePoints[1].x+" "+this.linePoints[1].y),this.attachment.update()},e.prototype.dragStart=function(t){this.__index=t.target===this.linePoints[0].real?0:t.target===this.linePoints[1].real?1:-1,this.__startPoints=this.linePoints.map((function(t){return{x:t.x,y:t.y}}))},e.prototype.drag=function(t){var e=this,n=~this.__index?[this.linePoints[this.__index]]:this.linePoints,i=~this.__index?[this.__startPoints[this.__index]]:this.__startPoints;n.forEach((function(n,r){n.x=i[r].x+t.x*e.multiple,n.y=i[r].y+t.y*e.multiple}))},e.prototype.dragEnd=function(){delete this.dragStartPoints,delete this.__index,t.prototype.dragEnd.call(this)},e.prototype.setHoverStyle=function(){var t=this;Object.keys(this.hover).forEach((function(e){return t[e]=t.hover[e]}))},e.prototype.setUnHoverStyle=function(){var t=this;Object.keys(this.init).forEach((function(e){return t[e]=t.init[e]}))},e}(s.default);e.default=I},function(t,e,n){var i=n(15),r=n(7),o=n(43);t.exports=function(t){return function(e,n,g){var A,s=i(e),C=r(s.length),I=o(g,C);if(t&&n!=n){for(;C>I;)if((A=s[I++])!=A)return!0}else for(;C>I;I++)if((t||I in s)&&s[I]===n)return t||I||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(24);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(25),r=n(28);t.exports=function(t){return function(e,n){var o,g,A=String(r(e)),s=i(n),C=A.length;return s<0||s>=C?t?"":void 0:(o=A.charCodeAt(s))<55296||o>56319||s+1===C||(g=A.charCodeAt(s+1))<56320||g>57343?t?A.charAt(s):o:t?A.slice(s,s+2):g-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var i=n(37),r=n(0),o=n(19),g=n(18),A=n(45),s=n(66),C=n(51),I=n(21),a=n(5)("iterator"),u=!([].keys&&"next"in[].keys()),c=function(){return this};t.exports=function(t,e,n,l,f,h,p){s(n,e,l);var d,y,v,m=function(t){if(!u&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},b=e+" Iterator",x="values"==f,w=!1,P=t.prototype,O=P[a]||P["@@iterator"]||f&&P[f],S=O||m(f),_=f?x?m("entries"):S:void 0,E="Array"==e&&P.entries||O;if(E&&(v=I(E.call(new t)))!==Object.prototype&&v.next&&(C(v,b,!0),i||"function"==typeof v[a]||g(v,a,c)),x&&O&&"values"!==O.name&&(w=!0,S=function(){return O.call(this)}),i&&!p||!u&&!w&&P[a]||g(P,a,S),A[e]=S,A[b]=c,f)if(d={values:x?S:m("values"),keys:h?S:m("keys"),entries:_},p)for(y in d)y in P||o(P,y,d[y]);else r(r.P+r.F*(u||w),e,d);return d}},function(t,e,n){"use strict";var i=n(33),r=n(36),o=n(51),g={};n(18)(g,n(5)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(g,{next:r(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var i=n(3),r=n(24),o=n(5)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},function(t,e,n){var i=n(5)("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],g=o[i]();g.next=function(){return{done:n=!0}},o[i]=function(){return g},t(o)}catch(t){}return n}},function(t,e,n){"use strict";var i=n(39),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},function(t,e,n){"use strict";n(128);var i=n(19),r=n(18),o=n(4),g=n(28),A=n(5),s=n(99),C=A("species"),I=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),a=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var u=A(t),c=!o((function(){var e={};return e[u]=function(){return 7},7!=""[t](e)})),l=c?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[C]=function(){return n}),n[u](""),!e})):void 0;if(!c||!l||"replace"===t&&!I||"split"===t&&!a){var f=/./[u],h=n(g,u,""[t],(function(t,e,n,i,r){return e.exec===s?c&&!r?{done:!0,value:f.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),p=h[0],d=h[1];i(String.prototype,t,p),r(RegExp.prototype,u,2==e?function(t,e){return d.call(t,this,e)}:function(t){return d.call(t,this)})}}},function(t,e,n){var i=n(2).navigator;t.exports=i&&i.userAgent||""},function(t,e,n){"use strict";var i=n(2),r=n(0),o=n(19),g=n(48),A=n(38),s=n(41),C=n(47),I=n(3),a=n(4),u=n(68),c=n(51),l=n(87);t.exports=function(t,e,n,f,h,p){var d=i[t],y=d,v=h?"set":"add",m=y&&y.prototype,b={},x=function(t){var e=m[t];o(m,t,"delete"==t||"has"==t?function(t){return!(p&&!I(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return p&&!I(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof y&&(p||m.forEach&&!a((function(){(new y).entries().next()})))){var w=new y,P=w[v](p?{}:-0,1)!=w,O=a((function(){w.has(1)})),S=u((function(t){new y(t)})),_=!p&&a((function(){for(var t=new y,e=5;e--;)t[v](e,e);return!t.has(-0)}));S||((y=e((function(e,n){C(e,y,t);var i=l(new d,e,y);return null!=n&&s(n,h,i[v],i),i}))).prototype=m,m.constructor=y),(O||_)&&(x("delete"),x("has"),h&&x("get")),(_||P)&&x(v),p&&m.clear&&delete m.clear}else y=f.getConstructor(e,t,h,v),g(y.prototype,n),A.NEED=!0;return c(y,t),b[t]=y,r(r.G+r.W+r.F*(y!=d),b),p||f.setStrong(y,t,h),y}},function(t,e,n){for(var i,r=n(2),o=n(18),g=n(42),A=g("typed_array"),s=g("view"),C=!(!r.ArrayBuffer||!r.DataView),I=C,a=0,u="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");a<9;)(i=r[u[a++]])?(o(i.prototype,A,!0),o(i.prototype,s,!0)):I=!1;t.exports={ABV:C,CONSTR:I,TYPED:A,VIEW:s}},function(t,e,n){"use strict";t.exports=n(37)||!n(4)((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete n(2)[t]}))},function(t,e,n){"use strict";var i=n(0);t.exports=function(t){i(i.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){"use strict";var i=n(0),r=n(12),o=n(23),g=n(41);t.exports=function(t){i(i.S,t,{from:function(t){var e,n,i,A,s=arguments[1];return r(this),(e=void 0!==s)&&r(s),null==t?new this:(n=[],e?(i=0,A=o(s,arguments[2],2),g(t,!1,(function(t){n.push(A(t,i++))}))):g(t,!1,n.push,n),new this(n))}})}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n},A=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var s=n(16),C=n(50),I=n(10),a=n(13),u=n(9),c=n(110),l=function(t){function e(n){var i=n.minWidth,r=void 0===i?.1:i,A=n.points,s=n.room,a=n.renderer,u=n.top,l=n.bottom,f=n.angle,h=void 0===f?0:f,p=n.width,d=void 0===p?1:p,y=g(n,["minWidth","points","room","renderer","top","bottom","angle","width"]),v=this,m=A.map((function(t){return new C.default(o(o({},t),{renderer:a}))})),b=m.map((function(t,e){return new c.default({points:[m[e],m[e===m.length-1?0:e+1]],renderer:a,width:d,color:"rgba(255,255,255,0.5)"})}));(v=t.call(this,o(o({},y),{points:m,lines:b,renderer:a,angle:h,width:d,fill:"rgba(0,0,0,0)"}))||this).paths=b,v.points=m,v.zIndex=1,v.minWidth=r,v.room=s,v.stop=!0;var x=[];return Object.defineProperty(v,"movePoints",{get:function(){return x},set:function(t){x=t,t&&t.length>=2?this.moveLineDis=I.lineDis({points:x}):delete this.moveLineDis}}),v.real.setAttribute("class","variable"),e.attaArch.get(v.room)?e.attaArch.get(v.room).push(v):e.attaArch.set(v.room,[v]),Object.defineProperty(v,"top",{get:function(){return u},set:function(t){u=t,this.wallPos&&this.wallPos()}}),Object.defineProperty(v,"bottom",{get:function(){return l},set:function(t){l=t,this.wallPos&&this.wallPos()}}),v}return r(e,t),e.prototype.setHoverStyle=function(){this.fill="rgba(243, 255, 0, 0.8)"},e.prototype.setUnHoverStyle=function(){this.fill="rgba(243, 255, 0, 0)"},e.prototype.rotate=function(t){var e=this;if(t===this.angle)return!1;var n=I.faceRotate(this.points,t-this.angle);return!!this.check(n)&&(this.stop=!1,this.points.forEach((function(t,e){t.x=n[e].x,t.y=n[e].y})),this.nextTick((function(){return e.stop=!0})),!0)},e.prototype.grentNode=function(){var t=this,e=document.createElementNS(u.SVGURI,"g");return this.wrapPath=document.createElementNS(u.SVGURI,"path"),e.appendChild(this.wrapPath),this.nextTick((function(){t.lines.forEach((function(n){n.changeSelect=function(e){e&&t.changeSelect(e)},n.update(),e.appendChild(n.real)}))})),e},e.prototype.update=function(){this.wrapPath&&(this.wrapPath.setAttribute("stroke-width",(this.width*this.multiple).toString()),this.wrapPath.setAttribute("d","M "+this.points.map((function(t){return t.x+" "+t.y})).join(" L ")+" z"),this.wrapPath.setAttribute("fill",this.fill),this.wrapPath.setAttribute("stroke","rgba(255,255,255,0.5)"))},e.prototype.setRoom=function(t){if(void 0===t&&(t=this.room),this.room!==t){var n=e.attaArch.get(this.room),i=e.attaArch.get(t)||e.attaArch.set(t,[]).get(t);n.splice(n.indexOf(this),1),i.push(this),this.room=t}},e.prototype.checkWidth=function(t){var e=this;return void 0===t&&(t=this.points),!t.some((function(n,i){var r=t[i===t.length-1?0:i+1];return I.lineDis({points:[n,r]})<=e.minWidth}))},e.prototype.checkPointOverlapAttaArch=function(t,n,i){return void 0===t&&(t=this.points),void 0===n&&(n=this.room),void 0===i&&(i=e.attaArch.get(n)||[]),i.length<1||(~(i=A(i)).indexOf(this)?i[i.indexOf(this)]={points:t}:i.push({points:t}),i.every((function(t){return i.every((function(e){return t===e||!I.isFaceIntersect(e.points,t.points)&&!I.isFaceContain(e.points,t.points)&&!I.isFaceContain(t.points,e.points)}))})))},e.prototype.checkOtherRoom=function(t,e){void 0===t&&(t=this.points),void 0===e&&(e=this.room);var n=this.renderer.processing,i=n.data.room,r=e.ground.map((function(t){return n.points.find((function(e){return e.id===t})).ele}));return!i.some((function(i){if(e===i)return!1;if(i.ground.length<=1)return!1;var o=i.ground.map((function(t){return n.points.find((function(e){return e.id===t})).ele}));return 2===o.length?!!(I.pointInside(t,o[0])||I.pointInside(t,o[1])||I.isFaceIntersect(o,t)):!I.isFaceChild(o,r)&&(I.isFaceIntersect(t,o)||I.isFaceContain(o,t)||I.isFaceContain(t,o))}))},e.prototype.qualified=function(t,e){void 0===t&&(t=this.points),void 0===e&&(e=this.room);var n=this.renderer.processing.getRoomEles(e);return!!I.isFaceContain(n.ground,t)&&!n.hole.some((function(e){return I.isFaceIntersect(e,t)||I.isFaceContain(e,t)||I.isFaceContain(t,e)}))},e.prototype.check=function(t,e){return void 0===t&&(t=this.points),void 0===e&&(e=this.room),this.qualified(t,e)&&this.checkWidth(t)&&this.checkPointOverlapAttaArch(t,e)&&this.checkOtherRoom(t,e)},e.prototype.intercept=function(t,e,n){var i=this,r=e.x,o=e.y,g=e.angle;if(a.type.isNumber(g))return this.rotate(g);if(a.type.isUndefined(r)||a.type.isUndefined(o)||!this.stop)return!0;var s=t.findIndex((function(t){return i.points.some((function(e){return e===t}))}));if(~s){var C=this.movePoints&&this.movePoints.length&&this.lines.find((function(t){return~t.points.indexOf(i.movePoints[0])&&~t.points.indexOf(i.movePoints[1])}));if(!(C=C||this.lines.find((function(t){return t.__draging||t.select}))))return!1;var u=this.points.indexOf(t[s]),l=A(this.points),f=t.find((function(t){return t!==C&&t instanceof c.default})),h=this.lines.indexOf(C),p=this.lines.indexOf(f),d=0;h+1===p?d=h-1:h-1===p?d=h+1:0===p?d=h-1:p===this.lines.length-1&&(d=h+1),d===this.lines.length?d=0:-1===d&&(d=this.lines.length-1);var y=this.lines[d],v=Number(!C.points.indexOf(t[s])),m=this.points.indexOf(C.points[v]),b=I.getLinePoint(f,{x:r,y:o}),x=I.getLinePoint(y,{x:r,y:o}),w=l[m].x+r-t[s].x,P=l[m].y+o-t[s].y,O=I.getLinePoint(y,{x:w,y:P}),S=Math.abs(this.moveLineDis-I.lineDis({points:[b,x]}))>Math.abs(this.moveLineDis-I.lineDis({points:[b,O]}))?O:x;return l[u]=b,l[m]=S,this.check(l)&&this.directUpdate(l),!1}},e.prototype.directUpdate=function(t){var e=this;t.forEach((function(t,n){e.points[n].__state.direct=!0,e.points[n].x=t.x,e.points[n].y=t.y,e.points[n].__state.direct=!1,e.points[n].update()})),this.lines.forEach((function(t){t.update()})),this.update(),this.wallPos&&this.wallPos(),this.fromAsync&&this.fromAsync()},e.prototype.dragStart=function(t){if(this.lines.some((function(e){return e.real===t.target}))){var e=this.lines.find((function(e){return e.real===t.target}));this.moveLineDis=I.lineDis(e)}else this.initPoints=this.points.map((function(t){return{x:t.x,y:t.y}}))},e.prototype.drag=function(t){var e=this;if(this.initPoints){this.stop=!1;var n=this.points.map((function(n,i){return{x:e.initPoints[i].x+t.x*e.multiple,y:e.initPoints[i].y+t.y*e.multiple}}));this.check(n)&&setTimeout((function(){e.directUpdate(n)}))}},e.prototype.dragEnd=function(){var t=this;this.nextTick((function(){t.stop=!0,delete t.moveLineDis})),delete this.initPoints},e.prototype.destroy=function(){var n=e.attaArch.get(this.room);n.splice(n.indexOf(this),1),this.points.forEach((function(t){return t.destroy()})),this.room=null,this.points=null,this.update=null,t.prototype.destroy.call(this)},e.attaArch=new Map,e}(s.CADElement);e.default=l},function(t,e,n){var i=n(3),r=n(2).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){var i=n(2),r=n(14),o=n(37),g=n(113),A=n(8).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||A(e,t,{value:g.f(t)})}},function(t,e,n){var i=n(53)("keys"),r=n(42);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var i=n(2).document;t.exports=i&&i.documentElement},function(t,e,n){"use strict";var i=n(6),r=n(32),o=n(62),g=n(55),A=n(11),s=n(54),C=Object.assign;t.exports=!C||n(4)((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=C({},t)[n]||Object.keys(C({},e)).join("")!=i}))?function(t,e){for(var n=A(t),C=arguments.length,I=1,a=o.f,u=g.f;C>I;)for(var c,l=s(arguments[I++]),f=a?r(l).concat(a(l)):r(l),h=f.length,p=0;h>p;)c=f[p++],i&&!u.call(l,c)||(n[c]=l[c]);return n}:C},function(t,e,n){var i=n(3),r=n(1),o=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{(i=n(23)(Function.call,n(20).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:o}},function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){var i=n(3),r=n(84).set;t.exports=function(t,e,n){var o,g=e.constructor;return g!==n&&"function"==typeof g&&(o=g.prototype)!==n.prototype&&i(o)&&r&&r(t,o),t}},function(t,e,n){"use strict";var i=n(25),r=n(28);t.exports=function(t){var e=String(r(this)),n="",o=i(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var i=n(67),r=n(28);t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},function(t,e,n){var i=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var i=n(45),r=n(5)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},function(t,e,n){"use strict";var i=n(8),r=n(36);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},function(t,e,n){var i=n(250);t.exports=function(t,e){return new(i(t))(e)}},function(t,e,n){"use strict";var i=n(11),r=n(43),o=n(7);t.exports=function(t){for(var e=i(this),n=o(e.length),g=arguments.length,A=r(g>1?arguments[1]:void 0,n),s=g>2?arguments[2]:void 0,C=void 0===s?n:r(s,n);C>A;)e[A++]=t;return e}},function(t,e,n){"use strict";var i=n(40),r=n(98),o=n(45),g=n(15);t.exports=n(65)(Array,"Array",(function(t,e){this._t=g(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var i,r,o=n(57),g=RegExp.prototype.exec,A=String.prototype.replace,s=g,C=(i=/a/,r=/b*/g,g.call(i,"a"),g.call(r,"a"),0!==i.lastIndex||0!==r.lastIndex),I=void 0!==/()??/.exec("")[1];(C||I)&&(s=function(t){var e,n,i,r,s=this;return I&&(n=new RegExp("^"+s.source+"$(?!\\s)",o.call(s))),C&&(e=s.lastIndex),i=g.call(s,t),C&&i&&(s.lastIndex=s.global?i.index+i[0].length:e),I&&i&&i.length>1&&A.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i}),t.exports=s},function(t,e,n){"use strict";var i=n(64)(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},function(t,e,n){var i,r,o,g=n(23),A=n(85),s=n(82),C=n(78),I=n(2),a=I.process,u=I.setImmediate,c=I.clearImmediate,l=I.MessageChannel,f=I.Dispatch,h=0,p={},d=function(){var t=+this;if(p.hasOwnProperty(t)){var e=p[t];delete p[t],e()}},y=function(t){d.call(t.data)};u&&c||(u=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return p[++h]=function(){A("function"==typeof t?t:Function(t),e)},i(h),h},c=function(t){delete p[t]},"process"==n(24)(a)?i=function(t){a.nextTick(g(d,t,1))}:f&&f.now?i=function(t){f.now(g(d,t,1))}:l?(o=(r=new l).port2,r.port1.onmessage=y,i=g(o.postMessage,o,1)):I.addEventListener&&"function"==typeof postMessage&&!I.importScripts?(i=function(t){I.postMessage(t+"","*")},I.addEventListener("message",y,!1)):i="onreadystatechange"in C("script")?function(t){s.appendChild(C("script")).onreadystatechange=function(){s.removeChild(this),d.call(t)}}:function(t){setTimeout(g(d,t,1),0)}),t.exports={set:u,clear:c}},function(t,e,n){var i=n(2),r=n(101).set,o=i.MutationObserver||i.WebKitMutationObserver,g=i.process,A=i.Promise,s="process"==n(24)(g);t.exports=function(){var t,e,n,C=function(){var i,r;for(s&&(i=g.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(s)n=function(){g.nextTick(C)};else if(!o||i.navigator&&i.navigator.standalone)if(A&&A.resolve){var I=A.resolve(void 0);n=function(){I.then(C)}}else n=function(){r.call(i,C)};else{var a=!0,u=document.createTextNode("");new o(C).observe(u,{characterData:!0}),n=function(){u.data=a=!a}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},function(t,e,n){"use strict";var i=n(12);function r(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=i(e),this.reject=i(n)}t.exports.f=function(t){return new r(t)}},function(t,e,n){"use strict";var i=n(2),r=n(6),o=n(37),g=n(73),A=n(18),s=n(48),C=n(4),I=n(47),a=n(25),u=n(7),c=n(137),l=n(44).f,f=n(8).f,h=n(96),p=n(51),d=i.ArrayBuffer,y=i.DataView,v=i.Math,m=i.RangeError,b=i.Infinity,x=d,w=v.abs,P=v.pow,O=v.floor,S=v.log,_=v.LN2,E=r?"_b":"buffer",M=r?"_l":"byteLength",D=r?"_o":"byteOffset";function j(t,e,n){var i,r,o,g=new Array(n),A=8*n-e-1,s=(1<<A)-1,C=s>>1,I=23===e?P(2,-24)-P(2,-77):0,a=0,u=t<0||0===t&&1/t<0?1:0;for((t=w(t))!=t||t===b?(r=t!=t?1:0,i=s):(i=O(S(t)/_),t*(o=P(2,-i))<1&&(i--,o*=2),(t+=i+C>=1?I/o:I*P(2,1-C))*o>=2&&(i++,o/=2),i+C>=s?(r=0,i=s):i+C>=1?(r=(t*o-1)*P(2,e),i+=C):(r=t*P(2,C-1)*P(2,e),i=0));e>=8;g[a++]=255&r,r/=256,e-=8);for(i=i<<e|r,A+=e;A>0;g[a++]=255&i,i/=256,A-=8);return g[--a]|=128*u,g}function k(t,e,n){var i,r=8*n-e-1,o=(1<<r)-1,g=o>>1,A=r-7,s=n-1,C=t[s--],I=127&C;for(C>>=7;A>0;I=256*I+t[s],s--,A-=8);for(i=I&(1<<-A)-1,I>>=-A,A+=e;A>0;i=256*i+t[s],s--,A-=8);if(0===I)I=1-g;else{if(I===o)return i?NaN:C?-b:b;i+=P(2,e),I-=g}return(C?-1:1)*i*P(2,I-e)}function L(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function N(t){return[255&t]}function T(t){return[255&t,t>>8&255]}function R(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function F(t){return j(t,52,8)}function G(t){return j(t,23,4)}function U(t,e,n){f(t.prototype,e,{get:function(){return this[n]}})}function V(t,e,n,i){var r=c(+n);if(r+e>t[M])throw m("Wrong index!");var o=t[E]._b,g=r+t[D],A=o.slice(g,g+e);return i?A:A.reverse()}function W(t,e,n,i,r,o){var g=c(+n);if(g+e>t[M])throw m("Wrong index!");for(var A=t[E]._b,s=g+t[D],C=i(+r),I=0;I<e;I++)A[s+I]=C[o?I:e-I-1]}if(g.ABV){if(!C((function(){d(1)}))||!C((function(){new d(-1)}))||C((function(){return new d,new d(1.5),new d(NaN),"ArrayBuffer"!=d.name}))){for(var Z,z=(d=function(t){return I(this,d),new x(c(t))}).prototype=x.prototype,B=l(x),H=0;B.length>H;)(Z=B[H++])in d||A(d,Z,x[Z]);o||(z.constructor=d)}var J=new y(new d(2)),K=y.prototype.setInt8;J.setInt8(0,2147483648),J.setInt8(1,2147483649),!J.getInt8(0)&&J.getInt8(1)||s(y.prototype,{setInt8:function(t,e){K.call(this,t,e<<24>>24)},setUint8:function(t,e){K.call(this,t,e<<24>>24)}},!0)}else d=function(t){I(this,d,"ArrayBuffer");var e=c(t);this._b=h.call(new Array(e),0),this[M]=e},y=function(t,e,n){I(this,y,"DataView"),I(t,d,"DataView");var i=t[M],r=a(e);if(r<0||r>i)throw m("Wrong offset!");if(r+(n=void 0===n?i-r:u(n))>i)throw m("Wrong length!");this[E]=t,this[D]=r,this[M]=n},r&&(U(d,"byteLength","_l"),U(y,"buffer","_b"),U(y,"byteLength","_l"),U(y,"byteOffset","_o")),s(y.prototype,{getInt8:function(t){return V(this,1,t)[0]<<24>>24},getUint8:function(t){return V(this,1,t)[0]},getInt16:function(t){var e=V(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=V(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return L(V(this,4,t,arguments[1]))},getUint32:function(t){return L(V(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return k(V(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return k(V(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){W(this,1,t,N,e)},setUint8:function(t,e){W(this,1,t,N,e)},setInt16:function(t,e){W(this,2,t,T,e,arguments[2])},setUint16:function(t,e){W(this,2,t,T,e,arguments[2])},setInt32:function(t,e){W(this,4,t,R,e,arguments[2])},setUint32:function(t,e){W(this,4,t,R,e,arguments[2])},setFloat32:function(t,e){W(this,4,t,G,e,arguments[2])},setFloat64:function(t,e){W(this,8,t,F,e,arguments[2])}});p(d,"ArrayBuffer"),p(y,"DataView"),A(y.prototype,g.VIEW,!0),e.ArrayBuffer=d,e.DataView=y},function(t,e,n){var i=n(44),r=n(62),o=n(1),g=n(2).Reflect;t.exports=g&&g.ownKeys||function(t){var e=i.f(o(t)),n=r.f;return n?e.concat(n(t)):e}},function(t,e){t.exports=function(t,e){var n=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,n)}}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var A=n(373),s=n(31),C=n(59),I=n(9),a=n(148),u=n(10),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.click=function(){var t=this;console.log(this.renderer.processing.lines.find((function(e){return e.ele===t})))},e.prototype.setHoverStyle=function(){this.color=this.hover.color,this.width=this.hover.width,this.linecap=this.hover.linecap},e.prototype.setUnHoverStyle=function(){this.color=this.init.color,this.width=this.init.width,this.linecap=this.init.linecap},e.prototype.dragStart=function(){this.clones=[],this.bkpoints=this.points.map((function(t){return{x:t.x,y:t.y}})),this.startPoint=this.renderer.screenToRealPoint({x:0,y:0}),this.bkverctor=u.lineVector(this)},e.prototype.drag=function(t){var e=this.renderer.screenToRealPoint(t);this.changePos({x:e.x-this.startPoint.x,y:e.y-this.startPoint.y})},e.prototype.dragEnd=function(){this.correct(),this.renderer.processing.lines.forEach((function(t){t.ele.__state.direct=!1})),this.renderer.processing.points.forEach((function(t){t.ele.__state.direct=!1}))},e.prototype.directUpdate=function(t){this.__state.direct=!0;var e=g(this.points);e.forEach((function(t){return t.__state.direct=!0})),t(),(e=Array.from(new Set(e.concat(this.points)))).forEach((function(t){return t.__state.direct=!1})),this.__state.direct=!1,e.concat(e).forEach((function(t){return t.update()})),this.wallLines.filter((function(t){return t.points.some((function(t){return~e.indexOf(t)}))})).forEach((function(t){t.update(),t.points[0].wallPos&&t.points[0].wallPos(),t.points[1].wallPos&&t.points[1].wallPos(),t.wallPos&&t.wallPos(),t.fromAsync&&t.fromAsync(),t.updateJoin()}))},e.prototype.grentNewJoinLine=function(t,e){var n,i=this,r=this.renderer.processing,A=r.points.find((function(e){return e.ele===t})),s=(r.lines.find((function(t){return t.ele===i})),r.addPoint(o({id:Math.max.apply(Math,r.points.map((function(t){return t.id})))+1},e)));r.data.vertex.push({id:s.id,x:e.x,y:e.y});var C=r.points.find((function(e){return e.ele===i.points[Number(!i.points.indexOf(t))]}));return r.data.room.forEach((function(e){var i=e.ground.indexOf(A.id),o=e.ground.indexOf(C.id),a=0===o&&1!==Math.abs(i-o)?e.ground.length:o,u=0===i&&1!==Math.abs(i-o)?e.ground.length:i;if(~i&&~o){var c=r.getLinesByRoom(e).find((function(t){return~t.points.indexOf(C.ele)&&~t.points.indexOf(A.ele)}));if(c){a>u?e.ground.splice(o,0,s.id):e.ground.splice(i,0,s.id);var l=g(c.points);l[c.points.indexOf(t)]=s.ele,c.directUpdate((function(){return c.points=l})),c.update(),n=r.cad.increase(I.SEFTLINE,{id:r.getNewLineId(),p1:s.id,p2:A.id,room:e,isOut:c.isOut,border:c.border,exterior:c.exterior}).obj}}e.hole.forEach((function(i){var o=i.pos.indexOf(A.id),a=i.pos.indexOf(C.id),u=0===a&&1!==Math.abs(o-a)?e.ground.length:a,c=0===o&&1!==Math.abs(o-a)?e.ground.length:o;if(~o&&~a){var l=r.getLinesByHole(i).find((function(t){return~t.points.indexOf(C.ele)&&~t.points.indexOf(A.ele)}));if(l){u>c?i.pos.splice(a,0,s.id):i.pos.splice(o,0,s.id);var f=g(l.points);f[l.points.indexOf(t)]=s.ele,l.directUpdate((function(){return l.points=f})),n=r.cad.increase(I.SEFTLINE,{id:r.getNewLineId(),p1:s.id,p2:A.id,room:e,border:l.border,exterior:l.exterior,isOut:l.isOut,hole:i}).obj}}}))})),this.wallLines.filter((function(t){return~t.points.indexOf(i.points[0])||~t.points.indexOf(i.points[1])})).forEach((function(t){t.update(),t.points[0].wallPos&&t.points[0].wallPos(),t.points[1].wallPos&&t.points[1].wallPos(),t.wallPos&&t.wallPos(),t.fromAsync&&t.fromAsync()})),n},e.prototype.getPointJoinLines=function(t){for(var e=this,n=this.wallLines.filter((function(n){return~n.points.indexOf(t)&&!(~e.points.indexOf(n.points[0])&&~e.points.indexOf(n.points[1]))})),i=[],r=function(t){i.some((function(e){return~e.points.indexOf(n[t].points[0])&&~e.points.indexOf(n[t].points[1])}))||i.push(n[t])},o=0;o<n.length;o++)r(o);return i},e.prototype.updatePoint=function(t,e,n){var i=this.getPointJoinLines(t),r=i[0],g=u.lineVector(this),A=Number(!this.points.indexOf(t)),s=this.points[A],C=!1;if(r){var I=u.lineVector(r)||r.lineVerctor,a=!1;isNaN(I.x)&&!isNaN(g.x)&&(C=!0);var c=this.points.indexOf(t),l=i.every((function(t){var e=u.lineVector(t);return Math.abs(Math.abs(e.x)-Math.abs(I.x))<.2&&Math.abs(Math.abs(e.y)-Math.abs(I.y))<.2})),f=Math.abs(Math.abs(I.x)-Math.abs(g.x))<.2&&Math.abs(Math.abs(I.y)-Math.abs(g.y))<.2||i.length>1&&!l;if(!~this.clones.indexOf(c)&&(f||C)){if(!C&&i.length>1)r=i.find((function(t){var e=u.lineVector(t);return e.x-g.x<.1&&e.y-g.y<.1}))||i.find((function(t){var e=u.lineVector(t),n=Math.abs(e.x-g.x),i=Math.abs(e.y-g.y);return n>.1&&n<.9||i>.1&&i<.9}))||i[0],I=r.lineVector||u.lineVector(r);var h=o({},e);Math.abs(g.x)>Math.abs(g.y)?h.x=t.x:h.y=t.y,C&&(e=h),h.x===t.x&&h.y===t.y||(r=this.grentNewJoinLine(t,h.x===t.x&&h.y===t.y?e:h),a=!0,this.clones.push(c),t=r.points[Number(!r.points.indexOf(t))],I=u.lineVector(r),r.lineVerctor=I)}if(e=u.getVectorPosPoint(I,r.points[0],e),r.lineVector=I,!a&&n&&!C&&(Math.abs(Math.abs(I.x)-Math.abs(g.x))<.9||Math.abs(Math.abs(I.y)-Math.abs(g.y))<.9)){var p=u.segmentsIntrFine(r,{points:[s,{x:s.x+1e4*this.bkverctor.x,y:s.y+1e4*this.bkverctor.y}]});p&&(e=p)}}else{if(this.getPointJoinLines(s).length){var d=this.points.indexOf(t);e={x:this.bkpoints[d].x+this.points[A].x-this.bkpoints[A].x,y:this.bkpoints[d].y+this.points[A].y-this.bkpoints[A].y}}r=this}var y=u.lineVector({points:[s,e]});return!(isNaN(e.x)||isNaN(e.y)||n&&(Math.abs(Math.abs(this.bkverctor.x)-Math.abs(y.x))>.05||Math.abs(Math.abs(this.bkverctor.y)-Math.abs(y.y))>.05))&&(t.__state.direct=!0,t.x=e.x,t.y=e.y,t.update(),t.__state.direct=!1,r)},e.prototype.getVerPos=function(t){var e=u.verticalLine(this);if(0===e.x)return{x:0,y:t.y};if(0===e.y)return{x:t.x,y:0};var n={points:[{x:-100*e.x,y:-100*e.y},{x:100*e.x,y:100*e.y}]},i=u.pointLineDis(n,t),r=Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2)-Math.pow(i,2)),o=u.getDisPointLinePoints(n,{x:0,y:0},r),g=o[0],A=o[1];return u.lineDis({points:[g,t]})>u.lineDis({points:[A,t]})?A:g},e.prototype.checkJoinArch=function(){var t=this;if(!a.collisionLineCheck(this.renderer.processing,this,this.points[0],this.points[0],this.points[1],this.points[1]))return!0;var e=s.default.attaArch.get(this);if(!e||0===e.length)return!1;var n=e.map((function(t){return[t.linePoints[0].getLineInsertPoint(),t.linePoints[1].getLineInsertPoint()]}));return e.some((function(e,i){if(!n[i][0]||!n[i][1]||!e.qualified(n[i]))return!0;if(!(e instanceof C.default))return!1;var r=e.getPeripheral(n[i].concat(e.points.slice(2)));return 0===r.length||!a.collisionColumnCheck(t.renderer.processing,n[i].concat(r))}))},e.prototype.updateArchs=function(){var t=s.default.attaArch.get(this);if(t&&0!==t.length){var e=t.map((function(t){return[t.linePoints[0].getLineInsertPoint(),t.linePoints[1].getLineInsertPoint()]}));t.forEach((function(t,n){if(t.__state.direct=!0,t.linePoints[0].__state.direct=!0,t.linePoints[1].__state.direct=!0,t.linePoints[0].x=e[n][0].x,t.linePoints[0].y=e[n][0].y,t.linePoints[1].x=e[n][1].x,t.linePoints[1].y=e[n][1].y,t.linePoints[0].update(),t.linePoints[1].update(),t.linePoints[0].__state.direct=!1,t.linePoints[1].__state.direct=!1,t instanceof C.default){var i=t.getPeripheral();t.points[2].__state.direct=!0,t.points[3].__state.direct=!0,t.points[2].x=i[0].x,t.points[2].y=i[0].y,t.points[3].x=i[1].x,t.points[3].y=i[1].y,t.points[2].update(),t.points[3].update(),t.points[2].__state.direct=!1,t.points[3].__state.direct=!1}t.__state.direct=!1,t.update()}))}},e.prototype.changePos=function(t){var e=this;0===t.x&&0===t.y||(t=this.getVerPos(t)),this.directUpdate((function(){var n=e.points.map((function(t){return{x:t.x,y:t.y}})),i=[0,1],r=e.getPointJoinLines(e.points[0]),o=e.getPointJoinLines(e.points[1]),g=(e.points.map((function(t){return{x:t.x,y:t.y}})),!0);if(0===r.length)i=[1,0];else if(0!==o.length){i=u.getPointCoordDistance(e.bkverctor,u.lineVector(r[0]))>u.getPointCoordDistance(e.bkverctor,u.lineVector(o[0]))?[0,1]:[1,0]}i.forEach((function(n,i){g&&(e.updatePoint(e.points[n],{x:e.bkpoints[n].x+t.x,y:e.bkpoints[n].y+t.y},!!i)||(g=!1))}));var A=e.wallLines.filter((function(t){return~t.points.indexOf(e.points[0])||~t.points.indexOf(e.points[1])}));!g||e.checkCross()||A.some((function(t){return t.checkJoinArch()}))?e.points.forEach((function(t,e){t.__state.direct=!0,t.x=n[e].x,t.y=n[e].y,t.update(),t.__state.direct=!1})):e.updateArchs()}))},e.prototype.correct=function(){for(var t=this.renderer.processing,e=t.points.map((function(t){return t.ele})),n=t.lines.map((function(t){return t.ele})),i=n.filter((function(t){return~e.indexOf(t.points[0])||~e.indexOf(t.points[1])})),r=function(t,e,n){return~t.points.indexOf(e)&&~t.points.indexOf(n)},o=function(o){var s=n[o],C=e.find((function(t){return!~s.points.indexOf(t)&&(u.lineDis({points:[s.points[0],t]})<.02||u.lineDis({points:[s.points[1],t]})<.02)}));if(!C)return"continue";var I=0;if(n.some((function(t){return r(t,C,s.points[0])})))I=0;else{if(!n.some((function(t){return r(t,C,s.points[1])})))return"continue";I=1}var a=s.points[I],c=t.getPointId(C),l=t.getPointId(a);return t.data.room.forEach((function(t){var e=t.ground.indexOf(l),n=t.ground.indexOf(c);~e&&(~n?t.ground.splice(e,1):t.ground[e]=c),t.hole.forEach((function(t){var e=t.pos.indexOf(l),n=t.pos.indexOf(c);~e&&(~n?t.pos.splice(e,1):t.pos[e]=c)}))})),i.filter((function(t){return~t.points.indexOf(C)&&~t.points.indexOf(a)})).forEach((function(e){t.lines.splice(t.lines.findIndex((function(t){return t.ele===e})),1),e.destroy()})),i.filter((function(t){return~t.points.indexOf(a)})).forEach((function(t){var e=t.points.indexOf(a),n=g(t.points);n[e]=C,t.directUpdate((function(){return t.points=n}))})),a.destroy(),{value:A.correct()}},A=this,s=0;s<n.length;s++){var C=o(s);if("object"==typeof C)return C.value}},e}(A.default);e.default=c},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var A=n(16),s=n(9),C=function(t){function e(n){var i=n.color,r=n.width,A=n.linecap,s=void 0===A?"square":A,C=g(n,["color","width","linecap"]),I=this;return r=r||e.Setting.get(C.renderer).width,i=i||e.Setting.get(C.renderer).color,(I=t.call(this,o({color:i,width:r,linecap:s},C))||this).init={color:i,width:r,linecap:s},I}return r(e,t),e.prototype.intercept=function(t,e,n){return!0},e.prototype.grentNode=function(){return document.createElementNS(s.SVGURI,"path")},e.prototype.update=function(){var t=this.width*this.multiple;this.real.setAttribute("stroke",this.color),this.real.setAttribute("stroke-width",t.toString()),this.real.setAttribute("stroke-linecap",this.linecap),this.real.setAttribute("d","M "+this.points[0].x+" "+this.points[0].y+" L "+this.points[1].x+" "+this.points[1].y)},e.Setting=new Map,e}(A.CADElement);e.default=C},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var A=n(16),s=n(9),C=1,I=function(t){function e(n){var i=n.strokeWidth,r=void 0===i?0:i,A=n.r,s=void 0===A?4:A,C=n.r1,I=void 0===C?4:C,a=n.fillColor,u=n.storkeColor,c=g(n,["strokeWidth","r","r1","fillColor","storkeColor"]),l=this;return a=a||e.Setting.get(c.renderer).fillColor,u=u||e.Setting.get(c.renderer).storkeColor,(l=t.call(this,o({storkeColor:u,fillColor:a,r:s,r1:I,strokeWidth:r},c))||this).init={strokeWidth:r,r:s,r1:I,fillColor:a,storkeColor:u},l.update(),l}return r(e,t),e.prototype.grentNode=function(){var t=document.createElementNS(s.SVGURI,"ellipse");return t.setAttribute("_id",(C++).toString()),t},e.prototype.update=function(){var t=this.r*this.multiple,e=this.r1*this.multiple,n=this.strokeWidth*this.multiple;try{this.real.setAttribute("cx",this.x.toString()),this.real.setAttribute("cy",this.y.toString()),this.real.setAttribute("fill",this.fillColor),this.real.setAttribute("rx",t.toString()),this.real.setAttribute("ry",e.toString()),this.real.setAttribute("stroke-width",n.toString()),this.real.setAttribute("stroke",this.storkeColor)}catch(t){console.error(this)}},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.fillColor="rgb(0, 200, 175)",e.storkeColor="green",e.Setting=new Map,e}(A.CADElement);e.default=I},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var A=function(t){function e(e){var n=e.hover,i=e.color,r=void 0===i?"#fff":i,A=e.width,s=void 0===A?3:A,C=e.linecap,I=g(e,["hover","color","width","linecap"]),a=this,u={color:r,width:s,linecap:C};return n=n||o(o({},u),{color:"rgba(243, 255, 0, 0.8)"}),(a=t.call(this,o({width:s,color:r},I))||this).hover=n,a.init=u,a.disable=!1,a.real.setAttribute("class","variable"),a}return r(e,t),e.prototype.setHoverStyle=function(){var t=this;Object.keys(this.hover).forEach((function(e){return t[e]=t.hover[e]}))},e.prototype.setUnHoverStyle=function(){var t=this;Object.keys(this.init).forEach((function(e){return t[e]=t.init[e]}))},e.prototype.click=function(){console.log(this)},e.prototype.dragStart=function(){this.dragStartPoints=this.points.map((function(t){return{x:t.x,y:t.y}}))},e.prototype.drag=function(t){var e=this;if(this.disable)return!1;this.points.forEach((function(n,i){n.x=e.dragStartPoints[i].x+t.x*e.multiple,n.y=e.dragStartPoints[i].y+t.y*e.multiple}))},e.prototype.dragEnd=function(){delete this.dragStartPoints},e}(n(108).default);e.default=A},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var A=n(110),s=n(9),C=n(31),I=n(10),a=function(t){function e(e){var n=e.points,i=e.fill,r=void 0===i?"rgba(0,0,0,0)":i,A=e.seam,s=void 0===A?"rgba(255,255,255,0)":A,C=e.width,I=void 0===C?6:C,a=e.stamWidth,u=void 0===a?.5:a,c=e.hover,l=g(e,["points","fill","seam","width","stamWidth","hover"]),f=this,h={fill:r,seam:s,width:I,stamWidth:u};return c=c||o(o({},h),{fill:"rgba(243, 255, 0, 0.8)"}),(f=t.call(this,o(o({linePoints:n,hover:c},l),h))||this).eleHover=!1,f}return r(e,t),e.prototype.grentNode=function(){var t=this,e=document.createElementNS(s.SVGURI,"g");return this.nextTick((function(){t.outLine=new A.default({points:t.linePoints,width:t.width,color:t.fill,renderer:t.renderer}),t.innerline=new A.default({points:t.linePoints,width:t.stamWidth,color:t.seam,renderer:t.renderer}),t.outLine.click=t.innerline.click=function(){return t.changeSelect(!0)},e.appendChild(t.outLine.real),e.appendChild(t.innerline.real),e.appendChild(t.linePoints[0].real),e.appendChild(t.linePoints[1].real),t.interceptUpdateStyle(),t.outLine.update(),t.innerline.update()})),this.clip1=document.createElementNS(s.SVGURI,"path"),this.clip2=document.createElementNS(s.SVGURI,"path"),this.clip3=document.createElementNS(s.SVGURI,"path"),this.clip4=document.createElementNS(s.SVGURI,"path"),this.clip1.setAttribute("stroke","rgba(255,255,255,0.5)"),this.clip2.setAttribute("stroke","rgba(255,255,255,0.5)"),this.clip3.setAttribute("stroke","rgba(255,255,255,0.5)"),this.clip4.setAttribute("stroke","rgba(255,255,255,0.5)"),e.appendChild(this.clip1),e.appendChild(this.clip2),e.appendChild(this.clip3),e.appendChild(this.clip4),e},e.prototype.getStyle=function(){return this.eleHover||this.select?this.hover:{width:this.width,fill:this.fill,seam:this.seam,stamWidth:this.stamWidth}},e.prototype.interceptUpdateStyle=function(){var t=this,e=this.outLine.intercept,n=this.innerline.intercept;this.outLine.intercept=function(n,i){var r=n[0],o=i.width,g=i.color;if(r===t.outLine&&(o||g)){var A=t.getStyle();return{width:A.width,color:A.fill}}return e.call(t)},this.innerline.intercept=function(e,i){var r=e[0],o=i.width,g=i.color;if(r===t.innerline&&(o||g)){var A=t.getStyle();return{width:A.stamWidth,color:A.seam}}return n.call(t)}},e.prototype.update=function(){this.outLine&&(this.outLine.width=Date.now(),this.innerline.width=Date.now());var t=I.getDisVerticalLinePoints(this.attachment,this.linePoints[0],.4*this.width*this.multiple),e=t[0],n=t[1],i=I.getDisVerticalLinePoints(this.attachment,this.linePoints[1],.4*this.width*this.multiple),r=i[0],o=i[1],g=I.getDisVerticalLinePoints(this.attachment,this.linePoints[0],.1*this.width*this.multiple),A=g[0],s=g[1],C=I.getDisVerticalLinePoints(this.attachment,this.linePoints[1],.1*this.width*this.multiple),a=C[0],u=C[1];this.clip1.setAttribute("stroke-width",this.multiple.toString()),this.clip1.setAttribute("d","M "+e.x+" "+e.y+" L "+r.x+" "+r.y),this.clip2.setAttribute("stroke-width",this.multiple.toString()),this.clip2.setAttribute("d","M "+n.x+" "+n.y+" L "+o.x+" "+o.y),this.clip3.setAttribute("stroke-width",this.multiple.toString()),this.clip3.setAttribute("d","M "+A.x+" "+A.y+" L "+a.x+" "+a.y),this.clip4.setAttribute("stroke-width",this.multiple.toString()),this.clip4.setAttribute("d","M "+s.x+" "+s.y+" L "+u.x+" "+u.y),this.attachment.update()},e.prototype.wallSelect=function(){this.update&&this.update()},e.prototype.enter=function(){this.eleHover=!0,this.update()},e.prototype.leave=function(){this.eleHover=!1,this.update()},e.prototype.drag=function(t){},e}(C.default);e.default=a},function(t,e,n){t.exports=!n(6)&&!n(4)((function(){return 7!=Object.defineProperty(n(78)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){e.f=n(5)},function(t,e,n){var i=n(17),r=n(15),o=n(61)(!1),g=n(80)("IE_PROTO");t.exports=function(t,e){var n,A=r(t),s=0,C=[];for(n in A)n!=g&&i(A,n)&&C.push(n);for(;e.length>s;)i(A,n=e[s++])&&(~o(C,n)||C.push(n));return C}},function(t,e,n){var i=n(8),r=n(1),o=n(32);t.exports=n(6)?Object.defineProperties:function(t,e){r(t);for(var n,g=o(e),A=g.length,s=0;A>s;)i.f(t,n=g[s++],e[n]);return t}},function(t,e,n){var i=n(15),r=n(44).f,o={}.toString,g="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return g&&"[object Window]"==o.call(t)?function(t){try{return r(t)}catch(t){return g.slice()}}(t):r(i(t))}},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var i=n(12),r=n(3),o=n(85),g=[].slice,A={},s=function(t,e,n){if(!(e in A)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";A[e]=Function("F,a","return new F("+i.join(",")+")")}return A[e](t,n)};t.exports=Function.bind||function(t){var e=i(this),n=g.call(arguments,1),A=function(){var i=n.concat(g.call(arguments));return this instanceof A?s(e,i.length,i):o(e,i,t)};return r(e.prototype)&&(A.prototype=e.prototype),A}},function(t,e,n){var i=n(2).parseInt,r=n(52).trim,o=n(86),g=/^[-+]?0[xX]/;t.exports=8!==i(o+"08")||22!==i(o+"0x16")?function(t,e){var n=r(String(t),3);return i(n,e>>>0||(g.test(n)?16:10))}:i},function(t,e,n){var i=n(2).parseFloat,r=n(52).trim;t.exports=1/i(n(86)+"-0")!=-1/0?function(t){var e=r(String(t),3),n=i(e);return 0===n&&"-"==e.charAt(0)?-0:n}:i},function(t,e,n){var i=n(24);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=i(t))throw TypeError(e);return+t}},function(t,e,n){var i=n(3),r=Math.floor;t.exports=function(t){return!i(t)&&isFinite(t)&&r(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){var i=n(89),r=Math.pow,o=r(2,-52),g=r(2,-23),A=r(2,127)*(2-g),s=r(2,-126);t.exports=Math.fround||function(t){var e,n,r=Math.abs(t),C=i(t);return r<s?C*(r/s/g+1/o-1/o)*s*g:(n=(e=(1+g/o)*r)-(e-r))>A||n!=n?C*(1/0):C*n}},function(t,e,n){var i=n(1);t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},function(t,e,n){var i=n(12),r=n(11),o=n(54),g=n(7);t.exports=function(t,e,n,A,s){i(e);var C=r(t),I=o(C),a=g(C.length),u=s?a-1:0,c=s?-1:1;if(n<2)for(;;){if(u in I){A=I[u],u+=c;break}if(u+=c,s?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;s?u>=0:a>u;u+=c)u in I&&(A=e(A,I[u],u,C));return A}},function(t,e,n){"use strict";var i=n(11),r=n(43),o=n(7);t.exports=[].copyWithin||function(t,e){var n=i(this),g=o(n.length),A=r(t,g),s=r(e,g),C=arguments.length>2?arguments[2]:void 0,I=Math.min((void 0===C?g:r(C,g))-s,g-A),a=1;for(s<A&&A<s+I&&(a=-1,s+=I-1,A+=I-1);I-- >0;)s in n?n[A]=n[s]:delete n[A],A+=a,s+=a;return n}},function(t,e,n){"use strict";var i=n(99);n(0)({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},function(t,e,n){n(6)&&"g"!=/./g.flags&&n(8).f(RegExp.prototype,"flags",{configurable:!0,get:n(57)})},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var i=n(1),r=n(3),o=n(103);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var i=n(133),r=n(49);t.exports=n(72)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=i.getEntry(r(this,"Map"),t);return e&&e.v},set:function(t,e){return i.def(r(this,"Map"),0===t?0:t,e)}},i,!0)},function(t,e,n){"use strict";var i=n(8).f,r=n(33),o=n(48),g=n(23),A=n(47),s=n(41),C=n(65),I=n(98),a=n(46),u=n(6),c=n(38).fastKey,l=n(49),f=u?"_s":"size",h=function(t,e){var n,i=c(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,C){var I=t((function(t,i){A(t,I,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[f]=0,null!=i&&s(i,n,t[C],t)}));return o(I.prototype,{clear:function(){for(var t=l(this,e),n=t._i,i=t._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];t._f=t._l=void 0,t[f]=0},delete:function(t){var n=l(this,e),i=h(n,t);if(i){var r=i.n,o=i.p;delete n._i[i.i],i.r=!0,o&&(o.n=r),r&&(r.p=o),n._f==i&&(n._f=r),n._l==i&&(n._l=o),n[f]--}return!!i},forEach:function(t){l(this,e);for(var n,i=g(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!h(l(this,e),t)}}),u&&i(I.prototype,"size",{get:function(){return l(this,e)[f]}}),I},def:function(t,e,n){var i,r,o=h(t,e);return o?o.v=n:(t._l=o={i:r=c(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=o),i&&(i.n=o),t[f]++,"F"!==r&&(t._i[r]=o)),t},getEntry:h,setStrong:function(t,e,n){C(t,e,(function(t,n){this._t=l(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?I(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,I(1))}),n?"entries":"values",!n,!0),a(e)}}},function(t,e,n){"use strict";var i=n(133),r=n(49);t.exports=n(72)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return i.def(r(this,"Set"),t=0===t?0:t,t)}},i)},function(t,e,n){"use strict";var i,r=n(2),o=n(30)(0),g=n(19),A=n(38),s=n(83),C=n(136),I=n(3),a=n(49),u=n(49),c=!r.ActiveXObject&&"ActiveXObject"in r,l=A.getWeak,f=Object.isExtensible,h=C.ufstore,p=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},d={get:function(t){if(I(t)){var e=l(t);return!0===e?h(a(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return C.def(a(this,"WeakMap"),t,e)}},y=t.exports=n(72)("WeakMap",p,d,C,!0,!0);u&&c&&(s((i=C.getConstructor(p,"WeakMap")).prototype,d),A.NEED=!0,o(["delete","has","get","set"],(function(t){var e=y.prototype,n=e[t];g(e,t,(function(e,r){if(I(e)&&!f(e)){this._f||(this._f=new i);var o=this._f[t](e,r);return"set"==t?this:o}return n.call(this,e,r)}))})))},function(t,e,n){"use strict";var i=n(48),r=n(38).getWeak,o=n(1),g=n(3),A=n(47),s=n(41),C=n(30),I=n(17),a=n(49),u=C(5),c=C(6),l=0,f=function(t){return t._l||(t._l=new h)},h=function(){this.a=[]},p=function(t,e){return u(t.a,(function(t){return t[0]===e}))};h.prototype={get:function(t){var e=p(this,t);if(e)return e[1]},has:function(t){return!!p(this,t)},set:function(t,e){var n=p(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=c(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var C=t((function(t,i){A(t,C,e,"_i"),t._t=e,t._i=l++,t._l=void 0,null!=i&&s(i,n,t[o],t)}));return i(C.prototype,{delete:function(t){if(!g(t))return!1;var n=r(t);return!0===n?f(a(this,e)).delete(t):n&&I(n,this._i)&&delete n[this._i]},has:function(t){if(!g(t))return!1;var n=r(t);return!0===n?f(a(this,e)).has(t):n&&I(n,this._i)}}),C},def:function(t,e,n){var i=r(o(e),!0);return!0===i?f(t).set(e,n):i[t._i]=n,t},ufstore:f}},function(t,e,n){var i=n(25),r=n(7);t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){"use strict";var i=n(63),r=n(3),o=n(7),g=n(23),A=n(5)("isConcatSpreadable");t.exports=function t(e,n,s,C,I,a,u,c){for(var l,f,h=I,p=0,d=!!u&&g(u,c,3);p<C;){if(p in s){if(l=d?d(s[p],p,n):s[p],f=!1,r(l)&&(f=void 0!==(f=l[A])?!!f:i(l)),f&&a>0)h=t(e,n,l,o(l.length),h,a-1)-1;else{if(h>=9007199254740991)throw TypeError();e[h]=l}h++}p++}return h}},function(t,e,n){var i=n(7),r=n(88),o=n(28);t.exports=function(t,e,n,g){var A=String(o(t)),s=A.length,C=void 0===n?" ":String(n),I=i(e);if(I<=s||""==C)return A;var a=I-s,u=r.call(C,Math.ceil(a/C.length));return u.length>a&&(u=u.slice(0,a)),g?u+A:A+u}},function(t,e,n){var i=n(6),r=n(32),o=n(15),g=n(55).f;t.exports=function(t){return function(e){for(var n,A=o(e),s=r(A),C=s.length,I=0,a=[];C>I;)n=s[I++],i&&!g.call(A,n)||a.push(t?[n,A[n]]:A[n]);return a}}},function(t,e,n){var i=n(39),r=n(142);t.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},function(t,e,n){var i=n(41);t.exports=function(t,e){var n=[];return i(t,!1,n.push,n,e),n}},function(t,e){t.exports=Math.scale||function(t,e,n,i,r){return 0===arguments.length||t!=t||e!=e||n!=n||i!=i||r!=r?NaN:t===1/0||t===-1/0?t:(t-e)*(r-i)/(n-e)+i}},function(t,e,n){var i=n(39),r=n(5)("iterator"),o=n(45);t.exports=n(14).isIterable=function(t){var e=Object(t);return void 0!==e[r]||"@@iterator"in e||o.hasOwnProperty(i(e))}},function(t,e,n){"use strict";var i=n(146),r=n(85),o=n(12);t.exports=function(){for(var t=o(this),e=arguments.length,n=new Array(e),g=0,A=i._,s=!1;e>g;)(n[g]=arguments[g++])===A&&(s=!0);return function(){var i,o=this,g=arguments.length,C=0,I=0;if(!s&&!g)return r(t,n,o);if(i=n.slice(),s)for(;e>C;C++)i[C]===A&&(i[C]=arguments[I++]);for(;g>I;)i.push(arguments[I++]);return r(t,i,o)}}},function(t,e,n){t.exports=n(2)},function(t,e,n){var i=n(8),r=n(20),o=n(105),g=n(15);t.exports=function(t,e){for(var n,A=o(g(e)),s=A.length,C=0;s>C;)i.f(t,n=A[C++],r.f(e,n));return t}},function(t,e,n){"use strict";var i=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var r=n(10),o=n(13),g=n(77);e.collisionFurnCheck=function(t,e){return t.columns.map((function(t){return t.ele.points})).every((function(t){return!r.isFaceIntersect(t,e)&&!r.isFaceContain(t,e)&&!r.isFaceContain(t,e)}))},e.collisionColumnCheck=function(t,e){return t.furnColumns.concat(t.furnFlues).map((function(t){return t.ele.points})).every((function(t){return!r.isFaceIntersect(t,e)&&!r.isFaceContain(t,e)&&!r.isFaceContain(e,t)}))},e.collisionLineCheck=function(t,e,n,i,o,A){var s=t.lines.find((function(t){return t.ele===e})).room,C=g.default.attaArch.get(s)||[],I=t.furnColumns.concat(t.furnFlues).map((function(t){return t.ele})).filter((function(t){return!~C.indexOf(t)})),a=t.getRoomEles(s),u=a.ground,c=a.hole,l=u.findIndex((function(t){return t===n}));if(~l)u[l]=i;else for(var f=0;f<c.length;f++){~(p=c[f].indexOf(n))&&(c[f][p]=i)}if(o){var h=u.findIndex((function(t){return t===o}));if(~h)u[h]=A;else for(f=0;f<c.length;f++){var p;~(p=c[f].indexOf(o))&&(c[f][p]=A)}}return!(C&&!C.every((function(t){return!!r.isFaceContain(u,t.points)&&!c.some((function(e){return r.isFaceIntersect(e,t.points)||r.isFaceContain(e,t.points)||r.isFaceContain(t.points,e)}))})))&&I.every((function(t){return!r.isFaceIntersect(u,t.points)&&!r.isFaceContain(u,t.points)&&!r.isFaceContain(t.points,u)}))},e.default=function(t){var n=t.processing.addColumn,r=t.processing.addFurnColumn,g=t.processing.addFurnFlue,A=t.processing.addLine,s={addFurnColumn:r,addFurnFlue:g};Object.keys(s).forEach((function(n){t.processing[n]=function(){for(var r,o=[],g=0;g<arguments.length;g++)o[g]=arguments[g];var A=(r=s[n]).call.apply(r,i([t.processing],o)),C=A.ele.directUpdate;return A.ele.directUpdate=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return!!e.collisionFurnCheck(t.processing,n[0])&&C.call.apply(C,i([A.ele],n))},A}})),t.processing.addColumn=function(){for(var r=[],g=0;g<arguments.length;g++)r[g]=arguments[g];var A=n.call.apply(n,i([t.processing],r)),s=A.ele.intercept;return A.ele.intercept=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(o.type.isUndefined(n[1].x)||o.type.isUndefined(n[1].y))return!0;var g=s.call.apply(s,i([A.ele],n));return!1===g||e.collisionColumnCheck(t.processing,A.ele.readyPoints)||(g=!1),g},A},t.processing.addLine=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var g=A.call.apply(A,i([t.processing],n)),s=g.ele.intercept;return g.ele.intercept=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(o.type.isUndefined(n[1].x)||o.type.isUndefined(n[1].y))return!0;var A=s.call.apply(s,i([g.ele],n));return!1===A||e.collisionLineCheck(t.processing,g.ele,g.ele.points.find((function(t){return~n[0].indexOf(t)})),n[1])||(A=!1),A},setTimeout((function(){var t=g.ele.destroy;g.ele.destroy=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];g.ele.intercept=s,t.call.apply(t,i([g.ele],e)),g.ele.destory=t}})),g}}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(60),g=n(9),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setHoverStyle=function(){this.fill="rgba(0,0,0,0)"},e.prototype.setUnHoverStyle=function(){this.fill="rgba(243, 255, 0, 0.8)"},e.prototype.grentNode=function(){var t=this,e=document.createElementNS(g.SVGURI,"g");return e.innerHTML='<path class="slide-door-clip" />',this.layer=e.querySelector(".slide-door-clip"),this.nextTick((function(){e.appendChild(t.linePoints[0].real),e.appendChild(t.linePoints[1].real),t.linePoints.forEach((function(e){e.changeSelect=function(e){e&&t.changeSelect(e)}}))})),e},e.prototype.update=function(){var t=this.attachment.width*this.multiple;this.layer.setAttribute("stroke",this.fill),this.layer.setAttribute("stroke-width",t.toString()),this.layer.setAttribute("d","M "+this.linePoints[0].x+" "+this.linePoints[0].y+" L "+this.linePoints[1].x+" "+this.linePoints[1].y),this.attachment.update()},e}(o.default);e.default=A},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var A=n(60),s=n(9),C=n(10),I=function(t){function e(e){var n=e.points,i=e.foorWidth,r=void 0===i?6:i,A=e.foorColor,s=void 0===A?"rgba(255,255,255,0.5)":A,C=e.clipColor,I=void 0===C?"rgba(0,0,0,1)":C,a=(e.linecap,e.within),u=void 0===a?1.5:a,c=g(e,["points","foorWidth","foorColor","clipColor","linecap","within"]),l=this;return n[0].fillColor="rgba(0,0,0,0)",n[1].fillColor="rgba(0,0,0,0)",(l=t.call(this,o(o({},c),{points:n,foorWidth:r,foorColor:s,within:u}))||this).clipColor=I,l}return r(e,t),e.prototype.setHoverStyle=function(){this.clipColor="rgba(243, 255, 0, 0.8)",this.foorColor="rgba(243, 255, 0, 0.8)"},e.prototype.setUnHoverStyle=function(){this.clipColor="rgba(0,0,0,1)",this.foorColor="rgba(255,255,255,0.5)"},e.prototype.grentNode=function(){var t=this,e=document.createElementNS(s.SVGURI,"g");return e.innerHTML='\n <path class="slide-door-1" />\n <path class="slide-door-2" />\n <path class="slide-door-clip-1" />\n <path class="slide-door-clip-2" />\n <rect width="0.00001" height="0.00001" class="slide-door-left" />\n <rect width="0.00001" height="0.00001" class="slide-door-right" />\n ',this.clip1=e.querySelector(".slide-door-clip-1"),this.clip2=e.querySelector(".slide-door-clip-2"),this.path1=e.querySelector(".slide-door-1"),this.path2=e.querySelector(".slide-door-2"),this.left=e.querySelector(".slide-door-left"),this.right=e.querySelector(".slide-door-right"),this.nextTick((function(){e.appendChild(t.linePoints[0].real),e.appendChild(t.linePoints[1].real),t.linePoints.forEach((function(e){e.changeSelect=function(e){e&&t.changeSelect(e)}}))})),e},e.prototype.update=function(){var t,e,n,i,r=this.foorWidth*this.multiple,o=C.lineDis({points:this.linePoints}),g=2*this.multiple,A=.6*o;this.within?(n=(t=this.linePoints)[0],i=t[1]):(i=(e=this.linePoints)[0],n=e[1]);var s=C.getLineDisSelectPoint({points:this.linePoints},n,A),I=C.getLineDisSelectPoint({points:this.linePoints},n,A-g),a=C.getLineDisSelectPoint({points:this.linePoints},i,A),u=C.getLineDisSelectPoint({points:this.linePoints},i,A-g),c=C.verticalLine({points:this.linePoints}),l=r/2,f=(r-l)/2-1e-4*this.multiple,h=n.x+c.x*f,p=n.y+c.y*f,d=s.x+c.x*f,y=s.y+c.y*f,v=I.x+c.x*f,m=I.y+c.y*f,b=i.x-c.x*f,x=i.y-c.y*f,w=a.x-c.x*f,P=a.y-c.y*f,O=u.x-c.x*f,S=u.y-c.y*f;this.path1.setAttribute("stroke",this.foorColor),this.path1.setAttribute("stroke-width",l.toString()),this.path1.setAttribute("d","M "+h+" "+p+" L "+d+" "+y),this.clip1.setAttribute("stroke",this.clipColor),this.clip1.setAttribute("stroke-width",(l-this.within*this.multiple).toString()),this.clip1.setAttribute("d","M "+h+" "+p+" L "+v+" "+m),this.path2.setAttribute("stroke",this.foorColor),this.path2.setAttribute("stroke-width",l.toString()),this.path2.setAttribute("d","M "+b+" "+x+" L "+w+" "+P),this.clip2.setAttribute("stroke",this.clipColor),this.clip2.setAttribute("stroke-width",(l-this.within*this.multiple).toString()),this.clip2.setAttribute("d","M "+b+" "+x+" L "+O+" "+S),this.left.setAttribute("x",n.x.toString()),this.left.setAttribute("y",n.y.toString()),this.left.setAttribute("stroke-width",r.toString()),this.left.setAttribute("stroke","rgba(0,0,0,0)"),this.right.setAttribute("x",i.x.toString()),this.right.setAttribute("y",i.y.toString()),this.right.setAttribute("stroke-width",r.toString()),this.right.setAttribute("stroke","rgba(0,0,0,0)"),this.attachment.update()},e}(A.default);e.default=I},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(77),g=n(9),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.grentNode=function(){var e=t.prototype.grentNode.call(this);return this.path1=document.createElementNS(g.SVGURI,"path"),this.path2=document.createElementNS(g.SVGURI,"path"),this.path1.setAttribute("stroke","rgba(255,255,255,0.5)"),this.path2.setAttribute("stroke","rgba(255,255,255,0.5)"),e.insertBefore(this.path1,e.childNodes[0]),e.insertBefore(this.path2,e.childNodes[0]),e},e.prototype.update=function(){t.prototype.update.call(this),this.path1.setAttribute("stroke-width",(this.width*this.multiple).toString()),this.path2.setAttribute("stroke-width",(this.width*this.multiple).toString()),this.path1.setAttribute("d","M "+this.points[0].x+" "+this.points[0].y+" L "+this.points[2].x+" "+this.points[2].y),this.path2.setAttribute("d","M "+this.points[1].x+" "+this.points[1].y+" L "+this.points[3].x+" "+this.points[3].y)},e}(o.default);e.default=A},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(77),g=n(9),A=n(10),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.grentNode=function(){var e=t.prototype.grentNode.call(this);return this.g=document.createElementNS(g.SVGURI,"g"),this.path1=document.createElementNS(g.SVGURI,"path"),this.path2=document.createElementNS(g.SVGURI,"path"),this.path1.setAttribute("stroke","rgba(255,255,255,0.5)"),this.path1.setAttribute("fill","rgba(0,0,0,0)"),this.path2.setAttribute("stroke","rgba(255,255,255,0.5)"),this.path2.setAttribute("fill","rgba(0,0,0,0)"),this.g.appendChild(this.path1),this.g.appendChild(this.path2),e.insertBefore(this.g,e.children[0]),e},e.prototype.update=function(){t.prototype.update.call(this);var e=A.faceCenter(this.points),n=A.lineDis({points:[this.points[1],this.points[2]]})/this.multiple,i=A.lineDis({points:[this.points[2],this.points[3]]})/this.multiple,r=(i-5*this.width)/i,o=(n-5*this.width)/n;r=r<=0?1:r,o=o<=0?1:o,this.g.setAttribute("transform","translate("+e.x+","+e.y+") scale("+(r<o?o:r)+") translate("+-e.x+","+-e.y+")"),this.path1.setAttribute("stroke-width",(this.width*this.multiple/(r<o?o:r)).toString()),this.path1.setAttribute("d","M "+this.points.map((function(t){return t.x+" "+t.y})).join(" L ")+" Z");var g=this.points[2],s={points:[this.points[1],this.points[3]]},C=A.lineCenter(s),I=A.lineDis({points:[C,g]})*(1/3),a=A.getDisVerticalLinePoints(s,C,I),u=a[0],c=a[1],l=A.lineDis({points:[g,u]})>A.lineDis({points:[g,c]})?c:u;A.pointInside(this.points,l)||(l=A.lineCenter(s)),this.path2.setAttribute("stroke-width",(this.width*this.multiple).toString()),this.path2.setAttribute("d","M "+this.points[1].x+" "+this.points[1].y+" L "+l.x+" "+l.y+" L "+this.points[3].x+" "+this.points[3].y)},e}(o.default);e.default=s},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var A=n(9),s=n(31),C=n(10),I=function(t){function e(e){var n=e.points,i=e.width,r=void 0===i?3:i,A=g(e,["points","width"]);return t.call(this,o({linePoints:n,fill:"rgba(255,255,255,0.5)",width:r},A))||this}return r(e,t),e.prototype.grentNode=function(){var t=this,e=document.createElementNS(A.SVGURI,"g");return this.clip1=document.createElementNS(A.SVGURI,"path"),this.clip2=document.createElementNS(A.SVGURI,"path"),this.clip3=document.createElementNS(A.SVGURI,"path"),this.clip4=document.createElementNS(A.SVGURI,"path"),this.clip5=document.createElementNS(A.SVGURI,"path"),this.clip1.setAttribute("stroke","rgba(255,255,255,0.5)"),this.clip2.setAttribute("stroke","rgba(255,255,255,0.5)"),this.clip3.setAttribute("stroke","rgba(255,255,255,0.5)"),this.clip4.setAttribute("stroke","rgba(255,255,255,0.5)"),this.clip5.setAttribute("stroke","rgba(255,255,255,0.5)"),e.appendChild(this.clip1),e.appendChild(this.clip2),e.appendChild(this.clip3),e.appendChild(this.clip4),e.appendChild(this.clip5),this.nextTick((function(){e.appendChild(t.linePoints[0].real),e.appendChild(t.linePoints[1].real)})),e},e.prototype.setHoverStyle=function(){this.fill="rgba(243, 255, 0, 0.8)"},e.prototype.setUnHoverStyle=function(){this.fill="#fff"},e.prototype.update=function(){var t=C.getDisVerticalLinePoints(this.attachment,this.linePoints[0],.4*this.width*this.multiple),e=t[0],n=t[1],i=C.getDisVerticalLinePoints(this.attachment,this.linePoints[1],.4*this.width*this.multiple),r=i[0],o=i[1],g=C.getDisVerticalLinePoints(this.attachment,this.linePoints[0],.15*this.width*this.multiple),A=g[0],s=g[1],I=C.getDisVerticalLinePoints(this.attachment,this.linePoints[1],.15*this.width*this.multiple),a=I[0],u=I[1],c=C.lineCenter({points:[A,a]}),l=C.lineCenter({points:[s,u]});this.clip1.setAttribute("stroke-width",this.multiple.toString()),this.clip1.setAttribute("d","M "+e.x+" "+e.y+" L "+r.x+" "+r.y),this.clip2.setAttribute("stroke-width",this.multiple.toString()),this.clip2.setAttribute("d","M "+n.x+" "+n.y+" L "+o.x+" "+o.y),this.clip3.setAttribute("stroke-width",this.multiple.toString()),this.clip3.setAttribute("d","M "+A.x+" "+A.y+" L "+a.x+" "+a.y),this.clip4.setAttribute("stroke-width",this.multiple.toString()),this.clip4.setAttribute("d","M "+s.x+" "+s.y+" L "+u.x+" "+u.y),this.clip5.setAttribute("stroke-width",(6*this.multiple).toString()),this.clip5.setAttribute("d","M "+c.x+" "+c.y+" L "+l.x+" "+l.y),this.attachment.update()},e.prototype.dragStart=function(t){this.move=this.linePoints[0].real===t.target||this.linePoints[1].real===t.target,this.dragStartPoints=this.linePoints.map((function(t){return{x:t.x,y:t.y}}))},e.prototype.drag=function(t){var e=this;this.move||this.linePoints.forEach((function(n,i){n.x=e.dragStartPoints[i].x+t.x*e.multiple,n.y=e.dragStartPoints[i].y+t.y*e.multiple}))},e.prototype.dragEnd=function(){this.move=!1,delete this.dragStartPoints},e}(s.default);e.default=I},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var A=n(9),s=n(31),C=n(10),I=function(t){function e(e){var n=e.points,i=e.within,r=void 0===i?0:i,A=e.width,s=void 0===A?1:A,C=g(e,["points","within","width"]);return n[0].fillColor="rgba(0,0,0,0)",n[1].fillColor="rgba(0,0,0,0)",t.call(this,o({linePoints:n,fill:"rgba(243, 255, 0, 0)",within:r,width:s},C))||this}return r(e,t),e.prototype.grentNode=function(){var t=this,e=document.createElementNS(A.SVGURI,"g");return e.innerHTML='\n <path class="ground-case-out" stroke="rgba(255,255,255,0.5)" fill="rgba(0,0,0,0)"/>\n <path class="ground-case-in" stroke="rgba(255,255,255,0.5)" fill="rgba(0,0,0,0)" />\n <rect width="0.00001" height="0.00001" class="ground-case-left" stroke="rgba(255,255,255,0)" />\n <rect width="0.00001" height="0.00001" class="ground-case-right" stroke="rgba(255,255,255,0)" />\n ',this.out=e.querySelector(".ground-case-out"),this.in=e.querySelector(".ground-case-in"),this.left=e.querySelector(".ground-case-left"),this.right=e.querySelector(".ground-case-right"),this.nextTick((function(){e.appendChild(t.linePoints[0].real),e.appendChild(t.linePoints[1].real)})),e},e.prototype.setHoverStyle=function(){this.fill="rgba(243, 255, 0, 0.8)"},e.prototype.setUnHoverStyle=function(){this.fill="rgba(0,0,0,0)"},e.prototype.getOutInPath=function(t,e,n,i,r,o,g){var A=this;void 0===o&&(o=0),void 0===g&&(g=0);var s,I=n,a=C.getDisVerticalLinePoints(this.attachment,t,I),u=C.getDisVerticalLinePoints(this.attachment,e,I),c=this.within?a.find((function(t){return A.rooms.find((function(e){return!C.pointInside(e,t)}))})):a.find((function(t){return A.rooms.find((function(e){return C.pointInside(e,t)}))}));c?s=u[a.indexOf(c)]:(s=this.within?u.find((function(t){return A.rooms.find((function(e){return!C.pointInside(e,t)}))})):u.find((function(t){return A.rooms.find((function(e){return C.pointInside(e,t)}))})))?c=a[u.indexOf(s)]:(c=a[0],s=u[0]),o=o||c,g=g||s;var l=C.getDisVerticalLinePoints(this.attachment,t,r).sort((function(t,e){return C.lineDis({points:[o,t]})-C.lineDis({points:[o,e]})}))[1];return[c,s,C.getDisVerticalLinePoints(this.attachment,e,r).sort((function(t,e){return C.lineDis({points:[g,t]})-C.lineDis({points:[g,e]})}))[1],l,c]},e.prototype.update=function(){var t=3*this.width*this.multiple,e=this.width*this.multiple,n=.4*C.lineDis({points:this.linePoints});n/this.multiple>30&&(n=30*this.multiple);var i=this.linePoints[0],r=this.linePoints[1],o=C.getDisPointLinePoints(this.attachment,i,t),g=o[0],A=o[1],s=C.getDisPointLinePoints(this.attachment,r,t),I=s[0],a=s[1];i=C.lineDis({points:[g,r]})>C.lineDis({points:[A,r]})?g:A,r=C.lineDis({points:[I,i]})>C.lineDis({points:[a,i]})?I:a,this.left.setAttribute("stroke-width",t.toString()),this.left.setAttribute("x",this.linePoints[0].x.toString()),this.left.setAttribute("y",this.linePoints[0].y.toString()),this.right.setAttribute("stroke-width",t.toString()),this.right.setAttribute("x",this.linePoints[1].x.toString()),this.right.setAttribute("y",this.linePoints[1].y.toString());var u=this.getOutInPath(i,r,t,e,n);this.ctls=[u[2],u[3]],this.out.setAttribute("fill",this.fill),this.out.setAttribute("stroke-width",e.toString()),this.out.setAttribute("d",u.map((function(t,e){return(e?"L ":"M ")+t.x+" "+t.y})).join(" "));var c=C.getLineDisSelectPoint({points:this.linePoints},i,t),l=C.getLineDisSelectPoint({points:this.linePoints},r,t);this.in.setAttribute("fill",this.fill),this.in.setAttribute("stroke-width",e.toString()),this.in.setAttribute("d",this.getOutInPath(c,l,t,e,n-C.lineDis({points:[c,i]}),u[0],u[1]).map((function(t,e){return(e?"L ":"M ")+t.x+" "+t.y})).join(" ")),this.attachment.update()},e.prototype.dragStart=function(t){this.move=this.linePoints[0].real===t.target||this.linePoints[1].real===t.target,this.dragStartPoints=this.linePoints.map((function(t){return{x:t.x,y:t.y}}))},e.prototype.drag=function(t){var e=this;this.move||this.linePoints.forEach((function(n,i){n.x=e.dragStartPoints[i].x+t.x*e.multiple,n.y=e.dragStartPoints[i].y+t.y*e.multiple}))},e.prototype.dragEnd=function(){this.move=!1,delete this.dragStartPoints},e}(s.default);e.default=I},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var g=n(16),A=n(9),s=n(10),C=function(t,e){return t.contains?t.contains(e):Array.from(t.childNodes).some((function(t){return t===e}))},I=function(t){function e(e){var n=e.local,i=e.renderer,r=e.active,o=void 0===r?0:r,g=t.call(this,{local:n,renderer:i,dialog:0,active:o})||this;return g.items=[],g.layerClick=function(){return g.dialog=0},i.layer.addEventListener("click",g.layerClick),g}return r(e,t),e.prototype.grentImage=function(t){var e=document.createElementNS(A.SVGURI,"image");return e.href.baseVal=n(395),e.setAttribute("x",(-t/2).toString()),e.setAttribute("y",(-t/2).toString()),e.setAttribute("width",t.toString()),e.setAttribute("height",t.toString()),e},e.prototype.grentNode=function(){var t=document.createElementNS(A.SVGURI,"g");this.path=document.createElementNS(A.SVGURI,"path"),this.path.setAttribute("stroke","rgb(0, 200, 175)"),this.path.setAttribute("fill","transparent");var e=document.createElementNS(A.SVGURI,"circle");e.setAttribute("fill","rgb(0, 200, 175)"),e.setAttribute("stroke","#fff");var n=document.createElementNS(A.SVGURI,"text");return n.setAttribute("fill","#fff"),n.setAttribute("text-anchor","middle"),n.setAttribute("dy",".4em"),this.temp=document.createElementNS(A.SVGURI,"g"),this.temp.appendChild(e),this.temp.appendChild(n),this.temp.style.cursor="pointer",this.dialogLayer=document.createElementNS(A.SVGURI,"g"),this.itemsLayout=document.createElementNS(A.SVGURI,"path"),this.itemsLayout.setAttribute("fill","rgba(255,255,255,0.7)"),this.dialogLayer.appendChild(this.itemsLayout),t.appendChild(this.path),t},e.prototype.update=function(){var t=this,e=9*this.multiple,n=2*this.multiple;if(this.path.setAttribute("stroke-width",(2*this.multiple).toString()),this.local.length>0)this.path.setAttribute("d","M "+this.local.map((function(t){return t.x+" "+t.y})).join(" L "));else if(this.path.setAttribute("d",""),this.dialog)return this.dialog=0;this.items.forEach((function(e){try{t.real.removeChild(e)}catch(t){}})),this.items=[];var i=this.local.length-this.items.length;if(i>0)for(var r=0;r<i;r++){var o=this.temp.cloneNode(!0);this.real.appendChild(o),this.items.push(o)}else if(i<0)for(r=0;r>i;r--){var g=this.items.shift();this.real.removeChild(g)}var A=0;for(r=0;r<this.local.length;r++){var s=this.items[r].querySelector("circle"),C=this.items[r].querySelector("text");this.items[r].setAttribute("transform","translate("+this.local[r].x+","+this.local[r].y+")"),this.items[r].style.display="inherit",s.setAttribute("stroke-width",n.toString()),s.setAttribute("r",e.toString()),C.setAttribute("font-size",(10*this.multiple).toString()),this.local[r].rangn?(s.setAttribute("fill","#666666"),this.items[r].appendChild(this.grentImage(e+n))):C.textContent=(++A).toString(),this.local[r]===this.active&&(C.setAttribute("fill","rgb(250,250,0)"),s.setAttribute("stroke","rgb(250,250,0)"),this.items[r].setAttribute("class","active"))}var I=this.calcGroup();for(r=0;r<I.length;r++)I[r].body.forEach((function(e){var n=t.local.indexOf(e);t.items[n].style.display="none"}));this.showDialog(2*(e+n))},e.prototype.showDialog=function(t){var e=this;if(0!==this.dialog){for(var n=0;n<this.dialogLayer.childNodes.length;n++)this.dialogLayer.childNodes[n]!==this.itemsLayout&&(this.dialogLayer.removeChild(this.dialogLayer.childNodes[n]),n--);this.itemsLayout.innerHTML="";var i=5*this.multiple,r=(t+i)*this.dialog.items.length,o=t+2*i,g=this.dialog.pos.x-r/2,A=this.dialog.pos.y-o-t,s=8*this.multiple;this.itemsLayout.setAttribute("d","\n M "+g+" "+(A+o)+"\n A "+o/2+" "+o/2+" 0 1 1 "+g+" "+A+"\n L "+(g+r)+" "+A+"\n A "+o/2+" "+o/2+" 0 1 1 "+(g+r)+" "+(A+o)+"\n L "+(g+r/2+s)+" "+(A+o)+"\n L "+(g+r/2)+" "+(A+o+s)+"\n L "+(g+r/2-s)+" "+(A+o)+"\n L "+g+" "+(A+o)+"\n ");var C=function(n,r){n.setAttribute("transform","translate("+(g+(t+i)*r)+","+(A+(t/2+i))+")"),n.style.display="inline",e.dialogLayer.appendChild(n)};this.dialog.items.forEach((function(t,n){C(e.items[e.local.indexOf(t)],n+1)})),C(this.items[this.local.indexOf(this.dialog.pos)].cloneNode(!0),0)}},e.prototype.calcGroup=function(){var t=this,e=18*this.multiple,n=[];return this.local.forEach((function(i){if(!n.find((function(t){return~t.body.indexOf(i)}))){var r=t.local.filter((function(t){return i!==t&&s.lineDis({points:[i,t]})<e}));r.length>0&&n.push({head:i,body:r})}})),n},e.prototype.notice=function(){0!==this.dialog?this.real.appendChild(this.dialogLayer):C(this.real,this.dialogLayer)&&this.real.removeChild(this.dialogLayer)},e.prototype.intercept=function(t,e){var n=this,i=e.active;if(!i)return!0;var r=this.calcGroup().find((function(t){var e=t.head,n=t.body;return e===i||~n.indexOf(i)}));if(this.nextTick((function(){n.dialog=r?{pos:r.head,items:o(r.body)}:0})),this.active&&this.items[this.local.indexOf(this.active)]){var g=this.items[this.local.indexOf(this.active)],A=g.querySelector("circle");g.querySelector("text").setAttribute("fill","#fff"),A.setAttribute("stroke","#fff"),g.setAttribute("class","active")}return!0},e.prototype.setActive=function(t){this.active=t},e.prototype.click=function(t){t.stopPropagation();for(var e=0;e<this.items.length;e++)if(C(this.items[e],t.target)||t.target===this.items[e]){this.setActive(this.local[e]);break}},e.prototype.destroy=function(){this.renderer.layer.removeEventListener("click",this.layerClick)},e}(g.CADElement);e.default=I},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var o=n(10),g=n(13),A=function(t,e){var n=window.THREE;if(n){t=new n.Vector3(t.x,t.y,0);var i=(e=new n.Vector3(e.x,e.y,0)).clone().sub(t),r=new n.Vector3(i.y,-i.x,0).normalize(),o=-r.dot(t);return{x:r.x,y:r.y,z:r.z,w:o}}return{x:0,y:0,z:0,w:0}};e.columnToRoom=function(t){var e=[];return(t=JSON.parse(JSON.stringify(t))).column.forEach((function(n){var i,r,o=Math.max.apply(Math,t.vertex.concat(t.surplus).map((function(t){return t.id}))),g=Math.max.apply(Math,t.wall.map((function(t){return t.id}))),A=t.wall.find((function(t){return t.id===n.line})),s=t.room.filter((function(t){return~t.ground.indexOf(A.p1)&&~t.ground.indexOf(A.p2)})),C=[{x:n.pos[0],y:n.pos[1],id:o+1},{x:n.pos[2],y:n.pos[3],id:o+2},{x:n.pos[6],y:n.pos[7],id:o+3},{x:n.pos[4],y:n.pos[5],id:o+4}],I=[{p1:o+1,p2:o+2,id:g+1,border:!1},{p1:o+3,p2:o+4,id:g+2,border:!1},{p1:o+1,p2:o+4,id:g+3,border:!1},{p1:o+2,p2:o+3,id:g+4,border:!1}];(i=t.wall).push.apply(i,I),(r=t.vertex).push.apply(r,C),t.room.push({id:Math.max.apply(Math,t.room.map((function(t){return t.id})))+1,ground:C.map((function(t){return t.id})),top:s[0].top,bottom:s[0].bottom,hole:[],close:!0}),e.push(n)})),t.column=[],t.furnFlue.concat(t.furnColumn).forEach((function(e){for(var n,i,r=[],o=Math.max.apply(Math,t.vertex.map((function(t){return t.id}))),g=0;g<4;g++)r.push({id:++o,x:e.pos[2*g],y:e.pos[2*g+1]});var A=[],s=Math.max.apply(Math,t.wall.map((function(t){return t.id})));for(g=0;g<r.length;g++)A.push({id:++s,p1:r[g].id,p2:r[g===r.length-1?0:g+1].id});t.room.push({close:!0,id:Math.max.apply(Math,t.room.map((function(t){return t.id})))+1,hole:[],top:e.top,bottom:e.bottom,ground:r.map((function(t){return t.id}))}),(n=t.vertex).push.apply(n,r),(i=t.wall).push.apply(i,A)})),t.furnColumn=[],t.furnFlue=[],t},e.oldToNew=function(t){var e=t.wall.map((function(t){return{a:t.p1,b:t.p2,id:t.id}})),n=[],g=t.room.map((function(t,e){return i({},t)})),s=[];t.slideDoor.concat(t.door).concat(t.openSpace).forEach((function(e){var n=t.wall.find((function(t){return t.id===e.line}));if(n&&!n.border){var r=n.p1,C=n.p2,I=g.find((function(t){return~t.ground.indexOf(r)&&~t.ground.indexOf(C)})),a={points:[t.vertex.find((function(t){var e=t.id;return r===e})),t.vertex.find((function(t){var e=t.id;return C===e}))]},u=o.getLinePoint(a,{x:e.pos[0]}),c=o.pointLineDis(a,u),l=o.getLinePoint(a,{x:e.pos[2]}),f=o.pointLineDis(a,l);(isNaN(c)||c>.01)&&(u=o.getLinePoint(a,{y:e.pos[1]})),(isNaN(f)||f>.01)&&(l=o.getLinePoint(a,{y:e.pos[3]})),s.push({plane:i({},A(t.vertex.find((function(t){var e=t.id;return r===e})),t.vertex.find((function(t){var e=t.id;return C===e})))),phase:{lb:0,rb:0},height:e.top-e.bottom,wall:[],inside:I.id,point:[{x:e.pos[0],y:e.pos[1],z:e.bottom},{x:e.pos[2],y:e.pos[3],z:e.bottom},{x:e.pos[0],y:e.pos[1],z:e.top},{x:e.pos[2],y:e.pos[3],z:e.top}]})}}));var C=g.map((function(i){var r,g,A=n.find((function(t){return t.z===i.top})),s=n.find((function(t){return t.z===i.bottom}));A?r=A.id:(r=n.length+1,n.push({id:n.length+1,z:i.top})),s?g=s.id:(g=n.length+1,n.push({id:n.length+1,z:i.bottom}));i.ground.find((function(e){return!t.vertex.find((function(t){return t.id===e}))}));for(var C=[],I=function(t){if(t===i.ground.length-1&&!i.close)return"continue";var n=[i.ground[t],i.ground[t===i.ground.length-1?0:t+1]];C.push(e.find((function(t){return~n.indexOf(t.a)&&~n.indexOf(t.b)})).id)},a=0;a<i.ground.length;a++)I(a);return{wall:C,id:i.id,floor:[],height:i.top-i.bottom,ground:i.close?i.ground:[],area:o.faceArea(i.ground.map((function(e){return t.vertex.find((function(t){return t.id===e}))}))),top:r,bottom:g}}));g.forEach((function(n){n.hole.forEach((function(i){s.push({plane:{x:0,y:0,z:1,w:i.top},height:i.top-n.bottom,phase:{lb:0,rb:0},wall:e.filter((function(t){var e=t.a,n=t.b;return~i.pos.indexOf(e)&&~i.pos.indexOf(n)})).map((function(t){return t.id})),inside:n.id,point:i.pos.map((function(e){var n=t.vertex.find((function(t){var n=t.id;return e===n}));return{x:n.x,y:n.y,z:0}}))})}))}));var I=t.wall.filter((function(t){return t.exterior}));return C.forEach((function(t){t.wall=t.wall.filter((function(t){return!I.some((function(e){return e.id===t}))}))})),{"vertex-xy":r(t.vertex),"vertex-z":n,segment:t.wall.map((function(t){return{a:t.p1,b:t.p2,id:t.id,border:t.border}})),block:C,hole:s,window:t.window,column:t.column,door:t.door,openSpace:t.openSpace,slideDoor:t.slideDoor,surplus:t.surplus,tagging:t.tagging,groundCase:t.groundCase,bayCase:t.bayCase,furnColumn:t.furnColumn,furnFlue:t.furnFlue,dire:t.dire}},e.newToOld=function(t){var e=t.block.map((function(e){var n=Math.max.apply(Math,t["vertex-xy"].map((function(t){return t.id}))),i=t.hole?t.hole.filter((function(t){return t&&t.inside===e.id&&t.plane.z})).map((function(i){var r=i.point;return{top:e.top,pos:r.map((function(e){var i,r=t["vertex-xy"].find((function(t){var n=t.x,i=t.y;return n===e.x&&i===e.y}));return e?i=r.id:(i=++n,t["vertex-xy"].push({x:e.x,y:e.y,id:i})),i}))}})):[],r=e.wall.some((function(n){var i=t.segment.find((function(t){return t.id===n})),r=[e.ground[0],e.ground[e.ground.length-1]];return~r.indexOf(i.a)&&~r.indexOf(i.b)}));return{id:e.id,top:t["vertex-z"].find((function(t){return t.id===e.top})).z,bottom:t["vertex-z"].find((function(t){return t.id===e.bottom})).z,ground:e.ground,hole:i,close:e.ground.length>2&&r}})),n=t.segment.map((function(t){return{p1:t.a,p2:t.b,id:t.id,border:!g.type.isBoolean(t.border)||t.border}})),i=[],o=function(t,e){var r=n.findIndex((function(n){return n.p1===t&&n.p2===e||n.p1===e&&n.p2===t}));i.push(n[r])};return e.forEach((function(t){for(var e=0;e<t.ground.length;e++){var n=e+1===t.ground.length?0:e+1;o(t.ground[e],t.ground[n])}t.hole.forEach((function(t){for(var e=t.pos,n=0;n<e.length;n++){var i=n+1===e.length?0:n+1;o(e[n],e[i])}}))})),{vertex:r(t["vertex-xy"]),wall:t.segment.map((function(t){return{p1:t.a,p2:t.b,id:t.id,border:t.border}})),surplus:[],window:t.window?t.window:[],door:t.door?t.door:[],openSpace:t.openSpace?t.openSpace:[],slideDoor:t.slideDoor?t.slideDoor:[],groundCase:t.groundCase?t.groundCase:[],column:t.column?t.column:[],tagging:t.tagging?t.tagging:[],bayCase:t.bayCase?t.bayCase:[],furnColumn:t.furnColumn?t.furnColumn:[],furnFlue:t.furnFlue?t.furnFlue:[],room:e,dire:t.dire||0,clip:t.clip}}},function(t,e,n){"use strict";var i=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0}),n(158);var r=n(369),o=n(380),g=n(381),A=n(387),s=n(389),C=n(390),I=n(392),a=n(393),u=n(394),c=n(396),l=n(397),f=n(398),h=n(59);e.Column=h.default;var p=n(60);e.Door=p.default;var d=n(111);e.Casement=d.default;var y=n(16),v=n(399),m=n(404),b=n(155),x=n(148),w=n(405),P=n(109),O=n(406);e.moreData=O.moreData,e.joinData=O.joinData,e.rotatePoint=O.rotatePoint;var S=y.CADElement.prototype.listen;y.CADElement.prototype.listen=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];(this.render.edit||this instanceof b.default)&&S.call.apply(S,i([this],t))};var _=h.default.prototype.addEvent;h.default.prototype.addEvent=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.render.edit&&_.call.apply(_,i([this],t))};var E={block:[],column:[],door:[],hole:[],segment:[],"vertex-xy":[],"vertex-z":[]};function M(t){var e=t.data,n=void 0===e?E:e,i=t.layer,h=t.edit,p=void 0===h||h,d=t.padding,y=void 0===d?20:d,b=new r.default({dom:i,padding:y});b.processing.render.edit=p,p?(o.attachInsert(b),C.attchTransform(b),C.attchStack(b),C.autoPreservation(b),I.attchDOMTranform(b),a.attachDisabled(b),l.default(b),x.default(b)):(C.attchTransform(b),I.attchDOMTranform(b)),c.attachStyle(b),s.attachScreenshot(b),A.attachSign(b),g.attachGauge(b),u.attachRote(b),p&&(b.openMouseHandle(),b.showGauge());var O=v.handle(b);f.other(O),w.default(O),O.loadData(n),O.toCanvas=function(){return m.default(O)};var S=new P.default({x:0,y:0,renderer:O.processing.render,fillColor:"red"});return O.processing.render.push(S),window.test=[S],O}e.structureCAD=M,window.structureCAD=M,e.default=M},function(t,e,n){n(159),n(356),n(56),n(358),n(144),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),t.exports=n(14)},function(t,e,n){n(160),n(163),n(164),n(165),n(166),n(167),n(168),n(169),n(170),n(171),n(172),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(240),n(241),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(97),n(264),n(128),n(265),n(129),n(266),n(267),n(268),n(269),n(270),n(132),n(134),n(135),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),t.exports=n(14)},function(t,e,n){"use strict";var i=n(2),r=n(17),o=n(6),g=n(0),A=n(19),s=n(38).KEY,C=n(4),I=n(53),a=n(51),u=n(42),c=n(5),l=n(113),f=n(79),h=n(162),p=n(63),d=n(1),y=n(3),v=n(11),m=n(15),b=n(27),x=n(36),w=n(33),P=n(116),O=n(20),S=n(62),_=n(8),E=n(32),M=O.f,D=_.f,j=P.f,k=i.Symbol,L=i.JSON,N=L&&L.stringify,T=c("_hidden"),R=c("toPrimitive"),F={}.propertyIsEnumerable,G=I("symbol-registry"),U=I("symbols"),V=I("op-symbols"),W=Object.prototype,Z="function"==typeof k&&!!S.f,z=i.QObject,B=!z||!z.prototype||!z.prototype.findChild,H=o&&C((function(){return 7!=w(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=M(W,e);i&&delete W[e],D(t,e,n),i&&t!==W&&D(W,e,i)}:D,J=function(t){var e=U[t]=w(k.prototype);return e._k=t,e},K=Z&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},X=function(t,e,n){return t===W&&X(V,e,n),d(t),e=b(e,!0),d(n),r(U,e)?(n.enumerable?(r(t,T)&&t[T][e]&&(t[T][e]=!1),n=w(n,{enumerable:x(0,!1)})):(r(t,T)||D(t,T,x(1,{})),t[T][e]=!0),H(t,e,n)):D(t,e,n)},Y=function(t,e){d(t);for(var n,i=h(e=m(e)),r=0,o=i.length;o>r;)X(t,n=i[r++],e[n]);return t},Q=function(t){var e=F.call(this,t=b(t,!0));return!(this===W&&r(U,t)&&!r(V,t))&&(!(e||!r(this,t)||!r(U,t)||r(this,T)&&this[T][t])||e)},q=function(t,e){if(t=m(t),e=b(e,!0),t!==W||!r(U,e)||r(V,e)){var n=M(t,e);return!n||!r(U,e)||r(t,T)&&t[T][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=j(m(t)),i=[],o=0;n.length>o;)r(U,e=n[o++])||e==T||e==s||i.push(e);return i},tt=function(t){for(var e,n=t===W,i=j(n?V:m(t)),o=[],g=0;i.length>g;)!r(U,e=i[g++])||n&&!r(W,e)||o.push(U[e]);return o};Z||(A((k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=u(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(V,n),r(this,T)&&r(this[T],t)&&(this[T][t]=!1),H(this,t,x(1,n))};return o&&B&&H(W,t,{configurable:!0,set:e}),J(t)}).prototype,"toString",(function(){return this._k})),O.f=q,_.f=X,n(44).f=P.f=$,n(55).f=Q,S.f=tt,o&&!n(37)&&A(W,"propertyIsEnumerable",Q,!0),l.f=function(t){return J(c(t))}),g(g.G+g.W+g.F*!Z,{Symbol:k});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)c(et[nt++]);for(var it=E(c.store),rt=0;it.length>rt;)f(it[rt++]);g(g.S+g.F*!Z,"Symbol",{for:function(t){return r(G,t+="")?G[t]:G[t]=k(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in G)if(G[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),g(g.S+g.F*!Z,"Object",{create:function(t,e){return void 0===e?w(t):Y(w(t),e)},defineProperty:X,defineProperties:Y,getOwnPropertyDescriptor:q,getOwnPropertyNames:$,getOwnPropertySymbols:tt});var ot=C((function(){S.f(1)}));g(g.S+g.F*ot,"Object",{getOwnPropertySymbols:function(t){return S.f(v(t))}}),L&&g(g.S+g.F*(!Z||C((function(){var t=k();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(y(e)||void 0!==t)&&!K(t))return p(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),i[1]=e,N.apply(L,i)}}),k.prototype[R]||n(18)(k.prototype,R,k.prototype.valueOf),a(k,"Symbol"),a(Math,"Math",!0),a(i.JSON,"JSON",!0)},function(t,e,n){t.exports=n(53)("native-function-to-string",Function.toString)},function(t,e,n){var i=n(32),r=n(62),o=n(55);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var g,A=n(t),s=o.f,C=0;A.length>C;)s.call(t,g=A[C++])&&e.push(g);return e}},function(t,e,n){var i=n(0);i(i.S,"Object",{create:n(33)})},function(t,e,n){var i=n(0);i(i.S+i.F*!n(6),"Object",{defineProperty:n(8).f})},function(t,e,n){var i=n(0);i(i.S+i.F*!n(6),"Object",{defineProperties:n(115)})},function(t,e,n){var i=n(15),r=n(20).f;n(29)("getOwnPropertyDescriptor",(function(){return function(t,e){return r(i(t),e)}}))},function(t,e,n){var i=n(11),r=n(21);n(29)("getPrototypeOf",(function(){return function(t){return r(i(t))}}))},function(t,e,n){var i=n(11),r=n(32);n(29)("keys",(function(){return function(t){return r(i(t))}}))},function(t,e,n){n(29)("getOwnPropertyNames",(function(){return n(116).f}))},function(t,e,n){var i=n(3),r=n(38).onFreeze;n(29)("freeze",(function(t){return function(e){return t&&i(e)?t(r(e)):e}}))},function(t,e,n){var i=n(3),r=n(38).onFreeze;n(29)("seal",(function(t){return function(e){return t&&i(e)?t(r(e)):e}}))},function(t,e,n){var i=n(3),r=n(38).onFreeze;n(29)("preventExtensions",(function(t){return function(e){return t&&i(e)?t(r(e)):e}}))},function(t,e,n){var i=n(3);n(29)("isFrozen",(function(t){return function(e){return!i(e)||!!t&&t(e)}}))},function(t,e,n){var i=n(3);n(29)("isSealed",(function(t){return function(e){return!i(e)||!!t&&t(e)}}))},function(t,e,n){var i=n(3);n(29)("isExtensible",(function(t){return function(e){return!!i(e)&&(!t||t(e))}}))},function(t,e,n){var i=n(0);i(i.S+i.F,"Object",{assign:n(83)})},function(t,e,n){var i=n(0);i(i.S,"Object",{is:n(117)})},function(t,e,n){var i=n(0);i(i.S,"Object",{setPrototypeOf:n(84).set})},function(t,e,n){"use strict";var i=n(39),r={};r[n(5)("toStringTag")]="z",r+""!="[object z]"&&n(19)(Object.prototype,"toString",(function(){return"[object "+i(this)+"]"}),!0)},function(t,e,n){var i=n(0);i(i.P,"Function",{bind:n(118)})},function(t,e,n){var i=n(8).f,r=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in r||n(6)&&i(r,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var i=n(3),r=n(21),o=n(5)("hasInstance"),g=Function.prototype;o in g||n(8).f(g,o,{value:function(t){if("function"!=typeof this||!i(t))return!1;if(!i(this.prototype))return t instanceof this;for(;t=r(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var i=n(0),r=n(119);i(i.G+i.F*(parseInt!=r),{parseInt:r})},function(t,e,n){var i=n(0),r=n(120);i(i.G+i.F*(parseFloat!=r),{parseFloat:r})},function(t,e,n){"use strict";var i=n(2),r=n(17),o=n(24),g=n(87),A=n(27),s=n(4),C=n(44).f,I=n(20).f,a=n(8).f,u=n(52).trim,c=i.Number,l=c,f=c.prototype,h="Number"==o(n(33)(f)),p="trim"in String.prototype,d=function(t){var e=A(t,!1);if("string"==typeof e&&e.length>2){var n,i,r,o=(e=p?e.trim():u(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+e}for(var g,s=e.slice(2),C=0,I=s.length;C<I;C++)if((g=s.charCodeAt(C))<48||g>r)return NaN;return parseInt(s,i)}}return+e};if(!c(" 0o1")||!c("0b1")||c("+0x1")){c=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof c&&(h?s((function(){f.valueOf.call(n)})):"Number"!=o(n))?g(new l(d(e)),n,c):d(e)};for(var y,v=n(6)?C(l):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),m=0;v.length>m;m++)r(l,y=v[m])&&!r(c,y)&&a(c,y,I(l,y));c.prototype=f,f.constructor=c,n(19)(i,"Number",c)}},function(t,e,n){"use strict";var i=n(0),r=n(25),o=n(121),g=n(88),A=1..toFixed,s=Math.floor,C=[0,0,0,0,0,0],I="Number.toFixed: incorrect invocation!",a=function(t,e){for(var n=-1,i=e;++n<6;)i+=t*C[n],C[n]=i%1e7,i=s(i/1e7)},u=function(t){for(var e=6,n=0;--e>=0;)n+=C[e],C[e]=s(n/t),n=n%t*1e7},c=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==C[t]){var n=String(C[t]);e=""===e?n:e+g.call("0",7-n.length)+n}return e},l=function(t,e,n){return 0===e?n:e%2==1?l(t,e-1,n*t):l(t*t,e/2,n)};i(i.P+i.F*(!!A&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(4)((function(){A.call({})}))),"Number",{toFixed:function(t){var e,n,i,A,s=o(this,I),C=r(t),f="",h="0";if(C<0||C>20)throw RangeError(I);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(f="-",s=-s),s>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(s*l(2,69,1))-69)<0?s*l(2,-e,1):s/l(2,e,1),n*=4503599627370496,(e=52-e)>0){for(a(0,n),i=C;i>=7;)a(1e7,0),i-=7;for(a(l(10,i,1),0),i=e-1;i>=23;)u(1<<23),i-=23;u(1<<i),a(1,1),u(2),h=c()}else a(0,n),a(1<<-e,0),h=c()+g.call("0",C);return h=C>0?f+((A=h.length)<=C?"0."+g.call("0",C-A)+h:h.slice(0,A-C)+"."+h.slice(A-C)):f+h}})},function(t,e,n){"use strict";var i=n(0),r=n(4),o=n(121),g=1..toPrecision;i(i.P+i.F*(r((function(){return"1"!==g.call(1,void 0)}))||!r((function(){g.call({})}))),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?g.call(e):g.call(e,t)}})},function(t,e,n){var i=n(0);i(i.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var i=n(0),r=n(2).isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},function(t,e,n){var i=n(0);i(i.S,"Number",{isInteger:n(122)})},function(t,e,n){var i=n(0);i(i.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var i=n(0),r=n(122),o=Math.abs;i(i.S,"Number",{isSafeInteger:function(t){return r(t)&&o(t)<=9007199254740991}})},function(t,e,n){var i=n(0);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var i=n(0);i(i.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var i=n(0),r=n(120);i(i.S+i.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},function(t,e,n){var i=n(0),r=n(119);i(i.S+i.F*(Number.parseInt!=r),"Number",{parseInt:r})},function(t,e,n){var i=n(0),r=n(123),o=Math.sqrt,g=Math.acosh;i(i.S+i.F*!(g&&710==Math.floor(g(Number.MAX_VALUE))&&g(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:r(t-1+o(t-1)*o(t+1))}})},function(t,e,n){var i=n(0),r=Math.asinh;i(i.S+i.F*!(r&&1/r(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var i=n(0),r=Math.atanh;i(i.S+i.F*!(r&&1/r(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var i=n(0),r=n(89);i(i.S,"Math",{cbrt:function(t){return r(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var i=n(0);i(i.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var i=n(0),r=Math.exp;i(i.S,"Math",{cosh:function(t){return(r(t=+t)+r(-t))/2}})},function(t,e,n){var i=n(0),r=n(90);i(i.S+i.F*(r!=Math.expm1),"Math",{expm1:r})},function(t,e,n){var i=n(0);i(i.S,"Math",{fround:n(124)})},function(t,e,n){var i=n(0),r=Math.abs;i(i.S,"Math",{hypot:function(t,e){for(var n,i,o=0,g=0,A=arguments.length,s=0;g<A;)s<(n=r(arguments[g++]))?(o=o*(i=s/n)*i+1,s=n):o+=n>0?(i=n/s)*i:n;return s===1/0?1/0:s*Math.sqrt(o)}})},function(t,e,n){var i=n(0),r=Math.imul;i(i.S+i.F*n(4)((function(){return-5!=r(4294967295,5)||2!=r.length})),"Math",{imul:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i;return 0|r*o+((65535&n>>>16)*o+r*(65535&i>>>16)<<16>>>0)}})},function(t,e,n){var i=n(0);i(i.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var i=n(0);i(i.S,"Math",{log1p:n(123)})},function(t,e,n){var i=n(0);i(i.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var i=n(0);i(i.S,"Math",{sign:n(89)})},function(t,e,n){var i=n(0),r=n(90),o=Math.exp;i(i.S+i.F*n(4)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(r(t)-r(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var i=n(0),r=n(90),o=Math.exp;i(i.S,"Math",{tanh:function(t){var e=r(t=+t),n=r(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var i=n(0);i(i.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var i=n(0),r=n(43),o=String.fromCharCode,g=String.fromCodePoint;i(i.S+i.F*(!!g&&1!=g.length),"String",{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,g=0;i>g;){if(e=+arguments[g++],r(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var i=n(0),r=n(15),o=n(7);i(i.S,"String",{raw:function(t){for(var e=r(t.raw),n=o(e.length),i=arguments.length,g=[],A=0;n>A;)g.push(String(e[A++])),A<i&&g.push(String(arguments[A]));return g.join("")}})},function(t,e,n){"use strict";n(52)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,n){"use strict";var i=n(64)(!0);n(65)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var i=n(0),r=n(64)(!1);i(i.P,"String",{codePointAt:function(t){return r(this,t)}})},function(t,e,n){"use strict";var i=n(0),r=n(7),o=n(91),g="".endsWith;i(i.P+i.F*n(92)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,i=r(e.length),A=void 0===n?i:Math.min(r(n),i),s=String(t);return g?g.call(e,s,A):e.slice(A-s.length,A)===s}})},function(t,e,n){"use strict";var i=n(0),r=n(91);i(i.P+i.F*n(92)("includes"),"String",{includes:function(t){return!!~r(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var i=n(0);i(i.P,"String",{repeat:n(88)})},function(t,e,n){"use strict";var i=n(0),r=n(7),o=n(91),g="".startsWith;i(i.P+i.F*n(92)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return g?g.call(e,i,n):e.slice(n,n+i.length)===i}})},function(t,e,n){"use strict";n(22)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(22)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(22)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(22)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(22)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(22)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(22)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(22)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(22)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(22)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(22)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(22)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(22)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var i=n(0);i(i.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var i=n(0),r=n(11),o=n(27);i(i.P+i.F*n(4)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=r(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var i=n(0),r=n(239);i(i.P+i.F*(Date.prototype.toISOString!==r),"Date",{toISOString:r})},function(t,e,n){"use strict";var i=n(4),r=Date.prototype.getTime,o=Date.prototype.toISOString,g=function(t){return t>9?t:"0"+t};t.exports=i((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))}))||!i((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),i=e<0?"-":e>9999?"+":"";return i+("00000"+Math.abs(e)).slice(i?-6:-4)+"-"+g(t.getUTCMonth()+1)+"-"+g(t.getUTCDate())+"T"+g(t.getUTCHours())+":"+g(t.getUTCMinutes())+":"+g(t.getUTCSeconds())+"."+(n>99?n:"0"+g(n))+"Z"}:o},function(t,e,n){var i=Date.prototype,r=i.toString,o=i.getTime;new Date(NaN)+""!="Invalid Date"&&n(19)(i,"toString",(function(){var t=o.call(this);return t==t?r.call(this):"Invalid Date"}))},function(t,e,n){var i=n(5)("toPrimitive"),r=Date.prototype;i in r||n(18)(r,i,n(242))},function(t,e,n){"use strict";var i=n(1),r=n(27);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return r(i(this),"number"!=t)}},function(t,e,n){var i=n(0);i(i.S,"Array",{isArray:n(63)})},function(t,e,n){"use strict";var i=n(23),r=n(0),o=n(11),g=n(125),A=n(93),s=n(7),C=n(94),I=n(56);r(r.S+r.F*!n(68)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,r,a,u=o(t),c="function"==typeof this?this:Array,l=arguments.length,f=l>1?arguments[1]:void 0,h=void 0!==f,p=0,d=I(u);if(h&&(f=i(f,l>2?arguments[2]:void 0,2)),null==d||c==Array&&A(d))for(n=new c(e=s(u.length));e>p;p++)C(n,p,h?f(u[p],p):u[p]);else for(a=d.call(u),n=new c;!(r=a.next()).done;p++)C(n,p,h?g(a,f,[r.value,p],!0):r.value);return n.length=p,n}})},function(t,e,n){"use strict";var i=n(0),r=n(94);i(i.S+i.F*n(4)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)r(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var i=n(0),r=n(15),o=[].join;i(i.P+i.F*(n(54)!=Object||!n(26)(o)),"Array",{join:function(t){return o.call(r(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var i=n(0),r=n(82),o=n(24),g=n(43),A=n(7),s=[].slice;i(i.P+i.F*n(4)((function(){r&&s.call(r)})),"Array",{slice:function(t,e){var n=A(this.length),i=o(this);if(e=void 0===e?n:e,"Array"==i)return s.call(this,t,e);for(var r=g(t,n),C=g(e,n),I=A(C-r),a=new Array(I),u=0;u<I;u++)a[u]="String"==i?this.charAt(r+u):this[r+u];return a}})},function(t,e,n){"use strict";var i=n(0),r=n(12),o=n(11),g=n(4),A=[].sort,s=[1,2,3];i(i.P+i.F*(g((function(){s.sort(void 0)}))||!g((function(){s.sort(null)}))||!n(26)(A)),"Array",{sort:function(t){return void 0===t?A.call(o(this)):A.call(o(this),r(t))}})},function(t,e,n){"use strict";var i=n(0),r=n(30)(0),o=n(26)([].forEach,!0);i(i.P+i.F*!o,"Array",{forEach:function(t){return r(this,t,arguments[1])}})},function(t,e,n){var i=n(3),r=n(63),o=n(5)("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var i=n(0),r=n(30)(1);i(i.P+i.F*!n(26)([].map,!0),"Array",{map:function(t){return r(this,t,arguments[1])}})},function(t,e,n){"use strict";var i=n(0),r=n(30)(2);i(i.P+i.F*!n(26)([].filter,!0),"Array",{filter:function(t){return r(this,t,arguments[1])}})},function(t,e,n){"use strict";var i=n(0),r=n(30)(3);i(i.P+i.F*!n(26)([].some,!0),"Array",{some:function(t){return r(this,t,arguments[1])}})},function(t,e,n){"use strict";var i=n(0),r=n(30)(4);i(i.P+i.F*!n(26)([].every,!0),"Array",{every:function(t){return r(this,t,arguments[1])}})},function(t,e,n){"use strict";var i=n(0),r=n(126);i(i.P+i.F*!n(26)([].reduce,!0),"Array",{reduce:function(t){return r(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var i=n(0),r=n(126);i(i.P+i.F*!n(26)([].reduceRight,!0),"Array",{reduceRight:function(t){return r(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var i=n(0),r=n(61)(!1),o=[].indexOf,g=!!o&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(g||!n(26)(o)),"Array",{indexOf:function(t){return g?o.apply(this,arguments)||0:r(this,t,arguments[1])}})},function(t,e,n){"use strict";var i=n(0),r=n(15),o=n(25),g=n(7),A=[].lastIndexOf,s=!!A&&1/[1].lastIndexOf(1,-0)<0;i(i.P+i.F*(s||!n(26)(A)),"Array",{lastIndexOf:function(t){if(s)return A.apply(this,arguments)||0;var e=r(this),n=g(e.length),i=n-1;for(arguments.length>1&&(i=Math.min(i,o(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in e&&e[i]===t)return i||0;return-1}})},function(t,e,n){var i=n(0);i(i.P,"Array",{copyWithin:n(127)}),n(40)("copyWithin")},function(t,e,n){var i=n(0);i(i.P,"Array",{fill:n(96)}),n(40)("fill")},function(t,e,n){"use strict";var i=n(0),r=n(30)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),i(i.P+i.F*o,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(40)("find")},function(t,e,n){"use strict";var i=n(0),r=n(30)(6),o="findIndex",g=!0;o in[]&&Array(1)[o]((function(){g=!1})),i(i.P+i.F*g,"Array",{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(40)(o)},function(t,e,n){n(46)("Array")},function(t,e,n){var i=n(2),r=n(87),o=n(8).f,g=n(44).f,A=n(67),s=n(57),C=i.RegExp,I=C,a=C.prototype,u=/a/g,c=/a/g,l=new C(u)!==u;if(n(6)&&(!l||n(4)((function(){return c[n(5)("match")]=!1,C(u)!=u||C(c)==c||"/a/i"!=C(u,"i")})))){C=function(t,e){var n=this instanceof C,i=A(t),o=void 0===e;return!n&&i&&t.constructor===C&&o?t:r(l?new I(i&&!o?t.source:t,e):I((i=t instanceof C)?t.source:t,i&&o?s.call(t):e),n?this:a,C)};for(var f=function(t){t in C||o(C,t,{configurable:!0,get:function(){return I[t]},set:function(e){I[t]=e}})},h=g(I),p=0;h.length>p;)f(h[p++]);a.constructor=C,C.prototype=a,n(19)(i,"RegExp",C)}n(46)("RegExp")},function(t,e,n){"use strict";n(129);var i=n(1),r=n(57),o=n(6),g=/./.toString,A=function(t){n(19)(RegExp.prototype,"toString",t,!0)};n(4)((function(){return"/a/b"!=g.call({source:"a",flags:"b"})}))?A((function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?r.call(t):void 0)})):"toString"!=g.name&&A((function(){return g.call(this)}))},function(t,e,n){"use strict";var i=n(1),r=n(7),o=n(100),g=n(69);n(70)("match",1,(function(t,e,n,A){return[function(n){var i=t(this),r=null==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=A(n,t,this);if(e.done)return e.value;var s=i(t),C=String(this);if(!s.global)return g(s,C);var I=s.unicode;s.lastIndex=0;for(var a,u=[],c=0;null!==(a=g(s,C));){var l=String(a[0]);u[c]=l,""===l&&(s.lastIndex=o(C,r(s.lastIndex),I)),c++}return 0===c?null:u}]}))},function(t,e,n){"use strict";var i=n(1),r=n(11),o=n(7),g=n(25),A=n(100),s=n(69),C=Math.max,I=Math.min,a=Math.floor,u=/\$([$&`']|\d\d?|<[^>]*>)/g,c=/\$([$&`']|\d\d?)/g;n(70)("replace",2,(function(t,e,n,l){return[function(i,r){var o=t(this),g=null==i?void 0:i[e];return void 0!==g?g.call(i,o,r):n.call(String(o),i,r)},function(t,e){var r=l(n,t,this,e);if(r.done)return r.value;var a=i(t),u=String(this),c="function"==typeof e;c||(e=String(e));var h=a.global;if(h){var p=a.unicode;a.lastIndex=0}for(var d=[];;){var y=s(a,u);if(null===y)break;if(d.push(y),!h)break;""===String(y[0])&&(a.lastIndex=A(u,o(a.lastIndex),p))}for(var v,m="",b=0,x=0;x<d.length;x++){y=d[x];for(var w=String(y[0]),P=C(I(g(y.index),u.length),0),O=[],S=1;S<y.length;S++)O.push(void 0===(v=y[S])?v:String(v));var _=y.groups;if(c){var E=[w].concat(O,P,u);void 0!==_&&E.push(_);var M=String(e.apply(void 0,E))}else M=f(w,u,P,O,_,e);P>=b&&(m+=u.slice(b,P)+M,b=P+w.length)}return m+u.slice(b)}];function f(t,e,i,o,g,A){var s=i+t.length,C=o.length,I=c;return void 0!==g&&(g=r(g),I=u),n.call(A,I,(function(n,r){var A;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(s);case"<":A=g[r.slice(1,-1)];break;default:var I=+r;if(0===I)return n;if(I>C){var u=a(I/10);return 0===u?n:u<=C?void 0===o[u-1]?r.charAt(1):o[u-1]+r.charAt(1):n}A=o[I-1]}return void 0===A?"":A}))}}))},function(t,e,n){"use strict";var i=n(1),r=n(117),o=n(69);n(70)("search",1,(function(t,e,n,g){return[function(n){var i=t(this),r=null==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=g(n,t,this);if(e.done)return e.value;var A=i(t),s=String(this),C=A.lastIndex;r(C,0)||(A.lastIndex=0);var I=o(A,s);return r(A.lastIndex,C)||(A.lastIndex=C),null===I?-1:I.index}]}))},function(t,e,n){"use strict";var i=n(67),r=n(1),o=n(58),g=n(100),A=n(7),s=n(69),C=n(99),I=n(4),a=Math.min,u=[].push,c=!I((function(){RegExp(4294967295,"y")}));n(70)("split",2,(function(t,e,n,I){var l;return l="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!i(t))return n.call(r,t,e);for(var o,g,A,s=[],I=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),a=0,c=void 0===e?4294967295:e>>>0,l=new RegExp(t.source,I+"g");(o=C.call(l,r))&&!((g=l.lastIndex)>a&&(s.push(r.slice(a,o.index)),o.length>1&&o.index<r.length&&u.apply(s,o.slice(1)),A=o[0].length,a=g,s.length>=c));)l.lastIndex===o.index&&l.lastIndex++;return a===r.length?!A&&l.test("")||s.push(""):s.push(r.slice(a)),s.length>c?s.slice(0,c):s}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,i){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r,i):l.call(String(r),n,i)},function(t,e){var i=I(l,t,this,e,l!==n);if(i.done)return i.value;var C=r(t),u=String(this),f=o(C,RegExp),h=C.unicode,p=(C.ignoreCase?"i":"")+(C.multiline?"m":"")+(C.unicode?"u":"")+(c?"y":"g"),d=new f(c?C:"^(?:"+C.source+")",p),y=void 0===e?4294967295:e>>>0;if(0===y)return[];if(0===u.length)return null===s(d,u)?[u]:[];for(var v=0,m=0,b=[];m<u.length;){d.lastIndex=c?m:0;var x,w=s(d,c?u:u.slice(m));if(null===w||(x=a(A(d.lastIndex+(c?0:m)),u.length))===v)m=g(u,m,h);else{if(b.push(u.slice(v,m)),b.length===y)return b;for(var P=1;P<=w.length-1;P++)if(b.push(w[P]),b.length===y)return b;m=v=x}}return b.push(u.slice(v)),b}]}))},function(t,e,n){"use strict";var i,r,o,g,A=n(37),s=n(2),C=n(23),I=n(39),a=n(0),u=n(3),c=n(12),l=n(47),f=n(41),h=n(58),p=n(101).set,d=n(102)(),y=n(103),v=n(130),m=n(71),b=n(131),x=s.TypeError,w=s.process,P=w&&w.versions,O=P&&P.v8||"",S=s.Promise,_="process"==I(w),E=function(){},M=r=y.f,D=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(E,E)};return(_||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e&&0!==O.indexOf("6.6")&&-1===m.indexOf("Chrome/66")}catch(t){}}(),j=function(t){var e;return!(!u(t)||"function"!=typeof(e=t.then))&&e},k=function(t,e){if(!t._n){t._n=!0;var n=t._c;d((function(){for(var i=t._v,r=1==t._s,o=0,g=function(e){var n,o,g,A=r?e.ok:e.fail,s=e.resolve,C=e.reject,I=e.domain;try{A?(r||(2==t._h&&T(t),t._h=1),!0===A?n=i:(I&&I.enter(),n=A(i),I&&(I.exit(),g=!0)),n===e.promise?C(x("Promise-chain cycle")):(o=j(n))?o.call(n,s,C):s(n)):C(i)}catch(t){I&&!g&&I.exit(),C(t)}};n.length>o;)g(n[o++]);t._c=[],t._n=!1,e&&!t._h&&L(t)}))}},L=function(t){p.call(s,(function(){var e,n,i,r=t._v,o=N(t);if(o&&(e=v((function(){_?w.emit("unhandledRejection",r,t):(n=s.onunhandledrejection)?n({promise:t,reason:r}):(i=s.console)&&i.error&&i.error("Unhandled promise rejection",r)})),t._h=_||N(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},T=function(t){p.call(s,(function(){var e;_?w.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})}))},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),k(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw x("Promise can't be resolved itself");(e=j(t))?d((function(){var i={_w:n,_d:!1};try{e.call(t,C(F,i,1),C(R,i,1))}catch(t){R.call(i,t)}})):(n._v=t,n._s=1,k(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};D||(S=function(t){l(this,S,"Promise","_h"),c(t),i.call(this);try{t(C(F,this,1),C(R,this,1))}catch(t){R.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(48)(S.prototype,{then:function(t,e){var n=M(h(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=_?w.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&k(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new i;this.promise=t,this.resolve=C(F,t,1),this.reject=C(R,t,1)},y.f=M=function(t){return t===S||t===g?new o(t):r(t)}),a(a.G+a.W+a.F*!D,{Promise:S}),n(51)(S,"Promise"),n(46)("Promise"),g=n(14).Promise,a(a.S+a.F*!D,"Promise",{reject:function(t){var e=M(this);return(0,e.reject)(t),e.promise}}),a(a.S+a.F*(A||!D),"Promise",{resolve:function(t){return b(A&&this===g?S:this,t)}}),a(a.S+a.F*!(D&&n(68)((function(t){S.all(t).catch(E)}))),"Promise",{all:function(t){var e=this,n=M(e),i=n.resolve,r=n.reject,o=v((function(){var n=[],o=0,g=1;f(t,!1,(function(t){var A=o++,s=!1;n.push(void 0),g++,e.resolve(t).then((function(t){s||(s=!0,n[A]=t,--g||i(n))}),r)})),--g||i(n)}));return o.e&&r(o.v),n.promise},race:function(t){var e=this,n=M(e),i=n.reject,r=v((function(){f(t,!1,(function(t){e.resolve(t).then(n.resolve,i)}))}));return r.e&&i(r.v),n.promise}})},function(t,e,n){"use strict";var i=n(136),r=n(49);n(72)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return i.def(r(this,"WeakSet"),t,!0)}},i,!1,!0)},function(t,e,n){"use strict";var i=n(0),r=n(73),o=n(104),g=n(1),A=n(43),s=n(7),C=n(3),I=n(2).ArrayBuffer,a=n(58),u=o.ArrayBuffer,c=o.DataView,l=r.ABV&&I.isView,f=u.prototype.slice,h=r.VIEW;i(i.G+i.W+i.F*(I!==u),{ArrayBuffer:u}),i(i.S+i.F*!r.CONSTR,"ArrayBuffer",{isView:function(t){return l&&l(t)||C(t)&&h in t}}),i(i.P+i.U+i.F*n(4)((function(){return!new u(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==f&&void 0===e)return f.call(g(this),t);for(var n=g(this).byteLength,i=A(t,n),r=A(void 0===e?n:e,n),o=new(a(this,u))(s(r-i)),C=new c(this),I=new c(o),l=0;i<r;)I.setUint8(l++,C.getUint8(i++));return o}}),n(46)("ArrayBuffer")},function(t,e,n){var i=n(0);i(i.G+i.W+i.F*!n(73).ABV,{DataView:n(104).DataView})},function(t,e,n){n(34)("Int8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(34)("Uint8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(34)("Uint8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}),!0)},function(t,e,n){n(34)("Int16",2,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(34)("Uint16",2,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(34)("Int32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(34)("Uint32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(34)("Float32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){n(34)("Float64",8,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},function(t,e,n){var i=n(0),r=n(12),o=n(1),g=(n(2).Reflect||{}).apply,A=Function.apply;i(i.S+i.F*!n(4)((function(){g((function(){}))})),"Reflect",{apply:function(t,e,n){var i=r(t),s=o(n);return g?g(i,e,s):A.call(i,e,s)}})},function(t,e,n){var i=n(0),r=n(33),o=n(12),g=n(1),A=n(3),s=n(4),C=n(118),I=(n(2).Reflect||{}).construct,a=s((function(){function t(){}return!(I((function(){}),[],t)instanceof t)})),u=!s((function(){I((function(){}))}));i(i.S+i.F*(a||u),"Reflect",{construct:function(t,e){o(t),g(e);var n=arguments.length<3?t:o(arguments[2]);if(u&&!a)return I(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return i.push.apply(i,e),new(C.apply(t,i))}var s=n.prototype,c=r(A(s)?s:Object.prototype),l=Function.apply.call(t,c,e);return A(l)?l:c}})},function(t,e,n){var i=n(8),r=n(0),o=n(1),g=n(27);r(r.S+r.F*n(4)((function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){o(t),e=g(e,!0),o(n);try{return i.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var i=n(0),r=n(20).f,o=n(1);i(i.S,"Reflect",{deleteProperty:function(t,e){var n=r(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var i=n(0),r=n(1),o=function(t){this._t=r(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(66)(o,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),i(i.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,n){var i=n(20),r=n(21),o=n(17),g=n(0),A=n(3),s=n(1);g(g.S,"Reflect",{get:function t(e,n){var g,C,I=arguments.length<3?e:arguments[2];return s(e)===I?e[n]:(g=i.f(e,n))?o(g,"value")?g.value:void 0!==g.get?g.get.call(I):void 0:A(C=r(e))?t(C,n,I):void 0}})},function(t,e,n){var i=n(20),r=n(0),o=n(1);r(r.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return i.f(o(t),e)}})},function(t,e,n){var i=n(0),r=n(21),o=n(1);i(i.S,"Reflect",{getPrototypeOf:function(t){return r(o(t))}})},function(t,e,n){var i=n(0);i(i.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var i=n(0),r=n(1),o=Object.isExtensible;i(i.S,"Reflect",{isExtensible:function(t){return r(t),!o||o(t)}})},function(t,e,n){var i=n(0);i(i.S,"Reflect",{ownKeys:n(105)})},function(t,e,n){var i=n(0),r=n(1),o=Object.preventExtensions;i(i.S,"Reflect",{preventExtensions:function(t){r(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){var i=n(8),r=n(20),o=n(21),g=n(17),A=n(0),s=n(36),C=n(1),I=n(3);A(A.S,"Reflect",{set:function t(e,n,A){var a,u,c=arguments.length<4?e:arguments[3],l=r.f(C(e),n);if(!l){if(I(u=o(e)))return t(u,n,A,c);l=s(0)}if(g(l,"value")){if(!1===l.writable||!I(c))return!1;if(a=r.f(c,n)){if(a.get||a.set||!1===a.writable)return!1;a.value=A,i.f(c,n,a)}else i.f(c,n,s(0,A));return!0}return void 0!==l.set&&(l.set.call(c,A),!0)}})},function(t,e,n){var i=n(0),r=n(84);r&&i(i.S,"Reflect",{setPrototypeOf:function(t,e){r.check(t,e);try{return r.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){"use strict";var i=n(0),r=n(61)(!0);i(i.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(40)("includes")},function(t,e,n){"use strict";var i=n(0),r=n(138),o=n(11),g=n(7),A=n(12),s=n(95);i(i.P,"Array",{flatMap:function(t){var e,n,i=o(this);return A(t),e=g(i.length),n=s(i,0),r(n,i,i,e,0,1,t,arguments[1]),n}}),n(40)("flatMap")},function(t,e,n){"use strict";var i=n(0),r=n(138),o=n(11),g=n(7),A=n(25),s=n(95);i(i.P,"Array",{flatten:function(){var t=arguments[0],e=o(this),n=g(e.length),i=s(e,0);return r(i,e,e,n,0,void 0===t?1:A(t)),i}}),n(40)("flatten")},function(t,e,n){"use strict";var i=n(0),r=n(64)(!0);i(i.P,"String",{at:function(t){return r(this,t)}})},function(t,e,n){"use strict";var i=n(0),r=n(139),o=n(71),g=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);i(i.P+i.F*g,"String",{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){"use strict";var i=n(0),r=n(139),o=n(71),g=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);i(i.P+i.F*g,"String",{padEnd:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){"use strict";n(52)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){"use strict";n(52)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){"use strict";var i=n(0),r=n(28),o=n(7),g=n(67),A=n(57),s=RegExp.prototype,C=function(t,e){this._r=t,this._s=e};n(66)(C,"RegExp String",(function(){var t=this._r.exec(this._s);return{value:t,done:null===t}})),i(i.P,"String",{matchAll:function(t){if(r(this),!g(t))throw TypeError(t+" is not a regexp!");var e=String(this),n="flags"in s?String(t.flags):A.call(t),i=new RegExp(t.source,~n.indexOf("g")?n:"g"+n);return i.lastIndex=o(t.lastIndex),new C(i,e)}})},function(t,e,n){n(79)("asyncIterator")},function(t,e,n){n(79)("observable")},function(t,e,n){var i=n(0),r=n(105),o=n(15),g=n(20),A=n(94);i(i.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,i=o(t),s=g.f,C=r(i),I={},a=0;C.length>a;)void 0!==(n=s(i,e=C[a++]))&&A(I,e,n);return I}})},function(t,e,n){var i=n(0),r=n(140)(!1);i(i.S,"Object",{values:function(t){return r(t)}})},function(t,e,n){var i=n(0),r=n(140)(!0);i(i.S,"Object",{entries:function(t){return r(t)}})},function(t,e,n){"use strict";var i=n(0),r=n(11),o=n(12),g=n(8);n(6)&&i(i.P+n(74),"Object",{__defineGetter__:function(t,e){g.f(r(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var i=n(0),r=n(11),o=n(12),g=n(8);n(6)&&i(i.P+n(74),"Object",{__defineSetter__:function(t,e){g.f(r(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var i=n(0),r=n(11),o=n(27),g=n(21),A=n(20).f;n(6)&&i(i.P+n(74),"Object",{__lookupGetter__:function(t){var e,n=r(this),i=o(t,!0);do{if(e=A(n,i))return e.get}while(n=g(n))}})},function(t,e,n){"use strict";var i=n(0),r=n(11),o=n(27),g=n(21),A=n(20).f;n(6)&&i(i.P+n(74),"Object",{__lookupSetter__:function(t){var e,n=r(this),i=o(t,!0);do{if(e=A(n,i))return e.set}while(n=g(n))}})},function(t,e,n){var i=n(0);i(i.P+i.R,"Map",{toJSON:n(141)("Map")})},function(t,e,n){var i=n(0);i(i.P+i.R,"Set",{toJSON:n(141)("Set")})},function(t,e,n){n(75)("Map")},function(t,e,n){n(75)("Set")},function(t,e,n){n(75)("WeakMap")},function(t,e,n){n(75)("WeakSet")},function(t,e,n){n(76)("Map")},function(t,e,n){n(76)("Set")},function(t,e,n){n(76)("WeakMap")},function(t,e,n){n(76)("WeakSet")},function(t,e,n){var i=n(0);i(i.G,{global:n(2)})},function(t,e,n){var i=n(0);i(i.S,"System",{global:n(2)})},function(t,e,n){var i=n(0),r=n(24);i(i.S,"Error",{isError:function(t){return"Error"===r(t)}})},function(t,e,n){var i=n(0);i(i.S,"Math",{clamp:function(t,e,n){return Math.min(n,Math.max(e,t))}})},function(t,e,n){var i=n(0);i(i.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,e,n){var i=n(0),r=180/Math.PI;i(i.S,"Math",{degrees:function(t){return t*r}})},function(t,e,n){var i=n(0),r=n(143),o=n(124);i(i.S,"Math",{fscale:function(t,e,n,i,g){return o(r(t,e,n,i,g))}})},function(t,e,n){var i=n(0);i(i.S,"Math",{iaddh:function(t,e,n,i){var r=t>>>0,o=n>>>0;return(e>>>0)+(i>>>0)+((r&o|(r|o)&~(r+o>>>0))>>>31)|0}})},function(t,e,n){var i=n(0);i(i.S,"Math",{isubh:function(t,e,n,i){var r=t>>>0,o=n>>>0;return(e>>>0)-(i>>>0)-((~r&o|~(r^o)&r-o>>>0)>>>31)|0}})},function(t,e,n){var i=n(0);i(i.S,"Math",{imulh:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i,g=n>>16,A=i>>16,s=(g*o>>>0)+(r*o>>>16);return g*A+(s>>16)+((r*A>>>0)+(65535&s)>>16)}})},function(t,e,n){var i=n(0);i(i.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,e,n){var i=n(0),r=Math.PI/180;i(i.S,"Math",{radians:function(t){return t*r}})},function(t,e,n){var i=n(0);i(i.S,"Math",{scale:n(143)})},function(t,e,n){var i=n(0);i(i.S,"Math",{umulh:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i,g=n>>>16,A=i>>>16,s=(g*o>>>0)+(r*o>>>16);return g*A+(s>>>16)+((r*A>>>0)+(65535&s)>>>16)}})},function(t,e,n){var i=n(0);i(i.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},function(t,e,n){"use strict";var i=n(0),r=n(14),o=n(2),g=n(58),A=n(131);i(i.P+i.R,"Promise",{finally:function(t){var e=g(this,r.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return A(e,t()).then((function(){return n}))}:t,n?function(n){return A(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){"use strict";var i=n(0),r=n(103),o=n(130);i(i.S,"Promise",{try:function(t){var e=r.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){var i=n(35),r=n(1),o=i.key,g=i.set;i.exp({defineMetadata:function(t,e,n,i){g(t,e,r(n),o(i))}})},function(t,e,n){var i=n(35),r=n(1),o=i.key,g=i.map,A=i.store;i.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:o(arguments[2]),i=g(r(e),n,!1);if(void 0===i||!i.delete(t))return!1;if(i.size)return!0;var s=A.get(e);return s.delete(n),!!s.size||A.delete(e)}})},function(t,e,n){var i=n(35),r=n(1),o=n(21),g=i.has,A=i.get,s=i.key,C=function(t,e,n){if(g(t,e,n))return A(t,e,n);var i=o(e);return null!==i?C(t,i,n):void 0};i.exp({getMetadata:function(t,e){return C(t,r(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,n){var i=n(134),r=n(142),o=n(35),g=n(1),A=n(21),s=o.keys,C=o.key,I=function(t,e){var n=s(t,e),o=A(t);if(null===o)return n;var g=I(o,e);return g.length?n.length?r(new i(n.concat(g))):g:n};o.exp({getMetadataKeys:function(t){return I(g(t),arguments.length<2?void 0:C(arguments[1]))}})},function(t,e,n){var i=n(35),r=n(1),o=i.get,g=i.key;i.exp({getOwnMetadata:function(t,e){return o(t,r(e),arguments.length<3?void 0:g(arguments[2]))}})},function(t,e,n){var i=n(35),r=n(1),o=i.keys,g=i.key;i.exp({getOwnMetadataKeys:function(t){return o(r(t),arguments.length<2?void 0:g(arguments[1]))}})},function(t,e,n){var i=n(35),r=n(1),o=n(21),g=i.has,A=i.key,s=function(t,e,n){if(g(t,e,n))return!0;var i=o(e);return null!==i&&s(t,i,n)};i.exp({hasMetadata:function(t,e){return s(t,r(e),arguments.length<3?void 0:A(arguments[2]))}})},function(t,e,n){var i=n(35),r=n(1),o=i.has,g=i.key;i.exp({hasOwnMetadata:function(t,e){return o(t,r(e),arguments.length<3?void 0:g(arguments[2]))}})},function(t,e,n){var i=n(35),r=n(1),o=n(12),g=i.key,A=i.set;i.exp({metadata:function(t,e){return function(n,i){A(t,e,(void 0!==i?r:o)(n),g(i))}}})},function(t,e,n){var i=n(0),r=n(102)(),o=n(2).process,g="process"==n(24)(o);i(i.G,{asap:function(t){var e=g&&o.domain;r(e?e.bind(t):t)}})},function(t,e,n){"use strict";var i=n(0),r=n(2),o=n(14),g=n(102)(),A=n(5)("observable"),s=n(12),C=n(1),I=n(47),a=n(48),u=n(18),c=n(41),l=c.RETURN,f=function(t){return null==t?void 0:s(t)},h=function(t){var e=t._c;e&&(t._c=void 0,e())},p=function(t){return void 0===t._o},d=function(t){p(t)||(t._o=void 0,h(t))},y=function(t,e){C(t),this._c=void 0,this._o=t,t=new v(this);try{var n=e(t),i=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){i.unsubscribe()}:s(n),this._c=n)}catch(e){return void t.error(e)}p(this)&&h(this)};y.prototype=a({},{unsubscribe:function(){d(this)}});var v=function(t){this._s=t};v.prototype=a({},{next:function(t){var e=this._s;if(!p(e)){var n=e._o;try{var i=f(n.next);if(i)return i.call(n,t)}catch(t){try{d(e)}finally{throw t}}}},error:function(t){var e=this._s;if(p(e))throw t;var n=e._o;e._o=void 0;try{var i=f(n.error);if(!i)throw t;t=i.call(n,t)}catch(t){try{h(e)}finally{throw t}}return h(e),t},complete:function(t){var e=this._s;if(!p(e)){var n=e._o;e._o=void 0;try{var i=f(n.complete);t=i?i.call(n,t):void 0}catch(t){try{h(e)}finally{throw t}}return h(e),t}}});var m=function(t){I(this,m,"Observable","_f")._f=s(t)};a(m.prototype,{subscribe:function(t){return new y(t,this._f)},forEach:function(t){var e=this;return new(o.Promise||r.Promise)((function(n,i){s(t);var r=e.subscribe({next:function(e){try{return t(e)}catch(t){i(t),r.unsubscribe()}},error:i,complete:n})}))}}),a(m,{from:function(t){var e="function"==typeof this?this:m,n=f(C(t)[A]);if(n){var i=C(n.call(t));return i.constructor===e?i:new e((function(t){return i.subscribe(t)}))}return new e((function(e){var n=!1;return g((function(){if(!n){try{if(c(t,!1,(function(t){if(e.next(t),n)return l}))===l)return}catch(t){if(n)throw t;return void e.error(t)}e.complete()}})),function(){n=!0}}))},of:function(){for(var t=0,e=arguments.length,n=new Array(e);t<e;)n[t]=arguments[t++];return new("function"==typeof this?this:m)((function(t){var e=!1;return g((function(){if(!e){for(var i=0;i<n.length;++i)if(t.next(n[i]),e)return;t.complete()}})),function(){e=!0}}))}}),u(m.prototype,A,(function(){return this})),i(i.G,{Observable:m}),n(46)("Observable")},function(t,e,n){var i=n(2),r=n(0),o=n(71),g=[].slice,A=/MSIE .\./.test(o),s=function(t){return function(e,n){var i=arguments.length>2,r=!!i&&g.call(arguments,2);return t(i?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,n)}};r(r.G+r.B+r.F*A,{setTimeout:s(i.setTimeout),setInterval:s(i.setInterval)})},function(t,e,n){var i=n(0),r=n(101);i(i.G+i.B,{setImmediate:r.set,clearImmediate:r.clear})},function(t,e,n){for(var i=n(97),r=n(32),o=n(19),g=n(2),A=n(18),s=n(45),C=n(5),I=C("iterator"),a=C("toStringTag"),u=s.Array,c={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},l=r(c),f=0;f<l.length;f++){var h,p=l[f],d=c[p],y=g[p],v=y&&y.prototype;if(v&&(v[I]||A(v,I,u),v[a]||A(v,a,p),s[p]=u,d))for(h in i)v[h]||o(v,h,i[h],!0)}},function(t,e,n){"use strict";var i=n(23),r=n(0),o=n(36),g=n(83),A=n(33),s=n(21),C=n(32),I=n(8),a=n(357),u=n(12),c=n(41),l=n(144),f=n(66),h=n(98),p=n(3),d=n(15),y=n(6),v=n(17),m=function(t){var e=1==t,n=4==t;return function(r,o,g){var A,s,C,I=i(o,g,3),a=d(r),u=e||7==t||2==t?new("function"==typeof this?this:P):void 0;for(A in a)if(v(a,A)&&(C=I(s=a[A],A,r),t))if(e)u[A]=C;else if(C)switch(t){case 2:u[A]=s;break;case 3:return!0;case 5:return s;case 6:return A;case 7:u[C[0]]=C[1]}else if(n)return!1;return 3==t||n?n:u}},b=m(6),x=function(t){return function(e){return new w(e,t)}},w=function(t,e){this._t=d(t),this._a=C(t),this._i=0,this._k=e};function P(t){var e=A(null);return null!=t&&(l(t)?c(t,!0,(function(t,n){e[t]=n})):g(e,t)),e}f(w,"Dict",(function(){var t,e=this._t,n=this._a,i=this._k;do{if(this._i>=n.length)return this._t=void 0,h(1)}while(!v(e,t=n[this._i++]));return h(0,"keys"==i?t:"values"==i?e[t]:[t,e[t]])})),P.prototype=null,r(r.G+r.F,{Dict:P}),r(r.S,"Dict",{keys:x("keys"),values:x("values"),entries:x("entries"),forEach:m(0),map:m(1),filter:m(2),some:m(3),every:m(4),find:m(5),findKey:b,mapPairs:m(7),reduce:function(t,e,n){u(e);var i,r,o=d(t),g=C(o),A=g.length,s=0;if(arguments.length<3){if(!A)throw TypeError("Reduce of empty object with no initial value");i=o[g[s++]]}else i=Object(n);for(;A>s;)v(o,r=g[s++])&&(i=e(i,o[r],r,t));return i},keyOf:a,includes:function(t,e){return void 0!==(e==e?a(t,e):b(t,(function(t){return t!=t})))},has:v,get:function(t,e){if(v(t,e))return t[e]},set:function(t,e,n){return y&&e in Object?I.f(t,e,o(0,n)):t[e]=n,t},isDict:function(t){return p(t)&&s(t)===P.prototype}})},function(t,e,n){var i=n(32),r=n(15);t.exports=function(t,e){for(var n,o=r(t),g=i(o),A=g.length,s=0;A>s;)if(o[n=g[s++]]===e)return n}},function(t,e,n){var i=n(1),r=n(56);t.exports=n(14).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},function(t,e,n){var i=n(2),r=n(14),o=n(0),g=n(145);o(o.G+o.F,{delay:function(t){return new(r.Promise||i.Promise)((function(e){setTimeout(g.call(e,!0),t)}))}})},function(t,e,n){var i=n(146),r=n(0);n(14)._=i._=i._||{},r(r.P+r.F,"Function",{part:n(145)})},function(t,e,n){var i=n(0);i(i.S+i.F,"Object",{isObject:n(3)})},function(t,e,n){var i=n(0);i(i.S+i.F,"Object",{classof:n(39)})},function(t,e,n){var i=n(0),r=n(147);i(i.S+i.F,"Object",{define:r})},function(t,e,n){var i=n(0),r=n(147),o=n(33);i(i.S+i.F,"Object",{make:function(t,e){return r(o(t),e)}})},function(t,e,n){"use strict";n(65)(Number,"Number",(function(t){this._l=+t,this._i=0}),(function(){var t=this._i++,e=!(t<this._l);return{done:e,value:e?void 0:t}}))},function(t,e,n){var i=n(0),r=n(106)(/[\\^$*+?.()|[\]{}]/g,"\\$&");i(i.S,"RegExp",{escape:function(t){return r(t)}})},function(t,e,n){"use strict";var i=n(0),r=n(106)(/[&<>"']/g,{"&":"&","<":"<",">":">",'"':""","'":"'"});i(i.P+i.F,"String",{escapeHTML:function(){return r(this)}})},function(t,e,n){"use strict";var i=n(0),r=n(106)(/&(?:amp|lt|gt|quot|apos);/g,{"&":"&","<":"<",">":">",""":'"',"'":"'"});i(i.P+i.F,"String",{unescapeHTML:function(){return r(this)}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),r=n(370),o=n(16),g=function(){function t(t){var e=this,n=t.dom,i=t.padding,o=void 0===i?20:i;this.processing=new r.default({dom:n}),this.processing.cad=this,this.padding=o,this.isDestroy=!1,this.resizeHandle=function(){return e.processing.data&&e.adapt(e.processing.data)},this.init()}return t.prototype.adapt=function(t,e,n){void 0===t&&(t=this.processing.data),void 0===e&&(e=this.processing.render.layer.offsetWidth||parseInt(getComputedStyle(this.processing.render.layer).width)||100),void 0===n&&(n=this.processing.render.layer.offsetHeight||parseInt(getComputedStyle(this.processing.render.layer).height)||100),0!==t.vertex.length&&(e&&n&&(this.processing.render.props=i.getMapMultipleWH(e,n,t,this.padding)),this.processing.render.props.scale<=0&&(this.processing.render.props={width:0,height:0,multiple:0,scale:1,top:0,left:0}),this.processing.render.adaptLayer(e,n),o.CADElement.update(this.processing.render))},t.prototype.init=function(){window.addEventListener("resize",this.resizeHandle,!1)},t.prototype.destroy=function(){for(var t in window.removeEventListener("resize",this.resizeHandle,!1),this.processing.destroy(),this.processing=null,this.isDestroy=!0,this)"function"==typeof this[t]?this[t]=function(){}:delete this[t]},t}();e.default=g},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var o=n(371),g=n(107),A=n(376),s=n(378),C=n(379),I=function(){function t(t){var e=t.dom;this.render=new o.default({layer:e,processing:this}),this.points=[],this.lines=[],this.cases=[],this.doors=[],this.columns=[],this.slideDoors=[],this.groundCases=[],this.openSpaces=[],this.taggings=[],this.bayCases=[],this.furnColumns=[],this.furnFlues=[]}return t.prototype.rep=function(t){var e=this;this.attrs.forEach((function(n){var i=e[n].findIndex((function(e){return e.ele===t}));if("lines"===n&&g.default,~i){if("points"===n){var r=e[n][i].id;e.data.room.forEach((function(t){for(;~t.ground.indexOf(r);)t.ground.splice(t.ground.indexOf(r),1),t.ground.length<=1&&e.delRoom(t.ground);t.hole.forEach((function(t){for(;~t.pos.indexOf(r);)t.pos.splice(t.pos.indexOf(r),1),t.pos.length<=2&&e.delHole(t.pos)}))}))}t.__id=e[n][i]&&e[n][i].id,e[n].splice(i,1)}})),this.render.remove(t)},t.prototype.retrofitElementDestroy=function(t){var e=this,n=t.destroy;t.__load_destroy||(t.__load_destroy=!0,t.destroy=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];i[0]?e.rep(t):t.nextTick((function(){return e.rep(t)})),n.call.apply(n,r([t],i)),t.__load_destroy=!1})},t.prototype.updateWallPoints=function(t,e,n){var i=this,r=e.map((function(t){return i.points.find((function(e){return e.ele===t})).id})),o=n.map((function(t){return i.points.find((function(e){return e.ele===t})).id})),g=function(t){for(var e=1;e--;){var n=t.indexOf(r[0]),g=t.indexOf(r[1]);if(~n&&r[0]!==o[0]){var A=t.indexOf(o[0]);~A&&t.splice(A,1),t[t.indexOf(r[0])]=o[0]}if(~g&&r[1]!==o[1]){var s=t.indexOf(o[1]);~s&&t.splice(s,1),t[t.indexOf(r[1])]=o[1]}}1===t.length&&i.delRoom(t)};this.data.room.forEach((function(t){g(t.ground),t.hole.forEach((function(t){return g(t.pos)}))}))},t.prototype.retrofitElementIntercept=function(t){},t.prototype.destroy=function(){var t=this,e=this.attrs.map((function(e){return t[e]}));this.data={vertex:[],wall:[],room:[],window:[],column:[],door:[],surplus:[],slideDoor:[],tagging:[],groundCase:[],bayCase:[],furnColumn:[],furnFlue:[],openSpace:[],dire:0},e.forEach((function(t){for(;t.length;)t[0].ele.destroy(!0)})),this.render.destroy(),this.render=null},t}();e._Processing=I,e.default=I;var a=i(i(i({},A.methods),s.methods),C.methods);Object.keys(a).forEach((function(t){return I.prototype[t]=a[t]}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(16),r=n(9),o=function(){function t(t){var e=this,n=t.layer,r=t.width,o=void 0===r?n.offsetWidth:r,g=t.height,A=void 0===g?n.offsetHeight:g,s=t.processing;this.clickHandle=function(){e.elements.forEach((function(t){return t.changeSelect(!1)}))},i.CADElement.init(this),this.props={left:0,top:0,width:o,height:A,multiple:1,scale:1},this.elements=[],this.processing=s,this.init(n)}return t.prototype.init=function(t){this.svg=document.createElementNS(r.SVGURI,"svg"),this.g=document.createElementNS(r.SVGURI,"g"),this.svg.appendChild(this.g),this.layer=t,this.layer.style.position="relative",this.svg.style.position="absolute",this.svg.style.left="0",this.svg.style.top="0",this.svg.style.right="0",this.svg.style.bottom="0",this.svg.setAttribute("version","1.0"),this.svg.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svg.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.svg.addEventListener("click",this.clickHandle,!1),this.layer.appendChild(this.svg)},t.prototype.adaptLayer=function(t,e){void 0===t&&(t=this.layer.offsetWidth),void 0===e&&(e=this.layer.offsetHeight);var n=this.props.width/2-this.props.left,r=this.props.height/2-this.props.top;this.g.setAttribute("transform","\n translate("+this.props.left+","+this.props.top+")\n translate("+n+","+r+")\n scale("+this.props.scale+","+this.props.scale+")\n translate("+-n+","+-r+")\n "),this.svg.setAttribute("width",t.toString()),this.svg.setAttribute("height",e.toString()),this.svg.setAttribute("viewBox","0 0 "+this.props.width+" "+this.props.height),i.CADElement.update(this)},t.prototype.screenToRealPoint=function(t){var e=t.x,n=t.y,i=this.props.width/2-this.props.left,r=this.props.height/2-this.props.top,o=this.props.width/this.props.multiple,g=this.props.height/this.props.multiple;return 0==o||0==g?{x:i,y:r}:{x:(e*this.props.width/o-this.props.left-i)/this.props.scale+i,y:(n*this.props.height/g-this.props.top-r)/this.props.scale+r}},t.prototype.realPointToScreen=function(t){var e=t.x,n=t.y,i=this.props.width/2-this.props.left,r=this.props.height/2-this.props.top,o=this.props.width/this.props.multiple,g=this.props.height/this.props.multiple;return{x:((e-i)*this.props.scale+i+this.props.left)*o/this.props.width,y:((n-r)*this.props.scale+r+this.props.top)*g/this.props.height}},t.prototype.push=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];e.forEach((function(e){var n=t.elements.find((function(t){return t.zIndex>e.zIndex}));if(n){try{t.g.insertBefore(e.real,n.real)}catch(n){t.g.appendChild(e.real)}t.elements.splice(t.elements.indexOf(n),0,e)}else t.g.appendChild(e.real),t.elements.push(e)}))},t.prototype.remove=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];e.forEach((function(e){try{t.g.removeChild(e.real),t.elements.splice(t.elements.indexOf(e),1)}catch(t){}}))},t.prototype.destroy=function(){this.svg.removeEventListener("click",this.clickHandle,!1),this.layer.removeChild(this.svg)},t}();e.default=o},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},r=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function g(t){try{s(i.next(t))}catch(t){o(t)}}function A(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,A)}s((i=i.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,i,r,o,g={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function A(o){return function(A){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,i=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!(r=(r=g.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){g=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){g.label=o[1];break}if(6===o[0]&&g.label<r[1]){g.label=r[1],r=o;break}if(r&&g.label<r[2]){g.label=r[2],g.ops.push(o);break}r[2]&&g.ops.pop(),g.trys.pop();continue}o=e.call(t,g)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,A])}}},g=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var A=n(13),s=function(){function t(t,e){var n=this,i=e.notice,s=e.intercept,C=e.childAttr,I=e.afferent;return this.updateNotices=[],this.changeNotices=[],this.getSubAll=function(){var t=[];return n.subscribe.forEach((function(e){t.push.apply(t,e.getSubAll())})),g(n.subscribe,t)},this.data=t,this.subscribe=[],this.updateKeys=new Set,this.attrs=[],this.intercept=s,this.afferent=I,this.notice=i,this.direct=!1,this.childAttr=C,this.deleteUpdateKey=this.deleteUpdateKey.bind(this),this.addUpdateKey=this.addUpdateKey.bind(this),this.changeNotices=[],this.setHandle=A.debounce((function(t){return r(n,void 0,void 0,(function(){var e;return o(this,(function(n){switch(n.label){case 0:return[4,this.setVal.apply(this,t)];case 1:return e=n.sent(),Object.keys(t[4]).forEach(this.deleteUpdateKey),this.noticeTick(),this.noticeAll(e||{args:{}}),e&&this.noticeChange(),[2]}}))}))}),0,(function(t){var e=t[0][0],n=e.sub,i=e.current,r=e.state,o=e.childAttr,g={};return t.forEach((function(t){var e=t[0],n=e.key,i=e.val;return g[n]=i})),[n,i,r,o,g]}),(function(){n.changeNotices=[]})),this}return t.prototype.addUpdateKey=function(t){var e=this;this.updateKeys.add(t),this.subscribe.forEach((function(t){t.updateKeys.has(e)||t.addUpdateKey(e)}))},t.prototype.deleteUpdateKey=function(t){var e=this;this.updateKeys.delete(t),0===this.updateKeys.size&&(this.subscribe.forEach((function(t){t.deleteUpdateKey(e)})),this.test&&this.test())},t.prototype.noticeTick=function(){if(0===this.updateKeys.size)for(;this.updateNotices.length;)this.updateNotices.shift()();this.subscribe.forEach((function(t){return t.noticeTick()}))},t.prototype.noticeChange=function(){for(;this.changeNotices.length;)this.changeNotices.shift()();this.subscribe.forEach((function(t){return t.noticeChange()}))},t.prototype.nextTick=function(t){var e=this;setTimeout((function(){0===e.updateKeys.size?t():(e.updateNotices.push(t),setTimeout((function(){if(~e.updateNotices.indexOf(t)){e.updateNotices.slice(e.updateNotices.indexOf(t),1);t()}}),200))}))},t.prototype.nextChange=function(t){this.changeNotices.push(t)},t.prototype.interceptAll=function(t){return r(this,void 0,void 0,(function(){var e,n,i,r,s,C;return o(this,(function(o){for(e=[],n=[],r=g([this],this.getSubAll()),s=void 0,C=0;s=r[C];C++)if(n.push(s.afferent),s.intercept){if(i=s.intercept(n,t,e),e.push(i),A.type.isBoolean(i)&&!i)return[2,!1]}else e.push(void 0);return[2,e]}))}))},t.prototype.noticeAll=function(t){t=i(i({},t),{state:{data:this.afferent||this,trigger:t.state,ret:void 0}});var e=this.notice(t);t.state.ret=e;for(var n=0;n<this.subscribe.length;n++)this.subscribe[n].noticeAll(t);return t},t.prototype.bindDataChange=function(){var t=this;this.__firstBind=!0,Object.keys(this.data).forEach((function(e){t.attrs.push(e),t.bindItem(t,t,t.data,e,t.childAttr)})),this.__firstBind=!1},t.prototype.getSeftSub=function(){return[this,this.subscribe.flatMap((function(t){return t.getSeftSub()}))]},t.prototype.setVal=function(t,e,n,g,s){return r(this,void 0,void 0,(function(){var r,C,I,a=this;return o(this,(function(o){switch(o.label){case 0:return r={args:s},!A.type.isUndefined(s.x)&&A.type.isUndefined(s.y)?s.y=this.afferent.y:!A.type.isUndefined(s.y)&&A.type.isUndefined(s.x)&&(s.x=this.afferent.x),[4,t.interceptAll(s)];case 1:return(C=o.sent())?(I=i({},s),C.forEach((function(t){return I=i(i({},I),t)})),Object.keys(n).forEach((function(i){I.hasOwnProperty(i)&&n[i]!==I[i]&&(a.relieveOldSubs(n[i],g),n[i]=I[i],a.continueListen(t,e,n,i,g,I[i]))})),[2,r]):[2,null]}}))}))},t.prototype.relieveOldSubs=function(e,n){var i=this;A.type.isUndefined(e)||(e instanceof t||n&&e[n]instanceof t?this.relieveOldSub(e,n):A.type.isArray(e)?e.forEach((function(t,e){i.relieveOldSub(t,n)})):A.type.isObject(e)&&Object.values(e).forEach((function(t){i.relieveOldSub(t,n)})))},t.prototype.relieveOldSub=function(e,n){e instanceof t?e.subscribe.splice(e.subscribe.indexOf(this),1):n&&e[n]instanceof t&&e[n].subscribe.splice(e[n].subscribe.indexOf(this),1)},t.prototype.continueListen=function(e,n,i,r,o,g){var s=this;A.type.isNull(g)||A.type.isUndefined(g)||(g instanceof t||o&&g[o]instanceof t?~(g instanceof t?g:g[o]).subscribe.indexOf(e)||this.bindItem(e,n[r],i,r,o,!0):A.type.isArray(g)?g.forEach((function(t,i){s.bindItem(e,n[r],g,i,o,!0)})):A.type.isObject(g)&&Object.keys(i[r]).forEach((function(t){s.bindItem(e,n[r],g,t,o,!0)})))},t.prototype.bindItem=function(e,n,i,r,o,g){void 0===g&&(g=!1),i instanceof t?i.subscribe.push(e):o&&i[r]&&i[r][o]instanceof t&&i[r][o].subscribe.push(e),g||(Object.defineProperty(n,r,{get:function(){return i[r]},set:function(t){this.__firstBind||this.direct?(i[r]=t,this.continueListen(e,n,i,r,o,t)):(this.addUpdateKey(r),this.setHandle({sub:e,current:n,state:i,key:r,childAttr:o,val:t}))}}),this.continueListen(e,n,i,r,o,i[r]))},t}();e._State=s,e.getter=function(t,e){e.attrs.forEach((function(n){Object.defineProperty(t,n,{configurable:!0,get:function(){return e[n]}})}))},e.setter=function(t,e){e.attrs.forEach((function(n){Object.defineProperty(t,n,{configurable:!0,set:function(t){e[n]=t}})}))},e.State=s},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function g(t){try{s(i.next(t))}catch(t){o(t)}}function A(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,A)}s((i=i.apply(t,e||[])).next())}))},A=this&&this.__generator||function(t,e){var n,i,r,o,g={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function A(o){return function(A){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,i=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!(r=(r=g.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){g=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){g.label=o[1];break}if(6===o[0]&&g.label<r[1]){g.label=r[1],r=o;break}if(r&&g.label<r[2]){g.label=r[2],g.ops.push(o);break}r[2]&&g.ops.pop(),g.trys.pop();continue}o=e.call(t,g)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,A])}}},s=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n},C=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var I=n(108),a=n(10),u=n(13),c=n(31),l=n(9),f=null,h=function(t){function e(e){var n=e.isOut,i=e.hover,r=e.width,g=void 0===r?3:r,A=e.border,C=void 0!==A&&A,I=e.exterior,a=s(e,["isOut","hover","width","border","exterior"]),u=t.call(this,o(o({},a),{width:g}))||this;return u.hover=i||o(o({},u.init),{color:"rgba(243, 255, 0, 0.8)"}),u.isOut=n,u.adopt=!1,u.border=C,u.exterior=I,u.listenPointDrag(),Object.defineProperty(u,"wallLines",{get:function(){return a.renderer.processing.lines.map((function(t){return t.ele}))}}),u}return r(e,t),e.prototype.setHoverStyle=function(){this.color=this.hover.color,this.width=this.hover.width,this.linecap=this.hover.linecap},e.prototype.setUnHoverStyle=function(){this.color=this.init.color,this.width=this.init.width,this.linecap=this.init.linecap},e.prototype.destoryPoint=function(t){return g(this,void 0,void 0,(function(){return A(this,(function(e){return t.destroy(),[2]}))}))},e.prototype.listenPointDrag=function(t){var n=this;void 0===t&&(t=this.points),t.forEach((function(t){if(t.__join_lines)return t.__join_lines.push(n);t.__join_lines=[n];var i=t.dragEnd;t.dragEnd=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return g(n,void 0,void 0,(function(){var n,o;return A(this,(function(g){switch(g.label){case 0:return(n=t.__join_lines.find((function(t){return!(a.lineDis({points:t.points})>e.minWidth||c.default.attaArch.get(t)&&c.default.attaArch.get(t).length)})))?[4,n.judgeMerge()]:[3,2];case 1:(o=g.sent())&&(o.adopt=!1,n.nextTick((function(){o.nextTick((function(){n.destroy(),n.destoryPoint(o)}))}))),g.label=2;case 2:return f=null,i.call.apply(i,C([t],r)),[2]}}))}))}}))},e.prototype.getDelRetain=function(){var t,e=this,n=this.renderer.processing,i=n.getPointId(this.points[0]),r=n.getPointId(this.points[1]),o=n.lines.find((function(t){return t.ele===e})).room,g=[];if(~o.ground.indexOf(i))g=o.ground;else{var A=o.hole.find((function(t){var e=t.pos;return~e.indexOf(i)&&~e.indexOf(r)}));if(!A)return setTimeout((function(){e.points[1].destroy()}),100),{delIndex:0,retainIndex:1};g=A.pos}if(f)t=0===this.points.indexOf(f);else{if(g.length>2)t=a.isClockWise(g.map((function(t){return n.data.vertex.find((function(e){return e.id===t}))})));else t=n.lines.filter((function(t){return~t.ele.points.indexOf(e.points[0])})).length<n.lines.filter((function(t){return~t.ele.points.indexOf(e.points[1])})).length;f=this.points[t?0:1]}var s={delIndex:t?0:1,retainIndex:t?1:0};return 2===g.length&&setTimeout((function(){0===n.lines.filter((function(t){return~t.ele.points.indexOf(e.points[s.retainIndex])&&t.ele!==e})).length&&e.points[s.retainIndex].destroy()}),100),s},e.prototype.judgeMerge=function(){return g(this,void 0,void 0,(function(){var t,n,i,r,o=this;return A(this,(function(g){return a.lineDis({points:this.points})>e.minWidth||c.default.attaArch.get(this)&&c.default.attaArch.get(this).length?[2]:(t=this.wallLines,n=this.getDelRetain(),i=n.delIndex,r=n.retainIndex,t.forEach((function(t){var e;t!==o&&~(e=t.points.indexOf(o.points[i]))&&t.nextTick((function(){var n=C(t.points);n[e]=o.points[r],n[i]===n[r]?t.destroy():(t.renderer.processing.updateWallPoints(t,t.points,n),t.points=n,t.update(),t.nextTick((function(){return t.updateJoin()})))}))})),this.points[i].x=this.points[r].x,this.points[i].y=this.points[r].y,this.points[i].adopt=!0,[2,this.points[i]])}))}))},e.prototype.updateJoin=function(){var t=this,e=this.wallLines;this.points[0].__join_lines=e.filter((function(e){return~e.points.indexOf(t.points[0])})),this.points[1].__join_lines=e.filter((function(e){return~e.points.indexOf(t.points[1])}))},e.prototype.removeJoin=function(t){void 0===t&&(t=this);var e=t.points[0].__join_lines,n=t.points[1].__join_lines;e.splice(e.indexOf(t),1),n.splice(n.indexOf(t),1)},e.prototype.checkCross=function(t){var e=this;void 0===t&&(t=this.points);var n=this.renderer.processing;return this.wallLines.filter((function(t){return~t.points.indexOf(e.points[0])||~t.points.indexOf(e.points[1])})).some((function(i){var r=i.points.indexOf(e.points[0]),o=i.points.indexOf(e.points[1]),g=C(i.points);return~r&&(g[r]=t[0]),~o&&(g[o]=t[1]),e.wallLines.some((function(r){if(!~r.points.indexOf(i.points[0])&&!~r.points.indexOf(i.points[1])){var o=a.segmentsIntr(r,{points:g});if(!o)return!1;if(n.lines.find((function(t){return t.ele===r})).room===n.lines.find((function(t){return t.ele===i})).room)return!0;if(0!==a.lineDis({points:[g[0],o]})&&0!==a.lineDis({points:[g[1],o]})&&0!==a.lineDis({points:[r.points[0],o]})&&0!==a.lineDis({points:[r.points[1],o]}))return!0;var A=n.getRoomsByLine(i);A=(A=A.length?A:n.getHolesByLine(i))[0].ground||A[0].pos;var s=n.getRoomsByLine(r);return A!==(s=(s=s.length?s:n.getHolesByLine(r))[0].ground||s[0].pos)&&(A=A.map((function(i){var r=n.points.find((function(t){var e=t.id;return i===e})).ele;return r===e.points[0]?t[0]:r===e.points[1]?t[1]:r})),s=s.map((function(i){var r=n.points.find((function(t){var e=t.id;return i===e})).ele;return r===e.points[0]?t[0]:r===e.points[1]?t[1]:r})),a.isFaceIntersect(A,s))}}))}))},e.prototype.intercept=function(t,e,n){var i=this,r=e.x,o=e.y;e.points;if(u.type.isUndefined(r)||u.type.isUndefined(o))return!0;if(!this.wallLines.some((function(t){return t===i})))return!0;var g=this.points.find((function(e){return~t.indexOf(e)})),A=this.points.indexOf(g),s=C(this.points);return s[A]={x:r,y:o},!(!this.points[0].adopt&&!this.points[1].adopt&&this.checkCross(s))},e.prototype.grentNode=function(){var e=document.createElementNS(l.SVGURI,"g");return this.origin=t.prototype.grentNode.call(this),this.ground=document.createElementNS(l.SVGURI,"g"),e.appendChild(this.ground),e.appendChild(this.origin),e},e.prototype.update=function(){var t=this,e=c.default.attaArch.get(this),n=this.multiple*this.width*(this.border?2:1);this.origin.setAttribute("stroke-width",n.toString()),this.origin.setAttribute("stroke-linecap",this.linecap);try{this.origin.setAttribute("d","M "+this.points[0].x+" "+this.points[0].y+" L "+this.points[1].x+" "+this.points[1].y)}catch(t){console.log(this.real)}if(this.origin.setAttribute("stroke",this.exterior&&"rgba(243, 255, 0, 0.8)"!==this.color?"rgb(150,150,150)":this.color),e&&e.length>0){this.origin.setAttribute("stroke","rgba(0,0,0,0)");var i=e.reduce((function(t,e){return t.concat(e.linePoints)}),[]).sort((function(e,n){return a.lineDis({points:[e,t.points[0]]})-a.lineDis({points:[n,t.points[0]]})}));i.unshift(this.points[0]),i.push(this.points[1]),this.ground.innerHTML="";for(var r="",o=0;o<i.length;o+=2)r+='<path \n stroke="'+(this.exterior&&"rgba(243, 255, 0, 0.8)"!==this.color?"rgb(150,150,150)":this.color)+'" \n stroke-width="'+n+'" \n stroke-linecap="butt" \n d="M '+i[o].x+" "+i[o].y+" L "+i[o+1].x+" "+i[o+1].y+'"></path>';this.ground.innerHTML=r}else this.ground.innerHTML=""},e.prototype.destroy=function(){var e=this,n=this.wallLines;n.splice(n.indexOf(this),1),this.nextTick((function(){n.filter((function(t){return~t.points.indexOf(e.points[0])||~t.points.indexOf(e.points[1])})).forEach((function(t){return t.updateJoin()}))})),t.prototype.destroy.call(this),this.removeJoin()},e.minWidth=.1,e}(I.default);e.default=h},function(t,e,n){"use strict";n.r(e);const i={intersect:function(t,e){let n=this.alignPolygon(e,t);if(!this.checkPolygons(t,n))return!1;this.setPrecision([t,e]);var i=this.edgify(t,n),r=this.polygonate(i);return this.filterPolygons(r,t,n,"intersect")},setPrecision:function(t){for(let e=0;e<t.length;e++){let n=t[e];for(let t=0;t<n.length;t++){let e=n[t];e.x=Number(e.x.toPrecision(10)),e.y=Number(e.y.toPrecision(10))}}},alignPolygon:function(t,e){for(let n=0;n<t.length;n++)for(let i=0;i<e.length;i++)this.distance(t[n],e[i])<1e-13&&(t[n]=e[i]);return t},alignPolygon:function(t,e){for(let n=0;n<t.length;n++)for(let i=0;i<e.length;i++)this.distance(t[n],e[i])<1e-13&&(t[n]=e[i]);return t},distance:function(t,e){var n=Math.abs(t.x-e.x),i=Math.abs(t.y-e.y);return Math.sqrt(n*n+i*i)},checkPolygons:function(t,e){for(var n=[t,e],i=0;i<n.length;i++)if(n[i].length<3)return console.error("Polygon "+(i+1)+" is invalid!"),!1;return!0},edgify:function(t,e){for(var n=this.getEdges(t).concat(this.getEdges(e)),i=[],r=0;r<n.length;r++){for(var o=[],g=0;g<n.length;g++)if(r!=g){var A=this.findEdgeIntersection(n[r],n[g]);this.addNewPoints(A,o)}let t=n[r][0];t.t=0;let e=n[r][1];e.t=1,this.addNewPoints([t,e],o),o=this.sortPoints(o);for(var s=0;s<o.length-1;s++){var C=[{x:o[s].x,y:o[s].y},{x:o[s+1].x,y:o[s+1].y}];this.edgeExists(C,i)||i.push(C)}}return i},addNewPoints:function(t,e){if(t.length>0)for(var n=0;n<t.length;n++)this.pointExists(t[n],e)||e.push(t[n])},sortPoints:function(t){var e=t;return e.sort((t,e)=>t.t>e.t?1:t.t<e.t?-1:void 0),e},getEdges:function(t){for(var e=[],n=t.length,i=0;i<n;i++)e.push([{x:t[i%n].x,y:t[i%n].y},{x:t[(i+1)%n].x,y:t[(i+1)%n].y}]);return e},findEdgeIntersection:function(t,e){var n=t[0].x,i=t[1].x,r=e[0].x,o=e[1].x,g=t[0].y,A=t[1].y,s=e[0].y,C=e[1].y,I=(o-r)*(g-s)-(C-s)*(n-r),a=(C-s)*(i-n)-(o-r)*(A-g),u=I/a,c=((i-n)*(g-s)-(A-g)*(n-r))/a,l=[];if(0===a&&0!==I||u<=0||u>=1||c<0||c>1)return l;if(0===I&&0===a){for(var f=0;f<2;f++){"ORIGIN"==(h=this.classifyPoint(e[f],t)).loc||"DESTINATION"==h.loc?l.push({x:e[f].x,y:e[f].y,t:h.t}):"BETWEEN"==h.loc&&(p=+(n+h.t*(i-n)).toPrecision(10),d=+(g+h.t*(A-g)).toPrecision(10),l.push({x:p,y:d,t:h.t}))}return l}for(f=0;f<2;f++){var h;"ORIGIN"!=(h=this.classifyPoint(e[f],t)).loc&&"DESTINATION"!=h.loc||l.push({x:e[f].x,y:e[f].y,t:h.t})}if(l.length>0)return l;var p=+(n+u*(i-n)).toPrecision(10),d=+(g+u*(A-g)).toPrecision(10);return l.push({x:p,y:d,t:u}),l},classifyPoint:function(t,e){var n=e[1].x-e[0].x,i=e[1].y-e[0].y,r=t.x-e[0].x,o=t.y-e[0].y,g=n*o-r*i;if(t.x===e[0].x&&t.y===e[0].y)return{loc:"ORIGIN",t:0};if(t.x===e[1].x&&t.y===e[1].y)return{loc:"DESTINATION",t:1};var A=(this.polarAngle([e[1],e[0]])-this.polarAngle([{x:e[1].x,y:e[1].y},{x:t.x,y:t.y}]))%360;return A<0&&(A+=360),g<-1e-13?{loc:"LEFT",theta:A}:g>1e-13?{loc:"RIGHT",theta:A}:n*r<0||i*o<0?{loc:"BEHIND",theta:0}:Math.sqrt(n*n+i*i)<Math.sqrt(r*r+o*o)?{loc:"BEYOND",theta:180}:{loc:"BETWEEN",t:0!==n?r/n:o/i}},polarAngle:function(t){var e=t[1].x-t[0].x,n=t[1].y-t[0].y;if(0===e&&0===n)return!1;if(0===e)return n>0?90:270;if(0===n)return e>0?0:180;var i=360*Math.atan(n/e)/(2*Math.PI);return e>0?n>=0?i:i+360:i+180},pointExists:function(t,e){if(0===e.length)return!1;for(var n=0;n<e.length;n++)if(t.x===e[n].x&&t.y===e[n].y)return!0;return!1},edgeExists:function(t,e){if(0===e.length)return!1;for(var n=0;n<e.length;n++)if(this.equalEdges(t,e[n]))return!0;return!1},equalEdges:function(t,e){return t[0].x===e[0].x&&t[0].y===e[0].y&&t[1].x===e[1].x&&t[1].y===e[1].y||t[0].x===e[1].x&&t[0].y===e[1].y&&t[1].x===e[0].x&&t[1].y===e[0].y},polygonate:function(t){for(var e=[],n=[],i=t.length,r=this.getMidpoints(t),o=0;o<i-2;o++){var g,A,s,C,I={x:t[o][0].x,y:t[o][0].y},a={x:t[o][1].x,y:t[o][1].y},u=o;for(s=0;s<2;s++){for(n=[],C=!1;0===n.length||!C;){n.push({x:I.x,y:I.y}),g=void 0;for(var c=0;c<i;c++)if(A=void 0,!this.equalEdges(t[c],t[u])&&(t[c][0].x===a.x&&t[c][0].y===a.y&&(A=t[c][1]),t[c][1].x===a.x&&t[c][1].y===a.y&&(A=t[c][0]),A)){var l=this.classifyPoint(A,[I,a]);(!g||l.theta<g.theta&&0===s||l.theta>g.theta&&1===s)&&(g={x:A.x,y:A.y,theta:l.theta,edge:c})}if(I.x=a.x,I.y=a.y,a.x=g.x,a.y=g.y,u=g.edge,I.x==t[o][0].x&&I.y==t[o][0].y&&a.x==t[o][1].x&&a.y==t[o][1].y){C=!0;for(let t=0;t<r.length;t++)this.findPointInsidePolygon(r[t],n)&&(n=!1)}}n&&!this.polygonExists(n,e)&&e.push(n)}}return e},polygonExists:function(t,e){if(0===e.length)return!1;for(var n=0;n<e.length;n++)if(t.length===e[n].length)for(var i=0;i<t.length&&this.pointExists(t[i],e[n]);i++)if(i===t.length-1)return!0;return!1},filterPolygons:function(t,e,n,i){for(var r,o,g,A=[],s=this.removeSmallPolygons(t,1e-13),C=0;C<s.length;C++)g=this.getPointInsidePolygon(s[C]),r=this.findPointInsidePolygon(g,e),o=this.findPointInsidePolygon(g,n),("intersect"===i&&r&&o||"cut1"===i&&r&&!o||"cut2"===i&&!r&&o||"sum"===i&&(r||o))&&A.push(s[C]);return A},removeSmallPolygons:function(t,e){for(var n=[],i=0;i<t.length;i++)this.polygonArea(t[i])>=e&&n.push(t[i]);return n},polygonArea:function(t){for(var e=t.length,n=0,i=0;i<e;i++)n+=Math.abs(t[i%e].x*t[(i+1)%e].y-t[i%e].y*t[(i+1)%e].x);return n/2},getPointInsidePolygon:function(t){for(var e,n,i=this.getSize(t),r=this.getEdges(t),o=i.y.min+(i.y.max-i.y.min)/Math.PI,g=(i.y.max-i.y.min)/13,A=[],s=[],C=!1;!C;){A=[{x:i.x.min-1,y:o},{x:i.x.max+1,y:o}];for(var I=0;I<r.length;I++)(n=this.findEdgeIntersection(A,r[I]))&&1===n.length&&s.push(n[0]);s=this.sortPoints(s);for(I=0;I<s.length-1;I++)s[I].t!==s[I+1].t&&(C=!0,e={x:(s[I].x+s[I+1].x)/2,y:o});((o+=g)>i.y.max||o<i.y.min)&&!1===C&&(C=!0,e=void 0)}return e},getSize:function(t){for(var e={x:{min:t[0].x,max:t[0].x},y:{min:t[0].y,max:t[0].y}},n=1;n<t.length;n++)t[n].x<e.x.min&&(e.x.min=t[n].x),t[n].x>e.x.max&&(e.x.max=t[n].x),t[n].y<e.y.min&&(e.y.min=t[n].y),t[n].y>e.y.max&&(e.y.max=t[n].y);return e},findPointInsidePolygon:function(t,e){for(var n,i,r,o=0,g=this.getEdges(e),A=0;A<g.length;A++)if([i,r]=g[A],("RIGHT"===(n=this.classifyPoint(t,[i,r])).loc&&i.y<t.y&&r.y>=t.y||"LEFT"===n.loc&&i.y>=t.y&&r.y<t.y)&&o++,"BETWEEN"===n.loc)return!1;return!!(o%2)},getMidpoints:function(t){for(var e,n,i=[],r=0;r<t.length;r++)e=(t[r][0].x+t[r][1].x)/2,n=(t[r][0].y+t[r][1].y)/2,i.push({x:e,y:n});return i},log:function(t){console.log(JSON.stringify(t))}};e.default=i},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(50),g=n(13),A=n(10),s=function(t){function e(e,n){var i=t.call(this,e)||this;return i.line=n,i}return r(e,t),e.prototype.getLineInsertPoint=function(t){void 0===t&&(t=this);var e=A.getLinePoint(this.line,t);return!!A.isContainPoint(this.line,e)&&e},e.prototype.intercept=function(t,e){var n=e.x,i=e.y;return!(!g.type.isUndefined(n)&&!g.type.isUndefined(i))||this.getLineInsertPoint({x:n,y:i})},e}(o.default);e.default=s},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var o=n(50),g=n(107),A=n(111),s=n(60),C=n(149),I=n(150),a=n(59),u=n(151),c=n(152),l=n(377),f=n(153),h=n(154),p=n(10);e.methods={addPoint:function(t){var e=t.id,n=t.x,i=t.y,r={id:e,ele:new o.default({x:n,y:i,renderer:this.render})};return this.points.push(r),this.generateElement(r.ele),r},addLine:function(t){var e=t.id,n=t.p1,i=t.p2,r=t.room,o=t.hole,A=t.border,s=t.exterior,C=t.isOut,I={id:e,room:r,hole:o,ele:new g.default({border:A,exterior:s,points:[this.points.find((function(t){return t.id===n})).ele,this.points.find((function(t){return t.id===i})).ele],renderer:this.render,isOut:C}),border:A,isOut:C,exterior:s};return this.lines.push(I),this.generateElement(I.ele),I},addCase:function(t){var e=t.pos,n=t.line,i=t.top,r=void 0===i?null:i,o=t.bottom,g=void 0===o?null:o,s={ele:new A.default({renderer:this.render,attachment:this.lines.find((function(t){return t.id===n})).ele,points:[{x:e[0],y:e[1]},{x:e[2],y:e[3]}],top:r,bottom:g})};return this.cases.push(s),this.generateElement(s.ele),s},addDoor:function(t){var e=t.pos,n=t.line,i=t.top,r=void 0===i?null:i,o=t.bottom,g=void 0===o?null:o,A=t.within,C={ele:new s.default({renderer:this.render,attachment:this.lines.find((function(t){return t.id===n})).ele,points:[{x:e[0],y:e[1]},{x:e[2],y:e[3]}],top:r,bottom:g,within:A})};return this.doors.push(C),this.generateElement(C.ele),C},addOpenSpace:function(t){var e=t.pos,n=t.line,i=t.top,r=void 0===i?null:i,o=t.bottom,g=void 0===o?null:o,A=t.within,s={ele:new C.default({renderer:this.render,attachment:this.lines.find((function(t){return t.id===n})).ele,points:[{x:e[0],y:e[1]},{x:e[2],y:e[3]}],top:r,bottom:g,within:A})};return this.openSpaces.push(s),this.generateElement(s.ele),s},addSlideDoor:function(t){var e=t.pos,n=t.line,i=t.top,r=void 0===i?null:i,o=t.bottom,g=void 0===o?null:o,A=(t.within,{ele:new I.default({within:1.5,renderer:this.render,attachment:this.lines.find((function(t){return t.id===n})).ele,points:[{x:e[0],y:e[1]},{x:e[2],y:e[3]}],top:r,bottom:g})});return this.slideDoors.push(A),this.generateElement(A.ele),A},addBayCase:function(t){var e=t.pos,n=t.line,i=t.top,r=void 0===i?null:i,o=t.bottom,g=void 0===o?null:o,A=t.within,s={ele:new h.default({renderer:this.render,attachment:this.lines.find((function(t){return t.id===n})).ele,points:[{x:e[0],y:e[1]},{x:e[2],y:e[3]}],top:r,bottom:g,within:A})};return this.bayCases.push(s),this.generateElement(s.ele),s},addGroundCase:function(t){var e=t.pos,n=t.line,i=t.top,r=void 0===i?null:i,o=t.bottom,g=void 0===o?null:o,A={ele:new f.default({renderer:this.render,attachment:this.lines.find((function(t){return t.id===n})).ele,points:[{x:e[0],y:e[1]},{x:e[2],y:e[3]}],top:r,bottom:g})};return this.groundCases.push(A),this.generateElement(A.ele),A},addColumn:function(t){var e=t.pos,n=t.line,i={ele:new a.default({renderer:this.render,attachment:this.lines.find((function(t){return t.id===n})).ele,points:[{x:e[0],y:e[1]},{x:e[2],y:e[3]},{x:e[6],y:e[7]},{x:e[4],y:e[5]}]})};return this.columns.push(i),this.generateElement(i.ele),i},addFurnColumn:function(t){var e=t.pos,n=t.roomId,i=t.top,r=t.bottom,o=t.angle,g=this.data.room.find((function(t){return t.id===n})),A={ele:new u.default({points:[{x:e[0],y:e[1]},{x:e[2],y:e[3]},{x:e[4],y:e[5]},{x:e[6],y:e[7]}],room:g,renderer:this.render,top:i,bottom:r,angle:o})};return this.furnColumns.push(A),this.generateElement(A.ele),A},addFurnFlue:function(t){var e=t.pos,n=t.roomId,i=t.top,r=t.bottom,o=t.angle,g=this.data.room.find((function(t){return t.id===n})),A={ele:new c.default({points:[{x:e[0],y:e[1]},{x:e[2],y:e[3]},{x:e[4],y:e[5]},{x:e[6],y:e[7]}],room:g,renderer:this.render,top:i,bottom:r,angle:o})};return this.furnFlues.push(A),this.generateElement(A.ele),A},addTagging:function(t){var e=t.pos,n=t.title,i=t.content,r=t.show,o=void 0===r||r,g=t.showTitle,A=t.showContent,s={ele:new l.default({show:o,pos:{x:e[0],y:e[1]},title:n,content:i,renderer:this.render,showTitle:g,showContent:A})};return this.taggings.push(s),this.generateElement(s.ele),s},addRoom:function(t){for(var e,n,r=this,o=t.points,g=o.map((function(t){return r.addPoint(i(i({},t),{id:r.getNewPointId()}))})),A=this.data.room.find((function(t){var e=r.getRoomEles(t).ground;return p.pointInside(e,o[0])}))||this.data.room[0],s={id:Math.max.apply(Math,this.data.room.map((function(t){return t.id})))+1,ground:g.map((function(t){return t.id})),top:A.top||.5,bottom:A.bottom||-.5,close:!1,hole:[]},C=[],I=0;I<g.length-1;I++)C.push(this.addLine({id:this.getNewLineId(),p1:g[I].id,p2:g[I+1].id,isOut:!1,room:s,border:!1}));return C.forEach((function(t){return t.ele.update()})),(e=this.data.vertex).push.apply(e,g.map((function(t){return{id:t.id,x:t.ele.x,y:t.ele.y}}))),(n=this.data.wall).push.apply(n,C.map((function(t){return t.id}))),this.data.room.push(s),C},generateElement:function(t){this.render.push(t),this.retrofitElementDestroy(t),t instanceof g.default&&this.retrofitElementIntercept(t)},generateElements:function(){var t=this;r(this.lines.map((function(t){return t.ele})),this.points.map((function(t){return t.ele})),this.cases.map((function(t){return t.ele})),this.doors.map((function(t){return t.ele})),this.columns.map((function(t){return t.ele}))).forEach((function(e){return t.generateElement(e)}))},toEles:function(t){var e=this,n=t.vertex,i=t.wall,r=t.window,o=t.door,g=t.column,A=t.slideDoor,s=t.tagging,C=t.groundCase,I=t.bayCase,a=t.furnColumn,u=t.furnFlue,c=t.openSpace,l=0;this.data=t,n.forEach((function(t){return e.addPoint(t)})),t.room.forEach((function(n){n.ground.forEach((function(i,r){if(r!==n.ground.length-1||n.close){var o=n.ground[r===n.ground.length-1?0:r+1],g=t.wall.find((function(t){var e=t.p1,n=t.p2;return i===e&&o===n||o===e&&i===n}));e.addLine({p1:i,p2:o,id:++l,room:n,border:!!g&&g.border,exterior:g.exterior,isOut:!1})}})),n.hole.forEach((function(i){i.pos.forEach((function(r,o){var g=i.pos[o===i.pos.length-1?0:o+1],A=t.wall.find((function(t){var e=t.p1,n=t.p2;return r===e&&g===n||g===e&&r===n}));e.addLine({p1:r,p2:g,id:++l,room:n,border:!!A&&A.border,hole:i,exterior:A.exterior,isOut:!0})}))}))})),[r,o,g,A,C,I].forEach((function(t){t.forEach((function(t){var n=i.find((function(e){var n=e.id;return t.line===n})),r=n.p1,o=n.p2,g=e.lines.find((function(t){t.id;var n=t.ele.points.map((function(t){return e.points.find((function(e){return e.ele===t})).id}));return~n.indexOf(r)&&~n.indexOf(o)}));t.line=g.id}))})),r.forEach((function(t){return e.addCase(t)})),o.forEach((function(t){return e.addDoor(t)})),c.forEach((function(t){return e.addOpenSpace(t)})),g.forEach((function(t){return e.addColumn(t)})),A.forEach((function(t){return e.addSlideDoor(t)})),C.forEach((function(t){return e.addGroundCase(t)})),I.forEach((function(t){return e.addBayCase(t)})),s.forEach((function(t){return e.addTagging(t)})),a.forEach((function(t){e.data.room.find((function(e){return e.id===t.roomId})).ground.length>3&&e.addFurnColumn(t)})),u.forEach((function(t){e.data.room.find((function(e){return e.id===t.roomId})).ground.length>3&&e.addFurnFlue(t)})),this.data.room.forEach((function(t){t.hole.forEach((function(e){Object.defineProperty(e,"bottom",{get:function(){return t.bottom}})}))})),this.referElements()},referElements:function(){var t=this;r(this.lines,this.points,this.cases,this.doors,this.columns).forEach((function(e){var n=e.ele;t.render.g.removeChild(n.real),t.render.elements.splice(t.render.elements.indexOf(n),1)})),this.generateElements()}},e.methods.attrs=["cases","doors","slideDoors","columns","lines","points","groundCases","taggings","bayCases","furnColumns","furnFlues","openSpaces"]},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var A=n(16),s=n(9),C=n(50),I=n(13),a=function(t){function e(e){var n=e.pos,i=e.renderer,r=e.fontSize,A=void 0===r?12:r,s=g(e,["pos","renderer","fontSize"]),I=this,a=new C.default({x:n.x,y:n.y,renderer:i,r1:A,r:A*s.title.length,fillColor:"rgba(0,0,0,0)",hover:{fillColor:"rgba(255,255,255,0)"}});return(I=t.call(this,o(o({},s),{point:a,fontSize:A,renderer:i}))||this).zIndex=-1,I.point.changeSelect=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];I.changeSelect.apply(I,t)},i.push(I.point),I}return r(e,t),e.prototype.changeSelect=function(e){t.prototype.changeSelect.call(this,e)},e.prototype.grentNode=function(){var t=this,e=document.createElementNS(s.SVGURI,"g");return this.titleNode=document.createElementNS(s.SVGURI,"text"),this.titleNode.setAttribute("fill","#fff"),this.titleNode.setAttribute("text-anchor","middle"),this.titleNode.setAttribute("dy",".4em"),this.contentNode=document.createElementNS(s.SVGURI,"text"),this.contentNode.setAttribute("fill","#fff"),this.contentNode.setAttribute("text-anchor","middle"),this.contentNode.setAttribute("dy",".4em"),e.appendChild(this.titleNode),e.appendChild(this.contentNode),this.nextTick((function(){return t.update()})),e},e.prototype.update=function(){var t=this.fontSize*this.multiple;this.point.real.style.display=this.show?"inherit":"none",this.titleNode.setAttribute("x",this.point.x.toString()),this.titleNode.setAttribute("y",this.point.y.toString()),this.titleNode.setAttribute("font-size",t.toString()),this.titleNode.style.display=this.show&&this.showTitle?"inherit":"none",this.titleNode.textContent=this.title||"请输入名称",this.contentNode.setAttribute("x",this.point.x.toString()),this.contentNode.setAttribute("y",(this.point.y+t).toString()),this.contentNode.setAttribute("font-size",t.toString()),this.contentNode.style.display=this.show&&this.showContent?"inherit":"none",this.contentNode.textContent=this.content,this.select?(this.titleNode.setAttribute("fill","rgb(0, 200, 175)"),this.contentNode.setAttribute("fill","rgb(0, 200, 175)")):(this.titleNode.setAttribute("fill","#fff"),this.contentNode.setAttribute("fill","#fff"))},e.prototype.intercept=function(t,e){var n=e.title,i=e.content;if(n||i){n=n||this.title,i=i||this.content;var r=Math.max(I.strEascpeLen(n),I.strEascpeLen(i))/4;this.point.r=r*this.fontSize,this.point.r1=this.fontSize}return!0},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.point.destroy(),this.renderer.remove(this.point)},e}(A.CADElement);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.methods={getJoinRooms:function(t){var e=this,n=[],i=function(t){if(~n.indexOf(t))return[];var r=e.data.room.filter((function(e){return e.ground.some((function(e){return~t.ground.indexOf(e)}))}));return n.push(t),r.forEach((function(t){return r.push.apply(r,i(t))})),r};return Array.from(new Set(i(t)))},getPointsByRoom:function(t){var e=this;return(t=this.data.room.find((function(e){return e.ground.join("")===t.ground.join("")})))?t.ground.map((function(t){return e.points.find((function(e){return e.id===t})).ele})):[]},getPointsByHole:function(t){for(var e,n=this,i=t.pos.join(""),r=0;r<this.data.room.length&&!(e=this.data.room[r].hole.find((function(t){return t.pos.join("")===i})));r++);return e?e.pos.map((function(t){return n.points.find((function(e){return e.id===t})).ele})):[]},getLinesByRoom:function(t){return this.lines.filter((function(e){return e.room===t})).map((function(t){return t.ele}))},getLinesByHole:function(t){return this.lines.filter((function(e){return e.hole===t})).map((function(t){return t.ele}))},getRoomsByPoint:function(t){var e=this.points.find((function(e){return e.ele===t}));if(e){var n=this.data.room.filter((function(t){return~t.ground.indexOf(e.id)}));return n.length?n.concat(this.data.room.filter((function(t){return!~n.indexOf(t)&&t.hole.some((function(t){return~t.pos.indexOf(e.id)}))}))):n}return[]},getHolesByPoint:function(t){var e=this.points.find((function(e){return e.ele===t})),n=[];return e?this.data.room.find((function(t){t.hole.forEach((function(t){~t.pos.indexOf(e.id)&&n.push(t)}))})):console.error(t),n},getRoomsByLine:function(t){return[this.lines.find((function(e){return e.ele===t})).room]},getHolesByLine:function(t){return[this.lines.find((function(e){return e.ele===t})).hole]},queryLineRoomPos:function(t){var e=this.data.room,n=this.points.find((function(e){return e.ele===t.points[0]})),i=this.points.find((function(e){return e.ele===t.points[1]})),r=[];if(!(e=e.filter((function(t,e){var r=t.ground.indexOf(n.id),o=t.ground.indexOf(i.id),g=Math.abs(r-o);return~r&&~o&&(1===g||g===t.ground.length-1)}))).length||!n)return r;var o=t.points[0].__id||n.id;if(t.isOut)for(var g=function(t){var n,i=e[t].hole.find((function(t){var e=t.pos;return~(n=e.indexOf(o))}));i&&r.push({pos:n,arr:i.pos})},A=0;A<e.length;A++)g(A);else for(A=0;A<e.length;A++){var s=e[A].ground.indexOf(o);~s&&r.push({pos:s,arr:e[A].ground})}return r},delRoom:function(t){var e=this.data.room.findIndex((function(e){var n=e.ground;return t===n}));if(~e){var n=this.data.room.splice(e,1)[0];return this.lines.filter((function(t){return t.room===n})).forEach((function(t){return t.ele.destroy()})),!0}return!1},delHole:function(t){var e=this,n=-1,i=this.data.room.findIndex((function(e){var i=e.hole;return~(n=i.findIndex((function(e){return e.pos===t})))}));if(~i){var r=this.data.room[i].hole.splice(n,1)[0];return r.pos.forEach((function(t,n){if(!(n>r.pos.length-2)){var i=[t,r.pos[n+1]],o=e.lines.find((function(t){var n=t.ele,r=e.points.find((function(t){return t.ele===n.points[0]})),o=e.points.find((function(t){return t.ele===n.points[1]}));return r&&o&&~i.indexOf(r.id)&&~i.indexOf(o.id)}));o&&o.ele.destroy()}})),!0}return!1},getRoomEles:function(t){var e=this;return{ground:t.ground.map((function(t){return e.points.find((function(e){return e.id===t})).ele})),hole:t.hole.map((function(t){return t.pos.map((function(t){return e.points.find((function(e){return e.id===t})).ele}))}))}}}},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){return void 0===e&&(e=2),Number(t.toFixed(e))};e.methods={baseArchToData:function(t){return{line:this.getLineId(t.attachment),pos:[o(t.linePoints[0].x),o(t.linePoints[0].y),o(t.linePoints[1].x),o(t.linePoints[1].y)],top:t.top,bottom:t.bottom}},roomArchToData:function(t){return{roomId:t.room.id,pos:[o(t.points[0].x),o(t.points[0].y),o(t.points[1].x),o(t.points[1].y),o(t.points[2].x),o(t.points[2].y),o(t.points[3].x),o(t.points[3].y)],top:t.top,bottom:t.bottom,angle:t.angle}},pointToData:function(t){var e=t.ele;return{id:t.id,x:o(e.x),y:o(e.y)}},lineToData:function(t){var e=t.ele,n=t.id,i=t.border;return{id:n,p1:this.getPointId(e.points[0]),p2:this.getPointId(e.points[1]),border:i,exterior:e.exterior}},doorToData:function(t){var e=t.ele,n=this.baseArchToData(e);return n.within=e.within,n},caseToData:function(t){var e=t.ele;return this.baseArchToData(e)},groundCaseToData:function(t){var e=t.ele;return this.baseArchToData(e)},BayCaseToData:function(t){var e=t.ele,n=this.baseArchToData(e);return n.within=e.within,n},columnToData:function(t){var e=t.ele,n=this.baseArchToData(e);return i(i({},n),{pos:r(n.pos,[o(e.points[3].x),o(e.points[3].y),o(e.points[2].x),o(e.points[2].y)])})},taggingToData:function(t){var e=t.ele;return{pos:[e.point.x,e.point.y],title:e.title,content:e.content,showTitle:e.showTitle,showContent:e.showContent}},furnColumnToData:function(t){var e=t.ele;return this.roomArchToData(e)},furnFlueToData:function(t){var e=t.ele;return this.roomArchToData(e)},getNewPointId:function(){return Math.max.apply(Math,this.points.map((function(t){return t.id})))+1},getNewLineId:function(){return Math.max.apply(Math,this.lines.map((function(t){return t.id})))+1},getLineId:function(t){return this.lines.find((function(e){return e.ele===t})).id},getPointId:function(t){return this.points.find((function(e){return e.ele===t})).id},toData:function(){var t=this,e=this.points.map((function(e){return t.pointToData(e)})),n=this.columns.map((function(e){return t.columnToData(e)})),i=this.cases.map((function(e){return t.caseToData(e)})),r=this.doors.map((function(e){return t.doorToData(e)})),o=this.openSpaces.map((function(e){return t.doorToData(e)})),g=this.slideDoors.map((function(e){return t.doorToData(e)})),A=this.groundCases.map((function(e){return t.groundCaseToData(e)})),s=this.taggings.map((function(e){return t.taggingToData(e)})),C=this.bayCases.map((function(e){return t.BayCaseToData(e)})),I=this.furnColumns.map((function(e){return t.furnColumnToData(e)})),a=this.furnFlues.map((function(e){return t.furnFlueToData(e)})),u=[];return this.lines.forEach((function(e){try{u.push(t.lineToData(e))}catch(t){}})),{vertex:e,wall:u,window:i,door:r,column:n,room:this.data.room,surplus:this.data.surplus,slideDoor:g,groundCase:A,tagging:s,openSpace:o,bayCase:C,furnColumn:I,furnFlue:a,dire:this.data.dire}}}},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var o=n(31),g=n(77),A=n(13),s=n(10),C=n(9),I=[C.TAGGING,C.LINE,C.SEFTLINE],a=[C.POINT,C.DOOR,C.COLUMN,C.CASEMENT,C.ARCH,C.SLIDEDOOR,C.GROUNDCASE,C.BAYCASE,C.OPENSPACE],u=[C.FURNCOLUMN,C.FURNFLUE];e.attachInsert=function(t){var e,n=t.processing,c=n.render,l=function(t,e){var i=n.lines.map((function(t){return t.ele})).map((function(e){return{dis:s.pointLineDis(e,t),line:e}})).sort((function(t,e){return t.dis-e.dis})).find((function(e){return s.isContainPoint(e.line,s.getLinePoint(e.line,{x:t.x}))||s.isContainPoint(e.line,s.getLinePoint(e.line,{y:t.y}))}));if(!i)return{error:!0,msg:"当前位置,无法添加"+C.ARCH[e],obj:null};var r=i.line,g=n.lines.find((function(t){return t.ele===r})),I=g.room;if(0===I.top||0===I.bottom)return{error:!0,msg:"户外无法添加"+C.ARCH[e],obj:null};var a=o.default.attaArch.get(r),u=s.getLinePoint(r,t);if(a&&a.some((function(t){return s.isContainPoint({points:t.linePoints},u)})))return{error:!0,msg:"当前位置点有建筑,无法添加"+C.ARCH[e],obj:null};if(e===C.POINT)return s.isContainPoint(i.line,u)?[r,u]:{error:!0,msg:"当前位置无法添加",obj:null};if(g.hole)return{error:!0,msg:"当前位置无法添加"+C.ARCH[e],obj:null};var c=function(t,e,n){var i=s.getDisPointLinePoints(t,e,n/2),r=i[0],g=i[1],A=o.default.attaArch.get(t),C=A&&A.length>0&&A.some((function(t){return s.isContainPoint({points:t.linePoints},r)||s.isContainPoint({points:t.linePoints},g)})),I=s.pointLineDis(t,r)<.02&&s.pointLineDis(t,g)<.02;return C||!I?"当前位置已有建筑无法添加":[r,g]}(r,u,C.DEFAULT[e].width);return A.type.isArray(c)?[r,c,t]:{error:!0,msg:c}},f=((e={})[C.POINT]=function(t,e){n.insertModel=!0;var g=[],A=[],C=n.getNewPointId(),I=n.addPoint(i({id:C},e));n.data.vertex.push({id:I.id,x:I.ele.x,y:I.ele.y});var a=n.points.find((function(e){return e.ele===t.points[0]})).id,u=n.points.find((function(e){return e.ele===t.points[1]})).id;return n.lines.forEach((function(e){var i=e.room,c=e.ele,l=e.border,f=e.hole;if(~c.points.indexOf(t.points[0])&&~c.points.indexOf(t.points[1])){var h=i.ground.indexOf(a),p=i.ground.indexOf(u),d=Math.abs(h-p);if(~h&&~p&&(1===d||d===i.ground.length-1)){var y=(0===h&&d===i.ground.length-1&&1!==d?i.ground.length:h)>(0===p&&d===i.ground.length-1&&1!==d?i.ground.length:p)?h:h+1;i.ground.splice(y,0,C)}i.hole.forEach((function(t){var e=t.pos.indexOf(a),n=t.pos.indexOf(u),i=Math.abs(e-n);if(~e&&~n&&(1===i||i===t.pos.length-1)){var r=(0===e&&i===t.pos.length-1&&1!==i?t.pos.length:e)>(0===n&&i===t.pos.length-1&&1!==i?t.pos.length:n)?e:e+1;t.pos.splice(r,0,C)}}));var v=n.addLine({border:l,id:n.getNewLineId(),p1:n.getPointId(c.points[0]),p2:I.id,exterior:c.exterior,isOut:c.isOut,room:i,hole:f});A.push(v),v.ele.update(),c.points=[I.ele,c.points[1]],g.push(new Promise((function(t){c.nextTick((function(){c.updateJoin(),v.ele.updateJoin();var e=o.default.attaArch.get(c);e&&r(e).forEach((function(t){s.isContainPoint(c,t.linePoints[0])||t.setAttachment(v.ele)})),setTimeout(t,200)}))})))}})),Promise.all(g).then((function(){n.insertModel=!1})),A.map((function(t){return t.ele}))},e[C.DOOR]=function(e,i,r,o,g){if(null===o||null===g){var A=t.processing.getRoomsByLine(e)[0].top;g=t.processing.getRoomsByLine(e)[0].bottom,o=(o=C.DEFAULT[C.DOOR].height+g)>A?A:o}return n.addDoor({pos:[i[0].x,i[0].y,i[1].x,i[1].y],line:n.getLineId(e),top:o,bottom:g,within:0}).ele},e[C.OPENSPACE]=function(e,i){var r=t.processing.getRoomsByLine(e)[0].top,o=t.processing.getRoomsByLine(e)[0].bottom;return n.addOpenSpace({pos:[i[0].x,i[0].y,i[1].x,i[1].y],line:n.getLineId(e),top:r,bottom:o,within:0}).ele},e[C.SLIDEDOOR]=function(e,i,r,o,g){if(null===o||null===g){var A=t.processing.getRoomsByLine(e)[0].top;g=t.processing.getRoomsByLine(e)[0].bottom,o=(o=C.DEFAULT[C.DOOR].height+g)>A?A:o}return n.addSlideDoor({within:0,pos:[i[0].x,i[0].y,i[1].x,i[1].y],line:n.getLineId(e),top:o,bottom:g}).ele},e[C.GROUNDCASE]=function(e,i,r,o,g){if(null===o||null===g){var A=t.processing.getRoomsByLine(e)[0].top,s=t.processing.getRoomsByLine(e)[0].bottom,I=C.DEFAULT[C.GROUNDCASE].height/2;o=A>I?I:A,g=s<-I?-I:s}return n.addGroundCase({pos:[i[0].x,i[0].y,i[1].x,i[1].y],line:n.getLineId(e),top:o,bottom:g}).ele},e[C.BAYCASE]=function(e,i,r,o,g){if(null===o||null===g){var A=t.processing.getRoomsByLine(e)[0].top,s=t.processing.getRoomsByLine(e)[0].bottom,I=C.DEFAULT[C.BAYCASE].height/2;o=A>I?I:A,g=s<-I?-I:s}return n.addBayCase({pos:[i[0].x,i[0].y,i[1].x,i[1].y],line:n.getLineId(e),top:o,bottom:g,within:0}).ele},e[C.CASEMENT]=function(e,i,r,o,g){if(null===o||null===g){var A=t.processing.getRoomsByLine(e)[0].top,s=t.processing.getRoomsByLine(e)[0].bottom,I=C.DEFAULT[C.CASEMENT].height/2;o=A>I?I:A,g=s<-I?-I:s}return n.addCase({pos:[i[0].x,i[0].y,i[1].x,i[1].y],line:n.getLineId(e),top:o,bottom:g}).ele},e[C.COLUMN]=function(e,i,r){var o=s.getDisVerticalLinePoints(e,i[0],C.DEFAULT[C.COLUMN].width),g=o[0],A=o[1],I=t.processing.getRoomsByLine(e)[0].ground.map((function(e){return t.processing.points.find((function(t){return t.id===e})).ele})),a=t.processing.lines.filter((function(t){var n=t.ele;return e!==n})).map((function(t){return t.ele})),u=null;if(!(u=s.pointInside(I,g)&&!a.some((function(t){return s.segmentsIntr(t,{points:[i[0],g]})}))?g:s.pointInside(I,A)&&!a.some((function(t){return s.segmentsIntr(t,{points:[i[0],A]})}))?A:g))return"当前位置不可添加柱子";var c=s.getDisVerticalLinePoints(e,i[1],C.DEFAULT[C.COLUMN].tick),l=c[0],f=c[1],h=s.lineDis({points:[l,u]})>s.lineDis({points:[f,u]})?f:l;return n.addColumn({pos:[i[0].x,i[0].y,i[1].x,i[1].y,u.x,u.y,h.x,h.y],line:n.getLineId(e)}).ele},e[C.TAGGING]=function(t){return n.addTagging({pos:[t.x,t.y],title:"",content:"",showTitle:!0,showContent:!0}).ele},e[C.FURNCOLUMN]=function(t,e,i,r){return n.addFurnColumn({pos:t,roomId:e.id,top:i,bottom:r,angle:0}).ele},e[C.FURNFLUE]=function(t,e,i,r){return n.addFurnFlue({pos:t,roomId:e.id,top:i,bottom:r,angle:0}).ele},e[C.LINE]=function(e){var n=C.DEFAULT[C.LINE].width,i={points:[{x:e.x-n/2,y:e.y},{x:e.x+n/2,y:e.y}]},r=t.processing.lines.some((function(t){var e=t.ele;return s.segmentsIntr(e,i)}));return r&&(i={points:[{x:e.x-n/2,y:e.y},{x:e.x+n/2,y:e.y}]},r=t.processing.lines.some((function(t){var e=t.ele;return s.segmentsIntr(e,i)})))?"当前位置不可添加墙":t.processing.furnColumns.concat(t.processing.furnFlues).map((function(t){return t.ele})).every((function(t){return!s.isFaceIntersect(i.points,t.points)&&!s.isFaceContain(i.points,t.points)&&!s.isFaceContain(t.points,i.points)}))?t.processing.addRoom(i)[0].ele:"当前位置不可添加墙"},e[C.SEFTLINE]=function(e){return t.processing.addLine(e).ele},e);t.increase=function(e,o,s,h,p){if(void 0===s&&(s=null),void 0===h&&(h=null),void 0===p&&(p=!1),f[e]){var d,y=p?c.screenToRealPoint(o):o;if(~a.indexOf(e)||~u.indexOf(e)){var v=~u.indexOf(e)?function(t,e){var r=C.DEFAULT[e].width/2,o=C.DEFAULT[e].tick/2,A=[{x:t.x-r,y:t.y+o},{x:t.x+r,y:t.y+o},{x:t.x+r,y:t.y-o},{x:t.x-r,y:t.y-o}],s=i(i({},g.default.prototype),{renderer:n.render,minWidth:.1}),I=n.data.room.find((function(t){return g.default.prototype.check.call(s,A,t)}));if(I){var a=[];return A.forEach((function(t){a.push(t.x),a.push(t.y)})),[a,I,I.top,I.bottom]}return{error:!0,msg:"当前位置无法添加",obj:null}}(y,e):l(y,e);if(!A.type.isArray(v))return v;var m=f[e].apply(f,r(v,[s,h]));if("string"==typeof m)return{error:!0,msg:m,obj:null};d=m}else if(~I.indexOf(e)&&"string"==typeof(d=f[e](y)))return{error:!0,msg:d,obj:null};return t.preservation(),{error:!1,msg:"成功添加"+C.ARCH[e],obj:d}}};var h=t.destroy;t.destroy=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];c=null,n=null,h.apply(this,t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(382),r=n(383),o=n(386);e.attachGauge=function(t){var e,n=t.processing.lines,g=n.push,A=t.processing.points,s=A.push,C=function(t){t.__label_intercept=t.intercept,t.intercept=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e.update(),t.__label_intercept.apply(t,n)}},I=function(t){t.__label_intercept=t.drag,t.drag=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e.update(),t.__label_intercept.apply(t,n)}};t.setGaugeAttrs=function(t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),new Promise((function(t){return e.nextTick(t)}))};var a=!1;t.showGauge=function(){a||(a=!0,e||(e=new i.default({cad:t})),n.push=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var r=g.apply(n,t);return e.update(),t.forEach((function(t){var e=t.ele;return I(e)})),r},A.forEach((function(t){var e=t.ele;return C(e)})),n.forEach((function(t){var e=t.ele;return I(e)})),A.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.forEach((function(t){var e=t.ele;return C(e)})),s.apply(A,t)},t.processing.render.push(e))},t.setGaugeModel=function(t){return e?(e.surround=1===t,new Promise((function(t){return e.nextTick(t)}))):new Promise((function(t){return t()}))},t.hideGauge=function(){a&&(a=!0,n.push=g,A.push=s,A.forEach((function(t){var e=t.ele;return e.intercept=e.__label_intercept})),t.processing.render.remove(e))};var u=t.destroy;t.destroy=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.hideGauge(),a=!1,n=null,g=null,A=null,s=null,u.apply(this,e)};var c=new r.default({angle:0,renderer:t.processing.render});t.showDire=function(){c.show=!0,t.processing.render.push(c)},t.hideDire=function(){c.show=!1,t.processing.render.remove(c)},t.setDireAttrs=function(t){return Object.keys(t).forEach((function(e){c[e]=t[e]})),new Promise((function(t){return c.nextTick(t)}))},t.setAngle=function(e){t.processing.data.dire=e,c.angle=e,c.nextTick((function(){t.preservation()}))},t.addClip=function(e){e.label=new o.default({renderer:t.processing.render,face:e}),t.processing.render.push(e.label),console.log("----",e)},t.delClip=function(e){e.label.destroy(),t.processing.render.remove(e.label)},t.direction=c}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var A=n(16),s=n(9),C=n(10),I=0,a=function(t,e,n,i,r,o,g,A){var a=document.createElementNS(s.SVGURI,"g"),u={points:[t,e]},c="lineBoth"+I++,l=C.getDisVerticalLinePoints(u,t,i),f=l[0],h=l[1],p=C.getDisVerticalLinePoints(u,e,i),d=p[0],y=p[1],v=document.createElementNS(s.SVGURI,"path");a.appendChild(v),v.setAttribute("stroke","#fff"),v.setAttribute("stroke-width",n.toString()),"top"===A||"right"===A?v.setAttribute("d","M "+f.x+" "+f.y+" L "+d.x+" "+d.y):v.setAttribute("d","M "+h.x+" "+h.y+" L "+y.x+" "+y.y),v.setAttribute("id",c);var m=v.cloneNode(!0);m.setAttribute("d","M "+f.x+" "+f.y+" L "+h.x+" "+h.y),a.appendChild(m),(m=v.cloneNode(!0)).setAttribute("d","M "+d.x+" "+d.y+" L "+y.x+" "+y.y),a.appendChild(m);var b=o.toString().length/2.5*r,x=o/2-b,w=document.createElementNS(s.SVGURI,"text");w.setAttribute("x",x.toString()),w.setAttribute("y","0"),w.setAttribute("style","fill: #fff; font-size: "+r+"px");var P=document.createElementNS(s.SVGURI,"textPath");P.setAttributeNS(s.SVGPATH,"xlink:href","#"+c),P.appendChild(document.createTextNode(o+"m")),w.appendChild(P);var O=C.lineVector({points:[t,e]}),S=document.createElementNS(s.SVGURI,"path");S.setAttribute("stroke","#fff"),S.setAttribute("stroke-width",n.toString()),O.x>O.y?S.setAttribute("d","M "+t.x+" "+t.y+" L "+(e.x-x-2*b-g)+" "+e.y):S.setAttribute("d","M "+t.x+" "+t.y+" L "+e.x+" "+(e.y-x-2*b-g));var _=S.cloneNode(!0);return O.x>O.y?_.setAttribute("d","M "+(e.x-x+g)+" "+t.y+" L "+e.x+" "+e.y):_.setAttribute("d","M "+t.x+" "+(e.y-x+g)+" L "+e.x+" "+e.y),a.appendChild(_),a.appendChild(S),v.style.display="none",a.appendChild(w),a},u=function(t){function e(e){var n=e.cad,i=e.padding,r=void 0===i?10:i,A=e.spacing,s=void 0===A?4:A,C=e.minPX,I=void 0===C?50:C,a=e.width,u=void 0===a?1:a,c=e.showBottom,l=void 0===c||c,f=e.showTop,h=void 0===f||f,p=e.showLeft,d=void 0===p||p,y=e.showRight,v=void 0===y||y,m=e.surround,b=void 0!==m&&m,x=g(e,["cad","padding","spacing","minPX","width","showBottom","showTop","showLeft","showRight","surround"]),w=t.call(this,o({minPX:I,width:u,renderer:n.processing.render,showBottom:l,showTop:h,showLeft:d,showRight:v,surround:b},x))||this;return w.cad=n,w.padding=r,w.spacing=s,Object.defineProperty(w,"points",{get:function(){return n.processing.points}}),w.update(),w}return r(e,t),e.prototype.grentNode=function(){this.top=document.createElementNS(s.SVGURI,"g"),this.left=document.createElementNS(s.SVGURI,"g"),this.right=document.createElementNS(s.SVGURI,"g"),this.bottom=document.createElementNS(s.SVGURI,"g");var t=document.createElementNS(s.SVGURI,"g");return t.appendChild(this.top),t.appendChild(this.left),t.appendChild(this.right),t.appendChild(this.bottom),t},e.prototype.calcSplit=function(){var t=this.cad.processing.render,e=this.minPX,n=C.lineDis({points:[t.screenToRealPoint({x:0,y:0}),t.screenToRealPoint({x:e,y:0})]}),i=C.lineDis({points:[t.screenToRealPoint({x:0,y:0}),t.screenToRealPoint({x:0,y:e})]}),r=this.points.map((function(t){return t.ele})),g=[],A=[],s=[],I=[],a=function(t,e,g){var A,s;r.sort(e),r.forEach((function(e){return 0===t.length||e[g]>t[t.length-1]?t.push(e[g]):e[g]<t[0]&&t.unshift(e[g])}));for(var I="x"===g?n:i,a={x:0,y:0},u=0;u<t.length-2;u++){var c=o(o({},a),((A={})[g]=t[u],A)),l=o(o({},a),((s={})[g]=t[u+1],s));C.lineDis({points:[c,l]})<I&&(t.splice(u+1,1),u--)}t.length>2&&t.splice(t.length-2,2,t[t.length-1])};return a(g,(function(t,e){return t.x-e.x?t.x-e.x:e.y-t.y}),"y"),a(s,(function(t,e){return e.x-t.x?e.x-t.x:e.y-t.y}),"y"),a(A,(function(t,e){return t.y-e.y?t.y-e.y:e.x-t.x}),"x"),a(I,(function(t,e){return e.y-t.y?e.y-t.y:e.x-t.x}),"x"),{left:g,top:A,right:s,bottom:I}},e.prototype.update=function(){var t=this;if(0!==this.points.length&&0!==this.cad.processing.render.props.width){var e=this.cad.processing.render,n=10*this.width*this.multiple,i=this.calcSplit(),r=i.left,o=i.right,g=i.top,A=i.bottom,s=e.screenToRealPoint({x:this.padding,y:this.padding}),C=e.screenToRealPoint({x:e.props.width/e.props.multiple-this.padding,y:e.props.height/e.props.multiple-this.padding});if(this.surround){var I=this.points.map((function(t){return t.ele.x})),u=this.points.map((function(t){return t.ele.y})),c=Math.max.apply(Math,I),l=Math.min.apply(Math,I),f=Math.max.apply(Math,u),h=Math.min.apply(Math,u);Math.abs(s.x-l)<Math.abs(s.y-h)&&Math.abs(C.x-c)-Math.abs(C.y-f)?(C={x:C.x,y:f+Math.abs(s.x-l)},s={x:s.x,y:h-Math.abs(s.x-l)}):(C={x:c+Math.abs(s.y-f),y:C.y},s={x:l-Math.abs(s.y-h),y:C.y})}var p=function(e,i,r,o){for(var g=0;g<e.length-1;g++){var A=0===g?e[g]:e[g]+t.spacing/2*t.multiple,s=g+1===e.length?e[g+1]:e[g+1]-t.spacing/2*t.multiple;r(a(i(A),i(s),t.width*t.multiple,4*t.width*t.multiple,n,Number(Math.abs(e[g+1]-e[g]).toFixed(2)),10*t.multiple,o))}};[this.left,this.top,this.right,this.bottom].forEach((function(t){for(;t.childNodes.length;)t.removeChild(t.childNodes[0])})),this.showLeft&&p(r,(function(t){return{x:s.x,y:t}}),(function(e){return t.left.appendChild(e)}),"left"),this.showBottom&&p(A,(function(t){return{x:t,y:C.y}}),(function(e){return t.bottom.appendChild(e)}),"bottom"),this.showTop&&p(g,(function(t){return{x:t,y:s.y}}),(function(e){e.querySelector("text").setAttribute("transform","translate(0, "+n/1.2+")"),t.top.appendChild(e)}),"top"),this.showRight&&p(o,(function(t){return{x:C.x,y:t}}),(function(e){e.querySelector("text").setAttribute("transform","translate(-"+n/1.2+", 0)"),t.right.appendChild(e)}),"right")}},e}(A.CADElement);e.default=u},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var A=n(16),s=n(9),C=n(10),I=n(384),a=n(385),u=function(t){function e(e){var n=e.fontSize,i=void 0===n?8:n,r=e.r,A=void 0===r?50:r,s=e.border,C=void 0===s?3:s,I=e.right,a=void 0===I?20:I,u=e.top,c=void 0===u?20:u,l=e.ArgDire,f=void 0===l?15:l,h=e.simple,p=void 0!==h&&h,d=e.angle,y=void 0===d?0:d,v=g(e,["fontSize","r","border","right","top","ArgDire","simple","angle"]);return t.call(this,o({fontSize:i,r:A,border:C,right:a,top:c,ArgDire:f,simple:p,angle:y},v))||this}return r(e,t),e.prototype.grentNode=function(){var t=document.createElementNS(s.SVGURI,"g");this.dire=document.createElementNS(s.SVGURI,"image"),this.dire.href.baseVal=a.default,this.bg=document.createElementNS(s.SVGURI,"image"),this.bg.href.baseVal=I.default,this.inner=document.createElementNS(s.SVGURI,"circle"),this.inner.setAttribute("fill","rgba(41,41,41,1)");var e=document.createElementNS(s.SVGURI,"text");return e.setAttribute("fill","#fff"),e.setAttribute("text-anchor","middle"),this.topText=e.cloneNode(!0),this.rightText=e.cloneNode(!0),this.leftText=e.cloneNode(!0),this.bottomText=e.cloneNode(!0),this.topText.textContent="N",this.topText.setAttribute("fill","#00A0E9"),this.rightText.textContent="E",this.leftText.textContent="W",this.bottomText.textContent="S",this.bottomText.setAttribute("fill","#D84141"),this.arc=document.createElementNS(s.SVGURI,"path"),this.arc.setAttribute("fill","rgba(255,255,255,0.3)"),t.appendChild(this.inner),t.appendChild(this.arc),t.appendChild(this.bg),t.appendChild(this.dire),t.appendChild(this.topText),t.appendChild(this.rightText),t.appendChild(this.bottomText),t.appendChild(this.leftText),t},e.prototype.update=function(){var t=this.r/2+this.border+this.right,e=this.r/2+this.border+this.top,n=this.renderer,i=this.fontSize*this.multiple,r=this.border*this.multiple,o=n.screenToRealPoint({x:n.props.width/n.props.multiple-e,y:t});if(!isNaN(o.x)&&!isNaN(o.y)){var g=this.r*this.multiple,A=(i+3*r+g)/2;this.inner.setAttribute("r",A.toString()),this.inner.setAttribute("cx",o.x.toString()),this.inner.setAttribute("cy",o.y.toString()),this.dire.setAttribute("x",(o.x-g/2).toString()),this.dire.setAttribute("y",(o.y-g/2).toString()),this.dire.setAttribute("width",g.toString()),this.dire.setAttribute("height",g.toString()),this.bg.setAttribute("x",(o.x-g/2).toString()),this.bg.setAttribute("y",(o.y-g/2).toString()),this.bg.setAttribute("width",g.toString()),this.bg.setAttribute("height",g.toString()),this.topText.setAttribute("x",o.x.toString()),this.topText.setAttribute("y",(o.y-g/2-i/2+r).toString()),this.topText.setAttribute("font-size",i.toString()),this.rightText.setAttribute("x",(o.x+g/2+r).toString()),this.rightText.setAttribute("y",(o.y+i/2).toString()),this.rightText.setAttribute("font-size",i.toString()),this.bottomText.setAttribute("x",o.x.toString()),this.bottomText.setAttribute("y",(o.y+g/2+i).toString()),this.bottomText.setAttribute("font-size",i.toString()),this.leftText.setAttribute("x",(o.x-g/2-i+r).toString()),this.leftText.setAttribute("y",(o.y+r).toString()),this.leftText.setAttribute("font-size",i.toString());var s=this.ArgDire*this.multiple,I={points:[o,{x:o.x-s,y:o.y-g/2-i-r}]},a={points:[o,{x:o.x+s,y:o.y-g/2-i-r}]},u=C.getDisPointLinePoints(I,I.points[0],A),c=u[0],l=u[1],f=C.getDisPointLinePoints(a,a.points[0],A),h=f[0],p=f[1],d=C.lineDis({points:[I.points[1],c]})>C.lineDis({points:[I.points[1],l]})?l:c,y=C.lineDis({points:[a.points[1],h]})>C.lineDis({points:[a.points[1],p]})?p:h;this.arc.setAttribute("d","M "+o.x+" "+o.y+" L "+d.x+" "+d.y+" A "+A+" "+A+" 0 0 1 "+y.x+" "+y.y+" Z"),this.real.setAttribute("transform","rotate("+(this.angle||0)+" "+o.x+" "+o.y+")"),this.simple?(this.leftText.style.display="none",this.rightText.style.display="none",this.bg.style.display="none",this.inner.style.display="none",this.arc.style.display="none"):(this.leftText.style.display="inherit",this.rightText.style.display="inherit",this.bg.style.display="inherit",this.inner.style.display="inherit",this.arc.style.display="inherit")}},e}(A.CADElement);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAA57mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNyAoV2luZG93cyk8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTktMDQtMDJUMTg6MDg6MDQrMDg6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE5LTA0LTAyVDE4OjA4OjA0KzA4OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxOS0wNC0wMlQxODowODowNCswODowMDwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnhtcC5paWQ6ZmNiZDY2ZjMtNWIwZC01MjQ2LWI2YWItZjYyNGJjMzIyYTcyPC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD5hZG9iZTpkb2NpZDpwaG90b3Nob3A6MzEzMmMzMmMtNTUyZi0xMWU5LWEwMGUtZTdmMzVhMTA0MmVkPC94bXBNTTpEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6NzJjOGU4ZjctNWJlZC1mZDQyLTlhYTQtNGYxZDQ0MDE5OTRjPC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y3JlYXRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6aW5zdGFuY2VJRD54bXAuaWlkOjcyYzhlOGY3LTViZWQtZmQ0Mi05YWE0LTRmMWQ0NDAxOTk0Yzwvc3RFdnQ6aW5zdGFuY2VJRD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxOS0wNC0wMlQxODowODowNCswODowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDpmY2JkNjZmMy01YjBkLTUyNDYtYjZhYi1mNjI0YmMzMjJhNzI8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTktMDQtMDJUMTg6MDg6MDQrMDg6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE3IChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTAwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEwMDwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+GZD5AAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAGxklEQVR42uxdTWhVRxT+ThKTkrh4gQQRJCgGN49kUxqCuCq4cWFAhUZCRHFRoUR0ZcSdXRjcKGbVjUhLwJJWSRYuFApCSImlKEYXSpQoKJQKzaaiVfm6yFGCmZn3cnPffffnfBACd+beOed8b+acO/fMDJADkDxG8lgedGlCPvBFTvRAAwxGiMEIMUIMRogRknBoO0uyMcJ9jSRnjZDahOjdEe7rzlJ435CiHtBN8lagyjyAngiP7tF7fe3eItlthKzGEwDbSW5NihBta7u2bYSshIgQwASAIU+V+wB6Izy6V+91YQjAhLZdTJCcJtniKdtB8pGnrJPkgqfsBMkTnrIFkp2eskckd3jKWkhOF6GHvAJw0tNLHgNYItnnKPsbQCvJtjWQ3wagVe/9vKwPwJK26cJJlTX3hJwGMEJys6f8RwDDnrKHAMpraKus97gwrG25iNwMYERlzTchIvIXgEsAznmq/AxgP8kNMTh2p0PXZx/Qtlw4B+CSypp9QkiWSA4GqlwAsNMzNL0C8AeAPR7H7iLkg/65CHE59D0A7mhbrqFsp8ro02+QZClLjruV5AOSBwN1BvTtWxxl+0lOOq53kRx2XG8m2ey4Pkyyy3F9kuR+x3VRmQYCch9U3VqzFk1tI/mMZH+gzk2SQ54I56WLrBjkEn12i6NsiOTNwL39qtO2rIa4u0g+d/1KtbxMctEVOdVySHA9m2SbylL23NOluuzK+nvHIZL3SG70lI+TPJsCOc+SHPeUbVQdDmXB4KVK4ynJMZJTrtlaku0kj6ZAj6Mk2x3XG1X2sSr8ZikNhAyqk9sWqNNA8jrJ8xns4edV9oYK/vJBhcgyUaEPqrPbFXprJnmX5JEMkXFEZW6r4CefhSLKegnfr07vUKDOFpIzGSJkhuSWCv7xeSiSrLcCXer8xkJdPOvQIXhMde1Ku7Ab1QleX8tEYIbIaFPdpnyRYxqFblRneDfU5TNIxhbV6XyU7/u1Emqa5GWSm6p0ijM5ImSmmqCE5Ca10XQSQrWQHCX5guQp1xxSUaFzaqfUNqO+D3G1anwzySskH4cm4wpExoDa4krgW08igvTpDOlN3zxQzokoq+6zrs8J9RJKdKZ0Ueem2gtARLvquqi6xzIzHcu7gohQRCaw/Mn0HwD7CtA59qmuZRFJNnNFk9gEhvWMIN1xPvAWyackv/elzRicdtuhNntaISsz0sO3kjyjuUxzJL8j2WFmX2WnDrXNnNrqTCAbM9bIalw/hU7pN/CWApPQojaYUpuM1yXiIrlB4+9JFaRUQDJKqvuk2mJDahxXkZ22DdYGQxKQCl1xFsurj+b17z6AeVfyssFpv04sZ0/26v8eAO9FZGdUQhqxvCSs57MHt2I5ifkjSb+JyPOCG78LwNcrbFQG8HrlD1n/FkTkQyRCAo23aYMfifpTRH4qOCHDAL5cYfiHIvKvjRMGg8FgSCzs1Y2/1rPf1AcAP4jIfwV36s0AvgWwnmyUN7bXicFgMBgMeYmyIkYUNnWy2iaxTJ00VWikmsnFewBu228btzXk7QUwCKBMMt7JRZK/ayM2/R6t16x5+t1gMCTVPS3JIQY0rFOQT2lAAF4UNQ1Ida9fGpAjUe6AJcrxQKKJcpZKWrWdap9KasnWke1Wm2RrW46wfqdfl72BdQ332TRsJpOArkdV11jX4jfE+AsY0umUdgDXCvDDv6a6PoxzSVtcEZct+qz3ok9bFr3KHvVZFm0bBwRtk/zGAba1Rsq21qhScNt8JkVC2/ZMKRLWNjBLkZC2xV+KBLdNMNOyCaZtE5uybWJtI+VP9Voz8YHOthpPFxm2GX+KyLDjKlJEhh3okjJCgkceqQEf+6ar1YkOOK4fJnnRcX2E5Ijj+kWShz0/hilP230qW3OFyLImQ2pN3qZFZElErgaqnAQwKyJ3HMp2APgKwA3Hfb1wn9rZCPdSsnm4D6O8AaDPlaShMs3Cc7Sf1rkqIkuZIaRC79kE4Dj8R9J9A+BXEXnnKAuea+shpMdh0HcAftG2XDgN4Hg1M9p5mAe6THI0UD4XGMpeeiIy50mfGjm9DAxNcwE5RkleTto+9ZgA7IDnSDpNMSp5hrJOAK/XsuZC6752Hb2qbZQCaU0XVNZ8EyIie0XkrafYe/pmhOEqOGwpvKeKishbEdlbhB7ifT+Ant7sqRI69TmE0CnTEwCG0pRzlqZvFtsBPBGRxaR6iLb1RNs2Qj4zzoKI7A5UqcWQBRHZLSILRsja8R5AFMMt6L2ZQFNWBI26Lk8XWGZmTZ/tdWKEGIwQI8RghOQETTnR401eCPl/AKBc4r28/8mlAAAAAElFTkSuQmCC"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAA57mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNyAoV2luZG93cyk8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTktMDQtMDJUMTg6MDg6MTErMDg6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE5LTA0LTAyVDE4OjA4OjExKzA4OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxOS0wNC0wMlQxODowODoxMSswODowMDwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnhtcC5paWQ6YjliYTljZjQtZGJkMy0zNzQ2LWFiYzItMTY3OWU5MDE0ZTIxPC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD5hZG9iZTpkb2NpZDpwaG90b3Nob3A6MzY3NTdiNWMtNTUyZi0xMWU5LWEwMGUtZTdmMzVhMTA0MmVkPC94bXBNTTpEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6ZTA5YzJmMmYtOGM5Zi1mZTQwLTgyMTEtMGNjZmY2ZDFmNzZkPC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y3JlYXRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6aW5zdGFuY2VJRD54bXAuaWlkOmUwOWMyZjJmLThjOWYtZmU0MC04MjExLTBjY2ZmNmQxZjc2ZDwvc3RFdnQ6aW5zdGFuY2VJRD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxOS0wNC0wMlQxODowODoxMSswODowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDpiOWJhOWNmNC1kYmQzLTM3NDYtYWJjMi0xNjc5ZTkwMTRlMjE8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTktMDQtMDJUMTg6MDg6MTErMDg6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE3IChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTAwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEwMDwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+hSv1CAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAADBUlEQVR42uycO2/UQBRGz10tCggkBAqyiKCCCkRPBw00IChAYgON/wb/xg1hFwpooEsFRSToEFSk42UeQilQhII8FDFSErxmH17bd/mOFMnZ9YwyOfY39ng8FkJAtIeO/gUSIiREQoSESIiQEAkREiIhQkKEhEiIkBAJERIiIUJCJERIiJAQCRES4p2uhz/SzMp3SNLzAMTRWtluHuagdefkwLoFGLDmvSHm4agpPUOStAO8y387QRxlns+QeehDLgDH85+L6tTbEVdF24qs2iMrSfcBKXAk/+Q7EBFHW4qsZri0Qwb59mVFVnMsF3zWU2Q1EVlJegD4DBza880P4BhxtKnIqpcrBTIADgJXFVntiCv3seUzspL0MPAJ2D+kyM/8amtDkVUP10pkACwA1xVZ9XFnhH1uK7LqiKwkXQQ+8u+B0V/AEnH0RZE1W24y2ih1F7ihyGr26sp9bPmKrCRdYnuo3UYsGoCTxNF7Rdbszg4bx6W3exJvQiYZXnclxE9kJekp4O2EVZwmjtYVWc115m47d09Ceg2VlZC/SNJzwNkpajiT1yEhLYgrV7HlYl7W0YXOcjZlh9wx6wF3JaQCvvUWswqqyTy01UtkDSqo44GEVMf9CupYkZDqbgxfAa+nqOJNXoeEVEi/obL1Hnxehk5CCFMNnZiZhk4qlrIOvJig6Mu8rO7UW3K11ffUQFcPqEIIEz2gMjM9oJqRmA/AszGKPP8jQ5HVjnuSFW+NczcNKIQw1jQgM9M0oBnL+QqsjrDr6k4ZiqzZcm8e48plZOXRM9JkazPTZOuaBG0AT0t2ebJXhiKr2autvtdGuX2lLYRQ+kqbmemVtpolbQKPC756VCRDkdVcbPU9N8j1wgEhhMKFA8xMCwc0JGqL3c/KHw6Tociqj8GQbUVW3ZGVx9Cu5ZnMzPXyTO4XMDOzLIQw2N60zHt75mVFucGctMNHZP1PaFVSCRESIiFCQiRESIiECAmRECEhQkIkREiIhAgJkRAhIRIiJERIiIQICXHP7wEAHiDp1oKzlp8AAAAASUVORK5CYII="},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var A=n(16),s=n(9),C=function(t){function e(e){var n=g(e,[]);return t.call(this,o({},n))||this}return r(e,t),e.prototype.grentNode=function(){var t=this,e=document.createElementNS(s.SVGURI,"path");return e.setAttribute("fill","rgba(255,255,255,0.5)"),this.nextTick((function(){return t.update()})),e},e.prototype.update=function(){var t=this.face.map((function(t){return t.x+" "+t.y})).join("L");this.real.setAttribute("d","M "+t+" Z")},e}(A.CADElement);e.default=C},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(388),r=n(13);e.attachSign=function(t){var e={border:2,r:5};i.default.Setting.set(t.processing.render,e);var n=new i.default({pos:{x:-2,y:5},dire:0,renderer:t.processing.render});n.zIndex=1,t.processing.render.push(n),t.setSign=function(t,e){r.type.isNumber(e)&&(n.dire=e),n.pos=t},t.hideSign=function(){return n.show=!1,new Promise((function(t){return n.nextTick(t)}))},t.showSign=function(){return n.show=!0,new Promise((function(t){return n.nextTick(t)}))},t.setDefaultSignStyle=function(t){t.border&&(e.border=t.border,n.border=t.border),t.r&&(e.r=t.r,n.r=t.r)};var o=t.destroy;t.destroy=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n=null,o.apply(this,t)}}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},g=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var A=n(16),s=n(9),C=0,I=function(t){function e(n){var i=n.border,r=n.r,A=n.show,s=void 0===A||A,I=g(n,["border","r","show"]);return i=i||e.Setting.get(I.renderer).border,r=r||e.Setting.get(I.renderer).r,C++,t.call(this,o({border:i,r:r,show:s},I))||this}return r(e,t),e.prototype.grentNode=function(){var t=document.createElementNS(s.SVGURI,"g");this.inner=document.createElementNS(s.SVGURI,"circle"),this.inner.setAttribute("fill","rgb(0, 200, 175)"),this.inner.setAttribute("stroke","#fff"),this.arc=document.createElementNS(s.SVGURI,"path"),this.arc.setAttribute("fill","url(#orange_red"+C+")");var e=document.createElementNS(s.SVGURI,"defs"),n=document.createElementNS(s.SVGURI,"linearGradient");n.setAttribute("id","orange_red"+C),n.setAttribute("x1","0%"),n.setAttribute("y1","0%"),n.setAttribute("x2","100%"),n.setAttribute("y2","100%");var i=document.createElementNS(s.SVGURI,"stop");i.setAttribute("offset","0%"),i.setAttribute("style","stop-color:rgb(0, 200, 175); stop-opacity:1");var r=document.createElementNS(s.SVGURI,"stop");return r.setAttribute("offset","100%"),r.setAttribute("style","stop-color:rgb(0, 200, 175); stop-opacity:0.4"),n.appendChild(i),n.appendChild(r),e.appendChild(n),t.appendChild(this.arc),t.appendChild(this.inner),t.appendChild(e),t.setAttribute("class","sign"),t},e.prototype.update=function(){this.inner.setAttribute("r",(this.r*this.multiple).toString()),this.inner.setAttribute("stroke-width",(this.border*this.multiple).toString()),this.inner.setAttribute("cx",this.pos.x.toString()),this.inner.setAttribute("cy",this.pos.y.toString());var t=2*this.multiple,e=8*this.multiple,n=14*this.multiple;this.arc.setAttribute("d","\n M "+this.pos.x+" "+(this.pos.y-t)+" \n L "+(this.pos.x+n)+" "+(this.pos.y-e)+" \n L "+(this.pos.x+n)+" "+(this.pos.y+e)+" \n L "+this.pos.x+" "+(this.pos.y+t)+" Z\n "),this.real.setAttribute("transform","rotate("+this.dire+" "+this.pos.x+" "+this.pos.y+")"),this.real.style.display=this.show?"inherit":"none"},e.Setting=new Map,e}(A.CADElement);e.default=I},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},r=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function g(t){try{s(i.next(t))}catch(t){o(t)}}function A(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,A)}s((i=i.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,i,r,o,g={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function A(o){return function(A){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,i=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!(r=(r=g.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){g=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){g.label=o[1];break}if(6===o[0]&&g.label<r[1]){g.label=r[1],r=o;break}if(r&&g.label<r[2]){g.label=r[2],g.ops.push(o);break}r[2]&&g.ops.pop(),g.trys.pop();continue}o=e.call(t,g)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,A])}}};Object.defineProperty(e,"__esModule",{value:!0});var g=n(13);e.attachScreenshot=function(t){var e=t.processing.render;t.screenshot=function(n){var A=n.width,s=void 0===A?2048:A,C=n.height,I=void 0===C?2048:C,a=n.bgColor,u=void 0===a?"rgba(0,0,0,0)":a,c=n.data,l=n.spadding;return r(void 0,void 0,void 0,(function(){var n,A,C,a,f,h,p;return o(this,(function(d){switch(d.label){case 0:return n=i({},e.props),A=new Image,C=document.createElement("canvas"),a=C.getContext("2d"),f=t.processing.points.map((function(t){return t.ele.x})),h=t.processing.points.map((function(t){return t.ele.y})),p=t.padding,t.padding=l,t.adapt(c,s,I),[4,t.hideSign()];case 1:return d.sent(),C.width=s,C.height=I,a.fillStyle=u,a.fillRect(0,0,C.width,C.height),[2,new Promise((function(i){return r(void 0,void 0,void 0,(function(){return o(this,(function(u){return A.onload=function(){return r(void 0,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return a.drawImage(A,0,0),r={width:s,height:I,file:g.convertBase64UrlToBlob(C.toDataURL("image/png")),left:t.processing.render.realPointToScreen({x:Math.min.apply(Math,f),y:0}).x,top:t.processing.render.realPointToScreen({x:0,y:Math.min.apply(Math,h)}).y,bottom:I-t.processing.render.realPointToScreen({x:0,y:Math.max.apply(Math,h)}).y,right:s-t.processing.render.realPointToScreen({x:Math.max.apply(Math,f),y:0}).x},e.props=n,t.padding=p,e.adaptLayer(),[4,t.showSign()];case 1:return o.sent(),i(r),[2]}}))}))},A.src="data:image/svg+xml;base64,"+window.btoa(unescape(encodeURIComponent(e.layer.innerHTML))),[2]}))}))}))]}}))}))};var n=t.destroy;t.destroy=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];e=null,n.apply(this,t)}}},function(t,e,n){"use strict";var i=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function g(t){try{s(i.next(t))}catch(t){o(t)}}function A(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,A)}s((i=i.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,i,r,o,g={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function A(o){return function(A){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,i=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!(r=(r=g.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){g=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){g.label=o[1];break}if(6===o[0]&&g.label<r[1]){g.label=r[1],r=o;break}if(r&&g.label<r[2]){g.label=r[2],g.ops.push(o);break}r[2]&&g.ops.pop(),g.trys.pop();continue}o=e.call(t,g)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,A])}}},o=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var g=n(391),A=n(50),s=n(111),C=n(60),I=n(59),a=n(153),u=n(149),c=n(150),l=n(154),f=n(151),h=n(152),p=n(13),d=n(110),y=n(107);e.attchTransform=function(t){var e=t.processing;t.getData=function(){var n=e.toData();return n.dire=t.direction.angle,n},t.loadData=function(n){e.attrs.forEach((function(t){for(;e[t].length;)e[t][0].ele.destroy(!0,!0)})),e.data&&e.data.clip&&e.data.clip.forEach((function(e){return t.delClip(e)}));var i=[];n.wall.forEach((function(t){var e=t.p1,n=t.p2;return i.push(e,n)})),n.room.forEach((function(t){t.ground.forEach((function(t){return i.push(t)})),t.hole.forEach((function(t){t.pos.forEach((function(t){return i.push(t)}))}))}));var r=n.vertex.filter((function(t){var e=t.id;return~i.indexOf(e)}));n.vertex=r,n.surplus=[],e.toEles(n),t.direction.angle=n.dire,t.adapt(n),n.clip&&n.clip.forEach((function(e){t.addClip(e)}))}},e.attchStack=function(t){var e=0,n=new g.default("cad_"+Date.now()),i=function(t){if(void 0===t&&(t=e),!n)return{previous:!1,next:!1};var i=n.getLength();return{previous:(1!==i||1!==e)&&t>0,next:t<i-1}};t.clearStack=function(){sessionStorage.clear(),n.clear(),e=0},t.preservation=p.debounce((function(){var i=t.getData(),r=n.getLength()-1;i["vertex-xy"]=i["vertex-xy"].concat(i.surplus),delete i.surplus,0!==r&&JSON.stringify(i)===JSON.stringify(n.get(r))||(n.push(i),++e)}),500);var r=Date.now();t.previous=function(){return Date.now()-r>30&&(r=Date.now(),e===n.getLength()&&--e,i().previous&&t.loadData(n.get(--e))),i()},t.next=function(){return Date.now()-r>30&&(r=Date.now(),i().next&&t.loadData(n.get(++e))),i()},t.getStackState=i;var o=t.destroy;t.destroy=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n=null,o.apply(this,t)}},e.autoPreservation=function(t){[A.default,s.default,C.default,I.default,a.default,c.default,l.default,f.default,d.default,h.default,y.default,u.default].forEach((function(e){var n=e.prototype.dragEnd;e.prototype.dragEnd=function(){for(var e=[],g=0;g<arguments.length;g++)e[g]=arguments[g];return i(this,void 0,void 0,(function(){return r(this,(function(i){switch(i.label){case 0:return n?[4,n.call.apply(n,o([this],e))]:[3,2];case 1:i.sent(),i.label=2;case 2:return setTimeout((function(){t.preservation()}),100),[2]}}))}))};var g=e.prototype.destroy;e.prototype.destroy=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return i(this,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return g?[4,g.call.apply(g,o([this],e))]:[3,2];case 1:n.sent(),n.label=2;case 2:return setTimeout((function(){t.preservation()}),100),[2]}}))}))};var A=t.destroy;t.destroy=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];A.apply(this,t),e.prototype.dragEnd=n}}));var e=t.increase;t.increase=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=e.call.apply(e,o([t],n));return r.error||setTimeout((function(){t.preservation()}),100),r},t.preservation()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this.length=t+"__length",this.index=t+"__index",this.name=t,this.keys=[],this.init()}return t.prototype.init=function(){sessionStorage.setItem(this.length,"0")},t.prototype.getKey=function(t){return this.name+"__"+t},t.prototype.getData=function(){return sessionStorage.getItem(this.index)},t.prototype.getLength=function(){return Number(sessionStorage.getItem(this.length))},t.prototype.setLength=function(t){sessionStorage.setItem(this.length,t)},t.prototype.push=function(t){var e=this.getLength(),n=this.getKey(this.getLength());return sessionStorage.setItem(n,JSON.stringify(t)),this.keys.push(n),this.setLength(e+1),t},t.prototype.pop=function(){var t=this.getLength(),e=this.get(t-1);return this.setLength(t-1),e},t.prototype.get=function(t){var e=this.getKey(t);return JSON.parse(sessionStorage.getItem(e))},t.prototype.clear=function(){this.setLength(0),this.keys.forEach((function(t){return sessionStorage.removeItem(t)})),this.keys=[this.length]},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.attchDOMTranform=function(t){var e=t.processing.render,n=function(t){if(t.target===e.svg){var n=e.props.left,i=e.props.top,r=function(r){e.props.left=n-(t.pageX-r.pageX)*e.props.multiple,e.props.top=i-(t.pageY-r.pageY)*e.props.multiple,e.adaptLayer(),r.preventDefault()},o=function(){document.documentElement.removeEventListener("mousemove",r,!1),document.documentElement.removeEventListener("mouseup",o,!1)};document.documentElement.addEventListener("mousemove",r,!1),document.documentElement.addEventListener("mouseup",o,!1),t.preventDefault()}},i=function(t){var n=t.wheelDelta?window.opera?-t.wheelDelta/120:t.wheelDelta/120:t.detail?-t.detail/3:0,i=e.props.scale+(n>0?.08:-.08);i>.1&&(e.props.scale=i,e.adaptLayer())};t.openMouseHandle=function(){e.layer.addEventListener("mousedown",n,!1),e.layer.addEventListener("mousewheel",i,!1)},t.closeMouseHandle=function(){e.layer.removeEventListener("mousedown",n,!1),e.layer.removeEventListener("mousewheel",i,!1)};var r=t.destroy;t.destroy=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.closeMouseHandle(),e=null,r.apply(this,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(16),r=n(31),o=n(59);e.attachDisabled=function(t){var e=["increase","getStackState","preservation","previous","next","closeMouseHandle","showGauge","hideGauge"],n=[];t.forbidden=function(){n.length!==e.length&&(t.hideGauge(),t.closeMouseHandle(),i.CADElement.examples.get(t.processing.render).forEach((function(t){return t.unEvent()})),r.default.attaArch.forEach((function(t){t.forEach((function(t){t instanceof o.default&&t.delEvent()}))})),e.forEach((function(e){n.push(t[e]),delete t[e]})))},t.available=function(){n.length===e.length&&(e.forEach((function(e,i){return t[e]=n[i]})),n=[],i.CADElement.examples.get(t.processing.render).forEach((function(t){return t.listen()})),r.default.attaArch.forEach((function(t){t.forEach((function(t){return t instanceof o.default&&t.addEvent()}))})),t.showGauge(),t.openMouseHandle())}}},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var o=n(155);e.attachRote=function(t){var e=new o.default({renderer:t.processing.render,local:[]});e.zIndex=2,t.processing.render.push(e),e.setActive=function(n){t.activeRoute(e.local.indexOf(n))},t.setRoutes=function(n){n=n.map((function(t,e){if(t.rangn){var r=function(t){var e=n.slice(0,t).reverse().find((function(t){return!t.rangn}));return e||n.slice(t).find((function(t){return!t.rangn}))}(e);if(r)return i(i({},r),{rangn:!0})}return i({},t)})),t.clearRoutes((function(){e.local=r(n)}))},t.pushRoute=function(e){t.clearRoutes((function(){setTimeout((function(){}),100)}))},t.activeRoute=function(t){e.nextTick((function(){e.active=e.local[t]}))},t.popRoute=function(t){e.local.splice(t,1),e.nextTick((function(){return e.local=r(e.local)}))},t.clearRoutes=function(t){e.local=[],e.dialog=0,e.nextTick((function(){return t&&t()}))};var n=t.destroy;t.destroy=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];t.clearRoutes(),e=null,n.apply(this,i)}}},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAt1BMVEVHcEz///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+6urrFxcXR0dHY2NjX19fDw8P////Hx8fg4ODj4+PQ0NDCwsLGxsb///////////////+Zk85TAAAAPHRSTlMAAgQiHSZ5yO+B2fPfw70siHVCZ337ODSO0YM7rJLjzVINSDDpcBkUXfljCAQ4lcV6BgpEkKlgQ0CZ3FCcXUtcAAAAAWJLR0QB/wIt3gAAAAd0SU1FB+MFHgsMLLYaoF4AAADtSURBVBjTbVCJcoIwFNxQuSIWEYMoUOSQo/S0p+37/+9qIraNnb7JZDK7m012gfNhBvsXuZjoiNpNyyZHR5jp8qk3m17+avw5Jx4swqWITsgq9sR6aWKySVL7eDfKrkQeKPtt7BdUAlVcC3vXKLLdWQ0yT55IdO3oa246hqK/hoGwd4GB3dze3T88MgTjfyKR74Gn55fXt3fAsaRQrn0uqsINB2XR9cVRKYkDpQmDiviRwRjTAJwOkmUoqcF3IcyL13mLAXZ6Eqqpy4CcBVbk/wjBeC0il7p0Bq1NmyqZkSjRwaaFISN9/i0d2hNf1CoSHV2Lm8sAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDUtMzBUMTE6MTI6NDQrMDg6MDCJUf45AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTA1LTMwVDExOjEyOjQ0KzA4OjAw+AxGhQAAAABJRU5ErkJggg=="},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(50),r=n(109),o=n(108);e.attachStyle=function(t){var e={fillColor:"rgb(0, 200, 175)",storkeColor:"green"},n={fillColor:"rgba(245, 255, 0, 0.7)",storkeColor:"rgba(245, 255, 255, 0.3)"};r.default.Setting.set(t.processing.render,e),i.default.Setting.set(t.processing.render,n),t.setDefaultPointStyle=function(i){i.storkeColor&&(e.storkeColor=i.storkeColor),i.fillColor&&(e.fillColor=i.fillColor),i.hoverStorkeColor&&(n.storkeColor=i.hoverStorkeColor),i.hoverFillColor&&(n.fillColor=i.hoverFillColor),setTimeout((function(){t.loadData(t.getData())}),100)};var g={width:3,color:"rgb(255,255,255)"};o.default.Setting.set(t.processing.render,g),t.setDefaultLineStyle=function(e){e.width&&(g.width=e.width),e.color&&(g.color=e.color),setTimeout((function(){t.loadData(t.getData())}),100)}}},function(t,e,n){"use strict";var i=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var r=n(31),o=n(10);e.default=function(t){var e=t.processing.addCase,n=t.processing.addDoor,g=t.processing.addColumn,A=t.processing.addLine,s=t.processing.addSlideDoor,C=t.processing.addBayCase,I=t.processing.addGroundCase,a=t.processing.addFurnColumn,u=t.processing.addFurnFlue,c=function(t){Object.defineProperties(t,{ewidth:{get:function(){return Number(o.lineDis({points:t.linePoints}).toFixed(2))},set:function(e){if(!(e<=0||e===t.ewidth)){var n=o.lineCenter({points:t.linePoints}),i=o.getDisPointLinePoints(t.attachment,n,e/2),r=i[0],g=i[1];o.lineDis({points:[t.linePoints[0],r]})>o.lineDis({points:[t.linePoints[0],g]})?(t.linePoints[0].x=g.x,t.linePoints[0].y=g.y,t.linePoints[1].x=r.x,t.linePoints[1].y=r.y):(t.linePoints[0].x=r.x,t.linePoints[0].y=r.y,t.linePoints[1].x=g.x,t.linePoints[1].y=g.y)}}},maxWidth:{get:function(){var e=i(r.default.attaArch.get(t.attachment),[t.attachment]),n=[],g=[],A=function(e,n,i){var r=e.linePoints||e.points;return{dis:o.lineDis({points:[t.linePoints[n],r[i]]}),point:r[i]}};e.forEach((function(e){e!==t&&(n.push(A(e,0,0)),n.push(A(e,0,1)),g.push(A(e,1,0)),g.push(A(e,1,1)))})),n.sort((function(t,e){return t.dis-e.dis})),g.sort((function(t,e){return t.dis-e.dis}));var s=n[0].dis>g[0].dis?[t.linePoints[1],g[0].point]:[t.linePoints[0],n[0].point];return Number((2*o.lineDis({points:s})+o.lineDis({points:t.linePoints})).toFixed(2))}},minWidth:{get:function(){return.2}}})},l=function(t){Object.defineProperties(t,{tick:{get:function(){return Math.max(Number(o.lineDis({points:[t.points[0],t.points[3]]}).toFixed(2)),Number(o.lineDis({points:[t.points[1],t.points[2]]}).toFixed(2)))},set:function(e){e<=0||e===t.oldVal||(t.oldVal=e,t.thickness=e,t.updatePeripheral())}},maxTick:{get:function(){for(var e={points:[t.points[0],t.points[3]]},n={points:[t.points[1],t.points[2]]},i=t.attachment.wallLines,r=[],g=[],A=0;A<i.length;A++)if(i[A]!==t.attachment){var s=o.segmentsIntrFine(i[A],e),C=o.segmentsIntrFine(i[A],n);s&&o.isContainPoint(i[A],s)&&r.push(s),C&&o.isContainPoint(i[A],C)&&g.push(C)}r.sort((function(e,n){return o.lineDis({points:[t.points[0],e]})-o.lineDis({points:[t.points[0],n]})})),g.sort((function(e,n){return o.lineDis({points:[t.points[1],e]})-o.lineDis({points:[t.points[1],n]})}));var I=0;for(A=0;A<r.length;A++)if(o.isContainPoint({points:[t.points[0],r[A]]},t.points[3])||o.isContainPoint({points:[t.points[0],t.points[3]]},r[A])){I=o.lineDis({points:[t.points[0],r[A]]});break}var a=0;for(A=0;A<g.length;A++)if(o.isContainPoint({points:[t.points[1],g[A]]},t.points[2])||o.isContainPoint({points:[t.points[1],t.points[2]]},g[A])){a=o.lineDis({points:[t.points[1],g[A]]});break}return Number((I?a?I<a?I:a:I:a).toFixed(2))||10}},minTick:{get:function(){return.2}}})},f=function(e){Object.defineProperties(e,{eheight:{get:function(){return Number((e.top-e.bottom).toFixed(2))},set:function(t){e.in3D.changeHeight(t)}},maxHeight:{get:function(){var n=t.processing.getRoomsByLine(e.attachment);return n.length?Number((n[0].top-n[0].bottom).toFixed(2)):5}},minHeight:{get:function(){return.2}}})},h=function(e){Object.defineProperties(e,{top:{get:function(){var n=t.processing.getHolesByLine(e)[0];return n?n.top:t.processing.getRoomsByLine(e)[0].top},set:function(n){var i=t.processing.lines.find((function(t){return t.ele===e})).room;n!==i.top&&t.processing.lines.filter((function(t){var n=t.ele;return~n.points.indexOf(e.points[0])&&~n.points.indexOf(e.points[1])})).forEach((function(t){var e=t.ele,i=t.room,r=t.hole;return e.updateRoomTop(n,i,r)}))}},maxTop:{get:function(){return 10}},minTop:{get:function(){return.5}}})},p=function(e){Object.defineProperties(e,{bottom:{get:function(){var n=t.processing.getRoomsByLine(e)[0];return n?n.bottom:t.processing.getHolesByLine(e)[0].bottom},set:function(n){var i=t.processing.lines.find((function(t){return t.ele===e})).room;n!==i.bottom&&t.processing.lines.filter((function(t){var n=t.ele;return~n.points.indexOf(e.points[0])&&~n.points.indexOf(e.points[1])})).forEach((function(t){var e=t.ele,i=t.room,r=t.hole;return e.updateRoomBottom(n,i,r)}))}},minBottom:{get:function(){return-2.5}},maxBottom:{get:function(){return-.5}}})};t.processing.addCase=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.call.apply(e,i([this],t));return c(r.ele),f(r.ele),r},t.processing.addBayCase=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=C.call.apply(C,i([this],t));return c(n.ele),f(n.ele),n},t.processing.addGroundCase=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=I.call.apply(I,i([this],t));return c(n.ele),f(n.ele),n},t.processing.addDoor=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=n.call.apply(n,i([this],t));return c(r.ele),f(r.ele),r},t.processing.addSlideDoor=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=s.call.apply(s,i([this],t));return c(n.ele),f(n.ele),n},t.processing.addColumn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=g.call.apply(g,i([this],t));return c(n.ele),l(n.ele),n},t.processing.addLine=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=A.call.apply(A,i([this],t));return h(n.ele),p(n.ele),n};var d=function(t){Object.defineProperties(t,{maxTop:{get:function(){return t.room.top}},minTop:{get:function(){return.5}}})},y=function(t){Object.defineProperties(t,{maxBottom:{get:function(){return-.5}},minBottom:{get:function(){return t.room.bottom}}})},v=function(t){Object.defineProperties(t,{ewidth:{get:function(){return Number(o.lineDis({points:[t.points[0],t.points[1]]}).toFixed(2))},set:function(e){if(!(e<=0||e===t.ewidth)){var n=o.lineStretch({points:[t.points[0],t.points[1]]},e),i=o.lineStretch({points:[t.points[2],t.points[3]]},e),r=n.points.concat(i.points);t.check(r)&&t.directUpdate(r)}}},maxWidth:{get:function(){return 10}},minWidth:{get:function(){return.25}}})},m=function(t){Object.defineProperties(t,{tick:{get:function(){return Number(o.lineDis({points:[t.points[1],t.points[2]]}).toFixed(2))},set:function(e){if(!(e<=0||e===t.tick)){var n=o.lineStretch({points:[t.points[0],t.points[3]]},e),i=o.lineStretch({points:[t.points[1],t.points[2]]},e),r=[n.points[0],i.points[0],i.points[1],n.points[1]];t.check(r)&&t.directUpdate(r)}}},maxTick:{get:function(){return 10}},minTick:{get:function(){return.25}}})},b=function(t){Object.defineProperties(t,{maxAngle:{get:function(){return 360}},minAngle:{get:function(){return 0}}})};t.processing.addFurnColumn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=a.call.apply(a,i([this],t));return d(n.ele),y(n.ele),v(n.ele),m(n.ele),b(n.ele),n},t.processing.addFurnFlue=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=u.call.apply(u,i([this],t));return d(n.ele),y(n.ele),v(n.ele),m(n.ele),b(n.ele),n};var x=t.destroy;t.destroy=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];e=null,n=null,g=null,A=null,x.apply(this,t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.other=function(t){var e=!1,n=t.processing.addTagging;t.processing.addTagging=function(i){return i.show=e,n.call(t.processing,i)},t.hideLabel=function(){e=!1,t.processing.taggings.forEach((function(t){return t.ele.show=!1}))},t.showLabel=function(){e=!0,t.processing.taggings.forEach((function(t){return t.ele.show=e}))}}},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i},o=this;Object.defineProperty(e,"__esModule",{value:!0});var g=n(156),A=n(400),s=function(t){return[(t=i(i({},t),{vertex:t.vertex.map((function(t){return i(i({},t),{y:-t.y})})),window:r(t.window),column:r(t.column),door:r(t.door),groundCase:r(t.groundCase),slideDoor:r(t.slideDoor),bayCase:r(t.bayCase),tagging:r(t.tagging),furnColumn:r(t.furnColumn),furnFlue:r(t.furnFlue),clip:t.clip&&t.clip.map((function(t){return t.map((function(t){return i(i({},t),{y:-t.y})}))}))})).window,t.column,t.door,t.slideDoor,t.tagging,t.groundCase,t.bayCase,t.furnColumn,t.furnFlue,t.openSpace].forEach((function(t){t.forEach((function(e,n){t[n]=i(i({},e),{pos:e.pos.map((function(t,e){return e%2?-t:t}))})}))})),t},C=function(t){t=function(t){return t.block.forEach((function(e){for(var n=function(n){var i=e.ground[n],r=e.ground[n===e.ground.length-1?0:n+1];if(!e.wall.some((function(e){var n=t.segment.find((function(t){var n=t.id;return e===n}));return n.a===i&&n.b===r||n.a===r&&n.b===i}))){var o=t.segment.find((function(t){var e=t.a,n=t.b;return e===i&&n===r||e===r&&n===i}));o&&e.wall.push(o.id)}},i=0;i<e.ground.length;i++)n(i)})),t}(t);var e=[],n=[];t.block.forEach((function(n){for(var i,r=[],o=function(e){var o=n.wall[e],g=t.segment.find((function(t){return t.id===o}));~n.ground.indexOf(g.a)&&~n.ground.indexOf(g.b)||(r.push(g),n.wall.splice(e--,1)),i=e},g=0;g<n.wall.length;g++)o(g),g=i;r.__block=n,r.length>0&&e.push(r)}));var i=e.reduce((function(t,e){return t.concat(e.map((function(t){return t.id})))}),[]);i=i.concat(t.block.reduce((function(t,e){var n=e.wall;return t.concat(n)}),[]));for(var o=t.segment.filter((function(t){return!~i.indexOf(t.id)})),g=function(){var t=e[0];if(!t.length)return e.splice(0,1),e.length?"continue":"break";if(0===t.length)return"continue";for(var i=[],o=function(e){var n,o,g,A,s=(n=r(t),o=[t[e]],g=200,(A=function(t){var e=t[t.length-1],i=n.filter((function(n){return(n.a===e.a||n.a===e.b||n.b===e.a||n.b===e.b)&&!~t.indexOf(n)}));if(t.length>2&&(~[e.a,e.b].indexOf(t[0].a)||~[e.a,e.b].indexOf(t[0].b)))return[t];if(g--<0)return[t];if(i.length){var o=i.map((function(e){return r(t,[e])})),s=[];return o.forEach((function(t){s=s.concat(A(t))})),s}return[t]})(o)),C=s.filter((function(t){var e=[t[0].a,t[0].b],n=[t[t.length-1].a,t[t.length-1].b];return(~e.indexOf(n[0])||~e.indexOf(n[1]))&&t.length>2})),I=C.find((function(t){return t.length===Math.min.apply(Math,C.map((function(t){return t.length})))}));if(I)return i=[I],"break";i=i.concat(s)},g=0;g<t.length;g++){if("break"===o(g))break}var A=Math.max.apply(Math,i.map((function(t){return t.length}))),s=i.find((function(t){return t.length===A}));s.forEach((function(e){t.splice(t.indexOf(e),1)})),n.push({top:t.__block.top,bottom:t.__block.bottom,wall:r(s)})};e.length;){if("break"===g())break}return n.forEach((function(e){var n=[];e.wall.length>1?n=~(r=[e.wall[1].a,e.wall[1].b]).indexOf(e.wall[0].a)?[e.wall[0].b]:[e.wall[0].a]:n=[e.wall[0].a,e.wall[0].b];for(var i=1;i<e.wall.length;i++){var r=i===e.wall.length-1?[]:[e.wall[i+1].a,e.wall[i+1].b],o=[e.wall[i-1].a,e.wall[i-1].b],g=e.wall[i],A=[];~n.indexOf(g.a)||~r.indexOf(g.a)||A.push(g.a),~n.indexOf(g.b)||~r.indexOf(g.b)||A.push(g.b),~o.indexOf(A[1])&&(A=A.reverse()),n.push.apply(n,A)}t.block.push({id:Math.max.apply(Math,t.block.map((function(t){return t.id})))+1,wall:e.wall.map((function(t){return t.id})),ground:n,top:e.top,bottom:e.bottom,floor:[],area:0,height:0})})),t.block=t.block.filter((function(t){return 0!==t.ground.length})),[t,o]};e.handle=function(t){var e=t.getData,n=t.loadData,I=t;return I.getData=function(t,n){void 0===t&&(t=!1);var A=function(t){return(t=i({},t)).room=t.room.map((function(t){return{id:t.id,top:t.top,bottom:t.bottom,close:t.close,ground:r(t.ground),hole:t.hole.map((function(t){return{top:t.top,pos:t.pos}}))}})),t}(e.call(o));if(A=n?A:s(A),t){var C=g.oldToNew(g.columnToRoom(A));return C["vertex-xy"]=C["vertex-xy"].concat(C.surplus),delete C.surplus,C}return g.oldToNew(A)},I.loadData=function(t){t=function(t){return t.column=t.column||[],t.window=t.window||[],t.door=t.door||[],t.groundCase=t.groundCase||[],t.bayCase=t.bayCase||[],t.slideDoor=t.slideDoor||[],t.tagging=t.tagging||[],t.furnColumn=t.furnColumn||[],t.openSpace=t.openSpace||[],t.furnFlue=t.furnFlue||[],(t.rooms||t.room||t.points)&&(t.room=t.rooms||t.room||t.points,t.room.forEach((function(e){A.isNumber(e.top)||(e.top=A.isNumber(t.top)?t.top:1),A.isNumber(e.bottom)||(e.bottom=A.isNumber(t.bottom)?t.bottom:1),!e.ground&&e.points&&(e.ground=e.points),e.hole||(e.hole=[]),e.close=!0}))),t}(JSON.parse(JSON.stringify(t)));var e=[];if(!t.vertex){var i=t.block.reduce((function(t,e){return t.concat(e.wall)}),[]),r=t.block.reduce((function(t,e){return t.concat(e.ground)}),[]);e=r.filter((function(e){return!i.some((function(n){var i=t.segment.find((function(t){var e=t.id;return n===e}));return e===i.a||e===i.b}))}))}var I=t;if(!t.vertex){var a=C(t),u=a[0];a[1];I=g.newToOld(u)}(I=function(t){var e=0,n=[];return t.room.forEach((function(i){i.ground.forEach((function(r,o){if(o!==i.ground.length-1||i.close){var g=i.ground[o===i.ground.length-1?0:o+1],A=t.wall.find((function(t){var e=t.p1,n=t.p2;return r===e&&g===n||g===e&&r===n})),s=!A||A.border,C=!!A&&A.exterior;n.push({p1:r,p2:g,id:++e,room:i,border:s,exterior:C})}})),i.hole.forEach((function(r){r.pos.forEach((function(o,g){var A=r.pos[g===r.pos.length-1?0:g+1],s=t.wall.find((function(t){var e=t.p1,n=t.p2;return o===e&&A===n||A===e&&o===n})),C=!s||s.border,I=!!s&&s.exterior;n.push({p1:o,p2:A,id:++e,room:i,border:C,exterior:I})}))}))})),[t.window,t.door,t.column,t.slideDoor,t.groundCase,t.bayCase,t.openSpace].forEach((function(e){e.forEach((function(e){var i=t.wall.find((function(t){var n=t.id;return e.line===n})),r=[i.p1,i.p2],o=n.find((function(t){var e=t.p1,n=t.p2;return~r.indexOf(e)&&~r.indexOf(n)}));e.line=o.id}))})),t.wall=n,t}(s(I))).wall.forEach((function(t){t.exterior=!(!~e.indexOf(t.p1)&&!~e.indexOf(t.p2))})),n.call(o,I)},I}},function(t,e,n){(function(t){var i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++)n[e[i]]=Object.getOwnPropertyDescriptor(t,e[i]);return n},r=/%[sdj%]/g;e.format=function(t){if(!p(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(A(arguments[n]));return e.join(" ")}n=1;for(var i=arguments,o=i.length,g=String(t).replace(r,(function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return t}})),s=i[n];n<o;s=i[++n])f(s)||!v(s)?g+=" "+s:g+=" "+A(s);return g},e.deprecate=function(n,i){if(void 0!==t&&!0===t.noDeprecation)return n;if(void 0===t)return function(){return e.deprecate(n,i).apply(this,arguments)};var r=!1;return function(){if(!r){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),r=!0}return n.apply(this,arguments)}};var o,g={};function A(t,n){var i={seen:[],stylize:C};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),l(n)?i.showHidden=n:n&&e._extend(i,n),d(i.showHidden)&&(i.showHidden=!1),d(i.depth)&&(i.depth=2),d(i.colors)&&(i.colors=!1),d(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=s),I(i,t,i.depth)}function s(t,e){var n=A.styles[e];return n?"["+A.colors[n][0]+"m"+t+"["+A.colors[n][1]+"m":t}function C(t,e){return t}function I(t,n,i){if(t.customInspect&&n&&x(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,t);return p(r)||(r=I(t,r,i)),r}var o=function(t,e){if(d(e))return t.stylize("undefined","undefined");if(p(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(h(e))return t.stylize(""+e,"number");if(l(e))return t.stylize(""+e,"boolean");if(f(e))return t.stylize("null","null")}(t,n);if(o)return o;var g=Object.keys(n),A=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(g);if(t.showHidden&&(g=Object.getOwnPropertyNames(n)),b(n)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return a(n);if(0===g.length){if(x(n)){var s=n.name?": "+n.name:"";return t.stylize("[Function"+s+"]","special")}if(y(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(m(n))return t.stylize(Date.prototype.toString.call(n),"date");if(b(n))return a(n)}var C,v="",w=!1,P=["{","}"];(c(n)&&(w=!0,P=["[","]"]),x(n))&&(v=" [Function"+(n.name?": "+n.name:"")+"]");return y(n)&&(v=" "+RegExp.prototype.toString.call(n)),m(n)&&(v=" "+Date.prototype.toUTCString.call(n)),b(n)&&(v=" "+a(n)),0!==g.length||w&&0!=n.length?i<0?y(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),C=w?function(t,e,n,i,r){for(var o=[],g=0,A=e.length;g<A;++g)_(e,String(g))?o.push(u(t,e,n,i,String(g),!0)):o.push("");return r.forEach((function(r){r.match(/^\d+$/)||o.push(u(t,e,n,i,r,!0))})),o}(t,n,i,A,g):g.map((function(e){return u(t,n,i,A,e,w)})),t.seen.pop(),function(t,e,n){if(t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(C,v,P)):P[0]+v+P[1]}function a(t){return"["+Error.prototype.toString.call(t)+"]"}function u(t,e,n,i,r,o){var g,A,s;if((s=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?A=s.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):s.set&&(A=t.stylize("[Setter]","special")),_(i,r)||(g="["+r+"]"),A||(t.seen.indexOf(s.value)<0?(A=f(n)?I(t,s.value,null):I(t,s.value,n-1)).indexOf("\n")>-1&&(A=o?A.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+A.split("\n").map((function(t){return" "+t})).join("\n")):A=t.stylize("[Circular]","special")),d(g)){if(o&&r.match(/^\d+$/))return A;(g=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=t.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=t.stylize(g,"string"))}return g+": "+A}function c(t){return Array.isArray(t)}function l(t){return"boolean"==typeof t}function f(t){return null===t}function h(t){return"number"==typeof t}function p(t){return"string"==typeof t}function d(t){return void 0===t}function y(t){return v(t)&&"[object RegExp]"===w(t)}function v(t){return"object"==typeof t&&null!==t}function m(t){return v(t)&&"[object Date]"===w(t)}function b(t){return v(t)&&("[object Error]"===w(t)||t instanceof Error)}function x(t){return"function"==typeof t}function w(t){return Object.prototype.toString.call(t)}function P(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(d(o)&&(o=t.env.NODE_DEBUG||""),n=n.toUpperCase(),!g[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var i=t.pid;g[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,i,t)}}else g[n]=function(){};return g[n]},e.inspect=A,A.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},A.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=c,e.isBoolean=l,e.isNull=f,e.isNullOrUndefined=function(t){return null==t},e.isNumber=h,e.isString=p,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=d,e.isRegExp=y,e.isObject=v,e.isDate=m,e.isError=b,e.isFunction=x,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(402);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(){var t=new Date,e=[P(t.getHours()),P(t.getMinutes()),P(t.getSeconds())].join(":");return[t.getDate(),O[t.getMonth()],e].join(" ")}function _(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",S(),e.format.apply(e,arguments))},e.inherits=n(403),e._extend=function(t,e){if(!e||!v(e))return t;for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]];return t};var E="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function M(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(E&&t[E]){var e;if("function"!=typeof(e=t[E]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,E,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,i=new Promise((function(t,i){e=t,n=i})),r=[],o=0;o<arguments.length;o++)r.push(arguments[o]);r.push((function(t,i){t?n(t):e(i)}));try{t.apply(this,r)}catch(t){n(t)}return i}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),E&&Object.defineProperty(e,E,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=E,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],i=0;i<arguments.length;i++)n.push(arguments[i]);var r=n.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,g=function(){return r.apply(o,arguments)};e.apply(this,n).then((function(e){t.nextTick(g,null,e)}),(function(e){t.nextTick(M,e,g)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,i(e)),n}}).call(this,n(401))},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}function A(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:g}catch(t){i=g}}();var s,C=[],I=!1,a=-1;function u(){I&&s&&(I=!1,s.length?C=s.concat(C):a=-1,C.length&&c())}function c(){if(!I){var t=A(u);I=!0;for(var e=C.length;e;){for(s=C,C=[];++a<e;)s&&s[a].run();a=-1,e=C.length}s=null,I=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===g||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function l(t,e){this.fun=t,this.array=e}function f(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];C.push(new l(t,e)),1!==C.length||I||A(c)},l.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){"use strict";var i=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function g(t){try{s(i.next(t))}catch(t){o(t)}}function A(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,A)}s((i=i.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,i,r,o,g={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function A(o){return function(A){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,i=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!(r=(r=g.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){g=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){g.label=o[1];break}if(6===o[0]&&g.label<r[1]){g.label=r[1],r=o;break}if(r&&g.label<r[2]){g.label=r[2],g.ops.push(o);break}r[2]&&g.ops.pop(),g.trys.pop();continue}o=e.call(t,g)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,A])}}},o=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return i(void 0,void 0,void 0,(function(){var e,n,i,g,A,s,C,I;return r(this,(function(r){switch(r.label){case 0:return window.ActiveXObject||"ActiveXObject"in window?[2]:(e=t.processing.render.layer,n=t.processing.render.g,i=3*(t.processing.render.layer.offsetWidth||parseInt(getComputedStyle(t.processing.render.layer).width)),g=3*(t.processing.render.layer.offsetHeight||parseInt(getComputedStyle(t.processing.render.layer).height)),e.style.visibility="hidden",(A=o(t.processing.points,t.processing.lines,t.processing.doors,t.processing.columns,t.processing.cases,t.processing.bayCases,t.processing.slideDoors,t.processing.groundCases,t.processing.furnFlues,t.processing.furnColumns)).length?[4,Promise.all(A.map((function(t){var e=t.ele;return new Promise((function(t){return e.nextTick(t)}))})))]:[2]);case 1:return r.sent(),s=e.querySelector(".sign"),[4,t.hideSign()];case 2:return r.sent(),[4,t.screenshot({width:i,height:g,bgColor:"rgba(0,0,0,0)",padding:t.padding,showGauge:!1,lineWidth:2,showDire:!1,showTags:!1})];case 3:for(C=r.sent().file,e.style.backgroundImage="url("+URL.createObjectURL(C)+")",I=0;I<n.children.length;I++)n.children[I]!==s&&n.removeChild(n.children[I--]);return[4,t.showSign()];case 4:return r.sent(),s.style.display="block",e.style.visibility="visible",[2]}}))}))}},function(t,e,n){"use strict";var i=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function g(t){try{s(i.next(t))}catch(t){o(t)}}function A(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,A)}s((i=i.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,i,r,o,g={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function A(o){return function(A){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,i=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!(r=(r=g.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){g=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){g.label=o[1];break}if(6===o[0]&&g.label<r[1]){g.label=r[1],r=o;break}if(r&&g.label<r[2]){g.label=r[2],g.ops.push(o);break}r[2]&&g.ops.pop(),g.trys.pop();continue}o=e.call(t,g)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,A])}}},o=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var g=n(156),A=function(t,e){return i(void 0,void 0,void 0,(function(){var n,i,g,A,s,C,I,a,u,c,l,f;return r(this,(function(r){switch(r.label){case 0:return n=t.processing,i=n.doors,g=n.slideDoors,A=n.groundCases,s=n.cases,C=n.points,I=n.taggings,a=n.bayCases,u=o(n.furnFlues,n.furnColumns,n.columns),c=o(n.lines),l=o(s,i),(f=[]).concat(I.map((function(t){var n=3*e;return t.ele.fontSize=n<12?12:n,new Promise((function(e){return t.ele.nextTick(e)}))}))),f.concat(u.map((function(t){return t.ele.width=.33*e,new Promise((function(e){return t.ele.nextTick(e)}))}))),f.concat(g.map((function(t){return t.ele.foorWidth=2*e/(t.ele.attachment.border?1:2),t.ele.within=e/2/(t.ele.attachment.border?1:2),new Promise((function(e){return t.ele.nextTick(e)}))}))),f.concat(s.map((function(t){return t.ele.width=e/2*(t.ele.attachment.border?1:2),t.ele.stamWidth=.166*e/(t.ele.attachment.border?1:2),new Promise((function(e){return t.ele.nextTick(e)}))}))),f.concat(c.map((function(t){return t.ele.width=e,new Promise((function(e){return t.ele.nextTick(e)}))}))),f.concat(a.map((function(t){return t.ele.width=.33*e/(t.ele.attachment.border?1:2),new Promise((function(e){return t.ele.nextTick(e)}))}))),f.concat(A.map((function(t){return t.ele.width=e/2*(t.ele.attachment.border?1:2),new Promise((function(e){return t.ele.nextTick(e)}))}))),f.concat(i.map((function(t){return t.ele.foorWidth=2*e/(t.ele.attachment.border?1:2),t.ele.outWidth=.33*e/(t.ele.attachment.border?1:2),new Promise((function(e){return t.ele.nextTick(e)}))}))),f.concat(C.map((function(t){return t.ele.r1=e+1,t.ele.r=e+1,new Promise((function(e){return t.ele.nextTick(e)}))}))),f.concat(l.map((function(t){t.ele.linePoints[0].r1=e+1,t.ele.linePoints[0].r=e+1,t.ele.linePoints[1].r1=e+1,t.ele.linePoints[1].r=e+1}))),f.push(t.setDireAttrs({fontSize:2.6*e,r:16.6*e,border:e,right:6.3*e,top:6.3*e,ArgDire:5*e})),[4,Promise.all(f)];case 1:return r.sent(),[2]}}))}))};e.default=function(t){var e=t.screenshot;t.screenshot=function(n){var o=void 0===n?{}:n,s=o.width,C=void 0===s?2880:s,I=o.height,a=void 0===I?1620:I,u=o.bgColor,c=void 0===u?"rgba(0,0,0,0)":u,l=o.data,f=void 0===l?g.newToOld(t.getData(!0,!0)):l,h=o.padding,p=void 0===h?450:h,d=o.showGauge,y=void 0===d||d,v=o.lineWidth,m=void 0===v?10:v,b=o.showDire,x=void 0!==b&&b,w=o.showTags,P=void 0===w||w;return i(void 0,void 0,void 0,(function(){var n,i,o,g,s,I,u;return r(this,(function(r){switch(r.label){case 0:return n=t.processing.lines[0]?t.processing.lines[0].ele.width:3,t.processing.render.layer.style.opacity="0",i=t.direction.show,!t.direction.show&&x?t.showDire():x||t.hideDire(),o=t.processing.taggings[0]&&t.processing.taggings[0].ele.select,P&&!o&&t.processing.taggings.forEach((function(t){return t.ele.show=!0})),t.processing.attrs.forEach((function(e){t.processing[e].forEach((function(t){t.ele.select&&t.ele.changeSelect(!1)}))})),g=t.processing.points[0].ele.fillColor,[4,Promise.all(t.processing.points.map((function(t){var e=t.ele;return e.fillColor="rgba(0,0,0,0)",new Promise((function(t){return e.nextTick(t)}))})))];case 1:r.sent(),s=[].concat(t.processing.doors).concat(t.processing.groundCases).concat(t.processing.cases),u=0,r.label=2;case 2:return u<s.length?[4,Promise.all((s[u].ele.points||s[u].ele.linePoints).map((function(t){return t.fillColor="rgba(0,0,0,0)",new Promise((function(e){return t.nextTick(e)}))})))]:[3,5];case 3:r.sent(),r.label=4;case 4:return u++,[3,2];case 5:return[4,A(t,m)];case 6:return r.sent(),[4,t.setGaugeModel(1)];case 7:return r.sent(),[4,t.setDireAttrs({simple:!0})];case 8:return r.sent(),y?[4,t.setGaugeAttrs({minPX:Math.max(C,a),width:m/2,showBottom:!1,showRight:!1,padding:3.3*m})]:[3,11];case 9:return r.sent(),[4,new Promise((function(t){return setTimeout(t,100)}))];case 10:r.sent(),r.label=11;case 11:return t.processing.attrs.forEach((function(e){t.processing[e].forEach((function(t){t.ele.update()}))})),[4,new Promise((function(t){return setTimeout(t,100)}))];case 12:return r.sent(),[4,e.call(this,{width:C,height:a,bgColor:c,data:f,spadding:p,showGauge:y,lineWidth:m})];case 13:return I=r.sent(),y?[4,t.setGaugeAttrs({minPX:50,width:1,showBottom:!0,showRight:!0,padding:10})]:[3,15];case 14:r.sent(),r.label=15;case 15:return[4,t.setDireAttrs({simple:!1})];case 16:r.sent(),u=0,r.label=17;case 17:return u<s.length?[4,Promise.all((s[u].ele.points||s[u].ele.linePoints).map((function(t){return t.fillColor=g,new Promise((function(e){return t.nextTick(e)}))})))]:[3,20];case 18:r.sent(),r.label=19;case 19:return u++,[3,17];case 20:return[4,A(t,n)];case 21:return r.sent(),[4,t.setGaugeModel(0)];case 22:return r.sent(),t.processing.points.forEach((function(t){return t.ele.fillColor=g})),i?[4,t.showDire()]:[3,24];case 23:return r.sent(),[3,26];case 24:return[4,t.hideDire()];case 25:r.sent(),r.label=26;case 26:return o?t.processing.taggings.forEach((function(t){return t.ele.show=!0})):t.processing.taggings.forEach((function(t){return t.ele.show=!1})),t.processing.render.layer.style.opacity="1",[2,I]}}))}))}}},function(t,e,n){"use strict";var i=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],g=0,A=o.length;g<A;g++,r++)i[r]=o[g];return i};Object.defineProperty(e,"__esModule",{value:!0});var r=n(10);e.moreData=function(t,e){t=JSON.parse(JSON.stringify(t)),e=JSON.parse(JSON.stringify(e));var n=Math.max(Math.max.apply(Math,t["vertex-xy"].map((function(t){return t.id}))),Math.max.apply(Math,e["vertex-xy"].map((function(t){return t.id}))))||1,r=Math.max(Math.max.apply(Math,t.segment.map((function(t){return t.id}))),Math.max.apply(Math,e.segment.map((function(t){return t.id}))))||1,o=Math.max(Math.max.apply(Math,t.block.map((function(t){return t.id}))),Math.max.apply(Math,e.block.map((function(t){return t.id}))))||1,g=Math.max(Math.max.apply(Math,t["vertex-z"].map((function(t){return t.id}))),Math.max.apply(Math,e["vertex-z"].map((function(t){return t.id}))))||1;return e["vertex-xy"].forEach((function(t){var i=t.id,r=++n;e.segment.forEach((function(t){t.a===i&&(t.a=r),t.b===i&&(t.b=r)})),e.block.forEach((function(t){for(var e=0;e<t.ground.length;e++)t.ground[e]===i&&(t.ground[e]=r)})),t.id=r})),e.segment.forEach((function(t){var n=t.id,i=++r;e.block.forEach((function(t){for(var e=0;e<t.wall.length;e++)t.wall[e]===n&&(t.wall[e]=i)})),e.hole.forEach((function(t){for(var e=0;e<t.wall.length;e++)t.wall[e]===n&&(t.wall[e]=i)})),e.window.concat(e.bayCase).concat(e.groundCase).concat(e.column).concat(e.door).concat(e.slideDoor).concat(e.openSpace).forEach((function(t){t.line===n&&(t.line=i)})),t.id=i})),e.block.forEach((function(t){var n=t.id,i=++o;e.hole.forEach((function(t){t.inside===n&&(t.inside=i)})),e.furnFlue.concat(e.furnColumn).forEach((function(t){t.roomId===n&&(t.roomId=i)})),t.id=i})),e["vertex-z"].forEach((function(t){var n=t.id,i=++g;e.block.forEach((function(t){t.top===n&&(t.top=i),t.bottom===n&&(t.bottom=i)})),t.id=i})),{"vertex-xy":i(t["vertex-xy"],e["vertex-xy"]),block:i(t.block,e.block),surplus:[],"vertex-z":i(t["vertex-z"],e["vertex-z"]),segment:i(t.segment,e.segment),hole:i(t.hole,e.hole),window:i(t.window,e.window),openSpace:i(t.openSpace,e.openSpace),door:i(t.door,e.door),column:i(t.column,e.column),slideDoor:i(t.slideDoor,e.slideDoor),groundCase:i(t.groundCase,e.groundCase),bayCase:i(t.bayCase,e.bayCase),furnColumn:i(t.furnColumn,e.furnColumn),furnFlue:i(t.furnFlue,e.furnFlue),tagging:i(t.tagging,e.tagging),dire:t.dire||e.dire}},e.translateData=function(t,e){return(t=JSON.parse(JSON.stringify(t)))["vertex-xy"].forEach((function(t){t.x-=e.x,t.y-=e.y})),t.openSpace.forEach((function(t){t.pos[0]-=e.x,t.pos[1]-=e.y,t.pos[2]-=e.x,t.pos[3]-=e.y})),t.clip&&t.clip.forEach((function(t){t.forEach((function(t){t.x-=e.x,t.y-=e.y}))})),t},e.rotatePoint=function(t,e,n){var i=t.x-n.x,r=t.y-n.y,o=Math.cos(e)*i-Math.sin(e)*r,g=Math.sin(e)*i+Math.cos(e)*r;return{x:o+n.x,y:g+n.y}},e.rotateData=function(t,n,i){return(t=JSON.parse(JSON.stringify(t)))["vertex-xy"].forEach((function(t){var r=e.rotatePoint(t,n,i);t.x=r.x,t.y=r.y})),t.clip&&t.clip.forEach((function(t){t.forEach((function(t){var r=e.rotatePoint(t,n,i);t.x=r.x,t.y=r.y}))})),t.openSpace.forEach((function(t){var r=e.rotatePoint({x:t.pos[0],y:t.pos[1]},n,i),o=e.rotatePoint({x:t.pos[2],y:t.pos[3]},n,i);t.pos[0]=r.x,t.pos[1]=r.y,t.pos[2]=o.x,t.pos[3]=o.y})),t},e.openSpaceToLine=function(t){return{points:[{x:t.pos[0],y:t.pos[1]},{x:t.pos[2],y:t.pos[3]}]}},e.dataToGeo=function(t){return t.block[0].ground.map((function(e){return t["vertex-xy"].find((function(t){return t.id===e}))}))},e.joinData=function(t,n,i,o){var g,A=e.dataToGeo(t),s=e.openSpaceToLine(t.openSpace[i]),C=r.lineCenter(s),I=[],a={x:0,y:0},u=r.lineCenter(s),c=r.lineCenter(e.openSpaceToLine(n.openSpace[o]));a.x=c.x-u.x,a.y=c.y-u.y,n=e.translateData(n,a);var l=r.getAngle(e.openSpaceToLine(n.openSpace[o]),s);n=e.rotateData(n,l,C),I.push(l);var f=e.dataToGeo(n),h=r.faceClip(f,A),p=h.reduce((function(t,e){return t+r.faceArea(e)}),0);g=h;var d=e.rotateData(n,Math.PI,C),y=e.dataToGeo(d),v=r.faceClip(y,A);v.reduce((function(t,e){return t+r.faceArea(e)}),0)<p&&(n=d,I.push(Math.PI),g=v);var m=e.moreData(t,n);return g=t.clip?t.clip.concat(g):g,m.clip=n.clip?n.clip.concat(g):g,console.log(m),{data:m,transformData:n,translate:a,rotateZ:I,center:C}},window.joinData=e.joinData}]);
|