UNPKG

@syncfusion/ej2-diagrams

Version:

Feature-rich diagram control to create diagrams like flow charts, organizational charts, mind maps, and BPMN diagrams. Its rich feature set includes built-in shapes, editing, serializing, exporting, printing, overview, data binding, and automatic layouts.

10 lines 1.55 MB
/*! * filename: ej2-diagrams.min.js * version : 31.1.20 * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be prosecuted under * applicable laws. */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionBase"),require("SyncfusionPopups"),require("SyncfusionData"),require("SyncfusionNavigations")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionPopups","SyncfusionData","SyncfusionNavigations"],e):"object"==typeof exports?exports.SyncfusionDiagrams=e(require("SyncfusionBase"),require("SyncfusionPopups"),require("SyncfusionData"),require("SyncfusionNavigations")):t.SyncfusionDiagrams=e(t.SyncfusionBase,t.SyncfusionPopups,t.SyncfusionData,t.SyncfusionNavigations)}(self,(t,e,i,r)=>(()=>{"use strict";var n={766:e=>{e.exports=t},74:t=>{t.exports=i},215:t=>{t.exports=r},197:t=>{t.exports=e}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={exports:{}};return n[t](i,i.exports,a),i.exports}a.d=(t,e)=>{for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{a.r(s),a.d(s,{ActivityFlow:()=>ho,Annotation:()=>xe,AnnotationConstraints:()=>st,AvoidLineOverlapping:()=>kc,BasicShape:()=>bh,BezierSegment:()=>go,BezierSettings:()=>ao,BezierSmoothness:()=>Wt,BlazorAction:()=>$,BpmnActivity:()=>Oh,BpmnAnnotation:()=>Dh,BpmnDataObject:()=>xh,BpmnDiagrams:()=>mc,BpmnEvent:()=>Ph,BpmnFlow:()=>lo,BpmnGateway:()=>wh,BpmnShape:()=>Lh,BpmnSubEvent:()=>Ch,BpmnSubProcess:()=>Ah,BpmnTask:()=>Ih,BpmnTextAnnotation:()=>Mh,BpmnTransactionSubProcess:()=>Th,Canvas:()=>te,CanvasRenderer:()=>Md,ChildArrangement:()=>ot,ChildContainer:()=>Zh,ClassifierMultiplicity:()=>xo,ColumnDefinition:()=>br,Command:()=>Fo,CommandHandler:()=>ul,CommandManager:()=>Xo,ComplexHierarchicalTree:()=>Xc,ConnectTool:()=>jn,ConnectionDataSource:()=>Jd,ConnectionPointOrigin:()=>nt,Connector:()=>Co,ConnectorBridging:()=>Ac,ConnectorConstraints:()=>at,ConnectorDrawingTool:()=>Fn,ConnectorEditing:()=>ol,ConnectorFixedUserHandle:()=>Wi,ConnectorProperties:()=>Jc,ConnectorSegment:()=>co,ConnectorShape:()=>so,Container:()=>Gh,ContextMenuSettings:()=>Uo,ControlPointsVisibility:()=>Ht,CrudAction:()=>Kd,CustomCursorAction:()=>Il,DataBinding:()=>lc,DataMappingItems:()=>Zd,DataSource:()=>$d,Decorator:()=>no,Diagram:()=>sc,DiagramAction:()=>yt,DiagramConnectorSegment:()=>fo,DiagramConnectorShape:()=>Po,DiagramConstraints:()=>ct,DiagramContextMenu:()=>fc,DiagramElement:()=>Xt,DiagramEvent:()=>xt,DiagramEventHandler:()=>al,DiagramGradient:()=>Et,DiagramRenderer:()=>Go,DiagramShape:()=>_h,DiagramShapeStyle:()=>jt,DiagramTools:()=>pt,DiagramTooltip:()=>he,Ej1Serialization:()=>ip,ElementAction:()=>dt,ExpandTool:()=>Vn,FixedUserHandle:()=>ji,FixedUserHandleTool:()=>Nn,FlipDirection:()=>tt,FlowShape:()=>Sh,FlowchartLayout:()=>Kc,FlowchartLayoutSettings:()=>il,FreeHandTool:()=>$n,Gradient:()=>Lt,GraphForceNode:()=>Hc,GraphLayoutManager:()=>_c,GridCell:()=>wr,GridPanel:()=>yr,GridRow:()=>Sr,Gridlines:()=>Wd,GroupableView:()=>Vt,Header:()=>Fh,HierarchicalTree:()=>Rc,Html:()=>mh,Hyperlink:()=>we,Image:()=>yh,ImageElement:()=>Jt,KeyGesture:()=>Yo,KeyModifiers:()=>ft,Keys:()=>mt,LabelDragTool:()=>Qn,LabelProperties:()=>$c,LabelResizeTool:()=>Kn,LabelRotateTool:()=>Jn,LabelTool:()=>Gn,Lane:()=>Xh,Layout:()=>rl,LayoutAnimation:()=>Mc,LineDistribution:()=>Bc,LineRouting:()=>Pl,LinearGradient:()=>zt,Margin:()=>Ot,Matrix:()=>x,MatrixTypes:()=>S,MethodArguments:()=>zh,MindMap:()=>Nc,MoveTool:()=>Hn,MultiplicityLabel:()=>wo,Native:()=>fh,NoOfSegments:()=>wt,Node:()=>Yh,NodeConstraints:()=>ht,NodeDrawingTool:()=>Yn,NodeFixedUserHandle:()=>Hi,NodeProperties:()=>tp,OrthogonalSegment:()=>uo,Overview:()=>Qo,Palette:()=>ap,Path:()=>uh,PathAnnotation:()=>Pe,PathElement:()=>Qt,PathPort:()=>ve,Phase:()=>Uh,Point:()=>o,PointPort:()=>ye,PolyLineDrawingTool:()=>qn,PolygonDrawingTool:()=>Zn,Port:()=>me,PortConstraints:()=>It,PortProperties:()=>ep,PortVisibility:()=>et,PrintAndExport:()=>hc,RadialGradient:()=>kt,RadialTree:()=>jc,RealAction:()=>bt,Rect:()=>w,RelationShip:()=>Io,RenderMode:()=>ut,RendererAction:()=>vt,ResizeTool:()=>_n,RotateTool:()=>Wn,RowDefinition:()=>vr,Ruler:()=>Oo,ScrollActions:()=>St,SelectTool:()=>Rn,Selector:()=>qh,SelectorConstraints:()=>rt,Shadow:()=>Dt,Shape:()=>gh,ShapeAnnotation:()=>Ie,ShapeStyle:()=>Bt,Size:()=>i,SnapConstraints:()=>it,SnapSettings:()=>_d,Snapping:()=>Oc,StackPanel:()=>Vs,Stop:()=>Mt,StraightSegment:()=>po,StrokeStyle:()=>Rt,SwimLane:()=>Vh,SymbolDragSize:()=>sp,SymbolPalette:()=>dp,SymbolPaletteInfo:()=>Mi,SymbolPreview:()=>hp,SymbolSize:()=>Di,SymmetricLayout:()=>Wc,Text:()=>vh,TextDrawingTool:()=>Xn,TextElement:()=>Zt,TextStyle:()=>Nt,Thickness:()=>At,ThumbsConstraints:()=>lt,ToolBase:()=>Bn,Transform:()=>gt,UmlActivityShape:()=>Eh,UmlClass:()=>Rh,UmlClassAttribute:()=>kh,UmlClassMethod:()=>Bh,UmlClassifierShape:()=>Wh,UmlEnumeration:()=>Hh,UmlEnumerationMember:()=>jh,UmlInterface:()=>Nh,UmlSequenceActivationBox:()=>Ml,UmlSequenceDiagram:()=>Bl,UmlSequenceFragment:()=>kl,UmlSequenceFragmentCondition:()=>zl,UmlSequenceFragmentType:()=>Od,UmlSequenceMessage:()=>El,UmlSequenceMessageType:()=>Ad,UmlSequenceParticipant:()=>Ll,UndoRedo:()=>Dc,UserHandle:()=>No,Vector:()=>oo,ZoomPanTool:()=>Un,addChildToContainer:()=>vn,alignChildBasedOnaPoint:()=>js,alignElement:()=>ws,alignLabelOnSegments:()=>Ta,arrangeChild:()=>ds,bBoxText:()=>U,bezierPoints:()=>So,canMeasureDecoratorPath:()=>Es,canResizeCorner:()=>Ja,canShowControlPoints:()=>ts,canShowCorner:()=>$a,changeOldFlipDirectionType:()=>Ra,checkBrowserInfo:()=>Ls,checkChildNodeInContainer:()=>fn,checkParentAsContainer:()=>un,checkPort:()=>Ts,checkPortRestriction:()=>es,cloneArray:()=>H,cloneBlazorObject:()=>Ms,cloneObject:()=>N,cloneSelectedObjects:()=>Is,completeRegion:()=>Ko,contains:()=>Tn,containsBounds:()=>_s,contextMenuBeforeItemRender:()=>Ft,contextMenuClick:()=>_t,contextMenuOpen:()=>Yt,cornersPointsBeforeRotation:()=>B,createHelper:()=>pn,deserialize:()=>Ba,extendArray:()=>_,extendObject:()=>W,findAngle:()=>ai,findAnnotation:()=>is,findBounds:()=>cn,findConnectorPoints:()=>Re,findDistance:()=>Ds,findMargin:()=>oi,findNearestPoint:()=>aa,findNodeByName:()=>Jo,findObjectIndex:()=>os,findObjectType:()=>$o,findParentInSwimlane:()=>Bs,findPath:()=>As,findPoint:()=>si,findPort:()=>rs,findPortIndex:()=>as,findPortToolToActivate:()=>Cn,findToolToActivate:()=>Pn,flipConnector:()=>bs,getAlignedPosition:()=>Ca,getAlignedPositionForPorts:()=>Ia,getAnnotationPosition:()=>Sa,getBasicShape:()=>ee,getBezierBounds:()=>bo,getBezierDirection:()=>Aa,getBezierPoints:()=>vo,getBounds:()=>R,getBpmnGatewayShapePathData:()=>bc,getBpmnLoopShapePathData:()=>wc,getBpmnShapePathData:()=>yc,getBpmnTaskShapePathData:()=>Sc,getBpmnTriggerShapePathData:()=>vc,getChild:()=>Da,getCollectionChangeEventArguements:()=>fs,getConnectorArrowType:()=>Ns,getConnectorDirection:()=>Os,getCursor:()=>Mn,getDecoratorShape:()=>Te,getDirection:()=>mo,getDropEventArguements:()=>ms,getElement:()=>gs,getFlippedPoint:()=>Hs,getFlowShape:()=>ke,getFreeHandPath:()=>p,getFunction:()=>J,getIconShape:()=>De,getInOutConnectPorts:()=>ns,getIndex:()=>z,getInternalProperties:()=>j,getIntersection:()=>di,getIntersectionPoints:()=>ci,getInterval:()=>ia,getLineSegment:()=>ua,getObjectFromCollection:()=>ss,getObjectType:()=>vs,getOffset:()=>K,getOffsetOfConnector:()=>Pa,getOffsetOfPorts:()=>xa,getOppositeDirection:()=>Ti,getOuterBounds:()=>Ci,getPathOffset:()=>Cs,getPathString:()=>v,getPoint:()=>ys,getPoints:()=>fa,getPolygonPath:()=>c,getPortDirection:()=>Pi,getPortShape:()=>Ce,getPortsPosition:()=>wa,getPreviewSize:()=>zs,getRectanglePath:()=>l,getSegmentThumbShapeHorizontal:()=>Ae,getSegmentThumbShapeVertical:()=>Oe,getSpaceValue:()=>ea,getString:()=>b,getSwimLaneChildren:()=>Ma,getSymbolSize:()=>ks,getTooltipOffset:()=>ma,getUMLActivityShapes:()=>Ga,getUMLFinalNode:()=>Va,getUserHandlePosition:()=>Ka,groupHasType:()=>ha,hasSelection:()=>An,hasSingleConnection:()=>On,identityMatrix:()=>I,initFixedUserHandlesSymbol:()=>va,initTooltip:()=>de,insertObject:()=>ps,intersect2:()=>ga,intersect3:()=>pa,isDiagramChild:()=>sa,isEmptyVector:()=>yo,isLabelFlipped:()=>Ws,isPointOverConnector:()=>ca,isSelected:()=>Dn,menuClass:()=>uc,middleElement:()=>V,moveChildInStack:()=>In,multiplyMatrix:()=>D,orthoConnection2Segment:()=>fi,overFlow:()=>G,parsePathData:()=>d,pathSegmentCollection:()=>g,processPathData:()=>h,randomId:()=>E,removeChildInContainer:()=>ln,removeChildNodes:()=>Oa,removeGradient:()=>Za,removeItem:()=>qa,removeUnnecessaryNodes:()=>La,renderContainerHelper:()=>gn,renderStackHighlighter:()=>xn,rotateAfterFlip:()=>xs,rotateMatrix:()=>T,rotatePoint:()=>Q,rotateSize:()=>q,scaleElement:()=>hs,scaleMatrix:()=>A,scalePathData:()=>m,selectionHasConnector:()=>Rs,serialize:()=>Ea,setConnectorDefaults:()=>oa,setPortsEdges:()=>ra,setSwimLaneDefaults:()=>ta,setUMLActivityDefaults:()=>na,sort:()=>ba,sortNodeCollection:()=>cs,splitArrayCollection:()=>y,swapBounds:()=>qe,templateCompiler:()=>k,textAlignToString:()=>Y,transformPath:()=>u,transformPointByMatrix:()=>P,transformPointsByMatrix:()=>C,translateMatrix:()=>O,updateCanvasBounds:()=>dn,updateConnector:()=>Qa,updateContent:()=>Xa,updateDefaultValues:()=>da,updateHyperlink:()=>_a,updateLaneBoundsAfterAddChild:()=>wn,updateLaneBoundsWithSelector:()=>Sn,updateLayoutValue:()=>la,updatePathElement:()=>Ps,updatePortEdges:()=>Ss,updateScrollSettingsOffset:()=>ja,updateShape:()=>Fa,updateShapeContent:()=>Ya,updateStyle:()=>Ha,updateTooltip:()=>pe,updateUmlActivityNode:()=>Ua,updateZindex:()=>yn,updatedSegment:()=>f,upgrade:()=>Na,whiteSpaceToString:()=>Z,wordBreakToString:()=>F});var t,e=a(766),i=function(){function t(t,e){this.width=t,this.height=e}return t.prototype.isEmpty=function(){return 0===this.height&&0===this.width},t.prototype.clone=function(){return new t(this.width,this.height)},t}(),r=(t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)},function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}),n=function(t,e,i,r){var n,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(o<3?n(a):o>3?n(e,i,a):n(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},o=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.equals=function(t,e){return t===e||!(!t||!e)&&(!t||!e||t.x===e.x&&t.y===e.y)},i.isEmptyPoint=function(t){return!t.x||!t.y},i.transform=function(t,e,i){var r={x:0,y:0};return r.x=Math.round(100*(t.x+i*Math.cos(e*Math.PI/180)))/100,r.y=Math.round(100*(t.y+i*Math.sin(e*Math.PI/180)))/100,r},i.findLength=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},i.findAngle=function(t,e){var i=Math.atan2(e.y-t.y,e.x-t.x);return i=180*i/Math.PI,(i%=360)<0&&(i+=360),i},i.distancePoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},i.getLengthFromListOfPoints=function(t){for(var e=0,i=0;i<t.length-1;i++)e+=this.distancePoints(t[parseInt(i.toString(),10)],t[i+1]);return e},i.adjustPoint=function(t,e,i,r){var n,o=i?{x:t.x,y:t.y}:{x:e.x,y:e.y};return t.x===e.x?t.y<e.y&&i||t.y>e.y&&!i?o.y+=r:o.y-=r:t.y===e.y?t.x<e.x&&i||t.x>e.x&&!i?o.x+=r:o.x-=r:i?(n=this.findAngle(t,e),o=this.transform(t,n,r)):(n=this.findAngle(e,t),o=this.transform(e,n,r)),o},i.direction=function(t,e){return Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?t.x<e.x?"Right":"Left":t.y<e.y?"Bottom":"Top"},i.prototype.getClassName=function(){return"Point"},n([(0,e.Property)(0)],i.prototype,"x",void 0),n([(0,e.Property)(0)],i.prototype,"y",void 0),i}(e.ChildProperty);function h(t){var e,i=[],r=d(t);if(r.length>0)for(var n=0;n<r.length;n++){var o=r[parseInt(n.toString(),10)],a="";switch((a=o[0]).toLowerCase()){case"m":for(e=1;e<o.length;e++)i.push({command:a,x:o[parseInt(e.toString(),10)],y:o[e+1]}),e+=1,"m"===a?a="l":"M"===a&&(a="L");break;case"l":case"t":for(e=1;e<o.length;e++)i.push({command:a,x:o[parseInt(e.toString(),10)],y:o[e+1]}),e+=1;break;case"h":for(e=1;e<o.length;e++)i.push({command:a,x:o[parseInt(e.toString(),10)]});break;case"v":for(e=1;e<o.length;e++)i.push({command:a,y:o[parseInt(e.toString(),10)]});break;case"z":i.push({command:a});break;case"c":for(e=1;e<o.length;e++)i.push({command:a,x1:o[parseInt(e.toString(),10)],y1:o[e+1],x2:o[e+2],y2:o[e+3],x:o[e+4],y:o[e+5]}),e+=5;break;case"s":for(e=1;e<o.length;e++)i.push({command:a,x2:o[parseInt(e.toString(),10)],y2:o[e+1],x:o[e+2],y:o[e+3]}),e+=3;break;case"q":for(e=1;e<o.length;e++)i.push({command:a,x1:o[parseInt(e.toString(),10)],y1:o[e+1],x:o[e+2],y:o[e+3]}),e+=3;break;case"a":for(e=1;e<o.length;e++)i.push({command:a,r1:o[parseInt(e.toString(),10)],r2:o[e+1],angle:o[e+2],largeArc:o[e+3],sweep:o[e+4],x:o[e+5],y:o[e+6]}),e+=6}}return i}function d(t){var e=/([a-z]+)|([+-]?(?:\d+\.?\d*|\.\d+))/gi,i=[],r=[],n={};e.lastIndex=0;var o=!1;for(n=e.exec(t);n;)"e"===n[1]?o=!0:n[1]?("zm"===n[1].toLowerCase()?(i.length&&r.push(i),r.push(["Z"]),i=[n[1].substring(1,2)]):(i.length&&r.push(i),i=[n[1]]),o=!1):(i.length||(i=[]),o||i.push(Number(n[2])),o=!1),n=e.exec(t);return i.length&&r.push(i),r}function l(t,e,i){var r,n,o,a="",s=[{x:0+t,y:0},{x:0+i-t,y:0},{x:0+i,y:0+t},{x:0+i,y:0+e-t},{x:0+i-t,y:0+e},{x:0+t,y:0+e},{x:0,y:0+e-t},{x:0,y:0+t}],h=[{x:0+i,y:0},{x:0+i,y:0+e},{x:0,y:0+e},{x:0,y:0}],d=0;for(a="M"+s[0].x+" "+s[0].y,o=0;o<s.length;o+=2)a+="L"+(r=s[o+1]).x+" "+r.y,n=s[o+2]||s[0],a+="Q"+h[parseInt(d.toString(),10)].x+" "+h[parseInt(d.toString(),10)].y+" "+n.x+" "+n.y,d++;return a}function c(t){var e,i,r="";for(r="M"+t[0].x+" "+t[0].y,i=1;i<t.length;i++)r+="L"+(e=t[parseInt(i.toString(),10)]).x+" "+e.y;return r+="Z"}function p(t){var e;for(e=0;e<t.length;e++)t[parseInt(e.toString(),10)].x=Math.round(t[parseInt(e.toString(),10)].x),t[parseInt(e.toString(),10)].y=Math.round(t[parseInt(e.toString(),10)].y);var i,r,n="";for(n="M"+t[0].x+" "+t[0].y,r=1;r<t.length;r++)n+="L"+(i=t[parseInt(r.toString(),10)]).x+" "+i.y;return n}function g(t){var e,i,r,n,o,a,s,h,d,l,c=[];for(s=0,h=0,l=0,d=t.length;l<d;++l){var p,g=t[l];p=g.command,"y1"in g&&(n=g.y1),"y2"in g&&(a=g.y2),"x1"in g&&(r=g.x1),"x2"in g&&(o=g.x2),"x"in g&&(s=g.x),"y"in g&&(h=g.y);var u=c[c.length-1];switch(p){case"M":c.push({command:"M",x:s,y:h});break;case"L":c.push({command:"L",x0:e,y0:i,x:s,y:h});break;case"H":c.push({command:"L",x0:e,y0:i,x:s,y:i});break;case"V":c.push({command:"L",x0:e,y0:i,x:e,y:h});break;case"C":c.push({command:"C",x0:e,y0:i,x1:r,y1:n,x2:o,y2:a,x:s,y:h});break;case"S":if(u){var f=void 0,m={x:2*e-(f="C"===u.command||"S"===u.command?{x:u.x2,y:u.y2}:{x:e,y:i}).x,y:2*i-f.y};c.push({command:"C",x0:e,y0:i,x1:m.x,y1:m.y,x2:o,y2:a,x:s,y:h})}break;case"Q":c.push({command:"Q",x0:e,y0:i,x1:r,y1:n,x:s,y:h});break;case"T":if(u){f=void 0,m={x:2*e-(f="Q"===u.command?{x:u.x1,y:u.y1}:{x:e,y:i}).x,y:2*i-f.y};c.push({command:"Q",x0:e,y0:i,x1:m.x,y1:m.y,x:s,y:h})}break;case"A":var y=g;y.command="A",c.push(y);break;case"Z":case"z":c.push({command:"Z"}),s=e,h=i}"M"!==p&&"m"!==p||h,e=s,i=h}return c}function u(t,e,i,r,n,o,a,s){var h,d,l,c,p,g,u,y,b;for(p=0,g=0,y=0,u=t.length;y<u;++y){var S=t[y],w=S.command;"x"in S&&(p=S.x),"y"in S&&(g=S.y),"y1"in S&&(d=S.y1),"y2"in S&&(c=S.y2),"x1"in S&&(h=S.x1),"x2"in S&&(l=S.x2),r?(void 0!==p&&(p=m(p,e,n,a)),void 0!==g&&(g=m(g,i,o,s)),void 0!==h&&(h=m(h,e,n,a)),void 0!==d&&(d=m(d,i,o,s)),void 0!==l&&(l=m(l,e,n,a)),void 0!==c&&(c=m(c,i,o,s))):(void 0!==p&&(p=Number((p+e).toFixed(2))),void 0!==g&&(g=Number((g+i).toFixed(2))),void 0!==h&&(h=Number((h+e).toFixed(2))),void 0!==d&&(d=Number((d+i).toFixed(2))),void 0!==l&&(l=Number((l+e).toFixed(2))),void 0!==c&&(c=Number((c+i).toFixed(2)))),(b=f(S,w,{x:p,y:g,x1:h,y1:d,x2:l,y2:c,r1:S.r1,r2:S.r2},r,e,i))&&(t[y]=b),"M"!==w&&"m"!==w||g}return v(t)}function f(t,e,i,r,n,o){switch(e){case"M":case"L":case"T":t.x=i.x,t.y=i.y;break;case"H":t.x=i.x;break;case"V":t.y=i.y;break;case"C":t.x=i.x,t.y=i.y,t.x1=i.x1,t.y1=i.y1,t.x2=i.x2,t.y2=i.y2;break;case"S":t.x=i.x,t.y=i.y,t.x2=i.x2,t.y2=i.y2;break;case"Q":t.x=i.x,t.y=i.y,t.x1=i.x1,t.y1=i.y1;break;case"A":var a=i.r1,s=i.r2;r&&(i.r1=a*=n,i.r2=s*=o),t.x=i.x,t.y=i.y,t.r1=i.r1,t.r2=i.r2;break;case"z":case"Z":t={command:"Z"}}return t}function m(t,e,i,r){return t!==i?t=r!==i?t*e-(Number(i)*e-Number(i))+(r-Number(i)):Number(t)*e-(Number(i)*e-Number(i)):r!==i&&(t=r),Number(t.toFixed(2))}function y(t){var e,i,r,n,o,a,s,h,d,l;for(s=0,h=0,l=0,d=t.length;l<d;++l){var c=t[parseInt(l.toString(),10)],p=c.command;if(/[MLHVCSQTA]/.test(p))"x"in c&&(c.x=s=c.x),"y"in c&&(c.y=h=c.y);else{"x1"in c&&(c.x1=r=s+c.x1),"x2"in c&&(c.x2=o=s+c.x2),"y1"in c&&(c.y1=n=h+c.y1),"y2"in c&&(c.y2=a=h+c.y2),"x"in c&&(c.x=s+=c.x),"y"in c&&(c.y=h+=c.y);var g=void 0;switch(p){case"m":case"M":g={command:"M",x:s,y:h};break;case"l":case"L":g={command:"L",x:s,y:h};break;case"h":case"H":g={command:"H",x:s};break;case"v":case"V":g={command:"V",y:h};break;case"c":case"C":g={command:"C",x:s,y:h,x1:r,y1:n,x2:o,y2:a};break;case"s":case"S":g={command:"S",x:s,y:h,x2:o,y2:a};break;case"q":case"Q":g={command:"Q",x:s,y:h,x1:r,y1:n};break;case"t":case"T":g={command:"T",x:s,y:h};break;case"a":case"A":(g={command:"A",x:s,y:h}).r1=c.r1,g.r2=c.r2,g.angle=c.angle,g.largeArc=c.largeArc,g.sweep=c.sweep;break;case"z":case"Z":g={command:"Z"},s=e,h=i,g=t[parseInt(l.toString(),10)]}g&&(t[parseInt(l.toString(),10)]=g)}"M"!==p&&"m"!==p||(e=s,i=h)}return t}function v(t){var e,i="";for(e=0;e<t.length;e++)i+=0===e?b(t[parseInt(e.toString(),10)]):" "+b(t[parseInt(e.toString(),10)]);return i}function b(t){var e="";switch(t.command){case"Z":case"z":e=t.command;break;case"M":case"m":case"L":case"l":case"T":case"t":e=t.command+" "+t.x+" "+t.y;break;case"C":case"c":e=t.command+" "+t.x1+" "+t.y1+" "+t.x2+" "+t.y2+" "+t.x+" "+t.y;break;case"Q":case"q":e=t.command+" "+t.x1+" "+t.y1+" "+t.x+" "+t.y;break;case"A":case"a":var i=t.command,r=t.angle,n=t.largeArc?"1":"0",o=t.sweep?"1":"0";e=i+" "+t.r1+" "+t.r2+" "+r+" "+n+" "+o+" "+t.x+" "+t.y;break;case"H":case"h":e=t.command+" "+t.x;break;case"V":case"v":e=t.command+" "+t.y;break;case"S":case"s":e=t.command+" "+t.x2+" "+t.y2+" "+t.x+" "+t.y}return e}var S,w=function(){function t(t,e,i,r){this.x=Number.MAX_VALUE,this.y=Number.MAX_VALUE,this.width=0,this.height=0,void 0===t||void 0===e?(t=e=Number.MAX_VALUE,i=r=0):(void 0===i&&(i=0),void 0===r&&(r=0)),this.x=t,this.y=e,this.width=i,this.height=r}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topLeft",{get:function(){return{x:this.left,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topRight",{get:function(){return{x:this.right,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomLeft",{get:function(){return{x:this.left,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomRight",{get:function(){return{x:this.right,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"middleLeft",{get:function(){return{x:this.left,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"middleRight",{get:function(){return{x:this.right,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topCenter",{get:function(){return{x:this.x+this.width/2,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomCenter",{get:function(){return{x:this.x+this.width/2,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return{x:this.x+this.width/2,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),t.prototype.equals=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height},t.prototype.uniteRect=function(t){var e=Math.max(isNaN(this.right)||this.x===Number.MAX_VALUE?t.right:this.right,t.right),i=Math.max(isNaN(this.bottom)||this.y===Number.MAX_VALUE?t.bottom:this.bottom,t.bottom);return this.x=Math.min(this.left,t.left),this.y=Math.min(this.top,t.top),this.width=e-this.x,this.height=i-this.y,this},t.prototype.unitePoint=function(t){if(this.x===Number.MAX_VALUE)return this.x=t.x,void(this.y=t.y);var e=Math.min(this.left,t.x),i=Math.min(this.top,t.y),r=Math.max(this.right,t.x),n=Math.max(this.bottom,t.y);this.x=e,this.y=i,this.width=r-this.x,this.height=n-this.y},t.prototype.Inflate=function(t){return this.x-=t,this.y-=t,this.width+=2*t,this.height+=2*t,this},t.prototype.intersects=function(t){return!(this.right<t.left||this.left>t.right||this.top>t.bottom||this.bottom<t.top)},t.prototype.containsRect=function(t){return this.left<=t.left&&this.right>=t.right&&this.top<=t.top&&this.bottom>=t.bottom},t.prototype.containsPoint=function(t,e){return void 0===e&&(e=0),this.left-e<=t.x&&this.right+e>=t.x&&this.top-e<=t.y&&this.bottom+e>=t.y},t.toBounds=function(e){for(var i=new t,r=0,n=e;r<n.length;r++){var o=n[r];i.unitePoint(o)}return i},t.empty=new t(Number.MAX_VALUE,Number.MIN_VALUE,0,0),t}();!function(t){t[t.Identity=0]="Identity",t[t.Translation=1]="Translation",t[t.Scaling=2]="Scaling",t[t.Unknown=4]="Unknown"}(S||(S={}));var x=function(t,e,i,r,n,o,a){this.m11=t,this.m12=e,this.m21=i,this.m22=r,this.offsetX=n,this.offsetY=o,this.type=a};function I(){return new x(1,0,0,1,0,0,S.Identity)}function P(t,e){var i=function(t,e,i){if(t.type===(S.Translation|S.Scaling))e*=t.m11,e+=t.offsetX,i*=t.m22,i+=t.offsetY;else{var r=i*t.m21+t.offsetX,n=e*t.m12+t.offsetY;e*=t.m11,e+=r,i*=t.m22,i+=n}return{x:e,y:i}}(t,e.x,e.y);return{x:Math.round(100*i.x)/100,y:Math.round(100*i.y)/100}}function C(t,e){for(var i=[],r=0,n=e;r<n.length;r++){var o=n[r];i.push(P(t,o))}return i}function T(t,e,i,r){D(t,function(t,e,i){var r=I(),n=Math.sin(t),o=Math.cos(t),a=e*(1-o)+i*n,s=i*(1-o)-e*n;return r.type=S.Unknown,M(r,o,n,-n,o,a,s),r}(.017453292519943295*(e%=360),i||0,r||0))}function A(t,e,i,r,n){void 0===r&&(r=0),void 0===n&&(n=0),D(t,function(t,e,i,r){var n=I();return n.type=i||r?S.Scaling|S.Translation:S.Scaling,M(n,t,0,0,e,i-t*i,r-e*r),n}(e,i,r,n))}function O(t,e,i){t.offsetX+=e,t.offsetY+=i,t.type|=S.Translation}function D(t,e){var i=t.type,r=e.type;if(i===S.Identity)return L(t,e),void(t.type=e.type);if(i!==S.Translation){var n=i<<4|r;switch(n){case 50:return t.m11*=e.m11,t.m22*=e.m22,t.offsetX*=e.m11,void(t.offsetY*=e.m22);case 51:return t.m11*=e.m11,t.m22*=e.m22,t.offsetX=e.m11*t.offsetX+e.offsetX,void(t.offsetY=e.m22*t.offsetY+e.offsetY);case 52:break;default:switch(n){case 66:case 67:case 68:break;default:return}}var o=I();return M(o,t.m11*e.m11+t.m12*e.m21,t.m11*e.m12+t.m12*e.m22,t.m21*e.m11+t.m22*e.m21,t.m21*e.m12+t.m22*e.m22,t.offsetX*e.m11+t.offsetY*e.m21+e.offsetX,t.offsetX*e.m12+t.offsetY*e.m22+e.offsetY),o.m21||o.m12?o.type=S.Unknown:((o.m11&&1!==o.m11||o.m22&&1!==o.m22)&&(o.type=S.Scaling),(o.offsetX||o.offsetY)&&(o.type|=S.Translation),(o.type&(S.Translation|S.Scaling))===S.Identity&&(o.type=S.Identity),o.type=S.Scaling|S.Translation),L(t,o),void(t.type=o.type)}var a=t.offsetX,s=t.offsetY;t.offsetX=a*e.m11+s*e.m21+e.offsetX,t.offsetY=a*e.m12+s*e.m22+e.offsetY,r!==S.Unknown?t.type=S.Translation|S.Scaling:t.type=S.Unknown}function M(t,e,i,r,n,o,a){t.m11=e,t.m12=i,t.m21=r,t.m22=n,t.offsetX=o,t.offsetY=a}function L(t,e){t.m11=e.m11,t.m12=e.m12,t.m21=e.m21,t.m22=e.m22,t.offsetX=e.offsetX,t.offsetY=e.offsetY,t.type=e.type}function E(){for(var t,e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",i="",r=0;r<5;r++){if("undefined"!=typeof window&&"crypto"in window&&"getRandomValues"in crypto){var n=new Uint16Array(1);t=(window.msCrypto||window.crypto).getRandomValues(n)[0]%60}else t=Math.floor(61*Math.random());0===r&&t<10?r--:i+=e.substring(t,t+1)}return i}function z(t,e){if(t.nodes&&t.nodes.length>0)for(var i=0;i<t.nodes.length;i++)if(t.nodes[parseInt(i.toString(),10)].id===e)return i;if(t.connectors&&t.connectors.length>0)for(i=0;i<t.connectors.length;i++)if(t.connectors[parseInt(i.toString(),10)].id===e)return i;return null}function k(t){if(t){try{return"function"!=typeof t&&document.querySelectorAll(t).length?(0,e.compile)(document.querySelector(t).innerHTML.trim()):(0,e.compile)(t)}catch(i){return(0,e.compile)(t)}}}function B(t){new w;var e=t.offsetY-t.actualSize.height*t.pivot.y,i=t.offsetY+t.actualSize.height*(1-t.pivot.y),r=t.offsetX-t.actualSize.width*t.pivot.x,n=t.offsetX+t.actualSize.width*(1-t.pivot.x),o={x:r,y:e},a={x:n,y:e},s={x:r,y:i},h={x:n,y:i};return w.toBounds([o,a,s,h])}function R(t){var e=new w,i=B(t),r=i.middleLeft,n=i.topCenter,o=i.bottomCenter,a=i.middleRight,s=i.topLeft,h=i.topRight,d=i.bottomLeft,l=i.bottomRight;if(t.corners={topLeft:s,topCenter:n,topRight:h,middleLeft:r,middleRight:a,bottomLeft:d,bottomCenter:o,bottomRight:l},0!==t.rotateAngle||0!==t.parentTransform){var c=I();T(c,t.rotateAngle+t.parentTransform,t.offsetX,t.offsetY),t.corners.topLeft=s=P(c,s),t.corners.topCenter=n=P(c,n),t.corners.topRight=h=P(c,h),t.corners.middleLeft=r=P(c,r),t.corners.middleRight=a=P(c,a),t.corners.bottomLeft=d=P(c,d),t.corners.bottomCenter=o=P(c,o),t.corners.bottomRight=l=P(c,l)}return e=w.toBounds([s,h,d,l]),t.corners.left=e.left,t.corners.right=e.right,t.corners.top=e.top,t.corners.bottom=e.bottom,t.corners.center=e.center,t.corners.width=e.width,t.corners.height=e.height,e}function N(t,e,i,r){var n={},o="properties";if(t){i=t.propName;var a=t[""+o]||t,s=[],h=[];if((s=s.concat(Object.keys(a))).push("version"),i){var d=J(e);h=d?d(i):[],s=s.concat(h)}for(var l=j(i),c=0,p=s=s.concat(l);c<p.length;c++){var g=p[c];if("historyManager"!==g)if("wrapper"!==g)!(!t[""+g]||!t.hasOwnProperty("observers"))||(t[""+g]instanceof Array?n[""+g]=H(-1===l.indexOf(g)&&t[""+o]?t[""+o][""+g]:t[""+g],e,g,r):t[""+g]instanceof Array==!1&&t[""+g]instanceof HTMLElement?n[""+g]=t[""+g].cloneNode(!0).innerHTML:t[""+g]instanceof Array==!1&&t[""+g]instanceof Object?n[""+g]=N(-1===l.indexOf(g)&&t[""+o]?t[""+o][""+g]:t[""+g],void 0,void 0,r):n[""+g]=t[""+g]);else t[""+g]&&(n[""+g]={actualSize:{width:t[""+g].actualSize.width,height:t[""+g].actualSize.height},offsetX:t[""+g].offsetX,offsetY:t[""+g].offsetY})}}return n}function j(t){switch(t){case"nodes":case"children":return["inEdges","outEdges","parentId","processId","nodeId","umlIndex","isPhase","isLane"];case"connectors":return["parentId"];case"annotation":case"annotations":return["nodeId"];case"shape":return["hasHeader"];case"layers":return["objectZIndex"]}return[]}function H(t,e,i,r){var n;if(t){n=[];for(var o=0;o<t.length;o++)t[parseInt(o.toString(),10)]instanceof Array?n.push(t[parseInt(o.toString(),10)]):t[parseInt(o.toString(),10)]instanceof Object?n.push(N(t[parseInt(o.toString(),10)],e,i,r)):n.push(t[parseInt(o.toString(),10)])}return n}function W(t,e){var i="properties";if(t){e||(e={properties:{}});for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];if(t[""+o]instanceof Array){var a=_(t[""+o],e[""+i][""+o]);e[""+i][""+o]&&e[""+i][""+o].length||(e[""+o]=a)}else if(t[""+o]instanceof Array==!1&&t[""+o]instanceof HTMLElement)e[""+o]=t[""+o].cloneNode(!0).innerHtml;else if(t[""+o]instanceof Array==!1&&t[""+o]instanceof Object){var s=W(t[""+o],e[""+i][""+o]);s[""+i]&&!Object.keys(s[""+i]).length&&delete s[""+i],e[""+o]=s}else e[""+o]=void 0!==e[""+i][""+o]?e[""+o]:t[""+o]}}return e}function _(t,e){var i=[],r=!1;e||(e=[]),e.length||(r=!0);for(var n=0;n<t.length;n++)if(t[parseInt(n.toString(),10)]instanceof Array){_(t[parseInt(n.toString(),10)],e[parseInt(n.toString(),10)]);r&&i.push(_)}else if(t[parseInt(n.toString(),10)]instanceof Object){var o=W(t[parseInt(n.toString(),10)],e[parseInt(n.toString(),10)]);r&&i.push(o)}else i.push(t[parseInt(n.toString(),10)]);return i}function Y(t){var e="";switch(t){case"Center":e="center";break;case"Left":e="left";break;case"Right":e="right";break;case"Justify":e="justify"}return e}function F(t){var e="";switch(t){case"Wrap":e="breakall";break;case"NoWrap":e="keepall";break;case"WrapWithOverflow":e="normal";break;case"LineThrough":e="line-through"}return e}var X=document.createElement("canvas").getContext("2d");function U(t,e){return X.font=(e.bold?"bold":"normal")+" "+e.fontSize+"px "+e.fontFamily,X.measureText(t).width}function V(t,e){return(t+e)/2}function G(t,e){var i,r=0,n=0,o=0,a="";i=t.length;var s=0;do{o>0&&(r=n),n=Math.floor(V(r,i)),o=U(a+=t.substr(r,n),e)}while(o<=e.width);for(a=a.substr(0,r),s=r;s<i;s++)if((o=U(a+=t[parseInt(s.toString(),10)],e))>=e.width){t=t.substr(0,a.length-1);break}return"Ellipsis"===e.textOverflow?(t=t.substr(0,t.length-3),t+="..."):t=t.substr(0,t.length),t}function Z(t,e){if("NoWrap"===e&&"PreserveAll"===t)return"pre";var i="";switch(t){case"CollapseAll":i="nowrap";break;case"CollapseSpace":i="pre-line";break;case"PreserveAll":i="pre-wrap"}return i}function q(t,e){var r=I();T(r,e,0,0);var n=P(r,{x:0,y:0}),o=P(r,{x:t.width,y:0}),a=P(r,{x:0,y:t.height}),s=P(r,{x:t.width,y:t.height}),h=Math.min(n.x,o.x,a.x,s.x),d=Math.min(n.y,o.y,a.y,s.y),l=Math.max(n.x,o.x,a.x,s.x),c=Math.max(n.y,o.y,a.y,s.y);return new i(l-h,c-d)}function Q(t,e,i,r){if(0!==t){var n=I();return T(n,t,e,i),P(n,r)}return r}function K(t,e){return{x:t.x+e.desiredSize.width*e.pivot.x,y:t.y+e.desiredSize.height*e.pivot.y}}function J(t){return void 0!==t&&"string"==typeof t&&(t=(0,e.getValue)(t,window)),t}var $,tt,et,it,rt,nt,ot,at,st,ht,dt,lt,ct,pt,gt,ut,ft,mt,yt,vt,bt,St,wt,xt,It,Pt=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ct=function(t,e,i,r){var n,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(o<3?n(a):o>3?n(e,i,a):n(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},Tt=function(t){if(t)switch(t.type){case"Linear":default:return zt;case"Radial":return kt}return zt},At=function(t,e,i,r){this.left=t,this.right=e,this.top=i,this.bottom=r},Ot=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Pt(i,t),Ct([(0,e.Property)(0)],i.prototype,"left",void 0),Ct([(0,e.Property)(0)],i.prototype,"right",void 0),Ct([(0,e.Property)(0)],i.prototype,"top",void 0),Ct([(0,e.Property)(0)],i.prototype,"bottom",void 0),i}(e.ChildProperty),Dt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Pt(i,t),Ct([(0,e.Property)(45)],i.prototype,"angle",void 0),Ct([(0,e.Property)(5)],i.prototype,"distance",void 0),Ct([(0,e.Property)(.7)],i.prototype,"opacity",void 0),Ct([(0,e.Property)("lightgrey")],i.prototype,"color",void 0),i}(e.ChildProperty),Mt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Pt(i,t),i.prototype.getClassName=function(){return"Stop"},Ct([(0,e.Property)("")],i.prototype,"color",void 0),Ct([(0,e.Property)(0)],i.prototype,"offset",void 0),Ct([(0,e.Property)(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),Lt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Pt(i,t),Ct([(0,e.Collection)([],Mt)],i.prototype,"stops",void 0),Ct([(0,e.Property)("None")],i.prototype,"type",void 0),Ct([(0,e.Property)("")],i.prototype,"id",void 0),i}(e.ChildProperty),Et=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Pt(i,t),Ct([(0,e.Property)(0)],i.prototype,"x1",void 0),Ct([(0,e.Property)(0)],i.prototype,"x2",void 0),Ct([(0,e.Property)(0)],i.prototype,"y1",void 0),Ct([(0,e.Property)(0)],i.prototype,"y2",void 0),Ct([(0,e.Property)(0)],i.prototype,"cx",void 0),Ct([(0,e.Property)(0)],i.prototype,"cy",void 0),Ct([(0,e.Property)(0)],i.prototype,"fx",void 0),Ct([(0,e.Property)(0)],i.prototype,"fy",void 0),Ct([(0,e.Property)(50)],i.prototype,"r",void 0),i}(Lt),zt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Pt(i,t),Ct([(0,e.Property)(0)],i.prototype,"x1",void 0),Ct([(0,e.Property)(0)],i.prototype,"x2",void 0),Ct([(0,e.Property)(0)],i.prototype,"y1",void 0),Ct([(0,e.Property)(0)],i.prototype,"y2",void 0),i}(Lt),kt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Pt(i,t),Ct([(0,e.Property)(0)],i.prototype,"cx",void 0),Ct([(0,e.Property)(0)],i.prototype,"cy",void 0),Ct([(0,e.Property)(0)],i.prototype,"fx",void 0),Ct([(0,e.Property)(0)],i.prototype,"fy",void 0),Ct([(0,e.Property)(50)],i.prototype,"r",void 0),i}(Lt),Bt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Pt(i,t),Ct([(0,e.Property)("white")],i.prototype,"fill",void 0),Ct([(0,e.Property)("black")],i.prototype,"strokeColor",void 0),Ct([(0,e.Property)("")],i.prototype,"strokeDashArray",void 0),Ct([(0,e.Property)(1)],i.prototype,"strokeWidth",void 0),Ct([(0,e.Property)(1)],i.prototype,"opacity",void 0),Ct([(0,e.ComplexFactory)(Tt)],i.prototype,"gradient",void 0),i}(e.ChildProperty),Rt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Pt(i,t),Ct([(0,e.Property)("transparent")],i.prototype,"fill",void 0),i}(Bt),Nt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Pt(i,t),Ct([(0,e.Property)("black")],i.prototype,"color",void 0),Ct([(0,e.Property)("Arial")],i.prototype,"fontFamily",void 0),Ct([(0,e.Property)(12)],i.prototype,"fontSize",void 0),Ct([(0,e.Property)(!1)],i.prototype,"italic",void 0),Ct([(0,e.Property)(!1)],i.prototype,"bold",void 0),Ct([(0,e.Property)("CollapseSpace")],i.prototype,"whiteSpace",void 0),Ct([(0,e.Property)("WrapWithOverflow")],i.prototype,"textWrapping",void 0),Ct([(0,e.Property)("Center")],i.prototype,"textAlign",void 0),Ct([(0,e.Property)("None")],i.prototype,"textDecoration",void 0),Ct([(0,e.Property)("Wrap")],i.prototype,"textOverflow",void 0),Ct([(0,e.Property)("transparent")],i.prototype,"fill",void 0),i}(Bt),jt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Pt(i,t),Ct([(0,e.Property)("white")],i.prototype,"fill",void 0),Ct([(0,e.Property)("Wrap")],i.prototype,"textOverflow",void 0),Ct([(0,e.Property)(1)],i.prototype,"strokeWidth",void 0),Ct([(0,e.ComplexFactory)(Tt)],i.prototype,"gradient",void 0),Ct([(0,e.Property)(1)],i.prototype,"opacity",void 0),Ct([(0,e.Property)(!1)],i.prototype,"italic",void 0),Ct([(0,e.Property)("")],i.prototype,"strokeDashArray",void 0),Ct([(0,e.Property)("black")],i.prototype,"color",void 0),Ct([(0,e.Property)(12)],i.prototype,"fontSize",void 0),Ct([(0,e.Property)("Arial")],i.prototype,"fontFamily",void 0),Ct([(0,e.Property)("CollapseSpace")],i.prototype,"whiteSpace",void 0),Ct([(0,e.Property)("Center")],i.prototype,"textAlign",void 0),Ct([(0,e.Property)("None")],i.prototype,"textDecoration",void 0),Ct([(0,e.Property)(!1)],i.prototype,"bold",void 0),Ct([(0,e.Property)("black")],i.prototype,"strokeColor",void 0),Ct([(0,e.Property)("WrapWithOverflow")],i.prototype,"textWrapping",void 0),i}(e.ChildProperty);!function(t){t[t.Default=0]="Default",t[t.expandNode=2]="expandNode",t[t.interaction=4]="interaction",t[t.GroupingInProgress=8]="GroupingInProgress",t[t.GroupClipboardInProcess=16]="GroupClipboardInProcess",t[t.ClearObject=32]="ClearObject"}($||($={})),function(t){t[t.Horizontal=1]="Horizontal",t[t.Vertical=2]="Vertical",t[t.Both=3]="Both",t[t.None=0]="None"}(tt||(tt={})),function(t){t[t.Visible=1]="Visible",t[t.Hidden=2]="Hidden",t[t.Hover=4]="Hover",t[t.Connect=8]="Connect"}(et||(et={})),function(t){t[t.None=0]="None",t[t.ShowHorizontalLines=1]="ShowHorizontalLines",t[t.ShowVerticalLines=2]="ShowVerticalLines",t[t.ShowLines=3]="ShowLines",t[t.SnapToHorizontalLines=4]="SnapToHorizontalLines",t[t.SnapToVerticalLines=8]="SnapToVerticalLines",t[t.SnapToLines=12]="SnapToLines",t[t.SnapToObject=16]="SnapToObject",t[t.All=31]="All"}(it||(it={})),function(t){t[t.None=1]="None",t[t.ConnectorSourceThumb=2]="ConnectorSourceThumb",t[t.ConnectorTargetThumb=4]="ConnectorTargetThumb",t[t.ResizeSouthEast=8]="ResizeSouthEast",t[t.ResizeSouthWest=16]="ResizeSouthWest",t[t.ResizeNorthEast=32]="ResizeNorthEast",t[t.ResizeNorthWest=64]="ResizeNorthWest",t[t.ResizeEast=128]="ResizeEast",t[t.ResizeWest=256]="ResizeWest",t[t.ResizeSouth=512]="ResizeSouth",t[t.ResizeNorth=1024]="ResizeNorth",t[t.Rotate=2048]="Rotate",t[t.UserHandle=4096]="UserHandle",t[t.ToolTip=8192]="ToolTip",t[t.ResizeAll=2046]="ResizeAll",t[t.All=16382]="All"}(rt||(rt={})),function(t){t.SamePoint="SamePoint",t.DifferentPoint="DifferentPoint"}(nt||(nt={})),function(t){t.Linear="Linear",t.Nonlinear="Nonlinear"}(ot||(ot={})),function(t){t[t.None=1]="None",t[t.Select=2]="Select",t[t.Delete=4]="Delete",t[t.Drag=8]="Drag",t[t.DragSourceEnd=16]="DragSourceEnd",t[t.DragTargetEnd=32]="DragTargetEnd",t[t.DragSegmentThumb=64]="DragSegmentThumb",t[t.AllowDrop=128]="AllowDrop",t[t.Bridging=256]="Bridging",t[t.BridgeObstacle=512]="BridgeObstacle",t[t.InheritBridging=1024]="InheritBridging",t[t.PointerEvents=2048]="PointerEvents",t[t.Tooltip=4096]="Tooltip",t[t.InheritTooltip=8192]="InheritTooltip",t[t.Interaction=4218]="Interaction",t[t.ReadOnly=16384]="ReadOnly",t[t.LineRouting=32768]="LineRouting",t[t.InheritLineRouting=65536]="InheritLineRouting",t[t.ConnectToNearByNode=131072]="ConnectToNearByNode",t[t.ConnectToNearByPort=262144]="ConnectToNearByPort",t[t.ConnectToNearByElement=393216]="ConnectToNearByElement",t[t.InheritSegmentThumbShape=524288]="InheritSegmentThumbShape",t[t.InheritSegmentThumbSize=1048576]="InheritSegmentThumbSize",t[t.Default=2043454]="Default"}(at||(at={})),function(t){t[t.ReadOnly=2]="ReadOnly",t[t.InheritReadOnly=4]="InheritReadOnly",t[t.Select=8]="Select",t[t.Drag=16]="Drag",t[t.Resize=32]="Resize",t[t.Rotate=64]="Rotate",t[t.Tooltip=128]="Tooltip",t[t.Interaction=120]="Interaction",t[t.None=0]="None"}(st||(st={})),function(t){t[t.None=0]="None",t[t.Select=2]="Select",t[t.Drag=4]="Drag",t[t.Rotate=8]="Rotate",t[t.Shadow=16]="Shadow",t[t.PointerEvents=32]="PointerEvents",t[t.Delete=64]="Delete",t[t.InConnect=128]="InConnect",t[t.OutConnect=256]="OutConnect",t[t.Individual=512]="Individual",t[t.Expandable=1024]="Expandable",t[t.AllowDrop=2048]="AllowDrop",t[t.Inherit=78]="Inherit",t[t.ResizeNorthEast=4096]="ResizeNorthEast",t[t.ResizeEast=8192]="ResizeEast",t[t.ResizeSouthEast=16384]="ResizeSouthEast",t[t.ResizeSouth=32768]="ResizeSouth",t[t.ResizeSouthWest=65536]="ResizeSouthWest",t[t.ResizeWest=131072]="ResizeWest",t[t.ResizeNorthWest=262144]="ResizeNorthWest",t[t.ResizeNorth=524288]="ResizeNorth",t[t.Resize=1044480]="Resize",t[t.AspectRatio=1048576]="AspectRatio",t[t.Tooltip=2097152]="Tooltip",t[t.InheritTooltip=4194304]="InheritTooltip",t[t.ReadOnly=8388608]="ReadOnly",t[t.HideThumbs=16777216]="HideThumbs",t[t.AllowMovingOutsideLane=33554432]="AllowMovingOutsideLane",t[t.Default=5240814]="Default"}(ht||(ht={})),function(t){t[t.None=0]="None",t[t.ElementIsPort=2]="ElementIsPort",t[t.ElementIsGroup=4]="ElementIsGroup",t[t.HorizontalLaneHeader=8]="HorizontalLaneHeader"}(dt||(dt={})),function(t){t[t.Rotate=2]="Rotate",t[t.ConnectorSource=4]="ConnectorSource",t[t.ConnectorTarget=8]="ConnectorTarget",t[t.ResizeNorthEast=16]="ResizeNorthEast",t[t.ResizeEast=32]="ResizeEast",t[t.ResizeSouthEast=64]="ResizeSouthEast",t[t.ResizeSouth=128]="ResizeSouth",t[t.ResizeSouthWest=256]="ResizeSouthWest",t[t.ResizeWest=512]="ResizeWest",t[t.ResizeNorthWest=1024]="ResizeNorthWest",t[t.ResizeNorth=2048]="ResizeNorth",t[t.Default=4094]="Default"}(lt||(lt={})),function(t){t[t.None=1]="None",t[t.Bridging=2]="Bridging",t[t.UndoRedo=4]="UndoRedo",t[t.Tooltip=8]="Tooltip",t[t.UserInteraction=16]="UserInteraction",t[t.ApiUpdate=32]="ApiUpdate",t[t.PageEditable=48]="PageEditable",t[t.Zoom=64]="Zoom",t[t.PanX=128]="PanX",t[t.PanY=256]="PanY",t[t.Pan=384]="Pan",t[t.ZoomTextEdit=512]="ZoomTextEdit",t[t.Virtualization=1024]="Virtualization",t[t.LineRouting=2048]="LineRouting",t[t.AvoidLineOverlapping=4096]="AvoidLineOverlapping",t[t.RestrictNegativeAxisDragDrop=8192]="RestrictNegativeAxisDragDrop",t[t.AutomaticPortCreation=16384]="AutomaticPortCreation",t[t.Default=500]="Default"}(ct||(ct={})),function(t){t[t.None=0]="None",t[t.SingleSelect=1]="SingleSelect",t[t.MultipleSelect=2]="MultipleSelect",t[t.ZoomPan=4]="ZoomPan",t[t.DrawOnce=8]="DrawOnce",t[t.ContinuousDraw=16]="ContinuousDraw",t[t.Default=3]="Default"}(pt||(pt={})),function(t){t[t.Self=1]="Self",t[t.Parent=2]="Parent"}(gt||(gt={})),function(t){t[t.Canvas=0]="Canvas",t[t.Svg=1]="Svg"}(ut||(ut={})),function(t){t[t.None=0]="None",t[t.Control=1]="Control",t[t.Meta=1]="Meta",t[t.Alt=2]="Alt",t[t.Shift=4]="Shift"}(ft||(ft={})),function(t){t[t.None=null]="None",t[t.Number0=0]="Number0",t[t.Number1=1]="Number1",t[t.Number2=2]="Number2",t[t.Number3=3]="Number3",t[t.Number4=4]="Number4",t[t.Number5=5]="Number5",t[t.Number6=6]="Number6",t[t.Number7=7]="Number7",t[t.Number8=8]="Number8",t[t.Number9=9]="Number9",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.Left=37]="Left",t[t.Up=38]="Up",t[t.Right=39]="Right",t[t.Down=40]="Down",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.Delete=46]="Delete",t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.BackSpace=8]="BackSpace",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.Star=56]="Star",t[t.Plus=187]="Plus",t[t.Minus=189]="Minus",t[t.BracketLeft=219]="BracketLeft",t[t.BracketRight=221]="BracketRight"}(mt||(mt={})),function(t){t[t.Render=2]="Render",t[t.PublicMethod=4]="PublicMethod",t[t.ToolAction=8]="ToolAction",t[t.UndoRedo=16]="UndoRedo",t[t.TextEdit=32]="TextEdit",t[t.Group=64]="Group",t[t.Clear=128]="Clear",t[t.PreventClearSelection=256]="PreventClearSelection",t[t.Interactions=512]="Interactions",t[t.PreventHistory=1024]="PreventHistory",t[t.PreventIconsUpdate=2048]="PreventIconsUpdate",t[t.PreventCollectionChangeOnDragOver=4096]="PreventCollectionChangeOnDragOver",t[t.PreventZIndexOnDragging=8192]="PreventZIndexOnDragging",t[t.isGroupDragging=16384]="isGroupDragging",t[t.DragUsingMouse=32768]="DragUsingMouse",t[t.DecoratorPropertyChange=65536]="DecoratorPropertyChange",t[t.PreventLaneContainerUpdate=131072]="PreventLaneContainerUpdate"}(yt||(yt={})),function(t){t[t.None=2]="None",t[t.DrawSelectorBorder=4]="DrawSelectorBorder",t[t.PreventRenderSelector=8]="PreventRenderSelector"}(vt||(vt={})),function(t){t[t.None=0]="None",t[t.PreventDrag=2]="PreventDrag",t[t.PreventScale=4]="PreventScale",t[t.PreventDataInit=8]="PreventDataInit",t[t.hScrollbarMoved=16]="hScrollbarMoved",t[t.vScrollbarMoved=32]="vScrollbarMoved",t[t.AnimationClick=64]="AnimationClick",t[t.EnableGroupAction=128]="EnableGroupAction",t[t.PanInProgress=256]="PanInProgress",t[t.OverViewAction=512]="OverViewAction"}(bt||(bt={})),function(t){t[t.None=0]="None",t[t.PropertyChange=1024]="PropertyChange",t[t.Interaction=2048]="Interaction"}(St||(St={})),function(t){t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Three=3]="Three",t[t.Four=4]="Four",t[t.Five=5]="Five"}(wt||(wt={})),function(t){t[t.collectionChange=0]="collectionChange",t[t.rotateChange=1]="rotateChange",t[t.positionChange=2]="positionChange",t[t.propertyChange=3]="propertyChange",t[t.selectionChange=4]="selectionChange",t[t.sizeChange=5]="sizeChange",t[t.drop=6]="drop",t[t.sourcePointChange=7]="sourcePointChange",t[t.targetPointChange=8]="targetPointChange",t[t.connectionChange=9]="connectionChange",t[t.animationComplete=10]="animationComplete",t[t.click=11]="click",t[t.doubleClick=12]="doubleClick",t[t.scrollChange=13]="scrollChange",t[t.dragEnter=14]="dragEnter",t[t.dragLeave=15]="dragLeave",t[t.dragOver=16]="dragOver",t[t.textEdit=17]="textEdit",t[t.paletteSelectionChange=18]="paletteSelectionChange",t[t.historyChange=19]="historyChange",t[t.mouseEnter=20]="mouseEnter",t[t.mouseLeave=21]="mouseLeave",t[t.mouseOver=22]="mouseOver",t[t.expandStateChange=23]="expandStateChange",t[t.segmentCollectionChange=24]="segmentCollectionChange",t[t.commandExecute=25]="commandExecute",t[t.historyStateChange=26]="historyStateChange",t[t.onUserHandleMouseDown=27]="onUserHandleMouseDown",t[t.onUserHandleMouseUp=28]="onUserHandleMouseUp",t[t.onUserHandleMouseEnter=29]="onUserHandleMouseEnter",t[t.onUserHandleMouseLeave=30]="onUserHandleMouseLeave",t[t.onImageLoad=31]="onImageLoad",t[t.onDoBindingInit=32]="onDoBindingInit",t[t.keyUp=33]="keyUp",t[t.keyDown=34]="keyDown",t[t.fixedUserHandleClick=35]="fixedUserHandleClick",t[t.elementDraw=36]="elementDraw",t[t.mouseWheel=37]="mouseWheel",t[t.segmentChange=38]="segmentChange",t[t.onFixedUserHandleMouseDown=39]="onFixedUserHandleMouseDown",t[t.onFixedUserHandleMouseUp=40]="onFixedUserHandleMouseUp",t[t.onFixedUserHandleMouseEnter=41]="onFixedUserHandleMouseEnter",t[t.onFixedUserHandleMouseLeave=42]="onFixedUserHandleMouseLeave",t[t.loaded=43]="loaded",t[t.layoutUpdated=44]="layoutUpdated"}(xt||(xt={})),function(t){t[t.None=1]="None",t[t.Drag=2]="Drag",t[t.Draw=4]="Draw",t[t.InConnect=8]="InConnect",t[t.OutConnect=16]="OutConnect",t[t.ToolTip=32]="ToolTip",t[t.InheritTooltip=64]="InheritTooltip",t[t.Default=24]="Default"}(It||(It={}));var Ht,Wt,_t="contextMenuClick",Yt="contextMenuOpen",Ft="contextMenuBeforeItemRender";!function(t){t[t.None=1]="None",t[t.Source=2]="Source",t[t.Target=4]="Target",t[t.Intermediate=8]="Intermediate",t[t.All=14]="All"}(Ht||(Ht={})),function(t){t[t.None=0]="None",t[t.SymmetricAngle=2]="SymmetricAngle",t[t.SymmetricDistance=4]="SymmetricDistance",t[t.Default=6]="Default"}(Wt||(Wt={}));var Xt=function(){function t(){this.pivot={x:.5,y:.5},this.isDirt=!0,this.isExport=!1,this.exportScaleValue={x:0,y:0},this.exportScaleOffset={x:0,y:0},this.canApplyStyle=!0,this.visible=!0,this.offsetX=0,this.offsetY=0,this.cornerRadius=0,this.minHeight=void 0,this.minWidth=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.width=void 0,this.height=void 0,this.rotateAngle=0,this.margin={left:0,right:0,top:0,bottom:0},this.connectionDirection="Auto",this.horizontalAlignment="Auto",this.verticalAlignment="Auto",this.flip=tt.None,this.flipMode="All",this.relativeMode="Point",this.transform=gt.Self|gt.Parent,this.style={fill:"white",strokeColor:"black",opacity:1,strokeWidth:1},this.desiredSize=new i,this.actualSize=new i,this.parentTransform=0,this.preventContainer=!1,this.isSvgRender=!1,this.bounds=new w(0,0,0,0),this.shadow=null,this.description="",this.staticSize=!1,this.shapeType="",this.isRectElement=!1,this.isCalculateDesiredSize=!0,this.flipOffset={x:0,y:0},this.elementActions=dt.None,this.inversedAlignment=!0,this.position=void 0,this.unitMode=void 0,this.float=!1,this.floatingBounds=void 0}return t.prototype.setOffsetWithRespectToBounds=function(t,e,i){this.unitMode=i,this.position={x:t,y:e}},t.prototype.getAbsolutePosition=function(t){if(void 0!==this.position)return"Absolute"===this.unitMode?this.position:{x:this.position.x*t.width,y:this.position.y*t.height}},Object.defineProperty(t.prototype,"outerBounds",{get:function(){return this.floatingBounds||this.bounds},set:function(t){this.floatingBounds=t},enumerable:!0,configurable:!0}),t.prototype.measure=function(t,e,r){var n=void 0!==this.width?this.width:(t.width||0)-this.margin.left-this.margin.right,o=void 0!==this.height?this.height:(t.height||0)-this.margin.top-this.margin.bottom;return this.id&&0===o&&this.elementActions&dt.HorizontalLaneHeader&&(o=this.actualSize.height),this.desiredSize=new i(n,o),this.isCalculateDesiredSize&&(this.desiredSize=this.validateDesiredSize(this.desiredSize,t)),this.desiredSize},t.prototype.arrange=function(t){return this.actualSize=t,this.updateBounds(),this.actualSize},t.prototype.updateBounds=function(){this.bounds=R(this)},t.prototype.validateDesiredSize=function(t,e){return!this.isRectElement||this.width||this.minWidth||this.maxWidth||(t.width=50),!this.isRectElement||this.height||this.minHeight||this.maxHeight||(t.height=50),(void 0===t||void 0!==this.width&&void 0!==this.height)&&((t=t||new i).width=void 0===this.width?(e.width||0)-this.margin.left-this.margin.right:this.width,t.height=void 0===this.height?(e.height||0)-this.margin.top-this.margin.bottom:this.height),void 0!==this.minWidth&&(t.width=Math.max(t.width,this.minWidth)),void 0!==this.minHeight&&(t.height=Math.max(t.height,this.minHeight)),void 0!==this.maxWidth&&0!==this.maxWidth&&(t.width=Math.min(t.width,this.maxWidth)),void 0!==this.maxHeight&&0!==this.maxHeight&&(t.height=Math.min(t.height,this.maxHeight)),t},t}(),Ut=function(){var t=function(e,i){return t=Object.s