@mindfusion/diagramming-controls 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var mf_dgc_0x254b=['pageChanging','pageChanged','pageAdded','pageRemoving','pageRemoved','shapeChanged','sender','page','_page','oldPage','_oldPage','length','title','diagram1','addPage','pages','_tabAlignment','tabStrip','parent','req','visible','showAddButton','setMaxSize','pageRenameStartHandler','_itemEditStart','addEventListener','_itemEditEnd','pageRenameEndHandler','tabsSize','_showTabCloseButtons','_showNavigationButtons','_allowRenamePages','documentChangedDelegate','items','propFunctions','generatePropFunctions','prototype','initialize','_tabMouseDownHandler','itemMouseDown','addButtonClick','navButtonClick','onTabDrop','_tabDropHandler','element','parentNode','resetTabs','Top','insertBefore','appendChild','draw','attach','last','dispose','forEach','attachDiagramEvents','document','dataLoaded','queryViewDelegate','removeEventListener','dataLoadedDelegate','queryView','toJson','saveViewProps','tabAlignment','showNavigationButtons','showTabCloseButtons','allowReorder','allowRenamePages','theme','fromJson','updateScale','raiseEvent','controlLoaded','loadViewProps','prepareScriptEvent','pageChangingScript','pageChangedScript','pageAdding','pageRemovingScript','pageRemovedScript','selectedIndex','saveToXml','setRequestHeader','Content-Type','text/xml','diagram','selectSingleNode','DiagramDocument','View','saveView','send','serializeToString','writeString','Theme','loadFromXml','onload','fromXmlDocument','loadView','onerror','responseType','readString','trackMouseHover','getHandler','linkHovered','nodeHovered','trackPointerEvents','nodePointerEnter','linkPointerEnter','linkPointerLeave','nodePointerLeave','resetVirtualScrollGrid','clearHandlers','width','height','_mf_originalHeight','parentSize','display','grid','style','auto\x20','scrollbarSize','gridTemplateRows','overflow','gridRow','min','getScrollbarSize','bounds','scale','_element','inline-block','gridColumn','1\x20/\x20-1','createElement','div','className','mf_diagram_scrollerH','gridColumnStart','gridColumnEnd','overflowX','auto','overflowY','backgroundColor','scrollerH','mf_diagram_scrollerV','hidden','#eee','scrollerV','scrollDelegate','addHandlers','resizeTimeoutId','onVirtualResize','resetTabAlignment','None','px\x20','querySelector','.mf_diagram_scrollerH','.mf_diagram_scrollerV','gridRowStart','updateCanvasSize','_zoomFactor','canvas','measureUnit','firstChild','px\x20auto\x20','invalidRect','repaint','sizeChanged','Empty','titleColor','add','header','onPageValidateAction','removePage','savePageState','scrollX','scrollY','restorePageState','zoomFactor','item','enabled','mfc-add','_lastIndex','toString','dataMfc','mfc-first','first','mfc-prev','mfc-next','mfc-last','selectedPage','getItemByHeader','hasCssClass','target','mfc-tabbutton-close','inplaceEditBehavior','startEdit','eventHandled','rawEventArgs','getGroupItems','indexOfItem','_items','splice','_selectedPage','selectItem','where','_document','documentChanged','onDataLoaded','diagramChanged','value','Pixel','scrollMode','NavButtons','allowDrag','_theme','querySelectorAll','link','removeChild','href','themesPath','.css','rel','stylesheet','shadowParent','_themesPath','setTheme','allowInplaceEdit','oldIndex','max','index','cancel','inplaceController','inplaceHandler','endEdit','onPageRenameEnd','text','pointerdown','_pageChanging','_pageChanged','_pageAdding','_pageAdded','_pageRemoving','_pageRemoved','create','createControl','findControl','connectedCallback','attachShadow','replace','adoptedStyleSheets','cssText','getAttribute','removeAttribute','drawControlPoint','offset','save','fillStyle','fillRect','lastHandle','saveState','strokeColor','strokeThickness','strokeDashStyle','loadState','isDummy','defaultSize','startPoint','clone','endPoint','center','mid','addVector','translate','transformPoint','toShape','fromCenterAndSize','addToContext','moveTo','#000000','strokeStyle','color','_mf_scale','apply','dashStyle','beginPath','lineTo','stroke','drawControlPoints','hitTestHandle','distance','updateFromHandle','exportElement','exportShapeElement','push','points','fromPoints','orientate','sqrt','bezierCurveTo','lineWidth','restore','Bezier','fromCenter','default','addArcPoints','controlPoint','calcCenter','abs','degreeToRadian','angleBetween','ccw','pow','Arc','arc','topLeft','bottomRight','distToLine','cornerRadius','quadraticCurveTo','RoundyRect','fromBounds','roundRect','type','RectangleComposite','right','DiamondComposite','bottom','EllipseComposite','ChangeCommand','states','newStates','dropLocation','elementIndex','outline','filledDecoration','registerElement','set','AddDecorationCommand','constructor','shapeBuilder','AddFilledDecorationCommand','getElements','newDecoration','filledDecorations','anchorPoints','ReplaceOutlineCommand','oldOutline','clearOutline','newOutline','ReplaceElementCommand','InsertElementCommand','nextState','RemoveElementCommand','indexOf','removeElements','removeFromOutline','prevState','decorations','textArea','hitElement','#ff0000','ellipse','closePath','#0000ff','undo','AddAnchorCommand','selectedElement','invalidate','execute','_bounds','path','getBounds','fillColor','fill','strokeRect','#ccc','concat','anchorType','size','setCenter','Anchor','fromPoint','allowIncoming','Out','markStyle','BothWays','anchorSize','Cross','ignoreStyle','rgba(0,\x200,\x20100,\x200.5)','minDistToRect','shape','parseShape','black','#fff','useTextArea','createBuilders','outlineBuilder','shapeDecorationElements','shapeDecorationBuilder','elements','pen','anchorPattern','textAreaElements','lastPoint','createBuilder','command','func','line','args','bezier','exportShape','exportElements','shapeDecorations','find','outlinePen','shapeDecorationPen','shapeDecorationBrush','outlineElements','exportShapeElements','decorationElements','fromLTRB','minX','minY','maxX','maxY','join','showTextArea','allElements','MAX_VALUE','nearestElement','hitTestOutlineTarget','handlesSize','firstHandle','hitTest','FilledDecorationResizeController','hitTestOutline','OutlineController','ElementController','handle','adjacent','changeCommand','FilledDecoration','currentScale','hasMoved','initialDistance','onMouseMove','FilledDecorationMoveController','previousPosition','scaleCentered','adjacentHandle','#ffffff','pointedHandlesBrush','#cccccc','shadowsStyle','showGrid','backBrush','gridSizeX','gridSizeY','gridStyle','Lines','gridColor','doRepaint','viewport','context','_mf_transform','_mf_minVisibleFontSize','minVisibleFontSize','_mf_measureUnit','drawBackground','disabled','transform','drawGrid','getZOrder','raiseRepaint','repainting','drawForeground','pointedElement','dropCommand','_selectedElement','removeElement','_shapeBuilder','dirty','_dirty','shapeSize','behavior','mouseInputDispatcher','bind','onPointerMove','onPointerUp','onKeyUp','floor','onBeforeRepaint','getPixel','matrix','doClip','cyan','clientToDoc','onElementDrag','hitTestDropTarget','saveCommand','designer','onPointerDown','controller','onMouseDown','alignToGrid','newWithOffset','updateDragIndicator','alignPointToGrid','undoHistory','currentCommand','fromCommand','redo','importShape','mf_clipboard','open','templatesLabel','Decorations','primitivesLabel','anchorPointsLabel','Anchor\x20Points','labelBrush','#495f77','iconSize','drawShadow','fillShapes','brush','#000','addNode','tag','Rectangle','Rhombus','Ellipse','draggedNode','targetAsDiagramView','getCursorPos','move','removeDragIndicator','mf_drag','body','cursor','_draggedNode','removeDragShape','composed','composedPath','nodeType','1fr\x20140px','relative','_view','view','140px','120','palette','allowResize','allowMaximize','allowPin','Properties','template','autoSize','propertyPanel','showShapeProperties','generatePropertyPanelTemplate','flex','flexDirection','alignItems','stretch','padding','innerText','Stroke\x20Color','input','p_strokecolor','l_strokethickness','Stroke\x20Thickness','p_strokethickness','number','onchange','setProp','label','Stroke\x20Dash\x20Style','p_strokedashstyle','entries','option','l_fillcolor','Fill\x20Color','l_anchorstyle','Style','select','p_anchorstyle','l_anchorsize','Size','outerHTML','rebindPropertyPanel','block','l_strokedashstyle','none','strokecolor','strokethickness','strokedashstyle','fillcolor','anchorstyle','anchorsize','copyToClipboard','refresh','_showShapeProperties','_shapeChanged','undefined','register','customElements','get','define','mindfusion-tabbeddiagramview'];var mf_dgc_0x1bf2=function(_0x2d7433,_0x4b8950){_0x2d7433=_0x2d7433-0x0;var _0x40db52=mf_dgc_0x254b[_0x2d7433];return _0x40db52;};import{CancelEventArgs,Control,DomUtils,EventArgs,EventDispatcher,ControlUtils}from'@mindfusion/controls';import{DiagramView,DiagramDocument,DiagramPage,CompatConfig,Events as mf_dgc_0x1bbe2b,Theme,XmlPersistContext,Diagram,Shape,ShapeElement,ShapeDecoration,MarkStyle,ShapeRenderer,AnchorPattern,AnchorPoint,GridStyle,Behavior,NodeListView,Style,ShapeNode,Shapes,WebComponents as mf_dgc_0x393b60}from'@mindfusion/diagramming';import{Unit,UnitType}from'@mindfusion/common';import{TabStrip,ToolStripItem,ToolStripItemType,TabsScrollMode,uicss,listviewcss,toolstripcss,tabstripcss,Window,WebComponents as mf_dgc_0x165f78}from'@mindfusion/common-ui';import{List}from'@mindfusion/common-collections';import{GraphicsUnit,Rect,Size,Point,DrawingUtils,Matrix,DashStyle,Geometry,Path}from'@mindfusion/drawing';const TabAlignment={'None':0x0,'Top':0x1,'Bottom':0x3};const AnchorType={'In':0x0,'Out':0x1,'BothWays':0x2};class Events{static get[mf_dgc_0x1bf2('0x0')](){return mf_dgc_0x1bf2('0x0');}static get[mf_dgc_0x1bf2('0x1')](){return mf_dgc_0x1bf2('0x1');}static get['pageAdding'](){return'pageAdding';}static get['pageAdded'](){return mf_dgc_0x1bf2('0x2');}static get['pageRemoving'](){return mf_dgc_0x1bf2('0x3');}static get[mf_dgc_0x1bf2('0x4')](){return'pageRemoved';}static get[mf_dgc_0x1bf2('0x5')](){return mf_dgc_0x1bf2('0x5');}}class PageEventArgs extends CancelEventArgs{constructor(args){super();if(args['sender'])this[mf_dgc_0x1bf2('0x6')]=args[mf_dgc_0x1bf2('0x6')];if(args[mf_dgc_0x1bf2('0x7')])this[mf_dgc_0x1bf2('0x8')]=args['page'];if(args['oldPage'])this['_oldPage']=args[mf_dgc_0x1bf2('0x9')];}get[mf_dgc_0x1bf2('0x7')](){return this[mf_dgc_0x1bf2('0x8')];}get[mf_dgc_0x1bf2('0x9')](){return this[mf_dgc_0x1bf2('0xa')];}}class TabbedDiagramView extends DiagramView{constructor(element,document){var doc=document||new DiagramDocument();if(!doc['pages'][mf_dgc_0x1bf2('0xb')]){var page=new DiagramPage();page[mf_dgc_0x1bf2('0xc')]=mf_dgc_0x1bf2('0xd');doc[mf_dgc_0x1bf2('0xe')](page);}super(element,doc[mf_dgc_0x1bf2('0xf')][0x0],TabbedDiagramView);this[mf_dgc_0x1bf2('0x10')]=TabAlignment['None'];this[mf_dgc_0x1bf2('0x11')]=new TabStrip();this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x12')]=this;this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x13')]=()=>{return!![];};this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x14')]=![];this[mf_dgc_0x1bf2('0x11')]['autoSizeTabs']=![];this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x15')]=![];this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x16')]=!![];this[mf_dgc_0x1bf2('0x17')]=(sender,args)=>this['onPageRenameStart'](sender,args);this['pageRenameEndHandler']=(sender,args)=>this['onPageRenameEnd'](sender,args);this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x18')][mf_dgc_0x1bf2('0x19')](this[mf_dgc_0x1bf2('0x17')]);this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x1a')]['addEventListener'](this[mf_dgc_0x1bf2('0x1b')]);this[mf_dgc_0x1bf2('0x1c')]=0x14;this[mf_dgc_0x1bf2('0x1d')]=![];this[mf_dgc_0x1bf2('0x1e')]=![];this[mf_dgc_0x1bf2('0x1f')]=![];this[mf_dgc_0x1bf2('0x20')]=(sender,args)=>this['onDocumentChanged'](sender,args);this['document']=doc;this['_lastIndex']=0x1;this[mf_dgc_0x1bf2('0x21')]=new List(this['_document'][mf_dgc_0x1bf2('0xf')]);if(CompatConfig[mf_dgc_0x1bf2('0x22')]){CompatConfig[mf_dgc_0x1bf2('0x23')](TabbedDiagramView[mf_dgc_0x1bf2('0x24')]);}}[mf_dgc_0x1bf2('0x25')](){super[mf_dgc_0x1bf2('0x25')]();this[mf_dgc_0x1bf2('0x26')]=(sender,args)=>{this['onTabMouseDown'](sender,args);};this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x27')][mf_dgc_0x1bf2('0x19')](this['_tabMouseDownHandler']);this[mf_dgc_0x1bf2('0x11')]['closeButtonClick']['addEventListener'](this['_tabMouseDownHandler']);this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x28')][mf_dgc_0x1bf2('0x19')](this[mf_dgc_0x1bf2('0x26')]);this['tabStrip'][mf_dgc_0x1bf2('0x29')]['addEventListener'](this[mf_dgc_0x1bf2('0x26')]);this['_tabDropHandler']=(sender,args)=>{this[mf_dgc_0x1bf2('0x2a')](sender,args);};this[mf_dgc_0x1bf2('0x11')]['itemDrop']['addEventListener'](this[mf_dgc_0x1bf2('0x2b')]);this[mf_dgc_0x1bf2('0x11')]['shadowParent']=this[mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x2d')];this[mf_dgc_0x1bf2('0x2e')]();if(this['tabAlignment']==TabAlignment[mf_dgc_0x1bf2('0x2f')])this[mf_dgc_0x1bf2('0x2c')]['parentNode'][mf_dgc_0x1bf2('0x30')](this[mf_dgc_0x1bf2('0x11')]['draw'](),this[mf_dgc_0x1bf2('0x2c')]);else this[mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x2d')][mf_dgc_0x1bf2('0x31')](this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x32')]());this['tabStrip'][mf_dgc_0x1bf2('0x33')]();this['selectedPage']=this[mf_dgc_0x1bf2('0x21')][mf_dgc_0x1bf2('0x34')]();}[mf_dgc_0x1bf2('0x35')](){this[mf_dgc_0x1bf2('0x21')][mf_dgc_0x1bf2('0x36')](item=>item[mf_dgc_0x1bf2('0x35')]());this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x35')]();super['dispose']();}[mf_dgc_0x1bf2('0x37')](){this[mf_dgc_0x1bf2('0x38')][mf_dgc_0x1bf2('0x19')](mf_dgc_0x1bbe2b[mf_dgc_0x1bf2('0x39')],this['dataLoadedDelegate']);this['document']['addEventListener'](mf_dgc_0x1bbe2b['queryView'],this[mf_dgc_0x1bf2('0x3a')]);}['detachDiagramEvents'](){this[mf_dgc_0x1bf2('0x38')][mf_dgc_0x1bf2('0x3b')](mf_dgc_0x1bbe2b[mf_dgc_0x1bf2('0x39')],this[mf_dgc_0x1bf2('0x3c')]);this[mf_dgc_0x1bf2('0x38')][mf_dgc_0x1bf2('0x3b')](mf_dgc_0x1bbe2b[mf_dgc_0x1bf2('0x3d')],this[mf_dgc_0x1bf2('0x3a')]);}[mf_dgc_0x1bf2('0x3e')](){var json=this[mf_dgc_0x1bf2('0x38')]['toJsonObject']();this[mf_dgc_0x1bf2('0x3f')](json);return Control[mf_dgc_0x1bf2('0x3e')](json);}['saveViewProps'](json){super['saveViewProps'](json);json[mf_dgc_0x1bf2('0x40')]=this['tabAlignment'];json[mf_dgc_0x1bf2('0x1c')]=this[mf_dgc_0x1bf2('0x1c')];json[mf_dgc_0x1bf2('0x41')]=this[mf_dgc_0x1bf2('0x41')];json[mf_dgc_0x1bf2('0x15')]=this[mf_dgc_0x1bf2('0x15')];json[mf_dgc_0x1bf2('0x42')]=this[mf_dgc_0x1bf2('0x42')];json[mf_dgc_0x1bf2('0x43')]=this[mf_dgc_0x1bf2('0x43')];json[mf_dgc_0x1bf2('0x44')]=this[mf_dgc_0x1bf2('0x44')];json[mf_dgc_0x1bf2('0x45')]=this[mf_dgc_0x1bf2('0x45')]?this[mf_dgc_0x1bf2('0x45')]['id']:null;json['selectedIndex']=this['selectedIndex'];}[mf_dgc_0x1bf2('0x46')](json){if(json>''){var obj=Control[mf_dgc_0x1bf2('0x46')](json);this[mf_dgc_0x1bf2('0x38')]['fromJsonObject'](obj);this[mf_dgc_0x1bf2('0x47')]();this['loadViewProps'](obj);}this[mf_dgc_0x1bf2('0x48')](mf_dgc_0x1bbe2b[mf_dgc_0x1bf2('0x49')]);}[mf_dgc_0x1bf2('0x4a')](obj){super[mf_dgc_0x1bf2('0x4a')](obj);this[mf_dgc_0x1bf2('0x4b')](Events['pageChanging'],obj[mf_dgc_0x1bf2('0x4c')]);this[mf_dgc_0x1bf2('0x4b')](Events[mf_dgc_0x1bf2('0x1')],obj[mf_dgc_0x1bf2('0x4d')]);this[mf_dgc_0x1bf2('0x4b')](Events[mf_dgc_0x1bf2('0x4e')],obj['pageAddingScript']);this[mf_dgc_0x1bf2('0x4b')](Events['pageAdded'],obj['pageAddedScript']);this['prepareScriptEvent'](Events[mf_dgc_0x1bf2('0x3')],obj[mf_dgc_0x1bf2('0x4f')]);this['prepareScriptEvent'](Events[mf_dgc_0x1bf2('0x4')],obj[mf_dgc_0x1bf2('0x50')]);if(obj[mf_dgc_0x1bf2('0x40')]!==undefined)this[mf_dgc_0x1bf2('0x40')]=obj[mf_dgc_0x1bf2('0x40')];if(obj[mf_dgc_0x1bf2('0x1c')]!==undefined)this[mf_dgc_0x1bf2('0x1c')]=obj[mf_dgc_0x1bf2('0x1c')];if(obj[mf_dgc_0x1bf2('0x41')]!==undefined)this['showNavigationButtons']=obj['showNavigationButtons'];if(obj[mf_dgc_0x1bf2('0x15')]!==undefined)this['showAddButton']=obj[mf_dgc_0x1bf2('0x15')];if(obj[mf_dgc_0x1bf2('0x42')]!==undefined)this[mf_dgc_0x1bf2('0x42')]=obj[mf_dgc_0x1bf2('0x42')];if(obj[mf_dgc_0x1bf2('0x43')]!==undefined)this[mf_dgc_0x1bf2('0x43')]=obj[mf_dgc_0x1bf2('0x43')];if(obj[mf_dgc_0x1bf2('0x44')]!==undefined)this[mf_dgc_0x1bf2('0x44')]=obj[mf_dgc_0x1bf2('0x44')];if(obj[mf_dgc_0x1bf2('0x45')])this['theme']=Theme['fromId'](obj[mf_dgc_0x1bf2('0x45')]);if(obj[mf_dgc_0x1bf2('0x51')]!==undefined)this[mf_dgc_0x1bf2('0x51')]=obj[mf_dgc_0x1bf2('0x51')];}[mf_dgc_0x1bf2('0x52')](url){var xhr=new XMLHttpRequest();xhr['open']('POST',url,!![]);xhr[mf_dgc_0x1bf2('0x53')](mf_dgc_0x1bf2('0x54'),mf_dgc_0x1bf2('0x55'));var xmlDoc=this[mf_dgc_0x1bf2('0x38')]['toXmlDocument']();var context=new XmlPersistContext(this[mf_dgc_0x1bf2('0x56')],xmlDoc);var rootElement=context[mf_dgc_0x1bf2('0x57')](mf_dgc_0x1bf2('0x58'),xmlDoc);var viewElement=xmlDoc['createElement'](mf_dgc_0x1bf2('0x59'));rootElement[mf_dgc_0x1bf2('0x31')](viewElement);this[mf_dgc_0x1bf2('0x5a')](viewElement,context);var serializer=new XMLSerializer();xhr[mf_dgc_0x1bf2('0x5b')](serializer[mf_dgc_0x1bf2('0x5c')](xmlDoc));}['saveView'](element,context){super[mf_dgc_0x1bf2('0x5a')](element,context);if(this['theme'])context[mf_dgc_0x1bf2('0x5d')](this['theme']['id'],mf_dgc_0x1bf2('0x5e'),element);}[mf_dgc_0x1bf2('0x5f')](fileUrl,onLoad,onError){var diagram=this[mf_dgc_0x1bf2('0x38')];var xhr=new XMLHttpRequest();xhr[mf_dgc_0x1bf2('0x60')]=function(){var document=xhr['responseXML'];diagram[mf_dgc_0x1bf2('0x61')](document);var context=new XmlPersistContext(diagram,document);var diagramElement=context[mf_dgc_0x1bf2('0x57')](mf_dgc_0x1bf2('0x58'),document);this[mf_dgc_0x1bf2('0x62')](mf_dgc_0x1bf2('0x59'),diagramElement,context);if(onLoad)onLoad(diagram);}['bind'](this);xhr[mf_dgc_0x1bf2('0x63')]=function(){console['log']('Error\x20while\x20getting\x20XML.');if(onError)onError(diagram);};xhr['open']('GET',fileUrl);xhr[mf_dgc_0x1bf2('0x64')]=mf_dgc_0x1bf2('0x38');xhr['send']();}[mf_dgc_0x1bf2('0x62')](elementName,parentElement,context){var element=super[mf_dgc_0x1bf2('0x62')](elementName,parentElement,context);if(!element)return;var themeId=context[mf_dgc_0x1bf2('0x65')](mf_dgc_0x1bf2('0x5e'),element);if(themeId)this['theme']=Theme['fromId'](themeId);}[mf_dgc_0x1bf2('0x66')](){return Control[mf_dgc_0x1bf2('0x67')](this[mf_dgc_0x1bf2('0x38')],'nodeHovered')||Control[mf_dgc_0x1bf2('0x67')](this['document'],mf_dgc_0x1bf2('0x68'))||Control[mf_dgc_0x1bf2('0x67')](this[mf_dgc_0x1bf2('0x56')],mf_dgc_0x1bf2('0x69'))||Control['getHandler'](this[mf_dgc_0x1bf2('0x56')],mf_dgc_0x1bf2('0x68'));}[mf_dgc_0x1bf2('0x6a')](){return this['trackMouseHover']()||Control[mf_dgc_0x1bf2('0x67')](this[mf_dgc_0x1bf2('0x38')],mf_dgc_0x1bf2('0x6b'))||Control[mf_dgc_0x1bf2('0x67')](this[mf_dgc_0x1bf2('0x38')],'nodePointerLeave')||Control[mf_dgc_0x1bf2('0x67')](this['document'],mf_dgc_0x1bf2('0x6c'))||Control['getHandler'](this[mf_dgc_0x1bf2('0x38')],mf_dgc_0x1bf2('0x6d'))||Control[mf_dgc_0x1bf2('0x67')](this[mf_dgc_0x1bf2('0x56')],mf_dgc_0x1bf2('0x6b'))||Control['getHandler'](this[mf_dgc_0x1bf2('0x56')],mf_dgc_0x1bf2('0x6e'))||Control[mf_dgc_0x1bf2('0x67')](this['diagram'],'linkPointerEnter')||Control[mf_dgc_0x1bf2('0x67')](this[mf_dgc_0x1bf2('0x56')],'linkPointerLeave');}[mf_dgc_0x1bf2('0x6f')](){var canvas=this['element'];if(!canvas[mf_dgc_0x1bf2('0x2d')])return;if(!this['scrollerH']){Control[mf_dgc_0x1bf2('0x70')](canvas[mf_dgc_0x1bf2('0x2d')]);var bounds=DomUtils['getBounds'](canvas[mf_dgc_0x1bf2('0x2d')],null,!![]);var w=bounds[mf_dgc_0x1bf2('0x71')];var h=bounds[mf_dgc_0x1bf2('0x72')];if(h!=0x0)canvas['parentNode'][mf_dgc_0x1bf2('0x73')]=h;this[mf_dgc_0x1bf2('0x74')]={'width':w,'height':h};canvas[mf_dgc_0x1bf2('0x2d')]['style'][mf_dgc_0x1bf2('0x75')]=mf_dgc_0x1bf2('0x76');canvas[mf_dgc_0x1bf2('0x2d')][mf_dgc_0x1bf2('0x77')]['gridTemplateColumns']=mf_dgc_0x1bf2('0x78')+this[mf_dgc_0x1bf2('0x79')]+'px';if(this[mf_dgc_0x1bf2('0x40')]==TabAlignment[mf_dgc_0x1bf2('0x2f')])canvas['parentNode'][mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x7a')]=this['tabsSize']+'px\x20auto\x20'+this[mf_dgc_0x1bf2('0x79')]+'px';else canvas[mf_dgc_0x1bf2('0x2d')][mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x7a')]=mf_dgc_0x1bf2('0x78')+this[mf_dgc_0x1bf2('0x79')]+'px\x20'+this[mf_dgc_0x1bf2('0x1c')]+'px';canvas[mf_dgc_0x1bf2('0x2d')][mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x7b')]='';canvas['style'][mf_dgc_0x1bf2('0x7c')]=this[mf_dgc_0x1bf2('0x40')]==TabAlignment[mf_dgc_0x1bf2('0x2f')]?0x2:0x1;canvas[mf_dgc_0x1bf2('0x71')]=Math[mf_dgc_0x1bf2('0x7d')](bounds[mf_dgc_0x1bf2('0x71')]-this[mf_dgc_0x1bf2('0x7e')](0x1),this['diagram']['bounds'][mf_dgc_0x1bf2('0x71')]*this['scale']);canvas[mf_dgc_0x1bf2('0x72')]=Math[mf_dgc_0x1bf2('0x7d')](h-this['tabsSize']-this['getScrollbarSize'](0x0),this[mf_dgc_0x1bf2('0x56')][mf_dgc_0x1bf2('0x7f')][mf_dgc_0x1bf2('0x72')]*this[mf_dgc_0x1bf2('0x80')]);this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x81')][mf_dgc_0x1bf2('0x77')]['display']=mf_dgc_0x1bf2('0x82');this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x81')][mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x83')]=mf_dgc_0x1bf2('0x84');var scrollerH=document[mf_dgc_0x1bf2('0x85')](mf_dgc_0x1bf2('0x86'));scrollerH[mf_dgc_0x1bf2('0x87')]=mf_dgc_0x1bf2('0x88');scrollerH['style']['gridRow']=this[mf_dgc_0x1bf2('0x40')]==TabAlignment[mf_dgc_0x1bf2('0x2f')]?0x3:0x2;scrollerH[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x89')]=0x1;scrollerH['style'][mf_dgc_0x1bf2('0x8a')]=0x2;scrollerH[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x72')]=this[mf_dgc_0x1bf2('0x79')]+'px';scrollerH[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x71')]=bounds[mf_dgc_0x1bf2('0x71')]-this[mf_dgc_0x1bf2('0x79')]+'px';scrollerH[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x8b')]=mf_dgc_0x1bf2('0x8c');scrollerH[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x8d')]='hidden';scrollerH[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x8e')]='#eee';this[mf_dgc_0x1bf2('0x8f')]=scrollerH;var innerH=document[mf_dgc_0x1bf2('0x85')](mf_dgc_0x1bf2('0x86'));innerH[mf_dgc_0x1bf2('0x77')]['height']=this[mf_dgc_0x1bf2('0x79')]+'px';scrollerH[mf_dgc_0x1bf2('0x31')](innerH);canvas[mf_dgc_0x1bf2('0x2d')][mf_dgc_0x1bf2('0x31')](scrollerH);var scrollerV=document[mf_dgc_0x1bf2('0x85')](mf_dgc_0x1bf2('0x86'));scrollerV[mf_dgc_0x1bf2('0x87')]=mf_dgc_0x1bf2('0x90');scrollerV['style']['gridRowStart']=this[mf_dgc_0x1bf2('0x40')]==TabAlignment[mf_dgc_0x1bf2('0x2f')]?0x2:0x1;scrollerV[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x71')]=this[mf_dgc_0x1bf2('0x79')]+'px';scrollerV[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x72')]=bounds[mf_dgc_0x1bf2('0x72')]-this[mf_dgc_0x1bf2('0x1c')]-this['scrollbarSize']+'px';scrollerV[mf_dgc_0x1bf2('0x77')]['overflowX']=mf_dgc_0x1bf2('0x91');scrollerV[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x8d')]=mf_dgc_0x1bf2('0x8c');scrollerV[mf_dgc_0x1bf2('0x77')]['backgroundColor']=mf_dgc_0x1bf2('0x92');this[mf_dgc_0x1bf2('0x93')]=scrollerV;var innerV=document['createElement'](mf_dgc_0x1bf2('0x86'));innerV['style'][mf_dgc_0x1bf2('0x71')]=this[mf_dgc_0x1bf2('0x79')]+'px';scrollerV[mf_dgc_0x1bf2('0x31')](innerV);canvas['parentNode'][mf_dgc_0x1bf2('0x31')](scrollerV);Control['addHandlers'](scrollerH,{'scroll':this[mf_dgc_0x1bf2('0x94')]});Control[mf_dgc_0x1bf2('0x95')](scrollerV,{'scroll':this[mf_dgc_0x1bf2('0x94')]});if(!this[mf_dgc_0x1bf2('0x96')]){var thisObj=this;this[mf_dgc_0x1bf2('0x96')]=setInterval(function(){thisObj[mf_dgc_0x1bf2('0x97')]();},0xc8);}}}[mf_dgc_0x1bf2('0x98')](){if(!this['element'])return;this[mf_dgc_0x1bf2('0x11')]['visible']=this['tabAlignment']!=TabAlignment[mf_dgc_0x1bf2('0x99')];var canvas=this[mf_dgc_0x1bf2('0x2c')];if(this[mf_dgc_0x1bf2('0x40')]==TabAlignment[mf_dgc_0x1bf2('0x2f')])canvas['parentNode']['style'][mf_dgc_0x1bf2('0x7a')]=this[mf_dgc_0x1bf2('0x1c')]+'px\x20auto\x20'+this[mf_dgc_0x1bf2('0x79')]+'px';else canvas[mf_dgc_0x1bf2('0x2d')][mf_dgc_0x1bf2('0x77')]['gridTemplateRows']=mf_dgc_0x1bf2('0x78')+this['scrollbarSize']+mf_dgc_0x1bf2('0x9a')+this['tabsSize']+'px';canvas[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x7c')]=this[mf_dgc_0x1bf2('0x40')]==TabAlignment['Top']?0x2:0x1;var scrollerH=this[mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x2d')][mf_dgc_0x1bf2('0x9b')](mf_dgc_0x1bf2('0x9c'));if(this[mf_dgc_0x1bf2('0x8f')]){scrollerH['style']['gridRow']=this[mf_dgc_0x1bf2('0x40')]==TabAlignment[mf_dgc_0x1bf2('0x2f')]?0x3:0x2;var scrollerV=this[mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x2d')][mf_dgc_0x1bf2('0x9b')](mf_dgc_0x1bf2('0x9d'));scrollerV['style'][mf_dgc_0x1bf2('0x9e')]=this[mf_dgc_0x1bf2('0x40')]==TabAlignment[mf_dgc_0x1bf2('0x2f')]?0x2:0x1;}this[mf_dgc_0x1bf2('0x9f')]();}['updateCanvasSize'](){if(!this[mf_dgc_0x1bf2('0x2c')])return;var scale=this[mf_dgc_0x1bf2('0xa0')]/0x64/GraphicsUnit['getPixel'](this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0xa2')]);if(this[mf_dgc_0x1bf2('0x8f')]){var parentDiv=this[mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x2d')];this[mf_dgc_0x1bf2('0x8f')][mf_dgc_0x1bf2('0xa3')][mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x71')]=this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x7f')][mf_dgc_0x1bf2('0x71')]*scale+'px';this[mf_dgc_0x1bf2('0x93')]['firstChild'][mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x72')]=this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x7f')]['height']*scale+'px';var vScrollSize=this[mf_dgc_0x1bf2('0x7e')](0x1);var hScrollSize=this[mf_dgc_0x1bf2('0x7e')](0x0);this[mf_dgc_0x1bf2('0x93')][mf_dgc_0x1bf2('0x77')]['width']=vScrollSize+'px';this[mf_dgc_0x1bf2('0x8f')][mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x72')]=hScrollSize+'px';parentDiv['style']['gridTemplateColumns']=mf_dgc_0x1bf2('0x78')+vScrollSize+'px';if(this[mf_dgc_0x1bf2('0x40')]==TabAlignment[mf_dgc_0x1bf2('0x2f')])parentDiv[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x7a')]=this[mf_dgc_0x1bf2('0x1c')]+mf_dgc_0x1bf2('0xa4')+hScrollSize+'px';else parentDiv[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x7a')]=mf_dgc_0x1bf2('0x78')+hScrollSize+mf_dgc_0x1bf2('0x9a')+this[mf_dgc_0x1bf2('0x1c')]+'px';var bounds=DomUtils['getBounds'](parentDiv,null,!![]);var h=bounds['height'];if(h==0x0)h=parentDiv[mf_dgc_0x1bf2('0x73')];if(h==0x0)h=this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x7f')][mf_dgc_0x1bf2('0x72')]*scale;this[mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x71')]=Math[mf_dgc_0x1bf2('0x7d')](bounds['width']-vScrollSize,this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x7f')][mf_dgc_0x1bf2('0x71')]*scale);this[mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x72')]=Math[mf_dgc_0x1bf2('0x7d')](h-this[mf_dgc_0x1bf2('0x1c')]-hScrollSize,this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x7f')][mf_dgc_0x1bf2('0x72')]*scale);this[mf_dgc_0x1bf2('0x8f')]['style'][mf_dgc_0x1bf2('0x71')]=bounds[mf_dgc_0x1bf2('0x71')]-vScrollSize+'px';this['scrollerV'][mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x72')]=h-this[mf_dgc_0x1bf2('0x1c')]-hScrollSize+'px';}this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0xa5')]=null;this['canvas'][mf_dgc_0x1bf2('0xa6')]();this['diagram'][mf_dgc_0x1bf2('0x48')](mf_dgc_0x1bbe2b[mf_dgc_0x1bf2('0xa7')],EventArgs[mf_dgc_0x1bf2('0xa8')]);}[mf_dgc_0x1bf2('0x2e')](){this['tabStrip']['items']['clear']();this[mf_dgc_0x1bf2('0x38')]['pages'][mf_dgc_0x1bf2('0x36')]((page,index)=>{var header=new ToolStripItem(ToolStripItemType['Label'],page['title']);header[mf_dgc_0x1bf2('0xa9')]=page['titleColor'];header['imageSrc']=page['iconUrl'];this['tabStrip'][mf_dgc_0x1bf2('0x21')][mf_dgc_0x1bf2('0xaa')](header);page[mf_dgc_0x1bf2('0xab')]=header;});}[mf_dgc_0x1bf2('0xe')](page){var c=this[mf_dgc_0x1bf2('0xac')](Events['pageAdding'],page);if(c){this['document'][mf_dgc_0x1bf2('0xe')](page);this[mf_dgc_0x1bf2('0x48')](Events[mf_dgc_0x1bf2('0x2')],new PageEventArgs({'page':page}));}}[mf_dgc_0x1bf2('0xad')](page){var c=this[mf_dgc_0x1bf2('0xac')](Events['pageRemoving'],page,page);if(c){this[mf_dgc_0x1bf2('0x38')]['removePage'](page);this[mf_dgc_0x1bf2('0x48')](Events[mf_dgc_0x1bf2('0x4')],new PageEventArgs({'oldPage':page}));}}[mf_dgc_0x1bf2('0xae')](page){if(this['_zoomFactor']!=0x64)page['zoomFactor']=this[mf_dgc_0x1bf2('0xa0')];if(this[mf_dgc_0x1bf2('0xaf')]!=0x0)page[mf_dgc_0x1bf2('0xaf')]=this[mf_dgc_0x1bf2('0xaf')];if(this['scrollY']!=0x0)page[mf_dgc_0x1bf2('0xb0')]=this['scrollY'];}[mf_dgc_0x1bf2('0xb1')](page){this[mf_dgc_0x1bf2('0xb2')]=page[mf_dgc_0x1bf2('0xb2')]||0x64;this[mf_dgc_0x1bf2('0xaf')]=page['scrollX']!=undefined?page['scrollX']:this[mf_dgc_0x1bf2('0x56')][mf_dgc_0x1bf2('0x7f')]['x'];this[mf_dgc_0x1bf2('0xb0')]=page[mf_dgc_0x1bf2('0xb0')]!=undefined?page[mf_dgc_0x1bf2('0xb0')]:this[mf_dgc_0x1bf2('0x56')]['bounds']['y'];}['onTabMouseDown'](sender,args){if(!args[mf_dgc_0x1bf2('0xb3')][mf_dgc_0x1bf2('0xb4')])return;if(args[mf_dgc_0x1bf2('0xb3')]['dataMfc']==mf_dgc_0x1bf2('0xb5')){var page=new DiagramPage();page[mf_dgc_0x1bf2('0xc')]=mf_dgc_0x1bf2('0x56')+(++this[mf_dgc_0x1bf2('0xb6')])[mf_dgc_0x1bf2('0xb7')]();this[mf_dgc_0x1bf2('0xe')](page);return;}if(args[mf_dgc_0x1bf2('0xb3')]['dataMfc']){if(args['item'][mf_dgc_0x1bf2('0xb8')]==mf_dgc_0x1bf2('0xb9'))this['selectedPage']=this[mf_dgc_0x1bf2('0x21')][mf_dgc_0x1bf2('0xba')]();else if(args['item'][mf_dgc_0x1bf2('0xb8')]==mf_dgc_0x1bf2('0xbb'))this[mf_dgc_0x1bf2('0x51')]--;else if(args[mf_dgc_0x1bf2('0xb3')][mf_dgc_0x1bf2('0xb8')]==mf_dgc_0x1bf2('0xbc'))this['selectedIndex']++;else if(args['item']['dataMfc']==mf_dgc_0x1bf2('0xbd'))this[mf_dgc_0x1bf2('0xbe')]=this[mf_dgc_0x1bf2('0x21')]['last']();return;}var item=this[mf_dgc_0x1bf2('0xbf')](args[mf_dgc_0x1bf2('0xb3')]);if(item){if(DomUtils[mf_dgc_0x1bf2('0xc0')](args['rawEventArgs'][mf_dgc_0x1bf2('0xc1')],mf_dgc_0x1bf2('0xc2'))){this['selectedPage']=item;this[mf_dgc_0x1bf2('0xad')](item);return;}if(this[mf_dgc_0x1bf2('0xbe')]==item){if(args[mf_dgc_0x1bf2('0xb3')][mf_dgc_0x1bf2('0xc3')]){args['item']['inplaceEditBehavior'][mf_dgc_0x1bf2('0xc4')]();DomUtils[mf_dgc_0x1bf2('0xc5')](args[mf_dgc_0x1bf2('0xc6')],!![]);}}this[mf_dgc_0x1bf2('0xbe')]=item;}}[mf_dgc_0x1bf2('0x2a')](sender,args){var index=sender[mf_dgc_0x1bf2('0xc7')](args[mf_dgc_0x1bf2('0xb3')])[mf_dgc_0x1bf2('0xc8')](args[mf_dgc_0x1bf2('0xb3')]);var item=this[mf_dgc_0x1bf2('0xbf')](args[mf_dgc_0x1bf2('0xb3')]);this['items'][mf_dgc_0x1bf2('0xc9')][mf_dgc_0x1bf2('0xca')](this[mf_dgc_0x1bf2('0x21')][mf_dgc_0x1bf2('0xc8')](item),0x1);this[mf_dgc_0x1bf2('0x21')][mf_dgc_0x1bf2('0xc9')][mf_dgc_0x1bf2('0xca')](index,0x0,item);}get['selectedPage'](){return this[mf_dgc_0x1bf2('0xcb')];}set['selectedPage'](value){if(value){if(this[mf_dgc_0x1bf2('0xac')](Events['pageChanging'],value,this[mf_dgc_0x1bf2('0xcb')])){var oldPage=this[mf_dgc_0x1bf2('0xcb')];if(oldPage)this[mf_dgc_0x1bf2('0xae')](oldPage);this[mf_dgc_0x1bf2('0xcb')]=value;this['setDiagram'](this[mf_dgc_0x1bf2('0xcb')]);this[mf_dgc_0x1bf2('0xb1')](this[mf_dgc_0x1bf2('0xcb')]);this[mf_dgc_0x1bf2('0xcb')][mf_dgc_0x1bf2('0xa6')]();this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0xcc')](this[mf_dgc_0x1bf2('0xcb')][mf_dgc_0x1bf2('0xab')]);this[mf_dgc_0x1bf2('0x48')](Events['pageChanged'],new PageEventArgs({'page':this[mf_dgc_0x1bf2('0xcb')],'oldPage':oldPage}));}}}get[mf_dgc_0x1bf2('0x51')](){if(this[mf_dgc_0x1bf2('0xcb')])return this[mf_dgc_0x1bf2('0x21')]['indexOfItem'](this[mf_dgc_0x1bf2('0xcb')]);return-0x1;}set['selectedIndex'](value){var tab=this[mf_dgc_0x1bf2('0x21')][mf_dgc_0x1bf2('0x21')]()[value];if(tab)this[mf_dgc_0x1bf2('0xbe')]=tab;}[mf_dgc_0x1bf2('0xbf')](header){return this[mf_dgc_0x1bf2('0x21')][mf_dgc_0x1bf2('0xcd')](x=>x[mf_dgc_0x1bf2('0xab')][mf_dgc_0x1bf2('0x2c')]==header[mf_dgc_0x1bf2('0x2c')])['first']();}get['document'](){return this[mf_dgc_0x1bf2('0xce')];}set[mf_dgc_0x1bf2('0x38')](value){if(this[mf_dgc_0x1bf2('0xce')]!=value){if(this['document']!=null)this[mf_dgc_0x1bf2('0xce')][mf_dgc_0x1bf2('0x3b')](mf_dgc_0x1bbe2b[mf_dgc_0x1bf2('0xcf')],this[mf_dgc_0x1bf2('0x20')]);this[mf_dgc_0x1bf2('0xce')]=value;this[mf_dgc_0x1bf2('0xce')][mf_dgc_0x1bf2('0x19')](mf_dgc_0x1bbe2b['documentChanged'],this['documentChangedDelegate']);this[mf_dgc_0x1bf2('0xd0')](this[mf_dgc_0x1bf2('0x38')],{});this[mf_dgc_0x1bf2('0x48')](mf_dgc_0x1bbe2b[mf_dgc_0x1bf2('0xd1')],EventArgs[mf_dgc_0x1bf2('0xa8')]);}}get[mf_dgc_0x1bf2('0x1c')](){if(this[mf_dgc_0x1bf2('0x40')]==TabAlignment[mf_dgc_0x1bf2('0x99')])return 0x0;return this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x72')][mf_dgc_0x1bf2('0xd2')];}set[mf_dgc_0x1bf2('0x1c')](value){if(this['tabStrip'][mf_dgc_0x1bf2('0x72')]['value']!=value){this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x72')]=new Unit(value,UnitType[mf_dgc_0x1bf2('0xd3')]);this[mf_dgc_0x1bf2('0x98')]();}}get[mf_dgc_0x1bf2('0x40')](){return this[mf_dgc_0x1bf2('0x10')];}set[mf_dgc_0x1bf2('0x40')](value){if(this[mf_dgc_0x1bf2('0x10')]!=value){this[mf_dgc_0x1bf2('0x10')]=value;this[mf_dgc_0x1bf2('0x98')]();}}get[mf_dgc_0x1bf2('0x42')](){return this[mf_dgc_0x1bf2('0x11')]['showCloseButtons'];}set['showTabCloseButtons'](value){if(this[mf_dgc_0x1bf2('0x11')]['showCloseButtons']!=value){this['tabStrip']['showCloseButtons']=value;}}get[mf_dgc_0x1bf2('0x41')](){return this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0xd4')]==TabsScrollMode['NavButtons'];}set['showNavigationButtons'](value){if(this['tabStrip'][mf_dgc_0x1bf2('0xd4')]==TabsScrollMode[mf_dgc_0x1bf2('0xd5')]!=value){this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0xd4')]=value?TabsScrollMode[mf_dgc_0x1bf2('0xd5')]:TabsScrollMode[mf_dgc_0x1bf2('0x99')];}}get[mf_dgc_0x1bf2('0x15')](){return this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x15')];}set[mf_dgc_0x1bf2('0x15')](value){if(this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x15')]!=value){this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x15')]=value;}}get[mf_dgc_0x1bf2('0x43')](){return this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0xd6')];}set[mf_dgc_0x1bf2('0x43')](value){if(this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0xd6')]!=value){this[mf_dgc_0x1bf2('0x11')]['allowDrag']=value;}}get[mf_dgc_0x1bf2('0x45')](){return this[mf_dgc_0x1bf2('0xd7')];}set['theme'](value){if(this['_theme']!=value){this['_theme']=value;if(this['shadowParent']){var links=this['shadowParent'][mf_dgc_0x1bf2('0xd8')](mf_dgc_0x1bf2('0xd9'));[...links]['forEach'](l=>l[mf_dgc_0x1bf2('0x2d')][mf_dgc_0x1bf2('0xda')](l));var link=document['createElement']('link');link[mf_dgc_0x1bf2('0xdb')]=this[mf_dgc_0x1bf2('0xdc')]+this[mf_dgc_0x1bf2('0xd7')]['id']+mf_dgc_0x1bf2('0xdd');link[mf_dgc_0x1bf2('0xde')]=mf_dgc_0x1bf2('0xdf');this[mf_dgc_0x1bf2('0xe0')][mf_dgc_0x1bf2('0x31')](link);}if(this[mf_dgc_0x1bf2('0xd7')])this['tabStrip'][mf_dgc_0x1bf2('0x45')]=this[mf_dgc_0x1bf2('0xd7')]['id'];else this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0x45')]='';}}get[mf_dgc_0x1bf2('0xdc')](){return this[mf_dgc_0x1bf2('0xe1')]||'';}set[mf_dgc_0x1bf2('0xdc')](value){if(this['_themesPath']!=value){this[mf_dgc_0x1bf2('0xe1')]=value;this[mf_dgc_0x1bf2('0x11')]['themesPath']=value;}}[mf_dgc_0x1bf2('0xe2')](theme,setToPages){this['theme']=theme;if(setToPages){this[mf_dgc_0x1bf2('0x21')]['forEach'](item=>item[mf_dgc_0x1bf2('0x45')]=theme);}}get[mf_dgc_0x1bf2('0x44')](){return this[mf_dgc_0x1bf2('0x11')]['allowInplaceEdit'];}set[mf_dgc_0x1bf2('0x44')](value){if(this['tabStrip']['allowInplaceEdit']!=value){this[mf_dgc_0x1bf2('0x11')][mf_dgc_0x1bf2('0xe3')]=value;}}[mf_dgc_0x1bf2('0xd0')](sender,args){var si=this[mf_dgc_0x1bf2('0x51')];this['onDocumentChanged'](sender,args);this[mf_dgc_0x1bf2('0x51')]=si!=-0x1?si:this['items'][mf_dgc_0x1bf2('0xb6')];this[mf_dgc_0x1bf2('0xb6')]=this[mf_dgc_0x1bf2('0x21')]['count']();}['onDocumentChanged'](sender,args){var empty=this['document'][mf_dgc_0x1bf2('0xf')][mf_dgc_0x1bf2('0xb')]==0x0;if(empty){this[mf_dgc_0x1bf2('0x56')]=new Diagram();this[mf_dgc_0x1bf2('0xcb')]=null;}this['enabled']=!empty;this['items']=new List(this['document']['pages']);this[mf_dgc_0x1bf2('0x2e')]();this['tabStrip']['resetButtons']();if(args[mf_dgc_0x1bf2('0xe4')]!=undefined)this['selectedIndex']=Math[mf_dgc_0x1bf2('0xe5')](--args[mf_dgc_0x1bf2('0xe4')],0x0);if(args[mf_dgc_0x1bf2('0xe6')]!=undefined)this['selectedIndex']=args[mf_dgc_0x1bf2('0xe6')];}[mf_dgc_0x1bf2('0xac')](event,page,oldPage){var args=new PageEventArgs({'page':page,'oldPage':oldPage});this['raiseEvent'](event,args);if(args[mf_dgc_0x1bf2('0xe7')])return![];return!![];}['onPageRenameStart'](sender,args){this[mf_dgc_0x1bf2('0xe8')]=args[mf_dgc_0x1bf2('0xb3')][mf_dgc_0x1bf2('0xc3')];this[mf_dgc_0x1bf2('0xe9')]=()=>{this['inplaceController'][mf_dgc_0x1bf2('0xea')](!![]);};this[mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x19')]('pointerdown',this[mf_dgc_0x1bf2('0xe9')]);}[mf_dgc_0x1bf2('0xeb')](sender,args){var item=this[mf_dgc_0x1bf2('0xbf')](args[mf_dgc_0x1bf2('0xb3')]);if(item)item['title']=args[mf_dgc_0x1bf2('0xec')];this['element']['removeEventListener'](mf_dgc_0x1bf2('0xed'),this[mf_dgc_0x1bf2('0xe9')]);}get['pageChanging'](){if(!this[mf_dgc_0x1bf2('0xee')])this[mf_dgc_0x1bf2('0xee')]=new EventDispatcher();return this[mf_dgc_0x1bf2('0xee')];}get[mf_dgc_0x1bf2('0x1')](){if(!this[mf_dgc_0x1bf2('0xef')])this[mf_dgc_0x1bf2('0xef')]=new EventDispatcher();return this[mf_dgc_0x1bf2('0xef')];}get[mf_dgc_0x1bf2('0x4e')](){if(!this[mf_dgc_0x1bf2('0xf0')])this[mf_dgc_0x1bf2('0xf0')]=new EventDispatcher();return this['_pageAdding'];}get['pageAdded'](){if(!this['_pageAdded'])this[mf_dgc_0x1bf2('0xf1')]=new EventDispatcher();return this[mf_dgc_0x1bf2('0xf1')];}get[mf_dgc_0x1bf2('0x3')](){if(!this[mf_dgc_0x1bf2('0xf2')])this[mf_dgc_0x1bf2('0xf2')]=new EventDispatcher();return this['_pageRemoving'];}get[mf_dgc_0x1bf2('0x4')](){if(!this[mf_dgc_0x1bf2('0xf3')])this[mf_dgc_0x1bf2('0xf3')]=new EventDispatcher();return this[mf_dgc_0x1bf2('0xf3')];}static[mf_dgc_0x1bf2('0xf4')](element,document){return Control[mf_dgc_0x1bf2('0xf5')](TabbedDiagramView,element,document);}static['find'](id){return Control[mf_dgc_0x1bf2('0xf6')](id);}[mf_dgc_0x1bf2('0xf7')](){var shadow=this[mf_dgc_0x1bf2('0xf8')]({'mode':'open'});let uisheet=new CSSStyleSheet();uisheet['replace'](uicss);let listsheet=new CSSStyleSheet();listsheet[mf_dgc_0x1bf2('0xf9')](listviewcss);let toolsheet=new CSSStyleSheet();toolsheet[mf_dgc_0x1bf2('0xf9')](toolstripcss);let tabsheet=new CSSStyleSheet();tabsheet['replace'](tabstripcss);shadow[mf_dgc_0x1bf2('0xfa')]=[uisheet,listsheet,toolsheet,tabsheet];let div=document['createElement'](mf_dgc_0x1bf2('0x86'));div[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0xfb')]=this[mf_dgc_0x1bf2('0x77')]['cssText'];this[mf_dgc_0x1bf2('0x77')]['cssText']='';let canvas=document[mf_dgc_0x1bf2('0x85')](mf_dgc_0x1bf2('0xa1'));canvas['id']=this[mf_dgc_0x1bf2('0xfc')]('id');div[mf_dgc_0x1bf2('0x31')](canvas);shadow[mf_dgc_0x1bf2('0x31')](div);this[mf_dgc_0x1bf2('0xfd')]('id');var view=TabbedDiagramView[mf_dgc_0x1bf2('0xf4')](canvas);view[mf_dgc_0x1bf2('0xe0')]=shadow;}}class InteractiveElement{[mf_dgc_0x1bf2('0xfe')](context,size,location,brush){var rect=new Rect(location,new Size(size,size));rect[mf_dgc_0x1bf2('0xff')](-size/0x2,-size/0x2);context[mf_dgc_0x1bf2('0x100')]();context[mf_dgc_0x1bf2('0x101')]=brush;context[mf_dgc_0x1bf2('0x102')](rect['x'],rect['y'],rect['width'],rect[mf_dgc_0x1bf2('0x72')]);context['strokeRect'](rect['x'],rect['y'],rect[mf_dgc_0x1bf2('0x71')],rect[mf_dgc_0x1bf2('0x72')]);context['restore']();}get['firstHandle'](){return 0x0;}get[mf_dgc_0x1bf2('0x103')](){return 0x1;}[mf_dgc_0x1bf2('0x104')](){var state={};state[mf_dgc_0x1bf2('0x105')]=this['strokeColor'];state['strokeThickness']=this[mf_dgc_0x1bf2('0x106')];state[mf_dgc_0x1bf2('0x107')]=this[mf_dgc_0x1bf2('0x107')];return state;}[mf_dgc_0x1bf2('0x108')](state){this['strokeColor']=state[mf_dgc_0x1bf2('0x105')];this['strokeThickness']=state[mf_dgc_0x1bf2('0x106')];this[mf_dgc_0x1bf2('0x107')]=state[mf_dgc_0x1bf2('0x107')];}[mf_dgc_0x1bf2('0x109')](){return![];}static get[mf_dgc_0x1bf2('0x10a')](){return new Size(0x64,0x28);}}class LineBuilder extends InteractiveElement{constructor(p1,p2){super();this[mf_dgc_0x1bf2('0x10b')]=p1||new Point(0x0,0x32);this['endPoint']=p2||new Point(0x64,0x32);}[mf_dgc_0x1bf2('0x10c')](){return new LineBuilder(this[mf_dgc_0x1bf2('0x10b')][mf_dgc_0x1bf2('0x10c')](),this[mf_dgc_0x1bf2('0x10d')][mf_dgc_0x1bf2('0x10c')]());}get[mf_dgc_0x1bf2('0x10e')](){return DrawingUtils[mf_dgc_0x1bf2('0x10f')](this[mf_dgc_0x1bf2('0x10b')],this['endPoint']);}['distance'](point){return DrawingUtils['distToLine'](point,this['startPoint'],this[mf_dgc_0x1bf2('0x10d')]);}[mf_dgc_0x1bf2('0xff')](point){this['startPoint'][mf_dgc_0x1bf2('0x110')](point);this['endPoint'][mf_dgc_0x1bf2('0x110')](point);}['orientate'](from,to){this[mf_dgc_0x1bf2('0x10b')]=from['clone']();this[mf_dgc_0x1bf2('0x10d')]=to[mf_dgc_0x1bf2('0x10c')]();}['scale'](scale,center){var matrix=new Matrix();matrix[mf_dgc_0x1bf2('0x111')](center['x'],center['y']);matrix['scale'](scale,scale);matrix[mf_dgc_0x1bf2('0x111')](-center['x'],-center['y']);matrix['transformPoint'](this[mf_dgc_0x1bf2('0x10b')]);matrix[mf_dgc_0x1bf2('0x112')](this[mf_dgc_0x1bf2('0x10d')]);}[mf_dgc_0x1bf2('0x113')](){var params={'outline':this['exportElement'](!![]),'id':'Line'};return new Shape(params);}static['fromCenter'](point){var bounds=Rect[mf_dgc_0x1bf2('0x114')](point,InteractiveElement[mf_dgc_0x1bf2('0x10a')]);var startPoint=new Point(bounds['x'],bounds['y']+bounds['height']/0x2);var endPoint=new Point(bounds['x']+bounds[mf_dgc_0x1bf2('0x71')],bounds['y']+bounds[mf_dgc_0x1bf2('0x72')]/0x2);return new LineBuilder(startPoint,endPoint);}[mf_dgc_0x1bf2('0x115')](context,startPath){if(startPath)context[mf_dgc_0x1bf2('0x116')](this[mf_dgc_0x1bf2('0x10b')]['x'],this[mf_dgc_0x1bf2('0x10b')]['y']);context['lineTo'](this['endPoint']['x'],this[mf_dgc_0x1bf2('0x10d')]['y']);}['draw'](context,pen){context[mf_dgc_0x1bf2('0x100')]();if(!pen)pen={'color':mf_dgc_0x1bf2('0x117'),'width':0x1,'dashStyle':0x0};context[mf_dgc_0x1bf2('0x118')]=this[mf_dgc_0x1bf2('0x105')]||pen[mf_dgc_0x1bf2('0x119')];context['lineWidth']=(this[mf_dgc_0x1bf2('0x106')]!=undefined?this['strokeThickness']:pen[mf_dgc_0x1bf2('0x71')])*context[mf_dgc_0x1bf2('0x11a')];DashStyle[mf_dgc_0x1bf2('0x11b')](context,this['strokeDashStyle']!=undefined?this[mf_dgc_0x1bf2('0x107')]:pen[mf_dgc_0x1bf2('0x11c')]);context[mf_dgc_0x1bf2('0x11d')]();context[mf_dgc_0x1bf2('0x116')](this[mf_dgc_0x1bf2('0x10b')]['x'],this[mf_dgc_0x1bf2('0x10b')]['y']);context[mf_dgc_0x1bf2('0x11e')](this[mf_dgc_0x1bf2('0x10d')]['x'],this[mf_dgc_0x1bf2('0x10d')]['y']);context[mf_dgc_0x1bf2('0x11f')]();context['restore']();}[mf_dgc_0x1bf2('0x120')](context,size,brush){this[mf_dgc_0x1bf2('0xfe')](context,size,this['startPoint'],brush);this[mf_dgc_0x1bf2('0xfe')](context,size,this[mf_dgc_0x1bf2('0x10d')],brush);}[mf_dgc_0x1bf2('0x121')](point,maxDist){var d1=point['distance'](this[mf_dgc_0x1bf2('0x10b')]);if(d1<maxDist)return 0x0;var d2=point[mf_dgc_0x1bf2('0x122')](this[mf_dgc_0x1bf2('0x10d')]);if(d2<maxDist)return 0x1;return-0x1;}[mf_dgc_0x1bf2('0x123')](handle,point){if(handle==0x0)this[mf_dgc_0x1bf2('0x10b')]=point;if(handle==0x1)this[mf_dgc_0x1bf2('0x10d')]=point;}[mf_dgc_0x1bf2('0x124')](startPath){var result='';if(startPath)result='M'+this[mf_dgc_0x1bf2('0x10b')]['x']+','+this[mf_dgc_0x1bf2('0x10b')]['y']+'\x20';result+='L'+this['endPoint']['x']+','+this['endPoint']['y']+'\x20';return result;}[mf_dgc_0x1bf2('0x125')](){var elements=[];elements[mf_dgc_0x1bf2('0x126')](new ShapeElement(mf_dgc_0x1bf2('0x116'),[this[mf_dgc_0x1bf2('0x10b')]['x'],this[mf_dgc_0x1bf2('0x10b')]['y']]));elements[mf_dgc_0x1bf2('0x126')](new ShapeElement(mf_dgc_0x1bf2('0x11e'),[this[mf_dgc_0x1bf2('0x10d')]['x'],this['endPoint']['y']],this[mf_dgc_0x1bf2('0x105')],this['strokeThickness'],this[mf_dgc_0x1bf2('0x107')]));return elements;}[mf_dgc_0x1bf2('0x104')](){var state=super[mf_dgc_0x1bf2('0x104')]();state[mf_dgc_0x1bf2('0x10b')]=this[mf_dgc_0x1bf2('0x10b')][mf_dgc_0x1bf2('0x10c')]();state[mf_dgc_0x1bf2('0x10d')]=this['endPoint'][mf_dgc_0x1bf2('0x10c')]();return state;}['loadState'](state){super[mf_dgc_0x1bf2('0x108')](state);this[mf_dgc_0x1bf2('0x10b')]=state['startPoint'];this[mf_dgc_0x1bf2('0x10d')]=state[mf_dgc_0x1bf2('0x10d')];}static['default'](){return new LineBuilder();}}class BezierBuilder extends InteractiveElement{constructor(x1,y1,x2,y2,x3,y3,x4,y4){super();this[mf_dgc_0x1bf2('0x127')]=[new Point(x1,y1),new Point(x2,y2),new Point(x3,y3),new Point(x4,y4)];}[mf_dgc_0x1bf2('0x10c')](){return BezierBuilder[mf_dgc_0x1bf2('0x128')](this[mf_dgc_0x1bf2('0x127')]);}get[mf_dgc_0x1bf2('0x10b')](){return this[mf_dgc_0x1bf2('0x127')][0x0];}get['endPoint'](){return this[mf_dgc_0x1bf2('0x127')][0x3];}get['center'](){var x=0x0,y=0x0;for(var point in this[mf_dgc_0x1bf2('0x127')]){x+=point['x'];y+=point['y'];}return new Point(x/0x4,y/0x4);}get[mf_dgc_0x1bf2('0x103')](){return 0x3;}[mf_dgc_0x1bf2('0x122')](point){return DrawingUtils['distToBezier'](point,this[mf_dgc_0x1bf2('0x127')],{'value':0x4});}['offset'](point){this[mf_dgc_0x1bf2('0x127')]['forEach'](p=>p[mf_dgc_0x1bf2('0x110')](point));}[mf_dgc_0x1bf2('0x129')](from,to){this[mf_dgc_0x1bf2('0x127')][0x0]=from['clone']();this['points'][0x3]=to[mf_dgc_0x1bf2('0x10c')]();var v=new Point(to['x']-from['x'],to['y']-from['y']);var l=Math[mf_dgc_0x1bf2('0x12a')](v['x']*v['x']+v['y']*v['y']);var p=new Point(v['y'],-v['x']);var left=new Point(p['x']/l,p['y']/l);this[mf_dgc_0x1bf2('0x127')][0x1]=new Point(from['x']+v['x']/0x3+left['x']*l/0x8,from['y']+v['y']/0x3+left['y']*l/0x8);this['points'][0x2]=new Point(from['x']+0x2*v['x']/0x3-left['x']*l/0x8,from['y']+0x2*v['y']/0x3-left['y']*l/0x8);}['scale'](scale,center){var matrix=new Matrix();matrix['translate'](center['x'],center['y']);matrix[mf_dgc_0x1bf2('0x80')](scale,scale);matrix[mf_dgc_0x1bf2('0x111')](-center['x'],-center['y']);matrix['transformPoint'](this[mf_dgc_0x1bf2('0x127')][0x0]);matrix[mf_dgc_0x1bf2('0x112')](this['points'][0x1]);matrix[mf_dgc_0x1bf2('0x112')](this[mf_dgc_0x1bf2('0x127')][0x2]);matrix[mf_dgc_0x1bf2('0x112')](this[mf_dgc_0x1bf2('0x127')][0x3]);}[mf_dgc_0x1bf2('0x115')](context,startPath){context[mf_dgc_0x1bf2('0x116')](this[mf_dgc_0x1bf2('0x127')][0x0]['x'],this['points'][0x0]['y']);context[mf_dgc_0x1bf2('0x12b')](this['points'][0x1]['x'],this[mf_dgc_0x1bf2('0x127')][0x1]['y'],this[mf_dgc_0x1bf2('0x127')][0x2]['x'],this[mf_dgc_0x1bf2('0x127')][0x2]['y'],this[mf_dgc_0x1bf2('0x127')][0x3]['x'],this[mf_dgc_0x1bf2('0x127')][0x3]['y']);}['draw'](context,pen){context[mf_dgc_0x1bf2('0x100')]();if(!pen)pen={'color':'#000000','width':0x1,'dashStyle':0x0};context[mf_dgc_0x1bf2('0x118')]=this[mf_dgc_0x1bf2('0x105')]||pen[mf_dgc_0x1bf2('0x119')];context[mf_dgc_0x1bf2('0x12c')]=(this[mf_dgc_0x1bf2('0x106')]!=undefined?this['strokeThickness']:pen[mf_dgc_0x1bf2('0x71')])*context[mf_dgc_0x1bf2('0x11a')];DashStyle[mf_dgc_0x1bf2('0x11b')](context,this[mf_dgc_0x1bf2('0x107')]!=undefined?this['strokeDashStyle']:pen[mf_dgc_0x1bf2('0x11c')]);context[mf_dgc_0x1bf2('0x11d')]();this[mf_dgc_0x1bf2('0x115')](context);context['stroke']();context[mf_dgc_0x1bf2('0x12d')]();}[mf_dgc_0x1bf2('0x120')](context,size,brush){for(var i=0x0;i<0x4;i++)this[mf_dgc_0x1bf2('0xfe')](context,size,this[mf_dgc_0x1bf2('0x127')][i],brush);}[mf_dgc_0x1bf2('0x121')](point,maxDist){for(var i=0x0;i<0x4;i++){var distance=point[mf_dgc_0x1bf2('0x122')](this[mf_dgc_0x1bf2('0x127')][i]);if(distance<maxDist)return i;}return-0x1;}[mf_dgc_0x1bf2('0x123')](handle,point){this[mf_dgc_0x1bf2('0x127')][handle]=point;}['saveState'](){var state=super[mf_dgc_0x1bf2('0x104')]();state[mf_dgc_0x1bf2('0x127')]=[...this['points']];return state;}[mf_dgc_0x1bf2('0x108')](state){super['loadState'](state);this[mf_dgc_0x1bf2('0x127')]=state[mf_dgc_0x1bf2('0x127')];}[mf_dgc_0x1bf2('0x113')](){var params={'outline':this[mf_dgc_0x1bf2('0x124')](!![]),'id':mf_dgc_0x1bf2('0x12e')};return new Shape(params);}static[mf_dgc_0x1bf2('0x128')](points){return new BezierBuilder(points[0x0]['x'],points[0x0]['y'],points[0x1]['x'],points[0x1]['y'],points[0x2]['x'],points[0x2]['y'],points[0x3]['x'],points[0x3]['y']);}static[mf_dgc_0x1bf2('0x12f')](point){var bounds=Rect['fromCenterAndSize'](point,InteractiveElement['defaultSize']);var points=[new Point(bounds['x'],bounds['y']+bounds[mf_dgc_0x1bf2('0x72')]/0x2),new Point(bounds['x']+bounds['width']/0x3,bounds['y']),new Point(bounds['x']+bounds[mf_dgc_0x1bf2('0x71')]-bounds['width']/0x3,bounds['y']+bounds[mf_dgc_0x1bf2('0x72')]),new Point(bounds['x']+bounds[mf_dgc_0x1bf2('0x71')],bounds['y']+bounds[mf_dgc_0x1bf2('0x72')]/0x2)];var x=0x0,y=0x0;points['forEach'](p=>{x+=p['x'];y+=p['y'];});var center=new Point(x/0x4,y/0x4);var newPoints=[...points];newPoints[mf_dgc_0x1bf2('0x36')](p=>{p['x']+=point['x']-center['x'];p['y']+=point['y']-center['y'];});return BezierBuilder[mf_dgc_0x1bf2('0x128')](newPoints);}static[mf_dgc_0x1bf2('0x130')](){var bounds=new Rect(0x0,0x0,0x64,0x64);var point=bounds[mf_dgc_0x1bf2('0x10e')]();var points=[new Point(bounds['x'],bounds['y']+bounds[mf_dgc_0x1bf2('0x72')]/0x2),new Point(bounds['x']+bounds[mf_dgc_0x1bf2('0x71')]/0x3,bounds['y']),new Point(bounds['x']+bounds[mf_dgc_0x1bf2('0x71')]-bounds[mf_dgc_0x1bf2('0x71')]/0x3,bounds['y']+bounds['height']),new Point(bounds['x']+bounds[mf_dgc_0x1bf2('0x71')],bounds['y']+bounds[mf_dgc_0x1bf2('0x72')]/0x2)];var x=0x0,y=0x0;points['forEach'](p=>{x+=p['x'];y+=p['y'];});var center=new Point(x/0x4,y/0x4);var newPoints=[...points];newPoints[mf_dgc_0x1bf2('0x36')](p=>{p['x']+=point['x']-center['x'];p['y']+=point['y']-center['y'];});return BezierBuilder[mf_dgc_0x1bf2('0x128')](newPoints);}[mf_dgc_0x1bf2('0x124')](startPath){var result='';if(startPath)result='M'+this[mf_dgc_0x1bf2('0x127')][0x0]['x']+','+this[mf_dgc_0x1bf2('0x127')][0x0]['y']+'\x20';result+='C'+this['points'][0x1]['x']+','+this[mf_dgc_0x1bf2('0x127')][0x1]['y']+','+this[mf_dgc_0x1bf2('0x127')][0x2]['x']+','+this[mf_dgc_0x1bf2('0x127')][0x2]['y']+','+this[mf_dgc_0x1bf2('0x127')][0x3]['x']+','+this[mf_dgc_0x1bf2('0x127')][0x3]['y']+'\x20';return result;}['exportShapeElement'](){var elements=[];elements['push'](new ShapeElement(mf_dgc_0x1bf2('0x116'),[this['points'][0x0]['x'],this[mf_dgc_0x1bf2('0x127')][0x0]['y']]));elements['push'](new ShapeElement(mf_dgc_0x1bf2('0x12b'),[this[mf_dgc_0x1bf2('0x127')][0x1]['x'],this[mf_dgc_0x1bf2('0x127')][0x1]['y'],this[mf_dgc_0x1bf2('0x127')][0x2]['x'],this[mf_dgc_0x1bf2('0x127')][0x2]['y'],this[mf_dgc_0x1bf2('0x127')][0x3]['x'],this['points'][0x3]['y']],this[mf_dgc_0x1bf2('0x105')],this[mf_dgc_0x1bf2('0x106')],this['strokeDashStyle']));return elements;}}class ArcBuilder extends InteractiveElement{constructor(x,y,radius,startAngle,endAngle,anticlockwise){super();if(x!=undefined){var points=[];DrawingUtils[mf_dgc_0x1bf2('0x131')](points,0x2,x,y,radius,startAngle,endAngle,anticlockwise);this[mf_dgc_0x1bf2('0x10b')]=points[0x0];this['endPoint']=points[0x2];this['controlPoint']=points[0x1];}}[mf_dgc_0x1bf2('0x10c')](){return ArcBuilder[mf_dgc_0x1bf2('0x128')](this[mf_dgc_0x1bf2('0x10b')],this[mf_dgc_0x1bf2('0x132')],this[mf_dgc_0x1bf2('0x10d')]);}get[mf_dgc_0x1bf2('0x103')](){return 0x2;}get['center'](){return this[mf_dgc_0x1bf2('0x133')]();}[mf_dgc_0x1bf2('0x122')](point){var dist=point[mf_dgc_0x1bf2('0x122')](this[mf_dgc_0x1bf2('0x10b')]);dist=Math['min'](dist,point['distance'](this[mf_dgc_0x1bf2('0x132')]));dist=Math[mf_dgc_0x1bf2('0x7d')](dist,point[mf_dgc_0x1bf2('0x122')](this[mf_dgc_0x1bf2('0x10d')]));return dist;}['offset'](point){this[mf_dgc_0x1bf2('0x10b')][mf_dgc_0x1bf2('0x110')](point);this['endPoint']['addVector'](point);this[mf_dgc_0x1bf2('0x132')]['addVector'](point);}[mf_dgc_0x1bf2('0x129')](from,to){this[mf_dgc_0x1bf2('0x10b')]=from[mf_dgc_0x1bf2('0x10c')]();this[mf_dgc_0x1bf2('0x10d')]=to[mf_dgc_0x1bf2('0x10c')]();var v=new Point(to['x']-from['x'],to['y']-from['y']);var l=Math[mf_dgc_0x1bf2('0x12a')](v['x']*v['x']+v['y']*v['y']);var p=new Point(v['y'],-v['x']);var left=new Point(p['x']/l,p['y']/l);this['controlPoint']=new Point(from['x']+v['x']*0.5-left['x']*l/0x8,from['y']+v['y']*0.5-left['y']*l/0x8);}[mf_dgc_0x1bf2('0x80')](scale,center){var matrix=new Matrix();matrix[mf_dgc_0x1bf2('0x111')](center['x'],center['y']);matrix[mf_dgc_0x1bf2('0x80')](scale,scale);matrix[mf_dgc_0x1bf2('0x111')](-center['x'],-center['y']);matrix['transformPoint'](this[mf_dgc_0x1bf2('0x10b')]);matrix[mf_dgc_0x1bf2('0x112')](this[mf_dgc_0x1bf2('0x10d')]);matrix[mf_dgc_0x1bf2('0x112')](this[mf_dgc_0x1bf2('0x132')]);}[mf_dgc_0x1bf2('0x115')](context){var center=this[mf_dgc_0x1bf2('0x10e')];var radius=Math[mf_dgc_0x1bf2('0x134')](center[mf_dgc_0x1bf2('0x122')](this[mf_dgc_0x1bf2('0x10b')]));var startAngle=Geometry['degreeToRadian'](center['angleBetween'](this[mf_dgc_0x1bf2('0x10b')]));var endAngle=Geometry[mf_dgc_0x1bf2('0x135')](center[mf_dgc_0x1bf2('0x136')](this[mf_dgc_0x1bf2('0x10d')]));var ac=DrawingUtils[mf_dgc_0x1bf2('0x137')](this[mf_dgc_0x1bf2('0x10b')],this[mf_dgc_0x1bf2('0x132')],this['endPoint'])==0x1?0x0:0x1;context['arc'](center['x'],center['y'],radius,startAngle,endAngle,ac);}['draw'](context,pen){context[mf_dgc_0x1bf2('0x100')]();if(!pen)pen={'color':mf_dgc_0x1bf2('0x117'),'width':0x1,'dashStyle':0x0};context[mf_dgc_0x1bf2('0x118')]=this['strokeColor']||pen['color'];context[mf_dgc_0x1bf2('0x12c')]=(this[mf_dgc_0x1bf2('0x106')]!=undefined?this[mf_dgc_0x1bf2('0x106')]:pen[mf_dgc_0x1bf2('0x71')])*context[mf_dgc_0x1bf2('0x11a')];DashStyle['apply'](context,this[mf_dgc_0x1bf2('0x107')]!=undefined?this[mf_dgc_0x1bf2('0x107')]:pen[mf_dgc_0x1bf2('0x11c')]);context[mf_dgc_0x1bf2('0x11d')]();this[mf_dgc_0x1bf2('0x115')](context);context[mf_dgc_0x1bf2('0x11f')]();context[mf_dgc_0x1bf2('0x12d')]();}[mf_dgc_0x1bf2('0x120')](context,size,brush){this[mf_dgc_0x1bf2('0xfe')](context,size,this[mf_dgc_0x1bf2('0x10b')],brush);this['drawControlPoint'](context,size,this[mf_dgc_0x1bf2('0x132')],brush);this[mf_dgc_0x1bf2('0xfe')](context,size,this['endPoint'],brush);}['hitTestHandle'](point,maxDist){var d=point['distance'](this[mf_dgc_0x1bf2('0x10b')]);if(d<maxDist)return 0x0;var d=point[mf_dgc_0x1bf2('0x122')](this[mf_dgc_0x1bf2('0x132')]);if(d<maxDist)return 0x1;var d=point[mf_dgc_0x1bf2('0x122')](this[mf_dgc_0x1bf2('0x10d')]);if(d<maxDist)return 0x2;return-0x1;}[mf_dgc_0x1bf2('0x133')](){var x1=this[mf_dgc_0x1bf2('0x10b')]['x'];var y1=this[mf_dgc_0x1bf2('0x10b')]['y'];var x2=this['controlPoint']['x'];var y2=this['controlPoint']['y'];var x3=this['endPoint']['x'];var y3=this[mf_dgc_0x1bf2('0x10d')]['y'];var x12=x1-x2;var x13=x1-x3;var y12=y1-y2;var y13=y1-y3;var y31=y3-y1;var y21=y2-y1;var x31=x3-x1;var x21=x2-x1;var sx13=Math['pow'](x1,0x2)-Math[mf_dgc_0x1bf2('0x138')](x3,0x2);var sy13=Math[mf_dgc_0x1bf2('0x138')](y1,0x2)-Math[mf_dgc_0x1bf2('0x138')](y3,0x2);var sx21=Math[mf_dgc_0x1bf2('0x138')](x2,0x2)-Math['pow'](x1,0x2);var sy21=Math[mf_dgc_0x1bf2('0x138')](y2,0x2)-Math[mf_dgc_0x1bf2('0x138')](y1,0x2);var f=(sx13*x12+sy13*x12+sx21*x13+sy21*x13)/(0x2*(y31*x12-y21*x13));var g=(sx13*y12+sy13*y12+sx21*y13+sy21*y13)/(0x2*(x31*y12-x21*y13));return new Point(-g,-f);}['updateFromHandle'](handle,point){if(handle==0x0)this[mf_dgc_0x1bf2('0x10b')]=point['clone']();if(handle==0x1)this['controlPoint']=point['clone']();if(handle==0x2)this[mf_dgc_0x1bf2('0x10d')]=point['clone']();}['saveState'](){var state=super[mf_dgc_0x1bf2('0x104')]();state[mf_dgc_0x1bf2('0x10b')]=this[mf_dgc_0x1bf2('0x10b')]['clone']();state[mf_dgc_0x1bf2('0x10d')]=this['endPoint']['clone']();state[mf_dgc_0x1bf2('0x132')]=this[mf_dgc_0x1bf2('0x132')][mf_dgc_0x1bf2('0x10c')]();return state;}[mf_dgc_0x1bf2('0x108')](state){super[mf_dgc_0x1bf2('0x108')](state);this[mf_dgc_0x1bf2('0x10b')]=state[mf_dgc_0x1bf2('0x132')][mf_dgc_0x1bf2('0x10c')]();this['endPoint']=state[mf_dgc_0x1bf2('0x132')]['clone']();this[mf_dgc_0x1bf2('0x132')]=state['controlPoint'][mf_dgc_0x1bf2('0x10c')]();}[mf_dgc_0x1bf2('0x113')](){var params={'outline':this['exportElement'](),'id':mf_dgc_0x1bf2('0x139')};return new Shape(params);}static['fromPoints'](p1,p2,p3){var b=new ArcBuilder();b['startPoint']=p1;b[mf_dgc_0x1bf2('0x132')]=p2;b[mf_dgc_0x1bf2('0x10d')]=p3;return b;}static[mf_dgc_0x1bf2('0x12f')](point){var bounds=Rect[mf_dgc_0x1bf2('0x114')](point,InteractiveElement['defaultSize']);var b=new ArcBuilder();b[mf_dgc_0x1bf2('0x10b')]=new Point(bounds['x'],bounds['y']+bounds[mf_dgc_0x1bf2('0x72')]);b[mf_dgc_0x1bf2('0x132')]=new Point(bounds['x']+bounds['width']/0x2,bounds['y']);b['endPoint']=new Point(bounds['x']+bounds['width'],bounds['y']+bounds[mf_dgc_0x1bf2('0x72')]);return b;}static['default'](){return ArcBuilder['fromCenter'](new Point(InteractiveElement[mf_dgc_0x1bf2('0x10a')][mf_dgc_0x1bf2('0x71')]/0x2,InteractiveElement[mf_dgc_0x1bf2('0x10a')]['height']/0x2));}[mf_dgc_0x1bf2('0x124')](){var center=this[mf_dgc_0x1bf2('0x10e')];var radius=Math[mf_dgc_0x1bf2('0x134')](center['distance'](this[mf_dgc_0x1bf2('0x10b')]));var startAngle=Geometry[mf_dgc_0x1bf2('0x135')](center[mf_dgc_0x1bf2('0x136')](this[mf_dgc_0x1bf2('0x10b')]));var endAngle=Geometry[mf_dgc_0x1bf2('0x135')](center[mf_dgc_0x1bf2('0x136')](this[mf_dgc_0x1bf2('0x10d')]));var ac=DrawingUtils[mf_dgc_0x1bf2('0x137')](this[mf_dgc_0x1bf2('0x10b')],this[mf_dgc_0x1bf2('0x132')],this[mf_dgc_0x1bf2('0x10d')])==0x1?0x0:0x1;return'X'+center['x']+','+center['y']+','+radius+','+startAngle+','+endAngle+','+ac;}[mf_dgc_0x1bf2('0x125')](){var elements=[];elements[mf_dgc_0x1bf2('0x126')](new ShapeElement(mf_dgc_0x1bf2('0x116'),[this[mf_dgc_0x1bf2('0x10b')]['x'],this[mf_dgc_0x1bf2('0x10b')]['y']]));var center=this[mf_dgc_0x1bf2('0x10e')];var radius=Math[mf_dgc_0x1bf2('0x134')](center[mf_dgc_0x1bf2('0x122')](this[mf_dgc_0x1bf2('0x10b')]));var startAngle=Geometry['degreeToRadian'](center['angleBetween'](this[mf_dgc_0x1bf2('0x10b')]));var endAngle=Geometry[mf_dgc_0x1bf2('0x135')](center[mf_dgc_0x1bf2('0x136')](this['endPoint']));var ac=DrawingUtils[mf_dgc_0x1bf2('0x137')](this[mf_dgc_0x1bf2('0x10b')],this[mf_dgc_0x1bf2('0x132')],this['endPoint'])==0x1?0x0:0x1;elements['push'](new ShapeElement(mf_dgc_0x1bf2('0x13a'),[center['x'],center['y'],radius,startAngle,endAngle,ac],this['strokeColor'],this[mf_dgc_0x1bf2('0x106')],this['strokeDashStyle']));return elements;}}class RoundRectBuilder extends InteractiveElement{constructor(x1,y1,x2,y2,cornerRadius){super();this[mf_dgc_0x1bf2('0x13b')]=new Point(x1,y1);this[mf_dgc_0x1bf2('0x13c')]=new Point(x2,y2);this['cornerRadius']=cornerRadius;}[mf_dgc_0x1bf2('0x10c')](){return new RoundRectBuilder(this[mf_dgc_0x1bf2('0x13b')][mf_dgc_0x1bf2('0x10c')](),this[mf_dgc_0x1bf2('0x13c')][mf_dgc_0x1bf2('0x10c')]());}get[mf_dgc_0x1bf2('0x10b')](){return this[mf_dgc_0x1bf2('0x13b')];}get[mf_dgc_0x1bf2('0x10d')](){return this[mf_dgc_0x1bf2('0x13c')];}get[mf_dgc_0x1bf2('0x10e')](){return Rect[mf_dgc_0x1bf2('0x128')](this['topLeft'],this[mf_dgc_0x1bf2('0x13c')])[mf_dgc_0x1bf2('0x10e')]();}[mf_dgc_0x1bf2('0x122')](point){var dist=DrawingUtils[mf_dgc_0x1bf2('0x13d')](point,this[mf_dgc_0x1bf2('0x13b')],new Point(this['bottomRight']['x'],this[mf_dgc_0x1bf2('0x13b')]['y']));dist=Math['min'](dist,DrawingUtils[mf_dgc_0x1bf2('0x13d')](point,new Point(this[mf_dgc_0x1bf2('0x13c')]['x'],this[mf_dgc_0x1bf2('0x13b')]['y']),this[mf_dgc_0x1bf2('0x13c')]));dist=Math[mf_dgc_0x1bf2('0x7d')](dist,DrawingUtils[mf_dgc_0x1bf2('0x13d')](point,this[mf_dgc_0x1bf2('0x13c')],new Point(this['topLeft']['x'],this[mf_dgc_0x1bf2('0x13c')]['y'])));dist=Math[mf_dgc_0x1bf2('0x7d')](dist,DrawingUtils['distToLine'](point,new Point(this['topLeft']['x'],this[mf_dgc_0x1bf2('0x13c')]['y']),this[mf_dgc_0x1bf2('0x13b')]));return dist;}['offset'](point){this[mf_dgc_0x1bf2('0x13b')][mf_dgc_0x1bf2('0x110')](point);this[mf_dgc_0x1bf2('0x13c')][mf_dgc_0x1bf2('0x110')](point);}['orientate'](from,to){this[mf_dgc_0x1bf2('0x13b')]=from['clone']();this[mf_dgc_0x1bf2('0x13c')]=to['clone']();}[mf_dgc_0x1bf2('0x80')](scale,center){var matrix=new Matrix();matrix[mf_dgc_0x1bf2('0x111')](center['x'],center['y']);matrix[mf_dgc_0x1bf2('0x80')](scale,scale);matrix['translate'](-center['x'],-center['y']);matrix['transformPoint'](this[mf_dgc_0x1bf2('0x13b')]);matrix['transformPoint'](this['bottomRight']);}['draw'](context,pen){context[mf_dgc_0x1bf2('0x100')]();if(!pen)pen={'color':'#000000','width':0x1,'dashStyle':0x0};context[mf_dgc_0x1bf2('0x118')]=this[mf_dgc_0x1bf2('0x105')]||pen[mf_dgc_0x1bf2('0x119')];context['lineWidth']=(this[mf_dgc_0x1bf2('0x106')]!=undefined?this[mf_dgc_0x1bf2('0x106')]:pen['width'])*context['_mf_scale'];DashStyle['apply'](context,this['strokeDashStyle']!=undefined?this['strokeDashStyle']:pen[mf_dgc_0x1bf2('0x11c')]);context[mf_dgc_0x1bf2('0x11d')]();context[mf_dgc_0x1bf2('0x116')](this[mf_dgc_0x1bf2('0x13b')]['x'],this[mf_dgc_0x1bf2('0x13b')]['y']+this[mf_dgc_0x1bf2('0x13e')]);context[mf_dgc_0x1bf2('0x11e')](this[mf_dgc_0x1bf2('0x13b')]['x'],this['bottomRight']['y']-this[mf_dgc_0x1bf2('0x13e')]);context[mf_dgc_0x1bf2('0x13f')](this[mf_dgc_0x1bf2('0x13b')]['x'],this[mf_dgc_0x1bf2('0x13c')]['y'],this[mf_dgc_0x1bf2('0x13b')]['x']+this['cornerRadius'],this[mf_dgc_0x1bf2('0x13c')]['y']);context[mf_dgc_0x1bf2('0x11e')](this[mf_dgc_0x1bf2('0x13c')]['x']-this[mf_dgc_0x1bf2('0x13e')],this[mf_dgc_0x1bf2('0x13c')]['y']);context['quadraticCurveTo'](this[mf_dgc_0x1bf2('0x13c')]['x'],this[mf_dgc_0x1bf2('0x13c')]['y'],this['bottomRight']['x'],this[mf_dgc_0x1bf2('0x13c')]['y']-this[mf_dgc_0x1bf2('0x13e')]);context[mf_dgc_0x1bf2('0x11e')](this[mf_dgc_0x1bf2('0x13c')]['x'],this['topLeft']['y']+this[mf_dgc_0x1bf2('0x13e')]);context[mf_dgc_0x1bf2('0x13f')](this[mf_dgc_0x1bf2('0x13c')]['x'],this['topLeft']['y'],this[mf_dgc_0x1bf2('0x13c')]['x']-this[mf_dgc_0x1bf2('0x13e')],this[mf_dgc_0x1bf2('0x13b')]['y']);context[mf_dgc_0x1bf2('0x11e')](this[mf_dgc_0x1bf2('0x13b')]['x']+this['cornerRadius'],this[mf_dgc_0x1bf2('0x13b')]['y']);context[mf_dgc_0x1bf2('0x13f')](this['topLeft']['x'],this[mf_dgc_0x1bf2('0x13b')]['y'],this['topLeft']['x'],this[mf_dgc_0x1bf2('0x13b')]['y']+this['cornerRadius']);context['stroke']();context[mf_dgc_0x1bf2('0x12d')]();}[mf_dgc_0x1bf2('0x120')](context,size,brush){this[mf_dgc_0x1bf2('0xfe')](context,size,this['topLeft'],brush);this[mf_dgc_0x1bf2('0xfe')](context,size,this['bottomRight'],brush);}[mf_dgc_0x1bf2('0x121')](point,maxDist){var d1=point[mf_dgc_0x1bf2('0x122')](this[mf_dgc_0x1bf2('0x13b')]);if(d1<maxDist)return 0x0;var d2=point[mf_dgc_0x1bf2('0x122')](this['bottomRight']);if(d2<maxDist)return 0x1;return-0x1;}[mf_dgc_0x1bf2('0x123')](handle,point){if(handle==0x0)this[mf_dgc_0x1bf2('0x13b')]=point;if(handle==0x1)this['bottomRight']=point;}[mf_dgc_0x1bf2('0x104')](){var state=super[mf_dgc_0x1bf2('0x104')]();state[mf_dgc_0x1bf2('0x13b')]=this[mf_dgc_0x1bf2('0x13b')][mf_dgc_0x1bf2('0x10c')]();state[mf_dgc_0x1bf2('0x13c')]=this[mf_dgc_0x1bf2('0x13c')][mf_dgc_0x1bf2('0x10c')]();state[mf_dgc_0x1bf2('0x13e')]=this['cornerRadius'];return state;}['loadState'](state){super['loadState'](state);this[mf_dgc_0x1bf2('0x13b')]=state['topLeft'];this['bottomRight']=state['bottomRight'];this[mf_dgc_0x1bf2('0x13e')]=state[mf_dgc_0x1bf2('0x13e')];}[mf_dgc_0x1bf2('0x113')](){var params={'outline':this[mf_dgc_0x1bf2('0x124')](!![]),'id':mf_dgc_0x1bf2('0x140')};return new Shape(params);}static[mf_dgc_0x1bf2('0x128')](p1,p2){return new RoundRectBuilder(p1['x'],p1['y'],p2['x'],p2['y'],0x5);}static['fromCenter'](point){var bounds=Rect['fromCenterAndSize'](point,InteractiveElement[mf_dgc_0x1bf2('0x10a')]);return RoundRectBuilder['fromPoints'](bounds[mf_dgc_0x1bf2('0x13b')](),bounds[mf_dgc_0x1bf2('0x13c')]());}static[mf_dgc_0x1bf2('0x141')](bounds){return RoundRectBuilder[mf_dgc_0x1bf2('0x128')](bounds[mf_dgc_0x1bf2('0x13b')](),bounds[mf_dgc_0x1bf2('0x13c')]());}static[mf_dgc_0x1bf2('0x130')](){var bounds=new Rect(0x0,0x0,0x64,0x64);return RoundRectBuilder[mf_dgc_0x1bf2('0x128')](bounds[mf_dgc_0x1bf2('0x13b')](),bounds[mf_dgc_0x1bf2('0x13c')]());}[mf_dgc_0x1bf2('0x124')](startPath){var result='';if(startPath)result='M'+this[mf_dgc_0x1bf2('0x13b')]['x']+','+this[mf_dgc_0x1bf2('0x13b')]['y']+'\x20';result+='U'+this['topLeft']['x']+','+this[mf_dgc_0x1bf2('0x13b')]['y']+','+(this['bottomRight']['x']-this[mf_dgc_0x1bf2('0x13b')]['x'])+','+(this[mf_dgc_0x1bf2('0x13c')]['y']-this[mf_dgc_0x1bf2('0x13b')]['y'])+','+this[mf_dgc_0x1bf2('0x13e')]+'\x20';return result;}['exportShapeElement'](){var elements=[];elements[mf_dgc_0x1bf2('0x126')](new ShapeElement('moveTo',[this[mf_dgc_0x1bf2('0x13b')]['x'],this[mf_dgc_0x1bf2('0x13b')]['y']]));elements['push'](new ShapeElement(mf_dgc_0x1bf2('0x142'),[this['topLeft']['x'],this[mf_dgc_0x1bf2('0x13b')]['y'],this[mf_dgc_0x1bf2('0x13c')]['x']-this[mf_dgc_0x1bf2('0x13b')]['x'],this['bottomRight']['y']-this[mf_dgc_0x1bf2('0x13b')]['y'],this[mf_dgc_0x1bf2('0x13e')]],this[mf_dgc_0x1bf2('0x105')],this['strokeThickness'],this['strokeDashStyle']));return elements;}}class Composite{constructor(type,bounds){this[mf_dgc_0x1bf2('0x143')]=type;this[mf_dgc_0x1bf2('0x7f')]=bounds;}['clone'](){return new Composite(this[mf_dgc_0x1bf2('0x143')],this[mf_dgc_0x1bf2('0x7f')]['clone']());}['getElements'](bounds){if(bounds==undefined)bounds=this[mf_dgc_0x1bf2('0x7f')];if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x144')){var x1=bounds['x'];var y1=bounds['y'];var x2=bounds[mf_dgc_0x1bf2('0x145')]();var y2=bounds['bottom']();var list=[];list[mf_dgc_0x1bf2('0x126')](new LineBuilder(new Point(x1,y1),new Point(x2,y1)));list[mf_dgc_0x1bf2('0x126')](new LineBuilder(new Point(x2,y1),new Point(x2,y2)));list[mf_dgc_0x1bf2('0x126')](new LineBuilder(new Point(x2,y2),new Point(x1,y2)));list[mf_dgc_0x1bf2('0x126')](new LineBuilder(new Point(x1,y2),new Point(x1,y1)));return list;}if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x146')){var x1=bounds['x'];var y1=bounds['y'];var x2=bounds[mf_dgc_0x1bf2('0x145')]();var y2=bounds[mf_dgc_0x1bf2('0x147')]();var xc=(x1+x2)/0x2;var yc=(y1+y2)/0x2;var list=[];list[mf_dgc_0x1bf2('0x126')](new LineBuilder(new Point(xc,y1),new Point(x2,yc)));list[mf_dgc_0x1bf2('0x126')](new LineBuilder(new Point(x2,yc),new Point(xc,y2)));list[mf_dgc_0x1bf2('0x126')](new LineBuilder(new Point(xc,y2),new Point(x1,yc)));list[mf_dgc_0x1bf2('0x126')](new LineBuilder(new Point(x1,yc),new Point(xc,y1)));return list;}if(this['type']==mf_dgc_0x1bf2('0x148')){var list=[];list['push'](new ArcBuilder(bounds[mf_dgc_0x1bf2('0x10e')]()['x'],bounds[mf_dgc_0x1bf2('0x10e')]()['y'],bounds['width']/0x2,0x0,Math['PI']));list[mf_dgc_0x1bf2('0x126')](new ArcBuilder(bounds['center']()['x'],bounds['center']()['y'],bounds[mf_dgc_0x1bf2('0x71')]/0x2,Math['PI'],Math['PI']*0x2));return list;}}static[mf_dgc_0x1bf2('0x12f')](point,type){var bounds=Rect[mf_dgc_0x1bf2('0x114')](point,InteractiveElement[mf_dgc_0x1bf2('0x10a')]);return new Composite(type,bounds);}static[mf_dgc_0x1bf2('0x141')](bounds,type){return new Composite(type,bounds);}}class Command{constructor(type,dropLocation,hitElement,element,elementIndex,outline,filledDecoration){this[mf_dgc_0x1bf2('0x143')]=type;if(type==mf_dgc_0x1bf2('0x149')){this[mf_dgc_0x1bf2('0x14a')]=new Map();this[mf_dgc_0x1bf2('0x14b')]=new Map();}this[mf_dgc_0x1bf2('0x14c')]=dropLocation;this['hitElement']=hitElement;this[mf_dgc_0x1bf2('0x2c')]=element;this[mf_dgc_0x1bf2('0x14d')]=elementIndex;this[mf_dgc_0x1bf2('0x14e')]=outline;this[mf_dgc_0x1bf2('0x14f')]=filledDecoration;}[mf_dgc_0x1bf2('0x150')](element){this[mf_dgc_0x1bf2('0x14a')][mf_dgc_0x1bf2('0x151')](element,element[mf_dgc_0x1bf2('0x104')]());}['execute'](canvas){if(this['type']=='ChangeCommand')this[mf_dgc_0x1bf2('0x14a')][mf_dgc_0x1bf2('0x36')]((v,k)=>this[mf_dgc_0x1bf2('0x14b')][mf_dgc_0x1bf2('0x151')](k,k['saveState']()));else if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x152')){this['element']=this[mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x153')][mf_dgc_0x1bf2('0x12f')](this['dropLocation'],this[mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x143')]);canvas[mf_dgc_0x1bf2('0x154')]['decorations'][mf_dgc_0x1bf2('0x126')](this[mf_dgc_0x1bf2('0x2c')]);}else if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x155')){var bounds=new Rect(this[mf_dgc_0x1bf2('0x14c')]['x'],this[mf_dgc_0x1bf2('0x14c')]['y'],0x19,0x19);if(this[mf_dgc_0x1bf2('0x2c')]!=null){var elements=this[mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x156')](bounds);this[mf_dgc_0x1bf2('0x157')]=new FilledDecorationBuilder(elements);this[mf_dgc_0x1bf2('0x157')][mf_dgc_0x1bf2('0x7f')]=bounds;canvas['shapeBuilder'][mf_dgc_0x1bf2('0x158')][mf_dgc_0x1bf2('0x126')](this[mf_dgc_0x1bf2('0x157')]);}}else if(this['type']=='AddAnchorCommand'){this['element']['setCenter'](this[mf_dgc_0x1bf2('0x14c')]);canvas['shapeBuilder'][mf_dgc_0x1bf2('0x159')]['push'](this[mf_dgc_0x1bf2('0x2c')]);}else if(this['type']==mf_dgc_0x1bf2('0x15a')){if(this[mf_dgc_0x1bf2('0x14f')]!=null){var bounds=this['filledDecoration']['bounds'];this[mf_dgc_0x1bf2('0x15b')]=canvas[mf_dgc_0x1bf2('0x15c')](this[mf_dgc_0x1bf2('0x14f')]);if(this[mf_dgc_0x1bf2('0x2c')]instanceof Composite){var elements=this['element']['getElements'](bounds);this['filledDecoration'][mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x126')](...elements);this[mf_dgc_0x1bf2('0x15d')]=elements;}else{var element=RoundRectBuilder[mf_dgc_0x1bf2('0x141')](bounds);this[mf_dgc_0x1bf2('0x14f')][mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x126')](element);this[mf_dgc_0x1bf2('0x15d')]=[element];}}else{this[mf_dgc_0x1bf2('0x15b')]=canvas[mf_dgc_0x1bf2('0x15c')]();if(this[mf_dgc_0x1bf2('0x2c')]instanceof Composite){var elements=this['element'][mf_dgc_0x1bf2('0x156')](new Rect(0x0,0x0,0x64,0x64));canvas[mf_dgc_0x1bf2('0x154')]['outline']['push'](...elements);this[mf_dgc_0x1bf2('0x15d')]=elements;}else{var element=RoundRectBuilder[mf_dgc_0x1bf2('0x141')](new Rect(0x0,0x0,0x64,0x64));canvas[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x126')](element);this[mf_dgc_0x1bf2('0x15d')]=[element];}}}else if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x15e')){var c=this['outline'][mf_dgc_0x1bf2('0xb')];var n=(this['elementIndex']+0x1)%c;var p=this['elementIndex']>0x0?this[mf_dgc_0x1bf2('0x14d')]-0x1:c-0x1;var next=this[mf_dgc_0x1bf2('0x14e')][n];var prev=this[mf_dgc_0x1bf2('0x14e')][p];this['element'][mf_dgc_0x1bf2('0x129')](prev[mf_dgc_0x1bf2('0x10d')],next[mf_dgc_0x1bf2('0x10b')]);this[mf_dgc_0x1bf2('0x14e')]['splice'](this[mf_dgc_0x1bf2('0x14d')],0x1,this[mf_dgc_0x1bf2('0x2c')]);}else if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x15f')){this[mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0xca')](this[mf_dgc_0x1bf2('0x14d')],0x0,this[mf_dgc_0x1bf2('0x2c')]);var c=this[mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0xb')];var n=(this[mf_dgc_0x1bf2('0x14d')]+0x1)%c;var p=this['elementIndex']>0x0?this[mf_dgc_0x1bf2('0x14d')]-0x1:c-0x1;var next=this['outline'][n];this[mf_dgc_0x1bf2('0x160')]=next['saveState']();next[mf_dgc_0x1bf2('0x80')](0x2/0x3,next[mf_dgc_0x1bf2('0x10d')]);var prev=this['outline'][p];this['prevState']=prev[mf_dgc_0x1bf2('0x104')]();prev[mf_dgc_0x1bf2('0x80')](0x2/0x3,prev[mf_dgc_0x1bf2('0x10b')]);this['element']['orientate'](prev[mf_dgc_0x1bf2('0x10d')],next[mf_dgc_0x1bf2('0x10b')]);}else if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x161')){if(this[mf_dgc_0x1bf2('0x2c')]instanceof FilledDecorationBuilder){this[mf_dgc_0x1bf2('0x14d')]=canvas[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x158')][mf_dgc_0x1bf2('0x162')](this[mf_dgc_0x1bf2('0x2c')]);this[mf_dgc_0x1bf2('0x163')](canvas[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x158')],this[mf_dgc_0x1bf2('0x2c')]);this['target']=canvas['shapeBuilder'][mf_dgc_0x1bf2('0x158')];}else if(canvas[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x162')](this['element'])>-0x1){var r=canvas[mf_dgc_0x1bf2('0x164')](canvas['shapeBuilder'][mf_dgc_0x1bf2('0x14e')],this[mf_dgc_0x1bf2('0x2c')]);this[mf_dgc_0x1bf2('0x14d')]=r[mf_dgc_0x1bf2('0xe6')];this[mf_dgc_0x1bf2('0x165')]=r[mf_dgc_0x1bf2('0x165')];this[mf_dgc_0x1bf2('0x160')]=r['nextState'];this[mf_dgc_0x1bf2('0xc1')]=canvas[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x14e')];}else if(canvas[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x166')]['indexOf'](this['element'])>-0x1){this[mf_dgc_0x1bf2('0x14d')]=canvas[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x166')][mf_dgc_0x1bf2('0x162')](this[mf_dgc_0x1bf2('0x2c')]);this[mf_dgc_0x1bf2('0x163')](canvas[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x166')],this[mf_dgc_0x1bf2('0x2c')]);this[mf_dgc_0x1bf2('0xc1')]=canvas['shapeBuilder'][mf_dgc_0x1bf2('0x166')];}else if(canvas[mf_dgc_0x1bf2('0x154')]['textArea'][mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x162')](this[mf_dgc_0x1bf2('0x2c')])>-0x1){var r=canvas[mf_dgc_0x1bf2('0x164')](canvas['shapeBuilder'][mf_dgc_0x1bf2('0x167')][mf_dgc_0x1bf2('0x14e')],this[mf_dgc_0x1bf2('0x2c')]);this[mf_dgc_0x1bf2('0x14d')]=r['index'];this['prevState']=r[mf_dgc_0x1bf2('0x165')];this[mf_dgc_0x1bf2('0x160')]=r[mf_dgc_0x1bf2('0x160')];this['target']=canvas[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x167')]['outline'];}else canvas[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x158')][mf_dgc_0x1bf2('0x36')](fd=>{if(fd[mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x162')](this[mf_dgc_0x1bf2('0x2c')])>-0x1){var r=canvas['removeFromOutline'](fd[mf_dgc_0x1bf2('0x14e')],this[mf_dgc_0x1bf2('0x2c')]);this[mf_dgc_0x1bf2('0x14d')]=r[mf_dgc_0x1bf2('0xe6')];this[mf_dgc_0x1bf2('0x165')]=r[mf_dgc_0x1bf2('0x165')];this[mf_dgc_0x1bf2('0x160')]=r[mf_dgc_0x1bf2('0x160')];this[mf_dgc_0x1bf2('0xc1')]=fd['outline'];}});}}['drawHighlight'](context){context[mf_dgc_0x1bf2('0x100')]();context['strokeThickness']=0x3;if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x15e')){this[mf_dgc_0x1bf2('0x168')][mf_dgc_0x1bf2('0x32')](context,{'color':mf_dgc_0x1bf2('0x169')});}else if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x15f')){context[mf_dgc_0x1bf2('0x11d')]();context[mf_dgc_0x1bf2('0x16a')](this[mf_dgc_0x1bf2('0x14c')]['x'],this['dropLocation']['y'],0x5,0x5,Math['PI']/0x4,0x0,0x2*Math['PI']);context[mf_dgc_0x1bf2('0x16b')]();context[mf_dgc_0x1bf2('0x118')]=mf_dgc_0x1bf2('0x16c');context[mf_dgc_0x1bf2('0x11f')]();}else if(this['type']==mf_dgc_0x1bf2('0x15a')){var elements;if(this['hitElement']instanceof Composite)elements=this[mf_dgc_0x1bf2('0x168')][mf_dgc_0x1bf2('0x156')]();else elements=this[mf_dgc_0x1bf2('0x168')]['outline'];elements['forEach'](element=>{element[mf_dgc_0x1bf2('0x32')](context,{'color':'#ff0000'});});}context[mf_dgc_0x1bf2('0x12d')]();}[mf_dgc_0x1bf2('0x16d')](canvas){if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x149'))this['states'][mf_dgc_0x1bf2('0x36')]((v,k)=>{k[mf_dgc_0x1bf2('0x108')](v);});else if(this[mf_dgc_0x1bf2('0x143')]=='AddDecorationCommand'){this[mf_dgc_0x1bf2('0x163')](canvas[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x166')],this[mf_dgc_0x1bf2('0x2c')]);}else if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x155')){this[mf_dgc_0x1bf2('0x163')](canvas[mf_dgc_0x1bf2('0x154')]['filledDecorations'],this[mf_dgc_0x1bf2('0x157')]);}else if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x16e')){this['removeElements'](canvas[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x159')],this[mf_dgc_0x1bf2('0x2c')]);}else if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x15a')){if(this[mf_dgc_0x1bf2('0x14f')]!=null){canvas[mf_dgc_0x1bf2('0x15c')](this['filledDecoration']);this['filledDecoration'][mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x126')](...this['oldOutline']);}else{canvas[mf_dgc_0x1bf2('0x15c')]();canvas['shapeBuilder'][mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x126')](...this[mf_dgc_0x1bf2('0x15b')]);}}else if(this['type']=='ReplaceElementCommand'){this[mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0xca')](this[mf_dgc_0x1bf2('0x14d')],0x1,this[mf_dgc_0x1bf2('0x168')]);}else if(this[mf_dgc_0x1bf2('0x143')]=='InsertElementCommand'){var c=this['outline'][mf_dgc_0x1bf2('0xb')];var n=this[mf_dgc_0x1bf2('0x14d')]%c;var p=this[mf_dgc_0x1bf2('0x14d')]>0x0?this[mf_dgc_0x1bf2('0x14d')]-0x1:c-0x1;this[mf_dgc_0x1bf2('0x14e')]['splice'](this[mf_dgc_0x1bf2('0x14d')],0x1);var next=this[mf_dgc_0x1bf2('0x14e')][n];next['loadState'](this[mf_dgc_0x1bf2('0x160')]);var prev=this[mf_dgc_0x1bf2('0x14e')][p];prev['loadState'](this[mf_dgc_0x1bf2('0x165')]);}else if(this['type']==mf_dgc_0x1bf2('0x161')){this[mf_dgc_0x1bf2('0xc1')][mf_dgc_0x1bf2('0xca')](this[mf_dgc_0x1bf2('0x14d')],0x0,this['element']);if(this[mf_dgc_0x1bf2('0x165')]){var c=this['target']['length'];var n=(this[mf_dgc_0x1bf2('0x14d')]+0x1)%c;var p=this[mf_dgc_0x1bf2('0x14d')]>0x0?this[mf_dgc_0x1bf2('0x14d')]-0x1:c-0x1;var next=this[mf_dgc_0x1bf2('0xc1')][n];next[mf_dgc_0x1bf2('0x108')](this[mf_dgc_0x1bf2('0x160')]);var prev=this[mf_dgc_0x1bf2('0xc1')][p];prev[mf_dgc_0x1bf2('0x108')](this[mf_dgc_0x1bf2('0x165')]);}}canvas[mf_dgc_0x1bf2('0x16f')]=null;canvas[mf_dgc_0x1bf2('0x170')]();}['redo'](canvas){if(this[mf_dgc_0x1bf2('0x143')]=='ChangeCommand')this['newStates'][mf_dgc_0x1bf2('0x36')]((v,k)=>{k[mf_dgc_0x1bf2('0x108')](v);});else if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x152')){canvas[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x166')]['push'](this[mf_dgc_0x1bf2('0x2c')]);}else if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x155')){canvas[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x158')][mf_dgc_0x1bf2('0x126')](this['newDecoration']);}else if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x16e')){canvas[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x159')][mf_dgc_0x1bf2('0x126')](this[mf_dgc_0x1bf2('0x2c')]);}else if(this[mf_dgc_0x1bf2('0x143')]=='ReplaceOutlineCommand'){if(this['filledDecoration']!=null){canvas[mf_dgc_0x1bf2('0x15c')](this[mf_dgc_0x1bf2('0x14f')]);this['filledDecoration']['outline'][mf_dgc_0x1bf2('0x126')](...this[mf_dgc_0x1bf2('0x15d')]);}else{canvas[mf_dgc_0x1bf2('0x15c')]();canvas['shapeBuilder'][mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x126')](...this[mf_dgc_0x1bf2('0x15d')]);}}else if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x15e')){this[mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0xca')](this[mf_dgc_0x1bf2('0x14d')],0x1,this[mf_dgc_0x1bf2('0x2c')]);}else if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x15f')){this[mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0xca')](this[mf_dgc_0x1bf2('0x14d')],0x0,this[mf_dgc_0x1bf2('0x2c')]);var c=this[mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0xb')];var n=(this[mf_dgc_0x1bf2('0x14d')]+0x1)%c;var p=this[mf_dgc_0x1bf2('0x14d')]>0x0?this[mf_dgc_0x1bf2('0x14d')]-0x1:c-0x1;var next=this[mf_dgc_0x1bf2('0x14e')][n];next[mf_dgc_0x1bf2('0x80')](0x2/0x3,next[mf_dgc_0x1bf2('0x10d')]);var prev=this[mf_dgc_0x1bf2('0x14e')][p];prev['scale'](0x2/0x3,prev[mf_dgc_0x1bf2('0x10b')]);}else if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x161')){this[mf_dgc_0x1bf2('0x171')](canvas);}canvas[mf_dgc_0x1bf2('0x16f')]=null;canvas['invalidate']();}[mf_dgc_0x1bf2('0x163')](array,elements){if(elements instanceof Array){var fi=array[mf_dgc_0x1bf2('0x162')](elements[0x0]);array[mf_dgc_0x1bf2('0xca')](fi,elements[mf_dgc_0x1bf2('0xb')]);}else array[mf_dgc_0x1bf2('0xca')](array['indexOf'](elements),0x1);}}class FilledDecorationBuilder extends InteractiveElement{constructor(outline){super();this[mf_dgc_0x1bf2('0x14e')]=outline;this['fillColor']=mf_dgc_0x1bf2('0x117');}get[mf_dgc_0x1bf2('0x7f')](){if(!this[mf_dgc_0x1bf2('0x172')]){var p=new Path(this['exportElement']()[mf_dgc_0x1bf2('0x173')]);this[mf_dgc_0x1bf2('0x172')]=p[mf_dgc_0x1bf2('0x174')]();}return this[mf_dgc_0x1bf2('0x172')];}set['bounds'](value){this[mf_dgc_0x1bf2('0x172')]=value;}[mf_dgc_0x1bf2('0x32')](context){context['save']();context[mf_dgc_0x1bf2('0x101')]=this[mf_dgc_0x1bf2('0x175')];context[mf_dgc_0x1bf2('0x11d')]();var start=!![];for(var element of this[mf_dgc_0x1bf2('0x14e')]){element['addToContext'](context,start);start=![];}context[mf_dgc_0x1bf2('0x176')]();var pen={'color':this['strokeColor'],'width':this[mf_dgc_0x1bf2('0x106')],'dashStyle':this[mf_dgc_0x1bf2('0x107')]};context[mf_dgc_0x1bf2('0x11d')]();for(var element of this[mf_dgc_0x1bf2('0x14e')]){element[mf_dgc_0x1bf2('0x32')](context,pen);}context[mf_dgc_0x1bf2('0x12d')]();}[mf_dgc_0x1bf2('0x120')](context,size,brush){if(this[mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0xb')]){this[mf_dgc_0x1bf2('0xfe')](context,size,this[mf_dgc_0x1bf2('0x10e')],brush);context[mf_dgc_0x1bf2('0x177')](this[mf_dgc_0x1bf2('0x7f')]['x'],this[mf_dgc_0x1bf2('0x7f')]['y'],this[mf_dgc_0x1bf2('0x7f')][mf_dgc_0x1bf2('0x71')],this[mf_dgc_0x1bf2('0x7f')][mf_dgc_0x1bf2('0x72')],mf_dgc_0x1bf2('0x178'));}}['distance'](point){var center=this[mf_dgc_0x1bf2('0x10e')];return point['distance'](center);}['hitTestHandle'](point,maxDist){var center=this['center'];var dist=point['distance'](center);if(dist<maxDist)return 0x0;if(DrawingUtils['minDistToRect'](point,this[mf_dgc_0x1bf2('0x7f')])<maxDist)return 0x1;return-0x1;}get[mf_dgc_0x1bf2('0x10e')](){var p=new Point(0x0,0x0);this[mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x36')](element=>{var c=element['center'];p['x']+=c['x'];p['y']+=c['y'];});p['x']/=this['outline']['length'];p['y']/=this['outline']['length'];return p;}[mf_dgc_0x1bf2('0x124')](){var elements=[];var start=!![];for(var element of this[mf_dgc_0x1bf2('0x14e')]){elements[mf_dgc_0x1bf2('0x126')](element['exportElement'](start));start=![];}return{'path':elements['join']('')};}[mf_dgc_0x1bf2('0x125')](){var elements=[];for(var element of this['outline']){elements=elements[mf_dgc_0x1bf2('0x179')](element[mf_dgc_0x1bf2('0x125')]());}return new ShapeDecoration(elements,this[mf_dgc_0x1bf2('0x175')],this['strokeColor'],this[mf_dgc_0x1bf2('0x106')],this[mf_dgc_0x1bf2('0x107')]);}['getElements'](bounds){var result=[];var offset=new Point(bounds[mf_dgc_0x1bf2('0x10e')]()['x']-this['bounds']['center']()['x'],bounds[mf_dgc_0x1bf2('0x10e')]()['y']-this[mf_dgc_0x1bf2('0x7f')][mf_dgc_0x1bf2('0x10e')]()['y']);this[mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x36')](element=>{var newElement=element[mf_dgc_0x1bf2('0x10c')]();newElement['offset'](offset);result['push'](newElement);});return result;}}class AnchorPointBuilder extends InteractiveElement{constructor(x,y,type,style,size,color){super();this[mf_dgc_0x1bf2('0x10e')]=new Point(x,y);this['style']=style;this['size']=size;if(color)this[mf_dgc_0x1bf2('0x105')]=color;this['anchorSize']=size*0xa;this[mf_dgc_0x1bf2('0x17a')]=type;}[mf_dgc_0x1bf2('0x10c')](){return new AnchorPointBuilder(this[mf_dgc_0x1bf2('0x10e')]['x'],this[mf_dgc_0x1bf2('0x10e')]['y'],this[mf_dgc_0x1bf2('0x17a')],this[mf_dgc_0x1bf2('0x77')],this[mf_dgc_0x1bf2('0x17b')]);}[mf_dgc_0x1bf2('0x122')](point){return this['center'][mf_dgc_0x1bf2('0x122')](point);}[mf_dgc_0x1bf2('0xff')](point){this[mf_dgc_0x1bf2('0x10e')]['addVector'](point);}[mf_dgc_0x1bf2('0x17c')](point){this[mf_dgc_0x1bf2('0x10e')]=point;}['toShape'](){var params={'outline':this[mf_dgc_0x1bf2('0x124')](!![]),'id':mf_dgc_0x1bf2('0x17d')};return new Shape(params);}static[mf_dgc_0x1bf2('0x17e')](point){var type=AnchorType['BothWays'];if(!point[mf_dgc_0x1bf2('0x17f')])type=AnchorType[mf_dgc_0x1bf2('0x180')];if(!point['allowOutgoing'])type=AnchorType['In'];return new AnchorPointBuilder(point['x'],point['y'],type,point[mf_dgc_0x1bf2('0x181')],point[mf_dgc_0x1bf2('0x17b')],point['color']);}['draw'](context,pen){context['save']();if(!pen)pen={'color':mf_dgc_0x1bf2('0x117'),'width':0x1,'dashStyle':0x0};context[mf_dgc_0x1bf2('0x118')]=this[mf_dgc_0x1bf2('0x105')]||pen['color'];context[mf_dgc_0x1bf2('0x12c')]=(this[mf_dgc_0x1bf2('0x106')]!=undefined?this[mf_dgc_0x1bf2('0x106')]:pen[mf_dgc_0x1bf2('0x71')])*context[mf_dgc_0x1bf2('0x11a')];DashStyle[mf_dgc_0x1bf2('0x11b')](context,this['strokeDashStyle']!=undefined?this['strokeDashStyle']:pen[mf_dgc_0x1bf2('0x11c')]);context[mf_dgc_0x1bf2('0x11d')]();context[mf_dgc_0x1bf2('0x16a')](this[mf_dgc_0x1bf2('0x10e')]['x'],this['center']['y'],0x5,0x5,Math['PI']/0x4,0x0,0x2*Math['PI']);if(this[mf_dgc_0x1bf2('0x17a')]==AnchorType['In']){context[mf_dgc_0x1bf2('0x116')](this[mf_dgc_0x1bf2('0x10e')]['x']+0x5,this['center']['y']);context[mf_dgc_0x1bf2('0x11e')](this[mf_dgc_0x1bf2('0x10e')]['x']+0xf,this[mf_dgc_0x1bf2('0x10e')]['y']);context[mf_dgc_0x1bf2('0x116')](this[mf_dgc_0x1bf2('0x10e')]['x']+0x5,this[mf_dgc_0x1bf2('0x10e')]['y']);context[mf_dgc_0x1bf2('0x11e')](this['center']['x']+0xa,this[mf_dgc_0x1bf2('0x10e')]['y']-0x3);context[mf_dgc_0x1bf2('0x116')](this['center']['x']+0x5,this[mf_dgc_0x1bf2('0x10e')]['y']);context['lineTo'](this[mf_dgc_0x1bf2('0x10e')]['x']+0xa,this[mf_dgc_0x1bf2('0x10e')]['y']+0x3);}else if(this[mf_dgc_0x1bf2('0x17a')]==AnchorType[mf_dgc_0x1bf2('0x180')]){context[mf_dgc_0x1bf2('0x116')](this['center']['x']+0x5,this['center']['y']);context[mf_dgc_0x1bf2('0x11e')](this[mf_dgc_0x1bf2('0x10e')]['x']+0xf,this[mf_dgc_0x1bf2('0x10e')]['y']);context[mf_dgc_0x1bf2('0x11e')](this[mf_dgc_0x1bf2('0x10e')]['x']+0xa,this[mf_dgc_0x1bf2('0x10e')]['y']-0x3);context[mf_dgc_0x1bf2('0x116')](this['center']['x']+0xf,this['center']['y']);context[mf_dgc_0x1bf2('0x11e')](this['center']['x']+0xa,this[mf_dgc_0x1bf2('0x10e')]['y']+0x3);}else if(this[mf_dgc_0x1bf2('0x17a')]==AnchorType[mf_dgc_0x1bf2('0x182')]){context[mf_dgc_0x1bf2('0x116')](this['center']['x']+0x5,this[mf_dgc_0x1bf2('0x10e')]['y']-0x3);context[mf_dgc_0x1bf2('0x11e')](this[mf_dgc_0x1bf2('0x10e')]['x']+0xf,this[mf_dgc_0x1bf2('0x10e')]['y']-0x3);context['moveTo'](this[mf_dgc_0x1bf2('0x10e')]['x']+0x5,this[mf_dgc_0x1bf2('0x10e')]['y']-0x3);context[mf_dgc_0x1bf2('0x11e')](this[mf_dgc_0x1bf2('0x10e')]['x']+0xa,this[mf_dgc_0x1bf2('0x10e')]['y']-0x6);context[mf_dgc_0x1bf2('0x116')](this[mf_dgc_0x1bf2('0x10e')]['x']+0x5,this[mf_dgc_0x1bf2('0x10e')]['y']-0x3);context[mf_dgc_0x1bf2('0x11e')](this['center']['x']+0x9,this['center']['y']);context[mf_dgc_0x1bf2('0x116')](this['center']['x']+0x5,this[mf_dgc_0x1bf2('0x10e')]['y']+0x3);context[mf_dgc_0x1bf2('0x11e')](this[mf_dgc_0x1bf2('0x10e')]['x']+0xf,this['center']['y']+0x3);context[mf_dgc_0x1bf2('0x11e')](this[mf_dgc_0x1bf2('0x10e')]['x']+0xa,this[mf_dgc_0x1bf2('0x10e')]['y']);context[mf_dgc_0x1bf2('0x116')](this['center']['x']+0xf,this[mf_dgc_0x1bf2('0x10e')]['y']+0x3);context[mf_dgc_0x1bf2('0x11e')](this[mf_dgc_0x1bf2('0x10e')]['x']+0xb,this['center']['y']+0x6);}context['closePath']();context['stroke']();context[mf_dgc_0x1bf2('0x12d')]();}['drawControlPoints'](context,size,brush){this[mf_dgc_0x1bf2('0xfe')](context,size,this[mf_dgc_0x1bf2('0x10e')],brush);}['hitTestHandle'](point,maxDist){var d1=point[mf_dgc_0x1bf2('0x122')](this[mf_dgc_0x1bf2('0x10e')]);if(d1<maxDist)return 0x0;return-0x1;}[mf_dgc_0x1bf2('0x123')](handle,point){if(handle==0x0)this[mf_dgc_0x1bf2('0x10e')]=point;}['exportElement'](startPath){var r=this[mf_dgc_0x1bf2('0x183')];var a=r/0x4;var result='O'+this[mf_dgc_0x1bf2('0x10e')]['x']+','+this[mf_dgc_0x1bf2('0x10e')]['y']+','+r+','+r+'\x20';if(this['anchorType']==AnchorType['In']){result+='M'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r)+','+this[mf_dgc_0x1bf2('0x10e')]['y'];result+='L'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r*0x2)+','+this[mf_dgc_0x1bf2('0x10e')]['y'];result+='M'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r)+','+this[mf_dgc_0x1bf2('0x10e')]['y'];result+='L'+(this['center']['x']+r+r/0x2)+','+(this['center']['y']-a);result+='M'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r)+','+this[mf_dgc_0x1bf2('0x10e')]['y'];result+='L'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r+r/0x2)+','+(this[mf_dgc_0x1bf2('0x10e')]['y']+a);}else if(this[mf_dgc_0x1bf2('0x17a')]==AnchorType[mf_dgc_0x1bf2('0x180')]){result+='M'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r)+','+this[mf_dgc_0x1bf2('0x10e')]['y'];result+='L'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r*0x2)+','+this['center']['y'];result+='L'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r+r/0x2)+','+(this[mf_dgc_0x1bf2('0x10e')]['y']-a);result+='M'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r*0x2)+','+this[mf_dgc_0x1bf2('0x10e')]['y'];result+='L'+(this['center']['x']+r+r/0x2)+','+(this['center']['y']+a);}else if(this[mf_dgc_0x1bf2('0x17a')]==AnchorType[mf_dgc_0x1bf2('0x182')]){result+='M'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r)+','+(this['center']['y']-a);result+='L'+(this['center']['x']+r*0x2)+','+(this[mf_dgc_0x1bf2('0x10e')]['y']-a);result+='M'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r)+','+(this['center']['y']-a);result+='L'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r+r/0x2)+','+(this[mf_dgc_0x1bf2('0x10e')]['y']-a*0x2);result+='M'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r)+','+(this[mf_dgc_0x1bf2('0x10e')]['y']-a);result+='L'+(this['center']['x']+r+r/0x2)+','+this[mf_dgc_0x1bf2('0x10e')]['y'];result+='M'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r)+','+(this[mf_dgc_0x1bf2('0x10e')]['y']+a);result+='L'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r*0x2)+','+(this[mf_dgc_0x1bf2('0x10e')]['y']+a);result+='L'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r+r/0x2)+','+this[mf_dgc_0x1bf2('0x10e')]['y'];result+='M'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r*0x2)+','+(this[mf_dgc_0x1bf2('0x10e')]['y']+a);result+='L'+(this[mf_dgc_0x1bf2('0x10e')]['x']+r+r/0x2)+','+(this['center']['y']+a*0x2);}return result;}[mf_dgc_0x1bf2('0x104')](){var state=super[mf_dgc_0x1bf2('0x104')]();state['center']=this[mf_dgc_0x1bf2('0x10e')][mf_dgc_0x1bf2('0x10c')]();state['anchorType']=this['anchorType'];state[mf_dgc_0x1bf2('0x77')]=this[mf_dgc_0x1bf2('0x77')];state['size']=this[mf_dgc_0x1bf2('0x17b')];return state;}[mf_dgc_0x1bf2('0x108')](state){super['loadState'](state);this[mf_dgc_0x1bf2('0x10e')]=state[mf_dgc_0x1bf2('0x10e')];this['anchorType']=state[mf_dgc_0x1bf2('0x17a')];this[mf_dgc_0x1bf2('0x77')]=state[mf_dgc_0x1bf2('0x77')];this[mf_dgc_0x1bf2('0x17b')]=state[mf_dgc_0x1bf2('0x17b')];}static['default'](type){return new AnchorPointBuilder(0x28,0x28,type,MarkStyle[mf_dgc_0x1bf2('0x184')],0x3);}}class TextAreaBuilder extends InteractiveElement{constructor(outline){super();this['outline']=outline;this['outline'][mf_dgc_0x1bf2('0x36')](element=>{element[mf_dgc_0x1bf2('0x185')]=!![];});}get['bounds'](){if(!this['_bounds']){var p=new Path(this['exportElement']()[mf_dgc_0x1bf2('0x173')]);this[mf_dgc_0x1bf2('0x172')]=p[mf_dgc_0x1bf2('0x174')]();}return this[mf_dgc_0x1bf2('0x172')];}set[mf_dgc_0x1bf2('0x7f')](value){this[mf_dgc_0x1bf2('0x172')]=value;}[mf_dgc_0x1bf2('0x32')](context){context[mf_dgc_0x1bf2('0x100')]();context[mf_dgc_0x1bf2('0x11d')]();var start=!![];for(var element of this[mf_dgc_0x1bf2('0x14e')]){element[mf_dgc_0x1bf2('0x115')](context,start);start=![];}context['fillStyle']=mf_dgc_0x1bf2('0x186');context[mf_dgc_0x1bf2('0x176')]();var pen={'color':this[mf_dgc_0x1bf2('0x105')],'width':this[mf_dgc_0x1bf2('0x106')],'dashStyle':this[mf_dgc_0x1bf2('0x107')]};context[mf_dgc_0x1bf2('0x11d')]();for(var element of this[mf_dgc_0x1bf2('0x14e')]){element[mf_dgc_0x1bf2('0x32')](context,pen);}context[mf_dgc_0x1bf2('0x12d')]();}['drawControlPoints'](context,size,brush){if(this[mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0xb')]){this[mf_dgc_0x1bf2('0xfe')](context,size,this['center'],brush);context['strokeRect'](this[mf_dgc_0x1bf2('0x7f')]['x'],this[mf_dgc_0x1bf2('0x7f')]['y'],this['bounds'][mf_dgc_0x1bf2('0x71')],this[mf_dgc_0x1bf2('0x7f')][mf_dgc_0x1bf2('0x72')],mf_dgc_0x1bf2('0x178'));}}['distance'](point){var center=this[mf_dgc_0x1bf2('0x10e')];return point[mf_dgc_0x1bf2('0x122')](center);}[mf_dgc_0x1bf2('0x121')](point,maxDist){var center=this[mf_dgc_0x1bf2('0x10e')];var dist=point['distance'](center);if(dist<maxDist)return 0x0;if(DrawingUtils[mf_dgc_0x1bf2('0x187')](point,this[mf_dgc_0x1bf2('0x7f')])<maxDist)return 0x1;return-0x1;}get[mf_dgc_0x1bf2('0x10e')](){var p=new Point(0x0,0x0);this['outline'][mf_dgc_0x1bf2('0x36')](element=>{var c=element[mf_dgc_0x1bf2('0x10e')];p['x']+=c['x'];p['y']+=c['y'];});p['x']/=this[mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0xb')];p['y']/=this[mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0xb')];return p;}[mf_dgc_0x1bf2('0x124')](){var elements=[];var start=!![];for(var element of this[mf_dgc_0x1bf2('0x14e')]){elements[mf_dgc_0x1bf2('0x126')](element['exportElement'](start));start=![];}return{'path':elements['join']('')};}[mf_dgc_0x1bf2('0x125')](){var elements=[];for(var element of this[mf_dgc_0x1bf2('0x14e')]){elements=elements[mf_dgc_0x1bf2('0x179')](element[mf_dgc_0x1bf2('0x125')]());}return new ShapeDecoration(elements,this[mf_dgc_0x1bf2('0x175')],this[mf_dgc_0x1bf2('0x105')],this[mf_dgc_0x1bf2('0x106')],this[mf_dgc_0x1bf2('0x107')]);}[mf_dgc_0x1bf2('0x156')](bounds){var result=[];var offset=new Point(bounds[mf_dgc_0x1bf2('0x10e')]()['x']-this[mf_dgc_0x1bf2('0x7f')][mf_dgc_0x1bf2('0x10e')]()['x'],bounds[mf_dgc_0x1bf2('0x10e')]()['y']-this['bounds'][mf_dgc_0x1bf2('0x10e')]()['y']);this[mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x36')](element=>{var newElement=element['clone']();newElement[mf_dgc_0x1bf2('0xff')](offset);result[mf_dgc_0x1bf2('0x126')](newElement);});return result;}static[mf_dgc_0x1bf2('0x130')](){var elements=[];elements[mf_dgc_0x1bf2('0x126')](new LineBuilder(new Point(0x0,0x0),new Point(0x0,0x64)));elements[mf_dgc_0x1bf2('0x126')](new LineBuilder(new Point(0x0,0x64),new Point(0x64,0x64)));elements['push'](new LineBuilder(new Point(0x64,0x64),new Point(0x64,0x0)));elements[mf_dgc_0x1bf2('0x126')](new LineBuilder(new Point(0x64,0x0),new Point(0x0,0x0)));return new TextAreaBuilder(elements);}}class ShapeBuilder{constructor(shape,offset){this[mf_dgc_0x1bf2('0x14e')]=null;this['decorations']=null;this[mf_dgc_0x1bf2('0x158')]=[];this['anchorPoints']=null;this[mf_dgc_0x1bf2('0x188')]=shape;this[mf_dgc_0x1bf2('0xff')]=offset||new Point(0x0,0x0);this[mf_dgc_0x1bf2('0x189')]();}[mf_dgc_0x1bf2('0x32')](context){context[mf_dgc_0x1bf2('0x100')]();context['translate'](this['offset']['x'],this[mf_dgc_0x1bf2('0xff')]['y']);context[mf_dgc_0x1bf2('0x11d')]();context[mf_dgc_0x1bf2('0x118')]=mf_dgc_0x1bf2('0x18a');context[mf_dgc_0x1bf2('0x101')]=mf_dgc_0x1bf2('0x18b');context['fillRect'](0x0,0x0,0x64,0x64);context['fillStyle']=mf_dgc_0x1bf2('0x18a');if(this[mf_dgc_0x1bf2('0x14e')]){for(var element of this[mf_dgc_0x1bf2('0x14e')]){element[mf_dgc_0x1bf2('0x32')](context);}}if(this['decorations']){for(var element of this['decorations']){element['draw'](context);}}if(this['filledDecorations']){this[mf_dgc_0x1bf2('0x158')][mf_dgc_0x1bf2('0x36')](fd=>{fd['draw'](context);});}if(this[mf_dgc_0x1bf2('0x159')]){for(var element of this[mf_dgc_0x1bf2('0x159')]){element[mf_dgc_0x1bf2('0x32')](context);}}if(this[mf_dgc_0x1bf2('0x18c')]()){this[mf_dgc_0x1bf2('0x167')][mf_dgc_0x1bf2('0x32')](context);}context[mf_dgc_0x1bf2('0x12d')]();}[mf_dgc_0x1bf2('0x189')](){var renderer=new ShapeRenderer(this[mf_dgc_0x1bf2('0x188')]);this[mf_dgc_0x1bf2('0x14e')]=this[mf_dgc_0x1bf2('0x18d')](this[mf_dgc_0x1bf2('0x188')]['outlineElements']||renderer[mf_dgc_0x1bf2('0x18e')]);this['decorations']=this[mf_dgc_0x1bf2('0x18d')](this['shape']['decorationElements']||renderer['decorationBuilder']);this[mf_dgc_0x1bf2('0x159')]=[];var sd=this[mf_dgc_0x1bf2('0x188')][mf_dgc_0x1bf2('0x18f')]||renderer[mf_dgc_0x1bf2('0x190')];if(sd&&sd[mf_dgc_0x1bf2('0xb')]){this['filledDecorations']=[];sd[mf_dgc_0x1bf2('0x36')](d=>{var b=new FilledDecorationBuilder(this[mf_dgc_0x1bf2('0x18d')](d[mf_dgc_0x1bf2('0x191')]));b[mf_dgc_0x1bf2('0x175')]=d['brush']||d['fillColor'];b[mf_dgc_0x1bf2('0x105')]=d[mf_dgc_0x1bf2('0x192')]||d['strokeColor'];b[mf_dgc_0x1bf2('0x106')]=d[mf_dgc_0x1bf2('0x106')];b[mf_dgc_0x1bf2('0x107')]=d[mf_dgc_0x1bf2('0x107')];this[mf_dgc_0x1bf2('0x158')][mf_dgc_0x1bf2('0x126')](b);});}if(this[mf_dgc_0x1bf2('0x188')][mf_dgc_0x1bf2('0x193')]){this[mf_dgc_0x1bf2('0x188')][mf_dgc_0x1bf2('0x193')][mf_dgc_0x1bf2('0x127')][mf_dgc_0x1bf2('0x36')](point=>{var builder=AnchorPointBuilder['fromPoint'](point);this[mf_dgc_0x1bf2('0x159')]['push'](builder);});}if(this['shape']['textAreaElements']){this[mf_dgc_0x1bf2('0x167')]=new TextAreaBuilder(this[mf_dgc_0x1bf2('0x18d')](this[mf_dgc_0x1bf2('0x188')][mf_dgc_0x1bf2('0x194')]));}else{this[mf_dgc_0x1bf2('0x167')]=TextAreaBuilder[mf_dgc_0x1bf2('0x130')]();}}['createBuilders'](commands){this[mf_dgc_0x1bf2('0x195')]=new Point(0x0,0x0);var builders=[];if(!commands)return builders;for(var command of commands){var b=this[mf_dgc_0x1bf2('0x196')](command);if(b){b[mf_dgc_0x1bf2('0x197')]=command;builders['push'](b);}}return builders;}['createBuilder'](command){switch(command[mf_dgc_0x1bf2('0x198')]){case mf_dgc_0x1bf2('0x116'):{this[mf_dgc_0x1bf2('0x195')]=new Point(...command['args']);break;}case mf_dgc_0x1bf2('0x11e'):{var b=new LineBuilder(this[mf_dgc_0x1bf2('0x195')][mf_dgc_0x1bf2('0x10c')](),new Point(...command['args']));this[mf_dgc_0x1bf2('0x195')]=b[mf_dgc_0x1bf2('0x10d')];break;}case mf_dgc_0x1bf2('0x199'):{var b=new LineBuilder(new Point(command[mf_dgc_0x1bf2('0x19a')][0x0],command[mf_dgc_0x1bf2('0x19a')][0x1]),new Point(command['args'][0x2],command[mf_dgc_0x1bf2('0x19a')][0x3]));this[mf_dgc_0x1bf2('0x195')]=b[mf_dgc_0x1bf2('0x10d')];break;}case mf_dgc_0x1bf2('0x12b'):{var b=new BezierBuilder(this['lastPoint']['x'],this[mf_dgc_0x1bf2('0x195')]['y'],...command[mf_dgc_0x1bf2('0x19a')]);this[mf_dgc_0x1bf2('0x195')]=b[mf_dgc_0x1bf2('0x127')][0x3];break;}case mf_dgc_0x1bf2('0x19b'):{var b=new BezierBuilder(...command[mf_dgc_0x1bf2('0x19a')]);this[mf_dgc_0x1bf2('0x195')]=b['points'][0x3];break;}case mf_dgc_0x1bf2('0x13a'):{var b=new ArcBuilder(...command[mf_dgc_0x1bf2('0x19a')]);this[mf_dgc_0x1bf2('0x195')]=b[mf_dgc_0x1bf2('0x10d')];break;}case mf_dgc_0x1bf2('0x142'):{var b=new RoundRectBuilder(...command['args']);this[mf_dgc_0x1bf2('0x195')]=b['bottomRight'];break;}}if(b){b[mf_dgc_0x1bf2('0x175')]=command[mf_dgc_0x1bf2('0x175')];b[mf_dgc_0x1bf2('0x105')]=command[mf_dgc_0x1bf2('0x105')];b[mf_dgc_0x1bf2('0x106')]=command[mf_dgc_0x1bf2('0x106')];b[mf_dgc_0x1bf2('0x107')]=command[mf_dgc_0x1bf2('0x107')];return b;}return null;}[mf_dgc_0x1bf2('0x19c')](shapeId){var params={};params['id']=shapeId;params[mf_dgc_0x1bf2('0x14e')]=this[mf_dgc_0x1bf2('0x19d')](this[mf_dgc_0x1bf2('0x14e')],!![]);params['decoration']=this[mf_dgc_0x1bf2('0x19d')](this[mf_dgc_0x1bf2('0x166')]);params[mf_dgc_0x1bf2('0x19e')]=this[mf_dgc_0x1bf2('0x19d')](this[mf_dgc_0x1bf2('0x158')],![],!![]);var b=this[mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x19f')](b=>b[mf_dgc_0x1bf2('0x105')]!=undefined);if(b)params[mf_dgc_0x1bf2('0x1a0')]=b['strokeColor'];var b=this[mf_dgc_0x1bf2('0x166')]['find'](b=>b[mf_dgc_0x1bf2('0x105')]!=undefined);if(b)params['decorationPen']=b[mf_dgc_0x1bf2('0x105')];if(this[mf_dgc_0x1bf2('0x158')][mf_dgc_0x1bf2('0xb')]){params[mf_dgc_0x1bf2('0x1a1')]=this[mf_dgc_0x1bf2('0x158')][0x0][mf_dgc_0x1bf2('0x105')];params[mf_dgc_0x1bf2('0x1a2')]=this[mf_dgc_0x1bf2('0x158')][0x0][mf_dgc_0x1bf2('0x175')];}if(this['anchorPoints']!=null){var anchorPattern=new AnchorPattern();this[mf_dgc_0x1bf2('0x159')][mf_dgc_0x1bf2('0x36')](builder=>{var p=builder[mf_dgc_0x1bf2('0x10e')];if(builder['anchorType']==AnchorType['In'])anchorPattern[mf_dgc_0x1bf2('0x127')][mf_dgc_0x1bf2('0x126')](new AnchorPoint(p['x'],p['y'],!![],![],builder['style'],builder[mf_dgc_0x1bf2('0x105')],builder[mf_dgc_0x1bf2('0x17b')]));if(builder[mf_dgc_0x1bf2('0x17a')]==AnchorType[mf_dgc_0x1bf2('0x180')])anchorPattern['points'][mf_dgc_0x1bf2('0x126')](new AnchorPoint(p['x'],p['y'],![],!![],builder['style'],builder[mf_dgc_0x1bf2('0x105')],builder[mf_dgc_0x1bf2('0x17b')]));if(builder[mf_dgc_0x1bf2('0x17a')]==AnchorType[mf_dgc_0x1bf2('0x182')])anchorPattern[mf_dgc_0x1bf2('0x127')][mf_dgc_0x1bf2('0x126')](new AnchorPoint(p['x'],p['y'],!![],!![],builder['style'],builder['strokeColor'],builder['size']));});}var shape=new Shape(params);shape[mf_dgc_0x1bf2('0x1a3')]=this[mf_dgc_0x1bf2('0x1a4')](this[mf_dgc_0x1bf2('0x14e')]);shape[mf_dgc_0x1bf2('0x1a5')]=this[mf_dgc_0x1bf2('0x1a4')](this['decorations']);shape[mf_dgc_0x1bf2('0x18f')]=this[mf_dgc_0x1bf2('0x1a4')](this[mf_dgc_0x1bf2('0x158')],!![]);shape['anchorPattern']=anchorPattern;if(this['useTextArea']()){shape[mf_dgc_0x1bf2('0x194')]=this[mf_dgc_0x1bf2('0x1a4')](this[mf_dgc_0x1bf2('0x167')][mf_dgc_0x1bf2('0x14e')]);var params={};params[mf_dgc_0x1bf2('0x14e')]=this[mf_dgc_0x1bf2('0x19d')](this[mf_dgc_0x1bf2('0x167')][mf_dgc_0x1bf2('0x14e')],!![]);var textShape=new Shape(params);textShape['outlineElements']=this[mf_dgc_0x1bf2('0x167')][mf_dgc_0x1bf2('0x14e')];var textRenderer=new ShapeRenderer(textShape);var b=textRenderer['outlineBounds'];shape[mf_dgc_0x1bf2('0x167')]=Rect[mf_dgc_0x1bf2('0x1a6')](b[mf_dgc_0x1bf2('0x1a7')],b[mf_dgc_0x1bf2('0x1a8')],b[mf_dgc_0x1bf2('0x1a9')],b[mf_dgc_0x1bf2('0x1aa')]);}else shape[mf_dgc_0x1bf2('0x167')]=this[mf_dgc_0x1bf2('0x188')]['textArea'];return shape;}['exportElements'](elementBuilders,merge,array){if(elementBuilders==null)return null;var elements=[];var startPath=!![];elementBuilders['forEach'](b=>{elements[mf_dgc_0x1bf2('0x126')](b[mf_dgc_0x1bf2('0x124')](startPath));if(merge)startPath=![];});if(array)return elements;return elements[mf_dgc_0x1bf2('0x1ab')]('');}[mf_dgc_0x1bf2('0x1a4')](elementBuilders,array){if(elementBuilders==null)return null;var elements=[];elementBuilders[mf_dgc_0x1bf2('0x36')](b=>{if(array)elements[mf_dgc_0x1bf2('0x126')](b['exportShapeElement']());else elements=elements['concat'](b[mf_dgc_0x1bf2('0x125')]());});return elements;}[mf_dgc_0x1bf2('0x18c')](){return this['textArea']&&this[mf_dgc_0x1bf2('0x1ac')];}['allElements'](){var elements=[];if(this['outline'])elements=elements[mf_dgc_0x1bf2('0x179')](this[mf_dgc_0x1bf2('0x14e')]);if(this[mf_dgc_0x1bf2('0x166')])elements=elements['concat'](this[mf_dgc_0x1bf2('0x166')]);if(this[mf_dgc_0x1bf2('0x158')]){this[mf_dgc_0x1bf2('0x158')]['forEach'](fd=>{elements=elements[mf_dgc_0x1bf2('0x179')](fd);fd['outline']['forEach'](element=>elements[mf_dgc_0x1bf2('0x126')](element));});}if(this[mf_dgc_0x1bf2('0x159')])elements=elements[mf_dgc_0x1bf2('0x179')](this[mf_dgc_0x1bf2('0x159')]);if(this[mf_dgc_0x1bf2('0x18c')]()){elements=elements['concat'](this[mf_dgc_0x1bf2('0x167')]);this[mf_dgc_0x1bf2('0x167')][mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x36')](element=>elements['push'](element));}return elements;}['nearestElement'](point,maxDist,elements){if(!elements)elements=this[mf_dgc_0x1bf2('0x1ad')]();var minDistElement=null;var anchorElement=null;var minDist=Number['MAX_VALUE'];var minAnchorDist=Number[mf_dgc_0x1bf2('0x1ae')];for(var element of elements){if(element instanceof AnchorPointBuilder){var distance=element[mf_dgc_0x1bf2('0x122')](point);if(distance<minAnchorDist){minAnchorDist=distance;anchorElement=element;}}}for(var element of elements){var distance=element[mf_dgc_0x1bf2('0x122')](point);if(distance<minDist){minDist=distance;minDistElement=element;}}if(minAnchorDist<=0x5)return anchorElement;else return minDist<maxDist?minDistElement:null;}['hitTestDropTarget'](point,newElement){if(newElement instanceof Composite||newElement instanceof RoundRectBuilder){var target=this[mf_dgc_0x1bf2('0x1af')](point,0x5,this[mf_dgc_0x1bf2('0x14e')]);if(target!=null)return new Command(mf_dgc_0x1bf2('0x15a'),point,this,newElement);if(this[mf_dgc_0x1bf2('0x158')]!=null){for(var i=0x0;i<this['filledDecorations'][mf_dgc_0x1bf2('0xb')];i++){var filledDecoration=this['filledDecorations'][i];var element=this['nearestElement'](point,0x5,filledDecoration[mf_dgc_0x1bf2('0x14e')]);if(element!=null){return new Command(mf_dgc_0x1bf2('0x15a'),point,filledDecoration,newElement,null,null,filledDecoration);}}}if(newElement instanceof Composite)return new Command('AddFilledDecorationCommand',point,null,newElement);else return new Command('AddDecorationCommand',point,null,newElement);}else if(newElement instanceof InteractiveElement){var cmd=this[mf_dgc_0x1bf2('0x1b0')](this['outline'],point,newElement);if(cmd!=null)return cmd;if(this[mf_dgc_0x1bf2('0x18c')]()&&newElement instanceof LineBuilder){var cmd=this['hitTestOutlineTarget'](this[mf_dgc_0x1bf2('0x167')][mf_dgc_0x1bf2('0x14e')],point,newElement);if(cmd!=null)return cmd;}if(this['filledDecorations']!=null){for(var i=0x0;i<this['filledDecorations'][mf_dgc_0x1bf2('0xb')];i++){var filledDecoration=this[mf_dgc_0x1bf2('0x158')][i];var decorCmd=this[mf_dgc_0x1bf2('0x1b0')](filledDecoration['outline'],point,newElement);if(decorCmd!=null)return decorCmd;}}return new Command(mf_dgc_0x1bf2('0x152'),point,null,newElement);}}[mf_dgc_0x1bf2('0x1b0')](outline,point,newElement){var outlineElements=outline!=null?outline[mf_dgc_0x1bf2('0xb')]:0x0;for(var i=0x0;i<outlineElements;i++){var child=outline[i];var handle=child[mf_dgc_0x1bf2('0x121')](point,this[mf_dgc_0x1bf2('0x1b1')]);if(handle==child[mf_dgc_0x1bf2('0x1b2')]){return new Command(mf_dgc_0x1bf2('0x15f'),child['startPoint'],null,newElement,i,outline);}}var outlineElement=this['nearestElement'](point,0x5,outline);if(outlineElement!=null){return new Command('ReplaceElementCommand',point,outlineElement,newElement,outline['indexOf'](outlineElement),outline);}return null;}[mf_dgc_0x1bf2('0x1b3')](point,activeElement){if(activeElement==null)return null;if(activeElement instanceof AnchorPointBuilder){var i=this[mf_dgc_0x1bf2('0x159')][mf_dgc_0x1bf2('0x162')](activeElement);if(i>-0x1){var handle=activeElement[mf_dgc_0x1bf2('0x121')](point,0x4);if(handle!=-0x1)return new ElementController('AnchorController',activeElement,handle);}}if(activeElement instanceof FilledDecorationBuilder){var handle=activeElement[mf_dgc_0x1bf2('0x121')](point,this['handlesSize']);if(handle==0x0)return new ElementController('FilledDecorationMoveController',null,handle,activeElement);if(handle==0x1)return new ElementController(mf_dgc_0x1bf2('0x1b4'),null,handle,activeElement);}if(this[mf_dgc_0x1bf2('0x14e')]!=null){var controller=this[mf_dgc_0x1bf2('0x1b5')](this[mf_dgc_0x1bf2('0x14e')],activeElement,point,null);if(controller!=null)return controller;}if(this[mf_dgc_0x1bf2('0x166')]!=null){var i=this[mf_dgc_0x1bf2('0x166')][mf_dgc_0x1bf2('0x162')](activeElement);if(i>-0x1){var handle=activeElement[mf_dgc_0x1bf2('0x121')](point,this[mf_dgc_0x1bf2('0x1b1')]);if(handle!=-0x1)return new ElementController('ElementController',activeElement,handle,null);}}if(this[mf_dgc_0x1bf2('0x158')]!=null){for(var i=0x0;i<this[mf_dgc_0x1bf2('0x158')]['length'];i++){var controller=this['hitTestOutline'](this['filledDecorations'][i]['outline'],activeElement,point,this[mf_dgc_0x1bf2('0x158')][i]);if(controller!=null)return controller;}}if(this[mf_dgc_0x1bf2('0x167')]!=null){var controller=this[mf_dgc_0x1bf2('0x1b5')](this[mf_dgc_0x1bf2('0x167')][mf_dgc_0x1bf2('0x14e')],activeElement,point,this[mf_dgc_0x1bf2('0x167')]);if(controller!=null)return controller;}return null;}[mf_dgc_0x1bf2('0x1b5')](outline,child,point,filledDecoration){var outlineElements=outline!=null?outline[mf_dgc_0x1bf2('0xb')]:0x0;var i=outline['indexOf'](child);if(i>-0x1){var handle=child[mf_dgc_0x1bf2('0x121')](point,this[mf_dgc_0x1bf2('0x1b1')]);if(outlineElements>0x1&&handle==child[mf_dgc_0x1bf2('0x1b2')]){var adjacent=outline[i-0x1<0x0?outlineElements-0x1:i-0x1];return new ElementController(mf_dgc_0x1bf2('0x1b6'),child,handle,filledDecoration,adjacent,adjacent[mf_dgc_0x1bf2('0x103')]);}else if(outlineElements>0x1&&handle==child[mf_dgc_0x1bf2('0x103')]){var adjacent=outline[(i+0x1)%outlineElements];return new ElementController(mf_dgc_0x1bf2('0x1b6'),child,handle,filledDecoration,adjacent,adjacent[mf_dgc_0x1bf2('0x1b2')]);}else if(handle!=-0x1){return new ElementController(mf_dgc_0x1bf2('0x1b7'),child,handle,filledDecoration);}}return null;}}class ElementController{constructor(type,element,handle,filledDecoration,adjacent,adjacentHandle){this[mf_dgc_0x1bf2('0x143')]=type;this[mf_dgc_0x1bf2('0x2c')]=element;this[mf_dgc_0x1bf2('0x1b8')]=handle;this['filledDecoration']=filledDecoration;this[mf_dgc_0x1bf2('0x1b9')]=adjacent;this['adjacentHandle']=adjacentHandle;this[mf_dgc_0x1bf2('0x1ba')]=new Command('ChangeCommand');if(element)this[mf_dgc_0x1bf2('0x1ba')][mf_dgc_0x1bf2('0x150')](element);if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x1b6'))this[mf_dgc_0x1bf2('0x1ba')]['registerElement'](adjacent);if(this['type']['indexOf'](mf_dgc_0x1bf2('0x1bb'))>-0x1){this[mf_dgc_0x1bf2('0x14f')][mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x36')](element=>this[mf_dgc_0x1bf2('0x1ba')][mf_dgc_0x1bf2('0x150')](element));this[mf_dgc_0x1bf2('0x10e')]=this[mf_dgc_0x1bf2('0x14f')]['center'];this[mf_dgc_0x1bf2('0x1bc')]=0x1;}}['onMouseDown'](point){this[mf_dgc_0x1bf2('0x1bd')]=![];this['previousPosition']=point;if(this['type']==mf_dgc_0x1bf2('0x1b4'))this[mf_dgc_0x1bf2('0x1be')]=point['distance'](this[mf_dgc_0x1bf2('0x10e')]);}[mf_dgc_0x1bf2('0x1bf')](point){this[mf_dgc_0x1bf2('0x1bd')]=!![];if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x1c0')){var offset=new Point(point['x']-this[mf_dgc_0x1bf2('0x1c1')]['x'],point['y']-this['previousPosition']['y']);if(offset['x']||offset['y']){this[mf_dgc_0x1bf2('0x14f')][mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x36')](element=>element[mf_dgc_0x1bf2('0xff')](offset));this[mf_dgc_0x1bf2('0x14f')]['bounds']['offset'](offset['x'],offset['y']);this[mf_dgc_0x1bf2('0x1c1')]=point;}return;}if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x1b4')){var newDistance=point[mf_dgc_0x1bf2('0x122')](this[mf_dgc_0x1bf2('0x10e')]);var newScale=newDistance/this['initialDistance'];var dscale=newScale/this['currentScale'];this[mf_dgc_0x1bf2('0x14f')][mf_dgc_0x1bf2('0x14e')][mf_dgc_0x1bf2('0x36')](element=>{element[mf_dgc_0x1bf2('0x80')](dscale,this[mf_dgc_0x1bf2('0x10e')]);});this[mf_dgc_0x1bf2('0x14f')][mf_dgc_0x1bf2('0x7f')][mf_dgc_0x1bf2('0x1c2')](dscale,dscale);this[mf_dgc_0x1bf2('0x1bc')]=newScale;return;}if(this[mf_dgc_0x1bf2('0x2c')]){this['element'][mf_dgc_0x1bf2('0x123')](this[mf_dgc_0x1bf2('0x1b8')],point);if(this[mf_dgc_0x1bf2('0x14f')])this[mf_dgc_0x1bf2('0x14f')][mf_dgc_0x1bf2('0x7f')]=null;}if(this[mf_dgc_0x1bf2('0x143')]==mf_dgc_0x1bf2('0x1b6')){this['adjacent'][mf_dgc_0x1bf2('0x123')](this[mf_dgc_0x1bf2('0x1c3')],point['clone']());}}['onMouseUp'](point){}}class ShapeCanvas extends Diagram{constructor(){super();this['shapeSize']=0x32;this['selectedHandlesBrush']=mf_dgc_0x1bf2('0x1c4');this[mf_dgc_0x1bf2('0x1c5')]=mf_dgc_0x1bf2('0x1c6');this[mf_dgc_0x1bf2('0x1c7')]=0x0;this[mf_dgc_0x1bf2('0x1c8')]=!![];this[mf_dgc_0x1bf2('0x1c9')]='#eeeeee';this[mf_dgc_0x1bf2('0x1ca')]=0xa;this[mf_dgc_0x1bf2('0x1cb')]=0xa;this[mf_dgc_0x1bf2('0x1cc')]=GridStyle[mf_dgc_0x1bf2('0x1cd')];this[mf_dgc_0x1bf2('0x1ce')]=mf_dgc_0x1bf2('0x1c4');}[mf_dgc_0x1bf2('0x1cf')](repaintArgs){var matrix=repaintArgs['matrix'];var viewport=repaintArgs[mf_dgc_0x1bf2('0x1d0')];this[mf_dgc_0x1bf2('0x1d1')]=repaintArgs[mf_dgc_0x1bf2('0x1d1')];var scale=repaintArgs[mf_dgc_0x1bf2('0x80')];if(!this['context'])return;var clipRect=viewport;this[mf_dgc_0x1bf2('0x1d1')][mf_dgc_0x1bf2('0x1d2')]=matrix;this['context'][mf_dgc_0x1bf2('0x11a')]=scale;this[mf_dgc_0x1bf2('0x1d1')][mf_dgc_0x1bf2('0x1d3')]=this[mf_dgc_0x1bf2('0x1d4')];this[mf_dgc_0x1bf2('0x1d1')][mf_dgc_0x1bf2('0x1d5')]=this[mf_dgc_0x1bf2('0xa2')];this[mf_dgc_0x1bf2('0x1d1')][mf_dgc_0x1bf2('0x100')]();this[mf_dgc_0x1bf2('0x1d6')](repaintArgs[mf_dgc_0x1bf2('0xb2')],repaintArgs[mf_dgc_0x1bf2('0x1d7')]);this[mf_dgc_0x1bf2('0x1d1')][mf_dgc_0x1bf2('0x1d8')][mf_dgc_0x1bf2('0x11b')](this['context'],matrix['matrix']());this['context'][mf_dgc_0x1bf2('0x12c')]=0x1/scale;if(this[mf_dgc_0x1bf2('0x1c8')])this[mf_dgc_0x1bf2('0x1d9')](clipRect,viewport);var zOrder=this[mf_dgc_0x1bf2('0x1da')]();for(var i=0x0;i<zOrder[mf_dgc_0x1bf2('0xb')];i++){var element=zOrder[i];element[mf_dgc_0x1bf2('0x32')](this[mf_dgc_0x1bf2('0x1d1')],![],![]);}this[mf_dgc_0x1bf2('0x1db')](repaintArgs);this['drawForeground']();this[mf_dgc_0x1bf2('0x1d1')]['restore']();this[mf_dgc_0x1bf2('0x1dc')]=![];}[mf_dgc_0x1bf2('0x1dd')](){var offset=this[mf_dgc_0x1bf2('0x154')]?this[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0xff')]:new Point(0x0,0x0);this['context'][mf_dgc_0x1bf2('0x100')]();this['context'][mf_dgc_0x1bf2('0x111')](offset['x'],offset['y']);if(this[mf_dgc_0x1bf2('0x16f')]!=null)this['selectedElement'][mf_dgc_0x1bf2('0x120')](this[mf_dgc_0x1bf2('0x1d1')],this[mf_dgc_0x1bf2('0x1b1')],this['selectedHandlesBrush']);if(this[mf_dgc_0x1bf2('0x1de')]!=null&&this['selectedElement']!=this[mf_dgc_0x1bf2('0x1de')])this[mf_dgc_0x1bf2('0x1de')][mf_dgc_0x1bf2('0x120')](this['context'],this[mf_dgc_0x1bf2('0x1b1')],this[mf_dgc_0x1bf2('0x1c5')]);if(this[mf_dgc_0x1bf2('0x1df')]!=null)this[mf_dgc_0x1bf2('0x1df')]['drawHighlight'](this['context']);this[mf_dgc_0x1bf2('0x1d1')]['restore']();}[mf_dgc_0x1bf2('0x15c')](filledDecoration){if(filledDecoration){var elements=filledDecoration[mf_dgc_0x1bf2('0x14e')];filledDecoration['outline']=[];return elements;}if(this[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x14e')]!=null){var elements=this['shapeBuilder'][mf_dgc_0x1bf2('0x14e')];this[mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x14e')]=[];return elements;}return[];}['removeFromOutline'](outline,element){if(outline['length']<0x3){return{'index':-0x1};}var elementIndex=outline['indexOf'](element);if(elementIndex>-0x1){var c=outline[mf_dgc_0x1bf2('0xb')];var n=(elementIndex+0x1)%c;var p=elementIndex>0x0?elementIndex-0x1:c-0x1;var next=outline[n];var prev=outline[p];var prevState=prev[mf_dgc_0x1bf2('0x104')]();var nextState=next['saveState']();var center=element['center'];outline['splice'](elementIndex,0x1);prev[mf_dgc_0x1bf2('0x129')](prev[mf_dgc_0x1bf2('0x10b')],center);next[mf_dgc_0x1bf2('0x129')](center,next[mf_dgc_0x1bf2('0x10d')]);return{'index':elementIndex,'prevState':prevState,'nextState':nextState};}return{'index':-0x1};}get[mf_dgc_0x1bf2('0x16f')](){return this['_selectedElement'];}set['selectedElement'](value){if(this[mf_dgc_0x1bf2('0x1e0')]!=value){this[mf_dgc_0x1bf2('0x1e0')]=value;if(value==null){if(this['pointedElement'])this[mf_dgc_0x1bf2('0x1de')]=null;}}}get[mf_dgc_0x1bf2('0x154')](){return this['_shapeBuilder'];}set[mf_dgc_0x1bf2('0x154')](value){if(this['_shapeBuilder'])this[mf_dgc_0x1bf2('0x1e1')](this[mf_dgc_0x1bf2('0x1e2')]);this['_shapeBuilder']=value;this['_shapeBuilder']['handlesSize']=this['handlesSize'];this['addElement'](this[mf_dgc_0x1bf2('0x1e2')]);this[mf_dgc_0x1bf2('0x170')]();}['raiseSizeChanged'](){}get[mf_dgc_0x1bf2('0x1e3')](){return this['_dirty'];}set[mf_dgc_0x1bf2('0x1e3')](value){if(value===undefined)value=!![];this[mf_dgc_0x1bf2('0x1e4')]=value;}['setDirty'](value){this[mf_dgc_0x1bf2('0x1e3')]=value;}get[mf_dgc_0x1bf2('0x1b1')](){return this[mf_dgc_0x1bf2('0x1e5')]*this[mf_dgc_0x1bf2('0x80')]/0xa;}}class ShapeView extends DiagramView{constructor(element){super(element,new ShapeCanvas(),ShapeView);this[mf_dgc_0x1bf2('0x1e6')]=Behavior['DoNothing'];this['undoHistory']=[];this['currentCommand']=-0x1;this[mf_dgc_0x1bf2('0xff')]=new Point(0x0,0x0);this[mf_dgc_0x1bf2('0xb2')]=0x32;}[mf_dgc_0x1bf2('0x25')](){super[mf_dgc_0x1bf2('0x25')]();this[mf_dgc_0x1bf2('0x1e7')]['onPointerDown']=this['onPointerDown'][mf_dgc_0x1bf2('0x1e8')](this);this[mf_dgc_0x1bf2('0x1e7')][mf_dgc_0x1bf2('0x1e9')]=this[mf_dgc_0x1bf2('0x1e9')][mf_dgc_0x1bf2('0x1e8')](this);this['mouseInputDispatcher'][mf_dgc_0x1bf2('0x1ea')]=this['onPointerUp'][mf_dgc_0x1bf2('0x1e8')](this);this['keyboardInputDispatcher'][mf_dgc_0x1bf2('0x1eb')]=this['onKeyUp'][mf_dgc_0x1bf2('0x1e8')](this);var bounds=DomUtils['getBounds'](this[mf_dgc_0x1bf2('0x2c')]['parentNode'],this[mf_dgc_0x1bf2('0x2c')]['parentNode']['parentNode']);this['element'][mf_dgc_0x1bf2('0x71')]=bounds['width'];this[mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x72')]=bounds[mf_dgc_0x1bf2('0x72')];var w=bounds[mf_dgc_0x1bf2('0x71')]/this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x80')];var h=bounds['height']/this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x80')];this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x7f')]=new Rect(0x0,0x0,w,h);this['offset']=new Point((w-0x64)/0x2,(h-0x64)/0x2);this[mf_dgc_0x1bf2('0xff')]['x']-=w/this[mf_dgc_0x1bf2('0xa1')]['gridSizeX']-Math[mf_dgc_0x1bf2('0x1ec')](w/this['canvas'][mf_dgc_0x1bf2('0x1ca')]);this[mf_dgc_0x1bf2('0xff')]['y']-=h/this[mf_dgc_0x1bf2('0xa1')]['gridSizeY']-Math[mf_dgc_0x1bf2('0x1ec')](h/this['canvas'][mf_dgc_0x1bf2('0x1cb')]);}[mf_dgc_0x1bf2('0x1ed')](sender,args){var matrix=new Matrix();var scale=this[mf_dgc_0x1bf2('0xb2')]/0x64/GraphicsUnit[mf_dgc_0x1bf2('0x1ee')](this[mf_dgc_0x1bf2('0x56')][mf_dgc_0x1bf2('0xa2')]);matrix[mf_dgc_0x1bf2('0x80')](scale,scale);args[mf_dgc_0x1bf2('0x1ef')]=matrix;args[mf_dgc_0x1bf2('0x80')]=scale;args[mf_dgc_0x1bf2('0xb2')]=this[mf_dgc_0x1bf2('0xb2')];args[mf_dgc_0x1bf2('0x1d0')]=this['diagram'][mf_dgc_0x1bf2('0x7f')];args['context']=this['context'];args[mf_dgc_0x1bf2('0x1d7')]=!this['enabled'];args[mf_dgc_0x1bf2('0x1f0')]=![];var b=this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x7f')];var r=new Rect(0x0,0x0,b[mf_dgc_0x1bf2('0x71')]*scale,b['height']*scale);args['viewport']=r;this[mf_dgc_0x1bf2('0xa1')]['context']['fillStyle']=mf_dgc_0x1bf2('0x1f1');this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x1d1')][mf_dgc_0x1bf2('0x102')](0x0,0x0,b[mf_dgc_0x1bf2('0x71')]*scale,b[mf_dgc_0x1bf2('0x72')]*scale);sender[mf_dgc_0x1bf2('0x1cf')](args);}['resetVirtualScroll'](){}['recalcVirtualScroll'](){}[mf_dgc_0x1bf2('0x1f2')](point){var x=point['x'];var y=point['y'];var p=new Point(x/this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x80')],y/this[mf_dgc_0x1bf2('0xa1')]['scale']);return new Point(p['x']+this['canvas'][mf_dgc_0x1bf2('0x7f')]['x']-this[mf_dgc_0x1bf2('0xff')]['x'],p['y']+this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x7f')]['y']-this[mf_dgc_0x1bf2('0xff')]['y']);}[mf_dgc_0x1bf2('0x1f3')](element,position){var point=this[mf_dgc_0x1bf2('0x1f2')](position);if(element instanceof AnchorPointBuilder)this['canvas'][mf_dgc_0x1bf2('0x1df')]=new Command(mf_dgc_0x1bf2('0x16e'),point,null,element);else this[mf_dgc_0x1bf2('0xa1')]['dropCommand']=this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x1f4')](point,element);this['canvas'][mf_dgc_0x1bf2('0x170')]();}['onElementDrop'](element){if(element&&this[mf_dgc_0x1bf2('0xa1')]['dropCommand']!=null){this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x1df')][mf_dgc_0x1bf2('0x171')](this[mf_dgc_0x1bf2('0xa1')]);this[mf_dgc_0x1bf2('0x1f5')](this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x1df')]);this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x1df')]=null;this[mf_dgc_0x1bf2('0xa1')]['selectedElement']=null;this['canvas'][mf_dgc_0x1bf2('0x170')]();this[mf_dgc_0x1bf2('0x1f6')][mf_dgc_0x1bf2('0x48')](Events[mf_dgc_0x1bf2('0x5')],EventArgs[mf_dgc_0x1bf2('0xa8')]);}}[mf_dgc_0x1bf2('0x1f7')](position,button,id){var point=this[mf_dgc_0x1bf2('0x1f2')](position);this[mf_dgc_0x1bf2('0x1f8')]=this['canvas'][mf_dgc_0x1bf2('0x154')]['hitTest'](point,this[mf_dgc_0x1bf2('0x16f')]);if(!this[mf_dgc_0x1bf2('0x1f8')])this[mf_dgc_0x1bf2('0x1f8')]=this['canvas'][mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x1b3')](point,this[mf_dgc_0x1bf2('0x1de')]);if(this[mf_dgc_0x1bf2('0x1f8')]!=null)this[mf_dgc_0x1bf2('0x1f8')][mf_dgc_0x1bf2('0x1f9')](point);}async[mf_dgc_0x1bf2('0x1e9')](position,id){var point=this[mf_dgc_0x1bf2('0x1f2')](position);var align=this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x1fa')];if(this['controller']!=null){if(align)point=this['alignPointToGrid'](point);this[mf_dgc_0x1bf2('0x1f8')]['onMouseMove'](point);this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x170')]();}else{var pointedElement=this[mf_dgc_0x1bf2('0xa1')]['shapeBuilder'][mf_dgc_0x1bf2('0x1af')](point,0xa);if(pointedElement!=null&&pointedElement!=this['pointedElement']){this[mf_dgc_0x1bf2('0x1de')]=pointedElement;this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x170')]();}}var p=point[mf_dgc_0x1bf2('0x1fb')](this['offset']['x'],this['offset']['y']);this[mf_dgc_0x1bf2('0x1fc')](p);}async[mf_dgc_0x1bf2('0x1ea')](position,button,id){var point=this[mf_dgc_0x1bf2('0x1f2')](position);var align=this[mf_dgc_0x1bf2('0xa1')]['alignToGrid'];if(this[mf_dgc_0x1bf2('0x1f8')]!=null){if(align)point=this[mf_dgc_0x1bf2('0x1fd')](point);this[mf_dgc_0x1bf2('0x1f8')]['onMouseUp'](point);if(this[mf_dgc_0x1bf2('0x1f8')][mf_dgc_0x1bf2('0x1bd')]){this[mf_dgc_0x1bf2('0x1f8')][mf_dgc_0x1bf2('0x1ba')]['execute'](this);this[mf_dgc_0x1bf2('0x1f5')](this[mf_dgc_0x1bf2('0x1f8')][mf_dgc_0x1bf2('0x1ba')]);}this['controller']=null;this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x170')]();this[mf_dgc_0x1bf2('0x16f')]=this[mf_dgc_0x1bf2('0x1de')];this[mf_dgc_0x1bf2('0x1f6')][mf_dgc_0x1bf2('0x48')](Events[mf_dgc_0x1bf2('0x5')],EventArgs['Empty']);}else{this[mf_dgc_0x1bf2('0x16f')]=this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x1af')](point,0xa);this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x170')]();}}async[mf_dgc_0x1bf2('0x1eb')](target,keyCode,recorded,value){if(this[mf_dgc_0x1bf2('0x16f')]){if(keyCode==0x2e||keyCode==0x7f||navigator['platform']['toLowerCase']()[mf_dgc_0x1bf2('0x162')]('mac')>-0x1&&keyCode==0x8){this[mf_dgc_0x1bf2('0x1e1')](this[mf_dgc_0x1bf2('0x16f')]);}}}[mf_dgc_0x1bf2('0x1e1')](element){var command=new Command(mf_dgc_0x1bf2('0x161'),null,null,element);command[mf_dgc_0x1bf2('0x171')](this[mf_dgc_0x1bf2('0xa1')]);this[mf_dgc_0x1bf2('0x1f5')](command);this[mf_dgc_0x1bf2('0x16f')]=null;this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x170')]();this['designer']['raiseEvent'](Events[mf_dgc_0x1bf2('0x5')],EventArgs['Empty']);}[mf_dgc_0x1bf2('0x1f5')](command){this[mf_dgc_0x1bf2('0x1fe')][mf_dgc_0x1bf2('0xca')](this[mf_dgc_0x1bf2('0x1ff')]+0x1,this[mf_dgc_0x1bf2('0x1fe')][mf_dgc_0x1bf2('0xb')]-this['currentCommand']-0x1);this['undoHistory'][mf_dgc_0x1bf2('0x126')](command);this[mf_dgc_0x1bf2('0x1ff')]++;}[mf_dgc_0x1bf2('0x16d')](){if(this['currentCommand']>=0x0){var command=this[mf_dgc_0x1bf2('0x1fe')][this[mf_dgc_0x1bf2('0x1ff')]--];this[mf_dgc_0x1bf2('0x200')]=!![];command[mf_dgc_0x1bf2('0x16d')](this['canvas']);this['fromCommand']=![];this[mf_dgc_0x1bf2('0x1f6')][mf_dgc_0x1bf2('0x48')](Events[mf_dgc_0x1bf2('0x5')],EventArgs[mf_dgc_0x1bf2('0xa8')]);}}[mf_dgc_0x1bf2('0x201')](){if(this[mf_dgc_0x1bf2('0x1ff')]<this['undoHistory'][mf_dgc_0x1bf2('0xb')]-0x1){var command=this[mf_dgc_0x1bf2('0x1fe')][++this['currentCommand']];this['fromCommand']=!![];command[mf_dgc_0x1bf2('0x201')](this['canvas']);this[mf_dgc_0x1bf2('0x200')]=![];this[mf_dgc_0x1bf2('0x1f6')][mf_dgc_0x1bf2('0x48')](Events[mf_dgc_0x1bf2('0x5')],EventArgs[mf_dgc_0x1bf2('0xa8')]);}}[mf_dgc_0x1bf2('0x202')](shape){var showTextArea=this['canvas'][mf_dgc_0x1bf2('0x154')]?this[mf_dgc_0x1bf2('0xa1')]['shapeBuilder'][mf_dgc_0x1bf2('0x1ac')]:![];this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x154')]=new ShapeBuilder(shape,this['offset']);this['canvas'][mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x1ac')]=showTextArea;}['copyToClipboard'](){if(!this[mf_dgc_0x1bf2('0x16f')])return;window[mf_dgc_0x1bf2('0x203')]=this[mf_dgc_0x1bf2('0x16f')];}['pasteFromClipboard'](offsetX,offsetY){var element=window[mf_dgc_0x1bf2('0x203')];if(element){var point=element['center']['clone']();point[mf_dgc_0x1bf2('0xff')](offsetX,offsetY);var command;if(element instanceof FilledDecorationBuilder)command=new Command('AddFilledDecorationCommand',point,null,element);else command=new Command('AddDecorationCommand',point,null,element);command[mf_dgc_0x1bf2('0x171')](this[mf_dgc_0x1bf2('0xa1')]);this['saveCommand'](command);}}[mf_dgc_0x1bf2('0x1fd')](point){return new Point(Math[mf_dgc_0x1bf2('0x1ec')](point['x']/this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x1ca')])*this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x1ca')],Math[mf_dgc_0x1bf2('0x1ec')](point['y']/this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x1cb')])*this['canvas']['gridSizeY']);}get[mf_dgc_0x1bf2('0x16f')](){return this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x16f')];}set[mf_dgc_0x1bf2('0x16f')](value){if(this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x16f')]!=value){this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x16f')]=value;this['designer'][mf_dgc_0x1bf2('0x16f')]=value;}}get[mf_dgc_0x1bf2('0x1de')](){return this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x1de')];}set[mf_dgc_0x1bf2('0x1de')](value){if(this['canvas']['pointedElement']!=value){this[mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x1de')]=value;}}static[mf_dgc_0x1bf2('0xf4')](element,document){return Control['createControl'](ShapeView,element,document);}[mf_dgc_0x1bf2('0xf7')](){var shadow=this[mf_dgc_0x1bf2('0xf8')]({'mode':mf_dgc_0x1bf2('0x204')});let div=document[mf_dgc_0x1bf2('0x85')]('div');div[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0xfb')]=this[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0xfb')];this[mf_dgc_0x1bf2('0x77')]['cssText']='';let canvas=document[mf_dgc_0x1bf2('0x85')](mf_dgc_0x1bf2('0xa1'));canvas['id']=this[mf_dgc_0x1bf2('0xfc')]('id');div[mf_dgc_0x1bf2('0x31')](canvas);shadow[mf_dgc_0x1bf2('0x31')](div);this[mf_dgc_0x1bf2('0xfd')]('id');var view=ShapeView[mf_dgc_0x1bf2('0xf4')](canvas);view['shadowParent']=shadow;}}class ShapePalette extends NodeListView{constructor(element){super(element);this[mf_dgc_0x1bf2('0x205')]=mf_dgc_0x1bf2('0x206');this[mf_dgc_0x1bf2('0x207')]='Elements';this[mf_dgc_0x1bf2('0x208')]=mf_dgc_0x1bf2('0x209');this[mf_dgc_0x1bf2('0x20a')]=mf_dgc_0x1bf2('0x20b');this[mf_dgc_0x1bf2('0x20c')]=null;this[mf_dgc_0x1bf2('0x20d')]=![];this[mf_dgc_0x1bf2('0x20e')]();}[mf_dgc_0x1bf2('0x20e')](){var diagram=new Diagram();var labelStyle=new Style();labelStyle['brush']=this[mf_dgc_0x1bf2('0x20a')];labelStyle[mf_dgc_0x1bf2('0x11f')]=this[mf_dgc_0x1bf2('0x20a')];labelStyle['textColor']=mf_dgc_0x1bf2('0x18b');labelStyle['fontSize']=0xd;labelStyle['backBrush']=this['labelBrush'];var labelBounds=new Rect(0x0,0x0,0x78,0x14);var nodeStyle=new Style();nodeStyle[mf_dgc_0x1bf2('0x20f')]=mf_dgc_0x1bf2('0x18b');nodeStyle[mf_dgc_0x1bf2('0x11f')]=mf_dgc_0x1bf2('0x210');nodeStyle[mf_dgc_0x1bf2('0x1c9')]=mf_dgc_0x1bf2('0x18b');var nodeBounds=new Rect(0x0,0x0,0x64,0x28);var node=new ShapeNode(diagram);node[mf_dgc_0x1bf2('0x7f')]=labelBounds[mf_dgc_0x1bf2('0x10c')]();node['text']=this[mf_dgc_0x1bf2('0x205')];node[mf_dgc_0x1bf2('0x77')]=labelStyle;this[mf_dgc_0x1bf2('0x211')](node,'',!![],!![]);var node=new ShapeNode(diagram);node['bounds']=nodeBounds[mf_dgc_0x1bf2('0x10c')]();node[mf_dgc_0x1bf2('0x212')]=Composite[mf_dgc_0x1bf2('0x141')](nodeBounds,mf_dgc_0x1bf2('0x144'));node[mf_dgc_0x1bf2('0x188')]=Shapes[mf_dgc_0x1bf2('0x213')]();node[mf_dgc_0x1bf2('0x77')]=nodeStyle;this[mf_dgc_0x1bf2('0x211')](node);var node=new ShapeNode(diagram);node[mf_dgc_0x1bf2('0x7f')]=nodeBounds['clone']();node[mf_dgc_0x1bf2('0x212')]=Composite[mf_dgc_0x1bf2('0x141')](nodeBounds,'DiamondComposite');node['shape']=Shapes[mf_dgc_0x1bf2('0x214')]();node[mf_dgc_0x1bf2('0x77')]=nodeStyle;this['addNode'](node);var node=new ShapeNode(diagram);node[mf_dgc_0x1bf2('0x7f')]=nodeBounds[mf_dgc_0x1bf2('0x10c')]();node[mf_dgc_0x1bf2('0x212')]=Composite[mf_dgc_0x1bf2('0x141')](nodeBounds,'EllipseComposite');node[mf_dgc_0x1bf2('0x188')]=Shapes[mf_dgc_0x1bf2('0x215')]();node[mf_dgc_0x1bf2('0x77')]=nodeStyle;this[mf_dgc_0x1bf2('0x211')](node);var node=new ShapeNode(diagram);node[mf_dgc_0x1bf2('0x7f')]=labelBounds['clone']();node[mf_dgc_0x1bf2('0x77')]=labelStyle;node['text']=this[mf_dgc_0x1bf2('0x207')];this['addNode'](node,'',!![],!![]);var node=new ShapeNode(diagram);node['bounds']=nodeBounds[mf_dgc_0x1bf2('0x10c')]();node['tag']=LineBuilder[mf_dgc_0x1bf2('0x130')]();node[mf_dgc_0x1bf2('0x188')]=node[mf_dgc_0x1bf2('0x212')][mf_dgc_0x1bf2('0x113')]();node[mf_dgc_0x1bf2('0x77')]=nodeStyle;this[mf_dgc_0x1bf2('0x211')](node);var node=new ShapeNode(diagram);node[mf_dgc_0x1bf2('0x7f')]=nodeBounds[mf_dgc_0x1bf2('0x10c')]();node[mf_dgc_0x1bf2('0x212')]=BezierBuilder[mf_dgc_0x1bf2('0x130')]();node[mf_dgc_0x1bf2('0x188')]=node[mf_dgc_0x1bf2('0x212')][mf_dgc_0x1bf2('0x113')]();node[mf_dgc_0x1bf2('0x77')]=nodeStyle;this['addNode'](node);var node=new ShapeNode(diagram);node[mf_dgc_0x1bf2('0x7f')]=nodeBounds[mf_dgc_0x1bf2('0x10c')]();node[mf_dgc_0x1bf2('0x212')]=ArcBuilder[mf_dgc_0x1bf2('0x130')]();node['shape']=node[mf_dgc_0x1bf2('0x212')][mf_dgc_0x1bf2('0x113')]();node[mf_dgc_0x1bf2('0x77')]=nodeStyle;this['addNode'](node);var node=new ShapeNode(diagram);node['bounds']=nodeBounds['clone']();node[mf_dgc_0x1bf2('0x212')]=RoundRectBuilder[mf_dgc_0x1bf2('0x130')]();node[mf_dgc_0x1bf2('0x188')]=node[mf_dgc_0x1bf2('0x212')][mf_dgc_0x1bf2('0x113')]();node[mf_dgc_0x1bf2('0x77')]=nodeStyle;this[mf_dgc_0x1bf2('0x211')](node);var node=new ShapeNode(diagram);node[mf_dgc_0x1bf2('0x7f')]=labelBounds[mf_dgc_0x1bf2('0x10c')]();node['style']=labelStyle;node[mf_dgc_0x1bf2('0xec')]=this[mf_dgc_0x1bf2('0x208')];this[mf_dgc_0x1bf2('0x211')](node,'',!![],!![]);nodeBounds=new Rect(0x0,0x0,0x28,0x28);var node=new ShapeNode(diagram);node['bounds']=nodeBounds[mf_dgc_0x1bf2('0x10c')]();node[mf_dgc_0x1bf2('0x212')]=AnchorPointBuilder[mf_dgc_0x1bf2('0x130')](AnchorType['In']);node[mf_dgc_0x1bf2('0x188')]=node[mf_dgc_0x1bf2('0x212')]['toShape']();node[mf_dgc_0x1bf2('0x77')]=nodeStyle;this[mf_dgc_0x1bf2('0x211')](node);var node=new ShapeNode(diagram);node[mf_dgc_0x1bf2('0x7f')]=nodeBounds[mf_dgc_0x1bf2('0x10c')]();node[mf_dgc_0x1bf2('0x212')]=AnchorPointBuilder['default'](AnchorType[mf_dgc_0x1bf2('0x180')]);node[mf_dgc_0x1bf2('0x188')]=node[mf_dgc_0x1bf2('0x212')][mf_dgc_0x1bf2('0x113')]();node[mf_dgc_0x1bf2('0x77')]=nodeStyle;this[mf_dgc_0x1bf2('0x211')](node);var node=new ShapeNode(diagram);node[mf_dgc_0x1bf2('0x7f')]=nodeBounds['clone']();node[mf_dgc_0x1bf2('0x212')]=AnchorPointBuilder['default'](AnchorType[mf_dgc_0x1bf2('0x182')]);node[mf_dgc_0x1bf2('0x188')]=node[mf_dgc_0x1bf2('0x212')][mf_dgc_0x1bf2('0x113')]();node[mf_dgc_0x1bf2('0x77')]=nodeStyle;this[mf_dgc_0x1bf2('0x211')](node);}['onMouseMove'](e){super[mf_dgc_0x1bf2('0x1bf')](e);if(this[mf_dgc_0x1bf2('0x216')]!=null){var target=this[mf_dgc_0x1bf2('0x217')](e);if(target){var cursor=DomUtils[mf_dgc_0x1bf2('0x218')](e,target[mf_dgc_0x1bf2('0x2c')]);target[mf_dgc_0x1bf2('0x1f3')](this[mf_dgc_0x1bf2('0x216')][mf_dgc_0x1bf2('0x212')][mf_dgc_0x1bf2('0x10c')](),cursor);target['element'][mf_dgc_0x1bf2('0x2d')][mf_dgc_0x1bf2('0x77')]['cursor']=mf_dgc_0x1bf2('0x219');}}}async['onMouseLeftButtonUp'](e){if(this[mf_dgc_0x1bf2('0x216')]==null){return;}var target=this['targetAsDiagramView'](e);if(target!=null){if(!target['dragIndicator'])return;var cursor=DomUtils[mf_dgc_0x1bf2('0x218')](e,target['element']);target['onElementDrop'](this[mf_dgc_0x1bf2('0x216')][mf_dgc_0x1bf2('0x212')],cursor);target[mf_dgc_0x1bf2('0x21a')]();delete window[mf_dgc_0x1bf2('0x21b')];target[mf_dgc_0x1bf2('0x56')][mf_dgc_0x1bf2('0x170')]();target[mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x2d')][mf_dgc_0x1bf2('0x77')]['cursor']='default';}document[mf_dgc_0x1bf2('0x21c')][mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x21d')]=mf_dgc_0x1bf2('0x130');this[mf_dgc_0x1bf2('0x21e')]=null;this[mf_dgc_0x1bf2('0x21f')]();}[mf_dgc_0x1bf2('0x217')](e){var etarget=e[mf_dgc_0x1bf2('0xc1')];if(e[mf_dgc_0x1bf2('0x220')])etarget=e[mf_dgc_0x1bf2('0x221')]()[0x0];if(etarget[mf_dgc_0x1bf2('0x222')]===0x1){if(etarget['id']){var target=Control[mf_dgc_0x1bf2('0xf6')](etarget['id']);if(target!=null){if(ControlUtils['isInstanceOfType'](ShapeView,target)){return target;}}}}return null;}static['create'](element){return Control[mf_dgc_0x1bf2('0xf5')](ShapePalette,element);}}class ShapeDesigner extends Control{constructor(element){super(element);}[mf_dgc_0x1bf2('0x25')](){super[mf_dgc_0x1bf2('0x25')]();this['element'][mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x75')]='grid';this['element'][mf_dgc_0x1bf2('0x77')]['gridTemplateColumns']=mf_dgc_0x1bf2('0x223');this[mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x77')]['position']=mf_dgc_0x1bf2('0x224');var bounds=DomUtils[mf_dgc_0x1bf2('0x174')](this[mf_dgc_0x1bf2('0x2c')],this[mf_dgc_0x1bf2('0x2c')]['parentNode']);var div=document['createElement'](mf_dgc_0x1bf2('0x86'));div[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x72')]=bounds[mf_dgc_0x1bf2('0x72')]+'px';div[mf_dgc_0x1bf2('0x77')]['overflow']=mf_dgc_0x1bf2('0x91');var canvasElement=document['createElement'](mf_dgc_0x1bf2('0xa1'));canvasElement['id']=this[mf_dgc_0x1bf2('0x2c')]['id']+mf_dgc_0x1bf2('0x225');canvasElement[mf_dgc_0x1bf2('0x72')]=bounds['height'];div['appendChild'](canvasElement);this[mf_dgc_0x1bf2('0x2c')]['appendChild'](div);this['view']=ShapeView[mf_dgc_0x1bf2('0xf4')](canvasElement);this[mf_dgc_0x1bf2('0x226')]['designer']=this;var div=document['createElement'](mf_dgc_0x1bf2('0x86'));div[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x71')]=mf_dgc_0x1bf2('0x227');div[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x8b')]=mf_dgc_0x1bf2('0x91');div[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x8d')]=mf_dgc_0x1bf2('0x8c');div[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x72')]=bounds[mf_dgc_0x1bf2('0x72')]+'px';var canvasElement=document['createElement'](mf_dgc_0x1bf2('0xa1'));canvasElement['height']=bounds[mf_dgc_0x1bf2('0x72')];canvasElement[mf_dgc_0x1bf2('0x71')]=mf_dgc_0x1bf2('0x228');div[mf_dgc_0x1bf2('0x31')](canvasElement);this[mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x31')](div);this[mf_dgc_0x1bf2('0x229')]=ShapePalette['create'](canvasElement);var window=new Window();window[mf_dgc_0x1bf2('0x22a')]=![];window[mf_dgc_0x1bf2('0x22b')]=![];window['allowMinimize']=![];window[mf_dgc_0x1bf2('0x22c')]=![];window[mf_dgc_0x1bf2('0xc')]=mf_dgc_0x1bf2('0x22d');window['host']=this;window[mf_dgc_0x1bf2('0x22e')]=this['generatePropertyPanelTemplate']();this[mf_dgc_0x1bf2('0x2c')]['appendChild'](window[mf_dgc_0x1bf2('0x32')]());window[mf_dgc_0x1bf2('0x33')]();window[mf_dgc_0x1bf2('0x22f')]();window[mf_dgc_0x1bf2('0x14')]=![];this[mf_dgc_0x1bf2('0x230')]=window;this[mf_dgc_0x1bf2('0x231')]=!![];}[mf_dgc_0x1bf2('0x35')](){this['view'][mf_dgc_0x1bf2('0x35')]();this[mf_dgc_0x1bf2('0x229')]['dispose']();this[mf_dgc_0x1bf2('0x230')][mf_dgc_0x1bf2('0x35')]();super['dispose']();}['getContent'](){return this[mf_dgc_0x1bf2('0x2c')];}[mf_dgc_0x1bf2('0x232')](){var t=document[mf_dgc_0x1bf2('0x85')](mf_dgc_0x1bf2('0x86'));t[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x75')]=mf_dgc_0x1bf2('0x233');t[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x234')]='column';t[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x235')]=mf_dgc_0x1bf2('0x236');t[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x237')]='4px';t['style']['rowGap']='4px';var l=document[mf_dgc_0x1bf2('0x85')]('label');l[mf_dgc_0x1bf2('0x238')]=mf_dgc_0x1bf2('0x239');t[mf_dgc_0x1bf2('0x31')](l);var c=document[mf_dgc_0x1bf2('0x85')](mf_dgc_0x1bf2('0x23a'));c['id']=this[mf_dgc_0x1bf2('0x2c')]['id']+mf_dgc_0x1bf2('0x23b');c['type']=mf_dgc_0x1bf2('0x119');c[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x71')]=mf_dgc_0x1bf2('0x8c');t[mf_dgc_0x1bf2('0x31')](c);var l=document[mf_dgc_0x1bf2('0x85')]('label');l['id']=this[mf_dgc_0x1bf2('0x2c')]['id']+mf_dgc_0x1bf2('0x23c');l[mf_dgc_0x1bf2('0x238')]=mf_dgc_0x1bf2('0x23d');t[mf_dgc_0x1bf2('0x31')](l);var c=document['createElement'](mf_dgc_0x1bf2('0x23a'));c['id']=this[mf_dgc_0x1bf2('0x2c')]['id']+mf_dgc_0x1bf2('0x23e');c[mf_dgc_0x1bf2('0x143')]=mf_dgc_0x1bf2('0x23f');c[mf_dgc_0x1bf2('0x7d')]=-0x1;c[mf_dgc_0x1bf2('0xe5')]=0xa;c[mf_dgc_0x1bf2('0x240')]=this[mf_dgc_0x1bf2('0x241')][mf_dgc_0x1bf2('0x1e8')](this);t[mf_dgc_0x1bf2('0x31')](c);var l=document[mf_dgc_0x1bf2('0x85')](mf_dgc_0x1bf2('0x242'));l['id']=this[mf_dgc_0x1bf2('0x2c')]['id']+'l_strokedashstyle';l[mf_dgc_0x1bf2('0x238')]=mf_dgc_0x1bf2('0x243');t['appendChild'](l);var c=document[mf_dgc_0x1bf2('0x85')]('select');c['id']=this['element']['id']+mf_dgc_0x1bf2('0x244');Object[mf_dgc_0x1bf2('0x245')](DashStyle)[mf_dgc_0x1bf2('0x36')](i=>{if(i[0x1]instanceof Function);else{var option=document['createElement'](mf_dgc_0x1bf2('0x246'));option[mf_dgc_0x1bf2('0xd2')]=i[0x1];option[mf_dgc_0x1bf2('0xec')]=i[0x0];c['appendChild'](option);}});c[mf_dgc_0x1bf2('0x240')]=this['setProp'][mf_dgc_0x1bf2('0x1e8')](this);t[mf_dgc_0x1bf2('0x31')](c);var l=document['createElement'](mf_dgc_0x1bf2('0x242'));l['id']=this[mf_dgc_0x1bf2('0x2c')]['id']+mf_dgc_0x1bf2('0x247');l[mf_dgc_0x1bf2('0x238')]=mf_dgc_0x1bf2('0x248');t[mf_dgc_0x1bf2('0x31')](l);var c=document[mf_dgc_0x1bf2('0x85')]('input');c['id']=this[mf_dgc_0x1bf2('0x2c')]['id']+'p_fillcolor';c['type']=mf_dgc_0x1bf2('0x119');c[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x71')]=mf_dgc_0x1bf2('0x8c');c[mf_dgc_0x1bf2('0x240')]=this[mf_dgc_0x1bf2('0x241')][mf_dgc_0x1bf2('0x1e8')](this);t[mf_dgc_0x1bf2('0x31')](c);var l=document[mf_dgc_0x1bf2('0x85')](mf_dgc_0x1bf2('0x242'));l['id']=this[mf_dgc_0x1bf2('0x2c')]['id']+mf_dgc_0x1bf2('0x249');l['innerText']=mf_dgc_0x1bf2('0x24a');t[mf_dgc_0x1bf2('0x31')](l);var c=document[mf_dgc_0x1bf2('0x85')](mf_dgc_0x1bf2('0x24b'));c['id']=this[mf_dgc_0x1bf2('0x2c')]['id']+mf_dgc_0x1bf2('0x24c');Object[mf_dgc_0x1bf2('0x245')](MarkStyle)[mf_dgc_0x1bf2('0x36')](i=>{if(i[0x1]instanceof Function);else{var option=document[mf_dgc_0x1bf2('0x85')](mf_dgc_0x1bf2('0x246'));option[mf_dgc_0x1bf2('0xd2')]=i[0x1];option[mf_dgc_0x1bf2('0xec')]=i[0x0];c[mf_dgc_0x1bf2('0x31')](option);}});c['onchange']=this[mf_dgc_0x1bf2('0x241')]['bind'](this);t[mf_dgc_0x1bf2('0x31')](c);var l=document['createElement'](mf_dgc_0x1bf2('0x242'));l['id']=this[mf_dgc_0x1bf2('0x2c')]['id']+mf_dgc_0x1bf2('0x24d');l[mf_dgc_0x1bf2('0x238')]=mf_dgc_0x1bf2('0x24e');t['appendChild'](l);var c=document['createElement'](mf_dgc_0x1bf2('0x23a'));c['id']=this[mf_dgc_0x1bf2('0x2c')]['id']+'p_anchorsize';c['type']=mf_dgc_0x1bf2('0x23f');c[mf_dgc_0x1bf2('0x7d')]=0x1;c[mf_dgc_0x1bf2('0xe5')]=0x14;c[mf_dgc_0x1bf2('0x240')]=this[mf_dgc_0x1bf2('0x241')][mf_dgc_0x1bf2('0x1e8')](this);t[mf_dgc_0x1bf2('0x31')](c);return t[mf_dgc_0x1bf2('0x24f')];}[mf_dgc_0x1bf2('0x250')](element){if(!element)return;var c=this[mf_dgc_0x1bf2('0x230')]['element'][mf_dgc_0x1bf2('0x9b')]('#'+this['element']['id']+mf_dgc_0x1bf2('0x23b'));c[mf_dgc_0x1bf2('0xd2')]=element[mf_dgc_0x1bf2('0x105')];c['onchange']=this['setProp'][mf_dgc_0x1bf2('0x1e8')](this);var c=this[mf_dgc_0x1bf2('0x230')]['element'][mf_dgc_0x1bf2('0x9b')]('#'+this[mf_dgc_0x1bf2('0x2c')]['id']+mf_dgc_0x1bf2('0x23e'));var l=this[mf_dgc_0x1bf2('0x230')]['element'][mf_dgc_0x1bf2('0x9b')]('#'+this[mf_dgc_0x1bf2('0x2c')]['id']+mf_dgc_0x1bf2('0x23c'));if(element instanceof AnchorPointBuilder){c[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x75')]='none';l[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x75')]='none';}else{c['style'][mf_dgc_0x1bf2('0x75')]=mf_dgc_0x1bf2('0x251');l[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x75')]='block';c[mf_dgc_0x1bf2('0xd2')]=element[mf_dgc_0x1bf2('0x106')]||-0x1;c['onchange']=this[mf_dgc_0x1bf2('0x241')][mf_dgc_0x1bf2('0x1e8')](this);}var c=this[mf_dgc_0x1bf2('0x230')]['element'][mf_dgc_0x1bf2('0x9b')]('#'+this['element']['id']+mf_dgc_0x1bf2('0x244'));var l=this[mf_dgc_0x1bf2('0x230')][mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x9b')]('#'+this[mf_dgc_0x1bf2('0x2c')]['id']+mf_dgc_0x1bf2('0x252'));if(element instanceof AnchorPointBuilder){c[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x75')]=mf_dgc_0x1bf2('0x253');l[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x75')]=mf_dgc_0x1bf2('0x253');}else{c[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x75')]=mf_dgc_0x1bf2('0x251');l['style'][mf_dgc_0x1bf2('0x75')]=mf_dgc_0x1bf2('0x251');c[mf_dgc_0x1bf2('0xd2')]=element[mf_dgc_0x1bf2('0x107')];c[mf_dgc_0x1bf2('0x240')]=this[mf_dgc_0x1bf2('0x241')]['bind'](this);}var c=this[mf_dgc_0x1bf2('0x230')][mf_dgc_0x1bf2('0x2c')]['querySelector']('#'+this[mf_dgc_0x1bf2('0x2c')]['id']+'p_fillcolor');var l=this[mf_dgc_0x1bf2('0x230')]['element'][mf_dgc_0x1bf2('0x9b')]('#'+this[mf_dgc_0x1bf2('0x2c')]['id']+'l_fillcolor');if(element instanceof FilledDecorationBuilder){c[mf_dgc_0x1bf2('0x77')]['display']=mf_dgc_0x1bf2('0x251');l[mf_dgc_0x1bf2('0x77')]['display']='block';c['value']=element[mf_dgc_0x1bf2('0x175')];c[mf_dgc_0x1bf2('0x240')]=this[mf_dgc_0x1bf2('0x241')][mf_dgc_0x1bf2('0x1e8')](this);}else{c[mf_dgc_0x1bf2('0x77')]['display']='none';l[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x75')]='none';}var c=this[mf_dgc_0x1bf2('0x230')][mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x9b')]('#'+this[mf_dgc_0x1bf2('0x2c')]['id']+mf_dgc_0x1bf2('0x24c'));var l=this['propertyPanel'][mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x9b')]('#'+this[mf_dgc_0x1bf2('0x2c')]['id']+'l_anchorstyle');if(element instanceof AnchorPointBuilder){c[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x75')]='block';l[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x75')]=mf_dgc_0x1bf2('0x251');c[mf_dgc_0x1bf2('0xd2')]=element[mf_dgc_0x1bf2('0x77')];c[mf_dgc_0x1bf2('0x240')]=this[mf_dgc_0x1bf2('0x241')][mf_dgc_0x1bf2('0x1e8')](this);}else{c[mf_dgc_0x1bf2('0x77')]['display']=mf_dgc_0x1bf2('0x253');l[mf_dgc_0x1bf2('0x77')]['display']=mf_dgc_0x1bf2('0x253');}var c=this[mf_dgc_0x1bf2('0x230')][mf_dgc_0x1bf2('0x2c')][mf_dgc_0x1bf2('0x9b')]('#'+this[mf_dgc_0x1bf2('0x2c')]['id']+'p_anchorsize');var l=this[mf_dgc_0x1bf2('0x230')][mf_dgc_0x1bf2('0x2c')]['querySelector']('#'+this[mf_dgc_0x1bf2('0x2c')]['id']+'l_anchorsize');if(element instanceof AnchorPointBuilder){c[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x75')]=mf_dgc_0x1bf2('0x251');l[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x75')]=mf_dgc_0x1bf2('0x251');c[mf_dgc_0x1bf2('0xd2')]=element['size'];c[mf_dgc_0x1bf2('0x240')]=this[mf_dgc_0x1bf2('0x241')][mf_dgc_0x1bf2('0x1e8')](this);}else{c[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x75')]=mf_dgc_0x1bf2('0x253');l[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0x75')]=mf_dgc_0x1bf2('0x253');}}[mf_dgc_0x1bf2('0x241')](e){if(!this['selectedElement'])return;if(e[mf_dgc_0x1bf2('0xc1')]['id']['indexOf'](mf_dgc_0x1bf2('0x254'))>-0x1)this[mf_dgc_0x1bf2('0x16f')][mf_dgc_0x1bf2('0x105')]=e[mf_dgc_0x1bf2('0xc1')][mf_dgc_0x1bf2('0xd2')];else if(e[mf_dgc_0x1bf2('0xc1')]['id'][mf_dgc_0x1bf2('0x162')](mf_dgc_0x1bf2('0x255'))>-0x1)this[mf_dgc_0x1bf2('0x16f')][mf_dgc_0x1bf2('0x106')]=+e['target']['value']==-0x1?undefined:+e[mf_dgc_0x1bf2('0xc1')][mf_dgc_0x1bf2('0xd2')];else if(e[mf_dgc_0x1bf2('0xc1')]['id'][mf_dgc_0x1bf2('0x162')](mf_dgc_0x1bf2('0x256'))>-0x1)this[mf_dgc_0x1bf2('0x16f')]['strokeDashStyle']=+e['target']['value'];else if(e[mf_dgc_0x1bf2('0xc1')]['id'][mf_dgc_0x1bf2('0x162')](mf_dgc_0x1bf2('0x257'))>-0x1)this['selectedElement'][mf_dgc_0x1bf2('0x175')]=e[mf_dgc_0x1bf2('0xc1')][mf_dgc_0x1bf2('0xd2')];else if(e[mf_dgc_0x1bf2('0xc1')]['id'][mf_dgc_0x1bf2('0x162')](mf_dgc_0x1bf2('0x258'))>-0x1)this[mf_dgc_0x1bf2('0x16f')][mf_dgc_0x1bf2('0x77')]=+e['target'][mf_dgc_0x1bf2('0xd2')];else if(e[mf_dgc_0x1bf2('0xc1')]['id']['indexOf'](mf_dgc_0x1bf2('0x259'))>-0x1)this[mf_dgc_0x1bf2('0x16f')][mf_dgc_0x1bf2('0x17b')]=+e['target']['value'];this[mf_dgc_0x1bf2('0x226')]['canvas'][mf_dgc_0x1bf2('0x170')]();this[mf_dgc_0x1bf2('0x48')](Events['shapeChanged'],EventArgs['Empty']);}[mf_dgc_0x1bf2('0x202')](shape){this['selectedElement']=null;this['view'][mf_dgc_0x1bf2('0x202')](shape);this[mf_dgc_0x1bf2('0x48')](Events['shapeChanged'],EventArgs[mf_dgc_0x1bf2('0xa8')]);}['exportShape'](shapeId){if(this[mf_dgc_0x1bf2('0x226')][mf_dgc_0x1bf2('0xa1')]==null)return null;return this[mf_dgc_0x1bf2('0x226')][mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x154')]['exportShape'](shapeId);}['undo'](){this[mf_dgc_0x1bf2('0x226')]['undo']();}['redo'](){this[mf_dgc_0x1bf2('0x226')][mf_dgc_0x1bf2('0x201')]();}['removeElement'](element){this['view'][mf_dgc_0x1bf2('0x1e1')](element);}[mf_dgc_0x1bf2('0x25a')](){this[mf_dgc_0x1bf2('0x226')]['copyToClipboard']();}['pasteFromClipboard'](offsetX,offsetY){this[mf_dgc_0x1bf2('0x226')]['pasteFromClipboard'](offsetX,offsetY);}[mf_dgc_0x1bf2('0x25b')](){this[mf_dgc_0x1bf2('0x226')]['canvas']['invalidate']();this['rebindPropertyPanel'](this[mf_dgc_0x1bf2('0x16f')]);}get[mf_dgc_0x1bf2('0x16f')](){return this[mf_dgc_0x1bf2('0x226')][mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x16f')];}set['selectedElement'](value){if(this[mf_dgc_0x1bf2('0x226')][mf_dgc_0x1bf2('0x16f')]!=value){this[mf_dgc_0x1bf2('0x226')][mf_dgc_0x1bf2('0x16f')]=value;}if(value!=null&&!value[mf_dgc_0x1bf2('0x185')]&&!(value instanceof TextAreaBuilder)){this[mf_dgc_0x1bf2('0x250')](value);if(this['showShapeProperties']){this[mf_dgc_0x1bf2('0x230')]['visible']=!![];this[mf_dgc_0x1bf2('0x230')][mf_dgc_0x1bf2('0x22f')]();}}else this['propertyPanel'][mf_dgc_0x1bf2('0x14')]=![];}get[mf_dgc_0x1bf2('0x231')](){return this['_showShapeProperties'];}set[mf_dgc_0x1bf2('0x231')](value){if(this[mf_dgc_0x1bf2('0x25c')]!=value){this[mf_dgc_0x1bf2('0x25c')]=value;}}get[mf_dgc_0x1bf2('0x1ac')](){return this[mf_dgc_0x1bf2('0x226')]['canvas'][mf_dgc_0x1bf2('0x154')]['showTextArea'];}set[mf_dgc_0x1bf2('0x1ac')](value){this[mf_dgc_0x1bf2('0x226')][mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x154')][mf_dgc_0x1bf2('0x1ac')]=value;if(!value){if(this[mf_dgc_0x1bf2('0x16f')]&&this[mf_dgc_0x1bf2('0x16f')]['ignoreStyle'])this['selectedElement']=null;}this[mf_dgc_0x1bf2('0x226')]['canvas'][mf_dgc_0x1bf2('0x170')]();}get['templatesLabel'](){return this[mf_dgc_0x1bf2('0x229')][mf_dgc_0x1bf2('0x205')];}set[mf_dgc_0x1bf2('0x205')](value){this[mf_dgc_0x1bf2('0x229')][mf_dgc_0x1bf2('0x205')]=value;}get[mf_dgc_0x1bf2('0x207')](){return this[mf_dgc_0x1bf2('0x229')][mf_dgc_0x1bf2('0x207')];}set['primitivesLabel'](value){this[mf_dgc_0x1bf2('0x229')][mf_dgc_0x1bf2('0x207')]=value;}get[mf_dgc_0x1bf2('0x208')](){return this[mf_dgc_0x1bf2('0x229')]['anchorPointsLabel'];}set[mf_dgc_0x1bf2('0x208')](value){this[mf_dgc_0x1bf2('0x229')][mf_dgc_0x1bf2('0x208')]=value;}get['showGrid'](){return this['view'][mf_dgc_0x1bf2('0xa1')]['showGrid'];}set['showGrid'](value){this[mf_dgc_0x1bf2('0x226')][mf_dgc_0x1bf2('0xa1')]['showGrid']=value;}get['alignToGrid'](){return this['view'][mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x1fa')];}set[mf_dgc_0x1bf2('0x1fa')](value){this[mf_dgc_0x1bf2('0x226')][mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x1fa')]=value;}get[mf_dgc_0x1bf2('0x1ca')](){return this['view'][mf_dgc_0x1bf2('0xa1')]['gridSizeX'];}set[mf_dgc_0x1bf2('0x1ca')](value){this[mf_dgc_0x1bf2('0x226')][mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x1ca')]=value;}get[mf_dgc_0x1bf2('0x1cb')](){return this[mf_dgc_0x1bf2('0x226')][mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x1cb')];}set[mf_dgc_0x1bf2('0x1cb')](value){this['view'][mf_dgc_0x1bf2('0xa1')][mf_dgc_0x1bf2('0x1cb')]=value;}get['theme'](){return this[mf_dgc_0x1bf2('0xd7')];}set[mf_dgc_0x1bf2('0x45')](value){if(this[mf_dgc_0x1bf2('0xd7')]!=value){this[mf_dgc_0x1bf2('0xd7')]=value;if(this[mf_dgc_0x1bf2('0xe0')]){var links=this[mf_dgc_0x1bf2('0xe0')][mf_dgc_0x1bf2('0xd8')]('link');[...links][mf_dgc_0x1bf2('0x36')](l=>l[mf_dgc_0x1bf2('0x2d')][mf_dgc_0x1bf2('0xda')](l));var link=document['createElement'](mf_dgc_0x1bf2('0xd9'));link[mf_dgc_0x1bf2('0xdb')]=this[mf_dgc_0x1bf2('0xdc')]+this[mf_dgc_0x1bf2('0xd7')]['id']+mf_dgc_0x1bf2('0xdd');link[mf_dgc_0x1bf2('0xde')]='stylesheet';this[mf_dgc_0x1bf2('0xe0')][mf_dgc_0x1bf2('0x31')](link);}this['propertyPanel'][mf_dgc_0x1bf2('0x45')]=value;}}get[mf_dgc_0x1bf2('0xdc')](){return this[mf_dgc_0x1bf2('0xe1')]||'';}set[mf_dgc_0x1bf2('0xdc')](value){if(this['_themesPath']!=value){this[mf_dgc_0x1bf2('0xe1')]=value;}}get[mf_dgc_0x1bf2('0x5')](){if(!this[mf_dgc_0x1bf2('0x25d')])this[mf_dgc_0x1bf2('0x25d')]=new EventDispatcher();return this[mf_dgc_0x1bf2('0x25d')];}static[mf_dgc_0x1bf2('0xf4')](element){return Control['createControl'](ShapeDesigner,element);}[mf_dgc_0x1bf2('0xf7')](){var shadow=this[mf_dgc_0x1bf2('0xf8')]({'mode':mf_dgc_0x1bf2('0x204')});let div=document[mf_dgc_0x1bf2('0x85')](mf_dgc_0x1bf2('0x86'));div[mf_dgc_0x1bf2('0x77')]['cssText']=this[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0xfb')];this[mf_dgc_0x1bf2('0x77')][mf_dgc_0x1bf2('0xfb')]='';shadow[mf_dgc_0x1bf2('0x31')](div);this[mf_dgc_0x1bf2('0xfd')]('id');var view=ShapeDesigner[mf_dgc_0x1bf2('0xf4')](div);view[mf_dgc_0x1bf2('0xe0')]=shadow;}}var g=typeof window!==mf_dgc_0x1bf2('0x25e')?window:global;class WebComponents{static[mf_dgc_0x1bf2('0x25f')](){if(g[mf_dgc_0x1bf2('0x260')]!=undefined){mf_dgc_0x165f78[mf_dgc_0x1bf2('0x25f')]();mf_dgc_0x393b60[mf_dgc_0x1bf2('0x25f')]();if(g[mf_dgc_0x1bf2('0x260')][mf_dgc_0x1bf2('0x261')]('mindfusion-tabbeddiagramview')==undefined)g[mf_dgc_0x1bf2('0x260')][mf_dgc_0x1bf2('0x262')](mf_dgc_0x1bf2('0x263'),TabbedDiagramView);}}}export{Events,PageEventArgs,ShapeBuilder,ShapeDesigner,TabAlignment,TabbedDiagramView,WebComponents};
1
+ var mf_dgc_0x3c6d=['pageChanging','pageChanged','pageAdding','pageAdded','pageRemoving','pageRemoved','shapeChanged','sender','page','oldPage','_oldPage','pages','length','addPage','_tabAlignment','None','tabStrip','parent','req','visible','autoSizeTabs','showAddButton','setMaxSize','pageRenameStartHandler','onPageRenameStart','onPageRenameEnd','addEventListener','_itemEditEnd','pageRenameEndHandler','tabsSize','_showTabCloseButtons','_showNavigationButtons','_allowRenamePages','onDocumentChanged','document','_lastIndex','items','propFunctions','generatePropFunctions','prototype','initialize','onTabMouseDown','_tabMouseDownHandler','closeButtonClick','addButtonClick','navButtonClick','onTabDrop','itemDrop','_tabDropHandler','shadowParent','element','parentNode','resetTabs','tabAlignment','Top','draw','appendChild','selectedPage','dispose','attachDiagramEvents','dataLoadedDelegate','queryView','queryViewDelegate','detachDiagramEvents','removeEventListener','toJson','toJsonObject','saveViewProps','showNavigationButtons','showTabCloseButtons','allowReorder','allowRenamePages','theme','selectedIndex','fromJson','fromJsonObject','updateScale','loadViewProps','raiseEvent','prepareScriptEvent','pageChangedScript','pageAddingScript','pageRemovingScript','pageRemovedScript','fromId','saveToXml','open','POST','Content-Type','text/xml','diagram','selectSingleNode','DiagramDocument','createElement','View','saveView','serializeToString','writeString','loadFromXml','onload','responseXML','fromXmlDocument','loadView','bind','Error\x20while\x20getting\x20XML.','responseType','send','readString','Theme','trackMouseHover','getHandler','nodeHovered','linkHovered','trackPointerEvents','nodePointerLeave','linkPointerEnter','resetVirtualScrollGrid','scrollerH','clearHandlers','height','_mf_originalHeight','display','grid','gridTemplateColumns','auto\x20','scrollbarSize','style','gridTemplateRows','px\x20auto\x20','px\x20','gridRow','width','min','getScrollbarSize','bounds','scale','inline-block','_element','1\x20/\x20-1','div','className','mf_diagram_scrollerH','gridColumnStart','gridColumnEnd','overflowX','auto','hidden','backgroundColor','mf_diagram_scrollerV','gridRowStart','overflowY','addHandlers','scrollDelegate','resizeTimeoutId','.mf_diagram_scrollerH','querySelector','.mf_diagram_scrollerV','updateCanvasSize','_zoomFactor','getPixel','canvas','measureUnit','firstChild','scrollerV','getBounds','invalidRect','repaint','sizeChanged','Empty','clear','Label','title','titleColor','imageSrc','add','header','removePage','onPageValidateAction','savePageState','zoomFactor','scrollX','scrollY','enabled','dataMfc','mfc-add','toString','item','mfc-first','first','mfc-next','mfc-last','hasCssClass','rawEventArgs','target','mfc-tabbutton-close','inplaceEditBehavior','startEdit','getGroupItems','indexOfItem','getItemByHeader','_items','splice','_selectedPage','setDiagram','selectItem','_document','documentChanged','onDataLoaded','value','Pixel','resetTabAlignment','showCloseButtons','scrollMode','NavButtons','allowDrag','_theme','querySelectorAll','link','forEach','themesPath','.css','rel','stylesheet','_themesPath','setTheme','allowInplaceEdit','resetButtons','oldIndex','max','index','inplaceController','inplaceHandler','endEdit','pointerdown','_pageChanging','_pageChanged','_pageAdding','_pageAdded','_pageRemoving','_pageRemoved','create','createControl','find','findControl','attachShadow','replace','cssText','getAttribute','removeAttribute','drawControlPoint','offset','save','fillStyle','fillRect','strokeRect','lastHandle','strokeColor','strokeThickness','strokeDashStyle','loadState','defaultSize','startPoint','endPoint','clone','mid','distance','distToLine','addVector','translate','transformPoint','toShape','exportElement','Line','fromCenter','fromCenterAndSize','addToContext','moveTo','#000000','strokeStyle','lineWidth','_mf_scale','dashStyle','beginPath','restore','drawControlPoints','hitTestHandle','updateFromHandle','push','saveState','points','fromPoints','center','distToBezier','orientate','sqrt','color','apply','stroke','default','bezierCurveTo','addArcPoints','controlPoint','calcCenter','abs','degreeToRadian','angleBetween','ccw','pow','Arc','arc','topLeft','bottomRight','cornerRadius','quadraticCurveTo','lineTo','fromBounds','type','getElements','right','bottom','DiamondComposite','ChangeCommand','newStates','registerElement','states','execute','set','AddDecorationCommand','shapeBuilder','AddFilledDecorationCommand','filledDecorations','newDecoration','AddAnchorCommand','setCenter','dropLocation','anchorPoints','ReplaceOutlineCommand','filledDecoration','outline','newOutline','clearOutline','ReplaceElementCommand','elementIndex','InsertElementCommand','nextState','prevState','indexOf','removeElements','removeFromOutline','decorations','textArea','drawHighlight','#ff0000','closePath','#0000ff','undo','oldOutline','selectedElement','invalidate','redo','fillColor','_bounds','fill','#ccc','minDistToRect','join','exportShapeElement','concat','anchorType','fromPoint','BothWays','allowIncoming','Out','markStyle','size','ellipse','anchorSize','Cross','ignoreStyle','path','rgba(0,\x200,\x20100,\x200.5)','shape','parseShape','black','useTextArea','createBuilders','outlineElements','outlineBuilder','decorationElements','decorationBuilder','shapeDecorationElements','shapeDecorationBuilder','elements','brush','pen','anchorPattern','textAreaElements','createBuilder','command','lastPoint','line','args','bezier','roundRect','exportElements','decoration','shapeDecorations','decorationPen','shapeDecorationPen','shapeDecorationBrush','exportShapeElements','fromLTRB','minY','maxX','maxY','showTextArea','allElements','nearestElement','MAX_VALUE','hitTestOutlineTarget','handlesSize','hitTest','FilledDecorationResizeController','hitTestOutline','firstHandle','OutlineController','ElementController','handle','adjacent','adjacentHandle','changeCommand','currentScale','onMouseDown','hasMoved','initialDistance','previousPosition','onMouseUp','selectedHandlesBrush','#ffffff','pointedHandlesBrush','#cccccc','shadowsStyle','showGrid','backBrush','#eeeeee','gridSizeY','gridStyle','Lines','gridColor','doRepaint','matrix','viewport','context','_mf_transform','_mf_minVisibleFontSize','minVisibleFontSize','_mf_measureUnit','drawBackground','disabled','transform','drawGrid','getZOrder','drawForeground','pointedElement','dropCommand','_selectedElement','_shapeBuilder','raiseSizeChanged','dirty','_dirty','setDirty','undoHistory','currentCommand','mouseInputDispatcher','onPointerDown','onPointerMove','onPointerUp','onKeyUp','gridSizeX','floor','onBeforeRepaint','doClip','cyan','recalcVirtualScroll','clientToDoc','onElementDrag','hitTestDropTarget','onElementDrop','saveCommand','designer','controller','alignPointToGrid','onMouseMove','updateDragIndicator','alignToGrid','platform','mac','removeElement','fromCommand','importShape','mf_clipboard','templatesLabel','Decorations','primitivesLabel','Elements','anchorPointsLabel','Anchor\x20Points','labelBrush','#495f77','drawShadow','fillShapes','textColor','#fff','fontSize','#000','tag','RectangleComposite','Rectangle','addNode','Rhombus','Ellipse','text','targetAsDiagramView','draggedNode','move','onMouseLeftButtonUp','dragIndicator','getCursorPos','removeDragIndicator','mf_drag','cursor','body','_draggedNode','removeDragShape','composedPath','isInstanceOfType','1fr\x20140px','position','overflow','_view','140px','120','palette','allowResize','allowMaximize','allowPin','host','template','generatePropertyPanelTemplate','autoSize','view','propertyPanel','flex','flexDirection','column','alignItems','padding','4px','rowGap','label','Stroke\x20Color','p_strokecolor','innerText','input','p_strokethickness','number','setProp','l_strokedashstyle','Stroke\x20Dash\x20Style','select','entries','option','onchange','l_fillcolor','Fill\x20Color','p_fillcolor','l_anchorstyle','Style','p_anchorstyle','l_anchorsize','p_anchorsize','outerHTML','l_strokethickness','none','block','strokedashstyle','fillcolor','anchorstyle','anchorsize','exportShape','copyToClipboard','pasteFromClipboard','refresh','rebindPropertyPanel','_showShapeProperties','showShapeProperties','removeChild','href','_shapeChanged','connectedCallback','_labelPosition','Auto','_padding','_newInstanceSize','_textColor','_captionFont','sans-serif','itemSelectedDelegate','onItemSelected','control','_layoutUpdated','updateSizeDelegate','categories','imageLocation','deserializeItems','columns','labelPosition','iconSize','newInstanceSize','copy','backColor','captionFont','orientation','controlLoaded','controlLoadedScript','nodeSelectedScript','linkSelected','shapeLibraryLoaded','collapseItems','expandedItems','dataIndex','expandItems','serializeItems','captions','map','expandedItemsIndices','attachItem','nodeSelected','shapeLibraryLocation','_controls','count','values','updateLayout','removeCategory','remove','addItem','removeItem','clearAll','_measureUnit','_columns','_shapeLibraryLocation','_iconSize','_backColor','_minVisibleFontSize','_nodeSelected','_linkSelected','onItemToggle','updateSize','undefined','register','customElements','define','mindfusion-tabbeddiagramview'];var mf_dgc_0x38f3=function(_0x34fe90,_0x414be1){_0x34fe90=_0x34fe90-0x0;var _0x4b243e=mf_dgc_0x3c6d[_0x34fe90];return _0x4b243e;};import{CancelEventArgs,Control,DomUtils,EventArgs,EventDispatcher,ControlUtils}from'@mindfusion/controls';import{DiagramView,DiagramDocument,DiagramPage,CompatConfig,Events as mf_dgc_0x248fdb,Theme,XmlPersistContext,Diagram,Shape,ShapeElement,ShapeDecoration,MarkStyle,ShapeRenderer,AnchorPattern,AnchorPoint,GridStyle,Behavior,NodeListView,Style,ShapeNode,Shapes,LabelPosition,ItemListView,NodeEventArgs,WebComponents as mf_dgc_0x136c61}from'@mindfusion/diagramming';import{Unit,UnitType}from'@mindfusion/common';import{TabStrip,ToolStripItem,ToolStripItemType,TabsScrollMode,uicss,listviewcss,toolstripcss,tabstripcss,Window,Accordion,AccordionItem,WebComponents as mf_dgc_0x3ee1d1}from'@mindfusion/common-ui';import{List}from'@mindfusion/common-collections';import{GraphicsUnit,Rect,Size,Point,DrawingUtils,Matrix,DashStyle,Geometry,Path,Font}from'@mindfusion/drawing';const TabAlignment={'None':0x0,'Top':0x1,'Bottom':0x3};const AnchorType={'In':0x0,'Out':0x1,'BothWays':0x2};class Events{static get[mf_dgc_0x38f3('0x0')](){return mf_dgc_0x38f3('0x0');}static get[mf_dgc_0x38f3('0x1')](){return mf_dgc_0x38f3('0x1');}static get[mf_dgc_0x38f3('0x2')](){return mf_dgc_0x38f3('0x2');}static get[mf_dgc_0x38f3('0x3')](){return mf_dgc_0x38f3('0x3');}static get[mf_dgc_0x38f3('0x4')](){return'pageRemoving';}static get['pageRemoved'](){return mf_dgc_0x38f3('0x5');}static get[mf_dgc_0x38f3('0x6')](){return mf_dgc_0x38f3('0x6');}}class PageEventArgs extends CancelEventArgs{constructor(args){super();if(args[mf_dgc_0x38f3('0x7')])this[mf_dgc_0x38f3('0x7')]=args[mf_dgc_0x38f3('0x7')];if(args[mf_dgc_0x38f3('0x8')])this['_page']=args['page'];if(args[mf_dgc_0x38f3('0x9')])this[mf_dgc_0x38f3('0xa')]=args[mf_dgc_0x38f3('0x9')];}get[mf_dgc_0x38f3('0x8')](){return this['_page'];}get[mf_dgc_0x38f3('0x9')](){return this[mf_dgc_0x38f3('0xa')];}}class TabbedDiagramView extends DiagramView{constructor(element,document){var doc=document||new DiagramDocument();if(!doc[mf_dgc_0x38f3('0xb')][mf_dgc_0x38f3('0xc')]){var page=new DiagramPage();page['title']='diagram1';doc[mf_dgc_0x38f3('0xd')](page);}super(element,doc['pages'][0x0],TabbedDiagramView);this[mf_dgc_0x38f3('0xe')]=TabAlignment[mf_dgc_0x38f3('0xf')];this[mf_dgc_0x38f3('0x10')]=new TabStrip();this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x11')]=this;this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x12')]=()=>{return!![];};this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x13')]=![];this['tabStrip'][mf_dgc_0x38f3('0x14')]=![];this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x15')]=![];this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x16')]=!![];this[mf_dgc_0x38f3('0x17')]=(sender,args)=>this[mf_dgc_0x38f3('0x18')](sender,args);this['pageRenameEndHandler']=(sender,args)=>this[mf_dgc_0x38f3('0x19')](sender,args);this[mf_dgc_0x38f3('0x10')]['_itemEditStart'][mf_dgc_0x38f3('0x1a')](this[mf_dgc_0x38f3('0x17')]);this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x1b')]['addEventListener'](this[mf_dgc_0x38f3('0x1c')]);this[mf_dgc_0x38f3('0x1d')]=0x14;this[mf_dgc_0x38f3('0x1e')]=![];this[mf_dgc_0x38f3('0x1f')]=![];this[mf_dgc_0x38f3('0x20')]=![];this['documentChangedDelegate']=(sender,args)=>this[mf_dgc_0x38f3('0x21')](sender,args);this[mf_dgc_0x38f3('0x22')]=doc;this[mf_dgc_0x38f3('0x23')]=0x1;this[mf_dgc_0x38f3('0x24')]=new List(this['_document']['pages']);if(CompatConfig[mf_dgc_0x38f3('0x25')]){CompatConfig[mf_dgc_0x38f3('0x26')](TabbedDiagramView[mf_dgc_0x38f3('0x27')]);}}[mf_dgc_0x38f3('0x28')](){super[mf_dgc_0x38f3('0x28')]();this['_tabMouseDownHandler']=(sender,args)=>{this[mf_dgc_0x38f3('0x29')](sender,args);};this[mf_dgc_0x38f3('0x10')]['itemMouseDown'][mf_dgc_0x38f3('0x1a')](this[mf_dgc_0x38f3('0x2a')]);this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x2b')][mf_dgc_0x38f3('0x1a')](this[mf_dgc_0x38f3('0x2a')]);this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x2c')][mf_dgc_0x38f3('0x1a')](this['_tabMouseDownHandler']);this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x2d')]['addEventListener'](this[mf_dgc_0x38f3('0x2a')]);this['_tabDropHandler']=(sender,args)=>{this[mf_dgc_0x38f3('0x2e')](sender,args);};this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x2f')][mf_dgc_0x38f3('0x1a')](this[mf_dgc_0x38f3('0x30')]);this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x31')]=this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x33')];this[mf_dgc_0x38f3('0x34')]();if(this[mf_dgc_0x38f3('0x35')]==TabAlignment[mf_dgc_0x38f3('0x36')])this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x33')]['insertBefore'](this['tabStrip'][mf_dgc_0x38f3('0x37')](),this[mf_dgc_0x38f3('0x32')]);else this[mf_dgc_0x38f3('0x32')]['parentNode'][mf_dgc_0x38f3('0x38')](this[mf_dgc_0x38f3('0x10')]['draw']());this[mf_dgc_0x38f3('0x10')]['attach']();this[mf_dgc_0x38f3('0x39')]=this[mf_dgc_0x38f3('0x24')]['last']();}[mf_dgc_0x38f3('0x3a')](){this[mf_dgc_0x38f3('0x24')]['forEach'](item=>item[mf_dgc_0x38f3('0x3a')]());this[mf_dgc_0x38f3('0x10')]['dispose']();super[mf_dgc_0x38f3('0x3a')]();}[mf_dgc_0x38f3('0x3b')](){this['document'][mf_dgc_0x38f3('0x1a')](mf_dgc_0x248fdb['dataLoaded'],this[mf_dgc_0x38f3('0x3c')]);this[mf_dgc_0x38f3('0x22')][mf_dgc_0x38f3('0x1a')](mf_dgc_0x248fdb[mf_dgc_0x38f3('0x3d')],this[mf_dgc_0x38f3('0x3e')]);}[mf_dgc_0x38f3('0x3f')](){this[mf_dgc_0x38f3('0x22')][mf_dgc_0x38f3('0x40')](mf_dgc_0x248fdb['dataLoaded'],this[mf_dgc_0x38f3('0x3c')]);this[mf_dgc_0x38f3('0x22')]['removeEventListener'](mf_dgc_0x248fdb[mf_dgc_0x38f3('0x3d')],this[mf_dgc_0x38f3('0x3e')]);}[mf_dgc_0x38f3('0x41')](){var json=this[mf_dgc_0x38f3('0x22')][mf_dgc_0x38f3('0x42')]();this[mf_dgc_0x38f3('0x43')](json);return Control[mf_dgc_0x38f3('0x41')](json);}[mf_dgc_0x38f3('0x43')](json){super[mf_dgc_0x38f3('0x43')](json);json[mf_dgc_0x38f3('0x35')]=this[mf_dgc_0x38f3('0x35')];json[mf_dgc_0x38f3('0x1d')]=this[mf_dgc_0x38f3('0x1d')];json[mf_dgc_0x38f3('0x44')]=this[mf_dgc_0x38f3('0x44')];json[mf_dgc_0x38f3('0x15')]=this[mf_dgc_0x38f3('0x15')];json[mf_dgc_0x38f3('0x45')]=this[mf_dgc_0x38f3('0x45')];json[mf_dgc_0x38f3('0x46')]=this['allowReorder'];json[mf_dgc_0x38f3('0x47')]=this['allowRenamePages'];json['theme']=this[mf_dgc_0x38f3('0x48')]?this[mf_dgc_0x38f3('0x48')]['id']:null;json[mf_dgc_0x38f3('0x49')]=this[mf_dgc_0x38f3('0x49')];}[mf_dgc_0x38f3('0x4a')](json){if(json>''){var obj=Control['fromJson'](json);this[mf_dgc_0x38f3('0x22')][mf_dgc_0x38f3('0x4b')](obj);this[mf_dgc_0x38f3('0x4c')]();this[mf_dgc_0x38f3('0x4d')](obj);}this[mf_dgc_0x38f3('0x4e')](mf_dgc_0x248fdb['controlLoaded']);}['loadViewProps'](obj){super[mf_dgc_0x38f3('0x4d')](obj);this['prepareScriptEvent'](Events[mf_dgc_0x38f3('0x0')],obj['pageChangingScript']);this[mf_dgc_0x38f3('0x4f')](Events[mf_dgc_0x38f3('0x1')],obj[mf_dgc_0x38f3('0x50')]);this[mf_dgc_0x38f3('0x4f')](Events[mf_dgc_0x38f3('0x2')],obj[mf_dgc_0x38f3('0x51')]);this[mf_dgc_0x38f3('0x4f')](Events['pageAdded'],obj['pageAddedScript']);this[mf_dgc_0x38f3('0x4f')](Events[mf_dgc_0x38f3('0x4')],obj[mf_dgc_0x38f3('0x52')]);this['prepareScriptEvent'](Events['pageRemoved'],obj[mf_dgc_0x38f3('0x53')]);if(obj[mf_dgc_0x38f3('0x35')]!==undefined)this[mf_dgc_0x38f3('0x35')]=obj[mf_dgc_0x38f3('0x35')];if(obj[mf_dgc_0x38f3('0x1d')]!==undefined)this[mf_dgc_0x38f3('0x1d')]=obj[mf_dgc_0x38f3('0x1d')];if(obj[mf_dgc_0x38f3('0x44')]!==undefined)this['showNavigationButtons']=obj[mf_dgc_0x38f3('0x44')];if(obj[mf_dgc_0x38f3('0x15')]!==undefined)this[mf_dgc_0x38f3('0x15')]=obj[mf_dgc_0x38f3('0x15')];if(obj['showTabCloseButtons']!==undefined)this[mf_dgc_0x38f3('0x45')]=obj[mf_dgc_0x38f3('0x45')];if(obj[mf_dgc_0x38f3('0x46')]!==undefined)this[mf_dgc_0x38f3('0x46')]=obj[mf_dgc_0x38f3('0x46')];if(obj['allowRenamePages']!==undefined)this[mf_dgc_0x38f3('0x47')]=obj[mf_dgc_0x38f3('0x47')];if(obj[mf_dgc_0x38f3('0x48')])this['theme']=Theme[mf_dgc_0x38f3('0x54')](obj[mf_dgc_0x38f3('0x48')]);if(obj['selectedIndex']!==undefined)this['selectedIndex']=obj[mf_dgc_0x38f3('0x49')];}[mf_dgc_0x38f3('0x55')](url){var xhr=new XMLHttpRequest();xhr[mf_dgc_0x38f3('0x56')](mf_dgc_0x38f3('0x57'),url,!![]);xhr['setRequestHeader'](mf_dgc_0x38f3('0x58'),mf_dgc_0x38f3('0x59'));var xmlDoc=this[mf_dgc_0x38f3('0x22')]['toXmlDocument']();var context=new XmlPersistContext(this[mf_dgc_0x38f3('0x5a')],xmlDoc);var rootElement=context[mf_dgc_0x38f3('0x5b')](mf_dgc_0x38f3('0x5c'),xmlDoc);var viewElement=xmlDoc[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x5e'));rootElement['appendChild'](viewElement);this[mf_dgc_0x38f3('0x5f')](viewElement,context);var serializer=new XMLSerializer();xhr['send'](serializer[mf_dgc_0x38f3('0x60')](xmlDoc));}[mf_dgc_0x38f3('0x5f')](element,context){super['saveView'](element,context);if(this[mf_dgc_0x38f3('0x48')])context[mf_dgc_0x38f3('0x61')](this['theme']['id'],'Theme',element);}[mf_dgc_0x38f3('0x62')](fileUrl,onLoad,onError){var diagram=this['document'];var xhr=new XMLHttpRequest();xhr[mf_dgc_0x38f3('0x63')]=function(){var document=xhr[mf_dgc_0x38f3('0x64')];diagram[mf_dgc_0x38f3('0x65')](document);var context=new XmlPersistContext(diagram,document);var diagramElement=context['selectSingleNode'](mf_dgc_0x38f3('0x5c'),document);this[mf_dgc_0x38f3('0x66')](mf_dgc_0x38f3('0x5e'),diagramElement,context);if(onLoad)onLoad(diagram);}[mf_dgc_0x38f3('0x67')](this);xhr['onerror']=function(){console['log'](mf_dgc_0x38f3('0x68'));if(onError)onError(diagram);};xhr[mf_dgc_0x38f3('0x56')]('GET',fileUrl);xhr[mf_dgc_0x38f3('0x69')]='document';xhr[mf_dgc_0x38f3('0x6a')]();}[mf_dgc_0x38f3('0x66')](elementName,parentElement,context){var element=super[mf_dgc_0x38f3('0x66')](elementName,parentElement,context);if(!element)return;var themeId=context[mf_dgc_0x38f3('0x6b')](mf_dgc_0x38f3('0x6c'),element);if(themeId)this[mf_dgc_0x38f3('0x48')]=Theme[mf_dgc_0x38f3('0x54')](themeId);}[mf_dgc_0x38f3('0x6d')](){return Control[mf_dgc_0x38f3('0x6e')](this['document'],mf_dgc_0x38f3('0x6f'))||Control[mf_dgc_0x38f3('0x6e')](this[mf_dgc_0x38f3('0x22')],mf_dgc_0x38f3('0x70'))||Control[mf_dgc_0x38f3('0x6e')](this[mf_dgc_0x38f3('0x5a')],mf_dgc_0x38f3('0x6f'))||Control[mf_dgc_0x38f3('0x6e')](this[mf_dgc_0x38f3('0x5a')],'linkHovered');}[mf_dgc_0x38f3('0x71')](){return this['trackMouseHover']()||Control['getHandler'](this[mf_dgc_0x38f3('0x22')],'nodePointerEnter')||Control['getHandler'](this[mf_dgc_0x38f3('0x22')],mf_dgc_0x38f3('0x72'))||Control[mf_dgc_0x38f3('0x6e')](this['document'],mf_dgc_0x38f3('0x73'))||Control[mf_dgc_0x38f3('0x6e')](this[mf_dgc_0x38f3('0x22')],'linkPointerLeave')||Control[mf_dgc_0x38f3('0x6e')](this[mf_dgc_0x38f3('0x5a')],'nodePointerEnter')||Control[mf_dgc_0x38f3('0x6e')](this[mf_dgc_0x38f3('0x5a')],'nodePointerLeave')||Control[mf_dgc_0x38f3('0x6e')](this[mf_dgc_0x38f3('0x5a')],mf_dgc_0x38f3('0x73'))||Control[mf_dgc_0x38f3('0x6e')](this[mf_dgc_0x38f3('0x5a')],'linkPointerLeave');}[mf_dgc_0x38f3('0x74')](){var canvas=this['element'];if(!canvas[mf_dgc_0x38f3('0x33')])return;if(!this[mf_dgc_0x38f3('0x75')]){Control[mf_dgc_0x38f3('0x76')](canvas['parentNode']);var bounds=DomUtils['getBounds'](canvas['parentNode'],null,!![]);var w=bounds['width'];var h=bounds[mf_dgc_0x38f3('0x77')];if(h!=0x0)canvas[mf_dgc_0x38f3('0x33')][mf_dgc_0x38f3('0x78')]=h;this['parentSize']={'width':w,'height':h};canvas[mf_dgc_0x38f3('0x33')]['style'][mf_dgc_0x38f3('0x79')]=mf_dgc_0x38f3('0x7a');canvas[mf_dgc_0x38f3('0x33')]['style'][mf_dgc_0x38f3('0x7b')]=mf_dgc_0x38f3('0x7c')+this[mf_dgc_0x38f3('0x7d')]+'px';if(this[mf_dgc_0x38f3('0x35')]==TabAlignment['Top'])canvas[mf_dgc_0x38f3('0x33')][mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x7f')]=this['tabsSize']+mf_dgc_0x38f3('0x80')+this[mf_dgc_0x38f3('0x7d')]+'px';else canvas[mf_dgc_0x38f3('0x33')][mf_dgc_0x38f3('0x7e')]['gridTemplateRows']=mf_dgc_0x38f3('0x7c')+this[mf_dgc_0x38f3('0x7d')]+mf_dgc_0x38f3('0x81')+this[mf_dgc_0x38f3('0x1d')]+'px';canvas['parentNode']['style']['overflow']='';canvas['style'][mf_dgc_0x38f3('0x82')]=this[mf_dgc_0x38f3('0x35')]==TabAlignment[mf_dgc_0x38f3('0x36')]?0x2:0x1;canvas[mf_dgc_0x38f3('0x83')]=Math[mf_dgc_0x38f3('0x84')](bounds[mf_dgc_0x38f3('0x83')]-this[mf_dgc_0x38f3('0x85')](0x1),this[mf_dgc_0x38f3('0x5a')][mf_dgc_0x38f3('0x86')]['width']*this['scale']);canvas[mf_dgc_0x38f3('0x77')]=Math['min'](h-this[mf_dgc_0x38f3('0x1d')]-this[mf_dgc_0x38f3('0x85')](0x0),this[mf_dgc_0x38f3('0x5a')][mf_dgc_0x38f3('0x86')][mf_dgc_0x38f3('0x77')]*this[mf_dgc_0x38f3('0x87')]);this[mf_dgc_0x38f3('0x10')]['_element'][mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x79')]=mf_dgc_0x38f3('0x88');this['tabStrip'][mf_dgc_0x38f3('0x89')][mf_dgc_0x38f3('0x7e')]['gridColumn']=mf_dgc_0x38f3('0x8a');var scrollerH=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x8b'));scrollerH[mf_dgc_0x38f3('0x8c')]=mf_dgc_0x38f3('0x8d');scrollerH[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x82')]=this[mf_dgc_0x38f3('0x35')]==TabAlignment['Top']?0x3:0x2;scrollerH[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x8e')]=0x1;scrollerH[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x8f')]=0x2;scrollerH['style'][mf_dgc_0x38f3('0x77')]=this[mf_dgc_0x38f3('0x7d')]+'px';scrollerH[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x83')]=bounds[mf_dgc_0x38f3('0x83')]-this[mf_dgc_0x38f3('0x7d')]+'px';scrollerH[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x90')]=mf_dgc_0x38f3('0x91');scrollerH[mf_dgc_0x38f3('0x7e')]['overflowY']=mf_dgc_0x38f3('0x92');scrollerH[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x93')]='#eee';this[mf_dgc_0x38f3('0x75')]=scrollerH;var innerH=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x8b'));innerH[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x77')]=this[mf_dgc_0x38f3('0x7d')]+'px';scrollerH[mf_dgc_0x38f3('0x38')](innerH);canvas[mf_dgc_0x38f3('0x33')][mf_dgc_0x38f3('0x38')](scrollerH);var scrollerV=document['createElement']('div');scrollerV[mf_dgc_0x38f3('0x8c')]=mf_dgc_0x38f3('0x94');scrollerV[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x95')]=this[mf_dgc_0x38f3('0x35')]==TabAlignment['Top']?0x2:0x1;scrollerV[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x83')]=this['scrollbarSize']+'px';scrollerV[mf_dgc_0x38f3('0x7e')]['height']=bounds[mf_dgc_0x38f3('0x77')]-this[mf_dgc_0x38f3('0x1d')]-this[mf_dgc_0x38f3('0x7d')]+'px';scrollerV[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x90')]='hidden';scrollerV['style'][mf_dgc_0x38f3('0x96')]=mf_dgc_0x38f3('0x91');scrollerV['style'][mf_dgc_0x38f3('0x93')]='#eee';this['scrollerV']=scrollerV;var innerV=document['createElement']('div');innerV['style']['width']=this[mf_dgc_0x38f3('0x7d')]+'px';scrollerV[mf_dgc_0x38f3('0x38')](innerV);canvas[mf_dgc_0x38f3('0x33')][mf_dgc_0x38f3('0x38')](scrollerV);Control[mf_dgc_0x38f3('0x97')](scrollerH,{'scroll':this[mf_dgc_0x38f3('0x98')]});Control[mf_dgc_0x38f3('0x97')](scrollerV,{'scroll':this[mf_dgc_0x38f3('0x98')]});if(!this[mf_dgc_0x38f3('0x99')]){var thisObj=this;this[mf_dgc_0x38f3('0x99')]=setInterval(function(){thisObj['onVirtualResize']();},0xc8);}}}['resetTabAlignment'](){if(!this[mf_dgc_0x38f3('0x32')])return;this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x13')]=this['tabAlignment']!=TabAlignment[mf_dgc_0x38f3('0xf')];var canvas=this[mf_dgc_0x38f3('0x32')];if(this[mf_dgc_0x38f3('0x35')]==TabAlignment[mf_dgc_0x38f3('0x36')])canvas[mf_dgc_0x38f3('0x33')][mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x7f')]=this['tabsSize']+mf_dgc_0x38f3('0x80')+this[mf_dgc_0x38f3('0x7d')]+'px';else canvas['parentNode'][mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x7f')]=mf_dgc_0x38f3('0x7c')+this[mf_dgc_0x38f3('0x7d')]+mf_dgc_0x38f3('0x81')+this[mf_dgc_0x38f3('0x1d')]+'px';canvas[mf_dgc_0x38f3('0x7e')]['gridRow']=this[mf_dgc_0x38f3('0x35')]==TabAlignment[mf_dgc_0x38f3('0x36')]?0x2:0x1;var scrollerH=this['element']['parentNode']['querySelector'](mf_dgc_0x38f3('0x9a'));if(this[mf_dgc_0x38f3('0x75')]){scrollerH[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x82')]=this[mf_dgc_0x38f3('0x35')]==TabAlignment[mf_dgc_0x38f3('0x36')]?0x3:0x2;var scrollerV=this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x33')][mf_dgc_0x38f3('0x9b')](mf_dgc_0x38f3('0x9c'));scrollerV['style'][mf_dgc_0x38f3('0x95')]=this['tabAlignment']==TabAlignment[mf_dgc_0x38f3('0x36')]?0x2:0x1;}this['updateCanvasSize']();}[mf_dgc_0x38f3('0x9d')](){if(!this[mf_dgc_0x38f3('0x32')])return;var scale=this[mf_dgc_0x38f3('0x9e')]/0x64/GraphicsUnit[mf_dgc_0x38f3('0x9f')](this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0xa1')]);if(this[mf_dgc_0x38f3('0x75')]){var parentDiv=this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x33')];this[mf_dgc_0x38f3('0x75')][mf_dgc_0x38f3('0xa2')][mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x83')]=this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x86')]['width']*scale+'px';this[mf_dgc_0x38f3('0xa3')][mf_dgc_0x38f3('0xa2')][mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x77')]=this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x86')][mf_dgc_0x38f3('0x77')]*scale+'px';var vScrollSize=this[mf_dgc_0x38f3('0x85')](0x1);var hScrollSize=this[mf_dgc_0x38f3('0x85')](0x0);this[mf_dgc_0x38f3('0xa3')][mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x83')]=vScrollSize+'px';this['scrollerH']['style'][mf_dgc_0x38f3('0x77')]=hScrollSize+'px';parentDiv[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x7b')]=mf_dgc_0x38f3('0x7c')+vScrollSize+'px';if(this[mf_dgc_0x38f3('0x35')]==TabAlignment['Top'])parentDiv[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x7f')]=this[mf_dgc_0x38f3('0x1d')]+mf_dgc_0x38f3('0x80')+hScrollSize+'px';else parentDiv['style'][mf_dgc_0x38f3('0x7f')]=mf_dgc_0x38f3('0x7c')+hScrollSize+mf_dgc_0x38f3('0x81')+this[mf_dgc_0x38f3('0x1d')]+'px';var bounds=DomUtils[mf_dgc_0x38f3('0xa4')](parentDiv,null,!![]);var h=bounds['height'];if(h==0x0)h=parentDiv[mf_dgc_0x38f3('0x78')];if(h==0x0)h=this['canvas'][mf_dgc_0x38f3('0x86')]['height']*scale;this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x83')]=Math['min'](bounds[mf_dgc_0x38f3('0x83')]-vScrollSize,this['canvas'][mf_dgc_0x38f3('0x86')][mf_dgc_0x38f3('0x83')]*scale);this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x77')]=Math['min'](h-this[mf_dgc_0x38f3('0x1d')]-hScrollSize,this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x86')]['height']*scale);this[mf_dgc_0x38f3('0x75')][mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x83')]=bounds['width']-vScrollSize+'px';this['scrollerV'][mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x77')]=h-this[mf_dgc_0x38f3('0x1d')]-hScrollSize+'px';}this['canvas'][mf_dgc_0x38f3('0xa5')]=null;this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0xa6')]();this[mf_dgc_0x38f3('0x5a')][mf_dgc_0x38f3('0x4e')](mf_dgc_0x248fdb[mf_dgc_0x38f3('0xa7')],EventArgs[mf_dgc_0x38f3('0xa8')]);}['resetTabs'](){this[mf_dgc_0x38f3('0x10')]['items'][mf_dgc_0x38f3('0xa9')]();this[mf_dgc_0x38f3('0x22')][mf_dgc_0x38f3('0xb')]['forEach']((page,index)=>{var header=new ToolStripItem(ToolStripItemType[mf_dgc_0x38f3('0xaa')],page[mf_dgc_0x38f3('0xab')]);header[mf_dgc_0x38f3('0xac')]=page['titleColor'];header[mf_dgc_0x38f3('0xad')]=page['iconUrl'];this['tabStrip'][mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0xae')](header);page[mf_dgc_0x38f3('0xaf')]=header;});}[mf_dgc_0x38f3('0xd')](page){var c=this['onPageValidateAction'](Events[mf_dgc_0x38f3('0x2')],page);if(c){this['document'][mf_dgc_0x38f3('0xd')](page);this['raiseEvent'](Events[mf_dgc_0x38f3('0x3')],new PageEventArgs({'page':page}));}}[mf_dgc_0x38f3('0xb0')](page){var c=this[mf_dgc_0x38f3('0xb1')](Events[mf_dgc_0x38f3('0x4')],page,page);if(c){this[mf_dgc_0x38f3('0x22')][mf_dgc_0x38f3('0xb0')](page);this[mf_dgc_0x38f3('0x4e')](Events[mf_dgc_0x38f3('0x5')],new PageEventArgs({'oldPage':page}));}}[mf_dgc_0x38f3('0xb2')](page){if(this[mf_dgc_0x38f3('0x9e')]!=0x64)page[mf_dgc_0x38f3('0xb3')]=this['_zoomFactor'];if(this[mf_dgc_0x38f3('0xb4')]!=0x0)page['scrollX']=this[mf_dgc_0x38f3('0xb4')];if(this[mf_dgc_0x38f3('0xb5')]!=0x0)page[mf_dgc_0x38f3('0xb5')]=this[mf_dgc_0x38f3('0xb5')];}['restorePageState'](page){this[mf_dgc_0x38f3('0xb3')]=page[mf_dgc_0x38f3('0xb3')]||0x64;this[mf_dgc_0x38f3('0xb4')]=page[mf_dgc_0x38f3('0xb4')]!=undefined?page[mf_dgc_0x38f3('0xb4')]:this[mf_dgc_0x38f3('0x5a')][mf_dgc_0x38f3('0x86')]['x'];this['scrollY']=page[mf_dgc_0x38f3('0xb5')]!=undefined?page[mf_dgc_0x38f3('0xb5')]:this[mf_dgc_0x38f3('0x5a')][mf_dgc_0x38f3('0x86')]['y'];}['onTabMouseDown'](sender,args){if(!args['item'][mf_dgc_0x38f3('0xb6')])return;if(args['item'][mf_dgc_0x38f3('0xb7')]==mf_dgc_0x38f3('0xb8')){var page=new DiagramPage();page[mf_dgc_0x38f3('0xab')]=mf_dgc_0x38f3('0x5a')+(++this[mf_dgc_0x38f3('0x23')])[mf_dgc_0x38f3('0xb9')]();this['addPage'](page);return;}if(args[mf_dgc_0x38f3('0xba')][mf_dgc_0x38f3('0xb7')]){if(args[mf_dgc_0x38f3('0xba')]['dataMfc']==mf_dgc_0x38f3('0xbb'))this[mf_dgc_0x38f3('0x39')]=this[mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0xbc')]();else if(args['item'][mf_dgc_0x38f3('0xb7')]=='mfc-prev')this[mf_dgc_0x38f3('0x49')]--;else if(args['item'][mf_dgc_0x38f3('0xb7')]==mf_dgc_0x38f3('0xbd'))this[mf_dgc_0x38f3('0x49')]++;else if(args[mf_dgc_0x38f3('0xba')][mf_dgc_0x38f3('0xb7')]==mf_dgc_0x38f3('0xbe'))this[mf_dgc_0x38f3('0x39')]=this['items']['last']();return;}var item=this['getItemByHeader'](args[mf_dgc_0x38f3('0xba')]);if(item){if(DomUtils[mf_dgc_0x38f3('0xbf')](args[mf_dgc_0x38f3('0xc0')][mf_dgc_0x38f3('0xc1')],mf_dgc_0x38f3('0xc2'))){this[mf_dgc_0x38f3('0x39')]=item;this[mf_dgc_0x38f3('0xb0')](item);return;}if(this[mf_dgc_0x38f3('0x39')]==item){if(args[mf_dgc_0x38f3('0xba')][mf_dgc_0x38f3('0xc3')]){args[mf_dgc_0x38f3('0xba')]['inplaceEditBehavior'][mf_dgc_0x38f3('0xc4')]();DomUtils['eventHandled'](args[mf_dgc_0x38f3('0xc0')],!![]);}}this[mf_dgc_0x38f3('0x39')]=item;}}['onTabDrop'](sender,args){var index=sender[mf_dgc_0x38f3('0xc5')](args[mf_dgc_0x38f3('0xba')])[mf_dgc_0x38f3('0xc6')](args[mf_dgc_0x38f3('0xba')]);var item=this[mf_dgc_0x38f3('0xc7')](args['item']);this[mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0xc8')]['splice'](this[mf_dgc_0x38f3('0x24')]['indexOfItem'](item),0x1);this['items']['_items'][mf_dgc_0x38f3('0xc9')](index,0x0,item);}get[mf_dgc_0x38f3('0x39')](){return this['_selectedPage'];}set[mf_dgc_0x38f3('0x39')](value){if(value){if(this[mf_dgc_0x38f3('0xb1')](Events[mf_dgc_0x38f3('0x0')],value,this[mf_dgc_0x38f3('0xca')])){var oldPage=this[mf_dgc_0x38f3('0xca')];if(oldPage)this[mf_dgc_0x38f3('0xb2')](oldPage);this['_selectedPage']=value;this[mf_dgc_0x38f3('0xcb')](this[mf_dgc_0x38f3('0xca')]);this['restorePageState'](this[mf_dgc_0x38f3('0xca')]);this['_selectedPage'][mf_dgc_0x38f3('0xa6')]();this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0xcc')](this[mf_dgc_0x38f3('0xca')]['header']);this[mf_dgc_0x38f3('0x4e')](Events['pageChanged'],new PageEventArgs({'page':this['_selectedPage'],'oldPage':oldPage}));}}}get[mf_dgc_0x38f3('0x49')](){if(this[mf_dgc_0x38f3('0xca')])return this[mf_dgc_0x38f3('0x24')]['indexOfItem'](this[mf_dgc_0x38f3('0xca')]);return-0x1;}set[mf_dgc_0x38f3('0x49')](value){var tab=this[mf_dgc_0x38f3('0x24')]['items']()[value];if(tab)this[mf_dgc_0x38f3('0x39')]=tab;}[mf_dgc_0x38f3('0xc7')](header){return this[mf_dgc_0x38f3('0x24')]['where'](x=>x[mf_dgc_0x38f3('0xaf')][mf_dgc_0x38f3('0x32')]==header[mf_dgc_0x38f3('0x32')])[mf_dgc_0x38f3('0xbc')]();}get[mf_dgc_0x38f3('0x22')](){return this[mf_dgc_0x38f3('0xcd')];}set['document'](value){if(this[mf_dgc_0x38f3('0xcd')]!=value){if(this['document']!=null)this[mf_dgc_0x38f3('0xcd')][mf_dgc_0x38f3('0x40')](mf_dgc_0x248fdb[mf_dgc_0x38f3('0xce')],this['documentChangedDelegate']);this[mf_dgc_0x38f3('0xcd')]=value;this['_document'][mf_dgc_0x38f3('0x1a')](mf_dgc_0x248fdb[mf_dgc_0x38f3('0xce')],this['documentChangedDelegate']);this[mf_dgc_0x38f3('0xcf')](this[mf_dgc_0x38f3('0x22')],{});this['raiseEvent'](mf_dgc_0x248fdb['diagramChanged'],EventArgs['Empty']);}}get[mf_dgc_0x38f3('0x1d')](){if(this[mf_dgc_0x38f3('0x35')]==TabAlignment[mf_dgc_0x38f3('0xf')])return 0x0;return this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x77')]['value'];}set[mf_dgc_0x38f3('0x1d')](value){if(this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x77')][mf_dgc_0x38f3('0xd0')]!=value){this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x77')]=new Unit(value,UnitType[mf_dgc_0x38f3('0xd1')]);this[mf_dgc_0x38f3('0xd2')]();}}get[mf_dgc_0x38f3('0x35')](){return this[mf_dgc_0x38f3('0xe')];}set[mf_dgc_0x38f3('0x35')](value){if(this[mf_dgc_0x38f3('0xe')]!=value){this['_tabAlignment']=value;this['resetTabAlignment']();}}get[mf_dgc_0x38f3('0x45')](){return this[mf_dgc_0x38f3('0x10')]['showCloseButtons'];}set[mf_dgc_0x38f3('0x45')](value){if(this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0xd3')]!=value){this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0xd3')]=value;}}get[mf_dgc_0x38f3('0x44')](){return this['tabStrip'][mf_dgc_0x38f3('0xd4')]==TabsScrollMode[mf_dgc_0x38f3('0xd5')];}set[mf_dgc_0x38f3('0x44')](value){if(this['tabStrip'][mf_dgc_0x38f3('0xd4')]==TabsScrollMode[mf_dgc_0x38f3('0xd5')]!=value){this[mf_dgc_0x38f3('0x10')]['scrollMode']=value?TabsScrollMode[mf_dgc_0x38f3('0xd5')]:TabsScrollMode['None'];}}get[mf_dgc_0x38f3('0x15')](){return this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x15')];}set[mf_dgc_0x38f3('0x15')](value){if(this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x15')]!=value){this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x15')]=value;}}get[mf_dgc_0x38f3('0x46')](){return this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0xd6')];}set[mf_dgc_0x38f3('0x46')](value){if(this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0xd6')]!=value){this['tabStrip'][mf_dgc_0x38f3('0xd6')]=value;}}get[mf_dgc_0x38f3('0x48')](){return this[mf_dgc_0x38f3('0xd7')];}set[mf_dgc_0x38f3('0x48')](value){if(this[mf_dgc_0x38f3('0xd7')]!=value){this['_theme']=value;if(this['shadowParent']){var links=this['shadowParent'][mf_dgc_0x38f3('0xd8')](mf_dgc_0x38f3('0xd9'));[...links][mf_dgc_0x38f3('0xda')](l=>l[mf_dgc_0x38f3('0x33')]['removeChild'](l));var link=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0xd9'));link['href']=this[mf_dgc_0x38f3('0xdb')]+this[mf_dgc_0x38f3('0xd7')]['id']+mf_dgc_0x38f3('0xdc');link[mf_dgc_0x38f3('0xdd')]=mf_dgc_0x38f3('0xde');this[mf_dgc_0x38f3('0x31')]['appendChild'](link);}if(this[mf_dgc_0x38f3('0xd7')])this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0x48')]=this[mf_dgc_0x38f3('0xd7')]['id'];else this['tabStrip'][mf_dgc_0x38f3('0x48')]='';}}get['themesPath'](){return this[mf_dgc_0x38f3('0xdf')]||'';}set['themesPath'](value){if(this[mf_dgc_0x38f3('0xdf')]!=value){this[mf_dgc_0x38f3('0xdf')]=value;this[mf_dgc_0x38f3('0x10')]['themesPath']=value;}}[mf_dgc_0x38f3('0xe0')](theme,setToPages){this[mf_dgc_0x38f3('0x48')]=theme;if(setToPages){this[mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0xda')](item=>item[mf_dgc_0x38f3('0x48')]=theme);}}get[mf_dgc_0x38f3('0x47')](){return this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0xe1')];}set[mf_dgc_0x38f3('0x47')](value){if(this[mf_dgc_0x38f3('0x10')]['allowInplaceEdit']!=value){this['tabStrip'][mf_dgc_0x38f3('0xe1')]=value;}}[mf_dgc_0x38f3('0xcf')](sender,args){var si=this[mf_dgc_0x38f3('0x49')];this['onDocumentChanged'](sender,args);this[mf_dgc_0x38f3('0x49')]=si!=-0x1?si:this[mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0x23')];this[mf_dgc_0x38f3('0x23')]=this[mf_dgc_0x38f3('0x24')]['count']();}[mf_dgc_0x38f3('0x21')](sender,args){var empty=this[mf_dgc_0x38f3('0x22')][mf_dgc_0x38f3('0xb')][mf_dgc_0x38f3('0xc')]==0x0;if(empty){this['diagram']=new Diagram();this['_selectedPage']=null;}this[mf_dgc_0x38f3('0xb6')]=!empty;this[mf_dgc_0x38f3('0x24')]=new List(this[mf_dgc_0x38f3('0x22')][mf_dgc_0x38f3('0xb')]);this[mf_dgc_0x38f3('0x34')]();this[mf_dgc_0x38f3('0x10')][mf_dgc_0x38f3('0xe2')]();if(args[mf_dgc_0x38f3('0xe3')]!=undefined)this['selectedIndex']=Math[mf_dgc_0x38f3('0xe4')](--args[mf_dgc_0x38f3('0xe3')],0x0);if(args[mf_dgc_0x38f3('0xe5')]!=undefined)this[mf_dgc_0x38f3('0x49')]=args[mf_dgc_0x38f3('0xe5')];}[mf_dgc_0x38f3('0xb1')](event,page,oldPage){var args=new PageEventArgs({'page':page,'oldPage':oldPage});this[mf_dgc_0x38f3('0x4e')](event,args);if(args['cancel'])return![];return!![];}['onPageRenameStart'](sender,args){this[mf_dgc_0x38f3('0xe6')]=args[mf_dgc_0x38f3('0xba')][mf_dgc_0x38f3('0xc3')];this[mf_dgc_0x38f3('0xe7')]=()=>{this[mf_dgc_0x38f3('0xe6')][mf_dgc_0x38f3('0xe8')](!![]);};this[mf_dgc_0x38f3('0x32')]['addEventListener'](mf_dgc_0x38f3('0xe9'),this[mf_dgc_0x38f3('0xe7')]);}[mf_dgc_0x38f3('0x19')](sender,args){var item=this[mf_dgc_0x38f3('0xc7')](args[mf_dgc_0x38f3('0xba')]);if(item)item[mf_dgc_0x38f3('0xab')]=args['text'];this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x40')]('pointerdown',this[mf_dgc_0x38f3('0xe7')]);}get[mf_dgc_0x38f3('0x0')](){if(!this[mf_dgc_0x38f3('0xea')])this[mf_dgc_0x38f3('0xea')]=new EventDispatcher();return this['_pageChanging'];}get[mf_dgc_0x38f3('0x1')](){if(!this[mf_dgc_0x38f3('0xeb')])this['_pageChanged']=new EventDispatcher();return this['_pageChanged'];}get[mf_dgc_0x38f3('0x2')](){if(!this[mf_dgc_0x38f3('0xec')])this[mf_dgc_0x38f3('0xec')]=new EventDispatcher();return this[mf_dgc_0x38f3('0xec')];}get[mf_dgc_0x38f3('0x3')](){if(!this[mf_dgc_0x38f3('0xed')])this[mf_dgc_0x38f3('0xed')]=new EventDispatcher();return this[mf_dgc_0x38f3('0xed')];}get[mf_dgc_0x38f3('0x4')](){if(!this[mf_dgc_0x38f3('0xee')])this['_pageRemoving']=new EventDispatcher();return this[mf_dgc_0x38f3('0xee')];}get[mf_dgc_0x38f3('0x5')](){if(!this[mf_dgc_0x38f3('0xef')])this[mf_dgc_0x38f3('0xef')]=new EventDispatcher();return this[mf_dgc_0x38f3('0xef')];}static[mf_dgc_0x38f3('0xf0')](element,document){return Control[mf_dgc_0x38f3('0xf1')](TabbedDiagramView,element,document);}static[mf_dgc_0x38f3('0xf2')](id){return Control[mf_dgc_0x38f3('0xf3')](id);}['connectedCallback'](){var shadow=this[mf_dgc_0x38f3('0xf4')]({'mode':mf_dgc_0x38f3('0x56')});let uisheet=new CSSStyleSheet();uisheet[mf_dgc_0x38f3('0xf5')](uicss);let listsheet=new CSSStyleSheet();listsheet[mf_dgc_0x38f3('0xf5')](listviewcss);let toolsheet=new CSSStyleSheet();toolsheet['replace'](toolstripcss);let tabsheet=new CSSStyleSheet();tabsheet[mf_dgc_0x38f3('0xf5')](tabstripcss);shadow['adoptedStyleSheets']=[uisheet,listsheet,toolsheet,tabsheet];let div=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x8b'));div[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0xf6')]=this[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0xf6')];this[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0xf6')]='';let canvas=document[mf_dgc_0x38f3('0x5d')]('canvas');canvas['id']=this[mf_dgc_0x38f3('0xf7')]('id');div['appendChild'](canvas);shadow[mf_dgc_0x38f3('0x38')](div);this[mf_dgc_0x38f3('0xf8')]('id');var view=TabbedDiagramView['create'](canvas);view[mf_dgc_0x38f3('0x31')]=shadow;}}class InteractiveElement{[mf_dgc_0x38f3('0xf9')](context,size,location,brush){var rect=new Rect(location,new Size(size,size));rect[mf_dgc_0x38f3('0xfa')](-size/0x2,-size/0x2);context[mf_dgc_0x38f3('0xfb')]();context[mf_dgc_0x38f3('0xfc')]=brush;context[mf_dgc_0x38f3('0xfd')](rect['x'],rect['y'],rect[mf_dgc_0x38f3('0x83')],rect[mf_dgc_0x38f3('0x77')]);context[mf_dgc_0x38f3('0xfe')](rect['x'],rect['y'],rect[mf_dgc_0x38f3('0x83')],rect['height']);context['restore']();}get['firstHandle'](){return 0x0;}get[mf_dgc_0x38f3('0xff')](){return 0x1;}['saveState'](){var state={};state[mf_dgc_0x38f3('0x100')]=this[mf_dgc_0x38f3('0x100')];state[mf_dgc_0x38f3('0x101')]=this[mf_dgc_0x38f3('0x101')];state[mf_dgc_0x38f3('0x102')]=this[mf_dgc_0x38f3('0x102')];return state;}[mf_dgc_0x38f3('0x103')](state){this[mf_dgc_0x38f3('0x100')]=state['strokeColor'];this[mf_dgc_0x38f3('0x101')]=state['strokeThickness'];this[mf_dgc_0x38f3('0x102')]=state[mf_dgc_0x38f3('0x102')];}['isDummy'](){return![];}static get[mf_dgc_0x38f3('0x104')](){return new Size(0x64,0x28);}}class LineBuilder extends InteractiveElement{constructor(p1,p2){super();this[mf_dgc_0x38f3('0x105')]=p1||new Point(0x0,0x32);this[mf_dgc_0x38f3('0x106')]=p2||new Point(0x64,0x32);}['clone'](){return new LineBuilder(this['startPoint']['clone'](),this['endPoint'][mf_dgc_0x38f3('0x107')]());}get['center'](){return DrawingUtils[mf_dgc_0x38f3('0x108')](this[mf_dgc_0x38f3('0x105')],this[mf_dgc_0x38f3('0x106')]);}[mf_dgc_0x38f3('0x109')](point){return DrawingUtils[mf_dgc_0x38f3('0x10a')](point,this['startPoint'],this[mf_dgc_0x38f3('0x106')]);}[mf_dgc_0x38f3('0xfa')](point){this[mf_dgc_0x38f3('0x105')][mf_dgc_0x38f3('0x10b')](point);this[mf_dgc_0x38f3('0x106')]['addVector'](point);}['orientate'](from,to){this['startPoint']=from[mf_dgc_0x38f3('0x107')]();this[mf_dgc_0x38f3('0x106')]=to['clone']();}[mf_dgc_0x38f3('0x87')](scale,center){var matrix=new Matrix();matrix[mf_dgc_0x38f3('0x10c')](center['x'],center['y']);matrix[mf_dgc_0x38f3('0x87')](scale,scale);matrix[mf_dgc_0x38f3('0x10c')](-center['x'],-center['y']);matrix[mf_dgc_0x38f3('0x10d')](this[mf_dgc_0x38f3('0x105')]);matrix['transformPoint'](this[mf_dgc_0x38f3('0x106')]);}[mf_dgc_0x38f3('0x10e')](){var params={'outline':this[mf_dgc_0x38f3('0x10f')](!![]),'id':mf_dgc_0x38f3('0x110')};return new Shape(params);}static[mf_dgc_0x38f3('0x111')](point){var bounds=Rect[mf_dgc_0x38f3('0x112')](point,InteractiveElement[mf_dgc_0x38f3('0x104')]);var startPoint=new Point(bounds['x'],bounds['y']+bounds['height']/0x2);var endPoint=new Point(bounds['x']+bounds[mf_dgc_0x38f3('0x83')],bounds['y']+bounds['height']/0x2);return new LineBuilder(startPoint,endPoint);}[mf_dgc_0x38f3('0x113')](context,startPath){if(startPath)context[mf_dgc_0x38f3('0x114')](this['startPoint']['x'],this[mf_dgc_0x38f3('0x105')]['y']);context['lineTo'](this[mf_dgc_0x38f3('0x106')]['x'],this['endPoint']['y']);}[mf_dgc_0x38f3('0x37')](context,pen){context['save']();if(!pen)pen={'color':mf_dgc_0x38f3('0x115'),'width':0x1,'dashStyle':0x0};context[mf_dgc_0x38f3('0x116')]=this[mf_dgc_0x38f3('0x100')]||pen['color'];context[mf_dgc_0x38f3('0x117')]=(this[mf_dgc_0x38f3('0x101')]!=undefined?this[mf_dgc_0x38f3('0x101')]:pen[mf_dgc_0x38f3('0x83')])*context[mf_dgc_0x38f3('0x118')];DashStyle['apply'](context,this[mf_dgc_0x38f3('0x102')]!=undefined?this[mf_dgc_0x38f3('0x102')]:pen[mf_dgc_0x38f3('0x119')]);context[mf_dgc_0x38f3('0x11a')]();context[mf_dgc_0x38f3('0x114')](this[mf_dgc_0x38f3('0x105')]['x'],this[mf_dgc_0x38f3('0x105')]['y']);context['lineTo'](this[mf_dgc_0x38f3('0x106')]['x'],this[mf_dgc_0x38f3('0x106')]['y']);context['stroke']();context[mf_dgc_0x38f3('0x11b')]();}[mf_dgc_0x38f3('0x11c')](context,size,brush){this[mf_dgc_0x38f3('0xf9')](context,size,this[mf_dgc_0x38f3('0x105')],brush);this[mf_dgc_0x38f3('0xf9')](context,size,this[mf_dgc_0x38f3('0x106')],brush);}[mf_dgc_0x38f3('0x11d')](point,maxDist){var d1=point[mf_dgc_0x38f3('0x109')](this['startPoint']);if(d1<maxDist)return 0x0;var d2=point['distance'](this[mf_dgc_0x38f3('0x106')]);if(d2<maxDist)return 0x1;return-0x1;}[mf_dgc_0x38f3('0x11e')](handle,point){if(handle==0x0)this[mf_dgc_0x38f3('0x105')]=point;if(handle==0x1)this[mf_dgc_0x38f3('0x106')]=point;}[mf_dgc_0x38f3('0x10f')](startPath){var result='';if(startPath)result='M'+this[mf_dgc_0x38f3('0x105')]['x']+','+this[mf_dgc_0x38f3('0x105')]['y']+'\x20';result+='L'+this[mf_dgc_0x38f3('0x106')]['x']+','+this[mf_dgc_0x38f3('0x106')]['y']+'\x20';return result;}['exportShapeElement'](){var elements=[];elements['push'](new ShapeElement(mf_dgc_0x38f3('0x114'),[this['startPoint']['x'],this[mf_dgc_0x38f3('0x105')]['y']]));elements[mf_dgc_0x38f3('0x11f')](new ShapeElement('lineTo',[this[mf_dgc_0x38f3('0x106')]['x'],this['endPoint']['y']],this['strokeColor'],this[mf_dgc_0x38f3('0x101')],this[mf_dgc_0x38f3('0x102')]));return elements;}[mf_dgc_0x38f3('0x120')](){var state=super[mf_dgc_0x38f3('0x120')]();state[mf_dgc_0x38f3('0x105')]=this[mf_dgc_0x38f3('0x105')][mf_dgc_0x38f3('0x107')]();state[mf_dgc_0x38f3('0x106')]=this[mf_dgc_0x38f3('0x106')][mf_dgc_0x38f3('0x107')]();return state;}[mf_dgc_0x38f3('0x103')](state){super[mf_dgc_0x38f3('0x103')](state);this[mf_dgc_0x38f3('0x105')]=state['startPoint'];this[mf_dgc_0x38f3('0x106')]=state[mf_dgc_0x38f3('0x106')];}static['default'](){return new LineBuilder();}}class BezierBuilder extends InteractiveElement{constructor(x1,y1,x2,y2,x3,y3,x4,y4){super();this[mf_dgc_0x38f3('0x121')]=[new Point(x1,y1),new Point(x2,y2),new Point(x3,y3),new Point(x4,y4)];}[mf_dgc_0x38f3('0x107')](){return BezierBuilder[mf_dgc_0x38f3('0x122')](this[mf_dgc_0x38f3('0x121')]);}get[mf_dgc_0x38f3('0x105')](){return this['points'][0x0];}get[mf_dgc_0x38f3('0x106')](){return this[mf_dgc_0x38f3('0x121')][0x3];}get[mf_dgc_0x38f3('0x123')](){var x=0x0,y=0x0;for(var point in this[mf_dgc_0x38f3('0x121')]){x+=point['x'];y+=point['y'];}return new Point(x/0x4,y/0x4);}get[mf_dgc_0x38f3('0xff')](){return 0x3;}['distance'](point){return DrawingUtils[mf_dgc_0x38f3('0x124')](point,this[mf_dgc_0x38f3('0x121')],{'value':0x4});}[mf_dgc_0x38f3('0xfa')](point){this[mf_dgc_0x38f3('0x121')][mf_dgc_0x38f3('0xda')](p=>p[mf_dgc_0x38f3('0x10b')](point));}[mf_dgc_0x38f3('0x125')](from,to){this[mf_dgc_0x38f3('0x121')][0x0]=from[mf_dgc_0x38f3('0x107')]();this[mf_dgc_0x38f3('0x121')][0x3]=to[mf_dgc_0x38f3('0x107')]();var v=new Point(to['x']-from['x'],to['y']-from['y']);var l=Math[mf_dgc_0x38f3('0x126')](v['x']*v['x']+v['y']*v['y']);var p=new Point(v['y'],-v['x']);var left=new Point(p['x']/l,p['y']/l);this[mf_dgc_0x38f3('0x121')][0x1]=new Point(from['x']+v['x']/0x3+left['x']*l/0x8,from['y']+v['y']/0x3+left['y']*l/0x8);this[mf_dgc_0x38f3('0x121')][0x2]=new Point(from['x']+0x2*v['x']/0x3-left['x']*l/0x8,from['y']+0x2*v['y']/0x3-left['y']*l/0x8);}[mf_dgc_0x38f3('0x87')](scale,center){var matrix=new Matrix();matrix['translate'](center['x'],center['y']);matrix[mf_dgc_0x38f3('0x87')](scale,scale);matrix[mf_dgc_0x38f3('0x10c')](-center['x'],-center['y']);matrix['transformPoint'](this[mf_dgc_0x38f3('0x121')][0x0]);matrix['transformPoint'](this[mf_dgc_0x38f3('0x121')][0x1]);matrix[mf_dgc_0x38f3('0x10d')](this[mf_dgc_0x38f3('0x121')][0x2]);matrix['transformPoint'](this[mf_dgc_0x38f3('0x121')][0x3]);}[mf_dgc_0x38f3('0x113')](context,startPath){context['moveTo'](this[mf_dgc_0x38f3('0x121')][0x0]['x'],this[mf_dgc_0x38f3('0x121')][0x0]['y']);context['bezierCurveTo'](this[mf_dgc_0x38f3('0x121')][0x1]['x'],this[mf_dgc_0x38f3('0x121')][0x1]['y'],this[mf_dgc_0x38f3('0x121')][0x2]['x'],this[mf_dgc_0x38f3('0x121')][0x2]['y'],this['points'][0x3]['x'],this[mf_dgc_0x38f3('0x121')][0x3]['y']);}[mf_dgc_0x38f3('0x37')](context,pen){context[mf_dgc_0x38f3('0xfb')]();if(!pen)pen={'color':'#000000','width':0x1,'dashStyle':0x0};context[mf_dgc_0x38f3('0x116')]=this[mf_dgc_0x38f3('0x100')]||pen[mf_dgc_0x38f3('0x127')];context[mf_dgc_0x38f3('0x117')]=(this[mf_dgc_0x38f3('0x101')]!=undefined?this[mf_dgc_0x38f3('0x101')]:pen[mf_dgc_0x38f3('0x83')])*context[mf_dgc_0x38f3('0x118')];DashStyle[mf_dgc_0x38f3('0x128')](context,this[mf_dgc_0x38f3('0x102')]!=undefined?this[mf_dgc_0x38f3('0x102')]:pen['dashStyle']);context[mf_dgc_0x38f3('0x11a')]();this['addToContext'](context);context[mf_dgc_0x38f3('0x129')]();context[mf_dgc_0x38f3('0x11b')]();}[mf_dgc_0x38f3('0x11c')](context,size,brush){for(var i=0x0;i<0x4;i++)this['drawControlPoint'](context,size,this[mf_dgc_0x38f3('0x121')][i],brush);}[mf_dgc_0x38f3('0x11d')](point,maxDist){for(var i=0x0;i<0x4;i++){var distance=point['distance'](this[mf_dgc_0x38f3('0x121')][i]);if(distance<maxDist)return i;}return-0x1;}[mf_dgc_0x38f3('0x11e')](handle,point){this[mf_dgc_0x38f3('0x121')][handle]=point;}[mf_dgc_0x38f3('0x120')](){var state=super[mf_dgc_0x38f3('0x120')]();state[mf_dgc_0x38f3('0x121')]=[...this['points']];return state;}[mf_dgc_0x38f3('0x103')](state){super[mf_dgc_0x38f3('0x103')](state);this[mf_dgc_0x38f3('0x121')]=state[mf_dgc_0x38f3('0x121')];}['toShape'](){var params={'outline':this[mf_dgc_0x38f3('0x10f')](!![]),'id':'Bezier'};return new Shape(params);}static[mf_dgc_0x38f3('0x122')](points){return new BezierBuilder(points[0x0]['x'],points[0x0]['y'],points[0x1]['x'],points[0x1]['y'],points[0x2]['x'],points[0x2]['y'],points[0x3]['x'],points[0x3]['y']);}static[mf_dgc_0x38f3('0x111')](point){var bounds=Rect[mf_dgc_0x38f3('0x112')](point,InteractiveElement[mf_dgc_0x38f3('0x104')]);var points=[new Point(bounds['x'],bounds['y']+bounds[mf_dgc_0x38f3('0x77')]/0x2),new Point(bounds['x']+bounds['width']/0x3,bounds['y']),new Point(bounds['x']+bounds[mf_dgc_0x38f3('0x83')]-bounds[mf_dgc_0x38f3('0x83')]/0x3,bounds['y']+bounds['height']),new Point(bounds['x']+bounds[mf_dgc_0x38f3('0x83')],bounds['y']+bounds[mf_dgc_0x38f3('0x77')]/0x2)];var x=0x0,y=0x0;points[mf_dgc_0x38f3('0xda')](p=>{x+=p['x'];y+=p['y'];});var center=new Point(x/0x4,y/0x4);var newPoints=[...points];newPoints[mf_dgc_0x38f3('0xda')](p=>{p['x']+=point['x']-center['x'];p['y']+=point['y']-center['y'];});return BezierBuilder[mf_dgc_0x38f3('0x122')](newPoints);}static[mf_dgc_0x38f3('0x12a')](){var bounds=new Rect(0x0,0x0,0x64,0x64);var point=bounds[mf_dgc_0x38f3('0x123')]();var points=[new Point(bounds['x'],bounds['y']+bounds[mf_dgc_0x38f3('0x77')]/0x2),new Point(bounds['x']+bounds[mf_dgc_0x38f3('0x83')]/0x3,bounds['y']),new Point(bounds['x']+bounds[mf_dgc_0x38f3('0x83')]-bounds[mf_dgc_0x38f3('0x83')]/0x3,bounds['y']+bounds[mf_dgc_0x38f3('0x77')]),new Point(bounds['x']+bounds['width'],bounds['y']+bounds['height']/0x2)];var x=0x0,y=0x0;points[mf_dgc_0x38f3('0xda')](p=>{x+=p['x'];y+=p['y'];});var center=new Point(x/0x4,y/0x4);var newPoints=[...points];newPoints['forEach'](p=>{p['x']+=point['x']-center['x'];p['y']+=point['y']-center['y'];});return BezierBuilder[mf_dgc_0x38f3('0x122')](newPoints);}[mf_dgc_0x38f3('0x10f')](startPath){var result='';if(startPath)result='M'+this[mf_dgc_0x38f3('0x121')][0x0]['x']+','+this[mf_dgc_0x38f3('0x121')][0x0]['y']+'\x20';result+='C'+this[mf_dgc_0x38f3('0x121')][0x1]['x']+','+this['points'][0x1]['y']+','+this['points'][0x2]['x']+','+this[mf_dgc_0x38f3('0x121')][0x2]['y']+','+this[mf_dgc_0x38f3('0x121')][0x3]['x']+','+this[mf_dgc_0x38f3('0x121')][0x3]['y']+'\x20';return result;}['exportShapeElement'](){var elements=[];elements[mf_dgc_0x38f3('0x11f')](new ShapeElement('moveTo',[this[mf_dgc_0x38f3('0x121')][0x0]['x'],this[mf_dgc_0x38f3('0x121')][0x0]['y']]));elements[mf_dgc_0x38f3('0x11f')](new ShapeElement(mf_dgc_0x38f3('0x12b'),[this[mf_dgc_0x38f3('0x121')][0x1]['x'],this[mf_dgc_0x38f3('0x121')][0x1]['y'],this[mf_dgc_0x38f3('0x121')][0x2]['x'],this[mf_dgc_0x38f3('0x121')][0x2]['y'],this['points'][0x3]['x'],this['points'][0x3]['y']],this[mf_dgc_0x38f3('0x100')],this['strokeThickness'],this['strokeDashStyle']));return elements;}}class ArcBuilder extends InteractiveElement{constructor(x,y,radius,startAngle,endAngle,anticlockwise){super();if(x!=undefined){var points=[];DrawingUtils[mf_dgc_0x38f3('0x12c')](points,0x2,x,y,radius,startAngle,endAngle,anticlockwise);this[mf_dgc_0x38f3('0x105')]=points[0x0];this[mf_dgc_0x38f3('0x106')]=points[0x2];this[mf_dgc_0x38f3('0x12d')]=points[0x1];}}[mf_dgc_0x38f3('0x107')](){return ArcBuilder[mf_dgc_0x38f3('0x122')](this['startPoint'],this[mf_dgc_0x38f3('0x12d')],this[mf_dgc_0x38f3('0x106')]);}get[mf_dgc_0x38f3('0xff')](){return 0x2;}get[mf_dgc_0x38f3('0x123')](){return this[mf_dgc_0x38f3('0x12e')]();}[mf_dgc_0x38f3('0x109')](point){var dist=point[mf_dgc_0x38f3('0x109')](this[mf_dgc_0x38f3('0x105')]);dist=Math[mf_dgc_0x38f3('0x84')](dist,point[mf_dgc_0x38f3('0x109')](this[mf_dgc_0x38f3('0x12d')]));dist=Math[mf_dgc_0x38f3('0x84')](dist,point['distance'](this[mf_dgc_0x38f3('0x106')]));return dist;}[mf_dgc_0x38f3('0xfa')](point){this[mf_dgc_0x38f3('0x105')][mf_dgc_0x38f3('0x10b')](point);this[mf_dgc_0x38f3('0x106')][mf_dgc_0x38f3('0x10b')](point);this['controlPoint'][mf_dgc_0x38f3('0x10b')](point);}[mf_dgc_0x38f3('0x125')](from,to){this[mf_dgc_0x38f3('0x105')]=from[mf_dgc_0x38f3('0x107')]();this['endPoint']=to[mf_dgc_0x38f3('0x107')]();var v=new Point(to['x']-from['x'],to['y']-from['y']);var l=Math[mf_dgc_0x38f3('0x126')](v['x']*v['x']+v['y']*v['y']);var p=new Point(v['y'],-v['x']);var left=new Point(p['x']/l,p['y']/l);this['controlPoint']=new Point(from['x']+v['x']*0.5-left['x']*l/0x8,from['y']+v['y']*0.5-left['y']*l/0x8);}[mf_dgc_0x38f3('0x87')](scale,center){var matrix=new Matrix();matrix[mf_dgc_0x38f3('0x10c')](center['x'],center['y']);matrix['scale'](scale,scale);matrix['translate'](-center['x'],-center['y']);matrix[mf_dgc_0x38f3('0x10d')](this[mf_dgc_0x38f3('0x105')]);matrix[mf_dgc_0x38f3('0x10d')](this['endPoint']);matrix[mf_dgc_0x38f3('0x10d')](this[mf_dgc_0x38f3('0x12d')]);}[mf_dgc_0x38f3('0x113')](context){var center=this['center'];var radius=Math[mf_dgc_0x38f3('0x12f')](center[mf_dgc_0x38f3('0x109')](this['startPoint']));var startAngle=Geometry[mf_dgc_0x38f3('0x130')](center[mf_dgc_0x38f3('0x131')](this[mf_dgc_0x38f3('0x105')]));var endAngle=Geometry[mf_dgc_0x38f3('0x130')](center[mf_dgc_0x38f3('0x131')](this['endPoint']));var ac=DrawingUtils[mf_dgc_0x38f3('0x132')](this[mf_dgc_0x38f3('0x105')],this[mf_dgc_0x38f3('0x12d')],this['endPoint'])==0x1?0x0:0x1;context['arc'](center['x'],center['y'],radius,startAngle,endAngle,ac);}[mf_dgc_0x38f3('0x37')](context,pen){context[mf_dgc_0x38f3('0xfb')]();if(!pen)pen={'color':mf_dgc_0x38f3('0x115'),'width':0x1,'dashStyle':0x0};context[mf_dgc_0x38f3('0x116')]=this[mf_dgc_0x38f3('0x100')]||pen['color'];context[mf_dgc_0x38f3('0x117')]=(this[mf_dgc_0x38f3('0x101')]!=undefined?this['strokeThickness']:pen[mf_dgc_0x38f3('0x83')])*context[mf_dgc_0x38f3('0x118')];DashStyle[mf_dgc_0x38f3('0x128')](context,this['strokeDashStyle']!=undefined?this['strokeDashStyle']:pen[mf_dgc_0x38f3('0x119')]);context[mf_dgc_0x38f3('0x11a')]();this['addToContext'](context);context[mf_dgc_0x38f3('0x129')]();context['restore']();}[mf_dgc_0x38f3('0x11c')](context,size,brush){this[mf_dgc_0x38f3('0xf9')](context,size,this['startPoint'],brush);this[mf_dgc_0x38f3('0xf9')](context,size,this[mf_dgc_0x38f3('0x12d')],brush);this['drawControlPoint'](context,size,this[mf_dgc_0x38f3('0x106')],brush);}[mf_dgc_0x38f3('0x11d')](point,maxDist){var d=point[mf_dgc_0x38f3('0x109')](this[mf_dgc_0x38f3('0x105')]);if(d<maxDist)return 0x0;var d=point[mf_dgc_0x38f3('0x109')](this[mf_dgc_0x38f3('0x12d')]);if(d<maxDist)return 0x1;var d=point[mf_dgc_0x38f3('0x109')](this[mf_dgc_0x38f3('0x106')]);if(d<maxDist)return 0x2;return-0x1;}[mf_dgc_0x38f3('0x12e')](){var x1=this['startPoint']['x'];var y1=this[mf_dgc_0x38f3('0x105')]['y'];var x2=this[mf_dgc_0x38f3('0x12d')]['x'];var y2=this[mf_dgc_0x38f3('0x12d')]['y'];var x3=this[mf_dgc_0x38f3('0x106')]['x'];var y3=this[mf_dgc_0x38f3('0x106')]['y'];var x12=x1-x2;var x13=x1-x3;var y12=y1-y2;var y13=y1-y3;var y31=y3-y1;var y21=y2-y1;var x31=x3-x1;var x21=x2-x1;var sx13=Math[mf_dgc_0x38f3('0x133')](x1,0x2)-Math[mf_dgc_0x38f3('0x133')](x3,0x2);var sy13=Math[mf_dgc_0x38f3('0x133')](y1,0x2)-Math['pow'](y3,0x2);var sx21=Math[mf_dgc_0x38f3('0x133')](x2,0x2)-Math[mf_dgc_0x38f3('0x133')](x1,0x2);var sy21=Math[mf_dgc_0x38f3('0x133')](y2,0x2)-Math[mf_dgc_0x38f3('0x133')](y1,0x2);var f=(sx13*x12+sy13*x12+sx21*x13+sy21*x13)/(0x2*(y31*x12-y21*x13));var g=(sx13*y12+sy13*y12+sx21*y13+sy21*y13)/(0x2*(x31*y12-x21*y13));return new Point(-g,-f);}[mf_dgc_0x38f3('0x11e')](handle,point){if(handle==0x0)this['startPoint']=point['clone']();if(handle==0x1)this[mf_dgc_0x38f3('0x12d')]=point['clone']();if(handle==0x2)this[mf_dgc_0x38f3('0x106')]=point[mf_dgc_0x38f3('0x107')]();}['saveState'](){var state=super[mf_dgc_0x38f3('0x120')]();state[mf_dgc_0x38f3('0x105')]=this[mf_dgc_0x38f3('0x105')][mf_dgc_0x38f3('0x107')]();state[mf_dgc_0x38f3('0x106')]=this[mf_dgc_0x38f3('0x106')][mf_dgc_0x38f3('0x107')]();state[mf_dgc_0x38f3('0x12d')]=this[mf_dgc_0x38f3('0x12d')][mf_dgc_0x38f3('0x107')]();return state;}[mf_dgc_0x38f3('0x103')](state){super[mf_dgc_0x38f3('0x103')](state);this[mf_dgc_0x38f3('0x105')]=state[mf_dgc_0x38f3('0x12d')][mf_dgc_0x38f3('0x107')]();this[mf_dgc_0x38f3('0x106')]=state[mf_dgc_0x38f3('0x12d')][mf_dgc_0x38f3('0x107')]();this[mf_dgc_0x38f3('0x12d')]=state[mf_dgc_0x38f3('0x12d')][mf_dgc_0x38f3('0x107')]();}[mf_dgc_0x38f3('0x10e')](){var params={'outline':this['exportElement'](),'id':mf_dgc_0x38f3('0x134')};return new Shape(params);}static[mf_dgc_0x38f3('0x122')](p1,p2,p3){var b=new ArcBuilder();b['startPoint']=p1;b[mf_dgc_0x38f3('0x12d')]=p2;b['endPoint']=p3;return b;}static[mf_dgc_0x38f3('0x111')](point){var bounds=Rect[mf_dgc_0x38f3('0x112')](point,InteractiveElement['defaultSize']);var b=new ArcBuilder();b['startPoint']=new Point(bounds['x'],bounds['y']+bounds[mf_dgc_0x38f3('0x77')]);b[mf_dgc_0x38f3('0x12d')]=new Point(bounds['x']+bounds['width']/0x2,bounds['y']);b[mf_dgc_0x38f3('0x106')]=new Point(bounds['x']+bounds[mf_dgc_0x38f3('0x83')],bounds['y']+bounds[mf_dgc_0x38f3('0x77')]);return b;}static[mf_dgc_0x38f3('0x12a')](){return ArcBuilder['fromCenter'](new Point(InteractiveElement[mf_dgc_0x38f3('0x104')][mf_dgc_0x38f3('0x83')]/0x2,InteractiveElement['defaultSize'][mf_dgc_0x38f3('0x77')]/0x2));}[mf_dgc_0x38f3('0x10f')](){var center=this[mf_dgc_0x38f3('0x123')];var radius=Math[mf_dgc_0x38f3('0x12f')](center['distance'](this[mf_dgc_0x38f3('0x105')]));var startAngle=Geometry[mf_dgc_0x38f3('0x130')](center[mf_dgc_0x38f3('0x131')](this[mf_dgc_0x38f3('0x105')]));var endAngle=Geometry[mf_dgc_0x38f3('0x130')](center[mf_dgc_0x38f3('0x131')](this[mf_dgc_0x38f3('0x106')]));var ac=DrawingUtils[mf_dgc_0x38f3('0x132')](this[mf_dgc_0x38f3('0x105')],this[mf_dgc_0x38f3('0x12d')],this[mf_dgc_0x38f3('0x106')])==0x1?0x0:0x1;return'X'+center['x']+','+center['y']+','+radius+','+startAngle+','+endAngle+','+ac;}['exportShapeElement'](){var elements=[];elements['push'](new ShapeElement('moveTo',[this[mf_dgc_0x38f3('0x105')]['x'],this[mf_dgc_0x38f3('0x105')]['y']]));var center=this['center'];var radius=Math[mf_dgc_0x38f3('0x12f')](center[mf_dgc_0x38f3('0x109')](this['startPoint']));var startAngle=Geometry[mf_dgc_0x38f3('0x130')](center[mf_dgc_0x38f3('0x131')](this[mf_dgc_0x38f3('0x105')]));var endAngle=Geometry[mf_dgc_0x38f3('0x130')](center[mf_dgc_0x38f3('0x131')](this['endPoint']));var ac=DrawingUtils[mf_dgc_0x38f3('0x132')](this[mf_dgc_0x38f3('0x105')],this['controlPoint'],this[mf_dgc_0x38f3('0x106')])==0x1?0x0:0x1;elements['push'](new ShapeElement(mf_dgc_0x38f3('0x135'),[center['x'],center['y'],radius,startAngle,endAngle,ac],this['strokeColor'],this[mf_dgc_0x38f3('0x101')],this[mf_dgc_0x38f3('0x102')]));return elements;}}class RoundRectBuilder extends InteractiveElement{constructor(x1,y1,x2,y2,cornerRadius){super();this[mf_dgc_0x38f3('0x136')]=new Point(x1,y1);this[mf_dgc_0x38f3('0x137')]=new Point(x2,y2);this[mf_dgc_0x38f3('0x138')]=cornerRadius;}[mf_dgc_0x38f3('0x107')](){return new RoundRectBuilder(this[mf_dgc_0x38f3('0x136')][mf_dgc_0x38f3('0x107')](),this[mf_dgc_0x38f3('0x137')][mf_dgc_0x38f3('0x107')]());}get[mf_dgc_0x38f3('0x105')](){return this[mf_dgc_0x38f3('0x136')];}get[mf_dgc_0x38f3('0x106')](){return this['bottomRight'];}get[mf_dgc_0x38f3('0x123')](){return Rect[mf_dgc_0x38f3('0x122')](this[mf_dgc_0x38f3('0x136')],this[mf_dgc_0x38f3('0x137')])[mf_dgc_0x38f3('0x123')]();}[mf_dgc_0x38f3('0x109')](point){var dist=DrawingUtils[mf_dgc_0x38f3('0x10a')](point,this['topLeft'],new Point(this[mf_dgc_0x38f3('0x137')]['x'],this[mf_dgc_0x38f3('0x136')]['y']));dist=Math[mf_dgc_0x38f3('0x84')](dist,DrawingUtils['distToLine'](point,new Point(this['bottomRight']['x'],this['topLeft']['y']),this[mf_dgc_0x38f3('0x137')]));dist=Math[mf_dgc_0x38f3('0x84')](dist,DrawingUtils[mf_dgc_0x38f3('0x10a')](point,this[mf_dgc_0x38f3('0x137')],new Point(this['topLeft']['x'],this[mf_dgc_0x38f3('0x137')]['y'])));dist=Math[mf_dgc_0x38f3('0x84')](dist,DrawingUtils[mf_dgc_0x38f3('0x10a')](point,new Point(this[mf_dgc_0x38f3('0x136')]['x'],this[mf_dgc_0x38f3('0x137')]['y']),this[mf_dgc_0x38f3('0x136')]));return dist;}[mf_dgc_0x38f3('0xfa')](point){this[mf_dgc_0x38f3('0x136')][mf_dgc_0x38f3('0x10b')](point);this[mf_dgc_0x38f3('0x137')][mf_dgc_0x38f3('0x10b')](point);}[mf_dgc_0x38f3('0x125')](from,to){this[mf_dgc_0x38f3('0x136')]=from[mf_dgc_0x38f3('0x107')]();this[mf_dgc_0x38f3('0x137')]=to[mf_dgc_0x38f3('0x107')]();}[mf_dgc_0x38f3('0x87')](scale,center){var matrix=new Matrix();matrix[mf_dgc_0x38f3('0x10c')](center['x'],center['y']);matrix[mf_dgc_0x38f3('0x87')](scale,scale);matrix[mf_dgc_0x38f3('0x10c')](-center['x'],-center['y']);matrix[mf_dgc_0x38f3('0x10d')](this[mf_dgc_0x38f3('0x136')]);matrix['transformPoint'](this[mf_dgc_0x38f3('0x137')]);}[mf_dgc_0x38f3('0x37')](context,pen){context['save']();if(!pen)pen={'color':mf_dgc_0x38f3('0x115'),'width':0x1,'dashStyle':0x0};context[mf_dgc_0x38f3('0x116')]=this[mf_dgc_0x38f3('0x100')]||pen[mf_dgc_0x38f3('0x127')];context[mf_dgc_0x38f3('0x117')]=(this[mf_dgc_0x38f3('0x101')]!=undefined?this[mf_dgc_0x38f3('0x101')]:pen[mf_dgc_0x38f3('0x83')])*context[mf_dgc_0x38f3('0x118')];DashStyle['apply'](context,this[mf_dgc_0x38f3('0x102')]!=undefined?this[mf_dgc_0x38f3('0x102')]:pen['dashStyle']);context[mf_dgc_0x38f3('0x11a')]();context[mf_dgc_0x38f3('0x114')](this['topLeft']['x'],this[mf_dgc_0x38f3('0x136')]['y']+this[mf_dgc_0x38f3('0x138')]);context['lineTo'](this[mf_dgc_0x38f3('0x136')]['x'],this['bottomRight']['y']-this[mf_dgc_0x38f3('0x138')]);context[mf_dgc_0x38f3('0x139')](this[mf_dgc_0x38f3('0x136')]['x'],this['bottomRight']['y'],this[mf_dgc_0x38f3('0x136')]['x']+this[mf_dgc_0x38f3('0x138')],this[mf_dgc_0x38f3('0x137')]['y']);context[mf_dgc_0x38f3('0x13a')](this[mf_dgc_0x38f3('0x137')]['x']-this[mf_dgc_0x38f3('0x138')],this[mf_dgc_0x38f3('0x137')]['y']);context[mf_dgc_0x38f3('0x139')](this['bottomRight']['x'],this[mf_dgc_0x38f3('0x137')]['y'],this[mf_dgc_0x38f3('0x137')]['x'],this['bottomRight']['y']-this[mf_dgc_0x38f3('0x138')]);context[mf_dgc_0x38f3('0x13a')](this[mf_dgc_0x38f3('0x137')]['x'],this[mf_dgc_0x38f3('0x136')]['y']+this[mf_dgc_0x38f3('0x138')]);context[mf_dgc_0x38f3('0x139')](this[mf_dgc_0x38f3('0x137')]['x'],this[mf_dgc_0x38f3('0x136')]['y'],this[mf_dgc_0x38f3('0x137')]['x']-this[mf_dgc_0x38f3('0x138')],this[mf_dgc_0x38f3('0x136')]['y']);context[mf_dgc_0x38f3('0x13a')](this['topLeft']['x']+this[mf_dgc_0x38f3('0x138')],this['topLeft']['y']);context[mf_dgc_0x38f3('0x139')](this[mf_dgc_0x38f3('0x136')]['x'],this[mf_dgc_0x38f3('0x136')]['y'],this[mf_dgc_0x38f3('0x136')]['x'],this[mf_dgc_0x38f3('0x136')]['y']+this['cornerRadius']);context['stroke']();context[mf_dgc_0x38f3('0x11b')]();}[mf_dgc_0x38f3('0x11c')](context,size,brush){this['drawControlPoint'](context,size,this[mf_dgc_0x38f3('0x136')],brush);this[mf_dgc_0x38f3('0xf9')](context,size,this[mf_dgc_0x38f3('0x137')],brush);}['hitTestHandle'](point,maxDist){var d1=point[mf_dgc_0x38f3('0x109')](this[mf_dgc_0x38f3('0x136')]);if(d1<maxDist)return 0x0;var d2=point['distance'](this['bottomRight']);if(d2<maxDist)return 0x1;return-0x1;}[mf_dgc_0x38f3('0x11e')](handle,point){if(handle==0x0)this['topLeft']=point;if(handle==0x1)this[mf_dgc_0x38f3('0x137')]=point;}[mf_dgc_0x38f3('0x120')](){var state=super['saveState']();state[mf_dgc_0x38f3('0x136')]=this['topLeft'][mf_dgc_0x38f3('0x107')]();state['bottomRight']=this['bottomRight'][mf_dgc_0x38f3('0x107')]();state['cornerRadius']=this[mf_dgc_0x38f3('0x138')];return state;}[mf_dgc_0x38f3('0x103')](state){super[mf_dgc_0x38f3('0x103')](state);this[mf_dgc_0x38f3('0x136')]=state['topLeft'];this['bottomRight']=state[mf_dgc_0x38f3('0x137')];this[mf_dgc_0x38f3('0x138')]=state[mf_dgc_0x38f3('0x138')];}[mf_dgc_0x38f3('0x10e')](){var params={'outline':this[mf_dgc_0x38f3('0x10f')](!![]),'id':'RoundyRect'};return new Shape(params);}static['fromPoints'](p1,p2){return new RoundRectBuilder(p1['x'],p1['y'],p2['x'],p2['y'],0x5);}static[mf_dgc_0x38f3('0x111')](point){var bounds=Rect[mf_dgc_0x38f3('0x112')](point,InteractiveElement[mf_dgc_0x38f3('0x104')]);return RoundRectBuilder[mf_dgc_0x38f3('0x122')](bounds[mf_dgc_0x38f3('0x136')](),bounds['bottomRight']());}static[mf_dgc_0x38f3('0x13b')](bounds){return RoundRectBuilder[mf_dgc_0x38f3('0x122')](bounds['topLeft'](),bounds['bottomRight']());}static[mf_dgc_0x38f3('0x12a')](){var bounds=new Rect(0x0,0x0,0x64,0x64);return RoundRectBuilder['fromPoints'](bounds[mf_dgc_0x38f3('0x136')](),bounds['bottomRight']());}['exportElement'](startPath){var result='';if(startPath)result='M'+this[mf_dgc_0x38f3('0x136')]['x']+','+this[mf_dgc_0x38f3('0x136')]['y']+'\x20';result+='U'+this[mf_dgc_0x38f3('0x136')]['x']+','+this[mf_dgc_0x38f3('0x136')]['y']+','+(this[mf_dgc_0x38f3('0x137')]['x']-this[mf_dgc_0x38f3('0x136')]['x'])+','+(this[mf_dgc_0x38f3('0x137')]['y']-this[mf_dgc_0x38f3('0x136')]['y'])+','+this['cornerRadius']+'\x20';return result;}['exportShapeElement'](){var elements=[];elements['push'](new ShapeElement('moveTo',[this[mf_dgc_0x38f3('0x136')]['x'],this[mf_dgc_0x38f3('0x136')]['y']]));elements[mf_dgc_0x38f3('0x11f')](new ShapeElement('roundRect',[this[mf_dgc_0x38f3('0x136')]['x'],this[mf_dgc_0x38f3('0x136')]['y'],this[mf_dgc_0x38f3('0x137')]['x']-this['topLeft']['x'],this[mf_dgc_0x38f3('0x137')]['y']-this[mf_dgc_0x38f3('0x136')]['y'],this['cornerRadius']],this[mf_dgc_0x38f3('0x100')],this['strokeThickness'],this[mf_dgc_0x38f3('0x102')]));return elements;}}class Composite{constructor(type,bounds){this[mf_dgc_0x38f3('0x13c')]=type;this[mf_dgc_0x38f3('0x86')]=bounds;}[mf_dgc_0x38f3('0x107')](){return new Composite(this[mf_dgc_0x38f3('0x13c')],this[mf_dgc_0x38f3('0x86')][mf_dgc_0x38f3('0x107')]());}[mf_dgc_0x38f3('0x13d')](bounds){if(bounds==undefined)bounds=this[mf_dgc_0x38f3('0x86')];if(this[mf_dgc_0x38f3('0x13c')]=='RectangleComposite'){var x1=bounds['x'];var y1=bounds['y'];var x2=bounds[mf_dgc_0x38f3('0x13e')]();var y2=bounds[mf_dgc_0x38f3('0x13f')]();var list=[];list[mf_dgc_0x38f3('0x11f')](new LineBuilder(new Point(x1,y1),new Point(x2,y1)));list['push'](new LineBuilder(new Point(x2,y1),new Point(x2,y2)));list[mf_dgc_0x38f3('0x11f')](new LineBuilder(new Point(x2,y2),new Point(x1,y2)));list[mf_dgc_0x38f3('0x11f')](new LineBuilder(new Point(x1,y2),new Point(x1,y1)));return list;}if(this[mf_dgc_0x38f3('0x13c')]==mf_dgc_0x38f3('0x140')){var x1=bounds['x'];var y1=bounds['y'];var x2=bounds[mf_dgc_0x38f3('0x13e')]();var y2=bounds[mf_dgc_0x38f3('0x13f')]();var xc=(x1+x2)/0x2;var yc=(y1+y2)/0x2;var list=[];list[mf_dgc_0x38f3('0x11f')](new LineBuilder(new Point(xc,y1),new Point(x2,yc)));list[mf_dgc_0x38f3('0x11f')](new LineBuilder(new Point(x2,yc),new Point(xc,y2)));list['push'](new LineBuilder(new Point(xc,y2),new Point(x1,yc)));list[mf_dgc_0x38f3('0x11f')](new LineBuilder(new Point(x1,yc),new Point(xc,y1)));return list;}if(this[mf_dgc_0x38f3('0x13c')]=='EllipseComposite'){var list=[];list[mf_dgc_0x38f3('0x11f')](new ArcBuilder(bounds['center']()['x'],bounds[mf_dgc_0x38f3('0x123')]()['y'],bounds[mf_dgc_0x38f3('0x83')]/0x2,0x0,Math['PI']));list[mf_dgc_0x38f3('0x11f')](new ArcBuilder(bounds[mf_dgc_0x38f3('0x123')]()['x'],bounds[mf_dgc_0x38f3('0x123')]()['y'],bounds[mf_dgc_0x38f3('0x83')]/0x2,Math['PI'],Math['PI']*0x2));return list;}}static[mf_dgc_0x38f3('0x111')](point,type){var bounds=Rect[mf_dgc_0x38f3('0x112')](point,InteractiveElement[mf_dgc_0x38f3('0x104')]);return new Composite(type,bounds);}static[mf_dgc_0x38f3('0x13b')](bounds,type){return new Composite(type,bounds);}}class Command{constructor(type,dropLocation,hitElement,element,elementIndex,outline,filledDecoration){this['type']=type;if(type==mf_dgc_0x38f3('0x141')){this['states']=new Map();this[mf_dgc_0x38f3('0x142')]=new Map();}this['dropLocation']=dropLocation;this['hitElement']=hitElement;this[mf_dgc_0x38f3('0x32')]=element;this['elementIndex']=elementIndex;this['outline']=outline;this['filledDecoration']=filledDecoration;}[mf_dgc_0x38f3('0x143')](element){this[mf_dgc_0x38f3('0x144')]['set'](element,element[mf_dgc_0x38f3('0x120')]());}[mf_dgc_0x38f3('0x145')](canvas){if(this['type']==mf_dgc_0x38f3('0x141'))this[mf_dgc_0x38f3('0x144')][mf_dgc_0x38f3('0xda')]((v,k)=>this[mf_dgc_0x38f3('0x142')][mf_dgc_0x38f3('0x146')](k,k[mf_dgc_0x38f3('0x120')]()));else if(this['type']==mf_dgc_0x38f3('0x147')){this[mf_dgc_0x38f3('0x32')]=this[mf_dgc_0x38f3('0x32')]['constructor'][mf_dgc_0x38f3('0x111')](this['dropLocation'],this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x13c')]);canvas[mf_dgc_0x38f3('0x148')]['decorations'][mf_dgc_0x38f3('0x11f')](this[mf_dgc_0x38f3('0x32')]);}else if(this[mf_dgc_0x38f3('0x13c')]==mf_dgc_0x38f3('0x149')){var bounds=new Rect(this['dropLocation']['x'],this['dropLocation']['y'],0x19,0x19);if(this[mf_dgc_0x38f3('0x32')]!=null){var elements=this['element'][mf_dgc_0x38f3('0x13d')](bounds);this['newDecoration']=new FilledDecorationBuilder(elements);this['newDecoration']['bounds']=bounds;canvas[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x14a')][mf_dgc_0x38f3('0x11f')](this[mf_dgc_0x38f3('0x14b')]);}}else if(this[mf_dgc_0x38f3('0x13c')]==mf_dgc_0x38f3('0x14c')){this['element'][mf_dgc_0x38f3('0x14d')](this[mf_dgc_0x38f3('0x14e')]);canvas[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x14f')]['push'](this['element']);}else if(this[mf_dgc_0x38f3('0x13c')]==mf_dgc_0x38f3('0x150')){if(this['filledDecoration']!=null){var bounds=this[mf_dgc_0x38f3('0x151')]['bounds'];this['oldOutline']=canvas['clearOutline'](this[mf_dgc_0x38f3('0x151')]);if(this[mf_dgc_0x38f3('0x32')]instanceof Composite){var elements=this[mf_dgc_0x38f3('0x32')]['getElements'](bounds);this[mf_dgc_0x38f3('0x151')][mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0x11f')](...elements);this['newOutline']=elements;}else{var element=RoundRectBuilder['fromBounds'](bounds);this['filledDecoration'][mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0x11f')](element);this[mf_dgc_0x38f3('0x153')]=[element];}}else{this['oldOutline']=canvas[mf_dgc_0x38f3('0x154')]();if(this[mf_dgc_0x38f3('0x32')]instanceof Composite){var elements=this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x13d')](new Rect(0x0,0x0,0x64,0x64));canvas['shapeBuilder'][mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0x11f')](...elements);this[mf_dgc_0x38f3('0x153')]=elements;}else{var element=RoundRectBuilder[mf_dgc_0x38f3('0x13b')](new Rect(0x0,0x0,0x64,0x64));canvas[mf_dgc_0x38f3('0x148')]['outline']['push'](element);this[mf_dgc_0x38f3('0x153')]=[element];}}}else if(this[mf_dgc_0x38f3('0x13c')]==mf_dgc_0x38f3('0x155')){var c=this['outline'][mf_dgc_0x38f3('0xc')];var n=(this[mf_dgc_0x38f3('0x156')]+0x1)%c;var p=this[mf_dgc_0x38f3('0x156')]>0x0?this[mf_dgc_0x38f3('0x156')]-0x1:c-0x1;var next=this['outline'][n];var prev=this[mf_dgc_0x38f3('0x152')][p];this['element']['orientate'](prev[mf_dgc_0x38f3('0x106')],next['startPoint']);this['outline'][mf_dgc_0x38f3('0xc9')](this[mf_dgc_0x38f3('0x156')],0x1,this[mf_dgc_0x38f3('0x32')]);}else if(this['type']==mf_dgc_0x38f3('0x157')){this[mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xc9')](this[mf_dgc_0x38f3('0x156')],0x0,this[mf_dgc_0x38f3('0x32')]);var c=this[mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xc')];var n=(this[mf_dgc_0x38f3('0x156')]+0x1)%c;var p=this[mf_dgc_0x38f3('0x156')]>0x0?this[mf_dgc_0x38f3('0x156')]-0x1:c-0x1;var next=this[mf_dgc_0x38f3('0x152')][n];this[mf_dgc_0x38f3('0x158')]=next[mf_dgc_0x38f3('0x120')]();next['scale'](0x2/0x3,next[mf_dgc_0x38f3('0x106')]);var prev=this[mf_dgc_0x38f3('0x152')][p];this[mf_dgc_0x38f3('0x159')]=prev[mf_dgc_0x38f3('0x120')]();prev[mf_dgc_0x38f3('0x87')](0x2/0x3,prev[mf_dgc_0x38f3('0x105')]);this[mf_dgc_0x38f3('0x32')]['orientate'](prev['endPoint'],next[mf_dgc_0x38f3('0x105')]);}else if(this[mf_dgc_0x38f3('0x13c')]=='RemoveElementCommand'){if(this[mf_dgc_0x38f3('0x32')]instanceof FilledDecorationBuilder){this[mf_dgc_0x38f3('0x156')]=canvas[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x14a')][mf_dgc_0x38f3('0x15a')](this[mf_dgc_0x38f3('0x32')]);this[mf_dgc_0x38f3('0x15b')](canvas[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x14a')],this[mf_dgc_0x38f3('0x32')]);this['target']=canvas[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x14a')];}else if(canvas[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0x15a')](this[mf_dgc_0x38f3('0x32')])>-0x1){var r=canvas[mf_dgc_0x38f3('0x15c')](canvas['shapeBuilder'][mf_dgc_0x38f3('0x152')],this[mf_dgc_0x38f3('0x32')]);this[mf_dgc_0x38f3('0x156')]=r[mf_dgc_0x38f3('0xe5')];this[mf_dgc_0x38f3('0x159')]=r[mf_dgc_0x38f3('0x159')];this['nextState']=r[mf_dgc_0x38f3('0x158')];this[mf_dgc_0x38f3('0xc1')]=canvas[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x152')];}else if(canvas[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x15d')][mf_dgc_0x38f3('0x15a')](this[mf_dgc_0x38f3('0x32')])>-0x1){this[mf_dgc_0x38f3('0x156')]=canvas['shapeBuilder'][mf_dgc_0x38f3('0x15d')]['indexOf'](this[mf_dgc_0x38f3('0x32')]);this[mf_dgc_0x38f3('0x15b')](canvas['shapeBuilder'][mf_dgc_0x38f3('0x15d')],this[mf_dgc_0x38f3('0x32')]);this['target']=canvas[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x15d')];}else if(canvas[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x15e')][mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0x15a')](this[mf_dgc_0x38f3('0x32')])>-0x1){var r=canvas['removeFromOutline'](canvas[mf_dgc_0x38f3('0x148')]['textArea'][mf_dgc_0x38f3('0x152')],this[mf_dgc_0x38f3('0x32')]);this[mf_dgc_0x38f3('0x156')]=r[mf_dgc_0x38f3('0xe5')];this[mf_dgc_0x38f3('0x159')]=r['prevState'];this[mf_dgc_0x38f3('0x158')]=r[mf_dgc_0x38f3('0x158')];this[mf_dgc_0x38f3('0xc1')]=canvas[mf_dgc_0x38f3('0x148')]['textArea']['outline'];}else canvas[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x14a')][mf_dgc_0x38f3('0xda')](fd=>{if(fd['outline']['indexOf'](this[mf_dgc_0x38f3('0x32')])>-0x1){var r=canvas['removeFromOutline'](fd[mf_dgc_0x38f3('0x152')],this['element']);this[mf_dgc_0x38f3('0x156')]=r[mf_dgc_0x38f3('0xe5')];this[mf_dgc_0x38f3('0x159')]=r[mf_dgc_0x38f3('0x159')];this[mf_dgc_0x38f3('0x158')]=r[mf_dgc_0x38f3('0x158')];this[mf_dgc_0x38f3('0xc1')]=fd['outline'];}});}}[mf_dgc_0x38f3('0x15f')](context){context[mf_dgc_0x38f3('0xfb')]();context['strokeThickness']=0x3;if(this[mf_dgc_0x38f3('0x13c')]==mf_dgc_0x38f3('0x155')){this['hitElement'][mf_dgc_0x38f3('0x37')](context,{'color':mf_dgc_0x38f3('0x160')});}else if(this[mf_dgc_0x38f3('0x13c')]==mf_dgc_0x38f3('0x157')){context[mf_dgc_0x38f3('0x11a')]();context['ellipse'](this[mf_dgc_0x38f3('0x14e')]['x'],this['dropLocation']['y'],0x5,0x5,Math['PI']/0x4,0x0,0x2*Math['PI']);context[mf_dgc_0x38f3('0x161')]();context[mf_dgc_0x38f3('0x116')]=mf_dgc_0x38f3('0x162');context[mf_dgc_0x38f3('0x129')]();}else if(this[mf_dgc_0x38f3('0x13c')]==mf_dgc_0x38f3('0x150')){var elements;if(this['hitElement']instanceof Composite)elements=this['hitElement'][mf_dgc_0x38f3('0x13d')]();else elements=this['hitElement'][mf_dgc_0x38f3('0x152')];elements[mf_dgc_0x38f3('0xda')](element=>{element[mf_dgc_0x38f3('0x37')](context,{'color':mf_dgc_0x38f3('0x160')});});}context[mf_dgc_0x38f3('0x11b')]();}[mf_dgc_0x38f3('0x163')](canvas){if(this['type']==mf_dgc_0x38f3('0x141'))this[mf_dgc_0x38f3('0x144')][mf_dgc_0x38f3('0xda')]((v,k)=>{k[mf_dgc_0x38f3('0x103')](v);});else if(this['type']=='AddDecorationCommand'){this[mf_dgc_0x38f3('0x15b')](canvas['shapeBuilder'][mf_dgc_0x38f3('0x15d')],this['element']);}else if(this['type']==mf_dgc_0x38f3('0x149')){this[mf_dgc_0x38f3('0x15b')](canvas[mf_dgc_0x38f3('0x148')]['filledDecorations'],this[mf_dgc_0x38f3('0x14b')]);}else if(this[mf_dgc_0x38f3('0x13c')]=='AddAnchorCommand'){this[mf_dgc_0x38f3('0x15b')](canvas[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x14f')],this[mf_dgc_0x38f3('0x32')]);}else if(this[mf_dgc_0x38f3('0x13c')]==mf_dgc_0x38f3('0x150')){if(this['filledDecoration']!=null){canvas[mf_dgc_0x38f3('0x154')](this[mf_dgc_0x38f3('0x151')]);this[mf_dgc_0x38f3('0x151')][mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0x11f')](...this[mf_dgc_0x38f3('0x164')]);}else{canvas['clearOutline']();canvas[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x152')]['push'](...this['oldOutline']);}}else if(this[mf_dgc_0x38f3('0x13c')]==mf_dgc_0x38f3('0x155')){this[mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xc9')](this[mf_dgc_0x38f3('0x156')],0x1,this['hitElement']);}else if(this[mf_dgc_0x38f3('0x13c')]=='InsertElementCommand'){var c=this[mf_dgc_0x38f3('0x152')]['length'];var n=this[mf_dgc_0x38f3('0x156')]%c;var p=this['elementIndex']>0x0?this[mf_dgc_0x38f3('0x156')]-0x1:c-0x1;this[mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xc9')](this[mf_dgc_0x38f3('0x156')],0x1);var next=this[mf_dgc_0x38f3('0x152')][n];next['loadState'](this[mf_dgc_0x38f3('0x158')]);var prev=this[mf_dgc_0x38f3('0x152')][p];prev[mf_dgc_0x38f3('0x103')](this['prevState']);}else if(this[mf_dgc_0x38f3('0x13c')]=='RemoveElementCommand'){this[mf_dgc_0x38f3('0xc1')][mf_dgc_0x38f3('0xc9')](this[mf_dgc_0x38f3('0x156')],0x0,this[mf_dgc_0x38f3('0x32')]);if(this['prevState']){var c=this[mf_dgc_0x38f3('0xc1')]['length'];var n=(this[mf_dgc_0x38f3('0x156')]+0x1)%c;var p=this[mf_dgc_0x38f3('0x156')]>0x0?this[mf_dgc_0x38f3('0x156')]-0x1:c-0x1;var next=this[mf_dgc_0x38f3('0xc1')][n];next[mf_dgc_0x38f3('0x103')](this[mf_dgc_0x38f3('0x158')]);var prev=this[mf_dgc_0x38f3('0xc1')][p];prev[mf_dgc_0x38f3('0x103')](this[mf_dgc_0x38f3('0x159')]);}}canvas[mf_dgc_0x38f3('0x165')]=null;canvas[mf_dgc_0x38f3('0x166')]();}[mf_dgc_0x38f3('0x167')](canvas){if(this[mf_dgc_0x38f3('0x13c')]==mf_dgc_0x38f3('0x141'))this[mf_dgc_0x38f3('0x142')][mf_dgc_0x38f3('0xda')]((v,k)=>{k[mf_dgc_0x38f3('0x103')](v);});else if(this['type']==mf_dgc_0x38f3('0x147')){canvas['shapeBuilder']['decorations'][mf_dgc_0x38f3('0x11f')](this[mf_dgc_0x38f3('0x32')]);}else if(this[mf_dgc_0x38f3('0x13c')]==mf_dgc_0x38f3('0x149')){canvas[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x14a')][mf_dgc_0x38f3('0x11f')](this[mf_dgc_0x38f3('0x14b')]);}else if(this[mf_dgc_0x38f3('0x13c')]=='AddAnchorCommand'){canvas['shapeBuilder'][mf_dgc_0x38f3('0x14f')][mf_dgc_0x38f3('0x11f')](this['element']);}else if(this[mf_dgc_0x38f3('0x13c')]=='ReplaceOutlineCommand'){if(this[mf_dgc_0x38f3('0x151')]!=null){canvas['clearOutline'](this['filledDecoration']);this[mf_dgc_0x38f3('0x151')][mf_dgc_0x38f3('0x152')]['push'](...this[mf_dgc_0x38f3('0x153')]);}else{canvas[mf_dgc_0x38f3('0x154')]();canvas['shapeBuilder'][mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0x11f')](...this['newOutline']);}}else if(this[mf_dgc_0x38f3('0x13c')]==mf_dgc_0x38f3('0x155')){this[mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xc9')](this[mf_dgc_0x38f3('0x156')],0x1,this[mf_dgc_0x38f3('0x32')]);}else if(this['type']=='InsertElementCommand'){this[mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xc9')](this[mf_dgc_0x38f3('0x156')],0x0,this[mf_dgc_0x38f3('0x32')]);var c=this[mf_dgc_0x38f3('0x152')]['length'];var n=(this[mf_dgc_0x38f3('0x156')]+0x1)%c;var p=this[mf_dgc_0x38f3('0x156')]>0x0?this[mf_dgc_0x38f3('0x156')]-0x1:c-0x1;var next=this[mf_dgc_0x38f3('0x152')][n];next['scale'](0x2/0x3,next[mf_dgc_0x38f3('0x106')]);var prev=this[mf_dgc_0x38f3('0x152')][p];prev['scale'](0x2/0x3,prev[mf_dgc_0x38f3('0x105')]);}else if(this['type']=='RemoveElementCommand'){this[mf_dgc_0x38f3('0x145')](canvas);}canvas[mf_dgc_0x38f3('0x165')]=null;canvas[mf_dgc_0x38f3('0x166')]();}[mf_dgc_0x38f3('0x15b')](array,elements){if(elements instanceof Array){var fi=array['indexOf'](elements[0x0]);array[mf_dgc_0x38f3('0xc9')](fi,elements[mf_dgc_0x38f3('0xc')]);}else array['splice'](array[mf_dgc_0x38f3('0x15a')](elements),0x1);}}class FilledDecorationBuilder extends InteractiveElement{constructor(outline){super();this[mf_dgc_0x38f3('0x152')]=outline;this[mf_dgc_0x38f3('0x168')]=mf_dgc_0x38f3('0x115');}get[mf_dgc_0x38f3('0x86')](){if(!this[mf_dgc_0x38f3('0x169')]){var p=new Path(this[mf_dgc_0x38f3('0x10f')]()['path']);this[mf_dgc_0x38f3('0x169')]=p[mf_dgc_0x38f3('0xa4')]();}return this[mf_dgc_0x38f3('0x169')];}set[mf_dgc_0x38f3('0x86')](value){this[mf_dgc_0x38f3('0x169')]=value;}[mf_dgc_0x38f3('0x37')](context){context[mf_dgc_0x38f3('0xfb')]();context[mf_dgc_0x38f3('0xfc')]=this[mf_dgc_0x38f3('0x168')];context[mf_dgc_0x38f3('0x11a')]();var start=!![];for(var element of this[mf_dgc_0x38f3('0x152')]){element[mf_dgc_0x38f3('0x113')](context,start);start=![];}context[mf_dgc_0x38f3('0x16a')]();var pen={'color':this[mf_dgc_0x38f3('0x100')],'width':this[mf_dgc_0x38f3('0x101')],'dashStyle':this[mf_dgc_0x38f3('0x102')]};context['beginPath']();for(var element of this[mf_dgc_0x38f3('0x152')]){element[mf_dgc_0x38f3('0x37')](context,pen);}context[mf_dgc_0x38f3('0x11b')]();}[mf_dgc_0x38f3('0x11c')](context,size,brush){if(this['outline'][mf_dgc_0x38f3('0xc')]){this[mf_dgc_0x38f3('0xf9')](context,size,this['center'],brush);context[mf_dgc_0x38f3('0xfe')](this[mf_dgc_0x38f3('0x86')]['x'],this['bounds']['y'],this[mf_dgc_0x38f3('0x86')][mf_dgc_0x38f3('0x83')],this[mf_dgc_0x38f3('0x86')]['height'],mf_dgc_0x38f3('0x16b'));}}[mf_dgc_0x38f3('0x109')](point){var center=this['center'];return point[mf_dgc_0x38f3('0x109')](center);}[mf_dgc_0x38f3('0x11d')](point,maxDist){var center=this[mf_dgc_0x38f3('0x123')];var dist=point['distance'](center);if(dist<maxDist)return 0x0;if(DrawingUtils[mf_dgc_0x38f3('0x16c')](point,this[mf_dgc_0x38f3('0x86')])<maxDist)return 0x1;return-0x1;}get[mf_dgc_0x38f3('0x123')](){var p=new Point(0x0,0x0);this[mf_dgc_0x38f3('0x152')]['forEach'](element=>{var c=element[mf_dgc_0x38f3('0x123')];p['x']+=c['x'];p['y']+=c['y'];});p['x']/=this[mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xc')];p['y']/=this[mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xc')];return p;}[mf_dgc_0x38f3('0x10f')](){var elements=[];var start=!![];for(var element of this['outline']){elements['push'](element[mf_dgc_0x38f3('0x10f')](start));start=![];}return{'path':elements[mf_dgc_0x38f3('0x16d')]('')};}[mf_dgc_0x38f3('0x16e')](){var elements=[];for(var element of this[mf_dgc_0x38f3('0x152')]){elements=elements[mf_dgc_0x38f3('0x16f')](element[mf_dgc_0x38f3('0x16e')]());}return new ShapeDecoration(elements,this[mf_dgc_0x38f3('0x168')],this[mf_dgc_0x38f3('0x100')],this[mf_dgc_0x38f3('0x101')],this[mf_dgc_0x38f3('0x102')]);}[mf_dgc_0x38f3('0x13d')](bounds){var result=[];var offset=new Point(bounds[mf_dgc_0x38f3('0x123')]()['x']-this[mf_dgc_0x38f3('0x86')]['center']()['x'],bounds[mf_dgc_0x38f3('0x123')]()['y']-this['bounds'][mf_dgc_0x38f3('0x123')]()['y']);this[mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xda')](element=>{var newElement=element[mf_dgc_0x38f3('0x107')]();newElement['offset'](offset);result[mf_dgc_0x38f3('0x11f')](newElement);});return result;}}class AnchorPointBuilder extends InteractiveElement{constructor(x,y,type,style,size,color){super();this['center']=new Point(x,y);this[mf_dgc_0x38f3('0x7e')]=style;this['size']=size;if(color)this['strokeColor']=color;this['anchorSize']=size*0xa;this[mf_dgc_0x38f3('0x170')]=type;}[mf_dgc_0x38f3('0x107')](){return new AnchorPointBuilder(this[mf_dgc_0x38f3('0x123')]['x'],this[mf_dgc_0x38f3('0x123')]['y'],this[mf_dgc_0x38f3('0x170')],this[mf_dgc_0x38f3('0x7e')],this['size']);}['distance'](point){return this['center'][mf_dgc_0x38f3('0x109')](point);}[mf_dgc_0x38f3('0xfa')](point){this['center']['addVector'](point);}['setCenter'](point){this[mf_dgc_0x38f3('0x123')]=point;}['toShape'](){var params={'outline':this[mf_dgc_0x38f3('0x10f')](!![]),'id':'Anchor'};return new Shape(params);}static[mf_dgc_0x38f3('0x171')](point){var type=AnchorType[mf_dgc_0x38f3('0x172')];if(!point[mf_dgc_0x38f3('0x173')])type=AnchorType[mf_dgc_0x38f3('0x174')];if(!point['allowOutgoing'])type=AnchorType['In'];return new AnchorPointBuilder(point['x'],point['y'],type,point[mf_dgc_0x38f3('0x175')],point[mf_dgc_0x38f3('0x176')],point['color']);}[mf_dgc_0x38f3('0x37')](context,pen){context['save']();if(!pen)pen={'color':mf_dgc_0x38f3('0x115'),'width':0x1,'dashStyle':0x0};context[mf_dgc_0x38f3('0x116')]=this[mf_dgc_0x38f3('0x100')]||pen[mf_dgc_0x38f3('0x127')];context['lineWidth']=(this['strokeThickness']!=undefined?this[mf_dgc_0x38f3('0x101')]:pen[mf_dgc_0x38f3('0x83')])*context[mf_dgc_0x38f3('0x118')];DashStyle[mf_dgc_0x38f3('0x128')](context,this[mf_dgc_0x38f3('0x102')]!=undefined?this[mf_dgc_0x38f3('0x102')]:pen[mf_dgc_0x38f3('0x119')]);context['beginPath']();context[mf_dgc_0x38f3('0x177')](this[mf_dgc_0x38f3('0x123')]['x'],this[mf_dgc_0x38f3('0x123')]['y'],0x5,0x5,Math['PI']/0x4,0x0,0x2*Math['PI']);if(this[mf_dgc_0x38f3('0x170')]==AnchorType['In']){context[mf_dgc_0x38f3('0x114')](this[mf_dgc_0x38f3('0x123')]['x']+0x5,this[mf_dgc_0x38f3('0x123')]['y']);context['lineTo'](this[mf_dgc_0x38f3('0x123')]['x']+0xf,this['center']['y']);context['moveTo'](this[mf_dgc_0x38f3('0x123')]['x']+0x5,this[mf_dgc_0x38f3('0x123')]['y']);context['lineTo'](this['center']['x']+0xa,this[mf_dgc_0x38f3('0x123')]['y']-0x3);context[mf_dgc_0x38f3('0x114')](this[mf_dgc_0x38f3('0x123')]['x']+0x5,this[mf_dgc_0x38f3('0x123')]['y']);context[mf_dgc_0x38f3('0x13a')](this['center']['x']+0xa,this[mf_dgc_0x38f3('0x123')]['y']+0x3);}else if(this['anchorType']==AnchorType[mf_dgc_0x38f3('0x174')]){context['moveTo'](this[mf_dgc_0x38f3('0x123')]['x']+0x5,this[mf_dgc_0x38f3('0x123')]['y']);context[mf_dgc_0x38f3('0x13a')](this[mf_dgc_0x38f3('0x123')]['x']+0xf,this['center']['y']);context[mf_dgc_0x38f3('0x13a')](this[mf_dgc_0x38f3('0x123')]['x']+0xa,this[mf_dgc_0x38f3('0x123')]['y']-0x3);context['moveTo'](this['center']['x']+0xf,this['center']['y']);context['lineTo'](this[mf_dgc_0x38f3('0x123')]['x']+0xa,this[mf_dgc_0x38f3('0x123')]['y']+0x3);}else if(this[mf_dgc_0x38f3('0x170')]==AnchorType[mf_dgc_0x38f3('0x172')]){context[mf_dgc_0x38f3('0x114')](this[mf_dgc_0x38f3('0x123')]['x']+0x5,this[mf_dgc_0x38f3('0x123')]['y']-0x3);context[mf_dgc_0x38f3('0x13a')](this[mf_dgc_0x38f3('0x123')]['x']+0xf,this[mf_dgc_0x38f3('0x123')]['y']-0x3);context[mf_dgc_0x38f3('0x114')](this[mf_dgc_0x38f3('0x123')]['x']+0x5,this['center']['y']-0x3);context[mf_dgc_0x38f3('0x13a')](this[mf_dgc_0x38f3('0x123')]['x']+0xa,this[mf_dgc_0x38f3('0x123')]['y']-0x6);context[mf_dgc_0x38f3('0x114')](this['center']['x']+0x5,this[mf_dgc_0x38f3('0x123')]['y']-0x3);context[mf_dgc_0x38f3('0x13a')](this[mf_dgc_0x38f3('0x123')]['x']+0x9,this['center']['y']);context[mf_dgc_0x38f3('0x114')](this['center']['x']+0x5,this[mf_dgc_0x38f3('0x123')]['y']+0x3);context['lineTo'](this[mf_dgc_0x38f3('0x123')]['x']+0xf,this[mf_dgc_0x38f3('0x123')]['y']+0x3);context[mf_dgc_0x38f3('0x13a')](this['center']['x']+0xa,this[mf_dgc_0x38f3('0x123')]['y']);context['moveTo'](this[mf_dgc_0x38f3('0x123')]['x']+0xf,this[mf_dgc_0x38f3('0x123')]['y']+0x3);context[mf_dgc_0x38f3('0x13a')](this['center']['x']+0xb,this[mf_dgc_0x38f3('0x123')]['y']+0x6);}context[mf_dgc_0x38f3('0x161')]();context[mf_dgc_0x38f3('0x129')]();context[mf_dgc_0x38f3('0x11b')]();}['drawControlPoints'](context,size,brush){this[mf_dgc_0x38f3('0xf9')](context,size,this['center'],brush);}['hitTestHandle'](point,maxDist){var d1=point['distance'](this[mf_dgc_0x38f3('0x123')]);if(d1<maxDist)return 0x0;return-0x1;}[mf_dgc_0x38f3('0x11e')](handle,point){if(handle==0x0)this[mf_dgc_0x38f3('0x123')]=point;}[mf_dgc_0x38f3('0x10f')](startPath){var r=this[mf_dgc_0x38f3('0x178')];var a=r/0x4;var result='O'+this[mf_dgc_0x38f3('0x123')]['x']+','+this[mf_dgc_0x38f3('0x123')]['y']+','+r+','+r+'\x20';if(this[mf_dgc_0x38f3('0x170')]==AnchorType['In']){result+='M'+(this[mf_dgc_0x38f3('0x123')]['x']+r)+','+this[mf_dgc_0x38f3('0x123')]['y'];result+='L'+(this[mf_dgc_0x38f3('0x123')]['x']+r*0x2)+','+this[mf_dgc_0x38f3('0x123')]['y'];result+='M'+(this[mf_dgc_0x38f3('0x123')]['x']+r)+','+this[mf_dgc_0x38f3('0x123')]['y'];result+='L'+(this[mf_dgc_0x38f3('0x123')]['x']+r+r/0x2)+','+(this[mf_dgc_0x38f3('0x123')]['y']-a);result+='M'+(this[mf_dgc_0x38f3('0x123')]['x']+r)+','+this[mf_dgc_0x38f3('0x123')]['y'];result+='L'+(this['center']['x']+r+r/0x2)+','+(this['center']['y']+a);}else if(this[mf_dgc_0x38f3('0x170')]==AnchorType['Out']){result+='M'+(this['center']['x']+r)+','+this[mf_dgc_0x38f3('0x123')]['y'];result+='L'+(this[mf_dgc_0x38f3('0x123')]['x']+r*0x2)+','+this['center']['y'];result+='L'+(this['center']['x']+r+r/0x2)+','+(this[mf_dgc_0x38f3('0x123')]['y']-a);result+='M'+(this[mf_dgc_0x38f3('0x123')]['x']+r*0x2)+','+this[mf_dgc_0x38f3('0x123')]['y'];result+='L'+(this[mf_dgc_0x38f3('0x123')]['x']+r+r/0x2)+','+(this[mf_dgc_0x38f3('0x123')]['y']+a);}else if(this[mf_dgc_0x38f3('0x170')]==AnchorType[mf_dgc_0x38f3('0x172')]){result+='M'+(this[mf_dgc_0x38f3('0x123')]['x']+r)+','+(this[mf_dgc_0x38f3('0x123')]['y']-a);result+='L'+(this[mf_dgc_0x38f3('0x123')]['x']+r*0x2)+','+(this[mf_dgc_0x38f3('0x123')]['y']-a);result+='M'+(this[mf_dgc_0x38f3('0x123')]['x']+r)+','+(this['center']['y']-a);result+='L'+(this[mf_dgc_0x38f3('0x123')]['x']+r+r/0x2)+','+(this[mf_dgc_0x38f3('0x123')]['y']-a*0x2);result+='M'+(this[mf_dgc_0x38f3('0x123')]['x']+r)+','+(this[mf_dgc_0x38f3('0x123')]['y']-a);result+='L'+(this[mf_dgc_0x38f3('0x123')]['x']+r+r/0x2)+','+this[mf_dgc_0x38f3('0x123')]['y'];result+='M'+(this[mf_dgc_0x38f3('0x123')]['x']+r)+','+(this[mf_dgc_0x38f3('0x123')]['y']+a);result+='L'+(this[mf_dgc_0x38f3('0x123')]['x']+r*0x2)+','+(this[mf_dgc_0x38f3('0x123')]['y']+a);result+='L'+(this['center']['x']+r+r/0x2)+','+this['center']['y'];result+='M'+(this[mf_dgc_0x38f3('0x123')]['x']+r*0x2)+','+(this['center']['y']+a);result+='L'+(this[mf_dgc_0x38f3('0x123')]['x']+r+r/0x2)+','+(this['center']['y']+a*0x2);}return result;}[mf_dgc_0x38f3('0x120')](){var state=super['saveState']();state[mf_dgc_0x38f3('0x123')]=this[mf_dgc_0x38f3('0x123')][mf_dgc_0x38f3('0x107')]();state[mf_dgc_0x38f3('0x170')]=this[mf_dgc_0x38f3('0x170')];state[mf_dgc_0x38f3('0x7e')]=this[mf_dgc_0x38f3('0x7e')];state[mf_dgc_0x38f3('0x176')]=this['size'];return state;}[mf_dgc_0x38f3('0x103')](state){super[mf_dgc_0x38f3('0x103')](state);this[mf_dgc_0x38f3('0x123')]=state[mf_dgc_0x38f3('0x123')];this['anchorType']=state['anchorType'];this[mf_dgc_0x38f3('0x7e')]=state[mf_dgc_0x38f3('0x7e')];this[mf_dgc_0x38f3('0x176')]=state[mf_dgc_0x38f3('0x176')];}static[mf_dgc_0x38f3('0x12a')](type){return new AnchorPointBuilder(0x28,0x28,type,MarkStyle[mf_dgc_0x38f3('0x179')],0x3);}}class TextAreaBuilder extends InteractiveElement{constructor(outline){super();this['outline']=outline;this[mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xda')](element=>{element[mf_dgc_0x38f3('0x17a')]=!![];});}get['bounds'](){if(!this[mf_dgc_0x38f3('0x169')]){var p=new Path(this[mf_dgc_0x38f3('0x10f')]()[mf_dgc_0x38f3('0x17b')]);this[mf_dgc_0x38f3('0x169')]=p['getBounds']();}return this[mf_dgc_0x38f3('0x169')];}set[mf_dgc_0x38f3('0x86')](value){this[mf_dgc_0x38f3('0x169')]=value;}[mf_dgc_0x38f3('0x37')](context){context[mf_dgc_0x38f3('0xfb')]();context[mf_dgc_0x38f3('0x11a')]();var start=!![];for(var element of this[mf_dgc_0x38f3('0x152')]){element[mf_dgc_0x38f3('0x113')](context,start);start=![];}context['fillStyle']=mf_dgc_0x38f3('0x17c');context[mf_dgc_0x38f3('0x16a')]();var pen={'color':this[mf_dgc_0x38f3('0x100')],'width':this[mf_dgc_0x38f3('0x101')],'dashStyle':this[mf_dgc_0x38f3('0x102')]};context['beginPath']();for(var element of this[mf_dgc_0x38f3('0x152')]){element[mf_dgc_0x38f3('0x37')](context,pen);}context['restore']();}['drawControlPoints'](context,size,brush){if(this[mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xc')]){this['drawControlPoint'](context,size,this[mf_dgc_0x38f3('0x123')],brush);context['strokeRect'](this[mf_dgc_0x38f3('0x86')]['x'],this[mf_dgc_0x38f3('0x86')]['y'],this[mf_dgc_0x38f3('0x86')][mf_dgc_0x38f3('0x83')],this[mf_dgc_0x38f3('0x86')]['height'],mf_dgc_0x38f3('0x16b'));}}[mf_dgc_0x38f3('0x109')](point){var center=this[mf_dgc_0x38f3('0x123')];return point['distance'](center);}[mf_dgc_0x38f3('0x11d')](point,maxDist){var center=this[mf_dgc_0x38f3('0x123')];var dist=point[mf_dgc_0x38f3('0x109')](center);if(dist<maxDist)return 0x0;if(DrawingUtils['minDistToRect'](point,this[mf_dgc_0x38f3('0x86')])<maxDist)return 0x1;return-0x1;}get[mf_dgc_0x38f3('0x123')](){var p=new Point(0x0,0x0);this[mf_dgc_0x38f3('0x152')]['forEach'](element=>{var c=element[mf_dgc_0x38f3('0x123')];p['x']+=c['x'];p['y']+=c['y'];});p['x']/=this[mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xc')];p['y']/=this[mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xc')];return p;}[mf_dgc_0x38f3('0x10f')](){var elements=[];var start=!![];for(var element of this['outline']){elements[mf_dgc_0x38f3('0x11f')](element[mf_dgc_0x38f3('0x10f')](start));start=![];}return{'path':elements[mf_dgc_0x38f3('0x16d')]('')};}[mf_dgc_0x38f3('0x16e')](){var elements=[];for(var element of this[mf_dgc_0x38f3('0x152')]){elements=elements[mf_dgc_0x38f3('0x16f')](element[mf_dgc_0x38f3('0x16e')]());}return new ShapeDecoration(elements,this[mf_dgc_0x38f3('0x168')],this['strokeColor'],this[mf_dgc_0x38f3('0x101')],this['strokeDashStyle']);}['getElements'](bounds){var result=[];var offset=new Point(bounds[mf_dgc_0x38f3('0x123')]()['x']-this[mf_dgc_0x38f3('0x86')]['center']()['x'],bounds[mf_dgc_0x38f3('0x123')]()['y']-this[mf_dgc_0x38f3('0x86')][mf_dgc_0x38f3('0x123')]()['y']);this[mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xda')](element=>{var newElement=element['clone']();newElement[mf_dgc_0x38f3('0xfa')](offset);result[mf_dgc_0x38f3('0x11f')](newElement);});return result;}static[mf_dgc_0x38f3('0x12a')](){var elements=[];elements[mf_dgc_0x38f3('0x11f')](new LineBuilder(new Point(0x0,0x0),new Point(0x0,0x64)));elements[mf_dgc_0x38f3('0x11f')](new LineBuilder(new Point(0x0,0x64),new Point(0x64,0x64)));elements[mf_dgc_0x38f3('0x11f')](new LineBuilder(new Point(0x64,0x64),new Point(0x64,0x0)));elements[mf_dgc_0x38f3('0x11f')](new LineBuilder(new Point(0x64,0x0),new Point(0x0,0x0)));return new TextAreaBuilder(elements);}}class ShapeBuilder{constructor(shape,offset){this[mf_dgc_0x38f3('0x152')]=null;this[mf_dgc_0x38f3('0x15d')]=null;this['filledDecorations']=[];this[mf_dgc_0x38f3('0x14f')]=null;this[mf_dgc_0x38f3('0x17d')]=shape;this['offset']=offset||new Point(0x0,0x0);this[mf_dgc_0x38f3('0x17e')]();}['draw'](context){context['save']();context['translate'](this[mf_dgc_0x38f3('0xfa')]['x'],this[mf_dgc_0x38f3('0xfa')]['y']);context[mf_dgc_0x38f3('0x11a')]();context[mf_dgc_0x38f3('0x116')]=mf_dgc_0x38f3('0x17f');context[mf_dgc_0x38f3('0xfc')]='#fff';context[mf_dgc_0x38f3('0xfd')](0x0,0x0,0x64,0x64);context[mf_dgc_0x38f3('0xfc')]=mf_dgc_0x38f3('0x17f');if(this[mf_dgc_0x38f3('0x152')]){for(var element of this[mf_dgc_0x38f3('0x152')]){element[mf_dgc_0x38f3('0x37')](context);}}if(this[mf_dgc_0x38f3('0x15d')]){for(var element of this[mf_dgc_0x38f3('0x15d')]){element[mf_dgc_0x38f3('0x37')](context);}}if(this['filledDecorations']){this[mf_dgc_0x38f3('0x14a')][mf_dgc_0x38f3('0xda')](fd=>{fd[mf_dgc_0x38f3('0x37')](context);});}if(this[mf_dgc_0x38f3('0x14f')]){for(var element of this[mf_dgc_0x38f3('0x14f')]){element[mf_dgc_0x38f3('0x37')](context);}}if(this[mf_dgc_0x38f3('0x180')]()){this[mf_dgc_0x38f3('0x15e')][mf_dgc_0x38f3('0x37')](context);}context[mf_dgc_0x38f3('0x11b')]();}['parseShape'](){var renderer=new ShapeRenderer(this[mf_dgc_0x38f3('0x17d')]);this[mf_dgc_0x38f3('0x152')]=this[mf_dgc_0x38f3('0x181')](this[mf_dgc_0x38f3('0x17d')][mf_dgc_0x38f3('0x182')]||renderer[mf_dgc_0x38f3('0x183')]);this[mf_dgc_0x38f3('0x15d')]=this[mf_dgc_0x38f3('0x181')](this['shape'][mf_dgc_0x38f3('0x184')]||renderer[mf_dgc_0x38f3('0x185')]);this[mf_dgc_0x38f3('0x14f')]=[];var sd=this['shape'][mf_dgc_0x38f3('0x186')]||renderer[mf_dgc_0x38f3('0x187')];if(sd&&sd['length']){this['filledDecorations']=[];sd[mf_dgc_0x38f3('0xda')](d=>{var b=new FilledDecorationBuilder(this[mf_dgc_0x38f3('0x181')](d[mf_dgc_0x38f3('0x188')]));b[mf_dgc_0x38f3('0x168')]=d[mf_dgc_0x38f3('0x189')]||d[mf_dgc_0x38f3('0x168')];b[mf_dgc_0x38f3('0x100')]=d[mf_dgc_0x38f3('0x18a')]||d[mf_dgc_0x38f3('0x100')];b[mf_dgc_0x38f3('0x101')]=d['strokeThickness'];b[mf_dgc_0x38f3('0x102')]=d['strokeDashStyle'];this[mf_dgc_0x38f3('0x14a')][mf_dgc_0x38f3('0x11f')](b);});}if(this[mf_dgc_0x38f3('0x17d')][mf_dgc_0x38f3('0x18b')]){this['shape'][mf_dgc_0x38f3('0x18b')]['points']['forEach'](point=>{var builder=AnchorPointBuilder[mf_dgc_0x38f3('0x171')](point);this[mf_dgc_0x38f3('0x14f')]['push'](builder);});}if(this[mf_dgc_0x38f3('0x17d')][mf_dgc_0x38f3('0x18c')]){this['textArea']=new TextAreaBuilder(this[mf_dgc_0x38f3('0x181')](this['shape']['textAreaElements']));}else{this[mf_dgc_0x38f3('0x15e')]=TextAreaBuilder[mf_dgc_0x38f3('0x12a')]();}}[mf_dgc_0x38f3('0x181')](commands){this['lastPoint']=new Point(0x0,0x0);var builders=[];if(!commands)return builders;for(var command of commands){var b=this[mf_dgc_0x38f3('0x18d')](command);if(b){b[mf_dgc_0x38f3('0x18e')]=command;builders[mf_dgc_0x38f3('0x11f')](b);}}return builders;}[mf_dgc_0x38f3('0x18d')](command){switch(command['func']){case'moveTo':{this[mf_dgc_0x38f3('0x18f')]=new Point(...command['args']);break;}case mf_dgc_0x38f3('0x13a'):{var b=new LineBuilder(this[mf_dgc_0x38f3('0x18f')][mf_dgc_0x38f3('0x107')](),new Point(...command['args']));this[mf_dgc_0x38f3('0x18f')]=b['endPoint'];break;}case mf_dgc_0x38f3('0x190'):{var b=new LineBuilder(new Point(command[mf_dgc_0x38f3('0x191')][0x0],command[mf_dgc_0x38f3('0x191')][0x1]),new Point(command[mf_dgc_0x38f3('0x191')][0x2],command[mf_dgc_0x38f3('0x191')][0x3]));this[mf_dgc_0x38f3('0x18f')]=b[mf_dgc_0x38f3('0x106')];break;}case mf_dgc_0x38f3('0x12b'):{var b=new BezierBuilder(this[mf_dgc_0x38f3('0x18f')]['x'],this[mf_dgc_0x38f3('0x18f')]['y'],...command[mf_dgc_0x38f3('0x191')]);this[mf_dgc_0x38f3('0x18f')]=b['points'][0x3];break;}case mf_dgc_0x38f3('0x192'):{var b=new BezierBuilder(...command[mf_dgc_0x38f3('0x191')]);this[mf_dgc_0x38f3('0x18f')]=b[mf_dgc_0x38f3('0x121')][0x3];break;}case'arc':{var b=new ArcBuilder(...command['args']);this[mf_dgc_0x38f3('0x18f')]=b[mf_dgc_0x38f3('0x106')];break;}case mf_dgc_0x38f3('0x193'):{var b=new RoundRectBuilder(...command[mf_dgc_0x38f3('0x191')]);this[mf_dgc_0x38f3('0x18f')]=b[mf_dgc_0x38f3('0x137')];break;}}if(b){b[mf_dgc_0x38f3('0x168')]=command[mf_dgc_0x38f3('0x168')];b[mf_dgc_0x38f3('0x100')]=command[mf_dgc_0x38f3('0x100')];b['strokeThickness']=command['strokeThickness'];b[mf_dgc_0x38f3('0x102')]=command[mf_dgc_0x38f3('0x102')];return b;}return null;}['exportShape'](shapeId){var params={};params['id']=shapeId;params[mf_dgc_0x38f3('0x152')]=this[mf_dgc_0x38f3('0x194')](this[mf_dgc_0x38f3('0x152')],!![]);params[mf_dgc_0x38f3('0x195')]=this[mf_dgc_0x38f3('0x194')](this['decorations']);params[mf_dgc_0x38f3('0x196')]=this[mf_dgc_0x38f3('0x194')](this[mf_dgc_0x38f3('0x14a')],![],!![]);var b=this[mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xf2')](b=>b['strokeColor']!=undefined);if(b)params['outlinePen']=b['strokeColor'];var b=this[mf_dgc_0x38f3('0x15d')][mf_dgc_0x38f3('0xf2')](b=>b[mf_dgc_0x38f3('0x100')]!=undefined);if(b)params[mf_dgc_0x38f3('0x197')]=b[mf_dgc_0x38f3('0x100')];if(this['filledDecorations'][mf_dgc_0x38f3('0xc')]){params[mf_dgc_0x38f3('0x198')]=this[mf_dgc_0x38f3('0x14a')][0x0]['strokeColor'];params[mf_dgc_0x38f3('0x199')]=this[mf_dgc_0x38f3('0x14a')][0x0][mf_dgc_0x38f3('0x168')];}if(this[mf_dgc_0x38f3('0x14f')]!=null){var anchorPattern=new AnchorPattern();this[mf_dgc_0x38f3('0x14f')][mf_dgc_0x38f3('0xda')](builder=>{var p=builder[mf_dgc_0x38f3('0x123')];if(builder[mf_dgc_0x38f3('0x170')]==AnchorType['In'])anchorPattern[mf_dgc_0x38f3('0x121')][mf_dgc_0x38f3('0x11f')](new AnchorPoint(p['x'],p['y'],!![],![],builder[mf_dgc_0x38f3('0x7e')],builder[mf_dgc_0x38f3('0x100')],builder['size']));if(builder['anchorType']==AnchorType[mf_dgc_0x38f3('0x174')])anchorPattern['points'][mf_dgc_0x38f3('0x11f')](new AnchorPoint(p['x'],p['y'],![],!![],builder['style'],builder[mf_dgc_0x38f3('0x100')],builder['size']));if(builder['anchorType']==AnchorType[mf_dgc_0x38f3('0x172')])anchorPattern[mf_dgc_0x38f3('0x121')][mf_dgc_0x38f3('0x11f')](new AnchorPoint(p['x'],p['y'],!![],!![],builder[mf_dgc_0x38f3('0x7e')],builder['strokeColor'],builder[mf_dgc_0x38f3('0x176')]));});}var shape=new Shape(params);shape[mf_dgc_0x38f3('0x182')]=this[mf_dgc_0x38f3('0x19a')](this['outline']);shape[mf_dgc_0x38f3('0x184')]=this[mf_dgc_0x38f3('0x19a')](this[mf_dgc_0x38f3('0x15d')]);shape[mf_dgc_0x38f3('0x186')]=this[mf_dgc_0x38f3('0x19a')](this[mf_dgc_0x38f3('0x14a')],!![]);shape['anchorPattern']=anchorPattern;if(this['useTextArea']()){shape[mf_dgc_0x38f3('0x18c')]=this[mf_dgc_0x38f3('0x19a')](this[mf_dgc_0x38f3('0x15e')]['outline']);var params={};params[mf_dgc_0x38f3('0x152')]=this['exportElements'](this['textArea'][mf_dgc_0x38f3('0x152')],!![]);var textShape=new Shape(params);textShape[mf_dgc_0x38f3('0x182')]=this[mf_dgc_0x38f3('0x15e')]['outline'];var textRenderer=new ShapeRenderer(textShape);var b=textRenderer['outlineBounds'];shape[mf_dgc_0x38f3('0x15e')]=Rect[mf_dgc_0x38f3('0x19b')](b['minX'],b[mf_dgc_0x38f3('0x19c')],b[mf_dgc_0x38f3('0x19d')],b[mf_dgc_0x38f3('0x19e')]);}else shape[mf_dgc_0x38f3('0x15e')]=this[mf_dgc_0x38f3('0x17d')]['textArea'];return shape;}[mf_dgc_0x38f3('0x194')](elementBuilders,merge,array){if(elementBuilders==null)return null;var elements=[];var startPath=!![];elementBuilders[mf_dgc_0x38f3('0xda')](b=>{elements[mf_dgc_0x38f3('0x11f')](b[mf_dgc_0x38f3('0x10f')](startPath));if(merge)startPath=![];});if(array)return elements;return elements['join']('');}[mf_dgc_0x38f3('0x19a')](elementBuilders,array){if(elementBuilders==null)return null;var elements=[];elementBuilders[mf_dgc_0x38f3('0xda')](b=>{if(array)elements[mf_dgc_0x38f3('0x11f')](b[mf_dgc_0x38f3('0x16e')]());else elements=elements[mf_dgc_0x38f3('0x16f')](b[mf_dgc_0x38f3('0x16e')]());});return elements;}[mf_dgc_0x38f3('0x180')](){return this['textArea']&&this[mf_dgc_0x38f3('0x19f')];}[mf_dgc_0x38f3('0x1a0')](){var elements=[];if(this['outline'])elements=elements['concat'](this[mf_dgc_0x38f3('0x152')]);if(this[mf_dgc_0x38f3('0x15d')])elements=elements[mf_dgc_0x38f3('0x16f')](this[mf_dgc_0x38f3('0x15d')]);if(this[mf_dgc_0x38f3('0x14a')]){this[mf_dgc_0x38f3('0x14a')][mf_dgc_0x38f3('0xda')](fd=>{elements=elements[mf_dgc_0x38f3('0x16f')](fd);fd['outline'][mf_dgc_0x38f3('0xda')](element=>elements['push'](element));});}if(this[mf_dgc_0x38f3('0x14f')])elements=elements[mf_dgc_0x38f3('0x16f')](this[mf_dgc_0x38f3('0x14f')]);if(this[mf_dgc_0x38f3('0x180')]()){elements=elements['concat'](this[mf_dgc_0x38f3('0x15e')]);this['textArea']['outline'][mf_dgc_0x38f3('0xda')](element=>elements[mf_dgc_0x38f3('0x11f')](element));}return elements;}[mf_dgc_0x38f3('0x1a1')](point,maxDist,elements){if(!elements)elements=this[mf_dgc_0x38f3('0x1a0')]();var minDistElement=null;var anchorElement=null;var minDist=Number[mf_dgc_0x38f3('0x1a2')];var minAnchorDist=Number[mf_dgc_0x38f3('0x1a2')];for(var element of elements){if(element instanceof AnchorPointBuilder){var distance=element['distance'](point);if(distance<minAnchorDist){minAnchorDist=distance;anchorElement=element;}}}for(var element of elements){var distance=element[mf_dgc_0x38f3('0x109')](point);if(distance<minDist){minDist=distance;minDistElement=element;}}if(minAnchorDist<=0x5)return anchorElement;else return minDist<maxDist?minDistElement:null;}['hitTestDropTarget'](point,newElement){if(newElement instanceof Composite||newElement instanceof RoundRectBuilder){var target=this[mf_dgc_0x38f3('0x1a1')](point,0x5,this[mf_dgc_0x38f3('0x152')]);if(target!=null)return new Command(mf_dgc_0x38f3('0x150'),point,this,newElement);if(this[mf_dgc_0x38f3('0x14a')]!=null){for(var i=0x0;i<this[mf_dgc_0x38f3('0x14a')]['length'];i++){var filledDecoration=this['filledDecorations'][i];var element=this[mf_dgc_0x38f3('0x1a1')](point,0x5,filledDecoration[mf_dgc_0x38f3('0x152')]);if(element!=null){return new Command(mf_dgc_0x38f3('0x150'),point,filledDecoration,newElement,null,null,filledDecoration);}}}if(newElement instanceof Composite)return new Command(mf_dgc_0x38f3('0x149'),point,null,newElement);else return new Command(mf_dgc_0x38f3('0x147'),point,null,newElement);}else if(newElement instanceof InteractiveElement){var cmd=this[mf_dgc_0x38f3('0x1a3')](this[mf_dgc_0x38f3('0x152')],point,newElement);if(cmd!=null)return cmd;if(this['useTextArea']()&&newElement instanceof LineBuilder){var cmd=this['hitTestOutlineTarget'](this['textArea'][mf_dgc_0x38f3('0x152')],point,newElement);if(cmd!=null)return cmd;}if(this[mf_dgc_0x38f3('0x14a')]!=null){for(var i=0x0;i<this['filledDecorations'][mf_dgc_0x38f3('0xc')];i++){var filledDecoration=this['filledDecorations'][i];var decorCmd=this[mf_dgc_0x38f3('0x1a3')](filledDecoration['outline'],point,newElement);if(decorCmd!=null)return decorCmd;}}return new Command(mf_dgc_0x38f3('0x147'),point,null,newElement);}}[mf_dgc_0x38f3('0x1a3')](outline,point,newElement){var outlineElements=outline!=null?outline['length']:0x0;for(var i=0x0;i<outlineElements;i++){var child=outline[i];var handle=child[mf_dgc_0x38f3('0x11d')](point,this[mf_dgc_0x38f3('0x1a4')]);if(handle==child['firstHandle']){return new Command(mf_dgc_0x38f3('0x157'),child[mf_dgc_0x38f3('0x105')],null,newElement,i,outline);}}var outlineElement=this[mf_dgc_0x38f3('0x1a1')](point,0x5,outline);if(outlineElement!=null){return new Command(mf_dgc_0x38f3('0x155'),point,outlineElement,newElement,outline[mf_dgc_0x38f3('0x15a')](outlineElement),outline);}return null;}[mf_dgc_0x38f3('0x1a5')](point,activeElement){if(activeElement==null)return null;if(activeElement instanceof AnchorPointBuilder){var i=this[mf_dgc_0x38f3('0x14f')][mf_dgc_0x38f3('0x15a')](activeElement);if(i>-0x1){var handle=activeElement[mf_dgc_0x38f3('0x11d')](point,0x4);if(handle!=-0x1)return new ElementController('AnchorController',activeElement,handle);}}if(activeElement instanceof FilledDecorationBuilder){var handle=activeElement[mf_dgc_0x38f3('0x11d')](point,this[mf_dgc_0x38f3('0x1a4')]);if(handle==0x0)return new ElementController('FilledDecorationMoveController',null,handle,activeElement);if(handle==0x1)return new ElementController(mf_dgc_0x38f3('0x1a6'),null,handle,activeElement);}if(this[mf_dgc_0x38f3('0x152')]!=null){var controller=this['hitTestOutline'](this[mf_dgc_0x38f3('0x152')],activeElement,point,null);if(controller!=null)return controller;}if(this[mf_dgc_0x38f3('0x15d')]!=null){var i=this[mf_dgc_0x38f3('0x15d')]['indexOf'](activeElement);if(i>-0x1){var handle=activeElement[mf_dgc_0x38f3('0x11d')](point,this[mf_dgc_0x38f3('0x1a4')]);if(handle!=-0x1)return new ElementController('ElementController',activeElement,handle,null);}}if(this[mf_dgc_0x38f3('0x14a')]!=null){for(var i=0x0;i<this['filledDecorations'][mf_dgc_0x38f3('0xc')];i++){var controller=this['hitTestOutline'](this[mf_dgc_0x38f3('0x14a')][i]['outline'],activeElement,point,this[mf_dgc_0x38f3('0x14a')][i]);if(controller!=null)return controller;}}if(this[mf_dgc_0x38f3('0x15e')]!=null){var controller=this[mf_dgc_0x38f3('0x1a7')](this[mf_dgc_0x38f3('0x15e')][mf_dgc_0x38f3('0x152')],activeElement,point,this['textArea']);if(controller!=null)return controller;}return null;}[mf_dgc_0x38f3('0x1a7')](outline,child,point,filledDecoration){var outlineElements=outline!=null?outline[mf_dgc_0x38f3('0xc')]:0x0;var i=outline[mf_dgc_0x38f3('0x15a')](child);if(i>-0x1){var handle=child[mf_dgc_0x38f3('0x11d')](point,this[mf_dgc_0x38f3('0x1a4')]);if(outlineElements>0x1&&handle==child[mf_dgc_0x38f3('0x1a8')]){var adjacent=outline[i-0x1<0x0?outlineElements-0x1:i-0x1];return new ElementController(mf_dgc_0x38f3('0x1a9'),child,handle,filledDecoration,adjacent,adjacent[mf_dgc_0x38f3('0xff')]);}else if(outlineElements>0x1&&handle==child[mf_dgc_0x38f3('0xff')]){var adjacent=outline[(i+0x1)%outlineElements];return new ElementController('OutlineController',child,handle,filledDecoration,adjacent,adjacent[mf_dgc_0x38f3('0x1a8')]);}else if(handle!=-0x1){return new ElementController(mf_dgc_0x38f3('0x1aa'),child,handle,filledDecoration);}}return null;}}class ElementController{constructor(type,element,handle,filledDecoration,adjacent,adjacentHandle){this[mf_dgc_0x38f3('0x13c')]=type;this[mf_dgc_0x38f3('0x32')]=element;this[mf_dgc_0x38f3('0x1ab')]=handle;this[mf_dgc_0x38f3('0x151')]=filledDecoration;this[mf_dgc_0x38f3('0x1ac')]=adjacent;this[mf_dgc_0x38f3('0x1ad')]=adjacentHandle;this[mf_dgc_0x38f3('0x1ae')]=new Command(mf_dgc_0x38f3('0x141'));if(element)this[mf_dgc_0x38f3('0x1ae')]['registerElement'](element);if(this[mf_dgc_0x38f3('0x13c')]==mf_dgc_0x38f3('0x1a9'))this[mf_dgc_0x38f3('0x1ae')][mf_dgc_0x38f3('0x143')](adjacent);if(this[mf_dgc_0x38f3('0x13c')][mf_dgc_0x38f3('0x15a')]('FilledDecoration')>-0x1){this[mf_dgc_0x38f3('0x151')][mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xda')](element=>this[mf_dgc_0x38f3('0x1ae')][mf_dgc_0x38f3('0x143')](element));this[mf_dgc_0x38f3('0x123')]=this[mf_dgc_0x38f3('0x151')]['center'];this[mf_dgc_0x38f3('0x1af')]=0x1;}}[mf_dgc_0x38f3('0x1b0')](point){this[mf_dgc_0x38f3('0x1b1')]=![];this['previousPosition']=point;if(this[mf_dgc_0x38f3('0x13c')]=='FilledDecorationResizeController')this[mf_dgc_0x38f3('0x1b2')]=point[mf_dgc_0x38f3('0x109')](this[mf_dgc_0x38f3('0x123')]);}['onMouseMove'](point){this[mf_dgc_0x38f3('0x1b1')]=!![];if(this['type']=='FilledDecorationMoveController'){var offset=new Point(point['x']-this['previousPosition']['x'],point['y']-this[mf_dgc_0x38f3('0x1b3')]['y']);if(offset['x']||offset['y']){this[mf_dgc_0x38f3('0x151')][mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xda')](element=>element['offset'](offset));this['filledDecoration'][mf_dgc_0x38f3('0x86')][mf_dgc_0x38f3('0xfa')](offset['x'],offset['y']);this['previousPosition']=point;}return;}if(this[mf_dgc_0x38f3('0x13c')]==mf_dgc_0x38f3('0x1a6')){var newDistance=point['distance'](this[mf_dgc_0x38f3('0x123')]);var newScale=newDistance/this[mf_dgc_0x38f3('0x1b2')];var dscale=newScale/this[mf_dgc_0x38f3('0x1af')];this[mf_dgc_0x38f3('0x151')][mf_dgc_0x38f3('0x152')][mf_dgc_0x38f3('0xda')](element=>{element[mf_dgc_0x38f3('0x87')](dscale,this[mf_dgc_0x38f3('0x123')]);});this[mf_dgc_0x38f3('0x151')][mf_dgc_0x38f3('0x86')]['scaleCentered'](dscale,dscale);this[mf_dgc_0x38f3('0x1af')]=newScale;return;}if(this[mf_dgc_0x38f3('0x32')]){this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x11e')](this['handle'],point);if(this['filledDecoration'])this['filledDecoration']['bounds']=null;}if(this['type']==mf_dgc_0x38f3('0x1a9')){this['adjacent']['updateFromHandle'](this[mf_dgc_0x38f3('0x1ad')],point[mf_dgc_0x38f3('0x107')]());}}[mf_dgc_0x38f3('0x1b4')](point){}}class ShapeCanvas extends Diagram{constructor(){super();this['shapeSize']=0x32;this[mf_dgc_0x38f3('0x1b5')]=mf_dgc_0x38f3('0x1b6');this[mf_dgc_0x38f3('0x1b7')]=mf_dgc_0x38f3('0x1b8');this[mf_dgc_0x38f3('0x1b9')]=0x0;this[mf_dgc_0x38f3('0x1ba')]=!![];this[mf_dgc_0x38f3('0x1bb')]=mf_dgc_0x38f3('0x1bc');this['gridSizeX']=0xa;this[mf_dgc_0x38f3('0x1bd')]=0xa;this[mf_dgc_0x38f3('0x1be')]=GridStyle[mf_dgc_0x38f3('0x1bf')];this[mf_dgc_0x38f3('0x1c0')]='#ffffff';}[mf_dgc_0x38f3('0x1c1')](repaintArgs){var matrix=repaintArgs[mf_dgc_0x38f3('0x1c2')];var viewport=repaintArgs[mf_dgc_0x38f3('0x1c3')];this[mf_dgc_0x38f3('0x1c4')]=repaintArgs[mf_dgc_0x38f3('0x1c4')];var scale=repaintArgs[mf_dgc_0x38f3('0x87')];if(!this['context'])return;var clipRect=viewport;this[mf_dgc_0x38f3('0x1c4')][mf_dgc_0x38f3('0x1c5')]=matrix;this[mf_dgc_0x38f3('0x1c4')][mf_dgc_0x38f3('0x118')]=scale;this[mf_dgc_0x38f3('0x1c4')][mf_dgc_0x38f3('0x1c6')]=this[mf_dgc_0x38f3('0x1c7')];this[mf_dgc_0x38f3('0x1c4')][mf_dgc_0x38f3('0x1c8')]=this[mf_dgc_0x38f3('0xa1')];this[mf_dgc_0x38f3('0x1c4')][mf_dgc_0x38f3('0xfb')]();this[mf_dgc_0x38f3('0x1c9')](repaintArgs[mf_dgc_0x38f3('0xb3')],repaintArgs[mf_dgc_0x38f3('0x1ca')]);this[mf_dgc_0x38f3('0x1c4')][mf_dgc_0x38f3('0x1cb')][mf_dgc_0x38f3('0x128')](this['context'],matrix[mf_dgc_0x38f3('0x1c2')]());this[mf_dgc_0x38f3('0x1c4')][mf_dgc_0x38f3('0x117')]=0x1/scale;if(this[mf_dgc_0x38f3('0x1ba')])this[mf_dgc_0x38f3('0x1cc')](clipRect,viewport);var zOrder=this[mf_dgc_0x38f3('0x1cd')]();for(var i=0x0;i<zOrder[mf_dgc_0x38f3('0xc')];i++){var element=zOrder[i];element['draw'](this['context'],![],![]);}this['raiseRepaint'](repaintArgs);this[mf_dgc_0x38f3('0x1ce')]();this[mf_dgc_0x38f3('0x1c4')][mf_dgc_0x38f3('0x11b')]();this['repainting']=![];}['drawForeground'](){var offset=this[mf_dgc_0x38f3('0x148')]?this[mf_dgc_0x38f3('0x148')]['offset']:new Point(0x0,0x0);this[mf_dgc_0x38f3('0x1c4')][mf_dgc_0x38f3('0xfb')]();this[mf_dgc_0x38f3('0x1c4')][mf_dgc_0x38f3('0x10c')](offset['x'],offset['y']);if(this['selectedElement']!=null)this[mf_dgc_0x38f3('0x165')][mf_dgc_0x38f3('0x11c')](this[mf_dgc_0x38f3('0x1c4')],this[mf_dgc_0x38f3('0x1a4')],this[mf_dgc_0x38f3('0x1b5')]);if(this[mf_dgc_0x38f3('0x1cf')]!=null&&this[mf_dgc_0x38f3('0x165')]!=this[mf_dgc_0x38f3('0x1cf')])this['pointedElement'][mf_dgc_0x38f3('0x11c')](this['context'],this['handlesSize'],this[mf_dgc_0x38f3('0x1b7')]);if(this[mf_dgc_0x38f3('0x1d0')]!=null)this['dropCommand'][mf_dgc_0x38f3('0x15f')](this[mf_dgc_0x38f3('0x1c4')]);this[mf_dgc_0x38f3('0x1c4')][mf_dgc_0x38f3('0x11b')]();}['clearOutline'](filledDecoration){if(filledDecoration){var elements=filledDecoration[mf_dgc_0x38f3('0x152')];filledDecoration[mf_dgc_0x38f3('0x152')]=[];return elements;}if(this[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x152')]!=null){var elements=this[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x152')];this[mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x152')]=[];return elements;}return[];}[mf_dgc_0x38f3('0x15c')](outline,element){if(outline[mf_dgc_0x38f3('0xc')]<0x3){return{'index':-0x1};}var elementIndex=outline['indexOf'](element);if(elementIndex>-0x1){var c=outline['length'];var n=(elementIndex+0x1)%c;var p=elementIndex>0x0?elementIndex-0x1:c-0x1;var next=outline[n];var prev=outline[p];var prevState=prev['saveState']();var nextState=next[mf_dgc_0x38f3('0x120')]();var center=element[mf_dgc_0x38f3('0x123')];outline[mf_dgc_0x38f3('0xc9')](elementIndex,0x1);prev[mf_dgc_0x38f3('0x125')](prev['startPoint'],center);next[mf_dgc_0x38f3('0x125')](center,next[mf_dgc_0x38f3('0x106')]);return{'index':elementIndex,'prevState':prevState,'nextState':nextState};}return{'index':-0x1};}get['selectedElement'](){return this[mf_dgc_0x38f3('0x1d1')];}set['selectedElement'](value){if(this[mf_dgc_0x38f3('0x1d1')]!=value){this[mf_dgc_0x38f3('0x1d1')]=value;if(value==null){if(this[mf_dgc_0x38f3('0x1cf')])this[mf_dgc_0x38f3('0x1cf')]=null;}}}get[mf_dgc_0x38f3('0x148')](){return this[mf_dgc_0x38f3('0x1d2')];}set['shapeBuilder'](value){if(this['_shapeBuilder'])this['removeElement'](this[mf_dgc_0x38f3('0x1d2')]);this[mf_dgc_0x38f3('0x1d2')]=value;this[mf_dgc_0x38f3('0x1d2')]['handlesSize']=this[mf_dgc_0x38f3('0x1a4')];this['addElement'](this[mf_dgc_0x38f3('0x1d2')]);this[mf_dgc_0x38f3('0x166')]();}[mf_dgc_0x38f3('0x1d3')](){}get[mf_dgc_0x38f3('0x1d4')](){return this[mf_dgc_0x38f3('0x1d5')];}set['dirty'](value){if(value===undefined)value=!![];this[mf_dgc_0x38f3('0x1d5')]=value;}[mf_dgc_0x38f3('0x1d6')](value){this[mf_dgc_0x38f3('0x1d4')]=value;}get[mf_dgc_0x38f3('0x1a4')](){return this['shapeSize']*this['scale']/0xa;}}class ShapeView extends DiagramView{constructor(element){super(element,new ShapeCanvas(),ShapeView);this['behavior']=Behavior['DoNothing'];this[mf_dgc_0x38f3('0x1d7')]=[];this[mf_dgc_0x38f3('0x1d8')]=-0x1;this[mf_dgc_0x38f3('0xfa')]=new Point(0x0,0x0);this[mf_dgc_0x38f3('0xb3')]=0x32;}[mf_dgc_0x38f3('0x28')](){super[mf_dgc_0x38f3('0x28')]();this[mf_dgc_0x38f3('0x1d9')][mf_dgc_0x38f3('0x1da')]=this[mf_dgc_0x38f3('0x1da')][mf_dgc_0x38f3('0x67')](this);this[mf_dgc_0x38f3('0x1d9')][mf_dgc_0x38f3('0x1db')]=this[mf_dgc_0x38f3('0x1db')]['bind'](this);this[mf_dgc_0x38f3('0x1d9')][mf_dgc_0x38f3('0x1dc')]=this[mf_dgc_0x38f3('0x1dc')][mf_dgc_0x38f3('0x67')](this);this['keyboardInputDispatcher']['onKeyUp']=this[mf_dgc_0x38f3('0x1dd')]['bind'](this);var bounds=DomUtils[mf_dgc_0x38f3('0xa4')](this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x33')],this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x33')]['parentNode']);this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x83')]=bounds[mf_dgc_0x38f3('0x83')];this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x77')]=bounds['height'];var w=bounds[mf_dgc_0x38f3('0x83')]/this['canvas'][mf_dgc_0x38f3('0x87')];var h=bounds[mf_dgc_0x38f3('0x77')]/this[mf_dgc_0x38f3('0xa0')]['scale'];this['canvas']['bounds']=new Rect(0x0,0x0,w,h);this[mf_dgc_0x38f3('0xfa')]=new Point((w-0x64)/0x2,(h-0x64)/0x2);this[mf_dgc_0x38f3('0xfa')]['x']-=w/this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x1de')]-Math[mf_dgc_0x38f3('0x1df')](w/this[mf_dgc_0x38f3('0xa0')]['gridSizeX']);this[mf_dgc_0x38f3('0xfa')]['y']-=h/this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x1bd')]-Math[mf_dgc_0x38f3('0x1df')](h/this['canvas']['gridSizeY']);}[mf_dgc_0x38f3('0x1e0')](sender,args){var matrix=new Matrix();var scale=this['zoomFactor']/0x64/GraphicsUnit[mf_dgc_0x38f3('0x9f')](this[mf_dgc_0x38f3('0x5a')][mf_dgc_0x38f3('0xa1')]);matrix['scale'](scale,scale);args['matrix']=matrix;args[mf_dgc_0x38f3('0x87')]=scale;args['zoomFactor']=this[mf_dgc_0x38f3('0xb3')];args[mf_dgc_0x38f3('0x1c3')]=this[mf_dgc_0x38f3('0x5a')]['bounds'];args[mf_dgc_0x38f3('0x1c4')]=this[mf_dgc_0x38f3('0x1c4')];args['disabled']=!this[mf_dgc_0x38f3('0xb6')];args[mf_dgc_0x38f3('0x1e1')]=![];var b=this[mf_dgc_0x38f3('0xa0')]['bounds'];var r=new Rect(0x0,0x0,b[mf_dgc_0x38f3('0x83')]*scale,b['height']*scale);args[mf_dgc_0x38f3('0x1c3')]=r;this['canvas'][mf_dgc_0x38f3('0x1c4')][mf_dgc_0x38f3('0xfc')]=mf_dgc_0x38f3('0x1e2');this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x1c4')][mf_dgc_0x38f3('0xfd')](0x0,0x0,b['width']*scale,b[mf_dgc_0x38f3('0x77')]*scale);sender[mf_dgc_0x38f3('0x1c1')](args);}['resetVirtualScroll'](){}[mf_dgc_0x38f3('0x1e3')](){}[mf_dgc_0x38f3('0x1e4')](point){var x=point['x'];var y=point['y'];var p=new Point(x/this[mf_dgc_0x38f3('0xa0')]['scale'],y/this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x87')]);return new Point(p['x']+this[mf_dgc_0x38f3('0xa0')]['bounds']['x']-this['offset']['x'],p['y']+this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x86')]['y']-this['offset']['y']);}[mf_dgc_0x38f3('0x1e5')](element,position){var point=this[mf_dgc_0x38f3('0x1e4')](position);if(element instanceof AnchorPointBuilder)this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x1d0')]=new Command(mf_dgc_0x38f3('0x14c'),point,null,element);else this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x1d0')]=this[mf_dgc_0x38f3('0xa0')]['shapeBuilder'][mf_dgc_0x38f3('0x1e6')](point,element);this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x166')]();}[mf_dgc_0x38f3('0x1e7')](element){if(element&&this[mf_dgc_0x38f3('0xa0')]['dropCommand']!=null){this['canvas']['dropCommand']['execute'](this[mf_dgc_0x38f3('0xa0')]);this[mf_dgc_0x38f3('0x1e8')](this[mf_dgc_0x38f3('0xa0')]['dropCommand']);this[mf_dgc_0x38f3('0xa0')]['dropCommand']=null;this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x165')]=null;this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x166')]();this[mf_dgc_0x38f3('0x1e9')]['raiseEvent'](Events['shapeChanged'],EventArgs['Empty']);}}[mf_dgc_0x38f3('0x1da')](position,button,id){var point=this[mf_dgc_0x38f3('0x1e4')](position);this['controller']=this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x148')]['hitTest'](point,this['selectedElement']);if(!this[mf_dgc_0x38f3('0x1ea')])this['controller']=this[mf_dgc_0x38f3('0xa0')]['shapeBuilder'][mf_dgc_0x38f3('0x1a5')](point,this[mf_dgc_0x38f3('0x1cf')]);if(this[mf_dgc_0x38f3('0x1ea')]!=null)this[mf_dgc_0x38f3('0x1ea')][mf_dgc_0x38f3('0x1b0')](point);}async[mf_dgc_0x38f3('0x1db')](position,id){var point=this['clientToDoc'](position);var align=this[mf_dgc_0x38f3('0xa0')]['alignToGrid'];if(this[mf_dgc_0x38f3('0x1ea')]!=null){if(align)point=this[mf_dgc_0x38f3('0x1eb')](point);this[mf_dgc_0x38f3('0x1ea')][mf_dgc_0x38f3('0x1ec')](point);this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x166')]();}else{var pointedElement=this[mf_dgc_0x38f3('0xa0')]['shapeBuilder'][mf_dgc_0x38f3('0x1a1')](point,0xa);if(pointedElement!=null&&pointedElement!=this[mf_dgc_0x38f3('0x1cf')]){this[mf_dgc_0x38f3('0x1cf')]=pointedElement;this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x166')]();}}var p=point['newWithOffset'](this[mf_dgc_0x38f3('0xfa')]['x'],this[mf_dgc_0x38f3('0xfa')]['y']);this[mf_dgc_0x38f3('0x1ed')](p);}async[mf_dgc_0x38f3('0x1dc')](position,button,id){var point=this['clientToDoc'](position);var align=this['canvas'][mf_dgc_0x38f3('0x1ee')];if(this[mf_dgc_0x38f3('0x1ea')]!=null){if(align)point=this['alignPointToGrid'](point);this[mf_dgc_0x38f3('0x1ea')][mf_dgc_0x38f3('0x1b4')](point);if(this[mf_dgc_0x38f3('0x1ea')][mf_dgc_0x38f3('0x1b1')]){this[mf_dgc_0x38f3('0x1ea')][mf_dgc_0x38f3('0x1ae')][mf_dgc_0x38f3('0x145')](this);this[mf_dgc_0x38f3('0x1e8')](this['controller'][mf_dgc_0x38f3('0x1ae')]);}this[mf_dgc_0x38f3('0x1ea')]=null;this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x166')]();this['selectedElement']=this[mf_dgc_0x38f3('0x1cf')];this[mf_dgc_0x38f3('0x1e9')][mf_dgc_0x38f3('0x4e')](Events['shapeChanged'],EventArgs['Empty']);}else{this[mf_dgc_0x38f3('0x165')]=this[mf_dgc_0x38f3('0xa0')]['shapeBuilder'][mf_dgc_0x38f3('0x1a1')](point,0xa);this['canvas']['invalidate']();}}async[mf_dgc_0x38f3('0x1dd')](target,keyCode,recorded,value){if(this[mf_dgc_0x38f3('0x165')]){if(keyCode==0x2e||keyCode==0x7f||navigator[mf_dgc_0x38f3('0x1ef')]['toLowerCase']()[mf_dgc_0x38f3('0x15a')](mf_dgc_0x38f3('0x1f0'))>-0x1&&keyCode==0x8){this[mf_dgc_0x38f3('0x1f1')](this[mf_dgc_0x38f3('0x165')]);}}}[mf_dgc_0x38f3('0x1f1')](element){var command=new Command('RemoveElementCommand',null,null,element);command[mf_dgc_0x38f3('0x145')](this[mf_dgc_0x38f3('0xa0')]);this[mf_dgc_0x38f3('0x1e8')](command);this[mf_dgc_0x38f3('0x165')]=null;this['canvas'][mf_dgc_0x38f3('0x166')]();this[mf_dgc_0x38f3('0x1e9')]['raiseEvent'](Events['shapeChanged'],EventArgs[mf_dgc_0x38f3('0xa8')]);}['saveCommand'](command){this[mf_dgc_0x38f3('0x1d7')]['splice'](this['currentCommand']+0x1,this[mf_dgc_0x38f3('0x1d7')]['length']-this['currentCommand']-0x1);this[mf_dgc_0x38f3('0x1d7')][mf_dgc_0x38f3('0x11f')](command);this[mf_dgc_0x38f3('0x1d8')]++;}[mf_dgc_0x38f3('0x163')](){if(this[mf_dgc_0x38f3('0x1d8')]>=0x0){var command=this[mf_dgc_0x38f3('0x1d7')][this[mf_dgc_0x38f3('0x1d8')]--];this[mf_dgc_0x38f3('0x1f2')]=!![];command[mf_dgc_0x38f3('0x163')](this[mf_dgc_0x38f3('0xa0')]);this[mf_dgc_0x38f3('0x1f2')]=![];this['designer']['raiseEvent'](Events['shapeChanged'],EventArgs[mf_dgc_0x38f3('0xa8')]);}}[mf_dgc_0x38f3('0x167')](){if(this[mf_dgc_0x38f3('0x1d8')]<this[mf_dgc_0x38f3('0x1d7')][mf_dgc_0x38f3('0xc')]-0x1){var command=this[mf_dgc_0x38f3('0x1d7')][++this[mf_dgc_0x38f3('0x1d8')]];this[mf_dgc_0x38f3('0x1f2')]=!![];command[mf_dgc_0x38f3('0x167')](this[mf_dgc_0x38f3('0xa0')]);this[mf_dgc_0x38f3('0x1f2')]=![];this['designer'][mf_dgc_0x38f3('0x4e')](Events[mf_dgc_0x38f3('0x6')],EventArgs[mf_dgc_0x38f3('0xa8')]);}}[mf_dgc_0x38f3('0x1f3')](shape){var showTextArea=this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x148')]?this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x148')]['showTextArea']:![];this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x148')]=new ShapeBuilder(shape,this['offset']);this['canvas'][mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x19f')]=showTextArea;}['copyToClipboard'](){if(!this[mf_dgc_0x38f3('0x165')])return;window[mf_dgc_0x38f3('0x1f4')]=this['selectedElement'];}['pasteFromClipboard'](offsetX,offsetY){var element=window[mf_dgc_0x38f3('0x1f4')];if(element){var point=element['center'][mf_dgc_0x38f3('0x107')]();point[mf_dgc_0x38f3('0xfa')](offsetX,offsetY);var command;if(element instanceof FilledDecorationBuilder)command=new Command('AddFilledDecorationCommand',point,null,element);else command=new Command(mf_dgc_0x38f3('0x147'),point,null,element);command[mf_dgc_0x38f3('0x145')](this[mf_dgc_0x38f3('0xa0')]);this[mf_dgc_0x38f3('0x1e8')](command);}}[mf_dgc_0x38f3('0x1eb')](point){return new Point(Math[mf_dgc_0x38f3('0x1df')](point['x']/this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x1de')])*this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x1de')],Math[mf_dgc_0x38f3('0x1df')](point['y']/this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x1bd')])*this['canvas'][mf_dgc_0x38f3('0x1bd')]);}get[mf_dgc_0x38f3('0x165')](){return this['canvas'][mf_dgc_0x38f3('0x165')];}set[mf_dgc_0x38f3('0x165')](value){if(this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x165')]!=value){this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x165')]=value;this['designer'][mf_dgc_0x38f3('0x165')]=value;}}get['pointedElement'](){return this[mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x1cf')];}set[mf_dgc_0x38f3('0x1cf')](value){if(this['canvas'][mf_dgc_0x38f3('0x1cf')]!=value){this['canvas'][mf_dgc_0x38f3('0x1cf')]=value;}}static['create'](element,document){return Control[mf_dgc_0x38f3('0xf1')](ShapeView,element,document);}['connectedCallback'](){var shadow=this['attachShadow']({'mode':mf_dgc_0x38f3('0x56')});let div=document['createElement'](mf_dgc_0x38f3('0x8b'));div[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0xf6')]=this['style']['cssText'];this[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0xf6')]='';let canvas=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0xa0'));canvas['id']=this[mf_dgc_0x38f3('0xf7')]('id');div[mf_dgc_0x38f3('0x38')](canvas);shadow[mf_dgc_0x38f3('0x38')](div);this['removeAttribute']('id');var view=ShapeView[mf_dgc_0x38f3('0xf0')](canvas);view[mf_dgc_0x38f3('0x31')]=shadow;}}class ShapePalette extends NodeListView{constructor(element){super(element);this[mf_dgc_0x38f3('0x1f5')]=mf_dgc_0x38f3('0x1f6');this[mf_dgc_0x38f3('0x1f7')]=mf_dgc_0x38f3('0x1f8');this[mf_dgc_0x38f3('0x1f9')]=mf_dgc_0x38f3('0x1fa');this[mf_dgc_0x38f3('0x1fb')]=mf_dgc_0x38f3('0x1fc');this['iconSize']=null;this[mf_dgc_0x38f3('0x1fd')]=![];this[mf_dgc_0x38f3('0x1fe')]();}[mf_dgc_0x38f3('0x1fe')](){var diagram=new Diagram();var labelStyle=new Style();labelStyle[mf_dgc_0x38f3('0x189')]=this[mf_dgc_0x38f3('0x1fb')];labelStyle[mf_dgc_0x38f3('0x129')]=this[mf_dgc_0x38f3('0x1fb')];labelStyle[mf_dgc_0x38f3('0x1ff')]=mf_dgc_0x38f3('0x200');labelStyle[mf_dgc_0x38f3('0x201')]=0xd;labelStyle[mf_dgc_0x38f3('0x1bb')]=this[mf_dgc_0x38f3('0x1fb')];var labelBounds=new Rect(0x0,0x0,0x78,0x14);var nodeStyle=new Style();nodeStyle['brush']='#fff';nodeStyle[mf_dgc_0x38f3('0x129')]=mf_dgc_0x38f3('0x202');nodeStyle['backBrush']=mf_dgc_0x38f3('0x200');var nodeBounds=new Rect(0x0,0x0,0x64,0x28);var node=new ShapeNode(diagram);node[mf_dgc_0x38f3('0x86')]=labelBounds[mf_dgc_0x38f3('0x107')]();node['text']=this[mf_dgc_0x38f3('0x1f5')];node[mf_dgc_0x38f3('0x7e')]=labelStyle;this['addNode'](node,'',!![],!![]);var node=new ShapeNode(diagram);node[mf_dgc_0x38f3('0x86')]=nodeBounds['clone']();node[mf_dgc_0x38f3('0x203')]=Composite['fromBounds'](nodeBounds,mf_dgc_0x38f3('0x204'));node[mf_dgc_0x38f3('0x17d')]=Shapes[mf_dgc_0x38f3('0x205')]();node[mf_dgc_0x38f3('0x7e')]=nodeStyle;this[mf_dgc_0x38f3('0x206')](node);var node=new ShapeNode(diagram);node[mf_dgc_0x38f3('0x86')]=nodeBounds['clone']();node[mf_dgc_0x38f3('0x203')]=Composite[mf_dgc_0x38f3('0x13b')](nodeBounds,mf_dgc_0x38f3('0x140'));node[mf_dgc_0x38f3('0x17d')]=Shapes[mf_dgc_0x38f3('0x207')]();node[mf_dgc_0x38f3('0x7e')]=nodeStyle;this['addNode'](node);var node=new ShapeNode(diagram);node[mf_dgc_0x38f3('0x86')]=nodeBounds[mf_dgc_0x38f3('0x107')]();node[mf_dgc_0x38f3('0x203')]=Composite[mf_dgc_0x38f3('0x13b')](nodeBounds,'EllipseComposite');node['shape']=Shapes[mf_dgc_0x38f3('0x208')]();node[mf_dgc_0x38f3('0x7e')]=nodeStyle;this[mf_dgc_0x38f3('0x206')](node);var node=new ShapeNode(diagram);node[mf_dgc_0x38f3('0x86')]=labelBounds[mf_dgc_0x38f3('0x107')]();node['style']=labelStyle;node[mf_dgc_0x38f3('0x209')]=this[mf_dgc_0x38f3('0x1f7')];this['addNode'](node,'',!![],!![]);var node=new ShapeNode(diagram);node[mf_dgc_0x38f3('0x86')]=nodeBounds['clone']();node[mf_dgc_0x38f3('0x203')]=LineBuilder[mf_dgc_0x38f3('0x12a')]();node[mf_dgc_0x38f3('0x17d')]=node['tag'][mf_dgc_0x38f3('0x10e')]();node[mf_dgc_0x38f3('0x7e')]=nodeStyle;this['addNode'](node);var node=new ShapeNode(diagram);node[mf_dgc_0x38f3('0x86')]=nodeBounds[mf_dgc_0x38f3('0x107')]();node['tag']=BezierBuilder['default']();node[mf_dgc_0x38f3('0x17d')]=node[mf_dgc_0x38f3('0x203')]['toShape']();node[mf_dgc_0x38f3('0x7e')]=nodeStyle;this['addNode'](node);var node=new ShapeNode(diagram);node['bounds']=nodeBounds['clone']();node[mf_dgc_0x38f3('0x203')]=ArcBuilder[mf_dgc_0x38f3('0x12a')]();node[mf_dgc_0x38f3('0x17d')]=node[mf_dgc_0x38f3('0x203')][mf_dgc_0x38f3('0x10e')]();node[mf_dgc_0x38f3('0x7e')]=nodeStyle;this['addNode'](node);var node=new ShapeNode(diagram);node[mf_dgc_0x38f3('0x86')]=nodeBounds[mf_dgc_0x38f3('0x107')]();node[mf_dgc_0x38f3('0x203')]=RoundRectBuilder[mf_dgc_0x38f3('0x12a')]();node[mf_dgc_0x38f3('0x17d')]=node[mf_dgc_0x38f3('0x203')][mf_dgc_0x38f3('0x10e')]();node[mf_dgc_0x38f3('0x7e')]=nodeStyle;this['addNode'](node);var node=new ShapeNode(diagram);node[mf_dgc_0x38f3('0x86')]=labelBounds['clone']();node[mf_dgc_0x38f3('0x7e')]=labelStyle;node['text']=this['anchorPointsLabel'];this[mf_dgc_0x38f3('0x206')](node,'',!![],!![]);nodeBounds=new Rect(0x0,0x0,0x28,0x28);var node=new ShapeNode(diagram);node['bounds']=nodeBounds['clone']();node[mf_dgc_0x38f3('0x203')]=AnchorPointBuilder[mf_dgc_0x38f3('0x12a')](AnchorType['In']);node['shape']=node['tag']['toShape']();node[mf_dgc_0x38f3('0x7e')]=nodeStyle;this[mf_dgc_0x38f3('0x206')](node);var node=new ShapeNode(diagram);node[mf_dgc_0x38f3('0x86')]=nodeBounds[mf_dgc_0x38f3('0x107')]();node[mf_dgc_0x38f3('0x203')]=AnchorPointBuilder[mf_dgc_0x38f3('0x12a')](AnchorType['Out']);node[mf_dgc_0x38f3('0x17d')]=node[mf_dgc_0x38f3('0x203')]['toShape']();node['style']=nodeStyle;this[mf_dgc_0x38f3('0x206')](node);var node=new ShapeNode(diagram);node['bounds']=nodeBounds[mf_dgc_0x38f3('0x107')]();node[mf_dgc_0x38f3('0x203')]=AnchorPointBuilder[mf_dgc_0x38f3('0x12a')](AnchorType[mf_dgc_0x38f3('0x172')]);node[mf_dgc_0x38f3('0x17d')]=node[mf_dgc_0x38f3('0x203')]['toShape']();node[mf_dgc_0x38f3('0x7e')]=nodeStyle;this['addNode'](node);}['onMouseMove'](e){super[mf_dgc_0x38f3('0x1ec')](e);if(this['draggedNode']!=null){var target=this[mf_dgc_0x38f3('0x20a')](e);if(target){var cursor=DomUtils['getCursorPos'](e,target[mf_dgc_0x38f3('0x32')]);target[mf_dgc_0x38f3('0x1e5')](this[mf_dgc_0x38f3('0x20b')][mf_dgc_0x38f3('0x203')][mf_dgc_0x38f3('0x107')](),cursor);target[mf_dgc_0x38f3('0x32')]['parentNode'][mf_dgc_0x38f3('0x7e')]['cursor']=mf_dgc_0x38f3('0x20c');}}}async[mf_dgc_0x38f3('0x20d')](e){if(this['draggedNode']==null){return;}var target=this['targetAsDiagramView'](e);if(target!=null){if(!target[mf_dgc_0x38f3('0x20e')])return;var cursor=DomUtils[mf_dgc_0x38f3('0x20f')](e,target[mf_dgc_0x38f3('0x32')]);target['onElementDrop'](this[mf_dgc_0x38f3('0x20b')]['tag'],cursor);target[mf_dgc_0x38f3('0x210')]();delete window[mf_dgc_0x38f3('0x211')];target['diagram'][mf_dgc_0x38f3('0x166')]();target['element']['parentNode'][mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x212')]=mf_dgc_0x38f3('0x12a');}document[mf_dgc_0x38f3('0x213')][mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x212')]='default';this[mf_dgc_0x38f3('0x214')]=null;this[mf_dgc_0x38f3('0x215')]();}['targetAsDiagramView'](e){var etarget=e[mf_dgc_0x38f3('0xc1')];if(e['composed'])etarget=e[mf_dgc_0x38f3('0x216')]()[0x0];if(etarget['nodeType']===0x1){if(etarget['id']){var target=Control[mf_dgc_0x38f3('0xf3')](etarget['id']);if(target!=null){if(ControlUtils[mf_dgc_0x38f3('0x217')](ShapeView,target)){return target;}}}}return null;}static['create'](element){return Control[mf_dgc_0x38f3('0xf1')](ShapePalette,element);}}class ShapeDesigner extends Control{constructor(element){super(element);}[mf_dgc_0x38f3('0x28')](){super[mf_dgc_0x38f3('0x28')]();this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x7e')]['display']=mf_dgc_0x38f3('0x7a');this['element'][mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x7b')]=mf_dgc_0x38f3('0x218');this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x219')]='relative';var bounds=DomUtils['getBounds'](this[mf_dgc_0x38f3('0x32')],this[mf_dgc_0x38f3('0x32')]['parentNode']);var div=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x8b'));div[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x77')]=bounds['height']+'px';div['style'][mf_dgc_0x38f3('0x21a')]=mf_dgc_0x38f3('0x92');var canvasElement=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0xa0'));canvasElement['id']=this[mf_dgc_0x38f3('0x32')]['id']+mf_dgc_0x38f3('0x21b');canvasElement[mf_dgc_0x38f3('0x77')]=bounds[mf_dgc_0x38f3('0x77')];div['appendChild'](canvasElement);this[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x38')](div);this['view']=ShapeView[mf_dgc_0x38f3('0xf0')](canvasElement);this['view']['designer']=this;var div=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x8b'));div[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x83')]=mf_dgc_0x38f3('0x21c');div[mf_dgc_0x38f3('0x7e')]['overflowX']=mf_dgc_0x38f3('0x92');div['style'][mf_dgc_0x38f3('0x96')]='auto';div[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x77')]=bounds[mf_dgc_0x38f3('0x77')]+'px';var canvasElement=document[mf_dgc_0x38f3('0x5d')]('canvas');canvasElement[mf_dgc_0x38f3('0x77')]=bounds[mf_dgc_0x38f3('0x77')];canvasElement[mf_dgc_0x38f3('0x83')]=mf_dgc_0x38f3('0x21d');div[mf_dgc_0x38f3('0x38')](canvasElement);this[mf_dgc_0x38f3('0x32')]['appendChild'](div);this[mf_dgc_0x38f3('0x21e')]=ShapePalette['create'](canvasElement);var window=new Window();window[mf_dgc_0x38f3('0x21f')]=![];window[mf_dgc_0x38f3('0x220')]=![];window['allowMinimize']=![];window[mf_dgc_0x38f3('0x221')]=![];window['title']='Properties';window[mf_dgc_0x38f3('0x222')]=this;window[mf_dgc_0x38f3('0x223')]=this[mf_dgc_0x38f3('0x224')]();this['element']['appendChild'](window[mf_dgc_0x38f3('0x37')]());window['attach']();window[mf_dgc_0x38f3('0x225')]();window[mf_dgc_0x38f3('0x13')]=![];this['propertyPanel']=window;this['showShapeProperties']=!![];}[mf_dgc_0x38f3('0x3a')](){this[mf_dgc_0x38f3('0x226')][mf_dgc_0x38f3('0x3a')]();this[mf_dgc_0x38f3('0x21e')][mf_dgc_0x38f3('0x3a')]();this[mf_dgc_0x38f3('0x227')][mf_dgc_0x38f3('0x3a')]();super['dispose']();}['getContent'](){return this['element'];}['generatePropertyPanelTemplate'](){var t=document[mf_dgc_0x38f3('0x5d')]('div');t[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x79')]=mf_dgc_0x38f3('0x228');t['style'][mf_dgc_0x38f3('0x229')]=mf_dgc_0x38f3('0x22a');t[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x22b')]='stretch';t[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x22c')]=mf_dgc_0x38f3('0x22d');t['style'][mf_dgc_0x38f3('0x22e')]=mf_dgc_0x38f3('0x22d');var l=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x22f'));l['innerText']=mf_dgc_0x38f3('0x230');t['appendChild'](l);var c=document['createElement']('input');c['id']=this['element']['id']+mf_dgc_0x38f3('0x231');c[mf_dgc_0x38f3('0x13c')]=mf_dgc_0x38f3('0x127');c['style']['width']=mf_dgc_0x38f3('0x91');t[mf_dgc_0x38f3('0x38')](c);var l=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x22f'));l['id']=this[mf_dgc_0x38f3('0x32')]['id']+'l_strokethickness';l[mf_dgc_0x38f3('0x232')]='Stroke\x20Thickness';t['appendChild'](l);var c=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x233'));c['id']=this[mf_dgc_0x38f3('0x32')]['id']+mf_dgc_0x38f3('0x234');c[mf_dgc_0x38f3('0x13c')]=mf_dgc_0x38f3('0x235');c[mf_dgc_0x38f3('0x84')]=-0x1;c['max']=0xa;c['onchange']=this[mf_dgc_0x38f3('0x236')][mf_dgc_0x38f3('0x67')](this);t['appendChild'](c);var l=document['createElement'](mf_dgc_0x38f3('0x22f'));l['id']=this[mf_dgc_0x38f3('0x32')]['id']+mf_dgc_0x38f3('0x237');l[mf_dgc_0x38f3('0x232')]=mf_dgc_0x38f3('0x238');t['appendChild'](l);var c=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x239'));c['id']=this['element']['id']+'p_strokedashstyle';Object[mf_dgc_0x38f3('0x23a')](DashStyle)['forEach'](i=>{if(i[0x1]instanceof Function);else{var option=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x23b'));option[mf_dgc_0x38f3('0xd0')]=i[0x1];option[mf_dgc_0x38f3('0x209')]=i[0x0];c[mf_dgc_0x38f3('0x38')](option);}});c[mf_dgc_0x38f3('0x23c')]=this[mf_dgc_0x38f3('0x236')][mf_dgc_0x38f3('0x67')](this);t['appendChild'](c);var l=document['createElement'](mf_dgc_0x38f3('0x22f'));l['id']=this['element']['id']+mf_dgc_0x38f3('0x23d');l['innerText']=mf_dgc_0x38f3('0x23e');t[mf_dgc_0x38f3('0x38')](l);var c=document['createElement']('input');c['id']=this[mf_dgc_0x38f3('0x32')]['id']+mf_dgc_0x38f3('0x23f');c[mf_dgc_0x38f3('0x13c')]='color';c[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x83')]=mf_dgc_0x38f3('0x91');c[mf_dgc_0x38f3('0x23c')]=this['setProp']['bind'](this);t[mf_dgc_0x38f3('0x38')](c);var l=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x22f'));l['id']=this[mf_dgc_0x38f3('0x32')]['id']+mf_dgc_0x38f3('0x240');l[mf_dgc_0x38f3('0x232')]=mf_dgc_0x38f3('0x241');t['appendChild'](l);var c=document[mf_dgc_0x38f3('0x5d')]('select');c['id']=this[mf_dgc_0x38f3('0x32')]['id']+mf_dgc_0x38f3('0x242');Object[mf_dgc_0x38f3('0x23a')](MarkStyle)['forEach'](i=>{if(i[0x1]instanceof Function);else{var option=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x23b'));option[mf_dgc_0x38f3('0xd0')]=i[0x1];option[mf_dgc_0x38f3('0x209')]=i[0x0];c[mf_dgc_0x38f3('0x38')](option);}});c[mf_dgc_0x38f3('0x23c')]=this[mf_dgc_0x38f3('0x236')][mf_dgc_0x38f3('0x67')](this);t[mf_dgc_0x38f3('0x38')](c);var l=document['createElement'](mf_dgc_0x38f3('0x22f'));l['id']=this['element']['id']+mf_dgc_0x38f3('0x243');l[mf_dgc_0x38f3('0x232')]='Size';t[mf_dgc_0x38f3('0x38')](l);var c=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x233'));c['id']=this[mf_dgc_0x38f3('0x32')]['id']+mf_dgc_0x38f3('0x244');c[mf_dgc_0x38f3('0x13c')]='number';c[mf_dgc_0x38f3('0x84')]=0x1;c[mf_dgc_0x38f3('0xe4')]=0x14;c[mf_dgc_0x38f3('0x23c')]=this['setProp'][mf_dgc_0x38f3('0x67')](this);t['appendChild'](c);return t[mf_dgc_0x38f3('0x245')];}['rebindPropertyPanel'](element){if(!element)return;var c=this[mf_dgc_0x38f3('0x227')]['element'][mf_dgc_0x38f3('0x9b')]('#'+this['element']['id']+mf_dgc_0x38f3('0x231'));c[mf_dgc_0x38f3('0xd0')]=element[mf_dgc_0x38f3('0x100')];c[mf_dgc_0x38f3('0x23c')]=this[mf_dgc_0x38f3('0x236')]['bind'](this);var c=this[mf_dgc_0x38f3('0x227')]['element']['querySelector']('#'+this[mf_dgc_0x38f3('0x32')]['id']+mf_dgc_0x38f3('0x234'));var l=this[mf_dgc_0x38f3('0x227')][mf_dgc_0x38f3('0x32')]['querySelector']('#'+this[mf_dgc_0x38f3('0x32')]['id']+mf_dgc_0x38f3('0x246'));if(element instanceof AnchorPointBuilder){c['style'][mf_dgc_0x38f3('0x79')]='none';l[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x79')]=mf_dgc_0x38f3('0x247');}else{c[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x79')]=mf_dgc_0x38f3('0x248');l[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x79')]='block';c[mf_dgc_0x38f3('0xd0')]=element[mf_dgc_0x38f3('0x101')]||-0x1;c[mf_dgc_0x38f3('0x23c')]=this[mf_dgc_0x38f3('0x236')][mf_dgc_0x38f3('0x67')](this);}var c=this[mf_dgc_0x38f3('0x227')][mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x9b')]('#'+this[mf_dgc_0x38f3('0x32')]['id']+'p_strokedashstyle');var l=this[mf_dgc_0x38f3('0x227')][mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x9b')]('#'+this[mf_dgc_0x38f3('0x32')]['id']+mf_dgc_0x38f3('0x237'));if(element instanceof AnchorPointBuilder){c[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x79')]=mf_dgc_0x38f3('0x247');l[mf_dgc_0x38f3('0x7e')]['display']=mf_dgc_0x38f3('0x247');}else{c[mf_dgc_0x38f3('0x7e')]['display']='block';l[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x79')]=mf_dgc_0x38f3('0x248');c['value']=element['strokeDashStyle'];c[mf_dgc_0x38f3('0x23c')]=this[mf_dgc_0x38f3('0x236')][mf_dgc_0x38f3('0x67')](this);}var c=this[mf_dgc_0x38f3('0x227')]['element'][mf_dgc_0x38f3('0x9b')]('#'+this[mf_dgc_0x38f3('0x32')]['id']+mf_dgc_0x38f3('0x23f'));var l=this[mf_dgc_0x38f3('0x227')][mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x9b')]('#'+this[mf_dgc_0x38f3('0x32')]['id']+'l_fillcolor');if(element instanceof FilledDecorationBuilder){c['style'][mf_dgc_0x38f3('0x79')]=mf_dgc_0x38f3('0x248');l[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x79')]=mf_dgc_0x38f3('0x248');c[mf_dgc_0x38f3('0xd0')]=element['fillColor'];c[mf_dgc_0x38f3('0x23c')]=this[mf_dgc_0x38f3('0x236')][mf_dgc_0x38f3('0x67')](this);}else{c['style']['display']=mf_dgc_0x38f3('0x247');l['style']['display']='none';}var c=this['propertyPanel'][mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x9b')]('#'+this[mf_dgc_0x38f3('0x32')]['id']+mf_dgc_0x38f3('0x242'));var l=this[mf_dgc_0x38f3('0x227')][mf_dgc_0x38f3('0x32')]['querySelector']('#'+this[mf_dgc_0x38f3('0x32')]['id']+mf_dgc_0x38f3('0x240'));if(element instanceof AnchorPointBuilder){c[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x79')]='block';l['style'][mf_dgc_0x38f3('0x79')]=mf_dgc_0x38f3('0x248');c['value']=element['style'];c[mf_dgc_0x38f3('0x23c')]=this[mf_dgc_0x38f3('0x236')][mf_dgc_0x38f3('0x67')](this);}else{c['style'][mf_dgc_0x38f3('0x79')]=mf_dgc_0x38f3('0x247');l[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x79')]=mf_dgc_0x38f3('0x247');}var c=this['propertyPanel'][mf_dgc_0x38f3('0x32')]['querySelector']('#'+this[mf_dgc_0x38f3('0x32')]['id']+mf_dgc_0x38f3('0x244'));var l=this[mf_dgc_0x38f3('0x227')][mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x9b')]('#'+this[mf_dgc_0x38f3('0x32')]['id']+mf_dgc_0x38f3('0x243'));if(element instanceof AnchorPointBuilder){c[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x79')]=mf_dgc_0x38f3('0x248');l[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x79')]=mf_dgc_0x38f3('0x248');c['value']=element['size'];c['onchange']=this[mf_dgc_0x38f3('0x236')][mf_dgc_0x38f3('0x67')](this);}else{c[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0x79')]=mf_dgc_0x38f3('0x247');l['style']['display']=mf_dgc_0x38f3('0x247');}}[mf_dgc_0x38f3('0x236')](e){if(!this['selectedElement'])return;if(e[mf_dgc_0x38f3('0xc1')]['id'][mf_dgc_0x38f3('0x15a')]('strokecolor')>-0x1)this[mf_dgc_0x38f3('0x165')][mf_dgc_0x38f3('0x100')]=e[mf_dgc_0x38f3('0xc1')][mf_dgc_0x38f3('0xd0')];else if(e[mf_dgc_0x38f3('0xc1')]['id']['indexOf']('strokethickness')>-0x1)this[mf_dgc_0x38f3('0x165')]['strokeThickness']=+e[mf_dgc_0x38f3('0xc1')][mf_dgc_0x38f3('0xd0')]==-0x1?undefined:+e[mf_dgc_0x38f3('0xc1')][mf_dgc_0x38f3('0xd0')];else if(e['target']['id']['indexOf'](mf_dgc_0x38f3('0x249'))>-0x1)this[mf_dgc_0x38f3('0x165')][mf_dgc_0x38f3('0x102')]=+e[mf_dgc_0x38f3('0xc1')]['value'];else if(e[mf_dgc_0x38f3('0xc1')]['id'][mf_dgc_0x38f3('0x15a')](mf_dgc_0x38f3('0x24a'))>-0x1)this['selectedElement'][mf_dgc_0x38f3('0x168')]=e[mf_dgc_0x38f3('0xc1')][mf_dgc_0x38f3('0xd0')];else if(e[mf_dgc_0x38f3('0xc1')]['id'][mf_dgc_0x38f3('0x15a')](mf_dgc_0x38f3('0x24b'))>-0x1)this[mf_dgc_0x38f3('0x165')]['style']=+e['target'][mf_dgc_0x38f3('0xd0')];else if(e[mf_dgc_0x38f3('0xc1')]['id'][mf_dgc_0x38f3('0x15a')](mf_dgc_0x38f3('0x24c'))>-0x1)this[mf_dgc_0x38f3('0x165')][mf_dgc_0x38f3('0x176')]=+e[mf_dgc_0x38f3('0xc1')]['value'];this[mf_dgc_0x38f3('0x226')][mf_dgc_0x38f3('0xa0')]['invalidate']();this[mf_dgc_0x38f3('0x4e')](Events[mf_dgc_0x38f3('0x6')],EventArgs[mf_dgc_0x38f3('0xa8')]);}[mf_dgc_0x38f3('0x1f3')](shape){this[mf_dgc_0x38f3('0x165')]=null;this[mf_dgc_0x38f3('0x226')][mf_dgc_0x38f3('0x1f3')](shape);this[mf_dgc_0x38f3('0x4e')](Events[mf_dgc_0x38f3('0x6')],EventArgs[mf_dgc_0x38f3('0xa8')]);}[mf_dgc_0x38f3('0x24d')](shapeId){if(this[mf_dgc_0x38f3('0x226')][mf_dgc_0x38f3('0xa0')]==null)return null;return this[mf_dgc_0x38f3('0x226')][mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x24d')](shapeId);}[mf_dgc_0x38f3('0x163')](){this[mf_dgc_0x38f3('0x226')][mf_dgc_0x38f3('0x163')]();}[mf_dgc_0x38f3('0x167')](){this[mf_dgc_0x38f3('0x226')]['redo']();}['removeElement'](element){this[mf_dgc_0x38f3('0x226')][mf_dgc_0x38f3('0x1f1')](element);}[mf_dgc_0x38f3('0x24e')](){this[mf_dgc_0x38f3('0x226')][mf_dgc_0x38f3('0x24e')]();}[mf_dgc_0x38f3('0x24f')](offsetX,offsetY){this['view'][mf_dgc_0x38f3('0x24f')](offsetX,offsetY);}[mf_dgc_0x38f3('0x250')](){this[mf_dgc_0x38f3('0x226')][mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x166')]();this[mf_dgc_0x38f3('0x251')](this[mf_dgc_0x38f3('0x165')]);}get[mf_dgc_0x38f3('0x165')](){return this[mf_dgc_0x38f3('0x226')]['canvas'][mf_dgc_0x38f3('0x165')];}set[mf_dgc_0x38f3('0x165')](value){if(this['view'][mf_dgc_0x38f3('0x165')]!=value){this[mf_dgc_0x38f3('0x226')][mf_dgc_0x38f3('0x165')]=value;}if(value!=null&&!value[mf_dgc_0x38f3('0x17a')]&&!(value instanceof TextAreaBuilder)){this[mf_dgc_0x38f3('0x251')](value);if(this['showShapeProperties']){this[mf_dgc_0x38f3('0x227')][mf_dgc_0x38f3('0x13')]=!![];this[mf_dgc_0x38f3('0x227')][mf_dgc_0x38f3('0x225')]();}}else this[mf_dgc_0x38f3('0x227')]['visible']=![];}get['showShapeProperties'](){return this[mf_dgc_0x38f3('0x252')];}set[mf_dgc_0x38f3('0x253')](value){if(this['_showShapeProperties']!=value){this[mf_dgc_0x38f3('0x252')]=value;}}get[mf_dgc_0x38f3('0x19f')](){return this[mf_dgc_0x38f3('0x226')]['canvas'][mf_dgc_0x38f3('0x148')]['showTextArea'];}set[mf_dgc_0x38f3('0x19f')](value){this[mf_dgc_0x38f3('0x226')][mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x148')][mf_dgc_0x38f3('0x19f')]=value;if(!value){if(this[mf_dgc_0x38f3('0x165')]&&this[mf_dgc_0x38f3('0x165')][mf_dgc_0x38f3('0x17a')])this[mf_dgc_0x38f3('0x165')]=null;}this[mf_dgc_0x38f3('0x226')]['canvas'][mf_dgc_0x38f3('0x166')]();}get[mf_dgc_0x38f3('0x1f5')](){return this[mf_dgc_0x38f3('0x21e')][mf_dgc_0x38f3('0x1f5')];}set['templatesLabel'](value){this['palette'][mf_dgc_0x38f3('0x1f5')]=value;}get['primitivesLabel'](){return this['palette'][mf_dgc_0x38f3('0x1f7')];}set[mf_dgc_0x38f3('0x1f7')](value){this[mf_dgc_0x38f3('0x21e')][mf_dgc_0x38f3('0x1f7')]=value;}get[mf_dgc_0x38f3('0x1f9')](){return this['palette'][mf_dgc_0x38f3('0x1f9')];}set[mf_dgc_0x38f3('0x1f9')](value){this[mf_dgc_0x38f3('0x21e')][mf_dgc_0x38f3('0x1f9')]=value;}get[mf_dgc_0x38f3('0x1ba')](){return this[mf_dgc_0x38f3('0x226')][mf_dgc_0x38f3('0xa0')]['showGrid'];}set[mf_dgc_0x38f3('0x1ba')](value){this[mf_dgc_0x38f3('0x226')][mf_dgc_0x38f3('0xa0')]['showGrid']=value;}get[mf_dgc_0x38f3('0x1ee')](){return this['view'][mf_dgc_0x38f3('0xa0')]['alignToGrid'];}set['alignToGrid'](value){this['view']['canvas']['alignToGrid']=value;}get[mf_dgc_0x38f3('0x1de')](){return this[mf_dgc_0x38f3('0x226')]['canvas'][mf_dgc_0x38f3('0x1de')];}set[mf_dgc_0x38f3('0x1de')](value){this[mf_dgc_0x38f3('0x226')][mf_dgc_0x38f3('0xa0')][mf_dgc_0x38f3('0x1de')]=value;}get['gridSizeY'](){return this[mf_dgc_0x38f3('0x226')]['canvas']['gridSizeY'];}set[mf_dgc_0x38f3('0x1bd')](value){this['view']['canvas'][mf_dgc_0x38f3('0x1bd')]=value;}get[mf_dgc_0x38f3('0x48')](){return this[mf_dgc_0x38f3('0xd7')];}set[mf_dgc_0x38f3('0x48')](value){if(this[mf_dgc_0x38f3('0xd7')]!=value){this['_theme']=value;if(this[mf_dgc_0x38f3('0x31')]){var links=this[mf_dgc_0x38f3('0x31')][mf_dgc_0x38f3('0xd8')](mf_dgc_0x38f3('0xd9'));[...links][mf_dgc_0x38f3('0xda')](l=>l['parentNode'][mf_dgc_0x38f3('0x254')](l));var link=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0xd9'));link[mf_dgc_0x38f3('0x255')]=this[mf_dgc_0x38f3('0xdb')]+this['_theme']['id']+mf_dgc_0x38f3('0xdc');link[mf_dgc_0x38f3('0xdd')]=mf_dgc_0x38f3('0xde');this[mf_dgc_0x38f3('0x31')][mf_dgc_0x38f3('0x38')](link);}this[mf_dgc_0x38f3('0x227')]['theme']=value;}}get['themesPath'](){return this['_themesPath']||'';}set['themesPath'](value){if(this[mf_dgc_0x38f3('0xdf')]!=value){this[mf_dgc_0x38f3('0xdf')]=value;}}get[mf_dgc_0x38f3('0x6')](){if(!this[mf_dgc_0x38f3('0x256')])this['_shapeChanged']=new EventDispatcher();return this['_shapeChanged'];}static[mf_dgc_0x38f3('0xf0')](element){return Control[mf_dgc_0x38f3('0xf1')](ShapeDesigner,element);}[mf_dgc_0x38f3('0x257')](){var shadow=this[mf_dgc_0x38f3('0xf4')]({'mode':mf_dgc_0x38f3('0x56')});let div=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x8b'));div[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0xf6')]=this[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0xf6')];this[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0xf6')]='';shadow[mf_dgc_0x38f3('0x38')](div);this[mf_dgc_0x38f3('0xf8')]('id');var view=ShapeDesigner['create'](div);view[mf_dgc_0x38f3('0x31')]=shadow;}}class Palette extends Accordion{constructor(element){super(element);this['_measureUnit']=GraphicsUnit['Millimeter'];this['_columns']=0x1;this[mf_dgc_0x38f3('0x258')]=LabelPosition[mf_dgc_0x38f3('0x259')];this[mf_dgc_0x38f3('0x25a')]=0x1;this['_iconSize']=new Size(0x6,0x6);this[mf_dgc_0x38f3('0x25b')]=new Size(0x18,0x18);this[mf_dgc_0x38f3('0x25c')]=mf_dgc_0x38f3('0x17f');this[mf_dgc_0x38f3('0x25d')]=new Font(mf_dgc_0x38f3('0x25e'),0x4);this['_controls']=new Map();this[mf_dgc_0x38f3('0x25f')]=(sender,args)=>this[mf_dgc_0x38f3('0x260')](sender,args);this['updateSizeDelegate']=(sender,args)=>this['onUpdateSize'](sender,args);}[mf_dgc_0x38f3('0x3a')](){this[mf_dgc_0x38f3('0x24')]['forEach'](item=>{item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x262')][mf_dgc_0x38f3('0x40')](this[mf_dgc_0x38f3('0x263')]);item['control']['dispose']();});super[mf_dgc_0x38f3('0x3a')]();}['fromJson'](json){this['clearAll']();var obj=Control['fromJson'](json);if(obj[mf_dgc_0x38f3('0x264')]){obj[mf_dgc_0x38f3('0x264')][mf_dgc_0x38f3('0xda')](category=>{var c=this['addCategory'](category[mf_dgc_0x38f3('0xab')],category[mf_dgc_0x38f3('0x265')]);c[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x266')](category);});}this[mf_dgc_0x38f3('0x267')]=obj[mf_dgc_0x38f3('0x267')];this[mf_dgc_0x38f3('0x268')]=obj['labelPosition'];if(obj[mf_dgc_0x38f3('0x269')]!=null){if(obj[mf_dgc_0x38f3('0x269')][mf_dgc_0x38f3('0x83')]==0x0&&obj[mf_dgc_0x38f3('0x269')][mf_dgc_0x38f3('0x77')]==0x0)this['iconSize']=null;else this[mf_dgc_0x38f3('0x269')]=Size['copy'](obj[mf_dgc_0x38f3('0x269')]);}if(obj[mf_dgc_0x38f3('0x26a')]!=null){if(obj[mf_dgc_0x38f3('0x26a')][mf_dgc_0x38f3('0x83')]==0x0&&obj['newInstanceSize'][mf_dgc_0x38f3('0x77')]==0x0)this[mf_dgc_0x38f3('0x26a')]=null;else this[mf_dgc_0x38f3('0x26a')]=Size[mf_dgc_0x38f3('0x26b')](obj['newInstanceSize']);}this[mf_dgc_0x38f3('0x22c')]=obj[mf_dgc_0x38f3('0x22c')];this[mf_dgc_0x38f3('0xb6')]=obj[mf_dgc_0x38f3('0xb6')];this[mf_dgc_0x38f3('0xa1')]=obj[mf_dgc_0x38f3('0xa1')];if(obj[mf_dgc_0x38f3('0x26c')]!==undefined)this[mf_dgc_0x38f3('0x26c')]=obj[mf_dgc_0x38f3('0x26c')];if(obj[mf_dgc_0x38f3('0x1ff')]!==undefined)this[mf_dgc_0x38f3('0x1ff')]=obj['textColor'];if(obj[mf_dgc_0x38f3('0x26d')])this['captionFont']=Font[mf_dgc_0x38f3('0x26b')](obj[mf_dgc_0x38f3('0x26d')]);if(obj['orientation']!==undefined)this[mf_dgc_0x38f3('0x26e')]=obj[mf_dgc_0x38f3('0x26e')];if(obj[mf_dgc_0x38f3('0x1c7')]!==undefined)this['minVisibleFontSize']=obj[mf_dgc_0x38f3('0x1c7')];this['prepareScriptEvent'](mf_dgc_0x248fdb[mf_dgc_0x38f3('0x26f')],obj[mf_dgc_0x38f3('0x270')]);this['prepareScriptEvent'](mf_dgc_0x248fdb['nodeSelected'],obj[mf_dgc_0x38f3('0x271')]);this[mf_dgc_0x38f3('0x4f')](mf_dgc_0x248fdb[mf_dgc_0x38f3('0x272')],obj['linkSelectedScript']);this[mf_dgc_0x38f3('0x4f')](mf_dgc_0x248fdb[mf_dgc_0x38f3('0x273')],obj['shapeLibraryLoadedScript']);this[mf_dgc_0x38f3('0x274')]();this[mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0xda')](item=>item[mf_dgc_0x38f3('0x261')]['updateLayout']());if(obj[mf_dgc_0x38f3('0x275')]){var expandedItems=this[mf_dgc_0x38f3('0x24')]['where'](item=>obj['expandedItems'][mf_dgc_0x38f3('0x15a')](item[mf_dgc_0x38f3('0x276')])>-0x1)['items']();this[mf_dgc_0x38f3('0x277')](expandedItems);}}[mf_dgc_0x38f3('0x41')](){var json={'id':this[mf_dgc_0x38f3('0x32')]['id'],'columns':this[mf_dgc_0x38f3('0x267')],'labelPosition':this[mf_dgc_0x38f3('0x268')],'iconSize':this[mf_dgc_0x38f3('0x269')]==null?new Size(0x0,0x0)[mf_dgc_0x38f3('0x41')]():this[mf_dgc_0x38f3('0x269')]['toJson'](),'newInstanceSize':this['newInstanceSize']==null?new Size(0x0,0x0)[mf_dgc_0x38f3('0x41')]():this[mf_dgc_0x38f3('0x26a')][mf_dgc_0x38f3('0x41')](),'backColor':this[mf_dgc_0x38f3('0x26c')],'textColor':this[mf_dgc_0x38f3('0x1ff')],'enabled':this[mf_dgc_0x38f3('0xb6')],'measureUnit':this[mf_dgc_0x38f3('0xa1')],'padding':this[mf_dgc_0x38f3('0x22c')],'orientation':this['orientation'],'minVisibleFontSize':this['minVisibleFontSize']};if(this['captionFont'])json[mf_dgc_0x38f3('0x26d')]=this[mf_dgc_0x38f3('0x26d')][mf_dgc_0x38f3('0x41')]();json['categories']=[];this['items'][mf_dgc_0x38f3('0xda')](category=>{var c={'title':category[mf_dgc_0x38f3('0xab')],'imageLocation':category[mf_dgc_0x38f3('0xad')],'items':category[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x278')](),'captions':category[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x279')][mf_dgc_0x38f3('0x27a')](caption=>caption[mf_dgc_0x38f3('0x209')])};json[mf_dgc_0x38f3('0x264')][mf_dgc_0x38f3('0x11f')](c);});json[mf_dgc_0x38f3('0x275')]=this[mf_dgc_0x38f3('0x27b')];return Control[mf_dgc_0x38f3('0x41')](json);}[mf_dgc_0x38f3('0x27c')](item){super[mf_dgc_0x38f3('0x27c')](item);var element=item[mf_dgc_0x38f3('0x32')][mf_dgc_0x38f3('0x9b')](mf_dgc_0x38f3('0xa0'));var control=ItemListView['create'](element);control[mf_dgc_0x38f3('0x27d')][mf_dgc_0x38f3('0x1a')](this[mf_dgc_0x38f3('0x25f')]);control['linkSelected'][mf_dgc_0x38f3('0x1a')](this[mf_dgc_0x38f3('0x25f')]);control[mf_dgc_0x38f3('0x262')][mf_dgc_0x38f3('0x1a')](this[mf_dgc_0x38f3('0x263')]);item[mf_dgc_0x38f3('0x261')]=control;item['control'][mf_dgc_0x38f3('0xa1')]=this[mf_dgc_0x38f3('0xa1')];item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x267')]=this[mf_dgc_0x38f3('0x267')];item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x268')]=this['labelPosition'];item['control'][mf_dgc_0x38f3('0x269')]=this['iconSize'];item['control']['newInstanceSize']=this[mf_dgc_0x38f3('0x26a')];item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x22c')]=this[mf_dgc_0x38f3('0x22c')];item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x1ff')]=this[mf_dgc_0x38f3('0x1ff')];item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x26d')]=this[mf_dgc_0x38f3('0x26d')];item[mf_dgc_0x38f3('0x261')]['backColor']=this['backColor'];item[mf_dgc_0x38f3('0x261')]['shapeLibraryLocation']=this[mf_dgc_0x38f3('0x27e')];item[mf_dgc_0x38f3('0x261')]['minVisibleFontSize']=this[mf_dgc_0x38f3('0x1c7')];}['onUpdateSize'](control){if(this[mf_dgc_0x38f3('0x267')]<0x2)return;this[mf_dgc_0x38f3('0x27f')][mf_dgc_0x38f3('0x146')](control,control['columnWidth']);if(this[mf_dgc_0x38f3('0x27f')][mf_dgc_0x38f3('0x176')]==this['items'][mf_dgc_0x38f3('0x280')]()){var maxColumnWidth=Math[mf_dgc_0x38f3('0xe4')](...this[mf_dgc_0x38f3('0x27f')][mf_dgc_0x38f3('0x281')]());this[mf_dgc_0x38f3('0x24')]['forEach'](item=>{item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x282')](maxColumnWidth);});this[mf_dgc_0x38f3('0x27f')]=new Map();}}['addCategory'](title,image){var item=new AccordionItem(title);item[mf_dgc_0x38f3('0xad')]=image;var canvas=document['createElement']('canvas');canvas[mf_dgc_0x38f3('0x83')]=0xc8;canvas[mf_dgc_0x38f3('0x77')]=0xc8;item[mf_dgc_0x38f3('0x223')]=canvas[mf_dgc_0x38f3('0x245')];this[mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0xae')](item);return item;}[mf_dgc_0x38f3('0x283')](title){var categoryItem=this[mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0xf2')](i=>i[mf_dgc_0x38f3('0xab')]==title);if(categoryItem){this[mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0x284')](categoryItem);}}[mf_dgc_0x38f3('0x285')](item,category,caption){if(item instanceof AccordionItem){super[mf_dgc_0x38f3('0x285')](item);return;}var categoryItem=this[mf_dgc_0x38f3('0x24')]['find'](i=>i[mf_dgc_0x38f3('0xab')]==category);if(categoryItem){categoryItem[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x285')](item,caption);}}[mf_dgc_0x38f3('0x286')](item){if(item instanceof AccordionItem){super[mf_dgc_0x38f3('0x286')](item);return;}var categoryItem=this[mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0xf2')](i=>i['control'][mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0x15a')](item)>-0x1);if(categoryItem){categoryItem[mf_dgc_0x38f3('0x261')]['removeItem'](item);}}[mf_dgc_0x38f3('0x287')](){this[mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0xda')](item=>{item['control']['clearAll']();item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x3a')]();});this[mf_dgc_0x38f3('0x24')]['clear']();}get[mf_dgc_0x38f3('0xa1')](){return this['_measureUnit'];}set[mf_dgc_0x38f3('0xa1')](value){if(this[mf_dgc_0x38f3('0x288')]!=value){this[mf_dgc_0x38f3('0x288')]=value;this[mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0xda')](item=>{item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0xa1')]=this[mf_dgc_0x38f3('0x288')];});}}get[mf_dgc_0x38f3('0x267')](){return this[mf_dgc_0x38f3('0x289')];}set['columns'](value){if(this[mf_dgc_0x38f3('0x289')]!=value)this[mf_dgc_0x38f3('0x289')]=value;this[mf_dgc_0x38f3('0x24')]['forEach'](item=>{item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x267')]=this[mf_dgc_0x38f3('0x289')];});}get[mf_dgc_0x38f3('0x268')](){return this[mf_dgc_0x38f3('0x258')];}set[mf_dgc_0x38f3('0x268')](value){if(this[mf_dgc_0x38f3('0x258')]!=value)this[mf_dgc_0x38f3('0x258')]=value;this[mf_dgc_0x38f3('0x24')]['forEach'](item=>{item[mf_dgc_0x38f3('0x261')]['labelPosition']=this[mf_dgc_0x38f3('0x258')];});}get[mf_dgc_0x38f3('0x27e')](){return this['_shapeLibraryLocation'];}set['shapeLibraryLocation'](value){if(this[mf_dgc_0x38f3('0x28a')]!=value){this[mf_dgc_0x38f3('0x28a')]=value;this['items']['forEach'](item=>{item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x27e')]=this['_shapeLibraryLocation'];});}}get[mf_dgc_0x38f3('0x26a')](){return this['_newInstanceSize'];}set[mf_dgc_0x38f3('0x26a')](value){if(this[mf_dgc_0x38f3('0x25b')]!=value)this[mf_dgc_0x38f3('0x25b')]=value;this[mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0xda')](item=>{item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x26a')]=this['_newInstanceSize'];});}get[mf_dgc_0x38f3('0x269')](){return this[mf_dgc_0x38f3('0x28b')];}set[mf_dgc_0x38f3('0x269')](value){if(this[mf_dgc_0x38f3('0x28b')]!=value)this[mf_dgc_0x38f3('0x28b')]=value;this[mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0xda')](item=>{item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x269')]=this[mf_dgc_0x38f3('0x28b')];});}get[mf_dgc_0x38f3('0x22c')](){return this[mf_dgc_0x38f3('0x25a')];}set[mf_dgc_0x38f3('0x22c')](value){if(this[mf_dgc_0x38f3('0x25a')]!=value)this[mf_dgc_0x38f3('0x25a')]=value;this[mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0xda')](item=>{item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x22c')]=this[mf_dgc_0x38f3('0x25a')];});}get['backColor'](){return this['_backColor'];}set[mf_dgc_0x38f3('0x26c')](value){if(this[mf_dgc_0x38f3('0x28c')]!=value)this[mf_dgc_0x38f3('0x28c')]=value;this[mf_dgc_0x38f3('0x24')]['forEach'](item=>{item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x26c')]=this['_backColor'];});}get[mf_dgc_0x38f3('0x1ff')](){return this[mf_dgc_0x38f3('0x25c')];}set['textColor'](value){if(this[mf_dgc_0x38f3('0x25c')]!=value)this[mf_dgc_0x38f3('0x25c')]=value;this['items'][mf_dgc_0x38f3('0xda')](item=>{item[mf_dgc_0x38f3('0x261')]['textColor']=this['_textColor'];});}get['captionFont'](){return this['_captionFont'];}set[mf_dgc_0x38f3('0x26d')](value){if(this[mf_dgc_0x38f3('0x25d')]!=value)this[mf_dgc_0x38f3('0x25d')]=value;this[mf_dgc_0x38f3('0x24')][mf_dgc_0x38f3('0xda')](item=>{item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x26d')]=this['_captionFont'];});}get['minVisibleFontSize'](){return this[mf_dgc_0x38f3('0x28d')];}set[mf_dgc_0x38f3('0x1c7')](value){if(this[mf_dgc_0x38f3('0x28d')]!=value)this[mf_dgc_0x38f3('0x28d')]=value;this['items']['forEach'](item=>{item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x1c7')]=this['_minVisibleFontSize'];});}get['nodeSelected'](){if(!this[mf_dgc_0x38f3('0x28e')])this[mf_dgc_0x38f3('0x28e')]=new EventDispatcher();return this['_nodeSelected'];}get['linkSelected'](){if(!this[mf_dgc_0x38f3('0x28f')])this['_linkSelected']=new EventDispatcher();return this[mf_dgc_0x38f3('0x28f')];}[mf_dgc_0x38f3('0x260')](sender,args){if(args instanceof NodeEventArgs)this[mf_dgc_0x38f3('0x27d')]['raiseEvent'](this,args);else this[mf_dgc_0x38f3('0x272')]['raiseEvent'](this,args);}['onItemToggle'](item){super[mf_dgc_0x38f3('0x290')](item);item[mf_dgc_0x38f3('0x261')][mf_dgc_0x38f3('0x291')]();}static[mf_dgc_0x38f3('0xf0')](element){var control=Control['createControl'](Palette,element);control[mf_dgc_0x38f3('0x37')](element);control['attach']();return control;}static[mf_dgc_0x38f3('0xf2')](id){return Control[mf_dgc_0x38f3('0xf3')](id);}[mf_dgc_0x38f3('0x257')](){var shadow=this['attachShadow']({'mode':mf_dgc_0x38f3('0x56')});let div=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0x8b'));div[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0xf6')]=this[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0xf6')];this[mf_dgc_0x38f3('0x7e')][mf_dgc_0x38f3('0xf6')]='';let canvas=document[mf_dgc_0x38f3('0x5d')](mf_dgc_0x38f3('0xa0'));canvas['id']=this[mf_dgc_0x38f3('0xf7')]('id');div[mf_dgc_0x38f3('0x38')](canvas);shadow[mf_dgc_0x38f3('0x38')](div);this[mf_dgc_0x38f3('0xf8')]('id');var view=Palette[mf_dgc_0x38f3('0xf0')](canvas);view['shadowParent']=shadow;}}var g=typeof window!==mf_dgc_0x38f3('0x292')?window:global;class WebComponents{static[mf_dgc_0x38f3('0x293')](){if(g['customElements']!=undefined){mf_dgc_0x3ee1d1[mf_dgc_0x38f3('0x293')]();mf_dgc_0x136c61[mf_dgc_0x38f3('0x293')]();if(g[mf_dgc_0x38f3('0x294')]['get']('mindfusion-tabbeddiagramview')==undefined)g['customElements'][mf_dgc_0x38f3('0x295')](mf_dgc_0x38f3('0x296'),TabbedDiagramView);}}}export{Events,PageEventArgs,Palette,ShapeBuilder,ShapeDesigner,TabAlignment,TabbedDiagramView,WebComponents};