From bcf517659416fe335beda895f2206710d3295282 Mon Sep 17 00:00:00 2001 From: Simon Sarris Date: Wed, 14 Oct 2015 12:07:24 -0400 Subject: [PATCH] 1.5.10 --- api/index.html | 2 +- api/symbols/ActionTool.html | 2 +- api/symbols/Adornment.html | 2 +- api/symbols/AnimationManager.html | 2 +- api/symbols/Binding.html | 2 +- api/symbols/Brush.html | 2 +- api/symbols/ChangedEvent.html | 2 +- api/symbols/CircularEdge.html | 2 +- api/symbols/CircularLayout.html | 2 +- api/symbols/CircularVertex.html | 2 +- api/symbols/ClickCreatingTool.html | 2 +- api/symbols/ClickSelectingTool.html | 2 +- api/symbols/CommandHandler.html | 2 +- api/symbols/ContextMenuTool.html | 2 +- api/symbols/Diagram.html | 2 +- api/symbols/DiagramEvent.html | 2 +- api/symbols/DragSelectingTool.html | 2 +- api/symbols/DraggingTool.html | 2 +- api/symbols/ForceDirectedEdge.html | 2 +- api/symbols/ForceDirectedLayout.html | 2 +- api/symbols/ForceDirectedVertex.html | 2 +- api/symbols/Geometry.html | 2 +- api/symbols/GraphLinksModel.html | 2 +- api/symbols/GraphObject.html | 2 +- api/symbols/GridLayout.html | 2 +- api/symbols/Group.html | 2 +- api/symbols/InputEvent.html | 2 +- api/symbols/Iterable.html | 2 +- api/symbols/Iterator.html | 2 +- api/symbols/Layer.html | 2 +- api/symbols/LayeredDigraphEdge.html | 2 +- api/symbols/LayeredDigraphLayout.html | 2 +- api/symbols/LayeredDigraphVertex.html | 2 +- api/symbols/Layout.html | 2 +- api/symbols/LayoutEdge.html | 2 +- api/symbols/LayoutNetwork.html | 2 +- api/symbols/LayoutVertex.html | 2 +- api/symbols/Link.html | 2 +- api/symbols/LinkReshapingTool.html | 2 +- api/symbols/LinkingBaseTool.html | 2 +- api/symbols/LinkingTool.html | 2 +- api/symbols/List.html | 2 +- api/symbols/Map.html | 2 +- api/symbols/Margin.html | 2 +- api/symbols/Model.html | 2 +- api/symbols/Node.html | 2 +- api/symbols/Overview.html | 2 +- api/symbols/Palette.html | 2 +- api/symbols/Panel.html | 2 +- api/symbols/PanningTool.html | 2 +- api/symbols/Part.html | 2 +- api/symbols/PathFigure.html | 2 +- api/symbols/PathSegment.html | 2 +- api/symbols/Picture.html | 2 +- api/symbols/Placeholder.html | 2 +- api/symbols/Point.html | 2 +- api/symbols/Rect.html | 2 +- api/symbols/RelinkingTool.html | 2 +- api/symbols/ResizingTool.html | 2 +- api/symbols/RotatingTool.html | 2 +- api/symbols/RowColumnDefinition.html | 2 +- api/symbols/Set.html | 2 +- api/symbols/Shape.html | 2 +- api/symbols/Size.html | 2 +- api/symbols/Spot.html | 2 +- api/symbols/TextBlock.html | 2 +- api/symbols/TextEditingTool.html | 2 +- api/symbols/Tool.html | 2 +- api/symbols/ToolManager.html | 2 +- api/symbols/Transaction.html | 2 +- api/symbols/TreeEdge.html | 2 +- api/symbols/TreeLayout.html | 2 +- api/symbols/TreeModel.html | 2 +- api/symbols/TreeVertex.html | 2 +- api/symbols/UndoManager.html | 2 +- doc/changelog.html | 9 + release/go-debug.js | 2273 +++++++++++++------------ release/go.js | 772 ++++----- samples/IVRtree.html | 1 + samples/PERT.html | 1 + samples/arrowheads.html | 1 + samples/flowgrammer.html | 1 + samples/friendWheel.html | 1 + samples/gLayout.html | 1 + samples/gantt.html | 1 + samples/genogram.html | 1 + samples/grafcet.html | 1 + samples/grouping.html | 1 + samples/hoverButtons.html | 1 + samples/htmlDragDrop.html | 1 + samples/htmlInteraction.html | 1 + samples/htmlLightBoxContextMenu.html | 1 + samples/icons.html | 1 + samples/incrementalTree.html | 1 + samples/interactiveForce.html | 1 + samples/jQueryDragDrop.html | 1 + samples/kanban.html | 1 + samples/kittenMonitor.html | 1 + samples/ldLayout.html | 1 + samples/linksToLinks.html | 1 + samples/localView.html | 1 + samples/logicCircuit.html | 1 + samples/macros.html | 1 + samples/magnifier.html | 1 + samples/mindMap.html | 1 + samples/minimal.html | 1 + samples/minimalJSON.html | 1 + samples/minimalXML.html | 1 + samples/multiArrow.html | 1 + samples/multiNodePathLinks.html | 1 + samples/navigation.html | 1 + samples/network.html | 1 + samples/orgChartEditor.html | 1 + samples/orgChartExtras.html | 1 + samples/orgChartStatic.html | 1 + samples/pageFlow.html | 1 + samples/parseTree.html | 1 + samples/pieCharts.html | 1 + samples/pipeTree.html | 1 + samples/pipes.html | 1 + samples/planogram.html | 4 + samples/processFlow.html | 1 + samples/radial.html | 1 + samples/records.html | 1 + samples/regrouping.html | 1 + samples/regroupingScaled.html | 1 + samples/regroupingTreeView.html | 1 + samples/require.html | 1 + samples/sankey.html | 1 + samples/scrollModes.html | 1 + samples/seatingChart.html | 1 + samples/selectableFields.html | 1 + samples/selectablePorts.html | 1 + samples/sequenceDiagram.html | 1 + samples/sequentialFunction.html | 1 + samples/shapes.html | 1 + samples/sharedStates.html | 1 + samples/shopFloorMonitor.html | 1 + samples/spacingZoom.html | 1 + samples/sparklineGraphs.html | 1 + samples/spreadsheet.html | 1 + samples/stateChart.html | 1 + samples/swimBands.html | 1 + samples/swimLanesVertical.html | 1 + samples/swimlanes.html | 1 + samples/tLayout.html | 1 + samples/tabs.html | 1 + samples/taperedLinks.html | 1 + samples/tiger.html | 1 + samples/timeline.html | 1 + samples/tournament.html | 1 + samples/treeView.html | 1 + samples/twoDiagrams.html | 5 +- samples/umlClass.html | 1 + samples/unlisted.html | 1 + samples/updateDemo.html | 1 + samples/virtualized.html | 1 + samples/virtualizedForceLayout.html | 1 + samples/virtualizedTree.html | 13 +- samples/virtualizedTreeLayout.html | 1 + samples/visualTree.html | 1 + samples/visualTreeGrouping.html | 1 + 162 files changed, 1704 insertions(+), 1603 deletions(-) diff --git a/api/index.html b/api/index.html index 274238680..879250f58 100644 --- a/api/index.html +++ b/api/index.html @@ -970,7 +970,7 @@

Collection Classes

GoJS Class Index

diff --git a/api/symbols/ActionTool.html b/api/symbols/ActionTool.html index cdb59ab5e..49f1cf920 100644 --- a/api/symbols/ActionTool.html +++ b/api/symbols/ActionTool.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Adornment.html b/api/symbols/Adornment.html index 0727beb6b..54d4cf51a 100644 --- a/api/symbols/Adornment.html +++ b/api/symbols/Adornment.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/AnimationManager.html b/api/symbols/AnimationManager.html index cb2a54cdd..bac3dfe76 100644 --- a/api/symbols/AnimationManager.html +++ b/api/symbols/AnimationManager.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Binding.html b/api/symbols/Binding.html index 0b26db1bd..8802bc935 100644 --- a/api/symbols/Binding.html +++ b/api/symbols/Binding.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Brush.html b/api/symbols/Brush.html index b1862dd5d..6592e8bd3 100644 --- a/api/symbols/Brush.html +++ b/api/symbols/Brush.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/ChangedEvent.html b/api/symbols/ChangedEvent.html index 28257f06d..c3647df52 100644 --- a/api/symbols/ChangedEvent.html +++ b/api/symbols/ChangedEvent.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/CircularEdge.html b/api/symbols/CircularEdge.html index bc16d5788..04b826572 100644 --- a/api/symbols/CircularEdge.html +++ b/api/symbols/CircularEdge.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/CircularLayout.html b/api/symbols/CircularLayout.html index cd3fd3f4c..d651f9aff 100644 --- a/api/symbols/CircularLayout.html +++ b/api/symbols/CircularLayout.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/CircularVertex.html b/api/symbols/CircularVertex.html index 6652ce601..200b7af9c 100644 --- a/api/symbols/CircularVertex.html +++ b/api/symbols/CircularVertex.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/ClickCreatingTool.html b/api/symbols/ClickCreatingTool.html index 9d1d2fbde..1dd3eacbe 100644 --- a/api/symbols/ClickCreatingTool.html +++ b/api/symbols/ClickCreatingTool.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/ClickSelectingTool.html b/api/symbols/ClickSelectingTool.html index 18617d159..15aa6ddf0 100644 --- a/api/symbols/ClickSelectingTool.html +++ b/api/symbols/ClickSelectingTool.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/CommandHandler.html b/api/symbols/CommandHandler.html index 8f00093b8..94ab5df0d 100644 --- a/api/symbols/CommandHandler.html +++ b/api/symbols/CommandHandler.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/ContextMenuTool.html b/api/symbols/ContextMenuTool.html index c011e409b..01cf8755e 100644 --- a/api/symbols/ContextMenuTool.html +++ b/api/symbols/ContextMenuTool.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Diagram.html b/api/symbols/Diagram.html index 6753726a8..66801fb5c 100644 --- a/api/symbols/Diagram.html +++ b/api/symbols/Diagram.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/DiagramEvent.html b/api/symbols/DiagramEvent.html index 6b3578697..3b85d4baa 100644 --- a/api/symbols/DiagramEvent.html +++ b/api/symbols/DiagramEvent.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/DragSelectingTool.html b/api/symbols/DragSelectingTool.html index 88de40f7b..6ac38716f 100644 --- a/api/symbols/DragSelectingTool.html +++ b/api/symbols/DragSelectingTool.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/DraggingTool.html b/api/symbols/DraggingTool.html index 59dca1dc5..09d7b2d3f 100644 --- a/api/symbols/DraggingTool.html +++ b/api/symbols/DraggingTool.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/ForceDirectedEdge.html b/api/symbols/ForceDirectedEdge.html index 9d35273e6..a9d9af597 100644 --- a/api/symbols/ForceDirectedEdge.html +++ b/api/symbols/ForceDirectedEdge.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/ForceDirectedLayout.html b/api/symbols/ForceDirectedLayout.html index 69922f420..18e2a5798 100644 --- a/api/symbols/ForceDirectedLayout.html +++ b/api/symbols/ForceDirectedLayout.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/ForceDirectedVertex.html b/api/symbols/ForceDirectedVertex.html index d5181d2dc..462da1717 100644 --- a/api/symbols/ForceDirectedVertex.html +++ b/api/symbols/ForceDirectedVertex.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Geometry.html b/api/symbols/Geometry.html index 54aa4e4e6..2546f44a4 100644 --- a/api/symbols/Geometry.html +++ b/api/symbols/Geometry.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/GraphLinksModel.html b/api/symbols/GraphLinksModel.html index c5001826a..646902d6a 100644 --- a/api/symbols/GraphLinksModel.html +++ b/api/symbols/GraphLinksModel.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/GraphObject.html b/api/symbols/GraphObject.html index 269bc9b07..cd9adfe6c 100644 --- a/api/symbols/GraphObject.html +++ b/api/symbols/GraphObject.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/GridLayout.html b/api/symbols/GridLayout.html index 82754ac25..fdb6d31e8 100644 --- a/api/symbols/GridLayout.html +++ b/api/symbols/GridLayout.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Group.html b/api/symbols/Group.html index eabeae39e..b9d3d855e 100644 --- a/api/symbols/Group.html +++ b/api/symbols/Group.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/InputEvent.html b/api/symbols/InputEvent.html index 375637112..da2bfbdd3 100644 --- a/api/symbols/InputEvent.html +++ b/api/symbols/InputEvent.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Iterable.html b/api/symbols/Iterable.html index 2eb6c9c24..f264432f3 100644 --- a/api/symbols/Iterable.html +++ b/api/symbols/Iterable.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Iterator.html b/api/symbols/Iterator.html index 76f6b5b8f..7c12c27bc 100644 --- a/api/symbols/Iterator.html +++ b/api/symbols/Iterator.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Layer.html b/api/symbols/Layer.html index 48161c0e5..6c9156ae5 100644 --- a/api/symbols/Layer.html +++ b/api/symbols/Layer.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/LayeredDigraphEdge.html b/api/symbols/LayeredDigraphEdge.html index 5a4f1c89b..21da7b1aa 100644 --- a/api/symbols/LayeredDigraphEdge.html +++ b/api/symbols/LayeredDigraphEdge.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/LayeredDigraphLayout.html b/api/symbols/LayeredDigraphLayout.html index cd3817312..997cc03d6 100644 --- a/api/symbols/LayeredDigraphLayout.html +++ b/api/symbols/LayeredDigraphLayout.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/LayeredDigraphVertex.html b/api/symbols/LayeredDigraphVertex.html index 58965c618..bbea80dc6 100644 --- a/api/symbols/LayeredDigraphVertex.html +++ b/api/symbols/LayeredDigraphVertex.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Layout.html b/api/symbols/Layout.html index f2c91d1df..635f9325d 100644 --- a/api/symbols/Layout.html +++ b/api/symbols/Layout.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/LayoutEdge.html b/api/symbols/LayoutEdge.html index fae997d8c..1936060d6 100644 --- a/api/symbols/LayoutEdge.html +++ b/api/symbols/LayoutEdge.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/LayoutNetwork.html b/api/symbols/LayoutNetwork.html index c70d75e77..52a13f420 100644 --- a/api/symbols/LayoutNetwork.html +++ b/api/symbols/LayoutNetwork.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/LayoutVertex.html b/api/symbols/LayoutVertex.html index c60214ffb..c530e7e74 100644 --- a/api/symbols/LayoutVertex.html +++ b/api/symbols/LayoutVertex.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Link.html b/api/symbols/Link.html index 67924f0b7..aac552ebc 100644 --- a/api/symbols/Link.html +++ b/api/symbols/Link.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/LinkReshapingTool.html b/api/symbols/LinkReshapingTool.html index e91eedbe9..0002a4ba2 100644 --- a/api/symbols/LinkReshapingTool.html +++ b/api/symbols/LinkReshapingTool.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/LinkingBaseTool.html b/api/symbols/LinkingBaseTool.html index 1233a2feb..684e9e031 100644 --- a/api/symbols/LinkingBaseTool.html +++ b/api/symbols/LinkingBaseTool.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/LinkingTool.html b/api/symbols/LinkingTool.html index 186aa0742..a910081a3 100644 --- a/api/symbols/LinkingTool.html +++ b/api/symbols/LinkingTool.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/List.html b/api/symbols/List.html index 0e77f9196..12a345aa7 100644 --- a/api/symbols/List.html +++ b/api/symbols/List.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Map.html b/api/symbols/Map.html index e5351368e..d53ba9ac8 100644 --- a/api/symbols/Map.html +++ b/api/symbols/Map.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Margin.html b/api/symbols/Margin.html index 57e32b320..945193a2c 100644 --- a/api/symbols/Margin.html +++ b/api/symbols/Margin.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Model.html b/api/symbols/Model.html index ec652c45a..804265da3 100644 --- a/api/symbols/Model.html +++ b/api/symbols/Model.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Node.html b/api/symbols/Node.html index 8a65a648d..495723f65 100644 --- a/api/symbols/Node.html +++ b/api/symbols/Node.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Overview.html b/api/symbols/Overview.html index 2b3f17a04..5bfb6c905 100644 --- a/api/symbols/Overview.html +++ b/api/symbols/Overview.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Palette.html b/api/symbols/Palette.html index 8f4bb6f59..3d587e8fd 100644 --- a/api/symbols/Palette.html +++ b/api/symbols/Palette.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Panel.html b/api/symbols/Panel.html index 259e3e2b4..1a3da786e 100644 --- a/api/symbols/Panel.html +++ b/api/symbols/Panel.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/PanningTool.html b/api/symbols/PanningTool.html index fe38eb568..7867e33e1 100644 --- a/api/symbols/PanningTool.html +++ b/api/symbols/PanningTool.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Part.html b/api/symbols/Part.html index e6310e3d2..668a680ed 100644 --- a/api/symbols/Part.html +++ b/api/symbols/Part.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/PathFigure.html b/api/symbols/PathFigure.html index 1037eddc0..11865f960 100644 --- a/api/symbols/PathFigure.html +++ b/api/symbols/PathFigure.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/PathSegment.html b/api/symbols/PathSegment.html index 828fdada5..bd2f32a6e 100644 --- a/api/symbols/PathSegment.html +++ b/api/symbols/PathSegment.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Picture.html b/api/symbols/Picture.html index 3a2238783..5089fcc5c 100644 --- a/api/symbols/Picture.html +++ b/api/symbols/Picture.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Placeholder.html b/api/symbols/Placeholder.html index 00e8cab5d..52548de8e 100644 --- a/api/symbols/Placeholder.html +++ b/api/symbols/Placeholder.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Point.html b/api/symbols/Point.html index bcc2338fe..d863fac2a 100644 --- a/api/symbols/Point.html +++ b/api/symbols/Point.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Rect.html b/api/symbols/Rect.html index 6fb0d6a67..b7c400693 100644 --- a/api/symbols/Rect.html +++ b/api/symbols/Rect.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/RelinkingTool.html b/api/symbols/RelinkingTool.html index 69d8df4ae..89a62354d 100644 --- a/api/symbols/RelinkingTool.html +++ b/api/symbols/RelinkingTool.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/ResizingTool.html b/api/symbols/ResizingTool.html index d59f348e1..8c878c630 100644 --- a/api/symbols/ResizingTool.html +++ b/api/symbols/ResizingTool.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/RotatingTool.html b/api/symbols/RotatingTool.html index a7ba612f4..8d2a3b2ce 100644 --- a/api/symbols/RotatingTool.html +++ b/api/symbols/RotatingTool.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/RowColumnDefinition.html b/api/symbols/RowColumnDefinition.html index 29b955432..2ac46b372 100644 --- a/api/symbols/RowColumnDefinition.html +++ b/api/symbols/RowColumnDefinition.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Set.html b/api/symbols/Set.html index ecb27b994..351d12e7c 100644 --- a/api/symbols/Set.html +++ b/api/symbols/Set.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Shape.html b/api/symbols/Shape.html index a117f3baf..4c11ebcae 100644 --- a/api/symbols/Shape.html +++ b/api/symbols/Shape.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Size.html b/api/symbols/Size.html index 7b8da6486..dc8862ec8 100644 --- a/api/symbols/Size.html +++ b/api/symbols/Size.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Spot.html b/api/symbols/Spot.html index 7f8969252..95d7cc4f9 100644 --- a/api/symbols/Spot.html +++ b/api/symbols/Spot.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/TextBlock.html b/api/symbols/TextBlock.html index d07434952..a50a117e1 100644 --- a/api/symbols/TextBlock.html +++ b/api/symbols/TextBlock.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/TextEditingTool.html b/api/symbols/TextEditingTool.html index 81c52b6a1..28f35ba09 100644 --- a/api/symbols/TextEditingTool.html +++ b/api/symbols/TextEditingTool.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Tool.html b/api/symbols/Tool.html index 13e14fa43..ae6adc4ce 100644 --- a/api/symbols/Tool.html +++ b/api/symbols/Tool.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/ToolManager.html b/api/symbols/ToolManager.html index c4df46fd6..c3287506f 100644 --- a/api/symbols/ToolManager.html +++ b/api/symbols/ToolManager.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/Transaction.html b/api/symbols/Transaction.html index a64133fe6..f7f0c8fda 100644 --- a/api/symbols/Transaction.html +++ b/api/symbols/Transaction.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/TreeEdge.html b/api/symbols/TreeEdge.html index de952a7e7..9c660110a 100644 --- a/api/symbols/TreeEdge.html +++ b/api/symbols/TreeEdge.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/TreeLayout.html b/api/symbols/TreeLayout.html index 15427041e..f5f39669c 100644 --- a/api/symbols/TreeLayout.html +++ b/api/symbols/TreeLayout.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/TreeModel.html b/api/symbols/TreeModel.html index 28728ae69..a8a4b86ad 100644 --- a/api/symbols/TreeModel.html +++ b/api/symbols/TreeModel.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/TreeVertex.html b/api/symbols/TreeVertex.html index 51b21a7f4..ca277ea7c 100644 --- a/api/symbols/TreeVertex.html +++ b/api/symbols/TreeVertex.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/api/symbols/UndoManager.html b/api/symbols/UndoManager.html index d1132513e..6c0798c4e 100644 --- a/api/symbols/UndoManager.html +++ b/api/symbols/UndoManager.html @@ -974,7 +974,7 @@

Collection Classes

diff --git a/doc/changelog.html b/doc/changelog.html index 120ef6cb6..c3d687ca8 100644 --- a/doc/changelog.html +++ b/doc/changelog.html @@ -53,6 +53,15 @@

GoJS® Change Log

} +

Changes for 1.5.10

+
    +
  • + Fixed the way PathSegment.Arcs are calculated and approximated. + This will change computed bounds and hit-testing, which now correctly reflect drawn arcs, + but the bounds changes may cause incompatibilities in apps that depend on the old approximations. +
  • +
+

Changes for 1.5.9

  • diff --git a/release/go-debug.js b/release/go-debug.js index 18d2693ac..31a088b7e 100644 --- a/release/go-debug.js +++ b/release/go-debug.js @@ -1,52 +1,53 @@ /* - * GoJS v1.5.9 JavaScript Library for HTML Diagrams + * GoJS v1.5.10 JavaScript Library for HTML Diagrams * Northwoods Software, http://www.nwoods.com/ * GoJS and Northwoods Software are registered trademarks of Northwoods Software Corporation. * Copyright (C) 1998-2015 by Northwoods Software Corporation. All Rights Reserved. - * THIS SOFTWARE IS LICENSED. THE LICENSE AGREEMENT IS AT: http://www.gojs.net/1.5.9/doc/license.html. + * THIS SOFTWARE IS LICENSED. THE LICENSE AGREEMENT IS AT: http://www.gojs.net/1.5.10/doc/license.html. */ (function(window) { var f,ba={};if(!window.document||void 0===window.document.createElement("canvas").getContext)throw window.console&&window.console.log("The HTML Canvas element is not supported in this browser,or this browser is in Compatibility mode."),Error("The HTML Canvas element is not supported in this browser,or this browser is in Compatibility mode.");if(!Object.defineProperty)throw Error("GoJS requires a newer version of JavaScript"); (function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c=a.length?a.push(c):a.splice(b,0,c):w.l("Cannot insert an object into an HTMLCollection or NodeList: "+c+" at "+b)},Ni:function(a,b){Array.isArray(a)?b>=a.length?a.pop():a.splice(b,1):w.l("Cannot remove an object from an HTMLCollection or NodeList at "+b)},wx:[],O:function(){var a=w.wx.pop();return void 0===a?new I:a},lc:function(a,b){var c=w.wx.pop();if(void 0===c)return new I(a,b);c.x=a;c.y=b;return c},A:function(a){w.wx.push(a)},WA:[],Ml:function(){var a=w.WA.pop();return void 0=== -a?new pa:a},ek:function(a){w.WA.push(a)},xx:[],eg:function(){var a=w.xx.pop();return void 0===a?new x:a},nk:function(a,b,c,d){var e=w.xx.pop();if(void 0===e)return new x(a,b,c,d);e.x=a;e.y=b;e.width=c;e.height=d;return e},qc:function(a){w.xx.push(a)},XA:[],xh:function(){var a=w.XA.pop();return void 0===a?new ra:a},gf:function(a){w.XA.push(a)},yx:null,s:function(){var a=w.yx;return null!==a?(w.yx=null,a):new sa},u:function(a){a.reset();w.yx=a},VA:[],mb:function(){var a=w.VA.pop();return void 0===a? -[]:a},wa:function(a){a.length=0;w.VA.push(a)},zh:Object.freeze([]),YA:1,mc:function(a){a.__gohashid=w.YA++},at:function(a){var b=a.__gohashid;void 0===b&&(b=w.YA++,a.__gohashid=b);return b},ad:function(a){return a.__gohashid},la:function(a,b){b.Gx=a;ba[a]=b},Na:function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},Yh:function(a){a.lG=!0},defineProperty:function(a,b,c,d,e){w.g(a,"function","Util.defineProperty:classfunc");w.g(b,"object","Util.defineProperty:propobj"); -w.g(c,"function","Util.defineProperty:getter");w.g(d,"function","Util.defineProperty:setter");for(var g in b){var h=b[g];b={get:c,set:d};if(void 0!==e)for(var k in e)b[k]=e[k];Object.defineProperty(a.prototype,g,b);e=Object.getOwnPropertyDescriptor(a.prototype,g);h&&e&&Object.defineProperty(a.prototype,h,e);if(u&&h){var l=h.charAt(0).toUpperCase()+h.slice(1);h===l&&w.l('Defining capitalized property "'+l+'"!?');Object.defineProperty(a.prototype,l,{get:function(){w.Rz||w.Sz||w.trace('Getting the property "'+ -l+'" is probably not what you intended: it is capitalized but should be spelled "'+h+'"')},set:function(){w.l('Setting the property "'+l+'" is probably not what you intended: it is capitalized but should be spelled "'+h+'"')}})}break}},w:function(a,b,c,d){w.g(a,"function","Util.defineReadOnlyProperty:classfunc");w.g(b,"object","Util.defineReadOnlyProperty:propobj");w.g(c,"function","Util.defineReadOnlyProperty:getter");for(var e in b){var g=b[e];b={get:c,set:function(a){w.l('The property "'+g+'" is read-only and cannot be set to '+ -a)}};if(void 0!==d)for(var h in d)b[h]=d[h];Object.defineProperty(a.prototype,e,b);d=Object.getOwnPropertyDescriptor(a.prototype,e);g&&d&&Object.defineProperty(a.prototype,g,d);if(u&&g){var k=g.charAt(0).toUpperCase()+g.slice(1);Object.defineProperty(a.prototype,k,{get:function(){w.Rz||w.Sz||w.trace('Getting the property "'+k+'" is probably not what you intended: it is capitalized but should be spelled "'+g+'"')},set:function(){w.l('Setting the read-only property "'+k+'" is probably not what you intended: it is capitalized but should be spelled "'+ -g+'", and cannot be set anyway')}})}break}},ge:function(a,b){for(var c in b)b[c]=!0;a.prototype.sC=b},getTypeName:function(a){return void 0===a?"":"string"===typeof a?a:"function"===typeof a?w.Eg(a):null===a?"*":""},Eg:function(a){if("function"===typeof a){if(a.Gx)return a.Gx;if(a.name)return a.name;var b=a.toString(),c=b.indexOf("("),b=b.substring(9,c).trim();if(""!==b)return a.Gx=b}else if("object"===typeof a&&a.constructor)return w.Eg(a.constructor);return typeof a},v:function(a,b,c){w.g(a,"function", -"Util.defineEnumValue:classfunc");w.g(b,"string","Util.defineEnumValue:name");w.g(c,"number","Util.defineEnumValue:num");c=new la(a,b,c);Object.freeze(c);a[b]=c;var d=a.Xt;d instanceof ta||(d=new ta("string",la),a.Xt=d);d.add(b,c);return c},yb:function(a,b){if(!a||!b)return null;var c=void 0;try{"function"===typeof b?c=b(a):"function"===typeof a.getAttribute?(c=a.getAttribute(b),null===c&&(c=void 0)):c=a[b]}catch(d){u&&w.trace("property get error: "+d.toString())}return c},Ua:function(a,b,c){if(a&& -b)try{"function"===typeof b?b(a,c):"function"===typeof a.setAttribute?a.setAttribute(b,c):a[b]=c}catch(d){u&&w.trace("property set error: "+d.toString())}},Ht:function(a,b){w.g(a,"object","Setting properties requires Objects as arguments");w.g(b,"object","Setting properties requires Objects as arguments");var c=a instanceof H,d=a instanceof z,e;for(e in b){""===e&&w.l("Setting properties requires non-empty property names");var g=a,h=e;if(c||d){var k=e.indexOf(".");if(0=d.length)){var e=w.yb(b,d);null===e||"function"===typeof e||w.vw(b,d)||(""===c&&(c=b+"\n"),c+=' unknown property "'+ -d+'" has value: '+e+" at "+a+"\n")}return c},dw:function(a,b){if(null!==b&&"number"!==typeof b&&"string"!==typeof b&&"boolean"!==typeof b&&"function"!==typeof b)if(void 0!==w.ad(b)){if(!w.wv.contains(b))if(w.wv.add(b),w.dv.add(w.uD(a,b)),b instanceof K||b instanceof L||b instanceof ta)for(var c=b.j;c.next();)w.dw(a+"["+c.key+"]",c.value);else for(c in b){var d=w.yb(b,c);if(void 0!==d&&null!==d&&w.Za(d)&&d!==b.sC){if(b instanceof ya){if(d===b.vj)continue}else if(b instanceof H){if("data"===c||d=== -b.Dh)continue;if("itemArray"===c||d===b.ti)continue;if(b instanceof C&&d===b.Uk)continue}else if(!(b instanceof z))if(b instanceof za){if("archetypeGroupData"===c||d===b.Bx)continue}else if(b instanceof Aa){if("archetypeLinkData"===c||d===b.Dx)continue;if("archetypeLabelNodeData"===c||d===b.Cx)continue}else if(b instanceof Ca){if("archetypeNodeData"===c||d===b.Bk)continue}else if(b instanceof M){if("nodeDataArray"===c||d===b.uf)continue;if("linkDataArray"===c||d===b.Oh||d===b.jm)continue;if(d===b.Ac)continue; -if(d===b.hg)continue}else if(b instanceof Da||b instanceof Ga||b instanceof Ia)continue;w.dw(a+"."+c,d)}}}else if(Array.isArray(b))for(c=0;cc;c++)b[c]=c;for(var d=0,e=0,c=0;256>c;c++)d=(d+b[c]+119)%256,e=b[c],b[c]=b[d],b[d]=e;for(var d=c=0,g="",h=0;hc;c++)b["0123456789abcdef".charAt(c>>4)+"0123456789abcdef".charAt(c&15)]=String.fromCharCode(c);a.length%2&&(a="0"+a);for(var d=[],e=0,c=0;c=a.length?a.push(c):a.splice(b,0,c):w.l("Cannot insert an object into an HTMLCollection or NodeList: "+c+" at "+b)},Ni:function(a,b){Array.isArray(a)?b>=a.length?a.pop():a.splice(b,1):w.l("Cannot remove an object from an HTMLCollection or NodeList at "+b)},xx:[],O:function(){var a=w.xx.pop();return void 0===a?new I:a},lc:function(a,b){var c=w.xx.pop();if(void 0=== +c)return new I(a,b);c.x=a;c.y=b;return c},A:function(a){w.xx.push(a)},XA:[],Ml:function(){var a=w.XA.pop();return void 0===a?new pa:a},ek:function(a){w.XA.push(a)},yx:[],eg:function(){var a=w.yx.pop();return void 0===a?new x:a},nk:function(a,b,c,d){var e=w.yx.pop();if(void 0===e)return new x(a,b,c,d);e.x=a;e.y=b;e.width=c;e.height=d;return e},qc:function(a){w.yx.push(a)},YA:[],xh:function(){var a=w.YA.pop();return void 0===a?new ra:a},gf:function(a){w.YA.push(a)},zx:null,s:function(){var a=w.zx;return null!== +a?(w.zx=null,a):new sa},u:function(a){a.reset();w.zx=a},WA:[],mb:function(){var a=w.WA.pop();return void 0===a?[]:a},wa:function(a){a.length=0;w.WA.push(a)},zh:Object.freeze([]),ZA:1,mc:function(a){a.__gohashid=w.ZA++},at:function(a){var b=a.__gohashid;void 0===b&&(b=w.ZA++,a.__gohashid=b);return b},ad:function(a){return a.__gohashid},la:function(a,b){b.Hx=a;ba[a]=b},Na:function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},Zh:function(a){a.nG=!0},defineProperty:function(a, +b,c,d,e){w.g(a,"function","Util.defineProperty:classfunc");w.g(b,"object","Util.defineProperty:propobj");w.g(c,"function","Util.defineProperty:getter");w.g(d,"function","Util.defineProperty:setter");for(var g in b){var h=b[g];b={get:c,set:d};if(void 0!==e)for(var k in e)b[k]=e[k];Object.defineProperty(a.prototype,g,b);e=Object.getOwnPropertyDescriptor(a.prototype,g);h&&e&&Object.defineProperty(a.prototype,h,e);if(u&&h){var l=h.charAt(0).toUpperCase()+h.slice(1);h===l&&w.l('Defining capitalized property "'+ +l+'"!?');Object.defineProperty(a.prototype,l,{get:function(){w.Qv||w.Sz||w.Tz||w.vE||(w.Qv=!0,w.trace('Getting the property "'+l+'" is probably not what you intended: it is capitalized but should be spelled "'+h+'"'))},set:function(){w.l('Setting the property "'+l+'" is probably not what you intended: it is capitalized but should be spelled "'+h+'"')}})}break}},Qv:!1,w:function(a,b,c,d){w.g(a,"function","Util.defineReadOnlyProperty:classfunc");w.g(b,"object","Util.defineReadOnlyProperty:propobj"); +w.g(c,"function","Util.defineReadOnlyProperty:getter");for(var e in b){var g=b[e];b={get:c,set:function(a){w.l('The property "'+g+'" is read-only and cannot be set to '+a)}};if(void 0!==d)for(var h in d)b[h]=d[h];Object.defineProperty(a.prototype,e,b);d=Object.getOwnPropertyDescriptor(a.prototype,e);g&&d&&Object.defineProperty(a.prototype,g,d);if(u&&g){var k=g.charAt(0).toUpperCase()+g.slice(1);Object.defineProperty(a.prototype,k,{get:function(){w.Qv||w.Sz||w.Tz||w.vE||(w.Qv=!0,w.trace('Getting the property "'+ +k+'" is probably not what you intended: it is capitalized but should be spelled "'+g+'"'))},set:function(){w.l('Setting the read-only property "'+k+'" is probably not what you intended: it is capitalized but should be spelled "'+g+'", and cannot be set anyway')}})}break}},ge:function(a,b){for(var c in b)b[c]=!0;a.prototype.tC=b},getTypeName:function(a){return void 0===a?"":"string"===typeof a?a:"function"===typeof a?w.Eg(a):null===a?"*":""},Eg:function(a){if("function"===typeof a){if(a.Hx)return a.Hx; +if(a.name)return a.name;var b=a.toString(),c=b.indexOf("("),b=b.substring(9,c).trim();if(""!==b)return a.Hx=b}else if("object"===typeof a&&a.constructor)return w.Eg(a.constructor);return typeof a},v:function(a,b,c){w.g(a,"function","Util.defineEnumValue:classfunc");w.g(b,"string","Util.defineEnumValue:name");w.g(c,"number","Util.defineEnumValue:num");c=new la(a,b,c);Object.freeze(c);a[b]=c;var d=a.Xt;d instanceof ta||(d=new ta("string",la),a.Xt=d);d.add(b,c);return c},yb:function(a,b){if(!a||!b)return null; +var c=void 0;try{"function"===typeof b?c=b(a):"function"===typeof a.getAttribute?(c=a.getAttribute(b),null===c&&(c=void 0)):c=a[b]}catch(d){u&&w.trace("property get error: "+d.toString())}return c},Ua:function(a,b,c){if(a&&b)try{"function"===typeof b?b(a,c):"function"===typeof a.setAttribute?a.setAttribute(b,c):a[b]=c}catch(d){u&&w.trace("property set error: "+d.toString())}},Ht:function(a,b){w.g(a,"object","Setting properties requires Objects as arguments");w.g(b,"object","Setting properties requires Objects as arguments"); +var c=a instanceof H,d=a instanceof z,e;for(e in b){""===e&&w.l("Setting properties requires non-empty property names");var g=a,h=e;if(c||d){var k=e.indexOf(".");if(0=d.length)){var e=w.yb(b,d);null===e||"function"===typeof e||w.ww(b,d)||(""===c&&(c=b+"\n"),c+=' unknown property "'+d+'" has value: '+e+" at "+a+"\n")}return c},ew:function(a,b){if(null!==b&&"number"!==typeof b&&"string"!==typeof b&&"boolean"!==typeof b&&"function"!==typeof b)if(void 0!==w.ad(b)){if(!w.wv.contains(b))if(w.wv.add(b),w.dv.add(w.vD(a,b)),b instanceof K||b instanceof L||b instanceof ta)for(var c=b.j;c.next();)w.ew(a+ +"["+c.key+"]",c.value);else for(c in b){var d=w.yb(b,c);if(void 0!==d&&null!==d&&w.Za(d)&&d!==b.tC){if(b instanceof ya){if(d===b.vj)continue}else if(b instanceof H){if("data"===c||d===b.Eh)continue;if("itemArray"===c||d===b.ti)continue;if(b instanceof C&&d===b.Uk)continue}else if(!(b instanceof z))if(b instanceof za){if("archetypeGroupData"===c||d===b.Cx)continue}else if(b instanceof Aa){if("archetypeLinkData"===c||d===b.Ex)continue;if("archetypeLabelNodeData"===c||d===b.Dx)continue}else if(b instanceof +Ca){if("archetypeNodeData"===c||d===b.Bk)continue}else if(b instanceof M){if("nodeDataArray"===c||d===b.uf)continue;if("linkDataArray"===c||d===b.Ph||d===b.jm)continue;if(d===b.Ac)continue;if(d===b.hg)continue}else if(b instanceof Da||b instanceof Ga||b instanceof Ia)continue;w.ew(a+"."+c,d)}}}else if(Array.isArray(b))for(c=0;cc;c++)b[c]=c;for(var d=0,e=0,c=0;256>c;c++)d=(d+b[c]+119)%256,e=b[c],b[c]=b[d],b[d]=e;for(var d=c=0,g="",h=0;hc;c++)b["0123456789abcdef".charAt(c>>4)+"0123456789abcdef".charAt(c&15)]=String.fromCharCode(c);a.length%2&&(a="0"+a);for(var d=[],e=0,c=0;cd;d++)b[w.Ka("7ca11abfd7330390")](w.Ka(c[d-1]),10,15*d+0);b[w.Ka("7ca11abfd022028846")]=w.Ka("39f046ebb36e4b");for(d=1;5>d;d++)b[w.Ka("7ca11abfd7330390")](w.Ka(c[d- -1]),10,15*d+0);if(4!==c.length||"5"!==c[0][0]||"7"!==c[3][0])w.v=function(a,b){var c=new la(a,b,2);Object.freeze(c);a[b]=c;var d=a.Xt;d instanceof ta||(d=new ta("string",la),a.Xt=d);d.add(b,c);return c};return a}();function la(a,b,c){w.mc(this);this.eB=a;this.cc=b;this.qG=c}la.prototype.toString=function(){return w.Eg(this.eB)+"."+this.cc};w.w(la,{Je:"classType"},function(){return this.eB});w.w(la,{name:"name"},function(){return this.cc});w.w(la,{value:"value"},function(){return this.qG});var Ma; -la.findName=Ma=function(a,b){if(null===b||""===b)return null;w.g(a,"function","findName:classfunc");w.g(b,"string","EnumValue.findName:name");var c=a.Xt;return c instanceof ta?c.ya(b):null};function Ja(){this.dB=[]}Ja.prototype.toString=function(){return this.dB.join("")};Ja.prototype.add=function(a){""!==a&&this.dB.push(a)};function xa(){} -function Na(a){void 0===a&&(a=42);this.seed=a;this.ox=48271;this.Wt=2147483647;this.SA=this.Wt/this.ox;this.UF=this.Wt%this.ox;this.QF=1/this.Wt;this.random()}Na.prototype.random=function(){var a=this.seed%this.SA*this.ox-this.seed/this.SA*this.UF;this.seed=0a||a>=c.length)&&w.ja(a,"0 <= i < length",K,"setElt:i");w.G(this,a);c[a]=b};K.prototype.first=K.prototype.first=function(){var a=this.p;return 0===a.length?null:a[0]};K.prototype.last=K.prototype.Td=function(){var a=this.p,b=a.length;return 0a&&w.ja(a,">= 0",K,"insertAt:i");w.G(this,a);var c=this.p;a>=c.length?c.push(b):c.splice(a,0,b);this.ae();return!0};K.prototype.remove=K.prototype["delete"]=K.prototype.remove=function(a){if(null===a)return!1;u&&this.Qg(a);w.G(this,a);var b=this.p;a=b.indexOf(a);if(-1===a)return!1;a===b.length-1?b.pop():b.splice(a,1);this.ae();return!0}; -K.prototype.removeAt=K.prototype.td=function(a){u&&w.o(a,K,"removeAt:i");var b=this.p;(0>a||a>=b.length)&&w.ja(a,"0 <= i < length",K,"removeAt:i");w.G(this,a);a===b.length-1?b.pop():b.splice(a,1);this.ae()}; +K.prototype.removeAt=K.prototype.ud=function(a){u&&w.o(a,K,"removeAt:i");var b=this.p;(0>a||a>=b.length)&&w.ja(a,"0 <= i < length",K,"removeAt:i");w.G(this,a);a===b.length-1?b.pop():b.splice(a,1);this.ae()}; K.prototype.removeRange=K.prototype.removeRange=function(a,b){u&&(w.o(a,K,"removeRange:from"),w.o(b,K,"removeRange:to"));var c=this.p;(0>a||a>=c.length)&&w.ja(a,"0 <= from < length",K,"elt:from");(0>b||b>=c.length)&&w.ja(b,"0 <= to < length",K,"elt:to");w.G(this,a);var d=c.slice((b||a)+1||c.length);c.length=0>a?c.length+a:a;c.push.apply(c,d);this.ae()};K.prototype.copy=function(){for(var a=new K(this.ia),b=this.p,c=this.count,d=0;d=g)return this;(0>b||b>=e-1)&&w.ja(b,"0 <= from < length",K,"sortRange:from");if(2===g)return c=d[b],e=d[b+1],0=e)d.sort(a);else for(g=d.slice(0,c),g.sort(a),a=0;a=e)for(g=d.slice(b),g.sort(a), @@ -73,21 +74,21 @@ w.w(K,{$m:"iteratorBackwards"},function(){if(0>=this.p.length)return Pa;var a=th Va.prototype.next=Va.prototype.hasNext=Va.prototype.next=function(){var a=this.Zk;if(a.Y!==this.fb){if(null===this.key)return!1;w.Ub(a)}var b=this.Ib,b=null===b?a.jb:b.Zb;if(null!==b)return this.Ib=b,this.value=b.value,this.key=b.key,!0;this.ig();return!1};Va.prototype.first=Va.prototype.first=function(){var a=this.Zk;this.fb=a.Y;a=a.jb;if(null!==a){this.Ib=a;var b=a.value;this.key=a.key;return this.value=b}return null}; Va.prototype.any=function(a){var b=this.Zk;b.Kd=null;var c=b.Y;this.Ib=null;for(var d=b.jb;null!==d;){if(a(d.value))return!0;b.Y!==c&&w.Ub(b);d=d.Zb}return!1};Va.prototype.all=function(a){var b=this.Zk;b.Kd=null;var c=b.Y;this.Ib=null;for(var d=b.jb;null!==d;){if(!a(d.value))return!1;b.Y!==c&&w.Ub(b);d=d.Zb}return!0};Va.prototype.each=function(a){var b=this.Zk;b.Kd=null;var c=b.Y;this.Ib=null;for(var d=b.jb;null!==d;)a(d.value),b.Y!==c&&w.Ub(b),d=d.Zb};w.w(Va,{count:"count"},function(){return this.Zk.fd}); Va.prototype.ig=function(){this.value=this.key=null;this.fb=-1;this.Zk.Kd=this};Va.prototype.toString=function(){return null!==this.Ib?"SetIterator@"+this.Ib.value:"SetIterator"}; -function L(a){w.mc(this);this.Ja=!1;void 0===a||null===a?this.ia=null:"string"===typeof a?"object"===a||"string"===a||"number"===a?this.ia=a:w.ja(a,"the string 'object', 'number' or 'string'","Set constructor: type"):"function"===typeof a?this.ia=a===Object?"object":a===String?"string":a===Number?"number":a:w.ja(a,"null, a primitive type name, or a class type","Set constructor: type");this.gd={};this.fd=0;this.Kd=null;this.Y=0;this.Nh=this.jb=null}w.la("Set",L); +function L(a){w.mc(this);this.Ja=!1;void 0===a||null===a?this.ia=null:"string"===typeof a?"object"===a||"string"===a||"number"===a?this.ia=a:w.ja(a,"the string 'object', 'number' or 'string'","Set constructor: type"):"function"===typeof a?this.ia=a===Object?"object":a===String?"string":a===Number?"number":a:w.ja(a,"null, a primitive type name, or a class type","Set constructor: type");this.gd={};this.fd=0;this.Kd=null;this.Y=0;this.Oh=this.jb=null}w.la("Set",L); L.prototype.Qg=function(a){null!==this.ia&&("string"===typeof this.ia?typeof a===this.ia&&null!==a||w.tc(a,this.ia):a instanceof this.ia||w.tc(a,this.ia))};L.prototype.ae=function(){var a=this.Y;a++;999999999=this.fd)return Pa;var a=this.Kd;return null!==a?(a.reset(),a):new Va(this)});function Ya(a){this.eb=a;this.reset()}w.ge(Ya,{key:!0,value:!0});w.w(Ya,{j:"iterator"},function(){return this});Ya.prototype.reset=Ya.prototype.reset=function(){this.fb=this.eb.Y;this.Ib=null}; Ya.prototype.next=Ya.prototype.hasNext=Ya.prototype.next=function(){var a=this.eb;if(a.Y!==this.fb){if(null===this.key)return!1;w.Ub(a)}var b=this.Ib,b=null===b?a.jb:b.Zb;if(null!==b)return this.Ib=b,this.value=this.key=a=b.key,!0;this.ig();return!1};Ya.prototype.first=Ya.prototype.first=function(){var a=this.eb;this.fb=a.Y;a=a.jb;return null!==a?(this.Ib=a,this.value=this.key=a=a.key):null}; Ya.prototype.any=function(a){var b=this.eb,c=b.Y;this.Ib=null;for(var d=b.jb;null!==d;){if(a(d.key))return!0;b.Y!==c&&w.Ub(b);d=d.Zb}return!1};Ya.prototype.all=function(a){var b=this.eb,c=b.Y;this.Ib=null;for(var d=b.jb;null!==d;){if(!a(d.key))return!1;b.Y!==c&&w.Ub(b);d=d.Zb}return!0};Ya.prototype.each=function(a){var b=this.eb,c=b.Y;this.Ib=null;for(var d=b.jb;null!==d;)a(d.key),b.Y!==c&&w.Ub(b),d=d.Zb};w.w(Ya,{count:"count"},function(){return this.eb.fd}); Ya.prototype.ig=function(){this.value=this.key=null;this.fb=-1};Ya.prototype.toString=function(){return null!==this.Ib?"MapKeySetIterator@"+this.Ib.value:"MapKeySetIterator"};function Za(a){w.mc(this);this.Ja=!0;this.eb=a}w.Na(Za,L);Za.prototype.freeze=function(){return this};Za.prototype.Sa=function(){return this};Za.prototype.toString=function(){return"MapKeySet("+this.eb.toString()+")"}; Za.prototype.add=Za.prototype.set=Za.prototype.add=function(){w.l("This Set is read-only: "+this.toString());return!1};Za.prototype.contains=Za.prototype.has=Za.prototype.contains=function(a){return this.eb.contains(a)};Za.prototype.remove=Za.prototype["delete"]=Za.prototype.remove=function(){w.l("This Set is read-only: "+this.toString());return!1};Za.prototype.clear=Za.prototype.clear=function(){w.l("This Set is read-only: "+this.toString())}; Za.prototype.first=Za.prototype.first=function(){var a=this.eb.jb;return null!==a?a.key:null};Za.prototype.any=function(a){for(var b=this.eb.jb;null!==b;){if(a(b.key))return!0;b=b.Zb}return!1};Za.prototype.all=function(a){for(var b=this.eb.jb;null!==b;){if(!a(b.key))return!1;b=b.Zb}return!0};Za.prototype.each=function(a){for(var b=this.eb.jb;null!==b;)a(b.key),b=b.Zb};Za.prototype.copy=function(){return new Za(this.eb)}; -Za.prototype.toSet=function(){var a=new L(this.eb.Mh),b=this.eb.gd,c;for(c in b)a.add(b[c].key);return a};Za.prototype.toArray=Za.prototype.Te=function(){var a=this.eb.gd,b=Array(this.eb.fd),c=0,d;for(d in a)b[c]=a[d].key,c++;return b};Za.prototype.toList=function(){var a=new K(this.ia),b=this.eb.gd,c;for(c in b)a.add(b[c].key);return a};w.w(Za,{count:"count"},function(){return this.eb.fd});w.w(Za,{size:"size"},function(){return this.eb.fd}); +Za.prototype.toSet=function(){var a=new L(this.eb.Nh),b=this.eb.gd,c;for(c in b)a.add(b[c].key);return a};Za.prototype.toArray=Za.prototype.Te=function(){var a=this.eb.gd,b=Array(this.eb.fd),c=0,d;for(d in a)b[c]=a[d].key,c++;return b};Za.prototype.toList=function(){var a=new K(this.ia),b=this.eb.gd,c;for(c in b)a.add(b[c].key);return a};w.w(Za,{count:"count"},function(){return this.eb.fd});w.w(Za,{size:"size"},function(){return this.eb.fd}); w.w(Za,{j:"iterator"},function(){return 0>=this.eb.fd?Pa:new Ya(this.eb)});function $a(a){this.eb=a;this.reset()}w.ge($a,{key:!0,value:!0});w.w($a,{j:"iterator"},function(){return this});$a.prototype.reset=$a.prototype.reset=function(){var a=this.eb;a.fo=null;this.fb=a.Y;this.Ib=null}; $a.prototype.next=$a.prototype.hasNext=$a.prototype.next=function(){var a=this.eb;if(a.Y!==this.fb){if(null===this.key)return!1;w.Ub(a)}var b=this.Ib,b=null===b?a.jb:b.Zb;if(null!==b)return this.Ib=b,this.value=b.value,this.key=b.key,!0;this.ig();return!1};$a.prototype.first=$a.prototype.first=function(){var a=this.eb;this.fb=a.Y;a=a.jb;if(null!==a){this.Ib=a;var b=a.value;this.key=a.key;return this.value=b}return null}; $a.prototype.any=function(a){var b=this.eb;b.fo=null;var c=b.Y;this.Ib=null;for(var d=b.jb;null!==d;){if(a(d.value))return!0;b.Y!==c&&w.Ub(b);d=d.Zb}return!1};$a.prototype.all=function(a){var b=this.eb;b.fo=null;var c=b.Y;this.Ib=null;for(var d=b.jb;null!==d;){if(!a(d.value))return!1;b.Y!==c&&w.Ub(b);d=d.Zb}return!0};$a.prototype.each=function(a){var b=this.eb;b.fo=null;var c=b.Y;this.Ib=null;for(var d=b.jb;null!==d;)a(d.value),b.Y!==c&&w.Ub(b),d=d.Zb};w.w($a,{count:"count"},function(){return this.eb.fd}); @@ -95,51 +96,51 @@ $a.prototype.ig=function(){this.value=this.key=null;this.fb=-1;this.eb.fo=this}; ab.prototype.reset=ab.prototype.reset=function(){var a=this.eb;a.Kd=null;this.fb=a.Y;this.Ib=null};ab.prototype.next=ab.prototype.hasNext=ab.prototype.next=function(){var a=this.eb;if(a.Y!==this.fb){if(null===this.key)return!1;w.Ub(a)}var b=this.Ib,b=null===b?a.jb:b.Zb;if(null!==b)return this.Ib=b,this.key=b.key,this.value=b.value,!0;this.ig();return!1}; ab.prototype.first=ab.prototype.first=function(){var a=this.eb;this.fb=a.Y;a=a.jb;return null!==a?(this.Ib=a,this.key=a.key,this.value=a.value,a):null};ab.prototype.any=function(a){var b=this.eb;b.Kd=null;var c=b.Y;this.Ib=null;for(var d=b.jb;null!==d;){if(a(d))return!0;b.Y!==c&&w.Ub(b);d=d.Zb}return!1};ab.prototype.all=function(a){var b=this.eb;b.Kd=null;var c=b.Y;this.Ib=null;for(var d=b.jb;null!==d;){if(!a(d))return!1;b.Y!==c&&w.Ub(b);d=d.Zb}return!0}; ab.prototype.each=function(a){var b=this.eb;b.Kd=null;var c=b.Y;this.Ib=null;for(var d=b.jb;null!==d;)a(d),b.Y!==c&&w.Ub(b),d=d.Zb};w.w(ab,{count:"count"},function(){return this.eb.fd});ab.prototype.ig=function(){this.value=this.key=null;this.fb=-1;this.eb.Kd=this};ab.prototype.toString=function(){return null!==this.Ib?"MapIterator@"+this.Ib:"MapIterator"}; -function ta(a,b){w.mc(this);this.Ja=!1;void 0===a||null===a?this.Mh=null:"string"===typeof a?"object"===a||"string"===a||"number"===a?this.Mh=a:w.ja(a,"the string 'object', 'number' or 'string'","Map constructor: keytype"):"function"===typeof a?this.Mh=a===Object?"object":a===String?"string":a===Number?"number":a:w.ja(a,"null, a primitive type name, or a class type","Map constructor: keytype");void 0===b||null===b?this.Ki=null:"string"===typeof b?"object"===b||"string"===b||"boolean"===b||"number"=== -b||"function"===b?this.Ki=b:w.ja(b,"the string 'object', 'number', 'string', 'boolean', or 'function'","Map constructor: valtype"):"function"===typeof b?this.Ki=b===Object?"object":b===String?"string":b===Number?"number":b===Boolean?"boolean":b===Function?"function":b:w.ja(b,"null, a primitive type name, or a class type","Map constructor: valtype");this.gd={};this.fd=0;this.fo=this.Kd=null;this.Y=0;this.Nh=this.jb=null}w.la("Map",ta); -function cb(a,b){null!==a.Mh&&("string"===typeof a.Mh?typeof b===a.Mh&&null!==b||w.tc(b,a.Mh):b instanceof a.Mh||w.tc(b,a.Mh))}ta.prototype.ae=function(){var a=this.Y;a++;999999999=this.count)return Pa;var a=this.Kd;return null!==a?(a.reset(),a):new ab(this)});w.w(ta,{AK:"iteratorKeys"},function(){return 0>=this.count?Pa:new Ya(this)});w.w(ta,{wE:"iteratorValues"},function(){if(0>=this.count)return Pa;var a=this.fo;return null!==a?(a.reset(),a):new $a(this)});function I(a,b){void 0===a?this.M=this.L=0:"number"===typeof a&&"number"===typeof b?(this.L=a,this.M=b):w.l("Invalid arguments to Point constructor: "+a+", "+b);this.Ja=!1} -w.la("Point",I);w.Yh(I);w.ge(I,{x:!0,y:!0});I.prototype.assign=function(a){this.L=a.L;this.M=a.M};I.prototype.setTo=I.prototype.n=function(a,b){u&&(w.g(a,"number",I,"setTo:x"),w.g(b,"number",I,"setTo:y"));this.L=a;this.M=b;return this};I.prototype.set=I.prototype.set=function(a){u&&w.k(a,I,I,"set:p");this.G();this.L=a.L;this.M=a.M;return this};I.prototype.copy=function(){var a=new I;a.L=this.L;a.M=this.M;return a};f=I.prototype;f.Qa=function(){this.Ja=!0;Object.freeze(this);return this}; +ta.prototype.remove=ta.prototype["delete"]=ta.prototype.remove=function(a){if(null===a)return!1;u&&cb(this,a);w.G(this,a);var b=a;if(w.Za(a)&&(b=w.ad(a),void 0===b))return!1;a=this.gd[b];if(void 0===a)return!1;var c=a.Zb,d=a.qo;null!==c&&(c.qo=d);null!==d&&(d.Zb=c);this.jb===a&&(this.jb=c);this.Oh===a&&(this.Oh=d);delete this.gd[b];this.fd--;this.ae();return!0};ta.prototype.clear=ta.prototype.clear=function(){w.G(this);this.gd={};this.fd=0;this.Oh=this.jb=null;this.ae()}; +ta.prototype.copy=function(){var a=new ta(this.Nh,this.Ki),b=this.gd,c;for(c in b){var d=b[c];a.add(d.key,d.value)}return a};ta.prototype.toArray=ta.prototype.Te=function(){var a=this.gd,b=Array(this.fd),c=0,d;for(d in a){var e=a[d];b[c]=new Wa(e.key,e.value);c++}return b};ta.prototype.toKeySet=ta.prototype.cj=function(){return new Za(this)};w.w(ta,{count:"count"},function(){return this.fd});w.w(ta,{size:"size"},function(){return this.fd}); +w.w(ta,{j:"iterator"},function(){if(0>=this.count)return Pa;var a=this.Kd;return null!==a?(a.reset(),a):new ab(this)});w.w(ta,{CK:"iteratorKeys"},function(){return 0>=this.count?Pa:new Ya(this)});w.w(ta,{yE:"iteratorValues"},function(){if(0>=this.count)return Pa;var a=this.fo;return null!==a?(a.reset(),a):new $a(this)});function I(a,b){void 0===a?this.M=this.L=0:"number"===typeof a&&"number"===typeof b?(this.L=a,this.M=b):w.l("Invalid arguments to Point constructor: "+a+", "+b);this.Ja=!1} +w.la("Point",I);w.Zh(I);w.ge(I,{x:!0,y:!0});I.prototype.assign=function(a){this.L=a.L;this.M=a.M};I.prototype.setTo=I.prototype.n=function(a,b){u&&(w.g(a,"number",I,"setTo:x"),w.g(b,"number",I,"setTo:y"));this.L=a;this.M=b;return this};I.prototype.set=I.prototype.set=function(a){u&&w.k(a,I,I,"set:p");this.G();this.L=a.L;this.M=a.M;return this};I.prototype.copy=function(){var a=new I;a.L=this.L;a.M=this.M;return a};f=I.prototype;f.Qa=function(){this.Ja=!0;Object.freeze(this);return this}; f.da=function(){return Object.isFrozen(this)?this:this.copy().freeze()};f.freeze=function(){this.Ja=!0;return this};f.Sa=function(){Object.isFrozen(this)&&w.l("cannot thaw constant: "+this);this.Ja=!1;return this};f.G=function(a){if(this.Ja){var b="The Point is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);w.l(b)}}; I.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));return new I(c,e)}return new I};I.stringify=function(a){return a instanceof I?a.x.toString()+" "+a.y.toString():a.toString()};I.prototype.toString=function(){return"Point("+this.x+","+this.y+")"};I.prototype.equals=I.prototype.N=function(a){return a instanceof I?this.L===a.x&&this.M===a.y:!1}; -I.prototype.equalTo=I.prototype.mw=function(a,b){return this.L===a&&this.M===b};I.prototype.equalsApprox=I.prototype.Me=function(a){return O.F(this.L,a.x)&&O.F(this.M,a.y)};I.prototype.add=I.prototype.add=function(a){u&&w.k(a,I,I,"add:p");this.G();this.L+=a.x;this.M+=a.y;return this};I.prototype.subtract=I.prototype.Ot=function(a){u&&w.k(a,I,I,"subtract:p");this.G();this.L-=a.x;this.M-=a.y;return this}; +I.prototype.equalTo=I.prototype.nw=function(a,b){return this.L===a&&this.M===b};I.prototype.equalsApprox=I.prototype.Me=function(a){return O.F(this.L,a.x)&&O.F(this.M,a.y)};I.prototype.add=I.prototype.add=function(a){u&&w.k(a,I,I,"add:p");this.G();this.L+=a.x;this.M+=a.y;return this};I.prototype.subtract=I.prototype.Ot=function(a){u&&w.k(a,I,I,"subtract:p");this.G();this.L-=a.x;this.M-=a.y;return this}; I.prototype.offset=I.prototype.offset=function(a,b){u&&(w.o(a,I,"offset:dx"),w.o(b,I,"offset:dy"));this.G();this.L+=a;this.M+=b;return this};I.prototype.rotate=I.prototype.rotate=function(a){u&&w.o(a,I,"rotate:angle");this.G();if(0===a)return this;var b=this.L,c=this.M;if(0===b&&0===c)return this;var d=0,e=0;360<=a?a-=360:0>a&&(a+=360);90===a?(d=0,e=1):180===a?(d=-1,e=0):270===a?(d=0,e=-1):(a=a*Math.PI/180,d=Math.cos(a),e=Math.sin(a));this.L=d*b-e*c;this.M=e*b+d*c;return this}; I.prototype.scale=I.prototype.scale=function(a,b){u&&(w.o(a,I,"scale:sx"),w.o(b,I,"scale:sy"));this.L*=a;this.M*=b;return this};I.prototype.distanceSquaredPoint=I.prototype.bk=function(a){u&&w.k(a,I,I,"distanceSquaredPoint:p");var b=a.x-this.L;a=a.y-this.M;return b*b+a*a};I.prototype.distanceSquared=I.prototype.Ns=function(a,b){u&&(w.o(a,I,"distanceSquared:px"),w.o(b,I,"distanceSquared:py"));var c=a-this.L,d=b-this.M;return c*c+d*d}; I.prototype.normalize=I.prototype.normalize=function(){this.G();var a=this.L,b=this.M,c=Math.sqrt(a*a+b*b);0b?270:0;if(0===b)return 0a?c=0>b?c+180:180-c:0>b&&(c=360-c);return c}I.prototype.projectOntoLineSegment=function(a,b,c,d){u&&(w.o(a,I,"projectOntoLineSegment:px"),w.o(b,I,"projectOntoLineSegment:py"),w.o(c,I,"projectOntoLineSegment:qx"),w.o(d,I,"projectOntoLineSegment:qy"));O.cn(a,b,c,d,this.L,this.M,this);return this}; I.prototype.projectOntoLineSegmentPoint=function(a,b){u&&(w.k(a,I,I,"projectOntoLineSegmentPoint:p"),w.k(b,I,I,"projectOntoLineSegmentPoint:q"));O.cn(a.x,a.y,b.x,b.y,this.L,this.M,this);return this};I.prototype.snapToGrid=function(a,b,c,d){u&&(w.o(a,I,"snapToGrid:originx"),w.o(b,I,"snapToGrid:originy"),w.o(c,I,"snapToGrid:cellwidth"),w.o(d,I,"snapToGrid:cellheight"));O.Rs(this.L,this.M,a,b,c,d,this);return this}; I.prototype.snapToGridPoint=function(a,b){u&&(w.k(a,I,I,"snapToGridPoint:p"),w.k(b,pa,I,"snapToGridPoint:q"));O.Rs(this.L,this.M,a.x,a.y,b.width,b.height,this);return this};I.prototype.setRectSpot=I.prototype.It=function(a,b){u&&(w.k(a,x,I,"setRectSpot:r"),w.k(b,Q,I,"setRectSpot:spot"));this.G();this.L=a.x+b.x*a.width+b.offsetX;this.M=a.y+b.y*a.height+b.offsetY;return this}; -I.prototype.setSpot=I.prototype.Kt=function(a,b,c,d,e){u&&(w.o(a,I,"setSpot:x"),w.o(b,I,"setSpot:y"),w.o(c,I,"setSpot:w"),w.o(d,I,"setSpot:h"),(0>c||0>d)&&w.l("Point.setSpot:Width and height cannot be negative"),w.k(e,Q,I,"setSpot:spot"));this.G();this.L=a+e.x*c+e.offsetX;this.M=b+e.y*d+e.offsetY;return this};I.prototype.transform=function(a){u&&w.k(a,ra,I,"transform:t");a.ib(this);return this};function kb(a,b){u&&w.k(b,ra,I,"transformInverted:t");b.ai(a);return a}var lb; +I.prototype.setSpot=I.prototype.Kt=function(a,b,c,d,e){u&&(w.o(a,I,"setSpot:x"),w.o(b,I,"setSpot:y"),w.o(c,I,"setSpot:w"),w.o(d,I,"setSpot:h"),(0>c||0>d)&&w.l("Point.setSpot:Width and height cannot be negative"),w.k(e,Q,I,"setSpot:spot"));this.G();this.L=a+e.x*c+e.offsetX;this.M=b+e.y*d+e.offsetY;return this};I.prototype.transform=function(a){u&&w.k(a,ra,I,"transform:t");a.ib(this);return this};function kb(a,b){u&&w.k(b,ra,I,"transformInverted:t");b.bi(a);return a}var lb; I.distanceLineSegmentSquared=lb=function(a,b,c,d,e,g){u&&(w.o(a,I,"distanceLineSegmentSquared:px"),w.o(b,I,"distanceLineSegmentSquared:py"),w.o(c,I,"distanceLineSegmentSquared:ax"),w.o(d,I,"distanceLineSegmentSquared:ay"),w.o(e,I,"distanceLineSegmentSquared:bx"),w.o(g,I,"distanceLineSegmentSquared:by"));var h=e-c,k=g-d,l=h*h+k*k;c-=a;d-=b;var m=-c*h-d*k;if(0>=m||m>=l)return h=e-a,k=g-b,Math.min(c*c+d*d,h*h+k*k);a=h*d-k*c;return a*a/l};var mb; I.distanceSquared=mb=function(a,b,c,d){u&&(w.o(a,I,"distanceSquared:px"),w.o(b,I,"distanceSquared:py"),w.o(c,I,"distanceSquared:qx"),w.o(d,I,"distanceSquared:qy"));a=c-a;b=d-b;return a*a+b*b};var nb; I.direction=nb=function(a,b,c,d){u&&(w.o(a,I,"direction:px"),w.o(b,I,"direction:py"),w.o(c,I,"direction:qx"),w.o(d,I,"direction:qy"));a=c-a;b=d-b;if(0===a)return 0b?270:0;if(0===b)return 0a?d=0>b?d+180:180-d:0>b&&(d=360-d);return d};w.defineProperty(I,{x:"x"},function(){return this.L},function(a){this.G(a);u&&w.g(a,"number",I,"x");this.L=a}); -w.defineProperty(I,{y:"y"},function(){return this.M},function(a){this.G(a);u&&w.g(a,"number",I,"y");this.M=a});I.prototype.isReal=I.prototype.J=function(){return isFinite(this.x)&&isFinite(this.y)};function pa(a,b){void 0===a?this.Da=this.Ea=0:"number"===typeof a&&(0<=a||isNaN(a))&&"number"===typeof b&&(0<=b||isNaN(b))?(this.Ea=a,this.Da=b):w.l("Invalid arguments to Size constructor: "+a+", "+b);this.Ja=!1}w.la("Size",pa);w.Yh(pa);w.ge(pa,{width:!0,height:!0}); +w.defineProperty(I,{y:"y"},function(){return this.M},function(a){this.G(a);u&&w.g(a,"number",I,"y");this.M=a});I.prototype.isReal=I.prototype.J=function(){return isFinite(this.x)&&isFinite(this.y)};function pa(a,b){void 0===a?this.Da=this.Ea=0:"number"===typeof a&&(0<=a||isNaN(a))&&"number"===typeof b&&(0<=b||isNaN(b))?(this.Ea=a,this.Da=b):w.l("Invalid arguments to Size constructor: "+a+", "+b);this.Ja=!1}w.la("Size",pa);w.Zh(pa);w.ge(pa,{width:!0,height:!0}); pa.prototype.assign=function(a){this.Ea=a.Ea;this.Da=a.Da};pa.prototype.setTo=pa.prototype.n=function(a,b){u&&(w.g(a,"number",pa,"setTo:w"),w.g(b,"number",pa,"setTo:h"),0>a&&w.ja(a,">= 0",pa,"setTo:w"),0>b&&w.ja(b,">= 0",pa,"setTo:h"));this.Ea=a;this.Da=b;return this};pa.prototype.set=pa.prototype.set=function(a){u&&w.k(a,pa,pa,"set:s");this.G();this.Ea=a.Ea;this.Da=a.Da;return this};pa.prototype.copy=function(){var a=new pa;a.Ea=this.Ea;a.Da=this.Da;return a};f=pa.prototype; f.Qa=function(){this.Ja=!0;Object.freeze(this);return this};f.da=function(){return Object.isFrozen(this)?this:this.copy().freeze()};f.freeze=function(){this.Ja=!0;return this};f.Sa=function(){Object.isFrozen(this)&&w.l("cannot thaw constant: "+this);this.Ja=!1;return this};f.G=function(a){if(this.Ja){var b="The Size is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);w.l(b)}}; pa.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));return new pa(c,e)}return new pa};pa.stringify=function(a){return a instanceof pa?a.width.toString()+" "+a.height.toString():a.toString()};pa.prototype.toString=function(){return"Size("+this.width+","+this.height+")"}; -pa.prototype.equals=pa.prototype.N=function(a){return a instanceof pa?this.Ea===a.width&&this.Da===a.height:!1};pa.prototype.equalTo=pa.prototype.mw=function(a,b){return this.Ea===a&&this.Da===b};pa.prototype.equalsApprox=pa.prototype.Me=function(a){return O.F(this.Ea,a.width)&&O.F(this.Da,a.height)};w.defineProperty(pa,{width:"width"},function(){return this.Ea},function(a){this.G(a);u&&w.g(a,"number",pa,"width");0>a&&w.ja(a,">= 0",pa,"width");this.Ea=a}); +pa.prototype.equals=pa.prototype.N=function(a){return a instanceof pa?this.Ea===a.width&&this.Da===a.height:!1};pa.prototype.equalTo=pa.prototype.nw=function(a,b){return this.Ea===a&&this.Da===b};pa.prototype.equalsApprox=pa.prototype.Me=function(a){return O.F(this.Ea,a.width)&&O.F(this.Da,a.height)};w.defineProperty(pa,{width:"width"},function(){return this.Ea},function(a){this.G(a);u&&w.g(a,"number",pa,"width");0>a&&w.ja(a,">= 0",pa,"width");this.Ea=a}); w.defineProperty(pa,{height:"height"},function(){return this.Da},function(a){this.G(a);u&&w.g(a,"number",pa,"height");0>a&&w.ja(a,">= 0",pa,"height");this.Da=a});pa.prototype.isReal=pa.prototype.J=function(){return isFinite(this.width)&&isFinite(this.height)}; function x(a,b,c,d){void 0===a?this.Da=this.Ea=this.M=this.L=0:a instanceof I?b instanceof I?(this.L=Math.min(a.L,b.L),this.M=Math.min(a.M,b.M),this.Ea=Math.abs(a.L-b.L),this.Da=Math.abs(a.M-b.M)):b instanceof pa?(this.L=a.L,this.M=a.M,this.Ea=b.Ea,this.Da=b.Da):w.l("Incorrect arguments supplied to Rect constructor"):"number"===typeof a&&"number"===typeof b&&"number"===typeof c&&(0<=c||isNaN(c))&&"number"===typeof d&&(0<=d||isNaN(d))?(this.L=a,this.M=b,this.Ea=c,this.Da=d):w.l("Invalid arguments to Rect constructor: "+ -a+", "+b+", "+c+", "+d);this.Ja=!1}w.la("Rect",x);w.Yh(x);w.ge(x,{x:!0,y:!0,width:!0,height:!0});x.prototype.assign=function(a){this.L=a.L;this.M=a.M;this.Ea=a.Ea;this.Da=a.Da};function tb(a,b,c){a.Ea=b;a.Da=c}x.prototype.setTo=x.prototype.n=function(a,b,c,d){u&&(w.g(a,"number",x,"setTo:x"),w.g(b,"number",x,"setTo:y"),w.g(c,"number",x,"setTo:w"),w.g(d,"number",x,"setTo:h"),0>c&&w.ja(c,">= 0",x,"setTo:w"),0>d&&w.ja(d,">= 0",x,"setTo:h"));this.L=a;this.M=b;this.Ea=c;this.Da=d;return this}; +a+", "+b+", "+c+", "+d);this.Ja=!1}w.la("Rect",x);w.Zh(x);w.ge(x,{x:!0,y:!0,width:!0,height:!0});x.prototype.assign=function(a){this.L=a.L;this.M=a.M;this.Ea=a.Ea;this.Da=a.Da};function tb(a,b,c){a.Ea=b;a.Da=c}x.prototype.setTo=x.prototype.n=function(a,b,c,d){u&&(w.g(a,"number",x,"setTo:x"),w.g(b,"number",x,"setTo:y"),w.g(c,"number",x,"setTo:w"),w.g(d,"number",x,"setTo:h"),0>c&&w.ja(c,">= 0",x,"setTo:w"),0>d&&w.ja(d,">= 0",x,"setTo:h"));this.L=a;this.M=b;this.Ea=c;this.Da=d;return this}; x.prototype.set=x.prototype.set=function(a){u&&w.k(a,x,x,"set:r");this.G();this.L=a.L;this.M=a.M;this.Ea=a.Ea;this.Da=a.Da;return this};x.prototype.setPoint=x.prototype.Ff=function(a){u&&w.k(a,I,x,"setPoint:p");this.G();this.L=a.L;this.M=a.M;return this};x.prototype.setSize=function(a){u&&w.k(a,pa,x,"setSize:s");this.G();this.Ea=a.Ea;this.Da=a.Da;return this};x.prototype.copy=function(){var a=new x;a.L=this.L;a.M=this.M;a.Ea=this.Ea;a.Da=this.Da;return a};f=x.prototype; f.Qa=function(){this.Ja=!0;Object.freeze(this);return this};f.da=function(){return Object.isFrozen(this)?this:this.copy().freeze()};f.freeze=function(){this.Ja=!0;return this};f.Sa=function(){Object.isFrozen(this)&&w.l("cannot thaw constant: "+this);this.Ja=!1;return this};f.G=function(a){if(this.Ja){var b="The Rect is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);w.l(b)}}; x.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));for(var g=0;""===a[b];)b++;(d=a[b++])&&(g=parseFloat(d));for(var h=0;""===a[b];)b++;(d=a[b++])&&(h=parseFloat(d));return new x(c,e,g,h)}return new x};x.stringify=function(a){return a instanceof x?a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString():a.toString()}; -x.prototype.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"};x.prototype.equals=x.prototype.N=function(a){return a instanceof x?this.L===a.x&&this.M===a.y&&this.Ea===a.width&&this.Da===a.height:!1};x.prototype.equalTo=x.prototype.mw=function(a,b,c,d){return this.L===a&&this.M===b&&this.Ea===c&&this.Da===d};x.prototype.equalsApprox=x.prototype.Me=function(a){return O.F(this.L,a.x)&&O.F(this.M,a.y)&&O.F(this.Ea,a.width)&&O.F(this.Da,a.height)}; +x.prototype.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"};x.prototype.equals=x.prototype.N=function(a){return a instanceof x?this.L===a.x&&this.M===a.y&&this.Ea===a.width&&this.Da===a.height:!1};x.prototype.equalTo=x.prototype.nw=function(a,b,c,d){return this.L===a&&this.M===b&&this.Ea===c&&this.Da===d};x.prototype.equalsApprox=x.prototype.Me=function(a){return O.F(this.L,a.x)&&O.F(this.M,a.y)&&O.F(this.Ea,a.width)&&O.F(this.Da,a.height)}; x.prototype.containsPoint=x.prototype.Ha=function(a){u&&w.k(a,I,x,"containsPoint:p");return this.L<=a.x&&this.L+this.Ea>=a.x&&this.M<=a.y&&this.M+this.Da>=a.y};x.prototype.containsRect=x.prototype.ak=function(a){u&&w.k(a,x,x,"containsRect:r");return this.L<=a.x&&a.x+a.width<=this.L+this.Ea&&this.M<=a.y&&a.y+a.height<=this.M+this.Da}; x.prototype.contains=x.prototype.contains=function(a,b,c,d){u?(w.o(a,x,"contains:x"),w.o(b,x,"contains:y"),void 0===c?c=0:w.o(c,x,"contains:w"),void 0===d?d=0:w.o(d,x,"contains:h"),(0>c||0>d)&&w.l("Rect.contains:Width and height cannot be negative")):(void 0===c&&(c=0),void 0===d&&(d=0));return this.L<=a&&a+c<=this.L+this.Ea&&this.M<=b&&b+d<=this.M+this.Da};x.prototype.reset=function(){this.G();this.Da=this.Ea=this.M=this.L=0}; -x.prototype.offset=x.prototype.offset=function(a,b){u&&(w.o(a,x,"offset:dx"),w.o(b,x,"offset:dy"));this.G();this.L+=a;this.M+=b;return this};x.prototype.inflate=x.prototype.Tf=function(a,b){u&&(w.o(a,x,"inflate:w"),w.o(b,x,"inflate:h"));return ub(this,b,a,b,a)};x.prototype.addMargin=x.prototype.Sv=function(a){u&&w.k(a,vb,x,"addMargin:m");return ub(this,a.top,a.right,a.bottom,a.left)}; -x.prototype.subtractMargin=x.prototype.eJ=function(a){u&&w.k(a,vb,x,"subtractMargin:m");return ub(this,-a.top,-a.right,-a.bottom,-a.left)};x.prototype.grow=function(a,b,c,d){u&&(w.o(a,x,"grow:t"),w.o(b,x,"grow:r"),w.o(c,x,"grow:b"),w.o(d,x,"grow:l"));return ub(this,a,b,c,d)};function ub(a,b,c,d,e){a.G();var g=a.Ea;c+e<=-g?(a.L+=g/2,a.Ea=0):(a.L-=e,a.Ea+=c+e);c=a.Da;b+d<=-c?(a.M+=c/2,a.Da=0):(a.M-=b,a.Da+=b+d);return a} +x.prototype.offset=x.prototype.offset=function(a,b){u&&(w.o(a,x,"offset:dx"),w.o(b,x,"offset:dy"));this.G();this.L+=a;this.M+=b;return this};x.prototype.inflate=x.prototype.Tf=function(a,b){u&&(w.o(a,x,"inflate:w"),w.o(b,x,"inflate:h"));return ub(this,b,a,b,a)};x.prototype.addMargin=x.prototype.Tv=function(a){u&&w.k(a,vb,x,"addMargin:m");return ub(this,a.top,a.right,a.bottom,a.left)}; +x.prototype.subtractMargin=x.prototype.gJ=function(a){u&&w.k(a,vb,x,"subtractMargin:m");return ub(this,-a.top,-a.right,-a.bottom,-a.left)};x.prototype.grow=function(a,b,c,d){u&&(w.o(a,x,"grow:t"),w.o(b,x,"grow:r"),w.o(c,x,"grow:b"),w.o(d,x,"grow:l"));return ub(this,a,b,c,d)};function ub(a,b,c,d,e){a.G();var g=a.Ea;c+e<=-g?(a.L+=g/2,a.Ea=0):(a.L-=e,a.Ea+=c+e);c=a.Da;b+d<=-c?(a.M+=c/2,a.Da=0):(a.M-=b,a.Da+=b+d);return a} x.prototype.intersectRect=function(a){u&&w.k(a,x,x,"intersectRect:r");return wb(this,a.x,a.y,a.width,a.height)};x.prototype.intersect=function(a,b,c,d){u&&(w.o(a,x,"intersect:x"),w.o(b,x,"intersect:y"),w.o(c,x,"intersect:w"),w.o(d,x,"intersect:h"),(0>c||0>d)&&w.l("Rect.intersect:Width and height cannot be negative"));return wb(this,a,b,c,d)}; -function wb(a,b,c,d,e){a.G();var g=Math.max(a.L,b),h=Math.max(a.M,c);b=Math.min(a.L+a.Ea,b+d);c=Math.min(a.M+a.Da,c+e);a.L=g;a.M=h;a.Ea=Math.max(0,b-g);a.Da=Math.max(0,c-h);return a}x.prototype.intersectsRect=x.prototype.Fg=function(a){u&&w.k(a,x,x,"intersectsRect:r");return this.pE(a.x,a.y,a.width,a.height)}; -x.prototype.intersects=x.prototype.pE=function(a,b,c,d){u&&(w.o(a,x,"intersects:x"),w.o(b,x,"intersects:y"),w.o(a,x,"intersects:w"),w.o(b,x,"intersects:h"),(0>c||0>d)&&w.l("Rect.intersects:Width and height cannot be negative"));var e=this.Ea,g=this.L;if(Infinity!==e&&Infinity!==c&&(e+=g,c+=a,isNaN(c)||isNaN(e)||g>c||a>e))return!1;a=this.Da;c=this.M;return Infinity!==a&&Infinity!==d&&(a+=c,d+=b,isNaN(d)||isNaN(a)||c>d||b>a)?!1:!0}; -function yb(a,b){var c=a.Ea,d=b.width+10+10,e=a.L,g=b.x-10;if(e>d+g||g>c+e)return!1;c=a.Da;d=b.height+10+10;e=a.M;g=b.y-10;return e>d+g||g>c+e?!1:!0}x.prototype.unionPoint=x.prototype.dj=function(a){u&&w.k(a,I,x,"unionPoint:p");return Ab(this,a.x,a.y,0,0)};x.prototype.unionRect=x.prototype.fi=function(a){u&&w.k(a,x,x,"unionRect:r");return Ab(this,a.L,a.M,a.Ea,a.Da)}; -x.prototype.union=x.prototype.KF=function(a,b,c,d){this.G();u?(w.o(a,x,"union:x"),w.o(b,x,"union:y"),void 0===c?c=0:w.o(c,x,"union:w"),void 0===d?d=0:w.o(d,x,"union:h"),(0>c||0>d)&&w.l("Rect.union:Width and height cannot be negative")):(void 0===c&&(c=0),void 0===d&&(d=0));return Ab(this,a,b,c,d)};function Ab(a,b,c,d,e){var g=Math.min(a.L,b),h=Math.min(a.M,c);b=Math.max(a.L+a.Ea,b+d);c=Math.max(a.M+a.Da,c+e);a.L=g;a.M=h;a.Ea=b-g;a.Da=c-h;return a} +function wb(a,b,c,d,e){a.G();var g=Math.max(a.L,b),h=Math.max(a.M,c);b=Math.min(a.L+a.Ea,b+d);c=Math.min(a.M+a.Da,c+e);a.L=g;a.M=h;a.Ea=Math.max(0,b-g);a.Da=Math.max(0,c-h);return a}x.prototype.intersectsRect=x.prototype.Fg=function(a){u&&w.k(a,x,x,"intersectsRect:r");return this.qE(a.x,a.y,a.width,a.height)}; +x.prototype.intersects=x.prototype.qE=function(a,b,c,d){u&&(w.o(a,x,"intersects:x"),w.o(b,x,"intersects:y"),w.o(a,x,"intersects:w"),w.o(b,x,"intersects:h"),(0>c||0>d)&&w.l("Rect.intersects:Width and height cannot be negative"));var e=this.Ea,g=this.L;if(Infinity!==e&&Infinity!==c&&(e+=g,c+=a,isNaN(c)||isNaN(e)||g>c||a>e))return!1;a=this.Da;c=this.M;return Infinity!==a&&Infinity!==d&&(a+=c,d+=b,isNaN(d)||isNaN(a)||c>d||b>a)?!1:!0}; +function yb(a,b){var c=a.Ea,d=b.width+10+10,e=a.L,g=b.x-10;if(e>d+g||g>c+e)return!1;c=a.Da;d=b.height+10+10;e=a.M;g=b.y-10;return e>d+g||g>c+e?!1:!0}x.prototype.unionPoint=x.prototype.dj=function(a){u&&w.k(a,I,x,"unionPoint:p");return Ab(this,a.x,a.y,0,0)};x.prototype.unionRect=x.prototype.gi=function(a){u&&w.k(a,x,x,"unionRect:r");return Ab(this,a.L,a.M,a.Ea,a.Da)}; +x.prototype.union=x.prototype.MF=function(a,b,c,d){this.G();u?(w.o(a,x,"union:x"),w.o(b,x,"union:y"),void 0===c?c=0:w.o(c,x,"union:w"),void 0===d?d=0:w.o(d,x,"union:h"),(0>c||0>d)&&w.l("Rect.union:Width and height cannot be negative")):(void 0===c&&(c=0),void 0===d&&(d=0));return Ab(this,a,b,c,d)};function Ab(a,b,c,d,e){var g=Math.min(a.L,b),h=Math.min(a.M,c);b=Math.max(a.L+a.Ea,b+d);c=Math.max(a.M+a.Da,c+e);a.L=g;a.M=h;a.Ea=b-g;a.Da=c-h;return a} x.prototype.setSpot=x.prototype.Kt=function(a,b,c){u&&(w.o(a,x,"setSpot:x"),w.o(b,x,"setSpot:y"),w.k(c,Q,x,"setSpot:spot"));this.G();this.L=a-c.offsetX-c.x*this.Ea;this.M=b-c.offsetY-c.y*this.Da;return this};var Hb; x.contains=Hb=function(a,b,c,d,e,g,h,k){u?(w.o(a,x,"contains:rx"),w.o(b,x,"contains:ry"),w.o(c,x,"contains:rw"),w.o(d,x,"contains:rh"),w.o(e,x,"contains:x"),w.o(g,x,"contains:y"),void 0===h?h=0:w.o(h,x,"contains:w"),void 0===k?k=0:w.o(k,x,"contains:h"),(0>c||0>d||0>h||0>k)&&w.l("Rect.contains:Width and height cannot be negative")):(void 0===h&&(h=0),void 0===k&&(k=0));return a<=e&&e+h<=a+c&&b<=g&&g+k<=b+d}; x.intersects=function(a,b,c,d,e,g,h,k){u&&(w.o(a,x,"intersects:rx"),w.o(b,x,"intersects:ry"),w.o(c,x,"intersects:rw"),w.o(d,x,"intersects:rh"),w.o(e,x,"intersects:x"),w.o(g,x,"intersects:y"),w.o(h,x,"intersects:w"),w.o(k,x,"intersects:h"),(0>c||0>d||0>h||0>k)&&w.l("Rect.intersects:Width and height cannot be negative"));c+=a;h+=e;if(a>h||e>c)return!1;a=d+b;k+=g;return b>k||g>a?!1:!0};w.defineProperty(x,{x:"x"},function(){return this.L},function(a){this.G(a);u&&w.g(a,"number",x,"x");this.L=a}); @@ -148,83 +149,83 @@ w.defineProperty(x,{left:"left"},function(){return this.L},function(a){this.G(a) w.defineProperty(x,{bottom:"bottom"},function(){return this.M+this.Da},function(a){this.G(a);u&&w.o(a,x,"top");this.M+=a-(this.M+this.Da)});w.defineProperty(x,{position:"position"},function(){return new I(this.L,this.M)},function(a){this.G(a);u&&w.k(a,I,x,"position");this.L=a.x;this.M=a.y});w.defineProperty(x,{size:"size"},function(){return new pa(this.Ea,this.Da)},function(a){this.G(a);u&&w.k(a,pa,x,"size");this.Ea=a.width;this.Da=a.height}); w.defineProperty(x,{hl:"center"},function(){return new I(this.L+this.Ea/2,this.M+this.Da/2)},function(a){this.G(a);u&&w.k(a,I,x,"center");this.L=a.x-this.Ea/2;this.M=a.y-this.Da/2});w.defineProperty(x,{Pa:"centerX"},function(){return this.L+this.Ea/2},function(a){this.G(a);u&&w.o(a,x,"centerX");this.L=a-this.Ea/2});w.defineProperty(x,{bb:"centerY"},function(){return this.M+this.Da/2},function(a){this.G(a);u&&w.o(a,x,"centerY");this.M=a-this.Da/2}); x.prototype.isReal=x.prototype.J=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)};x.prototype.isEmpty=function(){return 0===this.width&&0===this.height}; -function vb(a,b,c,d){void 0===a?this.Yg=this.Pg=this.eh=this.gh=0:void 0===b?this.left=this.bottom=this.right=this.top=a:void 0===c?(d=b,this.top=a,this.right=b,this.bottom=a,this.left=d):void 0!==d?(this.top=a,this.right=b,this.bottom=c,this.left=d):w.l("Invalid arguments to Margin constructor: "+a+", "+b+", "+c+", "+d);this.Ja=!1}w.la("Margin",vb);w.Yh(vb);w.ge(vb,{top:!0,right:!0,bottom:!0,left:!0});vb.prototype.assign=function(a){this.gh=a.gh;this.eh=a.eh;this.Pg=a.Pg;this.Yg=a.Yg}; +function vb(a,b,c,d){void 0===a?this.Yg=this.Pg=this.eh=this.gh=0:void 0===b?this.left=this.bottom=this.right=this.top=a:void 0===c?(d=b,this.top=a,this.right=b,this.bottom=a,this.left=d):void 0!==d?(this.top=a,this.right=b,this.bottom=c,this.left=d):w.l("Invalid arguments to Margin constructor: "+a+", "+b+", "+c+", "+d);this.Ja=!1}w.la("Margin",vb);w.Zh(vb);w.ge(vb,{top:!0,right:!0,bottom:!0,left:!0});vb.prototype.assign=function(a){this.gh=a.gh;this.eh=a.eh;this.Pg=a.Pg;this.Yg=a.Yg}; vb.prototype.setTo=vb.prototype.n=function(a,b,c,d){u&&(w.g(a,"number",vb,"setTo:t"),w.g(b,"number",vb,"setTo:r"),w.g(c,"number",vb,"setTo:b"),w.g(d,"number",vb,"setTo:l"));this.G();this.gh=a;this.eh=b;this.Pg=c;this.Yg=d;return this};vb.prototype.set=vb.prototype.set=function(a){u&&w.k(a,vb,vb,"assign:m");this.G();this.gh=a.gh;this.eh=a.eh;this.Pg=a.Pg;this.Yg=a.Yg;return this};vb.prototype.copy=function(){var a=new vb;a.gh=this.gh;a.eh=this.eh;a.Pg=this.Pg;a.Yg=this.Yg;return a};f=vb.prototype; f.Qa=function(){this.Ja=!0;Object.freeze(this);return this};f.da=function(){return Object.isFrozen(this)?this:this.copy().freeze()};f.freeze=function(){this.Ja=!0;return this};f.Sa=function(){Object.isFrozen(this)&&w.l("cannot thaw constant: "+this);this.Ja=!1;return this};f.G=function(a){if(this.Ja){var b="The Margin is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);w.l(b)}}; vb.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=NaN;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));if(isNaN(c))return new vb;for(var e=NaN;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));if(isNaN(e))return new vb(c);for(var g=NaN;""===a[b];)b++;(d=a[b++])&&(g=parseFloat(d));if(isNaN(g))return new vb(c,e);for(var h=NaN;""===a[b];)b++;(d=a[b++])&&(h=parseFloat(d));return isNaN(h)?new vb(c,e):new vb(c,e,g,h)}return new vb}; vb.stringify=function(a){return a instanceof vb?a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString():a.toString()};vb.prototype.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"};vb.prototype.equals=vb.prototype.N=function(a){return a instanceof vb?this.gh===a.top&&this.eh===a.right&&this.Pg===a.bottom&&this.Yg===a.left:!1}; -vb.prototype.equalTo=vb.prototype.mw=function(a,b,c,d){return this.gh===a&&this.eh===b&&this.Pg===c&&this.Yg===d};vb.prototype.equalsApprox=vb.prototype.Me=function(a){return O.F(this.gh,a.top)&&O.F(this.eh,a.right)&&O.F(this.Pg,a.bottom)&&O.F(this.Yg,a.left)};w.defineProperty(vb,{top:"top"},function(){return this.gh},function(a){this.G(a);u&&w.o(a,vb,"top");this.gh=a});w.defineProperty(vb,{right:"right"},function(){return this.eh},function(a){this.G(a);u&&w.o(a,vb,"right");this.eh=a}); -w.defineProperty(vb,{bottom:"bottom"},function(){return this.Pg},function(a){this.G(a);u&&w.o(a,vb,"bottom");this.Pg=a});w.defineProperty(vb,{left:"left"},function(){return this.Yg},function(a){this.G(a);u&&w.o(a,vb,"left");this.Yg=a});vb.prototype.isReal=vb.prototype.J=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)};function ra(){this.m11=1;this.m21=this.m12=0;this.m22=1;this.dy=this.dx=0}w.Yh(ra); +vb.prototype.equalTo=vb.prototype.nw=function(a,b,c,d){return this.gh===a&&this.eh===b&&this.Pg===c&&this.Yg===d};vb.prototype.equalsApprox=vb.prototype.Me=function(a){return O.F(this.gh,a.top)&&O.F(this.eh,a.right)&&O.F(this.Pg,a.bottom)&&O.F(this.Yg,a.left)};w.defineProperty(vb,{top:"top"},function(){return this.gh},function(a){this.G(a);u&&w.o(a,vb,"top");this.gh=a});w.defineProperty(vb,{right:"right"},function(){return this.eh},function(a){this.G(a);u&&w.o(a,vb,"right");this.eh=a}); +w.defineProperty(vb,{bottom:"bottom"},function(){return this.Pg},function(a){this.G(a);u&&w.o(a,vb,"bottom");this.Pg=a});w.defineProperty(vb,{left:"left"},function(){return this.Yg},function(a){this.G(a);u&&w.o(a,vb,"left");this.Yg=a});vb.prototype.isReal=vb.prototype.J=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)};function ra(){this.m11=1;this.m21=this.m12=0;this.m22=1;this.dy=this.dx=0}w.Zh(ra); w.ge(ra,{m11:!0,m12:!0,m21:!0,m22:!0,dx:!0,dy:!0});ra.prototype.set=ra.prototype.set=function(a){u&&w.k(a,ra,ra,"set:t");this.m11=a.m11;this.m12=a.m12;this.m21=a.m21;this.m22=a.m22;this.dx=a.dx;this.dy=a.dy;return this};ra.prototype.copy=function(){var a=new ra;a.m11=this.m11;a.m12=this.m12;a.m21=this.m21;a.m22=this.m22;a.dx=this.dx;a.dy=this.dy;return a};ra.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"}; ra.prototype.equals=ra.prototype.N=function(a){return a instanceof ra?this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy:!1};ra.prototype.isIdentity=ra.prototype.ft=function(){return 1===this.m11&&0===this.m12&&0===this.m21&&1===this.m22&&0===this.dx&&0===this.dy};ra.prototype.reset=ra.prototype.reset=function(){this.m11=1;this.m21=this.m12=0;this.m22=1;this.dy=this.dx=0;return this}; ra.prototype.multiply=ra.prototype.multiply=function(a){u&&w.k(a,ra,ra,"multiply:matrix");var b=this.m12*a.m11+this.m22*a.m12,c=this.m11*a.m21+this.m21*a.m22,d=this.m12*a.m21+this.m22*a.m22,e=this.m11*a.dx+this.m21*a.dy+this.dx,g=this.m12*a.dx+this.m22*a.dy+this.dy;this.m11=this.m11*a.m11+this.m21*a.m12;this.m12=b;this.m21=c;this.m22=d;this.dx=e;this.dy=g;return this}; -ra.prototype.multiplyInverted=ra.prototype.dA=function(a){u&&w.k(a,ra,ra,"multiplyInverted:matrix");var b=1/(a.m11*a.m22-a.m12*a.m21),c=a.m22*b,d=-a.m12*b,e=-a.m21*b,g=a.m11*b,h=b*(a.m21*a.dy-a.m22*a.dx),k=b*(a.m12*a.dx-a.m11*a.dy);a=this.m12*c+this.m22*d;b=this.m11*e+this.m21*g;e=this.m12*e+this.m22*g;g=this.m11*h+this.m21*k+this.dx;h=this.m12*h+this.m22*k+this.dy;this.m11=this.m11*c+this.m21*d;this.m12=a;this.m21=b;this.m22=e;this.dx=g;this.dy=h;return this}; -ra.prototype.invert=ra.prototype.Nz=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),b=-this.m12*a,c=-this.m21*a,d=this.m11*a,e=a*(this.m21*this.dy-this.m22*this.dx),g=a*(this.m12*this.dx-this.m11*this.dy);this.m11=this.m22*a;this.m12=b;this.m21=c;this.m22=d;this.dx=e;this.dy=g;return this}; +ra.prototype.multiplyInverted=ra.prototype.eA=function(a){u&&w.k(a,ra,ra,"multiplyInverted:matrix");var b=1/(a.m11*a.m22-a.m12*a.m21),c=a.m22*b,d=-a.m12*b,e=-a.m21*b,g=a.m11*b,h=b*(a.m21*a.dy-a.m22*a.dx),k=b*(a.m12*a.dx-a.m11*a.dy);a=this.m12*c+this.m22*d;b=this.m11*e+this.m21*g;e=this.m12*e+this.m22*g;g=this.m11*h+this.m21*k+this.dx;h=this.m12*h+this.m22*k+this.dy;this.m11=this.m11*c+this.m21*d;this.m12=a;this.m21=b;this.m22=e;this.dx=g;this.dy=h;return this}; +ra.prototype.invert=ra.prototype.Oz=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),b=-this.m12*a,c=-this.m21*a,d=this.m11*a,e=a*(this.m21*this.dy-this.m22*this.dx),g=a*(this.m12*this.dx-this.m11*this.dy);this.m11=this.m22*a;this.m12=b;this.m21=c;this.m22=d;this.dx=e;this.dy=g;return this}; ra.prototype.rotate=ra.prototype.rotate=function(a,b,c){u&&(w.o(a,ra,"rotate:angle"),w.o(b,ra,"rotate:rx"),w.o(c,ra,"rotate:ry"));360<=a?a-=360:0>a&&(a+=360);if(0===a)return this;this.translate(b,c);var d=0,e=0;90===a?(d=0,e=1):180===a?(d=-1,e=0):270===a?(d=0,e=-1):(e=a*Math.PI/180,d=Math.cos(e),e=Math.sin(e));a=this.m12*d+this.m22*e;var g=this.m11*-e+this.m21*d,h=this.m12*-e+this.m22*d;this.m11=this.m11*d+this.m21*e;this.m12=a;this.m21=g;this.m22=h;this.translate(-b,-c);return this}; ra.prototype.translate=ra.prototype.translate=function(a,b){u&&(w.o(a,ra,"translate:x"),w.o(b,ra,"translate:y"));this.dx+=this.m11*a+this.m21*b;this.dy+=this.m12*a+this.m22*b;return this};ra.prototype.scale=ra.prototype.scale=function(a,b){void 0===b&&(b=a);u&&(w.o(a,ra,"translate:sx"),w.o(b,ra,"translate:sy"));this.m11*=a;this.m12*=a;this.m21*=b;this.m22*=b;return this}; -ra.prototype.transformPoint=ra.prototype.ib=function(a){u&&w.k(a,I,ra,"transformPoint:p");var b=a.L,c=a.M;a.L=b*this.m11+c*this.m21+this.dx;a.M=b*this.m12+c*this.m22+this.dy;return a};ra.prototype.invertedTransformPoint=ra.prototype.ai=function(a){u&&w.k(a,I,ra,"invertedTransformPoint:p");var b=1/(this.m11*this.m22-this.m12*this.m21),c=-this.m12*b,d=this.m11*b,e=b*(this.m12*this.dx-this.m11*this.dy),g=a.L,h=a.M;a.L=g*this.m22*b+h*-this.m21*b+b*(this.m21*this.dy-this.m22*this.dx);a.M=g*c+h*d+e;return a}; -ra.prototype.transformRect=ra.prototype.IF=function(a){u&&w.k(a,x,ra,"transformRect:rect");var b=a.L,c=a.M,d=b+a.Ea,e=c+a.Da,g=this.m11,h=this.m12,k=this.m21,l=this.m22,m=this.dx,n=this.dy,p=b*g+c*k+m,q=b*h+c*l+n,r=d*g+c*k+m,c=d*h+c*l+n,s=b*g+e*k+m,b=b*h+e*l+n,g=d*g+e*k+m,d=d*h+e*l+n,e=p,h=q,p=Math.min(p,r),e=Math.max(e,r),h=Math.min(h,c),q=Math.max(q,c),p=Math.min(p,s),e=Math.max(e,s),h=Math.min(h,b),q=Math.max(q,b),p=Math.min(p,g),e=Math.max(e,g),h=Math.min(h,d),q=Math.max(q,d);a.L=p;a.M=h;a.Ea= -e-p;a.Da=q-h;return a};function Q(a,b,c,d){void 0===a?this.qg=this.pg=this.M=this.L=0:(void 0===b&&(b=0),void 0===c&&(c=0),void 0===d&&(d=0),this.x=a,this.y=b,this.offsetX=c,this.offsetY=d);this.Ja=!1}w.la("Spot",Q);w.Yh(Q);w.ge(Q,{x:!0,y:!0,offsetX:!0,offsetY:!0});Q.prototype.assign=function(a){this.L=a.L;this.M=a.M;this.pg=a.pg;this.qg=a.qg}; +ra.prototype.transformPoint=ra.prototype.ib=function(a){u&&w.k(a,I,ra,"transformPoint:p");var b=a.L,c=a.M;a.L=b*this.m11+c*this.m21+this.dx;a.M=b*this.m12+c*this.m22+this.dy;return a};ra.prototype.invertedTransformPoint=ra.prototype.bi=function(a){u&&w.k(a,I,ra,"invertedTransformPoint:p");var b=1/(this.m11*this.m22-this.m12*this.m21),c=-this.m12*b,d=this.m11*b,e=b*(this.m12*this.dx-this.m11*this.dy),g=a.L,h=a.M;a.L=g*this.m22*b+h*-this.m21*b+b*(this.m21*this.dy-this.m22*this.dx);a.M=g*c+h*d+e;return a}; +ra.prototype.transformRect=ra.prototype.KF=function(a){u&&w.k(a,x,ra,"transformRect:rect");var b=a.L,c=a.M,d=b+a.Ea,e=c+a.Da,g=this.m11,h=this.m12,k=this.m21,l=this.m22,m=this.dx,n=this.dy,p=b*g+c*k+m,q=b*h+c*l+n,r=d*g+c*k+m,c=d*h+c*l+n,s=b*g+e*k+m,b=b*h+e*l+n,g=d*g+e*k+m,d=d*h+e*l+n,e=p,h=q,p=Math.min(p,r),e=Math.max(e,r),h=Math.min(h,c),q=Math.max(q,c),p=Math.min(p,s),e=Math.max(e,s),h=Math.min(h,b),q=Math.max(q,b),p=Math.min(p,g),e=Math.max(e,g),h=Math.min(h,d),q=Math.max(q,d);a.L=p;a.M=h;a.Ea= +e-p;a.Da=q-h;return a};function Q(a,b,c,d){void 0===a?this.qg=this.pg=this.M=this.L=0:(void 0===b&&(b=0),void 0===c&&(c=0),void 0===d&&(d=0),this.x=a,this.y=b,this.offsetX=c,this.offsetY=d);this.Ja=!1}w.la("Spot",Q);w.Zh(Q);w.ge(Q,{x:!0,y:!0,offsetX:!0,offsetY:!0});Q.prototype.assign=function(a){this.L=a.L;this.M=a.M;this.pg=a.pg;this.qg=a.qg}; Q.prototype.setTo=Q.prototype.n=function(a,b,c,d){u&&(Ib(a,"setTo:x"),Ib(b,"setTo:y"),Mb(c,"setTo:offx"),Mb(d,"setTo:offy"));this.G();this.L=a;this.M=b;this.pg=c;this.qg=d;return this};Q.prototype.set=Q.prototype.set=function(a){u&&w.k(a,Q,Q,"set:s");this.G();this.L=a.L;this.M=a.M;this.pg=a.pg;this.qg=a.qg;return this};Q.prototype.copy=function(){var a=new Q;a.L=this.L;a.M=this.M;a.pg=this.pg;a.qg=this.qg;return a};f=Q.prototype;f.Qa=function(){this.Ja=!0;Object.freeze(this);return this}; f.da=function(){return Object.isFrozen(this)?this:this.copy().freeze()};f.freeze=function(){this.Ja=!0;return this};f.Sa=function(){Object.isFrozen(this)&&w.l("cannot thaw constant: "+this);this.Ja=!1;return this};f.G=function(a){if(this.Ja){var b="The Spot is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);w.l(b)}};function Nb(a,b){a.L=NaN;a.M=NaN;a.pg=b;return a}function Ib(a,b){(isNaN(a)||1a)&&w.ja(a,"0 <= "+b+" <= 1",Q,b)} function Mb(a,b){(isNaN(a)||Infinity===a||-Infinity===a)&&w.ja(a,"real number, not NaN or Infinity",Q,b)}var Ob; Q.parse=Ob=function(a){if("string"===typeof a){a=a.trim();if("None"===a)return Pb;if("TopLeft"===a)return Xb;if("Top"===a||"TopCenter"===a||"MiddleTop"===a)return Yb;if("TopRight"===a)return Zb;if("Left"===a||"LeftCenter"===a||"MiddleLeft"===a)return $b;if("Center"===a)return ac;if("Right"===a||"RightCenter"===a||"MiddleRight"===a)return bc;if("BottomLeft"===a)return cc;if("Bottom"===a||"BottomCenter"===a||"MiddleBottom"===a)return dc;if("BottomRight"===a)return jc;if("TopSide"===a)return kc;if("LeftSide"=== a)return nc;if("RightSide"===a)return oc;if("BottomSide"===a)return tc;if("TopBottomSides"===a)return uc;if("LeftRightSides"===a)return vc;if("TopLeftSides"===a)return wc;if("TopRightSides"===a)return xc;if("BottomLeftSides"===a)return yc;if("BottomRightSides"===a)return zc;if("NotTopSide"===a)return Fc;if("NotLeftSide"===a)return Gc;if("NotRightSide"===a)return Mc;if("NotBottomSide"===a)return Nc;if("AllSides"===a)return Oc;if("Default"===a)return Pc;a=a.split(" ");for(var b=0,c=0;""===a[b];)b++; -var d=a[b++];void 0!==d&&0b.offset?1:-1});for(k=0;k=2*Math.PI?(fd(a,b,c,d,e,e+Math.PI,h),fd(a,b,c,d,e+Math.PI,e+2*Math.PI,h),a.path.push(["M",l,g])):(b+=d*Math.cos(e),c+=d*Math.sin(e),k=180*k/Math.PI,e=h?0:1,h=180<=k==!!h?0:1,0!==a.path.length?a.path.push(["L",b,c]):a.path.push(["M",b,c]),a.path.push(["A",d,d,k,h,e,l,g]))}}function ed(a,b,c,d,e,g,h){var k=new ad;k.kf=[b,c,d,e,g,h];b={};hd(a,"g",b,k);k=a.addElement("g",b);a.yf.push(k)} -f.hb=function(){if(0!==this.shadowOffsetX||0!==this.shadowOffsetY||0!==this.shadowBlur){var a="SHADOW"+this.sF;this.sF++;var b=this.addElement("filter",{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},null),c,d,e,g,h;c=dd(this,"feGaussianBlur",{"in":"SourceAlpha",result:"blur",kL:this.shadowBlur/2});d=dd(this,"feFlood",{"in":"blur",result:"flood","flood-color":this.shadowColor});e=dd(this,"feComposite",{"in":"flood",in2:"blur",operator:"in",result:"comp"});g=dd(this,"feOffset",{"in":"comp",result:"offsetBlur", +f.hb=function(){if(0!==this.shadowOffsetX||0!==this.shadowOffsetY||0!==this.shadowBlur){var a="SHADOW"+this.uF;this.uF++;var b=this.addElement("filter",{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},null),c,d,e,g,h;c=dd(this,"feGaussianBlur",{"in":"SourceAlpha",result:"blur",mL:this.shadowBlur/2});d=dd(this,"feFlood",{"in":"blur",result:"flood","flood-color":this.shadowColor});e=dd(this,"feComposite",{"in":"flood",in2:"blur",operator:"in",result:"comp"});g=dd(this,"feOffset",{"in":"comp",result:"offsetBlur", dx:this.shadowOffsetX,dy:this.shadowOffsetY});h=dd(this,"feMerge",{});h.appendChild(dd(this,"feMergeNode",{"in":"offsetBlur"}));h.appendChild(dd(this,"feMergeNode",{"in":"SourceGraphic"}));b.appendChild(c);b.appendChild(d);b.appendChild(e);b.appendChild(g);b.appendChild(h);0=a)return 0;var b=O.TA;if(null===b){for(var b=[],c=0;2E3>=c;c++)b[c]=Math.sqrt(c);O.TA=b}return 1>a? +function va(a,b){this.ownerDocument=void 0===b?document:b;var c=this.ownerDocument.createElement("canvas");c.tabIndex=0;this.Qd=c;c.getContext&&c.getContext("2d")||w.l("Browser does not support HTML Canvas Element");this.RG=c.getContext("2d");c.Z=a;Object.seal(this)}f=va.prototype;f.getContext=function(){return this.RG};f.toDataURL=function(a,b){return this.Qd.toDataURL(a,b)};f.getBoundingClientRect=function(){return this.Qd.getBoundingClientRect()};f.focus=function(){return this.Qd.focus()}; +f.addEventListener=function(a,b,c){this.Qd.addEventListener(a,b,c)};f.removeEventListener=function(a,b,c){this.Qd.removeEventListener(a,b,c)};w.defineProperty(va,{width:"width"},function(){return this.Qd.width},function(a){this.Qd.width=a});w.defineProperty(va,{height:"height"},function(){return this.Qd.height},function(a){this.Qd.height=a});w.defineProperty(va,{style:"style"},function(){return this.Qd.style},function(a){this.Qd.style=a}); +var O={xa:4*((Math.sqrt(2)-1)/3),ok:(new I(0,0)).Qa(),YF:(new x(0,0,0,0)).Qa(),Jp:(new vb(0,0,0,0)).Qa(),XF:(new vb(2,2,2,2)).Qa(),VA:(new pa(Infinity,Infinity)).Qa(),UF:(new I(-Infinity,-Infinity)).Qa(),TF:(new I(Infinity,Infinity)).Qa(),on:(new pa(0,0)).Qa(),ux:(new pa(1,1)).Qa(),Ip:(new pa(6,6)).Qa(),qx:(new pa(8,8)).Qa(),VF:(new I(NaN,NaN)).Qa(),vx:new xa,fj:new xa,UA:null,sqrt:function(a){if(0>=a)return 0;var b=O.UA;if(null===b){for(var b=[],c=0;2E3>=c;c++)b[c]=Math.sqrt(c);O.UA=b}return 1>a? (c=1/a,2E3>=c?1/b[c|0]:Math.sqrt(a)):2E3>=a?b[a|0]:Math.sqrt(a)},F:function(a,b){var c=a-b;return.5>c&&-.5c&&-5E-8=e&&(e=1E-6);var k=0,l=0,m=0,n=0;am-n)if(a-c>e||c-a>e){if(g=(d-b)/(c-a)*(g-a)+b,g-e<=h&&h<=g+e)return!0}else return!0;else if(b- -d>e||d-b>e){if(h=(c-a)/(d-b)*(h-b)+a,h-e<=g&&g<=h+e)return!0}else return!0;return!1},bw:function(a,b,c,d,e,g,h,k,l,m,n,p){if(O.Ud(a,b,h,k,p,c,d)&&O.Ud(a,b,h,k,p,e,g))return O.Ud(a,b,h,k,p,m,n);var q=(a+c)/2,r=(b+d)/2,s=(c+e)/2,t=(d+g)/2;e=(e+h)/2;g=(g+k)/2;d=(q+s)/2;c=(r+t)/2;var s=(s+e)/2,t=(t+g)/2,v=(d+s)/2,y=(c+t)/2;return O.bw(a,b,q,r,d,c,v,y,l,m,n,p)||O.bw(v,y,s,t,e,g,h,k,l,m,n,p)},FG:function(a,b,c,d,e,g,h,k,l){var m=(c+e)/2,n=(d+g)/2;l.x=(((a+c)/2+m)/2+(m+(e+h)/2)/2)/2;l.y=(((b+d)/2+n)/2+(n+ -(g+k)/2)/2)/2;return l},EG:function(a,b,c,d,e,g,h,k){var l=(c+e)/2,m=(d+g)/2;return nb(((a+c)/2+l)/2,((b+d)/2+m)/2,(l+(e+h)/2)/2,(m+(g+k)/2)/2)},Ho:function(a,b,c,d,e,g,h,k,l,m){if(O.Ud(a,b,h,k,l,c,d)&&O.Ud(a,b,h,k,l,e,g))Ab(m,a,b,0,0),Ab(m,h,k,0,0);else{var n=(a+c)/2,p=(b+d)/2,q=(c+e)/2,r=(d+g)/2;e=(e+h)/2;g=(g+k)/2;d=(n+q)/2;c=(p+r)/2;var q=(q+e)/2,r=(r+g)/2,s=(d+q)/2,t=(c+r)/2;O.Ho(a,b,n,p,d,c,s,t,l,m);O.Ho(s,t,q,r,e,g,h,k,l,m)}return m},Ie:function(a,b,c,d,e,g,h,k,l,m){if(O.Ud(a,b,h,k,l,c,d)&& -O.Ud(a,b,h,k,l,e,g))0===m.length&&(m.push(a),m.push(b)),m.push(h),m.push(k);else{var n=(a+c)/2,p=(b+d)/2,q=(c+e)/2,r=(d+g)/2;e=(e+h)/2;g=(g+k)/2;d=(n+q)/2;c=(p+r)/2;var q=(q+e)/2,r=(r+g)/2,s=(d+q)/2,t=(c+r)/2;O.Ie(a,b,n,p,d,c,s,t,l,m);O.Ie(s,t,q,r,e,g,h,k,l,m)}return m},mA:function(a,b,c,d,e,g,h,k,l,m){if(O.Ud(a,b,e,g,m,c,d))return O.Ud(a,b,e,g,m,k,l);var n=(a+c)/2,p=(b+d)/2;c=(c+e)/2;d=(d+g)/2;var q=(n+c)/2,r=(p+d)/2;return O.mA(a,b,n,p,q,r,h,k,l,m)||O.mA(q,r,c,d,e,g,h,k,l,m)},cL:function(a,b,c, -d,e,g,h){h.x=((a+c)/2+(c+e)/2)/2;h.y=((b+d)/2+(d+g)/2)/2;return h},lA:function(a,b,c,d,e,g,h,k){if(O.Ud(a,b,e,g,h,c,d))Ab(k,a,b,0,0),Ab(k,e,g,0,0);else{var l=(a+c)/2,m=(b+d)/2;c=(c+e)/2;d=(d+g)/2;var n=(l+c)/2,p=(m+d)/2;O.lA(a,b,l,m,n,p,h,k);O.lA(n,p,c,d,e,g,h,k)}return k},rp:function(a,b,c,d,e,g,h,k){if(O.Ud(a,b,e,g,h,c,d))0===k.length&&(k.push(a),k.push(b)),k.push(e),k.push(g);else{var l=(a+c)/2,m=(b+d)/2;c=(c+e)/2;d=(d+g)/2;var n=(l+c)/2,p=(m+d)/2;O.rp(a,b,l,m,n,p,h,k);O.rp(n,p,c,d,e,g,h,k)}return k}, +d>e||d-b>e){if(h=(c-a)/(d-b)*(h-b)+a,h-e<=g&&g<=h+e)return!0}else return!0;return!1},cw:function(a,b,c,d,e,g,h,k,l,m,n,p){if(O.Ud(a,b,h,k,p,c,d)&&O.Ud(a,b,h,k,p,e,g))return O.Ud(a,b,h,k,p,m,n);var q=(a+c)/2,r=(b+d)/2,s=(c+e)/2,t=(d+g)/2;e=(e+h)/2;g=(g+k)/2;d=(q+s)/2;c=(r+t)/2;var s=(s+e)/2,t=(t+g)/2,v=(d+s)/2,y=(c+t)/2;return O.cw(a,b,q,r,d,c,v,y,l,m,n,p)||O.cw(v,y,s,t,e,g,h,k,l,m,n,p)},HG:function(a,b,c,d,e,g,h,k,l){var m=(c+e)/2,n=(d+g)/2;l.x=(((a+c)/2+m)/2+(m+(e+h)/2)/2)/2;l.y=(((b+d)/2+n)/2+(n+ +(g+k)/2)/2)/2;return l},GG:function(a,b,c,d,e,g,h,k){var l=(c+e)/2,m=(d+g)/2;return nb(((a+c)/2+l)/2,((b+d)/2+m)/2,(l+(e+h)/2)/2,(m+(g+k)/2)/2)},Ho:function(a,b,c,d,e,g,h,k,l,m){if(O.Ud(a,b,h,k,l,c,d)&&O.Ud(a,b,h,k,l,e,g))Ab(m,a,b,0,0),Ab(m,h,k,0,0);else{var n=(a+c)/2,p=(b+d)/2,q=(c+e)/2,r=(d+g)/2;e=(e+h)/2;g=(g+k)/2;d=(n+q)/2;c=(p+r)/2;var q=(q+e)/2,r=(r+g)/2,s=(d+q)/2,t=(c+r)/2;O.Ho(a,b,n,p,d,c,s,t,l,m);O.Ho(s,t,q,r,e,g,h,k,l,m)}return m},Ie:function(a,b,c,d,e,g,h,k,l,m){if(O.Ud(a,b,h,k,l,c,d)&& +O.Ud(a,b,h,k,l,e,g))0===m.length&&(m.push(a),m.push(b)),m.push(h),m.push(k);else{var n=(a+c)/2,p=(b+d)/2,q=(c+e)/2,r=(d+g)/2;e=(e+h)/2;g=(g+k)/2;d=(n+q)/2;c=(p+r)/2;var q=(q+e)/2,r=(r+g)/2,s=(d+q)/2,t=(c+r)/2;O.Ie(a,b,n,p,d,c,s,t,l,m);O.Ie(s,t,q,r,e,g,h,k,l,m)}return m},nA:function(a,b,c,d,e,g,h,k,l,m){if(O.Ud(a,b,e,g,m,c,d))return O.Ud(a,b,e,g,m,k,l);var n=(a+c)/2,p=(b+d)/2;c=(c+e)/2;d=(d+g)/2;var q=(n+c)/2,r=(p+d)/2;return O.nA(a,b,n,p,q,r,h,k,l,m)||O.nA(q,r,c,d,e,g,h,k,l,m)},eL:function(a,b,c, +d,e,g,h){h.x=((a+c)/2+(c+e)/2)/2;h.y=((b+d)/2+(d+g)/2)/2;return h},mA:function(a,b,c,d,e,g,h,k){if(O.Ud(a,b,e,g,h,c,d))Ab(k,a,b,0,0),Ab(k,e,g,0,0);else{var l=(a+c)/2,m=(b+d)/2;c=(c+e)/2;d=(d+g)/2;var n=(l+c)/2,p=(m+d)/2;O.mA(a,b,l,m,n,p,h,k);O.mA(n,p,c,d,e,g,h,k)}return k},rp:function(a,b,c,d,e,g,h,k){if(O.Ud(a,b,e,g,h,c,d))0===k.length&&(k.push(a),k.push(b)),k.push(e),k.push(g);else{var l=(a+c)/2,m=(b+d)/2;c=(c+e)/2;d=(d+g)/2;var n=(l+c)/2,p=(m+d)/2;O.rp(a,b,l,m,n,p,h,k);O.rp(n,p,c,d,e,g,h,k)}return k}, Bs:function(a,b,c,d,e,g,h,k,l,m,n,p,q,r){0>=q&&(q=1E-6);if(O.Ud(a,b,h,k,q,c,d)&&O.Ud(a,b,h,k,q,e,g)){var s=(a-h)*(m-p)-(b-k)*(l-n);if(0===s)return!1;q=((a*k-b*h)*(l-n)-(a-h)*(l*p-m*n))/s;s=((a*k-b*h)*(m-p)-(b-k)*(l*p-m*n))/s;if((l>n?l-n:n-l)<(m>p?m-p:p-m)){if(h=l=0,bh)return!1}else if(ah)return!1;r.x=q;r.y=s;return!0}var s=(a+c)/2,t=(b+d)/2;c=(c+e)/2;d=(d+g)/2;e=(e+h)/2;g=(g+k)/2;var v=(s+c)/2,y=(t+d)/2;c=(c+e)/2;d=(d+g)/2;var B=(v+c)/2,A=(y+d)/ 2,E=(n-l)*(n-l)+(p-m)*(p-m),N=!1;O.Bs(a,b,s,t,v,y,B,A,l,m,n,p,q,r)&&(b=(r.x-l)*(r.x-l)+(r.y-m)*(r.y-m),b=q&&(q=1E-6);if(O.Ud(a,b,h,k,q,c,d)&&O.Ud(a,b,h,k,q,e,g)){q=(a-h)*(m-p)-(b-k)*(l-n);if(0===q)return r;var s=((a*k-b*h)*(l-n)-(a-h)*(l*p-m*n))/q,t=((a*k-b*h)*(m-p)-(b-k)*(l*p-m*n))/q;if(s>=n)return r;if((l>n?l-n:n-l)< (m>p?m-p:p-m)){if(a=l=0,ba)return r}else if(aa)return r;0q&&r--}else{var s=(a+c)/2,t=(b+d)/2,v=(c+e)/2,y=(d+g)/2;e=(e+h)/2;g=(g+k)/2;d=(s+v)/2;c=(t+y)/2;var v=(v+e)/2,y=(y+g)/2,B=(d+v)/2,A=(c+y)/2,r=r+O.Cs(a,b,s,t,d,c,B,A,l,m,n,p,q),r=r+O.Cs(B,A,v,y,e,g,h,k,l,m,n,p,q)}return r},cn:function(a,b,c,d,e,g,h){if(O.wb(a,c)){var k=0;c=0;bc)return h.x=a,h.y=c,!1;h.x=a;h.y=d;return!0}if(O.wb(b, d)){ac)return h.x=c,h.y=b,!1;h.x=d;h.y=b;return!0}k=((a-e)*(a-c)+(b-g)*(b-d))/((c-a)*(c-a)+(d-b)*(d-b));if(-5E-6>k)return h.x=a,h.y=b,!1;if(1.000005c)return l.x=a,l.y=c,!1;l.x=a;l.y=g;return!0}h=(d-b)/(c-a);if(O.wb(k,h))return O.cn(a,b,c,d,e,g,l),!1;e=(h*a-k*e+g-b)/(h-k);if(O.wb(h,0)){ac)return l.x=c,l.y=b,!1;l.x=e;l.y=b;return!0}g=h*(e-a)+b;return O.cn(a,b,c,d,e,g,l)},BK:function(a,b,c,d,e){return O.oh(c.x,c.y,d.x,d.y,a.x,a.y,b.x,b.y,e)},kK:function(a,b,c,d,e,g,h,k,l,m){function n(c,d){var e=(c-a)*(c-a)+(d-b)*(d-b);ec)return l.x=a,l.y=c,!1;l.x=a;l.y=g;return!0}h=(d-b)/(c-a);if(O.wb(k,h))return O.cn(a,b,c,d,e,g,l),!1;e=(h*a-k*e+g-b)/(h-k);if(O.wb(h,0)){ac)return l.x=c,l.y=b,!1;l.x=e;l.y=b;return!0}g=h*(e-a)+b;return O.cn(a,b,c,d,e,g,l)},DK:function(a,b,c,d,e){return O.oh(c.x,c.y,d.x,d.y,a.x,a.y,b.x,b.y,e)},mK:function(a,b,c,d,e,g,h,k,l,m){function n(c,d){var e=(c-a)*(c-a)+(d-b)*(d-b);e(c>a?c-a:a-c)){q=1-(c-e)*(c-e)/(q*q);if(0>q)return l;q=Math.sqrt(q);d=-m*q+g;n(c,m*q+g);n(c,d)}else{c=(d-b)/(c-a);d=1/(q*q)+c*c/(m*m);k=2*c*(b-c*a)/(m*m)-2*c*g/(m*m)-2*e/(q*q);q=k*k-4*d*(2*c*a*g/(m*m)-2*b*g/(m*m)+g*g/(m*m)+e*e/(q*q)-1+(b-c*a)*(b-c*a)/(m*m));if(0>q)return l;q=Math.sqrt(q);m=(-k+q)/(2*d);n(m,c*m-c*a+b);q=(-k-q)/(2*d);n(q, -c*q-c*a+b)}return l},wl:function(a,b,c,d,e,g,h,k,l){var m=1E21,n=a,p=b;if(O.oh(a,b,a,d,e,g,h,k,l)){var q=(l.x-e)*(l.x-e)+(l.y-g)*(l.y-g);qm},yw:function(a,b,c){var d=b.x,e=b.y,g=c.x,h=c.y,k=a.left,l=a.right, -m=a.top,n=a.bottom;return d===g?(g=a=0,e=m):e===h?(d=k):a.Ha(b)||a.Ha(c)||O.xw(k,m,l,m,d,e,g,h)||O.xw(l,m,l,n,d,e,g,h)||O.xw(l,n,k,n,d,e,g,h)||O.xw(k,n,k,m,d,e,g,h)?!0:!1},xw:function(a,b,c,d,e,g,h,k){return 0>=O.gw(a,b,c,d,e,g)*O.gw(a,b,c,d,h,k)&&0>=O.gw(e,g,h,k,a,b)*O.gw(e,g,h,k,c,d)},gw:function(a,b,c,d,e,g){c-=a;d-=b;a=e-a;b=g-b;g=a*d-b*c;0===g&&(g=a*c+b*d,0g&&(g=0)));return 0>g?-1:0a&&(a+=360);360<=a&&(a-=360);return a},GD:function(a,b,c,d,e,g){void 0===g&&(g=!1);var h=Math.PI;g||(d*=h/180,e*=h/180);g=dc,g=0>d,h=0,k=h=0;am;++m){b=.5*(k+l);if(b===k||b===l)break;var n=a/(b+g),p=h/(b+e),n=n*n+p*p-1;if(0n)l=b;else break}c=g*c/(b+g)-c;d=e*d/(b+e)-d;e=Math.sqrt(c*c+d*d)}else e=Math.abs(d-b);else d=a*a-b*b,e=a*c,em},zw:function(a,b,c){var d=b.x,e=b.y,g=c.x,h=c.y,k=a.left,l=a.right, +m=a.top,n=a.bottom;return d===g?(g=a=0,e=m):e===h?(d=k):a.Ha(b)||a.Ha(c)||O.yw(k,m,l,m,d,e,g,h)||O.yw(l,m,l,n,d,e,g,h)||O.yw(l,n,k,n,d,e,g,h)||O.yw(k,n,k,m,d,e,g,h)?!0:!1},yw:function(a,b,c,d,e,g,h,k){return 0>=O.hw(a,b,c,d,e,g)*O.hw(a,b,c,d,h,k)&&0>=O.hw(e,g,h,k,a,b)*O.hw(e,g,h,k,c,d)},hw:function(a,b,c,d,e,g){c-=a;d-=b;a=e-a;b=g-b;g=a*d-b*c;0===g&&(g=a*c+b*d,0g&&(g=0)));return 0>g?-1:0a&&(a+=360);360<=a&&(a-=360);return a},HD:function(a,b,c,d,e,g){var h=Math.PI;g||(d*=h/180,e*=h/180);g=dc,g=0>d,h=0,k=h=0;am;++m){b=.5*(k+l);if(b===k||b===l)break;var n=a/(b+g),p=h/(b+e),n=n*n+p*p-1;if(0n)l=b;else break}c=g*c/(b+g)-c;d=e*d/(b+e)-d;e=Math.sqrt(c*c+d*d)}else e=Math.abs(d-b);else d=a*a-b*b,e=a*c,ea?"M"+this.za.toString()+" "+this.Aa.toString()+"L"+this.H.toString()+" "+this.I.toString():"M"+this.za.toFixed(a)+" "+this.Aa.toFixed(a)+"L"+this.H.toFixed(a)+" "+this.I.toFixed(a);case xd:var b=new x(this.za,this.Aa,0,0);b.KF(this.H,this.I,0,0);return 0>a?"M"+b.x.toString()+" "+b.y.toString()+"H"+b.right.toString()+"V"+b.bottom.toString()+"H"+b.left.toString()+"z":"M"+b.x.toFixed(a)+" "+b.y.toFixed(a)+"H"+b.right.toFixed(a)+ -"V"+b.bottom.toFixed(a)+"H"+b.left.toFixed(a)+"z";case yd:b=new x(this.za,this.Aa,0,0);b.KF(this.H,this.I,0,0);if(0>a){var c=b.left.toString()+" "+(b.y+b.height/2).toString(),d=b.right.toString()+" "+(b.y+b.height/2).toString();return"M"+c+"A"+(b.width/2).toString()+" "+(b.height/2).toString()+" 0 0 1 "+d+"A"+(b.width/2).toString()+" "+(b.height/2).toString()+" 0 0 1 "+c}c=b.left.toFixed(a)+" "+(b.y+b.height/2).toFixed(a);d=b.right.toFixed(a)+" "+(b.y+b.height/2).toFixed(a);return"M"+c+"A"+(b.width/ +sd.prototype.toString=function(a){void 0===a&&(a=-1);switch(this.type){case wd:return 0>a?"M"+this.za.toString()+" "+this.Aa.toString()+"L"+this.H.toString()+" "+this.I.toString():"M"+this.za.toFixed(a)+" "+this.Aa.toFixed(a)+"L"+this.H.toFixed(a)+" "+this.I.toFixed(a);case xd:var b=new x(this.za,this.Aa,0,0);b.MF(this.H,this.I,0,0);return 0>a?"M"+b.x.toString()+" "+b.y.toString()+"H"+b.right.toString()+"V"+b.bottom.toString()+"H"+b.left.toString()+"z":"M"+b.x.toFixed(a)+" "+b.y.toFixed(a)+"H"+b.right.toFixed(a)+ +"V"+b.bottom.toFixed(a)+"H"+b.left.toFixed(a)+"z";case yd:b=new x(this.za,this.Aa,0,0);b.MF(this.H,this.I,0,0);if(0>a){var c=b.left.toString()+" "+(b.y+b.height/2).toString(),d=b.right.toString()+" "+(b.y+b.height/2).toString();return"M"+c+"A"+(b.width/2).toString()+" "+(b.height/2).toString()+" 0 0 1 "+d+"A"+(b.width/2).toString()+" "+(b.height/2).toString()+" 0 0 1 "+c}c=b.left.toFixed(a)+" "+(b.y+b.height/2).toFixed(a);d=b.right.toFixed(a)+" "+(b.y+b.height/2).toFixed(a);return"M"+c+"A"+(b.width/ 2).toFixed(a)+" "+(b.height/2).toFixed(a)+" 0 0 1 "+d+"A"+(b.width/2).toFixed(a)+" "+(b.height/2).toFixed(a)+" 0 0 1 "+c;case td:for(var b="",c=this.Bb.p,d=c.length,e=0;e=t-1?!0:null!==l[m+1].match(/[A-Za-z]/)}function d(){m++;return l[m]}function e(){var a=new I(parseFloat(d()),parseFloat(d()));n===n.toLowerCase()&&(a.x=s.x+a.x,a.y=s.y+a.y);return a}function g(){return s=e()}function h(){return r=e()}function k(){return"c"!==p.toLowerCase()&&"s"!==p.toLowerCase()?s:new I(2*s.x-r.x,2*s.y-r.y)}void 0===b&&(b=!1);"string"!==typeof a&&w.tc(a,"string",sd,"parse:str");a=a.replace(/,/gm," ");a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFf])([UuBbMmZzLlHhVvCcSsQqTtAaFf])/gm, @@ -233,10 +234,10 @@ sd.parse=Dd=function(a,b){function c(){return m>=t-1?!0:null!==l[m+1].match(/[A- case "C":for(;!c();){var N=e(),J=h(),E=g();S(v,N.x,N.y,J.x,J.y,E.x,E.y)}break;case "S":for(;!c();)N=k(),J=h(),E=g(),S(v,N.x,N.y,J.x,J.y,E.x,E.y);break;case "Q":for(;!c();)J=h(),E=g(),Id(v,J.x,J.y,E.x,E.y);break;case "T":for(;!c();)r=J=k(),E=g(),Id(v,J.x,J.y,E.x,E.y);break;case "B":for(;!c();){var E=parseFloat(d()),N=parseFloat(d()),J=parseFloat(d()),W=parseFloat(d()),ea=parseFloat(d()),T=ea,P=!1;c()||(T=parseFloat(d()),c()||(P=0!==parseFloat(d())));n===n.toLowerCase()&&(J+=s.x,W+=s.y);v.arcTo(E,N, J,W,ea,T,P)}break;case "A":for(;!c();)N=Math.abs(parseFloat(d())),J=Math.abs(parseFloat(d())),W=parseFloat(d()),ea=!!parseFloat(d()),T=!!parseFloat(d()),E=g(),Jd(v,N,J,W,ea,T,E.x,E.y);break;case "Z":E=v.q.Bb.p[v.q.Bb.length-1];U(v);s=q;break;case "F":E="";for(N=1;l[m+N];)if(null!==l[m+N].match(/[Uu]/))N++;else if(null===l[m+N].match(/[A-Za-z]/))N++;else{E=l[m+N];break}E.match(/[Mm]/)?y=!0:Kd(v);break;case "U":E="";for(N=1;l[m+N];)if(null!==l[m+N].match(/[Ff]/))N++;else if(null===l[m+N].match(/[A-Za-z]/))N++; else{E=l[m+N];break}E.match(/[Mm]/)?B=!0:v.hb(!1)}q=v.q;w.u(v);if(b)for(v=q.Bb.j;v.next();)E=v.value,E.et=!0;return q};function Ld(a,b){for(var c=a.length,d=w.O(),e=0;e=a)return 0;if((e>h?e-h:h-e)<(g>k?g-k:k-g)){if(e=a=0,ge)return 0}else if(ee)return 0;return 0a||1a||1a)return n=(a-q)/p,w.wa(c),new I(b+(e-b)*n,d+(g-d)*n);q+=p}b=e;d=g}w.wa(c);return null};w.defineProperty(sd,{type:"type"},function(){return this.ia},function(a){this.ia!==a&&(u&&w.Ca(a,sd,sd,"type"),w.G(this,a),this.ia=a,this.ab=!0)});w.defineProperty(sd,{za:"startX"},function(){return this.pc},function(a){this.pc!==a&&(u&&w.o(a,sd,"startX"),w.G(this,a),this.pc=a,this.ab=!0)}); w.defineProperty(sd,{Aa:"startY"},function(){return this.vc},function(a){this.vc!==a&&(u&&w.o(a,sd,"startY"),w.G(this,a),this.vc=a,this.ab=!0)});w.defineProperty(sd,{H:"endX"},function(){return this.rb},function(a){this.rb!==a&&(u&&w.o(a,sd,"endX"),w.G(this,a),this.rb=a,this.ab=!0)});w.defineProperty(sd,{I:"endY"},function(){return this.Ab},function(a){this.Ab!==a&&(u&&w.o(a,sd,"endY"),w.G(this,a),this.Ab=a,this.ab=!0)}); w.defineProperty(sd,{Bb:"figures"},function(){return this.pj},function(a){this.pj!==a&&(u&&w.k(a,K,sd,"figures"),w.G(this,a),this.pj=a,this.ab=!0)});sd.prototype.add=sd.prototype.add=function(a){this.pj.add(a);return this};w.defineProperty(sd,{C:"spot1"},function(){return this.Ei},function(a){u&&w.k(a,Q,sd,"spot1");w.G(this,a);this.Ei=a.da()});w.defineProperty(sd,{D:"spot2"},function(){return this.Fi},function(a){u&&w.k(a,Q,sd,"spot2");w.G(this,a);this.Fi=a.da()}); -w.defineProperty(sd,{Pd:"defaultStretch"},function(){return this.oi},function(a){u&&w.Ca(a,V,sd,"stretch");w.G(this,a);this.oi=a});w.w(sd,{ub:"bounds"},function(){this.Tz()&&(this.LA(),this.yg());return this.nu});function ud(a,b,c,d){w.mc(this);this.Ja=!1;void 0===c&&(c=!0);this.am=c;void 0===d&&(d=!0);this.$n=d;void 0!==a?(u&&w.o(a,ud,"sx"),this.pc=a):this.pc=0;void 0!==b?(u&&w.o(b,ud,"sy"),this.vc=b):this.vc=0;this.uo=new K(ee);this.xv=this.uo.Y;this.ab=!0}w.la("PathFigure",ud);w.Yh(ud); +w.defineProperty(sd,{Pd:"defaultStretch"},function(){return this.oi},function(a){u&&w.Ca(a,V,sd,"stretch");w.G(this,a);this.oi=a});w.w(sd,{ub:"bounds"},function(){this.Uz()&&(this.MA(),this.yg());return this.nu});function ud(a,b,c,d){w.mc(this);this.Ja=!1;void 0===c&&(c=!0);this.am=c;void 0===d&&(d=!0);this.$n=d;void 0!==a?(u&&w.o(a,ud,"sx"),this.pc=a):this.pc=0;void 0!==b?(u&&w.o(b,ud,"sy"),this.vc=b):this.vc=0;this.uo=new K(ee);this.xv=this.uo.Y;this.ab=!0}w.la("PathFigure",ud);w.Zh(ud); ud.prototype.copy=function(){var a=new ud;a.am=this.am;a.$n=this.$n;a.pc=this.pc;a.vc=this.vc;for(var b=this.uo.p,c=b.length,d=a.uo,e=0;ea?"M"+this.za.toString()+" "+this.Aa.toString():"M"+this.za.toFixed(a)+" "+this.Aa.toFixed(a),c=this.Ma.p,d=c.length,e=0;ea&&(a+=360),this.jd=a),void 0!==d&&(u&&w.o(d,ee,"x1"),this.rg=Math.max(d,0)),void 0!==e&&(u&&w.o(e,ee,"y1"),this.sg=Math.max(e,0)),this.io=!!h,this.xn=!!k):(void 0!==d&&(u&&w.o(d,ee,"x1"),this.jd=d),void 0!==e&&(u&&w.o(e,ee,"y1"),this.He=e),void 0!==g&&(u&& -w.o(g,ee,"x2"),a===Qd&&(g=Math.max(g,0)),this.rg=g),void 0!==h&&"number"===typeof h&&(u&&w.o(h,ee,"y2"),a===Qd&&(h=Math.max(h,0)),this.sg=h));this.Lh=!1;this.ab=!0;this.hj=null}w.la("PathSegment",ee);w.Yh(ee); -ee.prototype.copy=function(){var a=new ee;a.ia=this.ia;a.rb=this.rb;a.Ab=this.Ab;void 0!==this.jd&&(a.jd=this.jd);void 0!==this.He&&(a.He=this.He);void 0!==this.rg&&(a.rg=this.rg);void 0!==this.sg&&(a.sg=this.sg);void 0!==this.io&&(a.io=this.io);void 0!==this.xn&&(a.xn=this.xn);a.Lh=this.Lh;a.ab=this.ab;return a}; -ee.prototype.equalsApprox=ee.prototype.Me=function(a){if(!(a instanceof ee)||this.type!==a.type||this.Aw!==a.Aw)return!1;switch(this.type){case Nd:case Ad:return O.F(this.H,a.H)&&O.F(this.I,a.I);case Od:return O.F(this.H,a.H)&&O.F(this.I,a.I)&&O.F(this.Xb,a.Xb)&&O.F(this.rc,a.rc)&&O.F(this.nf,a.nf)&&O.F(this.of,a.of);case Pd:return O.F(this.H,a.H)&&O.F(this.I,a.I)&&O.F(this.Xb,a.Xb)&&O.F(this.rc,a.rc);case Qd:return O.F(this.Se,a.Se)&&O.F(this.cg,a.cg)&&O.F(this.Pa,a.Pa)&&O.F(this.bb,a.bb)&&O.F(this.radiusX, -a.radiusX)&&O.F(this.radiusY,a.radiusY);case be:return this.zl===a.zl&&this.Ew===a.Ew&&O.F(this.ej,a.ej)&&O.F(this.H,a.H)&&O.F(this.I,a.I)&&O.F(this.radiusX,a.radiusX)&&O.F(this.radiusY,a.radiusY);default:return!1}}; +ud.prototype.Ha=function(a,b,c){for(var d=this.za,e=this.Aa,g=d,h=e,k=this.Ma.p,l=k.length,m=0;ma&&(a+=360),this.kd=a),void 0!==d&&(u&&w.o(d,ee,"x1"),this.rg=Math.max(d,0)),void 0!==e&&(u&&w.o(e,ee,"y1"),this.sg=Math.max(e,0)),this.io=!!h,this.xn=!!k):(void 0!==d&&(u&&w.o(d,ee,"x1"),this.kd=d),void 0!==e&&(u&&w.o(e,ee,"y1"),this.He=e),void 0!==g&&(u&& +w.o(g,ee,"x2"),a===Qd&&(g=Math.max(g,0)),this.rg=g),void 0!==h&&"number"===typeof h&&(u&&w.o(h,ee,"y2"),a===Qd&&(h=Math.max(h,0)),this.sg=h));this.Mh=!1;this.ab=!0;this.hj=null}w.la("PathSegment",ee);w.Zh(ee); +ee.prototype.copy=function(){var a=new ee;a.ia=this.ia;a.rb=this.rb;a.Ab=this.Ab;void 0!==this.kd&&(a.kd=this.kd);void 0!==this.He&&(a.He=this.He);void 0!==this.rg&&(a.rg=this.rg);void 0!==this.sg&&(a.sg=this.sg);void 0!==this.io&&(a.io=this.io);void 0!==this.xn&&(a.xn=this.xn);a.Mh=this.Mh;a.ab=this.ab;return a}; +ee.prototype.equalsApprox=ee.prototype.Me=function(a){if(!(a instanceof ee)||this.type!==a.type||this.Bw!==a.Bw)return!1;switch(this.type){case Nd:case Ad:return O.F(this.H,a.H)&&O.F(this.I,a.I);case Od:return O.F(this.H,a.H)&&O.F(this.I,a.I)&&O.F(this.Xb,a.Xb)&&O.F(this.rc,a.rc)&&O.F(this.nf,a.nf)&&O.F(this.of,a.of);case Pd:return O.F(this.H,a.H)&&O.F(this.I,a.I)&&O.F(this.Xb,a.Xb)&&O.F(this.rc,a.rc);case Qd:return O.F(this.Se,a.Se)&&O.F(this.cg,a.cg)&&O.F(this.Pa,a.Pa)&&O.F(this.bb,a.bb)&&O.F(this.radiusX, +a.radiusX)&&O.F(this.radiusY,a.radiusY);case be:return this.zl===a.zl&&this.Fw===a.Fw&&O.F(this.ej,a.ej)&&O.F(this.H,a.H)&&O.F(this.I,a.I)&&O.F(this.radiusX,a.radiusX)&&O.F(this.radiusY,a.radiusY);default:return!1}}; ee.prototype.toString=function(a){void 0===a&&(a=-1);var b="";switch(this.type){case Nd:b=0>a?"M"+this.H.toString()+" "+this.I.toString():"M"+this.H.toFixed(a)+" "+this.I.toFixed(a);break;case Ad:b=0>a?"L"+this.H.toString()+" "+this.I.toString():"L"+this.H.toFixed(a)+" "+this.I.toFixed(a);break;case Od:b=0>a?"C"+this.Xb.toString()+" "+this.rc.toString()+" "+this.nf.toString()+" "+this.of.toString()+" "+this.H.toString()+" "+this.I.toString():"C"+this.Xb.toFixed(a)+" "+this.rc.toFixed(a)+" "+this.nf.toFixed(a)+ " "+this.of.toFixed(a)+" "+this.H.toFixed(a)+" "+this.I.toFixed(a);break;case Pd:b=0>a?"Q"+this.Xb.toString()+" "+this.rc.toString()+" "+this.H.toString()+" "+this.I.toString():"Q"+this.Xb.toFixed(a)+" "+this.rc.toFixed(a)+" "+this.H.toFixed(a)+" "+this.I.toFixed(a);break;case Qd:b=0>a?"B"+this.Se.toString()+" "+this.cg.toString()+" "+this.Pa.toString()+" "+this.bb.toString()+" "+this.radiusX:"B"+this.Se.toFixed(a)+" "+this.cg.toFixed(a)+" "+this.Pa.toFixed(a)+" "+this.bb.toFixed(a)+" "+this.radiusX; -break;case be:b=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.ej.toString()+" "+(this.Ew?1:0)+" "+(this.zl?1:0)+" "+this.H.toString()+" "+this.I.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.ej.toFixed(a)+" "+(this.Ew?1:0)+" "+(this.zl?1:0)+" "+this.H.toFixed(a)+" "+this.I.toFixed(a);break;default:b=this.type.toString()}return b+(this.Lh?"z":"")};var Nd;ee.Move=Nd=w.v(ee,"Move",0);var Ad;ee.Line=Ad=w.v(ee,"Line",1);var Od; -ee.Bezier=Od=w.v(ee,"Bezier",2);var Pd;ee.QuadraticBezier=Pd=w.v(ee,"QuadraticBezier",3);var Qd;ee.Arc=Qd=w.v(ee,"Arc",4);var be;ee.SvgArc=be=w.v(ee,"SvgArc",4);ee.prototype.freeze=function(){this.Ja=!0;return this};ee.prototype.Sa=function(){this.Ja=!1;return this};ee.prototype.close=ee.prototype.close=function(){this.Lh=!0;return this}; -function ce(a,b){if(null!==a.hj&&!1===b.ab)return a.hj;var c=a.radiusX,d=a.radiusY;void 0===d&&(d=c);var e=a.jd,g=a.He,h=O.GD(0,0,c=s?k=Math.PI:1<=s&&(k=0);!m&&0k&&(k+=2*Math.PI);m=b>h?1:b/h;s=b>h?h/b:1;b=O.GD(0,0,b>h?b:h,p,p+k,!0);h=w.xh();h.reset();h.translate(c,d);h.rotate(a.jd,0,0);h.scale(m,s);Ld(b,h);w.gf(h);a.hj=b;return a.hj} -w.defineProperty(ee,{Aw:"isClosed"},function(){return this.Lh},function(a){this.Lh!==a&&(this.Lh=a,this.ab=!0)});w.defineProperty(ee,{type:"type"},function(){return this.ia},function(a){u&&w.Ca(a,ee,ee,"type");w.G(this,a);this.ia=a;this.ab=!0});w.defineProperty(ee,{H:"endX"},function(){return this.rb},function(a){u&&w.o(a,ee,"endX");w.G(this,a);this.rb=a;this.ab=!0});w.defineProperty(ee,{I:"endY"},function(){return this.Ab},function(a){u&&w.o(a,ee,"endY");w.G(this,a);this.Ab=a;this.ab=!0}); -w.defineProperty(ee,{Xb:"point1X"},function(){return this.jd},function(a){u&&w.o(a,ee,"point1X");w.G(this,a);this.jd=a;this.ab=!0});w.defineProperty(ee,{rc:"point1Y"},function(){return this.He},function(a){u&&w.o(a,ee,"point1Y");w.G(this,a);this.He=a;this.ab=!0});w.defineProperty(ee,{nf:"point2X"},function(){return this.rg},function(a){u&&w.o(a,ee,"point2X");w.G(this,a);this.rg=a;this.ab=!0}); -w.defineProperty(ee,{of:"point2Y"},function(){return this.sg},function(a){u&&w.o(a,ee,"point2Y");w.G(this,a);this.sg=a;this.ab=!0});w.defineProperty(ee,{Pa:"centerX"},function(){return this.jd},function(a){u&&w.o(a,ee,"centerX");w.G(this,a);this.jd=a;this.ab=!0});w.defineProperty(ee,{bb:"centerY"},function(){return this.He},function(a){u&&w.o(a,ee,"centerY");w.G(this,a);this.He=a;this.ab=!0}); +break;case be:b=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.ej.toString()+" "+(this.Fw?1:0)+" "+(this.zl?1:0)+" "+this.H.toString()+" "+this.I.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.ej.toFixed(a)+" "+(this.Fw?1:0)+" "+(this.zl?1:0)+" "+this.H.toFixed(a)+" "+this.I.toFixed(a);break;default:b=this.type.toString()}return b+(this.Mh?"z":"")};var Nd;ee.Move=Nd=w.v(ee,"Move",0);var Ad;ee.Line=Ad=w.v(ee,"Line",1);var Od; +ee.Bezier=Od=w.v(ee,"Bezier",2);var Pd;ee.QuadraticBezier=Pd=w.v(ee,"QuadraticBezier",3);var Qd;ee.Arc=Qd=w.v(ee,"Arc",4);var be;ee.SvgArc=be=w.v(ee,"SvgArc",4);ee.prototype.freeze=function(){this.Ja=!0;return this};ee.prototype.Sa=function(){this.Ja=!1;return this};ee.prototype.close=ee.prototype.close=function(){this.Mh=!0;return this}; +function ce(a,b){if(null!==a.hj&&!1===b.ab)return a.hj;var c=a.radiusX,d=a.radiusY;void 0===d&&(d=c);var e=a.kd,g=a.He,h=O.HD(0,0,c=s?k=Math.PI:1<=s&&(k=0);!m&&0k&&(k+=2*Math.PI);m=b>h?1:b/h;s=b>h?h/b:1;b=O.HD(0,0,b>h?b:h,p,p+k,!0);h=w.xh();h.reset();h.translate(c,d);h.rotate(a.kd,0,0);h.scale(m,s);Ld(b,h);w.gf(h);a.hj=b;return a.hj} +w.defineProperty(ee,{Bw:"isClosed"},function(){return this.Mh},function(a){this.Mh!==a&&(this.Mh=a,this.ab=!0)});w.defineProperty(ee,{type:"type"},function(){return this.ia},function(a){u&&w.Ca(a,ee,ee,"type");w.G(this,a);this.ia=a;this.ab=!0});w.defineProperty(ee,{H:"endX"},function(){return this.rb},function(a){u&&w.o(a,ee,"endX");w.G(this,a);this.rb=a;this.ab=!0});w.defineProperty(ee,{I:"endY"},function(){return this.Ab},function(a){u&&w.o(a,ee,"endY");w.G(this,a);this.Ab=a;this.ab=!0}); +w.defineProperty(ee,{Xb:"point1X"},function(){return this.kd},function(a){u&&w.o(a,ee,"point1X");w.G(this,a);this.kd=a;this.ab=!0});w.defineProperty(ee,{rc:"point1Y"},function(){return this.He},function(a){u&&w.o(a,ee,"point1Y");w.G(this,a);this.He=a;this.ab=!0});w.defineProperty(ee,{nf:"point2X"},function(){return this.rg},function(a){u&&w.o(a,ee,"point2X");w.G(this,a);this.rg=a;this.ab=!0}); +w.defineProperty(ee,{of:"point2Y"},function(){return this.sg},function(a){u&&w.o(a,ee,"point2Y");w.G(this,a);this.sg=a;this.ab=!0});w.defineProperty(ee,{Pa:"centerX"},function(){return this.kd},function(a){u&&w.o(a,ee,"centerX");w.G(this,a);this.kd=a;this.ab=!0});w.defineProperty(ee,{bb:"centerY"},function(){return this.He},function(a){u&&w.o(a,ee,"centerY");w.G(this,a);this.He=a;this.ab=!0}); w.defineProperty(ee,{radiusX:"radiusX"},function(){return this.rg},function(a){u&&w.o(a,ee,"radiusX");0>a&&w.ja(a,">= zero",ee,"radiusX");w.G(this,a);this.rg=a;this.ab=!0});w.defineProperty(ee,{radiusY:"radiusY"},function(){return this.sg},function(a){u&&w.o(a,ee,"radiusY");0>a&&w.ja(a,">= zero",ee,"radiusY");w.G(this,a);this.sg=a;this.ab=!0}); w.defineProperty(ee,{Se:"startAngle"},function(){return this.rb},function(a){this.rb!==a&&(w.G(this,a),u&&w.o(a,ee,"startAngle"),a%=360,0>a&&(a+=360),this.rb=a,this.ab=!0)});w.defineProperty(ee,{cg:"sweepAngle"},function(){return this.Ab},function(a){u&&w.o(a,ee,"sweepAngle");w.G(this,a);360a&&(a=-360);this.Ab=a;this.ab=!0});w.defineProperty(ee,{zl:"isClockwiseArc"},function(){return this.xn},function(a){w.G(this,a);this.xn=a;this.ab=!0}); -w.defineProperty(ee,{Ew:"isLargeArc"},function(){return this.io},function(a){w.G(this,a);this.io=a;this.ab=!0});w.defineProperty(ee,{ej:"xAxisRotation"},function(){return this.jd},function(a){u&&w.o(a,ee,"xAxisRotation");a%=360;0>a&&(a+=360);w.G(this,a);this.jd=a;this.ab=!0});function he(){this.Z=null;this.ez=(new I(0,0)).freeze();this.$x=(new I(0,0)).freeze();this.ku=this.gv=0;this.Vu="";this.Mv=this.Au=!1;this.wu=this.mu=0;this.ij=this.Iu=this.Ru=!1;this.oq=null;this.Lv=0;this.tg=this.Iv=null} -w.la("InputEvent",he);he.prototype.copy=function(){var a=new he;a.Z=this.Z;a.ez.assign(this.pe);a.$x.assign(this.ga);a.gv=this.gv;a.ku=this.ku;a.Vu=this.Vu;a.Au=this.Au;a.Mv=this.Mv;a.mu=this.mu;a.wu=this.wu;a.Ru=this.Ru;a.Iu=this.Iu;a.ij=this.ij;a.oq=this.oq;a.Lv=this.Lv;a.Iv=this.Iv;a.tg=this.tg;return a}; -he.prototype.toString=function(){var a="^";0!==this.rd&&(a+="M:"+this.rd);0!==this.button&&(a+="B:"+this.button);""!==this.key&&(a+="K:"+this.key);0!==this.cf&&(a+="C:"+this.cf);0!==this.nl&&(a+="D:"+this.nl);this.$c&&(a+="h");this.bubbles&&(a+="b");null!==this.ga&&(a+="@"+this.ga.toString());return a};w.defineProperty(he,{h:"diagram"},function(){return this.Z},function(a){this.Z=a});w.defineProperty(he,{pe:"viewPoint"},function(){return this.ez},function(a){w.k(a,I,he,"viewPoint");this.ez.assign(a)}); -w.defineProperty(he,{ga:"documentPoint"},function(){return this.$x},function(a){w.k(a,I,he,"documentPoint");this.$x.assign(a)});w.defineProperty(he,{rd:"modifiers"},function(){return this.gv},function(a){this.gv=a});w.defineProperty(he,{button:"button"},function(){return this.ku},function(a){this.ku=a});w.defineProperty(he,{key:"key"},function(){return this.Vu},function(a){this.Vu=a});w.defineProperty(he,{pl:"down"},function(){return this.Au},function(a){this.Au=a}); +w.defineProperty(ee,{Fw:"isLargeArc"},function(){return this.io},function(a){w.G(this,a);this.io=a;this.ab=!0});w.defineProperty(ee,{ej:"xAxisRotation"},function(){return this.kd},function(a){u&&w.o(a,ee,"xAxisRotation");a%=360;0>a&&(a+=360);w.G(this,a);this.kd=a;this.ab=!0});function he(){this.Z=null;this.fz=(new I(0,0)).freeze();this.ay=(new I(0,0)).freeze();this.ku=this.gv=0;this.Vu="";this.Mv=this.Au=!1;this.wu=this.mu=0;this.ij=this.Iu=this.Ru=!1;this.oq=null;this.Lv=0;this.tg=this.Iv=null} +w.la("InputEvent",he);he.prototype.copy=function(){var a=new he;a.Z=this.Z;a.fz.assign(this.pe);a.ay.assign(this.ga);a.gv=this.gv;a.ku=this.ku;a.Vu=this.Vu;a.Au=this.Au;a.Mv=this.Mv;a.mu=this.mu;a.wu=this.wu;a.Ru=this.Ru;a.Iu=this.Iu;a.ij=this.ij;a.oq=this.oq;a.Lv=this.Lv;a.Iv=this.Iv;a.tg=this.tg;return a}; +he.prototype.toString=function(){var a="^";0!==this.sd&&(a+="M:"+this.sd);0!==this.button&&(a+="B:"+this.button);""!==this.key&&(a+="K:"+this.key);0!==this.cf&&(a+="C:"+this.cf);0!==this.nl&&(a+="D:"+this.nl);this.$c&&(a+="h");this.bubbles&&(a+="b");null!==this.ga&&(a+="@"+this.ga.toString());return a};w.defineProperty(he,{h:"diagram"},function(){return this.Z},function(a){this.Z=a});w.defineProperty(he,{pe:"viewPoint"},function(){return this.fz},function(a){w.k(a,I,he,"viewPoint");this.fz.assign(a)}); +w.defineProperty(he,{ga:"documentPoint"},function(){return this.ay},function(a){w.k(a,I,he,"documentPoint");this.ay.assign(a)});w.defineProperty(he,{sd:"modifiers"},function(){return this.gv},function(a){this.gv=a});w.defineProperty(he,{button:"button"},function(){return this.ku},function(a){this.ku=a});w.defineProperty(he,{key:"key"},function(){return this.Vu},function(a){this.Vu=a});w.defineProperty(he,{pl:"down"},function(){return this.Au},function(a){this.Au=a}); w.defineProperty(he,{up:"up"},function(){return this.Mv},function(a){this.Mv=a});w.defineProperty(he,{cf:"clickCount"},function(){return this.mu},function(a){this.mu=a});w.defineProperty(he,{nl:"delta"},function(){return this.wu},function(a){this.wu=a});w.defineProperty(he,{gt:"isMultiTouch"},function(){return this.Ru},function(a){this.Ru=a});w.defineProperty(he,{$c:"handled"},function(){return this.Iu},function(a){this.Iu=a}); w.defineProperty(he,{bubbles:"bubbles"},function(){return this.ij},function(a){this.ij=a});w.defineProperty(he,{event:"event"},function(){return this.oq},function(a){this.oq=a});w.w(he,{Cl:"isTouchEvent"},function(){var a=window.TouchEvent;return a&&this.event instanceof a?!0:(a=window.PointerEvent)&&this.event instanceof a&&"touch"===this.event.pointerType});w.defineProperty(he,{timestamp:"timestamp"},function(){return this.Lv},function(a){this.Lv=a}); -w.defineProperty(he,{Lg:"targetDiagram"},function(){return this.Iv},function(a){this.Iv=a});w.defineProperty(he,{ye:"targetObject"},function(){return this.tg},function(a){this.tg=a});w.defineProperty(he,{control:"control"},function(){return 0!==(this.rd&1)},function(a){this.rd=a?this.rd|1:this.rd&-2});w.defineProperty(he,{shift:"shift"},function(){return 0!==(this.rd&4)},function(a){this.rd=a?this.rd|4:this.rd&-5}); -w.defineProperty(he,{alt:"alt"},function(){return 0!==(this.rd&2)},function(a){this.rd=a?this.rd|2:this.rd&-3});w.defineProperty(he,{qt:"meta"},function(){return 0!==(this.rd&8)},function(a){this.rd=a?this.rd|8:this.rd&-9});w.defineProperty(he,{left:"left"},function(){return 0===this.button},function(a){this.button=a?0:2});w.defineProperty(he,{KK:"middle"},function(){return 1===this.button},function(a){this.button=a?1:0}); -w.defineProperty(he,{right:"right"},function(){return 2===this.button},function(a){this.button=a?2:0});function ie(){this.Z=null;this.cc="";this.pv=this.Dv=null;this.lu=!1}w.la("DiagramEvent",ie);ie.prototype.copy=function(){var a=new ie;a.Z=this.Z;a.cc=this.cc;a.Dv=this.Dv;a.pv=this.pv;a.lu=this.lu;return a};ie.prototype.toString=function(){var a="*"+this.name;this.cancel&&(a+="x");null!==this.EA&&(a+=":"+this.EA.toString());null!==this.kA&&(a+="("+this.kA.toString()+")");return a}; -w.defineProperty(ie,{h:"diagram"},function(){return this.Z},function(a){this.Z=a});w.defineProperty(ie,{name:"name"},function(){return this.cc},function(a){this.cc=a});w.defineProperty(ie,{EA:"subject"},function(){return this.Dv},function(a){this.Dv=a});w.defineProperty(ie,{kA:"parameter"},function(){return this.pv},function(a){this.pv=a});w.defineProperty(ie,{cancel:"cancel"},function(){return this.lu},function(a){this.lu=a}); +w.defineProperty(he,{Lg:"targetDiagram"},function(){return this.Iv},function(a){this.Iv=a});w.defineProperty(he,{ye:"targetObject"},function(){return this.tg},function(a){this.tg=a});w.defineProperty(he,{control:"control"},function(){return 0!==(this.sd&1)},function(a){this.sd=a?this.sd|1:this.sd&-2});w.defineProperty(he,{shift:"shift"},function(){return 0!==(this.sd&4)},function(a){this.sd=a?this.sd|4:this.sd&-5}); +w.defineProperty(he,{alt:"alt"},function(){return 0!==(this.sd&2)},function(a){this.sd=a?this.sd|2:this.sd&-3});w.defineProperty(he,{qt:"meta"},function(){return 0!==(this.sd&8)},function(a){this.sd=a?this.sd|8:this.sd&-9});w.defineProperty(he,{left:"left"},function(){return 0===this.button},function(a){this.button=a?0:2});w.defineProperty(he,{MK:"middle"},function(){return 1===this.button},function(a){this.button=a?1:0}); +w.defineProperty(he,{right:"right"},function(){return 2===this.button},function(a){this.button=a?2:0});function ie(){this.Z=null;this.cc="";this.pv=this.Dv=null;this.lu=!1}w.la("DiagramEvent",ie);ie.prototype.copy=function(){var a=new ie;a.Z=this.Z;a.cc=this.cc;a.Dv=this.Dv;a.pv=this.pv;a.lu=this.lu;return a};ie.prototype.toString=function(){var a="*"+this.name;this.cancel&&(a+="x");null!==this.FA&&(a+=":"+this.FA.toString());null!==this.lA&&(a+="("+this.lA.toString()+")");return a}; +w.defineProperty(ie,{h:"diagram"},function(){return this.Z},function(a){this.Z=a});w.defineProperty(ie,{name:"name"},function(){return this.cc},function(a){this.cc=a});w.defineProperty(ie,{FA:"subject"},function(){return this.Dv},function(a){this.Dv=a});w.defineProperty(ie,{lA:"parameter"},function(){return this.pv},function(a){this.pv=a});w.defineProperty(ie,{cancel:"cancel"},function(){return this.lu},function(a){this.lu=a}); function se(){this.Vp=te;this.qm=this.fv="";this.nr=this.or=this.sr=this.tr=this.rr=this.Z=this.$d=null}w.la("ChangedEvent",se);var ue;se.Transaction=ue=w.v(se,"Transaction",-1);var te;se.Property=te=w.v(se,"Property",0);var ve;se.Insert=ve=w.v(se,"Insert",1);var we;se.Remove=we=w.v(se,"Remove",2);se.prototype.clear=se.prototype.clear=function(){this.nr=this.or=this.sr=this.tr=this.rr=this.Z=this.$d=null}; se.prototype.copy=function(){var a=new se;a.$d=this.$d;a.Z=this.Z;a.Vp=this.Vp;a.fv=this.fv;a.qm=this.qm;a.rr=this.rr;var b=this.tr;a.tr=w.Za(b)&&"function"===typeof b.da?b.da():b;b=this.sr;a.sr=w.Za(b)&&"function"===typeof b.da?b.da():b;b=this.or;a.or=w.Za(b)&&"function"===typeof b.da?b.da():b;b=this.nr;a.nr=w.Za(b)&&"function"===typeof b.da?b.da():b;return a}; se.prototype.toString=function(){var a="",a=this.Od===ue?a+"* ":this.Od===te?a+(null!==this.ha?"!m":"!d"):a+((null!==this.ha?"!m":"!d")+this.Od);this.propertyName&&"string"===typeof this.propertyName&&(a+=" "+this.propertyName);this.Xf&&this.Xf!==this.propertyName&&(a+=" "+this.Xf);a+=": ";this.Od===ue?null!==this.oldValue&&(a+=" "+this.oldValue):(null!==this.object&&(a+=ka(this.object)),null!==this.oldValue&&(a+=" old: "+ka(this.oldValue)),null!==this.Jg&&(a+=" "+this.Jg),null!==this.newValue&& (a+=" new: "+ka(this.newValue)),null!==this.Hg&&(a+=" "+this.Hg));return a};se.prototype.getValue=se.prototype.ya=function(a){return a?this.oldValue:this.newValue};se.prototype.getParam=function(a){return a?this.Jg:this.Hg};se.prototype.canUndo=se.prototype.canUndo=function(){return null!==this.ha||null!==this.h?!0:!1};se.prototype.undo=se.prototype.undo=function(){this.canUndo()&&(null!==this.ha?this.ha.Km(this,!0):null!==this.h&&this.h.Km(this,!0))}; se.prototype.canRedo=se.prototype.canRedo=function(){return null!==this.ha||null!==this.h?!0:!1};se.prototype.redo=se.prototype.redo=function(){this.canRedo()&&(null!==this.ha?this.ha.Km(this,!1):null!==this.h&&this.h.Km(this,!1))};w.defineProperty(se,{ha:"model"},function(){return this.$d},function(a){this.$d=a});w.defineProperty(se,{h:"diagram"},function(){return this.Z},function(a){this.Z=a}); w.defineProperty(se,{Od:"change"},function(){return this.Vp},function(a){u&&w.Ca(a,se,se,"change");this.Vp=a});w.defineProperty(se,{Xf:"modelChange"},function(){return this.fv},function(a){u&&w.g(a,"string",se,"modelChange");this.fv=a});w.defineProperty(se,{propertyName:"propertyName"},function(){return this.qm},function(a){u&&"string"!==typeof a&&w.g(a,"function",se,"propertyName");this.qm=a}); -w.w(se,{vK:"isTransactionFinished"},function(){return this.Vp===ue&&("CommittedTransaction"===this.qm||"FinishedUndo"===this.qm||"FinishedRedo"===this.qm)});w.defineProperty(se,{object:"object"},function(){return this.rr},function(a){this.rr=a});w.defineProperty(se,{oldValue:"oldValue"},function(){return this.tr},function(a){this.tr=a});w.defineProperty(se,{Jg:"oldParam"},function(){return this.sr},function(a){this.sr=a}); +w.w(se,{xK:"isTransactionFinished"},function(){return this.Vp===ue&&("CommittedTransaction"===this.qm||"FinishedUndo"===this.qm||"FinishedRedo"===this.qm)});w.defineProperty(se,{object:"object"},function(){return this.rr},function(a){this.rr=a});w.defineProperty(se,{oldValue:"oldValue"},function(){return this.tr},function(a){this.tr=a});w.defineProperty(se,{Jg:"oldParam"},function(){return this.sr},function(a){this.sr=a}); w.defineProperty(se,{newValue:"newValue"},function(){return this.or},function(a){this.or=a});w.defineProperty(se,{Hg:"newParam"},function(){return this.nr},function(a){this.nr=a}); -function M(a){1=d)return"[]";var e=new Ja;e.add("[ ");c&&1b||(w.Ni(this.uf,b),Xe(this,"nodeDataArray",we,"nodeDataArray",this,a,null,b,null),this.Tt(a)))}}; -M.prototype.removeNodeDataCollection=function(a){if(w.isArray(a))for(var b=w.tb(a),c=0;cb||(w.Ni(this.uf,b),Xe(this,"nodeDataArray",we,"nodeDataArray",this,a,null,b,null),this.Tt(a)))}}; +M.prototype.removeNodeDataCollection=function(a){if(w.isArray(a))for(var b=w.tb(a),c=0;cb&&(b=w.tb(a));w.Mi(a,b,c);Xe(this,"",ve,"",a,null,c,null,b)}; +M.prototype.setDataProperty=function(a,b,c){u&&(w.g(a,"object",M,"setDataProperty:data"),w.g(b,"string",M,"setDataProperty:propname"),""===b&&w.l("Model.setDataProperty: property name must not be an empty string when setting "+a+" to "+c));if(this.se(a))if(b===this.ik)this.zA(a,c);else{if(b===this.dn){this.bx(a,c);return}}else!mf&&a instanceof V&&(mf=!0,w.trace('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),w.trace(" Is that really your intent?"));var d=w.yb(a,b);d!==c&& +(w.Ua(a,b,c),this.oA(a,b,d,c))};M.prototype.addArrayItem=function(a,b){this.PH(a,-1,b)};M.prototype.insertArrayItem=M.prototype.PH=function(a,b,c){u&&(w.Ds(a,M,"insertArrayItem:arr"),w.o(b,M,"insertArrayItem:idx"));a===this.uf&&w.l("Model.insertArrayItem or Model.addArrayItem should not be called on the Model.nodeDataArray");0>b&&(b=w.tb(a));w.Mi(a,b,c);Xe(this,"",ve,"",a,null,c,null,b)}; M.prototype.removeArrayItem=function(a,b){void 0===b&&(b=-1);u&&(w.Ds(a,M,"removeArrayItem:arr"),w.o(b,M,"removeArrayItem:idx"));a===this.uf&&w.l("Model.removeArrayItem should not be called on the Model.nodeDataArray");-1===b&&(b=w.tb(a)-1);var c=w.nb(a,b);w.Ni(a,b);Xe(this,"",we,"",a,c,null,b,null)};w.defineProperty(M,{dn:"nodeCategoryProperty"},function(){return this.pr},function(a){var b=this.pr;b!==a&&(Ye(a,M,"nodeCategoryProperty"),this.pr=a,this.i("nodeCategoryProperty",b,a))}); -M.prototype.getCategoryForNodeData=M.prototype.Fz=function(a){if(null===a)return"";var b=this.pr;if(""===b)return"";b=w.yb(a,b);if(void 0===b)return"";if("string"===typeof b)return b;w.l("getCategoryForNodeData found a non-string category for "+a+": "+b);return""}; -M.prototype.setCategoryForNodeData=M.prototype.ax=function(a,b){w.g(b,"string",M,"setCategoryForNodeData:cat");if(null!==a){var c=this.pr;if(""!==c)if(this.se(a)){var d=w.yb(a,c);void 0===d&&(d="");d!==b&&(w.Ua(a,c,b),Xe(this,"nodeCategory",te,c,a,d,b))}else w.Ua(a,c,b)}}; -function X(a,b){2e||(w.Ni(d,e),this.Ri(a)&&(gf(this,b,a),Xe(this,"linkLabelKeys",we,c,a,b,null)))}else void 0!==d&&w.l(c+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}}; -w.defineProperty(X,{hk:"linkDataArray"},function(){return this.Oh},function(a){var b=this.Oh;if(b!==a){w.Ds(a,X,"linkDataArray");for(var c=w.tb(a),d=0;db)){w.Ni(this.Oh,b);Xe(this,"linkDataArray",we,"linkDataArray",this,a,null,b,null);b=this.ul(a);gf(this,b,a);b=this.xl(a);gf(this,b,a);var c=this.fk(a);if(w.isArray(c))for(var d=w.tb(c),e=0;ee||(w.Ni(d,e),this.Ri(a)&&(gf(this,b,a),Xe(this,"linkLabelKeys",we,c,a,b,null)))}else void 0!==d&&w.l(c+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}}; +w.defineProperty(X,{hk:"linkDataArray"},function(){return this.Ph},function(a){var b=this.Ph;if(b!==a){w.Ds(a,X,"linkDataArray");for(var c=w.tb(a),d=0;db)){w.Ni(this.Ph,b);Xe(this,"linkDataArray",we,"linkDataArray",this,a,null,b,null);b=this.ul(a);gf(this,b,a);b=this.xl(a);gf(this,b,a);var c=this.fk(a);if(w.isArray(c))for(var d=w.tb(c),e=0;ea.Ue&&w.trace("Ending transaction without having started a transaction: "+c);var d=1===a.Ue;d&&b&&a.isEnabled&&a.Yc("CommittingTransaction",c,a.Si);var e=0;if(0a.Xi;e--)g=d.ma(e),null!== -g&&g.clear(),d.td(e),a.zy=!0;e=a.BE;0===e&&(e=1);0=e&&(g=d.ma(0),null!==g&&g.clear(),d.td(0),a.Ug--);d.add(b);a.Ug++;d.freeze();g=b}a.Yc("CommittedTransaction",c,g)}else{a.si=!0;try{a.isEnabled&&null!==g&&(g.dt=!0,g.undo())}finally{a.Yc("RolledBackTransaction",c,g),a.si=!1}null!==g&&g.clear()}a.vu=null;return!0}if(a.isEnabled&&!b&&null!==g){a=e;c=g.ih;for(b=c.count-1;b>=a;b--)d=c.ma(b),null!==d&&d.undo(),c.Sa(),c.td(b);c.freeze()}return!1} -xe.prototype.canUndo=xe.prototype.canUndo=function(){if(!this.isEnabled||0=this.Ue&&!this.ky&&(a=a.h,null!==a&&!1===a.tf||w.trace("Change not within a transaction: "+c.toString()))}}; -xe.prototype.skipsEvent=function(a){if(null===a||0>a.Od.value)return!0;a=a.object;if(a instanceof V){if(a=a.layer,null!==a&&a.Hc)return!0}else if(a instanceof Te&&a.Hc)return!0;return!1};w.w(xe,{qI:"models"},function(){return this.Gy.j});w.defineProperty(xe,{isEnabled:"isEnabled"},function(){return this.Xe},function(a){this.Xe=a});w.w(xe,{HF:"transactionToUndo"},function(){return 0<=this.Xi&&this.Xi<=this.history.count-1?this.history.ma(this.Xi):null}); -w.w(xe,{GF:"transactionToRedo"},function(){return this.Xia.Ue&&w.trace("Ending transaction without having started a transaction: "+c);var d=1===a.Ue;d&&b&&a.isEnabled&&a.Yc("CommittingTransaction",c,a.Si);var e=0;if(0a.Xi;e--)g=d.ma(e),null!== +g&&g.clear(),d.ud(e),a.Ay=!0;e=a.DE;0===e&&(e=1);0=e&&(g=d.ma(0),null!==g&&g.clear(),d.ud(0),a.Ug--);d.add(b);a.Ug++;d.freeze();g=b}a.Yc("CommittedTransaction",c,g)}else{a.si=!0;try{a.isEnabled&&null!==g&&(g.dt=!0,g.undo())}finally{a.Yc("RolledBackTransaction",c,g),a.si=!1}null!==g&&g.clear()}a.vu=null;return!0}if(a.isEnabled&&!b&&null!==g){a=e;c=g.ih;for(b=c.count-1;b>=a;b--)d=c.ma(b),null!==d&&d.undo(),c.Sa(),c.ud(b);c.freeze()}return!1} +xe.prototype.canUndo=xe.prototype.canUndo=function(){if(!this.isEnabled||0=this.Ue&&!this.ly&&(a=a.h,null!==a&&!1===a.tf||w.trace("Change not within a transaction: "+c.toString()))}}; +xe.prototype.skipsEvent=function(a){if(null===a||0>a.Od.value)return!0;a=a.object;if(a instanceof V){if(a=a.layer,null!==a&&a.Hc)return!0}else if(a instanceof Te&&a.Hc)return!0;return!1};w.w(xe,{sI:"models"},function(){return this.Hy.j});w.defineProperty(xe,{isEnabled:"isEnabled"},function(){return this.Xe},function(a){this.Xe=a});w.w(xe,{JF:"transactionToUndo"},function(){return 0<=this.Xi&&this.Xi<=this.history.count-1?this.history.ma(this.Xi):null}); +w.w(xe,{IF:"transactionToRedo"},function(){return this.Xib.lh||(b.scale=a))};za.prototype.canDecreaseZoom=function(a){void 0===a&&(a=1/this.nx);w.o(a,za,"canDecreaseZoom:factor");var b=this.h;if(null===b||b.Go!==Ff)return!1;a*=b.scale;return ab.lh?!1:b.$v}; -za.prototype.increaseZoom=function(a){void 0===a&&(a=this.nx);w.o(a,za,"increaseZoom:factor");var b=this.h;null!==b&&b.Go===Ff&&(a*=b.scale,ab.lh||(b.scale=a))};za.prototype.canIncreaseZoom=function(a){void 0===a&&(a=this.nx);w.o(a,za,"canIncreaseZoom:factor");var b=this.h;if(null===b||b.Go!==Ff)return!1;a*=b.scale;return ab.lh?!1:b.$v};za.prototype.resetZoom=function(a){void 0===a&&(a=this.iw);w.o(a,za,"resetZoom:newscale");var b=this.h;null===b||ab.lh||(b.scale=a)}; -za.prototype.canResetZoom=function(a){void 0===a&&(a=this.iw);w.o(a,za,"canResetZoom:newscale");var b=this.h;return null===b||ab.lh?!1:b.$v};za.prototype.zoomToFit=function(){var a=this.h;if(null!==a){var b=a.scale,c=a.position;b!==this.dD||isNaN(this.Ay)?(this.Ay=b,this.YB=c.copy(),a.zoomToFit(),a.lf(),this.dD=a.scale):(a.scale=this.Ay,a.position=this.YB)}};za.prototype.canZoomToFit=function(){var a=this.h;return null===a?!1:a.$v}; +""}};za.prototype.canPasteSelection=function(){var a=this.h;return null===a||a.xb||a.Bf||!a.Eo||!a.kz||null===tf||yf!==a.ha.ll?!1:!0};za.prototype.undo=function(){var a=this.h;null!==a&&a.na.undo()};za.prototype.canUndo=function(){var a=this.h;return null===a||a.xb||a.Bf?!1:a.mD&&a.na.canUndo()};za.prototype.redo=function(){var a=this.h;null!==a&&a.na.redo()};za.prototype.canRedo=function(){var a=this.h;return null===a||a.xb||a.Bf?!1:a.mD&&a.na.canRedo()}; +za.prototype.decreaseZoom=function(a){void 0===a&&(a=1/this.ox);w.o(a,za,"decreaseZoom:factor");var b=this.h;null!==b&&b.Go===Ff&&(a*=b.scale,ab.lh||(b.scale=a))};za.prototype.canDecreaseZoom=function(a){void 0===a&&(a=1/this.ox);w.o(a,za,"canDecreaseZoom:factor");var b=this.h;if(null===b||b.Go!==Ff)return!1;a*=b.scale;return ab.lh?!1:b.aw}; +za.prototype.increaseZoom=function(a){void 0===a&&(a=this.ox);w.o(a,za,"increaseZoom:factor");var b=this.h;null!==b&&b.Go===Ff&&(a*=b.scale,ab.lh||(b.scale=a))};za.prototype.canIncreaseZoom=function(a){void 0===a&&(a=this.ox);w.o(a,za,"canIncreaseZoom:factor");var b=this.h;if(null===b||b.Go!==Ff)return!1;a*=b.scale;return ab.lh?!1:b.aw};za.prototype.resetZoom=function(a){void 0===a&&(a=this.jw);w.o(a,za,"resetZoom:newscale");var b=this.h;null===b||ab.lh||(b.scale=a)}; +za.prototype.canResetZoom=function(a){void 0===a&&(a=this.jw);w.o(a,za,"canResetZoom:newscale");var b=this.h;return null===b||ab.lh?!1:b.aw};za.prototype.zoomToFit=function(){var a=this.h;if(null!==a){var b=a.scale,c=a.position;b!==this.eD||isNaN(this.By)?(this.By=b,this.ZB=c.copy(),a.zoomToFit(),a.lf(),this.eD=a.scale):(a.scale=this.By,a.position=this.ZB)}};za.prototype.canZoomToFit=function(){var a=this.h;return null===a?!1:a.aw}; za.prototype.collapseTree=function(a){void 0===a&&(a=null);var b=this.h;if(null===b)return!1;try{b.ec("Collapse Tree");var c=new K(D);if(null!==a&&a.bd)a.collapseTree(),c.add(a);else for(var d=b.selection.j;d.next();){var e=d.value;e instanceof D&&(a=e,a.bd&&(a.collapseTree(),c.add(a)))}b.Ga("TreeCollapsed",c)}finally{b.fe("Collapse Tree")}}; -za.prototype.canCollapseTree=function(a){void 0===a&&(a=null);var b=this.h;if(null===b||b.xb)return!1;if(null!==a){if(!a.bd)return!1;if(0b.targetTouches.length)return;c=b.targetTouches[0];d=b.targetTouches[1]}else if(null!==a.Mf[0])c=a.Mf[0],d=a.Mf[1];else return;this.doCancel();if(a.Un){a.ly=!0;a.kC=a.scale;var e=a.Hb,g=a.Gb,h=a.$a.getBoundingClientRect(),k=c.clientX-e/h.width*h.left,l=c.clientY-g/h.height*h.top,c=d,d=c.clientX-e/h.width*h.left-k,g=c.clientY-g/h.height*h.top-l,g=Math.sqrt(d*d+g* -g);a.HC=g;b.preventDefault();b.cancelBubble=!0}else If(a)}}; -Ue.prototype.standardPinchZoomMove=function(){var a=this.h;if(null!==a){var b=a.Q.event;this.doCancel();If(a);var c=null,d=null;if(void 0!==b.targetTouches){if(2>b.targetTouches.length)return;c=b.targetTouches[0];d=b.targetTouches[1]}else if(null!==a.Mf[0])c=a.Mf[0],d=a.Mf[1];else return;if(a.Un&&a.ly){var e=a.Hb,g=a.Gb,h=a.$a.getBoundingClientRect(),k=c,c=k.clientX-e/h.width*h.left,l=k.clientY-g/h.height*h.top,k=d,d=k.clientX-e/h.width*h.left,g=k.clientY-g/h.height*h.top,h=d-c,e=g-l,h=Math.sqrt(h* -h+e*e)/a.HC,c=new I((Math.min(d,c)+Math.max(d,c))/2,(Math.min(g,l)+Math.max(g,l))/2),l=a.kC*h,d=a.Jb;l!==a.scale&&d.canResetZoom(l)&&(g=a.nn,a.nn=c,d.resetZoom(l),a.nn=g);b.preventDefault();b.cancelBubble=!0}}};Ue.prototype.doKeyDown=function(){var a=this.h;null!==a&&"Esc"===a.Q.key&&this.doCancel()};Ue.prototype.doKeyUp=function(){};Ue.prototype.startTransaction=Ue.prototype.ec=function(a){void 0===a&&(a=this.name);this.Gf=null;var b=this.h;return null===b?!1:b.ec(a)}; +Ue.prototype.standardPinchZoomStart=function(){var a=this.h;if(null!==a){var b=a.Q.event,c=null,d=null;if(void 0!==b.targetTouches){if(2>b.targetTouches.length)return;c=b.targetTouches[0];d=b.targetTouches[1]}else if(null!==a.Mf[0])c=a.Mf[0],d=a.Mf[1];else return;this.doCancel();if(a.Un){a.my=!0;a.lC=a.scale;var e=a.Hb,g=a.Gb,h=a.$a.getBoundingClientRect(),k=c.clientX-e/h.width*h.left,l=c.clientY-g/h.height*h.top,c=d,d=c.clientX-e/h.width*h.left-k,g=c.clientY-g/h.height*h.top-l,g=Math.sqrt(d*d+g* +g);a.IC=g;b.preventDefault();b.cancelBubble=!0}else If(a)}}; +Ue.prototype.standardPinchZoomMove=function(){var a=this.h;if(null!==a){var b=a.Q.event;this.doCancel();If(a);var c=null,d=null;if(void 0!==b.targetTouches){if(2>b.targetTouches.length)return;c=b.targetTouches[0];d=b.targetTouches[1]}else if(null!==a.Mf[0])c=a.Mf[0],d=a.Mf[1];else return;if(a.Un&&a.my){var e=a.Hb,g=a.Gb,h=a.$a.getBoundingClientRect(),k=c,c=k.clientX-e/h.width*h.left,l=k.clientY-g/h.height*h.top,k=d,d=k.clientX-e/h.width*h.left,g=k.clientY-g/h.height*h.top,h=d-c,e=g-l,h=Math.sqrt(h* +h+e*e)/a.IC,c=new I((Math.min(d,c)+Math.max(d,c))/2,(Math.min(g,l)+Math.max(g,l))/2),l=a.lC*h,d=a.Jb;l!==a.scale&&d.canResetZoom(l)&&(g=a.nn,a.nn=c,d.resetZoom(l),a.nn=g);b.preventDefault();b.cancelBubble=!0}}};Ue.prototype.doKeyDown=function(){var a=this.h;null!==a&&"Esc"===a.Q.key&&this.doCancel()};Ue.prototype.doKeyUp=function(){};Ue.prototype.startTransaction=Ue.prototype.ec=function(a){void 0===a&&(a=this.name);this.Gf=null;var b=this.h;return null===b?!1:b.ec(a)}; Ue.prototype.stopTransaction=Ue.prototype.mk=function(){var a=this.h;return null===a?!1:null===this.Gf?a.wp():a.fe(this.Gf)}; Ue.prototype.standardMouseSelect=function(){var a=this.h;if(null!==a&&a.vf){var b=a.Q,c=a.Ss(b.ga,!1);if(null!==c)if(w.Zm?b.qt:b.control){a.Ga("ChangingSelection");for(b=c;null!==b&&!b.canSelect();)b=b.Va;null!==b&&(b.cb=!b.cb);a.Ga("ChangedSelection")}else if(b.shift){if(!c.cb){a.Ga("ChangingSelection");for(b=c;null!==b&&!b.canSelect();)b=b.Va;null!==b&&(b.cb=!0);a.Ga("ChangedSelection")}}else{if(!c.cb){for(b=c;null!==b&&!b.canSelect();)b=b.Va;null!==b&&a.select(b)}}else!b.left||(w.Zm?b.qt:b.control)|| -b.shift||a.ew()}};Ue.prototype.standardMouseClick=function(a,b){void 0===a&&(a=null);void 0===b&&(b=function(a){return!a.layer.Hc});var c=this.h;if(null!==c){var d=c.Q,e=c.he(d.ga,a,b);d.ye=e;Jf(e,d,c)}}; +b.shift||a.fw()}};Ue.prototype.standardMouseClick=function(a,b){void 0===a&&(a=null);void 0===b&&(b=function(a){return!a.layer.Hc});var c=this.h;if(null!==c){var d=c.Q,e=c.he(d.ga,a,b);d.ye=e;Jf(e,d,c)}}; function Jf(a,b,c){var d=0;b.left?d=1===b.cf?1:2===b.cf?2:1:b.right&&1===b.cf&&(d=3);var e="";if(null!==a){switch(d){case 1:e="ObjectSingleClicked";break;case 2:e="ObjectDoubleClicked";break;case 3:e="ObjectContextClicked"}0!==d&&c.Ga(e,a)}else{switch(d){case 1:e="BackgroundSingleClicked";break;case 2:e="BackgroundDoubleClicked";break;case 3:e="BackgroundContextClicked"}0!==d&&c.Ga(e)}if(null!==a)for(b.$c=!1;null!==a;){c=null;switch(d){case 1:c=a.click;break;case 2:c=a.Os?a.Os:a.click;break;case 3:c= -a.qz}if(null!==c&&(c(b,a),b.$c))break;a=a.S}else{a=null;switch(d){case 1:a=c.click;break;case 2:a=c.Os?c.Os:c.click;break;case 3:a=c.qz}null!==a&&a(b)}} -Ue.prototype.standardMouseOver=function(){var a=this.h;if(null!==a){var b=a.Q;if(null!==b.h&&!0!==a.Sb.xd){var c=a.lb;a.lb=!0;var d=a.he(b.ga,null,null);b.ye=d;var e=!1;if(d!==a.An){var g=a.An,h=g;a.An=d;this.doCurrentObjectChanged(g,d);for(b.$c=!1;null!==g;){var k=g.GE;if(null!==k){if(d===g)break;if(null!==d&&d.Al(g))break;k(b,g,d);e=!0;if(b.$c)break}g=g.S}g=h;for(b.$c=!1;null!==d;){k=d.FE;if(null!==k){if(g===d)break;if(null!==g&&g.Al(d))break;k(b,d,g);e=!0;if(b.$c)break}d=d.S}d=a.An}if(null!==d){g= -d;for(k="";null!==g;){k=g.cursor;if(""!==k)break;g=g.S}a.gc=k;b.$c=!1;for(g=d;null!==g;){k=g.cA;if(null!==k&&(k(b,g),e=!0,b.$c))break;g=g.S}}else a.gc="",k=a.cA,null!==k&&(k(b),e=!0);e&&a.ne();a.lb=c}}};Ue.prototype.doCurrentObjectChanged=function(){}; +a.rz}if(null!==c&&(c(b,a),b.$c))break;a=a.S}else{a=null;switch(d){case 1:a=c.click;break;case 2:a=c.Os?c.Os:c.click;break;case 3:a=c.rz}null!==a&&a(b)}} +Ue.prototype.standardMouseOver=function(){var a=this.h;if(null!==a){var b=a.Q;if(null!==b.h&&!0!==a.Sb.jd){var c=a.lb;a.lb=!0;var d=a.he(b.ga,null,null);b.ye=d;var e=!1;if(d!==a.An){var g=a.An,h=g;a.An=d;this.doCurrentObjectChanged(g,d);for(b.$c=!1;null!==g;){var k=g.IE;if(null!==k){if(d===g)break;if(null!==d&&d.Al(g))break;k(b,g,d);e=!0;if(b.$c)break}g=g.S}g=h;for(b.$c=!1;null!==d;){k=d.HE;if(null!==k){if(g===d)break;if(null!==g&&g.Al(d))break;k(b,d,g);e=!0;if(b.$c)break}d=d.S}d=a.An}if(null!==d){g= +d;for(k="";null!==g;){k=g.cursor;if(""!==k)break;g=g.S}a.gc=k;b.$c=!1;for(g=d;null!==g;){k=g.dA;if(null!==k&&(k(b,g),e=!0,b.$c))break;g=g.S}}else a.gc="",k=a.dA,null!==k&&(k(b),e=!0);e&&a.ne();a.lb=c}}};Ue.prototype.doCurrentObjectChanged=function(){}; Ue.prototype.standardMouseWheel=function(){var a=this.h;if(null!==a){var b=a.Q,c=b.nl;if(0!==c&&a.Gc.J()){var d=a.Jb,e=a.zb.st;if((e===Kf&&!b.shift||e===Lf&&b.control)&&(0e||Math.abs(b.y-a.y)>d};w.w(Ue,{h:"diagram"},function(){return this.Z}); -w.defineProperty(Ue,{name:"name"},function(){return this.cc},function(a){w.g(a,"string",Ue,"name");this.cc=a});w.defineProperty(Ue,{isEnabled:"isEnabled"},function(){return this.Xe},function(a){w.g(a,"boolean",Ue,"isEnabled");this.Xe=a});w.defineProperty(Ue,{sa:"isActive"},function(){return this.KB},function(a){w.g(a,"boolean",Ue,"isActive");this.KB=a});w.defineProperty(Ue,{Gf:"transactionResult"},function(){return this.ZC},function(a){null!==a&&w.g(a,"string",Ue,"transactionResult");this.ZC=a}); -function Ef(){0e||Math.abs(b.y-a.y)>d};w.w(Ue,{h:"diagram"},function(){return this.Z}); +w.defineProperty(Ue,{name:"name"},function(){return this.cc},function(a){w.g(a,"string",Ue,"name");this.cc=a});w.defineProperty(Ue,{isEnabled:"isEnabled"},function(){return this.Xe},function(a){w.g(a,"boolean",Ue,"isEnabled");this.Xe=a});w.defineProperty(Ue,{sa:"isActive"},function(){return this.LB},function(a){w.g(a,"boolean",Ue,"isActive");this.LB=a});w.defineProperty(Ue,{Gf:"transactionResult"},function(){return this.$C},function(a){null!==a&&w.g(a,"string",Ue,"transactionResult");this.$C=a}); +function Ef(){0e&&(e=k),l>g&&(g=l))}}Infinity===c?b.n(0,0,0,0):b.n(c,d,e-c,g-d)} -function yg(a,b){if(null===a.wc){var c=a.h;if(!(null===c||b&&(c.xb||c.Bf))&&null!==a.ic){var d=c.na;d.isEnabled&&d.uE?null!==d.Si&&0c.pa)){var d=a.h;if(null!==d&&!d.xb&&(d=a.Ci,null!==d)){var e=null,g=null;null===c.aa&&(e=Ig(a,c.m(0),!1),null!==e&&(g=e.W));var h=null,k=null;null===c.fa&&(h=Ig(a,c.m(c.pa-1),!0),null!==h&&(k=h.W));d.isValidLink(g,e,k,h)?b?(c.En=c.m(0).copy(),c.In=c.m(c.pa-1).copy(),c.Ep=!1,c.aa=g,null!==e&&(c.Sf=e.sd),c.fa=k,null!==h&&(c.Ng=h.sd)):Jg(d,g,e,k,h):Jg(d,null,null,null,null)}}}Ef.prototype.doDragOver=function(){}; -function Kg(a,b){var c=a.h;if(null!==c){a.Vi&&Eg(a,!0);ig(a);var d=Fg(c,b,null,function(b){return!Cg(a,b)}),e=c.Q;e.ye=d;if(null!==d){e.$c=!1;for(var g=d;null!==g;){var h=g.$z;if(null!==h&&(h(e,g),e.$c))break;g=Hg(g)}}else h=c.$z,null!==h&&h(e);if(a.sa||null!==bg)if(a.doDropOnto(b,d),a.sa||null!==bg)for(d=c.selection.j;d.next();)e=d.value,e instanceof D&&Lg(c,e.ca)}}Ef.prototype.doDropOnto=function(){}; +Ef.prototype.computeMove=function(a,b,c,d){void 0===d&&(d=new I);d.assign(b);if(null===a)return d;void 0===c&&(c=null);var e=b;if(this.Dw&&(this.SH||null===c||this.h.Q.up)&&(e=w.O(),c=e,c.assign(b),null!==a)){var g=this.h;if(null!==g){var h=g.Zs,k=this.kE,g=k.width,k=k.height,l=this.DH,m=l.x,l=l.y,n=this.CH;if(null!==h){var p=h.vw;isNaN(g)&&(g=p.width);isNaN(k)&&(k=p.height);h=h.jE;isNaN(m)&&(m=h.x);isNaN(l)&&(l=h.y)}h=w.lc(0,0);h.Kt(0,0,g,k,n);O.Rs(b.x,b.y,m+h.x,l+h.y,g,k,c);w.A(h)}}c=null!==a.QD? +a.QD(a,b,e):e;k=a.rI;g=k.x;isNaN(g)&&(g=a.location.x);k=k.y;isNaN(k)&&(k=a.location.y);h=a.mI;m=h.x;isNaN(m)&&(m=a.location.x);h=h.y;isNaN(h)&&(h=a.location.y);d.n(Math.max(g,Math.min(c.x,m)),Math.max(k,Math.min(c.y,h)));e!==b&&w.A(e);return d};function Cg(a,b){if(null===b)return!0;var c=b.W;return null===c||c instanceof da||c.layer.Hc||a.ic&&a.ic.contains(c)||a.wc&&a.wc.contains(c)?!0:!1} +function Dg(a,b,c,d){var e=a.h;if(null!==e){a.Vi&&(null!==a.Zc&&(a.Zc.aa=null,a.Zc.fa=null),Eg(a,!1));var g=!1;!1===a.zv&&(g=e.lb,e.lb=!0);var h=Fg(e,b,null,function(b){return!Cg(a,b)}),k=e.Q;k.ye=h;var l=e.lb;e.lb=!0;var m=ng(a,k,h);if(a.sa||null!==bg){if(null===h){var n=e.vI;null!==n&&(n(k),m=!0)}if(a.sa||null!==bg)if(a.doDragOver(b,h),a.sa||null!==bg)e.lb=l,m&&e.lf(),!1===a.zv&&(e.lb=g),(e.af||e.bf)&&(c||d)&&Gg(e,k.pe)}}} +function ng(a,b,c){var d=!1,e=a.oj.length,g=0c.pa)){var d=a.h;if(null!==d&&!d.xb&&(d=a.Ci,null!==d)){var e=null,g=null;null===c.aa&&(e=Ig(a,c.m(0),!1),null!==e&&(g=e.W));var h=null,k=null;null===c.fa&&(h=Ig(a,c.m(c.pa-1),!0),null!==h&&(k=h.W));d.isValidLink(g,e,k,h)?b?(c.En=c.m(0).copy(),c.In=c.m(c.pa-1).copy(),c.Ep=!1,c.aa=g,null!==e&&(c.Sf=e.td),c.fa=k,null!==h&&(c.Ng=h.td)):Jg(d,g,e,k,h):Jg(d,null,null,null,null)}}}Ef.prototype.doDragOver=function(){}; +function Kg(a,b){var c=a.h;if(null!==c){a.Vi&&Eg(a,!0);ig(a);var d=Fg(c,b,null,function(b){return!Cg(a,b)}),e=c.Q;e.ye=d;if(null!==d){e.$c=!1;for(var g=d;null!==g;){var h=g.aA;if(null!==h&&(h(e,g),e.$c))break;g=Hg(g)}}else h=c.aA,null!==h&&h(e);if(a.sa||null!==bg)if(a.doDropOnto(b,d),a.sa||null!==bg)for(d=c.selection.j;d.next();)e=d.value,e instanceof D&&Lg(c,e.ca)}}Ef.prototype.doDropOnto=function(){}; Ef.prototype.doMouseMove=function(){if(this.sa){var a=this.h;if(null!==a&&null!==this.Ls&&null!==this.ic){var b=!1,c=!1;this.mayCopy()?(b=!0,a.gc="copy",yg(this,!1),Nf(this,this.wc),zg(this,this.wc,!1),jg(this,this.wc)):this.mayMove()?(c=!0,a.gc="default",mg(this),zg(this,this.ic,!0)):this.mayDragOut()?(a.gc="no-drop",yg(this,!1),zg(this,this.wc,!1)):mg(this);Dg(this,a.Q.ga,c,b)}}}; -Ef.prototype.doMouseUp=function(){if(this.sa){var a=this.h;if(null!==a){var b=!1,c=this.mayCopy();c&&null!==this.wc?(mg(this),yg(this,!0),Nf(this,this.wc),zg(this,this.wc,!1),jg(this,this.wc),null!==this.wc&&a.mF(this.wc.cj())):(b=!0,mg(this),this.mayMove()&&(zg(this,this.ic,!0),this.zv=!1,Dg(this,a.Q.ga,!0,!1),this.zv=!0));this.kq=!0;Kg(this,a.Q.ga);if(this.sa){this.wc=null;if(b&&null!==this.ic)for(b=this.ic.j;b.next();){var d=b.key;d instanceof D&&(d=d.Va,null===d||null===d.placeholder||this.ic.contains(d)|| -d.AD&&d.V())}a.xc();jg(this,this.ic);this.Gf=c?"Copy":"Move";a.Ga(c?"SelectionCopied":"SelectionMoved",a.selection)}this.stopTool()}}};Ef.prototype.mayCopy=function(){if(!this.tE)return!1;var a=this.h;if(null===a||a.xb||a.Bf||!a.Eo||!a.Zj||(w.Zm?!a.Q.alt:!a.Q.control))return!1;for(a=a.selection.j;a.next();){var b=a.value;if(b.Sd()&&b.canCopy())return!0}return null!==this.Zc&&this.Vi&&this.Zc.canCopy()?!0:!1}; -Ef.prototype.mayDragOut=function(){if(!this.tE)return!1;var a=this.h;if(null===a||!a.Uv||!a.Zj||a.fl)return!1;for(a=a.selection.j;a.next();){var b=a.value;if(b.Sd()&&b.canCopy())return!0}return null!==this.Zc&&this.Vi&&this.Zc.canCopy()?!0:!1};Ef.prototype.mayMove=function(){var a=this.h;if(null===a||a.xb||!a.fl)return!1;for(a=a.selection.j;a.next();){var b=a.value;if(b.Sd()&&b.canMove())return!0}return null!==this.Zc&&this.Vi&&this.Zc.canMove()?!0:!1};var kg=new K(Ef),bg=null,cg=null; -Ef.prototype.mayDragIn=function(){var a=this.h;if(null===a||!a.kD||a.xb||a.Bf||!a.Eo)return!1;var b=bg;return null===b||b.h.ha.ll!==a.ha.ll?!1:!0};Ef.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.h;a.Sb.bj();Mg(a);a=bg;null!==a&&(a.h.gc="copy")}};Ef.prototype.doSimulatedDragLeave=function(){var a=bg;null!==a&&a.doSimulatedDragOut();this.doCancel()}; +Ef.prototype.doMouseUp=function(){if(this.sa){var a=this.h;if(null!==a){var b=!1,c=this.mayCopy();c&&null!==this.wc?(mg(this),yg(this,!0),Nf(this,this.wc),zg(this,this.wc,!1),jg(this,this.wc),null!==this.wc&&a.oF(this.wc.cj())):(b=!0,mg(this),this.mayMove()&&(zg(this,this.ic,!0),this.zv=!1,Dg(this,a.Q.ga,!0,!1),this.zv=!0));this.kq=!0;Kg(this,a.Q.ga);if(this.sa){this.wc=null;if(b&&null!==this.ic)for(b=this.ic.j;b.next();){var d=b.key;d instanceof D&&(d=d.Va,null===d||null===d.placeholder||this.ic.contains(d)|| +d.BD&&d.V())}a.xc();jg(this,this.ic);this.Gf=c?"Copy":"Move";a.Ga(c?"SelectionCopied":"SelectionMoved",a.selection)}this.stopTool()}}};Ef.prototype.mayCopy=function(){if(!this.uE)return!1;var a=this.h;if(null===a||a.xb||a.Bf||!a.Eo||!a.Zj||(w.Zm?!a.Q.alt:!a.Q.control))return!1;for(a=a.selection.j;a.next();){var b=a.value;if(b.Sd()&&b.canCopy())return!0}return null!==this.Zc&&this.Vi&&this.Zc.canCopy()?!0:!1}; +Ef.prototype.mayDragOut=function(){if(!this.uE)return!1;var a=this.h;if(null===a||!a.Vv||!a.Zj||a.fl)return!1;for(a=a.selection.j;a.next();){var b=a.value;if(b.Sd()&&b.canCopy())return!0}return null!==this.Zc&&this.Vi&&this.Zc.canCopy()?!0:!1};Ef.prototype.mayMove=function(){var a=this.h;if(null===a||a.xb||!a.fl)return!1;for(a=a.selection.j;a.next();){var b=a.value;if(b.Sd()&&b.canMove())return!0}return null!==this.Zc&&this.Vi&&this.Zc.canMove()?!0:!1};var kg=new K(Ef),bg=null,cg=null; +Ef.prototype.mayDragIn=function(){var a=this.h;if(null===a||!a.lD||a.xb||a.Bf||!a.Eo)return!1;var b=bg;return null===b||b.h.ha.ll!==a.ha.ll?!1:!0};Ef.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.h;a.Sb.bj();Mg(a);a=bg;null!==a&&(a.h.gc="copy")}};Ef.prototype.doSimulatedDragLeave=function(){var a=bg;null!==a&&a.doSimulatedDragOut();this.doCancel()}; Ef.prototype.doSimulatedDragOver=function(){var a=this.h;if(null!==a){var b=bg;null!==b&&null!==b.ic&&this.mayDragIn()&&(a.gc="copy",Ng(this,b.ic.cj(),!1),zg(this,this.wc,!1),Dg(this,a.Q.ga,!1,!0))}}; -Ef.prototype.doSimulatedDrop=function(){var a=this.h;if(null!==a){var b=bg;null!==b&&(b.kq=!0,mg(this),this.mayDragIn()&&(this.ec("Drop"),Ng(this,b.ic.cj(),!0),zg(this,this.wc,!1),null!==this.wc&&a.mF(this.wc.cj()),this.Gf="ExternalCopy",Kg(this,a.Q.ga),a.xc(),this.wc=null,a.focus(),a.Ga("ExternalObjectsDropped",a.selection),this.mk()))}}; +Ef.prototype.doSimulatedDrop=function(){var a=this.h;if(null!==a){var b=bg;null!==b&&(b.kq=!0,mg(this),this.mayDragIn()&&(this.ec("Drop"),Ng(this,b.ic.cj(),!0),zg(this,this.wc,!1),null!==this.wc&&a.oF(this.wc.cj()),this.Gf="ExternalCopy",Kg(this,a.Q.ga),a.xc(),this.wc=null,a.focus(),a.Ga("ExternalObjectsDropped",a.selection),this.mk()))}}; function Ng(a,b,c){if(null===a.wc){var d=a.h;if(null!==d&&!d.xb&&!d.Bf){d.lb=!c;d.rn=!c;a.lk=d.Q.ga;d=d.Mo(b,d,!0);c=w.eg();xg(b,c);var e=c.x+c.width/2,g=c.y+c.height/2;w.qc(c);var h=a.Bv;c=new ta(C);var k=w.O();for(b=b.j;b.next();){var l=b.value;if(l.Sd()&&l.canCopy()){var m=l.location,l=d.ya(l);k.n(h.x-(e-m.x),h.y-(g-m.y));l.location=k;l.wf();c.add(l,fg(k))}}w.A(k);for(d=d.j;d.next();)e=d.value,e instanceof G&&e.canCopy()&&c.add(e,fg());a.wc=c;Mf(a,c.cj());null!==a.Zc&&(c=a.Zc,d=c.gn,c.El(a.lk.x- -(d.x+d.width/2),a.lk.y-(d.y+d.height/2)))}}}Ef.prototype.doSimulatedDragOut=function(){var a=this.h;null!==a&&(this.mayCopy()||this.mayMove()?a.gc="":a.gc="no-drop")};function gg(a){this.point=a;this.tF=O.ok}w.la("DraggingInfo",gg);function Ag(a,b,c){this.Kc=a;this.info=b;this.CH=c} -function Og(){0=d&&(d=.1);for(var e=this,g=b.Tm(c,d,function(b){return e.findValidLinkablePort(b,a)},null,!0),d=Infinity,b=null,g=g.j;g.next();){var h=g.value,k=h.W;if(k instanceof D){var l=h.vb(ac,w.O()),m=c.x-l.x,n=c.y-l.y;w.A(l);l=m*m+n*n;lc){if(null!==this.yc&&a===this.qh&&b===this.rh)return!0;var d=b.sd;null===d&&(d="");if(a.pw(d).count>=c)return!1}return!0}; -Og.prototype.isValidTo=function(a,b){if(null===a||null===b)return this.cp;if(this.h.Ya===this&&(null!==a.layer&&!a.layer.zs||!0!==b.AF))return!1;var c=b.iJ;if(Infinity>c){if(null!==this.yc&&a===this.sh&&b===this.th)return!0;var d=b.sd;null===d&&(d="");if(a.Cg(d).count>=c)return!1}return!0};Og.prototype.isInSameNode=function(a,b){if(null===a||null===b)return!1;if(a===b)return!0;var c=a.W,d=b.W;return null!==c&&c===d}; -Og.prototype.isLinked=function(a,b){if(null===a||null===b)return!1;var c=a.W;if(!(c instanceof D))return!1;var d=a.sd;null===d&&(d="");var e=b.W;if(!(e instanceof D))return!1;var g=b.sd;null===g&&(g="");for(e=e.Cg(g);e.next();)if(g=e.value,g.aa===c&&g.Sf===d)return!0;return!1}; -Og.prototype.isValidLink=function(a,b,c,d){if(!this.isValidFrom(a,b)||!this.isValidTo(c,d)||!(null===b||null===d||(b.tH&&d.hJ||!this.isInSameNode(b,d))&&(b.sH&&d.gJ||!this.isLinked(b,d)))||null!==this.yc&&(null!==a&&this.isLabelDependentOnLink(a,this.yc)||null!==c&&this.isLabelDependentOnLink(c,this.yc))||null!==a&&null!==c&&(null===a.data&&null!==c.data||null!==a.data&&null===c.data)||!this.isValidCycle(a,c,this.yc))return!1;if(null!==a){var e=a.Lw;if(null!==e&&!e(a,b,c,d,this.yc))return!1}if(null!== -c&&(e=c.Lw,null!==e&&!e(a,b,c,d,this.yc)))return!1;e=this.Lw;return null!==e?e(a,b,c,d,this.yc):!0};Og.prototype.isLabelDependentOnLink=function(a,b){if(null===a)return!1;var c=a.Cd;if(null===c)return!1;if(c===b)return!0;var d=new L(D);d.add(a);return Xg(this,c,b,d)};function Xg(a,b,c,d){if(b===c)return!0;var e=b.aa;if(null!==e&&e.Af&&(d.add(e),Xg(a,e.Cd,c,d)))return!0;b=b.fa;return null!==b&&b.Af&&(d.add(b),Xg(a,b.Cd,c,d))?!0:!1} -Og.prototype.isValidCycle=function(a,b,c){void 0===c&&(c=null);if(null===a||null===b)return this.cp;var d=this.h.nJ;if(d!==Yg){if(d===Zg){if(null!==c&&!c.Ic)return!0;for(d=b.Vd;d.next();){var e=d.value;if(e!==c&&e.Ic&&e.fa===b)return!1}return!$g(this,a,b,c,!0)}if(d===ah){if(null!==c&&!c.Ic)return!0;for(d=a.Vd;d.next();)if(e=d.value,e!==c&&e.Ic&&e.aa===a)return!1;return!$g(this,a,b,c,!0)}if(d===bh)return a===b?a=!0:(d=new L(D),d.add(b),a=ch(this,d,a,b,c)),!a;if(d===dh)return!$g(this,a,b,c,!1);if(d=== +Og.prototype.findValidLinkablePort=function(a,b){if(null===a)return null;var c=a.W;if(!(c instanceof D))return null;for(;null!==a;){var d=b?a.CF:a.cE;if(!0===d&&(null!==a.td||a instanceof D)&&(b?this.isValidTo(c,a):this.isValidFrom(c,a)))return a;if(!1===d)break;a=a.S}return null}; +Og.prototype.findTargetPort=function(a){var b=this.h,c=b.Q.ga,d=this.PE;0>=d&&(d=.1);for(var e=this,g=b.Tm(c,d,function(b){return e.findValidLinkablePort(b,a)},null,!0),d=Infinity,b=null,g=g.j;g.next();){var h=g.value,k=h.W;if(k instanceof D){var l=h.vb(ac,w.O()),m=c.x-l.x,n=c.y-l.y;w.A(l);l=m*m+n*n;lc){if(null!==this.yc&&a===this.qh&&b===this.rh)return!0;var d=b.td;null===d&&(d="");if(a.qw(d).count>=c)return!1}return!0}; +Og.prototype.isValidTo=function(a,b){if(null===a||null===b)return this.cp;if(this.h.Ya===this&&(null!==a.layer&&!a.layer.zs||!0!==b.CF))return!1;var c=b.kJ;if(Infinity>c){if(null!==this.yc&&a===this.sh&&b===this.th)return!0;var d=b.td;null===d&&(d="");if(a.Cg(d).count>=c)return!1}return!0};Og.prototype.isInSameNode=function(a,b){if(null===a||null===b)return!1;if(a===b)return!0;var c=a.W,d=b.W;return null!==c&&c===d}; +Og.prototype.isLinked=function(a,b){if(null===a||null===b)return!1;var c=a.W;if(!(c instanceof D))return!1;var d=a.td;null===d&&(d="");var e=b.W;if(!(e instanceof D))return!1;var g=b.td;null===g&&(g="");for(e=e.Cg(g);e.next();)if(g=e.value,g.aa===c&&g.Sf===d)return!0;return!1}; +Og.prototype.isValidLink=function(a,b,c,d){if(!this.isValidFrom(a,b)||!this.isValidTo(c,d)||!(null===b||null===d||(b.vH&&d.jJ||!this.isInSameNode(b,d))&&(b.uH&&d.iJ||!this.isLinked(b,d)))||null!==this.yc&&(null!==a&&this.isLabelDependentOnLink(a,this.yc)||null!==c&&this.isLabelDependentOnLink(c,this.yc))||null!==a&&null!==c&&(null===a.data&&null!==c.data||null!==a.data&&null===c.data)||!this.isValidCycle(a,c,this.yc))return!1;if(null!==a){var e=a.Mw;if(null!==e&&!e(a,b,c,d,this.yc))return!1}if(null!== +c&&(e=c.Mw,null!==e&&!e(a,b,c,d,this.yc)))return!1;e=this.Mw;return null!==e?e(a,b,c,d,this.yc):!0};Og.prototype.isLabelDependentOnLink=function(a,b){if(null===a)return!1;var c=a.Cd;if(null===c)return!1;if(c===b)return!0;var d=new L(D);d.add(a);return Xg(this,c,b,d)};function Xg(a,b,c,d){if(b===c)return!0;var e=b.aa;if(null!==e&&e.Af&&(d.add(e),Xg(a,e.Cd,c,d)))return!0;b=b.fa;return null!==b&&b.Af&&(d.add(b),Xg(a,b.Cd,c,d))?!0:!1} +Og.prototype.isValidCycle=function(a,b,c){void 0===c&&(c=null);if(null===a||null===b)return this.cp;var d=this.h.pJ;if(d!==Yg){if(d===Zg){if(null!==c&&!c.Ic)return!0;for(d=b.Vd;d.next();){var e=d.value;if(e!==c&&e.Ic&&e.fa===b)return!1}return!$g(this,a,b,c,!0)}if(d===ah){if(null!==c&&!c.Ic)return!0;for(d=a.Vd;d.next();)if(e=d.value,e!==c&&e.Ic&&e.aa===a)return!1;return!$g(this,a,b,c,!0)}if(d===bh)return a===b?a=!0:(d=new L(D),d.add(b),a=ch(this,d,a,b,c)),!a;if(d===dh)return!$g(this,a,b,c,!1);if(d=== eh)return a===b?a=!0:(d=new L(D),d.add(b),a=fh(this,d,a,b,c)),!a}return!0};function $g(a,b,c,d,e){if(b===c)return!0;if(null===b||null===c)return!1;for(var g=b.Vd;g.next();){var h=g.value;if(h!==d&&(!e||h.Ic)&&h.fa===b&&(h=h.aa,h!==b&&$g(a,h,c,d,e)))return!0}return!1}function ch(a,b,c,d,e){if(c===d)return!0;if(null===c||null===d||b.contains(c))return!1;b.add(c);for(var g=c.Vd;g.next();){var h=g.value;if(h!==e&&h.fa===c&&(h=h.aa,h!==c&&ch(a,b,h,d,e)))return!0}return!1} -function fh(a,b,c,d,e){if(c===d)return!0;if(null===c||null===d||b.contains(c))return!1;b.add(c);for(var g=c.Vd;g.next();){var h=g.value;if(h!==e){var k=h.aa,h=h.fa,k=k===c?h:k;if(k!==c&&fh(a,b,k,d,e))return!0}}return!1}w.defineProperty(Og,{Lw:"linkValidation"},function(){return this.Qk},function(a){null!==a&&w.g(a,"function",Og,"linkValidation");this.Qk=a});w.defineProperty(Og,{Tw:"portTargeted"},function(){return this.wC},function(a){null!==a&&w.g(a,"function",Og,"portTargeted");this.wC=a}); -function Aa(){0b.Us+1&&cb.Us+1&&c=a.x)c=0>=a.y?c+225:1<=a.y?c+135:c+180;else if(1<=a.x)0>=a.y?c+=315:1<=a.y&&(c+=45);else if(0>=a.y)c+=270;else if(1<=a.y)c+=90;else break a;0>c?c+=360:360<=c&&(c-=360);b.cursor=22.5>c?"e-resize":67.5>c?"se-resize":112.5>c?"s-resize":157.5>c?"sw-resize":202.5>c?"w-resize":247.5>c?"nw-resize":292.5>c?"n-resize":337.5>c?"ne-resize":"e-resize"}else if(b instanceof H)for(b=b.elements;b.next();)wh(a, b.value,c)}w.defineProperty(vh,{$s:"handleArchetype"},function(){return this.Ik},function(a){null!==a&&w.k(a,V,vh,"handleArchetype");this.Ik=a});w.w(vh,{handle:"handle"},function(){return this.fc});w.defineProperty(vh,{Bc:"adornedObject"},function(){return this.Lb},function(a){null!==a&&w.k(a,V,vh,"adornedObject");this.Lb=a});vh.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.h;return null!==a&&!a.xb&&a.As&&a.Q.left?null!==this.findToolHandleAt(a.Cc.ga,this.name)?!0:!1:!1}; -vh.prototype.doActivate=function(){var a=this.h;null!==a&&(this.fc=this.findToolHandleAt(a.Cc.ga,this.name),null!==this.fc&&(this.Lb=this.fc.W.Bc,this.Ky.set(this.Lb.W.location),this.nv.set(this.Lb.Ba),this.hy=this.computeCellSize(),this.jy=this.computeMinSize(),this.iy=this.computeMaxSize(),a.Pe=!0,this.iC=a.Sb.isEnabled,a.Sb.isEnabled=!1,this.ec(this.name),this.sa=!0))};vh.prototype.doDeactivate=function(){var a=this.h;null!==a&&(this.mk(),this.Lb=this.fc=null,this.sa=a.Pe=!1,a.Sb.isEnabled=this.iC)}; -vh.prototype.doCancel=function(){this.Lb.Ba=this.nv;this.Lb.W.location=this.Ky;this.stopTool()};vh.prototype.doMouseMove=function(){var a=this.h;if(this.sa&&null!==a){var b=this.jy,c=this.iy,d=this.hy,e=this.Lb.fE(a.Q.ga,w.O()),g=zh;this.Lb instanceof Y&&(g=Ah(this.Lb));b=this.computeResize(e,this.fc.alignment,b,c,d,!(g===Kh||g===Lh||a.Q.shift));this.resize(b);a.lf();w.A(e)}}; -vh.prototype.doMouseUp=function(){var a=this.h;if(this.sa&&null!==a){var b=this.jy,c=this.iy,d=this.hy,e=this.Lb.fE(a.Q.ga,w.O()),g=zh;this.Lb instanceof Y&&(g=Ah(this.Lb));b=this.computeResize(e,this.fc.alignment,b,c,d,!(g===Kh||g===Lh||a.Q.shift));this.resize(b);w.A(e);a.xc();this.Gf=this.name;a.Ga("PartResized",this.Lb,this.nv)}this.stopTool()}; +vh.prototype.doActivate=function(){var a=this.h;null!==a&&(this.fc=this.findToolHandleAt(a.Cc.ga,this.name),null!==this.fc&&(this.Lb=this.fc.W.Bc,this.Ly.set(this.Lb.W.location),this.nv.set(this.Lb.Ba),this.iy=this.computeCellSize(),this.ky=this.computeMinSize(),this.jy=this.computeMaxSize(),a.Pe=!0,this.jC=a.Sb.isEnabled,a.Sb.isEnabled=!1,this.ec(this.name),this.sa=!0))};vh.prototype.doDeactivate=function(){var a=this.h;null!==a&&(this.mk(),this.Lb=this.fc=null,this.sa=a.Pe=!1,a.Sb.isEnabled=this.jC)}; +vh.prototype.doCancel=function(){this.Lb.Ba=this.nv;this.Lb.W.location=this.Ly;this.stopTool()};vh.prototype.doMouseMove=function(){var a=this.h;if(this.sa&&null!==a){var b=this.ky,c=this.jy,d=this.iy,e=this.Lb.gE(a.Q.ga,w.O()),g=zh;this.Lb instanceof Y&&(g=Ah(this.Lb));b=this.computeResize(e,this.fc.alignment,b,c,d,!(g===Bh||g===Lh||a.Q.shift));this.resize(b);a.lf();w.A(e)}}; +vh.prototype.doMouseUp=function(){var a=this.h;if(this.sa&&null!==a){var b=this.ky,c=this.jy,d=this.iy,e=this.Lb.gE(a.Q.ga,w.O()),g=zh;this.Lb instanceof Y&&(g=Ah(this.Lb));b=this.computeResize(e,this.fc.alignment,b,c,d,!(g===Bh||g===Lh||a.Q.shift));this.resize(b);w.A(e);a.xc();this.Gf=this.name;a.Ga("PartResized",this.Lb,this.nv)}this.stopTool()}; vh.prototype.resize=function(a){if(null!==this.h){var b=this.Bc,c=b.W,d=b.tl(),e=b.Wi(),g=Math.PI*d/180,h=Math.cos(g),g=Math.sin(g),k=0d?1:0,l=90d?1:0,d=180d?1:0,m=b.Fa.width,n=b.Fa.height;b.Ba=a.size;var p=c.position.copy();c.wf();m=b.Fa.width-m;n=b.Fa.height-n;if(0!==m||0!==n)0!==m&&(p.x+=e*((a.x+m*l)*h-(a.y+n*k)*g)),0!==n&&(p.y+=e*((a.x+m*d)*g+(a.y+n*l)*h)),c.move(p)}}; vh.prototype.computeResize=function(a,b,c,d,e,g){b.we()&&(b=ac);var h=this.Bc.Fa,k=h.x,l=h.y,m=h.x+h.width,n=h.y+h.height,p=1;if(!g){var p=h.width,q=h.height;0>=p&&(p=1);0>=q&&(q=1);p=q/p}q=w.O();O.Rs(a.x,a.y,k,l,e.width,e.height,q);a=h.copy();0>=b.x?0>=b.y?(a.x=Math.max(q.x,m-d.width),a.x=Math.min(a.x,m-c.width),a.width=Math.max(m-a.x,c.width),a.y=Math.max(q.y,n-d.height),a.y=Math.min(a.y,n-c.height),a.height=Math.max(n-a.y,c.height),g||(b=a.height/a.width,p=b.y?(a.width=Math.max(Math.min(q.x-k,d.width),c.width),a.y=Math.max(q.y,n-d.height),a.y=Math.min(a.y,n- c.height),a.height=Math.max(n-a.y,c.height),g||(b=a.height/a.width,p=b.y?(a.y=Math.max(q.y,n-d.height),a.y=Math.min(a.y,n-c.height),a.height=n-a.y,g||(a.width=a.height/ p,a.x=k+.5*(m-k-a.width))):1<=b.y&&(a.height=Math.max(Math.min(q.y-l,d.height),c.height),g||(a.width=a.height/p,a.x=k+.5*(m-k-a.width)));w.A(q);return a};vh.prototype.computeMinSize=function(){var a=this.Bc.Df.copy(),b=this.Df;!isNaN(b.width)&&b.width>a.width&&(a.width=b.width);!isNaN(b.height)&&b.height>a.height&&(a.height=b.height);return a}; vh.prototype.computeMaxSize=function(){var a=this.Bc.xe.copy(),b=this.xe;!isNaN(b.width)&&b.widtha&&(a+=360));var b=Math.min(Math.abs(this.YI),180),c=Math.min(Math.abs(this.XI),b/2);!this.h.Q.shift&&0b-c&&(a=(Math.floor(a/b)+1)*b));360<=a?a-=360:0>a&&(a+=360);return a};w.defineProperty(Mh,{YI:"snapAngleMultiple"},function(){return this.FC},function(a){w.g(a,"number",Mh,"snapAngleMultiple");this.FC=a}); -w.defineProperty(Mh,{XI:"snapAngleEpsilon"},function(){return this.EC},function(a){w.g(a,"number",Mh,"snapAngleEpsilon");this.EC=a});w.w(Mh,{RK:"originalAngle"},function(){return this.mv});function Oh(){0a&&(a+=360));var b=Math.min(Math.abs(this.$I),180),c=Math.min(Math.abs(this.ZI),b/2);!this.h.Q.shift&&0b-c&&(a=(Math.floor(a/b)+1)*b));360<=a?a-=360:0>a&&(a+=360);return a};w.defineProperty(Mh,{$I:"snapAngleMultiple"},function(){return this.GC},function(a){w.g(a,"number",Mh,"snapAngleMultiple");this.GC=a}); +w.defineProperty(Mh,{ZI:"snapAngleEpsilon"},function(){return this.FC},function(a){w.g(a,"number",Mh,"snapAngleEpsilon");this.FC=a});w.w(Mh,{TK:"originalAngle"},function(){return this.mv});function Oh(){0e.right&&(c.x-=d.width+5);c.xe.bottom?c.y-(d.height+5):c.y+20;c.ye.right&&(c.x-=d.width+5);c.xe.bottom?c.y-(d.height+5):c.y+20;c.ya?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b} -lf.prototype.prepareAnimation=lf.prototype.Fl=function(){this.Xe&&(this.uj&&this.bj(),this.xd=!0,this.aB=!1)};function oi(a){a.Xe&&requestAnimationFrame(function(){!1===a.xd||a.uj||(a.Z.Cm=1,pi(a.Z),a.xd=!1,a.Z.Ga("AnimationStarting"),qi(a))})} -function ri(a,b,c,d,e){if(a.xd&&(u&&w.k(b,V,lf,"addPropToAnimation:obj"),!(b instanceof C)||b.qE)){var g=a.oo;if(g.contains(b)){b=g.ya(b);a=b.start;var h=b.end;void 0===a[c]&&(a[c]=si(d));h[c]=si(e)}else a=new xa,h=new xa,a[c]=si(d),h[c]=si(e),g.add(b,new ni(a,h))}}function si(a){return a instanceof I?a.copy():a instanceof pa?a.copy():a} -function qi(a){var b;void 0===b&&(b=new xa);var c=a.Z;if(null!==c)if(0===a.oo.count)a.uj=!1,ti(c,!1),c.lf();else{a.uj=!0;var d=b.jK||a.aG,e=b.PK||null,g=b.QK||null,h=b.duration||a.by;b=a.jG;for(var k=a.oo.j;k.next();){var l=k.value.start.position;l instanceof I&&(l.J()||l.assign(b))}a.mB=d;a.su=e;a.tu=g;a.Rx=h;var m=a.$F=a.oo;ui(a);vi(a,c,m,d,0,h,null!==a.Zl&&null!==a.Yl);Mg(a.Z);wi(a);requestAnimationFrame(function(b){var e=b||+new Date,g=e+h;(function s(b){if(!1!==a.uj){b=b||+new Date;var k=b>g? -h:b-e;ui(a);vi(a,c,m,d,k,h,null!==a.Zl&&null!==a.Yl);a.su&&a.su();Mg(c);wi(a);b>g?xi(a):requestAnimationFrame(s)}})(e)})}}var yi={opacity:function(a,b,c,d,e,g){a.opacity=d(e,b,c-b,g)},position:function(a,b,c,d,e,g){e!==g?a.rF(d(e,b.x,c.x-b.x,g),d(e,b.y,c.y-b.y,g)):a.position=new I(d(e,b.x,c.x-b.x,g),d(e,b.y,c.y-b.y,g))},scale:function(a,b,c,d,e,g){a.scale=d(e,b,c-b,g)},visible:function(a,b,c,d,e,g){a.visible=e!==g?b:c}}; -function ui(a){if(!a.ao){var b=a.Z;a.$C=b.lb;a.bB=b.ix;a.cB=b.Mt;b.lb=!0;b.ix=!0;b.Mt=!0;a.ao=!0}}function wi(a){var b=a.Z;b.lb=a.$C;b.ix=a.bB;b.Mt=a.cB;a.ao=!1}function vi(a,b,c,d,e,g,h){for(c=c.j;c.next();){var k=c.key,l=c.value,m=l.start,l=l.end,n;for(n in l)if(void 0!==yi[n])yi[n](k,m[n],l[n],d,e,g)}h&&(h=a.Zl,a=a.Yl,n=a.y-h.y,a=d(e,h.x,a.x-h.x,g),d=d(e,h.y,n,g),e=b.Oz,b.Oz=!0,b.position=new I(a,d),b.Oz=e)} -lf.prototype.stopAnimation=lf.prototype.bj=function(){!0===this.xd&&(this.xd=!1,this.aB&&this.Z.ne());this.uj&&this.Xe&&(ui(this),vi(this,this.Z,this.$F,this.mB,this.Rx,this.Rx,null!==this.Zl&&null!==this.Yl),wi(this),xi(this))};function xi(a){a.uj=!1;a.Zl=null;a.Yl=null;a.oo=new ta(V,ni);ui(a);for(var b=a.Z.links;b.next();){var c=b.value;null!==c.to&&(c.points=c.to,c.to=null)}b=a.Z;ti(b,!1);b.xc();b.lf();zi(b);wi(a);a.tu&&a.tu();a.tu=null;a.su=null;b.Ga("AnimationFinished");b.ne()} -function Ai(a,b,c){var d=b.ca,e=c.ca,g=null;c instanceof F&&(g=c.placeholder);null!==g?(c=g.vb(Xb),c.x+=g.padding.left,c.y+=g.padding.top,ri(a,b,"position",c,b.position)):ri(a,b,"position",new I(e.x+e.width/2-d.width/2,e.y+e.height/2-d.height/2),b.position);ri(a,b,"opacity",.01,b.opacity)}function Bi(a,b,c){a.xd&&(null===a.Zl&&b.J()&&null===a.Yl&&(a.Zl=b.copy()),a.Yl=c.copy())} -w.defineProperty(lf,{isEnabled:"isEnabled"},function(){return this.Xe},function(a){w.g(a,"boolean",lf,"isEnabled");this.Xe=a});w.defineProperty(lf,{duration:"duration"},function(){return this.by},function(a){w.g(a,"number",lf,"duration");1>a&&w.ja(a,">= 1",lf,"duration");this.by=a});w.w(lf,{jh:"isAnimating"},function(){return this.uj});w.w(lf,{uK:"isTicking"},function(){return this.ao});function ni(a,b){this.start=a;this.end=b} -function Te(){0a?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b} +lf.prototype.prepareAnimation=lf.prototype.Fl=function(){this.Xe&&(this.uj&&this.bj(),this.jd=!0,this.bB=!1)};function oi(a){a.Xe&&requestAnimationFrame(function(){!1===a.jd||a.uj||(a.Z.Cm=1,pi(a.Z),a.jd=!1,a.Z.Ga("AnimationStarting"),qi(a))})} +function ri(a,b,c,d,e){if(a.jd&&(u&&w.k(b,V,lf,"addPropToAnimation:obj"),!(b instanceof C)||b.rE)){var g=a.oo;if(g.contains(b)){b=g.ya(b);a=b.start;var h=b.end;void 0===a[c]&&(a[c]=si(d));h[c]=si(e)}else a=new xa,h=new xa,a[c]=si(d),h[c]=si(e),g.add(b,new ni(a,h))}}function si(a){return a instanceof I?a.copy():a instanceof pa?a.copy():a} +function qi(a){var b;void 0===b&&(b=new xa);var c=a.Z;if(null!==c)if(0===a.oo.count)a.uj=!1,ti(c,!1),c.lf();else{a.uj=!0;var d=b.lK||a.cG,e=b.RK||null,g=b.SK||null,h=b.duration||a.ey;b=a.lG;for(var k=a.oo.j;k.next();){var l=k.value.start.position;l instanceof I&&(l.J()||l.assign(b))}a.nB=d;a.su=e;a.tu=g;a.Sx=h;var m=a.bG=a.oo;ui(a);vi(a,c,m,d,0,h,null!==a.Zl&&null!==a.Yl);Mg(a.Z);wi(a);requestAnimationFrame(function(b){var e=b||+new Date,g=e+h;(function s(b){if(!1!==a.uj){b=b||+new Date;var k=b>g? +h:b-e;ui(a);vi(a,c,m,d,k,h,null!==a.Zl&&null!==a.Yl);a.su&&a.su();Mg(c);wi(a);b>g?xi(a):requestAnimationFrame(s)}})(e)})}}var yi={opacity:function(a,b,c,d,e,g){a.opacity=d(e,b,c-b,g)},position:function(a,b,c,d,e,g){e!==g?a.tF(d(e,b.x,c.x-b.x,g),d(e,b.y,c.y-b.y,g)):a.position=new I(d(e,b.x,c.x-b.x,g),d(e,b.y,c.y-b.y,g))},scale:function(a,b,c,d,e,g){a.scale=d(e,b,c-b,g)},visible:function(a,b,c,d,e,g){a.visible=e!==g?b:c}}; +function ui(a){if(!a.ao){var b=a.Z;a.aD=b.lb;a.cB=b.jx;a.dB=b.Mt;b.lb=!0;b.jx=!0;b.Mt=!0;a.ao=!0}}function wi(a){var b=a.Z;b.lb=a.aD;b.jx=a.cB;b.Mt=a.dB;a.ao=!1}function vi(a,b,c,d,e,g,h){for(c=c.j;c.next();){var k=c.key,l=c.value,m=l.start,l=l.end,n;for(n in l)if(void 0!==yi[n])yi[n](k,m[n],l[n],d,e,g)}h&&(h=a.Zl,a=a.Yl,n=a.y-h.y,a=d(e,h.x,a.x-h.x,g),d=d(e,h.y,n,g),e=b.Pz,b.Pz=!0,b.position=new I(a,d),b.Pz=e)} +lf.prototype.stopAnimation=lf.prototype.bj=function(){!0===this.jd&&(this.jd=!1,this.bB&&this.Z.ne());this.uj&&this.Xe&&(ui(this),vi(this,this.Z,this.bG,this.nB,this.Sx,this.Sx,null!==this.Zl&&null!==this.Yl),wi(this),xi(this))};function xi(a){a.uj=!1;a.Zl=null;a.Yl=null;a.oo=new ta(V,ni);ui(a);for(var b=a.Z.links;b.next();){var c=b.value;null!==c.to&&(c.points=c.to,c.to=null)}b=a.Z;ti(b,!1);b.xc();b.lf();zi(b);wi(a);a.tu&&a.tu();a.tu=null;a.su=null;b.Ga("AnimationFinished");b.ne()} +function Ai(a,b,c){var d=b.ca,e=c.ca,g=null;c instanceof F&&(g=c.placeholder);null!==g?(c=g.vb(Xb),c.x+=g.padding.left,c.y+=g.padding.top,ri(a,b,"position",c,b.position)):ri(a,b,"position",new I(e.x+e.width/2-d.width/2,e.y+e.height/2-d.height/2),b.position);ri(a,b,"opacity",.01,b.opacity)}function Bi(a,b,c){a.jd&&(null===a.Zl&&b.J()&&null===a.Yl&&(a.Zl=b.copy()),a.Yl=c.copy())} +w.defineProperty(lf,{isEnabled:"isEnabled"},function(){return this.Xe},function(a){w.g(a,"boolean",lf,"isEnabled");this.Xe=a});w.defineProperty(lf,{duration:"duration"},function(){return this.ey},function(a){w.g(a,"number",lf,"duration");1>a&&w.ja(a,">= 1",lf,"duration");this.ey=a});w.w(lf,{jh:"isAnimating"},function(){return this.uj});w.w(lf,{wK:"isTicking"},function(){return this.ao});function ni(a,b){this.start=a;this.end=b} +function Te(){0=a)return b;for(var c=0,d=0,e=0,g=0,h=0,k=this.kb.j;k.next();){var l=k.value;l instanceof F?e++:l instanceof D?d++:l instanceof G?g++:l instanceof da?h++:c++}k="";0=d.count)a=d.count;else if(d.ma(a)===b)return-1;d.ie(a,b);b.bt(c);d=this.h;null!==d&&(c?d.ra():d.Yo(b));b instanceof F&&this.jx(b);return a}; -f.Oe=function(a,b,c){if(!c&&b.layer!==this&&null!==b.layer)return b.layer.Oe(a,b,c);var d=this.kb;if(0>a||a>=d.length){if(a=d.indexOf(b),0>a)return-1}else if(d.ma(a)!==b&&(a=d.indexOf(b),0>a))return-1;b.ct(c);d.td(a);d=this.h;null!==d&&(c?d.ra():d.Oe(b));b.Wu=null;return a}; -f.jx=function(a){for(;null!==a;){if(a.layer===this){var b=a;if(0!==b.Jc.count){for(var c=-1,d=-1,e=this.kb.p,g=e.length,h=0;hd&&k.Va===b&&(d=h,0<=c))break}!(0>d)&&d=d.count)a=d.count;else if(d.ma(a)===b)return-1;d.ie(a,b);b.bt(c);d=this.h;null!==d&&(c?d.ra():d.Yo(b));b instanceof F&&this.kx(b);return a}; +f.Oe=function(a,b,c){if(!c&&b.layer!==this&&null!==b.layer)return b.layer.Oe(a,b,c);var d=this.kb;if(0>a||a>=d.length){if(a=d.indexOf(b),0>a)return-1}else if(d.ma(a)!==b&&(a=d.indexOf(b),0>a))return-1;b.ct(c);d.ud(a);d=this.h;null!==d&&(c?d.ra():d.Oe(b));b.Wu=null;return a}; +f.kx=function(a){for(;null!==a;){if(a.layer===this){var b=a;if(0!==b.Jc.count){for(var c=-1,d=-1,e=this.kb.p,g=e.length,h=0;hd&&k.Va===b&&(d=h,0<=c))break}!(0>d)&&da||1a||1=a)return b;for(var c=this.Yb.j;c.next();)b+="\n "+c.value.toString(a-1);return b};z.prototype.checkProperties=function(){return w.check(this)};z.fromDiv=function(a){var b=a;"string"===typeof a&&(b=window.document.getElementById(a));return b instanceof HTMLDivElement&&b.Z instanceof z?b.Z:null}; -w.defineProperty(z,{ol:"div"},function(){return this.Pb},function(a){null!==a&&w.k(a,HTMLDivElement,z,"div");if(this.Pb!==a){Vi=[];var b=this.Pb;null!==b?(b.Z=void 0,b.innerHTML="",null!==this.$a&&(this.$a.removeEventListener("touchstart",this.FF,!1),this.$a.removeEventListener("touchmove",this.EF,!1),this.$a.removeEventListener("touchend",this.DF,!1),this.$a.Qd.Z=null),b=this.zb,null!==b&&(b.mf.each(function(a){a.cancelWaitAfter()}),b.Yf.each(function(a){a.cancelWaitAfter()}),b.Zf.each(function(a){a.cancelWaitAfter()})), -b.cancelWaitAfter(),this.Ya.doCancel(),this.Ve=this.$a=null,window.removeEventListener("resize",this.NF,!1),window.removeEventListener("mousemove",this.kp,!0),window.removeEventListener("mousedown",this.jp,!0),window.removeEventListener("mouseup",this.mp,!0),window.removeEventListener("mousewheel",this.nh,!0),window.removeEventListener("DOMMouseScroll",this.nh,!0),window.removeEventListener("mouseout",this.lp,!0)):this.tf=!1;this.Pb=null;if(null!==a){if(b=a.Z)b.ol=null;ej(this,a);this.zt()}}}); -function hj(a){var b=a.$a;b.addEventListener("touchstart",a.FF,!1);b.addEventListener("touchmove",a.EF,!1);b.addEventListener("touchend",a.DF,!1);b.addEventListener("mousemove",a.kp,!1);b.addEventListener("mousedown",a.jp,!1);b.addEventListener("mouseup",a.mp,!1);b.addEventListener("mousewheel",a.nh,!1);b.addEventListener("DOMMouseScroll",a.nh,!1);b.addEventListener("mouseout",a.lp,!1);b.addEventListener("keydown",a.$H,!1);b.addEventListener("keyup",a.aI,!1);b.addEventListener("selectstart",function(a){a.preventDefault(); -return!1},!1);b.addEventListener("contextmenu",function(a){a.preventDefault();return!1},!1);b.addEventListener("gesturechange",function(b){a.zb.Vo===ji&&b.preventDefault()},!1);b.addEventListener("pointerdown",a.yI,!1);b.addEventListener("pointermove",a.AI,!1);b.addEventListener("pointerleave",a.zI,!1);window.addEventListener("resize",a.NF,!1)}function ti(a,b){a.Cm=null;b&&a.PE()} +w.defineProperty(z,{ol:"div"},function(){return this.Pb},function(a){null!==a&&w.k(a,HTMLDivElement,z,"div");if(this.Pb!==a){Vi=[];var b=this.Pb;null!==b?(b.Z=void 0,b.innerHTML="",null!==this.$a&&(this.$a.removeEventListener("touchstart",this.HF,!1),this.$a.removeEventListener("touchmove",this.GF,!1),this.$a.removeEventListener("touchend",this.FF,!1),this.$a.Qd.Z=null),b=this.zb,null!==b&&(b.mf.each(function(a){a.cancelWaitAfter()}),b.Yf.each(function(a){a.cancelWaitAfter()}),b.Zf.each(function(a){a.cancelWaitAfter()})), +b.cancelWaitAfter(),this.Ya.doCancel(),this.Ve=this.$a=null,window.removeEventListener("resize",this.PF,!1),window.removeEventListener("mousemove",this.kp,!0),window.removeEventListener("mousedown",this.jp,!0),window.removeEventListener("mouseup",this.mp,!0),window.removeEventListener("mousewheel",this.nh,!0),window.removeEventListener("DOMMouseScroll",this.nh,!0),window.removeEventListener("mouseout",this.lp,!0)):this.tf=!1;this.Pb=null;if(null!==a){if(b=a.Z)b.ol=null;ej(this,a);this.zt()}}}); +function hj(a){var b=a.$a;b.addEventListener("touchstart",a.HF,!1);b.addEventListener("touchmove",a.GF,!1);b.addEventListener("touchend",a.FF,!1);b.addEventListener("mousemove",a.kp,!1);b.addEventListener("mousedown",a.jp,!1);b.addEventListener("mouseup",a.mp,!1);b.addEventListener("mousewheel",a.nh,!1);b.addEventListener("DOMMouseScroll",a.nh,!1);b.addEventListener("mouseout",a.lp,!1);b.addEventListener("keydown",a.bI,!1);b.addEventListener("keyup",a.cI,!1);b.addEventListener("selectstart",function(a){a.preventDefault(); +return!1},!1);b.addEventListener("contextmenu",function(a){a.preventDefault();return!1},!1);b.addEventListener("gesturechange",function(b){a.zb.Vo===ji&&b.preventDefault()},!1);b.addEventListener("pointerdown",a.AI,!1);b.addEventListener("pointermove",a.CI,!1);b.addEventListener("pointerleave",a.BI,!1);window.addEventListener("resize",a.PF,!1)}function ti(a,b){a.Cm=null;b&&a.RE()} z.prototype.computePixelRatio=function(){if(null!==this.Cm)return this.Cm;var a=this.Ve;return(window.devicePixelRatio||1)/(a.webkitBackingStorePixelRatio||a.mozBackingStorePixelRatio||a.msBackingStorePixelRatio||a.oBackingStorePixelRatio||a.backingStorePixelRatio||1)};z.prototype.doMouseMove=function(){this.Ya.doMouseMove()};z.prototype.doMouseDown=function(){this.Ya.doMouseDown()};z.prototype.doMouseUp=function(){this.Ya.doMouseUp()};z.prototype.doMouseWheel=function(){this.Ya.doMouseWheel()}; -z.prototype.doKeyDown=function(){this.Ya.doKeyDown()};z.prototype.doKeyUp=function(){this.Ya.doKeyUp()};function pi(a){if(null!==a.$a){var b=a.Pb;if(0!==b.clientWidth&&0!==b.clientHeight){var c=a.Kk?a.Nd:0,d=a.Jk?a.Nd:0,e=a.Ge;a.Ge=a.computePixelRatio();a.Ge!==e&&(a.yq=!0,a.ne());if(b.clientWidth!==a.Hb+c||b.clientHeight!==a.Gb+d)a.$l=!0,a.Yd=!0,b=a.Tb,null!==b&&b.Gw&&b.K(),a.Jd||a.ne()}}}z.prototype.focus=z.prototype.focus=function(){this.$a&&this.$a.focus()}; -function ca(a,b,c){void 0===b&&(b=a.Ve);void 0===c&&(c=!0);c&&(b.Yt="");b.pn="";b.Pl=""}function bj(a){var b=new Te;b.name="Background";a.vs(b);b=new Te;b.name="";a.vs(b);b=new Te;b.name="Foreground";a.vs(b);b=new Te;b.name="Adornment";b.Hc=!0;a.vs(b);b=new Te;b.name="Tool";b.Hc=!0;b.rE=!0;a.vs(b);b=new Te;b.name="Grid";b.vf=!1;b.ag=!1;b.Hc=!0;a.wG(b,a.ql("Background"))} +z.prototype.doKeyDown=function(){this.Ya.doKeyDown()};z.prototype.doKeyUp=function(){this.Ya.doKeyUp()};function pi(a){if(null!==a.$a){var b=a.Pb;if(0!==b.clientWidth&&0!==b.clientHeight){var c=a.Kk?a.Nd:0,d=a.Jk?a.Nd:0,e=a.Ge;a.Ge=a.computePixelRatio();a.Ge!==e&&(a.yq=!0,a.ne());if(b.clientWidth!==a.Hb+c||b.clientHeight!==a.Gb+d)a.$l=!0,a.Yd=!0,b=a.Tb,null!==b&&b.Hw&&b.K(),a.Jd||a.ne()}}}z.prototype.focus=z.prototype.focus=function(){this.$a&&this.$a.focus()}; +function ca(a,b,c){void 0===b&&(b=a.Ve);void 0===c&&(c=!0);c&&(b.Yt="");b.pn="";b.Pl=""}function bj(a){var b=new Te;b.name="Background";a.vs(b);b=new Te;b.name="";a.vs(b);b=new Te;b.name="Foreground";a.vs(b);b=new Te;b.name="Adornment";b.Hc=!0;a.vs(b);b=new Te;b.name="Tool";b.Hc=!0;b.sE=!0;a.vs(b);b=new Te;b.name="Grid";b.vf=!1;b.ag=!1;b.Hc=!0;a.yG(b,a.ql("Background"))} function ij(a){a.hd=new H(jj);a.hd.name="GRID";var b=new Y;b.Kb="LineH";b.stroke="lightgray";b.pb=.5;b.interval=1;a.hd.add(b);b=new Y;b.Kb="LineH";b.stroke="gray";b.pb=.5;b.interval=5;a.hd.add(b);b=new Y;b.Kb="LineH";b.stroke="gray";b.pb=1;b.interval=10;a.hd.add(b);b=new Y;b.Kb="LineV";b.stroke="lightgray";b.pb=.5;b.interval=1;a.hd.add(b);b=new Y;b.Kb="LineV";b.stroke="gray";b.pb=.5;b.interval=5;a.hd.add(b);b=new Y;b.Kb="LineV";b.stroke="gray";b.pb=1;b.interval=10;a.hd.add(b);b=new C;b.add(a.hd); -b.hf="Grid";b.Dw=!1;b.qE=!1;b.ag=!1;b.Mw="GRID";a.add(b);a.kb.remove(b);a.hd.visible=!1} -z.prototype.jC=function(){if(this.Z.isEnabled){var a=this.Z;if(a.Qy&&null!==a.$a){a.tv=!0;var b=a.Gc,c=a.qb,d=b.width,e=c.width,g=b.height,h=c.height,k=b.right,l=c.right,m=b.bottom,n=c.bottom,p=b.x,q=c.x,b=b.y,c=c.y,r=a.scale;if(el&&(a.position= -new I(-(a.Lj.scrollWidth-a.Hb)+this.scrollLeft-a.Hb/r+a.Gc.right,a.position.y))),this.BC&&a.bf&&(bn&&(a.position=new I(a.position.x,-(a.Mj.scrollHeight-a.Gb)+this.scrollTop-a.Gb/r+a.Gc.bottom))),w.A(s),kj(a),a.tv=!1,a.$l=!1,b=a.Gc,c=a.qb,k=b.right,l=c.right,m=b.bottom,n=c.bottom,p=b.x,q=c.x,b=b.y,c=c.y,e>=d&&p>=q&&k<=l&&(a.Ry.style.width="1px"),h>=g&&b>=c&&m<=n&&(a.Sy.style.height="1px")}}else lj(this.Z)}; -z.prototype.lv=function(){this.Z.isEnabled?this.Z.Qy=!0:lj(this.Z)};z.prototype.computeBounds=z.prototype.yg=function(){0c&&(e=c),ea.lh&&(e=a.lh),e):b===tj?(e=l>k?(h-a.Nd)/d:(g-a.Nd)/e,e>c&&(e=c),ea.lh&&(e=a.lh),e):a.scale}z.prototype.zoomToFit=z.prototype.zoomToFit=function(){this.scale=pj(this,sj)}; -z.prototype.zoomToRect=function(a,b){void 0===b&&(b=sj);var c=a.width,d=a.height;if(!(0===c||0===d||isNaN(c)&&isNaN(d))){var e=1;if(b===sj||b===tj)if(isNaN(c))e=this.qb.height*this.scale/d;else if(isNaN(d))e=this.qb.width*this.scale/c;else var e=this.Hb,g=this.Gb,e=b===tj?g/d>e/c?(g-(this.Jk?this.Nd:0))/d:(e-(this.Kk?this.Nd:0))/c:Math.min(g/d,e/c);this.scale=e;this.position=new I(a.x,a.y)}};w.defineProperty(z,{Oz:null},function(){return this.zc},function(a){this.zc=a}); +b.hf="Grid";b.Ew=!1;b.rE=!1;b.ag=!1;b.Nw="GRID";a.add(b);a.kb.remove(b);a.hd.visible=!1} +z.prototype.kC=function(){if(this.Z.isEnabled){var a=this.Z;if(a.Ry&&null!==a.$a){a.tv=!0;var b=a.Gc,c=a.qb,d=b.width,e=c.width,g=b.height,h=c.height,k=b.right,l=c.right,m=b.bottom,n=c.bottom,p=b.x,q=c.x,b=b.y,c=c.y,r=a.scale;if(el&&(a.position= +new I(-(a.Lj.scrollWidth-a.Hb)+this.scrollLeft-a.Hb/r+a.Gc.right,a.position.y))),this.CC&&a.bf&&(bn&&(a.position=new I(a.position.x,-(a.Mj.scrollHeight-a.Gb)+this.scrollTop-a.Gb/r+a.Gc.bottom))),w.A(s),kj(a),a.tv=!1,a.$l=!1,b=a.Gc,c=a.qb,k=b.right,l=c.right,m=b.bottom,n=c.bottom,p=b.x,q=c.x,b=b.y,c=c.y,e>=d&&p>=q&&k<=l&&(a.Sy.style.width="1px"),h>=g&&b>=c&&m<=n&&(a.Ty.style.height="1px")}}else lj(this.Z)}; +z.prototype.lv=function(){this.Z.isEnabled?this.Z.Ry=!0:lj(this.Z)};z.prototype.computeBounds=z.prototype.yg=function(){0c&&(e=c),ea.lh&&(e=a.lh),e):b===tj?(e=l>k?(h-a.Nd)/d:(g-a.Nd)/e,e>c&&(e=c),ea.lh&&(e=a.lh),e):a.scale}z.prototype.zoomToFit=z.prototype.zoomToFit=function(){this.scale=pj(this,sj)}; +z.prototype.zoomToRect=function(a,b){void 0===b&&(b=sj);var c=a.width,d=a.height;if(!(0===c||0===d||isNaN(c)&&isNaN(d))){var e=1;if(b===sj||b===tj)if(isNaN(c))e=this.qb.height*this.scale/d;else if(isNaN(d))e=this.qb.width*this.scale/c;else var e=this.Hb,g=this.Gb,e=b===tj?g/d>e/c?(g-(this.Jk?this.Nd:0))/d:(e-(this.Kk?this.Nd:0))/c:Math.min(g/d,e/c);this.scale=e;this.position=new I(a.x,a.y)}};w.defineProperty(z,{Pz:null},function(){return this.zc},function(a){this.zc=a}); z.prototype.alignDocument=function(a,b){this.ri&&rj(this,this.yg());var c=this.Gc,d=this.qb,e=this.zc;this.zc=!0;this.position=new I(c.x+(a.x*c.width+a.offsetX)-(b.x*d.width-b.offsetX),c.y+(a.y*c.height+a.offsetY)-(b.y*d.height-b.offsetY));this.zc=e;this.ra()}; -function qj(a,b,c,d,e,g,h){var k=b.x,l=b.y;if(h||a.iF===Wi)g.qd()&&(d>c.width&&(k=c.x+(g.x*c.width+g.offsetX)-(g.x*d-g.offsetX)),e>c.height&&(l=c.y+(g.y*c.height+g.offsetY)-(g.y*e-g.offsetY))),g=a.hF,h=d-c.width,dc.left?k=c.left:kc.top?l=c.top:lc.width&&(k=c.x+(g.x*c.width+g.offsetX)-(g.x*d-g.offsetX)),e>c.height&&(l=c.y+(g.y*c.height+g.offsetY)-(g.y*e-g.offsetY))),g=a.jF,h=d-c.width,dc.left?k=c.left:kc.top?l=c.top:lc.touches.length)&&c.preventDefault();c.cancelBubble=!0;return!1} -z.prototype.$H=function(a){if(!this.Z.isEnabled)return!1;var b=this.Z.Qb;vj(this.Z,this.Z,a,b,!1);b.key=String.fromCharCode(a.which);b.pl=!0;switch(a.which){case 8:b.key="Backspace";break;case 33:b.key="PageUp";break;case 34:b.key="PageDown";break;case 35:b.key="End";break;case 36:b.key="Home";break;case 37:b.key="Left";break;case 38:b.key="Up";break;case 39:b.key="Right";break;case 40:b.key="Down";break;case 45:b.key="Insert";break;case 46:b.key="Del";break;case 48:b.key="0";break;case 187:case 61:case 107:b.key= +function vj(a,b,c,d,e){d.h=b;e?wj(a,c,d):(d.pe=b.Qb.pe,d.ga=b.Qb.ga);a=0;c.ctrlKey&&(a+=1);c.altKey&&(a+=2);c.shiftKey&&(a+=4);c.metaKey&&(a+=8);d.sd=a;d.button=c.button;w.Zm&&0===c.button&&c.ctrlKey&&(d.button=2);d.pl=!1;d.up=!1;d.cf=1;d.nl=0;d.$c=!1;d.bubbles=!1;d.event=c;d.timestamp=Date.now();d.gt=!1;d.Lg=c.target.Z?c.target.Z:null;d.ye=null} +function xj(a,b,c,d,e){d.h=a;wj(a,c,d);d.sd=0;d.button=0;d.pl=!0;d.up=!1;d.cf=1;d.nl=0;d.$c=!1;d.bubbles=!0;d.event=b;d.timestamp=Date.now();d.gt=e;d.Lg=b.target.Z?b.target.Z:null;d.ye=null;a.Gk=d.copy();bg=null} +function yj(a,b,c,d,e){var g=null;d.h=a;if(null!==c){var g=window.document.elementFromPoint(c.clientX,c.clientY),h;g&&g.Z?h=g.Z:(c=b.changedTouches[0],h=a);wj(a,c,d)}else null!==a.Sc?(d.ga=a.Sc.ga,d.pe=a.Sc.pe,d.Lg=a.Sc.Lg):null!==a.Gk&&(d.ga=a.Gk.ga,d.pe=a.Gk.pe,d.Lg=a.Gk.Lg);d.sd=0;d.button=0;d.pl=!1;d.up=!1;d.cf=1;d.nl=0;d.$c=!1;d.bubbles=!1;d.event=b;d.timestamp=Date.now();d.gt=e;d.Lg=h;d.ye=null} +function ia(a,b,c){if(b.bubbles)return u&&u.nE&&w.trace("NOT handled "+c.type+" "+b.toString()),!0;u&&u.nE&&w.trace("handled "+c.type+" "+a.Ya.name+" "+b.toString());void 0!==c.stopPropagation&&c.stopPropagation();(void 0===c.touches||2>c.touches.length)&&c.preventDefault();c.cancelBubble=!0;return!1} +z.prototype.bI=function(a){if(!this.Z.isEnabled)return!1;var b=this.Z.Qb;vj(this.Z,this.Z,a,b,!1);b.key=String.fromCharCode(a.which);b.pl=!0;switch(a.which){case 8:b.key="Backspace";break;case 33:b.key="PageUp";break;case 34:b.key="PageDown";break;case 35:b.key="End";break;case 36:b.key="Home";break;case 37:b.key="Left";break;case 38:b.key="Up";break;case 39:b.key="Right";break;case 40:b.key="Down";break;case 45:b.key="Insert";break;case 46:b.key="Del";break;case 48:b.key="0";break;case 187:case 61:case 107:b.key= "Add";break;case 189:case 173:case 109:b.key="Subtract";break;case 27:b.key="Esc"}this.Z.doKeyDown();return 187!==a.which&&189!==a.which&&48!==a.which&&107!==a.which&&109!==a.which&&61!==a.which&&173!==a.which||!0!==a.ctrlKey?ia(this.Z,b,a):(a.cancelBubble=!0,a.preventDefault(),a.stopPropagation(),!1)}; -z.prototype.aI=function(a){if(!this.Z.isEnabled)return!1;var b=this.Z.Qb;vj(this.Z,this.Z,a,b,!1);b.key=String.fromCharCode(a.which);b.up=!0;switch(a.which){case 8:b.key="Backspace";break;case 33:b.key="PageUp";break;case 34:b.key="PageDown";break;case 35:b.key="End";break;case 36:b.key="Home";break;case 37:b.key="Left";break;case 38:b.key="Up";break;case 39:b.key="Right";break;case 40:b.key="Down";break;case 45:b.key="Insert";break;case 46:b.key="Del";break;case 93:a.preventDefault()}this.Z.doKeyUp(); -return ia(this.Z,b,a)};z.prototype.Sn=function(a){var b=this.$a;if(null===b)return new I(0,0);var c=this.Hb,d=this.Gb,b=b.getBoundingClientRect(),c=a.clientX-c/b.width*b.left;a=a.clientY-d/b.height*b.top;return null!==this.ld?(a=new I(c,a),kb(a,this.ld),a):new I(c,a)}; -function wj(a,b,c){var d=a.$a,e=a.Hb,g=a.Gb,h=0,k=0;null!==d&&(d=d.getBoundingClientRect(),h=b.clientX-e/d.width*d.left,k=b.clientY-g/d.height*d.top);c.pe.n(h,k);null!==a.ld?(b=w.lc(h,k),a.ld.ai(b),c.ga.assign(b),w.A(b)):c.ga.n(h,k)}z.prototype.invalidateDocumentBounds=z.prototype.xc=function(){this.ri||(this.ri=!0,this.ne(!0))};function zi(a){a.Jd||mj(a);a.ri&&rj(a,a.yg());for(a=a.nm.j;a.next();)zi(a.value)} -z.prototype.redraw=z.prototype.zt=function(){this.zc||this.Jd||(this.ra(),zj(this),kj(this),this.xc(),this.lf())};z.prototype.isUpdateRequested=function(){return this.Nf};z.prototype.delayInitialization=z.prototype.ZG=function(a){void 0===a&&(a=null);var b=this.Sb,c=b.isEnabled;b.bj();b.isEnabled=!1;Mg(this);this.tf=!1;b.isEnabled=c;null!==a&&w.setTimeout(a,1)}; +z.prototype.cI=function(a){if(!this.Z.isEnabled)return!1;var b=this.Z.Qb;vj(this.Z,this.Z,a,b,!1);b.key=String.fromCharCode(a.which);b.up=!0;switch(a.which){case 8:b.key="Backspace";break;case 33:b.key="PageUp";break;case 34:b.key="PageDown";break;case 35:b.key="End";break;case 36:b.key="Home";break;case 37:b.key="Left";break;case 38:b.key="Up";break;case 39:b.key="Right";break;case 40:b.key="Down";break;case 45:b.key="Insert";break;case 46:b.key="Del";break;case 93:a.preventDefault()}this.Z.doKeyUp(); +return ia(this.Z,b,a)};z.prototype.Sn=function(a){var b=this.$a;if(null===b)return new I(0,0);var c=this.Hb,d=this.Gb,b=b.getBoundingClientRect(),c=a.clientX-c/b.width*b.left;a=a.clientY-d/b.height*b.top;return null!==this.md?(a=new I(c,a),kb(a,this.md),a):new I(c,a)}; +function wj(a,b,c){var d=a.$a,e=a.Hb,g=a.Gb,h=0,k=0;null!==d&&(d=d.getBoundingClientRect(),h=b.clientX-e/d.width*d.left,k=b.clientY-g/d.height*d.top);c.pe.n(h,k);null!==a.md?(b=w.lc(h,k),a.md.bi(b),c.ga.assign(b),w.A(b)):c.ga.n(h,k)}z.prototype.invalidateDocumentBounds=z.prototype.xc=function(){this.ri||(this.ri=!0,this.ne(!0))};function zi(a){a.Jd||mj(a);a.ri&&rj(a,a.yg());for(a=a.nm.j;a.next();)zi(a.value)} +z.prototype.redraw=z.prototype.zt=function(){this.zc||this.Jd||(this.ra(),zj(this),kj(this),this.xc(),this.lf())};z.prototype.isUpdateRequested=function(){return this.Nf};z.prototype.delayInitialization=z.prototype.aH=function(a){void 0===a&&(a=null);var b=this.Sb,c=b.isEnabled;b.bj();b.isEnabled=!1;Mg(this);this.tf=!1;b.isEnabled=c;null!==a&&w.setTimeout(a,1)}; z.prototype.requestUpdate=z.prototype.ne=function(a){void 0===a&&(a=!1);if(!0!==this.Nf&&!(this.zc||!1===a&&this.Jd)){this.Nf=!0;var b=this;requestAnimationFrame(function(){b.Nf&&b.lf()})}};z.prototype.maybeUpdate=z.prototype.lf=function(){if(!this.Pn||this.Nf)this.Pn&&(this.Pn=!1),Mg(this)};function Aj(a,b){a.zc||!a.$l||lj(a)||(b&&mj(a),oj(a,!1))} -function Mg(a){if(!a.Jd&&(a.Nf=!1,null!==a.Pb)){a.Jd=!0;var b=a.gi,c=a.tC;if(!b.ao&&0!==c.length){for(var d=c.p,e=d.length,g=0;gb;b++){var c=a.kg.j;if(null===c||0===a.kg.count)break;a.kg=new L(V);var d=a,e=a.kg;for(c.reset();c.next();){var g=c.value;!g.Sd()||g instanceof F||!g.La()||(g.Bl()?(Yh(g,Infinity,Infinity),g.Fc()):e.add(g))}for(c.reset();c.next();)g=c.value,g instanceof F&&g.La()&&Gj(d,g);for(c.reset();c.next();)g=c.value,g instanceof G&&(d=g,d.La()&&(d.Bl()?(Yh(d,Infinity,Infinity),d.Fc(),d.pt()):e.add(d)));for(c.reset();c.next();)d=c.value,d instanceof da&&d.La()&&(d.Bl()?(Yh(d,Infinity,Infinity),d.Fc()):e.add(d));u&&22===b&&w.trace("failure to validate parts")}} -function Gj(a,b){for(var c=w.mb(),d=w.mb(),e=b.Jc;e.next();){var g=e.value;g.La()&&(g instanceof F?(Hj(g)||Ij(g)||Jj(g))&&Gj(a,g):g instanceof G?g.aa==b||g.fa==b?d.push(g):c.push(g):(Yh(g,Infinity,Infinity),g.Fc()))}for(var e=c.length,h=0;hk+1&&(n=Math.max((v- -k)*E+a.Hb,n)),q+1l+1&&(A=Math.max((p-l)*E+a.Gb,A)),r+1k+1&&(n=Math.max((v-k)*E+a.Hb,n)),q+1l+1&&(A=Math.max((p-l)*E+a.Gb,A)),r+1k+1&&(a.Lj.scrollLeft=a.position.x*E));a.Kz&&a.bf&&(r+1l+1&&(a.Mj.scrollTop=a.position.y*E));h&&(a.yq=!0);m=a.Hb;c=a.Gb;a.Mj.style.height=c+"px";a.Mj.style.width=m+(a.Kk?a.Nd:0)+"px";a.Lj.style.width=m+"px";a.Lj.style.height=c+(a.Jk?a.Nd:0)+"px";a.Qy=!1;return d!==m||e!==c||a.Sb.xd?(n=a.qb,a.wt(g,n,h),!1):!0} +w.qc(e);c&&(this.Cm=1,this.lf(),ti(this,!0))}else c?(this.Cm=1,this.lf(),ti(this,!0)):this.lf();for(c=this.nm.j;c.next();)c.value.Nz()}};function zj(a){!1===a.$l&&(a.$l=!0)}function kj(a){!1===a.Nk&&(a.Nk=!0)}function Kj(a){!1!==a.yq&&(a.yq=!1,Pj(a,a.Hb,a.Gb))}function Pj(a,b,c){var d=a.$a,e=a.Ge,g=b*e,e=c*e;if(d.width!==g||d.height!==e)d.width=g,d.height=e,d.style.width=b+"px",d.style.height=c+"px",a.Yd=!0,ca(a)} +function lj(a){var b=a.$a;if(null===b)return!0;var c=a.Pb,d=a.Hb,e=a.Gb,g=a.bD.copy(),h=!1,k=a.Kk?a.Nd:0,l=a.Jk?a.Nd:0,m=c.clientWidth||d+k,c=c.clientHeight||e+l;if(m!==d+k||c!==e+l)a.Kk=!1,a.Jk=!1,l=k=0,a.Hb=m,a.Gb=c,h=a.yq=!0;a.$l=!1;if(a.Sb.jh)return h?(a.Sb.bj(),a.aH(),!1):!0;var n=a.qb,p=a.Gc,m=p.width,c=p.height,q=n.width,r=n.height,s=p.x,t=n.x,v=p.right,k=n.right+k,y=p.y,B=n.y,p=p.bottom,l=n.bottom+l,A=n="1px",E=a.scale;a.Kz&&a.af&&(n=1,s+1k+1&&(n=Math.max((v- +k)*E+a.Hb,n)),q+1l+1&&(A=Math.max((p-l)*E+a.Gb,A)),r+1k+1&&(n=Math.max((v-k)*E+a.Hb,n)),q+1l+1&&(A=Math.max((p-l)*E+a.Gb,A)),r+1k+1&&(a.Lj.scrollLeft=a.position.x*E));a.Lz&&a.bf&&(r+1l+1&&(a.Mj.scrollTop=a.position.y*E));h&&(a.yq=!0);m=a.Hb;c=a.Gb;a.Mj.style.height=c+"px";a.Mj.style.width=m+(a.Kk?a.Nd:0)+"px";a.Lj.style.width=m+"px";a.Lj.style.height=c+(a.Jk?a.Nd:0)+"px";a.Ry=!1;return d!==m||e!==c||a.Sb.jd?(n=a.qb,a.wt(g,n,h),!1):!0} z.prototype.add=z.prototype.add=function(a){w.k(a,C,z,"add:part");var b=a.h;if(b!==this){null!==b&&w.l("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+b.toString());this.rn&&(a.Pk="Tool");var c=a.hf,b=this.ql(c);null===b&&(b=this.ql(""));null===b&&w.l('Cannot add a Part when unable find a Layer named "'+c+'" and there is no default Layer');a.layer!==b&&(c=b.Yo(99999999,a,a.h===this),0<=c&&this.Lc(ve,"parts",b,null,a,null,c),b.Hc||this.xc(),a.K(Qj),c=a.jt,null!== c&&c(a,null,b))}}; z.prototype.Yo=function(a){if(a instanceof D){if(this.no.add(a),a instanceof F){var b=a.Va;null===b?this.al.add(a):b.lm.add(a);b=a.Tb;null!==b&&(b.h=this)}}else a instanceof G?this.ko.add(a):a instanceof da||this.kb.add(a);var c=this;Rj(a,function(a){Sj(c,a)});a.Wb&&a.V();b=a.data;null!==b&&(a instanceof da||(a instanceof G?this.Ek.add(b,a):this.mi.add(b,a)),Rj(a,function(a){Tj(c,a)}));!0!==Ij(a)&&!0!==Jj(a)||this.kg.add(a);Uj(a,!0,this);Vj(a)?(a.ca.J()&&this.ra(Ti(a,a.ca)),this.xc()):a.La()&&a.ca.J()&& this.ra(Ti(a,a.ca));this.ne()}; z.prototype.Oe=function(a){a.Fs();if(a instanceof D){if(this.no.remove(a),a instanceof F){var b=a.Va;null===b?this.al.remove(a):b.lm.remove(a);b=a.Tb;null!==b&&(b.h=null)}}else a instanceof G?this.ko.remove(a):a instanceof da||this.kb.remove(a);var c=this;Rj(a,function(a){Wj(c,a)});b=a.data;null!==b&&(a instanceof da||(a instanceof G?this.Ek.remove(b):this.mi.remove(b)),Rj(a,function(a){Xj(c,a)}));this.kg.remove(a);Vj(a)?(a.ca.J()&&this.ra(Ti(a,a.ca)),this.xc()):a.La()&&a.ca.J()&&this.ra(Ti(a,a.ca)); -this.ne()};z.prototype.remove=z.prototype.remove=function(a){w.k(a,C,z,"remove:part");a.cb=!1;a.kh=!1;var b=a.layer;if(null!==b&&b.h===this){a.K(Yj);a.Sm();var c=b.Oe(-1,a,!1);0<=c&&this.Lc(we,"parts",b,a,null,c,null);c=a.jt;null!==c&&c(a,b,null)}};z.prototype.removeParts=z.prototype.tA=function(a,b){if(w.isArray(a))for(var c=w.tb(a),d=0;dd&&this.xc()}; +z.prototype.addLayerBefore=z.prototype.yG=function(a,b){Zj(this,a,b);a.Mc(this);var c=this.Yb,d=c.indexOf(a);0<=d&&(c.remove(a),null!==this.$d&&this.Lc(we,"layers",this,a,null,d,null));for(var e=c.count,g=0;gd&&this.xc()}; z.prototype.addLayerAfter=function(a,b){Zj(this,a,b);a.Mc(this);var c=this.Yb,d=c.indexOf(a);0<=d&&(c.remove(a),null!==this.$d&&this.Lc(we,"layers",this,a,null,d,null));for(var e=c.count,g=0;gd&&this.xc()}; z.prototype.removeLayer=function(a){w.k(a,Te,z,"removeLayer:layer");a.h!==this&&w.l("Cannot remove a Layer from another Diagram: "+a+" of "+a.h);if(""!==a.name){var b=this.Yb,c=b.indexOf(a);if(b.remove(a)){for(b=a.kb.copy().j;b.next();){var d=b.value,e=d.hf;d.hf=e!==a.name?e:""}null!==this.$d&&this.Lc(we,"layers",this,a,null,c,null);this.ra();this.xc()}}};z.prototype.findLayer=z.prototype.ql=function(a){for(var b=this.an;b.next();){var c=b.value;if(c.name===a)return c}return null}; -z.prototype.addChangedListener=z.prototype.gz=function(a){w.g(a,"function",z,"addChangedListener:listener");null===this.kj&&(this.kj=new K("function"));this.kj.add(a)};z.prototype.removeChangedListener=z.prototype.qA=function(a){w.g(a,"function",z,"removeChangedListener:listener");null!==this.kj&&(this.kj.remove(a),0===this.kj.count&&(this.kj=null))}; -z.prototype.cw=function(a){this.lb||this.na.lE(a);a.Od!==ue&&(this.ci=!0);if(null!==this.kj){var b=this.kj,c=b.length;if(1===c)b=b.ma(0),b(a);else if(0!==c)for(var d=b.Te(),e=0;ea.lh&&(c=a.lh);a.position=new I(a.Ra.x+h.x/b-h.x/c,a.Ra.y+h.y/b- -h.y/c);a.zc=!1;a.$b=c;a.wt(d,a.qb);oj(a,!1);a.ra();zj(a)}}z.prototype.wt=function(a,b,c){void 0===c&&(c=!1);c||zj(this);kj(this);var d=this.Tb;null===d||!d.Gw||c||a.width===b.width&&a.height===b.height||d.K();d=this.Ya;!0===this.bm&&d instanceof zf&&(this.Q.ga=this.JF(this.Q.pe),d.doMouseMove());this.Mz(a,b);Cj(this);this.Ga("ViewportBoundsChanged",c?w.zh:null,a)}; -function Cj(a,b){void 0===b&&(b=null);var c=a.hd;if(null!==c&&c.visible){for(var d=w.Ml(),e=1,g=1,h=c.ua.p,k=h.length,l=0;ln||(ok(m.Kb)?g=g*n/O.dE(g,n):e=e*n/O.dE(e,n))}h=c.uw;d.n(g*h.width,e*h.height);h=g=l=k=0;if(null!==b)k=b.width,l=b.height,g=b.x,h=b.y;else{e=w.eg();g=a.qb;e.n(g.x,g.y,g.width,g.height);for(h=a.nm.j;h.next();)g=h.value.qb,g.J()&&Ab(e,g.x,g.y,g.width,g.height);k=e.width;l=e.height;g=e.x;h=e.y;if(!e.J())return}c.width=k+2*d.width;c.height=l+2*d.height; -e=w.O();O.Rs(g,h,0,0,d.width,d.height,e);e.offset(-d.width,-d.height);w.ek(d);c.W.location=e;w.A(e)}}z.prototype.clearSelection=z.prototype.ew=function(){var a=0a.lh&&(c=a.lh);a.position=new I(a.Ra.x+h.x/b-h.x/c,a.Ra.y+h.y/b- +h.y/c);a.zc=!1;a.$b=c;a.wt(d,a.qb);oj(a,!1);a.ra();zj(a)}}z.prototype.wt=function(a,b,c){void 0===c&&(c=!1);c||zj(this);kj(this);var d=this.Tb;null===d||!d.Hw||c||a.width===b.width&&a.height===b.height||d.K();d=this.Ya;!0===this.bm&&d instanceof zf&&(this.Q.ga=this.LF(this.Q.pe),d.doMouseMove());this.Nz(a,b);Cj(this);this.Ga("ViewportBoundsChanged",c?w.zh:null,a)}; +function Cj(a,b){void 0===b&&(b=null);var c=a.hd;if(null!==c&&c.visible){for(var d=w.Ml(),e=1,g=1,h=c.ua.p,k=h.length,l=0;ln||(ok(m.Kb)?g=g*n/O.eE(g,n):e=e*n/O.eE(e,n))}h=c.vw;d.n(g*h.width,e*h.height);h=g=l=k=0;if(null!==b)k=b.width,l=b.height,g=b.x,h=b.y;else{e=w.eg();g=a.qb;e.n(g.x,g.y,g.width,g.height);for(h=a.nm.j;h.next();)g=h.value.qb,g.J()&&Ab(e,g.x,g.y,g.width,g.height);k=e.width;l=e.height;g=e.x;h=e.y;if(!e.J())return}c.width=k+2*d.width;c.height=l+2*d.height; +e=w.O();O.Rs(g,h,0,0,d.width,d.height,e);e.offset(-d.width,-d.height);w.ek(d);c.W.location=e;w.A(e)}}z.prototype.clearSelection=z.prototype.fw=function(){var a=0a&&w.ja(a,">= zero",z,"linkSpacing"),this.xj=a,this.i("linkSpacing",b,a))});w.w(z,{an:"layers"},function(){return this.Yb.j}); +w.defineProperty(z,{pJ:"validCycle"},function(){return this.Nv},function(a){var b=this.Nv;b!==a&&(w.Ca(a,z,z,"validCycle"),this.Nv=a,this.i("validCycle",b,a))});w.defineProperty(z,{Lw:"linkSpacing"},function(){return this.xj},function(a){var b=this.xj;b!==a&&(w.o(a,z,"linkSpacing"),0>a&&w.ja(a,">= zero",z,"linkSpacing"),this.xj=a,this.i("linkSpacing",b,a))});w.w(z,{an:"layers"},function(){return this.Yb.j}); w.defineProperty(z,{Bf:"isModelReadOnly"},function(){var a=this.$d;return null===a?!1:a.xb},function(a){var b=this.$d;null!==b&&(b.xb=a)});w.defineProperty(z,{xb:"isReadOnly"},function(){return this.Ok},function(a){var b=this.Ok;b!==a&&(w.g(a,"boolean",z,"isReadOnly"),this.Ok=a,this.i("isReadOnly",b,a))});w.defineProperty(z,{isEnabled:"isEnabled"},function(){return this.Xe},function(a){var b=this.Xe;b!==a&&(w.g(a,"boolean",z,"isEnabled"),this.Xe=a,this.i("isEnabled",b,a))}); -w.defineProperty(z,{jz:"allowClipboard"},function(){return this.$t},function(a){var b=this.$t;b!==a&&(w.g(a,"boolean",z,"allowClipboard"),this.$t=a,this.i("allowClipboard",b,a))});w.defineProperty(z,{Zj:"allowCopy"},function(){return this.pk},function(a){var b=this.pk;b!==a&&(w.g(a,"boolean",z,"allowCopy"),this.pk=a,this.i("allowCopy",b,a))}); -w.defineProperty(z,{Hm:"allowDelete"},function(){return this.qk},function(a){var b=this.qk;b!==a&&(w.g(a,"boolean",z,"allowDelete"),this.qk=a,this.i("allowDelete",b,a))});w.defineProperty(z,{Uv:"allowDragOut"},function(){return this.au},function(a){var b=this.au;b!==a&&(w.g(a,"boolean",z,"allowDragOut"),this.au=a,this.i("allowDragOut",b,a))}); -w.defineProperty(z,{kD:"allowDrop"},function(){return this.bu},function(a){var b=this.bu;b!==a&&(w.g(a,"boolean",z,"allowDrop"),this.bu=a,this.i("allowDrop",b,a))});w.defineProperty(z,{Yv:"allowTextEdit"},function(){return this.zk},function(a){var b=this.zk;b!==a&&(w.g(a,"boolean",z,"allowTextEdit"),this.zk=a,this.i("allowTextEdit",b,a))}); -w.defineProperty(z,{Vv:"allowGroup"},function(){return this.rk},function(a){var b=this.rk;b!==a&&(w.g(a,"boolean",z,"allowGroup"),this.rk=a,this.i("allowGroup",b,a))});w.defineProperty(z,{Zv:"allowUngroup"},function(){return this.Ak},function(a){var b=this.Ak;b!==a&&(w.g(a,"boolean",z,"allowUngroup"),this.Ak=a,this.i("allowUngroup",b,a))}); +w.defineProperty(z,{kz:"allowClipboard"},function(){return this.$t},function(a){var b=this.$t;b!==a&&(w.g(a,"boolean",z,"allowClipboard"),this.$t=a,this.i("allowClipboard",b,a))});w.defineProperty(z,{Zj:"allowCopy"},function(){return this.pk},function(a){var b=this.pk;b!==a&&(w.g(a,"boolean",z,"allowCopy"),this.pk=a,this.i("allowCopy",b,a))}); +w.defineProperty(z,{Hm:"allowDelete"},function(){return this.qk},function(a){var b=this.qk;b!==a&&(w.g(a,"boolean",z,"allowDelete"),this.qk=a,this.i("allowDelete",b,a))});w.defineProperty(z,{Vv:"allowDragOut"},function(){return this.au},function(a){var b=this.au;b!==a&&(w.g(a,"boolean",z,"allowDragOut"),this.au=a,this.i("allowDragOut",b,a))}); +w.defineProperty(z,{lD:"allowDrop"},function(){return this.bu},function(a){var b=this.bu;b!==a&&(w.g(a,"boolean",z,"allowDrop"),this.bu=a,this.i("allowDrop",b,a))});w.defineProperty(z,{Zv:"allowTextEdit"},function(){return this.zk},function(a){var b=this.zk;b!==a&&(w.g(a,"boolean",z,"allowTextEdit"),this.zk=a,this.i("allowTextEdit",b,a))}); +w.defineProperty(z,{Wv:"allowGroup"},function(){return this.rk},function(a){var b=this.rk;b!==a&&(w.g(a,"boolean",z,"allowGroup"),this.rk=a,this.i("allowGroup",b,a))});w.defineProperty(z,{$v:"allowUngroup"},function(){return this.Ak},function(a){var b=this.Ak;b!==a&&(w.g(a,"boolean",z,"allowUngroup"),this.Ak=a,this.i("allowUngroup",b,a))}); w.defineProperty(z,{Eo:"allowInsert"},function(){return this.du},function(a){var b=this.du;b!==a&&(w.g(a,"boolean",z,"allowInsert"),this.du=a,this.i("allowInsert",b,a))});w.defineProperty(z,{zs:"allowLink"},function(){return this.sk},function(a){var b=this.sk;b!==a&&(w.g(a,"boolean",z,"allowLink"),this.sk=a,this.i("allowLink",b,a))}); w.defineProperty(z,{Im:"allowRelink"},function(){return this.uk},function(a){var b=this.uk;b!==a&&(w.g(a,"boolean",z,"allowRelink"),this.uk=a,this.i("allowRelink",b,a))});w.defineProperty(z,{fl:"allowMove"},function(){return this.tk},function(a){var b=this.tk;b!==a&&(w.g(a,"boolean",z,"allowMove"),this.tk=a,this.i("allowMove",b,a))}); -w.defineProperty(z,{Wv:"allowReshape"},function(){return this.vk},function(a){var b=this.vk;b!==a&&(w.g(a,"boolean",z,"allowReshape"),this.vk=a,this.i("allowReshape",b,a))});w.defineProperty(z,{As:"allowResize"},function(){return this.wk},function(a){var b=this.wk;b!==a&&(w.g(a,"boolean",z,"allowResize"),this.wk=a,this.i("allowResize",b,a))}); -w.defineProperty(z,{Xv:"allowRotate"},function(){return this.xk},function(a){var b=this.xk;b!==a&&(w.g(a,"boolean",z,"allowRotate"),this.xk=a,this.i("allowRotate",b,a))});w.defineProperty(z,{vf:"allowSelect"},function(){return this.yk},function(a){var b=this.yk;b!==a&&(w.g(a,"boolean",z,"allowSelect"),this.yk=a,this.i("allowSelect",b,a))}); -w.defineProperty(z,{lD:"allowUndo"},function(){return this.eu},function(a){var b=this.eu;b!==a&&(w.g(a,"boolean",z,"allowUndo"),this.eu=a,this.i("allowUndo",b,a))});w.defineProperty(z,{$v:"allowZoom"},function(){return this.gu},function(a){var b=this.gu;b!==a&&(w.g(a,"boolean",z,"allowZoom"),this.gu=a,this.i("allowZoom",b,a))}); -w.defineProperty(z,{Kz:"hasVerticalScrollbar"},function(){return this.Lu},function(a){var b=this.Lu;b!==a&&(w.g(a,"boolean",z,"hasVerticalScrollbar"),this.Lu=a,zj(this),this.ra(),this.i("hasVerticalScrollbar",b,a),oj(this,!1))});w.defineProperty(z,{Jz:"hasHorizontalScrollbar"},function(){return this.Ku},function(a){var b=this.Ku;b!==a&&(w.g(a,"boolean",z,"hasHorizontalScrollbar"),this.Ku=a,zj(this),this.ra(),this.i("hasHorizontalScrollbar",b,a),oj(this,!1))}); +w.defineProperty(z,{Xv:"allowReshape"},function(){return this.vk},function(a){var b=this.vk;b!==a&&(w.g(a,"boolean",z,"allowReshape"),this.vk=a,this.i("allowReshape",b,a))});w.defineProperty(z,{As:"allowResize"},function(){return this.wk},function(a){var b=this.wk;b!==a&&(w.g(a,"boolean",z,"allowResize"),this.wk=a,this.i("allowResize",b,a))}); +w.defineProperty(z,{Yv:"allowRotate"},function(){return this.xk},function(a){var b=this.xk;b!==a&&(w.g(a,"boolean",z,"allowRotate"),this.xk=a,this.i("allowRotate",b,a))});w.defineProperty(z,{vf:"allowSelect"},function(){return this.yk},function(a){var b=this.yk;b!==a&&(w.g(a,"boolean",z,"allowSelect"),this.yk=a,this.i("allowSelect",b,a))}); +w.defineProperty(z,{mD:"allowUndo"},function(){return this.eu},function(a){var b=this.eu;b!==a&&(w.g(a,"boolean",z,"allowUndo"),this.eu=a,this.i("allowUndo",b,a))});w.defineProperty(z,{aw:"allowZoom"},function(){return this.gu},function(a){var b=this.gu;b!==a&&(w.g(a,"boolean",z,"allowZoom"),this.gu=a,this.i("allowZoom",b,a))}); +w.defineProperty(z,{Lz:"hasVerticalScrollbar"},function(){return this.Lu},function(a){var b=this.Lu;b!==a&&(w.g(a,"boolean",z,"hasVerticalScrollbar"),this.Lu=a,zj(this),this.ra(),this.i("hasVerticalScrollbar",b,a),oj(this,!1))});w.defineProperty(z,{Kz:"hasHorizontalScrollbar"},function(){return this.Ku},function(a){var b=this.Ku;b!==a&&(w.g(a,"boolean",z,"hasHorizontalScrollbar"),this.Ku=a,zj(this),this.ra(),this.i("hasHorizontalScrollbar",b,a),oj(this,!1))}); w.defineProperty(z,{af:"allowHorizontalScroll"},function(){return this.cu},function(a){var b=this.cu;b!==a&&(w.g(a,"boolean",z,"allowHorizontalScroll"),this.cu=a,this.i("allowHorizontalScroll",b,a),oj(this,!1))});w.defineProperty(z,{bf:"allowVerticalScroll"},function(){return this.fu},function(a){var b=this.fu;b!==a&&(w.g(a,"boolean",z,"allowVerticalScroll"),this.fu=a,this.i("allowVerticalScroll",b,a),oj(this,!1))}); w.defineProperty(z,{Ft:"scrollHorizontalLineChange"},function(){return this.uv},function(a){var b=this.uv;b!==a&&(w.g(a,"number",z,"scrollHorizontalLineChange"),0>a&&w.ja(a,">= 0",z,"scrollHorizontalLineChange"),this.uv=a,this.i("scrollHorizontalLineChange",b,a))}); w.defineProperty(z,{Gt:"scrollVerticalLineChange"},function(){return this.vv},function(a){var b=this.vv;b!==a&&(w.g(a,"number",z,"scrollVerticalLineChange"),0>a&&w.ja(a,">= 0",z,"scrollVerticalLineChange"),this.vv=a,this.i("scrollVerticalLineChange",b,a))});w.defineProperty(z,{Q:"lastInput"},function(){return this.Qb},function(a){u&&w.k(a,he,z,"lastInput");this.Qb=a});w.defineProperty(z,{Cc:"firstInput"},function(){return this.Gk},function(a){u&&w.k(a,he,z,"firstInput");this.Gk=a}); -w.defineProperty(z,{gc:"currentCursor"},function(){return this.Qx},function(a){""===a&&(a=this.iq);this.Qx!==a&&(w.g(a,"string",z,"currentCursor"),null!==this.$a&&(this.Qx=a,this.$a.style.cursor=a,this.Pb.style.cursor=a))});w.defineProperty(z,{UJ:"defaultCursor"},function(){return this.iq},function(a){""===a&&(a="auto");var b=this.iq;b!==a&&(w.g(a,"string",z,"defaultCursor"),this.iq=a,this.i("defaultCursor",b,a))}); -w.defineProperty(z,{mK:"hasGestureZoom"},function(){return this.Un},function(a){var b=this.Un;b!==a&&(w.g(a,"boolean",z,"hasGestureZoom"),this.Un=a,this.i("hasGestureZoom",b,a))});w.defineProperty(z,{click:"click"},function(){return this.ii},function(a){var b=this.ii;b!==a&&(null!==a&&w.g(a,"function",z,"click"),this.ii=a,this.i("click",b,a))}); -w.defineProperty(z,{Os:"doubleClick"},function(){return this.pi},function(a){var b=this.pi;b!==a&&(null!==a&&w.g(a,"function",z,"doubleClick"),this.pi=a,this.i("doubleClick",b,a))});w.defineProperty(z,{qz:"contextClick"},function(){return this.ki},function(a){var b=this.ki;b!==a&&(null!==a&&w.g(a,"function",z,"contextClick"),this.ki=a,this.i("contextClick",b,a))}); -w.defineProperty(z,{cA:"mouseOver"},function(){return this.zi},function(a){var b=this.zi;b!==a&&(null!==a&&w.g(a,"function",z,"mouseOver"),this.zi=a,this.i("mouseOver",b,a))});w.defineProperty(z,{bA:"mouseHover"},function(){return this.yi},function(a){var b=this.yi;b!==a&&(null!==a&&w.g(a,"function",z,"mouseHover"),this.yi=a,this.i("mouseHover",b,a))}); -w.defineProperty(z,{aA:"mouseHold"},function(){return this.xi},function(a){var b=this.xi;b!==a&&(null!==a&&w.g(a,"function",z,"mouseHold"),this.xi=a,this.i("mouseHold",b,a))});w.defineProperty(z,{tI:"mouseDragOver"},function(){return this.hv},function(a){var b=this.hv;b!==a&&(null!==a&&w.g(a,"function",z,"mouseDragOver"),this.hv=a,this.i("mouseDragOver",b,a))}); -w.defineProperty(z,{$z:"mouseDrop"},function(){return this.wi},function(a){var b=this.wi;b!==a&&(null!==a&&w.g(a,"function",z,"mouseDrop"),this.wi=a,this.i("mouseDrop",b,a))});w.defineProperty(z,{IA:"toolTip"},function(){return this.Gi},function(a){var b=this.Gi;b!==a&&(null!==a&&w.k(a,da,z,"toolTip"),this.Gi=a,this.i("toolTip",b,a))}); -w.defineProperty(z,{contextMenu:"contextMenu"},function(){return this.li},function(a){var b=this.li;b!==a&&(null!==a&&w.k(a,da,z,"contextMenu"),this.li=a,this.i("contextMenu",b,a))});w.defineProperty(z,{Jb:"commandHandler"},function(){return this.Hx},function(a){var b=this.Hx;b!==a&&(w.k(a,za,z,"commandHandler"),null!==a.h&&w.l("Cannot share CommandHandlers between Diagrams: "+a.toString()),null!==b&&b.Mc(null),this.Hx=a,a.Mc(this))}); -w.defineProperty(z,{zb:"toolManager"},function(){return this.cz},function(a){var b=this.cz;b!==a&&(w.k(a,zf,z,"toolManager"),null!==a.h&&w.l("Cannot share ToolManagers between Diagrams: "+a.toString()),null!==b&&b.Mc(null),this.cz=a,a.Mc(this))});w.defineProperty(z,{xz:"defaultTool"},function(){return this.Wx},function(a){var b=this.Wx;b!==a&&(w.k(a,Ue,z,"defaultTool"),this.Wx=a,this.Ya===b&&(this.Ya=a))}); -w.defineProperty(z,{Ya:"currentTool"},function(){return this.Sx},function(a){var b=this.Sx;if(null!==b)for(b.sa&&b.doDeactivate(),b.cancelWaitAfter(),b.doStop(),b=this.nm.j;b.next();)b.value.ra();null===a&&(a=this.xz);null!==a&&(w.k(a,Ue,z,"currentTool"),this.Sx=a,a.Mc(this),a.doStart())});w.w(z,{selection:"selection"},function(){return this.yv}); -w.defineProperty(z,{lI:"maxSelectionCount"},function(){return this.cv},function(a){var b=this.cv;if(b!==a)if(w.g(a,"number",z,"maxSelectionCount"),0<=a&&!isNaN(a)){if(this.cv=a,this.i("maxSelectionCount",b,a),!this.na.ob&&(a=this.selection.count-a,0= 0",z,"maxSelectionCount")}); -w.defineProperty(z,{vI:"nodeSelectionAdornmentTemplate"},function(){return this.jv},function(a){var b=this.jv;b!==a&&(w.k(a,da,z,"nodeSelectionAdornmentTemplate"),this.jv=a,this.i("nodeSelectionAdornmentTemplate",b,a))});w.defineProperty(z,{DH:"groupSelectionAdornmentTemplate"},function(){return this.Hu},function(a){var b=this.Hu;b!==a&&(w.k(a,da,z,"groupSelectionAdornmentTemplate"),this.Hu=a,this.i("groupSelectionAdornmentTemplate",b,a))}); -w.defineProperty(z,{hI:"linkSelectionAdornmentTemplate"},function(){return this.Yu},function(a){var b=this.Yu;b!==a&&(w.k(a,da,z,"linkSelectionAdornmentTemplate"),this.Yu=a,this.i("linkSelectionAdornmentTemplate",b,a))});w.w(z,{ww:"highlighteds"},function(){return this.Mu}); -w.defineProperty(z,{ci:"isModified"},function(){var a=this.na;return a.isEnabled?null!==a.Si?!0:this.wy&&this.Ug!==a.Xi:this.wy},function(a){if(this.wy!==a){w.g(a,"boolean",z,"isModified");this.wy=a;var b=this.na;!a&&b.isEnabled&&(this.Ug=b.Xi);a||pk(this)}});function pk(a){var b=a.ci;a.bD!==b&&(a.bD=b,a.Ga("Modified"))} -w.defineProperty(z,{ha:"model"},function(){return this.$d},function(a){var b=this.$d;if(b!==a){w.k(a,M,z,"model");this.Ya.doCancel();null!==b&&b.na!==a.na&&b.na.uE&&w.l("Do not replace a Diagram.model while a transaction is in progress.");this.Sb.bj();this.ew();this.tf=!1;this.Pn=!0;this.Ug=-2;this.Nf=!1;var c=this.Jd;this.Jd=!0;this.Sb.Fl();null!==b&&(b.qA(this.eC),b instanceof X&&qk(this,b.hk),qk(this,b.ph));this.$d=a;a.gz(this.dC);rk(this,a.ph);a instanceof X&&sk(this,a.hk);a.qA(this.dC);a.gz(this.eC); -this.Jd=c;this.zc||this.ra();null!==b&&(a.na.isEnabled=b.na.isEnabled)}});w.defineProperty(z,{Ta:null},function(){return this.XB},function(a){this.XB=a}); -function Zi(a,b){if(b.ha===a.ha){var c=b.Od,d=b.propertyName;if(c===ue&&"S"===d[0])if("StartingFirstTransaction"===d)c=a.zb,c.mf.each(function(b){b.Mc(a)}),c.Yf.each(function(b){b.Mc(a)}),c.Zf.each(function(b){b.Mc(a)}),a.Jd||a.tf||(a.xu=!0,a.Pn&&(a.Nf=!0),a.gi.Fl());else if("StartingUndo"===d||"StartingRedo"===d){var e=a.Sb;e.jh&&!a.lb&&e.bj();a.Ga("ChangingSelection")}else"StartedTransaction"===d&&(e=a.Sb,e.jh&&!a.lb&&e.bj(),a.Uu&&e.Fl());else if(a.Ta){a.Ta=!1;try{var g=b.Xf;if(""!==g)if(c===te){if("linkFromKey"=== -g){var h=b.object,k=a.Bg(h);if(null!==k){var l=b.newValue,m=a.ff(l);k.aa=m}}else if("linkToKey"===g)h=b.object,k=a.Bg(h),null!==k&&(l=b.newValue,m=a.ff(l),k.fa=m);else if("linkFromPortId"===g){if(h=b.object,k=a.Bg(h),null!==k){var n=b.newValue;"string"===typeof n&&(k.Sf=n)}}else if("linkToPortId"===g)h=b.object,k=a.Bg(h),null!==k&&(n=b.newValue,"string"===typeof n&&(k.Ng=n));else if("nodeGroupKey"===g){var h=b.object,p=a.$h(h);if(null!==p){var q=b.newValue;if(void 0!==q){var r=a.ff(q);p.Va=r instanceof -F?r:null}else p.Va=null}}else if("linkLabelKeys"===g){if(h=b.object,k=a.Bg(h),null!==k){var s=b.oldValue,t=b.newValue;if(w.isArray(s))for(var v=w.tb(s),y=0;yl)){var m=l;zk(k)&&m++;k.Oe(m);Ak(k,m,l)}}}}function Tj(a,b){var c=b.ti;if(w.isArray(c)){var d=a.em.ya(c);if(null===d)d=[],d.push(b),a.em.add(c,d);else{for(c=0;c= 0",z,"maxSelectionCount")}); +w.defineProperty(z,{xI:"nodeSelectionAdornmentTemplate"},function(){return this.jv},function(a){var b=this.jv;b!==a&&(w.k(a,da,z,"nodeSelectionAdornmentTemplate"),this.jv=a,this.i("nodeSelectionAdornmentTemplate",b,a))});w.defineProperty(z,{FH:"groupSelectionAdornmentTemplate"},function(){return this.Hu},function(a){var b=this.Hu;b!==a&&(w.k(a,da,z,"groupSelectionAdornmentTemplate"),this.Hu=a,this.i("groupSelectionAdornmentTemplate",b,a))}); +w.defineProperty(z,{jI:"linkSelectionAdornmentTemplate"},function(){return this.Yu},function(a){var b=this.Yu;b!==a&&(w.k(a,da,z,"linkSelectionAdornmentTemplate"),this.Yu=a,this.i("linkSelectionAdornmentTemplate",b,a))});w.w(z,{xw:"highlighteds"},function(){return this.Mu}); +w.defineProperty(z,{di:"isModified"},function(){var a=this.na;return a.isEnabled?null!==a.Si?!0:this.xy&&this.Ug!==a.Xi:this.xy},function(a){if(this.xy!==a){w.g(a,"boolean",z,"isModified");this.xy=a;var b=this.na;!a&&b.isEnabled&&(this.Ug=b.Xi);a||pk(this)}});function pk(a){var b=a.di;a.cD!==b&&(a.cD=b,a.Ga("Modified"))} +w.defineProperty(z,{ha:"model"},function(){return this.$d},function(a){var b=this.$d;if(b!==a){w.k(a,M,z,"model");this.Ya.doCancel();null!==b&&b.na!==a.na&&b.na.wE&&w.l("Do not replace a Diagram.model while a transaction is in progress.");this.Sb.bj();this.fw();this.tf=!1;this.Pn=!0;this.Ug=-2;this.Nf=!1;var c=this.Jd;this.Jd=!0;this.Sb.Fl();null!==b&&(b.rA(this.fC),b instanceof X&&qk(this,b.hk),qk(this,b.ph));this.$d=a;a.hz(this.eC);rk(this,a.ph);a instanceof X&&sk(this,a.hk);a.rA(this.eC);a.hz(this.fC); +this.Jd=c;this.zc||this.ra();null!==b&&(a.na.isEnabled=b.na.isEnabled)}});w.defineProperty(z,{Ta:null},function(){return this.YB},function(a){this.YB=a}); +function Zi(a,b){if(b.ha===a.ha){var c=b.Od,d=b.propertyName;if(c===ue&&"S"===d[0])if("StartingFirstTransaction"===d)c=a.zb,c.mf.each(function(b){b.Mc(a)}),c.Yf.each(function(b){b.Mc(a)}),c.Zf.each(function(b){b.Mc(a)}),a.Jd||a.tf||(a.xu=!0,a.Pn&&(a.Nf=!0),a.Ah.Fl());else if("StartingUndo"===d||"StartingRedo"===d){var e=a.Sb;e.jh&&!a.lb&&e.bj();a.Ga("ChangingSelection")}else"StartedTransaction"===d&&(e=a.Sb,e.jh&&!a.lb&&e.bj(),a.Uu&&e.Fl());else if(a.Ta){a.Ta=!1;try{var g=b.Xf;if(""!==g)if(c===te){if("linkFromKey"=== +g){var h=b.object,k=a.Bg(h);if(null!==k){var l=b.newValue,m=a.ff(l);k.aa=m}}else if("linkToKey"===g)h=b.object,k=a.Bg(h),null!==k&&(l=b.newValue,m=a.ff(l),k.fa=m);else if("linkFromPortId"===g){if(h=b.object,k=a.Bg(h),null!==k){var n=b.newValue;"string"===typeof n&&(k.Sf=n)}}else if("linkToPortId"===g)h=b.object,k=a.Bg(h),null!==k&&(n=b.newValue,"string"===typeof n&&(k.Ng=n));else if("nodeGroupKey"===g){var h=b.object,p=a.ai(h);if(null!==p){var q=b.newValue;if(void 0!==q){var r=a.ff(q);p.Va=r instanceof +F?r:null}else p.Va=null}}else if("linkLabelKeys"===g){if(h=b.object,k=a.Bg(h),null!==k){var s=b.oldValue,t=b.newValue;if(w.isArray(s))for(var v=w.tb(s),y=0;yl)){var m=l;zk(k)&&m++;k.Oe(m);Ak(k,m,l)}}}}function Tj(a,b){var c=b.ti;if(w.isArray(c)){var d=a.em.ya(c);if(null===d)d=[],d.push(b),a.em.add(c,d);else{for(c=0;c=g.length)return!1;for(var h=0;hthis.scale&&(this.scale=a)):w.ja(a,"> 0",z,"minScale"))}); -w.defineProperty(z,{lh:"maxScale"},function(){return this.bv},function(a){w.o(a,z,"maxScale");var b=this.bv;b!==a&&(0 0",z,"maxScale"))});w.defineProperty(z,{nn:"zoomPoint"},function(){return this.Qv},function(a){this.Qv.N(a)||(w.k(a,I,z,"zoomPoint"),this.Qv=a=a.da())}); -w.defineProperty(z,{pz:"contentAlignment"},function(){return this.zn},function(a){var b=this.zn;b.N(a)||(w.k(a,Q,z,"contentAlignment"),this.zn=a=a.da(),this.i("contentAlignment",b,a),oj(this,!1))});w.defineProperty(z,{pK:"initialContentAlignment"},function(){return this.Wn},function(a){var b=this.Wn;b.N(a)||(w.k(a,Q,z,"initialContentAlignment"),this.Wn=a=a.da(),this.i("initialContentAlignment",b,a))}); -w.defineProperty(z,{padding:"padding"},function(){return this.Ze},function(a){"number"===typeof a?a=new vb(a):w.k(a,vb,z,"padding");var b=this.Ze;b.N(a)||(this.Ze=a=a.da(),this.xc(),this.i("padding",b,a))});w.w(z,{Ig:"nodes"},function(){return this.no.j});w.w(z,{links:"links"},function(){return this.ko.j});w.w(z,{di:"parts"},function(){return this.kb.j}); +w.defineProperty(z,{qK:"initialAutoScale"},function(){return this.Mk},function(a){var b=this.Mk;b!==a&&(w.Ca(a,z,z,"initialAutoScale"),this.Mk=a,this.i("initialAutoScale",b,a))});w.defineProperty(z,{NH:"initialViewportSpot"},function(){return this.Qu},function(a){var b=this.Qu;b!==a&&(w.k(a,Q,z,"initialViewportSpot"),a.rd()||w.l("initialViewportSpot must be a real Spot: "+a),this.Qu=a,this.i("initialViewportSpot",b,a))}); +w.defineProperty(z,{KH:"initialDocumentSpot"},function(){return this.Nu},function(a){var b=this.Nu;b!==a&&(w.k(a,Q,z,"initialDocumentSpot"),a.rd()||w.l("initialViewportSpot must be a real Spot: "+a),this.Nu=a,this.i("initialDocumentSpot",b,a))});w.defineProperty(z,{mh:"minScale"},function(){return this.ev},function(a){w.o(a,z,"minScale");var b=this.ev;b!==a&&(0this.scale&&(this.scale=a)):w.ja(a,"> 0",z,"minScale"))}); +w.defineProperty(z,{lh:"maxScale"},function(){return this.bv},function(a){w.o(a,z,"maxScale");var b=this.bv;b!==a&&(0 0",z,"maxScale"))});w.defineProperty(z,{nn:"zoomPoint"},function(){return this.Rv},function(a){this.Rv.N(a)||(w.k(a,I,z,"zoomPoint"),this.Rv=a=a.da())}); +w.defineProperty(z,{qz:"contentAlignment"},function(){return this.zn},function(a){var b=this.zn;b.N(a)||(w.k(a,Q,z,"contentAlignment"),this.zn=a=a.da(),this.i("contentAlignment",b,a),oj(this,!1))});w.defineProperty(z,{rK:"initialContentAlignment"},function(){return this.Wn},function(a){var b=this.Wn;b.N(a)||(w.k(a,Q,z,"initialContentAlignment"),this.Wn=a=a.da(),this.i("initialContentAlignment",b,a))}); +w.defineProperty(z,{padding:"padding"},function(){return this.Ze},function(a){"number"===typeof a?a=new vb(a):w.k(a,vb,z,"padding");var b=this.Ze;b.N(a)||(this.Ze=a=a.da(),this.xc(),this.i("padding",b,a))});w.w(z,{Ig:"nodes"},function(){return this.no.j});w.w(z,{links:"links"},function(){return this.ko.j});w.w(z,{ei:"parts"},function(){return this.kb.j}); z.prototype.findTopLevelNodesAndLinks=function(){for(var a=new L(C),b=this.no.j;b.next();){var c=b.value;c.bp&&a.add(c)}for(b=this.ko.j;b.next();)c=b.value,c.bp&&a.add(c);return a.j};z.prototype.findTopLevelGroups=function(){return this.al.j};w.defineProperty(z,{Tb:"layout"},function(){return this.Zd},function(a){var b=this.Zd;b!==a&&(w.k(a,Ve,z,"layout"),null!==b&&(b.h=null,b.group=null),this.Zd=a,a.h=this,a.group=null,this.hu=!0,this.i("layout",b,a),this.ne())}); z.prototype.layoutDiagram=function(a){mj(this);a&&Fk(this,!0);Ej(this,!1)};function Fk(a,b){for(var c=a.al.j;c.next();)Nk(a,c.value,b);null!==a.Tb&&(b?a.Tb.Cf=!1:a.Tb.K())}function Nk(a,b,c){if(null!==b){for(var d=b.lm.j;d.next();)Nk(a,d.value,c);null!==b.Tb&&(c?b.Tb.Cf=!1:b.Tb.K())}} -function Ej(a,b){if(!a.Xx){var c=a.Tb,d=a.Uu;a.Uu=!0;var e=a.Ta;a.Ta=!0;try{a.ec("Layout");for(var g=a.al.j;g.next();)Ok(a,g.value,b);c.Cf||b&&!c.vE||(c.doLayout(a),mj(a),c.Cf=!0)}finally{a.fe("Layout"),a.hu=!c.Cf,a.Uu=d,a.Ta=e}}}function Ok(a,b,c){if(null!==b){for(var d=b.lm.j;d.next();)Ok(a,d.value,c);d=b.Tb;null===d||d.Cf||c&&!d.vE||(b.Iy=!b.location.J(),d.doLayout(b),b.K(Pk),d.Cf=!0,Gj(a,b))}} -w.defineProperty(z,{Bd:"isTreePathToChildren"},function(){return this.Tu},function(a){var b=this.Tu;if(b!==a&&(w.g(a,"boolean",z,"isTreePathToChildren"),this.Tu=a,this.i("isTreePathToChildren",b,a),!this.na.ob))for(a=this.Ig;a.next();)Qk(a.value)});z.prototype.findTreeRoots=function(){for(var a=new K(D),b=this.Ig;b.next();){var c=b.value;c.bp&&null===c.Ts()&&a.add(c)}return a.j};w.defineProperty(z,{ve:null},function(){return this.LB},function(a){this.LB=a}); +function Ej(a,b){if(!a.Yx){var c=a.Tb,d=a.Uu;a.Uu=!0;var e=a.Ta;a.Ta=!0;try{a.ec("Layout");for(var g=a.al.j;g.next();)Ok(a,g.value,b);c.Cf||b&&!c.xE||(c.doLayout(a),mj(a),c.Cf=!0)}finally{a.fe("Layout"),a.hu=!c.Cf,a.Uu=d,a.Ta=e}}}function Ok(a,b,c){if(null!==b){for(var d=b.lm.j;d.next();)Ok(a,d.value,c);d=b.Tb;null===d||d.Cf||c&&!d.xE||(b.Jy=!b.location.J(),d.doLayout(b),b.K(Pk),d.Cf=!0,Gj(a,b))}} +w.defineProperty(z,{Bd:"isTreePathToChildren"},function(){return this.Tu},function(a){var b=this.Tu;if(b!==a&&(w.g(a,"boolean",z,"isTreePathToChildren"),this.Tu=a,this.i("isTreePathToChildren",b,a),!this.na.ob))for(a=this.Ig;a.next();)Qk(a.value)});z.prototype.findTreeRoots=function(){for(var a=new K(D),b=this.Ig;b.next();){var c=b.value;c.bp&&null===c.Ts()&&a.add(c)}return a.j};w.defineProperty(z,{ve:null},function(){return this.MB},function(a){this.MB=a}); function Xi(a){function b(a){var b=a.toLowerCase(),h=new K("function");c.add(a,h);c.add(b,h);d.add(a,a);d.add(b,a)}var c=new ta("string",K),d=new ta("string","string");b("AnimationStarting");b("AnimationFinished");b("BackgroundSingleClicked");b("BackgroundDoubleClicked");b("BackgroundContextClicked");b("ClipboardChanged");b("ClipboardPasted");b("DocumentBoundsChanged");b("ExternalObjectsDropped");b("InitialLayoutCompleted");b("LayoutCompleted");b("LinkDrawn");b("LinkRelinked");b("LinkReshaped");b("Modified"); -b("ObjectSingleClicked");b("ObjectDoubleClicked");b("ObjectContextClicked");b("PartCreated");b("PartResized");b("PartRotated");b("SelectionMoved");b("SelectionCopied");b("SelectionDeleting");b("SelectionDeleted");b("SelectionGrouped");b("SelectionUngrouped");b("ChangingSelection");b("ChangedSelection");b("SubGraphCollapsed");b("SubGraphExpanded");b("TextEdited");b("TreeCollapsed");b("TreeExpanded");b("ViewportBoundsChanged");a.Zx=c;a.Yx=d} -function ua(a,b){var c=a.Yx.ya(b);return null!==c?c:a.Yx.ya(b.toLowerCase())}function Rk(a,b){var c=a.Zx.ya(b);if(null!==c)return c;c=a.Zx.ya(b.toLowerCase());if(null!==c)return c;w.l("Unknown DiagramEvent name: "+b);return null}z.prototype.addDiagramListener=z.prototype.hz=function(a,b){w.g(a,"string",z,"addDiagramListener:name");w.g(b,"function",z,"addDiagramListener:listener");var c=Rk(this,a);null!==c&&c.add(b)}; -z.prototype.removeDiagramListener=z.prototype.TE=function(a,b){w.g(a,"string",z,"removeDiagramListener:name");w.g(b,"function",z,"addDiagramListener:listener");var c=Rk(this,a);null!==c&&c.remove(b)};z.prototype.raiseDiagramEvent=z.prototype.Ga=function(a,b,c){u&&w.g(a,"string",z,"raiseDiagramEvent:name");var d=Rk(this,a),e=new ie;e.h=this;e.name=ua(this,a);void 0!==b&&(e.EA=b);void 0!==c&&(e.kA=c);a=d.length;if(1===a)d=d.ma(0),d(e);else if(0!==a)for(b=d.Te(),c=0;c=d.top&&0>=d.left&&0>=d.right&&0>=d.bottom)return c;var e=a.qb,g=a.scale,e=w.nk(0,0,e.width*g,e.height*g),h=w.lc(0,0);if(b.x>=e.x&&b.xe.x+e.width-d.right&&(k=Math.max(a.Ft,1),k|=0,h.x+=k,b.x>e.x+e.width-d.right/2&&(h.x+=k),b.x>e.x+e.width-d.right/4&&(h.x+=4*k));b.y>=e.y&&b.y=d.top&&0>=d.left&&0>=d.right&&0>=d.bottom)return c;var e=a.qb,g=a.scale,e=w.nk(0,0,e.width*g,e.height*g),h=w.lc(0,0);if(b.x>=e.x&&b.xe.x+e.width-d.right&&(k=Math.max(a.Ft,1),k|=0,h.x+=k,b.x>e.x+e.width-d.right/2&&(h.x+=k),b.x>e.x+e.width-d.right/4&&(h.x+=4*k));b.y>=e.y&&b.ye.y+e.height-d.bottom&&(k=Math.max(a.Gt,1),k|=0,h.y+=k,b.y>e.y+e.height-d.bottom/2&&(h.y+=k),b.y>e.y+e.height-d.bottom/4&&(h.y+=4*k));h.Me(O.ok)||(c=new I(c.x+h.x/g,c.y+h.y/g));w.qc(e);w.A(h);return c}z.prototype.makeSVG=z.prototype.makeSvg=function(a){void 0===a&&(a=new xa);a.context="svg";a=Zk(this,a);return null!==a?a.Kl:null}; -z.prototype.makeImage=function(a){void 0===a&&(a=new xa);var b=(a.document||document).createElement("img");b.src=this.iI(a);return b};z.prototype.makeImageData=z.prototype.iI=function(a){void 0===a&&(a=new xa);var b=Zk(this,a);return null!==b?b.toDataURL(a.type,a.details):""};var $k=!1; +z.prototype.makeImage=function(a){void 0===a&&(a=new xa);var b=(a.document||document).createElement("img");b.src=this.kI(a);return b};z.prototype.makeImageData=z.prototype.kI=function(a){void 0===a&&(a=new xa);var b=Zk(this,a);return null!==b?b.toDataURL(a.type,a.details):""};var $k=!1; function Zk(a,b){a.Sb.bj();a.lf();if(null===a.$a)return null;"object"!==typeof b&&w.l("properties argument must be an Object.");var c=!1,d=b.size||null,e=b.scale||null;void 0!==b.scale&&isNaN(b.scale)&&(e="NaN");var g=b.maxSize;void 0===b.maxSize&&(c=!0,g="svg"===b.context?new pa(Infinity,Infinity):new pa(2E3,2E3));var h=b.position||null,k=b.parts||null,l=void 0===b.padding?1:b.padding,m=b.background||null,n=b.omitTemporary;void 0===n&&(n=!0);var p=b.document||document,q=b.elementFinished||null,r= -b.showTemporary;void 0===r&&(r=!n);n=b.showGrid;void 0===n&&(n=r);null!==d&&isNaN(d.width)&&isNaN(d.height)&&(d=null);"number"===typeof l?l=new vb(l):l instanceof vb||(l=new vb(0));l.left=Math.max(l.left,0);l.right=Math.max(l.right,0);l.top=Math.max(l.top,0);l.bottom=Math.max(l.bottom,0);a.Ln=!1;ca(a);var s=new wa(null,p),t=s.getContext("2d"),v=s;if(!(d||e||k||h))return s.width=a.Hb+Math.ceil(l.left+l.right),s.height=a.Gb+Math.ceil(l.top+l.bottom),"svg"===b.context&&(t=v=new cd(s.Qd,p,q),t instanceof -cd&&(a.Ln=!0)),Nj(a,t,l,new pa(s.width,s.height),a.$b,a.Ra,k,m,r,n),a.Ln=!0,v;var y=a.Jb.iw,B=new I(0,0),A=a.Gc.copy();A.eJ(a.padding);if(r)for(var E=!0,E=a.Yb.p,N=E.length,J=0;Jy?(e=y,h=A.width,aa=A.height):(h=g.width,aa=g.height)):(h=A.width*e,aa=A.height*e):(e=y,h=A.width,aa=A.height);null!==l?(h+=ea,aa+=E):l=new vb(0);null!==g&&(d=g.width,g=g.height,"svg"!==b.context&&c&&!$k&&(h>d||aa>g)&&(w.trace("Diagram.makeImage(data): Diagram width or height is larger than the default max size. ("+Math.ceil(h)+"x"+Math.ceil(aa)+" vs 2000x2000) Consider increasing the max size."), -$k=!0),isNaN(d)&&(d=2E3),isNaN(g)&&(g=2E3),isFinite(d)&&(h=Math.min(h,d)),isFinite(g)&&(aa=Math.min(aa,g)));s.width=Math.ceil(h);s.height=Math.ceil(aa);"svg"===b.context&&(t=v=new cd(s.Qd,p,q),t instanceof cd&&(a.Ln=!0));Nj(a,t,l,new pa(Math.ceil(h),Math.ceil(aa)),e,B,k,m,r,n);a.Ln=!0;return v}z.inherit=function(a,b){w.g(a,"function",z,"inherit");w.g(b,"function",z,"inherit");b.lG&&w.l("Cannot inherit from "+w.Eg(b));w.Na(a,b)}; -function dj(){this.oG="63ad05bbe23a1786468a4c741b6d2";this.oG===this._tk?this.Hh=!0:al(this,!1)} -function al(a,b){var c="p",d=window[w.Ka("76a715b2f73f148a")][w.Ka("72ba13b5")];if(w.Ka("77bb5bb2f32603de")===window[w.Ka("76a715b2f73f148a")][w.Ka("6aba19a7ec351488")])try{a.Hh=!window[w.Ka("4da118b7ec2108")]([w.Ka("5bb806bfea351a904a84515e1b6d38b6")])([w.Ka("49bc19a1e6")])([w.Ka("59bd04a1e6380fa5539b")])([w.Ka("7bb8069ae7")]===w.Ka(w.adym));if(!1===a.Hh)return;a.Hh=!window[w.Ka("4da118b7ec2108")]([w.Ka("5bb806bfea351a904a84515e1b6d38b6")])([w.Ka("49bc19a1e6")])([w.Ka("59bd04a1e6380fa5539b6c7a197c31bb4cfd3e")])([w.Ka("7bb8069ae7")]===w.Ka(w.adym)); -if(!1===a.Hh)return}catch(e){}for(var g=d[w.Ka("76ad18b4f73e")],h=d[w.Ka("73a612b6fb191d")](w.Ka("35e7"))+2;h=d&&w.Ka(w.adym)!==w.Ka("7da71ca0ad381e90")&&(d=c[w.Ka("73a612b6fb191d")](w.Ka("76a715b2ef3e149757")));a.Hh=!(0d&&w.Ka(w.adym)!==w.Ka("7da71ca0ad381e90")&&(d=c[w.Ka("73a612b6fb191d")](w.Ka("76a715b2ef3e149757")));a.Ih=!(0<=d&&db.timeStamp-a.hm)b.preventDefault();else if(a.Sc=a.Qb,a.Qb=c,vj(a,a,b,c,!0),c.pl=!0,c.cf=b.detail,a.Gk=c.copy(),!0===c.oq.simulated)b.preventDefault(),b.simulated=!0;else if(u&&u.JE&&(window.JE=a.Ro(c.ga)),bg=null,a.doMouseDown(),1===b.button)return b.preventDefault(),!1}};a.mp=function(b){if(a.isEnabled){a.bm=!0;var c=a.Sc;if(w.Ym){if(400>b.timeStamp-a.hm){b.preventDefault();return}a.hm=b.timeStamp}if(w.Ym&&null!==a.as)a.as=null,b.preventDefault();else{a.Sc=a.Qb;a.Qb=c;vj(a,a,b,c,!0);c.up=!0; -c.cf=b.detail;if(w.Rz||w.Sz)b.timeStamp-a.hmb.touches.length&&uj(a,c);ia(a,c,b)}};a.EF=function(b){if(a.isEnabled){var c=a.Sc;a.Sc=a.Qb;a.Qb=c;var d=null;0a.zr&&uj(a,c),ia(a,c,b))}};a.AI=function(b){if("touch"===b.pointerType&&!(2>a.zr)){var c=a.Mf;c[0].pointerId===b.pointerId&&(c[0]=b);c[1].pointerId===b.pointerId&&(c[1]=b);a.isEnabled&&(c=a.Sc,a.Sc=a.Qb,a.Qb=c,yj(a,b,b,c,!0),If(a),a.hx(b,null,c.Lg)||(a.doMouseMove(),ia(a,c,b)))}};a.zI=function(b){if("touch"===b.pointerType){var c=a.uC;void 0!==c[b.pointerId]&&(a.zr--,delete c[b.pointerId],c=a.Mf,null!==c[0]&&c[0].pointerId===b.pointerId&&(c[0]=null),null!==c[1]&&c[1].pointerId=== -b.pointerId&&(c[1]=null))}};ca(a);hj(a)}function bl(a){1b.timeStamp-a.hm)b.preventDefault();else if(a.Sc=a.Qb,a.Qb=c,vj(a,a,b,c,!0),c.pl=!0,c.cf=b.detail,a.Gk=c.copy(),!0===c.oq.simulated)b.preventDefault(),b.simulated=!0;else if(u&&u.LE&&(window.LE=a.Ro(c.ga)),bg=null,a.doMouseDown(),1===b.button)return b.preventDefault(),!1}};a.mp=function(b){if(a.isEnabled){a.bm=!0;var c=a.Sc;if(w.Ym){if(400>b.timeStamp-a.hm){b.preventDefault();return}a.hm=b.timeStamp}if(w.Ym&&null!==a.as)a.as=null,b.preventDefault();else{a.Sc=a.Qb;a.Qb=c;vj(a,a,b,c,!0);c.up=!0; +c.cf=b.detail;if(w.Sz||w.Tz)b.timeStamp-a.hmb.touches.length&&uj(a,c);ia(a,c,b)}};a.GF=function(b){if(a.isEnabled){var c=a.Sc;a.Sc=a.Qb;a.Qb=c;var d=null;0a.zr&&uj(a,c),ia(a,c,b))}};a.CI=function(b){if("touch"===b.pointerType&&!(2>a.zr)){var c=a.Mf;c[0].pointerId===b.pointerId&&(c[0]=b);c[1].pointerId===b.pointerId&&(c[1]=b);a.isEnabled&&(c=a.Sc,a.Sc=a.Qb,a.Qb=c,yj(a,b,b,c,!0),If(a),a.ix(b,null,c.Lg)||(a.doMouseMove(),ia(a,c,b)))}};a.BI=function(b){if("touch"===b.pointerType){var c=a.vC;void 0!==c[b.pointerId]&&(a.zr--,delete c[b.pointerId],c=a.Mf,null!==c[0]&&c[0].pointerId===b.pointerId&&(c[0]=null),null!==c[1]&&c[1].pointerId=== +b.pointerId&&(c[1]=null))}};ca(a);hj(a)}function bl(a){1a)&&w.ja(a,"0 <= loc <= 1",oa,"addColorStop:loc");w.g(b,"string",oa,"addColorStop:color");u&&!na(b)&&w.l('Color "'+b+'" is not a valid color string for Brush.addColorStop');null===this.Rg&&(this.Rg=new ta("number","string"));this.Rg.add(a,b);this.ia===Qe&&(this.type=Re);this.Sg=null}; @@ -922,354 +923,354 @@ w.defineProperty(oa,{start:"start"},function(){return this.xo},function(a){w.G(t w.defineProperty(oa,{Ps:"endRadius"},function(){return this.Cu},function(a){w.G(this,a);w.o(a,oa,"endRadius");0>a&&w.ja(a,">= zero",oa,"endRadius");this.Cu=a;this.Sg=null});w.defineProperty(oa,{Is:"colorStops"},function(){return this.Rg},function(a){w.G(this,a);u&&w.k(a,ta,oa,"colorStops");this.Rg=a;this.Sg=null});w.defineProperty(oa,{pattern:"pattern"},function(){return this.qv},function(a){w.G(this,a);this.qv=a;this.Sg=null}); oa.randomColor=function(a,b){void 0===a&&(a=128);u&&(w.o(a,oa,"randomColor:min"),(0>a||255d.length&&(d="0"+d);2>e.length&&(e="0"+e);2>c.length&&(c="0"+c);return"#"+ d+e+c};var il=w.createElement("canvas").getContext("2d"),na;oa.isValidColor=na=function(a){if("black"===a)return!0;if(""===a)return!1;u&&w.g(a,"string",oa,"isValidColor");il.fillStyle="#000000";var b=il.fillStyle;il.fillStyle=a;if(il.fillStyle!==b)return!0;il.fillStyle="#FFFFFF";b=il.fillStyle;il.fillStyle=a;return il.fillStyle!==b}; -function V(){w.mc(this);this.ka=30723;this.Qc=1;this.bh=null;this.cc="";this.uc=this.Ob=null;this.Ra=(new I(NaN,NaN)).freeze();this.rf=(new pa(NaN,NaN)).freeze();this.Ej=O.on;this.Cj=O.UA;this.ld=new ra;this.gj=new ra;this.Rk=new ra;this.$b=this.zu=1;this.tn=0;this.Uh=jl;this.Yq=O.Jp;this.Xc=(new x(NaN,NaN,NaN,NaN)).freeze();this.Nb=(new x(NaN,NaN,NaN,NaN)).freeze();this.Pc=(new x(0,0,NaN,NaN)).freeze();this.ks=this.pq=this.U=this.Ar=this.Br=null;this.ls=this.qq=Infinity;this.Pp=this.Be=Pc;this.Pr= -0;this.Kj=1;this.Wp=0;this.mj=1;this.Tr=-Infinity;this.Sr=0;this.Ur=O.ok;this.Vr=mh;this.cq="";this.Oc=this.T=null;this.vn=-1;this.pm=this.ji=this.Ul=this.wo=null}w.Yh(V);w.la("GraphObject",V); -V.prototype.cloneProtected=function(a){a.ka=this.ka|6144;a.Qc=this.Qc;a.cc=this.cc;a.Ob=this.Ob;a.uc=this.uc;a.Ra.assign(this.Ra);a.rf.assign(this.rf);a.Ej=this.Ej.da();a.Cj=this.Cj.da();a.Rk=this.Rk.copy();a.$b=this.$b;a.tn=this.tn;a.Uh=this.Uh;a.Yq=this.Yq.da();a.Xc.assign(this.Xc);a.Nb.assign(this.Nb);a.Pc.assign(this.Pc);a.Ar=this.Ar;a.U=null!==this.U?this.U.copy():null;a.pq=this.pq;a.qq=this.qq;a.ks=this.ks;a.ls=this.ls;a.Be=this.Be.da();a.Pp=this.Pp.da();a.Pr=this.Pr;a.Kj=this.Kj;a.Wp=this.Wp; -a.mj=this.mj;a.Tr=this.Tr;a.Sr=this.Sr;a.Ur=this.Ur.da();a.Vr=this.Vr;a.cq=this.cq;a.T=null!==this.T?this.T.copy():null;a.Oc=this.Oc;a.vn=this.vn;if(null!==this.Ul){a.Ul=w.il(this.Ul);for(var b=0;bk;)k+=g[n++%l],p=!p;q=!1}else k=g[n++%l];k>m&&(k=m);var r=Math.sqrt(k*k/(1+e*e));0>d&&(r=-r);b+=r;c+=e*r;p?a.lineTo(b,c):a.moveTo(b,c);m-=k;p=!p}} V.prototype.raiseChangedEvent=V.prototype.Lc=function(a,b,c,d,e,g,h){var k=this.W;null!==k&&(k.fn(a,b,c,d,e,g,h),0!==(this.ka&1024)&&c===this&&a===te&&rl(this,k,b))}; -function rl(a,b,c){var d=a.To();if(null!==d)for(var e=a.Oc.j;e.next();){var g=e.value,h=null;if(null!==g.jn){h=rf(g,d,a);if(null===h)continue;g.lx(a,h,c,null)}else if(g.Rt){var k=b.h;null!==k&&g.lx(a,k.ha.rt,c,k)}else{var l=d.data;if(null===l)continue;k=b.h;null!==k&&k.ix||g.lx(a,l,c,k)}null!==h&&(k=d.ow(g.Ll),null!==k&&g.LF(k,h,c))}}V.prototype.ow=function(a){return this.vn===a?this:null};V.prototype.raiseChanged=V.prototype.i=function(a,b,c){this.Lc(te,a,this,b,c)}; -function sl(a,b,c,d,e){var g=a.Xc,h=a.Rk;h.reset();tl(a,h,b,c,d,e);a.Rk=h;g.x=b;g.y=c;g.width=d;g.height=e;h.ft()||h.IF(g)}function ul(a,b,c,d){if(!1===a.ag)return!1;d.multiply(a.transform);return c?a.Fg(b,d):a.Nm(b,d)} -V.prototype.ZD=function(a,b,c){if(!1===this.ag)return!1;var d=this.Fa;b=a.bk(b);var e=!1;c&&(e=lb(a.x,a.y,0,0,0,d.height)a&&(a+=360));return a};V.prototype.getDocumentScale=V.prototype.Wi=function(){if(0!==(this.ka&4096)===!1)return this.zu;var a=this.$b;return null!==this.S?a*this.S.Wi():a};V.prototype.getLocalPoint=V.prototype.fE=function(a,b){void 0===b&&(b=new I);b.assign(a);this.Of.ai(b);return b}; +V.prototype.intersectsRect=V.prototype.Fg=function(a,b){u&&w.k(a,x,V,"intersectsRect:r");if(void 0===b&&(b=this.transform,0===this.angle))return a.Fg(this.ca);var c=this.Fa,d=b,e=w.lc(0,0),g=w.lc(0,c.height),h=w.lc(c.width,c.height),k=w.lc(c.width,0),l=!1;if(a.Ha(d.ib(e))||a.Ha(d.ib(g))||a.Ha(d.ib(h))||a.Ha(d.ib(k)))l=!0;else{var c=w.nk(0,0,c.width,c.height),m=w.lc(a.x,a.y);c.Ha(d.bi(m))?l=!0:(m.n(a.x,a.bottom),c.Ha(d.bi(m))?l=!0:(m.n(a.right,a.bottom),c.Ha(d.bi(m))?l=!0:(m.n(a.right,a.y),c.Ha(d.bi(m))&& +(l=!0))));w.A(m);w.qc(c);!l&&(O.zw(a,e,g)||O.zw(a,g,h)||O.zw(a,h,k)||O.zw(a,k,e))&&(l=!0)}w.A(e);w.A(g);w.A(h);w.A(k);return l};V.prototype.getDocumentPoint=V.prototype.vb=function(a,b){void 0===b&&(b=new I);a.we()&&w.l("getDocumentPoint:s Spot must be real: "+a.toString());var c=this.Fa;b.n(a.x*c.width+a.offsetX,a.y*c.height+a.offsetY);this.Of.ib(b);return b}; +V.prototype.getDocumentAngle=V.prototype.tl=function(){var a;a=this.Of;1===a.m11&&0===a.m12?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360));return a};V.prototype.getDocumentScale=V.prototype.Wi=function(){if(0!==(this.ka&4096)===!1)return this.zu;var a=this.$b;return null!==this.S?a*this.S.Wi():a};V.prototype.getLocalPoint=V.prototype.gE=function(a,b){void 0===b&&(b=new I);b.assign(a);this.Of.bi(b);return b}; V.prototype.getNearestIntersectionPoint=V.prototype.wl=function(a,b,c){return this.Wo(a.x,a.y,b.x,b.y,c)};f=V.prototype;f.Wo=function(a,b,c,d,e){var g=this.transform,h=1/(g.m11*g.m22-g.m12*g.m21),k=g.m22*h,l=-g.m12*h,m=-g.m21*h,n=g.m11*h,p=h*(g.m21*g.dy-g.m22*g.dx),q=h*(g.m12*g.dx-g.m11*g.dy);if(null!==this.gl)return g=this.ca,O.wl(g.left,g.top,g.right,g.bottom,a,b,c,d,e);h=a*k+b*m+p;a=a*l+b*n+q;b=c*k+d*m+p;c=c*l+d*n+q;e.n(0,0);d=this.Fa;c=O.wl(0,0,d.width,d.height,h,a,b,c,e);e.transform(g);return c}; function Yh(a,b,c,d,e){if(!1!==Hj(a)){var g=a.margin,h=g.right+g.left,g=g.top+g.bottom;b=Math.max(b-h,0);c=Math.max(c-g,0);e=e||0;d=Math.max((d||0)-h,0);e=Math.max(e-g,0);var h=a.angle,g=0,g=a.Ba,k=0;a.pb&&(k=a.pb);90===h||270===h?(b=isFinite(g.height)?g.height+k:b,c=isFinite(g.width)?g.width+k:c):(b=isFinite(g.width)?g.width+k:b,c=isFinite(g.height)?g.height+k:c);var g=d||0,k=e||0,l=a instanceof H;switch(vl(a,!0)){case zh:k=g=0;l&&(c=b=Infinity);break;case vd:isFinite(b)&&b>d&&(g=b);isFinite(c)&& c>e&&(k=c);break;case ll:isFinite(b)&&b>d&&(g=b);k=0;l&&(c=Infinity);break;case kl:isFinite(c)&&c>e&&(k=c),g=0,l&&(b=Infinity)}var l=a.xe,m=a.Df;g>l.width&&m.widthl.height&&m.heighta.height||this.vj.Ye>a.width))&&(c=!0);this.ka=c?this.ka|256:this.ka&-257;this.Nb.J()|| -w.l("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Nb.toString());this.Pw(g,this.Nb);w.qc(g)};f.Li=function(){}; +w.l("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Nb.toString());this.Qw(g,this.Nb);w.qc(g)};f.Li=function(){}; function wl(a,b,c,d,e){var g=a.ca;g.x=b;g.y=c;g.width=d;g.height=e;if(!a.Ba.J()){g=a.Xc;c=a.margin;b=c.right+c.left;var h=c.top+c.bottom;c=g.width+b;g=g.height+h;d+=b;e+=h;b=vl(a,!0);c===d&&g===e&&(b=zh);switch(b){case zh:if(c>d||g>e)Bj(a,!0),Yh(a,c>d?d:c,g>e?e:g);break;case vd:Bj(a,!0);Yh(a,d,e,0,0);break;case ll:Bj(a,!0);Yh(a,d,g,0,0);break;case kl:Bj(a,!0),Yh(a,c,e,0,0)}}} -f.Pw=function(){xl(this,!1);var a=this.W;null!==a&&null!==a.h&&(a.yl(),this.kv(a),this.ra(),a=this.W,null!==a&&(a.hn!==this&&a.bF!==this&&a.fF!==this||yl(a,!0)))};f.kv=function(a){null!==this.sd&&yl(a,!0)}; -f.ef=function(a,b){if(this.visible){var c=this.opacity,d=1;if(1!==c){if(0===c)return;d=a.globalAlpha;a.globalAlpha=d*c}if(a instanceof cd)a:{if(this.visible){var e=null,g=a.Hw;if(this instanceof H&&(this.type===zl||this.type===Al))Bl(this,a,b);else{var h=this.Nb;if(0!==h.width&&0!==h.height&&!isNaN(h.x)&&!isNaN(h.y)){var k=this.transform,l=this.S;0!==(this.ka&4096)===!0&&Cl(this);var m=0!==(this.ka&256),n=!1;this instanceof ya&&Dl(this,a);if(m){n=l.fg()?l.Fa:l.ca;if(this.ji)var p=this.ji,q=p.x,r= +f.Qw=function(){xl(this,!1);var a=this.W;null!==a&&null!==a.h&&(a.yl(),this.kv(a),this.ra(),a=this.W,null!==a&&(a.hn!==this&&a.dF!==this&&a.hF!==this||yl(a,!0)))};f.kv=function(a){null!==this.td&&yl(a,!0)}; +f.ef=function(a,b){if(this.visible){var c=this.opacity,d=1;if(1!==c){if(0===c)return;d=a.globalAlpha;a.globalAlpha=d*c}if(a instanceof cd)a:{if(this.visible){var e=null,g=a.Iw;if(this instanceof H&&(this.type===zl||this.type===Al))Bl(this,a,b);else{var h=this.Nb;if(0!==h.width&&0!==h.height&&!isNaN(h.x)&&!isNaN(h.y)){var k=this.transform,l=this.S;0!==(this.ka&4096)===!0&&Cl(this);var m=0!==(this.ka&256),n=!1;this instanceof ya&&Dl(this,a);if(m){n=l.fg()?l.Fa:l.ca;if(this.ji)var p=this.ji,q=p.x,r= p.y,s=p.width,p=p.height;else q=Math.max(h.x,n.x),r=Math.max(h.y,n.y),s=Math.min(h.right,n.right)-q,p=Math.min(h.bottom,n.bottom)-r;if(q>h.width+h.x||h.x>n.width+n.x||r>h.height+h.y||h.y>n.height+n.y)break a;n=!0;ed(a,1,0,0,1,0,0);a.save();a.beginPath();a.rect(q,r,s,p);a.clip()}q=!1;if(this instanceof C&&(q=!0,!this.La()))break a;r=!1;s=b.dh;this.W&&s.drawShadows&&(r=this.W.gk);a.Ti.kf=[1,0,0,1,0,0];null!==this.uc&&(El(this,a,this.uc,!0,!0),this.uc instanceof oa&&this.uc.type===Se?(a.beginPath(), a.rect(h.x,h.y,h.width,h.height),Fl(a,this.uc)):a.fillRect(h.x,h.y,h.width,h.height));q&&this.gk&&s.drawShadows&&(ed(a,1,0,0,1,0,0),h=this.ym,a.shadowOffsetX=h.x,a.shadowOffsetY=h.y,a.shadowColor=this.xm,a.shadowBlur=this.wm/b.scale,a.hb());this instanceof H?ed(a,k.m11,k.m12,k.m21,k.m22,k.dx,k.dy):a.Ti.kf=[k.m11,k.m12,k.m21,k.m22,k.dx,k.dy];if(null!==this.Ob){var p=this.Fa,h=k=0,s=p.width,p=p.height,t=0;this instanceof Y&&(p=this.Wa.ub,k=p.x,h=p.y,s=p.width,p=p.height,t=this.qe);El(this,a,this.Ob, !0,!1);this.Ob instanceof oa&&this.Ob.type===Se?(a.beginPath(),a.rect(k-t/2,h-t/2,s+t,p+t),Fl(a,this.Ob)):a.fillRect(k-t/2,h-t/2,s+t,p+t)}s=h=k=0;r&&(null!==this.Ob||null!==this.uc||null!==l&&0!==(l.ka&512)||null!==l&&l.type===gj&&l.Rf()!==this)?(Gl(this,!0),k=a.shadowOffsetX,h=a.shadowOffsetY,s=a.shadowBlur,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0):Gl(this,!1);this.ck(a,b);r&&0!==(this.ka&512)===!0&&(a.shadowOffsetX=k,a.shadowOffsetY=h,a.shadowBlur=s);q&&r&&(a.shadowOffsetX=0,a.shadowOffsetY= -0,a.shadowBlur=0);m&&(a.restore(),n&&a.yf.pop(),ca(b,a));this instanceof H&&(e=a.yf.pop());q&&r&&a.yf.pop();null!==a.UD&&(null===e&&(g===a.Hw?(ed(a,1,0,0,1,0,0),e=a.yf.pop()):e=a.Hw),a.UD(this,e))}}}}else{if(this instanceof H&&(this.type===zl||this.type===Al)){Bl(this,a,b);1!==c&&(a.globalAlpha=d);return}q=this.Nb;if(0!==q.width&&0!==q.height&&!isNaN(q.x)&&!isNaN(q.y)){u&&u.Oi&&u.hH(a,this);e=this.transform;g=this.S;0!==(this.ka&4096)===!0&&Cl(this);l=0!==(this.ka&256);this instanceof ya&&Dl(this, -a);if(l){u&&u.TD&&w.trace("clip"+this.toString());m=g.fg()?g.Fa:g.ca;this.ji?(h=this.ji,n=h.x,r=h.y,k=h.width,h=h.height):(n=Math.max(q.x,m.x),r=Math.max(q.y,m.y),k=Math.min(q.right,m.right)-n,h=Math.min(q.bottom,m.bottom)-r);if(n>q.width+q.x||q.x>m.width+m.x||r>q.height+q.y||q.y>m.height+m.y){1!==c&&(a.globalAlpha=d);return}u&&u.TD&&u.jH(a,n,r,k,h);a.save();a.beginPath();a.rect(n,r,k,h);a.clip()}r=b.dh;m=!1;if(this instanceof C){m=!0;if(!this.La()){1!==c&&(a.globalAlpha=d);return}this.gk&&r.drawShadows&& +0,a.shadowBlur=0);m&&(a.restore(),n&&a.yf.pop(),ca(b,a));this instanceof H&&(e=a.yf.pop());q&&r&&a.yf.pop();null!==a.VD&&(null===e&&(g===a.Iw?(ed(a,1,0,0,1,0,0),e=a.yf.pop()):e=a.Iw),a.VD(this,e))}}}}else{if(this instanceof H&&(this.type===zl||this.type===Al)){Bl(this,a,b);1!==c&&(a.globalAlpha=d);return}q=this.Nb;if(0!==q.width&&0!==q.height&&!isNaN(q.x)&&!isNaN(q.y)){u&&u.Oi&&u.jH(a,this);e=this.transform;g=this.S;0!==(this.ka&4096)===!0&&Cl(this);l=0!==(this.ka&256);this instanceof ya&&Dl(this, +a);if(l){u&&u.UD&&w.trace("clip"+this.toString());m=g.fg()?g.Fa:g.ca;this.ji?(h=this.ji,n=h.x,r=h.y,k=h.width,h=h.height):(n=Math.max(q.x,m.x),r=Math.max(q.y,m.y),k=Math.min(q.right,m.right)-n,h=Math.min(q.bottom,m.bottom)-r);if(n>q.width+q.x||q.x>m.width+m.x||r>q.height+q.y||q.y>m.height+m.y){1!==c&&(a.globalAlpha=d);return}u&&u.UD&&u.lH(a,n,r,k,h);a.save();a.beginPath();a.rect(n,r,k,h);a.clip()}r=b.dh;m=!1;if(this instanceof C){m=!0;if(!this.La()){1!==c&&(a.globalAlpha=d);return}this.gk&&r.drawShadows&& (n=this.ym,a.shadowOffsetX=n.x*b.scale*b.Ge,a.shadowOffsetY=n.y*b.scale*b.Ge,a.shadowColor=this.xm,a.shadowBlur=this.wm)}n=!1;this.W&&r.drawShadows&&(n=this.W.gk);null!==this.uc&&(El(this,a,this.uc,!0,!0),this.uc instanceof oa&&this.uc.type===Se?(a.beginPath(),a.rect(q.x,q.y,q.width,q.height),Fl(a,this.uc)):a.fillRect(q.x,q.y,q.width,q.height));e.ft()||a.transform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy);null!==this.Ob&&(h=this.Fa,r=q=0,k=h.width,h=h.height,s=0,this instanceof Y&&(h=this.Wa.ub,q=h.x,r= -h.y,k=h.width,h=h.height,s=this.qe),El(this,a,this.Ob,!0,!1),this.Ob instanceof oa&&this.Ob.type===Se?(a.beginPath(),a.rect(q-s/2,r-s/2,k+s,h+s),Fl(a,this.Ob)):a.fillRect(q-s/2,r-s/2,k+s,h+s));u&&u.Oi&&u.iH(a,this);k=r=q=0;n&&(null!==this.Ob||null!==this.uc||null!==g&&0!==(g.ka&512)||null!==g&&(g.type===gj||g.type===xh)&&g.Rf()!==this)?(Gl(this,!0),q=a.shadowOffsetX,r=a.shadowOffsetY,k=a.shadowBlur,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0):Gl(this,!1);this.ck(a,b);n&&0!==(this.ka&512)=== +h.y,k=h.width,h=h.height,s=this.qe),El(this,a,this.Ob,!0,!1),this.Ob instanceof oa&&this.Ob.type===Se?(a.beginPath(),a.rect(q-s/2,r-s/2,k+s,h+s),Fl(a,this.Ob)):a.fillRect(q-s/2,r-s/2,k+s,h+s));u&&u.Oi&&u.kH(a,this);k=r=q=0;n&&(null!==this.Ob||null!==this.uc||null!==g&&0!==(g.ka&512)||null!==g&&(g.type===gj||g.type===xh)&&g.Rf()!==this)?(Gl(this,!0),q=a.shadowOffsetX,r=a.shadowOffsetY,k=a.shadowBlur,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0):Gl(this,!1);this.ck(a,b);n&&0!==(this.ka&512)=== !0&&(a.shadowOffsetX=q,a.shadowOffsetY=r,a.shadowBlur=k);m&&n&&(a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0);l?(a.restore(),this instanceof H?ca(b,a,!0):ca(b,a,!1)):e.ft()||(g=1/(e.m11*e.m22-e.m12*e.m21),a.transform(e.m22*g,-e.m12*g,-e.m21*g,e.m11*g,g*(e.m21*e.dy-e.m22*e.dx),g*(e.m12*e.dx-e.m11*e.dy)))}}1!==c&&(a.globalAlpha=d)}}; function Bl(a,b,c){var d=a.Nb;0===d.width||0===d.height||isNaN(d.x)||isNaN(d.y)||(null!==a.uc&&(El(a,b,a.uc,!0,!0),a.uc instanceof oa&&a.uc.type===Se?(b.beginPath(),b.rect(d.x,d.y,d.width,d.height),Fl(b,a.uc)):b.fillRect(d.x,d.y,d.width,d.height)),null!==a.Ob&&(El(a,b,a.Ob,!0,!1),a.Ob instanceof oa&&a.Ob.type===Se?(b.beginPath(),b.rect(d.x,d.y,d.width,d.height),Fl(b,a.Ob)):b.fillRect(d.x,d.y,d.width,d.height)),a.ck(b,c))}f.ck=function(){}; -function Fl(a,b){if(b instanceof oa&&b.type===Se&&!(a instanceof cd)){var c=b.Kx,d=b.Jx;d>c?(a.scale(c/d,1),a.translate((d-c)/2,0)):c>d&&(a.scale(1,d/c),a.translate(0,(c-d)/2));a.Zt?a.clip():a.fill();d>c?(a.translate(-(d-c)/2,0),a.scale(1/(c/d),1)):c>d&&(a.translate(0,-(c-d)/2),a.scale(1,1/(d/c)))}else a.Zt?a.clip():a.fill()}function Hl(a){a.Zt||a.stroke()} -function El(a,b,c,d,e){if(null!==c){var g=1,h=1;if("string"===typeof c)d?b.Pl!==c&&(b.fillStyle=c,b.Pl=c):b.pn!==c&&(b.strokeStyle=c,b.pn=c);else if(c.type===Qe)c=c.color,d?b.Pl!==c&&(b.fillStyle=c,b.Pl=c):b.pn!==c&&(b.strokeStyle=c,b.pn=c);else{var k,h=a.Fa,g=h.width,h=h.height;if(e)var l=a.ca,g=l.width,h=l.height;var m=b instanceof CanvasRenderingContext2D;if(m&&(c.Sg&&c.type===hl||c.Kx===g&&c.Jx===h))k=c.Sg;else{var n=l=0,p=0,q=0,r=0,s=0,s=r=0;e&&(l=a.ca,g=l.width,h=l.height,r=l.x,s=l.y);l=c.start.x* -g+c.start.offsetX;n=c.start.y*h+c.start.offsetY;p=c.end.x*g+c.end.offsetX;q=c.end.y*h+c.end.offsetY;l+=r;p+=r;n+=s;q+=s;c.type===Re?k=b.createLinearGradient(l,n,p,q):c.type===Se?(s=isNaN(c.Ps)?Math.max(g,h)/2:c.Ps,isNaN(c.Nt)?(r=0,s=Math.max(g,h)/2):r=c.Nt,k=b.createRadialGradient(l,n,r,p,q,s)):c.type===hl?k=b.createPattern(c.pattern,"repeat"):w.tc(c.type,"Brush type");if(c.type!==hl&&(a=c.Is,null!==a))for(a=a.j;a.next();)k.addColorStop(a.key,a.value);m&&(c.Sg=k,c.Kx=g,c.Jx=h)}d?b.Pl!==k&&(b.fillStyle= +function Fl(a,b){if(b instanceof oa&&b.type===Se&&!(a instanceof cd)){var c=b.Lx,d=b.Kx;d>c?(a.scale(c/d,1),a.translate((d-c)/2,0)):c>d&&(a.scale(1,d/c),a.translate(0,(c-d)/2));a.Zt?a.clip():a.fill();d>c?(a.translate(-(d-c)/2,0),a.scale(1/(c/d),1)):c>d&&(a.translate(0,-(c-d)/2),a.scale(1,1/(d/c)))}else a.Zt?a.clip():a.fill()}function Hl(a){a.Zt||a.stroke()} +function El(a,b,c,d,e){if(null!==c){var g=1,h=1;if("string"===typeof c)d?b.Pl!==c&&(b.fillStyle=c,b.Pl=c):b.pn!==c&&(b.strokeStyle=c,b.pn=c);else if(c.type===Qe)c=c.color,d?b.Pl!==c&&(b.fillStyle=c,b.Pl=c):b.pn!==c&&(b.strokeStyle=c,b.pn=c);else{var k,h=a.Fa,g=h.width,h=h.height;if(e)var l=a.ca,g=l.width,h=l.height;var m=b instanceof CanvasRenderingContext2D;if(m&&(c.Sg&&c.type===hl||c.Lx===g&&c.Kx===h))k=c.Sg;else{var n=l=0,p=0,q=0,r=0,s=0,s=r=0;e&&(l=a.ca,g=l.width,h=l.height,r=l.x,s=l.y);l=c.start.x* +g+c.start.offsetX;n=c.start.y*h+c.start.offsetY;p=c.end.x*g+c.end.offsetX;q=c.end.y*h+c.end.offsetY;l+=r;p+=r;n+=s;q+=s;c.type===Re?k=b.createLinearGradient(l,n,p,q):c.type===Se?(s=isNaN(c.Ps)?Math.max(g,h)/2:c.Ps,isNaN(c.Nt)?(r=0,s=Math.max(g,h)/2):r=c.Nt,k=b.createRadialGradient(l,n,r,p,q,s)):c.type===hl?k=b.createPattern(c.pattern,"repeat"):w.tc(c.type,"Brush type");if(c.type!==hl&&(a=c.Is,null!==a))for(a=a.j;a.next();)k.addColorStop(a.key,a.value);m&&(c.Sg=k,c.Lx=g,c.Kx=h)}d?b.Pl!==k&&(b.fillStyle= k,b.Pl=k):b.pn!==k&&(b.strokeStyle=k,b.pn=k)}}}V.prototype.isContainedBy=V.prototype.Al=function(a){if(a instanceof H)a:{if(this!==a&&null!==a)for(var b=this.S;null!==b;){if(b===a){a=!0;break a}b=b.S}a=!1}else a=!1;return a};V.prototype.isVisibleObject=V.prototype.Dl=function(){if(!this.visible)return!1;var a=this.S;return null!==a?a.Dl():!0}; -function Cl(a){if(0!==(a.ka&2048)===!0){var b=a.ld;b.reset();if(!a.Nb.J()||!a.Xc.J()){Il(a,!1);return}b.translate(a.Nb.x,a.Nb.y);b.translate(-a.Ia.x,-a.Ia.y);var c=a.Fa;tl(a,b,c.x,c.y,c.width,c.height);Il(a,!1);Jl(a,!0)}0!==(a.ka&4096)===!0&&(b=a.S,null===b?(a.gj.set(a.ld),a.zu=a.scale,Jl(a,!1)):null!==b.Of&&(c=a.gj,c.reset(),b.fg()?c.multiply(b.gj):null!==b.S&&c.multiply(b.S.gj),c.multiply(a.ld),a.zu=a.scale*b.zu,Jl(a,!1)))} -function tl(a,b,c,d,e,g){1!==a.scale&&b.scale(a.scale);if(0!==a.angle){var h=ac;a.jf&&a.jf.qd()&&(h=a.jf);var k=w.O();if(a instanceof C&&a.ac!==a)for(c=a.ac,d=c.Fa,k.Kt(d.x,d.y,d.width,d.height,h),c.Rk.ib(k),k.offset(-c.Ia.x,-c.Ia.y),h=c.S;null!==h&&h!==a;)h.Rk.ib(k),k.offset(-h.Ia.x,-h.Ia.y),h=h.S;else k.Kt(c,d,e,g,h);b.rotate(a.angle,k.x,k.y);w.A(k)}}f=V.prototype; +function Cl(a){if(0!==(a.ka&2048)===!0){var b=a.md;b.reset();if(!a.Nb.J()||!a.Xc.J()){Il(a,!1);return}b.translate(a.Nb.x,a.Nb.y);b.translate(-a.Ia.x,-a.Ia.y);var c=a.Fa;tl(a,b,c.x,c.y,c.width,c.height);Il(a,!1);Jl(a,!0)}0!==(a.ka&4096)===!0&&(b=a.S,null===b?(a.gj.set(a.md),a.zu=a.scale,Jl(a,!1)):null!==b.Of&&(c=a.gj,c.reset(),b.fg()?c.multiply(b.gj):null!==b.S&&c.multiply(b.S.gj),c.multiply(a.md),a.zu=a.scale*b.zu,Jl(a,!1)))} +function tl(a,b,c,d,e,g){1!==a.scale&&b.scale(a.scale);if(0!==a.angle){var h=ac;a.jf&&a.jf.rd()&&(h=a.jf);var k=w.O();if(a instanceof C&&a.ac!==a)for(c=a.ac,d=c.Fa,k.Kt(d.x,d.y,d.width,d.height,h),c.Rk.ib(k),k.offset(-c.Ia.x,-c.Ia.y),h=c.S;null!==h&&h!==a;)h.Rk.ib(k),k.offset(-h.Ia.x,-h.Ia.y),h=h.S;else k.Kt(c,d,e,g,h);b.rotate(a.angle,k.x,k.y);w.A(k)}}f=V.prototype; f.V=function(a){void 0===a&&(a=!1);if(!0!==Hj(this)){Bj(this,!0);xl(this,!0);var b=this.S;null!==b?a||b.V():(a=this.h,null!==a&&(a.kg.add(this),this instanceof D&&(a.na.ob||this.zf(),null!==this.Cd&&Kl(this.Cd)),a.ne(!0)));if(this instanceof H){if(this.ia===gj||this.ia===jh)a=this.Rf(),null!==a&&a.V(!0);a=this.ua.p;for(var b=a.length,c=0;ca?a=0:1a?a=0:1a||1=a&&w.l("GraphObject.scale must be greater than zero"),this.$b=a,this.Vg(),this.V(),this.i("scale",b,a))}); +w.w(V,{S:"panel"},function(){return this.bh});V.prototype.Il=function(a){this.bh=a};w.w(V,{layer:"layer"},function(){var a=this.W;return null!==a?a.layer:null});w.w(V,{h:"diagram"},function(){var a=this.W;return null!==a?a.h:null},{configurable:!0});w.defineProperty(V,{position:"position"},function(){return this.Ra},function(a){var b=this.Ra;b.N(a)||(u&&w.k(a,I,V,"position"),a=a.da(),this.BA(a,b)&&this.i("position",b,a))});V.prototype.BA=function(a){this.Ra=a;Kl(this);this.Vg();return!0}; +V.prototype.tF=function(a,b){this.Ra.n(a,b);Pl(this,!0);this.Vg()};w.w(V,{ca:"actualBounds"},function(){return this.Nb});w.defineProperty(V,{scale:"scale"},function(){return this.$b},function(a){var b=this.$b;b!==a&&(u&&w.o(a,V,"scale"),0>=a&&w.l("GraphObject.scale must be greater than zero"),this.$b=a,this.Vg(),this.V(),this.i("scale",b,a))}); w.defineProperty(V,{angle:"angle"},function(){return this.tn},function(a){var b=this.tn;b!==a&&(u&&w.o(a,V,"angle"),a%=360,0>a&&(a+=360),b!==a&&(this.tn=a,this.V(),this.Vg(),this.i("angle",b,a)))});w.defineProperty(V,{Ba:"desiredSize"},function(){return this.rf},function(a){var b=this.rf;b.N(a)||(u&&w.k(a,pa,V,"desiredSize"),this.rf=a=a.da(),this.V(),this instanceof Y&&this.ue(),this.i("desiredSize",b,a),a=this.W,null!==a&&0!==(this.ka&1024)&&(rl(this,a,"width"),rl(this,a,"height")))}); w.defineProperty(V,{width:"width"},function(){return this.rf.width},function(a){if(this.rf.width!==a){u&&w.g(a,"number",V,"width");var b=this.rf;this.rf=a=(new pa(a,this.rf.height)).freeze();this.V();this instanceof Y&&this.ue();this.i("desiredSize",b,a);b=this.W;null!==b&&0!==(this.ka&1024)&&rl(this,b,"width")}}); w.defineProperty(V,{height:"height"},function(){return this.rf.height},function(a){if(this.rf.height!==a){u&&w.g(a,"number",V,"height");var b=this.rf;this.rf=a=(new pa(this.rf.width,a)).freeze();this.V();this instanceof Y&&this.ue();this.i("desiredSize",b,a);b=this.W;null!==b&&0!==(this.ka&1024)&&rl(this,b,"height")}}); w.defineProperty(V,{Df:"minSize"},function(){return this.Ej},function(a){var b=this.Ej;b.N(a)||(u&&w.k(a,pa,V,"minSize"),a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),this.Ej=a,this.V(),this.i("minSize",b,a))});w.defineProperty(V,{xe:"maxSize"},function(){return this.Cj},function(a){var b=this.Cj;b.N(a)||(u&&w.k(a,pa,V,"maxSize"),a=a.copy(),isNaN(a.width)&&(a.width=Infinity),isNaN(a.height)&&(a.height=Infinity),a.freeze(),this.Cj=a,this.V(),this.i("maxSize",b,a))}); -w.w(V,{Ia:"measuredBounds"},function(){return this.Xc});w.w(V,{Fa:"naturalBounds"},function(){return this.Pc},{configurable:!0});w.defineProperty(V,{margin:"margin"},function(){return this.Yq},function(a){"number"===typeof a?a=new vb(a):u&&w.k(a,vb,V,"margin");var b=this.Yq;b.N(a)||(this.Yq=a=a.da(),this.V(),this.i("margin",b,a))});w.w(V,{transform:null},function(){0!==(this.ka&2048)===!0&&Cl(this);return this.ld});w.w(V,{Of:null},function(){0!==(this.ka&4096)===!0&&Cl(this);return this.gj}); +w.w(V,{Ia:"measuredBounds"},function(){return this.Xc});w.w(V,{Fa:"naturalBounds"},function(){return this.Pc},{configurable:!0});w.defineProperty(V,{margin:"margin"},function(){return this.Yq},function(a){"number"===typeof a?a=new vb(a):u&&w.k(a,vb,V,"margin");var b=this.Yq;b.N(a)||(this.Yq=a=a.da(),this.V(),this.i("margin",b,a))});w.w(V,{transform:null},function(){0!==(this.ka&2048)===!0&&Cl(this);return this.md});w.w(V,{Of:null},function(){0!==(this.ka&4096)===!0&&Cl(this);return this.gj}); w.defineProperty(V,{alignment:"alignment"},function(){return this.Be},function(a){var b=this.Be;b.N(a)||(u&&w.k(a,Q,V,"alignment"),a.we()&&!a.Uc()&&w.l("alignment must be a real Spot or Spot.Default"),this.Be=a=a.da(),Kl(this),this.i("alignment",b,a))});w.defineProperty(V,{column:"column"},function(){return this.Wp},function(a){u&&w.o(a,V,"column");a=Math.round(a);var b=this.Wp;b!==a&&(0>a&&w.ja(a,">= 0",V,"column"),this.Wp=a,this.V(),this.i("column",b,a))}); -w.defineProperty(V,{LG:"columnSpan"},function(){return this.mj},function(a){u&&w.g(a,"number",V,"columnSpan");a=Math.round(a);var b=this.mj;b!==a&&(1>a&&w.ja(a,">= 1",V,"columnSpan"),this.mj=a,this.V(),this.i("columnSpan",b,a))});w.defineProperty(V,{kc:"row"},function(){return this.Pr},function(a){u&&w.o(a,V,"row");a=Math.round(a);var b=this.Pr;b!==a&&(0>a&&w.ja(a,">= 0",V,"row"),this.Pr=a,this.V(),this.i("row",b,a))}); +w.defineProperty(V,{NG:"columnSpan"},function(){return this.mj},function(a){u&&w.g(a,"number",V,"columnSpan");a=Math.round(a);var b=this.mj;b!==a&&(1>a&&w.ja(a,">= 1",V,"columnSpan"),this.mj=a,this.V(),this.i("columnSpan",b,a))});w.defineProperty(V,{kc:"row"},function(){return this.Pr},function(a){u&&w.o(a,V,"row");a=Math.round(a);var b=this.Pr;b!==a&&(0>a&&w.ja(a,">= 0",V,"row"),this.Pr=a,this.V(),this.i("row",b,a))}); w.defineProperty(V,{rowSpan:"rowSpan"},function(){return this.Kj},function(a){u&&w.g(a,"number",V,"rowSpan");a=Math.round(a);var b=this.Kj;b!==a&&(1>a&&w.ja(a,">= 1",V,"rowSpan"),this.Kj=a,this.V(),this.i("rowSpan",b,a))});w.defineProperty(V,{Yj:"alignmentFocus"},function(){return this.Pp},function(a){var b=this.Pp;b.N(a)||(u&&w.k(a,Q,V,"alignmentFocus"),a.we()&&!a.Uc()&&w.l("alignmentFocus must be a real Spot or Spot.Default"),this.Pp=a=a.da(),this.V(),this.i("alignmentFocus",b,a))}); -w.defineProperty(V,{sd:"portId"},function(){return this.Ar},function(a){var b=this.Ar;if(b!==a){u&&null!==a&&w.g(a,"string",V,"portId");var c=this.W;null===c||c instanceof D||(w.l("portID being set on a Link: "+a),c=null);null!==b&&null!==c&&Ql(c,this);this.Ar=a;if(null!==a&&c){c.Jh=!0;null===c.yd&&Rl(c);var d=this.sd;null!==d&&c.yd.add(d,this)}this.i("portId",b,a)}});function Sl(a){var b={value:null};Tl(a,b);return b.value} +w.defineProperty(V,{td:"portId"},function(){return this.Ar},function(a){var b=this.Ar;if(b!==a){u&&null!==a&&w.g(a,"string",V,"portId");var c=this.W;null===c||c instanceof D||(w.l("portID being set on a Link: "+a),c=null);null!==b&&null!==c&&Ql(c,this);this.Ar=a;if(null!==a&&c){c.Kh=!0;null===c.yd&&Rl(c);var d=this.td;null!==d&&c.yd.add(d,this)}this.i("portId",b,a)}});function Sl(a){var b={value:null};Tl(a,b);return b.value} function Tl(a,b){var c=a.S;return null===c||!Tl(c,b)&&a.visible?(b.value=a,!1):!0}function Nl(a){var b=a.W;b instanceof D&&(a=a.h,null===a||a.na.ob||b.zf())}w.defineProperty(V,{Eb:"toSpot"},function(){return null!==this.U?this.U.Vj:Pb},function(a){null===this.U&&this.Ne();var b=this.U.Vj;b.N(a)||(u&&w.k(a,Q,V,"toSpot"),a=a.da(),this.U.Vj=a,this.i("toSpot",b,a),Nl(this))}); w.defineProperty(V,{Nl:"toEndSegmentLength"},function(){return null!==this.U?this.U.Tj:10},function(a){null===this.U&&this.Ne();var b=this.U.Tj;b!==a&&(u&&w.g(a,"number",V,"toEndSegmentLength"),0>a&&w.ja(a,">= 0",V,"toEndSegmentLength"),this.U.Tj=a,this.i("toEndSegmentLength",b,a),Nl(this))}); w.defineProperty(V,{Qt:"toEndSegmentDirection"},function(){return null!==this.U?this.U.Sj:pl},function(a){null===this.U&&this.Ne();var b=this.U.Sj;b!==a&&(u&&w.Ca(a,D,V,"toEndSegmentDirection"),this.U.Sj=a,this.i("toEndSegmentDirection",b,a),Nl(this))});w.defineProperty(V,{St:"toShortLength"},function(){return null!==this.U?this.U.Uj:0},function(a){null===this.U&&this.Ne();var b=this.U.Uj;b!==a&&(u&&w.g(a,"number",V,"toShortLength"),this.U.Uj=a,this.i("toShortLength",b,a),Nl(this))}); -w.defineProperty(V,{AF:"toLinkable"},function(){return this.ks},function(a){var b=this.ks;b!==a&&(u&&null!==a&&w.g(a,"boolean",V,"toLinkable"),this.ks=a,this.i("toLinkable",b,a))});w.defineProperty(V,{iJ:"toMaxLinks"},function(){return this.ls},function(a){var b=this.ls;b!==a&&(u&&w.g(a,"number",V,"toMaxLinks"),0>a&&w.ja(a,">= 0",V,"toMaxLinks"),this.ls=a,this.i("toMaxLinks",b,a))}); +w.defineProperty(V,{CF:"toLinkable"},function(){return this.ks},function(a){var b=this.ks;b!==a&&(u&&null!==a&&w.g(a,"boolean",V,"toLinkable"),this.ks=a,this.i("toLinkable",b,a))});w.defineProperty(V,{kJ:"toMaxLinks"},function(){return this.ls},function(a){var b=this.ls;b!==a&&(u&&w.g(a,"number",V,"toMaxLinks"),0>a&&w.ja(a,">= 0",V,"toMaxLinks"),this.ls=a,this.i("toMaxLinks",b,a))}); w.defineProperty(V,{Cb:"fromSpot"},function(){return null!==this.U?this.U.tj:Pb},function(a){null===this.U&&this.Ne();var b=this.U.tj;b.N(a)||(u&&w.k(a,Q,V,"fromSpot"),a=a.da(),this.U.tj=a,this.i("fromSpot",b,a),Nl(this))}); w.defineProperty(V,{sl:"fromEndSegmentLength"},function(){return null!==this.U?this.U.rj:10},function(a){null===this.U&&this.Ne();var b=this.U.rj;b!==a&&(u&&w.g(a,"number",V,"fromEndSegmentLength"),0>a&&w.ja(a,">= 0",V,"fromEndSegmentLength"),this.U.rj=a,this.i("fromEndSegmentLength",b,a),Nl(this))}); w.defineProperty(V,{Xs:"fromEndSegmentDirection"},function(){return null!==this.U?this.U.qj:pl},function(a){null===this.U&&this.Ne();var b=this.U.qj;b!==a&&(u&&w.Ca(a,D,V,"fromEndSegmentDirection"),this.U.qj=a,this.i("fromEndSegmentDirection",b,a),Nl(this))});w.defineProperty(V,{Ys:"fromShortLength"},function(){return null!==this.U?this.U.sj:0},function(a){null===this.U&&this.Ne();var b=this.U.sj;b!==a&&(u&&w.g(a,"number",V,"fromShortLength"),this.U.sj=a,this.i("fromShortLength",b,a),Nl(this))}); -w.defineProperty(V,{bE:"fromLinkable"},function(){return this.pq},function(a){var b=this.pq;b!==a&&(u&&null!==a&&w.g(a,"boolean",V,"fromLinkable"),this.pq=a,this.i("fromLinkable",b,a))});w.defineProperty(V,{uH:"fromMaxLinks"},function(){return this.qq},function(a){var b=this.qq;b!==a&&(u&&w.g(a,"number",V,"fromMaxLinks"),0>a&&w.ja(a,">= 0",V,"fromMaxLinks"),this.qq=a,this.i("fromMaxLinks",b,a))}); +w.defineProperty(V,{cE:"fromLinkable"},function(){return this.pq},function(a){var b=this.pq;b!==a&&(u&&null!==a&&w.g(a,"boolean",V,"fromLinkable"),this.pq=a,this.i("fromLinkable",b,a))});w.defineProperty(V,{wH:"fromMaxLinks"},function(){return this.qq},function(a){var b=this.qq;b!==a&&(u&&w.g(a,"number",V,"fromMaxLinks"),0>a&&w.ja(a,">= 0",V,"fromMaxLinks"),this.qq=a,this.i("fromMaxLinks",b,a))}); w.defineProperty(V,{cursor:"cursor"},function(){return this.cq},function(a){var b=this.cq;b!==a&&(w.g(a,"string",V,"cursor"),this.cq=a,this.i("cursor",b,a))});w.defineProperty(V,{click:"click"},function(){return null!==this.T?this.T.ii:null},function(a){null===this.T&&ml(this);var b=this.T.ii;b!==a&&(null!==a&&w.g(a,"function",V,"click"),this.T.ii=a,this.i("click",b,a))}); -w.defineProperty(V,{Os:"doubleClick"},function(){return null!==this.T?this.T.pi:null},function(a){null===this.T&&ml(this);var b=this.T.pi;b!==a&&(null!==a&&w.g(a,"function",V,"doubleClick"),this.T.pi=a,this.i("doubleClick",b,a))});w.defineProperty(V,{qz:"contextClick"},function(){return null!==this.T?this.T.ki:null},function(a){null===this.T&&ml(this);var b=this.T.ki;b!==a&&(null!==a&&w.g(a,"function",V,"contextClick"),this.T.ki=a,this.i("contextClick",b,a))}); -w.defineProperty(V,{FE:"mouseEnter"},function(){return null!==this.T?this.T.ir:null},function(a){null===this.T&&ml(this);var b=this.T.ir;b!==a&&(null!==a&&w.g(a,"function",V,"mouseEnter"),this.T.ir=a,this.i("mouseEnter",b,a))});w.defineProperty(V,{GE:"mouseLeave"},function(){return null!==this.T?this.T.jr:null},function(a){null===this.T&&ml(this);var b=this.T.jr;b!==a&&(null!==a&&w.g(a,"function",V,"mouseLeave"),this.T.jr=a,this.i("mouseLeave",b,a))}); -w.defineProperty(V,{cA:"mouseOver"},function(){return null!==this.T?this.T.zi:null},function(a){null===this.T&&ml(this);var b=this.T.zi;b!==a&&(null!==a&&w.g(a,"function",V,"mouseOver"),this.T.zi=a,this.i("mouseOver",b,a))});w.defineProperty(V,{bA:"mouseHover"},function(){return null!==this.T?this.T.yi:null},function(a){null===this.T&&ml(this);var b=this.T.yi;b!==a&&(null!==a&&w.g(a,"function",V,"mouseHover"),this.T.yi=a,this.i("mouseHover",b,a))}); -w.defineProperty(V,{aA:"mouseHold"},function(){return null!==this.T?this.T.xi:null},function(a){null===this.T&&ml(this);var b=this.T.xi;b!==a&&(null!==a&&w.g(a,"function",V,"mouseHold"),this.T.xi=a,this.i("mouseHold",b,a))});w.defineProperty(V,{rI:"mouseDragEnter"},function(){return null!==this.T?this.T.gr:null},function(a){null===this.T&&ml(this);var b=this.T.gr;b!==a&&(null!==a&&w.g(a,"function",V,"mouseDragEnter"),this.T.gr=a,this.i("mouseDragEnter",b,a))}); -w.defineProperty(V,{sI:"mouseDragLeave"},function(){return null!==this.T?this.T.hr:null},function(a){null===this.T&&ml(this);var b=this.T.hr;b!==a&&(null!==a&&w.g(a,"function",V,"mouseDragLeave"),this.T.hr=a,this.i("mouseDragLeave",b,a))});w.defineProperty(V,{$z:"mouseDrop"},function(){return null!==this.T?this.T.wi:null},function(a){null===this.T&&ml(this);var b=this.T.wi;b!==a&&(null!==a&&w.g(a,"function",V,"mouseDrop"),this.T.wi=a,this.i("mouseDrop",b,a))}); -w.defineProperty(V,{fD:"actionDown"},function(){return null!==this.T?this.T.Lp:null},function(a){null===this.T&&ml(this);var b=this.T.Lp;b!==a&&(null!==a&&w.g(a,"function",V,"actionDown"),this.T.Lp=a,this.i("actionDown",b,a))});w.defineProperty(V,{gD:"actionMove"},function(){return null!==this.T?this.T.Mp:null},function(a){null===this.T&&ml(this);var b=this.T.Mp;b!==a&&(null!==a&&w.g(a,"function",V,"actionMove"),this.T.Mp=a,this.i("actionMove",b,a))}); -w.defineProperty(V,{hD:"actionUp"},function(){return null!==this.T?this.T.Np:null},function(a){null===this.T&&ml(this);var b=this.T.Np;b!==a&&(null!==a&&w.g(a,"function",V,"actionUp"),this.T.Np=a,this.i("actionUp",b,a))});w.defineProperty(V,{eD:"actionCancel"},function(){return null!==this.T?this.T.Kp:null},function(a){null===this.T&&ml(this);var b=this.T.Kp;b!==a&&(null!==a&&w.g(a,"function",V,"actionCancel"),this.T.Kp=a,this.i("actionCancel",b,a))}); -w.defineProperty(V,{IA:"toolTip"},function(){return null!==this.T?this.T.Gi:null},function(a){null===this.T&&ml(this);var b=this.T.Gi;b!==a&&(null!==a&&w.k(a,da,V,"toolTip"),this.T.Gi=a,this.i("toolTip",b,a))});w.defineProperty(V,{contextMenu:"contextMenu"},function(){return null!==this.T?this.T.li:null},function(a){null===this.T&&ml(this);var b=this.T.li;b!==a&&(null!==a&&w.k(a,da,V,"contextMenu"),this.T.li=a,this.i("contextMenu",b,a))}); +w.defineProperty(V,{Os:"doubleClick"},function(){return null!==this.T?this.T.pi:null},function(a){null===this.T&&ml(this);var b=this.T.pi;b!==a&&(null!==a&&w.g(a,"function",V,"doubleClick"),this.T.pi=a,this.i("doubleClick",b,a))});w.defineProperty(V,{rz:"contextClick"},function(){return null!==this.T?this.T.ki:null},function(a){null===this.T&&ml(this);var b=this.T.ki;b!==a&&(null!==a&&w.g(a,"function",V,"contextClick"),this.T.ki=a,this.i("contextClick",b,a))}); +w.defineProperty(V,{HE:"mouseEnter"},function(){return null!==this.T?this.T.ir:null},function(a){null===this.T&&ml(this);var b=this.T.ir;b!==a&&(null!==a&&w.g(a,"function",V,"mouseEnter"),this.T.ir=a,this.i("mouseEnter",b,a))});w.defineProperty(V,{IE:"mouseLeave"},function(){return null!==this.T?this.T.jr:null},function(a){null===this.T&&ml(this);var b=this.T.jr;b!==a&&(null!==a&&w.g(a,"function",V,"mouseLeave"),this.T.jr=a,this.i("mouseLeave",b,a))}); +w.defineProperty(V,{dA:"mouseOver"},function(){return null!==this.T?this.T.zi:null},function(a){null===this.T&&ml(this);var b=this.T.zi;b!==a&&(null!==a&&w.g(a,"function",V,"mouseOver"),this.T.zi=a,this.i("mouseOver",b,a))});w.defineProperty(V,{cA:"mouseHover"},function(){return null!==this.T?this.T.yi:null},function(a){null===this.T&&ml(this);var b=this.T.yi;b!==a&&(null!==a&&w.g(a,"function",V,"mouseHover"),this.T.yi=a,this.i("mouseHover",b,a))}); +w.defineProperty(V,{bA:"mouseHold"},function(){return null!==this.T?this.T.xi:null},function(a){null===this.T&&ml(this);var b=this.T.xi;b!==a&&(null!==a&&w.g(a,"function",V,"mouseHold"),this.T.xi=a,this.i("mouseHold",b,a))});w.defineProperty(V,{tI:"mouseDragEnter"},function(){return null!==this.T?this.T.gr:null},function(a){null===this.T&&ml(this);var b=this.T.gr;b!==a&&(null!==a&&w.g(a,"function",V,"mouseDragEnter"),this.T.gr=a,this.i("mouseDragEnter",b,a))}); +w.defineProperty(V,{uI:"mouseDragLeave"},function(){return null!==this.T?this.T.hr:null},function(a){null===this.T&&ml(this);var b=this.T.hr;b!==a&&(null!==a&&w.g(a,"function",V,"mouseDragLeave"),this.T.hr=a,this.i("mouseDragLeave",b,a))});w.defineProperty(V,{aA:"mouseDrop"},function(){return null!==this.T?this.T.wi:null},function(a){null===this.T&&ml(this);var b=this.T.wi;b!==a&&(null!==a&&w.g(a,"function",V,"mouseDrop"),this.T.wi=a,this.i("mouseDrop",b,a))}); +w.defineProperty(V,{gD:"actionDown"},function(){return null!==this.T?this.T.Lp:null},function(a){null===this.T&&ml(this);var b=this.T.Lp;b!==a&&(null!==a&&w.g(a,"function",V,"actionDown"),this.T.Lp=a,this.i("actionDown",b,a))});w.defineProperty(V,{hD:"actionMove"},function(){return null!==this.T?this.T.Mp:null},function(a){null===this.T&&ml(this);var b=this.T.Mp;b!==a&&(null!==a&&w.g(a,"function",V,"actionMove"),this.T.Mp=a,this.i("actionMove",b,a))}); +w.defineProperty(V,{iD:"actionUp"},function(){return null!==this.T?this.T.Np:null},function(a){null===this.T&&ml(this);var b=this.T.Np;b!==a&&(null!==a&&w.g(a,"function",V,"actionUp"),this.T.Np=a,this.i("actionUp",b,a))});w.defineProperty(V,{fD:"actionCancel"},function(){return null!==this.T?this.T.Kp:null},function(a){null===this.T&&ml(this);var b=this.T.Kp;b!==a&&(null!==a&&w.g(a,"function",V,"actionCancel"),this.T.Kp=a,this.i("actionCancel",b,a))}); +w.defineProperty(V,{JA:"toolTip"},function(){return null!==this.T?this.T.Gi:null},function(a){null===this.T&&ml(this);var b=this.T.Gi;b!==a&&(null!==a&&w.k(a,da,V,"toolTip"),this.T.Gi=a,this.i("toolTip",b,a))});w.defineProperty(V,{contextMenu:"contextMenu"},function(){return null!==this.T?this.T.li:null},function(a){null===this.T&&ml(this);var b=this.T.li;b!==a&&(null!==a&&w.k(a,da,V,"contextMenu"),this.T.li=a,this.i("contextMenu",b,a))}); V.prototype.bind=V.prototype.bind=function(a){a.tg=this;var b=this.To();null!==b&&Ul(b)&&w.l("Cannot add a Binding to a template that has already been copied: "+a);null===this.Oc&&(this.Oc=new K(of));this.Oc.add(a)};V.prototype.findTemplateBinder=V.prototype.To=function(){for(var a=this instanceof H?this:this.S;null!==a;){if(null!==a.Rl)return a;a=a.S}return null};V.fromSvg=V.fromSVG=function(a){return Vl(a)};V.prototype.setProperties=function(a){w.Ht(this,a)};var Wl; V.make=Wl=function(a,b){var c=arguments,d=null,e=null;if("function"===typeof a)e=a;else if("string"===typeof a){var g=Xl.ya(a);"function"===typeof g?(c=w.il(arguments),d=g(c)):e=ba[a]}null===d&&(void 0===e&&(d=window.$,void 0!==d&&void 0!==d.noop&&w.l("GraphObject.make failed to complete. Is it conflicting with another $ var? (such as jQuery)"),w.l("GraphObject.make failed to complete, it may be conflicting with another var.")),null!==e&&e.constructor||w.l("GraphObject.make requires a class function or class name, not: "+ a),d=new e);g=1;if(d instanceof z&&1e)&&w.l("Must specify non-negative integer row for RowColumnDefinition "+ b),a.le=!0,a.index=e):void 0!==b.column&&(e=b.column,(void 0===e||null===e||Infinity===e||isNaN(e)||0>e)&&w.l("Must specify non-negative integer column for RowColumnDefinition "+b),a.le=!1,a.index=e);e=new xa;for(c in b)"row"!==c&&"column"!==c&&(e[c]=b[c]);w.Ht(a,e)}else w.Ht(a,b);else w.l('Unknown initializer "'+b+'" for object being constructed by GraphObject.make: '+a)}var Xl=new ta("string","function"); V.getBuilders=function(){var a=new ta("string","function"),b;for(b in Xl)if(b!==b.toLowerCase()){var c=Xl[b];"function"===typeof c&&a.add(b,c)}a.freeze();return a};var Im;V.defineBuilder=Im=function(a,b){w.g(a,"string",V,"defineBuilder:name");w.g(b,"function",V,"defineBuilder:func");var c=a.toLowerCase();""!==a&&"none"!==c&&a!==c||w.l("Shape.defineFigureGenerator name must not be empty or None or all-lower-case: "+a);Xl.add(a,b)};var Jm; V.takeBuilderArgument=Jm=function(a,b,c){void 0===c&&(c=null);var d=a[1];if("function"===typeof c?c(d):"string"===typeof d)return a.splice(1,1),d;if(void 0===b)throw Error("no "+("function"===typeof c?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return b}; -Im("Button",function(){var a=new oa(Re);a.addColorStop(0,"white");a.addColorStop(1,"lightgray");var b=new oa(Re);b.addColorStop(0,"white");b.addColorStop(1,"dodgerblue");a=Wl(H,gj,{zw:!0},{_buttonFillNormal:a,_buttonStrokeNormal:"gray",_buttonFillOver:b,_buttonStrokeOver:"blue"},Wl(Y,{name:"ButtonBorder",Kb:"Rectangle",C:new Q(0,0,2.761423749153968,2.761423749153968),D:new Q(1,1,-2.761423749153968,-2.761423749153968),fill:a,stroke:"gray"}));a.FE=function(a,b){var e=b.te("ButtonBorder");if(e instanceof -Y){var g=b._buttonFillOver;b._buttonFillNormal=e.fill;e.fill=g;g=b._buttonStrokeOver;b._buttonStrokeNormal=e.stroke;e.stroke=g}};a.GE=function(a,b){var e=b.te("ButtonBorder");e instanceof Y&&(e.fill=b._buttonFillNormal,e.stroke=b._buttonStrokeNormal)};return a}); -Im("TreeExpanderButton",function(){var a=Wl("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Wl(Y,{name:"ButtonIcon",Kb:"MinusLine",Ba:O.Ip},(new of("figure","isTreeExpanded",function(a,c){var d=c.S;return a?d._treeExpandedFigure:d._treeCollapsedFigure})).Ow()),{visible:!1},(new of("visible","isTreeLeaf",function(a){return!a})).Ow());a.click=function(a,c){var d=c.W;d instanceof da&&(d=d.Xh);if(d instanceof D){var e=d.h;if(null!==e){e=e.Jb;if(d.bd){if(!e.canCollapseTree(d))return}else if(!e.canExpandTree(d))return; +Im("Button",function(){var a=new oa(Re);a.addColorStop(0,"white");a.addColorStop(1,"lightgray");var b=new oa(Re);b.addColorStop(0,"white");b.addColorStop(1,"dodgerblue");a=Wl(H,gj,{Aw:!0},{_buttonFillNormal:a,_buttonStrokeNormal:"gray",_buttonFillOver:b,_buttonStrokeOver:"blue"},Wl(Y,{name:"ButtonBorder",Kb:"Rectangle",C:new Q(0,0,2.761423749153968,2.761423749153968),D:new Q(1,1,-2.761423749153968,-2.761423749153968),fill:a,stroke:"gray"}));a.HE=function(a,b){var e=b.te("ButtonBorder");if(e instanceof +Y){var g=b._buttonFillOver;b._buttonFillNormal=e.fill;e.fill=g;g=b._buttonStrokeOver;b._buttonStrokeNormal=e.stroke;e.stroke=g}};a.IE=function(a,b){var e=b.te("ButtonBorder");e instanceof Y&&(e.fill=b._buttonFillNormal,e.stroke=b._buttonStrokeNormal)};return a}); +Im("TreeExpanderButton",function(){var a=Wl("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Wl(Y,{name:"ButtonIcon",Kb:"MinusLine",Ba:O.Ip},(new of("figure","isTreeExpanded",function(a,c){var d=c.S;return a?d._treeExpandedFigure:d._treeCollapsedFigure})).Pw()),{visible:!1},(new of("visible","isTreeLeaf",function(a){return!a})).Pw());a.click=function(a,c){var d=c.W;d instanceof da&&(d=d.Yh);if(d instanceof D){var e=d.h;if(null!==e){e=e.Jb;if(d.bd){if(!e.canCollapseTree(d))return}else if(!e.canExpandTree(d))return; a.$c=!0;d.bd?e.collapseTree(d):e.expandTree(d)}}};return a}); -Im("SubGraphExpanderButton",function(){var a=Wl("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Wl(Y,{name:"ButtonIcon",Kb:"MinusLine",Ba:O.Ip},(new of("figure","isSubGraphExpanded",function(a,c){var d=c.S;return a?d._subGraphExpandedFigure:d._subGraphCollapsedFigure})).Ow()));a.click=function(a,c){var d=c.W;d instanceof da&&(d=d.Xh);if(d instanceof F){var e=d.h;if(null!==e){e=e.Jb;if(d.me){if(!e.canCollapseSubGraph(d))return}else if(!e.canExpandSubGraph(d))return;a.$c= +Im("SubGraphExpanderButton",function(){var a=Wl("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Wl(Y,{name:"ButtonIcon",Kb:"MinusLine",Ba:O.Ip},(new of("figure","isSubGraphExpanded",function(a,c){var d=c.S;return a?d._subGraphExpandedFigure:d._subGraphCollapsedFigure})).Pw()));a.click=function(a,c){var d=c.W;d instanceof da&&(d=d.Yh);if(d instanceof F){var e=d.h;if(null!==e){e=e.Jb;if(d.me){if(!e.canCollapseSubGraph(d))return}else if(!e.canExpandSubGraph(d))return;a.$c= !0;d.me?e.collapseSubGraph(d):e.expandSubGraph(d)}}};return a});Im("ContextMenuButton",function(){var a=Wl("Button");a.stretch=ll;var b=a.te("ButtonBorder");b instanceof Y&&(b.Kb="Rectangle",b.C=new Q(0,0,2,3),b.D=new Q(1,1,-2,-2));return a}); -Im("PanelExpanderButton",function(a){var b=Jm(a,"COLLAPSIBLE");a=Wl("Button",Wl(Y,"TriangleUp",{Ba:new pa(6,4)},(new of("figure","visible",function(a){return a?"TriangleUp":"TriangleDown"})).Ow(b)));var c=a.te("ButtonBorder");c instanceof Y&&(c.stroke=null,c.fill="transparent");a.click=function(a,c){var g=c.h;if(null!==g){var h=c.W.te(b);null!==h&&(g.ec("Collapse/Expand Panel"),h.visible=!h.visible,g.fe("Collapse/Expand Panel"))}};return a}); +Im("PanelExpanderButton",function(a){var b=Jm(a,"COLLAPSIBLE");a=Wl("Button",Wl(Y,"TriangleUp",{Ba:new pa(6,4)},(new of("figure","visible",function(a){return a?"TriangleUp":"TriangleDown"})).Pw(b)));var c=a.te("ButtonBorder");c instanceof Y&&(c.stroke=null,c.fill="transparent");a.click=function(a,c){var g=c.h;if(null!==g){var h=c.W.te(b);null!==h&&(g.ec("Collapse/Expand Panel"),h.visible=!h.visible,g.fe("Collapse/Expand Panel"))}};return a}); function nl(){this.li=this.Gi=this.Kp=this.Np=this.Mp=this.Lp=this.wi=this.hr=this.gr=this.xi=this.yi=this.zi=this.jr=this.ir=this.ki=this.pi=this.ii=null}nl.prototype.copy=function(){var a=new nl;a.ii=this.ii;a.pi=this.pi;a.ki=this.ki;a.ir=this.ir;a.jr=this.jr;a.zi=this.zi;a.yi=this.yi;a.xi=this.xi;a.gr=this.gr;a.hr=this.hr;a.wi=this.wi;a.Lp=this.Lp;a.Mp=this.Mp;a.Np=this.Np;a.Kp=this.Kp;a.Gi=this.Gi;a.li=this.li;return a}; -function H(a){V.call(this);void 0===a?0===arguments.length?this.ia=Nh:w.l("invalid argument to Panel constructor: undefined"):(w.Ca(a,H,H,"type"),this.ia=a);this.ua=new K(V);this.Ze=O.Jp;this.Wg=!1;this.ia===jj&&(this.Wg=!0);this.zq=!1;this.fq=Pc;this.oi=jl;this.ia===ga&&Km(this);this.Co=Kh;this.tq=(new pa(10,10)).freeze();this.uq=O.ok;this.Rl=this.Dh=null;this.Nq=NaN;this.mg=this.ti=null;this.co="category";this.lg=null;this.Ii=new x(NaN,NaN,NaN,NaN);this.Bm=null;this.Jh=!1;this.Qr=null}w.Na(H,V); -w.Yh(H);w.la("Panel",H);function Km(a){a.nj=O.Jp;a.Gh=1;a.ni=null;a.Wl=null;a.Fh=1;a.Eh=null;a.Vl=null;a.Md=[];a.Ed=[];a.um=Lm;a.Tl=Lm;a.Hi=0;a.ui=0} -H.prototype.cloneProtected=function(a){V.prototype.cloneProtected.call(this,a);a.ia=this.ia;a.Ze=this.Ze.da();a.Wg=this.Wg;a.zq=this.zq;a.fq=this.fq.da();a.oi=this.oi;if(a.ia===ga){a.nj=this.nj.da();a.Gh=this.Gh;a.ni=this.ni;a.Wl=this.Wl;a.Fh=this.Fh;a.Eh=this.Eh;a.Vl=this.Vl;var b=[];if(0a&&w.ja(a,">= 0",H,"padding"),a=new vb(a)):(w.k(a,vb,H,"padding"),0>a.left&&w.ja(a.left,">= 0",H,"padding:value.left"),0>a.right&&w.ja(a.right,">= 0",H,"padding:value.right"),0>a.top&&w.ja(a.top,">= 0",H,"padding:value.top"),0>a.bottom&&w.ja(a.bottom,">= 0",H,"padding:value.bottom"));var b=this.Ze;b.N(a)||(this.Ze=a=a.da(),this.V(),this.i("padding",b,a))}); w.defineProperty(H,{ml:"defaultAlignment"},function(){return this.fq},function(a){var b=this.fq;b.N(a)||(u&&w.k(a,Q,H,"defaultAlignment"),this.fq=a=a.da(),this.V(),this.i("defaultAlignment",b,a))});w.defineProperty(H,{Pd:"defaultStretch"},function(){return this.oi},function(a){var b=this.oi;b!==a&&(w.Ca(a,V,H,"defaultStretch"),this.oi=a,this.V(),this.i("defaultStretch",b,a))}); -w.defineProperty(H,{$J:"defaultSeparatorPadding"},function(){return void 0===this.nj?O.Jp:this.nj},function(a){if(void 0!==this.nj){"number"===typeof a?a=new vb(a):u&&w.k(a,vb,H,"defaultSeparatorPadding");var b=this.nj;b.N(a)||(this.nj=a=a.da(),this.i("defaultSeparatorPadding",b,a))}}); -w.defineProperty(H,{YJ:"defaultRowSeparatorStroke"},function(){return void 0===this.ni?null:this.ni},function(a){var b=this.ni;b!==a&&(null===a||"string"===typeof a||a instanceof oa)&&(a instanceof oa&&a.freeze(),this.ni=a,this.i("defaultRowSeparatorStroke",b,a))});w.defineProperty(H,{ZJ:"defaultRowSeparatorStrokeWidth"},function(){return void 0===this.Gh?1:this.Gh},function(a){if(void 0!==this.Gh){var b=this.Gh;b!==a&&isFinite(a)&&0<=a&&(this.Gh=a,this.i("defaultRowSeparatorStrokeWidth",b,a))}}); -w.defineProperty(H,{XJ:"defaultRowSeparatorDashArray"},function(){return void 0===this.Wl?null:this.Wl},function(a){if(void 0!==this.Wl){var b=this.Wl;if(b!==a){null===a||Array.isArray(a)||w.tc(a,"Array",H,"defaultRowSeparatorDashArray:value");if(null!==a){for(var c=a.length,d=0,e=0;e=c&&(c=1);var d=this.uw,e=d.width,d=d.height,g=this.Fa,h=g.width,g=g.height,k=Math.ceil(h/e),l=Math.ceil(g/d),m=this.iE;a.save();a.beginPath();a.rect(0,0,h,g);a.clip();for(var n=[],p=this.ua.p,q=p.length,r=0;re*s*c))break}a.stroke()}else if("LineH"===B.Kb){a.lineWidth= -B.pb;El(this,a,B.stroke,!1,!1);a.beginPath();for(N=y=Math.floor(-m.y/d);N<=y+l&&!(J=N*d+m.y,0<=J&&J<=g&&Mm(N,s,t)&&(v&&!A?ql(a,0,J,h,J,E,B.kd):(a.moveTo(0,J),a.lineTo(h,J)),2>d*s*c));N++);a.stroke()}else if("BarV"===B.Kb)for(El(this,a,B.fill,!0,!1),B=B.width,isNaN(B)&&(B=e),N=y=Math.floor(-m.x/e);N<=y+k&&!(J=N*e+m.x,0<=J&&Je*s*c));N++);else if("BarH"===B.Kb)for(El(this,a,B.fill,!0,!1),B=B.height,isNaN(B)&&(B=d),N=y=Math.floor(-m.y/d);N<=y+l&&!(J=N*d+m.y,0<=J&& -J<=g&&Mm(N,s,t)&&(a.fillRect(0,J,h,B),2>d*s*c));N++);v&&(void 0!==a.setLineDash?(a.setLineDash(w.zh),a.lineDashOffset=0):void 0!==a.webkitLineDash?(a.webkitLineDash=w.zh,a.webkitLineDashOffset=0):void 0!==a.mozDash&&(a.mozDash=null,a.mozDashOffset=0))}}a.restore();ca(b,a,!1)}else{this.ia===ga&&(a.lineCap="butt",Nm(this,a,!0,this.Md,!0),Nm(this,a,!1,this.Ed,!0),Om(this,a,!0,this.Md),Om(this,a,!1,this.Ed),Nm(this,a,!0,this.Md,!1),Nm(this,a,!1,this.Ed,!1));(c=this.sE)&&a.save();e=this.Rf();d=this.ua.p; -h=d.length;for(g=0;g=c&&(c=1);var d=this.vw,e=d.width,d=d.height,g=this.Fa,h=g.width,g=g.height,k=Math.ceil(h/e),l=Math.ceil(g/d),m=this.jE;a.save();a.beginPath();a.rect(0,0,h,g);a.clip();for(var n=[],p=this.ua.p,q=p.length,r=0;re*s*c))break}a.stroke()}else if("LineH"===B.Kb){a.lineWidth= +B.pb;El(this,a,B.stroke,!1,!1);a.beginPath();for(N=y=Math.floor(-m.y/d);N<=y+l&&!(J=N*d+m.y,0<=J&&J<=g&&Mm(N,s,t)&&(v&&!A?ql(a,0,J,h,J,E,B.ld):(a.moveTo(0,J),a.lineTo(h,J)),2>d*s*c));N++);a.stroke()}else if("BarV"===B.Kb)for(El(this,a,B.fill,!0,!1),B=B.width,isNaN(B)&&(B=e),N=y=Math.floor(-m.x/e);N<=y+k&&!(J=N*e+m.x,0<=J&&Je*s*c));N++);else if("BarH"===B.Kb)for(El(this,a,B.fill,!0,!1),B=B.height,isNaN(B)&&(B=d),N=y=Math.floor(-m.y/d);N<=y+l&&!(J=N*d+m.y,0<=J&& +J<=g&&Mm(N,s,t)&&(a.fillRect(0,J,h,B),2>d*s*c));N++);v&&(void 0!==a.setLineDash?(a.setLineDash(w.zh),a.lineDashOffset=0):void 0!==a.webkitLineDash?(a.webkitLineDash=w.zh,a.webkitLineDashOffset=0):void 0!==a.mozDash&&(a.mozDash=null,a.mozDashOffset=0))}}a.restore();ca(b,a,!1)}else{this.ia===ga&&(a.lineCap="butt",Nm(this,a,!0,this.Md,!0),Nm(this,a,!1,this.Ed,!0),Om(this,a,!0,this.Md),Om(this,a,!1,this.Ed),Nm(this,a,!0,this.Md,!1),Nm(this,a,!1,this.Ed,!1));(c=this.tE)&&a.save();e=this.Rf();d=this.ua.p; +h=d.length;for(g=0;gg.height&&(m-=r-g.height):r>g.width&&(m-=r-g.width);l=l.position+m/2;b.lineWidth=m;r=a.padding;c?(l+=r.top,m=r.left,r=g.width-r.right,n&&!p?ql(b,m,l,r,l,q,0):(b.moveTo(m,l),b.lineTo(r,l))):(l+=r.left,m=r.top,r=g.height-r.bottom,n&&!p?ql(b,l,m,l,r,q,0):(b.moveTo(l,m),b.lineTo(l,r)));b.stroke();n&&(void 0!==b.setLineDash?(b.setLineDash(w.zh),b.lineDashOffset=0):void 0!==b.webkitLineDash?(b.webkitLineDash=w.zh,b.webkitLineDashOffset=0):void 0!==b.mozDash&&(b.mozDash=null,b.mozDashOffset=0))}}}} -function Nm(a,b,c,d,e){for(var g=d.length,h=a.ca,k=0;km)){var n=l.zg(),p=l.Ap;isNaN(p)&&(p=c?a.Gh:a.Fh);var q=l.zp;null===q&&(q=c?a.ni:a.Eh);null===q&&(p=0);n-=p;p=l.position+p;n+=l.Xa;p+n>m&&(n=m-p);0>=n||(m=a.padding,El(a,b,l.background,!0,!1),c?b.fillRect(m.left,p+m.top,h.width-(m.left+m.right),n):b.fillRect(p+m.left,m.top,n,h.height-(m.top+m.bottom)))}}}} +function Nm(a,b,c,d,e){for(var g=d.length,h=a.ca,k=0;km)){var n=l.zg(),p=l.Ap;isNaN(p)&&(p=c?a.Hh:a.Gh);var q=l.zp;null===q&&(q=c?a.ni:a.Fh);null===q&&(p=0);n-=p;p=l.position+p;n+=l.Xa;p+n>m&&(n=m-p);0>=n||(m=a.padding,El(a,b,l.background,!0,!1),c?b.fillRect(m.left,p+m.top,h.width-(m.left+m.right),n):b.fillRect(p+m.left,m.top,n,h.height-(m.top+m.bottom)))}}}} function Mm(a,b,c){if(0!==a%b)return!1;b=c.length;for(var d=0;dpd&&(Dc=pd),fa.Xa+=Dc,pd=Math.max(pd-Dc,0));1!==ma.mj||Zd!==zh&&Zd!==kl||(fa=this.od(Uc),Dc=Math.max(cf-fa.Xa,0),Dc>Cc&&(Dc=Cc),fa.Xa+=Dc,Cc=Math.max(Cc-Dc,0));tg&&ma.$o()}}}w.wa(Ug);for(var sc=0,$d=0,La=this.Js,ha=0;hapd&&(Dc=pd),fa.Xa+=Dc,pd=Math.max(pd-Dc,0));1!==ma.mj||Zd!==zh&&Zd!==kl||(fa=this.pd(Uc),Dc=Math.max(cf-fa.Xa,0),Dc>Cc&&(Dc=Cc),fa.Xa+=Dc,Cc=Math.max(Cc-Dc,0));tg&&ma.$o()}}}w.wa(Ug);for(var sc=0,$d=0,La=this.Js,ha=0;ha=this.Et);Sb++)fa=this.pd(ma.kc+Sb),Je.height+=Math.max(fa.$i,isNaN(fa.$e)?fa.Wf: -Math.min(fa.$e,fa.Wf));for(Sb=1;Sb=this.Js);Sb++)fa=this.od(ma.column+Sb),Je.width+=Math.max(fa.$i,isNaN(fa.$e)?fa.Wf:Math.min(fa.$e,fa.Wf));sb.width+=Je.width;sb.height+=Je.height;Rb=ma.margin;Uf=Rb.right+Rb.left;Vf=Rb.top+Rb.bottom;Yh(ma,sb.width,sb.height,um,Ci);for(var Ie=ma.Ia,cf=Math.max(Ie.width+Uf,0),Ed=Math.max(Ie.height+Vf,0),Eh=0,Sb=0;Sb=this.Et);Sb++)fa=this.pd(ma.kc+Sb),Eh+=fa.total||0;if(EhGd&&(fa.Xa=Math.min(fa.Wf,Gd+Fd),fa.Fb!==Gd&&(Fd-=fa.Fb-Gd));if(-1===fa.index-1)break;fa=this.pd(fa.index-1)}for(var Wf=0,Sb=0;Sb=this.Js);Sb++)fa=this.od(ma.column+Sb),Wf+=fa.total||0;if(WfGd&&(fa.Xa=Math.min(fa.Wf,Gd+Fd),fa.Fb!==Gd&&(Fd-=fa.Fb-Gd));if(-1===fa.index-1)break;fa=this.od(fa.index-1)}}w.wa(Vc);w.ek(Je);w.ek(sb);for(var Xf=0,df=0,Zd=vl(this,!0),Hd=this.Ba,Yf=this.xe,re=$d=sc=0,qd=0,La=this.Js,ha=0;ha< -La;ha++)void 0!==this.Ed[ha]&&(fa=this.od(ha),isFinite(fa.width)?(re+=fa.width,re+=fa.zg()):Rm(fa)===Sm?(re+=fa.Fb,re+=fa.zg()):0!==fa.Fb&&(sc+=fa.Fb,sc+=fa.zg()));var Xf=isFinite(Hd.width)?Math.min(Hd.width,Yf.width):Zd!==zh&&isFinite(Xd)?Xd:sc,Xf=Math.max(Xf,this.Df.width),Xf=Math.max(Xf-re,0),Fh=Math.max(Xf/sc,1);isFinite(Fh)||(Fh=1);for(ha=0;haGh)Yh(Tb,Infinity,Infinity),ae=Tb.Ia,Le.fi(ae),this.lj.add(ae);else{var ag=Tb.bg,Up=Tb.Yw,xm=Tb.Yj;xm.we()&&(xm=ac);var Ji=Tb.Zw,$r=Tb.lF,Ki=0,Li=0,lk=0;if(ag<-Gh||ag>=Gh){var Vp=wg.DE,Mi=wg.CE;Ji!==mh&&(lk=wg.computeAngle(Tb,Ji,Mi),Tb.angle=lk);Ki=Vp.x-ef.x;Li=Vp.y-ef.y}else{var xf,Ih;if(0<=ag)xf=Hi.ma(ag),Ih=ag=this.Et);Sb++)fa=this.qd(ma.kc+Sb),Je.height+=Math.max(fa.$i,isNaN(fa.$e)?fa.Wf: +Math.min(fa.$e,fa.Wf));for(Sb=1;Sb=this.Js);Sb++)fa=this.pd(ma.column+Sb),Je.width+=Math.max(fa.$i,isNaN(fa.$e)?fa.Wf:Math.min(fa.$e,fa.Wf));sb.width+=Je.width;sb.height+=Je.height;Rb=ma.margin;Uf=Rb.right+Rb.left;Vf=Rb.top+Rb.bottom;Yh(ma,sb.width,sb.height,um,Ci);for(var Ie=ma.Ia,cf=Math.max(Ie.width+Uf,0),Ed=Math.max(Ie.height+Vf,0),Fh=0,Sb=0;Sb=this.Et);Sb++)fa=this.qd(ma.kc+Sb),Fh+=fa.total||0;if(FhGd&&(fa.Xa=Math.min(fa.Wf,Gd+Fd),fa.Fb!==Gd&&(Fd-=fa.Fb-Gd));if(-1===fa.index-1)break;fa=this.qd(fa.index-1)}for(var Wf=0,Sb=0;Sb=this.Js);Sb++)fa=this.pd(ma.column+Sb),Wf+=fa.total||0;if(WfGd&&(fa.Xa=Math.min(fa.Wf,Gd+Fd),fa.Fb!==Gd&&(Fd-=fa.Fb-Gd));if(-1===fa.index-1)break;fa=this.pd(fa.index-1)}}w.wa(Vc);w.ek(Je);w.ek(sb);for(var Xf=0,df=0,Zd=vl(this,!0),Hd=this.Ba,Yf=this.xe,re=$d=sc=0,qd=0,La=this.Js,ha=0;ha< +La;ha++)void 0!==this.Ed[ha]&&(fa=this.pd(ha),isFinite(fa.width)?(re+=fa.width,re+=fa.zg()):Rm(fa)===Sm?(re+=fa.Fb,re+=fa.zg()):0!==fa.Fb&&(sc+=fa.Fb,sc+=fa.zg()));var Xf=isFinite(Hd.width)?Math.min(Hd.width,Yf.width):Zd!==zh&&isFinite(Xd)?Xd:sc,Xf=Math.max(Xf,this.Df.width),Xf=Math.max(Xf-re,0),Gh=Math.max(Xf/sc,1);isFinite(Gh)||(Gh=1);for(ha=0;haHh)Yh(Tb,Infinity,Infinity),ae=Tb.Ia,Le.gi(ae),this.lj.add(ae);else{var ag=Tb.bg,Up=Tb.Zw,xm=Tb.Yj;xm.we()&&(xm=ac);var Ji=Tb.$w,$r=Tb.nF,Ki=0,Li=0,lk=0;if(ag<-Hh||ag>=Hh){var Vp=wg.FE,Mi=wg.EE;Ji!==mh&&(lk=wg.computeAngle(Tb,Ji,Mi),Tb.angle=lk);Ki=Vp.x-ef.x;Li=Vp.y-ef.y}else{var xf,Jh;if(0<=ag)xf=Hi.ma(ag),Jh=agc||p>d)this.V(),Yh(this,n>c?c:n,p>d?d:p);break;case vd:this.V(!0);Yh(this,c+r,d+s,0,0);break;case ll:this.V(!0);Yh(this,c+r,p+s,0,0);break;case kl:this.V(!0),Yh(this,n+r,d+s,0,0)}}k=this.ca;k.x=a;k.y= -b;k.width=c;k.height=d;var t=this.ia.cc;switch(t){case "Position":for(var v=g.length,y=e.x-this.padding.left,B=e.y-this.padding.top,A=0;A=this.Et);ha++){var ma=this.pd(rb+ha);nd.height+=ma.total}for(ha=1;ha=this.Js);ha++){var Tc=this.od(Wd+ha);nd.width+=Tc.total}var Tg=Xd.Fb+nd.width,Bh=Sc.Fb+nd.height;h.x=Rc;h.y=Jc;h.width=Tg;h.height=Bh;var Uc=Rc,Ch=Jc,Vb=Tg,Ug=Bh;Rc+Tg>e.width&&(Vb=Math.max(e.width-Rc,0));Jc+Bh>e.height&&(Ug=Math.max(e.height-Jc,0));var Vc=La.alignment,ne=0,Kc=0,od=0,Cc=0;if(Vc.Uc()){Vc= -this.ml;Vc.qd()||(Vc=ac);var ne=Vc.x,Kc=Vc.y,od=Vc.offsetX,Cc=Vc.offsetY,pd=Xd.alignment,Sf=Sc.alignment;pd.qd()&&(ne=pd.x,od=pd.offsetX);Sf.qd()&&(Kc=Sf.y,Cc=Sf.offsetY)}else ne=Vc.x,Kc=Vc.y,od=Vc.offsetX,Cc=Vc.offsetY;if(isNaN(ne)||isNaN(Kc))Kc=ne=.5,Cc=od=0;var fa=Ge.width,oe=Ge.height,He=La.margin,ak=He.left+He.right,bk=He.top+He.bottom,Dc=Ll(La,Sc,Xd,!1);!isNaN(La.Ba.width)||Dc!==vd&&Dc!==ll||(fa=Math.max(Tg-ak,0));!isNaN(La.Ba.height)||Dc!==vd&&Dc!==kl||(oe=Math.max(Bh-bk,0));var hb=La.xe,ib= -La.Df,fa=Math.min(hb.width,fa),oe=Math.min(hb.height,oe),fa=Math.max(ib.width,fa),oe=Math.max(ib.height,oe),ck=oe+bk;h.x+=h.width*ne-(fa+ak)*ne+od+He.left;h.y+=h.height*Kc-ck*Kc+Cc+He.top;La.visible&&(Hb(Uc,Ch,Vb,Ug,h.x,h.y,Ge.width,Ge.height)?La.Fc(h.x,h.y,fa,oe):La.Fc(h.x,h.y,fa,oe,new x(Uc,Ch,Vb,Ug)))}else{La.Vg();La.Nb.Sa();var Tf=La.Nb;Tf.x=Yd.type===zl?Sg:Rc;Tf.y=Yd.type===Al?Rf:Jc;Tf.width=Ge.width;Tf.height=Ge.height;La.Nb.freeze();xl(La,!1)}}w.ek(nd);for(rb=0;rb=sb){var Xf=this.DE,df=this.CE;Sb!==mh&&(Wf=this.computeAngle(Ec,Sb,df),Ec.angle=Wf);Fd=Xf.x;Gd=Xf.y}else{var Hd=void 0,Yf=void 0;if(0<=Lc)Hd=qe.p[Lc],Yf=Lc=this.Et);ha++){var ma=this.qd(rb+ha);nd.height+=ma.total}for(ha=1;ha=this.Js);ha++){var Tc=this.pd(Wd+ha);nd.width+=Tc.total}var Tg=Xd.Fb+nd.width,Ch=Sc.Fb+nd.height;h.x=Rc;h.y=Jc;h.width=Tg;h.height=Ch;var Uc=Rc,Dh=Jc,Vb=Tg,Ug=Ch;Rc+Tg>e.width&&(Vb=Math.max(e.width-Rc,0));Jc+Ch>e.height&&(Ug=Math.max(e.height-Jc,0));var Vc=La.alignment,ne=0,Kc=0,od=0,Cc=0;if(Vc.Uc()){Vc= +this.ml;Vc.rd()||(Vc=ac);var ne=Vc.x,Kc=Vc.y,od=Vc.offsetX,Cc=Vc.offsetY,pd=Xd.alignment,Sf=Sc.alignment;pd.rd()&&(ne=pd.x,od=pd.offsetX);Sf.rd()&&(Kc=Sf.y,Cc=Sf.offsetY)}else ne=Vc.x,Kc=Vc.y,od=Vc.offsetX,Cc=Vc.offsetY;if(isNaN(ne)||isNaN(Kc))Kc=ne=.5,Cc=od=0;var fa=Ge.width,oe=Ge.height,He=La.margin,ak=He.left+He.right,bk=He.top+He.bottom,Dc=Ll(La,Sc,Xd,!1);!isNaN(La.Ba.width)||Dc!==vd&&Dc!==ll||(fa=Math.max(Tg-ak,0));!isNaN(La.Ba.height)||Dc!==vd&&Dc!==kl||(oe=Math.max(Ch-bk,0));var hb=La.xe,ib= +La.Df,fa=Math.min(hb.width,fa),oe=Math.min(hb.height,oe),fa=Math.max(ib.width,fa),oe=Math.max(ib.height,oe),ck=oe+bk;h.x+=h.width*ne-(fa+ak)*ne+od+He.left;h.y+=h.height*Kc-ck*Kc+Cc+He.top;La.visible&&(Hb(Uc,Dh,Vb,Ug,h.x,h.y,Ge.width,Ge.height)?La.Fc(h.x,h.y,fa,oe):La.Fc(h.x,h.y,fa,oe,new x(Uc,Dh,Vb,Ug)))}else{La.Vg();La.Nb.Sa();var Tf=La.Nb;Tf.x=Yd.type===zl?Sg:Rc;Tf.y=Yd.type===Al?Rf:Jc;Tf.width=Ge.width;Tf.height=Ge.height;La.Nb.freeze();xl(La,!1)}}w.ek(nd);for(rb=0;rb=sb){var Xf=this.FE,df=this.EE;Sb!==mh&&(Wf=this.computeAngle(Ec,Sb,df),Ec.angle=Wf);Fd=Xf.x;Gd=Xf.y}else{var Hd=void 0,Yf=void 0;if(0<=Lc)Hd=qe.p[Lc],Yf=Lcp.width||n.y>p.height||0>n.x+n.width||0>n.y+n.height)){n=m;m=m instanceof H?m:null;p=w.xh();p.set(h);if(null!==m?m.dk(a,b,c,d,e,p):ul(n,a,d,p))null!== b&&(n=b(n)),null===n||null!==c&&!c(n)||e.add(n);w.gf(p)}}}void 0===g&&w.gf(h);return d}void 0===g&&w.gf(h);return!1};function Zm(a,b,c,d){for(var e=a.ua.p,g=e.length;g--;){var h=e[g];if(h.visible){var k=h.ca,l=a.Fa;k.x>l.width||k.y>l.height||0>k.x+k.width||0>k.y+k.height||(h instanceof H&&Zm(h,b,c,d),null!==b&&(h=b(h)),null===h||null!==c&&!c(h)||d.add(h))}}} f.Tm=function(a,b,c,d,e,g){if(!1===this.ag)return!1;void 0===c&&(c=null);void 0===d&&(d=null);var h=this.Fa,k=this.fg(),l=k?a:kb(w.lc(a.x,a.y),this.transform),m=k?b:kb(w.lc(b.x,b.y),this.transform),n=l.bk(m),p=0s.width||r.y>s.height||0>r.x+r.width||0>r.y+r.height||(q.fg()?(r=q.transform,kb(k.set(a),r),kb(l.set(b),r)):(k.set(a),l.set(b)),r=q,q=q instanceof H?q:null,null!==q?!q.Tm(k,l,c,d,e,g):!r.ZD(k,l,e))||(null!==c&&(r=c(r)),null===r||null!==d&&!d(r)||g.add(r))}}w.A(k);w.A(l)}return e? +n&&lb(l.x,l.y,h.width,h.height,h.width,0)s.width||r.y>s.height||0>r.x+r.width||0>r.y+r.height||(q.fg()?(r=q.transform,kb(k.set(a),r),kb(l.set(b),r)):(k.set(a),l.set(b)),r=q,q=q instanceof H?q:null,null!==q?!q.Tm(k,l,c,d,e,g):!r.$D(k,l,e))||(null!==c&&(r=c(r)),null===r||null!==d&&!d(r)||g.add(r))}}w.A(k);w.A(l)}return e? p:h}return!1};function Pm(a){var b=a.C;if(void 0===b||b===Pc)b=null;null===b&&a instanceof Y&&(a=a.Wa,null!==a&&(b=a.C));null===b&&(b=Xb);return b}function Qm(a){var b=a.D;if(void 0===b||b===Pc)b=null;null===b&&a instanceof Y&&(a=a.Wa,null!==a&&(b=a.D));null===b&&(b=jc);return b}H.prototype.add=H.prototype.add=function(a){w.k(a,V,H,"add:element");this.ie(this.ua.count,a)};H.prototype.elt=H.prototype.ma=function(a){return this.ua.ma(a)}; H.prototype.insertAt=H.prototype.ie=function(a,b){b instanceof C&&w.l("Cannot add a Part to a Panel: "+b);if(this===b||this.Al(b))this===b&&w.l("Cannot make a Panel contain itself: "+this.toString()),w.l("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+b.toString());var c=b.S;null!==c&&c!==this&&w.l("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+b.toString()+", already contained by "+c.toString()+", cannot be shared by this Panel: "+ -this.toString());this.ia!==jj||b instanceof Y||w.l("Can only add Shapes to a Grid Panel, not: "+b);b.Il(this);b.pm=null;if(null!==this.it){var d=b.data;null!==d&&"object"===typeof d&&(null===this.lg&&(this.lg=new ta(Object,H)),this.lg.add(d,b))}var e=this.ua,d=-1;if(c===this){for(var g=-1,h=this.ua.p,k=h.length,l=0;l=e.count&&a>=e.count)return;e.td(g);d=g}else w.l("element "+b.toString()+" has panel "+c.toString()+" but is not contained by it.")}if(0> -a||a>e.count)a=e.count;e.ie(a,b);this.V();b.V();null!==b.sd?this.Jh=!0:b instanceof H&&!0===b.Jh&&(this.Jh=!0);c=this.W;null!==c&&(c.Uk=null,c.Bj=NaN,this.Jh&&c instanceof D&&(c.Jh=!0),c.Jh&&(c.yd=null),e=this.h,null!==e&&e.na.ob||(-1!==d&&c.Lc(we,"elements",this,b,null,d,null),c.Lc(ve,"elements",this,null,b,null,a)))};H.prototype.remove=H.prototype.remove=function(a){w.k(a,V,H,"remove:element");for(var b=this.ua.p,c=b.length,d=-1,e=0;ea&&w.ja(a,">= 0",H,"getRowDefinition:idx");a=Math.round(a);var b=this.Md;if(void 0===b[a]){var c=new kf;c.Il(this);c.le=!0;c.index=a;b[a]=c}return b[a]};H.prototype.removeRowDefinition=H.prototype.WE=function(a){u&&w.o(a,H,"removeRowDefinition:idx");0>a&&w.ja(a,">= 0",H,"removeRowDefinition:idx");a=Math.round(a);var b=this.Md;this.Lc(we,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.V()}; -w.w(H,{Js:"columnCount"},function(){return void 0===this.Ed?0:this.Ed.length});H.prototype.getColumnDefinition=H.prototype.od=function(a){u&&w.o(a,H,"getColumnDefinition:idx");0>a&&w.ja(a,">= 0",H,"getColumnDefinition:idx");a=Math.round(a);var b=this.Ed;if(void 0===b[a]){var c=new kf;c.Il(this);c.le=!1;c.index=a;b[a]=c}return b[a]}; -H.prototype.removeColumnDefinition=H.prototype.SE=function(a){u&&w.o(a,H,"removeColumnDefinition:idx");0>a&&w.ja(a,">= 0",H,"removeColumnDefinition:idx");a=Math.round(a);var b=this.Ed;this.Lc(we,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.V()}; -w.defineProperty(H,{NI:"rowSizing"},function(){return void 0===this.um?Lm:this.um},function(a){if(void 0!==this.um){var b=this.um;b!==a&&(a!==Lm&&a!==Sm&&w.l("rowSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None"),this.um=a,this.V(),this.i("rowSizing",b,a))}}); -w.defineProperty(H,{KG:"columnSizing"},function(){return void 0===this.Tl?Lm:this.Tl},function(a){if(void 0!==this.Tl){var b=this.Tl;b!==a&&(a!==Lm&&a!==Sm&&w.l("columnSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None"),this.Tl=a,this.V(),this.i("columnSizing",b,a))}}); -w.defineProperty(H,{CF:"topIndex"},function(){return void 0===this.Hi?0:this.Hi},function(a){if(void 0!==this.Hi){var b=this.Hi;b!==a&&((!isFinite(a)||0>a)&&w.l("topIndex must be greater than zero and a real number. Was "+a),this.Hi=a,this.V(),this.i("topIndex",b,a))}}); -w.defineProperty(H,{yE:"leftIndex"},function(){return void 0===this.ui?0:this.ui},function(a){if(void 0!==this.ui){var b=this.ui;b!==a&&((!isFinite(a)||0>a)&&w.l("leftIndex must be greater than zero and a real number. Was "+a),this.ui=a,this.V(),this.i("leftIndex",b,a))}});H.prototype.findRowForLocalY=function(a){if(0>a)return-1;if(this.type!==ga)return NaN;for(var b=0,c=this.Md,d=c.length,e=this.Hi;e=e.count&&a>=e.count)return;e.ud(g);d=g}else w.l("element "+b.toString()+" has panel "+c.toString()+" but is not contained by it.")}if(0> +a||a>e.count)a=e.count;e.ie(a,b);this.V();b.V();null!==b.td?this.Kh=!0:b instanceof H&&!0===b.Kh&&(this.Kh=!0);c=this.W;null!==c&&(c.Uk=null,c.Bj=NaN,this.Kh&&c instanceof D&&(c.Kh=!0),c.Kh&&(c.yd=null),e=this.h,null!==e&&e.na.ob||(-1!==d&&c.Lc(we,"elements",this,b,null,d,null),c.Lc(ve,"elements",this,null,b,null,a)))};H.prototype.remove=H.prototype.remove=function(a){w.k(a,V,H,"remove:element");for(var b=this.ua.p,c=b.length,d=-1,e=0;ea&&w.ja(a,">= 0",H,"getRowDefinition:idx");a=Math.round(a);var b=this.Md;if(void 0===b[a]){var c=new kf;c.Il(this);c.le=!0;c.index=a;b[a]=c}return b[a]};H.prototype.removeRowDefinition=H.prototype.YE=function(a){u&&w.o(a,H,"removeRowDefinition:idx");0>a&&w.ja(a,">= 0",H,"removeRowDefinition:idx");a=Math.round(a);var b=this.Md;this.Lc(we,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.V()}; +w.w(H,{Js:"columnCount"},function(){return void 0===this.Ed?0:this.Ed.length});H.prototype.getColumnDefinition=H.prototype.pd=function(a){u&&w.o(a,H,"getColumnDefinition:idx");0>a&&w.ja(a,">= 0",H,"getColumnDefinition:idx");a=Math.round(a);var b=this.Ed;if(void 0===b[a]){var c=new kf;c.Il(this);c.le=!1;c.index=a;b[a]=c}return b[a]}; +H.prototype.removeColumnDefinition=H.prototype.UE=function(a){u&&w.o(a,H,"removeColumnDefinition:idx");0>a&&w.ja(a,">= 0",H,"removeColumnDefinition:idx");a=Math.round(a);var b=this.Ed;this.Lc(we,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.V()}; +w.defineProperty(H,{QI:"rowSizing"},function(){return void 0===this.um?Lm:this.um},function(a){if(void 0!==this.um){var b=this.um;b!==a&&(a!==Lm&&a!==Sm&&w.l("rowSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None"),this.um=a,this.V(),this.i("rowSizing",b,a))}}); +w.defineProperty(H,{MG:"columnSizing"},function(){return void 0===this.Tl?Lm:this.Tl},function(a){if(void 0!==this.Tl){var b=this.Tl;b!==a&&(a!==Lm&&a!==Sm&&w.l("columnSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None"),this.Tl=a,this.V(),this.i("columnSizing",b,a))}}); +w.defineProperty(H,{EF:"topIndex"},function(){return void 0===this.Hi?0:this.Hi},function(a){if(void 0!==this.Hi){var b=this.Hi;b!==a&&((!isFinite(a)||0>a)&&w.l("topIndex must be greater than zero and a real number. Was "+a),this.Hi=a,this.V(),this.i("topIndex",b,a))}}); +w.defineProperty(H,{AE:"leftIndex"},function(){return void 0===this.ui?0:this.ui},function(a){if(void 0!==this.ui){var b=this.ui;b!==a&&((!isFinite(a)||0>a)&&w.l("leftIndex must be greater than zero and a real number. Was "+a),this.ui=a,this.V(),this.i("leftIndex",b,a))}});H.prototype.findRowForLocalY=function(a){if(0>a)return-1;if(this.type!==ga)return NaN;for(var b=0,c=this.Md,d=c.length,e=this.Hi;ea)return-1;if(this.type!==ga)return NaN;for(var b=0,c=this.Ed,d=c.length,e=this.ui;e=c.elements.count&&!(c instanceof C)){if(1===c.elements.count){var d=null!==c.it;if(!d)for(var e=b.j;e.next();)if("itemArray"===e.value.Pt){d=!0; break}}d||(w.trace("Auto or Spot Panel should not have zero or one elements: "+c.toString()+" in "+a.toString()),$m=!0)}}))}var $m=!1; -H.prototype.updateTargetBindings=H.prototype.Vb=function(a){var b=this.Rl;if(null!==b)for(void 0===a&&(a=""),b=b.j;b.next();){var c=b.value,d=c.wF;if(""===a||""===d||d===a)if(d=c.Pt,null!==c.QG||""!==d){var d=this.data,e=c.jn;if(null!==e)d=""===e?this:"."===e?this:".."===e?this:this.te(e);else{var g=this.h;null!==g&&c.Rt&&(d=g.ha.rt)}if(null===d)u&&w.trace("Binding error: missing GraphObject named "+e+" in "+this.toString());else{var g=this,h=c.Ll;if(-1!==h){if(g=this.ow(h),null===g)continue}else null!== -c.tg&&(g=c.tg);"."===e?d=g:".."===e&&(d=g.S);e=c.Yy;if(0!==e){if(!(g instanceof H))continue;h=g;1===e?g=h.od(c.Hv):2===e&&(g=h.pd(c.Hv))}void 0!==g&&c.LF(g,d)}}}};w.defineProperty(H,{it:"itemArray"},function(){return this.ti},function(a){var b=this.ti;if(b!==a){u&&null!==a&&!w.isArray(a)&&w.l("Panel.itemArray must be an Array-like object or null, not: "+a);var c=this.h;null!==c&&null!==b&&Xj(c,this);this.ti=a;null!==c&&null!==a&&Tj(c,this);this.i("itemArray",b,a);null!==c&&c.na.ob||this.pA()}}); -function zk(a){return a.type===xh||a.type===gj||a.type===jh||a.type===ga&&0a;)this.Oe(a);a=this.it;if(null!==a)for(var b=w.tb(a),c=0;cc)){var d=a.getCategoryForItemData(b,c),d=a.findTemplateForItemData(b,c,d);if(null!==d){Cf(d);d=d.copy();"object"===typeof b&&(null===a.lg&&(a.lg=new ta(Object,H)),a.lg.add(b,d));var e=c;zk(a)&&e++;a.ie(e,d);Ak(a,e,c);d.data=b}}}function Ak(a,b,c){for(a=a.ua;ba;)this.Oe(a);a=this.it;if(null!==a)for(var b=w.tb(a),c=0;cc)){var d=a.getCategoryForItemData(b,c),d=a.findTemplateForItemData(b,c,d);if(null!==d){Cf(d);d=d.copy();"object"===typeof b&&(null===a.lg&&(a.lg=new ta(Object,H)),a.lg.add(b,d));var e=c;zk(a)&&e++;a.ie(e,d);Ak(a,e,c);d.data=b}}}function Ak(a,b,c){for(a=a.ua;ba&&w.ja(a,">= 0",kf,"height"),this.$e=a,this.Xa=this.Fb,null!==this.S&&this.S.V(),this.Yc("height",b,a))});w.defineProperty(kf,{width:"width"},function(){return this.$e},function(a){var b=this.$e;b!==a&&(u&&w.g(a,"number",kf,"width"),0>a&&w.ja(a,">= 0",kf,"width"),this.$e=a,this.Xa=this.Fb,null!==this.S&&this.S.V(),this.Yc("width",b,a))}); w.defineProperty(kf,{$i:"minimum"},function(){return this.Fj},function(a){var b=this.Fj;b!==a&&(u&&w.g(a,"number",kf,"minimum"),(0>a||!isFinite(a))&&w.ja(a,">= 0",kf,"minimum"),this.Fj=a,this.Xa=this.Fb,null!==this.S&&this.S.V(),this.Yc("minimum",b,a))});w.defineProperty(kf,{Wf:"maximum"},function(){return this.Dj},function(a){var b=this.Dj;b!==a&&(u&&w.g(a,"number",kf,"maximum"),0>a&&w.ja(a,">= 0",kf,"maximum"),this.Dj=a,this.Xa=this.Fb,null!==this.S&&this.S.V(),this.Yc("maximum",b,a))}); -w.defineProperty(kf,{alignment:"alignment"},function(){return this.Be},function(a){var b=this.Be;b.N(a)||(u&&w.k(a,Q,kf,"alignment"),this.Be=a.da(),null!==this.S&&this.S.V(),this.Yc("alignment",b,a))});w.defineProperty(kf,{stretch:"stretch"},function(){return this.Uh},function(a){var b=this.Uh;b!==a&&(u&&w.Ca(a,V,kf,"stretch"),this.Uh=a,null!==this.S&&this.S.V(),this.Yc("stretch",b,a))}); -w.defineProperty(kf,{oF:"separatorPadding"},function(){return this.Nj},function(a){"number"===typeof a?a=new vb(a):null!==a&&u&&w.k(a,vb,kf,"separatorPadding");var b=this.Nj;null!==a&&null!==b&&b.N(a)||(null!==a&&(a=a.da()),this.Nj=a,null!==this.S&&this.S.V(),this.Yc("separatorPadding",b,a))}); +w.defineProperty(kf,{alignment:"alignment"},function(){return this.Be},function(a){var b=this.Be;b.N(a)||(u&&w.k(a,Q,kf,"alignment"),this.Be=a.da(),null!==this.S&&this.S.V(),this.Yc("alignment",b,a))});w.defineProperty(kf,{stretch:"stretch"},function(){return this.Vh},function(a){var b=this.Vh;b!==a&&(u&&w.Ca(a,V,kf,"stretch"),this.Vh=a,null!==this.S&&this.S.V(),this.Yc("stretch",b,a))}); +w.defineProperty(kf,{qF:"separatorPadding"},function(){return this.Nj},function(a){"number"===typeof a?a=new vb(a):null!==a&&u&&w.k(a,vb,kf,"separatorPadding");var b=this.Nj;null!==a&&null!==b&&b.N(a)||(null!==a&&(a=a.da()),this.Nj=a,null!==this.S&&this.S.V(),this.Yc("separatorPadding",b,a))}); w.defineProperty(kf,{zp:"separatorStroke"},function(){return this.Zr},function(a){var b=this.Zr;b!==a&&(null===a||"string"===typeof a||a instanceof oa)&&(a instanceof oa&&a.freeze(),this.Zr=a,null!==this.S&&this.S.V(),this.Yc("separatorStroke",b,a))});w.defineProperty(kf,{Ap:"separatorStrokeWidth"},function(){return this.$r},function(a){var b=this.$r;b!==a&&(this.$r=a,null!==this.S&&this.S.V(),this.Yc("separatorStrokeWidth",b,a))}); -w.defineProperty(kf,{SI:"separatorDashArray"},function(){return this.Qh},function(a){var b=this.Qh;if(b!==a){null===a||Array.isArray(a)||w.tc(a,"Array",kf,"separatorDashArray:value");if(null!==a){for(var c=a.length,d=0,e=0;ee)){for(var k=c[0],l=c[1],p=0,q=0,r=0,s=m=0,t=q=0,v=w.mb(),y=2;yt){w.wa(v);return}e>m?(B= e-m,e=m):B=0;var A=Math.sqrt(e*e/(1+r*r));0>p&&(A=-A);k+=A;l+=r*A;a.translate(k,l);a.rotate(s);a.translate(-(h/2),-(g/2));0===B&&d.ck(a,b);a.translate(h/2,g/2);a.rotate(-s);a.translate(-k,-l);t-=e;m-=e;if(0!==B){q++;if(q===v.length){w.wa(v);return}m=v[q];p=m[0];s=m[1];r=m[2];m=m[3];e=B}}w.wa(v)}} -Y.prototype.ck=function(a,b){if(null!==this.Ec||null!==this.vd){null!==this.vd&&El(this,a,this.vd,!0,!1);null!==this.Ec&&El(this,a,this.Ec,!1,!1);var c=this.qe;if(0===c){var d=this.W;d instanceof da&&d.type===jh&&d.Bc instanceof Y&&(c=d.Bc.pb)}a.lineWidth=c;a.lineJoin=this.Ao;a.lineCap=this.zo;a.miterLimit=this.Am;var e=!1;this.W&&b.dh.drawShadows&&(e=this.W.gk);var g=!0;null!==this.Ec&&null===this.vd&&(g=!1);var d=!1,h=!0,k=this.DA;null!==k&&(d=!0,void 0!==a.setLineDash?(a.setLineDash(k),a.lineDashOffset= -this.kd):void 0!==a.webkitLineDash?(a.webkitLineDash=k,a.webkitLineDashOffset=this.kd):void 0!==a.mozDash?(a.mozDash=k,a.mozDashOffset=this.kd):h=!1);var l=this.Wa;if(null!==l){if(l.ia===wd)a.beginPath(),d&&!h?ql(a,l.pc,l.vc,l.rb,l.Ab,k,this.kd):(a.moveTo(l.pc,l.vc),a.lineTo(l.rb,l.Ab)),null!==this.vd&&Fl(a,this.vd),0!==c&&null!==this.Ec&&Hl(a);else if(l.ia===xd){var m=l.pc,n=l.vc,p=l.rb,q=l.Ab,l=Math.min(m,p),r=Math.min(n,q),m=Math.abs(p-m),n=Math.abs(q-n);null!==this.vd&&(a.beginPath(),a.rect(l, -r,m,n),Fl(a,this.vd));if(null!==this.Ec){var s=p=0,t=0;g&&e&&(p=a.shadowOffsetX,s=a.shadowOffsetY,t=a.shadowBlur,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0);d&&!h?(h=w.mb(),h.push(l),h.push(r),h.push(l+m),h.push(r),h.push(l+m),h.push(r+n),h.push(l),h.push(r+n),h.push(l),h.push(r),a.beginPath(),fn(a,h,k,this.kd),Hl(a),w.wa(h)):0!==c&&(a.beginPath(),a.rect(l,r,m,n),Hl(a));g&&e&&(a.shadowOffsetX=p,a.shadowOffsetY=s,a.shadowBlur=t)}}else if(l.ia===yd)m=l.pc,n=l.vc,p=l.rb,q=l.Ab,l=Math.abs(p-m)/ -2,r=Math.abs(q-n)/2,m=Math.min(m,p)+l,n=Math.min(n,q)+r,a.beginPath(),a.moveTo(m,n-r),a.bezierCurveTo(m+O.xa*l,n-r,m+l,n-O.xa*r,m+l,n),a.bezierCurveTo(m+l,n+O.xa*r,m+O.xa*l,n+r,m,n+r),a.bezierCurveTo(m-O.xa*l,n+r,m-l,n+O.xa*r,m-l,n),a.bezierCurveTo(m-l,n-O.xa*r,m-O.xa*l,n-r,m,n-r),a.closePath(),null!==this.vd&&Fl(a,this.vd),d&&!h&&(h=w.mb(),O.Ie(m,n-r,m+O.xa*l,n-r,m+l,n-O.xa*r,m+l,n,.5,h),O.Ie(m+l,n,m+l,n+O.xa*r,m+O.xa*l,n+r,m,n+r,.5,h),O.Ie(m,n+r,m-O.xa*l,n+r,m-l,n+O.xa*r,m-l,n,.5,h),O.Ie(m-l,n, -m-l,n-O.xa*r,m-O.xa*l,n-r,m,n-r,.5,h),a.beginPath(),fn(a,h,k,this.kd),w.wa(h)),0!==c&&null!==this.Ec&&(t=s=p=0,g&&e&&(p=a.shadowOffsetX,s=a.shadowOffsetY,t=a.shadowBlur,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0),Hl(a),g&&e&&(a.shadowOffsetX=p,a.shadowOffsetY=s,a.shadowBlur=t));else if(l.ia===td){r=l.pj;n=r.length;for(q=0;qy.cg);else for(var v=ce(y,m),B=v.length,A=0;Ay.cg);else for(var v=ce(y,m),B=v.length,A=0;Ae))if(h=b[0],k=b[1],4===e)ql(a,h,k,b[2],b[3],c,d);else{a.moveTo(h,k);for(var n=0,p=0,q=0,r=p=l=0,s=w.mb(),t=2;tr&&(e=r);e>l?(v=e-l,e=l):v=0;var y=Math.sqrt(e*e/ (1+q*q));0>n&&(y=-y);h+=y;k+=q*y;m?a.lineTo(h,k):a.moveTo(h,k);r-=e;l-=e;if(0!==v){p++;if(p===s.length){w.wa(s);return}l=s[p];n=l[0];q=l[1];l=l[2];e=v}else m=!m}w.wa(s)}}Y.prototype.getDocumentPoint=Y.prototype.vb=function(a,b){void 0===b&&(b=new I);a.we()&&w.l("getDocumentPoint:s Spot must be real: "+a.toString());var c=this.Fa,d=this.pb;b.n(a.x*(c.width+d)-d/2+c.x+a.offsetX,a.y*(c.height+d)-d/2+c.y+a.offsetY);this.Of.ib(b);return b}; Y.prototype.$j=function(a,b){var c=this.Wa;if(null===c||null===this.fill&&null===this.stroke)return!1;var d=c.ub,e=this.pb/2;c.type!==wd||b||(e+=2);var g=w.eg();g.assign(d);g.Tf(e+2,e+2);if(!g.Ha(a))return w.qc(g),!1;d=e+1E-4;if(c.type===wd){if(null===this.stroke)return!1;d=(c.H-c.za)*(a.x-c.za)+(c.I-c.Aa)*(a.y-c.Aa);if(0>(c.za-c.H)*(a.x-c.H)+(c.Aa-c.I)*(a.y-c.I)||0>d)return!1;w.qc(g);return O.Ud(c.za,c.Aa,c.H,c.I,e,a.x,a.y)}if(c.type===xd){var h=c.za,k=c.Aa,l=c.H,m=c.I,c=Math.min(h,l),n=Math.min(k, m),h=Math.abs(l-h),k=Math.abs(m-k);g.x=c;g.y=n;g.width=h;g.height=k;if(null===this.fill){g.Tf(-d,-d);if(g.Ha(a))return w.qc(g),!1;g.Tf(d,d)}null!==this.stroke&&g.Tf(e,e);e=g.Ha(a);w.qc(g);return e}if(c.type===yd){h=c.za;k=c.Aa;l=c.H;m=c.I;c=Math.min(h,l);n=Math.min(k,m);h=Math.abs(l-h);k=Math.abs(m-k);h/=2;k/=2;c=a.x-(c+h);n=a.y-(n+k);if(null===this.fill){h-=d;k-=d;if(0>=h||0>=k||1>=c*c/(h*h)+n*n/(k*k))return w.qc(g),!1;h+=d;k+=d}null!==this.stroke&&(h+=e,k+=e);w.qc(g);return 0>=h||0>=k?!1:1>=c*c/ (h*h)+n*n/(k*k)}if(c.type===td)return w.qc(g),null===this.fill?ge(c,a.x,a.y,e):c.Ha(a,e,1=this.pb)n=O.oh(p.pc,p.vc,p.rb,p.Ab,g,h,k,l,e);else{var r=0,s=0;p.pc===p.rb?(r=m,s=0):(b=(p.Ab-p.vc)/(p.rb-p.pc),s=m/Math.sqrt(1+b*b),r=s*b);d=w.mb();b=new I;O.oh(p.pc+ r,p.vc+s,p.rb+r,p.Ab+s,g,h,k,l,b)&&d.push(b);b=new I;O.oh(p.pc-r,p.vc-s,p.rb-r,p.Ab-s,g,h,k,l,b)&&d.push(b);b=new I;O.oh(p.pc+r,p.vc+s,p.pc-r,p.vc-s,g,h,k,l,b)&&d.push(b);b=new I;O.oh(p.rb+r,p.Ab+s,p.rb-r,p.Ab-s,g,h,k,l,b)&&d.push(b);b=d.length;if(0===b)return w.wa(d),!1;n=!0;s=Infinity;for(r=0;rMath.abs(c)){n=h-b-c*(g-d);if(0>a*a*c*c+v*v-n*n){e.x=NaN;e.y=NaN;n=!1;break a}m=Math.sqrt(a*a*c*c+v*v-n*n);k=(-(a*a*c*n)+a*v*m)/(v*v+a*a*c*c)+d;a=(-(a*a*c*n)-a*v*m)/(v*v+a*a*c*c)+d;l=c*(k-d)+n+b;b=c*(a-d)+n+b;d=Math.abs((g-k)*(g-k))+Math.abs((h-l)*(h-l));h=Math.abs((g-a)*(g-a))+Math.abs((h-b)* (h-b));dk){e.x=NaN;e.y=NaN;n=!1;break a}m=Math.sqrt(k);l=b+m;b-=m;d=Math.abs(l-h);h=Math.abs(b-h);dc?a-c:c-a)<(b>d?b-d:d-b)?(e=be||O.wb(l.y,e))&&(l.ye||O.wb(l.x,e))&&(l.x=h&&d<=a}a=h&&g<=a} -Y.prototype.ZD=function(a,b,c){function d(a,b){for(var c=a.length,d=0;de)return!0;return!1}if(c&&null!==this.fill&&this.$j(a,!0))return!0;var e=a.bk(b);b=e;1.5=e||mb(b,g,0,-p)>=e||mb(b,g,0,p)>=e||mb(b,g,n,0)>=e?!1:!0}else if(g.type=== +Y.prototype.$D=function(a,b,c){function d(a,b){for(var c=a.length,d=0;de)return!0;return!1}if(c&&null!==this.fill&&this.$j(a,!0))return!0;var e=a.bk(b);b=e;1.5=e||mb(b,g,0,-p)>=e||mb(b,g,0,p)>=e||mb(b,g,n,0)>=e?!1:!0}else if(g.type=== td){h=g.ub;k=h.x;l=h.y;m=h.x+h.width;h=h.y+h.height;if(a.x>m&&a.xh&&a.ye&&lb(a.x,a.y,k,l,m,l)>e&&lb(a.x,a.y,m,h,k,h)>e&&lb(a.x,a.y,m,h,m,l)>e)return!1;b=Math.sqrt(e);if(c){if(null===this.fill?ge(g,a.x,a.y,b):g.Ha(a,b,!0))return!0}else{c=g.Bb;for(b=0;be)return!1;l=k.Ma.p;m=l.length;for(h=0;he)return!1;break;case Od:g=w.mb();O.Ie(n,p,q.Xb,q.rc, q.nf,q.of,q.H,q.I,.8,g);n=d(g,a);w.wa(g);if(n)return!1;n=q.H;p=q.I;if(a.Ns(n,p)>e)return!1;break;case Pd:g=w.mb();O.rp(n,p,q.Xb,q.rc,q.H,q.I,.8,g);n=d(g,a);w.wa(g);if(n)return!1;n=q.H;p=q.I;if(a.Ns(n,p)>e)return!1;break;case Qd:case be:var q=q.type===Qd?ce(q,k):de(q,k,n,p),r=q.length,s=null,g=w.mb();for(b=0;b= 0",Y,"strokeWidth:value")}); -w.defineProperty(Y,{bJ:"strokeCap"},function(){return this.zo},function(a){var b=this.zo;b!==a&&("string"!==typeof a||"butt"!==a&&"round"!==a&&"square"!==a?w.ja(a,'"butt", "round", or "square"',Y,"strokeCap"):(this.zo=a,this.ra(),this.i("strokeCap",b,a)))}); -w.defineProperty(Y,{lL:"strokeJoin"},function(){return this.Ao},function(a){var b=this.Ao;b!==a&&("string"!==typeof a||"miter"!==a&&"bevel"!==a&&"round"!==a?w.ja(a,'"miter", "bevel", or "round"',Y,"strokeJoin"):(this.Ao=a,this.ra(),this.i("strokeJoin",b,a)))}); -w.defineProperty(Y,{mL:"strokeMiterLimit"},function(){return this.Am},function(a){var b=this.Am;if(b!==a)if(u&&w.o(a,Y,"strokeMiterLimit"),0 0",Y,"strokeWidth:value")}); -w.defineProperty(Y,{DA:"strokeDashArray"},function(){return this.zm},function(a){var b=this.zm;if(b!==a){null===a||Array.isArray(a)||w.tc(a,"Array",Y,"strokeDashArray:value");if(null!==a){for(var c=a.length,d=0,e=0;e 0",Y,"strokeWidth:value")}); +w.defineProperty(Y,{EA:"strokeDashArray"},function(){return this.zm},function(a){var b=this.zm;if(b!==a){null===a||Array.isArray(a)||w.tc(a,"Array",Y,"strokeDashArray:value");if(null!==a){for(var c=a.length,d=0,e=0;em*k*k&&(h=!0);b.Ve!==a&&(h=!1);!1===b.tw("textGreeking")&&(h=!1);for(var m=this.Pj,k=this.Qj,l=this.Ee,n=0;nc&&(p=c);var g=g+m,r=q,q=a,s=g,t=c, +w.w(ya,{Fa:"naturalBounds"},function(){if(!this.Pc.J()){var a=An(this,this.re,this.vj,999999).width,b=Bn(this,a,this.vj),c=this.Ba;isNaN(c.width)||(a=c.width);isNaN(c.height)||(b=c.height);tb(this.Pc,a,b)}return this.Pc});w.defineProperty(ya,{Gw:"isMultiline"},function(){return this.Dq},function(a){var b=this.Dq;b!==a&&(u&&w.g(a,"boolean",ya,"isMultiline"),this.Dq=a,this.V(),this.i("isMultiline",b,a))}); +w.defineProperty(ya,{yK:"isUnderline"},function(){return this.dm},function(a){var b=this.dm;b!==a&&(u&&w.g(a,"boolean",ya,"isUnderline"),this.dm=a,this.ra(),this.i("isUnderline",b,a))});w.defineProperty(ya,{vK:"isStrikethrough"},function(){return this.cm},function(a){var b=this.cm;b!==a&&(u&&w.g(a,"boolean",ya,"isStrikethrough"),this.cm=a,this.ra(),this.i("isStrikethrough",b,a))}); +w.defineProperty(ya,{QF:"wrap"},function(){return this.Fm},function(a){var b=this.Fm;b!==a&&(u&&w.Ca(a,ya,ya,"wrap"),this.Fm=a,this.V(),this.i("wrap",b,a))});w.defineProperty(ya,{overflow:"overflow"},function(){return this.Xk},function(a){var b=this.Xk;b!==a&&(u&&w.Ca(a,ya,ya,"overflow"),this.Xk=a,this.V(),this.i("overflow",b,a))}); +w.defineProperty(ya,{stroke:"stroke"},function(){return this.Ec},function(a){var b=this.Ec;b!==a&&(u&&null!==a&&w.Es(a,"TextBlock.stroke"),a instanceof oa&&a.freeze(),this.Ec=a,this.ra(),this.i("stroke",b,a))});w.w(ya,{fI:"lineCount"},function(){return this.Ee});w.defineProperty(ya,{Cz:"editable"},function(){return this.mq},function(a){var b=this.mq;b!==a&&(u&&w.g(a,"boolean",ya,"editable"),this.mq=a,this.i("editable",b,a))}); +w.defineProperty(ya,{BF:"textEditor"},function(){return this.js},function(a){var b=this.js;b!==a&&(a instanceof HTMLElement||w.l("textEditor must be an HTMLElement"),this.js=a,this.i("textEditor",b,a))});w.defineProperty(ya,{Dz:"errorFunction"},function(){return this.sf},function(a){var b=this.sf;b!==a&&(null!==a&&w.g(a,"function",ya,"errorFunction"),this.sf=a,this.i("errorFunction",b,a))});function Dl(a,b){var c=a.Tg;null!==c&&b.Yt!==c&&(b.font=c,b.Yt=c)} +ya.prototype.ck=function(a,b){if(null!==this.Ec&&0!==this.re.length&&null!==this.Tg){var c=this.Fa.width,d=Cn(this);a.textAlign=this.be;El(this,a,this.Ec,!0,!1);(this.dm||this.cm)&&El(this,a,this.Ec,!1,!1);var e=this.vj,g=0,h=!1,k=w.lc(0,0);this.Of.ib(k);var l=w.lc(0,d);this.Of.ib(l);var m=k.bk(l);w.A(k);w.A(l);k=b.scale;8>m*k*k&&(h=!0);b.Ve!==a&&(h=!1);!1===b.uw("textGreeking")&&(h=!1);for(var m=this.Pj,k=this.Qj,l=this.Ee,n=0;nc&&(p=c);var g=g+m,r=q,q=a,s=g,t=c, v=d,y=0;h?("start"===this.be||"left"===this.be?y=0:"end"===this.be||"right"===this.be?y=t-p:"center"===this.be?y=(t-p)/2:w.l("textAlign must be start, end, left, right, or center"),q.fillRect(0+y,s+.25*v,p,1)):("start"===this.be||"left"===this.be?y=0:"end"===this.be||"right"===this.be?y=t:"center"===this.be?y=t/2:w.l("textAlign must be start, end, left, right, or center"),q.fillText(r,0+y,s+v-.25*v),r=v/20|0,0===r&&(r=1),"end"===this.be||"right"===this.be?y-=p:"center"===this.be&&(y-=p/2),this.dm&& (q.beginPath(),q.lineWidth=r,q.moveTo(0+y,s+v-.2*v),q.lineTo(0+y+p,s+v-.2*v),q.stroke()),this.cm&&(q.beginPath(),q.lineWidth=r,s=s+v-v/2.2|0,0!==r%2&&(s+=.5),q.moveTo(0+y,s),q.lineTo(0+y+p,s),q.stroke()));g+=d+k}}}; -ya.prototype.ip=function(a,b,c,d){var e=this.vj;e.reset();var g=0,h=0;if(isNaN(this.Ba.width)){g=this.re.replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(0===g.length)g=0;else if(this.Fw){for(var k=h=0,l=!1;!l;){var m=g.indexOf("\n",k);-1===m&&(m=g.length,l=!0);k=Dn(g.substr(k,m-k).replace(/^\s+|\s+$/g,""),this.Tg);k>h&&(h=k);k=m+1}g=h}else h=g.indexOf("\n",0),0<=h&&(g=g.substr(0,h)),g=k=Dn(g,this.Tg);g=Math.min(g,a/this.scale);g=Math.max(8,g)}else g=this.Ba.width;null!==this.S&&(g=Math.min(g,this.S.xe.width), -g=Math.max(g,this.S.Df.width));h=Bn(this,g,e);m=h=isNaN(this.Ba.height)?Math.min(h,b/this.scale):this.Ba.height;if(0!==e.Ye&&1!==e.Ce.length&&this.Xk===yn&&(b=this.Tg,l=this.Xk===yn?En(b):0,k=this.Pj+this.Qj,k=Math.max(0,Cn(this)+k),m=Math.max(Math.floor(m/k)-1,0),!(m+1>=e.Ce.length))){k=e.Ce[m];for(a=Math.max(1,a-l);Dn(k,b)>a&&1h&&(h=k);k=m+1}g=h}else h=g.indexOf("\n",0),0<=h&&(g=g.substr(0,h)),g=k=Dn(g,this.Tg);g=Math.min(g,a/this.scale);g=Math.max(8,g)}else g=this.Ba.width;null!==this.S&&(g=Math.min(g,this.S.xe.width), +g=Math.max(g,this.S.Df.width));h=Bn(this,g,e);m=h=isNaN(this.Ba.height)?Math.min(h,b/this.scale):this.Ba.height;if(0!==e.Ye&&1!==e.Ce.length&&this.Xk===yn&&(b=this.Tg,l=this.Xk===yn?En(b):0,k=this.Pj+this.Qj,k=Math.max(0,Cn(this)+k),m=Math.max(Math.floor(m/k)-1,0),!(m+1>=e.Ce.length))){k=e.Ce[m];for(a=Math.max(1,a-l);Dn(k,b)>a&&1=a.vi)return new pa(0,l);if(a.Fm===wn){c.Ji=1;g=Dn(b,k);if(0===h||g<=d)return c.Ye=g,c.pf.push(c.Ye),c.Ce.push(b),new pa(g,l);var m=Fn(b);b=b.substr(m.length);for(var n=Fn(b),g=Dn(m+n,k);0d&&1d;){n=1;g=Dn(m.substr(0,n),k);for(h=0;g<=d;)n++,h=g,g=Dn(m.substr(0,n),k);1===n?(c.pf[a.Ee+p]=g,e=Math.max(e,g)):(c.pf[a.Ee+p]=h,e=Math.max(e,h));n--;1>n&&(n=1);c.Ce[a.Ee+p]=m.substr(0,n);p++;m=m.substr(n);if(a.Ee+p>a.vi)break}n=Fn(b);for(g=Dn(m+n,k);0a.vi))break}c.Ji=Math.min(a.vi,p);c.Ye=Math.max(c.Ye,e);return new pa(c.Ye,l*c.Ji)}function Fn(a){for(var b=a.length,c=0;c=b?a:a.substr(0,c)}function Dn(a,b){un!==b&&(un=vn.font=b);return vn.measureText(a).width} function Cn(a){if(null!==a.Qn)return a.Qn;var b=a.Tg;un!==b&&(un=vn.font=b);var c=0;void 0!==pn[b]&&5E3>qn?c=pn[b]:(c=1.3*vn.measureText("M").width,pn[b]=c,qn++);return a.Qn=c}function En(a){un!==a&&(un=vn.font=a);var b=0;void 0!==rn[a]&&5E3>sn?b=rn[a]:(b=vn.measureText(tn).width,rn[a]=b,sn++);return b} -function Bn(a,b,c){var d=a.re.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e=a.Pj+a.Qj,e=Math.max(0,Cn(a)+e);if(0===d.length)return c.Ye=0,a.Ee=1,e;if(!a.Fw){var g=d.indexOf("\n",0);0<=g&&(d=d.substr(0,g))}for(var g=0,h=a.Ee=0,k=-1,l=!1;!l;)k=d.indexOf("\n",h),-1===k&&(k=d.length,l=!0),h<=k&&(h=d.substr(h,k-h),a.Fm!==wn?(c.Ji=0,h=An(a,h,c,b),g+=h.height,a.Ee+=c.Ji):(An(a,h,c,b),g+=e,a.Ee++),a.Ee===a.vi&&(l=!0)),h=k+1;return a.av=g} -w.defineProperty(ya,{GA:"textValidation"},function(){return this.$k},function(a){var b=this.$k;b!==a&&(null!==a&&w.g(a,"function",ya,"textValidation"),this.$k=a,this.i("textValidation",b,a))});w.defineProperty(ya,{iL:"spacingAbove"},function(){return this.Pj},function(a){var b=this.Pj;b!==a&&(u&&w.g(a,"number",ya,"spacingAbove"),this.Pj=a,this.i("spacingAbove",b,a))}); -w.defineProperty(ya,{jL:"spacingBelow"},function(){return this.Qj},function(a){var b=this.Qj;b!==a&&(u&&w.g(a,"number",ya,"spacingBelow"),this.Qj=a,this.i("spacingBelow",b,a))});w.defineProperty(ya,{IK:"maxLines"},function(){return this.vi},function(a){var b=this.vi;b!==a&&(u&&w.g(a,"number",ya,"maxLines"),a=Math.floor(a),0>=a&&w.ja(a,"> 0",ya,"maxLines"),this.vi=a,this.i("maxLines",b,a),this.V())});w.w(ya,{JK:"metrics"},function(){return this.vj}); -function on(){this.Ye=this.Ji=0;this.pf=[];this.Ce=[]}on.prototype.reset=function(){this.Ye=this.Ji=0;this.pf=[];this.Ce=[]};on.prototype.Ks=function(a){this.Ji=a.Ji;this.Ye=a.Ye;this.pf=w.il(a.pf);this.Ce=w.il(a.Ce)};w.w(on,{KJ:"arrSize"},function(){return this.pf});w.w(on,{LJ:"arrText"},function(){return this.Ce});w.w(on,{HK:"maxLineWidth"},function(){return this.Ye}); -function $i(){V.call(this);this.We=null;this.ds="";this.Oj=(new x(NaN,NaN,NaN,NaN)).freeze();this.Vn=vd;this.hs=this.Rj=this.sf=null;this.ty=!1;this.Eu=!0;this.vo=null;this.hC=0}w.Na($i,V);w.la("Picture",$i);var Gn=new xa,Hn=0,Vi=[];function In(){var a=Vi;if(0===a.length)for(var b=window.document.getElementsByTagName("canvas"),c=b.length,d=0;d=a&&w.ja(a,"> 0",ya,"maxLines"),this.vi=a,this.i("maxLines",b,a),this.V())});w.w(ya,{LK:"metrics"},function(){return this.vj}); +function on(){this.Ye=this.Ji=0;this.pf=[];this.Ce=[]}on.prototype.reset=function(){this.Ye=this.Ji=0;this.pf=[];this.Ce=[]};on.prototype.Ks=function(a){this.Ji=a.Ji;this.Ye=a.Ye;this.pf=w.il(a.pf);this.Ce=w.il(a.Ce)};w.w(on,{MJ:"arrSize"},function(){return this.pf});w.w(on,{NJ:"arrText"},function(){return this.Ce});w.w(on,{JK:"maxLineWidth"},function(){return this.Ye}); +function $i(){V.call(this);this.We=null;this.ds="";this.Oj=(new x(NaN,NaN,NaN,NaN)).freeze();this.Vn=vd;this.hs=this.Rj=this.sf=null;this.uy=!1;this.Eu=!0;this.vo=null;this.iC=0}w.Na($i,V);w.la("Picture",$i);var Gn=new xa,Hn=0,Vi=[];function In(){var a=Vi;if(0===a.length)for(var b=window.document.getElementsByTagName("canvas"),c=b.length,d=0;dr.Fo.length&&(Nn(r,4,l,m),Nn(r,16, -l,m));for(var l=r.Fo,m=l.length,q=l[0],t=0;tr.Fo.length&&(Nn(r,4,l,m),Nn(r,16, +l,m));for(var l=r.Fo,m=l.length,q=l[0],t=0;tk&&a.y>l&&a.rightk&&b.y>l&&b.rightk&&a.y>l&&a.rightk&&b.y>l&&b.right=c.lI)){this.R^=4096;var d=!1;if(null!==c){d=c.lb;c.lb=!0;var e=c.selection;e.Sa();a?e.add(this):e.remove(this);e.freeze()}this.i("isSelected",b,a);this.je();a=this.RI;null!==a&&a(this);null!==c&&(c.ne(),c.lb=d)}}}); -w.defineProperty(C,{kh:"isHighlighted"},function(){return 0!==(this.R&524288)},function(a){var b=0!==(this.R&524288);if(b!==a){u&&w.g(a,"boolean",C,"isHighlighted");this.R^=524288;var c=this.h;null!==c&&(c=c.ww,c.Sa(),a?c.add(this):c.remove(this),c.freeze());this.i("isHighlighted",b,a);this.ra()}});w.defineProperty(C,{gk:"isShadowed"},function(){return 0!==(this.R&8192)},function(a){var b=0!==(this.R&8192);b!==a&&(u&&w.g(a,"boolean",C,"isShadowed"),this.R^=8192,this.i("isShadowed",b,a),this.ra())}); -function Jj(a){return 0!==(a.R&32768)}function Sn(a,b){a.R=b?a.R|32768:a.R&-32769}function yl(a,b){a.R=b?a.R|65536:a.R&-65537}function Oi(a){return 0!==(a.R&131072)}C.prototype.Ef=function(a){this.R=a?this.R|131072:this.R&-131073};function Yn(a,b){a.R=b?a.R|1048576:a.R&-1048577}w.defineProperty(C,{qE:"isAnimated"},function(){return 0!==(this.R&262144)},function(a){var b=0!==(this.R&262144);b!==a&&(u&&w.g(a,"boolean",C,"isAnimated"),this.R^=262144,this.i("isAnimated",b,a))}); -w.defineProperty(C,{$w:"selectionObjectName"},function(){return this.Yr},function(a){var b=this.Yr;b!==a&&(u&&w.g(a,"string",C,"selectionObjectName"),this.Yr=a,this.vm=null,this.i("selectionObjectName",b,a))});w.defineProperty(C,{QI:"selectionAdornmentTemplate"},function(){return this.Wr},function(a){var b=this.Wr;b!==a&&(u&&w.k(a,da,C,"selectionAdornmentTemplate"),this instanceof G&&(a.type=jh),this.Wr=a,this.i("selectionAdornmentTemplate",b,a))}); -w.w(C,{hn:"selectionObject"},function(){if(null===this.vm){var a=this.$w;null!==a&&""!==a?(a=this.te(a),this.vm=null!==a?a:this):this instanceof G?(a=this.path,this.vm=null!==a?a:this):this.vm=this}return this.vm});w.defineProperty(C,{RI:"selectionChanged"},function(){return this.Xr},function(a){var b=this.Xr;b!==a&&(null!==a&&w.g(a,"function",C,"selectionChanged"),this.Xr=a,this.i("selectionChanged",b,a))}); -w.defineProperty(C,{aF:"resizeAdornmentTemplate"},function(){return this.Jr},function(a){var b=this.Jr;b!==a&&(u&&w.k(a,da,C,"resizeAdornmentTemplate"),this.Jr=a,this.i("resizeAdornmentTemplate",b,a))});w.defineProperty(C,{cF:"resizeObjectName"},function(){return this.Lr},function(a){var b=this.Lr;b!==a&&(u&&w.g(a,"string",C,"resizeObjectName"),this.Lr=a,this.ro=null,this.i("resizeObjectName",b,a))}); -w.w(C,{bF:"resizeObject"},function(){if(null===this.ro){var a=this.cF;null!==a&&""!==a?(a=this.te(a),this.ro=null!==a?a:this):this.ro=this}return this.ro});w.defineProperty(C,{HI:"resizeCellSize"},function(){return this.Kr},function(a){var b=this.Kr;b.N(a)||(u&&w.k(a,pa,C,"resizeCellSize"),this.Kr=a=a.da(),this.i("resizeCellSize",b,a))}); -w.defineProperty(C,{JI:"rotateAdornmentTemplate"},function(){return this.Mr},function(a){var b=this.Mr;b!==a&&(u&&w.k(a,da,C,"rotateAdornmentTemplate"),this.Mr=a,this.i("rotateAdornmentTemplate",b,a))});w.defineProperty(C,{KI:"rotateObjectName"},function(){return this.Nr},function(a){var b=this.Nr;b!==a&&(u&&w.g(a,"string",C,"rotateObjectName"),this.Nr=a,this.so=null,this.i("rotateObjectName",b,a))}); -w.w(C,{fF:"rotateObject"},function(){if(null===this.so){var a=this.KI;null!==a&&""!==a?(a=this.te(a),this.so=null!==a?a:this):this.so=this}return this.so});w.defineProperty(C,{text:"text"},function(){return this.re},function(a){var b=this.re;b!==a&&(u&&w.g(a,"string",C,"text"),this.re=a,this.i("text",b,a))}); -w.defineProperty(C,{Va:"containingGroup"},function(){return this.Dk},function(a){if(this.Sd()){var b=this.Dk;if(b!==a){u&&null!==a&&w.k(a,F,C,"containingGroup");null===a||this!==a&&!a.bi(this)||(this===a&&w.l("Cannot make a Group a member of itself: "+this.toString()),w.l("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString()));this.K(Yj);var c=this.h;null!==b?Zn(b,this):this instanceof F&&null!==c&&c.al.remove(this);this.Dk=a;null!==a?$n(a,this):this instanceof -F&&null!==c&&c.al.add(this);this.K(Qj);if(null!==c){var d=this.data,e=c.ha;null!==d&&e instanceof X&&e.ex(d,e.Db(null!==a?a.data:null))}d=this.BD;null!==d&&(e=!0,null!==c&&(e=c.Ta,c.Ta=!0),d(this,b,a),null!==c&&(c.Ta=e));if(this instanceof F)for(c=new L(C),Af(c,this,!0,0,!0),c=c.j;c.next();)if(d=c.value,d instanceof D)for(d=d.Vd;d.next();)Ek(d.value);if(this instanceof D)for(d=this.Vd;d.next();)Ek(d.value);this.i("containingGroup",b,a);null!==a&&a.jx()}}else w.l("cannot set the Part.containingGroup of a Link or Adornment")}); -f=C.prototype;f.yl=function(){var a=this.Va;null!==a&&(a.V(),null!==a.Wb&&a.Wb.V(),a.zf())};f.ra=function(){var a=this.h;null!==a&&!Ij(this)&&!Jj(this)&&this.La()&&this.Nb.J()&&a.ra(Ti(this,this.Nb))};f.bt=function(a){var b=this.Dk;null===b||a||$n(b,this)};f.ct=function(a){var b=this.Dk;null===b||a||Zn(b,this)};f.Sm=function(){var a=this.data;if(null!==a){var b=this.h;null!==b&&(b=b.ha,null!==b&&b.sA(a))}}; -w.defineProperty(C,{BD:"containingGroupChanged"},function(){return this.$p},function(a){var b=this.$p;b!==a&&(null!==a&&w.g(a,"function",C,"containingGroupChanged"),this.$p=a,this.i("containingGroupChanged",b,a))});C.prototype.findSubGraphLevel=function(){return ao(this,this)};function ao(a,b){var c=b.Va;return null!==c?1+ao(a,c):b instanceof D&&(c=b.Cd,null!==c)?ao(a,c):0}C.prototype.findTopLevelPart=function(){return bo(this,this)}; -function bo(a,b){var c=b.Va;return null!==c?bo(a,c):b instanceof D&&(c=b.Cd,null!==c)?bo(a,c):b}w.w(C,{bp:"isTopLevel"},function(){return null!==this.Va||this instanceof D&&this.Af?!1:!0});C.prototype.isMemberOf=C.prototype.bi=function(a){return a instanceof F?co(this,this,a):!1};function co(a,b,c){if(b===c||null===c)return!1;var d=b.Va;return null===d||d!==c&&!co(a,d,c)?b instanceof D&&(b=b.Cd,null!==b)?co(a,b,c):!1:!0} -C.prototype.findCommonContainingGroup=C.prototype.pH=function(a){if(null===a)return null;u&&w.k(a,C,C,"findCommonContainingGroup:other");if(this===a)return this instanceof F?this:null;for(var b=this;null!==b;)b instanceof F&&Yn(b,!0),b=b.Va;for(var c=null,b=a;null!==b;){if(0!==(b.R&1048576)){c=b;break}b=b.Va}for(b=this;null!==b;)b instanceof F&&Yn(b,!1),b=b.Va;return c}; -w.defineProperty(C,{cI:"layoutConditions"},function(){return this.Qq},function(a){var b=this.Qq;b!==a&&(u&&w.g(a,"number",C,"layoutConditions"),this.Qq=a,this.i("layoutConditions",b,a))});C.prototype.canLayout=function(){if(!this.Uz||!this.La())return!1;var a=this.layer;return null!==a&&a.Hc||this instanceof D&&this.Af?!1:!0}; -C.prototype.invalidateLayout=C.prototype.K=function(a){void 0===a&&(a=16777215);var b;this.Uz&&0!==(a&this.cI)?(b=this.layer,null!==b&&b.Hc||this instanceof D&&this.Af?b=!1:(b=this.h,b=null!==b&&b.na.ob?!1:!0)):b=!1;if(b)if(b=this.Dk,null!==b){var c=b.Tb;null!==c?c.K():b.K(a)}else a=this.h,null!==a&&(c=a.Tb,null!==c&&c.K())};function Vj(a){if(!a.La())return!1;a=a.layer;return null!==a&&a.Hc?!1:!0} -w.defineProperty(C,{PD:"dragComputation"},function(){return this.jq},function(a){var b=this.jq;b!==a&&(null!==a&&w.g(a,"function",C,"dragComputation"),this.jq=a,this.i("dragComputation",b,a))});w.defineProperty(C,{WI:"shadowOffset"},function(){return this.ym},function(a){var b=this.ym;b.N(a)||(u&&w.k(a,I,C,"shadowOffset"),this.ym=a=a.da(),this.ra(),this.i("shadowOffset",b,a))}); +w.defineProperty(C,{Tc:"category"},function(){return this.hi},function(a){var b=this.hi;if(b!==a){w.g(a,"string",C,"category");var c=this.h,d=this.data,e=null;if(null!==c&&null!==d&&!(this instanceof da)){var g=c.ha.na;g.isEnabled&&!g.ob&&(e=this.clone(),e.ua.ce(this.ua))}this.hi=a;this.i("category",b,a);null===c||null===d||this instanceof da?(e=this.Yh,null!==e&&(a=e.Og,null!==a&&a.remove(b),e.cl(this.Tc,this))):(g=c.ha,g.na.ob||(this instanceof G?(g instanceof X?g.rF(d,a):g instanceof Be&&g.VI(d, +a),c=Jk(c,a),null!==c&&(Cf(c),c=c.copy(),null!==c&&Wn(this,c,b,a))):(null!==g&&g.bx(d,a),c=Gk(c,d,a),null!==c&&(Cf(c),c=c.copy(),null===c||c instanceof G||(c.location=this.location,Wn(this,c,b,a)))),null!==e&&(b=this.clone(),b.ua.ce(this.ua),this.i("self",e,b))))}});w.defineProperty(C,{self:"self"},function(){return this},function(a){Wn(this,a,this.Tc,a.Tc)});var Xn=!1; +function Wn(a,b,c,d){b.constructor===a.constructor||Xn||(Xn=!0,w.trace('Should not change the class of the Part when changing category from "'+c+'" to "'+d+'"'),w.trace(" Old class: "+w.Eg(a)+", new class: "+w.Eg(b)+", part: "+a.toString()));a.Fs();var e=a.data;c=a.hf;var g=a.cb,h=a.kh,k=!0,l=!0,m=!1;if(a instanceof D)var n=a,k=n.Zi,l=n.bd,m=n.Gp;b.$h(a);b.cloneProtected(a);a.hi=d;a.V();a.ra();b=a.h;d=!0;null!==b&&(d=b.lb,b.lb=!0);a.Eh=e;null!==e&&a.Vb();null!==b&&(b.lb=d);e=a.hf;e!==c&&(a.Pk=c, +a.hf=e);a instanceof D&&(n=a,n.Zi=k,n.bd=l,n.Gp=m,n.Sd()&&n.K(64));a.cb=g;a.kh=h}C.prototype.canCopy=function(){if(!this.GD)return!1;var a=this.layer;if(null===a)return!0;if(!a.Zj)return!1;a=a.h;return null===a?!0:a.Zj?!0:!1};C.prototype.canDelete=function(){if(!this.MD)return!1;var a=this.layer;if(null===a)return!0;if(!a.Hm)return!1;a=a.h;return null===a?!0:a.Hm?!0:!1}; +C.prototype.canEdit=function(){if(!this.AF)return!1;var a=this.layer;if(null===a)return!0;if(!a.Zv)return!1;a=a.h;return null===a?!0:a.Zv?!0:!1};C.prototype.canGroup=function(){if(!this.lE)return!1;var a=this.layer;if(null===a)return!0;if(!a.Wv)return!1;a=a.h;return null===a?!0:a.Wv?!0:!1};C.prototype.canMove=function(){if(!this.JE)return!1;var a=this.layer;if(null===a)return!0;if(!a.fl)return!1;a=a.h;return null===a?!0:a.fl?!0:!1}; +C.prototype.canReshape=function(){if(!this.aF)return!1;var a=this.layer;if(null===a)return!0;if(!a.Xv)return!1;a=a.h;return null===a?!0:a.Xv?!0:!1};C.prototype.canResize=function(){if(!this.bF)return!1;var a=this.layer;if(null===a)return!0;if(!a.As)return!1;a=a.h;return null===a?!0:a.As?!0:!1};C.prototype.canRotate=function(){if(!this.gF)return!1;var a=this.layer;if(null===a)return!0;if(!a.Yv)return!1;a=a.h;return null===a?!0:a.Yv?!0:!1}; +C.prototype.canSelect=function(){if(!this.kk)return!1;var a=this.layer;if(null===a)return!0;if(!a.vf)return!1;a=a.h;return null===a?!0:a.vf?!0:!1};w.defineProperty(C,{GD:"copyable"},function(){return 0!==(this.R&1)},function(a){var b=0!==(this.R&1);b!==a&&(u&&w.g(a,"boolean",C,"copyable"),this.R^=1,this.i("copyable",b,a))}); +w.defineProperty(C,{MD:"deletable"},function(){return 0!==(this.R&2)},function(a){var b=0!==(this.R&2);b!==a&&(u&&w.g(a,"boolean",C,"deletable"),this.R^=2,this.i("deletable",b,a))});w.defineProperty(C,{AF:"textEditable"},function(){return 0!==(this.R&4)},function(a){var b=0!==(this.R&4);b!==a&&(u&&w.g(a,"boolean",C,"textEditable"),this.R^=4,this.i("textEditable",b,a),this.je())}); +w.defineProperty(C,{lE:"groupable"},function(){return 0!==(this.R&8)},function(a){var b=0!==(this.R&8);b!==a&&(u&&w.g(a,"boolean",C,"groupable"),this.R^=8,this.i("groupable",b,a))});w.defineProperty(C,{JE:"movable"},function(){return 0!==(this.R&16)},function(a){var b=0!==(this.R&16);b!==a&&(u&&w.g(a,"boolean",C,"movable"),this.R^=16,this.i("movable",b,a))}); +w.defineProperty(C,{pF:"selectionAdorned"},function(){return 0!==(this.R&32)},function(a){var b=0!==(this.R&32);b!==a&&(u&&w.g(a,"boolean",C,"selectionAdorned"),this.R^=32,this.i("selectionAdorned",b,a),this.je())});w.defineProperty(C,{Ew:"isInDocumentBounds"},function(){return 0!==(this.R&64)},function(a){var b=0!==(this.R&64);if(b!==a){u&&w.g(a,"boolean",C,"isInDocumentBounds");this.R^=64;var c=this.h;null!==c&&c.xc();this.i("isInDocumentBounds",b,a)}}); +w.defineProperty(C,{Vz:"isLayoutPositioned"},function(){return 0!==(this.R&128)},function(a){var b=0!==(this.R&128);b!==a&&(u&&w.g(a,"boolean",C,"isLayoutPositioned"),this.R^=128,this.i("isLayoutPositioned",b,a),this.K(a?4:8))});w.defineProperty(C,{kk:"selectable"},function(){return 0!==(this.R&256)},function(a){var b=0!==(this.R&256);b!==a&&(u&&w.g(a,"boolean",C,"selectable"),this.R^=256,this.i("selectable",b,a),this.je())}); +w.defineProperty(C,{aF:"reshapable"},function(){return 0!==(this.R&512)},function(a){var b=0!==(this.R&512);b!==a&&(u&&w.g(a,"boolean",C,"reshapable"),this.R^=512,this.i("reshapable",b,a),this.je())});w.defineProperty(C,{bF:"resizable"},function(){return 0!==(this.R&1024)},function(a){var b=0!==(this.R&1024);b!==a&&(u&&w.g(a,"boolean",C,"resizable"),this.R^=1024,this.i("resizable",b,a),this.je())}); +w.defineProperty(C,{gF:"rotatable"},function(){return 0!==(this.R&2048)},function(a){var b=0!==(this.R&2048);b!==a&&(u&&w.g(a,"boolean",C,"rotatable"),this.R^=2048,this.i("rotatable",b,a),this.je())}); +w.defineProperty(C,{cb:"isSelected"},function(){return 0!==(this.R&4096)},function(a){var b=0!==(this.R&4096);if(b!==a){u&&w.g(a,"boolean",C,"isSelected");var c=this.h;if(!a||this.canSelect()&&!(null!==c&&c.selection.count>=c.nI)){this.R^=4096;var d=!1;if(null!==c){d=c.lb;c.lb=!0;var e=c.selection;e.Sa();a?e.add(this):e.remove(this);e.freeze()}this.i("isSelected",b,a);this.je();a=this.TI;null!==a&&a(this);null!==c&&(c.ne(),c.lb=d)}}}); +w.defineProperty(C,{kh:"isHighlighted"},function(){return 0!==(this.R&524288)},function(a){var b=0!==(this.R&524288);if(b!==a){u&&w.g(a,"boolean",C,"isHighlighted");this.R^=524288;var c=this.h;null!==c&&(c=c.xw,c.Sa(),a?c.add(this):c.remove(this),c.freeze());this.i("isHighlighted",b,a);this.ra()}});w.defineProperty(C,{gk:"isShadowed"},function(){return 0!==(this.R&8192)},function(a){var b=0!==(this.R&8192);b!==a&&(u&&w.g(a,"boolean",C,"isShadowed"),this.R^=8192,this.i("isShadowed",b,a),this.ra())}); +function Jj(a){return 0!==(a.R&32768)}function Sn(a,b){a.R=b?a.R|32768:a.R&-32769}function yl(a,b){a.R=b?a.R|65536:a.R&-65537}function Oi(a){return 0!==(a.R&131072)}C.prototype.Ef=function(a){this.R=a?this.R|131072:this.R&-131073};function Yn(a,b){a.R=b?a.R|1048576:a.R&-1048577}w.defineProperty(C,{rE:"isAnimated"},function(){return 0!==(this.R&262144)},function(a){var b=0!==(this.R&262144);b!==a&&(u&&w.g(a,"boolean",C,"isAnimated"),this.R^=262144,this.i("isAnimated",b,a))}); +w.defineProperty(C,{ax:"selectionObjectName"},function(){return this.Yr},function(a){var b=this.Yr;b!==a&&(u&&w.g(a,"string",C,"selectionObjectName"),this.Yr=a,this.vm=null,this.i("selectionObjectName",b,a))});w.defineProperty(C,{SI:"selectionAdornmentTemplate"},function(){return this.Wr},function(a){var b=this.Wr;b!==a&&(u&&w.k(a,da,C,"selectionAdornmentTemplate"),this instanceof G&&(a.type=jh),this.Wr=a,this.i("selectionAdornmentTemplate",b,a))}); +w.w(C,{hn:"selectionObject"},function(){if(null===this.vm){var a=this.ax;null!==a&&""!==a?(a=this.te(a),this.vm=null!==a?a:this):this instanceof G?(a=this.path,this.vm=null!==a?a:this):this.vm=this}return this.vm});w.defineProperty(C,{TI:"selectionChanged"},function(){return this.Xr},function(a){var b=this.Xr;b!==a&&(null!==a&&w.g(a,"function",C,"selectionChanged"),this.Xr=a,this.i("selectionChanged",b,a))}); +w.defineProperty(C,{cF:"resizeAdornmentTemplate"},function(){return this.Jr},function(a){var b=this.Jr;b!==a&&(u&&w.k(a,da,C,"resizeAdornmentTemplate"),this.Jr=a,this.i("resizeAdornmentTemplate",b,a))});w.defineProperty(C,{eF:"resizeObjectName"},function(){return this.Lr},function(a){var b=this.Lr;b!==a&&(u&&w.g(a,"string",C,"resizeObjectName"),this.Lr=a,this.ro=null,this.i("resizeObjectName",b,a))}); +w.w(C,{dF:"resizeObject"},function(){if(null===this.ro){var a=this.eF;null!==a&&""!==a?(a=this.te(a),this.ro=null!==a?a:this):this.ro=this}return this.ro});w.defineProperty(C,{JI:"resizeCellSize"},function(){return this.Kr},function(a){var b=this.Kr;b.N(a)||(u&&w.k(a,pa,C,"resizeCellSize"),this.Kr=a=a.da(),this.i("resizeCellSize",b,a))}); +w.defineProperty(C,{LI:"rotateAdornmentTemplate"},function(){return this.Mr},function(a){var b=this.Mr;b!==a&&(u&&w.k(a,da,C,"rotateAdornmentTemplate"),this.Mr=a,this.i("rotateAdornmentTemplate",b,a))});w.defineProperty(C,{MI:"rotateObjectName"},function(){return this.Nr},function(a){var b=this.Nr;b!==a&&(u&&w.g(a,"string",C,"rotateObjectName"),this.Nr=a,this.so=null,this.i("rotateObjectName",b,a))}); +w.w(C,{hF:"rotateObject"},function(){if(null===this.so){var a=this.MI;null!==a&&""!==a?(a=this.te(a),this.so=null!==a?a:this):this.so=this}return this.so});w.defineProperty(C,{text:"text"},function(){return this.re},function(a){var b=this.re;b!==a&&(u&&w.g(a,"string",C,"text"),this.re=a,this.i("text",b,a))}); +w.defineProperty(C,{Va:"containingGroup"},function(){return this.Dk},function(a){if(this.Sd()){var b=this.Dk;if(b!==a){u&&null!==a&&w.k(a,F,C,"containingGroup");null===a||this!==a&&!a.ci(this)||(this===a&&w.l("Cannot make a Group a member of itself: "+this.toString()),w.l("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString()));this.K(Yj);var c=this.h;null!==b?Zn(b,this):this instanceof F&&null!==c&&c.al.remove(this);this.Dk=a;null!==a?$n(a,this):this instanceof +F&&null!==c&&c.al.add(this);this.K(Qj);if(null!==c){var d=this.data,e=c.ha;null!==d&&e instanceof X&&e.gx(d,e.Db(null!==a?a.data:null))}d=this.CD;null!==d&&(e=!0,null!==c&&(e=c.Ta,c.Ta=!0),d(this,b,a),null!==c&&(c.Ta=e));if(this instanceof F)for(c=new L(C),Af(c,this,!0,0,!0),c=c.j;c.next();)if(d=c.value,d instanceof D)for(d=d.Vd;d.next();)Ek(d.value);if(this instanceof D)for(d=this.Vd;d.next();)Ek(d.value);this.i("containingGroup",b,a);null!==a&&a.kx()}}else w.l("cannot set the Part.containingGroup of a Link or Adornment")}); +f=C.prototype;f.yl=function(){var a=this.Va;null!==a&&(a.V(),null!==a.Wb&&a.Wb.V(),a.zf())};f.ra=function(){var a=this.h;null!==a&&!Ij(this)&&!Jj(this)&&this.La()&&this.Nb.J()&&a.ra(Ti(this,this.Nb))};f.bt=function(a){var b=this.Dk;null===b||a||$n(b,this)};f.ct=function(a){var b=this.Dk;null===b||a||Zn(b,this)};f.Sm=function(){var a=this.data;if(null!==a){var b=this.h;null!==b&&(b=b.ha,null!==b&&b.tA(a))}}; +w.defineProperty(C,{CD:"containingGroupChanged"},function(){return this.$p},function(a){var b=this.$p;b!==a&&(null!==a&&w.g(a,"function",C,"containingGroupChanged"),this.$p=a,this.i("containingGroupChanged",b,a))});C.prototype.findSubGraphLevel=function(){return ao(this,this)};function ao(a,b){var c=b.Va;return null!==c?1+ao(a,c):b instanceof D&&(c=b.Cd,null!==c)?ao(a,c):0}C.prototype.findTopLevelPart=function(){return bo(this,this)}; +function bo(a,b){var c=b.Va;return null!==c?bo(a,c):b instanceof D&&(c=b.Cd,null!==c)?bo(a,c):b}w.w(C,{bp:"isTopLevel"},function(){return null!==this.Va||this instanceof D&&this.Af?!1:!0});C.prototype.isMemberOf=C.prototype.ci=function(a){return a instanceof F?co(this,this,a):!1};function co(a,b,c){if(b===c||null===c)return!1;var d=b.Va;return null===d||d!==c&&!co(a,d,c)?b instanceof D&&(b=b.Cd,null!==b)?co(a,b,c):!1:!0} +C.prototype.findCommonContainingGroup=C.prototype.rH=function(a){if(null===a)return null;u&&w.k(a,C,C,"findCommonContainingGroup:other");if(this===a)return this instanceof F?this:null;for(var b=this;null!==b;)b instanceof F&&Yn(b,!0),b=b.Va;for(var c=null,b=a;null!==b;){if(0!==(b.R&1048576)){c=b;break}b=b.Va}for(b=this;null!==b;)b instanceof F&&Yn(b,!1),b=b.Va;return c}; +w.defineProperty(C,{eI:"layoutConditions"},function(){return this.Qq},function(a){var b=this.Qq;b!==a&&(u&&w.g(a,"number",C,"layoutConditions"),this.Qq=a,this.i("layoutConditions",b,a))});C.prototype.canLayout=function(){if(!this.Vz||!this.La())return!1;var a=this.layer;return null!==a&&a.Hc||this instanceof D&&this.Af?!1:!0}; +C.prototype.invalidateLayout=C.prototype.K=function(a){void 0===a&&(a=16777215);var b;this.Vz&&0!==(a&this.eI)?(b=this.layer,null!==b&&b.Hc||this instanceof D&&this.Af?b=!1:(b=this.h,b=null!==b&&b.na.ob?!1:!0)):b=!1;if(b)if(b=this.Dk,null!==b){var c=b.Tb;null!==c?c.K():b.K(a)}else a=this.h,null!==a&&(c=a.Tb,null!==c&&c.K())};function Vj(a){if(!a.La())return!1;a=a.layer;return null!==a&&a.Hc?!1:!0} +w.defineProperty(C,{QD:"dragComputation"},function(){return this.jq},function(a){var b=this.jq;b!==a&&(null!==a&&w.g(a,"function",C,"dragComputation"),this.jq=a,this.i("dragComputation",b,a))});w.defineProperty(C,{YI:"shadowOffset"},function(){return this.ym},function(a){var b=this.ym;b.N(a)||(u&&w.k(a,I,C,"shadowOffset"),this.ym=a=a.da(),this.ra(),this.i("shadowOffset",b,a))}); w.defineProperty(C,{shadowColor:"shadowColor"},function(){return this.xm},function(a){var b=this.xm;b!==a&&(u&&w.g(a,"string",C,"shadowColor"),this.xm=a,this.ra(),this.i("shadowColor",b,a))});w.defineProperty(C,{shadowBlur:"shadowBlur"},function(){return this.wm},function(a){var b=this.wm;b!==a&&(u&&w.g(a,"number",C,"shadowBlur"),this.wm=a,this.ra(),this.i("shadowBlur",b,a))}); -function da(a){0===arguments.length?C.call(this,Nh):C.call(this,a);this.hf="Adornment";this.Lb=null;this.R&=-257;this.Zg=new I(NaN,NaN);this.lj=new K(x);this.Wb=null}w.Na(da,C);w.la("Adornment",da);da.prototype.toString=function(){var a=this.Xh;return"Adornment("+this.Tc+")"+(null!==a?a.toString():"")};da.prototype.updateRelationshipsFromData=function(){}; +function da(a){0===arguments.length?C.call(this,Nh):C.call(this,a);this.hf="Adornment";this.Lb=null;this.R&=-257;this.Zg=new I(NaN,NaN);this.lj=new K(x);this.Wb=null}w.Na(da,C);w.la("Adornment",da);da.prototype.toString=function(){var a=this.Yh;return"Adornment("+this.Tc+")"+(null!==a?a.toString():"")};da.prototype.updateRelationshipsFromData=function(){}; da.prototype.pt=function(){var a=this.Bc.W,b=this.Bc;if(a instanceof G&&b instanceof Y){var c=a.path,b=c.Wa;a.pt();for(var b=c.Wa,a=this.ua.p,c=a.length,d=0;da&&(a=1);var b=this.h;if(null!==b&&!b.ve){var c=b.Sb;0!==b.na.Ue&&c.Fl();b.ve=!0;var c=b.Bd,d=new L(D);d.add(this);qo(this,d,c,a,this.bd);b.ve=!1}}; -function qo(a,b,c,d,e){if(1a&&(a=2);var b=this.h;if(null!==b&&!b.ve){var c=b.Sb;0!==b.na.Ue&&c.Fl();b.ve=!0;var d=b.Bd,e=new L(D);e.add(this);so(this,e,d,a,this.bd,c,this);b.ve=!1}};function so(a,b,c,d,e,g,h){for(var k=c?a.pw():a.Cg();k.next();){var l=k.value;l.Ic&&(e||l.vg||l.dc(),l=l.Hz(a),null!==l&&l!==a&&!b.contains(l)&&(b.add(l),e||(l.Qe(!0),l.yl(),Ai(g,l,h)),2a&&(a=2);var b=this.h;if(null!==b&&!b.ve){var c=b.Sb;0!==b.na.Ue&&c.Fl();b.ve=!0;var d=b.Bd,e=new L(D);e.add(this);so(this,e,d,a,this.bd,c,this);b.ve=!1}};function so(a,b,c,d,e,g,h){for(var k=c?a.qw():a.Cg();k.next();){var l=k.value;l.Ic&&(e||l.vg||l.dc(),l=l.Iz(a),null!==l&&l!==a&&!b.contains(l)&&(b.add(l),e||(l.Qe(!0),l.yl(),Ai(g,l,h)),2a&&(a-=180);break;case yo:a=O.vt(c+90);90a&&(a-=180);break;case zo:a=O.vt(c-90);90a&&(a-=180);break;case Ao:a=O.vt(c);if(45a||225a)return 0;90a&&(a-=180)}return O.vt(a)}; -w.defineProperty(G,{aa:"fromNode"},function(){return this.jg},function(a){var b=this.jg;if(b!==a){u&&null!==a&&w.k(a,D,G,"fromNode");var c=this.md;null!==b&&(this.ug!==b&&no(b,this,c),Bo(this),this.K(Yj));this.jg=a;this.qi=null;this.dc();var d=this.h;if(null!==d){var e=this.data,g=d.ha;if(null!==e)if(g instanceof X){var h=null!==a?a.data:null;g.bx(e,g.Db(h))}else g instanceof Be&&(h=null!==a?a.data:null,d.Bd?g.wh(e,g.Db(h)):(null!==b&&g.wh(b.data,void 0),g.wh(h,g.Db(null!==this.ug?this.ug.data:null))))}e= -this.md;g=this.cE;null!==g&&(h=!0,null!==d&&(h=d.Ta,d.Ta=!0),g(this,c,e),null!==d&&(d.Ta=h));null!==a&&(this.ug!==a&&mo(a,this,e),Co(this),this.K(Qj));this.i("fromNode",b,a);Ek(this)}}); -w.defineProperty(G,{Sf:"fromPortId"},function(){return this.Ih},function(a){var b=this.Ih;if(b!==a){u&&w.g(a,"string",G,"fromPortId");var c=this.md;null!==c&&lo(this.aa,c);Bo(this);this.Ih=a;var d=this.md;null!==d&&lo(this.aa,d);var e=this.h;if(null!==e){var g=this.data,h=e.ha;null!==g&&h instanceof X&&h.xA(g,a)}c!==d&&(this.qi=null,this.dc(),g=this.cE,null!==g&&(h=!0,null!==e&&(h=e.Ta,e.Ta=!0),g(this,c,d),null!==e&&(e.Ta=h)));Co(this);this.i("fromPortId",b,a)}}); -w.w(G,{md:"fromPort"},function(){var a=this.jg;return null===a?null:a.rl(this.Ih)});w.defineProperty(G,{cE:"fromPortChanged"},function(){return this.rq},function(a){var b=this.rq;b!==a&&(null!==a&&w.g(a,"function",G,"fromPortChanged"),this.rq=a,this.i("fromPortChanged",b,a))}); -w.defineProperty(G,{fa:"toNode"},function(){return this.ug},function(a){var b=this.ug;if(b!==a){u&&null!==a&&w.k(a,D,G,"toNode");var c=this.Wd;null!==b&&(this.jg!==b&&no(b,this,c),Bo(this),this.K(Yj));this.ug=a;this.qi=null;this.dc();var d=this.h;if(null!==d){var e=this.data,g=d.ha;if(null!==e)if(g instanceof X){var h=null!==a?a.data:null;g.gx(e,g.Db(h))}else g instanceof Be&&(h=null!==a?a.data:null,d.Bd?(null!==b&&g.wh(b.data,void 0),g.wh(h,g.Db(null!==this.jg?this.jg.data:null))):g.wh(e,g.Db(h)))}e= -this.Wd;g=this.BF;null!==g&&(h=!0,null!==d&&(h=d.Ta,d.Ta=!0),g(this,c,e),null!==d&&(d.Ta=h));null!==a&&(this.jg!==a&&mo(a,this,e),Co(this),this.K(Qj));this.i("toNode",b,a);Ek(this)}}); -w.defineProperty(G,{Ng:"toPortId"},function(){return this.Vh},function(a){var b=this.Vh;if(b!==a){u&&w.g(a,"string",G,"toPortId");var c=this.Wd;null!==c&&lo(this.fa,c);Bo(this);this.Vh=a;var d=this.Wd;null!==d&&lo(this.fa,d);var e=this.h;if(null!==e){var g=this.data,h=e.ha;null!==g&&h instanceof X&&h.BA(g,a)}c!==d&&(this.qi=null,this.dc(),g=this.BF,null!==g&&(h=!0,null!==e&&(h=e.Ta,e.Ta=!0),g(this,c,d),null!==e&&(e.Ta=h)));Co(this);this.i("toPortId",b,a)}}); -w.w(G,{Wd:"toPort"},function(){var a=this.ug;return null===a?null:a.rl(this.Vh)});w.defineProperty(G,{BF:"toPortChanged"},function(){return this.ms},function(a){var b=this.ms;b!==a&&(null!==a&&w.g(a,"function",G,"toPortChanged"),this.ms=a,this.i("toPortChanged",b,a))});w.defineProperty(G,{Cb:"fromSpot"},function(){return null!==this.U?this.U.tj:Pc},function(a){null===this.U&&this.Ne();var b=this.U.tj;b.N(a)||(u&&w.k(a,Q,G,"fromSpot"),a=a.da(),this.U.tj=a,this.i("fromSpot",b,a),this.dc())}); +w.defineProperty(G,{aa:"fromNode"},function(){return this.jg},function(a){var b=this.jg;if(b!==a){u&&null!==a&&w.k(a,D,G,"fromNode");var c=this.nd;null!==b&&(this.ug!==b&&no(b,this,c),Bo(this),this.K(Yj));this.jg=a;this.qi=null;this.dc();var d=this.h;if(null!==d){var e=this.data,g=d.ha;if(null!==e)if(g instanceof X){var h=null!==a?a.data:null;g.ex(e,g.Db(h))}else g instanceof Be&&(h=null!==a?a.data:null,d.Bd?g.wh(e,g.Db(h)):(null!==b&&g.wh(b.data,void 0),g.wh(h,g.Db(null!==this.ug?this.ug.data:null))))}e= +this.nd;g=this.dE;null!==g&&(h=!0,null!==d&&(h=d.Ta,d.Ta=!0),g(this,c,e),null!==d&&(d.Ta=h));null!==a&&(this.ug!==a&&mo(a,this,e),Co(this),this.K(Qj));this.i("fromNode",b,a);Ek(this)}}); +w.defineProperty(G,{Sf:"fromPortId"},function(){return this.Jh},function(a){var b=this.Jh;if(b!==a){u&&w.g(a,"string",G,"fromPortId");var c=this.nd;null!==c&&lo(this.aa,c);Bo(this);this.Jh=a;var d=this.nd;null!==d&&lo(this.aa,d);var e=this.h;if(null!==e){var g=this.data,h=e.ha;null!==g&&h instanceof X&&h.yA(g,a)}c!==d&&(this.qi=null,this.dc(),g=this.dE,null!==g&&(h=!0,null!==e&&(h=e.Ta,e.Ta=!0),g(this,c,d),null!==e&&(e.Ta=h)));Co(this);this.i("fromPortId",b,a)}}); +w.w(G,{nd:"fromPort"},function(){var a=this.jg;return null===a?null:a.rl(this.Jh)});w.defineProperty(G,{dE:"fromPortChanged"},function(){return this.rq},function(a){var b=this.rq;b!==a&&(null!==a&&w.g(a,"function",G,"fromPortChanged"),this.rq=a,this.i("fromPortChanged",b,a))}); +w.defineProperty(G,{fa:"toNode"},function(){return this.ug},function(a){var b=this.ug;if(b!==a){u&&null!==a&&w.k(a,D,G,"toNode");var c=this.Wd;null!==b&&(this.jg!==b&&no(b,this,c),Bo(this),this.K(Yj));this.ug=a;this.qi=null;this.dc();var d=this.h;if(null!==d){var e=this.data,g=d.ha;if(null!==e)if(g instanceof X){var h=null!==a?a.data:null;g.hx(e,g.Db(h))}else g instanceof Be&&(h=null!==a?a.data:null,d.Bd?(null!==b&&g.wh(b.data,void 0),g.wh(h,g.Db(null!==this.jg?this.jg.data:null))):g.wh(e,g.Db(h)))}e= +this.Wd;g=this.DF;null!==g&&(h=!0,null!==d&&(h=d.Ta,d.Ta=!0),g(this,c,e),null!==d&&(d.Ta=h));null!==a&&(this.jg!==a&&mo(a,this,e),Co(this),this.K(Qj));this.i("toNode",b,a);Ek(this)}}); +w.defineProperty(G,{Ng:"toPortId"},function(){return this.Wh},function(a){var b=this.Wh;if(b!==a){u&&w.g(a,"string",G,"toPortId");var c=this.Wd;null!==c&&lo(this.fa,c);Bo(this);this.Wh=a;var d=this.Wd;null!==d&&lo(this.fa,d);var e=this.h;if(null!==e){var g=this.data,h=e.ha;null!==g&&h instanceof X&&h.CA(g,a)}c!==d&&(this.qi=null,this.dc(),g=this.DF,null!==g&&(h=!0,null!==e&&(h=e.Ta,e.Ta=!0),g(this,c,d),null!==e&&(e.Ta=h)));Co(this);this.i("toPortId",b,a)}}); +w.w(G,{Wd:"toPort"},function(){var a=this.ug;return null===a?null:a.rl(this.Wh)});w.defineProperty(G,{DF:"toPortChanged"},function(){return this.ms},function(a){var b=this.ms;b!==a&&(null!==a&&w.g(a,"function",G,"toPortChanged"),this.ms=a,this.i("toPortChanged",b,a))});w.defineProperty(G,{Cb:"fromSpot"},function(){return null!==this.U?this.U.tj:Pc},function(a){null===this.U&&this.Ne();var b=this.U.tj;b.N(a)||(u&&w.k(a,Q,G,"fromSpot"),a=a.da(),this.U.tj=a,this.i("fromSpot",b,a),this.dc())}); w.defineProperty(G,{sl:"fromEndSegmentLength"},function(){return null!==this.U?this.U.rj:NaN},function(a){null===this.U&&this.Ne();var b=this.U.rj;b!==a&&(u&&w.g(a,"number",G,"fromEndSegmentLength"),0>a&&w.ja(a,">= 0",G,"fromEndSegmentLength"),this.U.rj=a,this.i("fromEndSegmentLength",b,a),this.dc())}); w.defineProperty(G,{Xs:"fromEndSegmentDirection"},function(){return null!==this.U?this.U.qj:fo},function(a){null===this.U&&this.Ne();var b=this.U.qj;b!==a&&(u&&w.Ca(a,D,G,"fromEndSegmentDirection"),this.U.qj=a,this.i("fromEndSegmentDirection",b,a),this.dc())});w.defineProperty(G,{Ys:"fromShortLength"},function(){return null!==this.U?this.U.sj:NaN},function(a){null===this.U&&this.Ne();var b=this.U.sj;b!==a&&(u&&w.g(a,"number",G,"fromShortLength"),this.U.sj=a,this.i("fromShortLength",b,a),this.dc())}); w.defineProperty(G,{Eb:"toSpot"},function(){return null!==this.U?this.U.Vj:Pc},function(a){null===this.U&&this.Ne();var b=this.U.Vj;b.N(a)||(u&&w.k(a,Q,G,"toSpot"),a=a.da(),this.U.Vj=a,this.i("toSpot",b,a),this.dc())}); w.defineProperty(G,{Nl:"toEndSegmentLength"},function(){return null!==this.U?this.U.Tj:NaN},function(a){null===this.U&&this.Ne();var b=this.U.Tj;b!==a&&(u&&w.g(a,"number",G,"toEndSegmentLength"),0>a&&w.ja(a,">= 0",G,"toEndSegmentLength"),this.U.Tj=a,this.i("toEndSegmentLength",b,a),this.dc())}); w.defineProperty(G,{Qt:"toEndSegmentDirection"},function(){return null!==this.U?this.U.Sj:fo},function(a){null===this.U&&this.Ne();var b=this.U.Sj;b!==a&&(u&&w.Ca(a,D,G,"toEndSegmentDirection"),this.U.Sj=a,this.i("toEndSegmentDirection",b,a),this.dc())});w.defineProperty(G,{St:"toShortLength"},function(){return null!==this.U?this.U.Uj:NaN},function(a){null===this.U&&this.Ne();var b=this.U.Uj;b!==a&&(u&&w.g(a,"number",G,"toShortLength"),this.U.Uj=a,this.i("toShortLength",b,a),this.dc())}); -function Ek(a){var b=a.aa,c=a.fa;null!==b?null!==c?Do(a,b.pH(c)):Do(a,null):Do(a,null)}function Do(a,b){var c=a.Dk;if(c!==b){null!==c&&Zn(c,a);a.Dk=b;null!==b&&$n(b,a);var d=a.BD;if(null!==d){var e=!0,g=a.h;null!==g&&(e=g.Ta,g.Ta=!0);d(a,c,b);null!==g&&(g.Ta=e)}!a.vg||a.NC!==c&&a.PC!==c||a.dc()}}G.prototype.yl=function(){var a=this.Va;null!==a&&this.aa!==a&&this.fa!==a&&C.prototype.yl.call(this)}; -G.prototype.getOtherNode=G.prototype.Hz=function(a){u&&w.k(a,D,G,"getOtherNode:node");var b=this.aa;return a===b?this.fa:b};G.prototype.getOtherPort=function(a){u&&w.k(a,V,G,"getOtherPort:port");var b=this.md;return a===b?this.Wd:b};w.w(G,{rK:"isLabeledLink"},function(){return null===this.De?!1:0=d&&(h=d-1);var l=this.m(h-1),g=this.m(h);O.Ho(e.x,e.y,k.x,k.y,l.x,l.y,g.x,g.y,.5,a);b=Math.min(g.x,b);c=Math.min(g.y,c);e=g}else for(e=this.m(0),g=this.m(1),b=Math.min(e.x,g.x),c=Math.min(e.y,g.y),a.n(e.x,e.y,0,0),a.dj(g),h=2;hc&&(c=-c)):O.wb(c.y,d.y)?(c=d.x-c.x,0>c&&(c=-c)):c=Math.sqrt(c.bk(d)),g.push(c),e+=c;for(d=h=c=0;ce/2)break;c+=d;h++}w.wa(g);b=this.m(h);g=this.m(h+1);b.x===g.x?b.y>g.y?a.n(b.x,b.y-(e/2-c)):a.n(b.x,b.y+(e/2-c)):b.y===g.y?b.x>g.x?a.n(b.x-(e/2-c),b.y):a.n(b.x+(e/2-c),b.y):(e=(e/2-c)/d,a.n(b.x+e*(g.x-b.x),b.y+e*(g.y-b.y)));return a};w.w(G,{CE:"midAngle"},function(){this.updateRoute();return this.computeMidAngle()}); -G.prototype.computeMidAngle=function(){var a=this.pa;if(2>a)return NaN;if(this.computeCurve()===th&&4<=a&&!this.jc){var b=(a-1)/3|0,c=3*(b/2|0);if(1===b%2){var c=Math.floor(c),a=this.m(c),b=this.m(c+1),d=this.m(c+2),c=this.m(c+3);return O.EG(a.x,a.y,b.x,b.y,d.x,d.y,c.x,c.y)}if(0e?a.Ui(b):b.Ui(d)}; +c),O.Ho(e.x,e.y,d.x,d.y,d.x,d.y,g.x,g.y,.5,a);else for(var h=3;h=d&&(h=d-1);var l=this.m(h-1),g=this.m(h);O.Ho(e.x,e.y,k.x,k.y,l.x,l.y,g.x,g.y,.5,a);b=Math.min(g.x,b);c=Math.min(g.y,c);e=g}else for(e=this.m(0),g=this.m(1),b=Math.min(e.x,g.x),c=Math.min(e.y,g.y),a.n(e.x,e.y,0,0),a.dj(g),h=2;hc&&(c=-c)):O.wb(c.y,d.y)?(c=d.x-c.x,0>c&&(c=-c)):c=Math.sqrt(c.bk(d)),g.push(c),e+=c;for(d=h=c=0;ce/2)break;c+=d;h++}w.wa(g);b=this.m(h);g=this.m(h+1);b.x===g.x?b.y>g.y?a.n(b.x,b.y-(e/2-c)):a.n(b.x,b.y+(e/2-c)):b.y===g.y?b.x>g.x?a.n(b.x-(e/2-c),b.y):a.n(b.x+(e/2-c),b.y):(e=(e/2-c)/d,a.n(b.x+e*(g.x-b.x),b.y+e*(g.y-b.y)));return a};w.w(G,{EE:"midAngle"},function(){this.updateRoute();return this.computeMidAngle()}); +G.prototype.computeMidAngle=function(){var a=this.pa;if(2>a)return NaN;if(this.computeCurve()===th&&4<=a&&!this.jc){var b=(a-1)/3|0,c=3*(b/2|0);if(1===b%2){var c=Math.floor(c),a=this.m(c),b=this.m(c+1),d=this.m(c+2),c=this.m(c+3);return O.GG(a.x,a.y,b.x,b.y,d.x,d.y,c.x,c.y)}if(0e?a.Ui(b):b.Ui(d)}; w.defineProperty(G,{points:"points"},function(){return this.Rc},function(a){var b=this.Rc;if(b!==a){var c=null;if(Array.isArray(a)){var d=0===a.length%2;if(d)for(var e=0;ep&&(t-=180));0>t?t+=360:360<=t&&(t-=360);k&&(v+=Math.abs(p));0===t?r=v:90===t?s=v:180===t?r=-v:270===t?s=-v:(r=v*Math.cos(t*Math.PI/180),s=v*Math.sin(t*Math.PI/180));if(g.we()&&k){var y=c.vb(ac,w.O()),B=w.lc(y.x+1E3*r,y.y+1E3*s);this.getLinkPointFromPoint(b,c,y,B,!0,q);w.A(y);w.A(B)}}var v=this.getLinkPoint(d,e,h,!1,l,b,c),A=0,E=0,N=0;if(l||h!==Pb||k)y= this.computeEndSegmentLength(d,e,h,!1),N=this.getLinkDirection(d,e,v,h,!1,l,b,c),k&&(N+=l?0:30,0>p&&(N+=180)),0>N?N+=360:360<=N&&(N-=360),k&&(y+=Math.abs(p)),0===N?A=y:90===N?E=y:180===N?A=-y:270===N?E=-y:(A=y*Math.cos(N*Math.PI/180),E=y*Math.sin(N*Math.PI/180)),h.we()&&k&&(y=e.vb(ac,w.O()),B=w.lc(y.x+1E3*A,y.y+1E3*E),this.getLinkPointFromPoint(d,e,y,B,!1,v),w.A(y),w.A(B));e=q;if(l||g!==Pb||k)e=new I(q.x+r,q.y+s);c=v;if(l||h!==Pb||k)c=new I(v.x+A,v.y+E);!n&&!l&&g===Pb&&3k&&(m=-m),r=(0>h?-1:1)*m+q,s=l*(r-q)+t),q=a.x+2*g/3,t=a.y+2*h/3,v=q,A=t,O.F(h,0)?A=0h?-1:1)*m+q,A=l*(v-q)+t),this.Lo(),this.Wh(a),this.dl(r,s),this.dl(v,A),this.Wh(n),this.Ff(0, -this.getLinkPoint(b,c,Pb,!0,!1,d,e)),this.Ff(3,this.getLinkPoint(d,e,Pb,!1,!1,b,c))):(a=d,d=this.getLinkPoint(b,c,Pb,!0,!1,a,e),e=this.getLinkPoint(a,e,Pb,!1,!1,b,c),this.hasCurviness()?(h=e.x-d.x,b=e.y-d.y,c=this.computeCurviness(),a=d.x+h/2,n=d.y+b/2,g=a,k=n,O.F(b,0)?k=0c&&(g=-g),g=(0>b?-1:1)*g+a,k=h*(g-a)+n),this.Wh(d),this.dl(g,k)):this.Wh(d),this.Wh(e)));return!0}; +a-2,c)?this.Ff(a-1,v):!n&&!l&&h===Pb&&3k&&(m=-m),r=(0>h?-1:1)*m+q,s=l*(r-q)+t),q=a.x+2*g/3,t=a.y+2*h/3,v=q,A=t,O.F(h,0)?A=0h?-1:1)*m+q,A=l*(v-q)+t),this.Lo(),this.Xh(a),this.dl(r,s),this.dl(v,A),this.Xh(n),this.Ff(0, +this.getLinkPoint(b,c,Pb,!0,!1,d,e)),this.Ff(3,this.getLinkPoint(d,e,Pb,!1,!1,b,c))):(a=d,d=this.getLinkPoint(b,c,Pb,!0,!1,a,e),e=this.getLinkPoint(a,e,Pb,!1,!1,b,c),this.hasCurviness()?(h=e.x-d.x,b=e.y-d.y,c=this.computeCurviness(),a=d.x+h/2,n=d.y+b/2,g=a,k=n,O.F(b,0)?k=0c&&(g=-g),g=(0>b?-1:1)*g+a,k=h*(g-a)+n),this.Xh(d),this.dl(g,k)):this.Xh(d),this.Xh(e)));return!0}; function Jo(a,b){Math.abs(b.x-a.x)>Math.abs(b.y-a.y)?(b.x=b.x>=a.x?a.x+9E9:a.x-9E9,b.y=a.y):(b.y=b.y>=a.y?a.y+9E9:a.y-9E9,b.x=a.x);return b} G.prototype.getLinkPointFromPoint=function(a,b,c,d,e,g){void 0===g&&(g=new I);if(null===a||null===b)return g.assign(c),g;a.La()||(e=a.findVisibleNode(),null!==e&&e!==a&&(b=e.port));var h=e=0,k=0,l=0;a=null;e=b.S;null===e||e.fg()||(e=e.S);if(null===e)e=d.x,h=d.y,k=c.x,l=c.y;else{a=e.Of;e=1/(a.m11*a.m22-a.m12*a.m21);var k=a.m22*e,l=-a.m12*e,m=-a.m21*e,n=a.m11*e,p=e*(a.m21*a.dy-a.m22*a.dx),q=e*(a.m12*a.dx-a.m11*a.dy);e=d.x*k+d.y*m+p;h=d.x*l+d.y*n+q;k=c.x*k+c.y*m+p;l=c.x*l+c.y*n+q}b.Wo(e,h,k,l,g);null!== a&&g.transform(a);return g};function Ko(a,b){var c=b.Br;null===c&&(c=new Lo,c.port=b,c.Kc=b.W,b.Br=c);return Mo(c,a)} -G.prototype.getLinkPoint=function(a,b,c,d,e,g,h,k){void 0===k&&(k=new I);if(c.qd())return b.vb(c,k),k;if(c.ap()&&(c=Ko(this,b),null!==c)){k.assign(c.fp);if(e&&this.Ww===to){var l=Ko(this,h);if(c.Qm=m.x&&a.x<=m.x+m.width?k.x=a.x:a.y>=m.y&&a.y<=m.y+m.height&&(k.y=a.y);w.A(c);w.A(l)}}return k}g=b.vb(ac,w.O());l=c=null;this.pa>(e?6:2)?(l=d?this.m(1):this.m(this.pa-2),e&&(l=Jo(g,l.copy()))): +G.prototype.getLinkPoint=function(a,b,c,d,e,g,h,k){void 0===k&&(k=new I);if(c.rd())return b.vb(c,k),k;if(c.ap()&&(c=Ko(this,b),null!==c)){k.assign(c.fp);if(e&&this.Xw===to){var l=Ko(this,h);if(c.Qm=m.x&&a.x<=m.x+m.width?k.x=a.x:a.y>=m.y&&a.y<=m.y+m.height&&(k.y=a.y);w.A(c);w.A(l)}}return k}g=b.vb(ac,w.O());l=c=null;this.pa>(e?6:2)?(l=d?this.m(1):this.m(this.pa-2),e&&(l=Jo(g,l.copy()))): (c=w.O(),l=h.vb(ac,c),e&&(l=Jo(g,l)));this.getLinkPointFromPoint(a,b,g,l,d,k);w.A(g);null!==c&&w.A(c);return k}; -G.prototype.getLinkDirection=function(a,b,c,d,e,g,h,k){a:if(d.qd())c=d.x>d.y?d.x>1-d.y?0:d.x<1-d.y?270:315:d.x1-d.y?90:d.x<1-d.y?180:135:.5>d.x?225:.5(g?6:2)?(n=e?this.m(1):this.m(this.pa-2),n=g?Jo(l,n.copy()):c):(m=w.O(),n=k.vb(ac,m));c=0;c=Math.abs(n.x-l.x)>Math.abs(n.y-l.y)?n.x>= -l.x?0:180:n.y>=l.y?90:270;w.A(l);null!==m&&w.A(m)}d.we()&&h.bi(a)&&(c+=180,360<=c&&(c-=360));a=fo;a=e?this.Xs:this.Qt;a===fo&&(a=e?b.Xs:b.Qt);switch(a){case ho:b=b.tl();c+=b;360<=c&&(c-=360);break;case fo:case pl:b=b.tl();if(0===b)break;45<=b&&135>b?c+=90:135<=b&&225>b?c+=180:225<=b&&315>b&&(c+=270);360<=c&&(c-=360)}return c}; -G.prototype.computeEndSegmentLength=function(a,b,c,d){if(null!==b&&c.ap()&&(a=Ko(this,b),null!==a))return a.lw;a=NaN;a=d?this.sl:this.Nl;null!==b&&isNaN(a)&&(a=d?b.sl:b.Nl);isNaN(a)&&(a=10);return a};G.prototype.computeSpot=function(a){return a?Ho(this,this.md):Io(this,this.Wd)};function Ho(a,b){if(null===b)return ac;var c=a.Cb;c.Uc()&&(void 0===b&&(b=a.md),null!==b&&(c=b.Cb));return c===Pc?Pb:c} -function Io(a,b){if(null===b)return ac;var c=a.Eb;c.Uc()&&(void 0===b&&(b=a.Wd),null!==b&&(c=b.Eb));return c===Pc?Pb:c}G.prototype.computeOtherPoint=function(a,b){var c=b.vb(ac),d;d=b.Br;d=null!==d?Mo(d,this):null;null!==d&&(c=d.fp);return c};G.prototype.computeShortLength=function(a){return a?No(this):Oo(this)};function No(a){var b=a.Ys;isNaN(b)&&(a=a.md,null!==a&&(b=a.Ys));return isNaN(b)?0:b}function Oo(a){var b=a.St;isNaN(b)&&(a=a.Wd,null!==a&&(b=a.St));return isNaN(b)?0:b} +G.prototype.getLinkDirection=function(a,b,c,d,e,g,h,k){a:if(d.rd())c=d.x>d.y?d.x>1-d.y?0:d.x<1-d.y?270:315:d.x1-d.y?90:d.x<1-d.y?180:135:.5>d.x?225:.5(g?6:2)?(n=e?this.m(1):this.m(this.pa-2),n=g?Jo(l,n.copy()):c):(m=w.O(),n=k.vb(ac,m));c=0;c=Math.abs(n.x-l.x)>Math.abs(n.y-l.y)?n.x>= +l.x?0:180:n.y>=l.y?90:270;w.A(l);null!==m&&w.A(m)}d.we()&&h.ci(a)&&(c+=180,360<=c&&(c-=360));a=fo;a=e?this.Xs:this.Qt;a===fo&&(a=e?b.Xs:b.Qt);switch(a){case ho:b=b.tl();c+=b;360<=c&&(c-=360);break;case fo:case pl:b=b.tl();if(0===b)break;45<=b&&135>b?c+=90:135<=b&&225>b?c+=180:225<=b&&315>b&&(c+=270);360<=c&&(c-=360)}return c}; +G.prototype.computeEndSegmentLength=function(a,b,c,d){if(null!==b&&c.ap()&&(a=Ko(this,b),null!==a))return a.mw;a=NaN;a=d?this.sl:this.Nl;null!==b&&isNaN(a)&&(a=d?b.sl:b.Nl);isNaN(a)&&(a=10);return a};G.prototype.computeSpot=function(a){return a?Ho(this,this.nd):Io(this,this.Wd)};function Ho(a,b){if(null===b)return ac;var c=a.Cb;c.Uc()&&(void 0===b&&(b=a.nd),null!==b&&(c=b.Cb));return c===Pc?Pb:c} +function Io(a,b){if(null===b)return ac;var c=a.Eb;c.Uc()&&(void 0===b&&(b=a.Wd),null!==b&&(c=b.Eb));return c===Pc?Pb:c}G.prototype.computeOtherPoint=function(a,b){var c=b.vb(ac),d;d=b.Br;d=null!==d?Mo(d,this):null;null!==d&&(c=d.fp);return c};G.prototype.computeShortLength=function(a){return a?No(this):Oo(this)};function No(a){var b=a.Ys;isNaN(b)&&(a=a.nd,null!==a&&(b=a.Ys));return isNaN(b)?0:b}function Oo(a){var b=a.St;isNaN(b)&&(a=a.Wd,null!==a&&(b=a.St));return isNaN(b)?0:b} G.prototype.dk=function(a,b,c,d,e,g){if(!1===this.ag)return!1;void 0===b&&(b=null);void 0===c&&(c=null);var h=g;void 0===g&&(h=w.xh(),h.reset());h.multiply(this.transform);if(this.Nm(a,h))return Zm(this,b,c,e),void 0===g&&w.gf(h),!0;if(this.Fg(a,h)){var k=!1;if(!this.Wg)for(var l=this.ua.p,m=l.length;m--;){var n=l[m];if(n.visible||n===this.ac){var p=n.ca,q=this.Fa;if(!(p.x>q.width||p.y>q.height||0>p.x+p.width||0>p.y+p.height)){p=w.xh();p.set(h);if(n instanceof H)k=n.dk(a,b,c,d,e,p);else if(this.path=== -n){var k=n,r=a,s=d,q=p;if(!1===k.ag)k=!1;else if(q.multiply(k.transform),s)b:{var t=r,v=q;if(k.Nm(t,v))k=!0;else{if(void 0===v&&(v=k.transform,t.ak(k.ca))){k=!0;break b}var q=t.left,r=t.right,s=t.top,t=t.bottom,y=w.O(),B=w.O(),A=w.O(),E=w.xh();E.set(v);E.dA(k.transform);E.Nz();B.x=r;B.y=s;B.transform(E);y.x=q;y.y=s;y.transform(E);v=!1;jn(k,y,B,A)?v=!0:(y.x=r,y.y=t,y.transform(E),jn(k,y,B,A)?v=!0:(B.x=q,B.y=t,B.transform(E),jn(k,y,B,A)?v=!0:(y.x=q,y.y=s,y.transform(E),jn(k,y,B,A)&&(v=!0))));w.gf(E); -w.A(y);w.A(B);w.A(A);k=v}}else k=k.Nm(r,q)}else k=ul(n,a,d,p);k&&(null!==b&&(n=b(n)),n&&(null===c||c(n))&&e.add(n));w.gf(p)}}}void 0===g&&w.gf(h);return k||null!==this.background||null!==this.gl}void 0===g&&w.gf(h);return!1};w.w(G,{jc:"isOrthogonal"},function(){return 2===(this.rm.value&2)});w.w(G,{Yi:"isAvoiding"},function(){return 4===(this.rm.value&4)});G.prototype.computeCurve=function(){if(null===this.qi){var a=this.md,b=this.jc;this.qi=null!==a&&a===this.Wd&&!b}return this.qi?th:this.df}; -G.prototype.computeCorner=function(){if(this.df===th)return 0;var a=this.vz;if(isNaN(a)||0>a)a=10;return a};G.prototype.computeCurviness=function(){var a=this.hw;if(isNaN(a)){var b=this.qf;if(0!==b){var a=10,c=this.h;null!==c&&(a=c.Kw);c=Math.abs(b);a=a/2+((c-1)/2|0)*a;0===c%2&&(a=-a);0>b&&(a=-a)}else a=10}return a};G.prototype.computeThickness=function(){var a=this.path;return null!==a?Math.max(a.pb,1):1};G.prototype.hasCurviness=function(){return!isNaN(this.hw)||0!==this.qf&&!this.jc}; +n){var k=n,r=a,s=d,q=p;if(!1===k.ag)k=!1;else if(q.multiply(k.transform),s)b:{var t=r,v=q;if(k.Nm(t,v))k=!0;else{if(void 0===v&&(v=k.transform,t.ak(k.ca))){k=!0;break b}var q=t.left,r=t.right,s=t.top,t=t.bottom,y=w.O(),B=w.O(),A=w.O(),E=w.xh();E.set(v);E.eA(k.transform);E.Oz();B.x=r;B.y=s;B.transform(E);y.x=q;y.y=s;y.transform(E);v=!1;jn(k,y,B,A)?v=!0:(y.x=r,y.y=t,y.transform(E),jn(k,y,B,A)?v=!0:(B.x=q,B.y=t,B.transform(E),jn(k,y,B,A)?v=!0:(y.x=q,y.y=s,y.transform(E),jn(k,y,B,A)&&(v=!0))));w.gf(E); +w.A(y);w.A(B);w.A(A);k=v}}else k=k.Nm(r,q)}else k=ul(n,a,d,p);k&&(null!==b&&(n=b(n)),n&&(null===c||c(n))&&e.add(n));w.gf(p)}}}void 0===g&&w.gf(h);return k||null!==this.background||null!==this.gl}void 0===g&&w.gf(h);return!1};w.w(G,{jc:"isOrthogonal"},function(){return 2===(this.rm.value&2)});w.w(G,{Yi:"isAvoiding"},function(){return 4===(this.rm.value&4)});G.prototype.computeCurve=function(){if(null===this.qi){var a=this.nd,b=this.jc;this.qi=null!==a&&a===this.Wd&&!b}return this.qi?th:this.df}; +G.prototype.computeCorner=function(){if(this.df===th)return 0;var a=this.wz;if(isNaN(a)||0>a)a=10;return a};G.prototype.computeCurviness=function(){var a=this.iw;if(isNaN(a)){var b=this.qf;if(0!==b){var a=10,c=this.h;null!==c&&(a=c.Lw);c=Math.abs(b);a=a/2+((c-1)/2|0)*a;0===c%2&&(a=-a);0>b&&(a=-a)}else a=10}return a};G.prototype.computeThickness=function(){var a=this.path;return null!==a?Math.max(a.pb,1):1};G.prototype.hasCurviness=function(){return!isNaN(this.iw)||0!==this.qf&&!this.jc}; G.prototype.adjustPoints=function(a,b,c,d){var e=this.xs;if(this.jc){if(e===$l)return!1;e===am&&(e=Zl)}switch(e){case $l:var g=this.m(a),h=this.m(c);if(!g.N(b)||!h.N(d)){var e=g.x,g=g.y,k=h.x-e,l=h.y-g,m=Math.sqrt(k*k+l*l);if(!O.F(m,0)){var n=0;O.F(k,0)?n=0>l?-Math.PI/2:Math.PI/2:(n=Math.atan(l/Math.abs(k)),0>k&&(n=Math.PI-n));var h=b.x,p=b.y,l=d.x-h,q=d.y-p,r=Math.sqrt(l*l+q*q),k=0;O.F(l,0)?k=0>q?-Math.PI/2:Math.PI/2:(k=Math.atan(q/Math.abs(l)),0>l&&(k=Math.PI-k));m=r/m;n=k-n;this.Ff(a,b);for(a+= 1;al?-Math.PI/2:Math.PI/2:(q=Math.atan(l/Math.abs(k)),0>k&&(q=Math.PI-q)),k=q+n,b*=m,this.ba(a,h+b*Math.cos(k),p+b*Math.sin(k)));this.Ff(c,d)}}return!0;case am:g=this.m(a);p=this.m(c);if(!g.N(b)||!p.N(d)){var e=g.x,g=g.y,h=p.x,p=p.y,m=(h-e)*(h-e)+(p-g)*(p-g),k=b.x,n=b.y,l=d.x,q=d.y,r=0,s=1,r=0!==l-k?(q-n)/(l-k):9E9;0!==r&&(s=Math.sqrt(1+1/(r*r)));this.Ff(a,b);for(a+=1;ah.left&&l.x=h.top&&c.y<=a.y||a.y<=k.bottom&&a.y>=c.y){if(0===d||180===d)l=new I(a.x,Math.max((a.y+c.y)/2,a.y)),m=new I(c.x,l.y)}else l.x=180===d||(90===d||270===d)&&c.xa.x&&k.top=a.x?(l.y=a.y>k.bottom?this.computeMidOrthoPosition(a.y,k.bottom,!0):a.y>k.top&&(180===d&&a.xk.right)?this.computeMidOrthoPosition(a.y,c.y,!0):k.top,m.x=c.x,m.y=l.y):270===d&&a.y>k.bottom&&a.x>k.left&&a.xh.right)90===d&&(k.Ha(a)||h.Ha(c))?l.x=this.computeMidOrthoPosition(a.x, c.x,!1):c.xa.x&&(90===d||180===d)&&(l.x=this.computeMidOrthoPosition(h.right,Math.min(c.x,k.left),!1)),m.x=l.x,m.y=c.y;if(l.x>h.left&&l.x=a.y||a.y>=k.top&&a.y<=c.y){if(0===d||180===d)l=new I(a.x,Math.min((a.y+c.y)/2,a.y)),m=new I(c.x,l.y)}else l.x=180===d||(90===d||270===d)&&c.xk&&0!==Qo(e,c.x,c.y)){Ro(this,e,c.x,c.y,d,!0);d=this.m(2);if(4>this.pa)0===b||180===b?(d.x=a.x,d.y=c.y):(d.x=c.x,d.y=a.y),this.ba(2,d.x,d.y),this.B(3,d.x,d.y);else if(c=this.m(3),0===b|| -180===b)O.F(d.x,c.x)?(b=0===b?Math.max(d.x,a.x):Math.min(d.x,a.x),this.ba(2,b,a.y),this.ba(3,b,c.y)):O.F(d.y,c.y)?(Math.abs(a.y-d.y)<=e.Io/2&&(this.ba(2,d.x,a.y),this.ba(3,c.x,a.y)),this.B(2,d.x,a.y)):this.ba(2,a.x,d.y);else if(90===b||270===b)O.F(d.y,c.y)?(b=90===b?Math.max(d.y,a.y):Math.min(d.y,a.y),this.ba(2,a.x,b),this.ba(3,c.x,b)):O.F(d.x,c.x)?(Math.abs(a.x-d.x)<=e.Ko/2&&(this.ba(2,a.x,d.y),this.ba(3,a.x,c.y)),this.B(2,a.x,d.y)):this.ba(2,d.x,a.y);a=!0}else a=!1}else a=!1;a||(this.Wh(l),this.Wh(m))}}; +k.right)),m.x=l.x,m.y=c.y}var n=l,p=m;if(this.Yi){var q=this.h,r;(r=null===q)||(q.Sb.jh?r=!1:(r=q.Ya,r=r instanceof Ef?!r.Ev||r.QH:!0),r=!r);if(r||h.Ha(c)&&!g.ci(e)||k.Ha(a)&&!e.ci(g)||e===g||this.layer.Hc)a=!1;else if(e=ja(q,!0,this.Va,null),e.dp(Math.min(a.x,n.x),Math.min(a.y,n.y),Math.abs(a.x-n.x),Math.abs(a.y-n.y))&&e.dp(Math.min(n.x,p.x),Math.min(n.y,p.y),Math.abs(n.x-p.x),Math.abs(n.y-p.y))&&e.dp(Math.min(p.x,c.x),Math.min(p.y,c.y),Math.abs(p.x-c.x),Math.abs(p.y-c.y)))a=!1;else if(h=h.copy().gi(k), +h.Tf(2*e.Ko,2*e.Io),Po(e,a,b,c,d,h),k=Qo(e,c.x,c.y),e.abort||999999!==k||(Uk(e),k=e.xF,h.Tf(e.Ko*k,e.Io*k),Po(e,a,b,c,d,h),k=Qo(e,c.x,c.y)),e.abort||999999!==k||(Uk(e),k=e.zE,h.Tf(e.Ko*k,e.Io*k),Po(e,a,b,c,d,h),k=Qo(e,c.x,c.y)),!e.abort&&999999===k&&e.OF&&(Uk(e),Po(e,a,b,c,d,e.ub),k=Qo(e,c.x,c.y)),!e.abort&&999999>k&&0!==Qo(e,c.x,c.y)){Ro(this,e,c.x,c.y,d,!0);d=this.m(2);if(4>this.pa)0===b||180===b?(d.x=a.x,d.y=c.y):(d.x=c.x,d.y=a.y),this.ba(2,d.x,d.y),this.B(3,d.x,d.y);else if(c=this.m(3),0===b|| +180===b)O.F(d.x,c.x)?(b=0===b?Math.max(d.x,a.x):Math.min(d.x,a.x),this.ba(2,b,a.y),this.ba(3,b,c.y)):O.F(d.y,c.y)?(Math.abs(a.y-d.y)<=e.Io/2&&(this.ba(2,d.x,a.y),this.ba(3,c.x,a.y)),this.B(2,d.x,a.y)):this.ba(2,a.x,d.y);else if(90===b||270===b)O.F(d.y,c.y)?(b=90===b?Math.max(d.y,a.y):Math.min(d.y,a.y),this.ba(2,a.x,b),this.ba(3,c.x,b)):O.F(d.x,c.x)?(Math.abs(a.x-d.x)<=e.Ko/2&&(this.ba(2,a.x,d.y),this.ba(3,a.x,c.y)),this.B(2,a.x,d.y)):this.ba(2,d.x,a.y);a=!0}else a=!1}else a=!1;a||(this.Xh(l),this.Xh(m))}}; G.prototype.computeMidOrthoPosition=function(a,b){if(this.hasCurviness()){var c=this.computeCurviness();return(a+b)/2+c}return(a+b)/2};function qg(a){if(!a.Yi)return!1;var b=a.points.p,c=b.length;if(4>c)return!1;a=ja(a.h,!0,a.Va,null);for(var d=1;da){var b=new sd(td),c=new ud(0,0);b.Bb.add(c);return b}var d=!1,b=this.h;null!==b&&0!==b.na.Ue&&Eo(this)&&(d=!0);var c=b=0,e=this.m(0).copy(),g=e.copy(),b=this.Rc.p,h=this.computeCurve();if(h===th&&3<=a&&!O.wb(this.Cp,0))if(3===a)var k=this.m(1),b=Math.min(e.x,k.x),c=Math.min(e.y,k.y),k=this.m(2),b=Math.min(b,k.x),c=Math.min(c,k.y);else{if(this.jc)for(k=0;k=a&& -(k=a-1),b=this.m(k),g.x=Math.min(b.x,g.x),g.y=Math.min(b.y,g.y);b=g.x;c=g.y}else{for(k=0;ky?r>q?(t.x=B-E,t.y=q-E,v.x=B+s,v.y=q+s):(t.x= B-E,t.y=q+E,v.x=B+s,v.y=q-s):r>q?(t.x=B+E,t.y=q-E,v.x=B-s,v.y=q+s):(t.x=B+E,t.y=q+E,v.x=B-s,v.y=q-s));O.wb(y,B)&&O.wb(q,r)&&(q>p?(A>B?(t.x=B-E,t.y=q-E,v.x=B+s):(t.x=B+E,t.y=q-E,v.x=B-s),v.y=q+s):(A>B?(t.x=B-E,t.y=q+E,v.x=B+s):(t.x=B+E,t.y=q+E,v.x=B-s),v.y=q-s));if(O.wb(y,B)&&O.wb(B,A)||O.wb(p,q)&&O.wb(q,r))y=.5*(y+A),p=.5*(p+r),t.x=y,t.y=p,v.x=y,v.y=p;1===k?(e.x=.5*(d.x+m.x),e.y=.5*(d.y+m.y)):2===k&&O.wb(d.x,this.m(0).x)&&O.wb(d.y,this.m(0).y)&&(e.x=.5*(d.x+m.x),e.y=.5*(d.y+m.y));S(l,e.x-b,e.y-c, h.x-b,h.y-c,m.x-b,m.y-c);g.set(h);e.set(a);d=m}}k=d.x;d=d.y;g=this.m(this.pa-1);k=.5*(k+g.x);d=.5*(d+g.y);S(l,a.x-b,a.y-c,k-b,d-c,g.x-b,g.y-c)}else for(k=3;k=a&&(k=a-1),g=this.m(k-1),e=this.m(k),k===a-1&&0!==Oo(this)&&(e=e.copy(),So(this,e,!1,O.ok)),S(l,d.x-b,d.y-c,g.x-b,g.y-c,e.x-b,e.y-c);else{g=w.O();g.assign(this.m(0));for(k=1;k=a-1){g!==t&&(0!==Oo(this)&&(t=t.copy(),So(this,t,!1,O.ok)),Vo(this,l,-b,-c,g,t,d));break}k=To(this,t, @@ -1589,121 +1590,121 @@ m;)if(q=h[m],q>p-10)m--,p=Math.max(q-5,g.x);else break;q=g.y-10+d;n=p+c;p=g.y+d; m;)if(q=h[m],q>p-10)m--,p=Math.max(q-5,g.y);else break;q=g.x-10+c;n=g.x+c;p+=d;a.df===lh?R(b,n,p,!1,!1):S(b,q,l,q,p,n,p)}}b.lineTo(g.x+c,g.y+d)} function Wo(a,b,c,d){var e=a.h;if(null===e||b.N(c))return 0;for(e=e.an;e.next();){var g=e.value;if(null!==g&&g.visible)for(var g=g.kb.p,h=g.length,k=0;kh.x&&n.x>m.x||m.xh.y&&n.y>m.y||m.yt&&Math.min(h,y)q&&!O.F(h,y)){n.x=t;n.y=q;n=!0;break a}}else if(!O.F(q,s)&&O.F(h,y)&&Math.min(q, -s)h&&Math.min(t,v)p&&!O.F(t,v)){n.x=p;n.y=h;n=!0;break a}n.x=0;n.y=0;n=!1}n&&(e?c.push(k.x):c.push(k.y));h=m}w.A(k)}w.w(G,{Us:"firstPickIndex"},function(){return 2>=this.pa?0:this.jc||Ho(this)!==Pb?1:0});w.w(G,{Iw:"lastPickIndex"},function(){var a=this.pa;return 0===a?0:2>=a?a-1:this.jc||Io(this)!==Pb?a-2:a-1});function Eo(a){a=a.df;return a===kh||a===lh}function Go(a,b){if(b||Eo(a)){var c=a.h;null===c||c.Xl.contains(a)||null===a.Oy||c.Xl.add(a,a.Oy)}} +s)h&&Math.min(t,v)p&&!O.F(t,v)){n.x=p;n.y=h;n=!0;break a}n.x=0;n.y=0;n=!1}n&&(e?c.push(k.x):c.push(k.y));h=m}w.A(k)}w.w(G,{Us:"firstPickIndex"},function(){return 2>=this.pa?0:this.jc||Ho(this)!==Pb?1:0});w.w(G,{Jw:"lastPickIndex"},function(){var a=this.pa;return 0===a?0:2>=a?a-1:this.jc||Io(this)!==Pb?a-2:a-1});function Eo(a){a=a.df;return a===kh||a===lh}function Go(a,b){if(b||Eo(a)){var c=a.h;null===c||c.Xl.contains(a)||null===a.Py||c.Xl.add(a,a.Py)}} function nh(a,b){var c=a.layer;if(null!==c&&c.visible&&!c.Hc){var d=c.h;if(null!==d)for(var e=!1,d=d.an;d.next();){var g=d.value;if(g.visible)if(g===c)for(var e=!0,h=!1,g=g.kb.p,k=g.length,l=0;lb.links.count)1===b.links.count&&(c=b.links.p[0],c.wn=null,c.qf=0,c.dc()),c=b.op,null!==b&&null!==c.Ah&&c.Ah.remove(b),c=b.tt,null!==b&&null!==c.Ah&&c.Ah.remove(b);else for(c=Math.abs(c),a=0===c%2,b=b.links.j;b.next();){var d=b.value,e=Math.abs(d.qf),g=0===e%2;e>c&&a===g&&(d.qf=0=a.width||0>=a.height)){var b=a.y,c=a.x+a.width,d=a.y+a.height;this.Kf=Math.floor((a.x-this.Dd)/this.Dd)*this.Dd;this.Lf=Math.floor((b-this.ud)/this.ud)*this.ud;this.$q=Math.ceil((c+2*this.Dd)/this.Dd)*this.Dd;this.ar=Math.ceil((d+2*this.ud)/this.ud)*this.ud;a=1+(Math.ceil((this.$q-this.Kf)/this.Dd)|0);b=1+(Math.ceil((this.ar-this.Lf)/this.ud)|0);if(null===this.nc||this.Dmthis.$q||a+cthis.ar||b+da&&(c+=a,a=0);0>b&&(e+=b,b=0);if(0>c||0>e)return!0;d=Math.min(a+c-1,this.Dm)|0;for(c=Math.min(b+e-1,this.Em)|0;a<=d;a++)for(e=b;e<=c;e++)if(0===this.nc[a][e])return!1;return!0}; +w.defineProperty(G,{xs:"adjusting"},function(){return this.Op},function(a){var b=this.Op;b!==a&&(u&&w.Ca(a,G,G,"adjusting"),this.Op=a,this.i("adjusting",b,a))});w.defineProperty(G,{wz:"corner"},function(){return this.aq},function(a){var b=this.aq;b!==a&&(u&&w.g(a,"number",G,"corner"),this.aq=a,this.ue(),this.i("corner",b,a))}); +w.defineProperty(G,{df:"curve"},function(){return this.dq},function(a){var b=this.dq;b!==a&&(u&&w.Ca(a,G,G,"curve"),this.dq=a,this.dc(),Go(this,b===lh||b===kh||a===lh||a===kh),this.i("curve",b,a))});w.defineProperty(G,{iw:"curviness"},function(){return this.eq},function(a){var b=this.eq;b!==a&&(u&&w.g(a,"number",G,"curviness"),this.eq=a,this.dc(),this.i("curviness",b,a))}); +w.defineProperty(G,{Xw:"routing"},function(){return this.rm},function(a){var b=this.rm;b!==a&&(u&&w.Ca(a,G,G,"routing"),this.rm=a,this.qi=null,this.dc(),Go(this,2===(b.value&2)||2===(a.value&2)),this.i("routing",b,a))});w.defineProperty(G,{Cp:"smoothness"},function(){return this.cs},function(a){var b=this.cs;b!==a&&(u&&w.g(a,"number",G,"smoothness"),this.cs=a,this.ue(),this.i("smoothness",b,a))}); +function Co(a){var b=a.jg;if(null!==b){var c=a.ug;if(null!==c){var d=a.Jh,e=a.Wh;a:{if(null!==c&&null!==b.Bh)for(a=b.Bh.j;a.next();){var g=a.value;if(g.op===b&&g.tt===c&&g.Sw===d&&g.Tw===e||g.op===c&&g.tt===b&&g.Sw===e&&g.Tw===d){a=g;break a}}a=null}for(var h=null,k=null,l=b.oc.p,m=l.length,g=0;gb.links.count)1===b.links.count&&(c=b.links.p[0],c.wn=null,c.qf=0,c.dc()),c=b.op,null!==b&&null!==c.Bh&&c.Bh.remove(b),c=b.tt,null!==b&&null!==c.Bh&&c.Bh.remove(b);else for(c=Math.abs(c),a=0===c%2,b=b.links.j;b.next();){var d=b.value,e=Math.abs(d.qf),g=0===e%2;e>c&&a===g&&(d.qf=0=a.width||0>=a.height)){var b=a.y,c=a.x+a.width,d=a.y+a.height;this.Kf=Math.floor((a.x-this.Dd)/this.Dd)*this.Dd;this.Lf=Math.floor((b-this.vd)/this.vd)*this.vd;this.$q=Math.ceil((c+2*this.Dd)/this.Dd)*this.Dd;this.ar=Math.ceil((d+2*this.vd)/this.vd)*this.vd;a=1+(Math.ceil((this.$q-this.Kf)/this.Dd)|0);b=1+(Math.ceil((this.ar-this.Lf)/this.vd)|0);if(null===this.nc||this.Dmthis.$q||a+cthis.ar||b+da&&(c+=a,a=0);0>b&&(e+=b,b=0);if(0>c||0>e)return!0;d=Math.min(a+c-1,this.Dm)|0;for(c=Math.min(b+e-1,this.Em)|0;a<=d;a++)for(e=b;e<=c;e++)if(0===this.nc[a][e])return!1;return!0}; function $o(a,b,c,d,e,g,h,k,l){if(!(bh||cl)){var m,n;m=b|0;n=c|0;var p=a.nc[m][n];if(1<=p&&999999>p)for(e?n+=d:m+=d,p+=1;g<=m&&m<=h&&k<=n&&n<=l&&!(p>=a.nc[m][n]);)a.nc[m][n]=p,p+=1,e?n+=d:m+=d;m=e?n:m;if(e)if(0m;c+=d)$o(a,b,c,1,!e,g,h,k,l),$o(a,b,c,-1,!e,g,h,k,l);else if(0m;b+=d)$o(a,b,c,1,!e,g,h,k,l),$o(a,b,c,-1,!e,g,h, k,l)}}function ap(a,b,c,d,e,g,h,k,l,m,n){for(var p=b|0,q=c|0,r=a.nc[p][q];0===r&&p>k&&pm&&q=Math.abs(p-d)&&1>=Math.abs(q-e))return a.abort=!0,0;p=b|0;q=c|0;r=a.nc[p][q];b=1;for(a.nc[p][q]=b;0===r&&p>k&&pm&&q=Math.abs(h-l)&&1>=Math.abs(k-m))a.abort=!0;else{var n=g.x;b=g.y;d=g.x+g.width;var p=g.y+g.height,n=n-a.Kf,n=n/a.Dd;b-=a.Lf;b/=a.ud;d-=a.Kf;d/=a.Dd;p-=a.Lf;p/=a.ud;g=Math.max(0,Math.min(a.Dm,n|0));d=Math.min(a.Dm,Math.max(0,d|0));b=Math.max(0,Math.min(a.Em,b|0));var p=Math.min(a.Em,Math.max(0,p|0)),h=h|0,k=k|0,l=l|0, +function Po(a,b,c,d,e,g){if(null!==a.nc){a.abort=!1;var h=b.x,k=b.y;if(Zo(a,h,k)){var h=h-a.Kf,h=h/a.Dd,k=k-a.Lf,k=k/a.vd,l=d.x,m=d.y;if(Zo(a,l,m))if(l-=a.Kf,l/=a.Dd,m-=a.Lf,m/=a.vd,1>=Math.abs(h-l)&&1>=Math.abs(k-m))a.abort=!0;else{var n=g.x;b=g.y;d=g.x+g.width;var p=g.y+g.height,n=n-a.Kf,n=n/a.Dd;b-=a.Lf;b/=a.vd;d-=a.Kf;d/=a.Dd;p-=a.Lf;p/=a.vd;g=Math.max(0,Math.min(a.Dm,n|0));d=Math.min(a.Dm,Math.max(0,d|0));b=Math.max(0,Math.min(a.Em,b|0));var p=Math.min(a.Em,Math.max(0,p|0)),h=h|0,k=k|0,l=l|0, m=m|0,n=h,q=k,r=0===c||90===c?1:-1;(c=90===c||270===c)?q=ap(a,h,k,l,m,r,c,g,d,b,p):n=ap(a,h,k,l,m,r,c,g,d,b,p);if(!a.abort){a:{c=0===e||90===e?1:-1;e=90===e||270===e;for(var r=l|0,s=m|0,t=a.nc[r][s];0===t&&r>g&&rb&&s=Math.abs(r-h)&&1>=Math.abs(s-k)){a.abort=!0;break a}r=l|0;s=m|0;t=a.nc[r][s];for(a.nc[r][s]=999999;0===t&&r>g&&rb&&s=c?180:0}a=180*Math.atan2(a.height,a.width)/Math.PI;switch(b){case w.Nc|w.dd:return c>a&&c<=180+a?180:270;case w.dd|w.Wc:return c>180-a&&c<=360-a?270:0;case w.Wc|w.Vc:return c>a&&c<=180+a?90:0;case w.Vc|w.Nc:return c>180-a&&c<=360-a?180:90;case w.Nc|w.dd|w.Wc:return 90180+a&&c<=360- a?270:0;case w.dd|w.Wc|w.Vc:return 180a&&180>=c?90:0;case w.Wc|w.Vc|w.Nc:return c>a&&c<=180-a?90:c>180-a&&270>=c?180:0;case w.Vc|w.Nc|w.dd:return c>180-a&&c<=180+a?180:c>180+a?270:90}d&&b!==(w.Nc|w.dd|w.Wc|w.Vc)&&(c-=15,0>c&&(c+=360));return c>a&&c<180-a?90:c>=180-a&&c<=180+a?180:c>180+a&&c<360-a?270:0} -function Mo(a,b){var c=a.Gg;if(0===c.length){a:if(!a.np){c=a.np;a.np=!0;var d,e=null,g=a.Kc,g=g instanceof F?g:null;if(null===g||g.me)d=a.Kc.XD(a.port.sd);else{if(!g.ca.J()){a.np=c;break a}e=g;d=e.WD()}var h=a.Gg.length=0,k=a.port.vb(Xb,w.O()),l=a.port.vb(jc,w.O()),g=w.nk(k.x,k.y,0,0);g.dj(l);w.A(k);w.A(l);k=w.lc(g.x+g.width/2,g.y+g.height/2);for(d=d.j;d.next();)if(l=d.value,l.La()){var m=Pb,n=l.md===a.port||l.aa.bi(e),m=n?Ho(l,a.port):Io(l,a.port);if(m.ap()&&(n=n?l.Wd:l.md,null!==n)){var p=n.W;if(null!== -p){var n=l.computeOtherPoint(p,n),p=k.Ui(n),m=bp(g,m,p,l.jc),q=0;0===m?(q=w.Wc,180Math.abs(J)?(A=Math.abs(J)/ q,q=Math.abs(J)):A=1;break;case w.Nc:r>Math.abs(N)?(A=Math.abs(N)/r,r=Math.abs(N)):A=1;break;case w.dd:n>Math.abs(J)?(A=Math.abs(J)/n,n=Math.abs(J)):A=1;break;default:case w.Wc:p>Math.abs(N)?(A=Math.abs(N)/p,p=Math.abs(N)):A=1}B=0}var W=t.fp;if(e===io){v=t.link.computeThickness();v*=A;W.set(E);switch(y){case w.Vc:W.x=E.x+J/2+q/2-B-v/2;break;case w.Nc:W.y=E.y+N/2+r/2-B-v/2;break;case w.dd:W.x=E.x+J/2-n/2+B+v/2;break;default:case w.Wc:W.y=E.y+N/2-p/2+B+v/2}B+=v}else v=.5,e===eo&&(v=(t.Xo+1)/(t.Qm+1)), -W.x=E.x+J*v,W.y=E.y+N*v}w.A(k);w.A(d);w.A(l);w.A(m);E=a.Gg;for(J=0;Jb.oe?1:a.angleb.angle?1:0}; -Lo.prototype.computeEndSegmentLength=function(a){var b=a.link,c=b.computeEndSegmentLength(this.Kc,this.port,Pb,b.md===this.port),d=a.Xo;if(0>d)return c;var e=a.Qm;if(1>=e||!b.jc)return c;var b=a.Qw,g=a.fp;if(a.oe===w.Nc||a.oe===w.Vc)d=e-1-d;return((a=a.oe===w.Nc||a.oe===w.Wc)?b.yb.oe?1:a.angleb.angle?1:0}; +Lo.prototype.computeEndSegmentLength=function(a){var b=a.link,c=b.computeEndSegmentLength(this.Kc,this.port,Pb,b.nd===this.port),d=a.Xo;if(0>d)return c;var e=a.Qm;if(1>=e||!b.jc)return c;var b=a.Rw,g=a.fp;if(a.oe===w.Nc||a.oe===w.Vc)d=e-1-d;return((a=a.oe===w.Nc||a.oe===w.Wc)?b.ye&&(e=k.right);k.bottom>g&&(g=k.bottom)}}isFinite(c)&&isFinite(d)?a.n(c,d,e-c,g-d):(b=b.location,c=this.padding,a.n(b.x+c.left,b.y+c.top,0,0));return a}; +yh.prototype.computeBorder=function(a){var b=this.W;if(b instanceof F){var c=b;if(c.BD&&this.Rr.J()){var d=c.h;if(null!==d&&(d=d.Ya,d instanceof Ef&&!d.kq&&null!==d.ic&&!d.ic.contains(c)))return a.assign(this.Rr),a}}var c=w.eg(),d=this.computeMemberBounds(c),e=this.padding;a.n(d.x-e.left,d.y-e.top,d.width+e.left+e.right,d.height+e.top+e.bottom);w.qc(c);b instanceof F&&(c=b,c.QG&&c.location.J()&&a.dj(c.location));return a}; +yh.prototype.computeMemberBounds=function(a){if(!(this.W instanceof F))return a.n(0,0,0,0),a;for(var b=this.W,c=Infinity,d=Infinity,e=-Infinity,g=-Infinity,h=b.Jc;h.next();){var k=h.value;if(k.La()){if(k instanceof G){var l=k;if(!b.PG)continue;if(Hj(l))continue;if(l.aa===b||l.fa===b)continue}k=k.ca;k.lefte&&(e=k.right);k.bottom>g&&(g=k.bottom)}}isFinite(c)&&isFinite(d)?a.n(c,d,e-c,g-d):(b=b.location,c=this.padding,a.n(b.x+c.left,b.y+c.top,0,0));return a}; w.defineProperty(yh,{padding:"padding"},function(){return this.Ze},function(a){"number"===typeof a?((isNaN(a)||0>a)&&w.ja(a,">= 0",yh,"padding"),a=new vb(a)):(w.k(a,vb,yh,"padding"),(isNaN(a.left)||0>a.left)&&w.ja(a.left,">= 0",yh,"padding:value.left"),(isNaN(a.right)||0>a.right)&&w.ja(a.right,">= 0",yh,"padding:value.right"),(isNaN(a.top)||0>a.top)&&w.ja(a.top,">= 0",yh,"padding:value.top"),(isNaN(a.bottom)||0>a.bottom)&&w.ja(a.bottom,">= 0",yh,"padding:value.bottom"));var b=this.Ze;b.N(a)||(this.Ze= -a=a.da(),this.i("padding",b,a))});function Ve(){0=c-1?(h=0,e=d,g+=k+20,k=0):h++}null!==a&&a.fe("Layout")}this.Cf=!0};Ve.prototype.eA=function(a){return!a.location.J()||a instanceof F&&a.Iy?!0:!1}; +Ve.prototype.doLayout=function(a){null===a&&w.l("Layout.doLayout(collection) argument must not be null but a Diagram, a Group, or an Iterable of Parts");var b=new L(C);a instanceof z?(fp(this,b,a.Ig,!0,this.fA,!0,!1,!0),fp(this,b,a.ei,!0,this.fA,!0,!1,!0)):a instanceof F?fp(this,b,a.Jc,!1,this.fA,!0,!1,!0):b.ce(a.j);var c=b.count;if(0=c-1?(h=0,e=d,g+=k+20,k=0):h++}null!==a&&a.fe("Layout")}this.Cf=!0};Ve.prototype.fA=function(a){return!a.location.J()||a instanceof F&&a.Jy?!0:!1}; function fp(a,b,c,d,e,g,h,k){for(c=c.j;c.next();){var l=c.value;d&&!l.bp||null!==e&&!e(l)||!l.canLayout()||(g&&l instanceof D?l.Af||(l instanceof F?null===l.Tb?fp(a,b,l.Jc,!1,e,g,h,k):b.add(l):b.add(l)):h&&l instanceof G?b.add(l):!k||!l.Sd()||l instanceof D||b.add(l))}} -Ve.prototype.collectParts=function(a){var b=new L(C);a instanceof z?(fp(this,b,a.Ig,!0,null,!0,!0,!0),fp(this,b,a.links,!0,null,!0,!0,!0),fp(this,b,a.di,!0,null,!0,!0,!0)):a instanceof F?fp(this,b,a.Jc,!1,null,!0,!0,!0):fp(this,b,a.j,!1,null,!0,!0,!0);return b};w.defineProperty(Ve,{de:"arrangementOrigin"},function(){return this.Qp},function(a){w.k(a,I,Ve,"arrangementOrigin");this.Qp.N(a)||(this.Qp.assign(a),this.K())}); +Ve.prototype.collectParts=function(a){var b=new L(C);a instanceof z?(fp(this,b,a.Ig,!0,null,!0,!0,!0),fp(this,b,a.links,!0,null,!0,!0,!0),fp(this,b,a.ei,!0,null,!0,!0,!0)):a instanceof F?fp(this,b,a.Jc,!1,null,!0,!0,!0):fp(this,b,a.j,!1,null,!0,!0,!0);return b};w.defineProperty(Ve,{de:"arrangementOrigin"},function(){return this.Qp},function(a){w.k(a,I,Ve,"arrangementOrigin");this.Qp.N(a)||(this.Qp.assign(a),this.K())}); Ve.prototype.initialOrigin=function(a){var b=this.group;if(null!==b){var c=b.position.copy();(isNaN(c.x)||isNaN(c.y))&&c.set(a);b=b.placeholder;null!==b&&(c=b.vb(Xb),(isNaN(c.x)||isNaN(c.y))&&c.set(a),c.x+=b.padding.left,c.y+=b.padding.top);return c}return a};function Da(){w.mc(this);this.Zd=null;this.clear()}w.la("LayoutNetwork",Da); -Da.prototype.clear=function(){if(this.vertexes)for(var a=this.vertexes.j;a.next();){var b=a.value;b.clear();b.network=null}if(this.edges)for(a=this.edges.j;a.next();)b=a.value,b.clear(),b.network=null;this.vertexes=new L(Ga);this.edges=new L(Ia);this.iA=new ta(D,Ga);this.Xz=new ta(G,Ia)}; +Da.prototype.clear=function(){if(this.vertexes)for(var a=this.vertexes.j;a.next();){var b=a.value;b.clear();b.network=null}if(this.edges)for(a=this.edges.j;a.next();)b=a.value,b.clear(),b.network=null;this.vertexes=new L(Ga);this.edges=new L(Ia);this.jA=new ta(D,Ga);this.Yz=new ta(G,Ia)}; Da.prototype.toString=function(a){void 0===a&&(a=0);var b="LayoutNetwork"+(null!==this.Tb?"("+this.Tb.toString()+")":"");if(0>=a)return b;b+=" vertexes: "+this.vertexes.count+" edges: "+this.edges.count;if(1d?1:0):1:null!==d?-1:0}; -Ga.smartComparer=function(a,b){u&&w.k(a,Ga,Ga,"smartComparer:m");u&&w.k(b,Ga,Ga,"smartComparer:n");if(null!==a){if(null!==b){var c=a.wd,d=b.wd;if(null!==c){if(null!==d){for(var c=c.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),d=d.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),e=0;ed?1:0):1:null!==d?-1:0}; +Ga.smartComparer=function(a,b){u&&w.k(a,Ga,Ga,"smartComparer:m");u&&w.k(b,Ga,Ga,"smartComparer:n");if(null!==a){if(null!==b){var c=a.xd,d=b.xd;if(null!==c){if(null!==d){for(var c=c.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),d=d.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),e=0;e=g&&0>=h&&(g=1);c=this.spacing.width;isFinite(c)||(c=0);a=this.spacing.height;isFinite(a)||(a=0);null!==b&&b.ec("Layout");d=[];switch(this.alignment){case km:var k= +Ia.prototype.toString=function(a){void 0===a&&(a=0);var b="LayoutEdge#"+w.ad(this);0=g&&0>=h&&(g=1);c=this.spacing.width;isFinite(c)||(c=0);a=this.spacing.height;isFinite(a)||(a=0);null!==b&&b.ec("Layout");d=[];switch(this.alignment){case km:var k= c,l=a,m=Math.max(this.Jo.width,1);if(!isFinite(m))for(var n=m=0;ng-1|| 0h)d.push(new x(0,y,h+k,A)),B=0,v=t,y+=A,A=0;A=Math.max(A,N);N=0;switch(s){case im:N=-q.width;break;default:N=0}p.moveTo(v+N,y);switch(s){case im:v-=E;break;default:v+=E}B++}d.push(new x(0,y,h+k,A));break;case jm:k=g;l=c;m=a;n=Math.max(this.Jo.width,1);p=y=E=0;q=w.O();for(g=0;g=E&&(h-=E);for(var E=N=0,J=Math.max(this.Jo.height,1),ea=p=0,T=!0,P=w.O(),g=0;gk-1||0h){d.push(new x(0,T?B-p:B,h+l,ea+p+m));for(W=0;WE&&(e.width+=e.x-E,e.x=E)}for(k=g=h=e=0;kd?1:0}; +w.defineProperty(cl,{RF:"wrappingWidth"},function(){return this.us},function(a){this.us!==a&&(w.g(a,"number",cl,"wrappingWidth"),0d?1:0}; cl.smartComparer=function(a,b){u&&w.k(a,C,cl,"standardComparer:a");u&&w.k(b,C,cl,"standardComparer:b");if(null!==a){if(null!==b){for(var c=a.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),d=b.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),e=0;e=a.count)1===a.count&&(a=a.first(),a.Pa=0,a.bb=0);else{var b=new K(op);b.ce(a.j);a=new K(op);var c=new K(op),d;d=this.sort(b);var e=this.ey,g=this.DB,h=this.Gd,k=this.Mn,l=this.gy,m=this.lq,b=this.Fk,n=this.XC,p=this.xg,q=this.ou,e=this.Pf,g=this.Nw,h=this.CI;if(!isFinite(h)|| -0>=h)h=NaN;k=this.BG;if(!isFinite(k)||0>=k)k=1;l=this.Se;isFinite(l)||(l=0);m=this.cg;if(!isFinite(m)||360m)m=360;b=this.spacing;isFinite(b)||(b=NaN);e===Fm&&g===Gm?e=Em:e===Fm&&g!==Gm&&(g=Gm,e=this.Pf);if((this.direction===rm||this.direction===sm)&&this.sorting!==qm){for(var r=0;!(r>=d.length);r+=2){a.add(d.ma(r));if(r+1>=d.length)break;c.add(d.ma(r+1))}this.direction===rm?(this.Pf===Fm&&a.reverse(),d=new K(op),d.ce(a),d.ce(c)):(this.Pf===Fm&&c.reverse(),d=new K(op),d.ce(c),d.ce(a))}for(var s= +function lm(){0=a.count)1===a.count&&(a=a.first(),a.Pa=0,a.bb=0);else{var b=new K(op);b.ce(a.j);a=new K(op);var c=new K(op),d;d=this.sort(b);var e=this.gy,g=this.EB,h=this.Gd,k=this.Mn,l=this.hy,m=this.lq,b=this.Fk,n=this.YC,p=this.xg,q=this.ou,e=this.Pf,g=this.Ow,h=this.EI;if(!isFinite(h)|| +0>=h)h=NaN;k=this.DG;if(!isFinite(k)||0>=k)k=1;l=this.Se;isFinite(l)||(l=0);m=this.cg;if(!isFinite(m)||360m)m=360;b=this.spacing;isFinite(b)||(b=NaN);e===Fm&&g===Gm?e=Em:e===Fm&&g!==Gm&&(g=Gm,e=this.Pf);if((this.direction===rm||this.direction===sm)&&this.sorting!==qm){for(var r=0;!(r>=d.length);r+=2){a.add(d.ma(r));if(r+1>=d.length)break;c.add(d.ma(r+1))}this.direction===rm?(this.Pf===Fm&&a.reverse(),d=new K(op),d.ce(a),d.ce(c)):(this.Pf===Fm&&c.reverse(),d=new K(op),d.ce(c),d.ce(a))}for(var s= d.length,t=n=0,r=0;rm&&(0===r||r===d.length-1)&&(v/=2);n+=v;t++}if(isNaN(h)||e===Fm){isNaN(b)&&(b=6);if(e!==Em&&e!==Fm){v=-Infinity;for(r=0;rh?(h=r,p=h*k):q=t/(360<=m?s:s-1)}this.ey=e;this.DB=g;this.Gd=h;this.Mn=k;this.gy=l;this.lq=m;this.Fk=b;this.XC=n;this.xg=p;this.ou=q;b=d;d=this.ey;e=this.Gd;g=this.gy;k=this.lq;l=this.Fk;m=this.xg;n=this.ou;if(this.direction!==rm&&this.direction!==sm||d!==Fm)if(this.direction===rm||this.direction===sm){h=0;switch(d){case Dm:h=180*sp(this,e,m,g,n)/Math.PI;break;case Em:n=b=0;h=a.first();null!==h&&(b=pp(h,Math.PI/2));h=c.first();null!==h&&(n=pp(h,Math.PI/2));h=180*sp(this,e,m,g,l+(b+ +m*Math.PI/180);r>h?(h=r,p=h*k):q=t/(360<=m?s:s-1)}this.gy=e;this.EB=g;this.Gd=h;this.Mn=k;this.hy=l;this.lq=m;this.Fk=b;this.YC=n;this.xg=p;this.ou=q;b=d;d=this.gy;e=this.Gd;g=this.hy;k=this.lq;l=this.Fk;m=this.xg;n=this.ou;if(this.direction!==rm&&this.direction!==sm||d!==Fm)if(this.direction===rm||this.direction===sm){h=0;switch(d){case Dm:h=180*sp(this,e,m,g,n)/Math.PI;break;case Em:n=b=0;h=a.first();null!==h&&(b=pp(h,Math.PI/2));h=c.first();null!==h&&(n=pp(h,Math.PI/2));h=180*sp(this,e,m,g,l+(b+ n)/2)/Math.PI;break;case Cm:h=k/b.length}if(this.direction===rm){switch(d){case Dm:tp(this,a,g,Bm);break;case Em:up(this,a,g,Bm);break;case Cm:vp(this,a,k/2,g,Bm)}switch(d){case Dm:tp(this,c,g+h,tm);break;case Em:up(this,c,g+h,tm);break;case Cm:vp(this,c,k/2,g+h,tm)}}else{switch(d){case Dm:tp(this,c,g,Bm);break;case Em:up(this,c,g,Bm);break;case Cm:vp(this,c,k/2,g,Bm)}switch(d){case Dm:tp(this,a,g+h,tm);break;case Em:up(this,a,g+h,tm);break;case Cm:vp(this,a,k/2,g+h,tm)}}}else switch(d){case Dm:tp(this, b,g,this.direction);break;case Em:up(this,b,g,this.direction);break;case Cm:vp(this,b,k,g,this.direction);break;case Fm:wp(this,b,k,g,this.direction)}else wp(this,b,k,g-k/2,tm)}this.updateParts();this.network=null;this.Cf=!0}; function vp(a,b,c,d,e){var g=a.lq,h=a.Gd;a=a.xg;d=d*Math.PI/180;c=c*Math.PI/180;for(var k=b.length,l=0;la.o function xp(a,b,c,d,e){for(var g=a.Gd,h=a.xg,k=a.Mn,l=g*Math.cos(d*Math.PI/180),m=h*Math.sin(d*Math.PI/180),n=w.O(),p=b.Te(),q=0;q=p.length-1)break;zp(a,l,m,p,q,e,n)||Ap(a,l,m,p,q,e,n);l=n.x;m=n.y}w.A(n);a.om++;if(!(23a.om?a.Gd-g/(2*Math.PI):a.Gd-(0k){m=b-a;if(m<-k)return h.x=m,h.y=n,!1;p=!0}}else if(m=b-a,m<-k){m=b+a;if(m>k)return h.x=m,h.y=n,!1;p=!0}n=Math.sqrt(1-Math.min(1,m*m/(k*k)))*l;0>c!==p&&(n=-n);if(Math.abs(c-n)>(d[e].height+d[e+1].height)/2)return h.x=m,h.y=n,!1;h.x=m;h.y=n;return!0} function Ap(a,b,c,d,e,g,h){var k=a.Gd,l=a.xg,m=0,n=0;a=(d[e].height+d[e+1].height)/2+a.Fk;d=!1;if(0<=b!==(g===tm)){if(n=c-a,n<-l){n=c+a;if(n>l){h.x=m;h.y=n;return}d=!0}}else if(n=c+a,n>l){n=c-a;if(n<-l){h.x=m;h.y=n;return}d=!0}m=Math.sqrt(1-Math.min(1,n*n/(l*l)))*k;0>b!==d&&(m=-m);h.x=m;h.y=n}lm.prototype.commitLayout=function(){this.commitNodes();this.ht&&this.commitLinks()}; -lm.prototype.commitNodes=function(){for(var a=this.tG,b=this.network.vertexes.j;b.next();){var c=b.value;c.x+=a.x;c.y+=a.y;c.commit()}};lm.prototype.commitLinks=function(){for(var a=this.network.edges.j;a.next();)a.value.commit()}; -function rp(a,b,c,d,e){var g=a.kG;if(.001>Math.abs(a.Mn-1))return void 0!==d&&void 0!==e?e*b:2*Math.PI*b;a=b>c?Math.sqrt(b*b-c*c)/b:Math.sqrt(c*c-b*b)/c;for(var h=0,k=0,k=void 0!==d&&void 0!==e?e/(g+1):Math.PI/(2*(g+1)),l=0,m=0;m<=g;m++)l=void 0!==d&&void 0!==e?d+m*e/g:m*Math.PI/(2*g),l=Math.sin(l),h+=Math.sqrt(1-a*a*l*l)*k;return void 0!==d&&void 0!==e?(b>c?b:c)*h:4*(b>c?b:c)*h}function qp(a,b,c,d,e){var g=0,g=void 0!==d&&void 0!==e?rp(a,1,c,d,e):rp(a,1,c);return b/g} +lm.prototype.commitNodes=function(){for(var a=this.vG,b=this.network.vertexes.j;b.next();){var c=b.value;c.x+=a.x;c.y+=a.y;c.commit()}};lm.prototype.commitLinks=function(){for(var a=this.network.edges.j;a.next();)a.value.commit()}; +function rp(a,b,c,d,e){var g=a.mG;if(.001>Math.abs(a.Mn-1))return void 0!==d&&void 0!==e?e*b:2*Math.PI*b;a=b>c?Math.sqrt(b*b-c*c)/b:Math.sqrt(c*c-b*b)/c;for(var h=0,k=0,k=void 0!==d&&void 0!==e?e/(g+1):Math.PI/(2*(g+1)),l=0,m=0;m<=g;m++)l=void 0!==d&&void 0!==e?d+m*e/g:m*Math.PI/(2*g),l=Math.sin(l),h+=Math.sqrt(1-a*a*l*l)*k;return void 0!==d&&void 0!==e?(b>c?b:c)*h:4*(b>c?b:c)*h}function qp(a,b,c,d,e){var g=0,g=void 0!==d&&void 0!==e?rp(a,1,c,d,e):rp(a,1,c);return b/g} function sp(a,b,c,d,e){if(.001>Math.abs(a.Mn-1))return e/b;var g=b>c?Math.sqrt(b*b-c*c)/b:Math.sqrt(c*c-b*b)/c,h=0;a=2*Math.PI/(700*a.network.vertexes.count);b>c&&(d+=Math.PI/2);for(var k=0;;k++){var l=Math.sin(d+k*a),h=h+(b>c?b:c)*Math.sqrt(1-g*g*l*l)*a;if(h>=e)return k*a}} -lm.prototype.sort=function(a){switch(this.sorting){case om:break;case pm:a.reverse();break;case mm:a.sort(this.comparer);break;case nm:a.sort(this.comparer);a.reverse();break;case qm:for(var b=[],c=0;ce&&(e=k,g=h)}else for(h=0;he&&(e=k,g=h);d.add(a.ma(g));b[g]=-1;g=a.ma(g);e=0;for(h=g.sc;h.next();)e=a.indexOf(h.value.fromVertex),0>e||0<=b[e]&& +lm.prototype.sort=function(a){switch(this.sorting){case om:break;case pm:a.reverse();break;case mm:a.sort(this.comparer);break;case nm:a.sort(this.comparer);a.reverse();break;case qm:for(var b=[],c=0;ce&&(e=k,g=h)}else for(h=0;he&&(e=k,g=h);d.add(a.ma(g));b[g]=-1;g=a.ma(g);e=0;for(h=g.sc;h.next();)e=a.indexOf(h.value.fromVertex),0>e||0<=b[e]&& b[e]++;for(g=g.hc;g.next();)e=a.indexOf(g.value.toVertex),0>e||0<=b[e]&&b[e]++}a=[];for(b=0;ba[b].indexOf(l)&&a[b].push(l);for(c=h.sc;c.next();)l=d.indexOf(c.value.fromVertex),l!==b&&0>a[b].indexOf(l)&&a[b].push(l)}h=[];for(b=0;ba[c[p]].indexOf(c[p===c.length-1?0:p+1])&&t.push(p===c.length-1?0:p+1);if(0===t.length)for(p=0;pN.indexOf(T)||PN.indexOf(T)|| P=v?l+1:l)),B+=l=v&&l++,E>=v&&E++,l>E&&(N=E,E=l,l=N),E-l<(c.length+2)/2===(lq||q===l||(s=q>l?q-l:l-q,p+=qm-s?1:-1);c.splice(0>p?l:l+1,0,b);e.splice(h,1);h--}else k=!1;if(k)break;else c.push(e[0]),e.splice(0,1)}for(b=0;b=a?a:360,this.K())}); +n=a[b][0],l=c.indexOf(n),0<=l){for(r=p=0;rq||q===l||(s=q>l?q-l:l-q,p+=qm-s?1:-1);c.splice(0>p?l:l+1,0,b);e.splice(h,1);h--}else k=!1;if(k)break;else c.push(e[0]),e.splice(0,1)}for(b=0;b=a?a:360,this.K())}); w.defineProperty(lm,{Pf:"arrangement"},function(){return this.ed},function(a){this.ed!==a&&(w.Ca(a,lm,lm,"arrangement"),a===Fm||a===Em||a===Dm||a===Cm)&&(this.ed=a,this.K())});w.defineProperty(lm,{direction:"direction"},function(){return this.qa},function(a){this.qa!==a&&(w.Ca(a,lm,lm,"direction"),a===tm||a===Bm||a===rm||a===sm)&&(this.qa=a,this.K())}); -w.defineProperty(lm,{sorting:"sorting"},function(){return this.Sh},function(a){this.Sh!==a&&(w.Ca(a,lm,lm,"sorting"),a===om||a===pm||a===mm||nm||a===qm)&&(this.Sh=a,this.K())});w.defineProperty(lm,{comparer:"comparer"},function(){return this.Ch},function(a){this.Ch!==a&&(w.g(a,"function",lm,"comparer"),this.Ch=a,this.K())});w.defineProperty(lm,{spacing:"spacing"},function(){return this.Th},function(a){this.Th!==a&&(w.g(a,"number",lm,"spacing"),this.Th=a,this.K())}); -w.defineProperty(lm,{Nw:"nodeDiameterFormula"},function(){return this.qr},function(a){this.qr!==a&&(w.Ca(a,lm,lm,"nodeDiameterFormula"),a===Hm||a===Gm)&&(this.qr=a,this.K())});w.w(lm,{uG:"actualXRadius"},function(){return this.Gd});w.w(lm,{vG:"actualYRadius"},function(){return this.xg});w.w(lm,{pJ:"actualSpacing"},function(){return this.Fk});w.w(lm,{tG:"actualCenter"},function(){return isNaN(this.de.x)||isNaN(this.de.y)?new I(0,0):new I(this.de.x+this.uG,this.de.y+this.vG)});var Em; +w.defineProperty(lm,{sorting:"sorting"},function(){return this.Th},function(a){this.Th!==a&&(w.Ca(a,lm,lm,"sorting"),a===om||a===pm||a===mm||nm||a===qm)&&(this.Th=a,this.K())});w.defineProperty(lm,{comparer:"comparer"},function(){return this.Dh},function(a){this.Dh!==a&&(w.g(a,"function",lm,"comparer"),this.Dh=a,this.K())});w.defineProperty(lm,{spacing:"spacing"},function(){return this.Uh},function(a){this.Uh!==a&&(w.g(a,"number",lm,"spacing"),this.Uh=a,this.K())}); +w.defineProperty(lm,{Ow:"nodeDiameterFormula"},function(){return this.qr},function(a){this.qr!==a&&(w.Ca(a,lm,lm,"nodeDiameterFormula"),a===Hm||a===Gm)&&(this.qr=a,this.K())});w.w(lm,{wG:"actualXRadius"},function(){return this.Gd});w.w(lm,{xG:"actualYRadius"},function(){return this.xg});w.w(lm,{rJ:"actualSpacing"},function(){return this.Fk});w.w(lm,{vG:"actualCenter"},function(){return isNaN(this.de.x)||isNaN(this.de.y)?new I(0,0):new I(this.de.x+this.wG,this.de.y+this.xG)});var Em; lm.ConstantSpacing=Em=w.v(lm,"ConstantSpacing",0);var Dm;lm.ConstantDistance=Dm=w.v(lm,"ConstantDistance",1);var Cm;lm.ConstantAngle=Cm=w.v(lm,"ConstantAngle",2);var Fm;lm.Packed=Fm=w.v(lm,"Packed",3);var tm;lm.Clockwise=tm=w.v(lm,"Clockwise",4);var Bm;lm.Counterclockwise=Bm=w.v(lm,"Counterclockwise",5);var rm;lm.BidirectionalLeft=rm=w.v(lm,"BidirectionalLeft",6);var sm;lm.BidirectionalRight=sm=w.v(lm,"BidirectionalRight",7);var om;lm.Forwards=om=w.v(lm,"Forwards",8);var pm; lm.Reverse=pm=w.v(lm,"Reverse",9);var mm;lm.Ascending=mm=w.v(lm,"Ascending",10);var nm;lm.Descending=nm=w.v(lm,"Descending",11);var qm;lm.Optimized=qm=w.v(lm,"Optimized",12);var Hm;lm.Pythagorean=Hm=w.v(lm,"Pythagorean",13);var Gm;lm.Circular=Gm=w.v(lm,"Circular",14);function mp(){this.Uo=-Infinity;this.Hp=this.mn=null} mp.prototype.compare=function(a,b){if(0this.Uo||Math.abs(a)a&&0g?(e=n.x+n.width/2,k=n.y+n.height/2,l[0]=new I(n.x+n.width+d.width,n.y),l[1]=new I(n.x,n.y+n.height+d.height),g=2):(p=Fp(l,g, e,k,n.width,n.height,d),q=l[p],r=new I(q.x+n.width+d.width,q.y),s=new I(q.x,q.y+n.height+d.height),p+1this.network.vertexes.count)return!1;for(var a=0,b=0,c=this.network.vertexes.first().ub,d=this.network.vertexes.j;d.next();){if(d.value.ub.Fg(c)&&(a++,2this.network.vertexes.count)return!1;for(var a=0,b=0,c=this.network.vertexes.first().ub,d=this.network.vertexes.j;d.next();){if(d.value.ub.Fg(c)&&(a++,2a.network.vertexes.count)return!1;null===a.wg?a.wg=new K(Lp):a.wg.clear();a.wg.ce(a.network.vertexes);var c=a.wg;c.sort(function(a,b){return null===a||null===b||a===b?0:b.$f-a.$f});for(var d=c.count-1;0<=d&&1>=c.ma(d).$f;)d--;return 1=h))){for(var m=0,n=0,p=l.count-h;ps&&(s=1);m=O.sqrt((m+s+n*n*4/(h*h))/s);h=(m-1)*p/2;m=(m-1)*q/2;g.ub=new x(l-r.x-h,k-r.y-m,p+2*h,q+2*m);g.focus=new I(r.x+h,r.y+m)}a.network=d;return c} -function Kp(a,b,c){u&&(w.k(b,Dp,Cp,"popNetwork:oldnet"),w.o(c,Cp,"popNetwork:level"));for(c=a.network.vertexes.j;c.next();){var d=c.value;d.network=b;if(null!==d.vh){var e=d.vh.ma(d.vA);d.$f=e.sx;var g=e.OA,h=e.PA;d.ub=new x(d.Pa-g,d.bb-h,e.vx,e.qx);d.focus=new I(g,h);d.vA--}}for(c=a.network.edges.j;c.next();)c.value.network=b;a.network=b} -function Mp(a,b,c){u&&(w.k(b,Lp,Cp,"surroundNode:oldnet"),w.o(c,Cp,"surroundNode:level"));var d=b.Mm;if(null!==d&&0!==d.count){c=b.Pa;var e=b.bb,g=b.width,h=b.height;null!==b.vh&&0=p.$f?l++:(k=!0,m++,h+=Math.atan2(b.bb-p.bb,b.Pa-p.Pa))}if(0!==l)for(0=h))){for(var m=0,n=0,p=l.count-h;ps&&(s=1);m=O.sqrt((m+s+n*n*4/(h*h))/s);h=(m-1)*p/2;m=(m-1)*q/2;g.ub=new x(l-r.x-h,k-r.y-m,p+2*h,q+2*m);g.focus=new I(r.x+h,r.y+m)}a.network=d;return c} +function Kp(a,b,c){u&&(w.k(b,Dp,Cp,"popNetwork:oldnet"),w.o(c,Cp,"popNetwork:level"));for(c=a.network.vertexes.j;c.next();){var d=c.value;d.network=b;if(null!==d.vh){var e=d.vh.ma(d.wA);d.$f=e.tx;var g=e.PA,h=e.QA;d.ub=new x(d.Pa-g,d.bb-h,e.wx,e.sx);d.focus=new I(g,h);d.wA--}}for(c=a.network.edges.j;c.next();)c.value.network=b;a.network=b} +function Mp(a,b,c){u&&(w.k(b,Lp,Cp,"surroundNode:oldnet"),w.o(c,Cp,"surroundNode:level"));var d=b.Mm;if(null!==d&&0!==d.count){c=b.Pa;var e=b.bb,g=b.width,h=b.height;null!==b.vh&&0=p.$f?l++:(k=!0,m++,h+=Math.atan2(b.bb-p.bb,b.Pa-p.Pa))}if(0!==l)for(0>1)+m)*(0===k%2?1:-1);l.Pa=c+n*Math.cos(p);l.bb=e+n*Math.sin(p);k++}}} -function Fp(a,b,c,d,e,g,h){var k=9E19,l=-1,m=0;a:for(;mn.y&&a[q].x-n.xn.x&&a[q].y-n.yn.y&&a[q].x-n.xn.x&&a[q].y-n.yl+h?(d=d+g-k,e=e-l-h,O.sqrt(d*d+e*e)):e+ck+m?e>l+h?(d=d-k-m,e=e-l-h,O.sqrt(d*d+e*e)):e+cl+h?e-(l+h):e+c=b.length)return!1;var c=b[0];c.forceX=0;c.forceY=0;for(var d=c.Pa,e=d,g=c.bb,h=g,c=1;ch-g)?b.sort(function(a,b){return null===a||null===b||a===b?0:a.Pa-b.Pa}):b.sort(function(a,b){return null===a||null===b||a===b?0:a.bb-b.bb});for(var h=a.Kh,m=0,n=0,p=0,c=0;ch||p-d>h){if(g)break}else if(l-r>h||r-l>h){if(!g)break}else{var s=Tp(k,e);1>s?(n=a.Uw,null===n&&(a.Uw=n=new Na(0)),m=n.random(),s=n.random(),d>p?(n=Math.abs(e.ea.right-k.ea.x),n=(1+n)*m):dr?(p=Math.abs(e.ea.bottom-k.ea.y),p=(1+p)*s):ds?(n=a.Uw,null===n&&(a.Uw=n=new Na(0)), -m=n.random(),s=n.random(),n=(d>p?1:-1)*(1+(e.width>k.width)?e.width:k.width)*m,p=(l>r?1:-1)*(1+(e.height>k.height)?e.height:k.height)*s):(m=g.stiffness*(s-g.length),n=(p-d)/s*m,p=(r-l)/s*m),k.forceX+=n,k.forceY+=p,e.forceX-=n,e.forceY-=p;c=0;d=Math.max(a.Kh/20,50);for(e=0;ed&&(g=d),h<-d?h=-d:h>d&&(h=d),k.Pa+=g,k.bb+=h,c=Math.max(c,g*g+h*h));return c>a.VD*a.VD}Cp.prototype.moveFixedVertex=function(){}; -Cp.prototype.commitLayout=function(){this.zA();this.commitNodes();this.ht&&this.commitLinks()};Cp.prototype.zA=function(){if(this.Bp)for(var a=this.network.edges.j;a.next();){var b=a.value.link;null!==b&&(b.Cb=Pc,b.Eb=Pc)}};Cp.prototype.commitNodes=function(){var a=0,b=0;if(this.AG){var c=w.eg();this.yg(this.network,c);b=this.de;a=b.x-c.x;b=b.y-c.y;w.qc(c)}for(var c=w.eg(),d=this.network.vertexes.j;d.next();){var e=d.value;if(0!==a||0!==b)c.assign(e.ub),c.x+=a,c.y+=b,e.ub=c;e.commit()}w.qc(c)}; +function Xp(a){null===a.wg&&(a.wg=new K(Lp),a.wg.ce(a.network.vertexes));var b=a.wg.p;if(0>=b.length)return!1;var c=b[0];c.forceX=0;c.forceY=0;for(var d=c.Pa,e=d,g=c.bb,h=g,c=1;ch-g)?b.sort(function(a,b){return null===a||null===b||a===b?0:a.Pa-b.Pa}):b.sort(function(a,b){return null===a||null===b||a===b?0:a.bb-b.bb});for(var h=a.Lh,m=0,n=0,p=0,c=0;ch||p-d>h){if(g)break}else if(l-r>h||r-l>h){if(!g)break}else{var s=Tp(k,e);1>s?(n=a.Vw,null===n&&(a.Vw=n=new Na(0)),m=n.random(),s=n.random(),d>p?(n=Math.abs(e.ea.right-k.ea.x),n=(1+n)*m):dr?(p=Math.abs(e.ea.bottom-k.ea.y),p=(1+p)*s):ds?(n=a.Vw,null===n&&(a.Vw=n=new Na(0)), +m=n.random(),s=n.random(),n=(d>p?1:-1)*(1+(e.width>k.width)?e.width:k.width)*m,p=(l>r?1:-1)*(1+(e.height>k.height)?e.height:k.height)*s):(m=g.stiffness*(s-g.length),n=(p-d)/s*m,p=(r-l)/s*m),k.forceX+=n,k.forceY+=p,e.forceX-=n,e.forceY-=p;c=0;d=Math.max(a.Lh/20,50);for(e=0;ed&&(g=d),h<-d?h=-d:h>d&&(h=d),k.Pa+=g,k.bb+=h,c=Math.max(c,g*g+h*h));return c>a.WD*a.WD}Cp.prototype.moveFixedVertex=function(){}; +Cp.prototype.commitLayout=function(){this.AA();this.commitNodes();this.ht&&this.commitLinks()};Cp.prototype.AA=function(){if(this.Bp)for(var a=this.network.edges.j;a.next();){var b=a.value.link;null!==b&&(b.Cb=Pc,b.Eb=Pc)}};Cp.prototype.commitNodes=function(){var a=0,b=0;if(this.CG){var c=w.eg();this.yg(this.network,c);b=this.de;a=b.x-c.x;b=b.y-c.y;w.qc(c)}for(var c=w.eg(),d=this.network.vertexes.j;d.next();){var e=d.value;if(0!==a||0!==b)c.assign(e.ub),c.x+=a,c.y+=b,e.ub=c;e.commit()}w.qc(c)}; Cp.prototype.commitLinks=function(){for(var a=this.network.edges.j;a.next();)a.value.commit()};Cp.prototype.springStiffness=function(a){a=a.stiffness;return isNaN(a)?this.Hn:a};Cp.prototype.springLength=function(a){a=a.length;return isNaN(a)?this.Gn:a};Cp.prototype.electricalCharge=function(a){a=a.charge;return isNaN(a)?this.Dn:a};Cp.prototype.electricalFieldX=function(){return 0};Cp.prototype.electricalFieldY=function(){return 0}; -Cp.prototype.gravitationalMass=function(a){a=a.mass;return isNaN(a)?this.Fn:a};Cp.prototype.gravitationalFieldX=function(){return 0};Cp.prototype.gravitationalFieldY=function(){return 0};Cp.prototype.isFixed=function(a){return a.isFixed};w.w(Cp,{PJ:"currentIteration"},function(){return this.Oq});w.defineProperty(Cp,{oD:"arrangementSpacing"},function(){return this.gg},function(a){w.k(a,pa,Cp,"arrangementSpacing");this.gg.N(a)||(this.gg.assign(a),this.K())}); -w.defineProperty(Cp,{AG:"arrangesToOrigin"},function(){return this.Rp},function(a){this.Rp!==a&&(w.g(a,"boolean",Cp,"arrangesToOrigin"),this.Rp=a,this.K())});w.defineProperty(Cp,{Bp:"setsPortSpots"},function(){return this.Rh},function(a){this.Rh!==a&&(w.g(a,"boolean",Cp,"setsPortSpots"),this.Rh=a,this.K())});w.defineProperty(Cp,{comments:"comments"},function(){return this.Bh},function(a){this.Bh!==a&&(w.g(a,"boolean",Cp,"comments"),this.Bh=a,this.K())}); -w.defineProperty(Cp,{Yz:"maxIterations"},function(){return this.lo},function(a){this.lo!==a&&(w.g(a,"number",Cp,"maxIterations"),0<=a&&(this.lo=a,this.K()))});w.defineProperty(Cp,{VD:"epsilonDistance"},function(){return this.nq},function(a){this.nq!==a&&(w.g(a,"number",Cp,"epsilonDistance"),0b.toVertex.index&&(this.network.Vw(b),b.rev=!0);break;case Zp:for(b=this.network.vertexes.j;b.next();)a=b.value,a.Po=-1,a.finish=-1;for(a=this.network.edges.j;a.next();)a.value.forest=!1;this.lr=0;for(b.reset();b.next();)c=b.value,0===c.sc.count&&iq(this,c);for(b.reset();b.next();)c=b.value,-1===c.Po&&iq(this,c);for(a.reset();a.next();)b=a.value,b.forest||(c=b.fromVertex, -d=c.finish,e=b.toVertex,g=e.finish,e.Pos&&0s&&0b.toVertex.index&&(this.network.Ww(b),b.rev=!0);break;case Zp:for(b=this.network.vertexes.j;b.next();)a=b.value,a.Po=-1,a.finish=-1;for(a=this.network.edges.j;a.next();)a.value.forest=!1;this.lr=0;for(b.reset();b.next();)c=b.value,0===c.sc.count&&iq(this,c);for(b.reset();b.next();)c=b.value,-1===c.Po&&iq(this,c);for(a.reset();a.next();)b=a.value,b.forest||(c=b.fromVertex, +d=c.finish,e=b.toVertex,g=e.finish,e.Pos&&0s&&0b[this.Jf]&&(this.$u=b[c]-1,this.Jf=c),b[c]h)for(var p=h+1;pn;p--)l=d[p],l.near===m&&l.Jm===m.Jm||k++;var m=0,q,r=q=p=l=0,s,t=0,v=0;s=0;var y;if(0<=c)for(n=d[h].Re,m=0;mt||l===t&&q>s)&&k++,vl||t===l&&s>q)&&k++);if(0>=c)for(n=d[h].Le,m=0;mt||l===t&&p>v)&&k++, @@ -1823,58 +1824,58 @@ function Sq(a,b){u&&(w.o(b,cm,"tightPackAux:column"),w.o(1,cm,"tightPackAux:dire function Pq(a,b){u&&w.o(b,cm,"componentPack:direction");for(var c=0;c<=a.Mb;c++)for(;Rq(a,c););a.normalize();for(c=0;ce?pq(a,d):hb)for(c=a.Mb;0<=c;c--)for(d=oq(a),e=rq(a),g=e+1;ee?pq(a,d):hc)for(d.reset();d.next();)e=d.value,e.column+a.nodeMinColumnSpace(e,!1)>=b&&(e.component=a.og);a.og++;for(d.reset();d.next();)b=d.value,-1===b.component&&(vq(a,b,a.og,-1,!0,!0),a.og++);var g=0;b=[];for(g=0;gc)for(k=a.Mb;0c)for(d.reset();d.next();)c=d.value,e[c.component]&&(c.column+=1)} -cm.prototype.commitLayout=function(){if(this.Bp)for(var a=jq(this,!0),b=jq(this,!1),c=this.network.edges.j;c.next();){var d=c.value.link;null!==d&&(d.Cb=a,d.Eb=b)}this.commitNodes();this.oz();this.ht&&this.commitLinks()};function jq(a,b){return 270===a.qa?b?Qc:Yc:90===a.qa?b?Yc:Qc:180===a.qa?b?Wc:Xc:b?Xc:Wc} +0;gc)for(d.reset();d.next();)c=d.value,e[c.component]&&(c.column+=1)} +cm.prototype.commitLayout=function(){if(this.Bp)for(var a=jq(this,!0),b=jq(this,!1),c=this.network.edges.j;c.next();){var d=c.value.link;null!==d&&(d.Cb=a,d.Eb=b)}this.commitNodes();this.pz();this.ht&&this.commitLinks()};function jq(a,b){return 270===a.qa?b?Qc:Yc:90===a.qa?b?Yc:Qc:180===a.qa?b?Wc:Xc:b?Xc:Wc} cm.prototype.commitNodes=function(){this.Xg=[];this.ng=[];this.If=[];this.Rb=[];for(var a=0;a<=this.sb;a++)this.Xg[a]=0,this.ng[a]=0,this.If[a]=0,this.Rb[a]=0;for(a=this.network.vertexes.j;a.next();){var b=a.value,c=b.layer;this.Xg[c]=Math.max(this.Xg[c],this.nodeMinLayerSpace(b,!0));this.ng[c]=Math.max(this.ng[c],this.nodeMinLayerSpace(b,!1))}for(var b=0,d=this.im,c=0;c<=this.sb;c++){var e=d;0>=this.Xg[c]+this.ng[c]&&(e=0);0=Ba.ea.y&&fc<=Ba.ea.bottom&&(va=Ba.Pa+Of,fc=fc=Ba.ea.x&&fc<=Ba.ea.right&&(va=Ba.bb+Of,fc=fc=Ba.ea.y&&fc<=Ba.ea.bottom&&(wa=Ba.Pa+Of,fc=fc=Ba.ea.x&&fc<=Ba.ea.right&&(wa=Ba.bb+Of,fc=fcBb.y&&(Qf=rg.y>Bb.y?0:qc.xic.x&&(Rf=Sg.x>ic.x?0:Ac.yb.layer?1:a.Keb.Ke?1:a.eeb.ee?1:0:0}; -cm.prototype.jF=function(a,b){return a instanceof Uq&&b instanceof Uq&&a!==b?a.firstb.first||a.eib.ei||a.Keb.Ke?1:a.eeb.ee?1:0:0};cm.prototype.Xw=function(a,b){return a instanceof Uq&&b instanceof Uq&&a!==b?a.Tdb.Td||a.eib.ei||a.Keb.Ke?1:a.eeb.ee?1:0:0};cm.prototype.F=function(a,b){u&&(w.o(a,cm,"isApprox:a"),w.o(b,cm,"isApprox:b"));var c=a-b;return-1c}; +this.F(Bb.y,qc.y)&&!this.F(Bb.x,qc.x)){var gc=new Uq;gc.layer=Math.floor(Bb.y/2);var pb=Lb.m(0),Ce=Lb.m(Lb.pa-1);gc.first=pb.x*pb.x+pb.y;gc.Td=Ce.x*Ce.x+Ce.y;gc.Ke=Math.min(Bb.x,qc.x);gc.ee=Math.max(Bb.x,qc.x);gc.index=Cb;gc.link=Lb;if(Cb+2Bb.y&&(Qf=rg.y>Bb.y?0:qc.xic.x&&(Rf=Sg.x>ic.x?0:Ac.yb.layer?1:a.Keb.Ke?1:a.eeb.ee?1:0:0}; +cm.prototype.lF=function(a,b){return a instanceof Uq&&b instanceof Uq&&a!==b?a.firstb.first||a.fib.fi||a.Keb.Ke?1:a.eeb.ee?1:0:0};cm.prototype.Yw=function(a,b){return a instanceof Uq&&b instanceof Uq&&a!==b?a.Tdb.Td||a.fib.fi||a.Keb.Ke?1:a.eeb.ee?1:0:0};cm.prototype.F=function(a,b){u&&(w.o(a,cm,"isApprox:a"),w.o(b,cm,"isApprox:b"));var c=a-b;return-1c}; function Vq(a,b,c,d){u&&(w.o(a,cm,"isUnoccupied2:px"),w.o(b,cm,"isUnoccupied2:py"),w.o(c,cm,"isUnoccupied2:qx"),w.o(d,cm,"isUnoccupied2:qy"));return!0}function lq(a,b){var c,d=a.Xd[b];if(d>=a.$g.length){c=[];for(var e=0;ea&&(this.Bi=a,this.K()))});w.defineProperty(cm,{Bp:"setsPortSpots"},function(){return this.Rh},function(a){this.Rh!==a&&(w.g(a,"boolean",cm,"setsPortSpots"),this.Rh=a,this.K())});w.defineProperty(cm,{Kw:"linkSpacing"},function(){return this.xj},function(a){this.xj!==a&&(w.g(a,"number",cm,"linkSpacing"),0<=a&&(this.xj=a,this.K()))});w.w(cm,{jI:"maxLayer"},function(){return this.sb}); -w.w(cm,{FK:"maxIndex"},function(){return this.$u});w.w(cm,{EK:"maxColumn"},function(){return this.Mb});w.w(cm,{LK:"minIndexLayer"},function(){return this.er});w.w(cm,{GK:"maxIndexLayer"},function(){return this.Jf});var Zp;cm.CycleDepthFirst=Zp=w.v(cm,"CycleDepthFirst",0);var eq;cm.CycleGreedy=eq=w.v(cm,"CycleGreedy",1);var $p;cm.LayerOptimalLinkLength=$p=w.v(cm,"LayerOptimalLinkLength",0);var wq;cm.LayerLongestPathSink=wq=w.v(cm,"LayerLongestPathSink",1);var yq; +w.defineProperty(cm,{layerSpacing:"layerSpacing"},function(){return this.im},function(a){this.im!==a&&(w.g(a,"number",cm,"layerSpacing"),0<=a&&(this.im=a,this.K()))});w.defineProperty(cm,{OJ:"columnSpacing"},function(){return this.Fd},function(a){this.Fd!==a&&(w.g(a,"number",cm,"columnSpacing"),0<=a&&(this.Fd=a,this.K()))});w.defineProperty(cm,{direction:"direction"},function(){return this.qa},function(a){this.qa!==a&&(w.g(a,"number",cm,"direction"),this.qa=a,this.K())}); +w.defineProperty(cm,{XG:"cycleRemoveOption"},function(){return this.Cn},function(a){this.Cn!==a&&(w.Ca(a,cm,cm,"cycleRemoveOption"),a===eq||a===Zp)&&(this.Cn=a,this.K())});w.defineProperty(cm,{dI:"layeringOption"},function(){return this.jo},function(a){this.jo!==a&&(w.Ca(a,cm,cm,"layeringOption"),a===$p||a===wq||a===yq)&&(this.jo=a,this.K())}); +w.defineProperty(cm,{OH:"initializeOption"},function(){return this.Xn},function(a){this.Xn!==a&&(w.Ca(a,cm,cm,"initializeOption"),a===aq||a===Eq||a===Cq)&&(this.Xn=a,this.K())});w.defineProperty(cm,{BK:"iterations"},function(){return this.fm},function(a){this.fm!==a&&(w.o(a,dq,"iterations"),0<=a&&(this.fm=a,this.K()))});w.defineProperty(cm,{AG:"aggressiveOption"},function(){return this.sn},function(a){this.sn!==a&&(w.Ca(a,cm,cm,"aggressiveOption"),a===Iq||a===bq||a===Jq)&&(this.sn=a,this.K())}); +w.defineProperty(cm,{ZK:"packOption"},function(){return this.Bi},function(a){this.Bi!==a&&(w.g(a,"number",cm,"packOption"),0<=a&&8>a&&(this.Bi=a,this.K()))});w.defineProperty(cm,{Bp:"setsPortSpots"},function(){return this.Sh},function(a){this.Sh!==a&&(w.g(a,"boolean",cm,"setsPortSpots"),this.Sh=a,this.K())});w.defineProperty(cm,{Lw:"linkSpacing"},function(){return this.xj},function(a){this.xj!==a&&(w.g(a,"number",cm,"linkSpacing"),0<=a&&(this.xj=a,this.K()))});w.w(cm,{lI:"maxLayer"},function(){return this.sb}); +w.w(cm,{HK:"maxIndex"},function(){return this.$u});w.w(cm,{GK:"maxColumn"},function(){return this.Mb});w.w(cm,{NK:"minIndexLayer"},function(){return this.er});w.w(cm,{IK:"maxIndexLayer"},function(){return this.Jf});var Zp;cm.CycleDepthFirst=Zp=w.v(cm,"CycleDepthFirst",0);var eq;cm.CycleGreedy=eq=w.v(cm,"CycleGreedy",1);var $p;cm.LayerOptimalLinkLength=$p=w.v(cm,"LayerOptimalLinkLength",0);var wq;cm.LayerLongestPathSink=wq=w.v(cm,"LayerLongestPathSink",1);var yq; cm.LayerLongestPathSource=yq=w.v(cm,"LayerLongestPathSource",2);var aq;cm.InitDepthFirstOut=aq=w.v(cm,"InitDepthFirstOut",0);var Eq;cm.InitDepthFirstIn=Eq=w.v(cm,"InitDepthFirstIn",1);var Cq;cm.InitNaive=Cq=w.v(cm,"InitNaive",2);var Iq;cm.AggressiveNone=Iq=w.v(cm,"AggressiveNone",0);var bq;cm.AggressiveLess=bq=w.v(cm,"AggressiveLess",1);var Jq;cm.AggressiveMore=Jq=w.v(cm,"AggressiveMore",2);cm.PackNone=0;var Kq;cm.PackExpand=Kq=1;var Lq;cm.PackStraighten=Lq=2;var Nq;cm.PackMedian=Nq=4;var cq; -cm.PackAll=cq=7;function Uq(){this.index=this.ee=this.Ke=this.Td=this.first=this.layer=0;this.link=null;this.ei=0}w.ge(Uq,{layer:!0,first:!0,Td:!0,Ke:!0,ee:!0,index:!0,link:!0,ei:!0});function dq(){Da.call(this)}w.Na(dq,Da);w.la("LayeredDigraphNetwork",dq);dq.prototype.createVertex=function(){return new Wq};dq.prototype.createEdge=function(){return new Xq}; -function Wq(){Ga.call(this);this.index=this.column=this.layer=-1;this.component=NaN;this.near=null;this.valid=!1;this.finish=this.Po=NaN;this.Jm=0;this.fA=this.gA=null}w.Na(Wq,Ga);w.la("LayeredDigraphVertex",Wq);function Xq(){Ia.call(this);this.forest=this.rev=this.valid=!1;this.portToPos=this.portFromPos=NaN;this.portToColOffset=this.portFromColOffset=0}w.Na(Xq,Ia);w.la("LayeredDigraphEdge",Xq); -function Z(){0b.level)return!1;a.removeChild(c.parent,c)}return!0} Z.prototype.removeChild=function(a,b){if(null!==a&&null!==b){u&&w.k(a,cr,Z,"removeChild:p");u&&w.k(b,cr,Z,"removeChild:c");for(var c=a.children,d=0,e=0;eg?Lr(a,k,qa,A,E):Mr(a,k,qa,A,E);qa=T.x;A=T.width;E=T.height;break;case zr:for(m=0;ms&&(Pva&&(Rr(a,-va,0,Sa,m-1),Sr(J,-va,0),Sr(W,-va,0),va=0)}n.oa.n(va,aa);A=Math.max(A,ea);E=Math.max(E,N+(0===Ka?0:y)+Ha.height);P=ea}else{0s&&(aava&&(Rr(a,0,-va,Sa,m-1),Sr(J,0,-va),Sr(W,0,-va),va=0);n.oa.n(P,va);E=Math.max(E,T);A=Math.max(A,N+(0===Ka?0:y)+Ha.width);aa=T}Ba++}0< +p,h-P,0,Sa,m-1),Ka++,Ba=0,Sa=m,N=E,P=0,aa=135wa&&(Rr(a,-wa,0,Sa,m-1),Sr(J,-wa,0),Sr(W,-wa,0),wa=0)}n.oa.n(wa,aa);A=Math.max(A,ea);E=Math.max(E,N+(0===Ka?0:y)+Ha.height);P=ea}else{0s&&(aawa&&(Rr(a,0,-wa,Sa,m-1),Sr(J,0,-wa),Sr(W,0,-wa),wa=0);n.oa.n(P,wa);E=Math.max(E,T);A=Math.max(A,N+(0===Ka?0:y)+Ha.width);aa=T}Ba++}0< Ka&&(b?(E+=Math.max(0,c),Ph&&(h=0),135q&&(q=0),p===Ar&&(l+=t/2+a.P.y),k+=d+c):b?(null===a.comments?d>A&&(p=Wr(p,d-A,0),k=p.x,l=p.y,A=d,h=0):A=Ur(a,A,h),0>h&&(k-=h,h=0),135E&&(p=Wr(p,0,e-E),k=p.x,l=p.y,E=e,q=0):E=Vr(a,E,q),0>q&&(l-=q,q=0),k+=d+c);if(0e;)v=l[g++],n[d++].n(v.x+m,v.y);l=Nr(a,d);for(e=0;ep.length||null===g||2>g.length)e=null;else{n=Nr(a,p.length+g.length);for(m=y=l=0;lg;)e=p[l++], n[m++].n(e.x,e.y);e=Nr(a,m);for(l=0;lp.length||null===q||2>q.length))for(m=l=0;lg&&e.xe.x&&gb.length||null===l||2>l.length)d=null;else{n=Nr(a,b.length+l.length);for(d=g=e=0;ge;)v=l[g++],n[d++].n(v.x,v.y+m);l=Nr(a,d);for(e=0;ep.length||null===g||2>g.length)e=null;else{n=Nr(a,p.length+g.length);for(m=y=l=0;lg;)e=p[l++],n[m++].n(e.x,e.y);e=Nr(a,m);for(l=0;lg;)e=p[l++],n[m++].n(e.x,e.y);e=Nr(a,m);for(l=0;l=a?0:135>=a?90:225>=a?180:315>=a?270:0} function Jr(a){u&&w.k(a,cr,Z,"computeLayerSpacing:v");var b=Gr(a),b=90===b||270===b,c=a.layerSpacing;if(0=a&&(this.va.nodeIndentPastParent=a,this.K()))}); @@ -1940,26 +1941,26 @@ w.defineProperty(Z,{breadthLimit:"breadthLimit"},function(){return this.va.bread w.defineProperty(Z,{rowIndent:"rowIndent"},function(){return this.va.rowIndent},function(a){this.va.rowIndent!==a&&(w.g(a,"number",Z,"rowIndent"),0<=a&&(this.va.rowIndent=a,this.K()))});w.defineProperty(Z,{commentSpacing:"commentSpacing"},function(){return this.va.commentSpacing},function(a){this.va.commentSpacing!==a&&(w.g(a,"number",Z,"commentSpacing"),this.va.commentSpacing=a,this.K())}); w.defineProperty(Z,{commentMargin:"commentMargin"},function(){return this.va.commentMargin},function(a){this.va.commentMargin!==a&&(w.g(a,"number",Z,"commentMargin"),this.va.commentMargin=a,this.K())});w.defineProperty(Z,{setsPortSpot:"setsPortSpot"},function(){return this.va.setsPortSpot},function(a){this.va.setsPortSpot!==a&&(w.g(a,"boolean",Z,"setsPortSpot"),this.va.setsPortSpot=a,this.K())}); w.defineProperty(Z,{portSpot:"portSpot"},function(){return this.va.portSpot},function(a){w.k(a,Q,Z,"portSpot");this.va.portSpot.N(a)||(this.va.portSpot=a,this.K())});w.defineProperty(Z,{setsChildPortSpot:"setsChildPortSpot"},function(){return this.va.setsChildPortSpot},function(a){this.va.setsChildPortSpot!==a&&(w.g(a,"boolean",Z,"setsChildPortSpot"),this.va.setsChildPortSpot=a,this.K())}); -w.defineProperty(Z,{childPortSpot:"childPortSpot"},function(){return this.va.childPortSpot},function(a){w.k(a,Q,Z,"childPortSpot");this.va.childPortSpot.N(a)||(this.va.childPortSpot=a,this.K())});w.defineProperty(Z,{JJ:"alternateSorting"},function(){return this.ta.sorting},function(a){this.ta.sorting!==a&&(w.Ca(a,Z,Z,"alternateSorting"),a===sr||a===tr||a===ur||vr)&&(this.ta.sorting=a,this.K())}); -w.defineProperty(Z,{xJ:"alternateComparer"},function(){return this.ta.comparer},function(a){this.ta.comparer!==a&&(w.g(a,"function",Z,"alternateComparer"),this.ta.comparer=a,this.K())});w.defineProperty(Z,{rJ:"alternateAngle"},function(){return this.ta.angle},function(a){this.ta.angle!==a&&(w.g(a,"number",Z,"alternateAngle"),0===a||90===a||180===a||270===a)&&(this.ta.angle=a,this.K())}); -w.defineProperty(Z,{qJ:"alternateAlignment"},function(){return this.ta.alignment},function(a){this.ta.alignment!==a&&(w.Ca(a,Z,Z,"alternateAlignment"),this.ta.alignment=a,this.K())});w.defineProperty(Z,{BJ:"alternateNodeIndent"},function(){return this.ta.nodeIndent},function(a){this.ta.nodeIndent!==a&&(w.g(a,"number",Z,"alternateNodeIndent"),0<=a&&(this.ta.nodeIndent=a,this.K()))}); -w.defineProperty(Z,{CJ:"alternateNodeIndentPastParent"},function(){return this.ta.nodeIndentPastParent},function(a){this.ta.nodeIndentPastParent!==a&&(w.g(a,"number",Z,"alternateNodeIndentPastParent"),0<=a&&1>=a&&(this.ta.nodeIndentPastParent=a,this.K()))});w.defineProperty(Z,{DJ:"alternateNodeSpacing"},function(){return this.ta.nodeSpacing},function(a){this.ta.nodeSpacing!==a&&(w.g(a,"number",Z,"alternateNodeSpacing"),this.ta.nodeSpacing=a,this.K())}); -w.defineProperty(Z,{zJ:"alternateLayerSpacing"},function(){return this.ta.layerSpacing},function(a){this.ta.layerSpacing!==a&&(w.g(a,"number",Z,"alternateLayerSpacing"),this.ta.layerSpacing=a,this.K())});w.defineProperty(Z,{AJ:"alternateLayerSpacingParentOverlap"},function(){return this.ta.layerSpacingParentOverlap},function(a){this.ta.layerSpacingParentOverlap!==a&&(w.g(a,"number",Z,"alternateLayerSpacingParentOverlap"),0<=a&&1>=a&&(this.ta.layerSpacingParentOverlap=a,this.K()))}); -w.defineProperty(Z,{wJ:"alternateCompaction"},function(){return this.ta.compaction},function(a){this.ta.compaction!==a&&(w.Ca(a,Z,Z,"alternateCompaction"),a===Dr||a===Fr)&&(this.ta.compaction=a,this.K())});w.defineProperty(Z,{sJ:"alternateBreadthLimit"},function(){return this.ta.breadthLimit},function(a){this.ta.breadthLimit!==a&&(w.g(a,"number",Z,"alternateBreadthLimit"),0<=a&&(this.ta.breadthLimit=a,this.K()))}); -w.defineProperty(Z,{GJ:"alternateRowSpacing"},function(){return this.ta.rowSpacing},function(a){this.ta.rowSpacing!==a&&(w.g(a,"number",Z,"alternateRowSpacing"),this.ta.rowSpacing=a,this.K())});w.defineProperty(Z,{FJ:"alternateRowIndent"},function(){return this.ta.rowIndent},function(a){this.ta.rowIndent!==a&&(w.g(a,"number",Z,"alternateRowIndent"),0<=a&&(this.ta.rowIndent=a,this.K()))}); -w.defineProperty(Z,{vJ:"alternateCommentSpacing"},function(){return this.ta.commentSpacing},function(a){this.ta.commentSpacing!==a&&(w.g(a,"number",Z,"alternateCommentSpacing"),this.ta.commentSpacing=a,this.K())});w.defineProperty(Z,{uJ:"alternateCommentMargin"},function(){return this.ta.commentMargin},function(a){this.ta.commentMargin!==a&&(w.g(a,"number",Z,"alternateCommentMargin"),this.ta.commentMargin=a,this.K())}); -w.defineProperty(Z,{IJ:"alternateSetsPortSpot"},function(){return this.ta.setsPortSpot},function(a){this.ta.setsPortSpot!==a&&(w.g(a,"boolean",Z,"alternateSetsPortSpot"),this.ta.setsPortSpot=a,this.K())});w.defineProperty(Z,{EJ:"alternatePortSpot"},function(){return this.ta.portSpot},function(a){w.k(a,Q,Z,"alternatePortSpot");this.ta.portSpot.N(a)||(this.ta.portSpot=a,this.K())}); -w.defineProperty(Z,{HJ:"alternateSetsChildPortSpot"},function(){return this.ta.setsChildPortSpot},function(a){this.ta.setsChildPortSpot!==a&&(w.g(a,"boolean",Z,"alternateSetsChildPortSpot"),this.ta.setsChildPortSpot=a,this.K())});w.defineProperty(Z,{tJ:"alternateChildPortSpot"},function(){return this.ta.childPortSpot},function(a){w.k(a,Q,Z,"alternateChildPortSpot");this.ta.childPortSpot.N(a)||(this.ta.childPortSpot=a,this.K())});var Yq;Z.PathDefault=Yq=w.v(Z,"PathDefault",-1);var Zq; +w.defineProperty(Z,{childPortSpot:"childPortSpot"},function(){return this.va.childPortSpot},function(a){w.k(a,Q,Z,"childPortSpot");this.va.childPortSpot.N(a)||(this.va.childPortSpot=a,this.K())});w.defineProperty(Z,{LJ:"alternateSorting"},function(){return this.ta.sorting},function(a){this.ta.sorting!==a&&(w.Ca(a,Z,Z,"alternateSorting"),a===sr||a===tr||a===ur||vr)&&(this.ta.sorting=a,this.K())}); +w.defineProperty(Z,{zJ:"alternateComparer"},function(){return this.ta.comparer},function(a){this.ta.comparer!==a&&(w.g(a,"function",Z,"alternateComparer"),this.ta.comparer=a,this.K())});w.defineProperty(Z,{tJ:"alternateAngle"},function(){return this.ta.angle},function(a){this.ta.angle!==a&&(w.g(a,"number",Z,"alternateAngle"),0===a||90===a||180===a||270===a)&&(this.ta.angle=a,this.K())}); +w.defineProperty(Z,{sJ:"alternateAlignment"},function(){return this.ta.alignment},function(a){this.ta.alignment!==a&&(w.Ca(a,Z,Z,"alternateAlignment"),this.ta.alignment=a,this.K())});w.defineProperty(Z,{DJ:"alternateNodeIndent"},function(){return this.ta.nodeIndent},function(a){this.ta.nodeIndent!==a&&(w.g(a,"number",Z,"alternateNodeIndent"),0<=a&&(this.ta.nodeIndent=a,this.K()))}); +w.defineProperty(Z,{EJ:"alternateNodeIndentPastParent"},function(){return this.ta.nodeIndentPastParent},function(a){this.ta.nodeIndentPastParent!==a&&(w.g(a,"number",Z,"alternateNodeIndentPastParent"),0<=a&&1>=a&&(this.ta.nodeIndentPastParent=a,this.K()))});w.defineProperty(Z,{FJ:"alternateNodeSpacing"},function(){return this.ta.nodeSpacing},function(a){this.ta.nodeSpacing!==a&&(w.g(a,"number",Z,"alternateNodeSpacing"),this.ta.nodeSpacing=a,this.K())}); +w.defineProperty(Z,{BJ:"alternateLayerSpacing"},function(){return this.ta.layerSpacing},function(a){this.ta.layerSpacing!==a&&(w.g(a,"number",Z,"alternateLayerSpacing"),this.ta.layerSpacing=a,this.K())});w.defineProperty(Z,{CJ:"alternateLayerSpacingParentOverlap"},function(){return this.ta.layerSpacingParentOverlap},function(a){this.ta.layerSpacingParentOverlap!==a&&(w.g(a,"number",Z,"alternateLayerSpacingParentOverlap"),0<=a&&1>=a&&(this.ta.layerSpacingParentOverlap=a,this.K()))}); +w.defineProperty(Z,{yJ:"alternateCompaction"},function(){return this.ta.compaction},function(a){this.ta.compaction!==a&&(w.Ca(a,Z,Z,"alternateCompaction"),a===Dr||a===Fr)&&(this.ta.compaction=a,this.K())});w.defineProperty(Z,{uJ:"alternateBreadthLimit"},function(){return this.ta.breadthLimit},function(a){this.ta.breadthLimit!==a&&(w.g(a,"number",Z,"alternateBreadthLimit"),0<=a&&(this.ta.breadthLimit=a,this.K()))}); +w.defineProperty(Z,{IJ:"alternateRowSpacing"},function(){return this.ta.rowSpacing},function(a){this.ta.rowSpacing!==a&&(w.g(a,"number",Z,"alternateRowSpacing"),this.ta.rowSpacing=a,this.K())});w.defineProperty(Z,{HJ:"alternateRowIndent"},function(){return this.ta.rowIndent},function(a){this.ta.rowIndent!==a&&(w.g(a,"number",Z,"alternateRowIndent"),0<=a&&(this.ta.rowIndent=a,this.K()))}); +w.defineProperty(Z,{xJ:"alternateCommentSpacing"},function(){return this.ta.commentSpacing},function(a){this.ta.commentSpacing!==a&&(w.g(a,"number",Z,"alternateCommentSpacing"),this.ta.commentSpacing=a,this.K())});w.defineProperty(Z,{wJ:"alternateCommentMargin"},function(){return this.ta.commentMargin},function(a){this.ta.commentMargin!==a&&(w.g(a,"number",Z,"alternateCommentMargin"),this.ta.commentMargin=a,this.K())}); +w.defineProperty(Z,{KJ:"alternateSetsPortSpot"},function(){return this.ta.setsPortSpot},function(a){this.ta.setsPortSpot!==a&&(w.g(a,"boolean",Z,"alternateSetsPortSpot"),this.ta.setsPortSpot=a,this.K())});w.defineProperty(Z,{GJ:"alternatePortSpot"},function(){return this.ta.portSpot},function(a){w.k(a,Q,Z,"alternatePortSpot");this.ta.portSpot.N(a)||(this.ta.portSpot=a,this.K())}); +w.defineProperty(Z,{JJ:"alternateSetsChildPortSpot"},function(){return this.ta.setsChildPortSpot},function(a){this.ta.setsChildPortSpot!==a&&(w.g(a,"boolean",Z,"alternateSetsChildPortSpot"),this.ta.setsChildPortSpot=a,this.K())});w.defineProperty(Z,{vJ:"alternateChildPortSpot"},function(){return this.ta.childPortSpot},function(a){w.k(a,Q,Z,"alternateChildPortSpot");this.ta.childPortSpot.N(a)||(this.ta.childPortSpot=a,this.K())});var Yq;Z.PathDefault=Yq=w.v(Z,"PathDefault",-1);var Zq; Z.PathDestination=Zq=w.v(Z,"PathDestination",0);var fr;Z.PathSource=fr=w.v(Z,"PathSource",1);var sr;Z.SortingForwards=sr=w.v(Z,"SortingForwards",10);var tr;Z.SortingReverse=tr=w.v(Z,"SortingReverse",11);var ur;Z.SortingAscending=ur=w.v(Z,"SortingAscending",12);var vr;Z.SortingDescending=vr=w.v(Z,"SortingDescending",13);var Tr;Z.AlignmentCenterSubtrees=Tr=w.v(Z,"AlignmentCenterSubtrees",20);var wr;Z.AlignmentCenterChildren=wr=w.v(Z,"AlignmentCenterChildren",21);var Hr; Z.AlignmentStart=Hr=w.v(Z,"AlignmentStart",22);var Ir;Z.AlignmentEnd=Ir=w.v(Z,"AlignmentEnd",23);var yr;Z.AlignmentBus=yr=w.v(Z,"AlignmentBus",24);var nr;Z.AlignmentBusBranching=nr=w.v(Z,"AlignmentBusBranching",25);var zr;Z.AlignmentTopLeftBus=zr=w.v(Z,"AlignmentTopLeftBus",26);var Ar;Z.AlignmentBottomRightBus=Ar=w.v(Z,"AlignmentBottomRightBus",27);var Dr;Z.CompactionNone=Dr=w.v(Z,"CompactionNone",30);var Fr;Z.CompactionBlock=Fr=w.v(Z,"CompactionBlock",31);var $q; Z.StyleLayered=$q=w.v(Z,"StyleLayered",40);var rr;Z.StyleLastParents=rr=w.v(Z,"StyleLastParents",41);var qr;Z.StyleAlternating=qr=w.v(Z,"StyleAlternating",42);var pr;Z.StyleRootOnly=pr=w.v(Z,"StyleRootOnly",43);var br;Z.ArrangementVertical=br=w.v(Z,"ArrangementVertical",50);var gs;Z.ArrangementHorizontal=gs=w.v(Z,"ArrangementHorizontal",51);var er;Z.ArrangementFixedRoots=er=w.v(Z,"ArrangementFixedRoots",52);var ar;Z.LayerIndividual=ar=w.v(Z,"LayerIndividual",60);var lr; Z.LayerSiblings=lr=w.v(Z,"LayerSiblings",61);var kr;Z.LayerUniform=kr=w.v(Z,"LayerUniform",62);function dr(){Da.call(this)}w.Na(dr,Da);w.la("TreeNetwork",dr);dr.prototype.createVertex=function(){return new cr};dr.prototype.createEdge=function(){return new is}; -function cr(){Ga.call(this);this.initialized=!1;this.parent=null;this.children=[];this.maxGenerationCount=this.maxChildrenCount=this.descendantCount=this.level=0;this.comments=null;this.oa=new I(0,0);this.gb=new pa(0,0);this.Oa=new I(0,0);this.yp=this.xp=this.MI=!1;this.Dt=this.kt=null;this.sorting=sr;this.comparer=kp;this.angle=0;this.alignment=wr;this.nodeIndentPastParent=this.nodeIndent=0;this.nodeSpacing=20;this.layerSpacing=50;this.layerSpacingParentOverlap=0;this.compaction=Fr;this.breadthLimit= +function cr(){Ga.call(this);this.initialized=!1;this.parent=null;this.children=[];this.maxGenerationCount=this.maxChildrenCount=this.descendantCount=this.level=0;this.comments=null;this.oa=new I(0,0);this.gb=new pa(0,0);this.Oa=new I(0,0);this.yp=this.xp=this.OI=!1;this.Dt=this.kt=null;this.sorting=sr;this.comparer=kp;this.angle=0;this.alignment=wr;this.nodeIndentPastParent=this.nodeIndent=0;this.nodeSpacing=20;this.layerSpacing=50;this.layerSpacingParentOverlap=0;this.compaction=Fr;this.breadthLimit= 0;this.rowSpacing=25;this.commentSpacing=this.rowIndent=10;this.commentMargin=20;this.setsPortSpot=!0;this.portSpot=Pc;this.setsChildPortSpot=!0;this.childPortSpot=Pc}w.Na(cr,Ga);w.la("TreeVertex",cr); cr.prototype.copyInheritedPropertiesFrom=function(a){null!==a&&(this.sorting=a.sorting,this.comparer=a.comparer,this.angle=a.angle,this.alignment=a.alignment,this.nodeIndent=a.nodeIndent,this.nodeIndentPastParent=a.nodeIndentPastParent,this.nodeSpacing=a.nodeSpacing,this.layerSpacing=a.layerSpacing,this.layerSpacingParentOverlap=a.layerSpacingParentOverlap,this.compaction=a.compaction,this.breadthLimit=a.breadthLimit,this.rowSpacing=a.rowSpacing,this.rowIndent=a.rowIndent,this.commentSpacing=a.commentSpacing, -this.commentMargin=a.commentMargin,this.setsPortSpot=a.setsPortSpot,this.portSpot=a.portSpot,this.setsChildPortSpot=a.setsChildPortSpot,this.childPortSpot=a.childPortSpot)};w.w(cr,{Lm:"childrenCount"},function(){return this.children.length});w.defineProperty(cr,{eL:"relativePosition"},function(){return this.oa},function(a){this.oa.set(a)});w.defineProperty(cr,{oL:"subtreeSize"},function(){return this.gb},function(a){this.gb.set(a)}); -w.defineProperty(cr,{nL:"subtreeOffset"},function(){return this.Oa},function(a){this.Oa.set(a)});function is(){Ia.call(this);this.Fr=new I(0,0)}w.Na(is,Ia);w.la("TreeEdge",is); -is.prototype.commit=function(){var a=this.link;if(null!==a&&!a.Yi){var b=this.network.Tb,c=null,d=null;switch(b.Hf){case Zq:c=this.fromVertex;d=this.toVertex;break;case fr:c=this.toVertex;d=this.fromVertex;break;default:w.l("Unhandled path value "+b.Hf.toString())}if(null!==c&&null!==d)if(b=this.Fr,0!==b.x||0!==b.y||c.MI){var d=c.ub,e=Gr(c),g=Jr(c),h=c.rowSpacing;a.updateRoute();var k=a.df===th,l=a.jc,m=0,n,p;a.Jl();if(l||k){for(m=2;4q.y+c.rowIndent&&(r=Math.min(r,Math.max(n.y,r-Kr(c))))):c.alignment===Hr?(r=d.top+b.y,0===b.y&&n.yq.x+c.rowIndent&&(r=Math.min(r,Math.max(n.x,r-Kr(c))))):c.alignment===Hr?(r=d.left+b.x,0===b.x&&n.xq.y+c.rowIndent&&(r=Math.min(r,Math.max(n.y,r-Kr(c))))):c.alignment===Hr?(r=d.top+b.y,0===b.y&&n.yl?h=null:(m=parseFloat(n.getAttribute("cx")),isNaN(m)&&(m=0),n=parseFloat(n.getAttribute("cy")),isNaN(n)&&(n=0),p=new sd(yd),p.za=0,p.Aa=0,p.H=2*l,p.I=2*l,h.position=new I(m-l,n-l),h.nd=p);break;case "ellipse":p=g;h=new Y;l=parseFloat(p.getAttribute("rx"));isNaN(l)||0>l?h=null:(m=parseFloat(p.getAttribute("ry")),isNaN(m)||0>m?h=null:(n=parseFloat(p.getAttribute("cx")),isNaN(n)&&(n=0),p=parseFloat(p.getAttribute("cy")), -isNaN(p)&&(p=0),q=new sd(yd),q.za=0,q.Aa=0,q.H=2*l,q.I=2*m,h.position=new I(n-l,p-m),h.nd=q));break;case "rect":q=g;h=new Y;l=parseFloat(q.getAttribute("width"));if(isNaN(l)||0>l)h=null;else if(m=parseFloat(q.getAttribute("height")),isNaN(m)||0>m)h=null;else{n=parseFloat(q.getAttribute("x"));isNaN(n)&&(n=0);p=parseFloat(q.getAttribute("y"));isNaN(p)&&(p=0);var r=q.getAttribute("rx"),s=q.getAttribute("ry"),q=parseFloat(r);if(isNaN(q)||0>q)q=0;var t=parseFloat(s);if(isNaN(t)||0>t)t=0;null!==r&&""!== -r||null===s||""===s?null===r||""===r||null!==s&&""!==s||(t=q):q=t;q=Math.min(q,l/2);t=Math.min(t,m/2);s=void 0;0===q&&0===t?(s=new sd(xd),s.za=0,s.Aa=0,s.H=l,s.I=m):(s=O.xa/2,r=w.s(),R(r,q,0,!0),r.lineTo(l-q,0),S(r,l-q*s,0,l,t*s,l,t),r.lineTo(l,m-t),S(r,l,m-t*s,l-q*s,m,l-q,m),r.lineTo(q,m),S(r,q*s,m,0,m-t*s,0,m-t),r.lineTo(0,t),S(r,0,t*s,q*s,0,q,0),U(r),s=r.q,w.u(r));h.position=new I(n,p);h.nd=s}break;case "polygon":h=ns(g);break;case "polyline":h=ns(g)}if(null!==h){if(h instanceof Y){m=h;l=ks(a, -g,"fill");null!==l&&-1!==l.indexOf("url")?(l=l.substring(l.indexOf("#")+1,l.length-1),l=a["_brush"+l],m.fill=l instanceof oa?l:"black"):m.fill=null===l?"black":"none"===l?null:l;l=ks(a,g,"stroke");null!==l&&-1!==l.indexOf("url")?(l=l.substring(l.indexOf("#")+1,l.length-1),l=a["_brush"+l],m.stroke=l instanceof oa?l:"black"):m.stroke="none"===l?null:l;l=parseFloat(ks(a,g,"stroke-width"));isNaN(l)||(m.pb=l);l=ks(a,g,"stroke-linecap");null!==l&&(m.bJ=l);l=ks(a,g,"stroke-dasharray");if(null!==l&&""!== -l){n=l.split(",");p=[];for(l=0;ll?h=null:(m=parseFloat(n.getAttribute("cx")),isNaN(m)&&(m=0),n=parseFloat(n.getAttribute("cy")),isNaN(n)&&(n=0),p=new sd(yd),p.za=0,p.Aa=0,p.H=2*l,p.I=2*l,h.position=new I(m-l,n-l),h.od=p);break;case "ellipse":p=g;h=new Y;l=parseFloat(p.getAttribute("rx"));isNaN(l)||0>l?h=null:(m=parseFloat(p.getAttribute("ry")),isNaN(m)||0>m?h=null:(n=parseFloat(p.getAttribute("cx")),isNaN(n)&&(n=0),p=parseFloat(p.getAttribute("cy")), +isNaN(p)&&(p=0),q=new sd(yd),q.za=0,q.Aa=0,q.H=2*l,q.I=2*m,h.position=new I(n-l,p-m),h.od=q));break;case "rect":q=g;h=new Y;l=parseFloat(q.getAttribute("width"));if(isNaN(l)||0>l)h=null;else if(m=parseFloat(q.getAttribute("height")),isNaN(m)||0>m)h=null;else{n=parseFloat(q.getAttribute("x"));isNaN(n)&&(n=0);p=parseFloat(q.getAttribute("y"));isNaN(p)&&(p=0);var r=q.getAttribute("rx"),s=q.getAttribute("ry"),q=parseFloat(r);if(isNaN(q)||0>q)q=0;var t=parseFloat(s);if(isNaN(t)||0>t)t=0;null!==r&&""!== +r||null===s||""===s?null===r||""===r||null!==s&&""!==s||(t=q):q=t;q=Math.min(q,l/2);t=Math.min(t,m/2);s=void 0;0===q&&0===t?(s=new sd(xd),s.za=0,s.Aa=0,s.H=l,s.I=m):(s=O.xa/2,r=w.s(),R(r,q,0,!0),r.lineTo(l-q,0),S(r,l-q*s,0,l,t*s,l,t),r.lineTo(l,m-t),S(r,l,m-t*s,l-q*s,m,l-q,m),r.lineTo(q,m),S(r,q*s,m,0,m-t*s,0,m-t),r.lineTo(0,t),S(r,0,t*s,q*s,0,q,0),U(r),s=r.q,w.u(r));h.position=new I(n,p);h.od=s}break;case "polygon":h=ns(g);break;case "polyline":h=ns(g)}if(null!==h){if(h instanceof Y){m=h;l=ks(a, +g,"fill");null!==l&&-1!==l.indexOf("url")?(l=l.substring(l.indexOf("#")+1,l.length-1),l=a["_brush"+l],m.fill=l instanceof oa?l:"black"):m.fill=null===l?"black":"none"===l?null:l;l=ks(a,g,"stroke");null!==l&&-1!==l.indexOf("url")?(l=l.substring(l.indexOf("#")+1,l.length-1),l=a["_brush"+l],m.stroke=l instanceof oa?l:"black"):m.stroke="none"===l?null:l;l=parseFloat(ks(a,g,"stroke-width"));isNaN(l)||(m.pb=l);l=ks(a,g,"stroke-linecap");null!==l&&(m.dJ=l);l=ks(a,g,"stroke-dasharray");if(null!==l&&""!== +l){n=l.split(",");p=[];for(l=0;lg.length)return null;for(var d=null,h=new K(ee),k=1;k=a.length?a.push(c):a.splice(b,0,c):u.k("Cannot insert an object into an HTMLCollection or NodeList: "+c+" at "+b)},zi:function(a,b){Array.isArray(a)?b>=a.length?a.pop():a.splice(b,1):u.k("Cannot remove an object from an HTMLCollection or NodeList at "+b)},Ww:[],K:function(){var a=u.Ww.pop();return void 0===a?new w:a},fc:function(a,b){var c=u.Ww.pop();if(void 0===c)return new w(a,b);c.x=a;c.y=b;return c},v:function(a){u.Ww.push(a)},xA:[],ul:function(){var a=u.xA.pop();return void 0=== -a?new ia:a},Oj:function(a){u.xA.push(a)},Xw:[],Sf:function(){var a=u.Xw.pop();return void 0===a?new z:a},Vj:function(a,b,c,d){var e=u.Xw.pop();if(void 0===e)return new z(a,b,c,d);e.x=a;e.y=b;e.width=c;e.height=d;return e},ic:function(a){u.Xw.push(a)},yA:[],jh:function(){var a=u.yA.pop();return void 0===a?new ja:a},Ye:function(a){u.yA.push(a)},Yw:null,p:function(){var a=u.Yw;return null!==a?(u.Yw=null,a):new ka},q:function(a){a.reset();u.Yw=a},wA:[],eb:function(){var a=u.wA.pop();return void 0===a? -[]:a},ra:function(a){a.length=0;u.wA.push(a)},mh:Object.freeze([]),zA:1,gc:function(a){a.__gohashid=u.zA++},Is:function(a){var b=a.__gohashid;void 0===b&&(b=u.zA++,a.__gohashid=b);return b},Uc:function(a){return a.__gohashid},fa:function(a,b){b.hx=a;da[a]=b},Ga:function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},Lh:function(a){a.AF=!0},defineProperty:function(a,b,c,d,e){u.j(a,"function","Util.defineProperty:classfunc");u.j(b,"object","Util.defineProperty:propobj"); -u.j(c,"function","Util.defineProperty:getter");u.j(d,"function","Util.defineProperty:setter");for(var f in b){b=b[f];c={get:c,set:d};if(void 0!==e)for(var h in e)c[h]=e[h];Object.defineProperty(a.prototype,f,c);e=Object.getOwnPropertyDescriptor(a.prototype,f);b&&e&&Object.defineProperty(a.prototype,b,e);break}},u:function(a,b,c,d){u.j(a,"function","Util.defineReadOnlyProperty:classfunc");u.j(b,"object","Util.defineReadOnlyProperty:propobj");u.j(c,"function","Util.defineReadOnlyProperty:getter");for(var e in b){var f= -b[e];b={get:c,set:function(a){u.k('The property "'+f+'" is read-only and cannot be set to '+a)}};if(void 0!==d)for(var h in d)b[h]=d[h];Object.defineProperty(a.prototype,e,b);d=Object.getOwnPropertyDescriptor(a.prototype,e);f&&d&&Object.defineProperty(a.prototype,f,d);break}},Xd:function(a,b){for(var c in b)b[c]=!0;a.prototype.UB=b},getTypeName:function(a){return void 0===a?"":"string"===typeof a?a:"function"===typeof a?u.rg(a):null===a?"*":""},rg:function(a){if("function"===typeof a){if(a.hx)return a.hx; -if(a.name)return a.name;var b=a.toString(),c=b.indexOf("("),b=b.substring(9,c).trim();if(""!==b)return a.hx=b}else if("object"===typeof a&&a.constructor)return u.rg(a.constructor);return typeof a},s:function(a,b,c){u.j(a,"function","Util.defineEnumValue:classfunc");u.j(b,"string","Util.defineEnumValue:name");u.j(c,"number","Util.defineEnumValue:num");c=new ea(a,b,c);Object.freeze(c);a[b]=c;var d=a.Dt;d instanceof la||(d=new la("string",ea),a.Dt=d);d.add(b,c);return c},sb:function(a,b){if(!a||!b)return null; -var c=void 0;try{"function"===typeof b?c=b(a):"function"===typeof a.getAttribute?(c=a.getAttribute(b),null===c&&(c=void 0)):c=a[b]}catch(d){}return c},Oa:function(a,b,c){if(a&&b)try{"function"===typeof b?b(a,c):"function"===typeof a.setAttribute?a.setAttribute(b,c):a[b]=c}catch(d){}},ot:function(a,b){u.j(a,"object","Setting properties requires Objects as arguments");u.j(b,"object","Setting properties requires Objects as arguments");var c=a instanceof A,d=a instanceof D,e;for(e in b){""===e&&u.k("Setting properties requires non-empty property names"); -var f=a,h=e;if(c||d){var k=e.indexOf(".");if(0=d.length)){var e=u.sb(b,d);null===e||"function"=== -typeof e||u.jz(b,d)||(""===c&&(c=b+"\n"),c+=' unknown property "'+d+'" has value: '+e+" at "+a+"\n")}return c},Kv:function(a,b){if(null!==b&&"number"!==typeof b&&"string"!==typeof b&&"boolean"!==typeof b&&"function"!==typeof b)if(void 0!==u.Uc(b)){if(!u.bv.contains(b))if(u.bv.add(b),u.Ju.add(u.VC(a,b)),b instanceof E||b instanceof F||b instanceof la)for(var c=b.i;c.next();)u.Kv(a+"["+c.key+"]",c.value);else for(c in b){var d=u.sb(b,c);if(void 0!==d&&null!==d&&u.Sa(d)&&d!==b.UB){if(b instanceof qa){if(d=== -b.ej)continue}else if(b instanceof A){if("data"===c||d===b.qh)continue;if("itemArray"===c||d===b.gi)continue;if(b instanceof G&&d===b.Bk)continue}else if(!(b instanceof D))if(b instanceof sa){if("archetypeGroupData"===c||d===b.ax)continue}else if(b instanceof ta){if("archetypeLinkData"===c||d===b.ex)continue;if("archetypeLabelNodeData"===c||d===b.bx)continue}else if(b instanceof va){if("archetypeNodeData"===c||d===b.ik)continue}else if(b instanceof J){if("nodeDataArray"===c||d===b.mf)continue;if("linkDataArray"=== -c||d===b.Bh||d===b.Rl)continue;if(d===b.tc)continue;if(d===b.uh)continue}else if(b instanceof xa||b instanceof ya||b instanceof Aa)continue;u.Kv(a+"."+c,d)}}}else if(Array.isArray(b))for(c=0;cc;c++)b[c]=c;for(var d=0,e=0,c=0;256>c;c++)d=(d+b[c]+119)%256,e=b[c],b[c]=b[d],b[d]=e; -for(var d=c=0,f="",h=0;hc;c++)b["0123456789abcdef".charAt(c>>4)+"0123456789abcdef".charAt(c&15)]=String.fromCharCode(c);a.length%2&&(a="0"+a);for(var d=[],e=0,c=0;c=a.length?a.push(c):a.splice(b,0,c):u.k("Cannot insert an object into an HTMLCollection or NodeList: "+c+" at "+b)},zi:function(a,b){Array.isArray(a)?b>=a.length?a.pop():a.splice(b,1):u.k("Cannot remove an object from an HTMLCollection or NodeList at "+b)},Ww:[],K:function(){var a=u.Ww.pop();return void 0===a?new w:a},fc:function(a,b){var c=u.Ww.pop();if(void 0===c)return new w(a,b);c.x=a;c.y=b;return c},v:function(a){u.Ww.push(a)}, +xA:[],ul:function(){var a=u.xA.pop();return void 0===a?new ia:a},Oj:function(a){u.xA.push(a)},Xw:[],Sf:function(){var a=u.Xw.pop();return void 0===a?new z:a},Vj:function(a,b,c,d){var e=u.Xw.pop();if(void 0===e)return new z(a,b,c,d);e.x=a;e.y=b;e.width=c;e.height=d;return e},ic:function(a){u.Xw.push(a)},yA:[],jh:function(){var a=u.yA.pop();return void 0===a?new ja:a},Ye:function(a){u.yA.push(a)},Yw:null,p:function(){var a=u.Yw;return null!==a?(u.Yw=null,a):new ka},q:function(a){a.reset();u.Yw=a},wA:[], +eb:function(){var a=u.wA.pop();return void 0===a?[]:a},ra:function(a){a.length=0;u.wA.push(a)},mh:Object.freeze([]),zA:1,gc:function(a){a.__gohashid=u.zA++},Is:function(a){var b=a.__gohashid;void 0===b&&(b=u.zA++,a.__gohashid=b);return b},Uc:function(a){return a.__gohashid},fa:function(a,b){b.hx=a;da[a]=b},Ga:function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},Mh:function(a){a.AF=!0},defineProperty:function(a,b,c,d,e){u.j(a,"function","Util.defineProperty:classfunc"); +u.j(b,"object","Util.defineProperty:propobj");u.j(c,"function","Util.defineProperty:getter");u.j(d,"function","Util.defineProperty:setter");for(var f in b){b=b[f];c={get:c,set:d};if(void 0!==e)for(var h in e)c[h]=e[h];Object.defineProperty(a.prototype,f,c);e=Object.getOwnPropertyDescriptor(a.prototype,f);b&&e&&Object.defineProperty(a.prototype,b,e);break}},FI:!1,u:function(a,b,c,d){u.j(a,"function","Util.defineReadOnlyProperty:classfunc");u.j(b,"object","Util.defineReadOnlyProperty:propobj");u.j(c, +"function","Util.defineReadOnlyProperty:getter");for(var e in b){var f=b[e];b={get:c,set:function(a){u.k('The property "'+f+'" is read-only and cannot be set to '+a)}};if(void 0!==d)for(var h in d)b[h]=d[h];Object.defineProperty(a.prototype,e,b);d=Object.getOwnPropertyDescriptor(a.prototype,e);f&&d&&Object.defineProperty(a.prototype,f,d);break}},Xd:function(a,b){for(var c in b)b[c]=!0;a.prototype.UB=b},getTypeName:function(a){return void 0===a?"":"string"===typeof a?a:"function"===typeof a?u.rg(a): +null===a?"*":""},rg:function(a){if("function"===typeof a){if(a.hx)return a.hx;if(a.name)return a.name;var b=a.toString(),c=b.indexOf("("),b=b.substring(9,c).trim();if(""!==b)return a.hx=b}else if("object"===typeof a&&a.constructor)return u.rg(a.constructor);return typeof a},s:function(a,b,c){u.j(a,"function","Util.defineEnumValue:classfunc");u.j(b,"string","Util.defineEnumValue:name");u.j(c,"number","Util.defineEnumValue:num");c=new ea(a,b,c);Object.freeze(c);a[b]=c;var d=a.Dt;d instanceof la||(d= +new la("string",ea),a.Dt=d);d.add(b,c);return c},sb:function(a,b){if(!a||!b)return null;var c=void 0;try{"function"===typeof b?c=b(a):"function"===typeof a.getAttribute?(c=a.getAttribute(b),null===c&&(c=void 0)):c=a[b]}catch(d){}return c},Oa:function(a,b,c){if(a&&b)try{"function"===typeof b?b(a,c):"function"===typeof a.setAttribute?a.setAttribute(b,c):a[b]=c}catch(d){}},ot:function(a,b){u.j(a,"object","Setting properties requires Objects as arguments");u.j(b,"object","Setting properties requires Objects as arguments"); +var c=a instanceof A,d=a instanceof D,e;for(e in b){""===e&&u.k("Setting properties requires non-empty property names");var f=a,h=e;if(c||d){var k=e.indexOf(".");if(0=d.length)){var e=u.sb(b,d);null===e||"function"===typeof e||u.jz(b,d)||(""===c&&(c=b+"\n"),c+=' unknown property "'+d+'" has value: '+e+" at "+a+"\n")}return c},Kv:function(a,b){if(null!==b&&"number"!==typeof b&&"string"!==typeof b&&"boolean"!==typeof b&&"function"!==typeof b)if(void 0!==u.Uc(b)){if(!u.bv.contains(b))if(u.bv.add(b),u.Ju.add(u.VC(a,b)),b instanceof E||b instanceof F||b instanceof la)for(var c=b.i;c.next();)u.Kv(a+ +"["+c.key+"]",c.value);else for(c in b){var d=u.sb(b,c);if(void 0!==d&&null!==d&&u.Sa(d)&&d!==b.UB){if(b instanceof qa){if(d===b.ej)continue}else if(b instanceof A){if("data"===c||d===b.rh)continue;if("itemArray"===c||d===b.gi)continue;if(b instanceof G&&d===b.Bk)continue}else if(!(b instanceof D))if(b instanceof sa){if("archetypeGroupData"===c||d===b.ax)continue}else if(b instanceof ta){if("archetypeLinkData"===c||d===b.ex)continue;if("archetypeLabelNodeData"===c||d===b.bx)continue}else if(b instanceof +va){if("archetypeNodeData"===c||d===b.ik)continue}else if(b instanceof J){if("nodeDataArray"===c||d===b.mf)continue;if("linkDataArray"===c||d===b.Ch||d===b.Rl)continue;if(d===b.tc)continue;if(d===b.vh)continue}else if(b instanceof xa||b instanceof ya||b instanceof Aa)continue;u.Kv(a+"."+c,d)}}}else if(Array.isArray(b))for(c=0;cc;c++)b[c]=c;for(var d=0,e=0,c=0;256>c;c++)d=(d+b[c]+119)%256,e=b[c],b[c]=b[d],b[d]=e;for(var d=c=0,f="",h=0;hc;c++)b["0123456789abcdef".charAt(c>>4)+"0123456789abcdef".charAt(c&15)]=String.fromCharCode(c);a.length%2&&(a="0"+a);for(var d=[],e=0,c=0;cd;d++)b[u.Da("7ca11abfd7330390")](u.Da(c[d-1]),10,15*d+0);b[u.Da("7ca11abfd022028846")]=u.Da("39f046ebb36e4b");for(d=1;5>d;d++)b[u.Da("7ca11abfd7330390")](u.Da(c[d- 1]),10,15*d+0);if(4!==c.length||"5"!==c[0][0]||"7"!==c[3][0])u.s=function(a,b){var c=new ea(a,b,2);Object.freeze(c);a[b]=c;var d=a.Dt;d instanceof la||(d=new la("string",ea),a.Dt=d);d.add(b,c);return c};return a}();function ea(a,b,c){u.gc(this);this.HA=a;this.Ub=b;this.FF=c}ea.prototype.toString=function(){return u.rg(this.HA)+"."+this.Ub};u.u(ea,{Ae:"classType"},function(){return this.HA});u.u(ea,{name:"name"},function(){return this.Ub});u.u(ea,{value:"value"},function(){return this.FF});var Da; ea.findName=Da=function(a,b){if(null===b||""===b)return null;u.j(a,"function","findName:classfunc");u.j(b,"string","EnumValue.findName:name");var c=a.Dt;return c instanceof la?c.ta(b):null};function Ba(){this.FA=[]}Ba.prototype.toString=function(){return this.FA.join("")};Ba.prototype.add=function(a){""!==a&&this.FA.push(a)};function pa(){} @@ -47,7 +48,7 @@ E.prototype.addAll=E.prototype.Td=function(a){if(null===a)return this;u.I(this); E.prototype.indexOf=E.prototype.indexOf=function(a){return null===a?-1:this.n.indexOf(a)};E.prototype.elt=E.prototype.get=E.prototype.ja=function(a){var b=this.n;(0>a||a>=b.length)&&u.wa(a,"0 <= i < length",E,"elt:i");return b[a]};E.prototype.setElt=E.prototype.set=E.prototype.Bg=function(a,b){var c=this.n;(0>a||a>=c.length)&&u.wa(a,"0 <= i < length",E,"setElt:i");u.I(this,a);c[a]=b};E.prototype.first=E.prototype.first=function(){var a=this.n;return 0===a.length?null:a[0]}; E.prototype.last=E.prototype.Gd=function(){var a=this.n,b=a.length;return 0a&&u.wa(a,">= 0",E,"insertAt:i");u.I(this,a);var c=this.n;a>=c.length?c.push(b):c.splice(a,0,b);this.Pd();return!0};E.prototype.remove=E.prototype["delete"]=E.prototype.remove=function(a){if(null===a)return!1;u.I(this,a);var b=this.n;a=b.indexOf(a);if(-1===a)return!1;a===b.length-1?b.pop():b.splice(a,1);this.Pd();return!0}; -E.prototype.removeAt=E.prototype.hd=function(a){var b=this.n;(0>a||a>=b.length)&&u.wa(a,"0 <= i < length",E,"removeAt:i");u.I(this,a);a===b.length-1?b.pop():b.splice(a,1);this.Pd()};E.prototype.removeRange=E.prototype.removeRange=function(a,b){var c=this.n;(0>a||a>=c.length)&&u.wa(a,"0 <= from < length",E,"elt:from");(0>b||b>=c.length)&&u.wa(b,"0 <= to < length",E,"elt:to");u.I(this,a);var d=c.slice((b||a)+1||c.length);c.length=0>a?c.length+a:a;c.push.apply(c,d);this.Pd()}; +E.prototype.removeAt=E.prototype.jd=function(a){var b=this.n;(0>a||a>=b.length)&&u.wa(a,"0 <= i < length",E,"removeAt:i");u.I(this,a);a===b.length-1?b.pop():b.splice(a,1);this.Pd()};E.prototype.removeRange=E.prototype.removeRange=function(a,b){var c=this.n;(0>a||a>=c.length)&&u.wa(a,"0 <= from < length",E,"elt:from");(0>b||b>=c.length)&&u.wa(b,"0 <= to < length",E,"elt:to");u.I(this,a);var d=c.slice((b||a)+1||c.length);c.length=0>a?c.length+a:a;c.push.apply(c,d);this.Pd()}; E.prototype.copy=function(){for(var a=new E(this.oa),b=this.n,c=this.count,d=0;d=f)return this;(0>b||b>=e-1)&&u.wa(b,"0 <= from < length",E,"sortRange:from");if(2===f)return c=d[b],e=d[b+1],0=e)d.sort(a);else for(f=d.slice(0,c),f.sort(a),a=0;a=e)for(f=d.slice(b),f.sort(a),a=b;a=this.n.length)return Ia;var a=this.wd;return null!==a?(a.reset(),a):new Ka(this)}); @@ -55,14 +56,14 @@ u.u(E,{Fm:"iteratorBackwards"},function(){if(0>=this.n.length)return Ia;var a=th Ma.prototype.next=Ma.prototype.hasNext=Ma.prototype.next=function(){var a=this.Gk;if(a.U!==this.Xa){if(null===this.key)return!1;u.Mb(a)}var b=this.Cb,b=null===b?a.bb:b.Sb;if(null!==b)return this.Cb=b,this.value=b.value,this.key=b.key,!0;this.Vf();return!1};Ma.prototype.first=Ma.prototype.first=function(){var a=this.Gk;this.Xa=a.U;a=a.bb;if(null!==a){this.Cb=a;var b=a.value;this.key=a.key;return this.value=b}return null}; Ma.prototype.any=function(a){var b=this.Gk;b.wd=null;var c=b.U;this.Cb=null;for(var d=b.bb;null!==d;){if(a(d.value))return!0;b.U!==c&&u.Mb(b);d=d.Sb}return!1};Ma.prototype.all=function(a){var b=this.Gk;b.wd=null;var c=b.U;this.Cb=null;for(var d=b.bb;null!==d;){if(!a(d.value))return!1;b.U!==c&&u.Mb(b);d=d.Sb}return!0};Ma.prototype.each=function(a){var b=this.Gk;b.wd=null;var c=b.U;this.Cb=null;for(var d=b.bb;null!==d;)a(d.value),b.U!==c&&u.Mb(b),d=d.Sb};u.u(Ma,{count:"count"},function(){return this.Gk.Zc}); Ma.prototype.Vf=function(){this.value=this.key=null;this.Xa=-1;this.Gk.wd=this};Ma.prototype.toString=function(){return null!==this.Cb?"SetIterator@"+this.Cb.value:"SetIterator"}; -function F(a){u.gc(this);this.Ca=!1;void 0===a||null===a?this.oa=null:"string"===typeof a?"object"===a||"string"===a||"number"===a?this.oa=a:u.wa(a,"the string 'object', 'number' or 'string'","Set constructor: type"):"function"===typeof a?this.oa=a===Object?"object":a===String?"string":a===Number?"number":a:u.wa(a,"null, a primitive type name, or a class type","Set constructor: type");this.$c={};this.Zc=0;this.wd=null;this.U=0;this.Ah=this.bb=null}u.fa("Set",F); +function F(a){u.gc(this);this.Ca=!1;void 0===a||null===a?this.oa=null:"string"===typeof a?"object"===a||"string"===a||"number"===a?this.oa=a:u.wa(a,"the string 'object', 'number' or 'string'","Set constructor: type"):"function"===typeof a?this.oa=a===Object?"object":a===String?"string":a===Number?"number":a:u.wa(a,"null, a primitive type name, or a class type","Set constructor: type");this.$c={};this.Zc=0;this.wd=null;this.U=0;this.Bh=this.bb=null}u.fa("Set",F); F.prototype.Pd=function(){var a=this.U;a++;999999999=this.Zc)return Ia;var a=this.wd;return null!==a?(a.reset(),a):new Ma(this)});function Qa(a){this.Wa=a;this.reset()}u.Xd(Qa,{key:!0,value:!0});u.u(Qa,{i:"iterator"},function(){return this});Qa.prototype.reset=Qa.prototype.reset=function(){this.Xa=this.Wa.U;this.Cb=null}; Qa.prototype.next=Qa.prototype.hasNext=Qa.prototype.next=function(){var a=this.Wa;if(a.U!==this.Xa){if(null===this.key)return!1;u.Mb(a)}var b=this.Cb,b=null===b?a.bb:b.Sb;if(null!==b)return this.Cb=b,this.value=this.key=a=b.key,!0;this.Vf();return!1};Qa.prototype.first=Qa.prototype.first=function(){var a=this.Wa;this.Xa=a.U;a=a.bb;return null!==a?(this.Cb=a,this.value=this.key=a=a.key):null}; Qa.prototype.any=function(a){var b=this.Wa,c=b.U;this.Cb=null;for(var d=b.bb;null!==d;){if(a(d.key))return!0;b.U!==c&&u.Mb(b);d=d.Sb}return!1};Qa.prototype.all=function(a){var b=this.Wa,c=b.U;this.Cb=null;for(var d=b.bb;null!==d;){if(!a(d.key))return!1;b.U!==c&&u.Mb(b);d=d.Sb}return!0};Qa.prototype.each=function(a){var b=this.Wa,c=b.U;this.Cb=null;for(var d=b.bb;null!==d;)a(d.key),b.U!==c&&u.Mb(b),d=d.Sb};u.u(Qa,{count:"count"},function(){return this.Wa.Zc}); @@ -78,14 +79,14 @@ Ua.prototype.reset=Ua.prototype.reset=function(){var a=this.Wa;a.wd=null;this.Xa Ua.prototype.first=Ua.prototype.first=function(){var a=this.Wa;this.Xa=a.U;a=a.bb;return null!==a?(this.Cb=a,this.key=a.key,this.value=a.value,a):null};Ua.prototype.any=function(a){var b=this.Wa;b.wd=null;var c=b.U;this.Cb=null;for(var d=b.bb;null!==d;){if(a(d))return!0;b.U!==c&&u.Mb(b);d=d.Sb}return!1};Ua.prototype.all=function(a){var b=this.Wa;b.wd=null;var c=b.U;this.Cb=null;for(var d=b.bb;null!==d;){if(!a(d))return!1;b.U!==c&&u.Mb(b);d=d.Sb}return!0}; Ua.prototype.each=function(a){var b=this.Wa;b.wd=null;var c=b.U;this.Cb=null;for(var d=b.bb;null!==d;)a(d),b.U!==c&&u.Mb(b),d=d.Sb};u.u(Ua,{count:"count"},function(){return this.Wa.Zc});Ua.prototype.Vf=function(){this.value=this.key=null;this.Xa=-1;this.Wa.wd=this};Ua.prototype.toString=function(){return null!==this.Cb?"MapIterator@"+this.Cb:"MapIterator"}; function la(a,b){u.gc(this);this.Ca=!1;void 0===a||null===a?this.wq=null:"string"===typeof a?"object"===a||"string"===a||"number"===a?this.wq=a:u.wa(a,"the string 'object', 'number' or 'string'","Map constructor: keytype"):"function"===typeof a?this.wq=a===Object?"object":a===String?"string":a===Number?"number":a:u.wa(a,"null, a primitive type name, or a class type","Map constructor: keytype");void 0===b||null===b?this.tv=null:"string"===typeof b?"object"===b||"string"===b||"boolean"===b||"number"=== -b||"function"===b?this.tv=b:u.wa(b,"the string 'object', 'number', 'string', 'boolean', or 'function'","Map constructor: valtype"):"function"===typeof b?this.tv=b===Object?"object":b===String?"string":b===Number?"number":b===Boolean?"boolean":b===Function?"function":b:u.wa(b,"null, a primitive type name, or a class type","Map constructor: valtype");this.$c={};this.Zc=0;this.Jn=this.wd=null;this.U=0;this.Ah=this.bb=null}u.fa("Map",la); +b||"function"===b?this.tv=b:u.wa(b,"the string 'object', 'number', 'string', 'boolean', or 'function'","Map constructor: valtype"):"function"===typeof b?this.tv=b===Object?"object":b===String?"string":b===Number?"number":b===Boolean?"boolean":b===Function?"function":b:u.wa(b,"null, a primitive type name, or a class type","Map constructor: valtype");this.$c={};this.Zc=0;this.Jn=this.wd=null;this.U=0;this.Bh=this.bb=null}u.fa("Map",la); la.prototype.Pd=function(){var a=this.U;a++;999999999=this.count)return Ia;var a=this.wd;return null!==a?(a.reset(),a):new Ua(this)});u.u(la,{NJ:"iteratorKeys"},function(){return 0>=this.count?Ia:new Qa(this)});u.u(la,{RD:"iteratorValues"},function(){if(0>=this.count)return Ia;var a=this.Jn;return null!==a?(a.reset(),a):new Sa(this)});function w(a,b){void 0===a?this.y=this.x=0:(this.x=a,this.y=b);this.Ca=!1}u.fa("Point",w);u.Lh(w);u.Xd(w,{x:!0,y:!0});w.prototype.assign=function(a){this.x=a.x;this.y=a.y}; +u.u(la,{i:"iterator"},function(){if(0>=this.count)return Ia;var a=this.wd;return null!==a?(a.reset(),a):new Ua(this)});u.u(la,{PJ:"iteratorKeys"},function(){return 0>=this.count?Ia:new Qa(this)});u.u(la,{RD:"iteratorValues"},function(){if(0>=this.count)return Ia;var a=this.Jn;return null!==a?(a.reset(),a):new Sa(this)});function w(a,b){void 0===a?this.y=this.x=0:(this.x=a,this.y=b);this.Ca=!1}u.fa("Point",w);u.Mh(w);u.Xd(w,{x:!0,y:!0});w.prototype.assign=function(a){this.x=a.x;this.y=a.y}; w.prototype.setTo=w.prototype.m=function(a,b){this.x=a;this.y=b;return this};w.prototype.set=w.prototype.set=function(a){this.I();this.x=a.x;this.y=a.y;return this};w.prototype.copy=function(){var a=new w;a.x=this.x;a.y=this.y;return a};g=w.prototype;g.Ka=function(){this.Ca=!0;Object.freeze(this);return this};g.Z=function(){return Object.isFrozen(this)?this:this.copy().freeze()};g.freeze=function(){this.Ca=!0;return this}; g.La=function(){Object.isFrozen(this)&&u.k("cannot thaw constant: "+this);this.Ca=!1;return this};g.I=function(a){if(this.Ca){var b="The Point is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);u.k(b)}};w.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));return new w(c,e)}return new w}; w.stringify=function(a){return a instanceof w?a.x.toString()+" "+a.y.toString():a.toString()};w.prototype.toString=function(){return"Point("+this.x+","+this.y+")"};w.prototype.equals=w.prototype.L=function(a){return a instanceof w?this.x===a.x&&this.y===a.y:!1};w.prototype.equalTo=w.prototype.Tv=function(a,b){return this.x===a&&this.y===b};w.prototype.equalsApprox=w.prototype.De=function(a){return K.D(this.x,a.x)&&K.D(this.y,a.y)}; @@ -93,13 +94,13 @@ w.prototype.add=w.prototype.add=function(a){this.I();this.x+=a.x;this.y+=a.y;ret w.prototype.rotate=w.prototype.rotate=function(a){this.I();if(0===a)return this;var b=this.x,c=this.y;if(0===b&&0===c)return this;var d=0,e=0;360<=a?a-=360:0>a&&(a+=360);90===a?(d=0,e=1):180===a?(d=-1,e=0):270===a?(d=0,e=-1):(a=a*Math.PI/180,d=Math.cos(a),e=Math.sin(a));this.x=d*b-e*c;this.y=e*b+d*c;return this};w.prototype.scale=w.prototype.scale=function(a,b){this.x*=a;this.y*=b;return this};w.prototype.distanceSquaredPoint=w.prototype.Lj=function(a){var b=a.x-this.x;a=a.y-this.y;return b*b+a*a}; w.prototype.distanceSquared=w.prototype.ss=function(a,b){var c=a-this.x,d=b-this.y;return c*c+d*d};w.prototype.normalize=w.prototype.normalize=function(){this.I();var a=this.x,b=this.y,c=Math.sqrt(a*a+b*b);0b?270:0;if(0===b)return 0a?c=0>b?c+180:180-c:0>b&&(c=360-c);return c}w.prototype.projectOntoLineSegment=function(a,b,c,d){K.Hm(a,b,c,d,this.x,this.y,this);return this};w.prototype.projectOntoLineSegmentPoint=function(a,b){K.Hm(a.x,a.y,b.x,b.y,this.x,this.y,this);return this};w.prototype.snapToGrid=function(a,b,c,d){K.xs(this.x,this.y,a,b,c,d,this);return this}; -w.prototype.snapToGridPoint=function(a,b){K.xs(this.x,this.y,a.x,a.y,b.width,b.height,this);return this};w.prototype.setRectSpot=w.prototype.pt=function(a,b){this.I();this.x=a.x+b.x*a.width+b.offsetX;this.y=a.y+b.y*a.height+b.offsetY;return this};w.prototype.setSpot=w.prototype.rt=function(a,b,c,d,e){this.I();this.x=a+e.x*c+e.offsetX;this.y=b+e.y*d+e.offsetY;return this};w.prototype.transform=function(a){a.ab(this);return this};function Wa(a,b){b.Oh(a);return a}var Xa; +w.prototype.snapToGridPoint=function(a,b){K.xs(this.x,this.y,a.x,a.y,b.width,b.height,this);return this};w.prototype.setRectSpot=w.prototype.pt=function(a,b){this.I();this.x=a.x+b.x*a.width+b.offsetX;this.y=a.y+b.y*a.height+b.offsetY;return this};w.prototype.setSpot=w.prototype.rt=function(a,b,c,d,e){this.I();this.x=a+e.x*c+e.offsetX;this.y=b+e.y*d+e.offsetY;return this};w.prototype.transform=function(a){a.ab(this);return this};function Wa(a,b){b.Ph(a);return a}var Xa; w.distanceLineSegmentSquared=Xa=function(a,b,c,d,e,f){var h=e-c,k=f-d,l=h*h+k*k;c-=a;d-=b;var m=-c*h-d*k;if(0>=m||m>=l)return h=e-a,k=f-b,Math.min(c*c+d*d,h*h+k*k);a=h*d-k*c;return a*a/l};var Ya;w.distanceSquared=Ya=function(a,b,c,d){a=c-a;b=d-b;return a*a+b*b};var Za;w.direction=Za=function(a,b,c,d){a=c-a;b=d-b;if(0===a)return 0b?270:0;if(0===b)return 0a?d=0>b?d+180:180-d:0>b&&(d=360-d);return d}; -w.prototype.isReal=w.prototype.J=function(){return isFinite(this.x)&&isFinite(this.y)};function ia(a,b){void 0===a?this.height=this.width=0:(this.width=a,this.height=b);this.Ca=!1}u.fa("Size",ia);u.Lh(ia);u.Xd(ia,{width:!0,height:!0});ia.prototype.assign=function(a){this.width=a.width;this.height=a.height};ia.prototype.setTo=ia.prototype.m=function(a,b){this.width=a;this.height=b;return this};ia.prototype.set=ia.prototype.set=function(a){this.I();this.width=a.width;this.height=a.height;return this}; +w.prototype.isReal=w.prototype.J=function(){return isFinite(this.x)&&isFinite(this.y)};function ia(a,b){void 0===a?this.height=this.width=0:(this.width=a,this.height=b);this.Ca=!1}u.fa("Size",ia);u.Mh(ia);u.Xd(ia,{width:!0,height:!0});ia.prototype.assign=function(a){this.width=a.width;this.height=a.height};ia.prototype.setTo=ia.prototype.m=function(a,b){this.width=a;this.height=b;return this};ia.prototype.set=ia.prototype.set=function(a){this.I();this.width=a.width;this.height=a.height;return this}; ia.prototype.copy=function(){var a=new ia;a.width=this.width;a.height=this.height;return a};g=ia.prototype;g.Ka=function(){this.Ca=!0;Object.freeze(this);return this};g.Z=function(){return Object.isFrozen(this)?this:this.copy().freeze()};g.freeze=function(){this.Ca=!0;return this};g.La=function(){Object.isFrozen(this)&&u.k("cannot thaw constant: "+this);this.Ca=!1;return this}; g.I=function(a){if(this.Ca){var b="The Size is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);u.k(b)}};ia.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));return new ia(c,e)}return new ia};ia.stringify=function(a){return a instanceof ia?a.width.toString()+" "+a.height.toString():a.toString()}; ia.prototype.toString=function(){return"Size("+this.width+","+this.height+")"};ia.prototype.equals=ia.prototype.L=function(a){return a instanceof ia?this.width===a.width&&this.height===a.height:!1};ia.prototype.equalTo=ia.prototype.Tv=function(a,b){return this.width===a&&this.height===b};ia.prototype.equalsApprox=ia.prototype.De=function(a){return K.D(this.width,a.width)&&K.D(this.height,a.height)};ia.prototype.isReal=ia.prototype.J=function(){return isFinite(this.width)&&isFinite(this.height)}; -function z(a,b,c,d){void 0===a?this.height=this.width=this.y=this.x=0:a instanceof w?b instanceof w?(this.x=Math.min(a.x,b.x),this.y=Math.min(a.y,b.y),this.width=Math.abs(a.x-b.x),this.height=Math.abs(a.y-b.y)):b instanceof ia?(this.x=a.x,this.y=a.y,this.width=b.width,this.height=b.height):u.k("Incorrect arguments supplied to Rect constructor"):(this.x=a,this.y=b,this.width=c,this.height=d);this.Ca=!1}u.fa("Rect",z);u.Lh(z);u.Xd(z,{x:!0,y:!0,width:!0,height:!0}); +function z(a,b,c,d){void 0===a?this.height=this.width=this.y=this.x=0:a instanceof w?b instanceof w?(this.x=Math.min(a.x,b.x),this.y=Math.min(a.y,b.y),this.width=Math.abs(a.x-b.x),this.height=Math.abs(a.y-b.y)):b instanceof ia?(this.x=a.x,this.y=a.y,this.width=b.width,this.height=b.height):u.k("Incorrect arguments supplied to Rect constructor"):(this.x=a,this.y=b,this.width=c,this.height=d);this.Ca=!1}u.fa("Rect",z);u.Mh(z);u.Xd(z,{x:!0,y:!0,width:!0,height:!0}); z.prototype.assign=function(a){this.x=a.x;this.y=a.y;this.width=a.width;this.height=a.height};function bb(a,b,c){a.width=b;a.height=c}z.prototype.setTo=z.prototype.m=function(a,b,c,d){this.x=a;this.y=b;this.width=c;this.height=d;return this};z.prototype.set=z.prototype.set=function(a){this.I();this.x=a.x;this.y=a.y;this.width=a.width;this.height=a.height;return this};z.prototype.setPoint=z.prototype.yf=function(a){this.I();this.x=a.x;this.y=a.y;return this}; z.prototype.setSize=function(a){this.I();this.width=a.width;this.height=a.height;return this};z.prototype.copy=function(){var a=new z;a.x=this.x;a.y=this.y;a.width=this.width;a.height=this.height;return a};g=z.prototype;g.Ka=function(){this.Ca=!0;Object.freeze(this);return this};g.Z=function(){return Object.isFrozen(this)?this:this.copy().freeze()};g.freeze=function(){this.Ca=!0;return this};g.La=function(){Object.isFrozen(this)&&u.k("cannot thaw constant: "+this);this.Ca=!1;return this}; g.I=function(a){if(this.Ca){var b="The Rect is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);u.k(b)}};z.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));for(var f=0;""===a[b];)b++;(d=a[b++])&&(f=parseFloat(d));for(var h=0;""===a[b];)b++;(d=a[b++])&&(h=parseFloat(d));return new z(c,e,f,h)}return new z}; @@ -109,17 +110,17 @@ z.prototype.contains=z.prototype.contains=function(a,b,c,d){void 0===c&&(c=0);vo z.prototype.addMargin=z.prototype.yv=function(a){return hb(this,a.top,a.right,a.bottom,a.left)};z.prototype.subtractMargin=z.prototype.tI=function(a){return hb(this,-a.top,-a.right,-a.bottom,-a.left)};z.prototype.grow=function(a,b,c,d){return hb(this,a,b,c,d)};function hb(a,b,c,d,e){a.I();var f=a.width;c+e<=-f?(a.x+=f/2,a.width=0):(a.x-=e,a.width+=c+e);c=a.height;b+d<=-c?(a.y+=c/2,a.height=0):(a.y-=b,a.height+=b+d);return a}z.prototype.intersectRect=function(a){return ib(this,a.x,a.y,a.width,a.height)}; z.prototype.intersect=function(a,b,c,d){return ib(this,a,b,c,d)};function ib(a,b,c,d,e){a.I();var f=Math.max(a.x,b),h=Math.max(a.y,c);b=Math.min(a.x+a.width,b+d);c=Math.min(a.y+a.height,c+e);a.x=f;a.y=h;a.width=Math.max(0,b-f);a.height=Math.max(0,c-h);return a}z.prototype.intersectsRect=z.prototype.sg=function(a){return this.HD(a.x,a.y,a.width,a.height)}; z.prototype.intersects=z.prototype.HD=function(a,b,c,d){var e=this.width,f=this.x;if(Infinity!==e&&Infinity!==c&&(e+=f,c+=a,isNaN(c)||isNaN(e)||f>c||a>e))return!1;a=this.height;c=this.y;return Infinity!==a&&Infinity!==d&&(a+=c,d+=b,isNaN(d)||isNaN(a)||c>d||b>a)?!1:!0};function jb(a,b){var c=a.width,d=b.width+10+10,e=a.x,f=b.x-10;if(e>d+f||f>c+e)return!1;c=a.height;d=b.height+10+10;e=a.y;f=b.y-10;return e>d+f||f>c+e?!1:!0}z.prototype.unionPoint=z.prototype.Oi=function(a){return kb(this,a.x,a.y,0,0)}; -z.prototype.unionRect=z.prototype.Sh=function(a){return kb(this,a.x,a.y,a.width,a.height)};z.prototype.union=z.prototype.YE=function(a,b,c,d){this.I();void 0===c&&(c=0);void 0===d&&(d=0);return kb(this,a,b,c,d)};function kb(a,b,c,d,e){var f=Math.min(a.x,b),h=Math.min(a.y,c);b=Math.max(a.x+a.width,b+d);c=Math.max(a.y+a.height,c+e);a.x=f;a.y=h;a.width=b-f;a.height=c-h;return a} +z.prototype.unionRect=z.prototype.Th=function(a){return kb(this,a.x,a.y,a.width,a.height)};z.prototype.union=z.prototype.YE=function(a,b,c,d){this.I();void 0===c&&(c=0);void 0===d&&(d=0);return kb(this,a,b,c,d)};function kb(a,b,c,d,e){var f=Math.min(a.x,b),h=Math.min(a.y,c);b=Math.max(a.x+a.width,b+d);c=Math.max(a.y+a.height,c+e);a.x=f;a.y=h;a.width=b-f;a.height=c-h;return a} z.prototype.setSpot=z.prototype.rt=function(a,b,c){this.I();this.x=a-c.offsetX-c.x*this.width;this.y=b-c.offsetY-c.y*this.height;return this};var qb;z.contains=qb=function(a,b,c,d,e,f,h,k){void 0===h&&(h=0);void 0===k&&(k=0);return a<=e&&e+h<=a+c&&b<=f&&f+k<=b+d};z.intersects=function(a,b,c,d,e,f,h,k){c+=a;h+=e;if(a>h||e>c)return!1;a=d+b;k+=f;return b>k||f>a?!1:!0};u.defineProperty(z,{left:"left"},function(){return this.x},function(a){this.I(a);this.x=a}); u.defineProperty(z,{top:"top"},function(){return this.y},function(a){this.I(a);this.y=a});u.defineProperty(z,{right:"right"},function(){return this.x+this.width},function(a){this.I(a);this.x+=a-(this.x+this.width)});u.defineProperty(z,{bottom:"bottom"},function(){return this.y+this.height},function(a){this.I(a);this.y+=a-(this.y+this.height)});u.defineProperty(z,{position:"position"},function(){return new w(this.x,this.y)},function(a){this.I(a);this.x=a.x;this.y=a.y}); u.defineProperty(z,{size:"size"},function(){return new ia(this.width,this.height)},function(a){this.I(a);this.width=a.width;this.height=a.height});u.defineProperty(z,{Ok:"center"},function(){return new w(this.x+this.width/2,this.y+this.height/2)},function(a){this.I(a);this.x=a.x-this.width/2;this.y=a.y-this.height/2});u.defineProperty(z,{Ja:"centerX"},function(){return this.x+this.width/2},function(a){this.I(a);this.x=a-this.width/2}); u.defineProperty(z,{Ua:"centerY"},function(){return this.y+this.height/2},function(a){this.I(a);this.y=a-this.height/2});z.prototype.isReal=z.prototype.J=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)};z.prototype.isEmpty=function(){return 0===this.width&&0===this.height}; -function rb(a,b,c,d){void 0===a?this.left=this.bottom=this.right=this.top=0:void 0===b?this.left=this.bottom=this.right=this.top=a:void 0===c?(d=b,this.top=a,this.right=b,this.bottom=a,this.left=d):void 0!==d?(this.top=a,this.right=b,this.bottom=c,this.left=d):u.k("Invalid arguments to Margin constructor");this.Ca=!1}u.fa("Margin",rb);u.Lh(rb);u.Xd(rb,{top:!0,right:!0,bottom:!0,left:!0});rb.prototype.assign=function(a){this.top=a.top;this.right=a.right;this.bottom=a.bottom;this.left=a.left}; +function rb(a,b,c,d){void 0===a?this.left=this.bottom=this.right=this.top=0:void 0===b?this.left=this.bottom=this.right=this.top=a:void 0===c?(d=b,this.top=a,this.right=b,this.bottom=a,this.left=d):void 0!==d?(this.top=a,this.right=b,this.bottom=c,this.left=d):u.k("Invalid arguments to Margin constructor");this.Ca=!1}u.fa("Margin",rb);u.Mh(rb);u.Xd(rb,{top:!0,right:!0,bottom:!0,left:!0});rb.prototype.assign=function(a){this.top=a.top;this.right=a.right;this.bottom=a.bottom;this.left=a.left}; rb.prototype.setTo=rb.prototype.m=function(a,b,c,d){this.I();this.top=a;this.right=b;this.bottom=c;this.left=d;return this};rb.prototype.set=rb.prototype.set=function(a){this.I();this.top=a.top;this.right=a.right;this.bottom=a.bottom;this.left=a.left;return this};rb.prototype.copy=function(){var a=new rb;a.top=this.top;a.right=this.right;a.bottom=this.bottom;a.left=this.left;return a};g=rb.prototype;g.Ka=function(){this.Ca=!0;Object.freeze(this);return this}; g.Z=function(){return Object.isFrozen(this)?this:this.copy().freeze()};g.freeze=function(){this.Ca=!0;return this};g.La=function(){Object.isFrozen(this)&&u.k("cannot thaw constant: "+this);this.Ca=!1;return this};g.I=function(a){if(this.Ca){var b="The Margin is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);u.k(b)}}; rb.parse=function(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=NaN;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));if(isNaN(c))return new rb;for(var e=NaN;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));if(isNaN(e))return new rb(c);for(var f=NaN;""===a[b];)b++;(d=a[b++])&&(f=parseFloat(d));if(isNaN(f))return new rb(c,e);for(var h=NaN;""===a[b];)b++;(d=a[b++])&&(h=parseFloat(d));return isNaN(h)?new rb(c,e):new rb(c,e,f,h)}return new rb}; rb.stringify=function(a){return a instanceof rb?a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString():a.toString()};rb.prototype.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"};rb.prototype.equals=rb.prototype.L=function(a){return a instanceof rb?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1}; -rb.prototype.equalTo=rb.prototype.Tv=function(a,b,c,d){return this.top===a&&this.right===b&&this.bottom===c&&this.left===d};rb.prototype.equalsApprox=rb.prototype.De=function(a){return K.D(this.top,a.top)&&K.D(this.right,a.right)&&K.D(this.bottom,a.bottom)&&K.D(this.left,a.left)};rb.prototype.isReal=rb.prototype.J=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)};function ja(){this.m11=1;this.m21=this.m12=0;this.m22=1;this.dy=this.dx=0}u.Lh(ja); +rb.prototype.equalTo=rb.prototype.Tv=function(a,b,c,d){return this.top===a&&this.right===b&&this.bottom===c&&this.left===d};rb.prototype.equalsApprox=rb.prototype.De=function(a){return K.D(this.top,a.top)&&K.D(this.right,a.right)&&K.D(this.bottom,a.bottom)&&K.D(this.left,a.left)};rb.prototype.isReal=rb.prototype.J=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)};function ja(){this.m11=1;this.m21=this.m12=0;this.m22=1;this.dy=this.dx=0}u.Mh(ja); u.Xd(ja,{m11:!0,m12:!0,m21:!0,m22:!0,dx:!0,dy:!0});ja.prototype.set=ja.prototype.set=function(a){this.m11=a.m11;this.m12=a.m12;this.m21=a.m21;this.m22=a.m22;this.dx=a.dx;this.dy=a.dy;return this};ja.prototype.copy=function(){var a=new ja;a.m11=this.m11;a.m12=this.m12;a.m21=this.m21;a.m22=this.m22;a.dx=this.dx;a.dy=this.dy;return a};ja.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"}; ja.prototype.equals=ja.prototype.L=function(a){return a instanceof ja?this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy:!1};ja.prototype.isIdentity=ja.prototype.Os=function(){return 1===this.m11&&0===this.m12&&0===this.m21&&1===this.m22&&0===this.dx&&0===this.dy};ja.prototype.reset=ja.prototype.reset=function(){this.m11=1;this.m21=this.m12=0;this.m22=1;this.dy=this.dx=0;return this}; ja.prototype.multiply=ja.prototype.multiply=function(a){var b=this.m12*a.m11+this.m22*a.m12,c=this.m11*a.m21+this.m21*a.m22,d=this.m12*a.m21+this.m22*a.m22,e=this.m11*a.dx+this.m21*a.dy+this.dx,f=this.m12*a.dx+this.m22*a.dy+this.dy;this.m11=this.m11*a.m11+this.m21*a.m12;this.m12=b;this.m21=c;this.m22=d;this.dx=e;this.dy=f;return this}; @@ -127,9 +128,9 @@ ja.prototype.multiplyInverted=ja.prototype.aE=function(a){var b=1/(a.m11*a.m22-a ja.prototype.invert=ja.prototype.oz=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),b=-this.m12*a,c=-this.m21*a,d=this.m11*a,e=a*(this.m21*this.dy-this.m22*this.dx),f=a*(this.m12*this.dx-this.m11*this.dy);this.m11=this.m22*a;this.m12=b;this.m21=c;this.m22=d;this.dx=e;this.dy=f;return this}; ja.prototype.rotate=ja.prototype.rotate=function(a,b,c){360<=a?a-=360:0>a&&(a+=360);if(0===a)return this;this.translate(b,c);var d=0,e=0;90===a?(d=0,e=1):180===a?(d=-1,e=0):270===a?(d=0,e=-1):(e=a*Math.PI/180,d=Math.cos(e),e=Math.sin(e));a=this.m12*d+this.m22*e;var f=this.m11*-e+this.m21*d,h=this.m12*-e+this.m22*d;this.m11=this.m11*d+this.m21*e;this.m12=a;this.m21=f;this.m22=h;this.translate(-b,-c);return this}; ja.prototype.translate=ja.prototype.translate=function(a,b){this.dx+=this.m11*a+this.m21*b;this.dy+=this.m12*a+this.m22*b;return this};ja.prototype.scale=ja.prototype.scale=function(a,b){void 0===b&&(b=a);this.m11*=a;this.m12*=a;this.m21*=b;this.m22*=b;return this};ja.prototype.transformPoint=ja.prototype.ab=function(a){var b=a.x,c=a.y;a.x=b*this.m11+c*this.m21+this.dx;a.y=b*this.m12+c*this.m22+this.dy;return a}; -ja.prototype.invertedTransformPoint=ja.prototype.Oh=function(a){var b=1/(this.m11*this.m22-this.m12*this.m21),c=-this.m12*b,d=this.m11*b,e=b*(this.m12*this.dx-this.m11*this.dy),f=a.x,h=a.y;a.x=f*this.m22*b+h*-this.m21*b+b*(this.m21*this.dy-this.m22*this.dx);a.y=f*c+h*d+e;return a}; +ja.prototype.invertedTransformPoint=ja.prototype.Ph=function(a){var b=1/(this.m11*this.m22-this.m12*this.m21),c=-this.m12*b,d=this.m11*b,e=b*(this.m12*this.dx-this.m11*this.dy),f=a.x,h=a.y;a.x=f*this.m22*b+h*-this.m21*b+b*(this.m21*this.dy-this.m22*this.dx);a.y=f*c+h*d+e;return a}; ja.prototype.transformRect=ja.prototype.WE=function(a){var b=a.x,c=a.y,d=b+a.width,e=c+a.height,f=this.m11,h=this.m12,k=this.m21,l=this.m22,m=this.dx,n=this.dy,p=b*f+c*k+m,q=b*h+c*l+n,r=d*f+c*k+m,c=d*h+c*l+n,s=b*f+e*k+m,b=b*h+e*l+n,f=d*f+e*k+m,d=d*h+e*l+n,e=p,h=q,p=Math.min(p,r),e=Math.max(e,r),h=Math.min(h,c),q=Math.max(q,c),p=Math.min(p,s),e=Math.max(e,s),h=Math.min(h,b),q=Math.max(q,b),p=Math.min(p,f),e=Math.max(e,f),h=Math.min(h,d),q=Math.max(q,d);a.x=p;a.y=h;a.width=e-p;a.height=q-h;return a}; -function L(a,b,c,d){void 0===a?this.offsetY=this.offsetX=this.y=this.x=0:(void 0===b&&(b=0),void 0===c&&(c=0),void 0===d&&(d=0),this.x=a,this.y=b,this.offsetX=c,this.offsetY=d);this.Ca=!1}u.fa("Spot",L);u.Lh(L);u.Xd(L,{x:!0,y:!0,offsetX:!0,offsetY:!0});L.prototype.assign=function(a){this.x=a.x;this.y=a.y;this.offsetX=a.offsetX;this.offsetY=a.offsetY};L.prototype.setTo=L.prototype.m=function(a,b,c,d){this.I();this.x=a;this.y=b;this.offsetX=c;this.offsetY=d;return this}; +function L(a,b,c,d){void 0===a?this.offsetY=this.offsetX=this.y=this.x=0:(void 0===b&&(b=0),void 0===c&&(c=0),void 0===d&&(d=0),this.x=a,this.y=b,this.offsetX=c,this.offsetY=d);this.Ca=!1}u.fa("Spot",L);u.Mh(L);u.Xd(L,{x:!0,y:!0,offsetX:!0,offsetY:!0});L.prototype.assign=function(a){this.x=a.x;this.y=a.y;this.offsetX=a.offsetX;this.offsetY=a.offsetY};L.prototype.setTo=L.prototype.m=function(a,b,c,d){this.I();this.x=a;this.y=b;this.offsetX=c;this.offsetY=d;return this}; L.prototype.set=L.prototype.set=function(a){this.I();this.x=a.x;this.y=a.y;this.offsetX=a.offsetX;this.offsetY=a.offsetY;return this};L.prototype.copy=function(){var a=new L;a.x=this.x;a.y=this.y;a.offsetX=this.offsetX;a.offsetY=this.offsetY;return a};g=L.prototype;g.Ka=function(){this.Ca=!0;Object.freeze(this);return this};g.Z=function(){return Object.isFrozen(this)?this:this.copy().freeze()};g.freeze=function(){this.Ca=!0;return this}; g.La=function(){Object.isFrozen(this)&&u.k("cannot thaw constant: "+this);this.Ca=!1;return this};g.I=function(a){if(this.Ca){var b="The Spot is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);u.k(b)}};function sb(a,b){a.x=NaN;a.y=NaN;a.offsetX=b;return a}var tb; L.parse=tb=function(a){if("string"===typeof a){a=a.trim();if("None"===a)return vb;if("TopLeft"===a)return xb;if("Top"===a||"TopCenter"===a||"MiddleTop"===a)return Db;if("TopRight"===a)return Gb;if("Left"===a||"LeftCenter"===a||"MiddleLeft"===a)return Hb;if("Center"===a)return Ib;if("Right"===a||"RightCenter"===a||"MiddleRight"===a)return Jb;if("BottomLeft"===a)return Kb;if("Bottom"===a||"BottomCenter"===a||"MiddleBottom"===a)return Ub;if("BottomRight"===a)return Vb;if("TopSide"===a)return Wb;if("LeftSide"=== @@ -144,7 +145,7 @@ var $b;L.TopBottomSides=$b=sb(new L(0,0,1,u.Xc|u.Nc),1).Ka();var ac;L.LeftRightS L.NotRightSide=rc=sb(new L(0,0,1,u.Xc|u.Fc|u.Nc),1).Ka();var sc;L.NotBottomSide=sc=sb(new L(0,0,1,u.Xc|u.Fc|u.Oc),1).Ka();var tc;L.AllSides=tc=sb(new L(0,0,1,u.Xc|u.Fc|u.Oc|u.Nc),1).Ka();function Lc(){this.$e=[1,0,0,1,0,0]}Lc.prototype.copy=function(){var a=new Lc;a.$e[0]=this.$e[0];a.$e[1]=this.$e[1];a.$e[2]=this.$e[2];a.$e[3]=this.$e[3];a.$e[4]=this.$e[4];a.$e[5]=this.$e[5];return a};function Mc(a){this.type=a;this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0;this.YC=[]} Mc.prototype.addColorStop=function(a,b){this.YC.push({offset:a,color:b})}; function Nc(a,b,c){this.fillStyle="#000000";this.font="10px sans-serif";this.globalAlpha=1;this.lineCap="butt";this.nw=0;this.lineJoin="miter";this.lineWidth=1;this.miterLimit=10;this.shadowBlur=0;this.shadowColor="rgba(0, 0, 0, 0)";this.shadowOffsetY=this.shadowOffsetX=0;this.strokeStyle="#000000";this.textAlign="start";this.document=b||document;this.nD=c;this.kw=null;this.path=[];this.Ei=new Lc;this.stack=[];this.rf=[];this.HE=this.BD=this.Mv=0;this.Rv=a;this.IH="http://www.w3.org/2000/svg";this.width= -this.Rv.width;this.height=this.Rv.height;this.sl=Oc(this,"svg",{width:this.width+"px",height:this.height+"px",EK:"0 0 "+this.Rv.width+" "+this.Rv.height});this.sl.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg");this.sl.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink");Uc(this,1,0,0,1,0,0);a=Oc(this,"clipPath",{id:"mainClip"});a.appendChild(Oc(this,"rect",{x:0,y:0,width:this.width,height:this.height}));this.sl.appendChild(a); +this.Rv.width;this.height=this.Rv.height;this.sl=Oc(this,"svg",{width:this.width+"px",height:this.height+"px",GK:"0 0 "+this.Rv.width+" "+this.Rv.height});this.sl.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg");this.sl.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink");Uc(this,1,0,0,1,0,0);a=Oc(this,"clipPath",{id:"mainClip"});a.appendChild(Oc(this,"rect",{x:0,y:0,width:this.width,height:this.height}));this.sl.appendChild(a); this.rf[0].setAttributeNS(null,"clip-path","url(#mainClip)")}g=Nc.prototype;g.arc=function(a,b,c,d,e,f){Vc(this,a,b,c,d,e,f)};g.beginPath=function(){this.path=[]};g.bezierCurveTo=function(a,b,c,d,e,f){this.path.push(["C",a,b,c,d,e,f])};g.clearRect=function(){};g.clip=function(){Wc(this,"clipPath",this.path,new Lc)};g.closePath=function(){this.path.push(["z"])};g.createLinearGradient=function(a,b,c,d){var e=new Mc("linear");e.x1=a;e.y1=b;e.x2=c;e.y2=d;return e};g.createPattern=function(){}; g.createRadialGradient=function(a,b,c,d,e,f){var h=new Mc("radial");h.x1=a;h.y1=b;h.r1=c;h.x2=d;h.y2=e;h.r2=f;return h}; g.drawImage=function(a,b,c,d,e,f,h,k,l){a=[b,c,d,e,f,h,k,l,a];b=this.Ei;e=a[8];c="";e instanceof HTMLCanvasElement&&(c=e.toDataURL());e instanceof HTMLImageElement&&(c=e.src);c={x:0,y:0,width:a[6],height:a[7],href:c};d="";f=a[6]/a[2];h=a[7]/a[3];if(0!==a[4]||0!==a[5])d+=" translate("+a[4]+", "+a[5]+")";if(1!==f||1!==h)d+=" scale("+f+", "+h+")";if(0!==a[0]||0!==a[1])d+=" translate("+-a[0]+", "+-a[1]+")";if(0!==a[0]||0!==a[1]||a[2]!==e.naturalWidth||a[3]!==e.naturalHeight)e="CLIP"+this.Mv,this.Mv++, @@ -160,7 +161,7 @@ function Zc(a,b){var c="GRAD"+a.BD;a.BD++;var d;if("linear"===b.type)d={x1:b.x1, l["stop-color"]="rgb("+m[1]+","+m[2]+","+m[3]+")",l["stop-opacity"]=m[4]);h.push(l)}h.sort(function(a,b){return a.offset>b.offset?1:-1});for(k=0;k=2*Math.PI?(Vc(a,b,c,d,e,e+Math.PI,h),Vc(a,b,c,d,e+Math.PI,e+2*Math.PI,h),a.path.push(["M",l,f])):(b+=d*Math.cos(e),c+=d*Math.sin(e),k=180*k/Math.PI,e=h?0:1,h=180<=k==!!h?0:1,0!==a.path.length?a.path.push(["L",b,c]):a.path.push(["M",b,c]),a.path.push(["A",d,d,k,h,e,l,f]))}}function Uc(a,b,c,d,e,f,h){var k=new Lc;k.$e=[b,c,d,e,f,h];b={};Xc(a,"g",b,k);k=a.addElement("g",b);a.rf.push(k)} -g.$a=function(){if(0!==this.shadowOffsetX||0!==this.shadowOffsetY||0!==this.shadowBlur){var a="SHADOW"+this.HE;this.HE++;var b=this.addElement("filter",{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},null),c,d,e,f,h;c=Oc(this,"feGaussianBlur",{"in":"SourceAlpha",result:"blur",vK:this.shadowBlur/2});d=Oc(this,"feFlood",{"in":"blur",result:"flood","flood-color":this.shadowColor});e=Oc(this,"feComposite",{"in":"flood",in2:"blur",operator:"in",result:"comp"});f=Oc(this,"feOffset",{"in":"comp",result:"offsetBlur", +g.$a=function(){if(0!==this.shadowOffsetX||0!==this.shadowOffsetY||0!==this.shadowBlur){var a="SHADOW"+this.HE;this.HE++;var b=this.addElement("filter",{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},null),c,d,e,f,h;c=Oc(this,"feGaussianBlur",{"in":"SourceAlpha",result:"blur",xK:this.shadowBlur/2});d=Oc(this,"feFlood",{"in":"blur",result:"flood","flood-color":this.shadowColor});e=Oc(this,"feComposite",{"in":"flood",in2:"blur",operator:"in",result:"comp"});f=Oc(this,"feOffset",{"in":"comp",result:"offsetBlur", dx:this.shadowOffsetX,dy:this.shadowOffsetY});h=Oc(this,"feMerge",{});h.appendChild(Oc(this,"feMergeNode",{"in":"offsetBlur"}));h.appendChild(Oc(this,"feMergeNode",{"in":"SourceGraphic"}));b.appendChild(c);b.appendChild(d);b.appendChild(e);b.appendChild(f);b.appendChild(h);0=c?1/b[c|0]:Math.sqrt(a)):2E3>=a?b[a|0]:Math.sqrt(a)},D:function(a,b){var c=a-b;return.5>c&&-.5c&&-5E-8=e&&(e=1E-6);var k=0,l=0,m=0,n=0;am-n)if(a-c>e||c-a>e){if(f=(d-b)/(c-a)*(f-a)+b,f-e<=h&&h<=f+e)return!0}else return!0;else if(b- d>e||d-b>e){if(h=(c-a)/(d-b)*(h-b)+a,h-e<=f&&f<=h+e)return!0}else return!0;return!1},Iv:function(a,b,c,d,e,f,h,k,l,m,n,p){if(K.Hd(a,b,h,k,p,c,d)&&K.Hd(a,b,h,k,p,e,f))return K.Hd(a,b,h,k,p,m,n);var q=(a+c)/2,r=(b+d)/2,s=(c+e)/2,t=(d+f)/2;e=(e+h)/2;f=(f+k)/2;d=(q+s)/2;c=(r+t)/2;var s=(s+e)/2,t=(t+f)/2,v=(d+s)/2,x=(c+t)/2;return K.Iv(a,b,q,r,d,c,v,x,l,m,n,p)||K.Iv(v,x,s,t,e,f,h,k,l,m,n,p)},UF:function(a,b,c,d,e,f,h,k,l){var m=(c+e)/2,n=(d+f)/2;l.x=(((a+c)/2+m)/2+(m+(e+h)/2)/2)/2;l.y=(((b+d)/2+n)/2+(n+ (f+k)/2)/2)/2;return l},TF:function(a,b,c,d,e,f,h,k){var l=(c+e)/2,m=(d+f)/2;return Za(((a+c)/2+l)/2,((b+d)/2+m)/2,(l+(e+h)/2)/2,(m+(f+k)/2)/2)},oo:function(a,b,c,d,e,f,h,k,l,m){if(K.Hd(a,b,h,k,l,c,d)&&K.Hd(a,b,h,k,l,e,f))kb(m,a,b,0,0),kb(m,h,k,0,0);else{var n=(a+c)/2,p=(b+d)/2,q=(c+e)/2,r=(d+f)/2;e=(e+h)/2;f=(f+k)/2;d=(n+q)/2;c=(p+r)/2;var q=(q+e)/2,r=(r+f)/2,s=(d+q)/2,t=(c+r)/2;K.oo(a,b,n,p,d,c,s,t,l,m);K.oo(s,t,q,r,e,f,h,k,l,m)}return m},ye:function(a,b,c,d,e,f,h,k,l,m){if(K.Hd(a,b,h,k,l,c,d)&& -K.Hd(a,b,h,k,l,e,f))0===m.length&&(m.push(a),m.push(b)),m.push(h),m.push(k);else{var n=(a+c)/2,p=(b+d)/2,q=(c+e)/2,r=(d+f)/2;e=(e+h)/2;f=(f+k)/2;d=(n+q)/2;c=(p+r)/2;var q=(q+e)/2,r=(r+f)/2,s=(d+q)/2,t=(c+r)/2;K.ye(a,b,n,p,d,c,s,t,l,m);K.ye(s,t,q,r,e,f,h,k,l,m)}return m},Oz:function(a,b,c,d,e,f,h,k,l,m){if(K.Hd(a,b,e,f,m,c,d))return K.Hd(a,b,e,f,m,k,l);var n=(a+c)/2,p=(b+d)/2;c=(c+e)/2;d=(d+f)/2;var q=(n+c)/2,r=(p+d)/2;return K.Oz(a,b,n,p,q,r,h,k,l,m)||K.Oz(q,r,c,d,e,f,h,k,l,m)},nK:function(a,b,c, +K.Hd(a,b,h,k,l,e,f))0===m.length&&(m.push(a),m.push(b)),m.push(h),m.push(k);else{var n=(a+c)/2,p=(b+d)/2,q=(c+e)/2,r=(d+f)/2;e=(e+h)/2;f=(f+k)/2;d=(n+q)/2;c=(p+r)/2;var q=(q+e)/2,r=(r+f)/2,s=(d+q)/2,t=(c+r)/2;K.ye(a,b,n,p,d,c,s,t,l,m);K.ye(s,t,q,r,e,f,h,k,l,m)}return m},Oz:function(a,b,c,d,e,f,h,k,l,m){if(K.Hd(a,b,e,f,m,c,d))return K.Hd(a,b,e,f,m,k,l);var n=(a+c)/2,p=(b+d)/2;c=(c+e)/2;d=(d+f)/2;var q=(n+c)/2,r=(p+d)/2;return K.Oz(a,b,n,p,q,r,h,k,l,m)||K.Oz(q,r,c,d,e,f,h,k,l,m)},pK:function(a,b,c, d,e,f,h){h.x=((a+c)/2+(c+e)/2)/2;h.y=((b+d)/2+(d+f)/2)/2;return h},Nz:function(a,b,c,d,e,f,h,k){if(K.Hd(a,b,e,f,h,c,d))kb(k,a,b,0,0),kb(k,e,f,0,0);else{var l=(a+c)/2,m=(b+d)/2;c=(c+e)/2;d=(d+f)/2;var n=(l+c)/2,p=(m+d)/2;K.Nz(a,b,l,m,n,p,h,k);K.Nz(n,p,c,d,e,f,h,k)}return k},Xo:function(a,b,c,d,e,f,h,k){if(K.Hd(a,b,e,f,h,c,d))0===k.length&&(k.push(a),k.push(b)),k.push(e),k.push(f);else{var l=(a+c)/2,m=(b+d)/2;c=(c+e)/2;d=(d+f)/2;var n=(l+c)/2,p=(m+d)/2;K.Xo(a,b,l,m,n,p,h,k);K.Xo(n,p,c,d,e,f,h,k)}return k}, js:function(a,b,c,d,e,f,h,k,l,m,n,p,q,r){0>=q&&(q=1E-6);if(K.Hd(a,b,h,k,q,c,d)&&K.Hd(a,b,h,k,q,e,f)){var s=(a-h)*(m-p)-(b-k)*(l-n);if(0===s)return!1;q=((a*k-b*h)*(l-n)-(a-h)*(l*p-m*n))/s;s=((a*k-b*h)*(m-p)-(b-k)*(l*p-m*n))/s;if((l>n?l-n:n-l)<(m>p?m-p:p-m)){if(h=l=0,bh)return!1}else if(ah)return!1;r.x=q;r.y=s;return!0}var s=(a+c)/2,t=(b+d)/2;c=(c+e)/2;d=(d+f)/2;e=(e+h)/2;f=(f+k)/2;var v=(s+c)/2,x=(t+d)/2;c=(c+e)/2;d=(d+f)/2;var B=(v+c)/2,y=(x+d)/ 2,C=(n-l)*(n-l)+(p-m)*(p-m),I=!1;K.js(a,b,s,t,v,x,B,y,l,m,n,p,q,r)&&(b=(r.x-l)*(r.x-l)+(r.y-m)*(r.y-m),b=q&&(q=1E-6);if(K.Hd(a,b,h,k,q,c,d)&&K.Hd(a,b,h,k,q,e,f)){q=(a-h)*(m-p)-(b-k)*(l-n);if(0===q)return r;var s=((a*k-b*h)*(l-n)-(a-h)*(l*p-m*n))/q,t=((a*k-b*h)*(m-p)-(b-k)*(l*p-m*n))/q;if(s>=n)return r;if((l>n?l-n:n-l)< (m>p?m-p:p-m)){if(a=l=0,ba)return r}else if(aa)return r;0q&&r--}else{var s=(a+c)/2,t=(b+d)/2,v=(c+e)/2,x=(d+f)/2;e=(e+h)/2;f=(f+k)/2;d=(s+v)/2;c=(t+x)/2;var v=(v+e)/2,x=(x+f)/2,B=(d+v)/2,y=(c+x)/2,r=r+K.ks(a,b,s,t,d,c,B,y,l,m,n,p,q),r=r+K.ks(B,y,v,x,e,f,h,k,l,m,n,p,q)}return r},Hm:function(a,b,c,d,e,f,h){if(K.mb(a,c)){var k=0;c=0;bc)return h.x=a,h.y=c,!1;h.x=a;h.y=d;return!0}if(K.mb(b, d)){ac)return h.x=c,h.y=b,!1;h.x=d;h.y=b;return!0}k=((a-e)*(a-c)+(b-f)*(b-d))/((c-a)*(c-a)+(d-b)*(d-b));if(-5E-6>k)return h.x=a,h.y=b,!1;if(1.000005c)return l.x=a,l.y=c,!1;l.x=a;l.y=f;return!0}h=(d-b)/(c-a);if(K.mb(k,h))return K.Hm(a,b,c,d,e,f,l),!1;e=(h*a-k*e+f-b)/(h-k);if(K.mb(h,0)){ac)return l.x=c,l.y=b,!1;l.x=e;l.y=b;return!0}f=h*(e-a)+b;return K.Hm(a,b,c,d,e,f,l)},PJ:function(a,b,c,d,e){return K.$g(c.x,c.y,d.x,d.y,a.x,a.y,b.x,b.y,e)},xJ:function(a,b,c,d,e,f,h,k,l,m){function n(c,d){var e=(c-a)*(c-a)+(d-b)*(d-b);ec)return l.x=a,l.y=c,!1;l.x=a;l.y=f;return!0}h=(d-b)/(c-a);if(K.mb(k,h))return K.Hm(a,b,c,d,e,f,l),!1;e=(h*a-k*e+f-b)/(h-k);if(K.mb(h,0)){ac)return l.x=c,l.y=b,!1;l.x=e;l.y=b;return!0}f=h*(e-a)+b;return K.Hm(a,b,c,d,e,f,l)},RJ:function(a,b,c,d,e){return K.$g(c.x,c.y,d.x,d.y,a.x,a.y,b.x,b.y,e)},yJ:function(a,b,c,d,e,f,h,k,l,m){function n(c,d){var e=(c-a)*(c-a)+(d-b)*(d-b);e(c>a?c-a:a-c)){q=1-(c-e)*(c-e)/(q*q);if(0>q)return l;q=Math.sqrt(q);d=-m*q+f;n(c,m*q+f);n(c,d)}else{c=(d-b)/(c-a);d=1/(q*q)+c*c/(m*m);k=2*c*(b-c*a)/(m*m)-2*c*f/(m*m)-2*e/(q*q);q=k*k-4*d*(2*c*a*f/(m*m)-2*b*f/(m*m)+f*f/(m*m)+e*e/(q*q)-1+(b-c*a)*(b-c*a)/(m*m));if(0>q)return l;q=Math.sqrt(q);m=(-k+q)/(2*d);n(m,c*m-c*a+b);q=(-k-q)/(2*d);n(q, c*q-c*a+b)}return l},bl:function(a,b,c,d,e,f,h,k,l){var m=1E21,n=a,p=b;if(K.$g(a,b,a,d,e,f,h,k,l)){var q=(l.x-e)*(l.x-e)+(l.y-f)*(l.y-f);qm},dw:function(a,b,c){var d=b.x,e=b.y,f=c.x,h=c.y,k=a.left,l=a.right, m=a.top,n=a.bottom;return d===f?(f=a=0,e=m):e===h?(d=k):a.Aa(b)||a.Aa(c)||K.cw(k,m,l,m,d,e,f,h)||K.cw(l,m,l,n,d,e,f,h)||K.cw(l,n,k,n,d,e,f,h)||K.cw(k,n,k,m,d,e,f,h)?!0:!1},cw:function(a,b,c,d,e,f,h,k){return 0>=K.Nv(a,b,c,d,e,f)*K.Nv(a,b,c,d,h,k)&&0>=K.Nv(e,f,h,k,a,b)*K.Nv(e,f,h,k,c,d)},Nv:function(a,b,c,d,e,f){c-=a;d-=b;a=e-a;b=f-b;f=a*d-b*c;0===f&&(f=a*c+b*d,0f&&(f=0)));return 0>f?-1:0a&&(a+=360);360<=a&&(a-=360);return a},fD:function(a,b,c,d,e,f){void 0===f&&(f=!1);var h=Math.PI;f||(d*=h/180,e*=h/180);f=dc,f=0>d,h=0,k=h=0;am;++m){b=.5*(k+l);if(b===k||b===l)break;var n=a/(b+f),p=h/(b+e),n=n*n+p*p-1;if(0n)l=b;else break}c=f*c/(b+f)-c;d=e*d/(b+e)-d;e=Math.sqrt(c*c+d*d)}else e=Math.abs(d-b);else d=a*a-b*b,e=a*c,ea&&(a+=360);360<=a&&(a-=360);return a},fD:function(a,b,c,d,e,f){var h=Math.PI;f||(d*=h/180,e*=h/180);f=dc,f=0>d,h=0,k=h=0;am;++m){b=.5*(k+l);if(b===k||b===l)break;var n=a/(b+f),p=h/(b+e),n=n*n+p*p-1;if(0n)l=b;else break}c=f*c/(b+f)-c;d=e*d/(b+e)-d;e=Math.sqrt(c*c+d*d)}else e=Math.abs(d-b);else d=a*a-b*b,e=a*c,e=a)return 0;if((e>h?e-h:h-e)<(f>k?f-k:k-f)){if(e=a=0,fe)return 0}else if(ee)return 0;return 0a||1a||1a)return n=(a-q)/p,u.ra(c),new w(b+(e-b)*n,d+(f-d)*n);q+=p}b=e;d=f}u.ra(c);return null};u.defineProperty($c,{type:"type"},function(){return this.oa},function(a){this.oa!==a&&(u.I(this,a),this.oa=a,this.Ta=!0)});u.defineProperty($c,{ua:"startX"},function(){return this.nc},function(a){this.nc!==a&&(u.I(this,a),this.nc=a,this.Ta=!0)}); u.defineProperty($c,{va:"startY"},function(){return this.uc},function(a){this.uc!==a&&(u.I(this,a),this.uc=a,this.Ta=!0)});u.defineProperty($c,{F:"endX"},function(){return this.pb},function(a){this.pb!==a&&(u.I(this,a),this.pb=a,this.Ta=!0)});u.defineProperty($c,{G:"endY"},function(){return this.Bb},function(a){this.Bb!==a&&(u.I(this,a),this.Bb=a,this.Ta=!0)});u.defineProperty($c,{ub:"figures"},function(){return this.Zi},function(a){this.Zi!==a&&(u.I(this,a),this.Zi=a,this.Ta=!0)}); $c.prototype.add=$c.prototype.add=function(a){this.Zi.add(a);return this};u.defineProperty($c,{A:"spot1"},function(){return this.ri},function(a){u.I(this,a);this.ri=a.Z()});u.defineProperty($c,{B:"spot2"},function(){return this.si},function(a){u.I(this,a);this.si=a.Z()});u.defineProperty($c,{Bd:"defaultStretch"},function(){return this.bi},function(a){u.I(this,a);this.bi=a});u.u($c,{kb:"bounds"},function(){this.vz()&&(this.nA(),this.kg());return this.Ut}); -function bd(a,b,c,d){u.gc(this);this.Ca=!1;void 0===c&&(c=!0);this.Il=c;void 0===d&&(d=!0);this.En=d;this.nc=void 0!==a?a:0;this.uc=void 0!==b?b:0;this.Yn=new E(Jd);this.cv=this.Yn.U;this.Ta=!0}u.fa("PathFigure",bd);u.Lh(bd);bd.prototype.copy=function(){var a=new bd;a.Il=this.Il;a.En=this.En;a.nc=this.nc;a.uc=this.uc;for(var b=this.Yn.n,c=b.length,d=a.Yn,e=0;ea?"M"+this.ua.toString()+" "+this.va.toString():"M"+this.ua.toFixed(a)+" "+this.va.toFixed(a),c=this.Fa.n,d=c.length,e=0;ea&&(a+=360),this.bd=a),void 0!==d&&(this.dg=Math.max(d,0)),void 0!==e&&(this.eg=Math.max(e,0)),this.Ln=!!h,this.bn=!!k):(void 0!==d&&(this.bd=d),void 0!==e&&(this.xe=e),void 0!==f&&(a===Bd&&(f=Math.max(f,0)),this.dg=f),void 0!==h&&"number"===typeof h&&(a===Bd&&(h=Math.max(h,0)),this.eg=h));this.zh=!1;this.Ta=!0;this.Ri=null} -u.fa("PathSegment",Jd);u.Lh(Jd);Jd.prototype.copy=function(){var a=new Jd;a.oa=this.oa;a.pb=this.pb;a.Bb=this.Bb;void 0!==this.bd&&(a.bd=this.bd);void 0!==this.xe&&(a.xe=this.xe);void 0!==this.dg&&(a.dg=this.dg);void 0!==this.eg&&(a.eg=this.eg);void 0!==this.Ln&&(a.Ln=this.Ln);void 0!==this.bn&&(a.bn=this.bn);a.zh=this.zh;a.Ta=this.Ta;return a}; +function Jd(a,b,c,d,e,f,h,k){u.gc(this);this.Ca=!1;void 0===a&&(a=pd);this.oa=a;this.pb=void 0!==b?b:0;this.Bb=void 0!==c?c:0;a===Gd?(void 0!==f&&(a=f%360,0>a&&(a+=360),this.cd=a),void 0!==d&&(this.dg=Math.max(d,0)),void 0!==e&&(this.eg=Math.max(e,0)),this.Ln=!!h,this.bn=!!k):(void 0!==d&&(this.cd=d),void 0!==e&&(this.xe=e),void 0!==f&&(a===Bd&&(f=Math.max(f,0)),this.dg=f),void 0!==h&&"number"===typeof h&&(a===Bd&&(h=Math.max(h,0)),this.eg=h));this.Ah=!1;this.Ta=!0;this.Ri=null} +u.fa("PathSegment",Jd);u.Mh(Jd);Jd.prototype.copy=function(){var a=new Jd;a.oa=this.oa;a.pb=this.pb;a.Bb=this.Bb;void 0!==this.cd&&(a.cd=this.cd);void 0!==this.xe&&(a.xe=this.xe);void 0!==this.dg&&(a.dg=this.dg);void 0!==this.eg&&(a.eg=this.eg);void 0!==this.Ln&&(a.Ln=this.Ln);void 0!==this.bn&&(a.bn=this.bn);a.Ah=this.Ah;a.Ta=this.Ta;return a}; Jd.prototype.equalsApprox=Jd.prototype.De=function(a){if(!(a instanceof Jd)||this.type!==a.type||this.ew!==a.ew)return!1;switch(this.type){case yd:case pd:return K.D(this.F,a.F)&&K.D(this.G,a.G);case zd:return K.D(this.F,a.F)&&K.D(this.G,a.G)&&K.D(this.Rb,a.Rb)&&K.D(this.jc,a.jc)&&K.D(this.df,a.df)&&K.D(this.ef,a.ef);case Ad:return K.D(this.F,a.F)&&K.D(this.G,a.G)&&K.D(this.Rb,a.Rb)&&K.D(this.jc,a.jc);case Bd:return K.D(this.Je,a.Je)&&K.D(this.Qf,a.Qf)&&K.D(this.Ja,a.Ja)&&K.D(this.Ua,a.Ua)&&K.D(this.radiusX, a.radiusX)&&K.D(this.radiusY,a.radiusY);case Gd:return this.fl===a.fl&&this.hw===a.hw&&K.D(this.Pi,a.Pi)&&K.D(this.F,a.F)&&K.D(this.G,a.G)&&K.D(this.radiusX,a.radiusX)&&K.D(this.radiusY,a.radiusY);default:return!1}}; Jd.prototype.toString=function(a){void 0===a&&(a=-1);var b="";switch(this.type){case yd:b=0>a?"M"+this.F.toString()+" "+this.G.toString():"M"+this.F.toFixed(a)+" "+this.G.toFixed(a);break;case pd:b=0>a?"L"+this.F.toString()+" "+this.G.toString():"L"+this.F.toFixed(a)+" "+this.G.toFixed(a);break;case zd:b=0>a?"C"+this.Rb.toString()+" "+this.jc.toString()+" "+this.df.toString()+" "+this.ef.toString()+" "+this.F.toString()+" "+this.G.toString():"C"+this.Rb.toFixed(a)+" "+this.jc.toFixed(a)+" "+this.df.toFixed(a)+ " "+this.ef.toFixed(a)+" "+this.F.toFixed(a)+" "+this.G.toFixed(a);break;case Ad:b=0>a?"Q"+this.Rb.toString()+" "+this.jc.toString()+" "+this.F.toString()+" "+this.G.toString():"Q"+this.Rb.toFixed(a)+" "+this.jc.toFixed(a)+" "+this.F.toFixed(a)+" "+this.G.toFixed(a);break;case Bd:b=0>a?"B"+this.Je.toString()+" "+this.Qf.toString()+" "+this.Ja.toString()+" "+this.Ua.toString()+" "+this.radiusX:"B"+this.Je.toFixed(a)+" "+this.Qf.toFixed(a)+" "+this.Ja.toFixed(a)+" "+this.Ua.toFixed(a)+" "+this.radiusX; -break;case Gd:b=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.Pi.toString()+" "+(this.hw?1:0)+" "+(this.fl?1:0)+" "+this.F.toString()+" "+this.G.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.Pi.toFixed(a)+" "+(this.hw?1:0)+" "+(this.fl?1:0)+" "+this.F.toFixed(a)+" "+this.G.toFixed(a);break;default:b=this.type.toString()}return b+(this.zh?"z":"")};var yd;Jd.Move=yd=u.s(Jd,"Move",0);var pd;Jd.Line=pd=u.s(Jd,"Line",1);var zd; -Jd.Bezier=zd=u.s(Jd,"Bezier",2);var Ad;Jd.QuadraticBezier=Ad=u.s(Jd,"QuadraticBezier",3);var Bd;Jd.Arc=Bd=u.s(Jd,"Arc",4);var Gd;Jd.SvgArc=Gd=u.s(Jd,"SvgArc",4);Jd.prototype.freeze=function(){this.Ca=!0;return this};Jd.prototype.La=function(){this.Ca=!1;return this};Jd.prototype.close=Jd.prototype.close=function(){this.zh=!0;return this}; -function Hd(a,b){if(null!==a.Ri&&!1===b.Ta)return a.Ri;var c=a.radiusX,d=a.radiusY;void 0===d&&(d=c);var e=a.bd,f=a.xe,h=K.fD(0,0,c=s?k=Math.PI:1<=s&&(k=0);!m&&0k&&(k+=2*Math.PI);m=b>h?1:b/h;s=b>h?h/b:1;b=K.fD(0,0,b>h?b:h,p,p+k,!0);h=u.jh();h.reset();h.translate(c,d);h.rotate(a.bd,0,0);h.scale(m,s);wd(b,h);u.Ye(h);a.Ri=b;return a.Ri} -u.defineProperty(Jd,{ew:"isClosed"},function(){return this.zh},function(a){this.zh!==a&&(this.zh=a,this.Ta=!0)});u.defineProperty(Jd,{type:"type"},function(){return this.oa},function(a){u.I(this,a);this.oa=a;this.Ta=!0});u.defineProperty(Jd,{F:"endX"},function(){return this.pb},function(a){u.I(this,a);this.pb=a;this.Ta=!0});u.defineProperty(Jd,{G:"endY"},function(){return this.Bb},function(a){u.I(this,a);this.Bb=a;this.Ta=!0}); -u.defineProperty(Jd,{Rb:"point1X"},function(){return this.bd},function(a){u.I(this,a);this.bd=a;this.Ta=!0});u.defineProperty(Jd,{jc:"point1Y"},function(){return this.xe},function(a){u.I(this,a);this.xe=a;this.Ta=!0});u.defineProperty(Jd,{df:"point2X"},function(){return this.dg},function(a){u.I(this,a);this.dg=a;this.Ta=!0});u.defineProperty(Jd,{ef:"point2Y"},function(){return this.eg},function(a){u.I(this,a);this.eg=a;this.Ta=!0}); -u.defineProperty(Jd,{Ja:"centerX"},function(){return this.bd},function(a){u.I(this,a);this.bd=a;this.Ta=!0});u.defineProperty(Jd,{Ua:"centerY"},function(){return this.xe},function(a){u.I(this,a);this.xe=a;this.Ta=!0});u.defineProperty(Jd,{radiusX:"radiusX"},function(){return this.dg},function(a){0>a&&u.wa(a,">= zero",Jd,"radiusX");u.I(this,a);this.dg=a;this.Ta=!0}); +break;case Gd:b=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.Pi.toString()+" "+(this.hw?1:0)+" "+(this.fl?1:0)+" "+this.F.toString()+" "+this.G.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.Pi.toFixed(a)+" "+(this.hw?1:0)+" "+(this.fl?1:0)+" "+this.F.toFixed(a)+" "+this.G.toFixed(a);break;default:b=this.type.toString()}return b+(this.Ah?"z":"")};var yd;Jd.Move=yd=u.s(Jd,"Move",0);var pd;Jd.Line=pd=u.s(Jd,"Line",1);var zd; +Jd.Bezier=zd=u.s(Jd,"Bezier",2);var Ad;Jd.QuadraticBezier=Ad=u.s(Jd,"QuadraticBezier",3);var Bd;Jd.Arc=Bd=u.s(Jd,"Arc",4);var Gd;Jd.SvgArc=Gd=u.s(Jd,"SvgArc",4);Jd.prototype.freeze=function(){this.Ca=!0;return this};Jd.prototype.La=function(){this.Ca=!1;return this};Jd.prototype.close=Jd.prototype.close=function(){this.Ah=!0;return this}; +function Hd(a,b){if(null!==a.Ri&&!1===b.Ta)return a.Ri;var c=a.radiusX,d=a.radiusY;void 0===d&&(d=c);var e=a.cd,f=a.xe,h=K.fD(0,0,c=s?k=Math.PI:1<=s&&(k=0);!m&&0k&&(k+=2*Math.PI);m=b>h?1:b/h;s=b>h?h/b:1;b=K.fD(0,0,b>h?b:h,p,p+k,!0);h=u.jh();h.reset();h.translate(c,d);h.rotate(a.cd,0,0);h.scale(m,s);wd(b,h);u.Ye(h);a.Ri=b;return a.Ri} +u.defineProperty(Jd,{ew:"isClosed"},function(){return this.Ah},function(a){this.Ah!==a&&(this.Ah=a,this.Ta=!0)});u.defineProperty(Jd,{type:"type"},function(){return this.oa},function(a){u.I(this,a);this.oa=a;this.Ta=!0});u.defineProperty(Jd,{F:"endX"},function(){return this.pb},function(a){u.I(this,a);this.pb=a;this.Ta=!0});u.defineProperty(Jd,{G:"endY"},function(){return this.Bb},function(a){u.I(this,a);this.Bb=a;this.Ta=!0}); +u.defineProperty(Jd,{Rb:"point1X"},function(){return this.cd},function(a){u.I(this,a);this.cd=a;this.Ta=!0});u.defineProperty(Jd,{jc:"point1Y"},function(){return this.xe},function(a){u.I(this,a);this.xe=a;this.Ta=!0});u.defineProperty(Jd,{df:"point2X"},function(){return this.dg},function(a){u.I(this,a);this.dg=a;this.Ta=!0});u.defineProperty(Jd,{ef:"point2Y"},function(){return this.eg},function(a){u.I(this,a);this.eg=a;this.Ta=!0}); +u.defineProperty(Jd,{Ja:"centerX"},function(){return this.cd},function(a){u.I(this,a);this.cd=a;this.Ta=!0});u.defineProperty(Jd,{Ua:"centerY"},function(){return this.xe},function(a){u.I(this,a);this.xe=a;this.Ta=!0});u.defineProperty(Jd,{radiusX:"radiusX"},function(){return this.dg},function(a){0>a&&u.wa(a,">= zero",Jd,"radiusX");u.I(this,a);this.dg=a;this.Ta=!0}); u.defineProperty(Jd,{radiusY:"radiusY"},function(){return this.eg},function(a){0>a&&u.wa(a,">= zero",Jd,"radiusY");u.I(this,a);this.eg=a;this.Ta=!0});u.defineProperty(Jd,{Je:"startAngle"},function(){return this.pb},function(a){this.pb!==a&&(u.I(this,a),a%=360,0>a&&(a+=360),this.pb=a,this.Ta=!0)});u.defineProperty(Jd,{Qf:"sweepAngle"},function(){return this.Bb},function(a){u.I(this,a);360a&&(a=-360);this.Bb=a;this.Ta=!0}); -u.defineProperty(Jd,{fl:"isClockwiseArc"},function(){return this.bn},function(a){u.I(this,a);this.bn=a;this.Ta=!0});u.defineProperty(Jd,{hw:"isLargeArc"},function(){return this.Ln},function(a){u.I(this,a);this.Ln=a;this.Ta=!0});u.defineProperty(Jd,{Pi:"xAxisRotation"},function(){return this.bd},function(a){a%=360;0>a&&(a+=360);u.I(this,a);this.bd=a;this.Ta=!0}); +u.defineProperty(Jd,{fl:"isClockwiseArc"},function(){return this.bn},function(a){u.I(this,a);this.bn=a;this.Ta=!0});u.defineProperty(Jd,{hw:"isLargeArc"},function(){return this.Ln},function(a){u.I(this,a);this.Ln=a;this.Ta=!0});u.defineProperty(Jd,{Pi:"xAxisRotation"},function(){return this.cd},function(a){a%=360;0>a&&(a+=360);u.I(this,a);this.cd=a;this.Ta=!0}); function Md(){this.Y=null;this.Hy=(new w(0,0)).freeze();this.Cx=(new w(0,0)).freeze();this.Rt=this.Mu=0;this.Au="";this.rv=this.gu=!1;this.cu=this.Tt=0;this.Si=this.nu=this.wu=!1;this.Vp=null;this.qv=0;this.fg=this.nv=null}u.fa("InputEvent",Md); Md.prototype.copy=function(){var a=new Md;a.Y=this.Y;a.Hy.assign(this.ff);a.Cx.assign(this.da);a.Mu=this.Mu;a.Rt=this.Rt;a.Au=this.Au;a.gu=this.gu;a.rv=this.rv;a.Tt=this.Tt;a.cu=this.cu;a.wu=this.wu;a.nu=this.nu;a.Si=this.Si;a.Vp=this.Vp;a.qv=this.qv;a.nv=this.nv;a.fg=this.fg;return a}; -Md.prototype.toString=function(){var a="^";0!==this.gd&&(a+="M:"+this.gd);0!==this.button&&(a+="B:"+this.button);""!==this.key&&(a+="K:"+this.key);0!==this.Te&&(a+="C:"+this.Te);0!==this.Uk&&(a+="D:"+this.Uk);this.Tc&&(a+="h");this.bubbles&&(a+="b");null!==this.da&&(a+="@"+this.da.toString());return a};u.defineProperty(Md,{g:"diagram"},function(){return this.Y},function(a){this.Y=a});u.defineProperty(Md,{ff:"viewPoint"},function(){return this.Hy},function(a){u.C(a,w,Md,"viewPoint");this.Hy.assign(a)}); -u.defineProperty(Md,{da:"documentPoint"},function(){return this.Cx},function(a){u.C(a,w,Md,"documentPoint");this.Cx.assign(a)});u.defineProperty(Md,{gd:"modifiers"},function(){return this.Mu},function(a){this.Mu=a});u.defineProperty(Md,{button:"button"},function(){return this.Rt},function(a){this.Rt=a});u.defineProperty(Md,{key:"key"},function(){return this.Au},function(a){this.Au=a});u.defineProperty(Md,{Wk:"down"},function(){return this.gu},function(a){this.gu=a}); +Md.prototype.toString=function(){var a="^";0!==this.hd&&(a+="M:"+this.hd);0!==this.button&&(a+="B:"+this.button);""!==this.key&&(a+="K:"+this.key);0!==this.Te&&(a+="C:"+this.Te);0!==this.Uk&&(a+="D:"+this.Uk);this.Tc&&(a+="h");this.bubbles&&(a+="b");null!==this.da&&(a+="@"+this.da.toString());return a};u.defineProperty(Md,{g:"diagram"},function(){return this.Y},function(a){this.Y=a});u.defineProperty(Md,{ff:"viewPoint"},function(){return this.Hy},function(a){u.C(a,w,Md,"viewPoint");this.Hy.assign(a)}); +u.defineProperty(Md,{da:"documentPoint"},function(){return this.Cx},function(a){u.C(a,w,Md,"documentPoint");this.Cx.assign(a)});u.defineProperty(Md,{hd:"modifiers"},function(){return this.Mu},function(a){this.Mu=a});u.defineProperty(Md,{button:"button"},function(){return this.Rt},function(a){this.Rt=a});u.defineProperty(Md,{key:"key"},function(){return this.Au},function(a){this.Au=a});u.defineProperty(Md,{Wk:"down"},function(){return this.gu},function(a){this.gu=a}); u.defineProperty(Md,{up:"up"},function(){return this.rv},function(a){this.rv=a});u.defineProperty(Md,{Te:"clickCount"},function(){return this.Tt},function(a){this.Tt=a});u.defineProperty(Md,{Uk:"delta"},function(){return this.cu},function(a){this.cu=a});u.defineProperty(Md,{Ps:"isMultiTouch"},function(){return this.wu},function(a){this.wu=a});u.defineProperty(Md,{Tc:"handled"},function(){return this.nu},function(a){this.nu=a}); u.defineProperty(Md,{bubbles:"bubbles"},function(){return this.Si},function(a){this.Si=a});u.defineProperty(Md,{event:"event"},function(){return this.Vp},function(a){this.Vp=a});u.u(Md,{jl:"isTouchEvent"},function(){var a=window.TouchEvent;return a&&this.event instanceof a?!0:(a=window.PointerEvent)&&this.event instanceof a&&"touch"===this.event.pointerType});u.defineProperty(Md,{timestamp:"timestamp"},function(){return this.qv},function(a){this.qv=a}); -u.defineProperty(Md,{Cg:"targetDiagram"},function(){return this.nv},function(a){this.nv=a});u.defineProperty(Md,{pe:"targetObject"},function(){return this.fg},function(a){this.fg=a});u.defineProperty(Md,{control:"control"},function(){return 0!==(this.gd&1)},function(a){this.gd=a?this.gd|1:this.gd&-2});u.defineProperty(Md,{shift:"shift"},function(){return 0!==(this.gd&4)},function(a){this.gd=a?this.gd|4:this.gd&-5}); -u.defineProperty(Md,{alt:"alt"},function(){return 0!==(this.gd&2)},function(a){this.gd=a?this.gd|2:this.gd&-3});u.defineProperty(Md,{Ys:"meta"},function(){return 0!==(this.gd&8)},function(a){this.gd=a?this.gd|8:this.gd&-9});u.defineProperty(Md,{left:"left"},function(){return 0===this.button},function(a){this.button=a?0:2});u.defineProperty(Md,{YJ:"middle"},function(){return 1===this.button},function(a){this.button=a?1:0}); +u.defineProperty(Md,{Cg:"targetDiagram"},function(){return this.nv},function(a){this.nv=a});u.defineProperty(Md,{pe:"targetObject"},function(){return this.fg},function(a){this.fg=a});u.defineProperty(Md,{control:"control"},function(){return 0!==(this.hd&1)},function(a){this.hd=a?this.hd|1:this.hd&-2});u.defineProperty(Md,{shift:"shift"},function(){return 0!==(this.hd&4)},function(a){this.hd=a?this.hd|4:this.hd&-5}); +u.defineProperty(Md,{alt:"alt"},function(){return 0!==(this.hd&2)},function(a){this.hd=a?this.hd|2:this.hd&-3});u.defineProperty(Md,{Ys:"meta"},function(){return 0!==(this.hd&8)},function(a){this.hd=a?this.hd|8:this.hd&-9});u.defineProperty(Md,{left:"left"},function(){return 0===this.button},function(a){this.button=a?0:2});u.defineProperty(Md,{$J:"middle"},function(){return 1===this.button},function(a){this.button=a?1:0}); u.defineProperty(Md,{right:"right"},function(){return 2===this.button},function(a){this.button=a?2:0});function Nd(){this.Y=null;this.Ub="";this.Vu=this.iv=null;this.St=!1}u.fa("DiagramEvent",Nd);Nd.prototype.copy=function(){var a=new Nd;a.Y=this.Y;a.Ub=this.Ub;a.iv=this.iv;a.Vu=this.Vu;a.St=this.St;return a};Nd.prototype.toString=function(){var a="*"+this.name;this.cancel&&(a+="x");null!==this.hA&&(a+=":"+this.hA.toString());null!==this.Mz&&(a+="("+this.Mz.toString()+")");return a}; u.defineProperty(Nd,{g:"diagram"},function(){return this.Y},function(a){this.Y=a});u.defineProperty(Nd,{name:"name"},function(){return this.Ub},function(a){this.Ub=a});u.defineProperty(Nd,{hA:"subject"},function(){return this.iv},function(a){this.iv=a});u.defineProperty(Nd,{Mz:"parameter"},function(){return this.Vu},function(a){this.Vu=a});u.defineProperty(Nd,{cancel:"cancel"},function(){return this.St},function(a){this.St=a}); function Zd(){this.Bp=$d;this.Xl=this.Lu="";this.Wq=this.Xq=this.ar=this.br=this.$q=this.Y=this.Od=null}u.fa("ChangedEvent",Zd);var ae;Zd.Transaction=ae=u.s(Zd,"Transaction",-1);var $d;Zd.Property=$d=u.s(Zd,"Property",0);var be;Zd.Insert=be=u.s(Zd,"Insert",1);var ce;Zd.Remove=ce=u.s(Zd,"Remove",2);Zd.prototype.clear=Zd.prototype.clear=function(){this.Wq=this.Xq=this.ar=this.br=this.$q=this.Y=this.Od=null}; @@ -251,9 +252,9 @@ Zd.prototype.copy=function(){var a=new Zd;a.Od=this.Od;a.Y=this.Y;a.Bp=this.Bp;a Zd.prototype.toString=function(){var a="",a=this.Ad===ae?a+"* ":this.Ad===$d?a+(null!==this.ga?"!m":"!d"):a+((null!==this.ga?"!m":"!d")+this.Ad);this.propertyName&&"string"===typeof this.propertyName&&(a+=" "+this.propertyName);this.Lf&&this.Lf!==this.propertyName&&(a+=" "+this.Lf);a+=": ";this.Ad===ae?null!==this.oldValue&&(a+=" "+this.oldValue):(null!==this.object&&(a+=de(this.object)),null!==this.oldValue&&(a+=" old: "+de(this.oldValue)),null!==this.zg&&(a+=" "+this.zg),null!==this.newValue&& (a+=" new: "+de(this.newValue)),null!==this.xg&&(a+=" "+this.xg));return a};Zd.prototype.getValue=Zd.prototype.ta=function(a){return a?this.oldValue:this.newValue};Zd.prototype.getParam=function(a){return a?this.zg:this.xg};Zd.prototype.canUndo=Zd.prototype.canUndo=function(){return null!==this.ga||null!==this.g?!0:!1};Zd.prototype.undo=Zd.prototype.undo=function(){this.canUndo()&&(null!==this.ga?this.ga.pm(this,!0):null!==this.g&&this.g.pm(this,!0))}; Zd.prototype.canRedo=Zd.prototype.canRedo=function(){return null!==this.ga||null!==this.g?!0:!1};Zd.prototype.redo=Zd.prototype.redo=function(){this.canRedo()&&(null!==this.ga?this.ga.pm(this,!1):null!==this.g&&this.g.pm(this,!1))};u.defineProperty(Zd,{ga:"model"},function(){return this.Od},function(a){this.Od=a});u.defineProperty(Zd,{g:"diagram"},function(){return this.Y},function(a){this.Y=a});u.defineProperty(Zd,{Ad:"change"},function(){return this.Bp},function(a){this.Bp=a}); -u.defineProperty(Zd,{Lf:"modelChange"},function(){return this.Lu},function(a){this.Lu=a});u.defineProperty(Zd,{propertyName:"propertyName"},function(){return this.Xl},function(a){this.Xl=a});u.u(Zd,{IJ:"isTransactionFinished"},function(){return this.Bp===ae&&("CommittedTransaction"===this.Xl||"FinishedUndo"===this.Xl||"FinishedRedo"===this.Xl)});u.defineProperty(Zd,{object:"object"},function(){return this.$q},function(a){this.$q=a}); +u.defineProperty(Zd,{Lf:"modelChange"},function(){return this.Lu},function(a){this.Lu=a});u.defineProperty(Zd,{propertyName:"propertyName"},function(){return this.Xl},function(a){this.Xl=a});u.u(Zd,{KJ:"isTransactionFinished"},function(){return this.Bp===ae&&("CommittedTransaction"===this.Xl||"FinishedUndo"===this.Xl||"FinishedRedo"===this.Xl)});u.defineProperty(Zd,{object:"object"},function(){return this.$q},function(a){this.$q=a}); u.defineProperty(Zd,{oldValue:"oldValue"},function(){return this.br},function(a){this.br=a});u.defineProperty(Zd,{zg:"oldParam"},function(){return this.ar},function(a){this.ar=a});u.defineProperty(Zd,{newValue:"newValue"},function(){return this.Xq},function(a){this.Xq=a});u.defineProperty(Zd,{xg:"newParam"},function(){return this.Wq},function(a){this.Wq=a}); -function J(a){1b||(u.zi(this.mf,b),Le(this,"nodeDataArray",ce,"nodeDataArray",this,a,null,b,null),this.zt(a)))}}; -J.prototype.removeNodeDataCollection=function(a){if(u.isArray(a))for(var b=u.qb(a),c=0;cb&&(b=u.qb(a));u.yi(a,b,c);Le(this,"",be,"",a,null,c,null,b)};J.prototype.removeArrayItem=function(a,b){void 0===b&&(b=-1);a===this.mf&&u.k("Model.removeArrayItem should not be called on the Model.nodeDataArray");-1===b&&(b=u.qb(a)-1);var c=u.fb(a,b);u.zi(a,b);Le(this,"",ce,"",a,c,null,b,null)}; u.defineProperty(J,{Im:"nodeCategoryProperty"},function(){return this.Yq},function(a){var b=this.Yq;b!==a&&(Me(a,J,"nodeCategoryProperty"),this.Yq=a,this.h("nodeCategoryProperty",b,a))});J.prototype.getCategoryForNodeData=J.prototype.fz=function(a){if(null===a)return"";var b=this.Yq;if(""===b)return"";b=u.sb(a,b);if(void 0===b)return"";if("string"===typeof b)return b;u.k("getCategoryForNodeData found a non-string category for "+a+": "+b);return""}; J.prototype.setCategoryForNodeData=J.prototype.Dw=function(a,b){u.j(b,"string",J,"setCategoryForNodeData:cat");if(null!==a){var c=this.Yq;if(""!==c)if(this.Ue(a)){var d=u.sb(a,c);void 0===d&&(d="");d!==b&&(u.Oa(a,c,b),Le(this,"nodeCategory",$d,c,a,d,b))}else u.Oa(a,c,b)}}; -function Q(a,b){2e||(u.zi(d,e),this.Ci(a)&&(Qe(this,b,a),Le(this,"linkLabelKeys",ce,c,a,b,null)))}else void 0!==d&&u.k(c+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}}; -u.defineProperty(Q,{Qj:"linkDataArray"},function(){return this.Bh},function(a){var b=this.Bh;if(b!==a){u.Qy(a,Q,"linkDataArray");for(var c=u.qb(a),d=0;db)){u.zi(this.Bh,b);Le(this,"linkDataArray",ce,"linkDataArray",this,a,null,b,null);b=this.$k(a);Qe(this,b,a);b=this.cl(a);Qe(this,b,a);var c=this.Pj(a);if(u.isArray(c))for(var d=u.qb(c),e=0;ee||(u.zi(d,e),this.Ci(a)&&(Qe(this,b,a),Le(this,"linkLabelKeys",ce,c,a,b,null)))}else void 0!==d&&u.k(c+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}}; +u.defineProperty(Q,{Qj:"linkDataArray"},function(){return this.Ch},function(a){var b=this.Ch;if(b!==a){u.Qy(a,Q,"linkDataArray");for(var c=u.qb(a),d=0;db)){u.zi(this.Ch,b);Le(this,"linkDataArray",ce,"linkDataArray",this,a,null,b,null);b=this.$k(a);Qe(this,b,a);b=this.cl(a);Qe(this,b,a);var c=this.Pj(a);if(u.isArray(c))for(var d=u.qb(c),e=0;ea.Le&&u.trace("Ending transaction without having started a transaction: "+c);var d=1===a.Le;d&&b&&a.isEnabled&&a.Rc("CommittingTransaction",c,a.Di);var e=0;if(0a.Ii;e--)f=d.ja(e),null!== -f&&f.clear(),d.hd(e),a.Yx=!0;e=a.VD;0===e&&(e=1);0=e&&(f=d.ja(0),null!==f&&f.clear(),d.hd(0),a.Ig--);d.add(b);a.Ig++;d.freeze();f=b}a.Rc("CommittedTransaction",c,f)}else{a.fi=!0;try{a.isEnabled&&null!==f&&(f.Ms=!0,f.undo())}finally{a.Rc("RolledBackTransaction",c,f),a.fi=!1}null!==f&&f.clear()}a.bu=null;return!0}if(a.isEnabled&&!b&&null!==f){a=e;c=f.Ug;for(b=c.count-1;b>=a;b--)d=c.ja(b),null!==d&&d.undo(),c.La(),c.hd(b);c.freeze()}return!1} +function ff(a,b,c){if(a.gb)return!1;a.Ry&&1>a.Le&&u.trace("Ending transaction without having started a transaction: "+c);var d=1===a.Le;d&&b&&a.isEnabled&&a.Rc("CommittingTransaction",c,a.Di);var e=0;if(0a.Ii;e--)f=d.ja(e),null!== +f&&f.clear(),d.jd(e),a.Yx=!0;e=a.VD;0===e&&(e=1);0=e&&(f=d.ja(0),null!==f&&f.clear(),d.jd(0),a.Ig--);d.add(b);a.Ig++;d.freeze();f=b}a.Rc("CommittedTransaction",c,f)}else{a.fi=!0;try{a.isEnabled&&null!==f&&(f.Ms=!0,f.undo())}finally{a.Rc("RolledBackTransaction",c,f),a.fi=!1}null!==f&&f.clear()}a.bu=null;return!0}if(a.isEnabled&&!b&&null!==f){a=e;c=f.Ug;for(b=c.count-1;b>=a;b--)d=c.ja(b),null!==d&&d.undo(),c.La(),c.jd(b);c.freeze()}return!1} ee.prototype.canUndo=ee.prototype.canUndo=function(){if(!this.isEnabled||0=this.Le&&!this.Kx&&(a=a.g,null!==a&&!1===a.lf||u.trace("Change not within a transaction: "+c.toString()))}}; @@ -375,7 +376,7 @@ sa.prototype.deleteSelection=function(){var a=this.g;if(null!==a&&!a.za("Selecti function kf(a,b,c,d,e,f){void 0===f&&(f=null);if(!(a.contains(b)||null!==f&&!f(b)||b instanceof lf))if(a.add(b),b instanceof U){if(c&&b instanceof V)for(var h=b.Mc;h.next();)kf(a,h.value,c,d,e,f);if(e)for(h=b.oe;h.next();){var k=h.value;if(!a.contains(k)){var l=k.W,m=k.ca;null!==l&&a.contains(l)&&null!==m&&a.contains(m)?kf(a,k,c,d,e,f):null!==l&&null!==m||kf(a,k,c,d,e,f)}}if(1b.Bs+1&&ca&&(a+=360));var b=Math.min(Math.abs(this.mI),180),c=Math.min(Math.abs(this.lI),b/2);!this.g.N.shift&&0b-c&&(a=(Math.floor(a/b)+1)*b));360<=a?a-=360:0>a&&(a+=360);return a};u.defineProperty(uh,{mI:"snapAngleMultiple"},function(){return this.gC},function(a){u.j(a,"number",uh,"snapAngleMultiple");this.gC=a}); -u.defineProperty(uh,{lI:"snapAngleEpsilon"},function(){return this.fC},function(a){u.j(a,"number",uh,"snapAngleEpsilon");this.fC=a});u.u(uh,{eK:"originalAngle"},function(){return this.Su});function wh(){0e.right&&(c.x-=d.width+5);c.xe.bottom&&(c.y-=d.height+5);c.ye.right&&(c.x-=d.width+5);c.xe.bottom?c.y-(d.height+5):c.y+20;c.ya?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b} -Te.prototype.prepareAnimation=Te.prototype.ml=function(){this.Ne&&(this.dj&&this.Mi(),this.ld=!0,this.CA=!1)};function fi(a){a.Ne&&requestAnimationFrame(function(){!1===a.ld||a.dj||(a.Y.im=1,gi(a.Y),a.ld=!1,a.Y.za("AnimationStarting"),hi(a))})}function ii(a,b,c,d,e){if(a.ld&&(!(b instanceof G)||b.JD)){var f=a.Sn;if(f.contains(b)){b=f.ta(b);a=b.start;var h=b.end;void 0===a[c]&&(a[c]=ji(d));h[c]=ji(e)}else a=new pa,h=new pa,a[c]=ji(d),h[c]=ji(e),f.add(b,new ei(a,h))}} +u.defineProperty(jf,{WF:"clickSelectingTool"},function(){return this.findTool("ClickSelecting")},function(a){ci(this,"ClickSelecting",a,this.Nf)});function Te(){this.pF=di;this.Fl=this.Gl=this.Y=null;this.CA=this.bd=this.Fn=this.dj=!1;this.Ne=!0;this.$t=this.Zt=this.PA=null;this.tx=0;this.Ex=600;this.yF=new w(0,0);this.EA=this.DA=this.BC=!1;this.Sn=new la(S,ei)}u.fa("AnimationManager",Te);Te.prototype.Ec=function(a){this.Y=a};function di(a,b,c,d){a/=d/2;return 1>a?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b} +Te.prototype.prepareAnimation=Te.prototype.ml=function(){this.Ne&&(this.dj&&this.Mi(),this.bd=!0,this.CA=!1)};function fi(a){a.Ne&&requestAnimationFrame(function(){!1===a.bd||a.dj||(a.Y.im=1,gi(a.Y),a.bd=!1,a.Y.za("AnimationStarting"),hi(a))})}function ii(a,b,c,d,e){if(a.bd&&(!(b instanceof G)||b.JD)){var f=a.Sn;if(f.contains(b)){b=f.ta(b);a=b.start;var h=b.end;void 0===a[c]&&(a[c]=ji(d));h[c]=ji(e)}else a=new pa,h=new pa,a[c]=ji(d),h[c]=ji(e),f.add(b,new ei(a,h))}} function ji(a){return a instanceof w?a.copy():a instanceof ia?a.copy():a} -function hi(a){var b;void 0===b&&(b=new pa);var c=a.Y;if(null!==c)if(0===a.Sn.count)a.dj=!1,ki(c,!1),c.bf();else{a.dj=!0;var d=b.wJ||a.pF,e=b.cK||null,f=b.dK||null,h=b.duration||a.Ex;b=a.yF;for(var k=a.Sn.i;k.next();){var l=k.value.start.position;l instanceof w&&(l.J()||l.assign(b))}a.PA=d;a.Zt=e;a.$t=f;a.tx=h;var m=a.oF=a.Sn;li(a);mi(a,c,m,d,0,h,null!==a.Gl&&null!==a.Fl);Dg(a.Y);ni(a);requestAnimationFrame(function(b){var e=b||+new Date,f=e+h;(function s(b){if(!1!==a.dj){b=b||+new Date;var k=b>f? +function hi(a){var b;void 0===b&&(b=new pa);var c=a.Y;if(null!==c)if(0===a.Sn.count)a.dj=!1,ki(c,!1),c.bf();else{a.dj=!0;var d=b.xJ||a.pF,e=b.eK||null,f=b.fK||null,h=b.duration||a.Ex;b=a.yF;for(var k=a.Sn.i;k.next();){var l=k.value.start.position;l instanceof w&&(l.J()||l.assign(b))}a.PA=d;a.Zt=e;a.$t=f;a.tx=h;var m=a.oF=a.Sn;li(a);mi(a,c,m,d,0,h,null!==a.Gl&&null!==a.Fl);Dg(a.Y);ni(a);requestAnimationFrame(function(b){var e=b||+new Date,f=e+h;(function s(b){if(!1!==a.dj){b=b||+new Date;var k=b>f? h:b-e;li(a);mi(a,c,m,d,k,h,null!==a.Gl&&null!==a.Fl);a.Zt&&a.Zt();Dg(c);ni(a);b>f?oi(a):requestAnimationFrame(s)}})(e)})}}var pi={opacity:function(a,b,c,d,e,f){a.opacity=d(e,b,c-b,f)},position:function(a,b,c,d,e,f){e!==f?a.GE(d(e,b.x,c.x-b.x,f),d(e,b.y,c.y-b.y,f)):a.position=new w(d(e,b.x,c.x-b.x,f),d(e,b.y,c.y-b.y,f))},scale:function(a,b,c,d,e,f){a.scale=d(e,b,c-b,f)},visible:function(a,b,c,d,e,f){a.visible=e!==f?b:c}}; function li(a){if(!a.Fn){var b=a.Y;a.BC=b.cb;a.DA=b.Iw;a.EA=b.tt;b.cb=!0;b.Iw=!0;b.tt=!0;a.Fn=!0}}function ni(a){var b=a.Y;b.cb=a.BC;b.Iw=a.DA;b.tt=a.EA;a.Fn=!1}function mi(a,b,c,d,e,f,h){for(c=c.i;c.next();){var k=c.key,l=c.value,m=l.start,l=l.end,n;for(n in l)if(void 0!==pi[n])pi[n](k,m[n],l[n],d,e,f)}h&&(h=a.Gl,a=a.Fl,n=a.y-h.y,a=d(e,h.x,a.x-h.x,f),d=d(e,h.y,n,f),e=b.qz,b.qz=!0,b.position=new w(a,d),b.qz=e)} -Te.prototype.stopAnimation=Te.prototype.Mi=function(){!0===this.ld&&(this.ld=!1,this.CA&&this.Y.de());this.dj&&this.Ne&&(li(this),mi(this,this.Y,this.oF,this.PA,this.tx,this.tx,null!==this.Gl&&null!==this.Fl),ni(this),oi(this))};function oi(a){a.dj=!1;a.Gl=null;a.Fl=null;a.Sn=new la(S,ei);li(a);for(var b=a.Y.links;b.next();){var c=b.value;null!==c.Xn&&(c.points=c.Xn,c.Xn=null)}b=a.Y;ki(b,!1);b.pc();b.bf();qi(b);ni(a);a.$t&&a.$t();a.$t=null;a.Zt=null;b.za("AnimationFinished");b.de()} -function ri(a,b,c){var d=b.ba,e=c.ba,f=null;c instanceof V&&(f=c.placeholder);null!==f?(c=f.lb(xb),c.x+=f.padding.left,c.y+=f.padding.top,ii(a,b,"position",c,b.position)):ii(a,b,"position",new w(e.x+e.width/2-d.width/2,e.y+e.height/2-d.height/2),b.position);ii(a,b,"opacity",.01,b.opacity)}function si(a,b,c){a.ld&&(null===a.Gl&&b.J()&&null===a.Fl&&(a.Gl=b.copy()),a.Fl=c.copy())} -u.defineProperty(Te,{isEnabled:"isEnabled"},function(){return this.Ne},function(a){u.j(a,"boolean",Te,"isEnabled");this.Ne=a});u.defineProperty(Te,{duration:"duration"},function(){return this.Ex},function(a){u.j(a,"number",Te,"duration");1>a&&u.wa(a,">= 1",Te,"duration");this.Ex=a});u.u(Te,{Vg:"isAnimating"},function(){return this.dj});u.u(Te,{HJ:"isTicking"},function(){return this.Fn});function ei(a,b){this.start=a;this.end=b} +Te.prototype.stopAnimation=Te.prototype.Mi=function(){!0===this.bd&&(this.bd=!1,this.CA&&this.Y.de());this.dj&&this.Ne&&(li(this),mi(this,this.Y,this.oF,this.PA,this.tx,this.tx,null!==this.Gl&&null!==this.Fl),ni(this),oi(this))};function oi(a){a.dj=!1;a.Gl=null;a.Fl=null;a.Sn=new la(S,ei);li(a);for(var b=a.Y.links;b.next();){var c=b.value;null!==c.Xn&&(c.points=c.Xn,c.Xn=null)}b=a.Y;ki(b,!1);b.pc();b.bf();qi(b);ni(a);a.$t&&a.$t();a.$t=null;a.Zt=null;b.za("AnimationFinished");b.de()} +function ri(a,b,c){var d=b.ba,e=c.ba,f=null;c instanceof V&&(f=c.placeholder);null!==f?(c=f.lb(xb),c.x+=f.padding.left,c.y+=f.padding.top,ii(a,b,"position",c,b.position)):ii(a,b,"position",new w(e.x+e.width/2-d.width/2,e.y+e.height/2-d.height/2),b.position);ii(a,b,"opacity",.01,b.opacity)}function si(a,b,c){a.bd&&(null===a.Gl&&b.J()&&null===a.Fl&&(a.Gl=b.copy()),a.Fl=c.copy())} +u.defineProperty(Te,{isEnabled:"isEnabled"},function(){return this.Ne},function(a){u.j(a,"boolean",Te,"isEnabled");this.Ne=a});u.defineProperty(Te,{duration:"duration"},function(){return this.Ex},function(a){u.j(a,"number",Te,"duration");1>a&&u.wa(a,">= 1",Te,"duration");this.Ex=a});u.u(Te,{Vg:"isAnimating"},function(){return this.dj});u.u(Te,{JJ:"isTicking"},function(){return this.Fn});function ei(a,b){this.start=a;this.end=b} function we(){0=a)return b;for(var c=0,d=0,e=0,f=0,h=0,k=this.Db.i;k.next();){var l=k.value;l instanceof V?e++:l instanceof U?d++:l instanceof W?f++:l instanceof lf?h++:c++}k="";0=d.count)a=d.count;else if(d.ja(a)===b)return-1;d.Yd(a,b);b.Js(c);d=this.g;null!==d&&(c?d.ma():d.Eo(b));b instanceof V&&this.Jw(b);return a}; -g.Fe=function(a,b,c){if(!c&&b.layer!==this&&null!==b.layer)return b.layer.Fe(a,b,c);var d=this.Db;if(0>a||a>=d.length){if(a=d.indexOf(b),0>a)return-1}else if(d.ja(a)!==b&&(a=d.indexOf(b),0>a))return-1;b.Ks(c);d.hd(a);d=this.g;null!==d&&(c?d.ma():d.Fe(b));b.Bu=null;return a}; -g.Jw=function(a){for(;null!==a;){if(a.layer===this){var b=a;if(0!==b.Mc.count){for(var c=-1,d=-1,e=this.Db.n,f=e.length,h=0;hd&&k.Ra===b&&(d=h,0<=c))break}!(0>d)&&da||a>=d.length){if(a=d.indexOf(b),0>a)return-1}else if(d.ja(a)!==b&&(a=d.indexOf(b),0>a))return-1;b.Ks(c);d.jd(a);d=this.g;null!==d&&(c?d.ma():d.Fe(b));b.Bu=null;return a}; +g.Jw=function(a){for(;null!==a;){if(a.layer===this){var b=a;if(0!==b.Mc.count){for(var c=-1,d=-1,e=this.Db.n,f=e.length,h=0;hd&&k.Ra===b&&(d=h,0<=c))break}!(0>d)&&da||1l&&(a.position= new w(-(a.uj.scrollWidth-a.Ab)+this.scrollLeft-a.Ab/r+a.Cd.right,a.position.y))),this.cC&&a.Se&&(bn&&(a.position=new w(a.position.x,-(a.vj.scrollHeight-a.zb)+this.scrollTop-a.zb/r+a.Cd.bottom))),u.v(s),cj(a),a.Zu=!1,a.Hl=!1,b=a.Cd,c=a.ob,k=b.right,l=c.right,m=b.bottom,n=c.bottom,p=b.x,q=c.x,b=b.y,c=c.y,e>=d&&p>=q&&k<=l&&(a.ty.style.width="1px"),h>=f&&b>=c&&m<=n&&(a.uy.style.height="1px")}}else dj(this.Y)}; -D.prototype.Ru=function(){this.Y.isEnabled?this.Y.sy=!0:dj(this.Y)};D.prototype.computeBounds=D.prototype.kg=function(){0c&&(e=c),ea.Xg&&(e=a.Xg),e):b===lj?(e=l>k?(h-a.zd)/d:(f-a.zd)/e,e>c&&(e=c),ea.Xg&&(e=a.Xg),e):a.scale}D.prototype.zoomToFit=D.prototype.zoomToFit=function(){this.scale=hj(this,kj)}; D.prototype.zoomToRect=function(a,b){void 0===b&&(b=kj);var c=a.width,d=a.height;if(!(0===c||0===d||isNaN(c)&&isNaN(d))){var e=1;if(b===kj||b===lj)if(isNaN(c))e=this.ob.height*this.scale/d;else if(isNaN(d))e=this.ob.width*this.scale/c;else var e=this.Ab,f=this.zb,e=b===lj?f/d>e/c?(f-(this.qk?this.zd:0))/d:(e-(this.rk?this.zd:0))/c:Math.min(f/d,e/c);this.scale=e;this.position=new w(a.x,a.y)}};u.defineProperty(D,{qz:null},function(){return this.sc},function(a){this.sc=a}); D.prototype.alignDocument=function(a,b){this.ei&&jj(this,this.kg());var c=this.Cd,d=this.ob,e=this.sc;this.sc=!0;this.position=new w(c.x+(a.x*c.width+a.offsetX)-(b.x*d.width-b.offsetX),c.y+(a.y*c.height+a.offsetY)-(b.y*d.height-b.offsetY));this.sc=e;this.ma()}; @@ -666,24 +667,24 @@ D.prototype.findObjectAt=D.prototype.ke=function(a,b,c){void 0===b&&(b=null);voi D.prototype.findObjectsAt=D.prototype.ys=function(a,b,c,d){void 0===b&&(b=null);void 0===c&&(c=null);d instanceof E||d instanceof F||(d=new F(S));ej(this);for(var e=this.Zb.Fm;e.next();){var f=e.value;f.visible&&f.ys(a,b,c,d)}return d};D.prototype.findObjectsIn=D.prototype.Nj=function(a,b,c,d,e){void 0===b&&(b=null);void 0===c&&(c=null);void 0===d&&(d=!1);e instanceof E||e instanceof F||(e=new F(S));ej(this);for(var f=this.Zb.Fm;f.next();){var h=f.value;h.visible&&h.Nj(a,b,c,d,e)}return e}; D.prototype.dz=function(a,b,c,d,e,f){var h=new F(S);ej(this);for(var k=this.Zb.Fm;k.next();){var l=k.value;l.visible&&l.dz(a,b,c,d,h,e,f)}return h};D.prototype.findObjectsNear=D.prototype.ym=function(a,b,c,d,e,f){void 0===c&&(c=null);void 0===d&&(d=null);void 0===e&&(e=!0);if(!1!==e&&!0!==e){if(e instanceof E||e instanceof F)f=e;e=!0}f instanceof E||f instanceof F||(f=new F(S));ej(this);for(var h=this.Zb.Fm;h.next();){var k=h.value;k.visible&&k.ym(a,b,c,d,e,f)}return f}; function yf(a){-1!==a.lv&&(u.clearTimeout(a.lv),a.lv=-1)}function mj(a,b){var c=b.copy();a.lv=u.setTimeout(function(){c.button=2;a.N=c;a.kv=!0;a.doMouseUp()},850)}D.prototype.acceptEvent=function(a){var b=this.Jc;this.Jc=this.Ob;this.Ob=b;nj(this,this,a,b,a instanceof MouseEvent);return b}; -function nj(a,b,c,d,e){d.g=b;e?oj(a,c,d):(d.ff=b.Ob.ff,d.da=b.Ob.da);a=0;c.ctrlKey&&(a+=1);c.altKey&&(a+=2);c.shiftKey&&(a+=4);c.metaKey&&(a+=8);d.gd=a;d.button=c.button;u.Em&&0===c.button&&c.ctrlKey&&(d.button=2);d.Wk=!1;d.up=!1;d.Te=1;d.Uk=0;d.Tc=!1;d.bubbles=!1;d.event=c;d.timestamp=Date.now();d.Ps=!1;d.Cg=c.target.Y?c.target.Y:null;d.pe=null} -function pj(a,b,c,d,e){d.g=a;oj(a,c,d);d.gd=0;d.button=0;d.Wk=!0;d.up=!1;d.Te=1;d.Uk=0;d.Tc=!1;d.bubbles=!0;d.event=b;d.timestamp=Date.now();d.Ps=e;d.Cg=b.target.Y?b.target.Y:null;d.pe=null;a.nk=d.copy();Ef=null} -function qj(a,b,c,d,e){var f=null;d.g=a;if(null!==c){var f=window.document.elementFromPoint(c.clientX,c.clientY),h;f&&f.Y?h=f.Y:(c=b.changedTouches[0],h=a);oj(a,c,d)}else null!==a.Jc?(d.da=a.Jc.da,d.ff=a.Jc.ff,d.Cg=a.Jc.Cg):null!==a.nk&&(d.da=a.nk.da,d.ff=a.nk.ff,d.Cg=a.nk.Cg);d.gd=0;d.button=0;d.Wk=!1;d.up=!1;d.Te=1;d.Uk=0;d.Tc=!1;d.bubbles=!1;d.event=b;d.timestamp=Date.now();d.Ps=e;d.Cg=h;d.pe=null} +function nj(a,b,c,d,e){d.g=b;e?oj(a,c,d):(d.ff=b.Ob.ff,d.da=b.Ob.da);a=0;c.ctrlKey&&(a+=1);c.altKey&&(a+=2);c.shiftKey&&(a+=4);c.metaKey&&(a+=8);d.hd=a;d.button=c.button;u.Em&&0===c.button&&c.ctrlKey&&(d.button=2);d.Wk=!1;d.up=!1;d.Te=1;d.Uk=0;d.Tc=!1;d.bubbles=!1;d.event=c;d.timestamp=Date.now();d.Ps=!1;d.Cg=c.target.Y?c.target.Y:null;d.pe=null} +function pj(a,b,c,d,e){d.g=a;oj(a,c,d);d.hd=0;d.button=0;d.Wk=!0;d.up=!1;d.Te=1;d.Uk=0;d.Tc=!1;d.bubbles=!0;d.event=b;d.timestamp=Date.now();d.Ps=e;d.Cg=b.target.Y?b.target.Y:null;d.pe=null;a.nk=d.copy();Ef=null} +function qj(a,b,c,d,e){var f=null;d.g=a;if(null!==c){var f=window.document.elementFromPoint(c.clientX,c.clientY),h;f&&f.Y?h=f.Y:(c=b.changedTouches[0],h=a);oj(a,c,d)}else null!==a.Jc?(d.da=a.Jc.da,d.ff=a.Jc.ff,d.Cg=a.Jc.Cg):null!==a.nk&&(d.da=a.nk.da,d.ff=a.nk.ff,d.Cg=a.nk.Cg);d.hd=0;d.button=0;d.Wk=!1;d.up=!1;d.Te=1;d.Uk=0;d.Tc=!1;d.bubbles=!1;d.event=b;d.timestamp=Date.now();d.Ps=e;d.Cg=h;d.pe=null} function rj(a,b){if(a.bubbles)return!0;void 0!==b.stopPropagation&&b.stopPropagation();(void 0===b.touches||2>b.touches.length)&&b.preventDefault();b.cancelBubble=!0;return!1} D.prototype.kH=function(a){if(!this.Y.isEnabled)return!1;var b=this.Y.Ob;nj(this.Y,this.Y,a,b,!1);b.key=String.fromCharCode(a.which);b.Wk=!0;switch(a.which){case 8:b.key="Backspace";break;case 33:b.key="PageUp";break;case 34:b.key="PageDown";break;case 35:b.key="End";break;case 36:b.key="Home";break;case 37:b.key="Left";break;case 38:b.key="Up";break;case 39:b.key="Right";break;case 40:b.key="Down";break;case 45:b.key="Insert";break;case 46:b.key="Del";break;case 48:b.key="0";break;case 187:case 61:case 107:b.key= "Add";break;case 189:case 173:case 109:b.key="Subtract";break;case 27:b.key="Esc"}this.Y.doKeyDown();return 187!==a.which&&189!==a.which&&48!==a.which&&107!==a.which&&109!==a.which&&61!==a.which&&173!==a.which||!0!==a.ctrlKey?rj(b,a):(a.cancelBubble=!0,a.preventDefault(),a.stopPropagation(),!1)}; D.prototype.lH=function(a){if(!this.Y.isEnabled)return!1;var b=this.Y.Ob;nj(this.Y,this.Y,a,b,!1);b.key=String.fromCharCode(a.which);b.up=!0;switch(a.which){case 8:b.key="Backspace";break;case 33:b.key="PageUp";break;case 34:b.key="PageDown";break;case 35:b.key="End";break;case 36:b.key="Home";break;case 37:b.key="Left";break;case 38:b.key="Up";break;case 39:b.key="Right";break;case 40:b.key="Down";break;case 45:b.key="Insert";break;case 46:b.key="Del";break;case 93:a.preventDefault()}this.Y.doKeyUp(); -return rj(b,a)};D.prototype.$p=function(a){var b=this.ib;if(null===b)return new w(0,0);var c=this.Ab,d=this.zb,b=b.getBoundingClientRect(),c=a.clientX-c/b.width*b.left;a=a.clientY-d/b.height*b.top;return null!==this.Sd?(a=new w(c,a),Wa(a,this.Sd),a):new w(c,a)};function oj(a,b,c){var d=a.ib,e=a.Ab,f=a.zb,h=0,k=0;null!==d&&(d=d.getBoundingClientRect(),h=b.clientX-e/d.width*d.left,k=b.clientY-f/d.height*d.top);c.ff.m(h,k);null!==a.Sd?(b=u.fc(h,k),a.Sd.Oh(b),c.da.assign(b),u.v(b)):c.da.m(h,k)} +return rj(b,a)};D.prototype.$p=function(a){var b=this.ib;if(null===b)return new w(0,0);var c=this.Ab,d=this.zb,b=b.getBoundingClientRect(),c=a.clientX-c/b.width*b.left;a=a.clientY-d/b.height*b.top;return null!==this.Sd?(a=new w(c,a),Wa(a,this.Sd),a):new w(c,a)};function oj(a,b,c){var d=a.ib,e=a.Ab,f=a.zb,h=0,k=0;null!==d&&(d=d.getBoundingClientRect(),h=b.clientX-e/d.width*d.left,k=b.clientY-f/d.height*d.top);c.ff.m(h,k);null!==a.Sd?(b=u.fc(h,k),a.Sd.Ph(b),c.da.assign(b),u.v(b)):c.da.m(h,k)} D.prototype.invalidateDocumentBounds=D.prototype.pc=function(){this.ei||(this.ei=!0,this.de(!0))};function qi(a){a.vd||ej(a);a.ei&&jj(a,a.kg());for(a=a.Ul.i;a.next();)qi(a.value)}D.prototype.redraw=D.prototype.Sz=function(){this.sc||this.vd||(this.ma(),sj(this),cj(this),this.pc(),this.bf())};D.prototype.isUpdateRequested=function(){return this.Ef}; D.prototype.delayInitialization=D.prototype.oG=function(a){void 0===a&&(a=null);var b=this.Lb,c=b.isEnabled;b.Mi();b.isEnabled=!1;Dg(this);this.lf=!1;b.isEnabled=c;null!==a&&u.setTimeout(a,1)};D.prototype.requestUpdate=D.prototype.de=function(a){void 0===a&&(a=!1);if(!0!==this.Ef&&!(this.sc||!1===a&&this.vd)){this.Ef=!0;var b=this;requestAnimationFrame(function(){b.Ef&&b.bf()})}};D.prototype.maybeUpdate=D.prototype.bf=function(){if(!this.un||this.Ef)this.un&&(this.un=!1),Dg(this)}; function tj(a,b){a.sc||!a.Hl||dj(a)||(b&&ej(a),gj(a,!1))} -function Dg(a){if(!a.vd&&(a.Ef=!1,null!==a.Jb)){a.vd=!0;var b=a.Uh,c=a.VB;if(!b.Fn&&0!==c.length){for(var d=c.n,e=d.length,f=0;fb;b++){var c=a.Xf.i;if(null===c||0===a.Xf.count)break;a.Xf=new F(S);var d=a,e=a.Xf;for(c.reset();c.next();){var f=c.value;!f.Fd()||f instanceof V||!f.Ea()||(f.hl()?(Ph(f,Infinity,Infinity),f.zc()):e.add(f))}for(c.reset();c.next();)f=c.value,f instanceof V&&f.Ea()&&zj(d,f);for(c.reset();c.next();)f=c.value,f instanceof W&&(d=f,d.Ea()&&(d.hl()?(Ph(d,Infinity,Infinity),d.zc(),d.Xs()):e.add(d)));for(c.reset();c.next();)d=c.value,d instanceof lf&&d.Ea()&&(d.hl()?(Ph(d,Infinity,Infinity),d.zc()):e.add(d))}}function zj(a,b){for(var c=u.eb(),d=u.eb(),e=b.Mc;e.next();){var f=e.value;f.Ea()&&(f instanceof V?(Aj(f)||Bj(f)||Cj(f))&&zj(a,f):f instanceof W?f.W==b||f.ca==b?d.push(f):c.push(f):(Ph(f,Infinity,Infinity),f.zc()))}for(var e=c.length,h=0;hk+1&&(n=Math.max((v- k)*C+a.Ab,n)),q+1l+1&&(y=Math.max((p-l)*C+a.zb,y)),r+1k+1&&(n=Math.max((v-k)*C+a.Ab,n)),q+1l+1&&(y=Math.max((p-l)*C+a.zb,y)),r+1k+1&&(a.uj.scrollLeft=a.position.x*C));a.lz&&a.Se&&(r+1l+1&&(a.vj.scrollTop=a.position.y*C));h&&(a.fq=!0);m=a.Ab;c=a.zb;a.vj.style.height=c+"px";a.vj.style.width=m+(a.rk?a.zd:0)+"px";a.uj.style.width=m+"px";a.uj.style.height=c+(a.qk?a.zd:0)+"px";a.sy=!1;return d!==m||e!==c||a.Lb.ld?(n=a.ob,a.dt(f,n,h),!1):!0} +a.uj.scrollWidth-a.uj.clientWidth:v>k+1&&(a.uj.scrollLeft=a.position.x*C));a.lz&&a.Se&&(r+1l+1&&(a.vj.scrollTop=a.position.y*C));h&&(a.fq=!0);m=a.Ab;c=a.zb;a.vj.style.height=c+"px";a.vj.style.width=m+(a.rk?a.zd:0)+"px";a.uj.style.width=m+"px";a.uj.style.height=c+(a.qk?a.zd:0)+"px";a.sy=!1;return d!==m||e!==c||a.Lb.bd?(n=a.ob,a.dt(f,n,h),!1):!0} D.prototype.add=D.prototype.add=function(a){u.C(a,G,D,"add:part");var b=a.g;if(b!==this){null!==b&&u.k("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+b.toString());this.Vm&&(a.wk="Tool");var c=a.wf,b=this.ws(c);null===b&&(b=this.ws(""));null===b&&u.k('Cannot add a Part when unable find a Layer named "'+c+'" and there is no default Layer');a.layer!==b&&(c=b.Eo(99999999,a,a.g===this),0<=c&&this.Dc(be,"parts",b,null,a,null,c),b.Ac||this.pc(),a.H(Jj),c=a.Rs,null!== c&&c(a,null,b))}}; D.prototype.Eo=function(a){if(a instanceof U){if(this.Rn.add(a),a instanceof V){var b=a.Ra;null===b?this.Ik.add(a):b.Pn.add(a);b=a.Qb;null!==b&&(b.g=this)}}else a instanceof W?this.Nn.add(a):a instanceof lf||this.Db.add(a);var c=this;Kj(a,function(a){Lj(c,a)});a.Pb&&a.R();b=a.data;null!==b&&(a instanceof lf||(a instanceof W?this.lk.add(b,a):this.$h.add(b,a)),Kj(a,function(a){Mj(c,a)}));!0!==Bj(a)&&!0!==Cj(a)||this.Xf.add(a);Nj(a,!0,this);Oj(a)?(a.ba.J()&&this.ma(yi(a,a.ba)),this.pc()):a.Ea()&&a.ba.J()&& @@ -716,11 +717,11 @@ D.prototype.addLayerBefore=D.prototype.LF=function(a,b){Sj(this,a,b);a.Ec(this); D.prototype.addLayerAfter=function(a,b){Sj(this,a,b);a.Ec(this);var c=this.Zb,d=c.indexOf(a);0<=d&&(c.remove(a),null!==this.Od&&this.Dc(ce,"layers",this,a,null,d,null));for(var e=c.count,f=0;fd&&this.pc()}; D.prototype.removeLayer=function(a){u.C(a,we,D,"removeLayer:layer");a.g!==this&&u.k("Cannot remove a Layer from another Diagram: "+a+" of "+a.g);if(""!==a.name){var b=this.Zb,c=b.indexOf(a);if(b.remove(a)){for(b=a.Db.copy().i;b.next();){var d=b.value,e=d.wf;d.wf=e!==a.name?e:""}null!==this.Od&&this.Dc(ce,"layers",this,a,null,c,null);this.ma();this.pc()}}};D.prototype.findLayer=D.prototype.ws=function(a){for(var b=this.mw;b.next();){var c=b.value;if(c.name===a)return c}return null}; D.prototype.addChangedListener=D.prototype.Jy=function(a){u.j(a,"function",D,"addChangedListener:listener");null===this.Ui&&(this.Ui=new E("function"));this.Ui.add(a)};D.prototype.removeChangedListener=D.prototype.Tz=function(a){u.j(a,"function",D,"removeChangedListener:listener");null!==this.Ui&&(this.Ui.remove(a),0===this.Ui.count&&(this.Ui=null))}; -D.prototype.Jv=function(a){this.cb||this.ha.ED(a);a.Ad!==ae&&(this.Qh=!0);if(null!==this.Ui){var b=this.Ui,c=b.length;if(1===c)b=b.ja(0),b(a);else if(0!==c)for(var d=b.Ke(),e=0;ea.Xg&&(c=a.Xg);a.position=new w(a.Ma.x+h.x/b-h.x/c,a.Ma.y+h.y/b- h.y/c);a.sc=!1;a.$b=c;a.dt(d,a.ob);gj(a,!1);a.ma();sj(a)}}D.prototype.dt=function(a,b,c){void 0===c&&(c=!1);c||sj(this);cj(this);var d=this.Qb;null===d||!d.jw||c||a.width===b.width&&a.height===b.height||d.H();d=this.Va;!0===this.Jl&&d instanceof jf&&(this.N.da=this.XE(this.N.ff),d.doMouseMove());this.nz(a,b);vj(this);this.za("ViewportBoundsChanged",c?u.mh:null,a)}; @@ -749,8 +750,8 @@ u.defineProperty(D,{lz:"hasVerticalScrollbar"},function(){return this.qu},functi u.defineProperty(D,{Re:"allowHorizontalScroll"},function(){return this.Jt},function(a){var b=this.Jt;b!==a&&(u.j(a,"boolean",D,"allowHorizontalScroll"),this.Jt=a,this.h("allowHorizontalScroll",b,a),gj(this,!1))});u.defineProperty(D,{Se:"allowVerticalScroll"},function(){return this.Mt},function(a){var b=this.Mt;b!==a&&(u.j(a,"boolean",D,"allowVerticalScroll"),this.Mt=a,this.h("allowVerticalScroll",b,a),gj(this,!1))}); u.defineProperty(D,{lt:"scrollHorizontalLineChange"},function(){return this.$u},function(a){var b=this.$u;b!==a&&(u.j(a,"number",D,"scrollHorizontalLineChange"),0>a&&u.wa(a,">= 0",D,"scrollHorizontalLineChange"),this.$u=a,this.h("scrollHorizontalLineChange",b,a))}); u.defineProperty(D,{mt:"scrollVerticalLineChange"},function(){return this.av},function(a){var b=this.av;b!==a&&(u.j(a,"number",D,"scrollVerticalLineChange"),0>a&&u.wa(a,">= 0",D,"scrollVerticalLineChange"),this.av=a,this.h("scrollVerticalLineChange",b,a))});u.defineProperty(D,{N:"lastInput"},function(){return this.Ob},function(a){this.Ob=a});u.defineProperty(D,{wc:"firstInput"},function(){return this.nk},function(a){this.nk=a}); -u.defineProperty(D,{ac:"currentCursor"},function(){return this.sx},function(a){""===a&&(a=this.Pp);this.sx!==a&&(u.j(a,"string",D,"currentCursor"),null!==this.ib&&(this.sx=a,this.ib.style.cursor=a,this.Jb.style.cursor=a))});u.defineProperty(D,{lJ:"defaultCursor"},function(){return this.Pp},function(a){""===a&&(a="auto");var b=this.Pp;b!==a&&(u.j(a,"string",D,"defaultCursor"),this.Pp=a,this.h("defaultCursor",b,a))}); -u.defineProperty(D,{zJ:"hasGestureZoom"},function(){return this.yn},function(a){var b=this.yn;b!==a&&(u.j(a,"boolean",D,"hasGestureZoom"),this.yn=a,this.h("hasGestureZoom",b,a))});u.defineProperty(D,{click:"click"},function(){return this.Wh},function(a){var b=this.Wh;b!==a&&(null!==a&&u.j(a,"function",D,"click"),this.Wh=a,this.h("click",b,a))}); +u.defineProperty(D,{ac:"currentCursor"},function(){return this.sx},function(a){""===a&&(a=this.Pp);this.sx!==a&&(u.j(a,"string",D,"currentCursor"),null!==this.ib&&(this.sx=a,this.ib.style.cursor=a,this.Jb.style.cursor=a))});u.defineProperty(D,{mJ:"defaultCursor"},function(){return this.Pp},function(a){""===a&&(a="auto");var b=this.Pp;b!==a&&(u.j(a,"string",D,"defaultCursor"),this.Pp=a,this.h("defaultCursor",b,a))}); +u.defineProperty(D,{AJ:"hasGestureZoom"},function(){return this.yn},function(a){var b=this.yn;b!==a&&(u.j(a,"boolean",D,"hasGestureZoom"),this.yn=a,this.h("hasGestureZoom",b,a))});u.defineProperty(D,{click:"click"},function(){return this.Wh},function(a){var b=this.Wh;b!==a&&(null!==a&&u.j(a,"function",D,"click"),this.Wh=a,this.h("click",b,a))}); u.defineProperty(D,{ts:"doubleClick"},function(){return this.ci},function(a){var b=this.ci;b!==a&&(null!==a&&u.j(a,"function",D,"doubleClick"),this.ci=a,this.h("doubleClick",b,a))});u.defineProperty(D,{Uy:"contextClick"},function(){return this.Yh},function(a){var b=this.Yh;b!==a&&(null!==a&&u.j(a,"function",D,"contextClick"),this.Yh=a,this.h("contextClick",b,a))}); u.defineProperty(D,{Fz:"mouseOver"},function(){return this.mi},function(a){var b=this.mi;b!==a&&(null!==a&&u.j(a,"function",D,"mouseOver"),this.mi=a,this.h("mouseOver",b,a))});u.defineProperty(D,{Ez:"mouseHover"},function(){return this.li},function(a){var b=this.li;b!==a&&(null!==a&&u.j(a,"function",D,"mouseHover"),this.li=a,this.h("mouseHover",b,a))}); u.defineProperty(D,{Dz:"mouseHold"},function(){return this.ki},function(a){var b=this.ki;b!==a&&(null!==a&&u.j(a,"function",D,"mouseHold"),this.ki=a,this.h("mouseHold",b,a))});u.defineProperty(D,{EH:"mouseDragOver"},function(){return this.Nu},function(a){var b=this.Nu;b!==a&&(null!==a&&u.j(a,"function",D,"mouseDragOver"),this.Nu=a,this.h("mouseDragOver",b,a))}); @@ -761,17 +762,17 @@ u.defineProperty(D,{Va:"currentTool"},function(){return this.ux},function(a){var u.defineProperty(D,{wH:"maxSelectionCount"},function(){return this.Iu},function(a){var b=this.Iu;if(b!==a)if(u.j(a,"number",D,"maxSelectionCount"),0<=a&&!isNaN(a)){if(this.Iu=a,this.h("maxSelectionCount",b,a),!this.ha.gb&&(a=this.selection.count-a,0= 0",D,"maxSelectionCount")}); u.defineProperty(D,{HH:"nodeSelectionAdornmentTemplate"},function(){return this.Pu},function(a){var b=this.Pu;b!==a&&(u.C(a,lf,D,"nodeSelectionAdornmentTemplate"),this.Pu=a,this.h("nodeSelectionAdornmentTemplate",b,a))});u.defineProperty(D,{MG:"groupSelectionAdornmentTemplate"},function(){return this.mu},function(a){var b=this.mu;b!==a&&(u.C(a,lf,D,"groupSelectionAdornmentTemplate"),this.mu=a,this.h("groupSelectionAdornmentTemplate",b,a))}); u.defineProperty(D,{sH:"linkSelectionAdornmentTemplate"},function(){return this.Du},function(a){var b=this.Du;b!==a&&(u.C(a,lf,D,"linkSelectionAdornmentTemplate"),this.Du=a,this.h("linkSelectionAdornmentTemplate",b,a))});u.u(D,{bw:"highlighteds"},function(){return this.ru}); -u.defineProperty(D,{Qh:"isModified"},function(){var a=this.ha;return a.isEnabled?null!==a.Di?!0:this.Vx&&this.Ig!==a.Ii:this.Vx},function(a){if(this.Vx!==a){u.j(a,"boolean",D,"isModified");this.Vx=a;var b=this.ha;!a&&b.isEnabled&&(this.Ig=b.Ii);a||ik(this)}});function ik(a){var b=a.Qh;a.DC!==b&&(a.DC=b,a.za("Modified"))} +u.defineProperty(D,{Rh:"isModified"},function(){var a=this.ha;return a.isEnabled?null!==a.Di?!0:this.Vx&&this.Ig!==a.Ii:this.Vx},function(a){if(this.Vx!==a){u.j(a,"boolean",D,"isModified");this.Vx=a;var b=this.ha;!a&&b.isEnabled&&(this.Ig=b.Ii);a||ik(this)}});function ik(a){var b=a.Rh;a.DC!==b&&(a.DC=b,a.za("Modified"))} u.defineProperty(D,{ga:"model"},function(){return this.Od},function(a){var b=this.Od;if(b!==a){u.C(a,J,D,"model");this.Va.doCancel();null!==b&&b.ha!==a.ha&&b.ha.ND&&u.k("Do not replace a Diagram.model while a transaction is in progress.");this.Lb.Mi();this.Lv();this.lf=!1;this.un=!0;this.Ig=-2;this.Ef=!1;var c=this.vd;this.vd=!0;this.Lb.ml();null!==b&&(b.Tz(this.GB),b instanceof Q&&jk(this,b.Qj),jk(this,b.ah));this.Od=a;a.Jy(this.FB);kk(this,a.ah);a instanceof Q&&lk(this,a.Qj);a.Tz(this.FB);a.Jy(this.GB); this.vd=c;this.sc||this.ma();null!==b&&(a.ha.isEnabled=b.ha.isEnabled)}});u.defineProperty(D,{Na:null},function(){return this.yB},function(a){this.yB=a}); -function Qi(a,b){if(b.ga===a.ga){var c=b.Ad,d=b.propertyName;if(c===ae&&"S"===d[0])if("StartingFirstTransaction"===d)c=a.tb,c.cf.each(function(b){b.Ec(a)}),c.Mf.each(function(b){b.Ec(a)}),c.Nf.each(function(b){b.Ec(a)}),a.vd||a.lf||(a.du=!0,a.un&&(a.Ef=!0),a.Uh.ml());else if("StartingUndo"===d||"StartingRedo"===d){var e=a.Lb;e.Vg&&!a.cb&&e.Mi();a.za("ChangingSelection")}else"StartedTransaction"===d&&(e=a.Lb,e.Vg&&!a.cb&&e.Mi(),a.zu&&e.ml());else if(a.Na){a.Na=!1;try{var f=b.Lf;if(""!==f)if(c===$d){if("linkFromKey"=== -f){var h=b.object,k=a.ng(h);if(null!==k){var l=b.newValue,m=a.Xe(l);k.W=m}}else if("linkToKey"===f)h=b.object,k=a.ng(h),null!==k&&(l=b.newValue,m=a.Xe(l),k.ca=m);else if("linkFromPortId"===f){if(h=b.object,k=a.ng(h),null!==k){var n=b.newValue;"string"===typeof n&&(k.pg=n)}}else if("linkToPortId"===f)h=b.object,k=a.ng(h),null!==k&&(n=b.newValue,"string"===typeof n&&(k.lh=n));else if("nodeGroupKey"===f){var h=b.object,p=a.Nh(h);if(null!==p){var q=b.newValue;if(void 0!==q){var r=a.Xe(q);p.Ra=r instanceof +function Qi(a,b){if(b.ga===a.ga){var c=b.Ad,d=b.propertyName;if(c===ae&&"S"===d[0])if("StartingFirstTransaction"===d)c=a.tb,c.cf.each(function(b){b.Ec(a)}),c.Mf.each(function(b){b.Ec(a)}),c.Nf.each(function(b){b.Ec(a)}),a.vd||a.lf||(a.du=!0,a.un&&(a.Ef=!0),a.nh.ml());else if("StartingUndo"===d||"StartingRedo"===d){var e=a.Lb;e.Vg&&!a.cb&&e.Mi();a.za("ChangingSelection")}else"StartedTransaction"===d&&(e=a.Lb,e.Vg&&!a.cb&&e.Mi(),a.zu&&e.ml());else if(a.Na){a.Na=!1;try{var f=b.Lf;if(""!==f)if(c===$d){if("linkFromKey"=== +f){var h=b.object,k=a.ng(h);if(null!==k){var l=b.newValue,m=a.Xe(l);k.W=m}}else if("linkToKey"===f)h=b.object,k=a.ng(h),null!==k&&(l=b.newValue,m=a.Xe(l),k.ca=m);else if("linkFromPortId"===f){if(h=b.object,k=a.ng(h),null!==k){var n=b.newValue;"string"===typeof n&&(k.pg=n)}}else if("linkToPortId"===f)h=b.object,k=a.ng(h),null!==k&&(n=b.newValue,"string"===typeof n&&(k.lh=n));else if("nodeGroupKey"===f){var h=b.object,p=a.Oh(h);if(null!==p){var q=b.newValue;if(void 0!==q){var r=a.Xe(q);p.Ra=r instanceof V?r:null}else p.Ra=null}}else if("linkLabelKeys"===f){if(h=b.object,k=a.ng(h),null!==k){var s=b.oldValue,t=b.newValue;if(u.isArray(s))for(var v=u.qb(s),x=0;xl)){var m=l;sk(k)&&m++;k.Fe(m);tk(k,m,l)}}}}function Mj(a,b){var c=b.gi;if(u.isArray(c)){var d=a.Ml.ta(c);if(null===d)d=[],d.push(b),a.Ml.add(c,d);else{for(c=0;c=f.length)return!1;for(var h=0;hthis.scale&&(this.scale=a)):u.wa(a,"> 0",D,"minScale"))}); u.defineProperty(D,{Xg:"maxScale"},function(){return this.Hu},function(a){u.ze(a,D,"maxScale");var b=this.Hu;b!==a&&(0 0",D,"maxScale"))});u.defineProperty(D,{Rm:"zoomPoint"},function(){return this.wv},function(a){this.wv.L(a)||(u.C(a,w,D,"zoomPoint"),this.wv=a=a.Z())}); -u.defineProperty(D,{Ty:"contentAlignment"},function(){return this.dn},function(a){var b=this.dn;b.L(a)||(u.C(a,L,D,"contentAlignment"),this.dn=a=a.Z(),this.h("contentAlignment",b,a),gj(this,!1))});u.defineProperty(D,{CJ:"initialContentAlignment"},function(){return this.An},function(a){var b=this.An;b.L(a)||(u.C(a,L,D,"initialContentAlignment"),this.An=a=a.Z(),this.h("initialContentAlignment",b,a))}); +u.defineProperty(D,{Ty:"contentAlignment"},function(){return this.dn},function(a){var b=this.dn;b.L(a)||(u.C(a,L,D,"contentAlignment"),this.dn=a=a.Z(),this.h("contentAlignment",b,a),gj(this,!1))});u.defineProperty(D,{DJ:"initialContentAlignment"},function(){return this.An},function(a){var b=this.An;b.L(a)||(u.C(a,L,D,"initialContentAlignment"),this.An=a=a.Z(),this.h("initialContentAlignment",b,a))}); u.defineProperty(D,{padding:"padding"},function(){return this.Pe},function(a){"number"===typeof a?a=new rb(a):u.C(a,rb,D,"padding");var b=this.Pe;b.L(a)||(this.Pe=a=a.Z(),this.pc(),this.h("padding",b,a))});u.u(D,{yg:"nodes"},function(){return this.Rn.i});u.u(D,{links:"links"},function(){return this.Nn.i});u.u(D,{Sj:"parts"},function(){return this.Db.i}); D.prototype.findTopLevelNodesAndLinks=function(){for(var a=new F(G),b=this.Rn.i;b.next();){var c=b.value;c.Ho&&a.add(c)}for(b=this.Nn.i;b.next();)c=b.value,c.Ho&&a.add(c);return a.i};D.prototype.findTopLevelGroups=function(){return this.Ik.i};u.defineProperty(D,{Qb:"layout"},function(){return this.Nd},function(a){var b=this.Nd;b!==a&&(u.C(a,Je,D,"layout"),null!==b&&(b.g=null,b.group=null),this.Nd=a,a.g=this,a.group=null,this.Ot=!0,this.h("layout",b,a),this.de())}); D.prototype.layoutDiagram=function(a){ej(this);a&&yk(this,!0);xj(this,!1)};function yk(a,b){for(var c=a.Ik.i;c.next();)Gk(a,c.value,b);null!==a.Qb&&(b?a.Qb.vf=!1:a.Qb.H())}function Gk(a,b,c){if(null!==b){for(var d=b.Pn.i;d.next();)Gk(a,d.value,c);null!==b.Qb&&(c?b.Qb.vf=!1:b.Qb.H())}} @@ -832,36 +833,36 @@ d.top/2&&(h.y-=k),b.ye.y+e.heig D.prototype.makeImage=function(a){void 0===a&&(a=new pa);var b=(a.document||document).createElement("img");b.src=this.tH(a);return b};D.prototype.makeImageData=D.prototype.tH=function(a){void 0===a&&(a=new pa);var b=Tk(this,a);return null!==b?b.toDataURL(a.type,a.details):""};var Uk=!1; function Tk(a,b){a.Lb.Mi();a.bf();if(null===a.ib)return null;"object"!==typeof b&&u.k("properties argument must be an Object.");var c=!1,d=b.size||null,e=b.scale||null;void 0!==b.scale&&isNaN(b.scale)&&(e="NaN");var f=b.maxSize;void 0===b.maxSize&&(c=!0,f="svg"===b.context?new ia(Infinity,Infinity):new ia(2E3,2E3));var h=b.position||null,k=b.parts||null,l=void 0===b.padding?1:b.padding,m=b.background||null,n=b.omitTemporary;void 0===n&&(n=!0);var p=b.document||document,q=b.elementFinished||null,r= b.showTemporary;void 0===r&&(r=!n);n=b.showGrid;void 0===n&&(n=r);null!==d&&isNaN(d.width)&&isNaN(d.height)&&(d=null);"number"===typeof l?l=new rb(l):l instanceof rb||(l=new rb(0));l.left=Math.max(l.left,0);l.right=Math.max(l.right,0);l.top=Math.max(l.top,0);l.bottom=Math.max(l.bottom,0);a.qn=!1;$i(a);var s=new oa(null,p),t=s.getContext("2d"),v=s;if(!(d||e||k||h))return s.width=a.Ab+Math.ceil(l.left+l.right),s.height=a.zb+Math.ceil(l.top+l.bottom),"svg"===b.context&&(t=v=new Nc(s.Dd,p,q),t instanceof -Nc&&(a.qn=!0)),Gj(a,t,l,new ia(s.width,s.height),a.$b,a.Ma,k,m,r,n),a.qn=!0,v;var x=a.Eb.Pv,B=new w(0,0),y=a.Cd.copy();y.tI(a.padding);if(r)for(var C=!0,C=a.Zb.n,I=C.length,H=0;Hx?(e=x,h=y.width,Z=y.height):(h=f.width,Z=f.height)):(h=y.width*e,Z=y.height*e):(e=x,h=y.width,Z=y.height);null!==l?(h+=aa,Z+=C):l=new rb(0);null!==f&&(d=f.width,f=f.height,"svg"!==b.context&&c&&!Uk&&(h>d||Z>f)&&(u.trace("Diagram.makeImage(data): Diagram width or height is larger than the default max size. ("+Math.ceil(h)+"x"+Math.ceil(Z)+" vs 2000x2000) Consider increasing the max size."),Uk=!0), isNaN(d)&&(d=2E3),isNaN(f)&&(f=2E3),isFinite(d)&&(h=Math.min(h,d)),isFinite(f)&&(Z=Math.min(Z,f)));s.width=Math.ceil(h);s.height=Math.ceil(Z);"svg"===b.context&&(t=v=new Nc(s.Dd,p,q),t instanceof Nc&&(a.qn=!0));Gj(a,t,l,new ia(Math.ceil(h),Math.ceil(Z)),e,B,k,m,r,n);a.qn=!0;return v}D.inherit=function(a,b){u.j(a,"function",D,"inherit");u.j(b,"function",D,"inherit");b.AF&&u.k("Cannot inherit from "+u.rg(b));u.Ga(a,b)}; -function Vi(){this.DF="63ad05bbe23a1786468a4c741b6d2";this.DF===this._tk?this.vh=!0:Vk(this,!1)} -function Vk(a,b){var c="p",d=window[u.Da("76a715b2f73f148a")][u.Da("72ba13b5")];if(u.Da("77bb5bb2f32603de")===window[u.Da("76a715b2f73f148a")][u.Da("6aba19a7ec351488")])try{a.vh=!window[u.Da("4da118b7ec2108")]([u.Da("5bb806bfea351a904a84515e1b6d38b6")])([u.Da("49bc19a1e6")])([u.Da("59bd04a1e6380fa5539b")])([u.Da("7bb8069ae7")]===u.Da(u.adym));if(!1===a.vh)return;a.vh=!window[u.Da("4da118b7ec2108")]([u.Da("5bb806bfea351a904a84515e1b6d38b6")])([u.Da("49bc19a1e6")])([u.Da("59bd04a1e6380fa5539b6c7a197c31bb4cfd3e")])([u.Da("7bb8069ae7")]===u.Da(u.adym)); -if(!1===a.vh)return}catch(e){}for(var f=d[u.Da("76ad18b4f73e")],h=d[u.Da("73a612b6fb191d")](u.Da("35e7"))+2;h=d&&u.Da(u.adym)!==u.Da("7da71ca0ad381e90")&&(d=c[u.Da("73a612b6fb191d")](u.Da("76a715b2ef3e149757")));a.vh=!(0d&&u.Da(u.adym)!==u.Da("7da71ca0ad381e90")&&(d=c[u.Da("73a612b6fb191d")](u.Da("76a715b2ef3e149757")));a.wh=!(0<=d&&db.timeStamp-a.Pl)b.preventDefault();else if(a.Jc=a.Ob,a.Ob=c,nj(a,a,b,c,!0),c.Wk=!0,c.Te=b.detail,a.nk=c.copy(),!0===c.Vp.simulated)b.preventDefault(),b.simulated=!0;else if(Ef=null,a.doMouseDown(),1===b.button)return b.preventDefault(),!1}};a.So=function(b){if(a.isEnabled){a.Jl=!0;var c=a.Jc;if(u.Dm){if(400>b.timeStamp-a.Pl){b.preventDefault();return}a.Pl=b.timeStamp}if(u.Dm&&null!==a.Ir)a.Ir=null,b.preventDefault();else{a.Jc=a.Ob;a.Ob=c;nj(a,a,b,c,!0);c.up=!0;c.Te=b.detail;if(u.aH||u.bH)b.timeStamp- a.Plb.touches.length&&mj(a,c);rj(c,b)}};a.RE=function(b){if(a.isEnabled){var c=a.Jc;a.Jc=a.Ob;a.Ob=c;var d=null;0a.hr&& mj(a,c),rj(c,b))}};a.MH=function(b){if("touch"===b.pointerType&&!(2>a.hr)){var c=a.Df;c[0].pointerId===b.pointerId&&(c[0]=b);c[1].pointerId===b.pointerId&&(c[1]=b);a.isEnabled&&(c=a.Jc,a.Jc=a.Ob,a.Ob=c,qj(a,b,b,c,!0),yf(a),a.Hw(b,null,c.Cg)||(a.doMouseMove(),rj(c,b)))}};a.LH=function(b){if("touch"===b.pointerType){var c=a.WB;void 0!==c[b.pointerId]&&(a.hr--,delete c[b.pointerId],c=a.Df,null!==c[0]&&c[0].pointerId===b.pointerId&&(c[0]=null),null!==c[1]&&c[1].pointerId===b.pointerId&&(c[1]=null))}}; $i(a);Zi(a)}function Wk(a){1d.length&&(d="0"+d);2>e.length&&(e="0"+e);2>c.length&&(c="0"+c);return"#"+d+e+c};var cl=u.createElement("canvas").getContext("2d"),fa; ga.isValidColor=fa=function(a){if("black"===a)return!0;if(""===a)return!1;cl.fillStyle="#000000";var b=cl.fillStyle;cl.fillStyle=a;if(cl.fillStyle!==b)return!0;cl.fillStyle="#FFFFFF";b=cl.fillStyle;cl.fillStyle=a;return cl.fillStyle!==b}; -function S(){u.gc(this);this.ea=30723;this.Ic=1;this.Pg=null;this.Ub="";this.lc=this.Ib=null;this.Ma=(new w(NaN,NaN)).freeze();this.jf=(new ia(NaN,NaN)).freeze();this.nj=K.op;this.lj=K.jF;this.Sd=new ja;this.Xm=new ja;this.yk=new ja;this.$b=this.fu=1;this.Ym=0;this.Hh=dl;this.Gq=K.np;this.Pc=(new z(NaN,NaN,NaN,NaN)).freeze();this.Xb=(new z(NaN,NaN,NaN,NaN)).freeze();this.Hc=(new z(0,0,NaN,NaN)).freeze();this.Sr=this.Wp=this.Q=this.ir=this.jr=null;this.Tr=this.Xp=Infinity;this.vp=this.se=uc;this.wr= -0;this.tj=1;this.Cp=0;this.Wi=1;this.Ar=-Infinity;this.zr=0;this.Br=K.Wj;this.Cr=dh;this.Jp="";this.Gc=this.P=null;this.$m=-1;this.Wl=this.Xh=this.Bl=this.$n=null}u.Lh(S);u.fa("GraphObject",S); -S.prototype.cloneProtected=function(a){a.ea=this.ea|6144;a.Ic=this.Ic;a.Ub=this.Ub;a.Ib=this.Ib;a.lc=this.lc;a.Ma.assign(this.Ma);a.jf.assign(this.jf);a.nj=this.nj.Z();a.lj=this.lj.Z();a.yk=this.yk.copy();a.$b=this.$b;a.Ym=this.Ym;a.Hh=this.Hh;a.Gq=this.Gq.Z();a.Pc.assign(this.Pc);a.Xb.assign(this.Xb);a.Hc.assign(this.Hc);a.ir=this.ir;a.Q=null!==this.Q?this.Q.copy():null;a.Wp=this.Wp;a.Xp=this.Xp;a.Sr=this.Sr;a.Tr=this.Tr;a.se=this.se.Z();a.vp=this.vp.Z();a.wr=this.wr;a.tj=this.tj;a.Cp=this.Cp;a.Wi= -this.Wi;a.Ar=this.Ar;a.zr=this.zr;a.Br=this.Br.Z();a.Cr=this.Cr;a.Jp=this.Jp;a.P=null!==this.P?this.P.copy():null;a.Gc=this.Gc;a.$m=this.$m;if(null!==this.Bl){a.Bl=u.Pk(this.Bl);for(var b=0;bk;)k+=f[n++%l],p=!p;q=!1}else k=f[n++%l];k>m&&(k=m);var r=Math.sqrt(k*k/(1+e*e));0>d&&(r=-r);b+=r;c+=e*r;p?a.lineTo(b,c):a.moveTo(b,c);m-=k;p=!p}} S.prototype.raiseChangedEvent=S.prototype.Dc=function(a,b,c,d,e,f,h){var k=this.T;null!==k&&(k.Lm(a,b,c,d,e,f,h),0!==(this.ea&1024)&&c===this&&a===$d&&ll(this,k,b))}; @@ -885,11 +886,11 @@ function ll(a,b,c){var d=a.zo();if(null!==d)for(var e=a.Gc.i;e.next();){var f=e. function ml(a,b,c,d,e){var f=a.Pc,h=a.yk;h.reset();nl(a,h,b,c,d,e);a.yk=h;f.x=b;f.y=c;f.width=d;f.height=e;h.Os()||h.WE(f)}function ol(a,b,c,d){if(!1===a.Ag)return!1;d.multiply(a.transform);return c?a.sg(b,d):a.sm(b,d)} S.prototype.sD=function(a,b,c){if(!1===this.Ag)return!1;var d=this.Ha;b=a.Lj(b);var e=!1;c&&(e=Xa(a.x,a.y,0,0,0,d.height)a&&(a+=360));return a}; -S.prototype.getDocumentScale=S.prototype.Hi=function(){if(0!==(this.ea&4096)===!1)return this.fu;var a=this.$b;return null!==this.S?a*this.S.Hi():a};S.prototype.getLocalPoint=S.prototype.zD=function(a,b){void 0===b&&(b=new w);b.assign(a);this.Ff.Oh(b);return b};S.prototype.getNearestIntersectionPoint=S.prototype.bl=function(a,b,c){return this.Co(a.x,a.y,b.x,b.y,c)};g=S.prototype; +S.prototype.getDocumentScale=S.prototype.Hi=function(){if(0!==(this.ea&4096)===!1)return this.fu;var a=this.$b;return null!==this.S?a*this.S.Hi():a};S.prototype.getLocalPoint=S.prototype.zD=function(a,b){void 0===b&&(b=new w);b.assign(a);this.Ff.Ph(b);return b};S.prototype.getNearestIntersectionPoint=S.prototype.bl=function(a,b,c){return this.Co(a.x,a.y,b.x,b.y,c)};g=S.prototype; g.Co=function(a,b,c,d,e){var f=this.transform,h=1/(f.m11*f.m22-f.m12*f.m21),k=f.m22*h,l=-f.m12*h,m=-f.m21*h,n=f.m11*h,p=h*(f.m21*f.dy-f.m22*f.dx),q=h*(f.m12*f.dx-f.m11*f.dy);if(null!==this.nm)return f=this.ba,K.bl(f.left,f.top,f.right,f.bottom,a,b,c,d,e);h=a*k+b*m+p;a=a*l+b*n+q;b=c*k+d*m+p;c=c*l+d*n+q;e.m(0,0);d=this.Ha;c=K.bl(0,0,d.width,d.height,h,a,b,c,e);e.transform(f);return c}; function Ph(a,b,c,d,e){if(!1!==Aj(a)){var f=a.margin,h=f.right+f.left,f=f.top+f.bottom;b=Math.max(b-h,0);c=Math.max(c-f,0);e=e||0;d=Math.max((d||0)-h,0);e=Math.max(e-f,0);var h=a.angle,f=0,f=a.xa,k=0;a.hb&&(k=a.hb);90===h||270===h?(b=isFinite(f.height)?f.height+k:b,c=isFinite(f.width)?f.width+k:c):(b=isFinite(f.width)?f.width+k:b,c=isFinite(f.height)?f.height+k:c);var f=d||0,k=e||0,l=a instanceof A;switch(pl(a,!0)){case qh:k=f=0;l&&(c=b=Infinity);break;case cd:isFinite(b)&&b>d&&(f=b);isFinite(c)&& c>e&&(k=c);break;case fl:isFinite(b)&&b>d&&(f=b);k=0;l&&(c=Infinity);break;case el:isFinite(c)&&c>e&&(k=c),f=0,l&&(b=Infinity)}var l=a.af,m=a.vg;f>l.width&&m.widthl.height&&m.heighta?a=0:1a?a=0:1a||1a&&u.wa(a,">= 0",S,"column"),this.Cp=a,this.R(),this.h("column",b,a))}); u.defineProperty(S,{$F:"columnSpan"},function(){return this.Wi},function(a){a=Math.round(a);var b=this.Wi;b!==a&&(1>a&&u.wa(a,">= 1",S,"columnSpan"),this.Wi=a,this.R(),this.h("columnSpan",b,a))});u.defineProperty(S,{rc:"row"},function(){return this.wr},function(a){a=Math.round(a);var b=this.wr;b!==a&&(0>a&&u.wa(a,">= 0",S,"row"),this.wr=a,this.R(),this.h("row",b,a))}); u.defineProperty(S,{rowSpan:"rowSpan"},function(){return this.tj},function(a){a=Math.round(a);var b=this.tj;b!==a&&(1>a&&u.wa(a,">= 1",S,"rowSpan"),this.tj=a,this.R(),this.h("rowSpan",b,a))});u.defineProperty(S,{Hj:"alignmentFocus"},function(){return this.vp},function(a){var b=this.vp;b.L(a)||(a.ne()&&!a.Lc()&&u.k("alignmentFocus must be a real Spot or Spot.Default"),this.vp=a=a.Z(),this.R(),this.h("alignmentFocus",b,a))}); -u.defineProperty(S,{Jd:"portId"},function(){return this.ir},function(a){var b=this.ir;if(b!==a){var c=this.T;null===c||c instanceof U||(u.k("portID being set on a Link: "+a),c=null);null!==b&&null!==c&&Ll(c,this);this.ir=a;if(null!==a&&c){c.xh=!0;null===c.Qd&&Ml(c);var d=this.Jd;null!==d&&c.Qd.add(d,this)}this.h("portId",b,a)}});function Nl(a){var b={value:null};Ol(a,b);return b.value}function Ol(a,b){var c=a.S;return null===c||!Ol(c,b)&&a.visible?(b.value=a,!1):!0} +u.defineProperty(S,{Jd:"portId"},function(){return this.ir},function(a){var b=this.ir;if(b!==a){var c=this.T;null===c||c instanceof U||(u.k("portID being set on a Link: "+a),c=null);null!==b&&null!==c&&Ll(c,this);this.ir=a;if(null!==a&&c){c.yh=!0;null===c.Qd&&Ml(c);var d=this.Jd;null!==d&&c.Qd.add(d,this)}this.h("portId",b,a)}});function Nl(a){var b={value:null};Ol(a,b);return b.value}function Ol(a,b){var c=a.S;return null===c||!Ol(c,b)&&a.visible?(b.value=a,!1):!0} function Il(a){var b=a.T;b instanceof U&&(a=a.g,null===a||a.ha.gb||b.sf())}u.defineProperty(S,{xb:"toSpot"},function(){return null!==this.Q?this.Q.Ej:vb},function(a){null===this.Q&&this.Ee();var b=this.Q.Ej;b.L(a)||(a=a.Z(),this.Q.Ej=a,this.h("toSpot",b,a),Il(this))}); u.defineProperty(S,{vl:"toEndSegmentLength"},function(){return null!==this.Q?this.Q.Cj:10},function(a){null===this.Q&&this.Ee();var b=this.Q.Cj;b!==a&&(0>a&&u.wa(a,">= 0",S,"toEndSegmentLength"),this.Q.Cj=a,this.h("toEndSegmentLength",b,a),Il(this))});u.defineProperty(S,{wt:"toEndSegmentDirection"},function(){return null!==this.Q?this.Q.Bj:jl},function(a){null===this.Q&&this.Ee();var b=this.Q.Bj;b!==a&&(this.Q.Bj=a,this.h("toEndSegmentDirection",b,a),Il(this))}); u.defineProperty(S,{yt:"toShortLength"},function(){return null!==this.Q?this.Q.Dj:0},function(a){null===this.Q&&this.Ee();var b=this.Q.Dj;b!==a&&(this.Q.Dj=a,this.h("toShortLength",b,a),Il(this))});u.defineProperty(S,{OE:"toLinkable"},function(){return this.Sr},function(a){var b=this.Sr;b!==a&&(this.Sr=a,this.h("toLinkable",b,a))});u.defineProperty(S,{yI:"toMaxLinks"},function(){return this.Tr},function(a){var b=this.Tr;b!==a&&(0>a&&u.wa(a,">= 0",S,"toMaxLinks"),this.Tr=a,this.h("toMaxLinks",b,a))}); @@ -958,7 +959,7 @@ S.prototype.findTemplateBinder=S.prototype.zo=function(){for(var a=this instance S.make=Rl=function(a,b){var c=arguments,d=null,e=null;if("function"===typeof a)e=a;else if("string"===typeof a){var f=Sl.ta(a);"function"===typeof f?(c=u.Pk(arguments),d=f(c)):e=da[a]}null===d&&(void 0===e&&(d=window.$,void 0!==d&&void 0!==d.noop&&u.k("GraphObject.make failed to complete. Is it conflicting with another $ var? (such as jQuery)"),u.k("GraphObject.make failed to complete, it may be conflicting with another var.")),null!==e&&e.constructor||u.k("GraphObject.make requires a class function or class name, not: "+ a),d=new e);f=1;if(d instanceof D&&1a&&u.wa(a,">= 0",A,"padding"),a=new rb(a)):(u.C(a,rb,A,"padding"),0>a.left&&u.wa(a.left,">= 0",A,"padding:value.left"),0>a.right&&u.wa(a.right,">= 0",A,"padding:value.right"),0>a.top&&u.wa(a.top,">= 0",A,"padding:value.top"),0>a.bottom&&u.wa(a.bottom,">= 0",A,"padding:value.bottom"));var b=this.Pe;b.L(a)||(this.Pe=a=a.Z(),this.R(),this.h("padding",b,a))}); u.defineProperty(A,{Tk:"defaultAlignment"},function(){return this.Mp},function(a){var b=this.Mp;b.L(a)||(this.Mp=a=a.Z(),this.R(),this.h("defaultAlignment",b,a))});u.defineProperty(A,{Bd:"defaultStretch"},function(){return this.bi},function(a){var b=this.bi;b!==a&&(u.rb(a,S,A,"defaultStretch"),this.bi=a,this.R(),this.h("defaultStretch",b,a))}); -u.defineProperty(A,{rJ:"defaultSeparatorPadding"},function(){return void 0===this.Xi?K.np:this.Xi},function(a){if(void 0!==this.Xi){"number"===typeof a&&(a=new rb(a));var b=this.Xi;b.L(a)||(this.Xi=a=a.Z(),this.h("defaultSeparatorPadding",b,a))}}); -u.defineProperty(A,{pJ:"defaultRowSeparatorStroke"},function(){return void 0===this.ai?null:this.ai},function(a){var b=this.ai;b!==a&&(null===a||"string"===typeof a||a instanceof ga)&&(a instanceof ga&&a.freeze(),this.ai=a,this.h("defaultRowSeparatorStroke",b,a))});u.defineProperty(A,{qJ:"defaultRowSeparatorStrokeWidth"},function(){return void 0===this.th?1:this.th},function(a){if(void 0!==this.th){var b=this.th;b!==a&&isFinite(a)&&0<=a&&(this.th=a,this.h("defaultRowSeparatorStrokeWidth",b,a))}}); -u.defineProperty(A,{oJ:"defaultRowSeparatorDashArray"},function(){return void 0===this.Dl?null:this.Dl},function(a){if(void 0!==this.Dl){var b=this.Dl;if(b!==a){null===a||Array.isArray(a)||u.Kd(a,"Array",A,"defaultRowSeparatorDashArray:value");if(null!==a){for(var c=a.length,d=0,e=0;e=c&&(c=1);var d=this.aw,e=d.width,d=d.height,f=this.Ha,h=f.width,f=f.height,k=Math.ceil(h/e),l=Math.ceil(f/d),m=this.CD;a.save();a.beginPath();a.rect(0,0,h,f);a.clip();for(var n=[],p=this.ya.n,q=p.length,r=0;re*s*c))break}a.stroke()}else if("LineH"===B.Fb){a.lineWidth= -B.hb;yl(this,a,B.stroke,!1,!1);a.beginPath();for(I=x=Math.floor(-m.y/d);I<=x+l&&!(H=I*d+m.y,0<=H&&H<=f&&Hm(I,s,t)&&(v&&!y?kl(a,0,H,h,H,C,B.cd):(a.moveTo(0,H),a.lineTo(h,H)),2>d*s*c));I++);a.stroke()}else if("BarV"===B.Fb)for(yl(this,a,B.fill,!0,!1),B=B.width,isNaN(B)&&(B=e),I=x=Math.floor(-m.x/e);I<=x+k&&!(H=I*e+m.x,0<=H&&He*s*c));I++);else if("BarH"===B.Fb)for(yl(this,a,B.fill,!0,!1),B=B.height,isNaN(B)&&(B=d),I=x=Math.floor(-m.y/d);I<=x+l&&!(H=I*d+m.y,0<=H&& +v=!1,y=!0,C=B.gA;null!==C&&(v=!0,void 0!==a.setLineDash?(a.setLineDash(C),a.lineDashOffset=B.dd):void 0!==a.webkitLineDash?(a.webkitLineDash=C,a.webkitLineDashOffset=B.dd):void 0!==a.mozDash?(a.mozDash=C,a.mozDashOffset=B.dd):y=!1);if("LineV"===B.Fb){a.lineWidth=B.hb;yl(this,a,B.stroke,!1,!1);a.beginPath();for(var I=x=Math.floor(-m.x/e);I<=x+k;I++){var H=I*e+m.x;if(0<=H&&He*s*c))break}a.stroke()}else if("LineH"===B.Fb){a.lineWidth= +B.hb;yl(this,a,B.stroke,!1,!1);a.beginPath();for(I=x=Math.floor(-m.y/d);I<=x+l&&!(H=I*d+m.y,0<=H&&H<=f&&Hm(I,s,t)&&(v&&!y?kl(a,0,H,h,H,C,B.dd):(a.moveTo(0,H),a.lineTo(h,H)),2>d*s*c));I++);a.stroke()}else if("BarV"===B.Fb)for(yl(this,a,B.fill,!0,!1),B=B.width,isNaN(B)&&(B=e),I=x=Math.floor(-m.x/e);I<=x+k&&!(H=I*e+m.x,0<=H&&He*s*c));I++);else if("BarH"===B.Fb)for(yl(this,a,B.fill,!0,!1),B=B.height,isNaN(B)&&(B=d),I=x=Math.floor(-m.y/d);I<=x+l&&!(H=I*d+m.y,0<=H&& H<=f&&Hm(I,s,t)&&(a.fillRect(0,H,h,B),2>d*s*c));I++);v&&(void 0!==a.setLineDash?(a.setLineDash(u.mh),a.lineDashOffset=0):void 0!==a.webkitLineDash?(a.webkitLineDash=u.mh,a.webkitLineDashOffset=0):void 0!==a.mozDash&&(a.mozDash=null,a.mozDashOffset=0))}}a.restore();$i(b,a,!1)}else{this.oa===Fl&&(a.lineCap="butt",Im(this,a,!0,this.yd,!0),Im(this,a,!1,this.rd,!0),Jm(this,a,!0,this.yd),Jm(this,a,!1,this.rd),Im(this,a,!0,this.yd,!1),Im(this,a,!1,this.rd,!1));(c=this.LD)&&a.save();e=this.If();d=this.ya.n; h=d.length;for(f=0;ff.height&&(m-=r-f.height):r>f.width&&(m-=r-f.width);l=l.position+m/2;b.lineWidth=m;r=a.padding;c?(l+=r.top,m=r.left,r=f.width-r.right,n&&!p?kl(b,m,l,r,l,q,0):(b.moveTo(m,l),b.lineTo(r,l))):(l+=r.left,m=r.top,r=f.height-r.bottom,n&&!p?kl(b,l,m,l,r,q,0):(b.moveTo(l,m),b.lineTo(l,r)));b.stroke();n&&(void 0!==b.setLineDash?(b.setLineDash(u.mh),b.lineDashOffset=0):void 0!==b.webkitLineDash?(b.webkitLineDash=u.mh,b.webkitLineDashOffset=0):void 0!==b.mozDash&&(b.mozDash=null,b.mozDashOffset=0))}}}} -function Im(a,b,c,d,e){for(var f=d.length,h=a.ba,k=0;km)){var n=l.lg(),p=l.ep;isNaN(p)&&(p=c?a.th:a.sh);var q=l.dp;null===q&&(q=c?a.ai:a.rh);null===q&&(p=0);n-=p;p=l.position+p;n+=l.Qa;p+n>m&&(n=m-p);0>=n||(m=a.padding,yl(a,b,l.background,!0,!1),c?b.fillRect(m.left,p+m.top,h.width-(m.left+m.right),n):b.fillRect(p+m.left,m.top,n,h.height-(m.top+m.bottom)))}}}} +function Im(a,b,c,d,e){for(var f=d.length,h=a.ba,k=0;km)){var n=l.lg(),p=l.ep;isNaN(p)&&(p=c?a.uh:a.th);var q=l.dp;null===q&&(q=c?a.ai:a.sh);null===q&&(p=0);n-=p;p=l.position+p;n+=l.Qa;p+n>m&&(n=m-p);0>=n||(m=a.padding,yl(a,b,l.background,!0,!1),c?b.fillRect(m.left,p+m.top,h.width-(m.left+m.right),n):b.fillRect(p+m.left,m.top,n,h.height-(m.top+m.bottom)))}}}} function Hm(a,b,c){if(0!==a%b)return!1;b=c.length;for(var d=0;dkd&&(Ac=kd),ba.Qa+=Ac,kd=Math.max(kd-Ac,0));1!==ha.Wi||Wd!==qh&&Wd!==el||(ba=this.ed(Sc),Ac=Math.max(Ye-ba.Qa,0),Ac>zc&&(Ac=zc),ba.Qa+=Ac,zc=Math.max(zc-Ac,0));rg&&ha.Fo()}}}u.ra(Rg);for(var qc=0,Xd=0,Fa=this.ps,ca=0;cakd&&(Ac=kd),ba.Qa+=Ac,kd=Math.max(kd-Ac,0));1!==ha.Wi||Wd!==qh&&Wd!==el||(ba=this.fd(Sc),Ac=Math.max(Ye-ba.Qa,0),Ac>zc&&(Ac=zc),ba.Qa+=Ac,zc=Math.max(zc-Ac,0));rg&&ha.Fo()}}}u.ra(Rg);for(var qc=0,Xd=0,Fa=this.ps,ca=0;ca=this.kt);Pb++)ba=this.fd(ha.rc+Pb),Ee.height+=Math.max(ba.Ki,isNaN(ba.Qe)?ba.Kf:Math.min(ba.Qe,ba.Kf));for(Pb=1;Pb=this.ps);Pb++)ba=this.ed(ha.column+Pb),Ee.width+=Math.max(ba.Ki,isNaN(ba.Qe)?ba.Kf:Math.min(ba.Qe,ba.Kf));pb.width+=Ee.width;pb.height+=Ee.height;Ob=ha.margin;Rf=Ob.right+Ob.left;Sf=Ob.top+Ob.bottom;Ph(ha,pb.width,pb.height,pm,zi);for(var De=ha.Ba,Ye=Math.max(De.width+ -Rf,0),Cd=Math.max(De.height+Sf,0),Bh=0,Pb=0;Pb=this.kt);Pb++)ba=this.fd(ha.rc+Pb),Bh+=ba.total||0;if(BhEd&&(ba.Qa=Math.min(ba.Kf,Ed+Dd),ba.yb!==Ed&&(Dd-=ba.yb-Ed));if(-1===ba.index-1)break;ba=this.fd(ba.index-1)}for(var Tf=0,Pb=0;Pb=this.ps);Pb++)ba=this.ed(ha.column+Pb),Tf+=ba.total||0;if(TfEd&&(ba.Qa=Math.min(ba.Kf,Ed+Dd),ba.yb!== -Ed&&(Dd-=ba.yb-Ed));if(-1===ba.index-1)break;ba=this.ed(ba.index-1)}}u.ra(Tc);u.Oj(Ee);u.Oj(pb);for(var Uf=0,Ze=0,Wd=pl(this,!0),Fd=this.xa,Vf=this.af,ne=Xd=qc=0,ld=0,Fa=this.ps,ca=0;ca=this.kt);Pb++)ba=this.gd(ha.rc+Pb),Ee.height+=Math.max(ba.Ki,isNaN(ba.Qe)?ba.Kf:Math.min(ba.Qe,ba.Kf));for(Pb=1;Pb=this.ps);Pb++)ba=this.fd(ha.column+Pb),Ee.width+=Math.max(ba.Ki,isNaN(ba.Qe)?ba.Kf:Math.min(ba.Qe,ba.Kf));pb.width+=Ee.width;pb.height+=Ee.height;Ob=ha.margin;Rf=Ob.right+Ob.left;Sf=Ob.top+Ob.bottom;Ph(ha,pb.width,pb.height,pm,zi);for(var De=ha.Ba,Ye=Math.max(De.width+ +Rf,0),Cd=Math.max(De.height+Sf,0),Ch=0,Pb=0;Pb=this.kt);Pb++)ba=this.gd(ha.rc+Pb),Ch+=ba.total||0;if(ChEd&&(ba.Qa=Math.min(ba.Kf,Ed+Dd),ba.yb!==Ed&&(Dd-=ba.yb-Ed));if(-1===ba.index-1)break;ba=this.gd(ba.index-1)}for(var Tf=0,Pb=0;Pb=this.ps);Pb++)ba=this.fd(ha.column+Pb),Tf+=ba.total||0;if(TfEd&&(ba.Qa=Math.min(ba.Kf,Ed+Dd),ba.yb!== +Ed&&(Dd-=ba.yb-Ed));if(-1===ba.index-1)break;ba=this.fd(ba.index-1)}}u.ra(Tc);u.Oj(Ee);u.Oj(pb);for(var Uf=0,Ze=0,Wd=pl(this,!0),Fd=this.xa,Vf=this.af,ne=Xd=qc=0,ld=0,Fa=this.ps,ca=0;caDh)Ph(Qb,Infinity,Infinity),Yd=Qb.Ba,Ge.Sh(Yd),this.Vi.add(Yd);else{var Yf=Qb.Pf,Pp=Qb.Bw,sm=Qb.Hj;sm.ne()&&(sm=Ib);var Gi=Qb.Cw,Sr=Qb.BE,Hi=0,Ii=0,ek=0;if(Yf<-Dh||Yf>=Dh){var Qp=ug.XD,Ji=ug.WD;Gi!==dh&&(ek=ug.computeAngle(Qb,Gi,Ji),Qb.angle=ek);Hi=Qp.x- -$e.x;Ii=Qp.y-$e.y}else{var tf,Fh;if(0<=Yf)tf=Ei.ja(Yf),Fh=YfEh)Ph(Qb,Infinity,Infinity),Yd=Qb.Ba,Ge.Th(Yd),this.Vi.add(Yd);else{var Yf=Qb.Pf,Pp=Qb.Bw,sm=Qb.Hj;sm.ne()&&(sm=Ib);var Gi=Qb.Cw,Sr=Qb.BE,Hi=0,Ii=0,ek=0;if(Yf<-Eh||Yf>=Eh){var Qp=ug.XD,Ji=ug.WD;Gi!==dh&&(ek=ug.computeAngle(Qb,Gi,Ji),Qb.angle=ek);Hi=Qp.x- +$e.x;Ii=Qp.y-$e.y}else{var tf,Gh;if(0<=Yf)tf=Ei.ja(Yf),Gh=Yfc||p>d)this.R(),Ph(this,n>c?c:n,p>d?d:p);break;case cd:this.R(!0);Ph(this,c+r,d+s,0,0);break;case fl:this.R(!0);Ph(this,c+r,p+s,0,0);break;case el:this.R(!0),Ph(this,n+r,d+s,0,0)}}k=this.ba;k.x=a;k.y= @@ -1041,14 +1042,14 @@ if($a.visible){var jc=$a.Ba,ge=$a.margin,nc=ge.top+ge.bottom,Od=wa+this.padding. h.y=mb-e.y;Lb.zc(h.x,h.y,Mg,Mb);for(var ye=0;ye=this.kt);ca++){var ha=this.fd(ob+ca);id.height+=ha.total}for(ca=1;ca=this.ps);ca++){var pg=this.ed(Td+ca);id.width+=pg.total}var Qg=Ud.yb+id.width,yh=Rc.yb+id.height;h.x=Qc;h.y=Hc;h.width=Qg;h.height=yh;var Sc=Qc,zh=Hc,Sb=Qg,Rg=yh;Qc+Qg>e.width&&(Sb=Math.max(e.width-Qc,0));Hc+yh>e.height&&(Rg=Math.max(e.height-Hc,0));var Tc=Fa.alignment,je=0,Ic=0,jd=0,zc=0;if(Tc.Lc()){Tc= -this.Tk;Tc.pd()||(Tc=Ib);var je=Tc.x,Ic=Tc.y,jd=Tc.offsetX,zc=Tc.offsetY,kd=Ud.alignment,Pf=Rc.alignment;kd.pd()&&(je=kd.x,jd=kd.offsetX);Pf.pd()&&(Ic=Pf.y,zc=Pf.offsetY)}else je=Tc.x,Ic=Tc.y,jd=Tc.offsetX,zc=Tc.offsetY;if(isNaN(je)||isNaN(Ic))Ic=je=.5,zc=jd=0;var ba=Be.width,ke=Be.height,Ce=Fa.margin,Tj=Ce.left+Ce.right,Uj=Ce.top+Ce.bottom,Ac=Gl(Fa,Rc,Ud,!1);!isNaN(Fa.xa.width)||Ac!==cd&&Ac!==fl||(ba=Math.max(Qg-Tj,0));!isNaN(Fa.xa.height)||Ac!==cd&&Ac!==el||(ke=Math.max(yh-Uj,0));var fb=Fa.af,gb= -Fa.vg,ba=Math.min(fb.width,ba),ke=Math.min(fb.height,ke),ba=Math.max(gb.width,ba),ke=Math.max(gb.height,ke),Vj=ke+Uj;h.x+=h.width*je-(ba+Tj)*je+jd+Ce.left;h.y+=h.height*Ic-Vj*Ic+zc+Ce.top;Fa.visible&&(qb(Sc,zh,Sb,Rg,h.x,h.y,Be.width,Be.height)?Fa.zc(h.x,h.y,ba,ke):Fa.zc(h.x,h.y,ba,ke,new z(Sc,zh,Sb,Rg)))}else{Fa.Jg();Fa.Xb.La();var Qf=Fa.Xb;Qf.x=Vd.type===tl?Pg:Qc;Qf.y=Vd.type===ul?Of:Hc;Qf.width=Be.width;Qf.height=Be.height;Fa.Xb.freeze();rl(Fa,!1)}}u.Oj(id);for(ob=0;ob=pb){var Uf=this.XD,Ze=this.WD;Pb!==dh&&(Tf=this.computeAngle(Bc,Pb,Ze),Bc.angle=Tf);Dd=Uf.x;Ed=Uf.y}else{var Fd=void 0,Vf=void 0;if(0<=Jc)Fd=me.n[Jc],Vf=Jc=this.kt);ca++){var ha=this.gd(ob+ca);id.height+=ha.total}for(ca=1;ca=this.ps);ca++){var pg=this.fd(Td+ca);id.width+=pg.total}var Qg=Ud.yb+id.width,zh=Rc.yb+id.height;h.x=Qc;h.y=Hc;h.width=Qg;h.height=zh;var Sc=Qc,Ah=Hc,Sb=Qg,Rg=zh;Qc+Qg>e.width&&(Sb=Math.max(e.width-Qc,0));Hc+zh>e.height&&(Rg=Math.max(e.height-Hc,0));var Tc=Fa.alignment,je=0,Ic=0,jd=0,zc=0;if(Tc.Lc()){Tc= +this.Tk;Tc.pd()||(Tc=Ib);var je=Tc.x,Ic=Tc.y,jd=Tc.offsetX,zc=Tc.offsetY,kd=Ud.alignment,Pf=Rc.alignment;kd.pd()&&(je=kd.x,jd=kd.offsetX);Pf.pd()&&(Ic=Pf.y,zc=Pf.offsetY)}else je=Tc.x,Ic=Tc.y,jd=Tc.offsetX,zc=Tc.offsetY;if(isNaN(je)||isNaN(Ic))Ic=je=.5,zc=jd=0;var ba=Be.width,ke=Be.height,Ce=Fa.margin,Tj=Ce.left+Ce.right,Uj=Ce.top+Ce.bottom,Ac=Gl(Fa,Rc,Ud,!1);!isNaN(Fa.xa.width)||Ac!==cd&&Ac!==fl||(ba=Math.max(Qg-Tj,0));!isNaN(Fa.xa.height)||Ac!==cd&&Ac!==el||(ke=Math.max(zh-Uj,0));var fb=Fa.af,gb= +Fa.vg,ba=Math.min(fb.width,ba),ke=Math.min(fb.height,ke),ba=Math.max(gb.width,ba),ke=Math.max(gb.height,ke),Vj=ke+Uj;h.x+=h.width*je-(ba+Tj)*je+jd+Ce.left;h.y+=h.height*Ic-Vj*Ic+zc+Ce.top;Fa.visible&&(qb(Sc,Ah,Sb,Rg,h.x,h.y,Be.width,Be.height)?Fa.zc(h.x,h.y,ba,ke):Fa.zc(h.x,h.y,ba,ke,new z(Sc,Ah,Sb,Rg)))}else{Fa.Jg();Fa.Xb.La();var Qf=Fa.Xb;Qf.x=Vd.type===tl?Pg:Qc;Qf.y=Vd.type===ul?Of:Hc;Qf.width=Be.width;Qf.height=Be.height;Fa.Xb.freeze();rl(Fa,!1)}}u.Oj(id);for(ob=0;ob=pb){var Uf=this.XD,Ze=this.WD;Pb!==dh&&(Tf=this.computeAngle(Bc,Pb,Ze),Bc.angle=Tf);Dd=Uf.x;Ed=Uf.y}else{var Fd=void 0,Vf=void 0;if(0<=Jc)Fd=me.n[Jc],Vf=Jcs.width||r.y>s.height||0>r.x+r.width||0>r.y+r.height||(q.Tf()?(r=q.transform,Wa(k.set(a),r),Wa(l.set(b),r)):(k.set(a),l.set(b)),r=q,q=q instanceof A?q:null,null!==q?!q.ym(k,l,c,d,e,f):!r.sD(k,l,e))||(null!==c&&(r=c(r)),null===r||null!==d&&!d(r)||f.add(r))}}u.v(k);u.v(l)}return e? p:h}return!1};function Km(a){var b=a.A;if(void 0===b||b===uc)b=null;null===b&&a instanceof X&&(a=a.Pa,null!==a&&(b=a.A));null===b&&(b=xb);return b}function Lm(a){var b=a.B;if(void 0===b||b===uc)b=null;null===b&&a instanceof X&&(a=a.Pa,null!==a&&(b=a.B));null===b&&(b=Vb);return b}A.prototype.add=A.prototype.add=function(a){u.C(a,S,A,"add:element");this.Yd(this.ya.count,a)};A.prototype.elt=A.prototype.ja=function(a){return this.ya.ja(a)}; A.prototype.insertAt=A.prototype.Yd=function(a,b){b instanceof G&&u.k("Cannot add a Part to a Panel: "+b);if(this===b||this.gl(b))this===b&&u.k("Cannot make a Panel contain itself: "+this.toString()),u.k("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+b.toString());var c=b.S;null!==c&&c!==this&&u.k("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+b.toString()+", already contained by "+c.toString()+", cannot be shared by this Panel: "+ -this.toString());this.oa!==bj||b instanceof X||u.k("Can only add Shapes to a Grid Panel, not: "+b);b.ql(this);b.Wl=null;if(null!==this.QD){var d=b.data;null!==d&&"object"===typeof d&&(null===this.Yf&&(this.Yf=new la(Object,A)),this.Yf.add(d,b))}var e=this.ya,d=-1;if(c===this){for(var f=-1,h=this.ya.n,k=h.length,l=0;l=e.count&&a>=e.count)return;e.hd(f);d=f}else u.k("element "+b.toString()+" has panel "+c.toString()+" but is not contained by it.")}if(0> -a||a>e.count)a=e.count;e.Yd(a,b);this.R();b.R();null!==b.Jd?this.xh=!0:b instanceof A&&!0===b.xh&&(this.xh=!0);c=this.T;null!==c&&(c.Bk=null,c.kj=NaN,this.xh&&c instanceof U&&(c.xh=!0),c.xh&&(c.Qd=null),e=this.g,null!==e&&e.ha.gb||(-1!==d&&c.Dc(ce,"elements",this,b,null,d,null),c.Dc(be,"elements",this,null,b,null,a)))};A.prototype.remove=A.prototype.remove=function(a){u.C(a,S,A,"remove:element");for(var b=this.ya.n,c=b.length,d=-1,e=0;ea&&u.wa(a,">= 0",A,"getRowDefinition:idx");a=Math.round(a);var b=this.yd;if(void 0===b[a]){var c=new Se;c.ql(this);c.ae=!0;c.index=a;b[a]=c}return b[a]};A.prototype.removeRowDefinition=A.prototype.oE=function(a){0>a&&u.wa(a,">= 0",A,"removeRowDefinition:idx");a=Math.round(a);var b=this.yd;this.Dc(ce,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.R()};u.u(A,{ps:"columnCount"},function(){return void 0===this.rd?0:this.rd.length}); -A.prototype.getColumnDefinition=A.prototype.ed=function(a){0>a&&u.wa(a,">= 0",A,"getColumnDefinition:idx");a=Math.round(a);var b=this.rd;if(void 0===b[a]){var c=new Se;c.ql(this);c.ae=!1;c.index=a;b[a]=c}return b[a]};A.prototype.removeColumnDefinition=A.prototype.kE=function(a){0>a&&u.wa(a,">= 0",A,"removeColumnDefinition:idx");a=Math.round(a);var b=this.rd;this.Dc(ce,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.R()}; +this.toString());this.oa!==bj||b instanceof X||u.k("Can only add Shapes to a Grid Panel, not: "+b);b.ql(this);b.Wl=null;if(null!==this.QD){var d=b.data;null!==d&&"object"===typeof d&&(null===this.Yf&&(this.Yf=new la(Object,A)),this.Yf.add(d,b))}var e=this.ya,d=-1;if(c===this){for(var f=-1,h=this.ya.n,k=h.length,l=0;l=e.count&&a>=e.count)return;e.jd(f);d=f}else u.k("element "+b.toString()+" has panel "+c.toString()+" but is not contained by it.")}if(0> +a||a>e.count)a=e.count;e.Yd(a,b);this.R();b.R();null!==b.Jd?this.yh=!0:b instanceof A&&!0===b.yh&&(this.yh=!0);c=this.T;null!==c&&(c.Bk=null,c.kj=NaN,this.yh&&c instanceof U&&(c.yh=!0),c.yh&&(c.Qd=null),e=this.g,null!==e&&e.ha.gb||(-1!==d&&c.Dc(ce,"elements",this,b,null,d,null),c.Dc(be,"elements",this,null,b,null,a)))};A.prototype.remove=A.prototype.remove=function(a){u.C(a,S,A,"remove:element");for(var b=this.ya.n,c=b.length,d=-1,e=0;ea&&u.wa(a,">= 0",A,"getRowDefinition:idx");a=Math.round(a);var b=this.yd;if(void 0===b[a]){var c=new Se;c.ql(this);c.ae=!0;c.index=a;b[a]=c}return b[a]};A.prototype.removeRowDefinition=A.prototype.oE=function(a){0>a&&u.wa(a,">= 0",A,"removeRowDefinition:idx");a=Math.round(a);var b=this.yd;this.Dc(ce,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.R()};u.u(A,{ps:"columnCount"},function(){return void 0===this.rd?0:this.rd.length}); +A.prototype.getColumnDefinition=A.prototype.fd=function(a){0>a&&u.wa(a,">= 0",A,"getColumnDefinition:idx");a=Math.round(a);var b=this.rd;if(void 0===b[a]){var c=new Se;c.ql(this);c.ae=!1;c.index=a;b[a]=c}return b[a]};A.prototype.removeColumnDefinition=A.prototype.kE=function(a){0>a&&u.wa(a,">= 0",A,"removeColumnDefinition:idx");a=Math.round(a);var b=this.rd;this.Dc(ce,"coldefs",this,b[a],null,a,null);b[a]&&delete b[a];this.R()}; u.defineProperty(A,{bI:"rowSizing"},function(){return void 0===this.am?Gm:this.am},function(a){if(void 0!==this.am){var b=this.am;b!==a&&(a!==Gm&&a!==Nm&&u.k("rowSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None"),this.am=a,this.R(),this.h("rowSizing",b,a))}}); u.defineProperty(A,{ZF:"columnSizing"},function(){return void 0===this.Al?Gm:this.Al},function(a){if(void 0!==this.Al){var b=this.Al;b!==a&&(a!==Gm&&a!==Nm&&u.k("columnSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None"),this.Al=a,this.R(),this.h("columnSizing",b,a))}}); -u.defineProperty(A,{CK:"topIndex"},function(){return void 0===this.ui?0:this.ui},function(a){if(void 0!==this.ui){var b=this.ui;b!==a&&((!isFinite(a)||0>a)&&u.k("topIndex must be greater than zero and a real number. Was "+a),this.ui=a,this.R(),this.h("topIndex",b,a))}}); -u.defineProperty(A,{OJ:"leftIndex"},function(){return void 0===this.hi?0:this.hi},function(a){if(void 0!==this.hi){var b=this.hi;b!==a&&((!isFinite(a)||0>a)&&u.k("leftIndex must be greater than zero and a real number. Was "+a),this.hi=a,this.R(),this.h("leftIndex",b,a))}});A.prototype.findRowForLocalY=function(a){if(0>a)return-1;if(this.type!==Fl)return NaN;for(var b=0,c=this.yd,d=c.length,e=this.ui;ea)&&u.k("topIndex must be greater than zero and a real number. Was "+a),this.ui=a,this.R(),this.h("topIndex",b,a))}}); +u.defineProperty(A,{QJ:"leftIndex"},function(){return void 0===this.hi?0:this.hi},function(a){if(void 0!==this.hi){var b=this.hi;b!==a&&((!isFinite(a)||0>a)&&u.k("leftIndex must be greater than zero and a real number. Was "+a),this.hi=a,this.R(),this.h("leftIndex",b,a))}});A.prototype.findRowForLocalY=function(a){if(0>a)return-1;if(this.type!==Fl)return NaN;for(var b=0,c=this.yd,d=c.length,e=this.ui;ea)return-1;if(this.type!==Fl)return NaN;for(var b=0,c=this.rd,d=c.length,e=this.hi;ea;)this.Fe(a);a=this.QD;if(null!==a)for(var b=u.qb(a),c=0;cc)){var d=a.getCategoryForItemData(b,c),d=a.findTemplateForItemData(b,c,d);if(null!==d){nf(d);d=d.copy();"object"===typeof b&&(null===a.Yf&&(a.Yf=new la(Object,A)),a.Yf.add(b,d));var e=c;sk(a)&&e++;a.Yd(e,d);tk(a,e,c);d.data=b}}} function tk(a,b,c){for(a=a.ya;ba&&u.wa(a,">= 0",Se,"height"),this.Qe=a,this.Qa=this.yb,null!==this.S&&this.S.R(),this.Rc("height",b,a))});u.defineProperty(Se,{width:"width"},function(){return this.Qe},function(a){var b=this.Qe;b!==a&&(0>a&&u.wa(a,">= 0",Se,"width"),this.Qe=a,this.Qa=this.yb,null!==this.S&&this.S.R(),this.Rc("width",b,a))}); u.defineProperty(Se,{Ki:"minimum"},function(){return this.oj},function(a){var b=this.oj;b!==a&&((0>a||!isFinite(a))&&u.wa(a,">= 0",Se,"minimum"),this.oj=a,this.Qa=this.yb,null!==this.S&&this.S.R(),this.Rc("minimum",b,a))});u.defineProperty(Se,{Kf:"maximum"},function(){return this.mj},function(a){var b=this.mj;b!==a&&(0>a&&u.wa(a,">= 0",Se,"maximum"),this.mj=a,this.Qa=this.yb,null!==this.S&&this.S.R(),this.Rc("maximum",b,a))}); -u.defineProperty(Se,{alignment:"alignment"},function(){return this.se},function(a){var b=this.se;b.L(a)||(this.se=a.Z(),null!==this.S&&this.S.R(),this.Rc("alignment",b,a))});u.defineProperty(Se,{stretch:"stretch"},function(){return this.Hh},function(a){var b=this.Hh;b!==a&&(this.Hh=a,null!==this.S&&this.S.R(),this.Rc("stretch",b,a))}); +u.defineProperty(Se,{alignment:"alignment"},function(){return this.se},function(a){var b=this.se;b.L(a)||(this.se=a.Z(),null!==this.S&&this.S.R(),this.Rc("alignment",b,a))});u.defineProperty(Se,{stretch:"stretch"},function(){return this.Ih},function(a){var b=this.Ih;b!==a&&(this.Ih=a,null!==this.S&&this.S.R(),this.Rc("stretch",b,a))}); u.defineProperty(Se,{DE:"separatorPadding"},function(){return this.wj},function(a){"number"===typeof a&&(a=new rb(a));var b=this.wj;null!==a&&null!==b&&b.L(a)||(null!==a&&(a=a.Z()),this.wj=a,null!==this.S&&this.S.R(),this.Rc("separatorPadding",b,a))});u.defineProperty(Se,{dp:"separatorStroke"},function(){return this.Gr},function(a){var b=this.Gr;b!==a&&(null===a||"string"===typeof a||a instanceof ga)&&(a instanceof ga&&a.freeze(),this.Gr=a,null!==this.S&&this.S.R(),this.Rc("separatorStroke",b,a))}); u.defineProperty(Se,{ep:"separatorStrokeWidth"},function(){return this.Hr},function(a){var b=this.Hr;b!==a&&(this.Hr=a,null!==this.S&&this.S.R(),this.Rc("separatorStrokeWidth",b,a))}); -u.defineProperty(Se,{gI:"separatorDashArray"},function(){return this.Dh},function(a){var b=this.Dh;if(b!==a){null===a||Array.isArray(a)||u.Kd(a,"Array",Se,"separatorDashArray:value");if(null!==a){for(var c=a.length,d=0,e=0;ee)){for(var k=c[0],l=c[1],p=0,q=0,r=0,s=m=0,t=q=0,v=u.eb(),x=2;xt){u.ra(v);return}e>m?(B= e-m,e=m):B=0;var y=Math.sqrt(e*e/(1+r*r));0>p&&(y=-y);k+=y;l+=r*y;a.translate(k,l);a.rotate(s);a.translate(-(h/2),-(f/2));0===B&&d.Mj(a,b);a.translate(h/2,f/2);a.rotate(-s);a.translate(-k,-l);t-=e;m-=e;if(0!==B){q++;if(q===v.length){u.ra(v);return}m=v[q];p=m[0];s=m[1];r=m[2];m=m[3];e=B}}u.ra(v)}} -X.prototype.Mj=function(a,b){if(null!==this.yc||null!==this.jd){null!==this.jd&&yl(this,a,this.jd,!0,!1);null!==this.yc&&yl(this,a,this.yc,!1,!1);var c=this.Sg;if(0===c){var d=this.T;d instanceof lf&&d.type===ah&&d.vc instanceof X&&(c=d.vc.hb)}a.lineWidth=c;a.lineJoin=this.eo;a.lineCap=this.co;a.miterLimit=this.gm;var e=!1;this.T&&b.Qg.drawShadows&&(e=this.T.il);var f=!0;null!==this.yc&&null===this.jd&&(f=!1);var d=!1,h=!0,k=this.gA;null!==k&&(d=!0,void 0!==a.setLineDash?(a.setLineDash(k),a.lineDashOffset= -this.cd):void 0!==a.webkitLineDash?(a.webkitLineDash=k,a.webkitLineDashOffset=this.cd):void 0!==a.mozDash?(a.mozDash=k,a.mozDashOffset=this.cd):h=!1);var l=this.Pa;if(null!==l){if(l.oa===dd)a.beginPath(),d&&!h?kl(a,l.nc,l.uc,l.pb,l.Bb,k,this.cd):(a.moveTo(l.nc,l.uc),a.lineTo(l.pb,l.Bb)),null!==this.jd&&zl(a,this.jd),0!==c&&null!==this.yc&&Bl(a);else if(l.oa===md){var m=l.nc,n=l.uc,p=l.pb,q=l.Bb,l=Math.min(m,p),r=Math.min(n,q),m=Math.abs(p-m),n=Math.abs(q-n);null!==this.jd&&(a.beginPath(),a.rect(l, -r,m,n),zl(a,this.jd));if(null!==this.yc){var s=p=0,t=0;f&&e&&(p=a.shadowOffsetX,s=a.shadowOffsetY,t=a.shadowBlur,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0);d&&!h?(h=u.eb(),h.push(l),h.push(r),h.push(l+m),h.push(r),h.push(l+m),h.push(r+n),h.push(l),h.push(r+n),h.push(l),h.push(r),a.beginPath(),$m(a,h,k,this.cd),Bl(a),u.ra(h)):0!==c&&(a.beginPath(),a.rect(l,r,m,n),Bl(a));f&&e&&(a.shadowOffsetX=p,a.shadowOffsetY=s,a.shadowBlur=t)}}else if(l.oa===nd)m=l.nc,n=l.uc,p=l.pb,q=l.Bb,l=Math.abs(p-m)/ -2,r=Math.abs(q-n)/2,m=Math.min(m,p)+l,n=Math.min(n,q)+r,a.beginPath(),a.moveTo(m,n-r),a.bezierCurveTo(m+K.sa*l,n-r,m+l,n-K.sa*r,m+l,n),a.bezierCurveTo(m+l,n+K.sa*r,m+K.sa*l,n+r,m,n+r),a.bezierCurveTo(m-K.sa*l,n+r,m-l,n+K.sa*r,m-l,n),a.bezierCurveTo(m-l,n-K.sa*r,m-K.sa*l,n-r,m,n-r),a.closePath(),null!==this.jd&&zl(a,this.jd),d&&!h&&(h=u.eb(),K.ye(m,n-r,m+K.sa*l,n-r,m+l,n-K.sa*r,m+l,n,.5,h),K.ye(m+l,n,m+l,n+K.sa*r,m+K.sa*l,n+r,m,n+r,.5,h),K.ye(m,n+r,m-K.sa*l,n+r,m-l,n+K.sa*r,m-l,n,.5,h),K.ye(m-l,n, -m-l,n-K.sa*r,m-K.sa*l,n-r,m,n-r,.5,h),a.beginPath(),$m(a,h,k,this.cd),u.ra(h)),0!==c&&null!==this.yc&&(t=s=p=0,f&&e&&(p=a.shadowOffsetX,s=a.shadowOffsetY,t=a.shadowBlur,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0),Bl(a),f&&e&&(a.shadowOffsetX=p,a.shadowOffsetY=s,a.shadowBlur=t));else if(l.oa===ad){r=l.Zi;n=r.length;for(q=0;qx.Qf);else for(var v=Hd(x,m),B=v.length,y=0;yx.Qf);else for(var v=Hd(x,m),B=v.length,y=0;ye))if(h=b[0],k=b[1],4===e)kl(a,h,k,b[2],b[3],c,d);else{a.moveTo(h,k);for(var n=0,p=0,q=0,r=p=l=0,s=u.eb(),t=2;tr&&(e=r);e>l?(v=e-l,e=l):v=0;var x=Math.sqrt(e*e/ (1+q*q));0>n&&(x=-x);h+=x;k+=q*x;m?a.lineTo(h,k):a.moveTo(h,k);r-=e;l-=e;if(0!==v){p++;if(p===s.length){u.ra(s);return}l=s[p];n=l[0];q=l[1];l=l[2];e=v}else m=!m}u.ra(s)}}X.prototype.getDocumentPoint=X.prototype.lb=function(a,b){void 0===b&&(b=new w);a.ne()&&u.k("getDocumentPoint:s Spot must be real: "+a.toString());var c=this.Ha,d=this.hb;b.m(a.x*(c.width+d)-d/2+c.x+a.offsetX,a.y*(c.height+d)-d/2+c.y+a.offsetY);this.Ff.ab(b);return b}; X.prototype.Jj=function(a,b){var c=this.Pa;if(null===c||null===this.fill&&null===this.stroke)return!1;var d=c.kb,e=this.hb/2;c.type!==dd||b||(e+=2);var f=u.Sf();f.assign(d);f.Jf(e+2,e+2);if(!f.Aa(a))return u.ic(f),!1;d=e+1E-4;if(c.type===dd){if(null===this.stroke)return!1;d=(c.F-c.ua)*(a.x-c.ua)+(c.G-c.va)*(a.y-c.va);if(0>(c.ua-c.F)*(a.x-c.F)+(c.va-c.G)*(a.y-c.G)||0>d)return!1;u.ic(f);return K.Hd(c.ua,c.va,c.F,c.G,e,a.x,a.y)}if(c.type===md){var h=c.ua,k=c.va,l=c.F,m=c.G,c=Math.min(h,l),n=Math.min(k, m),h=Math.abs(l-h),k=Math.abs(m-k);f.x=c;f.y=n;f.width=h;f.height=k;if(null===this.fill){f.Jf(-d,-d);if(f.Aa(a))return u.ic(f),!1;f.Jf(d,d)}null!==this.stroke&&f.Jf(e,e);e=f.Aa(a);u.ic(f);return e}if(c.type===nd){h=c.ua;k=c.va;l=c.F;m=c.G;c=Math.min(h,l);n=Math.min(k,m);h=Math.abs(l-h);k=Math.abs(m-k);h/=2;k/=2;c=a.x-(c+h);n=a.y-(n+k);if(null===this.fill){h-=d;k-=d;if(0>=h||0>=k||1>=c*c/(h*h)+n*n/(k*k))return u.ic(f),!1;h+=d;k+=d}null!==this.stroke&&(h+=e,k+=e);u.ic(f);return 0>=h||0>=k?!1:1>=c*c/ (h*h)+n*n/(k*k)}if(c.type===ad)return u.ic(f),null===this.fill?Ld(c,a.x,a.y,e):c.Aa(a,e,1=e||Ya(b,f,0,-p)>=e||Ya(b,f,0,p)>=e||Ya(b,f,n,0)>=e?!1:!0}else if(f.type=== ad){h=f.kb;k=h.x;l=h.y;m=h.x+h.width;h=h.y+h.height;if(a.x>m&&a.xh&&a.ye&&Xa(a.x,a.y,k,l,m,l)>e&&Xa(a.x,a.y,m,h,k,h)>e&&Xa(a.x,a.y,m,h,m,l)>e)return!1;b=Math.sqrt(e);if(c){if(null===this.fill?Ld(f,a.x,a.y,b):f.Aa(a,b,!0))return!0}else{c=f.ub;for(b=0;be)return!1;l=k.Fa.n;m=l.length;for(h=0;he)return!1;break;case zd:f=u.eb();K.ye(n,p,q.Rb,q.jc, q.df,q.ef,q.F,q.G,.8,f);n=d(f,a);u.ra(f);if(n)return!1;n=q.F;p=q.G;if(a.ss(n,p)>e)return!1;break;case Ad:f=u.eb();K.Xo(n,p,q.Rb,q.jc,q.F,q.G,.8,f);n=d(f,a);u.ra(f);if(n)return!1;n=q.F;p=q.G;if(a.ss(n,p)>e)return!1;break;case Bd:case Gd:var q=q.type===Bd?Hd(q,k):Id(q,k,n,p),r=q.length,s=null,f=u.eb();for(b=0;b= 0",X,"strokeWidth:value")});u.defineProperty(X,{qI:"strokeCap"},function(){return this.co},function(a){var b=this.co;b!==a&&("string"!==typeof a||"butt"!==a&&"round"!==a&&"square"!==a?u.wa(a,'"butt", "round", or "square"',X,"strokeCap"):(this.co=a,this.ma(),this.h("strokeCap",b,a)))}); -u.defineProperty(X,{wK:"strokeJoin"},function(){return this.eo},function(a){var b=this.eo;b!==a&&("string"!==typeof a||"miter"!==a&&"bevel"!==a&&"round"!==a?u.wa(a,'"miter", "bevel", or "round"',X,"strokeJoin"):(this.eo=a,this.ma(),this.h("strokeJoin",b,a)))});u.defineProperty(X,{xK:"strokeMiterLimit"},function(){return this.gm},function(a){var b=this.gm;if(b!==a)if(0 0",X,"strokeWidth:value")}); +u.defineProperty(X,{yK:"strokeJoin"},function(){return this.eo},function(a){var b=this.eo;b!==a&&("string"!==typeof a||"miter"!==a&&"bevel"!==a&&"round"!==a?u.wa(a,'"miter", "bevel", or "round"',X,"strokeJoin"):(this.eo=a,this.ma(),this.h("strokeJoin",b,a)))});u.defineProperty(X,{zK:"strokeMiterLimit"},function(){return this.gm},function(a){var b=this.gm;if(b!==a)if(0 0",X,"strokeWidth:value")}); u.defineProperty(X,{gA:"strokeDashArray"},function(){return this.fm},function(a){var b=this.fm;if(b!==a){null===a||Array.isArray(a)||u.Kd(a,"Array",X,"strokeDashArray:value");if(null!==a){for(var c=a.length,d=0,e=0;ea.ii))break}c.wi=Math.min(a.ii,p);c.Oe=Math.max(c.Oe,e);return new ia(c.Oe,l*c.wi)}function yn(a){for(var b=a.length,c=0;c=b?a:a.substr(0,c)}function wn(a,b){on!==b&&(on=pn.font=b);return pn.measureText(a).width} function vn(a){if(null!==a.vn)return a.vn;var b=a.Hg;on!==b&&(on=pn.font=b);var c=0;void 0!==jn[b]&&5E3>kn?c=jn[b]:(c=1.3*pn.measureText("M").width,jn[b]=c,kn++);return a.vn=c}function xn(a){on!==a&&(on=pn.font=a);var b=0;void 0!==ln[a]&&5E3>mn?b=ln[a]:(b=pn.measureText(nn).width,ln[a]=b,mn++);return b} function un(a,b,c){var d=a.ie.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e=a.yj+a.zj,e=Math.max(0,vn(a)+e);if(0===d.length)return c.Oe=0,a.ve=1,e;if(!a.iw){var f=d.indexOf("\n",0);0<=f&&(d=d.substr(0,f))}for(var f=0,h=a.ve=0,k=-1,l=!1;!l;)k=d.indexOf("\n",h),-1===k&&(k=d.length,l=!0),h<=k&&(h=d.substr(h,k-h),a.jm!==qn?(c.wi=0,h=tn(a,h,c,b),f+=h.height,a.ve+=c.wi):(tn(a,h,c,b),f+=e,a.ve++),a.ve===a.ii&&(l=!0)),h=k+1;return a.Gu=f} -u.defineProperty(qa,{jA:"textValidation"},function(){return this.Hk},function(a){var b=this.Hk;b!==a&&(null!==a&&u.j(a,"function",qa,"textValidation"),this.Hk=a,this.h("textValidation",b,a))});u.defineProperty(qa,{tK:"spacingAbove"},function(){return this.yj},function(a){var b=this.yj;b!==a&&(this.yj=a,this.h("spacingAbove",b,a))});u.defineProperty(qa,{uK:"spacingBelow"},function(){return this.zj},function(a){var b=this.zj;b!==a&&(this.zj=a,this.h("spacingBelow",b,a))}); -u.defineProperty(qa,{WJ:"maxLines"},function(){return this.ii},function(a){var b=this.ii;b!==a&&(a=Math.floor(a),0>=a&&u.wa(a,"> 0",qa,"maxLines"),this.ii=a,this.h("maxLines",b,a),this.R())});u.u(qa,{XJ:"metrics"},function(){return this.ej});function hn(){this.Oe=this.wi=0;this.gf=[];this.te=[]}hn.prototype.reset=function(){this.Oe=this.wi=0;this.gf=[];this.te=[]};hn.prototype.qs=function(a){this.wi=a.wi;this.Oe=a.Oe;this.gf=u.Pk(a.gf);this.te=u.Pk(a.te)};u.u(hn,{aJ:"arrSize"},function(){return this.gf}); -u.u(hn,{bJ:"arrText"},function(){return this.te});u.u(hn,{VJ:"maxLineWidth"},function(){return this.Oe});function Ri(){S.call(this);this.Me=null;this.Lr="";this.xj=(new z(NaN,NaN,NaN,NaN)).freeze();this.zn=cd;this.Qr=this.Aj=this.kf=null;this.Sx=!1;this.Zn=null;this.JB=0}u.Ga(Ri,S);u.fa("Picture",Ri);var zn=new pa,An=0,Mi=[]; +u.defineProperty(qa,{jA:"textValidation"},function(){return this.Hk},function(a){var b=this.Hk;b!==a&&(null!==a&&u.j(a,"function",qa,"textValidation"),this.Hk=a,this.h("textValidation",b,a))});u.defineProperty(qa,{vK:"spacingAbove"},function(){return this.yj},function(a){var b=this.yj;b!==a&&(this.yj=a,this.h("spacingAbove",b,a))});u.defineProperty(qa,{wK:"spacingBelow"},function(){return this.zj},function(a){var b=this.zj;b!==a&&(this.zj=a,this.h("spacingBelow",b,a))}); +u.defineProperty(qa,{YJ:"maxLines"},function(){return this.ii},function(a){var b=this.ii;b!==a&&(a=Math.floor(a),0>=a&&u.wa(a,"> 0",qa,"maxLines"),this.ii=a,this.h("maxLines",b,a),this.R())});u.u(qa,{ZJ:"metrics"},function(){return this.ej});function hn(){this.Oe=this.wi=0;this.gf=[];this.te=[]}hn.prototype.reset=function(){this.Oe=this.wi=0;this.gf=[];this.te=[]};hn.prototype.qs=function(a){this.wi=a.wi;this.Oe=a.Oe;this.gf=u.Pk(a.gf);this.te=u.Pk(a.te)};u.u(hn,{bJ:"arrSize"},function(){return this.gf}); +u.u(hn,{cJ:"arrText"},function(){return this.te});u.u(hn,{XJ:"maxLineWidth"},function(){return this.Oe});function Ri(){S.call(this);this.Me=null;this.Lr="";this.xj=(new z(NaN,NaN,NaN,NaN)).freeze();this.zn=cd;this.Qr=this.Aj=this.kf=null;this.Sx=!1;this.Zn=null;this.JB=0}u.Ga(Ri,S);u.fa("Picture",Ri);var zn=new pa,An=0,Mi=[]; function Bn(){var a=Mi;if(0===a.length)for(var b=window.document.getElementsByTagName("canvas"),c=b.length,d=0;dr.mo.length&&(Gn(r,4,l,m),Gn(r,16, l,m));for(var l=r.mo,m=l.length,q=l[0],t=0;tk&&a.y>l&&a.rightk&&b.y>l&&b.righta&&(a-=180);break;case ro:a=K.ct(c+90);90a&&(a-=180);break;case so:a=K.ct(c-90);90a&&(a-=180);break;case to:a=K.ct(c);if(45a||225a)return 0;90a&&(a-=180)}return K.ct(a)}; u.defineProperty(W,{W:"fromNode"},function(){return this.Wf},function(a){var b=this.Wf;if(b!==a){var c=this.od;null!==b&&(this.gg!==b&&fo(b,this,c),uo(this),this.H(Rj));this.Wf=a;this.di=null;this.Vb();var d=this.g;if(null!==d){var e=this.data,f=d.ga;if(null!==e)if(f instanceof Q){var h=null!==a?a.data:null;f.Ew(e,f.wb(h))}else f instanceof qe&&(h=null!==a?a.data:null,d.qd?f.ih(e,f.wb(h)):(null!==b&&f.ih(b.data,void 0),f.ih(h,f.wb(null!==this.gg?this.gg.data:null))))}e=this.od;f=this.wD;null!==f&& (h=!0,null!==d&&(h=d.Na,d.Na=!0),f(this,c,e),null!==d&&(d.Na=h));null!==a&&(this.gg!==a&&eo(a,this,e),vo(this),this.H(Jj));this.h("fromNode",b,a);xk(this)}}); -u.defineProperty(W,{pg:"fromPortId"},function(){return this.wh},function(a){var b=this.wh;if(b!==a){var c=this.od;null!==c&&co(this.W,c);uo(this);this.wh=a;var d=this.od;null!==d&&co(this.W,d);var e=this.g;if(null!==e){var f=this.data,h=e.ga;null!==f&&h instanceof Q&&h.aA(f,a)}c!==d&&(this.di=null,this.Vb(),f=this.wD,null!==f&&(h=!0,null!==e&&(h=e.Na,e.Na=!0),f(this,c,d),null!==e&&(e.Na=h)));vo(this);this.h("fromPortId",b,a)}});u.u(W,{od:"fromPort"},function(){var a=this.Wf;return null===a?null:a.Xk(this.wh)}); +u.defineProperty(W,{pg:"fromPortId"},function(){return this.xh},function(a){var b=this.xh;if(b!==a){var c=this.od;null!==c&&co(this.W,c);uo(this);this.xh=a;var d=this.od;null!==d&&co(this.W,d);var e=this.g;if(null!==e){var f=this.data,h=e.ga;null!==f&&h instanceof Q&&h.aA(f,a)}c!==d&&(this.di=null,this.Vb(),f=this.wD,null!==f&&(h=!0,null!==e&&(h=e.Na,e.Na=!0),f(this,c,d),null!==e&&(e.Na=h)));vo(this);this.h("fromPortId",b,a)}});u.u(W,{od:"fromPort"},function(){var a=this.Wf;return null===a?null:a.Xk(this.xh)}); u.defineProperty(W,{wD:"fromPortChanged"},function(){return this.Yp},function(a){var b=this.Yp;b!==a&&(null!==a&&u.j(a,"function",W,"fromPortChanged"),this.Yp=a,this.h("fromPortChanged",b,a))}); u.defineProperty(W,{ca:"toNode"},function(){return this.gg},function(a){var b=this.gg;if(b!==a){var c=this.fe;null!==b&&(this.Wf!==b&&fo(b,this,c),uo(this),this.H(Rj));this.gg=a;this.di=null;this.Vb();var d=this.g;if(null!==d){var e=this.data,f=d.ga;if(null!==e)if(f instanceof Q){var h=null!==a?a.data:null;f.Gw(e,f.wb(h))}else f instanceof qe&&(h=null!==a?a.data:null,d.qd?(null!==b&&f.ih(b.data,void 0),f.ih(h,f.wb(null!==this.Wf?this.Wf.data:null))):f.ih(e,f.wb(h)))}e=this.fe;f=this.PE;null!==f&& (h=!0,null!==d&&(h=d.Na,d.Na=!0),f(this,c,e),null!==d&&(d.Na=h));null!==a&&(this.Wf!==a&&eo(a,this,e),vo(this),this.H(Jj));this.h("toNode",b,a);xk(this)}}); -u.defineProperty(W,{lh:"toPortId"},function(){return this.Ih},function(a){var b=this.Ih;if(b!==a){var c=this.fe;null!==c&&co(this.ca,c);uo(this);this.Ih=a;var d=this.fe;null!==d&&co(this.ca,d);var e=this.g;if(null!==e){var f=this.data,h=e.ga;null!==f&&h instanceof Q&&h.eA(f,a)}c!==d&&(this.di=null,this.Vb(),f=this.PE,null!==f&&(h=!0,null!==e&&(h=e.Na,e.Na=!0),f(this,c,d),null!==e&&(e.Na=h)));vo(this);this.h("toPortId",b,a)}});u.u(W,{fe:"toPort"},function(){var a=this.gg;return null===a?null:a.Xk(this.Ih)}); +u.defineProperty(W,{lh:"toPortId"},function(){return this.Jh},function(a){var b=this.Jh;if(b!==a){var c=this.fe;null!==c&&co(this.ca,c);uo(this);this.Jh=a;var d=this.fe;null!==d&&co(this.ca,d);var e=this.g;if(null!==e){var f=this.data,h=e.ga;null!==f&&h instanceof Q&&h.eA(f,a)}c!==d&&(this.di=null,this.Vb(),f=this.PE,null!==f&&(h=!0,null!==e&&(h=e.Na,e.Na=!0),f(this,c,d),null!==e&&(e.Na=h)));vo(this);this.h("toPortId",b,a)}});u.u(W,{fe:"toPort"},function(){var a=this.gg;return null===a?null:a.Xk(this.Jh)}); u.defineProperty(W,{PE:"toPortChanged"},function(){return this.Ur},function(a){var b=this.Ur;b!==a&&(null!==a&&u.j(a,"function",W,"toPortChanged"),this.Ur=a,this.h("toPortChanged",b,a))});u.defineProperty(W,{vb:"fromSpot"},function(){return null!==this.Q?this.Q.cj:uc},function(a){null===this.Q&&this.Ee();var b=this.Q.cj;b.L(a)||(a=a.Z(),this.Q.cj=a,this.h("fromSpot",b,a),this.Vb())}); u.defineProperty(W,{Yk:"fromEndSegmentLength"},function(){return null!==this.Q?this.Q.aj:NaN},function(a){null===this.Q&&this.Ee();var b=this.Q.aj;b!==a&&(0>a&&u.wa(a,">= 0",W,"fromEndSegmentLength"),this.Q.aj=a,this.h("fromEndSegmentLength",b,a),this.Vb())});u.defineProperty(W,{Es:"fromEndSegmentDirection"},function(){return null!==this.Q?this.Q.$i:Yn},function(a){null===this.Q&&this.Ee();var b=this.Q.$i;b!==a&&(this.Q.$i=a,this.h("fromEndSegmentDirection",b,a),this.Vb())}); u.defineProperty(W,{Fs:"fromShortLength"},function(){return null!==this.Q?this.Q.bj:NaN},function(a){null===this.Q&&this.Ee();var b=this.Q.bj;b!==a&&(this.Q.bj=a,this.h("fromShortLength",b,a),this.Vb())});u.defineProperty(W,{xb:"toSpot"},function(){return null!==this.Q?this.Q.Ej:uc},function(a){null===this.Q&&this.Ee();var b=this.Q.Ej;b.L(a)||(a=a.Z(),this.Q.Ej=a,this.h("toSpot",b,a),this.Vb())}); u.defineProperty(W,{vl:"toEndSegmentLength"},function(){return null!==this.Q?this.Q.Cj:NaN},function(a){null===this.Q&&this.Ee();var b=this.Q.Cj;b!==a&&(0>a&&u.wa(a,">= 0",W,"toEndSegmentLength"),this.Q.Cj=a,this.h("toEndSegmentLength",b,a),this.Vb())});u.defineProperty(W,{wt:"toEndSegmentDirection"},function(){return null!==this.Q?this.Q.Bj:Yn},function(a){null===this.Q&&this.Ee();var b=this.Q.Bj;b!==a&&(this.Q.Bj=a,this.h("toEndSegmentDirection",b,a),this.Vb())}); u.defineProperty(W,{yt:"toShortLength"},function(){return null!==this.Q?this.Q.Dj:NaN},function(a){null===this.Q&&this.Ee();var b=this.Q.Dj;b!==a&&(this.Q.Dj=a,this.h("toShortLength",b,a),this.Vb())});function xk(a){var b=a.W,c=a.ca;null!==b?null!==c?wo(a,b.yG(c)):wo(a,null):wo(a,null)}function wo(a,b){var c=a.kk;if(c!==b){null!==c&&Sn(c,a);a.kk=b;null!==b&&Tn(b,a);var d=a.bD;if(null!==d){var e=!0,f=a.g;null!==f&&(e=f.Na,f.Na=!0);d(a,c,b);null!==f&&(f.Na=e)}!a.hg||a.oC!==c&&a.qC!==c||a.Vb()}} -W.prototype.dl=function(){var a=this.Ra;null!==a&&this.W!==a&&this.ca!==a&&G.prototype.dl.call(this)};W.prototype.getOtherNode=W.prototype.hz=function(a){var b=this.W;return a===b?this.ca:b};W.prototype.getOtherPort=function(a){var b=this.od;return a===b?this.fe:b};u.u(W,{EJ:"isLabeledLink"},function(){return null===this.ue?!1:0c&&(c=-c)):K.mb(c.y,d.y)?(c=d.x-c.x,0>c&&(c=-c)):c=Math.sqrt(c.Lj(d)),f.push(c),e+=c;for(d=h=c=0;ce/2)break;c+=d;h++}u.ra(f);b=this.l(h);f=this.l(h+1);b.x===f.x?b.y>f.y?a.m(b.x,b.y-(e/2-c)):a.m(b.x,b.y+(e/2-c)):b.y===f.y?b.x>f.x?a.m(b.x-(e/2-c),b.y):a.m(b.x+(e/2-c),b.y):(e=(e/2-c)/d,a.m(b.x+e*(f.x-b.x),b.y+e*(f.y-b.y)));return a};u.u(W,{WD:"midAngle"},function(){this.updateRoute();return this.computeMidAngle()}); W.prototype.computeMidAngle=function(){var a=this.ka;if(2>a)return NaN;if(this.computeCurve()===kh&&4<=a&&!this.dc){var b=(a-1)/3|0,c=3*(b/2|0);if(1===b%2){var c=Math.floor(c),a=this.l(c),b=this.l(c+1),d=this.l(c+2),c=this.l(c+3);return K.TF(a.x,a.y,b.x,b.y,d.x,d.y,c.x,c.y)}if(0e?a.Fi(b):b.Fi(d)}; u.defineProperty(W,{points:"points"},function(){return this.Qc},function(a){var b=this.Qc;if(b!==a){var c=null;if(Array.isArray(a)){var d=0===a.length%2;if(d)for(var e=0;ep&&(t-=180));0>t?t+=360:360<=t&&(t-=360);k&&(v+=Math.abs(p));0===t?r=v:90===t?s=v:180===t?r=-v:270===t?s=-v:(r=v*Math.cos(t*Math.PI/180),s=v*Math.sin(t*Math.PI/180));if(f.ne()&&k){var x=c.lb(Ib,u.K()),B=u.fc(x.x+1E3*r,x.y+1E3*s);this.getLinkPointFromPoint(b,c,x,B,!0,q);u.v(x);u.v(B)}}var v=this.getLinkPoint(d,e,h,!1,l,b,c),y=0,C=0,I=0;if(l||h!==vb||k)x= this.computeEndSegmentLength(d,e,h,!1),I=this.getLinkDirection(d,e,v,h,!1,l,b,c),k&&(I+=l?0:30,0>p&&(I+=180)),0>I?I+=360:360<=I&&(I-=360),k&&(x+=Math.abs(p)),0===I?y=x:90===I?C=x:180===I?y=-x:270===I?C=-x:(y=x*Math.cos(I*Math.PI/180),C=x*Math.sin(I*Math.PI/180)),h.ne()&&k&&(x=e.lb(Ib,u.K()),B=u.fc(x.x+1E3*y,x.y+1E3*C),this.getLinkPointFromPoint(d,e,x,B,!1,v),u.v(x),u.v(B));e=q;if(l||f!==vb||k)e=new w(q.x+r,q.y+s);c=v;if(l||h!==vb||k)c=new w(v.x+y,v.y+C);!n&&!l&&f===vb&&3k&&(m=-m),r=(0>h?-1:1)*m+q,s=l*(r-q)+t),q=a.x+2*f/3,t=a.y+2*h/3,v=q,y=t,K.D(h,0)?y=0h?-1:1)*m+q,y=l*(v-q)+t),this.so(),this.Jh(a),this.Lk(r,s),this.Lk(v,y),this.Jh(n),this.yf(0, -this.getLinkPoint(b,c,vb,!0,!1,d,e)),this.yf(3,this.getLinkPoint(d,e,vb,!1,!1,b,c))):(a=d,d=this.getLinkPoint(b,c,vb,!0,!1,a,e),e=this.getLinkPoint(a,e,vb,!1,!1,b,c),this.hasCurviness()?(h=e.x-d.x,b=e.y-d.y,c=this.computeCurviness(),a=d.x+h/2,n=d.y+b/2,f=a,k=n,K.D(b,0)?k=0c&&(f=-f),f=(0>b?-1:1)*f+a,k=h*(f-a)+n),this.Jh(d),this.Lk(f,k)):this.Jh(d),this.Jh(e)));return!0}; +a-2,c)?this.yf(a-1,v):!n&&!l&&h===vb&&3k&&(m=-m),r=(0>h?-1:1)*m+q,s=l*(r-q)+t),q=a.x+2*f/3,t=a.y+2*h/3,v=q,y=t,K.D(h,0)?y=0h?-1:1)*m+q,y=l*(v-q)+t),this.so(),this.Kh(a),this.Lk(r,s),this.Lk(v,y),this.Kh(n),this.yf(0, +this.getLinkPoint(b,c,vb,!0,!1,d,e)),this.yf(3,this.getLinkPoint(d,e,vb,!1,!1,b,c))):(a=d,d=this.getLinkPoint(b,c,vb,!0,!1,a,e),e=this.getLinkPoint(a,e,vb,!1,!1,b,c),this.hasCurviness()?(h=e.x-d.x,b=e.y-d.y,c=this.computeCurviness(),a=d.x+h/2,n=d.y+b/2,f=a,k=n,K.D(b,0)?k=0c&&(f=-f),f=(0>b?-1:1)*f+a,k=h*(f-a)+n),this.Kh(d),this.Lk(f,k)):this.Kh(d),this.Kh(e)));return!0}; function Co(a,b){Math.abs(b.x-a.x)>Math.abs(b.y-a.y)?(b.x=b.x>=a.x?a.x+9E9:a.x-9E9,b.y=a.y):(b.y=b.y>=a.y?a.y+9E9:a.y-9E9,b.x=a.x);return b} W.prototype.getLinkPointFromPoint=function(a,b,c,d,e,f){void 0===f&&(f=new w);if(null===a||null===b)return f.assign(c),f;a.Ea()||(e=a.findVisibleNode(),null!==e&&e!==a&&(b=e.port));var h=e=0,k=0,l=0;a=null;e=b.S;null===e||e.Tf()||(e=e.S);if(null===e)e=d.x,h=d.y,k=c.x,l=c.y;else{a=e.Ff;e=1/(a.m11*a.m22-a.m12*a.m21);var k=a.m22*e,l=-a.m12*e,m=-a.m21*e,n=a.m11*e,p=e*(a.m21*a.dy-a.m22*a.dx),q=e*(a.m12*a.dx-a.m11*a.dy);e=d.x*k+d.y*m+p;h=d.x*l+d.y*n+q;k=c.x*k+c.y*m+p;l=c.x*l+c.y*n+q}b.Co(e,h,k,l,f);null!== a&&f.transform(a);return f};function Do(a,b){var c=b.jr;null===c&&(c=new Eo,c.port=b,c.Cc=b.T,b.jr=c);return Fo(c,a)} W.prototype.getLinkPoint=function(a,b,c,d,e,f,h,k){void 0===k&&(k=new w);if(c.pd())return b.lb(c,k),k;if(c.Go()&&(c=Do(this,b),null!==c)){k.assign(c.Lo);if(e&&this.zw===mo){var l=Do(this,h);if(c.vm=m.x&&a.x<=m.x+m.width?k.x=a.x:a.y>=m.y&&a.y<=m.y+m.height&&(k.y=a.y);u.v(c);u.v(l)}}return k}f=b.lb(Ib,u.K());l=c=null;this.ka>(e?6:2)?(l=d?this.l(1):this.l(this.ka-2),e&&(l=Co(f,l.copy()))): (c=u.K(),l=h.lb(Ib,c),e&&(l=Co(f,l)));this.getLinkPointFromPoint(a,b,f,l,d,k);u.v(f);null!==c&&u.v(c);return k}; W.prototype.getLinkDirection=function(a,b,c,d,e,f,h,k){a:if(d.pd())c=d.x>d.y?d.x>1-d.y?0:d.x<1-d.y?270:315:d.x1-d.y?90:d.x<1-d.y?180:135:.5>d.x?225:.5(f?6:2)?(n=e?this.l(1):this.l(this.ka-2),n=f?Co(l,n.copy()):c):(m=u.K(),n=k.lb(Ib,m));c=0;c=Math.abs(n.x-l.x)>Math.abs(n.y-l.y)?n.x>= -l.x?0:180:n.y>=l.y?90:270;u.v(l);null!==m&&u.v(m)}d.ne()&&h.Ph(a)&&(c+=180,360<=c&&(c-=360));a=Yn;a=e?this.Es:this.wt;a===Yn&&(a=e?b.Es:b.wt);switch(a){case Zn:b=b.Zk();c+=b;360<=c&&(c-=360);break;case Yn:case jl:b=b.Zk();if(0===b)break;45<=b&&135>b?c+=90:135<=b&&225>b?c+=180:225<=b&&315>b&&(c+=270);360<=c&&(c-=360)}return c}; +l.x?0:180:n.y>=l.y?90:270;u.v(l);null!==m&&u.v(m)}d.ne()&&h.Qh(a)&&(c+=180,360<=c&&(c-=360));a=Yn;a=e?this.Es:this.wt;a===Yn&&(a=e?b.Es:b.wt);switch(a){case Zn:b=b.Zk();c+=b;360<=c&&(c-=360);break;case Yn:case jl:b=b.Zk();if(0===b)break;45<=b&&135>b?c+=90:135<=b&&225>b?c+=180:225<=b&&315>b&&(c+=270);360<=c&&(c-=360)}return c}; W.prototype.computeEndSegmentLength=function(a,b,c,d){if(null!==b&&c.Go()&&(a=Do(this,b),null!==a))return a.Sv;a=NaN;a=d?this.Yk:this.vl;null!==b&&isNaN(a)&&(a=d?b.Yk:b.vl);isNaN(a)&&(a=10);return a};W.prototype.computeSpot=function(a){return a?Ao(this,this.od):Bo(this,this.fe)};function Ao(a,b){if(null===b)return Ib;var c=a.vb;c.Lc()&&(void 0===b&&(b=a.od),null!==b&&(c=b.vb));return c===uc?vb:c} function Bo(a,b){if(null===b)return Ib;var c=a.xb;c.Lc()&&(void 0===b&&(b=a.fe),null!==b&&(c=b.xb));return c===uc?vb:c}W.prototype.computeOtherPoint=function(a,b){var c=b.lb(Ib),d;d=b.jr;d=null!==d?Fo(d,this):null;null!==d&&(c=d.Lo);return c};W.prototype.computeShortLength=function(a){return a?Go(this):Ho(this)};function Go(a){var b=a.Fs;isNaN(b)&&(a=a.od,null!==a&&(b=a.Fs));return isNaN(b)?0:b}function Ho(a){var b=a.yt;isNaN(b)&&(a=a.fe,null!==a&&(b=a.yt));return isNaN(b)?0:b} W.prototype.Nj=function(a,b,c,d,e,f){if(!1===this.Ag)return!1;void 0===b&&(b=null);void 0===c&&(c=null);var h=f;void 0===f&&(h=u.jh(),h.reset());h.multiply(this.transform);if(this.sm(a,h))return Um(this,b,c,e),void 0===f&&u.Ye(h),!0;if(this.sg(a,h)){var k=!1;if(!this.Kg)for(var l=this.ya.n,m=l.length;m--;){var n=l[m];if(n.visible||n===this.ec){var p=n.ba,q=this.Ha;if(!(p.x>q.width||p.y>q.height||0>p.x+p.width||0>p.y+p.height)){p=u.jh();p.set(h);if(n instanceof A)k=n.Nj(a,b,c,d,e,p);else if(this.path=== @@ -1497,12 +1499,12 @@ this.computeMidOrthoPosition(a.y,c.y,!0):k.bottom,m.x=c.x,m.y=l.y):90===d&&a.yh.left&&l.x=h.top&&c.y<=a.y||a.y<=k.bottom&&a.y>=c.y){if(0===d||180===d)l=new w(a.x,Math.max((a.y+c.y)/2,a.y)),m=new w(c.x,l.y)}else l.x=180===d||(90===d||270===d)&&c.xa.x&&k.top=a.x?(l.y=a.y>k.bottom?this.computeMidOrthoPosition(a.y,k.bottom,!0):a.y>k.top&&(180===d&&a.xk.right)?this.computeMidOrthoPosition(a.y,c.y,!0):k.top,m.x=c.x,m.y=l.y):270===d&&a.y>k.bottom&&a.x>k.left&&a.xh.right)90===d&&(k.Aa(a)||h.Aa(c))?l.x=this.computeMidOrthoPosition(a.x, c.x,!1):c.xa.x&&(90===d||180===d)&&(l.x=this.computeMidOrthoPosition(h.right,Math.min(c.x,k.left),!1)),m.x=l.x,m.y=c.y;if(l.x>h.left&&l.x=a.y||a.y>=k.top&&a.y<=c.y){if(0===d||180===d)l=new w(a.x,Math.min((a.y+c.y)/2,a.y)),m=new w(c.x,l.y)}else l.x=180===d||(90===d||270===d)&&c.xk&&0!==Jo(e,c.x,c.y)){Ko(this,e,c.x,c.y,d,!0);d=this.l(2);if(4>this.ka)0===b||180===b?(d.x=a.x,d.y=c.y):(d.x=c.x,d.y=a.y),this.V(2,d.x,d.y),this.w(3,d.x,d.y);else if(c=this.l(3),0===b|| -180===b)K.D(d.x,c.x)?(b=0===b?Math.max(d.x,a.x):Math.min(d.x,a.x),this.V(2,b,a.y),this.V(3,b,c.y)):K.D(d.y,c.y)?(Math.abs(a.y-d.y)<=e.po/2&&(this.V(2,d.x,a.y),this.V(3,c.x,a.y)),this.w(2,d.x,a.y)):this.V(2,a.x,d.y);else if(90===b||270===b)K.D(d.y,c.y)?(b=90===b?Math.max(d.y,a.y):Math.min(d.y,a.y),this.V(2,a.x,b),this.V(3,c.x,b)):K.D(d.x,c.x)?(Math.abs(a.x-d.x)<=e.ro/2&&(this.V(2,a.x,d.y),this.V(3,a.x,c.y)),this.w(2,a.x,d.y)):this.V(2,d.x,a.y);a=!0}else a=!1}else a=!1;a||(this.Jh(l),this.Jh(m))}}; +180===b)K.D(d.x,c.x)?(b=0===b?Math.max(d.x,a.x):Math.min(d.x,a.x),this.V(2,b,a.y),this.V(3,b,c.y)):K.D(d.y,c.y)?(Math.abs(a.y-d.y)<=e.po/2&&(this.V(2,d.x,a.y),this.V(3,c.x,a.y)),this.w(2,d.x,a.y)):this.V(2,a.x,d.y);else if(90===b||270===b)K.D(d.y,c.y)?(b=90===b?Math.max(d.y,a.y):Math.min(d.y,a.y),this.V(2,a.x,b),this.V(3,c.x,b)):K.D(d.x,c.x)?(Math.abs(a.x-d.x)<=e.ro/2&&(this.V(2,a.x,d.y),this.V(3,a.x,c.y)),this.w(2,a.x,d.y)):this.V(2,d.x,a.y);a=!0}else a=!1}else a=!1;a||(this.Kh(l),this.Kh(m))}}; W.prototype.computeMidOrthoPosition=function(a,b){if(this.hasCurviness()){var c=this.computeCurviness();return(a+b)/2+c}return(a+b)/2};function gg(a){if(!a.el)return!1;var b=a.points.n,c=b.length;if(4>c)return!1;a=Lk(a.g,!0,a.Ra,null);for(var d=1;da){var b=new $c(ad),c=new bd(0,0);b.ub.add(c);return b}var d=!1,b=this.g;null!==b&&0!==b.ha.Le&&xo(this)&&(d=!0);var c=b=0,e=this.l(0).copy(),f=e.copy(),b=this.Qc.n,h=this.computeCurve();if(h===kh&&3<=a&&!K.mb(this.gp,0))if(3===a)var k=this.l(1),b=Math.min(e.x,k.x),c=Math.min(e.y,k.y),k=this.l(2),b=Math.min(b,k.x),c=Math.min(c,k.y);else{if(this.dc)for(k=0;k=a&& (k=a-1),b=this.l(k),f.x=Math.min(b.x,f.x),f.y=Math.min(b.y,f.y);b=f.x;c=f.y}else{for(k=0;kb.links.count)1===b.links.count&&(c=b.links.n[0],c.an=null,c.hf=0,c.Vb()),c=b.Uo,null!==b&&null!==c.nh&&c.nh.remove(b),c=b.at,null!==b&&null!==c.nh&&c.nh.remove(b);else for(c=Math.abs(c),a=0===c%2,b=b.links.i;b.next();){var d=b.value,e=Math.abs(d.hf),f=0===e%2;e>c&&a===f&&(d.hf=0b.links.count)1===b.links.count&&(c=b.links.n[0],c.an=null,c.hf=0,c.Vb()),c=b.Uo,null!==b&&null!==c.oh&&c.oh.remove(b),c=b.at,null!==b&&null!==c.oh&&c.oh.remove(b);else for(c=Math.abs(c),a=0===c%2,b=b.links.i;b.next();){var d=b.value,e=Math.abs(d.hf),f=0===e%2;e>c&&a===f&&(d.hf=0=a.width||0>=a.height)){var b=a.y,c=a.x+a.width,d=a.y+a.height;this.ag=Math.floor((a.x-this.ge)/this.ge)*this.ge;this.bg=Math.floor((b-this.he)/this.he)*this.he;this.Iq=Math.ceil((c+2*this.ge)/this.ge)*this.ge;this.Jq=Math.ceil((d+2*this.he)/this.he)*this.he;a=1+(Math.ceil((this.Iq-this.ag)/this.ge)|0);b=1+(Math.ceil((this.Jq-this.bg)/this.he)|0);if(null===this.mc||this.ho=c?180:0}a=180*Math.atan2(a.height,a.width)/Math.PI;switch(b){case u.Fc|u.Xc:return c>a&&c<=180+a?180:270;case u.Xc|u.Oc:return c>180-a&&c<=360-a?270:0;case u.Oc|u.Nc:return c>a&&c<=180+a?90:0;case u.Nc|u.Fc:return c>180-a&&c<=360-a?180:90;case u.Fc|u.Xc|u.Oc:return 90180+a&&c<=360- a?270:0;case u.Xc|u.Oc|u.Nc:return 180a&&180>=c?90:0;case u.Oc|u.Nc|u.Fc:return c>a&&c<=180-a?90:c>180-a&&270>=c?180:0;case u.Nc|u.Fc|u.Xc:return c>180-a&&c<=180+a?180:c>180+a?270:90}d&&b!==(u.Fc|u.Xc|u.Oc|u.Nc)&&(c-=15,0>c&&(c+=360));return c>a&&c<180-a?90:c>=180-a&&c<=180+a?180:c>180+a&&c<360-a?270:0} -function Fo(a,b){var c=a.wg;if(0===c.length){a:if(!a.To){c=a.To;a.To=!0;var d,e=null,f=a.Cc,f=f instanceof V?f:null;if(null===f||f.be)d=a.Cc.qD(a.port.Jd);else{if(!f.ba.J()){a.To=c;break a}e=f;d=e.pD()}var h=a.wg.length=0,k=a.port.lb(xb,u.K()),l=a.port.lb(Vb,u.K()),f=u.Vj(k.x,k.y,0,0);f.Oi(l);u.v(k);u.v(l);k=u.fc(f.x+f.width/2,f.y+f.height/2);for(d=d.i;d.next();)if(l=d.value,l.Ea()){var m=vb,n=l.od===a.port||l.W.Ph(e),m=n?Ao(l,a.port):Bo(l,a.port);if(m.Go()&&(n=n?l.fe:l.od,null!==n)){var p=n.T;if(null!== +function Fo(a,b){var c=a.wg;if(0===c.length){a:if(!a.To){c=a.To;a.To=!0;var d,e=null,f=a.Cc,f=f instanceof V?f:null;if(null===f||f.be)d=a.Cc.qD(a.port.Jd);else{if(!f.ba.J()){a.To=c;break a}e=f;d=e.pD()}var h=a.wg.length=0,k=a.port.lb(xb,u.K()),l=a.port.lb(Vb,u.K()),f=u.Vj(k.x,k.y,0,0);f.Oi(l);u.v(k);u.v(l);k=u.fc(f.x+f.width/2,f.y+f.height/2);for(d=d.i;d.next();)if(l=d.value,l.Ea()){var m=vb,n=l.od===a.port||l.W.Qh(e),m=n?Ao(l,a.port):Bo(l,a.port);if(m.Go()&&(n=n?l.fe:l.od,null!==n)){var p=n.T;if(null!== p){var n=l.computeOtherPoint(p,n),p=k.Fi(n),m=Vo(f,m,p,l.dc),q=0;0===m?(q=u.Oc,180Math.abs(H)?(y=Math.abs(H)/ q,q=Math.abs(H)):y=1;break;case u.Fc:r>Math.abs(I)?(y=Math.abs(I)/r,r=Math.abs(I)):y=1;break;case u.Xc:n>Math.abs(H)?(y=Math.abs(H)/n,n=Math.abs(H)):y=1;break;default:case u.Oc:p>Math.abs(I)?(y=Math.abs(I)/p,p=Math.abs(I)):y=1}B=0}var T=t.Lo;if(e===$n){v=t.link.computeThickness();v*=y;T.set(C);switch(x){case u.Nc:T.x=C.x+H/2+q/2-B-v/2;break;case u.Fc:T.y=C.y+I/2+r/2-B-v/2;break;case u.Xc:T.x=C.x+H/2-n/2+B+v/2;break;default:case u.Oc:T.y=C.y+I/2-p/2+B+v/2}B+=v}else v=.5,e===Xn&&(v=(t.Do+1)/(t.vm+1)), @@ -1547,7 +1549,7 @@ Eo.prototype.computeEndSegmentLength=function(a){var b=a.link,c=b.computeEndSegm u.Xd(Wo,{link:!0,angle:!0,ee:!0,tw:!0,Do:!0,vm:!0,Lo:!0,Sv:!0});Wo.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.ee.toString()+":"+this.Do.toString()+"/"+this.vm.toString()+" "+this.Lo.toString()+" "+this.Sv.toString()+" "+this.tw.toString()};function il(){this.Ej=this.cj=uc;this.Cj=this.aj=NaN;this.Bj=this.$i=Yn;this.Dj=this.bj=NaN} il.prototype.copy=function(){var a=new il;a.cj=this.cj.Z();a.Ej=this.Ej.Z();a.aj=this.aj;a.Cj=this.Cj;a.$i=this.$i;a.Bj=this.Bj;a.bj=this.bj;a.Dj=this.Dj;return a};function V(a){0===arguments.length?U.call(this,vh):U.call(this,a);this.Lq=new F(G);this.Pn=new F(V);this.Ak=this.Mq=this.Kq=null;this.Yr=!1;this.pq=!0;this.Zr=!1;this.Pb=this.Nr=null;this.Dp=!1;this.Ep=!0;this.cq=this.Fp=!1;this.Nd=new Je;this.Nd.group=this;this.jy=!1}u.Ga(V,U);u.fa("Group",V); V.prototype.cloneProtected=function(a){U.prototype.cloneProtected.call(this,a);a.Kq=this.Kq;a.Mq=this.Mq;a.Ak=this.Ak;a.Yr=this.Yr;a.pq=this.pq;a.Zr=this.Zr;a.Nr=this.Nr;var b=a.vs(function(a){return a instanceof ph});a.Pb=b instanceof ph?b:null;a.Dp=this.Dp;a.Ep=this.Ep;a.Fp=this.Fp;a.cq=this.cq;null!==this.Nd?(a.Nd=this.Nd.copy(),a.Nd.group=a):(null!==a.Nd&&(a.Nd.group=null),a.Nd=null)}; -V.prototype.Mh=function(a){U.prototype.Mh.call(this,a);var b=a.yo();for(a=a.Mc;a.next();){var c=a.value;c.R();c.H(8);c.ls();if(c instanceof U)c.sf(b);else if(c instanceof W)for(c=c.ug;c.next();)c.value.sf(b)}}; +V.prototype.Nh=function(a){U.prototype.Nh.call(this,a);var b=a.yo();for(a=a.Mc;a.next();){var c=a.value;c.R();c.H(8);c.ls();if(c instanceof U)c.sf(b);else if(c instanceof W)for(c=c.ug;c.next();)c.value.sf(b)}}; V.prototype.Lm=function(a,b,c,d,e,f,h){if(a===be&&"elements"===b)if(e instanceof ph){var k=e;null===this.Pb?this.Pb=k:this.Pb!==k&&u.k("Cannot insert a second Placeholder into the visual tree of a Group.")}else e instanceof A&&(k=e.vs(function(a){return a instanceof ph}),k instanceof ph&&(null===this.Pb?this.Pb=k:this.Pb!==k&&u.k("Cannot insert a second Placeholder into the visual tree of a Group.")));else a===ce&&"elements"===b&&null!==this.Pb&&(d===this.Pb?this.Pb=null:d instanceof A&&this.Pb.gl(d)&& (this.Pb=null));U.prototype.Lm.call(this,a,b,c,d,e,f,h)};V.prototype.xi=function(a,b,c,d){this.zk=this.Pb;A.prototype.xi.call(this,a,b,c,d)};V.prototype.hl=function(){if(!U.prototype.hl.call(this))return!1;for(var a=this.Mc;a.next();){var b=a.value;if(b instanceof U){if(b.Ea()&&Bj(b))return!1}else if(b instanceof W&&b.Ea()&&Bj(b)&&b.W!==this&&b.ca!==this)return!1}return!0};u.u(V,{placeholder:"placeholder"},function(){return this.Pb}); u.defineProperty(V,{aD:"computesBoundsAfterDrag"},function(){return this.Dp},function(a){var b=this.Dp;b!==a&&(u.j(a,"boolean",V,"computesBoundsAfterDrag"),this.Dp=a,this.h("computesBoundsAfterDrag",b,a))});u.defineProperty(V,{bG:"computesBoundsIncludingLinks"},function(){return this.Ep},function(a){u.j(a,"boolean",V,"computesBoundsIncludingLinks");var b=this.Ep;b!==a&&(this.Ep=a,this.h("computesBoundsIncludingLinks",b,a))}); @@ -1557,7 +1559,7 @@ V.prototype.xm=function(){if(0d?1:0):1:null!==d?-1:0}; -ya.smartComparer=function(a,b){if(null!==a){if(null!==b){var c=a.kd,d=b.kd;if(null!==c){if(null!==d){for(var c=c.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),d=d.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),e=0;ed?1:0):1:null!==d?-1:0}; +ya.smartComparer=function(a,b){if(null!==a){if(null!==b){var c=a.ld,d=b.ld;if(null!==c){if(null!==d){for(var c=c.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),d=d.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),e=0;e=f&&0>=h&&(f=1);c=this.spacing.width;isFinite(c)||(c=0);a=this.spacing.height;isFinite(a)||(a=0);null!==b&&b.Wb("Layout");d=[];switch(this.alignment){case fm:var k= c,l=a,m=Math.max(this.qo.width,1);if(!isFinite(m))for(var n=m=0;nf-1|| @@ -1618,12 +1620,12 @@ T=x=this.Ud.x,B=this.Ud.y,y=0;h>=C&&(h-=C);for(var C=I=0,H=Math.max(this.qo.heig T],Ea=On(Z,Z.ec,Z.Ze,N);Z.moveTo(Z.position.x,Z.position.y+p-Ea.y)}aa+=m;B=R?B+aa:B+(aa+p);y=aa=p=0;T=x;R=!1}T===x&&(C=v===dm?Math.max(C,s.width-t.x):Math.min(C,-t.x));p=Math.max(p,t.y);aa=Math.max(aa,s.height-t.y);isFinite(H)&&(aa=Math.max(aa,Math.max(s.height,H)-t.y));R?r.moveTo(T-t.x,B-t.y):r.moveTo(T-t.x,B);switch(v){case dm:T-=t.x+l;break;default:T+=s.width-t.x+l}y++}d.push(new z(0,B,h+l,(R?aa:aa+p)+m));for(T=0;TC&&(e.width+=e.x-C,e.x=C)}for(k=f=h=e=0;kd?1:0}; +u.defineProperty(Xk,{spacing:"spacing"},function(){return this.Hh},function(a){u.C(a,ia,Xk,"spacing");this.Hh.L(a)||(this.Hh.assign(a),this.H())});u.defineProperty(Xk,{alignment:"alignment"},function(){return this.se},function(a){this.se!==a&&(u.rb(a,Xk,Xk,"alignment"),a===em||a===fm)&&(this.se=a,this.H())});u.defineProperty(Xk,{Gf:"arrangement"},function(){return this.Yc},function(a){this.Yc!==a&&(u.rb(a,Xk,Xk,"arrangement"),a===cm||a===dm)&&(this.Yc=a,this.H())}); +u.defineProperty(Xk,{sorting:"sorting"},function(){return this.Gh},function(a){this.Gh!==a&&(u.rb(a,Xk,Xk,"sorting"),a===am||a===bm||a===Zl||a===$l)&&(this.Gh=a,this.H())});u.defineProperty(Xk,{comparer:"comparer"},function(){return this.qh},function(a){this.qh!==a&&(u.j(a,"function",Xk,"comparer"),this.qh=a,this.H())});var ep;Xk.standardComparer=ep=function(a,b){var c=a.text,d=b.text;return cd?1:0}; Xk.smartComparer=function(a,b){if(null!==a){if(null!==b){for(var c=a.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),d=b.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),e=0;e=a.count)1===a.count&&(a=a.first(),a.Ja=0,a.Ua=0);else{var b=new E(hp);b.Td(a.i);a=new E(hp);var c=new E(hp),d;d=this.sort(b);var e=this.Fx,f=this.eB,h=this.td,k=this.rn,l=this.Gx,m=this.Sp,b=this.mk,n=this.yC,p=this.jg,q=this.Vt,e=this.Gf,f=this.qw,h=this.OH;if(!isFinite(h)|| 0>=h)h=NaN;k=this.QF;if(!isFinite(k)||0>=k)k=1;l=this.Je;isFinite(l)||(l=0);m=this.Qf;if(!isFinite(m)||360m)m=360;b=this.spacing;isFinite(b)||(b=NaN);e===Am&&f===Bm?e=zm:e===Am&&f!==Bm&&(f=Bm,e=this.Gf);if((this.direction===mm||this.direction===nm)&&this.sorting!==lm){for(var r=0;!(r>=d.length);r+=2){a.add(d.ja(r));if(r+1>=d.length)break;c.add(d.ja(r+1))}this.direction===mm?(this.Gf===Am&&a.reverse(),d=new E(hp),d.Td(a),d.Td(c)):(this.Gf===Am&&c.reverse(),d=new E(hp),d.Td(c),d.Td(a))}for(var s= d.length,t=n=0,r=0;rm&&(0===r||r===d.length-1)&&(v/=2);n+=v;t++}if(isNaN(h)||e===Am){isNaN(b)&&(b=6);if(e!==zm&&e!==Am){v=-Infinity;for(r=0;rq||q===l||(s=q>l?q-l:l-q,p+=qm-s?1:-1);c.splice(0>p?l:l+1,0,b);e.splice(h,1);h--}else k=!1;if(k)break;else c.push(e[0]),e.splice(0,1)}for(b=0;b=a?a:360,this.H())}); u.defineProperty(gm,{Gf:"arrangement"},function(){return this.Yc},function(a){this.Yc!==a&&(u.rb(a,gm,gm,"arrangement"),a===Am||a===zm||a===ym||a===xm)&&(this.Yc=a,this.H())});u.defineProperty(gm,{direction:"direction"},function(){return this.la},function(a){this.la!==a&&(u.rb(a,gm,gm,"direction"),a===om||a===wm||a===mm||a===nm)&&(this.la=a,this.H())}); -u.defineProperty(gm,{sorting:"sorting"},function(){return this.Fh},function(a){this.Fh!==a&&(u.rb(a,gm,gm,"sorting"),a===jm||a===km||a===hm||im||a===lm)&&(this.Fh=a,this.H())});u.defineProperty(gm,{comparer:"comparer"},function(){return this.ph},function(a){this.ph!==a&&(u.j(a,"function",gm,"comparer"),this.ph=a,this.H())});u.defineProperty(gm,{spacing:"spacing"},function(){return this.Gh},function(a){this.Gh!==a&&(u.j(a,"number",gm,"spacing"),this.Gh=a,this.H())}); -u.defineProperty(gm,{qw:"nodeDiameterFormula"},function(){return this.Zq},function(a){this.Zq!==a&&(u.rb(a,gm,gm,"nodeDiameterFormula"),a===Cm||a===Bm)&&(this.Zq=a,this.H())});u.u(gm,{JF:"actualXRadius"},function(){return this.td});u.u(gm,{KF:"actualYRadius"},function(){return this.jg});u.u(gm,{FI:"actualSpacing"},function(){return this.mk});u.u(gm,{IF:"actualCenter"},function(){return isNaN(this.Ud.x)||isNaN(this.Ud.y)?new w(0,0):new w(this.Ud.x+this.JF,this.Ud.y+this.KF)});var zm; +u.defineProperty(gm,{sorting:"sorting"},function(){return this.Gh},function(a){this.Gh!==a&&(u.rb(a,gm,gm,"sorting"),a===jm||a===km||a===hm||im||a===lm)&&(this.Gh=a,this.H())});u.defineProperty(gm,{comparer:"comparer"},function(){return this.qh},function(a){this.qh!==a&&(u.j(a,"function",gm,"comparer"),this.qh=a,this.H())});u.defineProperty(gm,{spacing:"spacing"},function(){return this.Hh},function(a){this.Hh!==a&&(u.j(a,"number",gm,"spacing"),this.Hh=a,this.H())}); +u.defineProperty(gm,{qw:"nodeDiameterFormula"},function(){return this.Zq},function(a){this.Zq!==a&&(u.rb(a,gm,gm,"nodeDiameterFormula"),a===Cm||a===Bm)&&(this.Zq=a,this.H())});u.u(gm,{JF:"actualXRadius"},function(){return this.td});u.u(gm,{KF:"actualYRadius"},function(){return this.jg});u.u(gm,{GI:"actualSpacing"},function(){return this.mk});u.u(gm,{IF:"actualCenter"},function(){return isNaN(this.Ud.x)||isNaN(this.Ud.y)?new w(0,0):new w(this.Ud.x+this.JF,this.Ud.y+this.KF)});var zm; gm.ConstantSpacing=zm=u.s(gm,"ConstantSpacing",0);var ym;gm.ConstantDistance=ym=u.s(gm,"ConstantDistance",1);var xm;gm.ConstantAngle=xm=u.s(gm,"ConstantAngle",2);var Am;gm.Packed=Am=u.s(gm,"Packed",3);var om;gm.Clockwise=om=u.s(gm,"Clockwise",4);var wm;gm.Counterclockwise=wm=u.s(gm,"Counterclockwise",5);var mm;gm.BidirectionalLeft=mm=u.s(gm,"BidirectionalLeft",6);var nm;gm.BidirectionalRight=nm=u.s(gm,"BidirectionalRight",7);var jm;gm.Forwards=jm=u.s(gm,"Forwards",8);var km; gm.Reverse=km=u.s(gm,"Reverse",9);var hm;gm.Ascending=hm=u.s(gm,"Ascending",10);var im;gm.Descending=im=u.s(gm,"Descending",11);var lm;gm.Optimized=lm=u.s(gm,"Optimized",12);var Cm;gm.Pythagorean=Cm=u.s(gm,"Pythagorean",13);var Bm;gm.Circular=Bm=u.s(gm,"Circular",14);function fp(){this.Ao=-Infinity;this.lp=this.Qm=null} fp.prototype.compare=function(a,b){if(0this.Ao||Math.abs(a)a&&0f?(e=n.x+n.width/2,k=n.y+n.height/2,l[0]=new w(n.x+n.width+d.width,n.y),l[1]=new w(n.x,n.y+n.height+d.height),f=2):(p=yp(l,f,e,k,n.width,n.height,d),q=l[p],r=new w(q.x+n.width+d.width, q.y),s=new w(q.x,q.y+n.height+d.height),p+1this.network.vertexes.count)return!1;for(var a=0,b=0,c=this.network.vertexes.first().kb,d=this.network.vertexes.i;d.next();){if(d.value.kb.sg(c)&&(a++,2this.network.vertexes.count)return!1;for(var a=0,b=0,c=this.network.vertexes.first().kb,d=this.network.vertexes.i;d.next();){if(d.value.kb.sg(c)&&(a++,2a.network.vertexes.count)return!1;null===a.ig?a.ig=new E(Dp):a.ig.clear();a.ig.Td(a.network.vertexes);var c=a.ig;c.sort(function(a,b){return null===a||null===b||a===b?0:b.Of-a.Of});for(var d=c.count-1;0<=d&&1>=c.ja(d).Of;)d--;return 1=h))){for(var m=0,n=0,p=l.count-h;pl+h?(d=d+f-k,e=e-l-h,K.sqrt(d*d+e*e)):e+ck+m?e>l+h?(d=d-k-m,e=e-l-h,K.sqrt(d*d+e*e)):e+cl+h?e-(l+h):e+c=b.length)return!1;var c=b[0];c.forceX=0;c.forceY=0;for(var d=c.Ja,e=d,f=c.Ua,h=f,c=1;ch-f)?b.sort(function(a,b){return null===a||null===b||a===b?0:a.Ja-b.Ja}):b.sort(function(a,b){return null===a||null===b||a===b?0:a.Ua-b.Ua});for(var h=a.yh,m=0,n=0,p=0,c=0;c=b.length)return!1;var c=b[0];c.forceX=0;c.forceY=0;for(var d=c.Ja,e=d,f=c.Ua,h=f,c=1;ch-f)?b.sort(function(a,b){return null===a||null===b||a===b?0:a.Ja-b.Ja}):b.sort(function(a,b){return null===a||null===b||a===b?0:a.Ua-b.Ua});for(var h=a.zh,m=0,n=0,p=0,c=0;ch||p-d>h){if(f)break}else if(l-r>h||r-l>h){if(!f)break}else{var s=Gp(k,e);1>s?(n=a.xw,null===n&&(a.xw=n=new Ga(0)),m=n.random(),s=n.random(),d>p?(n=Math.abs(e.aa.right-k.aa.x),n=(1+n)*m):dr?(p=Math.abs(e.aa.bottom-k.aa.y),p=(1+p)*s):ds?(n=a.xw,null===n&&(a.xw=n=new Ga(0)), -m=n.random(),s=n.random(),n=(d>p?1:-1)*(1+(e.width>k.width)?e.width:k.width)*m,p=(l>r?1:-1)*(1+(e.height>k.height)?e.height:k.height)*s):(m=f.stiffness*(s-f.length),n=(p-d)/s*m,p=(r-l)/s*m),k.forceX+=n,k.forceY+=p,e.forceX-=n,e.forceY-=p;c=0;d=Math.max(a.yh/20,50);for(e=0;ed&&(f=d),h<-d?h=-d:h>d&&(h=d),k.Ja+=f,k.Ua+=h,c=Math.max(c,f*f+h*h));return c>a.oD*a.oD}vp.prototype.moveFixedVertex=function(){}; +m=n.random(),s=n.random(),n=(d>p?1:-1)*(1+(e.width>k.width)?e.width:k.width)*m,p=(l>r?1:-1)*(1+(e.height>k.height)?e.height:k.height)*s):(m=f.stiffness*(s-f.length),n=(p-d)/s*m,p=(r-l)/s*m),k.forceX+=n,k.forceY+=p,e.forceX-=n,e.forceY-=p;c=0;d=Math.max(a.zh/20,50);for(e=0;ed&&(f=d),h<-d?h=-d:h>d&&(h=d),k.Ja+=f,k.Ua+=h,c=Math.max(c,f*f+h*h));return c>a.oD*a.oD}vp.prototype.moveFixedVertex=function(){}; vp.prototype.commitLayout=function(){this.cA();this.commitNodes();this.Qs&&this.commitLinks()};vp.prototype.cA=function(){if(this.fp)for(var a=this.network.edges.i;a.next();){var b=a.value.link;null!==b&&(b.vb=uc,b.xb=uc)}};vp.prototype.commitNodes=function(){var a=0,b=0;if(this.PF){var c=u.Sf();this.kg(this.network,c);b=this.Ud;a=b.x-c.x;b=b.y-c.y;u.ic(c)}for(var c=u.Sf(),d=this.network.vertexes.i;d.next();){var e=d.value;if(0!==a||0!==b)c.assign(e.kb),c.x+=a,c.y+=b,e.kb=c;e.commit()}u.ic(c)}; vp.prototype.commitLinks=function(){for(var a=this.network.edges.i;a.next();)a.value.commit()};vp.prototype.springStiffness=function(a){a=a.stiffness;return isNaN(a)?this.mn:a};vp.prototype.springLength=function(a){a=a.length;return isNaN(a)?this.ln:a};vp.prototype.electricalCharge=function(a){a=a.charge;return isNaN(a)?this.hn:a};vp.prototype.electricalFieldX=function(){return 0};vp.prototype.electricalFieldY=function(){return 0}; -vp.prototype.gravitationalMass=function(a){a=a.mass;return isNaN(a)?this.kn:a};vp.prototype.gravitationalFieldX=function(){return 0};vp.prototype.gravitationalFieldY=function(){return 0};vp.prototype.isFixed=function(a){return a.isFixed};u.u(vp,{gJ:"currentIteration"},function(){return this.vq});u.defineProperty(vp,{QC:"arrangementSpacing"},function(){return this.Uf},function(a){u.C(a,ia,vp,"arrangementSpacing");this.Uf.L(a)||(this.Uf.assign(a),this.H())}); -u.defineProperty(vp,{PF:"arrangesToOrigin"},function(){return this.xp},function(a){this.xp!==a&&(u.j(a,"boolean",vp,"arrangesToOrigin"),this.xp=a,this.H())});u.defineProperty(vp,{fp:"setsPortSpots"},function(){return this.Eh},function(a){this.Eh!==a&&(u.j(a,"boolean",vp,"setsPortSpots"),this.Eh=a,this.H())});u.defineProperty(vp,{comments:"comments"},function(){return this.oh},function(a){this.oh!==a&&(u.j(a,"boolean",vp,"comments"),this.oh=a,this.H())}); -u.defineProperty(vp,{Az:"maxIterations"},function(){return this.On},function(a){this.On!==a&&(u.j(a,"number",vp,"maxIterations"),0<=a&&(this.On=a,this.H()))});u.defineProperty(vp,{oD:"epsilonDistance"},function(){return this.Up},function(a){this.Up!==a&&(u.j(a,"number",vp,"epsilonDistance"),0b.toVertex.index&&(this.network.yw(b),b.rev=!0);break;case Op:for(b=this.network.vertexes.i;b.next();)a=b.value,a.wo=-1,a.finish=-1;for(a=this.network.edges.i;a.next();)a.value.forest=!1;this.Uq=0;for(b.reset();b.next();)c=b.value,0===c.kc.count&&aq(this,c);for(b.reset();b.next();)c=b.value,-1===c.wo&&aq(this,c);for(a.reset();a.next();)b=a.value,b.forest||(c=b.fromVertex, -d=c.finish,e=b.toVertex,f=e.finish,e.wos&&0s&&0s&&0s&&0b[this.Cf]&&(this.Fu=b[c]-1,this.Cf=c),b[c]h)for(var p=h+1;pn;p--)l=d[p],l.near===m&&l.om===m.om||k++;var m=0,q,r=q=p=l=0,s,t=0,v=0;s=0;var x;if(0<=c)for(n=d[h].Ie,m=0;mt||l===t&&q>s)&&k++,vl||t===l&&s>q)&&k++);if(0>=c)for(n=d[h].Ce,m=0;mt||l===t&&p>v)&&k++,sl||t===l&&v>p)&&k++);f[h*e+h]=k;for(n=h+1;ne?hq(a,d):hb)for(c=a.Hb;0<=c;c--)for(d=gq(a),e=jq(a),f=e+1;ee?hq(a,d):hc)for(d.reset();d.next();)e=d.value,e.column+a.nodeMinColumnSpace(e,!1)>=b&&(e.component=a.cg);a.cg++;for(d.reset();d.next();)b=d.value,-1===b.component&&(nq(a,b,a.cg,-1,!0,!0),a.cg++);var f=0;b=[];for(f=0;fc)for(k=a.Hb;0c)for(d.reset();d.next();)c=d.value,e[c.component]&&(c.column+=1)} +0;fc)for(d.reset();d.next();)c=d.value,e[c.component]&&(c.column+=1)} Yl.prototype.commitLayout=function(){if(this.fp)for(var a=bq(this,!0),b=bq(this,!1),c=this.network.edges.i;c.next();){var d=c.value.link;null!==d&&(d.vb=a,d.xb=b)}this.commitNodes();this.Sy();this.Qs&&this.commitLinks()};function bq(a,b){return 270===a.la?b?vc:Cc:90===a.la?b?Cc:vc:180===a.la?b?wc:xc:b?xc:wc} Yl.prototype.commitNodes=function(){this.Lg=[];this.$f=[];this.Bf=[];this.Kb=[];for(var a=0;a<=this.jb;a++)this.Lg[a]=0,this.$f[a]=0,this.Bf[a]=0,this.Kb[a]=0;for(a=this.network.vertexes.i;a.next();){var b=a.value,c=b.layer;this.Lg[c]=Math.max(this.Lg[c],this.nodeMinLayerSpace(b,!0));this.$f[c]=Math.max(this.$f[c],this.nodeMinLayerSpace(b,!1))}for(var b=0,d=this.Ql,c=0;c<=this.jb;c++){var e=d;0>=this.Lg[c]+this.$f[c]&&(e=0);0=ua.aa.y&&ec<=ua.aa.bottom&&(ra=ua.Ja+Lf,ec=ec=ua.aa.x&&ec<=ua.aa.right&&(ra=ua.Ua+Lf,ec=ecLb.y&&(Nf=og.y>Lb.y?0:Ec.xLb.y&&(Nf=og.y>Lb.y?0:Ec.xpc.x&&(Of=Pg.x>pc.x?0:Pc.ypc.x&&(Of=Pg.x>pc.x?0:Pc.yb.layer?1:a.Beb.Be?1:a.Vdb.Vd?1:0:0};Yl.prototype.zE=function(a,b){return a instanceof Mq&&b instanceof Mq&&a!==b?a.firstb.first||a.Rhb.Rh||a.Beb.Be?1:a.Vdb.Vd?1:0:0}; -Yl.prototype.Aw=function(a,b){return a instanceof Mq&&b instanceof Mq&&a!==b?a.Gdb.Gd||a.Rhb.Rh||a.Beb.Be?1:a.Vdb.Vd?1:0:0};Yl.prototype.D=function(a,b){var c=a-b;return-1c};function dq(a,b){var c,d=a.Ld[b];if(d>=a.Ng.length){c=[];for(var e=0;eb.layer?1:a.Beb.Be?1:a.Vdb.Vd?1:0:0};Yl.prototype.zE=function(a,b){return a instanceof Mq&&b instanceof Mq&&a!==b?a.firstb.first||a.Shb.Sh||a.Beb.Be?1:a.Vdb.Vd?1:0:0}; +Yl.prototype.Aw=function(a,b){return a instanceof Mq&&b instanceof Mq&&a!==b?a.Gdb.Gd||a.Shb.Sh||a.Beb.Be?1:a.Vdb.Vd?1:0:0};Yl.prototype.D=function(a,b){var c=a-b;return-1c};function dq(a,b){var c,d=a.Ld[b];if(d>=a.Ng.length){c=[];for(var e=0;ea&&(this.oi=a,this.H()))});u.defineProperty(Yl,{fp:"setsPortSpots"},function(){return this.Eh},function(a){this.Eh!==a&&(u.j(a,"boolean",Yl,"setsPortSpots"),this.Eh=a,this.H())});u.defineProperty(Yl,{ow:"linkSpacing"},function(){return this.gj},function(a){this.gj!==a&&(u.j(a,"number",Yl,"linkSpacing"),0<=a&&(this.gj=a,this.H()))});u.u(Yl,{uH:"maxLayer"},function(){return this.jb}); -u.u(Yl,{TJ:"maxIndex"},function(){return this.Fu});u.u(Yl,{SJ:"maxColumn"},function(){return this.Hb});u.u(Yl,{ZJ:"minIndexLayer"},function(){return this.Nq});u.u(Yl,{UJ:"maxIndexLayer"},function(){return this.Cf});var Op;Yl.CycleDepthFirst=Op=u.s(Yl,"CycleDepthFirst",0);var Xp;Yl.CycleGreedy=Xp=u.s(Yl,"CycleGreedy",1);var Sp;Yl.LayerOptimalLinkLength=Sp=u.s(Yl,"LayerOptimalLinkLength",0);var oq;Yl.LayerLongestPathSink=oq=u.s(Yl,"LayerLongestPathSink",1);var qq; +u.defineProperty(Yl,{WG:"initializeOption"},function(){return this.Bn},function(a){this.Bn!==a&&(u.rb(a,Yl,Yl,"initializeOption"),a===Tp||a===wq||a===uq)&&(this.Bn=a,this.H())});u.defineProperty(Yl,{OJ:"iterations"},function(){return this.Nl},function(a){this.Nl!==a&&(u.ze(a,Wp,"iterations"),0<=a&&(this.Nl=a,this.H()))});u.defineProperty(Yl,{NF:"aggressiveOption"},function(){return this.Wm},function(a){this.Wm!==a&&(u.rb(a,Yl,Yl,"aggressiveOption"),a===Aq||a===Up||a===Bq)&&(this.Wm=a,this.H())}); +u.defineProperty(Yl,{mK:"packOption"},function(){return this.oi},function(a){this.oi!==a&&(u.j(a,"number",Yl,"packOption"),0<=a&&8>a&&(this.oi=a,this.H()))});u.defineProperty(Yl,{fp:"setsPortSpots"},function(){return this.Fh},function(a){this.Fh!==a&&(u.j(a,"boolean",Yl,"setsPortSpots"),this.Fh=a,this.H())});u.defineProperty(Yl,{ow:"linkSpacing"},function(){return this.gj},function(a){this.gj!==a&&(u.j(a,"number",Yl,"linkSpacing"),0<=a&&(this.gj=a,this.H()))});u.u(Yl,{uH:"maxLayer"},function(){return this.jb}); +u.u(Yl,{VJ:"maxIndex"},function(){return this.Fu});u.u(Yl,{UJ:"maxColumn"},function(){return this.Hb});u.u(Yl,{aK:"minIndexLayer"},function(){return this.Nq});u.u(Yl,{WJ:"maxIndexLayer"},function(){return this.Cf});var Op;Yl.CycleDepthFirst=Op=u.s(Yl,"CycleDepthFirst",0);var Xp;Yl.CycleGreedy=Xp=u.s(Yl,"CycleGreedy",1);var Sp;Yl.LayerOptimalLinkLength=Sp=u.s(Yl,"LayerOptimalLinkLength",0);var oq;Yl.LayerLongestPathSink=oq=u.s(Yl,"LayerLongestPathSink",1);var qq; Yl.LayerLongestPathSource=qq=u.s(Yl,"LayerLongestPathSource",2);var Tp;Yl.InitDepthFirstOut=Tp=u.s(Yl,"InitDepthFirstOut",0);var wq;Yl.InitDepthFirstIn=wq=u.s(Yl,"InitDepthFirstIn",1);var uq;Yl.InitNaive=uq=u.s(Yl,"InitNaive",2);var Aq;Yl.AggressiveNone=Aq=u.s(Yl,"AggressiveNone",0);var Up;Yl.AggressiveLess=Up=u.s(Yl,"AggressiveLess",1);var Bq;Yl.AggressiveMore=Bq=u.s(Yl,"AggressiveMore",2);Yl.PackNone=0;var Cq;Yl.PackExpand=Cq=1;var Dq;Yl.PackStraighten=Dq=2;var Fq;Yl.PackMedian=Fq=4;var Vp; -Yl.PackAll=Vp=7;function Mq(){this.index=this.Vd=this.Be=this.Gd=this.first=this.layer=0;this.link=null;this.Rh=0}u.Xd(Mq,{layer:!0,first:!0,Gd:!0,Be:!0,Vd:!0,index:!0,link:!0,Rh:!0});function Wp(){xa.call(this)}u.Ga(Wp,xa);u.fa("LayeredDigraphNetwork",Wp);Wp.prototype.createVertex=function(){return new Nq};Wp.prototype.createEdge=function(){return new Oq}; +Yl.PackAll=Vp=7;function Mq(){this.index=this.Vd=this.Be=this.Gd=this.first=this.layer=0;this.link=null;this.Sh=0}u.Xd(Mq,{layer:!0,first:!0,Gd:!0,Be:!0,Vd:!0,index:!0,link:!0,Sh:!0});function Wp(){xa.call(this)}u.Ga(Wp,xa);u.fa("LayeredDigraphNetwork",Wp);Wp.prototype.createVertex=function(){return new Nq};Wp.prototype.createEdge=function(){return new Oq}; function Nq(){ya.call(this);this.index=this.column=this.layer=-1;this.component=NaN;this.near=null;this.valid=!1;this.finish=this.wo=NaN;this.om=0;this.Hz=this.Iz=null}u.Ga(Nq,ya);u.fa("LayeredDigraphVertex",Nq);function Oq(){Aa.call(this);this.forest=this.rev=this.valid=!1;this.portToPos=this.portFromPos=NaN;this.portToColOffset=this.portFromColOffset=0}u.Ga(Oq,Aa);u.fa("LayeredDigraphEdge",Oq); -function Y(){0f;)e=p[l++],n[m++].m(e.x,e.y);e=Er(a,m);for(l=0;l=a?0:135>=a?90:225>=a?180:315>=a?270:0} function Ar(a){var b=xr(a),b=90===b||270===b,c=a.layerSpacing;if(0=a&&(this.qa.nodeIndentPastParent=a,this.H()))}); @@ -1853,16 +1855,16 @@ u.defineProperty(Y,{breadthLimit:"breadthLimit"},function(){return this.qa.bread u.defineProperty(Y,{rowIndent:"rowIndent"},function(){return this.qa.rowIndent},function(a){this.qa.rowIndent!==a&&(u.j(a,"number",Y,"rowIndent"),0<=a&&(this.qa.rowIndent=a,this.H()))});u.defineProperty(Y,{commentSpacing:"commentSpacing"},function(){return this.qa.commentSpacing},function(a){this.qa.commentSpacing!==a&&(u.j(a,"number",Y,"commentSpacing"),this.qa.commentSpacing=a,this.H())}); u.defineProperty(Y,{commentMargin:"commentMargin"},function(){return this.qa.commentMargin},function(a){this.qa.commentMargin!==a&&(u.j(a,"number",Y,"commentMargin"),this.qa.commentMargin=a,this.H())});u.defineProperty(Y,{setsPortSpot:"setsPortSpot"},function(){return this.qa.setsPortSpot},function(a){this.qa.setsPortSpot!==a&&(u.j(a,"boolean",Y,"setsPortSpot"),this.qa.setsPortSpot=a,this.H())}); u.defineProperty(Y,{portSpot:"portSpot"},function(){return this.qa.portSpot},function(a){u.C(a,L,Y,"portSpot");this.qa.portSpot.L(a)||(this.qa.portSpot=a,this.H())});u.defineProperty(Y,{setsChildPortSpot:"setsChildPortSpot"},function(){return this.qa.setsChildPortSpot},function(a){this.qa.setsChildPortSpot!==a&&(u.j(a,"boolean",Y,"setsChildPortSpot"),this.qa.setsChildPortSpot=a,this.H())}); -u.defineProperty(Y,{childPortSpot:"childPortSpot"},function(){return this.qa.childPortSpot},function(a){u.C(a,L,Y,"childPortSpot");this.qa.childPortSpot.L(a)||(this.qa.childPortSpot=a,this.H())});u.defineProperty(Y,{$I:"alternateSorting"},function(){return this.pa.sorting},function(a){this.pa.sorting!==a&&(u.rb(a,Y,Y,"alternateSorting"),a===jr||a===kr||a===lr||mr)&&(this.pa.sorting=a,this.H())}); -u.defineProperty(Y,{NI:"alternateComparer"},function(){return this.pa.comparer},function(a){this.pa.comparer!==a&&(u.j(a,"function",Y,"alternateComparer"),this.pa.comparer=a,this.H())});u.defineProperty(Y,{HI:"alternateAngle"},function(){return this.pa.angle},function(a){this.pa.angle!==a&&(u.j(a,"number",Y,"alternateAngle"),0===a||90===a||180===a||270===a)&&(this.pa.angle=a,this.H())}); -u.defineProperty(Y,{GI:"alternateAlignment"},function(){return this.pa.alignment},function(a){this.pa.alignment!==a&&(u.rb(a,Y,Y,"alternateAlignment"),this.pa.alignment=a,this.H())});u.defineProperty(Y,{SI:"alternateNodeIndent"},function(){return this.pa.nodeIndent},function(a){this.pa.nodeIndent!==a&&(u.j(a,"number",Y,"alternateNodeIndent"),0<=a&&(this.pa.nodeIndent=a,this.H()))}); -u.defineProperty(Y,{TI:"alternateNodeIndentPastParent"},function(){return this.pa.nodeIndentPastParent},function(a){this.pa.nodeIndentPastParent!==a&&(u.j(a,"number",Y,"alternateNodeIndentPastParent"),0<=a&&1>=a&&(this.pa.nodeIndentPastParent=a,this.H()))});u.defineProperty(Y,{UI:"alternateNodeSpacing"},function(){return this.pa.nodeSpacing},function(a){this.pa.nodeSpacing!==a&&(u.j(a,"number",Y,"alternateNodeSpacing"),this.pa.nodeSpacing=a,this.H())}); -u.defineProperty(Y,{QI:"alternateLayerSpacing"},function(){return this.pa.layerSpacing},function(a){this.pa.layerSpacing!==a&&(u.j(a,"number",Y,"alternateLayerSpacing"),this.pa.layerSpacing=a,this.H())});u.defineProperty(Y,{RI:"alternateLayerSpacingParentOverlap"},function(){return this.pa.layerSpacingParentOverlap},function(a){this.pa.layerSpacingParentOverlap!==a&&(u.j(a,"number",Y,"alternateLayerSpacingParentOverlap"),0<=a&&1>=a&&(this.pa.layerSpacingParentOverlap=a,this.H()))}); -u.defineProperty(Y,{MI:"alternateCompaction"},function(){return this.pa.compaction},function(a){this.pa.compaction!==a&&(u.rb(a,Y,Y,"alternateCompaction"),a===ur||a===wr)&&(this.pa.compaction=a,this.H())});u.defineProperty(Y,{II:"alternateBreadthLimit"},function(){return this.pa.breadthLimit},function(a){this.pa.breadthLimit!==a&&(u.j(a,"number",Y,"alternateBreadthLimit"),0<=a&&(this.pa.breadthLimit=a,this.H()))}); -u.defineProperty(Y,{XI:"alternateRowSpacing"},function(){return this.pa.rowSpacing},function(a){this.pa.rowSpacing!==a&&(u.j(a,"number",Y,"alternateRowSpacing"),this.pa.rowSpacing=a,this.H())});u.defineProperty(Y,{WI:"alternateRowIndent"},function(){return this.pa.rowIndent},function(a){this.pa.rowIndent!==a&&(u.j(a,"number",Y,"alternateRowIndent"),0<=a&&(this.pa.rowIndent=a,this.H()))}); -u.defineProperty(Y,{LI:"alternateCommentSpacing"},function(){return this.pa.commentSpacing},function(a){this.pa.commentSpacing!==a&&(u.j(a,"number",Y,"alternateCommentSpacing"),this.pa.commentSpacing=a,this.H())});u.defineProperty(Y,{KI:"alternateCommentMargin"},function(){return this.pa.commentMargin},function(a){this.pa.commentMargin!==a&&(u.j(a,"number",Y,"alternateCommentMargin"),this.pa.commentMargin=a,this.H())}); -u.defineProperty(Y,{ZI:"alternateSetsPortSpot"},function(){return this.pa.setsPortSpot},function(a){this.pa.setsPortSpot!==a&&(u.j(a,"boolean",Y,"alternateSetsPortSpot"),this.pa.setsPortSpot=a,this.H())});u.defineProperty(Y,{VI:"alternatePortSpot"},function(){return this.pa.portSpot},function(a){u.C(a,L,Y,"alternatePortSpot");this.pa.portSpot.L(a)||(this.pa.portSpot=a,this.H())}); -u.defineProperty(Y,{YI:"alternateSetsChildPortSpot"},function(){return this.pa.setsChildPortSpot},function(a){this.pa.setsChildPortSpot!==a&&(u.j(a,"boolean",Y,"alternateSetsChildPortSpot"),this.pa.setsChildPortSpot=a,this.H())});u.defineProperty(Y,{JI:"alternateChildPortSpot"},function(){return this.pa.childPortSpot},function(a){u.C(a,L,Y,"alternateChildPortSpot");this.pa.childPortSpot.L(a)||(this.pa.childPortSpot=a,this.H())});var Pq;Y.PathDefault=Pq=u.s(Y,"PathDefault",-1);var Qq; +u.defineProperty(Y,{childPortSpot:"childPortSpot"},function(){return this.qa.childPortSpot},function(a){u.C(a,L,Y,"childPortSpot");this.qa.childPortSpot.L(a)||(this.qa.childPortSpot=a,this.H())});u.defineProperty(Y,{aJ:"alternateSorting"},function(){return this.pa.sorting},function(a){this.pa.sorting!==a&&(u.rb(a,Y,Y,"alternateSorting"),a===jr||a===kr||a===lr||mr)&&(this.pa.sorting=a,this.H())}); +u.defineProperty(Y,{OI:"alternateComparer"},function(){return this.pa.comparer},function(a){this.pa.comparer!==a&&(u.j(a,"function",Y,"alternateComparer"),this.pa.comparer=a,this.H())});u.defineProperty(Y,{II:"alternateAngle"},function(){return this.pa.angle},function(a){this.pa.angle!==a&&(u.j(a,"number",Y,"alternateAngle"),0===a||90===a||180===a||270===a)&&(this.pa.angle=a,this.H())}); +u.defineProperty(Y,{HI:"alternateAlignment"},function(){return this.pa.alignment},function(a){this.pa.alignment!==a&&(u.rb(a,Y,Y,"alternateAlignment"),this.pa.alignment=a,this.H())});u.defineProperty(Y,{TI:"alternateNodeIndent"},function(){return this.pa.nodeIndent},function(a){this.pa.nodeIndent!==a&&(u.j(a,"number",Y,"alternateNodeIndent"),0<=a&&(this.pa.nodeIndent=a,this.H()))}); +u.defineProperty(Y,{UI:"alternateNodeIndentPastParent"},function(){return this.pa.nodeIndentPastParent},function(a){this.pa.nodeIndentPastParent!==a&&(u.j(a,"number",Y,"alternateNodeIndentPastParent"),0<=a&&1>=a&&(this.pa.nodeIndentPastParent=a,this.H()))});u.defineProperty(Y,{VI:"alternateNodeSpacing"},function(){return this.pa.nodeSpacing},function(a){this.pa.nodeSpacing!==a&&(u.j(a,"number",Y,"alternateNodeSpacing"),this.pa.nodeSpacing=a,this.H())}); +u.defineProperty(Y,{RI:"alternateLayerSpacing"},function(){return this.pa.layerSpacing},function(a){this.pa.layerSpacing!==a&&(u.j(a,"number",Y,"alternateLayerSpacing"),this.pa.layerSpacing=a,this.H())});u.defineProperty(Y,{SI:"alternateLayerSpacingParentOverlap"},function(){return this.pa.layerSpacingParentOverlap},function(a){this.pa.layerSpacingParentOverlap!==a&&(u.j(a,"number",Y,"alternateLayerSpacingParentOverlap"),0<=a&&1>=a&&(this.pa.layerSpacingParentOverlap=a,this.H()))}); +u.defineProperty(Y,{NI:"alternateCompaction"},function(){return this.pa.compaction},function(a){this.pa.compaction!==a&&(u.rb(a,Y,Y,"alternateCompaction"),a===ur||a===wr)&&(this.pa.compaction=a,this.H())});u.defineProperty(Y,{JI:"alternateBreadthLimit"},function(){return this.pa.breadthLimit},function(a){this.pa.breadthLimit!==a&&(u.j(a,"number",Y,"alternateBreadthLimit"),0<=a&&(this.pa.breadthLimit=a,this.H()))}); +u.defineProperty(Y,{YI:"alternateRowSpacing"},function(){return this.pa.rowSpacing},function(a){this.pa.rowSpacing!==a&&(u.j(a,"number",Y,"alternateRowSpacing"),this.pa.rowSpacing=a,this.H())});u.defineProperty(Y,{XI:"alternateRowIndent"},function(){return this.pa.rowIndent},function(a){this.pa.rowIndent!==a&&(u.j(a,"number",Y,"alternateRowIndent"),0<=a&&(this.pa.rowIndent=a,this.H()))}); +u.defineProperty(Y,{MI:"alternateCommentSpacing"},function(){return this.pa.commentSpacing},function(a){this.pa.commentSpacing!==a&&(u.j(a,"number",Y,"alternateCommentSpacing"),this.pa.commentSpacing=a,this.H())});u.defineProperty(Y,{LI:"alternateCommentMargin"},function(){return this.pa.commentMargin},function(a){this.pa.commentMargin!==a&&(u.j(a,"number",Y,"alternateCommentMargin"),this.pa.commentMargin=a,this.H())}); +u.defineProperty(Y,{$I:"alternateSetsPortSpot"},function(){return this.pa.setsPortSpot},function(a){this.pa.setsPortSpot!==a&&(u.j(a,"boolean",Y,"alternateSetsPortSpot"),this.pa.setsPortSpot=a,this.H())});u.defineProperty(Y,{WI:"alternatePortSpot"},function(){return this.pa.portSpot},function(a){u.C(a,L,Y,"alternatePortSpot");this.pa.portSpot.L(a)||(this.pa.portSpot=a,this.H())}); +u.defineProperty(Y,{ZI:"alternateSetsChildPortSpot"},function(){return this.pa.setsChildPortSpot},function(a){this.pa.setsChildPortSpot!==a&&(u.j(a,"boolean",Y,"alternateSetsChildPortSpot"),this.pa.setsChildPortSpot=a,this.H())});u.defineProperty(Y,{KI:"alternateChildPortSpot"},function(){return this.pa.childPortSpot},function(a){u.C(a,L,Y,"alternateChildPortSpot");this.pa.childPortSpot.L(a)||(this.pa.childPortSpot=a,this.H())});var Pq;Y.PathDefault=Pq=u.s(Y,"PathDefault",-1);var Qq; Y.PathDestination=Qq=u.s(Y,"PathDestination",0);var Xq;Y.PathSource=Xq=u.s(Y,"PathSource",1);var jr;Y.SortingForwards=jr=u.s(Y,"SortingForwards",10);var kr;Y.SortingReverse=kr=u.s(Y,"SortingReverse",11);var lr;Y.SortingAscending=lr=u.s(Y,"SortingAscending",12);var mr;Y.SortingDescending=mr=u.s(Y,"SortingDescending",13);var Kr;Y.AlignmentCenterSubtrees=Kr=u.s(Y,"AlignmentCenterSubtrees",20);var nr;Y.AlignmentCenterChildren=nr=u.s(Y,"AlignmentCenterChildren",21);var yr; Y.AlignmentStart=yr=u.s(Y,"AlignmentStart",22);var zr;Y.AlignmentEnd=zr=u.s(Y,"AlignmentEnd",23);var pr;Y.AlignmentBus=pr=u.s(Y,"AlignmentBus",24);var er;Y.AlignmentBusBranching=er=u.s(Y,"AlignmentBusBranching",25);var qr;Y.AlignmentTopLeftBus=qr=u.s(Y,"AlignmentTopLeftBus",26);var rr;Y.AlignmentBottomRightBus=rr=u.s(Y,"AlignmentBottomRightBus",27);var ur;Y.CompactionNone=ur=u.s(Y,"CompactionNone",30);var wr;Y.CompactionBlock=wr=u.s(Y,"CompactionBlock",31);var Rq; Y.StyleLayered=Rq=u.s(Y,"StyleLayered",40);var ir;Y.StyleLastParents=ir=u.s(Y,"StyleLastParents",41);var hr;Y.StyleAlternating=hr=u.s(Y,"StyleAlternating",42);var gr;Y.StyleRootOnly=gr=u.s(Y,"StyleRootOnly",43);var Tq;Y.ArrangementVertical=Tq=u.s(Y,"ArrangementVertical",50);var Yr;Y.ArrangementHorizontal=Yr=u.s(Y,"ArrangementHorizontal",51);var Wq;Y.ArrangementFixedRoots=Wq=u.s(Y,"ArrangementFixedRoots",52);var Sq;Y.LayerIndividual=Sq=u.s(Y,"LayerIndividual",60);var cr; @@ -1870,8 +1872,8 @@ Y.LayerSiblings=cr=u.s(Y,"LayerSiblings",61);var br;Y.LayerUniform=br=u.s(Y,"Lay function Uq(){ya.call(this);this.initialized=!1;this.parent=null;this.children=[];this.maxGenerationCount=this.maxChildrenCount=this.descendantCount=this.level=0;this.comments=null;this.ia=new w(0,0);this.Ya=new ia(0,0);this.Ia=new w(0,0);this.cp=this.bp=this.aI=!1;this.jt=this.Ss=null;this.sorting=jr;this.comparer=dp;this.angle=0;this.alignment=nr;this.nodeIndentPastParent=this.nodeIndent=0;this.nodeSpacing=20;this.layerSpacing=50;this.layerSpacingParentOverlap=0;this.compaction=wr;this.breadthLimit= 0;this.rowSpacing=25;this.commentSpacing=this.rowIndent=10;this.commentMargin=20;this.setsPortSpot=!0;this.portSpot=uc;this.setsChildPortSpot=!0;this.childPortSpot=uc}u.Ga(Uq,ya);u.fa("TreeVertex",Uq); Uq.prototype.copyInheritedPropertiesFrom=function(a){null!==a&&(this.sorting=a.sorting,this.comparer=a.comparer,this.angle=a.angle,this.alignment=a.alignment,this.nodeIndent=a.nodeIndent,this.nodeIndentPastParent=a.nodeIndentPastParent,this.nodeSpacing=a.nodeSpacing,this.layerSpacing=a.layerSpacing,this.layerSpacingParentOverlap=a.layerSpacingParentOverlap,this.compaction=a.compaction,this.breadthLimit=a.breadthLimit,this.rowSpacing=a.rowSpacing,this.rowIndent=a.rowIndent,this.commentSpacing=a.commentSpacing, -this.commentMargin=a.commentMargin,this.setsPortSpot=a.setsPortSpot,this.portSpot=a.portSpot,this.setsChildPortSpot=a.setsChildPortSpot,this.childPortSpot=a.childPortSpot)};u.u(Uq,{qm:"childrenCount"},function(){return this.children.length});u.defineProperty(Uq,{pK:"relativePosition"},function(){return this.ia},function(a){this.ia.set(a)});u.defineProperty(Uq,{zK:"subtreeSize"},function(){return this.Ya},function(a){this.Ya.set(a)}); -u.defineProperty(Uq,{yK:"subtreeOffset"},function(){return this.Ia},function(a){this.Ia.set(a)});function $r(){Aa.call(this);this.nr=new w(0,0)}u.Ga($r,Aa);u.fa("TreeEdge",$r); +this.commentMargin=a.commentMargin,this.setsPortSpot=a.setsPortSpot,this.portSpot=a.portSpot,this.setsChildPortSpot=a.setsChildPortSpot,this.childPortSpot=a.childPortSpot)};u.u(Uq,{qm:"childrenCount"},function(){return this.children.length});u.defineProperty(Uq,{rK:"relativePosition"},function(){return this.ia},function(a){this.ia.set(a)});u.defineProperty(Uq,{BK:"subtreeSize"},function(){return this.Ya},function(a){this.Ya.set(a)}); +u.defineProperty(Uq,{AK:"subtreeOffset"},function(){return this.Ia},function(a){this.Ia.set(a)});function $r(){Aa.call(this);this.nr=new w(0,0)}u.Ga($r,Aa);u.fa("TreeEdge",$r); $r.prototype.commit=function(){var a=this.link;if(null!==a&&!a.el){var b=this.network.Qb,c=null,d=null;switch(b.Af){case Qq:c=this.fromVertex;d=this.toVertex;break;case Xq:c=this.toVertex;d=this.fromVertex;break;default:u.k("Unhandled path value "+b.Af.toString())}if(null!==c&&null!==d)if(b=this.nr,0!==b.x||0!==b.y||c.aI){var d=c.kb,e=xr(c),f=Ar(c),h=c.rowSpacing;a.updateRoute();var k=a.Ve===kh,l=a.dc,m=0,n,p;a.rl();if(l||k){for(m=2;4q.y+c.rowIndent&&(r=Math.min(r,Math.max(n.y,r-Br(c))))):c.alignment===yr?(r=d.top+b.y,0===b.y&&n.yq.x+c.rowIndent&&(r=Math.min(r,Math.max(n.x,r-Br(c))))):c.alignment===yr?(r=d.left+b.x,0===b.x&&n.xl?h=null:(m=parseFloat(n.getAttribute("cx")),isNaN(m)&&(m=0),n=parseFloat(n.getAttribute("cy")),isNaN(n)&&(n=0),p=new $c(nd),p.ua=0,p.va=0,p.F=2*l,p.G=2*l,h.position=new w(m-l,n-l),h.dd=p);break;case "ellipse":p=f;h=new X;l=parseFloat(p.getAttribute("rx"));isNaN(l)||0>l?h=null:(m=parseFloat(p.getAttribute("ry")),isNaN(m)||0>m?h=null:(n=parseFloat(p.getAttribute("cx")),isNaN(n)&&(n=0),p=parseFloat(p.getAttribute("cy")), -isNaN(p)&&(p=0),q=new $c(nd),q.ua=0,q.va=0,q.F=2*l,q.G=2*m,h.position=new w(n-l,p-m),h.dd=q));break;case "rect":q=f;h=new X;l=parseFloat(q.getAttribute("width"));if(isNaN(l)||0>l)h=null;else if(m=parseFloat(q.getAttribute("height")),isNaN(m)||0>m)h=null;else{n=parseFloat(q.getAttribute("x"));isNaN(n)&&(n=0);p=parseFloat(q.getAttribute("y"));isNaN(p)&&(p=0);var r=q.getAttribute("rx"),s=q.getAttribute("ry"),q=parseFloat(r);if(isNaN(q)||0>q)q=0;var t=parseFloat(s);if(isNaN(t)||0>t)t=0;null!==r&&""!== -r||null===s||""===s?null===r||""===r||null!==s&&""!==s||(t=q):q=t;q=Math.min(q,l/2);t=Math.min(t,m/2);s=void 0;0===q&&0===t?(s=new $c(md),s.ua=0,s.va=0,s.F=l,s.G=m):(s=K.sa/2,r=u.p(),M(r,q,0,!0),r.lineTo(l-q,0),O(r,l-q*s,0,l,t*s,l,t),r.lineTo(l,m-t),O(r,l,m-t*s,l-q*s,m,l-q,m),r.lineTo(q,m),O(r,q*s,m,0,m-t*s,0,m-t),r.lineTo(0,t),O(r,0,t*s,q*s,0,q,0),P(r),s=r.o,u.q(r));h.position=new w(n,p);h.dd=s}break;case "polygon":h=es(f);break;case "polyline":h=es(f)}if(null!==h){if(h instanceof X){m=h;l=bs(a, +0);h.ed=q;break;case "circle":n=f;h=new X;l=parseFloat(n.getAttribute("r"));isNaN(l)||0>l?h=null:(m=parseFloat(n.getAttribute("cx")),isNaN(m)&&(m=0),n=parseFloat(n.getAttribute("cy")),isNaN(n)&&(n=0),p=new $c(nd),p.ua=0,p.va=0,p.F=2*l,p.G=2*l,h.position=new w(m-l,n-l),h.ed=p);break;case "ellipse":p=f;h=new X;l=parseFloat(p.getAttribute("rx"));isNaN(l)||0>l?h=null:(m=parseFloat(p.getAttribute("ry")),isNaN(m)||0>m?h=null:(n=parseFloat(p.getAttribute("cx")),isNaN(n)&&(n=0),p=parseFloat(p.getAttribute("cy")), +isNaN(p)&&(p=0),q=new $c(nd),q.ua=0,q.va=0,q.F=2*l,q.G=2*m,h.position=new w(n-l,p-m),h.ed=q));break;case "rect":q=f;h=new X;l=parseFloat(q.getAttribute("width"));if(isNaN(l)||0>l)h=null;else if(m=parseFloat(q.getAttribute("height")),isNaN(m)||0>m)h=null;else{n=parseFloat(q.getAttribute("x"));isNaN(n)&&(n=0);p=parseFloat(q.getAttribute("y"));isNaN(p)&&(p=0);var r=q.getAttribute("rx"),s=q.getAttribute("ry"),q=parseFloat(r);if(isNaN(q)||0>q)q=0;var t=parseFloat(s);if(isNaN(t)||0>t)t=0;null!==r&&""!== +r||null===s||""===s?null===r||""===r||null!==s&&""!==s||(t=q):q=t;q=Math.min(q,l/2);t=Math.min(t,m/2);s=void 0;0===q&&0===t?(s=new $c(md),s.ua=0,s.va=0,s.F=l,s.G=m):(s=K.sa/2,r=u.p(),M(r,q,0,!0),r.lineTo(l-q,0),O(r,l-q*s,0,l,t*s,l,t),r.lineTo(l,m-t),O(r,l,m-t*s,l-q*s,m,l-q,m),r.lineTo(q,m),O(r,q*s,m,0,m-t*s,0,m-t),r.lineTo(0,t),O(r,0,t*s,q*s,0,q,0),P(r),s=r.o,u.q(r));h.position=new w(n,p);h.ed=s}break;case "polygon":h=es(f);break;case "polyline":h=es(f)}if(null!==h){if(h instanceof X){m=h;l=bs(a, f,"fill");null!==l&&-1!==l.indexOf("url")?(l=l.substring(l.indexOf("#")+1,l.length-1),l=a["_brush"+l],m.fill=l instanceof ga?l:"black"):m.fill=null===l?"black":"none"===l?null:l;l=bs(a,f,"stroke");null!==l&&-1!==l.indexOf("url")?(l=l.substring(l.indexOf("#")+1,l.length-1),l=a["_brush"+l],m.stroke=l instanceof ga?l:"black"):m.stroke="none"===l?null:l;l=parseFloat(bs(a,f,"stroke-width"));isNaN(l)||(m.hb=l);l=bs(a,f,"stroke-linecap");null!==l&&(m.qI=l);l=bs(a,f,"stroke-dasharray");if(null!==l&&""!== l){n=l.split(",");p=[];for(l=0;lf.length)return null;for(var d=null,h=new E(Jd),k=1;k Interactive Voice Response Tree + diff --git a/samples/PERT.html b/samples/PERT.html index 88890700c..75d31ef4e 100644 --- a/samples/PERT.html +++ b/samples/PERT.html @@ -2,6 +2,7 @@ PERT chart + diff --git a/samples/arrowheads.html b/samples/arrowheads.html index 362e9debf..06d99a780 100644 --- a/samples/arrowheads.html +++ b/samples/arrowheads.html @@ -159,6 +159,7 @@ A different Shape in the template has its Shape.fromArrow property bound to a different arrowhead name. Each arrowhead has been scaled up to make it more easily visible.

    +

    See the definitions of all these arrowheads in the file: Arrowheads.js.

    For predefined shape geometries, see the Shapes sample.

diff --git a/samples/flowgrammer.html b/samples/flowgrammer.html index fa4c7f538..c69175b5e 100644 --- a/samples/flowgrammer.html +++ b/samples/flowgrammer.html @@ -2,6 +2,7 @@ Flowgrammer + diff --git a/samples/friendWheel.html b/samples/friendWheel.html index d400dfdf1..1f89c09a6 100644 --- a/samples/friendWheel.html +++ b/samples/friendWheel.html @@ -2,6 +2,7 @@ Friend Wheel + diff --git a/samples/gLayout.html b/samples/gLayout.html index d9198ad2f..e36df6d4f 100644 --- a/samples/gLayout.html +++ b/samples/gLayout.html @@ -2,6 +2,7 @@ Grid Layout + diff --git a/samples/gantt.html b/samples/gantt.html index 89e8506a9..a0a879241 100644 --- a/samples/gantt.html +++ b/samples/gantt.html @@ -2,6 +2,7 @@ Gantt chart + diff --git a/samples/genogram.html b/samples/genogram.html index be735ba30..84be60315 100644 --- a/samples/genogram.html +++ b/samples/genogram.html @@ -2,6 +2,7 @@ Genogram + diff --git a/samples/grafcet.html b/samples/grafcet.html index a2e305e49..b7264bda6 100644 --- a/samples/grafcet.html +++ b/samples/grafcet.html @@ -2,6 +2,7 @@ Grafcet Diagrams + diff --git a/samples/grouping.html b/samples/grouping.html index fa4388e3a..473c9cbc5 100644 --- a/samples/grouping.html +++ b/samples/grouping.html @@ -2,6 +2,7 @@ Grouping + diff --git a/samples/hoverButtons.html b/samples/hoverButtons.html index 74f2f8729..1bd97aef7 100644 --- a/samples/hoverButtons.html +++ b/samples/hoverButtons.html @@ -2,6 +2,7 @@ Buttons that show on Hover + diff --git a/samples/htmlDragDrop.html b/samples/htmlDragDrop.html index cd1180e8c..9b82a410b 100644 --- a/samples/htmlDragDrop.html +++ b/samples/htmlDragDrop.html @@ -3,6 +3,7 @@ Drag and Drop Example +