UNPKG

react-floorplanner

Version:

react-floorplanner is a React Component for plans design. Draw a 2D floorplan and navigate it in 3D mode.

16 lines 821 kB
webpackJsonp([0],[,,,function(e,t,n){"use strict";e.exports=function(e,t,n,o,r,a,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,a,i,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";const o={white:"#FFF",black:"#000"};t.a=o;t.b={500:{red:"#F44336",pink:"#E91E63",purple:"#9C27B0",deep_purple:"#673AB7",indigo:"#3F51B5",blue:"#2196F3",light_blue:"#03A9F4",cyan:"#00BCD4",teal:"#009688",green:"#4CAF50",light_green:"#8BC34A",lime:"#CDDC39",yellow:"#FFEB3B",amber:"#FFC107",orange:"#FF9800",deep_orange:"#FF5722",brown:"#795548",grey:"#9E9E9E",blue_grey:"#607D8B"}};const r={main:"#28292D",alt:"#2E2F33",icon:"#C2C2C2",border:"1px solid #555",text_main:o.white,text_alt:"#EBEBEB"};t.c=r;t.d={main:"#1CA6FC",alt:"#005FAF",icon:"#1CA6FC",border:"1px solid #FFF"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.NEW_PROJECT="NEW_PROJECT";t.LOAD_PROJECT="LOAD_PROJECT";t.SAVE_PROJECT="SAVE_PROJECT";t.OPEN_CATALOG="OPEN_CATALOG";t.SELECT_TOOL_EDIT="SELECT_TOOL_EDIT";t.UNSELECT_ALL="UNSELECT_ALL";t.SET_PROPERTIES="SET_PROPERTIES";t.SET_ITEMS_ATTRIBUTES="SET_ITEMS_ATTRIBUTES";t.SET_LINES_ATTRIBUTES="SET_LINES_ATTRIBUTES";t.SET_HOLES_ATTRIBUTES="SET_HOLES_ATTRIBUTES";t.REMOVE="REMOVE";t.UNDO="UNDO";t.ROLLBACK="ROLLBACK";t.SET_PROJECT_PROPERTIES="SET_PROJECT_PROPERTIES";t.OPEN_PROJECT_CONFIGURATOR="OPEN_PROJECT_CONFIGURATOR";t.INIT_CATALOG="INIT_CATALOG";t.UPDATE_MOUSE_COORDS="UPDATE_MOUSE_COORDS";t.UPDATE_ZOOM_SCALE="UPDATE_ZOOM_SCALE";t.TOGGLE_SNAP="TOGGLE_SNAP";t.CHANGE_CATALOG_PAGE="CHANGE_CATALOG_PAGE";t.GO_BACK_TO_CATALOG_PAGE="GO_BACK_TO_CATALOG_PAGE";t.THROW_ERROR="THROW_ERROR";t.THROW_WARNING="THROW_WARNING";t.COPY_PROPERTIES="COPY_PROPERTIES";t.PASTE_PROPERTIES="PASTE_PROPERTIES";t.PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY="PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY";t.SELECT_TOOL_ZOOM_IN="SELECT_TOOL_ZOOM_IN";t.SELECT_TOOL_ZOOM_OUT="SELECT_TOOL_ZOOM_OUT";t.SELECT_TOOL_PAN="SELECT_TOOL_PAN";t.UPDATE_2D_CAMERA="UPDATE_2D_CAMERA";t.SELECT_TOOL_3D_VIEW="SELECT_TOOL_3D_VIEW";t.SELECT_TOOL_3D_FIRST_PERSON="SELECT_TOOL_3D_FIRST_PERSON";t.SELECT_TOOL_DRAWING_ITEM="SELECT_TOOL_DRAWING_ITEM";t.UPDATE_DRAWING_ITEM="UPDATE_DRAWING_ITEM";t.END_DRAWING_ITEM="END_DRAWING_ITEM";t.BEGIN_DRAGGING_ITEM="BEGIN_DRAGGING_ITEM";t.UPDATE_DRAGGING_ITEM="UPDATE_DRAGGING_ITEM";t.END_DRAGGING_ITEM="END_DRAGGING_ITEM";t.BEGIN_ROTATING_ITEM="BEGIN_ROTATING_ITEM";t.UPDATE_ROTATING_ITEM="UPDATE_ROTATING_ITEM";t.END_ROTATING_ITEM="END_ROTATING_ITEM";t.SELECT_HOLE="SELECT_HOLE";t.SELECT_AREA="SELECT_AREA";t.SELECT_ITEM="SELECT_ITEM";t.SELECT_LINE="SELECT_LINE";t.SELECT_TOOL_DRAWING_LINE="SELECT_TOOL_DRAWING_LINE";t.BEGIN_DRAWING_LINE="BEGIN_DRAWING_LINE";t.UPDATE_DRAWING_LINE="UPDATE_DRAWING_LINE";t.END_DRAWING_LINE="END_DRAWING_LINE";t.SELECT_TOOL_DRAWING_HOLE="SELECT_TOOL_DRAWING_HOLE";t.UPDATE_DRAWING_HOLE="UPDATE_DRAWING_HOLE";t.END_DRAWING_HOLE="END_DRAWING_HOLE";t.BEGIN_DRAGGING_LINE="BEGIN_DRAGGING_LINE";t.UPDATE_DRAGGING_LINE="UPDATE_DRAGGING_LINE";t.END_DRAGGING_LINE="END_DRAGGING_LINE";t.SELECT_TOOL_UPLOAD_IMAGE="SELECT_TOOL_UPLOAD_IMAGE";t.BEGIN_UPLOADING_IMAGE="BEGIN_UPLOADING_IMAGE";t.END_UPLOADING_IMAGE="END_UPLOADING_IMAGE";t.BEGIN_FITTING_IMAGE="BEGIN_FITTING_IMAGE";t.END_FITTING_IMAGE="END_FITTING_IMAGE";t.BEGIN_DRAGGING_HOLE="BEGIN_DRAGGING_HOLE";t.UPDATE_DRAGGING_HOLE="UPDATE_DRAGGING_HOLE";t.END_DRAGGING_HOLE="END_DRAGGING_HOLE";t.BEGIN_DRAGGING_VERTEX="BEGIN_DRAGGING_VERTEX";t.UPDATE_DRAGGING_VERTEX="UPDATE_DRAGGING_VERTEX";t.END_DRAGGING_VERTEX="END_DRAGGING_VERTEX";t.SET_LAYER_PROPERTIES="SET_LAYER_PROPERTIES";t.ADD_LAYER="ADD_LAYER";t.SELECT_LAYER="SELECT_LAYER";t.REMOVE_LAYER="REMOVE_LAYER";const o={NEW_PROJECT:"NEW_PROJECT",LOAD_PROJECT:"LOAD_PROJECT",SAVE_PROJECT:"SAVE_PROJECT",OPEN_CATALOG:"OPEN_CATALOG",SELECT_TOOL_EDIT:"SELECT_TOOL_EDIT",UNSELECT_ALL:"UNSELECT_ALL",SET_PROPERTIES:"SET_PROPERTIES",SET_ITEMS_ATTRIBUTES:"SET_ITEMS_ATTRIBUTES",SET_LINES_ATTRIBUTES:"SET_LINES_ATTRIBUTES",SET_HOLES_ATTRIBUTES:"SET_HOLES_ATTRIBUTES",REMOVE:"REMOVE",UNDO:"UNDO",ROLLBACK:"ROLLBACK",SET_PROJECT_PROPERTIES:"SET_PROJECT_PROPERTIES",OPEN_PROJECT_CONFIGURATOR:"OPEN_PROJECT_CONFIGURATOR",INIT_CATALOG:"INIT_CATALOG",UPDATE_MOUSE_COORDS:"UPDATE_MOUSE_COORDS",UPDATE_ZOOM_SCALE:"UPDATE_ZOOM_SCALE",TOGGLE_SNAP:"TOGGLE_SNAP",CHANGE_CATALOG_PAGE:"CHANGE_CATALOG_PAGE",GO_BACK_TO_CATALOG_PAGE:"GO_BACK_TO_CATALOG_PAGE",THROW_ERROR:"THROW_ERROR",THROW_WARNING:"THROW_WARNING",COPY_PROPERTIES:"COPY_PROPERTIES",PASTE_PROPERTIES:"PASTE_PROPERTIES",PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY:"PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY"};t.PROJECT_ACTIONS=o;const r={SELECT_TOOL_ZOOM_IN:"SELECT_TOOL_ZOOM_IN",SELECT_TOOL_ZOOM_OUT:"SELECT_TOOL_ZOOM_OUT",SELECT_TOOL_PAN:"SELECT_TOOL_PAN",UPDATE_2D_CAMERA:"UPDATE_2D_CAMERA"};t.VIEWER2D_ACTIONS=r;const a={SELECT_TOOL_3D_VIEW:"SELECT_TOOL_3D_VIEW",SELECT_TOOL_3D_FIRST_PERSON:"SELECT_TOOL_3D_FIRST_PERSON"};t.VIEWER3D_ACTIONS=a;const i={SELECT_ITEM:"SELECT_ITEM",SELECT_TOOL_DRAWING_ITEM:"SELECT_TOOL_DRAWING_ITEM",UPDATE_DRAWING_ITEM:"UPDATE_DRAWING_ITEM",END_DRAWING_ITEM:"END_DRAWING_ITEM",BEGIN_DRAGGING_ITEM:"BEGIN_DRAGGING_ITEM",UPDATE_DRAGGING_ITEM:"UPDATE_DRAGGING_ITEM",END_DRAGGING_ITEM:"END_DRAGGING_ITEM",BEGIN_ROTATING_ITEM:"BEGIN_ROTATING_ITEM",UPDATE_ROTATING_ITEM:"UPDATE_ROTATING_ITEM",END_ROTATING_ITEM:"END_ROTATING_ITEM"};t.ITEMS_ACTIONS=i;const s={SELECT_HOLE:"SELECT_HOLE",SELECT_TOOL_DRAWING_HOLE:"SELECT_TOOL_DRAWING_HOLE",UPDATE_DRAWING_HOLE:"UPDATE_DRAWING_HOLE",END_DRAWING_HOLE:"END_DRAWING_HOLE",BEGIN_DRAGGING_HOLE:"BEGIN_DRAGGING_HOLE",UPDATE_DRAGGING_HOLE:"UPDATE_DRAGGING_HOLE",END_DRAGGING_HOLE:"END_DRAGGING_HOLE"};t.HOLE_ACTIONS=s;const l={SELECT_LINE:"SELECT_LINE",SELECT_TOOL_DRAWING_LINE:"SELECT_TOOL_DRAWING_LINE",BEGIN_DRAWING_LINE:"BEGIN_DRAWING_LINE",UPDATE_DRAWING_LINE:"UPDATE_DRAWING_LINE",END_DRAWING_LINE:"END_DRAWING_LINE",BEGIN_DRAGGING_LINE:"BEGIN_DRAGGING_LINE",UPDATE_DRAGGING_LINE:"UPDATE_DRAGGING_LINE",END_DRAGGING_LINE:"END_DRAGGING_LINE"};t.LINE_ACTIONS=l;const c={SELECT_AREA:"SELECT_AREA"};t.AREA_ACTIONS=c;const u={ADD_LAYER:"ADD_LAYER",SET_LAYER_PROPERTIES:"SET_LAYER_PROPERTIES",SELECT_LAYER:"SELECT_LAYER",REMOVE_LAYER:"REMOVE_LAYER"};t.SCENE_ACTIONS=u;const d={BEGIN_DRAGGING_VERTEX:"BEGIN_DRAGGING_VERTEX",UPDATE_DRAGGING_VERTEX:"UPDATE_DRAGGING_VERTEX",END_DRAGGING_VERTEX:"END_DRAGGING_VERTEX"};t.VERTEX_ACTIONS=d;t.MODE_IDLE="MODE_IDLE";t.MODE_2D_ZOOM_IN="MODE_2D_ZOOM_IN";t.MODE_2D_ZOOM_OUT="MODE_2D_ZOOM_OUT";t.MODE_2D_PAN="MODE_2D_PAN";t.MODE_3D_VIEW="MODE_3D_VIEW";t.MODE_3D_FIRST_PERSON="MODE_3D_FIRST_PERSON";t.MODE_WAITING_DRAWING_LINE="MODE_WAITING_DRAWING_LINE";t.MODE_DRAGGING_LINE="MODE_DRAGGING_LINE";t.MODE_DRAGGING_VERTEX="MODE_DRAGGING_VERTEX";t.MODE_DRAGGING_ITEM="MODE_DRAGGING_ITEM";t.MODE_DRAGGING_HOLE="MODE_DRAGGING_HOLE";t.MODE_DRAWING_LINE="MODE_DRAWING_LINE";t.MODE_DRAWING_HOLE="MODE_DRAWING_HOLE";t.MODE_DRAWING_ITEM="MODE_DRAWING_ITEM";t.MODE_ROTATING_ITEM="MODE_ROTATING_ITEM";t.MODE_UPLOADING_IMAGE="MODE_UPLOADING_IMAGE";t.MODE_FITTING_IMAGE="MODE_FITTING_IMAGE";t.MODE_VIEWING_CATALOG="MODE_VIEWING_CATALOG";t.MODE_CONFIGURING_PROJECT="MODE_CONFIGURING_PROJECT";const p=["MODE_IDLE","MODE_2D_ZOOM_IN","MODE_2D_ZOOM_OUT","MODE_2D_PAN","MODE_WAITING_DRAWING_LINE","MODE_DRAWING_LINE","MODE_DRAWING_HOLE","MODE_DRAWING_ITEM","MODE_DRAGGING_LINE","MODE_DRAGGING_VERTEX","MODE_DRAGGING_ITEM","MODE_DRAGGING_HOLE","MODE_FITTING_IMAGE","MODE_UPLOADING_IMAGE","MODE_ROTATING_ITEM"];t.MODE_SNAPPING=p;t.UNIT_MILLIMETER="mm";t.UNIT_CENTIMETER="cm";t.UNIT_METER="m";t.UNIT_INCH="in";t.UNIT_FOOT="ft";t.UNIT_MILE="mi";const h=["mm","cm","m","in","ft","mi"];t.UNITS_LENGTH=h;t.EPSILON=1e-6},function(e,t,n){"use strict";var o=n(17);e.exports=o},function(e,t,n){"use strict";e.exports=function(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),o=Object.prototype.hasOwnProperty,r=1;r<arguments.length;r++){var a=arguments[r];if(null!=a){var i=Object(a);for(var s in i)o.call(i,s)&&(n[s]=i[s])}}return n}},,function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(2)),s=function(e,t){var n=e.children,o=e.color,i=e.size,s=e.style,l=e.width,c=e.height,u=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["children","color","size","style","width","height"]),d=t.reactIconBase,p=void 0===d?{}:d,h=i||p.size||"1em";return a.default.createElement("svg",r({children:n,fill:"currentColor",preserveAspectRatio:"xMidYMid meet",height:c||h,width:l||h},p,u,{style:r({verticalAlign:"middle",color:o||p.color},p.style||{},s)}))};s.propTypes={color:i.default.string,size:i.default.oneOfType([i.default.string,i.default.number]),width:i.default.oneOfType([i.default.string,i.default.number]),height:i.default.oneOfType([i.default.string,i.default.number]),style:i.default.object},s.contextTypes={reactIconBase:i.default.shape(s.propTypes)},t.default=s,e.exports=t.default},function(e,t,n){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen,isInWorker:!o};e.exports=r},function(e,t,n){"use strict";function o(e){return e?e.nodeType===G?e.documentElement:e.firstChild:null}function r(e){var t=o(e);return t&&B.getID(t)}function a(e){return e&&e.getAttribute&&e.getAttribute(C)||""}function i(e,t){if(e){a(e)!==t&&q(!1);var n=B.findReactContainerForID(t);if(n&&T(n,e))return!0}return!1}function s(e){var t=S[e];if(!t||!i(t,e))return!1;N=t}function l(e,t,n,o,r,a){m.useCreateElement&&(a=_({},a),n.nodeType===G?a[k]=n:a[k]=n.ownerDocument);var i=M.mountComponent(e,t,o,a);e._renderedComponent._topLevelWrapper=e,B._mountImageIntoNode(i,n,r,o)}function c(e,t,n,o,r){var a=E.ReactReconcileTransaction.getPooled(o);a.perform(l,null,e,t,n,a,o,r),E.ReactReconcileTransaction.release(a)}function u(e,t){for(M.unmountComponent(e),t.nodeType===G&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function d(e){var t=r(e);return!!t&&t!==g.getReactRootIDFromNodeID(t)}var p=n(31),h=n(50),m=(n(18),n(121)),f=n(12),y=n(122),g=n(32),w=n(38),x=n(124),v=n(15),M=n(25),b=n(70),E=n(16),_=n(7),O=n(39),T=n(125),I=n(72),q=n(3),P=n(48),D=n(74),C=(n(75),n(6),p.ID_ATTRIBUTE_NAME),S={},G=9,k="__ReactMount_ownerDocument$"+Math.random().toString(36).slice(2),L={},A={},R=[],N=null,j=function(){};j.prototype.isReactComponent={},j.prototype.render=function(){return this.props};var B={TopLevelWrapper:j,_instancesByReactRootID:L,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,o){return B.scrollMonitor(n,function(){b.enqueueElementInternal(e,t),o&&b.enqueueCallbackInternal(e,o)}),e},_registerComponent:function(e,t){(!t||1!==t.nodeType&&t.nodeType!==G&&11!==t.nodeType)&&q(!1),h.ensureScrollValueMonitoring();var n=B.registerContainer(t);return L[n]=e,n},_renderNewRootComponent:function(e,t,n,o){var r=I(e,null),a=B._registerComponent(r,t);return E.batchedUpdates(c,r,a,t,n,o),r},renderSubtreeIntoContainer:function(e,t,n,o){return(null==e||null==e._reactInternalInstance)&&q(!1),B._renderSubtreeIntoContainer(e,t,n,o)},_renderSubtreeIntoContainer:function(e,t,n,i){f.isValidElement(t)||q(!1);var s=new f(j,null,null,null,null,null,t),l=L[r(n)];if(l){var c=l._currentElement.props;if(D(c,t)){var u=l._renderedComponent.getPublicInstance(),p=i&&function(){i.call(u)};return B._updateRootComponent(l,s,n,p),u}B.unmountComponentAtNode(n)}var h=o(n),m=h&&!!a(h),y=d(n),g=m&&!l&&!y,w=B._renderNewRootComponent(s,n,g,null!=e?e._reactInternalInstance._processChildContext(e._reactInternalInstance._context):O)._renderedComponent.getPublicInstance();return i&&i.call(w),w},render:function(e,t,n){return B._renderSubtreeIntoContainer(null,e,t,n)},registerContainer:function(e){var t=r(e);return t&&(t=g.getReactRootIDFromNodeID(t)),t||(t=g.createReactRootID()),A[t]=e,t},unmountComponentAtNode:function(e){(!e||1!==e.nodeType&&e.nodeType!==G&&11!==e.nodeType)&&q(!1);var t=r(e),n=L[t];if(!n){d(e);var o=a(e);o&&g.getReactRootIDFromNodeID(o);return!1}return E.batchedUpdates(u,n,e),delete L[t],delete A[t],!0},findReactContainerForID:function(e){var t=g.getReactRootIDFromNodeID(e),n=A[t];return n},findReactNodeByID:function(e){var t=B.findReactContainerForID(e);return B.findComponentRoot(t,e)},getFirstReactDOM:function(e){return function(e){for(;e&&e.parentNode!==e;e=e.parentNode)if(1===e.nodeType){var t=a(e);if(t){var n,o=g.getReactRootIDFromNodeID(t),r=e;do{if(n=a(r),null==(r=r.parentNode))return null}while(n!==o);if(r===A[o])return e}}return null}(e)},findComponentRoot:function(e,t){var n=R,o=0,r=function(e){N=null,g.traverseAncestors(e,s);var t=N;return N=null,t}(t)||e;for(n[0]=r.firstChild,n.length=1;o<n.length;){for(var a,i=n[o++];i;){var l=B.getID(i);l?t===l?a=i:g.isAncestorIDOf(l,t)&&(n.length=o=0,n.push(i.firstChild)):n.push(i.firstChild),i=i.nextSibling}if(a)return n.length=0,a}n.length=0,q(!1)},_mountImageIntoNode:function(e,t,n,r){if((!t||1!==t.nodeType&&t.nodeType!==G&&11!==t.nodeType)&&q(!1),n){var a=o(t);if(x.canReuseMarkup(e,a))return;var i=a.getAttribute(x.CHECKSUM_ATTR_NAME);a.removeAttribute(x.CHECKSUM_ATTR_NAME);var s=a.outerHTML;a.setAttribute(x.CHECKSUM_ATTR_NAME,i);var l=e,c=function(e,t){for(var n=Math.min(e.length,t.length),o=0;o<n;o++)if(e.charAt(o)!==t.charAt(o))return o;return e.length===t.length?-1:n}(l,s);l.substring(c-20,c+20),s.substring(c-20,c+20);t.nodeType===G&&q(!1)}if(t.nodeType===G&&q(!1),r.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);t.appendChild(e)}else P(t,e)},ownerDocumentContextKey:k,getReactRootID:r,getID:function(e){var t=a(e);if(t)if(S.hasOwnProperty(t)){var n=S[t];n!==e&&(i(n,t)&&q(!1),S[t]=e)}else S[t]=e;return t},setID:function(e,t){var n=a(e);n!==t&&delete S[n],e.setAttribute(C,t),S[t]=e},getNode:function(e){return S.hasOwnProperty(e)&&i(S[e],e)||(S[e]=B.findReactNodeByID(e)),S[e]},getNodeFromInstance:function(e){var t=w.get(e)._rootNodeID;return y.isNullComponentID(t)?null:(S.hasOwnProperty(t)&&i(S[t],t)||(S[t]=B.findReactNodeByID(t)),S[t])},isValid:i,purgeID:function(e){delete S[e]}};v.measureMethods(B,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),e.exports=B},function(e,t,n){"use strict";var o=n(18),r=n(7),a=(n(51),"function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103),i={key:!0,ref:!0,__self:!0,__source:!0},s=function(e,t,n,o,r,i,s){var l={$$typeof:a,type:e,key:t,ref:n,props:s,_owner:i};return l};s.createElement=function(e,t,n){var r,a={},l=null,c=null;if(null!=t){c=void 0===t.ref?null:t.ref,l=void 0===t.key?null:""+t.key,void 0===t.__self?null:t.__self,void 0===t.__source?null:t.__source;for(r in t)t.hasOwnProperty(r)&&!i.hasOwnProperty(r)&&(a[r]=t[r])}var u=arguments.length-2;if(1===u)a.children=n;else if(u>1){for(var d=Array(u),p=0;p<u;p++)d[p]=arguments[p+2];a.children=d}if(e&&e.defaultProps){var h=e.defaultProps;for(r in h)void 0===a[r]&&(a[r]=h[r])}return s(e,l,c,0,0,o.current,a)},s.createFactory=function(e){var t=s.createElement.bind(null,e);return t.type=e,t},s.cloneAndReplaceKey=function(e,t){return s(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},s.cloneAndReplaceProps=function(e,t){var n=s(e.type,e.key,e.ref,e._self,e._source,e._owner,t);return n},s.cloneElement=function(e,t,n){var a,l=r({},e.props),c=e.key,u=e.ref,d=(e._self,e._source,e._owner);if(null!=t){void 0!==t.ref&&(u=t.ref,d=o.current),void 0!==t.key&&(c=""+t.key);for(a in t)t.hasOwnProperty(a)&&!i.hasOwnProperty(a)&&(l[a]=t[a])}var p=arguments.length-2;if(1===p)l.children=n;else if(p>1){for(var h=Array(p),m=0;m<p;m++)h[m]=arguments[m+2];l.children=h}return s(e.type,c,u,0,0,d,l)},s.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},e.exports=s},function(e,t,n){"use strict";function o(e,t){return e.x===t.x?e.y-t.y:e.x-t.x}function r(e,t,n,o){let r=e-n,a=t-o;return Math.sqrt(r*r+a*a)}function a(e){return{a:0,b:1,c:-e}}function i(e){return{a:1,b:0,c:-e}}function s(e,t,n,o,r,a){let i=n-e,s=o-t,l=i*i+s*s,c=-1;0!=l&&(c=((r-e)*i+(a-t)*s)/l);let u,d;c<0?(u=e,d=t):c>1?(u=n,d=o):(u=e+c*i,d=t+c*s);let p=r-u,h=a-d;return Math.sqrt(p*p+h*h)}function l(e,t,n,o,r){return o+(r-o)*(e-t)/(n-t)}Object.defineProperty(t,"__esModule",{value:!0}),t.compareVertices=o,t.minVertex=function(e,t){return o(e,t)>0?t:e},t.maxVertex=function(e,t){return o(e,t)>0?e:t},t.orderVertices=function(e){return e.sort(o)},t.pointsDistance=r,t.verticesDistance=function(e,t){let{x:n,y:o}=e,{x:a,y:i}=t;return r(n,o,a,i)},t.horizontalLine=a,t.verticalLine=i,t.linePassingThroughTwoPoints=function(e,t,n,o){if(e===n&&t==o)throw new Error("Geometry error");return e===n?i(x):t===o?a(t):{a:t-o,b:n-e,c:o*e-n*t}},t.distancePointFromLine=function(e,t,n,o,r){return Object(c.fAbs)(e*o+t*r+n)/Math.sqrt(e*e+t*t)},t.closestPointFromLine=function(e,t,n,o,r){let a=e*e+t*t;return{x:(t*(t*o-e*r)-e*n)/a,y:(e*-t*o+e*r-t*n)/a}},t.intersectionFromTwoLines=function(e,t,n,o,r,a){let i=t*o-e*r;if(0===i)return;return{x:(n*r-t*a)/i,y:(e*a-n*o)/i}},t.intersectionFromTwoLineSegment=function(e,t,n,o){let{x:r,y:a}=e,{x:i,y:s}=t,{x:l,y:d}=n,{x:p,y:h}=o,m=(h-d)*(i-r)-(p-l)*(s-a),f=(p-l)*(a-d)-(h-d)*(r-l),y=(i-r)*(a-d)-(s-a)*(r-l);if(Object(c.fAbs)(m)<=u.EPSILON){if(Object(c.fAbs)(f)<=u.EPSILON&&Object(c.fAbs)(y)<=u.EPSILON){let r=(e,t)=>e.x===t.x?e.y-t.y:e.x-t.x,a=[e,t].sort(r),i=[n.toJS(),o.toJS()].sort(r),[s,l]=[a,i].sort((e,t)=>r(e[0],t[0]));return s[1].x===l[0].x?{type:l[0].y<=s[1].y?"colinear":"none"}:{type:l[0].x<=s[1].x?"colinear":"none"}}return{type:"parallel"}}var g=f/m,w=y/m;if(g>=0-u.EPSILON&&g<=1+u.EPSILON&&w>=0-u.EPSILON&&w<=1+u.EPSILON)return{type:"intersecting",point:{x:r+g*(i-r),y:a+g*(s-a)}};return{type:"none"}},t.distancePointFromLineSegment=s,t.isPointOnLineSegment=function(e,t,n,o,r,a,i=u.EPSILON){return s(e,t,n,o,r,a)<=i},t.closestPointFromLineSegment=function(e,t,n,o,r,a){if(e===n)return{x:e,y:a};if(t===o)return{x:r,y:t};let i=(o-t)/(n-e),s=t-i*e,l=-1/i,c=(a-l*r-s)/(i-l);return{x:c,y:i*c+s}},t.pointPositionOnLineSegment=function(e,t,n,o,a,i){let s=r(e,t,n,o),c=r(e,t,a,i)/s;return e>n&&(c=l(c,0,1,1,0)),c},t.mapRange=l,t.angleBetweenTwoPointsAndOrigin=function(e,t,n,o){return 180*-Math.atan2(t-o,n-e)/Math.PI},t.angleBetweenTwoPoints=function(e,t,n,o){return Math.atan2(o-t,n-e)},t.samePoints=function({x:e,y:t},{x:n,y:o}){return Object(c.fAbs)(e-n)<=u.EPSILON&&Object(c.fAbs)(t-o)<=u.EPSILON},t.extendLine=function(e,t,n,o,r,a=6){let i=Math.atan2(o-t,n-e);return{x:Object(c.toFixedFloat)(e+Math.cos(i)*r,a),y:Object(c.toFixedFloat)(t+Math.sin(i)*r,a)}},t.roundVertex=function(e,t=6){return e.set("x",Object(c.toFixedFloat)(e.get("x"),t)),e.set("y",Object(c.toFixedFloat)(e.get("y"),t)),e};var c=n(57),u=n(5)},function(e,t,n){"use strict";var o=n(46),r=n(63),a=n(108),i=n(109),s=n(110),l=n(244),c=n(245),u=n(246),d=n(64),p=n(248),h=n(111),m=n(84),f=n(36);n.d(t,"a",function(){return o.a}),n.d(t,"b",function(){return r.a}),n.d(t,"c",function(){return a.a}),n.d(t,"d",function(){return i.a}),n.d(t,"e",function(){return l.a}),n.d(t,"f",function(){return c.a}),n.d(t,"g",function(){return u.a}),n.d(t,"h",function(){return d.a}),n.d(t,"i",function(){return p.a}),n.d(t,"j",function(){return m.a}),n.d(t,"k",function(){return f.a}),t.l={Button:o.a,CancelButton:r.a,ContentContainer:a.a,ContentTitle:i.a,DeleteButton:s.a,FormBlock:l.a,FormColorInput:c.a,FormLabel:u.a,FormNumberInput:d.a,FormSelect:p.a,FormSlider:h.a,FormSubmitButton:m.a,FormTextInput:f.a}},function(e,t,n){"use strict";var o={enableMeasure:!1,storedMeasure:function(e,t,n){return n},measureMethods:function(e,t,n){},measure:function(e,t,n){return n},injection:{injectMeasure:function(e){o.storedMeasure=e}}};e.exports=o},function(e,t,n){"use strict";function o(){M.ReactReconcileTransaction&&w||m(!1)}function r(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=l.getPooled(),this.reconcileTransaction=M.ReactReconcileTransaction.getPooled(!1)}function a(e,t){return e._mountOrder-t._mountOrder}function i(e){var t=e.dirtyComponentsLength;t!==f.length&&m(!1),f.sort(a);for(var n=0;n<t;n++){var o=f[n],r=o._pendingCallbacks;if(o._pendingCallbacks=null,d.performUpdateIfNecessary(o,e.reconcileTransaction),r)for(var i=0;i<r.length;i++)e.callbackQueue.enqueue(r[i],o.getPublicInstance())}}function s(e){o(),w.isBatchingUpdates?f.push(e):w.batchedUpdates(s,e)}var l=n(71),c=n(21),u=n(15),d=n(25),p=n(52),h=n(7),m=n(3),f=[],y=l.getPooled(),g=!1,w=null,x=[{initialize:function(){this.dirtyComponentsLength=f.length},close:function(){this.dirtyComponentsLength!==f.length?(f.splice(0,this.dirtyComponentsLength),v()):f.length=0}},{initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}}];h(r.prototype,p.Mixin,{getTransactionWrappers:function(){return x},destructor:function(){this.dirtyComponentsLength=null,l.release(this.callbackQueue),this.callbackQueue=null,M.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return p.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),c.addPoolingTo(r);var v=function(){for(;f.length||g;){if(f.length){var e=r.getPooled();e.perform(i,null,e),r.release(e)}if(g){g=!1;var t=y;y=l.getPooled(),t.notifyAll(),l.release(t)}}},M={ReactReconcileTransaction:null,batchedUpdates:function(e,t,n,r,a,i){o(),w.batchedUpdates(e,t,n,r,a,i)},enqueueUpdate:s,flushBatchedUpdates:v=u.measure("ReactUpdates","flushBatchedUpdates",v),injection:{injectReconcileTransaction:function(e){e||m(!1),M.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e||m(!1),"function"!=typeof e.batchedUpdates&&m(!1),"boolean"!=typeof e.isBatchingUpdates&&m(!1),w=e}},asap:function(e,t){w.isBatchingUpdates||m(!1),y.enqueue(e,t),g=!0}};e.exports=M},function(e,t,n){"use strict";function o(e){return function(){return e}}function r(){}r.thatReturns=o,r.thatReturnsFalse=o(!1),r.thatReturnsTrue=o(!0),r.thatReturnsNull=o(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";e.exports={current:null}},function(e,t,n){"use strict";var o=n(47),r=o({bubbled:null,captured:null}),a={topLevelTypes:o({topAbort:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topVolumeChange:null,topWaiting:null,topWheel:null}),PropagationPhases:r};e.exports=a},function(e,t,n){"use strict";function o(e,t,n,o,a,i){return i=new r.List([i]),e.push(new p({x:t,y:n,radius:o,priority:a,related:i}))}Object.defineProperty(t,"__esModule",{value:!0}),t.nearestSnap=function(e,t,n,o){let r={point:o.get(s),line:o.get(l),"line-segment":o.get(c),grid:o.get(u)};return e.valueSeq().filter(e=>r[e.type]&&e.isNear(t,n,e.radius)).map(e=>({snap:e,point:e.nearestPoint(t,n)})).filter(({snap:{radius:e},point:{distance:t}})=>t<e).min(({snap:{priority:e},point:{distance:t}},{snap:{priority:n},point:{distance:o}})=>e===n?t<o?-1:1:e>n?-1:1)},t.addPointSnap=o,t.addLineSnap=function(e,t,n,i,s,l,c){return c=new r.List([c]),e.withMutations(e=>{if(e.some(e=>"line"===e.type&&t===e.a&&n===e.b&&i===e.c))return e;e.valueSeq().filter(e=>"line"===e.type).map(e=>a.intersectionFromTwoLines(e.a,e.b,e.c,t,n,i)).filter(e=>void 0!==e).forEach(({x:t,y:n})=>o(e,t,n,20,40)),e.push(new h({a:t,b:n,c:i,radius:s,priority:l,related:c}))})},t.addLineSegmentSnap=function(e,t,n,o,a,i,s,l){return l=new r.List([l]),e.push(new m({x1:t,y1:n,x2:o,y2:a,radius:i,priority:s,related:l}))},t.addGridSnap=function(e,t,n,o,a,i){return i=new r.List([i]),e.push(new f({x:t,y:n,radius:o,priority:a,related:i}))};var r=n(8),a=(n.n(r),n(13)),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const s="SNAP_POINT";t.SNAP_POINT=s;const l="SNAP_LINE";t.SNAP_LINE=l;const c="SNAP_SEGMENT";t.SNAP_SEGMENT=c;const u="SNAP_GRID";t.SNAP_GRID=u;const d=new r.Map({SNAP_POINT:!0,SNAP_LINE:!0,SNAP_SEGMENT:!0,SNAP_GRID:!1});t.SNAP_MASK=d;class p extends(Object(r.Record)({type:"point",x:-1,y:-1,radius:1,priority:1,related:new r.List})){nearestPoint(e,t){return{x:this.x,y:this.y,distance:a.pointsDistance(this.x,this.y,e,t)}}isNear(e,t,n){return 1+~(this.x-e)<n&&1+~(this.y-t)<n}}class h extends(Object(r.Record)({type:"line",a:-1,b:-1,c:-1,radius:1,priority:1,related:new r.List})){nearestPoint(e,t){return i({},a.closestPointFromLine(this.a,this.b,this.c,e,t),{distance:a.distancePointFromLine(this.a,this.b,this.c,e,t)})}isNear(e,t,n){return!0}}class m extends(Object(r.Record)({type:"line-segment",x1:-1,y1:-1,x2:-1,y2:-1,radius:1,priority:1,related:new r.List})){nearestPoint(e,t){return i({},a.closestPointFromLineSegment(this.x1,this.y1,this.x2,this.y2,e,t),{distance:a.distancePointFromLineSegment(this.x1,this.y1,this.x2,this.y2,e,t)})}isNear(e,t,n){return!0}}class f extends(Object(r.Record)({type:"grid",x:-1,y:-1,radius:1,priority:1,related:new r.List})){nearestPoint(e,t){return{x:this.x,y:this.y,distance:a.pointsDistance(this.x,this.y,e,t)}}isNear(e,t,n){return 1+~(this.x-e)<n&&1+~(this.y-t)<n}}},function(e,t,n){"use strict";var o=n(3),r=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},a=function(e){var t=this;e instanceof t||o(!1),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},i=r,s={addPoolingTo:function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||i,n.poolSize||(n.poolSize=10),n.release=a,n},oneArgumentPooler:r,twoArgumentPooler:function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},threeArgumentPooler:function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},fourArgumentPooler:function(e,t,n,o){var r=this;if(r.instancePool.length){var a=r.instancePool.pop();return r.call(a,e,t,n,o),a}return new r(e,t,n,o)},fiveArgumentPooler:function(e,t,n,o,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,o,r),i}return new a(e,t,n,o,r)}};e.exports=s},function(e,t,n){"use strict";e.exports=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null}},function(e,t,n){"use strict";const o={tableStyle:{width:"100%",borderSpacing:"2px 0",marginBottom:"2px"},firstTdStyle:{width:"6em",textTransform:"capitalize"}};t.a=o},function(e,t,n){"use strict";function o(e,t,n,o,r,a,s,l={}){let c;return e=e.withMutations(e=>{let u,d,p=x.a.acquireID();({layer:e,vertex:u}=i(e,n,o,"lines",p)),({layer:e,vertex:d}=i(e,r,a,"lines",p)),c=s.factoryElement(t,{id:p,name:v.a.generateName("lines",s.getIn(["elements",t,"info","title"])),vertices:new g.List([u.id,d.id]),type:t},l),e.setIn(["lines",p],c)}),{layer:e,line:c}}function r(e,t){let n=e.getIn(["lines",t]);return e=e.withMutations(e=>{c(e,"lines",t),n.holes.forEach(t=>y(e,t)),e.deleteIn(["lines",n.id]),n.vertices.forEach(t=>s(e,t,"lines",n.id))}),{layer:e,line:n}}function a(e,t,n,a,i,s,l,c,u){let d=[{x:n,y:a},{x:i,y:s}];return e=e.withMutations(e=>{let{lines:n,vertices:a}=e;n.forEach(t=>{let[n,i]=t.vertices.map(e=>a.get(e)).toArray(),s=M.samePoints(n,d[0])||M.samePoints(n,d[1])||M.samePoints(i,d[0])||M.samePoints(i,d[1]),c=M.intersectionFromTwoLineSegment(d[0],d[1],n,i);if("colinear"===c.type){u||(u=[]);let o=M.orderVertices(d);e.lines.get(t.id).holes.forEach(r=>{let a=e.holes.get(r),s=M.pointsDistance(n.x,n.y,i.x,i.y),l=Math.atan2(o[1].y-o[0].y,o[1].x-o[0].x),c=a.offset;o[1].x===t.vertices.get(1).x&&o[1].y===t.vertices(1).y&&(c=1-c);let d=s*c*Math.cos(l)+n.x,p=s*c*Math.sin(l)+n.y;u.push({hole:a,offsetPosition:{x:d,y:p}})}),r(e,t.id),d.push(n,i)}"intersecting"!==c.type||s||(!function(e,t,n,a,i){let s,l;e=e.withMutations(e=>{let c=e.getIn(["lines",t]),u=e.vertices.get(c.vertices.get(0)),d=e.vertices.get(c.vertices.get(1)),{x:p,y:h}=u,{x:m,y:y}=d;({line:s}=o(e,c.type,p,h,n,a,i,c.properties)),({line:l}=o(e,c.type,m,y,n,a,i,c.properties));let g=M.pointPositionOnLineSegment(p,h,m,y,n,a),w=M.minVertex(u,d);c.holes.forEach(t=>{let n=e.holes.get(t),o=n.offset;if(w.x===m&&w.y===y&&(g=1-g,o=1-n.offset),o<g){let t=o/g;w.x===m&&w.y===y&&(t=1-t),f(e,n.type,s.id,t,i,n.properties)}else{let t=(o-g)/(1-g);w.x===m&&w.y===y&&(t=1-t),f(e,n.type,l.id,t,i,n.properties)}}),r(e,t)}),new g.List([s,l])}(e,t.id,c.point.x,c.point.y,l),d.push(c.point))}),function(e,t,n,r,a,i){let s=(n=new g.List(n).sort(({x:e,y:t},{x:n,y:o})=>e===n?t-o:e-n)).zip(n.skip(1)).filterNot(([{x:e,y:t},{x:n,y:o}])=>e===n&&t===o),l=(new g.List).withMutations(n=>{e=e.withMutations(e=>{s.forEach(([{x:s,y:l},{x:c,y:u}])=>{let{line:d}=o(e,t,s,l,c,u,r,a);i&&i.forEach(t=>{let{x:n,y:o}=t.offsetPosition;if(M.isPointOnLineSegment(s,l,c,u,n,o)){let a=M.pointPositionOnLineSegment(s,l,c,u,n,o);a>=0&&a<=1&&f(e,t.hole.type,d.id,a,r,t.hole.properties)}}),n.push(d)})})})}(e,t,d,l,c,u)}),{layer:e}}function i(e,t,n,o,r){let a=e.vertices.find(e=>M.samePoints(e,{x:t,y:n}));return a=a?a.update(o,e=>e.push(r)):new w.Vertex({id:x.a.acquireID(),name:"Vertex",x:t,y:n,[o]:new g.List([r])}),e=e.setIn(["vertices",a.id],a),{layer:e,vertex:a}}function s(e,t,n,o){let r=e.vertices.get(t);return r=r.update(n,e=>{let t=e.findIndex(e=>o===e);return e.delete(t)}),e=r.areas.size||r.lines.size?e.setIn(["vertices",r.id],r):e.deleteIn(["vertices",r.id]),{layer:e,vertex:r}}function l(e,t){let n=e.getIn(["vertices",t]),o=e.vertices.filter(e=>e.id!==t&&M.samePoints(n,e));if(o.isEmpty())return e;let r,a,i;return r=e.vertices.withMutations(n=>{a=e.lines.withMutations(r=>{i=e.areas.withMutations(e=>{o.forEach(o=>{o.lines.forEach(e=>{let a=r.get(e);a=a.update("vertices",e=>e.map(e=>e===o.id?t:e)),r.set(e,a),n.updateIn([t,"lines"],t=>t.push(e))}),o.areas.forEach(r=>{let a=e.get(r);a=a.update("vertices",e=>e.map(e=>e===o.id?t:e)),e.set(r,a),n.updateIn([t,"areas"],e=>e.push(r))}),n.remove(o.id)})})})}),e.merge({vertices:r,lines:a,areas:i})}function c(e,t,n){return e.withMutations(e=>{let o=e.getIn(["selected",t]),r=(o=o.remove(o.indexOf(n))).some(e=>e===n);e.setIn(["selected",t],o),e.setIn([t,n,"selected"],r)})}function u(e,t,n,o){o=Object(g.fromJS)(o),e.mergeIn([t,n,"properties"],o)}function d(e,t,n,o){Object(g.fromJS)(o).forEach((o,r)=>{e.hasIn([t,n,"properties",r])&&e.mergeIn([t,n,"properties",r],o)})}function p(e,t,n){return e.withMutations(e=>{let o=e.selected;o.lines.forEach(o=>(function(e,t,n,o,r){let a=o.toJS(),{vertexOne:i,vertexTwo:s,lineLength:c}=a;delete a.vertexOne,delete a.vertexTwo,delete a.lineLength,e=l(e=e.mergeIn([t,n],Object(g.fromJS)(a)).mergeIn(["vertices",i.id],{x:i.x,y:i.y}).mergeIn(["vertices",s.id],{x:s.x,y:s.y}).mergeDeepIn([t,n,"misc"],new g.Map({_unitLength:c._unit})),i.id),i.x!=s.x&&i.y!=s.y&&(e=l(e,s.id)),m(e,r)})(e,"lines",o,t,n)),o.holes.forEach(n=>(function(e,t,n,o){let r=o.toJS(),{offsetA:a,offsetB:i,offset:s}=r;delete r.offsetA,delete r.offsetB,delete r.offset;let l=new g.Map({_unitA:a._unit,_unitB:i._unit});e.mergeIn([t,n],Object(g.fromJS)(r)).mergeDeepIn([t,n],new g.Map({offset:s,misc:l}))})(e,"holes",n,t)),o.items.forEach(n=>(function(e,t,n,o){o=Object(g.fromJS)(o),e.mergeIn([t,n],o)})(e,"items",n,t))})}function h(e,t,n){let o,r,a=e.length>>1,i=e[2*a-3]-n,s=e[2*a-2]-t,l=e[2*a-1]-n;if(0===s&&0===l)return!1;for(let c=0;c<a;c++){if(o=s,i=l,s=e[2*c]-t,l=e[2*c+1]-n,0===s&&0===l)return!1;i!==l&&(r=l>i)}let c=0;for(let u=0;u<a;u++){if(o=s,i=l,s=e[2*u]-t,l=e[2*u+1]-n,i<0&&l<0)continue;if(i>0&&l>0)continue;if(o<0&&s<0)continue;if(i===l&&Math.min(o,s)<0)return!0;if(i===l)continue;let a=o+(s-o)*-i/(l-i);if(0===a)return!1;a>0&&c++,0===i&&r&&l>i&&c--,0===i&&!r&&l<i&&c--,r=l>i}return 1==(1&c)}function m(e,t){let n,o=[],r={},a={};e.vertices.forEach(e=>{let t=o.push([e.x,e.y])-1;r[e.id]=t,a[t]=e.id}),n=e.lines.map(e=>e.vertices.map(e=>r[e]).toArray());let l=Object(b.default)(o,n).map(e=>e.map(e=>a[e]));l=l.map(t=>Object(b.isClockWiseOrder)(t.map(t=>e.vertices.get(t)))?t.reverse():t);let u=[];return e=e.withMutations(e=>{e.areas.forEach(t=>{l.some(e=>E(e,t.vertices))||function(e,t){let n=e.getIn(["areas",t]);e=e.withMutations(e=>{c(e,"areas",t),e.deleteIn(["areas",n.id]),n.vertices.forEach(t=>s(e,t,"areas",n.id))})}(e,t.id)}),l.forEach((n,o)=>{let r=e.areas.find(e=>E(e.vertices,n));if(r)u[o]=r.id,e.setIn(["areas",u[o],"holes"],new g.List);else{let r=n.map(t=>e.vertices.get(t)),{area:a}=function(e,t,n,o){let r;return e=e.withMutations(e=>{let a=x.a.acquireID(),s=n.map(t=>i(e,t.x,t.y,"areas",a).vertex.id);r=o.factoryElement(t,{id:a,name:v.a.generateName("areas",o.getIn(["elements",t,"info","title"])),type:t,prototype:"areas",vertices:s}),e.setIn(["areas",a],r)}),{layer:e,area:r}}(e,"area",r,t);u[o]=a.id}});let n,o,r=u.map(t=>{return{id:t,vertices:e.areas.get(t).vertices.map(t=>e.vertices.get(t))}});for(n=0;n<r.length;n++){let t=new g.List,a=r[n].vertices.flatten().toArray();for(o=0;o<r.length;o++)if(n!==o){h(a,r[o].vertices.get(0).get(0),r[o].vertices.get(0).get(1))&&(t=t.push(r[o].id))}e.setIn(["areas",r[n].id,"holes"],t)}u.forEach(t=>{let n=new Set,o=e.getIn(["areas",t,"holes"]);o.forEach(t=>{e.getIn(["areas",t,"holes"]).forEach(e=>{-1!==o.indexOf(e)&&n.add(e)})}),n.forEach(e=>{let t=o.indexOf(e);o=o.remove(t)}),e.setIn(["areas",t,"holes"],o)})}),{layer:e}}function f(e,t,n,o,r,a={}){let i;return e=e.withMutations(e=>{let s=x.a.acquireID();i=r.factoryElement(t,{id:s,name:v.a.generateName("holes",r.getIn(["elements",t,"info","title"])),type:t,offset:o,line:n},a),e.setIn(["holes",s],i),e.updateIn(["lines",n,"holes"],e=>e.push(s))}),{layer:e,hole:i}}function y(e,t){let n=e.getIn(["holes",t]);return e=e.withMutations(e=>{c(e,"holes",t),e.deleteIn(["holes",n.id]),e.updateIn(["lines",n.line,"holes"],e=>{let n=e.findIndex(e=>t===e);return e.remove(n)})}),{layer:e,hole:n}}t.c=o,t.j=function(e,t,n,o,r){let a,l=e.getIn(["lines",t]);return e=e.withMutations(e=>e.withMutations(e=>{let u=l.vertices.get(n);c(e,"vertices",u),s(e,u,"lines",l.id),({layer:e,vertex:a}=i(e,o,r,"lines",l.id)),l=l.setIn(["vertices",n],a.id),e.setIn(["lines",t],l)})),{layer:e,line:l,vertex:a}},t.i=r,t.d=a,t.f=l,t.k=function(e,t,n){return e.withMutations(e=>{e.setIn([t,n,"selected"],!0),e.updateIn(["selected",t],e=>e.push(n))})},t.n=c,t.m=function(e,t){return e.withMutations(e=>{let n=e.selected;n.lines.forEach(n=>u(e,"lines",n,t)),n.holes.forEach(n=>u(e,"holes",n,t)),n.areas.forEach(n=>u(e,"areas",n,t)),n.items.forEach(n=>u(e,"items",n,t))})},t.p=function(e,t){return e.withMutations(e=>{let n=e.selected;n.lines.forEach(n=>d(e,"lines",n,t)),n.holes.forEach(n=>d(e,"holes",n,t)),n.areas.forEach(n=>d(e,"areas",n,t)),n.items.forEach(n=>d(e,"items",n,t))})},t.l=p,t.o=function(e){return e.get("selected"),e.withMutations(e=>{e.selected.forEach((t,n)=>{t.forEach(t=>c(e,n,t))})})},t.e=m,t.a=f,t.g=y,t.b=function(e,t,n,o,r,a,i,s){let l;return e=e.withMutations(e=>{let c=x.a.acquireID();l=s.factoryElement(t,{id:c,name:v.a.generateName("items",s.getIn(["elements",t,"info","title"])),type:t,height:a,width:r,x:n,y:o,rotation:i}),e.setIn(["items",c],l)}),{layer:e,item:l}},t.h=function(e,t){let n=e.getIn(["items",t]);return e=e.withMutations(e=>{c(e,"items",t),e.deleteIn(["items",n.id])}),{layer:e,item:n}};var g=n(8),w=(n.n(g),n(42)),x=n(152),v=n(369),M=n(13),b=n(154);const E=(e,t)=>e.size===t.size&&e.isSuperset(t)&&e.isSubset(t)},function(e,t,n){"use strict";function o(){r.attachRefs(this,this._currentElement)}var r=n(261),a={mountComponent:function(e,t,n,r){var a=e.mountComponent(t,n,r);return e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(o,e),a},unmountComponent:function(e){r.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,t,n,a){var i=e._currentElement;if(t!==i||a!==e._context){var s=r.shouldUpdateRefs(i,t);s&&r.detachRefs(e,i),e.receiveComponent(t,n,a),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(o,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}};e.exports=a},function(e,t,n){"use strict";function o(e,t,n,o){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var r=this.constructor.Interface;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];s?this[a]=s(n):"target"===a?this.target=o:this[a]=n[a]}var l=null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue;this.isDefaultPrevented=l?i.thatReturnsTrue:i.thatReturnsFalse,this.isPropagationStopped=i.thatReturnsFalse}var r=n(21),a=n(7),i=n(17),s=(n(6),{type:null,target:null,currentTarget:i.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null});a(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=i.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=i.thatReturnsTrue)},persist:function(){this.isPersistent=i.thatReturnsTrue},isPersistent:i.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),o.Interface=s,o.augmentClass=function(e,t){var n=Object.create(this.prototype);a(n,e.prototype),e.prototype=n,e.prototype.constructor=e,e.Interface=a({},this.Interface,t),e.augmentClass=this.augmentClass,r.addPoolingTo(e,r.fourArgumentPooler)},r.addPoolingTo(o,r.fourArgumentPooler),e.exports=o},function(e,t){var n=Object.prototype.toString,o=RegExp("^"+String(n).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$");e.exports=o},function(e,t,n){"use strict";t.a=function(e,t,n){let o=new r.a;o.setTexturePath(n);let a=e;return new Promise((e,n)=>{o.load(a,n=>{n.preload();let o=new i.a;o.setMaterials(n),o.load(t,t=>e(t))})})};n(1);var o=n(472),r=n.n(o),a=n(473),i=n.n(a)},function(e,t,n){(function(e){function n(e,t){for(var n=0,o=e.length-1;o>=0;o--){var r=e[o];"."===r?e.splice(o,1):".."===r?(e.splice(o,1),n++):n&&(e.splice(o,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],o=0;o<e.length;o++)t(e[o],o,e)&&n.push(e[o]);return n}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a=function(e){return r.exec(e).slice(1)};t.resolve=function(){for(var t="",r=!1,a=arguments.length-1;a>=-1&&!r;a--){var i=a>=0?arguments[a]:e.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(t=i+"/"+t,r="/"===i.charAt(0))}return t=n(o(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===i(e,-1);return(e=n(o(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function o(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var r=o(e.split("/")),a=o(n.split("/")),i=Math.min(r.length,a.length),s=i,l=0;l<i;l++)if(r[l]!==a[l]){s=l;break}for(var c=[],l=s;l<r.length;l++)c.push("..");return(c=c.concat(a.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=a(e),n=t[0],o=t[1];return n||o?(o&&(o=o.substr(0,o.length-1)),n+o):"."},t.basename=function(e,t){var n=a(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){return a(e)[3]};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(t,n(474))},,function(e,t,n){"use strict";function o(e,t){return(e&t)===t}var r=n(3),a={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=a,n=e.Properties||{},i=e.DOMAttributeNamespaces||{},l=e.DOMAttributeNames||{},c=e.DOMPropertyNames||{},u=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var d in n){s.properties.hasOwnProperty(d)&&r(!1);var p=d.toLowerCase(),h=n[d],m={attributeName:p,attributeNamespace:null,propertyName:d,mutationMethod:null,mustUseAttribute:o(h,t.MUST_USE_ATTRIBUTE),mustUseProperty:o(h,t.MUST_USE_PROPERTY),hasSideEffects:o(h,t.HAS_SIDE_EFFECTS),hasBooleanValue:o(h,t.HAS_BOOLEAN_VALUE),hasNumericValue:o(h,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:o(h,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:o(h,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(m.mustUseAttribute&&m.mustUseProperty&&r(!1),!m.mustUseProperty&&m.hasSideEffects&&r(!1),m.hasBooleanValue+m.hasNumericValue+m.hasOverloadedBooleanValue<=1||r(!1),l.hasOwnProperty(d)){var f=l[d];m.attributeName=f}i.hasOwnProperty(d)&&(m.attributeNamespace=i[d]),c.hasOwnProperty(d)&&(m.propertyName=c[d]),u.hasOwnProperty(d)&&(m.mutationMethod=u[d]),s.properties[d]=m}}},i={},s={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){if((0,s._isCustomAttributeFunctions[t])(e))return!0}return!1},getDefaultValueForProperty:function(e,t){var n,o=i[e];return o||(i[e]=o={}),t in o||(n=document.createElement(e),o[t]=n[t]),o[t]},injection:a};e.exports=s},function(e,t,n){"use strict";function o(e,t){return e.charAt(t)===d||t===e.length}function r(e){return""===e||e.charAt(0)===d&&e.charAt(e.length-1)!==d}function a(e,t){return 0===t.indexOf(e)&&o(t,e.length)}function i(e,t){if(r(e)&&r(t)||u(!1),a(e,t)||u(!1),e===t)return e;var n;for(n=e.length+p;n<t.length&&!o(t,n);n++);return t.substr(0,n)}function s(e,t){var n=Math.min(e.length,t.length);if(0===n)return"";for(var a=0,i=0;i<=n;i++)if(o(e,i)&&o(t,i))a=i;else if(e.charAt(i)!==t.charAt(i))break;var s=e.substr(0,a);return r(s)||u(!1),s}function l(e,t,n,o,r,s){(e=e||"")===(t=t||"")&&u(!1);var l=a(t,e);l||a(e,t)||u(!1);for(var c=0,p=l?function(e){return e?e.substr(0,e.lastIndexOf(d)):""}:i,m=e;;m=p(m,t)){var f;if(r&&m===e||s&&m===t||(f=n(m,l,o)),!1===f||m===t)break;c++<h||u(!1)}}var c=n(123),u=n(3),d=".",p=d.length,h=1e4,m={createReactRootID:function(){return function(e){return d+e.toString(36)}(c.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===d&&e.length>1){var t=e.indexOf(d,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,o,r){var a=s(e,t);a!==e&&l(e,a,n,o,!1,!0),a!==t&&l(a,t,n,r,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(l("",e,t,n,!0,!1),l(e,"",t,n,!1,!0))},traverseTwoPhaseSkipTarget:function(e,t,n){e&&(l("",e,t,n,!0,!0),l(e,"",t,n,!0,!0))},traverseAncestors:function(e,t,n){l("",e,t,n,!0,!1)},getFirstCommonAncestorID:s,_getNextDescendantID:i,isAncestorIDOf:a,SEPARATOR:d};e.exports=m},function(e,t,n){var o=n(85);e.exports=function(e){return!(!e||!o[typeof e])}},,function(e,t,n){"use strict";var o=n(106),r=(n(150),n(42)),a=n(359),i=n(380),s=n(450),l=n(5),c=(n(4),n(157)),u=(n(89),n(151),n(454));n(459),n(105);n.d(t,"a",function(){return o.a}),n.d(t,"c",function(){return r}),n.d(t,"h",function(){return a.a}),n.d(t,"e",function(){return i.a}),n.d(t,"d",function(){return s.a}),n.d(t,"b",function(){return u.a}),n.d(t,"g",function(){return l}),n.d(t,"f",function(){return c.e})},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(4),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const s={display:"block",width:"100%",padding:"0 2px",fontSize:"13px",lineHeight:"1.25",color:"#55595c",backgroundColor:a.a.white,backgroundImage:"none",border:"1px solid rgba(0,0,0,.15)",outline:"none",height:"30px"};class l extends o.Component{constructor(e){super(e),this.state={focus:!1}}render(){let e=this.props,{style:t}=e,n=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["style"]);return r.a.createElement("input",i({onFocus:e=>this.setState({focus:!0}),onBlur:e=>this.setState({focus:!1}),style:i({},s,t,{border:this.state.focus?"1px solid #66afe9":"1px solid rgba(0,0,0,.15)"}),type:"text"},n))}}t.a=l,l.defaultProps={style:{}}},function(e,t,n){"use strict";var o=n(116),r=n(258),a=n(117),i=n(118),s=n(119),l=n(3),c=(n(6),{}),u=null,d=function(e,t){e&&(r.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},p=function(e){return d(e,!0)},h=function(e){return d(e,!1)},m=null,f={injection:{injectMount:r.injection.injectMount,injectInstanceHandle:function(e){m=e},getInstanceHandle:function(){return m},injectEventPluginOrder:o.injectEventPluginOrder,injectEventPluginsByName:o.injectEventPluginsByName},eventNameDispatchConfigs:o.eventNameDispatchConfigs,registrationNameModules:o.registrationNameModules,putListener:function(e,t,n){"function"!=typeof n&&l(!1);(c[t]||(c[t]={}))[e]=n;var r=o.registrationNameModules[t];r&&r.didPutListener&&r.didPutListener(e,t,n)},getListener:function(e,t){var n=c[t];return n&&n[e]},deleteListener:function(e,t){var n=o.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=c[t];r&&delete r[e]},deleteAllListeners:function(e){for(var t in c)if(c[t][e]){var n=o.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t),delete c[t][e]}},extractEvents:function(e,t,n,r,a){for(var s,l=o.plugins,c=0;c<l.length;c++){var u=l[c];if(u){var d=u.extractEvents(e,t,n,r,a);d&&(s=i(s,d))}}return s},enqueueEvents:function(e){e&&(u=i(u,e))},processEventQueue:function(e){var t=u;u=null,e?s(t,p):s(t,h),u&&l(!1),a.rethrowCaughtError()},__purge:function(){c={}},__getListenerBank:function(){return c}};e.exports=f},function(e,t,n){"use strict";var o={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=o},function(e,t,n){"use strict";var o={};e.exports=o},function(e,t,n){"use strict";function o(e,t,n){var o=function(e,t,n){var o=t.dispatchConfig.phasedRegistrationNames[n];return h(e,o)}(e,n,t?p.bubbled:p.captured);o&&(n._dispatchListeners=u(n._dispatchListeners,o),n._dispatchIDs=u(n._dispatchIDs,e))}function r(e){e&&e.dispatchConfig.phasedRegistrationNames&&c.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,o,e)}function a(e){e&&e.dispatchConfig.phasedRegistrationNames&&c.injection.getInstanceHandle().traverseTwoPhaseSkipTarget(e.dispatchMarker,o,e)}function i(e,t,n){if(n&&n.dispatchConfig.registrationName){var o=n.dispatchConfig.registrationName,r=h(e,o);r&&(n._dispatchListeners=u(n._dispatchListeners,r),n._dispatchIDs=u(n._dispatchIDs,e))}}function s(e){e&&e.dispatchConfig.registrationName&&i(e.dispatchMarker,0,e)}var l=n(19),c=n(37),u=(n(6),n(118)),d=n(119),p=l.PropagationPhases,h=c.getListener,m={accumulateTwoPhaseDispatches:function(e){d(e,r)},accumulateTwoPhaseDispatchesSkipTarget:function(e){d(e,a)},accumulateDirectDispatches:function(e){d(e,s)},accumulateEnterLeaveDispatches:function(e,t,n,o){c.injection.getInstanceHandle().traverseEnterLeave(n,o,i,e,t)}};e.exports=m},function(e,t,n){"use strict";function o(e,t,n,o){r.call(this,e,t,n,o)}var r=n(26),a=n(76),i={view:function(e){if(e.view)return e.view;var t=a(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};r.augmentClass(o,i),e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),r=(n.n(o),n(5)),a=n(20),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};let s=(e,t,n)=>e?new o.Map(e).map(e=>new t(e)).toMap():n||new o.Map;class l extends(Object(o.Record)({id:"",type:"",properties:Object(o.Map)()},"Guide")){constructor(e={}){super(i({},e,{properties:Object(o.fromJS)(e.properties||{})}))}}t.Guide=l;const c=new o.Map({h1:new l({id:"h1",type:"horizontal-streak",properties:{step:20,colors:["#808080","#ddd","#ddd","#ddd","#ddd"]}}),v1:new l({id:"v1",type:"vertical-streak",properties:{step:20,colors:["#808080","#ddd","#ddd","#ddd","#ddd"]}})});t.DefaultGuides=c;class u extends(Object(o.Record)({vertices:new o.List,lines:new o.List,holes:new o.List,areas:new o.List,items:new o.List},"ElementsSet")){constructor(e={}){super({vertices:new o.List(e.vertices||[]),lines:new o.List(e.lines||[]),holes:new o.List(e.holes||[]),areas:new o.List(e.areas||[]),items:new o.List(e.items||[])})}}t.ElementsSet=u;const d={id:"",type:"",prototype:"",name:"",misc:new o.Map,selected:!1,properties:new o.Map};class p extends(Object(o.Record)(i({},d,{x:-1,y:-1,prototype:"vertices",lines:new o.List,areas:new o.List}),"Vertex")){constructor(e={}){super(i({},e,{lines:new o.List(e.lines||[]),areas:new o.List(e.areas||[])}))}}t.Vertex=p;class h extends(Object(o.Record)(i({},d,{prototype:"lines",vertices:new o.List,holes:new o.List}),"Line")){constructor(e={}){super(i({},e,{properties:Object(o.fromJS)(e.properties||{}),vertices:new o.List(e.vertices||[]),holes:new o.List(e.holes||[])}))}}t.Line=h;class m extends(Object(o.Record)(i({},d,{prototype:"holes",offset:-1,line:""}),"Hole")){constructor(e={}){super(i({},e,{properties:Object(o.fromJS)(e.properties||{})}))}}t.Hole=m;class f extends(Object(o.Record)(i({},d,{prototype:"areas",vertices:new o.List,holes:new o.List}),"Area")){constructor(e={}){super(i({},e,{properties:Object(o.fromJS)(e.properties||{}),vertices:new o.List(e.vertices||[])}))}}t.Area=f;class y extends(Object(o.Record)(i({},d,{prototype:"items",x:0,y:0,rotation:0}),"Item")){constructor(e={}){super(i({},e,{properties:Object(o.fromJS)(e.properties||{})}))}}t.Item=y;class g extends(Object(o.Record)({id:"",altitude:0,order:0,opacity:1,name:"",visible:!0,vertices:new o.Map,lines:new o.Map,holes:new o.Map,areas:new o.Map,items:new o.Map,selected:new u},"Layer")){constructor(e={}){super(i({},e,{vertices:s(e.vertices,p),lines:s(e.lines,h),holes:s(e.holes,m),areas:s(e.areas,f),items:s(e.items,y),selected:new u(e.selected)}))}}t.Layer=g;const w=new o.Map({"layer-1":new g({id:"layer-1",name:"default"})});t.DefaultLayers=w;class x extends(Object(o.Record)({unit:"cm",layers:new o.Map,guides:new o.Map,selectedLayer:null,width:3e3,height:2e3,meta:new o.Map},"Scene")){constructor(e={}){let t=s(e.layers,g,w);super(i({},e,{guides:s(e.guides,l,c),layers:t,selectedLayer:t.first().id,meta:e.meta?Object(o.fromJS)(e.meta):new o.Map}))}}t.Scene=x;class v extends(Object(o.Record)({name:"",prototype:"",info:new o.Map,properties:new o.Map},"CatalogElement")){constructor(e={}){super(i({},e,{info:Object(o.fromJS)(e.info),properties:Object(o.fromJS)(e.properties)}))}}t.CatalogElement=v;class M extends(Object(o.Record)({ready:!1,page:"root",path:new o.List,elements:new o.Map},"Catalog")){constructor(e={}){let t=s(e.elements,v);super({elements:t,ready:!t.isEmpty()})}factoryElement(e,t,n={}){if(!this.elements.has(e)){let t=this.elements.map(e=>e.name).toArray();throw new Error(`Element ${e} does not exist in catalog ${t}`)}let o=this.elements.get(e),r=o.properties.map((e,t)=>n[t]||e.get("defaultValue"));switch(o.prototype){case"lines":return new h(t).merge({properties:r});case"holes":return new m(t).merge({properties:r});case"areas":return new f(t).merge({properties:r});case"items":return new y(t).merge({properties:r});default:throw new Error("prototype not valid")}}}t.Catalog=M;class b extends(Object(o.Record)({mode:r.MODE_IDLE,scene:new x,sceneHistory:new o.List([new x]),catalog:new M,viewer2D:new o.Map,mouse:new o.Map({x:0,y:0}),zoom:0,snapMask:a.SNAP_MASK,snapElements:new o.List,activeSnapElement:null,drawingSupport:new o.Map,draggingSupport:new o.Map,rotatingSupport:new o.Map,errors:new o.List,warnings:new o.List,clipboardProperties:null,selectedElementsHistory:new o.List,misc:new o.Map},"State")){constructor(e={}){let t=new x(e.scene);super(i({},e,{scene:t,sceneHistory:e.sceneHistory?e.sceneHistory:new o.List([t]),catalog:new M(e.catalog||{}),viewer2D:new o.Map(e.viewer2D||{}),drawingSupport:new o.Map(e.drawingSupport||{}),draggingSupport:new o.Map(e.draggingSupport||{}),rotatingSupport:new o.Map(e.rotatingSupport||{}),misc:e.misc?Object(o.fromJS)(e.misc):new o.Map}))}}t.State=b},function(e,t,n){"use strict";var o=n(8),r=n(412),a=n(413),i=n(414),s=i.concat,l=i.escape,c=r.op,u=r.isMap,d=r.isIndexed,p=function(e,t,n){var r=[],a=n||"";if(o.is(e,t)||e==t==null)return r;var i=d(e)&&d(t),m=null,f=null;return e.forEach&&e.forEach(function(e,n){if(t.has(n))if(u(e)&&u(t.get(n)))r=r.concat(p(e,t.get(n),s(a,l(n))));else if(d(t.get(n))&&d(e))r=r.concat(h(e,t.get(n),s(a,l(n))));else{var o=t.get?t.get(n):t;e!==o&&r.push(c("replace",s(a,l(n)),o))}else i?(f=null!=m&&m+1===n?f:n,r.push(c("remove",s(a,l(f)))),m=n):r.push(c("remove",s(a,l(n))))}),t.forEach(function(t,n){e.has&&!e.has(n)&&r.push(c("add",s(a,l(n)),t))}),r},h=function(e,t,n){var r=[],i=n||"";if(o.is(e,t)||e==t==null)return r;if((e.count()+1)*(t.count()+1)>=1e4)return p(e,t,n);var l=0;return a.diff(e,t).forEach(function(e){if("="===e.op)l++;else if("!="===e.op){if(u(e.val)&&u(e.newVal)){var t=p(e.val,e.newVal,s(i,l));r=r.concat(t)}else r.push(c("replace",s(i,l),e.newVal));l++}else"+"===e.op?(r.push(c("add",s(i,l),e.val)),l++):"-"===e.op&&r.push(c("remove",s(i,l)))}),r};e.exports=function(e,t,n){return o.is(e,t)?o.List():e==t||null!=e&&null!=t?d(e)&&d(t)?o.fromJS(h(e,t)):u(e)&&u(t)?o.fromJS(p(e,t)):o.fromJS(function(e,t,n){return e===t?[]:[c("replace",s(n||"",""),t)]}(e,t,n)):o.fromJS([c("replace","/",t)])}},function(e,t,n){"use strict";t.a=function({name:e,headComponents:t,children:n}){return r.a.createElement("div",{style:i},r.a.createElement("h3",{style:s},e,t),r.a.createElement("div",{style:l},n))};var o=n(0),r=n.n(o),a=n(4);const i={borderTop:"1px solid #222",borderBottom:"1px solid #48494E"},s={fontSize:"11px",color:a.c.text_alt,padding:"5px 15px 8px 15px",backgroundColor:a.c.alt,textShadow:"-1px -1px 2px rgba(0, 0, 0, 1)",boxShadow:"inset 0px -3px 19px 0px rgba(0,0,0,0.5)",margin:"0px"},l={fontSize:"11px",color:a.c.text_alt,border:"1px solid #222",padding:"0px",backgroundColor:a.c.alt,textShadow:"-1px -1px 2px rgba(0, 0, 0, 1)"}},,function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(4),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const c={display:"inline-block",fontWeight:"400",lineHeight:"1.25",textAlign:"center",whiteSpace:"nowrap",verticalAlign:"middle",cursor:"pointer",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",userSelect:"none",padding:"5px 14px",fontSize:"14px",color:s.a.black,fonWeight:"400px",transition:"background-color 175ms ease, border 175ms ease",outline:"none",borderRadius:"2px",borderWidth:"1px",borderType:"solid",width:"100%"},u={small:{fontSize:"12px",padding:"3px 8px"},normal:{},large:{padding:"8px 20px"}};class d extends o.Component{constructor(e){super(e),this.state={hover:!1}}render(){let{hover:e}=this.state,t=this.props,{type:n,style:o,styleHover:a,children:i,size:s}=t,d=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["type","style","styleHover","children","size"]),p=Object.assign({},c,u[s],e?a:o);return r.a.createElement("button",l({type:n,onMouseEnter:e=>this.setState({hover:!0}),onMouseLeave:e=>this.setState({hover:!1}),style:p},d),i)}}t.a=d,d.defaultProps={type:"button",size:"normal",style:{backgroundColor:"#e6e6e6",borderColor:"#adadad"},styleHover:{backgroundColor:"#d4d4d4",borderColor:"#8c8c8c"}},d.propTypes={type:i.a.string,style:i.a.object,styleHover:i.a.object,size:i.a.oneOf(["large","normal","small"])}},function(e,t,n){"use strict";var o=n(3);e.exports=function(e){var t,n={};e instanceof Object&&!Array.isArray(e)||o(!1);for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n}},function(e,t,n){"use strict";var o=n(10),r=/^[ \r\n\t\f]/,a=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,i=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(i=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),o.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(i=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),r.test(t)||"<"===t[0]&&a.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}e.exports=i},function(e,t,n){"use strict";function o(e){return r[e]}var r={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},a=/[&><"']/g;e.exports=function(e){return(""+e).replace(a,o)}},function(e,t,n){"use strict";var o=n(19),r=n(37),a=n(116),i=n(259),s=n(15),l=n(120),c=n(7),u=n(69),d={},p=!1,h=0,m={topAbort:"abort",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},f="_reactListenersID"+String(Math.random()).slice(2),y=c({},i,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(y.handleTopLevel),y.ReactEventListener=e}},setEnabled:function(e){y.ReactEventListener&&y.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!y.ReactEventListener||!y.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=function(e){return Object.prototype.hasOwnProperty.call(e,f)||(e[f]=h++,d[e[f]]={}),d[e[f]]}(n),i=a.registrationNameDependencies[e],s=o.topLevelTypes,l=0;l<i.length;l++){var c=i[l];r.hasOwnProperty(c)&&r[c]||(c===s.topWheel?u("wheel")?y.ReactEventListener.trapBubbledEvent(s.topWheel,"wheel",n):u("mousewheel")?y.ReactEventListener.trapBubbledEvent(s.topWheel,"mousewheel",n):y.ReactEventListener.trapBubbledEvent(s.topWheel,"DOMMouseScroll",n):c===s.topScroll?u("scroll",!0)?y.ReactEventListener.trapCapturedEvent(s.topScroll,"scroll",n):y.ReactEventListener.trapBubbledEvent(s.topScroll,"scroll",y.ReactEventListener.WINDOW_HANDLE):c===s.topFocus||c===s.topBlur?(u("focus",!0)?(y.ReactEventListener.trapCapturedEvent(s.topFocus,"focus",n),y.ReactEventListener.trapCapturedEvent(s.topBlur,"blur",n)):u("focusin")&&(y.ReactEventListener.trapBubbledEvent(s.topFocus,"focusin",n),y.ReactEventListener.trapBubbledEvent(s.topBlur,"focusout",n)),r[s.topBlur]=!0,r[s.topFocus]=!0):m.hasOwnProperty(c)&&y.ReactEventListener.trapBubbledEvent(c,m[c],n),r[c]=!0)}},trapBubbledEvent:function(e,t,n){return y.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return y.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!p){var e=l.refreshScrollValues;y.ReactEventListener.monitorScrollValue(e),p=!0}},eventNameDispatchConfigs:r.eventNameDispatchConfigs,registrationNameModules:r.registrationNameModules,putListener:r.putListener,getListener:r.getListener,deleteListener:r.deleteListener,deleteAllListeners:r.deleteAllListeners});s.measureMethods(y,"ReactBrowserEventEmitter",{putListener:"putListener",deleteListener:"deleteListener"}),e.exports=y},function(e,t,n){"use strict";var o=!1;e.exports=o},function(e,t,n){"use strict";var o=n(3),r={Mixin:{reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,r,a,i,s,l){this.isInTransaction()&&o(!1);var c,u;try{this._isInTransaction=!0,c=!0,this.initializeAll(0),u=e.call(t,n,r,a,i,s,l),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return u},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var o=t[n];try{this.wrapperInitData[n]=r.OBSERVED_ERROR,this.wrapperInitData[n]=o.initialize?o.initialize.call(this):null}finally{if(this.wrapperInitData[n]===r.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(e){}}}},closeAll:function(e){this.isInTransaction()||o(!1);for(var t=this.transactionWrappers,n=e;n<t.length;n++){var a,i=t[n],s=this.wrapperInitData[n];try{a=!0,s!==r.OBSERVED_ERROR&&i.close&&i.close.call(this,s),a=!1}finally{if(a)try{this.closeAll(n+1)}catch(e){}}}this.wrapperInitData.length=0}},OBSERVED_ERROR:{}};e.exports=r},function(e,t,n){"use strict";var o=n(47)({prop:null,context:null,childContext:null});e.exports=o},function(e,t,n){"use strict";var o={};e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){r.call(this,e,t,n,o)}var r=n(41),a=n(120),i={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:n(77),button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+a.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+a.currentScrollTop}};r.augmentClass(o,i),e.exports=o},function(e,t,n){var o,r,a=n(321),i=n(322),s={length:n(334),area:n(335),mass:n(336),volume:n(337),each:n(338),temperature:n(339),time:n(340),digital:n(341),partsPer:n(342),speed:n(343),pressure:n(344),current:n(345),voltage:n(346),power:n(347),reactivePower:n(348),apparentPower:n(349),energy:n(350),reactiveEnergy:n(351),volumeFlowRate:n(352)};(r=function(e,t){this.val=t?e/t:e}).prototype.from=function(e){if(this.destination)throw new Error(".from must be called before .to");return this.origin=this.getUnit(e),this.origin||this.throwUnsupportedUnitError(e),this},r.prototype.to=function(e){if(!this.origin)throw new Error(".to must be called after .from");this.destination=this.getUnit(e);var t,n;if(this.destination||this.throwUnsupportedUnitError(e),this.origin.abbr===this.destination.abbr)return this.val;if(this.destination.measure!=this.origin.measure)throw new Error("Cannot convert incompatible measures of "+this.destination.measure+" and "+this.origin.measure);return t=this.val*this.origin.unit.to_anchor,this.origin.unit.anchor_shift&&(t-=this.origin.unit.anchor_shift),this.origin.system!=this.destination.system&&("function"==typeof(n=s[this.origin.measure]._anchors[this.origin.system].transform)?t=n(t):t*=s[this.origin.measure]._anchors[this.origin.system].ratio),this.destination.unit.anchor_shift&&(t+=this.destination.unit.anchor_shift),t/this.destination.unit.to_anchor},r.prototype.toBest=function(e){if(!this.origin)throw new Error(".toBest must be called after .from");null==e&&(e={exclude:[]});var t;return i(this.possibilities(),function(n){var o=this.describe(n);if(-1===e.exclude.indexOf(n)&&o.system===this.origin.system){var r=this.to(n);(!t||r>=1&&r<t.val)&&(t={val:r,unit:n,singular:o.singular,plural:o.plural})}}.bind(this)),t},r.prototype.getUnit=function(e){var t;return i(s,function(n,o){if(i(n,function(n,r){return"_anchors"!=r&&(i(n,function(n,a){if(a==e)return t={abbr:e,measure:o,system:r,unit:n},!1}),!t&&void 0)}),t)return!1}),t};var l=function(e){return{abbr:e.abbr,measure:e.measure,system:e.system,singular:e.unit.name.singular,plural:e.unit.name.plural}};r.prototype.describe=function(e){var t=r.prototype.getUnit(e),n=null;try{n=l(t)}catch(t){this.throwUnsupportedUnitError(e)}return n},r.prototype.list=function(e){var t=[];return i(s,function(n,o){e&&e!==o||i(n,function(e,n){if("_anchors"==n)return!1;i(e,function(e,r){t=t.concat(l({abbr:r,measure:o,system:n,unit:e}))})})}),t},r.prototype.throwUnsupportedUnitError=function(e){var t=[];throw i(s,function(e,n){i(e,function(e,n){if("_anchors"==n)return!1;t=t.concat(a(e))})}),new Error("Unsupported unit "+e+", use one of: "+t.join(", "))},r.prototype.possibilities=function(e){var t=[];return this.origin||e?(e=e||this.origin.measure,i(s[e],function(e,n){if("_anchors"==n)return!1;t=t.concat(a(e))})):i(a(s),function(e){i(s[e],function(e,n){if("_anchors"==n)return!1;t=t.concat(a(e))})}),t},r.prototype.measures=function(){return a(s)},o=function(e){return new r(e)},e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._toFixedFloat=function(e,t=6){if(e&&t){let n=Math.pow(10,t);return~~(e*n)/n}return 0},t.toFixedFloat=function(e,t=6){return e&&t?parseFloat(parseFloat(e).toFixed(t)):0};t.fAbs=(e=>{let t=e;return t<0&&(t=1+~t),t})},function(e,t,n){"use strict";function o(){l=!1}function r(e){if(e){if(e!==i){if(e.length!==u.length)throw new Error("Custom alphabet for shortid must be "+u.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter(function(e,t,n){return t!==n.lastIndexOf(e)});if(t.length)throw new Error("Custom alphabet for shortid must be "+u.length+" unique characters. These characters were not unique: "+t.join(", "));i=e,o()}}else i!==u&&(i=u,o())}function a(){return l||(l=function(){i||r(u);for(var e,t=i.split(""),n=[],o=c.nextValue();t.length>0;)o=c.nextValue(),e=Math.floor(o*t.length),n.push(t.splice(e,1)[0]);return n.join("")}())}var i,s,l,c=n(363),u="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";e.exports={characters:function(e){return r(e),i},seed:function(e){c.seed(e),s!==e&&(o(),s=e)},lookup:function(e){return a()[e]},shuffled:a}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(4);const l={width:"30px",height:"30px",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"5px",fontSize:"25px",position:"relative",cursor:"pointer"},c={position:"absolute",width:"140px",color:s.a.white,background:s.a.black,height:"30px",lineHeight:"30px",textAlign:"center",visibility:"visible",borderRadius:"6px",opacity:"0.8",left:"100%",top:"50%",marginTop:"-15px",marginLeft:"15px",zIndex:"999",fontSize:"12px"},u={position:"absolute",top:"50%",right:"100%",marginTop:"-8px",width:"0",height:"0",borderRight:"8px solid #000000",borderTop:"8px solid transparent",borderBottom:"8px solid transparent"};class d extends o.Component{constructor(e,t){super(e,t),this.state={active:!1}}render(){let{state:e,props:t}=this,n=t.active||e.active?s.d.icon:s.c.icon;return r.a.createElement("div",{style:l,onMouseOver:e=>this.setState({active:!0}),onMouseOut:e=>this.setState({active:!1})},r.a.createElement("div",{style:{color:n},onClick:t.onClick},t.children),e.active?r.a.createElement("div",{style:c},r.a.createElement("span",{style:u}),t.tooltip):null)}}t.a=d,d.propTypes={active:i.a.bool.isRequired,tooltip:i.a.string.isRequired,onClick:i.a.func.isRequired}},,,,function(e,t,n){"use strict";function o(e){let{children:t}=e,n=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["children"]);return a.a.createElement(i.a,s({style:l,styleHover:c},n),t)}t.a=o;var r=n(0),a=n.n(r),i=n(46),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const l={borderColor:"#adadad",backgroundColor:"#e6e6e6"},c={backgroundColor:"#d4d4d4",borderColor:"#8c8c8c"}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(247),l=n.n(s),c=n(4),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const d={display:"block",width:"100%",padding:"0 2px",fontSize:"13px",lineHeight:"1.25",color:"#55595c",backgroundColor:c.a.white,backgroundImage:"none",border:"1px solid rgba(0,0,0,.15)",outline:"none",height:"30px"};class p extends o.Component{constructor(e){super(e),this.state={focus:!1}}onChangeCustom(e,t,n){this.refs.realNumber.refs.input.checkValidity()?(this.props.onChange({target:{value:e}}),this.onValidCustom(e,t)):this.onInvalidCustom(e,t)}onValidCustom(e,t){this.refs.realNumber&&(this.refs.realNumber.refs.input.style.color=d.color)}onInvalidCustom(e,t,n){this.refs.realNumber&&(this.refs.realNumber.refs.input.style.color="red")}render(){let e=this.props,{value:t,configs:n,onChange:o,onValid:a,style:i}=e,{min:s,max:c,precision:p}=n,h=(function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}(e,["value","configs","onChange","onValid","style"]),1/Math.pow(10,p));return r.a.createElement(l.a,{ref:"realNumber",onChange:this.onChangeCustom.bind(this),onInvalid:this.onInvalidCustom.bind(this),onInput:e=>this.refs.realNumber.refs.input.style.color=e.nativeEvent.target.checkValidity()?d.color:"red",step:h,precision:p,value:t,type:"number",min:s,max:c,pattern:"^-?([0-9]+).?([0-9]+)?",style:{wrap:{width:"100%"},input:u({},d,i,{border:this.state.focus?"1px solid #66afe9":"1px solid rgba(0,0,0,.15)"})},snap:!0})}}t.a=p,p.propTypes={value:i.a.oneOfType([i.a.number,i.a.string]),style:i.a.object,onChange:i.a.func,onValid:i.a.func,configs:i.a.object},p.defaultProps={value:0,style:{},onChange:()=>console.log("onValid instead"),onValid:()=>console.log("onValid not defined"),onInvalid:()=>console.log("onInvalid not defined"),configs:{min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,precision:3}}},function(e,t,n){"use strict";var o=n(10),r=n(49),a=n(48),i=function(e,t){e.textContent=t};o.canUseDOM&&("textContent"in document.documentElement||(i=function(e,t){a(e,r(t))})),e.exports=i},function(e,t,n){"use strict";function o(e){return!!u.hasOwnProperty(e)||!c.hasOwnProperty(e)&&(l.test(e)?(u[e]=!0,!0):(c[e]=!0,!1))}function r(e,t){return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&t<1||e.hasOverloadedBooleanValue&&!1===t}var a=n(31),i=n(15),s=n(257),l=(n(6),/^[a-zA-Z_][\w\.\-]*$/),c={},u={},d={createMarkupForID:function(e){return a.ID_ATTRIBUTE_NAME+"="+s(e)},setAttributeForID:function(e,t){e.setAttribute(a.ID_ATTRIBUTE_NAME,t)},createMarkupForProperty:function(e,t){var n=a.properties.hasOwnProperty(e)?a.properties[e]:null;if(n){if(r(n,t))return"";var o=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&!0===t?o+'=""':o+"="+s(t)}return a.isCustomAttribute(e)?null==t?"":e+"="+s(t):null},createMarkupForCustomAttribute:function(e,t){return o(e)&&null!=t?e+"="+s(t):""},setValueForProperty:function(e,t,n){var o=a.properties.hasOwnProperty(t)?a.properties[t]:null;if(o){var i=o.mutationMethod;if(i)i(e,n);else if(r(o,n))this.deleteValueForProperty(e,t);else if(o.mustUseAttribute){var s=o.attributeName,l=o.attributeNamespace;l?e.setAttributeNS(l,s,""+n):o.hasBooleanValue||o.hasOverloadedBooleanValue&&!0===n?e.setAttribute(s,""):e.setAttribute(s,""+n)}else{var c=o.propertyName;o.hasSideEffects&&""+e[c]==""+n||(e[c]=n)}}else a.isCustomAttribute(t)&&d.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){o(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForProperty:function(e,t){var n=a.properties.hasOwnProperty(t)?a.properties[t]:null;if(n){var o=n.mutationMethod;if(o)o(e,void 0);else if(n.mustUseAttribute)e.removeAttribute(n.attributeName);else{var r=n.propertyName,i=a.getDefaultValueForProperty(e.nodeName,r);n.hasSideEffects&&""+e[r]===i||(e[r]=i)}}else a.isCustomAttribute(t)&&e.removeAttribute(t)}};i.measureMethods(d,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),e.exports=d},function(e,t,n){"use strict";var o=n(68),r=n(11),a={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:o.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){r.purgeID(e)}};e.exports=a},function(e,t,n){"use strict";var o=n(113),r=n(66),a=n(11),i=n(15),s=n(3),l={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},c={updatePropertyByID:function(e,t,n){var o=a.getNode(e);l.hasOwnProperty(t)&&s(!1),null!=n?r.setValueForProperty(o,t,n):r.deleteValueForProperty(o,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=a.getNode(e);o.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;n<e.length;n++)e[n].parentNode=a.getNode(e[n].parentID);o.processUpdates(e,t)}};i.measureMethods(c,"ReactDOMIDOperations",{dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),e.exports=c},function(e,t,n){"use strict";var o,r=n(10);r.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=/**
 * Checks if an event is supported in the current execution environment.
 *
 * NOTE: This will not work correctly for non-generic events such as `change`,
 * `reset`, `load`, `error`, and `select`.
 *
 * Borrows from Modernizr.
 *
 * @param {string} eventNameSuffix Event name, e.g. "click".
 * @param {?boolean} capture Check if the capture phase is supported.
 * @return {boolean} True if the event is supported.
 * @internal
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
 */
function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var i=document.createElement("div");i.setAttribute(n,"return;"),a="function"==typeof i[n]}return!a&&o&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}},function(e,t,n){"use strict";function o(e){s.enqueueUpdate(e)}function r(e,t){var n=i.get(e);return n||null}n(18);var a=n(12),i=n(38),s=n(16),l=n(7),c=n(3),u=(n(6),{isMounted:function(e){var t=i.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t){"function"!=typeof t&&c(!1);var n=r(e);if(!n)return null;n._pendingCallbacks?n._pendingCallbacks.push(t):n._pendingCallbacks=[t],o(n)},enqueueCallbackInternal:function(e,t){"function"!=typeof t&&c(!1),e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],o(e)},enqueueForceUpdate:function(e){var t=r(e);t&&(t._pendingForceUpdate=!0,o(t))},enqueueReplaceState:function(e,t){var n=r(e);n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(e,t){var n=r(e);if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),o(n)}},enqueueSetProps:function(e,t){var n=r(e);n&&u.enqueueSetPropsInternal(n,t)},enqueueSetPropsInternal:function(e,t){var n=e._topLevelWrapper;n||c(!1);var r=n._pendingElement||n._currentElement,i=r.props,s=l({},i.props,t);n._pendingElement=a.cloneAndReplaceProps(r,a.cloneAndReplaceProps(i,s)),o(n)},enqueueReplaceProps:function(e,t){var n=r(e);n&&u.enqueueReplacePropsInternal(n,t)},enqueueReplacePropsInternal:function(e,t){var n=e._topLevelWrapper;n||c(!1);var r=n._pendingElement||n._currentElement,i=r.props;n._pendingElement=a.cloneAndReplaceProps(r,a.cloneAndReplaceProps(i,t)),o(n)},enqueueElementInternal:function(e,t){e._pendingElement=t,o(e)}});e.exports=u},function(e,t,n){"use strict";function o(){this._callbacks=null,this._contexts=null}var r=n(21),a=n(7),i=n(3);a(o.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){e.length!==t.length&&i(!1),this._callbacks=null,this._contexts=null;for(var n=0;n<e.length;n++)e[n].call(t[n]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),r.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";function o(e){var t;if(null===e||!1===e)t=new a(o);else if("object"==typeof e){var n=e;(!n||"function"!=typeof n.type&&"string"!=typeof n.type)&&l(!1),t="string"==typeof n.type?i.createInternalComponent(n):function(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}(n.type)?new n.type(n):new c}else"string"==typeof e||"number"==typeof e?t=i.createInstanceForText(e):l(!1);return t.construct(e),t._mountIndex=0,t._mountImage=null,t}var r=n(265),a=n(126),i=n(127),s=n(7),l=n(3),c=(n(6),function(){});s(c.prototype,r.Mixin,{_instantiateReactComponent:o}),e.exports=o},function(e,t,n){"use strict";var o=n(3),r=!1,a={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){r&&o(!1),a.unmountIDFromEnvironment=e.unmountIDFromEnvironment,a.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,a.processChildrenUpdates=e.processChildrenUpdates,r=!0}}};e.exports=a},function(e,t,n){"use strict";e.exports=function(e,t){var n=null===e||!1===e,o=null===t||!1===t;if(n||o)return n===o;var r=typeof e,a=typeof t;return"string"===r||"number"===r?"string"===a||"number"===a:"object"===a&&e.type===t.type&&e.key===t.key}},function(e,t,n){"use strict";n(7);var o=n(17),r=(n(6),o);e.exports=r},function(e,t,n){"use strict";e.exports=function(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}},function(e,t,n){"use strict";function o(e){var t=this.nativeEvent;if(t.getModifierState)return t.getModifierState(e);var n=r[e];return!!n&&!!t[n]}var r={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=function(e){return o}},function(e,t,n){"use strict";n(18);var o=n(38),r=n(11),a=n(3);n(6);e.exports=function(e){return null==e?null:1===e.nodeType?e:o.has(e)?r.getNodeFromInstance(e):(null!=e.render&&"function"==typeof e.render&&a(!1),void a(!1))}},function(e,t,n){"use strict";function o(e){null!=e.checkedLink&&null!=e.valueLink&&c(!1)}function r(e){o(e),(null!=e.value||null!=e.onChange)&&c(!1)}function a(e){o(e),(null!=e.checked||null!=e.onChange)&&c(!1)}function i(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=n(134),l=n(53),c=n(3),u=(n(6),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),d={value:function(e,t,n){return!e[t]||u[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:s.func},p={},h={checkPropTypes:function(e,t,n){for(var o in d){if(d.hasOwnProperty(o))var r=d[o](t,o,e,l.prop,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");if(r instanceof Error&&!(r.message in p)){p[r.message]=!0;i(n)}}},getValue:function(e){return e.valueLink?(r(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(a(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(r(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(a(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};e.exports=h},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.iterator,r="@@iterator";e.exports=function(e){var t=e&&(o&&e[o]||e[r]);if("function"==typeof t)return t}},function(e,t,n){"use strict";function o(e){return h[e]}function r(e,t){return e&&null!=e.key?a(e.key):t.toString(36)}function a(e){return"$"+function(e){return(""+e).replace(m,o)}(e)}function i(e,t,n,o){var l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||s.isValidElement(e))return n(o,e,""===t?d+r(e,0):t),1;var h,m=0,f=""===t?d:t+p;if(Array.isArray(e))for(var y=0;y<e.length;y++)m+=i(h=e[y],f+r(h,y),n,o);else{var g=c(e);if(g){var w,x=g.call(e);if(g!==e.entries)for(var v=0;!(w=x.next()).done;)m+=i(h=w.value,f+r(h,v++),n,o);else for(;!(w=x.next()).done;){var M=w.value;M&&(m+=i(h=M[1],f+a(M[0])+p+r(h,0),n,o))}}else if("object"===l){String(e);u(!1)}}return m}n(18);var s=n(12),l=n(32),c=n(80),u=n(3),d=(n(6),l.SEPARATOR),p=":",h={"=":"=0",".":"=1",":":"=2"},m=/[=.:]/g;e.exports=function(e,t,n){return null==e?0:i(e,"",t,n)}},function(e,t,n){"use strict";e.exports=function(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}},function(e,t,n){"use strict";e.exports="0.14.9"},function(e,t,n){"use strict";function o(e){let{children:t}=e,n=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["children"]);return a.a.createElement(i.a,l({type:"submit",style:c,styleHover:u},n),t)}t.a=o;var r=n(0),a=n.n(r),i=n(46),s=n(4),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const c={borderColor:"#415375",backgroundColor:"#415375",color:s.a.white},u={borderColor:"#1f3149",backgroundColor:"#1f3149",color:s.a.white}},function(e,t){e.exports={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1}},function(e,t){e.exports=function(){}},function(e,t,n){var o=n(86),r=n(27),a={configurable:!1,enumerable:!1,value:null,writable:!1},i=function(){try{var e={},t=r.test(t=Object.defineProperty)&&t,n=t(e,e,e)&&t}catch(e){}return n}(),s=i?function(e,t){a.value=t,i(e,"__bindData__",a)}:o;e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sceneSnapElements=function(e,t=new a.List,n=new a.Map){let i,s,l;return t.withMutations(t=>{if(e.layers.forEach(e=>{let{lines:a,vertices:c}=e;c.forEach(({id:e,x:a,y:c})=>{n.get(o.SNAP_POINT)&&Object(o.addPointSnap)(t,a,c,10,10,e),n.get(o.SNAP_LINE)&&(({a:i,b:s,c:l}=r.horizontalLine(c)),Object(o.addLineSnap)(t,i,s,l,10,1,e),({a:i,b:s,c:l}=r.verticalLine(a)),Object(o.addLineSnap)(t,i,s,l,10,1,e))}),n.get(o.SNAP_SEGMENT)&&a.forEach(({id:e,vertices:[n,r]})=>{let{x:a,y:i}=c.get(n),{x:s,y:l}=c.get(r);Object(o.addLineSegmentSnap)(t,a,i,s,l,20,1,e)})}),n.get(o.SNAP_GRID)){let n=e.get("width")/20,r=e.get("height")/20;for(let e=0;e<n;e++){let n=20*e;for(let a=0;a<r;a++){let r=20*a,i=!(e%5),s=!(a%5);Object(o.addGridSnap)(t,n,r,10,i&&s?15:10,null)}}}})};var o=n(20),r=n(13),a=n(8);n.n(a)},function(e,t,n){"use strict";var o=n(90),r=n(381),a=n(382),i=n(383),s=n(384),l=n(385),c=n(386),u=n(387),d=n(388);t.a={projectActions:o,viewer2DActions:r,viewer3DActions:a,linesActions:i,holesActions:s,sceneActions:l,verticesActions:c,itemsActions:u,areaActions:d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadProject=function(e){return{type:o.LOAD_PROJECT,sceneJSON:e}},t.newProject=function(){return{type:o.NEW_PROJECT}},t.saveProject=function(){return{type:o.SAVE_PROJECT}},t.openCatalog=function(){return{type:o.OPEN_CATALOG}},t.changeCatalogPage=function(e,t){return{type:o.CHANGE_CATALOG_PAGE,newPage:e,oldPage:t}},t.goBackToCatalogPage=function(e){return{type:o.GO_BACK_TO_CATALOG_PAGE,newPage:e}},t.selectToolEdit=function(){return{type:o.SELECT_TOOL_EDIT}},t.unselectAll=function(){return{type:o.UNSELECT_ALL}},t.setProperties=function(e){return{type:o.SET_PROPERTIES,properties:e}},t.setItemsAttributes=function(e){return e=e.set("rotation",parseFloat(e.get("rotation"))),{type:o.SET_ITEMS_ATTRIBUTES,itemsAttributes:e}},t.setLinesAttributes=function(e){return e=e.withMutations(t=>{t.setIn(["vertexOne","x"],parseFloat(e.getIn(["vertexOne","x"]))),t.setIn(["vertexOne","y"],parseFloat(e.getIn(["vertexOne","y"]))),t.setIn(["vertexTwo","x"],parseFloat(e.getIn(["vertexTwo","x"]))),t.setIn(["vertexTwo","y"],parseFloat(e.getIn(["vertexTwo","y"])))}),{type:o.SET_LINES_ATTRIBUTES,linesAttributes:e}},t.setHolesAttributes=function(e){return e=e.set("offset",parseFloat(e.get("offset"))),{type:o.SET_HOLES_ATTRIBUTES,holesAttributes:e}},t.remove=function(){return{type:o.REMOVE}},t.undo=function(){return{type:o.UNDO}},t.rollback=function(){return{type:o.ROLLBACK}},t.openProjectConfigurator=function(){return{type:o.OPEN_PROJECT_CONFIGURATOR}},t.setProjectProperties=function(e){return{type:o.SET_PROJECT_PROPERTIES,properties:e}},t.initCatalog=function(e){return{type:o.INIT_CATALOG,catalog:e}},t.updateMouseCoord=function(e={x:x,y:y}){return{type:o.UPDATE_MOUSE_COORDS,coords:e}},t.updateZoomScale=function(e){return{type:o.UPDATE_ZOOM_SCALE,scale:e}},t.toggleSnap=function(e){return{type:o.TOGGLE_SNAP,mask:e}},t.throwError=function(e){return{type:o.THROW_ERROR,error:e}},t.throwWarning=function(e){return{type:o.THROW_WARNING,warning:e}},t.copyProperties=function(e){return{type:o.COPY_PROPERTIES,properties:e}},t.pasteProperties=function(){return{type:o.PASTE_PROPERTIES}},t.pushLastSelectedCatalogElementToHistory=function(e){return{type:o.PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY,element:e}};var o=n(5)},function(e,t,n){"use strict";function o({condition:e,style:t,children:n}){return e?Array.isArray(n)?a.a.createElement("div",{style:t},n):n:null}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i);o.propTypes={condition:s.a.bool.isRequired,style:s.a.object}},function(e,t,n){"use strict";function o(e){e instanceof a.Material&&(!function(e){e&&(e.dispose(),e=null)}(e.map),e.dispose(),e=null)}function r(e){(e instanceof a.Mesh||e instanceof a.BoxHelper||e instanceof a.LineSegments)&&(!function(e){e.dispose(),e=null}(e.geometry),function(e){e instanceof a.MultiMaterial&&e.materials.forEach(e=>{o(e)})}(e.material),o(e.material),e=null)}t.b=function(e){e.traverse(e=>{r(e)})},t.a=function(e){e.traverse(e=>{r(e)})};var a=n(1)},,function(e,t,n){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var o=t(e[n]);if(o)return o}}},function(e,t,n){"use strict";var o=e.exports={};o.isIE=function(e){if(!function(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")||-1!==e.indexOf("trident")||-1!==e.indexOf(" edge/")}())return!1;if(!e)return!0;return e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:void 0}()},o.isLegacyOpera=function(){return!!window.opera}},,,,,,,,,,function(e,t,n){"use strict";var o=n(35),r=n(460),a=n(463),i=n(469),s=n(471),l=n(479),c=n(481),u=n(483),d=n(485),p=n(490),h=n(492),m=n(497),f=n(502),y=n(507),g=n(509),w=n(511),x=n(515),v=n(518),M=n(520),b=n(525),E=n(527),_=n(529),O=n(531),T=n(533),I=n(535),q=n(537),P=n(539),D=n(542),C=n(545),S=n(548),G=n(550),k=n(552),L=n(554),A=n(558),R=n(561),N=n(565),j=n(569),B=n(571),z=n(574),V=n(577),U=n(580),F=n(585),W=n(588),H=n(592),$=n(598),Y=n(601),K=n(603),X=n(609),Z=n(611),J=n(613),Q=n(616),ee=n(618),te=n(621),ne=n(623),oe=n(625),re=n(627),ae=n(629),ie=n(634),se=n(636),le=n(638),ce=n(641),ue=n(643),de=n(647),pe=n(650);let he=new o.a;const me={area:r.a};Object.freeze(me);const fe={wall:a.a};Object.freeze(fe);const ye={doorDouble:i.a,door:s.a,gate:l.a,panicDoorDouble:c.a,panicDoor:u.a,sashWindow:d.a,slidingDoor:p.a,venetianBlindWindow:h.a,windowCurtain:m.a,window:f.a};Object.freeze(ye);const ge={airConditioner:y.a,armchairs:g.a,balcony:w.a,bench:x.a,blackboard:v.a,bookcase:M.a,camera:b.a,canteenTable:E.a,canteencart:_.a,chair:O.a,chairdesk:T.a,childChairDesk:I.a,cleaningcart:q.a,coatHook:P.a,columnSquare:D.a,column:C.a,cube:S.a,desk:G.a,deskdouble:k.a,deskoffice:L.a,electricalPanel:A.a,fireExtinguisher:R.a,fridge:N.a,hanger:j.a,hiroos:B.a,hub:z.a,image:V.a,kitchen:U.a,lim:F.a,metalDetector:W.a,monitorPc:H.a,naspo:$.a,projector:Y.a,rackServer:K.a,radiatorModernStyle:X.a,radiatorOldStyle:Z.a,recyclingBins:J.a,routerWifi:Q.a,schneider:ee.a,schoolDeskDouble:te.a,schoolDesk:ne.a,sink:oe.a,smokeDetector:re.a,sofa:ae.a,table:ie.a,teachingPost:se.a,threePhasePanel:le.a,trash:ce.a,tv:ue.a,umbrellaStand:de.a,wardrobe:pe.a};Object.freeze(ge);for(let e in me)he.registerElement(me[e]);for(let e in fe)he.registerElement(fe[e]);for(let e in ye)he.registerElement(ye[e]);for(let e in ge)he.registerElement(ge[e]);he.registerCategory("windows","Windows",[ye.window,ye.sashWindow,ye.venetianBlindWindow,ye.windowCurtain]),he.registerCategory("doors","Doors",[ye.door,ye.doorDouble,ye.panicDoor,ye.panicDoorDouble,ye.slidingDoor]),t.a=he},function(e,t,n){"use strict";var o=n(107),r=n(5);class a{constructor(e=r.UNIT_CENTIMETER){this.elements={},this.categories={root:{name:"root",label:"/",elements:[],categories:[]}},this.propertyTypes={},this.unit=e,this.registerMultiplePropertyType([["color",o.b,o.b],["enum",o.c,o.c],["string",o.h,o.h],["number",o.f,o.f],["length-measure",o.e,o.e],["toggle",o.i,o.i],["checkbox",o.a,o.a],["hidden",o.d,o.d],["read-only",o.g,o.g]])}getElement(e){if(this.hasElement(e))return this.elements[e];throw new Error(`Element ${e} does not exist in catalog`)}getCategory(e){if(this.hasCategory(e))return this.categories[e];throw new Error(`Category ${e} does not exist in catalog`)}getPropertyType(e){if(this.propertyTypes.hasOwnProperty(e))return this.propertyTypes[e];throw new Error(`Element ${e} does not exist in catalog`)}registerElement(e){e.properties=e.properties||{},this.validateElement(e)&&(this.elements[e.name]=e,this.categories.root.elements.push(this.elements[e.name]))}registerMultipleElements(e){e.forEach(e=>this.registerElement(e))}registerPropertyType(e,t,n){this.propertyTypes[e]={type:e,Viewer:t,Editor:n}}registerMultiplePropertyType(e){e.forEach(e=>this.registerPropertyType(...e))}validateElement(e){if(!e.hasOwnProperty("name"))throw new Error("Element not valid");let t=e.name;if(!e.hasOwnProperty("prototype"))throw new Error(`Element ${t} doesn't have prototype`);if(!e.hasOwnProperty("info"))throw new Error(`Element ${t} doesn't have info`);if(!e.info.hasOwnProperty("tag"))throw new Error(`Element ${t} doesn't have tag`);if(!e.info.hasOwnProperty("group"))throw new Error(`Element ${t} doesn't have group`);if(!e.info.hasOwnProperty("description"))throw new Error(`Element ${t} doesn't have description`);if(!e.info.hasOwnProperty("image"))throw new Error(`Element ${t} doesn't have image`);if(!e.hasOwnProperty("render2D"))throw new Error(`Element ${t} doesn't have render2D handler`);if(!e.hasOwnProperty("render3D"))throw new Error(`Element ${t} doesn't have render3D handler`);if(!e.hasOwnProperty("properties"))throw new Error(`Element ${t} doesn't have properties`);for(let n in e.properties){let o=e.properties[n];if(!o.hasOwnProperty("type"))throw new Error(`Element ${t}, Property ${n} doesn't have type`);if(!o.hasOwnProperty("defaultValue"))throw new Error(`Element ${t}, Property ${n} doesn't have defaultValue`)}return!0}hasElement(e){return this.elements.hasOwnProperty(e)}registerCategory(e,t,n){return this.validateCategory(e,t)?(this.categories[e]={name:e,label:t,categories:[],elements:[]},this.categories.root.categories.push(this.categories[e]),n&&n.length&&n.forEach(t=>this.addToCategory(e,t)),this.categories[e]):null}addToCategory(e,t){if(this.hasElement(t.name))this.categories[e].elements.push(t),this.categories.root.elements.splice(this.categories.root.elements.indexOf(t),1);else{if(!this.hasCategory(t.name))throw new Error(`child ${t} is either category nor element`);this.categories[e].categories.push(t),this.categories.root.categories.splice(this.categories.root.categories.indexOf(t),1)}}categoryHasElement(e,t){return this.hasCategory(e)&&this.categories[e].elements.some(e=>e.name===t)}validateCategory(e,t){if(!e)throw new Error("Category has undefined name");if(""===e)throw new Error("Category has empty name");if(this.hasCategory(e))throw new Error("Category has already been registered");return!0}hasCategory(e){return this.categories.hasOwnProperty(e)}}t.a=a},function(e,t,n){"use strict";var o=n(243),r=n(319),a=n(145),i=n(320),s=n(146),l=n(353),c=n(354),u=n(355),d=n(356);n.d(t,"b",function(){return o.a}),n.d(t,"c",function(){return r.a}),n.d(t,"h",function(){return a.a}),n.d(t,"f",function(){return i.a}),n.d(t,"e",function(){return s.a}),n.d(t,"i",function(){return l.a}),n.d(t,"a",function(){return c.a}),n.d(t,"d",function(){return u.a}),n.d(t,"g",function(){return d.a});o.a,r.a,a.a,i.a,s.a,l.a,c.a,u.a,d.a},function(e,t,n){"use strict";function o({children:e,width:t,height:n,style:o={}}){return a.a.createElement("div",{style:l({width:t,height:n},c,o),onWheel:e=>e.stopPropagation()},e)}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const c={padding:"0 20px",overflowY:"auto"};o.propsType={width:s.a.number.isRequired,height:s.a.number.isRequired,style:s.a.object}},function(e,t,n){"use strict";function o(e){let{children:t,style:n={}}=e,o=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["children","style"]);return a.a.createElement("h1",c({style:c({},u,n)},o),t)}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(4),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const u={color:l.c.alt,fontWeight:300};o.propsType={style:s.a.object}},function(e,t,n){"use strict";function o(e){let{children:t}=e,n=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["children"]);return a.a.createElement(i.a,l({style:c,styleHover:u},n),t)}t.a=o;var r=n(0),a=n.n(r),i=n(46),s=n(4),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const c={borderColor:"#c12e2a",backgroundColor:"#c9302c",color:s.a.white},u={backgroundColor:"#972726",borderColor:"#c12e2a",color:s.a.white}},function(e,t,n){"use strict";function o(e){let{value:t,onChange:n}=e,o=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["value","onChange"]);return a.a.createElement("div",null,a.a.createElement("div",{style:u},a.a.createElement(s.a,c({type:"range",style:d,onChange:n,value:t},o))),a.a.createElement("div",{style:p},a.a.createElement(l.a,{value:t,onChange:n,style:h})))}t.a=o;var r=n(0),a=n.n(r),i=n(249),s=n.n(i),l=n(36),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const u={display:"inline-block",width:"80%",marginRight:"5%"},d={display:"block",width:"100%",height:"30px"},p={display:"inline-block",width:"15%",float:"right"},h={height:"34px",textAlign:"center"}},function(e,t,n){"use strict";var o=n(113),r=n(66),a=n(67),i=n(11),s=n(7),l=n(49),c=n(65),u=(n(75),function(e){});s(u.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(e,t,n){if(this._rootNodeID=e,t.useCreateElement){var o=n[i.ownerDocumentContextKey].createElement("span");return r.setAttributeForID(o,e),i.getID(o),c(o,this._stringText),o}var a=l(this._stringText);return t.renderToStaticMarkup?a:"<span "+r.createMarkupForID(e)+">"+a+"</span>"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=i.getNode(this._rootNodeID);o.updateTextContent(r,n)}}},unmountComponent:function(){a.unmountIDFromEnvironment(this._rootNodeID)}}),e.exports=u},function(e,t,n){"use strict";function o(e,t,n){var o=n>=e.childNodes.length?null:e.childNodes.item(n);e.insertBefore(t,o)}var r=n(253),a=n(115),i=n(15),s=n(48),l=n(65),c=n(3),u={dangerouslyReplaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup,updateTextContent:l,processUpdates:function(e,t){for(var n,i=null,u=null,d=0;d<e.length;d++)if((n=e[d]).type===a.MOVE_EXISTING||n.type===a.REMOVE_NODE){var p=n.fromIndex,h=n.parentNode.childNodes[p],m=n.parentID;h||c(!1),(i=i||{})[m]=i[m]||[],i[m][p]=h,(u=u||[]).push(h)}var f;if(f=t.length&&"string"==typeof t[0]?r.dangerouslyRenderMarkup(t):t,u)for(var y=0;y<u.length;y++)u[y].parentNode.removeChild(u[y]);for(var g=0;g<e.length;g++)switch((n=e[g]).type){case a.INSERT_MARKUP:o(n.parentNode,f[n.markupIndex],n.toIndex);break;case a.MOVE_EXISTING:o(n.parentNode,i[n.parentID][n.fromIndex],n.toIndex);break;case a.SET_MARKUP:s(n.parentNode,n.content);break;case a.TEXT_CONTENT:l(n.parentNode,n.content);break;case a.REMOVE_NODE:}}};i.measureMethods(u,"DOMChildrenOperations",{updateTextContent:"updateTextContent"}),e.exports=u},function(e,t,n){"use strict";var o=n(10),r=n(3),a=o.canUseDOM?document.createElement("div"):null,i={},s=[1,'<select multiple="true">',"</select>"],l=[1,"<table>","</table>"],c=[3,"<table><tbody><tr>","</tr></tbody></table>"],u=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],d={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:s,option:s,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){d[e]=u,i[e]=!0}),e.exports=function(e){return a||r(!1),d.hasOwnProperty(e)||(e="*"),i.hasOwnProperty(e)||(a.innerHTML="*"===e?"<link />":"<"+e+"></"+e+">",i[e]=!a.firstChild),i[e]?d[e]:null}},function(e,t,n){"use strict";var o=n(47)({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});e.exports=o},function(e,t,n){"use strict";function o(){if(i)for(var e in s){var t=s[e],n=i.indexOf(e);if(n>-1||a(!1),!l.plugins[n]){t.extractEvents||a(!1),l.plugins[n]=t;var o=t.eventTypes;for(var c in o)!function(e,t,n){l.eventNameDispatchConfigs.hasOwnProperty(n)&&a(!1),l.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var i in o)if(o.hasOwnProperty(i)){r(o[i],t,n)}return!0}if(e.registrationName)return r(e.registrationName,t,n),!0;return!1}(o[c],t,c)&&a(!1)}}}function r(e,t,n){l.registrationNameModules[e]&&a(!1),l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(3),i=null,s={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){i&&a(!1),i=Array.prototype.slice.call(e),o()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];s.hasOwnProperty(n)&&s[n]===r||(s[n]&&a(!1),s[n]=r,t=!0)}t&&o()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var o=l.registrationNameModules[t.phasedRegistrationNames[n]];if(o)return o}return null},_resetEventPlugins:function(){i=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var o=l.registrationNameModules;for(var r in o)o.hasOwnProperty(r)&&delete o[r]}};e.exports=l},function(e,t,n){"use strict";function o(e,t,n,o){try{return t(n,o)}catch(e){return void(null===r&&(r=e))}}var r=null,a={invokeGuardedCallback:o,invokeGuardedCallbackWithCatch:o,rethrowCaughtError:function(){if(r){var e=r;throw r=null,e}}};e.exports=a},function(e,t,n){"use strict";var o=n(3);e.exports=function(e,t){if(null==t&&o(!1),null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n&&r?(e.push.apply(e,t),e):n?(e.push(t),e):r?[e].concat(t):[e,t]}},function(e,t,n){"use strict";e.exports=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}},function(e,t,n){"use strict";var o={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){o.currentScrollLeft=e.x,o.currentScrollTop=e.y}};e.exports=o},function(e,t,n){"use strict";e.exports={useCreateElement:!1}},function(e,t,n){"use strict";var o={},r={isNullComponentID:function(e){return!!o[e]},registerNullComponentID:function(e){o[e]=!0},deregisterNullComponentID:function(e){delete o[e]}};e.exports=r},function(e,t,n){"use strict";var o={createReactRootIndex:null,injection:{injectCreateReactRootIndex:function(e){o.createReactRootIndex=e}}};e.exports=o},function(e,t,n){"use strict";var o=n(260),r=/\/?>/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=o(e);return e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);return o(e)===n}};e.exports=a},function(e,t,n){"use strict";var o=n(263);e.exports=function(e,t){var n=!0;e:for(;n;){var r=e,a=t;if(n=!1,r&&a){if(r===a)return!0;if(o(r))return!1;if(o(a)){e=r,t=a.parentNode,n=!0;continue e}return r.contains?r.contains(a):!!r.compareDocumentPosition&&!!(16&r.compareDocumentPosition(a))}return!1}}},function(e,t,n){"use strict";function o(){i.registerNullComponentID(this._rootNodeID)}var r,a=n(12),i=n(122),s=n(25),l={injectEmptyComponent:function(e){r=a.createElement(e)}},c=function(e){this._currentElement=null,this._rootNodeID=null,this._renderedComponent=e(r)};n(7)(c.prototype,{construct:function(e){},mountComponent:function(e,t,n){return t.getReactMountReady().enqueue(o,this),this._rootNodeID=e,s.mountComponent(this._renderedComponent,e,t,n)},receiveComponent:function(){},unmountComponent:function(e,t,n){s.unmountComponent(this._renderedComponent),i.deregisterNullComponentID(this._rootNodeID),this._rootNodeID=null,this._renderedComponent=null}}),c.injection=l,e.exports=c},function(e,t,n){"use strict";var o=n(7),r=n(3),a=null,i=null,s={},l=null,c={getComponentClassForElement:function(e){if("function"==typeof e.type)return e.type;var t=e.type,n=s[t];return null==n&&(s[t]=n=a(t)),n},createInternalComponent:function(e){return i||r(!1),new i(e.type,e.props)},createInstanceForText:function(e){return new l(e)},isTextComponent:function(e){return e instanceof l},injection:{injectGenericComponentClass:function(e){i=e},injectTextComponentClass:function(e){l=e},injectComponentClasses:function(e){o(s,e)}}};e.exports=c},function(e,t,n){"use strict";var o=n(266),r=n(270),a=n(271),i=n(272),s=n(273),l=n(10),c=n(274),u=n(275),d=n(67),p=n(131),h=n(276),m=n(112),f=n(292),y=n(294),g=n(32),w=n(11),x=n(295),v=n(298),M=n(299),b=n(300),E=n(308),_=!1;e.exports={inject:function(){_||(_=!0,y.EventEmitter.injectReactEventListener(f),y.EventPluginHub.injectEventPluginOrder(i),y.EventPluginHub.injectInstanceHandle(g),y.EventPluginHub.injectMount(w),y.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:b,EnterLeaveEventPlugin:s,ChangeEventPlugin:r,SelectEventPlugin:v,BeforeInputEventPlugin:o}),y.NativeComponent.injectGenericComponentClass(h),y.NativeComponent.injectTextComponentClass(m),y.Class.injectMixin(u),y.DOMProperty.injectDOMPropertyConfig(c),y.DOMProperty.injectDOMPropertyConfig(E),y.EmptyComponent.injectEmptyComponent("noscript"),y.Updates.injectReconcileTransaction(x),y.Updates.injectBatchingStrategy(p),y.RootIndex.injectCreateReactRootIndex(l.canUseDOM?a.createReactRootIndex:M.createReactRootIndex),y.Component.injectEnvironment(d))}}},function(e,t,n){"use strict";var o=n(10),r=null;e.exports=function(){return!r&&o.canUseDOM&&(r="textContent"in document.documentElement?"textContent":"innerText"),r}},function(e,t,n){"use strict";var o={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&o[e.type]||"textarea"===t)}},function(e,t,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(16),a=n(52),i=n(7),s=n(17),l={initialize:s,close:function(){d.isBatchingUpdates=!1}},c=[{initialize:s,close:r.flushBatchedUpdates.bind(r)},l];i(o.prototype,a.Mixin,{getTransactionWrappers:function(){return c}});var u=new o,d={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,o,r,a){var i=d.isBatchingUpdates;d.isBatchingUpdates=!0,i?e(t,n,o,r,a):u.perform(e,null,t,n,o,r,a)}};e.exports=d},function(e,t,n){"use strict";e.exports=function(e){try{e.focus()}catch(e){}}},function(e,t,n){"use strict";var o={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},r=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(e){r.forEach(function(t){o[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(t,e)]=o[e]})});var a={isUnitlessNumber:o,shorthandPropertyExpansions:{background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}}};e.exports=a},function(e,t,n){"use strict";function o(e){function t(t,n,o,r,a,i){if(r=r||d,i=i||o,null==n[o]){var s=l[a];return t?new Error("Required "+s+" `"+i+"` was not specified in `"+r+"`."):null}return e(n,o,r,a,i)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function r(e){function t(t,n,o,r,a){var s=t[n];if(i(s)!==e){var c=l[r],u=function(e){var t=i(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}(s);return new Error("Invalid "+c+" `"+a+"` of type `"+u+"` supplied to `"+o+"`, expected `"+e+"`.")}return null}return o(t)}function a(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(a);if(null===e||s.isValidElement(e))return!0;var t=u(e);if(!t)return!1;var n,o=t.call(e);if(t!==e.entries){for(;!(n=o.next()).done;)if(!a(n.value))return!1}else for(;!(n=o.next()).done;){var r=n.value;if(r&&!a(r[1]))return!1}return!0;default:return!1}}function i(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}var s=n(12),l=n(54),c=n(17),u=n(80),d="<<anonymous>>",p={array:r("array"),bool:r("boolean"),func:r("function"),number:r("number"),object:r("object"),string:r("string"),any:o(c.thatReturns(null)),arrayOf:function(e){return o(function(t,n,o,r,a){var s=t[n];if(!Array.isArray(s)){var c=l[r],u=i(s);return new Error("Invalid "+c+" `"+a+"` of type `"+u+"` supplied to `"+o+"`, expected an array.")}for(var d=0;d<s.length;d++){var p=e(s,d,o,r,a+"["+d+"]","SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");if(p instanceof Error)return p}return null})},element:o(function(e,t,n,o,r){if(!s.isValidElement(e[t])){var a=l[o];return new Error("Invalid "+a+" `"+r+"` supplied to `"+n+"`, expected a single ReactElement.")}return null}),instanceOf:function(e){return o(function(t,n,o,r,a){if(!(t[n]instanceof e)){var i=l[r],s=e.name||d,c=function(e){return e.constructor&&e.constructor.name?e.constructor.name:"<<anonymous>>"}(t[n]);return new Error("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected instance of `"+s+"`.")}return null})},node:o(function(e,t,n,o,r){if(!a(e[t])){var i=l[o];return new Error("Invalid "+i+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")}return null}),objectOf:function(e){return o(function(t,n,o,r,a){var s=t[n],c=i(s);if("object"!==c){var u=l[r];return new Error("Invalid "+u+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected an object.")}for(var d in s)if(s.hasOwnProperty(d)){var p=e(s,d,o,r,a+"."+d,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");if(p instanceof Error)return p}return null})},oneOf:function(e){return o(Array.isArray(e)?function(t,n,o,r,a){for(var i=t[n],s=0;s<e.length;s++)if(i===e[s])return null;var c=l[r],u=JSON.stringify(e);return new Error("Invalid "+c+" `"+a+"` of value `"+i+"` supplied to `"+o+"`, expected one of "+u+".")}:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})},oneOfType:function(e){return o(Array.isArray(e)?function(t,n,o,r,a){for(var i=0;i<e.length;i++)if(null==(0,e[i])(t,n,o,r,a,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"))return null;var s=l[r];return new Error("Invalid "+s+" `"+a+"` supplied to `"+o+"`.")}:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})},shape:function(e){return o(function(t,n,o,r,a){var s=t[n],c=i(s);if("object"!==c){var u=l[r];return new Error("Invalid "+u+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.")}for(var d in e){var p=e[d];if(p){var h=p(s,d,o,r,a+"."+d,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");if(h)return h}}return null})}};e.exports=p},function(e,t,n){"use strict";function o(e){return(""+e).replace(y,"//")}function r(e,t){this.func=e,this.context=t,this.count=0}function a(e,t,n){var o=e.func,r=e.context;o.call(r,t,e.count++)}function i(e,t,n,o){this.result=e,this.keyPrefix=t,this.func=n,this.context=o,this.count=0}function s(e,t,n){var r=e.result,a=e.keyPrefix,i=e.func,s=e.context,c=i.call(s,t,e.count++);Array.isArray(c)?l(c,r,n,p.thatReturnsArgument):null!=c&&(d.isValidElement(c)&&(c=d.cloneAndReplaceKey(c,a+(c!==t?o(c.key||"")+"/":"")+n)),r.push(c))}function l(e,t,n,r,a){var l="";null!=n&&(l=o(n)+"/");var c=i.getPooled(t,l,r,a);h(e,s,c),i.release(c)}function c(e,t,n){return null}var u=n(21),d=n(12),p=n(17),h=n(81),m=u.twoArgumentPooler,f=u.fourArgumentPooler,y=/\/(?!\/)/g;r.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},u.addPoolingTo(r,m),i.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},u.addPoolingTo(i,f);var g={forEach:function(e,t,n){if(null==e)return e;var o=r.getPooled(t,n);h(e,a,o),r.release(o)},map:function(e,t,n){if(null==e)return e;var o=[];return l(e,o,null,t,n),o},mapIntoWithKeyPrefixInternal:l,count:function(e,t){return h(e,c,null)},toArray:function(e){var t=[];return l(e,t,null,p.thatReturnsArgument),t}};e.exports=g},function(e,t,n){"use strict";function o(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=a.getValue(e);null!=t&&r(this,Boolean(e.multiple),t)}}function r(e,t,n){var o,r,a=i.getNode(e._rootNodeID).options;if(t){for(o={},r=0;r<n.length;r++)o[""+n[r]]=!0;for(r=0;r<a.length;r++){var s=o.hasOwnProperty(a[r].value);a[r].selected!==s&&(a[r].selected=s)}}else{for(o=""+n,r=0;r<a.length;r++)if(a[r].value===o)return void(a[r].selected=!0);a.length&&(a[0].selected=!0)}}var a=n(79),i=n(11),s=n(16),l=n(7),c=(n(6),"__ReactDOMSelect_value$"+Math.random().toString(36).slice(2)),u={valueContextKey:c,getNativeProps:function(e,t,n){return l({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,t){var n=a.getValue(t);e._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:t.defaultValue,onChange:function(e){var t=this._currentElement.props,n=a.executeOnChange(t,e);return this._wrapperState.pendingUpdate=!0,s.asap(o,this),n}.bind(e),wasMultiple:Boolean(t.multiple)}},processChildContext:function(e,t,n){var o=l({},n);return o[c]=e._wrapperState.initialValue,o},postUpdateWrapper:function(e){var t=e._currentElement.props;e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=Boolean(t.multiple);var o=a.getValue(t);null!=o?(e._wrapperState.pendingUpdate=!1,r(e,Boolean(t.multiple),o)):n!==Boolean(t.multiple)&&(null!=t.defaultValue?r(e,Boolean(t.multiple),t.defaultValue):r(e,Boolean(t.multiple),t.multiple?[]:""))}};e.exports=u},function(e,t,n){"use strict";var o=Object.prototype.hasOwnProperty;e.exports=function(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=o.bind(t),i=0;i<n.length;i++)if(!a(n[i])||e[n[i]]!==t[n[i]])return!1;return!0}},function(e,t,n){"use strict";var o=n(17),r={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:o}},registerDefault:function(){}};e.exports=r},function(e,t,n){"use strict";function o(e,t){var n=x.hasOwnProperty(t)?x[t]:null;M.hasOwnProperty(t)&&n!==g.OVERRIDE_BASE&&h(!1),e.hasOwnProperty(t)&&n!==g.DEFINE_MANY&&n!==g.DEFINE_MANY_MERGED&&h(!1)}function r(e,t){if(t){"function"==typeof t&&h(!1),c.isValidElement(t)&&h(!1);var n=e.prototype;t.hasOwnProperty(y)&&v.mixins(e,t.mixins);for(var r in t)if(t.hasOwnProperty(r)&&r!==y){var a=t[r];if(o(n,r),v.hasOwnProperty(r))v[r](e,a);else{var s=x.hasOwnProperty(r),l=n.hasOwnProperty(r);if("function"==typeof a&&!s&&!l&&!1!==t.autobind)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[r]=a,n[r]=a;else if(l){var u=x[r];(!s||u!==g.DEFINE_MANY_MERGED&&u!==g.DEFINE_MANY)&&h(!1),u===g.DEFINE_MANY_MERGED?n[r]=i(n[r],a):u===g.DEFINE_MANY&&(n[r]=function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}(n[r],a))}else n[r]=a}}}}function a(e,t){e&&t&&"object"==typeof e&&"object"==typeof t||h(!1);for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]&&h(!1),e[n]=t[n]);return e}function i(e,t){return function(){var n=e.apply(this,arguments),o=t.apply(this,arguments);if(null==n)return o;if(null==o)return n;var r={};return a(r,n),a(r,o),r}}function s(e,t){var n=t.bind(e);return n}var l=n(140),c=n(12),u=(n(53),n(54),n(141)),d=n(7),p=n(39),h=n(3),m=n(47),f=n(22),y=(n(6),f({mixins:null})),g=m({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),w=[],x={mixins:g.DEFINE_MANY,statics:g.DEFINE_MANY,propTypes:g.DEFINE_MANY,contextTypes:g.DEFINE_MANY,childContextTypes:g.DEFINE_MANY,getDefaultProps:g.DEFINE_MANY_MERGED,getInitialState:g.DEFINE_MANY_MERGED,getChildContext:g.DEFINE_MANY_MERGED,render:g.DEFINE_ONCE,componentWillMount:g.DEFINE_MANY,componentDidMount:g.DEFINE_MANY,componentWillReceiveProps:g.DEFINE_MANY,shouldComponentUpdate:g.DEFINE_ONCE,componentWillUpdate:g.DEFINE_MANY,componentDidUpdate:g.DEFINE_MANY,componentWillUnmount:g.DEFINE_MANY,updateComponent:g.OVERRIDE_BASE},v={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)r(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=d({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=d({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=i(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=d({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(t)for(var n in t){var o=t[n];t.hasOwnProperty(n)&&(n in v&&h(!1),n in e&&h(!1),e[n]=o)}}(e,t)},autobind:function(){}},M={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e),t&&this.updater.enqueueCallback(this,t)},isMounted:function(){return this.updater.isMounted(this)},setProps:function(e,t){this.updater.enqueueSetProps(this,e),t&&this.updater.enqueueCallback(this,t)},replaceProps:function(e,t){this.updater.enqueueReplaceProps(this,e),t&&this.updater.enqueueCallback(this,t)}},b=function(){};d(b.prototype,l.prototype,M);var E={createClass:function(e){var t=function(e,t,n){this.__reactAutoBindMap&&function(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=s(e,n)}}(this),this.props=e,this.context=t,this.refs=p,this.updater=n||u,this.state=null;var o=this.getInitialState?this.getInitialState():null;("object"!=typeof o||Array.isArray(o))&&h(!1),this.state=o};t.prototype=new b,t.prototype.constructor=t,w.forEach(r.bind(null,t)),r(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render||h(!1);for(var n in x)t.prototype[n]||(t.prototype[n]=null);return t},injection:{injectMixin:function(e){w.push(e)}}};e.exports=E},function(e,t,n){"use strict";function o(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||r}var r=n(141),a=(n(51),n(39)),i=n(3);n(6);o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&i(!1),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t)},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e)};e.exports=o},function(e,t,n){"use strict";function o(e,t){}n(6);var r={isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){o()},enqueueReplaceState:function(e,t){o()},enqueueSetState:function(e,t){o()},enqueueSetProps:function(e,t){o()},enqueueReplaceProps:function(e,t){o()}};e.exports=r},function(e,t,n){"use strict";var o=n(296),r=n(125),a=n(132),i=n(143),s={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=i();return{focusedElem:e,selectionRange:s.hasSelectionCapabilities(e)?s.getSelection(e):null}},restoreSelection:function(e){var t=i(),n=e.focusedElem,o=e.selectionRange;t!==n&&function(e){return r(document.documentElement,e)}(n)&&(s.hasSelectionCapabilities(n)&&s.setSelection(n,o),a(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if(void 0===r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var a=e.createTextRange();a.collapse(!0),a.moveStart("character",n),a.moveEnd("character",r-n),a.select()}else o.setOffsets(e,t)}};e.exports=s},function(e,t,n){"use strict";e.exports=function(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}},function(e,t,n){"use strict";function o(){if(c.current){var e=c.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function r(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;(function(e,t,n){var r=o();if(!r){var a="string"==typeof n?n:n.displayName||n.name;a&&(r=" Check the top-level render call using <"+a+">.")}var i=p[e]||(p[e]={});if(i[r])return null;i[r]=!0;var s={parentOrOwner:r,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};t&&t._owner&&t._owner!==c.current&&(s.childOwner=" It was passed a child from "+t._owner.getName()+".")})("uniqueKey",e,t)}}function a(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var o=e[n];s.isValidElement(o)&&r(o,t)}else if(s.isValidElement(e))e._store&&(e._store.validated=!0);else if(e){var a=u(e);if(a&&a!==e.entries)for(var i,l=a.call(e);!(i=l.next()).done;)s.isValidElement(i.value)&&r(i.value,t)}}function i(e){var t=e.type;if("function"==typeof t){var n=t.displayName||t.name;t.propTypes&&function(e,t,n,r){for(var a in t)if(t.hasOwnProperty(a)){var i;try{"function"!=typeof t[a]&&d(!1),i=t[a](n,a,e,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){i=e}i instanceof Error&&!(i.message in h)&&(h[i.message]=!0,o())}}(n,t.propTypes,e.props,l.prop),t.getDefaultProps}}var s=n(12),l=n(53),c=(n(54),n(18)),u=(n(51),n(80)),d=n(3),p=(n(6),{}),h={},m={createElement:function(e,t,n){var o="string"==typeof e||"function"==typeof e,r=s.createElement.apply(this,arguments);if(null==r)return r;if(o)for(var l=2;l<arguments.length;l++)a(arguments[l],e);return i(r),r},createFactory:function(e){var t=m.createElement.bind(null,e);return t.type=e,t},cloneElement:function(e,t,n){for(var o=s.cloneElement.apply(this,arguments),r=2;r<arguments.length;r++)a(arguments[r],o.type);return i(o),o}};e.exports=m},function(e,t,n){"use strict";function o({value:e,onUpdate:t,configs:n,sourceElement:o,internalState:r,state:i}){return a.a.createElement("table",{className:"PropertyString",style:c.a.tableStyle},a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",{style:c.a.firstTdStyle},a.a.createElement(l.g,null,n.label)),a.a.createElement("td",null,a.a.createElement(l.k,{value:e,onChange:e=>(e=>n.hook?n.hook(e,o,r,i).then(e=>t(e)):t(e))(e.target.value)})))))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(14),c=n(23);o.propTypes={value:s.a.any.isRequired,onUpdate:s.a.func.isRequired,configs:s.a.object.isRequired,sourceElement:s.a.object,internalState:s.a.object,state:s.a.object.isRequired}},function(e,t,n){"use strict";function o({value:e,onUpdate:t,onValid:n,configs:o,sourceElement:r,internalState:i,state:s},{catalog:c}){let p=e.get("length")||0,w=e.get("_length")||p,x=e.get("_unit")||l.UNIT_CENTIMETER,{hook:v,label:M}=o,b=(function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}(o,["hook","label"]),(n,o)=>{let a=Object(h.toFixedFloat)(n),c=e.merge({length:o!==l.UNIT_CENTIMETER?u()(a).from(o).to(l.UNIT_CENTIMETER):a,_length:n,_unit:o});return v?v(c,r,i,s).then(e=>t(e)):t(c)});return a.a.createElement("table",{className:"PropertyLengthMeasure",style:m.a.tableStyle},a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",{style:m.a.firstTdStyle},a.a.createElement(d.g,null,M)),a.a.createElement("td",{style:y},a.a.createElement("table",{style:f},a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",null,a.a.createElement(d.h,{value:w,onChange:e=>b(e.target.value,x),onValid:n,configs:o})),a.a.createElement("td",{style:g},a.a.createElement(d.i,{value:x,onChange:e=>b(w,e.target.value)},l.UNITS_LENGTH.map(e=>a.a.createElement("option",{key:e,value:e},e)))))))))))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(5),c=n(56),u=n.n(c),d=n(14),p=n(8),h=(n.n(p),n(57)),m=n(23);const f={borderCollapse:"collapse"},y={padding:0},g={width:"5em"};o.propTypes={value:s.a.instanceOf(p.Map).isRequired,onUpdate:s.a.func.isRequired,onValid:s.a.func,configs:s.a.object.isRequired,sourceElement:s.a.object,internalState:s.a.object,state:s.a.object.isRequired},o.contextTypes={catalog:s.a.object.isRequired}},function(e,t,n){var o=n(85),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t,n=e,a=[];if(!n)return a;if(!o[typeof e])return a;for(t in n)r.call(n,t)&&a.push(t);return a}},function(e,t,n){var o=n(323),r=n(330),a=n(87),i=n(331),s=/^\s*function[ \n\r\t]+\w/,l=/\bthis\b/,c=Function.prototype.toString;e.exports=function(e,t,n){if("function"!=typeof e)return r;if(void 0===t||!("prototype"in e))return e;var u=e.__bindData__;if(void 0===u&&(i.funcNames&&(u=!e.name),!(u=u||!i.funcDecomp))){var d=c.call(e);i.funcNames||(u=!s.test(d)),u||(u=l.test(d),a(e,u))}if(!1===u||!0!==u&&1&u[1])return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)};case 4:return function(n,o,r,a){return e.call(t,n,o,r,a)}}return o(e,t)}},function(e,t){e.exports=function(e,t,n){t||(t=0),void 0===n&&(n=e?e.length:0);for(var o=-1,r=n-t||0,a=Array(r<0?0:r);++o<r;)a[o]=e[t+o];return a}},function(e,t,n){"use strict";var o=n(357),r=n(358);class a{constructor(){this.locale=null,this.translations={},this.registerTranslation("en",o.a),this.registerTranslation("it",r.a);let e=null,t=a.getBrowserLanguages();for(let n=0;n<t.length;n++){let o=t[n];if(this.translations.hasOwnProperty(o)){e=o;break}}e=e||"en",this.setLocale(e)}t(e,...t){return this.translate(e,...t)}translate(e,...t){let n=this.locale,o=this.translations[n];if(!o.hasOwnProperty(e))return console.warn(`translation '${e}' not found in language '${n}'`),e;let r=o[e];return r=r.replace(/{(\d+)}/g,function(e,n){return void 0!==t[n]?t[n]:e})}setLocale(e){e=e.toLowerCase(),this.translations.hasOwnProperty(e)?this.locale=e:(console.warn(`locale '${e}' not available, switch to en`),this.locale="en".toLowerCase())}registerTranslation(e,t){this.translations.hasOwnProperty(e)?Object.assign(this.translations[e],t):this.translations[e]=t}static getBrowserLanguages(){return navigator.languages?navigator.languages:[navigator.language||navigator.userLanguage]}}t.a=a},function(e,t,n){"use strict";var o=n(360),r=n(373),a=n(374),i=n(375),s=n(155),l=n(376),c=n(377),u=n(378),d=n(379);n.d(t,"a",function(){return o.a}),n.d(t,"b",function(){return r.a}),n.d(t,"c",function(){return a.a}),n.d(t,"d",function(){return i.a}),n.d(t,"e",function(){return s.a}),n.d(t,"f",function(){return l.a}),n.d(t,"g",function(){return c.a}),n.d(t,"h",function(){return u.a}),n.d(t,"i",function(){return d.a});o.a,r.a,a.a,i.a,s.a,l.a,c.a,u.a,d.a},function(e,t,n){"use strict";var o=n(361);class r{acquireID(){return o.generate()}}let a=new r;t.a=a},function(e,t,n){"use strict";var o=n(364);e.exports=function(e,t){for(var n,r=0,a="";!n;)a+=e(t>>4*r&15|o()),n=t<Math.pow(16,r+1),r++;return a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=new c.List,o=new r.a(e.length);t.forEach(e=>{o.addEdge(e[0],e[1]),o.addEdge(e[1],e[0])}),o.BCC();let a=o.subgraphs.filter(e=>e.length>=3),s=[];return i()(a,o).forEach(e=>{e.forEach(e=>s.push(e))}),l()(e,s).v_cycles.forEach(e=>{e.shift(),n=n.push(e)}),n},t.isClockWiseOrder=function(e){let t=0,n=0,o=e.size;for(t=0;t<o;t++){let{x:r,y:a}=e.get(t),{x:i,y:s}=e.get((t+1)%o);n+=(i-r)*(s+a)}return n>0};var o=n(370),r=n.n(o),a=n(371),i=n.n(a),s=n(372),l=n.n(s),c=n(8);n.n(c)},function(e,t,n){"use strict";function o(e){let t=e.sceneHistory;if(t.isEmpty())return e;let n=t.last().update("layers",e=>e.map(s.o));return e.merge({mode:a.MODE_IDLE,scene:n,sceneHistory:e.sceneHistory.push(n),snapElements:new r.List,activeSnapElement:null,drawingSupport:new r.Map,draggingSupport:new r.Map,rotatingSupport:new r.Map})}t.b=o;var r=n(8),a=(n.n(r),n(5)),i=n(42),s=n(24);t.a=function(e,t){switch(t.type){case a.NEW_PROJECT:return new i.State;case a.LOAD_PROJECT:return function(e,t){return new i.State({scene:t,catalog:e.catalog.toJS()})}(e,t.sceneJSON);case a.OPEN_CATALOG:return function(e){return o(e).set("mode",a.MODE_VIEWING_CATALOG)}(e);case a.CHANGE_CATALOG_PAGE:return e.setIn(["catalog","page"],t.newPage).updateIn(["catalog","path"],e=>e.push(t.oldPage));case a.GO_BACK_TO_CATALOG_PAGE:e.catalog.path;let n=e.catalog.path.findIndex(e=>e===t.newPage);return e.setIn(["catalog","page"],t.newPage).updateIn(["catalog","path"],e=>e.take(n));case a.SELECT_TOOL_EDIT:return e.set("mode",a.MODE_IDLE);case a.UNSELECT_ALL:return function(e){let t=e.scene;return t=t.update("layers",e=>e.map(s.o)),e.merge({scene:t,sceneHistory:e.sceneHistory.push(t)})}(e);case a.SET_PROPERTIES:return function(e,t){let n=e.scene;return n=n.set("layers",n.layers.map(e=>Object(s.m)(e,t))),e.merge({scene:n,sceneHistory:e.sceneHistory.push(n)})}(e,t.properties);case a.SET_ITEMS_ATTRIBUTES:return function(e,t){let n=e.scene;return n=n.set("layers",n.layers.map(n=>Object(s.l)(n,t,e.catalog))),e.merge({scene:n,sceneHistory:e.sceneHistory.push(n)})}(e,t.itemsAttributes);case a.SET_LINES_ATTRIBUTES:return function(e,t){let n=e.scene;return n=n.set("layers",n.layers.map(n=>Object(s.l)(n,t,e.catalog))),e.merge({scene:n,sceneHistory:e.sceneHistory.push(n)})}(e,t.linesAttributes);case a.SET_HOLES_ATTRIBUTES:return function(e,t){let n=e.scene;return n=n.set("layers",n.layers.map(n=>Object(s.l)(n,t,e.catalog))),e.merge({scene:n,sceneHistory:e.sceneHistory.push(n)})}(e,t.holesAttributes);case a.REMOVE:return function(e){let t=e.scene,n=e.catalog;return t=t.updateIn(["layers",t.selectedLayer],e=>e.withMutations(e=>{let{lines:t,holes:o,items:r}=e.selected;Object(s.o)(e),t.forEach(t=>Object(s.i)(e,t)),o.forEach(t=>Object(s.g)(e,t)),r.forEach(t=>Object(s.h)(e,t)),Object(s.e)(e,n)})),e.merge({scene:t,sceneHistory:e.sceneHistory.push(t)})}(e);case a.UNDO:return function(e){let t=e.sceneHistory;switch(e.scene===t.last()&&!t.size>1&&(t=t.pop()),t.size){case 0:return e;case 1:return e.merge({mode:a.MODE_IDLE,scene:t.last()});default:return e.merge({mode:a.MODE_IDLE,scene:t.last(),sceneHistory:t.pop()})}}(e);case a.ROLLBACK:return o(e);case a.SET_PROJECT_PROPERTIES:return function(e,t){let n=e.scene.merge(t);return e.merge({mode:a.MODE_IDLE,scene:n,sceneHistory:e.sceneHistory.push(n)})}(e,t.properties);case a.OPEN_PROJECT_CONFIGURATOR:return function(e){return e.merge({mode:a.MODE_CONFIGURING_PROJECT})}(e);case a.INIT_CATALOG:return function(e,t){return e.set("catalog",new i.Catalog(t))}(e,t.catalog);case a.UPDATE_MOUSE_COORDS:return function(e,t){return e.set("mouse",new r.Map(t))}(e,t.coords);case a.UPDATE_ZOOM_SCALE:return function(e,t){return e.set("zoom",t)}(e,t.scale);case a.TOGGLE_SNAP:return function(e,t){return e.set("snapMask",t)}(e,t.mask);case a.THROW_ERROR:return function(e,t){return e.set("errors",e.get("errors").push({date:Date.now(),error:t}))}(e,t.error);case a.THROW_WARNING:return l(e,t.warning);case a.COPY_PROPERTIES:return c(e,t.properties);case a.PASTE_PROPERTIES:return u(e);case a.PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY:return d(e,t.element);default:return e}};const l=(e,t)=>e.set("warnings",e.get("warnings").push({date:Date.now(),warning:t})),c=(e,t)=>e.set("clipboardProperties",t.toJS()),u=e=>(function(e,t){let n=e.scene;return n=n.set("layers",n.layers.map(e=>Object(s.p)(e,t))),e.merge({scene:n,sceneHistory:e.sceneHistory.push(n)})})(e,e.get("clipboardProperties")),d=(e,t)=>{let n=e.selectedElementsHistory,o=n.findIndex(e=>e.name===t.name);return-1!==o&&(n=n.splice(o,1)),n=n.splice(0,0,t),e.set("selectedElementsHistory",n)}},function(e,t,n){!function(t,o){e.exports=o(n(0),n(2))}(0,function(e,t){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=13)}([function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return a}),n.d(t,"i",function(){return i}),n.d(t,"j",function(){return s}),n.d(t,"k",function(){return l}),n.d(t,"l",function(){return c}),n.d(t,"m",function(){return u}),n.d(t,"f",function(){return d}),n.d(t,"h",function(){return p}),n.d(t,"g",function(){return h}),n.d(t,"d",function(){return m}),n.d(t,"e",function(){return f});var o="idle",r="panning",a="zooming",i="auto",s="none",l="pan",c="zoom-in",u="zoom-out",d="none",p="top",h="right",m="bottom",f="left"},function(e,t,n){"use strict";function o(e,t){return e=Object.assign({},e,t),Object.freeze(e)}t.b=function(e,t,n,s){return o({},i({},Object(a.identity)(),{version:2,mode:r.a,focus:!1,pinchPointDistance:null,prePinchMode:null,viewerWidth:e,viewerHeight:t,SVGWidth:n,SVGHeight:s,startX:null,startY:null,endX:null,endY:null,miniatureOpen:!0}))},t.f=o,t.c=function(e,t,n){var o=Object(a.fromObject)(e),r=Object(a.inverse)(o);return Object(a.applyToPoint)(r,{x:t,y:n})},t.a=function(e){var t=Object(a.fromObject)(e);return{scaleFactor:t.a,translationX:t.e,translationY:t.f}},t.g=function(e,t){return o(e,{focus:t})},t.j=function(e,t,n){return o(e,{viewerWidth:t,viewerHeight:n})},t.i=function(e,t,n){return o(e,{SVGWidth:t,SVGHeight:n})},t.h=function(e,t,n,s){var l=e.viewerWidth,c=e.viewerHeight,u=Object(a.transform)(Object(a.translate)(l/2-t,c/2-n),Object(a.translate)(t,n),Object(a.scale)(s,s),Object(a.translate)(-t,-n));return o(e,i({mode:r.a},u))},t.d=function(e){return o(e,i({mode:r.a},Object(a.identity)()))},t.e=function(e){return o(e,{mode:r.a,startX:null,startY:null,endX:null,endY:null})};var r=n(1),a=n(4),i=(n.n(a),"function"==typeof Symbol&&Symbol.iterator,Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e})},function(e,n){e.exports=t},function(e,t,n){e.exports=function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1);n.d(t,"applyToPoint",function(){return o.a}),n.d(t,"applyToPoints",function(){return o.b});var r=n(2);n.d(t,"fromObject",function(){return r.a});var a=n(3);n.d(t,"fromString",function(){return a.a});var i=n(4);n.d(t,"identity",function(){return i.a});var s=n(5);n.d(t,"inverse",function(){return s.a});var l=n(6);n.d(t,"isAffineMatrix",function(){return l.a});var c=n(7);n.d(t,"rotate",function(){return c.a}),n.d(t,"rotateDEG",function(){return c.b});var u=n(8);n.d(t,"scale",function(){return u.a});var d=n(9);n.d(t,"shear",function(){return d.a});var p=n(10);n.d(t,"toCSS",function(){return p.a}),n.d(t,"toSVG",function(){return p.b}),n.d(t,"toString",function(){return p.c});var h=n(11);n.d(t,"transform",function(){return h.a});var m=n(12);n.d(t,"translate",function(){return m.a})},function(e,t,n){"use strict";function o(e,t){return{x:e.a*t.x+e.c*t.y+e.e,y:e.b*t.x+e.d*t.y+e.f}}t.a=o,t.b=function(e,t){return t.map(function(t){return o(e,t)})}},function(e,t,n){"use strict";t.a=function(e){return{a:parseFloat(e.a),b:parseFloat(e.b),c:parseFloat(e.c),d:parseFloat(e.d),e:parseFloat(e.e),f:parseFloat(e.f)}}},function(e,t,n){"use strict";t.a=function(e){var t=e.match(o);if(null===t||t.length<7)throw new Error("'"+e+"' is not a matrix");return{a:parseFloat(t[1]),b:parseFloat(t[2]),c:parseFloat(t[3]),d:parseFloat(t[4]),e:parseFloat(t[5]),f:parseFloat(t[6])}};var o=/^matrix\( *([0-9]*\.?[0-9]+) *, *([0-9]*\.?[0-9]+) *, *([0-9]*\.?[0-9]+) *, *([0-9]*\.?[0-9]+) *, *([0-9]*\.?[0-9]+) *, *([0-9]*\.?[0-9]+) *\)$/i},function(e,t,n){"use strict";t.a=function(){return{a:1,c:0,e:0,b:0,d:1,f:0}}},function(e,t,n){"use strict";t.a=function(e){var t=e.a,n=e.b,o=e.c,r=e.d,a=e.e,i=e.f,s=t*r-n*o;return{a:r/s,b:n/-s,c:o/-s,d:t/s,e:(r*a-o*i)/-s,f:(n*a-t*i)/s}}},function(e,t,n){"use strict";t.a=function(e){var t=function(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)};return"object"===(void 0===e?"undefined":o(e))&&e.hasOwnProperty("a")&&t(e.a)&&e.hasOwnProperty("b")&&t(e.b)&&e.hasOwnProperty("c")&&t(e.c)&&e.hasOwnProperty("d")&&t(e.d)&&e.hasOwnProperty("e")&&t(e.e)&&e.hasOwnProperty("f")&&t(e.f)};var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}},function(e,t,n){"use strict";function o(e){var t=r(e),n=a(e);return{a:t,c:-n,e:0,b:n,d:t,f:0}}t.a=o,t.b=function(e){return o(e*i/180)};var r=Math.cos,a=Math.sin,i=Math.PI},function(e,t,n){"use strict";t.a=function(e,t){return{a:e,c:0,e:0,b:0,d:t,f:0}}},function(e,t,n){"use strict";t.a=function(e,t){return{a:1,c:e,e:0,b:t,d:1,f:0}}},function(e,t,n){"use strict";function o(e){return"matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")"}t.a=function(e){return o(e)},t.b=function(e){return o(e)},t.c=o},function(e,t,n){"use strict";function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e,t){return{a:e.a*t.a+e.c*t.b,c:e.a*t.c+e.c*t.d,e:e.a*t.e+e.c*t.f+e.e,b:e.b*t.a+e.d*t.b,d:e.b*t.c+e.d*t.d,f:e.b*t.e+e.d*t.f+e.f}};switch((t=Array.isArray(t[0])?t[0]:t).length){case 0:throw new Error("no matrices provided");case 1:return t[0];case 2:return r(t[0],t[1]);default:var a=function(e){return Array.isArray(e)?e:Array.from(e)}(t),i=a[0],s=a[1],l=a.slice(2),c=r(i,s);return o.apply(void 0,[c].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(l)))}}t.a=o},function(e,t,n){"use strict";t.a=function(e,t){return{a:1,c:0,e:e,b:0,d:1,f:t}}}])},function(e,t,n){"use strict";function o(e,t,n,o){var r=Object(a.transform)(Object(a.fromObject)(e),Object(a.translate)(t,n),Object(a.scale)(o,o),Object(a.translate)(-t,-n));return Object(s.f)(e,c({mode:i.a},r,{startX:null,startY:null,endX:null,endY:null}))}function r(e,t,n,o,r){var l=e.viewerWidth/o,u=e.viewerHeight/r,d=Math.min(l,u),p=Object(a.transform)(Object(a.scale)(d,d),Object(a.translate)(-t,-n));return Object(s.f)(e,c({mode:i.a},p,{startX:null,startY:null,endX:null,endY:null}))}t.f=o,t.a=r,t.b=function(e){return r(e,0,0,e.SVGWidth,e.SVGHeight)},t.g=function(e,t){var n=e.viewerWidth,r=e.viewerHeight,a=Object(s.c)(e,n/2,r/2);return o(e,a.x,a.y,t)},t.c=function(e,t,n){return Object(s.f)(e,{mode:i.c,startX:t,startY:n,endX:t,endY:n})},t.e=function(e,t,n){if(e.mode!==i.c)throw new Error("update selection not allowed in this mode "+e.mode);return Object(s.f)(e,{endX:t,endY:n})},t.d=function(e,t,n,a){var i=e.startX,c=e.startY,u=e.endX,d=e.endY,p=Object(s.c)(e,i,c),h=Object(s.c)(e,u,d);if(Math.abs(i-u)>7&&Math.abs(c-d)>7){var m=Object(l.a)(p,h);return r(e,m.x,m.y,m.width,m.height)}var f=Object(s.c)(e,t,n);return o(e,f.x,f.y,a)};var a=n(4),i=(n.n(a),n(1)),s=n(2),l=n(10),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}},function(e,t,n){"use strict";function o(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,c=Object(i.transform)(Object(i.fromObject)(e),Object(i.translate)(t,n));if(o){var u=Object(i.applyToPoints)(c,[{x:o,y:o},{x:e.SVGWidth-o,y:e.SVGHeight-o}]),d=l(u,2),p=d[0],h=p.x,m=p.y,f=d[1],y=f.x,g=f.y,w=0;e.viewerWidth-h<0?w=e.viewerWidth-h:y<0&&(w=-y);var x=0;e.viewerHeight-m<0?x=e.viewerHeight-m:g<0&&(x=-g),c=Object(i.transform)(Object(i.translate)(w,x),c)}return Object(a.f)(e,s({mode:r.a},c))}t.b=o,t.c=function(e,t,n){return Object(a.f)(e,{mode:r.b,startX:t,startY:n,endX:t,endY:n})},t.e=function(e,t,n,i){if(e.mode!==r.b)throw new Error("update pan not allowed in this mode "+e.mode);var s=e.endX,l=e.endY,c=Object(a.c)(e,s,l),u=Object(a.c)(e,t,n),d=o(e,u.x-c.x,u.y-c.y,i);return Object(a.f)(d,{mode:r.b,endX:t,endY:n})},t.d=function(e){return Object(a.f)(e,{mode:r.a,startX:null,startY:null,endX:null,endY:null})},t.a=function(e,t,n){var r=0,a=0;return n<=20&&(a=20),e.viewerWidth-t<=20&&(r=-20),e.viewerHeight-n<=20&&(a=-20),t<=20&&(r=20),r/=e.d,a/=e.d,0===r&&0===a?e:o(e,r,a)};var r=n(1),a=n(2),i=n(4),s=(n.n(i),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}),l=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(o=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,a=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){"use strict";t.b=function(e){return Object(o.f)(e,{miniatureOpen:!0})},t.a=function(e){return Object(o.f)(e,{miniatureOpen:!1})};var o=n(2)},function(e,t,n){"use strict";var o=n(2),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function(){function e(t,n,o){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.originalEvent=t,this.value=n,this.SVGViewer=o}return r(e,[{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"scaleFactor",get:function(){return this._cacheDecomposedValue=this._cacheDecomposedValue||Object(o.a)(this.value),this._cacheDecomposedValue.scaleFactor}},{key:"translationX",get:function(){return this._cacheDecomposedValue=this._cacheDecomposedValue||Object(o.a)(this.value),this._cacheDecomposedValue.translationX}},{key:"translationY",get:function(){return this._cacheDecomposedValue=this._cacheDecomposedValue||Object(o.a)(this.value),this._cacheDecomposedValue.translationY}}]),e}();t.a=a},function(e,t,n){"use strict";t.c=function(e,t,n,s,l){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,u=void 0,d=void 0;if(c)u=c.x,d=c.y;else{var p=t.getBoundingClientRect(),h=p.left,m=p.top;u=e.clientX-Math.round(h),d=e.clientY-Math.round(m)}var f=s;switch(n){case o.m:var y=Object(r.c)(s,u,d);f=Object(i.f)(s,y.x,y.y,1/l.scaleFactor);break;case o.l:f=Object(i.c)(s,u,d);break;case o.i:case o.k:f=Object(a.c)(s,u,d);break;default:return s}return e.preventDefault(),f},t.e=function(e,t,n,r,s){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c=void 0,u=void 0;if(l)c=l.x,u=l.y;else{var d=t.getBoundingClientRect(),p=d.left,h=d.top;c=e.clientX-Math.round(p),u=e.clientY-Math.round(h)}var m=0===e.buttons,f=r;switch(n){case o.l:r.mode===o.c&&(f=m?Object(i.d)(r,c,u,s.scaleFactor):Object(i.e)(r,c,u));break;case o.i:case o.k:r.mode===o.b&&(f=m?Object(a.d)(r):Object(a.e)(r,c,u,s.preventPanOutside?20:void 0));break;default:return r}return e.preventDefault(),f},t.f=function(e,t,n,r,s){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c=void 0,u=void 0;if(l)c=l.x,u=l.y;else{var d=t.getBoundingClientRect(),p=d.left,h=d.top;c=e.clientX-Math.round(p),u=e.clientY-Math.round(h)}var m=r;switch(n){case o.m:r.mode===o.c&&(m=Object(i.d)(r,c,u,1/s.scaleFactor));break;case o.l:r.mode===o.c&&(m=Object(i.d)(r,c,u,s.scaleFactor));break;case o.i:case o.k:r.mode===o.b&&(m=Object(a.d)(r,c,u));break;default:return r}return e.preventDefault(),m},t.a=function(e,t,n,a,s){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c=void 0,u=void 0;if(l)c=l.x,u=l.y;else{var d=t.getBoundingClientRect(),p=d.left,h=d.top;c=e.clientX-Math.round(p),u=e.clientY-Math.round(h)}var m=a;switch(n){case o.i:if(!s.disableDoubleClickZoomWithToolAuto){var f=Object(r.c)(a,c,u),y=function(t,n){return t||e.getModifierState(n)},g=s.modifierKeys.reduce(y,!1)?1/s.scaleFactor:s.scaleFactor;m=Object(i.f)(a,f.x,f.y,g)}break;default:return a}return e.preventDefault(),m},t.g=function(e,t,n,o,a){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c=void 0,u=void 0;if(l)c=l.x,u=l.y;else{var d=t.getBoundingClientRect(),p=d.left,h=d.top;c=e.clientX-Math.round(p),u=e.clientY-Math.round(h)}if(!a.detectWheel)return o;var m=Math.max(-1,Math.min(1,e.deltaY)),f=Object(s.a)(m,-1,1,1.06,.96),y=Object(r.c)(o,c,u),g=Object(i.f)(o,y.x,y.y,f);return e.preventDefault(),g},t.d=function(e,t,n,o,a){var i=(arguments.length>5&&void 0!==arguments[5]&&arguments[5],Object(r.g)(o,"mouseenter"===e.type));return e.preventDefault(),i},t.b=function(e,t,n,r,i){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,l=s.x,c=s.y;return[o.j,o.i].indexOf(n)>=0&&i.detectAutoPan&&r.focus?Object(a.a)(r,l,c):r};var o=n(1),r=n(2),a=n(6),i=n(5),s=n(18)},function(e,t,n){"use strict";t.a=function(e,t){return e.x<=t.x&&e.y<=t.y?{x:e.x,y:e.y,width:t.x-e.x,height:t.y-e.y}:e.x>=t.x&&e.y<=t.y?{x:t.x,y:e.y,width:e.x-t.x,height:t.y-e.y}:e.x>=t.x&&e.y>=t.y?{x:t.x,y:t.y,width:e.x-t.x,height:e.y-t.y}:e.x<=t.x&&e.y>=t.y?{x:e.x,y:t.y,width:t.x-e.x,height:e.y-t.y}:void 0}},function(e,t,n){"use strict";function o(e){var t=e.tool,n=e.value,o=e.onChangeValue,r=e.onChangeTool,i=e.position,s=function(e,t){r(t),e.stopPropagation(),e.preventDefault()},y=[l.h,l.d].indexOf(i)>=0,g={position:"absolute",transform:[l.h,l.d].indexOf(i)>=0?"translate(-50%, 0px)":"none",top:[l.e,l.g,l.h].indexOf(i)>=0?"5px":"unset",left:[l.h,l.d].indexOf(i)>=0?"50%":l.e===i?"5px":"unset",right:[l.g].indexOf(i)>=0?"5px":"unset",bottom:[l.d].indexOf(i)>=0?"5px":"unset",backgroundColor:"rgba(19, 20, 22, 0.90)",borderRadius:"2px",display:"flex",flexDirection:y?"row":"column",padding:y?"1px 2px":"2px 1px"};return a.a.createElement("div",{style:g,role:"toolbar"},a.a.createElement(f.a,{toolbarPosition:i,active:t===l.j,name:"unselect-tools",title:"Selection",onClick:function(e){return s(e,l.j)}},a.a.createElement(u.a,null)),a.a.createElement(f.a,{toolbarPosition:i,active:t===l.k,name:"select-tool-pan",title:"Pan",onClick:function(e){return s(e,l.k)}},a.a.createElement(d.a,null)),a.a.createElement(f.a,{toolbarPosition:i,active:t===l.l,name:"select-tool-zoom-in",title:"Zoom in",onClick:function(e){return s(e,l.l)}},a.a.createElement(p.a,null)),a.a.createElement(f.a,{toolbarPosition:i,active:t===l.m,name:"select-tool-zoom-out",title:"Zoom out",onClick:function(e){return s(e,l.m)}},a.a.createElement(h.a,null)),a.a.createElement(f.a,{toolbarPosition:i,active:!1,name:"fit-to-viewer",title:"Fit to viewer",onClick:function(e){return function(e){o(Object(c.b)(n)),e.stopPropagation(),e.preventDefault()}(e)}},a.a.createElement(m.a,null)))}t.a=o;var r=n(0),a=n.n(r),i=n(3),s=n.n(i),l=n(1),c=n(5),u=n(23),d=n(24),p=n(25),h=n(26),m=n(27),f=n(28);o.propTypes={position:s.a.oneOf([l.h,l.g,l.d,l.e]).isRequired,tool:s.a.string.isRequired,value:s.a.object.isRequired,onChangeValue:s.a.func.isRequired,onChangeTool:s.a.func.isRequired}},function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){var t,n=e.value,r=e.onChangeValue,a=e.position,s=e.children,l=e.background,m=e.SVGBackground,f=e.width,y=e.height,g=n.SVGWidth,w=n.SVGHeight,x=n.viewerWidth,v=n.viewerHeight,M=w/g,b=M>=1?y/w:f/g,E=Object(u.applyToPoints)(Object(u.inverse)(n),[{x:0,y:0},{x:x,y:v}]),_=h(E,2),O=_[0],T=O.x,I=O.y,q=_[1],P=q.x,D=q.y,C=void 0,S=void 0;n.miniatureOpen?(C=f,S=y):(C=24,S=24);var G=(t={position:"absolute",overflow:"hidden",outline:"1px solid rgba(19, 20, 22, 0.90)",transition:"width 200ms ease, height 200ms ease, bottom 200ms ease",width:C+"px",height:S+"px",bottom:"6px"},o(t,a===c.e?"left":"right","6px"),o(t,"background",l),t),k=M>=1?"translate("+(f-g*b)/2+", 0)":"translate(0, "+(y-w*b)/2+")";return i.a.createElement("div",{role:"navigation",style:G},i.a.createElement("svg",{width:f,height:y,style:{pointerEvents:"none"}},i.a.createElement("g",{transform:k},i.a.createElement("g",{transform:"scale("+b+", "+b+")"},i.a.createElement("rect",{fill:m,x:0,y:0,width:n.SVGWidth,height:n.SVGHeight}),s,i.a.createElement(p.a,{SVGWidth:g,SVGHeight:w,x1:T,y1:I,x2:P,y2:D,zoomToFit:b})))),i.a.createElement(d.a,{value:n,onChangeValue:r,position:a}))}t.a=r;var a=n(0),i=n.n(a),s=n(3),l=n.n(s),c=n(1),u=n(4),d=(n.n(u),n(30)),p=n(32),h=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(o=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,a=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();Math.min,Math.max,r.propTypes={position:l.a.oneOf([c.g,c.e]).isRequired,value:l.a.object.isRequired,onChangeValue:l.a.func.isRequired,background:l.a.string.isRequired,SVGBackground:l.a.string.isRequired,width:l.a.number.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Viewer",function(){return d});var o=n(14);n.d(t,"ReactSVGPanZoom",function(){return o.a});var r=n(11);n.d(t,"Toolbar",function(){return r.a});var a=n(12);n.d(t,"Miniature",function(){return a.a});var i=n(2);n.d(t,"setPointOnViewerCenter",function(){return i.h}),n.d(t,"reset",function(){return i.d});var s=n(6);n.d(t,"pan",function(){return s.b});var l=n(5);n.d(t,"zoom",function(){return l.f}),n.d(t,"fitSelection",function(){return l.a}),n.d(t,"fitToViewer",function(){return l.b}),n.d(t,"zoomOnViewerCenter",function(){return l.g});var c=n(7);n.d(t,"openMiniature",function(){return c.b}),n.d(t,"closeMiniature",function(){return c.a});var u=n(1);n.d(t,"MODE_IDLE",function(){return u.a}),n.d(t,"MODE_PANNING",function(){return u.b}),n.d(t,"MODE_ZOOMING",function(){return u.c}),n.d(t,"TOOL_AUTO",function(){return u.i}),n.d(t,"TOOL_NONE",function(){return u.j}),n.d(t,"TOOL_PAN",function(){return u.k}),n.d(t,"TOOL_ZOOM_IN",function(){return u.l}),n.d(t,"TOOL_ZOOM_OUT",function(){return u.m}),n.d(t,"POSITION_NONE",function(){return u.f}),n.d(t,"POSITION_TOP",function(){return u.h}),n.d(t,"POSITION_RIGHT",function(){return u.g}),n.d(t,"POSITION_BOTTOM",function(){return u.d}),n.d(t,"POSITION_LEFT",function(){return u.e});var d=function(){return console.error("HEY! You are trying to use an older version of ReactSVGPanZoom. Read here https://github.com/chrvadala/react-svg-pan-zoom/blob/master/docs/migrate-from-v1-to-v2.md"),null}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(3),i=n.n(a),s=n(4),l=(n.n(s),n(15)),c=n(6),u=n(2),d=n(9),p=n(19),h=n(5),m=n(7),f=n(20),y=n(21),g=n(22),w=n(11),x=n(29),v=n(12),M=n(1),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},E=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),_=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r=o.props,a=r.tool,i=r.value,s=r.width,l=r.height,c=r.children.props,d=c.width,p=c.height;return o.state={value:i||Object(u.b)(s,l,d,p),tool:a||M.j},o.ViewerDOM=null,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.a.Component),E(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.getValue(),n=!1,o=t;t.viewerWidth===e.width&&t.viewerHeight===e.height||(o=Object(u.j)(o,e.width,e.height),n=!0);var r=e.children.props,a=r.width,i=r.height;t.SVGWidth===a&&t.SVGHeight===i||(o=Object(u.i)(o,a,i),n=!0),n&&this.setValue(o)}},{key:"getValue",value:function(){return this.props.value?this.props.value:this.state.value}},{key:"getTool",value:function(){return this.props.tool?this.props.tool:this.state.tool}},{key:"getSvgStyle",value:function(e){var t={display:"block"};return e&&(t.cursor=e),(this.props.detectPinchGesture||-1!==[M.k,M.i].indexOf(this.getTool()))&&(t.touchAction="none"),t}},{key:"setValue",value:function(e){this.setState({value:e}),this.props.onChangeValue&&this.props.onChangeValue(e)}},{key:"pan",value:function(e,t){var n=Object(c.b)(this.getValue(),e,t);this.setValue(n)}},{key:"zoom",value:function(e,t,n){var o=Object(h.f)(this.getValue(),e,t,n);this.setValue(o)}},{key:"fitSelection",value:function(e,t,n,o){var r=Object(h.a)(this.getValue(),e,t,n,o);this.setValue(r)}},{key:"fitToViewer",value:function(){var e=Object(h.b)(this.getValue());this.setValue(e)}},{key:"zoomOnViewerCenter",value:function(e){var t=Object(h.g)(this.getValue(),e);this.setValue(t)}},{key:"setPointOnViewerCenter",value:function(e,t,n){var o=Object(u.h)(this.getValue(),e,t,n);this.setValue(o)}},{key:"reset",value:function(){var e=Object(u.d)(this.getValue());this.setValue(e)}},{key:"changeTool",value:function(e){this.setState({tool:e}),this.props.onChangeTool&&this.props.onChangeTool(e)}},{key:"openMiniature",value:function(){var e=Object(m.b)(this.getValue());this.setValue(e)}},{key:"closeMiniature",value:function(){var e=Object(m.a)(this.getValue());this.setValue(e)}},{key:"handleViewerEvent",value:function(e){var t=this.props,n=this.state.value,o=this.ViewerDOM;if([M.j,M.i].indexOf(this.getTool())>=0&&e.target!==o){var r={click:t.onClick,dblclick:t.onDoubleClick,mousemove:t.onMouseMove,mouseup:t.onMouseUp,mousedown:t.onMouseDown,touchstart:t.onTouchStart,touchmove:t.onTouchMove,touchend:t.onTouchEnd,touchcancel:t.onTouchCancel}[e.type];r&&r(Object(l.a)(e,n,o))}}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=this.state;t.onChangeValue&&t.onChangeValue(n.value),this.autoPanTimer=setInterval(function(){var t={x:e.state.viewerX,y:e.state.viewerY},n=Object(d.b)(null,e.ViewerDOM,e.getTool(),e.getValue(),e.props,t);e.getValue()!==n&&e.setValue(n)},200)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.autoPanTimer)}},{key:"render",value:function(){var e=this,t=this.props,n=this.state,o=n.viewerX,a=n.viewerY,i=this.getTool(),l=this.getValue(),c=t.customToolbar,u=t.customMiniature,h=i===M.i&&l.mode===M.b&&l.startX!==l.endX&&l.startY!==l.endY,m=void 0;i===M.k&&(m=Object(f.a)(l.mode===M.b?"grabbing":"grab")),i===M.l&&(m=Object(f.a)("zoom-in")),i===M.m&&(m=Object(f.a)("zoom-out")),h&&(m=Object(f.a)("grabbing"));var w=[M.k,M.l,M.m].indexOf(i)>=0;return w=w||h,r.a.createElement("div",{style:b({position:"relative",width:l.viewerWidth,height:l.viewerHeight},t.style),className:this.props.className},r.a.createElement("svg",{ref:function(t){return e.ViewerDOM=t},width:l.viewerWidth,height:l.viewerHeight,style:this.getSvgStyle(m),onMouseDown:function(t){var n=Object(d.c)(t,e.ViewerDOM,e.getTool(),e.getValue(),e.props);e.getValue()!==n&&e.setValue(n),e.handleViewerEvent(t)},onMouseMove:function(t){var n=e.ViewerDOM.getBoundingClientRect(),o=n.left,r=n.top,a=t.clientX-Math.round(o),i=t.clientY-Math.round(r),s=Object(d.e)(t,e.ViewerDOM,e.getTool(),e.getValue(),e.props,{x:a,y:i});e.getValue()!==s&&e.setValue(s),e.setState({viewerX:a,viewerY:i}),e.handleViewerEvent(t)},onMouseUp:function(t){var n=Object(d.f)(t,e.ViewerDOM,e.getTool(),e.getValue(),e.props);e.getValue()!==n&&e.setValue(n),e.handleViewerEvent(t)},onClick:function(t){e.handleViewerEvent(t)},onDoubleClick:function(t){var n=Object(d.a)(t,e.ViewerDOM,e.getTool(),e.getValue(),e.props);e.getValue()!==n&&e.setValue(n),e.handleViewerEvent(t)},onWheel:function(t){var n=Object(d.g)(t,e.ViewerDOM,e.getTool(),e.getValue(),e.props);e.getValue()!==n&&e.setValue(n)},onMouseEnter:function(t){if(!Object(x.a)()){var n=Object(d.d)(t,e.ViewerDOM,e.getTool(),e.getValue(),e.props);e.getValue()!==n&&e.setValue(n)}},onMouseLeave:function(t){var n=Object(d.d)(t,e.ViewerDOM,e.getTool(),e.getValue(),e.props);e.getValue()!==n&&e.setValue(n)},onTouchStart:function(t){var n=Object(p.d)(t,e.ViewerDOM,e.getTool(),e.getValue(),e.props);e.getValue()!==n&&e.setValue(n),e.handleViewerEvent(t)},onTouchMove:function(t){var n=Object(p.c)(t,e.ViewerDOM,e.getTool(),e.getValue(),e.props);e.getValue()!==n&&e.setValue(n),e.handleViewerEvent(t)},onTouchEnd:function(t){var n=Object(p.b)(t,e.ViewerDOM,e.getTool(),e.getValue(),e.props);e.getValue()!==n&&e.setValue(n),e.handleViewerEvent(t)},onTouchCancel:function(t){var n=Object(p.a)(t,e.ViewerDOM,e.getTool(),e.getValue(),e.props);e.getValue()!==n&&e.setValue(n),e.handleViewerEvent(t)}},r.a.createElement("rect",{fill:t.background,x:0,y:0,width:l.viewerWidth,height:l.viewerHeight,style:{pointerEvents:"none"}}),r.a.createElement("g",{transform:Object(s.toSVG)(l),style:w?{pointerEvents:"none"}:{}},r.a.createElement("rect",{fill:this.props.SVGBackground,x:0,y:0,width:l.SVGWidth,height:l.SVGHeight}),r.a.createElement("g",null,t.children.props.children)),[M.j,M.i].indexOf(i)>=0&&t.detectAutoPan&&l.focus?r.a.createElement("g",{style:{pointerEvents:"none"}},a<=20?r.a.createElement(y.a,{direction:M.h,width:l.viewerWidth,height:l.viewerHeight}):null,l.viewerWidth-o<=20?r.a.createElement(y.a,{direction:M.g,width:l.viewerWidth,height:l.viewerHeight}):null,l.viewerHeight-a<=20?r.a.createElement(y.a,{direction:M.d,width:l.viewerWidth,height:l.viewerHeight}):null,l.focus&&o<=20?r.a.createElement(y.a,{direction:M.e,width:l.viewerWidth,height:l.viewerHeight}):null):null,l.mode!==M.c?null:r.a.createElement(g.a,{startX:l.startX,startY:l.startY,endX:l.endX,endY:l.endY})),t.toolbarPosition===M.f?null:r.a.createElement(c,{position:t.toolbarPosition,value:l,onChangeValue:function(t){return e.setValue(t)},tool:i,onChangeTool:function(t){return e.changeTool(t)}}),t.miniaturePosition===M.f?null:r.a.createElement(u,{position:t.miniaturePosition,value:l,onChangeValue:function(t){return e.setValue(t)},SVGBackground:this.props.SVGBackground,background:this.props.miniatureBackground,width:this.props.miniatureWidth,height:this.props.miniatureHeight},t.children.props.children))}}]),t}();t.a=_,_.propTypes={width:i.a.number.isRequired,height:i.a.number.isRequired,background:i.a.string,SVGBackground:i.a.string,value:i.a.shape({version:i.a.oneOf([2]).isRequired,mode:i.a.oneOf([M.a,M.b,M.c]).isRequired,focus:i.a.bool.isRequired,a:i.a.number.isRequired,b:i.a.number.isRequired,c:i.a.number.isRequired,d:i.a.number.isRequired,e:i.a.number.isRequired,f:i.a.number.isRequired,viewerWidth:i.a.number.isRequired,viewerHeight:i.a.number.isRequired,SVGWidth:i.a.number.isRequired,SVGHeight:i.a.number.isRequired,startX:i.a.number,startY:i.a.number,endX:i.a.number,endY:i.a.number,miniatureOpen:i.a.bool.isRequired}),style:i.a.object,className:i.a.string,detectWheel:i.a.bool,detectAutoPan:i.a.bool,detectPinchGesture:i.a.bool,toolbarPosition:i.a.oneOf([M.f,M.h,M.g,M.d,M.e]),onChangeValue:i.a.func,onChangeTool:i.a.func,onClick:i.a.func,onDoubleClick:i.a.func,onMouseUp:i.a.func,onMouseMove:i.a.func,onMouseDown:i.a.func,preventPanOutside:i.a.bool,scaleFactor:i.a.number,tool:i.a.oneOf([M.i,M.j,M.k,M.l,M.m]),modifierKeys:i.a.array,customToolbar:i.a.oneOfType([i.a.element,i.a.func]),miniaturePosition:i.a.oneOf([M.f,M.g,M.e]),miniatureBackground:i.a.string,miniatureWidth:i.a.number,miniatureHeight:i.a.number,customMiniature:i.a.oneOfType([i.a.element,i.a.func]),disableDoubleClickZoomWithToolAuto:i.a.bool,children:function(e,t,n){var o=e[t],a=["svg"];return 1!==r.a.Children.count(o)||-1===a.indexOf(o.type)?new Error("`"+n+"` should have a single child of the following types:  `"+a.join("`, `")+"`."):o.props.hasOwnProperty("width")&&o.props.hasOwnProperty("height")?void 0:new Error("SVG should have props `width` and `height`")}},_.defaultProps={value:null,tool:null,style:{},background:"#616264",SVGBackground:"#fff",detectWheel:!0,detectAutoPan:!0,detectPinchGesture:!0,toolbarPosition:M.g,modifierKeys:["Alt","Shift","Control"],customToolbar:w.a,preventPanOutside:!0,scaleFactor:1.1,miniaturePosition:M.e,miniatureWidth:100,miniatureHeight:80,miniatureBackground:"#616264",customMiniature:v.a,disableZoomWithToolAuto:!1}},function(e,t,n){"use strict";var o=n(16),r=n(17);t.a=function(e,t,n){var a=e.type;switch(a){case"mousemove":case"mouseup":case"mousedown":case"click":case"dblclick":return new o.a(e,t,n);case"touchstart":case"touchmove":case"touchend":case"touchcancel":return new r.a(e,t,n);default:throw new Error(a+" not supported")}}},function(e,t,n){"use strict";var o=n(2),r=n(8),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.a),a(t,[{key:"point",get:function(){if(!this._cachePoint){var e=this.originalEvent,t=this.value,n=this.SVGViewer.getBoundingClientRect(),r=e.clientX-Math.round(n.left),a=e.clientY-Math.round(n.top);this._cachePoint=Object(o.c)(t,r,a)}return this._cachePoint}},{key:"x",get:function(){return this.point.x}},{key:"y",get:function(){return this.point.y}}]),t}();t.a=i},function(e,t,n){"use strict";var o=n(2),r=n(8),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.a),i(t,[{key:"points",get:function(){return this._cachePoints||(this._cachePoints=t.touchesToPoints(this.originalEvent.touches,this.SVGViewer,this.value)),this._cachePoints}},{key:"changedPoints",get:function(){return this._cacheChangedPoints||(this._cacheChangedPoints=t.touchesToPoints(this.originalEvent.changedTouches,this.SVGViewer,this.value)),this._cacheChangedPoints}}],[{key:"touchesToPoints",value:function(e,t,n){for(var r=[],i=0;i<e.length;i++){var s=e[i],l=t.getBoundingClientRect(),c=s.clientX-Math.round(l.left),u=s.clientY-Math.round(l.top),d=Object(o.c)(n,c,u);r.push(a({},d,{identifier:s.identifier}))}return r}}]),t}();t.a=s},function(e,t,n){"use strict";t.a=function(e,t,n,o,r){return o+(r-o)*(e-t)/(n-t)}},function(e,t,n){"use strict";function o(e){return"number"==typeof e.pinchPointDistance}function r(e,t,n,r,a){var i=t.getBoundingClientRect(),s=i.left,d=i.top,h=e.touches[0].clientX-Math.round(s),m=e.touches[0].clientY-Math.round(d),f=e.touches[1].clientX-Math.round(s),y=e.touches[1].clientY-Math.round(d),g=Math.sqrt(Math.pow(f-h,2)+Math.pow(y-m,2)),w=o(r)?r.pinchPointDistance:g,x=Object(u.c)(r,(h+f)/2,(m+y)/2),v=g/w;e.cancelable&&e.preventDefault();var M=Object(l.transform)(Object(l.fromObject)(r),Object(l.translate)(x.x,x.y),Object(l.scale)(v,v),Object(l.translate)(-x.x,-x.y));return Object(u.f)(r,Object(u.f)(p({mode:c.c},M,{startX:null,startY:null,endX:null,endY:null,prePinchMode:r.prePinchMode?r.prePinchMode:r.mode,pinchPointDistance:g})))}function a(e,t){return t.detectPinchGesture&&e.touches.length>1}function i(e,t,n){return n.detectPinchGesture&&o(t)&&e.touches.length<2}function s(e,t,n,o,r,a){var i=0===e.touches.length?Object(u.f)(o,{mode:o.prePinchMode?c.a:o.mode,prePinchMode:null}):o,s=function(e,t){var n=t.getBoundingClientRect(),o=n.left,r=n.top;return{x:e.clientX-Math.round(o),y:e.clientY-Math.round(r)}}(e.touches.length>0?e.touches[0]:e.changedTouches[0],t);switch(n){case c.m:case c.l:case c.i:case c.k:return e.stopPropagation(),e.preventDefault(),a(e,t,n,i,r,s);default:return i}}t.d=function(e,t,n,o,i){if(a(e,i))return r(e,t,0,o);if(1!==e.touches.length){if([c.b,c.c].indexOf(o.mode)>=0)return Object(u.e)(o);if([c.a].indexOf(o.mode)>=0)return o}return s(e,t,n,o,i,d.c)},t.c=function(e,t,n,o,i){return a(e,i)?r(e,t,0,o):[c.b,c.c].indexOf(o.mode)>=0?s(e,t,n,o,i,d.e):o},t.b=function(e,t,n,o,r){if(!([c.b,c.c].indexOf(o.mode)>=0))return o;var a=i(e,o,r)?Object(u.f)(o,{pinchPointDistance:null}):o;return e.touches.length>0?a:s(e,t,n,a,r,d.f)},t.a=function(e,t,n,o,r){return e.stopPropagation(),e.preventDefault(),Object(u.e)(o)};var l=n(4),c=(n.n(l),n(1)),u=n(2),d=n(9),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}},function(e,t,n){"use strict";var o=function(){return navigator.userAgent.toLowerCase()};t.a=function(e){return function(e){return["zoom-in","zoom-out","grab","grabbing"].indexOf(e)>-1}(e)?o().indexOf("firefox")>-1?"-moz-"+e:o().indexOf("webkit")>-1?"-webkit-"+e:void 0:e}},function(e,t,n){"use strict";function o(e){var t=e.direction,n=e.width,o=e.height,r=void 0;switch(t){case l.h:r="translate("+n+", 0) rotate(90)";break;case l.g:r="translate("+n+", "+o+") rotate(180)";break;case l.d:r="translate(0, "+o+") rotate(270)";break;case l.e:r=" "}return a.a.createElement("g",null,a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"react-svg-pan-zoom-gradient1",x1:"0%",y1:"0%",x2:"100%",y2:"0%",spreadMethod:"pad"},a.a.createElement("stop",{offset:"0%",stopColor:"#fff",stopOpacity:"0.8"}),a.a.createElement("stop",{offset:"100%",stopColor:"#000",stopOpacity:"0.5"})),a.a.createElement("mask",{id:"react-svg-pan-zoom-mask1",x:"0",y:"0",width:"20",height:Math.max(n,o)},a.a.createElement("rect",{x:"0",y:"0",width:"20",height:Math.max(n,o),style:{stroke:"none",fill:"url(#react-svg-pan-zoom-gradient1)"}}))),a.a.createElement("rect",{x:"0",y:"0",width:"20",height:Math.max(n,o),style:{stroke:"none",fill:"#000",mask:"url(#react-svg-pan-zoom-mask1)"},transform:r}))}t.a=o;var r=n(0),a=n.n(r),i=n(3),s=n.n(i),l=n(1);o.propTypes={direction:s.a.oneOf([l.h,l.g,l.d,l.e]).isRequired,width:s.a.number.isRequired,height:s.a.number.isRequired}},function(e,t,n){"use strict";function o(e){var t=e.startX,n=e.startY,o=e.endX,r=e.endY;if(!(t&&n&&o&&r))return null;var i=Object(l.a)({x:t,y:n},{x:o,y:r});return a.a.createElement("rect",{stroke:"#969FFF",strokeOpacity:.7,fill:"#F3F4FF",fillOpacity:.7,x:i.x,y:i.y,width:i.width,height:i.height,style:{pointerEvents:"none"}})}t.a=o;var r=n(0),a=n.n(r),i=n(3),s=n.n(i),l=n(10);o.propTypes={startX:s.a.number.isRequired,startY:s.a.number.isRequired,endX:s.a.number.isRequired,endY:s.a.number.isRequired}},function(e,t,n){"use strict";t.a=function(){return r.a.createElement("svg",{width:24,height:24,stroke:"currentColor"},r.a.createElement("path",{d:"M10.07,14.27C10.57,14.03 11.16,14.25 11.4,14.75L13.7,19.74L15.5,18.89L13.19,13.91C12.95,13.41 13.17,12.81 13.67,12.58L13.95,12.5L16.25,12.05L8,5.12V15.9L9.82,14.43L10.07,14.27M13.64,21.97C13.14,22.21 12.54,22 12.31,21.5L10.13,16.76L7.62,18.78C7.45,18.92 7.24,19 7,19A1,1 0 0,1 6,18V3A1,1 0 0,1 7,2C7.24,2 7.47,2.09 7.64,2.23L7.65,2.22L19.14,11.86C19.57,12.22 19.62,12.85 19.27,13.27C19.12,13.45 18.91,13.57 18.7,13.61L15.54,14.23L17.74,18.96C18,19.46 17.76,20.05 17.26,20.28L13.64,21.97Z"}))};var o=n(0),r=n.n(o)},function(e,t,n){"use strict";t.a=function(){return r.a.createElement("svg",{width:24,height:24,stroke:"currentColor"},r.a.createElement("path",{d:"M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"}))};var o=n(0),r=n.n(o)},function(e,t,n){"use strict";t.a=function(){return r.a.createElement("svg",{width:24,height:24,stroke:"currentColor"},r.a.createElement("g",null,r.a.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),r.a.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"})))};var o=n(0),r=n.n(o)},function(e,t,n){"use strict";t.a=function(){return r.a.createElement("svg",{width:24,height:24,stroke:"currentColor"},r.a.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"}))};var o=n(0),r=n.n(o)},function(e,t,n){"use strict";t.a=function(){return r.a.createElement("svg",{width:24,height:24,stroke:"currentColor"},r.a.createElement("path",{d:"M15 3l2.3 2.3-2.89 2.87 1.42 1.42L18.7 6.7 21 9V3zM3 9l2.3-2.3 2.87 2.89 1.42-1.42L6.7 5.3 9 3H3zm6 12l-2.3-2.3 2.89-2.87-1.42-1.42L5.3 17.3 3 15v6zm12-6l-2.3 2.3-2.87-2.89-1.42 1.42 2.89 2.87L15 21h6z"}))};var o=n(0),r=n.n(o)},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(3),i=n.n(a),s=n(1),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={hover:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.a.Component),l(t,[{key:"change",value:function(e){switch(e.preventDefault(),e.stopPropagation(),e.type){case"mouseenter":case"touchstart":this.setState({hover:!0});break;case"mouseleave":case"touchend":case"touchcancel":this.setState({hover:!1})}}},{key:"render",value:function(){var e=this,t={display:"block",width:"24px",height:"24px",margin:[s.h,s.d].indexOf(this.props.toolbarPosition)>=0?"2px 1px":"1px 2px",color:this.props.active||this.state.hover?"#1CA6FC":"#FFF",transition:"color 200ms ease",background:"none",padding:"0px",border:"0px",outline:"0px",cursor:"pointer"};return r.a.createElement("button",{onMouseEnter:function(t){return e.change(t)},onMouseLeave:function(t){return e.change(t)},onTouchStart:function(t){e.change(t),e.props.onClick(t)},onTouchEnd:function(t){return e.change(t)},onTouchCancel:function(t){return e.change(t)},onClick:this.props.onClick,style:t,title:this.props.title,name:this.props.name,role:"button"},this.props.children)}}]),t}();t.a=c,c.propTypes={title:i.a.string.isRequired,name:i.a.string.isRequired,toolbarPosition:i.a.string.isRequired,onClick:i.a.func.isRequired,active:i.a.bool.isRequired}},function(e,t,n){"use strict";t.a=function(){return"ontouchstart"in window||navigator.maxTouchPoints}},function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){var t,n=e.value,r=e.onChangeValue,a=e.position,s=(t={width:"24px",height:"24px",display:"block",position:"absolute",bottom:0},o(t,a===d.e?"left":"right","0px"),o(t,"background","rgba(19, 20, 22, 0.901961)"),o(t,"border",0),o(t,"padding",0),o(t,"outline",0),o(t,"color","#fff"),t),l=n.miniatureOpen?c.a:c.b;return i.a.createElement("button",{role:"button",style:s,onClick:function(e){return r(l(n))}},i.a.createElement(u.a,{open:n.miniatureOpen,position:a}))}t.a=r;var a=n(0),i=n.n(a),s=n(3),l=n.n(s),c=n(7),u=n(31),d=n(1);r.propTypes={value:l.a.object.isRequired,onChangeValue:l.a.func.isRequired,position:l.a.oneOf([d.g,d.e]).isRequired}},function(e,t,n){"use strict";function o(e){var t=e.open,n=0;switch(e.position){case l.e:n=t?"rotate(225, 12, 13)":"rotate(45, 12, 13)";break;case l.g:n=n=t?"rotate(135, 12, 13)":"rotate(-45, 12, 13)"}return a.a.createElement("svg",{width:24,height:24,stroke:"currentColor"},a.a.createElement("g",{transform:n},a.a.createElement("path",{fill:"#000000",d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"})))}t.a=o;var r=n(0),a=n.n(r),i=n(3),s=n.n(i),l=n(1);o.propTypes={open:s.a.bool.isRequired,position:s.a.oneOf([l.g,l.e]).isRequired}},function(e,t,n){"use strict";function o(e){var t=e.SVGWidth,n=e.SVGHeight,o=e.x1,r=e.y1,i=e.x2,s=e.y2;return e.zoomToFit,a.a.createElement("g",null,a.a.createElement("defs",null,a.a.createElement("mask",{id:"react-svg-pan-zoom-miniature-mask"},a.a.createElement("rect",{x:"0",y:"0",width:t,height:n,fill:"#ffffff"}),a.a.createElement("rect",{x:o,y:r,width:i-o,height:s-r}))),a.a.createElement("rect",{x:"0",y:"0",width:t,height:n,style:{stroke:"none",fill:"#000",mask:"url(#react-svg-pan-zoom-miniature-mask)",opacity:.4}}))}t.a=o;var r=n(0),a=n.n(r),i=n(3),s=n.n(i);o.propTypes={SVGWidth:s.a.number.isRequired,SVGHeight:s.a.number.isRequired,x1:s.a.number.isRequired,y1:s.a.number.isRequired,x2:s.a.number.isRequired,y2:s.a.number.isRequired,zoomToFit:s.a.number.isRequired}}])})},function(e,t,n){"use strict";var o=n(390),r=n(400),a=n(429),i=n(444),s=n(448),l=n(14);n.d(t,"d",function(){return o.a}),n.d(t,"a",function(){return r.a}),n.d(t,"c",function(){return a.a}),n.d(t,"b",function(){return i.a}),t.e={ToolbarComponents:o.a,Content:r.a,SidebarComponents:a.a,FooterBarComponents:i.a,Viewer2DComponents:s.a,StyleComponents:l.l}},function(e,t,n){"use strict";function o({state:e},{translator:t,projectActions:n}){return a.a.createElement(u.a,{active:!1,tooltip:t.t("Save project"),onClick:t=>{t.preventDefault();let n=e.get("scene").update("layers",e=>e.map(e=>Object(p.o)(e))).toJS();Object(d.a)(n)}},a.a.createElement(c.a,null))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(391),c=n.n(l),u=n(59),d=n(159),p=n(24);o.propTypes={state:s.a.object.isRequired},o.contextTypes={projectActions:s.a.object.isRequired,translator:s.a.object.isRequired}},function(e,t,n){"use strict";t.a=function(e){var t=document.createElement("a"),n="output"+Date.now()+".json";if(n=window.prompt("Insert output filename",n)){var o=JSON.stringify(e),r=new Blob([o],{type:"text/plain"}),a=window.URL.createObjectURL(r);t.setAttribute("download",n),t.href=a,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},t.b=function(){return new Promise(function(e,t){var n=document.createElement("input");n.type="file",n.addEventListener("change",function(t){var n=t.target.files[0],o=new FileReader;o.addEventListener("load",t=>{var n=t.target.result;e(n)}),o.readAsText(n)}),n.click()})}},function(e,t,n){"use strict";function o({state:e},{translator:t,projectActions:n}){return a.a.createElement(u.a,{active:!1,tooltip:t.t("Load project"),onClick:e=>{e.preventDefault(),Object(d.b)().then(e=>{n.loadProject(JSON.parse(e))})}},a.a.createElement(c.a,null))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(392),c=n.n(l),u=n(59),d=n(159);o.propTypes={state:s.a.object.isRequired},o.contextTypes={projectActions:s.a.object.isRequired,translator:s.a.object.isRequired}},function(e,t,n){"use strict";function o(e){for(;!e.attributes.getNamedItem("data-element-root")&&"svg"!==e.tagName;)e=e.parentNode;return"svg"===e.tagName?null:{part:e.attributes.getNamedItem("data-part")?e.attributes.getNamedItem("data-part").value:void 0,layer:e.attributes.getNamedItem("data-layer").value,prototype:e.attributes.getNamedItem("data-prototype").value,selected:"true"===e.attributes.getNamedItem("data-selected").value,id:e.attributes.getNamedItem("data-id").value}}function r({state:e,width:t,height:n},{viewer2DActions:r,linesActions:a,holesActions:s,verticesActions:l,itemsActions:p,areaActions:h,projectActions:m,catalog:f}){let{viewer2D:y,mode:g,scene:w}=e,x=w.selectedLayer,v=({x:e,y:t})=>({x:e,y:-t+w.height});return i.a.createElement(c.ReactSVGPanZoom,{width:t,height:n,value:y.isEmpty()?null:y.toJS(),onChangeValue:e=>(m.updateZoomScale(e.a),r.updateCameraView(e)),tool:function(e){switch(e){case u.MODE_2D_PAN:return c.TOOL_PAN;case u.MODE_2D_ZOOM_IN:return c.TOOL_ZOOM_IN;case u.MODE_2D_ZOOM_OUT:return c.TOOL_ZOOM_OUT;case u.MODE_IDLE:return c.TOOL_AUTO;default:return c.TOOL_NONE}}(g),onChangeTool:e=>{switch(e){case c.TOOL_NONE:m.selectToolEdit();break;case c.TOOL_PAN:r.selectToolPan();break;case c.TOOL_ZOOM_IN:r.selectToolZoomIn();break;case c.TOOL_ZOOM_OUT:r.selectToolZoomOut()}},detectAutoPan:function(e){switch(e){case u.MODE_DRAWING_LINE:case u.MODE_DRAGGING_LINE:case u.MODE_DRAGGING_VERTEX:case u.MODE_DRAGGING_HOLE:case u.MODE_DRAGGING_ITEM:case u.MODE_DRAWING_HOLE:case u.MODE_DRAWING_ITEM:return!0;default:return!1}}(g),onMouseDown:t=>{let n=t.originalEvent;var r=new Event("mousedown-planner-event");r.viewerEvent=t,document.dispatchEvent(r);let{x:i,y:c}=v(t);if(g===u.MODE_IDLE){let t=o(n.target);if(!t||!t.selected)return;switch(t.prototype){case"lines":a.beginDraggingLine(t.layer,t.id,i,c,e.snapMask);break;case"vertices":l.beginDraggingVertex(t.layer,t.id,i,c,e.snapMask);break;case"items":"rotation-anchor"===t.part?p.beginRotatingItem(t.layer,t.id,i,c):p.beginDraggingItem(t.layer,t.id,i,c);break;case"holes":s.beginDraggingHole(t.layer,t.id,i,c)}}n.stopPropagation()},onMouseMove:t=>{var n=new Event("mousemove-planner-event");n.viewerEvent=t,document.dispatchEvent(n);let{x:o,y:r}=v(t);switch(m.updateMouseCoord({x:o,y:r}),g){case u.MODE_DRAWING_LINE:a.updateDrawingLine(o,r,e.snapMask);break;case u.MODE_DRAWING_HOLE:s.updateDrawingHole(x,o,r);break;case u.MODE_DRAWING_ITEM:p.updateDrawingItem(x,o,r);break;case u.MODE_DRAGGING_HOLE:s.updateDraggingHole(o,r);break;case u.MODE_DRAGGING_LINE:a.updateDraggingLine(o,r,e.snapMask);break;case u.MODE_DRAGGING_VERTEX:l.updateDraggingVertex(o,r,e.snapMask);break;case u.MODE_DRAGGING_ITEM:p.updateDraggingItem(o,r);break;case u.MODE_ROTATING_ITEM:p.updateRotatingItem(o,r)}t.originalEvent.stopPropagation()},onMouseUp:t=>{let n=t.originalEvent;var r=new Event("mouseup-planner-event");r.viewerEvent=t,document.dispatchEvent(r);let{x:i,y:c}=v(t);switch(g){case u.MODE_IDLE:let t=o(n.target);if(t&&t.selected)return;switch(t?t.prototype:"none"){case"areas":h.selectArea(t.layer,t.id);break;case"lines":a.selectLine(t.layer,t.id);break;case"holes":s.selectHole(t.layer,t.id);break;case"items":p.selectItem(t.layer,t.id);break;case"none":m.unselectAll()}break;case u.MODE_WAITING_DRAWING_LINE:a.beginDrawingLine(x,i,c,e.snapMask);break;case u.MODE_DRAWING_LINE:a.endDrawingLine(i,c,e.snapMask),a.beginDrawingLine(x,i,c,e.snapMask);break;case u.MODE_DRAWING_HOLE:s.endDrawingHole(x,i,c);break;case u.MODE_DRAWING_ITEM:p.endDrawingItem(x,i,c);break;case u.MODE_DRAGGING_LINE:a.endDraggingLine(i,c,e.snapMask);break;case u.MODE_DRAGGING_VERTEX:l.endDraggingVertex(i,c,e.snapMask);break;case u.MODE_DRAGGING_ITEM:p.endDraggingItem(i,c);break;case u.MODE_DRAGGING_HOLE:s.endDraggingHole(i,c);break;case u.MODE_ROTATING_ITEM:p.endRotatingItem(i,c)}n.stopPropagation()},miniaturePosition:"none",toolbarPosition:"right"},i.a.createElement("svg",{width:w.width,height:w.height},i.a.createElement("g",{style:Object.assign(function(e){switch(e){case u.MODE_DRAGGING_HOLE:case u.MODE_DRAGGING_LINE:case u.MODE_DRAGGING_VERTEX:case u.MODE_DRAGGING_ITEM:return{cursor:"move"};case u.MODE_ROTATING_ITEM:return{cursor:"ew-resize"};case u.MODE_WAITING_DRAWING_LINE:case u.MODE_DRAWING_LINE:return{cursor:"crosshair"};default:return{cursor:"default"}}}(g),function(e){switch(e){case u.MODE_DRAWING_LINE:case u.MODE_DRAWING_HOLE:case u.MODE_DRAWING_ITEM:case u.MODE_DRAGGING_HOLE:case u.MODE_DRAGGING_ITEM:case u.MODE_DRAGGING_LINE:case u.MODE_DRAGGING_VERTEX:return{pointerEvents:"none"};default:return{}}}(g))},i.a.createElement(d.a,{state:e,catalog:f}))))}t.a=r;var a=n(0),i=n.n(a),s=n(2),l=n.n(s),c=n(156),u=(n.n(c),n(5)),d=n(162);r.propTypes={state:l.a.object.isRequired,width:l.a.number.isRequired,height:l.a.number.isRequired},r.contextTypes={viewer2DActions:l.a.object.isRequired,linesActions:l.a.object.isRequired,holesActions:l.a.object.isRequired,verticesActions:l.a.object.isRequired,itemsActions:l.a.object.isRequired,areaActions:l.a.object.isRequired,projectActions:l.a.object.isRequired,catalog:l.a.object.isRequired}},function(e,t,n){"use strict";function o({state:e,catalog:t}){let{viewer2D:n,mode:o,activeSnapElement:r,snapElements:i,scene:s}=e,{width:d,height:p}=s;return r=r?a.a.createElement(c.a,{snap:r,width:s.width,height:s.height}):null,i=null,a.a.createElement("g",null,a.a.createElement("rect",{x:"0",y:"0",width:d,height:p,fill:u.a.white}),a.a.createElement("g",{transform:`translate(0, ${s.height}) scale(1, -1)`},a.a.createElement(l.a,{scene:s,catalog:t}),r,i))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(163),c=n(170),u=n(4);o.propTypes={state:s.a.object.isRequired,catalog:s.a.object.isRequired}},function(e,t,n){"use strict";function o({scene:e,catalog:t}){let{height:n,layers:o}=e,r=e.layers.get(e.selectedLayer);return a.a.createElement("g",null,a.a.createElement(c.a,{scene:e}),a.a.createElement("g",{style:{pointerEvents:"none"}},o.entrySeq().filter(([t,n])=>t!==e.selectedLayer&&n.visible).map(([n,o])=>a.a.createElement(l.a,{key:n,layer:o,scene:e,catalog:t}))),a.a.createElement(l.a,{key:r.id,layer:r,scene:e,catalog:t}))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(164),c=n(404);o.propTypes={scene:s.a.object.isRequired,catalog:s.a.object.isRequired}},function(e,t,n){"use strict";function o({layer:e,scene:t,catalog:n}){let{unit:o}=t,{lines:r,areas:i,vertices:s,holes:p,id:h,items:m,opacity:f}=e;return a.a.createElement("g",{opacity:f},i.entrySeq().map(([t,r])=>a.a.createElement(c.a,{key:t,layer:e,area:r,unit:o,catalog:n})),r.entrySeq().map(([o,r])=>a.a.createElement(l.a,{key:o,layer:e,line:r,scene:t,catalog:n})),m.entrySeq().map(([o,r])=>a.a.createElement(d.a,{key:o,layer:e,item:r,scene:t,catalog:n})),s.entrySeq().filter(([e,t])=>t.selected).map(([t,n])=>a.a.createElement(u.a,{key:t,layer:e,vertex:n})))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(165),c=n(167),u=n(168),d=n(169);o.propTypes={layer:s.a.object.isRequired,scene:s.a.object.isRequired,catalog:s.a.object.isRequired}},function(e,t,n){"use strict";function o({line:e,layer:t,scene:n,catalog:o}){let r=t.vertices.get(e.vertices.get(0)),i=t.vertices.get(e.vertices.get(1));if(r.id===i.id)return null;if(r.x===i.x&&r.y===i.y)return null;let{x:s,y:u}=r,{x:d,y:p}=i;s>d&&(({x:s,y:u}=i),({x:d,y:p}=r));let h=Object(l.pointsDistance)(s,u,d,p),m=Object(l.angleBetweenTwoPointsAndOrigin)(s,u,d,p),f=e.holes.map(e=>{let r=t.holes.get(e),i=h*r.offset,s=o.getElement(r.type).render2D(r,t,n);return a.a.createElement("g",{key:e,transform:`translate(${i}, 0)`,"data-element-root":!0,"data-prototype":r.prototype,"data-id":r.id,"data-selected":r.selected,"data-layer":t.id}," ",s," ")}),{unit:y}=n,g=o.getElement(e.type).render2D(e,t),w=e.selected?a.a.createElement(c.a,{unit:y,length:h,transform:"translate(0, 15)"}):null;return a.a.createElement("g",{transform:`translate(${s}, ${u}) rotate(${m}, 0, 0)`,"data-element-root":!0,"data-prototype":e.prototype,"data-id":e.id,"data-selected":e.selected,"data-layer":t.id,style:e.selected?{cursor:"move"}:{}},w,g,f)}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(13),c=n(166);o.propTypes={line:s.a.object.isRequired,layer:s.a.object.isRequired,scene:s.a.object.isRequired,catalog:s.a.object.isRequired}},function(e,t,n){"use strict";function o({length:e,unit:t,transform:n}){let o=`${e.toFixed(2)} ${t}`;return a.a.createElement("g",{transform:n},a.a.createElement("text",{x:e/2,y:"-3",transform:"scale(1, -1)",style:c},o),a.a.createElement("line",{x1:"0",y1:"-5",x2:"0",y2:"5",style:l}),a.a.createElement("line",{x1:e,y1:"-5",x2:e,y2:"5",style:l}),a.a.createElement("line",{x1:"0",y1:"0",x2:e,y2:"0",style:l}))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i);const l={stroke:"#0096fd",strokeWidth:"1px"},c={textAnchor:"middle",fontSize:"12px",fontFamily:"'Courier New', Courier, monospace",pointerEvents:"none",fontWeight:"bold",WebkitTouchCallout:"none",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",userSelect:"none"};o.propTypes={length:s.a.number.isRequired,unit:s.a.string.isRequired,transform:s.a.string.isRequired}},function(e,t,n){"use strict";function o({layer:e,area:t,catalog:n}){let o=n.getElement(t.type).render2D(t,e),r=null;if(t.selected){let n=t.vertices.toArray().map(t=>{let{x:n,y:o}=e.vertices.get(t);return[n,o]}),o=n;t.holes.forEach(t=>{let n=e.areas.get(t).vertices.toArray().map(t=>{let{x:n,y:o}=e.vertices.get(t);return[n,o]});o=o.concat(n.reverse())});let i=c()([o],1),s=d()(n,!1);t.holes.forEach(t=>{let n=e.areas.get(t).vertices.toArray().map(t=>{let{x:n,y:o}=e.vertices.get(t);return[n,o]});s-=d()(n,!1)}),r=a.a.createElement("text",{x:"0",y:"0",transform:`translate(${i[0]} ${i[1]}) scale(1, -1)`,style:p},(s/1e4).toFixed(2)," m",String.fromCharCode(178))}return a.a.createElement("g",{"data-element-root":!0,"data-prototype":t.prototype,"data-id":t.id,"data-selected":t.selected,"data-layer":e.id},o,r)}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(401),c=n.n(l),u=n(403),d=n.n(u);const p={textAnchor:"middle",fontSize:"12px",fontFamily:'"Courier New", Courier, monospace',pointerEvents:"none",fontWeight:"bold",WebkitTouchCallout:"none",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",userSelect:"none"};o.propTypes={area:s.a.object.isRequired,layer:s.a.object.isRequired,catalog:s.a.object.isRequired}},function(e,t,n){"use strict";function o({vertex:e,layer:t}){let{x:n,y:o}=e;return a.a.createElement("g",{transform:`translate(${n}, ${o})`,"data-element-root":!0,"data-prototype":e.prototype,"data-id":e.id,"data-selected":e.selected,"data-layer":t.id},a.a.createElement("circle",{cx:"0",cy:"0",r:"7",style:l}))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i);const l={fill:"#0096fd",stroke:n(4).a.white,cursor:"move"};o.propTypes={vertex:s.a.object.isRequired,layer:s.a.object.isRequired}},function(e,t,n){"use strict";function o({layer:e,item:t,scene:n,catalog:o}){let{x:r,y:i,rotation:s}=t,d=o.getElement(t.type).render2D(t,e,n);return a.a.createElement("g",{"data-element-root":!0,"data-prototype":t.prototype,"data-id":t.id,"data-selected":t.selected,"data-layer":e.id,style:t.selected?{cursor:"move"}:{},transform:`translate(${r},${i}) rotate(${s})`},d,a.a.createElement(l.a,{condition:t.selected},a.a.createElement("g",{"data-element-root":!0,"data-prototype":t.prototype,"data-id":t.id,"data-selected":t.selected,"data-layer":e.id,"data-part":"rotation-anchor"},a.a.createElement("circle",{cx:"0",cy:"150",r:"10",style:c}),a.a.createElement("circle",{cx:"0",cy:"0",r:"150",style:u}))))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(91);const c={fill:"#0096fd",stroke:"#0096fd",cursor:"ew-resize"},u={fill:"none",stroke:"#0096fd",cursor:"ew-resize"};o.propTypes={item:s.a.object.isRequired,layer:s.a.object.isRequired,scene:s.a.object.isRequired,catalog:s.a.object.isRequired}},function(e,t,n){"use strict";function o({snap:e,width:t,height:n}){switch(e.type){case"point":return a.a.createElement("g",{transform:`translate(${e.x} ${e.y})`},a.a.createElement("line",{x1:"0",y1:"-70",x2:"0",y2:"70",style:c}),a.a.createElement("line",{x1:"-70",y1:"0",x2:"70",y2:"0",style:c}));case"line":let o=l.horizontalLine(0),r=l.horizontalLine(n),i=l.intersectionFromTwoLines(e.a,e.b,e.c,o.a,o.b,o.c),s=l.intersectionFromTwoLines(e.a,e.b,e.c,r.a,r.b,r.c),u=l.verticalLine(0),d=l.verticalLine(t),p=l.intersectionFromTwoLines(e.a,e.b,e.c,u.a,u.b,u.c),h=l.intersectionFromTwoLines(e.a,e.b,e.c,d.a,d.b,d.c);return i&&s?a.a.createElement("line",{x1:i.x,y1:i.y,x2:s.x,y2:s.y,style:c}):p&&h?a.a.createElement("line",{x1:p.x,y1:p.y,x2:h.x,y2:h.y,style:c}):null;case"line-segment":return a.a.createElement("line",{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,style:c});default:return null}}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(13);const c={stroke:"#D32F2F",strokeWidth:"1px"};o.propTypes={snap:s.a.object.isRequired,width:s.a.number.isRequired,height:s.a.number.isRequired}},function(e,t,n){"use strict";function o(e,t,n,o,r){let a=[];return t.sceneGraph.layers[e.id]={id:e.id,lines:{},holes:{},areas:{},items:{},visible:e.visible,altitude:e.altitude},e.lines.forEach(i=>{a.push(u(n,t,e,i.id,r,o.linesActions)),i.holes.forEach(i=>{a.push(c(n,t,e,i,r,o.holesActions))})}),e.areas.forEach(i=>{a.push(d(n,t,e,i.id,r,o.areaActions))}),e.items.forEach(i=>{a.push(p(n,t,e,i.id,r,o.itemsActions))}),a}function r(e,t,n,r,h,m){return function(e,t,n){return function(e,t,n){let o,r;for(r=0;r<e.length&&!o;r++)"/selectedLayer"===e[r].path&&(o=e[r]);if(o&&!t.layers.get(n.selectedLayer).visible)return e.filter(e=>!(e.path.endsWith("/selected")&&e.path.startsWith("/layers/"+n.selectedLayer)||"remove"===e.op&&e.path.includes(n.selectedLayer)));return e}(function(e,t,n){let o={};return e.filter(e=>{let t=e.path.split("/");return"properties"===t[5]?!o[t[4]]&&(o[t[4]]=1):"misc"!==t[5]})}(e),t,n)}(r,t,n).forEach(r=>{let y=r.path.split("/");if("layers"===y[1]){let g=t[y[1]].get(y[2]);if(3===y.length)switch(r.op){case"replace":case"add":break;case"remove":!function(e,t){let n=t.sceneGraph.layers[e];for(let o in n.lines)i(t,e,o);for(let o in n.areas)s(t,e,o);for(let o in n.items)l(t,e,o);for(let o in n.holes)a(t,e,o);delete t.sceneGraph.layers[e]}(y[2],e)}else if(y.length>3)switch(r.op){case"replace":!function(e,t,n,r,h,m,y){let g=[];switch(e[3]){case"vertices":break;case"holes":let m=t.holes.get(e[4]),f=m.line;"selected"===e[5]?(a(n,t.id,m.id),g.push(c(h,n,t,m.id,y,r.holesActions))):(t.lines.get(f).holes.forEach(e=>{a(n,t.id,e)}),i(n,t.id,f),g.push(u(h,n,t,f,y,r.linesActions)),t.lines.get(f).holes.forEach(e=>{g.push(c(h,n,t,e,y,r.holesActions))}));break;case"lines":i(n,t.id,e[4]),g.push(u(h,n,t,e[4],y,r.linesActions));break;case"areas":s(n,t.id,e[4]),g.push(d(h,n,t,e[4],y,r.areaActions));break;case"items":l(n,t.id,e[4]),g.push(p(h,n,t,e[4],y,r.itemsActions));break;case"visible":if(t.visible)g=g.concat(o(t,n,h,r,y));else{let e=n.sceneGraph.layers[t.id];for(let o in e.lines)i(n,t.id,o);for(let o in e.areas)s(n,t.id,o);for(let o in e.items)l(n,t.id,o);for(let o in e.holes)a(n,t.id,o)}break;case"opacity":case"altitude":let w=n.sceneGraph.layers[t.id];for(let e in w.lines)i(n,t.id,e);for(let e in w.areas)s(n,t.id,e);for(let e in w.items)l(n,t.id,e);for(let e in w.holes)a(n,t.id,e);g=g.concat(o(t,n,h,r,y))}Promise.all(g).then(e=>{f(n)})}(y,g,e,h,t,0,m);break;case"add":!function(e,t,n,o,r,a,i){let s=[];switch(e[3]){case"lines":5===e.length&&s.push(u(r,n,t,e[4],i,o.linesActions));break;case"areas":5===e.length&&s.push(d(r,n,t,e[4],i,o.areaActions));break;case"items":5===e.length&&s.push(p(r,n,t,e[4],i,o.itemsActions))}Promise.all(s).then(e=>{f(n)})}(y,g,e,h,t,0,m);break;case"remove":!function(e,t,n,o,r,d,p){let h=[];switch(e[3]){case"lines":let m=e[4];d.layers.get(t.id).lines.get(m).holes.forEach(e=>{a(n,t.id,e)}),i(n,t.id,m),e.length>5&&(h.push(u(r,n,t,m,p,o.linesActions)),t.lines.get(m).holes.forEach(e=>{h.push(c(r,n,t,e,p,o.holesActions))}));break;case"areas":5===e.length&&s(n,t.id,e[4]);break;case"items":5===e.length&&l(n,t.id,e[4])}Promise.all(h).then(e=>{f(n)})}(y,g,e,h,t,n,m)}}else if("selectedLayer"===y[1]){let c=r.value;if(!t.layers.get(c).visible){let n=o(t.layers.get(c),e,t,h,m);Promise.all(n).then(t=>{f(e)})}let u=e.sceneGraph.layers[n.selectedLayer];if(u&&!u.visible){for(let t in u.lines)i(e,u.id,t);for(let t in u.areas)s(e,u.id,t);for(let t in u.items)l(e,u.id,t);for(let t in u.holes)a(e,u.id,t)}}}),e}function a(e,t,n){let o=e.sceneGraph.layers[t].holes[n];e.plan.remove(o),Object(w.a)(o),delete e.sceneGraph.layers[t].holes[n],delete e.sceneGraph.LODs[n],o=null,f(e)}function i(e,t,n){let o=e.sceneGraph.layers[t].lines[n];e.plan.remove(o),Object(w.a)(o),delete e.sceneGraph.layers[t].lines[n],delete e.sceneGraph.LODs[n],o=null,f(e)}function s(e,t,n){let o=e.sceneGraph.layers[t].areas[n];e.plan.remove(o),Object(w.a)(o),delete e.sceneGraph.layers[t].areas[n],delete e.sceneGraph.LODs[n],o=null,f(e)}function l(e,t,n){let o=e.sceneGraph.layers[t].items[n];e.plan.remove(o),Object(w.a)(o),delete e.sceneGraph.layers[t].items[n],delete e.sceneGraph.LODs[n],o=null,f(e)}function c(e,t,n,o,r,a){let i=n.holes.get(o);return r.getElement(i.type).render3D(i,n,e).then(e=>{e instanceof y.LOD&&(t.sceneGraph.LODs[o]=e);let r=new y.Object3D;r.add(e);let s=n.lines.get(i.line),l=n.vertices.get(s.vertices.get(0)),c=n.vertices.get(s.vertices.get(1)),u=i.offset;if(l.x>c.x){let e=l;l=c,c=e,u=1-u}let d=Math.sqrt(Math.pow(l.x-c.x,2)+Math.pow(l.y-c.y,2)),p=Math.asin((c.y-l.y)/d),f=(new y.Box3).setFromObject(r),g=[(f.max.x-f.min.x)/2+f.min.x,(f.max.y-f.min.y)/2+f.min.y,(f.max.z-f.min.z)/2+f.min.z],w=i.properties.get("altitude").get("length"),x=i.properties.get("height").get("length");r.rotation.y=p,r.position.x=l.x+d*u*Math.cos(p)-g[2]*Math.sin(p),r.position.y=w+x/2-g[1]+n.altitude,r.position.z=-l.y-d*u*Math.sin(p)-g[2]*Math.cos(p),t.plan.add(r),t.sceneGraph.layers[n.id].holes[i.id]=r,h(r,()=>a.selectHole(n.id,i.id));let v=n.opacity;i.selected&&(v=1),m(r,v)})}function u(e,t,n,o,r,a){let i=n.lines.get(o),s=n.vertices.get(i.vertices.get(0)),l=n.vertices.get(i.vertices.get(1));if(s.x>l.x){let e=s;s=l,l=e}return r.getElement(i.type).render3D(i,n,e).then(e=>{e instanceof y.LOD&&(t.sceneGraph.LODs[i.id]=e);let r=new y.Object3D;r.add(e),r.position.x=s.x,r.position.y=n.altitude,r.position.z=-s.y,t.plan.add(r),t.sceneGraph.layers[n.id].lines[o]=r,h(r,()=>a.selectLine(n.id,i.id));let l=n.opacity;i.selected&&(l=1),m(r,l)})}function d(e,t,n,o,r,a){let i=n.areas.get(o);return r.getElement(i.type).render3D(i,n,e).then(e=>{e instanceof y.LOD&&(t.sceneGraph.LODs[o]=e);let r=new y.Object3D;r.add(e),r.position.y=n.altitude,t.plan.add(r),t.sceneGraph.layers[n.id].areas[i.id]=r,h(r,()=>{a.selectArea(n.id,i.id)});let s=n.opacity;i.selected&&(s=1),m(r,s)})}function p(e,t,n,o,r,a){let i=n.items.get(o);return r.getElement(i.type).render3D(i,n,e).then(e=>{e instanceof y.LOD&&(t.sceneGraph.LODs[o]=e);let r=new y.Object3D;r.add(e),r.rotation.y=i.rotation*Math.PI/180,r.position.x=i.x,r.position.y=n.altitude,r.position.z=-i.y,h(e,()=>{a.selectItem(n.id,i.id)});let s=n.opacity;i.selected&&(s=1),m(r,s),t.plan.add(r),t.sceneGraph.layers[n.id].items[i.id]=r})}function h(e,t){e.traverse(function(e){e instanceof y.Mesh&&(e.interact=t)})}function m(e,t){e.traverse(function(e){e instanceof y.Mesh&&(e.material instanceof y.MultiMaterial?e.material.materials.forEach(e=>{e.transparent=!0,e.maxOpacity?e.opacity=Math.min(e.maxOpacity,t):e.opacity&&e.opacity>t&&(e.maxOpacity=e.opacity,e.opacity=t)}):e.material instanceof Array?e.material.forEach(e=>{e.transparent=!0,e.maxOpacity?e.opacity=Math.min(e.maxOpacity,t):e.opacity&&e.opacity>t&&(e.maxOpacity=e.opacity,e.opacity=t)}):(e.material.transparent=!0,e.material.maxOpacity?e.material.opacity=Math.min(e.material.maxOpacity,t):e.material.opacity&&e.material.opacity>t&&(e.material.maxOpacity=e.material.opacity,e.material.opacity=t)))})}function f(e){let t=(new y.Box3).setFromObject(e.plan);if(isFinite(t.max.x)&&isFinite(t.min.x)&&isFinite(t.max.y)&&isFinite(t.min.y)&&isFinite(t.max.z)&&isFinite(t.min.z)){let n=new y.Vector3((t.max.x-t.min.x)/2+t.min.x,(t.max.y-t.min.y)/2+t.min.y,(t.max.z-t.min.z)/2+t.min.z);e.plan.position.sub(n),e.grid.position.sub(n),t.min.sub(n),t.max.sub(n),e.boundingBox=t}}t.a=function(e,t,n){let r={};r.sceneGraph={unit:e.unit,layers:{},width:e.width,height:e.height,LODs:{}},r.plan=new y.Object3D,r.grid=Object(g.a)(e),r.boundingBox=(new y.Box3).setFromObject(r.grid);let a=[];return e.layers.forEach(i=>{(i.id===e.selectedLayer||i.visible)&&(a=a.concat(o(i,r,e,t,n)))}),Promise.all(a).then(e=>{f(r)}),r},t.b=r;var y=n(1),g=n(408),w=n(92)},function(e,t,n){"use strict";t.a={glyphs:{"ο":{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 96 88 192 -25 q 0 368 0 201 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 "},S:{x_min:0,x_max:788,ha:890,o:"m 788 291 q 662 54 788 144 q 397 -26 550 -26 q 116 68 226 -26 q 0 337 0 168 l 131 337 q 200 152 131 220 q 384 85 269 85 q 557 129 479 85 q 650 270 650 183 q 490 429 650 379 q 194 513 341 470 q 33 739 33 584 q 142 964 33 881 q 388 1041 242 1041 q 644 957 543 1041 q 756 716 756 867 l 625 716 q 561 874 625 816 q 395 933 497 933 q 243 891 309 933 q 164 759 164 841 q 325 609 164 656 q 625 526 475 568 q 788 291 788 454 "},"¦":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},"/":{x_min:183.25,x_max:608.328125,ha:792,o:"m 608 1041 l 266 -129 l 183 -129 l 520 1041 l 608 1041 "},"Τ":{x_min:-.4375,x_max:777.453125,ha:839,o:"m 777 893 l 458 893 l 458 0 l 319 0 l 319 892 l 0 892 l 0 1013 l 777 1013 l 777 893 "},y:{x_min:0,x_max:684.78125,ha:771,o:"m 684 738 l 388 -83 q 311 -216 356 -167 q 173 -279 252 -279 q 97 -266 133 -279 l 97 -149 q 132 -155 109 -151 q 168 -160 155 -160 q 240 -114 213 -160 q 274 -26 248 -98 l 0 738 l 137 737 l 341 139 l 548 737 l 684 738 "},"Π":{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 803 1012 l 803 0 "},"ΐ":{x_min:-111,x_max:339,ha:361,o:"m 339 800 l 229 800 l 229 925 l 339 925 l 339 800 m -1 800 l -111 800 l -111 925 l -1 925 l -1 800 m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 m 302 1040 l 113 819 l 30 819 l 165 1040 l 302 1040 "},g:{x_min:0,x_max:686,ha:838,o:"m 686 34 q 586 -213 686 -121 q 331 -306 487 -306 q 131 -252 216 -306 q 31 -84 31 -190 l 155 -84 q 228 -174 166 -138 q 345 -207 284 -207 q 514 -109 454 -207 q 564 89 564 -27 q 461 6 521 36 q 335 -23 401 -23 q 88 100 184 -23 q 0 370 0 215 q 87 634 0 522 q 330 758 183 758 q 457 728 398 758 q 564 644 515 699 l 564 737 l 686 737 l 686 34 m 582 367 q 529 560 582 481 q 358 652 468 652 q 189 561 250 652 q 135 369 135 482 q 189 176 135 255 q 361 85 251 85 q 529 176 468 85 q 582 367 582 255 "},"²":{x_min:0,x_max:442,ha:539,o:"m 442 383 l 0 383 q 91 566 0 492 q 260 668 176 617 q 354 798 354 727 q 315 875 354 845 q 227 905 277 905 q 136 869 173 905 q 99 761 99 833 l 14 761 q 82 922 14 864 q 232 974 141 974 q 379 926 316 974 q 442 797 442 878 q 351 635 442 704 q 183 539 321 611 q 92 455 92 491 l 442 455 l 442 383 "},"–":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},"Κ":{x_min:0,x_max:819.5625,ha:893,o:"m 819 0 l 650 0 l 294 509 l 139 356 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},"ƒ":{x_min:-46.265625,x_max:392,ha:513,o:"m 392 651 l 259 651 l 79 -279 l -46 -278 l 134 651 l 14 651 l 14 751 l 135 751 q 151 948 135 900 q 304 1041 185 1041 q 334 1040 319 1041 q 392 1034 348 1039 l 392 922 q 337 931 360 931 q 271 883 287 931 q 260 793 260 853 l 260 751 l 392 751 l 392 651 "},e:{x_min:0,x_max:714,ha:813,o:"m 714 326 l 140 326 q 200 157 140 227 q 359 87 260 87 q 488 130 431 87 q 561 245 545 174 l 697 245 q 577 48 670 123 q 358 -26 484 -26 q 97 85 195 -26 q 0 363 0 197 q 94 642 0 529 q 358 765 195 765 q 626 627 529 765 q 714 326 714 503 m 576 429 q 507 583 564 522 q 355 650 445 650 q 206 583 266 650 q 140 429 152 522 l 576 429 "},"ό":{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 94 91 194 -25 q 0 368 0 202 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 m 576 1040 l 387 819 l 303 819 l 438 1040 l 576 1040 "},J:{x_min:0,x_max:588,ha:699,o:"m 588 279 q 287 -26 588 -26 q 58 73 126 -26 q 0 327 0 158 l 133 327 q 160 172 133 227 q 288 96 198 96 q 426 171 391 96 q 449 336 449 219 l 449 1013 l 588 1013 l 588 279 "},"»":{x_min:-1,x_max:503,ha:601,o:"m 503 302 l 280 136 l 281 256 l 429 373 l 281 486 l 280 608 l 503 440 l 503 302 m 221 302 l 0 136 l 0 255 l 145 372 l 0 486 l -1 608 l 221 440 l 221 302 "},"©":{x_min:-3,x_max:1008,ha:1106,o:"m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 741 394 q 661 246 731 302 q 496 190 591 190 q 294 285 369 190 q 228 497 228 370 q 295 714 228 625 q 499 813 370 813 q 656 762 588 813 q 733 625 724 711 l 634 625 q 589 704 629 673 q 498 735 550 735 q 377 666 421 735 q 334 504 334 597 q 374 340 334 408 q 490 272 415 272 q 589 304 549 272 q 638 394 628 337 l 741 394 "},"ώ":{x_min:0,x_max:922,ha:1030,o:"m 687 1040 l 498 819 l 415 819 l 549 1040 l 687 1040 m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 338 0 202 q 45 551 0 444 q 161 737 84 643 l 302 737 q 175 552 219 647 q 124 336 124 446 q 155 179 124 248 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 341 797 257 q 745 555 797 450 q 619 737 705 637 l 760 737 q 874 551 835 640 q 922 339 922 444 "},"^":{x_min:193.0625,x_max:598.609375,ha:792,o:"m 598 772 l 515 772 l 395 931 l 277 772 l 193 772 l 326 1013 l 462 1013 l 598 772 "},"«":{x_min:0,x_max:507.203125,ha:604,o:"m 506 136 l 284 302 l 284 440 l 506 608 l 507 485 l 360 371 l 506 255 l 506 136 m 222 136 l 0 302 l 0 440 l 222 608 l 221 486 l 73 373 l 222 256 l 222 136 "},D:{x_min:0,x_max:828,ha:935,o:"m 389 1013 q 714 867 593 1013 q 828 521 828 729 q 712 161 828 309 q 382 0 587 0 l 0 0 l 0 1013 l 389 1013 m 376 124 q 607 247 523 124 q 681 510 681 355 q 607 771 681 662 q 376 896 522 896 l 139 896 l 139 124 l 376 124 "},"∙":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},"ÿ":{x_min:0,x_max:47,ha:125,o:"m 47 3 q 37 -7 47 -7 q 28 0 30 -7 q 39 -4 32 -4 q 45 3 45 -1 l 37 0 q 28 9 28 0 q 39 19 28 19 l 47 16 l 47 19 l 47 3 m 37 1 q 44 8 44 1 q 37 16 44 16 q 30 8 30 16 q 37 1 30 1 m 26 1 l 23 22 l 14 0 l 3 22 l 3 3 l 0 25 l 13 1 l 22 25 l 26 1 "},w:{x_min:0,x_max:1009.71875,ha:1100,o:"m 1009 738 l 783 0 l 658 0 l 501 567 l 345 0 l 222 0 l 0 738 l 130 738 l 284 174 l 432 737 l 576 738 l 721 173 l 881 737 l 1009 738 "},$:{x_min:0,x_max:700,ha:793,o:"m 664 717 l 542 717 q 490 825 531 785 q 381 872 450 865 l 381 551 q 620 446 540 522 q 700 241 700 370 q 618 45 700 116 q 381 -25 536 -25 l 381 -152 l 307 -152 l 307 -25 q 81 62 162 -25 q 0 297 0 149 l 124 297 q 169 146 124 204 q 307 81 215 89 l 307 441 q 80 536 148 469 q 13 725 13 603 q 96 910 13 839 q 307 982 180 982 l 307 1077 l 381 1077 l 381 982 q 574 917 494 982 q 664 717 664 845 m 307 565 l 307 872 q 187 831 233 872 q 142 724 142 791 q 180 618 142 656 q 307 565 218 580 m 381 76 q 562 237 562 96 q 517 361 562 313 q 381 423 472 409 l 381 76 "},"\\":{x_min:-.015625,x_max:425.0625,ha:522,o:"m 425 -129 l 337 -129 l 0 1041 l 83 1041 l 425 -129 "},"µ":{x_min:0,x_max:697.21875,ha:747,o:"m 697 -4 q 629 -14 658 -14 q 498 97 513 -14 q 422 9 470 41 q 313 -23 374 -23 q 207 4 258 -23 q 119 81 156 32 l 119 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 173 124 246 q 308 83 216 83 q 452 178 402 83 q 493 359 493 255 l 493 738 l 617 738 l 617 214 q 623 136 617 160 q 673 92 637 92 q 697 96 684 92 l 697 -4 "},"Ι":{x_min:42,x_max:181,ha:297,o:"m 181 0 l 42 0 l 42 1013 l 181 1013 l 181 0 "},"Ύ":{x_min:0,x_max:1144.5,ha:1214,o:"m 1144 1012 l 807 416 l 807 0 l 667 0 l 667 416 l 325 1012 l 465 1012 l 736 533 l 1004 1012 l 1144 1012 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"’":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},"Ν":{x_min:0,x_max:801,ha:915,o:"m 801 0 l 651 0 l 131 822 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 191 l 670 1013 l 801 1013 l 801 0 "},"-":{x_min:8.71875,x_max:350.390625,ha:478,o:"m 350 317 l 8 317 l 8 428 l 350 428 l 350 317 "},Q:{x_min:0,x_max:968,ha:1072,o:"m 954 5 l 887 -79 l 744 35 q 622 -11 687 2 q 483 -26 556 -26 q 127 130 262 -26 q 0 504 0 279 q 127 880 0 728 q 484 1041 262 1041 q 841 884 708 1041 q 968 507 968 735 q 933 293 968 398 q 832 104 899 188 l 954 5 m 723 191 q 802 330 777 248 q 828 499 828 412 q 744 790 828 673 q 483 922 650 922 q 228 791 322 922 q 142 505 142 673 q 227 221 142 337 q 487 91 323 91 q 632 123 566 91 l 520 215 l 587 301 l 723 191 "},"ς":{x_min:1,x_max:676.28125,ha:740,o:"m 676 460 l 551 460 q 498 595 542 546 q 365 651 448 651 q 199 578 263 651 q 136 401 136 505 q 266 178 136 241 q 508 106 387 142 q 640 -50 640 62 q 625 -158 640 -105 q 583 -278 611 -211 l 465 -278 q 498 -182 490 -211 q 515 -80 515 -126 q 381 12 515 -15 q 134 91 197 51 q 1 388 1 179 q 100 651 1 542 q 354 761 199 761 q 587 680 498 761 q 676 460 676 599 "},M:{x_min:0,x_max:954,ha:1067,o:"m 954 0 l 819 0 l 819 869 l 537 0 l 405 0 l 128 866 l 128 0 l 0 0 l 0 1013 l 200 1013 l 472 160 l 757 1013 l 954 1013 l 954 0 "},"Ψ":{x_min:0,x_max:1006,ha:1094,o:"m 1006 678 q 914 319 1006 429 q 571 200 814 200 l 571 0 l 433 0 l 433 200 q 92 319 194 200 q 0 678 0 429 l 0 1013 l 139 1013 l 139 679 q 191 417 139 492 q 433 326 255 326 l 433 1013 l 571 1013 l 571 326 l 580 326 q 813 423 747 326 q 868 679 868 502 l 868 1013 l 1006 1013 l 1006 678 "},C:{x_min:0,x_max:886,ha:944,o:"m 886 379 q 760 87 886 201 q 455 -26 634 -26 q 112 136 236 -26 q 0 509 0 283 q 118 882 0 737 q 469 1041 245 1041 q 748 955 630 1041 q 879 708 879 859 l 745 708 q 649 862 724 805 q 473 920 573 920 q 219 791 312 920 q 136 509 136 675 q 217 229 136 344 q 470 99 311 99 q 672 179 591 99 q 753 379 753 259 l 886 379 "},"!":{x_min:0,x_max:138,ha:236,o:"m 138 684 q 116 409 138 629 q 105 244 105 299 l 33 244 q 16 465 33 313 q 0 684 0 616 l 0 1013 l 138 1013 l 138 684 m 138 0 l 0 0 l 0 151 l 138 151 l 138 0 "},"{":{x_min:0,x_max:480.5625,ha:578,o:"m 480 -286 q 237 -213 303 -286 q 187 -45 187 -159 q 194 48 187 -15 q 201 141 201 112 q 164 264 201 225 q 0 314 118 314 l 0 417 q 164 471 119 417 q 201 605 201 514 q 199 665 201 644 q 193 772 193 769 q 241 941 193 887 q 480 1015 308 1015 l 480 915 q 336 866 375 915 q 306 742 306 828 q 310 662 306 717 q 314 577 314 606 q 288 452 314 500 q 176 365 256 391 q 289 275 257 337 q 314 143 314 226 q 313 84 314 107 q 310 -11 310 -5 q 339 -131 310 -94 q 480 -182 377 -182 l 480 -286 "},X:{x_min:-.015625,x_max:854.15625,ha:940,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 428 637 l 675 1013 l 836 1013 l 504 520 l 854 0 "},"#":{x_min:0,x_max:963.890625,ha:1061,o:"m 963 690 l 927 590 l 719 590 l 655 410 l 876 410 l 840 310 l 618 310 l 508 -3 l 393 -2 l 506 309 l 329 310 l 215 -2 l 102 -3 l 212 310 l 0 310 l 36 410 l 248 409 l 312 590 l 86 590 l 120 690 l 347 690 l 459 1006 l 573 1006 l 462 690 l 640 690 l 751 1006 l 865 1006 l 754 690 l 963 690 m 606 590 l 425 590 l 362 410 l 543 410 l 606 590 "},"ι":{x_min:42,x_max:284,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 738 l 167 738 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 "},"Ά":{x_min:0,x_max:906.953125,ha:982,o:"m 283 1040 l 88 799 l 5 799 l 145 1040 l 283 1040 m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1012 l 529 1012 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},")":{x_min:0,x_max:318,ha:415,o:"m 318 365 q 257 25 318 191 q 87 -290 197 -141 l 0 -290 q 140 21 93 -128 q 193 360 193 189 q 141 704 193 537 q 0 1024 97 850 l 87 1024 q 257 706 197 871 q 318 365 318 542 "},"ε":{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 314 0 265 q 128 390 67 353 q 56 460 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 "},"Δ":{x_min:0,x_max:952.78125,ha:1028,o:"m 952 0 l 0 0 l 400 1013 l 551 1013 l 952 0 m 762 124 l 476 867 l 187 124 l 762 124 "},"}":{x_min:0,x_max:481,ha:578,o:"m 481 314 q 318 262 364 314 q 282 136 282 222 q 284 65 282 97 q 293 -58 293 -48 q 241 -217 293 -166 q 0 -286 174 -286 l 0 -182 q 143 -130 105 -182 q 171 -2 171 -93 q 168 81 171 22 q 165 144 165 140 q 188 275 165 229 q 306 365 220 339 q 191 455 224 391 q 165 588 165 505 q 168 681 165 624 q 171 742 171 737 q 141 865 171 827 q 0 915 102 915 l 0 1015 q 243 942 176 1015 q 293 773 293 888 q 287 675 293 741 q 282 590 282 608 q 318 466 282 505 q 481 417 364 417 l 481 314 "},"‰":{x_min:-3,x_max:1672,ha:1821,o:"m 846 0 q 664 76 732 0 q 603 244 603 145 q 662 412 603 344 q 846 489 729 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 846 0 962 0 m 845 103 q 945 143 910 103 q 981 243 981 184 q 947 340 981 301 q 845 385 910 385 q 745 342 782 385 q 709 243 709 300 q 742 147 709 186 q 845 103 781 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 m 1428 0 q 1246 76 1314 0 q 1185 244 1185 145 q 1244 412 1185 344 q 1428 489 1311 489 q 1610 412 1542 489 q 1672 244 1672 343 q 1612 76 1672 144 q 1428 0 1545 0 m 1427 103 q 1528 143 1492 103 q 1564 243 1564 184 q 1530 340 1564 301 q 1427 385 1492 385 q 1327 342 1364 385 q 1291 243 1291 300 q 1324 147 1291 186 q 1427 103 1363 103 "},a:{x_min:0,x_max:698.609375,ha:794,o:"m 698 0 q 661 -12 679 -7 q 615 -17 643 -17 q 536 12 564 -17 q 500 96 508 41 q 384 6 456 37 q 236 -25 312 -25 q 65 31 130 -25 q 0 194 0 88 q 118 390 0 334 q 328 435 180 420 q 488 483 476 451 q 495 523 495 504 q 442 619 495 584 q 325 654 389 654 q 209 617 257 654 q 152 513 161 580 l 33 513 q 123 705 33 633 q 332 772 207 772 q 528 712 448 772 q 617 531 617 645 l 617 163 q 624 108 617 126 q 664 90 632 90 l 698 94 l 698 0 m 491 262 l 491 372 q 272 329 350 347 q 128 201 128 294 q 166 113 128 144 q 264 83 205 83 q 414 130 346 83 q 491 262 491 183 "},"—":{x_min:0,x_max:941.671875,ha:1039,o:"m 941 334 l 0 334 l 0 410 l 941 410 l 941 334 "},"=":{x_min:8.71875,x_max:780.953125,ha:792,o:"m 780 510 l 8 510 l 8 606 l 780 606 l 780 510 m 780 235 l 8 235 l 8 332 l 780 332 l 780 235 "},N:{x_min:0,x_max:801,ha:914,o:"m 801 0 l 651 0 l 131 823 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 193 l 670 1013 l 801 1013 l 801 0 "},"ρ":{x_min:0,x_max:712,ha:797,o:"m 712 369 q 620 94 712 207 q 362 -26 521 -26 q 230 2 292 -26 q 119 83 167 30 l 119 -278 l 0 -278 l 0 362 q 91 643 0 531 q 355 764 190 764 q 617 647 517 764 q 712 369 712 536 m 583 366 q 530 559 583 480 q 359 651 469 651 q 190 562 252 651 q 135 370 135 483 q 189 176 135 257 q 359 85 250 85 q 528 175 466 85 q 583 366 583 254 "},2:{x_min:59,x_max:731,ha:792,o:"m 731 0 l 59 0 q 197 314 59 188 q 457 487 199 315 q 598 691 598 580 q 543 819 598 772 q 411 867 488 867 q 272 811 328 867 q 209 630 209 747 l 81 630 q 182 901 81 805 q 408 986 271 986 q 629 909 536 986 q 731 694 731 826 q 613 449 731 541 q 378 316 495 383 q 201 122 235 234 l 731 122 l 731 0 "},"¯":{x_min:0,x_max:941.671875,ha:938,o:"m 941 1033 l 0 1033 l 0 1109 l 941 1109 l 941 1033 "},Z:{x_min:0,x_max:779,ha:849,o:"m 779 0 l 0 0 l 0 113 l 621 896 l 40 896 l 40 1013 l 779 1013 l 778 887 l 171 124 l 779 124 l 779 0 "},u:{x_min:0,x_max:617,ha:729,o:"m 617 0 l 499 0 l 499 110 q 391 10 460 45 q 246 -25 322 -25 q 61 58 127 -25 q 0 258 0 136 l 0 738 l 125 738 l 125 284 q 156 148 125 202 q 273 82 197 82 q 433 165 369 82 q 493 340 493 243 l 493 738 l 617 738 l 617 0 "},k:{x_min:0,x_max:612.484375,ha:697,o:"m 612 738 l 338 465 l 608 0 l 469 0 l 251 382 l 121 251 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 402 l 456 738 l 612 738 "},"Η":{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},"Α":{x_min:0,x_max:906.953125,ha:985,o:"m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},s:{x_min:0,x_max:604,ha:697,o:"m 604 217 q 501 36 604 104 q 292 -23 411 -23 q 86 43 166 -23 q 0 238 0 114 l 121 237 q 175 122 121 164 q 300 85 223 85 q 415 112 363 85 q 479 207 479 147 q 361 309 479 276 q 140 372 141 370 q 21 544 21 426 q 111 708 21 647 q 298 761 190 761 q 492 705 413 761 q 583 531 583 643 l 462 531 q 412 625 462 594 q 298 657 363 657 q 199 636 242 657 q 143 558 143 608 q 262 454 143 486 q 484 394 479 397 q 604 217 604 341 "},B:{x_min:0,x_max:778,ha:876,o:"m 580 546 q 724 469 670 535 q 778 311 778 403 q 673 83 778 171 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 892 q 691 633 732 693 q 580 546 650 572 m 393 899 l 139 899 l 139 588 l 379 588 q 521 624 462 588 q 592 744 592 667 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 303 635 219 q 559 436 635 389 q 402 477 494 477 l 139 477 l 139 124 l 419 124 "},"…":{x_min:0,x_max:614,ha:708,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 m 378 0 l 236 0 l 236 151 l 378 151 l 378 0 m 614 0 l 472 0 l 472 151 l 614 151 l 614 0 "},"?":{x_min:0,x_max:607,ha:704,o:"m 607 777 q 543 599 607 674 q 422 474 482 537 q 357 272 357 391 l 236 272 q 297 487 236 395 q 411 619 298 490 q 474 762 474 691 q 422 885 474 838 q 301 933 371 933 q 179 880 228 933 q 124 706 124 819 l 0 706 q 94 963 0 872 q 302 1044 177 1044 q 511 973 423 1044 q 607 777 607 895 m 370 0 l 230 0 l 230 151 l 370 151 l 370 0 "},H:{x_min:0,x_max:803,ha:915,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},"ν":{x_min:0,x_max:675,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 738 l 340 147 l 541 738 l 675 738 "},c:{x_min:1,x_max:701.390625,ha:775,o:"m 701 264 q 584 53 681 133 q 353 -26 487 -26 q 91 91 188 -26 q 1 370 1 201 q 92 645 1 537 q 353 761 190 761 q 572 688 479 761 q 690 493 666 615 l 556 493 q 487 606 545 562 q 356 650 428 650 q 186 563 246 650 q 134 372 134 487 q 188 179 134 258 q 359 88 250 88 q 492 136 437 88 q 566 264 548 185 l 701 264 "},"¶":{x_min:0,x_max:566.671875,ha:678,o:"m 21 892 l 52 892 l 98 761 l 145 892 l 176 892 l 178 741 l 157 741 l 157 867 l 108 741 l 88 741 l 40 871 l 40 741 l 21 741 l 21 892 m 308 854 l 308 731 q 252 691 308 691 q 227 691 240 691 q 207 696 213 695 l 207 712 l 253 706 q 288 733 288 706 l 288 763 q 244 741 279 741 q 193 797 193 741 q 261 860 193 860 q 287 860 273 860 q 308 854 302 855 m 288 842 l 263 843 q 213 796 213 843 q 248 756 213 756 q 288 796 288 756 l 288 842 m 566 988 l 502 988 l 502 -1 l 439 -1 l 439 988 l 317 988 l 317 -1 l 252 -1 l 252 602 q 81 653 155 602 q 0 805 0 711 q 101 989 0 918 q 309 1053 194 1053 l 566 1053 l 566 988 "},"β":{x_min:0,x_max:660,ha:745,o:"m 471 550 q 610 450 561 522 q 660 280 660 378 q 578 64 660 151 q 367 -22 497 -22 q 239 5 299 -22 q 126 82 178 32 l 126 -278 l 0 -278 l 0 593 q 54 903 0 801 q 318 1042 127 1042 q 519 964 436 1042 q 603 771 603 887 q 567 644 603 701 q 471 550 532 586 m 337 79 q 476 138 418 79 q 535 279 535 198 q 427 437 535 386 q 226 477 344 477 l 226 583 q 398 620 329 583 q 486 762 486 668 q 435 884 486 833 q 312 935 384 935 q 169 861 219 935 q 126 698 126 797 l 126 362 q 170 169 126 242 q 337 79 224 79 "},"Μ":{x_min:0,x_max:954,ha:1068,o:"m 954 0 l 819 0 l 819 868 l 537 0 l 405 0 l 128 865 l 128 0 l 0 0 l 0 1013 l 199 1013 l 472 158 l 758 1013 l 954 1013 l 954 0 "},"Ό":{x_min:.109375,x_max:1120,ha:1217,o:"m 1120 505 q 994 132 1120 282 q 642 -29 861 -29 q 290 130 422 -29 q 167 505 167 280 q 294 883 167 730 q 650 1046 430 1046 q 999 882 868 1046 q 1120 505 1120 730 m 977 504 q 896 784 977 669 q 644 915 804 915 q 391 785 484 915 q 307 504 307 669 q 391 224 307 339 q 644 95 486 95 q 894 224 803 95 q 977 504 977 339 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"Ή":{x_min:0,x_max:1158,ha:1275,o:"m 1158 0 l 1022 0 l 1022 475 l 496 475 l 496 0 l 356 0 l 356 1012 l 496 1012 l 496 599 l 1022 599 l 1022 1012 l 1158 1012 l 1158 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"•":{x_min:0,x_max:663.890625,ha:775,o:"m 663 529 q 566 293 663 391 q 331 196 469 196 q 97 294 194 196 q 0 529 0 393 q 96 763 0 665 q 331 861 193 861 q 566 763 469 861 q 663 529 663 665 "},"¥":{x_min:.1875,x_max:819.546875,ha:886,o:"m 563 561 l 697 561 l 696 487 l 520 487 l 482 416 l 482 380 l 697 380 l 695 308 l 482 308 l 482 0 l 342 0 l 342 308 l 125 308 l 125 380 l 342 380 l 342 417 l 303 487 l 125 487 l 125 561 l 258 561 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 l 563 561 "},"(":{x_min:0,x_max:318.0625,ha:415,o:"m 318 -290 l 230 -290 q 61 23 122 -142 q 0 365 0 190 q 62 712 0 540 q 230 1024 119 869 l 318 1024 q 175 705 219 853 q 125 360 125 542 q 176 22 125 187 q 318 -290 223 -127 "},U:{x_min:0,x_max:796,ha:904,o:"m 796 393 q 681 93 796 212 q 386 -25 566 -25 q 101 95 208 -25 q 0 393 0 211 l 0 1013 l 138 1013 l 138 391 q 204 191 138 270 q 394 107 276 107 q 586 191 512 107 q 656 391 656 270 l 656 1013 l 796 1013 l 796 393 "},"γ":{x_min:.5,x_max:744.953125,ha:822,o:"m 744 737 l 463 54 l 463 -278 l 338 -278 l 338 54 l 154 495 q 104 597 124 569 q 13 651 67 651 l 0 651 l 0 751 l 39 753 q 168 711 121 753 q 242 594 207 676 l 403 208 l 617 737 l 744 737 "},"α":{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 728 407 760 q 563 637 524 696 l 563 739 l 685 739 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 96 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 "},F:{x_min:0,x_max:683.328125,ha:717,o:"m 683 888 l 140 888 l 140 583 l 613 583 l 613 458 l 140 458 l 140 0 l 0 0 l 0 1013 l 683 1013 l 683 888 "},"­":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},":":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},"Χ":{x_min:0,x_max:854.171875,ha:935,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 427 637 l 675 1013 l 836 1013 l 504 521 l 854 0 "},"*":{x_min:116,x_max:674,ha:792,o:"m 674 768 l 475 713 l 610 544 l 517 477 l 394 652 l 272 478 l 178 544 l 314 713 l 116 766 l 153 876 l 341 812 l 342 1013 l 446 1013 l 446 811 l 635 874 l 674 768 "},"†":{x_min:0,x_max:777,ha:835,o:"m 458 804 l 777 804 l 777 683 l 458 683 l 458 0 l 319 0 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 "},"°":{x_min:0,x_max:347,ha:444,o:"m 173 802 q 43 856 91 802 q 0 977 0 905 q 45 1101 0 1049 q 173 1153 90 1153 q 303 1098 255 1153 q 347 977 347 1049 q 303 856 347 905 q 173 802 256 802 m 173 884 q 238 910 214 884 q 262 973 262 937 q 239 1038 262 1012 q 173 1064 217 1064 q 108 1037 132 1064 q 85 973 85 1010 q 108 910 85 937 q 173 884 132 884 "},V:{x_min:0,x_max:862.71875,ha:940,o:"m 862 1013 l 505 0 l 361 0 l 0 1013 l 143 1013 l 434 165 l 718 1012 l 862 1013 "},"Ξ":{x_min:0,x_max:734.71875,ha:763,o:"m 723 889 l 9 889 l 9 1013 l 723 1013 l 723 889 m 673 463 l 61 463 l 61 589 l 673 589 l 673 463 m 734 0 l 0 0 l 0 124 l 734 124 l 734 0 "}," ":{x_min:0,x_max:0,ha:853},"Ϋ":{x_min:.328125,x_max:819.515625,ha:889,o:"m 588 1046 l 460 1046 l 460 1189 l 588 1189 l 588 1046 m 360 1046 l 232 1046 l 232 1189 l 360 1189 l 360 1046 m 819 1012 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1012 l 140 1012 l 411 533 l 679 1012 l 819 1012 "},0:{x_min:73,x_max:715,ha:792,o:"m 394 -29 q 153 129 242 -29 q 73 479 73 272 q 152 829 73 687 q 394 989 241 989 q 634 829 545 989 q 715 479 715 684 q 635 129 715 270 q 394 -29 546 -29 m 394 89 q 546 211 489 89 q 598 479 598 322 q 548 748 598 640 q 394 871 491 871 q 241 748 298 871 q 190 479 190 637 q 239 211 190 319 q 394 89 296 89 "},"”":{x_min:0,x_max:347,ha:454,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 m 347 851 q 310 737 347 784 q 208 669 273 690 l 208 734 q 267 787 250 741 q 280 873 280 821 l 208 873 l 208 1013 l 347 1013 l 347 851 "},"@":{x_min:0,x_max:1260,ha:1357,o:"m 1098 -45 q 877 -160 1001 -117 q 633 -203 752 -203 q 155 -29 327 -203 q 0 360 0 127 q 176 802 0 616 q 687 1008 372 1008 q 1123 854 969 1008 q 1260 517 1260 718 q 1155 216 1260 341 q 868 82 1044 82 q 772 106 801 82 q 737 202 737 135 q 647 113 700 144 q 527 82 594 82 q 367 147 420 82 q 314 312 314 212 q 401 565 314 452 q 639 690 498 690 q 810 588 760 690 l 849 668 l 938 668 q 877 441 900 532 q 833 226 833 268 q 853 182 833 198 q 902 167 873 167 q 1088 272 1012 167 q 1159 512 1159 372 q 1051 793 1159 681 q 687 925 925 925 q 248 747 415 925 q 97 361 97 586 q 226 26 97 159 q 627 -122 370 -122 q 856 -87 737 -122 q 1061 8 976 -53 l 1098 -45 m 786 488 q 738 580 777 545 q 643 615 700 615 q 483 517 548 615 q 425 322 425 430 q 457 203 425 250 q 552 156 490 156 q 722 273 665 156 q 786 488 738 309 "},"Ί":{x_min:0,x_max:499,ha:613,o:"m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 m 499 0 l 360 0 l 360 1012 l 499 1012 l 499 0 "},i:{x_min:14,x_max:136,ha:275,o:"m 136 873 l 14 873 l 14 1013 l 136 1013 l 136 873 m 136 0 l 14 0 l 14 737 l 136 737 l 136 0 "},"Β":{x_min:0,x_max:778,ha:877,o:"m 580 545 q 724 468 671 534 q 778 310 778 402 q 673 83 778 170 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 891 q 691 632 732 692 q 580 545 650 571 m 393 899 l 139 899 l 139 587 l 379 587 q 521 623 462 587 q 592 744 592 666 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 302 635 219 q 559 435 635 388 q 402 476 494 476 l 139 476 l 139 124 l 419 124 "},"υ":{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 94 617 199 q 308 -24 455 -24 q 76 94 161 -24 q 0 352 0 199 l 0 739 l 126 739 l 126 355 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 355 492 257 l 492 739 l 617 739 l 617 352 "},"]":{x_min:0,x_max:275,ha:372,o:"m 275 -281 l 0 -281 l 0 -187 l 151 -187 l 151 920 l 0 920 l 0 1013 l 275 1013 l 275 -281 "},m:{x_min:0,x_max:1019,ha:1128,o:"m 1019 0 l 897 0 l 897 454 q 860 591 897 536 q 739 660 816 660 q 613 586 659 660 q 573 436 573 522 l 573 0 l 447 0 l 447 455 q 412 591 447 535 q 294 657 372 657 q 165 586 213 657 q 122 437 122 521 l 122 0 l 0 0 l 0 738 l 117 738 l 117 640 q 202 730 150 697 q 316 763 254 763 q 437 730 381 763 q 525 642 494 697 q 621 731 559 700 q 753 763 682 763 q 943 694 867 763 q 1019 512 1019 625 l 1019 0 "},"χ":{x_min:8.328125,x_max:780.5625,ha:815,o:"m 780 -278 q 715 -294 747 -294 q 616 -257 663 -294 q 548 -175 576 -227 l 379 133 l 143 -277 l 9 -277 l 313 254 l 163 522 q 127 586 131 580 q 36 640 91 640 q 8 637 27 640 l 8 752 l 52 757 q 162 719 113 757 q 236 627 200 690 l 383 372 l 594 737 l 726 737 l 448 250 l 625 -69 q 670 -153 647 -110 q 743 -188 695 -188 q 780 -184 759 -188 l 780 -278 "},8:{x_min:55,x_max:736,ha:792,o:"m 571 527 q 694 424 652 491 q 736 280 736 358 q 648 71 736 158 q 395 -26 551 -26 q 142 69 238 -26 q 55 279 55 157 q 96 425 55 359 q 220 527 138 491 q 120 615 153 562 q 88 726 88 668 q 171 904 88 827 q 395 986 261 986 q 618 905 529 986 q 702 727 702 830 q 670 616 702 667 q 571 527 638 565 m 394 565 q 519 610 475 565 q 563 717 563 655 q 521 823 563 781 q 392 872 474 872 q 265 824 312 872 q 224 720 224 783 q 265 613 224 656 q 394 565 312 565 m 395 91 q 545 150 488 91 q 597 280 597 204 q 546 408 597 355 q 395 465 492 465 q 244 408 299 465 q 194 280 194 356 q 244 150 194 203 q 395 91 299 91 "},"ί":{x_min:42,x_max:326.71875,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 102 239 101 q 284 112 257 104 l 284 3 m 326 1040 l 137 819 l 54 819 l 189 1040 l 326 1040 "},"Ζ":{x_min:0,x_max:779.171875,ha:850,o:"m 779 0 l 0 0 l 0 113 l 620 896 l 40 896 l 40 1013 l 779 1013 l 779 887 l 170 124 l 779 124 l 779 0 "},R:{x_min:0,x_max:781.953125,ha:907,o:"m 781 0 l 623 0 q 587 242 590 52 q 407 433 585 433 l 138 433 l 138 0 l 0 0 l 0 1013 l 396 1013 q 636 946 539 1013 q 749 731 749 868 q 711 597 749 659 q 608 502 674 534 q 718 370 696 474 q 729 207 722 352 q 781 26 736 62 l 781 0 m 373 551 q 533 594 465 551 q 614 731 614 645 q 532 859 614 815 q 373 896 465 896 l 138 896 l 138 551 l 373 551 "},o:{x_min:0,x_max:713,ha:821,o:"m 357 -25 q 94 91 194 -25 q 0 368 0 202 q 93 642 0 533 q 357 761 193 761 q 618 644 518 761 q 713 368 713 533 q 619 91 713 201 q 357 -25 521 -25 m 357 85 q 528 175 465 85 q 584 369 584 255 q 529 562 584 484 q 357 651 467 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 357 85 250 85 "},5:{x_min:54.171875,x_max:738,ha:792,o:"m 738 314 q 626 60 738 153 q 382 -23 526 -23 q 155 47 248 -23 q 54 256 54 125 l 183 256 q 259 132 204 174 q 382 91 314 91 q 533 149 471 91 q 602 314 602 213 q 538 469 602 411 q 386 528 475 528 q 284 506 332 528 q 197 439 237 484 l 81 439 l 159 958 l 684 958 l 684 840 l 254 840 l 214 579 q 306 627 258 612 q 407 643 354 643 q 636 552 540 643 q 738 314 738 457 "},7:{x_min:58.71875,x_max:730.953125,ha:792,o:"m 730 839 q 469 448 560 641 q 335 0 378 255 l 192 0 q 328 441 235 252 q 593 830 421 630 l 58 830 l 58 958 l 730 958 l 730 839 "},K:{x_min:0,x_max:819.46875,ha:906,o:"m 819 0 l 649 0 l 294 509 l 139 355 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},",":{x_min:0,x_max:142,ha:239,o:"m 142 -12 q 105 -132 142 -82 q 0 -205 68 -182 l 0 -138 q 57 -82 40 -124 q 70 0 70 -51 l 0 0 l 0 151 l 142 151 l 142 -12 "},d:{x_min:0,x_max:683,ha:796,o:"m 683 0 l 564 0 l 564 93 q 456 6 516 38 q 327 -25 395 -25 q 87 100 181 -25 q 0 365 0 215 q 90 639 0 525 q 343 763 187 763 q 564 647 486 763 l 564 1013 l 683 1013 l 683 0 m 582 373 q 529 562 582 484 q 361 653 468 653 q 190 561 253 653 q 135 365 135 479 q 189 175 135 254 q 358 85 251 85 q 529 178 468 85 q 582 373 582 258 "},"¨":{x_min:-109,x_max:247,ha:232,o:"m 247 1046 l 119 1046 l 119 1189 l 247 1189 l 247 1046 m 19 1046 l -109 1046 l -109 1189 l 19 1189 l 19 1046 "},E:{x_min:0,x_max:736.109375,ha:789,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},Y:{x_min:0,x_max:820,ha:886,o:"m 820 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 534 l 679 1012 l 820 1013 "},'"':{x_min:0,x_max:299,ha:396,o:"m 299 606 l 203 606 l 203 988 l 299 988 l 299 606 m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"‹":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"„":{x_min:0,x_max:364,ha:467,o:"m 141 -12 q 104 -132 141 -82 q 0 -205 67 -182 l 0 -138 q 56 -82 40 -124 q 69 0 69 -51 l 0 0 l 0 151 l 141 151 l 141 -12 m 364 -12 q 327 -132 364 -82 q 222 -205 290 -182 l 222 -138 q 279 -82 262 -124 q 292 0 292 -51 l 222 0 l 222 151 l 364 151 l 364 -12 "},"δ":{x_min:1,x_max:710,ha:810,o:"m 710 360 q 616 87 710 196 q 356 -28 518 -28 q 99 82 197 -28 q 1 356 1 192 q 100 606 1 509 q 355 703 199 703 q 180 829 288 754 q 70 903 124 866 l 70 1012 l 643 1012 l 643 901 l 258 901 q 462 763 422 794 q 636 592 577 677 q 710 360 710 485 m 584 365 q 552 501 584 447 q 451 602 521 555 q 372 611 411 611 q 197 541 258 611 q 136 355 136 472 q 190 171 136 245 q 358 85 252 85 q 528 173 465 85 q 584 365 584 252 "},"έ":{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 313 0 265 q 128 390 67 352 q 56 459 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 m 520 1040 l 331 819 l 248 819 l 383 1040 l 520 1040 "},"ω":{x_min:0,x_max:922,ha:1031,o:"m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 339 0 203 q 45 551 0 444 q 161 738 84 643 l 302 738 q 175 553 219 647 q 124 336 124 446 q 155 179 124 249 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 342 797 257 q 745 556 797 450 q 619 738 705 638 l 760 738 q 874 551 835 640 q 922 339 922 444 "},"´":{x_min:0,x_max:96,ha:251,o:"m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"±":{x_min:11,x_max:781,ha:792,o:"m 781 490 l 446 490 l 446 255 l 349 255 l 349 490 l 11 490 l 11 586 l 349 586 l 349 819 l 446 819 l 446 586 l 781 586 l 781 490 m 781 21 l 11 21 l 11 115 l 781 115 l 781 21 "},"|":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},"ϋ":{x_min:0,x_max:617,ha:725,o:"m 482 800 l 372 800 l 372 925 l 482 925 l 482 800 m 239 800 l 129 800 l 129 925 l 239 925 l 239 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 "},"§":{x_min:0,x_max:593,ha:690,o:"m 593 425 q 554 312 593 369 q 467 233 516 254 q 537 83 537 172 q 459 -74 537 -12 q 288 -133 387 -133 q 115 -69 184 -133 q 47 96 47 -6 l 166 96 q 199 7 166 40 q 288 -26 232 -26 q 371 -5 332 -26 q 420 60 420 21 q 311 201 420 139 q 108 309 210 255 q 0 490 0 383 q 33 602 0 551 q 124 687 66 654 q 75 743 93 712 q 58 812 58 773 q 133 984 58 920 q 300 1043 201 1043 q 458 987 394 1043 q 529 814 529 925 l 411 814 q 370 908 404 877 q 289 939 336 939 q 213 911 246 939 q 180 841 180 883 q 286 720 180 779 q 484 612 480 615 q 593 425 593 534 m 467 409 q 355 544 467 473 q 196 630 228 612 q 146 587 162 609 q 124 525 124 558 q 239 387 124 462 q 398 298 369 315 q 448 345 429 316 q 467 409 467 375 "},b:{x_min:0,x_max:685,ha:783,o:"m 685 372 q 597 99 685 213 q 347 -25 501 -25 q 219 5 277 -25 q 121 93 161 36 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 634 q 214 723 157 692 q 341 754 272 754 q 591 637 493 754 q 685 372 685 526 m 554 356 q 499 550 554 470 q 328 644 437 644 q 162 556 223 644 q 108 369 108 478 q 160 176 108 256 q 330 83 221 83 q 498 169 435 83 q 554 356 554 245 "},q:{x_min:0,x_max:683,ha:876,o:"m 683 -278 l 564 -278 l 564 97 q 474 8 533 39 q 345 -23 415 -23 q 91 93 188 -23 q 0 364 0 203 q 87 635 0 522 q 337 760 184 760 q 466 727 408 760 q 564 637 523 695 l 564 737 l 683 737 l 683 -278 m 582 375 q 527 564 582 488 q 358 652 466 652 q 190 565 253 652 q 135 377 135 488 q 189 179 135 261 q 361 84 251 84 q 530 179 469 84 q 582 375 582 260 "},"Ω":{x_min:-.171875,x_max:969.5625,ha:1068,o:"m 969 0 l 555 0 l 555 123 q 744 308 675 194 q 814 558 814 423 q 726 812 814 709 q 484 922 633 922 q 244 820 334 922 q 154 567 154 719 q 223 316 154 433 q 412 123 292 199 l 412 0 l 0 0 l 0 124 l 217 124 q 68 327 122 210 q 15 572 15 444 q 144 911 15 781 q 484 1041 274 1041 q 822 909 691 1041 q 953 569 953 777 q 899 326 953 443 q 750 124 846 210 l 969 124 l 969 0 "},"ύ":{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 535 1040 l 346 819 l 262 819 l 397 1040 l 535 1040 "},z:{x_min:-.015625,x_max:613.890625,ha:697,o:"m 613 0 l 0 0 l 0 100 l 433 630 l 20 630 l 20 738 l 594 738 l 593 636 l 163 110 l 613 110 l 613 0 "},"™":{x_min:0,x_max:894,ha:1e3,o:"m 389 951 l 229 951 l 229 503 l 160 503 l 160 951 l 0 951 l 0 1011 l 389 1011 l 389 951 m 894 503 l 827 503 l 827 939 l 685 503 l 620 503 l 481 937 l 481 503 l 417 503 l 417 1011 l 517 1011 l 653 580 l 796 1010 l 894 1011 l 894 503 "},"ή":{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 721 124 755 q 200 630 193 687 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 m 479 1040 l 290 819 l 207 819 l 341 1040 l 479 1040 "},"Θ":{x_min:0,x_max:960,ha:1056,o:"m 960 507 q 833 129 960 280 q 476 -32 698 -32 q 123 129 255 -32 q 0 507 0 280 q 123 883 0 732 q 476 1045 255 1045 q 832 883 696 1045 q 960 507 960 732 m 817 500 q 733 789 817 669 q 476 924 639 924 q 223 792 317 924 q 142 507 142 675 q 222 222 142 339 q 476 89 315 89 q 730 218 636 89 q 817 500 817 334 m 716 449 l 243 449 l 243 571 l 716 571 l 716 449 "},"®":{x_min:-3,x_max:1008,ha:1106,o:"m 503 532 q 614 562 566 532 q 672 658 672 598 q 614 747 672 716 q 503 772 569 772 l 338 772 l 338 532 l 503 532 m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 788 146 l 678 146 q 653 316 655 183 q 527 449 652 449 l 338 449 l 338 146 l 241 146 l 241 854 l 518 854 q 688 808 621 854 q 766 658 766 755 q 739 563 766 607 q 668 497 713 519 q 751 331 747 472 q 788 164 756 190 l 788 146 "},"~":{x_min:0,x_max:833,ha:931,o:"m 833 958 q 778 753 833 831 q 594 665 716 665 q 402 761 502 665 q 240 857 302 857 q 131 795 166 857 q 104 665 104 745 l 0 665 q 54 867 0 789 q 237 958 116 958 q 429 861 331 958 q 594 765 527 765 q 704 827 670 765 q 729 958 729 874 l 833 958 "},"Ε":{x_min:0,x_max:736.21875,ha:778,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},"³":{x_min:0,x_max:450,ha:547,o:"m 450 552 q 379 413 450 464 q 220 366 313 366 q 69 414 130 366 q 0 567 0 470 l 85 567 q 126 470 85 504 q 225 437 168 437 q 320 467 280 437 q 360 552 360 498 q 318 632 360 608 q 213 657 276 657 q 195 657 203 657 q 176 657 181 657 l 176 722 q 279 733 249 722 q 334 815 334 752 q 300 881 334 856 q 220 907 267 907 q 133 875 169 907 q 97 781 97 844 l 15 781 q 78 926 15 875 q 220 972 135 972 q 364 930 303 972 q 426 817 426 888 q 344 697 426 733 q 421 642 392 681 q 450 552 450 603 "},"[":{x_min:0,x_max:273.609375,ha:371,o:"m 273 -281 l 0 -281 l 0 1013 l 273 1013 l 273 920 l 124 920 l 124 -187 l 273 -187 l 273 -281 "},L:{x_min:0,x_max:645.828125,ha:696,o:"m 645 0 l 0 0 l 0 1013 l 140 1013 l 140 126 l 645 126 l 645 0 "},"σ":{x_min:0,x_max:803.390625,ha:894,o:"m 803 628 l 633 628 q 713 368 713 512 q 618 93 713 204 q 357 -25 518 -25 q 94 91 194 -25 q 0 368 0 201 q 94 644 0 533 q 356 761 194 761 q 481 750 398 761 q 608 739 564 739 l 803 739 l 803 628 m 360 85 q 529 180 467 85 q 584 374 584 262 q 527 566 584 490 q 352 651 463 651 q 187 559 247 651 q 135 368 135 478 q 189 175 135 254 q 360 85 251 85 "},"ζ":{x_min:0,x_max:573,ha:642,o:"m 573 -40 q 553 -162 573 -97 q 510 -278 543 -193 l 400 -278 q 441 -187 428 -219 q 462 -90 462 -132 q 378 -14 462 -14 q 108 45 197 -14 q 0 290 0 117 q 108 631 0 462 q 353 901 194 767 l 55 901 l 55 1012 l 561 1012 l 561 924 q 261 669 382 831 q 128 301 128 489 q 243 117 128 149 q 458 98 350 108 q 573 -40 573 80 "},"θ":{x_min:0,x_max:674,ha:778,o:"m 674 496 q 601 160 674 304 q 336 -26 508 -26 q 73 153 165 -26 q 0 485 0 296 q 72 840 0 683 q 343 1045 166 1045 q 605 844 516 1045 q 674 496 674 692 m 546 579 q 498 798 546 691 q 336 935 437 935 q 178 798 237 935 q 126 579 137 701 l 546 579 m 546 475 l 126 475 q 170 233 126 348 q 338 80 230 80 q 504 233 447 80 q 546 475 546 346 "},"Ο":{x_min:0,x_max:958,ha:1054,o:"m 485 1042 q 834 883 703 1042 q 958 511 958 735 q 834 136 958 287 q 481 -26 701 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 729 q 485 1042 263 1042 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 670 q 480 913 640 913 q 226 785 321 913 q 142 504 142 671 q 226 224 142 339 q 480 98 319 98 "},"Γ":{x_min:0,x_max:705.28125,ha:749,o:"m 705 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 705 1012 l 705 886 "}," ":{x_min:0,x_max:0,ha:375},"%":{x_min:-3,x_max:1089,ha:1186,o:"m 845 0 q 663 76 731 0 q 602 244 602 145 q 661 412 602 344 q 845 489 728 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 845 0 962 0 m 844 103 q 945 143 909 103 q 981 243 981 184 q 947 340 981 301 q 844 385 909 385 q 744 342 781 385 q 708 243 708 300 q 741 147 708 186 q 844 103 780 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 "},P:{x_min:0,x_max:726,ha:806,o:"m 424 1013 q 640 931 555 1013 q 726 719 726 850 q 637 506 726 587 q 413 426 548 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 379 889 l 140 889 l 140 548 l 372 548 q 522 589 459 548 q 593 720 593 637 q 528 845 593 801 q 379 889 463 889 "},"Έ":{x_min:0,x_max:1078.21875,ha:1118,o:"m 1078 0 l 342 0 l 342 1013 l 1067 1013 l 1067 889 l 481 889 l 481 585 l 1019 585 l 1019 467 l 481 467 l 481 125 l 1078 125 l 1078 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"Ώ":{x_min:.125,x_max:1136.546875,ha:1235,o:"m 1136 0 l 722 0 l 722 123 q 911 309 842 194 q 981 558 981 423 q 893 813 981 710 q 651 923 800 923 q 411 821 501 923 q 321 568 321 720 q 390 316 321 433 q 579 123 459 200 l 579 0 l 166 0 l 166 124 l 384 124 q 235 327 289 210 q 182 572 182 444 q 311 912 182 782 q 651 1042 441 1042 q 989 910 858 1042 q 1120 569 1120 778 q 1066 326 1120 443 q 917 124 1013 210 l 1136 124 l 1136 0 m 277 1040 l 83 800 l 0 800 l 140 1041 l 277 1040 "},_:{x_min:0,x_max:705.5625,ha:803,o:"m 705 -334 l 0 -334 l 0 -234 l 705 -234 l 705 -334 "},"Ϊ":{x_min:-110,x_max:246,ha:275,o:"m 246 1046 l 118 1046 l 118 1189 l 246 1189 l 246 1046 m 18 1046 l -110 1046 l -110 1189 l 18 1189 l 18 1046 m 136 0 l 0 0 l 0 1012 l 136 1012 l 136 0 "},"+":{x_min:23,x_max:768,ha:792,o:"m 768 372 l 444 372 l 444 0 l 347 0 l 347 372 l 23 372 l 23 468 l 347 468 l 347 840 l 444 840 l 444 468 l 768 468 l 768 372 "},"½":{x_min:0,x_max:1050,ha:1149,o:"m 1050 0 l 625 0 q 712 178 625 108 q 878 277 722 187 q 967 385 967 328 q 932 456 967 429 q 850 484 897 484 q 759 450 798 484 q 721 352 721 416 l 640 352 q 706 502 640 448 q 851 551 766 551 q 987 509 931 551 q 1050 385 1050 462 q 976 251 1050 301 q 829 179 902 215 q 717 68 740 133 l 1050 68 l 1050 0 m 834 985 l 215 -28 l 130 -28 l 750 984 l 834 985 m 224 422 l 142 422 l 142 811 l 0 811 l 0 867 q 104 889 62 867 q 164 973 157 916 l 224 973 l 224 422 "},"Ρ":{x_min:0,x_max:720,ha:783,o:"m 424 1013 q 637 933 554 1013 q 720 723 720 853 q 633 508 720 591 q 413 426 546 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 378 889 l 140 889 l 140 548 l 371 548 q 521 589 458 548 q 592 720 592 637 q 527 845 592 801 q 378 889 463 889 "},"'":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},"ª":{x_min:0,x_max:350,ha:397,o:"m 350 625 q 307 616 328 616 q 266 631 281 616 q 247 673 251 645 q 190 628 225 644 q 116 613 156 613 q 32 641 64 613 q 0 722 0 669 q 72 826 0 800 q 247 866 159 846 l 247 887 q 220 934 247 916 q 162 953 194 953 q 104 934 129 953 q 76 882 80 915 l 16 882 q 60 976 16 941 q 166 1011 104 1011 q 266 979 224 1011 q 308 891 308 948 l 308 706 q 311 679 308 688 q 331 670 315 670 l 350 672 l 350 625 m 247 757 l 247 811 q 136 790 175 798 q 64 726 64 773 q 83 682 64 697 q 132 667 103 667 q 207 690 174 667 q 247 757 247 718 "},"΅":{x_min:0,x_max:450,ha:553,o:"m 450 800 l 340 800 l 340 925 l 450 925 l 450 800 m 406 1040 l 212 800 l 129 800 l 269 1040 l 406 1040 m 110 800 l 0 800 l 0 925 l 110 925 l 110 800 "},T:{x_min:0,x_max:777,ha:835,o:"m 777 894 l 458 894 l 458 0 l 319 0 l 319 894 l 0 894 l 0 1013 l 777 1013 l 777 894 "},"Φ":{x_min:0,x_max:915,ha:997,o:"m 527 0 l 389 0 l 389 122 q 110 231 220 122 q 0 509 0 340 q 110 785 0 677 q 389 893 220 893 l 389 1013 l 527 1013 l 527 893 q 804 786 693 893 q 915 509 915 679 q 805 231 915 341 q 527 122 696 122 l 527 0 m 527 226 q 712 310 641 226 q 779 507 779 389 q 712 705 779 627 q 527 787 641 787 l 527 226 m 389 226 l 389 787 q 205 698 275 775 q 136 505 136 620 q 206 308 136 391 q 389 226 276 226 "},"⁋":{x_min:0,x_max:0,ha:694},j:{x_min:-77.78125,x_max:167,ha:349,o:"m 167 871 l 42 871 l 42 1013 l 167 1013 l 167 871 m 167 -80 q 121 -231 167 -184 q -26 -278 76 -278 l -77 -278 l -77 -164 l -41 -164 q 26 -143 11 -164 q 42 -65 42 -122 l 42 737 l 167 737 l 167 -80 "},"Σ":{x_min:0,x_max:756.953125,ha:819,o:"m 756 0 l 0 0 l 0 107 l 395 523 l 22 904 l 22 1013 l 745 1013 l 745 889 l 209 889 l 566 523 l 187 125 l 756 125 l 756 0 "},1:{x_min:215.671875,x_max:574,ha:792,o:"m 574 0 l 442 0 l 442 697 l 215 697 l 215 796 q 386 833 330 796 q 475 986 447 875 l 574 986 l 574 0 "},"›":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},"<":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"£":{x_min:0,x_max:704.484375,ha:801,o:"m 704 41 q 623 -10 664 5 q 543 -26 583 -26 q 359 15 501 -26 q 243 36 288 36 q 158 23 197 36 q 73 -21 119 10 l 6 76 q 125 195 90 150 q 175 331 175 262 q 147 443 175 383 l 0 443 l 0 512 l 108 512 q 43 734 43 623 q 120 929 43 854 q 358 1010 204 1010 q 579 936 487 1010 q 678 729 678 857 l 678 684 l 552 684 q 504 838 552 780 q 362 896 457 896 q 216 852 263 896 q 176 747 176 815 q 199 627 176 697 q 248 512 217 574 l 468 512 l 468 443 l 279 443 q 297 356 297 398 q 230 194 297 279 q 153 107 211 170 q 227 133 190 125 q 293 142 264 142 q 410 119 339 142 q 516 96 482 96 q 579 105 550 96 q 648 142 608 115 l 704 41 "},t:{x_min:0,x_max:367,ha:458,o:"m 367 0 q 312 -5 339 -2 q 262 -8 284 -8 q 145 28 183 -8 q 108 143 108 64 l 108 638 l 0 638 l 0 738 l 108 738 l 108 944 l 232 944 l 232 738 l 367 738 l 367 638 l 232 638 l 232 185 q 248 121 232 140 q 307 102 264 102 q 345 104 330 102 q 367 107 360 107 l 367 0 "},"¬":{x_min:0,x_max:706,ha:803,o:"m 706 411 l 706 158 l 630 158 l 630 335 l 0 335 l 0 411 l 706 411 "},"λ":{x_min:0,x_max:750,ha:803,o:"m 750 -7 q 679 -15 716 -15 q 538 59 591 -15 q 466 214 512 97 l 336 551 l 126 0 l 0 0 l 270 705 q 223 837 247 770 q 116 899 190 899 q 90 898 100 899 l 90 1004 q 152 1011 125 1011 q 298 938 244 1011 q 373 783 326 901 l 605 192 q 649 115 629 136 q 716 95 669 95 l 736 95 q 750 97 745 97 l 750 -7 "},W:{x_min:0,x_max:1263.890625,ha:1351,o:"m 1263 1013 l 995 0 l 859 0 l 627 837 l 405 0 l 265 0 l 0 1013 l 136 1013 l 342 202 l 556 1013 l 701 1013 l 921 207 l 1133 1012 l 1263 1013 "},">":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},v:{x_min:0,x_max:675.15625,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 737 l 340 147 l 541 737 l 675 738 "},"τ":{x_min:.28125,x_max:644.5,ha:703,o:"m 644 628 l 382 628 l 382 179 q 388 120 382 137 q 436 91 401 91 q 474 94 447 91 q 504 97 501 97 l 504 0 q 454 -9 482 -5 q 401 -14 426 -14 q 278 67 308 -14 q 260 233 260 118 l 260 628 l 0 628 l 0 739 l 644 739 l 644 628 "},"ξ":{x_min:0,x_max:624.9375,ha:699,o:"m 624 -37 q 608 -153 624 -96 q 563 -278 593 -211 l 454 -278 q 491 -183 486 -200 q 511 -83 511 -126 q 484 -23 511 -44 q 370 1 452 1 q 323 0 354 1 q 283 -1 293 -1 q 84 76 169 -1 q 0 266 0 154 q 56 431 0 358 q 197 538 108 498 q 94 613 134 562 q 54 730 54 665 q 77 823 54 780 q 143 901 101 867 l 27 901 l 27 1012 l 576 1012 l 576 901 l 380 901 q 244 863 303 901 q 178 745 178 820 q 312 600 178 636 q 532 582 380 582 l 532 479 q 276 455 361 479 q 118 281 118 410 q 165 173 118 217 q 274 120 208 133 q 494 101 384 110 q 624 -37 624 76 "},"&":{x_min:-3,x_max:894.25,ha:992,o:"m 894 0 l 725 0 l 624 123 q 471 0 553 40 q 306 -41 390 -41 q 168 -7 231 -41 q 62 92 105 26 q 14 187 31 139 q -3 276 -3 235 q 55 433 -3 358 q 248 581 114 508 q 170 689 196 640 q 137 817 137 751 q 214 985 137 922 q 384 1041 284 1041 q 548 988 483 1041 q 622 824 622 928 q 563 666 622 739 q 431 556 516 608 l 621 326 q 649 407 639 361 q 663 493 653 426 l 781 493 q 703 229 781 352 l 894 0 m 504 818 q 468 908 504 877 q 384 940 433 940 q 293 907 331 940 q 255 818 255 875 q 289 714 255 767 q 363 628 313 678 q 477 729 446 682 q 504 818 504 771 m 556 209 l 314 499 q 179 395 223 449 q 135 283 135 341 q 146 222 135 253 q 183 158 158 192 q 333 80 241 80 q 556 209 448 80 "},"Λ":{x_min:0,x_max:862.5,ha:942,o:"m 862 0 l 719 0 l 426 847 l 143 0 l 0 0 l 356 1013 l 501 1013 l 862 0 "},I:{x_min:41,x_max:180,ha:293,o:"m 180 0 l 41 0 l 41 1013 l 180 1013 l 180 0 "},G:{x_min:0,x_max:921,ha:1011,o:"m 921 0 l 832 0 l 801 136 q 655 15 741 58 q 470 -28 568 -28 q 126 133 259 -28 q 0 499 0 284 q 125 881 0 731 q 486 1043 259 1043 q 763 957 647 1043 q 905 709 890 864 l 772 709 q 668 866 747 807 q 486 926 589 926 q 228 795 322 926 q 142 507 142 677 q 228 224 142 342 q 483 94 323 94 q 712 195 625 94 q 796 435 796 291 l 477 435 l 477 549 l 921 549 l 921 0 "},"ΰ":{x_min:0,x_max:617,ha:725,o:"m 524 800 l 414 800 l 414 925 l 524 925 l 524 800 m 183 800 l 73 800 l 73 925 l 183 925 l 183 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 489 1040 l 300 819 l 216 819 l 351 1040 l 489 1040 "},"`":{x_min:0,x_max:138.890625,ha:236,o:"m 138 699 l 0 699 l 0 861 q 36 974 0 929 q 138 1041 72 1020 l 138 977 q 82 931 95 969 q 69 839 69 893 l 138 839 l 138 699 "},"·":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},"Υ":{x_min:.328125,x_max:819.515625,ha:889,o:"m 819 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 "},r:{x_min:0,x_max:355.5625,ha:432,o:"m 355 621 l 343 621 q 179 569 236 621 q 122 411 122 518 l 122 0 l 0 0 l 0 737 l 117 737 l 117 604 q 204 719 146 686 q 355 753 262 753 l 355 621 "},x:{x_min:0,x_max:675,ha:764,o:"m 675 0 l 525 0 l 331 286 l 144 0 l 0 0 l 256 379 l 12 738 l 157 737 l 336 473 l 516 738 l 661 738 l 412 380 l 675 0 "},"μ":{x_min:0,x_max:696.609375,ha:747,o:"m 696 -4 q 628 -14 657 -14 q 498 97 513 -14 q 422 8 470 41 q 313 -24 374 -24 q 207 3 258 -24 q 120 80 157 31 l 120 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 172 124 246 q 308 82 216 82 q 451 177 402 82 q 492 358 492 254 l 492 738 l 616 738 l 616 214 q 623 136 616 160 q 673 92 636 92 q 696 95 684 92 l 696 -4 "},h:{x_min:0,x_max:615,ha:724,o:"m 615 472 l 615 0 l 490 0 l 490 454 q 456 590 490 535 q 338 654 416 654 q 186 588 251 654 q 122 436 122 522 l 122 0 l 0 0 l 0 1013 l 122 1013 l 122 633 q 218 727 149 694 q 362 760 287 760 q 552 676 484 760 q 615 472 615 600 "},".":{x_min:0,x_max:142,ha:239,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},"φ":{x_min:-2,x_max:878,ha:974,o:"m 496 -279 l 378 -279 l 378 -17 q 101 88 204 -17 q -2 367 -2 194 q 68 626 -2 510 q 283 758 151 758 l 283 646 q 167 537 209 626 q 133 373 133 462 q 192 177 133 254 q 378 93 259 93 l 378 758 q 445 764 426 763 q 476 765 464 765 q 765 659 653 765 q 878 377 878 553 q 771 96 878 209 q 496 -17 665 -17 l 496 -279 m 496 93 l 514 93 q 687 183 623 93 q 746 380 746 265 q 691 569 746 491 q 522 658 629 658 l 496 656 l 496 93 "},";":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 -12 q 105 -132 142 -82 q 0 -206 68 -182 l 0 -138 q 58 -82 43 -123 q 68 0 68 -56 l 0 0 l 0 151 l 142 151 l 142 -12 "},f:{x_min:0,x_max:378,ha:472,o:"m 378 638 l 246 638 l 246 0 l 121 0 l 121 638 l 0 638 l 0 738 l 121 738 q 137 935 121 887 q 290 1028 171 1028 q 320 1027 305 1028 q 378 1021 334 1026 l 378 908 q 323 918 346 918 q 257 870 273 918 q 246 780 246 840 l 246 738 l 378 738 l 378 638 "},"“":{x_min:1,x_max:348.21875,ha:454,o:"m 140 670 l 1 670 l 1 830 q 37 943 1 897 q 140 1011 74 990 l 140 947 q 82 900 97 940 q 68 810 68 861 l 140 810 l 140 670 m 348 670 l 209 670 l 209 830 q 245 943 209 897 q 348 1011 282 990 l 348 947 q 290 900 305 940 q 276 810 276 861 l 348 810 l 348 670 "},A:{x_min:.03125,x_max:906.953125,ha:1008,o:"m 906 0 l 756 0 l 648 303 l 251 303 l 142 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 610 421 l 452 867 l 293 421 l 610 421 "},6:{x_min:53,x_max:739,ha:792,o:"m 739 312 q 633 62 739 162 q 400 -31 534 -31 q 162 78 257 -31 q 53 439 53 206 q 178 859 53 712 q 441 986 284 986 q 643 912 559 986 q 732 713 732 833 l 601 713 q 544 830 594 786 q 426 875 494 875 q 268 793 331 875 q 193 517 193 697 q 301 597 240 570 q 427 624 362 624 q 643 540 552 624 q 739 312 739 451 m 603 298 q 540 461 603 400 q 404 516 484 516 q 268 461 323 516 q 207 300 207 401 q 269 137 207 198 q 405 83 325 83 q 541 137 486 83 q 603 298 603 197 "},"‘":{x_min:1,x_max:139.890625,ha:236,o:"m 139 670 l 1 670 l 1 830 q 37 943 1 897 q 139 1011 74 990 l 139 947 q 82 900 97 940 q 68 810 68 861 l 139 810 l 139 670 "},"ϊ":{x_min:-70,x_max:283,ha:361,o:"m 283 800 l 173 800 l 173 925 l 283 925 l 283 800 m 40 800 l -70 800 l -70 925 l 40 925 l 40 800 m 283 3 q 232 -10 257 -5 q 181 -15 206 -15 q 84 26 118 -15 q 41 200 41 79 l 41 737 l 166 737 l 167 215 q 171 141 167 157 q 225 101 182 101 q 247 103 238 101 q 283 112 256 104 l 283 3 "},"π":{x_min:-.21875,x_max:773.21875,ha:857,o:"m 773 -7 l 707 -11 q 575 40 607 -11 q 552 174 552 77 l 552 226 l 552 626 l 222 626 l 222 0 l 97 0 l 97 626 l 0 626 l 0 737 l 773 737 l 773 626 l 676 626 l 676 171 q 695 103 676 117 q 773 90 714 90 l 773 -7 "},"ά":{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 727 407 760 q 563 637 524 695 l 563 738 l 685 738 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 95 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 m 604 1040 l 415 819 l 332 819 l 466 1040 l 604 1040 "},O:{x_min:0,x_max:958,ha:1057,o:"m 485 1041 q 834 882 702 1041 q 958 512 958 734 q 834 136 958 287 q 481 -26 702 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 728 q 485 1041 263 1041 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 669 q 480 912 640 912 q 226 784 321 912 q 142 504 142 670 q 226 224 142 339 q 480 98 319 98 "},n:{x_min:0,x_max:615,ha:724,o:"m 615 463 l 615 0 l 490 0 l 490 454 q 453 592 490 537 q 331 656 410 656 q 178 585 240 656 q 117 421 117 514 l 117 0 l 0 0 l 0 738 l 117 738 l 117 630 q 218 728 150 693 q 359 764 286 764 q 552 675 484 764 q 615 463 615 593 "},3:{x_min:54,x_max:737,ha:792,o:"m 737 284 q 635 55 737 141 q 399 -25 541 -25 q 156 52 248 -25 q 54 308 54 140 l 185 308 q 245 147 185 202 q 395 96 302 96 q 539 140 484 96 q 602 280 602 190 q 510 429 602 390 q 324 454 451 454 l 324 565 q 487 584 441 565 q 565 719 565 617 q 515 835 565 791 q 395 879 466 879 q 255 824 307 879 q 203 661 203 769 l 78 661 q 166 909 78 822 q 387 992 250 992 q 603 921 513 992 q 701 723 701 844 q 669 607 701 656 q 578 524 637 558 q 696 434 655 499 q 737 284 737 369 "},9:{x_min:53,x_max:739,ha:792,o:"m 739 524 q 619 94 739 241 q 362 -32 516 -32 q 150 47 242 -32 q 59 244 59 126 l 191 244 q 246 129 191 176 q 373 82 301 82 q 526 161 466 82 q 597 440 597 255 q 363 334 501 334 q 130 432 216 334 q 53 650 53 521 q 134 880 53 786 q 383 986 226 986 q 659 841 566 986 q 739 524 739 719 m 388 449 q 535 514 480 449 q 585 658 585 573 q 535 805 585 744 q 388 873 480 873 q 242 809 294 873 q 191 658 191 745 q 239 514 191 572 q 388 449 292 449 "},l:{x_min:41,x_max:166,ha:279,o:"m 166 0 l 41 0 l 41 1013 l 166 1013 l 166 0 "},"¤":{x_min:40.09375,x_max:728.796875,ha:825,o:"m 728 304 l 649 224 l 512 363 q 383 331 458 331 q 256 363 310 331 l 119 224 l 40 304 l 177 441 q 150 553 150 493 q 184 673 150 621 l 40 818 l 119 898 l 267 749 q 321 766 291 759 q 384 773 351 773 q 447 766 417 773 q 501 749 477 759 l 649 898 l 728 818 l 585 675 q 612 618 604 648 q 621 553 621 587 q 591 441 621 491 l 728 304 m 384 682 q 280 643 318 682 q 243 551 243 604 q 279 461 243 499 q 383 423 316 423 q 487 461 449 423 q 525 553 525 500 q 490 641 525 605 q 384 682 451 682 "},"κ":{x_min:0,x_max:632.328125,ha:679,o:"m 632 0 l 482 0 l 225 384 l 124 288 l 124 0 l 0 0 l 0 738 l 124 738 l 124 446 l 433 738 l 596 738 l 312 466 l 632 0 "},4:{x_min:48,x_max:742.453125,ha:792,o:"m 742 243 l 602 243 l 602 0 l 476 0 l 476 243 l 48 243 l 48 368 l 476 958 l 602 958 l 602 354 l 742 354 l 742 243 m 476 354 l 476 792 l 162 354 l 476 354 "},p:{x_min:0,x_max:685,ha:786,o:"m 685 364 q 598 96 685 205 q 350 -23 504 -23 q 121 89 205 -23 l 121 -278 l 0 -278 l 0 738 l 121 738 l 121 633 q 220 726 159 691 q 351 761 280 761 q 598 636 504 761 q 685 364 685 522 m 557 371 q 501 560 557 481 q 330 651 437 651 q 162 559 223 651 q 108 366 108 479 q 162 177 108 254 q 333 87 224 87 q 502 178 441 87 q 557 371 557 258 "},"‡":{x_min:0,x_max:777,ha:835,o:"m 458 238 l 458 0 l 319 0 l 319 238 l 0 238 l 0 360 l 319 360 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 l 777 804 l 777 683 l 458 683 l 458 360 l 777 360 l 777 238 l 458 238 "},"ψ":{x_min:0,x_max:808,ha:907,o:"m 465 -278 l 341 -278 l 341 -15 q 87 102 180 -15 q 0 378 0 210 l 0 739 l 133 739 l 133 379 q 182 195 133 275 q 341 98 242 98 l 341 922 l 465 922 l 465 98 q 623 195 563 98 q 675 382 675 278 l 675 742 l 808 742 l 808 381 q 720 104 808 213 q 466 -13 627 -13 l 465 -278 "},"η":{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 720 124 755 q 200 630 193 686 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 "}},cssFontWeight:"normal",ascender:1189,underlinePosition:-100,cssFontStyle:"normal",boundingBox:{yMin:-334,xMin:-111,yMax:1189,xMax:1672},resolution:1e3,original_font_information:{postscript_name:"Helvetiker-Regular",version_string:"Version 1.00 2004 initial release",vendor_url:"http://www.magenta.gr/",full_font_name:"Helvetiker",font_family_name:"Helvetiker",copyright:"Copyright (c) Μagenta ltd, 2004",description:"",trademark:"",designer:"",designer_url:"",unique_font_identifier:"Μagenta ltd:Helvetiker:22-10-104",license_url:"http://www.ellak.gr/fonts/MgOpen/license.html",license_description:'Copyright (c) 2004 by MAGENTA Ltd. All Rights Reserved.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \r\n\r\nThe above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\r\n\r\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "MgOpen", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.\r\n\r\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "MgOpen" name.\r\n\r\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \r\n\r\nTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.',manufacturer_name:"Μagenta ltd",font_sub_family_name:"Regular"},descender:-334,familyName:"Helvetiker",lineHeight:1522,underlineThickness:50}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(44),l=n(439),c=n.n(l),u=n(174),d=n.n(u),p=n(440),h=n.n(p),m=n(441),f=n.n(m),y=n(442),g=n.n(y),w=n(36),x=n(64),v=n(84),M=n(111),b=n(63),E=n(43),_=n.n(E),O=n(5),T=n(4),I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const q={MODE_IDLE:O.MODE_IDLE,MODE_2D_ZOOM_IN:O.MODE_2D_ZOOM_IN,MODE_2D_ZOOM_OUT:O.MODE_2D_ZOOM_OUT,MODE_2D_PAN:O.MODE_2D_PAN,MODE_3D_VIEW:O.MODE_3D_VIEW,MODE_3D_FIRST_PERSON:O.MODE_3D_FIRST_PERSON,MODE_WAITING_DRAWING_LINE:O.MODE_WAITING_DRAWING_LINE,MODE_DRAWING_LINE:O.MODE_DRAWING_LINE,MODE_DRAWING_HOLE:O.MODE_DRAWING_HOLE,MODE_DRAWING_ITEM:O.MODE_DRAWING_ITEM,MODE_DRAGGING_LINE:O.MODE_DRAGGING_LINE,MODE_DRAGGING_VERTEX:O.MODE_DRAGGING_VERTEX,MODE_DRAGGING_ITEM:O.MODE_DRAGGING_ITEM,MODE_DRAGGING_HOLE:O.MODE_DRAGGING_HOLE,MODE_ROTATING_ITEM:O.MODE_ROTATING_ITEM,MODE_UPLOADING_IMAGE:O.MODE_UPLOADING_IMAGE,MODE_FITTING_IMAGE:O.MODE_FITTING_IMAGE},P={cursor:"pointer",marginLeft:"5px",border:"0px",background:"none",color:T.a.white,fontSize:"14px",outline:"0px"},D={width:"100%",cursor:"pointer",overflowY:"auto",maxHeight:"20em",display:"block",padding:"0 1em",marginLeft:"1px"},C={width:"2em"},S={color:T.d.main},G=I({},P,S),k={fontSize:"10px",marginLeft:"5px"},L={fontSize:"1.25em"},A=I({},L,{color:"#a5a1a1"}),R={width:"6em"},N={margin:"0.5em 0",fontSize:"1.3em",cursor:"pointer",textAlign:"center"},j=I({},N,S),B={width:"100%",borderSpacing:"2px 0",padding:"5px 15px"},z={float:"right",marginTop:"0.5em",borderSpacing:"0"};class V extends o.Component{constructor(e){super(e),this.state={headHovered:!1,layerAddUIVisible:!1,editingLayer:null}}shouldComponentUpdate(e,t){return this.props.state.scene.layers.size!==e.state.scene.layers.size||(!!_()(this.props.state.sceneHistory,e.state.sceneHistory).size||(t.layerAddUIVisible!=this.state.layerAddUIVisible||!!_()(this.state.editingLayer,t.editingLayer).size))}addLayer(e){e.stopPropagation(),this.state.layerAddUIVisible?this.setState({layerAddUIVisible:!this.state.layerAddUIVisible}):(this.context.sceneActions.addLayer("",0),this.setState({layerAddUIVisible:!1}))}resetLayerMod(e){e.stopPropagation(),this.setState({layerAddUIVisible:!1,editingLayer:null})}updateLayer(e,t){e.stopPropagation();let{id:n,name:o,opacity:r,altitude:a,order:i}=t.toJS();a=parseInt(a),this.context.sceneActions.setLayerProperties(n,{name:o,opacity:r,altitude:a,order:i}),this.setState({layerAddUIVisible:!1,editingLayer:null})}delLayer(e,t){e.stopPropagation(),this.context.sceneActions.removeLayer(t),this.setState({layerAddUIVisible:!1,editingLayer:null})}render(){if(!q[this.props.state.mode])return null;let e=this.props.state.scene,t=1===e.layers.size;return r.a.createElement(s.a,{name:this.context.translator.t("Layers")},r.a.createElement("table",{style:D},r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement("th",{colSpan:"3"}),r.a.createElement("th",null,this.context.translator.t("Altitude")),r.a.createElement("th",null,this.context.translator.t("Name")))),r.a.createElement("tbody",null,e.layers.entrySeq().map(([n,o])=>{let a=e=>this.setState({editingLayer:o,layerAddUIVisible:!0}),i=n===e.selectedLayer;return r.a.createElement("tr",{key:n,onClick:e=>this.context.sceneActions.selectLayer(n),onDoubleClick:a,style:i?S:null},r.a.createElement("td",{style:C},i?null:r.a.createElement(c.a,{onClick:e=>{e.stopPropagation(),this.context.sceneActions.setLayerProperties(n,{visible:!o.visible})},style:o.visible?L:A})),r.a.createElement("td",{style:C},r.a.createElement(f.a,{onClick:a,style:i?G:P,title:this.context.translator.t("Configure layer")})),r.a.createElement("td",{style:C},t?null:r.a.createElement(g.a,{onClick:e=>{this.delLayer(e,n)},style:i?G:P,title:this.context.translator.t("Delete layer")})),r.a.createElement("td",{style:{width:"6em",textAlign:"center"}},"[ h : ",o.altitude," ]"),r.a.createElement("td",null,o.name))}))),r.a.createElement("p",{style:this.state.headHovered?j:N,onMouseOver:()=>this.setState({headHovered:!0}),onMouseOut:()=>this.setState({headHovered:!1}),onClick:e=>this.addLayer(e)},this.state.layerAddUIVisible?r.a.createElement(h.a,null):r.a.createElement(d.a,null),r.a.createElement("b",{style:k},this.context.translator.t("New layer"))),this.state.layerAddUIVisible&&this.state.editingLayer?r.a.createElement("table",{style:B},r.a.createElement("tbody",null,r.a.createElement("tr",{style:{marginTop:"1em"}},r.a.createElement("td",{style:R},this.context.translator.t("Name"),":"),r.a.createElement("td",null,r.a.createElement(w.a,{value:this.state.editingLayer.get("name"),onChange:e=>this.setState({editingLayer:this.state.editingLayer.merge({name:e.target.value})})}))),r.a.createElement("tr",null,r.a.createElement("td",{style:R},this.context.translator.t("opacity"),":"),r.a.createElement("td",null,r.a.createElement(M.a,{min:0,max:100,value:Math.round(100*this.state.editingLayer.get("opacity")),onChange:e=>this.setState({editingLayer:this.state.editingLayer.merge({opacity:e.target.value/100})})}))),r.a.createElement("tr",null,r.a.createElement("td",{style:R},this.context.translator.t("altitude"),":"),r.a.createElement("td",null,r.a.createElement(x.a,{value:this.state.editingLayer.get("altitude"),onChange:e=>this.setState({editingLayer:this.state.editingLayer.merge({altitude:e.target.value})})}))),r.a.createElement("tr",null,r.a.createElement("td",{style:R},this.context.translator.t("order"),":"),r.a.createElement("td",null,r.a.createElement(x.a,{value:this.state.editingLayer.get("order"),onChange:e=>this.setState({editingLayer:this.state.editingLayer.merge({order:e.target.value})})}))),r.a.createElement("tr",null,r.a.createElement("td",{colSpan:"2"},r.a.createElement("table",{style:z},r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(b.a,{size:"small",onClick:e=>{this.resetLayerMod(e)}},this.context.translator.t("Reset"))),r.a.createElement("td",null,r.a.createElement(v.a,{size:"small",onClick:e=>{this.updateLayer(e,this.state.editingLayer)}},this.context.translator.t("Save")))))))))):null)}}t.a=V,V.propTypes={state:i.a.object.isRequired},V.contextTypes={sceneActions:i.a.object.isRequired,translator:i.a.object.isRequired}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m30 16.7h-6.7v-6.7c0-1.8-1.5-3.3-3.3-3.3s-3.3 1.5-3.3 3.3l0.1 6.7h-6.8c-1.8 0-3.3 1.5-3.3 3.3s1.5 3.3 3.3 3.3l6.8-0.1-0.1 6.8c0 1.8 1.5 3.3 3.3 3.3s3.3-1.5 3.3-3.3v-6.8l6.7 0.1c1.8 0 3.3-1.5 3.3-3.3s-1.5-3.3-3.3-3.3z"})))},e.exports=t.default},function(e,t,n){"use strict";function o({state:{scene:e,mode:t}}){return a.a.createElement(l.a,{name:"Guides"},a.a.createElement("div",{key:1,style:{background:"#3a3a3e",padding:"5px 15px 5px 15px"}},e.guides.entrySeq().map(([e,t])=>a.a.createElement("div",{key:e},a.a.createElement("input",{type:"checkbox",checked:"true",readOnly:!0}),t.type,t.properties.entrySeq().map(([e,t])=>a.a.createElement("span",{key:e}," [",e,":",t,"] "))))),a.a.createElement("a",{href:"javascript:;",style:d,key:"add",onClick:()=>alert("Sorry, but this feature is not supported yet")},a.a.createElement(u.a,null),a.a.createElement("span",{style:p},"New Guide")))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(44),c=n(174),u=n.n(c);const d={display:"block",color:n(4).a.white,textDecoration:"none",fontSize:"15px",padding:"0px 15px",borderTop:"1px solid black"},p={fontSize:"10px",marginLeft:"5px"};o.propTypes={state:s.a.object.isRequired},o.contextTypes={}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(44),l=n(5),c=n(4),u=n(443),d=n.n(u),p=n(43),h=n.n(p),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const f={MODE_IDLE:l.MODE_IDLE,MODE_2D_ZOOM_IN:l.MODE_2D_ZOOM_IN,MODE_2D_ZOOM_OUT:l.MODE_2D_ZOOM_OUT,MODE_2D_PAN:l.MODE_2D_PAN,MODE_3D_VIEW:l.MODE_3D_VIEW,MODE_3D_FIRST_PERSON:l.MODE_3D_FIRST_PERSON,MODE_WAITING_DRAWING_LINE:l.MODE_WAITING_DRAWING_LINE,MODE_DRAWING_LINE:l.MODE_DRAWING_LINE,MODE_DRAWING_HOLE:l.MODE_DRAWING_HOLE,MODE_DRAWING_ITEM:l.MODE_DRAWING_ITEM,MODE_DRAGGING_LINE:l.MODE_DRAGGING_LINE,MODE_DRAGGING_VERTEX:l.MODE_DRAGGING_VERTEX,MODE_DRAGGING_ITEM:l.MODE_DRAGGING_ITEM,MODE_DRAGGING_HOLE:l.MODE_DRAGGING_HOLE,MODE_FITTING_IMAGE:l.MODE_FITTING_IMAGE,MODE_UPLOADING_IMAGE:l.MODE_UPLOADING_IMAGE,MODE_ROTATING_ITEM:l.MODE_ROTATING_ITEM},y={height:"auto",maxHeight:"15em",overflowY:"auto",padding:"0.25em 1.15em",cursor:"pointer",marginBottom:"1em",userSelect:"none"},g={width:"auto",height:"2.5em",margin:"0.25em 0.25em 0 0",padding:"0.5em",textAlign:"center",display:"inline-block",border:"1px solid #CCC",borderRadius:"0.2em"},w=m({},g,{color:c.d.main,borderColor:c.d.main}),x={paddingBottom:"0.5em",borderBottom:"1px solid #888"},v={width:"100%",marginTop:"0.8em"},M={fontSize:"1.5em"},b={fontSize:"1em",width:"100%",height:"1em",padding:"1em 0.5em"};class E extends o.Component{constructor(e,t){super(e);let n=e.layers.get(e.selectedLayer),o={lines:n.lines,holes:n.holes,items:n.items};this.state={elements:o,matchString:"",matchedElements:o}}shouldComponentUpdate(e,t){if(this.state.matchString!==t.matchString)return!0;let n=this.state.elements,o=t.elements;return!!h()(n.lines,o.lines).size||(!!h()(n.holes,o.holes).size||!!h()(n.items,o.items).size)}componentWillReceiveProps(e){let t=e.layers.get(e.selectedLayer);if(0===h()(this.props.layers,e.layers).size)return;let n={lines:t.lines,holes:t.holes,items:t.items};if(""!==this.state.matchString){let e=new RegExp(this.state.matchString,"i"),t=t=>e.test(t.get("name"));this.setState({matchedElements:{elements:n,lines:n.lines.filter(t),holes:n.holes.filter(t),items:n.items.filter(t)}})}else this.setState({elements:n,matchedElements:n})}matcharray(e){if(""===e)return void this.setState({matchString:"",matchedElements:this.state.elements});let t=new RegExp(e,"i"),n=e=>t.test(e.get("name"));this.setState({matchString:e,matchedElements:{lines:this.state.elements.lines.filter(n),holes:this.state.elements.holes.filter(n),items:this.state.elements.items.filter(n)}})}render(){if(!f[this.props.mode])return null;let e=this.props.layers.get(this.props.selectedLayer);return r.a.createElement(s.a,{name:this.context.translator.t("Elements on layer {0}",e.name)},r.a.createElement("div",{style:y,onWheel:e=>e.stopPropagation()},r.a.createElement("table",{style:v},r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(d.a,{style:M})),r.a.createElement("td",null,r.a.createElement("input",{type:"text",style:b,onChange:e=>{this.matcharray(e.target.value)}}))))),this.state.matchedElements.lines.count()?r.a.createElement("div",null,r.a.createElement("p",{style:x},this.context.translator.t("Lines")),this.state.matchedElements.lines.entrySeq().map(([t,n])=>r.a.createElement("div",{key:t,onClick:t=>this.context.linesActions.selectLine(e.id,n.id),style:n.selected?w:g},n.name))):null,this.state.matchedElements.holes.count()?r.a.createElement("div",null,r.a.createElement("p",{style:x},this.context.translator.t("Holes")),this.state.matchedElements.holes.entrySeq().map(([t,n])=>r.a.createElement("div",{key:t,onClick:t=>this.context.holesActions.selectHole(e.id,n.id),style:n.selected?w:g},n.name))):null,this.state.matchedElements.items.count()?r.a.createElement("div",null,r.a.createElement("p",{style:x},this.context.translator.t("Items")),this.state.matchedElements.items.entrySeq().map(([t,n])=>r.a.createElement("div",{key:t,onClick:t=>this.context.itemsActions.selectItem(e.id,n.id),style:n.selected?w:g},n.name))):null))}}t.a=E,E.propTypes={mode:i.a.string.isRequired,layers:i.a.object.isRequired},E.contextTypes={catalog:i.a.object.isRequired,translator:i.a.object.isRequired,itemsActions:i.a.object.isRequired,linesActions:i.a.object.isRequired,holesActions:i.a.object.isRequired,projectActions:i.a.object.isRequired}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(4);const l={width:"5.5em",color:"#CCC",textAlign:"center",cursor:"pointer",userSelect:"none",border:"1px solid transparent",margin:"-1px 5px 0 5px",borderRadius:"2px",display:"inline-block"},c=(Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e})({},l,{backgroundColor:"#1c82c6",border:"1px solid #FFF",color:s.a.white});class u extends o.Component{constructor(e){super(e),this.state={over:!1,active:this.props.toggleState||!1}}toggleOver(e){this.setState({over:!0})}toggleOut(e){this.setState({over:!1})}toggle(e){let t=!this.state.active;this.setState({active:t}),t?this.props.toggleOn():this.props.toggleOff()}shouldComponentUpdate(e,t){return this.state.over!=t.over||this.state.active!=t.active}componentWillReceiveProps(e){e.toggleState!=this.props.toggleState&&(this.state.active=e.toggleState)}render(){return r.a.createElement("div",{style:this.state.over||this.state.active?c:l,onMouseOver:e=>this.toggleOver(e),onMouseOut:e=>this.toggleOut(e),onClick:e=>this.toggle(e),title:this.props.title},this.props.text)}}t.a=u,u.propTypes={state:i.a.object.isRequired,toggleOn:i.a.func.isRequired,toggleOff:i.a.func.isRequired,text:i.a.string.isRequired,toggleState:i.a.bool,title:i.a.string},u.contextTypes={projectActions:i.a.object.isRequired,viewer2DActions:i.a.object.isRequired,viewer3DActions:i.a.object.isRequired,linesActions:i.a.object.isRequired,holesActions:i.a.object.isRequired,itemsActions:i.a.object.isRequired,translator:i.a.object.isRequired}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(4),l=n(179),c=n.n(l),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const d={width:"auto",display:"inline-block",margin:0,padding:"0px 5px 0px 0px"},p={color:"#CCC",textAlign:"center",cursor:"pointer",userSelect:"none"},h=u({},p,{color:s.a.white}),m={position:"fixed",width:"calc( 100% - 2px )",height:"40%",left:0,bottom:20,backgroundColor:s.c.alt,borderTop:s.c.border,zIndex:0,padding:0,margin:0,transition:"all 300ms ease"},f=u({},m,{visibility:"hidden",height:0}),y={position:"relative",width:"100%",height:"2em",top:0,left:0,borderBottom:s.c.border},g={position:"relative",height:"2em",lineHeight:"2em",marginLeft:"1em"},w={position:"relative",width:"100%",height:"calc( 100% - 2em )",padding:"1em",overflowY:"auto"},x={position:"absolute",width:"2em",height:"2em",right:0,top:0,padding:"0.5em",borderLeft:s.c.border,cursor:"pointer"},v=u({},x,{color:s.a.white,backgroundColor:s.d.alt}),M={width:"15px",height:"15px",marginTop:"-2px",marginRight:"2px"},b={position:"relative"};class E extends o.Component{constructor(e){super(e),this.state={over:!1,closeOver:!1,active:this.props.toggleState||!1}}toggleOver(e){this.setState({over:!0})}toggleOut(e){this.setState({over:!1})}toggle(e){let t=!this.state.active;this.setState({active:t})}shouldComponentUpdate(e,t){return this.state.over!=t.over||(this.state.closeOver!=t.closeOver||(this.state.active!=t.active||(this.props.content.length!=e.content.length||this.props.toggleState!=e.toggleState)))}componentWillReceiveProps(e){e.toggleState!=this.props.toggleState&&(this.state.active=e.toggleState)}render(){let e=this.state,t=this.props,n=t.icon||null,o=t.iconStyle||{},a=t.textStyle||{},i=t.titleStyle||{};return r.a.createElement("div",{style:d},r.a.createElement("div",{style:e.over||e.active?h:p,onClick:e=>this.toggle(e),title:t.title},r.a.createElement(n,{style:u({},o,M)}),r.a.createElement("span",{style:u({},b,a)},t.text)),r.a.createElement("div",{style:e.active?m:f},r.a.createElement("div",{style:y},r.a.createElement("b",{style:u({},g,i)},t.title),r.a.createElement(c.a,{style:e.closeOver?v:x,onMouseOver:e=>this.setState({closeOver:!0}),onMouseOut:e=>this.setState({closeOver:!1}),onClick:e=>this.toggle(e)})),r.a.createElement("div",{style:w},t.content)))}}t.a=E,E.propTypes={state:i.a.object.isRequired,text:i.a.string.isRequired,textStyle:i.a.object,icon:i.a.func,iconStyle:i.a.object,content:i.a.array.isRequired,toggleState:i.a.bool,title:i.a.string,titleStyle:i.a.object},E.contextTypes={projectActions:i.a.object.isRequired,viewer2DActions:i.a.object.isRequired,viewer3DActions:i.a.object.isRequired,linesActions:i.a.object.isRequired,holesActions:i.a.object.isRequired,itemsActions:i.a.object.isRequired,translator:i.a.object.isRequired}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m33.5 29.5q0 0.9-0.7 1.5l-3 3.1q-0.6 0.6-1.5 0.6t-1.5-0.6l-6.6-6.6-6.5 6.6q-0.7 0.6-1.6 0.6t-1.5-0.6l-3-3.1q-0.6-0.6-0.6-1.5t0.6-1.5l6.5-6.6-6.5-6.5q-0.6-0.7-0.6-1.6t0.6-1.5l3-3q0.6-0.6 1.5-0.6t1.6 0.6l6.5 6.6 6.6-6.6q0.6-0.6 1.5-0.6t1.5 0.6l3.1 3q0.6 0.7 0.6 1.5t-0.6 1.6l-6.6 6.5 6.6 6.6q0.6 0.6 0.6 1.5z"})))},e.exports=t.default},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/bookcase/wood.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/school-desk-double/wood.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/school-desk/wood.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/teaching-post/wood.jpg"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n.n(o),a=n(30),i=n.n(a),s=n(202),l=n.n(s),c=n(8),u=(n.n(c),n(45)),d=n(61),p=n(105),h=n(652),m=n(35);let f=Object(c.Map)({"react-floorplanner":new m.c.State}),y=Object(u.createStore)((e,t)=>(e=e||f,e=e.update("react-floorplanner",e=>Object(m.h)(e,t))),null,window.devToolsExtension?window.devToolsExtension():e=>e),g=[m.d.Keyboard(),m.d.Autosave("react-floorplanner_v0"),m.d.ConsoleDebugger()],w=[h.a];i.a.render(r.a.createElement(d.Provider,{store:y},r.a.createElement(l.a,null,({width:e,height:t})=>r.a.createElement(m.e,{catalog:p.a,width:e,height:t,plugins:g,toolbarButtons:w,stateExtractor:e=>e.get("react-floorplanner")}))),document.getElementById("app"))},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0),s=o(i),l=o(n(2)),c=o(n(30)),u=o(n(207)),d=o(n(96)),p=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={initiated:!1},e.onResize=e.onResize.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),a(t,null,[{key:"getDomNodeDimensions",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}}]),a(t,[{key:"componentDidMount",value:function(){this.parentNode=c.default.findDOMNode(this).parentNode,this.elementResizeDetector=(0,u.default)({strategy:"scroll",callOnAdd:!1}),this.elementResizeDetector.listenTo(this.parentNode,this.onResize),this.onResize()}},{key:"componentWillUnmount",value:function(){this.elementResizeDetector.uninstall(this.parentNode)}},{key:"onResize",value:function(){var e=t.getDomNodeDimensions(this.parentNode);this.setState(r({initiated:!0},e))}},{key:"render",value:function(){if((0,d.default)(this.props.children,"Expected children to be one of function or React.Element"),!this.state.initiated)return s.default.createElement("div",null);if("function"==typeof this.props.children){var e=this.props.children(this.state);return e&&i.Children.only(e)}return i.Children.only(s.default.cloneElement(this.props.children,this.state))}}]),t}();p.propTypes={children:l.default.oneOfType([l.default.element,l.default.func]).isRequired},t.default=p},,,,,function(e,t,n){"use strict";function o(e){return Array.isArray(e)||void 0!==e.length}function r(e){if(Array.isArray(e))return e;var t=[];return s(e,function(e){t.push(e)}),t}function a(e){return e&&1===e.nodeType}function i(e,t,n){var o=e[t];return void 0!==o&&null!==o||void 0===n?o:n}var s=n(94).forEach,l=n(208),c=n(209),u=n(210),d=n(211),p=n(212),h=n(95),m=n(213),f=n(215),y=n(216),g=n(217);e.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=u(),w=d({idGenerator:n,stateHandler:f});t=w}var x=e.reporter;if(!x){x=p(!1===x)}var v=i(e,"batchProcessor",m({reporter:x})),M={};M.callOnAdd=!!i(e,"callOnAdd",!0),M.debug=!!i(e,"debug",!1);var b,E=c(t),_=l({stateHandler:f}),O=i(e,"strategy","object"),T={reporter:x,batchProcessor:v,stateHandler:f,idHandler:t};if("scroll"===O&&(h.isLegacyOpera()?(x.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),O="object"):h.isIE(9)&&(x.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),O="object")),"scroll"===O)b=g(T);else{if("object"!==O)throw new Error("Invalid strategy name: "+O);b=y(T)}var I={};return{listenTo:function(e,n,l){function c(e){var t=E.get(e);s(t,function(t){t(e)})}function u(e,t,n){E.add(t,n),e&&n(t)}if(l||(l=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!l)throw new Error("Listener required.");if(a(n))n=[n];else{if(!o(n))return x.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=r(n)}var d=0,p=i(e,"callOnAdd",M.callOnAdd),h=i(e,"onReady",function(){}),m=i(e,"debug",M.debug);s(n,function(e){f.getState(e)||(f.initState(e),t.set(e));var o=t.get(e);if(m&&x.log("Attaching listener to element",o,e),!_.isDetectable(e))return m&&x.log(o,"Not detectable."),_.isBusy(e)?(m&&x.log(o,"System busy making it detectable"),u(p,e,l),I[o]=I[o]||[],void I[o].push(function(){++d===n.length&&h()})):(m&&x.log(o,"Making detectable..."),_.markBusy(e,!0),b.makeDetectable({debug:m},e,function(e){if(m&&x.log(o,"onElementDetectable"),f.getState(e)){_.markAsDetectable(e),_.markBusy(e,!1),b.addListener(e,c),u(p,e,l);var t=f.getState(e);if(t&&t.startSize){var r=e.offsetWidth,a=e.offsetHeight;t.startSize.width===r&&t.startSize.height===a||c(e)}I[o]&&s(I[o],function(e){e()})}else m&&x.log(o,"Element uninstalled before being detectable.");delete I[o],++d===n.length&&h()}));m&&x.log(o,"Already detecable, adding listener."),u(p,e,l),d++}),d===n.length&&h()},removeListener:E.removeListener,removeAllListeners:E.removeAllListeners,uninstall:function(e){if(!e)return x.error("At least one element is required.");if(a(e))e=[e];else{if(!o(e))return x.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=r(e)}s(e,function(e){E.removeAllListeners(e),b.uninstall(e),f.cleanState(e)})}}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},function(e,t,n){"use strict";e.exports=function(e){function t(t){var o=e.get(t);return void 0===o?[]:n[o]||[]}var n={};return{get:t,add:function(t,o){var r=e.get(t);n[r]||(n[r]=[]),n[r].push(o)},removeListener:function(e,n){for(var o=t(e),r=0,a=o.length;r<a;++r)if(o[r]===n){o.splice(r,1);break}},removeAllListeners:function(e){var n=t(e);n&&(n.length=0)}}}},function(e,t,n){"use strict";e.exports=function(){var e=1;return{generate:function(){return e++}}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var o=n(e);if(!o)throw new Error("setId required the element to have a resize detection state.");var r=t.generate();return o.id=r,r}}}},function(e,t,n){"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var o=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};o(n,"log"),o(n,"warn"),o(n,"error")}return n}},function(e,t,n){"use strict";function o(){var e={},t=0,n=0,o=0;return{add:function(r,a){a||(a=r,r=0),r>n?n=r:r<o&&(o=r),e[r]||(e[r]=[]),e[r].push(a),t++},process:function(){for(var t=o;t<=n;t++)for(var r=e[t],a=0;a<r.length;a++)(0,r[a])()},size:function(){return t}}}var r=n(214);e.exports=function(e){function t(){for(d=!0;u.size();){var e=u;u=o(),e.process()}d=!1}function n(e){d||(void 0===e&&(e=s),c&&(!function(e){clearTimeout(e)}(c),c=null),e?a():t())}function a(){c=function(e){return function(e){return setTimeout(e,0)}(e)}(t)}var i=(e=e||{}).reporter,s=r.getOption(e,"async",!0),l=r.getOption(e,"auto",!0);l&&!s&&(i&&i.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),s=!0);var c,u=o(),d=!1;return{add:function(e,t){!d&&l&&s&&0===u.size()&&a(),u.add(e,t)},force:n}}},function(e,t,n){"use strict";(e.exports={}).getOption=function(e,t,n){var o=e[t];return void 0!==o&&null!==o||void 0===n?o:n}},function(e,t,n){"use strict";function o(e){return e[r]}var r="_erd";e.exports={initState:function(e){return e[r]={},o(e)},getState:o,cleanState:function(e){delete e[r]}}},function(e,t,n){"use strict";var o=n(95);e.exports=function(e){function t(e,t,n){n||(n=t,t=e,e=null);e=e||{};o.isIE(8)?n(t):function(e,t){function n(){function n(){if("static"===c.position){e.style.position="relative";var t=function(e,t,n,o){var r=n[o];"auto"!==r&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(r)&&(e.warn("An element that is positioned static has style."+o+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+o+" will be set to 0. Element: ",t),t.style[o]=0)};t(r,e,c,"top"),t(r,e,c,"right"),t(r,e,c,"bottom"),t(r,e,c,"left")}}""!==c.position&&(n(),l=!0);var a=document.createElement("object");a.style.cssText=s,a.tabIndex=-1,a.type="text/html",a.onload=function(){function o(e,t){e.contentDocument?t(e.contentDocument):setTimeout(function(){o(e,t)},100)}l||n(),o(this,function(n){t(e)})},o.isIE()||(a.data="about:blank"),e.appendChild(a),i(e).object=a,o.isIE()&&(a.data="about:blank")}var s="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",l=!1,c=window.getComputedStyle(e),u=e.offsetWidth,d=e.offsetHeight;i(e).startSize={width:u,height:d},a?a.add(n):n()}(t,n)}function n(e){return i(e).object}var r=(e=e||{}).reporter,a=e.batchProcessor,i=e.stateHandler.getState;if(!r)throw new Error("Missing required dependency: reporter.");return{makeDetectable:t,addListener:function(e,t){function r(){t(e)}if(!n(e))throw new Error("Element is not detectable by this strategy.");o.isIE(8)?(i(e).object={proxy:r},e.attachEvent("onresize",r)):n(e).contentDocument.defaultView.addEventListener("resize",r)},uninstall:function(e){o.isIE(8)?e.detachEvent("onresize",i(e).object.proxy):e.removeChild(n(e)),delete i(e).object}}}},function(e,t,n){"use strict";var o=n(94).forEach;e.exports=function(e){function t(e,t){if(!document.getElementById(e)){var n=t+"_animation",o="/* Created by the element-resize-detector library. */\n";o+="."+t+" > div::-webkit-scrollbar { display: none; }\n\n",o+="."+(t+"_animation_active")+" { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+n+"; animation-name: "+n+"; }\n",o+="@-webkit-keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(t,n){n=n||function(e){document.head.appendChild(e)};var o=document.createElement("style");o.innerHTML=t,o.id=e,n(o)}(o+="@keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}function n(e,t,n){if(e.addEventListener)e.addEventListener(t,n);else{if(!e.attachEvent)return l.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+t,n)}}function r(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n);else{if(!e.detachEvent)return l.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+t,n)}}function a(e){return u(e).container.childNodes[0].childNodes[0].childNodes[0]}function i(e){return u(e).container.childNodes[0].childNodes[0].childNodes[1]}function s(e,t,r){function s(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(d.get(t),"Scroll: "),l.log.apply)l.log.apply(null,n);else for(var o=0;o<n.length;o++)l.log(n[o])}}function m(e){var t=u(e).container.childNodes[0],n=getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function f(){var e=getComputedStyle(t),n={};return n.position=e.position,n.width=t.offsetWidth,n.height=t.offsetHeight,n.top=e.top,n.right=e.right,n.bottom=e.bottom,n.left=e.left,n.widthCSS=e.width,n.heightCSS=e.height,n}function y(){if(s("storeStyle invoked."),u(t)){var e=f();u(t).style=e}else s("Aborting because element has been uninstalled")}function g(e,t,n){u(e).lastWidth=t,u(e).lastHeight=n}function w(){return 2*p.width+1}function x(){return 2*p.height+1}function v(e){return e+10+w()}function M(e){return e+10+x()}function b(e,t,n){var o=a(e),r=i(e),s=v(t),l=M(n),c=function(e){return 2*e+w()}(t),u=function(e){return 2*e+x()}(n);o.scrollLeft=s,o.scrollTop=l,r.scrollLeft=c,r.scrollTop=u}function E(){var e=u(t).container;if(!e){(e=document.createElement("div")).className=h,e.style.cssText="visibility: hidden; display: inline; width: 0px; height: 0px; z-index: -1; overflow: hidden; margin: 0; padding: 0;",u(t).container=e,function(e){e.className+=" "+h+"_animation_active"}(e),t.appendChild(e);var o=function(){u(t).onRendered&&u(t).onRendered()};n(e,"animationstart",o),u(t).onAnimationStart=o}return e}function _(){function e(){u(t).onExpand&&u(t).onExpand()}function o(){u(t).onShrink&&u(t).onShrink()}if(s("Injecting elements"),u(t)){!function(){var e=u(t).style;if("static"===e.position){t.style.position="relative";var n=function(e,t,n,o){var r=n[o];"auto"!==r&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(r)&&(e.warn("An element that is positioned static has style."+o+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+o+" will be set to 0. Element: ",t),t.style[o]=0)};n(l,t,e,"top"),n(l,t,e,"right"),n(l,t,e,"bottom"),n(l,t,e,"left")}}();var r=u(t).container;r||(r=E());var a=p.width,i=p.height,c="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; "+function(e,t,n,o){return e=e?e+"px":"0",t=t?t+"px":"0",n=n?n+"px":"0",o=o?o+"px":"0","left: "+e+"; top: "+t+"; right: "+o+"; bottom: "+n+";"}(-(1+a),-(1+i),-i,-a),d=document.createElement("div"),m=document.createElement("div"),f=document.createElement("div"),y=document.createElement("div"),g=document.createElement("div"),w=document.createElement("div");d.dir="ltr",d.style.cssText="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; width: 100%; height: 100%; left: 0px; top: 0px;",d.className=h,m.className=h,m.style.cssText=c,f.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",y.style.cssText="position: absolute; left: 0; top: 0;",g.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",w.style.cssText="position: absolute; width: 200%; height: 200%;",f.appendChild(y),g.appendChild(w),m.appendChild(f),m.appendChild(g),d.appendChild(m),r.appendChild(d),n(f,"scroll",e),n(g,"scroll",o),u(t).onExpandScroll=e,u(t).onShrinkScroll=o}else s("Aborting because element has been uninstalled")}function O(){function n(e,t,n){var o=function(e){return a(e).childNodes[0]}(e),r=v(t),i=M(n);o.style.width=r+"px",o.style.height=i+"px"}function r(o){var r=t.offsetWidth,a=t.offsetHeight;s("Storing current size",r,a),g(t,r,a),c.add(0,function(){if(u(t))if(p()){if(e.debug){var o=t.offsetWidth,i=t.offsetHeight;o===r&&i===a||l.warn(d.get(t),"Scroll: Size changed before updating detector elements.")}n(t,r,a)}else s("Aborting because element container has not been initialized");else s("Aborting because element has been uninstalled")}),c.add(1,function(){u(t)?p()?b(t,r,a):s("Aborting because element container has not been initialized"):s("Aborting because element has been uninstalled")}),o&&c.add(2,function(){u(t)?p()?o():s("Aborting because element container has not been initialized"):s("Aborting because element has been uninstalled")})}function p(){return!!u(t).container}function h(){s("notifyListenersIfNeeded invoked");var e=u(t);return void 0===u(t).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?s("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?s("Not notifying: Size already notified"):(s("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void o(u(t).listeners,function(e){e(t)}))}function f(){if(s("Scroll detected."),m(t))s("Scroll event fired while unrendered. Ignoring...");else{var e=t.offsetWidth,n=t.offsetHeight;e!==t.lastWidth||n!==t.lastHeight?(s("Element size changed."),r(h)):s("Element size has not changed ("+e+"x"+n+").")}}if(s("registerListenersAndPositionElements invoked."),u(t)){u(t).onRendered=function(){if(s("startanimation triggered."),m(t))s("Ignoring since element is still unrendered...");else{s("Element rendered.");var e=a(t),n=i(t);0!==e.scrollLeft&&0!==e.scrollTop&&0!==n.scrollLeft&&0!==n.scrollTop||(s("Scrollbars out of sync. Updating detector elements..."),r(h))}},u(t).onExpand=f,u(t).onShrink=f;var y=u(t).style;n(t,y.width,y.height)}else s("Aborting because element has been uninstalled")}function T(){if(s("finalizeDomMutation invoked."),u(t)){var e=u(t).style;g(t,e.width,e.height),b(t,e.width,e.height)}else s("Aborting because element has been uninstalled")}function I(){r(t)}function q(){s("Installing..."),u(t).listeners=[],function(){var e=f();u(t).startSize={width:e.width,height:e.height},s("Element start size",u(t).startSize)}(),c.add(0,y),c.add(1,_),c.add(2,O),c.add(3,T),c.add(4,I)}r||(r=t,t=e,e=null),e=e||{},s("Making detectable..."),!function(e){return!function(e){return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)}(e)||null===getComputedStyle(e)}(t)?q():(s("Element is detached"),E(),s("Waiting until element is attached..."),u(t).onRendered=function(){s("Element is now attached"),q()})}var l=(e=e||{}).reporter,c=e.batchProcessor,u=e.stateHandler.getState,d=(e.stateHandler.hasState,e.idHandler);if(!c)throw new Error("Missing required dependency: batchProcessor");if(!l)throw new Error("Missing required dependency: reporter.");var p=function(){var e=document.createElement("div");e.style.cssText="position: absolute; width: 1000px; height: 1000px; visibility: hidden; margin: 0; padding: 0;";var t=document.createElement("div");t.style.cssText="position: absolute; width: 500px; height: 500px; overflow: scroll; visibility: none; top: -1500px; left: -1500px; visibility: hidden; margin: 0; padding: 0;",t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,o=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:o}}(),h="erd_scroll_detection_container";return t("erd_scroll_detection_scrollbar_style",h),{makeDetectable:s,addListener:function(e,t){if(!u(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");u(e).listeners.push(t)},uninstall:function(e){var t=u(e);t&&(t.onExpandScroll&&r(a(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&r(i(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&r(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))}}}},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o({value:e,onUpdate:t,configs:n,sourceElement:o,internalState:r,state:i}){return a.a.createElement("table",{className:"PropertyColor",style:c.a.tableStyle},a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",{style:c.a.firstTdStyle},a.a.createElement(l.g,null,n.label)),a.a.createElement("td",null,a.a.createElement(l.f,{value:e,onChange:e=>(e=>n.hook?n.hook(e,o,r,i).then(e=>t(e)):t(e))(e.target.value)})))))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(14),c=n(23);o.propTypes={value:s.a.any.isRequired,onUpdate:s.a.func.isRequired,configs:s.a.object.isRequired,sourceElement:s.a.object,internalState:s.a.object,state:s.a.object.isRequired}},function(e,t,n){"use strict";function o(e){let{children:t,style:n}=e,o=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["children","style"]);return a.a.createElement("div",i({style:i({},s,{style:n})},o),t)}t.a=o;var r=n(0),a=n.n(r),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const s={marginBottom:"16px"}},function(e,t,n){"use strict";function o(e){let{onChange:t}=e,n=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["onChange"]);return a.a.createElement(i.a,s({type:"color",style:l,onChange:e=>{let n=e.target.value;c.test(n)&&t(e)},autoComplete:"off"},n))}t.a=o;var r=n(0),a=n.n(r),i=n(36),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const l={padding:0,border:0},c=/^.*$/},function(e,t,n){"use strict";function o(e){let{children:t,style:n}=e,o=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["children","style"]);return a.a.createElement("label",i({style:i({},s,{style:n})},o),t)}t.a=o;var r=n(0),a=n.n(r),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const s={display:"block",marginBottom:"5px"}},function(e,t,n){e.exports=function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var o=e[t];if("function"==typeof o){for(var r=arguments.length,a=Array(r>3?r-3:0),i=3;i<r;i++)a[i-3]=arguments[i];o=o.apply(void 0,a)}return void 0===o?n:o}var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(1),l=o(s),c=o(n(2)),u="undefined"!=typeof document,d=/^[+-]?((\.\d+)|(\d+(\.\d+)?))$/,p=/^([+-]|\.0*|[+-]\.0*|[+-]?\d+\.)?$/,h=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o)));return i._isStrict=!!i.props.strict,i.state=a({btnDownHover:!1,btnDownActive:!1,btnUpHover:!1,btnUpActive:!1,inputFocus:!1,stringValue:""},i._propsToState(i.props)),i.stop=i.stop.bind(i),i.onTouchEnd=i.onTouchEnd.bind(i),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.Component),i(t,[{key:"_propsToState",value:function(e){var t={};return e.hasOwnProperty("value")?(t.stringValue=String(e.value||0===e.value?e.value:"").trim(),t.value=""!==t.stringValue?this._parse(e.value):null):!this._isMounted&&e.hasOwnProperty("defaultValue")&&(t.stringValue=String(e.defaultValue||0===e.defaultValue?e.defaultValue:"").trim(),t.value=""!==e.defaultValue?this._parse(e.defaultValue):null),t}},{key:"componentWillReceiveProps",value:function(e){var t=this;this._isStrict=!!e.strict;var n=this._propsToState(e);Object.keys(n).length&&(this._ignoreValueChange=!0,this.setState(n,function(){t._ignoreValueChange=!1}))}},{key:"componentWillUpdate",value:function(){this.saveSelection()}},{key:"componentDidUpdate",value:function(e,t){this._ignoreValueChange||t.value===this.state.value||isNaN(this.state.value)&&null!==this.state.value||this._invokeEventCallback("onChange",this.state.value,this.refs.input.value,this.refs.input),this.state.inputFocus&&(this.refs.input.focus(),(this.state.selectionStart||0===this.state.selectionStart)&&(this.refs.input.selectionStart=this.state.selectionStart),(this.state.selectionEnd||0===this.state.selectionEnd)&&(this.refs.input.selectionEnd=this.state.selectionEnd)),this.checkValidity()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.stop()}},{key:"componentDidMount",value:function(){var e=this;this._isMounted=!0,this.refs.input.getValueAsNumber=function(){return e.state.value||0},this.refs.input.setValue=function(t){e.setState({value:e._parse(t),stringValue:t})},!this.state.inputFocus&&u&&document.activeElement===this.refs.input&&(this.state.inputFocus=!0,this.refs.input.focus(),this._invokeEventCallback("onFocus",{target:this.refs.input,type:"focus"})),this.checkValidity()}},{key:"saveSelection",value:function(){this.state.selectionStart=this.refs.input.selectionStart,this.state.selectionEnd=this.refs.input.selectionEnd}},{key:"checkValidity",value:function(){var e=void 0,t="",n=!!this.refs.input.checkValidity,o=!(!this.props.noValidate||"false"==this.props.noValidate);this.refs.input.noValidate=o,(e=o||!n)?t="":(""===this.refs.input.pattern&&(this.refs.input.pattern=this.props.required?".+":".*"),n&&(this.refs.input.checkValidity(),(e=this.refs.input.validity.valid)||(t=this.refs.input.validationMessage)),e&&n&&this.props.maxLength&&this.refs.input.value.length>this.props.maxLength&&(t="This value is too long")),t=t||(e?"":this.refs.input.validationMessage||"Unknown Error");var r=this._valid!==t;this._valid=t,t?(!function(e,t){if(e.classList)return e.classList.add(t);e.className.search(new RegExp("\\b"+t+"\\b"))||(e.className=" "+t)}(this.refs.wrapper,"has-error"),r&&this._invokeEventCallback("onInvalid",t,this.state.value,this.refs.input.value)):(!function(e,t){if(e.className){if(e.classList)return e.classList.remove(t);e.className=e.className.replace(new RegExp("\\b"+t+"\\b","g"),"")}}(this.refs.wrapper,"has-error"),r&&this._invokeEventCallback("onValid",this.state.value,this.refs.input.value))}},{key:"_toNumber",value:function(e){var n=parseFloat(e);if(!isNaN(n)&&isFinite(n)||(n=0),this._isStrict){var o=r(this.props,"precision",null,this),a=Math.pow(10,null===o?10:o),i=+r(this.props,"min",t.defaultProps.min,this),s=+r(this.props,"max",t.defaultProps.max,this);n=Math.min(Math.max(n,i),s),n=Math.round(n*a)/a}return n}},{key:"_parse",value:function(e){return e=String(e),"function"==typeof this.props.parse?parseFloat(this.props.parse(e)):parseFloat(e)}},{key:"_format",value:function(e){var t=this._toNumber(e),n=r(this.props,"precision",null,this);return null!==n&&(t=e.toFixed(n)),t+="",this.props.format?this.props.format(t):t}},{key:"_step",value:function(e,n){var o=this._isStrict;this._isStrict=!0;var a=+r(this.props,"step",t.defaultProps.step,this,e>0?t.DIRECTION_UP:t.DIRECTION_DOWN),i=this._toNumber((this.state.value||0)+a*e);return this.props.snap&&(i=Math.round(i/a)*a),this._isStrict=o,i!==this.state.value&&(this.setState({value:i,stringValue:i+""},n),!0)}},{key:"_onKeyDown",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].persist(),this._invokeEventCallback.apply(this,["onKeyDown"].concat(t));var o=t[0];if(!o.isDefaultPrevented())if(38===o.keyCode)o.preventDefault(),this._step(o.ctrlKey||o.metaKey?.1:o.shiftKey?10:1);else if(40===o.keyCode)o.preventDefault(),this._step(o.ctrlKey||o.metaKey?-.1:o.shiftKey?-10:-1);else{var r=this.refs.input.value,a=r.length;8===o.keyCode?this.refs.input.selectionStart==this.refs.input.selectionEnd&&this.refs.input.selectionEnd>0&&r.length&&"."===r.charAt(this.refs.input.selectionEnd-1)&&(o.preventDefault(),this.refs.input.selectionStart=this.refs.input.selectionEnd=this.refs.input.selectionEnd-1):46===o.keyCode&&this.refs.input.selectionStart==this.refs.input.selectionEnd&&this.refs.input.selectionEnd<a+1&&r.length&&"."===r.charAt(this.refs.input.selectionEnd)&&(o.preventDefault(),this.refs.input.selectionStart=this.refs.input.selectionEnd=this.refs.input.selectionEnd+1)}}},{key:"stop",value:function(){this._timer&&clearTimeout(this._timer)}},{key:"increase",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments[1];this.stop(),this._step(1,o);var a=+r(this.props,"max",t.defaultProps.max,this);(isNaN(this.state.value)||+this.state.value<a)&&(this._timer=setTimeout(function(){e.increase(!0)},n?t.SPEED:t.DELAY))}},{key:"decrease",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments[1];this.stop(),this._step(-1,o);var a=+r(this.props,"min",t.defaultProps.min,this);(isNaN(this.state.value)||+this.state.value>a)&&(this._timer=setTimeout(function(){e.decrease(!0)},n?t.SPEED:t.DELAY))}},{key:"onMouseDown",value:function(e,t){"down"==e?this.decrease(!1,t):"up"==e&&this.increase(!1,t)}},{key:"onTouchStart",value:function(e,t){t.preventDefault(),"down"==e?this.decrease():"up"==e&&this.increase()}},{key:"onTouchEnd",value:function(e){e.preventDefault(),this.stop()}},{key:"_invokeEventCallback",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];(t=this.props[e]).call.apply(t,[null].concat(o))}}},{key:"render",value:function(){var e=this,n=this.props,o=this.state,r={},i=this.props,s=(i.step,i.min,i.max,i.precision,i.parse,i.format,i.mobile),c=(i.snap,i.value,i.type,i.style),h=(i.defaultValue,i.onInvalid,i.onValid,i.strict,function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(i,["step","min","max","precision","parse","format","mobile","snap","value","type","style","defaultValue","onInvalid","onValid","strict"]));for(var m in t.style)r[m]=a({},t.style[m],c?c[m]||{}:{});var f=n.className&&/\bform-control\b/.test(n.className);"auto"==s&&(s=u&&"ontouchstart"in document),"function"==typeof s&&(s=s.call(this)),s=!!s;var y={wrap:{style:!1===c?null:r.wrap,className:"react-numeric-input",ref:"wrapper",onMouseUp:void 0,onMouseLeave:void 0},input:a({ref:"input",type:"text",style:!1===c?null:a({},r.input,f?{}:r["input:not(.form-control)"],o.inputFocus?r["input:focus"]:{})},h),btnUp:{onMouseEnter:void 0,onMouseDown:void 0,onMouseUp:void 0,onMouseLeave:void 0,onTouchStart:void 0,onTouchEnd:void 0,style:!1===c?null:a({},r.btn,r.btnUp,n.disabled?r["btn:disabled"]:o.btnUpActive?r["btn:active"]:o.btnUpHover?r["btn:hover"]:{})},btnDown:{onMouseEnter:void 0,onMouseDown:void 0,onMouseUp:void 0,onMouseLeave:void 0,onTouchStart:void 0,onTouchEnd:void 0,style:!1===c?null:a({},r.btn,r.btnDown,n.disabled?r["btn:disabled"]:o.btnDownActive?r["btn:active"]:o.btnDownHover?r["btn:hover"]:{})}},g=String(o.stringValue||(o.value||0===o.value?o.value:"")||"");return p.test(g)?y.input.value=g:this._isStrict||!g||d.test(g)?o.value||0===o.value?y.input.value=this._format(o.value):y.input.value="":y.input.value=g,f&&!1!==c&&a(y.wrap.style,r["wrap.hasFormControl"]),s&&!1!==c&&(a(y.input.style,r["input.mobile"]),a(y.btnUp.style,r["btnUp.mobile"]),a(y.btnDown.style,r["btnDown.mobile"])),n.disabled?!1!==c&&a(y.input.style,r["input:disabled"]):(a(y.wrap,{onMouseUp:this.stop,onMouseLeave:this.stop}),a(y.btnUp,{onTouchStart:this.onTouchStart.bind(this,"up"),onTouchEnd:this.onTouchEnd,onMouseEnter:function(){e.setState({btnUpHover:!0})},onMouseLeave:function(){e.stop(),e.setState({btnUpHover:!1,btnUpActive:!1})},onMouseUp:function(){e.setState({btnUpHover:!0,btnUpActive:!1})},onMouseDown:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];n[0].preventDefault(),n[0].persist(),e.setState({btnUpHover:!0,btnUpActive:!0,inputFocus:!0},function(){e._invokeEventCallback.apply(e,["onFocus"].concat(n)),e.onMouseDown("up")})}}),a(y.btnDown,{onTouchStart:this.onTouchStart.bind(this,"down"),onTouchEnd:this.onTouchEnd,onMouseEnter:function(){e.setState({btnDownHover:!0})},onMouseLeave:function(){e.stop(),e.setState({btnDownHover:!1,btnDownActive:!1})},onMouseUp:function(){e.setState({btnDownHover:!0,btnDownActive:!1})},onMouseDown:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];n[0].preventDefault(),n[0].persist(),e.setState({btnDownHover:!0,btnDownActive:!0,inputFocus:!0},function(){e._invokeEventCallback.apply(e,["onFocus"].concat(n)),e.onMouseDown("down")})}}),a(y.input,{onChange:function(t){var n=t.target.value,o=e._parse(n);isNaN(o)&&(o=null),e.setState({value:e._isStrict?e._toNumber(o):o,stringValue:n})},onKeyDown:this._onKeyDown.bind(this),onInput:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];e.saveSelection(),e._invokeEventCallback.apply(e,["onInput"].concat(n))},onSelect:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];e.saveSelection(),e._invokeEventCallback.apply(e,["onSelect"].concat(n))},onFocus:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];n[0].persist(),e.setState({inputFocus:!0},function(){var t=e._parse(n[0].target.value);e.setState({value:t,stringValue:t||0===t?t+"":""},function(){e._invokeEventCallback.apply(e,["onFocus"].concat(n))})})},onBlur:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=e._isStrict;e._isStrict=!0,n[0].persist(),e.setState({inputFocus:!1},function(){var t=e._parse(n[0].target.value);e.setState({value:t},function(){e._invokeEventCallback.apply(e,["onBlur"].concat(n)),e._isStrict=r})})}})),s?l.default.createElement("span",y.wrap,l.default.createElement("input",y.input),l.default.createElement("b",y.btnUp,l.default.createElement("i",{style:!1===c?null:r.minus}),l.default.createElement("i",{style:!1===c?null:r.plus})),l.default.createElement("b",y.btnDown,l.default.createElement("i",{style:!1===c?null:r.minus}))):l.default.createElement("span",y.wrap,l.default.createElement("input",y.input),l.default.createElement("b",y.btnUp,l.default.createElement("i",{style:!1===c?null:r.arrowUp})),l.default.createElement("b",y.btnDown,l.default.createElement("i",{style:!1===c?null:r.arrowDown})))}}]),t}();h.propTypes={step:c.default.oneOfType([c.default.number,c.default.func]),min:c.default.oneOfType([c.default.number,c.default.func]),max:c.default.oneOfType([c.default.number,c.default.func]),precision:c.default.oneOfType([c.default.number,c.default.func]),maxLength:c.default.number,parse:c.default.func,format:c.default.func,className:c.default.string,disabled:c.default.bool,readOnly:c.default.bool,required:c.default.bool,snap:c.default.bool,noValidate:c.default.oneOfType([c.default.bool,c.default.string]),style:c.default.oneOfType([c.default.object,c.default.bool]),type:c.default.string,pattern:c.default.string,onFocus:c.default.func,onBlur:c.default.func,onKeyDown:c.default.func,onChange:c.default.func,onInvalid:c.default.func,onValid:c.default.func,onInput:c.default.func,onSelect:c.default.func,size:c.default.oneOfType([c.default.number,c.default.string]),value:c.default.oneOfType([c.default.number,c.default.string]),defaultValue:c.default.oneOfType([c.default.number,c.default.string]),strict:c.default.bool,mobile:function(e,t){var n=e[t];if(!0!==n&&!1!==n&&"auto"!==n&&"function"!=typeof n)return new Error('The "mobile" prop must be true, false, "auto" or a function')}},h.defaultProps={step:1,min:Number.MIN_SAFE_INTEGER||-9007199254740991,max:Number.MAX_SAFE_INTEGER||9007199254740991,precision:null,parse:null,format:null,mobile:"auto",strict:!1,style:{}},h.style={wrap:{position:"relative",display:"inline-block"},"wrap.hasFormControl":{display:"block"},arrowUp:{position:"absolute",top:"50%",left:"50%",width:0,height:0,borderWidth:"0 0.6ex 0.6ex 0.6ex",borderColor:"transparent transparent rgba(0, 0, 0, 0.7)",borderStyle:"solid",margin:"-0.3ex 0 0 -0.56ex"},arrowDown:{position:"absolute",top:"50%",left:"50%",width:0,height:0,borderWidth:"0.6ex 0.6ex 0 0.6ex",borderColor:"rgba(0, 0, 0, 0.7) transparent transparent",borderStyle:"solid",margin:"-0.3ex 0 0 -0.56ex"},plus:{position:"absolute",top:"50%",left:"50%",width:2,height:10,background:"rgba(0,0,0,.7)",margin:"-5px 0 0 -1px"},minus:{position:"absolute",top:"50%",left:"50%",width:10,height:2,background:"rgba(0,0,0,.7)",margin:"-1px 0 0 -5px"},btn:{position:"absolute",right:2,width:"2.26ex",borderColor:"rgba(0,0,0,.1)",borderStyle:"solid",textAlign:"center",cursor:"default",transition:"all 0.1s",background:"rgba(0,0,0,.1)",boxShadow:"-1px -1px 3px rgba(0,0,0,.1) inset,1px 1px 3px rgba(255,255,255,.7) inset"},btnUp:{top:2,bottom:"50%",borderRadius:"2px 2px 0 0",borderWidth:"1px 1px 0 1px"},"btnUp.mobile":{width:"3.3ex",bottom:2,boxShadow:"none",borderRadius:2,borderWidth:1},btnDown:{top:"50%",bottom:2,borderRadius:"0 0 2px 2px",borderWidth:"0 1px 1px 1px"},"btnDown.mobile":{width:"3.3ex",bottom:2,left:2,top:2,right:"auto",boxShadow:"none",borderRadius:2,borderWidth:1},"btn:hover":{background:"rgba(0,0,0,.2)"},"btn:active":{background:"rgba(0,0,0,.3)",boxShadow:"0 1px 3px rgba(0,0,0,.2) inset,-1px -1px 4px rgba(255,255,255,.5) inset"},"btn:disabled":{opacity:.5,boxShadow:"none",cursor:"not-allowed"},input:{paddingRight:"3ex",boxSizing:"border-box"},"input:not(.form-control)":{border:"1px solid #ccc",borderRadius:2,paddingLeft:4,display:"block",WebkitAppearance:"none",lineHeight:"normal"},"input.mobile":{paddingLeft:" 3.4ex",paddingRight:"3.4ex",textAlign:"center"},"input:focus":{},"input:disabled":{color:"rgba(0, 0, 0, 0.3)",textShadow:"0 1px 0 rgba(255, 255, 255, 0.8)"}},h.SPEED=50,h.DELAY=500,h.DIRECTION_UP="up",h.DIRECTION_DOWN="down",e.exports=h},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(2)}])},function(e,t,n){"use strict";function o(e){let{children:t,style:n}=e,o=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["children","style"]);return a.a.createElement("select",s({type:"text",style:s({},l,n)},o),t)}t.a=o;var r=n(0),a=n.n(r),i=n(4),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const l={display:"block",width:"100%",padding:"0px 4px",fontSize:"13px",color:"#55595c",backgroundColor:i.a.white,backgroundImage:"none",border:"1px solid rgba(0,0,0,.15)",outline:"none",borderRadius:"0px",height:"30px",WebkitAppearance:"none",WebkitBorderRadius:"0px",background:"url(\"data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24' viewBox='0 0 24 24'><path fill='#444' d='M7.406 7.828l4.594 4.594 4.594-4.594 1.406 1.406-6 6-6-6z'></path></svg>\") #fff",backgroundPosition:"100% 50%",backgroundRepeat:"no-repeat"}},function(e,t,n){"use strict";var o=n(250),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o.createClass({displayName:"Range",propTypes:{onChange:o.PropTypes.func,onClick:o.PropTypes.func,onKeyDown:o.PropTypes.func,onMouseMove:o.PropTypes.func},getDefaultProps:function(){return{type:"range",onChange:function(){},onClick:function(){},onKeyDown:function(){},onMouseMove:function(){}}},onRangeChange:function(e){this.props.onMouseMove(e),1!==e.buttons&&1!==e.which||this.props.onChange(e)},onRangeClick:function(e){this.props.onClick(e),this.props.onChange(e)},onRangeKeyDown:function(e){this.props.onKeyDown(e),this.props.onChange(e)},setRangeRef:function(e){this.range=e},componentWillReceiveProps:function(e){this.range.value=e.value},render:function(){var e=r({},this.props,{defaultValue:this.props.value,onClick:this.onRangeClick,onKeyDown:this.onRangeKeyDown,onMouseMove:this.onRangeChange,onChange:function(){},ref:this.setRangeRef});return delete e.value,o.createElement("input",e)}});e.exports=a},function(e,t,n){"use strict";e.exports=n(251)},function(e,t,n){"use strict";var o=n(252),r=n(310),a=n(314),i=n(7),s=n(318),l={};i(l,a),i(l,{findDOMNode:s("findDOMNode","ReactDOM","react-dom",o,o.findDOMNode),render:s("render","ReactDOM","react-dom",o,o.render),unmountComponentAtNode:s("unmountComponentAtNode","ReactDOM","react-dom",o,o.unmountComponentAtNode),renderToString:s("renderToString","ReactDOMServer","react-dom/server",r,r.renderToString),renderToStaticMarkup:s("renderToStaticMarkup","ReactDOMServer","react-dom/server",r,r.renderToStaticMarkup)}),l.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o,l.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r,e.exports=l},function(e,t,n){"use strict";var o=n(18),r=n(112),a=n(128),i=n(32),s=n(11),l=n(15),c=n(25),u=n(16),d=n(83),p=n(78),h=n(309);n(6);a.inject();var m={findDOMNode:p,render:l.measure("React","render",s.render),unmountComponentAtNode:s.unmountComponentAtNode,version:d,unstable_batchedUpdates:u.batchedUpdates,unstable_renderSubtreeIntoContainer:h};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:o,InstanceHandles:i,Mount:s,Reconciler:c,TextComponent:r});e.exports=m},function(e,t,n){"use strict";function o(e){return e.substring(1,e.indexOf(" "))}var r=n(10),a=n(254),i=n(17),s=n(114),l=n(3),c=/^(<[^ \/>]+)/,u={dangerouslyRenderMarkup:function(e){r.canUseDOM||l(!1);for(var t,n={},u=0;u<e.length;u++)e[u]||l(!1),t=o(e[u]),n[t=s(t)?t:"*"]=n[t]||[],n[t][u]=e[u];var d=[],p=0;for(t in n)if(n.hasOwnProperty(t)){var h,m=n[t];for(h in m)if(m.hasOwnProperty(h)){var f=m[h];m[h]=f.replace(c,'$1 data-danger-index="'+h+'" ')}for(var y=a(m.join(""),i),g=0;g<y.length;++g){var w=y[g];w.hasAttribute&&w.hasAttribute("data-danger-index")&&(h=+w.getAttribute("data-danger-index"),w.removeAttribute("data-danger-index"),d.hasOwnProperty(h)&&l(!1),d[h]=w,p+=1)}}return p!==d.length&&l(!1),d.length!==e.length&&l(!1),d},dangerouslyReplaceNodeWithMarkup:function(e,t){r.canUseDOM||l(!1),t||l(!1),"html"===e.tagName.toLowerCase()&&l(!1);var n;n="string"==typeof t?a(t,i)[0]:t,e.parentNode.replaceChild(n,e)}};e.exports=u},function(e,t,n){"use strict";function o(e,t){var n=l;l||s(!1);var o=function(e){var t=e.match(c);return t&&t[1].toLowerCase()}(e),r=o&&i(o);if(r){n.innerHTML=r[1]+e+r[2];for(var u=r[0];u--;)n=n.lastChild}else n.innerHTML=e;var d=n.getElementsByTagName("script");d.length&&(t||s(!1),a(d).forEach(t));for(var p=a(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return p}var r=n(10),a=n(255),i=n(114),s=n(3),l=r.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;e.exports=o},function(e,t,n){"use strict";function o(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():r(e):[e]}var r=n(256);e.exports=o},function(e,t,n){"use strict";var o=n(3);e.exports=function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&o(!1),"number"!=typeof t&&o(!1),0===t||t-1 in e||o(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}},function(e,t,n){"use strict";var o=n(49);e.exports=function(e){return'"'+o(e)+'"'}},function(e,t,n){"use strict";function o(e,t,n,o){var r=e.type||"unknown-event";e.currentTarget=l.Mount.getNode(o),t?i.invokeGuardedCallbackWithCatch(r,n,e,o):i.invokeGuardedCallback(r,n,e,o),e.currentTarget=null}function r(e){var t=function(e){var t=e._dispatchListeners,n=e._dispatchIDs;if(Array.isArray(t)){for(var o=0;o<t.length&&!e.isPropagationStopped();o++)if(t[o](e,n[o]))return n[o]}else if(t&&t(e,n))return n;return null}(e);return e._dispatchIDs=null,e._dispatchListeners=null,t}var a=n(19),i=n(117),s=n(3),l=(n(6),{Mount:null,injectMount:function(e){l.Mount=e}}),c=a.topLevelTypes,u={isEndish:function(e){return e===c.topMouseUp||e===c.topTouchEnd||e===c.topTouchCancel},isMoveish:function(e){return e===c.topMouseMove||e===c.topTouchMove},isStartish:function(e){return e===c.topMouseDown||e===c.topTouchStart},executeDirectDispatch:function(e){var t=e._dispatchListeners,n=e._dispatchIDs;Array.isArray(t)&&s(!1);var o=t?t(e,n):null;return e._dispatchListeners=null,e._dispatchIDs=null,o},executeDispatchesInOrder:function(e,t){var n=e._dispatchListeners,r=e._dispatchIDs;if(Array.isArray(n))for(var a=0;a<n.length&&!e.isPropagationStopped();a++)o(e,t,n[a],r[a]);else n&&o(e,t,n,r);e._dispatchListeners=null,e._dispatchIDs=null},executeDispatchesInOrderStopAtTrue:r,hasDispatches:function(e){return!!e._dispatchListeners},getNode:function(e){return l.Mount.getNode(e)},getID:function(e){return l.Mount.getID(e)},injection:l};e.exports=u},function(e,t,n){"use strict";var o=n(37),r={handleTopLevel:function(e,t,n,r,a){!function(e){o.enqueueEvents(e),o.processEventQueue(!1)}(o.extractEvents(e,t,n,r,a))}};e.exports=r},function(e,t,n){"use strict";var o=65521;e.exports=function(e){for(var t=1,n=0,r=0,a=e.length,i=-4&a;r<i;){for(;r<Math.min(r+4096,i);r+=4)n+=(t+=e.charCodeAt(r))+(t+=e.charCodeAt(r+1))+(t+=e.charCodeAt(r+2))+(t+=e.charCodeAt(r+3));t%=o,n%=o}for(;r<a;r++)n+=t+=e.charCodeAt(r);return t%=o,n%=o,t|n<<16}},function(e,t,n){"use strict";var o=n(262),r={};r.attachRefs=function(e,t){if(null!==t&&!1!==t){var n=t.ref;null!=n&&function(e,t,n){"function"==typeof e?e(t.getPublicInstance()):o.addComponentAsRefTo(t,e,n)}(n,e,t._owner)}},r.shouldUpdateRefs=function(e,t){return null===e||!1===e||(null===t||!1===t)||t._owner!==e._owner||t.ref!==e.ref},r.detachRefs=function(e,t){if(null!==t&&!1!==t){var n=t.ref;null!=n&&function(e,t,n){"function"==typeof e?e(null):o.removeComponentAsRefFrom(t,e,n)}(n,e,t._owner)}},e.exports=r},function(e,t,n){"use strict";var o=n(3),r={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,t,n){r.isValidOwner(n)||o(!1),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){r.isValidOwner(n)||o(!1),n.getPublicInstance().refs[t]===e.getPublicInstance()&&n.detachRef(t)}};e.exports=r},function(e,t,n){"use strict";var o=n(264);e.exports=function(e){return o(e)&&3==e.nodeType}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";function o(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}function r(e){}var a=n(73),i=n(18),s=n(12),l=n(38),c=n(15),u=n(53),d=(n(54),n(25)),p=n(70),h=n(7),m=n(39),f=n(3),y=n(74);n(6);r.prototype.render=function(){return(0,l.get(this)._currentElement.type)(this.props,this.context,this.updater)};var g=1,w={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null},mountComponent:function(e,t,n){this._context=n,this._mountOrder=g++,this._rootNodeID=e;var o,a,i=this._processProps(this._currentElement.props),c=this._processContext(n),u=this._currentElement.type,h="prototype"in u;h&&(o=new u(i,c,p)),h&&null!==o&&!1!==o&&!s.isValidElement(o)||(a=o,o=new r(u)),o.props=i,o.context=c,o.refs=m,o.updater=p,this._instance=o,l.set(o,this);var y=o.state;void 0===y&&(o.state=y=null),("object"!=typeof y||Array.isArray(y))&&f(!1),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,o.componentWillMount&&(o.componentWillMount(),this._pendingStateQueue&&(o.state=this._processPendingState(o.props,o.context))),void 0===a&&(a=this._renderValidatedComponent()),this._renderedComponent=this._instantiateReactComponent(a);var w=d.mountComponent(this._renderedComponent,e,t,this._processChildContext(n));return o.componentDidMount&&t.getReactMountReady().enqueue(o.componentDidMount,o),w},unmountComponent:function(){var e=this._instance;e.componentWillUnmount&&e.componentWillUnmount(),d.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._instance=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,this._topLevelWrapper=null,l.remove(e)},_maskContext:function(e){var t=null,n=this._currentElement.type.contextTypes;if(!n)return m;t={};for(var o in n)t[o]=e[o];return t},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t=this._currentElement.type,n=this._instance,o=n.getChildContext&&n.getChildContext();if(o){"object"!=typeof t.childContextTypes&&f(!1);for(var r in o)r in t.childContextTypes||f(!1);return h({},e,o)}return e},_processProps:function(e){return e},_checkPropTypes:function(e,t,n){var r=this.getName();for(var a in e)if(e.hasOwnProperty(a)){var i;try{"function"!=typeof e[a]&&f(!1),i=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){i=e}if(i instanceof Error){o(this);u.prop}}},receiveComponent:function(e,t,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,o,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&d.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(e,t,n,o,r){var a,i=this._instance,s=this._context===r?i.context:this._processContext(r);t===n?a=n.props:(a=this._processProps(n.props),i.componentWillReceiveProps&&i.componentWillReceiveProps(a,s));var l=this._processPendingState(a,s),c=this._pendingForceUpdate||!i.shouldComponentUpdate||i.shouldComponentUpdate(a,l,s);c?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,a,l,s,e,r)):(this._currentElement=n,this._context=r,i.props=a,i.state=l,i.context=s)},_processPendingState:function(e,t){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var a=h({},r?o[0]:n.state),i=r?1:0;i<o.length;i++){var s=o[i];h(a,"function"==typeof s?s.call(n,a,e,t):s)}return a},_performComponentUpdate:function(e,t,n,o,r,a){var i,s,l,c=this._instance,u=Boolean(c.componentDidUpdate);u&&(i=c.props,s=c.state,l=c.context),c.componentWillUpdate&&c.componentWillUpdate(t,n,o),this._currentElement=e,this._context=a,c.props=t,c.state=n,c.context=o,this._updateRenderedComponent(r,a),u&&r.getReactMountReady().enqueue(c.componentDidUpdate.bind(c,i,s,l),c)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,o=n._currentElement,r=this._renderValidatedComponent();if(y(o,r))d.receiveComponent(n,r,e,this._processChildContext(t));else{var a=this._rootNodeID,i=n._rootNodeID;d.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(r);var s=d.mountComponent(this._renderedComponent,a,e,this._processChildContext(t));this._replaceNodeWithMarkupByID(i,s)}},_replaceNodeWithMarkupByID:function(e,t){a.replaceNodeWithMarkupByID(e,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance,t=e.render();return t},_renderValidatedComponent:function(){var e;i.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{i.current=null}return null===e||!1===e||s.isValidElement(e)||f(!1),e},attachRef:function(e,t){var n=this.getPublicInstance();null==n&&f(!1);var o=t.getPublicInstance();(n.refs===m?n.refs={}:n.refs)[e]=o},detachRef:function(e){delete this.getPublicInstance().refs[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return e instanceof r?null:e},_instantiateReactComponent:null};c.measureMethods(w,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var x={Mixin:w};e.exports=x},function(e,t,n){"use strict";function o(e,t){switch(e){case b.topKeyUp:return-1!==m.indexOf(t.keyCode);case b.topKeyDown:return t.keyCode!==f;case b.topKeyPress:case b.topMouseDown:case b.topBlur:return!0;default:return!1}}function r(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function a(e,t,n,a,i){var s,c;if(y?s=function(e){switch(e){case b.topCompositionStart:return E.compositionStart;case b.topCompositionEnd:return E.compositionEnd;case b.topCompositionUpdate:return E.compositionUpdate}}(e):O?o(e,a)&&(s=E.compositionEnd):function(e,t){return e===b.topKeyDown&&t.keyCode===f}(e,a)&&(s=E.compositionStart),!s)return null;x&&(O||s!==E.compositionStart?s===E.compositionEnd&&O&&(c=O.getData()):O=u.getPooled(t));var p=d.getPooled(s,n,a,i);if(c)p.data=c;else{var h=r(a);null!==h&&(p.data=h)}return l.accumulateTwoPhaseDispatches(p),p}function i(e,t,n,a,i){var s;if(!(s=w?function(e,t){switch(e){case b.topCompositionEnd:return r(t);case b.topKeyPress:return t.which!==v?null:(_=!0,M);case b.topTextInput:var n=t.data;return n===M&&_?null:n;default:return null}}(e,a):function(e,t){if(O){if(e===b.topCompositionEnd||o(e,t)){var n=O.getData();return u.release(O),O=null,n}return null}switch(e){case b.topPaste:return null;case b.topKeyPress:return t.which&&!function(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}(t)?String.fromCharCode(t.which):null;case b.topCompositionEnd:return x?null:t.data;default:return null}}(e,a)))return null;var c=p.getPooled(E.beforeInput,n,a,i);return c.data=s,l.accumulateTwoPhaseDispatches(c),c}var s=n(19),l=n(40),c=n(10),u=n(267),d=n(268),p=n(269),h=n(22),m=[9,13,27,32],f=229,y=c.canUseDOM&&"CompositionEvent"in window,g=null;c.canUseDOM&&"documentMode"in document&&(g=document.documentMode);var w=c.canUseDOM&&"TextEvent"in window&&!g&&!function(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}(),x=c.canUseDOM&&(!y||g&&g>8&&g<=11),v=32,M=String.fromCharCode(v),b=s.topLevelTypes,E={beforeInput:{phasedRegistrationNames:{bubbled:h({onBeforeInput:null}),captured:h({onBeforeInputCapture:null})},dependencies:[b.topCompositionEnd,b.topKeyPress,b.topTextInput,b.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:h({onCompositionEnd:null}),captured:h({onCompositionEndCapture:null})},dependencies:[b.topBlur,b.topCompositionEnd,b.topKeyDown,b.topKeyPress,b.topKeyUp,b.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:h({onCompositionStart:null}),captured:h({onCompositionStartCapture:null})},dependencies:[b.topBlur,b.topCompositionStart,b.topKeyDown,b.topKeyPress,b.topKeyUp,b.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:h({onCompositionUpdate:null}),captured:h({onCompositionUpdateCapture:null})},dependencies:[b.topBlur,b.topCompositionUpdate,b.topKeyDown,b.topKeyPress,b.topKeyUp,b.topMouseDown]}},_=!1,O=null,T={eventTypes:E,extractEvents:function(e,t,n,o,r){return[a(e,t,n,o,r),i(e,0,n,o,r)]}};e.exports=T},function(e,t,n){"use strict";function o(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(21),a=n(7),i=n(129);a(o.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[i()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,o=n.length,r=this.getText(),a=r.length;for(e=0;e<o&&n[e]===r[e];e++);var i=o-e;for(t=1;t<=i&&n[o-t]===r[a-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=r.slice(e,s),this._fallbackText}}),r.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){r.call(this,e,t,n,o)}var r=n(26);r.augmentClass(o,{data:null}),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){r.call(this,e,t,n,o)}var r=n(26);r.augmentClass(o,{data:null}),e.exports=o},function(e,t,n){"use strict";function o(e){var t=x.getPooled(O.change,I,e,v(e));y.accumulateTwoPhaseDispatches(t),w.batchedUpdates(r,t)}function r(e){f.enqueueEvents(e),f.processEventQueue(!1)}function a(){T&&(T.detachEvent("onchange",o),T=null,I=null)}function i(e,t,n){if(e===_.topChange)return n}function s(e,t,n){e===_.topFocus?(a(),function(e,t){I=t,(T=e).attachEvent("onchange",o)}(t,n)):e===_.topBlur&&a()}function l(){T&&(delete T.value,T.detachEvent("onpropertychange",c),T=null,I=null,q=null,P=null)}function c(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==q&&(q=t,o(e))}}function u(e,t,n){if(e===_.topInput)return n}function d(e,t,n){e===_.topFocus?(l(),function(e,t){T=e,I=t,q=e.value,P=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(T,"value",S),T.attachEvent("onpropertychange",c)}(t,n)):e===_.topBlur&&l()}function p(e,t,n){if((e===_.topSelectionChange||e===_.topKeyUp||e===_.topKeyDown)&&T&&T.value!==q)return q=T.value,I}function h(e,t,n){if(e===_.topClick)return n}var m=n(19),f=n(37),y=n(40),g=n(10),w=n(16),x=n(26),v=n(76),M=n(69),b=n(130),E=n(22),_=m.topLevelTypes,O={change:{phasedRegistrationNames:{bubbled:E({onChange:null}),captured:E({onChangeCapture:null})},dependencies:[_.topBlur,_.topChange,_.topClick,_.topFocus,_.topInput,_.topKeyDown,_.topKeyUp,_.topSelectionChange]}},T=null,I=null,q=null,P=null,D=!1;g.canUseDOM&&(D=M("change")&&(!("documentMode"in document)||document.documentMode>8));var C=!1;g.canUseDOM&&(C=M("input")&&(!("documentMode"in document)||document.documentMode>9));var S={get:function(){return P.get.call(this)},set:function(e){q=""+e,P.set.call(this,e)}},G={eventTypes:O,extractEvents:function(e,t,n,o,r){var a,l;if(!function(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}(t)?b(t)?C?a=u:(a=p,l=d):function(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}(t)&&(a=h):D?a=i:l=s,a){var c=a(e,t,n);if(c){var m=x.getPooled(O.change,c,o,r);return m.type="change",y.accumulateTwoPhaseDispatches(m),m}}l&&l(e,t,n)}};e.exports=G},function(e,t,n){"use strict";var o=0,r={createReactRootIndex:function(){return o++}};e.exports=r},function(e,t,n){"use strict";var o=n(22),r=[o({ResponderEventPlugin:null}),o({SimpleEventPlugin:null}),o({TapEventPlugin:null}),o({EnterLeaveEventPlugin:null}),o({ChangeEventPlugin:null}),o({SelectEventPlugin:null}),o({BeforeInputEventPlugin:null})];e.exports=r},function(e,t,n){"use strict";var o=n(19),r=n(40),a=n(55),i=n(11),s=n(22),l=o.topLevelTypes,c=i.getFirstReactDOM,u={mouseEnter:{registrationName:s({onMouseEnter:null}),dependencies:[l.topMouseOut,l.topMouseOver]},mouseLeave:{registrationName:s({onMouseLeave:null}),dependencies:[l.topMouseOut,l.topMouseOver]}},d=[null,null],p={eventTypes:u,extractEvents:function(e,t,n,o,s){if(e===l.topMouseOver&&(o.relatedTarget||o.fromElement))return null;if(e!==l.topMouseOut&&e!==l.topMouseOver)return null;var p;if(t.window===t)p=t;else{var h=t.ownerDocument;p=h?h.defaultView||h.parentWindow:window}var m,f,y="",g="";if(e===l.topMouseOut?(m=t,y=n,(f=c(o.relatedTarget||o.toElement))?g=i.getID(f):f=p,f=f||p):(m=p,f=t,g=n),m===f)return null;var w=a.getPooled(u.mouseLeave,y,o,s);w.type="mouseleave",w.target=m,w.relatedTarget=f;var x=a.getPooled(u.mouseEnter,g,o,s);return x.type="mouseenter",x.target=f,x.relatedTarget=m,r.accumulateEnterLeaveDispatches(w,x,y,g),d[0]=w,d[1]=x,d}};e.exports=p},function(e,t,n){"use strict";var o,r=n(31),a=n(10),i=r.injection.MUST_USE_ATTRIBUTE,s=r.injection.MUST_USE_PROPERTY,l=r.injection.HAS_BOOLEAN_VALUE,c=r.injection.HAS_SIDE_EFFECTS,u=r.injection.HAS_NUMERIC_VALUE,d=r.injection.HAS_POSITIVE_NUMERIC_VALUE,p=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(a.canUseDOM){var h=document.implementation;o=h&&h.hasFeature&&h.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var m={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:i|l,allowTransparency:i,alt:null,async:l,autoComplete:null,autoPlay:l,capture:i|l,cellPadding:null,cellSpacing:null,charSet:i,challenge:i,checked:s|l,classID:i,className:o?i:s,cols:i|d,colSpan:null,content:null,contentEditable:null,contextMenu:i,controls:s|l,coords:null,crossOrigin:null,data:null,dateTime:i,default:l,defer:l,dir:null,disabled:i|l,download:p,draggable:null,encType:null,form:i,formAction:i,formEncType:i,formMethod:i,formNoValidate:l,formTarget:i,frameBorder:i,headers:null,height:i,hidden:i|l,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,inputMode:i,integrity:null,is:i,keyParams:i,keyType:i,kind:null,label:null,lang:null,list:i,loop:s|l,low:null,manifest:i,marginHeight:null,marginWidth:null,max:null,maxLength:i,media:i,mediaGroup:null,method:null,min:null,minLength:i,multiple:s|l,muted:s|l,name:null,nonce:i,noValidate:l,open:l,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|l,rel:null,required:l,reversed:l,role:i,rows:i|d,rowSpan:null,sandbox:null,scope:null,scoped:l,scrolling:null,seamless:i|l,selected:s|l,shape:null,size:i|d,sizes:i,span:d,spellCheck:null,src:null,srcDoc:s,srcLang:null,srcSet:i,start:u,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|c,width:i,wmode:i,wrap:null,about:i,datatype:i,inlist:i,prefix:i,property:i,resource:i,typeof:i,vocab:i,autoCapitalize:i,autoCorrect:i,autoSave:null,color:null,itemProp:i,itemScope:i|l,itemType:i,itemID:i,itemRef:i,results:null,security:i,unselectable:i},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};e.exports=m},function(e,t,n){"use strict";n(38);var o=n(78),r=(n(6),{getDOMNode:function(){return this.constructor._getDOMNodeDidWarn=!0,o(this)}});e.exports=r},function(e,t,n){"use strict";function o(){return this}function r(){var e=this._reactInternalComponent;return!!e}function a(){}function i(e,t){var n=this._reactInternalComponent;n&&(C.enqueueSetPropsInternal(n,e),t&&C.enqueueCallbackInternal(n,t))}function s(e,t){var n=this._reactInternalComponent;n&&(C.enqueueReplacePropsInternal(n,e),t&&C.enqueueCallbackInternal(n,t))}function l(e,t){t&&(null!=t.dangerouslySetInnerHTML&&(null!=t.children&&L(!1),"object"==typeof t.dangerouslySetInnerHTML&&W in t.dangerouslySetInnerHTML||L(!1)),null!=t.style&&"object"!=typeof t.style&&L(!1))}function c(e,t,n,o){var r=q.findReactContainerForID(e);if(r){var a=r.nodeType===H?r.ownerDocument:r;B(t,a)}o.getReactMountReady().enqueue(u,{id:e,registrationName:t,listener:n})}function u(){M.putListener(this.id,this.registrationName,this.listener)}function d(){var e=this;e._rootNodeID||L(!1);var t=q.getNode(e._rootNodeID);switch(t||L(!1),e._tag){case"iframe":e._wrapperState.listeners=[M.trapBubbledEvent(v.topLevelTypes.topLoad,"load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in $)$.hasOwnProperty(n)&&e._wrapperState.listeners.push(M.trapBubbledEvent(v.topLevelTypes[n],$[n],t));break;case"img":e._wrapperState.listeners=[M.trapBubbledEvent(v.topLevelTypes.topError,"error",t),M.trapBubbledEvent(v.topLevelTypes.topLoad,"load",t)];break;case"form":e._wrapperState.listeners=[M.trapBubbledEvent(v.topLevelTypes.topReset,"reset",t),M.trapBubbledEvent(v.topLevelTypes.topSubmit,"submit",t)]}}function p(){_.mountReadyWrapper(this)}function h(){T.postUpdateWrapper(this)}function m(e,t){return e.indexOf("-")>=0||null!=t.is}function f(e){!function(e){J.call(Z,e)||(X.test(e)||L(!1),Z[e]=!0)}(e),this._tag=e.toLowerCase(),this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._rootNodeID=null,this._wrapperState=null,this._topLevelWrapper=null,this._nodeWithLegacyProperties=null}var y=n(277),g=n(278),w=n(31),x=n(66),v=n(19),M=n(50),b=n(67),E=n(285),_=n(286),O=n(287),T=n(136),I=n(288),q=n(11),P=n(289),D=n(15),C=n(70),S=n(7),G=n(51),k=n(49),L=n(3),A=(n(69),n(22)),R=n(48),N=n(65),j=(n(137),n(75),n(6),M.deleteListener),B=M.listenTo,z=M.registrationNameModules,V={string:!0,number:!0},U=A({children:null}),F=A({style:null}),W=A({__html:null}),H=1,$={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},Y={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},X=(S({menuitem:!0},Y),/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/),Z={},J={}.hasOwnProperty;f.displayName="ReactDOMComponent",f.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e;var o=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(d,this);break;case"button":o=E.getNativeProps(this,o,n);break;case"input":_.mountWrapper(this,o,n),o=_.getNativeProps(this,o,n);break;case"option":O.mountWrapper(this,o,n),o=O.getNativeProps(this,o,n);break;case"select":T.mountWrapper(this,o,n),o=T.getNativeProps(this,o,n),n=T.processChildContext(this,o,n);break;case"textarea":I.mountWrapper(this,o,n),o=I.getNativeProps(this,o,n)}l(0,o);var r;if(t.useCreateElement){var a=n[q.ownerDocumentContextKey].createElement(this._currentElement.type);x.setAttributeForID(a,this._rootNodeID),q.getID(a),this._updateDOMProperties({},o,t,a),this._createInitialChildren(t,o,n,a),r=a}else{var i=this._createOpenTagMarkupAndPutListeners(t,o),s=this._createContentMarkup(t,o,n);r=!s&&Y[this._tag]?i+"/>":i+">"+s+"</"+this._currentElement.type+">"}switch(this._tag){case"input":t.getReactMountReady().enqueue(p,this);case"button":case"select":case"textarea":o.autoFocus&&t.getReactMountReady().enqueue(y.focusDOMComponent,this)}return r},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(null!=r)if(z.hasOwnProperty(o))r&&c(this._rootNodeID,o,r,e);else{o===F&&(r&&(r=this._previousStyleCopy=S({},t.style)),r=g.createMarkupForStyles(r));var a=null;null!=this._tag&&m(this._tag,t)?o!==U&&(a=x.createMarkupForCustomAttribute(o,r)):a=x.createMarkupForProperty(o,r),a&&(n+=" "+a)}}if(e.renderToStaticMarkup)return n;return n+" "+x.createMarkupForID(this._rootNodeID)},_createContentMarkup:function(e,t,n){var o="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(o=r.__html);else{var a=V[typeof t.children]?t.children:null,i=null!=a?null:t.children;if(null!=a)o=k(a);else if(null!=i){o=this.mountChildren(i,e,n).join("")}}return K[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(e,t,n,o){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&R(o,r.__html);else{var a=V[typeof t.children]?t.children:null,i=null!=a?null:t.children;if(null!=a)N(o,a);else if(null!=i)for(var s=this.mountChildren(i,e,n),l=0;l<s.length;l++)o.appendChild(s[l])}},receiveComponent:function(e,t,n){var o=this._currentElement;this._currentElement=e,this.updateComponent(t,o,e,n)},updateComponent:function(e,t,n,o){var r=t.props,a=this._currentElement.props;switch(this._tag){case"button":r=E.getNativeProps(this,r),a=E.getNativeProps(this,a);break;case"input":_.updateWrapper(this),r=_.getNativeProps(this,r),a=_.getNativeProps(this,a);break;case"option":r=O.getNativeProps(this,r),a=O.getNativeProps(this,a);break;case"select":r=T.getNativeProps(this,r),a=T.getNativeProps(this,a);break;case"textarea":I.updateWrapper(this),r=I.getNativeProps(this,r),a=I.getNativeProps(this,a)}l(0,a),this._updateDOMProperties(r,a,e,null),this._updateDOMChildren(r,a,e,o),!G&&this._nodeWithLegacyProperties&&(this._nodeWithLegacyProperties.props=a),"select"===this._tag&&e.getReactMountReady().enqueue(h,this)},_updateDOMProperties:function(e,t,n,o){var r,a,i;for(r in e)if(!t.hasOwnProperty(r)&&e.hasOwnProperty(r))if(r===F){var s=this._previousStyleCopy;for(a in s)s.hasOwnProperty(a)&&((i=i||{})[a]="");this._previousStyleCopy=null}else z.hasOwnProperty(r)?e[r]&&j(this._rootNodeID,r):(w.properties[r]||w.isCustomAttribute(r))&&(o||(o=q.getNode(this._rootNodeID)),x.deleteValueForProperty(o,r));for(r in t){var l=t[r],u=r===F?this._previousStyleCopy:e[r];if(t.hasOwnProperty(r)&&l!==u)if(r===F)if(l?l=this._previousStyleCopy=S({},l):this._previousStyleCopy=null,u){for(a in u)!u.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||((i=i||{})[a]="");for(a in l)l.hasOwnProperty(a)&&u[a]!==l[a]&&((i=i||{})[a]=l[a])}else i=l;else z.hasOwnProperty(r)?l?c(this._rootNodeID,r,l,n):u&&j(this._rootNodeID,r):m(this._tag,t)?(o||(o=q.getNode(this._rootNodeID)),r===U&&(l=null),x.setValueForAttribute(o,r,l)):(w.properties[r]||w.isCustomAttribute(r))&&(o||(o=q.getNode(this._rootNodeID)),null!=l?x.setValueForProperty(o,r,l):x.deleteValueForProperty(o,r))}i&&(o||(o=q.getNode(this._rootNodeID)),g.setValueForStyles(o,i))},_updateDOMChildren:function(e,t,n,o){var r=V[typeof e.children]?e.children:null,a=V[typeof t.children]?t.children:null,i=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,l=null!=r?null:e.children,c=null!=a?null:t.children,u=null!=r||null!=i,d=null!=a||null!=s;null!=l&&null==c?this.updateChildren(null,n,o):u&&!d&&this.updateTextContent(""),null!=a?r!==a&&this.updateTextContent(""+a):null!=s?i!==s&&this.updateMarkup(""+s):null!=c&&this.updateChildren(c,n,o)},unmountComponent:function(){switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":var e=this._wrapperState.listeners;if(e)for(var t=0;t<e.length;t++)e[t].remove();break;case"input":_.unmountWrapper(this);break;case"html":case"head":case"body":L(!1)}if(this.unmountChildren(),M.deleteAllListeners(this._rootNodeID),b.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null,this._wrapperState=null,this._nodeWithLegacyProperties){this._nodeWithLegacyProperties._reactInternalComponent=null,this._nodeWithLegacyProperties=null}},getPublicInstance:function(){if(!this._nodeWithLegacyProperties){var e=q.getNode(this._rootNodeID);e._reactInternalComponent=this,e.getDOMNode=o,e.isMounted=r,e.setState=a,e.replaceState=a,e.forceUpdate=a,e.setProps=i,e.replaceProps=s,e.props=this._currentElement.props,this._nodeWithLegacyProperties=e}return this._nodeWithLegacyProperties}},D.measureMethods(f,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),S(f.prototype,f.Mixin,P.Mixin),e.exports=f},function(e,t,n){"use strict";var o=n(11),r=n(78),a=n(132),i={Mixin:{componentDidMount:function(){this.props.autoFocus&&a(r(this))}},focusDOMComponent:function(){a(o.getNode(this._rootNodeID))}};e.exports=i},function(e,t,n){"use strict";var o=n(133),r=n(10),a=n(15),i=(n(279),n(281)),s=n(282),l=n(284),c=(n(6),l(function(e){return s(e)})),u=!1,d="cssFloat";if(r.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(d="styleFloat")}var h={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];null!=o&&(t+=c(n)+":",t+=i(n,o)+";")}return t||null},setValueForStyles:function(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var a=i(r,t[r]);if("float"===r&&(r=d),a)n[r]=a;else{var s=u&&o.shorthandPropertyExpansions[r];if(s)for(var l in s)n[l]="";else n[r]=""}}}};a.measureMethods(h,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),e.exports=h},function(e,t,n){"use strict";var o=n(280),r=/^-ms-/;e.exports=function(e){return o(e.replace(r,"ms-"))}},function(e,t,n){"use strict";var o=/-(.)/g;e.exports=function(e){return e.replace(o,function(e,t){return t.toUpperCase()})}},function(e,t,n){"use strict";var o=n(133).isUnitlessNumber;e.exports=function(e,t){return null==t||"boolean"==typeof t||""===t?"":isNaN(t)||0===t||o.hasOwnProperty(e)&&o[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}},function(e,t,n){"use strict";var o=n(283),r=/^ms-/;e.exports=function(e){return o(e).replace(r,"-ms-")}},function(e,t,n){"use strict";var o=/([A-Z])/g;e.exports=function(e){return e.replace(o,"-$1").toLowerCase()}},function(e,t,n){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){"use strict";var o={onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0},r={getNativeProps:function(e,t,n){if(!t.disabled)return t;var r={};for(var a in t)t.hasOwnProperty(a)&&!o[a]&&(r[a]=t[a]);return r}};e.exports=r},function(e,t,n){"use strict";function o(){this._rootNodeID&&d.updateWrapper(this)}var r=n(68),a=n(79),i=n(11),s=n(16),l=n(7),c=n(3),u={},d={getNativeProps:function(e,t,n){var o=a.getValue(t),r=a.getChecked(t);return l({},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=o?o:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:t.defaultChecked||!1,initialValue:null!=n?n:null,onChange:function(e){var t=this._currentElement.props,n=a.executeOnChange(t,e);s.asap(o,this);var r=t.name;if("radio"===t.type&&null!=r){for(var l=i.getNode(this._rootNodeID),d=l;d.parentNode;)d=d.parentNode;for(var p=d.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),h=0;h<p.length;h++){var m=p[h];if(m!==l&&m.form===l.form){var f=i.getID(m);f||c(!1);var y=u[f];y||c(!1),s.asap(o,y)}}}return n}.bind(e)}},mountReadyWrapper:function(e){u[e._rootNodeID]=e},unmountWrapper:function(e){delete u[e._rootNodeID]},updateWrapper:function(e){var t=e._currentElement.props,n=t.checked;null!=n&&r.updatePropertyByID(e._rootNodeID,"checked",n||!1);var o=a.getValue(t);null!=o&&r.updatePropertyByID(e._rootNodeID,"value",""+o)}};e.exports=d},function(e,t,n){"use strict";var o=n(135),r=n(136),a=n(7),i=(n(6),r.valueContextKey),s={mountWrapper:function(e,t,n){var o=n[i],r=null;if(null!=o)if(r=!1,Array.isArray(o)){for(var a=0;a<o.length;a++)if(""+o[a]==""+t.value){r=!0;break}}else r=""+o==""+t.value;e._wrapperState={selected:r}},getNativeProps:function(e,t,n){var r=a({selected:void 0,children:void 0},t);null!=e._wrapperState.selected&&(r.selected=e._wrapperState.selected);var i="";return o.forEach(t.children,function(e){null!=e&&("string"!=typeof e&&"number"!=typeof e||(i+=e))}),i&&(r.children=i),r}};e.exports=s},function(e,t,n){"use strict";function o(){this._rootNodeID&&c.updateWrapper(this)}var r=n(79),a=n(68),i=n(16),s=n(7),l=n(3),c=(n(6),{getNativeProps:function(e,t,n){null!=t.dangerouslySetInnerHTML&&l(!1);return s({},t,{defaultValue:void 0,value:void 0,children:e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=t.defaultValue,a=t.children;null!=a&&(null!=n&&l(!1),Array.isArray(a)&&(a.length<=1||l(!1),a=a[0]),n=""+a),null==n&&(n="");var s=r.getValue(t);e._wrapperState={initialValue:""+(null!=s?s:n),onChange:function(e){var t=this._currentElement.props,n=r.executeOnChange(t,e);return i.asap(o,this),n}.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=r.getValue(t);null!=n&&a.updatePropertyByID(e._rootNodeID,"value",""+n)}});e.exports=c},function(e,t,n){"use strict";function o(){d.length&&(a.processChildrenUpdates(d,p),r())}function r(){d.length=0,p.length=0}var a=n(73),i=n(115),s=(n(18),n(25)),l=n(290),c=n(291),u=0,d=[],p=[],h={Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return l.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,o){var r;return r=c(t),l.updateChildren(e,r,n,o)},mountChildren:function(e,t,n){var o=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=o;var r=[],a=0;for(var i in o)if(o.hasOwnProperty(i)){var l=o[i],c=this._rootNodeID+i,u=s.mountComponent(l,c,t,n);l._mountIndex=a++,r.push(u)}return r},updateTextContent:function(e){u++;var t=!0;try{var n=this._renderedChildren;l.unmountChildren(n);for(var a in n)n.hasOwnProperty(a)&&this._unmountChild(n[a]);this.setTextContent(e),t=!1}finally{--u||(t?r():o())}},updateMarkup:function(e){u++;var t=!0;try{var n=this._renderedChildren;l.unmountChildren(n);for(var a in n)n.hasOwnProperty(a)&&this._unmountChildByName(n[a],a);this.setMarkup(e),t=!1}finally{--u||(t?r():o())}},updateChildren:function(e,t,n){u++;var a=!0;try{this._updateChildren(e,t,n),a=!1}finally{--u||(a?r():o())}},_updateChildren:function(e,t,n){var o=this._renderedChildren,r=this._reconcilerUpdateChildren(o,e,t,n);if(this._renderedChildren=r,r||o){var a,i=0,s=0;for(a in r)if(r.hasOwnProperty(a)){var l=o&&o[a],c=r[a];l===c?(this.moveChild(l,s,i),i=Math.max(l._mountIndex,i),l._mountIndex=s):(l&&(i=Math.max(l._mountIndex,i),this._unmountChild(l)),this._mountChildByNameAtIndex(c,a,s,t,n)),s++}for(a in o)!o.hasOwnProperty(a)||r&&r.hasOwnProperty(a)||this._unmountChild(o[a])}},unmountChildren:function(){var e=this._renderedChildren;l.unmountChildren(e),this._renderedChildren=null},moveChild:function(e,t,n){e._mountIndex<n&&function(e,t,n){d.push({parentID:e,parentNode:null,type:i.MOVE_EXISTING,markupIndex:null,content:null,fromIndex:t,toIndex:n})}(this._rootNodeID,e._mountIndex,t)},createChild:function(e,t){!function(e,t,n){d.push({parentID:e,parentNode:null,type:i.INSERT_MARKUP,markupIndex:p.push(t)-1,content:null,fromIndex:null,toIndex:n})}(this._rootNodeID,t,e._mountIndex)},removeChild:function(e){!function(e,t){d.push({parentID:e,parentNode:null,type:i.REMOVE_NODE,markupIndex:null,content:null,fromIndex:t,toIndex:null})}(this._rootNodeID,e._mountIndex)},setTextContent:function(e){!function(e,t){d.push({parentID:e,parentNode:null,type:i.TEXT_CONTENT,markupIndex:null,content:t,fromIndex:null,toIndex:null})}(this._rootNodeID,e)},setMarkup:function(e){!function(e,t){d.push({parentID:e,parentNode:null,type:i.SET_MARKUP,markupIndex:null,content:t,fromIndex:null,toIndex:null})}(this._rootNodeID,e)},_mountChildByNameAtIndex:function(e,t,n,o,r){var a=this._rootNodeID+t,i=s.mountComponent(e,a,o,r);e._mountIndex=n,this.createChild(e,i)},_unmountChild:function(e){this.removeChild(e),e._mountIndex=null}}};e.exports=h},function(e,t,n){"use strict";function o(e,t,n){var o=void 0===e[n];null!=t&&o&&(e[n]=a(t,null))}var r=n(25),a=n(72),i=n(74),s=n(81),l=(n(6),{instantiateChildren:function(e,t,n){if(null==e)return null;var r={};return s(e,o,r),r},updateChildren:function(e,t,n,o){if(!t&&!e)return null;var s;for(s in t)if(t.hasOwnProperty(s)){var l=e&&e[s],c=l&&l._currentElement,u=t[s];if(null!=l&&i(c,u))r.receiveComponent(l,u,n,o),t[s]=l;else{l&&r.unmountComponent(l,s);var d=a(u,null);t[s]=d}}for(s in e)!e.hasOwnProperty(s)||t&&t.hasOwnProperty(s)||r.unmountComponent(e[s]);return t},unmountChildren:function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];r.unmountComponent(n)}}});e.exports=l},function(e,t,n){"use strict";function o(e,t,n){var o=e,r=void 0===o[n];r&&null!=t&&(o[n]=t)}var r=n(81);n(6);e.exports=function(e){if(null==e)return e;var t={};return r(e,o,t),t}},function(e,t,n){"use strict";function o(e){var t=u.getID(e),n=c.getReactRootIDFromNodeID(t),o=u.findReactContainerForID(n);return u.getFirstReactDOM(o)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function a(e){!function(e){var t=u.getFirstReactDOM(h(e.nativeEvent))||window,n=t;for(;n;)e.ancestors.push(n),n=o(n);for(var r=0;r<e.ancestors.length;r++){t=e.ancestors[r];var a=u.getID(t)||"";f._handleTopLevel(e.topLevelType,t,a,e.nativeEvent,h(e.nativeEvent))}}(e)}var i=n(138),s=n(10),l=n(21),c=n(32),u=n(11),d=n(16),p=n(7),h=n(76),m=n(293);p(r.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),l.addPoolingTo(r,l.twoArgumentPooler);var f={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:s.canUseDOM?window:null,setHandleTopLevel:function(e){f._handleTopLevel=e},setEnabled:function(e){f._enabled=!!e},isEnabled:function(){return f._enabled},trapBubbledEvent:function(e,t,n){var o=n;return o?i.listen(o,t,f.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){var o=n;return o?i.capture(o,t,f.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=function(e){e(m(window))}.bind(null,e);i.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(f._enabled){var n=r.getPooled(e,t);try{d.batchedUpdates(a,n)}finally{r.release(n)}}}};e.exports=f},function(e,t,n){"use strict";e.exports=function(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t,n){"use strict";var o=n(31),r=n(37),a=n(73),i=n(139),s=n(126),l=n(50),c=n(127),u=n(15),d=n(123),p=n(16),h={Component:a.injection,Class:i.injection,DOMProperty:o.injection,EmptyComponent:s.injection,EventPluginHub:r.injection,EventEmitter:l.injection,NativeComponent:c.injection,Perf:u.injection,RootIndex:d.injection,Updates:p.injection};e.exports=h},function(e,t,n){"use strict";function o(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=r.getPooled(null),this.useCreateElement=!e&&s.useCreateElement}var r=n(71),a=n(21),i=n(50),s=n(121),l=n(142),c=n(52),u=n(7),d=[{initialize:l.getSelectionInformation,close:l.restoreSelection},{initialize:function(){var e=i.isEnabled();return i.setEnabled(!1),e},close:function(e){i.setEnabled(e)}},{initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}}],p={getTransactionWrappers:function(){return d},getReactMountReady:function(){return this.reactMountReady},destructor:function(){r.release(this.reactMountReady),this.reactMountReady=null}};u(o.prototype,c.Mixin,p),a.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){return e===n&&t===o}var r=n(10),a=n(297),i=n(129),s=r.canUseDOM&&"selection"in document&&!("getSelection"in window),l={getOffsets:s?function(e){var t=document.selection.createRange(),n=t.text.length,o=t.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",t);var r=o.text.length;return{start:r,end:r+n}}:function(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,r=t.anchorOffset,a=t.focusNode,i=t.focusOffset,s=t.getRangeAt(0);try{s.startContainer.nodeType,s.endContainer.nodeType}catch(e){return null}var l=o(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)?0:s.toString().length,c=s.cloneRange();c.selectNodeContents(e),c.setEnd(s.startContainer,s.startOffset);var u=o(c.startContainer,c.startOffset,c.endContainer,c.endOffset)?0:c.toString().length,d=u+l,p=document.createRange();p.setStart(n,r),p.setEnd(a,i);var h=p.collapsed;return{start:h?d:u,end:h?u:d}},setOffsets:s?function(e,t){var n,o,r=document.selection.createRange().duplicate();void 0===t.end?o=n=t.start:t.start>t.end?(n=t.end,o=t.start):(n=t.start,o=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}:function(e,t){if(window.getSelection){var n=window.getSelection(),o=e[i()].length,r=Math.min(t.start,o),s=void 0===t.end?r:Math.min(t.end,o);if(!n.extend&&r>s){var l=s;s=r,r=l}var c=a(e,r),u=a(e,s);if(c&&u){var d=document.createRange();d.setStart(c.node,c.offset),n.removeAllRanges(),r>s?(n.addRange(d),n.extend(u.node,u.offset)):(d.setEnd(u.node,u.offset),n.addRange(d))}}}};e.exports=l},function(e,t,n){"use strict";function o(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}e.exports=function(e,t){for(var n=o(e),a=0,i=0;n;){if(3===n.nodeType){if(i=a+n.textContent.length,a<=t&&i>=t)return{node:n,offset:t-a};a=i}n=o(r(n))}}},function(e,t,n){"use strict";function o(e,t){if(x||null==y||y!==c())return null;var n=function(e){if("selectionStart"in e&&s.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}(y);if(!w||!p(w,n)){w=n;var o=l.getPooled(f.select,g,e,t);return o.type="select",o.target=y,a.accumulateTwoPhaseDispatches(o),o}return null}var r=n(19),a=n(40),i=n(10),s=n(142),l=n(26),c=n(143),u=n(130),d=n(22),p=n(137),h=r.topLevelTypes,m=i.canUseDOM&&"documentMode"in document&&document.documentMode<=11,f={select:{phasedRegistrationNames:{bubbled:d({onSelect:null}),captured:d({onSelectCapture:null})},dependencies:[h.topBlur,h.topContextMenu,h.topFocus,h.topKeyDown,h.topMouseDown,h.topMouseUp,h.topSelectionChange]}},y=null,g=null,w=null,x=!1,v=!1,M=d({onSelect:null}),b={eventTypes:f,extractEvents:function(e,t,n,r,a){if(!v)return null;switch(e){case h.topFocus:(u(t)||"true"===t.contentEditable)&&(y=t,g=n,w=null);break;case h.topBlur:y=null,g=null,w=null;break;case h.topMouseDown:x=!0;break;case h.topContextMenu:case h.topMouseUp:return x=!1,o(r,a);case h.topSelectionChange:if(m)break;case h.topKeyDown:case h.topKeyUp:return o(r,a)}return null},didPutListener:function(e,t,n){t===M&&(v=!0)}};e.exports=b},function(e,t,n){"use strict";var o=Math.pow(2,53),r={createReactRootIndex:function(){return Math.ceil(Math.random()*o)}};e.exports=r},function(e,t,n){"use strict";var o=n(19),r=n(138),a=n(40),i=n(11),s=n(301),l=n(26),c=n(302),u=n(303),d=n(55),p=n(305),h=n(306),m=n(41),f=n(307),y=n(17),g=n(82),w=n(3),x=n(22),v=o.topLevelTypes,M={abort:{phasedRegistrationNames:{bubbled:x({onAbort:!0}),captured:x({onAbortCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:x({onBlur:!0}),captured:x({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:x({onCanPlay:!0}),captured:x({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:x({onCanPlayThrough:!0}),captured:x({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:x({onClick:!0}),captured:x({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:x({onContextMenu:!0}),captured:x({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:x({onCopy:!0}),captured:x({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:x({onCut:!0}),captured:x({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:x({onDoubleClick:!0}),captured:x({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:x({onDrag:!0}),captured:x({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:x({onDragEnd:!0}),captured:x({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:x({onDragEnter:!0}),captured:x({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:x({onDragExit:!0}),captured:x({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:x({onDragLeave:!0}),captured:x({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:x({onDragOver:!0}),captured:x({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:x({onDragStart:!0}),captured:x({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:x({onDrop:!0}),captured:x({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:x({onDurationChange:!0}),captured:x({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:x({onEmptied:!0}),captured:x({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:x({onEncrypted:!0}),captured:x({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:x({onEnded:!0}),captured:x({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:x({onError:!0}),captured:x({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:x({onFocus:!0}),captured:x({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:x({onInput:!0}),captured:x({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:x({onKeyDown:!0}),captured:x({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:x({onKeyPress:!0}),captured:x({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:x({onKeyUp:!0}),captured:x({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:x({onLoad:!0}),captured:x({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:x({onLoadedData:!0}),captured:x({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:x({onLoadedMetadata:!0}),captured:x({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:x({onLoadStart:!0}),captured:x({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:x({onMouseDown:!0}),captured:x({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:x({onMouseMove:!0}),captured:x({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:x({onMouseOut:!0}),captured:x({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:x({onMouseOver:!0}),captured:x({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:x({onMouseUp:!0}),captured:x({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:x({onPaste:!0}),captured:x({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:x({onPause:!0}),captured:x({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:x({onPlay:!0}),captured:x({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:x({onPlaying:!0}),captured:x({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:x({onProgress:!0}),captured:x({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:x({onRateChange:!0}),captured:x({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:x({onReset:!0}),captured:x({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:x({onScroll:!0}),captured:x({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:x({onSeeked:!0}),captured:x({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:x({onSeeking:!0}),captured:x({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:x({onStalled:!0}),captured:x({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:x({onSubmit:!0}),captured:x({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:x({onSuspend:!0}),captured:x({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:x({onTimeUpdate:!0}),captured:x({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:x({onTouchCancel:!0}),captured:x({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:x({onTouchEnd:!0}),captured:x({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:x({onTouchMove:!0}),captured:x({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:x({onTouchStart:!0}),captured:x({onTouchStartCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:x({onVolumeChange:!0}),captured:x({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:x({onWaiting:!0}),captured:x({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:x({onWheel:!0}),captured:x({onWheelCapture:!0})}}},b={topAbort:M.abort,topBlur:M.blur,topCanPlay:M.canPlay,topCanPlayThrough:M.canPlayThrough,topClick:M.click,topContextMenu:M.contextMenu,topCopy:M.copy,topCut:M.cut,topDoubleClick:M.doubleClick,topDrag:M.drag,topDragEnd:M.dragEnd,topDragEnter:M.dragEnter,topDragExit:M.dragExit,topDragLeave:M.dragLeave,topDragOver:M.dragOver,topDragStart:M.dragStart,topDrop:M.drop,topDurationChange:M.durationChange,topEmptied:M.emptied,topEncrypted:M.encrypted,topEnded:M.ended,topError:M.error,topFocus:M.focus,topInput:M.input,topKeyDown:M.keyDown,topKeyPress:M.keyPress,topKeyUp:M.keyUp,topLoad:M.load,topLoadedData:M.loadedData,topLoadedMetadata:M.loadedMetadata,topLoadStart:M.loadStart,topMouseDown:M.mouseDown,topMouseMove:M.mouseMove,topMouseOut:M.mouseOut,topMouseOver:M.mouseOver,topMouseUp:M.mouseUp,topPaste:M.paste,topPause:M.pause,topPlay:M.play,topPlaying:M.playing,topProgress:M.progress,topRateChange:M.rateChange,topReset:M.reset,topScroll:M.scroll,topSeeked:M.seeked,topSeeking:M.seeking,topStalled:M.stalled,topSubmit:M.submit,topSuspend:M.suspend,topTimeUpdate:M.timeUpdate,topTouchCancel:M.touchCancel,topTouchEnd:M.touchEnd,topTouchMove:M.touchMove,topTouchStart:M.touchStart,topVolumeChange:M.volumeChange,topWaiting:M.waiting,topWheel:M.wheel};for(var E in b)b[E].dependencies=[E];var _=x({onClick:null}),O={},T={eventTypes:M,extractEvents:function(e,t,n,o,r){var i=b[e];if(!i)return null;var y;switch(e){case v.topAbort:case v.topCanPlay:case v.topCanPlayThrough:case v.topDurationChange:case v.topEmptied:case v.topEncrypted:case v.topEnded:case v.topError:case v.topInput:case v.topLoad:case v.topLoadedData:case v.topLoadedMetadata:case v.topLoadStart:case v.topPause:case v.topPlay:case v.topPlaying:case v.topProgress:case v.topRateChange:case v.topReset:case v.topSeeked:case v.topSeeking:case v.topStalled:case v.topSubmit:case v.topSuspend:case v.topTimeUpdate:case v.topVolumeChange:case v.topWaiting:y=l;break;case v.topKeyPress:if(0===g(o))return null;case v.topKeyDown:case v.topKeyUp:y=u;break;case v.topBlur:case v.topFocus:y=c;break;case v.topClick:if(2===o.button)return null;case v.topContextMenu:case v.topDoubleClick:case v.topMouseDown:case v.topMouseMove:case v.topMouseOut:case v.topMouseOver:case v.topMouseUp:y=d;break;case v.topDrag:case v.topDragEnd:case v.topDragEnter:case v.topDragExit:case v.topDragLeave:case v.topDragOver:case v.topDragStart:case v.topDrop:y=p;break;case v.topTouchCancel:case v.topTouchEnd:case v.topTouchMove:case v.topTouchStart:y=h;break;case v.topScroll:y=m;break;case v.topWheel:y=f;break;case v.topCopy:case v.topCut:case v.topPaste:y=s}y||w(!1);var x=y.getPooled(i,n,o,r);return a.accumulateTwoPhaseDispatches(x),x},didPutListener:function(e,t,n){if(t===_){var o=i.getNode(e);O[e]||(O[e]=r.listen(o,"click",y))}},willDeleteListener:function(e,t){t===_&&(O[e].remove(),delete O[e])}};e.exports=T},function(e,t,n){"use strict";function o(e,t,n,o){r.call(this,e,t,n,o)}var r=n(26),a={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};r.augmentClass(o,a),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){r.call(this,e,t,n,o)}var r=n(41);r.augmentClass(o,{relatedTarget:null}),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){r.call(this,e,t,n,o)}var r=n(41),a=n(82),i={key:n(304),location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:n(77),charCode:function(e){return"keypress"===e.type?a(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?a(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};r.augmentClass(o,i),e.exports=o},function(e,t,n){"use strict";var o=n(82),r={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=function(e){if(e.key){var t=r[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}},function(e,t,n){"use strict";function o(e,t,n,o){r.call(this,e,t,n,o)}var r=n(55);r.augmentClass(o,{dataTransfer:null}),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){r.call(this,e,t,n,o)}var r=n(41),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:n(77)};r.augmentClass(o,a),e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o){r.call(this,e,t,n,o)}var r=n(55);r.augmentClass(o,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),e.exports=o},function(e,t,n){"use strict";var o=n(31).injection.MUST_USE_ATTRIBUTE,r={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},a={Properties:{clipPath:o,cx:o,cy:o,d:o,dx:o,dy:o,fill:o,fillOpacity:o,fontFamily:o,fontSize:o,fx:o,fy:o,gradientTransform:o,gradientUnits:o,markerEnd:o,markerMid:o,markerStart:o,offset:o,opacity:o,patternContentUnits:o,patternUnits:o,points:o,preserveAspectRatio:o,r:o,rx:o,ry:o,spreadMethod:o,stopColor:o,stopOpacity:o,stroke:o,strokeDasharray:o,strokeLinecap:o,strokeOpacity:o,strokeWidth:o,textAnchor:o,transform:o,version:o,viewBox:o,x1:o,x2:o,x:o,xlinkActuate:o,xlinkArcrole:o,xlinkHref:o,xlinkRole:o,xlinkShow:o,xlinkTitle:o,xlinkType:o,xmlBase:o,xmlLang:o,xmlSpace:o,y1:o,y2:o,y:o},DOMAttributeNamespaces:{xlinkActuate:r.xlink,xlinkArcrole:r.xlink,xlinkHref:r.xlink,xlinkRole:r.xlink,xlinkShow:r.xlink,xlinkTitle:r.xlink,xlinkType:r.xlink,xmlBase:r.xml,xmlLang:r.xml,xmlSpace:r.xml},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space"}};e.exports=a},function(e,t,n){"use strict";var o=n(11);e.exports=o.renderSubtreeIntoContainer},function(e,t,n){"use strict";var o=n(128),r=n(311),a=n(83);o.inject();var i={renderToString:r.renderToString,renderToStaticMarkup:r.renderToStaticMarkup,version:a};e.exports=i},function(e,t,n){"use strict";var o=n(131),r=n(12),a=n(32),i=n(124),s=n(312),l=n(313),c=n(16),u=n(39),d=n(72),p=n(3);e.exports={renderToString:function(e){r.isValidElement(e)||p(!1);var t;try{c.injection.injectBatchingStrategy(s);var n=a.createReactRootID();return(t=l.getPooled(!1)).perform(function(){var o=d(e,null).mountComponent(n,t,u);return i.addChecksumToMarkup(o)},null)}finally{l.release(t),c.injection.injectBatchingStrategy(o)}},renderToStaticMarkup:function(e){r.isValidElement(e)||p(!1);var t;try{c.injection.injectBatchingStrategy(s);var n=a.createReactRootID();return(t=l.getPooled(!0)).perform(function(){return d(e,null).mountComponent(n,t,u)},null)}finally{l.release(t),c.injection.injectBatchingStrategy(o)}}}},function(e,t,n){"use strict";e.exports={isBatchingUpdates:!1,batchedUpdates:function(e){}}},function(e,t,n){"use strict";function o(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=a.getPooled(null),this.useCreateElement=!1}var r=n(21),a=n(71),i=n(52),s=n(7),l=[{initialize:function(){this.reactMountReady.reset()},close:n(17)}],c={getTransactionWrappers:function(){return l},getReactMountReady:function(){return this.reactMountReady},destructor:function(){a.release(this.reactMountReady),this.reactMountReady=null}};s(o.prototype,i.Mixin,c),r.addPoolingTo(o),e.exports=o},function(e,t,n){"use strict";var o=n(135),r=n(140),a=n(139),i=n(315),s=n(12),l=(n(144),n(134)),c=n(83),u=n(7),d=n(317),p=s.createElement,h=s.createFactory,m=s.cloneElement,f={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:d},Component:r,createElement:p,cloneElement:m,isValidElement:s.isValidElement,PropTypes:l,createClass:a.createClass,createFactory:h,createMixin:function(e){return e},DOM:i,version:c,__spread:u};e.exports=f},function(e,t,n){"use strict";var o=n(12),r=(n(144),n(316)({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul",var:"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},function(e){return o.createFactory(e)}));e.exports=r},function(e,t,n){"use strict";var o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!e)return null;var r={};for(var a in e)o.call(e,a)&&(r[a]=t.call(n,e[a],a,e));return r}},function(e,t,n){"use strict";var o=n(12),r=n(3);e.exports=function(e){return o.isValidElement(e)||r(!1),e}},function(e,t,n){"use strict";n(7),n(6);e.exports=function(e,t,n,o,r){return r}},function(e,t,n){"use strict";function o({value:e,onUpdate:t,configs:n,sourceElement:o,internalState:r,state:i}){return a.a.createElement("table",{className:"PropertyEnum",style:u.a.tableStyle},a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",{style:u.a.firstTdStyle},a.a.createElement(c.g,null,n.label)),a.a.createElement("td",null,a.a.createElement(c.i,{value:e,onChange:e=>(e=>n.hook?n.hook(e,o,r,i).then(e=>t(e)):t(e))(e.target.value)},Object(l.Seq)(n.values).entrySeq().map(([e,t])=>a.a.createElement("option",{key:e,value:e},t)))))))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(8),c=(n.n(l),n(14)),u=n(23);o.propTypes={value:s.a.any.isRequired,onUpdate:s.a.func.isRequired,configs:s.a.object.isRequired,sourceElement:s.a.object,internalState:s.a.object,state:s.a.object.isRequired}},function(e,t,n){"use strict";function o({value:e,onUpdate:t,onValid:n,configs:o,sourceElement:r,internalState:i,state:s}){return a.a.createElement("table",{className:"PropertyNumber",style:c.a.tableStyle},a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",{style:c.a.firstTdStyle},a.a.createElement(l.g,null,o.label)),a.a.createElement("td",null,a.a.createElement(l.h,{value:e,onChange:e=>(e=>{let n=parseFloat(e);return isNaN(n)&&(n=0),o.hook?o.hook(n,r,i,s).then(e=>t(e)):t(n)})(e.target.value),onValid:n,min:o.min,max:o.max})))))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(14),c=n(23);o.propTypes={value:s.a.any.isRequired,onUpdate:s.a.func.isRequired,onValid:s.a.func,configs:s.a.object.isRequired,sourceElement:s.a.object,internalState:s.a.object,state:s.a.object.isRequired}},function(e,t,n){var o=n(33),r=n(27),a=n(147),i=r.test(i=Object.keys)&&i,s=i?function(e){return o(e)?i(e):[]}:a;e.exports=s},function(e,t,n){var o=n(148),r=n(332);e.exports=function(e,t,n){var a=-1,i=e?e.length:0;if(t=t&&void 0===n?t:o(t,n,3),"number"==typeof i)for(;++a<i&&!1!==t(e[a],a,e););else r(e,t);return e}},function(e,t,n){var o=n(324),r=(n(27),n(149));e.exports=function(e,t){return arguments.length>2?o(e,17,r(arguments,2),null,t):o(e,1,null,null,t)}},function(e,t,n){function o(e,t,n,l,c,u){var d=1&t,p=4&t,h=16&t,m=32&t;if(!(2&t)&&!i(e))throw new TypeError;h&&!n.length&&(t&=-17,h=n=!1),m&&!l.length&&(t&=-33,m=l=!1);var f=e&&e.__bindData__;if(f&&!0!==f)return f=f.slice(),!d||1&f[1]||(f[4]=c),!d&&1&f[1]&&(t|=8),!p||4&f[1]||(f[5]=u),h&&s.apply(f[2]||(f[2]=[]),n),m&&s.apply(f[3]||(f[3]=[]),l),f[1]|=t,o.apply(null,f);return(1==t||17===t?r:a)([e,t,n,l,c,u])}var r=n(325),a=n(327),i=n(329),s=[].push;e.exports=o},function(e,t,n){var o=n(326),r=n(33),a=n(87),i=[].push;e.exports=function(e){function t(){if(s){var e=s.slice();i.apply(e,arguments)}if(this instanceof t){var a=o(n.prototype),c=n.apply(a,e||arguments);return r(c)?c:a}return n.apply(l,e||arguments)}var n=e[0],s=e[2],l=e[4];return a(t,e),t}},function(e,t,n){(function(t){function o(e,t){return r(e)?a(e):{}}var r=n(33),a=(n(86),n(27).test(a=Object.create)&&a);a||(o=function(){function e(){}return function(n){if(r(n)){e.prototype=n;var o=new e;e.prototype=null}return o||t.Object()}}()),e.exports=o}).call(t,n(34))},function(e,t,n){function o(e){function t(){var e=m?p:this;if(u){var i=u.slice();l.apply(i,arguments)}if((d||y)&&(i||(i=s(arguments)),d&&l.apply(i,d),y&&i.length<h))return c|=16,o([n,g?c:-4&c,i,null,p,h]);if(i||(i=arguments),f&&(n=e[w]),this instanceof t){e=r(n.prototype);var x=n.apply(e,i);return a(x)?x:e}return n.apply(e,i)}var n=e[0],c=e[1],u=e[2],d=e[3],p=e[4],h=e[5],m=1&c,f=2&c,y=4&c,g=8&c,w=n;return i(t,e),t}var r=n(328),a=n(33),i=n(87),s=n(149),l=[].push;e.exports=o},function(e,t,n){(function(t){function o(e,t){return r(e)?a(e):{}}var r=n(33),a=(n(86),n(27).test(a=Object.create)&&a);a||(o=function(){function e(){}return function(n){if(r(n)){e.prototype=n;var o=new e;e.prototype=null}return o||t.Object()}}()),e.exports=o}).call(t,n(34))},function(e,t){e.exports=function(e){return"function"==typeof e}},function(e,t){e.exports=function(e){return e}},function(e,t,n){(function(t){var o=n(27),r={};r.funcDecomp=!o.test(t.WinRTError)&&/\bthis\b/.test(function(){return this}),r.funcNames="string"==typeof Function.name,e.exports=r}).call(t,n(34))},function(e,t,n){var o=n(148),r=n(333),a=n(85);e.exports=function(e,t,n){var i,s=e,l=s;if(!s)return l;if(!a[typeof s])return l;t=t&&void 0===n?t:o(t,n,3);for(var c=-1,u=a[typeof s]&&r(s),d=u?u.length:0;++c<d;)if(i=u[c],!1===t(s[i],i,e))return l;return l}},function(e,t,n){var o=n(33),r=n(27),a=n(147),i=r.test(i=Object.keys)&&i,s=i?function(e){return o(e)?i(e):[]}:a;e.exports=s},function(e,t){var n,o;n={mm:{name:{singular:"Millimeter",plural:"Millimeters"},to_anchor:.001},cm:{name:{singular:"Centimeter",plural:"Centimeters"},to_anchor:.01},m:{name:{singular:"Meter",plural:"Meters"},to_anchor:1},km:{name:{singular:"Kilometer",plural:"Kilometers"},to_anchor:1e3}},o={in:{name:{singular:"Inch",plural:"Inches"},to_anchor:1/12},yd:{name:{singular:"Yard",plural:"Yards"},to_anchor:3},"ft-us":{name:{singular:"US Survey Foot",plural:"US Survey Feet"},to_anchor:1.000002},ft:{name:{singular:"Foot",plural:"Feet"},to_anchor:1},mi:{name:{singular:"Mile",plural:"Miles"},to_anchor:5280}},e.exports={metric:n,imperial:o,_anchors:{metric:{unit:"m",ratio:3.28084},imperial:{unit:"ft",ratio:1/3.28084}}}},function(e,t){var n,o;n={mm2:{name:{singular:"Square Millimeter",plural:"Square Millimeters"},to_anchor:1e-6},cm2:{name:{singular:"Centimeter",plural:"Centimeters"},to_anchor:1e-4},m2:{name:{singular:"Square Meter",plural:"Square Meters"},to_anchor:1},ha:{name:{singular:"Hectare",plural:"Hectares"},to_anchor:1e4},km2:{name:{singular:"Square Kilometer",plural:"Square Kilometers"},to_anchor:1e6}},o={in2:{name:{singular:"Square Inch",plural:"Square Inches"},to_anchor:1/144},yd2:{name:{singular:"Square Yard",plural:"Square Yards"},to_anchor:9},ft2:{name:{singular:"Square Foot",plural:"Square Feet"},to_anchor:1},ac:{name:{singular:"Acre",plural:"Acres"},to_anchor:43560},mi2:{name:{singular:"Square Mile",plural:"Square Miles"},to_anchor:27878400}},e.exports={metric:n,imperial:o,_anchors:{metric:{unit:"m2",ratio:10.7639},imperial:{unit:"ft2",ratio:1/10.7639}}}},function(e,t){var n,o;n={mcg:{name:{singular:"Microgram",plural:"Micrograms"},to_anchor:1e-6},mg:{name:{singular:"Milligram",plural:"Milligrams"},to_anchor:.001},g:{name:{singular:"Gram",plural:"Grams"},to_anchor:1},kg:{name:{singular:"Kilogram",plural:"Kilograms"},to_anchor:1e3}},o={oz:{name:{singular:"Ounce",plural:"Ounces"},to_anchor:1/16},lb:{name:{singular:"Pound",plural:"Pounds"},to_anchor:1}},e.exports={metric:n,imperial:o,_anchors:{metric:{unit:"g",ratio:1/453.592},imperial:{unit:"lb",ratio:453.592}}}},function(e,t){var n,o;n={mm3:{name:{singular:"Cubic Millimeter",plural:"Cubic Millimeters"},to_anchor:1e-6},cm3:{name:{singular:"Cubic Centimeter",plural:"Cubic Centimeters"},to_anchor:.001},ml:{name:{singular:"Millilitre",plural:"Millilitres"},to_anchor:.001},cl:{name:{singular:"Centilitre",plural:"Centilitres"},to_anchor:.01},dl:{name:{singular:"Decilitre",plural:"Decilitres"},to_anchor:.1},l:{name:{singular:"Litre",plural:"Litres"},to_anchor:1},kl:{name:{singular:"Kilolitre",plural:"Kilolitres"},to_anchor:1e3},m3:{name:{singular:"Cubic meter",plural:"Cubic meters"},to_anchor:1e3},km3:{name:{singular:"Cubic kilometer",plural:"Cubic kilometers"},to_anchor:1e12},krm:{name:{singular:"Matsked",plural:"Matskedar"},to_anchor:.001},tsk:{name:{singular:"Tesked",plural:"Teskedar"},to_anchor:.005},msk:{name:{singular:"Matsked",plural:"Matskedar"},to_anchor:.015},kkp:{name:{singular:"Kaffekopp",plural:"Kaffekoppar"},to_anchor:.15},glas:{name:{singular:"Glas",plural:"Glas"},to_anchor:.2},kanna:{name:{singular:"Kanna",plural:"Kannor"},to_anchor:2.617}},o={tsp:{name:{singular:"Teaspoon",plural:"Teaspoons"},to_anchor:1/6},Tbs:{name:{singular:"Tablespoon",plural:"Tablespoons"},to_anchor:.5},in3:{name:{singular:"Cubic inch",plural:"Cubic inches"},to_anchor:.55411},"fl-oz":{name:{singular:"Fluid Ounce",plural:"Fluid Ounces"},to_anchor:1},cup:{name:{singular:"Cup",plural:"Cups"},to_anchor:8},pnt:{name:{singular:"Pint",plural:"Pints"},to_anchor:16},qt:{name:{singular:"Quart",plural:"Quarts"},to_anchor:32},gal:{name:{singular:"Gallon",plural:"Gallons"},to_anchor:128},ft3:{name:{singular:"Cubic foot",plural:"Cubic feet"},to_anchor:957.506},yd3:{name:{singular:"Cubic yard",plural:"Cubic yards"},to_anchor:25852.7}},e.exports={metric:n,imperial:o,_anchors:{metric:{unit:"l",ratio:33.8140226},imperial:{unit:"fl-oz",ratio:1/33.8140226}}}},function(e,t){var n;n={ea:{name:{singular:"Each",plural:"Each"},to_anchor:1},dz:{name:{singular:"Dozen",plural:"Dozens"},to_anchor:12}},e.exports={metric:n,imperial:{},_anchors:{metric:{unit:"ea",ratio:1}}}},function(e,t){var n,o;n={C:{name:{singular:"degree Celsius",plural:"degrees Celsius"},to_anchor:1,anchor_shift:0},K:{name:{singular:"degree Kelvin",plural:"degrees Kelvin"},to_anchor:1,anchor_shift:273.15}},o={F:{name:{singular:"degree Fahrenheit",plural:"degrees Fahrenheit"},to_anchor:1},R:{name:{singular:"degree Rankine",plural:"degrees Rankine"},to_anchor:1,anchor_shift:459.67}},e.exports={metric:n,imperial:o,_anchors:{metric:{unit:"C",transform:function(e){return e/(5/9)+32}},imperial:{unit:"F",transform:function(e){return 5/9*(e-32)}}}}},function(e,t){var n;n={ns:{name:{singular:"Nanosecond",plural:"Nanoseconds"},to_anchor:1e-9},mu:{name:{singular:"Microsecond",plural:"Microseconds"},to_anchor:1e-6},ms:{name:{singular:"Millisecond",plural:"Milliseconds"},to_anchor:.001},s:{name:{singular:"Second",plural:"Seconds"},to_anchor:1},min:{name:{singular:"Minute",plural:"Minutes"},to_anchor:60},h:{name:{singular:"Hour",plural:"Hours"},to_anchor:3600},d:{name:{singular:"Day",plural:"Days"},to_anchor:86400},week:{name:{singular:"Week",plural:"Weeks"},to_anchor:604800},month:{name:{singular:"Month",plural:"Months"},to_anchor:2629800},year:{name:{singular:"Year",plural:"Years"},to_anchor:31557600}},e.exports={metric:n,_anchors:{metric:{unit:"s",ratio:1}}}},function(e,t){var n,o;n={b:{name:{singular:"Bit",plural:"Bits"},to_anchor:1},Kb:{name:{singular:"Kilobit",plural:"Kilobits"},to_anchor:1024},Mb:{name:{singular:"Megabit",plural:"Megabits"},to_anchor:1048576},Gb:{name:{singular:"Gigabit",plural:"Gigabits"},to_anchor:1073741824},Tb:{name:{singular:"Terabit",plural:"Terabits"},to_anchor:1099511627776}},o={B:{name:{singular:"Byte",plural:"Bytes"},to_anchor:1},KB:{name:{singular:"Kilobyte",plural:"Kilobytes"},to_anchor:1024},MB:{name:{singular:"Megabyte",plural:"Megabytes"},to_anchor:1048576},GB:{name:{singular:"Gigabyte",plural:"Gigabytes"},to_anchor:1073741824},TB:{name:{singular:"Terabyte",plural:"Terabytes"},to_anchor:1099511627776}},e.exports={bits:n,bytes:o,_anchors:{bits:{unit:"b",ratio:1/8},bytes:{unit:"B",ratio:8}}}},function(e,t){var n;n={ppm:{name:{singular:"Part-per Million",plural:"Parts-per Million"},to_anchor:1},ppb:{name:{singular:"Part-per Billion",plural:"Parts-per Billion"},to_anchor:.001},ppt:{name:{singular:"Part-per Trillion",plural:"Parts-per Trillion"},to_anchor:1e-6},ppq:{name:{singular:"Part-per Quadrillion",plural:"Parts-per Quadrillion"},to_anchor:1e-9}},e.exports={metric:n,imperial:{},_anchors:{metric:{unit:"ppm",ratio:1e-6}}}},function(e,t){var n,o;n={"m/s":{name:{singular:"Metre per second",plural:"Metres per second"},to_anchor:3.6},"km/h":{name:{singular:"Kilometre per hour",plural:"Kilometres per hour"},to_anchor:1}},o={"m/h":{name:{singular:"Mile per hour",plural:"Miles per hour"},to_anchor:1},knot:{name:{singular:"Knot",plural:"Knots"},to_anchor:1.150779},"ft/s":{name:{singular:"Foot per second",plural:"Feet per second"},to_anchor:.681818}},e.exports={metric:n,imperial:o,_anchors:{metric:{unit:"km/h",ratio:1/1.609344},imperial:{unit:"m/h",ratio:1.609344}}}},function(e,t){var n,o;n={Pa:{name:{singular:"pascal",plural:"pascals"},to_anchor:.001},kPa:{name:{singular:"kilopascal",plural:"kilopascals"},to_anchor:1},MPa:{name:{singular:"megapascal",plural:"megapascals"},to_anchor:1e3},hPa:{name:{singular:"hectopascal",plural:"hectopascals"},to_anchor:.1},bar:{name:{singular:"bar",plural:"bar"},to_anchor:100},torr:{name:{singular:"torr",plural:"torr"},to_anchor:101325/76e4}},o={psi:{name:{singular:"pound per square inch",plural:"pounds per square inch"},to_anchor:.001},ksi:{name:{singular:"kilopound per square inch",plural:"kilopound per square inch"},to_anchor:1}},e.exports={metric:n,imperial:o,_anchors:{metric:{unit:"kPa",ratio:.00014503768078},imperial:{unit:"psi",ratio:6894.76000045014}}}},function(e,t){var n;n={A:{name:{singular:"Ampere",plural:"Amperes"},to_anchor:1},mA:{name:{singular:"Milliampere",plural:"Milliamperes"},to_anchor:.001},kA:{name:{singular:"Kiloampere",plural:"Kiloamperes"},to_anchor:1e3}},e.exports={metric:n,_anchors:{metric:{unit:"A",ratio:1}}}},function(e,t){var n;n={V:{name:{singular:"Volt",plural:"Volts"},to_anchor:1},mV:{name:{singular:"Millivolt",plural:"Millivolts"},to_anchor:.001},kV:{name:{singular:"Kilovolt",plural:"Kilovolts"},to_anchor:1e3}},e.exports={metric:n,_anchors:{metric:{unit:"V",ratio:1}}}},function(e,t){var n;n={W:{name:{singular:"Watt",plural:"Watts"},to_anchor:1},mW:{name:{singular:"Milliwatt",plural:"Milliwatts"},to_anchor:.001},kW:{name:{singular:"Kilowatt",plural:"Kilowatts"},to_anchor:1e3},MW:{name:{singular:"Megawatt",plural:"Megawatts"},to_anchor:1e6},GW:{name:{singular:"Gigawatt",plural:"Gigawatts"},to_anchor:1e9}},e.exports={metric:n,_anchors:{metric:{unit:"W",ratio:1}}}},function(e,t){var n;n={VAR:{name:{singular:"Volt-Ampere Reactive",plural:"Volt-Amperes Reactive"},to_anchor:1},mVAR:{name:{singular:"Millivolt-Ampere Reactive",plural:"Millivolt-Amperes Reactive"},to_anchor:.001},kVAR:{name:{singular:"Kilovolt-Ampere Reactive",plural:"Kilovolt-Amperes Reactive"},to_anchor:1e3},MVAR:{name:{singular:"Megavolt-Ampere Reactive",plural:"Megavolt-Amperes Reactive"},to_anchor:1e6},GVAR:{name:{singular:"Gigavolt-Ampere Reactive",plural:"Gigavolt-Amperes Reactive"},to_anchor:1e9}},e.exports={metric:n,_anchors:{metric:{unit:"VAR",ratio:1}}}},function(e,t){var n;n={VA:{name:{singular:"Volt-Ampere",plural:"Volt-Amperes"},to_anchor:1},mVA:{name:{singular:"Millivolt-Ampere",plural:"Millivolt-Amperes"},to_anchor:.001},kVA:{name:{singular:"Kilovolt-Ampere",plural:"Kilovolt-Amperes"},to_anchor:1e3},MVA:{name:{singular:"Megavolt-Ampere",plural:"Megavolt-Amperes"},to_anchor:1e6},GVA:{name:{singular:"Gigavolt-Ampere",plural:"Gigavolt-Amperes"},to_anchor:1e9}},e.exports={metric:n,_anchors:{metric:{unit:"VA",ratio:1}}}},function(e,t){var n;n={Wh:{name:{singular:"Watt-hour",plural:"Watt-hours"},to_anchor:3600},mWh:{name:{singular:"Milliwatt-hour",plural:"Milliwatt-hours"},to_anchor:3.6},kWh:{name:{singular:"Kilowatt-hour",plural:"Kilowatt-hours"},to_anchor:36e5},MWh:{name:{singular:"Megawatt-hour",plural:"Megawatt-hours"},to_anchor:36e8},GWh:{name:{singular:"Gigawatt-hour",plural:"Gigawatt-hours"},to_anchor:36e11},J:{name:{singular:"Joule",plural:"Joules"},to_anchor:1},kJ:{name:{singular:"Kilojoule",plural:"Kilojoules"},to_anchor:1e3}},e.exports={metric:n,_anchors:{metric:{unit:"J",ratio:1}}}},function(e,t){var n;n={VARh:{name:{singular:"Volt-Ampere Reactive Hour",plural:"Volt-Amperes Reactive Hour"},to_anchor:1},mVARh:{name:{singular:"Millivolt-Ampere Reactive Hour",plural:"Millivolt-Amperes Reactive Hour"},to_anchor:.001},kVARh:{name:{singular:"Kilovolt-Ampere Reactive Hour",plural:"Kilovolt-Amperes Reactive Hour"},to_anchor:1e3},MVARh:{name:{singular:"Megavolt-Ampere Reactive Hour",plural:"Megavolt-Amperes Reactive Hour"},to_anchor:1e6},GVARh:{name:{singular:"Gigavolt-Ampere Reactive Hour",plural:"Gigavolt-Amperes Reactive Hour"},to_anchor:1e9}},e.exports={metric:n,_anchors:{metric:{unit:"VARh",ratio:1}}}},function(e,t){var n,o;n={"mm3/s":{name:{singular:"Cubic Millimeter per second",plural:"Cubic Millimeters per second"},to_anchor:1e-6},"cm3/s":{name:{singular:"Cubic Centimeter per second",plural:"Cubic Centimeters per second"},to_anchor:.001},"ml/s":{name:{singular:"Millilitre per second",plural:"Millilitres per second"},to_anchor:.001},"cl/s":{name:{singular:"Centilitre per second",plural:"Centilitres per second"},to_anchor:.01},"dl/s":{name:{singular:"Decilitre per second",plural:"Decilitres per second"},to_anchor:.1},"l/s":{name:{singular:"Litre per second",plural:"Litres per second"},to_anchor:1},"l/min":{name:{singular:"Litre per minute",plural:"Litres per minute"},to_anchor:1/60},"l/h":{name:{singular:"Litre per hour",plural:"Litres per hour"},to_anchor:1/3600},"kl/s":{name:{singular:"Kilolitre per second",plural:"Kilolitres per second"},to_anchor:1e3},"kl/min":{name:{singular:"Kilolitre per minute",plural:"Kilolitres per minute"},to_anchor:50/3},"kl/h":{name:{singular:"Kilolitre per hour",plural:"Kilolitres per hour"},to_anchor:5/18},"m3/s":{name:{singular:"Cubic meter per second",plural:"Cubic meters per second"},to_anchor:1e3},"m3/min":{name:{singular:"Cubic meter per minute",plural:"Cubic meters per minute"},to_anchor:50/3},"m3/h":{name:{singular:"Cubic meter per hour",plural:"Cubic meters per hour"},to_anchor:5/18},"km3/s":{name:{singular:"Cubic kilometer per second",plural:"Cubic kilometers per second"},to_anchor:1e12}},o={"tsp/s":{name:{singular:"Teaspoon per second",plural:"Teaspoons per second"},to_anchor:1/6},"Tbs/s":{name:{singular:"Tablespoon per second",plural:"Tablespoons per second"},to_anchor:.5},"in3/s":{name:{singular:"Cubic inch per second",plural:"Cubic inches per second"},to_anchor:.55411},"in3/min":{name:{singular:"Cubic inch per minute",plural:"Cubic inches per minute"},to_anchor:.55411/60},"in3/h":{name:{singular:"Cubic inch per hour",plural:"Cubic inches per hour"},to_anchor:.55411/3600},"fl-oz/s":{name:{singular:"Fluid Ounce per second",plural:"Fluid Ounces per second"},to_anchor:1},"fl-oz/min":{name:{singular:"Fluid Ounce per minute",plural:"Fluid Ounces per minute"},to_anchor:1/60},"fl-oz/h":{name:{singular:"Fluid Ounce per hour",plural:"Fluid Ounces per hour"},to_anchor:1/3600},"cup/s":{name:{singular:"Cup per second",plural:"Cups per second"},to_anchor:8},"pnt/s":{name:{singular:"Pint per second",plural:"Pints per second"},to_anchor:16},"pnt/min":{name:{singular:"Pint per minute",plural:"Pints per minute"},to_anchor:4/15},"pnt/h":{name:{singular:"Pint per hour",plural:"Pints per hour"},to_anchor:1/225},"qt/s":{name:{singular:"Quart per second",plural:"Quarts per second"},to_anchor:32},"gal/s":{name:{singular:"Gallon per second",plural:"Gallons per second"},to_anchor:128},"gal/min":{name:{singular:"Gallon per minute",plural:"Gallons per minute"},to_anchor:32/15},"gal/h":{name:{singular:"Gallon per hour",plural:"Gallons per hour"},to_anchor:8/225},"ft3/s":{name:{singular:"Cubic foot per second",plural:"Cubic feet per second"},to_anchor:957.506},"ft3/min":{name:{singular:"Cubic foot per minute",plural:"Cubic feet per minute"},to_anchor:957.506/60},"ft3/h":{name:{singular:"Cubic foot per hour",plural:"Cubic feet per hour"},to_anchor:957.506/3600},"yd3/s":{name:{singular:"Cubic yard per second",plural:"Cubic yards per second"},to_anchor:25852.7},"yd3/min":{name:{singular:"Cubic yard per minute",plural:"Cubic yards per minute"},to_anchor:25852.7/60},"yd3/h":{name:{singular:"Cubic yard per hour",plural:"Cubic yards per hour"},to_anchor:25852.7/3600}},e.exports={metric:n,imperial:o,_anchors:{metric:{unit:"l/s",ratio:33.8140227},imperial:{unit:"fl-oz/s",ratio:1/33.8140227}}}},function(e,t,n){"use strict";function o({value:e,onUpdate:t,configs:n,sourceElement:o,internalState:r,state:i}){return a.a.createElement("table",{className:"PropertyToggle",style:c.a.tableStyle},a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",{style:c.a.firstTdStyle},a.a.createElement(l.g,null,n.label)),a.a.createElement("td",null,a.a.createElement(l.a,{onClick:a=>(e=>n.hook?n.hook(e,o,r,i).then(e=>t(e)):t(e))(!e),size:"small"},n.actionName)))))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(14),c=n(23);o.propTypes={value:s.a.any.isRequired,onUpdate:s.a.func.isRequired,configs:s.a.object.isRequired,sourceElement:s.a.object,internalState:s.a.object,state:s.a.object.isRequired}},function(e,t,n){"use strict";function o({value:e,onUpdate:t,configs:n,sourceElement:o,internalState:r,state:i}){return a.a.createElement("table",{className:"PropertyCheckbox",style:c.a.tableStyle},a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",{style:c.a.firstTdStyle},a.a.createElement(l.g,null,n.label)),a.a.createElement("td",null,a.a.createElement("input",{style:u,type:"checkbox",checked:e,onChange:a=>(e=>n.hook?n.hook(e,o,r,i).then(e=>t(e)):t(e))(!e)})))))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(14),c=n(23);const u={margin:0};o.propTypes={value:s.a.any.isRequired,onUpdate:s.a.func.isRequired,configs:s.a.object.isRequired,sourceElement:s.a.object,internalState:s.a.object,state:s.a.object.isRequired}},function(e,t,n){"use strict";function o({value:e,onUpdate:t,configs:n,sourceElement:o,internalState:r,state:a}){return null}t.a=o;var r=n(0),a=(n.n(r),n(2)),i=n.n(a);o.propTypes={value:i.a.any.isRequired,onUpdate:i.a.func.isRequired,configs:i.a.object.isRequired,sourceElement:i.a.object,internalState:i.a.object,state:i.a.object.isRequired}},function(e,t,n){"use strict";function o({value:e,onUpdate:t,configs:n,sourceElement:o,internalState:r,state:i}){return a.a.createElement("table",{className:"PropertyReadOnly",style:c.a.tableStyle},a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",{style:c.a.firstTdStyle},a.a.createElement(l.g,null,n.label)),a.a.createElement("td",null,a.a.createElement("div",null,e)))))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(14),c=n(23);o.propTypes={value:s.a.any.isRequired,onUpdate:s.a.func.isRequired,configs:s.a.object.isRequired,sourceElement:s.a.object,internalState:s.a.object,state:s.a.object.isRequired}},function(e,t,n){"use strict";t.a={"New layer":"New layer","Elements on layer {0}":"Elements on layer {0}",Layers:"Layers","Project config":"Project config",width:"width",height:"height",Cancel:"Cancel",Save:"Save","Layer config":"Layer config",Name:"Name",opacity:"opacity",altitude:"altitude",order:"order",Delete:"Delete","New project":"New project","Save project":"Save project","Load project":"Load project","3D View":"3D View","2D View":"2D View","3D First Person":"3D First Person","Zoom in":"Zoom in","Zoom out":"Zoom out",Pan:"Pan","Undo (CTRL-Z)":"Undo (CTRL-Z)","Configure project":"Configure project","Open catalog":"Open catalog",Reset:"Reset",Unselect:"Unselect","Configure layer":"Configure layer","Delete layer":"Delete layer","Properties: [{0}] {1}":"Properties: [{0}] {1}","Get Screenshot":"Get Screenshot",Catalog:"Catalog",Rotation:"Rotation",Altitude:"Altitude","Would you want to start a new Project?":"Would you want to start a new Project?",Copy:"Copy",Paste:"Paste","Search Element":"Search Element","Last Selected":"Last Selected",Length:"Length",Lines:"Lines",Holes:"Holes",Items:"Items",Areas:"Areas","Snap to Point":"Snap to Point","Snap to Line":"Snap to Line","Snap to Segment":"Snap to Segment","Snap to Grid":"Snap to Grid","Mouse X Coordinate":"Mouse X Coordinate","Mouse Y Coordinate":"Mouse Y Coordinate","Scene Zoom Level":"Scene Zoom Level"}},function(e,t,n){"use strict";t.a={"New layer":"Nuovo livello","Elements on layer {0}":"Elementi nel livello {0}",Layers:"Livelli","Project config":"Configurazione progetto",width:"Larghezza",height:"Altezza",Cancel:"Annulla",Save:"Salva","Layer config":"Configurazione livello",Name:"Nome",opacity:"Opacità",altitude:"Quota",order:"Ordine",Delete:"Elimina","New project":"Nuovo progetto","Save project":"Salva progetto","Load project":"Carica progetto","3D View":"Vista 3D","2D View":"Vista 2D","3D First Person":"3D Prima persona","Zoom in":"Ingrandisci","Zoom out":"Riduci",Pan:"Muovi","Undo (CTRL-Z)":"Annulla (CTRL-Z)","Configure project":"Configura progetto","Open catalog":"Apri catalogo",Reset:"Annulla",Unselect:"Deseleziona","Configure layer":"Configura livello","Delete layer":"Elimina livello","Properties: [{0}] {1}":"Proprietà: [{0}] {1}","Get Screenshot":"Cattura uno screenshot",Catalog:"Catalogo",Rotation:"Rotazione",Altitude:"Quota","Would you want to start a new Project?":"Vuoi iniziare un nuovo progetto?",Copy:"Copia",Paste:"Incolla","Search Element":"Cerca Elemento","Last Selected":"Ultimi Selezionati",Length:"Lunghezza",Lines:"Linee",Holes:"Buchi",Items:"Oggetti",Areas:"Aree","Snap to Point":"Snap al Punto","Snap to Line":"Snap alla Linea","Snap to Segment":"Snap al Segmento","Snap to Grid":"Snap alla Griglia","Mouse X Coordinate":"Coordinata X del Mouse","Mouse Y Coordinate":"Coordinata Y del Mouse","Scene Zoom Level":"Livello di Zoom della Scena"}},function(e,t,n){"use strict";t.a=function(e,t){return o.PROJECT_ACTIONS[t.type]?Object(r.e)(...arguments):o.VIEWER2D_ACTIONS[t.type]?Object(r.h)(...arguments):o.VIEWER3D_ACTIONS[t.type]?Object(r.i)(...arguments):o.ITEMS_ACTIONS[t.type]?Object(r.c)(...arguments):o.HOLE_ACTIONS[t.type]?Object(r.b)(...arguments):o.LINE_ACTIONS[t.type]?Object(r.d)(...arguments):o.AREA_ACTIONS[t.type]?Object(r.a)(...arguments):o.SCENE_ACTIONS[t.type]?Object(r.f)(...arguments):o.VERTEX_ACTIONS[t.type]?Object(r.g)(...arguments):e||a};var o=n(5),r=n(151);const a=new(n(42).State)},function(e,t,n){"use strict";var o=n(24),r=n(5);t.a=function(e,t){switch(t.type){case r.SELECT_AREA:return function(e,t,n){let r=e.scene;return r=r.merge({layers:r.layers.map(o.o),selectedLayer:t}),r=r.updateIn(["layers",t],e=>e.withMutations(e=>{let t=e.getIn(["areas",n]);Object(o.k)(e,"areas",n),t.vertices.forEach(t=>Object(o.k)(e,"vertices",t))})),e.merge({scene:r,sceneHistory:e.sceneHistory.push(r)})}(e,t.layerID,t.areaID);default:return e}}},function(e,t,n){"use strict";e.exports=n(362)},function(e,t,n){"use strict";function o(){return i(l)}var r=n(58),a=(n(153),n(365)),i=n(366),s=n(367),l=n(368)||0;e.exports=o,e.exports.generate=o,e.exports.seed=function(t){return r.seed(t),e.exports},e.exports.worker=function(t){return l=t,e.exports},e.exports.characters=function(e){return void 0!==e&&r.characters(e),r.shuffled()},e.exports.decode=a,e.exports.isValid=s},function(e,t,n){"use strict";var o=1;e.exports={nextValue:function(){return(o=(9301*o+49297)%233280)/233280},seed:function(e){o=e}}},function(e,t,n){"use strict";var o="object"==typeof window&&(window.crypto||window.msCrypto);e.exports=function(){if(!o||!o.getRandomValues)return 48&Math.floor(256*Math.random());var e=new Uint8Array(1);return o.getRandomValues(e),48&e[0]}},function(e,t,n){"use strict";var o=n(58);e.exports=function(e){var t=o.shuffled();return{version:15&t.indexOf(e.substr(0,1)),worker:15&t.indexOf(e.substr(1,1))}}},function(e,t,n){"use strict";var o,r,a=n(153),i=n(58),s=1459707606518,l=6;e.exports=function(e){var t="",n=Math.floor(.001*(Date.now()-s));return n===r?o++:(o=0,r=n),t+=a(i.lookup,l),t+=a(i.lookup,e),o>0&&(t+=a(i.lookup,o)),t+=a(i.lookup,n)}},function(e,t,n){"use strict";var o=n(58);e.exports=function(e){if(!e||"string"!=typeof e||e.length<6)return!1;for(var t=o.characters(),n=e.length,r=0;r<n;r++)if(-1===t.indexOf(e[r]))return!1;return!0}},function(e,t,n){"use strict";e.exports=0},function(e,t,n){"use strict";class o{static generateName(e,t){return t.substr(0,1).toUpperCase()+t.substr(1)}}t.a=o},function(e,t){function n(e){let t=[];for(let n=0;n<e;++n)t.push([]);return t}class o{constructor(e,t){this.u=e,this.v=t}}class r{constructor(e){this.count=0,this.subgraphs=[],this.time=0,this.V=e,this.E=0,this.adj=[],this.adj=n(e)}addEdge(e,t){this.adj[e].push(t),this.E++}_BCCUtil(e,t,n,r,a){t[e]=n[e]=++this.time,this.children=0,this.adj[e].forEach(i=>{if(-1==t[i]){if(this.children++,a[i]=e,r.push(new o(e,i)),this._BCCUtil(i,t,n,r,a),n[e]>n[i]&&(n[e]=n[i]),1==t[e]&&this.children>1||t[e]>1&&n[i]>=t[e]){let t=[];for(;r[r.length-1].u!=e||r[r.length-1].v!=i;)t.push(r[r.length-1]),r.splice(r.length-1,1);t.push(r[r.length-1]),this.subgraphs.push(t),t=[],r.splice(r.length-1,1),this.count++}}else i!=a[e]&&t[i]<n[e]&&(n[e]>t[i]&&(n[e]=t[i]),r.push(new o(e,i)))})}BCC(){let e=this.V,t=n(e),o=n(e),r=n(e),a=[];for(let n=0;n<e;n++)t[n]=-1,o[n]=-1,r[n]=-1;for(let n=0;n<e;n++){-1==t[n]&&this._BCCUtil(n,t,o,a,r);let e=0,i=[];for(;a.length>0;)e=1,i.push(a[a.length-1]),a.splice(a.length-1,1);1==e&&(this.subgraphs.push(i),i=[],this.count++)}}}e.exports=r},function(e,t){function n(e,t){let n=[];return e.forEach(e=>{n.push([]);let o=function(e){let t=new Set;return e.forEach(e=>{t.add(e.u),t.add(e.v)}),t}(e);o.forEach(e=>{t.adj[e].forEach(t=>{e<=t&&o.has(t)&&n[n.length-1].push([e,t])})})}),n}e.exports=n},function(e,t){function n(e,t){return(e%t+t)%t}function o(e,t){return e.map(function(n,o){var r=[];return t.forEach(function(t,a){var i,s;t[0]===o&&(i=t[1],s=1),t[1]===o&&(i=t[0],s=0),void 0!==i&&r.push({index:a,endpoint:i,angle:function(e,t){var n=function(e,t){return[e[0]-t[0],e[1]-t[1]]}(t,e);return Math.atan2(n[1],n[0])}(n,e[i]),edge:t,position:s})}),r.sort(function(e,t){return t.angle-e.angle}),r})}function r(e,t){var n,o;for(n=0;n<t.length;n+=1)if(t[n].color<2)return o=-1*t[n].direction,i(t,n,o),{edge:n,direction:o,position:-1===o?0:1}}function a(e,t,o,r){var a,i,s=e[r[t][o]],l=s.length;for(i=0;i<l;i+=1)if(s[i].index===t)return a=s[n(i+1,s.length)],{edge:a.index,vertex:a.endpoint,position:a.position,direction:a.position?1:-1}}function i(e,t,n){e[t].color+=1,e[t].direction=n}function s(e,t){var s=function(e,t){for(var s,l,c,u,d=function(e){return e.map(function(e){return{ev:e,color:0,direction:-1}})}(t),p=o(e,t),h=[],m=[],f=[],y=r(0,d);void 0!==y;){for(s=[t[y.edge][n(y.position+1,2)],t[y.edge][y.position]],l=[y.edge],c=[y.direction],u=a(p,y.edge,y.position,t);u.edge!==y.edge;)s.push(u.vertex),l.push(u.edge),c.push(u.direction),i(d,u.edge,u.direction),u=a(p,u.edge,u.position,t);m.push(l),h.push(s),f.push(c),y=r(0,d)}return{v_cycles:h,e_cycles:m,dir_e_cycles:f,ev_mapping:d}}(e,t),l=s.v_cycles,c=s.e_cycles;(function(e,t){var n,o,r,a=[];for(r=0;r<t.length;r+=1)n=t[r],o=e[r],(n.length<3||o[0]!==o[o.length-1])&&a.push(r);return a})(l,c).forEach(e=>{l.splice(e,1),c.splice(e,1)});var u=s.dir_e_cycles,d=s.e_cycles.map((n,o)=>n.map(function(n,r){var a,i;return u[o][r]>0>0?(a=t[n][0],i=t[n][1]):(a=t[n][1],i=t[n][0]),(e[i][0]-e[a][0])*(e[i][1]+e[a][1])})).map(e=>e.reduce((e,t)=>e+t)),p=d.filter(e=>e>0).length,h=p>=d.length-p?1:-1;return{v_cycles:s.v_cycles.filter((e,t)=>h*d[t]>0),e_cycles:s.e_cycles.filter((e,t)=>h*d[t]>0),ev_mapping:s.ev_mapping}}e.exports=s},function(e,t,n){"use strict";function o(e,t,n,o){let r=e.catalog,a=Object(c.nearestSnap)(e.snapElements,n,o,e.snapMask.merge({SNAP_SEGMENT:!0}));a&&({x:n,y:o}=a.point);let i=e.scene.updateIn(["layers",t],t=>t.withMutations(t=>{let i=t.getIn(["selected","holes"]).first();if(i&&(Object(l.n)(t,"holes",i),Object(l.g)(t,i)),a){let i,c=a.snap.related.get(0),u=t.getIn(["lines",c]),{x:d,y:p}=t.vertices.get(u.vertices.get(0)),{x:h,y:m}=t.vertices.get(u.vertices.get(1)),f=s.minVertex({x:d,y:p},{x:h,y:m}),y=s.maxVertex({x:d,y:p},{x:h,y:m}),g=r.factoryElement(e.drawingSupport.get("type"),{},{}).properties.get("width").get("length"),w=s.pointsDistance(d,p,h,m),x=Math.atan2(Math.abs(m-p),Math.abs(h-d)),v=(e=>{let t=Math.cos(e);return t<1e-7?0:t})(x),M=(e=>{let t=Math.sin(e);return t<1e-7?0:t})(x),b={x:f.x+g/2*v,y:f.y+g/2*M},E={x:f.x+w*v-g/2*v,y:f.y+w*M-g/2*M};n<b.x?i=s.pointPositionOnLineSegment(f.x,f.y,y.x,y.y,b.x,b.y):n>E.x?i=s.pointPositionOnLineSegment(f.x,f.y,y.x,y.y,E.x,E.y):n===b.x&&n===E.x?o<b.y?(i=s.pointPositionOnLineSegment(f.x,f.y,y.x,y.y,b.x,b.y),i=f.x===d&&f.y===p?i:1-i):o>E.y?(i=s.pointPositionOnLineSegment(f.x,f.y,y.x,y.y,E.x,E.y),i=f.x===d&&f.y===p?i:1-i):i=s.pointPositionOnLineSegment(d,p,h,m,n,o):i=s.pointPositionOnLineSegment(d,p,h,m,n,o);let{hole:_}=Object(l.a)(t,e.drawingSupport.get("type"),c,i,r);Object(l.k)(t,"holes",_.id)}}));return e.set("scene",i)}function r(e,t,n){let o=Object(c.nearestSnap)(e.snapElements,t,n,e.snapMask.merge({SNAP_SEGMENT:!0}));if(!o)return e;let{draggingSupport:r,scene:a}=e,i=r.get("layerID"),l=r.get("holeID"),u=(r.get("startPointX"),r.get("startPointY"),e.getIn(["scene","layers",i])),d=u.getIn(["holes",l]),p=u.getIn(["lines",d.line]),h=u.getIn(["vertices",p.vertices.get(0)]),m=u.getIn(["vertices",p.vertices.get(1)]);({x:t,y:n}=o.point);let f,y=s.minVertex(h,m),g=s.maxVertex(h,m),w=d.properties.get("width").get("length"),x=s.pointsDistance(h.x,h.y,m.x,m.y),v=Math.atan2(Math.abs(m.y-h.y),Math.abs(m.x-h.x)),M=(e=>{let t=Math.cos(e);return t<1e-7?0:t})(v),b=(e=>{let t=Math.sin(e);return t<1e-7?0:t})(v),E={x:y.x+w/2*M,y:y.y+w/2*b},_={x:y.x+x*M-w/2*M,y:y.y+x*b-w/2*b};return t<E.x?f=s.pointPositionOnLineSegment(y.x,y.y,g.x,g.y,E.x,E.y):t>_.x?f=s.pointPositionOnLineSegment(y.x,y.y,g.x,g.y,_.x,_.y):t===E.x&&t===_.x?n<E.y?(f=s.pointPositionOnLineSegment(y.x,y.y,g.x,g.y,E.x,E.y),f=y===h?f:1-f):n>_.y?(f=s.pointPositionOnLineSegment(y.x,y.y,g.x,g.y,_.x,_.y),f=y===h?f:1-f):(f=s.pointPositionOnLineSegment(y.x,y.y,g.x,g.y,t,n),f=y===h?f:1-f):f=s.pointPositionOnLineSegment(y.x,y.y,g.x,g.y,t,n),d=d.set("offset",f),e.merge({scene:a.mergeIn(["layers",i,"holes",l],d)})}var a=n(8),i=(n.n(a),n(5)),s=n(13),l=n(24),c=n(20);t.a=function(e,t){switch(t.type){case i.SELECT_TOOL_DRAWING_HOLE:return function(e,t){let n=(new a.List).withMutations(t=>{let{lines:n,vertices:o}=e.getIn(["scene","layers",e.scene.selectedLayer]);n.forEach(e=>{let{x:n,y:r}=o.get(e.vertices.get(0)),{x:a,y:i}=o.get(e.vertices.get(1));Object(c.addLineSegmentSnap)(t,n,r,a,i,20,1,e.id)})});return e.merge({mode:i.MODE_DRAWING_HOLE,snapElements:n,drawingSupport:Object(a.Map)({type:t})})}(e,t.sceneComponentType);case i.UPDATE_DRAWING_HOLE:return o(e,t.layerID,t.x,t.y);case i.END_DRAWING_HOLE:return function(e,t,n,r){e.catalog;let a=(e=o(e,t,n,r)).scene.updateIn(["layers",t],e=>Object(l.o)(e));return e.merge({scene:a,sceneHistory:e.sceneHistory.push(a)})}(e,t.layerID,t.x,t.y);case i.BEGIN_DRAGGING_HOLE:return function(e,t,n,o,r){let s=e.getIn(["scene","layers",t]),l=s.getIn(["holes",n]),u=s.getIn(["lines",l.line]),d=s.getIn(["vertices",u.vertices.get(0)]),p=s.getIn(["vertices",u.vertices.get(1)]),h=Object(c.addLineSegmentSnap)(Object(a.List)(),d.x,d.y,p.x,p.y,9999999,1,null);return e.merge({mode:i.MODE_DRAGGING_HOLE,snapElements:h,draggingSupport:Object(a.Map)({layerID:t,holeID:n,startPointX:o,startPointY:r})})}(e,t.layerID,t.holeID,t.x,t.y);case i.UPDATE_DRAGGING_HOLE:return r(e,t.x,t.y);case i.END_DRAGGING_HOLE:return function(e,t,n){return(e=r(e,t,n)).merge({mode:i.MODE_IDLE,sceneHistory:e.sceneHistory.push(e.scene)})}(e,t.x,t.y);case i.SELECT_HOLE:return function(e,t,n){let o=e.scene;return o=o.merge({layers:o.layers.map(l.o),selectedLayer:t}),o=o.updateIn(["layers",t],e=>e.withMutations(e=>{Object(l.k)(e,"holes",n)})),e.merge({scene:o,sceneHistory:e.sceneHistory.push(o)})}(e,t.layerID,t.holeID);default:return e}}},function(e,t,n){"use strict";function o(e,t,n,o){let{drawingSupport:r,catalog:a}=e,i=e.scene.updateIn(["layers",t],e=>e.withMutations(e=>{if(r.has("currentID"))e.updateIn(["items",r.get("currentID")],e=>e.merge({x:n,y:o}));else{let{item:t}=Object(l.b)(e,r.get("type"),n,o,200,100,0,a);Object(l.k)(e,"items",t.id),r=r.set("currentID",t.id)}}));return e.merge({scene:i,drawingSupport:r})}function r(e,t,n){let{draggingSupport:o,scene:r}=e,a=o.get("layerID"),i=o.get("itemID"),s=o.get("startPointX"),l=o.get("startPointY"),c=o.get("originalX"),u=o.get("originalY"),d=s-t,p=l-n,h=r.getIn(["layers",a,"items",i]);return h=h.merge({x:c-d,y:u-p}),e.merge({scene:r.mergeIn(["layers",a,"items",i],h)})}function a(e,t,n){let{rotatingSupport:o,scene:r}=e,a=o.get("layerID"),i=o.get("itemID"),s=e.getIn(["scene","layers",a,"items",i]),l=t-s.x,c=n-s.y,u=180*Math.atan2(c,l)/Math.PI-90;return-5<u&&u<5&&(u=0),-95<u&&u<-85&&(u=-90),-185<u&&u<-175&&(u=-180),85<u&&u<90&&(u=90),-270<u&&u<-265&&(u=90),s=s.merge({rotation:u}),e.merge({scene:r.mergeIn(["layers",a,"items",i],s)})}var i=n(8),s=(n.n(i),n(5)),l=n(24);n(13);t.a=function(e,t){switch(t.type){case s.SELECT_ITEM:return function(e,t,n){let o=e.scene;return o=o.merge({layers:o.layers.map(l.o),selectedLayer:t}),o=o.updateIn(["layers",t],e=>e.withMutations(e=>{Object(l.k)(e,"items",n)})),e.merge({scene:o,sceneHistory:e.sceneHistory.push(o)})}(e,t.layerID,t.itemID);case s.SELECT_TOOL_DRAWING_ITEM:return function(e,t){return e.merge({mode:s.MODE_DRAWING_ITEM,drawingSupport:Object(i.Map)({type:t})})}(e,t.sceneComponentType);case s.UPDATE_DRAWING_ITEM:return o(e,t.layerID,t.x,t.y);case s.END_DRAWING_ITEM:return function(e,t,n,r){e.catalog;let a=(e=o(e,t,n,r)).scene.updateIn(["layers",t],e=>Object(l.o)(e));return e.merge({scene:a,sceneHistory:e.sceneHistory.push(a),drawingSupport:Object(i.Map)({type:e.drawingSupport.get("type")})})}(e,t.layerID,t.x,t.y);case s.BEGIN_DRAGGING_ITEM:return function(e,t,n,o,r){let a=e.getIn(["scene","layers",t,"items",n]);return e.merge({mode:s.MODE_DRAGGING_ITEM,draggingSupport:Object(i.Map)({layerID:t,itemID:n,startPointX:o,startPointY:r,originalX:a.x,originalY:a.y})})}(e,t.layerID,t.itemID,t.x,t.y);case s.UPDATE_DRAGGING_ITEM:return r(e,t.x,t.y);case s.END_DRAGGING_ITEM:return function(e,t,n){return(e=r(e,t,n)).merge({mode:s.MODE_IDLE,sceneHistory:e.sceneHistory.push(e.scene)})}(e,t.x,t.y);case s.BEGIN_ROTATING_ITEM:return function(e,t,n,o,r){return e.getIn(["scene","layers",t,"items",n]),e.merge({mode:s.MODE_ROTATING_ITEM,rotatingSupport:Object(i.Map)({layerID:t,itemID:n})})}(e,t.layerID,t.itemID,t.x,t.y);case s.UPDATE_ROTATING_ITEM:return a(e,t.x,t.y);case s.END_ROTATING_ITEM:return function(e,t,n){return(e=a(e,t,n)).merge({mode:s.MODE_IDLE,sceneHistory:e.sceneHistory.push(e.scene)})}(e,t.x,t.y);default:return e}}},function(e,t,n){"use strict";var o=n(8),r=(n.n(o),n(5)),a=n(13),i=n(24),s=n(20),l=n(88);t.a=function(e,t){switch(t.type){case r.SELECT_TOOL_DRAWING_LINE:return function(e,t){return e.merge({mode:r.MODE_WAITING_DRAWING_LINE,drawingSupport:Object(o.Map)({type:t})})}(e,t.sceneComponentType);case r.BEGIN_DRAWING_LINE:return function(e,t,n,c){let u=e.catalog,d=Object(l.sceneSnapElements)(e.scene,new o.List,e.snapMask),p=null;e.snapMask&&!e.snapMask.isEmpty()&&((p=Object(s.nearestSnap)(d,n,c,e.snapMask))&&({x:n,y:c}=p.point),d=d.withMutations(e=>{let t,o,r;({a:t,b:o,c:r}=a.horizontalLine(c)),Object(s.addLineSnap)(e,t,o,r,10,3,null),({a:t,b:o,c:r}=a.verticalLine(n)),Object(s.addLineSnap)(e,t,o,r,10,3,null)}));let h=e.get("drawingSupport").set("layerID",t),m=e.scene.updateIn(["layers",t],e=>e.withMutations(e=>{Object(i.o)(e);let{line:t}=Object(i.c)(e,h.get("type"),n,c,n,c,u);Object(i.k)(e,"lines",t.id),Object(i.k)(e,"vertices",t.vertices.get(0)),Object(i.k)(e,"vertices",t.vertices.get(1))}));return e.merge({mode:r.MODE_DRAWING_LINE,scene:m,snapElements:d,activeSnapElement:p?p.snap:null,drawingSupport:h})}(e,t.layerID,t.x,t.y);case r.UPDATE_DRAWING_LINE:return function(e,t,n){let o=null;e.snapMask&&!e.snapMask.isEmpty()&&(o=Object(s.nearestSnap)(e.snapElements,t,n,e.snapMask))&&({x:t,y:n}=o.point);let r=e.getIn(["drawingSupport","layerID"]),a=e.scene.updateIn(["layers",r],e=>e.withMutations(e=>{let o,r=e.getIn(["selected","lines"]).first();return({layer:e,vertex:o}=Object(i.j)(e,r,1,t,n)),Object(i.k)(e,"vertices",o.id),e}));return e.merge({scene:a,activeSnapElement:o?o.snap:null})}(e,t.x,t.y);case r.END_DRAWING_LINE:return function(e,t,n){let a=e.catalog;if(e.snapMask&&!e.snapMask.isEmpty()){let o=Object(s.nearestSnap)(e.snapElements,t,n,e.snapMask);o&&({x:t,y:n}=o.point)}let l=e.getIn(["drawingSupport","layerID"]),c=e.scene.updateIn(["layers",l],e=>e.withMutations(e=>{let o=e.getIn(["selected","lines"]).first(),r=e.getIn(["lines",o]),s=e.vertices.get(r.vertices.get(0));Object(i.n)(e,"lines",o),Object(i.n)(e,"vertices",r.vertices.get(0)),Object(i.n)(e,"vertices",r.vertices.get(1)),Object(i.i)(e,o),Object(i.d)(e,r.type,s.x,s.y,t,n,a),Object(i.e)(e,a)}));return e.merge({mode:r.MODE_WAITING_DRAWING_LINE,scene:c,snapElements:new o.List,activeSnapElement:null,sceneHistory:e.sceneHistory.push(c)})}(e,t.x,t.y);case r.BEGIN_DRAGGING_LINE:return function(e,t,n,a,i){let s=Object(l.sceneSnapElements)(e.scene,new o.List,e.snapMask),c=e.scene.layers.get(t),u=c.lines.get(n),d=c.vertices.get(u.vertices.get(0)),p=c.vertices.get(u.vertices.get(1));return e.merge({mode:r.MODE_DRAGGING_LINE,snapElements:s,draggingSupport:Object(o.Map)({layerID:t,lineID:n,startPointX:a,startPointY:i,startVertex0X:d.x,startVertex0Y:d.y,startVertex1X:p.x,startVertex1Y:p.y})})}(e,t.layerID,t.lineID,t.x,t.y);case r.UPDATE_DRAGGING_LINE:return function(e,t,n){let o=e.draggingSupport,r=e.snapElements,a=o.get("layerID"),i=o.get("lineID"),l=t-o.get("startPointX"),c=n-o.get("startPointY"),u=o.get("startVertex0X")+l,d=o.get("startVertex0Y")+c,p=o.get("startVertex1X")+l,h=o.get("startVertex1Y")+c,m=null,f=null,y=null;e.snapMask&&!e.snapMask.isEmpty()&&(f=Object(s.nearestSnap)(r,u,d,e.snapMask),y=Object(s.nearestSnap)(r,p,h,e.snapMask));let g=0,w=0;return f&&y?f.point.distance<y.point.distance?(g=f.point.x-u,w=f.point.y-d,m=f.snap):(g=y.point.x-p,w=y.point.y-h,m=y.snap):(f&&(g=f.point.x-u,w=f.point.y-d,m=f.snap),y&&(g=y.point.x-p,w=y.point.y-h,m=y.snap)),u+=g,d+=w,p+=g,h+=w,e.merge({activeSnapElement:m,scene:e.scene.updateIn(["layers",a],e=>e.withMutations(e=>{let t=e.getIn(["lines",i,"vertices"]);return e.updateIn(["vertices",t.get(0)],e=>e.merge({x:u,y:d})),e.updateIn(["vertices",t.get(1)],e=>e.merge({x:p,y:h})),e}))})}(e,t.x,t.y);case r.END_DRAGGING_LINE:return function(e,t,n){let l=e.catalog,{draggingSupport:c}=e,u=c.get("layerID"),d=e.scene.layers.get(u),p=c.get("lineID"),h=d.lines.get(p),m=d.vertices.get(h.vertices.get(0)),f=d.vertices.get(h.vertices.get(1)),y=a.maxVertex(m,f),g=a.minVertex(m,f),w=a.verticesDistance(g,y),x=Math.atan2(y.y-g.y,y.x-g.x),v=[];return d.lines.get(p).holes.forEach(e=>{let t=d.holes.get(e),n=w*t.offset,o={x:n*Math.cos(x)+g.x,y:n*Math.sin(x)+g.y};v.push({hole:t,offsetPosition:o})}),e.withMutations(e=>{let d=e.scene.updateIn(["layers",u],o=>o.withMutations(o=>{let r=t-c.get("startPointX"),u=n-c.get("startPointY"),d=c.get("startVertex0X")+r,m=c.get("startVertex0Y")+u,f=c.get("startVertex1X")+r,y=c.get("startVertex1Y")+u;if(e.snapMask&&!e.snapMask.isEmpty()){let t=Object(s.nearestSnap)(e.snapElements,d,m,e.snapMask),n=Object(s.nearestSnap)(e.snapElements,f,y,e.snapMask),o=0,r=0;t&&n?t.point.distance<n.point.distance?(o=t.point.x-d,r=t.point.y-m):(o=n.point.x-f,r=n.point.y-y):(t&&(o=t.point.x-d,r=t.point.y-m),n&&(o=n.point.x-f,r=n.point.y-y)),d+=o,m+=r,f+=o,y+=r}Object(i.f)(o,h.vertices.get(0)),Object(i.f)(o,h.vertices.get(1)),Object(i.i)(o,p),Object(a.samePoints)({newVertex0X:d,newVertex0Y:m},{newVertex1X:f,newVertex1Y:y})||Object(i.d)(o,h.type,d,m,f,y,l,h.properties,v),Object(i.e)(o,l)}));e.merge({mode:r.MODE_IDLE,scene:d,draggingSupport:null,activeSnapElement:null,snapElements:new o.List,sceneHistory:e.sceneHistory.push(d)})})}(e,t.x,t.y);case r.SELECT_LINE:return function(e,t,n){let o=e.scene;return o=o.merge({layers:o.layers.map(i.o),selectedLayer:t}),o=o.updateIn(["layers",t],e=>e.withMutations(e=>{let t=e.getIn(["lines",n]);Object(i.k)(e,"lines",n),Object(i.k)(e,"vertices",t.vertices.get(0)),Object(i.k)(e,"vertices",t.vertices.get(1))})),e.merge({scene:o,sceneHistory:e.sceneHistory.push(o)})}(e,t.layerID,t.lineID);default:return e}}},function(e,t,n){"use strict";var o=n(5),r=n(42),a=n(152),i=n(24);t.a=function(e,t){switch(t.type){case o.ADD_LAYER:return function(e,t,n){let o=a.a.acquireID();t=t||`layer ${o}`,n=n||0;let i=new r.Layer({id:o,name:t,altitude:n}),s=e.scene;return s=s.merge({selectedLayer:o,layers:s.layers.set(o,i)}),e.merge({scene:s,sceneHistory:e.sceneHistory.push(s)})}(e,t.name,t.altitude);case o.SELECT_LAYER:return function(e,t){let n=e.scene;return n=n.merge({selectedLayer:t,layers:n.layers.map(e=>Object(i.o)(e))}),e.merge({scene:n,sceneHistory:e.sceneHistory.push(n)})}(e,t.layerID);case o.SET_LAYER_PROPERTIES:return function(e,t,n){let o=e.scene,r=o.layers.mergeIn([t],n);return r=r.sort((e,t)=>e.altitude!==t.altitude?t.altitude-e.altitude:e.order-t.order),o=o.set("layers",r),e.merge({scene:o,sceneHistory:e.sceneHistory.push(o)})}(e,t.layerID,t.properties);case o.REMOVE_LAYER:return function(e,t){let n=e.scene,o=n.layers.delete(t);return n=o.isEmpty()?new r.Scene:n.merge({selectedLayer:n.selectedLayer!==t?n.selectedLayer:o.first().id,layers:o}),e.merge({scene:n,sceneHistory:e.sceneHistory.push(n)})}(e,t.layerID);default:return e}}},function(e,t,n){"use strict";var o=n(5),r=n(8),a=(n.n(r),n(88)),i=n(20),s=n(24),l=n(13);t.a=function(e,t){switch(t.type){case o.BEGIN_DRAGGING_VERTEX:return function(e,t,n,i,s){let l=Object(a.sceneSnapElements)(e.scene,new r.List,e.snapMask);return e.merge({mode:o.MODE_DRAGGING_VERTEX,snapElements:l,draggingSupport:Object(r.Map)({layerID:t,vertexID:n})})}(e,t.layerID,t.vertexID,t.x,t.y);case o.UPDATE_DRAGGING_VERTEX:return function(e,t,n){let{draggingSupport:o,snapElements:r,scene:a}=e,s=null;e.snapMask&&!e.snapMask.isEmpty()&&(s=Object(i.nearestSnap)(r,t,n,e.snapMask))&&({x:t,y:n}=s.point);let l=o.get("layerID"),c=o.get("vertexID");return e.merge({activeSnapElement:s?s.snap:null,scene:a.mergeIn(["layers",l,"vertices",c],{x:t,y:n})})}(e,t.x,t.y);case o.END_DRAGGING_VERTEX:return function(e,t,n){let a=e.catalog,{draggingSupport:i}=e,c=i.get("layerID"),u=i.get("vertexID"),d=e.scene.layers.get(c).vertices.get(u).lines,p=e.scene.updateIn(["layers",c],e=>e.withMutations(e=>{d.forEach(t=>{let n=e.lines.get(t);if(n){let o;o=n.vertices.get(0)===u?n.vertices.get(1):n.vertices.get(0);let r=e.vertices.get(o),i=e.vertices.get(u),c=[],d=Object(l.orderVertices)([r,i]);n.holes.forEach(t=>{let o=e.holes.get(t),a=Object(l.pointsDistance)(r.x,r.y,i.x,i.y),s=Math.atan2(d[1].y-d[0].y,d[1].x-d[0].x),u=o.offset;d[1].x===n.vertices.get(1).x&&d[1].y===n.vertices(1).y&&(u=1-u);let p=a*u*Math.cos(s)+d[0].x,h=a*u*Math.sin(s)+d[0].y;c.push({hole:o,offsetPosition:{x:p,y:h}})}),Object(s.f)(e,u),Object(s.i)(e,t),Object(l.samePoints)(r,i)||Object(s.d)(e,n.type,r.x,r.y,i.x,i.y,a,n.properties,c)}}),Object(s.e)(e,a)}));return e.merge({mode:o.MODE_IDLE,draggingSupport:null,scene:p,activeSnapElement:null,snapElements:new r.List,sceneHistory:e.sceneHistory.push(p)})}(e,t.x,t.y);default:return e}}},function(e,t,n){"use strict";var o=n(5),r=n(8),a=(n.n(r),n(156));n.n(a);o.MODE_IDLE,o.MODE_2D_ZOOM_IN,o.MODE_2D_ZOOM_OUT,o.MODE_2D_PAN;t.a=function(e,t){switch(t.type){case o.UPDATE_2D_CAMERA:return e.merge({viewer2D:Object(r.fromJS)(t.value)});case o.SELECT_TOOL_PAN:return e.set("mode",o.MODE_2D_PAN);case o.SELECT_TOOL_ZOOM_IN:return e.set("mode",o.MODE_2D_ZOOM_IN);case o.SELECT_TOOL_ZOOM_OUT:return e.set("mode",o.MODE_2D_ZOOM_OUT)}}},function(e,t,n){"use strict";var o=n(5),r=n(155);t.a=function(e,t){switch(t.type){case o.SELECT_TOOL_3D_VIEW:return Object(r.b)(e).set("mode",o.MODE_3D_VIEW);case o.SELECT_TOOL_3D_FIRST_PERSON:return Object(r.b)(e).set("mode",o.MODE_3D_FIRST_PERSON);default:return e}}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(45),l=n(61),c=n(150),u=n(106),d=n(89),p=n(389),h=n(157),m=n(449),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const{Toolbar:y}=h.d,{Sidebar:g}=h.c,{FooterBar:w}=h.b,x={display:"flex",flexFlow:"row nowrap"};class v extends o.Component{getChildContext(){return f({},Object(p.a)(d.a,e=>this.props[e]),{translator:this.props.translator,catalog:this.props.catalog})}componentWillMount(){let{store:e}=this.context,{projectActions:t,catalog:n,stateExtractor:o,plugins:r}=this.props;r.forEach(t=>t(e,o)),t.initCatalog(n)}componentWillReceiveProps(e){let{stateExtractor:t,state:n,projectActions:o,catalog:r}=e;t(n).getIn(["catalog","ready"])||o.initCatalog(r)}render(){let e=this.props,{width:t,height:n,state:o,stateExtractor:a}=e,i=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["width","height","state","stateExtractor"]),s=t-50-300,l=n-20,c=n-20,u=n-20,d=a(o);return r.a.createElement("div",{style:f({},x,{height:n})},r.a.createElement(y,f({width:50,height:l,state:d},i)),r.a.createElement(h.a,f({width:s,height:c,state:d},i,{onWheel:e=>e.preventDefault()})),r.a.createElement(g,f({width:300,height:u,state:d},i)),r.a.createElement(w,f({width:t,height:20,state:d},i)))}}v.propTypes={translator:i.a.instanceOf(c.a),catalog:i.a.instanceOf(u.a),allowProjectFileSupport:i.a.bool,plugins:i.a.arrayOf(i.a.func),autosaveKey:i.a.string,autosaveDelay:i.a.number,width:i.a.number.isRequired,height:i.a.number.isRequired,stateExtractor:i.a.func.isRequired,toolbarButtons:i.a.array,sidebarComponents:i.a.array,footerbarComponents:i.a.array,customContents:i.a.object,softwareSignature:i.a.string},v.contextTypes={store:i.a.object.isRequired},v.childContextTypes=f({},Object(p.a)(d.a,()=>i.a.object),{translator:i.a.object,catalog:i.a.object}),v.defaultProps={translator:new c.a,catalog:new u.a,plugins:[],allowProjectFileSupport:!0,softwareSignature:`react-floorplanner ${m.a}`,toolbarButtons:[],sidebarComponents:[],footerbarComponents:[],customContents:{}},t.a=Object(l.connect)(function(e){return{state:e}},function(e){return Object(p.a)(d.a,t=>Object(s.bindActionCreators)(d.a[t],e))})(v)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateCameraView=function(e){return{type:o.UPDATE_2D_CAMERA,value:e}},t.selectToolPan=function(){return{type:o.SELECT_TOOL_PAN}},t.selectToolZoomOut=function(){return{type:o.SELECT_TOOL_ZOOM_OUT}},t.selectToolZoomIn=function(){return{type:o.SELECT_TOOL_ZOOM_IN}};var o=n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectTool3DView=function(){return{type:o.SELECT_TOOL_3D_VIEW}},t.selectTool3DFirstPerson=function(){return{type:o.SELECT_TOOL_3D_FIRST_PERSON}};var o=n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectLine=function(e,t){return{type:o.SELECT_LINE,layerID:e,lineID:t}},t.selectToolDrawingLine=function(e){return{type:o.SELECT_TOOL_DRAWING_LINE,sceneComponentType:e}},t.beginDrawingLine=function(e,t,n,r){return{type:o.BEGIN_DRAWING_LINE,layerID:e,x:t,y:n,snapMask:r}},t.updateDrawingLine=function(e,t,n){return{type:o.UPDATE_DRAWING_LINE,x:e,y:t,snapMask:n}},t.endDrawingLine=function(e,t,n){return{type:o.END_DRAWING_LINE,x:e,y:t,snapMask:n}},t.beginDraggingLine=function(e,t,n,r,a){return{type:o.BEGIN_DRAGGING_LINE,layerID:e,lineID:t,x:n,y:r,snapMask:a}},t.updateDraggingLine=function(e,t,n){return{type:o.UPDATE_DRAGGING_LINE,x:e,y:t,snapMask:n}},t.endDraggingLine=function(e,t,n){return{type:o.END_DRAGGING_LINE,x:e,y:t,snapMask:n}};var o=n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectHole=function(e,t){return{type:o.SELECT_HOLE,layerID:e,holeID:t}},t.selectToolDrawingHole=function(e){return{type:o.SELECT_TOOL_DRAWING_HOLE,sceneComponentType:e}},t.updateDrawingHole=function(e,t,n){return{type:o.UPDATE_DRAWING_HOLE,layerID:e,x:t,y:n}},t.endDrawingHole=function(e,t,n){return{type:o.END_DRAWING_HOLE,layerID:e,x:t,y:n}},t.beginDraggingHole=function(e,t,n,r){return{type:o.BEGIN_DRAGGING_HOLE,layerID:e,holeID:t,x:n,y:r}},t.updateDraggingHole=function(e,t){return{type:o.UPDATE_DRAGGING_HOLE,x:e,y:t}},t.endDraggingHole=function(e,t){return{type:o.END_DRAGGING_HOLE,x:e,y:t}};var o=n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectLayer=function(e){return{type:o.SELECT_LAYER,layerID:e}},t.addLayer=function(e,t){return{type:o.ADD_LAYER,name:e,altitude:t}},t.setLayerProperties=function(e,t){return{type:o.SET_LAYER_PROPERTIES,layerID:e,properties:t}},t.removeLayer=function(e){return{type:o.REMOVE_LAYER,layerID:e}};var o=n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.beginDraggingVertex=function(e,t,n,r,a){return{type:o.BEGIN_DRAGGING_VERTEX,layerID:e,vertexID:t,x:n,y:r,snapMask:a}},t.updateDraggingVertex=function(e,t,n){return{type:o.UPDATE_DRAGGING_VERTEX,x:e,y:t,snapMask:n}},t.endDraggingVertex=function(e,t,n){return{type:o.END_DRAGGING_VERTEX,x:e,y:t,snapMask:n}};var o=n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectItem=function(e,t){return{type:o.SELECT_ITEM,layerID:e,itemID:t}},t.selectToolDrawingItem=function(e){return{type:o.SELECT_TOOL_DRAWING_ITEM,sceneComponentType:e}},t.updateDrawingItem=function(e,t,n){return{type:o.UPDATE_DRAWING_ITEM,layerID:e,x:t,y:n}},t.endDrawingItem=function(e,t,n){return{type:o.END_DRAWING_ITEM,layerID:e,x:t,y:n}},t.beginDraggingItem=function(e,t,n,r){return{type:o.BEGIN_DRAGGING_ITEM,layerID:e,itemID:t,x:n,y:r}},t.updateDraggingItem=function(e,t){return{type:o.UPDATE_DRAGGING_ITEM,x:e,y:t}},t.endDraggingItem=function(e,t){return{type:o.END_DRAGGING_ITEM,x:e,y:t}},t.beginRotatingItem=function(e,t,n,r){return{type:o.BEGIN_ROTATING_ITEM,layerID:e,itemID:t,x:n,y:r}},t.updateRotatingItem=function(e,t){return{type:o.UPDATE_ROTATING_ITEM,x:e,y:t}},t.endRotatingItem=function(e,t){return{type:o.END_ROTATING_ITEM,x:e,y:t}};var o=n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectArea=function(e,t){return{type:o.SELECT_AREA,layerID:e,areaID:t}};var o=n(5)},function(e,t,n){"use strict";t.a=function(e,t){let n={};for(let o in e)n[o]=t(o,n[o]);return n}},function(e,t,n){"use strict";var o=n(59),r=n(158),a=n(160),i=n(393);t.a={ToolbarButton:o.a,ToolbarSaveButton:r.a,ToolbarLoadButton:a.a,Toolbar:i.a}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m11.6 34.3h17.1v-8.6h-17.1v8.6z m20 0h2.8v-20q0-0.3-0.2-0.9t-0.4-0.7l-6.3-6.3q-0.2-0.2-0.8-0.5t-0.8-0.2v9.3q0 0.9-0.7 1.5t-1.5 0.6h-12.8q-0.9 0-1.6-0.6t-0.6-1.5v-9.3h-2.8v28.6h2.8v-9.3q0-0.9 0.6-1.5t1.6-0.6h18.5q0.9 0 1.5 0.6t0.7 1.5v9.3z m-8.6-20.7v-7.2q0-0.3-0.2-0.5t-0.5-0.2h-4.3q-0.3 0-0.5 0.2t-0.2 0.5v7.2q0 0.3 0.2 0.5t0.5 0.2h4.3q0.3 0 0.5-0.2t0.2-0.5z m14.3 0.7v20.7q0 0.9-0.6 1.5t-1.6 0.6h-30q-0.8 0-1.5-0.6t-0.6-1.5v-30q0-0.9 0.6-1.5t1.5-0.6h20.8q0.9 0 1.9 0.4t1.7 1.1l6.3 6.2q0.6 0.6 1 1.7t0.5 2z"})))},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m37 20.7q0-0.7-1.1-0.7h-22.6q-0.8 0-1.8 0.4t-1.5 1.1l-6.1 7.6q-0.3 0.5-0.3 0.8 0 0.7 1.1 0.7h22.5q0.9 0 1.8-0.4t1.5-1.1l6.1-7.6q0.4-0.4 0.4-0.8z m-23.7-3.4h15.9v-3.3q0-0.8-0.5-1.4t-1.5-0.6h-11.9q-0.8 0-1.4-0.6t-0.6-1.4v-1.3q0-0.8-0.6-1.4t-1.4-0.6h-6.6q-0.9 0-1.5 0.6t-0.5 1.4v17.7l5.3-6.5q0.9-1.1 2.4-1.8t2.9-0.8z m26.3 3.4q0 1.3-0.9 2.5l-6.1 7.6q-0.9 1.1-2.5 1.8t-2.9 0.7h-22.5q-2 0-3.3-1.4t-1.4-3.3v-19.9q0-1.9 1.4-3.3t3.3-1.3h6.6q1.9 0 3.3 1.3t1.3 3.3v0.7h11.3q2 0 3.3 1.3t1.4 3.3v3.3h4q1.1 0 2 0.6t1.4 1.4q0.3 0.7 0.3 1.4z"})))},e.exports=t.default},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(394),l=n.n(s),c=n(395),u=n.n(c),d=n(396),p=n.n(d),h=n(397),m=n.n(h),f=n(398),y=n.n(f),g=n(399),w=n.n(g),x=n(59),v=n(158),M=n(160),b=n(91),E=n(5),_=n(4),O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const T={backgroundColor:_.c.main,padding:"10px"};class I extends o.Component{constructor(e,t){super(e,t),this.state={}}shouldComponentUpdate(e,t){return this.props.state.mode!==e.state.mode||this.props.height!==e.height||this.props.width!==e.width}render(){let{props:{state:e,width:t,height:n,toolbarButtons:o,allowProjectFileSupport:a},context:{projectActions:i,viewer3DActions:s,translator:c}}=this,d=e.get("mode"),h=[{index:0,condition:a,dom:r.a.createElement(x.a,{active:!1,tooltip:c.t("New project"),onClick:e=>confirm(c.t("Would you want to start a new Project?"))?i.newProject():null},r.a.createElement(l.a,null))},{index:1,condition:a,dom:r.a.createElement(v.a,{state:e})},{index:2,condition:a,dom:r.a.createElement(M.a,{state:e})},{index:3,condition:!0,dom:r.a.createElement(x.a,{active:[E.MODE_VIEWING_CATALOG].includes(d),tooltip:c.t("Open catalog"),onClick:e=>i.openCatalog()},r.a.createElement(m.a,null))},{index:4,condition:!0,dom:r.a.createElement(x.a,{active:[E.MODE_3D_VIEW].includes(d),tooltip:c.t("3D View"),onClick:e=>s.selectTool3DView()},r.a.createElement(()=>r.a.createElement("p",{style:{fontSize:"19px",textDecoration:"none",fontWeight:"bold",margin:"0px"}},"3D"),null))},{index:5,condition:!0,dom:r.a.createElement(x.a,{active:[E.MODE_IDLE].includes(d),tooltip:c.t("2D View"),onClick:e=>i.rollback()},[E.MODE_3D_FIRST_PERSON,E.MODE_3D_VIEW].includes(d)?r.a.createElement(()=>r.a.createElement("p",{style:{fontSize:"19px",textDecoration:"none",fontWeight:"bold",margin:"0px"}},"2D"),null):r.a.createElement(u.a,null))},{index:6,condition:!0,dom:r.a.createElement(x.a,{active:[E.MODE_3D_FIRST_PERSON].includes(d),tooltip:c.t("3D First Person"),onClick:e=>s.selectTool3DFirstPerson()},r.a.createElement(p.a,null))},{index:7,condition:!0,dom:r.a.createElement(x.a,{active:!1,tooltip:c.t("Undo (CTRL-Z)"),onClick:e=>i.undo()},r.a.createElement(y.a,null))},{index:8,condition:!0,dom:r.a.createElement(x.a,{active:[E.MODE_CONFIGURING_PROJECT].includes(d),tooltip:c.t("Configure project"),onClick:e=>i.openProjectConfigurator()},r.a.createElement(w.a,null))}];return h=h.concat(o.map((t,n)=>t.prototype?{condition:!0,dom:r.a.createElement(t,{mode:d,state:e,key:n})}:{index:t.index,condition:t.condition,dom:r.a.createElement(t.dom,{mode:d,state:e,key:n})})),r.a.createElement("aside",{style:O({},T,{maxWidth:t,maxHeight:n}),className:"toolbar"},h.sort((e,t)=>(void 0!==e.index&&null!==e.index||(e.index=Number.MAX_SAFE_INTEGER),void 0!==t.index&&null!==t.index||(t.index=Number.MAX_SAFE_INTEGER),e.index-t.index)).map((e,t)=>r.a.createElement(b.a,{key:t,condition:e.condition,style:{position:"relative"}},e.dom)))}}t.a=I,I.propTypes={state:i.a.object.isRequired,width:i.a.number.isRequired,height:i.a.number.isRequired,allowProjectFileSupport:i.a.bool.isRequired,toolbarButtons:i.a.array},I.contextTypes={projectActions:i.a.object.isRequired,viewer2DActions:i.a.object.isRequired,viewer3DActions:i.a.object.isRequired,linesActions:i.a.object.isRequired,holesActions:i.a.object.isRequired,itemsActions:i.a.object.isRequired,translator:i.a.object.isRequired}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m35.8 8.5q0.6 0.6 1 1.7t0.5 1.9v25.8q0 0.8-0.6 1.5t-1.6 0.6h-30q-0.9 0-1.5-0.6t-0.6-1.5v-35.8q0-0.8 0.6-1.5t1.5-0.6h20q0.9 0 2 0.4t1.7 1.1z m-9.9-5.5v8.4h8.4q-0.3-0.6-0.5-0.9l-7-7q-0.3-0.2-0.9-0.5z m8.5 34.1v-22.8h-9.3q-0.9 0-1.5-0.6t-0.6-1.6v-9.2h-17.1v34.2h28.5z"})))},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m32.3 23.3q0.7 0.7 0.3 1.5-0.4 0.9-1.3 0.9h-8.5l4.4 10.6q0.3 0.6 0 1.1t-0.7 0.8l-4 1.7q-0.5 0.2-1.1 0t-0.7-0.8l-4.3-10.1-7 7q-0.4 0.4-1 0.4-0.2 0-0.5-0.1-0.9-0.4-0.9-1.3v-33.6q0-0.9 0.9-1.3 0.3-0.1 0.5-0.1 0.6 0 1 0.4z"})))},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m16.5 32.3l-11.7-2.3 0.7-3.4 8.2 1.7 2.6-13.5-3 1.1v5.7h-3.3v-7.8l8.7-3.6c0.4 0 0.8-0.2 1.3-0.2 1.2 0 2.1 0.6 2.8 1.6l1.7 2.7c1.3 2.3 3.9 4 7.1 4v3.3c-3.6 0-6.9-1.6-9.1-4.1l-1 5 3.5 3.3v12.5h-3.4v-10l-3.5-3.3z m6-23.2c-1.8 0-3.4-1.5-3.4-3.3s1.6-3.3 3.4-3.3 3.3 1.5 3.3 3.3-1.5 3.3-3.3 3.3z"})))},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m35.9 16.4v4.3q0 0.9-0.6 1.5t-1.5 0.7h-9.3v9.2q0 0.9-0.6 1.6t-1.5 0.6h-4.3q-0.9 0-1.5-0.6t-0.7-1.6v-9.2h-9.3q-0.9 0-1.5-0.7t-0.6-1.5v-4.3q0-0.9 0.6-1.5t1.5-0.6h9.3v-9.3q0-0.9 0.7-1.5t1.5-0.6h4.3q0.9 0 1.5 0.6t0.6 1.5v9.3h9.3q0.9 0 1.5 0.6t0.6 1.5z"})))},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m20.9 13.4c7.7 0 14.2 5 16.5 12l-3.9 1.2c-1.7-5.3-6.7-9.1-12.6-9.1-3.3 0-6.3 1.2-8.6 3.1l6.1 6h-15v-15l5.9 6.1c3-2.7 7.1-4.3 11.6-4.3z"})))},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m20 25.9c3.2 0 5.9-2.7 5.9-5.9s-2.7-5.9-5.9-5.9-5.9 2.7-5.9 5.9 2.7 5.9 5.9 5.9z m12.4-4.3l3.5 2.8c0.4 0.2 0.4 0.7 0.2 1.1l-3.4 5.8c-0.2 0.3-0.6 0.4-1 0.3l-4.1-1.7c-0.9 0.7-1.8 1.3-2.8 1.7l-0.7 4.3c0 0.4-0.4 0.7-0.7 0.7h-6.8c-0.4 0-0.7-0.3-0.7-0.7l-0.7-4.3c-1-0.4-1.9-1-2.8-1.7l-4.1 1.7c-0.4 0.1-0.8 0-1-0.3l-3.4-5.8c-0.2-0.4-0.2-0.9 0.2-1.1l3.5-2.8c-0.1-0.5-0.1-1.1-0.1-1.6s0-1.1 0.1-1.6l-3.5-2.8c-0.4-0.2-0.4-0.7-0.2-1.1l3.4-5.7c0.2-0.4 0.6-0.5 1-0.4l4.1 1.7c0.9-0.6 1.8-1.3 2.8-1.7l0.7-4.3c0-0.4 0.3-0.7 0.7-0.7h6.8c0.3 0 0.7 0.3 0.7 0.7l0.7 4.3c1 0.4 1.9 1 2.8 1.7l4.1-1.7c0.4-0.1 0.8 0 1 0.4l3.4 5.7c0.2 0.4 0.2 0.9-0.2 1.1l-3.5 2.8c0.1 0.5 0.1 1.1 0.1 1.6s0 1.1-0.1 1.6z"})))},e.exports=t.default},function(e,t,n){"use strict";function o({width:e,height:t,state:n,customContents:o}){let r=n.get("mode");switch(r){case h.MODE_3D_VIEW:return a.a.createElement(c.a,{state:n,width:e,height:t});case h.MODE_3D_FIRST_PERSON:return a.a.createElement(u.a,{state:n,width:e,height:t});case h.MODE_VIEWING_CATALOG:return a.a.createElement(d.a,{state:n,width:e,height:t});case h.MODE_IDLE:case h.MODE_2D_ZOOM_IN:case h.MODE_2D_ZOOM_OUT:case h.MODE_2D_PAN:case h.MODE_WAITING_DRAWING_LINE:case h.MODE_DRAGGING_LINE:case h.MODE_DRAGGING_VERTEX:case h.MODE_DRAGGING_ITEM:case h.MODE_DRAWING_LINE:case h.MODE_DRAWING_HOLE:case h.MODE_DRAWING_ITEM:case h.MODE_DRAGGING_HOLE:case h.MODE_ROTATING_ITEM:return a.a.createElement(l.a,{state:n,width:e,height:t});case h.MODE_CONFIGURING_PROJECT:return a.a.createElement(p.a,{width:e,height:t,state:n});default:if(o.hasOwnProperty(r)){let i=o[r];return a.a.createElement(i,{width:e,height:t,state:n})}throw new Error(`Mode ${r} doesn't have a mapped content`)}}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(161),c=n(407),u=n(415),d=n(419),p=n(428),h=n(5);o.propTypes={state:s.a.object.isRequired,width:s.a.number.isRequired,height:s.a.number.isRequired}},function(e,t,n){"use strict";function o(e,t,n){t=t||1;for(var o,s,l,c,u=0;u<e[0].length;u++){var d=e[0][u];(!u||d[0]<o)&&(o=d[0]),(!u||d[1]<s)&&(s=d[1]),(!u||d[0]>l)&&(l=d[0]),(!u||d[1]>c)&&(c=d[1])}var p=l-o,h=c-s,m=Math.min(p,h),f=m/2,y=new i(null,r);if(0===m)return[o,s];for(var g=o;g<l;g+=m)for(var w=s;w<c;w+=m)y.push(new a(g+f,w+f,f,e));var x=function(e){for(var t=0,n=0,o=0,r=e[0],i=0,s=r.length,l=s-1;i<s;l=i++){var c=r[i],u=r[l],d=c[0]*u[1]-u[0]*c[1];n+=(c[0]+u[0])*d,o+=(c[1]+u[1])*d,t+=3*d}return 0===t?new a(r[0][0],r[0][1],0,e):new a(n/t,o/t,0,e)}(e),v=new a(o+p/2,s+h/2,0,e);v.d>x.d&&(x=v);for(var M=y.length;y.length;){var b=y.pop();b.d>x.d&&(x=b,n&&console.log("found best %d after %d probes",Math.round(1e4*b.d)/1e4,M)),b.max-x.d<=t||(f=b.h/2,y.push(new a(b.x-f,b.y-f,f,e)),y.push(new a(b.x+f,b.y-f,f,e)),y.push(new a(b.x-f,b.y+f,f,e)),y.push(new a(b.x+f,b.y+f,f,e)),M+=4)}return n&&(console.log("num probes: "+M),console.log("best distance: "+x.d)),[x.x,x.y]}function r(e,t){return t.max-e.max}function a(e,t,n,o){this.x=e,this.y=t,this.h=n,this.d=function(e,t,n){for(var o=!1,r=1/0,a=0;a<n.length;a++)for(var i=n[a],s=0,l=i.length,c=l-1;s<l;c=s++){var u=i[s],d=i[c];u[1]>t!=d[1]>t&&e<(d[0]-u[0])*(t-u[1])/(d[1]-u[1])+u[0]&&(o=!o),r=Math.min(r,function(e,t,n,o){var r=n[0],a=n[1],i=o[0]-r,s=o[1]-a;if(0!==i||0!==s){var l=((e-r)*i+(t-a)*s)/(i*i+s*s);l>1?(r=o[0],a=o[1]):l>0&&(r+=i*l,a+=s*l)}return i=e-r,s=t-a,i*i+s*s}(e,t,u,d))}return(o?1:-1)*Math.sqrt(r)}(e,t,o),this.max=this.d+this.h*Math.SQRT2}var i=n(402);e.exports=o,e.exports.default=o},function(e,t,n){"use strict";function o(e,t){if(!(this instanceof o))return new o(e,t);if(this.data=e||[],this.length=this.data.length,this.compare=t||function(e,t){return e<t?-1:e>t?1:0},this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)}e.exports=o,e.exports.default=o,o.prototype={push:function(e){this.data.push(e),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var e=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),e}},peek:function(){return this.data[0]},_up:function(e){for(var t=this.data,n=this.compare,o=t[e];e>0;){var r=e-1>>1,a=t[r];if(n(o,a)>=0)break;t[e]=a,e=r}t[e]=o},_down:function(e){for(var t=this.data,n=this.compare,o=this.length>>1,r=t[e];e<o;){var a=1+(e<<1),i=a+1,s=t[a];if(i<this.length&&n(t[i],s)<0&&(a=i,s=t[i]),n(s,r)>=0)break;t[e]=s,e=a}t[e]=r}}},function(e,t){function n(e){return Array.isArray(e)?{x:e[0],y:e[1]}:e}e.exports=function(e,t){var o=e.length,r=0,a=t||!1;(e=e.map(n))[0]!=e[e.length-1]&&(e=e.concat(e[0]));for(var i=0;i<o;i++)r+=e[i].x*e[i+1].y-e[i].y*e[i+1].x;return a?r/2:Math.abs(r)/2}},function(e,t,n){"use strict";function o({scene:e}){let{width:t,height:n,guides:o}=e,r=o.entrySeq().map(([e,o])=>{switch(o.type){case"horizontal-streak":return a.a.createElement(l.a,{key:e,width:t,height:n,guide:o});case"vertical-streak":return a.a.createElement(c.a,{key:e,width:t,height:n,guide:o});default:console.warn(`guide ${o.type} not allowed`)}}).toList();return a.a.createElement("g",null,r)}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(405),c=n(406);o.propTypes={scene:s.a.object.isRequired}},function(e,t,n){"use strict";function o({width:e,height:t,guide:n}){let o,r=n.properties.get("step");o=n.properties.has("color")?new l.List([n.properties.get("color")]):n.properties.get("colors");let i=[],s=0;for(let n=0;n<=t;n+=r){let t=o.get(s%o.size);s++,i.push(a.a.createElement("line",{key:n,x1:"0",y1:n,x2:e,y2:n,strokeWidth:"1",stroke:t}))}return a.a.createElement("g",null,i)}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(8);n.n(l);o.propTypes={width:s.a.number.isRequired,height:s.a.number.isRequired,guide:s.a.object.isRequired}},function(e,t,n){"use strict";function o({width:e,height:t,guide:n}){let o,r=n.properties.get("step");o=n.properties.has("color")?new l.List([n.properties.get("color")]):n.properties.get("colors");let i=[],s=0;for(let n=0;n<=e;n+=r){let e=o.get(s%o.size);s++,i.push(a.a.createElement("line",{key:n,x1:n,y1:"0",x2:n,y2:t,strokeWidth:"1",stroke:e}))}return a.a.createElement("g",null,i)}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(8);n.n(l);o.propTypes={width:s.a.number.isRequired,height:s.a.number.isRequired,guide:s.a.object.isRequired}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(30),l=n.n(s),c=n(1),u=n(171),d=n(92),p=n(411),h=n.n(p),m=n(43),f=n.n(m),y=n(4);class g extends r.a.Component{constructor(e){super(e),this.lastMousePosition={},this.width=e.width,this.height=e.height,this.stopRendering=!1,this.renderer=window.__threeRenderer||new c.WebGLRenderer({preserveDrawingBuffer:!0}),window.__threeRenderer=this.renderer}componentDidMount(){let e={areaActions:this.context.areaActions,holesActions:this.context.holesActions,itemsActions:this.context.itemsActions,linesActions:this.context.linesActions,projectActions:this.context.projectActions},{state:t}=this.props,n=t.scene,o=l.a.findDOMNode(this.refs.canvasWrapper),r=new c.Scene;this.renderer.setClearColor(new c.Color(y.a.white)),this.renderer.setSize(this.width,this.height);let a=Object(u.a)(n,e,this.context.catalog);r.add(a.plan),r.add(a.grid);let i=this.width/this.height,s=new c.PerspectiveCamera(45,i,1,3e5);r.add(s);let d=-(a.boundingBox.max.x-a.boundingBox.min.x)/2,p=(a.boundingBox.max.y-a.boundingBox.min.y)/2*10,m=(a.boundingBox.max.z-a.boundingBox.min.z)/2;s.position.set(d,p,m),s.up=new c.Vector3(0,1,0);let f=new c.AmbientLight(11513775);r.add(f);let g=new c.SpotLight(y.a.white,.3);g.position.set(d,p,m),r.add(g);let w=[a.plan],x=new c.Vector2,v=new c.Raycaster;this.mouseDownEvent=(e=>{this.lastMousePosition.x=e.offsetX/this.width*2-1,this.lastMousePosition.y=-e.offsetY/this.height*2+1}),this.mouseUpEvent=(e=>{if(e.preventDefault(),x.x=e.offsetX/this.width*2-1,x.y=-e.offsetY/this.height*2+1,Math.abs(x.x-this.lastMousePosition.x)<=.02&&Math.abs(x.y-this.lastMousePosition.y)<=.02){v.setFromCamera(x,s);let e=v.intersectObjects(w,!0);e.length>0&&!isNaN(e[0].distance)?e[0].object.interact&&e[0].object.interact():this.context.projectActions.unselectAll()}}),this.renderer.domElement.addEventListener("mousedown",this.mouseDownEvent),this.renderer.domElement.addEventListener("mouseup",this.mouseUpEvent),this.renderer.domElement.style.display="block",o.appendChild(this.renderer.domElement);let M=new h.a(s,this.renderer.domElement),b=new c.Object3D;b.position.set(M.target.x,M.target.y,M.target.z),r.add(b),g.target=b;let E=()=>{if(!this.stopRendering){M.update(),g.position.set(s.position.x,s.position.y,s.position.z),b.position.set(M.target.x,M.target.y,M.target.z),s.updateMatrix(),s.updateMatrixWorld();for(let e in a.sceneGraph.LODs)a.sceneGraph.LODs[e].update(s);this.renderer.render(r,s),requestAnimationFrame(E)}};E(),this.orbitControls=M,this.camera=s,this.scene3D=r,this.planData=a}componentWillUnmount(){this.orbitControls.dispose(),this.stopRendering=!0,this.renderer.domElement.removeEventListener("mousedown",this.mouseDownEvent),this.renderer.domElement.removeEventListener("mouseup",this.mouseUpEvent),Object(d.b)(this.scene3D),this.scene3D.remove(this.planData.plan),this.scene3D.remove(this.planData.grid),this.scene3D=null,this.planData=null}componentWillReceiveProps(e){let{width:t,height:n}=e,{camera:o,renderer:r,scene3D:a}=this,i={areaActions:this.context.areaActions,holesActions:this.context.holesActions,itemsActions:this.context.itemsActions,linesActions:this.context.linesActions,projectActions:this.context.projectActions};if(this.width=t,this.height=n,o.aspect=t/n,o.updateProjectionMatrix(),e.state.scene!==this.props.state.scene){let t=f()(this.props.state.scene,e.state.scene);Object(u.b)(this.planData,e.state.scene,this.props.state.scene,t.toJS(),i,this.context.catalog)}r.setSize(t,n)}render(){return r.a.createElement("div",{ref:"canvasWrapper"})}}t.a=g,g.propTypes={state:i.a.object.isRequired,width:i.a.number.isRequired,height:i.a.number.isRequired},g.contextTypes={areaActions:i.a.object.isRequired,holesActions:i.a.object.isRequired,itemsActions:i.a.object.isRequired,linesActions:i.a.object.isRequired,projectActions:i.a.object.isRequired,catalog:i.a.object}},function(e,t,n){"use strict";t.a=function(e){let t=new o.Object3D;return e.guides.forEach(n=>{switch(n.type){case"horizontal-streak":t.add(Object(r.a)(e.width,e.height,n));break;case"vertical-streak":t.add(Object(a.a)(e.width,e.height,n))}}),t.position.y=-1,t};var o=n(1),r=n(409),a=n(410)},function(e,t,n){"use strict";var o=n(1),r=n(172),a=n(8),i=(n.n(a),n(4));t.a=function(e,t,n){let s,l=n.properties.get("step");s=n.properties.has("color")?new a.List([n.properties.get("color")]):n.properties.get("colors");let c=(new o.FontLoader).parse(r.a),u=new o.Object3D,d=0;for(let n=0;n<=t;n+=l){let t=new o.Geometry;t.vertices.push(new o.Vector3(0,0,-n)),t.vertices.push(new o.Vector3(e,0,-n));let r=s.get(d%s.size),a=new o.LineBasicMaterial({color:r});if(d%5==0){let e=new o.TextGeometry(d*l,{size:16,height:1,font:c}),t=new o.MeshBasicMaterial({color:i.a.black}),r=new o.Mesh(e,t);r.rotation.x-=Math.PI/2,r.position.set(-90,0,-n),u.add(r)}u.add(new o.LineSegments(t,a)),d++}return u}},function(e,t,n){"use strict";var o=n(1),r=n(172),a=n(8),i=(n.n(a),n(4));t.a=function(e,t,n){let s,l=n.properties.get("step");s=n.properties.has("color")?new a.List([n.properties.get("color")]):n.properties.get("colors");let c=(new o.FontLoader).parse(r.a),u=new o.Object3D,d=0;for(let n=0;n<=e;n+=l){let e=new o.Geometry;e.vertices.push(new o.Vector3(n,0,0)),e.vertices.push(new o.Vector3(n,0,-t));let r=s.get(d%s.size),a=new o.LineBasicMaterial({color:r});if(d%5==0){let e=new o.TextGeometry(d*l,{size:16,height:1,font:c}),t=new o.MeshBasicMaterial({color:i.a.black}),r=new o.Mesh(e,t);r.rotation.x-=Math.PI/2,r.position.set(n-20,0,50),u.add(r)}u.add(new o.LineSegments(e,a)),d++}return u}},function(e,t,n){var o=window.THREE||n(1);let r;e.exports=r=function(e,t){function n(){return Math.pow(.95,g.zoomSpeed)}function r(e){O.theta-=e}function a(e){O.phi-=e}function i(e){g.object instanceof o.PerspectiveCamera?T/=e:g.object instanceof o.OrthographicCamera?(g.object.zoom=Math.max(g.minZoom,Math.min(g.maxZoom,g.object.zoom*e)),g.object.updateProjectionMatrix(),q=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),g.enableZoom=!1)}function s(e){g.object instanceof o.PerspectiveCamera?T*=e:g.object instanceof o.OrthographicCamera?(g.object.zoom=Math.max(g.minZoom,Math.min(g.maxZoom,g.object.zoom/e)),g.object.updateProjectionMatrix(),q=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),g.enableZoom=!1)}function l(e){if(!1!==g.enabled){if(e.preventDefault(),e.button===g.mouseButtons.ORBIT){if(!1===g.enableRotate)return;!function(e){P.set(e.clientX,e.clientY)}(e),b=M.ROTATE}else if(e.button===g.mouseButtons.ZOOM){if(!1===g.enableZoom)return;!function(e){L.set(e.clientX,e.clientY)}(e),b=M.DOLLY}else if(e.button===g.mouseButtons.PAN){if(!1===g.enablePan)return;!function(e){S.set(e.clientX,e.clientY)}(e),b=M.PAN}b!==M.NONE&&(document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",u,!1),g.dispatchEvent(x))}}function c(e){if(!1!==g.enabled)if(b===M.ROTATE){if(!1===g.enableRotate)return;!function(e){D.set(e.clientX,e.clientY),C.subVectors(D,P);var t=g.domElement===document?g.domElement.body:g.domElement;r(2*Math.PI*C.x/t.clientWidth*g.rotateSpeed),a(2*Math.PI*C.y/t.clientHeight*g.rotateSpeed),P.copy(D),g.update()}(e)}else if(b===M.DOLLY){if(!1===g.enableZoom)return;!function(e){A.set(e.clientX,e.clientY),R.subVectors(A,L),R.y>0?i(n()):R.y<0&&s(n()),L.copy(A),g.update()}(e)}else if(b===M.PAN){if(!1===g.enablePan)return;!function(e){G.set(e.clientX,e.clientY),k.subVectors(G,S),B(k.x,k.y),S.copy(G),g.update()}(e)}}function u(e){!1!==g.enabled&&(document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseup",u,!1),g.dispatchEvent(v),b=M.NONE)}function d(e){!1===g.enabled||!1===g.enableZoom||b!==M.NONE&&b!==M.ROTATE||(e.stopPropagation(),function(e){e.deltaY<0?s(n()):e.deltaY>0&&i(n()),g.update()}(e),g.dispatchEvent(x),g.dispatchEvent(v))}function p(e){!1!==g.enabled&&!1!==g.enableKeys&&!1!==g.enablePan&&function(e){switch(e.keyCode){case g.keys.UP:B(0,g.keyPanSpeed),g.update();break;case g.keys.BOTTOM:B(0,-g.keyPanSpeed),g.update();break;case g.keys.LEFT:B(g.keyPanSpeed,0),g.update();break;case g.keys.RIGHT:B(-g.keyPanSpeed,0),g.update()}}(e)}function h(e){if(!1!==g.enabled){switch(e.touches.length){case 1:if(!1===g.enableRotate)return;!function(e){P.set(e.touches[0].pageX,e.touches[0].pageY)}(e),b=M.TOUCH_ROTATE;break;case 2:if(!1===g.enableZoom)return;!function(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,o=Math.sqrt(t*t+n*n);L.set(0,o)}(e),b=M.TOUCH_DOLLY;break;case 3:if(!1===g.enablePan)return;!function(e){S.set(e.touches[0].pageX,e.touches[0].pageY)}(e),b=M.TOUCH_PAN;break;default:b=M.NONE}b!==M.NONE&&g.dispatchEvent(x)}}function m(e){if(!1!==g.enabled)switch(e.stopPropagation(),e.touches.length){case 1:if(!1===g.enableRotate)return;if(b!==M.TOUCH_ROTATE)return;!function(e){D.set(e.touches[0].pageX,e.touches[0].pageY),C.subVectors(D,P);var t=g.domElement===document?g.domElement.body:g.domElement;r(2*Math.PI*C.x/t.clientWidth*g.rotateSpeed),a(2*Math.PI*C.y/t.clientHeight*g.rotateSpeed),P.copy(D),g.update()}(e);break;case 2:if(!1===g.enableZoom)return;if(b!==M.TOUCH_DOLLY)return;!function(e){var t=e.touches[0].pageX-e.touches[1].pageX,o=e.touches[0].pageY-e.touches[1].pageY,r=Math.sqrt(t*t+o*o);A.set(0,r),R.subVectors(A,L),R.y>0?s(n()):R.y<0&&i(n()),L.copy(A),g.update()}(e);break;case 3:if(!1===g.enablePan)return;if(b!==M.TOUCH_PAN)return;!function(e){G.set(e.touches[0].pageX,e.touches[0].pageY),k.subVectors(G,S),B(k.x,k.y),S.copy(G),g.update()}(e);break;default:b=M.NONE}}function f(e){!1!==g.enabled&&(g.dispatchEvent(v),b=M.NONE)}function y(e){e.preventDefault()}this.object=e,this.domElement=void 0!==t?t:document,this.enabled=!0,this.target=new o.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:o.MOUSE.LEFT,ZOOM:o.MOUSE.MIDDLE,PAN:o.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return _.phi},this.getAzimuthalAngle=function(){return _.theta},this.reset=function(){g.target.copy(g.target0),g.object.position.copy(g.position0),g.object.zoom=g.zoom0,g.object.updateProjectionMatrix(),g.dispatchEvent(w),g.update(),b=M.NONE},this.update=function(){var t=new o.Vector3,n=(new o.Quaternion).setFromUnitVectors(e.up,new o.Vector3(0,1,0)),a=n.clone().inverse(),i=new o.Vector3,s=new o.Quaternion;return function(){var e=g.object.position;return t.copy(e).sub(g.target),t.applyQuaternion(n),_.setFromVector3(t),g.autoRotate&&b===M.NONE&&r(2*Math.PI/60/60*g.autoRotateSpeed),_.theta+=O.theta,_.phi+=O.phi,_.theta=Math.max(g.minAzimuthAngle,Math.min(g.maxAzimuthAngle,_.theta)),_.phi=Math.max(g.minPolarAngle,Math.min(g.maxPolarAngle,_.phi)),_.makeSafe(),_.radius*=T,_.radius=Math.max(g.minDistance,Math.min(g.maxDistance,_.radius)),g.target.add(I),t.setFromSpherical(_),t.applyQuaternion(a),e.copy(g.target).add(t),g.object.lookAt(g.target),!0===g.enableDamping?(O.theta*=1-g.dampingFactor,O.phi*=1-g.dampingFactor):O.set(0,0,0),T=1,I.set(0,0,0),!!(q||i.distanceToSquared(g.object.position)>E||8*(1-s.dot(g.object.quaternion))>E)&&(g.dispatchEvent(w),i.copy(g.object.position),s.copy(g.object.quaternion),q=!1,!0)}}(),this.dispose=function(){g.domElement.removeEventListener("contextmenu",y,!1),g.domElement.removeEventListener("mousedown",l,!1),g.domElement.removeEventListener("wheel",d,!1),g.domElement.removeEventListener("touchstart",h,!1),g.domElement.removeEventListener("touchend",f,!1),g.domElement.removeEventListener("touchmove",m,!1),document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseup",u,!1),window.removeEventListener("keydown",p,!1)};var g=this,w={type:"change"},x={type:"start"},v={type:"end"},M={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},b=M.NONE,E=1e-6,_=new o.Spherical,O=new o.Spherical,T=1,I=new o.Vector3,q=!1,P=new o.Vector2,D=new o.Vector2,C=new o.Vector2,S=new o.Vector2,G=new o.Vector2,k=new o.Vector2,L=new o.Vector2,A=new o.Vector2,R=new o.Vector2,N=function(){var e=new o.Vector3;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),I.add(e)}}(),j=function(){var e=new o.Vector3;return function(t,n){e.setFromMatrixColumn(n,1),e.multiplyScalar(t),I.add(e)}}(),B=function(){var e=new o.Vector3;return function(t,n){var r=g.domElement===document?g.domElement.body:g.domElement;if(g.object instanceof o.PerspectiveCamera){var a=g.object.position;e.copy(a).sub(g.target);var i=e.length();i*=Math.tan(g.object.fov/2*Math.PI/180),N(2*t*i/r.clientHeight,g.object.matrix),j(2*n*i/r.clientHeight,g.object.matrix)}else g.object instanceof o.OrthographicCamera?(N(t*(g.object.right-g.object.left)/g.object.zoom/r.clientWidth,g.object.matrix),j(n*(g.object.top-g.object.bottom)/g.object.zoom/r.clientHeight,g.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),g.enablePan=!1)}}();g.domElement.addEventListener("contextmenu",y,!1),g.domElement.addEventListener("mousedown",l,!1),g.domElement.addEventListener("wheel",d,{passive:!0}),g.domElement.addEventListener("touchstart",h,{passive:!0}),g.domElement.addEventListener("touchend",f,{passive:!0}),g.domElement.addEventListener("touchmove",m,{passive:!0}),window.addEventListener("keydown",p,{passive:!0}),this.update()},(r.prototype=Object.create(o.EventDispatcher.prototype)).constructor=r,Object.defineProperties(r.prototype,{center:{get:function(){return console.warn("THREE.OrbitControls: .center has been renamed to .target"),this.target}},noZoom:{get:function(){return console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),!this.enableZoom},set:function(e){console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),this.enableZoom=!e}},noRotate:{get:function(){return console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),!this.enableRotate},set:function(e){console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),this.enableRotate=!e}},noPan:{get:function(){return console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),!this.enablePan},set:function(e){console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),this.enablePan=!e}},noKeys:{get:function(){return console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),!this.enableKeys},set:function(e){console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),this.enableKeys=!e}},staticMoving:{get:function(){return console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),!this.enableDamping},set:function(e){console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),this.enableDamping=!e}},dynamicDampingFactor:{get:function(){return console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor},set:function(e){console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor=e}}})},function(e,t,n){"use strict";var o=n(8);e.exports={isMap:function(e){return o.Iterable.isKeyed(e)},isIndexed:function(e){return o.Iterable.isIndexed(e)},op:function(e,t,n){return"remove"===e?{op:e,path:t}:{op:e,path:t,value:n}}}},function(e,t,n){"use strict";function o(e,t){for(var n=e.size||0,o=t.size||0,i=a(n+1,o+1,0),s=0;s<n;s++)for(var l=0;l<o;l++)r.is(e.get(s),t.get(l))?i[s+1][l+1]=i[s][l]+1:i[s+1][l+1]=Math.max(i[s+1][l],i[s][l+1]);return i}var r=n(8),a=function(e,t,n){for(var o=[],r=0;r<e;r++)if(o[r]=new Array(t),null!=n)for(var a=0;a<t;a++)o[r][a]=n;return o},i=r.Record({op:"=",val:null}),s=r.Record({op:"!=",val:null,newVal:null}),l=function(e,t,n,o,a){for(var l=[],c=o-1,u=a-1;c>=0||u>=0;)c>=0&&u>=0&&r.is(t.get(c),n.get(u))?(l.push(new i({op:"=",val:t.get(c)})),c-=1,u-=1):c>=0&&u>=0&&c===u&&!r.is(t.get(c),n.get(u))?(l.push(new s({val:t.get(c),newVal:n.get(c)})),c-=1,u-=1):u>=0&&(-1===c||e[c+1][u]>=e[c][u+1])?(l.push(new i({op:"+",val:n.get(u)})),u-=1):c>=0&&(-1===u||e[c+1][u]<e[c][u+1])&&(l.push(new i({op:"-",val:t.get(c)})),c-=1);return l.reverse()},c=function(e,t,n){for(var o=[],a=e.size,i=t.size;0!==a&&0!==i;)n[a][i]===n[a-1][i]?a--:n[a][i]===n[a][i-1]?i--:r.is(e.get(a-1),t.get(i-1))&&(o.push(e.get(a-1)),a--,i--);return o.reverse()};e.exports={lcs:function(e,t){var n=o(e,t);return c(e,t,n)},computeLcsMatrix:o,diff:function(e,t){var n=o(e,t);return l(n,e,t,e.size||0,t.size||0)}}},function(e,t,n){"use strict";var o=new RegExp("/","g"),r=new RegExp("~1","g"),a=/~/g,i=/~0/g,s={escape:function(e){if("number"==typeof e)return e.toString();if("string"!=typeof e)throw"param str ("+e+") is not a string";return e.replace(a,"~0").replace(o,"~1")},unescape:function(e){return"string"==typeof e?e.replace(r,"/").replace(i,"~"):e},concat:function(e,t){return e+"/"+t}};e.exports=s},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(30),l=n.n(s),c=n(1),u=n(171),d=n(92),p=n(43),h=n.n(p),m=n(416),f=n(418),y=n(4);class g extends r.a.Component{constructor(e){super(e),this.width=e.width,this.height=e.height,this.stopRendering=!1,this.renderer=window.__threeRenderer||new c.WebGLRenderer({preserveDrawingBuffer:!0}),window.__threeRenderer=this.renderer}componentDidMount(){let e=performance.now(),t=new c.Vector3,n=!1,o=!1,r=!1,a=!1,{catalog:i}=this.context,s={areaActions:this.context.areaActions,holesActions:this.context.holesActions,itemsActions:this.context.itemsActions,linesActions:this.context.linesActions,projectActions:this.context.projectActions},{state:d}=this.props,p=d.scene,h=l.a.findDOMNode(this.refs.canvasWrapper),g=new c.Scene,w=new c.Scene;this.renderer.setClearColor(new c.Color(y.a.white)),this.renderer.setSize(this.width,this.height),this.planData=Object(u.a)(p,s,i),g.add(this.planData.plan);let x=this.width/this.height,v=new c.PerspectiveCamera(45,x,.1,3e5);w.add(v),v.position.set(0,0,0),v.up=new c.Vector3(0,1,0);let M=new c.AmbientLight(11513775);g.add(M);let b=new c.PointLight(y.a.white,.4,1e3);b.position.set(0,0,0),g.add(b),document.body.requestPointerLock=document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock,document.body.requestPointerLock();let{controls:E,pointerlockChangeEvent:_,requestPointerLockEvent:O}=Object(m.a)(v,this.renderer.domElement);this.controls=E,this.pointerlockChangeListener=_,this.requestPointerLockEvent=O;let T=this.planData.boundingBox.min.y+(this.planData.boundingBox.min.y-this.planData.boundingBox.max.y)/2+170;this.controls.getObject().position.set(-50,T,-100),w.add(this.controls.getObject()),this.keyDownEvent=(e=>{let t=Object(f.a)(e,n,r,o,a);n=t.moveForward,r=t.moveLeft,o=t.moveBackward,a=t.moveRight}),this.keyUpEvent=(e=>{let t=Object(f.b)(e,n,r,o,a);n=t.moveForward,r=t.moveLeft,o=t.moveBackward,a=t.moveRight}),document.addEventListener("keydown",this.keyDownEvent),document.addEventListener("keyup",this.keyUpEvent);let I=new c.Object3D,q=new c.MeshBasicMaterial({depthTest:!1,depthWrite:!1,color:y.a.black}),P=new c.Geometry;P.vertices.push(new c.Vector3(-10,0,0)),P.vertices.push(new c.Vector3(10,0,0));let D=new c.Line(P,q);D.position.z-=100;let C=new c.Geometry;C.vertices.push(new c.Vector3(0,10,0)),C.vertices.push(new c.Vector3(0,-10,0));let S=new c.Line(C,q);S.renderDepth=1e20,S.position.z-=100;let G=new c.Geometry;G.vertices.push(new c.Vector3(-1,1,0)),G.vertices.push(new c.Vector3(1,1,0)),G.vertices.push(new c.Vector3(1,-1,0)),G.vertices.push(new c.Vector3(-1,-1,0)),G.vertices.push(new c.Vector3(-1,1,0));let k=new c.Line(G,q);k.position.z-=100,I.add(D),I.add(S),I.add(k),v.add(I);let L=[this.planData.plan],A=new c.Vector2(0,0),R=new c.Raycaster;this.firstPersonMouseDown=(e=>{if(this.controls.enabled){e.preventDefault(),R.setFromCamera(A,v);let t=R.intersectObjects(L,!0);t.length>0&&!isNaN(t[0].distance)?t[0].object.interact&&t[0].object.interact():this.context.projectActions.unselectAll()}}),document.addEventListener("mousedown",this.firstPersonMouseDown,!1),this.renderer.domElement.style.display="block",h.appendChild(this.renderer.domElement),this.renderer.autoClear=!1;let N=()=>{if(!this.stopRendering){T=this.planData.boundingBox.min.y+170,this.controls.getObject().position.y=T;let i=performance.now(),s=(i-e)/200;t.x-=10*t.x*s,t.z-=10*t.z*s,n&&(t.z-=400*s),o&&(t.z+=400*s),r&&(t.x-=400*s),a&&(t.x+=400*s),this.controls.getObject().translateX(t.x*s),this.controls.getObject().translateZ(t.z*s),e=i;let l=this.controls.getObject().position;b.position.set(l.x,l.y,l.z);for(let e in this.planData.sceneGraph.LODs)this.planData.sceneGraph.LODs[e].update(v);this.renderer.clear(),this.renderer.render(g,v),this.renderer.clearDepth(),this.renderer.render(w,v),requestAnimationFrame(N)}};N(),this.camera=v,this.scene3D=g,this.sceneOnTop=w}componentWillUnmount(){this.stopRendering=!0,this.renderer.autoClear=!0,document.removeEventListener("mousedown",this.firstPersonMouseDown),document.removeEventListener("keydown",this.keyDownEvent),document.removeEventListener("keyup",this.keyUpEvent),document.removeEventListener("pointerlockchange",this.pointerlockChangeEvent),document.removeEventListener("mozpointerlockchange",this.pointerlockChangeEvent),document.removeEventListener("webkitpointerlockchange",this.pointerlockChangeEvent),this.renderer.domElement.removeEventListener("click",this.requestPointerLockEvent),Object(d.b)(this.scene3D),this.scene3D.remove(this.planData.plan),this.scene3D=null,this.planData=null}componentWillReceiveProps(e){let{width:t,height:n}=e,{camera:o,renderer:r,scene3D:a,sceneOnTop:i,planData:s}=this,l={areaActions:this.context.areaActions,holesActions:this.context.holesActions,itemsActions:this.context.itemsActions,linesActions:this.context.linesActions,projectActions:this.context.projectActions};if(this.width=t,this.height=n,o.aspect=t/n,o.updateProjectionMatrix(),e.scene!==this.props.state.scene){let t=h()(this.props.state.scene,e.state.scene);Object(u.b)(s,e.state.scene,this.props.state.scene,t.toJS(),l,this.context.catalog)}r.setSize(t,n),r.clear(),r.render(a,o),r.clearDepth(),r.render(i,o)}render(){return r.a.createElement("div",{ref:"canvasWrapper"})}}t.a=g,g.propTypes={state:i.a.object.isRequired,width:i.a.number.isRequired,height:i.a.number.isRequired},g.contextTypes={areaActions:i.a.object.isRequired,holesActions:i.a.object.isRequired,itemsActions:i.a.object.isRequired,linesActions:i.a.object.isRequired,projectActions:i.a.object.isRequired,catalog:i.a.object}},function(e,t,n){"use strict";t.a=function(e,t){let n=e=>{a.enabled=!a.enabled},o=e=>{document.body.requestPointerLock=document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock,document.body.requestPointerLock()};"pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document?(document.addEventListener("pointerlockchange",n,!1),document.addEventListener("mozpointerlockchange",n,!1),document.addEventListener("webkitpointerlockchange",n,!1),t.addEventListener("click",o)):console.log("Your browser doesn't seem to support Pointer Lock API");let a=new r.a(e);return{controls:a,pointerlockChangeEvent:n,requestPointerLockEvent:o}};var o=n(417),r=n.n(o)},function(e,t,n){var o=window.THREE||n(1);let r;e.exports=r=function(e){var t=this;e.rotation.set(0,0,0);var n=new o.Object3D;n.add(e);var r=new o.Object3D;r.position.y=10,r.add(n);var a=Math.PI/2,i=function(e){if(!1!==t.enabled){var o=e.movementX||e.mozMovementX||e.webkitMovementX||0,i=e.movementY||e.mozMovementY||e.webkitMovementY||0;r.rotation.y-=.002*o,n.rotation.x-=.002*i,n.rotation.x=Math.max(-a,Math.min(a,n.rotation.x))}};this.dispose=function(){document.removeEventListener("mousemove",i,!1)},document.addEventListener("mousemove",i,!1),this.enabled=!1,this.getObject=function(){return r},this.getDirection=function(){var e=new o.Vector3(0,0,-1),t=new o.Euler(0,0,0,"YXZ");return function(o){return t.set(n.rotation.x,r.rotation.y,0),o.copy(e).applyEuler(t),o}}()}},function(e,t,n){"use strict";t.a=function(e,t,n,o,r){switch(e.keyCode){case 38:case 87:t=!0;break;case 37:case 65:n=!0;break;case 40:case 83:o=!0;break;case 39:case 68:r=!0}return{moveForward:t,moveLeft:n,moveBackward:o,moveRight:r}},t.b=function(e,t,n,o,r){switch(e.keyCode){case 38:case 87:t=!1;break;case 37:case 65:n=!1;break;case 40:case 83:o=!1;break;case 39:case 68:r=!1}return{moveForward:t,moveLeft:n,moveBackward:o,moveRight:r}}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(420),l=n(422),c=n(424),u=n(426),d=n(108),p=n(109),h=n(4),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const f={position:"fixed",width:"calc( 100% - 51px)",height:"calc( 100% - 20px)",backgroundColor:"#FFF",padding:"1em",left:50,overflowY:"auto",overflowX:"hidden",zIndex:10},y={display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(14em, 1fr))",gridGap:"10px",marginTop:"1em"},g={width:"100%",height:"3em",padding:"0.625em",background:"#f7f7f9",border:"1px solid #e1e1e8",cursor:"pointer",position:"relative",boxShadow:"0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)",borderRadius:"2px",transition:"all .2s ease-in-out",WebkitTransition:"all .2s ease-in-out",marginBottom:"1em"},w={width:"8em",display:"inline-block"},x={width:"calc( 100% - 10em )",height:"2em",margin:"0",padding:"0 1em",border:"1px solid #EEE"},v=m({},g,{padding:"0.2em 0.625em"}),M={width:"auto",height:"2em",lineHeight:"2em",textAlign:"center",borderRadius:"1em",display:"inline-block",cursor:"pointer",backgroundColor:h.c.alt,color:h.c.text_main,textTransform:"capitalize",margin:"0.25em",padding:"0 1em"};class b extends o.Component{constructor(e,t){super(e);let n=e.state.catalog.page,o=t.catalog.getCategory(n),r=(o.categories,o.elements.filter(e=>!e.info.visibility||e.info.visibility.catalog));this.state={categories:o.categories,elements:r,matchString:"",matchedElements:[]}}flattenCategories(e){let t=[];for(let n=0;n<e.length;n++){let o=e[n];t=t.concat(o.elements),o.categories.length&&(t=t.concat(this.flattenCategories(o.categories)))}return t}matcharray(e){let t=this.state.elements.concat(this.flattenCategories(this.state.categories)),n=[];if(""!=e){let o=new RegExp(e,"i");for(let e=0;e<t.length;e++)o.test(t[e].info.title)&&n.push(t[e])}this.setState({matchString:e,matchedElements:n})}select(e){switch(e.prototype){case"lines":this.context.linesActions.selectToolDrawingLine(e.name);break;case"items":this.context.itemsActions.selectToolDrawingItem(e.name);break;case"holes":this.context.holesActions.selectToolDrawingHole(e.name)}this.context.projectActions.pushLastSelectedCatalogElementToHistory(e)}render(){let e=this.props.state.catalog.page,t=this.context.catalog.getCategory(e),n=t.categories,o=t.elements.filter(e=>!e.info.visibility||e.info.visibility.catalog),a=null;if("root"!==e){let e=[];this.props.state.catalog.path.forEach(t=>{e.push({name:this.context.catalog.getCategory(t).label,action:()=>projectActions.goBackToCatalogPage(t)})}),e.push({name:t.label,action:""}),a=r.a.createElement(l.a,{names:e})}let i=this.props.state.catalog.path.size,h=i>0?r.a.createElement(u.a,{key:i,page:this.context.catalog.categories[this.props.state.catalog.path.get(i-1)]}):null,b=this.props.state.get("selectedElementsHistory"),E=b.map((e,t)=>r.a.createElement("div",{key:t,style:M,title:e.name,onClick:()=>this.select(e)},e.name));return r.a.createElement(d.a,{width:this.props.width,height:this.props.height,style:m({},f,this.props.style)},r.a.createElement(p.a,null,this.context.translator.t("Catalog")),a,r.a.createElement("div",{style:g},r.a.createElement("span",{style:w},this.context.translator.t("Search Element")),r.a.createElement("input",{type:"text",style:x,onChange:e=>{this.matcharray(e.target.value)}})),b.size?r.a.createElement("div",{style:v},r.a.createElement("span",null,this.context.translator.t("Last Selected")),E):null,r.a.createElement("div",{style:y},""===this.state.matchString?[h,n.map(e=>r.a.createElement(c.a,{key:e.name,page:e,oldPage:t})),o.map(e=>r.a.createElement(s.a,{key:e.name,element:e}))]:this.state.matchedElements.map(e=>r.a.createElement(s.a,{key:e.name,element:e}))))}}t.a=b,b.propTypes={state:i.a.object.isRequired,width:i.a.number.isRequired,height:i.a.number.isRequired,style:i.a.object},b.contextTypes={catalog:i.a.object.isRequired,translator:i.a.object.isRequired,itemsActions:i.a.object.isRequired,linesActions:i.a.object.isRequired,holesActions:i.a.object.isRequired,projectActions:i.a.object.isRequired}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(421),l=n.n(s),c=n(8),u=(n.n(c),n(4)),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const p={width:"14em",height:"14em",padding:"0.625em",background:"#f7f7f9",border:"1px solid #e1e1e8",cursor:"pointer",position:"relative",boxShadow:"0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)",borderRadius:"2px",transition:"all .15s ease-in-out",WebkitTransition:"all .15s ease-in-out",alignSelf:"center",justifySelf:"center"},h=d({},p,{background:u.d.main}),m={width:"100%",textAlign:"center",display:"block",marginBottom:".5em",textTransform:"capitalize"},f=d({},m,{color:u.a.white}),y={width:"100%",height:"8em",position:"relative",overflow:"hidden",border:"solid 1px #e6e6e6",padding:0,margin:0,marginBottom:"5px"},g={position:"absolute",background:"#222",width:"100%",height:"100%",backgroundSize:"contain",backgroundPosition:"50% 50%",backgroundColor:u.a.white,backgroundRepeat:"no-repeat",transition:"all .2s ease-in-out"},w=d({},g,{transform:"scale(1.2)"}),x={marginTop:"1.5em",color:u.d.main,fontSize:"2em",opacity:"0.7",width:"100%"},v={display:"block",display:"-webkit-box",height:"2em",margin:"0 auto",fontSize:"0.75em",fontStyle:"italic",lineHeight:"1em",WebkitLineClamp:"2",WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},M={listStyle:"none",margin:"0px",padding:"0px",fontSize:"11px",marginBottom:"3px"},b={display:"inline-block",background:"#337ab7",color:u.a.white,padding:"1px 4px",marginRight:"3px",borderRadius:"3px"};class E extends o.Component{constructor(e){super(e),this.state={hover:!1}}select(){let e=this.props.element;switch(e.prototype){case"lines":this.context.linesActions.selectToolDrawingLine(e.name);break;case"items":this.context.itemsActions.selectToolDrawingItem(e.name);break;case"holes":this.context.holesActions.selectToolDrawingHole(e.name)}this.context.projectActions.pushLastSelectedCatalogElementToHistory(e)}render(){let e=this.props.element,t=this.state.hover;return r.a.createElement("div",{style:t?h:p,onClick:e=>this.select(),onMouseEnter:e=>this.setState({hover:!0}),onMouseLeave:e=>this.setState({hover:!1})},r.a.createElement("b",{style:t?f:m},e.info.title),r.a.createElement("div",{style:y},r.a.createElement("div",{style:d({},t?w:g,{backgroundImage:"url("+e.info.image+")"})},t?r.a.createElement(l.a,{style:x}):null)),r.a.createElement("ul",{style:M},e.info.tag.map((e,t)=>r.a.createElement("li",{style:b,key:t},e))),r.a.createElement("div",{style:v},e.info.description))}}t.a=E,E.propTypes={element:i.a.object.isRequired},E.contextTypes={itemsActions:i.a.object.isRequired,linesActions:i.a.object.isRequired,holesActions:i.a.object.isRequired,projectActions:i.a.object.isRequired}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"})))},e.exports=t.default},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(423),l=n.n(s),c=n(4);const u={margin:"1.5em",display:"flex"},d={fontSize:"20px",cursor:"pointer"},p=(Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e})({},d,{fontWeight:"bolder",color:c.d.main}),h={fill:c.a.black,fontSize:"24px",marginLeft:"10px",marginRight:"10px"},m=({names:e})=>{let t=e.map((t,n)=>{let o=n===e.length-1;return r.a.createElement("div",{key:n,style:{display:"flex"}},r.a.createElement("div",{style:o?p:d,onClick:t.action},t.name),o?null:r.a.createElement(l.a,{style:h}))});return r.a.createElement("div",{style:u},t)};m.propTypes={names:i.a.arrayOf(i.a.object).isRequired},t.a=m},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m14.3 27.3l7.7-7.7-7.7-7.7 2.3-2.3 10 10-10 10z"})))},e.exports=t.default},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(425),l=n.n(s),c=n(4),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const d={width:"14em",height:"14em",padding:"0.625em",background:"#f7f7f9",border:"1px solid #e1e1e8",cursor:"pointer",position:"relative",boxShadow:"0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)",borderRadius:"2px",transition:"all .2s ease-in-out",WebkitTransition:"all .2s ease-in-out",alignSelf:"center",justifySelf:"center"},p=u({},d,{background:c.d.main}),h={width:"100%",position:"absolute",textAlign:"center",display:"block",marginBottom:".5em",padding:"1em",textTransform:"capitalize",WebkitTransition:"all .15s ease-in-out"},m=u({},h,{fontSize:"1.4em",transform:"translateY(-60px)",color:"rgb(28, 166, 252)",marginTop:"0.5em"}),f={position:"absolute",color:c.d.main,fontSize:"5em",width:"100%"},y={background:c.a.white,marginBottom:"5px",border:"solid 1px #EEE",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"};class g extends o.Component{constructor(e){super(e),this.state={hover:!1}}changePage(e){this.context.projectActions.changeCatalogPage(e,this.props.oldPage.name)}render(){let e=this.props.page,t=this.state.hover;return r.a.createElement("div",{style:t?p:d,onClick:t=>this.changePage(e.name),onMouseEnter:e=>this.setState({hover:!0}),onMouseLeave:e=>this.setState({hover:!1})},t?r.a.createElement("div",{style:y},r.a.createElement("b",{style:m},e.label),r.a.createElement(l.a,{style:f})):r.a.createElement("div",{style:y},r.a.createElement("b",{style:h},e.label)))}}t.a=g,g.propTypes={page:i.a.object.isRequired,oldPage:i.a.object.isRequired},g.contextTypes={projectActions:i.a.object.isRequired}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m16.6 10l10 10-10 10-2.3-2.3 7.7-7.7-7.7-7.7z"})))},e.exports=t.default},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(427),l=n.n(s),c=n(4),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const d={width:"14em",height:"14em",padding:"0.625em",background:"#f7f7f9",border:"1px solid #e1e1e8",margin:"0.3em",cursor:"pointer",position:"relative",boxShadow:"0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)",borderRadius:"2px",transition:"all .2s ease-in-out",WebkitTransition:"all .2s ease-in-out"},p=u({},d,{background:c.d.main}),h={position:"absolute",color:c.a.black,fontSize:"5em",width:"100%"},m=u({},h,{color:c.d.main}),f={background:c.a.white,marginBottom:"5px",border:"solid 1px #e6e6e6",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"};class y extends o.Component{constructor(e){super(e),this.state={hover:!1}}changePage(e){this.context.projectActions.goBackToCatalogPage(e)}render(){let e=this.props.page,t=this.state.hover;return r.a.createElement("div",{style:t?p:d,onClick:t=>this.changePage(e.name),onMouseEnter:e=>this.setState({hover:!0}),onMouseLeave:e=>this.setState({hover:!1})},r.a.createElement("div",{style:f},r.a.createElement(l.a,{style:t?m:h})))}}t.a=y,y.propTypes={page:i.a.object.isRequired},y.contextTypes={projectActions:i.a.object.isRequired}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m25.7 12.3l-7.7 7.7 7.7 7.7-2.3 2.3-10-10 10-10z"})))},e.exports=t.default},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(14);class l extends o.Component{constructor(e,t){super(e,t);let n=e.state.scene;this.state={dataWidth:n.width,dataHeight:n.height}}onSubmit(e){e.preventDefault();let{projectActions:t}=this.context,{dataWidth:n,dataHeight:o}=this.state;n=parseInt(n),o=parseInt(o),n<=100||o<=100?alert("Scene size too small"):t.setProjectProperties({width:n,height:o})}render(){let{width:e,height:t}=this.props,{dataWidth:n,dataHeight:o}=this.state,{projectActions:a,translator:i}=this.context;return r.a.createElement(s.c,{width:e,height:t},r.a.createElement(s.d,null,i.t("Project config")),r.a.createElement("form",{onSubmit:e=>this.onSubmit(e)},r.a.createElement(s.e,null,r.a.createElement(s.g,{htmlFor:"width"},i.t("width")),r.a.createElement(s.h,{id:"width",placeholder:"width",value:n,onChange:e=>this.setState({dataWidth:e.target.value})})),r.a.createElement(s.e,null,r.a.createElement(s.g,{htmlFor:"height"},i.t("height")),r.a.createElement(s.h,{id:"height",placeholder:"height",value:o,onChange:e=>this.setState({dataHeight:e.target.value})})),r.a.createElement("table",{style:{float:"right"}},r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(s.b,{size:"large",onClick:e=>a.rollback()},i.t("Cancel"))),r.a.createElement("td",null,r.a.createElement(s.j,{size:"large"},i.t("Save"))))))))}}t.a=l,l.propTypes={width:i.a.number.isRequired,height:i.a.number.isRequired,state:i.a.object.isRequired},l.contextTypes={projectActions:i.a.object.isRequired,translator:i.a.object.isRequired}},function(e,t,n){"use strict";var o=n(430),r=n(44),a=n(173),i=n(176),s=n(175);t.a={Sidebar:o.a,Panel:r.a,PanelLayers:a.a,PanelLayerElement:i.a,PanelGuides:s.a}},function(e,t,n){"use strict";function o({state:e,width:t,height:n,sidebarComponents:o}){return a.a.createElement("aside",{style:p({width:t,height:n},h),onKeyDown:e=>e.stopPropagation(),onKeyUp:e=>e.stopPropagation(),className:"sidebar"},a.a.createElement("div",{className:"layers"},a.a.createElement(c.a,{state:e})),a.a.createElement("div",{className:"layer-elements"},a.a.createElement(u.a,{mode:e.mode,layers:e.scene.layers,selectedLayer:e.scene.selectedLayer})),a.a.createElement("div",{className:"properties"},a.a.createElement(l.a,{state:e})),o.map((t,n)=>a.a.createElement(t,{state:e,key:n})))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(431),c=n(173),u=(n(175),n(176)),d=n(4),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const h={backgroundColor:d.c.main,display:"block",overflowY:"auto",overflowX:"hidden",paddingBottom:"20px"};o.propTypes={state:s.a.object.isRequired,width:s.a.number.isRequired,height:s.a.number.isRequired}},function(e,t,n){"use strict";function o({state:e},{projectActions:t,translator:n}){let{scene:o,mode:r}=e;if(![u.MODE_IDLE,u.MODE_2D_ZOOM_IN,u.MODE_2D_ZOOM_OUT,u.MODE_2D_PAN,u.MODE_3D_VIEW,u.MODE_3D_FIRST_PERSON,u.MODE_WAITING_DRAWING_LINE,u.MODE_DRAWING_LINE,u.MODE_DRAWING_HOLE,u.MODE_DRAWING_ITEM,u.MODE_DRAGGING_LINE,u.MODE_DRAGGING_VERTEX,u.MODE_DRAGGING_ITEM,u.MODE_DRAGGING_HOLE,u.MODE_ROTATING_ITEM,u.MODE_UPLOADING_IMAGE,u.MODE_FITTING_IMAGE].includes(r))return null;return a.a.createElement("div",null,o.layers.valueSeq().map(t=>Object(c.Seq)().concat(t.lines,t.holes,t.areas,t.items).filter(e=>e.selected).map(o=>((t,o)=>a.a.createElement(l.a,{key:t.id,name:n.t("Properties: [{0}] {1}",t.type,t.id)},a.a.createElement("div",{style:{padding:"5px 15px"}},a.a.createElement(d.a,{element:t,layer:o,state:e}))))(o,t)).valueSeq()))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(44),c=n(8),u=(n.n(c),n(5)),d=n(432);o.propTypes={state:s.a.object.isRequired},o.contextTypes={projectActions:s.a.object.isRequired,translator:s.a.object.isRequired}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(8),l=(n.n(s),n(84),n(63),n(110),n(433)),c=n(13),u=n(57),d=n(4),p=n(56),h=n.n(p),m=n(437),f=n.n(m),y=n(438),g=n.n(y),w=n(43),x=n.n(w);const v={margin:"0.5em 0.25em 0.5em 0",border:"2px solid "+d.d.alt,position:"relative",height:"2.5em",borderRadius:"2px"},M={position:"absolute",right:"0.5em",top:"0.5em"},b={float:"right",margin:"-3px 4px 0px 0px",padding:0,cursor:"pointer",fontSize:"1.4em"};class E extends o.Component{constructor(e,t){super(e,t),this.state={attributesFormData:this.initAttrData(this.props.element,this.props.layer,this.props.state),propertiesFormData:this.initPropData(this.props.element,this.props.layer,this.props.state)},this.updateAttribute=this.updateAttribute.bind(this)}shouldComponentUpdate(e,t){let{attributesFormData:n,propertiesFormData:o}=this.state,{attributesFormData:r,propertiesFormData:a}=t;return!!x()(n,r).size||(!!x()(o,a).size||!!x()(this.props.state.clipboardProperties,e.state.clipboardProperties).size)}componentWillReceiveProps({element:e,layer:t,state:n}){let{prototype:o,id:r}=e,a=this.props.state.get("scene"),i=a.getIn(["layers",a.get("selectedLayer")]);i.getIn([o,r]);x()(i,t).size&&this.setState({attributesFormData:this.initAttrData(e,t,n),propertiesFormData:this.initPropData(e,t,n)})}initAttrData(e,t,n){switch((e="object"==typeof e.misc?e.set("misc",new s.Map(e.misc)):e).prototype){case"items":return new s.Map(e);case"lines":{let n=t.vertices.get(e.vertices.get(0)),o=t.vertices.get(e.vertices.get(1)),r=c.pointsDistance(n.x,n.y,o.x,o.y),a=e.misc.get("_unitLength")||this.context.catalog.unit,i=h()(r).from(this.context.catalog.unit).to(a);return new s.Map({vertexOne:n,vertexTwo:o,lineLength:new s.Map({length:r,_length:i,_unit:a})})}case"holes":{let n=t.lines.get(e.line),{x:o,y:r}=t.vertices.get(n.vertices.get(0)),{x:a,y:i}=t.vertices.get(n.vertices.get(1)),l=c.pointsDistance(o,r,a,i),d=l*e.offset-e.properties.get("width").get("length")/2,p=e.misc.get("_unitA")||this.context.catalog.unit,m=h()(d).from(this.context.catalog.unit).to(p),f=l-l*e.offset-e.properties.get("width").get("length")/2,y=e.misc.get("_unitB")||this.context.catalog.unit,g=h()(f).from(this.context.catalog.unit).to(y);return new s.Map({offset:e.offset,offsetA:new s.Map({length:u.toFixedFloat(d,2),_length:u.toFixedFloat(m,2),_unit:p}),offsetB:new s.Map({length:u.toFixedFloat(f,2),_length:u.toFixedFloat(g,2),_unit:y})})}case"areas":return new s.Map({});default:return null}}initPropData(e,t,n){let{catalog:o}=this.context,r=o.getElement(e.type),a={};for(let t in r.properties)a[t]=new s.Map({currentValue:e.properties.has(t)?e.properties.get(t):Object(s.fromJS)(r.properties[t].defaultValue),configs:r.properties[t]});return new s.Map(a)}updateAttribute(e,t){let{attributesFormData:n}=this.state;switch(this.props.element.prototype){case"items":n=n.set(e,t);break;case"lines":switch(e){case"lineLength":{let e=n.get("vertexOne"),o=n.get("vertexTwo"),[r,a]=c.orderVertices([e,o]),i=c.extendLine(r.x,r.y,a.x,a.y,t.get("length"),2);n=n.withMutations(n=>{n.set(e===r?"vertexTwo":"vertexOne",a.merge(i)),n.set("lineLength",t)});break}case"vertexOne":case"vertexTwo":n=n.withMutations(n=>{n.set(e,n.get(e).merge(t));let o=c.verticesDistance(n.get("vertexOne"),n.get("vertexTwo"));n.mergeIn(["lineLength"],n.get("lineLength").merge({length:o,_length:h()(o).from(this.context.catalog.unit).to(n.get("lineLength").get("_unit"))}))});break;default:n=n.set(e,t)}break;case"holes":switch(e){case"offsetA":{let o=this.props.layer.lines.get(this.props.element.line),r=c.orderVertices([this.props.layer.vertices.get(o.vertices.get(0)),this.props.layer.vertices.get(o.vertices.get(1))]),[{x:a,y:i},{x:l,y:d}]=r,p=c.angleBetweenTwoPoints(a,i,l,d),m=c.pointsDistance(a,i,l,d),f=this.props.element.properties.get("width").get("length"),y=f/2,g=t.get("length");g=Math.max(g,0);let w=((g=Math.min(g,m-f))+y)*Math.cos(p)+a,x=(g+y)*Math.sin(p)+i,v=c.pointPositionOnLineSegment(a,i,l,d,w,x),M=u.toFixedFloat(m-m*v-y,2),b=n.getIn(["offsetB","_unit"]),E=new s.Map({length:M,_length:h()(M).from(this.context.catalog.unit).to(b),_unit:b});n=n.set("offsetB",E).set("offset",v);let _=new s.Map({length:u.toFixedFloat(g,2),_unit:t.get("_unit"),_length:u.toFixedFloat(h()(g).from(this.context.catalog.unit).to(t.get("_unit")),2)});n=n.set(e,_);break}case"offsetB":{let o=this.props.layer.lines.get(this.props.element.line),r=c.orderVertices([this.props.layer.vertices.get(o.vertices.get(0)),this.props.layer.vertices.get(o.vertices.get(1))]),[{x:a,y:i},{x:l,y:d}]=r,p=c.angleBetweenTwoPoints(a,i,l,d),m=c.pointsDistance(a,i,l,d),f=this.props.element.properties.get("width").get("length"),y=f/2,g=t.get("length");g=Math.max(g,0);let w=l-((g=Math.min(g,m-f))+y)*Math.cos(p),x=d-(g+y)*Math.sin(p),v=c.pointPositionOnLineSegment(a,i,l,d,w,x),M=u.toFixedFloat(m*v-y,2),b=n.getIn(["offsetA","_unit"]),E=new s.Map({length:M,_length:h()(M).from(this.context.catalog.unit).to(b),_unit:b});n=n.set("offsetA",E).set("offset",v);let _=new s.Map({length:u.toFixedFloat(g,2),_unit:t.get("_unit"),_length:u.toFixedFloat(h()(g).from(this.context.catalog.unit).to(t.get("_unit")),2)});n=n.set(e,_);break}default:n=n.set(e,t)}}this.setState({attributesFormData:n}),this.save({attributesFormData:n})}updateProperty(e,t){let{state:{propertiesFormData:n}}=this;n=n.setIn([e,"currentValue"],t),this.setState({propertiesFormData:n}),this.save({propertiesFormData:n})}reset(){this.setState({propertiesFormData:this.initPropData(this.props.element,this.props.layer,this.props.state)})}save({propertiesFormData:e,attributesFormData:t}){if(e){let t=e.map(e=>e.get("currentValue"));this.context.projectActions.setProperties(t)}if(t)switch(this.props.element.prototype){case"items":this.context.projectActions.setItemsAttributes(t);break;case"lines":this.context.projectActions.setLinesAttributes(t);break;case"holes":this.context.projectActions.setHolesAttributes(t)}}copyProperties(e){this.context.projectActions.copyProperties(e)}pasteProperties(){this.context.projectActions.pasteProperties()}render(){let{state:{propertiesFormData:e,attributesFormData:t},context:{projectActions:n,catalog:o,translator:a},props:{state:i,element:s}}=this;return r.a.createElement("div",null,r.a.createElement(l.a,{element:s,onUpdate:this.updateAttribute,attributeFormData:t,state:i}),r.a.createElement("div",{style:v},r.a.createElement("div",{style:M},r.a.createElement("div",{title:a.t("Copy"),style:b,onClick:e=>this.copyProperties(s.properties)},r.a.createElement(f.a,null)),i.get("clipboardProperties")?r.a.createElement("div",{title:a.t("Paste"),style:b,onClick:e=>this.pasteProperties()},r.a.createElement(g.a,null)):null)),e.entrySeq().map(([e,t])=>{let n=t.get("currentValue"),a=t.get("configs"),{Editor:l}=o.getPropertyType(a.type);return r.a.createElement(l,{key:e,propertyName:e,value:n,configs:a,onUpdate:t=>this.updateProperty(e,t),state:i,sourceElement:s,internalState:this.state})}))}}t.a=E,E.propTypes={state:i.a.object.isRequired,element:i.a.object.isRequired,layer:i.a.object.isRequired},E.contextTypes={projectActions:i.a.object.isRequired,catalog:i.a.object.isRequired,translator:i.a.object.isRequired}},function(e,t,n){"use strict";function o(e){let{element:t,onUpdate:n,onValid:o,attributeFormData:r,state:i}=e,s=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["element","onUpdate","onValid","attributeFormData","state"]);switch(t.prototype){case"items":return a.a.createElement(l.a,d({element:t,onUpdate:n,onValid:o,attributeFormData:r,state:i},s));case"lines":return a.a.createElement(c.a,d({element:t,onUpdate:n,onValid:o,attributeFormData:r,state:i},s));case"holes":return a.a.createElement(u.a,d({element:t,onUpdate:n,onValid:o,attributeFormData:r,state:i},s));case"areas":return null}return null}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(434),c=n(435),u=n(436),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};o.propTypes={element:s.a.object.isRequired,onUpdate:s.a.func.isRequired,onValid:s.a.func,attributeFormData:s.a.object.isRequired,state:s.a.object.isRequired}},function(e,t,n){"use strict";function o(e,{translator:t}){let{element:n,onUpdate:o,attributeFormData:r,state:i}=e,s=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["element","onUpdate","attributeFormData","state"]),m=r.has("name")?r.get("name"):n.name,f=r.has("x")?r.get("x"):n.x,y=r.has("y")?r.get("y"):n.y,g=r.has("rotation")?r.get("rotation"):n.rotation;return a.a.createElement("table",{style:d},a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",{style:p},t.t("Name")),a.a.createElement("td",null,a.a.createElement(c.a,{value:m,onChange:e=>o("name",e.target.value),style:h}))),a.a.createElement("tr",null,a.a.createElement("td",{style:p},"X"),a.a.createElement("td",null,a.a.createElement(l.a,u({value:f,onChange:e=>o("x",e.target.value),style:h,state:i,configs:{precision:2}},s)))),a.a.createElement("tr",null,a.a.createElement("td",{style:p},"Y"),a.a.createElement("td",null,a.a.createElement(l.a,u({value:y,onChange:e=>o("y",e.target.value),style:h,state:i,configs:{precision:2}},s)))),a.a.createElement("tr",null,a.a.createElement("td",{style:p},t.t("Rotation")),a.a.createElement("td",null,a.a.createElement(l.a,u({value:g,onChange:e=>o("rotation",e.target.value),style:h,state:i,configs:{precision:2}},s))))))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(64),c=n(36),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};let d={width:"100%"},p={width:"6em"},h={textAlign:"left"};o.propTypes={element:s.a.object.isRequired,onUpdate:s.a.func.isRequired,attributeFormData:s.a.object.isRequired,state:s.a.object.isRequired},o.contextTypes={translator:s.a.object.isRequired}},function(e,t,n){"use strict";function o(e,{translator:t}){let{element:n,onUpdate:o,attributeFormData:r,state:i}=e,s=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["element","onUpdate","attributeFormData","state"]),m=r.has("name")?r.get("name"):n.name,f=r.has("vertexOne")?r.get("vertexOne"):null,y=r.has("vertexTwo")?r.get("vertexTwo"):null,g=r.has("lineLength")?r.get("lineLength"):null;return a.a.createElement("div",null,a.a.createElement("table",{style:d},a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",{style:p},t.t("Name")),a.a.createElement("td",null,a.a.createElement(l.k,{value:m,onChange:e=>o("name",e.target.value),style:h}))),a.a.createElement("tr",null,a.a.createElement("td",{style:p},"X1"),a.a.createElement("td",null,a.a.createElement(l.h,u({value:f.get("x"),onChange:e=>o("vertexOne",{x:e.target.value}),style:h,state:i,configs:{precision:2}},s)))),a.a.createElement("tr",null,a.a.createElement("td",{style:p},"Y1"),a.a.createElement("td",null,a.a.createElement(l.h,u({value:f.get("y"),onChange:e=>o("vertexOne",{y:e.target.value}),style:h,state:i,configs:{precision:2}},s)))),a.a.createElement("tr",null,a.a.createElement("td",{style:p},"X2"),a.a.createElement("td",null,a.a.createElement(l.h,u({value:y.get("x"),onChange:e=>o("vertexTwo",{x:e.target.value}),style:h,state:i,configs:{precision:2}},s)))),a.a.createElement("tr",null,a.a.createElement("td",{style:p},"Y2"),a.a.createElement("td",null,a.a.createElement(l.h,u({value:y.get("y"),onChange:e=>o("vertexTwo",{y:e.target.value}),style:h,state:i,configs:{precision:2}},s)))))),a.a.createElement(c.e,{value:g,onUpdate:e=>o("lineLength",e),configs:{label:t.t("Length"),min:0,max:1/0,precision:2},state:i}))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(14),c=n(107),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const d={width:"100%"},p={width:"6em"},h={textAlign:"left"};o.propTypes={element:s.a.object.isRequired,onUpdate:s.a.func.isRequired,onValid:s.a.func,attributeFormData:s.a.object.isRequired,state:s.a.object.isRequired},o.contextTypes={translator:s.a.object.isRequired}},function(e,t,n){"use strict";function o(e,{translator:t}){let{element:n,onUpdate:o,attributeFormData:r,state:i}=e,s=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["element","onUpdate","attributeFormData","state"]),d=r.has("name")?r.get("name"):n.name,p=r.has("offsetA")?r.get("offsetA"):n.offsetA,h=r.has("offsetB")?r.get("offsetB"):n.offsetA;return a.a.createElement("div",null,a.a.createElement(c.a,u({value:d,onUpdate:e=>o("name",e),configs:{label:"Nome"},state:i},s)),a.a.createElement(l.a,u({value:p,onUpdate:e=>o("offsetA",e),configs:{label:"Offset 1",min:0,max:1/0,precision:2},state:i},s)),a.a.createElement(l.a,u({value:h,onUpdate:e=>o("offsetB",e),configs:{label:"Offset 2",min:0,max:1/0,precision:2},state:i},s)))}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(146),c=n(145),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};o.propTypes={element:s.a.object.isRequired,onUpdate:s.a.func.isRequired,attributeFormData:s.a.object.isRequired,state:s.a.object.isRequired},o.contextTypes={translator:s.a.object.isRequired}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m31.6 35v-23.4h-18.2v23.4h18.2z m0-26.6c1.8 0 3.4 1.4 3.4 3.2v23.4c0 1.8-1.6 3.4-3.4 3.4h-18.2c-1.8 0-3.4-1.6-3.4-3.4v-23.4c0-1.8 1.6-3.2 3.4-3.2h18.2z m-5-6.8v3.4h-20v23.4h-3.2v-23.4c0-1.8 1.4-3.4 3.2-3.4h20z"})))},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m31.6 33.4v-26.8h-3.2v5h-16.8v-5h-3.2v26.8h23.2z m-11.6-30c-0.9 0-1.6 0.7-1.6 1.6s0.7 1.6 1.6 1.6 1.6-0.7 1.6-1.6-0.7-1.6-1.6-1.6z m11.6 0c1.8 0 3.4 1.4 3.4 3.2v26.8c0 1.8-1.6 3.2-3.4 3.2h-23.2c-1.8 0-3.4-1.4-3.4-3.2v-26.8c0-1.8 1.6-3.2 3.4-3.2h6.9c0.7-2 2.5-3.4 4.7-3.4s4 1.4 4.7 3.4h6.9z"})))},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m37.1 21.4q-3.3-5.2-8.5-7.8 1.4 2.3 1.4 5 0 4.1-2.9 7t-7.1 3-7.1-3-2.9-7q0-2.7 1.4-5.1-5.1 2.7-8.5 7.9 2.9 4.6 7.4 7.3t9.7 2.7 9.7-2.7 7.4-7.3z m-16-8.5q0-0.5-0.3-0.8t-0.8-0.3q-2.8 0-4.8 2t-2 4.8q0 0.4 0.3 0.7t0.8 0.3 0.7-0.3 0.4-0.7q0-2 1.3-3.3t3.3-1.4q0.4 0 0.8-0.3t0.3-0.7z m18.9 8.5q0 0.8-0.4 1.6-3.2 5.1-8.4 8.2t-11.2 3.1-11.2-3.1-8.4-8.2q-0.4-0.8-0.4-1.6t0.4-1.5q3.2-5.1 8.4-8.2t11.2-3.1 11.1 3.1 8.5 8.2q0.4 0.8 0.4 1.5z"})))},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m30 18.3h-20c-1.8 0-3.3 1.5-3.3 3.4s1.5 3.3 3.3 3.3h20c1.8 0 3.3-1.5 3.3-3.3s-1.5-3.4-3.3-3.4z"})))},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m11.1 34.3l2-2-5.2-5.3-2 2v2.4h2.8v2.9h2.4z m11.7-20.7q0-0.5-0.5-0.5-0.2 0-0.4 0.1l-12.1 12.1q-0.1 0.2-0.1 0.4 0 0.5 0.4 0.5 0.3 0 0.4-0.2l12.1-12.1q0.2-0.1 0.2-0.3z m-1.2-4.3l9.3 9.3-18.6 18.5h-9.3v-9.2z m15.2 2.1q0 1.2-0.8 2l-3.7 3.7-9.3-9.2 3.7-3.7q0.8-0.9 2-0.9 1.2 0 2 0.9l5.3 5.2q0.8 0.9 0.8 2z"})))},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m15.9 30.7v-15.7q0-0.3-0.2-0.5t-0.5-0.2h-1.4q-0.3 0-0.5 0.2t-0.2 0.5v15.7q0 0.3 0.2 0.5t0.5 0.2h1.4q0.3 0 0.5-0.2t0.2-0.5z m5.7 0v-15.7q0-0.3-0.2-0.5t-0.5-0.2h-1.4q-0.3 0-0.5 0.2t-0.2 0.5v15.7q0 0.3 0.2 0.5t0.5 0.2h1.4q0.3 0 0.5-0.2t0.2-0.5z m5.8 0v-15.7q0-0.3-0.2-0.5t-0.6-0.2h-1.4q-0.3 0-0.5 0.2t-0.2 0.5v15.7q0 0.3 0.2 0.5t0.5 0.2h1.4q0.4 0 0.6-0.2t0.2-0.5z m-12.2-22.1h10l-1.1-2.6q-0.1-0.2-0.3-0.3h-7.1q-0.2 0.1-0.4 0.3z m20.7 0.7v1.4q0 0.3-0.2 0.5t-0.5 0.2h-2.1v21.2q0 1.8-1.1 3.2t-2.5 1.3h-18.6q-1.4 0-2.5-1.3t-1-3.1v-21.3h-2.2q-0.3 0-0.5-0.2t-0.2-0.5v-1.4q0-0.3 0.2-0.5t0.5-0.2h6.9l1.6-3.8q0.3-0.8 1.2-1.4t1.7-0.5h7.2q0.9 0 1.8 0.5t1.2 1.4l1.5 3.8h6.9q0.3 0 0.5 0.2t0.2 0.5z"})))},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m15.9 23.4c4.1 0 7.5-3.4 7.5-7.5s-3.4-7.5-7.5-7.5-7.5 3.3-7.5 7.5 3.3 7.5 7.5 7.5z m10 0l8.2 8.2-2.5 2.5-8.2-8.2v-1.4l-0.5-0.4c-1.9 1.6-4.4 2.5-7 2.5-6.1 0-10.9-4.7-10.9-10.7s4.8-10.9 10.9-10.9 10.7 4.8 10.7 10.9c0 2.6-0.9 5.1-2.5 7l0.4 0.5h1.4z"})))},e.exports=t.default},function(e,t,n){"use strict";var o=n(177),r=n(178),a=n(445);t.a={FooterToggleButton:o.a,FooterContentButton:r.a,FooterBar:a.a}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(91),l=n(177),c=n(178),u=n(20),d=n(5),p=n(4),h=n(179),m=(n.n(h),n(446)),f=n.n(m),y=n(447),g=n.n(y),w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const x={position:"absolute",bottom:0,lineHeight:"14px",fontSize:"12px",color:p.a.white,backgroundColor:p.d.alt,padding:"3px 1em",margin:0,boxSizing:"border-box",cursor:"default",userSelect:"none",zIndex:"9001"},v={position:"relative",borderRight:"1px solid #FFF",float:"left",padding:"0 1em",display:"inline-block"},M={position:"relative",borderLeft:"1px solid #FFF",float:"right",padding:"0 1em",display:"inline-block"},b={display:"inline-block",width:"6em",margin:0,padding:0};class E extends o.Component{constructor(e){super(e),this.state={}}render(){let{x:e,y:t}=this.props.state.get("mouse").toJS(),n=this.props.state.get("zoom"),o=this.props.state.get("mode"),a=this.props.state.get("errors").toArray(),i=a.map((e,t)=>r.a.createElement("div",{key:t,style:{borderBottom:"1px solid #555",lineHeight:"1.5em"}},"[ ",new Date(e.date).toLocaleString()," ] ",e.error)),h=a.length?{color:p.b[500].red}:{},m=a.length?{transform:"rotate(45deg)",color:p.b[500].red}:{transform:"rotate(45deg)"},y=this.props.state.get("warnings").toArray(),E=y.map((e,t)=>r.a.createElement("div",{key:t,style:{borderBottom:"1px solid #555",lineHeight:"1.5em"}},"[ ",new Date(e.date).toLocaleString()," ] ",e.warning)),_=y.length?{color:p.b[500].yellow}:{},O=_,T=e=>this.context.projectActions.toggleSnap(this.props.state.snapMask.merge(e));return r.a.createElement("div",{style:w({},x,{width:this.props.width,height:this.props.height})},r.a.createElement(s.a,{condition:d.MODE_SNAPPING.includes(o)},r.a.createElement("div",{style:v},r.a.createElement("div",{title:this.context.translator.t("Mouse X Coordinate"),style:b},"X : ",e.toFixed(3)),r.a.createElement("div",{title:this.context.translator.t("Mouse Y Coordinate"),style:b},"Y : ",t.toFixed(3))),r.a.createElement("div",{style:v,title:this.context.translator.t("Scene Zoom Level")},"Zoom: ",n.toFixed(3),"X"),r.a.createElement("div",{style:v},r.a.createElement(l.a,{state:this.state,toggleOn:()=>{T({SNAP_POINT:!0})},toggleOff:()=>{T({SNAP_POINT:!1})},text:"Snap PT",toggleState:this.props.state.snapMask.get(u.SNAP_POINT),title:this.context.translator.t("Snap to Point")}),r.a.createElement(l.a,{state:this.state,toggleOn:()=>{T({SNAP_LINE:!0})},toggleOff:()=>{T({SNAP_LINE:!1})},text:"Snap LN",toggleState:this.props.state.snapMask.get(u.SNAP_LINE),title:this.context.translator.t("Snap to Line")}),r.a.createElement(l.a,{state:this.state,toggleOn:()=>{T({SNAP_SEGMENT:!0})},toggleOff:()=>{T({SNAP_SEGMENT:!1})},text:"Snap SEG",toggleState:this.props.state.snapMask.get(u.SNAP_SEGMENT),title:this.context.translator.t("Snap to Segment")}),r.a.createElement(l.a,{state:this.state,toggleOn:()=>{T({SNAP_GRID:!0})},toggleOff:()=>{T({SNAP_GRID:!1})},text:"Snap GRD",toggleState:this.props.state.snapMask.get(u.SNAP_GRID),title:this.context.translator.t("Snap to Grid")}))),this.props.footerbarComponents.map((e,t)=>r.a.createElement(e,{state:state,key:t})),this.props.softwareSignature?r.a.createElement("div",{style:M},this.props.softwareSignature):null,r.a.createElement("div",{style:M},r.a.createElement(c.a,{state:this.state,icon:f.a,iconStyle:m,text:a.length.toString(),textStyle:h,title:"Errors [ "+a.length+" ]",titleStyle:h,content:[i]}),r.a.createElement(c.a,{state:this.state,icon:g.a,iconStyle:O,text:y.length.toString(),textStyle:_,title:"Warnings [ "+y.length+" ]",titleStyle:_,content:[E]})))}}t.a=E,E.propTypes={state:i.a.object.isRequired,footerbarComponents:i.a.array.isRequired,width:i.a.number.isRequired,height:i.a.number.isRequired,softwareSignature:i.a.string},E.contextTypes={projectActions:i.a.object.isRequired,viewer2DActions:i.a.object.isRequired,viewer3DActions:i.a.object.isRequired,linesActions:i.a.object.isRequired,holesActions:i.a.object.isRequired,itemsActions:i.a.object.isRequired,translator:i.a.object.isRequired}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m28.4 21.6v-3.2h-6.8v-6.8h-3.2v6.8h-6.8v3.2h6.8v6.8h3.2v-6.8h6.8z m-8.4-18.2c9.2 0 16.6 7.4 16.6 16.6s-7.4 16.6-16.6 16.6-16.6-7.4-16.6-16.6 7.4-16.6 16.6-16.6z"})))},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m21.6 23.4v-6.8h-3.2v6.8h3.2z m0 6.6v-3.4h-3.2v3.4h3.2z m-20 5l18.4-31.6 18.4 31.6h-36.8z"})))},e.exports=t.default},function(e,t,n){"use strict";var o=n(161),r=n(168),a=n(162),i=n(170),s=n(163),l=n(166),c=n(165),u=n(164),d=n(169),p=n(167);t.a={Viewer2D:o.a,Vertex:r.a,State:a.a,Snap:i.a,Scene:s.a,Ruler:l.a,Line:c.a,Layer:u.a,Item:d.a,Area:p.a}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});const o="0.0.0"},function(e,t,n){"use strict";var o=n(451),r=n(452),a=n(453);t.a={Autosave:o.a,Keyboard:r.a,ConsoleDebugger:a.a}},function(e,t,n){"use strict";t.a=function(e,t){return(n,s)=>{if(t=t||a,e&&r){if(null!==r.getItem(e)){let t=r.getItem(e),a=JSON.parse(t);n.dispatch(Object(o.loadProject)(a))}n.subscribe(()=>{i&&clearTimeout(i),i=setTimeout(()=>{let t=s(n.getState()).sceneHistory.last(),o=JSON.stringify(t.toJS());r.setItem(e,o)},t)})}}};var o=n(90);const r=!!window.hasOwnProperty("localStorage")&&window.localStorage,a=500;let i=null},function(e,t,n){"use strict";t.a=function(){return(e,t)=>{window.addEventListener("keydown",n=>{let u=t(e.getState()),d=u.get("mode");switch(n.keyCode){case i:case a:[o.MODE_IDLE,o.MODE_3D_FIRST_PERSON,o.MODE_3D_VIEW].includes(d)&&e.dispatch(Object(r.remove)());break;case s:e.dispatch(Object(r.rollback)());break;case l:(n.getModifierState("Control")||n.getModifierState("Meta"))&&e.dispatch(Object(r.undo)());break;case c:o.MODE_SNAPPING.includes(d)&&e.dispatch(Object(r.toggleSnap)(u.snapMask.merge({SNAP_POINT:!1,SNAP_LINE:!1,SNAP_SEGMENT:!1,tempSnapConfiguartion:u.snapMask.toJS()})))}}),window.addEventListener("keyup",n=>{let a=t(e.getState()),i=a.get("mode");switch(n.keyCode){case c:o.MODE_SNAPPING.includes(i)&&e.dispatch(Object(r.toggleSnap)(a.snapMask.merge(a.snapMask.get("tempSnapConfiguartion"))))}})}};var o=n(5),r=n(90);n(20);const a=46,i=8,s=27,l=90,c=18},function(e,t,n){"use strict";t.a=function(){return(e,t)=>{window.ReactPlanner=r({},o.a,{getStore:()=>e,getState:()=>t(e.getState()),do(t,n=300){t=t.reverse();let o=e.dispatch,r=()=>{console.info(`There are other ${t.length} actions on stack`),0!==t.length&&(o(t.pop()),0!==t.length&&setTimeout(r,n))};setTimeout(r,0)}}),console.groupCollapsed("ReactPlanner"),console.info("ReactPlanner is ready"),console.info("console.log(ReactPlanner)"),console.log(window.ReactPlanner),console.groupEnd()}};var o=n(89),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}},function(e,t,n){"use strict";var o=n(455),r=n(457);t.a={WallFactory:o.a,AreaFactory:r.a}},function(e,t,n){"use strict";t.a=function(e,t,n){let r={name:e,prototype:"lines",info:t,properties:{height:{label:"Height",type:"length-measure",defaultValue:{length:300}},thickness:{label:"Thickness",type:"length-measure",defaultValue:{length:20}}},render2D:function(e,t,n){let{x:o,y:r}=t.vertices.get(e.vertices.get(0)),{x:i,y:h}=t.vertices.get(e.vertices.get(1)),m=s.pointsDistance(o,r,i,h),f=`M0 ${-l}  L${m} ${-l}  L${m} ${l}  L0 ${l}  z`,y=m/5;return e.selected?a.a.createElement("g",null,a.a.createElement("path",{d:f,style:e.selected?u:c}),a.a.createElement("line",{x1:y,y1:-39,x2:y,y2:38,style:p}),a.a.createElement("text",{x:y,y:50,style:d},"A"),",",a.a.createElement("text",{x:y,y:-40,style:d},"B")):a.a.createElement("path",{d:f,style:e.selected?u:c})},render3D:function(e,t,r){return Object(o.a)(e,t,r,n)}};if(n&&n!=={}){let e={none:"None"};for(let t in n)e[t]=n[t].name;r.properties.textureA={label:"Covering A",type:"enum",defaultValue:"bricks",values:e},r.properties.textureB={label:"Covering B",type:"enum",defaultValue:"bricks",values:e}}return r};var o=n(456),r=n(0),a=n.n(r),i=n(4),s=n(13);const l=3,c={stroke:"#8E9BA2",strokeWidth:"1px",fill:"#8E9BA2"},u={stroke:"#99c3fb",strokeWidth:"5px",fill:i.a.black},d={textAnchor:"middle"},p={stroke:"#99c3fb"}},function(e,t,n){"use strict";t.a=function(e,t,n,d){let p=t.vertices.get(e.vertices.get(0)),h=t.vertices.get(e.vertices.get(1)),m=!1;if(p.x>h.x){let e=p;p=h,h=e,m=!0}let f=e.properties.getIn(["height","length"]),y=e.properties.getIn(["thickness","length"]),g=y/2,w=y,x=w/2,v=p.x-h.x,M=p.y-h.y,b=Math.sqrt(v*v+M*M),E=[[0,0],[b+=w,0],[b,f],[0,f]],_=Math.asin((h.y-p.y)/(b-w)),O=new o.Object3D,T=l(E);e.holes.forEach(e=>{let n=t.holes.get(e),r=n.properties.getIn(["width","length"]),i=n.properties.getIn(["height","length"]),c=n.properties.getIn(["altitude","length"]),u=m?1-n.offset:n.offset,d=(b-w)*u-r/2+x,p=l([[d,c+1e-5],[r+d,c+1e-5],[r+d,i+c],[d,i+c]]);T.holes.push(p);let h=s({x:0,y:0},{x:r,y:0},i,y),f=l(h.topShape),v=l(h.leftShape),M=new o.ShapeGeometry(f),E=new o.ShapeGeometry(v),_=new o.MeshLambertMaterial({side:o.DoubleSide}),I=new o.Mesh(M,_),q=new o.Mesh(E,_),P=new o.Mesh(E,_);if(I.rotation.x+=a,I.position.set(d-x,i+c,-g),q.rotation.y-=a,q.position.set(d-x,c,-g),P.rotation.y-=a,P.position.set(d+r-x,c,-g),O.add(I,q,P),0!==c){let e=new o.Mesh(M,_);e.rotation.x+=a,e.position.set(d-x,c,-g),O.add(e)}});let I=new o.ShapeGeometry(T);I.computeVertexNormals();let q=new o.MeshPhongMaterial({side:o.BackSide}),P=new o.MeshPhongMaterial({side:o.FrontSide}),D=_>0;c(q,d[e.properties.get("texture"+(D?"A":"B"))],b,f),c(P,d[e.properties.get("texture"+(D?"B":"A"))],b,f),u(I);let C=new o.Mesh(I,q),S=new o.Mesh(I,P);C.position.z-=g,S.position.z+=g,C.position.x-=x,S.position.x-=x,O.rotation.y=_,O.add(C,S);let G=s({x:0,y:0},{x:b,y:0},f,y),k=new o.ShapeGeometry(l(G.topShape)),L=new o.ShapeGeometry(l(G.leftShape)),A=new o.Mesh(k,new o.MeshLambertMaterial({side:o.BackSide})),R=new o.Mesh(L,new o.MeshLambertMaterial({side:o.FrontSide})),N=new o.Mesh(L,new o.MeshLambertMaterial({side:o.BackSide}));return A.rotation.x+=a,A.position.z=-g,A.position.y+=f,A.position.x=-x,R.rotation.y-=a,R.position.z=-x,R.position.x=-x-1,N.rotation.y-=a,N.position.z=-g,N.position.x+=b-1,N.position.x=-x,O.add(A,R,N),e.selected&&O.add(i(C,r),i(S,r),i(A,r),i(R,r),i(N,r)),Promise.resolve(O)};var o=n(1);const r=10077179,a=Math.PI/2,i=(e,t)=>{let n=new o.BoxHelper(e,t);return n.material.depthTest=!1,n.material.linewidth=2,n.material.vertexColor=o.VertexColors,n.renderOrder=1e3,n},s=(e,t,n,o)=>{let r=e.x-t.x,a=e.y-t.y,i=Math.sqrt(r*r+a*a);return{topShape:[[e.x,e.y],[e.x+i,e.y],[e.x+i,e.y+o],[e.x,e.y+o]],leftShape:[[e.x,e.y],[e.x+o,e.y],[e.x+o,e.y+n],[e.x,e.y+n]]}},l=e=>{let t=new o.Shape;t.moveTo(e[0][0],e[0][1]);for(let n=1;n<e.length;n++)t.lineTo(e[n][0],e[n][1]);return t},c=(e,t,n,r)=>{let a=new o.TextureLoader;t&&(e.map=a.load(t.uri),e.needsUpdate=!0,e.map.wrapS=o.RepeatWrapping,e.map.wrapT=o.RepeatWrapping,e.map.repeat.set(n*t.lengthRepeatScale,r*t.heightRepeatScale),t.normal&&(e.normalMap=a.load(t.normal.uri),e.normalScale=new o.Vector2(t.normal.normalScaleX,t.normal.normalScaleY),e.normalMap.wrapS=o.RepeatWrapping,e.normalMap.wrapT=o.RepeatWrapping,e.normalMap.repeat.set(n*t.normal.lengthRepeatScale,r*t.normal.heightRepeatScale)))},u=e=>{e.computeBoundingBox();let{min:t,max:n}=e.boundingBox,r=new o.Vector2(0-t.x,0-t.y),a=new o.Vector2(n.x-t.x,n.y-t.y);e.faceVertexUvs[0]=e.faces.map(t=>{let n=e.vertices[t.a],i=e.vertices[t.b],s=e.vertices[t.c];return[new o.Vector2((n.x+r.x)/a.x,(n.y+r.y)/a.y),new o.Vector2((i.x+r.x)/a.x,(i.y+r.y)/a.y),new o.Vector2((s.x+r.x)/a.x,(s.y+r.y)/a.y)]}),e.uvsNeedUpdate=!0}},function(e,t,n){"use strict";t.a=function(e,t,n){let r={name:e,prototype:"areas",info:i({},t,{visibility:{catalog:!1,layerElementsVisible:!1}}),properties:{patternColor:{label:"Color",type:"color",defaultValue:"#f5f4f4"},thickness:{label:"Thickness",type:"length-measure",defaultValue:{length:0}}},render2D:function(e,t,n){let o="";e.vertices.forEach((e,n)=>{let r=t.vertices.get(e);o+=(n?"L":"M")+r.x+" "+r.y+" "}),e.holes.forEach(e=>{t.areas.get(e).vertices.reverse().forEach((e,n)=>{let r=t.vertices.get(e);o+=(n?"L":"M")+r.x+" "+r.y+" "})});let r=e.selected?"#99c3fb":e.properties.get("patternColor");return a.a.createElement("path",{d:o,fill:r})},render3D:function(e,t,r){return Object(o.a)(e,t,r,n)}};if(n&&n!=={}){let e={none:"None"};for(let t in n)e[t]=n[t].name;r.properties.texture={label:"Floor",type:"enum",defaultValue:"none",values:e}}return r};var o=n(458),r=n(0),a=n.n(r),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}},function(e,t,n){"use strict";t.a=function(e,t,n,l){let c=[];e.vertices.forEach(e=>{c.push(t.vertices.get(e))});let u=e.properties.get("texture"),d=e.properties.get("patternColor");e.selected?d=10077179:u&&"none"!==u&&(d=r.a.white);let p=new o.Shape;p.moveTo(c[0].x,c[0].y);for(let e=1;e<c.length;e++)p.lineTo(c[e].x,c[e].y);let h=new o.MeshPhongMaterial({side:o.FrontSide,color:d}),m=new o.MeshPhongMaterial({side:o.BackSide,color:d});e.holes.forEach(e=>{let n=[];t.getIn(["areas",e,"vertices"]).forEach(e=>{let{x:o,y:r}=t.getIn(["vertices",e]);n.push([o,r])}),n=n.reverse();let o=s(n);p.holes.push(o)});let f=new o.ShapeGeometry(p);i(f);let y=(new o.Box3).setFromObject(new o.Mesh(f,new o.MeshBasicMaterial)),g=y.max.x-y.min.x,w=y.max.y-y.min.y,x=l[u];a(h,x,g,w),a(m,x,g,w);let v=new o.Object3D,M=new o.Mesh(f,h),b=new o.Mesh(f,m);return v.add(M,b),v.rotation.x-=Math.PI/2,Promise.resolve(v)};var o=n(1),r=n(4);const a=(e,t,n,r)=>{let a=new o.TextureLoader;t&&(e.map=a.load(t.uri),e.needsUpdate=!0,e.map.wrapS=o.RepeatWrapping,e.map.wrapT=o.RepeatWrapping,e.map.repeat.set(n*t.lengthRepeatScale,r*t.heightRepeatScale),t.normal&&(e.normalMap=a.load(t.normal.uri),e.normalScale=new o.Vector2(t.normal.normalScaleX,t.normal.normalScaleY),e.normalMap.wrapS=o.RepeatWrapping,e.normalMap.wrapT=o.RepeatWrapping,e.normalMap.repeat.set(n*t.normal.lengthRepeatScale,r*t.normal.heightRepeatScale)))},i=e=>{e.computeBoundingBox();let{min:t,max:n}=e.boundingBox,r=new o.Vector2(0-t.x,0-t.y),a=new o.Vector2(n.x-t.x,n.y-t.y);e.faceVertexUvs[0]=e.faces.map(t=>{let n=e.vertices[t.a],i=e.vertices[t.b],s=e.vertices[t.c];return[new o.Vector2((n.x+r.x)/a.x,(n.y+r.y)/a.y),new o.Vector2((i.x+r.x)/a.x,(i.y+r.y)/a.y),new o.Vector2((s.x+r.x)/a.x,(s.y+r.y)/a.y)]}),e.uvsNeedUpdate=!0},s=e=>{let t=new o.Shape;t.moveTo(e[0][0],e[0][1]);for(let n=1;n<e.length;n++)t.lineTo(e[n][0],e[n][1]);return t}},function(e,t,n){"use strict";n(13),n(154),n(57),n(20),n(88)},function(e,t,n){"use strict";var o=n(35);let r={parquet:{name:"Parquet",uri:n(461),lengthRepeatScale:.004,heightRepeatScale:.004},tile1:{name:"Tile1",uri:n(462),lengthRepeatScale:.01,heightRepeatScale:.01}};t.a=o.b.AreaFactory("area",{title:"area",tag:["area"],group:"Horizontal Closure",description:"Generic Room",image:""},r)},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/areas/area/textures/parquet.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/areas/area/textures/tile1.jpg"},function(e,t,n){"use strict";var o=n(35);const r={title:"wall",tag:["wall"],group:"Vertical closure",description:"Wall with bricks or painted",image:n(464),visibility:{catalog:!0,layerElementsVisible:!0}},a={bricks:{name:"Bricks",uri:n(465),lengthRepeatScale:.01,heightRepeatScale:.01,normal:{uri:n(466),lengthRepeatScale:.01,heightRepeatScale:.01,normalScaleX:.8,normalScaleY:.8}},painted:{name:"Painted",uri:n(467),lengthRepeatScale:.01,heightRepeatScale:.01,normal:{uri:n(468),lengthRepeatScale:.01,heightRepeatScale:.01,normalScaleX:.4,normalScaleY:.4}}};t.a=o.b.WallFactory("wall",r,a)},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/lines/wall/wall.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/lines/wall/textures/bricks.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/lines/wall/textures/bricks-normal.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/lines/wall/textures/painted.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/lines/wall/textures/painted-normal.png"},function(e,t,n){"use strict";function o(e){let t=new s.Object3D,n=new s.CylinderGeometry(e/100,e/100,e/32.5,Math.round(32)),o=new s.SphereGeometry(e/100,Math.round(32),Math.round(32)),r=new s.CylinderGeometry(e/100,e/100,e/14.5,Math.round(32)),a=new s.Mesh(n,l),i=new s.Mesh(o,l),c=new s.Mesh(r,l),u=new s.Mesh(o,l);return c.rotation.z=Math.PI/2,c.position.x=e/14.5/2,i.position.y=-e/32.5/2,u.position.y=-e/14.5/2,c.add(u),i.add(c),a.add(i),t.add(a),t}function r(){let e=new s.Object3D,t=new s.BoxGeometry(7.6,28,2),n=new s.CylinderGeometry(3.6,3.6,2,Math.round(32)),o=function(){let e=new s.Object3D,t=new s.CylinderGeometry(1.5,1.5,4,Math.round(32)),n=new s.BoxGeometry(1.6,4,4),o=new s.BoxGeometry(1.4,4.06,.36),r=new s.Mesh(t,c),a=new s.Mesh(n,c),i=new s.Mesh(o,u);return a.position.z=1,r.add(a),r.add(i),e.add(r),e}(),r=new s.Mesh(t,l),a=new s.Mesh(n,l);return o.rotation.x=Math.PI/2,o.position.y=-3,a.rotation.x=Math.PI/2,a.position.y=-3.3,a.scale.z=1.5,r.add(o),r.add(a),e.add(r),e}var a=n(0),i=n.n(a),s=n(1);const l=new s.MeshLambertMaterial({color:0}),c=new s.MeshLambertMaterial({color:12046060}),u=new s.MeshLambertMaterial({color:13807722}),d=new s.MeshLambertMaterial({color:16773070}),p=[u,u,u,u,d,d];t.a={name:"double door",prototype:"holes",info:{tag:["door"],group:"door",title:"double door",description:"iron door",image:n(470)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:200,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:215,unit:"cm"}},thickness:{label:"thickness",type:"length-measure",defaultValue:{length:30,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},flip_horizontal:{label:"flip",type:"checkbox",defaultValue:!1,values:{none:!1,yes:!0}}},render2D:function(e,t,n){let o=e.properties.get("flip_horizontal"),r=e.properties.get("width").get("length"),a=`M0 -3  L${r} -3  L${r} 3  L0 3  z`,s=`M0,0  A${r/4},${r/4} 0 0,1 ${r/4},${r/4}`,l=`M0,0  A${r/2+r/4},${r/2+r/4} 0 0,0 ${r/2+r/4},${r/2+r/4}`,c=e.selected?{stroke:"#ff0000",strokeWidth:"4px",fill:"#ff0000",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",fill:"#ff0000"},u=e.selected?{stroke:"#ff0000",strokeWidth:"4px",strokeDasharray:"5,5",fill:"none",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",strokeDasharray:"5,5",fill:"none"};e.properties.get("width").get("length");return o?i.a.createElement("g",{transform:`translate(${-e.properties.get("width").get("length")/2}, 0)`},i.a.createElement("path",{key:"1",d:s,style:u,transform:`translate(0,${-r/4})`}),i.a.createElement("line",{key:"2",x1:0,y1:-3,x2:0,y2:-r/4-3,style:c}),i.a.createElement("path",{key:"3",d:l,style:u,transform:`translate(${r},${-r/2-r/4}) rotate(90)`}),i.a.createElement("line",{key:"4",x1:r,y1:-3,x2:r,y2:-r/2-r/4-3,style:c}),i.a.createElement("path",{key:"5",d:a,style:c})):i.a.createElement("g",{transform:`translate(${-e.properties.get("width").get("length")/2}, 0)`},i.a.createElement("path",{key:"1",d:s,style:u,transform:`translate(${r},${r/4}) rotate(180)`}),i.a.createElement("line",{key:"2",x1:0,y1:-3,x2:0,y2:r/2+r/4-3,style:c}),i.a.createElement("path",{key:"3",d:l,style:u,transform:`translate(0,${r/2+r/4}) rotate(270)`}),i.a.createElement("line",{key:"4",x1:r,y1:-3,x2:r,y2:r/4-3,style:c}),i.a.createElement("path",{key:"5",d:a,style:c}))},render3D:function(e,t,n){let a=e.properties.get("flip_horizontal"),i=e.properties.get("width").get("length"),l=e.properties.get("height").get("length"),c=e.properties.get("thickness").get("length"),u=e.properties.get("altitude").get("length"),d=new s.Object3D;d.add(function(e,t,n){let a=new s.Mesh,i=new s.BoxGeometry(.75*e,t,n),l=new s.Mesh(i,p);l.position.x-=.25*e,a.add(l);let c=new s.BoxGeometry(.25*e,t,n),u=new s.Mesh(c,p);u.position.x+=.25*e,u.position.z+=n/10,a.add(u);let d=o(e);d.position.set(e/20,t/40,n/2+n/10),d.rotation.z+=Math.PI,d.rotation.x+=Math.PI/2,a.add(d);let h=r();h.position.set(e/20,0,n/2),h.rotation.x=0,a.add(h);let m=o(e);m.position.set(e/20,t/40,-n/2-n/10),m.rotation.z+=Math.PI,m.rotation.x-=Math.PI/2,a.add(m);let f=r();return f.position.set(e/20,0,-n/2),f.rotation.x=0,a.add(f),a}(i,l,c).clone(i,l,c));let h=(new s.Box3).setFromObject(d),m=Math.abs(h.max.x-h.min.x),f=Math.abs(h.max.y-h.min.y),y=Math.abs(h.max.z-h.min.z);if(e.selected){let e=new s.BoxHelper(d,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,d.add(e)}return a&&(d.rotation.y+=Math.PI,d.position.x-=i/4),d.position.y+=u,d.position.x+=i/8,d.scale.set(i/m,l/f,c/y),Promise.resolve(d)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/door-double/door_double.png"},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(1),i=n(28),s=n(29),l=n.n(s);let c=null;t.a={name:"door",prototype:"holes",info:{title:"door",tag:["door"],group:"Horizontal communication",description:"Wooden door",image:n(475)},properties:{width:{label:"Width",type:"length-measure",defaultValue:{length:80}},height:{label:"Height",type:"length-measure",defaultValue:{length:215}},altitude:{label:"Altitude",type:"length-measure",defaultValue:{length:0}},thickness:{label:"Thickness",type:"length-measure",defaultValue:{length:30}},flip_orizzontal:{label:"flip orizzontale",type:"checkbox",defaultValue:!1,values:{none:!1,yes:!0}}},render2D:function(e,t,n){let o=e.properties.get("flip_orizzontal"),a=e.properties.get("width").get("length"),i=`M0 -3  L${a} -3  L${a} 3  L0 3  z`,s=`M0,0  A${a},${a} 0 0,1 ${a},${a}`,l=e.selected?{stroke:"#0096fd",strokeWidth:"4px",fill:"#0096fd",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",fill:"#000"},c=e.selected?{stroke:"#0096fd",strokeWidth:"4px",strokeDasharray:"5,5",fill:"none",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",strokeDasharray:"5,5",fill:"none"},u=e.properties.get("width").get("length");return 0==o?r.a.createElement("g",{transform:`translate(${-u/2}, 0)`},r.a.createElement("path",{key:"1",d:s,style:c,transform:`translate(0,${a}) scale(1,-1) rotate(0)`}),r.a.createElement("line",{key:"2",x1:0,y1:a-3,x2:0,y2:-3,style:l,transform:"scale(-1,1)"}),r.a.createElement("path",{key:"5",d:i,style:l})):r.a.createElement("g",{transform:`translate(${-u/2}, 0)`},r.a.createElement("path",{key:"1",d:s,style:c,transform:`translate(0,${-a}) scale(1,1) rotate(0)`}),r.a.createElement("line",{key:"2",x1:0,y1:-a-3,x2:0,y2:-3,style:l,transform:"scale(-1,1)"}),r.a.createElement("path",{key:"5",d:i,style:l}))},render3D:function(e,t,o){let r=t=>{let n=(new a.Box3).setFromObject(t),o=n.max.x-n.min.x,r=n.max.y-n.min.y,i=n.max.z-n.min.z;if(e.selected){let e=new a.BoxHelper(t,10077179);e.material.linewidth=2,e.material.depthTest=!1,e.renderOrder=1e3,t.add(e)}let s=e.properties.get("width").get("length"),l=e.properties.get("height").get("length"),c=e.properties.get("thickness").get("length");return t.scale.set(s/o,l/r,c/i),t};if(c)return Promise.resolve(r(c.clone()));let s=n(476),u=n(477),d=n(478);return Object(i.a)(s,u,l.a.dirname(d)+"/").then(e=>(c=e,r(c.clone())))}}},function(e,t,n){var o=window.THREE||n(1);let r;r=function(e){this.manager=void 0!==e?e:o.DefaultLoadingManager},Object.assign(r.prototype,o.EventDispatcher.prototype,{load:function(e,t,n,r){var a=this,i=new o.FileLoader(this.manager);i.setPath(this.path),i.load(e,function(e){t(a.parse(e))},n,r)},setPath:function(e){this.path=e},setTexturePath:function(e){this.texturePath=e},setBaseUrl:function(e){console.warn("THREE.MTLLoader: .setBaseUrl() is deprecated. Use .setTexturePath( path ) for texture path or .setPath( path ) for general base path instead."),this.setTexturePath(e)},setCrossOrigin:function(e){this.crossOrigin=e},setMaterialOptions:function(e){this.materialOptions=e},parse:function(e){for(var t=e.split("\n"),n={},o=/\s+/,a={},i=0;i<t.length;i++){var s=t[i];if(0!==(s=s.trim()).length&&"#"!==s.charAt(0)){var l=s.indexOf(" "),c=l>=0?s.substring(0,l):s;c=c.toLowerCase();var u=l>=0?s.substring(l+1):"";if(u=u.trim(),"newmtl"===c)n={name:u},a[u]=n;else if(n)if("ka"===c||"kd"===c||"ks"===c){var d=u.split(o,3);n[c]=[parseFloat(d[0]),parseFloat(d[1]),parseFloat(d[2])]}else n[c]=u}}var p=new r.MaterialCreator(this.texturePath||this.path,this.materialOptions);return p.setCrossOrigin(this.crossOrigin),p.setManager(this.manager),p.setMaterials(a),p}}),(r.MaterialCreator=function(e,t){this.baseUrl=e||"",this.options=t,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.side=this.options&&this.options.side?this.options.side:o.FrontSide,this.wrap=this.options&&this.options.wrap?this.options.wrap:o.RepeatWrapping}).prototype={constructor:r.MaterialCreator,setCrossOrigin:function(e){this.crossOrigin=e},setManager:function(e){this.manager=e},setMaterials:function(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}},convert:function(e){if(!this.options)return e;var t={};for(var n in e){var o=e[n],r={};t[n]=r;for(var a in o){var i=!0,s=o[a],l=a.toLowerCase();switch(l){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(s=[s[0]/255,s[1]/255,s[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===s[0]&&0===s[1]&&0===s[2]&&(i=!1)}i&&(r[l]=s)}}return t},preload:function(){for(var e in this.materialsInfo)this.create(e)},getIndex:function(e){return this.nameLookup[e]},getAsArray:function(){var e=0;for(var t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray},create:function(e){return void 0===this.materials[e]&&this.createMaterial_(e),this.materials[e]},createMaterial_:function(e){var t=this.materialsInfo[e],n={name:e,side:this.side},r=function(e,t){return"string"!=typeof t||""===t?"":/^https?:\/\//i.test(t)?t:e+t};for(var a in t){var i=t[a];if(""!==i)switch(a.toLowerCase()){case"kd":n.color=(new o.Color).fromArray(i);break;case"ks":n.specular=(new o.Color).fromArray(i);break;case"map_kd":if(n.map)break;s=this.getTextureParams(i,n);n.map=this.loadTexture(r(this.baseUrl,s.url)),n.map.repeat.copy(s.scale),n.map.offset.copy(s.offset),n.map.wrapS=this.wrap,n.map.wrapT=this.wrap;break;case"map_ks":if(n.specularMap)break;n.specularMap=this.loadTexture(r(this.baseUrl,i)),n.specularMap.wrapS=this.wrap,n.specularMap.wrapT=this.wrap;break;case"ns":n.shininess=parseFloat(i);break;case"d":i<1&&(n.opacity=i,n.transparent=!0);break;case"Tr":i>0&&(n.opacity=1-i,n.transparent=!0);break;case"map_bump":case"bump":if(n.bumpMap)break;var s=this.getTextureParams(i,n);n.bumpMap=this.loadTexture(r(this.baseUrl,s.url)),n.bumpMap.repeat.copy(s.scale),n.bumpMap.offset.copy(s.offset),n.bumpMap.wrapS=this.wrap,n.bumpMap.wrapT=this.wrap}}return this.materials[e]=new o.MeshPhongMaterial(n),this.materials[e]},getTextureParams:function(e,t){var n,r={scale:new o.Vector2(1,1),offset:new o.Vector2(0,0)},a=e.split(/\s+/);return(n=a.indexOf("-bm"))>=0&&(t.bumpScale=parseFloat(a[n+1]),a.splice(n,2)),(n=a.indexOf("-s"))>=0&&(r.scale.set(parseFloat(a[n+1]),parseFloat(a[n+2])),a.splice(n,4)),(n=a.indexOf("-o"))>=0&&(r.offset.set(parseFloat(a[n+1]),parseFloat(a[n+2])),a.splice(n,4)),r.url=a.join(" ").trim(),r},loadTexture:function(e,t,n,r,a){var i,s=o.Loader.Handlers.get(e),l=void 0!==this.manager?this.manager:o.DefaultLoadingManager;return null===s&&(s=new o.TextureLoader(l)),s.setCrossOrigin&&s.setCrossOrigin(this.crossOrigin),i=s.load(e,n,r,a),void 0!==t&&(i.mapping=t),i}},e.exports=r},function(e,t,n){var o=window.THREE||n(1);let r;(r=function(e){this.manager=void 0!==e?e:o.DefaultLoadingManager,this.materials=null,this.regexp={vertex_pattern:/^v\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/,normal_pattern:/^vn\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/,uv_pattern:/^vt\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/,face_vertex:/^f\s+(-?\d+)\s+(-?\d+)\s+(-?\d+)(?:\s+(-?\d+))?/,face_vertex_uv:/^f\s+(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)(?:\s+(-?\d+)\/(-?\d+))?/,face_vertex_uv_normal:/^f\s+(-?\d+)\/(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)\/(-?\d+)(?:\s+(-?\d+)\/(-?\d+)\/(-?\d+))?/,face_vertex_normal:/^f\s+(-?\d+)\/\/(-?\d+)\s+(-?\d+)\/\/(-?\d+)\s+(-?\d+)\/\/(-?\d+)(?:\s+(-?\d+)\/\/(-?\d+))?/,object_pattern:/^[og]\s*(.+)?/,smoothing_pattern:/^s\s+(\d+|on|off)/,material_library_pattern:/^mtllib /,material_use_pattern:/^usemtl /}}).prototype={constructor:r,load:function(e,t,n,r){var a=this,i=new o.FileLoader(a.manager);i.setPath(this.path),i.load(e,function(e){t(a.parse(e))},n,r)},setPath:function(e){this.path=e},setMaterials:function(e){this.materials=e},_createParserState:function(){var e={objects:[],object:{},vertices:[],normals:[],uvs:[],materialLibraries:[],startObject:function(e,t){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);this.object&&"function"==typeof this.object._finalize&&this.object._finalize();var n=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object={name:e||"",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],uvs:[]},materials:[],smooth:!0,startMaterial:function(e,t){var n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);var o={index:this.materials.length,name:e||"",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){return{index:"number"==typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:this.groupEnd,groupEnd:-1,groupCount:-1,inherited:!1}}};return this.materials.push(o),o},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){var t=this.currentMaterial();return t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),!1!==e&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),t}},n&&n.name&&"function"==typeof n.clone){var o=n.clone(0);o.inherited=!0,this.object.materials.push(o)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize()},parseVertexIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseNormalIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseUVIndex:function(e,t){var n=parseInt(e,10);return 2*(n>=0?n-1:n+t/2)},addVertex:function(e,t,n){var o=this.vertices,r=this.object.geometry.vertices;r.push(o[e+0]),r.push(o[e+1]),r.push(o[e+2]),r.push(o[t+0]),r.push(o[t+1]),r.push(o[t+2]),r.push(o[n+0]),r.push(o[n+1]),r.push(o[n+2])},addVertexLine:function(e){var t=this.vertices,n=this.object.geometry.vertices;n.push(t[e+0]),n.push(t[e+1]),n.push(t[e+2])},addNormal:function(e,t,n){var o=this.normals,r=this.object.geometry.normals;r.push(o[e+0]),r.push(o[e+1]),r.push(o[e+2]),r.push(o[t+0]),r.push(o[t+1]),r.push(o[t+2]),r.push(o[n+0]),r.push(o[n+1]),r.push(o[n+2])},addUV:function(e,t,n){var o=this.uvs,r=this.object.geometry.uvs;r.push(o[e+0]),r.push(o[e+1]),r.push(o[t+0]),r.push(o[t+1]),r.push(o[n+0]),r.push(o[n+1])},addUVLine:function(e){var t=this.uvs,n=this.object.geometry.uvs;n.push(t[e+0]),n.push(t[e+1])},addFace:function(e,t,n,o,r,a,i,s,l,c,u,d){var p,h=this.vertices.length,m=this.parseVertexIndex(e,h),f=this.parseVertexIndex(t,h),y=this.parseVertexIndex(n,h);if(void 0===o?this.addVertex(m,f,y):(p=this.parseVertexIndex(o,h),this.addVertex(m,f,p),this.addVertex(f,y,p)),void 0!==r){var g=this.uvs.length;m=this.parseUVIndex(r,g),f=this.parseUVIndex(a,g),y=this.parseUVIndex(i,g),void 0===o?this.addUV(m,f,y):(p=this.parseUVIndex(s,g),this.addUV(m,f,p),this.addUV(f,y,p))}if(void 0!==l){var w=this.normals.length;m=this.parseNormalIndex(l,w),f=l===c?m:this.parseNormalIndex(c,w),y=l===u?m:this.parseNormalIndex(u,w),void 0===o?this.addNormal(m,f,y):(p=this.parseNormalIndex(d,w),this.addNormal(m,f,p),this.addNormal(f,y,p))}},addLineGeometry:function(e,t){this.object.geometry.type="Line";for(var n=this.vertices.length,o=this.uvs.length,r=0,a=e.length;r<a;r++)this.addVertexLine(this.parseVertexIndex(e[r],n));for(var i=0,a=t.length;i<a;i++)this.addUVLine(this.parseUVIndex(t[i],o))}};return e.startObject("",!1),e},parse:function(e){console.time("OBJLoader");var t=this._createParserState();-1!==e.indexOf("\r\n")&&(e=e.replace("\r\n","\n"));for(var n=e.split("\n"),r="",a="",i="",s=[],l="function"==typeof"".trimLeft,c=0,u=n.length;c<u;c++)if(r=n[c],r=l?r.trimLeft():r.trim(),0!==r.length&&"#"!==(a=r.charAt(0)))if("v"===a)if(" "===(i=r.charAt(1))&&null!==(s=this.regexp.vertex_pattern.exec(r)))t.vertices.push(parseFloat(s[1]),parseFloat(s[2]),parseFloat(s[3]));else if("n"===i&&null!==(s=this.regexp.normal_pattern.exec(r)))t.normals.push(parseFloat(s[1]),parseFloat(s[2]),parseFloat(s[3]));else{if("t"!==i||null===(s=this.regexp.uv_pattern.exec(r)))throw new Error("Unexpected vertex/normal/uv line: '"+r+"'");t.uvs.push(parseFloat(s[1]),parseFloat(s[2]))}else if("f"===a)if(null!==(s=this.regexp.face_vertex_uv_normal.exec(r)))t.addFace(s[1],s[4],s[7],s[10],s[2],s[5],s[8],s[11],s[3],s[6],s[9],s[12]);else if(null!==(s=this.regexp.face_vertex_uv.exec(r)))t.addFace(s[1],s[3],s[5],s[7],s[2],s[4],s[6],s[8]);else if(null!==(s=this.regexp.face_vertex_normal.exec(r)))t.addFace(s[1],s[3],s[5],s[7],void 0,void 0,void 0,void 0,s[2],s[4],s[6],s[8]);else{if(null===(s=this.regexp.face_vertex.exec(r)))throw new Error("Unexpected face line: '"+r+"'");t.addFace(s[1],s[2],s[3],s[4])}else if("l"===a){var d=r.substring(1).trim().split(" "),p=[],h=[];if(-1===r.indexOf("/"))p=d;else for(var m=0,f=d.length;m<f;m++){var y=d[m].split("/");""!==y[0]&&p.push(y[0]),""!==y[1]&&h.push(y[1])}t.addLineGeometry(p,h)}else if(null!==(s=this.regexp.object_pattern.exec(r))){var g=s[0].substr(1).trim();t.startObject(g)}else if(this.regexp.material_use_pattern.test(r))t.object.startMaterial(r.substring(7).trim(),t.materialLibraries);else if(this.regexp.material_library_pattern.test(r))t.materialLibraries.push(r.substring(7).trim());else{if(null===(s=this.regexp.smoothing_pattern.exec(r))){if("\0"===r)continue;throw new Error("Unexpected line: '"+r+"'")}var w=s[1].trim().toLowerCase();t.object.smooth="1"===w||"on"===w;(P=t.object.currentMaterial())&&(P.smooth=t.object.smooth)}t.finalize();var x=new o.Group;x.materialLibraries=[].concat(t.materialLibraries);for(var c=0,u=t.objects.length;c<u;c++){var v=t.objects[c],M=v.geometry,b=v.materials,E="Line"===M.type;if(0!==M.vertices.length){var _=new o.BufferGeometry;_.addAttribute("position",new o.BufferAttribute(new Float32Array(M.vertices),3)),M.normals.length>0?_.addAttribute("normal",new o.BufferAttribute(new Float32Array(M.normals),3)):_.computeVertexNormals(),M.uvs.length>0&&_.addAttribute("uv",new o.BufferAttribute(new Float32Array(M.uvs),2));for(var O=[],T=0,I=b.length;T<I;T++){var q=b[T],P=void 0;if(null!==this.materials&&(P=this.materials.create(q.name),E&&P&&!(P instanceof o.LineBasicMaterial))){var D=new o.LineBasicMaterial;D.copy(P),P=D}P||((P=E?new o.LineBasicMaterial:new o.MeshPhongMaterial).name=q.name),q.smooth||(P.flatShading=!0),O.push(P)}var C;if(O.length>1){for(var T=0,I=b.length;T<I;T++){q=b[T];_.addGroup(q.groupStart,q.groupCount,T)}var S=new o.MultiMaterial(O);C=E?new o.Line(_,S):new o.Mesh(_,S)}else C=E?new o.Line(_,O[0]):new o.Mesh(_,O[0]);C.name=v.name,x.add(C)}}return console.timeEnd("OBJLoader"),x}},e.exports=r},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function a(){m&&p&&(m=!1,p.length?h=p.concat(h):f=-1,h.length&&i())}function i(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(p=h,h=[];++f<t;)p&&p[f].run();f=-1,t=h.length}p=null,m=!1,function(e){if(u===clearTimeout)return clearTimeout(e);if((u===o||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(e);try{u(e)}catch(t){try{return u.call(null,e)}catch(t){return u.call(this,e)}}}(e)}}function s(e,t){this.fun=e,this.array=t}function l(){}var c,u,d=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{u="function"==typeof clearTimeout?clearTimeout:o}catch(e){u=o}}();var p,h=[],m=!1,f=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new s(e,t)),1!==h.length||m||r(i)},s.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/door/door.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/door/door.mtl"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/door/door.obj"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/door/texture.png"},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(1),i=n(29);n.n(i);t.a={name:"gate",prototype:"holes",info:{tag:["gate"],group:"gate",title:"gate",description:"hole in the wall",image:n(480)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:80}},height:{label:"height",type:"length-measure",defaultValue:{length:215}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0}},thickness:{label:"thickness",type:"length-measure",defaultValue:{length:30}}},render2D:function(e,t,n){let o=e.properties.get("width").get("length"),a=`M0,0  A0,0 0 0,1 ${o},0`,i=e.selected?{stroke:"#0096fd",strokeWidth:"4px",fill:"#0096fd",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",fill:"#000"},s=e.selected?{stroke:"#0096fd",strokeWidth:"4px",strokeDasharray:"5,5",fill:"none",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",strokeDasharray:"5,5",fill:"none"},l=e.properties.get("width").get("length");return r.a.createElement("g",{transform:`translate(${-l/2}, 0)`},r.a.createElement("line",{key:"1",x1:0,y1:o/6-3,x2:0,y2:-o/6+3,style:i,transform:"scale(-1,1)"}),r.a.createElement("line",{key:"2",x1:-o,y1:o/6-3,x2:-o,y2:-o/6+3,style:i,transform:"scale(-1,1)"}),r.a.createElement("path",{key:"3",d:a,style:s}))},render3D:function(e,t,n){let o=new a.Object3D;return Promise.resolve(o)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/gate/gate.png"},function(e,t,n){"use strict";function o(){let e=new u.Mesh,t=s(),n=s(),o=function(){let e=new u.Object3D,t=function(){let e=new u.Object3D,t=new u.BoxGeometry(.038,.14,.01),n=new u.CylinderGeometry(.023,.023,.01,Math.round(32)),o=function(){let e=new u.Object3D,t=new u.CylinderGeometry(.005,.005,.02,Math.round(32)),n=new u.BoxGeometry(.008,.02,.02),o=new u.BoxGeometry(.007,.0203,.0018),r=new u.Mesh(t,f),a=new u.Mesh(n,f),i=new u.Mesh(o,y);return a.position.z=.01,r.add(a),r.add(i),e.add(r),e}(),r=new u.Mesh(t,d),a=new u.Mesh(n,d);return o.rotation.x=Math.PI/2,o.position.y=-.03,a.rotation.x=Math.PI/2,a.position.y=-.033,a.scale.z=1.5,r.add(o),r.add(a),e.add(r),e}(),n=function(){let e=new u.Object3D,t=new u.CylinderGeometry(.01,.01,.03,Math.round(32)),n=new u.SphereGeometry(.01,Math.round(32),Math.round(32)),o=new u.CylinderGeometry(.01,.01,.07,Math.round(32)),r=new u.Mesh(t,d),a=new u.Mesh(n,d),i=new u.Mesh(o,d),s=new u.Mesh(n,d);return i.rotation.z=Math.PI/2,i.position.x=.035,a.position.y=-.015,s.position.y=-.035,i.add(s),a.add(i),r.add(a),e.add(r),e}();return n.rotation.x=Math.PI/2,n.position.set(0,.04,-.02),e.add(t),e.add(n),e.scale.set(1.1,1.1,1.1),e}(),l=i(),c=i(),p=a(),h=a(),m=function(){let e=new u.Object3D,t=new u.BoxGeometry(.01,.1,.02),n=new u.BoxGeometry(.01,.02,.01),o=new u.BoxGeometry(.006,.04,.008),r=new u.Mesh(t,f),a=new u.Mesh(n,y),i=new u.Mesh(o,y);return a.position.set(-.004,.03,0),i.position.y=-.05,a.add(i),r.add(a),e.add(r),e}(),g=r(),w=r();return m.position.set(-.05,-.02,.03),o.position.set(-.235,.425,-.03),l.position.set(.2975,0,-.03),c.position.set(.3,0,.0385),n.rotation.y=Math.PI,n.position.set(-.259,0,.0043),t.position.set(.259,0,-.0043),p.position.set(0,.4,.03),h.position.set(0,.4,-.031),o.add(m),t.add(o),t.add(p),n.add(h),t.add(l),e.add(t),n.add(c),t.add(g),n.add(w),e.add(n),e}function r(){let e=new u.Object3D,t=new u.CylinderGeometry(.012,.012,1.905,Math.round(32)),n=new u.CylinderGeometry(.007,.007,1.907,Math.round(32)),o=new u.Mesh(t,f),r=new u.Mesh(n,y);return e.position.set(-.275,.35,0),e.scale.x=1/1.3,o.add(r),e.add(o),e}function a(){let e=new u.Object3D,t=new u.BoxGeometry(.5,.1,.005),n=new u.CylinderGeometry(.04,.04,.48,Math.round(32)),o=new u.CylinderGeometry(.042,.042,.01,Math.round(32)),r=new u.Mesh(t,d),a=new u.Mesh(n,h),i=new u.Mesh(o,d),s=new u.Mesh(o,d);return r.position.z=.0025,a.rotation.z=Math.PI/2,i.position.y=.245,s.position.y=-.245,a.add(i),a.add(s),r.add(a),e.add(r),e}function i(){let e=new u.Object3D,t=new u.CylinderGeometry(.009,.009,.04,Math.round(32)),n=new u.CylinderGeometry(.01,.01,.04,Math.round(32)),o=new u.Mesh(t,p),r=new u.Mesh(n,p),a=new u.Mesh(t,p),i=new u.Mesh(n,p);return o.position.y=-.4,r.position.y=.04,a.position.y=1,i.position.y=.04,a.add(i),o.add(r),e.add(a),e.add(o),e}function s(){let e=new u.Object3D,t=new u.BoxGeometry(.6,1.2,.01),n=new u.BoxGeometry(.2,.7,.01),o=new u.BoxGeometry(.2,.2,.01),r=new u.CylinderGeometry(.005,.005,1.9,Math.round(32)),a=new u.BoxGeometry(.03,1.9,.01),i=new u.BoxGeometry(.2,.7,.06),s=new u.BoxGeometry(.19,.7,.06),l=new u.BoxGeometry(.2,.2,.06),c=new u.BoxGeometry(.2,.5,.05),d=new u.BoxGeometry(.59,1.2,.06),h=new u.BoxGeometry(.01,.52,.064),f=new u.BoxGeometry(.224,.01,.064),y=new u.Mesh(t,p),g=new u.Mesh(s,p),w=new u.Mesh(i,p),x=new u.Mesh(d,p),v=new u.Mesh(n,p),M=new u.Mesh(n,p),b=new u.Mesh(o,p),E=new u.Mesh(l,p),_=new u.Mesh(r,p),O=new u.Mesh(a,p),T=new u.Mesh(c,m),I=new u.Mesh(h,p),q=new u.Mesh(h,p),P=new u.Mesh(f,p),D=new u.Mesh(f,p);return y.position.set(-(.6-.59)/2,0,-.025),v.position.set(-.2,.95,0),M.position.set(.2,.95,0),b.position.set(0,.35,-.025),E.position.set(0,.35,0),T.position.set(-.005,.85,0),w.position.z=.025,g.position.set(.005,0,.025),_.position.set(-.3,.35,0),I.position.x=.1+.007,q.position.x=-.1-.007,P.position.y=.257,D.position.y=-.257,O.position.set(.01,0,-.005),_.add(O),T.add(b),T.add(I),T.add(q),T.add(P),T.add(D),T.add(b),T.add(E),x.add(T),v.add(g),M.add(w),y.add(_),y.add(v),y.add(M),x.add(y),e.add(x),e.scale.x=.9,e}var l=n(0),c=n.n(l),u=n(1);const d=new u.MeshLambertMaterial({color:0}),p=new u.MeshLambertMaterial({color:3442561}),h=new u.MeshLambertMaterial({color:16711680}),m=new u.MeshLambertMaterial({color:4441819,opacity:.7,transparent:!0}),f=new u.MeshLambertMaterial({color:12046060}),y=(new u.MeshLambertMaterial({color:3223857}),new u.MeshLambertMaterial({color:2171169}),new u.MeshLambertMaterial({color:5664126}));t.a={name:"double panic door",prototype:"holes",info:{tag:["door"],group:"door",title:"double panic door",description:"iron door",image:n(482)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:200,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:215,unit:"cm"}},thickness:{label:"thickness",type:"length-measure",defaultValue:{length:30,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},flip_horizontal:{label:"flip",type:"checkbox",defaultValue:!1,values:{none:!1,yes:!0}}},render2D:function(e,t,n){let o=e.properties.get("flip_horizontal"),r=e.properties.get("width").get("length"),a=`M0 -3  L${r} -3  L${r} 3  L0 3  z`,i=`M0,0  A${r/2},${r/2} 0 0,1 ${r/2},${r/2}`,s=`M0,0  A${r/2},${r/2} 0 0,0 ${r/2},${r/2}`,l=e.selected?{stroke:"#ff0000",strokeWidth:"4px",fill:"#ff0000",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",fill:"#ff0000"},u=e.selected?{stroke:"#ff0000",strokeWidth:"4px",strokeDasharray:"5,5",fill:"none",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",strokeDasharray:"5,5",fill:"none"};e.properties.get("width").get("length");return o?c.a.createElement("g",{transform:`translate(${-e.properties.get("width").get("length")/2}, 0)`},c.a.createElement("path",{key:"1",d:i,style:u,transform:`translate(0,${-r/2})`}),c.a.createElement("line",{key:"2",x1:0,y1:-3,x2:0,y2:-r/2-3,style:l}),c.a.createElement("path",{key:"3",d:s,style:u,transform:`translate(${r},${-r/2}) rotate(90)`}),c.a.createElement("line",{key:"4",x1:r,y1:-3,x2:r,y2:-r/2-3,style:l}),c.a.createElement("path",{key:"5",d:a,style:l})):c.a.createElement("g",{transform:`translate(${-e.properties.get("width").get("length")/2}, 0)`},c.a.createElement("path",{key:"1",d:i,style:u,transform:`translate(${r},${r/2}) rotate(180)`}),c.a.createElement("line",{key:"2",x1:0,y1:-3,x2:0,y2:r/2-3,style:l}),c.a.createElement("path",{key:"3",d:s,style:u,transform:`translate(0,${r/2}) rotate(270)`}),c.a.createElement("line",{key:"4",x1:r,y1:-3,x2:r,y2:r/2-3,style:l}),c.a.createElement("path",{key:"5",d:a,style:l}))},render3D:function(e,t,n){let r=e.properties.get("flip_horizontal"),a=e.properties.get("width").get("length"),i=e.properties.get("height").get("length"),s=e.properties.get("thickness").get("length"),l=e.properties.get("altitude").get("length"),c=new u.Object3D;c.add(o().clone());let d=(new u.Box3).setFromObject(c),p=Math.abs(d.max.x-d.min.x),h=Math.abs(d.max.y-d.min.y),m=Math.abs(d.max.z-d.min.z);if(e.selected){let e=new u.BoxHelper(c,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,c.add(e)}return r&&(c.rotation.y+=Math.PI),c.position.y+=l,c.scale.set(a/p,i/h,s/m),Promise.resolve(c)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/panic-door-double/panicDoorDouble.png"},function(e,t,n){"use strict";function o(e){let t=new l.Mesh,n=function(){let e=new l.Object3D,t=new l.BoxGeometry(.6,1.2,.01),n=new l.BoxGeometry(.2,.7,.01),o=new l.BoxGeometry(.2,.2,.01),r=new l.CylinderGeometry(.005,.005,1.9,Math.round(32)),a=new l.BoxGeometry(.03,1.9,.01),i=new l.BoxGeometry(.2,.7,.06),s=new l.BoxGeometry(.19,.7,.06),c=new l.BoxGeometry(.2,.2,.06),d=new l.BoxGeometry(.2,.5,.05),h=new l.BoxGeometry(.59,1.2,.06),m=new l.BoxGeometry(.01,.52,.064),f=new l.BoxGeometry(.224,.01,.064),y=new l.Mesh(t,u),g=new l.Mesh(s,u),w=new l.Mesh(i,u),x=new l.Mesh(h,u),v=new l.Mesh(n,u),M=new l.Mesh(n,u),b=new l.Mesh(o,u),E=new l.Mesh(c,u),_=new l.Mesh(r,u),O=new l.Mesh(a,u),T=new l.Mesh(d,p),I=new l.Mesh(m,u),q=new l.Mesh(m,u),P=new l.Mesh(f,u),D=new l.Mesh(f,u);return y.position.set(-(.6-.59)/2,0,-.025),v.position.set(-.2,.95,0),M.position.set(.2,.95,0),b.position.set(0,.35,-.025),E.position.set(0,.35,0),T.position.set(-.005,.85,0),w.position.z=.025,g.position.set(.005,0,.025),_.position.set(-.3,.35,0),I.position.x=.1+.007,q.position.x=-.1-.007,P.position.y=.257,D.position.y=-.257,O.position.set(.01,0,-.005),_.add(O),T.add(b),T.add(I),T.add(q),T.add(P),T.add(D),T.add(b),T.add(E),x.add(T),v.add(g),M.add(w),y.add(_),y.add(v),y.add(M),x.add(y),e.add(x),e.scale.x=1.3,e}(),o=function(e){let t=new l.Object3D,n=function(e){let t=new l.Object3D,n=new l.BoxGeometry(.038,.14,.01),o=new l.CylinderGeometry(.023,.023,.01,Math.round(32)),r=function(){let e=new l.Object3D,t=new l.CylinderGeometry(.005,.005,.02,Math.round(32)),n=new l.BoxGeometry(.008,.02,.02),o=new l.BoxGeometry(.007,.0203,.0018),r=new l.Mesh(t,h),a=new l.Mesh(n,h),i=new l.Mesh(o,m);return a.position.z=.01,r.add(a),r.add(i),e.add(r),e}(),a=new l.Mesh(n,c),i=new l.Mesh(o,c);r.rotation.x=Math.PI/2,i.rotation.x=Math.PI/2,r.position.y=-.03,i.position.y=-.033,e||(a.position.x=.4);return i.scale.z=1.5,a.add(r),a.add(i),t.add(a),t}(e),o=function(){let e=new l.Object3D,t=new l.CylinderGeometry(.01,.01,.03,Math.round(32)),n=new l.SphereGeometry(.01,Math.round(32),Math.round(32)),o=new l.CylinderGeometry(.01,.01,.07,Math.round(32)),r=new l.Mesh(t,c),a=new l.Mesh(n,c),i=new l.Mesh(o,c),s=new l.Mesh(n,c);return i.rotation.z=Math.PI/2,i.position.x=.035,a.position.y=-.015,s.position.y=-.035,i.add(s),a.add(i),r.add(a),e.add(r),e}();o.rotation.x=Math.PI/2,e?o.position.set(0,.04,-.02):(o.position.set(.4,.04,-.02),o.rotation.y=Math.PI);return t.add(n),t.add(o),t.scale.set(1.1,1.1,1.1),t}(e),i=a(),s=a(),d=r(),f=r(),y=function(){let e=new l.Object3D,t=new l.BoxGeometry(.01,.1,.02),n=new l.BoxGeometry(.01,.02,.01),o=new l.BoxGeometry(.006,.04,.008),r=new l.Mesh(t,h),a=new l.Mesh(n,m),i=new l.Mesh(o,m);return a.position.set(-.004,.03,0),i.position.y=-.05,a.add(i),r.add(a),e.add(r),e}(),g=function(){let e=new l.Object3D,t=new l.CylinderGeometry(.012,.012,1.905,Math.round(32)),n=new l.CylinderGeometry(.007,.007,1.907,Math.round(32)),o=new l.Mesh(t,h),r=new l.Mesh(n,m);return e.position.set(-.275,.35,0),e.scale.x=1/1.3,o.add(r),e.add(o),e}();return y.position.set(-.05,-.02,.03),o.position.set(-.235,.425,-.03),e?i.position.set(.2975,0,-.03):i.position.set(-.2975,0,-.03),s.position.set(.3,0,.0385),d.position.set(0,.4,.03),f.position.set(0,.4,-.031),o.add(y),n.add(o),n.add(d),n.add(i),t.add(n),n.add(g),t}function r(){let e=new l.Object3D,t=new l.BoxGeometry(.5,.1,.005),n=new l.CylinderGeometry(.04,.04,.48,Math.round(32)),o=new l.CylinderGeometry(.042,.042,.01,Math.round(32)),r=new l.Mesh(t,c),a=new l.Mesh(n,d),i=new l.Mesh(o,c),s=new l.Mesh(o,c);return r.position.z=.0025,a.rotation.z=Math.PI/2,i.position.y=.245,s.position.y=-.245,a.add(i),a.add(s),r.add(a),e.add(r),e}function a(){let e=new l.Object3D,t=new l.CylinderGeometry(.009,.009,.04,Math.round(32)),n=new l.CylinderGeometry(.01,.01,.04,Math.round(32)),o=new l.Mesh(t,u),r=new l.Mesh(n,u),a=new l.Mesh(t,u),i=new l.Mesh(n,u);return o.position.y=-.4,r.position.y=.04,a.position.y=1,i.position.y=.04,a.add(i),o.add(r),e.add(a),e.add(o),e}var i=n(0),s=n.n(i),l=n(1);const c=new l.MeshLambertMaterial({color:0}),u=new l.MeshLambertMaterial({color:3442561}),d=new l.MeshLambertMaterial({color:16711680}),p=new l.MeshLambertMaterial({color:4441819,opacity:.7,transparent:!0}),h=new l.MeshLambertMaterial({color:12046060}),m=(new l.MeshLambertMaterial({color:3223857}),new l.MeshLambertMaterial({color:2171169}),new l.MeshLambertMaterial({color:5664126}));let f,y;t.a={name:"panic door",prototype:"holes",info:{tag:["door"],group:"door",title:"panic door",description:"iron door",image:n(484)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:100,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:215,unit:"cm"}},thickness:{label:"thickness",type:"length-measure",defaultValue:{length:30,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},flip_horizontal:{label:"horizontal flip",type:"checkbox",defaultValue:"none",values:{none:"none",yes:"yes"}},flip_vertical:{label:"vertical flip",type:"checkbox",defaultValue:"right",values:{right:"right",left:"left"}}},render2D:function(e,t,n){let o,r,a,i,l,c,u,d,p,h=e.properties.get("flip_horizontal"),m=e.properties.get("flip_vertical"),g=e.properties.get("width").get("length"),w=`M0 -3  L${g} -3  L${g} 3  L0 3  z`,x=`M0,0  A${g},${g} 0 0,1 ${g},${g}`,v=e.selected?{stroke:"#ff0000",strokeWidth:"4px",fill:"#ff0000",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",fill:"#ff0000"},M=e.selected?{stroke:"#ff0000",strokeWidth:"4px",strokeDasharray:"5,5",fill:"none",cursor:"move"}:{stroke:"#ff0000",strokeWidth:"3px",strokeDasharray:"5,5",fill:"none"};e.properties.get("width").get("length");return f=h?"yes":"none",y=m?"right":"left","yes"===f?(o=1,"right"===y?(i=g,l=-g,c=-g,d=0,u=-g,p=g,a=180,r=-1):(i=0,l=-g,c=0,d=0,u=0,p=-g,r=1,a=0)):"none"===f&&(o=-1,"left"===y?(i=g,l=0,c=0,d=0,u=0,p=-g,a=-90,r=-1):(i=0,l=0,c=g,d=0,u=g,p=g,a=90,r=1)),s.a.createElement("g",{transform:`translate(${-e.properties.get("width").get("length")/2}, 0)`},s.a.createElement("path",{key:"1",d:x,style:M,transform:`translate(${i},${l}) scale(${o},${r}) rotate(${a})`}),s.a.createElement("line",{key:"2",x1:c,y1:d-3,x2:u,y2:p-3,style:v,transform:`scale(${-o},${r})`}),s.a.createElement("path",{key:"5",d:w,style:v}))},render3D:function(e,t,n){let r=e.properties.get("flip_horizontal"),a=e.properties.get("flip_vertical"),i=e.properties.get("width").get("length"),s=e.properties.get("height").get("length"),c=e.properties.get("thickness").get("length"),u=e.properties.get("altitude").get("length"),d=new l.Object3D;if(d.add(o(a).clone()),e.selected){let e=new l.BoxHelper(d,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,d.add(e)}let p=(new l.Box3).setFromObject(d),h=Math.abs(p.max.x-p.min.x),m=Math.abs(p.max.y-p.min.y),f=Math.abs(p.max.z-p.min.z);return r&&(d.rotation.y+=Math.PI),d.position.y+=u,d.scale.set(i/h,s/m,c/f),Promise.resolve(d)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/panic-door/panicDoor.png"},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(1),i=n(28),s=n(29),l=n.n(s);let c=null;t.a={name:"sash window",prototype:"holes",info:{title:"sash window",tag:["window"],group:"Vertical closure",description:"Sash window",image:n(486)},properties:{width:{label:"Width",type:"length-measure",defaultValue:{length:90}},height:{label:"Height",type:"length-measure",defaultValue:{length:100}},altitude:{label:"Altitude",type:"length-measure",defaultValue:{length:90}},thickness:{label:"Thickness",type:"length-measure",defaultValue:{length:10}}},render2D:function(e,t,n){let o=e.properties.get("width").get("length"),a=`M0 -3  L${o} -3  L${o} 3  L0 3  z`,i=e.selected?{stroke:"#0096fd",strokeWidth:"3px",fill:"#0096fd",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",fill:"#000"},s=e.properties.get("width").get("length");return r.a.createElement("g",{transform:`translate(${-s/2}, 0)`},r.a.createElement("path",{key:"1",d:a,style:i}),r.a.createElement("line",{key:"2",x1:o/2,y1:-13,x2:o/2,y2:13,style:i}))},render3D:function(e,t,o){let r=t=>{let n=(new a.Box3).setFromObject(t),o=n.max.x-n.min.x,r=n.max.y-n.min.y,i=n.max.z-n.min.z;if(e.selected){let e=new a.BoxHelper(t,10077179);e.material.linewidth=2,e.material.depthTest=!1,e.renderOrder=1e3,t.add(e)}let s=e.properties.get("width").get("length"),l=e.properties.get("height").get("length"),c=e.properties.get("thickness").get("length");return t.scale.set(s/o,l/r,c/i),t};if(c)return Promise.resolve(r(c.clone()));let s=n(487),u=n(488),d=n(489);return Object(i.a)(s,u,l.a.dirname(d)+"/").then(e=>(c=e,r(c.clone())))}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/sash-window/window.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/sash-window/sash-window.mtl"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/sash-window/sash-window.obj"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/sash-window/texture.png"},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(1);const i=new a.MeshLambertMaterial({color:4144959}),s=new a.MeshLambertMaterial({color:16777215,transparent:!0,opacity:.5}),l=new a.MeshLambertMaterial({color:0});t.a={name:"sliding door",prototype:"holes",info:{tag:["door"],title:"sliding door",group:"door",description:"iron door",image:n(491)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:200,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:215,unit:"cm"}},thickness:{label:"thickness",type:"length-measure",defaultValue:{length:30,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},flip_horizontal:{label:"horizontal flip",type:"checkbox",defaultValue:"none",values:{none:"none",yes:"yes"}},flip_vertical:{label:"vertical flip",type:"checkbox",defaultValue:"right",values:{right:"right",left:"left"}}},render2D:function(e,t,n){const o={stroke:"#0096fd",strokeWidth:"14px",fill:"#0096fd",cursor:"move"};let a,i,s,l,c=e.properties.get("flip_horizontal"),u=e.properties.get("flip_vertical"),d=e.properties.get("width").get("length"),p=e.selected?o:{stroke:"#000",strokeWidth:"14px",fill:"#000"},h=e.selected?o:{stroke:"#000",strokeWidth:"16px",fill:"#000"};e.properties.get("width").get("length");return c=c?"yes":"none",u=u?"right":"left","yes"===c?(a=1,"right"===u?(s=0,l=d/2,i=-1):(s=d/2,l=d,i=-1)):(a=1,"right"===u?(s=d/2,l=d,i=1):(s=0,l=d/2,i=1)),r.a.createElement("g",{transform:`translate(${-e.properties.get("width").get("length")/2}, 0)`},r.a.createElement("line",{key:"1",x1:"0",y1:-3,x2:d,y2:-3,style:p,transform:`scale(${a},${i})`}),r.a.createElement("line",{key:"2",x1:s,y1:2,x2:l,y2:2,style:h,transform:`scale(${a},${i})`}),r.a.createElement("line",{key:"3",x1:d,y1:-3,x2:d,y2:18,style:h,transform:`scale(${a},${i})`}),r.a.createElement("line",{key:"4",x1:"0",y1:-3,x2:"0",y2:18,style:h,transform:`scale(${a},${i})`}))},render3D:function(e,t,n){let o=e.properties.get("flip_horizontal"),r=e.properties.get("flip_vertical"),c=e.properties.get("width").get("length"),u=e.properties.get("height").get("length"),d=e.properties.get("thickness").get("length"),p=e.properties.get("altitude").get("length");o=o?"yes":"none",r=r?"right":"left";let h=new a.Object3D;h.add(function(e){let t=new a.Mesh,n=new a.Shape;n.moveTo(1,2),n.lineTo(0,2),n.lineTo(0,0),n.lineTo(1,0);let o=new a.Path;o.moveTo(.65,1.75),o.lineTo(.35,1.75),o.lineTo(.35,1.25),o.lineTo(.65,1.25),n.holes.push(o);let r=new a.ExtrudeGeometry(n,{steps:2,amount:.05,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),c=new a.Mesh(r,i);"right"===e?c.position.set(-1,0,0):c.position.set(0,0,0),t.add(c);let u=new a.BoxGeometry(1,2,.05),d=new a.Mesh(u,i);"right"===e?d.position.set(1.5,1,.065):d.position.set(-.5,1,.065),c.add(d);let p=new a.BoxGeometry(2,.1,.1),h=new a.Mesh(p,i);h.position.set(-0,2.07,.05),t.add(h);let m=new a.BoxGeometry(.3,.5,.05),f=new a.Mesh(m,s);f.position.set(.5,1.5,.025),c.add(f);let y=new a.CylinderGeometry(.051,.051,.0625,80,80,!0);l.side=a.DoubleSide;let g=new a.Mesh(y,l);g.position.set(.2,1,.025),g.rotation.x=Math.PI/2,c.add(g);let w=new a.BoxGeometry(.1,.02,.0625),x=new a.Mesh(w,l);return x.position.set(.2,1,.025),c.add(x),"left"===e&&(g.position.x=.8,x.position.x=.8),t}(r).clone());let m=(new a.Box3).setFromObject(h),f=Math.abs(m.max.x-m.min.x),y=Math.abs(m.max.y-m.min.y),g=Math.abs(m.max.z-m.min.z);if(e.selected){let e=new a.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return"yes"===o&&(h.rotation.y+=Math.PI),h.position.y+=p,h.scale.set(c/f,u/y,d/g),Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/sliding-door/slidingDoor.png"},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(1),i=n(28),s=n(29),l=n.n(s);let c=null;t.a={name:"venetian-blind-window",prototype:"holes",info:{tag:["Window"],group:"Vertical Closing",title:"Venetian Blind Window",description:"Venetian Blind Window",image:n(493)},properties:{width:{label:"Width",type:"length-measure",defaultValue:{length:90}},height:{label:"Height",type:"length-measure",defaultValue:{length:100}},altitude:{label:"Altitude",type:"length-measure",defaultValue:{length:90}},thickness:{label:"Thickness",type:"length-measure",defaultValue:{length:10}},flip:{label:"Flip",type:"checkbox",defaultValue:"false"}},render2D:function(e,t,n){let o=e.properties.get("width").get("length"),a=`M0 -3  L${o} -3  L${o} 3  L0 3  z`,i=e.selected?{stroke:"#0096fd",strokeWidth:"3px",fill:"#0096fd",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",fill:"#000"},s=e.properties.get("width").get("length");return r.a.createElement("g",{transform:`translate(${-s/2}, 0)`},r.a.createElement("path",{key:"1",d:a,style:i}),r.a.createElement("line",{key:"2",x1:o/2,y1:-13,x2:o/2,y2:13,style:i}))},render3D:function(e,t,o){function r(){var e=new a.Object3D,t=new a.MeshLambertMaterial({color:16777215,opacity:.5,transparent:!0}),n=new a.MeshLambertMaterial({color:13421772}),o=new a.Shape;o.moveTo(0,.25),o.lineTo(0,17.75),o.quadraticCurveTo(0,18,.25,18),o.lineTo(.75,18),o.quadraticCurveTo(1,18,1,17.75),o.lineTo(1,.25),o.quadraticCurveTo(1,0,.75,0),o.lineTo(.25,0),o.quadraticCurveTo(0,0,0,.25);var r=new a.Path;r.moveTo(.5,.6),r.arc(0,.7,.15,0,Math.PI,!1),r.arc(.15,-.09,.15,Math.PI,0,!1),o.holes.push(r);var i=new a.Path;i.moveTo(.5,4.6),i.arc(0,.7,.15,0,Math.PI,!1),i.arc(.15,-.09,.15,Math.PI,0,!1),o.holes.push(i);var l=new a.Path;l.moveTo(.5,8.6),l.arc(0,.7,.15,0,Math.PI,!1),l.arc(.15,-.09,.15,Math.PI,0,!1),o.holes.push(l);var c=new a.Path;c.moveTo(.5,12.6),c.arc(0,.7,.15,0,Math.PI,!1),c.arc(.15,-.09,.15,Math.PI,0,!1),o.holes.push(c);var u=new a.Path;u.moveTo(.5,16.6),u.arc(0,.7,.15,0,Math.PI,!1),u.arc(.15,-.09,.15,Math.PI,0,!1),o.holes.push(u);for(var d={steps:1,amount:.2,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1},p=0;p<25;p+=.7){var h=new a.ExtrudeGeometry(o,d),m=new a.Mesh(h,n);m.position.set(0,p,.86),m.rotation.z+=Math.PI/2,m.rotation.x+=-Math.PI/2,e.add(m)}for(var f=-1.25;f>-19;f+=-4){var y=new a.CylinderGeometry(.105,.105,26,32),g=new a.Mesh(y,t);g.position.set(f,12.5,.35),e.add(g)}var w=new a.Shape;w.moveTo(0,.25),w.lineTo(0,17.75),w.quadraticCurveTo(0,18,.25,18),w.lineTo(.75,18),w.quadraticCurveTo(1,18,1,17.75),w.lineTo(1,.25),w.quadraticCurveTo(1,0,.75,0),w.lineTo(.25,0),w.quadraticCurveTo(0,0,0,.25);for(var x={steps:1,amount:.4,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1},v=-.5;v<27;v+=26){var M=new a.ExtrudeGeometry(w,x),b=new a.Mesh(M,n);b.position.set(0,v,1),b.rotation.z+=Math.PI/2,b.rotation.x+=-Math.PI/2,e.add(b)}let E=(new a.Box3).setFromObject(e),_=Math.abs(E.max.x-E.min.x),O=Math.abs(E.max.y-E.min.y),T=Math.abs(E.max.z-E.min.z);return e.position.x+=40,e.position.y+=-45,e.scale.set(5.2/T,5.45*18/O,2.5*s/_),e}e.properties.get("width").get("length"),e.properties.get("height").get("length");let s=e.properties.get("thickness").get("length"),u=e.properties.get("flip"),d=t=>{let n=new a.Object3D,o=(new a.Box3).setFromObject(t),i=o.max.x-o.min.x,s=o.max.y-o.min.y,l=o.max.z-o.min.z;if(e.selected){let e=new a.BoxHelper(t,10077179);e.material.linewidth=2,e.material.depthTest=!1,e.renderOrder=1e3,t.add(e)}let c=e.properties.get("width").get("length"),d=e.properties.get("height").get("length"),p=e.properties.get("thickness").get("length");return t.scale.set(c/i,d/s,p/2/l),n.add(t),n.add(r()),!0===u&&(n.rotation.y+=Math.PI),n};if(c)return Promise.resolve(d(c.clone()));let p=n(494),h=n(495),m=n(496);return Object(i.a)(p,h,l.a.dirname(m)+"/").then(e=>(c=e,d(c.clone())))}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/venetian-blind-window/veneziana.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/venetian-blind-window/window.mtl"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/venetian-blind-window/window.obj"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/venetian-blind-window/texture.png"},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(1),i=n(28),s=n(29),l=n.n(s);let c=null;t.a={name:"window-curtain",prototype:"holes",info:{tag:["Finestre"],group:"Vertical Closing",title:"Curtain window",description:"Curtain window",image:n(498)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:90}},height:{label:"height",type:"length-measure",defaultValue:{length:100}},altitude:{label:"altitudine",type:"length-measure",defaultValue:{length:90}},thickness:{label:"spessore",type:"length-measure",defaultValue:{length:10}},flip:{label:"flip",type:"checkbox",defaultValue:"none",values:{none:"none",yes:"yes"}}},render2D:function(e,t,n){let o=e.properties.get("width").get("length"),a=`M0 -3  L${o} -3  L${o} 3  L0 3  z`,i=e.selected?{stroke:"#0096fd",strokeWidth:"3px",fill:"#0096fd",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",fill:"#000"},s=e.properties.get("width").get("length");return r.a.createElement("g",{transform:`translate(${-s/2}, 0)`},r.a.createElement("path",{key:"1",d:a,style:i}),r.a.createElement("line",{key:"2",x1:o/2,y1:-13,x2:o/2,y2:13,style:i}))},render3D:function(e,t,o){function r(){let e=new a.MeshLambertMaterial({color:15394506}),t=new a.Object3D,n=function(e){e.applyMatrix((new a.Matrix4).makeTranslation(-25,0,-25));let t=new a.MeshLambertMaterial({color:16777215,opacity:.9,transparent:!0});t.side=a.DoubleSide;return new a.Mesh(e,t)}(new a.ParametricGeometry(function(e,t){let n=3*Math.sin(e)*10,o=2*Math.sin(t/2)*10,r=.5*(Math.sin(2*e*Math.PI)+Math.cos(2*t*Math.PI));return new a.Vector3(n,r,o)},20,20));n.rotation.x+=Math.PI/2,n.rotation.y+=Math.PI/2,n.position.y+=3.1,n.position.x+=.05,n.scale.set(.125,.125,.125);let o=n.clone();o.rotation.x+=Math.PI,o.position.set(1.4,0,.06),t.add(n),t.add(o);for(let n=-.7;n>-3.4;n-=.45){let o=new a.TorusGeometry(.08,.016,32,32,2*Math.PI),r=new a.Mesh(o,e);-1.15==n?r.position.set(n,3.14,.045):-2.5==n?r.position.set(n,3.14,-.01):r.position.set(n,3.14,.04),r.rotation.y+=Math.PI/2,t.add(r)}let r=new a.CylinderGeometry(.02,.02,1.25,32),i=new a.Mesh(r,e);i.position.set(-1.1,3.18,.02),i.rotation.z+=Math.PI/2,t.add(i);let l=i.clone();l.position.set(-2.5,3.18,.02),t.add(l);let c=new a.SphereGeometry(.04,32,32),p=new a.Mesh(c,e);p.position.set(-.5,3.18,.02),p.rotation.x+=Math.PI/2,p.scale.set(.8,1,1),t.add(p);let h=p.clone();h.position.x+=-1.2,t.add(h);let m=p.clone();m.position.x+=-1.4,t.add(m);let f=p.clone();f.position.x+=-2.6,t.add(f);let y=(new a.Box3).setFromObject(t),g=Math.abs(y.max.x-y.min.x),w=Math.abs(y.max.y-y.min.y),x=Math.abs(y.max.z-y.min.z);return t.position.x+=s/1.48,t.position.y+=-u/2.1,t.position.z+=d/1024,t.scale.set(s/g,u/w,d/x),t}let s=e.properties.get("width").get("length"),u=e.properties.get("height").get("length"),d=e.properties.get("thickness").get("length"),p=e.properties.get("flip"),h=t=>{let n=new a.Object3D,o=(new a.Box3).setFromObject(t),i=o.max.x-o.min.x,s=o.max.y-o.min.y,l=o.max.z-o.min.z;if(e.selected){let e=new a.BoxHelper(t,10077179);e.material.linewidth=2,e.material.depthTest=!1,e.renderOrder=1e3,t.add(e)}let c=e.properties.get("width").get("length"),u=e.properties.get("height").get("length"),d=e.properties.get("thickness").get("length");return t.scale.set(c/i,u/s,d/2/l),n.add(t),n.add(r()),!0===p&&(n.rotation.y+=Math.PI),n};if(c)return Promise.resolve(h(c.clone()));let m=n(499),f=n(500),y=n(501);return Object(i.a)(m,f,l.a.dirname(y)+"/").then(e=>(c=e,h(c.clone())))}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/window-curtain/window-curtain.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/window-curtain/window.mtl"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/window-curtain/window.obj"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/window-curtain/texture.png"},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(1),i=n(28),s=n(29),l=n.n(s);let c=null;t.a={name:"window",prototype:"holes",info:{title:"window",tag:["window"],group:"Vertical Closing",description:"Window",image:n(503)},properties:{width:{label:"Width",type:"length-measure",defaultValue:{length:90}},height:{label:"Height",type:"length-measure",defaultValue:{length:100}},altitude:{label:"Altitude",type:"length-measure",defaultValue:{length:90}},thickness:{label:"Thickness",type:"length-measure",defaultValue:{length:10}}},render2D:function(e,t,n){let o=e.properties.get("width").get("length"),a=`M0 -3  L${o} -3  L${o} 3  L0 3  z`,i=e.selected?{stroke:"#0096fd",strokeWidth:"3px",fill:"#0096fd",cursor:"move"}:{stroke:"#000",strokeWidth:"3px",fill:"#000"},s=e.properties.get("width").get("length");return r.a.createElement("g",{transform:`translate(${-s/2}, 0)`},r.a.createElement("path",{key:"1",d:a,style:i}),r.a.createElement("line",{key:"2",x1:o/2,y1:-13,x2:o/2,y2:13,style:i}))},render3D:function(e,t,o){let r=t=>{let n=(new a.Box3).setFromObject(t),o=n.max.x-n.min.x,r=n.max.y-n.min.y,i=n.max.z-n.min.z;if(e.selected){let e=new a.BoxHelper(t,10077179);e.material.linewidth=2,e.material.depthTest=!1,e.renderOrder=1e3,t.add(e)}let s=e.properties.get("width").get("length"),l=e.properties.get("height").get("length"),c=e.properties.get("thickness").get("length");return t.scale.set(s/o,l/r,c/i),t};if(c)return Promise.resolve(r(c.clone()));let s=n(504),u=n(505),d=n(506);return Object(i.a)(s,u,l.a.dirname(d)+"/").then(e=>(c=e,r(c.clone())))}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/window/window.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/window/window.mtl"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/window/window.obj"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/holes/window/texture.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:14276567});i.side=o.DoubleSide;const s=new o.MeshLambertMaterial({color:8422023});s.side=o.DoubleSide;new o.MeshLambertMaterial({color:0}).side=o.DoubleSide;const l=function(){let e=new o.Mesh,t=new o.Shape;t.moveTo(0,0),t.lineTo(.15,0),t.lineTo(.3,.15),t.quadraticCurveTo(.3,.6,.075,.6),t.lineTo(.075,.6),t.lineTo(0,.6);let n=new o.ExtrudeGeometry(t,{steps:2,amount:1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),r=new o.Mesh(n,i);r.position.set(-.11,1.2,0),r.rotation.z+=Math.PI,e.add(r);let a=1.18;for(let t=-.3;t>-.36;t-=.005){let n=new o.BoxGeometry(.001,.025,.705),r=new o.Mesh(n,s);r.position.set(t,a,.5),r.rotation.z+=Math.PI/4,e.add(r),a-=.005}for(let t=.15;t<.87;t+=.05){let n=new o.BoxGeometry(.079,.025,.005),r=new o.Mesh(n,s);r.position.set(-.324,1.148,t),r.rotation.z+=Math.PI/4,e.add(r)}let l=new o.Shape;l.moveTo(0,0),l.lineTo(.2,0),l.quadraticCurveTo(.35,.4,.1,.4),l.lineTo(.1,.4),l.quadraticCurveTo(.35,.1,0,0);let c=new o.ExtrudeGeometry(l,{steps:2,amount:1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),u=new o.Mesh(c,i);u.position.set(-.2,1.1,0),u.rotation.z+=Math.PI,e.add(u);let d=new o.Shape;d.moveTo(0,0),d.quadraticCurveTo(.075-.05,-.1,.1,0),d.lineTo(.1,0),d.quadraticCurveTo(.125,.2,.05,.1),d.lineTo(.05,.1),d.quadraticCurveTo(.025,0+.1/6,0,0);let p=new o.ExtrudeGeometry(d,{steps:2,amount:.1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),h=new o.Mesh(p,s);h.position.set(-.27,.62,.1),h.rotation.y+=Math.PI,h.rotation.z-=Math.PI/9,e.add(h);let m=new o.Mesh(p,s);m.position.set(-.27,.62,1),m.rotation.y+=Math.PI,m.rotation.z-=Math.PI/9,e.add(m);let f=[];f.push(new o.Vector3(.5,0)),f.push(new o.Vector3(.5,0)),f.push(new o.Vector3(.5,.8)),f.push(new o.Vector3(.5,.8));let y=new o.LatheGeometry(f,200,Math.PI/2,Math.PI/16),g=new o.Mesh(y,s);g.position.set(-.4,.18,.9),g.rotation.z+=Math.PI/2,g.rotation.y+=-Math.PI/2,e.add(g);let w=new o.Mesh(y,s);return w.position.set(-.4,.15,.9),w.rotation.z+=Math.PI/2,w.rotation.y+=-Math.PI/2,e.add(w),e}(),c=function(){let e=new o.Mesh,t=new o.Shape;t.moveTo(0,0),t.lineTo(.15,0),t.lineTo(.3,.15),t.quadraticCurveTo(.3,.6,.075,.6),t.lineTo(.075,.6),t.lineTo(0,.6);let n=new o.ExtrudeGeometry(t,{steps:2,amount:1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),r=new o.Mesh(n,i);r.position.set(-.11,1.2,0),r.rotation.z+=Math.PI,e.add(r);let a=new o.Shape;a.moveTo(0,0),a.lineTo(.2,0),a.quadraticCurveTo(.35,.4,.1,.4),a.lineTo(.1,.4),a.quadraticCurveTo(.35,.1,0,0);let s=new o.ExtrudeGeometry(a,{steps:2,amount:1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),l=new o.Mesh(s,i);return l.position.set(-.2,1.1,0),l.rotation.z+=Math.PI,e.add(l),e}();t.a={name:"conditioner",prototype:"items",info:{tag:["furnishings","metal"],group:"Items",title:"air conditioner",description:"air conditioner",image:n(508)},properties:{altitude:{label:"quota",type:"length-measure",defaultValue:{length:220,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-45,-20)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:90,height:40,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(45, 20) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(l.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),u=Math.abs(i.max.y-i.min.y),d=Math.abs(i.max.z-i.min.z);a.position.x+=90/2.2,a.position.z+=40/1.2,a.position.y+=r,a.rotation.y+=-Math.PI/2,a.scale.set(90/d,30/u,40/s/1.4);let p=new o.Object3D;p.add(c.clone()),p.position.x+=90/2.2,p.position.z+=40/1.2,p.position.y+=r,p.rotation.y+=-Math.PI/2,p.scale.set(90/d,30/u,40/s/1.4);let h=new o.LOD;if(h.addLevel(a,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/air-conditioner/air_conditioner.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=60,s=60;let l=new o.MeshLambertMaterial({color:12632256});l.side=o.DoubleSide;let c=new o.MeshLambertMaterial({color:33360});t.a={name:"armchairs",prototype:"items",info:{tag:["furnishings","wood"],group:"armchair",title:"armchairs",description:"armchairs",image:n(510)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},seat:{label:"seats",type:"number",defaultValue:1},flip:{label:"flip",type:"checkbox",defaultValue:!1,values:{none:!1,yes:!0}}},render2D:function(e,t,n){let o={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},r=e.rotation+90,l=0;Math.sin(r*Math.PI/180)<0&&(l=180);let c=e.properties.get("seat"),u=e.properties.get("flip"),d=new Array(c);for(let e=0;e<c;e++)d[e]=a.a.createElement("rect",{key:e,x:i*e,y:-1.7*e,width:i,height:s,style:o});return a.a.createElement("g",{transform:`translate(${(u?-1:1)*i*c/2},${-s/2}) scale(${u?1:-1},1)`},d,a.a.createElement("text",{x:"0",y:"0",transform:`translate(${i*c/2}, ${s/2+-1.7*c/2}) scale(${u?1:-1},-1) rotate(${l})`,style:{textAnchor:"middle",fontSize:"11px",fill:"#FF0000"}},e.type))},render3D:function(e,t,n){function r(e,t){m=i*t,f=s+s/8*t/2,g=e;for(let e=0;e<t;e++)g[e].position.x=-.8*(e-Math.floor(t/2)),g[e].position.z=h?-.085*(e-Math.floor(t/2)):.085*(e-Math.floor(t/2))}function a(e){let t=function(){let e=new o.Object3D,t=new o.Mesh,n=new o.BoxGeometry(.3,.05,.4),r=new o.Mesh(n,l);r.position.set(0,.1,.1),t.add(r);let a=new o.CylinderGeometry(.055,.055,.35,20),i=new o.Mesh(a,l);i.position.set(0,.25,.15),t.add(i),e.add(t);let s=new o.Mesh,u={amount:.65,bevelEnabled:!1,bevelSegments:2,steps:10,bevelSize:1,bevelThickness:1},d=new o.Shape;d.moveTo(0,0),d.lineTo(0,.05),d.quadraticCurveTo(0,.1,-.02,.1),d.lineTo(-.6,.1),d.quadraticCurveTo(-.6,.1,-.6,.07),d.lineTo(-.6,0);let p=new o.ExtrudeGeometry(d,u),h=new o.Mesh(p,c);h.rotation.y=Math.PI/2,h.rotation.z=Math.PI/3.5,h.position.set(-.325,.905,-.3),s.add(h);let m=new o.Shape;m.moveTo(0,0),m.lineTo(0,.1),m.quadraticCurveTo(-.5,.07,-.97,.1),m.quadraticCurveTo(-1,.1,-1,.07),m.lineTo(-1,0),m.quadraticCurveTo(-.5,-.03,0,0);let f=new o.ExtrudeGeometry(m,u),y=new o.Mesh(f,c);y.rotation.z=-105*Math.PI/180,y.rotation.y=-Math.PI/2,y.position.set(.325,.52,.125),s.add(y);let g=new o.CylinderGeometry(.06,.06,.8,32,32,!0),w=new o.Mesh(g,l);w.rotation.z=-Math.PI/2,w.position.set(0,.45,.15),s.add(w);let x=new o.Shape;x.moveTo(0,.25),x.lineTo(0,.5),x.quadraticCurveTo(0,.75,.25,.75),x.lineTo(.7-.25,.75),x.lineTo(.7,.25),x.quadraticCurveTo(.7,0,.7-.25,0),x.lineTo(.25,0),x.quadraticCurveTo(0,0,0,.25);let v=new o.ExtrudeGeometry(x,{steps:2,amount:.07,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),M=new o.Mesh(v,l);M.rotation.y=Math.PI/2,M.rotation.z=.9*Math.PI,M.position.set(-.4,1,-.4),s.add(M);let b=M.clone();return b.position.x+=.73,s.add(b),e.add(s),e}().clone();for(let n=0;n<e;n++)g[n]=t.clone();return g}function u(e){let t=function(){let e=new o.Object3D,t=new o.Mesh,n=new o.BoxGeometry(.3,.05,.4),r=new o.Mesh(n,l);r.position.set(0,.1,.1),t.add(r);let a=new o.CylinderGeometry(.055,.055,.35,8,8),i=new o.Mesh(a,l);i.position.set(0,.25,.15),t.add(i),e.add(t);let s=new o.Mesh,u={amount:.65,bevelEnabled:!1,bevelSegments:2,steps:10,bevelSize:1,bevelThickness:1},d=new o.Shape;d.moveTo(0,0),d.lineTo(0,.05),d.quadraticCurveTo(0,.1,-.02,.1),d.lineTo(-.6,.1),d.quadraticCurveTo(-.6,.1,-.6,.07),d.lineTo(-.6,0);let p=new o.ExtrudeGeometry(d,u),h=new o.Mesh(p,c);h.rotation.y=Math.PI/2,h.rotation.z=Math.PI/3.5,h.position.set(-.325,.905,-.3),s.add(h);let m=new o.Shape;m.moveTo(0,0),m.lineTo(0,.1),m.quadraticCurveTo(-.5,.07,-.97,.1),m.quadraticCurveTo(-1,.1,-1,.07),m.lineTo(-1,0),m.quadraticCurveTo(-.5,-.03,0,0);let f=new o.ExtrudeGeometry(m,u),y=new o.Mesh(f,c);y.rotation.z=-105*Math.PI/180,y.rotation.y=-Math.PI/2,y.position.set(.325,.52,.125),s.add(y);let g=new o.CylinderGeometry(.06,.06,.8,8,8,!0),w=new o.Mesh(g,l);w.rotation.z=-Math.PI/2,w.position.set(0,.45,.15),s.add(w);let x=new o.Shape;x.moveTo(0,.25),x.lineTo(0,.5),x.quadraticCurveTo(0,.75,.25,.75),x.lineTo(.7-.25,.75),x.lineTo(.7,.25),x.quadraticCurveTo(.7,0,.7-.25,0),x.lineTo(.25,0),x.quadraticCurveTo(0,0,0,.25);let v=new o.ExtrudeGeometry(x,{steps:2,amount:.07,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),M=new o.Mesh(v,l);M.rotation.y=Math.PI/2,M.rotation.z=.9*Math.PI,M.position.set(-.4,1,-.4),s.add(M);let b=M.clone();return b.position.x+=.73,s.add(b),e.add(s),e}().clone();for(let n=0;n<e;n++)g[n]=t.clone();return g}let d=e.properties.get("altitude").get("length"),p=e.properties.get("seat"),h=e.properties.get("flip"),m=i,f=s,y=new o.Object3D,g=new Array(p),w=a(p);r(w,p);for(let e=0;e<w.length;e++)y.add(w[e]);let x=(new o.Box3).setFromObject(y),v=Math.abs(x.max.x-x.min.x),M=Math.abs(x.max.y-x.min.y),b=Math.abs(x.max.z-x.min.z);y.position.y+=-5+d,y.position.x+=p%2?m/p-i:m/p-1.5*i,y.position.z-=s/8,y.scale.set(m/v,100/M,f/b);let E=new o.Object3D,_=u(p);r(_,p);for(let e=0;e<_.length;e++)E.add(_[e]);E.position.y+=-5+d,E.position.x+=p%2?m/p-i:m/p-1.5*i,E.position.z-=s/8,E.scale.set(m/v,100/M,f/b);let O=new o.LOD;if(O.addLevel(y,200),O.addLevel(E,700),O.updateMatrix(),O.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(O,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,O.add(e)}return Promise.resolve(O)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/armchairs/armchairs.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=Math.PI/2,s=n(512),l=n(513),c=100;let u=new o.TextureLoader;u.setPath("./");let d=u.load(s),p=u.load(l);t.a={name:"balcony",prototype:"items",info:{tag:["furnishings","metal"],group:"balcony",title:"balcony",description:"balcony",image:n(514)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:500,unit:"cm"}},depth:{label:"depth",type:"length-measure",defaultValue:{length:100,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:100,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},patternColor:{label:"2D color",type:"color",defaultValue:"#f5f4f4"}},render2D:function(e,t,n){let o=e.properties.getIn(["width","length"]),r=e.properties.getIn(["depth","length"]),i=e.selected?"#99c3fb":e.properties.get("patternColor"),s=e.rotation+90,l=0;return Math.sin(s*Math.PI/180)<0&&(l=180),a.a.createElement("g",{transform:`translate(${-o/2},${-r/2})`},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:o,height:r,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:i}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(${o/2}, ${r/2}) scale(1,-1) rotate(${l})`,style:{textAnchor:"middle",fontSize:"11px"}},e.name))},render3D:function(e,t,n){let r=e.properties.getIn(["width","length"]),a=e.properties.getIn(["depth","length"]),s=e.properties.getIn(["height","length"]),h=e.properties.getIn(["altitude","length"]),m=new o.Object3D;if(m.add(function(e,t,n){let r=u.load(l,n=>{n.wrapS=n.wrapT=o.RepeatWrapping,n.offset.set(0,0),n.repeat.set(~~(e/c),~~(t/c))}),a=new o.Mesh,s=new o.BoxGeometry(e,t/10,n),h=new o.MeshLambertMaterial({map:d}),m=new o.MeshLambertMaterial({map:p}),f=new o.MeshLambertMaterial({map:r}),y=new o.Mesh(s,h),g=new o.BoxGeometry(e,t/10,n),w=new o.Mesh(g,f);w.position.set(0,t/2,n/2),w.rotation.x+=i;let x=new o.BoxGeometry(n,t/10,n),v=new o.Mesh(x,m);v.position.set(e/2,t/2,0),v.rotation.z+=i,v.rotation.x+=i;let M=new o.Mesh(x,m);M.position.set(-e/2,t/2,0),M.rotation.z+=i,M.rotation.x+=i;let b=new o.BoxGeometry(e+t/5,t/5,n/10),E=new o.Mesh(b,h);E.position.set(0,t+t/32,n/2),E.rotation.x+=i;let _=new o.BoxGeometry(n,t/5,n/10),O=new o.Mesh(_,h);O.position.set(e/2,t+t/32,0),O.rotation.z+=i,O.rotation.x+=i;let T=new o.Mesh(_,h);return T.position.set(-e/2,t+t/32,0),T.rotation.z+=i,T.rotation.x+=i,a.add(y,w,v,M,E,O,T)}(r,s,a)),e.selected){let e=new o.BoxHelper(m,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,m.add(e)}return m.position.y+=s/10+h,Promise.resolve(m)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/balcony/painted.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/balcony/bricks.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/balcony/balcony.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:12632256}),s=new o.MeshLambertMaterial({color:0}),l=(new o.TextureLoader).load(n(516)),c=function(){let e=new o.Mesh,t=new o.Mesh(new o.BoxGeometry(10,.5,.5),i);t.position.set(0,0,0),e.add(t);let n=new o.Mesh(new o.BoxGeometry(10,.5,.5),i);n.position.set(0,0,3),e.add(n);for(let t=-5;t<=5;t+=5){let n=new o.Mesh(new o.BoxGeometry(.5,.5,3.5),i);n.position.set(t,0,1.5),e.add(n)}for(let t=-5;t<=5;t+=5)for(let n=0;n<=3;n+=3){let r=new o.Mesh(new o.BoxGeometry(3,.5,.5),i);r.rotation.z=.5*Math.PI,r.position.set(t,-1.5,n),e.add(r);let a=new o.Mesh(new o.BoxGeometry(.5,.25,.5),s);a.rotation.z=.5*Math.PI,a.position.x=-1.625,r.add(a)}for(let t=0;t<=3;t+=.75){let n=new o.Mesh(new o.BoxGeometry(12,.25,.5),new o.MeshPhongMaterial({map:l}));n.position.set(0,.5,t),e.add(n)}for(let t=0;t<=3;t+=.75)for(let n=-5;n<=5;n+=5){let r=new o.Mesh(new o.CylinderGeometry(.1,.1,.8,6),s);r.position.set(n,.3,t),e.add(r)}return e}(),u=function(){let e=new o.Mesh,t=new o.Mesh(new o.BoxGeometry(10,.5,.5),i);t.position.set(0,0,0),e.add(t);let n=new o.Mesh(new o.BoxGeometry(10,.5,.5),i);n.position.set(0,0,3),e.add(n);for(let t=-5;t<=5;t+=5){let n=new o.Mesh(new o.BoxGeometry(.5,.5,3.5),i);n.position.set(t,0,1.5),e.add(n)}for(let t=-5;t<=5;t+=5)for(let n=0;n<=3;n+=3){let r=new o.Mesh(new o.BoxGeometry(3,.5,.5),i);r.rotation.z=.5*Math.PI,r.position.set(t,-1.5,n),e.add(r)}for(let t=0;t<=3;t+=.75){let n=new o.Mesh(new o.BoxGeometry(12,.25,.5),new o.MeshPhongMaterial({map:l}));n.position.set(0,.5,t),e.add(n)}return e}();t.a={name:"bench",prototype:"items",info:{tag:["furnishings","wood","metal"],group:"Iiems",title:"bench",description:"bench",image:n(517)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;Math.sin(o*Math.PI/180)<0&&(r=180);let i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:"translate(-75,-25)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:150,height:50,style:i}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(75, 25) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(c.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),d=Math.abs(i.max.z-i.min.z);a.position.y+=50+r,a.scale.set(150/s,50/l,50/d);let p=new o.Object3D;p.add(u.clone()),p.position.y+=50+r,p.scale.set(150/s,50/l,50/d);let h=new o.LOD;if(h.addLevel(a,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/bench/wood.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/bench/bench.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);t.a={name:"blackboard",prototype:"items",info:{tag:["furnishings"],group:"Items",title:"Blackboard",description:"Blackboard",image:n(519)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:100,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;Math.sin(o*Math.PI/180)<0&&(r=180);let i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},s={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:"translate(-150,-10)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:300,height:20,style:i}),a.a.createElement("line",{key:"2",x1:150,x2:150,y1:20,y2:36,style:s}),a.a.createElement("line",{key:"3",x1:135,x2:150,y1:24,y2:36,style:s}),a.a.createElement("line",{key:"4",x1:150,x2:165,y1:36,y2:24,style:s}),a.a.createElement("text",{key:"5",x:"0",y:"0",transform:`translate(150, 10) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length");var a=new o.MeshLambertMaterial({color:0}),i=new o.MeshLambertMaterial({color:13421772}),a=new o.MeshLambertMaterial({color:4277321}),s=new o.Object3D,l=new o.Shape;l.moveTo(0,.25),l.lineTo(0,3.75),l.quadraticCurveTo(0,4,.25,4),l.lineTo(7.75,4),l.quadraticCurveTo(8,4,8,3.75),l.lineTo(8,.25),l.quadraticCurveTo(8,0,7.75,0),l.lineTo(.25,0),l.quadraticCurveTo(0,0,0,.25);var c=new o.ExtrudeGeometry(l,{steps:1,amount:.2,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1}),u=new o.Mesh(c,i);u.position.set(0,1.2,0),s.add(u);var d=new o.BoxGeometry(8-8/11,3.5,.2),p=new o.Mesh(d,a);p.position.set(4,3.2,.07),s.add(p);var h=new o.BoxGeometry(8,.08,.33),m=new o.Mesh(h,i);m.position.set(4,1,-.095),s.add(m);var f=new o.BoxGeometry(8,.08,.25),y=new o.Mesh(f,i);y.rotation.x+=Math.PI/2,y.position.set(4,1.1,.03),s.add(y);var g=new o.Mesh(f,i);g.rotation.x+=Math.PI/2,g.position.set(4,1.1,-.22),s.add(g);let w=(new o.Box3).setFromObject(s),x=Math.abs(w.max.x-w.min.x),v=Math.abs(w.max.y-w.min.y),M=Math.abs(w.max.z-w.min.z);if(e.selected){let e=new o.BoxHelper(s,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,s.add(e)}return s.position.y+=-46.875+r,s.position.x+=-150,s.position.z+=5,s.scale.set(300/x,150/v,20/M),Promise.resolve(s)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/blackboard/blackboard.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.TextureLoader,s=i.load(n(180)),l=i.load(n(521)),c=i.load(n(522)),u=i.load(n(523)),d=function(){function e(){return Math.floor(3*Math.random())}let t=new o.Mesh,n=new o.BoxGeometry(.03,2,.8),r=new o.MeshPhongMaterial({map:s}),a=new o.Mesh(n,r);a.position.set(0,1,0),t.add(a);let i=new o.BoxGeometry(.3,2,.03),d=new o.Mesh(i,r);d.position.set(.15,1,.4),t.add(d);let p=new o.Mesh(i,r);p.position.set(.15,1,-.4),t.add(p);let h=new o.BoxGeometry(.3,.03,.8),m=new o.Mesh(h,r);m.position.set(.15,2,0),t.add(m);let f=new o.BoxGeometry(.3,.03,.8),y=new o.Mesh(f,r);y.position.set(.15,.015,0),t.add(y);for(let e=1;e<5;e++){let n=new o.BoxGeometry(.3,.03,.8),a=new o.Mesh(n,r);a.position.set(.15,.015+.4*e,0),t.add(a)}let g=new o.BoxGeometry(.24,.32,.76),w=[new o.MeshLambertMaterial({map:l}),new o.MeshLambertMaterial({map:c}),new o.MeshLambertMaterial({map:u})],x=new o.Mesh(g,w[e()]);x.position.set(.15,.59,0),t.add(x);let v=new o.Mesh(g,w[e()]);v.position.set(.15,.99,0),t.add(v);let M=new o.Mesh(g,w[e()]);M.position.set(.15,.19,0),t.add(M);let b=new o.Mesh(g,w[e()]);b.position.set(.15,1.39,0),t.add(b);let E=new o.Mesh(g,w[e()]);return E.position.set(.15,1.79,0),t.add(E),t}(),p=function(){let e=new o.Mesh,t=(new o.TextureLoader).load(n(180)),r=new o.BoxGeometry(.03,2,.8),a=new o.MeshPhongMaterial({map:t}),i=new o.Mesh(r,a);i.position.set(0,1,0),e.add(i);let s=new o.BoxGeometry(.3,2,.03),l=new o.Mesh(s,a);l.position.set(.15,1,.4),e.add(l);let c=new o.Mesh(s,a);c.position.set(.15,1,-.4),e.add(c);let u=new o.BoxGeometry(.3,.03,.8),d=new o.Mesh(u,a);d.position.set(.15,2,0),e.add(d);let p=new o.BoxGeometry(.3,.03,.8),h=new o.Mesh(p,a);h.position.set(.15,.015,0),e.add(h);for(let t=1;t<5;t++){let n=new o.BoxGeometry(.3,.03,.8),r=new o.Mesh(n,a);r.position.set(.15,.015+.4*t,0),e.add(r)}return e}();t.a={name:"bookcase",prototype:"items",info:{tag:["furnishings","wood"],group:"Items",title:"bookcase",description:"bookcase",image:n(524)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;Math.sin(o*Math.PI/180)<0&&(r=180);let i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:"translate(-40,-40)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:80,height:80,style:i}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(40, 40) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(d.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);a.rotation.y+=Math.PI/2,a.position.y+=r,a.position.z+=40,a.scale.set(80/s,200/l,80/c);let u=new o.Object3D;u.add(p.clone()),u.rotation.y+=Math.PI/2,u.position.y+=r,u.position.z+=40,u.scale.set(80/s,200/l,80/c);let h=new o.LOD;if(h.addLevel(a,200),h.addLevel(u,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/bookcase/bookTexture1.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/bookcase/bookTexture2.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/bookcase/bookTexture3.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/bookcase/bookcase.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:11184810}),s=new o.MeshLambertMaterial({color:0}),l=new o.MeshLambertMaterial({color:16777215}),c=new o.MeshLambertMaterial({color:16777215,transparent:!0,opacity:.5}),u=function(){let e=new o.Mesh,t=new o.CylinderGeometry(.2,.2,.5,80),n=new o.Mesh(t,i);n.rotation.x+=Math.PI/2,n.position.set(0,.5,0);let r=new o.SphereGeometry(.2,32,32),a=new o.Mesh(r,i);a.position.set(0,-.25,0),n.add(a);let u=new o.CylinderGeometry(.085,.085,.5,80),d=new o.Mesh(u,s);d.position.set(0,.04,0),n.add(d);let p=new o.SphereGeometry(.025,32,32);for(let e=0;e<16;e++){let t=new o.Mesh(p,l),r=new o.Mesh(p,l);t.position.set(.115*Math.cos(2*Math.PI/14*e),.2497,.115*Math.sin(2*Math.PI/14*e)),r.position.set(.17*Math.cos(2*Math.PI/16*e),.25,.17*Math.sin(2*Math.PI/16*e)),t.scale.set(1,1,1.3),r.scale.set(1,1,1.3),t.rotation.x+=Math.PI/2,r.rotation.x+=Math.PI/2,n.add(t),n.add(r)}let h=new o.CylinderGeometry(.195,.195,.05,80),m=new o.Mesh(h,c);m.position.set(0,.27,0),n.add(m);let f=new o.CylinderGeometry(.2,.2,.1,80,16,!0),y=new o.Mesh(f,i);y.position.set(0,.25,0),n.add(y);let g=new o.BoxGeometry(.25,.05,.25),w=new o.Mesh(g,i);w.position.set(0,-.6,.35),n.add(w);for(let e=.265;e<=.5;e+=.165){let t=new o.CylinderGeometry(.02,.02,.055,6,6),r=new o.Mesh(t,s),a=new o.Mesh(t,s);r.position.set(.08,-.6,e),a.position.set(-.08,-.6,e),n.add(r),n.add(a)}let x=new o.Shape;x.moveTo(.2,.45),x.lineTo(.5,.5),x.lineTo(.7,.5),x.lineTo(.7,.6),x.lineTo(.2,.6);let v=new o.ExtrudeGeometry(x,{steps:2,amount:.1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),M=new o.Mesh(v,i);M.rotation.z=Math.PI/2,M.rotation.y=-Math.PI/2,M.position.set(.05,-.8,.875),n.add(M);let b=new o.CylinderGeometry(.1,.1,.1,80,16),E=new o.Mesh(b,i);E.rotation.x+=Math.PI/2,E.position.set(0,-.02,.325),n.add(E);let _=new o.CylinderGeometry(.05,.05,.14,80,16),O=new o.Mesh(_,s);O.rotation.x+=Math.PI/2,O.position.set(0,-.02,.325),n.add(O);let T=new o.CylinderGeometry(.025,.025,.16,80,16),I=new o.Mesh(T,i);I.rotation.x+=Math.PI/2,I.position.set(0,-.02,.325),n.add(I);let q=new o.CylinderGeometry(.026,.026,.12,80,16),P=new o.Mesh(q,s);P.rotation.z+=Math.PI/2,P.position.set(0,-.02,.23),n.add(P);let D=new o.CylinderGeometry(.02,.02,.16,80,16),C=new o.Mesh(D,i);C.rotation.z+=Math.PI/2,C.position.set(0,-.02,.23),n.add(C);let S=new o.Shape;S.moveTo(0,0),S.lineTo(0,.1),S.lineTo(.1,.1),S.bezierCurveTo(.05,.05,.05,.05,.1,0);let G=new o.ExtrudeGeometry(S,{amount:.1,bevelEnabled:!1,bevelSegments:1,steps:1,bevelSize:1,bevelThickness:1}),k=new o.Mesh(G,i);k.position.set(-.05,.03,.15),k.rotation.y+=Math.PI/2,k.rotation.z+=-Math.PI;let L=new o.Mesh(G,i);L.position.set(-.05,-.07,.3),L.rotation.y+=Math.PI/2,n.add(k),n.add(L);let A=[];A.push(new o.Vector2(.2,0)),A.push(new o.Vector2(.2,0)),A.push(new o.Vector2(.2,.2)),A.push(new o.Vector2(.2,.2));let R=new o.LatheGeometry(A,200,0,Math.PI);i.side=o.DoubleSide;let N=new o.Mesh(R,i);N.position.set(0,.2,0),N.rotation.y+=Math.PI/2,n.add(N);let j=new o.CylinderGeometry(.025,.02,.3,80,16),B=new o.Mesh(j,s);B.rotation.x+=Math.PI/2,B.position.set(0,-.5,-.18),n.add(B);let z=new o.CylinderGeometry(.02,.015,.3,80,16),V=new o.Mesh(z,s);V.rotation.x+=Math.PI/2,V.position.set(0,-.5,-.35),n.add(V);let U=new o.SphereGeometry(.015,32,32),F=new o.Mesh(U,s);F.position.set(0,-.5,-.5),n.add(F);let W=new o.SphereGeometry(.04,32,32),H=new o.Mesh(W,s);H.position.set(0,-.5,0),n.add(H);let $=new o.CylinderGeometry(.025,.025,.1,80,16),Y=new o.Mesh($,s);return Y.position.set(0,-.42,0),n.add(Y),e.add(n),e}(),d=function(){let e=new o.Mesh,t=new o.CylinderGeometry(.2,.2,.5,8.8),n=new o.Mesh(t,i);n.rotation.x+=Math.PI/2,n.position.set(0,.5,0);let r=new o.SphereGeometry(.2,8,8),a=new o.Mesh(r,i);a.position.set(0,-.25,0),n.add(a);let l=new o.CylinderGeometry(.085,.085,.5,8,8),u=new o.Mesh(l,s);u.position.set(0,.04,0),n.add(u);let d=new o.CylinderGeometry(.195,.195,.05,8,8),p=new o.Mesh(d,c);p.position.set(0,.27,0),n.add(p);let h=new o.CylinderGeometry(.2,.2,.1,8,8,!0),m=new o.Mesh(h,i);m.position.set(0,.25,0),n.add(m);let f=new o.BoxGeometry(.25,.05,.25),y=new o.Mesh(f,i);y.position.set(0,-.6,.35),n.add(y);let g=new o.Shape;g.moveTo(.2,.45),g.lineTo(.5,.5),g.lineTo(.7,.5),g.lineTo(.7,.6),g.lineTo(.2,.6);let w=new o.ExtrudeGeometry(g,{steps:2,amount:.1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),x=new o.Mesh(w,i);x.rotation.z=Math.PI/2,x.rotation.y=-Math.PI/2,x.position.set(.05,-.8,.875),n.add(x);let v=new o.CylinderGeometry(.1,.1,.1,80,16),M=new o.Mesh(v,i);M.rotation.x+=Math.PI/2,M.position.set(0,-.02,.325),n.add(M);let b=new o.CylinderGeometry(.05,.05,.14,80,16),E=new o.Mesh(b,s);E.rotation.x+=Math.PI/2,E.position.set(0,-.02,.325),n.add(E);let _=new o.CylinderGeometry(.025,.025,.16,80,16),O=new o.Mesh(_,i);O.rotation.x+=Math.PI/2,O.position.set(0,-.02,.325),n.add(O);let T=new o.CylinderGeometry(.026,.026,.12,80,16),I=new o.Mesh(T,s);I.rotation.z+=Math.PI/2,I.position.set(0,-.02,.23),n.add(I);let q=new o.CylinderGeometry(.02,.02,.16,80,16),P=new o.Mesh(q,i);P.rotation.z+=Math.PI/2,P.position.set(0,-.02,.23),n.add(P);let D=new o.Shape;D.moveTo(0,0),D.lineTo(0,.1),D.lineTo(.1,.1),D.bezierCurveTo(.05,.05,.05,.05,.1,0);let C=new o.ExtrudeGeometry(D,{amount:.1,bevelEnabled:!1,bevelSegments:1,steps:1,bevelSize:1,bevelThickness:1}),S=new o.Mesh(C,i);S.position.set(-.05,.03,.15),S.rotation.y+=Math.PI/2,S.rotation.z+=-Math.PI;let G=new o.Mesh(C,i);G.position.set(-.05,-.07,.3),G.rotation.y+=Math.PI/2,n.add(S),n.add(G);let k=new o.CylinderGeometry(.025,.02,.3,8,8),L=new o.Mesh(k,s);L.rotation.x+=Math.PI/2,L.position.set(0,-.5,-.18),n.add(L);let A=new o.CylinderGeometry(.02,.015,.3,8,8),R=new o.Mesh(A,s);R.rotation.x+=Math.PI/2,R.position.set(0,-.5,-.35),n.add(R);let N=new o.SphereGeometry(.015,8,8),j=new o.Mesh(N,s);j.position.set(0,-.5,-.5),n.add(j);let B=new o.SphereGeometry(.04,8,8),z=new o.Mesh(B,s);z.position.set(0,-.5,0),n.add(z);let V=new o.CylinderGeometry(.025,.025,.1,8,8),U=new o.Mesh(V,s);return U.position.set(0,-.42,0),n.add(U),e.add(n),e}();t.a={name:"camera",prototype:"items",info:{tag:["security","metal"],group:"items",title:"camera",description:"camera",image:n(526)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:100,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-5,-10)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:10,height:20,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(5, 10) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(u.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);a.position.y+=2.5+r,a.position.z+=10,a.scale.set(20/c,20/l,10/s);let p=new o.Object3D;p.add(d.clone()),p.position.y+=2.5+r,p.position.z+=10,p.scale.set(20/c,20/l,10/s);let h=new o.LOD;if(h.addLevel(a,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/camera/camera.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:11299877}),s=new o.MeshLambertMaterial({color:0}),l=new o.MeshLambertMaterial({color:12632256}),c=function(){let e=new o.BoxGeometry(1,3,1),t=new o.Mesh(e,l),n=new o.Mesh(new o.BoxGeometry(10,.5,10),i);n.position.set(0,1.5,0),t.add(n);for(let e=-.25;e<=.25;e+=.5)for(let n=-.25;n<=.25;n+=.5){let r=new o.Mesh(new o.CylinderGeometry(.1,.1,.8,6),s);r.position.set(e,1.4,n),t.add(r)}let r=new o.Mesh(new o.BoxGeometry(1,15,1),l);r.rotation.x=.5*Math.PI,r.position.set(0,-1,0),t.add(r);let a=new o.Mesh(new o.BoxGeometry(1,10,1),l);a.rotation.z=.5*Math.PI,a.position.set(0,-1,-7),t.add(a);let c=new o.Mesh(new o.BoxGeometry(1,10,1),l);c.rotation.z=.5*Math.PI,c.position.set(0,-1,7),t.add(c);for(let e=-3;e<=3;e+=6)for(let n=7;n>=-7;n-=14){let r=new o.Mesh(new o.BoxGeometry(1,3,1),l);r.rotation.y=.5*Math.PI,r.position.set(e,-2,n),t.add(r)}for(let e=-3;e<=3;e+=6)for(let n=8;n>=-8;n-=16){let r=new o.Mesh(new o.BoxGeometry(3,.25,1),l);r.rotation.y=.5*Math.PI,r.position.set(e,-3.5,n+1),t.add(r);let a=new o.Mesh(new o.CylinderGeometry(.1,.1,.3,6),s);a.position.set(e,-3.5,n-1),a.position.set(e,-3.5,n+2),t.add(a),n>0&&(r.position.set(e,-3.5,n-1),a.position.set(e,-3.5,n-2));let i=new o.Mesh(new o.CylinderGeometry(.1,.1,.3,6),s);i.position.set(e,-3.5,n),t.add(i)}for(let e=-3;e<=3;e+=6)for(let n=-9.24;n<=9.24;n+=18.48){let r=new o.Mesh(new o.BoxGeometry(4,.5,2.5),i);r.rotation.x=.5*Math.PI,r.position.set(e,2.5,n),t.add(r)}for(let e=-4.5;e<=4.5;e+=9)for(let n=-9.45;n<=9.45;n+=18.9){let r=new o.Mesh(new o.BoxGeometry(.25,.125,4),l);r.rotation.x=.5*Math.PI,r.position.set(e,1.6,n),t.add(r);let a=new o.Mesh(new o.BoxGeometry(.25,.125,4),l);a.rotation.x=.5*Math.PI,a.position.set(e-3,1.6,n),t.add(a);let i=new o.Mesh(new o.CylinderGeometry(.1,.1,.6,6),s);i.rotation.x=.5*Math.PI,i.position.set(e,2.5,n-.2),t.add(i);let c=new o.Mesh(new o.CylinderGeometry(.1,.1,.6,6),s);c.rotation.x=.5*Math.PI,c.position.set(e-3,2.5,n-.2),t.add(c),e<0&&(a.position.set(e+3,1.6,n),c.position.set(e+3,2.5,n-.2),n<0&&c.position.set(e+3,2.5,n+.2)),n<0&&(i.position.set(e,2.5,n+.2),e>0&&c.position.set(e-3,2.5,n+.2))}for(let e=-3;e<=3;e+=6)for(let n=-7;n<=7;n+=14){let r=new o.Mesh(new o.BoxGeometry(4,.5,4),i);r.rotation.y=.5*Math.PI,r.position.set(e,-.25,n),t.add(r)}for(let e=-4.5;e<=4.5;e+=9)for(let n=-9;n<=9;n+=18){let r=new o.Mesh(new o.BoxGeometry(.25,.125,1),l);r.position.set(e,-.35,n),t.add(r);let a=new o.Mesh(new o.BoxGeometry(.25,.125,1),l);a.position.set(e-3,-.35,n),t.add(a);let i=new o.Mesh(new o.CylinderGeometry(.1,.1,.8,6),s);i.position.set(e,-.35,n-2),t.add(i);let c=new o.Mesh(new o.CylinderGeometry(.1,.1,.8,6),s);c.position.set(e-3,-.35,n-2),t.add(c),e<0&&(a.position.set(e+3,-.35,n),c.position.set(e+3,-.35,n-2),n<0&&c.position.set(e+3,-.35,n+2)),n<0&&(i.position.set(e,-.35,n+2),e>0&&c.position.set(e-3,-.35,n+2))}return t}(),u=function(){let e=new o.BoxGeometry(1,3,1),t=new o.Mesh(e,l),n=new o.Mesh(new o.BoxGeometry(10,.5,10),i);n.position.set(0,1.5,0),t.add(n);let r=new o.Mesh(new o.BoxGeometry(1,15,1),l);r.rotation.x=.5*Math.PI,r.position.set(0,-1,0),t.add(r);let a=new o.Mesh(new o.BoxGeometry(1,10,1),l);a.rotation.z=.5*Math.PI,a.position.set(0,-1,-7),t.add(a);let s=new o.Mesh(new o.BoxGeometry(1,10,1),l);s.rotation.z=.5*Math.PI,s.position.set(0,-1,7),t.add(s);for(let e=-3;e<=3;e+=6)for(let n=7;n>=-7;n-=14){let r=new o.Mesh(new o.BoxGeometry(1,3,1),l);r.rotation.y=.5*Math.PI,r.position.set(e,-2,n),t.add(r)}for(let e=-3;e<=3;e+=6)for(let n=8;n>=-8;n-=16){let r=new o.Mesh(new o.BoxGeometry(3,.25,1),l);r.rotation.y=.5*Math.PI,r.position.set(e,-3.5,n+1),t.add(r),n>0&&r.position.set(e,-3.5,n-1)}for(let e=-3;e<=3;e+=6)for(let n=-9.24;n<=9.24;n+=18.48){let r=new o.Mesh(new o.BoxGeometry(4,.5,2.5),i);r.rotation.x=.5*Math.PI,r.position.set(e,2.5,n),t.add(r)}for(let e=-4.5;e<=4.5;e+=9)for(let n=-9.45;n<=9.45;n+=18.9){let r=new o.Mesh(new o.BoxGeometry(.25,.125,4),l);r.rotation.x=.5*Math.PI,r.position.set(e,1.6,n),t.add(r);let a=new o.Mesh(new o.BoxGeometry(.25,.125,4),l);a.rotation.x=.5*Math.PI,a.position.set(e-3,1.6,n),t.add(a),e<0&&a.position.set(e+3,1.6,n)}for(let e=-3;e<=3;e+=6)for(let n=-7;n<=7;n+=14){let r=new o.Mesh(new o.BoxGeometry(4,.5,4),i);r.rotation.y=.5*Math.PI,r.position.set(e,-.25,n),t.add(r)}for(let e=-4.5;e<=4.5;e+=9)for(let n=-9;n<=9;n+=18){let r=new o.Mesh(new o.BoxGeometry(.25,.125,1),l);r.position.set(e,-.35,n),t.add(r);let a=new o.Mesh(new o.BoxGeometry(.25,.125,1),l);a.position.set(e-3,-.35,n),t.add(a),e<0&&a.position.set(e+3,-.35,n)}return t}();t.a={name:"canteen table",prototype:"items",info:{tag:["furnishings","wood"],group:"items",title:"canteen table",description:"canteen table",image:n(528)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-50,-70)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:100,height:140,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(50, 70) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(c.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),d=Math.abs(i.max.z-i.min.z);a.position.y+=50+r,a.scale.set(100/s,100/l,140/d);let p=new o.Object3D;p.add(u.clone()),p.position.y+=50+r,p.scale.set(100/s,100/l,140/d);let h=new o.LOD;if(h.addLevel(a,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/canteen-table/canteen_table.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:0}),s=new o.MeshLambertMaterial({color:12632256}),l=function(){let e=new o.Mesh(new o.CylinderGeometry(.8,.8,.5,32),i);for(let t=0;t<=6;t+=6)for(let n=0;n<=6;n+=6){let r=new o.Mesh(new o.CylinderGeometry(.8,.8,.5,32),i);r.position.set(t,n,0),e.add(r);let a=new o.Mesh(new o.CylinderGeometry(.6,.6,.6,32),s);r.add(a);let l=new o.Mesh(new o.CylinderGeometry(.1,.1,.8,6),i);l.position.set(0,0,0),r.add(l);let c=new o.Mesh(new o.CylinderGeometry(.6,.6,.1,32),s);c.rotation.x=.5*Math.PI,c.position.set(-.3,0,-1.2),r.add(c);let u=new o.Mesh(new o.CylinderGeometry(.3725,.3725,.3,32),i);u.rotation.x=.5*Math.PI,u.position.set(-.3,0,-1),r.add(u);let d=new o.Mesh(new o.CylinderGeometry(.55,.55,.05,3),s);d.position.set(-.2,-.35,-.6),r.add(d);let p=new o.Mesh(new o.BoxGeometry(.55,1.1,.05),s);p.rotation.x=.5*Math.PI,p.position.set(0,-.35,-.4),r.add(p);let h=new o.Mesh(new o.CylinderGeometry(.55,.55,.05,3),s);h.position.set(-.2,.35,-.6),r.add(h);let m=new o.Mesh(new o.BoxGeometry(.55,1.1,.05),s);m.rotation.x=.5*Math.PI,m.position.set(0,.35,-.4),r.add(m);let f=new o.Mesh(new o.BoxGeometry(.95,.75,.1),s);f.position.set(-.2,0,-.9),r.add(f)}let t=new o.Mesh(new o.BoxGeometry(.3,17.1,.3),s);t.rotation.x=.5*Math.PI,t.position.set(-.3,0,-9.6),e.add(t);let n=new o.Mesh(new o.BoxGeometry(.3,17.1,.3),s);n.rotation.x=.5*Math.PI,n.position.set(-.3,6,-9.6),e.add(n);let r=new o.Mesh(new o.BoxGeometry(.3,17.1,.3),s);r.rotation.x=.5*Math.PI,r.position.set(5.7,0,-9.6),e.add(r);let a=new o.Mesh(new o.BoxGeometry(.3,17.1,.3),s);a.rotation.x=.5*Math.PI,a.position.set(5.7,6,-9.6),e.add(a);let l=new o.Mesh(new o.TorusGeometry(3,.15,20,20,3.125),s);l.rotation.x=-.5*Math.PI,l.position.set(2.7,6,-18.1),e.add(l);let c=new o.Mesh(new o.TorusGeometry(3,.15,20,20,3.125),s);c.rotation.x=-.5*Math.PI,c.position.set(2.7,0,-18.1),e.add(c);let u=new o.Mesh(new o.BoxGeometry(.3,5.7,.3),s);u.position.set(-.3,3,-18),e.add(u);let d=new o.Mesh(new o.BoxGeometry(.3,5.7,.3),s);d.rotation.x=.5*Math.PI,d.rotation.z=.5*Math.PI,d.position.set(2.7,0,-18),e.add(d);let p=new o.Mesh(new o.BoxGeometry(.3,5.7,.3),s);p.rotation.x=.5*Math.PI,p.rotation.z=.5*Math.PI,p.position.set(2.7,6,-18),e.add(p);let h=new o.Mesh(new o.BoxGeometry(.3,5.7,.3),s);h.position.set(5.7,3,-18),e.add(h);for(let t=-16.5;t<=-2.8;t+=1.5){let n=new o.Mesh(new o.BoxGeometry(.5,5.7,.1),s);n.rotation.z=.5*Math.PI,n.position.set(2.7,5.9,t+.2),e.add(n);let r=new o.Mesh(new o.BoxGeometry(.1,5.7,.5),s);r.rotation.z=.5*Math.PI,r.position.set(2.7,6.1,t),e.add(r);let a=new o.Mesh(new o.BoxGeometry(.5,5.7,.1),s);a.rotation.z=.5*Math.PI,a.position.set(2.7,.1,t+.2),e.add(a);let i=new o.Mesh(new o.BoxGeometry(.1,5.7,.5),s);i.rotation.z=.5*Math.PI,i.position.set(2.7,-.1,t),e.add(i)}let m=new o.Mesh(new o.BoxGeometry(.3,5.7,.3),s);m.position.set(-.3,3,-2),e.add(m);let f=new o.Mesh(new o.BoxGeometry(.3,5.7,.3),s);return f.position.set(5.7,3,-2),e.add(f),e}(),c=function(){let e=new o.Mesh;for(let t=0;t<=6;t+=6)for(let n=0;n<=6;n+=6){let r=new o.Mesh(new o.CylinderGeometry(.8,.8,.5,32),i);r.position.set(t,n,0),e.add(r);let a=new o.Mesh(new o.CylinderGeometry(.6,.6,.6,32),s);r.add(a);let l=new o.Mesh(new o.CylinderGeometry(.1,.1,.8,6),i);l.position.set(0,0,0),r.add(l);let c=new o.Mesh(new o.CylinderGeometry(.6,.6,.1,32),s);c.rotation.x=.5*Math.PI,c.position.set(-.3,0,-1.2),r.add(c);let u=new o.Mesh(new o.CylinderGeometry(.3725,.3725,.3,32),i);u.rotation.x=.5*Math.PI,u.position.set(-.3,0,-1),r.add(u);let d=new o.Mesh(new o.CylinderGeometry(.55,.55,.05,3),s);d.position.set(-.2,-.35,-.6),r.add(d);let p=new o.Mesh(new o.BoxGeometry(.55,1.1,.05),s);p.rotation.x=.5*Math.PI,p.position.set(0,-.35,-.4),r.add(p);let h=new o.Mesh(new o.CylinderGeometry(.55,.55,.05,3),s);h.position.set(-.2,.35,-.6),r.add(h);let m=new o.Mesh(new o.BoxGeometry(.55,1.1,.05),s);m.rotation.x=.5*Math.PI,m.position.set(0,.35,-.4),r.add(m);let f=new o.Mesh(new o.BoxGeometry(.95,.75,.1),s);f.position.set(-.2,0,-.9),r.add(f)}let t=new o.Mesh(new o.BoxGeometry(.3,17.1,.3),s);t.rotation.x=.5*Math.PI,t.position.set(-.3,0,-9.6),e.add(t);let n=new o.Mesh(new o.BoxGeometry(.3,17.1,.3),s);n.rotation.x=.5*Math.PI,n.position.set(-.3,6,-9.6),e.add(n);let r=new o.Mesh(new o.BoxGeometry(.3,17.1,.3),s);r.rotation.x=.5*Math.PI,r.position.set(5.7,0,-9.6),e.add(r);let a=new o.Mesh(new o.BoxGeometry(.3,17.1,.3),s);a.rotation.x=.5*Math.PI,a.position.set(5.7,6,-9.6),e.add(a);let l=new o.Mesh(new o.TorusGeometry(3,.15,20,20,3.125),s);l.rotation.x=-.5*Math.PI,l.position.set(2.7,6,-18.1),e.add(l);let c=new o.Mesh(new o.TorusGeometry(3,.15,20,20,3.125),s);c.rotation.x=-.5*Math.PI,c.position.set(2.7,0,-18.1),e.add(c);let u=new o.Mesh(new o.BoxGeometry(.3,5.7,.3),s);u.position.set(-.3,3,-18),e.add(u);let d=new o.Mesh(new o.BoxGeometry(.3,5.7,.3),s);d.rotation.x=.5*Math.PI,d.rotation.z=.5*Math.PI,d.position.set(2.7,0,-18),e.add(d);let p=new o.Mesh(new o.BoxGeometry(.3,5.7,.3),s);p.rotation.x=.5*Math.PI,p.rotation.z=.5*Math.PI,p.position.set(2.7,6,-18),e.add(p);let h=new o.Mesh(new o.BoxGeometry(.3,5.7,.3),s);h.position.set(5.7,3,-18),e.add(h);for(let t=-16.5;t<=-2.8;t+=1.5){let n=new o.Mesh(new o.BoxGeometry(.5,5.7,.1),s);n.rotation.z=.5*Math.PI,n.position.set(2.7,5.9,t+.2),e.add(n);let r=new o.Mesh(new o.BoxGeometry(.1,5.7,.5),s);r.rotation.z=.5*Math.PI,r.position.set(2.7,6.1,t),e.add(r);let a=new o.Mesh(new o.BoxGeometry(.5,5.7,.1),s);a.rotation.z=.5*Math.PI,a.position.set(2.7,.1,t+.2),e.add(a);let i=new o.Mesh(new o.BoxGeometry(.1,5.7,.5),s);i.rotation.z=.5*Math.PI,i.position.set(2.7,-.1,t),e.add(i)}let m=new o.Mesh(new o.BoxGeometry(.3,5.7,.3),s);m.position.set(-.3,3,-2),e.add(m);let f=new o.Mesh(new o.BoxGeometry(.3,5.7,.3),s);return f.position.set(5.7,3,-2),e.add(f),e}();t.a={name:"canteen cart",prototype:"items",info:{tag:["furnishings","metal"],group:"items",title:"canteen cart",description:"canteen cart",image:n(530)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-15,-20)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:30,height:40,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(15, 20) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(l.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),u=Math.abs(i.max.y-i.min.y),d=Math.abs(i.max.z-i.min.z);a.rotation.x+=Math.PI/2,a.position.y+=r,a.scale.set(30/u,40/s,180/d);let p=new o.Object3D;p.add(c.clone()),p.rotation.x+=Math.PI/2,p.position.y+=r,p.scale.set(30/u,40/s,180/d);let h=new o.LOD;if(h.addLevel(a,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/canteencart/canteen_cart.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=function(){let e=new o.Mesh,t=new o.CylinderGeometry(.02,.02,.5,32,32),n=new o.MeshLambertMaterial({color:14276567}),r=new o.Mesh(t,n);r.rotation.x+=Math.PI/2,r.position.z+=.25;let a=new o.Mesh(t,n);a.rotation.x+=Math.PI/2,a.position.z+=.25,a.position.y+=.4;let i=new o.Mesh(t,n);i.rotation.x+=Math.PI/2,i.position.z+=.25,i.position.x+=.4;let s=new o.Mesh(t,n);s.rotation.x+=Math.PI/2,s.position.z+=.25,s.position.y+=.4,s.position.x+=.4;let l=new o.Mesh(t,n);l.rotation.x+=Math.PI/2,l.position.z+=.75;let c=new o.Mesh(t,n);c.rotation.x+=Math.PI/2,c.position.z+=.75,c.position.x+=.4;let u=new o.MeshLambertMaterial({color:10194037}),d=new o.Shape;d.moveTo(0,.05),d.lineTo(0,.43),d.quadraticCurveTo(0,.48,.05,.48),d.lineTo(.45,.48),d.quadraticCurveTo(.5,.48,.5,.43),d.lineTo(.5,.05),d.quadraticCurveTo(.5,0,.45,0),d.lineTo(.05,0),d.quadraticCurveTo(0,0,0,.05);let p=new o.ExtrudeGeometry(d,{steps:2,amount:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),h=new o.Mesh(p,u);h.position.x+=-.05,h.position.y+=-.04,h.position.z+=.5;let m=new o.Shape;m.moveTo(0,.05),m.lineTo(0,.2),m.quadraticCurveTo(0,.25,.05,.25),m.lineTo(.4,.25),m.quadraticCurveTo(.45,.25,.45,.2),m.lineTo(.45,.05),m.quadraticCurveTo(.45,0,.4,0),m.lineTo(.05,0),m.quadraticCurveTo(0,0,0,.05);let f=new o.ExtrudeGeometry(m,{steps:2,amount:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),y=new o.Mesh(f,u);return y.rotation.x+=Math.PI/2,y.position.z+=.75,y.position.y+=.03,y.position.x+=-.025,e.add(y),e.add(h),e.add(r),e.add(a),e.add(i),e.add(s),e.add(l),e.add(c),e}(),s=function(){let e=new o.Mesh,t=new o.CylinderGeometry(.02,.02,.5,8,8),n=new o.MeshLambertMaterial({color:14276567}),r=new o.Mesh(t,n);r.rotation.x+=Math.PI/2,r.position.z+=.25;let a=new o.Mesh(t,n);a.rotation.x+=Math.PI/2,a.position.z+=.25,a.position.y+=.4;let i=new o.Mesh(t,n);i.rotation.x+=Math.PI/2,i.position.z+=.25,i.position.x+=.4;let s=new o.Mesh(t,n);s.rotation.x+=Math.PI/2,s.position.z+=.25,s.position.y+=.4,s.position.x+=.4;let l=new o.Mesh(t,n);l.rotation.x+=Math.PI/2,l.position.z+=.75;let c=new o.Mesh(t,n);c.rotation.x+=Math.PI/2,c.position.z+=.75,c.position.x+=.4;let u=new o.MeshLambertMaterial({color:10194037}),d=new o.Shape;d.moveTo(0,.025),d.lineTo(0,.48-.025),d.quadraticCurveTo(0,.48,.025,.48),d.lineTo(.475,.48),d.quadraticCurveTo(.5,.48,.5,.48-.025),d.lineTo(.5,.025),d.quadraticCurveTo(.5,0,.475,0),d.lineTo(.025,0),d.quadraticCurveTo(0,0,0,.025);let p=new o.ExtrudeGeometry(d,{steps:2,amount:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),h=new o.Mesh(p,u);h.position.x+=-.05,h.position.y+=-.04,h.position.z+=.5;let m=new o.Shape;m.moveTo(0,.025),m.lineTo(0,.225),m.quadraticCurveTo(0,.25,.025,.25),m.lineTo(.425,.25),m.quadraticCurveTo(.45,.25,.45,.225),m.lineTo(.45,.025),m.quadraticCurveTo(.45,0,.425,0),m.lineTo(.025,0),m.quadraticCurveTo(0,0,0,.025);let f=new o.ExtrudeGeometry(m,{steps:2,amount:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),y=new o.Mesh(f,u);return y.rotation.x+=Math.PI/2,y.position.z+=.75,y.position.y+=.03,y.position.x+=-.025,e.add(y),e.add(h),e.add(r),e.add(a),e.add(i),e.add(s),e.add(l),e.add(c),e}();t.a={name:"sedia",prototype:"items",info:{tag:["furnishings","wood"],group:"Items",title:"chair",description:"chair",image:n(532)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-27.5,-27.5)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:55,height:55,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(27.5, 27.5) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(i.clone());let l=(new o.Box3).setFromObject(a),c=Math.abs(l.max.x-l.min.x),u=Math.abs(l.max.y-l.min.y),d=Math.abs(l.max.z-l.min.z);a.rotation.x+=-Math.PI/2,a.position.y+=r,a.position.x+=-55/3.5,a.position.z+=55/4,a.scale.set(82.5/d,55/1.5/c,50/u);let p=new o.Object3D;p.add(s.clone()),p.rotation.x+=-Math.PI/2,p.position.y+=r,p.position.x+=-55/3.5,p.position.z+=55/4,p.scale.set(82.5/d,55/1.5/c,50/u);let h=new o.LOD;if(h.addLevel(a,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/chair/chair.png"},function(e,t,n){"use strict";function o(){let e=new f.Object3D,t=new f.CylinderGeometry(.01,.01,.18,32,32),n=new f.CylinderGeometry(.01,.01,.04,32,32),o=new f.SphereGeometry(.01,32,32),r=new f.Mesh(t,M),a=new f.Mesh(n,M),i=new f.Mesh(t,M),s=new f.Mesh(n,M),l=new f.Mesh(o,M),c=new f.Mesh(o,M),u=function(){let e=new f.Object3D,t=new f.BoxGeometry(.3,.5,.04),n=new f.CylinderGeometry(.02,.02,.3,32,32),o=new f.CylinderGeometry(.02,.02,.5,32,32),r=new f.SphereGeometry(.02,32,32),a=new f.Mesh(n,v),i=new f.Mesh(n,v),s=new f.Mesh(o,v),l=new f.Mesh(o,v),c=new f.Mesh(r,v),u=new f.Mesh(r,v),d=new f.Mesh(r,v),p=new f.Mesh(r,v),h=new f.Mesh(t,v);return a.rotation.z=Math.PI/2,a.position.y=.25,c.position.y=.15,i.rotation.z=Math.PI/2,i.position.y=-.25,u.position.y=-.15,s.position.x=.15,d.position.y=.25,l.position.x=-.15,p.position.y=-.25,l.add(p),e.add(l),s.add(d),e.add(s),i.add(u),e.add(i),a.add(c),e.add(a),e.add(h),e}();return r.rotation.z=96*Math.PI/180,r.position.z=.05,r.position.x=.09,a.rotation.z=96*-Math.PI/180,a.position.x=.02*Math.cos(6*Math.PI/180),i.rotation.z=96*Math.PI/180,i.position.z=-.05,i.position.x=.09,s.rotation.z=96*-Math.PI/180,s.position.x=.02*Math.cos(6*Math.PI/180),l.position.y=.09,c.position.y=.09,l.add(a),c.add(s),u.rotation.y=Math.PI/2,u.position.y=.27,r.add(l),e.add(r),i.add(c),e.add(i),e.add(u),e}function r(){let e=new f.Object3D,t=new f.CylinderGeometry(.01,.01,.18,8,8),n=new f.CylinderGeometry(.01,.01,.04,8,8),o=new f.SphereGeometry(.01,32,32),r=new f.Mesh(t,M),a=new f.Mesh(n,M),i=new f.Mesh(t,M),s=new f.Mesh(n,M),l=new f.Mesh(o,M),c=new f.Mesh(o,M),u=function(){let e=new f.Object3D,t=new f.BoxGeometry(.3,.5,.04),n=new f.CylinderGeometry(.02,.02,.3,8,8),o=new f.CylinderGeometry(.02,.02,.5,8,8),r=new f.SphereGeometry(.02,32,32),a=new f.Mesh(n,v),i=new f.Mesh(n,v),s=new f.Mesh(o,v),l=new f.Mesh(o,v),c=new f.Mesh(r,v),u=new f.Mesh(r,v),d=new f.Mesh(r,v),p=new f.Mesh(r,v),h=new f.Mesh(t,v);return a.rotation.z=Math.PI/2,a.position.y=.25,c.position.y=.15,i.rotation.z=Math.PI/2,i.position.y=-.25,u.position.y=-.15,s.position.x=.15,d.position.y=.25,l.position.x=-.15,p.position.y=-.25,l.add(p),e.add(l),s.add(d),e.add(s),i.add(u),e.add(i),a.add(c),e.add(a),e.add(h),e}();return r.rotation.z=96*Math.PI/180,r.position.z=.05,r.position.x=.09,a.rotation.z=96*-Math.PI/180,a.position.x=.02*Math.cos(6*Math.PI/180),i.rotation.z=96*Math.PI/180,i.position.z=-.05,i.position.x=.09,s.rotation.z=96*-Math.PI/180,s.position.x=.02*Math.cos(6*Math.PI/180),l.position.y=.09,c.position.y=.09,l.add(a),c.add(s),u.rotation.y=Math.PI/2,u.position.y=.27,r.add(l),e.add(r),i.add(c),e.add(i),e.add(u),e}function a(){let e=new f.CylinderGeometry(.027,.02,.3,32,32),t=new f.CylinderGeometry(.02,.01,.02,32,32),n=new f.CylinderGeometry(.008,.008,.01,32,32),o=new f.SphereGeometry(.02,32,32),r=new f.CylinderGeometry(.025,.025,.05,32,32),a=new f.CylinderGeometry(.02,.02,.051,32,32),i=new f.CylinderGeometry(.026,.026,.045,32,32),s=new f.Mesh(e,x),l=new f.Mesh(t,x),c=new f.Mesh(n,w),u=new f.Mesh(o,x),d=new f.Mesh(r,M),p=new f.Mesh(i,x),h=new f.Mesh(a,x),m=new f.Object3D,y=new f.Object3D;return s.rotation.z=80*Math.PI/180,s.position.x=.16,m.rotation.z=80*-Math.PI/180,m.position.y=.15*-Math.sin(80*Math.PI/180),l.position.y=-.01,c.position.y=-.015,d.rotation.x=Math.PI/2,d.position.y=-.025,p.position.z=-.003,d.add(h),d.add(p),c.add(d),l.add(c),m.add(l),m.add(u),s.add(m),y.add(s),y}function i(){let e=new f.CylinderGeometry(.027,.02,.3,8,8),t=new f.CylinderGeometry(.02,.01,.02,8,8),n=new f.CylinderGeometry(.008,.008,.01,8,8),o=new f.SphereGeometry(.02,8,8),r=new f.CylinderGeometry(.025,.025,.05,8,8),a=new f.CylinderGeometry(.02,.02,.051,8,8),i=new f.Mesh(e,x),s=new f.Mesh(t,x),l=new f.Mesh(n,w),c=new f.Mesh(o,x),u=new f.Mesh(r,M),d=new f.Mesh(a,x),p=new f.Object3D,h=new f.Object3D;return i.rotation.z=80*Math.PI/180,i.position.x=.16,p.rotation.z=80*-Math.PI/180,p.position.y=.15*-Math.sin(80*Math.PI/180),s.position.y=-.01,l.position.y=-.015,u.rotation.x=Math.PI/2,u.position.y=-.025,u.add(d),l.add(u),s.add(l),p.add(s),p.add(c),i.add(p),h.add(i),h}function s(){let e=new f.Object3D,t=new f.SphereGeometry(.01,32,32),n=new f.CylinderGeometry(.01,.01,.24,32,32),o=new f.CylinderGeometry(.01,.01,.04,32,32),r=new f.CylinderGeometry(.02,.025,.2,32,32),a=new f.Mesh(t,x),i=new f.Mesh(t,x),s=new f.Mesh(n,x),l=new f.Mesh(o,x),c=new f.Mesh(r,v);return s.rotation.x=Math.PI/2,s.rotation.z=25*-Math.PI/180,s.position.set(.12*Math.sin(s.rotation.z),0,-.12*Math.cos(s.rotation.z)),l.rotation.z=100*Math.PI/180,l.position.x=.02,l.position.y=.0035,i.position.y=-.12,c.position.y=-.1-.02,l.add(c),i.add(l),s.add(i),a.add(s),e.add(a),e}function l(){let e=new f.Object3D,t=new f.SphereGeometry(.01,8,8),n=new f.CylinderGeometry(.01,.01,.24,8,8),o=new f.CylinderGeometry(.01,.01,.04,8,8),r=new f.CylinderGeometry(.02,.025,.2,8,8),a=new f.Mesh(t,x),i=new f.Mesh(t,x),s=new f.Mesh(n,x),l=new f.Mesh(o,x),c=new f.Mesh(r,v);return s.rotation.x=Math.PI/2,s.rotation.z=25*-Math.PI/180,s.position.set(.12*Math.sin(s.rotation.z),0,-.12*Math.cos(s.rotation.z)),l.rotation.z=100*Math.PI/180,l.position.x=.02,l.position.y=.0035,i.position.y=-.12,c.position.y=-.1-.02,l.add(c),i.add(l),s.add(i),a.add(s),e.add(a),e}function c(){let e=new f.Object3D,t=new f.BoxGeometry(.4,.04,.4),n=new f.Mesh(t,v),o=u(),r=u(),a=u(),i=u();return o.rotation.x=Math.PI/2,o.position.x=.2,r.rotation.x=-Math.PI/2,r.position.x=-.2,a.rotation.z=-Math.PI/2,a.position.z=-.2,i.rotation.z=Math.PI/2,i.position.z=.2,n.add(o),n.add(r),n.add(a),n.add(i),e.add(n),e}function u(){let e=new f.CylinderGeometry(.02,.02,.4,32,32,!0),t=new f.SphereGeometry(.02,32,32),n=new f.Mesh(t,v),o=new f.Mesh(e,v);return o.openEnded=1,n.position.y=.2,o.add(n),o}function d(){let e=new f.Object3D,t=new f.CylinderGeometry(.027,.027,.05,32,32),n=new f.CylinderGeometry(.03,.03,.2,32,32),o=new f.CylinderGeometry(.04,.04,.06,32,32),r=new f.TorusGeometry(.04,.025,32,100),i=new f.CylinderGeometry(.02,.02,.14,32,32),s=new f.Mesh(t,x),l=new f.Mesh(n,x),c=new f.Mesh(o,x),u=new f.Mesh(r,x),d=new f.Mesh(i,x),p=function(){let e=new f.Object3D;for(let t=0;t<5;t++){let n=a();n.rotation.y=2*Math.PI*t*72/360,e.add(n)}return e}();return s.position.y=-.125,d.position.y=.17,p.position.y=-.07,c.position.y=-.05,u.rotation.x=Math.PI/2,u.position.y=-.05,l.add(c),l.add(u),l.add(p),l.add(s),l.add(d),e.add(l),e}function p(){let e=new f.Object3D,t=new f.CylinderGeometry(.027,.027,.05,8,8),n=new f.CylinderGeometry(.03,.03,.2,8,8),o=new f.CylinderGeometry(.04,.04,.06,8,8),r=new f.TorusGeometry(.04,.025,8,100),a=new f.CylinderGeometry(.02,.02,.14,8,8),s=new f.Mesh(t,x),l=new f.Mesh(n,x),c=new f.Mesh(o,x),u=new f.Mesh(r,x),d=new f.Mesh(a,x),p=function(){let e=new f.Object3D;for(let t=0;t<5;t++){let n=i();n.rotation.y=2*Math.PI*t*72/360,e.add(n)}return e}();return s.position.y=-.125,d.position.y=.17,p.position.y=-.07,c.position.y=-.05,u.rotation.x=Math.PI/2,u.position.y=-.05,l.add(c),l.add(u),l.add(p),l.add(s),l.add(d),e.add(l),e}function h(){let e=new f.Mesh,t=d(),n=function(){let e=new f.Object3D,t=new f.BoxGeometry(.28,.06,.07),n=new f.BoxGeometry(.3,.04,.09),o=new f.CylinderGeometry(.0045,.0045,.07,32,32),r=new f.CylinderGeometry(.0045,.0045,.09,32,32),a=new f.CylinderGeometry(.007,.005,.06,32),i=new f.CylinderGeometry(.01,.01,.2,32,32),l=new f.Mesh(t,x),u=new f.Mesh(n,x),d=new f.Mesh(r,v),p=new f.Mesh(o,v),h=new f.Mesh(a,M),m=new f.Mesh(a,M),y=new f.Mesh(i,x),g=new f.Mesh(i,x),w=c(),b=s(),E=s();return l.position.y=.03,u.rotation.z=6*Math.PI/180,u.position.y=.06,d.rotation.x=80*Math.PI/180,d.position.z=.08,d.position.x=.1,p.rotation.x=80*-Math.PI/180,p.position.z=-.07,p.position.x=.08,m.position.y=.065,h.position.y=.075,w.position.y=.04,y.rotation.x=Math.PI/2,y.rotation.y=6*-Math.PI/180,g.rotation.x=Math.PI/2,g.rotation.y=6*-Math.PI/180,y.position.z=.045+.1,g.position.z=-.045-.1,b.position.y=.1,E.position.y=-.1,u.add(w),y.add(b),g.add(E),u.add(y),u.add(g),d.add(h),p.add(m),l.add(d),l.add(p),e.add(u),e.add(l),e}(),r=o();return t.position.y=.17,n.position.y=.1+.14,r.position.y=.06,r.position.x=-.25,n.add(r),t.add(n),e.add(t),e.rotation.y=-.5*Math.PI,e.position.z-=.02,e}function m(){let e=new f.Mesh,t=p(),n=function(){let e=new f.Object3D,t=new f.BoxGeometry(.28,.06,.07),n=new f.BoxGeometry(.3,.04,.09),o=new f.CylinderGeometry(.01,.01,.2,8,8),r=new f.Mesh(t,x),a=new f.Mesh(n,x),i=new f.Mesh(o,x),s=new f.Mesh(o,x),u=c(),d=l(),p=l();return r.position.y=.03,a.rotation.z=6*Math.PI/180,a.position.y=.06,u.position.y=.04,i.rotation.x=Math.PI/2,i.rotation.y=6*-Math.PI/180,s.rotation.x=Math.PI/2,s.rotation.y=6*-Math.PI/180,i.position.z=.045+.1,s.position.z=-.045-.1,d.position.y=.1,p.position.y=-.1,a.add(u),i.add(d),s.add(p),a.add(i),a.add(s),e.add(a),e.add(r),e}(),o=r();return t.position.y=.17,n.position.y=.1+.14,o.position.y=.06,o.position.x=-.25,n.add(o),t.add(n),e.add(t),e.rotation.y=-.5*Math.PI,e.position.z-=.02,e}var f=n(1),y=n(0),g=n.n(y);const w=new f.MeshBasicMaterial({color:13882323}),x=new f.MeshBasicMaterial({color:8421504}),v=new f.MeshBasicMaterial({color:0}),M=new f.MeshBasicMaterial({color:0}),b=h(),E=m();t.a={name:"chairdesk",prototype:"items",info:{tag:["furnishings","wood"],group:"Items",title:"chairdesk",description:"office chair",image:n(534)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),g.a.createElement("g",{transform:"translate(-35,-35)"},g.a.createElement("rect",{key:"1",x:"0",y:"0",width:70,height:70,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),g.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(35, 35) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let o=e.properties.get("altitude").get("length"),r=new f.Object3D;r.add(b.clone());let a=(new f.Box3).setFromObject(r),i=Math.abs(a.max.x-a.min.x),s=Math.abs(a.max.y-a.min.y),l=Math.abs(a.max.z-a.min.z);r.position.y+=o,r.position.x+=-8.75,r.position.z+=17.5,r.scale.set(70/i,70/l,100/s);let c=new f.Object3D;c.add(E.clone()),c.position.y+=o,c.position.x+=-8.75,c.position.z+=17.5,c.scale.set(70/i,70/l,100/s);let u=new f.LOD;if(u.addLevel(r,200),u.addLevel(c,900),u.updateMatrix(),u.matrixAutoUpdate=!1,e.selected){let e=new f.BoxHelper(u,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,u.add(e)}return Promise.resolve(u)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/chairdesk/chairdesk.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);t.a={name:"child chair desk",prototype:"items",info:{tag:["furnishings","wood","metal"],group:"items",title:"child chair desk",description:"child chair desk",image:n(536)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:20,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation;o=o>-180&&o<0?360:0;let r={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:"translate(-35,-50)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:70,height:100,style:r}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(35, 50) scale(1,-1) rotate(${o/2})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){e.properties.get("altitude").get("length");var r=new o.Object3D,a=new o.Shape;a.moveTo(0,.25),a.lineTo(0,.95),a.quadraticCurveTo(0,1.2,.25,1.2),a.lineTo(.75,1.2),a.quadraticCurveTo(1,1.2,1,.95),a.lineTo(1,.25),a.quadraticCurveTo(1,0,.75,0),a.lineTo(.25,0),a.quadraticCurveTo(0,0,0,.25);var i=new o.ShapeGeometry(a),s=new o.Mesh(i,new o.MeshPhongMaterial({color:11184810})),l=new o.ExtrudeGeometry(a,{steps:2,amount:.1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),c=new o.MeshPhongMaterial({color:16711680});(s=new o.Mesh(l,c)).position.set(0,1.2,0),s.rotation.x+=Math.PI/2,r.add(s);var u=new o.CylinderGeometry(.08,.08,1,32),d=(new o.CylinderGeometry(.08,.08,.8,32),new o.CylinderGeometry(.08,.08,.6,32)),p=new o.CylinderGeometry(.08,.08,.2,32),h=new o.CylinderGeometry(.06,.06,.025,32),m=new o.CylinderGeometry(.08,.08,.02,32),f=new o.MeshLambertMaterial({color:14276567}),y=new o.MeshPhongMaterial({color:16711680}),g=new o.MeshPhongMaterial({color:0}),w=new o.Mesh(u,f);w.rotation.x+=Math.PI/2,w.position.set(.5,.6,.6),s.add(w);var x=new o.Mesh(u,f);x.position.set(.5,.6,1.1),s.add(x);var v=new o.Mesh(u,f);v.rotation.z+=Math.PI/2,v.position.set(0,.6,1.1),s.add(v);var M=new o.Mesh(d,f);M.rotation.x+=Math.PI/2,M.position.set(-.5,.6,.8),s.add(M);var b=new o.Mesh(p,f);b.position.set(-.5,.6,1.1),s.add(b);var E=new o.Mesh(h,g);E.position.set(.5,.2,1.18),E.rotation.x+=Math.PI/2,s.add(E);var _=new o.Mesh(h,g);_.position.set(.5,1,1.18),_.rotation.x+=Math.PI/2,s.add(_);var O=new o.Mesh(h,g);O.position.set(-.9,0,1.18),O.rotation.x+=Math.PI/2,s.add(O);var T=new o.Mesh(h,g);T.position.set(-.9,1.2,1.18),T.rotation.x+=Math.PI/2,s.add(T);var I=new o.Mesh(m,f);I.position.set(-1,0,1.1),I.rotation.z+=Math.PI/2,s.add(I);var q=new o.Mesh(m,f);q.position.set(-1,1.2,1.1),q.rotation.z+=Math.PI/2,s.add(q);var P=new(o.Curve.create(function(e){this.scale=void 0===e?1:e},function(e){var t=e/3,n=Math.sin(Math.PI*e)/8;return new o.Vector3(t,n,0).multiplyScalar(this.scale)}))(1.8),D=new o.TubeGeometry(P,32,.03,32,!1),C=new o.Mesh(D,f);C.position.set(-1.1,.35,.15),C.rotation.x+=Math.PI/2,C.rotation.z+=Math.PI/4,s.add(C);var S=new o.Mesh(D,f);S.position.set(-1.1,.85,.15),S.rotation.x+=Math.PI/2,S.rotation.z+=Math.PI/4,s.add(S);var G=new o.CylinderGeometry(.03,.03,.01,32),k=new o.Mesh(G,f);k.position.set(-1.1,.35,.15),k.rotation.x+=Math.PI/2,s.add(k);var L=new o.Mesh(G,f);L.position.set(-1.1,.85,.15),L.rotation.x+=Math.PI/2,s.add(L);var A=new o.Mesh(G,f);A.position.set(-.675,.35,.575),A.rotation.z+=Math.PI/2,s.add(A);var R=new o.Mesh(G,f);R.position.set(-.675,.85,.575),R.rotation.z+=Math.PI/2,s.add(R);var N=new o.TorusGeometry(.5,.08,32,32,Math.PI/2),j=new o.Mesh(N,f);j.position.set(-1,.7,1.1),s.add(j);var B=new o.Mesh(N,f);B.rotation.x+=Math.PI,B.position.set(-1,.5,1.1),s.add(B);var z=new o.Shape;z.moveTo(0,.25),z.lineTo(0,.55),z.quadraticCurveTo(0,.8,.25,.8),z.lineTo(.55,.8),z.quadraticCurveTo(.8,.8,.8,.55),z.lineTo(.8,.25),z.quadraticCurveTo(.8,0,.55,0),z.lineTo(.25,0),z.quadraticCurveTo(0,0,0,.25);var V={steps:2,amount:.1,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},U=new o.ExtrudeGeometry(z,V),F=new o.Mesh(U,y);F.position.set(-.9,.2,.45),s.add(F);var W=new o.Shape;W.moveTo(0,.25),W.lineTo(0,.55),W.quadraticCurveTo(0,.8,.25,.8),W.lineTo(.55,.8),W.quadraticCurveTo(.8,.8,.8,.55),W.lineTo(.8,.25),W.quadraticCurveTo(.8,0,.55,0),W.lineTo(.25,0),W.quadraticCurveTo(0,0,0,.25);var H=new o.Path;H.moveTo(3.5,3.5),H.absellipse(.65,.4,.035,.125,.125,2*Math.PI,!1),W.holes.push(H);var $=new o.ExtrudeGeometry(W,V),Y=new o.Mesh($,y);Y.position.set(-1.08,.2,.45),Y.rotation.y+=Math.PI/2,s.add(Y);let K=(new o.Box3).setFromObject(r),X=Math.abs(K.max.x-K.min.x),Z=Math.abs(K.max.y-K.min.y),J=Math.abs(K.max.z-K.min.z);if(e.selected){let e=new o.BoxHelper(r,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,r.add(e)}return r.rotation.y+=Math.PI/2,r.position.x+=-100/2.75,r.scale.set(70/J,100/Z,125/X),Promise.resolve(r)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/child-chair-desk/chairDesk.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:0}),s=new o.MeshLambertMaterial({color:12632256}),l=new o.MeshLambertMaterial({color:13369344}),c=new o.MeshLambertMaterial({color:102}),u=new o.MeshLambertMaterial({color:16243200}),d=new o.MeshLambertMaterial({color:26163}),p=function(){let e=new o.Mesh(new o.BoxGeometry(1,.75,.05),s);for(let t=-.4;t<=.45;t+=.85)for(let n=-.3;n<=.3;n+=.6){let r=new o.Mesh(new o.CylinderGeometry(.08,.08,.05,32),i);r.position.set(t,n,.15),e.add(r);let a=new o.Mesh(new o.CylinderGeometry(.06,.06,.06,32),s);r.add(a);let l=new o.Mesh(new o.CylinderGeometry(.01,.01,.08,6),i);l.position.set(0,0,0),r.add(l);let c=new o.Mesh(new o.CylinderGeometry(.06,.06,.01,32),s);c.rotation.x=.5*Math.PI,c.position.set(-.03,0,-.12),r.add(c);let u=new o.Mesh(new o.CylinderGeometry(.03725,.03725,.03,32),i);u.rotation.x=.5*Math.PI,u.position.set(-.03,0,-.1),r.add(u);let d=new o.CylinderGeometry(.055,.055,.005,3),p=new o.Mesh(d,s);p.position.set(-.02,-.035,-.06),r.add(p);let h=new o.BoxGeometry(.055,.11,.005),m=new o.Mesh(h,s);m.rotation.x=.5*Math.PI,m.position.set(0,-.035,-.04),r.add(m);let f=new o.Mesh(d,s);f.position.set(-.02,.035,-.06),r.add(f);let y=new o.Mesh(h,s);y.rotation.x=.5*Math.PI,y.position.set(0,.035,-.04),r.add(y);let g=new o.Mesh(new o.BoxGeometry(.095,.075,.01),s);g.position.set(-.02,0,-.09),r.add(g)}let t=new o.BoxGeometry(.85,.75,.05),n=new o.Mesh(t,s);n.position.set(.475,0,-.45),n.rotation.y=.5*Math.PI,e.add(n);let r=new o.Mesh(t,s);r.position.set(0,0,-.45),r.rotation.y=.5*Math.PI,e.add(r);let a=new o.Mesh(new o.BoxGeometry(.5,.75,.05),s);a.position.set(.25,0,-.8),e.add(a);let p;for(p=-.74;p<=-.1;p+=.25){let t=new o.BoxGeometry(.05,.75,.02),n=new o.Mesh(t,s);n.position.set(.45,0,p),e.add(n);let r=new o.Mesh(t,s);r.position.set(.025,0,p),e.add(r)}let h;for(h=-.76;h<=-.1;h+=.25){let t=new o.BoxGeometry(.05,.75,.015),n=new o.Mesh(t,c);n.position.set(.42,0,h),e.add(n);let r=new o.Mesh(t,c);r.position.set(.055,0,h),e.add(r);let a=new o.BoxGeometry(.02,.2,.75),i=new o.Mesh(a,c);i.position.set(.405,0,h+.1),i.rotation.x=.5*Math.PI,e.add(i);let s=new o.Mesh(a,c);s.position.set(.07,0,h+.1),s.rotation.x=.5*Math.PI,e.add(s);let l=new o.BoxGeometry(.02,.34,.215),u=new o.Mesh(l,c);u.position.set(.25,-.365,h+.1),u.rotation.z=.5*Math.PI,e.add(u);let d=new o.Mesh(l,c);d.position.set(.235,.365,h+.1),d.rotation.z=.5*Math.PI,e.add(d);let p=new o.Mesh(new o.BoxGeometry(.355,.75,.015),c);p.position.set(.2375,0,h+.205),e.add(p)}let m=new o.Mesh(new o.BoxGeometry(.5,.05,.05),s);m.position.set(.25,-.35,-.85),e.add(m);let f=m.clone();f.position.set(.25,.35,-.85),e.add(f);let y=m.clone();y.position.set(-.25,-.35,-.05),e.add(y);let g=m.clone();g.position.set(-.25,.35,-.05),e.add(g);let w=new o.Mesh(new o.BoxGeometry(.05,.65,.05),s);w.position.set(-.475,0,-.05),e.add(w);let x=new o.Mesh(new o.BoxGeometry(.5,.05,.05),s);x.position.set(.7,-.35,-.05),e.add(x);let v=x.clone();v.position.set(.7,.35,-.05),e.add(v);let M=new o.Mesh(new o.BoxGeometry(.05,.65,.05),s);M.position.set(.925,0,-.05),e.add(M);let b=new o.Mesh(new o.BoxGeometry(.5,.05,.05),s);b.position.set(.7,-.35,-.85),e.add(b);let E=b.clone();E.position.set(.7,.35,-.85),e.add(E);let _=new o.Mesh(new o.BoxGeometry(.05,.65,.05),s);_.position.set(.925,0,-.85),e.add(_);let O=new o.Mesh(new o.BoxGeometry(.45,.775,.05),c);O.position.set(.745,0,-.9),e.add(O);let T=new o.Mesh(new o.BoxGeometry(.3,.65,.7),i);T.position.set(.75,0,-.5),e.add(T);let I=new o.CylinderGeometry(.01,.01,.05,32),q=new o.Mesh(I,i);q.position.set(.51,-.35,-.88),e.add(q);let P=new o.Mesh(I,i);P.position.set(.51,.35,-.88),e.add(P);let D,C;for(let t=-.3;t<=.3;t+=.6){C=-.3===t?l:c,D=-.3===t?-1:1;let n=new o.Mesh(new o.BoxGeometry(.2,.3,.05),C);n.position.set(.13,t-.14*D,-.85),e.add(n);let r=new o.Mesh(new o.BoxGeometry(.2,.15,.02),C);r.position.set(.13,t-.29*D,-.9),r.rotation.x=.5*Math.PI,e.add(r);let a=new o.Mesh(new o.BoxGeometry(.2,.15,.02),C);a.position.set(.13,t,-.9),a.rotation.x=.5*Math.PI,e.add(a);let i=new o.Mesh(new o.BoxGeometry(.15,.3,.02),C);i.position.set(.04,t-.14*D,-.9),i.rotation.y=.5*Math.PI,e.add(i);let s=new o.Mesh(new o.BoxGeometry(.15,.3,.02),C);s.position.set(.22,t-.14*D,-.9),s.rotation.y=.5*Math.PI,e.add(s)}let S,G;for(let t=-.3;t<=.3;t+=.6){G=-.3===t?u:d,S=-.3===t?-1:1;let n=new o.Mesh(new o.BoxGeometry(.2,.3,.05),G);n.position.set(.35,t-.14*S,-.85),e.add(n);let r=new o.Mesh(new o.BoxGeometry(.2,.15,.02),G);r.position.set(.35,t-.29*S,-.9),r.rotation.x=.5*Math.PI,e.add(r);let a=new o.Mesh(new o.BoxGeometry(.2,.15,.02),G);a.position.set(.35,t,-.9),a.rotation.x=.5*Math.PI,e.add(a);let i=new o.Mesh(new o.BoxGeometry(.15,.3,.02),G);i.position.set(.26,t-.14*S,-.9),i.rotation.y=.5*Math.PI,e.add(i);let s=new o.Mesh(new o.BoxGeometry(.15,.3,.02),G);s.position.set(.44,t-.14*S,-.9),s.rotation.y=.5*Math.PI,e.add(s)}let k,L;for(let t=-.3;t<=.3;t+=.6){k=-.3===t?l:c,L=-.3===t?-1:1;let n=new o.Mesh(new o.BoxGeometry(.4,.3,.05),k);n.position.set(-.22,t-.14*L,-.05),e.add(n);let r=new o.Mesh(new o.BoxGeometry(.4,.25,.02),k);r.position.set(-.22,t-.28*L,-.2),r.rotation.x=.5*Math.PI,e.add(r);let a=new o.Mesh(new o.BoxGeometry(.4,.25,.02),k);a.position.set(-.22,t,-.2),a.rotation.x=.5*Math.PI,e.add(a);let i=new o.Mesh(new o.BoxGeometry(.25,.3,.02),k);i.position.set(-.41,t-.14*L,-.2),i.rotation.y=.5*Math.PI,e.add(i);let s=new o.Mesh(new o.BoxGeometry(.25,.3,.02),k);s.position.set(-.03,t-.14*L,-.2),s.rotation.y=.5*Math.PI,e.add(s)}for(let t=-.45;t<=.55;t+=.9){let n=new o.Mesh(new o.CylinderGeometry(.02,.02,.06,32),c);n.rotation.x=.5*Math.PI,n.position.set(.48,t,-1.3),e.add(n);let r=new o.Mesh(new o.CylinderGeometry(.02,.02,1.3,32),s);r.position.set(0,.68,0),n.add(r);let a=new o.Mesh(new o.CylinderGeometry(.025,.025,.06,32),c);a.rotation.y=.5*Math.PI,a.position.set(0,1.32,0),n.add(a);let i=new o.Mesh(new o.BoxGeometry(.02,.15,.5),c);i.position.set(0,1.34,0),i.rotation.z=.5*Math.PI,i.rotation.y=.5*Math.PI,n.add(i);let l=new o.Mesh(new o.BoxGeometry(.01,.2,.55),s);l.position.set(0,1.35,0),l.rotation.z=.5*Math.PI,l.rotation.y=.5*Math.PI,n.add(l)}let A=new o.Mesh(new o.CylinderGeometry(.01,.01,.05,32),c);A.position.set(.48,-.39,-.85),e.add(A);let R=new o.Mesh(new o.CylinderGeometry(.025,.025,.03,32),c);R.position.set(.48,-.44,-.85),R.rotation.x=.5*Math.PI,e.add(R);let N=new o.Mesh(new o.CylinderGeometry(.01,.01,.05,32),c);N.position.set(.48,.39,-.85),e.add(N);let j=new o.Mesh(new o.CylinderGeometry(.025,.025,.03,32),c);return j.position.set(.48,.44,-.85),j.rotation.x=.5*Math.PI,e.add(j),e}(),h=function(){let e=new o.Mesh(new o.BoxGeometry(1,.75,.05),s);for(let t=-.4;t<=.45;t+=.85)for(let n=-.3;n<=.3;n+=.6){let r=new o.Mesh(new o.CylinderGeometry(.08,.08,.05,32),i);r.position.set(t,n,.15),e.add(r);let a=new o.Mesh(new o.CylinderGeometry(.06,.06,.06,32),s);r.add(a);let l=new o.Mesh(new o.CylinderGeometry(.01,.01,.08,6),i);l.position.set(0,0,0),r.add(l);let c=new o.Mesh(new o.CylinderGeometry(.06,.06,.01,32),s);c.rotation.x=.5*Math.PI,c.position.set(-.03,0,-.12),r.add(c);let u=new o.Mesh(new o.CylinderGeometry(.03725,.03725,.03,32),i);u.rotation.x=.5*Math.PI,u.position.set(-.03,0,-.1),r.add(u);let d=new o.CylinderGeometry(.055,.055,.005,3),p=new o.Mesh(d,s);p.position.set(-.02,-.035,-.06),r.add(p);let h=new o.BoxGeometry(.055,.11,.005),m=new o.Mesh(h,s);m.rotation.x=.5*Math.PI,m.position.set(0,-.035,-.04),r.add(m);let f=new o.Mesh(d,s);f.position.set(-.02,.035,-.06),r.add(f);let y=new o.Mesh(h,s);y.rotation.x=.5*Math.PI,y.position.set(0,.035,-.04),r.add(y);let g=new o.Mesh(new o.BoxGeometry(.095,.075,.01),s);g.position.set(-.02,0,-.09),r.add(g)}let t=new o.BoxGeometry(.85,.75,.05),n=new o.Mesh(t,s);n.position.set(.475,0,-.45),n.rotation.y=.5*Math.PI,e.add(n);let r=new o.Mesh(t,s);r.position.set(0,0,-.45),r.rotation.y=.5*Math.PI,e.add(r);let a=new o.Mesh(new o.BoxGeometry(.5,.75,.05),s);a.position.set(.25,0,-.8),e.add(a);let p;for(p=-.74;p<=-.1;p+=.25){let t=new o.BoxGeometry(.05,.75,.02),n=new o.Mesh(t,s);n.position.set(.45,0,p),e.add(n);let r=new o.Mesh(t,s);r.position.set(.025,0,p),e.add(r)}let h;for(h=-.76;h<=-.1;h+=.25){let t=new o.BoxGeometry(.05,.75,.015),n=new o.Mesh(t,c);n.position.set(.42,0,h),e.add(n);let r=new o.Mesh(t,c);r.position.set(.055,0,h),e.add(r);let a=new o.BoxGeometry(.02,.2,.75),i=new o.Mesh(a,c);i.position.set(.405,0,h+.1),i.rotation.x=.5*Math.PI,e.add(i);let s=new o.Mesh(a,c);s.position.set(.07,0,h+.1),s.rotation.x=.5*Math.PI,e.add(s);let l=new o.BoxGeometry(.02,.34,.215),u=new o.Mesh(l,c);u.position.set(.25,-.365,h+.1),u.rotation.z=.5*Math.PI,e.add(u);let d=new o.Mesh(l,c);d.position.set(.235,.365,h+.1),d.rotation.z=.5*Math.PI,e.add(d);let p=new o.Mesh(new o.BoxGeometry(.355,.75,.015),c);p.position.set(.2375,0,h+.205),e.add(p)}let m=new o.Mesh(new o.BoxGeometry(.5,.05,.05),s);m.position.set(.25,-.35,-.85),e.add(m);let f=m.clone();f.position.set(.25,.35,-.85),e.add(f);let y=m.clone();y.position.set(-.25,-.35,-.05),e.add(y);let g=m.clone();g.position.set(-.25,.35,-.05),e.add(g);let w=new o.Mesh(new o.BoxGeometry(.05,.65,.05),s);w.position.set(-.475,0,-.05),e.add(w);let x=new o.Mesh(new o.BoxGeometry(.5,.05,.05),s);x.position.set(.7,-.35,-.05),e.add(x);let v=x.clone();v.position.set(.7,.35,-.05),e.add(v);let M=new o.Mesh(new o.BoxGeometry(.05,.65,.05),s);M.position.set(.925,0,-.05),e.add(M);let b=new o.Mesh(new o.BoxGeometry(.5,.05,.05),s);b.position.set(.7,-.35,-.85),e.add(b);let E=b.clone();E.position.set(.7,.35,-.85),e.add(E);let _=new o.Mesh(new o.BoxGeometry(.05,.65,.05),s);_.position.set(.925,0,-.85),e.add(_);let O=new o.Mesh(new o.BoxGeometry(.45,.775,.05),c);O.position.set(.745,0,-.9),e.add(O);let T=new o.Mesh(new o.BoxGeometry(.3,.65,.7),i);T.position.set(.75,0,-.5),e.add(T);let I=new o.CylinderGeometry(.01,.01,.05,32),q=new o.Mesh(I,i);q.position.set(.51,-.35,-.88),e.add(q);let P=new o.Mesh(I,i);P.position.set(.51,.35,-.88),e.add(P);let D,C;for(let t=-.3;t<=.3;t+=.6){C=-.3===t?l:c,D=-.3===t?-1:1;let n=new o.Mesh(new o.BoxGeometry(.2,.3,.05),C);n.position.set(.13,t-.14*D,-.85),e.add(n);let r=new o.Mesh(new o.BoxGeometry(.2,.15,.02),C);r.position.set(.13,t-.29*D,-.9),r.rotation.x=.5*Math.PI,e.add(r);let a=new o.Mesh(new o.BoxGeometry(.2,.15,.02),C);a.position.set(.13,t,-.9),a.rotation.x=.5*Math.PI,e.add(a);let i=new o.Mesh(new o.BoxGeometry(.15,.3,.02),C);i.position.set(.04,t-.14*D,-.9),i.rotation.y=.5*Math.PI,e.add(i);let s=new o.Mesh(new o.BoxGeometry(.15,.3,.02),C);s.position.set(.22,t-.14*D,-.9),s.rotation.y=.5*Math.PI,e.add(s)}let S,G;for(let t=-.3;t<=.3;t+=.6){G=-.3===t?u:d,S=-.3===t?-1:1;let n=new o.Mesh(new o.BoxGeometry(.2,.3,.05),G);n.position.set(.35,t-.14*S,-.85),e.add(n);let r=new o.Mesh(new o.BoxGeometry(.2,.15,.02),G);r.position.set(.35,t-.29*S,-.9),r.rotation.x=.5*Math.PI,e.add(r);let a=new o.Mesh(new o.BoxGeometry(.2,.15,.02),G);a.position.set(.35,t,-.9),a.rotation.x=.5*Math.PI,e.add(a);let i=new o.Mesh(new o.BoxGeometry(.15,.3,.02),G);i.position.set(.26,t-.14*S,-.9),i.rotation.y=.5*Math.PI,e.add(i);let s=new o.Mesh(new o.BoxGeometry(.15,.3,.02),G);s.position.set(.44,t-.14*S,-.9),s.rotation.y=.5*Math.PI,e.add(s)}let k,L;for(let t=-.3;t<=.3;t+=.6){k=-.3===t?l:c,L=-.3===t?-1:1;let n=new o.Mesh(new o.BoxGeometry(.4,.3,.05),k);n.position.set(-.22,t-.14*L,-.05),e.add(n);let r=new o.Mesh(new o.BoxGeometry(.4,.25,.02),k);r.position.set(-.22,t-.28*L,-.2),r.rotation.x=.5*Math.PI,e.add(r);let a=new o.Mesh(new o.BoxGeometry(.4,.25,.02),k);a.position.set(-.22,t,-.2),a.rotation.x=.5*Math.PI,e.add(a);let i=new o.Mesh(new o.BoxGeometry(.25,.3,.02),k);i.position.set(-.41,t-.14*L,-.2),i.rotation.y=.5*Math.PI,e.add(i);let s=new o.Mesh(new o.BoxGeometry(.25,.3,.02),k);s.position.set(-.03,t-.14*L,-.2),s.rotation.y=.5*Math.PI,e.add(s)}for(let t=-.45;t<=.55;t+=.9){let n=new o.Mesh(new o.CylinderGeometry(.02,.02,.06,32),c);n.rotation.x=.5*Math.PI,n.position.set(.48,t,-1.3),e.add(n);let r=new o.Mesh(new o.CylinderGeometry(.02,.02,1.3,32),s);r.position.set(0,.68,0),n.add(r);let a=new o.Mesh(new o.CylinderGeometry(.025,.025,.06,32),c);a.rotation.y=.5*Math.PI,a.position.set(0,1.32,0),n.add(a);let i=new o.Mesh(new o.BoxGeometry(.02,.15,.5),c);i.position.set(0,1.34,0),i.rotation.z=.5*Math.PI,i.rotation.y=.5*Math.PI,n.add(i);let l=new o.Mesh(new o.BoxGeometry(.01,.2,.55),s);l.position.set(0,1.35,0),l.rotation.z=.5*Math.PI,l.rotation.y=.5*Math.PI,n.add(l)}let A=new o.Mesh(new o.CylinderGeometry(.01,.01,.05,32),c);A.position.set(.48,-.39,-.85),e.add(A);let R=new o.Mesh(new o.CylinderGeometry(.025,.025,.03,32),c);R.position.set(.48,-.44,-.85),R.rotation.x=.5*Math.PI,e.add(R);let N=new o.Mesh(new o.CylinderGeometry(.01,.01,.05,32),c);N.position.set(.48,.39,-.85),e.add(N);let j=new o.Mesh(new o.CylinderGeometry(.025,.025,.03,32),c);return j.position.set(.48,.44,-.85),j.rotation.x=.5*Math.PI,e.add(j),e}();t.a={name:"cleaning cart",prototype:"items",info:{tag:["metal","plastic"],group:"Items",title:"cleaning cart",description:"cleaning cart",image:n(538)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-50,-40)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:100,height:80,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(50, 40) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(p.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);a.rotation.x=.5*Math.PI,a.position.y+=20+r,a.scale.set(100/s,80/c,100/l);let u=new o.Object3D;u.add(h.clone()),u.rotation.x=.5*Math.PI,u.position.y+=20+r,u.scale.set(100/s,80/c,100/l);let d=new o.LOD;if(d.addLevel(a,200),d.addLevel(u,900),d.updateMatrix(),d.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(d,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,d.add(e)}return Promise.resolve(d)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/cleaningcart/cleaning_cart.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);t.a={name:"coat-hook",prototype:"items",info:{tag:["furnishings","optional"],group:"Items",title:"Coat hook",description:"Coat hook",image:n(540)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:120,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;Math.sin(o*Math.PI/180)<0&&(r=180);let i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},s={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:"translate(-100,-10)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:200,height:20,style:i}),a.a.createElement("line",{key:"2",x1:100,x2:100,y1:20,y2:30,style:s}),a.a.createElement("line",{key:"3",x1:90,x2:100,y1:24,y2:30,style:s}),a.a.createElement("line",{key:"4",x1:100,x2:.55*200,y1:30,y2:24,style:s}),a.a.createElement("text",{key:"5",x:"0",y:"0",transform:`translate(100, 10) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,r){let a=e.properties.get("altitude").get("length"),i=new o.Object3D,s=(new o.TextureLoader).load(n(541)),l=new o.MeshLambertMaterial({map:s}),c=new o.BoxGeometry(2.15,1.5*.1,.04),u=new o.Mesh(c,l);u.position.y=.05,i.add(u);let d=new o.CylinderGeometry(.0125,.0125,.1/1.7,32),p=new o.MeshLambertMaterial({color:14276567}),h=new o.Mesh(d,p);h.rotation.x+=Math.PI/2,h.position.set(1,.05,.05),i.add(h);let m=new o.Mesh(d,p);m.rotation.x+=Math.PI/2,m.position.set(-.95,.05,.05),i.add(m);let f=new o.SphereGeometry(.035,32,32),y=new o.Mesh(f,p);y.position.set(1,.05,.08),y.scale.set(1,1,.5),i.add(y);let g=new o.Mesh(f,p);g.position.set(-.95,.05,.08),g.scale.set(1,1,.5),i.add(g);let w=new o.CatmullRomCurve3([new o.Vector3(.05,.125,0),new o.Vector3(.125,.025,0),new o.Vector3(-.05,-.075,0)]);for(let e=-.95;e<=1.05;e+=.15){let t=new o.CylinderGeometry(.0125,.0125,.2,32),n=new o.Mesh(t,p);n.position.set(e,-.05,0),i.add(n);let r=new o.TubeGeometry(w,32,.015,16,!1),a=new o.Mesh(r,p);a.position.set(e,-.05,.045),a.rotation.y-=Math.PI/2,a.rotation.x+=Math.PI+Math.PI/7.5,a.rotation.z+=Math.PI/2,i.add(a);let s=new o.SphereGeometry(.035,32,32),l=new o.Mesh(s,p);l.position.set(e,-.142,.15),l.rotation.x+=Math.PI/2+Math.PI/3,i.add(l)}let x=(new o.Box3).setFromObject(i),v=Math.abs(x.max.x-x.min.x),M=Math.abs(x.max.y-x.min.y),b=Math.abs(x.max.z-x.min.z);if(e.selected){let e=new o.BoxHelper(i,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,i.add(e)}return i.rotation.y+=Math.PI,i.position.y+=40/1.5+a,i.scale.set(200/v,40/M,20/b),Promise.resolve(i)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/coat-hook/coat-hook.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/coat-hook/wood.jpg"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=(new o.TextureLoader).load(n(543)),s=(new o.MeshLambertMaterial({map:i}),new o.MeshLambertMaterial({color:16119028}));t.a={name:"square column",prototype:"items",info:{tag:["structure"],group:"items",title:"square column",description:"column",image:n(544)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:300,unit:"cm"}},width:{label:"width",type:"length-measure",defaultValue:{length:50,unit:"cm"}},depth:{label:"depth",type:"length-measure",defaultValue:{length:50,unit:"cm"}}},render2D:function(e,t,n){let o=e.properties.get("width").get("length"),r=e.properties.get("depth").get("length"),i=e.rotation+90,s=0;Math.sin(i*Math.PI/180)<0&&(s=180);let l={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:`translate(${-o/2},${-r/2})`},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:o,height:r,style:l}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(${o/2}, ${r/2}) scale(1,-1) rotate(${s})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("height").get("length"),a=e.properties.get("width").get("length"),i=e.properties.get("depth").get("length"),l=e.properties.get("altitude").get("length"),c=new o.Object3D,u=new o.Mesh(new o.BoxGeometry(a,r,i,32),s);if(c.add(u),e.selected){let e=new o.BoxHelper(c,10077179);e.material.linewidth=10,e.renderOrder=5e3,e.material.depthTest=!1,c.add(e)}return c.position.y+=r/2+l,c.position.x+=a/2,Promise.resolve(c)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/column-square/copper.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/column-square/square_column.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);let i=(new o.TextureLoader).load(n(546)),s=new o.MeshLambertMaterial({map:i});new o.MeshLambertMaterial({color:16119028});t.a={name:"round column",prototype:"items",info:{tag:["structure"],group:"items",title:"round column",description:"round column",image:n(547)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:300,unit:"cm"}},radius:{label:"radius",type:"length-measure",defaultValue:{length:20,unit:"cm"}}},render2D:function(e,t,n){let o=e.properties.get("radius").get("length"),r=e.rotation+90,i=0;Math.sin(r*Math.PI/180)<0&&(i=180);let s={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",null,a.a.createElement("circle",{key:"1",cx:"0",cy:"0",r:o,style:s}),a.a.createElement("text",{key:"2",cx:"0",cy:"0",transform:`scale(1,-1) rotate(${i})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("height").get("length"),a=e.properties.get("radius").get("length"),i=e.properties.get("altitude").get("length"),l=new o.Object3D,c=function(e,t){let n=new o.Mesh,r=new o.Mesh(new o.CylinderGeometry(e,e,t,32),s),a=new o.Mesh(new o.CylinderGeometry(e/10,e/10,t+t/10,32),s),i=new o.Mesh(new o.CylinderGeometry(e/10,e/10,t+t/10,32),s),l=new o.Mesh(new o.CylinderGeometry(e/10,e/10,t+t/10,32),s),c=new o.Mesh(new o.CylinderGeometry(e/10,e/10,t+t/10,32),s);return a.position.x+=e/2.5,a.position.z+=e/2.5,i.position.x-=e/2.5,i.position.z-=e/2.5,l.position.x-=e/2.5,l.position.z+=e/2.5,c.position.x+=e/2.5,c.position.z-=e/2.5,n.add(a),n.add(i),n.add(l),n.add(c),n.add(r),n}(a,r);l.add(c.clone()),l.position.y+=r/2+i;let u=new o.Object3D,d=function(e,t){let n=new o.Mesh,r=new o.Mesh(new o.CylinderGeometry(e,e,t,6,6),s),a=new o.Mesh(new o.CylinderGeometry(e/10,e/10,t+t/10,6),s),i=new o.Mesh(new o.CylinderGeometry(e/10,e/10,t+t/10,6),s),l=new o.Mesh(new o.CylinderGeometry(e/10,e/10,t+t/10,6),s),c=new o.Mesh(new o.CylinderGeometry(e/10,e/10,t+t/10,6),s);return a.position.x+=e/2.5,a.position.z+=e/2.5,i.position.x-=e/2.5,i.position.z-=e/2.5,l.position.x-=e/2.5,l.position.z+=e/2.5,c.position.x+=e/2.5,c.position.z-=e/2.5,n.add(a),n.add(i),n.add(l),n.add(c),n.add(r),n}(a,r);u.add(d.clone()),u.position.y+=r/2+i;let p=new o.LOD;if(p.addLevel(l,1300),p.addLevel(u,2e3),p.updateMatrix(),p.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(p,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,p.add(e)}return Promise.resolve(p)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/column/rame.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/column/column.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);t.a={name:"cube",prototype:"items",info:{title:"cube",tag:["demo"],group:"Items",description:"Demo item",image:n(549)},properties:{color:{label:"Color",type:"color",defaultValue:"#f48342"}},render2D:(e,t,n)=>{let o={stroke:"#000",strokeWidth:e.selected?"2px":"0px",fill:e.properties.get("color")};return a.a.createElement("g",{transform:"translate(-50, -50)"},a.a.createElement("rect",{x:"0",y:"0",width:"100",height:"100",style:o}))},render3D:(e,t,n)=>{let r=new o.BoxGeometry(100,100,100),a=new o.MeshBasicMaterial({color:e.properties.get("color")}),i=new o.Mesh(r,a);if(e.selected){let e=new o.BoxHelper(i,"#000");e.material.linewidth=1,e.material.depthTest=!1,e.renderOrder=1e3,i.add(e)}return i.position.y=50,Promise.resolve(i)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/cube/cube.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:10194037}),s=new o.MeshLambertMaterial({color:14276567}),l=new o.MeshBasicMaterial({color:6723942}),c=function(){let e=new o.Mesh,t=new o.BoxGeometry(1.05,.05,.625),n=[i,i,l,i,i,i],r=new o.Mesh(t,n);r.position.y=1,e.add(r);let a=new o.CylinderGeometry(.03,.03,1,32,32),c=new o.BoxGeometry(.9,.05,.5),u=new o.Mesh(c,i);u.position.y=.75,e.add(u);let d=new o.BoxGeometry(.9,.1,.025),p=new o.Mesh(d,i);p.position.y=.8125,p.position.z=.5/3+.1,e.add(p);let h=new o.Mesh(a,s);h.position.x=.45,h.position.z=.25,h.position.y=.5,e.add(h);let m=new o.Mesh(a,s);m.position.x=.45,m.position.z=-.25,m.position.y=.5,e.add(m);let f=new o.Mesh(a,s);f.position.x=-.45,f.position.z=.25,f.position.y=.5,e.add(f);let y=new o.Mesh(a,s);return y.position.x=-.45,y.position.z=-.25,y.position.y=.5,e.add(y),e}(),u=function(){let e=new o.Mesh,t=new o.BoxGeometry(1.05,.05,.625),n=[i,i,l,i,i,i],r=new o.Mesh(t,n);r.position.y=1,e.add(r);let a=new o.CylinderGeometry(.03,.03,1,32,32),c=new o.BoxGeometry(.9,.05,.5),u=new o.Mesh(c,i);u.position.y=.75,e.add(u);let d=new o.BoxGeometry(.9,.1,.025),p=new o.Mesh(d,i);p.position.y=.8125,p.position.z=.5/3+.1,e.add(p);let h=new o.Mesh(a,s);h.position.x=.45,h.position.z=.25,h.position.y=.5,e.add(h);let m=new o.Mesh(a,s);m.position.x=.45,m.position.z=-.25,m.position.y=.5,e.add(m);let f=new o.Mesh(a,s);f.position.x=-.45,f.position.z=.25,f.position.y=.5,e.add(f);let y=new o.Mesh(a,s);return y.position.x=-.45,y.position.z=-.25,y.position.y=.5,e.add(y),e}();t.a={name:"school desk",prototype:"items",info:{tag:["furnishings","wood"],group:"Items",title:"school desk",description:"school desk",image:n(551)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-35,-25)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:70,height:50,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(35, 25) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(c.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),d=Math.abs(i.max.z-i.min.z);a.rotation.y+=Math.PI,a.position.y+=r,a.scale.set(70/s,90/l,50/d);let p=new o.Object3D;p.add(u.clone()),p.rotation.y+=Math.PI,p.position.y+=r,p.scale.set(70/s,90/l,50/d);let h=new o.LOD;if(h.addLevel(a,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/desk/desk.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:10194037}),s=new o.MeshLambertMaterial({color:14276567}),l=new o.MeshBasicMaterial({color:6723942}),c=function(){let e=new o.Mesh,t=new o.BoxGeometry(1.05,.05,.625),n=[i,i,l,i,i,i],r=new o.Mesh(t,n);r.position.y=1,e.add(r);let a=new o.CylinderGeometry(.03,.03,1,32,32),c=new o.BoxGeometry(.9,.05,.5),u=new o.Mesh(c,i);u.position.y=.75,e.add(u);let d=new o.BoxGeometry(.9,.1,.025),p=new o.Mesh(d,i);p.position.y=.8125,p.position.z=.5/3+.1,e.add(p);let h=new o.Mesh(a,s);h.position.x=.45,h.position.z=.25,h.position.y=.5,e.add(h);let m=new o.Mesh(a,s);m.position.x=.45,m.position.z=-.25,m.position.y=.5,e.add(m);let f=new o.Mesh(a,s);f.position.x=-.45,f.position.z=.25,f.position.y=.5,e.add(f);let y=new o.Mesh(a,s);return y.position.x=-.45,y.position.z=-.25,y.position.y=.5,e.add(y),e}(),u=function(){let e=new o.Mesh,t=new o.BoxGeometry(1.05,.05,.625),n=[i,i,l,i,i,i],r=new o.Mesh(t,n);r.position.y=1,e.add(r);let a=new o.CylinderGeometry(.03,.03,1,8,8),c=new o.BoxGeometry(.9,.05,.5),u=new o.Mesh(c,i);u.position.y=.75,e.add(u);let d=new o.BoxGeometry(.9,.1,.025),p=new o.Mesh(d,i);p.position.y=.8125,p.position.z=.5/3+.1,e.add(p);let h=new o.Mesh(a,s);h.position.x=.45,h.position.z=.25,h.position.y=.5,e.add(h);let m=new o.Mesh(a,s);m.position.x=.45,m.position.z=-.25,m.position.y=.5,e.add(m);let f=new o.Mesh(a,s);f.position.x=-.45,f.position.z=.25,f.position.y=.5,e.add(f);let y=new o.Mesh(a,s);return y.position.x=-.45,y.position.z=-.25,y.position.y=.5,e.add(y),e}();t.a={name:"double school desk",prototype:"items",info:{tag:["furnishings","wood"],group:"items",title:"double school desk",description:"double school desk",image:n(553)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-60,-25)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:120,height:50,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(60, 25) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(c.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),d=Math.abs(i.max.z-i.min.z);a.rotation.y+=Math.PI,a.position.y+=r,a.scale.set(120/s,90/l,50/d);let p=new o.Object3D;p.add(u.clone()),p.rotation.y+=Math.PI,p.position.y+=r,p.scale.set(120/s,90/l,50/d);let h=new o.LOD;if(h.addLevel(a,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/deskdouble/deskdouble.png"},function(e,t,n){"use strict";function o(e){let t=new r.Object3D,n=new r.BoxGeometry(.04,.42,.06),o=new r.MeshLambertMaterial({map:l}),a=new r.Mesh(n,o);a.position.set(0,.79,0),a.rotation.x=Math.PI/2,t.add(a);let i=new r.Mesh(n,o);i.position.set(0,.43,0),i.rotation.x=Math.PI/2,t.add(i);let s=new r.BoxGeometry(.04,.42,.04),u=new r.Mesh(s,o);u.position.set(0,.61,.21),t.add(u);let d=new r.Mesh(s,o);d.position.set(0,.61,-.21),t.add(d);let p=new r.BoxGeometry(.4,.4,.05),h=new r.Mesh(p,c);h.position.set(-.02,.61,0),h.rotation.y=Math.PI/2,t.add(h),t.rotation.y-=Math.PI/2,t.rotation.x-=Math.PI/3;let m=(new r.Box3).setFromObject(t),f=Math.abs(m.max.x-m.min.x),y=Math.abs(m.max.y-m.min.y),g=Math.abs(m.max.z-m.min.z);return t.scale.set(e/3/f,e/4/y,e/4/g),t}var r=n(1),a=n(0),i=n.n(a);const s=new r.TextureLoader,l=s.load(n(555)),c=new r.MeshLambertMaterial({color:0}),u=s.load(n(556)),d=new r.MeshLambertMaterial({color:13027014,transparent:!0,opacity:.5});t.a={name:"desk",prototype:"items",info:{tag:["furnishings","wood"],group:"Items",title:"desk",description:"desk",image:n(557)},properties:{widthA:{label:"larghezza lato A",type:"length-measure",defaultValue:{length:400,unit:"cm"}},widthB:{label:"larghezza lato B",type:"length-measure",defaultValue:{length:400,unit:"cm"}},depth:{label:"depth",type:"length-measure",defaultValue:{length:90,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:100,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.properties.get("widthA").get("length"),r=e.properties.get("widthB").get("length"),a=e.properties.get("depth").get("length"),s=e.rotation+90,l=0;return Math.sin(s*Math.PI/180)<0&&(l=180),i.a.createElement("g",{transform:`translate(${-o/2},${-a/2})`},i.a.createElement("path",{key:"1",d:`M ${o/2-r/2} 0 l ${-o/2+r/2} ${a} l ${o} 0 l ${-o/2+r/2}${-a} l ${-r} 0`,stroke:"red",transform:`translate(0, ${a}) scale(1,-1)`,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),i.a.createElement("text",{key:"5",x:"0",y:"0",transform:`translate(${o/2}, ${a/2}) scale(1,-1) rotate(${l})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let a=e.properties.get("widthA").get("length"),i=e.properties.get("widthB").get("length"),s=e.properties.get("depth").get("length"),l=e.properties.get("height").get("length"),c=e.properties.get("altitude").get("length"),p=new r.Object3D;p.add(function(e,t,n,a){let i=new r.Mesh,s=new r.Shape;e<t?(s.moveTo(0,0),s.lineTo(e/2-t/2,a),s.lineTo(e-(e/2-t/2),a),s.lineTo(e,0)):e>t?(s.moveTo(0,0),s.lineTo(e,0),s.lineTo(e+(t/2-e/2),a),s.lineTo(-(t/2-e/2),a)):e===t&&(s.moveTo(0,0),s.lineTo(0,a),s.lineTo(e,a),s.lineTo(e,0));let l={steps:2,amount:n/40,bevelEnabled:!1,bevelThickness:n,bevelSize:n,bevelSegments:2},c=new r.ExtrudeGeometry(s,l),p=new r.MeshLambertMaterial({map:u}),h=new r.Mesh(c,p);h.rotation.x+=Math.PI/2,h.position.y=n/1.8;let m=new r.Shape,f=new r.Path;e<t?(m.moveTo(0,0),m.lineTo(e,0),m.lineTo(e+(t/2-e/2),a),m.lineTo(-(t/2-e/2),a),f.moveTo(t/20,a/20),f.lineTo(e/2-t/2+t/20,a-a/20),f.lineTo(e-(e/2-t/2)-t/20,a-a/20),f.lineTo(e-t/20,a/20),m.holes.push(f)):e>t?(m.moveTo(0,0),m.lineTo(e,0),m.lineTo(e+(t/2-e/2),a),m.lineTo(-(t/2-e/2),a),f.moveTo(e/2-t/2-e/20,a/20),f.lineTo(e-(e/2-t/2)+e/20,a/20),f.lineTo(t+e/20,a-a/20),f.lineTo(e-t-e/20,a-a/20),m.holes.push(f)):e===t&&(m.moveTo(0,0),m.lineTo(e,0),m.lineTo(e,a),m.lineTo(0,a),f.moveTo(e/20,a/20),f.lineTo(e-e/20,a/20),f.lineTo(e-e/20,a-a/20),f.lineTo(e/20,a-a/20),m.holes.push(f));let y=new r.ExtrudeGeometry(m,l),g=new r.Mesh(y,p);g.position.y+=n,g.position.z+=a/40,g.rotation.x+=Math.PI/2;let w=new r.Mesh(c,p);w.position.y+=n,w.rotation.x+=Math.PI/1.5,e<t&&(w.scale.set(.98,1,1),w.position.x+=3),(e>t||e===t)&&w.scale.set(1,1,1);let x=new r.Shape;e<t?(x.moveTo(t/20,a/20),x.lineTo(e/2-t/2+t/20,a-a/20),x.lineTo(e-(e/2-t/2)-t/20,a-a/20),x.lineTo(e-t/20,a/20)):e>t?(x.moveTo(e/2-t/2-e/20,a/20),x.lineTo(e-(e/2-t/2)+e/20,a/20),x.lineTo(t+e/20,a-a/20),x.lineTo(e-t-e/20,a-a/20)):e===t&&(x.moveTo(e/20,a/20),x.lineTo(e-e/20,a/20),x.lineTo(e-e/20,a-a/20),x.lineTo(e/20,a-a/20));let v=new r.ExtrudeGeometry(x,l),M=new r.Mesh(v,d);M.position.y+=n,M.rotation.x+=Math.PI/2;let b=new r.BoxGeometry(e,a/20,1.6*n),E=new r.Mesh(b,p);E.rotation.x+=Math.PI/2,E.position.set(e/2,n/5,0);let _;e<t?_=t/2-e/2:e>t&&(_=e/2-t/2);let O,T=a/_,I=Math.atan(T);O=Math.sqrt(Math.pow(_,2)+Math.pow(a,2)),e===t&&(O=a);let q=new r.BoxGeometry(O,a/20,1.6*n),P=new r.Mesh(q,p);P.rotation.x+=Math.PI/2,e<t?(P.position.set(-(t/2-e/2)/2,n/5,a/2),P.rotation.z-=I):e>t?(P.position.set((e-(e/2+t/2))/2,n/5,a/2),P.rotation.z+=I):e===t&&(P.position.set(0,n/5,a/2),P.rotation.z+=Math.PI/2);let D=P.clone();e<t?(D.position.set(t-1.5*(t/2-e/2),n/5,a/2),D.rotation.z=-Math.PI+I):e>t?(D.position.set(e-(e/2-t/2)/2,n/5,a/2),D.rotation.z=-Math.PI-I):e===t&&D.position.set(t,n/5,a/2);let C,S,G,k,L;e<t?(C=0,S=t/2-e/2,G=t-2*(t/2-e/2),k=t-2*(t/2-e/2)-(t/2-e/2),L=t/2-e/2):e>t?(C=e/2-t/2,S=2*(e/2-t/2),G=e-(e/2-t/2),k=e-2*(e/2-t/2),L=e/2-t/2):e===t&&(C=0,S=e/8,G=e,k=e-e/8,L=e/8);for(let e=C+L;e<G;e+=L){let t=new r.BoxGeometry(a,a/20,1.55*n),o=new r.Mesh(t,p);o.rotation.x=Math.PI/2,o.rotation.z=Math.PI/2,o.position.x+=e,o.position.y+=n/5,o.position.z+=a/2,i.add(o)}i.add(h),i.add(g),i.add(w),i.add(M),i.add(E),i.add(P),i.add(D);for(let e=S+L/2;e<k;e+=L){let t=o(a);t.position.x=e,t.position.z+=1.15*a,t.position.y+=w.position.y/2.2,i.add(t)}return i}(a,i,l,s).clone());let h=(new r.Box3).setFromObject(p),m=Math.abs(h.max.x-h.min.x),f=Math.abs(h.max.y-h.min.y),y=Math.abs(h.max.z-h.min.z);p.position.y+=l/2+c,p.position.z+=s/2,a<i&&(p.position.x+=i/2-(i/2-a/2)),a>i&&(p.position.x+=a/2),a===i&&(p.position.x+=i/2),p.rotation.y+=Math.PI,a<i&&p.scale.set(i/m,s/f,l/y),a>i&&p.scale.set(a/m,s/f,l/y),a===i&&p.scale.set(a/m,s/f,l/y);let g=new r.Object3D;g.add(function(e,t,n,o){let a=new r.Mesh,i=new r.Shape;e<t?(i.moveTo(0,0),i.lineTo(e/2-t/2,o),i.lineTo(e-(e/2-t/2),o),i.lineTo(e,0)):e>t?(i.moveTo(0,0),i.lineTo(e,0),i.lineTo(e+(t/2-e/2),o),i.lineTo(-(t/2-e/2),o)):e===t&&(i.moveTo(0,0),i.lineTo(0,o),i.lineTo(e,o),i.lineTo(e,0));let s={steps:2,amount:n/40,bevelEnabled:!1,bevelThickness:n,bevelSize:n,bevelSegments:2},l=new r.ExtrudeGeometry(i,s),c=new r.MeshLambertMaterial({map:u}),d=new r.Mesh(l,c);d.rotation.x+=Math.PI/2,d.position.y=n/1.8;let p=new r.Shape,h=new r.Path;e<t?(p.moveTo(0,0),p.lineTo(e,0),p.lineTo(e+(t/2-e/2),o),p.lineTo(-(t/2-e/2),o),h.moveTo(t/20,o/20),h.lineTo(e/2-t/2+t/20,o-o/20),h.lineTo(e-(e/2-t/2)-t/20,o-o/20),h.lineTo(e-t/20,o/20),p.holes.push(h)):e>t?(p.moveTo(0,0),p.lineTo(e,0),p.lineTo(e+(t/2-e/2),o),p.lineTo(-(t/2-e/2),o),h.moveTo(e/2-t/2-e/20,o/20),h.lineTo(e-(e/2-t/2)+e/20,o/20),h.lineTo(t+e/20,o-o/20),h.lineTo(e-t-e/20,o-o/20),p.holes.push(h)):e===t&&(p.moveTo(0,0),p.lineTo(e,0),p.lineTo(e,o),p.lineTo(0,o),h.moveTo(e/20,o/20),h.lineTo(e-e/20,o/20),h.lineTo(e-e/20,o-o/20),h.lineTo(e/20,o-o/20),p.holes.push(h));let m=new r.ExtrudeGeometry(p,s),f=new r.Mesh(m,c);f.position.y+=n,f.position.z+=o/40,f.rotation.x+=Math.PI/2;let y=new r.Mesh(l,c);y.position.y+=n,y.rotation.x+=Math.PI/1.5,e<t&&(y.scale.set(.98,1,1),y.position.x+=3),(e>t||e===t)&&y.scale.set(1,1,1);let g=new r.Shape;e<t?(g.moveTo(t/20,o/20),g.lineTo(e/2-t/2+t/20,o-o/20),g.lineTo(e-(e/2-t/2)-t/20,o-o/20),g.lineTo(e-t/20,o/20)):e>t?(g.moveTo(e/2-t/2-e/20,o/20),g.lineTo(e-(e/2-t/2)+e/20,o/20),g.lineTo(t+e/20,o-o/20),g.lineTo(e-t-e/20,o-o/20)):e===t&&(g.moveTo(e/20,o/20),g.lineTo(e-e/20,o/20),g.lineTo(e-e/20,o-o/20),g.lineTo(e/20,o-o/20));let w=new r.ExtrudeGeometry(g,s),x=new r.MeshLambertMaterial({color:13027014,transparent:!0,opacity:.5}),v=new r.Mesh(w,x);v.position.y+=n,v.rotation.x+=Math.PI/2;let M=new r.BoxGeometry(e,o/20,1.6*n),b=new r.Mesh(M,c);b.rotation.x+=Math.PI/2,b.position.set(e/2,n/5,0);let E;e<t?E=t/2-e/2:e>t&&(E=e/2-t/2);let _,O=o/E,T=Math.atan(O);_=Math.sqrt(Math.pow(E,2)+Math.pow(o,2)),e===t&&(_=o);let I=new r.BoxGeometry(_,o/20,1.6*n),q=new r.Mesh(I,c);q.rotation.x+=Math.PI/2,e<t?(q.position.set(-(t/2-e/2)/2,n/5,o/2),q.rotation.z-=T):e>t?(q.position.set((e-(e/2+t/2))/2,n/5,o/2),q.rotation.z+=T):e===t&&(q.position.set(0,n/5,o/2),q.rotation.z+=Math.PI/2);let P=q.clone();return e<t?(P.position.set(t-1.5*(t/2-e/2),n/5,o/2),P.rotation.z=-Math.PI+T):e>t?(P.position.set(e-(e/2-t/2)/2,n/5,o/2),P.rotation.z=-Math.PI-T):e===t&&P.position.set(t,n/5,o/2),a.add(d),a.add(f),a.add(y),a.add(v),a.add(b),a.add(q),a.add(P),a}(a,i,l,s).clone()),g.position.y+=l/2+c,g.position.z+=s/2,a<i&&(g.position.x+=i/2-(i/2-a/2)),a>i&&(g.position.x+=a/2),a===i&&(g.position.x+=i/2),g.rotation.y+=Math.PI,a<i&&g.scale.set(i/m,s/f,l/y),a>i&&g.scale.set(a/m,s/f,l/y),a===i&&g.scale.set(a/m,s/f,l/y);let w=new r.LOD;if(w.addLevel(p,700),w.addLevel(g,1e3),w.updateMatrix(),w.matrixAutoUpdate=!1,e.selected){let e=new r.BoxHelper(w,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,w.add(e)}return Promise.resolve(w)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/deskoffice/white.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/deskoffice/wood.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/deskoffice/desk.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:16119028});t.a={name:"pannello_elettrico",prototype:"items",info:{tag:["furnishings","metal"],group:"Items",title:"electric panel",description:"electric panel",image:n(560)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:90,unit:"cm"}},depth:{label:"depth",type:"length-measure",defaultValue:{length:50,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:210,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.properties.get("width").get("length"),r=e.properties.get("depth").get("length"),i=e.rotation+90,s=0;return Math.sin(i*Math.PI/180)<0&&(s=180),a.a.createElement("g",{transform:`translate(${-o/2},${-r/2})`},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:o,height:r,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#ff0000"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(${o/2}, ${r/2}) scale(1,-1) rotate(${s})`,style:{textAnchor:"middle",fontSize:"11px"}},e.get("name")))},render3D:function(e,t,r){let a=e.properties.get("width").get("length"),s=e.properties.get("depth").get("length"),l=e.properties.get("height").get("length"),c=e.properties.get("altitude").get("length"),u=new o.Object3D,d=function(e,t,r){let a=new o.Mesh,s=(new o.TextureLoader).load(n(559)),l=new o.BoxGeometry(e,t,r),c=new o.Mesh(l,i);c.position.set(0,1,0),a.add(c);let u=new o.PlaneGeometry(e,t),d=new o.MeshLambertMaterial({map:s}),p=new o.Mesh(u,d);return p.position.set(0,1,25.5),c.add(p),a}(a,l,s);u.add(d.clone()),u.rotation.y=Math.PI,u.position.y+=l/2+c;let p=new o.Object3D,h=function(e,t,n){let r=new o.Mesh,a=new o.BoxGeometry(e,t,n),s=new o.Mesh(a,i);return s.position.set(0,1,0),r.add(s),r}(a,l,s);p.add(h.clone()),p.rotation.y=Math.PI,p.position.y+=l/2+c;let m=new o.LOD;if(m.addLevel(u,200),m.addLevel(p,900),m.updateMatrix(),m.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(m,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,m.add(e)}return Promise.resolve(m)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/electrical-panel/texturePanel.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/electrical-panel/electricalPanel.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:0}),s=new o.MeshLambertMaterial({color:16711680}),l=new o.MeshLambertMaterial({color:13421772}),c=new o.MeshLambertMaterial({color:16776960}),u=function(){const e=new o.CylinderGeometry(.1,.1,.5,32),t=new o.Mesh(e,s);t.position.set(0,1,0);const r=new o.CylinderGeometry(.11,.11,.03,32),a=new o.Mesh(r,i);a.position.set(0,-.2,0),t.add(a);const u=new o.SphereGeometry(.1,32,32),d=new o.Mesh(u,s);d.position.set(0,.25,0),t.add(d);const p=new o.CylinderGeometry(.015,.025,.05,32),h=new o.Mesh(p,i);h.position.z=-.13,h.position.y=-.23,t.add(h);const m=new o.CylinderGeometry(.01,.01,.02,32),f=new o.Mesh(m,l);f.position.z=-.13,f.position.y=-.2,t.add(f);const y=new o.CylinderGeometry(.015,.02,.04,32),g=new o.Mesh(y,i);g.position.set(0,.35,0),t.add(g);const w=new o.CylinderGeometry(.01,.01,.02,32),x=new o.Mesh(w,l);x.position.set(0,.38,0),t.add(x);const v=new o.CylinderGeometry(.005,.005,.02,32),M=new o.Mesh(v,l);M.position.set(-.01,.38,0),M.rotation.z+=Math.PI/2,t.add(M);const b=new o.CylinderGeometry(.02,.02,.01,32),E=new o.Mesh(b,l);E.position.set(-.02,.38,0),E.rotation.z+=Math.PI/2,t.add(E);const _=new o.TextureLoader,O=_.load(n(562)),T=new o.PlaneGeometry(.04,.04),I=new o.MeshLambertMaterial({map:O,transparent:!0}),q=new o.Mesh(T,I);q.position.set(-.0255,.38,0),q.rotation.y=-Math.PI/2,t.add(q);const P=new o.CylinderGeometry(.005,.005,.03,32),D=new o.Mesh(P,l);D.position.set(0,.38,-.01),D.rotation.z+=Math.PI/2,D.rotation.y+=Math.PI/2,t.add(D);const C=new o.CylinderGeometry(.01,.01,.02,32),S=new o.Mesh(C,l);S.position.set(0,.38,-.03),S.rotation.z+=Math.PI/2,S.rotation.y+=Math.PI/2,t.add(S);const G=_.load(n(563));G.wrapS=o.RepeatWrapping,G.wrapT=o.RepeatWrapping,G.repeat.set(1,1),G.offset.x=0,G.offset.y=0;const k=[new o.Vector2(.1,.666),new o.Vector2(.1,1)],L=new o.LatheGeometry(k,200,0,Math.PI),A=new o.MeshLambertMaterial({map:G}),R=new o.Mesh(L,A);R.rotation.y=60,R.position.y-=.75,t.add(R);const N=new o.Shape;N.moveTo(.02,.06),N.lineTo(.06,.07),N.lineTo(.08,.1),N.lineTo(.16,.1),N.lineTo(.18,.09),N.lineTo(.09,.08),N.lineTo(.07,.05),N.lineTo(.02,.04);const j=new o.ExtrudeGeometry(N,{steps:2,amount:.02,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),B=new o.MeshLambertMaterial({color:16711680}),z=new o.Mesh(j,B);z.rotation.y=-Math.PI/2,z.position.set(.01,.35,-.035),t.add(z);const V=new o.Shape;V.moveTo(.02,.06),V.lineTo(.04,.06),V.lineTo(.16,.05),V.lineTo(.18,.03),V.lineTo(.16,.04),V.lineTo(.02,.04);const U=new o.ExtrudeGeometry(V,{steps:2,amount:.016,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),F=new o.Mesh(U,s);F.rotation.y=-Math.PI/2,F.position.set(.01,.34,-.035),t.add(F);const W=new o.TorusGeometry(.0075,.00125,16,32,1200),H=new o.Mesh(W,c);H.rotation.x=-Math.PI/2,H.position.set(-.023,.41,.02),t.add(H);const $=new o.CylinderGeometry(.001,.001,.03,32),Y=new o.Mesh($,c);Y.position.set(0,.41,.02),Y.rotation.z+=Math.PI/2,t.add(Y);const K=new o.CylinderGeometry(.0025,.0025,.026,32),X=new o.Mesh(K,l);X.position.set(0,.4,0),X.rotation.z+=Math.PI/2,t.add(X);const Z=new o.CatmullRomCurve3([new o.Vector3(.5,0,0),new o.Vector3(.5,0,0),new o.Vector3(0,0,0),new o.Vector3(-.03,.105,0),new o.Vector3(-.03,.105,0)]),J=new o.TubeGeometry(Z,32,.008,16,!1),Q=new o.Mesh(J,i);return Q.position.set(0,.35,-.13),Q.rotation.y-=Math.PI/2,Q.rotation.z=Math.PI/2+4*Math.PI,Q.rotation.x+=Math.PI,t.add(Q),t}(),d=function(){let e=new o.CylinderGeometry(.1,.1,.5,8),t=new o.Mesh(e,s);t.position.set(0,1,0);let n=new o.CylinderGeometry(.11,.11,.03,8),r=new o.Mesh(n,i);r.position.set(0,-.2,0),t.add(r);let a=new o.SphereGeometry(.095,32,8),l=new o.Mesh(a,s);return l.position.set(0,.25,0),t.add(l),t}(),p=function(){let e=new o.CylinderGeometry(.1,.1,.475,6),t=new o.Mesh(e,s);return t.position.set(0,.95,0),t}();t.a={name:"fire-extinguisher",prototype:"items",info:{tag:["security"],group:"Items",title:"Fire extinguisher",description:"Fire extinguisher",image:n(564)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:100,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;Math.sin(o*Math.PI/180)<0&&(r=180);let i={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:`translate(-2,${-20/7.5})`},a.a.createElement("ellipse",{key:"1",cx:"0",cy:"0",rx:20,ry:15,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#ff0000"}}),a.a.createElement("line",{key:"2",x1:0,x2:0,y1:15,y2:30,style:i}),a.a.createElement("line",{key:"3",x1:-5.25,x2:0,y1:18,y2:30,style:i}),a.a.createElement("line",{key:"4",x1:0,x2:5.25,y1:30,y2:18,style:i}),a.a.createElement("text",{key:"5",cx:15,cy:15,transform:`translate(1.875, 0) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(u.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y);a.rotation.y+=-Math.PI/2,a.position.y+=-48+r,a.scale.set(15/s,15/s,60/l);let c=new o.Object3D;c.add(d.clone()),c.position.y+=-48+r,c.scale.set(15/s,15/s,60/l);let h=new o.Object3D;h.add(p.clone()),h.position.y+=-60/1.35+r,h.scale.set(15/s,15/s,60/l);let m=new o.LOD;if(m.addLevel(a,200),m.addLevel(c,900),m.addLevel(h,1200),m.updateMatrix(),m.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(m,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,m.add(e)}return Promise.resolve(m)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/fire-extinguisher/gage-image.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/fire-extinguisher/label-image.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/fire-extinguisher/fire-extinguisher.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.TextureLoader,s=i.load(n(566)),l=i.load(n(567)),c=new o.MeshLambertMaterial({map:s}),u=new o.MeshLambertMaterial({map:l}),d=function(){let e=new o.Mesh,t=new o.Mesh(new o.BoxGeometry(1,.05,1),u);t.position.set(0,.15,0),e.add(t);for(let e=-.45;e<=.45;e+=.9)for(let n=-.45;n<=.45;n+=.9){let r=new o.Mesh(new o.CylinderGeometry(.05,.05,.05,4),u);r.position.set(e,-.05,n),r.rotation.y=.25*Math.PI,t.add(r)}let n=new o.Mesh(new o.BoxGeometry(.05,1.8,1),u);n.position.set(.475,.925,0),t.add(n);let r=new o.Mesh(new o.BoxGeometry(1,1.8,.05),u);r.position.set(0,.925,.475),t.add(r);let a=new o.Mesh(new o.BoxGeometry(1,1.8,.05),u);a.position.set(0,.925,-.475),t.add(a);let i=new o.Mesh(new o.BoxGeometry(1,.2,1),u);i.position.set(0,1.85,0),t.add(i);let s=new o.Mesh(new o.PlaneGeometry(.2,.1),c);s.position.set(-.51,1.85,0),s.rotation.y=-.5*Math.PI,t.add(s);let l=new o.Mesh(new o.BoxGeometry(.05,.9,.95),u);l.position.set(-.5,1.3,0),t.add(l);let d=new o.Mesh(new o.BoxGeometry(.05,.8,.95),u);d.position.set(-.5,.425,0),t.add(d);let p=new o.Mesh(new o.BoxGeometry(1,.05,1),u);p.position.set(0,.845,0),t.add(p);let h=new o.Mesh(new o.CylinderGeometry(.02,.02,.8),u);h.position.set(-.56,1.3,-.4),t.add(h);let m=new o.Mesh(new o.CylinderGeometry(.02,.02,.06),u);m.position.set(-.53,1.6,-.4),m.rotation.z=.5*Math.PI,t.add(m);let f=new o.Mesh(new o.CylinderGeometry(.02,.02,.06),u);f.position.set(-.53,1,-.4),f.rotation.z=.5*Math.PI,t.add(f);let y=new o.Mesh(new o.CylinderGeometry(.02,.02,.7),u);y.position.set(-.56,.425,-.4),t.add(y);let g=new o.Mesh(new o.CylinderGeometry(.02,.02,.06),u);g.position.set(-.53,.7,-.4),g.rotation.z=.5*Math.PI,t.add(g);let w=new o.Mesh(new o.CylinderGeometry(.02,.02,.06),u);return w.position.set(-.53,.15,-.4),w.rotation.z=.5*Math.PI,t.add(w),e}(),p=function(){let e=new o.Mesh,t=new o.Mesh(new o.BoxGeometry(1,.05,1),u);t.position.set(0,.15,0),e.add(t);for(let e=-.45;e<=.45;e+=.9)for(let n=-.45;n<=.45;n+=.9){let r=new o.Mesh(new o.CylinderGeometry(.05,.05,.05,4),u);r.position.set(e,-.05,n),r.rotation.y=.25*Math.PI,t.add(r)}let n=new o.Mesh(new o.BoxGeometry(.05,1.8,1),u);n.position.set(.475,.925,0),t.add(n);let r=new o.Mesh(new o.BoxGeometry(1,1.8,.05),u);r.position.set(0,.925,.475),t.add(r);let a=new o.Mesh(new o.BoxGeometry(1,1.8,.05),u);a.position.set(0,.925,-.475),t.add(a);let i=new o.Mesh(new o.BoxGeometry(1,.2,1),u);i.position.set(0,1.85,0),t.add(i);let s=new o.Mesh(new o.PlaneGeometry(.2,.1),c);s.position.set(-.51,1.85,0),s.rotation.y=-.5*Math.PI,t.add(s);let l=new o.Mesh(new o.BoxGeometry(.05,.9,.95),u);l.position.set(-.5,1.3,0),t.add(l);let d=new o.Mesh(new o.BoxGeometry(.05,.8,.95),u);d.position.set(-.5,.425,0),t.add(d);let p=new o.Mesh(new o.BoxGeometry(1,.05,1),u);p.position.set(0,.845,0),t.add(p);let h=new o.Mesh(new o.CylinderGeometry(.02,.02,.8),u);h.position.set(-.56,1.3,-.4),t.add(h);let m=new o.Mesh(new o.CylinderGeometry(.02,.02,.06),u);m.position.set(-.53,1.6,-.4),m.rotation.z=.5*Math.PI,t.add(m);let f=new o.Mesh(new o.CylinderGeometry(.02,.02,.06),u);f.position.set(-.53,1,-.4),f.rotation.z=.5*Math.PI,t.add(f);let y=new o.Mesh(new o.CylinderGeometry(.02,.02,.7),u);y.position.set(-.56,.425,-.4),t.add(y);let g=new o.Mesh(new o.CylinderGeometry(.02,.02,.06),u);g.position.set(-.53,.7,-.4),g.rotation.z=.5*Math.PI,t.add(g);let w=new o.Mesh(new o.CylinderGeometry(.02,.02,.06),u);return w.position.set(-.53,.15,-.4),w.rotation.z=.5*Math.PI,t.add(w),e}();t.a={name:"fridge",prototype:"items",info:{tag:["furnishings","metal"],group:"Items",title:"fridge",description:"fridge",image:n(568)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-40,-40)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:80,height:80,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(40, 40) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(d.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);a.position.y+=r,a.scale.set(80/s,180/l,80/c);let u=new o.Object3D;u.add(p.clone()),u.position.y+=r,u.scale.set(80/s,180/l,80/c);let h=new o.LOD;if(h.addLevel(a,200),h.addLevel(u,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/fridge/logo.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/fridge/steel.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/fridge/fridge.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:4934475}),s=new o.MeshLambertMaterial({color:12632256}),l=new o.MeshLambertMaterial({color:3381759,transparent:!0,opacity:.8}),c=function(){let e=new o.Mesh,t=new o.CylinderGeometry(.09,.25,.08,20,2,!0);i.side=o.DoubleSide;let n=new o.Mesh(t,i);n.position.set(0,.04,0);let r=new o.CylinderGeometry(.09,.01,.03,20,2,!0),a=new o.Mesh(r,i);a.position.set(0,.065,0);let c=new o.CylinderGeometry(.03,.03,2,32,32),u=new o.Mesh(c,s);u.position.set(0,1,0);let d=new o.TorusGeometry(.045,.02,32,32),p=new o.Mesh(d,l);p.rotation.x=Math.PI/2,p.position.set(0,.7,0);let h=new o.TorusGeometry(.06,.015,32,32),m=[];for(let e=0;e<4;e++)m[e]=new o.Mesh(h,l),m[e].rotation.x=Math.PI/2,m[e].position.y=.7;m[0].position.x=.1,m[1].position.z=.1,m[2].position.x=-.1,m[3].position.z=-.1;let f=new o.CylinderGeometry(.015,.015,.17,32,32),y=new o.CylinderGeometry(.05,.05,.02,32,32),g=[];for(let e=0;e<8;e++){g[e]=new o.Object3D,g[e].rotation.x=Math.PI/2,g[e].position.set(0,1.7,0);let t=new o.Mesh(f,s);g[e].add(t);let n=new o.Mesh(y,l);t.add(n),n.position.y=.085,g[e].rotation.z=45*e*Math.PI/180,t.position.y=.115,e%2==1&&(g[e].position.y+=.2)}e.add(n),e.add(a),e.add(u),e.add(p);for(let t=0;t<4;t++)e.add(m[t]);for(let t=0;t<8;t++)e.add(g[t]);return e}(),u=function(){let e=new o.Mesh,t=new o.CylinderGeometry(.09,.25,.08,20,2,!0);i.side=o.DoubleSide;let n=new o.Mesh(t,i);n.position.set(0,.04,0);let r=new o.CylinderGeometry(.09,.01,.03,20,2,!0),a=new o.Mesh(r,i);a.position.set(0,.065,0);let l=new o.CylinderGeometry(.03,.03,2,8,8),c=new o.Mesh(l,s);c.position.set(0,1,0);let u=new o.TorusGeometry(.045,.02,8,8),d=new o.MeshLambertMaterial({color:3381759,transparent:!0,opacity:.8}),p=new o.Mesh(u,d);p.rotation.x=Math.PI/2,p.position.set(0,.7,0);let h=new o.TorusGeometry(.06,.015,8,8),m=[];for(let e=0;e<4;e++)m[e]=new o.Mesh(h,d),m[e].rotation.x=Math.PI/2,m[e].position.y=.7;m[0].position.x=.1,m[1].position.z=.1,m[2].position.x=-.1,m[3].position.z=-.1;let f=new o.CylinderGeometry(.015,.015,.17,8,8),y=new o.CylinderGeometry(.05,.05,.02,8,8),g=[];for(let e=0;e<8;e++){g[e]=new o.Object3D,g[e].rotation.x=Math.PI/2,g[e].position.set(0,1.7,0);let t=new o.Mesh(f,s);g[e].add(t);let n=new o.Mesh(y,d);t.add(n),n.position.y=.085,g[e].rotation.z=45*e*Math.PI/180,t.position.y=.115,e%2==1&&(g[e].position.y+=.2)}e.add(n),e.add(a),e.add(c),e.add(p);for(let t=0;t<4;t++)e.add(m[t]);for(let t=0;t<8;t++)e.add(g[t]);return e}();t.a={name:"hanger",prototype:"items",info:{tag:["furnishings","metallo","plastic"],group:"Items",title:"hanger",description:"hanger",image:n(570)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-25,-25)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:50,height:50,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(25, 25) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(c.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),d=Math.abs(i.max.z-i.min.z);a.position.y+=r,a.scale.set(50/s,180/l,50/d);let p=new o.Object3D;p.add(u.clone()),p.position.y+=r,p.scale.set(50/s,180/l,50/d);let h=new o.LOD;if(h.addLevel(a,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/hanger/hanger.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:6646124});let s=(new o.TextureLoader).load(n(572));t.a={name:"hiroos",prototype:"items",info:{tag:["furnishings","metal"],group:"Items",title:"hiroos",description:"hiroos",image:n(573)},properties:{patternColor:{label:"pattern colori",type:"color",defaultValue:"#f5f4f4"},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.selected?"#99c3fb":e.properties.get("patternColor"),r=e.rotation+90,i=0;return Math.sin(r*Math.PI/180)<0&&(i=180),a.a.createElement("g",{transform:"translate(-87.5,-42.5)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:175,height:85,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:o}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(87.5, 42.5) scale(1,-1) rotate(${i})`,style:{textAnchor:"middle",fontSize:"11px"}},e.get("name")))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D,l=function(e,t,n){let r,a=new o.Mesh;r=s;let l=new o.BoxGeometry(e,t,n),c=new o.Mesh(l,i);c.position.set(0,1,0),a.add(c);let u=new o.PlaneGeometry(e,t),d=new o.MeshLambertMaterial({map:r}),p=new o.Mesh(u,d);return p.position.set(0,1,n/1.95),a.add(p),a}(175,195,85);a.add(l.clone()),a.rotation.y=Math.PI,a.position.y+=97.5+r;let c=new o.Object3D,u=function(e,t,n){let r=new o.Mesh,a=new o.BoxGeometry(e,t,n),s=new o.Mesh(a,i);return s.position.set(0,1,0),r.add(s),r}(175,195,85);c.add(u.clone()),c.rotation.y=Math.PI,c.position.y+=97.5+r;let d=new o.LOD;if(d.addLevel(a,100),d.addLevel(c,1800),d.updateMatrix(),d.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(d,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,d.add(e)}return Promise.resolve(d)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/hiroos/hiroosTexture.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/hiroos/hiroos.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=(new o.TextureLoader).load(n(575)),s=new o.MeshLambertMaterial({color:4013373});t.a={name:"hub",prototype:"items",info:{tag:["furnishings","metal"],group:"Items",title:"hub",description:"hub",image:n(576)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:60,unit:"cm"}},depth:{label:"depth",type:"length-measure",defaultValue:{length:30,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:200,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.properties.get("width").get("length"),r=e.properties.get("depth").get("length"),i=e.rotation+90,s=0;return Math.sin(i*Math.PI/180)<0&&(s=180),a.a.createElement("g",{transform:`translate(${-o/2},${-r/2})`},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:o,height:r,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(${o/2}, ${r/2}) scale(1,-1) rotate(${s})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("width").get("length"),a=e.properties.get("depth").get("length"),l=e.properties.get("height").get("length"),c=e.properties.get("altitude").get("length"),u=new o.Object3D;u.add(function(e,t,n){let r=new o.Mesh,a=new o.BoxGeometry(e,t,n),l=new o.Mesh(a,s);l.position.set(0,1,0),r.add(l);for(let r=-t/2+t/32;r<t/2;r+=t/16){let a=new o.PlaneGeometry(e,t/16),s=new o.MeshLambertMaterial({map:i}),c=new o.Mesh(a,s);c.position.set(0,r,n/3+n/5.9),l.add(c)}return r}(r,l,a).clone());let d=(new o.Box3).setFromObject(u),p=Math.abs(d.max.x-d.min.x),h=Math.abs(d.max.y-d.min.y),m=Math.abs(d.max.z-d.min.z);u.position.y+=l/2+c,u.scale.set(r/p,l/h,a/m);let f=new o.Object3D;f.add(function(e,t,n){let r=new o.Mesh,a=new o.BoxGeometry(e,t,n),i=new o.Mesh(a,s);return i.position.set(0,1,0),r.add(i),r}(r,l,a).clone()),f.position.y+=l/2+c,f.scale.set(r/p,l/h,a/m);let y=new o.LOD;if(y.addLevel(u,200),y.addLevel(f,900),y.updateMatrix(),y.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(y,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,y.add(e)}return Promise.resolve(y)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/hub/front.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/hub/hub.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r),i=n(578);t.a={name:"image",prototype:"items",info:{title:"image",tag:["image"],group:"Items",description:"Image",image:n(579)},properties:{imageUri:{label:"Image URI",type:"string",defaultValue:""},x1:{label:"x1",type:"number",defaultValue:0},y1:{label:"y1",type:"number",defaultValue:0},x2:{label:"x2",type:"number",defaultValue:100},y2:{label:"y2",type:"number",defaultValue:0},distance:{label:"Distance",type:"length-measure",defaultValue:{length:100}},width:{label:"Width",type:"number",defaultValue:600},height:{label:"Height",type:"number",defaultValue:400}},render2D:function(e,t,n){let{x1:o,y1:r,x2:s,y2:l,distance:c,width:u,height:d,imageUri:p}=e.properties.toJS();return a.a.createElement(i.a,{imageUri:p,element:e,distance:c,x1:o,x2:s,y1:r,y2:l,width:u,height:d,layer:t,scene:n})},render3D:function(e,t,n){return Promise.resolve(new o.Object3D)}}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),a=n(2),i=n.n(a),s=n(30),l=(n.n(s),n(8));n.n(l);const c={cursor:"grab",fill:"#f45c42",transition:"r 150ms ease-in"},u={cursor:"grab",fill:"#ff9900",transition:"r 150ms ease-in"},d=(e,t,n,o)=>isNaN(e)||isNaN(t)||isNaN(n)||isNaN(o)||0==e&&0==t&&0==n&&0==o?0:Math.sqrt(Math.pow(e-n,2)+Math.pow(t-o,2));class p extends o.Component{constructor(e){super(e),this.state={handleMouseMove1:!1,handleMouseMove2:!1,hover1:!1,hover2:!1,imageLoadError:!1},this.onMouseDown=this.onMouseDown.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.toggleHover1=this.toggleHover1.bind(this),this.toggleHover2=this.toggleHover2.bind(this)}onMouseDown(e){let t=e.viewerEvent.originalEvent.target;"circle"===t.nodeName&&t.attributes.name&&("fst-anchor"===t.attributes.name.nodeValue?this.setState({handleMouseMove1:!this.state.handleMouseMove1}):"snd-anchor"===t.attributes.name.nodeValue&&this.setState({handleMouseMove2:!this.state.handleMouseMove2}))}onMouseMove(e){let{x:t,y:n}=e.viewerEvent;n=this.props.scene.height-n;let o=d(this.props.x1,this.props.y1,this.props.x2,this.props.y2),r=!isNaN(o)&&o?this.props.distance.length/o:0,a={x:this.props.element.x-this.props.width*r/2,y:this.props.element.y+this.props.height*r/2},i=a.x+this.props.width*r,s=a.y-this.props.height*r;t<a.x?t=a.x:t>i&&(t=i),n>a.y?n=a.y:n<s&&(n=s);let c=t-a.x,u=a.y-n;if(this.state.handleMouseMove1){let e=d(c,u,this.props.x2,this.props.y2);this.context.projectActions.setProperties({x1:c,y1:u,distance:new l.Map({length:e})})}else if(this.state.handleMouseMove2){let e=d(this.props.x1,this.props.y1,c,u);this.context.projectActions.setProperties({x2:c,y2:u,distance:new l.Map({length:e})})}}componentDidMount(){if(document.addEventListener("mousedown-planner-event",this.onMouseDown),document.addEventListener("mousemove-planner-event",this.onMouseMove),this.props.imageUri){let e=new Image;e.src=this.props.imageUri,e.onload=(()=>{this.setState({imageLoadError:!1}),this.context.projectActions.setProperties({width:e.naturalWidth,height:e.naturalHeight})}),e.onerror=(()=>{this.setState({imageLoadError:!0})})}}componentWillUnmount(){document.removeEventListener("mousedown-planner-event",this.onMouseDown),document.removeEventListener("mousemove-planner-event",this.onMouseMove)}componentWillReceiveProps(e){if(this.props.imageUri!==e.imageUri){let t=new Image;t.src=e.imageUri,t.onload=(()=>{this.setState({imageLoadError:!1}),this.context.projectActions.setProperties({width:t.naturalWidth,height:t.naturalHeight})}),t.onerror=(()=>{this.setState({imageLoadError:!0})})}}toggleHover1(e){this.setState({hover1:!this.state.hover1})}toggleHover2(e){this.setState({hover2:!this.state.hover2})}render(){let e=d(this.props.x1,this.props.y1,this.props.x2,this.props.y2),t=!isNaN(e)&&e?this.props.distance.length/e:0,n=this.props.width/2,o=this.props.element.selected?r.a.createElement("g",null,r.a.createElement("line",{key:"1",x1:this.props.x1,y1:this.props.y1,x2:this.props.x2,y2:this.props.y2,stroke:"#f45c42",strokeWidth:"3px"}),r.a.createElement("circle",{onMouseEnter:this.toggleHover1,onMouseLeave:this.toggleHover1,key:"2",name:"fst-anchor",cx:this.props.x1,cy:this.props.y1,r:this.state.hover1||this.state.handleMouseMove1?14:10,style:this.state.hover1||this.state.handleMouseMove1?u:c}),r.a.createElement("circle",{onMouseEnter:this.toggleHover2,onMouseLeave:this.toggleHover2,key:"3",name:"snd-anchor",cx:this.props.x2,cy:this.props.y2,r:this.state.hover2||this.state.handleMouseMove2?14:10,style:this.state.hover2||this.state.handleMouseMove2?u:c})):null;return r.a.createElement("g",{transform:`scale(${t}, ${t}), scale(1,-1) translate(${-this.props.width/2}, ${-this.props.height/2})`},this.props.imageUri&&!this.state.imageLoadError?r.a.createElement("image",{xlinkHref:this.props.imageUri,x:"0",y:"0",width:this.props.width,height:this.props.height}):r.a.createElement("g",null,r.a.createElement("rect",{x:"0",y:"0",width:this.props.width,height:this.props.height,fill:"#CCC"}),r.a.createElement("text",{x:n,y:this.props.height/2,textAnchor:"middle",alignmentBaseline:"central",fontFamily:"Arial",fontSize:"35",fill:"#666"},r.a.createElement("tspan",{x:n,dy:"-2em"},"Set the image url on the component"),r.a.createElement("tspan",{x:n,dy:"1em"},"property inside the sidebar,"),r.a.createElement("tspan",{x:n,dy:"1em"},"click and move each vertex"),r.a.createElement("tspan",{x:n,dy:"1em"},"of the ruler then set the real distance"),r.a.createElement("tspan",{x:n,dy:"1em"},"in the component property"))),o)}}t.a=p,p.propTypes={element:i.a.object.isRequired,x1:i.a.number.isRequired,y1:i.a.number.isRequired,x2:i.a.number.isRequired,y2:i.a.number.isRequired,distance:i.a.object.isRequired,width:i.a.number.isRequired,height:i.a.number.isRequired,imageUri:i.a.string.isRequired,layer:i.a.object.isRequired,scene:i.a.object.isRequired},p.contextTypes={projectActions:i.a.object.isRequired,catalog:i.a.object.isRequired,translator:i.a.object.isRequired}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/image/image.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);let i=new o.TextureLoader,s=i.load(n(581)),l=i.load(n(582)),c=i.load(n(583)),u=new o.MeshLambertMaterial({map:s}),d=new o.MeshLambertMaterial({map:l}),p=new o.MeshLambertMaterial({map:c});const h=function(){let e=new o.Mesh,t=new o.Mesh(new o.BoxGeometry(1,.05,1.5),u);t.position.set(0,.15,0),e.add(t);for(let e=-.45;e<=.45;e+=.9)for(let n=-.7125;n<=.7125;n+=1.425){let r=new o.Mesh(new o.CylinderGeometry(.05,.05,.05,4),u);r.position.set(e,-.05,n),r.rotation.y=.25*Math.PI,t.add(r)}let n=new o.Mesh(new o.BoxGeometry(.05,1,1.5),u);n.position.set(.475,.525,0),t.add(n);let r=new o.Mesh(new o.BoxGeometry(1,1,.05),u);r.position.set(0,.525,.725),t.add(r);let a=new o.Mesh(new o.BoxGeometry(1,1,.05),u);a.position.set(0,.525,-.725),t.add(a);let i=new o.Mesh(new o.BoxGeometry(1,.2,1.5),u);i.position.set(0,1.1,0),t.add(i);let s=new o.Mesh(new o.PlaneGeometry(.1,.05),p);s.position.set(-.51,1.13,0),s.rotation.y=-.5*Math.PI,t.add(s);let l=new o.Mesh(new o.BoxGeometry(.05,.99,1.4),u);l.position.set(-.47,.525,0),t.add(l);let c=new o.Mesh(new o.BoxGeometry(.05,.9,1.3),u);c.position.set(-.53,.525,0),t.add(c);let h=new o.Mesh(new o.CylinderGeometry(.02,.02,1),d);h.position.set(-.6,.85,0),h.rotation.x=.5*Math.PI,t.add(h);let m=new o.Mesh(new o.CylinderGeometry(.02,.02,.06),d);m.position.set(-.56,.85,-.4),m.rotation.z=.5*Math.PI,t.add(m);let f=new o.Mesh(new o.CylinderGeometry(.02,.02,.06),d);f.position.set(-.56,.85,.4),f.rotation.z=.5*Math.PI,t.add(f);for(let e=-.6;e<=.65;e+=.3){let n=new o.Mesh(new o.CylinderGeometry(.03,.03,.02,32),d);n.position.set(-.51,1.05,e),n.rotation.z=.5*Math.PI,t.add(n);let r=new o.Mesh(new o.BoxGeometry(.05,.03,.01),d);r.position.set(0,.02,0),n.add(r)}for(let e=-.22;e<=.22;e+=.44)for(let n=-.45;n<=.45;n+=.9){let r=new o.Mesh(new o.CylinderGeometry(.08,.1,.02,32),d);r.position.set(e,1.21,n),t.add(r)}let y=new o.Mesh(new o.CylinderGeometry(.1,.12,.02,32),d);y.position.set(0,1.21,0),t.add(y);for(let e=-.45;e<=.45;e+=.45)if(0!==e){let n=new o.Mesh(new o.BoxGeometry(.03,.05,1.38),d);n.position.set(e,1.21,0),t.add(n)}else for(let n=-.46;n<=.68;n+=.9){let r=new o.Mesh(new o.BoxGeometry(.03,.05,.46),d);r.position.set(e,1.21,n),t.add(r)}for(let e=-.675;e<=.675;e+=.45){let n=new o.Mesh(new o.BoxGeometry(.9,.05,.03),d);n.position.set(0,1.21,e),t.add(n)}for(let e=-.22;e<=.22;e+=.44){for(let n=-.59;n<=.68;n+=.9){let r=new o.Mesh(new o.BoxGeometry(.03,.01,.2),d);r.position.set(e,1.24,n),t.add(r)}for(let n=.59;n>=-.68;n-=.9){let r=new o.Mesh(new o.BoxGeometry(.03,.01,.2),d);r.position.set(e,1.24,n),t.add(r)}}for(let e=-.365;e<=.345;e+=.7)for(let n=-.45;n<=.45;n+=.45)if(0!==n){let r=new o.Mesh(new o.BoxGeometry(.2,.02,.03),d);e<0?r.position.set(e,1.24,n):r.position.set(e+.03,1.24,n),t.add(r)}else{let r=new o.Mesh(new o.BoxGeometry(.4,.02,.03),d);e<0?r.position.set(e+.1,1.24,n):r.position.set(e-.07,1.24,n),t.add(r)}for(let e=-.45;e<=.45;e+=.9){let n=new o.Mesh(new o.BoxGeometry(.35,.02,.03),d);n.position.set(0,1.24,e),t.add(n)}for(let e=-.14;e<=.14;e+=.28){let n=new o.Mesh(new o.BoxGeometry(.03,.02,.2),d);n.position.set(0,1.25,e),t.add(n)}return e}(),m=function(){let e=new o.Mesh,t=new o.Mesh(new o.BoxGeometry(1,.05,1.5),u);t.position.set(0,.15,0),e.add(t);for(let e=-.45;e<=.45;e+=.9)for(let n=-.7125;n<=.7125;n+=1.425){let r=new o.Mesh(new o.CylinderGeometry(.05,.05,.05,4),u);r.position.set(e,-.05,n),r.rotation.y=.25*Math.PI,t.add(r)}let n=new o.Mesh(new o.BoxGeometry(.05,1,1.5),u);n.position.set(.475,.525,0),t.add(n);let r=new o.Mesh(new o.BoxGeometry(1,1,.05),u);r.position.set(0,.525,.725),t.add(r);let a=new o.Mesh(new o.BoxGeometry(1,1,.05),u);a.position.set(0,.525,-.725),t.add(a);let i=new o.Mesh(new o.BoxGeometry(1,.2,1.5),u);i.position.set(0,1.1,0),t.add(i);let s=new o.Mesh(new o.PlaneGeometry(.1,.05),p);s.position.set(-.51,1.13,0),s.rotation.y=-.5*Math.PI,t.add(s);let l=new o.Mesh(new o.BoxGeometry(.05,.99,1.4),u);l.position.set(-.47,.525,0),t.add(l);let c=new o.Mesh(new o.BoxGeometry(.05,.9,1.3),u);c.position.set(-.53,.525,0),t.add(c);let h=new o.Mesh(new o.CylinderGeometry(.02,.02,1),d);h.position.set(-.6,.85,0),h.rotation.x=.5*Math.PI,t.add(h);let m=new o.Mesh(new o.CylinderGeometry(.02,.02,.06),d);m.position.set(-.56,.85,-.4),m.rotation.z=.5*Math.PI,t.add(m);let f=new o.Mesh(new o.CylinderGeometry(.02,.02,.06),d);f.position.set(-.56,.85,.4),f.rotation.z=.5*Math.PI,t.add(f);for(let e=-.6;e<=.65;e+=.3){let n=new o.Mesh(new o.CylinderGeometry(.03,.03,.02,32),d);n.position.set(-.51,1.05,e),n.rotation.z=.5*Math.PI,t.add(n);let r=new o.Mesh(new o.BoxGeometry(.05,.03,.01),d);r.position.set(0,.02,0),n.add(r)}for(let e=-.22;e<=.22;e+=.44)for(let n=-.45;n<=.45;n+=.9){let r=new o.Mesh(new o.CylinderGeometry(.08,.1,.02,32),d);r.position.set(e,1.21,n),t.add(r)}let y=new o.Mesh(new o.CylinderGeometry(.1,.12,.02,32),d);y.position.set(0,1.21,0),t.add(y);for(let e=-.45;e<=.45;e+=.45)if(0!==e){let n=new o.Mesh(new o.BoxGeometry(.03,.05,1.38),d);n.position.set(e,1.21,0),t.add(n)}else for(let n=-.46;n<=.68;n+=.9){let r=new o.Mesh(new o.BoxGeometry(.03,.05,.46),d);r.position.set(e,1.21,n),t.add(r)}for(let e=-.675;e<=.675;e+=.45){let n=new o.Mesh(new o.BoxGeometry(.9,.05,.03),d);n.position.set(0,1.21,e),t.add(n)}for(let e=-.22;e<=.22;e+=.44){for(let n=-.59;n<=.68;n+=.9){let r=new o.Mesh(new o.BoxGeometry(.03,.01,.2),d);r.position.set(e,1.24,n),t.add(r)}for(let n=.59;n>=-.68;n-=.9){let r=new o.Mesh(new o.BoxGeometry(.03,.01,.2),d);r.position.set(e,1.24,n),t.add(r)}}for(let e=-.365;e<=.345;e+=.7)for(let n=-.45;n<=.45;n+=.45)if(0!==n){let r=new o.Mesh(new o.BoxGeometry(.2,.02,.03),d);e<0?r.position.set(e,1.24,n):r.position.set(e+.03,1.24,n),t.add(r)}else{let r=new o.Mesh(new o.BoxGeometry(.4,.02,.03),d);e<0?r.position.set(e+.1,1.24,n):r.position.set(e-.07,1.24,n),t.add(r)}for(let e=-.45;e<=.45;e+=.9){let n=new o.Mesh(new o.BoxGeometry(.35,.02,.03),d);n.position.set(0,1.24,e),t.add(n)}for(let e=-.14;e<=.14;e+=.28){let n=new o.Mesh(new o.BoxGeometry(.03,.02,.2),d);n.position.set(0,1.25,e),t.add(n)}return e}();t.a={name:"kitchen",prototype:"items",info:{tag:["furnishings","metal"],group:"Items",title:"kitchen",description:"kitchen",image:n(584)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-40,-50)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:80,height:100,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(40, 50) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(h.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);a.position.y+=r,a.scale.set(80/s,80/l,100/c);let u=new o.Object3D;u.add(m.clone()),u.position.y+=r,u.scale.set(80/s,80/l,100/c);let d=new o.LOD;if(d.addLevel(a,200),d.addLevel(u,900),d.updateMatrix(),d.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(d,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,d.add(e)}return Promise.resolve(d)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/kitchen/steel.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/kitchen/darksteel.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/kitchen/logo.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/kitchen/kitchen.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:16777215}),s=new o.MeshLambertMaterial({color:14540253}),l=new o.MeshLambertMaterial({color:4277321});t.a={name:"multimedia chalkboard",prototype:"items",info:{tag:["furnishings","wood","metal"],group:"items",title:"multimedia chalkboard",description:"multimedia chalkboard",image:n(586)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:100,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;Math.sin(o*Math.PI/180)<0&&(r=180);let i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:"translate(-100,-30)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:200,height:60,style:i}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(100, 30) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,r){let a=e.properties.get("altitude").get("length"),c=new o.Object3D,u=new o.Shape;u.moveTo(0,.25),u.lineTo(0,3.75),u.quadraticCurveTo(0,4,.25,4),u.lineTo(4.75,4),u.quadraticCurveTo(5,4,5,3.75),u.lineTo(5,.25),u.quadraticCurveTo(5,0,4.75,0),u.lineTo(.25,0),u.quadraticCurveTo(0,0,0,.25);let d=new o.ExtrudeGeometry(u,{steps:1,amount:.003125,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1}),p=new o.Mesh(d,s);p.position.set(0,1.2,0),c.add(p);let h=new o.BoxGeometry(5-5/11,3.5,.003125),m=new o.Mesh(h,i);m.position.set(2.5,3.2,.00125),c.add(m);let f=new o.Shape;f.moveTo(0,.125),f.lineTo(0,.475),f.quadraticCurveTo(0,.6,.125,.6),f.lineTo(.875,.6),f.quadraticCurveTo(1,.6,1,.475),f.lineTo(1,.125),f.quadraticCurveTo(1,0,.875,0),f.lineTo(.125,0),f.quadraticCurveTo(0,0,0,.125);let y=(new o.TextureLoader).load(n(587)),g=new o.PlaneGeometry(4,3),w=new o.MeshLambertMaterial({map:y,transparent:!0}),x=new o.Mesh(g,w);x.position.set(2.5,3.1,-5e-4),x.rotation.y+=Math.PI,c.add(x);let v=new o.ExtrudeGeometry(f,{steps:1,amount:.003125,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1}),M=new o.Mesh(v,s);M.position.set(2,5.35,0),c.add(M);let b=new o.Shape;b.moveTo(0,.125),b.lineTo(0,.125),b.quadraticCurveTo(0,.25,.125,.25),b.lineTo(.325,.25),b.quadraticCurveTo(.45,.25,.45,.125),b.lineTo(.45,.125),b.quadraticCurveTo(.45,0,.325,0),b.lineTo(.125,0),b.quadraticCurveTo(0,0,0,.125);let E=new o.ExtrudeGeometry(b,{steps:1,amount:.0125,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1}),_=new o.Mesh(E,l);_.position.set(2.5-5/24,5.45,-.0125),c.add(_);let O=new o.Shape;O.moveTo(0,.1),O.lineTo(0,.1),O.quadraticCurveTo(0,.2,.1,.2),O.lineTo(.4-.1,.2),O.quadraticCurveTo(.4,.2,.4,.1),O.lineTo(.4,.1),O.quadraticCurveTo(.4,0,.4-.1,0),O.lineTo(.1,0),O.quadraticCurveTo(0,0,0,.1);let T=new o.ExtrudeGeometry(O,{steps:1,amount:.0125,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1}),I=new o.Mesh(T,l);I.position.set(2.5-5/27,5.5,-.02),c.add(I);let q=new o.CylinderGeometry(.025,.035,.1,32,32,!1,0,2*Math.PI),P=new o.Mesh(q,l);P.position.set(2.5-5/1024,5.45,-.018),P.rotation.y+=Math.PI/2,P.scale.set(.05,1,4),c.add(P);let D=new o.Shape;D.moveTo(0,0),D.lineTo(.4,0),D.lineTo(.4,.2),D.lineTo(0,.2);let C=new o.ExtrudeGeometry(D,{steps:1,amount:.01,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1}),S=new o.Mesh(C,l);S.position.set(2.5-5/24.45,5.2,-.0225),c.add(S);let G=new o.CylinderGeometry(.029,.029,.4,32,32,!1,0,2*Math.PI),k=new o.Mesh(G,l);k.position.set(2.5-5/1024,5.2,-.021),k.rotation.y+=Math.PI,k.rotation.x+=Math.PI/2,k.rotation.z+=Math.PI/2,k.scale.set(.05,1,4),c.add(k);let L=(new o.Box3).setFromObject(c),A=Math.abs(L.max.x-L.min.x),R=Math.abs(L.max.y-L.min.y),N=Math.abs(L.max.z-L.min.z);if(e.selected){let e=new o.BoxHelper(c,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,c.add(e)}return c.rotation.y+=Math.PI,c.position.y+=-46.875+a,c.position.x+=100,c.position.z+=-60/3.5,c.scale.set(200/A,150/R,60/N),Promise.resolve(c)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/lim/lim.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/lim/example_lim.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:10922413}),s=new o.MeshLambertMaterial({color:4146511}),l=new o.MeshLambertMaterial({color:16711680}),c=function(){let e=new o.Mesh,t=new o.TextureLoader,r=t.load(n(589)),a=t.load(n(590)),c=new o.BoxGeometry(.72,.2,.4),u=new o.Mesh(c,i);u.position.set(0,2,0),e.add(u);for(let t=-.2;t<=.2;t+=.4){let n=new o.BoxGeometry(.72,.03,.03),r=new o.Mesh(n,s);r.position.set(0,1.9,t),e.add(r);let a=new o.Mesh(n,s);a.position.set(0,2.1,t),e.add(a)}let d=new o.BoxGeometry(.08,2.3,.6),p=new o.Mesh(d,i);p.position.set(-.4,1,0),e.add(p);let h=new o.Mesh(d,i);h.position.set(.4,1,0),e.add(h);for(let t=-.165;t<=2.2;t+=2.32){let n=new o.BoxGeometry(.09,.03,.68),r=new o.Mesh(n,s);r.position.set(-.4,t,0),e.add(r);let a=new o.Mesh(n,s);a.position.set(.4,t,0),e.add(a)}for(let t=-.3;t<=.3;t+=.6){let n=new o.BoxGeometry(.09,2.3,.05),r=new o.Mesh(n,s);r.position.set(-.4,1,t),e.add(r);let a=new o.Mesh(n,s);a.position.set(.4,1,t),e.add(a);let i=new o.BoxGeometry(.02,2.3,.02),c=new o.Mesh(i,l),u=new o.Mesh(i,l);t<0?(c.position.set(-.4,1,t-.02),u.position.set(.4,1,t-.02)):(c.position.set(-.4,1,t+.02),u.position.set(.4,1,t+.02)),e.add(c),e.add(u)}let m=new o.PlaneGeometry(.15,.15),f=new o.MeshLambertMaterial({map:r,transparent:!0}),y=new o.Mesh(m,f);y.position.set(-.15,2,.21);let g=new o.PlaneGeometry(.25,.15),w=new o.MeshLambertMaterial({map:a,transparent:!0}),x=new o.Mesh(g,w);return x.position.set(.15,2,.21),e.add(y),e.add(x),e}(),u=function(){let e=new o.Mesh,t=new o.BoxGeometry(.72,.2,.4),n=new o.Mesh(t,i);n.position.set(0,2,0),e.add(n);for(let t=-.2;t<=.2;t+=.4){let n=new o.BoxGeometry(.72,.03,.03),r=new o.Mesh(n,s);r.position.set(0,1.9,t),e.add(r);let a=new o.Mesh(n,s);a.position.set(0,2.1,t),e.add(a)}let r=new o.BoxGeometry(.08,2.3,.6),a=new o.Mesh(r,i);a.position.set(-.4,1,0),e.add(a);let l=new o.Mesh(r,i);l.position.set(.4,1,0),e.add(l);for(let t=-.165;t<=2.2;t+=2.32){let n=new o.BoxGeometry(.09,.03,.68),r=new o.Mesh(n,s);r.position.set(-.4,t,0),e.add(r);let a=new o.Mesh(n,s);a.position.set(.4,t,0),e.add(a)}for(let t=-.3;t<=.3;t+=.6){let n=new o.BoxGeometry(.09,2.3,.05),r=new o.Mesh(n,s);r.position.set(-.4,1,t),e.add(r);let a=new o.Mesh(n,s);a.position.set(.4,1,t),e.add(a)}return e}();t.a={name:"metal_detector",prototype:"items",info:{tag:["furnishings","metal"],group:"Items",title:"metal detector",description:"metal detector",image:n(591)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-45,-45)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:90,height:90,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#101010"}}),a.a.createElement("circle",{key:"2",cx:"0",cy:"0",r:"45",stroke:"black",style:{stroke:"black",strokeWidth:"2px",fill:"white"},transform:"translate(45,45)"}),a.a.createElement("text",{key:"3",x:"0",y:"0",transform:`translate(45, 45) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(c.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),d=Math.abs(i.max.z-i.min.z);a.position.y+=220/11.5+r,a.scale.set(90/s,220/l,90/d);let p=new o.Object3D;p.add(u.clone()),p.position.y+=220/11.5+r,p.scale.set(90/s,220/l,90/d);let h=new o.LOD;if(h.addLevel(a,700),h.addLevel(p,1200),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/metal-detector/display1.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/metal-detector/display2.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/metal-detector/metalDetector.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.TextureLoader,s=i.load(n(593)),l=i.load(n(594)),c=i.load(n(595)),u=i.load(n(596)),d=new o.MeshLambertMaterial({map:l}),p=function(){let e=new o.Mesh,t=new o.BoxGeometry(.04,.42,.06),n=new o.MeshLambertMaterial({map:c}),r=new o.Mesh(t,n);r.position.set(0,.79,0),r.rotation.x=Math.PI/2,e.add(r);let a=new o.BoxGeometry(.04,.42,.06),i=new o.Mesh(a,n);i.position.set(0,.43,0),i.rotation.x=Math.PI/2,e.add(i);let p=new o.BoxGeometry(.04,.42,.04),h=new o.Mesh(p,n);h.position.set(0,.61,.21),e.add(h);let m=new o.BoxGeometry(.04,.42,.04),f=new o.Mesh(m,n);f.position.set(0,.61,-.21),e.add(f);let y=new o.BoxGeometry(.4,.4,.05),g=new o.Mesh(y,d);g.position.set(-.02,.61,0),g.rotation.y=Math.PI/2,e.add(g);let w=new o.BoxGeometry(.01,.02,.02),x=new o.MeshLambertMaterial({map:s}),v=new o.Mesh(w,x);v.position.set(.0155,.43,0),e.add(v);let M=new o.CylinderGeometry(.02,.02,.06,32,32),b=new o.Mesh(M,d);b.position.set(0,.38,0),e.add(b);let E=new o.CylinderGeometry(.1,.1,.02,32,32),_=new o.MeshLambertMaterial({map:l}),O=new o.Mesh(E,_);O.scale.set(.8,1,1),O.position.set(0,.36,0),e.add(O);let T=new o.BoxGeometry(.4,.02,.2),I=[new o.MeshBasicMaterial({color:0}),new o.MeshBasicMaterial({color:0}),new o.MeshLambertMaterial({map:u}),new o.MeshBasicMaterial({color:0}),new o.MeshBasicMaterial({color:0}),new o.MeshBasicMaterial({color:0})],q=new o.Mesh(T,I);return q.position.set(.3,.36,0),q.rotation.y=Math.PI/2,e.add(q),e}(),h=function(){let e=new o.Mesh,t=new o.BoxGeometry(.04,.42,.06),n=new o.MeshLambertMaterial({map:c}),r=new o.Mesh(t,n);r.position.set(0,.79,0),r.rotation.x=Math.PI/2,e.add(r);let a=new o.BoxGeometry(.04,.42,.06),i=new o.Mesh(a,n);i.position.set(0,.43,0),i.rotation.x=Math.PI/2,e.add(i);let s=new o.BoxGeometry(.04,.42,.04),u=new o.Mesh(s,n);u.position.set(0,.61,.21),e.add(u);let d=new o.BoxGeometry(.04,.42,.04),p=new o.Mesh(d,n);p.position.set(0,.61,-.21),e.add(p);let h=new o.BoxGeometry(.4,.4,.05),m=new o.MeshLambertMaterial({map:l}),f=new o.Mesh(h,m);f.position.set(-.02,.61,0),f.rotation.y=Math.PI/2,e.add(f);let y=new o.CylinderGeometry(.02,.02,.06,8,8),g=new o.Mesh(y,m);g.position.set(0,.38,0),e.add(g);let w=new o.CylinderGeometry(.1,.1,.02,8,8),x=new o.Mesh(w,m);x.scale.set(.8,1,1),x.position.set(0,.36,0),e.add(x);let v=new o.BoxGeometry(.4,.02,.2),M=new o.Mesh(v,m);return M.position.set(.3,.36,0),M.rotation.y=Math.PI/2,e.add(M),e}();t.a={name:"monitor_pc",prototype:"items",info:{tag:["furnishings"],group:"Items",title:"pc monitor",description:"pc monitor",image:n(597)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:100,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-25,-50)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:50,height:50,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(25, 25) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"10px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(p.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);a.rotation.y+=-Math.PI/2,a.position.y+=-37.5+r,a.scale.set(50/c,50/l,50/s);let u=new o.Object3D;u.add(h.clone()),u.rotation.y+=-Math.PI/2,u.position.y+=-37.5+r,u.scale.set(50/c,50/l,50/s);let d=new o.LOD;if(d.addLevel(a,300),d.addLevel(u,700),d.updateMatrix(),d.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(d,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,d.add(e)}return Promise.resolve(d)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/monitor-pc/power.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/monitor-pc/black.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/monitor-pc/white.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/monitor-pc/keyboard.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/monitor-pc/monitorPC.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshPhongMaterial({color:11141120}),s=new o.MeshLambertMaterial({color:11184810}),l=new o.MeshLambertMaterial({color:0}),c=(new o.TextureLoader).load(n(599)),u=function(){let e=new o.Mesh,t=new o.Shape;t.moveTo(0,.1),t.lineTo(0,1.2-.1),t.quadraticCurveTo(0,1.2,.1,1.2),t.lineTo(.8-.1,1.2),t.quadraticCurveTo(.8,1.2,.8,1.2-.1),t.lineTo(.8,.1),t.quadraticCurveTo(.8,0,.8-.1,0),t.lineTo(.1,0),t.quadraticCurveTo(0,0,0,.1);let n={steps:2,amount:.6/3,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},r=new o.ExtrudeGeometry(t,n),a=new o.Mesh(r,i);a.position.set(.1,1.1,.1),e.add(a);let u=new o.BoxGeometry(.95,1.05,.2),d=new o.Mesh(u,i);d.position.set(.5,1.7,.2),e.add(d);let p=new o.PlaneGeometry(.6,.9),h=new o.Mesh(p,new o.MeshPhongMaterial({map:c,transparent:!0}));h.position.set(.5,1.7,.31),e.add(h);let m=new o.CylinderGeometry(.05,.05,.025,80,80),f=new o.Mesh(m,s);f.position.set(.17,1.7,.3),f.rotation.x=Math.PI/2,e.add(f);let y=new o.CylinderGeometry(.051,.051,.05,80,80,!0);l.side=o.DoubleSide;let g=new o.Mesh(y,l);g.position.set(.17,1.7,.31),g.rotation.x=Math.PI/2,e.add(g);let w=new o.BoxGeometry(.1,.02,.02),x=new o.Mesh(w,l);x.position.set(.17,1.7,.32),e.add(x);let v=new o.CylinderGeometry(.015,.015,.1,80,80),M=new o.Mesh(v,l);M.position.set(.99,1.9,.28),e.add(M);let b=new o.CylinderGeometry(.015,.015,.1,80,80),E=new o.Mesh(b,l);E.position.set(.99,1.4,.28),e.add(E);let _=new o.Shape;_.moveTo(0,.1),_.lineTo(0,1.2),_.quadraticCurveTo(0,1.3,.1,1.3),_.lineTo(1.05-.1,1.3),_.quadraticCurveTo(1.05,1.3,1.05,1.2),_.lineTo(1.05,.1),_.quadraticCurveTo(1.05,0,1.05-.1,0),_.lineTo(.1,0),_.quadraticCurveTo(0,0,0,.1);let O={steps:2,amount:.6,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},T=new o.ExtrudeGeometry(_,O),I=new o.Mesh(T,i);return I.position.set(0,1.05,-.33),e.add(I),e}(),d=function(){let e=new o.Mesh,t=new o.Shape;t.moveTo(0,.1),t.lineTo(0,1.2),t.quadraticCurveTo(0,1.3,.1,1.3),t.lineTo(1.05-.1,1.3),t.quadraticCurveTo(1.05,1.3,1.05,1.2),t.lineTo(1.05,.1),t.quadraticCurveTo(1.05,0,1.05-.1,0),t.lineTo(.1,0),t.quadraticCurveTo(0,0,0,.1);let n={steps:2,amount:.6,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},r=new o.ExtrudeGeometry(t,n),a=new o.Mesh(r,i);a.position.set(0,1.05,-.33),e.add(a);let s=new o.BoxGeometry(.95,1.05,.2),l=new o.Mesh(s,i);l.position.set(.5,1.7,.2),e.add(l);let u=new o.PlaneGeometry(.6,.9),d=new o.Mesh(u,new o.MeshPhongMaterial({map:c,transparent:!0}));return d.position.set(.5,1.7,.31),e.add(d),e}(),p=function(){let e=new o.Mesh,t=new o.Shape;t.moveTo(0,.1),t.lineTo(0,1.2),t.quadraticCurveTo(0,1.3,.1,1.3),t.lineTo(1.05-.1,1.3),t.quadraticCurveTo(1.05,1.3,1.05,1.2),t.lineTo(1.05,.1),t.quadraticCurveTo(1.05,0,1.05-.1,0),t.lineTo(.1,0),t.quadraticCurveTo(0,0,0,.1);let n={steps:2,amount:.6,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},r=new o.ExtrudeGeometry(t,n),a=new o.Mesh(r,i);return a.position.set(0,1.05,-.33),e.add(a),e}();t.a={name:"naspo",prototype:"items",info:{tag:["furnishings","metal"],group:"Items",title:"naspo",description:"naspo",image:n(600)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:60,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-25,-15)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:50,height:30,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#ff0000"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(25, 15) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(u.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);a.rotation.y+=Math.PI,a.position.x+=25,a.position.y+=-80/1.3+r,a.scale.set(50/s,80/l,30/c);let h=new o.Object3D;h.add(d.clone()),h.rotation.y+=Math.PI,h.position.x+=25,h.position.y+=-80/1.3+r,h.scale.set(50/s,80/l,30/c);let m=new o.Object3D;m.add(p.clone()),m.rotation.y+=Math.PI,m.position.x+=25,m.position.y+=-80/1.3+r,m.scale.set(50/s,80/l,30/c);let f=new o.LOD;if(f.addLevel(a,200),f.addLevel(h,900),f.addLevel(m,1200),f.updateMatrix(),f.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(f,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,f.add(e)}return Promise.resolve(f)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/naspo/naspofront.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/naspo/naspo.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:16777215}),s=new o.MeshLambertMaterial({color:13421772});t.a={name:"projector",prototype:"items",info:{tag:["furnishings","wood","metal"],group:"Items",title:"projector",description:"projector",image:n(602)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:100,unit:"cm"}},width:{label:"width",type:"length-measure",defaultValue:{length:300,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:150,unit:"cm"}},depth:{label:"depth",type:"length-measure",defaultValue:{length:10,unit:"cm"}}},render2D:function(e,t,n){let o=e.properties.get("width").get("length"),r=e.properties.get("depth").get("length"),i=e.rotation+90,s=0;Math.sin(i*Math.PI/180)<0&&(s=180);let l={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:`translate(${-o/2},${-r/2})`},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:o,height:r,style:l}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(${o/2}, ${r/2}) scale(1,-1) rotate(${s})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=e.properties.get("width").get("length"),l=e.properties.get("height").get("length"),c=e.properties.get("depth").get("length"),u=new o.Object3D;u.add(function(e,t,n){let r=new o.Mesh,a=new o.CylinderGeometry(.5,.5,e,32,32,!1,0,Math.PI),l=new o.Mesh(a,s);l.position.set(e/2,t/2.75,0),l.rotation.z+=Math.PI/2,l.rotation.x+=Math.PI,r.add(l);let c=new o.PlaneGeometry(1,e),u=new o.Mesh(c,s);u.rotation.z+=Math.PI/2,u.rotation.x-=Math.PI/2,u.position.set(e/2,t/2.75,0),r.add(u);let d=new o.BoxGeometry(e-e/20,t-t/8,n/20),p=new o.Mesh(d,i);p.position.set(e/2,.8*t,0),r.add(p);let h=new o.BoxGeometry(e,t/50,n/20),m=new o.Mesh(h,s);m.position.set(e/2,t+t/4,0),r.add(m);let f=new o.BoxGeometry(e,n/20,t/20),y=new o.Mesh(f,s);y.rotation.x+=Math.PI/2,y.position.set(e/2,t+t/4.25,n/20),r.add(y);let g=new o.Mesh(f,s);return g.rotation.x+=Math.PI/2,g.position.set(e/2,t+t/4.25,-n/20),r.add(g),r}(a,l,c).clone());let d=(new o.Box3).setFromObject(u),p=Math.abs(d.max.x-d.min.x),h=Math.abs(d.max.y-d.min.y),m=Math.abs(d.max.z-d.min.z);u.rotation.y+=Math.PI,u.position.y+=-l/3.2+r,u.position.x+=a/2,u.position.z+=c/4,u.scale.set(a/p,l/h,c/m);let f=new o.Object3D;f.add(function(e,t,n){let r=new o.Mesh,a=new o.CylinderGeometry(.5,.5,e,32,32,!1,0,Math.PI),l=new o.Mesh(a,s);l.position.set(e/2,t/2.75,0),l.rotation.z+=Math.PI/2,l.rotation.x+=Math.PI,r.add(l);let c=new o.PlaneGeometry(1,e),u=new o.Mesh(c,s);u.rotation.z+=Math.PI/2,u.rotation.x-=Math.PI/2,u.position.set(e/2,t/2.75,0),r.add(u);let d=new o.BoxGeometry(e-e/20,t-t/8,n/20),p=new o.Mesh(d,i);p.position.set(e/2,.8*t,0),r.add(p);let h=new o.BoxGeometry(e,t/50,n/20),m=new o.Mesh(h,s);m.position.set(e/2,t+t/4,0),r.add(m);let f=new o.BoxGeometry(e,n/20,t/20),y=new o.Mesh(f,s);y.rotation.x+=Math.PI/2,y.position.set(e/2,t+t/4.25,n/20),r.add(y);let g=new o.Mesh(f,s);return g.rotation.x+=Math.PI/2,g.position.set(e/2,t+t/4.25,-n/20),r.add(g),r}(a,l,c).clone()),f.rotation.y+=Math.PI,f.position.y+=-l/3.2+r,f.position.x+=a/2,f.position.z+=c/4,f.scale.set(a/p,l/h,c/m);let y=new o.LOD;if(y.addLevel(u,200),y.addLevel(f,900),y.updateMatrix(),y.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(y,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,y.add(e)}return Promise.resolve(y)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/projector/projector.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:4013373});let s=new o.TextureLoader,l=s.load(n(604)),c=s.load(n(605)),u=s.load(n(606)),d=s.load(n(607));t.a={name:"rack_server",prototype:"items",info:{tag:["furnishings","metal"],group:"Items",title:"rack server",description:"rack server",image:n(608)},properties:{patternColor:{label:"pattern colori",type:"color",defaultValue:"#f5f4f4"},width:{label:"width",type:"length-measure",defaultValue:{length:105,unit:"cm"}},depth:{label:"depth",type:"length-measure",defaultValue:{length:50,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:210,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}},cluster:{label:"cluster",type:"number",defaultValue:-1},check:{label:"check",type:"number",defaultValue:0}},render2D:function(e,t,n){let o=e.properties.get("width").get("length"),r=e.properties.get("depth").get("length"),i=e.selected?"#99c3fb":e.properties.get("patternColor"),s=e.rotation+90,l=0;return Math.sin(s*Math.PI/180)<0&&(l=180),a.a.createElement("g",{transform:`translate(${-o/2},${-r/2})`},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:o,height:r,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:i}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(${o/2}, ${r/2}) scale(1,-1) rotate(${l})`,style:{textAnchor:"middle",fontSize:"11px"}},e.get("name")))},render3D:function(e,t,n){let r=e.x,a=e.y,s=e.get("name"),p=e.properties.get("width").get("length"),h=e.properties.get("depth").get("length"),m=e.properties.get("height").get("length"),f=e.properties.get("altitude").get("length"),y="meta data  name: "+s+"  position(x,y,z): ("+r+", "+a+", "+f+")  dimension(w,d,h): ("+p+", "+h+", "+m+")  ",g={fontSize:16,fontFace:"TimesNewRoman",borderColor:{r:0,g:0,b:255,a:1}},w=new o.Object3D,x=function(e,t,n){let r,a,s=new o.Mesh;(Math.floor(10*Math.random())+1)%2==0?(a=u,r=l):(a=d,r=c);let p=new o.BoxGeometry(e,t,n),h=new o.Mesh(p,i);h.position.set(0,1,0),s.add(h);let m=new o.PlaneGeometry(e,t),f=new o.MeshLambertMaterial({map:r}),y=new o.Mesh(m,f);y.position.set(0,1,n/1.95),s.add(y);let g=new o.PlaneGeometry(e,t),w=new o.MeshLambertMaterial({map:a}),x=new o.Mesh(g,w);return x.position.set(0,1,-n/1.95),x.rotation.y+=Math.PI,s.add(x),s}(p,m,h);w.add(x.clone()),w.rotation.y=Math.PI,w.position.y+=m/2+f;let v=new o.Object3D,M=function(e,t,n){let r=new o.Mesh,a=new o.BoxGeometry(e,t,n),s=new o.Mesh(a,i);return s.position.set(0,1,0),r.add(s),r}(p,m,h);v.add(M.clone()),v.rotation.y=Math.PI,v.position.y+=m/2+f;let b=new o.LOD;if(b.addLevel(w,100),b.addLevel(v,1800),b.updateMatrix(),b.matrixAutoUpdate=!1,e.selected){let e=function(e,t){void 0===t&&(t={});let n=t.hasOwnProperty("fontFace")?t.fontFace:"Arial",r=t.hasOwnProperty("fontSize")?t.fontSize:18,a=t.hasOwnProperty("borderThickness")?t.borderThickness:4,i=t.hasOwnProperty("borderColor")?t.borderColor:{r:0,g:255,b:0,a:1},s=t.hasOwnProperty("backgroundColor")?t.backgroundColor:{r:255,g:255,b:255,a:1},l=(t.hasOwnProperty("textColor")&&t.textColor,document.createElement("canvas"));l.setAttribute("width",1024),l.setAttribute("height",1024);let c=l.getContext("2d");c.font="Bold "+r+"px "+n;let u=[],d="",p=e.split("  "),h=0,m=-99999999999;for(let e=0,t=p.length;e<t;e++)m<c.measureText(p[e]).width&&(m=c.measureText(p[e]).width),console.log(u.length,r,u.length*r+r),h=u.length*r+1.4*r,u.push({text:d,height:h}),d=p[e]+" ";c.fillStyle="rgba("+s.r+","+s.g+","+s.b+","+s.a+")",c.strokeStyle="rgba("+i.r+","+i.g+","+i.b+","+i.a+")",c.lineWidth=a,function(e,t,n,o,r,a){e.beginPath(),e.moveTo(t+a,n),e.lineTo(t+o-a,n),e.quadraticCurveTo(t+o,n,t+o,n+a),e.lineTo(t+o,n+r-a),e.quadraticCurveTo(t+o,n+r,t+o-a,n+r),e.lineTo(t+a,n+r),e.quadraticCurveTo(t,n+r,t,n+r-a),e.lineTo(t,n+a),e.quadraticCurveTo(t,n,t+a,n),e.closePath(),e.fill(),e.stroke()}(c,a/2,a/2,m+4*a,p.length*r,8);for(let e=1;e<u.length;e++)c.fillStyle="rgba(0, 0, 0, 1.0)",c.fillText(u[e].text,a+5,u[e].height-4.5*a,m*r),console.log(u[e].text,a+5,u[e].height,m*r);let f=new o.Texture(l);f.needsUpdate=!0;let y=new o.SpriteMaterial({map:f}),g=new o.Sprite(y);return g.scale.set(15*r,12.5*r,17.5*r),{sprite:g,maxWidth:m}}(y,g),t=e.sprite;console.log(e.maxWidth),t.position.set(-p/1.5,100,-1.5*h),b.add(t);let n=new o.BoxHelper(b,10077179);n.material.linewidth=5,n.renderOrder=1e3,n.material.depthTest=!1,b.add(n)}return Promise.resolve(b)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/rack-server/rackfront.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/rack-server/rackfront2.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/rack-server/rackback.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/rack-server/rackback2.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/rack-server/rack.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:15394506});t.a={name:"termosifone_alluminio",prototype:"items",info:{tag:["furnishings","metal"],group:"Items",title:"aluminum radiator",description:"aluminum radiator",image:n(610)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:100,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:100,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:20,unit:"cm"}}},render2D:function(e,t,n){let o=e.properties.get("width").get("length"),r=e.rotation+90,i=0;Math.sin(r*Math.PI/180)<0&&(i=180);let s={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:`translate(${-o/2},-5)`},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:o,height:10,style:s}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(${o/2}, 5) scale(1,-1) rotate(${i})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("width").get("length"),a=e.properties.get("height").get("length"),s=e.properties.get("altitude").get("length"),l=new o.Object3D;l.add(function(e,t,n){let r=new o.Mesh,a=new o.Shape,s=t-25;a.moveTo(0,2.5),a.lineTo(0,0+s-2.5),a.quadraticCurveTo(0,0+s,2.5,0+s),a.lineTo(7,0+s),a.quadraticCurveTo(9.5,0+s,9.5,0+s-2.5),a.lineTo(9.5,2.5),a.quadraticCurveTo(9.5,0,7,0),a.lineTo(2.5,0),a.quadraticCurveTo(0,0,0,2.5);let l={steps:1,amount:2.5,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1};for(let n=5;n<=e-7.5;n+=10){let e=new o.ExtrudeGeometry(a,l),s=new o.Mesh(e,i);s.position.set(n,0,2.5),r.add(s);let c=new o.Mesh(e,i);c.position.set(n,5,0),c.scale.set(1,1,1),r.add(c);let u=new o.Mesh(e,i);u.position.set(n,5,-2.5),u.scale.set(1,1.05,1),r.add(u);let d=new o.Mesh(e,i);d.position.set(n,6,-4),d.scale.set(1,1.2,1),r.add(d);let p=new o.Mesh(e,i);p.position.set(n+6,t-25,-2.5),p.rotation.y-=Math.PI/2,p.scale.set(.8,.18,.8),r.add(p);let h=new o.Mesh(e,i);h.position.set(n,t-5,5.5),h.rotation.x-=Math.PI/2,h.scale.set(1,.13,.8),r.add(h);let m=new o.Mesh(e,i);m.position.set(n,t-17.5,-2),m.rotation.x+=Math.PI/4,m.scale.set(1,.14,.4),r.add(m);let f=new o.Mesh(e,i);f.position.set(n,t-11,5),f.scale.set(1,.1,.4),r.add(f)}for(let a=5;a<=t;a+=t-12.5){let t=new o.CylinderGeometry(n/6,n/6,e,32),s=new o.Mesh(t,i);s.rotation.x+=Math.PI/2,s.rotation.z+=Math.PI/2,s.position.set(e/2,a,n/6),r.add(s);let l=new o.CylinderGeometry(n/4,n/4,e-2.5,6),c=new o.Mesh(l,i);c.rotation.x+=Math.PI/2,c.rotation.z+=Math.PI/2,c.position.set(e/2,a,n/6),r.add(c);let u=new o.CylinderGeometry(n/3.5,n/3.5,e-5,32),d=new o.Mesh(u,i);d.rotation.x+=Math.PI/2,d.rotation.z+=Math.PI/2,d.position.set(e/2,a,n/6),r.add(d)}return r}(r,a,10).clone());let c=(new o.Box3).setFromObject(l),u=Math.abs(c.max.x-c.min.x),d=Math.abs(c.max.y-c.min.y),p=Math.abs(c.max.z-c.min.z);l.position.x-=r/2,l.position.y+=5+s,l.scale.set(r/u,a/d,10/p);let h=new o.Object3D;h.add(function(e,t,n){let r=new o.Mesh,a=new o.Shape,s=t-25;a.moveTo(0,.25),a.lineTo(0,0+s-.25),a.quadraticCurveTo(0,0+s,.25,0+s),a.lineTo(9.25,0+s),a.quadraticCurveTo(9.5,0+s,9.5,0+s-.25),a.lineTo(9.5,.25),a.quadraticCurveTo(9.5,0,9.25,0),a.lineTo(.25,0),a.quadraticCurveTo(0,0,0,.25);let l={steps:1,amount:2.5,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1};for(let n=5;n<=e-7.5;n+=10){let e=new o.ExtrudeGeometry(a,l),s=new o.Mesh(e,i);s.position.set(n,0,2.5),r.add(s);let c=new o.Mesh(e,i);c.position.set(n,5,-2.5),c.scale.set(1,1.05,1),r.add(c);let u=new o.Mesh(e,i);u.position.set(n,6,-4),u.scale.set(1,1.2,1),r.add(u);let d=new o.Mesh(e,i);d.position.set(n,t-5,5.5),d.rotation.x-=Math.PI/2,d.scale.set(1,.13,.8),r.add(d);let p=new o.Mesh(e,i);p.position.set(n,t-17.5,-2),p.rotation.x+=Math.PI/4,p.scale.set(1,.14,.4),r.add(p);let h=new o.Mesh(e,i);h.position.set(n,t-11,5),h.scale.set(1,.1,.4),r.add(h)}for(let a=n/6;a<=t;a+=t-10){let t=new o.CylinderGeometry(n/6,n/6,e,8),s=new o.Mesh(t,i);s.rotation.x+=Math.PI/2,s.rotation.z+=Math.PI/2,s.position.set(e/2,a,n/6),r.add(s)}return r}(r,a,10).clone()),h.position.x-=r/2,h.position.y+=5+s,h.scale.set(r/u,a/d,10/p);let m=new o.LOD;if(m.addLevel(l,200),m.addLevel(h,900),m.updateMatrix(),m.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(m,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,m.add(e)}return Promise.resolve(m)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/radiator-modern-style/ModernStyleRadiator.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=20,s=new o.MeshLambertMaterial({color:15394506});t.a={name:"radiator-old-style",prototype:"items",info:{tag:["furnishings","cast iron"],group:"Items",title:"cast iron radiator",description:"cast iron radiator",image:n(612)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:100,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:100,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:20,unit:"cm"}}},render2D:function(e,t,n){let o=e.properties.get("width").get("length"),r=e.rotation+90,s=0;Math.sin(r*Math.PI/180)<0&&(s=180);let l={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:`translate(${-o/2},${-i/2})`},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:o,height:i,style:l}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(${o/2}, ${i/2}) scale(1,-1) rotate(${s})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("width").get("length"),a=e.properties.get("height").get("length"),l=e.properties.get("altitude").get("length"),c=new o.Object3D;c.add(function(e,t){let n=new o.Mesh,r=new o.Shape,a=i,l=t;r.moveTo(0,2.5),r.lineTo(0,0+l-2.5),r.quadraticCurveTo(0,0+l,2.5,0+l),r.lineTo(0+a-2.5,0+l),r.quadraticCurveTo(0+a,0+l,0+a,0+l-2.5),r.lineTo(0+a,2.5),r.quadraticCurveTo(0+a,0,0+a-2.5,0),r.lineTo(2.5,0),r.quadraticCurveTo(0,0,0,2.5);let c=new o.Path;c.moveTo(i/6,.16*t),c.arc(0,.07*t,i/8,0,Math.PI,!1),c.arc(i/8,.15*-t,i/8,Math.PI,0,!1),r.holes.push(c);let u=new o.Path;u.moveTo(i/6,.16*t),u.arc(0,.725*t,i/8,0,Math.PI,!1),u.arc(i/8,.15*-t,i/8,Math.PI,0,!1),r.holes.push(u);let d=new o.Path;d.moveTo(i/6,.16*t),d.arc(0,.4*t,i/8,0,Math.PI,!1),d.arc(i/8,.15*-t,i/8,Math.PI,0,!1),r.holes.push(d);let p=new o.Path;p.moveTo(i/2,.2*t),p.arc(0,.07*t,i/8,0,Math.PI,!1),p.arc(i/8,.15*-t,i/8,Math.PI,0,!1),r.holes.push(p);let h=new o.Path;h.moveTo(i/2,.5*t),h.arc(0,.0725*t,i/8,0,Math.PI,!1),h.arc(i/8,.15*-t,i/8,Math.PI,0,!1),r.holes.push(h);let m=new o.Path;m.moveTo(i/2,1.25*t),m.arc(0,.4*-t,i/8,0,Math.PI,!1),m.arc(i/8,.15*-t,i/8,Math.PI,0,!1),r.holes.push(m);let f=new o.Path;f.moveTo(.85*i,.16*t),f.arc(0,.07*t,i/8,0,Math.PI,!1),f.arc(i/8,.15*-t,i/8,Math.PI,0,!1),r.holes.push(f);let y=new o.Path;y.moveTo(.85*i,.16*t),y.arc(0,.4*t,i/8,0,Math.PI,!1),y.arc(i/8,.15*-t,i/8,Math.PI,0,!1),r.holes.push(y);let g=new o.Path;g.moveTo(.85*i,.16*t),g.arc(0,.725*t,i/8,0,Math.PI,!1),g.arc(i/8,.15*-t,i/8,Math.PI,0,!1),r.holes.push(g);let w={steps:1,amount:4.5,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1};for(let t=2.5;t<=e-5;t+=5){let e=new o.ExtrudeGeometry(r,w),a=new o.Mesh(e,s);a.position.set(t,l/20,i),a.rotation.y+=Math.PI/2,n.add(a)}for(let r=10;r<=t;r+=t-10){let t=new o.CylinderGeometry(i/12,i/12,e,32),a=new o.Mesh(t,s);a.rotation.x+=Math.PI/2,a.rotation.z+=Math.PI/2,a.position.set(e/2,r,i/2),n.add(a);let l=new o.CylinderGeometry(i/8,i/8,e-2.5,6),c=new o.Mesh(l,s);c.rotation.x+=Math.PI/2,c.rotation.z+=Math.PI/2,c.position.set(e/2,r,i/2),n.add(c);let u=new o.CylinderGeometry(i/7,i/7,e-5,32),d=new o.Mesh(u,s);d.rotation.x+=Math.PI/2,d.rotation.z+=Math.PI/2,d.position.set(e/2,r,i/2),n.add(d)}return n}(r,a).clone());let u=(new o.Box3).setFromObject(c),d=Math.abs(u.max.x-u.min.x),p=Math.abs(u.max.y-u.min.y),h=Math.abs(u.max.z-u.min.z);c.position.z-=i/2,c.position.x-=r/2,c.position.y+=-a/20+l,c.scale.set(r/d,a/p,i/h);let m=new o.Object3D;m.add(function(e,t){let n=new o.Mesh,r=new o.Shape,a=i,l=t;r.moveTo(0,2.5),r.lineTo(0,0+l-2.5),r.quadraticCurveTo(0,0+l,2.5,0+l),r.lineTo(0+a-2.5,0+l),r.quadraticCurveTo(0+a,0+l,0+a,0+l-2.5),r.lineTo(0+a,2.5),r.quadraticCurveTo(0+a,0,0+a-2.5,0),r.lineTo(2.5,0),r.quadraticCurveTo(0,0,0,2.5);let c={steps:1,amount:4.5,bevelEnabled:!1,bevelThickness:.4,bevelSize:.4,bevelSegments:1};for(let t=2.5;t<=e-5;t+=5){let e=new o.ExtrudeGeometry(r,c),a=new o.Mesh(e,s);a.position.set(t,l/20,i),a.rotation.y+=Math.PI/2,n.add(a)}for(let r=t/10;r<=t;r+=t-10){let t=new o.CylinderGeometry(i/12,i/12,e,32),a=new o.Mesh(t,s);a.rotation.x+=Math.PI/2,a.rotation.z+=Math.PI/2,a.position.set(e/2,r,i/2),n.add(a);let l=new o.CylinderGeometry(i/8,i/8,e-2.5,6),c=new o.Mesh(l,s);c.rotation.x+=Math.PI/2,c.rotation.z+=Math.PI/2,c.position.set(e/2,r,i/2),n.add(c);let u=new o.CylinderGeometry(i/7,i/7,e-5,32),d=new o.Mesh(u,s);d.rotation.x+=Math.PI/2,d.rotation.z+=Math.PI/2,d.position.set(e/2,r,i/2),n.add(d)}return n}(r,a).clone()),m.position.z-=i/2,m.position.x-=r/2,m.position.y+=-a/20+l,m.scale.set(r/d,a/p,i/h);let f=new o.LOD;if(f.addLevel(c,400),f.addLevel(m,900),f.updateMatrix(),f.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(f,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,f.add(e)}return Promise.resolve(f)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/radiator-old-style/OldStyleRadiator.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);t.a={name:"recycling-bins",prototype:"items",info:{tag:["furnishings"],group:"Items",title:"recycling bins",description:"Recycling-bins",image:n(614)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;Math.sin(o*Math.PI/180)<0&&(r=180);let i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},s={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:"translate(-120,-20)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:40,height:40,style:i}),a.a.createElement("rect",{key:"2",x:"50",y:"0",width:40,height:40,style:i}),a.a.createElement("rect",{key:"3",x:"100",y:"0",width:40,height:40,style:i}),a.a.createElement("rect",{key:"4",x:"150",y:"0",width:40,height:40,style:i}),a.a.createElement("rect",{key:"5",x:"200",y:"0",width:40,height:40,style:i}),a.a.createElement("line",{key:"7",x1:120,x2:120,y1:40,y2:60,style:s}),a.a.createElement("line",{key:"8",x1:110,x2:120,y1:48,y2:60,style:s}),a.a.createElement("line",{key:"9",x1:120,x2:130,y1:60,y2:48,style:s}),a.a.createElement("text",{key:"10",x:"0",y:"0",transform:`translate(120, 20) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},this.info.description))},render3D:function(e,t,r){let a=t=>{var r=new o.Object3D,a=new o.MeshLambertMaterial({color:14276567});let i=new o.MeshLambertMaterial({color:t});var s=new o.BoxGeometry(1,1.5,1),l=new o.Mesh(s,i);l.position.y=.75,r.add(l);var c=new o.CylinderGeometry(.5,.5,1,32),u=new o.Mesh(c,i);u.rotation.x+=Math.PI/2,u.position.set(0,.75,0),l.add(u);var d=[];d.push(new o.Vector2(.4,-.3)),d.push(new o.Vector2(.4,-.3)),d.push(new o.Vector2(.4,.3)),d.push(new o.Vector2(.4,.3));var s=new o.LatheGeometry(d,200,0,Math.PI/2),p=new o.Mesh(s,a);p.rotation.y+=Math.PI,p.rotation.x+=Math.PI/2,p.position.set(-.1,.8,0),l.add(p);var h=(new o.TextureLoader).load(n(615)),m=new o.PlaneGeometry(.5,.5),f=new o.MeshLambertMaterial({map:h,transparent:!0}),y=new o.Mesh(m,f);y.rotation.y+=-Math.PI/2,y.position.set(-.51,.3,0),l.add(y);let g=(new o.Box3).setFromObject(r),w=Math.abs(g.max.x-g.min.x),x=Math.abs(g.max.y-g.min.y),v=Math.abs(g.max.z-g.min.z),M=e.properties.get("altitude").get("length");return r.position.y+=M,r.scale.set(40/w,70/x,40/v),r.rotation.y-=Math.PI/2,r},i=new o.Object3D,s=a(255),l=a(16776960),c=a(15387549),u=a(16777215),d=a(65280);if(l.position.x+=50,c.position.x+=100,u.position.x+=150,d.position.x+=200,i.add(s),i.add(l),i.add(c),i.add(u),i.add(d),e.selected){let e=new o.BoxHelper(i,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,i.add(e)}return i.position.x-=100,Promise.resolve(i)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/recycling-bins/recycling-bins.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/recycling-bins/recycle.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=20,s=5,l=20,c=10,u=new o.MeshLambertMaterial({color:7039851}),d=new o.MeshLambertMaterial({color:9671571}),p=new o.MeshLambertMaterial({color:65280}),h=function(){let e=new o.Mesh,t=i,n=l,r=c,a=new o.Shape;a.moveTo(0,0+r),a.lineTo(0,0+n-r),a.quadraticCurveTo(0,0+n,0+r,0+n),a.lineTo(0+t-r,0+n),a.quadraticCurveTo(0+t,0+n,0+t,0+n-r),a.lineTo(0+t,0+r),a.quadraticCurveTo(0+t,0,0+t-r,0),a.lineTo(0+r,0),a.quadraticCurveTo(0,0,0,0+r);let h={steps:2,amount:s/2,bevelEnabled:!0,bevelThickness:s,bevelSize:2*s,bevelSegments:2},m=new o.ExtrudeGeometry(a,h),f=new o.Mesh(m,u);f.position.set(-.4,1,.2),e.add(f);let y={steps:2,amount:s/2,bevelEnabled:!1,bevelThickness:s,bevelSize:2*s,bevelSegments:2},g=new o.ExtrudeGeometry(a,y),w=new o.Mesh(g,d);w.position.set(-.4,1,5.5),e.add(w);let x=new o.CylinderGeometry(c/20,c/20,s,32,32),v=new o.Mesh(x,p);v.rotation.x+=Math.PI/2,v.position.set(i/2,i/2,1.2*s),e.add(v);let M=new o.Mesh(x,p);M.rotation.x+=Math.PI/2,M.position.set(i/2+5,i/2,1.2*s),e.add(M);let b=new o.Mesh(x,p);return b.rotation.x+=Math.PI/2,b.position.set(i/2-5,i/2,1.2*s),e.add(b),e}(),m=function(){let e=new o.Mesh,t=i,n=l,r=c,a=new o.Shape;a.moveTo(0,0+r),a.lineTo(0,0+n-r),a.quadraticCurveTo(0,0+n,0+r,0+n),a.lineTo(0+t-r,0+n),a.quadraticCurveTo(0+t,0+n,0+t,0+n-r),a.lineTo(0+t,0+r),a.quadraticCurveTo(0+t,0,0+t-r,0),a.lineTo(0+r,0),a.quadraticCurveTo(0,0,0,0+r);let d={steps:2,amount:s/2,bevelEnabled:!0,bevelThickness:s,bevelSize:2*s,bevelSegments:2},p=new o.ExtrudeGeometry(a,d),h=new o.Mesh(p,u);return h.position.set(-.4,1,.2),e.add(h),e}();t.a={name:"router_wifi",prototype:"items",info:{tag:["telecomunication"],group:"Items",title:"router Wifi",description:"router Wifi",image:n(617)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:`translate(${-i/2},${-s/2})`},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:i,height:s,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#bb00ff"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(${i/2}, ${s/2}) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(h.clone());let c=(new o.Box3).setFromObject(a),u=Math.abs(c.max.x-c.min.x),d=Math.abs(c.max.y-c.min.y),p=Math.abs(c.max.z-c.min.z);a.position.y+=l/2+r,a.scale.set(i/u,l/d,s/p);let f=new o.Object3D;f.add(m.clone()),f.position.y+=l/2+r,f.scale.set(i/u,l/d,s/p);let y=new o.LOD;if(y.addLevel(a,200),y.addLevel(f,900),y.updateMatrix(),y.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(y,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,y.add(e)}return Promise.resolve(y)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/router-wifi/routerWifi.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);let i=new o.MeshLambertMaterial({color:13882323}),s=new o.MeshLambertMaterial({color:16119285}),l=new o.MeshLambertMaterial({color:4013373}),c=new o.MeshLambertMaterial({color:0}),u=[i,l,i,i,i,i],d=[i,i,i,i,i,l],p=[i,i,i,i,l,i],h=(new o.TextureLoader).load(n(619)),m=258,f=87,y=195,g=48,w=10,x=52,v=3;t.a={name:"schneider",prototype:"items",info:{tag:["metal"],group:"Items",title:"schneider",description:"schneider",image:n(620)},properties:{patternColor:{label:"pattern colori",type:"color",defaultValue:"#f5f4f4"},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.selected?"#99c3fb":e.properties.get("patternColor"),r=e.rotation+90,i=0;return Math.sin(r*Math.PI/180)<0&&(i=180),a.a.createElement("g",{transform:`translate(${-m/2},${-f/2})`},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:m,height:f,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:o}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(${m/2}, ${f/2}) scale(1,-1) rotate(${i})`,style:{textAnchor:"middle",fontSize:"11px"}},e.get("name")))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D,M=function(){let e=new o.Mesh,t=new o.BoxGeometry(v/2,x,w),n=new o.BoxGeometry(g,v,w),r=new o.Object3D;for(let e=.25;e<48;e+=3.32){let n=new o.Mesh(t,s);n.position.x=e,n.position.y=26,r.add(n)}for(let e=0;e<52;e+=7.4){let t=new o.Mesh(n,s);t.position.x=23.5,t.position.y=e,r.add(t)}for(let t=0;t<=54;t+=46)for(let n=10;n<240;n+=48){let o=r.clone();o.position.x+=n,o.position.y+=t,o.rotation.x-=Math.PI/6,0===t?o.position.z+=18:o.position.z-=10,e.add(o)}let a=new o.BoxGeometry(5,y,f),M=new o.Mesh(a,u);M.rotation.y+=Math.PI,e.add(M);let b=new o.Mesh(a,u);b.position.x+=258,e.add(b);let E=new o.BoxGeometry(m,y,5),_=new o.Mesh(E,p);_.position.x+=129,_.position.z-=43.5,e.add(_);let O=new o.BoxGeometry(m/3,y/3,f/8),T=new o.Mesh(O,i);T.position.x+=212,T.position.y+=65,T.position.z+=35,e.add(T);let I=new o.BoxGeometry(m/3,y,5),q=new o.Mesh(I,d);q.position.x+=43.5,q.position.z+=43.5,e.add(q);let P=new o.Mesh(I,d);P.position.x+=130,P.position.z+=43.5,e.add(P);let D=new o.Mesh(I,d);D.position.x+=217,D.position.z+=43.5,e.add(D);let C=new o.PlaneGeometry(m/16,y/12),S=new o.MeshLambertMaterial({map:h,transparent:!0,overdraw:!0}),G=new o.PlaneGeometry(m/8,y/3),k=new o.Mesh(G,l);k.position.set(217,65,46.5),e.add(k);let L=new o.Mesh(C,S);L.position.set(217,60,46.55),e.add(L);let A=new o.BoxGeometry(m,5,f),R=new o.Mesh(A,i);R.position.x+=129,R.position.y-=10,e.add(R);let N=new o.Mesh(A,c);return N.position.x+=129,N.position.y-=97.5,e.add(N),e}();a.add(M.clone()),a.rotation.y=Math.PI,a.position.x+=m/2,a.position.y+=y/1.8+r;let b=new o.Object3D,E=function(){let e=new o.Mesh,t=new o.BoxGeometry(v/2,x,w),n=new o.BoxGeometry(g,v,w),r=new o.Object3D;for(let e=.25;e<48;e+=3.32){let n=new o.Mesh(t,s);n.position.x=e,n.position.y=26,r.add(n)}for(let e=0;e<52;e+=7.4){let t=new o.Mesh(n,s);t.position.x=23.5,t.position.y=e,r.add(t)}for(let t=0;t<=54;t+=46)for(let n=10;n<240;n+=48){let o=r.clone();o.position.x+=n,o.position.y+=t,o.rotation.x-=Math.PI/6,0===t?o.position.z+=18:o.position.z-=10,e.add(o)}let a=new o.BoxGeometry(5,y,f),M=new o.Mesh(a,u);M.rotation.y+=Math.PI,e.add(M);let b=new o.Mesh(a,u);b.position.x+=258,e.add(b);let E=new o.BoxGeometry(m,y,5),_=new o.Mesh(E,p);_.position.x+=129,_.position.z-=43.5,e.add(_);let O=new o.BoxGeometry(m/3,y/3,f/8),T=new o.Mesh(O,i);T.position.x+=212,T.position.y+=65,T.position.z+=35,e.add(T);let I=new o.BoxGeometry(m/3,y,5),q=new o.Mesh(I,d);q.position.x+=43.5,q.position.z+=43.5,e.add(q);let P=new o.Mesh(I,d);P.position.x+=130,P.position.z+=43.5,e.add(P);let D=new o.Mesh(I,d);D.position.x+=217,D.position.z+=43.5,e.add(D);let C=new o.PlaneGeometry(m/16,y/12),S=new o.MeshLambertMaterial({map:h,transparent:!0,overdraw:!0}),G=new o.PlaneGeometry(m/8,y/3),k=new o.Mesh(G,l);k.position.set(217,65,46.5),e.add(k);let L=new o.Mesh(C,S);L.position.set(217,60,46.55),e.add(L);let A=new o.BoxGeometry(m,5,f),R=new o.Mesh(A,i);R.position.x+=129,R.position.y-=10,e.add(R);let N=new o.Mesh(A,c);return N.position.x+=129,N.position.y-=97.5,e.add(N),e}();b.add(E.clone()),b.rotation.y=Math.PI,b.position.x+=m/2,b.position.y+=y/1.8+r;let _=new o.LOD;if(_.addLevel(a,100),_.addLevel(b,1800),_.updateMatrix(),_.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(_,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,_.add(e)}return Promise.resolve(_)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/schneider/monitor.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/schneider/schneider.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);t.a={name:"school-desk-double",prototype:"items",info:{tag:["furnishings"],group:"Items",title:"School desk double",description:"school desk double",image:n(622)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;Math.sin(o*Math.PI/180)<0&&(r=180);let i={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:"translate(-60,-37.5)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:120,height:75,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("line",{key:"2",x1:60,x2:60,y1:75,y2:100,style:i}),a.a.createElement("line",{key:"3",x1:30,x2:60,y1:85,y2:100,style:i}),a.a.createElement("line",{key:"4",x1:60,x2:90,y1:100,y2:85,style:i}),a.a.createElement("text",{key:"5",x:"0",y:"0",transform:`translate(60, 37.5) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,r){let a=e=>{let t=new o.Object3D,r=new o.CylinderGeometry(.02,.02,.5,32),a=new o.MeshLambertMaterial({color:14276567}),i=new o.Mesh(r,a);i.rotation.x+=Math.PI/2,i.position.z+=.25;let s=new o.Mesh(r,a);s.rotation.x+=Math.PI/2,s.position.z+=.25,s.position.y+=.4;let l=new o.Mesh(r,a);l.rotation.x+=Math.PI/2,l.position.z+=.25,l.position.x+=.4;let c=new o.Mesh(r,a);c.rotation.x+=Math.PI/2,c.position.z+=.25,c.position.y+=.4,c.position.x+=.4;let u=new o.Mesh(r,a);u.rotation.x+=Math.PI/2,u.position.z+=.75;let d=new o.Mesh(r,a);d.rotation.x+=Math.PI/2,d.position.z+=.75,d.position.x+=.4;let p=(new o.TextureLoader).load(n(181)),h=new o.MeshLambertMaterial({map:p}),m=new o.Shape;m.moveTo(0,.05),m.lineTo(0,.43),m.quadraticCurveTo(0,.48,.05,.48),m.lineTo(.45,.48),m.quadraticCurveTo(.5,.48,.5,.43),m.lineTo(.5,.05),m.quadraticCurveTo(.5,0,.45,0),m.lineTo(.05,0),m.quadraticCurveTo(0,0,0,.05);let f=new o.ExtrudeGeometry(m,{steps:2,amount:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),y=new o.Mesh(f,h);y.position.x+=-.05,y.position.y+=-.04,y.position.z+=.5;let g=new o.Shape;g.moveTo(0,.05),g.lineTo(0,.2),g.quadraticCurveTo(0,.25,.05,.25),g.lineTo(.4,.25),g.quadraticCurveTo(.45,.25,.45,.2),g.lineTo(.45,.05),g.quadraticCurveTo(.45,0,.4,0),g.lineTo(.05,0),g.quadraticCurveTo(0,0,0,.05);let w=new o.ExtrudeGeometry(g,{steps:2,amount:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),x=new o.Mesh(w,h);x.rotation.x+=Math.PI/2,x.position.z+=.75,x.position.y+=.03,x.position.x+=-.025,t.add(x),t.add(y),t.add(i),t.add(s),t.add(l),t.add(c),t.add(u),t.add(d);let v=(new o.Box3).setFromObject(t),M=Math.abs(v.max.x-v.min.x),b=Math.abs(v.max.y-v.min.y),E=Math.abs(v.max.z-v.min.z);return t.rotation.x+=-Math.PI/2,t.position.y+=e,t.position.x+=-55/3.5,t.position.z+=55/4,t.scale.set(82.5/E,55/1.5/M,50/b),t},i=e.properties.get("altitude").get("length"),s=(new o.MeshLambertMaterial({color:10194037}),new o.MeshLambertMaterial({color:14276567})),l=(new o.TextureLoader).load(n(181)),c=new o.MeshLambertMaterial({map:l}),u=new o.Object3D,d=new o.BoxGeometry(1.05,.05,.625),p=[new o.MeshBasicMaterial({map:l}),new o.MeshBasicMaterial({map:l}),new o.MeshBasicMaterial({color:6723942}),new o.MeshBasicMaterial({map:l}),new o.MeshBasicMaterial({map:l}),new o.MeshBasicMaterial({map:l})],h=new o.MeshFaceMaterial(p),m=new o.Mesh(d,h);m.position.y=1,u.add(m);let f=new o.CylinderGeometry(.03,.03,1,32),y=new o.BoxGeometry(.9,.05,.5),g=new o.Mesh(y,c);g.position.y=.75,u.add(g);let w=new o.BoxGeometry(.9,.1,.025),x=new o.Mesh(w,c);x.position.y=.8125,x.position.z=.5/3+.1,u.add(x);let v=new o.Mesh(f,s);v.position.x=.45,v.position.z=.25,v.position.y=.5,v.scale.set(.5,1,.75),u.add(v);let M=new o.Mesh(f,s);M.position.x=.45,M.position.z=-.25,M.position.y=.5,M.scale.set(.5,1,.75),u.add(M);let b=new o.Mesh(f,s);b.position.x=-.45,b.position.z=.25,b.position.y=.5,b.scale.set(.5,1,.75),u.add(b);let E=new o.Mesh(f,s);E.position.x=-.45,E.position.z=-.25,E.position.y=.5,E.scale.set(.5,1,.75),u.add(E);let _=(new o.Box3).setFromObject(u),O=Math.abs(_.max.x-_.min.x),T=Math.abs(_.max.y-_.min.y),I=Math.abs(_.max.z-_.min.z);u.rotation.y+=Math.PI,u.position.y+=i,u.scale.set(120/O,90/T,50/I);let q=a(i);q.position.z+=30,q.position.x+=25;let P=a(i);P.position.z+=30,P.position.x-=25;let D=new o.Object3D;if(D.add(u),D.add(q),D.add(P),e.selected){let e=new o.BoxHelper(D,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,D.add(e)}D.position.z-=12.5;let C=(new o.Box3).setFromObject(D),S=Math.abs(C.max.z-C.min.z);return D.scale.set(1,1,75/S),Promise.resolve(D)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/school-desk-double/school-desk-double.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);t.a={name:"school-desk",prototype:"items",info:{tag:["furnishings"],group:"Items",title:"School desk",description:"School desk",image:n(624)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;Math.sin(o*Math.PI/180)<0&&(r=180);let i={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:"translate(-35,-37.5)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:70,height:75,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("line",{key:"2",x1:35,x2:35,y1:75,y2:100,style:i}),a.a.createElement("line",{key:"3",x1:17.5,x2:35,y1:85,y2:100,style:i}),a.a.createElement("line",{key:"4",x1:35,x2:52.5,y1:100,y2:85,style:i}),a.a.createElement("text",{key:"5",x:"0",y:"0",transform:`translate(35, 37.5) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,r){let a=e.properties.get("altitude").get("length"),i=(new o.MeshLambertMaterial({color:10194037}),new o.MeshLambertMaterial({color:14276567})),s=(new o.MeshLambertMaterial({color:0}),(new o.TextureLoader).load(n(182))),l=new o.MeshLambertMaterial({map:s}),c=new o.Object3D,u=new o.BoxGeometry(1.05,.05,.625),d=[new o.MeshBasicMaterial({map:s}),new o.MeshBasicMaterial({map:s}),new o.MeshBasicMaterial({color:6723942}),new o.MeshBasicMaterial({map:s}),new o.MeshBasicMaterial({map:s}),new o.MeshBasicMaterial({map:s})],p=new o.MultiMaterial(d),h=new o.Mesh(u,p);h.position.y=1,c.add(h);let m=new o.CylinderGeometry(.03,.03,1,32),f=new o.BoxGeometry(.9,.05,.5),y=new o.Mesh(f,l);y.position.y=.75,c.add(y);let g=new o.BoxGeometry(.9,.1,.025),w=new o.Mesh(g,l);w.position.y=.8125,w.position.z=.5/3+.1,c.add(w);let x=new o.Mesh(m,i);x.position.x=.45,x.position.z=.25,x.position.y=.5,c.add(x);let v=new o.Mesh(m,i);v.position.x=.45,v.position.z=-.25,v.position.y=.5,c.add(v);let M=new o.Mesh(m,i);M.position.x=-.45,M.position.z=.25,M.position.y=.5,c.add(M);let b=new o.Mesh(m,i);b.position.x=-.45,b.position.z=-.25,b.position.y=.5,c.add(b);let E=(new o.Box3).setFromObject(c),_=Math.abs(E.max.x-E.min.x),O=Math.abs(E.max.y-E.min.y),T=Math.abs(E.max.z-E.min.z);c.rotation.y+=Math.PI,c.position.y+=a,c.scale.set(70/_,90/O,50/T);let I=(e=>{let t=new o.Object3D,r=new o.CylinderGeometry(.02,.02,.5,32),a=new o.MeshLambertMaterial({color:14276567}),i=new o.Mesh(r,a);i.rotation.x+=Math.PI/2,i.position.z+=.25;let s=new o.Mesh(r,a);s.rotation.x+=Math.PI/2,s.position.z+=.25,s.position.y+=.4;let l=new o.Mesh(r,a);l.rotation.x+=Math.PI/2,l.position.z+=.25,l.position.x+=.4;let c=new o.Mesh(r,a);c.rotation.x+=Math.PI/2,c.position.z+=.25,c.position.y+=.4,c.position.x+=.4;let u=new o.Mesh(r,a);u.rotation.x+=Math.PI/2,u.position.z+=.75;let d=new o.Mesh(r,a);d.rotation.x+=Math.PI/2,d.position.z+=.75,d.position.x+=.4;let p=(new o.TextureLoader).load(n(182)),h=new o.MeshLambertMaterial({map:p}),m=new o.Shape;m.moveTo(0,.05),m.lineTo(0,.43),m.quadraticCurveTo(0,.48,.05,.48),m.lineTo(.45,.48),m.quadraticCurveTo(.5,.48,.5,.43),m.lineTo(.5,.05),m.quadraticCurveTo(.5,0,.45,0),m.lineTo(.05,0),m.quadraticCurveTo(0,0,0,.05);let f=new o.ExtrudeGeometry(m,{steps:2,amount:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),y=new o.Mesh(f,h);y.position.x+=-.05,y.position.y+=-.04,y.position.z+=.5;let g=new o.Shape;g.moveTo(0,.05),g.lineTo(0,.2),g.quadraticCurveTo(0,.25,.05,.25),g.lineTo(.4,.25),g.quadraticCurveTo(.45,.25,.45,.2),g.lineTo(.45,.05),g.quadraticCurveTo(.45,0,.4,0),g.lineTo(.05,0),g.quadraticCurveTo(0,0,0,.05);let w=new o.ExtrudeGeometry(g,{steps:2,amount:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),x=new o.Mesh(w,h);x.rotation.x+=Math.PI/2,x.position.z+=.75,x.position.y+=.03,x.position.x+=-.025,t.add(x),t.add(y),t.add(i),t.add(s),t.add(l),t.add(c),t.add(u),t.add(d);let v=(new o.Box3).setFromObject(t),M=Math.abs(v.max.x-v.min.x),b=Math.abs(v.max.y-v.min.y),E=Math.abs(v.max.z-v.min.z);return t.rotation.x+=-Math.PI/2,t.position.y+=e,t.position.x+=-55/3.5,t.position.z+=55/4,t.scale.set(82.5/E,55/1.5/M,50/b),t})(a);I.position.z+=30;let q=new o.Object3D;if(q.add(c),q.add(I),e.selected){let e=new o.BoxHelper(q,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,q.add(e)}q.position.z-=12.5;let P=(new o.Box3).setFromObject(q),D=Math.abs(P.max.z-P.min.z);return q.scale.set(1,1,75/D),Promise.resolve(q)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/school-desk/school-desk.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=60,s=new o.MeshLambertMaterial({color:16777215}),l=new o.MeshLambertMaterial({color:11184810}),c=new o.MeshLambertMaterial({color:16750899}),u=new o.MeshLambertMaterial({color:255});t.a={name:"sink",prototype:"items",info:{tag:["furnishings","metal"],group:"Items",title:"sink",description:"sink",image:n(626)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:50,unit:"cm"}},depth:{label:"depth",type:"length-measure",defaultValue:{length:40,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:80,unit:"cm"}}},render2D:function(e,t,n){let o=e.properties.get("width").get("length"),r=e.properties.get("depth").get("length"),i=e.rotation+90,s=0;Math.sin(i*Math.PI/180)<0&&(s=180);let l={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:`translate(${-o/2},${-r/2})`},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:o,height:r,style:l}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(${o/2}, ${r/2}) scale(1,-1) rotate(${s})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("width").get("length"),a=e.properties.get("depth").get("length"),d=i,p=e.properties.get("altitude").get("length"),h=new o.Object3D;h.add(function(e,t){let n=new o.Mesh,r=new o.Shape,a=e,d=t,p=i,h=t/10;r.moveTo(0,0+h),r.lineTo(0,0+d-h),r.quadraticCurveTo(0,0+d,0+h,0+d),r.lineTo(0+a-h,0+d),r.quadraticCurveTo(0+a,0+d,0+a,0+d-h),r.lineTo(0+a,0+h),r.quadraticCurveTo(0+a,0,0+a-h,0),r.lineTo(0+h,0),r.quadraticCurveTo(0,0,0,0+h);let m={steps:2,amount:p/40,bevelEnabled:!1,bevelThickness:p,bevelSize:p,bevelSegments:2},f=new o.ExtrudeGeometry(r,m),y=new o.Mesh(f,s);y.rotation.x+=Math.PI/2,y.position.y=p/4,n.add(y);let g=new o.Shape,w=new o.Path;g.moveTo(0,0+h),g.lineTo(0,0+d-h),g.quadraticCurveTo(0,0+d,0+h,0+d),g.lineTo(0+a-h,0+d),g.quadraticCurveTo(0+a,0+d,0+a,0+d-h),g.lineTo(0+a,0+h),g.quadraticCurveTo(0+a,0,0+a-h,0),g.lineTo(0+h,0),g.quadraticCurveTo(0,0,0,0+h),w.moveTo(e/20,t/20),w.lineTo(e-e/20,t/20),w.lineTo(e-e/20,t-t/20),w.lineTo(e/20,t-t/20),g.holes.push(w);let x={steps:2,amount:p/4,bevelEnabled:!1,bevelThickness:p,bevelSize:p,bevelSegments:2},v=new o.ExtrudeGeometry(g,x),M=new o.Mesh(v,s);M.rotation.x+=Math.PI/2,M.position.y+=p/2,n.add(M);let b=new o.Mesh(new o.TorusGeometry(2.5,2.5,16,16,Math.PI/2),c);b.position.set(e/2,p/5.5,t/2-2.5),b.rotation.z=-Math.PI/2,b.rotation.y-=Math.PI/2,n.add(b);let E=new o.CylinderGeometry(2.25,2.25,t/2,80),_=new o.Mesh(E,c);_.rotation.z=Math.PI/2,_.rotation.y-=Math.PI/2,_.position.set(e/2,p/7.5,t/4.5),n.add(_);let O=new o.CylinderGeometry(2.5,2.5,t/12,80),T=new o.Mesh(O,c);T.rotation.y-=Math.PI/2,T.position.set(e/2,p/4.85,t/2),n.add(T);let I=new o.CylinderGeometry(1.25,1.25,8,12),q=new o.Mesh(I,l);q.position.set(e/2,p/1.45,3),q.rotation.z-=Math.PI/2,q.rotation.y+=Math.PI/2,n.add(q);let P=new o.CylinderGeometry(2.7,3,5,12),D=new o.Mesh(P,l);D.position.set(e/2,p/1.45,10),D.rotation.z-=Math.PI/2,D.rotation.y+=Math.PI/2,n.add(D);let C=new o.CylinderGeometry(2,2,5.5,80),S=new o.Mesh(C,u);S.position.set(e/2,p/1.45,10),S.rotation.z-=Math.PI/2,S.rotation.y+=Math.PI/2,n.add(S);let G=new o.CatmullRomCurve3([new o.Vector3(-12,-10,0),new o.Vector3(-12,-5,0),new o.Vector3(0,0,0),new o.Vector3(6,5,0),new o.Vector3(6,10,0)]),k=new o.TubeGeometry(G,32,1,16,!1),L=new o.Mesh(k,l);L.position.set(e/2,p/1.7,11),L.rotation.y+=Math.PI/2,L.rotation.z-=Math.PI/8,n.add(L);let A=new o.CylinderGeometry(t/20,t/20,p/100,80),R=new o.MeshLambertMaterial({color:0}),N=new o.Mesh(A,R);N.position.set(e/2,p/4,t/2),n.add(N);let j=new o.CylinderGeometry(t/10,t/10,p/200,80,80,!1,0,Math.PI),B=new o.MeshLambertMaterial({color:16777215}),z=new o.Mesh(j,B);z.scale.set(.25,.5,.5),z.rotation.z=Math.PI/2,z.position.set(e/2,p/4,t/2),n.add(z);let V=new o.Mesh(j,B);V.rotation.z=Math.PI/2,V.rotation.y=Math.PI/2,V.scale.set(.25,.5,.5),V.position.set(e/2,p/4,t/2),n.add(V);let U=new o.Mesh(j,B);U.rotation.z=Math.PI/2,U.rotation.y=Math.PI/4,U.position.set(e/2,p/4,t/2),U.scale.set(.25,.5,.5),n.add(U);let F=new o.Mesh(j,B);return F.rotation.z=Math.PI/2,F.rotation.y=-Math.PI/4,F.position.set(e/2,p/4,t/2),F.scale.set(.25,.5,.5),n.add(F),n}(r,a).clone());let m=(new o.Box3).setFromObject(h),f=Math.abs(m.max.x-m.min.x),y=Math.abs(m.max.y-m.min.y),g=Math.abs(m.max.z-m.min.z);h.scale.set(r/f,d/y,a/g),h.position.y+=-d/5+p,h.position.z-=a/4,h.position.x-=r/2;let w=new o.Object3D;w.add(function(e,t){let n=new o.Mesh,r=new o.Shape,a=e,c=t,d=i,p=t/10;r.moveTo(0,0+p),r.lineTo(0,0+c-p),r.quadraticCurveTo(0,0+c,0+p,0+c),r.lineTo(0+a-p,0+c),r.quadraticCurveTo(0+a,0+c,0+a,0+c-p),r.lineTo(0+a,0+p),r.quadraticCurveTo(0+a,0,0+a-p,0),r.lineTo(0+p,0),r.quadraticCurveTo(0,0,0,0+p);let h={steps:2,amount:d/40,bevelEnabled:!1,bevelThickness:d,bevelSize:d,bevelSegments:2},m=new o.ExtrudeGeometry(r,h),f=new o.Mesh(m,s);f.rotation.x+=Math.PI/2,f.position.y=d/4,n.add(f);let y=new o.Shape,g=new o.Path;y.moveTo(0,0+p),y.lineTo(0,0+c-p),y.quadraticCurveTo(0,0+c,0+p,0+c),y.lineTo(0+a-p,0+c),y.quadraticCurveTo(0+a,0+c,0+a,0+c-p),y.lineTo(0+a,0+p),y.quadraticCurveTo(0+a,0,0+a-p,0),y.lineTo(0+p,0),y.quadraticCurveTo(0,0,0,0+p),g.moveTo(e/20,t/20),g.lineTo(e-e/20,t/20),g.lineTo(e-e/20,t-t/20),g.lineTo(e/20,t-t/20),y.holes.push(g);let w={steps:2,amount:d/4,bevelEnabled:!1,bevelThickness:d,bevelSize:d,bevelSegments:2},x=new o.ExtrudeGeometry(y,w),v=new o.Mesh(x,s);v.rotation.x+=Math.PI/2,v.position.y+=d/2,n.add(v);let M=new o.CylinderGeometry(1.25,1.25,8,12),b=new o.Mesh(M,l);b.position.set(e/2,d/1.45,3),b.rotation.z-=Math.PI/2,b.rotation.y+=Math.PI/2,n.add(b);let E=new o.CylinderGeometry(2.7,3,5,12),_=new o.Mesh(E,l);_.position.set(e/2,d/1.45,10),_.rotation.z-=Math.PI/2,_.rotation.y+=Math.PI/2,n.add(_);let O=new o.CylinderGeometry(2,2,5.5,80),T=new o.Mesh(O,u);T.position.set(e/2,d/1.45,10),T.rotation.z-=Math.PI/2,T.rotation.y+=Math.PI/2,n.add(T);let I=new o.CatmullRomCurve3([new o.Vector3(-12,-10,0),new o.Vector3(-12,-5,0),new o.Vector3(0,0,0),new o.Vector3(6,5,0),new o.Vector3(6,10,0)]),q=new o.TubeGeometry(I,32,1,16,!1),P=new o.Mesh(q,l);return P.position.set(e/2,d/1.7,11),P.rotation.y+=Math.PI/2,P.rotation.z-=Math.PI/8,n.add(P),n}(r,a).clone()),w.scale.set(r/f,d/y,a/g),w.position.y+=-d/5+p,w.position.z-=a/4,w.position.x-=r/2;let x=new o.LOD;if(x.addLevel(h,200),x.addLevel(w,900),x.updateMatrix(),x.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(x,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,x.add(e)}return Promise.resolve(x)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/sink/sink.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:16711680}),s=new o.MeshLambertMaterial({color:14276567}),l=new o.MeshLambertMaterial({color:0}),c=function(){let e=new o.Mesh,t=new o.CylinderGeometry(.55,.55,.25,32,32),n=new o.Mesh(t,s);e.add(n);let r=new o.CylinderGeometry(.65,.65,.1,32,32),a=new o.Mesh(r,s);a.position.y+=.125,n.add(a);let c=new o.CylinderGeometry(.55,.65,.1,32,32),u=new o.Mesh(c,s);u.position.y+=.22,n.add(u);let d=new o.CylinderGeometry(.65,.65,.1,32,32),p=new o.Mesh(d,s);p.position.y+=-.125,n.add(p);let h=new o.SphereGeometry(.025,32,32,32),m=new o.Mesh(h,i);m.position.y+=.28,m.position.x+=.4,m.position.z+=-.25,m.scale.set(1,1.3,1),n.add(m);for(let e=0;e<4*Math.PI;e+=4*Math.PI/3){let t=new o.TorusGeometry(.45,.025,32,100,Math.PI/3),n=new o.Mesh(t,l);n.position.y+=.028,n.position.x+=.01,n.rotation.z+=e,n.rotation.x+=Math.PI/2,u.add(n);let r=new o.TorusGeometry(.35,.025,32,100,Math.PI/3),a=new o.Mesh(r,l);a.position.y+=.028,a.position.x+=.01,a.rotation.x+=Math.PI/2,a.rotation.z+=e,u.add(a);let i=new o.TorusGeometry(.25,.025,32,100,Math.PI/3),s=new o.Mesh(i,l);s.position.y+=.028,s.position.x+=.01,s.rotation.x+=Math.PI/2,s.rotation.z+=e,u.add(s)}return e}(),u=function(){let e=new o.Mesh,t=new o.CylinderGeometry(.55,.55,.25,8,8),n=new o.Mesh(t,s);e.add(n);let r=new o.CylinderGeometry(.65,.65,.1,8,8),a=new o.Mesh(r,s);a.position.y+=.125,n.add(a);let i=new o.CylinderGeometry(.55,.65,.1,8,8),l=new o.Mesh(i,s);l.position.y+=.22,n.add(l);let c=new o.CylinderGeometry(.65,.65,.1,8,8),u=new o.Mesh(c,s);return u.position.y+=-.125,n.add(u),e}();t.a={name:"smoke-detector",prototype:"items",info:{tag:["furnishings","metal"],group:"Items",title:"smoke detector",description:"smoke detector",image:n(628)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:250,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-5,-5)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:10,height:10,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#ff0000"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(5, 15) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(c.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),d=Math.abs(i.max.z-i.min.z);a.position.z+=-10/3,a.position.y+=-5/1.3+r,a.rotation.x+=-Math.PI/2,a.scale.set(10/s,5/l,10/d);let p=new o.Object3D;p.add(u.clone()),p.position.z+=-10/3,p.position.y+=-5/1.3+r,p.rotation.x+=-Math.PI/2,p.scale.set(10/s,5/l,10/d);let h=new o.LOD;if(h.addLevel(a,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/smoke-detector/smokeDetector.png"},function(e,t,n){"use strict";var o=n(1),r=n(28),a=n(29),i=n.n(a),s=n(56),l=n.n(s),c=n(0),u=n.n(c);let d=null;t.a={name:"sofa",prototype:"items",info:{title:"sofa",tag:["furnishings","leather"],group:"Items",description:"Leather sofa",image:n(630)},properties:{},render2D:function(e,t,n){let o=e.rotation+90,r=0;Math.sin(o*Math.PI/180)<0&&(r=180);let a={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},i={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return u.a.createElement("g",{transform:"translate(-90,-30)"},u.a.createElement("rect",{key:"1",x:"0",y:"0",width:180,height:60,style:a}),u.a.createElement("line",{key:"2",x1:90,x2:90,y1:60,y2:90,style:i}),u.a.createElement("line",{key:"3",x1:.35*180,x2:90,y1:72,y2:90,style:i}),u.a.createElement("line",{key:"4",x1:90,x2:117,y1:90,y2:72,style:i}),u.a.createElement("text",{key:"5",x:"0",y:"0",transform:`translate(90, 30) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,a){let s={length:180,unit:"cm"},c={length:60,unit:"cm"},u={length:70,unit:"cm"},p=t=>{let n=l()(s.length).from(s.unit).to(a.unit),r=l()(u.length).from(u.unit).to(a.unit),i=l()(c.length).from(c.unit).to(a.unit);if(t.scale.set(n/s.length,r/u.length,i/c.length),e.selected){let e=new o.BoxHelper(t,10077179);e.material.linewidth=2,e.material.depthTest=!1,e.renderOrder=1e3,t.add(e)}let d=(new o.Box3).setFromObject(t),p=[(d.max.x-d.min.x)/2+d.min.x,(d.max.y-d.min.y)/2+d.min.y,(d.max.z-d.min.z)/2+d.min.z];return t.position.x-=p[0],t.position.y-=p[1]-(d.max.y-d.min.y)/2,t.position.z-=p[2],t};if(d)return Promise.resolve(p(d.clone()));let h=n(631),m=n(632),f=n(633);return Object(r.a)(h,m,i.a.dirname(f)+"/").then(e=>(d=e,p(d.clone())))}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/sofa/sofa.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/sofa/sofa.mtl"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/sofa/sofa.obj"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/sofa/texture.jpg"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=3,s=new o.MeshLambertMaterial({color:10194037}),l=new o.MeshLambertMaterial({color:14276567});t.a={name:"table",prototype:"items",info:{tag:["furnishings","wood"],group:"Items",title:"table",description:"table",image:n(635)},properties:{width:{label:"width",type:"length-measure",defaultValue:{length:90,unit:"cm"}},depth:{label:"depth",type:"length-measure",defaultValue:{length:50,unit:"cm"}},height:{label:"height",type:"length-measure",defaultValue:{length:80,unit:"cm"}},altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.properties.get("width").get("length"),r=e.properties.get("depth").get("length"),i=e.rotation+90,s=0;return Math.sin(i*Math.PI/180)<0&&(s=180),a.a.createElement("g",{transform:`translate(${-o/2},${-r/2})`},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:o,height:r,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(${o/2}, ${r/2}) scale(1,-1) rotate(${s})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("width").get("length"),a=e.properties.get("depth").get("length"),c=e.properties.get("height").get("length"),u=e.properties.get("altitude").get("length"),d=new o.Object3D,p=function(e,t,n){let r=new o.Mesh,a=new o.BoxGeometry(e,t/20,n),c=new o.Mesh(a,s);c.position.y=t,r.add(c);let u=new o.CylinderGeometry(i,i,t,32,32),d=new o.Mesh(u,l);d.position.x=e/2,d.position.z=n/2,d.position.y=t/2,r.add(d);let p=new o.Mesh(u,l);p.position.x=e/2,p.position.z=-n/2,p.position.y=t/2,r.add(p);let h=new o.Mesh(u,l);h.position.x=-e/2,h.position.z=n/2,h.position.y=t/2,r.add(h);let m=new o.Mesh(u,l);return m.position.x=-e/2,m.position.z=-n/2,m.position.y=t/2,r.add(m),r}(r,c,a);d.add(p.clone()),d.position.y+=c/20+u;let h=new o.Object3D,m=function(e,t,n){let r=new o.Mesh,a=new o.BoxGeometry(e,t/20,n),c=new o.Mesh(a,s);c.position.y=t,r.add(c);let u=new o.CylinderGeometry(i,i,t,8,8),d=new o.Mesh(u,l);d.position.x=e/2,d.position.z=n/2,d.position.y=t/2,r.add(d);let p=new o.Mesh(u,l);p.position.x=e/2,p.position.z=-n/2,p.position.y=t/2,r.add(p);let h=new o.Mesh(u,l);h.position.x=-e/2,h.position.z=n/2,h.position.y=t/2,r.add(h);let m=new o.Mesh(u,l);return m.position.x=-e/2,m.position.z=-n/2,m.position.y=t/2,r.add(m),r}(r,c,a);h.add(m.clone()),h.position.y+=c/20+u;let f=new o.LOD;if(f.addLevel(d,200),f.addLevel(h,900),f.updateMatrix(),f.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(f,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,f.add(e)}return Promise.resolve(f)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/table/table.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);t.a={name:"teaching-post",prototype:"items",info:{tag:["furnishings"],group:"teaching post",title:"Teaching post",description:"Teaching post",image:n(637)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;Math.sin(o*Math.PI/180)<0&&(r=180);let i={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",{transform:"translate(-70,-47.5)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:140,height:95,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("line",{key:"2",x1:70,x2:70,y1:95,y2:142.5,style:i}),a.a.createElement("line",{key:"3",x1:35,x2:70,y1:114,y2:142.5,style:i}),a.a.createElement("line",{key:"4",x1:70,x2:105,y1:142.5,y2:114,style:i}),a.a.createElement("text",{key:"5",x:"0",y:"0",transform:`translate(70, 47.5) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,r){let a=e.properties.get("altitude").get("length"),i=(new o.TextureLoader).load(n(183)),s=new o.MeshLambertMaterial({map:i}),l=new o.MeshBasicMaterial({color:6723942}),c=new o.Object3D,u=new o.Mesh(new o.BoxGeometry(.06,.06,1.2),s);u.position.z+=.6,u.position.x+=.05,u.position.y+=.05;let d=new o.Mesh(new o.BoxGeometry(.06,.06,1.2),s);d.position.z+=.6,d.position.x+=1.9-.05,d.position.y+=.05;let p=new o.Mesh(new o.BoxGeometry(.06,.06,1.2),s);p.position.z+=.6,p.position.x+=1.9-.05,p.position.y+=1.45;let h=new o.Mesh(new o.BoxGeometry(.06,.06,1.2),s);h.position.z+=.6,h.position.x+=.05,h.position.y+=1.45;let m=[new o.MeshLambertMaterial({map:i}),new o.MeshLambertMaterial({map:i}),new o.MeshLambertMaterial({map:i}),new o.MeshLambertMaterial({map:i}),new o.MeshBasicMaterial({color:6723942}),new o.MeshLambertMaterial({map:i})],f=new o.MeshFaceMaterial(m),y=new o.Mesh(new o.BoxGeometry(1.9,1.5,.04),f);y.position.x+=.95,y.position.y+=.75,y.position.z+=1.2;let g=new o.Mesh(new o.BoxGeometry(1.9,.65,.04),s);g.rotation.x+=Math.PI/2,g.position.x+=.95,g.position.z+=.825;let w=new o.Mesh(new o.BoxGeometry(1.9,.075,.04),s);w.position.x+=.95,w.position.y+=1.15,w.position.z+=.6;let x=new o.Mesh(new o.BoxGeometry(1.5,.65,.04),s);x.rotation.x+=Math.PI/2,x.rotation.y+=Math.PI/2,x.position.x+=1.9,x.position.y+=.75,x.position.z+=.825;let v=x.clone();v.position.x-=1.9;let M=new o.Mesh(new o.BoxGeometry(.475,1.5,.4),s);M.position.x+=.475,M.position.y+=.75,M.position.z+=1.2/1.55;let b=new o.BoxGeometry(.1,.04,.02),E=new o.Mesh(b,s);E.position.y+=.77;let _=new o.BoxGeometry(.5,.04,.3),O=new o.Mesh(_,l);O.position.y+=.75,M.add(E),M.add(O),M.scale.set(1.5,1,.7);let T=M.clone();T.position.z+=1.2/4.5,c.add(u),c.add(d),c.add(p),c.add(h),c.add(y),c.add(M),c.add(T),c.add(g),c.add(x),c.add(v),c.add(w);let I=(new o.Box3).setFromObject(c),q=Math.abs(I.max.x-I.min.x),P=Math.abs(I.max.y-I.min.y),D=Math.abs(I.max.z-I.min.z);c.rotation.x+=-Math.PI/2,c.position.y+=a,c.position.x+=-70,c.position.z+=70/1.5,c.scale.set(140/q,70/D,100/P);let C=(e=>{let t=new o.Object3D,r=new o.CylinderGeometry(.02,.02,.5,32),a=new o.MeshLambertMaterial({color:14276567}),i=new o.Mesh(r,a);i.rotation.x+=Math.PI/2,i.position.z+=.25;let s=new o.Mesh(r,a);s.rotation.x+=Math.PI/2,s.position.z+=.25,s.position.y+=.4;let l=new o.Mesh(r,a);l.rotation.x+=Math.PI/2,l.position.z+=.25,l.position.x+=.4;let c=new o.Mesh(r,a);c.rotation.x+=Math.PI/2,c.position.z+=.25,c.position.y+=.4,c.position.x+=.4;let u=new o.Mesh(r,a);u.rotation.x+=Math.PI/2,u.position.z+=.75;let d=new o.Mesh(r,a);d.rotation.x+=Math.PI/2,d.position.z+=.75,d.position.x+=.4;let p=(new o.TextureLoader).load(n(183)),h=new o.MeshLambertMaterial({map:p}),m=new o.Shape;m.moveTo(0,.05),m.lineTo(0,.43),m.quadraticCurveTo(0,.48,.05,.48),m.lineTo(.45,.48),m.quadraticCurveTo(.5,.48,.5,.43),m.lineTo(.5,.05),m.quadraticCurveTo(.5,0,.45,0),m.lineTo(.05,0),m.quadraticCurveTo(0,0,0,.05);let f=new o.ExtrudeGeometry(m,{steps:2,amount:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),y=new o.Mesh(f,h);y.position.x+=-.05,y.position.y+=-.04,y.position.z+=.5;let g=new o.Shape;g.moveTo(0,.05),g.lineTo(0,.2),g.quadraticCurveTo(0,.25,.05,.25),g.lineTo(.4,.25),g.quadraticCurveTo(.45,.25,.45,.2),g.lineTo(.45,.05),g.quadraticCurveTo(.45,0,.4,0),g.lineTo(.05,0),g.quadraticCurveTo(0,0,0,.05);let w=new o.ExtrudeGeometry(g,{steps:2,amount:.03,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),x=new o.Mesh(w,h);x.rotation.x+=Math.PI/2,x.position.z+=.75,x.position.y+=.03,x.position.x+=-.025,t.add(x),t.add(y),t.add(i),t.add(s),t.add(l),t.add(c),t.add(u),t.add(d);let v=(new o.Box3).setFromObject(t),M=Math.abs(v.max.x-v.min.x),b=Math.abs(v.max.y-v.min.y),E=Math.abs(v.max.z-v.min.z);return t.rotation.x+=-Math.PI/2,t.position.y+=e,t.position.x+=-55/3.5,t.position.z+=55/4,t.scale.set(82.5/E,55/1.5/M,50/b),t})(a);C.rotation.z+=Math.PI,C.position.z-=70,C.position.x+=60;let S=new o.Object3D;if(S.add(c),S.add(C),e.selected){let e=new o.BoxHelper(S,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,S.add(e)}S.rotation.y+=Math.PI,S.position.z-=12.5;let G=(new o.Box3).setFromObject(S),k=Math.abs(G.max.z-G.min.z);return S.scale.set(1,1,95/k),Promise.resolve(S)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/teaching-post/teaching-post.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:11184810});i.side=o.DoubleSide;const s=new o.MeshPhongMaterial({color:11141120}),l=new o.MeshPhongMaterial({color:170}),c=new o.MeshLambertMaterial({color:0});c.side=o.DoubleSide;const u=(new o.TextureLoader).load(n(639)),d=function(){let e=new o.Mesh,t=new o.Shape;t.moveTo(0,.1),t.lineTo(0,.5),t.quadraticCurveTo(0,.6,.1,.6),t.lineTo(.79-.1,.6),t.quadraticCurveTo(.79,.6,.79,.5),t.lineTo(.79,.1),t.quadraticCurveTo(.79,0,.79-.1,0),t.lineTo(.1,0),t.quadraticCurveTo(0,0,0,.1);let n={steps:2,amount:.2,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},r=new o.BoxGeometry(1,1.4,.1),a=new o.Mesh(r,i);a.position.set(.5,1.5,.05),e.add(a);let d=new o.PlaneGeometry(.5,.5),p=new o.Mesh(d,new o.MeshPhongMaterial({map:u,transparent:!0}));p.position.set(.5,1.85,.31),e.add(p);let h=new o.ExtrudeGeometry(t,n),m=new o.Mesh(h,i);m.position.set(.1,1.55,.1),e.add(m);let f=new o.BoxGeometry(.86,.38,.2),y=new o.Mesh(f,i);y.position.set(.495,1.85,.2),e.add(y);let g=new o.ExtrudeGeometry(t,n),w=new o.Mesh(g,i);w.position.set(.1,.85,.1),w.scale.set(1,1.2,.6),e.add(w);let x=new o.BoxGeometry(.86,.51,.1),v=new o.Mesh(x,i);v.position.set(.495,1.225,.15),e.add(v);let M=new o.BoxGeometry(.3,.5,.1),b=new o.Mesh(M,i);b.position.set(.68,1.2,.25),e.add(b);let E=new o.Mesh(M,i);E.position.set(.32,1.2,.25),e.add(E);let _=new o.BoxGeometry(.35,.6,.1),O=new o.Mesh(_,i);O.position.set(.68,1.2,.2),e.add(O);let T=new o.Mesh(_,i);T.position.set(.32,1.2,.2),e.add(T);let I=new o.BoxGeometry(.15,.15,.01),q=new o.Mesh(I,s);q.position.set(.32,1.1,.3),e.add(q);let P=new o.Mesh(I,l);P.position.set(.68,1.1,.3),e.add(P);let D=new o.CylinderGeometry(.05,.05,.05,16,16),C=new o.Mesh(D,s);C.position.set(.32,1.1,.3),C.rotation.x=Math.PI/2,e.add(C);let S=new o.SphereGeometry(.07,16,16),G=new o.Mesh(S,s);G.position.set(.32,1.1,.35),G.rotation.x=Math.PI/2,G.scale.set(1,.5,1),e.add(G);let k=new o.CylinderGeometry(.01,.01,.065,16,16),L=new o.Mesh(k,s);L.position.set(.32,1.15,.32),L.rotation.x=Math.PI/2,L.rotation.z=Math.PI/2,e.add(L);let A=new o.Mesh(D,l);A.position.set(.68,1.1,.3),A.rotation.x=Math.PI/2,e.add(A);let R=new o.Mesh(S,l);R.position.set(.68,1.1,.35),R.rotation.x=Math.PI/2,R.scale.set(1,.5,1),e.add(R);let N=new o.Mesh(k,l);N.position.set(.68,1.15,.32),N.rotation.x=Math.PI/2,N.rotation.z=Math.PI/2,e.add(N);let j=new o.CylinderGeometry(.05,.05,.025,16,16),B=new o.Mesh(j,i);B.position.set(.32,1.3,.3),B.rotation.x=Math.PI/2,e.add(B);let z=new o.Mesh(j,i);z.position.set(.68,1.3,.3),z.rotation.x=Math.PI/2,e.add(z);let V=new o.CylinderGeometry(.051,.051,.05,16,16,!0),U=new o.Mesh(V,c);U.position.set(.32,1.3,.31),U.rotation.x=Math.PI/2,e.add(U);let F=new o.Mesh(V,c);F.position.set(.68,1.3,.31),F.rotation.x=Math.PI/2,e.add(F);let W=new o.BoxGeometry(.1,.02,.02),H=new o.Mesh(W,c);H.position.set(.32,1.3,.32),e.add(H);let $=new o.Mesh(W,c);$.position.set(.68,1.3,.32),e.add($);let Y=new o.CylinderGeometry(.015,.015,.1,16,16),K=new o.Mesh(Y,c);K.rotation.x+=Math.PI/2,K.position.set(.91,2.05,.2),e.add(K);let X=new o.Mesh(Y,c);X.rotation.x+=Math.PI/2,X.position.set(.91,1.65,.2),e.add(X);let Z=new o.Mesh(Y,c);Z.rotation.x+=Math.PI/2,Z.position.set(.08,2.05,.2),e.add(Z);let J=new o.Mesh(Y,c);J.rotation.x+=Math.PI/2,J.position.set(.08,1.65,.2),e.add(J);let Q=new o.CylinderGeometry(.018,.018,.22,16,16,!0),ee=new o.Mesh(Q,i);ee.rotation.x+=Math.PI/2,ee.position.set(.91,2.05,.18),e.add(ee);let te=new o.Mesh(Q,i);te.rotation.x+=Math.PI/2,te.position.set(.91,1.65,.18),e.add(te);let ne=new o.Mesh(Q,i);ne.rotation.x+=Math.PI/2,ne.position.set(.08,2.05,.18),e.add(ne);let oe=new o.Mesh(Q,i);oe.rotation.x+=Math.PI/2,oe.position.set(.08,1.65,.18),e.add(oe);let re=new o.Mesh(Y,c);re.rotation.x+=Math.PI/2,re.position.set(.91,1.5,.16),e.add(re);let ae=new o.Mesh(Y,c);ae.rotation.x+=Math.PI/2,ae.position.set(.91,.95,.16),e.add(ae);let ie=new o.Mesh(Y,c);ie.rotation.x+=Math.PI/2,ie.position.set(.08,1.5,.16),e.add(ie);let se=new o.Mesh(Y,c);se.rotation.x+=Math.PI/2,se.position.set(.08,.95,.16),e.add(se);let le=new o.CylinderGeometry(.018,.018,.1,16,16,!0),ce=new o.Mesh(le,i);ce.rotation.x+=Math.PI/2,ce.position.set(.91,1.5,.16),e.add(ce);let ue=new o.Mesh(le,i);ue.rotation.x+=Math.PI/2,ue.position.set(.91,.95,.16),e.add(ue);let de=new o.Mesh(le,i);de.rotation.x+=Math.PI/2,de.position.set(.08,1.5,.16),e.add(de);let pe=new o.Mesh(le,i);return pe.rotation.x+=Math.PI/2,pe.position.set(.08,.95,.16),e.add(pe),e}(),p=function(){let e=new o.Mesh,t=new o.Shape;t.moveTo(0,.1),t.lineTo(0,.5),t.quadraticCurveTo(0,.6,.1,.6),t.lineTo(.79-.1,.6),t.quadraticCurveTo(.79,.6,.79,.5),t.lineTo(.79,.1),t.quadraticCurveTo(.79,0,.79-.1,0),t.lineTo(.1,0),t.quadraticCurveTo(0,0,0,.1);let n={steps:2,amount:.2,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},r=new o.BoxGeometry(1,1.4,.1),a=new o.Mesh(r,i);a.position.set(.5,1.5,.05),e.add(a);let d=new o.PlaneGeometry(.5,.5),p=new o.Mesh(d,new o.MeshPhongMaterial({map:u,transparent:!0}));p.position.set(.5,1.85,.31),e.add(p);let h=new o.ExtrudeGeometry(t,n),m=new o.Mesh(h,i);m.position.set(.1,1.55,.1),e.add(m);let f=new o.BoxGeometry(.86,.38,.2),y=new o.Mesh(f,i);y.position.set(.495,1.85,.2),e.add(y);let g=new o.ExtrudeGeometry(t,n),w=new o.Mesh(g,i);w.position.set(.1,.85,.1),w.scale.set(1,1.2,.6),e.add(w);let x=new o.BoxGeometry(.86,.51,.1),v=new o.Mesh(x,i);v.position.set(.495,1.225,.15),e.add(v);let M=new o.BoxGeometry(.3,.5,.1),b=new o.Mesh(M,i);b.position.set(.68,1.2,.25),e.add(b);let E=new o.Mesh(M,i);E.position.set(.32,1.2,.25),e.add(E);let _=new o.BoxGeometry(.35,.6,.1),O=new o.Mesh(_,i);O.position.set(.68,1.2,.2),e.add(O);let T=new o.Mesh(_,i);T.position.set(.32,1.2,.2),e.add(T);let I=new o.BoxGeometry(.15,.15,.01),q=new o.Mesh(I,s);q.position.set(.32,1.1,.3),e.add(q);let P=new o.Mesh(I,l);P.position.set(.68,1.1,.3),e.add(P);let D=new o.CylinderGeometry(.05,.05,.05,16,16),C=new o.Mesh(D,s);C.position.set(.32,1.1,.3),C.rotation.x=Math.PI/2,e.add(C);let S=new o.SphereGeometry(.07,16,16),G=new o.Mesh(S,s);G.position.set(.32,1.1,.35),G.rotation.x=Math.PI/2,G.scale.set(1,.5,1),e.add(G);let k=new o.CylinderGeometry(.01,.01,.065,16,16),L=new o.Mesh(k,s);L.position.set(.32,1.15,.32),L.rotation.x=Math.PI/2,L.rotation.z=Math.PI/2,e.add(L);let A=new o.Mesh(D,l);A.position.set(.68,1.1,.3),A.rotation.x=Math.PI/2,e.add(A);let R=new o.Mesh(S,l);R.position.set(.68,1.1,.35),R.rotation.x=Math.PI/2,R.scale.set(1,.5,1),e.add(R);let N=new o.Mesh(k,l);N.position.set(.68,1.15,.32),N.rotation.x=Math.PI/2,N.rotation.z=Math.PI/2,e.add(N);let j=new o.CylinderGeometry(.05,.05,.025,16,16),B=new o.Mesh(j,i);B.position.set(.32,1.3,.3),B.rotation.x=Math.PI/2,e.add(B);let z=new o.Mesh(j,i);z.position.set(.68,1.3,.3),z.rotation.x=Math.PI/2,e.add(z);let V=new o.CylinderGeometry(.051,.051,.05,16,16,!0),U=new o.Mesh(V,c);U.position.set(.32,1.3,.31),U.rotation.x=Math.PI/2,e.add(U);let F=new o.Mesh(V,c);F.position.set(.68,1.3,.31),F.rotation.x=Math.PI/2,e.add(F);let W=new o.BoxGeometry(.1,.02,.02),H=new o.Mesh(W,c);H.position.set(.32,1.3,.32),e.add(H);let $=new o.Mesh(W,c);return $.position.set(.68,1.3,.32),e.add($),e}(),h=function(){let e=new o.Mesh,t=new o.Shape;t.moveTo(0,.1),t.lineTo(0,.5),t.quadraticCurveTo(0,.6,.1,.6),t.lineTo(.79-.1,.6),t.quadraticCurveTo(.79,.6,.79,.5),t.lineTo(.79,.1),t.quadraticCurveTo(.79,0,.79-.1,0),t.lineTo(.1,0),t.quadraticCurveTo(0,0,0,.1);let n={steps:2,amount:.2,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1},r=new o.BoxGeometry(1,1.4,.1),a=new o.Mesh(r,i);a.position.set(.5,1.5,.05),e.add(a);let u=new o.ExtrudeGeometry(t,n),d=new o.Mesh(u,i);d.position.set(.1,1.55,.1),e.add(d);let p=new o.BoxGeometry(.86,.38,.2),h=new o.Mesh(p,i);h.position.set(.495,1.85,.2),e.add(h);let m=new o.ExtrudeGeometry(t,n),f=new o.Mesh(m,i);f.position.set(.1,.85,.1),f.scale.set(1,1.2,.6),e.add(f);let y=new o.BoxGeometry(.86,.51,.1),g=new o.Mesh(y,i);g.position.set(.495,1.225,.15),e.add(g);let w=new o.BoxGeometry(.3,.5,.1),x=new o.Mesh(w,i);x.position.set(.68,1.2,.25),e.add(x);let v=new o.Mesh(w,i);v.position.set(.32,1.2,.25),e.add(v);let M=new o.BoxGeometry(.35,.6,.1),b=new o.Mesh(M,i);b.position.set(.68,1.2,.2),e.add(b);let E=new o.Mesh(M,i);E.position.set(.32,1.2,.2),e.add(E);let _=new o.BoxGeometry(.15,.15,.01),O=new o.Mesh(_,s);O.position.set(.32,1.1,.3),e.add(O);let T=new o.Mesh(_,l);T.position.set(.68,1.1,.3),e.add(T);let I=new o.CylinderGeometry(.05,.05,.025,8,8),q=new o.Mesh(I,i);q.position.set(.32,1.3,.3),q.rotation.x=Math.PI/2,e.add(q);let P=new o.Mesh(I,i);P.position.set(.68,1.3,.3),P.rotation.x=Math.PI/2,e.add(P);let D=new o.CylinderGeometry(.051,.051,.05,8,8,!0),C=new o.Mesh(D,c);C.position.set(.32,1.3,.31),C.rotation.x=Math.PI/2,e.add(C);let S=new o.Mesh(D,c);S.position.set(.68,1.3,.31),S.rotation.x=Math.PI/2,e.add(S);let G=new o.BoxGeometry(.1,.02,.02),k=new o.Mesh(G,c);k.position.set(.32,1.3,.32),e.add(k);let L=new o.Mesh(G,c);return L.position.set(.68,1.3,.32),e.add(L),e}();t.a={name:"three- phase panel",prototype:"items",info:{tag:["furnishings","metal"],group:"Items",title:"three-phase panel",description:"electric panel",image:n(640)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:100,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-20,-10)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:40,height:20,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#ff0000"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(20, 10) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(d.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),c=Math.abs(i.max.z-i.min.z);a.scale.set(40/s,50/l,20/c),a.position.y+=-25+r,a.position.x+=-20,a.position.z+=-10;let u=new o.Object3D;u.add(p.clone()),u.scale.set(40/s,50/l,20/c),u.position.y+=-25+r,u.position.x+=-20,u.position.z+=-10;let m=new o.Object3D;m.add(h.clone()),m.scale.set(40/s,50/l,20/c),m.position.y+=-25+r,m.position.x+=-20,m.position.z+=-10;let f=new o.LOD;if(f.addLevel(a,100),f.addLevel(u,300),f.addLevel(m,700),f.updateMatrix(),f.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(f,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,f.add(e)}return Promise.resolve(f)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/three-phase-panel/PanelTexture.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/three-phase-panel/threePhasePanel.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);t.a={name:"trash",prototype:"items",info:{tag:["furnishings"],group:"Items",title:"Trash",description:"Trash",image:n(642)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;Math.sin(o*Math.PI/180)<0&&(r=180);let i={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},s={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return a.a.createElement("g",null,a.a.createElement("circle",{key:"1",cx:"0",cy:"0",r:20,style:i}),a.a.createElement("line",{key:"2",x1:0,x2:0,y1:20,y2:30,style:s}),a.a.createElement("line",{key:"3",x1:-5,x2:0,y1:24,y2:30,style:s}),a.a.createElement("line",{key:"4",x1:0,x2:5,y1:30,y2:24,style:s}),a.a.createElement("text",{key:"5",cx:"0",cy:"0",transform:`scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length");var a=new o.MeshLambertMaterial({color:14540253});a.side=o.DoubleSide;var i=new o.Object3D,s=new o.CylinderGeometry(.25,.25,1e-4,80),l=new o.Mesh(s,a);i.add(l);var c=new o.CylinderGeometry(.3,.25,.002,80,80,!0),u=new o.Mesh(c,a);u.position.set(0,.001,0),l.add(u);let d=(new o.Box3).setFromObject(i),p=Math.abs(d.max.x-d.min.x),h=Math.abs(d.max.y-d.min.y),m=Math.abs(d.max.z-d.min.z);if(e.selected){let e=new o.BoxHelper(i,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,i.add(e)}return i.position.y+=2.5+r,i.scale.set(30/p,40/h,30/m),Promise.resolve(i)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/trash/trash.png"},function(e,t,n){"use strict";var o=n(1),r=n(28),a=n(0),i=n.n(a),s=n(56),l=n.n(s);let c=null;t.a={name:"tv",prototype:"items",info:{title:"tv",tag:["furnishing","electronics"],group:"Items",description:"LCD TV",image:n(644)},properties:{altitude:{label:"Altitude",type:"length-measure",defaultValue:{length:0}}},render2D:function(e,t,n){let o={length:1.6,unit:"ft"},r={length:.59,unit:"ft"},a=l()(o.length).from(o.unit).to(n.unit),s=l()(r.length).from(r.unit).to(n.unit),c=e.rotation+90,u=0;Math.sin(c*Math.PI/180)<0&&(u=180);let d={stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"},p={stroke:e.selected?"#0096fd":null,strokeWidth:"2px",fill:"#84e1ce"};return i.a.createElement("g",{transform:`translate(${-a/2},${-s/2})`},i.a.createElement("rect",{key:"1",x:"0",y:"0",width:a,height:s,style:d}),i.a.createElement("line",{key:"2",x1:a/2,x2:a/2,y1:s,y2:1.5*s,style:p}),i.a.createElement("line",{key:"3",x1:.35*a,x2:a/2,y1:1.2*s,y2:1.5*s,style:p}),i.a.createElement("line",{key:"4",x1:a/2,x2:.65*a,y1:1.5*s,y2:1.2*s,style:p}),i.a.createElement("text",{key:"5",x:"0",y:"0",transform:`translate(${a/2}, ${s/2}) scale(1,-1) rotate(${u})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,a){let i={length:1.6,unit:"ft"},s={length:.59,unit:"ft"},u={length:1.05,unit:"ft"},d=t=>{let n=l()(i.length).from(i.unit).to(a.unit),r=l()(u.length).from(u.unit).to(a.unit),c=l()(s.length).from(s.unit).to(a.unit),d=e.properties.get("altitude").get("length");if(e.selected){let e=new o.BoxHelper(t,10077179);e.material.linewidth=2,e.material.depthTest=!1,e.renderOrder=1e3,t.add(e)}t.scale.set(n/i.length,r/u.length,c/s.length);let p=(new o.Box3).setFromObject(t),h=[(p.max.x-p.min.x)/2+p.min.x,(p.max.y-p.min.y)/2+p.min.y,(p.max.z-p.min.z)/2+p.min.z];return t.position.x-=h[0],t.position.y-=h[1]-(p.max.y-p.min.y)/2,t.position.z-=h[2],t.position.y+=d,t.rotation.y=Math.PI,t};if(c)return Promise.resolve(d(c.clone()));let p=n(645),h=n(646);return Object(r.a)(p,h,"").then(e=>(c=e,d(c.clone())))}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/tv/tv.png"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/tv/tv.mtl"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/tv/tv.obj"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=(new o.TextureLoader).load(n(648)),s=new o.MeshLambertMaterial({map:i}),l=function(){let e=new o.Mesh,t=new o.Shape;t.moveTo(0,0),t.lineTo(.45,0),t.lineTo(.45,.7),t.lineTo(0,.7);let n=new o.Path;n.moveTo(.225,.35),n.absellipse(.225,.15,.1,.025,.025,2*Math.PI,!1),t.holes.push(n);let r=new o.ExtrudeGeometry(t,{steps:2,amount:.05,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),a=new o.Mesh(r,s);a.position.set(.05,1.2,0),a.rotation.z+=Math.PI,e.add(a);let i=new o.Mesh(r,s);i.position.set(.05,1.2,-.4),i.rotation.z+=Math.PI,e.add(i);let l=new o.Mesh(r,s);l.position.set(.05,1.2,-.4),l.rotation.z+=Math.PI,l.rotation.y+=Math.PI/2,e.add(l);let c=new o.Mesh(r,s);c.position.set(-.45,1.2,-.4),c.rotation.z+=Math.PI,c.rotation.y+=Math.PI/2,e.add(c);let u=new o.BoxGeometry(.55,.45,.05),d=new o.Mesh(u,s);return d.rotation.x+=Math.PI/2,d.position.set(-.175,.475,-.175),e.add(d),e}(),c=function(){let e=new o.Mesh,t=new o.Shape;t.moveTo(0,0),t.lineTo(.45,0),t.lineTo(.45,.7),t.lineTo(0,.7);let n=new o.ExtrudeGeometry(t,{steps:2,amount:.05,bevelEnabled:!1,bevelThickness:1,bevelSize:1,bevelSegments:1}),r=new o.Mesh(n,s);r.position.set(.05,1.2,0),r.rotation.z+=Math.PI,e.add(r);let a=new o.Mesh(n,s);a.position.set(.05,1.2,-.4),a.rotation.z+=Math.PI,e.add(a);let i=new o.Mesh(n,s);i.position.set(.05,1.2,-.4),i.rotation.z+=Math.PI,i.rotation.y+=Math.PI/2,e.add(i);let l=new o.Mesh(n,s);l.position.set(-.45,1.2,-.4),l.rotation.z+=Math.PI,l.rotation.y+=Math.PI/2,e.add(l);let c=new o.BoxGeometry(.55,.45,.05),u=new o.Mesh(c,s);return u.rotation.x+=Math.PI/2,u.position.set(-.175,.475,-.175),e.add(u),e}();t.a={name:"umbrella-stand",prototype:"items",info:{tag:["furnishings","metal"],group:"Items",title:"umbrella stand",description:"umbrella stand",image:n(649)},properties:{altitude:{label:"altitude",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-15,-20)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:30,height:40,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(15, 20) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(l.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),u=Math.abs(i.max.y-i.min.y),d=Math.abs(i.max.z-i.min.z);a.position.x+=-20,a.position.z+=10,a.position.y+=-43.75+r,a.rotation.y+=-Math.PI/2,a.scale.set(30/d,70/u,40/s);let p=new o.Object3D;p.add(c.clone()),p.position.x+=-20,p.position.z+=10,p.position.y+=-43.75+r,p.rotation.y+=-Math.PI/2,p.scale.set(30/d,70/u,40/s);let h=new o.LOD;if(h.addLevel(a,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/umbrella-stand/bronze-texture.jpg"},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/umbrella-stand/umbrellaStand.png"},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n.n(r);const i=new o.MeshLambertMaterial({color:204}),s=new o.MeshLambertMaterial({color:12632256}),l=new o.MeshLambertMaterial({color:0}),c=function(){let e=new o.Mesh,t=new o.Mesh(new o.BoxGeometry(1,.05,1),s);e.add(t);let n=new o.Mesh(new o.BoxGeometry(1,2,.05),s);n.position.set(0,1.025,.475),e.add(n);let r=new o.Mesh(new o.BoxGeometry(1,2,.05),s);r.position.set(0,1.025,-.475),e.add(r);let a=new o.Mesh(new o.BoxGeometry(.05,2,1),s);a.position.set(.475,1.025,0),e.add(a);let c=new o.Mesh(new o.BoxGeometry(1,.05,1),s);c.position.set(0,2.05,0),e.add(c);let u=new o.Mesh(new o.BoxGeometry(.9,.4,.05),s);u.position.set(0,1.025,0),e.add(u);let d=new o.Mesh(new o.BoxGeometry(.9,.05,.5),s);d.position.set(0,.8,.225),e.add(d);let p=new o.Mesh(new o.BoxGeometry(.9,.05,.5),s);p.position.set(0,1.25,-.225),e.add(p);let h=new o.Mesh(new o.BoxGeometry(.05,.77,.9),i);h.position.set(-.475,1.64,0),e.add(h);let m=new o.Mesh(new o.BoxGeometry(.05,.44,.435),i);m.position.set(-.475,1.035,.23),e.add(m);let f=new o.Mesh(new o.BoxGeometry(.05,.77,.9),i);f.position.set(-.475,.41,0),e.add(f);let y=new o.Mesh(new o.BoxGeometry(.05,.44,.435),i);y.position.set(-.475,1.015,-.23),e.add(y);let g;for(let t=1.64;t>=.4;t-=1.14){g=1.64===t?-.35:.35;let n=new o.Mesh(new o.CylinderGeometry(.025,.03,.02,32,32),l);n.rotation.x=.5*Math.PI,n.rotation.z=.5*Math.PI,n.position.set(-.5,t,g),e.add(n);let r=new o.Mesh(new o.CylinderGeometry(.02,.022,.015,32,32),s);r.rotation.x=.5*Math.PI,r.rotation.z=.5*Math.PI,r.position.set(-.515,t,g),e.add(r);let a=new o.Mesh(new o.BoxGeometry(.01,.015,.005,32,32),l);a.position.set(-.518,t,g),e.add(a)}for(let t=-.47;t<=.47;t+=.94)for(let n=.47;n>=-.47;n-=.94){let r=new o.Mesh(new o.CylinderGeometry(.02,.04,.1,4),s);r.position.set(t,-.05,n),r.rotation.y=.25*Math.PI,r.rotation.z=Math.PI,e.add(r)}return e}(),u=function(){let e=new o.Mesh,t=new o.Mesh(new o.BoxGeometry(1,.05,1),s);e.add(t);let n=new o.Mesh(new o.BoxGeometry(1,2,.05),s);n.position.set(0,1.025,.475),e.add(n);let r=new o.Mesh(new o.BoxGeometry(1,2,.05),s);r.position.set(0,1.025,-.475),e.add(r);let a=new o.Mesh(new o.BoxGeometry(.05,2,1),s);a.position.set(.475,1.025,0),e.add(a);let l=new o.Mesh(new o.BoxGeometry(1,.05,1),s);l.position.set(0,2.05,0),e.add(l);let c=new o.Mesh(new o.BoxGeometry(.9,.4,.05),s);c.position.set(0,1.025,0),e.add(c);let u=new o.Mesh(new o.BoxGeometry(.9,.05,.5),s);u.position.set(0,.8,.225),e.add(u);let d=new o.Mesh(new o.BoxGeometry(.9,.05,.5),s);d.position.set(0,1.25,-.225),e.add(d);let p=new o.Mesh(new o.BoxGeometry(.05,.77,.9),i);p.position.set(-.475,1.64,0),e.add(p);let h=new o.Mesh(new o.BoxGeometry(.05,.44,.435),i);h.position.set(-.475,1.035,.23),e.add(h);let m=new o.Mesh(new o.BoxGeometry(.05,.77,.9),i);m.position.set(-.475,.41,0),e.add(m);let f=new o.Mesh(new o.BoxGeometry(.05,.44,.435),i);f.position.set(-.475,1.015,-.23),e.add(f);for(let t=-.47;t<=.47;t+=.94)for(let n=.47;n>=-.47;n-=.94){let r=new o.Mesh(new o.CylinderGeometry(.02,.04,.1,4),s);r.position.set(t,-.05,n),r.rotation.y=.25*Math.PI,r.rotation.z=Math.PI,e.add(r)}return e}();t.a={name:"wardrobe",prototype:"items",info:{tag:["furnishings","metal"],group:"Items",title:"wardrobe",description:"wardrobe",image:n(651)},properties:{altitude:{label:"altitudine",type:"length-measure",defaultValue:{length:0,unit:"cm"}}},render2D:function(e,t,n){let o=e.rotation+90,r=0;return Math.sin(o*Math.PI/180)<0&&(r=180),a.a.createElement("g",{transform:"translate(-30,-30)"},a.a.createElement("rect",{key:"1",x:"0",y:"0",width:60,height:60,style:{stroke:e.selected?"#0096fd":"#000",strokeWidth:"2px",fill:"#84e1ce"}}),a.a.createElement("text",{key:"2",x:"0",y:"0",transform:`translate(30, 30) scale(1,-1) rotate(${r})`,style:{textAnchor:"middle",fontSize:"11px"}},e.type))},render3D:function(e,t,n){let r=e.properties.get("altitude").get("length"),a=new o.Object3D;a.add(c.clone());let i=(new o.Box3).setFromObject(a),s=Math.abs(i.max.x-i.min.x),l=Math.abs(i.max.y-i.min.y),d=Math.abs(i.max.z-i.min.z);a.position.z+=-10,a.position.y+=220/24+r,a.rotation.y+=-Math.PI/2,a.scale.set(60/s,220/l,60/d);let p=new o.Object3D;p.add(u.clone()),p.position.z+=-10,p.position.y+=220/24+r,p.rotation.y+=-Math.PI/2,p.scale.set(60/s,220/l,60/d);let h=new o.LOD;if(h.addLevel(a,200),h.addLevel(p,900),h.updateMatrix(),h.matrixAutoUpdate=!1,e.selected){let e=new o.BoxHelper(h,10077179);e.material.linewidth=5,e.renderOrder=1e3,e.material.depthTest=!1,h.add(e)}return Promise.resolve(h)}}},function(e,t,n){e.exports=n.p+"_/_/src/demo/src/catalog/items/wardrobe/wardrobe.png"},function(e,t,n){"use strict";function o({mode:e},{translator:t}){let n=e=>{let t=document.createElement("a"),n="output"+Date.now()+".png";(n=window.prompt("Insert output filename",n))&&(t.setAttribute("download",n),t.href=e,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t))};return[_,O].includes(e)?a.a.createElement(T,{active:!1,tooltip:t.t("Get Screenshot"),onClick:e=>{e.preventDefault();let t=document.getElementsByTagName("canvas")[0];n(t.toDataURL())}},a.a.createElement(c.a,null)):[d,p,h,m,f,y,g,w,x,v,M,b,E].includes(e)?a.a.createElement(T,{active:!1,tooltip:t.t("Get Screenshot"),onClick:e=>{e.preventDefault();let t=document.getElementsByTagName("svg"),o=t[0];for(let e=1;e<t.length;e++)t[e].width.baseVal.value>o.width.baseVal.value&&(o=t[e]);let r=new XMLSerializer,a=new Image,i=document.createElement("canvas"),s=i.getContext("2d"),l=document.createAttribute("height");l.value=o.height.baseVal.value,i.setAttributeNode(l);let c=document.createAttribute("width");c.value=o.width.baseVal.value,i.setAttributeNode(c),s.fillStyle="white",s.fillRect(0,0,i.width,i.height),a.crossOrigin="anonymous",a.src=`data:image/svg+xml;utf8,${r.serializeToString(o)}`,a.onload=(()=>{s.drawImage(a,0,0,o.width.baseVal.value,o.height.baseVal.value),n(i.toDataURL())})}},a.a.createElement(c.a,null)):null}t.a=o;var r=n(0),a=n.n(r),i=n(2),s=n.n(i),l=n(653),c=n.n(l),u=n(35);const{MODE_IDLE:d,MODE_2D_ZOOM_IN:p,MODE_2D_ZOOM_OUT:h,MODE_2D_PAN:m,MODE_WAITING_DRAWING_LINE:f,MODE_DRAGGING_LINE:y,MODE_DRAGGING_VERTEX:g,MODE_DRAGGING_ITEM:w,MODE_DRAWING_LINE:x,MODE_DRAWING_HOLE:v,MODE_DRAWING_ITEM:M,MODE_DRAGGING_HOLE:b,MODE_ROTATING_ITEM:E,MODE_3D_FIRST_PERSON:_,MODE_3D_VIEW:O}=u.g,{ToolbarButton:T}=u.f.ToolbarComponents;o.propTypes={mode:s.a.string.isRequired},o.contextTypes={translator:s.a.object.isRequired}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=o(n(0)),i=o(n(9));t.default=function(e){return a.default.createElement(i.default,r({viewBox:"0 0 40 40"},e),a.default.createElement("g",null,a.default.createElement("path",{d:"m20 28.4q3.4 0 5.9-2.5t2.5-5.9-2.5-5.9-5.9-2.5-5.9 2.5-2.5 5.9 2.5 5.9 5.9 2.5z m-5-25h10l3 3.2h5.4q1.3 0 2.3 1.1t0.9 2.3v20q0 1.3-0.9 2.3t-2.3 1.1h-26.8q-1.3 0-2.3-1.1t-0.9-2.3v-20q0-1.3 0.9-2.3t2.3-1.1h5.4z m-0.3 16.6q0-2.2 1.6-3.7t3.7-1.6 3.8 1.6 1.5 3.7-1.5 3.8-3.8 1.5-3.7-1.5-1.6-3.8z"})))},e.exports=t.default}],[184]);
//# sourceMappingURL=66e7241892551f59d70a.app.js.map