jch-config-editor 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/NodeRenderer/index.d.ts.map +1 -1
- package/dist/config-editor.es.js +5671 -5684
- package/dist/config-editor.umd.js +21 -8
- package/package.json +1 -1
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
(function(Ee,l){const D=_0x3847,p=Ee();for(;;)try{if(-parseInt(D(1134))/1*(parseInt(D(533))/2)+parseInt(D(2137))/3*(-parseInt(D(2011))/4)+-parseInt(D(1331))/5*(parseInt(D(2062))/6)+-parseInt(D(1733))/7*(-parseInt(D(1368))/8)+-parseInt(D(606))/9+-parseInt(D(474))/10+parseInt(D(2276))/11===l)break;p.push(p.shift())}catch{p.push(p.shift())}})(_0x5a54,914355),(function(Ee,l){const D=_0x3847;typeof exports===D(1130)&&typeof module!==D(1624)?l(exports,require(D(1820)),require("react"),require(D(594)),require(D(2128)),require(D(1683)),require(D(850)),require("nanoid"),require(D(974)),require(D(2200))):typeof define=="function"&&define.amd?define(["exports",D(1820),"react",D(594),D(2128),D(1683),D(850),"nanoid",D(974),D(2200)],l):(Ee=typeof globalThis!==D(1624)?globalThis:Ee||self,l(Ee[D(946)]={},Ee[D(2025)],Ee.React,Ee.antd,Ee[D(624)],Ee[D(1683)],Ee[D(850)],Ee[D(558)],Ee[D(1693)]))})(this,function(Ee,l,D,p,be,ao,Q0,Ae,F0){"use strict";const a=_0x3847;var Ot=document.createElement(a(501));Ot[a(1060)]=`.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}.ConfigEditor-module__configEditor__dinNG{width:100%;height:100%;display:flex;flex-direction:column}.ConfigEditor-module__configEditor__dinNG .ant-layout{background:#f5f5f5}.ConfigEditor-module__configEditor__dinNG .ant-layout-sider{background:#fff}.ConfigEditor-module__configEditor__dinNG .ant-collapse-ghost>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{padding:8px 0}.ConfigEditor-module__configEditor__dinNG .ant-list-item{padding:8px 12px}.ConfigEditor-module__canvasGrid__yL2Pn{background-image:linear-gradient(#e8e8e8 1px,transparent 1px),linear-gradient(90deg,#e8e8e8 1px,transparent 1px);background-size:20px 20px}.ConfigEditor-module__nodeSelected__CePHY{box-shadow:0 0 0 2px #1890ff,0 0 10px #1890ff4d}.ConfigEditor-module__dragging__w3tvz{cursor:grabbing!important;opacity:.8}.ConfigEditor-module__toolbarBtn__vRYDU{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s}.ConfigEditor-module__toolbarBtn__vRYDU:hover{background-color:#f3f4f6}.ConfigEditor-module__toolbarBtn__vRYDU.ConfigEditor-module__active__nREu2{background-color:#dbeafe;color:#2563eb}.ConfigEditor-module__propertyForm__f-Egu .ant-form-item{margin-bottom:12px}.ConfigEditor-module__propertyForm__f-Egu .ant-form-item-label{padding-bottom:4px}.ConfigEditor-module__materialItem__rDby0{transition:all .2s}.ConfigEditor-module__materialItem__rDby0:hover{background-color:#f9fafb}.ConfigEditor-module__materialItem__rDby0.ConfigEditor-module__selected__rIJzf{background-color:#eff6ff;box-shadow:0 0 0 2px #60a5fa}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar{width:6px;height:6px}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar-thumb:hover{background:#a8a8a8}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.z-10{z-index:10}.z-50{z-index:50}.m-0{margin:0}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.\\!mr-0{margin-right:0!important}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0\\.5{height:.125rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-3{height:.75rem}.h-4{height:1rem}.h-48{height:12rem}.h-6{height:1.5rem}.h-full{height:100%}.max-h-\\[400px\\]{max-height:400px}.w-0\\.5{width:.125rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-\\[180px\\]{min-width:180px}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-crosshair{cursor:crosshair}.cursor-grab{cursor:grab}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-amber-100{--tw-border-opacity: 1;border-color:rgb(254 243 199 / var(--tw-border-opacity, 1))}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.\\!bg-blue-500{--tw-bg-opacity: 1 !important;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))!important}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-50\\/50{background-color:#eff6ff80}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-500\\/10{background-color:#3b82f61a}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.pt-1{padding-top:.25rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-amber-950{--tw-text-opacity: 1;color:rgb(69 26 3 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-blue-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity, 1)) }.ring-opacity-50{--tw-ring-opacity: .5 }.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.file\\:mr-4::file-selector-button{margin-right:1rem}.file\\:rounded-full::file-selector-button{border-radius:9999px}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-blue-50::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.file\\:px-4::file-selector-button{padding-left:1rem;padding-right:1rem}.file\\:py-2::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-semibold::file-selector-button{font-weight:600}.file\\:text-blue-700::file-selector-button{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:border-blue-500:hover{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.hover\\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.hover\\:file\\:bg-blue-100::file-selector-button:hover{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1)) }
|
|
2
|
-
/*$vite$:1*/`,document[a(1333)][a(1580)](Ot);function u0(e){const n=a;return e&&e[n(687)]&&Object[n(1589)][n(715)].call(e,n(542))?e[n(542)]:e}var Cn={},Zn={exports:{}},Rn;function f0(){const e=a;return Rn||(Rn=1,(function(n){const t=e;function o(x){return x&&x[_0x3847(687)]?x:{default:x}}n[t(1533)]=o,n[t(1533)][t(687)]=!0,n[t(1533)][t(542)]=n[t(1533)]})(Zn)),Zn[e(1533)]}var b0={},Cr;function js(){const e=a;if(Cr)return b0;Cr=1,Object[e(1790)](b0,e(687),{value:!0}),b0[e(542)]=void 0;const n={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:e(1264),next_page:e(1062),prev_5:"向前 5 页",next_5:e(1753),prev_3:e(1832),next_3:e(1995),page_size:"页码"};return b0[e(542)]=n,b0}var h0={},g0={},y0={},m0={},Mr;function As(){const e=a;return Mr||(Mr=1,Object.defineProperty(m0,e(687),{value:!0}),m0.commonLocale=void 0,m0[e(2031)]={yearFormat:e(1017),dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),m0}var Br;function Es(){const e=a;if(Br)return y0;Br=1,Object.defineProperty(y0,e(687),{value:!0}),y0[e(542)]=void 0;var n=As();function t(d){"@babel/helpers - typeof";const s=e;return t=typeof Symbol=="function"&&s(791)==typeof Symbol[s(875)]?function(f){return typeof f}:function(f){const g=s;return f&&g(1145)==typeof Symbol&&f[g(1208)]===Symbol&&f!==Symbol[g(1589)]?"symbol":typeof f},t(d)}function o(d,s){const f=e;var g=Object.keys(d);if(Object[f(434)]){var h=Object[f(434)](d);s&&(h=h.filter(function(m){const b=f;return Object[b(613)](d,m)[b(579)]})),g[f(1371)].apply(g,h)}return g}function x(d){const s=e;for(var f=1;f<arguments.length;f++){var g=arguments[f]!=null?arguments[f]:{};f%2?o(Object(g),!0)[s(1935)](function(h){r(d,h,g[h])}):Object[s(792)]?Object[s(2256)](d,Object.getOwnPropertyDescriptors(g)):o(Object(g))[s(1935)](function(h){Object[s(1790)](d,h,Object.getOwnPropertyDescriptor(g,h))})}return d}function r(d,s,f){const g=e;return s=i(s),s in d?Object[g(1790)](d,s,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[s]=f,d}function i(d){const s=e;var f=c(d,s(955));return s(791)==t(f)?f:String(f)}function c(d,s){const f=e;if(t(d)!="object"||!d)return d;var g=d[Symbol.toPrimitive];if(g!==void 0){var h=g.call(d,s);if(f(1130)!=t(h))return h;throw new TypeError(f(1356))}return(f(955)===s?String:Number)(d)}var u=x(x({},n[e(2031)]),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:e(443),dateSelect:e(693),weekSelect:e(703),clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:e(1612),monthSelect:e(939),yearSelect:e(530),decadeSelect:"选择年代",previousYear:e(920),nextYear:e(1572),previousDecade:e(534),nextDecade:"下一年代",previousCentury:e(1570),nextCentury:e(2028),yearFormat:e(1363),cellDateFormat:"D",monthBeforeYear:!1});return y0.default=u,y0}var w0={},Dr;function Lr(){const e=a;if(Dr)return w0;Dr=1,Object.defineProperty(w0,e(687),{value:!0}),w0[e(542)]=void 0;const n={placeholder:e(663),rangePlaceholder:[e(1979),"结束时间"]};return w0.default=n,w0}var Nr;function Sr(){const e=a;if(Nr)return g0;Nr=1;var n=f0()[e(542)];Object.defineProperty(g0,e(687),{value:!0}),g0[e(542)]=void 0;var t=n(Es()),o=n(Lr());const x={lang:{placeholder:e(1966),yearPlaceholder:e(422),quarterPlaceholder:e(2149),monthPlaceholder:e(1253),weekPlaceholder:e(1104),rangePlaceholder:[e(1641),e(1379)],rangeYearPlaceholder:[e(611),"结束年份"],rangeMonthPlaceholder:["开始月份",e(2120)],rangeQuarterPlaceholder:["开始季度",e(471)],rangeWeekPlaceholder:[e(2067),e(2074)],...t[e(542)]},timePickerLocale:{...o[e(542)]}};return x[e(1565)].ok="确定",g0[e(542)]=x,g0}var kr;function Ys(){const e=a;if(kr)return h0;kr=1;var n=f0()[e(542)];Object[e(1790)](h0,e(687),{value:!0}),h0[e(542)]=void 0;var t=n(Sr());return h0[e(542)]=t[e(542)],h0}var Ir;function Us(){const e=a;if(Ir)return Cn;Ir=1;var n=f0()[e(542)];Object.defineProperty(Cn,"__esModule",{value:!0}),Cn[e(542)]=void 0;var t=n(js()),o=n(Ys()),x=n(Sr()),r=n(Lr());const i=e(1165),c={locale:e(1446),Pagination:t[e(542)],DatePicker:x.default,TimePicker:r[e(542)],Calendar:o[e(542)],global:{placeholder:e(1169),close:"关闭",sortable:e(2185)},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:e(520),selectInvert:e(1069),selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:e(1390),triggerDesc:e(1810),triggerAsc:"点击升序",cancelSort:e(2138)},Modal:{okText:"确定",cancelText:"取消",justOkText:e(563)},Tour:{Next:e(426),Previous:e(1937),Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:e(819),selectAll:"全选所有",deselectAll:e(921),removeAll:"删除全部",selectInvert:e(1069)},Upload:{uploading:e(500),removeFile:e(726),uploadError:"上传错误",previewFile:e(1829),downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:e(814),expand:"展开",collapse:"收起"},Form:{optional:e(1389),defaultValidateMessages:{default:e(2020),required:e(1034),enum:"${label}必须是其中一个[${enum}]",whitespace:e(1297),date:{format:e(2051),parse:e(2240),invalid:e(963)},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label}须为${len}个字符",min:e(888),max:e(2079),range:e(1177)},number:{len:e(1306),min:e(2014),max:e(2174),range:e(734)},array:{len:e(1093),min:e(1415),max:e(1394),range:e(1696)},pattern:{mismatch:e(2098)}}},QRCode:{expired:"二维码过期",refresh:e(1657),scanned:e(1344)},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:e(1128)}};return Cn[e(542)]=c,Cn}var so,Pr;function Os(){return Pr||(Pr=1,so=Us()),so}var Gs=Os();const Hs=u0(Gs),Ts=e=>(n,t,o)=>{const x=a;return o[x(1260)]=(r,i,...c)=>{const u=x,d=typeof r=="function"?Q0[u(676)](r):r;return n(d,i,...c)},e(o[x(1260)],t,o)},Vs=Ts;function qs(e){return Array[a(612)](e)}function jr(e){const n=a,t=[];for(const o of Object.keys(e)){t.push(o);const x=e[o];if(x!==null&&typeof x=="object"&&!Array[n(612)](x))for(const r of Object[n(996)](x))t.push(o+"."+r)}return t}function Ws(e,n,t){const o=a,x=e.sample;if(qs(x)){if(n!=null&&t!=null){const r=x[o(1099)](i=>i[n]===t);if(r)return r}return{}}return x}function lo(e,n,t,o){const x=a,r=Ws(e,t,o),i={...r};if(n&&typeof n=="object"&&!Array[x(612)](n))return{...i,...n};if(Array[x(612)](n)){const c={...i};for(const u of n){if(!u||typeof u!==x(1130))continue;const d=u;d.paramsCode!=null&&(c[String(d[x(1901)])]=d[x(845)])}return c}return i}const Xs={id:"_",name:"_",sample:{}};function uo(e,n,t){const o=a,x=e[o(959)]!=null?String(e[o(959)])[o(1215)]():"",r=x?t[o(1099)](c=>c.id===x):void 0,i=r??Xs;try{const c=lo(i,n,e[o(1031)],e.boundDatasetBindValue);return new Function(o(1100),e[o(1555)])(c)===!0}catch(c){return console.warn(o(1426)+e[o(1877)]+"]:",c),!1}}function Ar(e,n,t){for(const o of e)if(uo(o,n,t))return o}function Er(e,n){const t=a;for(const o of e){for(const x of o[t(1472)][t(665)])x[t(959)]===n&&(x.boundDatasetId=null,x[t(1031)]=null,x[t(1786)]=null);o.type===t(943)&&o[t(1920)]?.length&&Er(o[t(1920)],n)}}function fo(e){const n=a;for(const t of e){for(const o of t[n(1472)][n(665)])delete o[n(898)];t[n(1939)]==="group"&&t.children?.[n(2073)]&&fo(t[n(1920)])}}const bo=(e,n)=>({id:e||Ae[a(558)](),name:n||a(818),nodes:[],canvasConfig:{width:1920,height:1080,background:"#00193C",showGrid:!0},viewport:{scale:1,positionX:0,positionY:0},selectedNodeId:null,selectedNodeIds:[],selectedStatusId:null,history:{past:[],future:[]}}),Ks=()=>{const e=a,n=bo();return{id:Ae[e(558)](),name:e(1151),canvases:[n],currentCanvasId:n.id,siblingGroups:[],activeSiblingGroupId:null,navigationStack:[]}},Yr=Ks(),gt=Yr[a(1592)][0],Zs={root:Yr,materials:[],mode:"select",lineDrawing:{isDrawing:!1,material:null,startPoint:null,endPoint:null},eventFlow:{eventBlocks:[],eventRoots:[],editingEventRootId:null,isEditingEventFlow:!1},dataPool:[],externalHandlerCatalog:[],nodes:gt[a(1687)],canvas:gt[a(1825)],viewport:gt[a(975)],selectedNodeId:gt[a(578)],selectedNodeIds:gt[a(1729)],selectedStatusId:gt[a(561)],history:gt[a(1211)]},Vn=(e,n,t)=>({id:Ae.nanoid(),type:e,targetId:n,payload:t,timestamp:Date[a(1969)]()}),sn=ao.create()(Vs((e,n)=>({...Zs,addCanvas:t=>{const o=a,x=bo(Ae[o(558)](),t||"画布 "+(n()[o(1484)].canvases[o(2073)]+1));return e(r=>{const i=o;r.root.canvases[i(1371)](x),r[i(1484)][i(633)]=x.id;const c=x;r[i(1687)]=c[i(1687)],r.canvas=c.canvasConfig,r[i(975)]=c.viewport,r.selectedNodeId=c.selectedNodeId,r[i(1729)]=c[i(1729)],r[i(561)]=c[i(561)],r[i(1211)]=c[i(1211)]}),x.id},removeCanvas:t=>{e(o=>{const x=_0x3847,r=o[x(1484)][x(1592)][x(2274)](c=>c.id===t);if(r===-1||o.root[x(1592)][x(2073)]<=1)return;if(o[x(1484)][x(1592)][x(2227)](r,1),o[x(1484)][x(1318)])for(const c of o[x(1484)].siblingGroups){const u=c[x(1008)][x(623)](t);u!==-1&&c.canvasIds.splice(u,1)}if(o[x(1484)].navigationStack&&o.root[x(2082)][x(2073)]>0&&(o[x(1484)][x(2082)]=o[x(1484)][x(2082)].filter(c=>c!==t)),o[x(1484)][x(633)]===t){const c=o.root[x(1592)][0];o[x(1484)].currentCanvasId=c.id,o.nodes=c.nodes,o[x(540)]=c[x(1825)],o[x(975)]=c[x(975)],o.selectedNodeId=c[x(578)],o[x(1729)]=c[x(1729)],o.selectedStatusId=c[x(561)],o.history=c[x(1211)]}const i=o.root[x(1968)];if(i){const c=(o[x(1484)].siblingGroups||[])[x(1099)](u=>u.id===i);(!c||!c[x(1008)][x(1992)](o[x(1484)].currentCanvasId||""))&&(o[x(1484)][x(1968)]=null)}})},switchCanvas:t=>{e(o=>{const x=_0x3847,r=o[x(1484)][x(1592)][x(1099)](c=>c.id===t);if(!r)return;o[x(1484)].currentCanvasId=t,o[x(1687)]=r[x(1687)],o.canvas=r[x(1825)],o[x(975)]=r[x(975)],o[x(578)]=r.selectedNodeId,o.selectedNodeIds=r[x(1729)],o[x(561)]=r.selectedStatusId,o[x(1211)]=r[x(1211)];const i=o[x(1484)][x(1968)];if(i){const c=(o[x(1484)][x(1318)]||[])[x(1099)](u=>u.id===i);(!c||!c[x(1008)][x(1992)](t))&&(o[x(1484)][x(1968)]=null)}})},updateCanvasName:(t,o)=>{e(x=>{const r=_0x3847,i=x[r(1484)].canvases[r(1099)](c=>c.id===t);i&&(i[r(1877)]=o)})},getCurrentCanvas:()=>{const t=a,o=n();return o[t(1484)][t(1592)][t(1099)](x=>x.id===o[t(1484)][t(633)])},addSiblingGroup:(t,o)=>{const x=a,r=Ae[x(558)]();return e(i=>{const c=x;i.root[c(1318)]||(i[c(1484)][c(1318)]=[]);const u=i[c(1484)][c(1318)][c(2073)]+1,d=Array[c(1478)](new Set((o||[])[c(526)](s=>i[c(1484)][c(1592)][c(1591)](f=>f.id===s))));i.root.siblingGroups[c(1371)]({id:r,name:t||"同级关系 "+u,canvasIds:d})}),r},removeSiblingGroup:t=>{e(o=>{const x=_0x3847;if(!o[x(1484)][x(1318)])return;const r=o.root[x(1318)][x(2274)](i=>i.id===t);r!==-1&&o[x(1484)].siblingGroups[x(2227)](r,1),o[x(1484)][x(1968)]===t&&(o[x(1484)].activeSiblingGroupId=null)})},updateSiblingGroup:(t,o)=>{e(x=>{const r=_0x3847;if(!x.root[r(1318)])return;const i=x[r(1484)].siblingGroups[r(1099)](c=>c.id===t);if(i&&(o[r(1877)]!==void 0&&(i[r(1877)]=o.name),o.canvasIds!==void 0)){const c=new Set,u=[];for(const d of o.canvasIds)c[r(2012)](d)||x[r(1484)][r(1592)].some(s=>s.id===d)&&(c[r(848)](d),u[r(1371)](d));i.canvasIds=u}})},addCanvasToSiblingGroup:(t,o,x)=>{e(r=>{const i=_0x3847;if(!r[i(1484)].siblingGroups)return;const c=r[i(1484)][i(1318)].find(u=>u.id===t);c&&r[i(1484)][i(1592)].some(u=>u.id===o)&&(c[i(1008)][i(1992)](o)||(typeof x===i(1421)&&x>=0&&x<=c.canvasIds.length?c.canvasIds[i(2227)](x,0,o):c[i(1008)].push(o)))})},removeCanvasFromSiblingGroup:(t,o)=>{e(x=>{const r=_0x3847;if(!x[r(1484)][r(1318)])return;const i=x[r(1484)][r(1318)][r(1099)](u=>u.id===t);if(!i)return;const c=i.canvasIds.indexOf(o);c!==-1&&i[r(1008)][r(2227)](c,1)})},moveCanvasInSiblingGroup:(t,o,x)=>{e(r=>{const i=_0x3847;if(!r[i(1484)].siblingGroups)return;const c=r[i(1484)][i(1318)][i(1099)](s=>s.id===t);if(!c)return;const u=c[i(1008)][i(623)](o);if(u===-1)return;const d=x==="up"?u-1:u+1;d<0||d>=c[i(1008)][i(2073)]||([c[i(1008)][u],c.canvasIds[d]]=[c[i(1008)][d],c[i(1008)][u]])})},nextSiblingCanvas:(t,o=!1)=>{const x=a,r=n(),i=r[x(1484)][x(1318)]?.[x(1099)](s=>s.id===t);if(!i||i[x(1008)][x(2073)]===0)return null;const c=i.canvasIds[x(526)](s=>r[x(1484)][x(1592)].some(f=>f.id===s));if(c[x(2073)]===0)return null;const u=c.indexOf(r[x(1484)][x(633)]||"");let d;if(u===-1)d=0;else if(u===c[x(2073)]-1){if(!o)return null;d=0}else d=u+1;return e(s=>{const f=x;s[f(1484)][f(1968)]=t}),n().switchCanvas(c[d]),c[d]},prevSiblingCanvas:(t,o=!1)=>{const x=a,r=n(),i=r[x(1484)][x(1318)]?.[x(1099)](s=>s.id===t);if(!i||i.canvasIds.length===0)return null;const c=i[x(1008)][x(526)](s=>r[x(1484)][x(1592)][x(1591)](f=>f.id===s));if(c[x(2073)]===0)return null;const u=c[x(623)](r[x(1484)][x(633)]||"");let d;if(u===-1)d=c.length-1;else if(u===0){if(!o)return null;d=c[x(2073)]-1}else d=u-1;return e(s=>{s.root.activeSiblingGroupId=t}),n()[x(1289)](c[d]),c[d]},gotoSiblingCanvas:(t,o)=>{const x=a,r=n(),i=r[x(1484)][x(1318)]?.[x(1099)](u=>u.id===t);if(!i)return null;const c=i[x(1008)][x(526)](u=>r.root.canvases[x(1591)](d=>d.id===u));return o<0||o>=c[x(2073)]?null:(e(u=>{const d=x;u[d(1484)][d(1968)]=t}),n()[x(1289)](c[o]),c[o])},getSiblingGroupsByCanvas:t=>{const o=a;return(n()[o(1484)][o(1318)]||[]).filter(r=>r[o(1008)].includes(t))},setActiveSiblingGroup:t=>{e(o=>{const x=_0x3847;if(t===null){o[x(1484)][x(1968)]=null;return}(o.root[x(1318)]||[])[x(1591)](i=>i.id===t)&&(o[x(1484)][x(1968)]=t)})},jumpToCanvas:t=>{const o=a,x=n();if(!x.root[o(1592)].some(i=>i.id===t)||x[o(1484)][o(633)]===t)return;const r=x[o(1484)].currentCanvasId;r&&e(i=>{const c=o;i[c(1484)].navigationStack||(i[c(1484)][c(2082)]=[]),i.root[c(2082)][c(1371)](r)}),n()[o(1289)](t)},goBack:()=>{const t=a,o=n();if((o[t(1484)][t(2082)]||[])[t(2073)]===0)return null;let r=null;const i=new Set(o.root.canvases[t(1913)](c=>c.id));return e(c=>{const u=t;for(;c[u(1484)][u(2082)]&&c[u(1484)].navigationStack.length>0;){const d=c[u(1484)].navigationStack[u(777)]();if(i.has(d)){r=d;break}}}),r&&n()[t(1289)](r),r},clearNavigationStack:()=>{e(t=>{const o=_0x3847;t[o(1484)][o(2082)]=[]})},setSelectedNodeIds:t=>{e(o=>{const x=_0x3847,r=o[x(1484)][x(1592)][x(1099)](i=>i.id===o[x(1484)][x(633)]);r&&(r[x(1729)]=t,o[x(1729)]=t)})},addSelectedNodeId:t=>{e(o=>{const x=_0x3847,r=o[x(1484)][x(1592)][x(1099)](i=>i.id===o[x(1484)][x(633)]);r&&!r[x(1729)][x(1992)](t)&&(r[x(1729)].push(t),o[x(1729)]=r[x(1729)])})},removeSelectedNodeId:t=>{e(o=>{const x=_0x3847,r=o[x(1484)][x(1592)][x(1099)](i=>i.id===o.root.currentCanvasId);r&&(r.selectedNodeIds=r[x(1729)][x(526)](i=>i!==t),o[x(1729)]=r[x(1729)])})},clearSelectedNodeIds:()=>{e(t=>{const o=_0x3847,x=t.root.canvases[o(1099)](r=>r.id===t[o(1484)][o(633)]);x&&(x[o(1729)]=[],t.selectedNodeIds=[])})},addNode:(t,o=!0)=>{e(x=>{const r=_0x3847,i=x[r(1484)][r(1592)][r(1099)](u=>u.id===x[r(1484)][r(633)]);if(!i)return;const c={...t,id:t.id||Ae[r(558)]()};i[r(1687)][r(1371)](c),x.nodes=i[r(1687)],o&&(i[r(578)]=c.id,x[r(578)]=c.id,i[r(1211)][r(1354)][r(1371)](Vn("NODE_SELECT",c.id)),x[r(1211)]=i[r(1211)])})},updateNode:(t,o)=>{e(x=>{const r=_0x3847,i=x[r(1484)].canvases.find(u=>u.id===x.root.currentCanvasId);if(!i)return;const c=i[r(1687)][r(1099)](u=>u.id===t);c&&(o[r(893)]&&Object[r(1975)](c[r(893)],o[r(893)]),o[r(1472)]&&(c[r(1472)]={...c[r(1472)],...o[r(1472)]}),o.name&&(c[r(1877)]=o[r(1877)]),o[r(1673)]&&Object[r(1975)](c[r(1673)],o.controlInfo),o[r(1920)]&&(c[r(1920)]=o[r(1920)]),i.history[r(1354)].push(Vn(r(1094),t,o)),x[r(1211)]=i[r(1211)],x[r(1687)]=i.nodes)})},updateNodeStyle:(t,o)=>{e(x=>{const r=_0x3847,i=x.root.canvases[r(1099)](u=>u.id===x[r(1484)][r(633)]);if(!i)return;const c=i[r(1687)][r(1099)](u=>u.id===t);c&&(Object.assign(c[r(893)],o),i[r(1211)][r(1354)][r(1371)](Vn(r(1094),t,{normalStyle:o})),x[r(1211)]=i[r(1211)],x.nodes=i[r(1687)])})},updateNodeContent:(t,o)=>{e(x=>{const r=_0x3847,i=x[r(1484)][r(1592)].find(u=>u.id===x[r(1484)].currentCanvasId);if(!i)return;const c=i.nodes[r(1099)](u=>u.id===t);c&&(c[r(1472)]={...c[r(1472)],...o},i[r(1211)][r(1354)].push(Vn(r(1094),t,{contentInfo:o})),x[r(1211)]=i[r(1211)],x.nodes=i[r(1687)])})},updateNodeControl:(t,o)=>{e(x=>{const r=_0x3847,i=x[r(1484)][r(1592)][r(1099)](u=>u.id===x[r(1484)][r(633)]);if(!i)return;const c=i[r(1687)][r(1099)](u=>u.id===t);c&&(Object[r(1975)](c[r(1673)],o),i.history[r(1354)][r(1371)](Vn(r(1094),t,{controlInfo:o})),x[r(1211)]=i[r(1211)],x.nodes=i.nodes)})},removeNode:t=>{e(o=>{const x=_0x3847,r=o[x(1484)][x(1592)][x(1099)](c=>c.id===o[x(1484)][x(633)]);if(!r)return;const i=r[x(1687)][x(2274)](c=>c.id===t);i!==-1&&(r[x(1687)][x(2227)](i,1),o[x(1687)]=r[x(1687)],r[x(578)]===t&&(r[x(578)]=null,o[x(578)]=null,r.selectedStatusId=null,o.selectedStatusId=null),r.selectedNodeIds=r[x(1729)][x(526)](c=>c!==t),o.selectedNodeIds=r[x(1729)],r[x(1211)][x(1354)][x(1371)](Vn(x(961),t)),o[x(1211)]=r[x(1211)])})},selectNode:t=>{e(o=>{const x=_0x3847,r=o[x(1484)][x(1592)].find(i=>i.id===o[x(1484)][x(633)]);r&&(r[x(578)]=t,o.selectedNodeId=t,r[x(561)]=null,o[x(561)]=null,t&&(r[x(1211)][x(1354)][x(1371)](Vn(x(2135),t)),o[x(1211)]=r.history))})},bringToFront:t=>{e(o=>{const x=_0x3847,r=o.root[x(1592)][x(1099)](u=>u.id===o.root[x(633)]);if(!r)return;const i=r.nodes.findIndex(u=>u.id===t);if(i===-1||i===r[x(1687)][x(2073)]-1)return;const[c]=r[x(1687)].splice(i,1);r[x(1687)].push(c),o[x(1687)]=r[x(1687)],r[x(1211)][x(1354)].push(Vn(x(1094),t,{zOrder:x(1934)})),o[x(1211)]=r[x(1211)]})},sendToBack:t=>{e(o=>{const x=_0x3847,r=o.root.canvases[x(1099)](u=>u.id===o[x(1484)][x(633)]);if(!r)return;const i=r[x(1687)].findIndex(u=>u.id===t);if(i<=0)return;const[c]=r[x(1687)][x(2227)](i,1);r[x(1687)][x(1821)](c),o[x(1687)]=r[x(1687)],r[x(1211)][x(1354)][x(1371)](Vn("PROPERTY_CHANGE",t,{zOrder:x(1762)})),o[x(1211)]=r[x(1211)]})},addStatus:(t,o)=>{e(x=>{const r=_0x3847,i=x[r(1484)][r(1592)][r(1099)](d=>d.id===x.root[r(633)]);if(!i)return;const c=i.nodes[r(1099)](d=>d.id===t);if(!c)return;const u={...o,id:Ae[r(558)]()};c[r(1472)][r(665)][r(1371)](u),i[r(1211)][r(1354)][r(1371)](Vn(r(1826),t,{statusId:u.id})),x.history=i[r(1211)]})},removeStatus:(t,o)=>{e(x=>{const r=_0x3847,i=x[r(1484)].canvases[r(1099)](d=>d.id===x[r(1484)][r(633)]);if(!i)return;const c=i[r(1687)][r(1099)](d=>d.id===t);if(!c)return;const u=c[r(1472)][r(665)][r(2274)](d=>d.id===o);u!==-1&&(c[r(1472)].statusList.splice(u,1),c.contentInfo[r(1090)]===o&&(c[r(1472)][r(1090)]=void 0),i.selectedStatusId===o&&(i.selectedStatusId=null,x.selectedStatusId=null))})},updateStatus:(t,o,x)=>{e(r=>{const i=_0x3847,c=r[i(1484)][i(1592)][i(1099)](s=>s.id===r[i(1484)].currentCanvasId);if(!c)return;const u=c[i(1687)][i(1099)](s=>s.id===t);if(!u)return;const d=u[i(1472)][i(665)][i(1099)](s=>s.id===o);d&&Object[i(1975)](d,x)})},selectStatus:t=>{e(o=>{const x=_0x3847,r=o[x(1484)][x(1592)][x(1099)](i=>i.id===o.root[x(633)]);r&&(r[x(561)]=t,o[x(561)]=t)})},evaluateCurrentStatus:(t,o)=>{const x=a,r=n(),i=r[x(1484)][x(1592)][x(1099)](d=>d.id===r[x(1484)].currentCanvasId);if(!i)return;const c=i.nodes.find(d=>d.id===t);if(!c)return;const{dataPool:u}=n();for(const d of c.contentInfo.statusList)if(uo(d,o,u))return d.id},addDataPoolItem:t=>{const o=a,x=Ae[o(558)]();return e(r=>{const i=o;let c={};t[i(1078)]&&typeof t.sample===i(1130)&&(Array[i(612)](t.sample)?c=t[i(1078)]:c=t.sample),r.dataPool[i(1371)]({...t,id:x,sample:c})}),x},updateDataPoolItem:(t,o)=>{e(x=>{const r=_0x3847,i=x[r(987)].find(c=>c.id===t);i&&(o.name!==void 0&&(i[r(1877)]=o.name),o[r(1078)]!==void 0&&(o[r(1078)]&&typeof o.sample===r(1130)?i.sample=o[r(1078)]:i[r(1078)]={}))})},removeDataPoolItem:t=>{e(o=>{const x=_0x3847,r=o[x(987)][x(2274)](i=>i.id===t);if(r!==-1){o[x(987)][x(2227)](r,1);for(const i of o[x(1484)].canvases)Er(i.nodes,t)}})},setDataPool:t=>{e(o=>{const x=_0x3847;o[x(987)]=t.map(r=>{const i=x;let c={};return r[i(1078)]&&typeof r.sample===i(1130)&&(c=r[i(1078)]),{...r,sample:c}})})},setEventFlow:t=>{e(o=>{const x=_0x3847;o[x(648)]={eventBlocks:t[x(894)]??[],eventRoots:t[x(1522)]??[],editingEventRootId:t[x(553)]??null,isEditingEventFlow:t.isEditingEventFlow??!1}})},setExternalHandlerCatalog:t=>{e(o=>{const x=_0x3847,r=new Set;o[x(1212)]=[];for(const i of t){const c=String(i[x(1699)]??"")[x(1215)]();!c||r[x(2012)](c)||(r[x(848)](c),o[x(1212)][x(1371)]({key:c,label:String(i[x(2172)]??"")[x(1215)]()||c,description:i[x(1547)]}))}})},addMaterial:t=>{e(o=>{const x=_0x3847;if(o[x(2143)].some(c=>c[x(1877)]===t[x(1877)]))return;const i={...t,id:Ae.nanoid()};o[x(2143)][x(1371)](i)})},updateMaterial:(t,o)=>{e(x=>{const r=_0x3847,i=x.materials[r(1099)](c=>c.id===t);i&&Object[r(1975)](i,o)})},removeMaterial:t=>{e(o=>{const x=_0x3847,r=o[x(2143)][x(2274)](i=>i.id===t);r!==-1&&o[x(2143)].splice(r,1)})},setViewport:t=>{e(o=>{const x=_0x3847,r=o[x(1484)].canvases[x(1099)](i=>i.id===o[x(1484)][x(633)]);r&&(Object[x(1975)](r.viewport,t),o[x(975)]=r[x(975)])})},setCanvasConfig:t=>{e(o=>{const x=_0x3847,r=o[x(1484)][x(1592)][x(1099)](i=>i.id===o[x(1484)].currentCanvasId);r&&(r[x(1825)]={...r[x(1825)],...t},o.canvas=r.canvasConfig)})},setMode:t=>{e(o=>{const x=_0x3847;o[x(1220)]=t})},startLineDrawing:t=>{e(o=>{const x=_0x3847;o[x(1220)]=x(1113),o[x(1906)]={isDrawing:!0,material:t,startPoint:null,endPoint:null}})},updateLineDrawing:t=>{e(o=>{const x=_0x3847;o.lineDrawing[x(1524)]&&(o.lineDrawing[x(2225)]=t)})},endLineDrawing:()=>{e(t=>{const o=_0x3847;t[o(1220)]=o(505),t[o(1906)]={isDrawing:!1,material:null,startPoint:null,endPoint:null}})},cancelLineDrawing:()=>{e(t=>{const o=_0x3847;t.mode=o(505),t[o(1906)]={isDrawing:!1,material:null,startPoint:null,endPoint:null}})},undo:()=>{e(t=>{const o=_0x3847,x=t[o(1484)].canvases[o(1099)](i=>i.id===t.root[o(633)]);if(!x)return;const r=x[o(1211)].past[o(777)]();r&&(x[o(1211)][o(431)].push(r),t[o(1211)]=x.history)})},redo:()=>{e(t=>{const o=_0x3847,x=t[o(1484)][o(1592)][o(1099)](i=>i.id===t[o(1484)].currentCanvasId);if(!x)return;const r=x[o(1211)][o(431)][o(777)]();r&&(x.history[o(1354)].push(r),t[o(1211)]=x[o(1211)])})},recordEvent:t=>{e(o=>{const x=_0x3847,r=o[x(1484)].canvases[x(1099)](i=>i.id===o[x(1484)][x(633)]);r&&(r[x(1211)][x(1354)][x(1371)](t),r.history[x(431)]=[],o[x(1211)]=r[x(1211)])})},exportScheme:()=>{const t=a,o=n(),{activeSiblingGroupId:x,navigationStack:r,...i}=o.root;return{version:"2.0.0",root:i,materials:o.materials,dataPool:o[t(987)],eventFlow:o.eventFlow,metadata:{name:o[t(1484)].name,description:"",createdAt:new Date()[t(813)](),updatedAt:new Date()[t(813)]()}}},importScheme:t=>{e(o=>{const x=_0x3847;if(t[x(1484)]){if(o[x(1484)]=t.root,!o[x(1484)].siblingGroups)o.root[x(1318)]=[];else{const i=new Set(o.root.canvases[x(1913)](c=>c.id));for(const c of o[x(1484)][x(1318)])c[x(1008)]=c[x(1008)].filter(u=>i.has(u))}o.root[x(1968)]=null,o[x(1484)][x(2082)]=[],o.dataPool=t[x(987)]??[],t.eventFlow&&(o.eventFlow={eventBlocks:t[x(648)][x(894)]??[],eventRoots:(t[x(648)][x(1522)]??[]).map(i=>({...i,copyOnDuplicate:i[x(1957)]!==void 0?i[x(1957)]:!0})),editingEventRootId:t[x(648)][x(553)]??null,isEditingEventFlow:t.eventFlow[x(568)]??!1});const r=o[x(1484)][x(1592)][x(1099)](i=>i.id===o.root.currentCanvasId)||o.root[x(1592)][0];r&&(o[x(1484)][x(633)]=r.id,o[x(1687)]=r[x(1687)],o[x(540)]=r.canvasConfig,o[x(975)]=r[x(975)],o.selectedNodeId=r[x(578)],o.selectedNodeIds=r[x(1729)],o[x(561)]=r[x(561)],o[x(1211)]=r[x(1211)])}else{const r=bo();r[x(1687)]=t[x(1687)]||[],o[x(1484)].canvases=[r],o[x(1484)].currentCanvasId=r.id,o[x(1484)].siblingGroups=[],o.root[x(1968)]=null,o[x(1484)][x(2082)]=[],o.dataPool=t[x(987)]??[],t.eventFlow&&(o[x(648)]={eventBlocks:t[x(648)][x(894)]??[],eventRoots:(t.eventFlow[x(1522)]??[])[x(1913)](i=>({...i,copyOnDuplicate:i[x(1957)]!==void 0?i[x(1957)]:!0})),editingEventRootId:t.eventFlow[x(553)]??null,isEditingEventFlow:t[x(648)][x(568)]??!1}),o[x(1687)]=r[x(1687)],o[x(540)]=r[x(1825)],o[x(975)]=t[x(975)]||r.viewport,o[x(578)]=null,o[x(561)]=null,o[x(1211)]={past:[],future:[]}}for(const r of o.root[x(1592)])fo(r.nodes)})},exportCanvas:t=>{const o=a,x=n(),r=t||x[o(1484)][o(633)],i=x.root[o(1592)][o(1099)](c=>c.id===r);if(!i)throw new Error(o(2059)+r+o(1667));return{version:o(657),canvas:i,metadata:{name:i[o(1877)],description:"",exportedAt:new Date()[o(813)]()}}},importCanvas:(t,o)=>{e(x=>{const r=_0x3847,i=t[r(540)],c=o||x[r(1484)][r(633)],u=x[r(1484)][r(1592)].find(d=>d.id===c);if(u)u[r(1877)]=i[r(1877)],u[r(1687)]=i[r(1687)]||[],u[r(1825)]=i[r(1825)],u[r(975)]=i[r(975)],u[r(578)]=null,u.selectedNodeIds=[],u[r(561)]=null,u[r(1211)]=i[r(1211)]||{past:[],future:[]},c===x.root[r(633)]&&(x[r(1687)]=u[r(1687)],x.canvas=u[r(1825)],x[r(975)]=u[r(975)],x[r(578)]=u[r(578)],x.selectedNodeIds=u[r(1729)],x[r(561)]=u.selectedStatusId,x[r(1211)]=u[r(1211)]);else{const d={...i,id:Ae.nanoid(),selectedNodeId:null,selectedNodeIds:[],selectedStatusId:null};x[r(1484)][r(1592)][r(1371)](d),x[r(1484)].currentCanvasId=d.id,x.nodes=d.nodes,x[r(540)]=d[r(1825)],x.viewport=d[r(975)],x[r(578)]=d.selectedNodeId,x[r(1729)]=d[r(1729)],x.selectedStatusId=d.selectedStatusId,x.history=d[r(1211)]}for(const d of x[r(1484)][r(1592)])fo(d[r(1687)])})},addEventBlock:t=>{const o=a,x=Ae[o(558)]();return e(r=>{const i=o;r[i(648)][i(894)][i(1371)]({...t,id:x})}),x},upsertEventBlock:t=>{e(o=>{const x=_0x3847,r=o[x(648)][x(894)].findIndex(i=>i.id===t.id);r!==-1?o[x(648)].eventBlocks[r]={...t}:o[x(648)][x(894)][x(1371)]({...t})})},updateEventBlock:(t,o)=>{e(x=>{const r=_0x3847,i=x[r(648)][r(894)].find(c=>c.id===t);i&&Object[r(1975)](i,o)})},removeEventBlock:t=>{e(o=>{const x=_0x3847,r=o[x(648)][x(894)][x(2274)](i=>i.id===t);r!==-1&&o[x(648)][x(894)][x(2227)](r,1)})},addEventRoot:t=>{const o=Ae.nanoid();return e(x=>{const r=_0x3847;x[r(648)].eventRoots[r(1371)]({...t,id:o,copyOnDuplicate:t[r(1957)]!==void 0?t[r(1957)]:!0})}),o},updateEventRoot:(t,o)=>{e(x=>{const r=_0x3847,i=x[r(648)][r(1522)].find(c=>c.id===t);i&&Object[r(1975)](i,o)})},removeEventRoot:t=>{e(o=>{const x=_0x3847,r=o[x(648)].eventRoots[x(2274)](i=>i.id===t);r!==-1&&o[x(648)][x(1522)][x(2227)](r,1)})},setEditingEventRoot:t=>{e(o=>{const x=_0x3847;o.eventFlow[x(553)]=t})},setIsEditingEventFlow:t=>{e(o=>{const x=_0x3847;o.eventFlow[x(568)]=t})},bindNodeEvent:(t,o,x)=>{const r=a,i=Ae[r(558)]();return e(c=>{const u=r;c.eventFlow.eventRoots[u(1371)]({id:i,bindNodeId:t,eventType:o,flowData:x,enabled:!0,copyOnDuplicate:!0})}),i},unbindNodeEvent:(t,o,x)=>{e(r=>{const i=_0x3847,c=r.eventFlow[i(1522)][i(2274)](u=>{const d=i;return u[d(1924)]!==t||u[d(2121)]!==o?!1:o===d(2016)?(u[d(1798)]||"")[d(1215)]()===(x||"")[d(1215)]():!0});c!==-1&&r[i(648)].eventRoots[i(2227)](c,1)})},getNodeEventRoots:t=>{const o=a;return n()[o(648)].eventRoots[o(526)](x=>x[o(1924)]===t)}}))),Ur=[{id:Ae[a(558)](),name:"矩形",type:a(425),src:a(1964)+encodeURIComponent(a(1192))},{id:Ae[a(558)](),name:"圆形",type:"IMAGE",src:a(1964)+encodeURIComponent(a(1695))},{id:Ae.nanoid(),name:"圆角矩形",type:a(425),src:a(1964)+encodeURIComponent(a(2068))},{id:Ae.nanoid(),name:"阀门",type:a(425),src:a(1964)+encodeURIComponent(a(2231))},{id:Ae.nanoid(),name:"泵",type:a(425),src:a(1964)+encodeURIComponent(a(1923))},{id:Ae.nanoid(),name:"罐体",type:a(425),src:"data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="60" height="80"><ellipse cx="30" cy="10" rx="25" ry="10" fill="#d9d9d9" stroke="#595959" stroke-width="2"/><rect x="5" y="10" width="50" height="60" fill="#f0f0f0" stroke="#595959" stroke-width="2"/><ellipse cx="30" cy="70" rx="25" ry="10" fill="#d9d9d9" stroke="#595959" stroke-width="2"/></svg>')},{id:Ae[a(558)](),name:a(881),type:"TEXT",content:{label:"标签",value:"值",labelStyle:{fontSize:14,fontWeight:a(438),color:a(2083),textAlign:a(1322)},valueStyle:{fontSize:14,fontWeight:a(2239),color:"#1890ff",textAlign:a(1322)}}},{id:Ae[a(558)](),name:"线条",type:"LINE",config:{thickness:2,lineWeight:2,color:a(2083),lineType:a(1769)}}],ho=e=>({id:Ae[a(558)](),name:"默认状态",expression:a(1606),material:{...e,id:Ae[a(558)]()},boundDatasetId:null,animation:{type:a(1895)}}),Or=(e,n,t)=>{const o=a;if(t?.[o(1939)]===o(1202)&&t[o(678)]?.[o(1687)]){const x=t[o(678)].nodes.map(s=>({...s,id:Ae.nanoid()}));let r=1/0,i=1/0,c=-1/0,u=-1/0;x[o(1935)](s=>{const f=o,g=s[f(893)].x||0,h=s.normalStyle.y||0,m=s.normalStyle[f(2272)]||0,b=s[f(893)][f(863)]||0;r=Math[f(1449)](r,g),i=Math[f(1449)](i,h),c=Math[f(1425)](c,g+m),u=Math[f(1425)](u,h+b)});const d=x.map(s=>({...s,normalStyle:{...s[o(893)],x:(s[o(893)].x||0)-r,y:(s.normalStyle.y||0)-i,scale:void 0}}));return{id:Ae[o(558)](),name:t[o(1877)]||o(944),type:o(943),normalStyle:{width:c-r,height:u-i,x:e,y:n},contentInfo:{statusList:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0},children:d}}return{id:Ae[o(558)](),name:o(957),type:"normal",normalStyle:{width:120,height:100,x:e,y:n,background:o(1223),padding:8},contentInfo:{statusList:t?[ho(t)]:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0}}},{Panel:Gt}=p[a(1929)],{Text:$0}=p[a(1339)],Gr=({onUploadSvg:e})=>{const n=a,{materials:t,addMaterial:o,removeMaterial:x,selectedStatusId:r,selectStatus:i,mode:c,lineDrawing:u,startLineDrawing:d,cancelLineDrawing:s}=sn(),[f,g]=D[n(1115)]([n(952),n(1656),"text",n(2006)]),h=y=>{const w=n,z=new FileReader;return z.onload=C=>{const P=_0x3847,G=C[P(966)]?.[P(1106)];o({name:y[P(1877)][P(1513)](P(1950),""),type:"IMAGE",src:G})},z[w(954)](y),!1},m={basic:t[n(526)](y=>["矩形","圆形",n(2148)].includes(y[n(1877)])),device:t.filter(y=>["阀门","泵","罐体"][n(1992)](y[n(1877)])||y[n(1939)]===n(425)&&!["矩形","圆形",n(2148)][n(1992)](y[n(1877)])&&y[n(1877)]!==n(1953)),text:t.filter(y=>y[n(1939)]==="TEXT"),line:t[n(526)](y=>y[n(1939)]===n(1013)),group:t[n(526)](y=>y[n(1939)]==="CUSTOM"&&y[n(678)]?.nodes),custom:t.filter(y=>y[n(1939)]===n(1202)&&!y[n(678)]?.nodes||y[n(1939)]===n(425)&&!["矩形","圆形",n(2148),"阀门","泵","罐体"].includes(y[n(1877)]))},b=(y,w)=>{const z=n;y[z(592)][z(1828)]="copy",y[z(592)].setData("application/json",JSON[z(1270)](w));const C=y.currentTarget[z(525)](".material-preview");C&&y[z(592)][z(2262)](C,20,20)},v=y=>{const w=n;y[w(1939)]===w(1013)&&d(y)},M=(y,w=!1,z=n(1136))=>{const C=n,P=w===!0,G=c===C(1113)&&P&&u[C(1200)]?.id===y.id;return l.jsx(p[C(1959)][C(1207)],{draggable:!P,onDragStart:U=>b(U,y),onClick:()=>P&&v(y),className:C(1381)+C(P?1325:1146)+`
|
|
3
|
-
|
|
4
|
-
`+(G?C(1497):"")+C(2084),actions:[P?l[C(641)](p[C(653)],{type:C(1815),size:"small",icon:l.jsx(be[C(2015)],{}),onClick:U=>{U[C(462)](),v(y)},children:"绘制"},"draw"):null,l[C(641)](p[C(653)],{type:"text",size:"small",danger:!0,icon:l.jsx(be[C(2163)],{}),onClick:U=>{U[C(462)](),x(y.id)}},"delete")][C(526)](Boolean),children:l[C(873)]("div",{className:C(2205)+(P?"":"pointer-events-none"),children:[l.jsx(C(2048),{className:C(1411)+z,children:y[C(1939)]===C(425)&&y[C(1199)]?l[C(641)](p[C(853)],{src:y[C(1199)],alt:y[C(1877)],width:40,height:40,preview:!1}):y.type===C(1155)?l[C(641)](C(909),{className:"text-xs text-gray-500",children:"T"}):y[C(1939)]===C(1013)?l[C(641)](C(2048),{className:"w-8 h-0.5 bg-gray-400"}):y.type===C(1202)&&y[C(678)]?.[C(1687)]?l[C(641)](C(909),{className:C(1835),children:"G"}):l[C(641)]("span",{className:"text-xs text-gray-500",children:"?"})}),l[C(873)]("div",{className:C(1179),children:[l[C(641)]($0,{strong:!0,className:"block truncate",children:y[C(1877)]}),l[C(873)]("div",{className:C(609),children:[l[C(641)]($0,{type:C(1229),className:"text-xs",children:y[C(1939)]}),G&&l[C(641)](p.Tag,{color:C(585),className:C(2209),children:C(509)})]})]})]})},y.id)};return l[n(873)](n(2048),{className:n(1124),children:[l[n(873)](n(2048),{className:n(1489),children:[l[n(641)]("h3",{className:n(1981),children:n(708)}),l[n(641)]($0,{type:n(1229),className:n(1327),children:n(1545)})]}),l[n(641)](n(2048),{className:"p-3 border-b border-gray-200",children:e?l[n(641)](p[n(653)],{icon:l.jsx(be[n(510)],{}),block:!0,type:"dashed",onClick:()=>{const y=n;e()[y(1731)](w=>{const z=y;console[z(435)](z(1993),w)})},children:"上传 SVG"}):l[n(641)](p.Upload,{accept:n(1950),beforeUpload:h,showUploadList:!1,children:l[n(641)](p.Button,{icon:l[n(641)](be.UploadOutlined,{}),block:!0,type:n(972),children:n(2001)})})}),l[n(641)](n(2048),{className:"flex-1 overflow-y-auto p-2",children:l[n(873)](p.Collapse,{activeKey:f,onChange:y=>g(y),ghost:!0,expandIconPosition:n(621),children:[l[n(641)](Gt,{header:"基础形状",children:l[n(641)](p[n(1959)],{dataSource:m[n(952)],renderItem:y=>M(y,!1),locale:{emptyText:l[n(641)](p[n(1377)],{description:"暂无物料",image:p[n(1377)][n(1779)]})}})},n(952)),l[n(641)](Gt,{header:"设备图标",children:l[n(641)](p.List,{dataSource:m[n(1656)],renderItem:y=>M(y,!1,"bg-gray-200"),locale:{emptyText:l[n(641)](p[n(1377)],{description:n(1011),image:p.Empty[n(1779)]})}})},"device"),l.jsx(Gt,{header:"文本",children:l[n(641)](p.List,{dataSource:m[n(1815)],renderItem:y=>M(y,!1),locale:{emptyText:l[n(641)](p.Empty,{description:n(1011),image:p[n(1377)][n(1779)]})}})},n(1815)),l[n(873)](Gt,{header:l.jsxs("div",{className:n(1862),children:[l.jsx(n(909),{children:"线条"}),c===n(1113)&&l[n(641)](p[n(1006)],{color:n(585),className:n(2209),children:n(2150)})]}),children:[l[n(641)](p[n(1959)],{dataSource:m[n(2006)],renderItem:y=>M(y,!0),locale:{emptyText:l[n(641)](p[n(1377)],{description:"暂无物料",image:p[n(1377)][n(1779)]})}}),c===n(1113)&&l[n(873)]("div",{className:n(1793),children:[l[n(641)](n(2048),{children:n(1804)}),l[n(641)](n(2048),{children:n(1544)})]})]},n(2006)),m[n(943)].length>0&&l[n(641)](Gt,{header:"群组",children:l[n(641)](p.List,{dataSource:m[n(943)],renderItem:y=>M(y,!1),locale:{emptyText:l[n(641)](p.Empty,{description:n(1011),image:p[n(1377)][n(1779)]})}})},n(943)),m.custom[n(2073)]>0&&l[n(641)](Gt,{header:n(1953),children:l.jsx(p[n(1959)],{dataSource:m[n(771)],renderItem:y=>M(y,!1),locale:{emptyText:l[n(641)](p[n(1377)],{description:n(1011),image:p[n(1377)][n(1779)]})}})},n(771))]})}),l[n(641)](n(2048),{className:n(1610),children:l[n(641)]($0,{type:n(1229),className:n(2209),children:c===n(1113)?l.jsx(l.Fragment,{children:n(1783)}):l.jsx(l[n(1365)],{children:n(1266)})})})]})},yt=2,Hr=10**yt;function he(e){return Number.isFinite(e)?Math.round(e*Hr)/Hr:0}var go=function(e,n){const t=a;return go=Object[t(689)]||{__proto__:[]}instanceof Array&&function(o,x){const r=t;o[r(1554)]=x}||function(o,x){const r=t;for(var i in x)Object[r(1589)][r(715)][r(1780)](x,i)&&(o[i]=x[i])},go(e,n)};function rt(e,n){const t=a;if(typeof n!="function"&&n!==null)throw new TypeError(t(603)+String(n)+" is not a constructor or null");go(e,n);function o(){const x=t;this[x(1208)]=e}e[t(1589)]=n===null?Object[t(1050)](n):(o.prototype=n[t(1589)],new o)}function Rs(e,n,t,o){function x(r){return r instanceof t?r:new t(function(i){i(r)})}return new(t||(t=Promise))(function(r,i){const c=_0x3847;function u(f){try{s(o.next(f))}catch(g){i(g)}}function d(f){const g=_0x3847;try{s(o[g(1452)](f))}catch(h){i(h)}}function s(f){const g=_0x3847;f[g(1001)]?r(f[g(845)]):x(f[g(845)])[g(1535)](u,d)}s((o=o[c(1858)](e,n||[]))[c(1357)]())})}function Tr(e,n){const t=a;var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},x,r,i,c=Object[t(1050)]((typeof Iterator===t(1145)?Iterator:Object)[t(1589)]);return c[t(1357)]=u(0),c.throw=u(1),c[t(1639)]=u(2),typeof Symbol===t(1145)&&(c[Symbol[t(875)]]=function(){return this}),c;function u(s){return function(f){return d([s,f])}}function d(s){const f=t;if(x)throw new TypeError(f(927));for(;c&&(c=0,s[0]&&(o=0)),o;)try{if(x=1,r&&(i=s[0]&2?r[f(1639)]:s[0]?r.throw||((i=r[f(1639)])&&i.call(r),0):r.next)&&!(i=i[f(1780)](r,s[1])).done)return i;switch(r=0,i&&(s=[s[0]&2,i[f(845)]]),s[0]){case 0:case 1:i=s;break;case 4:return o[f(2172)]++,{value:s[1],done:!1};case 5:o[f(2172)]++,r=s[1],s=[0];continue;case 7:s=o[f(1866)][f(777)](),o.trys[f(777)]();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){o[f(2172)]=s[1];break}if(s[0]===6&&o.label<i[1]){o[f(2172)]=i[1],i=s;break}if(i&&o[f(2172)]<i[2]){o[f(2172)]=i[2],o[f(1866)][f(1371)](s);break}i[2]&&o[f(1866)].pop(),o.trys[f(777)]();continue}s=n[f(1780)](e,o)}catch(g){s=[6,g],r=0}finally{x=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Ht(e){const n=a;var t=typeof Symbol=="function"&&Symbol.iterator,o=t&&e[t],x=0;if(o)return o[n(1780)](e);if(e&&typeof e[n(2073)]===n(1421))return{next:function(){return e&&x>=e.length&&(e=void 0),{value:e&&e[x++],done:!e}}};throw new TypeError(n(t?591:1084))}function ex(e,n){const t=a;var o=typeof Symbol=="function"&&e[Symbol[t(875)]];if(!o)return e;var x=o.call(e),r,i=[],c;try{for(;(n===void 0||n-- >0)&&!(r=x[t(1357)]()).done;)i[t(1371)](r[t(845)])}catch(u){c={error:u}}finally{try{r&&!r[t(1001)]&&(o=x.return)&&o[t(1780)](x)}finally{if(c)throw c[t(1316)]}}return i}function nx(e,n,t){const o=a;if(t||arguments[o(2073)]===2)for(var x=0,r=n[o(2073)],i;x<r;x++)(i||!(x in n))&&(i||(i=Array[o(1589)][o(1243)][o(1780)](n,0,x)),i[x]=n[x]);return e.concat(i||Array.prototype[o(1243)].call(n))}function Tt(e){return this instanceof Tt?(this.v=e,this):new Tt(e)}function Js(e,n,t){const o=a;if(!Symbol[o(1963)])throw new TypeError(o(915));var x=t.apply(e,n||[]),r,i=[];return r=Object.create((typeof AsyncIterator===o(1145)?AsyncIterator:Object)[o(1589)]),u(o(1357)),u(o(1452)),u(o(1639),c),r[Symbol[o(1963)]]=function(){return this},r;function c(m){return function(b){return Promise[_0x3847(1284)](b).then(m,g)}}function u(m,b){x[m]&&(r[m]=function(v){return new Promise(function(M,y){i[_0x3847(1371)]([m,v,M,y])>1||d(m,v)})},b&&(r[m]=b(r[m])))}function d(m,b){try{s(x[m](b))}catch(v){h(i[0][3],v)}}function s(m){const b=o;m[b(845)]instanceof Tt?Promise[b(1284)](m[b(845)].v)[b(1535)](f,g):h(i[0][2],m)}function f(m){d(o(1357),m)}function g(m){d(o(1452),m)}function h(m,b){const v=o;m(b),i[v(1980)](),i.length&&d(i[0][0],i[0][1])}}function _s(e){const n=a;if(!Symbol[n(1963)])throw new TypeError(n(915));var t=e[Symbol[n(1963)]],o;return t?t[n(1780)](e):(e=typeof Ht=="function"?Ht(e):e[Symbol[n(875)]](),o={},x("next"),x("throw"),x(n(1639)),o[Symbol.asyncIterator]=function(){return this},o);function x(i){o[i]=e[i]&&function(c){return new Promise(function(u,d){const s=_0x3847;c=e[i](c),r(u,d,c[s(1001)],c[s(845)])})}}function r(i,c,u,d){const s=n;Promise.resolve(d)[s(1535)](function(f){i({value:f,done:u})},c)}}typeof SuppressedError===a(1145)&&SuppressedError;function xn(e){return typeof e=="function"}function yo(e){const n=a;var t=function(x){const r=_0x3847;Error[r(1780)](x),x.stack=new Error()[r(577)]},o=e(t);return o.prototype=Object[n(1050)](Error[n(1589)]),o[n(1589)].constructor=o,o}var mo=yo(function(e){return function(t){const o=_0x3847;e(this),this[o(1638)]=t?t[o(2073)]+o(1669)+t.map(function(x,r){const i=o;return r+1+") "+x[i(2004)]()}).join(o(1551)):"",this[o(1877)]=o(1611),this[o(607)]=t}});function tx(e,n){const t=a;if(e){var o=e[t(623)](n);0<=o&&e[t(2227)](o,1)}}var v0=(function(){const e=a;function n(t){const o=_0x3847;this.initialTeardown=t,this[o(1661)]=!1,this[o(1822)]=null,this._finalizers=null}return n[e(1589)][e(1096)]=function(){const t=e;var o,x,r,i,c;if(!this[t(1661)]){this.closed=!0;var u=this[t(1822)];if(u)if(this[t(1822)]=null,Array[t(612)](u))try{for(var d=Ht(u),s=d[t(1357)]();!s[t(1001)];s=d[t(1357)]()){var f=s[t(845)];f[t(1805)](this)}}catch(M){o={error:M}}finally{try{s&&!s[t(1001)]&&(x=d[t(1639)])&&x.call(d)}finally{if(o)throw o[t(1316)]}}else u[t(1805)](this);var g=this[t(1773)];if(xn(g))try{g()}catch(M){c=M instanceof mo?M[t(607)]:[M]}var h=this[t(1473)];if(h){this[t(1473)]=null;try{for(var m=Ht(h),b=m[t(1357)]();!b.done;b=m[t(1357)]()){var v=b[t(845)];try{Wr(v)}catch(M){c=c??[],M instanceof mo?c=nx(nx([],ex(c)),ex(M[t(607)])):c.push(M)}}}catch(M){r={error:M}}finally{try{b&&!b[t(1001)]&&(i=m.return)&&i[t(1780)](m)}finally{if(r)throw r[t(1316)]}}}if(c)throw new mo(c)}},n[e(1589)][e(848)]=function(t){const o=e;var x;if(t&&t!==this)if(this[o(1661)])Wr(t);else{if(t instanceof n){if(t[o(1661)]||t[o(499)](this))return;t[o(1908)](this)}(this[o(1473)]=(x=this._finalizers)!==null&&x!==void 0?x:[])[o(1371)](t)}},n[e(1589)][e(499)]=function(t){var x=this[e(1822)];return x===t||Array.isArray(x)&&x.includes(t)},n.prototype[e(1908)]=function(t){const o=e;var x=this[o(1822)];this._parentage=Array.isArray(x)?(x[o(1371)](t),x):x?[x,t]:t},n[e(1589)][e(569)]=function(t){const o=e;var x=this[o(1822)];x===t?this[o(1822)]=null:Array[o(612)](x)&&tx(x,t)},n[e(1589)][e(1805)]=function(t){const o=e;var x=this[o(1473)];x&&tx(x,t),t instanceof n&&t[o(569)](this)},n[e(1948)]=(function(){var t=new n;return t.closed=!0,t})(),n})(),Vr=v0[a(1948)];function qr(e){const n=a;return e instanceof v0||e&&"closed"in e&&xn(e[n(1805)])&&xn(e[n(848)])&&xn(e.unsubscribe)}function Wr(e){const n=a;xn(e)?e():e[n(1096)]()}var Qs={Promise:void 0},Fs={setTimeout:function(e,n){const t=a;for(var o=[],x=2;x<arguments[t(2073)];x++)o[x-2]=arguments[x];return setTimeout[t(1858)](void 0,nx([e,n],ex(o)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Xr(e){Fs[a(1492)](function(){throw e})}function Kr(){}function xx(e){e()}var wo=(function(e){const n=a;rt(t,e);function t(o){const x=_0x3847;var r=e[x(1780)](this)||this;return r[x(2208)]=!1,o?(r[x(728)]=o,qr(o)&&o.add(r)):r[x(728)]=nl,r}return t[n(1050)]=function(o,x,r){return new vo(o,x,r)},t[n(1589)][n(1357)]=function(o){const x=n;this[x(2208)]||this[x(461)](o)},t[n(1589)].error=function(o){const x=n;this[x(2208)]||(this[x(2208)]=!0,this[x(1384)](o))},t.prototype[n(1244)]=function(){const o=n;this[o(2208)]||(this[o(2208)]=!0,this._complete())},t[n(1589)].unsubscribe=function(){const o=n;!this.closed&&(this[o(2208)]=!0,e[o(1589)][o(1096)].call(this),this.destination=null)},t[n(1589)][n(461)]=function(o){this[n(728)].next(o)},t[n(1589)]._error=function(o){const x=n;try{this[x(728)][x(1316)](o)}finally{this.unsubscribe()}},t[n(1589)]._complete=function(){const o=n;try{this[o(728)][o(1244)]()}finally{this[o(1096)]()}},t})(v0),$s=(function(){const e=a;function n(t){const o=_0x3847;this[o(635)]=t}return n.prototype[e(1357)]=function(t){const o=e;var x=this[o(635)];if(x[o(1357)])try{x[o(1357)](t)}catch(r){ox(r)}},n[e(1589)][e(1316)]=function(t){const o=e;var x=this[o(635)];if(x[o(1316)])try{x[o(1316)](t)}catch(r){ox(r)}else ox(t)},n[e(1589)][e(1244)]=function(){const t=e;var o=this[t(635)];if(o[t(1244)])try{o[t(1244)]()}catch(x){ox(x)}},n})(),vo=(function(e){rt(n,e);function n(t,o,x){const r=_0x3847;var i=e.call(this)||this,c;return xn(t)||!t?c={next:t??void 0,error:o??void 0,complete:x??void 0}:c=t,i[r(728)]=new $s(c),i}return n})(wo);function ox(e){Xr(e)}function el(e){throw e}var nl={closed:!0,next:Kr,error:el,complete:Kr},po=(function(){const e=a;return typeof Symbol===e(1145)&&Symbol[e(1404)]||"@@observable"})();function Zr(e){return e}function tl(e){const n=a;return e[n(2073)]===0?Zr:e[n(2073)]===1?e[0]:function(o){return e.reduce(function(x,r){return r(x)},o)}}var Nn=(function(){const e=a;function n(t){const o=_0x3847;t&&(this[o(1865)]=t)}return n[e(1589)][e(2101)]=function(t){const o=e;var x=new n;return x[o(1364)]=this,x[o(1348)]=t,x},n[e(1589)][e(1787)]=function(t,o,x){var r=this,i=ol(t)?t:new vo(t,o,x);return xx(function(){const c=_0x3847;var u=r,d=u[c(1348)],s=u[c(1364)];i[c(848)](d?d.call(i,s):s?r[c(1865)](i):r[c(1256)](i))}),i},n[e(1589)][e(1256)]=function(t){try{return this._subscribe(t)}catch(o){t.error(o)}},n[e(1589)][e(1935)]=function(t,o){var x=this;return o=Rr(o),new o(function(r,i){const c=_0x3847;var u=new vo({next:function(d){const s=_0x3847;try{t(d)}catch(f){i(f),u[s(1096)]()}},error:i,complete:r});x[c(1787)](u)})},n[e(1589)][e(1865)]=function(t){const o=e;var x;return(x=this[o(1364)])===null||x===void 0?void 0:x[o(1787)](t)},n[e(1589)][po]=function(){return this},n[e(1589)][e(1122)]=function(){const t=e;for(var o=[],x=0;x<arguments[t(2073)];x++)o[x]=arguments[x];return tl(o)(this)},n.prototype[e(2183)]=function(t){var o=this;return t=Rr(t),new t(function(x,r){const i=_0x3847;var c;o[i(1787)](function(u){return c=u},function(u){return r(u)},function(){return x(c)})})},n.create=function(t){return new n(t)},n})();function Rr(e){const n=a;var t;return(t=e??Qs[n(1466)])!==null&&t!==void 0?t:Promise}function xl(e){const n=a;return e&&xn(e[n(1357)])&&xn(e[n(1316)])&&xn(e[n(1244)])}function ol(e){return e&&e instanceof wo||xl(e)&&qr(e)}function rl(e){return xn(e?.[a(2101)])}function mt(e){return function(n){const t=_0x3847;if(rl(n))return n.lift(function(o){const x=_0x3847;try{return e(o,this)}catch(r){this[x(1316)](r)}});throw new TypeError(t(741))}}function wt(e,n,t,o,x){return new il(e,n,t,o,x)}var il=(function(e){const n=a;rt(t,e);function t(o,x,r,i,c,u){const d=_0x3847;var s=e[d(1780)](this,o)||this;return s.onFinalize=c,s[d(1499)]=u,s[d(461)]=x?function(f){const g=d;try{x(f)}catch(h){o[g(1316)](h)}}:e[d(1589)]._next,s[d(1384)]=i?function(f){const g=d;try{i(f)}catch(h){o[g(1316)](h)}finally{this[g(1096)]()}}:e[d(1589)]._error,s[d(590)]=r?function(){const f=d;try{r()}catch(g){o[f(1316)](g)}finally{this[f(1096)]()}}:e[d(1589)][d(590)],s}return t[n(1589)][n(1096)]=function(){const o=n;var x;if(!this[o(1499)]||this[o(1499)]()){var r=this[o(1661)];e[o(1589)][o(1096)][o(1780)](this),!r&&((x=this[o(1053)])===null||x===void 0||x[o(1780)](this))}},t})(wo),cl=yo(function(e){return function(){const t=_0x3847;e(this),this[t(1877)]=t(1541),this.message="object unsubscribed"}}),Jr=(function(e){const n=a;rt(t,e);function t(){const o=_0x3847;var x=e[o(1780)](this)||this;return x[o(1661)]=!1,x[o(1182)]=null,x.observers=[],x[o(2208)]=!1,x[o(2145)]=!1,x.thrownError=null,x}return t[n(1589)][n(2101)]=function(o){var x=new _r(this,this);return x.operator=o,x},t[n(1589)][n(1799)]=function(){if(this[n(1661)])throw new cl},t.prototype[n(1357)]=function(o){var x=this;xx(function(){const r=_0x3847;var i,c;if(x[r(1799)](),!x[r(2208)]){!x.currentObservers&&(x.currentObservers=Array[r(1478)](x[r(1406)]));try{for(var u=Ht(x.currentObservers),d=u[r(1357)]();!d[r(1001)];d=u[r(1357)]()){var s=d[r(845)];s[r(1357)](o)}}catch(f){i={error:f}}finally{try{d&&!d[r(1001)]&&(c=u[r(1639)])&&c[r(1780)](u)}finally{if(i)throw i[r(1316)]}}}})},t[n(1589)].error=function(o){var x=this;xx(function(){const r=_0x3847;if(x[r(1799)](),!x[r(2208)]){x[r(2145)]=x.isStopped=!0,x.thrownError=o;for(var i=x[r(1406)];i.length;)i.shift()[r(1316)](o)}})},t[n(1589)][n(1244)]=function(){var o=this;xx(function(){const x=_0x3847;if(o._throwIfClosed(),!o.isStopped){o[x(2208)]=!0;for(var r=o[x(1406)];r[x(2073)];)r[x(1980)]()[x(1244)]()}})},t[n(1589)][n(1096)]=function(){const o=n;this[o(2208)]=this[o(1661)]=!0,this[o(1406)]=this[o(1182)]=null},Object[n(1790)](t[n(1589)],"observed",{get:function(){const o=n;var x;return((x=this[o(1406)])===null||x===void 0?void 0:x[o(2073)])>0},enumerable:!1,configurable:!0}),t[n(1589)][n(1256)]=function(o){const x=n;return this._throwIfClosed(),e.prototype[x(1256)].call(this,o)},t[n(1589)][n(1865)]=function(o){const x=n;return this[x(1799)](),this[x(788)](o),this._innerSubscribe(o)},t.prototype._innerSubscribe=function(o){const x=n;var r=this,i=this,c=i.hasError,u=i[x(2208)],d=i[x(1406)];return c||u?Vr:(this.currentObservers=null,d.push(o),new v0(function(){const s=x;r[s(1182)]=null,tx(d,o)}))},t[n(1589)]._checkFinalizedStatuses=function(o){const x=n;var r=this,i=r[x(2145)],c=r[x(1149)],u=r.isStopped;i?o[x(1316)](c):u&&o[x(1244)]()},t.prototype[n(968)]=function(){const o=n;var x=new Nn;return x[o(1364)]=this,x},t[n(1050)]=function(o,x){return new _r(o,x)},t})(Nn),_r=(function(e){const n=a;rt(t,e);function t(o,x){const r=_0x3847;var i=e[r(1780)](this)||this;return i[r(728)]=o,i[r(1364)]=x,i}return t[n(1589)].next=function(o){const x=n;var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r[x(1357)])===null||i===void 0||i[x(1780)](r,o)},t[n(1589)][n(1316)]=function(o){const x=n;var r,i;(i=(r=this[x(728)])===null||r===void 0?void 0:r[x(1316)])===null||i===void 0||i[x(1780)](r,o)},t[n(1589)].complete=function(){const o=n;var x,r;(r=(x=this[o(728)])===null||x===void 0?void 0:x[o(1244)])===null||r===void 0||r[o(1780)](x)},t[n(1589)]._subscribe=function(o){var x,r;return(r=(x=this.source)===null||x===void 0?void 0:x.subscribe(o))!==null&&r!==void 0?r:Vr},t})(Jr),al={now:function(){return Date[a(1969)]()}},sl=(function(e){const n=a;rt(t,e);function t(o,x){return e[_0x3847(1780)](this)||this}return t[n(1589)][n(2021)]=function(o,x){return this},t})(v0),Qr={setInterval:function(e,n){const t=a;for(var o=[],x=2;x<arguments[t(2073)];x++)o[x-2]=arguments[x];return setInterval.apply(void 0,nx([e,n],ex(o)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},ll=(function(e){const n=a;rt(t,e);function t(o,x){const r=_0x3847;var i=e.call(this,o,x)||this;return i[r(1307)]=o,i.work=x,i.pending=!1,i}return t[n(1589)][n(2021)]=function(o,x){const r=n;var i;if(x===void 0&&(x=0),this[r(1661)])return this;this[r(1071)]=o;var c=this.id,u=this[r(1307)];return c!=null&&(this.id=this[r(2177)](u,c,x)),this[r(1717)]=!0,this[r(809)]=x,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(u,this.id,x),this},t[n(1589)][n(1874)]=function(o,x,r){const i=n;return r===void 0&&(r=0),Qr[i(680)](o[i(1119)][i(2127)](o,this),r)},t[n(1589)].recycleAsyncId=function(o,x,r){const i=n;return r===void 0&&(r=0),r!=null&&this[i(809)]===r&&this[i(1717)]===!1?x:(x!=null&&Qr[i(681)](x),void 0)},t[n(1589)][n(1848)]=function(o,x){const r=n;if(this[r(1661)])return new Error(r(521));this[r(1717)]=!1;var i=this[r(514)](o,x);if(i)return i;this[r(1717)]===!1&&this.id!=null&&(this.id=this[r(2177)](this[r(1307)],this.id,null))},t.prototype[n(514)]=function(o,x){const r=n;var i=!1,c;try{this[r(430)](o)}catch(u){i=!0,c=u||new Error(r(554))}if(i)return this[r(1096)](),c},t[n(1589)][n(1096)]=function(){const o=n;if(!this.closed){var x=this,r=x.id,i=x[o(1307)],c=i.actions;this[o(430)]=this[o(1071)]=this.scheduler=null,this[o(1717)]=!1,tx(c,this),r!=null&&(this.id=this[o(2177)](i,r,null)),this[o(809)]=null,e.prototype[o(1096)][o(1780)](this)}},t})(sl),Fr=(function(){const e=a;function n(t,o){const x=_0x3847;o===void 0&&(o=n.now),this[x(1383)]=t,this[x(1969)]=o}return n[e(1589)].schedule=function(t,o,x){const r=e;return o===void 0&&(o=0),new this[r(1383)](this,t)[r(2021)](x,o)},n[e(1969)]=al[e(1969)],n})(),dl=(function(e){const n=a;rt(t,e);function t(o,x){const r=_0x3847;x===void 0&&(x=Fr[r(1969)]);var i=e[r(1780)](this,o,x)||this;return i[r(1621)]=[],i._active=!1,i}return t[n(1589)][n(1119)]=function(o){const x=n;var r=this[x(1621)];if(this[x(1851)]){r[x(1371)](o);return}var i;this[x(1851)]=!0;do if(i=o.execute(o[x(1071)],o[x(809)]))break;while(o=r.shift());if(this[x(1851)]=!1,i){for(;o=r.shift();)o[x(1096)]();throw i}},t})(Fr),ul=new dl(ll);function fl(e){return e&&xn(e.schedule)}function bl(e){return e[e[a(2073)]-1]}function hl(e){return fl(bl(e))?e.pop():void 0}var $r=function(e){const n=a;return e&&typeof e[n(2073)]===n(1421)&&typeof e!="function"};function ei(e){return xn(e?.[a(1535)])}function ni(e){return xn(e[po])}function ti(e){return Symbol.asyncIterator&&xn(e?.[Symbol.asyncIterator])}function xi(e){const n=a;return new TypeError(n(516)+(e!==null&&typeof e===n(1130)?n(1479):"'"+e+"'")+n(840))}function gl(){const e=a;return typeof Symbol!==e(1145)||!Symbol[e(875)]?e(1436):Symbol[e(875)]}var oi=gl();function ri(e){return xn(e?.[oi])}function ii(e){return Js(this,arguments,function(){var t,o,x,r;return Tr(this,function(i){const c=_0x3847;switch(i[c(2172)]){case 0:t=e.getReader(),i[c(2172)]=1;case 1:i[c(1944)][c(1371)]([1,,9,10]),i[c(2172)]=2;case 2:return[4,Tt(t[c(990)]())];case 3:return o=i[c(1760)](),x=o[c(845)],r=o.done,r?[4,Tt(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,Tt(x)];case 6:return[4,i.sent()];case 7:return i[c(1760)](),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function ci(e){return xn(e?.[a(1916)])}function vt(e){if(e instanceof Nn)return e;if(e!=null){if(ni(e))return yl(e);if($r(e))return ml(e);if(ei(e))return wl(e);if(ti(e))return ai(e);if(ri(e))return vl(e);if(ci(e))return pl(e)}throw xi(e)}function yl(e){return new Nn(function(n){const t=_0x3847;var o=e[po]();if(xn(o[t(1787)]))return o[t(1787)](n);throw new TypeError(t(586))})}function ml(e){return new Nn(function(n){const t=_0x3847;for(var o=0;o<e.length&&!n[t(1661)];o++)n.next(e[o]);n[t(1244)]()})}function wl(e){return new Nn(function(n){const t=_0x3847;e[t(1535)](function(o){!n[t(1661)]&&(n.next(o),n.complete())},function(o){return n[t(1316)](o)})[t(1535)](null,Xr)})}function vl(e){return new Nn(function(n){const t=_0x3847;var o,x;try{for(var r=Ht(e),i=r[t(1357)]();!i[t(1001)];i=r[t(1357)]()){var c=i[t(845)];if(n.next(c),n[t(1661)])return}}catch(u){o={error:u}}finally{try{i&&!i.done&&(x=r[t(1639)])&&x[t(1780)](r)}finally{if(o)throw o[t(1316)]}}n[t(1244)]()})}function ai(e){return new Nn(function(n){const t=_0x3847;zl(e,n)[t(1731)](function(o){return n[t(1316)](o)})})}function pl(e){return ai(ii(e))}function zl(e,n){var t,o,x,r;return Rs(this,void 0,void 0,function(){var i,c;return Tr(this,function(u){const d=_0x3847;switch(u[d(2172)]){case 0:u[d(1944)][d(1371)]([0,5,6,11]),t=_s(e),u[d(2172)]=1;case 1:return[4,t[d(1357)]()];case 2:if(o=u[d(1760)](),!!o[d(1001)])return[3,4];if(i=o[d(845)],n[d(1357)](i),n[d(1661)])return[2];u[d(2172)]=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=u[d(1760)](),x={error:c},[3,11];case 6:return u.trys[d(1371)]([6,,9,10]),o&&!o[d(1001)]&&(r=t[d(1639)])?[4,r[d(1780)](t)]:[3,8];case 7:u[d(1760)](),u.label=8;case 8:return[3,10];case 9:if(x)throw x[d(1316)];return[7];case 10:return[7];case 11:return n[d(1244)](),[2]}})})}function it(e,n,t,o,x){const r=a;o===void 0&&(o=0),x===void 0&&(x=!1);var i=n.schedule(function(){const c=_0x3847;t(),x?e[c(848)](this.schedule(null,o)):this.unsubscribe()},o);if(e[r(848)](i),!x)return i}function si(e,n){return n===void 0&&(n=0),mt(function(t,o){t[_0x3847(1787)](wt(o,function(r){return it(o,e,function(){return o[_0x3847(1357)](r)},n)},function(){return it(o,e,function(){return o.complete()},n)},function(r){return it(o,e,function(){return o[_0x3847(1316)](r)},n)}))})}function li(e,n){return n===void 0&&(n=0),mt(function(t,o){const x=_0x3847;o[x(848)](e[x(2021)](function(){return t[x(1787)](o)},n))})}function Cl(e,n){const t=a;return vt(e)[t(1122)](li(n),si(n))}function Ml(e,n){const t=a;return vt(e)[t(1122)](li(n),si(n))}function Bl(e,n){return new Nn(function(t){const o=_0x3847;var x=0;return n[o(2021)](function(){const r=o;x===e[r(2073)]?t[r(1244)]():(t.next(e[x++]),!t[r(1661)]&&this[r(2021)]())})})}function Dl(e,n){return new Nn(function(t){var o;return it(t,n,function(){o=e[oi](),it(t,n,function(){const x=_0x3847;var r,i,c;try{r=o[x(1357)](),i=r[x(845)],c=r[x(1001)]}catch(u){t[x(1316)](u);return}c?t.complete():t[x(1357)](i)},0,!0)}),function(){const x=_0x3847;return xn(o?.[x(1639)])&&o[x(1639)]()}})}function di(e,n){const t=a;if(!e)throw new Error(t(1486));return new Nn(function(o){it(o,n,function(){const x=_0x3847;var r=e[Symbol[x(1963)]]();it(o,n,function(){const i=x;r[i(1357)]()[i(1535)](function(c){const u=i;c[u(1001)]?o[u(1244)]():o.next(c.value)})},0,!0)})})}function Ll(e,n){return di(ii(e),n)}function Nl(e,n){if(e!=null){if(ni(e))return Cl(e,n);if($r(e))return Bl(e,n);if(ei(e))return Ml(e,n);if(ti(e))return di(e,n);if(ri(e))return Dl(e,n);if(ci(e))return Ll(e,n)}throw xi(e)}function rx(e,n){return n?Nl(e,n):vt(e)}function jn(){const e=a;for(var n=[],t=0;t<arguments[e(2073)];t++)n[t]=arguments[t];var o=hl(n);return rx(n,o)}function dn(e,n){var t=xn(e)?e:function(){return e},o=function(x){return x[_0x3847(1316)](t())};return new Nn(o)}function Sl(e){return e instanceof Date&&!isNaN(e)}var kl=yo(function(e){return function(t){const o=_0x3847;t===void 0&&(t=null),e(this),this[o(1638)]="Timeout has occurred",this[o(1877)]=o(437),this[o(1564)]=t}});function Il(e,n){const t=a;var o=Sl(e)?{first:e}:{each:e},x=o[t(1061)],r=o[t(1952)],i=o[t(2284)],c=i===void 0?Pl:i,u=o.scheduler,d=u===void 0?ul:u,s=o[t(721)],f=s===void 0?null:s;if(x==null&&r==null)throw new TypeError(t(449));return mt(function(g,h){const m=t;var b,v,M=null,y=0,w=function(z){v=it(h,d,function(){try{b.unsubscribe(),vt(c({meta:f,lastValue:M,seen:y})).subscribe(h)}catch(C){h.error(C)}},z)};b=g[m(1787)](wt(h,function(z){v?.[m(1096)](),y++,h.next(M=z),r>0&&w(r)},void 0,void 0,function(){const z=m;!v?.[z(1661)]&&v?.[z(1096)](),M=null})),!y&&w(x!=null?typeof x===m(1421)?x:+x-d.now():r)})}function Pl(e){throw new kl(e)}function ix(e,n){return mt(function(t,o){var x=0;t.subscribe(wt(o,function(r){o[_0x3847(1357)](e.call(n,r,x++))}))})}function jl(e,n,t,o,x,r,i,c){var u=[],d=0,s=0,f=!1,g=function(){f&&!u[_0x3847(2073)]&&!d&&n.complete()},h=function(b){return d<o?m(b):u.push(b)},m=function(b){d++;var v=!1;vt(t(b,s++)).subscribe(wt(n,function(M){n.next(M)},function(){v=!0},void 0,function(){const M=_0x3847;if(v)try{d--;for(var y=function(){var z=u[_0x3847(1980)]();i||m(z)};u[M(2073)]&&d<o;)y();g()}catch(w){n[M(1316)](w)}}))};return e.subscribe(wt(n,h,function(){f=!0,g()})),function(){}}function zo(e,n,t){const o=a;return t===void 0&&(t=1/0),xn(n)?zo(function(x,r){return ix(function(i,c){return n(x,i,r,c)})(vt(e(x,r)))},t):(typeof n===o(1421)&&(t=n),mt(function(x,r){return jl(x,r,e,t)}))}function cx(e){return mt(function(n,t){const o=_0x3847;var x=null,r=!1,i;x=n[o(1787)](wt(t,void 0,void 0,function(c){const u=o;i=vt(e(c,cx(e)(n))),x?(x[u(1096)](),x=null,i.subscribe(t)):r=!0})),r&&(x.unsubscribe(),x=null,i[o(1787)](t))})}function Al(e,n,t){var o=xn(e)||n||t?{next:e,error:n,complete:t}:e;return o?mt(function(x,r){const i=_0x3847;var c;(c=o[i(1787)])===null||c===void 0||c[i(1780)](o);var u=!0;x[i(1787)](wt(r,function(d){const s=i;var f;(f=o[s(1357)])===null||f===void 0||f[s(1780)](o,d),r[s(1357)](d)},function(){const d=i;var s;u=!1,(s=o.complete)===null||s===void 0||s[d(1780)](o),r[d(1244)]()},function(d){const s=i;var f;u=!1,(f=o[s(1316)])===null||f===void 0||f[s(1780)](o,d),r[s(1316)](d)},function(){const d=i;var s,f;u&&((s=o[d(1096)])===null||s===void 0||s[d(1780)](o)),(f=o[d(838)])===null||f===void 0||f[d(1780)](o)}))}):Zr}function Co(e){const n=a;return encodeURIComponent((e||"")[n(1215)]()||n(673))}function El(e){const n=a;return e.eventType===n(2016)?e[n(1924)]+n(938)+Co(e[n(1798)]??""):e[n(1924)]+"::"+e[n(2121)]}function ui(e,n){return e+":"+n}class Vt{static instance;[a(1766)]=new Map;[a(1395)]=new Map;[a(894)]=new Map;nodeEventBindings=new Map;defaultRuntimeHandlers;constructor(){}static[a(496)](){const n=a;return!Vt[n(1850)]&&(Vt[n(1850)]=new Vt),Vt.instance}[a(645)](n){const t=a;this[t(894)][t(1010)](n.id,n)}unregisterEventBlock(n){const t=a;this[t(894)][t(929)](n)}[a(659)](n){const t=a;return this[t(894)][t(2250)](n)}[a(416)](n){const t=a;this[t(1978)]=n}[a(1942)](n){const t=a;if(!n)return;const o=this[t(1978)];this[t(1978)]={dataRequest:{...o?.[t(1549)],...n[t(1549)]},external:{...o?.external,...n[t(2016)]}}}[a(2117)](n){const t=a,o=this.defaultRuntimeHandlers;if(!(!o&&!n))return{dataRequest:{...o?.[t(1549)],...n?.dataRequest},external:{...o?.[t(2016)],...n?.external}}}disposeEventRootPipeline(n){const t=a,o=this[t(1395)][t(2250)](n.id);o&&(o[t(1096)](),this[t(1395)][t(929)](n.id)),this[t(1766)][t(929)](n.id)}[a(1176)](n){const t=a,o=El(n),x=this.nodeEventBindings[t(2250)](o);x&&x.id!==n.id&&this[t(876)](x),this[t(912)][t(1010)](o,n),!this.eventSubjects[t(2012)](n.id)&&this.createEventFlowPipeline(n)}[a(2095)](n,t,o){const x=a;if(t===x(2016)){const u=n+x(938)+Co(o??""),d=this[x(912)].get(u);d&&(this[x(876)](d),this[x(912)].delete(u));return}const r=n+"::"+t,i=ui(n,t),c=this.nodeEventBindings[x(2250)](r)??this[x(912)][x(2250)](i);c&&(this[x(876)](c),this[x(912)][x(929)](r),this[x(912)][x(929)](i))}[a(2104)](n){const t=a,o=[];this[t(912)].forEach((x,r)=>{const i=t;x[i(1924)]===n&&o[i(1371)]({key:r,root:x})}),o[t(1935)](({key:x,root:r})=>{const i=t;this[i(876)](r),this[i(912)][i(929)](x)})}[a(2245)](n){const t=a,o=[];return this.nodeEventBindings[t(1935)](x=>{const r=t;x[r(1924)]===n&&o[r(1371)](x)}),o}[a(511)](n,t,o){const x=a,r=n+"::"+t,i=this.nodeEventBindings[x(2250)](r)??this[x(912)][x(2250)](ui(n,t));if(!i||!i[x(1597)])return jn({success:!0,result:null,path:[],duration:0});if(!this[x(1766)][x(2250)](i.id))return dn(()=>new Error("Event flow not initialized for "+r));const u=Date[x(1969)](),d={...o,executionPath:o.executionPath||[],runtimeHandlers:this[x(2117)](o[x(1246)])};return this[x(1004)](i,d)[x(1122)](ix(s=>({success:!0,result:s,path:d[x(498)],duration:Date[x(1969)]()-u})),cx(s=>jn({success:!1,error:s[x(1638)]||"Event flow execution failed",path:d[x(498)],duration:Date.now()-u})))}emitExternal(n,t,o){const x=a,r=n+x(938)+Co(t),i=this.nodeEventBindings[x(2250)](r);if(!i||!i[x(1597)])return jn({success:!0,result:null,path:[],duration:0});if(!this[x(1766)].get(i.id))return dn(()=>new Error("Event flow not initialized for "+r));const u=Date[x(1969)](),d={...o,executionPath:o[x(498)]||[],runtimeHandlers:this.mergeRuntimeHandlers(o.runtimeHandlers)};return this.executeEventFlow(i,d)[x(1122)](ix(s=>({success:!0,result:s,path:d[x(498)],duration:Date.now()-u})),cx(s=>jn({success:!1,error:s[x(1638)]||x(786),path:d[x(498)],duration:Date[x(1969)]()-u})))}[a(1493)](n){const t=a,o=new Jr;this[t(1766)][t(1010)](n.id,o)}[a(1004)](n,t){const o=a,{nodes:x,edges:r}=n[o(997)];if(x[o(2073)]===0)return jn(null);const i=x[o(526)](c=>c[o(1767)][o(2073)]===0);return i[o(2073)]===0?dn(()=>new Error(o(1496))):this[o(1628)](i,x,r,t,{})}[a(1628)](n,t,o,x,r){const i=a;if(n[i(2073)]===0)return jn(r);const c=n.map(u=>this.executeSingleFlowNode(u,x,r)[i(1122)](Al(d=>{const s=i;r[u.id]=d,x.executionPath[s(1371)](u.id)})));return rx(c).pipe(zo(u=>u,1),ix(()=>{const u=i,d=new Set;return n[u(1935)](f=>{f.outputs.forEach(g=>{const h=_0x3847,m=t.find(b=>b.id===g);m&&m[h(1767)][h(1153)](v=>r[v]!==void 0)&&d[h(848)](g)})}),t[u(526)](f=>d[u(2012)](f.id))}),zo(u=>{const d=i;return u[d(2073)]>0?this[d(1628)](u,t,o,x,r):jn(r)}),Il(3e4),cx(u=>(console.error("Event flow execution error:",u),dn(()=>u))))}[a(985)](n){const t=a;return this[t(894)].get(n[t(1416)])??n[t(1100)][t(1774)]}[a(859)](n,t,o){const x=a;return n[x(1513)](/\{\{\s*([^}]+?)\s*\}\}/g,(r,i)=>{const c=x,u=String(i).trim();if(u.startsWith("$")){const s=this[c(854)](o,u[c(1243)](1));return s==null?"":String(s)}const d=t[u];return d==null?"":String(d)})}[a(1997)](n,t,o){const x=a,r=n.builtinId;if(!r)return dn(()=>new Error(x(1346)));if(r==="antdMessage"){const i=n.builtinConfig??{},c=String(i[x(1118)]??""),u=i[x(1852)]??x(1564),d=i[x(600)],s=this[x(859)](c,o,t);if(!s.trim())return dn(()=>new Error("Message 提示内容为空"));try{const f={type:u,content:s};if(d!=null&&d!==""){const g=Number(d);!Number.isNaN(g)&&(f[x(600)]=g)}return p[x(1638)][x(1047)](f),jn({ok:!0,builtinId:r,content:s,level:u})}catch(f){return dn(()=>f)}}if(r==="switchCanvas"){const i=n[x(1276)]??{},c=String(i[x(1298)]??"")[x(1215)]();if(!c)return dn(()=>new Error(x(1020)));const u=t[x(1672)]??t[x(1289)];if(!u)return dn(()=>new Error("当前环境不支持画布切换"));try{return u(c),jn({ok:!0,builtinId:r,targetCanvasId:c,withHistory:!!t.jumpToCanvas})}catch(d){return dn(()=>d)}}return dn(()=>new Error(x(760)+String(r)))}invokeRuntimeHandler(n,t,o){try{const x=n(t,o);return x instanceof Promise?rx(x):jn(x)}catch(x){return dn(()=>x)}}executeSingleFlowNode(n,t,o){const x=a,r=this[x(985)](n);if(!r)return dn(()=>new Error(x(1388)+n[x(1416)]));const i=this[x(2081)](n,t,o),c=r[x(842)]??x(1785);if(c===x(1549)){const u=(r.dataRequestKey||"")[x(1215)]();if(!u)return dn(()=>new Error(x(1675)));const d=t[x(1246)]?.[x(1549)]?.[u];return d?this[x(1740)](d,t,i):dn(()=>new Error("未注册 dataRequest 处理器: "+u))}if(c===x(2016)){const u=(r.externalHandlerKey||"")[x(1215)]();if(!u)return dn(()=>new Error(x(705)));const d=t[x(1246)]?.[x(2016)]?.[u];return d?this[x(1740)](d,t,i):dn(()=>new Error(x(1620)+u))}if(c===x(1111))return this[x(1997)](r,t,i);try{const u=new Function(x(694),x(2279),"args",r[x(1239)]),d=u(t[x(733)],t,i);return d instanceof Promise?rx(d):jn(d)}catch(u){return dn(()=>u)}}[a(2081)](n,t,o){const x=a,r={$event:t[x(1817)],$data:t[x(1100)],$node:t[x(733)]},{inputMapping:i}=n[x(1100)];return i&&Object[x(2057)](i)[x(1935)](([c,u])=>{const d=x;if(u[d(1941)]("$prev.")){const s=u[d(1513)](d(1269),"");r[c]=o[s]}else if(u[d(1941)]("$")){const s=u.slice(1);r[c]=this[d(854)](t,s)}else r[c]=u}),r}[a(854)](n,t){const o=a;return t.split(".")[o(2110)]((x,r)=>{if(x!==null&&typeof x===o(1130)&&r in x)return x[r]},n)}[a(1385)](){const n=a;this[n(1395)][n(1935)](t=>t[n(1096)]()),this.subscriptions[n(1245)](),this[n(1766)][n(1245)](),this.nodeEventBindings.clear()}}const qt=Vt[a(496)](),fi=({node:e,children:n,runtimeHandlers:t,flowContextData:o})=>{const x=a,{eventFlow:r,switchCanvas:i,jumpToCanvas:c}=sn(),u=D[x(1899)](null),d=D[x(2173)](()=>{const f=x;return r[f(1522)][f(526)](g=>g.bindNodeId===e.id&&g.enabled)},[r[x(1522)],e.id]),s=D.useCallback(f=>g=>{const h=_0x3847,m=d()[h(526)](v=>v.eventType===f);if(m[h(2073)]===0)return;f!==h(485)&&f!==h(940)&&g[h(666)](),g[h(462)]();const b=o&&typeof o===h(1130)?{...o}:{};m[h(1935)](v=>{const M=h;qt.emit(e.id,f,{triggerNode:e,originalEvent:g,data:b,runtimeHandlers:t,switchCanvas:i,jumpToCanvas:c})[M(1787)]({next:y=>{const w=M;!y[w(1955)]&&console[w(1316)](w(1458),y[w(1316)])},error:y=>{console.error(M(465),y)}})})},[d,e,t,o]);return D[x(2224)](()=>(d().forEach(g=>{qt[_0x3847(1176)](g)}),()=>{qt[_0x3847(2104)](e.id)}),[d,e.id]),D[x(2224)](()=>{const f=x,g=u.current;if(!g)return;const h={click:s(f(2258)),mousedown:s("mouseDown"),mouseup:s(f(891)),dblclick:s(f(1905)),mouseover:s(f(485)),mouseleave:s("mouseLeave"),mouseenter:s(f(1196)),contextmenu:s(f(1982))};return Object[f(2057)](h)[f(1935)](([m,b])=>{g.addEventListener(m,b,!0)}),()=>{const m=f;Object.entries(h)[m(1935)](([b,v])=>{g[m(662)](b,v,!0)})}},[s]),D[x(795)](n,{ref:f=>{const g=x;u[g(1205)]=f;const h=n.ref;typeof h=="function"?h(f):h&&g(1205)in h&&(h[g(1205)]=f)}})},{Text:bi}=p[a(1339)],hi=(e,n)=>{const t=a;if(!n||!e)return{value:void 0};if(Array[t(612)](e)){const o=e[t(1099)](x=>x[t(1901)]===n);if(o)return{value:o[t(845)],unit:o.unit}}else if(typeof e===t(1130)){const o=n.split(".");let x=e;for(const r of o){if(x===null||typeof x!==t(1130))return{value:void 0};x=x[r]}if(x!==void 0)return{value:x,unit:e[t(1983)]}}return{value:void 0}};function Yl(e){return Array[a(612)](e)}const Ul=(e,n,t)=>{const o=a,x=e[o(1118)]||{},{valueSourceCode:r,boundDatasetId:i,boundDatasetBindCode:c,boundDatasetBindValue:u}=x;if(!r)return{value:void 0};if(i){const d=n[o(1099)](s=>s.id===i);if(d){let s;Yl(d[o(1078)])?c!=null&&u!=null?s=d.sample[o(1099)](g=>g[c]===u)||{}:s={}:s=d[o(1078)];const f=t&&typeof t===o(1130)?{...s,...t}:s;return hi(f,r)}}return hi(t,r)},Ol=(e,n)=>{const t=a;if(e==null||e==="")return"";if(n===-1)return String(e);const o=Number(e);return isNaN(o)?String(e):o[t(1163)](n??2)},Gl=(e,n,t,o,x)=>{const r=a;switch(e[r(1939)]){case r(425):const i=e,c=i[r(627)],u=i.fillColor;let d=i[r(1199)];return u&&d&&d[r(1992)]("data:image/svg+xml")&&(e[r(1877)]==="矩形"?d=r(1964)+encodeURIComponent(r(2085)+u+r(1697)):e[r(1877)]==="圆形"?d="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><circle cx="40" cy="40" r="38" fill="'+u+'"/></svg>'):e[r(1877)]===r(2148)&&(d=r(1964)+encodeURIComponent(r(2085)+u+r(2049)))),l[r(641)]("div",{className:r(446),style:{backgroundColor:c},children:d?l.jsx(r(1219),{src:d,alt:e.name,style:{width:r(732),height:r(732),objectFit:"contain"}}):l[r(641)]("div",{className:r(847),children:l[r(641)](r(909),{className:r(2089),children:r(536)})})});case r(1155):const s=e,{label:f,value:g,valueSourceCode:h,unit:m,decimals:b,labelStyle:v,valueStyle:M,customStyle:y}=s.content||{},{value:w,unit:z}=h?Ul(s,x||[],n):{value:void 0,unit:void 0},C=w!==void 0?w:g,P=Ol(C,b),G=m||z||"";return l[r(873)](r(2048),{className:r(930),style:{...y},children:[f&&l.jsx(bi,{style:{fontSize:14,fontWeight:r(438),color:r(2083),textAlign:r(1322),...v},children:f}),P&&l[r(873)](bi,{style:{fontSize:14,color:r(1262),textAlign:"left",...M},children:[P,G?" "+G:""]})]});case r(1013):const U=e,{thickness:W=2,color:O=r(773),dashed:q=!1,lineType:H=r(q?972:1769),lineWeight:Y=W,startX:V=0,startY:N=0,endX:B=100,endY:L=0}=U.config||{},E=ee=>{const _=r,$=Math[_(1425)](Y,1);switch(ee){case _(1769):return"";case"dashed":return $*8+","+$*4;case _(1571):return $*12+","+$*3+","+$*2+","+$*3;case _(1213):return $*12+","+$*3+","+$*2+","+$*3+","+$*2+","+$*3;case"dot":return $+","+$*3;case _(1788):return $*8+","+$*3+","+$+","+$*3;default:return""}},j=E(H),I=t?r(1262):O;return l[r(641)]("div",{className:"w-full h-full relative",style:{overflow:r(656)},children:l[r(873)](r(962),{className:r(1410),width:r(732),height:r(732),style:{overflow:r(656),pointerEvents:r(1895)},children:[l[r(641)](r(2006),{x1:V,y1:N,x2:B,y2:L,stroke:"transparent",strokeWidth:Math.max(Y,10),strokeLinecap:r(1958),strokeLinejoin:"round",style:{pointerEvents:r(2207),cursor:"pointer"}}),l.jsx("line",{x1:V,y1:N,x2:B,y2:L,stroke:I,strokeWidth:Y,strokeDasharray:j,strokeLinecap:r(1958),strokeLinejoin:r(1958),style:{pointerEvents:"none"}})]})});case r(1202):const J=e;return J[r(1529)]?J[r(1529)]({}):l.jsx(r(2048),{className:r(1946),children:l[r(641)](r(909),{className:r(2089),children:"自定义组件"})});default:return l[r(641)](r(2048),{className:r(1946),children:l.jsx(r(909),{className:r(2089),children:r(1102)})})}},Hl=({node:e,isSelected:n=!1,onClick:t,onMouseDown:o,data:x,onUpdateNode:r,scale:i=1,enableEventFlow:c=!1,eventFlowData:u,readonly:d=!1})=>{const s=a,{normalStyle:f,controlInfo:g}=e,{isClickable:h,isDraggable:m,isResizable:b}=g,v=e[s(1472)],M=sn(te=>te[s(987)]),y=sn(te=>te.updateNode),w=sn(te=>te[s(648)][s(1522)]),z=D[s(1970)](()=>{const te=s;return c?w.some(pe=>pe[te(1924)]===e.id&&pe.enabled&&(pe[te(2121)]===te(2258)||pe[te(2121)]===te(2182)||pe[te(2121)]===te(891)||pe[te(2121)]==="doubleClick")):!1},[w,e.id,c]),C=D[s(1899)](t);D[s(2224)](()=>{const te=s;C[te(1205)]=t},[t]);const[P,G]=D[s(1115)](null),U=D.useRef(null),W=D[s(1899)](null),O=D[s(1899)](null),q=D[s(1899)](null),H=D[s(1899)](null),[Y,V]=D[s(1115)](null),N=D[s(1899)](null),B=D[s(1899)](null),L=D.useMemo(()=>{const te=s,pe=e[te(1472)][te(665)];if(pe[te(2073)]===0)return;const Ce=Ar(pe,x,M);return Ce||pe[0]},[e[s(1472)][s(665)],x,M]),E=D[s(1899)](e.contentInfo[s(1090)]);D.useEffect(()=>{const te=s;E[te(1205)]=e[te(1472)][te(1090)]},[e.id]),D[s(2224)](()=>{const te=s,pe=L?.id;pe!==void 0&&E[te(1205)]!==pe&&(E.current=pe,y(e.id,{contentInfo:{...e[te(1472)],currentStatusId:pe}}))},[L?.id,e.id,y]);const j=L?.[s(1200)],I=D[s(1970)](()=>{const te=s;if(!L)return;const pe=L[te(959)]!=null?String(L[te(959)])[te(1215)]():"",Ce=pe?M[te(1099)](ke=>ke.id===pe):void 0;if(!Ce)return;const me=lo(Ce,x,L[te(1031)],L.boundDatasetBindValue),ne=me[te(1075)];return typeof ne===te(955)?ne[te(1215)]():void 0},[L,x,M]),J=d||c,ee=D[s(1970)](()=>{const te=s;if(!J||!I)return;const pe=(I===te(905)||I===te(1515))&&L?.animation?.[te(1939)]===te(1747);switch(I){case"优秀":case"良好":return{border:te(1895),color:""};case te(905):case te(1515):{const Ce=I===te(905)?"rgb(255, 96, 0)":"rgb(255, 23, 23)";return pe?{border:te(1414)+Ce,color:Ce}:{border:te(1895),color:""}}default:return}},[I,J,L?.[s(1516)]?.[s(1939)]]),_=j?.[s(1939)]===s(1013),$=_?j[s(678)]:null,re=f[s(1632)]??1,ue=(f.width||100)*re,we=(f[s(863)]||100)*re,ze=D[s(2173)](()=>{const te=s,pe=H[te(1205)]?.closest(te(458));if(!pe)return i;const Ce=pe.getBoundingClientRect(),me=parseFloat(pe[te(501)][te(2272)]);return me?Ce[te(2272)]/me:i},[i]),de=D[s(2173)]((te,pe)=>{const Ce=s;te[Ce(462)](),te[Ce(666)]();const me=$?.[Ce(1025)]||0,ne=$?.[Ce(1581)]||0,ke=$?.[Ce(1602)]||0,Ve=$?.[Ce(2041)]||0,Oe=f.x||0,qe=f.y||0,Xe=Math[Ce(1425)](($?.[Ce(566)]||$?.[Ce(1708)]||2)*2,4),Ke=Math.min(me,ke),Ue=Math[Ce(1449)](ne,Ve),Ge=Math[Ce(1425)](me,ke),cn=Math[Ce(1425)](ne,Ve),Qe=Math.max(Ge-Ke,Xe),en=Math.max(cn-Ue,Xe);U.current={mouseX:te[Ce(2179)],mouseY:te[Ce(550)],startX:me,startY:ne,endX:ke,endY:Ve,nodeX:Oe,nodeY:qe};const nn=Math.min(me,ke),on=Math.min(ne,Ve);O[Ce(1205)]={nodeX:Oe+nn,nodeY:qe+on,width:Qe,height:en,startX:me-nn,startY:ne-on,endX:ke-nn,endY:Ve-on},W[Ce(1205)]=L||null,G(pe)},[$,f.x,f.y,L]);D[s(2224)](()=>{const te=s;if(!P||!_||!$||!r)return;const pe=me=>{const ne=_0x3847,ke=U[ne(1205)];if(!ke||!H[ne(1205)])return;const Ve=ze(),Oe=(me[ne(2179)]-ke[ne(889)])/Ve,qe=(me.clientY-ke[ne(1635)])/Ve;let Xe=ke.startX,Ke=ke.startY,Ue=ke[ne(1602)],Ge=ke[ne(2041)],cn=ke[ne(749)],Qe=ke[ne(736)];P===ne(1808)?(Xe=ke[ne(1025)]+Oe,Ke=ke.startY+qe,Xe<0&&(cn=ke[ne(749)]+Xe,Ue=ke[ne(1602)]-Xe,Xe=0),Ke<0&&(Qe=ke[ne(736)]+Ke,Ge=ke.endY-Ke,Ke=0)):(Ue=ke[ne(1602)]+Oe,Ge=ke[ne(2041)]+qe,Ue<0&&(cn=ke[ne(749)]+Ue,Xe=ke[ne(1025)]-Ue,Ue=0),Ge<0&&(Qe=ke[ne(736)]+Ge,Ke=ke[ne(1581)]-Ge,Ge=0));const en=Math[ne(1425)](($.lineWeight||2)*2,4),nn=Math[ne(1449)](Xe,Ue),on=Math.min(Ke,Ge),Kn=Math.max(Xe,Ue),Gn=Math[ne(1425)](Ke,Ge),Sn=he(cn+nn),un=he(Qe+on),pn=he(Xe-nn),ln=he(Ke-on),Ln=he(Ue-nn),kn=he(Ge-on),ut=Math[ne(1958)](Math.max(Kn-nn,en)),$n=Math.round(Math[ne(1425)](Gn-on,en));O[ne(1205)]={nodeX:Sn,nodeY:un,width:ut,height:$n,startX:pn,startY:ln,endX:Ln,endY:kn};const zn=H[ne(1205)];zn.style[ne(1322)]=Sn+"px",zn.style.top=un+"px",zn[ne(501)][ne(2272)]=ut+"px",zn.style[ne(863)]=$n+"px",zn[ne(2252)](ne(2092))[ne(1935)](ft=>{const kt=ne;ft[kt(2278)]("x1",String(pn)),ft[kt(2278)]("y1",String(ln)),ft.setAttribute("x2",String(Ln)),ft[kt(2278)]("y2",String(kn))});const et=zn[ne(525)]('[data-handle="start"]'),St=zn.querySelector('[data-handle="end"]');et&&(et[ne(501)].left=pn-6+"px",et[ne(501)][ne(960)]=ln-6+"px"),St&&(St.style[ne(1322)]=Ln-6+"px",St[ne(501)].top=kn-6+"px")},Ce=()=>{const me=_0x3847,ne=O[me(1205)];if(!ne||!r){G(null),U.current=null,O.current=null,W[me(1205)]=null;return}const ke=sn[me(488)]()[me(1687)][me(1099)](Ue=>Ue.id===e.id),Ve=ke?.[me(1472)][me(665)]??e[me(1472)][me(665)],Oe=W[me(1205)],qe=Oe?.id??Ve.find(Ue=>Ue[me(1200)][me(1939)]===me(1013))?.id,Xe=Ve[me(1913)](Ue=>{const Ge=me;if(Ue[Ge(1200)][Ge(1939)]!==Ge(1013)||Ue.id!==qe)return Ue;const cn=Ue[Ge(1200)];return{...Ue,material:{...cn,config:{...cn.config,startX:he(ne.startX),startY:he(ne[Ge(1581)]),endX:he(ne[Ge(1602)]),endY:he(ne[Ge(2041)])}}}}),Ke=ke?.[me(1472)]??v;r(e.id,{normalStyle:{x:he(ne[me(749)]),y:he(ne[me(736)]),width:Math[me(1958)](ne[me(2272)]),height:Math[me(1958)](ne.height)},contentInfo:{...Ke,statusList:Xe}}),G(null),U.current=null,O[me(1205)]=null,W[me(1205)]=null};return window.addEventListener(te(1041),pe),window[te(824)](te(2232),Ce),()=>{const me=te;window[me(662)]("mousemove",pe),window[me(662)]("mouseup",Ce)}},[P,_,$,e.id,f,v,e.contentInfo.statusList,r,ze]),D[s(2224)](()=>{const te=s;if(!Y||!r)return;const pe=me=>{const ne=_0x3847;if(!H[ne(1205)])return;const ke=ze(),Ve=(me[ne(2179)]-Y[ne(1025)])/ke,Oe=(me.clientY-Y[ne(1581)])/ke,qe=Y[ne(761)],Xe=qe*Math.PI/180,Ke=Math.cos(Xe),Ue=Math[ne(1135)](Xe),Ge=Ve*Ke+Oe*Ue,cn=-Ve*Ue+Oe*Ke;let Qe=Y[ne(2247)],en=Y[ne(1037)],nn=Y.startNodeX,on=Y[ne(1123)];switch(Y[ne(508)]){case"se":Qe=Math.max(20,Y[ne(2247)]+Ge),en=Math[ne(1425)](20,Y.startHeight+cn);break;case"sw":Qe=Math[ne(1425)](20,Y[ne(2247)]-Ge),en=Math[ne(1425)](20,Y[ne(1037)]+cn),nn=Y[ne(1836)]+(Y[ne(2247)]-Qe);break;case"ne":Qe=Math.max(20,Y[ne(2247)]+Ge),en=Math.max(20,Y[ne(1037)]-cn),on=Y[ne(1123)]+(Y[ne(1037)]-en);break;case"nw":Qe=Math[ne(1425)](20,Y.startWidth-Ge),en=Math.max(20,Y.startHeight-cn),nn=Y[ne(1836)]+(Y[ne(2247)]-Qe),on=Y.startNodeY+(Y[ne(1037)]-en);break}if(qe!==0){let Gn=0,Sn=0,un=0,pn=0;switch(Y.corner){case"se":Gn=0,Sn=0,un=0,pn=0;break;case"sw":Gn=Y.startWidth,Sn=0,un=Qe,pn=0;break;case"ne":Gn=0,Sn=Y.startHeight,un=0,pn=en;break;case"nw":Gn=Y.startWidth,Sn=Y.startHeight,un=Qe,pn=en;break}const ln=Gn-Y[ne(2247)]/2,Ln=Sn-Y[ne(1037)]/2,kn=ln*Ke-Ln*Ue,ut=ln*Ue+Ln*Ke,$n=un-Qe/2,zn=pn-en/2,o0=$n*Ke-zn*Ue,et=$n*Ue+zn*Ke;nn=Y[ne(1836)]+Y[ne(2247)]/2-Qe/2+kn-o0,on=Y.startNodeY+Y[ne(1037)]/2-en/2+ut-et}q[ne(1205)]={x:he(nn),y:he(on),width:Math.round(Qe),height:Math[ne(1958)](en)};const Kn=H[ne(1205)];Kn[ne(501)].left=he(nn)+"px",Kn.style.top=he(on)+"px",Kn[ne(501)][ne(2272)]=Math[ne(1958)](Qe)+"px",Kn[ne(501)].height=Math[ne(1958)](en)+"px"},Ce=()=>{const me=_0x3847,ne=q[me(1205)];ne&&r(e.id,{normalStyle:{...f,x:he(ne.x),y:he(ne.y),width:Math[me(1958)](ne.width),height:Math[me(1958)](ne[me(863)])}}),V(null),q.current=null};return window[te(824)](te(1041),pe),window.addEventListener(te(2232),Ce),()=>{const me=te;window[me(662)](me(1041),pe),window[me(662)](me(2232),Ce)}},[Y,r,e.id,f,ze]);const F=D[s(2173)]((te,pe)=>{const Ce=s;te.stopPropagation(),te.preventDefault(),V({corner:pe,startX:te[Ce(2179)],startY:te.clientY,startWidth:f[Ce(2272)]||100,startHeight:f[Ce(863)]||100,startNodeX:f.x||0,startNodeY:f.y||0,startRotate:f[Ce(1646)]||0})},[f.width,f[s(863)],f.x,f.y,f[s(1646)]]),fe=D[s(2173)](te=>{const pe=s;te[pe(462)](),te.preventDefault();const Ce=H.current?.getBoundingClientRect();if(!Ce)return;N.current={startX:te[pe(2179)],startY:te[pe(550)],startAngle:f.rotate||0,centerX:Ce.left+Ce[pe(2272)]/2,centerY:Ce[pe(960)]+Ce[pe(863)]/2};const me=f[pe(1274)]||"",ne=Oe=>{const qe=pe;H[qe(1205)]&&(H.current[qe(501)][qe(1274)]=me?"rotate("+Oe+"deg) "+me:qe(2096)+Oe+qe(632))};ne(f[pe(1646)]||0);const ke=Oe=>{const qe=pe;if(!N[qe(1205)])return;const Xe=Oe.clientX-N.current.centerX,Ke=Oe.clientY-N[qe(1205)].centerY;let Ge=(Math[qe(2050)](Ke,Xe)*(180/Math.PI)+90)%360;Ge<0&&(Ge+=360),B[qe(1205)]=Ge,ne(Ge)},Ve=()=>{const Oe=pe,qe=B[Oe(1205)]??N[Oe(1205)][Oe(864)];if(B.current=null,N[Oe(1205)]=null,r){const Xe=e[Oe(893)];r(e.id,{normalStyle:{...Xe,rotate:Math[Oe(1958)](qe)}})}H[Oe(1205)]?.[Oe(501)][Oe(1271)]("transform"),window[Oe(662)]("mousemove",ke),window[Oe(662)](Oe(2232),Ve)};window.addEventListener("mousemove",ke),window[pe(824)]("mouseup",Ve)},[f[s(1646)],f[s(1274)],r,e.id,e.normalStyle]),ye=e.type===s(943),A=f[s(1274)]||"",X=f.rotate||0,ce=d||c,ae=ce?L?.[s(1516)]:void 0,De=(I===s(905)||I===s(1515))&&ae?.[s(1939)]===s(1747),Me=ae?.[s(600)]??1e3,je=e.id[s(1513)](/[^a-zA-Z0-9]/g,"");D.useLayoutEffect(()=>{const te=s,pe="node-health-grade-blink-"+je,Ce="style-"+pe,me=document[te(1706)](Ce);if(me&&me[te(1805)](),!De||!ee?.color)return()=>{const ke=te,Ve=document[ke(1706)](Ce);Ve&&Ve.remove()};const ne=document[te(2030)](te(501));return ne.id=Ce,ne[te(1060)]="@keyframes "+pe+te(1989)+ee.color+"; } 100% { border-color: transparent; } }",document[te(1333)][te(1580)](ne),()=>{const ke=te,Ve=document[ke(1706)](Ce);Ve&&Ve[ke(1805)]()}},[De,ee?.color,je]);const Te={position:s(1494),left:f.x||0,top:f.y||0,width:ue,height:we,background:ye?s(1223):f[s(1500)]||s(1223),backgroundImage:ye?void 0:f[s(1067)]?s(1423)+f.backgroundImage+")":void 0,backgroundSize:"cover",backgroundPosition:"center",padding:Array[s(612)](f[s(1634)])?f.padding[s(2219)](s(2233))+"px":f[s(1634)],margin:Array[s(612)](f.margin)?f.margin[s(2219)](s(2233))+"px":f[s(1313)],borderRadius:ye?void 0:f.borderRadius,border:_||ye?s(1895):n?s(454):ee?.[s(2214)]??f[s(2214)]??s(515),outline:n&&ye&&!_?"2px solid #1890ff":void 0,pointerEvents:s(2283),opacity:f[s(565)]??1,transform:_?A||void 0:A?s(2096)+X+s(608)+A:s(2096)+X+s(632),transformOrigin:"center center",zIndex:n?1e3:f[s(922)]??1,cursor:m&&!P?"move":s(h||z?1879:542),animation:De?s(1772)+je+" "+Me+s(1548):void 0,boxSizing:"border-box",overflow:s(n||_||ye?656:2141)},Pe={width:s(732),height:s(732),position:s(2033),transformOrigin:s(1261),...f.flipX||f.flipY?{transform:"scaleX("+(f[s(740)]?-1:1)+s(1660)+(f.flipY?-1:1)+")"}:{}},gn=$?{x:$[s(1025)]||0,y:$[s(1581)]||0}:{x:0,y:0},Ne=$?{x:$[s(1602)]||0,y:$[s(2041)]||0}:{x:0,y:0},_e=l.jsxs("div",{ref:H,"data-node-id":e.id,style:Te,onClick:te=>{const pe=s;console[pe(435)]("NodeRenderer onClick",e.id,pe(1650),h);const Ce=C.current;h&&Ce&&!P&&!Y&&!N[pe(1205)]&&(te[pe(462)](),Ce(te))},onMouseDown:te=>{m&&o&&!P&&o(te)},children:[n&&!_&&l[s(873)](l.Fragment,{children:[!ye&&l[s(873)](l[s(1365)],{children:[l[s(641)]("div",{className:s(1912),style:{zIndex:9999,pointerEvents:s(2283),cursor:"nw-resize",marginTop:s(428),marginLeft:s(428)},onMouseDown:te=>F(te,"nw"),title:s(1064)}),l[s(641)]("div",{className:s(1722),style:{zIndex:9999,pointerEvents:s(2283),cursor:s(2109),marginTop:s(428),marginRight:"-6px"},onMouseDown:te=>F(te,"ne"),title:s(1064)}),l.jsx(s(2048),{className:"absolute bottom-0 left-0 w-3 h-3 bg-blue-500 border-2 border-white rounded-full",style:{zIndex:9999,pointerEvents:"auto",cursor:"sw-resize",marginBottom:"-6px",marginLeft:s(428)},onMouseDown:te=>F(te,"sw"),title:s(1064)}),l[s(641)](s(2048),{className:s(2195),style:{zIndex:9999,pointerEvents:s(2283),cursor:s(2169),marginBottom:"-6px",marginRight:"-6px"},onMouseDown:te=>F(te,"se"),title:s(1064)})]}),l[s(641)](s(2048),{className:s(783),style:{zIndex:9999,pointerEvents:"auto",cursor:s(432),marginTop:"-20px",transform:s(669),boxShadow:s(2171)},onMouseDown:te=>fe(te),title:s(1765)}),l[s(641)]("div",{className:"absolute top-0 left-1/2 w-0.5 h-3 bg-green-500",style:{zIndex:9998,pointerEvents:s(1895),marginTop:s(1926),transform:s(669)}}),l[s(873)]("div",{className:s(978),children:[e.name," ",L?"("+L[s(1877)]+")":""]})]}),n&&_&&$&&r&&l.jsxs(l[s(1365)],{children:[l[s(641)](s(2048),{"data-handle":s(1808),className:"absolute w-3 h-3 bg-blue-500 border-2 border-white rounded-full cursor-move z-50",style:{left:gn.x-6,top:gn.y-6,boxShadow:s(2171)},onMouseDown:te=>de(te,s(1808)),title:s(1520)}),l[s(641)](s(2048),{"data-handle":"end",className:"absolute w-3 h-3 bg-blue-500 border-2 border-white rounded-full cursor-move z-50",style:{left:Ne.x-6,top:Ne.y-6,boxShadow:"0 0 4px rgba(0,0,0,0.3)"},onMouseDown:te=>de(te,s(621)),title:s(913)}),l[s(641)](s(2048),{className:s(978),children:e[s(1877)]})]}),l.jsxs("div",{style:_?void 0:Pe,className:_?s(1976):void 0,children:[l[s(641)](s(2048),{className:s(1976),children:j?l[s(641)](s(2048),{className:"w-full h-full",children:Gl(j,x,n,e,M)}):ye?null:l[s(641)](s(2048),{className:s(1189),children:s(460)})}),e[s(1939)]===s(943)&&e[s(1920)]&&l[s(641)]("div",{className:"absolute inset-0 pointer-events-none",children:e.children.map(te=>l[s(641)]("div",{className:s(2075),children:l[s(641)](Mo,{node:te,isSelected:!1,data:x,onUpdateNode:r,scale:i,enableEventFlow:c,eventFlowData:u,readonly:d})},te.id))})]})]});return c?l[s(641)](fi,{node:e,flowContextData:u,children:_e}):_e},Mo=D[a(767)](Hl,(e,n)=>{const t=a,o=e[t(694)],x=n[t(694)],r=o.id===x.id&&o[t(893)].x===x[t(893)].x&&o[t(893)].y===x.normalStyle.y&&o.normalStyle[t(2272)]===x[t(893)][t(2272)]&&o.normalStyle[t(863)]===x[t(893)][t(863)]&&o[t(893)][t(1646)]===x.normalStyle[t(1646)]&&o.normalStyle[t(740)]===x[t(893)][t(740)]&&o[t(893)][t(2146)]===x[t(893)][t(2146)],i=o[t(1472)]===x[t(1472)],c=JSON[t(1270)](e.eventFlowData??null)===JSON[t(1270)](n.eventFlowData??null),u=e[t(1778)]===n[t(1778)]&&e[t(1632)]===n[t(1632)]&&e[t(1323)]===n.enableEventFlow&&e[t(2211)]===n[t(2211)]&&c,d=h=>{const m=t,b=[];return h.contentInfo?.[m(665)]?.[m(1935)](v=>{const M=m;if(v[M(1200)]?.[M(1939)]===M(1013)){const y=v.material.config;b.push({statusId:v.id,startX:y?.[M(1025)]??0,startY:y?.[M(1581)]??0,endX:y?.[M(1602)]??100,endY:y?.[M(2041)]??0})}}),b},s=d(o),f=d(x);let g=!0;if(s.length!==f[t(2073)])g=!1;else for(let h=0;h<s.length;h++){const m=s[h],b=f[t(1099)](v=>v[t(1986)]===m.statusId);if(!b||m[t(1025)]!==b[t(1025)]||m[t(1581)]!==b[t(1581)]||m[t(1602)]!==b[t(1602)]||m[t(2041)]!==b[t(2041)]){g=!1;break}}return r&&i&&u&&g}),Tl=()=>{const e=a,{root:n,addSiblingGroup:t,removeSiblingGroup:o,updateSiblingGroup:x,addCanvasToSiblingGroup:r,removeCanvasFromSiblingGroup:i,moveCanvasInSiblingGroup:c,nextSiblingCanvas:u,prevSiblingCanvas:d,setActiveSiblingGroup:s}=sn(),f=n[e(1968)]??null,g=n.siblingGroups||[],[h,m]=D.useState(g[0]?.id??null),b=D[e(1970)](()=>g.find(O=>O.id===h)||null,[g,h]),[v,M]=D.useState(null),[y,w]=D[e(1115)](""),[z,C]=D[e(1115)](void 0),P=D[e(1970)](()=>{const O=e;return b?n[O(1592)][O(526)](q=>!b.canvasIds[O(1992)](q.id)):n.canvases},[n.canvases,b]),G=D[e(2173)](()=>{const O=t();m(O)},[t]),U=D[e(2173)](O=>{const q=e,H=y[q(1215)]();if(!H){p.message[q(1015)](q(1552));return}x(O,{name:H}),M(null),w("")},[y,x]),W=D[e(2173)](()=>{!b||!z||(r(b.id,z),C(void 0))},[b,z,r]);return l[e(873)](e(2048),{className:e(581),style:{minHeight:360},children:[l[e(873)](e(2048),{className:"flex-1 border border-gray-200 rounded p-2",style:{minWidth:220},children:[l[e(873)](e(2048),{className:e(1420),children:[l[e(641)](e(909),{className:e(701),children:e(2122)}),l[e(641)](p[e(653)],{type:e(1338),size:e(2055),icon:l[e(641)](be[e(1588)],{}),onClick:G,children:"新建"})]}),g[e(2073)]===0?l.jsx(p[e(1377)],{description:e(429),image:p[e(1377)][e(1779)],style:{marginTop:40}}):l[e(641)](p[e(1959)],{size:e(2055),dataSource:g,renderItem:O=>{const q=e,H=O.id===h,Y=v===O.id;return l[q(641)](p.List.Item,{onClick:()=>{Y||m(O.id)},style:{cursor:q(1879),background:H?q(674):void 0,padding:"6px 8px"},actions:[Y?l[q(641)](p.Button,{type:q(453),size:"small",onClick:V=>{V[q(462)](),U(O.id)},children:"保存"}):l[q(641)](p[q(1735)],{title:q(1971),children:l[q(641)](p[q(653)],{type:q(1815),size:q(2055),icon:l[q(641)](be.EditOutlined,{}),onClick:V=>{V[q(462)](),M(O.id),w(O.name)}})},q(1171)),l[q(641)](p[q(506)],{title:q(1563),okText:"删除",cancelText:"取消",okButtonProps:{danger:!0},onConfirm:V=>{if(V?.[q(462)](),o(O.id),h===O.id){const B=g.filter(L=>L.id!==O.id);m(B[0]?.id??null)}},onCancel:V=>V?.[q(462)](),children:l[q(641)](p[q(653)],{type:"text",size:q(2055),danger:!0,icon:l[q(641)](be[q(2163)],{}),onClick:V=>V[q(462)]()})},q(929))],children:Y?l.jsx(p.Input,{autoFocus:!0,size:q(2055),value:y,onChange:V=>w(V[q(966)][q(845)]),onPressEnter:()=>U(O.id),onClick:V=>V[q(462)](),style:{width:140}}):l.jsxs(q(909),{className:q(1534),children:[l[q(641)](q(909),{style:{fontWeight:H?600:400},children:O.name}),l.jsx(p[q(1006)],{color:"blue",children:O.canvasIds[q(2073)]}),f===O.id&&l.jsx(p[q(1006)],{color:q(1127),children:q(1625)})]})})}})]}),l[e(641)](e(2048),{className:e(1662),style:{minWidth:280},children:b?l[e(873)](l[e(1365)],{children:[l[e(873)](e(2048),{className:e(1420),children:[l[e(641)]("span",{className:e(701),children:e(738)}),l[e(873)](p.Space,{size:"small",children:[f===b.id?l[e(641)](p.Tooltip,{title:e(865),children:l[e(641)](p[e(653)],{size:e(2055),onClick:()=>s(null),children:e(1744)})}):l.jsx(p.Tooltip,{title:e(1392),children:l.jsx(p[e(653)],{size:e(2055),type:e(1338),ghost:!0,disabled:b[e(1008)].length===0,onClick:()=>s(b.id),children:e(1715)})}),l.jsx(p.Tooltip,{title:"翻到上一页(基于当前画布)",children:l[e(641)](p.Button,{size:"small",icon:l[e(641)](be[e(544)],{}),disabled:b[e(1008)][e(2073)]<2,onClick:()=>d(b.id)})}),l[e(641)](p.Tooltip,{title:e(1070),children:l[e(641)](p[e(653)],{size:e(2055),icon:l[e(641)](be[e(1928)],{}),disabled:b.canvasIds.length<2,onClick:()=>u(b.id)})})]})]}),l[e(873)]("div",{className:e(769),children:[l[e(641)](p[e(2080)],{placeholder:e(851),value:z,onChange:C,style:{flex:1},size:e(2055),disabled:P[e(2073)]===0,options:P[e(1913)](O=>({label:O.name,value:O.id}))}),l[e(641)](p[e(653)],{size:e(2055),type:"primary",icon:l[e(641)](be.PlusOutlined,{}),disabled:!z,onClick:W,children:"加入"})]}),b.canvasIds[e(2073)]===0?l.jsx(p[e(1377)],{description:e(2022),image:p.Empty[e(1779)],style:{marginTop:40}}):l[e(641)](p[e(1959)],{size:e(2055),dataSource:b.canvasIds,renderItem:(O,q)=>{const H=e,Y=n[H(1592)][H(1099)](B=>B.id===O),V=n.currentCanvasId===O,N=b[H(1008)][H(2073)];return l[H(641)](p.List.Item,{style:{padding:H(1796)},actions:[l[H(641)](p[H(1735)],{title:"上移",children:l[H(641)](p[H(653)],{type:H(1815),size:H(2055),icon:l.jsx(be[H(1035)],{}),disabled:q===0,onClick:()=>c(b.id,O,"up")})},"up"),l[H(641)](p[H(1735)],{title:"下移",children:l.jsx(p[H(653)],{type:H(1815),size:H(2055),icon:l[H(641)](be[H(468)],{}),disabled:q===N-1,onClick:()=>c(b.id,O,H(556))})},H(556)),l[H(641)](p[H(1735)],{title:H(992),children:l[H(641)](p.Button,{type:H(1815),size:H(2055),danger:!0,icon:l[H(641)](be.DeleteOutlined,{}),onClick:()=>i(b.id,O)})},H(1805))],children:l[H(873)](H(909),{className:H(1534),children:[l.jsx(p.Tag,{children:q+1}),l[H(641)](H(909),{style:{fontWeight:V?600:400},children:Y?.[H(1877)]??H(729)+O[H(1243)](0,6)+")"}),V&&l.jsx(p[H(1006)],{color:H(1127),children:"当前"})]})})}})]}):l.jsx(p[e(1377)],{description:e(812),image:p[e(1377)].PRESENTED_IMAGE_SIMPLE,style:{marginTop:60}})})]})},Vl=["#1890ff",a(820),a(1775),"#f5222d",a(1525),a(1081),"#13c2c2",a(543),a(1756),"#262626","#8c8c8c",a(773),a(444),a(844),a(1586),"#73d13d"],Wt=({value:e=a(1262),onChange:n,onChangeComplete:t})=>{const o=a,[x,r]=D[o(1115)](!1),[i,c]=D[o(1115)](e),u=D[o(1899)](null);D.useEffect(()=>{c(e)},[e]),D[o(2224)](()=>{const s=o,f=g=>{const h=_0x3847;u[h(1205)]&&!u.current[h(1216)](g[h(966)])&&(r(!1),t?.({toHexString:()=>i}))};return x&&document[s(824)](s(976),f),()=>document.removeEventListener(s(976),f)},[x,t,i]);const d=s=>{c(s),n?.({toHexString:()=>s})};return l.jsxs("div",{ref:u,style:{position:o(2033),display:"inline-block"},children:[l[o(641)](o(2048),{onClick:()=>r(!x),style:{width:28,height:28,backgroundColor:i,border:o(1016),borderRadius:4,cursor:"pointer"}}),x&&l[o(873)](o(2048),{style:{position:"absolute",top:32,left:0,zIndex:1e3,background:o(1022),padding:8,borderRadius:4,boxShadow:o(1718),border:o(1461)},children:[l[o(641)]("div",{style:{display:o(2125),gridTemplateColumns:o(1374),gap:4},children:Vl[o(1913)](s=>l[o(641)](o(2048),{onClick:()=>{d(s),r(!1),t?.({toHexString:()=>s})},style:{width:20,height:20,backgroundColor:s,border:i===s?"2px solid #1890ff":"1px solid #d9d9d9",borderRadius:2,cursor:o(1879)}},s))}),l[o(641)](o(1896),{type:o(660),value:i,onChange:s=>d(s[o(966)].value),onBlur:()=>t?.({toHexString:()=>i}),style:{width:"100%",marginTop:8,height:28,border:o(1016),borderRadius:4}})]})]})},{TextArea:ql}=p.Input;function Wl(e){const n=a;if(!e||!(e instanceof HTMLElement))return!1;const t=e.tagName;return!!(t===n(2023)||t===n(535)||t===n(557)||t===n(1607)||e[n(1940)]||e.closest(n(1631))||e.closest(n(1043))||e[n(686)](n(2010))||e[n(686)](n(1137)))}function Xl(e){const n=a,t=e[n(893)][n(1646)]||0,o=e.normalStyle[n(1274)]||"";return e[n(1472)]?.[n(665)]?.[n(1591)](r=>r[n(1200)].type===n(1013))??!1?o:o?n(2096)+t+n(608)+o:t?n(2096)+t+n(632):""}function Kl(e,n,t,o){const x=a,r=x(2157)+t+x(601)+o+x(2130);e[x(501)][x(1274)]=n?r+" "+n:r}function Zl(e,n,t,o,x){const r=a,i=he(t),c=he(o);e[r(501)].left=i+"px",e[r(501)][r(960)]=c+"px",n[r(1939)]===r(943)&&(e[r(501)].transform=x||"")}const gi=({defaultTestData:e,readonly:n=!1,backgroundImageUrl:t,initialViewportWidth:o,initialViewportHeight:x})=>{const r=a,i=D[r(1899)](null),c=D[r(1899)](null),u=D[r(1899)](null),{nodes:d,selectedNodeId:s,selectedNodeIds:f,mode:g,lineDrawing:h,viewport:m,canvas:b,root:v,setViewport:M,setCanvasConfig:y,addNode:w,selectNode:z,updateNode:C,removeNode:P,bringToFront:G,sendToBack:U,undo:W,redo:O,setMode:q,startLineDrawing:H,endLineDrawing:Y,cancelLineDrawing:V,addCanvas:N,removeCanvas:B,switchCanvas:L,updateCanvasName:E,exportCanvas:j,importCanvas:I,setSelectedNodeIds:J,eventFlow:ee,addEventRoot:_,addEventBlock:$}=sn(),[re,ue]=D.useState(!1),[,we]=D.useState({}),ze=D[r(1899)](g);D[r(2224)](()=>{ze.current=g},[g]),D[r(2224)](()=>{const k=r;q(k(n?2070:505))},[n,q]);const de=n&&o&&b[r(2272)]>0?Math[r(1449)](o/b[r(2272)],1):.5,F=5,fe=n&&o&&b[r(2272)]>0?de:1,ye=n&&o?r(839)+o+"-"+(x||r(2283))+r(1441)+b[r(2272)]+"-"+b.height:r(542),A=D.useRef(fe),X=D[r(1899)](!1),ce=D.useRef({x:0,y:0}),ae=D[r(1899)]({x:0,y:0,newX:0,newY:0}),De=D.useRef(null),Me=D.useRef(""),[je,Te]=D[r(1115)]({start:null,end:null,isDrawing:!1}),[Pe,gn]=D[r(1115)]({start:null,end:null}),Ne=f,_e=J;D[r(1899)](!1);const[te,pe]=D[r(1115)](!1),[Ce,me]=D[r(1115)](!1),[ne,ke]=D.useState(()=>JSON[r(1270)](e??null,null,2)),Ve=D[r(1970)](()=>{const k=r;if(!Ce)return e;try{return JSON[k(911)](ne)}catch{return e}},[ne,e,Ce]),Oe=D[r(1970)](()=>{const k=r,S=Ve;if(S!==null&&typeof S===k(1130))return S;if(S!==void 0)return{_payload:S}},[Ve]),qe=D[r(1970)](()=>{const k=r,S=Ve;return S!==null&&typeof S===k(1130)&&!Array[k(612)](S)?S:Array[k(612)](S)?{_telemetryRows:S}:S==null?{}:{_payload:S}},[Ve]),Xe=D[r(2173)](()=>{const k=r;let S=e;if(Ce)try{S=JSON.parse(ne)}catch{S=e}ke(JSON[k(1270)](S??null,null,2)),pe(!0)},[ne,e,Ce]),[Ke,Ue]=D[r(1115)](!1),[Ge,cn]=D[r(1115)](!1),[Qe,en]=D[r(1115)](""),[nn,on]=D[r(1115)](!1),Kn=D[r(2173)](()=>{const k=r;try{const S=j(),Z=JSON[k(1270)](S,null,2),R=k(1861)+encodeURIComponent(Z),Q="canvas_"+S[k(540)][k(1877)]+"_"+Date[k(1969)]()+k(2131),T=document[k(2030)]("a");T[k(2278)](k(2090),R),T.setAttribute(k(1666),Q),T.click(),p[k(1638)].success("画布导出成功!")}catch{p[k(1638)][k(1316)]("画布导出失败")}},[j]),Gn=D[r(2173)](()=>{const k=r;try{const S=JSON.parse(Qe);nn?I(S):I(S,v[k(633)]||void 0),cn(!1),en(""),on(!1),p.message[k(1955)](k(537))}catch{p[k(1638)][k(1316)](k(1749))}},[Qe,nn,I,v[r(633)]]),Sn=D[r(2173)](k=>{const S=r,Z=new FileReader;return Z[S(1894)]=R=>{const Q=S;try{const T=R[Q(966)]?.[Q(1106)],K=JSON.parse(T);nn?I(K):I(K,v[Q(633)]||void 0),p.message[Q(1955)](Q(537)),cn(!1),on(!1)}catch{p[Q(1638)][Q(1316)](Q(1227))}},Z.readAsText(k),!1},[nn,I,v[r(633)]]),[un,pn]=D[r(1115)](!1),ln=D[r(2173)]((k,S)=>{const Z=r;if(!c.current)return{x:0,y:0};const R=c[Z(1205)][Z(445)](),Q=k-R.left,T=S-R.top,K=R[Z(2272)]/b.width,se=R[Z(863)]/b[Z(863)],oe=Q/K,xe=T/se;return{x:he(oe),y:he(xe)}},[b.width,b.height]),Ln=D[r(2173)]((k,S)=>ln(k,S),[ln]),kn=D.useCallback((k,S,Z=!0)=>{const R=r;if(!h.material)return;const Q=h[R(1200)],T=Q[R(678)]||{},K=T[R(566)]||T.thickness||2,se=he(Math.min(k.x,S.x)),oe=he(Math[R(1449)](k.y,S.y)),xe=he(k.x-se),le=he(k.y-oe),ve=he(S.x-se),Ie=he(S.y-oe),Be=Math.max(K*2,4),Le=Math[R(1425)](Math[R(1014)](ve-xe),Be),We=Math[R(1425)](Math[R(1014)](Ie-le),Be),He=S.x-k.x,ie=S.y-k.y,ge=Math[R(1958)](Math[R(2050)](ie,He)*(180/Math.PI)),Ze={...Q,id:Ae[R(558)](),config:{color:T[R(660)],lineWeight:K,thickness:K,lineType:T[R(1194)],startX:xe,startY:le,endX:ve,endY:Ie,rotate:ge}},Fe={id:Ae.nanoid(),name:Q[R(1877)]+"_"+Date[R(1969)](),type:"normal",normalStyle:{width:Le,height:We,x:se,y:oe,background:R(1223)},contentInfo:{statusList:[ho(Ze)],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0}};if(w(Fe,!1),Z){const bn={x:S.x,y:S.y};Te({start:bn,end:{...bn},isDrawing:!0})}else Te({start:null,end:null,isDrawing:!1}),Y()},[h[r(1200)],w,Y]),ut=D[r(2173)](()=>{const k=r,S=i[k(1205)]?.[k(1850)];if(!S)return;const Z=S.transformState;A[k(1205)]=Z[k(1632)],M({scale:Z[k(1632)],positionX:0,positionY:0})},[M]),$n=D.useCallback(k=>{const S=r;X.current||g!=="box-select"&&(k[S(966)]===c.current||k[S(966)][S(1716)]?.[S(540)]===S(1231))&&(z(null),_e([]))},[z,g]),zn=D[r(2173)](k=>{const S=r;if(k[S(1201)]===0){if(g==="line-draw"&&h[S(1200)]){k[S(462)]();const Z=ln(k[S(2179)],k[S(550)]);je.isDrawing?je[S(1808)]&&kn(je[S(1808)],Z,!0):Te({start:Z,end:Z,isDrawing:!0});return}if(g===S(2244)&&!un){const Z=Ln(k.clientX,k[S(550)]);gn({start:Z,end:Z}),_e([]),z(null),k[S(666)](),k[S(462)]()}}},[g,h[r(1200)],je[r(1524)],je[r(1808)],un,kn,ln,Ln]),o0=D[r(2173)](k=>{const S=r;if(!(g!==S(1113)||!h.material)&&je[S(1524)]&&je.start){const Z=ln(k[S(2179)],k.clientY);kn(je[S(1808)],Z,!1)}},[g,h[r(1200)],je[r(1524)],je[r(1808)],kn,ln]),et=D.useCallback(k=>{const S=r;k[S(666)](),k[S(592)][S(790)]=S(1098),ue(!0)},[]),St=D[r(2173)](k=>{k[r(666)](),ue(!1)},[]),ft=D[r(2173)](k=>{const S=r;if(k.preventDefault(),ue(!1),!(!c[S(1205)]||g!==S(505)&&g!==S(2244)))try{const Z=k.dataTransfer[S(1930)](S(1393));if(!Z)return;const R=JSON[S(911)](Z),Q=ln(k[S(2179)],k[S(550)]),T=Q.x-50,K=Q.y-50,se=Or(T,K,R);w(se),_e([se.id])}catch(Z){console[S(1316)](S(751),Z)}},[g,w,ln,_e]),kt=D.useCallback((k,S)=>{const Z=r;g!=="select"&&g!==Z(2244)||!S[Z(1673)].isDraggable||(k[Z(462)](),z(S.id),X[Z(1205)]=!0,ce[Z(1205)]={x:k[Z(2179)],y:k[Z(550)]},ae[Z(1205)]={x:S.normalStyle.x||0,y:S.normalStyle.y||0,newX:S[Z(893)].x||0,newY:S[Z(893)].y||0},De[Z(1205)]=S,Me[Z(1205)]=Xl(S),k.preventDefault())},[g,z]),V0=D[r(2173)](k=>{const S=r,Z=Ne[S(2073)]>0?Ne:s?[s]:[];Z.length!==0&&Z[S(1935)](R=>{const Q=S,T=d[Q(1099)]($e=>$e.id===R);if(!T)return;const K=T[Q(1472)][Q(665)].find($e=>$e[Q(1200)][Q(1939)]==="LINE");if(!K)return;const se=K[Q(1200)],oe=se.config||{},xe=oe[Q(1025)]??0,le=oe[Q(1581)]??0,ve=oe[Q(1602)]??100,Ie=oe.endY??0,Be=ve-xe,Le=Ie-le,We=Math.sqrt(Be*Be+Le*Le);let He=ve,ie=Ie;if(k==="horizontal"){const $e=Be>=0?1:-1;He=xe+$e*We,ie=le}else{const $e=Le>=0?1:-1;He=xe,ie=le+$e*We}const ge=oe[Q(566)]||oe[Q(1708)]||2,Ze=Math.max(ge*2,4),Fe=Math[Q(1449)](xe,He),bn=Math.min(le,ie),tt=Math[Q(1425)](xe,He),J0=Math[Q(1425)](le,ie),c0=he((T[Q(893)].x||0)+Fe),a0=he((T.normalStyle.y||0)+bn),xt=he(xe-Fe),Pt=he(le-bn),jt=he(He-Fe),At=he(ie-bn),Et=Math[Q(1958)](Math[Q(1425)](tt-Fe,Ze)),s0=Math.round(Math[Q(1425)](J0-bn,Ze)),Yt=jt-xt,Ut=At-Pt,l0=Math[Q(1958)](Math[Q(2050)](Ut,Yt)*(180/Math.PI)),In=T.contentInfo[Q(665)][Q(1913)]($e=>{const ht=Q;return $e.id!==K.id?$e:{...$e,material:{...$e[ht(1200)],config:{...$e.material.config,startX:xt,startY:Pt,endX:jt,endY:At,rotate:l0}}}});C(R,{normalStyle:{...T.normalStyle,x:c0,y:a0,width:Et,height:s0},contentInfo:{...T[Q(1472)],statusList:In}})})},[s,Ne,d,C]);D.useEffect(()=>{const k=r,S=T=>{const K=_0x3847;if(X[K(1205)]&&s&&De.current){if(!c[K(1205)])return;const se=c[K(1205)][K(445)](),oe=T[K(2179)]-ce[K(1205)].x,xe=T[K(550)]-ce[K(1205)].y,le=se[K(2272)]/b[K(2272)],ve=oe/le,Ie=xe/le,Be=ae[K(1205)].x+ve,Le=ae[K(1205)].y+Ie,We=document.querySelector(K(1755)+s+'"]');if(We)if(De[K(1205)][K(1939)]==="group"){const ie=Be-ae[K(1205)].x,ge=Le-ae.current.y;Kl(We,Me.current,ie,ge)}else We[K(501)].left=Be+"px",We[K(501)][K(960)]=Le+"px";ae.current.newX=Be,ae[K(1205)].newY=Le}if(g===K(2244)&&Pe[K(1808)]){const se=Ln(T[K(2179)],T[K(550)]);gn(oe=>({...oe,end:se}))}if(g===K(1113)&&je[K(1524)]){const se=ln(T[K(2179)],T[K(550)]);Te(oe=>({...oe,end:se}))}},Z=()=>{const T=_0x3847;if(X.current&&s&&De.current){const K=sn[T(488)](),se=ae[T(1205)].newX??ae[T(1205)].x,oe=ae[T(1205)][T(739)]??ae[T(1205)].y,xe=he(se),le=he(oe),ve=document.querySelector(T(1755)+s+'"]');ve&&Zl(ve,De[T(1205)],se,oe,Me[T(1205)]),K.updateNode(s,{normalStyle:{...De[T(1205)].normalStyle,x:xe,y:le}})}if(X[T(1205)]=!1,De[T(1205)]=null,Me[T(1205)]="",we({}),g===T(2244)&&Pe[T(1808)]&&Pe.end){const K=Math.min(Pe.start.x,Pe.end.x),se=Math[T(1425)](Pe[T(1808)].x,Pe[T(621)].x),oe=Math[T(1449)](Pe[T(1808)].y,Pe[T(621)].y),xe=Math[T(1425)](Pe[T(1808)].y,Pe[T(621)].y),le=d.filter(ve=>{const Ie=T,Be=ve[Ie(893)].x||0,Le=ve[Ie(893)].y||0,We=ve[Ie(893)].width||0,He=ve.normalStyle[Ie(863)]||0,ie=Be+We/2,ge=Le+He/2;return ie>=K&&ie<=se&&ge>=oe&&ge<=xe}).map(ve=>ve.id);_e(le),gn({start:null,end:null})}},R=T=>{const K=_0x3847;if(!Wl(T[K(966)])){if(T[K(1699)]===K(1003)&&g===K(1113)&&(Te({start:null,end:null,isDrawing:!1}),V()),T[K(1699)]===K(531)&&(s?P(s):Ne[K(2073)]>0&&(Ne[K(1935)](se=>P(se)),_e([]))),T[K(758)]&&T[K(1699)]==="z"&&(T[K(666)](),W()),T[K(758)]&&T[K(1699)]==="y"&&(T[K(666)](),O()),(g===K(505)||g===K(2244))&&(T.key===K(1445)||T.key===K(1668)||T[K(1699)]===K(1508)||T[K(1699)]==="ArrowDown")){const se=Ne[K(2073)]>0?Ne:s?[s]:[];if(se.length>0){T[K(666)]();const oe=T[K(1699)]===K(1445)?-2:T[K(1699)]===K(1668)?2:0,xe=T.key===K(1508)?-2:T[K(1699)]===K(2267)?2:0;se.forEach(le=>{const ve=K,Ie=d.find(Be=>Be.id===le);Ie&&C(le,{normalStyle:{...Ie.normalStyle,x:(Ie[ve(893)].x||0)+oe,y:(Ie[ve(893)].y||0)+xe}})})}}(g===K(505)||g===K(2244))&&(T.key==="h"||T[K(1699)]==="H")&&(T[K(666)](),V0(K(1723))),(g===K(505)||g===K(2244))&&(T[K(1699)]==="v"||T[K(1699)]==="V")&&(T[K(666)](),V0(K(1703))),T[K(1699)]===" "&&(T.preventDefault(),!un&&pn(!0))}},Q=T=>{T[_0x3847(1699)]===" "&&un&&pn(!1)};return window[k(824)](k(1041),S),window[k(824)](k(2232),Z),window.addEventListener(k(1574),R),window.addEventListener(k(610),Q),()=>{const T=k;window[T(662)](T(1041),S),window[T(662)](T(2232),Z),window.removeEventListener(T(1574),R),window[T(662)]("keyup",Q)}},[s,Pe,g,je[r(1524)],Ne,d,b[r(2272)],b[r(863)],P,W,un,O,V,ln,Ln,_e,C,V0]);const _x=(k,S=!0)=>{const Z=r,R={...k,id:Ae[Z(558)](),name:k.name+Z(1936),normalStyle:{...k.normalStyle,x:(k[Z(893)].x||0)+(S?20:0),y:(k[Z(893)].y||0)+(S?20:0)}};return k[Z(1939)]==="group"&&k.children&&(R.children=k[Z(1920)][Z(1913)](Q=>_x(Q,!1))),R},r0=D[r(2173)]((k,S,Z)=>{const R=r;Z[R(1010)](k.id,S.id),k.type===R(943)&&k[R(1920)]&&S.type===R(943)&&S[R(1920)]&&k[R(1920)][R(1935)]((Q,T)=>{r0(Q,S[R(1920)][T],Z)})},[]),q0=D[r(2173)]((k,S)=>{const Z=r,R=new Map;k[Z(997)].nodes.forEach(se=>{const oe=Z,xe=se[oe(1100)][oe(1774)],le=$({name:xe[oe(1877)],callback:xe.callback,inputs:xe.inputs.map(ve=>({...ve})),outputs:xe.outputs[oe(1913)](ve=>({...ve})),executorType:xe[oe(842)],dataRequestKey:xe[oe(1649)],externalHandlerKey:xe.externalHandlerKey,builtinId:xe.builtinId,builtinConfig:xe[oe(1276)]?{...xe[oe(1276)]}:void 0,bindNodeId:xe.bindNodeId?S:void 0,position:xe[oe(1711)]?{...xe[oe(1711)]}:void 0});R[oe(1010)](xe.id,le)});const Q=new Map,T=k.flowData.nodes.map(se=>{const oe=Z,xe=Ae[oe(558)]();Q[oe(1010)](se.id,xe);const le=R[oe(2250)](se[oe(1416)]),ve=se[oe(1100)].eventBlock;return{...se,id:xe,eventBlockId:le,position:{...se.position},inputs:[],outputs:[],data:{...se[oe(1100)],label:se[oe(1100)][oe(2172)],eventBlock:{...ve,id:le,inputs:ve[oe(1767)].map(Ie=>({...Ie})),outputs:ve.outputs[oe(1913)](Ie=>({...Ie})),bindNodeId:ve[oe(1924)]?S:void 0,position:ve.position?{...ve[oe(1711)]}:void 0,builtinConfig:ve[oe(1276)]?{...ve[oe(1276)]}:void 0}}}});T[Z(1935)](se=>{const oe=Z,xe=k.flowData[oe(1687)][oe(1099)](le=>Q[oe(2250)](le.id)===se.id);xe&&(se[oe(1767)]=xe[oe(1767)][oe(1913)](le=>Q[oe(2250)](le)),se[oe(2112)]=xe.outputs[oe(1913)](le=>Q[oe(2250)](le)))});const K=k[Z(997)].edges[Z(1913)](se=>({...se,id:Ae[Z(558)](),source:Q.get(se[Z(1364)]),target:Q[Z(2250)](se[Z(966)]),dataMapping:se.dataMapping?{...se[Z(1854)]}:void 0}));_({bindNodeId:S,eventType:k[Z(2121)],externalEventKey:k[Z(1798)],flowData:{nodes:T,edges:K},enabled:k[Z(1597)],copyOnDuplicate:k[Z(1957)]})},[$,_]),W0=D[r(2173)](()=>{const k=r,S=Ne[k(2073)]>0?Ne.map(Q=>d[k(1099)](T=>T.id===Q))[k(526)](Boolean):s?[d[k(1099)](Q=>Q.id===s)][k(526)](Boolean):[];if(S[k(2073)]===0)return;const Z=[],R=new Map;S[k(1935)](Q=>{const T=k,K=_x(Q);r0(Q,K,R),w(K),Z[T(1371)](K.id)}),ee[k(1522)][k(1935)](Q=>{const T=k,K=R[T(2250)](Q.bindNodeId);K&&Q[T(1957)]!==!1&&q0(Q,K)}),Z[k(2073)]===1?z(Z[0]):_e(Z)},[s,Ne,d,w,z,_e,ee,r0,q0]),Qx=D[r(2173)](k=>{const S=r,Z=k[S(893)].x||0,R=k.normalStyle.y||0,Q=k[S(893)][S(2272)]||0,T=k.normalStyle[S(863)]||0,K=k.normalStyle[S(1646)]||0;if(!K)return{minX:Z,minY:R,maxX:Z+Q,maxY:R+T};const se=Z+Q/2,oe=R+T/2,xe=K*Math.PI/180,le=Math.cos(xe),ve=Math.sin(xe),Ie=[{x:-Q/2,y:-T/2},{x:Q/2,y:-T/2},{x:Q/2,y:T/2},{x:-Q/2,y:T/2}];let Be=1/0,Le=1/0,We=-1/0,He=-1/0;for(const ie of Ie){const ge=se+ie.x*le-ie.y*ve,Ze=oe+ie.x*ve+ie.y*le;Be=Math[S(1449)](Be,ge),Le=Math[S(1449)](Le,Ze),We=Math[S(1425)](We,ge),He=Math.max(He,Ze)}return{minX:Be,minY:Le,maxX:We,maxY:He}},[]),Fx=D.useCallback(k=>{const S=r,Z=k[S(893)].x||0,R=k[S(893)].y||0,Q=k[S(893)][S(2272)]||0,T=k[S(893)][S(863)]||0,K=k.normalStyle[S(1646)]||0;if(!K)return(k[S(1920)]||[])[S(1913)](Be=>({...Be,normalStyle:{...Be[S(893)],x:he(Z+(Be[S(893)].x||0)),y:he(R+(Be[S(893)].y||0))}}));const se=K*Math.PI/180,oe=Math[S(2191)](se),xe=Math[S(1135)](se),le=Z+Q/2,ve=R+T/2,Ie=(Be,Le)=>{const We=Be-Q/2,He=Le-T/2;return{x:le+We*oe-He*xe,y:ve+We*xe+He*oe}};return(k[S(1920)]||[]).map(Be=>{const Le=S;if(Be[Le(1472)][Le(665)][Le(1591)](xt=>xt.material[Le(1939)]==="LINE")){const xt=Be[Le(893)].x||0,Pt=Be[Le(893)].y||0,jt=Be[Le(893)][Le(2272)]||0,At=Be.normalStyle.height||0,Et=Be.normalStyle.rotate||0,s0=Et*Math.PI/180,Yt=Math[Le(2191)](s0),Ut=Math.sin(s0),l0=(Tn,fn)=>{const yn=Tn-jt/2,Pn=fn-At/2,an=yn*Yt-Pn*Ut+jt/2,tn=yn*Ut+Pn*Yt+At/2;return Ie(xt+an,Pt+tn)};let In=1/0,$e=1/0,ht=-1/0,d0=-1/0,Hn=2;const ot=Be[Le(1472)][Le(665)].map(Tn=>{const fn=Le;if(Tn[fn(1200)].type!==fn(1013))return null;const yn=Tn.material.config||{},Pn=l0(yn[fn(1025)]||0,yn.startY||0),an=l0(yn[fn(1602)]||0,yn[fn(2041)]||0);return In=Math[fn(1449)](In,Pn.x,an.x),$e=Math[fn(1449)]($e,Pn.y,an.y),ht=Math[fn(1425)](ht,Pn.x,an.x),d0=Math.max(d0,Pn.y,an.y),Hn=Math.max(Hn,yn[fn(566)]||yn[fn(1708)]||2),{s:Pn,e:an}});if(Number.isFinite(In)&&Number.isFinite($e)){const Tn=Math[Le(1425)](Hn*2,4),fn=Math[Le(1425)](ht-In,Tn),yn=Math[Le(1425)](d0-$e,Tn),Pn=Be.contentInfo[Le(665)][Le(1913)]((an,tn)=>{const mn=Le,hn=ot[tn];if(!hn||an[mn(1200)].type!==mn(1013))return an;const wn=an[mn(1200)];return{...an,material:{...wn,config:{...wn.config||{},startX:he(hn.s.x-In),startY:he(hn.s.y-$e),endX:he(hn.e.x-In),endY:he(hn.e.y-$e)}}}});return{...Be,normalStyle:{...Be[Le(893)],x:he(In),y:he($e),width:Math[Le(1958)](fn),height:Math.round(yn),rotate:0},contentInfo:{...Be[Le(1472)],statusList:Pn}}}return{...Be,normalStyle:{...Be.normalStyle,x:Z+xt,y:R+Pt,rotate:0}}}const He=Be[Le(893)][Le(2272)]||0,ie=Be[Le(893)][Le(863)]||0,ge=Be.normalStyle.x||0,Ze=Be[Le(893)].y||0,Fe=ge+He/2-Q/2,bn=Ze+ie/2-T/2,tt=le+Fe*oe-bn*xe,J0=ve+Fe*xe+bn*oe,c0=Be.normalStyle[Le(1646)]||0,a0=((c0+K)%360+360)%360;return{...Be,normalStyle:{...Be[Le(893)],x:tt-He/2,y:J0-ie/2,rotate:a0}}})},[]),$x=D[r(2173)](()=>{const k=r;if(Ne[k(2073)]<2)return;const S=[];for(let oe=0;oe<Ne.length;oe++){const xe=Ne[oe],le=d.find(ve=>ve.id===xe);if(le){if(le?.[k(1939)]==="group"){Fx(le)[k(1935)](Ie=>S.push(Ie)),P(xe);continue}S[k(1371)](le)}}if(S.length<2)return;let Z=1/0,R=1/0,Q=-1/0,T=-1/0;S[k(1935)](oe=>{const xe=k,le=Qx(oe);Z=Math[xe(1449)](Z,le[xe(682)]),R=Math.min(R,le[xe(1308)]),Q=Math[xe(1425)](Q,le[xe(2091)]),T=Math[xe(1425)](T,le.maxY)});const K=S[k(1913)](oe=>{const xe=k,le={...oe,normalStyle:{...oe[xe(893)],x:he((oe[xe(893)].x||0)-Z),y:he((oe[xe(893)].y||0)-R)}};return oe[xe(1472)].statusList.some(Ie=>Ie[xe(1200)][xe(1939)]===xe(1013))?{...le,contentInfo:{...le[xe(1472)],statusList:le[xe(1472)][xe(665)][xe(1913)](Ie=>{const Be=xe;if(Ie[Be(1200)][Be(1939)]!=="LINE")return Ie;const Le=Ie[Be(1200)][Be(678)]||{};return{...Ie,material:{...Ie[Be(1200)],config:{...Le,startX:he(Le[Be(1025)]??0),startY:he(Le.startY??0),endX:he(Le[Be(1602)]??0),endY:he(Le[Be(2041)]??0)}}}})}}:le}),se={id:Ae.nanoid(),name:k(1759)+Date[k(1969)](),type:k(943),normalStyle:{x:he(Z),y:he(R),width:Math[k(1958)](Q-Z),height:Math.round(T-R),background:"transparent"},contentInfo:{statusList:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0},children:K};Ne[k(1935)](oe=>P(oe)),w(se),_e([]),z(se.id)},[Ne,d,P,w,z,Fx,Qx]),eo=k=>{const S=r,Z={...k,id:Ae.nanoid()};return k.type===S(943)&&k[S(1920)]&&(Z[S(1920)]=k[S(1920)][S(1913)](R=>eo(R))),Z},no=D[r(2173)](()=>{const k=r,S=Ne.length>0?Ne[k(1913)](Z=>d[k(1099)](R=>R.id===Z)).filter(Z=>!!Z&&Z[k(1939)]===k(943)):s?[d[k(1099)](Z=>Z.id===s)][k(526)](Z=>!!Z&&Z[k(1939)]===k(943)):[];S[k(2073)]!==0&&(S[k(1935)](Z=>{const R=k;if(!Z[R(1920)]||Z[R(1920)][R(2073)]===0)return;const Q=Z[R(893)].x||0,T=Z[R(893)].y||0,K=Z[R(893)].width||0,se=Z.normalStyle.height||0,oe=Z[R(893)].rotate||0,xe=oe*Math.PI/180,le=Math[R(2191)](xe),ve=Math.sin(xe),Ie=Q+K/2,Be=T+se/2,Le=(He,ie)=>{const ge=He-K/2,Ze=ie-se/2;return{x:Ie+ge*le-Ze*ve,y:Be+ge*ve+Ze*le}},We=Z[R(1920)][R(1913)](He=>{const ie=R,ge=eo(He);if(ge[ie(1472)][ie(665)][ie(1591)](Et=>Et[ie(1200)].type===ie(1013))){const Et=ge[ie(893)].x||0,s0=ge[ie(893)].y||0,Yt=ge[ie(893)].width||0,Ut=ge.normalStyle[ie(863)]||0,l0=ge[ie(893)][ie(1646)]||0,In=l0*Math.PI/180,$e=Math[ie(2191)](In),ht=Math[ie(1135)](In),d0=(an,tn)=>{const mn=an-Yt/2,hn=tn-Ut/2,wn=mn*$e-hn*ht+Yt/2,zr=mn*ht+hn*$e+Ut/2;return Le(Et+wn,s0+zr)};let Hn=1/0,ot=1/0,Tn=-1/0,fn=-1/0,yn=2;const Pn=ge.contentInfo[ie(665)][ie(1913)](an=>{const tn=ie;if(an[tn(1200)].type!==tn(1013))return null;const mn=an[tn(1200)][tn(678)]||{},hn=d0(mn[tn(1025)]||0,mn[tn(1581)]||0),wn=d0(mn[tn(1602)]||0,mn[tn(2041)]||0);return Hn=Math[tn(1449)](Hn,hn.x,wn.x),ot=Math[tn(1449)](ot,hn.y,wn.y),Tn=Math[tn(1425)](Tn,hn.x,wn.x),fn=Math[tn(1425)](fn,hn.y,wn.y),yn=Math[tn(1425)](yn,mn.lineWeight||mn[tn(1708)]||2),{s:hn,e:wn}});if(Number[ie(2144)](Hn)&&Number[ie(2144)](ot)){const an=Math[ie(1425)](yn*2,4),tn=Math[ie(1425)](Tn-Hn,an),mn=Math[ie(1425)](fn-ot,an),hn=ge[ie(1472)][ie(665)][ie(1913)]((wn,zr)=>{const co=ie,_0=Pn[zr];if(!_0||wn[co(1200)][co(1939)]!=="LINE")return wn;const Ps=wn[co(1200)];return{...wn,material:{...Ps,config:{...Ps[co(678)]||{},startX:he(_0.s.x-Hn),startY:he(_0.s.y-ot),endX:he(_0.e.x-Hn),endY:he(_0.e.y-ot)}}}});return{...ge,normalStyle:{...ge[ie(893)],x:he(Hn),y:he(ot),width:Math[ie(1958)](tn),height:Math[ie(1958)](mn),rotate:0},contentInfo:{...ge[ie(1472)],statusList:hn}}}}const Fe=ge[ie(893)][ie(2272)]||0,bn=ge[ie(893)][ie(863)]||0,tt=ge[ie(893)].x||0,J0=ge[ie(893)].y||0,c0=tt+Fe/2-K/2,a0=J0+bn/2-se/2,xt=Ie+c0*le-a0*ve,Pt=Be+c0*ve+a0*le,jt=ge.normalStyle.rotate||0,At=((jt+oe)%360+360)%360;return{...ge,normalStyle:{...ge[ie(893)],x:xt-Fe/2,y:Pt-bn/2,rotate:At}}});P(Z.id),We.forEach(He=>w(He))}),_e([]),z(null))},[s,Ne,d,P,w,z,_e]),X0=D[r(2173)](k=>{const S=r;if(Ne[S(2073)]<1)return;const Z=Ne[S(1913)](R=>d.find(Q=>Q.id===R))[S(526)](R=>!!R);if(Z.length===1&&Z[0][S(1939)]===S(943)){const R=Z[0];if(!R[S(1920)]||R.children[S(2073)]<2)return;const Q=[...R.children];let T=1/0,K=1/0,se=-1/0,oe=-1/0;if(k===S(1723)){const xe=[...Q].sort((ie,ge)=>(ie[S(893)].x||0)-(ge[S(893)].x||0));let le=1/0,ve=-1/0,Ie=0;xe[S(1935)](ie=>{const ge=S,Ze=ie[ge(893)].x||0,Fe=ie[ge(893)][ge(2272)]||0;le=Math[ge(1449)](le,Ze),ve=Math[ge(1425)](ve,Ze+Fe),Ie+=Fe});const Be=(ve-le-Ie)/(xe.length-1);let Le=le;const We=new Map;xe[S(1935)](ie=>{const ge=S;We[ge(1010)](ie.id,Le),Le+=(ie[ge(893)][ge(2272)]||0)+Be});const He=Q[S(1913)](ie=>({...ie,normalStyle:{...ie.normalStyle,x:We[S(2250)](ie.id)??ie.normalStyle.x}}));He.forEach(ie=>{const ge=S,Ze=ie[ge(893)].x||0,Fe=ie[ge(893)].y||0,bn=ie.normalStyle[ge(2272)]||0,tt=ie[ge(893)][ge(863)]||0;T=Math[ge(1449)](T,Ze),K=Math.min(K,Fe),se=Math.max(se,Ze+bn),oe=Math[ge(1425)](oe,Fe+tt)}),C(R.id,{normalStyle:{...R[S(893)],x:he((R[S(893)].x||0)+T),y:he((R[S(893)].y||0)+K),width:Math.round(se-T),height:Math[S(1958)](oe-K)},children:He[S(1913)](ie=>({...ie,normalStyle:{...ie[S(893)],x:he((ie[S(893)].x||0)-T),y:he((ie[S(893)].y||0)-K)}}))})}else{const xe=[...Q][S(1648)]((ie,ge)=>(ie[S(893)].y||0)-(ge[S(893)].y||0));let le=1/0,ve=-1/0,Ie=0;xe[S(1935)](ie=>{const ge=S,Ze=ie[ge(893)].y||0,Fe=ie[ge(893)][ge(863)]||0;le=Math[ge(1449)](le,Ze),ve=Math[ge(1425)](ve,Ze+Fe),Ie+=Fe});const Be=(ve-le-Ie)/(xe.length-1);let Le=le;const We=new Map;xe[S(1935)](ie=>{const ge=S;We[ge(1010)](ie.id,Le),Le+=(ie[ge(893)].height||0)+Be});const He=Q[S(1913)](ie=>({...ie,normalStyle:{...ie.normalStyle,y:We.get(ie.id)??ie[S(893)].y}}));He.forEach(ie=>{const ge=S,Ze=ie[ge(893)].x||0,Fe=ie[ge(893)].y||0,bn=ie[ge(893)][ge(2272)]||0,tt=ie.normalStyle.height||0;T=Math[ge(1449)](T,Ze),K=Math.min(K,Fe),se=Math[ge(1425)](se,Ze+bn),oe=Math[ge(1425)](oe,Fe+tt)}),C(R.id,{normalStyle:{...R[S(893)],x:(R[S(893)].x||0)+T,y:(R[S(893)].y||0)+K,width:se-T,height:oe-K},children:He[S(1913)](ie=>({...ie,normalStyle:{...ie[S(893)],x:(ie[S(893)].x||0)-T,y:(ie[S(893)].y||0)-K}}))})}return}if(!(Z[S(2073)]<2))if(k===S(1723)){const R=[...Z][S(1648)]((xe,le)=>{const ve=S;return(xe[ve(893)].x||0)-(le[ve(893)].x||0)});let Q=1/0,T=-1/0,K=0;R[S(1935)](xe=>{const le=S,ve=xe.normalStyle.x||0,Ie=xe.normalStyle[le(2272)]||0;Q=Math[le(1449)](Q,ve),T=Math[le(1425)](T,ve+Ie),K+=Ie});const se=(T-Q-K)/(R[S(2073)]-1);let oe=Q;R[S(1935)](xe=>{const le=oe;C(xe.id,{normalStyle:{...xe.normalStyle,x:he(le)}}),oe+=(xe.normalStyle.width||0)+se})}else{const R=[...Z][S(1648)]((xe,le)=>{const ve=S;return(xe[ve(893)].y||0)-(le[ve(893)].y||0)});let Q=1/0,T=-1/0,K=0;R[S(1935)](xe=>{const le=S,ve=xe[le(893)].y||0,Ie=xe.normalStyle[le(863)]||0;Q=Math[le(1449)](Q,ve),T=Math[le(1425)](T,ve+Ie),K+=Ie});const se=(T-Q-K)/(R[S(2073)]-1);let oe=Q;R.forEach(xe=>{const le=S,ve=oe;C(xe.id,{normalStyle:{...xe.normalStyle,y:he(ve)}}),oe+=(xe[le(893)][le(863)]||0)+se})}},[Ne,d,C]),bt=k=>{const S=r,Z=k[S(1472)][S(665)][S(1099)](R=>R[S(1200)].type===S(1013));return Z?Z.material[S(678)]:null},It=D[r(2173)](k=>{const S=r;if(Ne.length<2)return;const Z=sn[S(488)](),R=Ne[S(1913)](T=>d[S(1099)](K=>K.id===T))[S(526)](T=>!!T);if(R[S(2073)]<2)return;let Q=0;switch(k){case"left":Q=Math.min(...R.map(T=>{const K=S,se=bt(T);return se?(T.normalStyle.x||0)+(se[K(1025)]||0):T.normalStyle.x||0}));break;case S(691):Q=Math[S(1425)](...R[S(1913)](T=>{const K=S,se=bt(T);return se?(T[K(893)].x||0)+(se[K(1602)]||0):(T.normalStyle.x||0)+(T[K(893)].width||0)}));break;case S(960):Q=Math[S(1449)](...R[S(1913)](T=>{const K=S,se=bt(T);return se?(T[K(893)].y||0)+(se[K(1581)]||0):T.normalStyle.y||0}));break;case"bottom":Q=Math[S(1425)](...R[S(1913)](T=>{const K=S,se=bt(T);return se?(T[K(893)].y||0)+(se[K(2041)]||0):(T[K(893)].y||0)+(T.normalStyle[K(863)]||0)}));break}R[S(1935)](T=>{const K=S;let se=T[K(893)].x||0,oe=T[K(893)].y||0;const xe=bt(T);switch(k){case K(1322):xe?se=Q-(xe[K(1025)]||0):se=Q;break;case K(691):xe?se=Q-(xe[K(1602)]||0):se=Q-(T[K(893)][K(2272)]||0);break;case"top":xe?oe=Q-(xe[K(1581)]||0):oe=Q;break;case K(1922):xe?oe=Q-(xe[K(2041)]||0):oe=Q-(T.normalStyle[K(863)]||0);break}Z[K(1293)](T.id,{normalStyle:{...T[K(893)],x:he(se),y:he(oe)}})})},[Ne,d]),yr=[{icon:l.jsx(be[r(1009)],{}),title:r(1630),active:g==="select",onClick:()=>{q("select")}},{icon:l[r(641)](be[r(634)],{}),title:r(932),active:g===r(2244),onClick:()=>{q(r(2244)),_e([])}},{icon:l[r(641)](be[r(651)],{}),title:r(1845),active:g===r(2017),onClick:()=>{q(r(2017))}},{icon:l[r(641)](be.EditOutlined,{}),title:"线条绘制",active:g==="line-draw",onClick:()=>{q(r(1113))}},{icon:l[r(641)](be[r(477)],{}),title:r(897),active:g==="preview",onClick:()=>{q(r(2070))}}],nt=D[r(2173)](()=>Ne[r(2073)]>0?Ne:s?[s]:[],[Ne,s]),to=D[r(2173)](()=>{const k=r,S=nt();if(S[k(2073)]===0)return;d[k(526)](R=>S[k(1992)](R.id))[k(1913)](R=>R.id)[k(1935)](R=>G(R))},[nt,d,G]),xo=D[r(2173)](()=>{const k=r,S=nt();if(S.length===0)return;[...d[k(526)](R=>S[k(1992)](R.id))[k(1913)](R=>R.id)][k(2202)]()[k(1935)](R=>U(R))},[nt,d,U]),K0=D.useCallback(k=>{const S=r,Z=nt();Z[S(2073)]!==0&&Z[S(1935)](R=>{const Q=S,T=d[Q(1099)](se=>se.id===R);!T||T[Q(1939)]===Q(943)||!T.contentInfo[Q(665)][Q(1591)](se=>se[Q(1200)][Q(1939)]===Q(425))||(k==="horizontal"?C(R,{normalStyle:{...T[Q(893)],flipX:!T[Q(893)][Q(740)]}}):C(R,{normalStyle:{...T.normalStyle,flipY:!T[Q(893)][Q(2146)]}}))})},[nt,d,C]),mr=nt(),i0=mr[r(1591)](k=>{const S=r,Z=d[S(1099)](R=>R.id===k);return Z&&Z[S(1939)]!=="group"&&Z[S(1472)][S(665)].some(R=>R[S(1200)].type==="IMAGE")}),{actionButtonsRow1:wr,actionButtonsRow2:vr}=D[r(1970)](()=>({actionButtonsRow1:[{icon:l.jsx(be[r(2134)],{}),title:"置于顶层",disabled:!s&&Ne[r(2073)]===0,onClick:to},{icon:l[r(641)](be[r(2142)],{}),title:r(2133),disabled:!s&&Ne.length===0,onClick:xo},{icon:l.jsx(be[r(457)],{}),title:r(1619),disabled:!s&&Ne[r(2073)]===0,onClick:W0},{icon:l[r(641)](be[r(634)],{}),title:r(816),disabled:Ne[r(2073)]<2,onClick:$x},{icon:l[r(641)](be[r(524)],{}),title:r(1314),disabled:!s&&Ne[r(2073)]===0,onClick:no},{icon:l.jsx(be.SettingOutlined,{}),title:"画布配置",onClick:()=>Ue(!0)},{icon:l[r(641)](be.ExperimentOutlined,{}),title:"数据模拟",type:"primary",onClick:Xe},{icon:l[r(641)](be[r(2163)],{}),title:"删除选中 (Delete)",disabled:!s&&Ne[r(2073)]===0,onClick:()=>{s?P(s):Ne.length>0&&(Ne.forEach(k=>P(k)),_e([]))}}],actionButtonsRow2:[{icon:l[r(641)](be[r(1904)],{}),title:r(1401),disabled:Ne[r(2073)]<2,onClick:()=>It(r(1322))},{icon:l.jsx(be[r(800)],{}),title:r(1267),disabled:Ne[r(2073)]<2,onClick:()=>It("right")},{icon:l[r(641)](be[r(1369)],{}),title:"上对齐",disabled:Ne[r(2073)]<2,onClick:()=>It(r(960))},{icon:l.jsx(be[r(2153)],{}),title:r(986),disabled:Ne.length<2,onClick:()=>It(r(1922))},{icon:l[r(641)](be[r(1188)],{}),title:r(1087),disabled:(()=>{const k=r;if(Ne[k(2073)]>=2)return!1;if(Ne[k(2073)]===1){const S=d[k(1099)](Z=>Z.id===Ne[0]);return!(S?.[k(1939)]==="group"&&S[k(1920)]&&S[k(1920)].length>=2)}return!0})(),onClick:()=>X0("horizontal")},{icon:l[r(641)](be[r(899)],{}),title:r(495),disabled:(()=>{const k=r;if(Ne[k(2073)]>=2)return!1;if(Ne[k(2073)]===1){const S=d[k(1099)](Z=>Z.id===Ne[0]);return!(S?.[k(1939)]===k(943)&&S[k(1920)]&&S[k(1920)].length>=2)}return!0})(),onClick:()=>X0(r(1703))},{icon:l[r(641)](be[r(1433)],{}),title:r(2088),disabled:!i0,onClick:()=>K0(r(1723))},{icon:l[r(641)](r(909),{style:{display:"inline-flex",transform:"rotate(90deg)"},children:l[r(641)](be[r(1433)],{})}),title:r(2228),disabled:!i0,onClick:()=>K0(r(1703))}]}),[W,O,g,q,_e,Ne,$x,no,W0,It,X0,to,xo,Ue,pe,Xe,s,P,v.currentCanvasId,i0,K0,d]),[pr,oo]=D[r(1115)](!1),[ro,Z0]=D[r(1115)](""),[io,R0]=D[r(1115)](null);return l[r(873)](r(2048),{className:r(1550)+(n?"":r(576)),children:[!n&&l[r(873)](r(2048),{className:r(1532),children:[l.jsxs(p[r(1304)],{children:[yr[r(1913)](k=>l.jsx(p.Tooltip,{title:k[r(629)],children:l[r(641)](p[r(653)],{type:k[r(1237)]?r(1338):r(542),icon:k[r(1688)],onClick:k[r(805)]})},k[r(629)])),l[r(641)](r(2048),{className:r(2275)}),l.jsx(p[r(2080)],{value:v[r(633)],onChange:L,style:{width:140},dropdownRender:k=>l.jsxs(l[r(1365)],{children:[k,l.jsx(r(2048),{className:"border-t border-gray-200 mt-1 pt-1",children:l[r(641)](p[r(653)],{type:"link",size:r(2055),block:!0,onClick:()=>oo(!0),children:r(988)})})]}),children:v.canvases[r(1913)](k=>l[r(641)](p[r(2080)][r(768)],{value:k.id,children:k.name},k.id))}),l[r(641)](p[r(653)],{icon:l[r(641)](be.PlusOutlined,{}),size:r(2055),onClick:()=>N(),title:r(1900)}),l[r(641)](p[r(1735)],{title:r(1226),children:l[r(641)](p[r(653)],{icon:l[r(641)](be.DownloadOutlined,{}),size:"small",onClick:Kn})}),l[r(641)](p[r(1735)],{title:r(2026),children:l[r(641)](p[r(653)],{icon:l[r(641)](be[r(510)],{}),size:r(2055),onClick:()=>cn(!0)})})]}),l[r(873)](p.Space,{direction:r(1703),size:4,children:[l[r(641)](p[r(1304)],{children:wr.map(k=>l[r(641)](p[r(1735)],{title:k[r(629)],children:l.jsx(p.Button,{type:k[r(1237)]?r(1338):k[r(1939)]||r(542),icon:k[r(1688)],onClick:S=>{const Z=r;k[Z(805)](),S[Z(896)][Z(1811)]()},disabled:k.disabled})},k[r(629)]))}),l[r(641)](p[r(1304)],{children:vr[r(1913)](k=>l[r(641)](p[r(1735)],{title:k[r(629)],children:l[r(641)](p.Button,{type:k[r(1237)]?r(1338):k[r(1939)]||r(542),icon:k.icon,onClick:S=>{const Z=r;k[Z(805)](),S[Z(896)].blur()},disabled:k.disabled})},k[r(629)]))})]})]}),l[r(641)](r(2048),{ref:u,className:r(1209)+(n?"":r(487)),style:n&&o?{display:r(2087),justifyContent:r(2178),alignItems:r(2178)}:void 0,onWheel:n&&o?k=>{const S=r;k[S(666)](),k.stopPropagation();const Z=i[S(1205)];if(!Z)return;const R=A[S(1205)],Q=.1,T=k[S(423)]>0?Math[S(1425)](R-Q,de):Math[S(1449)](R+Q,F);Z[S(2181)](0,0,T,0)}:void 0,children:l[r(641)](F0.TransformWrapper,{ref:i,initialScale:fe,initialPositionX:0,initialPositionY:0,minScale:de,maxScale:F,onTransformed:ut,limitToBounds:n&&!!o,centerZoomedOut:n&&!!o,panning:{disabled:!un&&g!==r(2017),velocityDisabled:!0},wheel:{disabled:n&&!!o,step:.1},pinch:{disabled:!1},doubleClick:{disabled:!0},children:({zoomIn:k,zoomOut:S,resetTransform:Z})=>l[r(873)](l[r(1365)],{children:[!n&&l[r(641)](r(2048),{className:r(1156),children:l[r(873)](p[r(1304)],{direction:r(1703),children:[l.jsx(p.Tooltip,{title:"放大",children:l[r(641)](p.Button,{icon:l[r(641)](be[r(1590)],{}),onClick:()=>k()})}),l.jsx(p[r(1735)],{title:"缩小",children:l.jsx(p[r(653)],{icon:l[r(641)](be[r(1962)],{}),onClick:()=>S()})}),l.jsx(p[r(1735)],{title:r(1678),children:l[r(641)](p[r(653)],{onClick:()=>Z(),children:r(732)})}),l[r(873)](r(2048),{className:"text-center text-xs text-gray-500",children:[Math[r(1958)](m[r(1632)]*100),"%"]})]})}),l[r(641)](F0[r(1463)],{wrapperStyle:n&&o?{width:o,height:x||b.height*(A[r(1205)]||1)+"px",position:r(2033),overflow:r(2141)}:{width:r(732),height:n?b[r(863)]*(A[r(1205)]||1)+"px":r(732),position:r(2033),overflow:n?"visible":r(2141)},contentStyle:{width:n?b[r(2272)]+"px":r(732),height:n?b[r(863)]+"px":r(732),display:r(2087),alignItems:n?r(2178):"center",justifyContent:r(n?2178:1571)},children:l[r(873)](r(2048),{ref:c,"data-canvas":"true",className:"relative "+(re?r(1092):"")+" "+(g==="line-draw"?"cursor-crosshair":"")+" "+(un?r(512):""),style:{width:b[r(2272)],height:b.height,flexShrink:0,backgroundColor:b[r(1500)],backgroundImage:b.backgroundImage?r(1423)+b[r(1067)]+")":void 0,backgroundSize:r(1451),backgroundPosition:r(1571)},onClick:$n,onMouseDown:zn,onDoubleClick:o0,onDragOver:et,onDragLeave:St,onDrop:ft,children:[t&&!n&&l[r(873)](r(2048),{className:r(907),style:{width:b[r(2272)],height:b[r(863)]},children:[l.jsx(r(1219),{src:t,alt:"",className:r(1875),draggable:!1}),l[r(641)](r(962),{className:r(491),width:1920,height:1080,children:l[r(641)](r(730),{x:"0",y:"0",width:r(1029),height:r(1987),fill:r(1895),stroke:"yellow",strokeWidth:"2"})})]}),b[r(1579)]!==!1&&l[r(873)](r(962),{className:r(491),width:b[r(2272)],height:b[r(863)],children:[l[r(641)](r(2152),{children:l[r(641)](r(1427),{id:r(2125),width:"20",height:"20",patternUnits:r(2192),children:l[r(641)](r(467),{d:"M 20 0 L 0 0 0 20",fill:"none",stroke:r(560),opacity:r(1007),strokeWidth:"1"})})}),l[r(641)](r(730),{width:"100%",height:r(732),fill:r(1921)})]}),d.map(R=>l[r(641)](Mo,{node:R,isSelected:g===r(2070)?!1:s===R.id||Ne[r(1992)](R.id),data:Oe,onClick:g===r(2070)?void 0:Q=>{const T=r;console[T(435)](T(1949),R.id,"mode:",ze.current),ze[T(1205)]!=="line-draw"&&(Q[T(1721)]?(z(R.id),_e([...Ne,R.id])):(z(R.id),_e([R.id])))},onMouseDown:g===r(2070)?void 0:Q=>kt(Q,R),onUpdateNode:g===r(2070)?void 0:(Q,T)=>C(Q,T),scale:m[r(1632)],enableEventFlow:g==="preview",eventFlowData:qe,readonly:n},""+R.id)),g===r(1113)&&je[r(1524)]&&je.start&&je[r(621)]&&l[r(641)]("svg",{className:r(491),width:b[r(2272)],height:b.height,children:l[r(641)](r(2006),{x1:je.start.x,y1:je[r(1808)].y,x2:je.end.x,y2:je[r(621)].y,stroke:r(1262),strokeWidth:"2",strokeDasharray:r(1603),strokeLinecap:r(1958),strokeLinejoin:r(1958)})}),g===r(2244)&&Pe[r(1808)]&&Pe[r(621)]&&l[r(641)](r(2048),{className:r(1159),style:{left:Math[r(1449)](Pe[r(1808)].x,Pe[r(621)].x),top:Math[r(1449)](Pe[r(1808)].y,Pe[r(621)].y),width:Math[r(1014)](Pe.end.x-Pe.start.x),height:Math.abs(Pe[r(621)].y-Pe[r(1808)].y),zIndex:9999}})]})})]})},ye)}),l[r(641)](p.Modal,{title:r(817),open:te,onCancel:()=>pe(!1),footer:null,children:l[r(641)](p[r(765)],{layout:r(1703),children:l[r(641)](p.Form[r(1207)],{label:r(827),children:l[r(641)](ql,{value:ne,onChange:k=>{me(!0),ke(k.target.value)},rows:10,placeholder:r(1577)})})})}),l[r(641)](p[r(529)],{title:"画布配置",open:Ke,onCancel:()=>Ue(!1),footer:null,children:l[r(873)](p.Form,{layout:r(1703),children:[l[r(641)](p[r(765)][r(1207)],{label:"宽度",children:l[r(641)](p[r(2124)],{value:b[r(2272)],onChange:k=>y({width:k||1920}),min:100,max:5e3,style:{width:r(732)}})}),l.jsx(p[r(765)][r(1207)],{label:"高度",children:l[r(641)](p.InputNumber,{value:b[r(863)],onChange:k=>y({height:k||1080}),min:100,max:5e3,style:{width:r(732)}})}),l[r(641)](p.Form[r(1207)],{label:r(1444),children:l[r(641)](p[r(417)],{checked:b.showGrid!==!1,onChange:k=>y({showGrid:k})})}),l[r(641)](p[r(765)][r(1207)],{label:"背景色",children:l[r(873)]("div",{className:r(1534),children:[l.jsx(Wt,{value:b[r(1500)]||r(2129),onChange:k=>y({background:k[r(1277)]()})}),l[r(641)](p[r(1984)],{value:b[r(1500)],onChange:k=>y({background:k.target[r(845)]}),placeholder:r(444)})]})}),l[r(873)](p[r(765)][r(1207)],{label:"背景图片",children:[l.jsxs(r(2048),{className:r(1534),children:[l.jsx(p[r(570)],{accept:r(1386),showUploadList:!1,beforeUpload:k=>{const S=r;if(!k[S(1939)][S(1941)]("image/"))return p[S(1638)][S(1316)]("只能上传图片文件!"),!1;const R=new FileReader;return R[S(1894)]=Q=>{const T=S,K=Q[T(966)]?.[T(1106)];y({backgroundImage:K}),p[T(1638)][T(1955)](T(2161))},R[S(954)](k),!1},children:l[r(641)](p[r(653)],{icon:l[r(641)](be[r(510)],{}),children:"上传图片"})}),l[r(641)](p[r(1984)],{value:b.backgroundImage,onChange:k=>y({backgroundImage:k[r(966)][r(845)]}),placeholder:"输入图片 URL 或上传图片",style:{flex:1}}),b[r(1067)]&&l[r(641)](p[r(653)],{icon:l.jsx(be[r(1671)],{}),onClick:()=>y({backgroundImage:void 0}),danger:!0,size:r(2055)})]}),b[r(1067)]&&l[r(641)](r(2048),{className:r(746),style:{maxWidth:r(732)},children:l[r(641)](r(1219),{src:b.backgroundImage,alt:r(1378),style:{maxWidth:r(732),maxHeight:120,objectFit:"contain"}})})]})]})}),l.jsx(p.Modal,{title:r(1272),open:pr,onCancel:()=>{oo(!1),R0(null),Z0("")},footer:null,width:760,children:l.jsx(p[r(2e3)],{items:[{key:r(1592),label:"画布列表",children:l[r(873)](l.Fragment,{children:[l[r(641)](p.List,{dataSource:v[r(1592)],renderItem:k=>l[r(641)](p[r(1959)][r(1207)],{actions:[io===k.id?l[r(641)](p[r(653)],{type:r(1338),size:r(2055),onClick:()=>{E(k.id,ro),R0(null)},children:"保存"}):l.jsx(p[r(653)],{type:r(1815),icon:l.jsx(be[r(2015)],{}),size:"small",onClick:()=>{R0(k.id),Z0(k.name)}}),v[r(1592)][r(2073)]>1&&l.jsx(p[r(653)],{type:r(1815),danger:!0,icon:l[r(641)](be[r(2163)],{}),size:r(2055),onClick:()=>B(k.id)})][r(526)](Boolean),children:io===k.id?l[r(641)](p[r(1984)],{value:ro,onChange:S=>Z0(S[r(966)][r(845)]),size:r(2055),style:{width:200}}):l[r(873)]("span",{style:{fontWeight:v.currentCanvasId===k.id?"bold":"normal"},children:[k[r(1877)]," ",v[r(633)]===k.id&&r(1190)]})})}),l[r(641)](r(2048),{className:r(1746),children:l[r(641)](p.Button,{type:"primary",icon:l[r(641)](be[r(1588)],{}),onClick:()=>N(),children:"新建画布"})})]})},{key:r(1741),label:r(1764),children:l.jsx(Tl,{})}]})}),l[r(641)](p.Modal,{title:"导入画布",open:Ge,onOk:Gn,onCancel:()=>{cn(!1),en(""),on(!1)},destroyOnClose:!0,width:600,children:l[r(873)](r(2048),{className:r(1180),children:[l[r(873)](r(2048),{children:[l[r(641)]("p",{className:"mb-2",children:r(1187)}),l[r(641)]("input",{type:r(684),accept:r(2131),onChange:k=>{const S=r,Z=k.target[S(1751)]?.[0];Z&&Sn(Z)},className:r(2115)})]}),l[r(641)](r(2048),{className:r(1345),children:"或"}),l[r(873)]("div",{children:[l.jsx("p",{className:r(1664),children:r(2260)}),l[r(641)](r(980),{value:Qe,onChange:k=>en(k[r(966)][r(845)]),placeholder:"粘贴画布 JSON 内容...",className:"w-full h-48 p-3 border border-gray-300 rounded-lg font-mono text-sm resize-none focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),l[r(873)](r(2048),{className:"flex items-center gap-2",children:[l[r(641)]("input",{type:r(766),id:"importAsNewCanvas",checked:nn,onChange:k=>on(k[r(966)][r(519)]),className:r(1809)}),l.jsx("label",{htmlFor:"importAsNewCanvas",className:"text-sm text-gray-700",children:r(936)})]})]})})]})},{Option:ax}=p[a(2080)];function yi(e){return Array[a(612)](e)}function Rl(e){const n=a,t=new Set;return e[n(1935)](o=>Object[n(996)](o)[n(1935)](x=>t[n(848)](x))),Array[n(1478)](t)}function Jl(e,n){const t=a;return e[t(1913)]((o,x)=>{const r=t,i=o[n],c=o[r(1877)];return{label:String(c??"项 "+(x+1)),value:typeof i===r(955)||typeof i===r(1421)?i:String(i)}})}function mi(e,n=""){const t=a,o=[];for(const[x,r]of Object[t(2057)](e)){const i=n?n+"."+x:x;r!==null&&typeof r===t(1130)&&!Array[t(612)](r)?o[t(1371)](...mi(r,i)):o[t(1371)]({paramsCode:i,paramsName:i,value:r})}return o}function _l(e,n,t){const o=a;if(yi(e)){if(n!=null&&t!=null){const x=e[o(1099)](r=>r[n]===t);if(x)return x}return{}}return e}const Ql=({material:e,onSave:n})=>{const t=a,o=e,x=o[t(1118)]||{},r=sn(w=>w[t(987)]),[i,c]=D.useState({label:x[t(2172)]||"",value:x[t(845)]||"",valueSourceCode:x[t(2114)]||"",unit:x.unit||"",decimals:x[t(1366)]??2,labelFontSize:x[t(2197)]?.[t(1147)]||14,labelFontWeight:x[t(2197)]?.[t(587)]||t(438),labelColor:x[t(2197)]?.[t(660)]||t(2083),valueFontSize:x[t(604)]?.[t(1147)]||14,valueFontWeight:x[t(604)]?.fontWeight||"normal",valueColor:x[t(604)]?.[t(660)]||t(1262),boundDatasetId:x[t(959)]||"",boundDatasetBindCode:x[t(1031)]||"",boundDatasetBindValue:x[t(1786)]??null}),u=D[t(1970)](()=>{const w=t;return r.find(z=>z.id===i[w(959)])},[r,i[t(959)]]),d=u?yi(u[t(1078)]):!1,s=D[t(1970)](()=>{const w=t;if(!u)return[];const z=_l(u[w(1078)],i[w(1031)],i.boundDatasetBindValue);return mi(z)},[u,i[t(1031)],i.boundDatasetBindValue]);D.useEffect(()=>{const w=t;c({label:x.label||"",value:x.value||"",valueSourceCode:x[w(2114)]||"",unit:x.unit||"",decimals:x[w(1366)]??2,labelFontSize:x.labelStyle?.fontSize||14,labelFontWeight:x[w(2197)]?.[w(587)]||w(438),labelColor:x.labelStyle?.[w(660)]||w(2083),valueFontSize:x[w(604)]?.[w(1147)]||14,valueFontWeight:x[w(604)]?.[w(587)]||"normal",valueColor:x.valueStyle?.[w(660)]||w(1262),boundDatasetId:x[w(959)]||"",boundDatasetBindCode:x[w(1031)]||"",boundDatasetBindValue:x.boundDatasetBindValue??null})},[e.id]);const f=(w,z)=>{c(C=>({...C,[w]:z}))},g=w=>{c(z=>({...z,boundDatasetId:w,boundDatasetBindCode:"",boundDatasetBindValue:null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetId:w||void 0,boundDatasetBindCode:void 0,boundDatasetBindValue:void 0,valueSourceCode:void 0}})},0)},h=w=>{c(z=>({...z,boundDatasetBindCode:w||"",boundDatasetBindValue:null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetBindCode:w||void 0,boundDatasetBindValue:void 0,valueSourceCode:void 0}})},0)},m=w=>{c(z=>({...z,boundDatasetBindValue:w??null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetBindValue:w??void 0,valueSourceCode:void 0}})},0)},b=w=>{const z=t,C=s[z(1099)](G=>G[z(1901)]===w),P=C?.[z(1983)]||"";c(G=>({...G,valueSourceCode:w,unit:P,value:String(C?.[z(845)]||"")})),setTimeout(()=>{n({content:{...x,valueSourceCode:w,value:String(C?.value||""),unit:P}})},0)},v=()=>{const w=t;n({content:{...x,label:i[w(2172)],value:i[w(845)],valueSourceCode:i[w(2114)],unit:i[w(1983)],decimals:i.decimals,boundDatasetId:i[w(959)]||void 0,boundDatasetBindCode:i[w(1031)]||void 0,boundDatasetBindValue:i[w(1786)]??void 0,labelStyle:{fontSize:i.labelFontSize,fontWeight:i[w(2217)],color:i.labelColor},valueStyle:{fontSize:i[w(1360)],fontWeight:i[w(780)],color:i[w(1019)]}}})},M=u&&d?Rl(u[t(1078)]):[],y=u&&d&&i[t(1031)]?Jl(u[t(1078)],i[t(1031)]):[];return l[t(873)](t(2048),{className:t(1180),children:[l.jsx(p[t(2186)],{style:{marginTop:0},children:t(1846)}),l[t(873)](p[t(765)],{layout:"vertical",children:[l[t(641)](p[t(765)][t(1207)],{label:t(1066),children:l.jsx(p[t(1984)],{value:i[t(2172)],onChange:w=>f(t(2172),w[t(966)][t(845)]),onBlur:v,placeholder:"输入标签文本"})}),l[t(641)](p[t(765)][t(1207)],{label:t(1674),help:"选择数据池中的数据集作为数据源",children:l[t(641)](p[t(2080)],{allowClear:!0,placeholder:r[t(2073)]===0?"暂无数据集":t(846),value:i.boundDatasetId||void 0,onChange:g,style:{width:t(732)},options:r.map(w=>({label:w[t(1877)],value:w.id}))})}),u&&d&&l.jsxs(l[t(1365)],{children:[l[t(641)](p[t(765)][t(1207)],{label:t(2093),help:"该数据集的 sample 为数组,请选择用于匹配数据项的字段",children:l.jsx(p[t(2080)],{allowClear:!0,placeholder:"选择绑定字段",value:i[t(1031)]||void 0,onChange:h,style:{width:t(732)},options:M[t(1913)](w=>({label:w,value:w}))})}),i[t(1031)]&&l[t(641)](p.Form[t(1207)],{label:"绑定值",help:t(1684),children:l[t(641)](p[t(2080)],{allowClear:!0,showSearch:!0,placeholder:t(441),value:i.boundDatasetBindValue??void 0,onChange:m,style:{width:"100%"},options:y,filterOption:(w,z)=>String(z?.[t(2172)]??"")[t(1372)]()[t(1992)](w[t(1372)]()),onInputKeyDown:w=>{const z=t;w[z(1699)]===" "&&w[z(462)]()}})})]}),l.jsx(p.Form.Item,{label:t(1462),help:u?t(472):"请先绑定数据集",children:l[t(641)](p[t(2080)],{value:i[t(2114)]||void 0,onChange:b,placeholder:t(u?797:1143),allowClear:!0,disabled:!u,style:{width:"100%"},options:s[t(1913)](w=>({value:w.paramsCode,label:w[t(658)]}))})}),l.jsx(p.Form[t(1207)],{label:i.valueSourceCode?t(1613):"值文本",help:i[t(2114)]?t(743):"手动输入显示的值",children:l[t(641)](p[t(1984)],{value:i.value,onChange:w=>f(t(845),w[t(966)][t(845)]),onBlur:v,placeholder:i[t(2114)]?t(1782):t(1803),disabled:!!i[t(2114)],variant:i[t(2114)]?t(1255):void 0})}),l[t(641)](p.Form.Item,{label:"单位",help:t(832),children:l[t(641)](p[t(1984)],{value:i.unit,onChange:w=>f(t(1983),w[t(966)][t(845)]),onBlur:v,placeholder:"单位(如°C、%、MPa等)",suffix:i[t(2114)]&&s[t(2073)]>0?l[t(641)](p.Tag,{color:t(585),style:{marginRight:-8},children:"自动"}):null})}),l[t(641)](p[t(765)][t(1207)],{label:"保留小数位",help:"数值格式化时保留的小数位数,-1表示不格式化",children:l[t(641)](p[t(2124)],{value:i[t(1366)],onChange:w=>f("decimals",w??2),onBlur:v,min:-1,max:10,style:{width:t(732)}})})]}),l.jsx(p[t(2186)],{children:t(2009)}),l.jsxs(p[t(765)],{layout:t(1703),children:[l[t(873)](p.Space,{children:[l[t(641)](p[t(765)][t(1207)],{label:t(614),children:l[t(641)](p[t(2124)],{value:i[t(1777)],onChange:w=>f(t(1777),w||14),onBlur:v,min:8,max:72})}),l[t(641)](p.Form.Item,{label:t(778),children:l[t(873)](p.Select,{value:i[t(2217)],onChange:w=>{f(t(2217),w),setTimeout(v,0)},style:{width:100},children:[l.jsx(ax,{value:t(2239),children:"正常"}),l.jsx(ax,{value:t(438),children:"粗体"})]})})]}),l[t(641)](p[t(765)].Item,{label:t(971),children:l[t(873)]("div",{className:t(1534),children:[l[t(641)](Wt,{value:i.labelColor||t(2083),onChange:w=>{f(t(2156),w.toHexString())},onChangeComplete:w=>{const z=t;n({content:{...x,label:i[z(2172)],value:i[z(845)],valueSourceCode:i[z(2114)],unit:i[z(1983)],decimals:i[z(1366)],boundDatasetId:i[z(959)]||void 0,boundDatasetBindCode:i[z(1031)]||void 0,boundDatasetBindValue:i[z(1786)]??void 0,labelStyle:{fontSize:i[z(1777)],fontWeight:i[z(2217)],color:w[z(1277)]()},valueStyle:{fontSize:i.valueFontSize,fontWeight:i[z(780)],color:i[z(1019)]}}})}}),l[t(641)](p[t(1984)],{value:i[t(2156)],onChange:w=>f("labelColor",w[t(966)][t(845)]),onBlur:v,placeholder:t(2083),style:{width:100}})]})})]}),l.jsx(p.Divider,{children:t(424)}),l[t(873)](p[t(765)],{layout:t(1703),children:[l[t(873)](p[t(1304)],{children:[l[t(641)](p.Form.Item,{label:t(614),children:l.jsx(p[t(2124)],{value:i[t(1360)],onChange:w=>f(t(1360),w||14),onBlur:v,min:8,max:72})}),l.jsx(p[t(765)].Item,{label:t(778),children:l[t(873)](p.Select,{value:i.valueFontWeight,onChange:w=>{f(t(780),w),setTimeout(v,0)},style:{width:100},children:[l.jsx(ax,{value:t(2239),children:"正常"}),l[t(641)](ax,{value:"bold",children:"粗体"})]})})]}),l[t(641)](p[t(765)].Item,{label:t(971),children:l[t(873)]("div",{className:t(1534),children:[l.jsx(Wt,{value:i[t(1019)]||t(1262),onChange:w=>{f(t(1019),w.toHexString())},onChangeComplete:w=>{const z=t;n({content:{...x,label:i.label,value:i[z(845)],valueSourceCode:i[z(2114)],unit:i[z(1983)],decimals:i[z(1366)],boundDatasetId:i[z(959)]||void 0,boundDatasetBindCode:i.boundDatasetBindCode||void 0,boundDatasetBindValue:i[z(1786)]??void 0,labelStyle:{fontSize:i[z(1777)],fontWeight:i[z(2217)],color:i.labelColor},valueStyle:{fontSize:i[z(1360)],fontWeight:i[z(780)],color:w[z(1277)]()}}})}}),l[t(641)](p[t(1984)],{value:i[t(1019)],onChange:w=>f(t(1019),w.target.value),onBlur:v,placeholder:t(1262),style:{width:100}})]})})]})]})},Fl=({material:e,onSave:n})=>{const t=a,o=e,[x,r]=D[t(1115)]({name:e.name,src:o[t(1199)]||"",backgroundColor:o[t(627)]||"",fillColor:o[t(1162)]||""});D[t(2224)](()=>{const u=t;r({name:e[u(1877)],src:o.src||"",backgroundColor:o[u(627)]||"",fillColor:o[u(1162)]||""})},[e.id]);const i=(u,d)=>{r(s=>({...s,[u]:d}))},c=()=>{const u=t;n({name:x[u(1877)],src:x[u(1199)],backgroundColor:x[u(627)]})};return l[t(873)](t(2048),{className:"space-y-4",children:[l.jsx(p[t(2186)],{style:{marginTop:0},children:t(1933)}),l[t(873)](p[t(765)],{layout:t(1703),children:[l[t(641)](p.Form.Item,{label:t(1036),children:l[t(641)](p[t(1984)],{value:x[t(1877)],onChange:u=>i(t(1877),u[t(966)][t(845)]),onBlur:c})}),l[t(641)](p[t(765)][t(1207)],{label:t(802),children:l[t(641)](p[t(1984)][t(481)],{value:x[t(1199)],onChange:u=>i(t(1199),u.target[t(845)]),onBlur:c,rows:4,placeholder:t(982)})}),l[t(641)](p[t(765)][t(1207)],{label:t(1197),children:l[t(873)](t(2048),{className:t(1534),children:[l[t(641)](Wt,{value:x[t(1162)]||t(1262),onChange:u=>{const d=t,s=u[d(1277)]();i(d(1162),s),n({name:x[d(1877)],src:x[d(1199)],backgroundColor:x[d(627)],fillColor:s})}}),l[t(641)](p[t(1984)],{value:x.fillColor,onChange:u=>i(t(1162),u.target[t(845)]),onBlur:c,placeholder:t(1262)})]})}),l[t(641)](p.Form.Item,{label:t(638),children:l[t(873)]("div",{className:t(1534),children:[l[t(641)](Wt,{value:x[t(627)]||t(1262),onChange:u=>{const d=t,s=u[d(1277)]();i(d(627),s),n({name:x.name,src:x.src,backgroundColor:s,fillColor:x[d(1162)]})}}),l[t(641)](p[t(1984)],{value:x.backgroundColor,onChange:u=>i(t(627),u[t(966)][t(845)]),onBlur:c,placeholder:t(1262)})]})})]})]})},{Option:$l}=p[a(2080)],ed=({material:e,onSave:n})=>{const t=a,o=e[t(678)]||{},[x,r]=D.useState({lineWeight:o[t(566)]||o[t(1708)]||2,color:o[t(660)]||"#262626",lineType:o[t(1194)]||t(1769),startX:o[t(1025)]??0,startY:o.startY??0,endX:o[t(1602)]??100,endY:o[t(2041)]??0,rotate:o.rotate??0}),i=JSON[t(1270)]({sw:o[t(566)]??o[t(1708)],c:o[t(660)],t:o[t(1194)],sx:o[t(1025)],sy:o[t(1581)],ex:o.endX,ey:o[t(2041)],r:o[t(1646)]});D[t(2224)](()=>{const d=t;r({lineWeight:o[d(566)]||o[d(1708)]||2,color:o.color||d(2083),lineType:o[d(1194)]||d(1769),startX:o[d(1025)]??0,startY:o.startY??0,endX:o[d(1602)]??100,endY:o[d(2041)]??0,rotate:o[d(1646)]??0})},[e.id,i]);const c=d=>{const s=t,f={...x,...d};r(f),n({config:{...o,thickness:f.lineWeight,lineWeight:f.lineWeight,color:f[s(660)],lineType:f[s(1194)],startX:f[s(1025)],startY:f[s(1581)],endX:f[s(1602)],endY:f[s(2041)],rotate:f[s(1646)]}})},u=[{value:t(1769),label:"实线",desc:t(1476)},{value:t(972),label:"虚线",desc:t(1560)},{value:t(1571),label:t(950),desc:t(706)},{value:t(1213),label:"假想线",desc:t(1576)},{value:t(1502),label:"点线",desc:t(448)},{value:t(1788),label:t(1040),desc:t(1719)}];return l[t(873)](t(2048),{className:"space-y-4",children:[l[t(641)](p.Divider,{style:{marginTop:0},children:t(937)}),l[t(873)](p[t(765)],{layout:t(1703),children:[l.jsxs("div",{className:t(2008),children:[l[t(641)](p[t(765)][t(1207)],{label:"起点 X",className:t(1664),children:l[t(641)](p[t(2124)],{value:x[t(1025)],onChange:d=>c({startX:d??0}),style:{width:"100%"},step:10**-yt})}),l[t(641)](p[t(765)][t(1207)],{label:t(595),className:t(1664),children:l[t(641)](p.InputNumber,{value:x.startY,onChange:d=>c({startY:d??0}),style:{width:t(732)},step:10**-yt})}),l[t(641)](p.Form.Item,{label:"终点 X",className:t(1664),children:l[t(641)](p[t(2124)],{value:x[t(1602)],onChange:d=>c({endX:d??100}),style:{width:"100%"},step:10**-yt})}),l[t(641)](p[t(765)][t(1207)],{label:t(1091),className:t(1664),children:l[t(641)](p[t(2124)],{value:x[t(2041)],onChange:d=>c({endY:d??0}),style:{width:t(732)},step:10**-yt})})]}),l[t(641)](p[t(765)][t(1207)],{label:"快速对齐",className:"mt-4",children:l[t(873)](p[t(1304)],{children:[l[t(641)](p[t(653)],{size:t(2055),onClick:()=>{const d=t,s=o[d(1025)]??x.startX,f=o[d(1581)]??x[d(1581)],g=o.endX??x.endX,h=o[d(2041)]??x[d(2041)],m=g-s,b=h-f,v=Math[d(1012)](m*m+b*b),M=m>=0?1:-1;c({endX:s+M*v,endY:f})},title:t(868),children:"水平"}),l.jsx(p[t(653)],{size:t(2055),onClick:()=>{const d=t,s=o[d(1025)]??x[d(1025)],f=o[d(1581)]??x[d(1581)],g=o[d(1602)]??x[d(1602)],h=o[d(2041)]??x[d(2041)],m=g-s,b=h-f,v=Math[d(1012)](m*m+b*b),M=b>=0?1:-1;c({endX:s,endY:f+M*v})},title:t(822),children:"垂直"}),l.jsx(p[t(653)],{size:t(2055),onClick:()=>{const d=t,s=o.startX??x[d(1025)],f=o[d(1581)]??x[d(1581)],g=o[d(1602)]??x[d(1602)],h=o[d(2041)]??x[d(2041)];c({startX:g,startY:h,endX:s,endY:f})},title:t(1250),children:"反向"})]})}),l[t(641)](p[t(765)][t(1207)],{label:"旋转角度(度)",help:t(2234),children:l[t(641)](p.InputNumber,{value:x.rotate,onChange:d=>{const s=t,f=d??0,g=o[s(1025)]??x[s(1025)],h=o[s(1581)]??x.startY,m=o[s(1602)]??x[s(1602)],b=o[s(2041)]??x.endY,v=m-g,M=b-h,y=Math.sqrt(v*v+M*M),w=f*Math.PI/180;c({rotate:f,endX:he(g+y*Math[s(2191)](w)),endY:he(h+y*Math.sin(w))})},style:{width:120}})})]}),l[t(641)](p[t(2186)],{children:t(1477)}),l[t(873)](p[t(765)],{layout:"vertical",children:[l[t(641)](p[t(765)][t(1207)],{label:"线型",help:t(866),children:l.jsx(p.Select,{value:x[t(1194)],onChange:d=>c({lineType:d}),children:u[t(1913)](d=>l[t(641)]($l,{value:d.value,children:l[t(873)](t(2048),{className:t(2236),children:[l[t(641)](t(909),{children:d[t(2172)]}),l[t(641)](t(909),{className:t(1818),children:d[t(1752)]})]})},d.value))})}),l[t(641)](p[t(765)][t(1207)],{label:t(1026),children:l[t(641)](p[t(2124)],{value:x.lineWeight,onChange:d=>c({lineWeight:d||2}),min:1,max:20,style:{width:120}})}),l[t(641)](p.Form.Item,{label:"颜色",children:l[t(873)](t(2048),{className:t(1534),children:[l[t(641)](Wt,{value:x[t(660)]||"#d9d9d9",onChange:d=>c({color:d[t(1277)]()})}),l[t(641)](p[t(1984)],{value:x[t(660)],onChange:d=>c({color:d[t(966)][t(845)]}),placeholder:t(773),style:{width:100}})]})})]})]})};function wi(e){return Array.isArray(e)}function nd(e){const n=a,t=new Set;return e[n(1935)](o=>Object.keys(o).forEach(x=>t[n(848)](x))),Array[n(1478)](t)}function td(e,n){return e.map((t,o)=>{const x=_0x3847,r=t[n],i=t[x(1877)];return{label:String(i??"项 "+(o+1)),value:typeof r===x(955)||typeof r===x(1421)?r:String(r)}})}function xd(e,n,t){const o=a;if(wi(e)){if(n!=null&&t!=null){const x=e[o(1099)](r=>r[n]===t);if(x)return x}return{}}return e}const vi=({status:e,onUpdate:n,onAppendToExpression:t})=>{const o=a,x=sn(b=>b[o(987)]),r=x[o(1099)](b=>b.id===e[o(959)]),i=r?wi(r[o(1078)]):!1,c=r?xd(r.sample,e[o(1031)],e[o(1786)]):{},u=jr(c),d=b=>{const v=o,M=v(1120)+b;t?t(M):n({expression:""+(e.expression||"")+M})},s=b=>{n({boundDatasetId:b??null,boundDatasetBindCode:null,boundDatasetBindValue:null})},f=b=>{n({boundDatasetBindCode:b??null,boundDatasetBindValue:null})},g=b=>{n({boundDatasetBindValue:b??null})},h=r&&i?nd(r[o(1078)]):[],m=r&&i&&e.boundDatasetBindCode?td(r[o(1078)],e[o(1031)]):[];return l.jsxs(l.Fragment,{children:[l[o(641)](p.Form[o(1207)],{label:o(1674),extra:x[o(2073)]===0?"请先在顶部工具栏点击「数据池」添加至少一个数据集(JSON 对象模板);宿主项目也可通过 initialScheme.dataPool 或 useEditorStore.getState().setDataPool() 注入。":o(493),children:l[o(641)](p[o(2080)],{allowClear:!0,showSearch:!0,placeholder:x[o(2073)]===0?o(1282):o(1917),value:e[o(959)]??void 0,options:x[o(1913)](b=>({label:b[o(1877)],value:b.id})),onChange:s,filterOption:(b,v)=>String(v?.[o(2172)]??"")[o(1372)]().includes(b[o(1372)]()),onInputKeyDown:b=>{b[o(1699)]===" "&&b.stopPropagation()}})}),r&&i&&l[o(873)](l[o(1365)],{children:[l[o(641)](p[o(765)][o(1207)],{label:"绑定字段",extra:o(1341),children:l[o(641)](p[o(2080)],{allowClear:!0,placeholder:o(1795),value:e.boundDatasetBindCode??void 0,options:h[o(1913)](b=>({label:b,value:b})),onChange:f})}),e[o(1031)]&&l[o(641)](p[o(765)][o(1207)],{label:o(1467),extra:o(1684),children:l[o(641)](p.Select,{allowClear:!0,showSearch:!0,placeholder:"选择绑定值",value:e[o(1786)]??void 0,options:m,onChange:g,filterOption:(b,v)=>String(v?.label??"")[o(1372)]()[o(1992)](b[o(1372)]()),onInputKeyDown:b=>{const v=o;b.key===" "&&b[v(462)]()}})})]}),u[o(2073)]>0&&l[o(641)](p[o(765)][o(1207)],{label:o(1206),children:l[o(641)](p[o(1304)],{size:[4,4],wrap:!0,children:u[o(1913)](b=>l[o(641)](p[o(1006)],{className:o(1863),onClick:()=>d(b),children:o(1120)+b},b))})})]})},pi=({material:e,onSave:n})=>{const t=a;switch(e[t(1939)]){case t(1155):return l.jsx(Ql,{material:e,onSave:n});case t(425):return l[t(641)](Fl,{material:e,onSave:n});case t(1013):return l[t(641)](ed,{material:e,onSave:n});default:return l[t(641)](t(2048),{className:t(883),children:t(903)})}},{Panel:zi}=p[a(1929)],{TextArea:od}=p[a(1984)],rd=({node:e,updateNode:n,materials:t})=>{const o=a,x=t[o(526)](f=>f[o(1939)]!==o(1202)||!f[o(678)]?.[o(1687)]),r=(f,g)=>{const h=o,m=e.children?.[h(1913)](b=>{const v=h;return b.id===f?{...b,contentInfo:{...b[v(1472)],statusList:g}}:b});n(e.id,{children:m})},i=f=>{const g=o,h=e[g(1920)]?.[g(1099)](b=>b.id===f);if(!h)return;const m={id:Ae[g(558)](),name:"状态"+(h[g(1472)][g(665)][g(2073)]+1),expression:h[g(1472)].statusList.length===0?"return true;":"return false;",material:{...x[0],id:Ae[g(558)]()},boundDatasetId:null,animation:{type:g(1895)}};r(f,[...h[g(1472)].statusList,m])},c=(f,g)=>{const h=o,m=e[h(1920)]?.[h(1099)](v=>v.id===f);if(!m)return;const b=m[h(1472)][h(665)][h(526)](v=>v.id!==g);r(f,b)},u=(f,g,h)=>{const m=o,b=e[m(1920)]?.[m(1099)](M=>M.id===f);if(!b)return;const v=b[m(1472)][m(665)][m(1913)](M=>M.id===g?{...M,...h}:M);r(f,v)},d=(f,g,h)=>{const m=o,b=e[m(1920)]?.[m(1099)](y=>y.id===f);if(!b)return;const v=b.contentInfo[m(665)].findIndex(y=>y.id===g);if(v===-1)return;const M=[...b[m(1472)][m(665)]];h==="up"&&v>0?[M[v],M[v-1]]=[M[v-1],M[v]]:h===m(556)&&v<M[m(2073)]-1&&([M[v],M[v+1]]=[M[v+1],M[v]]),r(f,M)},s=(f,g,h)=>{const m=o,b=t[m(1099)](v=>v.id===h);b&&u(f,g,{material:{...b,id:Ae[m(558)]()}})};return l[o(873)](o(2048),{className:o(1180),children:[l.jsx(o(2048),{className:o(867),children:l[o(873)](o(2048),{className:o(2158),children:[l.jsx(o(1897),{children:"群组节点"}),":为每个子节点配置多个状态和绑定"]})}),l[o(641)](p.Collapse,{ghost:!0,children:e[o(1920)]?.[o(1913)]((f,g)=>l.jsx(zi,{header:l[o(873)](o(2048),{className:o(1724),children:[l.jsxs(o(909),{className:o(596),children:[o(1864),g+1]}),l[o(873)](p[o(1006)],{color:o(585),style:{fontSize:o(1337),padding:o(895)},children:[f.contentInfo[o(665)].length,o(2286)]})]}),children:l[o(873)](o(2048),{className:o(1794),children:[l[o(873)](o(2048),{className:"flex justify-between items-center mb-3",children:[l[o(641)](o(909),{className:o(1880),children:o(748)}),l[o(641)](p[o(653)],{type:o(1338),size:o(2055),icon:l.jsx(be[o(1588)],{}),onClick:()=>i(f.id),children:o(731)})]}),f[o(1472)][o(665)][o(2073)]===0?l[o(641)](o(2048),{className:o(1399),children:"暂无状态,点击上方按钮添加"}):l[o(641)](p.Collapse,{ghost:!0,children:f[o(1472)][o(665)].map((h,m)=>l.jsx(zi,{header:l[o(873)](o(2048),{className:o(1534),children:[l[o(641)](o(909),{className:"text-xs text-gray-400 w-5",children:m+1}),l.jsx(o(909),{className:o(1082),children:h.name}),l[o(641)](p[o(1006)],{color:"default",className:"text-xs",children:h[o(1200)][o(1939)]})]}),extra:l[o(873)](p.Space,{size:o(2055),onClick:b=>b.stopPropagation(),children:[l.jsx(p[o(653)],{type:o(1815),size:"small",icon:l[o(641)](be.ArrowUpOutlined,{}),disabled:m===0,onClick:b=>{b[o(462)](),d(f.id,h.id,"up")}}),l.jsx(p[o(653)],{type:"text",size:"small",icon:l[o(641)](be[o(468)],{}),disabled:m===f.contentInfo[o(665)][o(2073)]-1,onClick:b=>{const v=o;b.stopPropagation(),d(f.id,h.id,v(556))}}),l[o(641)](p[o(653)],{type:o(1815),size:o(2055),danger:!0,icon:l[o(641)](be.DeleteOutlined,{}),onClick:b=>{b[o(462)](),c(f.id,h.id)}})]}),children:l[o(873)](p.Form,{layout:"vertical",children:[l[o(641)](p[o(765)].Item,{label:o(1531),children:l[o(641)](p[o(1984)],{value:h[o(1877)],onChange:b=>u(f.id,h.id,{name:b.target[o(845)]}),placeholder:o(549)})}),l.jsx(vi,{status:h,onUpdate:b=>u(f.id,h.id,b)}),l[o(641)](p.Form[o(1207)],{label:"执行表达式",help:o(1042),children:l.jsx(od,{value:h[o(1555)],onChange:b=>u(f.id,h.id,{expression:b.target[o(845)]}),rows:3,placeholder:o(1606)})}),l[o(641)](p.Form.Item,{label:o(1443),children:l.jsxs("div",{className:o(1534),children:[l[o(641)](p[o(1006)],{color:"blue",children:h.material.name}),l.jsx(p[o(1006)],{color:o(542),children:h[o(1200)][o(1939)]}),l[o(641)](p[o(2080)],{placeholder:o(2094),style:{width:150},value:void 0,onChange:b=>b&&s(f.id,h.id,b),options:x[o(1913)](b=>({value:b.id,label:b[o(1877)]+" ("+b[o(1939)]+")"}))})]})}),l.jsx(p[o(2186)],{style:{margin:"12px 0"}}),l[o(873)]("div",{className:o(947),children:[l[o(641)](o(2048),{className:"flex items-center justify-between mb-2",children:l.jsx(o(909),{className:"text-sm font-medium",children:o(1232)})}),l[o(641)](p[o(765)][o(1207)],{label:"动画类型",className:o(1664),children:l[o(641)](p[o(2080)],{value:h[o(1516)]?.type||o(1895),onChange:b=>u(f.id,h.id,{animation:{...h[o(1516)]||{type:"none"},type:b}}),options:[{label:"无",value:o(1895)},{label:"闪烁",value:o(1747)}]})}),h[o(1516)]?.[o(1939)]===o(1747)&&l[o(873)](l[o(1365)],{children:[l[o(641)](p[o(765)][o(1207)],{label:o(2201),className:o(1664),children:l.jsx(p[o(2124)],{min:200,max:1e4,step:100,value:h[o(1516)].duration??1e3,onChange:b=>u(f.id,h.id,{animation:{...h.animation,duration:b??1e3}})})}),l[o(641)](p[o(765)][o(1207)],{label:o(1754),className:o(2176),children:l[o(641)](p[o(2124)],{min:0,max:1,step:.1,value:h[o(1516)][o(1537)]??.3,onChange:b=>u(f.id,h.id,{animation:{...h.animation,minOpacity:b??.3}})})})]})]}),l[o(641)](p[o(2186)],{style:{margin:o(1604)}}),l[o(873)](o(2048),{className:o(947),children:[l[o(873)](o(2048),{className:o(1420),children:[l[o(641)]("span",{className:o(887),children:"物料属性"}),l[o(641)](p[o(1006)],{children:h.material[o(1877)]})]}),l[o(641)](pi,{material:h[o(1200)],onSave:b=>{const v=o,M={...h[v(1200)],...b};u(f.id,h.id,{material:M})}})]})]})},h.id))})]})},f.id))})]})};function rn(e){const n=a;if(typeof e===n(955)||typeof e===n(1421))return""+e;let t="";if(Array.isArray(e))for(let o=0,x;o<e[n(2073)];o++)(x=rn(e[o]))!==""&&(t+=(t&&" ")+x);else for(let o in e)e[o]&&(t+=(t&&" ")+o);return t}var id={value:()=>{}};function sx(){const e=a;for(var n=0,t=arguments.length,o={},x;n<t;++n){if(!(x=arguments[n]+"")||x in o||/[\s.]/[e(1254)](x))throw new Error("illegal type: "+x);o[x]=[]}return new lx(o)}function lx(e){this._=e}function cd(e,n){const t=a;return e[t(1215)]()[t(1999)](/^|\s+/)[t(1913)](function(o){const x=t;var r="",i=o.indexOf(".");if(i>=0&&(r=o[x(1243)](i+1),o=o.slice(0,i)),o&&!n.hasOwnProperty(o))throw new Error(x(1403)+o);return{type:o,name:r}})}lx[a(1589)]=sx[a(1589)]={constructor:lx,on:function(e,n){const t=a;var o=this._,x=cd(e+"",o),r,i=-1,c=x[t(2073)];if(arguments.length<2){for(;++i<c;)if((r=(e=x[i])[t(1939)])&&(r=ad(o[r],e[t(1877)])))return r;return}if(n!=null&&typeof n!==t(1145))throw new Error(t(1238)+n);for(;++i<c;)if(r=(e=x[i]).type)o[r]=Ci(o[r],e[t(1877)],n);else if(n==null)for(r in o)o[r]=Ci(o[r],e[t(1877)],null);return this},copy:function(){var e={},n=this._;for(var t in n)e[t]=n[t].slice();return new lx(e)},call:function(e,n){const t=a;if((r=arguments[t(2073)]-2)>0)for(var o=new Array(r),x=0,r,i;x<r;++x)o[x]=arguments[x+2];if(!this._[t(715)](e))throw new Error("unknown type: "+e);for(i=this._[e],x=0,r=i.length;x<r;++x)i[x].value.apply(n,o)},apply:function(e,n,t){const o=a;if(!this._[o(715)](e))throw new Error(o(1403)+e);for(var x=this._[e],r=0,i=x[o(2073)];r<i;++r)x[r].value[o(1858)](n,t)}};function ad(e,n){const t=a;for(var o=0,x=e[t(2073)],r;o<x;++o)if((r=e[o])[t(1877)]===n)return r[t(845)]}function Ci(e,n,t){const o=a;for(var x=0,r=e[o(2073)];x<r;++x)if(e[x].name===n){e[x]=id,e=e.slice(0,x)[o(1596)](e.slice(x+1));break}return t!=null&&e[o(1371)]({name:n,value:t}),e}var Bo=a(1154);const Mi={svg:"http://www.w3.org/2000/svg",xhtml:Bo,xlink:a(1869),xml:a(742),xmlns:"http://www.w3.org/2000/xmlns/"};function dx(e){const n=a;var t=e+="",o=t[n(623)](":");return o>=0&&(t=e[n(1243)](0,o))!==n(719)&&(e=e.slice(o+1)),Mi.hasOwnProperty(t)?{space:Mi[t],local:e}:e}function sd(e){return function(){const n=_0x3847;var t=this[n(1439)],o=this.namespaceURI;return o===Bo&&t[n(1400)][n(1303)]===Bo?t[n(2030)](e):t[n(1792)](o,e)}}function ld(e){return function(){return this[_0x3847(1439)].createElementNS(e.space,e.local)}}function Bi(e){const n=a;var t=dx(e);return(t[n(1996)]?ld:sd)(t)}function dd(){}function Do(e){return e==null?dd:function(){return this.querySelector(e)}}function ud(e){const n=a;typeof e!==n(1145)&&(e=Do(e));for(var t=this[n(2198)],o=t[n(2073)],x=new Array(o),r=0;r<o;++r)for(var i=t[r],c=i[n(2073)],u=x[r]=new Array(c),d,s,f=0;f<c;++f)(d=i[f])&&(s=e.call(d,d[n(2287)],f,i))&&(n(2287)in d&&(s.__data__=d[n(2287)]),u[f]=s);return new Mn(x,this._parents)}function fd(e){const n=a;return e==null?[]:Array.isArray(e)?e:Array[n(1478)](e)}function bd(){return[]}function Di(e){return e==null?bd:function(){return this[_0x3847(2252)](e)}}function hd(e){return function(){return fd(e[_0x3847(1858)](this,arguments))}}function gd(e){const n=a;typeof e===n(1145)?e=hd(e):e=Di(e);for(var t=this._groups,o=t.length,x=[],r=[],i=0;i<o;++i)for(var c=t[i],u=c.length,d,s=0;s<u;++s)(d=c[s])&&(x[n(1371)](e[n(1780)](d,d[n(2287)],s,c)),r[n(1371)](d));return new Mn(x,r)}function Li(e){return function(){return this[_0x3847(2266)](e)}}function Ni(e){return function(n){return n[_0x3847(2266)](e)}}var yd=Array[a(1589)][a(1099)];function md(e){return function(){const n=_0x3847;return yd.call(this[n(1920)],e)}}function wd(){return this[a(2147)]}function vd(e){const n=a;return this[n(505)](e==null?wd:md(typeof e===n(1145)?e:Ni(e)))}var pd=Array.prototype.filter;function zd(){return Array[a(1478)](this.children)}function Cd(e){return function(){const n=_0x3847;return pd[n(1780)](this[n(1920)],e)}}function Md(e){const n=a;return this[n(1856)](e==null?zd:Cd(typeof e===n(1145)?e:Ni(e)))}function Bd(e){const n=a;typeof e!==n(1145)&&(e=Li(e));for(var t=this._groups,o=t[n(2073)],x=new Array(o),r=0;r<o;++r)for(var i=t[r],c=i[n(2073)],u=x[r]=[],d,s=0;s<c;++s)(d=i[s])&&e[n(1780)](d,d[n(2287)],s,i)&&u[n(1371)](d);return new Mn(x,this[n(1891)])}function Si(e){const n=a;return new Array(e[n(2073)])}function Dd(){const e=a;return new Mn(this._enter||this[e(2198)][e(1913)](Si),this[e(1891)])}function ux(e,n){const t=a;this[t(1439)]=e[t(1439)],this[t(1303)]=e[t(1303)],this[t(461)]=null,this[t(1038)]=e,this[t(2287)]=n}ux[a(1589)]={constructor:ux,appendChild:function(e){const n=a;return this._parent[n(1387)](e,this[n(461)])},insertBefore:function(e,n){const t=a;return this[t(1038)][t(1387)](e,n)},querySelector:function(e){const n=a;return this._parent[n(525)](e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Ld(e){return function(){return e}}function Nd(e,n,t,o,x,r){const i=a;for(var c=0,u,d=n[i(2073)],s=r[i(2073)];c<s;++c)(u=n[c])?(u[i(2287)]=r[c],o[c]=u):t[c]=new ux(e,r[c]);for(;c<d;++c)(u=n[c])&&(x[c]=u)}function Sd(e,n,t,o,x,r,i){const c=a;var u,d,s=new Map,f=n.length,g=r[c(2073)],h=new Array(f),m;for(u=0;u<f;++u)(d=n[u])&&(h[u]=m=i[c(1780)](d,d.__data__,u,n)+"",s[c(2012)](m)?x[u]=d:s.set(m,d));for(u=0;u<g;++u)m=i.call(e,r[u],u,r)+"",(d=s.get(m))?(o[u]=d,d[c(2287)]=r[u],s[c(929)](m)):t[u]=new ux(e,r[u]);for(u=0;u<f;++u)(d=n[u])&&s[c(2250)](h[u])===d&&(x[u]=d)}function kd(e){return e[a(2287)]}function Id(e,n){const t=a;if(!arguments[t(2073)])return Array[t(1478)](this,kd);var o=n?Sd:Nd,x=this[t(1891)],r=this[t(2198)];typeof e!==t(1145)&&(e=Ld(e));for(var i=r[t(2073)],c=new Array(i),u=new Array(i),d=new Array(i),s=0;s<i;++s){var f=x[s],g=r[s],h=g[t(2073)],m=Pd(e[t(1780)](f,f&&f[t(2287)],s,x)),b=m[t(2073)],v=u[s]=new Array(b),M=c[s]=new Array(b),y=d[s]=new Array(h);o(f,g,v,M,y,m,n);for(var w=0,z=0,C,P;w<b;++w)if(C=v[w]){for(w>=z&&(z=w+1);!(P=M[z])&&++z<b;);C[t(461)]=P||null}}return c=new Mn(c,x),c[t(1073)]=u,c._exit=d,c}function Pd(e){const n=a;return typeof e===n(1130)&&n(2073)in e?e:Array.from(e)}function jd(){const e=a;return new Mn(this._exit||this[e(2198)][e(1913)](Si),this[e(1891)])}function Ad(e,n,t){const o=a;var x=this[o(1263)](),r=this,i=this[o(806)]();return typeof e===o(1145)?(x=e(x),x&&(x=x[o(2273)]())):x=x[o(1076)](e+""),n!=null&&(r=n(r),r&&(r=r[o(2273)]())),t==null?i.remove():t(i),x&&r?x[o(2235)](r).order():r}function Ed(e){const n=a;for(var t=e[n(2273)]?e[n(2273)]():e,o=this[n(2198)],x=t[n(2198)],r=o.length,i=x[n(2073)],c=Math[n(1449)](r,i),u=new Array(r),d=0;d<c;++d)for(var s=o[d],f=x[d],g=s[n(2073)],h=u[d]=new Array(g),m,b=0;b<g;++b)(m=s[b]||f[b])&&(h[b]=m);for(;d<r;++d)u[d]=o[d];return new Mn(u,this._parents)}function Yd(){const e=a;for(var n=this[e(2198)],t=-1,o=n.length;++t<o;)for(var x=n[t],r=x[e(2073)]-1,i=x[r],c;--r>=0;)(c=x[r])&&(i&&c.compareDocumentPosition(i)^4&&i[e(490)].insertBefore(c,i),i=c);return this}function Ud(e){const n=a;e||(e=Od);function t(g,h){const m=_0x3847;return g&&h?e(g[m(2287)],h[m(2287)]):!g-!h}for(var o=this[n(2198)],x=o[n(2073)],r=new Array(x),i=0;i<x;++i){for(var c=o[i],u=c[n(2073)],d=r[i]=new Array(u),s,f=0;f<u;++f)(s=c[f])&&(d[f]=s);d.sort(t)}return new Mn(r,this[n(1891)]).order()}function Od(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function Gd(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Hd(){return Array[a(1478)](this)}function Td(){const e=a;for(var n=this[e(2198)],t=0,o=n[e(2073)];t<o;++t)for(var x=n[t],r=0,i=x[e(2073)];r<i;++r){var c=x[r];if(c)return c}return null}function Vd(){let e=0;for(const n of this)++e;return e}function qd(){return!this[a(694)]()}function Wd(e){const n=a;for(var t=this[n(2198)],o=0,x=t[n(2073)];o<x;++o)for(var r=t[o],i=0,c=r[n(2073)],u;i<c;++i)(u=r[i])&&e[n(1780)](u,u.__data__,i,r);return this}function Xd(e){return function(){this[_0x3847(724)](e)}}function Kd(e){return function(){const n=_0x3847;this[n(1626)](e[n(2257)],e.local)}}function Zd(e,n){return function(){this.setAttribute(e,n)}}function Rd(e,n){return function(){const t=_0x3847;this.setAttributeNS(e[t(2257)],e[t(1996)],n)}}function Jd(e,n){return function(){const t=_0x3847;var o=n.apply(this,arguments);o==null?this[t(724)](e):this[t(2278)](e,o)}}function _d(e,n){return function(){const t=_0x3847;var o=n[t(1858)](this,arguments);o==null?this[t(1626)](e[t(2257)],e[t(1996)]):this[t(668)](e[t(2257)],e[t(1996)],o)}}function Qd(e,n){const t=a;var o=dx(e);if(arguments[t(2073)]<2){var x=this[t(694)]();return o[t(1996)]?x[t(752)](o[t(2257)],o[t(1996)]):x[t(1812)](o)}return this.each((n==null?o.local?Kd:Xd:typeof n===t(1145)?o[t(1996)]?_d:Jd:o[t(1996)]?Rd:Zd)(o,n))}function ki(e){const n=a;return e[n(1439)]&&e[n(1439)][n(1644)]||e[n(1629)]&&e||e[n(1644)]}function Fd(e){return function(){const n=_0x3847;this[n(501)][n(1271)](e)}}function $d(e,n,t){return function(){const o=_0x3847;this[o(501)][o(1430)](e,n,t)}}function eu(e,n,t){return function(){const o=_0x3847;var x=n[o(1858)](this,arguments);x==null?this.style[o(1271)](e):this.style[o(1430)](e,x,t)}}function nu(e,n,t){const o=a;return arguments.length>1?this[o(1952)]((n==null?Fd:typeof n=="function"?eu:$d)(e,n,t??"")):Xt(this[o(694)](),e)}function Xt(e,n){const t=a;return e[t(501)][t(1566)](n)||ki(e)[t(965)](e,null)[t(1566)](n)}function tu(e){return function(){delete this[e]}}function xu(e,n){return function(){this[e]=n}}function ou(e,n){return function(){var o=n[_0x3847(1858)](this,arguments);o==null?delete this[e]:this[e]=o}}function ru(e,n){const t=a;return arguments[t(2073)]>1?this[t(1952)]((n==null?tu:typeof n===t(1145)?ou:xu)(e,n)):this[t(694)]()[e]}function Ii(e){const n=a;return e.trim()[n(1999)](/^|\s+/)}function Lo(e){return e[a(1361)]||new Pi(e)}function Pi(e){const n=a;this[n(924)]=e,this[n(1429)]=Ii(e[n(1812)](n(1761))||"")}Pi[a(1589)]={add:function(e){const n=a;var t=this[n(1429)][n(623)](e);t<0&&(this[n(1429)].push(e),this._node[n(2278)](n(1761),this[n(1429)][n(2219)](" ")))},remove:function(e){const n=a;var t=this[n(1429)][n(623)](e);t>=0&&(this[n(1429)][n(2227)](t,1),this[n(924)][n(2278)](n(1761),this[n(1429)][n(2219)](" ")))},contains:function(e){return this[a(1429)].indexOf(e)>=0}};function ji(e,n){const t=a;for(var o=Lo(e),x=-1,r=n[t(2073)];++x<r;)o.add(n[x])}function Ai(e,n){const t=a;for(var o=Lo(e),x=-1,r=n[t(2073)];++x<r;)o[t(1805)](n[x])}function iu(e){return function(){ji(this,e)}}function cu(e){return function(){Ai(this,e)}}function au(e,n){return function(){(n[_0x3847(1858)](this,arguments)?ji:Ai)(this,e)}}function su(e,n){const t=a;var o=Ii(e+"");if(arguments[t(2073)]<2){for(var x=Lo(this.node()),r=-1,i=o[t(2073)];++r<i;)if(!x[t(1216)](o[r]))return!1;return!0}return this.each((typeof n===t(1145)?au:n?iu:cu)(o,n))}function lu(){const e=a;this[e(1060)]=""}function du(e){return function(){const n=_0x3847;this[n(1060)]=e}}function uu(e){return function(){const n=_0x3847;var t=e[n(1858)](this,arguments);this[n(1060)]=t??""}}function fu(e){const n=a;return arguments[n(2073)]?this.each(e==null?lu:(typeof e===n(1145)?uu:du)(e)):this[n(694)]()[n(1060)]}function bu(){const e=a;this[e(1453)]=""}function hu(e){return function(){this.innerHTML=e}}function gu(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function yu(e){const n=a;return arguments[n(2073)]?this[n(1952)](e==null?bu:(typeof e===n(1145)?gu:hu)(e)):this[n(694)]()[n(1453)]}function mu(){const e=a;this[e(1872)]&&this[e(490)].appendChild(this)}function wu(){return this.each(mu)}function vu(){const e=a;this.previousSibling&&this.parentNode[e(1387)](this,this[e(490)].firstChild)}function pu(){return this[a(1952)](vu)}function zu(e){const n=a;var t=typeof e===n(1145)?e:Bi(e);return this[n(505)](function(){const o=n;return this[o(1580)](t[o(1858)](this,arguments))})}function Cu(){return null}function Mu(e,n){const t=a;var o=typeof e=="function"?e:Bi(e),x=n==null?Cu:typeof n===t(1145)?n:Do(n);return this[t(505)](function(){const r=t;return this[r(1387)](o[r(1858)](this,arguments),x[r(1858)](this,arguments)||null)})}function Bu(){const e=a;var n=this[e(490)];n&&n[e(2069)](this)}function Du(){return this[a(1952)](Bu)}function Lu(){const e=a;var n=this[e(1191)](!1),t=this[e(490)];return t?t[e(1387)](n,this[e(1872)]):n}function Nu(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function Su(e){return this[a(505)](e?Nu:Lu)}function ku(e){const n=a;return arguments.length?this.property("__data__",e):this.node()[n(2287)]}function Iu(e){return function(n){e[_0x3847(1780)](this,n,this.__data__)}}function Pu(e){const n=a;return e[n(1215)]()[n(1999)](/^|\s+/)[n(1913)](function(t){const o=n;var x="",r=t[o(623)](".");return r>=0&&(x=t[o(1243)](r+1),t=t[o(1243)](0,r)),{type:t,name:x}})}function ju(e){return function(){const n=_0x3847;var t=this[n(823)];if(t){for(var o=0,x=-1,r=t[n(2073)],i;o<r;++o)i=t[o],(!e[n(1939)]||i[n(1939)]===e[n(1939)])&&i.name===e[n(1877)]?this.removeEventListener(i[n(1939)],i[n(1328)],i[n(479)]):t[++x]=i;++x?t[n(2073)]=x:delete this[n(823)]}}}function Au(e,n,t){return function(){const o=_0x3847;var x=this[o(823)],r,i=Iu(n);if(x){for(var c=0,u=x.length;c<u;++c)if((r=x[c])[o(1939)]===e.type&&r[o(1877)]===e.name){this[o(662)](r.type,r[o(1328)],r[o(479)]),this.addEventListener(r[o(1939)],r[o(1328)]=i,r[o(479)]=t),r.value=n;return}}this.addEventListener(e[o(1939)],i,t),r={type:e[o(1939)],name:e[o(1877)],value:n,listener:i,options:t},x?x[o(1371)](r):this[o(823)]=[r]}}function Eu(e,n,t){const o=a;var x=Pu(e+""),r,i=x[o(2073)],c;if(arguments.length<2){var u=this[o(694)]()[o(823)];if(u){for(var d=0,s=u.length,f;d<s;++d)for(r=0,f=u[d];r<i;++r)if((c=x[r])[o(1939)]===f[o(1939)]&&c.name===f[o(1877)])return f[o(845)]}return}for(u=n?Au:ju,r=0;r<i;++r)this[o(1952)](u(x[r],n,t));return this}function Ei(e,n,t){const o=a;var x=ki(e),r=x[o(1973)];typeof r===o(1145)?r=new r(n,t):(r=x[o(1629)][o(1065)](o(831)),t?(r[o(2237)](n,t[o(459)],t[o(2218)]),r[o(1279)]=t[o(1279)]):r[o(2237)](n,!1,!1)),e[o(1643)](r)}function Yu(e,n){return function(){return Ei(this,e,n)}}function Uu(e,n){return function(){return Ei(this,e,n[_0x3847(1858)](this,arguments))}}function Ou(e,n){const t=a;return this[t(1952)]((typeof n===t(1145)?Uu:Yu)(e,n))}function*Gu(){const e=a;for(var n=this[e(2198)],t=0,o=n[e(2073)];t<o;++t)for(var x=n[t],r=0,i=x[e(2073)],c;r<i;++r)(c=x[r])&&(yield c)}var Yi=[null];function Mn(e,n){const t=a;this[t(2198)]=e,this[t(1891)]=n}function p0(){return new Mn([[document.documentElement]],Yi)}function Hu(){return this}Mn[a(1589)]=p0[a(1589)]={constructor:Mn,select:ud,selectAll:gd,selectChild:vd,selectChildren:Md,filter:Bd,data:Id,enter:Dd,exit:jd,join:Ad,merge:Ed,selection:Hu,order:Yd,sort:Ud,call:Gd,nodes:Hd,node:Td,size:Vd,empty:qd,each:Wd,attr:Qd,style:nu,property:ru,classed:su,text:fu,html:yu,raise:wu,lower:pu,append:zu,insert:Mu,remove:Du,clone:Su,datum:ku,on:Eu,dispatch:Ou,[Symbol[a(875)]]:Gu};function Bn(e){const n=a;return typeof e===n(955)?new Mn([[document[n(525)](e)]],[document[n(1400)]]):new Mn([[e]],Yi)}function Tu(e){const n=a;let t;for(;t=e[n(2230)];)e=t;return e}function An(e,n){const t=a;if(e=Tu(e),n===void 0&&(n=e.currentTarget),n){var o=n[t(1617)]||n;if(o[t(1614)]){var x=o[t(1614)]();return x.x=e[t(2179)],x.y=e.clientY,x=x[t(1530)](n[t(1523)]()[t(1599)]()),[x.x,x.y]}if(n.getBoundingClientRect){var r=n.getBoundingClientRect();return[e.clientX-r.left-n[t(849)],e[t(550)]-r.top-n[t(1938)]]}}return[e[t(1680)],e[t(1178)]]}const Vu={passive:!1},z0={capture:!0,passive:!1};function No(e){e[a(843)]()}function Kt(e){const n=a;e[n(666)](),e[n(843)]()}function Ui(e){const n=a;var t=e[n(1629)].documentElement,o=Bn(e).on(n(615),Kt,z0);"onselectstart"in t?o.on("selectstart.drag",Kt,z0):(t[n(1932)]=t[n(501)][n(918)],t[n(501)].MozUserSelect=n(1895))}function Oi(e,n){const t=a;var o=e[t(1629)][t(1400)],x=Bn(e).on(t(615),null);n&&(x.on(t(1352),Kt,z0),setTimeout(function(){const r=t;x.on(r(1352),null)},0)),t(2078)in o?x.on("selectstart.drag",null):(o.style[t(918)]=o[t(1932)],delete o.__noselect)}const fx=e=>()=>e;function So(e,{sourceEvent:n,subject:t,target:o,identifier:x,active:r,x:i,y:c,dx:u,dy:d,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:t,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:x,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:c,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:d,enumerable:!0,configurable:!0},_:{value:s}})}So.prototype.on=function(){const e=a;var n=this._.on[e(1858)](this._,arguments);return n===this._?this:n};function qu(e){const n=a;return!e.ctrlKey&&!e[n(1201)]}function Wu(){return this[a(490)]}function Xu(e,n){return n??{x:e.x,y:e.y}}function Ku(){const e=a;return navigator.maxTouchPoints||e(2160)in this}function Gi(){const e=a;var n=qu,t=Wu,o=Xu,x=Ku,r={},i=sx("start","drag",e(621)),c=0,u,d,s,f,g=0;function h(C){const P=e;C.on("mousedown.drag",m)[P(526)](x).on(P(979),M).on(P(755),y,Vu).on(P(1931),w).style("touch-action",P(1895))[P(501)](P(1507),P(1175))}function m(C,P){const G=e;if(!(f||!n[G(1780)](this,C,P))){var U=z(this,t.call(this,C,P),C,P,G(1457));U&&(Bn(C[G(2268)]).on(G(1358),b,z0).on("mouseup.drag",v,z0),Ui(C.view),No(C),s=!1,u=C[G(2179)],d=C[G(550)],U(G(1808),C))}}function b(C){const P=e;if(Kt(C),!s){var G=C.clientX-u,U=C[P(550)]-d;s=G*G+U*U>g}r[P(1457)](P(2017),C)}function v(C){const P=e;Bn(C[P(2268)]).on("mousemove.drag mouseup.drag",null),Oi(C[P(2268)],s),Kt(C),r[P(1457)]("end",C)}function M(C,P){const G=e;if(n[G(1780)](this,C,P)){var U=C[G(745)],W=t[G(1780)](this,C,P),O=U[G(2073)],q,H;for(q=0;q<O;++q)(H=z(this,W,C,P,U[q][G(964)],U[q]))&&(No(C),H(G(1808),C,U[q]))}}function y(C){const P=e;var G=C[P(745)],U=G[P(2073)],W,O;for(W=0;W<U;++W)(O=r[G[W][P(964)]])&&(Kt(C),O("drag",C,G[W]))}function w(C){const P=e;var G=C.changedTouches,U=G[P(2073)],W,O;for(f&&clearTimeout(f),f=setTimeout(function(){f=null},500),W=0;W<U;++W)(O=r[G[W][P(964)]])&&(No(C),O(P(621),C,G[W]))}function z(C,P,G,U,W,O){const q=e;var H=i[q(1098)](),Y=An(O||G,P),V,N,B;if((B=o[q(1780)](C,new So(q(1044),{sourceEvent:G,target:h,identifier:W,active:c,x:Y[0],y:Y[1],dx:0,dy:0,dispatch:H}),U))!=null)return V=B.x-Y[0]||0,N=B.y-Y[1]||0,function L(E,j,I){const J=q;var ee=Y,_;switch(E){case J(1808):r[W]=L,_=c++;break;case J(621):delete r[W],--c;case J(2017):Y=An(I||j,P),_=c;break}H.call(E,C,new So(E,{sourceEvent:j,subject:B,target:h,identifier:W,active:_,x:Y[0]+V,y:Y[1]+N,dx:Y[0]-ee[0],dy:Y[1]-ee[1],dispatch:H}),U)}}return h.filter=function(C){const P=e;return arguments[P(2073)]?(n=typeof C===P(1145)?C:fx(!!C),h):n},h.container=function(C){const P=e;return arguments[P(2073)]?(t=typeof C===P(1145)?C:fx(C),h):t},h[e(919)]=function(C){const P=e;return arguments[P(2073)]?(o=typeof C===P(1145)?C:fx(C),h):o},h.touchable=function(C){return arguments.length?(x=typeof C=="function"?C:fx(!!C),h):x},h.on=function(){const C=e;var P=i.on[C(1858)](i,arguments);return P===i?h:P},h[e(801)]=function(C){const P=e;return arguments[P(2073)]?(g=(C=+C)*C,h):Math[P(1012)](g)},h}function ko(e,n,t){const o=a;e[o(1589)]=n.prototype=t,t.constructor=e}function Hi(e,n){var o=Object.create(e[a(1589)]);for(var x in n)o[x]=n[x];return o}function C0(){}var M0=.7,bx=1/M0,Zt=a(2102),B0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qn=a(646),Zu=/^#([0-9a-f]{3,8})$/,Ru=new RegExp(a(1448)+Zt+","+Zt+","+Zt+a(1052)),Ju=new RegExp("^rgb\\("+qn+","+qn+","+qn+a(1052)),_u=new RegExp("^rgba\\("+Zt+","+Zt+","+Zt+","+B0+a(1052)),Qu=new RegExp(a(1088)+qn+","+qn+","+qn+","+B0+"\\)$"),Fu=new RegExp(a(1600)+B0+","+qn+","+qn+a(1052)),$u=new RegExp(a(1310)+B0+","+qn+","+qn+","+B0+"\\)$"),Ti={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ko(C0,pt,{copy(e){return Object[a(1975)](new this.constructor,this,e)},displayable(){return this[a(1459)]().displayable()},hex:Vi,formatHex:Vi,formatHex8:ef,formatHsl:nf,formatRgb:qi,toString:qi});function Vi(){const e=a;return this[e(1459)]()[e(644)]()}function ef(){return this[a(1459)]().formatHex8()}function nf(){const e=a;return Ri(this)[e(1074)]()}function qi(){const e=a;return this[e(1459)]()[e(2254)]()}function pt(e){const n=a;var t,o;return e=(e+"").trim().toLowerCase(),(t=Zu[n(2241)](e))?(o=t[1].length,t=parseInt(t[1],16),o===6?Wi(t):o===3?new vn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):o===8?hx(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):o===4?hx(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Ru[n(2241)](e))?new vn(t[1],t[2],t[3],1):(t=Ju.exec(e))?new vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=_u[n(2241)](e))?hx(t[1],t[2],t[3],t[4]):(t=Qu[n(2241)](e))?hx(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Fu.exec(e))?Zi(t[1],t[2]/100,t[3]/100,1):(t=$u[n(2241)](e))?Zi(t[1],t[2]/100,t[3]/100,t[4]):Ti[n(715)](e)?Wi(Ti[e]):e==="transparent"?new vn(NaN,NaN,NaN,0):null}function Wi(e){return new vn(e>>16&255,e>>8&255,e&255,1)}function hx(e,n,t,o){return o<=0&&(e=n=t=NaN),new vn(e,n,t,o)}function tf(e){const n=a;return e instanceof C0||(e=pt(e)),e?(e=e[n(1459)](),new vn(e.r,e.g,e.b,e[n(565)])):new vn}function Io(e,n,t,o){return arguments[a(2073)]===1?tf(e):new vn(e,n,t,o??1)}function vn(e,n,t,o){const x=a;this.r=+e,this.g=+n,this.b=+t,this[x(565)]=+o}ko(vn,Io,Hi(C0,{brighter(e){const n=a;return e=e==null?bx:Math[n(1898)](bx,e),new vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){const n=a;return e=e==null?M0:Math[n(1898)](M0,e),new vn(this.r*e,this.g*e,this.b*e,this[n(565)])},rgb(){return this},clamp(){const e=a;return new vn(zt(this.r),zt(this.g),zt(this.b),gx(this[e(565)]))},displayable(){const e=a;return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this[e(565)]&&this[e(565)]<=1},hex:Xi,formatHex:Xi,formatHex8:xf,formatRgb:Ki,toString:Ki}));function Xi(){return"#"+Ct(this.r)+Ct(this.g)+Ct(this.b)}function xf(){const e=a;return"#"+Ct(this.r)+Ct(this.g)+Ct(this.b)+Ct((isNaN(this[e(565)])?1:this[e(565)])*255)}function Ki(){const e=a,n=gx(this[e(565)]);return""+e(n===1?1148:1609)+zt(this.r)+", "+zt(this.g)+", "+zt(this.b)+(n===1?")":", "+n+")")}function gx(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function zt(e){return Math.max(0,Math.min(255,Math[a(1958)](e)||0))}function Ct(e){const n=a;return e=zt(e),(e<16?"0":"")+e[n(2004)](16)}function Zi(e,n,t,o){return o<=0?e=n=t=NaN:t<=0||t>=1?e=n=NaN:n<=0&&(e=NaN),new En(e,n,t,o)}function Ri(e){const n=a;if(e instanceof En)return new En(e.h,e.s,e.l,e.opacity);if(e instanceof C0||(e=pt(e)),!e)return new En;if(e instanceof En)return e;e=e[n(1459)]();var t=e.r/255,o=e.g/255,x=e.b/255,r=Math[n(1449)](t,o,x),i=Math[n(1425)](t,o,x),c=NaN,u=i-r,d=(i+r)/2;return u?(t===i?c=(o-x)/u+(o<x)*6:o===i?c=(x-t)/u+2:c=(t-o)/u+4,u/=d<.5?i+r:2-i-r,c*=60):u=d>0&&d<1?0:c,new En(c,u,d,e[n(565)])}function of(e,n,t,o){return arguments[a(2073)]===1?Ri(e):new En(e,n,t,o??1)}function En(e,n,t,o){const x=a;this.h=+e,this.s=+n,this.l=+t,this[x(565)]=+o}ko(En,of,Hi(C0,{brighter(e){const n=a;return e=e==null?bx:Math[n(1898)](bx,e),new En(this.h,this.s,this.l*e,this[n(565)])},darker(e){const n=a;return e=e==null?M0:Math[n(1898)](M0,e),new En(this.h,this.s,this.l*e,this[n(565)])},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,o=t+(t<.5?t:1-t)*n,x=2*t-o;return new vn(Po(e>=240?e-240:e+120,x,o),Po(e,x,o),Po(e<120?e+240:e-120,x,o),this.opacity)},clamp(){const e=a;return new En(Ji(this.h),yx(this.s),yx(this.l),gx(this[e(565)]))},displayable(){const e=a;return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this[e(565)]&&this[e(565)]<=1},formatHsl(){const e=a,n=gx(this[e(565)]);return""+e(n===1?1085:2249)+Ji(this.h)+", "+yx(this.s)*100+e(770)+yx(this.l)*100+"%"+(n===1?")":", "+n+")")}}));function Ji(e){return e=(e||0)%360,e<0?e+360:e}function yx(e){return Math.max(0,Math[a(1449)](1,e||0))}function Po(e,n,t){return(e<60?n+(t-n)*e/60:e<180?t:e<240?n+(t-n)*(240-e)/60:n)*255}const jo=e=>()=>e;function rf(e,n){return function(t){return e+t*n}}function cf(e,n,t){const o=a;return e=Math[o(1898)](e,t),n=Math[o(1898)](n,t)-e,t=1/t,function(x){return Math[o(1898)](e+x*n,t)}}function af(e){return(e=+e)==1?_i:function(n,t){return t-n?cf(n,t,e):jo(isNaN(n)?t:n)}}function _i(e,n){var t=n-e;return t?rf(e,t):jo(isNaN(e)?n:e)}const mx=(function e(n){const t=a;var o=af(n);function x(r,i){const c=_0x3847;var u=o((r=Io(r)).r,(i=Io(i)).r),d=o(r.g,i.g),s=o(r.b,i.b),f=_i(r[c(565)],i[c(565)]);return function(g){const h=c;return r.r=u(g),r.g=d(g),r.b=s(g),r[h(565)]=f(g),r+""}}return x[t(1728)]=e,x})(1);function sf(e,n){const t=a;n||(n=[]);var o=e?Math[t(1449)](n[t(2073)],e[t(2073)]):0,x=n.slice(),r;return function(i){for(r=0;r<o;++r)x[r]=e[r]*(1-i)+n[r]*i;return x}}function lf(e){return ArrayBuffer[a(1510)](e)&&!(e instanceof DataView)}function df(e,n){const t=a;var o=n?n[t(2073)]:0,x=e?Math[t(1449)](o,e[t(2073)]):0,r=new Array(x),i=new Array(o),c;for(c=0;c<x;++c)r[c]=D0(e[c],n[c]);for(;c<o;++c)i[c]=n[c];return function(u){for(c=0;c<x;++c)i[c]=r[c](u);return i}}function uf(e,n){var t=new Date;return e=+e,n=+n,function(o){return t[_0x3847(1142)](e*(1-o)+n*o),t}}function Wn(e,n){return e=+e,n=+n,function(t){return e*(1-t)+n*t}}function ff(e,n){const t=a;var o={},x={},r;(e===null||typeof e!==t(1130))&&(e={}),(n===null||typeof n!="object")&&(n={});for(r in n)r in e?o[r]=D0(e[r],n[r]):x[r]=n[r];return function(i){for(r in o)x[r]=o[r](i);return x}}var Ao=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Eo=new RegExp(Ao[a(1364)],"g");function bf(e){return function(){return e}}function hf(e){return function(n){return e(n)+""}}function Qi(e,n){const t=a;var o=Ao[t(1440)]=Eo.lastIndex=0,x,r,i,c=-1,u=[],d=[];for(e=e+"",n=n+"";(x=Ao[t(2241)](e))&&(r=Eo[t(2241)](n));)(i=r[t(649)])>o&&(i=n[t(1243)](o,i),u[c]?u[c]+=i:u[++c]=i),(x=x[0])===(r=r[0])?u[c]?u[c]+=r:u[++c]=r:(u[++c]=null,d[t(1371)]({i:c,x:Wn(x,r)})),o=Eo.lastIndex;return o<n[t(2073)]&&(i=n.slice(o),u[c]?u[c]+=i:u[++c]=i),u.length<2?d[0]?hf(d[0].x):bf(n):(n=d[t(2073)],function(s){const f=t;for(var g=0,h;g<n;++g)u[(h=d[g]).i]=h.x(s);return u[f(2219)]("")})}function D0(e,n){const t=a;var o=typeof n,x;return n==null||o===t(835)?jo(n):(o==="number"?Wn:o===t(955)?(x=pt(n))?(n=x,mx):Qi:n instanceof pt?mx:n instanceof Date?uf:lf(n)?sf:Array.isArray(n)?df:typeof n.valueOf!==t(1145)&&typeof n[t(2004)]!==t(1145)||isNaN(n)?ff:Wn)(e,n)}var Fi=180/Math.PI,Yo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $i(e,n,t,o,x,r){const i=a;var c,u,d;return(c=Math[i(1012)](e*e+n*n))&&(e/=c,n/=c),(d=e*t+n*o)&&(t-=e*d,o-=n*d),(u=Math[i(1012)](t*t+o*o))&&(t/=u,o/=u,d/=u),e*o<n*t&&(e=-e,n=-n,d=-d,c=-c),{translateX:x,translateY:r,rotate:Math.atan2(n,e)*Fi,skewX:Math.atan(d)*Fi,scaleX:c,scaleY:u}}var wx;function gf(e){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return n.isIdentity?Yo:$i(n.a,n.b,n.c,n.d,n.e,n.f)}function yf(e){const n=a;return e==null||(wx||(wx=document[n(1792)]("http://www.w3.org/2000/svg","g")),wx[n(2278)](n(1274),e),!(e=wx.transform[n(1873)].consolidate()))?Yo:(e=e[n(1174)],$i(e.a,e.b,e.c,e.d,e.e,e.f))}function ec(e,n,t,o){function x(d){const s=_0x3847;return d[s(2073)]?d[s(777)]()+" ":""}function r(d,s,f,g,h,m){const b=_0x3847;if(d!==f||s!==g){var v=h.push(b(1447),null,n,null,t);m[b(1371)]({i:v-4,x:Wn(d,f)},{i:v-2,x:Wn(s,g)})}else(f||g)&&h[b(1371)](b(1447)+f+n+g+t)}function i(d,s,f,g){const h=_0x3847;d!==s?(d-s>180?s+=360:s-d>180&&(d+=360),g[h(1371)]({i:f.push(x(f)+h(2096),null,o)-2,x:Wn(d,s)})):s&&f[h(1371)](x(f)+h(2096)+s+o)}function c(d,s,f,g){const h=_0x3847;d!==s?g[h(1371)]({i:f[h(1371)](x(f)+h(1768),null,o)-2,x:Wn(d,s)}):s&&f[h(1371)](x(f)+h(1768)+s+o)}function u(d,s,f,g,h,m){const b=_0x3847;if(d!==f||s!==g){var v=h[b(1371)](x(h)+b(1319),null,",",null,")");m.push({i:v-4,x:Wn(d,f)},{i:v-2,x:Wn(s,g)})}else(f!==1||g!==1)&&h.push(x(h)+b(1319)+f+","+g+")")}return function(d,s){const f=_0x3847;var g=[],h=[];return d=e(d),s=e(s),r(d[f(1730)],d.translateY,s[f(1730)],s.translateY,g,h),i(d.rotate,s.rotate,g,h),c(d[f(1806)],s[f(1806)],g,h),u(d[f(933)],d[f(1770)],s[f(933)],s.scaleY,g,h),d=s=null,function(m){const b=f;for(var v=-1,M=h[b(2073)],y;++v<M;)g[(y=h[v]).i]=y.x(m);return g[b(2219)]("")}}}var mf=ec(gf,a(601),"px)",a(632)),wf=ec(yf,", ",")",")"),vf=1e-12;function nc(e){return((e=Math.exp(e))+1/e)/2}function pf(e){return((e=Math[a(1258)](e))-1/e)/2}function zf(e){return((e=Math[a(1258)](2*e))-1)/(e+1)}const vx=(function e(n,t,o){function x(r,i){const c=_0x3847;var u=r[0],d=r[1],s=r[2],f=i[0],g=i[1],h=i[2],m=f-u,b=g-d,v=m*m+b*b,M,y;if(v<vf)y=Math.log(h/s)/n,M=function(U){const W=_0x3847;return[u+U*m,d+U*b,s*Math[W(1258)](n*U*y)]};else{var w=Math.sqrt(v),z=(h*h-s*s+o*v)/(2*s*t*w),C=(h*h-s*s-o*v)/(2*h*t*w),P=Math[c(435)](Math[c(1012)](z*z+1)-z),G=Math.log(Math.sqrt(C*C+1)-C);y=(G-P)/n,M=function(U){var W=U*y,O=nc(P),q=s/(t*w)*(O*zf(n*W+P)-pf(P));return[u+q*m,d+q*b,s*O/nc(n*W+P)]}}return M[c(600)]=y*1e3*n/Math[c(1412)],M}return x.rho=function(r){var c=Math[_0x3847(1425)](.001,+r),u=c*c,d=u*u;return e(c,u,d)},x})(Math[a(1412)],2,4);var Rt=0,L0=0,N0=0,tc=1e3,px,S0,zx=0,Mt=0,Cx=0,k0=typeof performance===a(1130)&&performance[a(1969)]?performance:Date,xc=typeof window===a(1130)&&window[a(1705)]?window[a(1705)][a(2127)](window):function(e){setTimeout(e,17)};function Uo(){const e=a;return Mt||(xc(Cf),Mt=k0[e(1969)]()+Cx)}function Cf(){Mt=0}function Mx(){const e=a;this._call=this[e(421)]=this[e(461)]=null}Mx[a(1589)]=oc[a(1589)]={constructor:Mx,restart:function(e,n,t){const o=a;if(typeof e!==o(1145))throw new TypeError(o(2038));t=(t==null?Uo():+t)+(n==null?0:+n),!this[o(461)]&&S0!==this&&(S0?S0[o(461)]=this:px=this,S0=this),this._call=e,this[o(421)]=t,Oo()},stop:function(){const e=a;this[e(1690)]&&(this._call=null,this[e(421)]=1/0,Oo())}};function oc(e,n,t){var o=new Mx;return o.restart(e,n,t),o}function Mf(){const e=a;Uo(),++Rt;for(var n=px,t;n;)(t=Mt-n[e(421)])>=0&&n[e(1690)][e(1780)](void 0,t),n=n[e(461)];--Rt}function rc(){Mt=(zx=k0[a(1969)]())+Cx,Rt=L0=0;try{Mf()}finally{Rt=0,Df(),Mt=0}}function Bf(){var n=k0[a(1969)](),t=n-zx;t>tc&&(Cx-=t,zx=n)}function Df(){const e=a;for(var n,t=px,o,x=1/0;t;)t[e(1690)]?(x>t[e(421)]&&(x=t[e(421)]),n=t,t=t[e(461)]):(o=t[e(461)],t[e(461)]=null,t=n?n[e(461)]=o:px=o);S0=n,Oo(x)}function Oo(e){const n=a;if(!Rt){L0&&(L0=clearTimeout(L0));var t=e-Mt;t>24?(e<1/0&&(L0=setTimeout(rc,e-k0[n(1969)]()-Cx)),N0&&(N0=clearInterval(N0))):(N0||(zx=k0[n(1969)](),N0=setInterval(Bf,tc)),Rt=1,xc(rc))}}function ic(e,n,t){const o=a;var x=new Mx;return n=n==null?0:+n,x[o(886)](r=>{x[o(1925)](),e(r+n)},n,t),x}var Lf=sx(a(1808),a(621),a(781),"interrupt"),Nf=[],cc=0,ac=1,Go=2,Bx=3,sc=4,Ho=5,Dx=6;function Lx(e,n,t,o,x,r){const i=a;var c=e[i(994)];if(!c)e[i(994)]={};else if(t in c)return;Sf(e,t,{name:n,index:o,group:x,on:Lf,tween:Nf,time:r[i(620)],delay:r[i(809)],duration:r.duration,ease:r[i(1018)],timer:null,state:cc})}function To(e,n){const t=a;var o=Yn(e,n);if(o[t(1071)]>cc)throw new Error(t(559));return o}function Xn(e,n){const t=a;var o=Yn(e,n);if(o.state>Bx)throw new Error(t(1340));return o}function Yn(e,n){var o=e[a(994)];if(!o||!(o=o[n]))throw new Error("transition not found");return o}function Sf(e,n,t){const o=a;var x=e[o(994)],r;x[n]=t,t[o(589)]=oc(i,0,t[o(620)]);function i(s){const f=o;t.state=ac,t.timer.restart(c,t.delay,t[f(620)]),t[f(809)]<=s&&c(s-t[f(809)])}function c(s){const f=o;var g,h,m,b;if(t[f(1071)]!==ac)return d();for(g in x)if(b=x[g],b.name===t[f(1877)]){if(b.state===Bx)return ic(c);b[f(1071)]===sc?(b.state=Dx,b[f(589)].stop(),b.on[f(1780)](f(2060),e,e[f(2287)],b[f(649)],b[f(943)]),delete x[g]):+g<n&&(b[f(1071)]=Dx,b.timer.stop(),b.on.call("cancel",e,e.__data__,b[f(649)],b[f(943)]),delete x[g])}if(ic(function(){const v=f;t.state===Bx&&(t[v(1071)]=sc,t[v(589)].restart(u,t[v(809)],t[v(620)]),u(s))}),t[f(1071)]=Go,t.on[f(1780)](f(1808),e,e.__data__,t.index,t.group),t[f(1071)]===Go){for(t.state=Bx,r=new Array(m=t.tween.length),g=0,h=-1;g<m;++g)(b=t[f(1689)][g].value[f(1780)](e,e.__data__,t.index,t[f(943)]))&&(r[++h]=b);r[f(2073)]=h+1}}function u(s){const f=o;for(var g=s<t[f(600)]?t[f(1018)][f(1780)](null,s/t[f(600)]):(t.timer[f(886)](d),t[f(1071)]=Ho,1),h=-1,m=r[f(2073)];++h<m;)r[h][f(1780)](e,g);t[f(1071)]===Ho&&(t.on[f(1780)]("end",e,e[f(2287)],t[f(649)],t[f(943)]),d())}function d(){const s=o;t[s(1071)]=Dx,t[s(589)][s(1925)](),delete x[n];for(var f in x)return;delete e[s(994)]}}function Nx(e,n){const t=a;var o=e[t(994)],x,r,i=!0,c;if(o){n=n==null?null:n+"";for(c in o){if((x=o[c]).name!==n){i=!1;continue}r=x.state>Go&&x[t(1071)]<Ho,x[t(1071)]=Dx,x.timer.stop(),x.on[t(1780)](t(r?2060:781),e,e[t(2287)],x[t(649)],x[t(943)]),delete o[c]}i&&delete e[t(994)]}}function kf(e){return this[a(1952)](function(){Nx(this,e)})}function If(e,n){var t,o;return function(){const x=_0x3847;var r=Xn(this,e),i=r[x(1689)];if(i!==t){o=t=i;for(var c=0,u=o.length;c<u;++c)if(o[c][x(1877)]===n){o=o[x(1243)](),o[x(2227)](c,1);break}}r[x(1689)]=o}}function Pf(e,n,t){const o=a;var x,r;if(typeof t!==o(1145))throw new Error;return function(){const i=o;var c=Xn(this,e),u=c[i(1689)];if(u!==x){r=(x=u)[i(1243)]();for(var d={name:n,value:t},s=0,f=r[i(2073)];s<f;++s)if(r[s].name===n){r[s]=d;break}s===f&&r.push(d)}c[i(1689)]=r}}function jf(e,n){const t=a;var o=this[t(1343)];if(e+="",arguments[t(2073)]<2){for(var x=Yn(this[t(694)](),o)[t(1689)],r=0,i=x[t(2073)],c;r<i;++r)if((c=x[r]).name===e)return c[t(845)];return null}return this[t(1952)]((n==null?If:Pf)(o,e,n))}function Vo(e,n,t){const o=a;var x=e[o(1343)];return e[o(1952)](function(){const r=o;var i=Xn(this,x);(i[r(845)]||(i[r(845)]={}))[n]=t.apply(this,arguments)}),function(r){const i=o;return Yn(r,x)[i(845)][n]}}function lc(e,n){const t=a;var o;return(typeof n===t(1421)?Wn:n instanceof pt?mx:(o=pt(n))?(n=o,mx):Qi)(e,n)}function Af(e){return function(){this.removeAttribute(e)}}function Ef(e){return function(){const n=_0x3847;this[n(1626)](e.space,e[n(1996)])}}function Yf(e,n,t){var o,x=t+"",r;return function(){var c=this[_0x3847(1812)](e);return c===x?null:c===o?r:r=n(o=c,t)}}function Uf(e,n,t){var o,x=t+"",r;return function(){const i=_0x3847;var c=this.getAttributeNS(e[i(2257)],e[i(1996)]);return c===x?null:c===o?r:r=n(o=c,t)}}function Of(e,n,t){var o,x,r;return function(){const i=_0x3847;var c,u=t(this),d;return u==null?void this[i(724)](e):(c=this[i(1812)](e),d=u+"",c===d?null:c===o&&d===x?r:(x=d,r=n(o=c,u)))}}function Gf(e,n,t){var o,x,r;return function(){const i=_0x3847;var c,u=t(this),d;return u==null?void this[i(1626)](e.space,e.local):(c=this[i(752)](e[i(2257)],e[i(1996)]),d=u+"",c===d?null:c===o&&d===x?r:(x=d,r=n(o=c,u)))}}function Hf(e,n){const t=a;var o=dx(e),x=o===t(1274)?wf:lc;return this[t(756)](e,typeof n===t(1145)?(o[t(1996)]?Gf:Of)(o,x,Vo(this,"attr."+e,n)):n==null?(o.local?Ef:Af)(o):(o[t(1996)]?Uf:Yf)(o,x,n))}function Tf(e,n){return function(t){const o=_0x3847;this[o(2278)](e,n[o(1780)](this,t))}}function Vf(e,n){return function(t){const o=_0x3847;this[o(668)](e[o(2257)],e[o(1996)],n[o(1780)](this,t))}}function qf(e,n){const t=a;var o,x;function r(){var i=n.apply(this,arguments);return i!==x&&(o=(x=i)&&Vf(e,i)),o}return r[t(1505)]=n,r}function Wf(e,n){const t=a;var o,x;function r(){var c=n[_0x3847(1858)](this,arguments);return c!==x&&(o=(x=c)&&Tf(e,c)),o}return r[t(1505)]=n,r}function Xf(e,n){const t=a;var o=t(483)+e;if(arguments[t(2073)]<2)return(o=this.tween(o))&&o._value;if(n==null)return this[t(1689)](o,null);if(typeof n!="function")throw new Error;var x=dx(e);return this[t(1689)](o,(x[t(1996)]?qf:Wf)(x,n))}function Kf(e,n){return function(){const t=_0x3847;To(this,e)[t(809)]=+n[t(1858)](this,arguments)}}function Zf(e,n){return n=+n,function(){const t=_0x3847;To(this,e)[t(809)]=n}}function Rf(e){const n=a;var t=this[n(1343)];return arguments[n(2073)]?this[n(1952)]((typeof e===n(1145)?Kf:Zf)(t,e)):Yn(this[n(694)](),t).delay}function Jf(e,n){return function(){const t=_0x3847;Xn(this,e).duration=+n[t(1858)](this,arguments)}}function _f(e,n){return n=+n,function(){const t=_0x3847;Xn(this,e)[t(600)]=n}}function Qf(e){const n=a;var t=this[n(1343)];return arguments.length?this.each((typeof e===n(1145)?Jf:_f)(t,e)):Yn(this[n(694)](),t).duration}function Ff(e,n){const t=a;if(typeof n!==t(1145))throw new Error;return function(){const o=t;Xn(this,e)[o(1018)]=n}}function $f(e){const n=a;var t=this[n(1343)];return arguments.length?this[n(1952)](Ff(t,e)):Yn(this[n(694)](),t)[n(1018)]}function e5(e,n){return function(){const t=_0x3847;var o=n[t(1858)](this,arguments);if(typeof o!==t(1145))throw new Error;Xn(this,e)[t(1018)]=o}}function n5(e){const n=a;if(typeof e!==n(1145))throw new Error;return this.each(e5(this[n(1343)],e))}function t5(e){const n=a;typeof e!==n(1145)&&(e=Li(e));for(var t=this._groups,o=t.length,x=new Array(o),r=0;r<o;++r)for(var i=t[r],c=i.length,u=x[r]=[],d,s=0;s<c;++s)(d=i[s])&&e.call(d,d[n(2287)],s,i)&&u[n(1371)](d);return new Jn(x,this._parents,this[n(942)],this._id)}function x5(e){const n=a;if(e._id!==this._id)throw new Error;for(var t=this[n(2198)],o=e._groups,x=t.length,r=o[n(2073)],i=Math[n(1449)](x,r),c=new Array(x),u=0;u<i;++u)for(var d=t[u],s=o[u],f=d[n(2073)],g=c[u]=new Array(f),h,m=0;m<f;++m)(h=d[m]||s[m])&&(g[m]=h);for(;u<x;++u)c[u]=t[u];return new Jn(c,this[n(1891)],this[n(942)],this[n(1343)])}function o5(e){const n=a;return(e+"").trim()[n(1999)](/^|\s+/)[n(1153)](function(t){const o=n;var x=t.indexOf(".");return x>=0&&(t=t[o(1243)](0,x)),!t||t==="start"})}function r5(e,n,t){var o,x,r=o5(n)?To:Xn;return function(){const i=_0x3847;var c=r(this,e),u=c.on;u!==o&&(x=(o=u)[i(1098)]()).on(n,t),c.on=x}}function i5(e,n){const t=a;var o=this[t(1343)];return arguments[t(2073)]<2?Yn(this[t(694)](),o).on.on(e):this[t(1952)](r5(o,e,n))}function c5(e){return function(){const n=_0x3847;var t=this[n(490)];for(var o in this.__transition)if(+o!==e)return;t&&t[n(2069)](this)}}function a5(){const e=a;return this.on(e(675),c5(this._id))}function s5(e){const n=a;var t=this[n(942)],o=this[n(1343)];typeof e!="function"&&(e=Do(e));for(var x=this[n(2198)],r=x[n(2073)],i=new Array(r),c=0;c<r;++c)for(var u=x[c],d=u.length,s=i[c]=new Array(d),f,g,h=0;h<d;++h)(f=u[h])&&(g=e[n(1780)](f,f.__data__,h,u))&&(n(2287)in f&&(g[n(2287)]=f.__data__),s[h]=g,Lx(s[h],t,o,h,s,Yn(f,o)));return new Jn(i,this[n(1891)],t,o)}function l5(e){const n=a;var t=this._name,o=this._id;typeof e!==n(1145)&&(e=Di(e));for(var x=this[n(2198)],r=x[n(2073)],i=[],c=[],u=0;u<r;++u)for(var d=x[u],s=d[n(2073)],f,g=0;g<s;++g)if(f=d[g]){for(var h=e[n(1780)](f,f[n(2287)],g,d),m,b=Yn(f,o),v=0,M=h[n(2073)];v<M;++v)(m=h[v])&&Lx(m,t,o,v,h,b);i[n(1371)](h),c[n(1371)](f)}return new Jn(i,c,t,o)}var d5=p0[a(1589)][a(1208)];function u5(){const e=a;return new d5(this[e(2198)],this[e(1891)])}function f5(e,n){var t,o,x;return function(){const r=_0x3847;var i=Xt(this,e),c=(this[r(501)][r(1271)](e),Xt(this,e));return i===c?null:i===t&&c===o?x:x=n(t=i,o=c)}}function dc(e){return function(){this[_0x3847(501)].removeProperty(e)}}function b5(e,n,t){var o,x=t+"",r;return function(){var i=Xt(this,e);return i===x?null:i===o?r:r=n(o=i,t)}}function h5(e,n,t){var o,x,r;return function(){const i=_0x3847;var c=Xt(this,e),u=t(this),d=u+"";return u==null&&(d=u=(this.style[i(1271)](e),Xt(this,e))),c===d?null:c===o&&d===x?r:(x=d,r=n(o=c,u))}}function g5(e,n){const t=a;var o,x,r,i=t(702)+n,c=t(2054)+i,u;return function(){const d=t;var s=Xn(this,e),f=s.on,g=s[d(845)][i]==null?u||(u=dc(n)):void 0;(f!==o||r!==g)&&(x=(o=f)[d(1098)]()).on(c,r=g),s.on=x}}function y5(e,n,t){const o=a;var x=(e+="")===o(1274)?mf:lc;return n==null?this[o(1181)](e,f5(e,x)).on(o(451)+e,dc(e)):typeof n===o(1145)?this.styleTween(e,h5(e,x,Vo(this,"style."+e,n)))[o(1952)](g5(this[o(1343)],e)):this.styleTween(e,b5(e,x,n),t).on(o(451)+e,null)}function m5(e,n,t){return function(o){const x=_0x3847;this[x(501)][x(1430)](e,n[x(1780)](this,o),t)}}function w5(e,n,t){const o=a;var x,r;function i(){var u=n[_0x3847(1858)](this,arguments);return u!==r&&(x=(r=u)&&m5(e,u,t)),x}return i[o(1505)]=n,i}function v5(e,n,t){const o=a;var x="style."+(e+="");if(arguments[o(2073)]<2)return(x=this[o(1689)](x))&&x[o(1505)];if(n==null)return this[o(1689)](x,null);if(typeof n!="function")throw new Error;return this[o(1689)](x,w5(e,n,t??""))}function p5(e){return function(){this.textContent=e}}function z5(e){return function(){var n=e(this);this.textContent=n??""}}function C5(e){const n=a;return this[n(1689)](n(1815),typeof e=="function"?z5(Vo(this,"text",e)):p5(e==null?"":e+""))}function M5(e){return function(n){const t=_0x3847;this[t(1060)]=e.call(this,n)}}function B5(e){const n=a;var t,o;function x(){var r=e.apply(this,arguments);return r!==o&&(t=(o=r)&&M5(r)),t}return x[n(1505)]=e,x}function D5(e){const n=a;var t=n(1815);if(arguments[n(2073)]<1)return(t=this[n(1689)](t))&&t[n(1505)];if(e==null)return this[n(1689)](t,null);if(typeof e!==n(1145))throw new Error;return this[n(1689)](t,B5(e))}function L5(){const e=a;for(var n=this._name,t=this[e(1343)],o=uc(),x=this._groups,r=x[e(2073)],i=0;i<r;++i)for(var c=x[i],u=c.length,d,s=0;s<u;++s)if(d=c[s]){var f=Yn(d,t);Lx(d,n,o,s,c,{time:f[e(620)]+f[e(809)]+f[e(600)],delay:0,duration:f.duration,ease:f.ease})}return new Jn(x,this[e(1891)],n,o)}function N5(){const e=a;var n,t,o=this,x=o[e(1343)],r=o[e(1301)]();return new Promise(function(i,c){const u=e;var d={value:c},s={value:function(){--r===0&&i()}};o[u(1952)](function(){const f=u;var g=Xn(this,x),h=g.on;h!==n&&(t=(n=h)[f(1098)](),t._.cancel[f(1371)](d),t._[f(2060)][f(1371)](d),t._[f(621)].push(s)),g.on=t}),r===0&&i()})}var S5=0;function Jn(e,n,t,o){const x=a;this[x(2198)]=e,this[x(1891)]=n,this[x(942)]=t,this[x(1343)]=o}function uc(){return++S5}var _n=p0.prototype;Jn[a(1589)]={constructor:Jn,select:s5,selectAll:l5,selectChild:_n[a(1265)],selectChildren:_n.selectChildren,filter:t5,merge:x5,selection:u5,transition:L5,call:_n[a(1780)],nodes:_n[a(1687)],node:_n[a(694)],size:_n[a(1301)],empty:_n[a(452)],each:_n[a(1952)],on:i5,attr:Hf,attrTween:Xf,style:y5,styleTween:v5,text:C5,textTween:D5,remove:a5,tween:jf,delay:Rf,duration:Qf,ease:$f,easeVarying:n5,end:N5,[Symbol[a(875)]]:_n[Symbol[a(875)]]};function k5(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var I5={time:null,delay:0,duration:250,ease:k5};function P5(e,n){const t=a;for(var o;!(o=e[t(994)])||!(o=o[n]);)if(!(e=e[t(490)]))throw new Error(t(1288)+n+t(1024));return o}function j5(e){const n=a;var t,o;e instanceof Jn?(t=e._id,e=e[n(942)]):(t=uc(),(o=I5)[n(620)]=Uo(),e=e==null?null:e+"");for(var x=this._groups,r=x[n(2073)],i=0;i<r;++i)for(var c=x[i],u=c[n(2073)],d,s=0;s<u;++s)(d=c[s])&&Lx(d,e,t,s,c,o||P5(d,t));return new Jn(x,this[n(1891)],e,t)}p0[a(1589)].interrupt=kf,p0[a(1589)][a(1870)]=j5;const Sx=e=>()=>e;function A5(e,{sourceEvent:n,target:t,transform:o,dispatch:x}){Object[a(2256)](this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:x}})}function Qn(e,n,t){this.k=e,this.x=n,this.y=t}Qn[a(1589)]={constructor:Qn,scale:function(e){return e===1?this:new Qn(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new Qn(this.k,this.x+this.k*e,this.y+this.k*n)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){const n=a;return e[n(1098)]().domain(e[n(1355)]()[n(1913)](this.invertX,this)[n(1913)](e.invert,e))},rescaleY:function(e){const n=a;return e[n(1098)]().domain(e[n(1355)]().map(this.invertY,this)[n(1913)](e[n(667)],e))},toString:function(){const e=a;return e(1447)+this.x+","+this.y+e(2221)+this.k+")"}};var kx=new Qn(1,0,0);fc.prototype=Qn[a(1589)];function fc(e){const n=a;for(;!e[n(527)];)if(!(e=e[n(490)]))return kx;return e[n(527)]}function qo(e){e[a(843)]()}function I0(e){e[a(666)](),e.stopImmediatePropagation()}function E5(e){const n=a;return(!e.ctrlKey||e[n(1939)]===n(1758))&&!e[n(1201)]}function Y5(){const e=a;var n=this;return n instanceof SVGElement?(n=n[e(1617)]||n,n.hasAttribute(e(2064))?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n[e(863)]]]):[[0,0],[n[e(2272)][e(1873)].value,n[e(863)][e(1873)][e(845)]]]):[[0,0],[n[e(837)],n[e(2259)]]]}function bc(){return this[a(527)]||kx}function U5(e){const n=a;return-e[n(423)]*(e.deltaMode===1?.05:e[n(1349)]?1:.002)*(e.ctrlKey?10:1)}function O5(){return navigator[a(2099)]||"ontouchstart"in this}function G5(e,n,t){const o=a;var x=e[o(1562)](n[0][0])-t[0][0],r=e.invertX(n[1][0])-t[1][0],i=e[o(1373)](n[0][1])-t[0][1],c=e.invertY(n[1][1])-t[1][1];return e[o(794)](r>x?(x+r)/2:Math[o(1449)](0,x)||Math[o(1425)](0,r),c>i?(i+c)/2:Math.min(0,i)||Math[o(1425)](0,c))}function hc(){const e=a;var n=E5,t=Y5,o=G5,x=U5,r=O5,i=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,d=vx,s=sx(e(1808),e(2184),e(621)),f,g,h,m=500,b=150,v=0,M=10;function y(N){const B=e;N[B(1743)](B(527),bc).on("wheel.zoom",W,{passive:!1}).on(B(2065),O).on("dblclick.zoom",q)[B(526)](r).on("touchstart.zoom",H).on(B(1837),Y).on(B(1763),V)[B(501)](B(1507),B(1175))}y[e(1274)]=function(N,B,L,E){const j=e;var I=N[j(2273)]?N.selection():N;I[j(1743)](j(527),bc),N!==I?P(N,B,L,E):I[j(2060)]()[j(1952)](function(){const J=j;G(this,arguments)[J(1103)](E).start().zoom(null,typeof B===J(1145)?B[J(1858)](this,arguments):B).end()})},y[e(923)]=function(N,B,L,E){y.scaleTo(N,function(){const j=_0x3847;var I=this[j(527)].k,J=typeof B===j(1145)?B[j(1858)](this,arguments):B;return I*J},L,E)},y[e(753)]=function(N,B,L,E){const j=e;y[j(1274)](N,function(){const I=j;var J=t[I(1858)](this,arguments),ee=this[I(527)],_=L==null?C(J):typeof L===I(1145)?L[I(1858)](this,arguments):L,$=ee.invert(_),re=typeof B===I(1145)?B[I(1858)](this,arguments):B;return o(z(w(ee,re),_,$),J,c)},L,E)},y[e(723)]=function(N,B,L,E){const j=e;y[j(1274)](N,function(){const I=j;return o(this.__zoom[I(794)](typeof B===I(1145)?B[I(1858)](this,arguments):B,typeof L===I(1145)?L[I(1858)](this,arguments):L),t.apply(this,arguments),c)},null,E)},y.translateTo=function(N,B,L,E,j){const I=e;y[I(1274)](N,function(){const J=I;var ee=t[J(1858)](this,arguments),_=this.__zoom,$=E==null?C(ee):typeof E===J(1145)?E[J(1858)](this,arguments):E;return o(kx[J(794)]($[0],$[1])[J(1632)](_.k)[J(794)](typeof B===J(1145)?-B[J(1858)](this,arguments):-B,typeof L===J(1145)?-L[J(1858)](this,arguments):-L),ee,c)},E,j)};function w(N,B){return B=Math[e(1425)](i[0],Math.min(i[1],B)),B===N.k?N:new Qn(B,N.x,N.y)}function z(N,B,L){var E=B[0]-L[0]*N.k,j=B[1]-L[1]*N.k;return E===N.x&&j===N.y?N:new Qn(N.k,E,j)}function C(N){return[(+N[0][0]+ +N[1][0])/2,(+N[0][1]+ +N[1][1])/2]}function P(N,B,L,E){const j=e;N.on(j(2139),function(){const I=j;G(this,arguments)[I(1103)](E)[I(1808)]()}).on(j(969),function(){const I=j;G(this,arguments)[I(1103)](E)[I(621)]()})[j(1689)](j(2184),function(){const I=j;var J=this,ee=arguments,_=G(J,ee)[I(1103)](E),$=t[I(1858)](J,ee),re=L==null?C($):typeof L===I(1145)?L[I(1858)](J,ee):L,ue=Math[I(1425)]($[1][0]-$[0][0],$[1][1]-$[0][1]),we=J[I(527)],ze=typeof B===I(1145)?B.apply(J,ee):B,de=d(we[I(667)](re).concat(ue/we.k),ze[I(667)](re)[I(1596)](ue/ze.k));return function(F){const fe=I;if(F===1)F=ze;else{var ye=de(F),A=ue/ye[2];F=new Qn(A,re[0]-ye[0]*A,re[1]-ye[1]*A)}_[fe(2184)](null,F)}})}function G(N,B,L){return!L&&N[e(690)]||new U(N,B)}function U(N,B){const L=e;this[L(588)]=N,this[L(2105)]=B,this[L(1237)]=0,this[L(2230)]=null,this[L(1257)]=t[L(1858)](N,B),this[L(2226)]=0}U[e(1589)]={event:function(N){const B=e;return N&&(this[B(2230)]=N),this},start:function(){const N=e;return++this[N(1237)]===1&&(this[N(588)].__zooming=this,this.emit(N(1808))),this},zoom:function(N,B){const L=e;return this[L(1457)]&&N!=="mouse"&&(this[L(1457)][1]=B[L(667)](this[L(1457)][0])),this[L(1080)]&&N!=="touch"&&(this.touch0[1]=B.invert(this[L(1080)][0])),this[L(1236)]&&N!==L(1702)&&(this[L(1236)][1]=B[L(667)](this.touch1[0])),this[L(588)][L(527)]=B,this.emit("zoom"),this},end:function(){const N=e;return--this.active===0&&(delete this[N(588)][N(690)],this[N(511)]("end")),this},emit:function(N){const B=e;var L=Bn(this.that)[B(1286)]();s[B(1780)](N,this.that,new A5(N,{sourceEvent:this[B(2230)],target:y,transform:this.that[B(527)],dispatch:s}),L)}};function W(N,...B){const L=e;if(!n[L(1858)](this,arguments))return;var E=G(this,B)[L(1103)](N),j=this[L(527)],I=Math[L(1425)](i[0],Math[L(1449)](i[1],j.k*Math[L(1898)](2,x[L(1858)](this,arguments)))),J=An(N);if(E[L(1758)])(E.mouse[0][0]!==J[0]||E.mouse[0][1]!==J[1])&&(E[L(1457)][1]=j[L(667)](E[L(1457)][0]=J)),clearTimeout(E[L(1758)]);else{if(j.k===I)return;E[L(1457)]=[J,j[L(667)](J)],Nx(this),E.start()}I0(N),E.wheel=setTimeout(ee,b),E[L(2184)](L(1457),o(z(w(j,I),E.mouse[0],E[L(1457)][1]),E.extent,c));function ee(){const _=L;E[_(1758)]=null,E[_(621)]()}}function O(N,...B){const L=e;if(h||!n.apply(this,arguments))return;var E=N[L(896)],j=G(this,B,!0)[L(1103)](N),I=Bn(N[L(2268)]).on(L(1482),$,!0).on(L(2269),re,!0),J=An(N,E),ee=N[L(2179)],_=N[L(550)];Ui(N.view),qo(N),j[L(1457)]=[J,this[L(527)].invert(J)],Nx(this),j[L(1808)]();function $(ue){const we=L;if(I0(ue),!j[we(798)]){var ze=ue[we(2179)]-ee,de=ue.clientY-_;j[we(798)]=ze*ze+de*de>v}j[we(1103)](ue)[we(2184)](we(1457),o(z(j[we(588)][we(527)],j.mouse[0]=An(ue,E),j[we(1457)][1]),j[we(1257)],c))}function re(ue){const we=L;I.on(we(1471),null),Oi(ue.view,j[we(798)]),I0(ue),j.event(ue)[we(621)]()}}function q(N,...B){const L=e;if(n[L(1858)](this,arguments)){var E=this.__zoom,j=An(N[L(745)]?N[L(745)][0]:N,this),I=E[L(667)](j),J=E.k*(N[L(1721)]?.5:2),ee=o(z(w(E,J),j,I),t[L(1858)](this,B),c);I0(N),u>0?Bn(this)[L(1870)]()[L(600)](u)[L(1780)](P,ee,j,N):Bn(this)[L(1780)](y[L(1274)],ee,j,N)}}function H(N,...B){const L=e;if(n[L(1858)](this,arguments)){var E=N.touches,j=E[L(2073)],I=G(this,B,N[L(745)][L(2073)]===j)[L(1103)](N),J,ee,_,$;for(qo(N),ee=0;ee<j;++ee)_=E[ee],$=An(_,this),$=[$,this[L(527)][L(667)]($),_.identifier],I.touch0?!I[L(1236)]&&I[L(1080)][2]!==$[2]&&(I[L(1236)]=$,I[L(2226)]=0):(I[L(1080)]=$,J=!0,I[L(2226)]=1+!!f);f&&(f=clearTimeout(f)),J&&(I[L(2226)]<2&&(g=$[0],f=setTimeout(function(){f=null},m)),Nx(this),I[L(1808)]())}}function Y(N,...B){const L=e;if(this[L(690)]){var E=G(this,B)[L(1103)](N),j=N[L(745)],I=j.length,J,ee,_,$;for(I0(N),J=0;J<I;++J)ee=j[J],_=An(ee,this),E.touch0&&E[L(1080)][2]===ee.identifier?E.touch0[0]=_:E.touch1&&E[L(1236)][2]===ee[L(964)]&&(E[L(1236)][0]=_);if(ee=E[L(588)][L(527)],E[L(1236)]){var re=E.touch0[0],ue=E[L(1080)][1],we=E.touch1[0],ze=E.touch1[1],de=(de=we[0]-re[0])*de+(de=we[1]-re[1])*de,F=(F=ze[0]-ue[0])*F+(F=ze[1]-ue[1])*F;ee=w(ee,Math[L(1012)](de/F)),_=[(re[0]+we[0])/2,(re[1]+we[1])/2],$=[(ue[0]+ze[0])/2,(ue[1]+ze[1])/2]}else if(E[L(1080)])_=E.touch0[0],$=E[L(1080)][1];else return;E.zoom(L(1702),o(z(ee,_,$),E[L(1257)],c))}}function V(N,...B){const L=e;if(this[L(690)]){var E=G(this,B).event(N),j=N[L(745)],I=j[L(2073)],J,ee;for(qo(N),h&&clearTimeout(h),h=setTimeout(function(){h=null},m),J=0;J<I;++J)ee=j[J],E[L(1080)]&&E[L(1080)][2]===ee[L(964)]?delete E[L(1080)]:E[L(1236)]&&E[L(1236)][2]===ee[L(964)]&&delete E[L(1236)];if(E[L(1236)]&&!E[L(1080)]&&(E[L(1080)]=E[L(1236)],delete E[L(1236)]),E[L(1080)])E[L(1080)][1]=this[L(527)].invert(E[L(1080)][0]);else if(E[L(621)](),E[L(2226)]===2&&(ee=An(ee,this),Math.hypot(g[0]-ee[0],g[1]-ee[1])<M)){var _=Bn(this).on("dblclick.zoom");_&&_.apply(this,arguments)}}}return y[e(1598)]=function(N){const B=e;return arguments[B(2073)]?(x=typeof N===B(1145)?N:Sx(+N),y):x},y[e(526)]=function(N){const B=e;return arguments.length?(n=typeof N===B(1145)?N:Sx(!!N),y):n},y[e(1890)]=function(N){return arguments[e(2073)]?(r=typeof N=="function"?N:Sx(!!N),y):r},y.extent=function(N){return arguments.length?(t=typeof N=="function"?N:Sx([[+N[0][0],+N[0][1]],[+N[1][0],+N[1][1]]]),y):t},y[e(2013)]=function(N){return arguments[e(2073)]?(i[0]=+N[0],i[1]=+N[1],y):[i[0],i[1]]},y[e(2206)]=function(N){return arguments[e(2073)]?(c[0][0]=+N[0][0],c[1][0]=+N[1][0],c[0][1]=+N[0][1],c[1][1]=+N[1][1],y):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},y[e(1616)]=function(N){return arguments[e(2073)]?(o=N,y):o},y[e(600)]=function(N){return arguments[e(2073)]?(u=+N,y):u},y[e(1083)]=function(N){return arguments.length?(d=N,y):d},y.on=function(){const N=e;var B=s.on[N(1858)](s,arguments);return B===s?y:B},y[e(801)]=function(N){return arguments[e(2073)]?(v=(N=+N)*N,y):Math.sqrt(v)},y.tapDistance=function(N){return arguments[e(2073)]?(M=+N,y):M},y}const Dn={error001:()=>a(440),error002:()=>a(2243),error003:e=>'Node type "'+e+a(1350),error004:()=>a(2213),error005:()=>a(1709),error006:()=>a(1834),error007:e=>a(1734)+e+a(1033),error009:e=>a(1498)+e+a(973),error008:(e,{id:n,sourceHandle:t,targetHandle:o})=>"Couldn't create edge for "+e+a(497)+(e===a(1364)?t:o)+a(1125)+n+".",error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>a(2076)+e+a(1350),error012:e=>a(1988)+e+a(420),error013:(e=a(1512))=>a(956)+e+"/dist/style.css' or base.css to make sure everything is working properly.",error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>a(575)},P0=[[Number[a(1437)],Number[a(1437)]],[Number.POSITIVE_INFINITY,Number[a(1359)]]],gc=["Enter"," ","Escape"],yc={"node.a11yDescription.default":a(1249),"node.a11yDescription.keyboardDisabled":a(1582),"node.a11yDescription.ariaLiveMessage":({direction:e,x:n,y:t})=>a(1954)+e+a(464)+n+a(711)+t,"edge.a11yDescription.default":a(1677),"controls.ariaLabel":a(1158),"controls.zoomIn.ariaLabel":a(622),"controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":a(616),"controls.interactive.ariaLabel":a(584),"minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var Jt;(function(e){const n=a;e[n(2072)]="strict",e[n(1514)]=n(1823)})(Jt||(Jt={}));var Bt;(function(e){const n=a;e[n(1919)]=n(1170),e.Vertical=n(1703),e[n(2164)]=n(1723)})(Bt||(Bt={}));var j0;(function(e){const n=a;e[n(934)]=n(1138),e[n(981)]=n(1405)})(j0||(j0={}));const mc={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var ct;(function(e){const n=a;e[n(1692)]="default",e[n(1105)]=n(539),e.Step=n(1518),e.SmoothStep=n(1985),e[n(1362)]=n(1961)})(ct||(ct={}));var Ix;(function(e){const n=a;e[n(1556)]=n(1419),e[n(1291)]=n(1295)})(Ix||(Ix={}));var Se;(function(e){const n=a;e[n(860)]="left",e.Top="top",e[n(2044)]=n(691),e[n(1540)]=n(1922)})(Se||(Se={}));const wc={[Se[a(860)]]:Se.Right,[Se[a(2044)]]:Se[a(860)],[Se.Top]:Se[a(1540)],[Se[a(1540)]]:Se[a(1247)]};function vc(e){return e===null?null:e?"valid":a(2061)}const pc=e=>"id"in e&&"source"in e&&a(966)in e,H5=e=>"id"in e&&"position"in e&&!(a(1364)in e)&&!(a(966)in e),Wo=e=>"id"in e&&a(1914)in e&&!(a(1364)in e)&&!(a(966)in e),A0=(e,n=[0,0])=>{const t=a,{width:o,height:x}=Fn(e),r=e[t(1994)]??n,i=o*r[0],c=x*r[1];return{x:e[t(1711)].x-i,y:e[t(1711)].y-c}},T5=(e,n={nodeOrigin:[0,0]})=>{const t=a;if(process.env.NODE_ENV===t(784)&&!n[t(1132)]&&console[t(713)](t(1636)),e[t(2073)]===0)return{x:0,y:0,width:0,height:0};const o=e[t(2110)]((x,r)=>{const i=t,c=typeof r=="string";let u=!n.nodeLookup&&!c?r:void 0;n[i(1132)]&&(u=c?n[i(1132)][i(2250)](r):Wo(r)?r:n[i(1132)][i(2250)](r.id));const d=u?Ax(u,n[i(825)]):{x:0,y:0,x2:0,y2:0};return Px(x,d)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return jx(o)},E0=(e,n={})=>{const t=a;let o={x:1/0,y:1/0,x2:-1/0,y2:-1/0},x=!1;return e[t(1935)](r=>{const i=t;(n[i(526)]===void 0||n[i(526)](r))&&(o=Px(o,Ax(r)),x=!0)}),x?jx(o):{x:0,y:0,width:0,height:0}},Xo=(e,n,[t,o,x]=[0,0,1],r=!1,i=!1)=>{const c=a,u={...O0(n,[t,o,x]),width:n[c(2272)]/x,height:n[c(863)]/x},d=[];for(const s of e[c(1129)]()){const{measured:f,selectable:g=!0,hidden:h=!1}=s;if(i&&!g||h)continue;const m=f[c(2272)]??s[c(2272)]??s.initialWidth??null,b=f[c(863)]??s[c(863)]??s[c(2193)]??null,v=Y0(u,Qt(s)),M=(m??0)*(b??0),y=r&&v>0;(!s.internals.handleBounds||y||v>=M||s[c(1391)])&&d[c(1371)](s)}return d},V5=(e,n)=>{const t=a,o=new Set;return e[t(1935)](x=>{o[t(848)](x.id)}),n[t(526)](x=>o[t(2012)](x.source)||o[t(2012)](x.target))};function q5(e,n){const t=a,o=new Map,x=n?.nodes?new Set(n.nodes.map(r=>r.id)):null;return e[t(1935)](r=>{const i=t;r[i(1977)][i(2272)]&&r.measured.height&&(n?.[i(1342)]||!r[i(2141)])&&(!x||x[i(2012)](r.id))&&o[i(1010)](r.id,r)}),o}async function W5({nodes:e,width:n,height:t,panZoom:o,minZoom:x,maxZoom:r},i){const c=a;if(e.size===0)return Promise[c(1284)](!0);const u=q5(e,i),d=E0(u),s=Zo(d,n,t,i?.minZoom??x,i?.[c(1185)]??r,i?.[c(1634)]??.1);return await o[c(1141)](s,{duration:i?.[c(600)],ease:i?.[c(1018)],interpolate:i?.[c(1083)]}),Promise[c(1284)](!0)}function zc({nodeId:e,nextPosition:n,nodeLookup:t,nodeOrigin:o=[0,0],nodeExtent:x,onError:r}){const i=a,c=t[i(2250)](e),u=c.parentId?t.get(c[i(879)]):void 0,{x:d,y:s}=u?u[i(1914)].positionAbsolute:{x:0,y:0},f=c[i(1994)]??o;let g=c[i(1257)]||x;if(c[i(1257)]===i(418)&&!c[i(2118)])if(!u)r?.("005",Dn[i(642)]());else{const m=u[i(1977)][i(2272)],b=u[i(1977)][i(863)];m&&b&&(g=[[d,s],[d+m,s+b]])}else u&&$t(c[i(1257)])&&(g=[[c[i(1257)][0][0]+d,c[i(1257)][0][1]+s],[c[i(1257)][1][0]+d,c[i(1257)][1][1]+s]]);const h=$t(g)?Dt(n,g,c[i(1977)]):n;return(c[i(1977)][i(2272)]===void 0||c[i(1977)].height===void 0)&&r?.(i(1713),Dn.error015()),{position:{x:h.x-d+(c[i(1977)][i(2272)]??0)*f[0],y:h.y-s+(c.measured[i(863)]??0)*f[1]},positionAbsolute:h}}async function X5({nodesToRemove:e=[],edgesToRemove:n=[],nodes:t,edges:o,onBeforeDelete:x}){const r=a,i=new Set(e[r(1913)](h=>h.id)),c=[];for(const h of t){if(h.deletable===!1)continue;const m=i.has(h.id),b=!m&&h[r(879)]&&c.find(v=>v.id===h[r(879)]);(m||b)&&c[r(1371)](h)}const u=new Set(n[r(1913)](h=>h.id)),d=o.filter(h=>h[r(1704)]!==!1),s=V5(c,d),f=s;for(const h of d)u[r(2012)](h.id)&&!f.find(b=>b.id===h.id)&&f[r(1371)](h);if(!x)return{edges:f,nodes:c};const g=await x({nodes:c,edges:f});return typeof g===r(835)?g?{edges:f,nodes:c}:{edges:[],nodes:[]}:g}const _t=(e,n=0,t=1)=>Math.min(Math[a(1425)](e,n),t),Dt=(e={x:0,y:0},n,t)=>({x:_t(e.x,n[0][0],n[1][0]-(t?.[a(2272)]??0)),y:_t(e.y,n[0][1],n[1][1]-(t?.[a(863)]??0))});function Cc(e,n,t){const o=a,{width:x,height:r}=Fn(t),{x:i,y:c}=t[o(1914)][o(1951)];return Dt(e,[[i,c],[i+x,c+r]],n)}const Mc=(e,n,t)=>{const o=a;return e<n?_t(Math[o(1014)](e-n),1,n)/n:e>t?-_t(Math[o(1014)](e-t),1,n)/n:0},Bc=(e,n,t=15,o=40)=>{const x=a,r=Mc(e.x,o,n.width-o)*t,i=Mc(e.y,o,n[x(863)]-o)*t;return[r,i]},Px=(e,n)=>({x:Math[a(1449)](e.x,n.x),y:Math[a(1449)](e.y,n.y),x2:Math.max(e.x2,n.x2),y2:Math[a(1425)](e.y2,n.y2)}),Ko=({x:e,y:n,width:t,height:o})=>({x:e,y:n,x2:e+t,y2:n+o}),jx=({x:e,y:n,x2:t,y2:o})=>({x:e,y:n,width:t-e,height:o-n}),Qt=(e,n=[0,0])=>{const t=a,{x:o,y:x}=Wo(e)?e[t(1914)][t(1951)]:A0(e,n);return{x:o,y:x,width:e[t(1977)]?.[t(2272)]??e.width??e[t(1907)]??0,height:e.measured?.height??e.height??e[t(2193)]??0}},Ax=(e,n=[0,0])=>{const t=a,{x:o,y:x}=Wo(e)?e[t(1914)].positionAbsolute:A0(e,n);return{x:o,y:x,x2:o+(e[t(1977)]?.width??e[t(2272)]??e[t(1907)]??0),y2:x+(e.measured?.[t(863)]??e[t(863)]??e.initialHeight??0)}},Dc=(e,n)=>jx(Px(Ko(e),Ko(n))),Y0=(e,n)=>{const t=a,o=Math.max(0,Math[t(1449)](e.x+e.width,n.x+n[t(2272)])-Math.max(e.x,n.x)),x=Math[t(1425)](0,Math[t(1449)](e.y+e[t(863)],n.y+n[t(863)])-Math[t(1425)](e.y,n.y));return Math.ceil(o*x)},Lc=e=>Un(e[a(2272)])&&Un(e[a(863)])&&Un(e.x)&&Un(e.y),Un=e=>!isNaN(e)&&isFinite(e),Nc=(e,n)=>{const t=a;process.env.NODE_ENV==="development"&&console[t(713)]("[React Flow]: "+n+t(1748)+e)},U0=(e,n=[1,1])=>{const t=a;return{x:n[0]*Math[t(1958)](e.x/n[0]),y:n[1]*Math[t(1958)](e.y/n[1])}},O0=({x:e,y:n},[t,o,x],r=!1,i=[1,1])=>{const c={x:(e-t)/x,y:(n-o)/x};return r?U0(c,i):c},Ex=({x:e,y:n},[t,o,x])=>({x:e*x+t,y:n*x+o});function Ft(e,n){const t=a;if(typeof e===t(1421))return Math[t(1679)]((n-n/(1+e))*.5);if(typeof e=="string"&&e[t(1830)]("px")){const o=parseFloat(e);if(!Number.isNaN(o))return Math[t(1679)](o)}if(typeof e=="string"&&e[t(1830)]("%")){const o=parseFloat(e);if(!Number[t(1559)](o))return Math[t(1679)](n*o*.01)}return console[t(1316)](t(1539)+e+t(1967)),0}function K5(e,n,t){const o=a;if(typeof e===o(955)||typeof e===o(1421)){const x=Ft(e,t),r=Ft(e,n);return{top:x,right:r,bottom:x,left:r,x:r*2,y:x*2}}if(typeof e===o(1130)){const x=Ft(e[o(960)]??e.y??0,t),r=Ft(e.bottom??e.y??0,t),i=Ft(e.left??e.x??0,n),c=Ft(e.right??e.x??0,n);return{top:x,right:c,bottom:r,left:i,x:i+c,y:x+r}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function Z5(e,n,t,o,x,r){const i=a,{x:c,y:u}=Ex(e,[n,t,o]),{x:d,y:s}=Ex({x:e.x+e[i(2272)],y:e.y+e.height},[n,t,o]),f=x-d,g=r-s;return{left:Math[i(1679)](c),top:Math.floor(u),right:Math[i(1679)](f),bottom:Math.floor(g)}}const Zo=(e,n,t,o,x,r)=>{const i=a,c=K5(r,n,t),u=(n-c.x)/e[i(2272)],d=(t-c.y)/e.height,s=Math[i(1449)](u,d),f=_t(s,o,x),g=e.x+e[i(2272)]/2,h=e.y+e.height/2,m=n/2-g*f,b=t/2-h*f,v=Z5(e,m,b,f,n,t),M={left:Math[i(1449)](v.left-c[i(1322)],0),top:Math[i(1449)](v[i(960)]-c[i(960)],0),right:Math[i(1449)](v.right-c[i(691)],0),bottom:Math[i(1449)](v[i(1922)]-c[i(1922)],0)};return{x:m-M.left+M[i(691)],y:b-M[i(960)]+M[i(1922)],zoom:f}},G0=()=>typeof navigator!==a(1624)&&navigator?.userAgent?.[a(623)](a(1475))>=0;function $t(e){return e!=null&&e!=="parent"}function Fn(e){const n=a;return{width:e[n(1977)]?.[n(2272)]??e.width??e[n(1907)]??0,height:e[n(1977)]?.[n(863)]??e[n(863)]??e[n(2193)]??0}}function Sc(e){const n=a;return(e[n(1977)]?.[n(2272)]??e[n(2272)]??e.initialWidth)!==void 0&&(e.measured?.[n(863)]??e[n(863)]??e[n(2193)])!==void 0}function kc(e,n={width:0,height:0},t,o,x){const r=a,i={...e},c=o[r(2250)](t);if(c){const u=c[r(1994)]||x;i.x+=c[r(1914)][r(1951)].x-(n[r(2272)]??0)*u[0],i.y+=c[r(1914)][r(1951)].y-(n.height??0)*u[1]}return i}function Ic(e,n){const t=a;if(e[t(1301)]!==n[t(1301)])return!1;for(const o of e)if(!n.has(o))return!1;return!0}function R5(){let e,n;return{promise:new Promise((o,x)=>{e=o,n=x}),resolve:e,reject:n}}function J5(e){return{...yc,...e||{}}}function H0(e,{snapGrid:n=[0,0],snapToGrid:t=!1,transform:o,containerBounds:x}){const r=a,{x:i,y:c}=On(e),u=O0({x:i-(x?.[r(1322)]??0),y:c-(x?.[r(960)]??0)},o),{x:d,y:s}=t?U0(u,n):u;return{xSnapped:d,ySnapped:s,...u}}const Ro=e=>({width:e[a(415)],height:e[a(2170)]}),Pc=e=>e?.[a(1956)]?.()||window?.document,_5=["INPUT",a(557),a(535)];function jc(e){const n=a,t=e.composedPath?.()?.[0]||e.target;return t?.nodeType!==1?!1:_5[n(1992)](t[n(779)])||t[n(737)](n(478))||!!t.closest(n(2053))}const Ac=e=>a(2179)in e,On=(e,n)=>{const t=a,o=Ac(e),x=o?e[t(2179)]:e[t(513)]?.[0].clientX,r=o?e[t(550)]:e[t(513)]?.[0][t(550)];return{x:x-(n?.left??0),y:r-(n?.[t(960)]??0)}},Ec=(e,n,t,o,x)=>{const r=a,i=n.querySelectorAll("."+e);return!i||!i.length?null:Array.from(i)[r(1913)](c=>{const u=r,d=c[u(445)]();return{id:c.getAttribute(u(1504)),type:e,nodeId:x,position:c[u(1812)](u(1032)),x:(d.left-t[u(1322)])/o,y:(d[u(960)]-t[u(960)])/o,...Ro(c)}})};function Yc({sourceX:e,sourceY:n,targetX:t,targetY:o,sourceControlX:x,sourceControlY:r,targetControlX:i,targetControlY:c}){const u=a,d=e*.125+x*.375+i*.375+t*.125,s=n*.125+r*.375+c*.375+o*.125,f=Math[u(1014)](d-e),g=Math[u(1014)](s-n);return[d,s,f,g]}function Yx(e,n){const t=a;return e>=0?.5*e:n*25*Math[t(1012)](-e)}function Uc({pos:e,x1:n,y1:t,x2:o,y2:x,c:r}){const i=a;switch(e){case Se.Left:return[n-Yx(n-o,r),t];case Se.Right:return[n+Yx(o-n,r),t];case Se.Top:return[n,t-Yx(t-x,r)];case Se[i(1540)]:return[n,t+Yx(x-t,r)]}}function Oc({sourceX:e,sourceY:n,sourcePosition:t=Se.Bottom,targetX:o,targetY:x,targetPosition:r=Se.Top,curvature:i=.25}){const[c,u]=Uc({pos:t,x1:e,y1:n,x2:o,y2:x,c:i}),[d,s]=Uc({pos:r,x1:o,y1:x,x2:e,y2:n,c:i}),[f,g,h,m]=Yc({sourceX:e,sourceY:n,targetX:o,targetY:x,sourceControlX:c,sourceControlY:u,targetControlX:d,targetControlY:s});return["M"+e+","+n+" C"+c+","+u+" "+d+","+s+" "+o+","+x,f,g,h,m]}function Gc({sourceX:e,sourceY:n,targetX:t,targetY:o}){const x=a,r=Math[x(1014)](t-e)/2,i=t<e?t+r:t-r,c=Math.abs(o-n)/2,u=o<n?o+c:o-c;return[i,u,r,c]}function Q5({sourceNode:e,targetNode:n,selected:t=!1,zIndex:o=0,elevateOnSelect:x=!1,zIndexMode:r=a(952)}){const i=a;if(r===i(1727))return o;const c=x&&t?o+1e3:o,u=Math[i(1425)](e.parentId||x&&e[i(1700)]?e[i(1914)].z:0,n[i(879)]||x&&n[i(1700)]?n[i(1914)].z:0);return c+u}function F5({sourceNode:e,targetNode:n,width:t,height:o,transform:x}){const r=Px(Ax(e),Ax(n));r.x===r.x2&&(r.x2+=1),r.y===r.y2&&(r.y2+=1);const i={x:-x[0]/x[2],y:-x[1]/x[2],width:t/x[2],height:o/x[2]};return Y0(i,jx(r))>0}const $5=({source:e,sourceHandle:n,target:t,targetHandle:o})=>"xy-edge__"+e+(n||"")+"-"+t+(o||""),e2=(e,n)=>{const t=a;return n[t(1591)](o=>o[t(1364)]===e[t(1364)]&&o[t(966)]===e.target&&(o[t(707)]===e[t(707)]||!o[t(707)]&&!e[t(707)])&&(o[t(1195)]===e[t(1195)]||!o[t(1195)]&&!e[t(1195)]))},Hc=(e,n,t={})=>{const o=a;if(!e.source||!e[o(966)])return Nc("006",Dn[o(1233)]()),n;const x=t[o(2220)]||$5;let r;return pc(e)?r={...e}:r={...e,id:x(e)},e2(r,n)?n:(r[o(707)]===null&&delete r[o(707)],r[o(1195)]===null&&delete r.targetHandle,n.concat(r))};function Tc({sourceX:e,sourceY:n,targetX:t,targetY:o}){const[x,r,i,c]=Gc({sourceX:e,sourceY:n,targetX:t,targetY:o});return["M "+e+","+n+"L "+t+","+o,x,r,i,c]}const Vc={[Se[a(860)]]:{x:-1,y:0},[Se.Right]:{x:1,y:0},[Se.Top]:{x:0,y:-1},[Se.Bottom]:{x:0,y:1}},n2=({source:e,sourcePosition:n=Se[a(1540)],target:t})=>{const o=a;return n===Se[o(860)]||n===Se[o(2044)]?e.x<t.x?{x:1,y:0}:{x:-1,y:0}:e.y<t.y?{x:0,y:1}:{x:0,y:-1}},qc=(e,n)=>Math[a(1012)](Math[a(1898)](n.x-e.x,2)+Math[a(1898)](n.y-e.y,2));function t2({source:e,sourcePosition:n=Se.Bottom,target:t,targetPosition:o=Se[a(1247)],center:x,offset:r,stepPosition:i}){const c=a,u=Vc[n],d=Vc[o],s={x:e.x+u.x*r,y:e.y+u.y*r},f={x:t.x+d.x*r,y:t.y+d.y*r},g=n2({source:s,sourcePosition:n,target:f}),h=g.x!==0?"x":"y",m=g[h];let b=[],v,M;const y={x:0,y:0},w={x:0,y:0},[,,z,C]=Gc({sourceX:e.x,sourceY:e.y,targetX:t.x,targetY:t.y});if(u[h]*d[h]===-1){h==="x"?(v=x.x??s.x+(f.x-s.x)*i,M=x.y??(s.y+f.y)/2):(v=x.x??(s.x+f.x)/2,M=x.y??s.y+(f.y-s.y)*i);const W=[{x:v,y:s.y},{x:v,y:f.y}],O=[{x:s.x,y:M},{x:f.x,y:M}];u[h]===m?b=h==="x"?W:O:b=h==="x"?O:W}else{const W=[{x:s.x,y:f.y}],O=[{x:f.x,y:s.y}];if(h==="x"?b=u.x===m?O:W:b=u.y===m?W:O,n===o){const N=Math[c(1014)](e[h]-t[h]);if(N<=r){const B=Math[c(1449)](r-1,r-N);u[h]===m?y[h]=(s[h]>e[h]?-1:1)*B:w[h]=(f[h]>t[h]?-1:1)*B}}if(n!==o){const N=h==="x"?"y":"x",B=u[h]===d[N],L=s[N]>f[N],E=s[N]<f[N];(u[h]===1&&(!B&&L||B&&E)||u[h]!==1&&(!B&&E||B&&L))&&(b=h==="x"?W:O)}const q={x:s.x+y.x,y:s.y+y.y},H={x:f.x+w.x,y:f.y+w.y},Y=Math[c(1425)](Math[c(1014)](q.x-b[0].x),Math[c(1014)](H.x-b[0].x)),V=Math[c(1425)](Math[c(1014)](q.y-b[0].y),Math.abs(H.y-b[0].y));Y>=V?(v=(q.x+H.x)/2,M=b[0].y):(v=b[0].x,M=(q.y+H.y)/2)}const P={x:s.x+y.x,y:s.y+y.y},G={x:f.x+w.x,y:f.y+w.y};return[[e,...P.x!==b[0].x||P.y!==b[0].y?[P]:[],...b,...G.x!==b[b[c(2073)]-1].x||G.y!==b[b[c(2073)]-1].y?[G]:[],t],v,M,z,C]}function x2(e,n,t,o){const x=Math.min(qc(e,n)/2,qc(n,t)/2,o),{x:r,y:i}=n;if(e.x===r&&r===t.x||e.y===i&&i===t.y)return"L"+r+" "+i;if(e.y===i){const d=e.x<t.x?-1:1,s=e.y<t.y?1:-1;return"L "+(r+x*d)+","+i+"Q "+r+","+i+" "+r+","+(i+x*s)}const c=e.x<t.x?1:-1,u=e.y<t.y?-1:1;return"L "+r+","+(i+x*u)+"Q "+r+","+i+" "+(r+x*c)+","+i}function Jo({sourceX:e,sourceY:n,sourcePosition:t=Se[a(1540)],targetX:o,targetY:x,targetPosition:r=Se[a(1247)],borderRadius:i=5,centerX:c,centerY:u,offset:d=20,stepPosition:s=.5}){const f=a,[g,h,m,b,v]=t2({source:{x:e,y:n},sourcePosition:t,target:{x:o,y:x},targetPosition:r,center:{x:c,y:u},offset:d,stepPosition:s});let M="M"+g[0].x+" "+g[0].y;for(let y=1;y<g.length-1;y++)M+=x2(g[y-1],g[y],g[y+1],i);return M+="L"+g[g.length-1].x+" "+g[g[f(2073)]-1].y,[M,h,m,b,v]}function Wc(e){const n=a;return e&&!!(e[n(1914)][n(1608)]||e[n(714)]?.length)&&!!(e[n(1977)][n(2272)]||e.width||e[n(1907)])}function o2(e){const n=a,{sourceNode:t,targetNode:o}=e;if(!Wc(t)||!Wc(o))return null;const x=t[n(1914)].handleBounds||Xc(t[n(714)]),r=o[n(1914)].handleBounds||Xc(o[n(714)]),i=Kc(x?.[n(1364)]??[],e[n(707)]),c=Kc(e[n(548)]===Jt[n(2072)]?r?.target??[]:(r?.[n(966)]??[]).concat(r?.[n(1364)]??[]),e.targetHandle);if(!i||!c)return e[n(1049)]?.(n(869),Dn[n(2002)](i?"target":n(1364),{id:e.id,sourceHandle:e[n(707)],targetHandle:e[n(1195)]})),null;const u=i?.position||Se[n(1540)],d=c?.position||Se[n(1247)],s=Lt(t,i,u),f=Lt(o,c,d);return{sourceX:s.x,sourceY:s.y,targetX:f.x,targetY:f.y,sourcePosition:u,targetPosition:d}}function Xc(e){const n=a;if(!e)return null;const t=[],o=[];for(const x of e)x[n(2272)]=x[n(2272)]??1,x.height=x[n(863)]??1,x[n(1939)]===n(1364)?t[n(1371)](x):x[n(1939)]===n(966)&&o[n(1371)](x);return{source:t,target:o}}function Lt(e,n,t=Se[a(860)],o=!1){const x=a,r=(n?.x??0)+e[x(1914)].positionAbsolute.x,i=(n?.y??0)+e[x(1914)].positionAbsolute.y,{width:c,height:u}=n??Fn(e);if(o)return{x:r+c/2,y:i+u/2};switch(n?.[x(1711)]??t){case Se[x(1247)]:return{x:r+c/2,y:i};case Se[x(2044)]:return{x:r+c,y:i+u/2};case Se[x(1540)]:return{x:r+c/2,y:i+u};case Se[x(860)]:return{x:r,y:i+u/2}}}function Kc(e,n){return e&&(n?e.find(t=>t.id===n):e[0])||null}function _o(e,n){const t=a;return e?typeof e===t(955)?e:""+(n?n+"__":"")+Object.keys(e).sort()[t(1913)](x=>x+"="+e[x])[t(2219)]("&"):""}function r2(e,{id:n,defaultColor:t,defaultMarkerStart:o,defaultMarkerEnd:x}){const r=a,i=new Set;return e.reduce((c,u)=>{const d=_0x3847;return[u[d(2248)]||o,u[d(958)]||x][d(1935)](s=>{const f=d;if(s&&typeof s===f(1130)){const g=_o(s,n);!i[f(2012)](g)&&(c.push({id:g,color:s.color||t,...s}),i.add(g))}}),c},[])[r(1648)]((c,u)=>c.id[r(1079)](u.id))}const Zc=1e3,i2=10,Qo={nodeOrigin:[0,0],nodeExtent:P0,elevateNodesOnSelect:!0,zIndexMode:a(952),defaults:{}},c2={...Qo,checkEquality:!0};function Fo(e,n){const t={...e};for(const o in n)n[o]!==void 0&&(t[o]=n[o]);return t}function a2(e,n,t){const o=a,x=Fo(Qo,t);for(const r of e[o(1129)]())if(r.parentId)nr(r,e,n,x);else{const i=A0(r,x[o(825)]),c=$t(r[o(1257)])?r[o(1257)]:x[o(1750)],u=Dt(i,c,Fn(r));r.internals[o(1951)]=u}}function s2(e,n){const t=a;if(!e[t(714)])return e[t(1977)]?n?.internals[t(1608)]:void 0;const o=[],x=[];for(const r of e[t(714)]){const i={id:r.id,width:r.width??1,height:r[t(863)]??1,nodeId:e.id,x:r.x,y:r.y,position:r.position,type:r[t(1939)]};r[t(1939)]===t(1364)?o[t(1371)](i):r[t(1939)]===t(966)&&x.push(i)}return{source:o,target:x}}function $o(e){return e==="manual"}function er(e,n,t,o={}){const x=a,r=Fo(c2,o),i={i:0},c=new Map(n),u=r?.elevateNodesOnSelect&&!$o(r[x(1422)])?Zc:0;let d=e.length>0,s=!1;n[x(1245)](),t[x(1245)]();for(const f of e){let g=c[x(2250)](f.id);if(r[x(1521)]&&f===g?.[x(1914)].userNode)n[x(1010)](f.id,g);else{const h=A0(f,r.nodeOrigin),m=$t(f[x(1257)])?f[x(1257)]:r[x(1750)],b=Dt(h,m,Fn(f));g={...r[x(1068)],...f,measured:{width:f[x(1977)]?.[x(2272)],height:f[x(1977)]?.[x(863)]},internals:{positionAbsolute:b,handleBounds:s2(f,g),z:Rc(f,u,r[x(1422)]),userNode:f}},n[x(1010)](f.id,g)}(g[x(1977)]===void 0||g.measured[x(2272)]===void 0||g[x(1977)][x(863)]===void 0)&&!g[x(2141)]&&(d=!1),f.parentId&&nr(g,n,t,o,i),s||=f[x(1700)]??!1}return{nodesInitialized:d,hasSelectedNodes:s}}function l2(e,n){const t=a;if(!e[t(879)])return;const o=n.get(e[t(879)]);o?o[t(1010)](e.id,e):n.set(e[t(879)],new Map([[e.id,e]]))}function nr(e,n,t,o,x){const r=a,{elevateNodesOnSelect:i,nodeOrigin:c,nodeExtent:u,zIndexMode:d}=Fo(Qo,o),s=e[r(879)],f=n[r(2250)](s);if(!f){console[r(713)]("Parent node "+s+" not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.");return}l2(e,t),x&&!f[r(879)]&&f.internals[r(877)]===void 0&&d==="auto"&&(f[r(1914)][r(877)]=++x.i,f[r(1914)].z=f[r(1914)].z+x.i*i2),x&&f.internals.rootParentIndex!==void 0&&(x.i=f[r(1914)].rootParentIndex);const g=i&&!$o(d)?Zc:0,{x:h,y:m,z:b}=d2(e,f,c,u,g,d),{positionAbsolute:v}=e[r(1914)],M=h!==v.x||m!==v.y;(M||b!==e.internals.z)&&n[r(1010)](e.id,{...e,internals:{...e[r(1914)],positionAbsolute:M?{x:h,y:m}:v,z:b}})}function Rc(e,n,t){const o=a,x=Un(e[o(922)])?e.zIndex:0;return $o(t)?x:x+(e[o(1700)]?n:0)}function d2(e,n,t,o,x,r){const i=a,{x:c,y:u}=n[i(1914)][i(1951)],d=Fn(e),s=A0(e,t),f=$t(e[i(1257)])?Dt(s,e[i(1257)],d):s;let g=Dt({x:c+f.x,y:u+f.y},o,d);e.extent==="parent"&&(g=Cc(g,d,n));const h=Rc(e,x,r),m=n.internals.z??0;return{x:g.x,y:g.y,z:m>=h?m+1:h}}function tr(e,n,t,o=[0,0]){const x=a,r=[],i=new Map;for(const c of e){const u=n[x(2250)](c.parentId);if(!u)continue;const d=i[x(2250)](c[x(879)])?.expandedRect??Qt(u),s=Dc(d,c.rect);i.set(c.parentId,{expandedRect:s,parent:u})}return i[x(1301)]>0&&i[x(1935)](({expandedRect:c,parent:u},d)=>{const s=x,f=u[s(1914)][s(1951)],g=Fn(u),h=u[s(1994)]??o,m=c.x<f.x?Math[s(1958)](Math[s(1014)](f.x-c.x)):0,b=c.y<f.y?Math[s(1958)](Math[s(1014)](f.y-c.y)):0,v=Math.max(g.width,Math[s(1958)](c.width)),M=Math[s(1425)](g[s(863)],Math[s(1958)](c.height)),y=(v-g[s(2272)])*h[0],w=(M-g[s(863)])*h[1];(m>0||b>0||y||w)&&(r[s(1371)]({id:d,type:s(1711),position:{x:u[s(1711)].x-m+y,y:u[s(1711)].y-b+w}}),t[s(2250)](d)?.forEach(z=>{const C=s;!e[C(1591)](P=>P.id===z.id)&&r[C(1371)]({id:z.id,type:"position",position:{x:z[C(1711)].x+m,y:z[C(1711)].y+b}})})),(g.width<c.width||g.height<c.height||m||b)&&r[s(1371)]({id:d,type:s(1698),setAttributes:!0,dimensions:{width:v+(m?h[0]*m-y:0),height:M+(b?h[1]*b-w:0)}})}),r}function u2(e,n,t,o,x,r,i){const c=a,u=o?.querySelector(".xyflow__viewport");let d=!1;if(!u)return{changes:[],updatedInternals:d};const s=[],f=window.getComputedStyle(u),{m22:g}=new window[c(1538)](f.transform),h=[];for(const m of e.values()){const b=n.get(m.id);if(!b)continue;if(b[c(2141)]){n[c(1010)](b.id,{...b,internals:{...b[c(1914)],handleBounds:void 0}}),d=!0;continue}const v=Ro(m.nodeElement),M=b[c(1977)][c(2272)]!==v[c(2272)]||b[c(1977)].height!==v[c(863)];if(!!(v.width&&v[c(863)]&&(M||!b[c(1914)][c(1608)]||m.force))){const w=m[c(551)][c(445)](),z=$t(b[c(1257)])?b[c(1257)]:r;let{positionAbsolute:C}=b[c(1914)];b[c(879)]&&b[c(1257)]===c(418)?C=Cc(C,v,n[c(2250)](b[c(879)])):z&&(C=Dt(C,z,v));const P={...b,measured:v,internals:{...b[c(1914)],positionAbsolute:C,handleBounds:{source:Ec(c(1364),m.nodeElement,w,g,b.id),target:Ec("target",m[c(551)],w,g,b.id)}}};n[c(1010)](b.id,P),b[c(879)]&&nr(P,n,t,{nodeOrigin:x,zIndexMode:i}),d=!0,M&&(s.push({id:b.id,type:c(1698),dimensions:v}),b.expandParent&&b[c(879)]&&h[c(1371)]({id:b.id,parentId:b.parentId,rect:Qt(P,x)}))}}if(h[c(2073)]>0){const m=tr(h,n,t,x);s.push(...m)}return{changes:s,updatedInternals:d}}async function f2({delta:e,panZoom:n,transform:t,translateExtent:o,width:x,height:r}){const i=a;if(!n||!e.x&&!e.y)return Promise[i(1284)](!1);const c=await n[i(1336)]({x:t[0]+e.x,y:t[1]+e.y,zoom:t[2]},[[0,0],[x,r]],o),u=!!c&&(c.x!==t[0]||c.y!==t[1]||c.k!==t[2]);return Promise[i(1284)](u)}function Jc(e,n,t,o,x,r){const i=a;let c=x;const u=o[i(2250)](c)||new Map;o[i(1010)](c,u[i(1010)](t,n)),c=x+"-"+e;const d=o[i(2250)](c)||new Map;if(o[i(1010)](c,d[i(1010)](t,n)),r){c=x+"-"+e+"-"+r;const s=o[i(2250)](c)||new Map;o[i(1010)](c,s.set(t,n))}}function _c(e,n,t){const o=a;e[o(1245)](),n[o(1245)]();for(const x of t){const{source:r,target:i,sourceHandle:c=null,targetHandle:u=null}=x,d={edgeId:x.id,source:r,target:i,sourceHandle:c,targetHandle:u},s=r+"-"+c+"--"+i+"-"+u,f=i+"-"+u+"--"+r+"-"+c;Jc(o(1364),d,f,e,r,c),Jc("target",d,s,e,i,u),n.set(x.id,x)}}function Qc(e,n){const t=a;if(!e[t(879)])return!1;const o=n[t(2250)](e[t(879)]);return o?o[t(1700)]?!0:Qc(o,n):!1}function Fc(e,n,t){let o=e;do{if(o?.matches?.(n))return!0;if(o===t)return!1;o=o?.parentElement}while(o);return!1}function b2(e,n,t,o){const x=a,r=new Map;for(const[i,c]of e)if((c[x(1700)]||c.id===o)&&(!c[x(879)]||!Qc(c,e))&&(c[x(1281)]||n&&typeof c.draggable===x(1624))){const u=e[x(2250)](i);u&&r[x(1010)](i,{id:i,position:u[x(1711)]||{x:0,y:0},distance:{x:t.x-u[x(1914)][x(1951)].x,y:t.y-u[x(1914)][x(1951)].y},extent:u[x(1257)],parentId:u.parentId,origin:u.origin,expandParent:u[x(2118)],internals:{positionAbsolute:u[x(1914)][x(1951)]||{x:0,y:0}},measured:{width:u[x(1977)][x(2272)]??0,height:u.measured[x(863)]??0}})}return r}function xr({nodeId:e,dragItems:n,nodeLookup:t,dragging:o=!0}){const x=a,r=[];for(const[c,u]of n){const d=t[x(2250)](c)?.[x(1914)][x(1382)];d&&r[x(1371)]({...d,position:u.position,dragging:o})}if(!e)return[r[0],r];const i=t[x(2250)](e)?.[x(1914)][x(1382)];return[i?{...i,position:n[x(2250)](e)?.position||i.position,dragging:o}:r[0],r]}function h2({dragItems:e,snapGrid:n,x:t,y:o}){const x=a,r=e[x(1129)]().next()[x(845)];if(!r)return null;const i={x:t-r[x(945)].x,y:o-r[x(945)].y},c=U0(i,n);return{x:c.x-i.x,y:c.y-i.y}}function g2({onNodeMouseDown:e,getStoreItems:n,onDragStart:t,onDrag:o,onDragStop:x}){let r={x:null,y:null},i=0,c=new Map,u=!1,d={x:0,y:0},s=null,f=!1,g=null,h=!1,m=!1,b=null;function v({noDragClassName:y,handleSelector:w,domNode:z,isSelectable:C,nodeId:P,nodeClickDistance:G=0}){const U=_0x3847;g=Bn(z);function W({x:Y,y:V}){const N=_0x3847,{nodeLookup:B,nodeExtent:L,snapGrid:E,snapToGrid:j,nodeOrigin:I,onNodeDrag:J,onSelectionDrag:ee,onError:_,updateNodePositions:$}=n();r={x:Y,y:V};let re=!1;const ue=c.size>1,we=ue&&L?Ko(E0(c)):null,ze=ue&&j?h2({dragItems:c,snapGrid:E,x:Y,y:V}):null;for(const[de,F]of c){if(!B[N(2012)](de))continue;let fe={x:Y-F[N(945)].x,y:V-F[N(945)].y};j&&(fe=ze?{x:Math[N(1958)](fe.x+ze.x),y:Math[N(1958)](fe.y+ze.y)}:U0(fe,E));let ye=null;if(ue&&L&&!F[N(1257)]&&we){const{positionAbsolute:ce}=F[N(1914)],ae=ce.x-we.x+L[0][0],De=ce.x+F[N(1977)][N(2272)]-we.x2+L[1][0],Me=ce.y-we.y+L[0][1],je=ce.y+F[N(1977)][N(863)]-we.y2+L[1][1];ye=[[ae,Me],[De,je]]}const{position:A,positionAbsolute:X}=zc({nodeId:de,nextPosition:fe,nodeLookup:B,nodeExtent:ye||L,nodeOrigin:I,onError:_});re=re||F[N(1711)].x!==A.x||F[N(1711)].y!==A.y,F.position=A,F[N(1914)][N(1951)]=X}if(m=m||re,!!re&&($(c,!0),b&&(o||J||!P&&ee))){const[de,F]=xr({nodeId:P,dragItems:c,nodeLookup:B});o?.(b,c,de,F),J?.(b,de,F),!P&&ee?.(b,F)}}async function O(){if(!s)return;const{transform:Y,panBy:V,autoPanSpeed:N,autoPanOnNodeDrag:B}=n();if(!B){u=!1,cancelAnimationFrame(i);return}const[L,E]=Bc(d,s,N);(L!==0||E!==0)&&(r.x=(r.x??0)-L/Y[2],r.y=(r.y??0)-E/Y[2],await V({x:L,y:E})&&W(r)),i=requestAnimationFrame(O)}function q(Y){const V=_0x3847,{nodeLookup:N,multiSelectionActive:B,nodesDraggable:L,transform:E,snapGrid:j,snapToGrid:I,selectNodesOnDrag:J,onNodeDragStart:ee,onSelectionDragStart:_,unselectNodesAndEdges:$}=n();f=!0,(!J||!C)&&!B&&P&&!N[V(2250)](P)?.[V(1700)]&&$(),C&&J&&P&&e?.(P);const re=H0(Y[V(2230)],{transform:E,snapGrid:j,snapToGrid:I,containerBounds:s});if(r=re,c=b2(N,L,re,P),c[V(1301)]>0&&(t||ee||!P&&_)){const[ue,we]=xr({nodeId:P,dragItems:c,nodeLookup:N});t?.(Y.sourceEvent,c,ue,we),ee?.(Y.sourceEvent,ue,we),!P&&_?.(Y.sourceEvent,we)}}const H=Gi()[U(801)](G).on(U(1808),Y=>{const V=U,{domNode:N,nodeDragThreshold:B,transform:L,snapGrid:E,snapToGrid:j}=n();s=N?.getBoundingClientRect()||null,h=!1,m=!1,b=Y[V(2230)],B===0&&q(Y),r=H0(Y[V(2230)],{transform:L,snapGrid:E,snapToGrid:j,containerBounds:s}),d=On(Y[V(2230)],s)}).on("drag",Y=>{const V=U,{autoPanOnNodeDrag:N,transform:B,snapGrid:L,snapToGrid:E,nodeDragThreshold:j,nodeLookup:I}=n(),J=H0(Y[V(2230)],{transform:B,snapGrid:L,snapToGrid:E,containerBounds:s});if(b=Y[V(2230)],(Y[V(2230)][V(1939)]===V(1409)&&Y[V(2230)].touches[V(2073)]>1||P&&!I[V(2012)](P))&&(h=!0),!h){if(!u&&N&&f&&(u=!0,O()),!f){const ee=On(Y.sourceEvent,s),_=ee.x-d.x,$=ee.y-d.y;Math[V(1012)](_*_+$*$)>j&&q(Y)}(r.x!==J[V(821)]||r.y!==J.ySnapped)&&c&&f&&(d=On(Y[V(2230)],s),W(J))}}).on("end",Y=>{const V=U;if(!(!f||h)&&(u=!1,f=!1,cancelAnimationFrame(i),c.size>0)){const{nodeLookup:N,updateNodePositions:B,onNodeDragStop:L,onSelectionDragStop:E}=n();if(m&&(B(c,!1),m=!1),x||L||!P&&E){const[j,I]=xr({nodeId:P,dragItems:c,nodeLookup:N,dragging:!1});x?.(Y[V(2230)],c,j,I),L?.(Y[V(2230)],j,I),!P&&E?.(Y[V(2230)],I)}}}).filter(Y=>{const V=U,N=Y[V(966)];return!Y[V(1201)]&&(!y||!Fc(N,"."+y,z))&&(!w||Fc(N,w,z))});g[U(1780)](H)}function M(){const y=_0x3847;g?.on(y(1402),null)}return{update:v,destroy:M}}function y2(e,n,t){const o=a,x=[],r={x:e.x-t,y:e.y-t,width:t*2,height:t*2};for(const i of n[o(1129)]())Y0(r,Qt(i))>0&&x[o(1371)](i);return x}const m2=250;function w2(e,n,t,o){const x=a;let r=[],i=1/0;const c=y2(e,t,n+m2);for(const u of c){const d=[...u[x(1914)][x(1608)]?.source??[],...u[x(1914)][x(1608)]?.[x(966)]??[]];for(const s of d){if(o[x(757)]===s[x(757)]&&o.type===s[x(1939)]&&o.id===s.id)continue;const{x:f,y:g}=Lt(u,s,s[x(1711)],!0),h=Math[x(1012)](Math[x(1898)](f-e.x,2)+Math[x(1898)](g-e.y,2));h>n||(h<i?(r=[{...s,x:f,y:g}],i=h):h===i&&r[x(1371)]({...s,x:f,y:g}))}}if(!r[x(2073)])return null;if(r[x(2073)]>1){const u=o[x(1939)]===x(1364)?"target":x(1364);return r.find(d=>d.type===u)??r[0]}return r[0]}function $c(e,n,t,o,x,r=!1){const i=a,c=o[i(2250)](e);if(!c)return null;const u=x===i(564)?c[i(1914)].handleBounds?.[n]:[...c.internals[i(1608)]?.source??[],...c[i(1914)][i(1608)]?.[i(966)]??[]],d=(t?u?.[i(1099)](s=>s.id===t):u?.[0])??null;return d&&r?{...d,...Lt(c,d,d[i(1711)],!0)}:d}function ea(e,n){const t=a;return e||(n?.[t(1361)][t(1216)](t(966))?"target":n?.[t(1361)][t(1216)](t(1364))?t(1364):null)}function v2(e,n){let t=null;return n?t=!0:e&&!n&&(t=!1),t}const na=()=>!0;function p2(e,{connectionMode:n,connectionRadius:t,handleId:o,nodeId:x,edgeUpdaterType:r,isTarget:i,domNode:c,nodeLookup:u,lib:d,autoPanOnConnect:s,flowId:f,panBy:g,cancelConnection:h,onConnectStart:m,onConnect:b,onConnectEnd:v,isValidConnection:M=na,onReconnectEnd:y,updateConnection:w,getTransform:z,getFromHandle:C,autoPanSpeed:P,dragThreshold:G=1,handleDomNode:U}){const W=a,O=Pc(e[W(966)]);let q=0,H;const{x:Y,y:V}=On(e),N=ea(r,U),B=c?.[W(445)]();let L=!1;if(!B||!N)return;const E=$c(x,N,o,u,n);if(!E)return;let j=On(e,B),I=!1,J=null,ee=!1,_=null;function $(){if(!s||!B)return;const[ye,A]=Bc(j,B,P);g({x:ye,y:A}),q=requestAnimationFrame($)}const re={...E,nodeId:x,type:N,position:E[W(1711)]},ue=u.get(x);let ze={inProgress:!0,isValid:null,from:Lt(ue,re,Se[W(860)],!0),fromHandle:re,fromPosition:re[W(1711)],fromNode:ue,to:j,toHandle:null,toPosition:wc[re[W(1711)]],toNode:null,pointer:j};function de(){L=!0,w(ze),m?.(e,{nodeId:x,handleId:o,handleType:N})}G===0&&de();function F(ye){const A=W;if(!L){const{x:je,y:Te}=On(ye),Pe=je-Y,gn=Te-V;if(!(Pe*Pe+gn*gn>G*G))return;de()}if(!C()||!re){fe(ye);return}const X=z();j=On(ye,B),H=w2(O0(j,X,!1,[1,1]),t,u,re),!I&&($(),I=!0);const ce=ta(ye,{handle:H,connectionMode:n,fromNodeId:x,fromHandleId:o,fromType:i?A(966):"source",isValidConnection:M,doc:O,lib:d,flowId:f,nodeLookup:u});_=ce.handleDomNode,J=ce[A(654)],ee=v2(!!H,ce[A(1655)]);const ae=u[A(2250)](x),De=ae?Lt(ae,re,Se[A(860)],!0):ze[A(1478)],Me={...ze,from:De,isValid:ee,to:ce[A(636)]&&ee?Ex({x:ce[A(636)].x,y:ce[A(636)].y},X):j,toHandle:ce[A(636)],toPosition:ee&&ce[A(636)]?ce[A(636)][A(1711)]:wc[re[A(1711)]],toNode:ce.toHandle?u[A(2250)](ce[A(636)].nodeId):null,pointer:j};w(Me),ze=Me}function fe(ye){const A=W;if(!(A(513)in ye&&ye.touches[A(2073)]>0)){if(L){(H||_)&&J&&ee&&b?.(J);const{inProgress:X,...ce}=ze,ae={...ce,toPosition:ze[A(636)]?ze[A(2168)]:null};v?.(ye,ae),r&&y?.(ye,ae)}h(),cancelAnimationFrame(q),I=!1,ee=!1,J=null,_=null,O.removeEventListener(A(1041),F),O.removeEventListener(A(2232),fe),O[A(662)](A(1409),F),O[A(662)](A(890),fe)}}O[W(824)](W(1041),F),O[W(824)](W(2232),fe),O[W(824)]("touchmove",F),O[W(824)](W(890),fe)}function ta(e,{handle:n,connectionMode:t,fromNodeId:o,fromHandleId:x,fromType:r,doc:i,lib:c,flowId:u,isValidConnection:d=na,nodeLookup:s}){const f=a,g=r===f(966),h=n?i[f(525)]("."+c+f(2194)+u+"-"+n?.[f(757)]+"-"+n?.id+"-"+n?.type+'"]'):null,{x:m,y:b}=On(e),v=i[f(1859)](m,b),M=v?.[f(1361)][f(1216)](c+f(1481))?v:h,y={handleDomNode:M,isValid:!1,connection:null,toHandle:null};if(M){const w=ea(void 0,M),z=M[f(1812)]("data-nodeid"),C=M[f(1812)]("data-handleid"),P=M[f(1361)][f(1216)]("connectable"),G=M[f(1361)][f(1216)](f(1160));if(!z||!w)return y;const U={source:g?z:o,sourceHandle:g?C:x,target:g?o:z,targetHandle:g?x:C};y[f(654)]=U;const W=P&&G,O=W&&(t===Jt.Strict?g&&w===f(1364)||!g&&w===f(966):z!==o||C!==x);y[f(1655)]=O&&d(U),y[f(636)]=$c(z,w,C,s,t,!0)}return y}const or={onPointerDown:p2,isValid:ta};function z2({domNode:e,panZoom:n,getTransform:t,getViewScale:o}){const x=Bn(e);function r({translateExtent:c,width:u,height:d,zoomStep:s=1,pannable:f=!0,zoomable:g=!0,inversePan:h=!1}){const m=_0x3847,b=z=>{const C=_0x3847;if(z[C(2230)].type!==C(1758)||!n)return;const P=t(),G=z[C(2230)][C(758)]&&G0()?10:1,U=-z[C(2230)].deltaY*(z[C(2230)][C(1349)]===1?.05:z.sourceEvent.deltaMode?1:.002)*s,W=P[2]*Math[C(1898)](2,U*G);n[C(753)](W)};let v=[0,0];const M=z=>{const C=_0x3847;(z[C(2230)][C(1939)]==="mousedown"||z[C(2230)][C(1939)]===C(1292))&&(v=[z[C(2230)][C(2179)]??z[C(2230)][C(513)][0][C(2179)],z[C(2230)].clientY??z[C(2230)].touches[0][C(550)]])},y=z=>{const C=_0x3847,P=t();if(z.sourceEvent[C(1939)]!==C(1041)&&z[C(2230)].type!==C(1409)||!n)return;const G=[z[C(2230)][C(2179)]??z[C(2230)][C(513)][0][C(2179)],z[C(2230)].clientY??z.sourceEvent.touches[0][C(550)]],U=[G[0]-v[0],G[1]-v[1]];v=G;const W=o()*Math[C(1425)](P[2],Math.log(P[2]))*(h?-1:1),O={x:P[0]-U[0]*W,y:P[1]-U[1]*W},q=[[0,0],[u,d]];n.setViewportConstrained({x:O.x,y:O.y,zoom:P[2]},q,c)},w=hc().on(m(1808),M).on(m(2184),f?y:null).on(m(2108),g?b:null);x[m(1780)](w,{})}function i(){const c=_0x3847;x.on(c(2184),null)}return{update:r,destroy:i,pointer:An}}const Ux=e=>({x:e.x,y:e.y,zoom:e.k}),rr=({x:e,y:n,zoom:t})=>kx[a(794)](e,n)[a(1632)](t),e0=(e,n)=>e.target[a(686)]("."+n),xa=(e,n)=>n===2&&Array[a(612)](e)&&e[a(1992)](2),C2=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,ir=(e,n=0,t=C2,o=()=>{})=>{const x=a,r=typeof n===x(1421)&&n>0;return!r&&o(),r?e[x(1870)]()[x(600)](n).ease(t).on("end",o):e},oa=e=>{const n=a,t=e[n(758)]&&G0()?10:1;return-e[n(423)]*(e[n(1349)]===1?.05:e[n(1349)]?1:.002)*t};function M2({zoomPanValues:e,noWheelClassName:n,d3Selection:t,d3Zoom:o,panOnScrollMode:x,panOnScrollSpeed:r,zoomOnPinch:i,onPanZoomStart:c,onPanZoom:u,onPanZoomEnd:d}){return s=>{const f=_0x3847;if(e0(s,n))return s[f(758)]&&s[f(666)](),!1;s[f(666)](),s[f(843)]();const g=t.property("__zoom").k||1;if(s[f(758)]&&i){const M=An(s),y=oa(s),w=g*Math[f(1898)](2,y);o.scaleTo(t,w,M,s);return}const h=s.deltaMode===1?20:1;let m=x===Bt[f(1490)]?0:s[f(1251)]*h,b=x===Bt.Horizontal?0:s[f(423)]*h;!G0()&&s[f(1721)]&&x!==Bt[f(1490)]&&(m=s.deltaY*h,b=0),o[f(723)](t,-(m/g)*r,-(b/g)*r,{internal:!0});const v=Ux(t[f(1743)](f(527)));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(u?.(s,v),e[f(892)]=setTimeout(()=>{const M=f;d?.(s,v),e[M(699)]=!1},150)):(e[f(699)]=!0,c?.(s,v))}}function B2({noWheelClassName:e,preventScrolling:n,d3ZoomHandler:t}){return function(o,x){const r=_0x3847,i=o[r(1939)]==="wheel",c=!n&&i&&!o[r(758)],u=e0(o,e);if(o[r(758)]&&i&&u&&o[r(666)](),c||u)return null;o.preventDefault(),t.call(this,o,x)}}function D2({zoomPanValues:e,onDraggingChange:n,onPanZoomStart:t}){return o=>{const x=_0x3847;if(o[x(2230)]?.internal)return;const r=Ux(o.transform);e[x(2036)]=o[x(2230)]?.[x(1201)]||0,e[x(1595)]=!0,e[x(1290)]=r,o[x(2230)]?.[x(1939)]===x(976)&&n(!0),t&&t?.(o.sourceEvent,r)}}function L2({zoomPanValues:e,panOnDrag:n,onPaneContextMenu:t,onTransformChange:o,onPanZoom:x}){return r=>{const i=_0x3847;e.usedRightMouseButton=!!(t&&xa(n,e.mouseButton??0)),!r[i(2230)]?.[i(482)]&&o([r[i(1274)].x,r[i(1274)].y,r[i(1274)].k]),x&&!r[i(2230)]?.[i(1398)]&&x?.(r[i(2230)],Ux(r.transform))}}function N2({zoomPanValues:e,panOnDrag:n,panOnScroll:t,onDraggingChange:o,onPanZoomEnd:x,onPaneContextMenu:r}){return i=>{const c=_0x3847;if(!i[c(2230)]?.[c(1398)]&&(e[c(1595)]=!1,r&&xa(n,e[c(2036)]??0)&&!e[c(1464)]&&i[c(2230)]&&r(i[c(2230)]),e[c(1464)]=!1,o(!1),x)){const u=Ux(i[c(1274)]);e.prevViewport=u,clearTimeout(e[c(916)]),e[c(916)]=setTimeout(()=>{x?.(i[c(2230)],u)},t?150:0)}}}function S2({zoomActivationKeyPressed:e,zoomOnScroll:n,zoomOnPinch:t,panOnDrag:o,panOnScroll:x,zoomOnDoubleClick:r,userSelectionActive:i,noWheelClassName:c,noPanClassName:u,lib:d,connectionInProgress:s}){return f=>{const g=_0x3847,h=e||n,m=t&&f.ctrlKey,b=f.type===g(1758);if(f[g(1201)]===1&&f[g(1939)]===g(976)&&(e0(f,d+"-flow__node")||e0(f,d+g(2167))))return!0;if(!o&&!h&&!x&&!r&&!t||i||s&&!b||e0(f,c)&&b||e0(f,u)&&(!b||x&&b&&!e)||!t&&f.ctrlKey&&b)return!1;if(!t&&f[g(1939)]==="touchstart"&&f[g(513)]?.[g(2073)]>1)return f[g(666)](),!1;if(!h&&!x&&!m&&b||!o&&(f[g(1939)]==="mousedown"||f[g(1939)]==="touchstart")||Array.isArray(o)&&!o[g(1992)](f[g(1201)])&&f[g(1939)]==="mousedown")return!1;const v=Array[g(612)](o)&&o[g(1992)](f[g(1201)])||!f[g(1201)]||f[g(1201)]<=1;return(!f[g(758)]||b)&&v}}function k2({domNode:e,minZoom:n,maxZoom:t,translateExtent:o,viewport:x,onPanZoom:r,onPanZoomStart:i,onPanZoomEnd:c,onDraggingChange:u}){const d=a,s={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},f=e[d(445)](),g=hc()[d(2013)]([n,t])[d(2206)](o),h=Bn(e).call(g);w({x:x.x,y:x.y,zoom:_t(x.zoom,n,t)},[[0,0],[f[d(2272)],f.height]],o);const m=h.on(d(1557)),b=h.on("dblclick.zoom");g.wheelDelta(oa);function v(H,Y){const V=d;return h?new Promise(N=>{const B=_0x3847;g?.[B(1083)](Y?.[B(1083)]===B(1871)?D0:vx)[B(1274)](ir(h,Y?.[B(600)],Y?.ease,()=>N(!0)),H)}):Promise[V(1284)](!1)}function M({noWheelClassName:H,noPanClassName:Y,onPaneContextMenu:V,userSelectionActive:N,panOnScroll:B,panOnDrag:L,panOnScrollMode:E,panOnScrollSpeed:j,preventScrolling:I,zoomOnPinch:J,zoomOnScroll:ee,zoomOnDoubleClick:_,zoomActivationKeyPressed:$,lib:re,onTransformChange:ue,connectionInProgress:we,paneClickDistance:ze,selectionOnDrag:de}){const F=d;N&&!s[F(1595)]&&y();const fe=B&&!$&&!N;g[F(801)](de?1/0:!Un(ze)||ze<0?0:ze);const ye=fe?M2({zoomPanValues:s,noWheelClassName:H,d3Selection:h,d3Zoom:g,panOnScrollMode:E,panOnScrollSpeed:j,zoomOnPinch:J,onPanZoomStart:i,onPanZoom:r,onPanZoomEnd:c}):B2({noWheelClassName:H,preventScrolling:I,d3ZoomHandler:m});if(h.on(F(1557),ye,{passive:!1}),!N){const X=D2({zoomPanValues:s,onDraggingChange:u,onPanZoomStart:i});g.on(F(1808),X);const ce=L2({zoomPanValues:s,panOnDrag:L,onPaneContextMenu:!!V,onPanZoom:r,onTransformChange:ue});g.on(F(2184),ce);const ae=N2({zoomPanValues:s,panOnDrag:L,panOnScroll:B,onPaneContextMenu:V,onPanZoomEnd:c,onDraggingChange:u});g.on(F(621),ae)}const A=S2({zoomActivationKeyPressed:$,panOnDrag:L,zoomOnScroll:ee,panOnScroll:B,zoomOnDoubleClick:_,zoomOnPinch:J,userSelectionActive:N,noPanClassName:Y,noWheelClassName:H,lib:re,connectionInProgress:we});g[F(526)](A),_?h.on(F(1860),b):h.on(F(1860),null)}function y(){const H=d;g.on(H(2184),null)}async function w(H,Y,V){const N=d,B=rr(H),L=g?.[N(1616)]()(B,Y,V);return L&&await v(L),new Promise(E=>E(L))}async function z(H,Y){const V=rr(H);return await v(V,Y),new Promise(N=>N(V))}function C(H){const Y=d;if(h){const V=rr(H),N=h[Y(1743)](Y(527));(N.k!==H[Y(2184)]||N.x!==H.x||N.y!==H.y)&&g?.[Y(1274)](h,V,null,{sync:!0})}}function P(){const H=d,Y=h?fc(h[H(694)]()):{x:0,y:0,k:1};return{x:Y.x,y:Y.y,zoom:Y.k}}function G(H,Y){const V=d;return h?new Promise(N=>{const B=_0x3847;g?.[B(1083)](Y?.[B(1083)]===B(1871)?D0:vx)[B(753)](ir(h,Y?.[B(600)],Y?.ease,()=>N(!0)),H)}):Promise[V(1284)](!1)}function U(H,Y){const V=d;return h?new Promise(N=>{const B=_0x3847;g?.[B(1083)](Y?.interpolate==="linear"?D0:vx).scaleBy(ir(h,Y?.[B(600)],Y?.[B(1018)],()=>N(!0)),H)}):Promise[V(1284)](!1)}function W(H){g?.[d(2013)](H)}function O(H){g?.[d(2206)](H)}function q(H){const Y=d,V=!Un(H)||H<0?0:H;g?.[Y(801)](V)}return{update:M,destroy:y,setViewport:z,setViewportConstrained:w,getViewport:P,scaleTo:G,scaleBy:U,setScaleExtent:W,setTranslateExtent:O,syncViewport:C,setClickDistance:q}}var n0;(function(e){const n=a;e[n(1506)]=n(2006),e[n(1027)]=n(442)})(n0||(n0={}));function I2({width:e,prevWidth:n,height:t,prevHeight:o,affectsX:x,affectsY:r}){const i=e-n,c=t-o,u=[i>0?1:i<0?-1:0,c>0?1:c<0?-1:0];return i&&x&&(u[0]=u[0]*-1),c&&r&&(u[1]=u[1]*-1),u}function ra(e){const n=a,t=e.includes(n(691))||e[n(1992)](n(1322)),o=e[n(1992)](n(1922))||e.includes(n(960)),x=e.includes("left"),r=e.includes("top");return{isHorizontal:t,isVertical:o,affectsX:x,affectsY:r}}function at(e,n){return Math[a(1425)](0,n-e)}function st(e,n){return Math.max(0,e-n)}function Ox(e,n,t){return Math[a(1425)](0,n-e,e-t)}function ia(e,n){return e?!n:n}function P2(e,n,t,o,x,r,i,c){const u=a;let{affectsX:d,affectsY:s}=n;const{isHorizontal:f,isVertical:g}=n,h=f&&g,{xSnapped:m,ySnapped:b}=t,{minWidth:v,maxWidth:M,minHeight:y,maxHeight:w}=o,{x:z,y:C,width:P,height:G,aspectRatio:U}=e;let W=Math[u(1679)](f?m-e[u(2086)]:0),O=Math.floor(g?b-e.pointerY:0);const q=P+(d?-W:W),H=G+(s?-O:O),Y=-r[0]*P,V=-r[1]*G;let N=Ox(q,v,M),B=Ox(H,y,w);if(i){let j=0,I=0;d&&W<0?j=at(z+W+Y,i[0][0]):!d&&W>0&&(j=st(z+q+Y,i[1][0])),s&&O<0?I=at(C+O+V,i[0][1]):!s&&O>0&&(I=st(C+H+V,i[1][1])),N=Math[u(1425)](N,j),B=Math[u(1425)](B,I)}if(c){let j=0,I=0;d&&W>0?j=st(z+W,c[0][0]):!d&&W<0&&(j=at(z+q,c[1][0])),s&&O>0?I=st(C+O,c[0][1]):!s&&O<0&&(I=at(C+H,c[1][1])),N=Math[u(1425)](N,j),B=Math[u(1425)](B,I)}if(x){if(f){const j=Ox(q/U,y,w)*U;if(N=Math[u(1425)](N,j),i){let I=0;!d&&!s||d&&!s&&h?I=st(C+V+q/U,i[1][1])*U:I=at(C+V+(d?W:-W)/U,i[0][1])*U,N=Math.max(N,I)}if(c){let I=0;!d&&!s||d&&!s&&h?I=at(C+q/U,c[1][1])*U:I=st(C+(d?W:-W)/U,c[0][1])*U,N=Math.max(N,I)}}if(g){const j=Ox(H*U,v,M)/U;if(B=Math[u(1425)](B,j),i){let I=0;!d&&!s||s&&!d&&h?I=st(z+H*U+Y,i[1][0])/U:I=at(z+(s?O:-O)*U+Y,i[0][0])/U,B=Math[u(1425)](B,I)}if(c){let I=0;!d&&!s||s&&!d&&h?I=at(z+H*U,c[1][0])/U:I=st(z+(s?O:-O)*U,c[0][0])/U,B=Math[u(1425)](B,I)}}}O=O+(O<0?B:-B),W=W+(W<0?N:-N),x&&(h?q>H*U?O=(ia(d,s)?-W:W)/U:W=(ia(d,s)?-O:O)*U:f?(O=W/U,s=d):(W=O*U,d=s));const L=d?z+W:z,E=s?C+O:C;return{width:P+(d?-W:W),height:G+(s?-O:O),x:r[0]*W*(d?-1:1)+L,y:r[1]*O*(s?-1:1)+E}}const ca={width:0,height:0,x:0,y:0},j2={...ca,pointerX:0,pointerY:0,aspectRatio:1};function A2(e){const n=a;return[[0,0],[e[n(1977)][n(2272)],e[n(1977)][n(863)]]]}function E2(e,n,t){const o=a,x=n[o(1711)].x+e.position.x,r=n.position.y+e[o(1711)].y,i=e.measured.width??0,c=e[o(1977)][o(863)]??0,u=t[0]*i,d=t[1]*c;return[[x-u,r-d],[x+i-u,r+c-d]]}function Y2({domNode:e,nodeId:n,getStoreItems:t,onChange:o,onEnd:x}){const r=a,i=Bn(e);let c={controlDirection:ra(r(1326)),boundaries:{minWidth:0,minHeight:0,maxWidth:Number[r(643)],maxHeight:Number[r(643)]},resizeDirection:void 0,keepAspectRatio:!1};function u({controlPosition:s,boundaries:f,keepAspectRatio:g,resizeDirection:h,onResizeStart:m,onResize:b,onResizeEnd:v,shouldResize:M}){const y=r;let w={...ca},z={...j2};c={boundaries:f,resizeDirection:h,keepAspectRatio:g,controlDirection:ra(s)};let C,P=null,G=[],U,W,O,q=!1;const H=Gi().on(y(1808),Y=>{const V=y,{nodeLookup:N,transform:B,snapGrid:L,snapToGrid:E,nodeOrigin:j,paneDomNode:I}=t();if(C=N[V(2250)](n),!C)return;P=I?.[V(445)]()??null;const{xSnapped:J,ySnapped:ee}=H0(Y[V(2230)],{transform:B,snapGrid:L,snapToGrid:E,containerBounds:P});w={width:C.measured[V(2272)]??0,height:C.measured[V(863)]??0,x:C[V(1711)].x??0,y:C[V(1711)].y??0},z={...w,pointerX:J,pointerY:ee,aspectRatio:w[V(2272)]/w[V(863)]},U=void 0,C.parentId&&(C[V(1257)]===V(418)||C.expandParent)&&(U=N[V(2250)](C[V(879)]),W=U&&C[V(1257)]===V(418)?A2(U):void 0),G=[],O=void 0;for(const[_,$]of N)if($[V(879)]===n&&(G[V(1371)]({id:_,position:{...$.position},extent:$.extent}),$.extent===V(418)||$[V(2118)])){const re=E2($,C,$[V(1994)]??j);O?O=[[Math.min(re[0][0],O[0][0]),Math[V(1449)](re[0][1],O[0][1])],[Math[V(1425)](re[1][0],O[1][0]),Math[V(1425)](re[1][1],O[1][1])]]:O=re}m?.(Y,{...w})}).on("drag",Y=>{const V=y,{transform:N,snapGrid:B,snapToGrid:L,nodeOrigin:E}=t(),j=H0(Y[V(2230)],{transform:N,snapGrid:B,snapToGrid:L,containerBounds:P}),I=[];if(!C)return;const{x:J,y:ee,width:_,height:$}=w,re={},ue=C[V(1994)]??E,{width:we,height:ze,x:de,y:F}=P2(z,c.controlDirection,j,c[V(1107)],c[V(2123)],ue,W,O),fe=we!==_,ye=ze!==$,A=de!==J&&fe,X=F!==ee&&ye;if(!A&&!X&&!fe&&!ye)return;if((A||X||ue[0]===1||ue[1]===1)&&(re.x=A?de:w.x,re.y=X?F:w.y,w.x=re.x,w.y=re.y,G[V(2073)]>0)){const Me=de-J,je=F-ee;for(const Te of G)Te[V(1711)]={x:Te[V(1711)].x-Me+ue[0]*(we-_),y:Te[V(1711)].y-je+ue[1]*(ze-$)},I[V(1371)](Te)}if((fe||ye)&&(re[V(2272)]=fe&&(!c[V(1140)]||c[V(1140)]===V(1723))?we:w[V(2272)],re[V(863)]=ye&&(!c.resizeDirection||c[V(1140)]===V(1703))?ze:w[V(863)],w[V(2272)]=re[V(2272)],w[V(863)]=re[V(863)]),U&&C.expandParent){const Me=ue[0]*(re[V(2272)]??0);re.x&&re.x<Me&&(w.x=Me,z.x=z.x-(re.x-Me));const je=ue[1]*(re[V(863)]??0);re.y&&re.y<je&&(w.y=je,z.y=z.y-(re.y-je))}const ce=I2({width:w[V(2272)],prevWidth:_,height:w[V(863)],prevHeight:$,affectsX:c.controlDirection[V(762)],affectsY:c[V(469)][V(631)]}),ae={...w,direction:ce};M?.(Y,ae)!==!1&&(q=!0,b?.(Y,ae),o(re,I))}).on(y(621),Y=>{q&&(v?.(Y,{...w}),x?.({...w}),q=!1)});i[y(1780)](H)}function d(){const s=r;i.on(s(1402),null)}return{update:u,destroy:d}}var Gx={exports:{}},cr={},Hx={exports:{}},ar={},aa;function U2(){const e=a;if(aa)return ar;aa=1;var n=D;function t(g,h){return g===h&&(g!==0||1/g===1/h)||g!==g&&h!==h}var o=e(1145)===typeof Object.is?Object.is:t,x=n[e(1115)],r=n.useEffect,i=n[e(2270)],c=n[e(1647)];function u(g,h){const m=e;var b=h(),v=x({inst:{value:b,getSnapshot:h}}),M=v[0][m(2151)],y=v[1];return i(function(){const w=m;M[w(845)]=b,M[w(562)]=h,d(M)&&y({inst:M})},[g,b,h]),r(function(){return d(M)&&y({inst:M}),g(function(){d(M)&&y({inst:M})})},[g]),c(b),b}function d(g){const h=e;var m=g[h(562)];g=g[h(845)];try{var b=m();return!o(g,b)}catch{return!0}}function s(g,h){return h()}var f=e(1624)===typeof window||e(1624)===typeof window[e(1629)]||typeof window[e(1629)].createElement>"u"?s:u;return ar[e(1842)]=n[e(1842)]!==void 0?n[e(1842)]:f,ar}var sr={},sa;function O2(){return sa||(sa=1,process.env.NODE_ENV!=="production"&&(function(){const e=_0x3847;function n(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}function t(m,b){const v=_0x3847;f||r.startTransition===void 0||(f=!0,console[v(1316)](v(1691)));var M=b();if(!g){var y=b();i(M,y)||(console[v(1316)]("The result of getSnapshot should be cached to avoid an infinite loop"),g=!0)}y=c({inst:{value:M,getSnapshot:b}});var w=y[0][v(2151)],z=y[1];return d(function(){const C=v;w[C(845)]=M,w[C(562)]=b,o(w)&&z({inst:w})},[m,M,b]),u(function(){return o(w)&&z({inst:w}),m(function(){o(w)&&z({inst:w})})},[m]),s(M),M}function o(m){const b=_0x3847;var v=m[b(562)];m=m[b(845)];try{var M=v();return!i(m,M)}catch{return!0}}function x(m,b){return b()}e(1624)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[e(2003)]=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(2003)](Error());var r=D,i=e(1145)===typeof Object.is?Object.is:n,c=r[e(1115)],u=r[e(2224)],d=r[e(2270)],s=r[e(1647)],f=!1,g=!1,h=typeof window>"u"||e(1624)===typeof window[e(1629)]||e(1624)===typeof window[e(1629)][e(2030)]?x:t;sr[e(1842)]=r.useSyncExternalStore!==void 0?r[e(1842)]:h,e(1624)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&e(1145)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[e(1438)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),sr}var la;function da(){const e=a;return la||(la=1,process.env.NODE_ENV===e(574)?Hx[e(1533)]=U2():Hx.exports=O2()),Hx[e(1533)]}var ua;function G2(){const e=a;if(ua)return cr;ua=1;var n=D,t=da();function o(s,f){return s===f&&(s!==0||1/s===1/f)||s!==s&&f!==f}var x=e(1145)===typeof Object.is?Object.is:o,r=t[e(1842)],i=n[e(1899)],c=n[e(2224)],u=n[e(1970)],d=n[e(1647)];return cr[e(1283)]=function(s,f,g,h,m){const b=e;var v=i(null);if(v[b(1205)]===null){var M={hasValue:!1,value:null};v[b(1205)]=M}else M=v[b(1205)];v=u(function(){function w(U){const W=_0x3847;if(!z){if(z=!0,C=U,U=h(U),m!==void 0&&M[W(1855)]){var O=M[W(845)];if(m(O,U))return P=O}return P=U}if(O=P,x(C,U))return O;var q=h(U);return m!==void 0&&m(O,q)?(C=U,O):(C=U,P=q)}var z=!1,C,P,G=g===void 0?null:g;return[function(){return w(f())},G===null?void 0:function(){return w(G())}]},[f,g,h,m]);var y=r(s,v[0],v[1]);return c(function(){const w=b;M[w(1855)]=!0,M[w(845)]=y},[y]),d(y),y},cr}var lr={},fa;function H2(){return fa||(fa=1,process.env.NODE_ENV!=="production"&&(function(){const e=_0x3847;function n(s,f){return s===f&&(s!==0||1/s===1/f)||s!==s&&f!==f}e(1624)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&e(1145)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(2003)](Error());var t=D,o=da(),x=typeof Object.is=="function"?Object.is:n,r=o[e(1842)],i=t[e(1899)],c=t[e(2224)],u=t[e(1970)],d=t[e(1647)];lr[e(1283)]=function(s,f,g,h,m){const b=e;var v=i(null);if(v[b(1205)]===null){var M={hasValue:!1,value:null};v[b(1205)]=M}else M=v[b(1205)];v=u(function(){function w(U){const W=_0x3847;if(!z){if(z=!0,C=U,U=h(U),m!==void 0&&M.hasValue){var O=M[W(845)];if(m(O,U))return P=O}return P=U}if(O=P,x(C,U))return O;var q=h(U);return m!==void 0&&m(O,q)?(C=U,O):(C=U,P=q)}var z=!1,C,P,G=g===void 0?null:g;return[function(){return w(f())},G===null?void 0:function(){return w(G())}]},[f,g,h,m]);var y=r(s,v[0],v[1]);return c(function(){const w=b;M[w(1855)]=!0,M[w(845)]=y},[y]),d(y),y},e(1624)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&e(1145)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[e(1438)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(1438)](Error())})()),lr}var ba;function T2(){const e=a;return ba||(ba=1,process.env.NODE_ENV===e(574)?Gx[e(1533)]=G2():Gx.exports=H2()),Gx[e(1533)]}var V2=T2();const q2=u0(V2),W2={},ha=e=>{let n;const t=new Set,o=(s,f)=>{const g=_0x3847,h=typeof s===g(1145)?s(n):s;if(!Object.is(h,n)){const m=n;n=f??(typeof h!="object"||h===null)?h:Object.assign({},n,h),t.forEach(b=>b(n,m))}},x=()=>n,r=()=>d,i=s=>(t.add(s),()=>t.delete(s)),c=()=>{const s=_0x3847;(W2?s(574):void 0)!==s(574)&&console[s(713)]("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t[s(1245)]()},u={setState:o,getState:x,getInitialState:r,subscribe:i,destroy:c},d=n=e(o,x,u);return u},X2=e=>e?ha(e):ha,{useDebugValue:K2}=D,{useSyncExternalStoreWithSelector:Z2}=q2,R2=e=>e;function ga(e,n=R2,t){const o=a,x=Z2(e[o(1787)],e[o(488)],e[o(1450)]||e[o(1841)],n,t);return K2(x),x}const ya=(e,n)=>{const t=a,o=X2(e),x=(r,i=n)=>ga(o,r,i);return Object[t(1975)](x,o),x},J2=(e,n)=>e?ya(e,n):ya;function Re(e,n){const t=a;if(Object.is(e,n))return!0;if(typeof e!==t(1130)||e===null||typeof n!="object"||n===null)return!1;if(e instanceof Map&&n instanceof Map){if(e[t(1301)]!==n[t(1301)])return!1;for(const[x,r]of e)if(!Object.is(r,n[t(2250)](x)))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n[t(1301)])return!1;for(const x of e)if(!n.has(x))return!1;return!0}const o=Object.keys(e);if(o[t(2073)]!==Object.keys(n)[t(2073)])return!1;for(const x of o)if(!Object[t(1589)].hasOwnProperty[t(1780)](n,x)||!Object.is(e[x],n[x]))return!1;return!0}const Tx=D[a(1054)](null),_2=Tx.Provider,ma=Dn[a(1558)]();function Ye(e,n){const t=a,o=D[t(1483)](Tx);if(o===null)throw new Error(ma);return ga(o,e,n)}function Je(){const e=a,n=D[e(1483)](Tx);if(n===null)throw new Error(ma);return D.useMemo(()=>({getState:n[e(488)],setState:n[e(1260)],subscribe:n[e(1787)]}),[n])}const wa={display:a(1895)},Q2={position:a(1494),width:1,height:1,margin:-1,border:0,padding:0,overflow:a(2141),clip:a(532),clipPath:"inset(100%)"},va=a(999),pa=a(787),F2=a(1144),$2=e=>e.ariaLiveMessage,eb=e=>e[a(1167)];function nb({rfId:e}){const n=a,t=Ye($2);return l[n(641)](n(2048),{id:F2+"-"+e,"aria-live":n(1164),"aria-atomic":"true",style:Q2,children:t})}function tb({rfId:e,disableKeyboardA11y:n}){const t=a,o=Ye(eb);return l.jsxs(l[t(1365)],{children:[l[t(641)](t(2048),{id:va+"-"+e,style:wa,children:n?o[t(815)]:o[t(1317)]}),l.jsx("div",{id:pa+"-"+e,style:wa,children:o["edge.a11yDescription.default"]}),!n&&l.jsx(nb,{rfId:e})]})}const Vx=D[a(1203)](({position:e="top-left",children:n,className:t,style:o,...x},r)=>{const i=a,c=(""+e)[i(1999)]("-");return l[i(641)](i(2048),{className:rn(["react-flow__panel",t,...c]),style:o,ref:r,...x,children:n})});Vx.displayName=a(2238);function xb({proOptions:e,position:n="bottom-right"}){const t=a;return e?.[t(1853)]?null:l.jsx(Vx,{position:n,className:"react-flow__attribution","data-message":t(880),children:l[t(641)]("a",{href:"https://reactflow.dev",target:t(2203),rel:"noopener noreferrer","aria-label":"React Flow attribution",children:t(1407)})})}const ob=e=>{const n=a,t=[],o=[];for(const[,x]of e[n(1132)])x.selected&&t[n(1371)](x.internals[n(1382)]);for(const[,x]of e.edgeLookup)x[n(1700)]&&o[n(1371)](x);return{selectedNodes:t,selectedEdges:o}},qx=e=>e.id;function rb(e,n){const t=a;return Re(e[t(1121)].map(qx),n[t(1121)][t(1913)](qx))&&Re(e[t(1442)].map(qx),n[t(1442)][t(1913)](qx))}function ib({onSelectionChange:e}){const n=a,t=Je(),{selectedNodes:o,selectedEdges:x}=Ye(ob,rb);return D[n(2224)](()=>{const r=n,i={nodes:o,edges:x};e?.(i),t[r(488)]().onSelectionChangeHandlers[r(1935)](c=>c(i))},[o,x,e]),null}const cb=e=>!!e[a(1480)];function ab({onSelectionChange:e}){const n=Ye(cb);return e||n?l.jsx(ib,{onSelectionChange:e}):null}const dr=typeof window!==a(1624)?D[a(2270)]:D[a(2224)],za=[0,0],sb={x:0,y:0,zoom:1},lb=[a(1687),a(710),a(1248),a(2046),"onConnect",a(2190),a(1101),"onClickConnectStart","onClickConnectEnd","nodesDraggable",a(1686),a(901),"nodesFocusable",a(1335),a(1072),"elevateNodesOnSelect","elevateEdgesOnSelect",a(1217),a(1185),a(1750),a(1491),"onEdgesChange",a(567),a(548),a(885),a(1112),a(2206),a(573),a(1847),a(834),a(1676),a(2037),a(1519),a(1077),"onNodeDrag",a(1701),a(1682),a(1791),a(1347),a(1615),a(1056),a(1681),a(941),a(1802),a(825),"autoPanOnConnect",a(2215),a(1049),a(1495),a(517),a(1881),a(1720),a(2180),a(1757),"debug","autoPanSpeed","ariaLabelConfig",a(1422)],Ca=[...lb,a(1095)],db=e=>({setNodes:e[a(722)],setEdges:e.setEdges,setMinZoom:e[a(1152)],setMaxZoom:e.setMaxZoom,setTranslateExtent:e[a(2029)],setNodeExtent:e[a(1097)],reset:e.reset,setDefaultNodesAndEdges:e[a(716)]}),Ma={translateExtent:P0,nodeOrigin:za,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function ub(e){const n=a,{setNodes:t,setEdges:o,setMinZoom:x,setMaxZoom:r,setTranslateExtent:i,setNodeExtent:c,reset:u,setDefaultNodesAndEdges:d}=Ye(db,Re),s=Je();dr(()=>{const g=_0x3847;return d(e.defaultNodes,e[g(2046)]),()=>{const h=g;f[h(1205)]=Ma,u()}},[]);const f=D[n(1899)](Ma);return dr(()=>{const g=n;for(const h of Ca){const m=e[h],b=f.current[h];m!==b&&typeof e[h]!==g(1624)&&(h===g(1687)?t(m):h==="edges"?o(m):h==="minZoom"?x(m):h===g(1185)?r(m):h===g(2206)?i(m):h===g(1750)?c(m):h==="ariaLabelConfig"?s[g(1260)]({ariaLabelConfig:J5(m)}):h===g(834)?s[g(1260)]({fitViewQueued:m}):h===g(1676)?s.setState({fitViewOptions:m}):s.setState({[h]:m}))}f.current=e},Ca.map(g=>e[g])),null}function Ba(){const e=a;return typeof window===e(1624)||!window.matchMedia?null:window[e(450)](e(683))}function fb(e){const n=a,[t,o]=D[n(1115)](e===n(931)?null:e);return D[n(2224)](()=>{const x=n;if(e!=="system"){o(e);return}const r=Ba(),i=()=>o(r?.matches?x(998):x(1833));return i(),r?.[x(824)]("change",i),()=>{r?.removeEventListener("change",i)}},[e]),t!==null?t:Ba()?.matches?n(998):n(1833)}const Da=typeof document!==a(1624)?document:null;function T0(e=null,n={target:Da,actInsideInputWithModifier:!0}){const t=a,[o,x]=D[t(1115)](!1),r=D[t(1899)](!1),i=D.useRef(new Set([])),[c,u]=D.useMemo(()=>{const d=t;if(e!==null){const s=Array.isArray(e)?e:[e],f=s.filter(h=>typeof h===d(955))[d(1913)](h=>h.replace("+",`
|
|
5
|
-
|
|
1
|
+
(function(Ye,l){const D=_0x51e5,p=Ye();for(;;)try{if(-parseInt(D(1460))/1+parseInt(D(1924))/2+parseInt(D(1618))/3+parseInt(D(2215))/4*(parseInt(D(1105))/5)+parseInt(D(1935))/6+parseInt(D(692))/7*(-parseInt(D(1888))/8)+parseInt(D(1142))/9*(parseInt(D(606))/10)===l)break;p.push(p.shift())}catch{p.push(p.shift())}})(_0x5e7c,231087),(function(Ye,l){const D=_0x51e5;typeof exports===D(990)&&typeof module!==D(644)?l(exports,require("react/jsx-runtime"),require(D(903)),require(D(2091)),require("@ant-design/icons"),require(D(1802)),require("immer"),require(D(2131)),require(D(1796)),require("react-dom")):typeof define=="function"&&define[D(1092)]?define([D(836),"react/jsx-runtime","react",D(2091),D(1827),D(1802),D(2173),"nanoid",D(1796),D(1558)],l):(Ye=typeof globalThis!==D(644)?globalThis:Ye||self,l(Ye[D(2266)]={},Ye[D(620)],Ye.React,Ye.antd,Ye[D(2277)],Ye[D(1802)],Ye[D(2173)],Ye[D(2131)],Ye[D(1818)]))})(this,function(Ye,l,D,p,fe,co,Ft,je,_t){"use strict";function _0x51e5(Ye,l){Ye=Ye-410;const D=_0x5e7c();let p=D[Ye];if(_0x51e5.hGnsdx===void 0){var fe=function(_t){const c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let Gn="",ut="";for(let p0=0,K0,Z0,bt=0;Z0=_t.charAt(bt++);~Z0&&(K0=p0%4?K0*64+Z0:Z0,p0++%4)?Gn+=String.fromCharCode(255&K0>>(-2*p0&6)):0)Z0=c.indexOf(Z0);for(let p0=0,K0=Gn.length;p0<K0;p0++)ut+="%"+("00"+Gn.charCodeAt(p0).toString(16)).slice(-2);return decodeURIComponent(ut)};_0x51e5.yFajsY=fe,_0x51e5.LmqfMA={},_0x51e5.hGnsdx=!0}const co=D[0],Ft=Ye+co,je=_0x51e5.LmqfMA[Ft];return je?p=je:(p=_0x51e5.yFajsY(p),_0x51e5.LmqfMA[Ft]=p),p}function _0x5e7c(){const Ye=["y2XLyxjjBNrLCNzHBa","5l6l5AAc77YACMvMCMvZAa","B2zMC2v0v2LKDgG","sLnptIdMOlZLVi/PLjNOR6/VViZOR7FMO4dMN6xOVPpLHAu","57Ut5P2F5A+86kEi","Dg9qB3nPDgLVBG","C2v0vgLTzw91Da","zgfZAgvK","DhjHBNnSyxrLkc0","CMvKDwnL","zxHLyW","Dg9gAxHLza","5yc85P2L5RQq","77Ym5AsA5ywL6l6555sOia","CMfUz2u","DMfSDwvtDhLSzq","z2vVBwv0CMLJuhjLy2LZAw9U","jhTSywjLBh3POBVLNkGKE21PBN0TjhTTyxH95A2x56YM5lMl6zE0","yxrHBG","B25nB3zLrw5K","z2v0tM9Kzuv2zw50qMLUzgLUz3m","5zYg6kEs55+P5B2I","AgfUzgXLrg9TtM9Kzq","5A2x5Q616AQm6k+b6zsz6k+VjhTSywjLBh0","yMXVy2SGDY1MDwXSihrLEhqTC20GDgv4Dc1NCMf5ltuWmaOGicaGicaGicaGicaGicaGicbMAwXLoM1YltqGzMLSztPWEs0YigzPBgu6ChGTnaOGicaGicaGicaGicaGicaGicbMAwXLoNjVDw5KzwqTzNvSBcbMAwXLoMjVCMrLCI0WcIaGicaGicaGicaGicaGicaGigzPBgu6Dgv4Dc1ZBsbMAwXLoMzVBNqTC2vTAwjVBgqkicaGicaGicaGicaGicaGicaGzMLSztPIzY1IBhvLltuWigzPBgu6Dgv4Dc1IBhvLltCWmaOGicaGicaGicaGicaGicaGicbOB3zLCJPMAwXLoMjNlwjSDwuTmtaW","mJK4ndCZnMjkrLLZDG","w3jVBgu9iMXPC3rIB3GIxq","55s75BId5A+85yE65AsX6lsL","DY1MDwXSigGTzNvSBa","x3bHCMvUDa","zMXLEcbQDxn0Awz5lwjLDhDLzw4GAxrLBxmTy2vUDgvYig1Iltm","AhLWB3q","y3jPC3bfzgDLCW","yM9YzgvYq29SB3i","C2vSzwn0q2HPBgq","5y+Q6io95lIk5lYG5zU+54Mh5PAh5lU2iq","q29UBMvJDgLVBKXPBMu","Bwf0zxjPywXZ","5lQl5lU25Rwb","zxjYB3iWmte","EvnUyxbWzwq","uMLNAhq","yM91BMreyxrHC2v0swq","57Ut5P2F5A2J5BQM","C2v0qxr0CMLIDxrL","mNb4ihnVBgLKia","z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y","CgWTmsbIB3jKzxiTBc0YigjVCMrLCI1HBwjLCI0Ymda","DhjPz2DLCK5Vzgu","BwiTncbWltmGyMCTyw1IzxiTntaGCM91BMrLzcbIB3jKzxiGyM9YzgvYlwfTyMvYlteWmcb0zxH0lxnT","BwWTmG","ChjLDMLLDW","6l+E57UT5A6E57Q/","x3bHCMvUDhm","w1jLywn0iezSB3DDifrOzsbWywrKAw5NihzHBhvLici","Dg91y2HLBMq","u21VB3rOu3rLCevKz2vjBNrLCM5HBa","zM9UDc1TzwrPDw0GDgv4Dc1ZBq","ieHLBha6igH0DhbZoI8VCMvHy3rMBg93lMrLDI9LCNjVCIm","6ycj5OUP5zgO","Dg91y2GX","ndK4mtuYuK1eBhzM","BM9KzxndB25Uzwn0ywjSzq","5y2v5y+c5PwWigrHDghVViJLR7NOSAhVViNVViZPOBSGCMv0DxjUihrYDwuVzMfSC2xVVjVMTyVNGRNMLBdNU4tMJiKGCgfYyw1Zq29KzsdLKiJLUBBOV5SGzgf0yEoaGG","54MP5PAz5BQt","y2HLy2TLza","Bg9HzgLUzW","6k+35ywi57Ur5A6A5PwW5O2U6zUg","tufurvjjquXFu1rbvfvtx0niqu5hrq","C3rHCNruCMfUC2L0Aw9U","Aw5WDxq","ChGPihnJywXLka","otK2mJrcqM9vCMm","AgfUzgXLCG","BM9Kzvr5Cgu","6iQc54k55zcn56EW","zgvSDgfnB2rL","lNn2zW","CMvJDa","y2HLy2TwAxnPyMLSAxr5","yNvPBgrnzxjNzwreyxrHuMvJB3jK","DhjHBNnSyxrLm2qO","AxnqCMLTyxj5","mtjWEcaW","zMLSDgvY","55sX6kgO6l6+5BYp6iEQ5yQO6k6H566x","yxjYB3DJBg9Zzwq","y2HLy2TfCxvHBgL0Eq","DMfSDwvgB250u2L6zq","q29UDhjVBcbqyw5LBa","ywjZB2X1DguGDg9WltaGCMLNAhqTmcb3ltmGAc0ZigjNlwjSDwuTntaWigjVCMrLCI0YigjVCMrLCI13AgL0zsbYB3vUzgvKlwz1BgW","5PYQ55+L57g75z6l","lcb5oIa","rxzLBNqGzMXVDYbUB3qGAw5PDgLHBgL6zwqGzM9Yia","z2v0u25HChnOB3q","y2HHBMDL","5lIk5lIQ5PYiicJNV7VPOBxKUiRPLk4P","y2XLyxjbBgW","yxjPyuXHyMvSq29UzMLN","5OUw5OU96lcd5Pw05AsN5Bcp","BM9Kzs5Hmtf5rgvZy3jPChrPB24UA2v5yM9HCMreAxnHyMXLza","CMvWzwf0kdGSidfMCIK","t1busu9o","C2v0uhjVCgvYDhK","54Q25Ocb5yIx6kgO","Cc0ZigjVCMrLCI1IigjVCMrLCI1NCMf5ltiWma","DxnLCKfNzw50","ugXLyxnLig9UBhKGAgLKzsb0AgLZigf0DhjPyNv0Aw9UihDOzw4GEw91igfYzsbZDwjZy3jPyMvKihrVifjLywn0iezSB3CGuhjVoIbODhrWCZOVl3bYBY5YzwfJDgzSB3CUzgv2","44cn77YA5lIk5RI4","CMDIkdi1nsWGmJmSidiZkq","5yAf6l656lED","6BUy6k6K6Ag555UU","z2v0sw5ZDgfUy2u","CMvZzxrgAwvSzhm","6yca5yE66k+L57Ue55Qe5Rwp6kEi5QIH5BYp77Yi5Asw6yoO57+76Ag1ifvjiowWHUEMGEEuQo+8Iq","C3rHy2S","5OMl5yQO6l6t5ywL5PI+56s655Qe5yc8","y2XPy2SUzhjHzW","Aw5PDgLHBfrLyxjKB3DU","5PIV5zcM5zcV55sO5PYS5lQl5lU25Rwb","Aw52zxj0wq","y29UzMLNrwrPDg9Y","DxbKyxrL","CMvHy3qTzMXVD19FBwLUAw1HCc1KzxnJ","AxntDg9WCgvK","Bwf0zxjPywWTChjLDMLLDYb3lteYigGTmtiGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Jzw50zxiGCM91BMrLzcbIB3jKzxiGyM9YzgvYlwDYyxKTmJaWia","Axnqyw5ty3jVBgXPBMC","yM9YzgvYuMfKAxvZ","57Ue5yAf55s75BId77Yi5OYj6Ag65BQp57+76Ag177Yj","z2v0u2nYzwvUq1rn","ugfUzwW","rw50zxi","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igfUigvKz2uUifLVDsbJyw4GDgHLBIbWCMvZCYbKzwXLDguGDg8GCMvTB3zLigL0ig9YigvZy2fWzsb0BYbJyw5JzwWU","AxnbCNjHEq","x2fJDgL2zq","zxjYB3jZ","BM9KzxneCMfNz2fIBgu","CMvHy3qTzMXVD19FzwrNzxvWzgf0zxi","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvU","5Rwl6k+v5PwW5O2UicHku09okq","6ycj5OUP57Q/5P2H5Qc35BYp","AwnVBG","5BgE5OcN6z2I5P2/","CMvHy3qTzMXVD19FzwrNzs1WyxrO","Ac1MDwXS","BgfIzwXtDhLSzq","zxjYB3iWmdu","qxjYB3C","zg9TywLU","B25oB2rLq2XPy2S","C3vWChjLC3nLza","yMCTyMX1zs01mcbYAw5NltiGCMLUzY1IBhvLltqWma","AxrLCMf0B3i","Aw5PDgLHBeHLAwDODa","5PQc5PEG54Q25Ocb77Ym54k55yE75lIk5PA55OYj6zkU5RE75yQG","5OMN6kgm6kgO6l6+5BYp","y2XPy2S","zMXLEc0Xig92zxjMBg93lxKTyxv0BYbWlti","ChjLDMLVDxntAwjSAw5N","6k+36ycj5OUP55UU5Qch55s75BId","Cc0ZigjVCMrLCI10igjVCMrLCI1NCMf5ltiWmcbIzY1NCMf5ltuW","y29TBw9Utg9JywXL","5zcm57QN5ywZ57o7ia","5zcr5zcoiduG6Ag1","DxnLtwvTBW","ywjZB2X1DguGDg9WltaGBgvMDc0WihbVAw50zxiTzxzLBNrZlw5VBMuGB3zLCMzSB3CTAgLKzgvU","BxqTncbMBgv4igP1C3rPzNKTzw5K","zgLZywjSzuTLEwjVyxjKqteXEq","C2v0vhjHBNnMB3jT","x19WCM90B19F","C2v0vMLLD3bVCNq","BgLUzwfYlwDYywrPzw50khrVihjPz2H0lcbYz2jHkdi0mcWYndaSmJqWldaUmdmPidfWEcWGDhjHBNnWyxjLBNqGmxb4ksWGBgLUzwfYlwDYywrPzw50khrVigjVDhrVBsWGCMDIysGYndaSmJqWldi0mcWWlJaZksaXChGSihrYyw5ZCgfYzw50idfWEcK","5O+q56s65yAf5A65","DMLLDW","5lIk5lIa5Q2L","sgfUzgXL","w2rHDgeTAgfUzgXLpsjZDgfYDcjD","BM9Kzs1OzwfSDgGTz3jHzguTyMXPBMST","5A+85ywLiePtt04","wvLzwEw5Ta","5PQc5PEG5lQl5lU25Rwb57Ur5A6A","zwfJAa","i2zHywqXna","vMvYDgLJywW","ltuSltqGmcWWic01ldq","Bw91C2vcDxr0B24","B25oB2rLrhjHzW","54Q25Ocb6kgO6l6+5BYp5OMN6kgm5AsX6lsLifS","D2fYBG","5lIl5A+56B2q","z2v0uMvHzgvY","yMCTD2HPDguGChGTmsbYB3vUzgvK","Bw92zq","u3rLCevKz2u","qxjYB3DeB3DUt3v0BgLUzwq","C291CMnL","ywjZB2X1DguGDg9WltaGBgvMDc0WihbVAw50zxiTzxzLBNrZlw5VBMu","yM90Dg9TlxjPz2H0","zgvMyxvSDevKz2vZ","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iInMywfKmtqIihj4psiYmciVpJWVC3zNpG","ChGSidaP","AgfUzgXLCW","C2fTCgXLsNnVBG","DgfYz2v0ug9ZAxrPB24","lNjLywn0lwzSB3C","vevyvefsrue","y29WEq","y3jLyxrLrxzLBNrgBg93ugLWzwXPBMu","DhjHBNnSyxrL","CMvHy3qTzMXVD19FBM9Kzs1KzxnJ","5Asw6yoO5PA55Rov5Qch6k+g","y2fUy2vSywjSzq","CMvTB3zLq2HPBgq","C291CMnLsgfUzgXL","5lQl5lU25z2x5PYQ6ywn572UigrHDgfszxf1zxn0s2v5","y29UDhjVBhmUyxjPyuXHyMvS","iI8+pc9ZDMC+","B2zMC2v0","CMvZzxq","6BYG5Qch6l+B5ywL","zwXLDMf0zu5VzgvZt25tzwXLy3q","zxHLy3v0Aw9Uugf0Aa","C2vSzwn0zwroB2rLCW","5ywO6ycj5B2t6Ag1","C3LUy1zPzxDWB3j0","5A+85yE65OIq5yQF77Yb","z2v0u2vYDMvYu3rHDgu","uhjVDMLKzwqGB2jQzwn0igrVzxmGBM90ignVCNjLy3rSEsbPBxbSzw1LBNqGu3LTyM9SlM9IC2vYDMfIBgu","yw50za","CMvHy3qTzMXVD19FzwrNzs0","iwjNlwjSDwuTntaW","cIaGicaGicaG","Bwf0CML4vhjHBNnMB3jT","5OUw5OU96lcd5Pw06lw354k5","q3vZDg9TrxzLBNq","AxnwywXPzenVBM5Ly3rPB24","BM9Kzq","ChjLDLzPzxDWB3j0","6ycj5OUP5PwW5O2U6zUg","D2fYBMLUzW","AgLKzgvU","zgvMAw5LuhjVCgvYDhK","CMzFx25VzguT","qxjYB3DeB3DU","CMvHzefZvgv4Da","yw4GAw52ywXPzcbVyMPLy3q","5y+w5RAi5ywO6ycj","DgLTzxjjza","5Asw6yoO5PA55Rov","y3rYBeTLEq","6ycj5OUP5PwW5O2U5RgG5lIT55Qe5PwW5O2U6zUg5l2C5lI65PwW5O2U5RQq","Dg91y2HLCW","yMfJA2DYB3vUzeLTywDL","zMXLEcbNyxaTna","zgvSzxrL","Dgv4Dc1Jzw50zxiGDgv4Dc14CYb0zxH0lwDYyxKTntaW","y3vYCMvUDfrHCMDLDa","B25fCNjVCG","xMHZBfWO","BgLUzvDLAwDODa","qebVyNnLCNzHyMXL","6k+36l6t5ywLjhTSywjLBh0","AgfUzgXLqM91BMrZ","CMvHzg9UBhK","zgLZCgXHEwfIBgu","lM1HDgvYAwfSlxbYzxzPzxC","zMLSzq","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbVDMvYzMXVDY1OAwrKzw4","BMfUB2LK","5A2x5l2t5AsN5Bcp","u3rYywLNAhq","zM9UDfnPEMu","CMvHy3qTzMXVD19Fy29UDhjVBhmTzML0DMLLDW","zMLYC3rdAgLSza","CM9VDfbHCMvUDeLUzgv4","rxzLBNqGzMXVDYbLCNjVCJO","x2fKzfbHCMvUDa","5A+85yE65B2t5yMn55s75BId","Cg9PBNrLCKLK","y2vUDgvYignLBNrLCG","CMvHy3qTzMXVD19Fyxr0CMLIDxrPB24","BgLNAhq","zxzLBNrgBg93","u2HPzNq","zgf0ys4","zML0vMLLD09WDgLVBNm","C2v0uhjVDg90ExbLt2y","C3rYAw5N","mcaYChGGohb4ihjNyMeOmcWWldaSmc4XnsK","6iQc54k554Q25Ocb55sO55Qe5PwW5O2U6zUg77Yi5lIo5lQl5lU25Rwb5PEG5ywZ77Yj","Dgv4Dc14CYb0zxH0lwDYyxKTntaW","yxnpyNnLCNzHyMXL","rxzLBNqGzMXVDYbLEgvJDxrPB24GzMfPBgvK","qMfJA2DYB3vUza","BxmGzwfZzs1PBI1VDxqGAw5MAw5PDguGywX0zxjUyxrL","Aw5PDev2zw50","Cgf0Aa","Ahr0CdOVl3D3DY53mY5VCMCVmtK5os94BgLUAW","yMfZzwXPBMu","5lUo57Ue5lIT56E76zMK","Dw5YzwDPC3rLCKv2zw50qMXVy2S","AxnwAwv3","q1vtve9n","zwfZzq","y2fSBgjHy2S","CMvHy3qTzMXVD19FCgfUzwW","6yca5yE65Rwp6kEi","zMLYC3rfBgvTzw50q2HPBgq","6lw354k5ifK","6k+35AgR5yAz6k+35Rgc5Qch6k+g","Aw1Tzxi","ugX1C091DgXPBMvK","BxqTmIbWltiGyM9YzgvYihjVDw5Kzwq","Bw0VCW","zwrPDa","DxnLu3LUy0v4DgvYBMfSu3rVCMvxAxrOu2vSzwn0B3i","6k+36ycj5OUP5yAf572U5yQO5l2C","yM91BMrHCMLLCW","6BUy6k6K54Q25Ocb","C3rVCeLTBwvKAwf0zvbYB3bHz2f0Aw9U","54MP5PAz5BgE5OcN","5y+Z6zsU6i+C5y2v","zwrNzq","57Ut5P2F5PYi5lU9","ioADOEwfPEI+UsdIHPdJGiW","6BYG5Qch5OYj5lIl","yxv0BY1ZDgfYDc1YzxzLCNnL","CM9VDa","5Asn5yI25OIq5yQF","6lEZ6l2SoIa","CMvTB3zL","BM9qyw5dBgfZC05HBwu","6ycj5OUP5BM05lUJ","5A+85ywL5OIq5yQF77Yb","ywjZB2X1DguGDg9WltaGBgvMDc0WihCTmYbOltmGyMCTyMX1zs01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","zgf0yvjLCxvLC3rlzxK","AxnjBNrLCM5HBa","6Ag65PE26zki5PEl6l2S6kEs5BQM77Yi5BQM77Yj","zw5HyMXLza","xhmQkfSRlv0/kd86xgqQxc4Pp1XKkYG/oLTLrv1BkY1Dp1XKkYK/kvXZkG","x196B29TAw5N","CxvLCNLtzwXLy3rVCG","5PEG562B6ycj6Ag5","57ky6ls0iePtt04G5yAf5A65lI4U","yM9VBgvHBG","yxjNCY5WCMv2","Bwf0zxjPywW","DxjSkcm","5lQl5lU25Rwb5l+D5A2y5OIq5yQF","u3rYAwn0","5yAf572U5yQO5l2C","y3vYC29YlxbVAw50zxiGBwiTma","nJHWD2LXEhu","ChGS","zNjVBuHHBMrSzq","tKvhqvrjvKvFsu5gsu5jvfK","Bw91C2vKB3DU","5RE75yQG5lQl5lU25z2x","C3rHCNrxAwr0Aa","zgvSzxrHyMXL","Dgv4Da","x3zHBhvL","yxjNCW","C2vSzwn0C3rHCNqUzhjHzW","zw5KlNjLBw92zq","B3DUzxjeB2n1BwvUDa","twfYA2vYrgvMAw5PDgLVBNm","zMLSBgvK","zxH0zw50","5yQO55s757g75z6l","y2XPzw50wa","6ycj5OUP5PEL5PYF","Aw5qCM9NCMvZCW","DhjHBNnSyxrLvg8","Bw91C2vKB3DUlMrYywC","BgLUzujVEa","qebPDgvYyxrVCG","zhjHz2DPBMC","AgfZvMfSDwu","Aw1Hz2uVkG","6zEQ54ob5zgO5PYFkg1Zkq","i2zMzMzMzG","6ycj5OUP5BM05lU9","BgLUzxm","6iom5PMV5zU+54Mh","AhnSka","BM9YBwfS","md3MSltLUBpLKjhLJ7pVViW5md3LNOlNM7tLKjhKUiVVViZKU4xNLkJKUO7MOlNMJA7OTBFNGRNLKOZPLB/LUQBPH43MLRdORQhNRPFNU4JNGRK","5yIG6zMK5PAh5lU2","x25HBwu","DY0XmcbOlteWig9IAMvJDc1JB250ywLU","zxjYB3iWmdi","x3n1yNnJCMLIzq","yMCTD2HPDguGyM9YzgvYlwiGyM9YzgvYlwDYyxKTmJaWigzSzxGGAxrLBxmTy2vUDgvYigP1C3rPzNKTyMv0D2vLBIbWEc00ihb5lti","BwiTmcbTDc00","B3jPzw50","Bs9ZWRi","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWmcbWEs00igjNlwDYyxKTntaGCM91BMrLzc1SzW","8j+sOsdMJ5dNPlRVVjRNGRNLH7VNU5JLIlBNUR/MRRxVViZLJ6/OV57NU63NU5JLIlBLPjRMRRxNUR/VViZLJ4ZLH7VNU5pMNz/NU5JLIlBVViXfu0mG5y+w5RAi","vg9Nz2XLieLUDgvYywn0AxzPDhK","y2XPzw50vg9W","57Ue5Ocb57Yw6l6r5zMO","Dgv4DgfYzwe","q29UzMLNrwrPDg9Y","zMXLEc0XigGTzNvSBcbIzY1NCMf5lteWma","iIbKB2vZBID0igv4Axn0lG","Dgv4Dc1ZBsb0zxH0lwDYyxKTnZaW","x3rOCM93swzdBg9Zzwq","zgvMCW","CMvTB3zLqxr0CMLIDxrL","Bg9JywW","cIaGicaGicaGica","Aw52zxj0","D29YAW","AwnVBNm","6yEn5zg95zcn","Cc02","BMf2AwDHDgLVBLn0ywnR","BgvMDa","C3fYDa","CMvHy3qTzMXVD19FCgfUzq","AgfZrxjYB3i","z2v0u3rHDgu","yM9YzgvY","B3bZ","6iQc54k55Qc55O2U54Q25Ocb6kgO6l6+5BYp6k6H566x57Ut5P6C5PI+56s65A+55BQu54MP5PAz77Ym56YS5lIa5lIQ6l+u5zUEihrYDwuG55Qe54Q25Ocb5lI65B2t5yMn54Q25Ocb","C2vSzwn0zwrfzgDLCW","5y+c5PwW5zcn77Ym5AAciee","rwrNzvrLEhq","C3bHy2uTEs0Z","EMHFq04","Dw5ZAgLMDa","DgL0Bgu","C291CMnLug9ZAxrPB24","y3jLyxrLu1zhug9PBNq","AgLZDg9YEq","57Ui54k5ifK","tgvMDe91DgXPBMvK","CM90yxrLkdKWzgvNkq","57Ur5A6A5PwW5O2U6zUg","rxzLBNqGzMXVDYbLEgvJDxrPB24GzxjYB3i6","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbIzY1NCMf5lteWma","54k55yE757Q/5P2H54MP5PAz5BYa5AEl57Uy5yI2","DgfYz2v0sgfUzgXL","C3vIC2nYAwjL","z2v0rwXLBwvUDej5swq","C2v0u2nHBgvfEhrLBNq","6k6+5Ash5zU+5Qch","zhjHzW","5PwW5O2U6zUgia","A2v5","zgLZDgfUy2u","C2vSzwn0Aw9U","re9nic8G5PwW5O2U6k+35Rgcic8G5Asw6yoO","AxnfzgL0Aw5NrxzLBNrgBg93","Aw52B2TLuNvUDgLTzuHHBMrSzxi","y2fSBgjHy2SGAxmGBM90igeGzNvUy3rPB24","D2LKDgG","y29UDgv4De1LBNu","y2XVC2vZDa","x25HBwvZ","zgf0ytPHChbSAwnHDgLVBI9QC29Uo2nOyxjZzxq9DxrMltGS","z2v0rgf0yq","zgvMyxvSDe5VzgvZ","zwrNzxngB2n1C2fIBgu","C3jJ","rNjHz21LBNq","zxzLCNK","zwrNzuLUzgv4","CMzjza","y29UDgfPBMvY","zxzHBhvHDgvtDgf0DxnfEhbYzxnZAw9U","ios4QUIkGUEcUq","DgfYz2v0","vgLTzw91DevYCM9Y","Dgv4Dc14CW","yxjPyuXHyMvS","6k+36ycj5OUP5lIa5lIQ6iQc54k5","zMXLEcbPDgvTCY1Jzw50zxiGz2fWlti","BgLMDa","BgLUzwfY","twfYA2vYihr5CguGiG","zgLZywjSzwq","CMvHy3qTzMXVD19FBwLUAw1HCc1UB2rL","Cg9PBNrLCLG","y3vYC29YlwnYB3nZAgfPCG","5PAW5BU65lQl5lU25Rwb","DxnLqMf0y2HdB250zxH0ig11C3qGyMuGDxnLzcb3AxrOAw4GysbcyxrJAfbYB3zPzgvY","z2v0q29TChv0zwrtDhLSzq","zxzLBNq","DY0XmIbOlteYig14lwf1Dg8GBwiTmsbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbIzY1NCMf5lteWmcbYB3vUzgvK","C3rHCNry","DxbKyxrLq29UBMvJDgLVBG","5lQl5lU25Rwb5yIB5BU65OIq5yQF","C2vSzwn0zwq","BgfIzwXtAg93qMC","y3vYCMvUDenHBNzHC0LK","DMfSAwrHDgvgAwvSzhm","zM9YrwfJAa","BNCTCMvZAxPL","yNvPBhrPBG","Dgv4Dc1ZBsb0zxH0lwDYyxKTntaW","6ycj5OUP6k+L5A2x5Q615A+55BQu55Qe5yw35l2t5yc85lUL5A6A5l2n5PwW5O2U6Ag5","zgf0yxnLDa","Aw5ZDgfUy2u","5OMa5PYj57Ur5A6A5Q2K5PwW5O2U6zUg55Qe54Q25Ocb5Bcg6iEQ5yQO6kEJ6zMK57Ur5A6A44cc","twvZC2fNzsdMJ5dNPlRLHOxLRRNKUlRNQBO","su1br0u","u1fsvdi","y29SB3i","ChjVzhvJDgLVBG","y2XVBMvoB2rL","lY8G5y+V55sO5y+c5PwWoGOVlYbUB2rLic0G6kEM5y+r5lQl5lU255Qe6iQc54k5cI8VignVBNrLEhqGlsdKUOVKU7BKUiRKUiVMLOCklY8GyxjNCYaTios8OowfPEEAHowpGUAvSaOkCMv0DxjUigfYz3m7","CMvSyxrPDMuG","Bwf0y2HLCW","C2L6zq","B25oB2rLrg91yMXLq2XPy2S","zwrPDgLUz0v2zw50uM9VDeLK","BM9KzuvSzw1LBNq","Aw5ZDgfUDa","6ycp5PIo5BQM","y2HLy2TIB3G","zw51BwvYywjSzq","6l6t5ywL54Q25Ocb5zcn56EW","DMLLD3bVCNqT","5yIG6zMK5ywO6yoO","x196B29T","z3jVDxa","y29UBMvJDgLVBKrYywDuAhjLC2HVBgq","B2jQzwn0ihvUC3vIC2nYAwjLza","w0rfufjfq0fururDifrOzsbGzgvZDhjVEwaGBwv0Ag9KihDPBgWGyMuGDw5ZDxbWB3j0zwqGAw4GysbMDxr1CMuGDMvYC2LVBI4Gsw5ZDgvHzcb1C2uGDw5ZDwjZy3jPyMuGzNvUy3rPB24GCMv0DxjUzwqGyNKGC3vIC2nYAwjLlIbfDMvYExrOAw5NihDPBgWGyMuGz2fYyMfNzs1JB2XSzwn0zwqGAwyGC3rVCMuGAxmGz2fYyMfNzs1JB2XSzwn0zwqU","55wz56M65l2/55sOigfUDgqG6BUy6k6K77YB5AgRidaG6kgO56s65lIn6iEQ5yQO5ywZ6zET","DgfYz2v0q2fUDMfZswq","zxHLy3v0B3juExbL","zxHW","CMvNAxn0zxjfDMvUDejSB2nR","y29UBMvJDgLVBG","ufjpuevsvfLFq0HbtKDf","CgfYDgLHBe9IC2vYDMvY","iZi2mJyYnG","zMLUza","CMDIka","zM9UDc1Zzw1PyM9Szcb0zxH0lwDYyxKTnZaW","twvZC2fNzsdMJ5dNPlO","ChjLDMvUDerLzMf1Bhq","lcdOV57MJQxMLBa6ia","qLvuve9o","zxzLBNrcBg9JA0LK","BwiTncbWltmGyMCTyMX1zs01mcbIB3jKzxiGyM9YzgvYlwjSDwuTmJaWihjVDw5KzwqTBgC","C2v0vgLTzq","yxv0BW","CMvHy3qTzMXVD19FyxjYB3DOzwfK","CMvHy3qTzMXVD19FC2vSzwn0Aw9UihjLywn0lwzSB3DFx2nVBNrHAw5LCG","zxHLy3v0zuzSB3DoB2rLCW","Dgv4Dc1NCMf5ltqWmcb0zxH0lxHZ","uMvHy3qGrMXVDW","57Yw6l6r5lQl5lU25z2x","zxzLBNrgBg93rgf0yq","Dg91y2HTB3zL","CMvZDwX0","C2nOzw1LxW","6iQc54k55PwWoIa","CMvXDwvZDefZEw5Jswq","DxnLu3LUy0v4DgvYBMfSu3rVCMu","CMvHy3qTzMXVD19FBM9KzxnZzwXLy3rPB24","CMzFx3DYyxbWzxi","x2nOzwnRrMLUywXPEMvKu3rHDhvZzxm","AxrLBq","rNjLzq","mdaY","5RIq5y+y6iMY","yMX1CG","vgfN","Bw91C2vKB3DUlNPVB20","5ywO6ycj5OMa5PYj","twLUDxndAxjJBgvpDxrSAw5Lza","BM9KzvG","BwiTmG","5yIG6zMK5B2t6Ag1","yxjPyuXPDMvnzxnZywDL","BgLUAW","ihDOzxjLigeGC3rYzwfTihDHCYbLEhbLy3rLzc4Gww91ignHBIbWCM92AwrLigfUie9IC2vYDMfIBguSifbYB21PC2uSifjLywrHyMXLu3rYzwfTlcbbCNjHEsWGqxn5BMnjDgvYywjSzsWGB3iGsxrLCMfIBguU","wM9VBsbpDxq","ChjLCgfYzuv2zw50qxjNCW","ChGG","CMvHy3qTzMXVD19FyMfJA2DYB3vUzc1Wyxr0zxjU","EKLUzgv4tw9Kzq","yMX1zq","zgf0ys1Oyw5KBgvWB3m","DxnLzfjPz2H0tw91C2vcDxr0B24","B2jZzxj2zq","y2fUDMfZzxm","ChjPBwfYEq","6zw/54k5lEEFREEcUEs6PoABVW","yw5PBwf0zwq","5Asn5yI26iQc54k55PE25PIV5zcM6l+E5BIM5Asn5yI25PYS5lQl5lU25Rwb","ChvZAa","CMvSzwfZzuXVy2S","B3jPz2LU","Aw1N","5BYa5AEl5A2J5BQM","BMv3","Bw91C2u","5PEl6l2S6kEs5BQM77Yi5BQM77Yj","q2fUDMfZ","B25qB2LUDgvYrg93BG","zgf0yvjLCxvLC3q","5B+R6ycF5A+56B2q","qwXPz25mzwz0t3v0BgLUzwq","zxjYB3iWmdq","y3vYCMvUDe9IC2vYDMvYCW","rMfPBgvKihrVihbHCNnLigrYB3bWzwqGBwf0zxjPywW6","5Bcg57Q/5P2H5y+y5lI65Rc05BMZ57Q/77Ym5l+D5OYb6zw/5BQM","zMXLEc1ZDgfYDa","DgHLBG","x25Vzgu","y3vYC29Ylw1VDMu","ufjfu0vovevex0LnquDfx1njtvbmrq","yxv0B1bHBK9UtM9KzurYywC","x19UB3nLBgvJDa","x19KyxrHx18","q29SDw1UsgvPz2H0t3v0BgLUzwq","BMv4Da","C2v0twf4wM9VBq","CgfNzvK","iZeZyZjJmG","y29UDhjVBhmUAw50zxjHy3rPDMuUyxjPyuXHyMvS","rgvSzxrLt3v0BgLUzwq","DMfSDwvpzG","ndKWB3DtDMrI","C3r5BguT","A2vLCefZCgvJDfjHDgLV","x2vYCM9Y","CgfZDa","Cg93","B25czwzVCMvezwXLDgu","CgfUu2nYB2XSvgLTzw91Da","5y+V6lcd5Pw05AsN5Bcp","BwfYA2vYvw5PDhm","y3vYCMvUDa","zg9JDw1LBNrfBgvTzw50","BwiTma","imk3ia","ANn4uNvUDgLTzq","y29UC29SAwrHDgu","tw9KDwXL","Aw50zxjYDxb0lNPVB20Gzw5KlNPVB20","r3jHCgHwAwv3","C2v0sw50zxj2ywW","C25HCeDYAwq","tM8GC3rHCNqGBM9KzsbMB3vUzcbPBIbLDMvUDcbMBg93","5OMN6kgm5PA55BYp","DxnLCLnWywnLt25vC2u","C3vIC2nYAxb0Aw9UCW","C2vSzwn0zwrtDgf0Dxnjza","zMXVD0rHDge","qxjYB3DvCe91DgXPBMvK","5zcr5yMniduG6Ag1","C2v0ug9PBNrLCKnHChr1CMu","ig5VDcbMB3vUzc4GugXLyxnLig1HA2uGC3vYzsb0Agf0ihbHCMvUDcbUB2rLCYbHCMuGAw4GzNjVBNqGB2yGDgHLAxiGy2HPBgqGBM9KzxmGAw4GDgHLig5VzgvZigfYCMf5lG","CgHHBNrVBq","iIbPCYbPBNzHBgLKlIbqBgvHC2uGChjVDMLKzsbHig51BwjLCIbVCIbHihn0CMLUzYb3AxrOigeGDMfSAwqGDw5PDcaOChGGB3iGjsKU","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igeGBM9Kzs4GuhjLC3mGzgvSzxrLihrVihjLBw92zsbPDcbHBMqGzxnJyxbLihrVignHBMnLBc4","5l6l5AAc77YACMvMCMvZAcdMIjyGCgfYzw50oNjLBg9Hza","5Qgg6ycj5QIH5BYp","C3rHCNrz","C2v0","Dw5KzwzPBMvK","C2v0qxr0CMLIDxrLtLm","5OUw5OU95PEl6l2S","5zcm57QN5ywZ57o757Ue","77Yi5BEY5yIG6zMK77YA","rxzLBNqGzMXVDYbLEgvJDxrPB24GzMfPBgvKoG","sxrLCMfIBguGy2fUBM90igjLig51BgW","CgfUwM9VBq","B25fzgDLC0rLBgv0zq","CgfKzgLUzW","B25SB2fK","B25ZzwXLy3rZDgfYDa","Bwf4","B25dBgLJA0nVBM5Ly3rfBMq","zgvMyxvSDfzPzxC","qgTLEwzYyw1LCYa","jhTSywjLBh3MNidLPkFLGlZKUlOKE21HEh0","Ac0XmIbIB3jKzxiTyIbIB3jKzxiTz3jHEs0YmdaGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUihb4ltqGyMCTz3jHEs01ma","yMvMB3jLC3rHCNq","CMvHy3qTzMXVD19FCMvUzgvYzxi","5y2G5l2n56YM77YAE3TWCMv2Fx3JGif7E+wfPEwpGUwqJx19iow8LEEuQos4IUA4UoI/NUE6V+wfPEwpGU+8M3T7jgrHDgeUEhH4Fx0G5y+w5lQl5lU25lIk5lIl5PAhigrHDge","Dgv4Dc1ZBsb0zxH0lwDYyxKTnJaW","5yAf6igu6isA5PYS","EKLUzgv4","u2v0DgLUz091DgXPBMvK","BM9Kzs5Hmtf5rgvZy3jPChrPB24UzgvMyxvSDa","DxnLrwrPDg9Yu3rVCMu","ywX0s2v5","B25tzwXLy3rPB25eCMfN","5BEY57Ur5A6A5PwW5O2U5RQq77Ym5A6E6zMf5yc85Bcg5P2L6iEQ5PwW5O2U5A2x5Q61","BM9YBwfSu3r5Bgu","Cg9ZAxrPB24","z2v0uhjVCgvYDhLwywX1zq","yMCTD2HPDgu","CMvNAxn0zxjjBNrLCM5HBe1VzhvSzvn0yxj0","zhjHz0HHBMrSzq","tg9VC2u","zMXLEa","C2TLD1GO","5OUw5OU96lcd5Pw057Ui54k5","C2v0vMLLD3bVCNrdB25ZDhjHAw5Lza","C2vUDa","x2v4zwn1Dgu","mta4ma","ChjVDg90ExbL","z2v0","yMLUze5VzgvfDMvUDa","CMzFx2jHy2TNCM91BMq","n0rXugjtCq","CMvUzgvY","tsaYmcaWieWGmcaWidaGmJa","B25oB2rLtw91C2vnB3zL","CMv2zxjZzq","y2LYy2XL","jhTSywjLBh3LV4xPOBVMMk/LHBBKUk3KUidKUkPBjhTLBNvTFv0","BMv4DfnPyMXPBMC","twLUAu1HCa","CMvHy3qTzMXVD19FDMLLD3bVCNqTCg9YDgfS","BwvYz2vsDw50Aw1LsgfUzgXLCNm","kgrHDgePid0+igjVB2XLyw4","CMvHy3qTzMXVD19FBM9Kzq","x25LEhq","C3LTyM9S","Dw5ZDwjZy3jPyMu","AxnjzgvUDgL0Eq","D2HLzwW","q29UC3vTzxi","6l6t5ywL6iQc54k55zcn56EW","C3rYB2TL","tM9KzsbVBKnSAwnRoG","mcaWidmYidmW","C2vSzwn0q2HPBgrYzw4","rgf0yvbVB2XnB2rHBa","sgfUzgXLoIboBYbUB2rLigLKigzVDw5KlIbnywTLihn1CMuGDg8GB25SEsb1C2uGysbiyw5KBguGAw5ZAwrLigeGy3vZDg9Tie5VzguU","CMvHy3qTzMXVD19Fy29UBMvJDgLVBG","C2v0rwrNzxm","BM9Kzuv4DgvUDa","BMv3wa","CMvHy3qTzMXVDW","ksb0CMfUC2XHDguO","zwrNzxnszwnVBM5Ly3rHyMXL","AgvPz2H0","lxDLyMTPDc10yxaTAgLNAgXPz2H0lwnVBg9Y","r3jVDxbpDxrSAw5Lza","5BYa5AEl5PYi5lU9","yNvPBhrPBKLK","57Ut5P2F5PEL5PYF","y2XPzw50tgvMDa","Cg9SEwXPBMu","5lQl5lU25z2x5BEY5PU05PAW","y2fUDMfZ","6l6t5ywL5zU+54MhifvstcdMIjBKUiRKVkdLM77NIyC","yM91BMreyxrHC2v0qMLUzenVzgu","zgL2","CMvZAxPL","DgHHDa","CM90yxrL","5ywL5y+c5zcn56EW77Yi5OYj6l+E57Q/6Ag65BQp77Yj","5PYQ6ywn572U55UU5Qch55s75BIdieLe","B3jPz2LUywXfDMvUDa","5PYQ5RoO5yAmigv4DgvYBMfSiowKHoEqHUwzQdOG","i2zMzG","yxbWBhK","5lQm57U056cb6l+h5PYF","55s75BId5A+85ywL5OIq5yQF77Yb","5y2v5y+c5PwWigrHDghVViJLR7NOSAhVViNVVjRNLlhMLBdMJA7MSAaGC2fTCgXL77Yi6iUL5BEY57Ur5A6A77Yj5lIo55s75BId6l+q6kgm5PE25PwW5O2U5zci5BM277YB5Rwl54k55PwW57Ue5lYA5OYjihbHCMfTC0nVzguG5yAz5ywLigrHDghJGilPOBSGCMv0DxjUihrYDwuVzMfSC2xJGii","5PU05O2I54MP5PAz","y29UBMvJDgLVBK1Vzgu","DxnLv2f0y2G","Bw9KztO","jhTSywjLBh3MNidLSi/LGlZKUlOKE21PBN0","Aw5WDxrZ","CMDI","57+75yIW5lIl5lIa6Ag177Yi5z+65lQo5B2t5yMn55s75BId77Yj","xhmQkfSRlv0/xgqRkvXZkG","z2v0qxr0CMLIDxrLtLm","zNvSBa","5y2v5l2n77Yi5AAcWRbd44cbjEoaGu1qyEETIE+8Iq","uMvHy3qGrMXVDZOGDhjPz2DLCIbUB2rLignOyw5Nzxm","zMfJDg9Y","Aw52ywXPzcbJywXSyMfJAZOG","CgfUzurYywDNAw5N","6ycj5OUP6kEM5y+r5PA55BYp77Yire9nic8G5PwW5O2U6k+35Rgcic8G5Asw6yoO77Yj","z2fTBwe","y29UC3rYDwn0B3i","AxntzwXLy3rHyMXL","vgfIBgu","5zcr5zcoidmG6Ag1","BMv3wq","C29YDa","5A2x5l2t57kx57Ug","y3LHBG","CMvHy3qTzMXVD19Fy29UBMvJDgLVBI1WyxrO","C3r5Bgu","uMLNAhrpDxrSAw5Lza","ios4QUEkTUAaGq","5A2q6iQc54k5ia","rwrNzsb0ExbLici","AxngAw5PDgu","t2jQzwn0igLZig5VDcbPDgvYywjSzs4","5lIk5lYGifnwrW","C2HPzNrlzxK","Ahr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMC","t25SEsbJAgLSzcbUB2rLCYbJyw4GDxnLigeGCgfYzw50igv4DgvUDc4","Cgf0Ae9WDgLVBNm","Bw91C2vvCa","iZaWmtKZqW","lwzSB3DFx2HHBMrSzvTKyxrHlwLKpsi","DY1MDwXSigGTzNvSBcbYzwXHDgL2zq","BM9Kzu9YAwDPBG","vgv4DefYzwe","y2HPBgrYzw4","zxHWyw5KugfYzw50","vgHLig9SzcbLzgDLihDPDgGGAwq9","mNb4igrHC2HLzcb0CMfUC3bHCMvUDa","DMLZAwjSzq","55s754k557Q/","CMvM","zxzLBNrsB290CW","6lw35Q2I5l2n572U77Yi55U45A+56iQc54k577Yj","55s75BIdia","y2vUDgvY","BM9Kzuv2zw50qMLUzgLUz3m","zgvZDhjVEq","5z6c55U057+76l2S","zNv0DxjL","C2nHBguO","6ycA6Akr5yQG6ycF5BQM5PYj5Pwi5yc8","yxjNCY4","Bw91C2vmzwf2zq","u3DPDgnO","Aw50zxjUywXZ","B25fzgL0","zxHWCMvZC2LVBG","5Asn5yI25lIn6lEF6zQp","zxHPDa","Bw91C2vpDMvY","C2nOzwr1Bgu","Ac1MDwXSigzSzxGGAxrLBxmTy2vUDgvYigP1C3rPzNKTy2vUDgvYigjNlxDOAxrLigjVCMrLCI1SigjVCMrLCI1NCMf5ltiWma","zgjSy2XPy2SUEM9VBq","rxzLBNqGyMXVy2SGBM90igzVDw5KoIa","BNvTyMvY","6ycj5OUP57Ur5A6A5yc8","wM9VBu91De91DgXPBMvK","zxHLy3v0zuj1AwX0Aw4","BxqTmsb0zxH0lwfTyMvYltGWma","yMLUza","yMLUze5Vzgvjza","5PYa5BcrjhTTAw595lIQjhTSywjLBh0","igLZig5VDcbHignVBNn0CNvJDg9Yig9Yig51BgW","uhjVBwLZzq","Bw91C2vTB3zLlNPVB20","zxHWB3j0CW","DgvZDa","zgLZCg9Zzuv2zw50uM9VDfbPCgvSAw5L","q2XHC3mGzxH0zw5KCYb2ywX1zsa","y29UC3rYywLU","tM9KzvjLBMrLCMvY","54k55yE76zMn5BQp","zxH0zxjUywXfDMvUDeTLEq","ttmUnJKYidqUnJnJmc0UntmUnc0Uotm4lJKZos0Uotm4AduUmJe1vJbinc43mdHdmI4XmYaWidaGmI4WntqGmca0lJyZDJuUmJe2AdmUnJKYvJqUnJmXEK0YnY4ZntqGmgGTns4YDJmUnJKYAduUmtDJlJuZidaGlJK4nc40lJK4nc45mZL2ns4YmtvimZjwnc42mZfbnc42mJqGnc42mJqGmcaWmdi3lJm1ncaWEM0Uotu0idi0lJGZyZaGlJuZmI0Unc45nc0Uotm5lJK0Ac01lJiXnxyZlJC2ogG1lJiXnwmYlJu3nYaWidqUnJmXltiUmtmGnc42mZeTnc43mdD2ltuUmtm5Ac0ZlJy5mNy1lJeZoxPTltiZlJy3nY45ngmTlJuZmsaWls45mZKTlJqTlJKZos0Uotr2ltuUmtm4sdb2ns4XmZLJmcaYlJu3nYaYlJeZidqUnZa3idqUnZa4idqUnZa3AduUmtm4vJi1lJC3sdqUnJmXEG","C2XPy2u","zMXLEcbPDgvTCY1Jzw50zxiGz2fWlte","566H55cg55s75BIdlI4U","6k+35AgR5yAz5Asw6yoO5PA55Rov5Qch6k+g","BwvYz2vezwzHDwX0uNvUDgLTzuHHBMrSzxjZ","mcaWidi1idmY","54Q25Ocb5PwWoIa","ugfYDgLHBa","sg9YAxPVBNrHBa","y3jLyxrLrwXLBwvUDa","6BYG5Qch6yEk5Ps+","w1jLywn0iezSB3DDoIbtzwvTCYbSAwTLihLVDsbOyxzLig5VDcb1C2vKihP1C3rHBMqGChjVDMLKzxiGyxmGyw4Gyw5Jzxn0B3iUieHLBha6igH0DhbZoI8VCMvHy3rMBg93lMrLDI9LCNjVCImWmde","BM9Kzu5HBwu","yxv0B1bHBK9Uq29UBMvJDa","Bg9N","C3rHCNqUEM9VBq","AxneCMf3Aw5N","ioIHJowHQ+wgMEwpGUAvSowqJEwnS+wpR+IhQUwUMUs5IEMuRUwqJE+8IoMHU+s4JUwfPEI+UEMHUUw6J+s4GoIhTo+8IEoaGG","yxv0B1bHBK9UtM9KzuzVy3vZ","6iom5PMV5zU+54Mh5lIk5lYG5OIq5yQF","zMLUzefJDgL2zvn0yxr1CW","z3jPzcbNCMLKlwnVBhmTncbNyxaTmG","C3rYB2TLv2LKDgG","Dgv4Dc14CYb0zxH0lwDYyxKTndaW","6k+36ycj5OUP5zgO","C3rYB25N","6ycj5OUP5PwW5O2U5RgG5lIT55Qe5PwW5O2U6zUg","Ag9YAxPVBNrHBa","6k+36ycj5OUP5OMN6kgm5PA55BYp","Dg9iyw5KBgu","x2LUBMvYu3vIC2nYAwjL","zw1PDa","CMzFx2nVBNrYB2XZ","DMLLD3bVCNq","y29UBMvJDgfIBgvLBMq","Axnoyu4","zxHLy3v0zvnPBMDSzuzSB3DoB2rL","qxjYB3DdBg9Zzwq","zMLSBenVBg9Y","5BYa5AEl5BM05lU9","D2HLzwXezwX0yq","x+wKJEwiTG","CgfYzw50swq","vgHLihjLC3vSDcbVzIbNzxrtBMfWC2HVDcbZAg91BgqGyMuGy2fJAgvKihrVigf2B2LKigfUigLUzMLUAxrLigXVB3a","yxr0CI4","BM9KzurYywDuAhjLC2HVBgq","yxbWzw5K","6iEQ5A6A5lMj","su5qvvq","zM9JDxm","y2XVC2vKlq","6ycj5OUP57Ur5A6A5A2x5Q61","zgf0yu1HChbPBMC","5PwW5O2U5QIH5OUF","y292zxi","56YSideG6kgm5A+55BQu56YSideG5P2H5OYh5zcr5PYS5z2x55Qe6l+E57Q/77Ym56YSidiG6kgm5A+55BQu56YSidiG5P2H4OcM4OcM77Yi6Ag65BQp5lIo55s75BId6l+E57Q/5RE75yQG6Ag65BQp5lIa6iE077Ym5ywi6l+E5zYO5yMn77Yj44cc5lIn5RE75yQG6kgm5PE277YA5y2v5ywL6l6555sO","mxb4ihnVBgLKicnKowq5zdK","zgvZDgLUyxrPB24","CMvHy3q","CMvHy3qTzMXVD19Fy29UDgfPBMvY","ttmYide4lJeZm0GXoc4XmZnwmZjOltqUmJy2vJe4lJeZm0GWDI00lJi2nMGXmY44nJDwmgG0lJi2nNyXmY44nJDimZj6","5P2Hl+MHTq","Dg91y2G","vxbtCxvHCMvpDxrSAw5Lza","CM91BMq","zgvMAw5LuhjVCgvYDgLLCW","DgHPy2TUzxnZ","6k+L5PwW5O2U6zUg55QeihnHBxbSzsdKUlRMLBdNU4tVViZOR7FPGiNMI6NNLkJKUO7LJlNPHy3MLBdMJA7POBNNMOtLRzFMRRu","C3DPDgnOq2fUDMfZ","5lIl6l295PAh5lU2","Aw50zxjYDxb0","CMvZAxPLrgLYzwn0Aw9U","sxqGC2vLBxmGDgHHDcb5B3uGAgf2zw4NDcbSB2fKzwqGDgHLihn0EwXLCY4GugXLyxnLigLTCg9YDcaNqhH5zMXVDY8","DY0XmIbOlteYig14lwf1Dg8GBwiTmsbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCG","CMvHy3qTzMXVD19FBwLUAw1HCa","C3r5BguU","kow9K+wjJsK","zg93BMXVywq","CMv0DxjUigzHBhnLoW","rxnJyxbL","zMXLEc0X","zg91yMXLq2XPy2S","qxjYB3DsAwDODa","6k+36ycj5OUP5PYi5lU9","C2nHBgvcEq","x2jSyw5R","576K57Ue6iQc54k5","rgL2AwrLCG","vxbSB2fK","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIb0zxH0lwDYyxKTmZaWihrLEhqTEhm","6BUy6k6K5yc877Yi5Ash55sO77Yj","6l6t5ywLiePtt04G5Qc85BYp55Qe5Rwl6k+v5PwW5O2U77YB5PYQ57Yw6l6r5yMn55s75BId6lEF6zQp5Asw6yoOigrLzMf1Bhruzxn0rgf0yE+8IowMGUEBKEAoP+AoQoMaGE+8Iq","572U5lQo5BQv5Bgc","5PYQ55+L55s75BId","CMHV","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCG","6k+36ycj5OUP","54Q25Ocb5zcn56EW","yxbWBgLJyxrPB24VANnVBG","z3jPzcbNCMLKlwnVBhmTmIbNyxaTmG","y2fSBa","57Uy5yI25QIH5BYp","zgLZCgXHEu5HBwu","ANn4CW","lNH5zMXVD19FDMLLD3bVCNq","q29UDhjVBa","DMfSDwvZ","x3rPBwu","Dgv4Dc1IBhvLltqWma","6ycj5OUP5PE26zE0","qMv6AwvYrwrNzq","Bw92zwq","BgLZDgvUzxi","y2XHC3m","BwfYA2vYu3rHCNq","Ag92zxi6yMCTz3jHEs0Xmda","DxnLrM9YBq","Dg9izxHtDhjPBMC","C3rHCNroB2rLwa","DhjHBNnSyxrLrxH0zw50","vhLWB2DYyxbOEq","C2vJB25Kyxj5","wM9VBsbjBG","Cg9PBNrLCG","5PEG5zU+54Mh","C2nHBgvuBW","54k55yE755s75BId56gU5A6A6lw354k55zkm57Ui54k5","rwrNzsbMCM9Tia","yMfJA2DYB3vUzenVBg9Y","BgLZDa","BwfYA2vYrw5K","x19LC01VzhvSzq","zgvMyxvSDevKz2vpChrPB25Z","yM90Dg9T","B25nB3zL","y2HHBMDLzfrVDwnOzxm","6k+35AgR5yAz5zcn56EW","DhjPBq","y29Z","57Ur5A6A54MP5PAz","zgf0Dw0","6k+35Rgc5Qch6k+g","6l6t5ywL5zU+54MhifvstcdMIjyGrgf0ysbvuKK","DxnLCK5Vzgu","zwrNzuXVB2T1Ca","B2jQzwn0","Dg9tDhjPBMDuywC","5lUo57Ur5A6A55Qe5PwW5O2U5lIT6ycj5OUP5A2x5Q61","C2vSzwn0zwroB2rLswrZ","ChGSia","B25dB25Uzwn0u3rHCNq","C3vJy2vZCW","nsW1","y3jLyxrLrgvMyxvSDfn0yxr1CW","yxjPyvjVBgu","DhjHBNnWyxjLBNq","Dg9tDhjPBMC","DMLLD3bVCNrjBML0AwfSAxPLza","B250B3vJAhn0yxj0","twv0yq","zNjVBNq","DgLTzq","BwLUwM9VBq","CgLWzq","CMvWBgfJzq","CMvHy3qTzMXVD19FBM9KzxnZzwXLy3rPB24TCMvJDa","jhTSywjLBh3ML6xMNj/MOlZLVi/ML6dMLyG","C3rYAwn0","yMfZAwm","rg93BMXVywrpDxrSAw5Lza","5zYO562B6ycj6Ag55lIT5PcC57sI","C3rHDhvZtgLZDa","CMvQzwn0","C3vIAMvJDa","zNvUy3rPB24","zxjYB3iWmtu","C21HBgW","Bwf4lwGTwZqWmhb4xsbVDMvYzMXVDY15lwf1Dg8","AxnwywXPza","C2v0u3rHDgu","CMzFx21PBMLTyxa","y3vYC29YlwDYywi","Cg9PBNrLCI1LDMvUDhmTyxv0BW","6k+35AgR5yAz5Asw6yoO5lQl5lU25Qch6k+g","5lQl5lU25Rwb57Ur5A6A","5lIk5lIa5BM05lUJ","y29UDhjVBerPCMvJDgLVBG","ywjZ","DgfWCW","vxbSB2fKignHBMnLBgXLzcbVCIbMywLSzwq6","u21VB3rOu3rLCa","5lIl5lIa5BM05lUJ","q29SBgfWC2u","BM9KzxngB2n1C2fIBgu","CMvHy3qTzMXVD19Fy29UDhjVBhmTEM9VBwLU","zxHLy3v0zq","y29UDhjVBhmUzML0vMLLDY5HCMLHtgfIzwW","zw5Kwa","x2zPBMfSAxPLCNm","teLorq","AxnAB29TAw5Nt3jqyw5UAw5N","ywrKrxzLBNrmAxn0zw5LCG","BMf0AxzLrxzLBNq","C2vSzwn0zwroB2rLswq","zM9YBwf0sgv4oa","BwLU","jhTSywjLBh3LV4xPOBVNRyNKUO4KE2XLBN0","zwzMzwn0qwXSB3DLza","BwvYz2u","ywjZB2X1DguGlxrVCc02igXLzNqTmcbIzY1IBhvLltuWmcb0zxH0lxDOAxrLihrLEhqTEhmGChGTmIbWEs0WlJuGCM91BMrLzcb3AgL0zxnWywnLlw5VD3jHCa","CMvNAxn0zxjjBNrLCM5HBe1VzhvSzvn0B3a","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWmcbWEs04","5Bcg57Q/5P2H5y+y5lI65z6c55U057Q/77Ym5l+D5OYb6zw/5BQM","Dg91y2HHyMXL","C2nHBgvy","ChjLDG","CMvJEwnSzufZEw5Jswq","Aw5ZDa","yxn5BMnjDgvYyxrVCG","DMfSDwvgB250v2vPz2H0","77YA5lI65Q+p5lIQ5A2q6iQc54k56ywn572U5AsA5lIQ54Q25Ocb5zkm57Ur5A6A","6k+36l6t5ywL5PcC57sI5yAf5A65","Bw91C2vTB3zLlNPVB20GBw91C2v1Cc56B29T","yMXPBMS","zgv0ywLS","yMCTz3jHEs0XmdaGChGTmsbYB3vUzgvK","CMvHy3qTzMXVD19Fy29UDhjVBhm","y2XHC3noyw1L","zw1WDhK","C2HVDwXKvw5ZDwjZy3jPyMu","ig5VDcbMB3vUza","CMvJB25Uzwn0ywjSzq","r2vUzxjHDg9YigLZigfSCMvHzhKGzxHLy3v0Aw5NlG","mdeW","C2vSzwn0ywjSzq","Aw5SAw5Lu2nYAxb0","57ky6ls055s75BIdiePtt04G5yAf5A65lI4U","5z+656ga5B2I54Q2","zgf0yq","Aw50zxjWB2XHDgvcDwLSDgLUu3rYAw5N","5Pon5l2C5OIq5yQF","zw5K","Bw91C2vTB3zLlMrYywCGBw91C2v1Cc5KCMfN","5PEP5PYF5ywZ5RoO","DgLTzxi","5BEY5yIG6zMK77Ym55U45ywZ54Q25Ocb5BEY6kEJ6zMK5PwW5O2U6zUg57Ur5A6A","C29SAwq","yw1K","zxjYB3iWmtm","rwrNzvjLBMrLCMvY","Bwf0y2HnzwrPyq","z2v0uhjVDg90ExbLt2y","tgf5B3v0","Bwv0yq","qxjYB3DvCa","C3rHCNrsB3rHDgu","EGOGicaGicaGie0","nNb4idHWEa","CMvHy3qTzMXVD19FAgfUzgXL","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iG","mta1ntmWAK5fq3fT","ywn0AxzLu2LIBgLUz0DYB3vWswq","57YP5Ps+5Q+u5l6l","vgLTzw91DcbOyxmGB2nJDxjYzwq","mda0","Aw50zxjWB2XHDgu","qMfJA3nWywnL","zMXLEc0Xig92zxjMBg93lxKTyxv0BYbWltq","x19UzxDFxW","rg90CW","jhTSywjLBh3KUi3MMk/KUidKUkRMNiNMLyJNMOqKE3r5Cgv9","y3jLyxrLrgvMyxvSDe5Vzgu","iIbYEd0ImJaIlZ48l3n2zZ4","BwvZC2fNzq","x3bHCMvUDgfNzq","B3DUzxjtvKDfBgvTzw50","ywzMzwn0C1G","zxHLy3v0Aw5NigeGy2fUy2vSBgvKigfJDgLVBG","BMfTzq","zNjVBq","B25oB2rLtw91C2vmzwf2zq","C2TLD1G","u3LTyM9SlMfZEw5JsxrLCMf0B3iGAxmGBM90igrLzMLUzwqU","ChjVCgvYDhK","CMvHy3qTzMXVD19FBM9Kzxm","572U5lQo6Ag25Bgc","5PAh5PYS5yAf5A65","C3bHy2u","yw55","BgfIzwXdB2XVCG","Aw5Uzxjive1m","y29WEu9UrhvWBgLJyxrL","BM9KzuLK","Dgv4Dc1NCMf5ltqWmcbOB3zLCJP0zxH0lxjLzc01mdaGy3vYC29YlxbVAw50zxi","yM9YzgvYlwjVEa","Ahr0CdOVl3D3DY53mY5VCMCVmJaWmc94BwXUCY8","C25HCfrVr3jPza","mteWnJfcuwzuCuq","ywn0AxzL","zMXVB3i","Aw5KzxG","EM9VBq","DY1WEcbOltyGyMCTz3jHEs0ZmdaGBxGTmG","zgvNkq","tM9Kzsb3AxrOigLKici","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWma","yxnZAwDU","CMvHy3qTzMXVD19FzwrNzs10zxH0D3jHChbLCG","C3rYAw5NAwz5","C2v0qxr0CMLIDxrLCW","55s75BId6ywn572U","DgfWrgLZDgfUy2u","CMvHy3qTzMXVD19Fy29UDhjVBhmTEM9VBw91Da","x190CMfUC2L0Aw9U","6ycj5OUP55s75BId5yQG5ywL","DxnLCLnLBgvJDgLVBKfJDgL2zq","AxntzwXLy3rLza","C2LTCgXLyMv6AwvY","zhvYyxrPB24","DhjHBNnSyxrLqNK","6l6t5ywL5Qch562+5PAh5PYS","BgLUzs1KCMf3","zMLUzeLUzgv4","BwvHC3vYzwq","zgf0ys1UB2rLAwq","mda5","Dgv4Dc14CYa","y29YBMvY","x+wjR+ACRa","C2nHBgvfEhrLBNq","6lEZ6l2S55s75BId","5PAh5A2x6AkC6iMY","CMvXDwvZDefUAw1HDgLVBKzYyw1L","Dgv4Dc14CYb0zxH0lwDYyxKTntaWig1Ilti","C3bSAxq","5lIn5zcm5PA55BYp5A+55BQu5lIl5PA55lIn5zcm6ywn572U6Ag5","C3rHCNrizwLNAhq","x3rYEvn1yNnJCMLIzq","B2jZzxj2zwq","qwXPz25sAwDODe91DgXPBMvK","ywXS","zNjLzq","zMXLEcbPDgvTCY1Jzw50zxiGz2fWltiGBwiTmW","y29UBMvJDe9Uq2XPy2S","ywn0sw5ZAwrLsw5WDxrxAxrOtw9KAwzPzxi","5lIk5lIa5lIw57QQ","y3jLyxrLrwXLBwvUDe5t","i2q5zdLKoq","C2v0tM9Kzuv4DgvUDa","5lIk5lYG6zsz6k+V","ywjZB2X1DguGDg9WltaGBgvMDc0WihnLBgvJDc1UB25L","C2nHBgvz","B3jKzxi","Aw5Zzxj0qMvMB3jL","C3rVCfbYB3bHz2f0Aw9U","5OUw5OU954MP5PAz5yIW55s75BId5yIB5BU66iQc54k5","x+EkTUAaGq","Dgv4DenVBNrLBNq","Dg9qCM9TAxnL","Bwv0yuTLEq","Bw91C2vTB3zL","BwiTmW","BM93","Dw5IAw5KqwXSrM9YtM9Kzq","zgv2zwXVCg1LBNq","rML0ifzPzxC","igHHBMrSzsbPzdOGiG","Dgv4Dc1ZBsbMB250lw1LzgL1Bq","6zw/5yIslEEcUEs6PoABVW","q3jVC3m","q2fUj3qGy3jLyxrLigvKz2uUiefUigvKz2uGBMvLzhmGysbZB3vYy2uGyw5KigeGDgfYz2v0lG","DY04igGTmc41igjNlwDYyxKTndaW","Dgv4Dc1ZBq","BwWTmIb0zxH0lxnTigzVBNqTBwvKAxvTihrLEhqTyMX1zs02mda","yMCTz3jHEs0Xmda","y29UDgfPBG","BwvTBW","iZCZzdeZza","y29UDhjVBeLUzM8","y29Kzq","DhjPz2DLCK5VzgvdAgfUz2vZ","BwfW","6kEM5y+roIa","CMvHy3qTzMXVD19FDMLLD3bVCNqGEhLMBg93x192Awv3Cg9YDcbYzwfJDc1MBg93x19JB250ywLUzxi","u3bHy2u","Aw5JBhvKzxm","AwXSzwDHBcb0ExbLoIa","zgvSDgfz","BgLUzq","CMvHy3qTzMXVD19FzwrNzwXHyMvSlxjLBMrLCMvY","BM9KCMfN","CMv0DxjUigfYz3m7","ltiWChG","y29TCgXLDgu","5y+V5OUw5OU9","EM9VBs53AgvLBa","C2LIBgLUz0DYB3vWCW","sxqGC2vLBxmGDgHHDcb5B3uGyxjLihrYEwLUzYb0BYbKCMfNigeGBM9Kzsb0Agf0igLZig5VDcbPBML0AwfSAxPLzc4GugXLyxnLihvZzsbVBK5VzgvZq2HHBMDLigfZigv4CgXHAw5LzcbPBIb0AguGzg9JCY4","ww91ihbYB3zPzgvKia","C2vSzwn0","B25dB25Uzwn0rw5K","Bw9Kzq","5PwW5O2U6k+35Rgc","BwLUwa","re9ntwf0CML4uMvHze9UBhK","zML0vMLLDW","sxrLBq","qMv6AwvY","y3jLyxrL","6ycj5OUP5QIH5BYp","ue9tsvrjvKvFsu5gsu5jvfK","DMfSDwu","yMfZzvzHBa","qxjYB3Dmzwz0","wM9VBuLUt3v0BgLUzwq","B3bHy2L0Eq","DxnLtgf5B3v0rwzMzwn0","Aw5PDe1HDgvYAwfSCW","Aw1Hz2uV","tgvMDa","CMvHzefZrgf0yvvsta","5PQc5PEG54MP5PAz","ioMHUEw/HEMHU+AyR+wVUEIXOq","u2LTCgXLqMv6AwvY","DY1MDwXSia","mI4WlJa","zxzLBNrtDwjQzwn0CW","jhTSywjLBh3MNidLPjOKE21HEh3KUkRLRzFNRky","5PAh5lU25Qc85BYp6zsz6k+V","x2HHC1bHCMvUDa","DY1MDwXSigP1C3rPzNKTzw5K","w2nVBNrLBNrLzgL0ywjSzt0IDhj1zsjD","BM9Wyw4","Aw5MBW","C3r5BgvuD2vLBG","tgLZDa","BMfTzxnWywnLvvjj","Cgf0DgvYBG","ANn4","BgLI","iZe4otbMzG","u3vWChjLC3nLzevYCM9Y","mda4","ie0Wia","zgvZy3jPChrPB24","ywjZB2X1DguGDg9WltaGBgvMDc0XlZiGDY00igGTncbIzY1NCMvLBI01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","yxbWBgLJyxrPB24","AgfZt3DUuhjVCgvYDhK","y2XHC3nmAxn0","Dgv4Dc14BcbMB250lwjVBgqGDgv4Dc1IBhvLltyWma","Dg91y2HLBMqUEM9VBsb0B3vJAgnHBMnLBc56B29T","xhmQkfSRlv0/kd86xgqQxc4Pp1XKkYG/oLTLrv1BkY1Dp1XKkYK/ksvCCYO","5BYa5AEl5PEL5PYF","Bw91C2v1Cc5KCMfN","y3vYDMf0DxjL","DhjHBNnMB3jTu3rHDgu","y2XPzw50sgvPz2H0","qNv0Dg9U","u3rLCevKz2vjBNrLCM5HBa","Dw5PDa","vw5ZDwjZy3jPChrPB25fCNjVCG","AgfZqxr0CMLIDxrL","6iom5PMV6iMY","AgfZ","y2fUy2vS","C2LU","yNvPBhrPBKnVBMzPzW","q29WEu91DgXPBMvK","w2rHDgeTBM9Kzs1Pzd0I","Dg9VigXHDgu7igfSCMvHzhKGC2nOzwr1BgvK","B25tzwXLy3rPB25dAgfUz2viyw5KBgvYCW","zw5Kwq","Dg91y2HZDgfYDa","zg9Uzq","C3vIBwL0","Bw91C2veB3DU","C29Tzq","CgvUzgLUzW","ru1qvfK","DhjHBNnWyxjLBNqSicnMzMySihvYBcGUlI4P","zg93BG","mtjWEa","B25oB2rLrhjHz1n0yxj0","C2v0rMLLBgrZvMfSDwu","xMHZBgfCka","x19VBG","tw96vxnLCLnLBgvJDa","DY1MDwXSigGTndGGCc0ZigjVCMrLCIbIB3jKzxiTz3jHEs0ZmdaGCM91BMrLzc1SzYbMB250lw1VBM8GDgv4Dc1ZBsbYzxnPEMuTBM9UzsbMB2n1CZPVDxrSAw5Llw5VBMuGzM9JDxm6CMLUzY0YigzVy3vZoNjPBMCTyMX1zs01mda","Bwf4wM9VBq","AgvHza","ywjZB2X1DguGDg9WltaGBgvMDc0XlZiGDY0WlJuGAc0ZigjNlwDYzwvUltuWma","CMvHy3qTzMXVD19FyxjPys1SAxzL","vg9VBhrPCa","5Asw6yoO5lQl5lU2","6Ag75lI6jhTSzw595lIQjhTSywjLBh0","5A+85yE6iePtt04","6Ake6kEi5QIH5BYp","z2v0vMfSDwvgCM9Tugf0Aa","57Ue5zci6ycj5lIT6iQc54k5","DxnLrgvIDwDwywX1zq","ywjZB2X1DguGDg9WltaGBgvMDc0W","CMLUzY00ihjPBMCTyMX1zs00mdaGCMLUzY1VCgfJAxr5ltuW","zg90CW","zwXLDMf0zuvKz2vZt25tzwXLy3q","BM9Kzxm","5lIk5A+56B2q","5PwW5O2U5RgG77Yi6iQc54k554Q25Ocb55sO77Yj","Dg91y2GW","xcKK","zw5HyMXLrxzLBNrgBg93","DxjSka","ttiXlJmZmYaXmc42nJDimtKUodfwnY42mtLdmtKUodeGmY40mJKGmtyUmZGGmcaXmI4XosaWyY00lJeXncaXlJGYoc0XlJm3idiUmtmZlJmWnsaYlJqZocaXlJy3nI4ZmduGnc40mIaYlJu5idqUndiGns4Xodf2mY4WndHimY4WndDbmY4WntyGmY4WntyGmcaWmdaGmtmUnZe0DJe1lJiZoeeZlJa1nIaZlJa1nIaWidaWmY4WndGGmZjOmtGUmJG1ytmUmdu2idmUmdu2idaGmdaZlJa0oc0ZlJa0ofyXmY43mtrHmY4WntyGmY4WntyGmcaWmc0ZlJa0oc0ZlJa0n3PnmtiUmtKGmJqUntmZytmUmdu2idmUmdu2idaGmdeTmY4WndCTmY4WndCGmY4WntyGmY4WntyGmcaWmtmUmdq3ltmUmdq4idmUmdu2idmUmdu2idaGmdeZlJa0ocaZlJa0ocaZlJa1nIaZlJa1nIaWidaXltmUmdq4idmUmdq3EG","zwXLBwvUDhntzwXLy3rHyMXL","5yQO55s76ywn572U","5zU+54Mh5zYW5z2aicHZCMmP","C2fTCgXLiow/HEMHU+AyRYbku09oiowVUEIXOEAiLUAvSoE7Ha","DgHYB3C","5Rc05BMZ57+76l2S","yxjNCY5WCMv2mq","jsWG","cIaG","zgfZAc1KB3q","mc4Zzw0","w3jVBgu9iMnVBwjVyM94iL0","CMvTB3zLrxzLBNrmAxn0zw5LCG","y29UDgv4Dg1LBNu","q2XVC2vpDxrSAw5Lza","zgLZy29UBMvJDa","CMvSzwfZzvbVAw50zxjdyxb0DxjL","lIbozxCGCg9ZAxrPB24SihG6ia","BwfYz2LU","zgvMyxvSDhm","5PAW5lQl5lU25z2x","B25oB2rLrhjHz1n0B3a","y29Uy2f0","idaGvG","zgf0ytPPBwfNzs9ZDMCREg1Sla","C3rVCa","5yc85PAh5PYS","6l+u5zUE5lUk5AsP","57Ur5A6A5A2x5Q61","CMDIkdi1nsWGotySidaP","uMvHy3qGrMXVDYbHDhrYAwj1DgLVBG","DY00igGTncb0zxH0lwjSDwuTnJaWigjVCMrLCI1NCMf5ltmWmcbYB3vUzgvKigzVy3vZoNjPBMCTyMX1zs01mda","Cc0ZigjNlwjSDwuTntaGyM9YzgvYigjVCMrLCI1IBhvLltiWmcbYB3vUzgvKlwXNig1Iltq","zgvJAw1HBhm","EMGTy24","6BYG5Qch56E75yE6","vhjHBNnMB3jTv3jHChbLCG","ChGP","Dhj5CW","zwrNzvf1zxvL","y3vZDg9T","DhjHBNnSyxrLka","iIbUB3qGzM91BMqUifvZAw5NigzHBgXIywnRihr5CguGiMrLzMf1BhqIlG","55+L6ygt5lQg","EhKTzwrNzv9F","B2jZzxj2zxjZ","Ac1MDwXSigzSzxGGzMXLEc1JB2WGyMCTD2HPDguGyM9YzgvYlxiGyM9YzgvYlwDYyxKTmJaW","vevyva","5l6l5AAc77YABMf2AwDHDgvuB+oaGw9Wzw5eAwfSB2C","Aw5PDgLHBfDPzhrO","6Ake6kEi5PAh5lU2","57Yw6l6roIa","B25fzgDLC0nOyw5Nzq","t2jQzwn0vw5ZDwjZy3jPyMvKrxjYB3i","BM9VCgvUzxiGBM9YzwzLCNjLCG","iokaLca","Dgv4Dc14CYb0zxH0lwjSDwuTntaWigzVBNqTyM9Sza","5PwW5O2U5RgG","B3bLCMf0B3i","BM9Kzvf1zxvL","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi4mciGAgvPz2H0psi4mci+pgnPCMnSzsbJEd0IndaIign5psi0mciGCJ0ImZGIigzPBgW9iG","yMfJA2DYB3vUza","DhjHBNnPDgLVBG","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi2mciGAgvPz2H0psi2mci+pgnPCMnSzsbJEd0ImZaIign5psiZnsiGCJ0ImJaIigzPBgW9iInIzMjMyMyIihn0CM9Rzt0IiZu5ntK1osiGC3rYB2TLlxDPzhrOpsiYiI8+phjLy3qGEd0ImJuIihK9iJuIihDPzhrOpsiXmciGAgvPz2H0psiXnsiGzMLSBd0IiZu5ntK1osiVpJXWyxrOigq9iK0ZmcaYmcbmmZaGmZuGttiWidmWifeZmca0nsa0mcaZmciGC3rYB2TLpsiJntK1otu5iIbZDhjVA2uTD2LKDgG9iJiIigzPBgW9iM5VBMuIlZ48l3n2zZ4","5PwW5O2U5A2x5Q615PEG5yc85PE25PI+56s65Q2K5Ash55sO5yc8","5y+n6ycj5B2t6Ag1","zMLYC3q","iIbKB2vZig5VDcbLEgLZDcWGAxqGBwf5igHHDMuGyMvLBIbYzw1VDMvKlIbuAgLZignHBIbOyxbWzw4GD2HLBIbHig5VzguGAxmGzgvSzxrLzcbIzwzVCMuGDgHLicjVBK5VzgvdBgLJAYiGAgfUzgXLCIbPCYbJywXSzwqU","yxrHBJi","5Bcg6k+L57Ue6k6+5lI65Rs76lEd57Ue77Ym5Asw6yoO57+76Ag1ifvjioAnRUATPowqR+EuQa","z2v0sw5PDgLHBfn0yxrL","5PQc5PEG5PwW5O2U6zUg","yMfJAW","DxnLq29UDgv4Da","q29SDw1Uv2LKDgHpDxrSAw5Lza","B3bLBG","zxjYB3iWmdm","yw5PBwf0Aw9U","zxzLBNruExbL","zgfYAW","Aw52zxj0wa","C3rHCNrZv2L0Aa","5ywL5y+c5zcn77Yi5OYj6l+E57Q/6Ag65BQp77YjoIa","5PQc5PEG5zcm57QN5ywZ57o777Ym54k55yE744cm5PAW5BU644cn5BYa5AEl","DxnLtM9KzunVBM5Ly3rPB25ZoIboBYbUB2rLieLeigzVDw5KlIbdywXSihvZzu5VzgvdB25Uzwn0Aw9UCYbPBNnPzguGysbJDxn0B20GtM9KzsbVCIbWCM92AwrLigeGBM9Kzsbjrc4","5PAW5BU655s75BId","zMXLEcbQDxn0Awz5lwjLDhDLzw4GAxrLBxmTy2vUDgvYig1Iltq","x2vUDgvY","y2XPy2TeAxn0yw5Jzq","BwiTna","CgfYC2u","Dw5RBM93BIb0ExbLoIa","54k55yE75y2h5BQp","y2fUy2vSq29UBMvJDgLVBG","Aw52ywXPza","DxjSkcCJ","Aw5JBhvKzuHPzgrLBK5VzgvZ","yNv0Dg9U","yw50ze1LC3nHz2u","BgLUzurYyxDPBMC","ttaGmgGZmNy0lJjimhO","BMuTCMvZAxPL","CMvHy3qTzMXVD19FzwrNzs1PBNrLCMfJDgLVBG","mZi2nJCZA2DStu9e","6yEn572U6kEg5zU+","6l6t5ywL5yc85PAh5PYS","5y+w5RAi5O6s5BQp","zgvSyxK","zgvMyxvSDa","8j+sOsdMJ5dNPlRVVjRMI5BMI73NIANMLPNLIldNLlVLUipLIjVLU7ROIOlNGRNVViZNGRNLH7VNUR/MNAhNIANMLPNOV5VLHAxNU5JLIlBMQkhLVi8","zw1PDev4DgvYBMfS","Bwf0CML4","y29UDhjVBhmUEM9VBu91Dc5HCMLHtgfIzwW","BM9KzuXVB2T1Ca","zgf0ys1Oyw5KBgvPza","6zw/5yIs6zE06zQu","CMvHy3qTzMXVD19FyMfJA2DYB3vUza","6yEn54k55ywZ5RoO","i2yWzJbMma","zxzLBNrcBg9JAW","zM9Yy2u","zM9UDc1TzwrPDw0","5PQc5PEG5PwW5O2U","y2XPzw50v2LKDgG","5yIG6zMK6k+L5PwW5O2U6zUg77YF","xNjNyMfCka","y2f0y2G","y2XVBMvfBgvTzw50","A2v5CW","Bw91C2vy","zxjYB3i","ywjZB2X1DguGDY0ZigGTmYbIzY1IBhvLltuWmcbIB3jKzxiTmIbIB3jKzxiTD2HPDguGCM91BMrLzc1MDwXSign1CNnVCI1TB3zLihOTnta","jhbYzxyU","C291CMnLrxzLBNq","x2nVBxbSzxrL","ywn0Aw9UCW","y29TCgfYzurVy3vTzw50ug9ZAxrPB24","y29UDhjVBhmUEM9VBuLUlMfYAwfmywjLBa","DMfSAwq","57ky6ls0iePtt04G5yAf5A6577YA","yMCTz3jHEs0Ymda","CMvTB3zLqxr0CMLIDxrLtLm","zgvMyxvSDfj1BNrPBwviyw5KBgvYCW","ug9Wy29UzMLYBq","BM9Uzq","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUig1Ilti","zg9JDw1LBNq","zgf0yvrYyw5ZzMvY","Bwf4wa","tw92zwqGC2vSzwn0zwqGBM9Kzsa","DxnLq2fSBgjHy2S","C2v0rgvMyxvSDe5VzgvZqw5KrwrNzxm","rM9YBq","yMCTz3jHEs01mcbYB3vUzgvKlwXNihaTmYbIB3jKzxiGyM9YzgvYlwDYyxKTmJaW","CMv0DxjU","Dgv4Dc14CYb0zxH0lwDYyxKTndaWihCTnq","B25SEvjLBMrLCLzPC2LIBgvfBgvTzw50CW","Eg1SBNm","Aw5KzxHpzG","x2DYB3vWCW","Dgv4Dc1ZBsb0zxH0lwDYyxKTntaWig1Iltm","yxbWzw5Kq2HPBgq","C3rHCNroB2rLwq","BwfYA2vY","yxnZzxj0AxzL","u3rYywLNAhrfzgDL","5PYa5Bcp6ycp5PIo5BQM","x2nHBgW","5RE75yQG54Q25Ocb","C2nYB2XSvg8","DxnLuMvM","Ahr0CdOVl3D3DY53mY5VCMCVmtK5os94AhrTBa","Cg9PBNrLCI1LDMvUDhmTBM9Uzq","5zU+54Mh5zcn56EW","zgLYzwn0Aw9U","y3vYCMvUDfn0yxr1C0LK","BM9KzunSAwnRrgLZDgfUy2u","CMvHy3qTzMXVD19FCMvZAxPLlwnVBNrYB2W","5RE75yQG5ywL5y+c6kgm77Yi56YS5yEG5lIQ5y+c5PwW77Yj","ywrK","5Qch562+5Qc35BYp","iIbYEd0InciVpJWVC3zNpG","yM91BMreyxrHC2v0qMLUzfzHBhvL","DxbKyxrLtM9KzuLUDgvYBMfSCW","lMPZB24","6ycj5OUP5yw35l2t5yAf572U6io95yQB","5Qch6k+g5lIn6io95lI656M6","6k+36ycj5OUP5PE26zE0","5zcr5yMnidmG6Ag1","CMvHy3qTzMXVD19FAgfUzgXLlq","C3zN","B3b0Aw9UCW","u3LTyM9SlML0zxjHDg9YigLZig5VDcbKzwzPBMvKlG","mcaWidrWEcbYz2jHkdaSmcWWldaUmYK","C3bHy2uTEs00","CgfYzw50","l2rPC3qVC3r5BguUy3nZjYbVCIbIyxnLlMnZCYb0BYbTywTLihn1CMuGzxzLCNL0AgLUzYbPCYb3B3jRAw5NihbYB3bLCMX5lG","jhTSywjLBh3KUi3OG73OVAZMJAlKUlRML6xMNj8","y2XVC2vK","5lQl5lU25Rwb57Yw6l6r5zMO","qM90Dg9T","CMvHy3qTzg9T","C3bHBG","CMvUyw1L","AxndBgLJA2fIBgu6","DMfSDwvtB3vYy2vdB2rL","zxzLBM9Kza","ihSGmcuGEYbIB3jKzxiTy29SB3i6ia","6iQc54k5ieLeoIa","lteWic0XmcaYmcaYma","5PAW6iQc54k5","iIWGzwrNzsbPzdOG","CMvHy3qTzMXVD19FBwLUAw1HCc1TyxnR","DMLLD0jVEa","DhDLzw4","zhjHz2DHyMXL","Dg91y2HTB3zLlMrYywC","C2nOzwr1BgvY","6k+36ycj5OUP6kEM5y+r5PA55BYp","5RIf56M65OMa5PYj","Dgv4Dc1SzYbMB250lw1LzgL1Bq","zxzLBNrMBg93","AM9PBG","C3bSAwnL","5PQc5lIn5PsV5OYb57Yw6l6r5Q2K57g75z6l55Qe54MP5PAz","zMXLEc0XigjVCMrLCIbIB3jKzxiTz3jHEs0YmdaGCM91BMrLzcbWlti","Bw91C2v1Cc56B29T","BgLUzvr5Cgu","57Ut5P2F5BM05lU9","DgHYB3DUrxjYB3i","BgfIzwXgB250v2vPz2H0","5yIG6zMK6ycj5lITicHezwXLDguP","x3jLBw92zvbHCMvUDa","C2HPzNq","C2nOzwr1BgvYqwn0Aw9Uq3rVCG","DhLWzq","zM9YBwf0uMDI","6ycj5OUPiePtt04G5PAh5lU25A+85ywL77YA","DxnLu3rHDgu","z2v0qM91BMrPBMDdBgLLBNrszwn0","CM90yxrLka","tK9erv9eruXfveu","5B2t5yMn546V5Akd5lIn5PsV5OYb55s75BId5yIh5O2I","Dg9WlwXLzNq","y29UDgvUDgvKAxrHyMXL","DMfSDwvdB2XVCG","Ahr0Chm6lY9YzwfJDgzSB3CUzgv2","yxjYB3C","u2vSzwn0t3v0BgLUzwq","Dw5VyNnLCNzL","y29UDgv4Da","zxzLBNrcBg9JA3m","A2v5zg93BG","zw5KC1DPDgG","u2vSzwn0","CxvLCNLtzwXLy3rVCKfSBa","mNb4ihnVBgLKicmXodKWzMy","D2HLzwWUEM9VBq","6BYG5Qch56E75ywL","z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9YCW","BM9Kzvr5CgvZ","nZm4ndq3CMnMBKXe","vhjHBNnMB3jTq29TCg9Uzw50","uMvHy3qGrMXVDZOGDhjPz2DLCIbLzgDLignOyw5Nzxm","57Uy5yI25lIT","zgvNksa","vg9W","CgfYzw50tM9Kzq","C2HVD0DYAwq","57Q/5P2H5BgE5OcN","57Ui54k5ifG","5ywZ6zET6kgm","BgfIzwXgB250u2L6zq","zxH0zxjUywW","y2fUDMfZswrZ","5lIl5lIa6Ag1","y29UzMLN","A2v5Dxa","C3rHCNq","y29UBMvJDgfIBgu","5lIk5lIa5BM0icHdB250CM9S6zsU5yQG5BEM5PA55zcr6zsUkq","55s75BId5A+85yE65OIq5yQF77Yb","iZHJogm4yW","6ycj5OUP5BEY5RoO5yAm55Qe5Asw6yoO5PA55Rov","y29UDgvUDeLUzM8","ChjVBwLZzq","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igeGBM9Kzs4Gww91ignHBIb0AgvUihvZzsb0AguGyxjYB3CGA2v5CYb0BYbTB3zLihrOzsbUB2rLigfYB3vUzc4GuhjLC3mGzgvSzxrLihrVihjLBw92zsbPDcbHBMqGzxnJyxbLihrVignHBMnLBc4","y2fUDMfZxW","BwLUwq","DxnLrwzMzwn0","lwzSB3DFx2vKz2u","5zYO5lIl5PA556YSia","yxv0B1bHBLnWzwvK","B25dBgLJAW","zM9JDxnHyMXL","u3DHCe91DgXPBMvK","x2LK","y29UDgvUDa","CgfYzw50tg9VA3vW","5A+g6zUg54k554Q2","AxndBgLJA2fIBgu","Dgv4Dc1NCMf5ltGWma","y2XPzw50wq","Cg9W","CMvHy3qTzMXVD19FBM9Kzs0","B25oB2rLtw91C2vfBNrLCG","vgfICW","CMDIysG","Dgv4Dc14CYb0zxH0lwDYyxKTntaWig1Iltm","zgvZyW","vgHLifjLywn0iezSB3CGCgfYzw50ignVBNrHAw5LCIbUzwvKCYbHihDPzhrOigfUzcbHigHLAwDODcb0BYbYzw5KzxiGDgHLigDYyxbOlG","jhTSywjLBh3MMk/KUidKUkRML6dMLyJML6xMNj8","B25tzwXLy3rPB25eCMfNu3rHCNq","oJPLEhq6oG","5lIl5lIQ5PYiicJNV7VPOBxKUiVPLk4P","mtaWjq","C2fTCgXL","5z6c55U05yIg5BId","AhjLzG","zMXPCfK","CMvJDcGWChGSidbWEcWGmhb4lcaWChGP","57Ut5P2F5zgO","Dgv4Dc1SzYbMB250lxnLBwLIB2XKihrLEhqTz3jHEs04mda","tufyx1zbtfvf","C3rHDgu","y29UDhjVBa","BgfIzwXcz1n0EwXL","6zw/5yIslEwpJoEcUEs6PoABVW","uhjVDMLKzxi","zxjYB3iWmti","tgLUzq","zgLTzw5ZAw9UCW","zxH0zxjUywXiyw5KBgvYq2f0ywXVzW","5RE75yQG5lQl5lU25Rwb","lwnHBNzHCY0","C291CMnLswq","y29UBMvJDgLVBLjHzgL1CW","u2LTCgXLqMv6AwvYrwrNzuLUDgvYBMfS","5A2x5Q616lEV5B6e77Yi54k55yE75O+s5ywL6kgO6l6+5BYp77Yj","C2v0rgvMyxvSDfj1BNrPBwviyw5KBgvYCW","5zcm57QN5ywZ57o7","5PQc5PEG5PwW5O2U6zUg77Ym6k+35OMt5BYa44cm5PwW5O2U5RgG44cn5RE75yQG","zM9UDc1TzwrPDw0GDgv4Dc1NCMf5ltGWmcbTyI0Y","y29UDgfPBNm","6kEM5y+r5PA55BYp","CMvZB2X2zuzSB3DfDMvUDejSB2nR","Dg91y2HZDgfYDc5KCMfN","w2rHDgeTAgfUzgXLpsjLBMqIxq","ANvTCfrVq2fUDMfZ","6ycj5OUP6kAb57Ur5A6A55Qe6iQc54k5","CMvHy3qTzMXVD19Fy29UBMvJDgLVBMXPBMuGCMvHy3qTzMXVD19Fy29UDgfPBMvY","yMXVy2SGDY1MDwXSihrLEhqTC20GDgv4Dc1NCMf5ltuWmaOGicaGicaGicaGicaGigzPBgu6BxiTncbMAwXLoNb5ltiGzMLSztPWEc00cIaGicaGicaGicaGicaGzMLSztPYB3vUzgvKlwz1BgWGzMLSztPIB3jKzxiTmaOGicaGicaGicaGicaGigzPBgu6Dgv4Dc1ZBsbMAwXLoMzVBNqTC2vTAwjVBgqkicaGicaGicaGicaGicbMAwXLoMjNlwjSDwuTntaGzMLSztP0zxH0lwjSDwuTnZaWcIaGicaGicaGicaGicaGAg92zxi6zMLSztPIzY1IBhvLlteWma","jhTSywjLBh3KUi3OG73KUlRNQBRLRzFNRky","Aw50zxjUywW","mcaWidmYidu","rxHWzxjPBwvUDe91DgXPBMvK","DhjHBNnMB3jT","CgfYzw50rwXLBwvUDa","iw1Ylta","C21VB3rOC3rLCa","ugXLyxnLihvZzsbGz2v0tM9KzxncB3vUzhnGigzYB20GyhvZzvjLywn0rMXVD2aVyhvZzvn2zwX0zuzSB3DGigHVB2SGDg8Gzw5ZDxjLignVCNjLy3qGDMfSDwvZigzVCIbZDwiGzMXVD3mUieLMig5VDcbWB3nZAwjSzsWGEw91igHHDMuGDg8GChjVDMLKzsbHig5VzgvmB29RDxaGDg8GC3vWCg9YDcbZDwiGzMXVD3mU","CMvHy3qTzMXVD19FBwLUAw1HCc1ZDMC","5PQc5PEG5PwW5O2U6zUg77Ym6k+354k55yE744cm5PAW5BU644cn","Bw91C2v1Ca","Ahr0CdOVl3D3DY53mY5VCMCVwe1mlZe5otGVBMfTzxnWywnL","rw1WDhK","5OM+5lIn5yIW5lQl5lU25z2x","DMvYDgLJywW","Dg9mB3DLCKnHC2u","yxjNCY5WCMv2ma","Dg9W","y2fUDMfZq29UzMLN","5y+V6ycj77YA57Ur5A6A5zco6kgO6l6+5BYp5lIT55QeigrHDgeG5lYA5ywi5zci5BM26k+L5PwW5O2U6zUg55QeihnHBxbSzE+8JowgJEwqIow5TUEuU+w4G+s8OowfPEEAHoI/KoIHJoAxTUAvSoAnRUoaGUs4JEE7KEwUMUAxTIbKyxrHios7HEADPEIhQUI/KoIHJoAxTUoaGG","CMvSyxrPDMu","5zcn56EW5lIn6io95lI656M6","CNvUDgLTzuHHBMrSzxjZ","6lw354k5ifG","CMvHy3qTzMXVD19FBwfYA2vY","BwiTncbWltmGyM9YzgvYigjVCMrLCI1IBhvLltiWmcbYB3vUzgvKigjNlwjSDwuTntaVnta","zwXLBwvUDezYB21qB2LUDa","zg9TtM9Kzq","mdeZ","Cg9ZAxrPB25byNnVBhv0zq","zxHLy3v0zuv2zw50rMXVDW","Bgv2zwW","EfnUyxbWzwq","zwrNzxm","5l6l5AAc77YA5l+D5A2y5OIq5yQFioAiLIdNU5pMNPZVVjP7E3bYzxz9Fq","zM9UDfDLAwDODa","Dg91y2GTywn0Aw9U","55s75BId566H55cg","zhjHz3n0yxj0lMrYywC","5PwW57UeicG","C3rHDhvZswq","zMXLEcbMBgv4lwnVBca","ywjZB2X1DguGyM9YzgvYltiGyM9YzgvYlwjSDwuTntaWigjNlwjSDwuTntaWlZeWihbVAw50zxiTzxzLBNrZlw5VBMu","y3vYC29YlxbVAw50zxi","C2v0q2vUDgvY","BgvUz3rO","ltzWEa","CMvHy3qTzMXVD19FzwrNzxm","z3jLzw4","DxbKyxrLtM9Kzq","Bg9JywXLq29TCgfYzq","zgf0yvbVB2W","5lIl5lIa5lIw57QQ","5Asn5yI26lEF6zQp","zw50CMLLCW","zgv2AwnL","AwrLBNrPzMLLCG","57Yw6l6r6ycj5lIT6iQc54k555Qe5BgE5OcN","5PAh5lU25lIk5lYG5lIT","zxH0zxjUywXiyw5KBgvYs2v5","Dhj1zq","C3rLCfbVC2L0Aw9U","BgfIzwW","6k6+5lI65Rs76lEd57Ue","zxjYB3iWmdK","zMLSzxm","lM5VA2v5","CMzFx2vKz2uT","C2v0rgf0yq","u0vmrunu","B3v0Chv0CW","jhTSywjLBh3POBVLNkGKE21PBN0TjhTTyxH95lMl6zE0","5BEY5zcV55sO","DhjHBNnSyxrLwa","ywjZB2X1Dgu","zgf0ytPPBwfNzs9ZDMCREg1S","zxjYB3iWmde","6ycj5OUP5OIw5yIB5BU65lQl5lU25Rwb","BgfZDeLUzgv4","B25gAw5HBgL6zq","57Ur5A6A5yc8","5ygh5OoZ57Q/","y29SBgvJDerHDgfZzxrgAwvSzfbHDgHZ","55s75BId5yIx6kgO","CMv0DxjUihrYDwu7","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iImXodKWzMyIihj4psi0iI8+pc9ZDMC+","CMvHy3qTEM9VBs1Wyw4TCgLUy2G","CMvZDgfYDa","CMLNAhq","tw9KywW","B25dB25Uzwn0","y2vPBa","ENvZDgfUza","rgf0ywjHC2vpDxrSAw5Lza","ltuSltqGmcWWic01ldqGltuSltq","yM94lxnLBgvJDa","77Yi5y+V6ycj77Yj","55UU5Qch55s75BId","z2v0uM9VDe5Vzgu","lMrYywC","tK9erv9truXfq1q","jhTSywjLBh3MNidLSjeKE21PBN3KUkRLRzFNRky","u2LTCgXLqMv6AwvYrwrNzq","Cc00igjVCMrLCI1IigjVCMrLCI1NCMf5ltiWma","BwLUt3bHy2L0Eq","CMvHy3qTzMXVD19Fy29UDhjVBhmTAw50zxjHy3rPDMu","C2nHBgu","CMv0DxjUig51BgW7","uMvHy3rAB29TugfUugLUy2G","z2v0qxr0CMLIDxrL","rNvSBa","y3jLyxrLq29UDgv4Da","zMXPCfG","zM9YBwf0sgv4","iZCYmMvKmq","BxqTmIbWltiGyMCTyMX1zs01mcbYB3vUzgvKihrLEhqTEhmGDgv4Dc1IBhvLltyWma","5AgR5ywf6AkC6iMY77Yi5z+65PYS5B2I54Q277Yj","qgfUDc1KzxnPz24VAwnVBNm","zMX1C2G","zgvIDwC","Dgv4Dc1ZBsb0zxH0lwjSDwuTnZaW","i2vImMy5nG","y2XLyxi","C2nHBgvyka","5OYb57UT5PE26zE077Yi56Es77Yj","zw50zxi","rwrPDe91DgXPBMvK","5PAh5PYS5Qch562+","C3LZDgvT","CMvTB3zLuhjVCgvYDhK","Dgv4Dc14CYbTyI0X","w1jLywn0iezSB3DDoIa","Dg91y2HLBMqUzhjHzYb0B3vJAgnHBMnLBc5KCMfN","6ycj5OUP54MP5PAz","BM9KzvK","sw5WDxroDw1Izxi","ugfYzw50ig5VzguG","CgfYyw1Zq29Kzq","lNjLywn0lwzSB3DFx3bHBMu","vxbSB2fKt3v0BgLUzwq","5A+85ywL55s75BId","yM9Sza","sw5WDxq","y29UBMvJDgLVBKXVB2T1Ca","yM9YzgvYihjVDw5KzwqTBgCGCc0Yign1CNnVCI1WB2LUDgvYigHVDMvYoMjVCMrLCI1IBhvLltuWmcbOB3zLCJPIzY1IBhvLltuWihrYyw5ZAxrPB24TywXSihrLEhqTy2vUDgvY","CMvZAxPPBMC","zg90","5BEY5RE75yQG","CMvZB2X2zq","Bw91C2vTB3zLlMrYywC","z2v0rwrNzuLK","AhnSysG","q29UzMLNuhjVDMLKzxi"];return _0x5e7c=function(){return Ye},_0x5e7c()}const c=_0x51e5;var Gn=document[c(854)](c(777));Gn[c(1202)]=`.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}.ConfigEditor-module__configEditor__dinNG{width:100%;height:100%;display:flex;flex-direction:column}.ConfigEditor-module__configEditor__dinNG .ant-layout{background:#f5f5f5}.ConfigEditor-module__configEditor__dinNG .ant-layout-sider{background:#fff}.ConfigEditor-module__configEditor__dinNG .ant-collapse-ghost>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{padding:8px 0}.ConfigEditor-module__configEditor__dinNG .ant-list-item{padding:8px 12px}.ConfigEditor-module__canvasGrid__yL2Pn{background-image:linear-gradient(#e8e8e8 1px,transparent 1px),linear-gradient(90deg,#e8e8e8 1px,transparent 1px);background-size:20px 20px}.ConfigEditor-module__nodeSelected__CePHY{box-shadow:0 0 0 2px #1890ff,0 0 10px #1890ff4d}.ConfigEditor-module__dragging__w3tvz{cursor:grabbing!important;opacity:.8}.ConfigEditor-module__toolbarBtn__vRYDU{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s}.ConfigEditor-module__toolbarBtn__vRYDU:hover{background-color:#f3f4f6}.ConfigEditor-module__toolbarBtn__vRYDU.ConfigEditor-module__active__nREu2{background-color:#dbeafe;color:#2563eb}.ConfigEditor-module__propertyForm__f-Egu .ant-form-item{margin-bottom:12px}.ConfigEditor-module__propertyForm__f-Egu .ant-form-item-label{padding-bottom:4px}.ConfigEditor-module__materialItem__rDby0{transition:all .2s}.ConfigEditor-module__materialItem__rDby0:hover{background-color:#f9fafb}.ConfigEditor-module__materialItem__rDby0.ConfigEditor-module__selected__rIJzf{background-color:#eff6ff;box-shadow:0 0 0 2px #60a5fa}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar{width:6px;height:6px}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.ConfigEditor-module__configEditor__dinNG ::-webkit-scrollbar-thumb:hover{background:#a8a8a8}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.z-10{z-index:10}.z-50{z-index:50}.m-0{margin:0}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.\\!mr-0{margin-right:0!important}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0\\.5{height:.125rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-3{height:.75rem}.h-4{height:1rem}.h-48{height:12rem}.h-6{height:1.5rem}.h-full{height:100%}.max-h-\\[400px\\]{max-height:400px}.w-0\\.5{width:.125rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-\\[180px\\]{min-width:180px}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-crosshair{cursor:crosshair}.cursor-grab{cursor:grab}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-amber-100{--tw-border-opacity: 1;border-color:rgb(254 243 199 / var(--tw-border-opacity, 1))}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.\\!bg-blue-500{--tw-bg-opacity: 1 !important;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))!important}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-50\\/50{background-color:#eff6ff80}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-500\\/10{background-color:#3b82f61a}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.pt-1{padding-top:.25rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-amber-950{--tw-text-opacity: 1;color:rgb(69 26 3 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-blue-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity, 1)) }.ring-opacity-50{--tw-ring-opacity: .5 }.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.file\\:mr-4::file-selector-button{margin-right:1rem}.file\\:rounded-full::file-selector-button{border-radius:9999px}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-blue-50::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.file\\:px-4::file-selector-button{padding-left:1rem;padding-right:1rem}.file\\:py-2::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-semibold::file-selector-button{font-weight:600}.file\\:text-blue-700::file-selector-button{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:border-blue-500:hover{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.hover\\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.hover\\:file\\:bg-blue-100::file-selector-button:hover{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1)) }
|
|
2
|
+
/*$vite$:1*/`,document.head[c(1518)](Gn);function ut(e){const n=c;return e&&e[n(976)]&&Object[n(688)][n(1292)][n(945)](e,"default")?e[n(1465)]:e}var p0={},K0={exports:{}},Z0;function bt(){const e=c;return Z0||(Z0=1,(function(n){const t=e;function o(x){return x&&x[_0x51e5(976)]?x:{default:x}}n[t(836)]=o,n[t(836)].__esModule=!0,n[t(836)].default=n[t(836)]})(K0)),K0[e(836)]}var ft={},Cr;function As(){const e=c;if(Cr)return ft;Cr=1,Object[e(2104)](ft,e(976),{value:!0}),ft[e(1465)]=void 0;const n={items_per_page:e(906),jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:e(1632),prev_5:e(634),next_5:e(2026),prev_3:e(1545),next_3:e(771),page_size:"页码"};return ft.default=n,ft}var ht={},gt={},yt={},mt={},Mr;function js(){const e=c;return Mr||(Mr=1,Object[e(2104)](mt,e(976),{value:!0}),mt[e(2024)]=void 0,mt[e(2024)]={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),mt}var Br;function Ys(){const e=c;if(Br)return yt;Br=1,Object[e(2104)](yt,e(976),{value:!0}),yt[e(1465)]=void 0;var n=js();function t(u){"@babel/helpers - typeof";const s=e;return t=s(1019)==typeof Symbol&&s(706)==typeof Symbol[s(2015)]?function(b){return typeof b}:function(b){const g=s;return b&&g(1019)==typeof Symbol&&b[g(768)]===Symbol&&b!==Symbol.prototype?"symbol":typeof b},t(u)}function o(u,s){const b=e;var g=Object[b(1485)](u);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(u);s&&(h=h[b(1947)](function(v){const f=b;return Object[f(1909)](u,v)[f(499)]})),g.push[b(746)](g,h)}return g}function x(u){const s=e;for(var b=1;b<arguments[s(1755)];b++){var g=arguments[b]!=null?arguments[b]:{};b%2?o(Object(g),!0)[s(475)](function(h){r(u,h,g[h])}):Object[s(1616)]?Object[s(910)](u,Object.getOwnPropertyDescriptors(g)):o(Object(g)).forEach(function(h){const v=s;Object[v(2104)](u,h,Object[v(1909)](g,h))})}return u}function r(u,s,b){const g=e;return s=i(s),s in u?Object[g(2104)](u,s,{value:b,enumerable:!0,configurable:!0,writable:!0}):u[s]=b,u}function i(u){var b=a(u,e(2150));return t(b)=="symbol"?b:String(b)}function a(u,s){const b=e;if(b(990)!=t(u)||!u)return u;var g=u[Symbol.toPrimitive];if(g!==void 0){var h=g.call(u,s);if(b(990)!=t(h))return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b(2150)===s?String:Number)(u)}var d=x(x({},n[e(2024)]),{},{locale:e(2293),today:"今天",now:"此刻",backToToday:e(1384),ok:"确定",timeSelect:e(954),dateSelect:e(2234),weekSelect:e(1922),clear:"清除",week:"周",month:"月",year:"年",previousMonth:e(1959),nextMonth:e(1671),monthSelect:"选择月份",yearSelect:e(2245),decadeSelect:e(2195),previousYear:e(1637),nextYear:"下一年 (Control键加右方向键)",previousDecade:e(1030),nextDecade:e(1036),previousCentury:e(1190),nextCentury:e(1762),yearFormat:e(2042),cellDateFormat:"D",monthBeforeYear:!1});return yt.default=d,yt}var vt={},Dr;function Lr(){const e=c;if(Dr)return vt;Dr=1,Object[e(2104)](vt,e(976),{value:!0}),vt[e(1465)]=void 0;const n={placeholder:e(1544),rangePlaceholder:["开始时间","结束时间"]};return vt[e(1465)]=n,vt}var Sr;function Nr(){const e=c;if(Sr)return gt;Sr=1;var n=bt()[e(1465)];Object.defineProperty(gt,e(976),{value:!0}),gt[e(1465)]=void 0;var t=n(Ys()),o=n(Lr());const x={lang:{placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:e(928),weekPlaceholder:e(869),rangePlaceholder:[e(1297),e(730)],rangeYearPlaceholder:[e(884),e(1585)],rangeMonthPlaceholder:[e(728),e(2186)],rangeQuarterPlaceholder:[e(577),e(1906)],rangeWeekPlaceholder:["开始周",e(1678)],...t[e(1465)]},timePickerLocale:{...o[e(1465)]}};return x.lang.ok="确定",gt[e(1465)]=x,gt}var kr;function Es(){const e=c;if(kr)return ht;kr=1;var n=bt()[e(1465)];Object[e(2104)](ht,e(976),{value:!0}),ht[e(1465)]=void 0;var t=n(Nr());return ht[e(1465)]=t[e(1465)],ht}var Ir;function Us(){const e=c;if(Ir)return p0;Ir=1;var n=bt().default;Object.defineProperty(p0,"__esModule",{value:!0}),p0[e(1465)]=void 0;var t=n(As()),o=n(Es()),x=n(Nr()),r=n(Lr());const i=e(1115),a={locale:e(1391),Pagination:t.default,DatePicker:x[e(1465)],TimePicker:r[e(1465)],Calendar:o[e(1465)],global:{placeholder:e(941),close:"关闭",sortable:"可排序"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:e(2205),filterCheckAll:"全选",filterSearchPlaceholder:e(1015),emptyText:"暂无数据",selectAll:e(2086),selectInvert:e(1422),selectNone:e(1576),selectionAll:e(551),sortTitle:"排序",expand:"展开行",collapse:e(1628),triggerDesc:e(842),triggerAsc:e(1449),cancelSort:e(1463)},Modal:{okText:"确定",cancelText:"取消",justOkText:e(1400)},Tour:{Next:"下一步",Previous:e(2037),Finish:e(1867)},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:e(1066),itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:e(2086),removeCurrent:e(555),selectAll:e(551),deselectAll:e(2109),removeAll:e(502),selectInvert:e(1422)},Upload:{uploading:e(1768),removeFile:e(2251),uploadError:e(1194),previewFile:e(1407),downloadFile:e(914)},Empty:{description:e(1479)},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:e(2191),expand:"展开",collapse:"收起"},Form:{optional:e(1806),defaultValidateMessages:{default:e(1886),required:e(2124),enum:e(698),whitespace:e(1709),date:{format:e(1011),parse:e(1554),invalid:e(1668)},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label}须为${len}个字符",min:e(1811),max:e(1272),range:e(1880)},number:{len:e(1051),min:e(754),max:e(660),range:e(1781)},array:{len:e(1339),min:e(832),max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},QRCode:{expired:e(747),refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:e(547)}};return p0.default=a,p0}var so,Pr;function Gs(){return Pr||(Pr=1,so=Us()),so}var Os=Gs();const Vs=ut(Os),Hs=e=>(n,t,o)=>{const x=c;return o[x(1024)]=(r,i,...a)=>{const d=x,u=typeof r===d(1019)?Ft.produce(r):r;return n(u,i,...a)},e(o[x(1024)],t,o)},Ts=Hs;function qs(e){return Array[c(1996)](e)}function Ar(e){const n=c,t=[];for(const o of Object.keys(e)){t[n(573)](o);const x=e[o];if(x!==null&&typeof x===n(990)&&!Array[n(1996)](x))for(const r of Object.keys(x))t[n(573)](o+"."+r)}return t}function Ws(e,n,t){const o=c,x=e[o(1673)];if(qs(x)){if(n!=null&&t!=null){const r=x[o(517)](i=>i[n]===t);if(r)return r}return{}}return x}function lo(e,n,t,o){const x=c,r=Ws(e,t,o),i={...r};if(n&&typeof n===x(990)&&!Array[x(1996)](n))return{...i,...n};if(Array[x(1996)](n)){const a={...i};for(const d of n){if(!d||typeof d!==x(990))continue;const u=d;u.paramsCode!=null&&(a[String(u.paramsCode)]=u.value)}return a}return i}const Xs={id:"_",name:"_",sample:{}};function uo(e,n,t){const o=c,x=e.boundDatasetId!=null?String(e[o(1905)]).trim():"",r=x?t[o(517)](a=>a.id===x):void 0,i=r??Xs;try{const a=lo(i,n,e.boundDatasetBindCode,e.boundDatasetBindValue);return new Function(o(1083),e.expression)(a)===!0}catch(a){return console[o(2051)](o(2050)+e[o(1123)]+"]:",a),!1}}function jr(e,n,t){for(const o of e)if(uo(o,n,t))return o}function Yr(e,n){const t=c;for(const o of e){for(const x of o[t(1641)][t(1016)])x.boundDatasetId===n&&(x.boundDatasetId=null,x[t(736)]=null,x[t(1539)]=null);o[t(1592)]===t(504)&&o[t(795)]?.length&&Yr(o.children,n)}}function bo(e){const n=c;for(const t of e){for(const o of t.contentInfo.statusList)delete o.bindCodes;t.type===n(504)&&t.children?.[n(1755)]&&bo(t[n(795)])}}const fo=(e,n)=>({id:e||je[c(2131)](),name:n||"画布 1",nodes:[],canvasConfig:{width:1920,height:1080,background:c(790),showGrid:!0},viewport:{scale:1,positionX:0,positionY:0},selectedNodeId:null,selectedNodeIds:[],selectedStatusId:null,history:{past:[],future:[]}}),Ks=()=>{const e=c,n=fo();return{id:je.nanoid(),name:e(1974),canvases:[n],currentCanvasId:n.id,siblingGroups:[],activeSiblingGroupId:null,navigationStack:[]}},Er=Ks(),gn=Er.canvases[0],Zs={root:Er,materials:[],mode:c(1244),lineDrawing:{isDrawing:!1,material:null,startPoint:null,endPoint:null},eventFlow:{eventBlocks:[],eventRoots:[],editingEventRootId:null,isEditingEventFlow:!1},dataPool:[],externalHandlerCatalog:[],nodes:gn[c(1349)],canvas:gn[c(1728)],viewport:gn[c(878)],selectedNodeId:gn[c(1048)],selectedNodeIds:gn[c(993)],selectedStatusId:gn[c(631)],history:gn[c(412)]},H0=(e,n,t)=>({id:je[c(2131)](),type:e,targetId:n,payload:t,timestamp:Date[c(1207)]()}),s0=co.create()(Ts((e,n)=>({...Zs,addCanvas:t=>{const o=c,x=fo(je[o(2131)](),t||o(804)+(n()[o(2190)][o(568)].length+1));return e(r=>{const i=o;r.root[i(568)].push(x),r[i(2190)][i(473)]=x.id;const a=x;r[i(1349)]=a[i(1349)],r[i(734)]=a.canvasConfig,r[i(878)]=a[i(878)],r[i(1048)]=a.selectedNodeId,r[i(993)]=a[i(993)],r[i(631)]=a[i(631)],r[i(412)]=a[i(412)]}),x.id},removeCanvas:t=>{e(o=>{const x=_0x51e5,r=o[x(2190)][x(568)][x(1167)](a=>a.id===t);if(r===-1||o[x(2190)].canvases[x(1755)]<=1)return;if(o.root[x(568)].splice(r,1),o[x(2190)][x(1241)])for(const a of o.root.siblingGroups){const d=a.canvasIds.indexOf(t);d!==-1&&a.canvasIds[x(1580)](d,1)}if(o.root.navigationStack&&o.root[x(2280)][x(1755)]>0&&(o.root[x(2280)]=o.root[x(2280)][x(1947)](a=>a!==t)),o[x(2190)][x(473)]===t){const a=o[x(2190)][x(568)][0];o[x(2190)].currentCanvasId=a.id,o[x(1349)]=a.nodes,o.canvas=a[x(1728)],o[x(878)]=a[x(878)],o[x(1048)]=a[x(1048)],o[x(993)]=a[x(993)],o[x(631)]=a.selectedStatusId,o[x(412)]=a[x(412)]}const i=o[x(2190)][x(1106)];if(i){const a=(o[x(2190)][x(1241)]||[])[x(517)](d=>d.id===i);(!a||!a.canvasIds[x(1230)](o[x(2190)][x(473)]||""))&&(o.root[x(1106)]=null)}})},switchCanvas:t=>{e(o=>{const x=_0x51e5,r=o[x(2190)][x(568)][x(517)](a=>a.id===t);if(!r)return;o.root.currentCanvasId=t,o[x(1349)]=r[x(1349)],o[x(734)]=r[x(1728)],o[x(878)]=r[x(878)],o[x(1048)]=r[x(1048)],o[x(993)]=r[x(993)],o[x(631)]=r[x(631)],o[x(412)]=r[x(412)];const i=o[x(2190)][x(1106)];if(i){const a=(o[x(2190)][x(1241)]||[]).find(d=>d.id===i);(!a||!a[x(1631)][x(1230)](t))&&(o.root[x(1106)]=null)}})},updateCanvasName:(t,o)=>{e(x=>{const r=_0x51e5,i=x[r(2190)][r(568)][r(517)](a=>a.id===t);i&&(i[r(1123)]=o)})},getCurrentCanvas:()=>{const t=c,o=n();return o.root[t(568)][t(517)](x=>x.id===o.root[t(473)])},addSiblingGroup:(t,o)=>{const x=c,r=je[x(2131)]();return e(i=>{const a=x;i.root[a(1241)]||(i[a(2190)][a(1241)]=[]);const d=i[a(2190)][a(1241)][a(1755)]+1,u=Array.from(new Set((o||[]).filter(s=>i[a(2190)][a(568)].some(b=>b.id===s))));i[a(2190)].siblingGroups[a(573)]({id:r,name:t||a(2025)+d,canvasIds:u})}),r},removeSiblingGroup:t=>{e(o=>{const x=_0x51e5;if(!o[x(2190)][x(1241)])return;const r=o[x(2190)].siblingGroups.findIndex(i=>i.id===t);r!==-1&&o[x(2190)][x(1241)].splice(r,1),o[x(2190)].activeSiblingGroupId===t&&(o[x(2190)].activeSiblingGroupId=null)})},updateSiblingGroup:(t,o)=>{e(x=>{const r=_0x51e5;if(!x[r(2190)].siblingGroups)return;const i=x.root.siblingGroups[r(517)](a=>a.id===t);if(i&&(o[r(1123)]!==void 0&&(i[r(1123)]=o[r(1123)]),o.canvasIds!==void 0)){const a=new Set,d=[];for(const u of o[r(1631)])a[r(1308)](u)||x[r(2190)][r(568)].some(s=>s.id===u)&&(a.add(u),d[r(573)](u));i.canvasIds=d}})},addCanvasToSiblingGroup:(t,o,x)=>{e(r=>{const i=_0x51e5;if(!r[i(2190)].siblingGroups)return;const a=r[i(2190)][i(1241)][i(517)](d=>d.id===t);a&&r[i(2190)].canvases[i(1321)](d=>d.id===o)&&(a.canvasIds[i(1230)](o)||(typeof x===i(825)&&x>=0&&x<=a[i(1631)][i(1755)]?a[i(1631)][i(1580)](x,0,o):a[i(1631)].push(o)))})},removeCanvasFromSiblingGroup:(t,o)=>{e(x=>{const r=_0x51e5;if(!x[r(2190)][r(1241)])return;const i=x.root[r(1241)][r(517)](d=>d.id===t);if(!i)return;const a=i[r(1631)][r(1515)](o);a!==-1&&i.canvasIds[r(1580)](a,1)})},moveCanvasInSiblingGroup:(t,o,x)=>{e(r=>{const i=_0x51e5;if(!r[i(2190)][i(1241)])return;const a=r[i(2190)].siblingGroups[i(517)](s=>s.id===t);if(!a)return;const d=a[i(1631)][i(1515)](o);if(d===-1)return;const u=x==="up"?d-1:d+1;u<0||u>=a.canvasIds.length||([a[i(1631)][d],a.canvasIds[u]]=[a[i(1631)][u],a[i(1631)][d]])})},nextSiblingCanvas:(t,o=!1)=>{const x=c,r=n(),i=r[x(2190)].siblingGroups?.[x(517)](s=>s.id===t);if(!i||i.canvasIds.length===0)return null;const a=i[x(1631)][x(1947)](s=>r[x(2190)][x(568)][x(1321)](b=>b.id===s));if(a[x(1755)]===0)return null;const d=a[x(1515)](r[x(2190)][x(473)]||"");let u;if(d===-1)u=0;else if(d===a[x(1755)]-1){if(!o)return null;u=0}else u=d+1;return e(s=>{const b=x;s[b(2190)][b(1106)]=t}),n()[x(913)](a[u]),a[u]},prevSiblingCanvas:(t,o=!1)=>{const x=c,r=n(),i=r[x(2190)][x(1241)]?.[x(517)](s=>s.id===t);if(!i||i.canvasIds[x(1755)]===0)return null;const a=i[x(1631)][x(1947)](s=>r.root[x(568)].some(b=>b.id===s));if(a[x(1755)]===0)return null;const d=a[x(1515)](r.root[x(473)]||"");let u;if(d===-1)u=a[x(1755)]-1;else if(d===0){if(!o)return null;u=a[x(1755)]-1}else u=d-1;return e(s=>{const b=x;s[b(2190)][b(1106)]=t}),n()[x(913)](a[u]),a[u]},gotoSiblingCanvas:(t,o)=>{const x=c,r=n(),i=r.root[x(1241)]?.[x(517)](d=>d.id===t);if(!i)return null;const a=i[x(1631)][x(1947)](d=>r.root.canvases.some(u=>u.id===d));return o<0||o>=a[x(1755)]?null:(e(d=>{const u=x;d[u(2190)].activeSiblingGroupId=t}),n()[x(913)](a[o]),a[o])},getSiblingGroupsByCanvas:t=>{const o=c;return(n()[o(2190)][o(1241)]||[])[o(1947)](r=>r[o(1631)][o(1230)](t))},setActiveSiblingGroup:t=>{e(o=>{const x=_0x51e5;if(t===null){o[x(2190)][x(1106)]=null;return}(o[x(2190)][x(1241)]||[])[x(1321)](i=>i.id===t)&&(o[x(2190)][x(1106)]=t)})},jumpToCanvas:t=>{const o=c,x=n();if(!x.root[o(568)][o(1321)](i=>i.id===t)||x[o(2190)].currentCanvasId===t)return;const r=x[o(2190)][o(473)];r&&e(i=>{const a=o;i.root.navigationStack||(i[a(2190)][a(2280)]=[]),i[a(2190)][a(2280)][a(573)](r)}),n()[o(913)](t)},goBack:()=>{const t=c,o=n();if((o[t(2190)][t(2280)]||[]).length===0)return null;let r=null;const i=new Set(o[t(2190)][t(568)][t(1226)](a=>a.id));return e(a=>{const d=t;for(;a.root[d(2280)]&&a[d(2190)][d(2280)][d(1755)]>0;){const u=a[d(2190)][d(2280)].pop();if(i[d(1308)](u)){r=u;break}}}),r&&n()[t(913)](r),r},clearNavigationStack:()=>{e(t=>{const o=_0x51e5;t[o(2190)][o(2280)]=[]})},setSelectedNodeIds:t=>{e(o=>{const x=_0x51e5,r=o[x(2190)][x(568)][x(517)](i=>i.id===o.root[x(473)]);r&&(r[x(993)]=t,o[x(993)]=t)})},addSelectedNodeId:t=>{e(o=>{const x=_0x51e5,r=o.root.canvases.find(i=>i.id===o[x(2190)][x(473)]);r&&!r[x(993)][x(1230)](t)&&(r[x(993)][x(573)](t),o.selectedNodeIds=r[x(993)])})},removeSelectedNodeId:t=>{e(o=>{const x=_0x51e5,r=o[x(2190)][x(568)][x(517)](i=>i.id===o[x(2190)][x(473)]);r&&(r[x(993)]=r[x(993)][x(1947)](i=>i!==t),o[x(993)]=r[x(993)])})},clearSelectedNodeIds:()=>{e(t=>{const o=_0x51e5,x=t[o(2190)].canvases[o(517)](r=>r.id===t[o(2190)].currentCanvasId);x&&(x.selectedNodeIds=[],t[o(993)]=[])})},addNode:(t,o=!0)=>{e(x=>{const r=_0x51e5,i=x[r(2190)].canvases[r(517)](d=>d.id===x[r(2190)][r(473)]);if(!i)return;const a={...t,id:t.id||je[r(2131)]()};i[r(1349)][r(573)](a),x[r(1349)]=i[r(1349)],o&&(i.selectedNodeId=a.id,x.selectedNodeId=a.id,i[r(412)][r(610)].push(H0(r(1810),a.id)),x[r(412)]=i[r(412)])})},updateNode:(t,o)=>{e(x=>{const r=_0x51e5,i=x.root[r(568)][r(517)](d=>d.id===x.root[r(473)]);if(!i)return;const a=i[r(1349)].find(d=>d.id===t);a&&(o[r(674)]&&Object[r(1151)](a[r(674)],o[r(674)]),o[r(1641)]&&(a[r(1641)]={...a.contentInfo,...o[r(1641)]}),o.name&&(a[r(1123)]=o[r(1123)]),o[r(1223)]&&Object.assign(a[r(1223)],o[r(1223)]),o[r(795)]&&(a.children=o.children),i[r(412)].past[r(573)](H0(r(514),t,o)),x.history=i[r(412)],x[r(1349)]=i.nodes)})},updateNodeStyle:(t,o)=>{e(x=>{const r=_0x51e5,i=x[r(2190)][r(568)][r(517)](d=>d.id===x[r(2190)][r(473)]);if(!i)return;const a=i[r(1349)].find(d=>d.id===t);a&&(Object[r(1151)](a[r(674)],o),i.history.past[r(573)](H0(r(514),t,{normalStyle:o})),x[r(412)]=i[r(412)],x[r(1349)]=i.nodes)})},updateNodeContent:(t,o)=>{e(x=>{const r=_0x51e5,i=x[r(2190)].canvases[r(517)](d=>d.id===x[r(2190)][r(473)]);if(!i)return;const a=i[r(1349)][r(517)](d=>d.id===t);a&&(a.contentInfo={...a[r(1641)],...o},i[r(412)][r(610)][r(573)](H0(r(514),t,{contentInfo:o})),x[r(412)]=i.history,x.nodes=i.nodes)})},updateNodeControl:(t,o)=>{e(x=>{const r=_0x51e5,i=x[r(2190)][r(568)].find(d=>d.id===x[r(2190)][r(473)]);if(!i)return;const a=i[r(1349)][r(517)](d=>d.id===t);a&&(Object[r(1151)](a[r(1223)],o),i[r(412)][r(610)].push(H0(r(514),t,{controlInfo:o})),x[r(412)]=i[r(412)],x[r(1349)]=i[r(1349)])})},removeNode:t=>{e(o=>{const x=_0x51e5,r=o.root[x(568)].find(a=>a.id===o.root[x(473)]);if(!r)return;const i=r.nodes[x(1167)](a=>a.id===t);i!==-1&&(r[x(1349)][x(1580)](i,1),o[x(1349)]=r.nodes,r[x(1048)]===t&&(r[x(1048)]=null,o[x(1048)]=null,r.selectedStatusId=null,o[x(631)]=null),r[x(993)]=r[x(993)].filter(a=>a!==t),o[x(993)]=r.selectedNodeIds,r.history.past.push(H0(x(1598),t)),o[x(412)]=r.history)})},selectNode:t=>{e(o=>{const x=_0x51e5,r=o.root[x(568)][x(517)](i=>i.id===o[x(2190)][x(473)]);r&&(r[x(1048)]=t,o[x(1048)]=t,r[x(631)]=null,o.selectedStatusId=null,t&&(r[x(412)][x(610)][x(573)](H0(x(1810),t)),o[x(412)]=r[x(412)]))})},bringToFront:t=>{e(o=>{const x=_0x51e5,r=o.root[x(568)].find(d=>d.id===o.root[x(473)]);if(!r)return;const i=r[x(1349)][x(1167)](d=>d.id===t);if(i===-1||i===r[x(1349)][x(1755)]-1)return;const[a]=r.nodes[x(1580)](i,1);r[x(1349)][x(573)](a),o[x(1349)]=r.nodes,r[x(412)][x(610)][x(573)](H0(x(514),t,{zOrder:x(1005)})),o[x(412)]=r[x(412)]})},sendToBack:t=>{e(o=>{const x=_0x51e5,r=o[x(2190)].canvases[x(517)](d=>d.id===o.root[x(473)]);if(!r)return;const i=r[x(1349)][x(1167)](d=>d.id===t);if(i<=0)return;const[a]=r[x(1349)][x(1580)](i,1);r[x(1349)][x(2294)](a),o.nodes=r.nodes,r.history[x(610)].push(H0(x(514),t,{zOrder:x(1429)})),o[x(412)]=r[x(412)]})},addStatus:(t,o)=>{e(x=>{const r=_0x51e5,i=x.root[r(568)][r(517)](u=>u.id===x.root[r(473)]);if(!i)return;const a=i[r(1349)][r(517)](u=>u.id===t);if(!a)return;const d={...o,id:je[r(2131)]()};a.contentInfo[r(1016)][r(573)](d),i[r(412)].past[r(573)](H0(r(1931),t,{statusId:d.id})),x[r(412)]=i.history})},removeStatus:(t,o)=>{e(x=>{const r=_0x51e5,i=x[r(2190)][r(568)][r(517)](u=>u.id===x[r(2190)].currentCanvasId);if(!i)return;const a=i[r(1349)][r(517)](u=>u.id===t);if(!a)return;const d=a[r(1641)][r(1016)][r(1167)](u=>u.id===o);d!==-1&&(a[r(1641)].statusList[r(1580)](d,1),a[r(1641)][r(1532)]===o&&(a[r(1641)].currentStatusId=void 0),i[r(631)]===o&&(i[r(631)]=null,x.selectedStatusId=null))})},updateStatus:(t,o,x)=>{e(r=>{const i=_0x51e5,a=r[i(2190)][i(568)].find(s=>s.id===r.root[i(473)]);if(!a)return;const d=a[i(1349)].find(s=>s.id===t);if(!d)return;const u=d[i(1641)][i(1016)][i(517)](s=>s.id===o);u&&Object[i(1151)](u,x)})},selectStatus:t=>{e(o=>{const x=_0x51e5,r=o.root[x(568)].find(i=>i.id===o[x(2190)][x(473)]);r&&(r[x(631)]=t,o.selectedStatusId=t)})},evaluateCurrentStatus:(t,o)=>{const x=c,r=n(),i=r[x(2190)][x(568)][x(517)](u=>u.id===r[x(2190)][x(473)]);if(!i)return;const a=i[x(1349)].find(u=>u.id===t);if(!a)return;const{dataPool:d}=n();for(const u of a[x(1641)][x(1016)])if(uo(u,o,d))return u.id},addDataPoolItem:t=>{const o=je.nanoid();return e(x=>{const r=_0x51e5;let i={};t[r(1673)]&&typeof t[r(1673)]===r(990)&&(Array.isArray(t[r(1673)])?i=t[r(1673)]:i=t.sample),x[r(1761)].push({...t,id:o,sample:i})}),o},updateDataPoolItem:(t,o)=>{e(x=>{const r=_0x51e5,i=x[r(1761)][r(517)](a=>a.id===t);i&&(o[r(1123)]!==void 0&&(i[r(1123)]=o[r(1123)]),o.sample!==void 0&&(o[r(1673)]&&typeof o[r(1673)]=="object"?i.sample=o[r(1673)]:i.sample={}))})},removeDataPoolItem:t=>{e(o=>{const x=_0x51e5,r=o[x(1761)].findIndex(i=>i.id===t);if(r!==-1){o[x(1761)].splice(r,1);for(const i of o[x(2190)][x(568)])Yr(i[x(1349)],t)}})},setDataPool:t=>{e(o=>{const x=_0x51e5;o.dataPool=t[x(1226)](r=>{const i=x;let a={};return r[i(1673)]&&typeof r[i(1673)]===i(990)&&(a=r[i(1673)]),{...r,sample:a}})})},setEventFlow:t=>{e(o=>{const x=_0x51e5;o[x(2145)]={eventBlocks:t[x(1608)]??[],eventRoots:t[x(802)]??[],editingEventRootId:t[x(494)]??null,isEditingEventFlow:t[x(431)]??!1}})},setExternalHandlerCatalog:t=>{e(o=>{const x=_0x51e5,r=new Set;o[x(1689)]=[];for(const i of t){const a=String(i[x(427)]??"")[x(982)]();!a||r[x(1308)](a)||(r.add(a),o[x(1689)].push({key:a,label:String(i.label??"").trim()||a,description:i[x(1289)]}))}})},addMaterial:t=>{e(o=>{const x=_0x51e5;if(o[x(1900)][x(1321)](a=>a[x(1123)]===t.name))return;const i={...t,id:je[x(2131)]()};o[x(1900)][x(573)](i)})},updateMaterial:(t,o)=>{e(x=>{const r=_0x51e5,i=x.materials[r(517)](a=>a.id===t);i&&Object[r(1151)](i,o)})},removeMaterial:t=>{e(o=>{const x=_0x51e5,r=o.materials.findIndex(i=>i.id===t);r!==-1&&o[x(1900)].splice(r,1)})},setViewport:t=>{e(o=>{const x=_0x51e5,r=o[x(2190)][x(568)][x(517)](i=>i.id===o[x(2190)][x(473)]);r&&(Object[x(1151)](r[x(878)],t),o[x(878)]=r[x(878)])})},setCanvasConfig:t=>{e(o=>{const x=_0x51e5,r=o[x(2190)][x(568)][x(517)](i=>i.id===o[x(2190)][x(473)]);r&&(r[x(1728)]={...r[x(1728)],...t},o[x(734)]=r[x(1728)])})},setMode:t=>{e(o=>{const x=_0x51e5;o[x(1246)]=t})},startLineDrawing:t=>{e(o=>{const x=_0x51e5;o[x(1246)]=x(1166),o.lineDrawing={isDrawing:!0,material:t,startPoint:null,endPoint:null}})},updateLineDrawing:t=>{e(o=>{const x=_0x51e5;o[x(1456)][x(861)]&&(o[x(1456)].endPoint=t)})},endLineDrawing:()=>{e(t=>{const o=_0x51e5;t[o(1246)]=o(1244),t[o(1456)]={isDrawing:!1,material:null,startPoint:null,endPoint:null}})},cancelLineDrawing:()=>{e(t=>{const o=_0x51e5;t[o(1246)]=o(1244),t[o(1456)]={isDrawing:!1,material:null,startPoint:null,endPoint:null}})},undo:()=>{e(t=>{const o=_0x51e5,x=t[o(2190)][o(568)][o(517)](i=>i.id===t[o(2190)][o(473)]);if(!x)return;const r=x[o(412)][o(610)].pop();r&&(x[o(412)].future[o(573)](r),t[o(412)]=x[o(412)])})},redo:()=>{e(t=>{const o=_0x51e5,x=t[o(2190)][o(568)][o(517)](i=>i.id===t[o(2190)][o(473)]);if(!x)return;const r=x.history[o(809)][o(1660)]();r&&(x.history[o(610)][o(573)](r),t[o(412)]=x[o(412)])})},recordEvent:t=>{e(o=>{const x=_0x51e5,r=o[x(2190)][x(568)][x(517)](i=>i.id===o[x(2190)][x(473)]);r&&(r.history.past[x(573)](t),r[x(412)].future=[],o[x(412)]=r[x(412)])})},exportScheme:()=>{const t=c,o=n(),{activeSiblingGroupId:x,navigationStack:r,...i}=o[t(2190)];return{version:t(1270),root:i,materials:o[t(1900)],dataPool:o[t(1761)],eventFlow:o[t(2145)],metadata:{name:o[t(2190)][t(1123)],description:"",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}}},importScheme:t=>{e(o=>{const x=_0x51e5;if(t[x(2190)]){if(o[x(2190)]=t.root,!o.root.siblingGroups)o.root[x(1241)]=[];else{const i=new Set(o[x(2190)][x(568)][x(1226)](a=>a.id));for(const a of o.root[x(1241)])a[x(1631)]=a[x(1631)][x(1947)](d=>i[x(1308)](d))}o[x(2190)][x(1106)]=null,o[x(2190)][x(2280)]=[],o[x(1761)]=t[x(1761)]??[],t[x(2145)]&&(o.eventFlow={eventBlocks:t[x(2145)][x(1608)]??[],eventRoots:(t[x(2145)][x(802)]??[])[x(1226)](i=>({...i,copyOnDuplicate:i[x(1136)]!==void 0?i[x(1136)]:!0})),editingEventRootId:t[x(2145)][x(494)]??null,isEditingEventFlow:t.eventFlow[x(431)]??!1});const r=o.root[x(568)][x(517)](i=>i.id===o[x(2190)][x(473)])||o[x(2190)][x(568)][0];r&&(o[x(2190)].currentCanvasId=r.id,o.nodes=r[x(1349)],o[x(734)]=r[x(1728)],o.viewport=r[x(878)],o[x(1048)]=r[x(1048)],o[x(993)]=r[x(993)],o[x(631)]=r[x(631)],o.history=r.history)}else{const r=fo();r[x(1349)]=t[x(1349)]||[],o[x(2190)][x(568)]=[r],o[x(2190)][x(473)]=r.id,o[x(2190)][x(1241)]=[],o[x(2190)][x(1106)]=null,o[x(2190)].navigationStack=[],o.dataPool=t.dataPool??[],t[x(2145)]&&(o.eventFlow={eventBlocks:t[x(2145)].eventBlocks??[],eventRoots:(t[x(2145)][x(802)]??[])[x(1226)](i=>({...i,copyOnDuplicate:i[x(1136)]!==void 0?i[x(1136)]:!0})),editingEventRootId:t[x(2145)][x(494)]??null,isEditingEventFlow:t[x(2145)][x(431)]??!1}),o[x(1349)]=r[x(1349)],o.canvas=r[x(1728)],o.viewport=t[x(878)]||r.viewport,o.selectedNodeId=null,o.selectedStatusId=null,o[x(412)]={past:[],future:[]}}for(const r of o[x(2190)][x(568)])bo(r[x(1349)])})},exportCanvas:t=>{const o=c,x=n(),r=t||x[o(2190)].currentCanvasId,i=x[o(2190)][o(568)][o(517)](a=>a.id===r);if(!i)throw new Error(o(804)+r+" 不存在");return{version:o(1270),canvas:i,metadata:{name:i[o(1123)],description:"",exportedAt:new Date().toISOString()}}},importCanvas:(t,o)=>{e(x=>{const r=_0x51e5,i=t[r(734)],a=o||x.root[r(473)],d=x[r(2190)][r(568)][r(517)](u=>u.id===a);if(d)d[r(1123)]=i[r(1123)],d[r(1349)]=i.nodes||[],d[r(1728)]=i[r(1728)],d[r(878)]=i[r(878)],d.selectedNodeId=null,d[r(993)]=[],d[r(631)]=null,d[r(412)]=i.history||{past:[],future:[]},a===x.root[r(473)]&&(x[r(1349)]=d[r(1349)],x[r(734)]=d[r(1728)],x[r(878)]=d[r(878)],x[r(1048)]=d.selectedNodeId,x[r(993)]=d[r(993)],x[r(631)]=d.selectedStatusId,x.history=d[r(412)]);else{const u={...i,id:je[r(2131)](),selectedNodeId:null,selectedNodeIds:[],selectedStatusId:null};x[r(2190)][r(568)].push(u),x[r(2190)][r(473)]=u.id,x.nodes=u.nodes,x.canvas=u.canvasConfig,x[r(878)]=u[r(878)],x[r(1048)]=u.selectedNodeId,x[r(993)]=u.selectedNodeIds,x[r(631)]=u[r(631)],x[r(412)]=u.history}for(const u of x.root.canvases)bo(u[r(1349)])})},addEventBlock:t=>{const o=c,x=je[o(2131)]();return e(r=>{const i=o;r[i(2145)][i(1608)][i(573)]({...t,id:x})}),x},upsertEventBlock:t=>{e(o=>{const x=_0x51e5,r=o[x(2145)].eventBlocks[x(1167)](i=>i.id===t.id);r!==-1?o[x(2145)][x(1608)][r]={...t}:o.eventFlow[x(1608)].push({...t})})},updateEventBlock:(t,o)=>{e(x=>{const r=_0x51e5,i=x[r(2145)][r(1608)][r(517)](a=>a.id===t);i&&Object[r(1151)](i,o)})},removeEventBlock:t=>{e(o=>{const x=_0x51e5,r=o.eventFlow.eventBlocks.findIndex(i=>i.id===t);r!==-1&&o[x(2145)][x(1608)][x(1580)](r,1)})},addEventRoot:t=>{const o=je.nanoid();return e(x=>{const r=_0x51e5;x[r(2145)][r(802)][r(573)]({...t,id:o,copyOnDuplicate:t.copyOnDuplicate!==void 0?t[r(1136)]:!0})}),o},updateEventRoot:(t,o)=>{e(x=>{const r=_0x51e5,i=x[r(2145)][r(802)][r(517)](a=>a.id===t);i&&Object[r(1151)](i,o)})},removeEventRoot:t=>{e(o=>{const x=_0x51e5,r=o[x(2145)][x(802)].findIndex(i=>i.id===t);r!==-1&&o.eventFlow[x(802)][x(1580)](r,1)})},setEditingEventRoot:t=>{e(o=>{const x=_0x51e5;o[x(2145)].editingEventRootId=t})},setIsEditingEventFlow:t=>{e(o=>{const x=_0x51e5;o.eventFlow[x(431)]=t})},bindNodeEvent:(t,o,x)=>{const r=je.nanoid();return e(i=>{const a=_0x51e5;i[a(2145)][a(802)][a(573)]({id:r,bindNodeId:t,eventType:o,flowData:x,enabled:!0,copyOnDuplicate:!0})}),r},unbindNodeEvent:(t,o,x)=>{e(r=>{const i=_0x51e5,a=r[i(2145)][i(802)].findIndex(d=>{const u=i;return d.bindNodeId!==t||d[u(1435)]!==o?!1:o==="external"?(d[u(843)]||"").trim()===(x||"").trim():!0});a!==-1&&r[i(2145)][i(802)][i(1580)](a,1)})},getNodeEventRoots:t=>{const o=c;return n()[o(2145)][o(802)][o(1947)](x=>x.bindNodeId===t)}}))),Ur=[{id:je[c(2131)](),name:"矩形",type:"IMAGE",src:c(1381)+encodeURIComponent(c(1795))},{id:je[c(2131)](),name:"圆形",type:"IMAGE",src:c(1381)+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><circle cx="40" cy="40" r="38" fill="#52c41a"/></svg>')},{id:je[c(2131)](),name:c(1884),type:c(484),src:"data:image/svg+xml,"+encodeURIComponent(c(2062))},{id:je[c(2131)](),name:"阀门",type:c(484),src:c(1381)+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M10 20 L30 10 L50 20 L50 40 L30 50 L10 40 Z" fill="#bfbfbf" stroke="#595959" stroke-width="2"/><circle cx="30" cy="30" r="8" fill="#1890ff"/></svg>')},{id:je[c(2131)](),name:"泵",type:c(484),src:c(1381)+encodeURIComponent(c(1420))},{id:je[c(2131)](),name:"罐体",type:c(484),src:c(1381)+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="60" height="80"><ellipse cx="30" cy="10" rx="25" ry="10" fill="#d9d9d9" stroke="#595959" stroke-width="2"/><rect x="5" y="10" width="50" height="60" fill="#f0f0f0" stroke="#595959" stroke-width="2"/><ellipse cx="30" cy="70" rx="25" ry="10" fill="#d9d9d9" stroke="#595959" stroke-width="2"/></svg>')},{id:je[c(2131)](),name:c(1837),type:c(1404),content:{label:"标签",value:"值",labelStyle:{fontSize:14,fontWeight:c(1851),color:"#262626",textAlign:"left"},valueStyle:{fontSize:14,fontWeight:c(2249),color:"#1890ff",textAlign:"left"}}},{id:je.nanoid(),name:"线条",type:"LINE",config:{thickness:2,lineWeight:2,color:c(516),lineType:c(1091)}}],ho=e=>({id:je.nanoid(),name:c(2181),expression:"return true;",material:{...e,id:je[c(2131)]()},boundDatasetId:null,animation:{type:c(1501)}}),Gr=(e,n,t)=>{const o=c;if(t?.[o(1592)]===o(2165)&&t[o(1633)]?.[o(1349)]){const x=t[o(1633)][o(1349)].map(s=>({...s,id:je[o(2131)]()}));let r=1/0,i=1/0,a=-1/0,d=-1/0;x[o(475)](s=>{const b=o,g=s.normalStyle.x||0,h=s[b(674)].y||0,v=s[b(674)][b(434)]||0,f=s[b(674)][b(725)]||0;r=Math[b(1050)](r,g),i=Math[b(1050)](i,h),a=Math[b(656)](a,g+v),d=Math[b(656)](d,h+f)});const u=x.map(s=>({...s,normalStyle:{...s[o(674)],x:(s[o(674)].x||0)-r,y:(s[o(674)].y||0)-i,scale:void 0}}));return{id:je[o(2131)](),name:t[o(1123)]||o(931),type:o(504),normalStyle:{width:a-r,height:d-i,x:e,y:n},contentInfo:{statusList:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0},children:u}}return{id:je[o(2131)](),name:o(1567),type:o(2249),normalStyle:{width:120,height:100,x:e,y:n,background:"transparent",padding:8},contentInfo:{statusList:t?[ho(t)]:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0}}},{Panel:On}=p.Collapse,{Text:$t}=p[c(965)],Or=({onUploadSvg:e})=>{const n=c,{materials:t,addMaterial:o,removeMaterial:x,selectedStatusId:r,selectStatus:i,mode:a,lineDrawing:d,startLineDrawing:u,cancelLineDrawing:s}=s0(),[b,g]=D[n(1595)]([n(1013),n(1765),n(2223),n(1233)]),h=y=>{const m=n,C=new FileReader;return C[m(654)]=z=>{const P=m,E=z[P(450)]?.[P(536)];o({name:y.name[P(1009)](P(1940),""),type:P(484),src:E})},C[m(1265)](y),!1},v={basic:t[n(1947)](y=>["矩形","圆形","圆角矩形"][n(1230)](y[n(1123)])),device:t[n(1947)](y=>["阀门","泵","罐体"][n(1230)](y.name)||y.type===n(484)&&!["矩形","圆形",n(1884)].includes(y[n(1123)])&&y[n(1123)]!=="自定义"),text:t[n(1947)](y=>y[n(1592)]===n(1404)),line:t[n(1947)](y=>y[n(1592)]===n(1044)),group:t.filter(y=>y[n(1592)]===n(2165)&&y[n(1633)]?.[n(1349)]),custom:t[n(1947)](y=>y.type===n(2165)&&!y[n(1633)]?.nodes||y[n(1592)]===n(484)&&!["矩形","圆形",n(1884),"阀门","泵","罐体"][n(1230)](y[n(1123)]))},f=(y,m)=>{const C=n;y[C(1504)][C(1052)]=C(2069),y[C(1504)][C(1778)](C(943),JSON[C(1153)](m));const z=y.currentTarget[C(2204)](C(2128));z&&y[C(1504)].setDragImage(z,20,20)},w=y=>{y.type==="LINE"&&u(y)},M=(y,m=!1,C=n(677))=>{const z=n,P=m===!0,E=a===z(1166)&&P&&d[z(2209)]?.id===y.id;return l[z(1283)](p[z(1280)][z(1251)],{draggable:!P,onDragStart:V=>f(V,y),onClick:()=>P&&w(y),className:`
|
|
3
|
+
rounded-lg transition-all duration-200 select-none
|
|
4
|
+
`+z(P?1753:593)+`
|
|
5
|
+
`+z(960)+z(2274)+(E?z(2014):"")+z(2094),actions:[P?l[z(1283)](p[z(1302)],{type:"text",size:z(1021),icon:l.jsx(fe[z(1836)],{}),onClick:V=>{V[z(1199)](),w(y)},children:"绘制"},"draw"):null,l.jsx(p.Button,{type:"text",size:z(1021),danger:!0,icon:l[z(1283)](fe[z(604)],{}),onClick:V=>{V[z(1199)](),x(y.id)}},"delete")][z(1947)](Boolean),children:l[z(948)](z(737),{className:"flex items-center gap-3 w-full py-2 "+(P?"":z(1529)),children:[l.jsx(z(737),{className:z(1988)+C,children:y[z(1592)]===z(484)&&y.src?l[z(1283)](p.Image,{src:y[z(442)],alt:y[z(1123)],width:40,height:40,preview:!1}):y[z(1592)]===z(1404)?l.jsx(z(1559),{className:z(2153),children:"T"}):y[z(1592)]===z(1044)?l[z(1283)](z(737),{className:z(1216)}):y[z(1592)]===z(2165)&&y[z(1633)]?.[z(1349)]?l[z(1283)](z(1559),{className:z(1413),children:"G"}):l[z(1283)](z(1559),{className:z(2153),children:"?"})}),l[z(948)]("div",{className:"flex-1 min-w-0",children:[l.jsx($t,{strong:!0,className:"block truncate",children:y[z(1123)]}),l.jsxs(z(737),{className:z(846),children:[l[z(1283)]($t,{type:"secondary",className:z(452),children:y[z(1592)]}),E&&l[z(1283)](p[z(549)],{color:z(564),className:"text-xs",children:z(1621)})]})]})]})},y.id)};return l[n(948)](n(737),{className:n(1403),children:[l[n(948)](n(737),{className:"p-4 border-b border-gray-200",children:[l[n(1283)]("h3",{className:n(1679),children:n(1927)}),l[n(1283)]($t,{type:"secondary",className:n(1217),children:n(1200)})]}),l[n(1283)](n(737),{className:n(1968),children:e?l.jsx(p[n(1302)],{icon:l.jsx(fe[n(1849)],{}),block:!0,type:n(1870),onClick:()=>{const y=n;e()[y(1483)](m=>{const C=y;console[C(859)](C(1034),m)})},children:n(784)}):l.jsx(p[n(933)],{accept:n(1940),beforeUpload:h,showUploadList:!1,children:l[n(1283)](p[n(1302)],{icon:l[n(1283)](fe[n(1849)],{}),block:!0,type:n(1870),children:n(784)})})}),l[n(1283)]("div",{className:n(2020),children:l[n(948)](p[n(1037)],{activeKey:b,onChange:y=>g(y),ghost:!0,expandIconPosition:n(1086),children:[l.jsx(On,{header:n(1082),children:l[n(1283)](p[n(1280)],{dataSource:v[n(1013)],renderItem:y=>M(y,!1),locale:{emptyText:l[n(1283)](p[n(1722)],{description:n(1266),image:p[n(1722)].PRESENTED_IMAGE_SIMPLE})}})},n(1013)),l[n(1283)](On,{header:"设备图标",children:l[n(1283)](p[n(1280)],{dataSource:v[n(1765)],renderItem:y=>M(y,!1,n(1497)),locale:{emptyText:l[n(1283)](p.Empty,{description:n(1266),image:p[n(1722)].PRESENTED_IMAGE_SIMPLE})}})},n(1765)),l[n(1283)](On,{header:"文本",children:l[n(1283)](p[n(1280)],{dataSource:v.text,renderItem:y=>M(y,!1),locale:{emptyText:l.jsx(p[n(1722)],{description:n(1266),image:p[n(1722)][n(594)]})}})},n(2223)),l[n(948)](On,{header:l.jsxs("div",{className:n(2001),children:[l.jsx(n(1559),{children:"线条"}),a===n(1166)&&l[n(1283)](p[n(549)],{color:n(564),className:n(452),children:n(946)})]}),children:[l[n(1283)](p[n(1280)],{dataSource:v[n(1233)],renderItem:y=>M(y,!0),locale:{emptyText:l.jsx(p[n(1722)],{description:n(1266),image:p[n(1722)][n(594)]})}}),a==="line-draw"&&l[n(948)](n(737),{className:n(1825),children:[l[n(1283)](n(737),{children:n(419)}),l[n(1283)](n(737),{children:n(971)})]})]},n(1233)),v[n(504)][n(1755)]>0&&l[n(1283)](On,{header:"群组",children:l.jsx(p[n(1280)],{dataSource:v[n(504)],renderItem:y=>M(y,!1),locale:{emptyText:l.jsx(p[n(1722)],{description:n(1266),image:p.Empty[n(594)]})}})},"group"),v[n(1397)][n(1755)]>0&&l[n(1283)](On,{header:n(892),children:l.jsx(p[n(1280)],{dataSource:v[n(1397)],renderItem:y=>M(y,!1),locale:{emptyText:l[n(1283)](p[n(1722)],{description:n(1266),image:p[n(1722)][n(594)]})}})},n(1397))]})}),l.jsx("div",{className:n(2023),children:l.jsx($t,{type:n(966),className:"text-xs",children:a===n(1166)?l[n(1283)](l.Fragment,{children:n(2261)}):l[n(1283)](l.Fragment,{children:n(1466)})})})]})},yn=2,Vr=10**yn;function he(e){const n=c;return Number[n(782)](e)?Math[n(909)](e*Vr)/Vr:0}var go=function(e,n){const t=c;return go=Object[t(2149)]||{__proto__:[]}instanceof Array&&function(o,x){const r=t;o[r(2032)]=x}||function(o,x){const r=t;for(var i in x)Object[r(688)][r(1292)][r(945)](x,i)&&(o[i]=x[i])},go(e,n)};function rn(e,n){const t=c;if(typeof n!="function"&&n!==null)throw new TypeError(t(839)+String(n)+t(833));go(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o[t(688)]=n[t(688)],new o)}function Rs(e,n,t,o){function x(r){return r instanceof t?r:new t(function(i){i(r)})}return new(t||(t=Promise))(function(r,i){const a=_0x51e5;function d(b){const g=_0x51e5;try{s(o[g(599)](b))}catch(h){i(h)}}function u(b){const g=_0x51e5;try{s(o[g(1361)](b))}catch(h){i(h)}}function s(b){const g=_0x51e5;b[g(1318)]?r(b[g(1256)]):x(b.value)[g(591)](d,u)}s((o=o[a(746)](e,n||[]))[a(599)]())})}function Hr(e,n){const t=c;var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},x,r,i,a=Object[t(1253)]((typeof Iterator=="function"?Iterator:Object).prototype);return a[t(599)]=d(0),a.throw=d(1),a.return=d(2),typeof Symbol=="function"&&(a[Symbol[t(2015)]]=function(){return this}),a;function d(s){return function(b){return u([s,b])}}function u(s){const b=t;if(x)throw new TypeError(b(1077));for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(x=1,r&&(i=s[0]&2?r.return:s[0]?r[b(1361)]||((i=r.return)&&i[b(945)](r),0):r[b(599)])&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[s[0]&2,i[b(1256)]]),s[0]){case 0:case 1:i=s;break;case 4:return o[b(1772)]++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o[b(2287)].pop(),o[b(1395)][b(1660)]();continue;default:if(i=o[b(1395)],!(i=i[b(1755)]>0&&i[i[b(1755)]-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){o[b(1772)]=s[1];break}if(s[0]===6&&o[b(1772)]<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o[b(2287)][b(573)](s);break}i[2]&&o[b(2287)][b(1660)](),o[b(1395)].pop();continue}s=n.call(e,o)}catch(g){s=[6,g],r=0}finally{x=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Vn(e){const n=c;var t=typeof Symbol=="function"&&Symbol[n(2015)],o=t&&e[t],x=0;if(o)return o[n(945)](e);if(e&&typeof e[n(1755)]===n(825))return{next:function(){return e&&x>=e[n(1755)]&&(e=void 0),{value:e&&e[x++],done:!e}}};throw new TypeError(n(t?783:1549))}function ex(e,n){const t=c;var o=typeof Symbol===t(1019)&&e[Symbol[t(2015)]];if(!o)return e;var x=o[t(945)](e),r,i=[],a;try{for(;(n===void 0||n-- >0)&&!(r=x.next()).done;)i[t(573)](r[t(1256)])}catch(d){a={error:d}}finally{try{r&&!r[t(1318)]&&(o=x.return)&&o[t(945)](x)}finally{if(a)throw a[t(1487)]}}return i}function nx(e,n,t){const o=c;if(t||arguments.length===2)for(var x=0,r=n[o(1755)],i;x<r;x++)(i||!(x in n))&&(i||(i=Array[o(688)].slice[o(945)](n,0,x)),i[x]=n[x]);return e[o(1379)](i||Array[o(688)][o(845)][o(945)](n))}function Hn(e){return this instanceof Hn?(this.v=e,this):new Hn(e)}function Js(e,n,t){const o=c;if(!Symbol[o(1063)])throw new TypeError(o(1127));var x=t.apply(e,n||[]),r,i=[];return r=Object[o(1253)]((typeof AsyncIterator===o(1019)?AsyncIterator:Object)[o(688)]),d(o(599)),d(o(1361)),d(o(1511),a),r[Symbol[o(1063)]]=function(){return this},r;function a(v){return function(f){return Promise[_0x51e5(1858)](f).then(v,g)}}function d(v,f){x[v]&&(r[v]=function(w){return new Promise(function(M,y){i[_0x51e5(573)]([v,w,M,y])>1||u(v,w)})},f&&(r[v]=f(r[v])))}function u(v,f){try{s(x[v](f))}catch(w){h(i[0][3],w)}}function s(v){const f=o;v[f(1256)]instanceof Hn?Promise[f(1858)](v.value.v)[f(591)](b,g):h(i[0][2],v)}function b(v){u(o(599),v)}function g(v){u(o(1361),v)}function h(v,f){const w=o;v(f),i[w(1590)](),i[w(1755)]&&u(i[0][0],i[0][1])}}function Qs(e){const n=c;if(!Symbol[n(1063)])throw new TypeError(n(1127));var t=e[Symbol.asyncIterator],o;return t?t[n(945)](e):(e=typeof Vn===n(1019)?Vn(e):e[Symbol.iterator](),o={},x(n(599)),x("throw"),x(n(1511)),o[Symbol.asyncIterator]=function(){return this},o);function x(i){o[i]=e[i]&&function(a){return new Promise(function(d,u){const s=_0x51e5;a=e[i](a),r(d,u,a[s(1318)],a[s(1256)])})}}function r(i,a,d,u){Promise[n(1858)](u).then(function(b){i({value:b,done:d})},a)}}typeof SuppressedError===c(1019)&&SuppressedError;function t0(e){return typeof e===c(1019)}function yo(e){const n=c;var t=function(x){const r=_0x51e5;Error[r(945)](x),x.stack=new Error()[r(1978)]},o=e(t);return o[n(688)]=Object[n(1253)](Error.prototype),o.prototype[n(768)]=o,o}var mo=yo(function(e){return function(t){const o=_0x51e5;e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
6
|
+
`+t.map(function(x,r){const i=_0x51e5;return r+1+") "+x[i(1001)]()})[o(1579)](o(1365)):"",this[o(1123)]=o(1305),this[o(1998)]=t}});function tx(e,n){const t=c;if(e){var o=e.indexOf(n);0<=o&&e[t(1580)](o,1)}}var wt=(function(){const e=c;function n(t){const o=_0x51e5;this[o(1981)]=t,this[o(1555)]=!1,this[o(1119)]=null,this[o(1043)]=null}return n.prototype[e(707)]=function(){const t=e;var o,x,r,i,a;if(!this[t(1555)]){this.closed=!0;var d=this[t(1119)];if(d)if(this[t(1119)]=null,Array[t(1996)](d))try{for(var u=Vn(d),s=u[t(599)]();!s[t(1318)];s=u[t(599)]()){var b=s[t(1256)];b[t(2193)](this)}}catch(M){o={error:M}}finally{try{s&&!s.done&&(x=u[t(1511)])&&x[t(945)](u)}finally{if(o)throw o[t(1487)]}}else d[t(2193)](this);var g=this[t(1981)];if(t0(g))try{g()}catch(M){a=M instanceof mo?M[t(1998)]:[M]}var h=this._finalizers;if(h){this[t(1043)]=null;try{for(var v=Vn(h),f=v.next();!f[t(1318)];f=v[t(599)]()){var w=f.value;try{Wr(w)}catch(M){a=a??[],M instanceof mo?a=nx(nx([],ex(a)),ex(M.errors)):a[t(573)](M)}}}catch(M){r={error:M}}finally{try{f&&!f[t(1318)]&&(i=v.return)&&i[t(945)](v)}finally{if(r)throw r[t(1487)]}}}if(a)throw new mo(a)}},n[e(688)].add=function(t){const o=e;var x;if(t&&t!==this)if(this[o(1555)])Wr(t);else{if(t instanceof n){if(t[o(1555)]||t._hasParent(this))return;t[o(2139)](this)}(this._finalizers=(x=this._finalizers)!==null&&x!==void 0?x:[])[o(573)](t)}},n.prototype[e(1274)]=function(t){const o=e;var x=this._parentage;return x===t||Array.isArray(x)&&x[o(1230)](t)},n[e(688)][e(2139)]=function(t){const o=e;var x=this[o(1119)];this[o(1119)]=Array[o(1996)](x)?(x.push(t),x):x?[x,t]:t},n[e(688)][e(1589)]=function(t){const o=e;var x=this[o(1119)];x===t?this[o(1119)]=null:Array.isArray(x)&&tx(x,t)},n.prototype[e(2193)]=function(t){const o=e;var x=this._finalizers;x&&tx(x,t),t instanceof n&&t[o(1589)](this)},n.EMPTY=(function(){const t=e;var o=new n;return o[t(1555)]=!0,o})(),n})(),Tr=wt[c(1323)];function qr(e){const n=c;return e instanceof wt||e&&"closed"in e&&t0(e.remove)&&t0(e[n(1536)])&&t0(e[n(707)])}function Wr(e){t0(e)?e():e.unsubscribe()}var Fs={Promise:void 0},_s={setTimeout:function(e,n){const t=c;for(var o=[],x=2;x<arguments[t(1755)];x++)o[x-2]=arguments[x];return setTimeout[t(746)](void 0,nx([e,n],ex(o)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Xr(e){_s[c(1869)](function(){throw e})}function Kr(){}function xx(e){e()}var vo=(function(e){const n=c;rn(t,e);function t(o){const x=_0x51e5;var r=e[x(945)](this)||this;return r[x(1987)]=!1,o?(r[x(902)]=o,qr(o)&&o[x(1536)](r)):r[x(902)]=nl,r}return t[n(1253)]=function(o,x,r){return new wo(o,x,r)},t.prototype[n(599)]=function(o){this[n(1987)]||this._next(o)},t[n(688)][n(1487)]=function(o){const x=n;this[x(1987)]||(this.isStopped=!0,this[x(609)](o))},t.prototype[n(1238)]=function(){const o=n;this[o(1987)]||(this[o(1987)]=!0,this._complete())},t[n(688)].unsubscribe=function(){const o=n;!this[o(1555)]&&(this[o(1987)]=!0,e[o(688)][o(707)].call(this),this[o(902)]=null)},t.prototype[n(705)]=function(o){const x=n;this.destination[x(599)](o)},t[n(688)][n(609)]=function(o){const x=n;try{this[x(902)][x(1487)](o)}finally{this[x(707)]()}},t[n(688)][n(1491)]=function(){const o=n;try{this[o(902)][o(1238)]()}finally{this[o(707)]()}},t})(wt),$s=(function(){const e=c;function n(t){const o=_0x51e5;this[o(515)]=t}return n[e(688)][e(599)]=function(t){const o=e;var x=this.partialObserver;if(x[o(599)])try{x[o(599)](t)}catch(r){ox(r)}},n[e(688)].error=function(t){const o=e;var x=this[o(515)];if(x[o(1487)])try{x[o(1487)](t)}catch(r){ox(r)}else ox(t)},n[e(688)][e(1238)]=function(){const t=e;var o=this[t(515)];if(o[t(1238)])try{o[t(1238)]()}catch(x){ox(x)}},n})(),wo=(function(e){rn(n,e);function n(t,o,x){var i=e[_0x51e5(945)](this)||this,a;return t0(t)||!t?a={next:t??void 0,error:o??void 0,complete:x??void 0}:a=t,i.destination=new $s(a),i}return n})(vo);function ox(e){Xr(e)}function el(e){throw e}var nl={closed:!0,next:Kr,error:el,complete:Kr},po=(function(){const e=c;return typeof Symbol===e(1019)&&Symbol.observable||e(2123)})();function Zr(e){return e}function tl(e){const n=c;return e[n(1755)]===0?Zr:e[n(1755)]===1?e[0]:function(o){return e.reduce(function(x,r){return r(x)},o)}}var L0=(function(){const e=c;function n(t){const o=_0x51e5;t&&(this[o(2255)]=t)}return n.prototype[e(456)]=function(t){const o=e;var x=new n;return x[o(2058)]=this,x[o(1415)]=t,x},n[e(688)][e(421)]=function(t,o,x){var r=this,i=ol(t)?t:new wo(t,o,x);return xx(function(){const a=_0x51e5;var d=r,u=d[a(1415)],s=d[a(2058)];i.add(u?u[a(945)](i,s):s?r[a(2255)](i):r[a(1182)](i))}),i},n.prototype[e(1182)]=function(t){const o=e;try{return this[o(2255)](t)}catch(x){t[o(1487)](x)}},n.prototype[e(475)]=function(t,o){var x=this;return o=Rr(o),new o(function(r,i){var a=new wo({next:function(d){const u=_0x51e5;try{t(d)}catch(s){i(s),a[u(707)]()}},error:i,complete:r});x.subscribe(a)})},n[e(688)][e(2255)]=function(t){const o=e;var x;return(x=this[o(2058)])===null||x===void 0?void 0:x[o(421)](t)},n[e(688)][po]=function(){return this},n[e(688)][e(1008)]=function(){const t=e;for(var o=[],x=0;x<arguments[t(1755)];x++)o[x]=arguments[x];return tl(o)(this)},n[e(688)][e(1203)]=function(t){var o=this;return t=Rr(t),new t(function(x,r){const i=_0x51e5;var a;o[i(421)](function(d){return a=d},function(d){return r(d)},function(){return x(a)})})},n[e(1253)]=function(t){return new n(t)},n})();function Rr(e){const n=c;var t;return(t=e??Fs[n(834)])!==null&&t!==void 0?t:Promise}function xl(e){const n=c;return e&&t0(e[n(599)])&&t0(e[n(1487)])&&t0(e[n(1238)])}function ol(e){return e&&e instanceof vo||xl(e)&&qr(e)}function rl(e){return t0(e?.[c(456)])}function mn(e){return function(n){if(rl(n))return n.lift(function(t){const o=_0x51e5;try{return e(t,this)}catch(x){this[o(1487)](x)}});throw new TypeError("Unable to lift unknown Observable type")}}function vn(e,n,t,o,x){return new il(e,n,t,o,x)}var il=(function(e){const n=c;rn(t,e);function t(o,x,r,i,a,d){const u=_0x51e5;var s=e[u(945)](this,o)||this;return s.onFinalize=a,s[u(1074)]=d,s[u(705)]=x?function(b){try{x(b)}catch(g){o.error(g)}}:e.prototype[u(705)],s._error=i?function(b){const g=u;try{i(b)}catch(h){o[g(1487)](h)}finally{this[g(707)]()}}:e[u(688)][u(609)],s._complete=r?function(){const b=u;try{r()}catch(g){o[b(1487)](g)}finally{this[b(707)]()}}:e[u(688)][u(1491)],s}return t[n(688)][n(707)]=function(){const o=n;var x;if(!this[o(1074)]||this.shouldUnsubscribe()){var r=this[o(1555)];e.prototype[o(707)][o(945)](this),!r&&((x=this[o(1789)])===null||x===void 0||x[o(945)](this))}},t})(vo),al=yo(function(e){return function(){const t=_0x51e5;e(this),this[t(1123)]=t(1410),this[t(1118)]=t(506)}}),Jr=(function(e){const n=c;rn(t,e);function t(){const o=_0x51e5;var x=e[o(945)](this)||this;return x[o(1555)]=!1,x[o(587)]=null,x.observers=[],x[o(1987)]=!1,x[o(2284)]=!1,x[o(1586)]=null,x}return t[n(688)].lift=function(o){const x=n;var r=new Qr(this,this);return r[x(1415)]=o,r},t[n(688)][n(2270)]=function(){if(this[n(1555)])throw new al},t[n(688)].next=function(o){var x=this;xx(function(){const r=_0x51e5;var i,a;if(x[r(2270)](),!x[r(1987)]){!x[r(587)]&&(x[r(587)]=Array[r(1124)](x[r(1402)]));try{for(var d=Vn(x[r(587)]),u=d[r(599)]();!u[r(1318)];u=d[r(599)]()){var s=u[r(1256)];s.next(o)}}catch(b){i={error:b}}finally{try{u&&!u[r(1318)]&&(a=d[r(1511)])&&a[r(945)](d)}finally{if(i)throw i[r(1487)]}}}})},t.prototype[n(1487)]=function(o){var x=this;xx(function(){const r=_0x51e5;if(x[r(2270)](),!x[r(1987)]){x[r(2284)]=x[r(1987)]=!0,x[r(1586)]=o;for(var i=x.observers;i[r(1755)];)i.shift()[r(1487)](o)}})},t[n(688)][n(1238)]=function(){var o=this;xx(function(){const x=_0x51e5;if(o[x(2270)](),!o[x(1987)]){o.isStopped=!0;for(var r=o[x(1402)];r[x(1755)];)r.shift()[x(1238)]()}})},t[n(688)][n(707)]=function(){const o=n;this.isStopped=this[o(1555)]=!0,this[o(1402)]=this[o(587)]=null},Object[n(2104)](t[n(688)],n(1183),{get:function(){const o=n;var x;return((x=this[o(1402)])===null||x===void 0?void 0:x[o(1755)])>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(o){const x=n;return this[x(2270)](),e[x(688)][x(1182)][x(945)](this,o)},t[n(688)][n(2255)]=function(o){const x=n;return this[x(2270)](),this[x(543)](o),this[x(875)](o)},t[n(688)][n(875)]=function(o){const x=n;var r=this,i=this,a=i.hasError,d=i.isStopped,u=i.observers;return a||d?Tr:(this.currentObservers=null,u[x(573)](o),new wt(function(){const s=x;r[s(587)]=null,tx(u,o)}))},t[n(688)][n(543)]=function(o){const x=n;var r=this,i=r.hasError,a=r.thrownError,d=r[x(1987)];i?o[x(1487)](a):d&&o[x(1238)]()},t[n(688)][n(2154)]=function(){const o=n;var x=new L0;return x[o(2058)]=this,x},t.create=function(o,x){return new Qr(o,x)},t})(L0),Qr=(function(e){const n=c;rn(t,e);function t(o,x){const r=_0x51e5;var i=e.call(this)||this;return i[r(902)]=o,i[r(2058)]=x,i}return t[n(688)].next=function(o){const x=n;var r,i;(i=(r=this[x(902)])===null||r===void 0?void 0:r[x(599)])===null||i===void 0||i.call(r,o)},t[n(688)][n(1487)]=function(o){const x=n;var r,i;(i=(r=this[x(902)])===null||r===void 0?void 0:r[x(1487)])===null||i===void 0||i[x(945)](r,o)},t[n(688)][n(1238)]=function(){const o=n;var x,r;(r=(x=this[o(902)])===null||x===void 0?void 0:x.complete)===null||r===void 0||r[o(945)](x)},t[n(688)][n(2255)]=function(o){const x=n;var r,i;return(i=(r=this[x(2058)])===null||r===void 0?void 0:r[x(421)](o))!==null&&i!==void 0?i:Tr},t})(Jr),cl={now:function(){return Date.now()}},sl=(function(e){const n=c;rn(t,e);function t(o,x){return e.call(this)||this}return t[n(688)][n(821)]=function(o,x){return this},t})(wt),Fr={setInterval:function(e,n){const t=c;for(var o=[],x=2;x<arguments[t(1755)];x++)o[x-2]=arguments[x];return setInterval[t(746)](void 0,nx([e,n],ex(o)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},ll=(function(e){const n=c;rn(t,e);function t(o,x){const r=_0x51e5;var i=e[r(945)](this,o,x)||this;return i[r(1574)]=o,i.work=x,i.pending=!1,i}return t[n(688)][n(821)]=function(o,x){const r=n;var i;if(x===void 0&&(x=0),this[r(1555)])return this;this[r(1681)]=o;var a=this.id,d=this.scheduler;return a!=null&&(this.id=this[r(1061)](d,a,x)),this[r(1322)]=!0,this[r(1464)]=x,this.id=(i=this.id)!==null&&i!==void 0?i:this[r(539)](d,this.id,x),this},t[n(688)][n(539)]=function(o,x,r){const i=n;return r===void 0&&(r=0),Fr[i(625)](o[i(1828)][i(830)](o,this),r)},t.prototype[n(1061)]=function(o,x,r){const i=n;return r===void 0&&(r=0),r!=null&&this[i(1464)]===r&&this[i(1322)]===!1?x:(x!=null&&Fr[i(1863)](x),void 0)},t[n(688)].execute=function(o,x){const r=n;if(this[r(1555)])return new Error(r(1122));this[r(1322)]=!1;var i=this[r(686)](o,x);if(i)return i;this[r(1322)]===!1&&this.id!=null&&(this.id=this[r(1061)](this[r(1574)],this.id,null))},t.prototype[n(686)]=function(o,x){var r=!1,i;try{this.work(o)}catch(a){r=!0,i=a||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){const o=n;if(!this[o(1555)]){var x=this,r=x.id,i=x[o(1574)],a=i[o(1492)];this[o(2276)]=this[o(1681)]=this[o(1574)]=null,this[o(1322)]=!1,tx(a,this),r!=null&&(this.id=this[o(1061)](i,r,null)),this[o(1464)]=null,e[o(688)].unsubscribe[o(945)](this)}},t})(sl),_r=(function(){const e=c;function n(t,o){const x=_0x51e5;o===void 0&&(o=n[x(1207)]),this[x(1591)]=t,this[x(1207)]=o}return n[e(688)].schedule=function(t,o,x){const r=e;return o===void 0&&(o=0),new this[r(1591)](this,t)[r(821)](x,o)},n[e(1207)]=cl[e(1207)],n})(),dl=(function(e){const n=c;rn(t,e);function t(o,x){const r=_0x51e5;x===void 0&&(x=_r.now);var i=e[r(945)](this,o,x)||this;return i[r(1492)]=[],i[r(1997)]=!1,i}return t[n(688)][n(1828)]=function(o){const x=n;var r=this.actions;if(this._active){r.push(o);return}var i;this[x(1997)]=!0;do if(i=o[x(1040)](o.state,o.delay))break;while(o=r[x(1590)]());if(this._active=!1,i){for(;o=r[x(1590)]();)o[x(707)]();throw i}},t})(_r),ul=new dl(ll);function bl(e){return e&&t0(e[c(821)])}function fl(e){return e[e.length-1]}function hl(e){const n=c;return bl(fl(e))?e[n(1660)]():void 0}var $r=function(e){return e&&typeof e[c(1755)]=="number"&&typeof e!="function"};function ei(e){return t0(e?.[c(591)])}function ni(e){return t0(e[po])}function ti(e){const n=c;return Symbol[n(1063)]&&t0(e?.[Symbol[n(1063)]])}function xi(e){const n=c;return new TypeError(n(1243)+(e!==null&&typeof e===n(990)?n(2108):"'"+e+"'")+n(558))}function gl(){const e=c;return typeof Symbol!==e(1019)||!Symbol[e(2015)]?e(2239):Symbol.iterator}var oi=gl();function ri(e){return t0(e?.[oi])}function ii(e){return Js(this,arguments,function(){var t,o,x,r;return Hr(this,function(i){const a=_0x51e5;switch(i.label){case 0:t=e[a(2053)](),i[a(1772)]=1;case 1:i[a(1395)].push([1,,9,10]),i[a(1772)]=2;case 2:return[4,Hn(t.read())];case 3:return o=i[a(685)](),x=o[a(1256)],r=o[a(1318)],r?[4,Hn(void 0)]:[3,5];case 4:return[2,i[a(685)]()];case 5:return[4,Hn(x)];case 6:return[4,i.sent()];case 7:return i[a(685)](),[3,2];case 8:return[3,10];case 9:return t[a(574)](),[7];case 10:return[2]}})})}function ai(e){return t0(e?.getReader)}function wn(e){if(e instanceof L0)return e;if(e!=null){if(ni(e))return yl(e);if($r(e))return ml(e);if(ei(e))return vl(e);if(ti(e))return ci(e);if(ri(e))return wl(e);if(ai(e))return pl(e)}throw xi(e)}function yl(e){return new L0(function(n){const t=_0x51e5;var o=e[po]();if(t0(o[t(421)]))return o[t(421)](n);throw new TypeError(t(2090))})}function ml(e){return new L0(function(n){const t=_0x51e5;for(var o=0;o<e[t(1755)]&&!n[t(1555)];o++)n[t(599)](e[o]);n.complete()})}function vl(e){return new L0(function(n){const t=_0x51e5;e[t(591)](function(o){const x=t;!n[x(1555)]&&(n[x(599)](o),n[x(1238)]())},function(o){return n[t(1487)](o)}).then(null,Xr)})}function wl(e){return new L0(function(n){const t=_0x51e5;var o,x;try{for(var r=Vn(e),i=r.next();!i[t(1318)];i=r[t(599)]()){var a=i[t(1256)];if(n[t(599)](a),n[t(1555)])return}}catch(d){o={error:d}}finally{try{i&&!i[t(1318)]&&(x=r[t(1511)])&&x[t(945)](r)}finally{if(o)throw o[t(1487)]}}n[t(1238)]()})}function ci(e){return new L0(function(n){const t=_0x51e5;zl(e,n)[t(1483)](function(o){return n.error(o)})})}function pl(e){return ci(ii(e))}function zl(e,n){var t,o,x,r;return Rs(this,void 0,void 0,function(){var i,a;return Hr(this,function(d){const u=_0x51e5;switch(d[u(1772)]){case 0:d[u(1395)][u(573)]([0,5,6,11]),t=Qs(e),d[u(1772)]=1;case 1:return[4,t.next()];case 2:if(o=d.sent(),!!o.done)return[3,4];if(i=o.value,n[u(599)](i),n[u(1555)])return[2];d.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=d.sent(),x={error:a},[3,11];case 6:return d.trys[u(573)]([6,,9,10]),o&&!o[u(1318)]&&(r=t[u(1511)])?[4,r.call(t)]:[3,8];case 7:d[u(685)](),d[u(1772)]=8;case 8:return[3,10];case 9:if(x)throw x[u(1487)];return[7];case 10:return[7];case 11:return n[u(1238)](),[2]}})})}function an(e,n,t,o,x){const r=c;o===void 0&&(o=0),x===void 0&&(x=!1);var i=n[r(821)](function(){const a=r;t(),x?e[a(1536)](this[a(821)](null,o)):this[a(707)]()},o);if(e[r(1536)](i),!x)return i}function si(e,n){return n===void 0&&(n=0),mn(function(t,o){t[_0x51e5(421)](vn(o,function(r){return an(o,e,function(){return o.next(r)},n)},function(){return an(o,e,function(){return o[_0x51e5(1238)]()},n)},function(r){return an(o,e,function(){return o.error(r)},n)}))})}function li(e,n){return n===void 0&&(n=0),mn(function(t,o){const x=_0x51e5;o.add(e[x(821)](function(){return t[x(421)](o)},n))})}function Cl(e,n){const t=c;return wn(e)[t(1008)](li(n),si(n))}function Ml(e,n){return wn(e).pipe(li(n),si(n))}function Bl(e,n){return new L0(function(t){const o=_0x51e5;var x=0;return n[o(821)](function(){const r=o;x===e.length?t.complete():(t[r(599)](e[x++]),!t[r(1555)]&&this[r(821)]())})})}function Dl(e,n){return new L0(function(t){var o;return an(t,n,function(){o=e[oi](),an(t,n,function(){const x=_0x51e5;var r,i,a;try{r=o[x(599)](),i=r.value,a=r[x(1318)]}catch(d){t[x(1487)](d);return}a?t[x(1238)]():t[x(599)](i)},0,!0)}),function(){const x=_0x51e5;return t0(o?.return)&&o[x(1511)]()}})}function di(e,n){const t=c;if(!e)throw new Error(t(650));return new L0(function(o){an(o,n,function(){const x=_0x51e5;var r=e[Symbol[x(1063)]]();an(o,n,function(){const i=x;r[i(599)]()[i(591)](function(a){const d=i;a[d(1318)]?o[d(1238)]():o[d(599)](a.value)})},0,!0)})})}function Ll(e,n){return di(ii(e),n)}function Sl(e,n){if(e!=null){if(ni(e))return Cl(e,n);if($r(e))return Bl(e,n);if(ei(e))return Ml(e,n);if(ti(e))return di(e,n);if(ri(e))return Dl(e,n);if(ai(e))return Ll(e,n)}throw xi(e)}function rx(e,n){return n?Sl(e,n):wn(e)}function P0(){const e=c;for(var n=[],t=0;t<arguments[e(1755)];t++)n[t]=arguments[t];var o=hl(n);return rx(n,o)}function d0(e,n){var t=t0(e)?e:function(){return e},o=function(x){return x.error(t())};return new L0(o)}function Nl(e){return e instanceof Date&&!isNaN(e)}var kl=yo(function(e){return function(t){const o=_0x51e5;t===void 0&&(t=null),e(this),this.message=o(1108),this[o(1123)]=o(451),this.info=t}});function Il(e,n){const t=c;var o=Nl(e)?{first:e}:{each:e},x=o[t(1423)],r=o[t(2044)],i=o.with,a=i===void 0?Pl:i,d=o[t(1574)],u=d===void 0?ul:d,s=o[t(1098)],b=s===void 0?null:s;if(x==null&&r==null)throw new TypeError("No timeout provided.");return mn(function(g,h){const v=t;var f,w,M=null,y=0,m=function(C){w=an(h,u,function(){const z=_0x51e5;try{f.unsubscribe(),wn(a({meta:b,lastValue:M,seen:y}))[z(421)](h)}catch(P){h.error(P)}},C)};f=g[v(421)](vn(h,function(C){const z=v;w?.[z(707)](),y++,h[z(599)](M=C),r>0&&m(r)},void 0,void 0,function(){!w?.[v(1555)]&&w?.unsubscribe(),M=null})),!y&&m(x!=null?typeof x=="number"?x:+x-u.now():r)})}function Pl(e){throw new kl(e)}function ix(e,n){return mn(function(t,o){const x=_0x51e5;var r=0;t[x(421)](vn(o,function(i){o[x(599)](e.call(n,i,r++))}))})}function Al(e,n,t,o,x,r,i,a){var d=[],u=0,s=0,b=!1,g=function(){const f=_0x51e5;b&&!d[f(1755)]&&!u&&n[f(1238)]()},h=function(f){const w=_0x51e5;return u<o?v(f):d[w(573)](f)},v=function(f){u++;var w=!1;wn(t(f,s++)).subscribe(vn(n,function(M){n[_0x51e5(599)](M)},function(){w=!0},void 0,function(){if(w)try{u--;for(var M=function(){var y=d.shift();i||v(y)};d.length&&u<o;)M();g()}catch(y){n.error(y)}}))};return e.subscribe(vn(n,h,function(){b=!0,g()})),function(){}}function zo(e,n,t){const o=c;return t===void 0&&(t=1/0),t0(n)?zo(function(x,r){return ix(function(i,a){return n(x,i,r,a)})(wn(e(x,r)))},t):(typeof n===o(825)&&(t=n),mn(function(x,r){return Al(x,r,e,t)}))}function ax(e){return mn(function(n,t){const o=_0x51e5;var x=null,r=!1,i;x=n[o(421)](vn(t,void 0,void 0,function(a){const d=o;i=wn(e(a,ax(e)(n))),x?(x.unsubscribe(),x=null,i[d(421)](t)):r=!0})),r&&(x.unsubscribe(),x=null,i[o(421)](t))})}function jl(e,n,t){var o=t0(e)||n||t?{next:e,error:n,complete:t}:e;return o?mn(function(x,r){const i=_0x51e5;var a;(a=o[i(421)])===null||a===void 0||a.call(o);var d=!0;x[i(421)](vn(r,function(u){const s=i;var b;(b=o[s(599)])===null||b===void 0||b[s(945)](o,u),r[s(599)](u)},function(){const u=i;var s;d=!1,(s=o[u(1238)])===null||s===void 0||s[u(945)](o),r.complete()},function(u){const s=i;var b;d=!1,(b=o[s(1487)])===null||b===void 0||b[s(945)](o,u),r[s(1487)](u)},function(){const u=i;var s,b;d&&((s=o.unsubscribe)===null||s===void 0||s[u(945)](o)),(b=o.finalize)===null||b===void 0||b[u(945)](o)}))}):Zr}function Co(e){return encodeURIComponent((e||"")[c(982)]()||"__default__")}function Yl(e){const n=c;return e[n(1435)]===n(1630)?e[n(831)]+n(1670)+Co(e[n(843)]??""):e.bindNodeId+"::"+e.eventType}function ui(e,n){return e+":"+n}class Tn{static[c(481)];[c(1271)]=new Map;[c(630)]=new Map;[c(1608)]=new Map;[c(806)]=new Map;defaultRuntimeHandlers;constructor(){}static[c(1975)](){const n=c;return!Tn[n(481)]&&(Tn.instance=new Tn),Tn[n(481)]}[c(512)](n){this[c(1608)].set(n.id,n)}[c(2163)](n){const t=c;this[t(1608)][t(2117)](n)}getEventBlock(n){const t=c;return this[t(1608)][t(689)](n)}[c(1696)](n){this.defaultRuntimeHandlers=n}[c(849)](n){const t=c;if(!n)return;const o=this.defaultRuntimeHandlers;this[t(1499)]={dataRequest:{...o?.dataRequest,...n[t(583)]},external:{...o?.[t(1630)],...n[t(1630)]}}}[c(702)](n){const t=c,o=this[t(1499)];if(!(!o&&!n))return{dataRequest:{...o?.[t(583)],...n?.dataRequest},external:{...o?.external,...n?.[t(1630)]}}}disposeEventRootPipeline(n){const t=c,o=this[t(630)][t(689)](n.id);o&&(o.unsubscribe(),this.subscriptions[t(2117)](n.id)),this[t(1271)][t(2117)](n.id)}[c(690)](n){const t=c,o=Yl(n),x=this[t(806)][t(689)](o);x&&x.id!==n.id&&this[t(838)](x),this[t(806)][t(643)](o,n),!this[t(1271)][t(1308)](n.id)&&this[t(2070)](n)}unbindNodeEvent(n,t,o){const x=c;if(t===x(1630)){const d=n+"::ext::"+Co(o??""),u=this.nodeEventBindings.get(d);u&&(this[x(838)](u),this[x(806)].delete(d));return}const r=n+"::"+t,i=ui(n,t),a=this[x(806)][x(689)](r)??this.nodeEventBindings[x(689)](i);a&&(this[x(838)](a),this[x(806)].delete(r),this[x(806)][x(2117)](i))}unbindAllForNode(n){const t=c,o=[];this.nodeEventBindings[t(475)]((x,r)=>{const i=t;x.bindNodeId===n&&o[i(573)]({key:r,root:x})}),o[t(475)](({key:x,root:r})=>{const i=t;this[i(838)](r),this[i(806)].delete(x)})}[c(1883)](n){const t=c,o=[];return this[t(806)][t(475)](x=>{const r=t;x.bindNodeId===n&&o[r(573)](x)}),o}emit(n,t,o){const x=c,r=n+"::"+t,i=this[x(806)].get(r)??this[x(806)].get(ui(n,t));if(!i||!i.enabled)return P0({success:!0,result:null,path:[],duration:0});if(!this[x(1271)].get(i.id))return d0(()=>new Error("Event flow not initialized for "+r));const d=Date.now(),u={...o,executionPath:o[x(2084)]||[],runtimeHandlers:this[x(702)](o[x(1732)])};return this[x(1740)](i,u)[x(1008)](ix(s=>({success:!0,result:s,path:u.executionPath,duration:Date[x(1207)]()-d})),ax(s=>P0({success:!1,error:s[x(1118)]||x(2155),path:u[x(2084)],duration:Date[x(1207)]()-d})))}[c(1467)](n,t,o){const x=c,r=n+"::ext::"+Co(t),i=this[x(806)][x(689)](r);if(!i||!i[x(2201)])return P0({success:!0,result:null,path:[],duration:0});if(!this[x(1271)][x(689)](i.id))return d0(()=>new Error(x(1956)+r));const d=Date[x(1207)](),u={...o,executionPath:o[x(2084)]||[],runtimeHandlers:this.mergeRuntimeHandlers(o[x(1732)])};return this.executeEventFlow(i,u)[x(1008)](ix(s=>({success:!0,result:s,path:u.executionPath,duration:Date.now()-d})),ax(s=>P0({success:!1,error:s[x(1118)]||"Event flow execution failed",path:u[x(2084)],duration:Date[x(1207)]()-d})))}[c(2070)](n){const t=c,o=new Jr;this[t(1271)][t(643)](n.id,o)}executeEventFlow(n,t){const o=c,{nodes:x,edges:r}=n.flowData;if(x[o(1755)]===0)return P0(null);const i=x[o(1947)](a=>a.inputs[o(1755)]===0);return i[o(1755)]===0?d0(()=>new Error(o(627))):this[o(530)](i,x,r,t,{})}executeFlowNodes(n,t,o,x,r){const i=c;if(n[i(1755)]===0)return P0(r);const a=n[i(1226)](d=>this[i(881)](d,x,r)[i(1008)](jl(u=>{const s=i;r[d.id]=u,x[s(2084)][s(573)](d.id)})));return rx(a)[i(1008)](zo(d=>d,1),ix(()=>{const d=i,u=new Set;return n[d(475)](b=>{const g=d;b[g(1780)][g(475)](h=>{const v=g,f=t[v(517)](w=>w.id===h);f&&f.inputs.every(M=>r[M]!==void 0)&&u[v(1536)](h)})}),t[d(1947)](b=>u[d(1308)](b.id))}),zo(d=>{const u=i;return d[u(1755)]>0?this[u(530)](d,t,o,x,r):P0(r)}),Il(3e4),ax(d=>(console.error(i(417),d),d0(()=>d))))}resolveFlowEventBlock(n){const t=c;return this[t(1608)][t(689)](n[t(524)])??n[t(1083)][t(1476)]}[c(1084)](n,t,o){const x=c;return n[x(1009)](/\{\{\s*([^}]+?)\s*\}\}/g,(r,i)=>{const a=x,d=String(i)[a(982)]();if(d[a(1438)]("$")){const s=this[a(1342)](o,d[a(845)](1));return s==null?"":String(s)}const u=t[d];return u==null?"":String(u)})}[c(828)](n,t,o){const x=c,r=n[x(729)];if(!r)return d0(()=>new Error("内置动作未选择类型"));if(r===x(1455)){const i=n[x(1311)]??{},a=String(i.content??""),d=i[x(1741)]??x(1278),u=i.duration,s=this[x(1084)](a,o,t);if(!s[x(982)]())return d0(()=>new Error(x(483)));try{const b={type:d,content:s};if(u!=null&&u!==""){const g=Number(u);!Number.isNaN(g)&&(b[x(1163)]=g)}return p.message[x(1432)](b),P0({ok:!0,builtinId:r,content:s,level:d})}catch(b){return d0(()=>b)}}if(r==="switchCanvas"){const i=n.builtinConfig??{},a=String(i.targetCanvasId??"")[x(982)]();if(!a)return d0(()=>new Error(x(742)));const d=t[x(1705)]??t[x(913)];if(!d)return d0(()=>new Error(x(1599)));try{return d(a),P0({ok:!0,builtinId:r,targetCanvasId:a,withHistory:!!t.jumpToCanvas})}catch(u){return d0(()=>u)}}return d0(()=>new Error("未知内置动作: "+String(r)))}invokeRuntimeHandler(n,t,o){try{const x=n(t,o);return x instanceof Promise?rx(x):P0(x)}catch(x){return d0(()=>x)}}executeSingleFlowNode(n,t,o){const x=c,r=this[x(1702)](n);if(!r)return d0(()=>new Error(x(824)+n.eventBlockId));const i=this[x(560)](n,t,o),a=r.executorType??x(1080);if(a===x(583)){const d=(r[x(2198)]||"")[x(982)]();if(!d)return d0(()=>new Error(x(2077)));const u=t[x(1732)]?.[x(583)]?.[d];return u?this[x(432)](u,t,i):d0(()=>new Error("未注册 dataRequest 处理器: "+d))}if(a===x(1630)){const d=(r[x(1769)]||"")[x(982)]();if(!d)return d0(()=>new Error("事件块未配置 externalHandlerKey"));const u=t[x(1732)]?.[x(1630)]?.[d];return u?this[x(432)](u,t,i):d0(()=>new Error(x(744)+d))}if(a===x(477))return this[x(828)](r,t,i);try{const d=new Function(x(2099),x(1607),x(2225),r[x(2167)]),u=d(t[x(1911)],t,i);return u instanceof Promise?rx(u):P0(u)}catch(d){return d0(()=>d)}}[c(560)](n,t,o){const x=c,r={$event:t[x(743)],$data:t[x(1083)],$node:t[x(1911)]},{inputMapping:i}=n[x(1083)];return i&&Object[x(1764)](i).forEach(([a,d])=>{const u=x;if(d[u(1438)](u(1489))){const s=d[u(1009)](u(1489),"");r[a]=o[s]}else if(d[u(1438)]("$")){const s=d[u(845)](1);r[a]=this[u(1342)](t,s)}else r[a]=d}),r}[c(1342)](n,t){const o=c;return t[o(1179)](".")[o(1872)]((x,r)=>{if(x!==null&&typeof x===o(990)&&r in x)return x[r]},n)}[c(1960)](){const n=c;this[n(630)][n(475)](t=>t.unsubscribe()),this[n(630)][n(1832)](),this[n(1271)][n(1832)](),this.nodeEventBindings[n(1832)]()}}const qn=Tn[c(1975)](),bi=({node:e,children:n,runtimeHandlers:t,flowContextData:o})=>{const x=c,{eventFlow:r,switchCanvas:i,jumpToCanvas:a}=s0(),d=D[x(1527)](null),u=D[x(1507)](()=>{const b=x;return r[b(802)][b(1947)](g=>g[b(831)]===e.id&&g[b(2201)])},[r.eventRoots,e.id]),s=D[x(1507)](b=>g=>{const h=_0x51e5,v=u()[h(1947)](w=>w[h(1435)]===b);if(v[h(1755)]===0)return;b!==h(820)&&b!=="mouseLeave"&&g.preventDefault(),g[h(1199)]();const f=o&&typeof o===h(990)?{...o}:{};v[h(475)](w=>{const M=h;qn[M(876)](e.id,b,{triggerNode:e,originalEvent:g,data:f,runtimeHandlers:t,switchCanvas:i,jumpToCanvas:a})[M(421)]({next:y=>{const m=M;!y[m(996)]&&console[m(1487)](m(649),y[m(1487)])},error:y=>{const m=M;console[m(1487)](m(2138),y)}})})},[u,e,t,o]);return D[x(1646)](()=>{const b=x;return u()[b(475)](h=>{qn[b(690)](h)}),()=>{qn[b(1208)](e.id)}},[u,e.id]),D[x(1646)](()=>{const b=x,g=d[b(616)];if(!g)return;const h={click:s("click"),mousedown:s(b(1320)),mouseup:s("mouseUp"),dblclick:s(b(926)),mouseover:s(b(820)),mouseleave:s(b(813)),mouseenter:s("mouseEnter"),contextmenu:s(b(435))};return Object[b(1764)](h)[b(475)](([v,f])=>{g[b(1046)](v,f,!0)}),()=>{Object[b(1764)](h).forEach(([f,w])=>{g.removeEventListener(f,w,!0)})}},[s]),D[x(1484)](n,{ref:b=>{const g=x;d[g(616)]=b;const h=n[g(801)];typeof h===g(1019)?h(b):h&&g(616)in h&&(h[g(616)]=b)}})},{Text:fi}=p[c(965)],hi=(e,n)=>{const t=c;if(!n||!e)return{value:void 0};if(Array[t(1996)](e)){const o=e.find(x=>x[t(1847)]===n);if(o)return{value:o[t(1256)],unit:o.unit}}else if(typeof e===t(990)){const o=n.split(".");let x=e;for(const r of o){if(x===null||typeof x!==t(990))return{value:void 0};x=x[r]}if(x!==void 0)return{value:x,unit:e[t(1304)]}}return{value:void 0}};function El(e){return Array[c(1996)](e)}const Ul=(e,n,t)=>{const o=c,x=e[o(1654)]||{},{valueSourceCode:r,boundDatasetId:i,boundDatasetBindCode:a,boundDatasetBindValue:d}=x;if(!r)return{value:void 0};if(i){const u=n.find(s=>s.id===i);if(u){let s;El(u[o(1673)])?a!=null&&d!=null?s=u.sample[o(517)](g=>g[a]===d)||{}:s={}:s=u[o(1673)];const b=t&&typeof t=="object"?{...s,...t}:s;return hi(b,r)}}return hi(t,r)},Gl=(e,n)=>{const t=c;if(e==null||e==="")return"";if(n===-1)return String(e);const o=Number(e);return isNaN(o)?String(e):o[t(1874)](n??2)},Ol=(e,n,t,o,x)=>{const r=c;switch(e.type){case"IMAGE":const i=e,a=i[r(973)],d=i.fillColor;let u=i.src;return d&&u&&u[r(1230)](r(1785))&&(e[r(1123)]==="矩形"?u=r(1381)+encodeURIComponent(r(1104)+d+r(1538)):e.name==="圆形"?u=r(1381)+encodeURIComponent(r(1417)+d+r(2079)):e[r(1123)]==="圆角矩形"&&(u=r(1381)+encodeURIComponent(r(1104)+d+r(1117)))),l[r(1283)](r(737),{className:r(2130),style:{backgroundColor:a},children:u?l[r(1283)](r(576),{src:u,alt:e[r(1123)],style:{width:r(1672),height:r(1672),objectFit:"contain"}}):l[r(1283)](r(737),{className:r(940),children:l[r(1283)](r(1559),{className:r(531),children:r(969)})})});case"TEXT":const s=e,{label:b,value:g,valueSourceCode:h,unit:v,decimals:f,labelStyle:w,valueStyle:M,customStyle:y}=s.content||{},{value:m,unit:C}=h?Ul(s,x||[],n):{value:void 0,unit:void 0},z=m!==void 0?m:g,P=Gl(z,f),E=v||C||"";return l[r(948)](r(737),{className:"w-full h-full flex flex-col justify-center gap-1",style:{...y},children:[b&&l.jsx(fi,{style:{fontSize:14,fontWeight:"bold",color:r(516),textAlign:r(2281),...w},children:b}),P&&l.jsxs(fi,{style:{fontSize:14,color:r(1285),textAlign:"left",...M},children:[P,E?" "+E:""]})]});case r(1044):const V=e,{thickness:q=2,color:U=r(1192),dashed:W=!1,lineType:H=r(W?1870:1091),lineWeight:G=q,startX:T=0,startY:L=0,endX:S=100,endY:B=0}=V.config||{},j=_=>{const F=r,ee=Math[F(656)](G,1);switch(_){case"solid":return"";case F(1870):return ee*8+","+ee*4;case F(805):return ee*12+","+ee*3+","+ee*2+","+ee*3;case F(637):return ee*12+","+ee*3+","+ee*2+","+ee*3+","+ee*2+","+ee*3;case F(1856):return ee+","+ee*3;case F(1366):return ee*8+","+ee*3+","+ee+","+ee*3;default:return""}},A=j(H),I=t?"#1890ff":U;return l[r(1283)](r(737),{className:r(792),style:{overflow:r(799)},children:l.jsxs(r(1547),{className:r(1345),width:r(1672),height:r(1672),style:{overflow:"visible",pointerEvents:"none"},children:[l[r(1283)](r(1233),{x1:T,y1:L,x2:S,y2:B,stroke:"transparent",strokeWidth:Math.max(G,10),strokeLinecap:r(909),strokeLinejoin:"round",style:{pointerEvents:r(712),cursor:r(968)}}),l[r(1283)](r(1233),{x1:T,y1:L,x2:S,y2:B,stroke:I,strokeWidth:G,strokeDasharray:A,strokeLinecap:"round",strokeLinejoin:r(909),style:{pointerEvents:r(1501)}})]})});case r(2165):const J=e;return J[r(693)]?J.render({}):l[r(1283)](r(737),{className:r(418),children:l[r(1283)](r(1559),{className:r(531),children:"自定义组件"})});default:return l[r(1283)]("div",{className:r(418),children:l[r(1283)](r(1559),{className:r(531),children:r(1954)})})}},Vl=({node:e,isSelected:n=!1,onClick:t,onMouseDown:o,data:x,onUpdateNode:r,scale:i=1,enableEventFlow:a=!1,eventFlowData:d,readonly:u=!1})=>{const s=c,{normalStyle:b,controlInfo:g}=e,{isClickable:h,isDraggable:v,isResizable:f}=g,w=e[s(1641)],M=s0(te=>te[s(1761)]),y=s0(te=>te[s(1759)]),m=s0(te=>te[s(2145)][s(802)]),C=D[s(2027)](()=>{const te=s;return a?m[te(1321)](ze=>ze[te(831)]===e.id&&ze[te(2201)]&&(ze.eventType===te(2019)||ze[te(1435)]===te(1320)||ze.eventType===te(789)||ze[te(1435)]===te(926))):!1},[m,e.id,a]),z=D[s(1527)](t);D.useEffect(()=>{const te=s;z[te(616)]=t},[t]);const[P,E]=D[s(1595)](null),V=D[s(1527)](null),q=D[s(1527)](null),U=D[s(1527)](null),W=D[s(1527)](null),H=D[s(1527)](null),[G,T]=D[s(1595)](null),L=D[s(1527)](null),S=D[s(1527)](null),B=D[s(2027)](()=>{const te=s,ze=e[te(1641)][te(1016)];if(ze[te(1755)]===0)return;const we=jr(ze,x,M);return we||ze[0]},[e[s(1641)].statusList,x,M]),j=D.useRef(e.contentInfo[s(1532)]);D.useEffect(()=>{const te=s;j.current=e[te(1641)][te(1532)]},[e.id]),D[s(1646)](()=>{const te=s,ze=B?.id;ze!==void 0&&j.current!==ze&&(j.current=ze,y(e.id,{contentInfo:{...e[te(1641)],currentStatusId:ze}}))},[B?.id,e.id,y]);const A=B?.[s(2209)],I=D[s(2027)](()=>{const te=s;if(!B)return;const ze=B.boundDatasetId!=null?String(B[te(1905)])[te(982)]():"",we=ze?M[te(517)](Pe=>Pe.id===ze):void 0;if(!we)return;const ve=lo(we,x,B[te(736)],B[te(1539)]),ne=ve.healthGradeName;return typeof ne===te(2150)?ne[te(982)]():void 0},[B,x,M]),J=u||a,_=D[s(2027)](()=>{const te=s;if(!J||!I)return;const ze=(I===te(1088)||I==="重点关注")&&B?.[te(1434)]?.type==="blink";switch(I){case"优秀":case"良好":return{border:te(1501),color:""};case te(1088):case"重点关注":{const we=I===te(1088)?te(1386):te(1972);return ze?{border:te(1908)+we,color:we}:{border:te(1501),color:""}}default:return}},[I,J,B?.animation?.type]),F=A?.[s(1592)]===s(1044),ee=F?A[s(1633)]:null,re=b[s(1816)]??1,ue=(b[s(434)]||100)*re,pe=(b[s(725)]||100)*re,Me=D[s(1507)](()=>{const te=s,ze=H[te(616)]?.[te(436)]('[data-canvas="true"]');if(!ze)return i;const we=ze[te(1596)](),ve=parseFloat(ze[te(777)].width);return ve?we[te(434)]/ve:i},[i]),de=D.useCallback((te,ze)=>{const we=s;te[we(1199)](),te[we(521)]();const ve=ee?.[we(468)]||0,ne=ee?.startY||0,Pe=ee?.[we(1042)]||0,Te=ee?.[we(1316)]||0,Ge=b.x||0,qe=b.y||0,Xe=Math[we(656)]((ee?.lineWeight||ee?.[we(911)]||2)*2,4),Ke=Math[we(1050)](ve,Pe),Ue=Math[we(1050)](ne,Te),Oe=Math[we(656)](ve,Pe),a0=Math.max(ne,Te),Fe=Math[we(656)](Oe-Ke,Xe),e0=Math[we(656)](a0-Ue,Xe);V[we(616)]={mouseX:te[we(2233)],mouseY:te[we(1659)],startX:ve,startY:ne,endX:Pe,endY:Te,nodeX:Ge,nodeY:qe};const n0=Math[we(1050)](ve,Pe),x0=Math[we(1050)](ne,Te);U[we(616)]={nodeX:Ge+n0,nodeY:qe+x0,width:Fe,height:e0,startX:ve-n0,startY:ne-x0,endX:Pe-n0,endY:Te-x0},q[we(616)]=B||null,E(ze)},[ee,b.x,b.y,B]);D[s(1646)](()=>{const te=s;if(!P||!F||!ee||!r)return;const ze=ve=>{const ne=_0x51e5,Pe=V[ne(616)];if(!Pe||!H.current)return;const Te=Me(),Ge=(ve[ne(2233)]-Pe[ne(1486)])/Te,qe=(ve.clientY-Pe.mouseY)/Te;let Xe=Pe[ne(468)],Ke=Pe[ne(642)],Ue=Pe.endX,Oe=Pe[ne(1316)],a0=Pe.nodeX,Fe=Pe[ne(1844)];P===ne(1635)?(Xe=Pe[ne(468)]+Ge,Ke=Pe.startY+qe,Xe<0&&(a0=Pe[ne(553)]+Xe,Ue=Pe[ne(1042)]-Xe,Xe=0),Ke<0&&(Fe=Pe.nodeY+Ke,Oe=Pe[ne(1316)]-Ke,Ke=0)):(Ue=Pe[ne(1042)]+Ge,Oe=Pe[ne(1316)]+qe,Ue<0&&(a0=Pe[ne(553)]+Ue,Xe=Pe[ne(468)]-Ue,Ue=0),Oe<0&&(Fe=Pe.nodeY+Oe,Ke=Pe[ne(642)]-Oe,Oe=0));const e0=Math[ne(656)]((ee[ne(2122)]||2)*2,4),n0=Math[ne(1050)](Xe,Ue),x0=Math[ne(1050)](Ke,Oe),X0=Math[ne(656)](Xe,Ue),G0=Math[ne(656)](Ke,Oe),S0=he(a0+n0),u0=he(Fe+x0),v0=he(Xe-n0),l0=he(Ke-x0),B0=he(Ue-n0),N0=he(Oe-x0),bn=Math[ne(909)](Math[ne(656)](X0-n0,e0)),_0=Math[ne(909)](Math[ne(656)](G0-x0,e0));U.current={nodeX:S0,nodeY:u0,width:bn,height:_0,startX:v0,startY:l0,endX:B0,endY:N0};const w0=H[ne(616)];w0[ne(777)].left=S0+"px",w0[ne(777)].top=u0+"px",w0.style.width=bn+"px",w0[ne(777)][ne(725)]=_0+"px",w0.querySelectorAll("svg line").forEach(fn=>{const kn=ne;fn[kn(1907)]("x1",String(v0)),fn[kn(1907)]("y1",String(l0)),fn.setAttribute("x2",String(B0)),fn[kn(1907)]("y2",String(N0))});const $0=w0.querySelector(ne(2039)),Nn=w0[ne(2204)](ne(1704));$0&&($0[ne(777)][ne(2281)]=v0-6+"px",$0.style[ne(1727)]=l0-6+"px"),Nn&&(Nn.style[ne(2281)]=B0-6+"px",Nn.style.top=N0-6+"px")},we=()=>{const ve=_0x51e5,ne=U[ve(616)];if(!ne||!r){E(null),V[ve(616)]=null,U.current=null,q[ve(616)]=null;return}const Pe=s0[ve(2285)]()[ve(1349)][ve(517)](Ue=>Ue.id===e.id),Te=Pe?.[ve(1641)].statusList??e[ve(1641)][ve(1016)],Ge=q[ve(616)],qe=Ge?.id??Te[ve(517)](Ue=>Ue[ve(2209)][ve(1592)]===ve(1044))?.id,Xe=Te.map(Ue=>{const Oe=ve;if(Ue[Oe(2209)][Oe(1592)]!==Oe(1044)||Ue.id!==qe)return Ue;const a0=Ue[Oe(2209)];return{...Ue,material:{...a0,config:{...a0.config,startX:he(ne[Oe(468)]),startY:he(ne[Oe(642)]),endX:he(ne.endX),endY:he(ne.endY)}}}}),Ke=Pe?.[ve(1641)]??w;r(e.id,{normalStyle:{x:he(ne[ve(553)]),y:he(ne[ve(1844)]),width:Math.round(ne.width),height:Math[ve(909)](ne.height)},contentInfo:{...Ke,statusList:Xe}}),E(null),V[ve(616)]=null,U[ve(616)]=null,q[ve(616)]=null};return window[te(1046)]("mousemove",ze),window[te(1046)](te(1720),we),()=>{const ve=te;window.removeEventListener(ve(1205),ze),window[ve(1369)](ve(1720),we)}},[P,F,ee,e.id,b,w,e.contentInfo[s(1016)],r,Me]),D[s(1646)](()=>{const te=s;if(!G||!r)return;const ze=ve=>{const ne=_0x51e5;if(!H[ne(616)])return;const Pe=Me(),Te=(ve.clientX-G[ne(468)])/Pe,Ge=(ve.clientY-G[ne(642)])/Pe,qe=G[ne(1100)],Xe=qe*Math.PI/180,Ke=Math[ne(983)](Xe),Ue=Math.sin(Xe),Oe=Te*Ke+Ge*Ue,a0=-Te*Ue+Ge*Ke;let Fe=G[ne(2221)],e0=G[ne(1181)],n0=G[ne(963)],x0=G[ne(1519)];switch(G[ne(1172)]){case"se":Fe=Math.max(20,G.startWidth+Oe),e0=Math[ne(656)](20,G[ne(1181)]+a0);break;case"sw":Fe=Math[ne(656)](20,G[ne(2221)]-Oe),e0=Math[ne(656)](20,G[ne(1181)]+a0),n0=G.startNodeX+(G[ne(2221)]-Fe);break;case"ne":Fe=Math.max(20,G[ne(2221)]+Oe),e0=Math[ne(656)](20,G[ne(1181)]-a0),x0=G[ne(1519)]+(G.startHeight-e0);break;case"nw":Fe=Math[ne(656)](20,G[ne(2221)]-Oe),e0=Math[ne(656)](20,G.startHeight-a0),n0=G[ne(963)]+(G.startWidth-Fe),x0=G[ne(1519)]+(G[ne(1181)]-e0);break}if(qe!==0){let G0=0,S0=0,u0=0,v0=0;switch(G.corner){case"se":G0=0,S0=0,u0=0,v0=0;break;case"sw":G0=G[ne(2221)],S0=0,u0=Fe,v0=0;break;case"ne":G0=0,S0=G[ne(1181)],u0=0,v0=e0;break;case"nw":G0=G.startWidth,S0=G[ne(1181)],u0=Fe,v0=e0;break}const l0=G0-G[ne(2221)]/2,B0=S0-G.startHeight/2,N0=l0*Ke-B0*Ue,bn=l0*Ue+B0*Ke,_0=u0-Fe/2,w0=v0-e0/2,ot=_0*Ke-w0*Ue,$0=_0*Ue+w0*Ke;n0=G[ne(963)]+G[ne(2221)]/2-Fe/2+N0-ot,x0=G[ne(1519)]+G[ne(1181)]/2-e0/2+bn-$0}W[ne(616)]={x:he(n0),y:he(x0),width:Math[ne(909)](Fe),height:Math[ne(909)](e0)};const X0=H[ne(616)];X0.style.left=he(n0)+"px",X0[ne(777)][ne(1727)]=he(x0)+"px",X0.style.width=Math[ne(909)](Fe)+"px",X0[ne(777)][ne(725)]=Math.round(e0)+"px"},we=()=>{const ve=_0x51e5,ne=W[ve(616)];ne&&r(e.id,{normalStyle:{...b,x:he(ne.x),y:he(ne.y),width:Math[ve(909)](ne[ve(434)]),height:Math.round(ne[ve(725)])}}),T(null),W[ve(616)]=null};return window.addEventListener("mousemove",ze),window[te(1046)]("mouseup",we),()=>{const ve=te;window[ve(1369)]("mousemove",ze),window[ve(1369)]("mouseup",we)}},[G,r,e.id,b,Me]);const $=D[s(1507)]((te,ze)=>{const we=s;te[we(1199)](),te[we(521)](),T({corner:ze,startX:te[we(2233)],startY:te.clientY,startWidth:b[we(434)]||100,startHeight:b[we(725)]||100,startNodeX:b.x||0,startNodeY:b.y||0,startRotate:b[we(740)]||0})},[b[s(434)],b[s(725)],b.x,b.y,b.rotate]),be=D[s(1507)](te=>{const ze=s;te.stopPropagation(),te[ze(521)]();const we=H[ze(616)]?.getBoundingClientRect();if(!we)return;L[ze(616)]={startX:te[ze(2233)],startY:te.clientY,startAngle:b.rotate||0,centerX:we[ze(2281)]+we.width/2,centerY:we.top+we[ze(725)]/2};const ve=b.transform||"",ne=Ge=>{const qe=ze;H[qe(616)]&&(H[qe(616)][qe(777)].transform=ve?qe(1597)+Ge+"deg) "+ve:"rotate("+Ge+"deg)")};ne(b[ze(740)]||0);const Pe=Ge=>{const qe=ze;if(!L[qe(616)])return;const Xe=Ge.clientX-L[qe(616)].centerX,Ke=Ge[qe(1659)]-L[qe(616)].centerY;let Oe=(Math.atan2(Ke,Xe)*(180/Math.PI)+90)%360;Oe<0&&(Oe+=360),S[qe(616)]=Oe,ne(Oe)},Te=()=>{const Ge=ze,qe=S[Ge(616)]??L[Ge(616)].startAngle;if(S[Ge(616)]=null,L[Ge(616)]=null,r){const Xe=e[Ge(674)];r(e.id,{normalStyle:{...Xe,rotate:Math[Ge(909)](qe)}})}H[Ge(616)]?.[Ge(777)][Ge(1839)](Ge(1713)),window[Ge(1369)](Ge(1205),Pe),window.removeEventListener(Ge(1720),Te)};window.addEventListener(ze(1205),Pe),window.addEventListener(ze(1720),Te)},[b[s(740)],b[s(1713)],r,e.id,e.normalStyle]),ge=e[s(1592)]===s(504),Y=b.transform||"",X=b[s(740)]||0,ce=u||a,ae=ce?B?.[s(1434)]:void 0,Le=(I===s(1088)||I===s(1474))&&ae?.[s(1592)]===s(1068),Be=ae?.[s(1163)]??1e3,Ae=e.id[s(1009)](/[^a-zA-Z0-9]/g,"");D.useLayoutEffect(()=>{const te=s,ze=te(2040)+Ae,we=te(607)+ze,ve=document[te(422)](we);if(ve&&ve[te(2193)](),!Le||!_?.[te(486)])return()=>{const Pe=te,Te=document[Pe(422)](we);Te&&Te.remove()};const ne=document.createElement(te(777));return ne.id=we,ne[te(1202)]=te(659)+ze+te(1564)+_[te(486)]+"; } 100% { border-color: transparent; } }",document[te(1334)][te(1518)](ne),()=>{const Pe=te,Te=document[Pe(422)](we);Te&&Te.remove()}},[Le,_?.[s(486)],Ae]);const He={position:"absolute",left:b.x||0,top:b.y||0,width:ue,height:pe,background:ge?"transparent":b.background||s(1e3),backgroundImage:ge?void 0:b[s(2115)]?s(1355)+b[s(2115)]+")":void 0,backgroundSize:s(899),backgroundPosition:s(805),padding:Array[s(1996)](b[s(653)])?b[s(653)][s(1579)](s(561))+"px":b.padding,margin:Array[s(1996)](b[s(1375)])?b[s(1375)][s(1579)](s(561))+"px":b[s(1375)],borderRadius:ge?void 0:b[s(1990)],border:F||ge?"none":n?s(1613):_?.[s(2286)]??b[s(2286)]??s(798),outline:n&&ge&&!F?s(1613):void 0,pointerEvents:s(527),opacity:b.opacity??1,transform:F?Y||void 0:Y?s(1597)+X+s(1622)+Y:"rotate("+X+"deg)",transformOrigin:s(2142),zIndex:n?1e3:b[s(667)]??1,cursor:v&&!P&&!C?s(2055):h||C?"pointer":s(1465),animation:Le?s(2040)+Ae+" "+Be+s(2157):void 0,boxSizing:s(1139),overflow:s(n||F||ge?799:2103)},Ie={width:"100%",height:"100%",position:s(1730),transformOrigin:"center center",...b[s(1822)]||b[s(1676)]?{transform:s(1833)+(b[s(1822)]?-1:1)+") scaleY("+(b[s(1676)]?-1:1)+")"}:{}},h0=ee?{x:ee.startX||0,y:ee[s(642)]||0}:{x:0,y:0},Se=ee?{x:ee.endX||0,y:ee[s(1316)]||0}:{x:0,y:0},Qe=l[s(948)](s(737),{ref:H,"data-node-id":e.id,style:He,onClick:te=>{const ze=s;console.log("NodeRenderer onClick",e.id,ze(1561),h);const we=z[ze(616)];h&&we&&!P&&!G&&!L[ze(616)]&&(te.stopPropagation(),we(te))},onMouseDown:te=>{v&&o&&!P&&o(te)},children:[n&&!F&&l[s(948)](l[s(443)],{children:[!ge&&l[s(948)](l[s(443)],{children:[l[s(1283)]("div",{className:s(2197),style:{zIndex:9999,pointerEvents:s(527),cursor:s(476),marginTop:"-6px",marginLeft:s(1756)},onMouseDown:te=>$(te,"nw"),title:s(1962)}),l[s(1283)](s(737),{className:s(1953),style:{zIndex:9999,pointerEvents:s(527),cursor:s(1458),marginTop:"-6px",marginRight:s(1756)},onMouseDown:te=>$(te,"ne"),title:"拖拽调整大小"}),l.jsx(s(737),{className:"absolute bottom-0 left-0 w-3 h-3 bg-blue-500 border-2 border-white rounded-full",style:{zIndex:9999,pointerEvents:"auto",cursor:"sw-resize",marginBottom:s(1756),marginLeft:s(1756)},onMouseDown:te=>$(te,"sw"),title:s(1962)}),l[s(1283)](s(737),{className:"absolute bottom-0 right-0 w-3 h-3 bg-blue-500 border-2 border-white rounded-full",style:{zIndex:9999,pointerEvents:s(527),cursor:"se-resize",marginBottom:s(1756),marginRight:s(1756)},onMouseDown:te=>$(te,"se"),title:s(1962)})]}),l[s(1283)](s(737),{className:s(1290),style:{zIndex:9999,pointerEvents:"auto",cursor:"grab",marginTop:s(1237),transform:"translateX(-50%)",boxShadow:"0 0 4px rgba(0,0,0,0.3)"},onMouseDown:te=>be(te),title:s(646)}),l[s(1283)]("div",{className:s(1335),style:{zIndex:9998,pointerEvents:"none",marginTop:"-14px",transform:"translateX(-50%)"}}),l[s(948)](s(737),{className:"absolute -top-6 left-0 bg-blue-500 text-white text-xs px-2 py-0.5 rounded whitespace-nowrap",children:[e.name," ",B?"("+B[s(1123)]+")":""]})]}),n&&F&&ee&&r&&l[s(948)](l[s(443)],{children:[l[s(1283)](s(737),{"data-handle":s(1635),className:s(1488),style:{left:h0.x-6,top:h0.y-6,boxShadow:s(1550)},onMouseDown:te=>de(te,"start"),title:s(2096)}),l.jsx("div",{"data-handle":s(1086),className:"absolute w-3 h-3 bg-blue-500 border-2 border-white rounded-full cursor-move z-50",style:{left:Se.x-6,top:Se.y-6,boxShadow:"0 0 4px rgba(0,0,0,0.3)"},onMouseDown:te=>de(te,"end"),title:s(683)}),l[s(1283)](s(737),{className:s(1054),children:e[s(1123)]})]}),l[s(948)](s(737),{style:F?void 0:Ie,className:F?s(792):void 0,children:[l[s(1283)](s(737),{className:s(792),children:A?l[s(1283)](s(737),{className:s(1891),children:Ol(A,x,n,e,M)}):ge?null:l.jsx(s(737),{className:s(934),children:"无状态"})}),e[s(1592)]===s(504)&&e.children&&l[s(1283)](s(737),{className:"absolute inset-0 pointer-events-none",children:e[s(795)][s(1226)](te=>l[s(1283)](s(737),{className:s(1027),children:l.jsx(Mo,{node:te,isSelected:!1,data:x,onUpdateNode:r,scale:i,enableEventFlow:a,eventFlowData:d,readonly:u})},te.id))})]})]});return a?l[s(1283)](bi,{node:e,flowContextData:d,children:Qe}):Qe},Mo=D[c(1221)](Vl,(e,n)=>{const t=c,o=e[t(2099)],x=n[t(2099)],r=o.id===x.id&&o[t(674)].x===x[t(674)].x&&o[t(674)].y===x[t(674)].y&&o[t(674)][t(434)]===x[t(674)][t(434)]&&o[t(674)][t(725)]===x[t(674)].height&&o[t(674)][t(740)]===x.normalStyle[t(740)]&&o[t(674)].flipX===x[t(674)][t(1822)]&&o[t(674)].flipY===x[t(674)][t(1676)],i=o[t(1641)]===x.contentInfo,a=JSON[t(1153)](e[t(534)]??null)===JSON.stringify(n.eventFlowData??null),d=e[t(1161)]===n.isSelected&&e.scale===n.scale&&e[t(1354)]===n[t(1354)]&&e[t(2126)]===n.readonly&&a,u=h=>{const v=t,f=[];return h[v(1641)]?.[v(1016)]?.[v(475)](w=>{const M=v;if(w.material?.[M(1592)]===M(1044)){const y=w.material[M(1633)];f[M(573)]({statusId:w.id,startX:y?.[M(468)]??0,startY:y?.startY??0,endX:y?.[M(1042)]??100,endY:y?.endY??0})}}),f},s=u(o),b=u(x);let g=!0;if(s[t(1755)]!==b[t(1755)])g=!1;else for(let h=0;h<s[t(1755)];h++){const v=s[h],f=b[t(517)](w=>w[t(1750)]===v.statusId);if(!f||v.startX!==f.startX||v.startY!==f.startY||v[t(1042)]!==f[t(1042)]||v[t(1316)]!==f.endY){g=!1;break}}return r&&i&&d&&g}),Hl=()=>{const e=c,{root:n,addSiblingGroup:t,removeSiblingGroup:o,updateSiblingGroup:x,addCanvasToSiblingGroup:r,removeCanvasFromSiblingGroup:i,moveCanvasInSiblingGroup:a,nextSiblingCanvas:d,prevSiblingCanvas:u,setActiveSiblingGroup:s}=s0(),b=n.activeSiblingGroupId??null,g=n.siblingGroups||[],[h,v]=D[e(1595)](g[0]?.id??null),f=D[e(2027)](()=>g[e(517)](U=>U.id===h)||null,[g,h]),[w,M]=D.useState(null),[y,m]=D[e(1595)](""),[C,z]=D[e(1595)](void 0),P=D[e(2027)](()=>{const U=e;return f?n[U(568)][U(1947)](W=>!f[U(1631)][U(1230)](W.id)):n[U(568)]},[n[e(568)],f]),E=D.useCallback(()=>{const U=t();v(U)},[t]),V=D[e(1507)](U=>{const W=e,H=y[W(982)]();if(!H){p[W(1118)][W(2102)](W(1731));return}x(U,{name:H}),M(null),m("")},[y,x]),q=D.useCallback(()=>{!f||!C||(r(f.id,C),z(void 0))},[f,C,r]);return l.jsxs(e(737),{className:e(2116),style:{minHeight:360},children:[l.jsxs(e(737),{className:e(1582),style:{minWidth:220},children:[l[e(948)]("div",{className:e(1502),children:[l[e(1283)](e(1559),{className:e(519),children:e(647)}),l[e(1283)](p.Button,{type:e(569),size:e(1021),icon:l[e(1283)](fe[e(2174)],{}),onClick:E,children:"新建"})]}),g[e(1755)]===0?l[e(1283)](p[e(1722)],{description:e(1440),image:p[e(1722)][e(594)],style:{marginTop:40}}):l[e(1283)](p[e(1280)],{size:e(1021),dataSource:g,renderItem:U=>{const W=e,H=U.id===h,G=w===U.id;return l.jsx(p[W(1280)][W(1251)],{onClick:()=>{G||v(U.id)},style:{cursor:W(968),background:H?"rgba(24,144,255,0.08)":void 0,padding:W(1102)},actions:[G?l[W(1283)](p.Button,{type:"link",size:"small",onClick:T=>{T[W(1199)](),V(U.id)},children:"保存"}):l[W(1283)](p[W(1337)],{title:W(2278),children:l.jsx(p[W(1302)],{type:"text",size:"small",icon:l[W(1283)](fe.EditOutlined,{}),onClick:T=>{T[W(1199)](),M(U.id),m(U.name)}})},W(1560)),l[W(1283)](p.Popconfirm,{title:"确认删除该同级关系组?",okText:"删除",cancelText:"取消",okButtonProps:{danger:!0},onConfirm:T=>{const L=W;if(T?.[L(1199)](),o(U.id),h===U.id){const S=g[L(1947)](B=>B.id!==U.id);v(S[0]?.id??null)}},onCancel:T=>T?.[W(1199)](),children:l[W(1283)](p[W(1302)],{type:"text",size:W(1021),danger:!0,icon:l[W(1283)](fe.DeleteOutlined,{}),onClick:T=>T[W(1199)]()})},W(2117))],children:G?l.jsx(p[W(1852)],{autoFocus:!0,size:W(1021),value:y,onChange:T=>m(T.target.value),onPressEnter:()=>V(U.id),onClick:T=>T[W(1199)](),style:{width:140}}):l[W(948)](W(1559),{className:"flex items-center gap-2",children:[l[W(1283)](W(1559),{style:{fontWeight:H?600:400},children:U[W(1123)]}),l.jsx(p.Tag,{color:W(564),children:U.canvasIds[W(1755)]}),b===U.id&&l[W(1283)](p.Tag,{color:W(1758),children:"浏览中"})]})})}})]}),l[e(1283)](e(737),{className:e(1582),style:{minWidth:280},children:f?l[e(948)](l[e(443)],{children:[l[e(948)](e(737),{className:e(1502),children:[l[e(1283)](e(1559),{className:e(519),children:e(1991)}),l[e(948)](p.Space,{size:e(1021),children:[b===f.id?l[e(1283)](p[e(1337)],{title:e(1977),children:l[e(1283)](p[e(1302)],{size:e(1021),onClick:()=>s(null),children:e(2169)})}):l[e(1283)](p[e(1337)],{title:e(1426),children:l.jsx(p[e(1302)],{size:e(1021),type:e(569),ghost:!0,disabled:f.canvasIds.length===0,onClick:()=>s(f.id),children:e(1773)})}),l.jsx(p[e(1337)],{title:"翻到上一页(基于当前画布)",children:l[e(1283)](p[e(1302)],{size:"small",icon:l[e(1283)](fe[e(414)],{}),disabled:f[e(1631)][e(1755)]<2,onClick:()=>u(f.id)})}),l.jsx(p[e(1337)],{title:e(757),children:l[e(1283)](p[e(1302)],{size:e(1021),icon:l[e(1283)](fe[e(778)],{}),disabled:f[e(1631)][e(1755)]<2,onClick:()=>d(f.id)})})]})]}),l.jsxs("div",{className:e(1187),children:[l[e(1283)](p[e(1611)],{placeholder:e(1159),value:C,onChange:z,style:{flex:1},size:e(1021),disabled:P[e(1755)]===0,options:P.map(U=>({label:U[e(1123)],value:U.id}))}),l.jsx(p[e(1302)],{size:e(1021),type:e(569),icon:l.jsx(fe[e(2174)],{}),disabled:!C,onClick:q,children:"加入"})]}),f.canvasIds[e(1755)]===0?l[e(1283)](p[e(1722)],{description:"组内还没有画布,从上方选择加入",image:p[e(1722)][e(594)],style:{marginTop:40}}):l.jsx(p.List,{size:e(1021),dataSource:f[e(1631)],renderItem:(U,W)=>{const H=e,G=n.canvases[H(517)](S=>S.id===U),T=n[H(473)]===U,L=f.canvasIds[H(1755)];return l.jsx(p[H(1280)].Item,{style:{padding:H(1102)},actions:[l.jsx(p[H(1337)],{title:"上移",children:l[H(1283)](p[H(1302)],{type:"text",size:H(1021),icon:l.jsx(fe[H(633)],{}),disabled:W===0,onClick:()=>a(f.id,U,"up")})},"up"),l[H(1283)](p.Tooltip,{title:"下移",children:l[H(1283)](p[H(1302)],{type:H(2223),size:"small",icon:l[H(1283)](fe[H(2057)],{}),disabled:W===L-1,onClick:()=>a(f.id,U,"down")})},"down"),l[H(1283)](p.Tooltip,{title:H(2162),children:l[H(1283)](p[H(1302)],{type:H(2223),size:"small",danger:!0,icon:l.jsx(fe[H(604)],{}),onClick:()=>i(f.id,U)})},H(2193))],children:l[H(948)]("span",{className:H(455),children:[l[H(1283)](p[H(549)],{children:W+1}),l.jsx("span",{style:{fontWeight:T?600:400},children:G?.[H(1123)]??H(648)+U[H(845)](0,6)+")"}),T&&l.jsx(p[H(549)],{color:H(1758),children:"当前"})]})})}})]}):l.jsx(p.Empty,{description:"请选择左侧一个同级关系组",image:p[e(1722)][e(594)],style:{marginTop:60}})})]})},Tl=[c(1285),"#52c41a",c(2045),"#f5222d",c(1824),c(1831),c(602),"#fa8c16","#595959","#262626",c(1639),c(1192),"#ffffff","#000000","#ff4d4f",c(1222)],Wn=({value:e="#1890ff",onChange:n,onChangeComplete:t})=>{const o=c,[x,r]=D.useState(!1),[i,a]=D[o(1595)](e),d=D.useRef(null);D[o(1646)](()=>{a(e)},[e]),D[o(1646)](()=>{const s=o,b=g=>{const h=_0x51e5;d[h(616)]&&!d[h(616)][h(1700)](g[h(450)])&&(r(!1),t?.({toHexString:()=>i}))};return x&&document[s(1046)](s(2219),b),()=>document[s(1369)](s(2219),b)},[x,t,i]);const u=s=>{a(s),n?.({toHexString:()=>s})};return l[o(948)](o(737),{ref:d,style:{position:"relative",display:"inline-block"},children:[l[o(1283)]("div",{onClick:()=>r(!x),style:{width:28,height:28,backgroundColor:i,border:"1px solid #d9d9d9",borderRadius:4,cursor:o(968)}}),x&&l.jsxs("div",{style:{position:"absolute",top:32,left:0,zIndex:1e3,background:o(745),padding:8,borderRadius:4,boxShadow:o(2151),border:"1px solid #f0f0f0"},children:[l[o(1283)](o(737),{style:{display:"grid",gridTemplateColumns:o(1964),gap:4},children:Tl.map(s=>l[o(1283)](o(737),{onClick:()=>{u(s),r(!1),t?.({toHexString:()=>s})},style:{width:20,height:20,backgroundColor:s,border:i===s?"2px solid #1890ff":"1px solid #d9d9d9",borderRadius:2,cursor:o(968)}},s))}),l[o(1283)](o(1933),{type:o(486),value:i,onChange:s=>u(s[o(450)][o(1256)]),onBlur:()=>t?.({toHexString:()=>i}),style:{width:o(1672),marginTop:8,height:28,border:o(901),borderRadius:4}})]})]})},{TextArea:ql}=p.Input;function Wl(e){const n=c;if(!e||!(e instanceof HTMLElement))return!1;const t=e.tagName;return!!(t===n(893)||t==="TEXTAREA"||t===n(1779)||t===n(1965)||e.isContentEditable||e[n(436)](n(1276))||e.closest(n(1368))||e[n(436)](n(1889))||e[n(436)](".ant-select-dropdown"))}function Xl(e){const n=c,t=e[n(674)][n(740)]||0,o=e.normalStyle.transform||"";return e[n(1641)]?.[n(1016)]?.[n(1321)](r=>r[n(2209)][n(1592)]===n(1044))??!1?o:o?n(1597)+t+n(1622)+o:t?"rotate("+t+n(1148):""}function Kl(e,n,t,o){const x=c,r=x(1944)+t+x(994)+o+x(2063);e[x(777)][x(1713)]=n?r+" "+n:r}function Zl(e,n,t,o,x){const r=c,i=he(t),a=he(o);e.style[r(2281)]=i+"px",e.style.top=a+"px",n[r(1592)]===r(504)&&(e[r(777)][r(1713)]=x||"")}const gi=({defaultTestData:e,readonly:n=!1,backgroundImageUrl:t,initialViewportWidth:o,initialViewportHeight:x})=>{const r=c,i=D[r(1527)](null),a=D[r(1527)](null),d=D[r(1527)](null),{nodes:u,selectedNodeId:s,selectedNodeIds:b,mode:g,lineDrawing:h,viewport:v,canvas:f,root:w,setViewport:M,setCanvasConfig:y,addNode:m,selectNode:C,updateNode:z,removeNode:P,bringToFront:E,sendToBack:V,undo:q,redo:U,setMode:W,startLineDrawing:H,endLineDrawing:G,cancelLineDrawing:T,addCanvas:L,removeCanvas:S,switchCanvas:B,updateCanvasName:j,exportCanvas:A,importCanvas:I,setSelectedNodeIds:J,eventFlow:_,addEventRoot:F,addEventBlock:ee}=s0(),[re,ue]=D.useState(!1),[,pe]=D[r(1595)]({}),Me=D[r(1527)](g);D[r(1646)](()=>{const N=r;Me[N(616)]=g},[g]),D.useEffect(()=>{const N=r;W(N(n?1914:1244))},[n,W]);const de=n&&o&&f[r(434)]>0?Math[r(1050)](o/f[r(434)],1):.5,$=5,be=n&&o&&f[r(434)]>0?de:1,ge=n&&o?r(501)+o+"-"+(x||r(527))+r(1691)+f[r(434)]+"-"+f[r(725)]:r(1465),Y=D[r(1527)](be),X=D[r(1527)](!1),ce=D[r(1527)]({x:0,y:0}),ae=D[r(1527)]({x:0,y:0,newX:0,newY:0}),Le=D[r(1527)](null),Be=D[r(1527)](""),[Ae,He]=D[r(1595)]({start:null,end:null,isDrawing:!1}),[Ie,h0]=D[r(1595)]({start:null,end:null}),Se=b,Qe=J;D[r(1527)](!1);const[te,ze]=D[r(1595)](!1),[we,ve]=D.useState(!1),[ne,Pe]=D.useState(()=>JSON[r(1153)](e??null,null,2)),Te=D[r(2027)](()=>{const N=r;if(!we)return e;try{return JSON[N(1447)](ne)}catch{return e}},[ne,e,we]),Ge=D[r(2027)](()=>{const N=Te;if(N!==null&&typeof N=="object")return N;if(N!==void 0)return{_payload:N}},[Te]),qe=D[r(2027)](()=>{const N=r,k=Te;return k!==null&&typeof k===N(990)&&!Array[N(1996)](k)?k:Array[N(1996)](k)?{_telemetryRows:k}:k==null?{}:{_payload:k}},[Te]),Xe=D[r(1507)](()=>{const N=r;let k=e;if(we)try{k=JSON[N(1447)](ne)}catch{k=e}Pe(JSON[N(1153)](k??null,null,2)),ze(!0)},[ne,e,we]),[Ke,Ue]=D[r(1595)](!1),[Oe,a0]=D.useState(!1),[Fe,e0]=D[r(1595)](""),[n0,x0]=D[r(1595)](!1),X0=D.useCallback(()=>{const N=r;try{const k=A(),K=JSON[N(1153)](k,null,2),R="data:application/json;charset=utf-8,"+encodeURIComponent(K),Q=N(1644)+k[N(734)].name+"_"+Date.now()+N(1541),O=document.createElement("a");O.setAttribute(N(1675),R),O[N(1907)](N(922),Q),O[N(2019)](),p.message[N(996)](N(1638))}catch{p[N(1118)][N(1487)](N(1890))}},[A]),G0=D[r(1507)](()=>{const N=r;try{const k=JSON[N(1447)](Fe);n0?I(k):I(k,w[N(473)]||void 0),a0(!1),e0(""),x0(!1),p[N(1118)][N(996)](N(748))}catch{p.message[N(1487)](N(1866))}},[Fe,n0,I,w[r(473)]]),S0=D.useCallback(N=>{const k=r,K=new FileReader;return K[k(654)]=R=>{const Q=k;try{const O=R.target?.[Q(536)],Z=JSON[Q(1447)](O);n0?I(Z):I(Z,w[Q(473)]||void 0),p[Q(1118)][Q(996)](Q(748)),a0(!1),x0(!1)}catch{p[Q(1118)][Q(1487)](Q(1273))}},K.readAsText(N),!1},[n0,I,w[r(473)]]),[u0,v0]=D[r(1595)](!1),l0=D[r(1507)]((N,k)=>{const K=r;if(!a[K(616)])return{x:0,y:0};const R=a.current.getBoundingClientRect(),Q=N-R.left,O=k-R.top,Z=R[K(434)]/f[K(434)],se=R.height/f[K(725)],xe=Q/Z,oe=O/se;return{x:he(xe),y:he(oe)}},[f[r(434)],f[r(725)]]),B0=D[r(1507)]((N,k)=>l0(N,k),[l0]),N0=D[r(1507)]((N,k,K=!0)=>{const R=r;if(!h.material)return;const Q=h.material,O=Q[R(1633)]||{},Z=O[R(2122)]||O[R(911)]||2,se=he(Math.min(N.x,k.x)),xe=he(Math[R(1050)](N.y,k.y)),oe=he(N.x-se),le=he(N.y-xe),ye=he(k.x-se),ke=he(k.y-xe),De=Math[R(656)](Z*2,4),Ce=Math[R(656)](Math[R(1032)](ye-oe),De),We=Math.max(Math[R(1032)](ke-le),De),Ve=k.x-N.x,ie=k.y-N.y,me=Math[R(909)](Math[R(1425)](ie,Ve)*(180/Math.PI)),Ze={...Q,id:je.nanoid(),config:{color:O[R(486)],lineWeight:Z,thickness:Z,lineType:O[R(1584)],startX:oe,startY:le,endX:ye,endY:ke,rotate:me}},_e={id:je[R(2131)](),name:Q[R(1123)]+"_"+Date.now(),type:R(2249),normalStyle:{width:Ce,height:We,x:se,y:xe,background:R(1e3)},contentInfo:{statusList:[ho(Ze)],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0}};if(m(_e,!1),K){const b0={x:k.x,y:k.y};He({start:b0,end:{...b0},isDrawing:!0})}else He({start:null,end:null,isDrawing:!1}),G()},[h[r(2209)],m,G]),bn=D[r(1507)](()=>{const N=r,k=i[N(616)]?.[N(481)];if(!k)return;const K=k[N(1300)];Y.current=K[N(1816)],M({scale:K[N(1816)],positionX:0,positionY:0})},[M]),_0=D.useCallback(N=>{const k=r;X[k(616)]||g!=="box-select"&&(N.target===a[k(616)]||N[k(450)][k(480)]?.[k(734)]===k(1770))&&(C(null),Qe([]))},[C,g]),w0=D[r(1507)](N=>{const k=r;if(N[k(1454)]===0){if(g==="line-draw"&&h.material){N[k(1199)]();const K=l0(N[k(2233)],N[k(1659)]);Ae.isDrawing?Ae[k(1635)]&&N0(Ae[k(1635)],K,!0):He({start:K,end:K,isDrawing:!0});return}if(g===k(1805)&&!u0){const K=B0(N[k(2233)],N[k(1659)]);h0({start:K,end:K}),Qe([]),C(null),N.preventDefault(),N.stopPropagation()}}},[g,h.material,Ae[r(861)],Ae[r(1635)],u0,N0,l0,B0]),ot=D[r(1507)](N=>{const k=r;if(!(g!==k(1166)||!h[k(2209)])&&Ae[k(861)]&&Ae.start){const K=l0(N.clientX,N[k(1659)]);N0(Ae[k(1635)],K,!1)}},[g,h[r(2209)],Ae.isDrawing,Ae[r(1635)],N0,l0]),$0=D.useCallback(N=>{const k=r;N[k(521)](),N[k(1504)].dropEffect=k(2069),ue(!0)},[]),Nn=D[r(1507)](N=>{N.preventDefault(),ue(!1)},[]),fn=D[r(1507)](N=>{const k=r;if(N[k(521)](),ue(!1),!(!a[k(616)]||g!==k(1244)&&g!==k(1805)))try{const K=N[k(1504)][k(439)](k(943));if(!K)return;const R=JSON.parse(K),Q=l0(N.clientX,N.clientY),O=Q.x-50,Z=Q.y-50,se=Gr(O,Z,R);m(se),Qe([se.id])}catch(K){console.error(k(588),K)}},[g,m,l0,Qe]),kn=D.useCallback((N,k)=>{const K=r;g!==K(1244)&&g!==K(1805)||!k[K(1223)].isDraggable||(N[K(1199)](),C(k.id),X[K(616)]=!0,ce[K(616)]={x:N.clientX,y:N[K(1659)]},ae[K(616)]={x:k[K(674)].x||0,y:k[K(674)].y||0,newX:k[K(674)].x||0,newY:k[K(674)].y||0},Le[K(616)]=k,Be.current=Xl(k),N.preventDefault())},[g,C]),Tt=D[r(1507)](N=>{const k=r,K=Se[k(1755)]>0?Se:s?[s]:[];K.length!==0&&K[k(475)](R=>{const Q=k,O=u.find($e=>$e.id===R);if(!O)return;const Z=O[Q(1641)][Q(1016)][Q(517)]($e=>$e[Q(2209)][Q(1592)]===Q(1044));if(!Z)return;const se=Z[Q(2209)],xe=se.config||{},oe=xe[Q(468)]??0,le=xe[Q(642)]??0,ye=xe[Q(1042)]??100,ke=xe[Q(1316)]??0,De=ye-oe,Ce=ke-le,We=Math[Q(2282)](De*De+Ce*Ce);let Ve=ye,ie=ke;if(N===Q(872)){const $e=De>=0?1:-1;Ve=oe+$e*We,ie=le}else{const $e=Ce>=0?1:-1;Ve=oe,ie=le+$e*We}const me=xe.lineWeight||xe[Q(911)]||2,Ze=Math.max(me*2,4),_e=Math[Q(1050)](oe,Ve),b0=Math[Q(1050)](le,ie),nn=Math[Q(656)](oe,Ve),Jt=Math[Q(656)](le,ie),at=he((O[Q(674)].x||0)+_e),ct=he((O[Q(674)].y||0)+b0),tn=he(oe-_e),Pn=he(le-b0),An=he(Ve-_e),jn=he(ie-b0),Yn=Math.round(Math[Q(656)](nn-_e,Ze)),st=Math[Q(909)](Math[Q(656)](Jt-b0,Ze)),En=An-tn,Un=jn-Pn,lt=Math[Q(909)](Math[Q(1425)](Un,En)*(180/Math.PI)),k0=O[Q(1641)].statusList[Q(1226)]($e=>{const xn=Q;return $e.id!==Z.id?$e:{...$e,material:{...$e[xn(2209)],config:{...$e[xn(2209)].config,startX:tn,startY:Pn,endX:An,endY:jn,rotate:lt}}}});z(R,{normalStyle:{...O.normalStyle,x:at,y:ct,width:Yn,height:st},contentInfo:{...O[Q(1641)],statusList:k0}})})},[s,Se,u,z]);D[r(1646)](()=>{const N=r,k=O=>{const Z=_0x51e5;if(X[Z(616)]&&s&&Le[Z(616)]){if(!a[Z(616)])return;const se=a.current[Z(1596)](),xe=O[Z(2233)]-ce[Z(616)].x,oe=O[Z(1659)]-ce[Z(616)].y,le=se[Z(434)]/f.width,ye=xe/le,ke=oe/le,De=ae.current.x+ye,Ce=ae[Z(616)].y+ke,We=document[Z(2204)](Z(1313)+s+'"]');if(We)if(Le[Z(616)][Z(1592)]===Z(504)){const ie=De-ae[Z(616)].x,me=Ce-ae[Z(616)].y;Kl(We,Be.current,ie,me)}else We[Z(777)][Z(2281)]=De+"px",We[Z(777)][Z(1727)]=Ce+"px";ae.current[Z(721)]=De,ae[Z(616)][Z(772)]=Ce}if(g===Z(1805)&&Ie[Z(1635)]){const se=B0(O[Z(2233)],O[Z(1659)]);h0(xe=>({...xe,end:se}))}if(g===Z(1166)&&Ae[Z(861)]){const se=l0(O[Z(2233)],O[Z(1659)]);He(xe=>({...xe,end:se}))}},K=()=>{const O=_0x51e5;if(X[O(616)]&&s&&Le[O(616)]){const Z=s0[O(2285)](),se=ae[O(616)][O(721)]??ae[O(616)].x,xe=ae[O(616)][O(772)]??ae[O(616)].y,oe=he(se),le=he(xe),ye=document.querySelector(O(1313)+s+'"]');ye&&Zl(ye,Le[O(616)],se,xe,Be[O(616)]),Z.updateNode(s,{normalStyle:{...Le[O(616)].normalStyle,x:oe,y:le}})}if(X[O(616)]=!1,Le.current=null,Be.current="",pe({}),g===O(1805)&&Ie[O(1635)]&&Ie[O(1086)]){const Z=Math[O(1050)](Ie[O(1635)].x,Ie[O(1086)].x),se=Math[O(656)](Ie[O(1635)].x,Ie[O(1086)].x),xe=Math[O(1050)](Ie[O(1635)].y,Ie[O(1086)].y),oe=Math[O(656)](Ie.start.y,Ie[O(1086)].y),le=u[O(1947)](ye=>{const ke=O,De=ye[ke(674)].x||0,Ce=ye[ke(674)].y||0,We=ye[ke(674)][ke(434)]||0,Ve=ye.normalStyle[ke(725)]||0,ie=De+We/2,me=Ce+Ve/2;return ie>=Z&&ie<=se&&me>=xe&&me<=oe}).map(ye=>ye.id);Qe(le),h0({start:null,end:null})}},R=O=>{const Z=_0x51e5;if(!Wl(O[Z(450)])){if(O.key===Z(924)&&g==="line-draw"&&(He({start:null,end:null,isDrawing:!1}),T()),O[Z(427)]==="Delete"&&(s?P(s):Se[Z(1755)]>0&&(Se[Z(475)](se=>P(se)),Qe([]))),O.ctrlKey&&O[Z(427)]==="z"&&(O[Z(521)](),q()),O[Z(2112)]&&O[Z(427)]==="y"&&(O.preventDefault(),U()),(g===Z(1244)||g===Z(1805))&&(O[Z(427)]===Z(1258)||O[Z(427)]===Z(927)||O[Z(427)]===Z(1099)||O.key==="ArrowDown")){const se=Se[Z(1755)]>0?Se:s?[s]:[];if(se[Z(1755)]>0){O[Z(521)]();const xe=O[Z(427)]===Z(1258)?-2:O[Z(427)]===Z(927)?2:0,oe=O[Z(427)]==="ArrowUp"?-2:O.key===Z(2106)?2:0;se[Z(475)](le=>{const ye=Z,ke=u[ye(517)](De=>De.id===le);ke&&z(le,{normalStyle:{...ke[ye(674)],x:(ke[ye(674)].x||0)+xe,y:(ke.normalStyle.y||0)+oe}})})}}(g===Z(1244)||g===Z(1805))&&(O[Z(427)]==="h"||O[Z(427)]==="H")&&(O[Z(521)](),Tt(Z(872))),(g===Z(1244)||g==="box-select")&&(O[Z(427)]==="v"||O[Z(427)]==="V")&&(O.preventDefault(),Tt("vertical")),O[Z(427)]===" "&&(O.preventDefault(),!u0&&v0(!0))}},Q=O=>{O[_0x51e5(427)]===" "&&u0&&v0(!1)};return window[N(1046)](N(1205),k),window[N(1046)](N(1720),K),window[N(1046)](N(1609),R),window[N(1046)]("keyup",Q),()=>{const O=N;window[O(1369)](O(1205),k),window[O(1369)](O(1720),K),window[O(1369)](O(1609),R),window[O(1369)]("keyup",Q)}},[s,Ie,g,Ae[r(861)],Se,u,f[r(434)],f[r(725)],P,q,u0,U,T,l0,B0,Qe,z,Tt]);const Qx=(N,k=!0)=>{const K=r,R={...N,id:je.nanoid(),name:N[K(1123)]+K(1173),normalStyle:{...N[K(674)],x:(N.normalStyle.x||0)+(k?20:0),y:(N[K(674)].y||0)+(k?20:0)}};return N[K(1592)]===K(504)&&N[K(795)]&&(R[K(795)]=N[K(795)][K(1226)](Q=>Qx(Q,!1))),R},rt=D[r(1507)]((N,k,K)=>{const R=r;K[R(643)](N.id,k.id),N.type===R(504)&&N[R(795)]&&k[R(1592)]===R(504)&&k[R(795)]&&N[R(795)].forEach((Q,O)=>{rt(Q,k.children[O],K)})},[]),qt=D[r(1507)]((N,k)=>{const K=r,R=new Map;N[K(632)][K(1349)][K(475)](se=>{const xe=K,oe=se[xe(1083)][xe(1476)],le=ee({name:oe.name,callback:oe[xe(2167)],inputs:oe.inputs.map(ye=>({...ye})),outputs:oe[xe(1780)][xe(1226)](ye=>({...ye})),executorType:oe[xe(510)],dataRequestKey:oe[xe(2198)],externalHandlerKey:oe[xe(1769)],builtinId:oe[xe(729)],builtinConfig:oe[xe(1311)]?{...oe.builtinConfig}:void 0,bindNodeId:oe[xe(831)]?k:void 0,position:oe[xe(675)]?{...oe[xe(675)]}:void 0});R.set(oe.id,le)});const Q=new Map,O=N[K(632)][K(1349)][K(1226)](se=>{const xe=K,oe=je[xe(2131)]();Q[xe(643)](se.id,oe);const le=R[xe(689)](se[xe(524)]),ye=se[xe(1083)][xe(1476)];return{...se,id:oe,eventBlockId:le,position:{...se[xe(675)]},inputs:[],outputs:[],data:{...se.data,label:se[xe(1083)][xe(1772)],eventBlock:{...ye,id:le,inputs:ye.inputs[xe(1226)](ke=>({...ke})),outputs:ye[xe(1780)][xe(1226)](ke=>({...ke})),bindNodeId:ye[xe(831)]?k:void 0,position:ye[xe(675)]?{...ye[xe(675)]}:void 0,builtinConfig:ye[xe(1311)]?{...ye[xe(1311)]}:void 0}}}});O[K(475)](se=>{const xe=K,oe=N[xe(632)][xe(1349)].find(le=>Q[xe(689)](le.id)===se.id);oe&&(se.inputs=oe[xe(755)][xe(1226)](le=>Q[xe(689)](le)),se[xe(1780)]=oe[xe(1780)].map(le=>Q.get(le)))});const Z=N[K(632)][K(1743)][K(1226)](se=>({...se,id:je.nanoid(),source:Q[K(689)](se.source),target:Q[K(689)](se[K(450)]),dataMapping:se[K(897)]?{...se[K(897)]}:void 0}));F({bindNodeId:k,eventType:N[K(1435)],externalEventKey:N[K(843)],flowData:{nodes:O,edges:Z},enabled:N.enabled,copyOnDuplicate:N[K(1136)]})},[ee,F]),Wt=D.useCallback(()=>{const N=r,k=Se[N(1755)]>0?Se[N(1226)](Q=>u[N(517)](O=>O.id===Q)).filter(Boolean):s?[u[N(517)](Q=>Q.id===s)][N(1947)](Boolean):[];if(k[N(1755)]===0)return;const K=[],R=new Map;k.forEach(Q=>{const O=N,Z=Qx(Q);rt(Q,Z,R),m(Z),K[O(573)](Z.id)}),_[N(802)][N(475)](Q=>{const O=N,Z=R[O(689)](Q[O(831)]);Z&&Q[O(1136)]!==!1&&qt(Q,Z)}),K[N(1755)]===1?C(K[0]):Qe(K)},[s,Se,u,m,C,Qe,_,rt,qt]),Fx=D[r(1507)](N=>{const k=r,K=N[k(674)].x||0,R=N[k(674)].y||0,Q=N[k(674)].width||0,O=N[k(674)][k(725)]||0,Z=N.normalStyle.rotate||0;if(!Z)return{minX:K,minY:R,maxX:K+Q,maxY:R+O};const se=K+Q/2,xe=R+O/2,oe=Z*Math.PI/180,le=Math.cos(oe),ye=Math[k(1310)](oe),ke=[{x:-Q/2,y:-O/2},{x:Q/2,y:-O/2},{x:Q/2,y:O/2},{x:-Q/2,y:O/2}];let De=1/0,Ce=1/0,We=-1/0,Ve=-1/0;for(const ie of ke){const me=se+ie.x*le-ie.y*ye,Ze=xe+ie.x*ye+ie.y*le;De=Math[k(1050)](De,me),Ce=Math[k(1050)](Ce,Ze),We=Math.max(We,me),Ve=Math[k(656)](Ve,Ze)}return{minX:De,minY:Ce,maxX:We,maxY:Ve}},[]),_x=D[r(1507)](N=>{const k=r,K=N.normalStyle.x||0,R=N.normalStyle.y||0,Q=N[k(674)][k(434)]||0,O=N[k(674)][k(725)]||0,Z=N.normalStyle[k(740)]||0;if(!Z)return(N[k(795)]||[]).map(De=>({...De,normalStyle:{...De[k(674)],x:he(K+(De[k(674)].x||0)),y:he(R+(De[k(674)].y||0))}}));const se=Z*Math.PI/180,xe=Math.cos(se),oe=Math[k(1310)](se),le=K+Q/2,ye=R+O/2,ke=(De,Ce)=>{const We=De-Q/2,Ve=Ce-O/2;return{x:le+We*xe-Ve*oe,y:ye+We*oe+Ve*xe}};return(N.children||[])[k(1226)](De=>{const Ce=k;if(De[Ce(1641)][Ce(1016)][Ce(1321)](tn=>tn[Ce(2209)][Ce(1592)]===Ce(1044))){const tn=De[Ce(674)].x||0,Pn=De[Ce(674)].y||0,An=De[Ce(674)][Ce(434)]||0,jn=De.normalStyle[Ce(725)]||0,Yn=De[Ce(674)][Ce(740)]||0,st=Yn*Math.PI/180,En=Math[Ce(983)](st),Un=Math[Ce(1310)](st),lt=(V0,o0)=>{const g0=V0-An/2,I0=o0-jn/2,c0=g0*En-I0*Un+An/2,r0=g0*Un+I0*En+jn/2;return ke(tn+c0,Pn+r0)};let k0=1/0,$e=1/0,xn=-1/0,dt=-1/0,O0=2;const on=De[Ce(1641)].statusList[Ce(1226)](V0=>{const o0=Ce;if(V0.material[o0(1592)]!==o0(1044))return null;const g0=V0[o0(2209)][o0(1633)]||{},I0=lt(g0[o0(468)]||0,g0[o0(642)]||0),c0=lt(g0.endX||0,g0[o0(1316)]||0);return k0=Math[o0(1050)](k0,I0.x,c0.x),$e=Math[o0(1050)]($e,I0.y,c0.y),xn=Math[o0(656)](xn,I0.x,c0.x),dt=Math[o0(656)](dt,I0.y,c0.y),O0=Math[o0(656)](O0,g0.lineWeight||g0[o0(911)]||2),{s:I0,e:c0}});if(Number.isFinite(k0)&&Number.isFinite($e)){const V0=Math.max(O0*2,4),o0=Math[Ce(656)](xn-k0,V0),g0=Math[Ce(656)](dt-$e,V0),I0=De[Ce(1641)][Ce(1016)].map((c0,r0)=>{const D0=Ce,f0=on[r0];if(!f0||c0.material.type!=="LINE")return c0;const y0=c0.material;return{...c0,material:{...y0,config:{...y0[D0(1633)]||{},startX:he(f0.s.x-k0),startY:he(f0.s.y-$e),endX:he(f0.e.x-k0),endY:he(f0.e.y-$e)}}}});return{...De,normalStyle:{...De.normalStyle,x:he(k0),y:he($e),width:Math[Ce(909)](o0),height:Math.round(g0),rotate:0},contentInfo:{...De[Ce(1641)],statusList:I0}}}return{...De,normalStyle:{...De[Ce(674)],x:K+tn,y:R+Pn,rotate:0}}}const Ve=De[Ce(674)].width||0,ie=De[Ce(674)].height||0,me=De[Ce(674)].x||0,Ze=De.normalStyle.y||0,_e=me+Ve/2-Q/2,b0=Ze+ie/2-O/2,nn=le+_e*xe-b0*oe,Jt=ye+_e*oe+b0*xe,at=De[Ce(674)][Ce(740)]||0,ct=((at+Z)%360+360)%360;return{...De,normalStyle:{...De[Ce(674)],x:nn-Ve/2,y:Jt-ie/2,rotate:ct}}})},[]),$x=D[r(1507)](()=>{const N=r;if(Se[N(1755)]<2)return;const k=[];for(let xe=0;xe<Se[N(1755)];xe++){const oe=Se[xe],le=u.find(ye=>ye.id===oe);if(le){if(le?.type==="group"){_x(le)[N(475)](ke=>k[N(573)](ke)),P(oe);continue}k[N(573)](le)}}if(k[N(1755)]<2)return;let K=1/0,R=1/0,Q=-1/0,O=-1/0;k[N(475)](xe=>{const oe=N,le=Fx(xe);K=Math[oe(1050)](K,le[oe(1248)]),R=Math[oe(1050)](R,le[oe(1645)]),Q=Math.max(Q,le[oe(1505)]),O=Math[oe(656)](O,le.maxY)});const Z=k.map(xe=>{const oe=N,le={...xe,normalStyle:{...xe[oe(674)],x:he((xe.normalStyle.x||0)-K),y:he((xe[oe(674)].y||0)-R)}};return xe.contentInfo.statusList.some(ke=>ke[oe(2209)][oe(1592)]===oe(1044))?{...le,contentInfo:{...le[oe(1641)],statusList:le.contentInfo.statusList[oe(1226)](ke=>{const De=oe;if(ke.material[De(1592)]!==De(1044))return ke;const Ce=ke.material[De(1633)]||{};return{...ke,material:{...ke[De(2209)],config:{...Ce,startX:he(Ce.startX??0),startY:he(Ce[De(642)]??0),endX:he(Ce[De(1042)]??0),endY:he(Ce.endY??0)}}}})}}:le}),se={id:je[N(2131)](),name:"群组_"+Date[N(1207)](),type:N(504),normalStyle:{x:he(K),y:he(R),width:Math[N(909)](Q-K),height:Math[N(909)](O-R),background:N(1e3)},contentInfo:{statusList:[],currentStatusId:void 0},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0},children:Z};Se[N(475)](xe=>P(xe)),m(se),Qe([]),C(se.id)},[Se,u,P,m,C,_x,Fx]),eo=N=>{const k=r,K={...N,id:je[k(2131)]()};return N[k(1592)]==="group"&&N[k(795)]&&(K[k(795)]=N[k(795)][k(1226)](R=>eo(R))),K},no=D[r(1507)](()=>{const N=r,k=Se[N(1755)]>0?Se[N(1226)](K=>u[N(517)](R=>R.id===K)).filter(K=>!!K&&K[N(1592)]===N(504)):s?[u[N(517)](K=>K.id===s)][N(1947)](K=>!!K&&K[N(1592)]===N(504)):[];k[N(1755)]!==0&&(k.forEach(K=>{const R=N;if(!K[R(795)]||K[R(795)][R(1755)]===0)return;const Q=K.normalStyle.x||0,O=K.normalStyle.y||0,Z=K[R(674)].width||0,se=K[R(674)].height||0,xe=K[R(674)].rotate||0,oe=xe*Math.PI/180,le=Math.cos(oe),ye=Math[R(1310)](oe),ke=Q+Z/2,De=O+se/2,Ce=(Ve,ie)=>{const me=Ve-Z/2,Ze=ie-se/2;return{x:ke+me*le-Ze*ye,y:De+me*ye+Ze*le}},We=K.children[R(1226)](Ve=>{const ie=R,me=eo(Ve);if(me[ie(1641)].statusList[ie(1321)](Yn=>Yn[ie(2209)].type===ie(1044))){const Yn=me[ie(674)].x||0,st=me.normalStyle.y||0,En=me.normalStyle[ie(434)]||0,Un=me[ie(674)][ie(725)]||0,lt=me[ie(674)][ie(740)]||0,k0=lt*Math.PI/180,$e=Math[ie(983)](k0),xn=Math[ie(1310)](k0),dt=(c0,r0)=>{const D0=c0-En/2,f0=r0-Un/2,y0=D0*$e-f0*xn+En/2,zr=D0*xn+f0*$e+Un/2;return Ce(Yn+y0,st+zr)};let O0=1/0,on=1/0,V0=-1/0,o0=-1/0,g0=2;const I0=me.contentInfo[ie(1016)][ie(1226)](c0=>{const r0=ie;if(c0[r0(2209)].type!==r0(1044))return null;const D0=c0[r0(2209)][r0(1633)]||{},f0=dt(D0[r0(468)]||0,D0[r0(642)]||0),y0=dt(D0[r0(1042)]||0,D0[r0(1316)]||0);return O0=Math[r0(1050)](O0,f0.x,y0.x),on=Math.min(on,f0.y,y0.y),V0=Math[r0(656)](V0,f0.x,y0.x),o0=Math.max(o0,f0.y,y0.y),g0=Math[r0(656)](g0,D0[r0(2122)]||D0[r0(911)]||2),{s:f0,e:y0}});if(Number[ie(782)](O0)&&Number[ie(782)](on)){const c0=Math[ie(656)](g0*2,4),r0=Math[ie(656)](V0-O0,c0),D0=Math.max(o0-on,c0),f0=me[ie(1641)][ie(1016)][ie(1226)]((y0,zr)=>{const ao=ie,Qt=I0[zr];if(!Qt||y0[ao(2209)][ao(1592)]!==ao(1044))return y0;const Ps=y0[ao(2209)];return{...y0,material:{...Ps,config:{...Ps.config||{},startX:he(Qt.s.x-O0),startY:he(Qt.s.y-on),endX:he(Qt.e.x-O0),endY:he(Qt.e.y-on)}}}});return{...me,normalStyle:{...me[ie(674)],x:he(O0),y:he(on),width:Math.round(r0),height:Math.round(D0),rotate:0},contentInfo:{...me.contentInfo,statusList:f0}}}}const _e=me[ie(674)][ie(434)]||0,b0=me.normalStyle[ie(725)]||0,nn=me[ie(674)].x||0,Jt=me[ie(674)].y||0,at=nn+_e/2-Z/2,ct=Jt+b0/2-se/2,tn=ke+at*le-ct*ye,Pn=De+at*ye+ct*le,An=me.normalStyle[ie(740)]||0,jn=((An+xe)%360+360)%360;return{...me,normalStyle:{...me[ie(674)],x:tn-_e/2,y:Pn-b0/2,rotate:jn}}});P(K.id),We[R(475)](Ve=>m(Ve))}),Qe([]),C(null))},[s,Se,u,P,m,C,Qe]),Xt=D[r(1507)](N=>{const k=r;if(Se[k(1755)]<1)return;const K=Se.map(R=>u[k(517)](Q=>Q.id===R)).filter(R=>!!R);if(K[k(1755)]===1&&K[0][k(1592)]===k(504)){const R=K[0];if(!R.children||R[k(795)][k(1755)]<2)return;const Q=[...R[k(795)]];let O=1/0,Z=1/0,se=-1/0,xe=-1/0;if(N==="horizontal"){const oe=[...Q][k(773)]((ie,me)=>(ie[k(674)].x||0)-(me.normalStyle.x||0));let le=1/0,ye=-1/0,ke=0;oe[k(475)](ie=>{const me=k,Ze=ie[me(674)].x||0,_e=ie[me(674)].width||0;le=Math.min(le,Ze),ye=Math[me(656)](ye,Ze+_e),ke+=_e});const De=(ye-le-ke)/(oe[k(1755)]-1);let Ce=le;const We=new Map;oe[k(475)](ie=>{const me=k;We[me(643)](ie.id,Ce),Ce+=(ie.normalStyle[me(434)]||0)+De});const Ve=Q.map(ie=>({...ie,normalStyle:{...ie[k(674)],x:We[k(689)](ie.id)??ie[k(674)].x}}));Ve.forEach(ie=>{const me=k,Ze=ie[me(674)].x||0,_e=ie.normalStyle.y||0,b0=ie.normalStyle[me(434)]||0,nn=ie[me(674)][me(725)]||0;O=Math[me(1050)](O,Ze),Z=Math[me(1050)](Z,_e),se=Math[me(656)](se,Ze+b0),xe=Math[me(656)](xe,_e+nn)}),z(R.id,{normalStyle:{...R[k(674)],x:he((R.normalStyle.x||0)+O),y:he((R.normalStyle.y||0)+Z),width:Math[k(909)](se-O),height:Math[k(909)](xe-Z)},children:Ve[k(1226)](ie=>({...ie,normalStyle:{...ie[k(674)],x:he((ie.normalStyle.x||0)-O),y:he((ie[k(674)].y||0)-Z)}}))})}else{const oe=[...Q].sort((ie,me)=>(ie[k(674)].y||0)-(me.normalStyle.y||0));let le=1/0,ye=-1/0,ke=0;oe[k(475)](ie=>{const me=k,Ze=ie[me(674)].y||0,_e=ie[me(674)][me(725)]||0;le=Math[me(1050)](le,Ze),ye=Math[me(656)](ye,Ze+_e),ke+=_e});const De=(ye-le-ke)/(oe.length-1);let Ce=le;const We=new Map;oe[k(475)](ie=>{const me=k;We[me(643)](ie.id,Ce),Ce+=(ie[me(674)][me(725)]||0)+De});const Ve=Q[k(1226)](ie=>({...ie,normalStyle:{...ie[k(674)],y:We[k(689)](ie.id)??ie[k(674)].y}}));Ve.forEach(ie=>{const me=k,Ze=ie[me(674)].x||0,_e=ie.normalStyle.y||0,b0=ie[me(674)][me(434)]||0,nn=ie.normalStyle[me(725)]||0;O=Math[me(1050)](O,Ze),Z=Math.min(Z,_e),se=Math[me(656)](se,Ze+b0),xe=Math.max(xe,_e+nn)}),z(R.id,{normalStyle:{...R[k(674)],x:(R[k(674)].x||0)+O,y:(R[k(674)].y||0)+Z,width:se-O,height:xe-Z},children:Ve[k(1226)](ie=>({...ie,normalStyle:{...ie.normalStyle,x:(ie[k(674)].x||0)-O,y:(ie[k(674)].y||0)-Z}}))})}return}if(!(K[k(1755)]<2))if(N===k(872)){const R=[...K][k(773)]((oe,le)=>{const ye=k;return(oe[ye(674)].x||0)-(le[ye(674)].x||0)});let Q=1/0,O=-1/0,Z=0;R[k(475)](oe=>{const le=k,ye=oe.normalStyle.x||0,ke=oe[le(674)][le(434)]||0;Q=Math[le(1050)](Q,ye),O=Math[le(656)](O,ye+ke),Z+=ke});const se=(O-Q-Z)/(R.length-1);let xe=Q;R[k(475)](oe=>{const le=k,ye=xe;z(oe.id,{normalStyle:{...oe[le(674)],x:he(ye)}}),xe+=(oe[le(674)][le(434)]||0)+se})}else{const R=[...K].sort((oe,le)=>{const ye=k;return(oe.normalStyle.y||0)-(le[ye(674)].y||0)});let Q=1/0,O=-1/0,Z=0;R.forEach(oe=>{const le=k,ye=oe[le(674)].y||0,ke=oe[le(674)][le(725)]||0;Q=Math[le(1050)](Q,ye),O=Math.max(O,ye+ke),Z+=ke});const se=(O-Q-Z)/(R[k(1755)]-1);let xe=Q;R[k(475)](oe=>{const le=k,ye=xe;z(oe.id,{normalStyle:{...oe[le(674)],y:he(ye)}}),xe+=(oe[le(674)][le(725)]||0)+se})}},[Se,u,z]),hn=N=>{const k=r,K=N[k(1641)][k(1016)].find(R=>R[k(2209)][k(1592)]===k(1044));return K?K.material[k(1633)]:null},In=D[r(1507)](N=>{const k=r;if(Se[k(1755)]<2)return;const K=s0[k(2285)](),R=Se[k(1226)](O=>u[k(517)](Z=>Z.id===O))[k(1947)](O=>!!O);if(R[k(1755)]<2)return;let Q=0;switch(N){case"left":Q=Math.min(...R.map(O=>{const Z=k,se=hn(O);return se?(O.normalStyle.x||0)+(se[Z(468)]||0):O[Z(674)].x||0}));break;case k(1798):Q=Math[k(656)](...R[k(1226)](O=>{const Z=k,se=hn(O);return se?(O.normalStyle.x||0)+(se.endX||0):(O.normalStyle.x||0)+(O[Z(674)][Z(434)]||0)}));break;case k(1727):Q=Math[k(1050)](...R[k(1226)](O=>{const Z=k,se=hn(O);return se?(O[Z(674)].y||0)+(se[Z(642)]||0):O[Z(674)].y||0}));break;case"bottom":Q=Math.max(...R[k(1226)](O=>{const Z=k,se=hn(O);return se?(O.normalStyle.y||0)+(se[Z(1316)]||0):(O[Z(674)].y||0)+(O[Z(674)][Z(725)]||0)}));break}R[k(475)](O=>{const Z=k;let se=O[Z(674)].x||0,xe=O.normalStyle.y||0;const oe=hn(O);switch(N){case"left":oe?se=Q-(oe[Z(468)]||0):se=Q;break;case Z(1798):oe?se=Q-(oe[Z(1042)]||0):se=Q-(O.normalStyle[Z(434)]||0);break;case Z(1727):oe?xe=Q-(oe[Z(642)]||0):xe=Q;break;case"bottom":oe?xe=Q-(oe[Z(1316)]||0):xe=Q-(O.normalStyle[Z(725)]||0);break}K[Z(1759)](O.id,{normalStyle:{...O[Z(674)],x:he(se),y:he(xe)}})})},[Se,u]),yr=[{icon:l[r(1283)](fe[r(1605)],{}),title:r(1254),active:g===r(1244),onClick:()=>{W("select")}},{icon:l.jsx(fe[r(727)],{}),title:r(641),active:g==="box-select",onClick:()=>{W(r(1805)),Qe([])}},{icon:l.jsx(fe.DragOutlined,{}),title:"拖拽模式",active:g===r(425),onClick:()=>{W(r(425))}},{icon:l[r(1283)](fe[r(1836)],{}),title:"线条绘制",active:g==="line-draw",onClick:()=>{W(r(1166))}},{icon:l.jsx(fe.EyeOutlined,{}),title:r(1341),active:g===r(1914),onClick:()=>{W(r(1914))}}],en=D[r(1507)](()=>Se[r(1755)]>0?Se:s?[s]:[],[Se,s]),to=D[r(1507)](()=>{const N=r,k=en();if(k[N(1755)]===0)return;u[N(1947)](R=>k[N(1230)](R.id))[N(1226)](R=>R.id)[N(475)](R=>E(R))},[en,u,E]),xo=D.useCallback(()=>{const N=r,k=en();if(k.length===0)return;[...u[N(1947)](R=>k[N(1230)](R.id))[N(1226)](R=>R.id)][N(696)]()[N(475)](R=>V(R))},[en,u,V]),Kt=D[r(1507)](N=>{const k=r,K=en();K[k(1755)]!==0&&K[k(475)](R=>{const Q=k,O=u.find(se=>se.id===R);!O||O.type==="group"||!O[Q(1641)][Q(1016)][Q(1321)](se=>se[Q(2209)][Q(1592)]===Q(484))||(N==="horizontal"?z(R,{normalStyle:{...O[Q(674)],flipX:!O[Q(674)][Q(1822)]}}):z(R,{normalStyle:{...O[Q(674)],flipY:!O[Q(674)].flipY}}))})},[en,u,z]),mr=en(),it=mr[r(1321)](N=>{const k=r,K=u.find(R=>R.id===N);return K&&K[k(1592)]!==k(504)&&K.contentInfo[k(1016)][k(1321)](R=>R[k(2209)].type===k(484))}),{actionButtonsRow1:vr,actionButtonsRow2:wr}=D[r(2027)](()=>({actionButtonsRow1:[{icon:l[r(1283)](fe[r(908)],{}),title:r(1130),disabled:!s&&Se[r(1755)]===0,onClick:to},{icon:l[r(1283)](fe.DownSquareOutlined,{}),title:r(937),disabled:!s&&Se.length===0,onClick:xo},{icon:l[r(1283)](fe[r(1312)],{}),title:"复制节点",disabled:!s&&Se[r(1755)]===0,onClick:Wt},{icon:l[r(1283)](fe.GroupOutlined,{}),title:r(1343),disabled:Se[r(1755)]<2,onClick:$x},{icon:l[r(1283)](fe.UngroupOutlined,{}),title:"解除组合",disabled:!s&&Se.length===0,onClick:no},{icon:l.jsx(fe[r(668)],{}),title:r(1155),onClick:()=>Ue(!0)},{icon:l[r(1283)](fe[r(1712)],{}),title:r(898),type:"primary",onClick:Xe},{icon:l[r(1283)](fe[r(604)],{}),title:r(1588),disabled:!s&&Se[r(1755)]===0,onClick:()=>{s?P(s):Se.length>0&&(Se.forEach(N=>P(N)),Qe([]))}}],actionButtonsRow2:[{icon:l[r(1283)](fe[r(585)],{}),title:"左对齐",disabled:Se[r(1755)]<2,onClick:()=>In(r(2281))},{icon:l[r(1283)](fe[r(1184)],{}),title:"右对齐",disabled:Se[r(1755)]<2,onClick:()=>In(r(1798))},{icon:l.jsx(fe.VerticalAlignTopOutlined,{}),title:r(1350),disabled:Se[r(1755)]<2,onClick:()=>In(r(1727))},{icon:l[r(1283)](fe.VerticalAlignBottomOutlined,{}),title:r(2052),disabled:Se.length<2,onClick:()=>In(r(978))},{icon:l[r(1283)](fe[r(1431)],{}),title:"水平分布",disabled:(()=>{const N=r;if(Se.length>=2)return!1;if(Se.length===1){const k=u.find(K=>K.id===Se[0]);return!(k?.[N(1592)]===N(504)&&k[N(795)]&&k.children[N(1755)]>=2)}return!0})(),onClick:()=>Xt("horizontal")},{icon:l[r(1283)](fe[r(598)],{}),title:r(1674),disabled:(()=>{const N=r;if(Se[N(1755)]>=2)return!1;if(Se[N(1755)]===1){const k=u[N(517)](K=>K.id===Se[0]);return!(k?.type==="group"&&k.children&&k.children.length>=2)}return!0})(),onClick:()=>Xt(r(1724))},{icon:l[r(1283)](fe[r(1652)],{}),title:r(1362),disabled:!it,onClick:()=>Kt(r(872))},{icon:l[r(1283)](r(1559),{style:{display:"inline-flex",transform:r(415)},children:l[r(1283)](fe[r(1652)],{})}),title:r(808),disabled:!it,onClick:()=>Kt("vertical")}]}),[q,U,g,W,Qe,Se,$x,no,Wt,In,Xt,to,xo,Ue,ze,Xe,s,P,w[r(473)],it,Kt,u]),[pr,oo]=D[r(1595)](!1),[ro,Zt]=D[r(1595)](""),[io,Rt]=D[r(1595)](null);return l[r(948)](r(737),{className:r(1751)+(n?"":r(2267)),children:[!n&&l[r(948)](r(737),{className:r(2256),children:[l.jsxs(p.Space,{children:[yr[r(1226)](N=>l.jsx(p[r(1337)],{title:N.title,children:l.jsx(p.Button,{type:N.active?r(569):"default",icon:N[r(2004)],onClick:N[r(1650)]})},N.title)),l[r(1283)]("div",{className:r(1147)}),l[r(1283)](p[r(1611)],{value:w[r(473)],onChange:B,style:{width:140},dropdownRender:N=>l[r(948)](l.Fragment,{children:[N,l[r(1283)]("div",{className:"border-t border-gray-200 mt-1 pt-1",children:l[r(1283)](p.Button,{type:r(557),size:r(1021),block:!0,onClick:()=>oo(!0),children:r(847)})})]}),children:w.canvases[r(1226)](N=>l[r(1283)](p[r(1611)].Option,{value:N.id,children:N[r(1123)]},N.id))}),l.jsx(p[r(1302)],{icon:l[r(1283)](fe[r(2174)],{}),size:"small",onClick:()=>L(),title:r(1442)}),l[r(1283)](p[r(1337)],{title:r(2140),children:l[r(1283)](p[r(1302)],{icon:l[r(1283)](fe[r(1014)],{}),size:r(1021),onClick:X0})}),l[r(1283)](p.Tooltip,{title:r(1850),children:l[r(1283)](p[r(1302)],{icon:l[r(1283)](fe[r(1849)],{}),size:"small",onClick:()=>a0(!0)})})]}),l[r(948)](p.Space,{direction:r(1724),size:4,children:[l[r(1283)](p[r(1229)],{children:vr[r(1226)](N=>l[r(1283)](p.Tooltip,{title:N[r(2295)],children:l[r(1283)](p[r(1302)],{type:N.active?r(569):N.type||r(1465),icon:N[r(2004)],onClick:k=>{const K=r;N[K(1650)](),k[K(2119)][K(548)]()},disabled:N[r(459)]})},N[r(2295)]))}),l[r(1283)](p[r(1229)],{children:wr.map(N=>l[r(1283)](p[r(1337)],{title:N[r(2295)],children:l[r(1283)](p[r(1302)],{type:N[r(1143)]?r(569):N[r(1592)]||r(1465),icon:N[r(2004)],onClick:k=>{const K=r;N[K(1650)](),k[K(2119)].blur()},disabled:N[r(459)]})},N.title))})]})]}),l[r(1283)](r(737),{ref:d,className:"relative "+(n?"":r(925)),style:n&&o?{display:r(681),justifyContent:r(590),alignItems:"flex-start"}:void 0,onWheel:n&&o?N=>{const k=r;N.preventDefault(),N[k(1199)]();const K=i[k(616)];if(!K)return;const R=Y[k(616)],Q=.1,O=N[k(1232)]>0?Math[k(656)](R-Q,de):Math.min(R+Q,$);K[k(2031)](0,0,O,0)}:void 0,children:l[r(1283)](_t[r(1393)],{ref:i,initialScale:be,initialPositionX:0,initialPositionY:0,minScale:de,maxScale:$,onTransformed:bn,limitToBounds:n&&!!o,centerZoomedOut:n&&!!o,panning:{disabled:!u0&&g!==r(425),velocityDisabled:!0},wheel:{disabled:n&&!!o,step:.1},pinch:{disabled:!1},doubleClick:{disabled:!0},children:({zoomIn:N,zoomOut:k,resetTransform:K})=>l[r(948)](l[r(443)],{children:[!n&&l[r(1283)]("div",{className:"absolute bottom-4 right-4 z-10 bg-white rounded-lg shadow-lg p-2",children:l[r(948)](p[r(1229)],{direction:r(1724),children:[l[r(1283)](p[r(1337)],{title:"放大",children:l[r(1283)](p[r(1302)],{icon:l.jsx(fe[r(1259)],{}),onClick:()=>N()})}),l[r(1283)](p.Tooltip,{title:"缩小",children:l[r(1283)](p[r(1302)],{icon:l[r(1283)](fe[r(827)],{}),onClick:()=>k()})}),l[r(1283)](p[r(1337)],{title:r(1461),children:l.jsx(p[r(1302)],{onClick:()=>K(),children:r(1672)})}),l[r(948)]("div",{className:r(2118),children:[Math.round(v[r(1816)]*100),"%"]})]})}),l[r(1283)](_t[r(1619)],{wrapperStyle:n&&o?{width:o,height:x||f[r(725)]*(Y[r(616)]||1)+"px",position:"relative",overflow:r(2103)}:{width:r(1672),height:n?f.height*(Y[r(616)]||1)+"px":r(1672),position:"relative",overflow:r(n?799:2103)},contentStyle:{width:n?f.width+"px":r(1672),height:n?f[r(725)]+"px":r(1672),display:r(681),alignItems:n?"flex-start":r(805),justifyContent:r(n?590:805)},children:l.jsxs(r(737),{ref:a,"data-canvas":r(1770),className:"relative "+(re?r(1346):"")+" "+(g===r(1166)?r(462):"")+" "+(u0?r(1026):""),style:{width:f[r(434)],height:f.height,flexShrink:0,backgroundColor:f.background,backgroundImage:f[r(2115)]?"url("+f.backgroundImage+")":void 0,backgroundSize:r(899),backgroundPosition:r(805)},onClick:_0,onMouseDown:w0,onDoubleClick:ot,onDragOver:$0,onDragLeave:Nn,onDrop:fn,children:[t&&!n&&l[r(948)]("div",{className:r(2028),style:{width:f[r(434)],height:f.height},children:[l.jsx("img",{src:t,alt:"",className:r(1195),draggable:!1}),l[r(1283)](r(1547),{className:r(2059),width:1920,height:1080,children:l[r(1283)](r(1941),{x:"0",y:"0",width:"1920",height:r(687),fill:r(1501),stroke:"yellow",strokeWidth:"2"})})]}),f[r(1625)]!==!1&&l[r(948)](r(1547),{className:"absolute top-0 left-0 pointer-events-none",width:f[r(434)],height:f.height,children:[l[r(1283)]("defs",{children:l[r(1283)](r(1282),{id:"grid",width:"20",height:"20",patternUnits:r(629),children:l.jsx(r(2159),{d:r(694),fill:"none",stroke:r(1475),opacity:"0.1",strokeWidth:"1"})})}),l[r(1283)](r(1941),{width:r(1672),height:r(1672),fill:"url(#grid)"})]}),u[r(1226)](R=>l[r(1283)](Mo,{node:R,isSelected:g===r(1914)?!1:s===R.id||Se[r(1230)](R.id),data:Ge,onClick:g==="preview"?void 0:Q=>{const O=r;console[O(859)](O(713),R.id,O(753),Me.current),Me[O(616)]!==O(1166)&&(Q[O(785)]?(C(R.id),Qe([...Se,R.id])):(C(R.id),Qe([R.id])))},onMouseDown:g===r(1914)?void 0:Q=>kn(Q,R),onUpdateNode:g==="preview"?void 0:(Q,O)=>z(Q,O),scale:v[r(1816)],enableEventFlow:g===r(1914),eventFlowData:qe,readonly:n},""+R.id)),g==="line-draw"&&Ae[r(861)]&&Ae[r(1635)]&&Ae.end&&l.jsx(r(1547),{className:r(2059),width:f[r(434)],height:f[r(725)],children:l[r(1283)]("line",{x1:Ae[r(1635)].x,y1:Ae[r(1635)].y,x2:Ae[r(1086)].x,y2:Ae[r(1086)].y,stroke:r(1285),strokeWidth:"2",strokeDasharray:r(997),strokeLinecap:"round",strokeLinejoin:r(909)})}),g==="box-select"&&Ie[r(1635)]&&Ie[r(1086)]&&l.jsx(r(737),{className:r(1752),style:{left:Math[r(1050)](Ie[r(1635)].x,Ie.end.x),top:Math[r(1050)](Ie.start.y,Ie[r(1086)].y),width:Math[r(1032)](Ie[r(1086)].x-Ie[r(1635)].x),height:Math.abs(Ie[r(1086)].y-Ie[r(1635)].y),zIndex:9999}})]})})]})},ge)}),l[r(1283)](p[r(1799)],{title:r(898),open:te,onCancel:()=>ze(!1),footer:null,children:l.jsx(p.Form,{layout:r(1724),children:l[r(1283)](p.Form.Item,{label:r(2002),children:l[r(1283)](ql,{value:ne,onChange:N=>{const k=r;ve(!0),Pe(N[k(450)][k(1256)])},rows:10,placeholder:r(936)})})})}),l[r(1283)](p[r(1799)],{title:r(1155),open:Ke,onCancel:()=>Ue(!1),footer:null,children:l[r(948)](p[r(1509)],{layout:r(1724),children:[l[r(1283)](p.Form[r(1251)],{label:"宽度",children:l.jsx(p[r(1845)],{value:f[r(434)],onChange:N=>y({width:N||1920}),min:100,max:5e3,style:{width:r(1672)}})}),l[r(1283)](p[r(1509)][r(1251)],{label:"高度",children:l.jsx(p[r(1845)],{value:f[r(725)],onChange:N=>y({height:N||1080}),min:100,max:5e3,style:{width:r(1672)}})}),l[r(1283)](p[r(1509)][r(1251)],{label:"显示网格",children:l.jsx(p[r(814)],{checked:f[r(1625)]!==!1,onChange:N=>y({showGrid:N})})}),l[r(1283)](p.Form[r(1251)],{label:r(1307),children:l[r(948)]("div",{className:"flex items-center gap-2",children:[l[r(1283)](Wn,{value:f[r(1418)]||r(790),onChange:N=>y({background:N.toHexString()})}),l.jsx(p[r(1852)],{value:f[r(1418)],onChange:N=>y({background:N[r(450)].value}),placeholder:r(2244)})]})}),l.jsxs(p[r(1509)][r(1251)],{label:r(2247),children:[l[r(948)]("div",{className:"flex items-center gap-2",children:[l[r(1283)](p[r(933)],{accept:r(2242),showUploadList:!1,beforeUpload:N=>{const k=r;if(!N[k(1592)][k(1438)](k(1263)))return p[k(1118)][k(1487)](k(1898)),!1;const R=new FileReader;return R[k(654)]=Q=>{const O=k,Z=Q.target?.[O(536)];y({backgroundImage:Z}),p[O(1118)].success(O(864))},R[k(1265)](N),!1},children:l[r(1283)](p[r(1302)],{icon:l.jsx(fe[r(1849)],{}),children:"上传图片"})}),l.jsx(p[r(1852)],{value:f[r(2115)],onChange:N=>y({backgroundImage:N[r(450)].value}),placeholder:r(735),style:{flex:1}}),f[r(2115)]&&l.jsx(p[r(1302)],{icon:l[r(1283)](fe.CloseOutlined,{}),onClick:()=>y({backgroundImage:void 0}),danger:!0,size:r(1021)})]}),f.backgroundImage&&l[r(1283)](r(737),{className:r(2175),style:{maxWidth:r(1672)},children:l[r(1283)]("img",{src:f[r(2115)],alt:"背景预览",style:{maxWidth:r(1672),maxHeight:120,objectFit:r(1220)}})})]})]})}),l[r(1283)](p[r(1799)],{title:r(1747),open:pr,onCancel:()=>{oo(!1),Rt(null),Zt("")},footer:null,width:760,children:l[r(1283)](p[r(1663)],{items:[{key:r(568),label:r(1793),children:l[r(948)](l[r(443)],{children:[l[r(1283)](p[r(1280)],{dataSource:w[r(568)],renderItem:N=>l[r(1283)](p[r(1280)].Item,{actions:[io===N.id?l[r(1283)](p[r(1302)],{type:r(569),size:r(1021),onClick:()=>{j(N.id,ro),Rt(null)},children:"保存"}):l[r(1283)](p.Button,{type:r(2223),icon:l.jsx(fe.EditOutlined,{}),size:r(1021),onClick:()=>{const k=r;Rt(N.id),Zt(N[k(1123)])}}),w[r(568)][r(1755)]>1&&l.jsx(p.Button,{type:"text",danger:!0,icon:l[r(1283)](fe.DeleteOutlined,{}),size:r(1021),onClick:()=>S(N.id)})][r(1947)](Boolean),children:io===N.id?l[r(1283)](p[r(1852)],{value:ro,onChange:k=>Zt(k[r(450)].value),size:r(1021),style:{width:200}}):l[r(948)]("span",{style:{fontWeight:w[r(473)]===N.id?r(1851):r(2249)},children:[N[r(1123)]," ",w.currentCanvasId===N.id&&r(921)]})})}),l[r(1283)](r(737),{className:r(2029),children:l[r(1283)](p.Button,{type:r(569),icon:l[r(1283)](fe.PlusOutlined,{}),onClick:()=>L(),children:"新建画布"})})]})},{key:"siblings",label:r(1697),children:l[r(1283)](Hl,{})}]})}),l[r(1283)](p[r(1799)],{title:r(1850),open:Oe,onOk:G0,onCancel:()=>{a0(!1),e0(""),x0(!1)},destroyOnClose:!0,width:600,children:l[r(948)](r(737),{className:r(1551),children:[l[r(948)](r(737),{children:[l[r(1283)]("p",{className:r(554),children:"选择 JSON 文件导入:"}),l[r(1283)](r(1933),{type:r(2129),accept:r(1541),onChange:N=>{const k=r,K=N[k(450)][k(1775)]?.[0];K&&S0(K)},className:r(1708)})]}),l[r(1283)]("div",{className:r(1150),children:"或"}),l[r(948)](r(737),{children:[l[r(1283)]("p",{className:r(554),children:r(1496)}),l[r(1283)]("textarea",{value:Fe,onChange:N=>e0(N.target[r(1256)]),placeholder:r(1081),className:r(1332)})]}),l.jsxs("div",{className:r(455),children:[l[r(1283)](r(1933),{type:r(498),id:"importAsNewCanvas",checked:n0,onChange:N=>x0(N.target[r(1928)]),className:r(1388)}),l[r(1283)](r(1772),{htmlFor:"importAsNewCanvas",className:r(2269),children:"导入为新画布(不覆盖当前画布)"})]})]})})]})},{Option:cx}=p[c(1611)];function yi(e){return Array[c(1996)](e)}function Rl(e){const n=c,t=new Set;return e.forEach(o=>Object[n(1485)](o).forEach(x=>t[n(1536)](x))),Array[n(1124)](t)}function Jl(e,n){const t=c;return e[t(1226)]((o,x)=>{const r=t,i=o[n],a=o[r(1123)];return{label:String(a??"项 "+(x+1)),value:typeof i=="string"||typeof i===r(825)?i:String(i)}})}function mi(e,n=""){const t=c,o=[];for(const[x,r]of Object[t(1764)](e)){const i=n?n+"."+x:x;r!==null&&typeof r===t(990)&&!Array.isArray(r)?o[t(573)](...mi(r,i)):o[t(573)]({paramsCode:i,paramsName:i,value:r})}return o}function Ql(e,n,t){if(yi(e)){if(n!=null&&t!=null){const o=e.find(x=>x[n]===t);if(o)return o}return{}}return e}const Fl=({material:e,onSave:n})=>{const t=c,o=e,x=o.content||{},r=s0(m=>m.dataPool),[i,a]=D[t(1595)]({label:x.label||"",value:x[t(1256)]||"",valueSourceCode:x[t(1562)]||"",unit:x[t(1304)]||"",decimals:x[t(1390)]??2,labelFontSize:x.labelStyle?.[t(2134)]||14,labelFontWeight:x[t(2008)]?.[t(1745)]||t(1851),labelColor:x[t(2008)]?.color||t(516),valueFontSize:x.valueStyle?.fontSize||14,valueFontWeight:x[t(1878)]?.[t(1745)]||t(2249),valueColor:x[t(1878)]?.[t(486)]||t(1285),boundDatasetId:x[t(1905)]||"",boundDatasetBindCode:x[t(736)]||"",boundDatasetBindValue:x[t(1539)]??null}),d=D[t(2027)](()=>r[t(517)](C=>C.id===i.boundDatasetId),[r,i.boundDatasetId]),u=d?yi(d[t(1673)]):!1,s=D[t(2027)](()=>{const m=t;if(!d)return[];const C=Ql(d.sample,i[m(736)],i[m(1539)]);return mi(C)},[d,i[t(736)],i[t(1539)]]);D[t(1646)](()=>{const m=t;a({label:x[m(1772)]||"",value:x[m(1256)]||"",valueSourceCode:x[m(1562)]||"",unit:x[m(1304)]||"",decimals:x.decimals??2,labelFontSize:x[m(2008)]?.fontSize||14,labelFontWeight:x[m(2008)]?.[m(1745)]||m(1851),labelColor:x[m(2008)]?.[m(486)]||m(516),valueFontSize:x[m(1878)]?.[m(2134)]||14,valueFontWeight:x.valueStyle?.[m(1745)]||"normal",valueColor:x[m(1878)]?.[m(486)]||m(1285),boundDatasetId:x[m(1905)]||"",boundDatasetBindCode:x.boundDatasetBindCode||"",boundDatasetBindValue:x[m(1539)]??null})},[e.id]);const b=(m,C)=>{a(z=>({...z,[m]:C}))},g=m=>{a(C=>({...C,boundDatasetId:m,boundDatasetBindCode:"",boundDatasetBindValue:null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetId:m||void 0,boundDatasetBindCode:void 0,boundDatasetBindValue:void 0,valueSourceCode:void 0}})},0)},h=m=>{a(C=>({...C,boundDatasetBindCode:m||"",boundDatasetBindValue:null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetBindCode:m||void 0,boundDatasetBindValue:void 0,valueSourceCode:void 0}})},0)},v=m=>{a(C=>({...C,boundDatasetBindValue:m??null,valueSourceCode:""})),setTimeout(()=>{n({content:{...x,boundDatasetBindValue:m??void 0,valueSourceCode:void 0}})},0)},f=m=>{const C=t,z=s[C(517)](E=>E[C(1847)]===m),P=z?.unit||"";a(E=>({...E,valueSourceCode:m,unit:P,value:String(z?.[C(1256)]||"")})),setTimeout(()=>{n({content:{...x,valueSourceCode:m,value:String(z?.[C(1256)]||""),unit:P}})},0)},w=()=>{const m=t;n({content:{...x,label:i[m(1772)],value:i[m(1256)],valueSourceCode:i[m(1562)],unit:i.unit,decimals:i[m(1390)],boundDatasetId:i[m(1905)]||void 0,boundDatasetBindCode:i[m(736)]||void 0,boundDatasetBindValue:i[m(1539)]??void 0,labelStyle:{fontSize:i.labelFontSize,fontWeight:i[m(1587)],color:i[m(1134)]},valueStyle:{fontSize:i[m(1951)],fontWeight:i.valueFontWeight,color:i[m(1602)]}}})},M=d&&u?Rl(d.sample):[],y=d&&u&&i[t(736)]?Jl(d[t(1673)],i[t(736)]):[];return l[t(948)](t(737),{className:t(1551),children:[l[t(1283)](p.Divider,{style:{marginTop:0},children:t(1131)}),l[t(948)](p.Form,{layout:t(1724),children:[l[t(1283)](p.Form[t(1251)],{label:"标签文本 (label)",children:l[t(1283)](p[t(1852)],{value:i.label,onChange:m=>b(t(1772),m[t(450)].value),onBlur:w,placeholder:t(1165)})}),l.jsx(p.Form[t(1251)],{label:t(416),help:t(2113),children:l[t(1283)](p[t(1611)],{allowClear:!0,placeholder:r[t(1755)]===0?t(1428):t(2101),value:i[t(1905)]||void 0,onChange:g,style:{width:t(1672)},options:r[t(1226)](m=>({label:m[t(1123)],value:m.id}))})}),d&&u&&l[t(948)](l[t(443)],{children:[l.jsx(p.Form[t(1251)],{label:t(1385),help:t(912),children:l[t(1283)](p[t(1611)],{allowClear:!0,placeholder:t(896),value:i[t(736)]||void 0,onChange:h,style:{width:"100%"},options:M[t(1226)](m=>({label:m,value:m}))})}),i[t(736)]&&l[t(1283)](p.Form[t(1251)],{label:"绑定值",help:t(479),children:l.jsx(p.Select,{allowClear:!0,showSearch:!0,placeholder:t(826),value:i.boundDatasetBindValue??void 0,onChange:v,style:{width:t(1672)},options:y,filterOption:(m,C)=>String(C?.label??"")[t(1725)]().includes(m.toLowerCase()),onInputKeyDown:m=>{const C=t;m[C(427)]===" "&&m[C(1199)]()}})})]}),l[t(1283)](p[t(1509)][t(1251)],{label:t(1875),help:t(d?992:1930),children:l.jsx(p.Select,{value:i[t(1562)]||void 0,onChange:f,placeholder:d?"选择数据字段":"请先绑定数据集",allowClear:!0,disabled:!d,style:{width:t(1672)},options:s.map(m=>({value:m[t(1847)],label:m.paramsName}))})}),l[t(1283)](p.Form.Item,{label:i[t(1562)]?t(935):t(1383),help:i[t(1562)]?t(673):t(1979),children:l[t(1283)](p[t(1852)],{value:i[t(1256)],onChange:m=>b(t(1256),m[t(450)].value),onBlur:w,placeholder:i.valueSourceCode?t(1421):t(1462),disabled:!!i[t(1562)],variant:i[t(1562)]?t(2230):void 0})}),l[t(1283)](p[t(1509)][t(1251)],{label:"单位",help:"优先从绑定数据自动获取,也可手动输入",children:l[t(1283)](p[t(1852)],{value:i.unit,onChange:m=>b(t(1304),m.target[t(1256)]),onBlur:w,placeholder:t(761),suffix:i.valueSourceCode&&s.length>0?l[t(1283)](p[t(549)],{color:t(564),style:{marginRight:-8},children:"自动"}):null})}),l[t(1283)](p[t(1509)].Item,{label:"保留小数位",help:"数值格式化时保留的小数位数,-1表示不格式化",children:l.jsx(p.InputNumber,{value:i[t(1390)],onChange:m=>b("decimals",m??2),onBlur:w,min:-1,max:10,style:{width:t(1672)}})})]}),l[t(1283)](p.Divider,{children:t(1537)}),l[t(948)](p[t(1509)],{layout:"vertical",children:[l[t(948)](p.Space,{children:[l.jsx(p[t(1509)].Item,{label:t(2132),children:l[t(1283)](p.InputNumber,{value:i[t(1629)],onChange:m=>b(t(1629),m||14),onBlur:w,min:8,max:72})}),l[t(1283)](p[t(1509)][t(1251)],{label:t(774),children:l[t(948)](p.Select,{value:i[t(1587)],onChange:m=>{b("labelFontWeight",m),setTimeout(w,0)},style:{width:100},children:[l[t(1283)](cx,{value:t(2249),children:"正常"}),l[t(1283)](cx,{value:t(1851),children:"粗体"})]})})]}),l[t(1283)](p[t(1509)][t(1251)],{label:t(1176),children:l.jsxs(t(737),{className:t(455),children:[l.jsx(Wn,{value:i[t(1134)]||t(516),onChange:m=>{b("labelColor",m.toHexString())},onChangeComplete:m=>{const C=t;n({content:{...x,label:i[C(1772)],value:i[C(1256)],valueSourceCode:i[C(1562)],unit:i.unit,decimals:i.decimals,boundDatasetId:i[C(1905)]||void 0,boundDatasetBindCode:i[C(736)]||void 0,boundDatasetBindValue:i[C(1539)]??void 0,labelStyle:{fontSize:i.labelFontSize,fontWeight:i[C(1587)],color:m[C(962)]()},valueStyle:{fontSize:i[C(1951)],fontWeight:i.valueFontWeight,color:i[C(1602)]}}})}}),l.jsx(p[t(1852)],{value:i[t(1134)],onChange:m=>b(t(1134),m.target[t(1256)]),onBlur:w,placeholder:t(516),style:{width:100}})]})})]}),l[t(1283)](p.Divider,{children:"值样式"}),l[t(948)](p[t(1509)],{layout:"vertical",children:[l[t(948)](p[t(1229)],{children:[l.jsx(p[t(1509)][t(1251)],{label:t(2132),children:l[t(1283)](p[t(1845)],{value:i[t(1951)],onChange:m=>b("valueFontSize",m||14),onBlur:w,min:8,max:72})}),l[t(1283)](p[t(1509)].Item,{label:"字体粗细",children:l[t(948)](p[t(1611)],{value:i.valueFontWeight,onChange:m=>{b(t(1064),m),setTimeout(w,0)},style:{width:100},children:[l[t(1283)](cx,{value:"normal",children:"正常"}),l[t(1283)](cx,{value:"bold",children:"粗体"})]})})]}),l.jsx(p[t(1509)][t(1251)],{label:t(1176),children:l.jsxs(t(737),{className:t(455),children:[l[t(1283)](Wn,{value:i[t(1602)]||t(1285),onChange:m=>{b(t(1602),m.toHexString())},onChangeComplete:m=>{const C=t;n({content:{...x,label:i[C(1772)],value:i[C(1256)],valueSourceCode:i[C(1562)],unit:i[C(1304)],decimals:i[C(1390)],boundDatasetId:i[C(1905)]||void 0,boundDatasetBindCode:i[C(736)]||void 0,boundDatasetBindValue:i[C(1539)]??void 0,labelStyle:{fontSize:i[C(1629)],fontWeight:i.labelFontWeight,color:i.labelColor},valueStyle:{fontSize:i[C(1951)],fontWeight:i.valueFontWeight,color:m[C(962)]()}}})}}),l[t(1283)](p[t(1852)],{value:i[t(1602)],onChange:m=>b(t(1602),m.target[t(1256)]),onBlur:w,placeholder:t(1285),style:{width:100}})]})})]})]})},_l=({material:e,onSave:n})=>{const t=c,o=e,[x,r]=D[t(1595)]({name:e[t(1123)],src:o[t(442)]||"",backgroundColor:o[t(973)]||"",fillColor:o.fillColor||""});D[t(1646)](()=>{const d=t;r({name:e.name,src:o[d(442)]||"",backgroundColor:o.backgroundColor||"",fillColor:o[d(883)]||""})},[e.id]);const i=(d,u)=>{r(s=>({...s,[d]:u}))},a=()=>{const d=t;n({name:x.name,src:x[d(442)],backgroundColor:x[d(973)]})};return l[t(948)]("div",{className:t(1551),children:[l[t(1283)](p.Divider,{style:{marginTop:0},children:"图片属性"}),l.jsxs(p[t(1509)],{layout:t(1724),children:[l[t(1283)](p.Form[t(1251)],{label:t(1530),children:l[t(1283)](p.Input,{value:x[t(1123)],onChange:d=>i(t(1123),d[t(450)][t(1256)]),onBlur:a})}),l.jsx(p[t(1509)][t(1251)],{label:t(1359),children:l[t(1283)](p[t(1852)][t(794)],{value:x[t(442)],onChange:d=>i(t(442),d.target.value),onBlur:a,rows:4,placeholder:t(987)})}),l[t(1283)](p[t(1509)][t(1251)],{label:t(1826),children:l.jsxs(t(737),{className:t(455),children:[l.jsx(Wn,{value:x.fillColor||t(1285),onChange:d=>{const u=t,s=d.toHexString();i("fillColor",s),n({name:x[u(1123)],src:x.src,backgroundColor:x.backgroundColor,fillColor:s})}}),l.jsx(p[t(1852)],{value:x[t(883)],onChange:d=>i(t(883),d[t(450)][t(1256)]),onBlur:a,placeholder:t(1285)})]})}),l[t(1283)](p[t(1509)][t(1251)],{label:"背景颜色",children:l[t(948)](t(737),{className:t(455),children:[l[t(1283)](Wn,{value:x.backgroundColor||t(1285),onChange:d=>{const u=t,s=d.toHexString();i(u(973),s),n({name:x[u(1123)],src:x[u(442)],backgroundColor:s,fillColor:x.fillColor})}}),l.jsx(p[t(1852)],{value:x[t(973)],onChange:d=>i(t(973),d[t(450)][t(1256)]),onBlur:a,placeholder:"#1890ff"})]})})]})]})},{Option:$l}=p[c(1611)],ed=({material:e,onSave:n})=>{const t=c,o=e[t(1633)]||{},[x,r]=D[t(1595)]({lineWeight:o.lineWeight||o[t(911)]||2,color:o[t(486)]||t(516),lineType:o[t(1584)]||t(1091),startX:o[t(468)]??0,startY:o[t(642)]??0,endX:o[t(1042)]??100,endY:o[t(1316)]??0,rotate:o[t(740)]??0}),i=JSON[t(1153)]({sw:o[t(2122)]??o[t(911)],c:o[t(486)],t:o.lineType,sx:o[t(468)],sy:o[t(642)],ex:o[t(1042)],ey:o.endY,r:o[t(740)]});D[t(1646)](()=>{const u=t;r({lineWeight:o[u(2122)]||o[u(911)]||2,color:o[u(486)]||u(516),lineType:o.lineType||u(1091),startX:o[u(468)]??0,startY:o[u(642)]??0,endX:o.endX??100,endY:o[u(1316)]??0,rotate:o[u(740)]??0})},[e.id,i]);const a=u=>{const s=t,b={...x,...u};r(b),n({config:{...o,thickness:b.lineWeight,lineWeight:b.lineWeight,color:b.color,lineType:b[s(1584)],startX:b[s(468)],startY:b[s(642)],endX:b.endX,endY:b[s(1316)],rotate:b.rotate}})},d=[{value:t(1091),label:"实线",desc:t(1915)},{value:t(1870),label:"虚线",desc:t(1472)},{value:t(805),label:"点画线(中心线)",desc:t(570)},{value:"phantom",label:t(1791),desc:t(1684)},{value:"dot",label:"点线",desc:t(1656)},{value:t(1366),label:t(800),desc:t(1213)}];return l.jsxs(t(737),{className:t(1551),children:[l[t(1283)](p[t(932)],{style:{marginTop:0},children:t(803)}),l[t(948)](p[t(1509)],{layout:t(1724),children:[l.jsxs("div",{className:t(944),children:[l[t(1283)](p[t(1509)].Item,{label:t(1733),className:t(554),children:l.jsx(p[t(1845)],{value:x[t(468)],onChange:u=>a({startX:u??0}),style:{width:t(1672)},step:10**-yn})}),l[t(1283)](p.Form[t(1251)],{label:t(2171),className:"mb-2",children:l[t(1283)](p[t(1845)],{value:x[t(642)],onChange:u=>a({startY:u??0}),style:{width:t(1672)},step:10**-yn})}),l[t(1283)](p[t(1509)][t(1251)],{label:t(1627),className:t(554),children:l[t(1283)](p[t(1845)],{value:x.endX,onChange:u=>a({endX:u??100}),style:{width:t(1672)},step:10**-yn})}),l[t(1283)](p[t(1509)][t(1251)],{label:t(413),className:"mb-2",children:l[t(1283)](p[t(1845)],{value:x[t(1316)],onChange:u=>a({endY:u??0}),style:{width:t(1672)},step:10**-yn})})]}),l.jsx(p[t(1509)][t(1251)],{label:t(584),className:"mt-4",children:l[t(948)](p[t(1229)],{children:[l[t(1283)](p[t(1302)],{size:t(1021),onClick:()=>{const u=t,s=o[u(468)]??x[u(468)],b=o[u(642)]??x.startY,g=o.endX??x[u(1042)],h=o[u(1316)]??x[u(1316)],v=g-s,f=h-b,w=Math[u(2282)](v*v+f*f),M=v>=0?1:-1;a({endX:s+M*w,endY:b})},title:t(589),children:"水平"}),l.jsx(p[t(1302)],{size:t(1021),onClick:()=>{const u=t,s=o[u(468)]??x.startX,b=o[u(642)]??x[u(642)],g=o[u(1042)]??x.endX,h=o.endY??x[u(1316)],v=g-s,f=h-b,w=Math.sqrt(v*v+f*f),M=f>=0?1:-1;a({endX:s,endY:b+M*w})},title:t(1057),children:"垂直"}),l[t(1283)](p[t(1302)],{size:t(1021),onClick:()=>{const u=t,s=o.startX??x.startX,b=o[u(642)]??x.startY,g=o.endX??x[u(1042)],h=o[u(1316)]??x.endY;a({startX:g,startY:h,endX:s,endY:b})},title:"交换起点和终点",children:"反向"})]})}),l[t(1283)](p[t(1509)][t(1251)],{label:t(580),help:t(2250),children:l.jsx(p[t(1845)],{value:x.rotate,onChange:u=>{const s=t,b=u??0,g=o.startX??x[s(468)],h=o[s(642)]??x[s(642)],v=o[s(1042)]??x.endX,f=o[s(1316)]??x[s(1316)],w=v-g,M=f-h,y=Math[s(2282)](w*w+M*M),m=b*Math.PI/180;a({rotate:b,endX:he(g+y*Math.cos(m)),endY:he(h+y*Math[s(1310)](m))})},style:{width:120}})})]}),l[t(1283)](p[t(932)],{children:t(1626)}),l[t(948)](p[t(1509)],{layout:"vertical",children:[l[t(1283)](p[t(1509)][t(1251)],{label:"线型",help:t(2003),children:l[t(1283)](p.Select,{value:x.lineType,onChange:u=>a({lineType:u}),children:d[t(1226)](u=>l[t(1283)]($l,{value:u[t(1256)],children:l[t(948)](t(737),{className:"flex flex-col",children:[l[t(1283)](t(1559),{children:u[t(1772)]}),l[t(1283)](t(1559),{className:t(868),children:u[t(1666)]})]})},u.value))})}),l[t(1283)](p.Form[t(1251)],{label:"线宽(像素)",children:l.jsx(p[t(1845)],{value:x[t(2122)],onChange:u=>a({lineWeight:u||2}),min:1,max:20,style:{width:120}})}),l[t(1283)](p[t(1509)][t(1251)],{label:"颜色",children:l.jsxs(t(737),{className:t(455),children:[l[t(1283)](Wn,{value:x[t(486)]||"#d9d9d9",onChange:u=>a({color:u[t(962)]()})}),l.jsx(p.Input,{value:x[t(486)],onChange:u=>a({color:u.target.value}),placeholder:"#d9d9d9",style:{width:100}})]})})]})]})};function vi(e){return Array[c(1996)](e)}function nd(e){const n=c,t=new Set;return e.forEach(o=>Object.keys(o)[n(475)](x=>t[n(1536)](x))),Array.from(t)}function td(e,n){return e.map((t,o)=>{const x=_0x51e5,r=t[n],i=t[x(1123)];return{label:String(i??"项 "+(o+1)),value:typeof r===x(2150)||typeof r=="number"?r:String(r)}})}function xd(e,n,t){if(vi(e)){if(n!=null&&t!=null){const o=e.find(x=>x[n]===t);if(o)return o}return{}}return e}const wi=({status:e,onUpdate:n,onAppendToExpression:t})=>{const o=c,x=s0(f=>f[o(1761)]),r=x[o(517)](f=>f.id===e.boundDatasetId),i=r?vi(r[o(1673)]):!1,a=r?xd(r[o(1673)],e.boundDatasetBindCode,e.boundDatasetBindValue):{},d=Ar(a),u=f=>{const w=o,M="data."+f;t?t(M):n({expression:""+(e[w(817)]||"")+M})},s=f=>{n({boundDatasetId:f??null,boundDatasetBindCode:null,boundDatasetBindValue:null})},b=f=>{n({boundDatasetBindCode:f??null,boundDatasetBindValue:null})},g=f=>{n({boundDatasetBindValue:f??null})},h=r&&i?nd(r[o(1673)]):[],v=r&&i&&e.boundDatasetBindCode?td(r[o(1673)],e.boundDatasetBindCode):[];return l[o(948)](l[o(443)],{children:[l[o(1283)](p[o(1509)].Item,{label:o(416),extra:x[o(1755)]===0?"请先在顶部工具栏点击「数据池」添加至少一个数据集(JSON 对象模板);宿主项目也可通过 initialScheme.dataPool 或 useEditorStore.getState().setDataPool() 注入。":o(1729),children:l[o(1283)](p[o(1611)],{allowClear:!0,showSearch:!0,placeholder:x[o(1755)]===0?o(1698):o(871),value:e[o(1905)]??void 0,options:x[o(1226)](f=>({label:f[o(1123)],value:f.id})),onChange:s,filterOption:(f,w)=>String(w?.label??"").toLowerCase()[o(1230)](f[o(1725)]()),onInputKeyDown:f=>{const w=o;f.key===" "&&f[w(1199)]()}})}),r&&i&&l[o(948)](l[o(443)],{children:[l[o(1283)](p[o(1509)][o(1251)],{label:"绑定字段",extra:o(912),children:l[o(1283)](p[o(1611)],{allowClear:!0,placeholder:o(896),value:e.boundDatasetBindCode??void 0,options:h[o(1226)](f=>({label:f,value:f})),onChange:b})}),e[o(736)]&&l[o(1283)](p[o(1509)][o(1251)],{label:o(1790),extra:o(479),children:l[o(1283)](p[o(1611)],{allowClear:!0,showSearch:!0,placeholder:o(826),value:e[o(1539)]??void 0,options:v,onChange:g,filterOption:(f,w)=>String(w?.label??"")[o(1725)]().includes(f[o(1725)]()),onInputKeyDown:f=>{const w=o;f[w(427)]===" "&&f[w(1199)]()}})})]}),d[o(1755)]>0&&l[o(1283)](p[o(1509)][o(1251)],{label:o(1695),children:l[o(1283)](p[o(1229)],{size:[4,4],wrap:!0,children:d.map(f=>l[o(1283)](p[o(549)],{className:o(2214),onClick:()=>u(f),children:o(2147)+f},f))})})]})},pi=({material:e,onSave:n})=>{const t=c;switch(e[t(1592)]){case t(1404):return l.jsx(Fl,{material:e,onSave:n});case t(484):return l[t(1283)](_l,{material:e,onSave:n});case t(1044):return l[t(1283)](ed,{material:e,onSave:n});default:return l[t(1283)](t(737),{className:t(1056),children:t(1581)})}},{Panel:zi}=p[c(1037)],{TextArea:od}=p[c(1852)],rd=({node:e,updateNode:n,materials:t})=>{const o=c,x=t[o(1947)](b=>b[o(1592)]!==o(2165)||!b[o(1633)]?.[o(1349)]),r=(b,g)=>{const h=o,v=e[h(795)]?.map(f=>f.id===b?{...f,contentInfo:{...f.contentInfo,statusList:g}}:f);n(e.id,{children:v})},i=b=>{const g=o,h=e[g(795)]?.[g(517)](f=>f.id===b);if(!h)return;const v={id:je[g(2131)](),name:"状态"+(h[g(1641)][g(1016)][g(1755)]+1),expression:h.contentInfo[g(1016)].length===0?g(1794):g(923),material:{...x[0],id:je[g(2131)]()},boundDatasetId:null,animation:{type:g(1501)}};r(b,[...h[g(1641)][g(1016)],v])},a=(b,g)=>{const h=o,v=e[h(795)]?.[h(517)](w=>w.id===b);if(!v)return;const f=v[h(1641)][h(1016)][h(1947)](w=>w.id!==g);r(b,f)},d=(b,g,h)=>{const v=o,f=e.children?.[v(517)](M=>M.id===b);if(!f)return;const w=f[v(1641)].statusList.map(M=>M.id===g?{...M,...h}:M);r(b,w)},u=(b,g,h)=>{const v=o,f=e[v(795)]?.[v(517)](y=>y.id===b);if(!f)return;const w=f.contentInfo[v(1016)][v(1167)](y=>y.id===g);if(w===-1)return;const M=[...f[v(1641)].statusList];h==="up"&&w>0?[M[w],M[w-1]]=[M[w-1],M[w]]:h===v(1325)&&w<M.length-1&&([M[w],M[w+1]]=[M[w+1],M[w]]),r(b,M)},s=(b,g,h)=>{const v=o,f=t.find(w=>w.id===h);f&&d(b,g,{material:{...f,id:je[v(2131)]()}})};return l.jsxs(o(737),{className:"space-y-4",children:[l[o(1283)]("div",{className:o(1389),children:l.jsxs(o(737),{className:o(1830),children:[l[o(1283)](o(870),{children:o(931)}),o(1065)]})}),l.jsx(p.Collapse,{ghost:!0,children:e[o(795)]?.[o(1226)]((b,g)=>l[o(1283)](zi,{header:l[o(948)]("div",{className:"flex items-center justify-between w-full pr-4",children:[l[o(948)](o(1559),{className:o(1920),children:[o(780),g+1]}),l[o(948)](p[o(549)],{color:"blue",style:{fontSize:o(1326),padding:"0 4px"},children:[b.contentInfo[o(1016)][o(1755)],o(779)]})]}),children:l[o(948)](o(737),{className:o(2292),children:[l[o(948)](o(737),{className:o(1893),children:[l.jsx(o(1559),{className:o(665),children:o(1967)}),l[o(1283)](p[o(1302)],{type:o(569),size:o(1021),icon:l[o(1283)](fe[o(2174)],{}),onClick:()=>i(b.id),children:"添加状态"})]}),b[o(1641)][o(1016)][o(1755)]===0?l[o(1283)](o(737),{className:o(2260),children:"暂无状态,点击上方按钮添加"}):l[o(1283)](p.Collapse,{ghost:!0,children:b.contentInfo.statusList[o(1226)]((h,v)=>l[o(1283)](zi,{header:l[o(948)](o(737),{className:o(455),children:[l[o(1283)](o(1559),{className:o(1512),children:v+1}),l[o(1283)](o(1559),{className:o(1478),children:h[o(1123)]}),l[o(1283)](p[o(549)],{color:o(1465),className:o(452),children:h[o(2209)][o(1592)]})]}),extra:l[o(948)](p.Space,{size:"small",onClick:f=>f[o(1199)](),children:[l[o(1283)](p[o(1302)],{type:o(2223),size:"small",icon:l[o(1283)](fe[o(633)],{}),disabled:v===0,onClick:f=>{f[o(1199)](),u(b.id,h.id,"up")}}),l[o(1283)](p[o(1302)],{type:o(2223),size:"small",icon:l.jsx(fe[o(2057)],{}),disabled:v===b[o(1641)][o(1016)][o(1755)]-1,onClick:f=>{const w=o;f[w(1199)](),u(b.id,h.id,w(1325))}}),l.jsx(p[o(1302)],{type:o(2223),size:"small",danger:!0,icon:l[o(1283)](fe[o(604)],{}),onClick:f=>{f[o(1199)](),a(b.id,h.id)}})]}),children:l[o(948)](p.Form,{layout:o(1724),children:[l[o(1283)](p.Form[o(1251)],{label:o(942),children:l[o(1283)](p.Input,{value:h[o(1123)],onChange:f=>d(b.id,h.id,{name:f[o(450)][o(1256)]}),placeholder:o(500)})}),l[o(1283)](wi,{status:h,onUpdate:f=>d(b.id,h.id,f)}),l[o(1283)](p.Form[o(1251)],{label:o(2018),help:o(1926),children:l[o(1283)](od,{value:h.expression,onChange:f=>d(b.id,h.id,{expression:f[o(450)][o(1256)]}),rows:3,placeholder:"return true;"})}),l[o(1283)](p[o(1509)][o(1251)],{label:o(750),children:l.jsxs(o(737),{className:o(455),children:[l.jsx(p[o(549)],{color:"blue",children:h[o(2209)][o(1123)]}),l.jsx(p[o(549)],{color:o(1465),children:h[o(2209)][o(1592)]}),l[o(1283)](p[o(1611)],{placeholder:"选择新物料",style:{width:150},value:void 0,onChange:f=>f&&s(b.id,h.id,f),options:x[o(1226)](f=>({value:f.id,label:f[o(1123)]+" ("+f[o(1592)]+")"}))})]})}),l[o(1283)](p.Divider,{style:{margin:o(1946)}}),l[o(948)](o(737),{className:o(1510),children:[l[o(1283)](o(737),{className:"flex items-center justify-between mb-2",children:l[o(1283)](o(1559),{className:o(1212),children:o(1358)})}),l[o(1283)](p[o(1509)][o(1251)],{label:o(2232),className:o(554),children:l.jsx(p.Select,{value:h[o(1434)]?.[o(1592)]||"none",onChange:f=>d(b.id,h.id,{animation:{...h[o(1434)]||{type:o(1501)},type:f}}),options:[{label:"无",value:o(1501)},{label:"闪烁",value:"blink"}]})}),h[o(1434)]?.[o(1592)]===o(1068)&&l[o(948)](l[o(443)],{children:[l[o(1283)](p.Form.Item,{label:o(2243),className:o(554),children:l[o(1283)](p.InputNumber,{min:200,max:1e4,step:100,value:h.animation[o(1163)]??1e3,onChange:f=>d(b.id,h.id,{animation:{...h[o(1434)],duration:f??1e3}})})}),l[o(1283)](p[o(1509)][o(1251)],{label:o(1523),className:o(618),children:l[o(1283)](p.InputNumber,{min:0,max:1,step:.1,value:h[o(1434)][o(1814)]??.3,onChange:f=>d(b.id,h.id,{animation:{...h[o(1434)],minOpacity:f??.3}})})})]})]}),l.jsx(p[o(932)],{style:{margin:"12px 0"}}),l.jsxs(o(737),{className:"bg-gray-50 rounded-lg p-3 border border-gray-200",children:[l.jsxs(o(737),{className:o(1502),children:[l[o(1283)](o(1559),{className:o(1212),children:o(2183)}),l[o(1283)](p[o(549)],{children:h[o(2209)].name})]}),l.jsx(pi,{material:h[o(2209)],onSave:f=>{const w={...h.material,...f};d(b.id,h.id,{material:w})}})]})]})},h.id))})]})},b.id))})]})};function i0(e){const n=c;if(typeof e===n(2150)||typeof e===n(825))return""+e;let t="";if(Array[n(1996)](e))for(let o=0,x;o<e[n(1755)];o++)(x=i0(e[o]))!==""&&(t+=(t&&" ")+x);else for(let o in e)e[o]&&(t+=(t&&" ")+o);return t}var id={value:()=>{}};function sx(){const e=c;for(var n=0,t=arguments[e(1755)],o={},x;n<t;++n){if(!(x=arguments[n]+"")||x in o||/[\s.]/[e(837)](x))throw new Error(e(1231)+x);o[x]=[]}return new lx(o)}function lx(e){this._=e}function ad(e,n){const t=c;return e[t(982)]()[t(1179)](/^|\s+/)[t(1226)](function(o){const x=t;var r="",i=o.indexOf(".");if(i>=0&&(r=o[x(845)](i+1),o=o.slice(0,i)),o&&!n.hasOwnProperty(o))throw new Error(x(1448)+o);return{type:o,name:r}})}lx[c(688)]=sx[c(688)]={constructor:lx,on:function(e,n){const t=c;var o=this._,x=ad(e+"",o),r,i=-1,a=x[t(1755)];if(arguments[t(1755)]<2){for(;++i<a;)if((r=(e=x[i])[t(1592)])&&(r=cd(o[r],e[t(1123)])))return r;return}if(n!=null&&typeof n!==t(1019))throw new Error(t(764)+n);for(;++i<a;)if(r=(e=x[i])[t(1592)])o[r]=Ci(o[r],e[t(1123)],n);else if(n==null)for(r in o)o[r]=Ci(o[r],e[t(1123)],null);return this},copy:function(){const e=c;var n={},t=this._;for(var o in t)n[o]=t[o][e(845)]();return new lx(n)},call:function(e,n){const t=c;if((r=arguments[t(1755)]-2)>0)for(var o=new Array(r),x=0,r,i;x<r;++x)o[x]=arguments[x+2];if(!this._[t(1292)](e))throw new Error("unknown type: "+e);for(i=this._[e],x=0,r=i[t(1755)];x<r;++x)i[x][t(1256)][t(746)](n,o)},apply:function(e,n,t){const o=c;if(!this._[o(1292)](e))throw new Error("unknown type: "+e);for(var x=this._[e],r=0,i=x.length;r<i;++r)x[r].value[o(746)](n,t)}};function cd(e,n){const t=c;for(var o=0,x=e[t(1755)],r;o<x;++o)if((r=e[o]).name===n)return r[t(1256)]}function Ci(e,n,t){const o=c;for(var x=0,r=e.length;x<r;++x)if(e[x][o(1123)]===n){e[x]=id,e=e.slice(0,x)[o(1379)](e[o(845)](x+1));break}return t!=null&&e[o(573)]({name:n,value:t}),e}var Bo=c(1528);const Mi={svg:c(786),xhtml:Bo,xlink:c(2160),xml:c(1721),xmlns:c(1140)};function dx(e){const n=c;var t=e+="",o=t.indexOf(":");return o>=0&&(t=e[n(845)](0,o))!==n(1514)&&(e=e[n(845)](o+1)),Mi[n(1292)](t)?{space:Mi[t],local:e}:e}function sd(e){return function(){const n=_0x51e5;var t=this[n(2228)],o=this[n(1281)];return o===Bo&&t.documentElement[n(1281)]===Bo?t[n(854)](e):t[n(1191)](o,e)}}function ld(e){return function(){const n=_0x51e5;return this.ownerDocument[n(1191)](e[n(1132)],e.local)}}function Bi(e){const n=c;var t=dx(e);return(t[n(2273)]?ld:sd)(t)}function dd(){}function Do(e){return e==null?dd:function(){return this[_0x51e5(2204)](e)}}function ud(e){const n=c;typeof e!==n(1019)&&(e=Do(e));for(var t=this._groups,o=t[n(1755)],x=new Array(o),r=0;r<o;++r)for(var i=t[r],a=i[n(1755)],d=x[r]=new Array(a),u,s,b=0;b<a;++b)(u=i[b])&&(s=e[n(945)](u,u[n(597)],b,i))&&(n(597)in u&&(s[n(597)]=u.__data__),d[b]=s);return new z0(x,this[n(1916)])}function bd(e){const n=c;return e==null?[]:Array[n(1996)](e)?e:Array[n(1124)](e)}function fd(){return[]}function Di(e){return e==null?fd:function(){return this.querySelectorAll(e)}}function hd(e){return function(){return bd(e[_0x51e5(746)](this,arguments))}}function gd(e){const n=c;typeof e===n(1019)?e=hd(e):e=Di(e);for(var t=this._groups,o=t[n(1755)],x=[],r=[],i=0;i<o;++i)for(var a=t[i],d=a[n(1755)],u,s=0;s<d;++s)(u=a[s])&&(x.push(e[n(945)](u,u[n(597)],s,a)),r[n(573)](u));return new z0(x,r)}function Li(e){return function(){return this.matches(e)}}function Si(e){return function(n){return n.matches(e)}}var yd=Array[c(688)][c(517)];function md(e){return function(){const n=_0x51e5;return yd[n(945)](this[n(795)],e)}}function vd(){return this[c(2170)]}function wd(e){const n=c;return this[n(1244)](e==null?vd:md(typeof e===n(1019)?e:Si(e)))}var pd=Array.prototype[c(1947)];function zd(){return Array[c(1124)](this.children)}function Cd(e){return function(){return pd[_0x51e5(945)](this.children,e)}}function Md(e){return this.selectAll(e==null?zd:Cd(typeof e=="function"?e:Si(e)))}function Bd(e){const n=c;typeof e!==n(1019)&&(e=Li(e));for(var t=this[n(1516)],o=t[n(1755)],x=new Array(o),r=0;r<o;++r)for(var i=t[r],a=i.length,d=x[r]=[],u,s=0;s<a;++s)(u=i[s])&&e[n(945)](u,u[n(597)],s,i)&&d[n(573)](u);return new z0(x,this[n(1916)])}function Ni(e){return new Array(e.length)}function Dd(){const e=c;return new z0(this[e(1444)]||this[e(1516)][e(1226)](Ni),this[e(1916)])}function ux(e,n){const t=c;this[t(2228)]=e[t(2228)],this[t(1281)]=e[t(1281)],this[t(705)]=null,this[t(1892)]=e,this.__data__=n}ux.prototype={constructor:ux,appendChild:function(e){const n=c;return this[n(1892)][n(1198)](e,this[n(705)])},insertBefore:function(e,n){return this._parent.insertBefore(e,n)},querySelector:function(e){const n=c;return this[n(1892)][n(2204)](e)},querySelectorAll:function(e){const n=c;return this[n(1892)][n(1612)](e)}};function Ld(e){return function(){return e}}function Sd(e,n,t,o,x,r){const i=c;for(var a=0,d,u=n[i(1755)],s=r.length;a<s;++a)(d=n[a])?(d[i(597)]=r[a],o[a]=d):t[a]=new ux(e,r[a]);for(;a<u;++a)(d=n[a])&&(x[a]=d)}function Nd(e,n,t,o,x,r,i){const a=c;var d,u,s=new Map,b=n[a(1755)],g=r.length,h=new Array(b),v;for(d=0;d<b;++d)(u=n[d])&&(h[d]=v=i[a(945)](u,u[a(597)],d,n)+"",s.has(v)?x[d]=u:s[a(643)](v,u));for(d=0;d<g;++d)v=i[a(945)](e,r[d],d,r)+"",(u=s[a(689)](v))?(o[d]=u,u.__data__=r[d],s.delete(v)):t[d]=new ux(e,r[d]);for(d=0;d<b;++d)(u=n[d])&&s[a(689)](h[d])===u&&(x[d]=u)}function kd(e){return e[c(597)]}function Id(e,n){const t=c;if(!arguments[t(1755)])return Array.from(this,kd);var o=n?Nd:Sd,x=this[t(1916)],r=this[t(1516)];typeof e!==t(1019)&&(e=Ld(e));for(var i=r[t(1755)],a=new Array(i),d=new Array(i),u=new Array(i),s=0;s<i;++s){var b=x[s],g=r[s],h=g[t(1755)],v=Pd(e[t(945)](b,b&&b.__data__,s,x)),f=v.length,w=d[s]=new Array(f),M=a[s]=new Array(f),y=u[s]=new Array(h);o(b,g,w,M,y,v,n);for(var m=0,C=0,z,P;m<f;++m)if(z=w[m]){for(m>=C&&(C=m+1);!(P=M[C])&&++C<f;);z[t(705)]=P||null}}return a=new z0(a,x),a[t(1444)]=d,a._exit=u,a}function Pd(e){const n=c;return typeof e===n(990)&&"length"in e?e:Array[n(1124)](e)}function Ad(){const e=c;return new z0(this._exit||this._groups[e(1226)](Ni),this._parents)}function jd(e,n,t){const o=c;var x=this[o(1835)](),r=this,i=this[o(819)]();return typeof e===o(1019)?(x=e(x),x&&(x=x[o(429)]())):x=x[o(891)](e+""),n!=null&&(r=n(r),r&&(r=r[o(429)]())),t==null?i[o(2193)]():t(i),x&&r?x[o(1053)](r)[o(1197)]():r}function Yd(e){const n=c;for(var t=e.selection?e.selection():e,o=this._groups,x=t[n(1516)],r=o[n(1755)],i=x.length,a=Math.min(r,i),d=new Array(r),u=0;u<a;++u)for(var s=o[u],b=x[u],g=s[n(1755)],h=d[u]=new Array(g),v,f=0;f<g;++f)(v=s[f]||b[f])&&(h[f]=v);for(;u<r;++u)d[u]=o[u];return new z0(d,this._parents)}function Ed(){const e=c;for(var n=this[e(1516)],t=-1,o=n[e(1755)];++t<o;)for(var x=n[t],r=x[e(1755)]-1,i=x[r],a;--r>=0;)(a=x[r])&&(i&&a[e(1493)](i)^4&&i[e(1624)][e(1198)](a,i),i=a);return this}function Ud(e){const n=c;e||(e=Gd);function t(g,h){const v=_0x51e5;return g&&h?e(g[v(597)],h[v(597)]):!g-!h}for(var o=this._groups,x=o[n(1755)],r=new Array(x),i=0;i<x;++i){for(var a=o[i],d=a.length,u=r[i]=new Array(d),s,b=0;b<d;++b)(s=a[b])&&(u[b]=s);u[n(773)](t)}return new z0(r,this[n(1916)])[n(1197)]()}function Gd(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function Od(){const e=c;var n=arguments[0];return arguments[0]=this,n[e(746)](null,arguments),this}function Vd(){return Array[c(1124)](this)}function Hd(){const e=c;for(var n=this[e(1516)],t=0,o=n[e(1755)];t<o;++t)for(var x=n[t],r=0,i=x[e(1755)];r<i;++r){var a=x[r];if(a)return a}return null}function Td(){let e=0;for(const n of this)++e;return e}function qd(){return!this[c(2099)]()}function Wd(e){const n=c;for(var t=this[n(1516)],o=0,x=t[n(1755)];o<x;++o)for(var r=t[o],i=0,a=r[n(1755)],d;i<a;++i)(d=r[i])&&e.call(d,d[n(597)],i,r);return this}function Xd(e){return function(){this[_0x51e5(2272)](e)}}function Kd(e){return function(){const n=_0x51e5;this[n(1498)](e[n(1132)],e[n(2273)])}}function Zd(e,n){return function(){this[_0x51e5(1907)](e,n)}}function Rd(e,n){return function(){const t=_0x51e5;this[t(645)](e.space,e[t(2273)],n)}}function Jd(e,n){return function(){const t=_0x51e5;var o=n[t(746)](this,arguments);o==null?this[t(2272)](e):this[t(1907)](e,o)}}function Qd(e,n){return function(){const t=_0x51e5;var o=n[t(746)](this,arguments);o==null?this.removeAttributeNS(e[t(1132)],e[t(2273)]):this[t(645)](e[t(1132)],e.local,o)}}function Fd(e,n){const t=c;var o=dx(e);if(arguments[t(1755)]<2){var x=this[t(2099)]();return o[t(2273)]?x[t(759)](o[t(1132)],o.local):x.getAttribute(o)}return this[t(2044)]((n==null?o[t(2273)]?Kd:Xd:typeof n===t(1019)?o[t(2273)]?Qd:Jd:o[t(2273)]?Rd:Zd)(o,n))}function ki(e){const n=c;return e.ownerDocument&&e.ownerDocument[n(658)]||e[n(1503)]&&e||e[n(658)]}function _d(e){return function(){const n=_0x51e5;this[n(777)][n(1839)](e)}}function $d(e,n,t){return function(){const o=_0x51e5;this[o(777)][o(1966)](e,n,t)}}function eu(e,n,t){return function(){const o=_0x51e5;var x=n[o(746)](this,arguments);x==null?this[o(777)][o(1839)](e):this.style.setProperty(e,x,t)}}function nu(e,n,t){const o=c;return arguments[o(1755)]>1?this[o(2044)]((n==null?_d:typeof n===o(1019)?eu:$d)(e,n,t??"")):Xn(this[o(2099)](),e)}function Xn(e,n){const t=c;return e[t(777)][t(676)](n)||ki(e)[t(465)](e,null)[t(676)](n)}function tu(e){return function(){delete this[e]}}function xu(e,n){return function(){this[e]=n}}function ou(e,n){return function(){var o=n[_0x51e5(746)](this,arguments);o==null?delete this[e]:this[e]=o}}function ru(e,n){const t=c;return arguments[t(1755)]>1?this[t(2044)]((n==null?tu:typeof n===t(1019)?ou:xu)(e,n)):this[t(2099)]()[e]}function Ii(e){return e[c(982)]().split(/^|\s+/)}function Lo(e){return e.classList||new Pi(e)}function Pi(e){const n=c;this[n(592)]=e,this[n(437)]=Ii(e[n(1819)](n(958))||"")}Pi[c(688)]={add:function(e){const n=c;var t=this[n(437)].indexOf(e);t<0&&(this[n(437)][n(573)](e),this[n(592)][n(1907)](n(958),this[n(437)][n(1579)](" ")))},remove:function(e){const n=c;var t=this._names[n(1515)](e);t>=0&&(this._names[n(1580)](t,1),this._node.setAttribute(n(958),this[n(437)].join(" ")))},contains:function(e){const n=c;return this[n(437)][n(1515)](e)>=0}};function Ai(e,n){const t=c;for(var o=Lo(e),x=-1,r=n[t(1755)];++x<r;)o[t(1536)](n[x])}function ji(e,n){const t=c;for(var o=Lo(e),x=-1,r=n.length;++x<r;)o[t(2193)](n[x])}function iu(e){return function(){Ai(this,e)}}function au(e){return function(){ji(this,e)}}function cu(e,n){return function(){(n[_0x51e5(746)](this,arguments)?Ai:ji)(this,e)}}function su(e,n){const t=c;var o=Ii(e+"");if(arguments.length<2){for(var x=Lo(this[t(2099)]()),r=-1,i=o[t(1755)];++r<i;)if(!x.contains(o[r]))return!1;return!0}return this[t(2044)]((typeof n===t(1019)?cu:n?iu:au)(o,n))}function lu(){this.textContent=""}function du(e){return function(){const n=_0x51e5;this[n(1202)]=e}}function uu(e){return function(){const n=_0x51e5;var t=e[n(746)](this,arguments);this[n(1202)]=t??""}}function bu(e){const n=c;return arguments.length?this.each(e==null?lu:(typeof e===n(1019)?uu:du)(e)):this[n(2099)]()[n(1202)]}function fu(){const e=c;this[e(1135)]=""}function hu(e){return function(){const n=_0x51e5;this[n(1135)]=e}}function gu(e){return function(){const n=_0x51e5;var t=e[n(746)](this,arguments);this[n(1135)]=t??""}}function yu(e){const n=c;return arguments.length?this[n(2044)](e==null?fu:(typeof e===n(1019)?gu:hu)(e)):this[n(2099)]().innerHTML}function mu(){const e=c;this[e(699)]&&this[e(1624)][e(1518)](this)}function vu(){return this[c(2044)](mu)}function wu(){const e=c;this[e(2021)]&&this[e(1624)].insertBefore(this,this.parentNode[e(2136)])}function pu(){return this.each(wu)}function zu(e){const n=c;var t=typeof e=="function"?e:Bi(e);return this[n(1244)](function(){return this[n(1518)](t.apply(this,arguments))})}function Cu(){return null}function Mu(e,n){const t=c;var o=typeof e=="function"?e:Bi(e),x=n==null?Cu:typeof n===t(1019)?n:Do(n);return this[t(1244)](function(){const r=t;return this[r(1198)](o[r(746)](this,arguments),x[r(746)](this,arguments)||null)})}function Bu(){const e=c;var n=this[e(1624)];n&&n[e(2075)](this)}function Du(){return this[c(2044)](Bu)}function Lu(){const e=c;var n=this[e(488)](!1),t=this[e(1624)];return t?t.insertBefore(n,this.nextSibling):n}function Su(){const e=c;var n=this.cloneNode(!0),t=this[e(1624)];return t?t[e(1198)](n,this[e(699)]):n}function Nu(e){return this[c(1244)](e?Su:Lu)}function ku(e){const n=c;return arguments[n(1755)]?this[n(1128)](n(597),e):this[n(2099)]()[n(597)]}function Iu(e){return function(n){const t=_0x51e5;e.call(this,n,this[t(597)])}}function Pu(e){const n=c;return e.trim()[n(1179)](/^|\s+/)[n(1226)](function(t){const o=n;var x="",r=t[o(1515)](".");return r>=0&&(x=t[o(845)](r+1),t=t[o(845)](0,r)),{type:t,name:x}})}function Au(e){return function(){const n=_0x51e5;var t=this[n(1330)];if(t){for(var o=0,x=-1,r=t[n(1755)],i;o<r;++o)i=t[o],(!e[n(1592)]||i[n(1592)]===e.type)&&i[n(1123)]===e[n(1123)]?this[n(1369)](i.type,i.listener,i[n(1548)]):t[++x]=i;++x?t[n(1755)]=x:delete this[n(1330)]}}}function ju(e,n,t){return function(){const o=_0x51e5;var x=this.__on,r,i=Iu(n);if(x){for(var a=0,d=x[o(1755)];a<d;++a)if((r=x[a])[o(1592)]===e.type&&r.name===e[o(1123)]){this[o(1369)](r[o(1592)],r[o(957)],r[o(1548)]),this.addEventListener(r[o(1592)],r[o(957)]=i,r[o(1548)]=t),r[o(1256)]=n;return}}this[o(1046)](e[o(1592)],i,t),r={type:e[o(1592)],name:e[o(1123)],value:n,listener:i,options:t},x?x[o(573)](r):this.__on=[r]}}function Yu(e,n,t){const o=c;var x=Pu(e+""),r,i=x[o(1755)],a;if(arguments[o(1755)]<2){var d=this[o(2099)]()[o(1330)];if(d){for(var u=0,s=d.length,b;u<s;++u)for(r=0,b=d[u];r<i;++r)if((a=x[r]).type===b[o(1592)]&&a[o(1123)]===b[o(1123)])return b[o(1256)]}return}for(d=n?ju:Au,r=0;r<i;++r)this.each(d(x[r],n,t));return this}function Yi(e,n,t){const o=c;var x=ki(e),r=x[o(2097)];typeof r===o(1019)?r=new r(n,t):(r=x[o(1503)].createEvent("Event"),t?(r[o(2158)](n,t.bubbles,t[o(2074)]),r[o(1069)]=t.detail):r[o(2158)](n,!1,!1)),e.dispatchEvent(r)}function Eu(e,n){return function(){return Yi(this,e,n)}}function Uu(e,n){return function(){return Yi(this,e,n[_0x51e5(746)](this,arguments))}}function Gu(e,n){const t=c;return this[t(2044)]((typeof n===t(1019)?Uu:Eu)(e,n))}function*Ou(){const e=c;for(var n=this._groups,t=0,o=n[e(1755)];t<o;++t)for(var x=n[t],r=0,i=x[e(1755)],a;r<i;++r)(a=x[r])&&(yield a)}var Ei=[null];function z0(e,n){const t=c;this[t(1516)]=e,this._parents=n}function pt(){const e=c;return new z0([[document[e(617)]]],Ei)}function Vu(){return this}z0[c(688)]=pt[c(688)]={constructor:z0,select:ud,selectAll:gd,selectChild:wd,selectChildren:Md,filter:Bd,data:Id,enter:Dd,exit:Ad,join:jd,merge:Yd,selection:Vu,order:Ed,sort:Ud,call:Od,nodes:Vd,node:Hd,size:Td,empty:qd,each:Wd,attr:Fd,style:nu,property:ru,classed:su,text:bu,html:yu,raise:vu,lower:pu,append:zu,insert:Mu,remove:Du,clone:Nu,datum:ku,on:Yu,dispatch:Gu,[Symbol[c(2015)]]:Ou};function C0(e){const n=c;return typeof e===n(2150)?new z0([[document[n(2204)](e)]],[document[n(617)]]):new z0([[e]],Ei)}function Hu(e){const n=c;let t;for(;t=e[n(1490)];)e=t;return e}function A0(e,n){const t=c;if(e=Hu(e),n===void 0&&(n=e[t(2119)]),n){var o=n[t(1120)]||n;if(o[t(411)]){var x=o[t(411)]();return x.x=e[t(2233)],x.y=e[t(1659)],x=x[t(2095)](n[t(1992)]().inverse()),[x.x,x.y]}if(n.getBoundingClientRect){var r=n[t(1596)]();return[e[t(2233)]-r[t(2281)]-n[t(731)],e.clientY-r[t(1727)]-n[t(2263)]]}}return[e.pageX,e[t(601)]]}const Tu={passive:!1},zt={capture:!0,passive:!1};function So(e){e[c(2182)]()}function Kn(e){const n=c;e[n(521)](),e[n(2182)]()}function Ui(e){const n=c;var t=e[n(1503)].documentElement,o=C0(e).on(n(1748),Kn,zt);n(655)in t?o.on(n(2226),Kn,zt):(t[n(596)]=t[n(777)].MozUserSelect,t[n(777)][n(1331)]=n(1501))}function Gi(e,n){const t=c;var o=e[t(1503)][t(617)],x=C0(e).on(t(1748),null);n&&(x.on("click.drag",Kn,zt),setTimeout(function(){const r=t;x.on(r(1980),null)},0)),t(655)in o?x.on(t(2226),null):(o[t(777)].MozUserSelect=o.__noselect,delete o[t(596)])}const bx=e=>()=>e;function No(e,{sourceEvent:n,subject:t,target:o,identifier:x,active:r,x:i,y:a,dx:d,dy:u,dispatch:s}){Object[c(910)](this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:t,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:x,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:d,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:s}})}No[c(688)].on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function qu(e){const n=c;return!e[n(2112)]&&!e[n(1454)]}function Wu(){return this[c(1624)]}function Xu(e,n){return n??{x:e.x,y:e.y}}function Ku(){const e=c;return navigator.maxTouchPoints||e(1003)in this}function Oi(){const e=c;var n=qu,t=Wu,o=Xu,x=Ku,r={},i=sx("start",e(425),"end"),a=0,d,u,s,b,g=0;function h(z){const P=e;z.on(P(2237),v).filter(x).on(P(1703),M).on(P(1573),y,Tu).on(P(1842),m)[P(777)](P(1746),"none").style(P(726),"rgba(0,0,0,0)")}function v(z,P){const E=e;if(!(b||!n[E(945)](this,z,P))){var V=C(this,t[E(945)](this,z,P),z,P,E(579));V&&(C0(z[E(2036)]).on(E(1859),f,zt).on(E(1298),w,zt),Ui(z[E(2036)]),So(z),s=!1,d=z.clientX,u=z.clientY,V(E(1635),z))}}function f(z){const P=e;if(Kn(z),!s){var E=z[P(2233)]-d,V=z[P(1659)]-u;s=E*E+V*V>g}r.mouse(P(425),z)}function w(z){const P=e;C0(z[P(2036)]).on(P(1087),null),Gi(z.view,s),Kn(z),r.mouse(P(1086),z)}function M(z,P){const E=e;if(n[E(945)](this,z,P)){var V=z.changedTouches,q=t[E(945)](this,z,P),U=V[E(1755)],W,H;for(W=0;W<U;++W)(H=C(this,q,z,P,V[W][E(1766)],V[W]))&&(So(z),H(E(1635),z,V[W]))}}function y(z){const P=e;var E=z[P(980)],V=E[P(1755)],q,U;for(q=0;q<V;++q)(U=r[E[q][P(1766)]])&&(Kn(z),U(P(425),z,E[q]))}function m(z){const P=e;var E=z[P(980)],V=E[P(1755)],q,U;for(b&&clearTimeout(b),b=setTimeout(function(){b=null},500),q=0;q<V;++q)(U=r[E[q][P(1766)]])&&(So(z),U("end",z,E[q]))}function C(z,P,E,V,q,U){const W=e;var H=i[W(2069)](),G=A0(U||E,P),T,L,S;if((S=o[W(945)](z,new No(W(662),{sourceEvent:E,target:h,identifier:q,active:a,x:G[0],y:G[1],dx:0,dy:0,dispatch:H}),V))!=null)return T=S.x-G[0]||0,L=S.y-G[1]||0,function B(j,A,I){const J=W;var _=G,F;switch(j){case J(1635):r[q]=B,F=a++;break;case"end":delete r[q],--a;case J(425):G=A0(I||A,P),F=a;break}H.call(j,z,new No(j,{sourceEvent:A,subject:S,target:h,identifier:q,active:F,x:G[0]+T,y:G[1]+L,dx:G[0]-_[0],dy:G[1]-_[1],dispatch:H}),V)}}return h[e(1947)]=function(z){const P=e;return arguments[P(1755)]?(n=typeof z===P(1019)?z:bx(!!z),h):n},h[e(447)]=function(z){const P=e;return arguments[P(1755)]?(t=typeof z===P(1019)?z:bx(z),h):t},h[e(1018)]=function(z){const P=e;return arguments[P(1755)]?(o=typeof z===P(1019)?z:bx(z),h):o},h[e(1058)]=function(z){const P=e;return arguments[P(1755)]?(x=typeof z===P(1019)?z:bx(!!z),h):x},h.on=function(){var z=i.on.apply(i,arguments);return z===i?h:z},h[e(1445)]=function(z){return arguments[e(1755)]?(g=(z=+z)*z,h):Math.sqrt(g)},h}function ko(e,n,t){const o=c;e.prototype=n[o(688)]=t,t[o(768)]=e}function Vi(e,n){var o=Object.create(e[c(688)]);for(var x in n)o[x]=n[x];return o}function Ct(){}var Mt=.7,fx=1/Mt,Zn=c(758),Bt=c(2202),T0=c(1296),Zu=/^#([0-9a-f]{3,8})$/,Ru=new RegExp("^rgb\\("+Zn+","+Zn+","+Zn+c(1353)),Ju=new RegExp("^rgb\\("+T0+","+T0+","+T0+"\\)$"),Qu=new RegExp(c(1482)+Zn+","+Zn+","+Zn+","+Bt+c(1353)),Fu=new RegExp("^rgba\\("+T0+","+T0+","+T0+","+Bt+c(1353)),_u=new RegExp(c(2121)+Bt+","+T0+","+T0+c(1353)),$u=new RegExp(c(1329)+Bt+","+T0+","+T0+","+Bt+c(1353)),Hi={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ko(Ct,pn,{copy(e){const n=c;return Object[n(1151)](new this[n(768)],this,e)},displayable(){const e=c;return this[e(756)]()[e(2127)]()},hex:Ti,formatHex:Ti,formatHex8:e5,formatHsl:n5,formatRgb:qi,toString:qi});function Ti(){const e=c;return this[e(756)]()[e(1823)]()}function e5(){const e=c;return this[e(756)]()[e(1049)]()}function n5(){return Ri(this).formatHsl()}function qi(){const e=c;return this[e(756)]()[e(1593)]()}function pn(e){const n=c;var t,o;return e=(e+"")[n(982)]().toLowerCase(),(t=Zu[n(1873)](e))?(o=t[1].length,t=parseInt(t[1],16),o===6?Wi(t):o===3?new m0(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):o===8?hx(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):o===4?hx(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Ru.exec(e))?new m0(t[1],t[2],t[3],1):(t=Ju[n(1873)](e))?new m0(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Qu[n(1873)](e))?hx(t[1],t[2],t[3],t[4]):(t=Fu.exec(e))?hx(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=_u[n(1873)](e))?Zi(t[1],t[2]/100,t[3]/100,1):(t=$u[n(1873)](e))?Zi(t[1],t[2]/100,t[3]/100,t[4]):Hi[n(1292)](e)?Wi(Hi[e]):e===n(1e3)?new m0(NaN,NaN,NaN,0):null}function Wi(e){return new m0(e>>16&255,e>>8&255,e&255,1)}function hx(e,n,t,o){return o<=0&&(e=n=t=NaN),new m0(e,n,t,o)}function t5(e){const n=c;return e instanceof Ct||(e=pn(e)),e?(e=e.rgb(),new m0(e.r,e.g,e.b,e[n(1260)])):new m0}function Io(e,n,t,o){return arguments[c(1755)]===1?t5(e):new m0(e,n,t,o??1)}function m0(e,n,t,o){const x=c;this.r=+e,this.g=+n,this.b=+t,this[x(1260)]=+o}ko(m0,Io,Vi(Ct,{brighter(e){const n=c;return e=e==null?fx:Math[n(611)](fx,e),new m0(this.r*e,this.g*e,this.b*e,this[n(1260)])},darker(e){const n=c;return e=e==null?Mt:Math[n(611)](Mt,e),new m0(this.r*e,this.g*e,this.b*e,this[n(1260)])},rgb(){return this},clamp(){const e=c;return new m0(zn(this.r),zn(this.g),zn(this.b),gx(this[e(1260)]))},displayable(){const e=c;return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this[e(1260)]&&this[e(1260)]<=1},hex:Xi,formatHex:Xi,formatHex8:x5,formatRgb:Ki,toString:Ki}));function Xi(){return"#"+Cn(this.r)+Cn(this.g)+Cn(this.b)}function x5(){const e=c;return"#"+Cn(this.r)+Cn(this.g)+Cn(this.b)+Cn((isNaN(this[e(1260)])?1:this[e(1260)])*255)}function Ki(){const e=c,n=gx(this[e(1260)]);return""+e(n===1?518:1664)+zn(this.r)+", "+zn(this.g)+", "+zn(this.b)+(n===1?")":", "+n+")")}function gx(e){const n=c;return isNaN(e)?1:Math[n(656)](0,Math[n(1050)](1,e))}function zn(e){return Math[c(656)](0,Math.min(255,Math.round(e)||0))}function Cn(e){return e=zn(e),(e<16?"0":"")+e.toString(16)}function Zi(e,n,t,o){return o<=0?e=n=t=NaN:t<=0||t>=1?e=n=NaN:n<=0&&(e=NaN),new j0(e,n,t,o)}function Ri(e){const n=c;if(e instanceof j0)return new j0(e.h,e.s,e.l,e[n(1260)]);if(e instanceof Ct||(e=pn(e)),!e)return new j0;if(e instanceof j0)return e;e=e.rgb();var t=e.r/255,o=e.g/255,x=e.b/255,r=Math[n(1050)](t,o,x),i=Math.max(t,o,x),a=NaN,d=i-r,u=(i+r)/2;return d?(t===i?a=(o-x)/d+(o<x)*6:o===i?a=(x-t)/d+2:a=(t-o)/d+4,d/=u<.5?i+r:2-i-r,a*=60):d=u>0&&u<1?0:a,new j0(a,d,u,e.opacity)}function o5(e,n,t,o){return arguments.length===1?Ri(e):new j0(e,n,t,o??1)}function j0(e,n,t,o){const x=c;this.h=+e,this.s=+n,this.l=+t,this[x(1260)]=+o}ko(j0,o5,Vi(Ct,{brighter(e){const n=c;return e=e==null?fx:Math[n(611)](fx,e),new j0(this.h,this.s,this.l*e,this[n(1260)])},darker(e){const n=c;return e=e==null?Mt:Math[n(611)](Mt,e),new j0(this.h,this.s,this.l*e,this[n(1260)])},rgb(){const e=c;var n=this.h%360+(this.h<0)*360,t=isNaN(n)||isNaN(this.s)?0:this.s,o=this.l,x=o+(o<.5?o:1-o)*t,r=2*o-x;return new m0(Po(n>=240?n-240:n+120,r,x),Po(n,r,x),Po(n<120?n+240:n-120,r,x),this[e(1260)])},clamp(){return new j0(Ji(this.h),yx(this.s),yx(this.l),gx(this.opacity))},displayable(){const e=c;return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this[e(1260)]<=1},formatHsl(){const e=c,n=gx(this[e(1260)]);return""+e(n===1?2248:1861)+Ji(this.h)+", "+yx(this.s)*100+e(1364)+yx(this.l)*100+"%"+(n===1?")":", "+n+")")}}));function Ji(e){return e=(e||0)%360,e<0?e+360:e}function yx(e){const n=c;return Math[n(656)](0,Math[n(1050)](1,e||0))}function Po(e,n,t){return(e<60?n+(t-n)*e/60:e<180?t:e<240?n+(t-n)*(240-e)/60:n)*255}const Ao=e=>()=>e;function r5(e,n){return function(t){return e+t*n}}function i5(e,n,t){const o=c;return e=Math[o(611)](e,t),n=Math[o(611)](n,t)-e,t=1/t,function(x){return Math[o(611)](e+x*n,t)}}function a5(e){return(e=+e)==1?Qi:function(n,t){return t-n?i5(n,t,e):Ao(isNaN(n)?t:n)}}function Qi(e,n){var t=n-e;return t?r5(e,t):Ao(isNaN(e)?n:e)}const mx=(function e(n){const t=c;var o=a5(n);function x(r,i){const a=_0x51e5;var d=o((r=Io(r)).r,(i=Io(i)).r),u=o(r.g,i.g),s=o(r.b,i.b),b=Qi(r.opacity,i[a(1260)]);return function(g){return r.r=d(g),r.g=u(g),r.b=s(g),r.opacity=b(g),r+""}}return x[t(767)]=e,x})(1);function c5(e,n){const t=c;n||(n=[]);var o=e?Math[t(1050)](n[t(1755)],e[t(1755)]):0,x=n[t(845)](),r;return function(i){for(r=0;r<o;++r)x[r]=e[r]*(1-i)+n[r]*i;return x}}function s5(e){return ArrayBuffer[c(2164)](e)&&!(e instanceof DataView)}function l5(e,n){const t=c;var o=n?n[t(1755)]:0,x=e?Math[t(1050)](o,e[t(1755)]):0,r=new Array(x),i=new Array(o),a;for(a=0;a<x;++a)r[a]=Dt(e[a],n[a]);for(;a<o;++a)i[a]=n[a];return function(d){for(a=0;a<x;++a)i[a]=r[a](d);return i}}function d5(e,n){var t=new Date;return e=+e,n=+n,function(o){return t[_0x51e5(526)](e*(1-o)+n*o),t}}function q0(e,n){return e=+e,n=+n,function(t){return e*(1-t)+n*t}}function u5(e,n){const t=c;var o={},x={},r;(e===null||typeof e!="object")&&(e={}),(n===null||typeof n!==t(990))&&(n={});for(r in n)r in e?o[r]=Dt(e[r],n[r]):x[r]=n[r];return function(i){for(r in o)x[r]=o[r](i);return x}}var jo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yo=new RegExp(jo[c(2058)],"g");function b5(e){return function(){return e}}function f5(e){return function(n){return e(n)+""}}function Fi(e,n){const t=c;var o=jo[t(1788)]=Yo[t(1788)]=0,x,r,i,a=-1,d=[],u=[];for(e=e+"",n=n+"";(x=jo.exec(e))&&(r=Yo[t(1873)](n));)(i=r.index)>o&&(i=n.slice(o,i),d[a]?d[a]+=i:d[++a]=i),(x=x[0])===(r=r[0])?d[a]?d[a]+=r:d[++a]=r:(d[++a]=null,u[t(573)]({i:a,x:q0(x,r)})),o=Yo[t(1788)];return o<n[t(1755)]&&(i=n.slice(o),d[a]?d[a]+=i:d[++a]=i),d[t(1755)]<2?u[0]?f5(u[0].x):b5(n):(n=u.length,function(s){for(var b=0,g;b<n;++b)d[(g=u[b]).i]=g.x(s);return d.join("")})}function Dt(e,n){const t=c;var o=typeof n,x;return n==null||o===t(2207)?Ao(n):(o===t(825)?q0:o===t(2150)?(x=pn(n))?(n=x,mx):Fi:n instanceof pn?mx:n instanceof Date?d5:s5(n)?c5:Array[t(1996)](n)?l5:typeof n[t(605)]!==t(1019)&&typeof n[t(1001)]!==t(1019)||isNaN(n)?u5:q0)(e,n)}var _i=180/Math.PI,Eo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $i(e,n,t,o,x,r){const i=c;var a,d,u;return(a=Math.sqrt(e*e+n*n))&&(e/=a,n/=a),(u=e*t+n*o)&&(t-=e*u,o-=n*u),(d=Math.sqrt(t*t+o*o))&&(t/=d,o/=d,u/=d),e*o<n*t&&(e=-e,n=-n,u=-u,a=-a),{translateX:x,translateY:r,rotate:Math[i(1425)](n,e)*_i,skewX:Math[i(1881)](u)*_i,scaleX:a,scaleY:d}}var vx;function h5(e){const n=c,t=new(typeof DOMMatrix===n(1019)?DOMMatrix:WebKitCSSMatrix)(e+"");return t[n(708)]?Eo:$i(t.a,t.b,t.c,t.d,t.e,t.f)}function g5(e){const n=c;return e==null||(vx||(vx=document[n(1191)](n(786),"g")),vx[n(1907)](n(1713),e),!(e=vx[n(1713)].baseVal[n(621)]()))?Eo:(e=e[n(1468)],$i(e.a,e.b,e.c,e.d,e.e,e.f))}function ea(e,n,t,o){function x(u){const s=_0x51e5;return u[s(1755)]?u[s(1660)]()+" ":""}function r(u,s,b,g,h,v){const f=_0x51e5;if(u!==b||s!==g){var w=h.push(f(1398),null,n,null,t);v.push({i:w-4,x:q0(u,b)},{i:w-2,x:q0(s,g)})}else(b||g)&&h[f(573)](f(1398)+b+n+g+t)}function i(u,s,b,g){const h=_0x51e5;u!==s?(u-s>180?s+=360:s-u>180&&(u+=360),g[h(573)]({i:b[h(573)](x(b)+h(1597),null,o)-2,x:q0(u,s)})):s&&b[h(573)](x(b)+h(1597)+s+o)}function a(u,s,b,g){const h=_0x51e5;u!==s?g[h(573)]({i:b.push(x(b)+h(682),null,o)-2,x:q0(u,s)}):s&&b[h(573)](x(b)+h(682)+s+o)}function d(u,s,b,g,h,v){const f=_0x51e5;if(u!==b||s!==g){var w=h[f(573)](x(h)+f(810),null,",",null,")");v[f(573)]({i:w-4,x:q0(u,b)},{i:w-2,x:q0(s,g)})}else(b!==1||g!==1)&&h[f(573)](x(h)+f(810)+b+","+g+")")}return function(u,s){const b=_0x51e5;var g=[],h=[];return u=e(u),s=e(s),r(u.translateX,u.translateY,s[b(1783)],s.translateY,g,h),i(u[b(740)],s[b(740)],g,h),a(u[b(1126)],s[b(1126)],g,h),d(u[b(1059)],u[b(1196)],s[b(1059)],s.scaleY,g,h),u=s=null,function(v){const f=b;for(var w=-1,M=h[f(1755)],y;++w<M;)g[(y=h[w]).i]=y.x(v);return g.join("")}}}var y5=ea(h5,"px, ",c(1394),"deg)"),m5=ea(g5,", ",")",")"),v5=1e-12;function na(e){return((e=Math.exp(e))+1/e)/2}function w5(e){return((e=Math.exp(e))-1/e)/2}function p5(e){return((e=Math[c(511)](2*e))-1)/(e+1)}const wx=(function e(n,t,o){const x=c;function r(i,a){const d=_0x51e5;var u=i[0],s=i[1],b=i[2],g=a[0],h=a[1],v=a[2],f=g-u,w=h-s,M=f*f+w*w,y,m;if(M<v5)m=Math[d(859)](v/b)/n,y=function(q){return[u+q*f,s+q*w,b*Math.exp(n*q*m)]};else{var C=Math.sqrt(M),z=(v*v-b*b+o*M)/(2*b*t*C),P=(v*v-b*b-o*M)/(2*v*t*C),E=Math[d(859)](Math[d(2282)](z*z+1)-z),V=Math[d(859)](Math[d(2282)](P*P+1)-P);m=(V-E)/n,y=function(q){var U=q*m,W=na(E),H=b/(t*C)*(W*p5(n*U+E)-w5(E));return[u+H*f,s+H*w,b*W/na(n*U+E)]}}return y[d(1163)]=m*1e3*n/Math[d(485)],y}return r[x(939)]=function(i){var d=Math[x(656)](.001,+i),u=d*d,s=u*u;return e(d,u,s)},r})(Math[c(485)],2,4);var Rn=0,Lt=0,St=0,ta=1e3,px,Nt,zx=0,Mn=0,Cx=0,kt=typeof performance===c(990)&&performance.now?performance:Date,xa=typeof window===c(990)&&window.requestAnimationFrame?window[c(1177)][c(830)](window):function(e){setTimeout(e,17)};function Uo(){return Mn||(xa(z5),Mn=kt.now()+Cx)}function z5(){Mn=0}function Mx(){const e=c;this[e(1524)]=this[e(952)]=this[e(705)]=null}Mx[c(688)]=oa[c(688)]={constructor:Mx,restart:function(e,n,t){const o=c;if(typeof e!==o(1019))throw new TypeError(o(433));t=(t==null?Uo():+t)+(n==null?0:+n),!this[o(705)]&&Nt!==this&&(Nt?Nt[o(705)]=this:px=this,Nt=this),this._call=e,this._time=t,Go()},stop:function(){this[c(1524)]&&(this._call=null,this._time=1/0,Go())}};function oa(e,n,t){const o=c;var x=new Mx;return x[o(1797)](e,n,t),x}function C5(){const e=c;Uo(),++Rn;for(var n=px,t;n;)(t=Mn-n[e(952)])>=0&&n[e(1524)].call(void 0,t),n=n[e(705)];--Rn}function ra(){Mn=(zx=kt[c(1207)]())+Cx,Rn=Lt=0;try{C5()}finally{Rn=0,B5(),Mn=0}}function M5(){var n=kt[c(1207)](),t=n-zx;t>ta&&(Cx-=t,zx=n)}function B5(){const e=c;for(var n,t=px,o,x=1/0;t;)t[e(1524)]?(x>t[e(952)]&&(x=t[e(952)]),n=t,t=t[e(705)]):(o=t._next,t[e(705)]=null,t=n?n[e(705)]=o:px=o);Nt=n,Go(x)}function Go(e){const n=c;if(!Rn){Lt&&(Lt=clearTimeout(Lt));var t=e-Mn;t>24?(e<1/0&&(Lt=setTimeout(ra,e-kt.now()-Cx)),St&&(St=clearInterval(St))):(St||(zx=kt[n(1207)](),St=setInterval(M5,ta)),Rn=1,xa(ra))}}function ia(e,n,t){const o=c;var x=new Mx;return n=n==null?0:+n,x[o(1797)](r=>{x[o(1382)](),e(r+n)},n,t),x}var D5=sx(c(1635),c(1086),c(1309),c(915)),L5=[],aa=0,ca=1,Oo=2,Bx=3,sa=4,Vo=5,Dx=6;function Lx(e,n,t,o,x,r){const i=c;var a=e.__transition;if(!a)e.__transition={};else if(t in a)return;S5(e,t,{name:n,index:o,group:x,on:D5,tween:L5,time:r.time,delay:r.delay,duration:r[i(1163)],ease:r[i(2166)],timer:null,state:aa})}function Ho(e,n){const t=c;var o=Y0(e,n);if(o[t(1681)]>aa)throw new Error(t(1314));return o}function W0(e,n){const t=c;var o=Y0(e,n);if(o[t(1681)]>Bx)throw new Error("too late; already running");return o}function Y0(e,n){var t=e.__transition;if(!t||!(t=t[n]))throw new Error("transition not found");return t}function S5(e,n,t){const o=c;var x=e[o(1158)],r;x[n]=t,t[o(1089)]=oa(i,0,t[o(1006)]);function i(s){const b=o;t[b(1681)]=ca,t[b(1089)][b(1797)](a,t[b(1464)],t[b(1006)]),t[b(1464)]<=s&&a(s-t[b(1464)])}function a(s){const b=o;var g,h,v,f;if(t.state!==ca)return u();for(g in x)if(f=x[g],f[b(1123)]===t[b(1123)]){if(f.state===Bx)return ia(a);f[b(1681)]===sa?(f[b(1681)]=Dx,f[b(1089)][b(1382)](),f.on.call(b(915),e,e[b(597)],f.index,f.group),delete x[g]):+g<n&&(f[b(1681)]=Dx,f.timer[b(1382)](),f.on[b(945)](b(1309),e,e[b(597)],f.index,f[b(504)]),delete x[g])}if(ia(function(){const w=b;t[w(1681)]===Bx&&(t[w(1681)]=sa,t.timer[w(1797)](d,t[w(1464)],t[w(1006)]),d(s))}),t.state=Oo,t.on[b(945)](b(1635),e,e[b(597)],t.index,t[b(504)]),t[b(1681)]===Oo){for(t[b(1681)]=Bx,r=new Array(v=t[b(1571)].length),g=0,h=-1;g<v;++g)(f=t[b(1571)][g][b(1256)][b(945)](e,e[b(597)],t[b(1145)],t.group))&&(r[++h]=f);r[b(1755)]=h+1}}function d(s){const b=o;for(var g=s<t[b(1163)]?t[b(2166)][b(945)](null,s/t[b(1163)]):(t[b(1089)][b(1797)](u),t[b(1681)]=Vo,1),h=-1,v=r[b(1755)];++h<v;)r[h].call(e,g);t[b(1681)]===Vo&&(t.on[b(945)](b(1086),e,e[b(597)],t[b(1145)],t[b(504)]),u())}function u(){const s=o;t[s(1681)]=Dx,t[s(1089)].stop(),delete x[n];for(var b in x)return;delete e[s(1158)]}}function Sx(e,n){const t=c;var o=e.__transition,x,r,i=!0,a;if(o){n=n==null?null:n+"";for(a in o){if((x=o[a])[t(1123)]!==n){i=!1;continue}r=x[t(1681)]>Oo&&x.state<Vo,x[t(1681)]=Dx,x[t(1089)][t(1382)](),x.on.call(r?"interrupt":"cancel",e,e[t(597)],x[t(1145)],x[t(504)]),delete o[a]}i&&delete e[t(1158)]}}function N5(e){return this[c(2044)](function(){Sx(this,e)})}function k5(e,n){var t,o;return function(){const x=_0x51e5;var r=W0(this,e),i=r[x(1571)];if(i!==t){o=t=i;for(var a=0,d=o.length;a<d;++a)if(o[a].name===n){o=o[x(845)](),o[x(1580)](a,1);break}}r[x(1571)]=o}}function I5(e,n,t){const o=c;var x,r;if(typeof t!==o(1019))throw new Error;return function(){const i=o;var a=W0(this,e),d=a[i(1571)];if(d!==x){r=(x=d)[i(845)]();for(var u={name:n,value:t},s=0,b=r[i(1755)];s<b;++s)if(r[s][i(1123)]===n){r[s]=u;break}s===b&&r.push(u)}a[i(1571)]=r}}function P5(e,n){const t=c;var o=this._id;if(e+="",arguments[t(1755)]<2){for(var x=Y0(this.node(),o)[t(1571)],r=0,i=x.length,a;r<i;++r)if((a=x[r]).name===e)return a[t(1256)];return null}return this.each((n==null?k5:I5)(o,e,n))}function To(e,n,t){const o=c;var x=e._id;return e[o(2044)](function(){const r=o;var i=W0(this,x);(i[r(1256)]||(i[r(1256)]={}))[n]=t.apply(this,arguments)}),function(r){return Y0(r,x).value[n]}}function la(e,n){const t=c;var o;return(typeof n===t(825)?q0:n instanceof pn?mx:(o=pn(n))?(n=o,mx):Fi)(e,n)}function A5(e){return function(){this.removeAttribute(e)}}function j5(e){return function(){const n=_0x51e5;this.removeAttributeNS(e[n(1132)],e[n(2273)])}}function Y5(e,n,t){var o,x=t+"",r;return function(){var i=this.getAttribute(e);return i===x?null:i===o?r:r=n(o=i,t)}}function E5(e,n,t){var o,x=t+"",r;return function(){const i=_0x51e5;var a=this[i(759)](e.space,e[i(2273)]);return a===x?null:a===o?r:r=n(o=a,t)}}function U5(e,n,t){var o,x,r;return function(){const i=_0x51e5;var a,d=t(this),u;return d==null?void this[i(2272)](e):(a=this[i(1819)](e),u=d+"",a===u?null:a===o&&u===x?r:(x=u,r=n(o=a,d)))}}function G5(e,n,t){var o,x,r;return function(){const i=_0x51e5;var a,d=t(this),u;return d==null?void this[i(1498)](e[i(1132)],e.local):(a=this[i(759)](e[i(1132)],e[i(2273)]),u=d+"",a===u?null:a===o&&u===x?r:(x=u,r=n(o=a,d)))}}function O5(e,n){const t=c;var o=dx(e),x=o===t(1713)?m5:la;return this.attrTween(e,typeof n===t(1019)?(o[t(2273)]?G5:U5)(o,x,To(this,t(889)+e,n)):n==null?(o[t(2273)]?j5:A5)(o):(o[t(2273)]?E5:Y5)(o,x,n))}function V5(e,n){return function(t){const o=_0x51e5;this[o(1907)](e,n[o(945)](this,t))}}function H5(e,n){return function(t){const o=_0x51e5;this[o(645)](e[o(1132)],e[o(2273)],n[o(945)](this,t))}}function T5(e,n){var t,o;function x(){var i=n[_0x51e5(746)](this,arguments);return i!==o&&(t=(o=i)&&H5(e,i)),t}return x._value=n,x}function q5(e,n){var t,o;function x(){var i=n[_0x51e5(746)](this,arguments);return i!==o&&(t=(o=i)&&V5(e,i)),t}return x._value=n,x}function W5(e,n){const t=c;var o="attr."+e;if(arguments.length<2)return(o=this[t(1571)](o))&&o[t(2224)];if(n==null)return this.tween(o,null);if(typeof n!==t(1019))throw new Error;var x=dx(e);return this[t(1571)](o,(x[t(2273)]?T5:q5)(x,n))}function X5(e,n){return function(){const t=_0x51e5;Ho(this,e)[t(1464)]=+n[t(746)](this,arguments)}}function K5(e,n){return n=+n,function(){const t=_0x51e5;Ho(this,e)[t(1464)]=n}}function Z5(e){const n=c;var t=this[n(1653)];return arguments.length?this.each((typeof e===n(1019)?X5:K5)(t,e)):Y0(this[n(2099)](),t)[n(1464)]}function R5(e,n){return function(){const t=_0x51e5;W0(this,e)[t(1163)]=+n[t(746)](this,arguments)}}function J5(e,n){return n=+n,function(){W0(this,e).duration=n}}function Q5(e){const n=c;var t=this[n(1653)];return arguments[n(1755)]?this[n(2044)]((typeof e===n(1019)?R5:J5)(t,e)):Y0(this[n(2099)](),t)[n(1163)]}function F5(e,n){if(typeof n!="function")throw new Error;return function(){const t=_0x51e5;W0(this,e)[t(2166)]=n}}function _5(e){const n=c;var t=this[n(1653)];return arguments[n(1755)]?this[n(2044)](F5(t,e)):Y0(this[n(2099)](),t)[n(2166)]}function $5(e,n){return function(){const t=_0x51e5;var o=n.apply(this,arguments);if(typeof o!==t(1019))throw new Error;W0(this,e).ease=o}}function e2(e){const n=c;if(typeof e!==n(1019))throw new Error;return this[n(2044)]($5(this[n(1653)],e))}function n2(e){const n=c;typeof e!==n(1019)&&(e=Li(e));for(var t=this[n(1516)],o=t[n(1755)],x=new Array(o),r=0;r<o;++r)for(var i=t[r],a=i[n(1755)],d=x[r]=[],u,s=0;s<a;++s)(u=i[s])&&e.call(u,u[n(597)],s,i)&&d.push(u);return new R0(x,this[n(1916)],this[n(2252)],this[n(1653)])}function t2(e){const n=c;if(e._id!==this[n(1653)])throw new Error;for(var t=this._groups,o=e[n(1516)],x=t[n(1755)],r=o.length,i=Math[n(1050)](x,r),a=new Array(x),d=0;d<i;++d)for(var u=t[d],s=o[d],b=u[n(1755)],g=a[d]=new Array(b),h,v=0;v<b;++v)(h=u[v]||s[v])&&(g[v]=h);for(;d<x;++d)a[d]=t[d];return new R0(a,this[n(1916)],this[n(2252)],this._id)}function x2(e){const n=c;return(e+"")[n(982)]()[n(1179)](/^|\s+/)[n(444)](function(t){const o=n;var x=t[o(1515)](".");return x>=0&&(t=t.slice(0,x)),!t||t===o(1635)})}function o2(e,n,t){var o,x,r=x2(n)?Ho:W0;return function(){const i=_0x51e5;var a=r(this,e),d=a.on;d!==o&&(x=(o=d)[i(2069)]()).on(n,t),a.on=x}}function r2(e,n){const t=c;var o=this[t(1653)];return arguments[t(1755)]<2?Y0(this[t(2099)](),o).on.on(e):this[t(2044)](o2(o,e,n))}function i2(e){return function(){const n=_0x51e5;var t=this[n(1624)];for(var o in this[n(1158)])if(+o!==e)return;t&&t.removeChild(this)}}function a2(){const e=c;return this.on(e(2227),i2(this[e(1653)]))}function c2(e){const n=c;var t=this[n(2252)],o=this[n(1653)];typeof e!==n(1019)&&(e=Do(e));for(var x=this._groups,r=x.length,i=new Array(r),a=0;a<r;++a)for(var d=x[a],u=d.length,s=i[a]=new Array(u),b,g,h=0;h<u;++h)(b=d[h])&&(g=e[n(945)](b,b[n(597)],h,d))&&(n(597)in b&&(g[n(597)]=b[n(597)]),s[h]=g,Lx(s[h],t,o,h,s,Y0(b,o)));return new R0(i,this[n(1916)],t,o)}function s2(e){const n=c;var t=this[n(2252)],o=this._id;typeof e!==n(1019)&&(e=Di(e));for(var x=this[n(1516)],r=x.length,i=[],a=[],d=0;d<r;++d)for(var u=x[d],s=u[n(1755)],b,g=0;g<s;++g)if(b=u[g]){for(var h=e[n(945)](b,b[n(597)],g,u),v,f=Y0(b,o),w=0,M=h.length;w<M;++w)(v=h[w])&&Lx(v,t,o,w,h,f);i[n(573)](h),a[n(573)](b)}return new R0(i,a,t,o)}var l2=pt[c(688)].constructor;function d2(){const e=c;return new l2(this[e(1516)],this[e(1916)])}function u2(e,n){var t,o,x;return function(){var r=Xn(this,e),i=(this.style.removeProperty(e),Xn(this,e));return r===i?null:r===t&&i===o?x:x=n(t=r,o=i)}}function da(e){return function(){const n=_0x51e5;this.style[n(1839)](e)}}function b2(e,n,t){var o,x=t+"",r;return function(){var i=Xn(this,e);return i===x?null:i===o?r:r=n(o=i,t)}}function f2(e,n,t){var o,x,r;return function(){const i=_0x51e5;var a=Xn(this,e),d=t(this),u=d+"";return d==null&&(u=d=(this[i(777)][i(1839)](e),Xn(this,e))),a===u?null:a===o&&u===x?r:(x=u,r=n(o=a,d))}}function h2(e,n){var t,o,x,r="style."+n,i="end."+r,a;return function(){const d=_0x51e5;var u=W0(this,e),s=u.on,b=u[d(1256)][r]==null?a||(a=da(n)):void 0;(s!==t||x!==b)&&(o=(t=s)[d(2069)]()).on(i,x=b),u.on=o}}function g2(e,n,t){const o=c;var x=(e+="")=="transform"?y5:la;return n==null?this.styleTween(e,u2(e,x)).on("end.style."+e,da(e)):typeof n===o(1019)?this[o(1279)](e,f2(e,x,To(this,o(920)+e,n))).each(h2(this[o(1653)],e)):this[o(1279)](e,b2(e,x,n),t).on("end.style."+e,null)}function y2(e,n,t){return function(o){const x=_0x51e5;this[x(777)][x(1966)](e,n.call(this,o),t)}}function m2(e,n,t){const o=c;var x,r;function i(){var a=n.apply(this,arguments);return a!==r&&(x=(r=a)&&y2(e,a,t)),x}return i[o(2224)]=n,i}function v2(e,n,t){const o=c;var x=o(920)+(e+="");if(arguments[o(1755)]<2)return(x=this.tween(x))&&x._value;if(n==null)return this[o(1571)](x,null);if(typeof n!==o(1019))throw new Error;return this[o(1571)](x,m2(e,n,t??""))}function w2(e){return function(){const n=_0x51e5;this[n(1202)]=e}}function p2(e){return function(){var n=e(this);this.textContent=n??""}}function z2(e){const n=c;return this[n(1571)]("text",typeof e===n(1019)?p2(To(this,n(2223),e)):w2(e==null?"":e+""))}function C2(e){return function(n){const t=_0x51e5;this[t(1202)]=e[t(945)](this,n)}}function M2(e){const n=c;var t,o;function x(){var i=e[_0x51e5(746)](this,arguments);return i!==o&&(t=(o=i)&&C2(i)),t}return x[n(2224)]=e,x}function B2(e){const n=c;var t=n(2223);if(arguments[n(1755)]<1)return(t=this[n(1571)](t))&&t[n(2224)];if(e==null)return this.tween(t,null);if(typeof e!==n(1019))throw new Error;return this[n(1571)](t,M2(e))}function D2(){const e=c;for(var n=this[e(2252)],t=this[e(1653)],o=ua(),x=this[e(1516)],r=x[e(1755)],i=0;i<r;++i)for(var a=x[i],d=a[e(1755)],u,s=0;s<d;++s)if(u=a[s]){var b=Y0(u,t);Lx(u,n,o,s,a,{time:b.time+b[e(1464)]+b[e(1163)],delay:0,duration:b[e(1163)],ease:b[e(2166)]})}return new R0(x,this[e(1916)],n,o)}function L2(){const e=c;var n,t,o=this,x=o._id,r=o[e(492)]();return new Promise(function(i,a){var d={value:a},u={value:function(){--r===0&&i()}};o.each(function(){const s=_0x51e5;var b=W0(this,x),g=b.on;g!==n&&(t=(n=g)[s(2069)](),t._.cancel[s(573)](d),t._[s(915)][s(573)](d),t._[s(1086)][s(573)](u)),b.on=t}),r===0&&i()})}var S2=0;function R0(e,n,t,o){const x=c;this[x(1516)]=e,this[x(1916)]=n,this._name=t,this[x(1653)]=o}function ua(){return++S2}var J0=pt[c(688)];R0[c(688)]={constructor:R0,select:c2,selectAll:s2,selectChild:J0[c(1897)],selectChildren:J0[c(715)],filter:n2,merge:t2,selection:d2,transition:D2,call:J0[c(945)],nodes:J0[c(1349)],node:J0[c(2099)],size:J0.size,empty:J0[c(1073)],each:J0[c(2044)],on:r2,attr:O5,attrTween:W5,style:g2,styleTween:v2,text:z2,textTween:B2,remove:a2,tween:P5,delay:Z5,duration:Q5,ease:_5,easeVarying:e2,end:L2,[Symbol.iterator]:J0[Symbol[c(2015)]]};function N2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var k2={time:null,delay:0,duration:250,ease:N2};function I2(e,n){const t=c;for(var o;!(o=e.__transition)||!(o=o[n]);)if(!(e=e.parentNode))throw new Error("transition "+n+t(1075));return o}function P2(e){const n=c;var t,o;e instanceof R0?(t=e[n(1653)],e=e[n(2252)]):(t=ua(),(o=k2)[n(1006)]=Uo(),e=e==null?null:e+"");for(var x=this[n(1516)],r=x[n(1755)],i=0;i<r;++i)for(var a=x[i],d=a[n(1755)],u,s=0;s<d;++s)(u=a[s])&&Lx(u,e,t,s,a,o||I2(u,t));return new R0(x,this[n(1916)],e,t)}pt[c(688)][c(915)]=N5,pt[c(688)][c(1419)]=P2;const Nx=e=>()=>e;function A2(e,{sourceEvent:n,target:t,transform:o,dispatch:x}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:x}})}function Q0(e,n,t){this.k=e,this.x=n,this.y=t}Q0[c(688)]={constructor:Q0,scale:function(e){return e===1?this:new Q0(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new Q0(this.k,this.x+this.k*e,this.y+this.k*n)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){const n=c;return e.copy()[n(2011)](e[n(1877)]()[n(1226)](this[n(1437)],this)[n(1226)](e[n(2275)],e))},rescaleY:function(e){const n=c;return e[n(2069)]()[n(2011)](e[n(1877)]()[n(1226)](this.invertY,this)[n(1226)](e[n(2275)],e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var kx=new Q0(1,0,0);ba[c(688)]=Q0.prototype;function ba(e){const n=c;for(;!e[n(503)];)if(!(e=e[n(1624)]))return kx;return e[n(503)]}function qo(e){e[c(2182)]()}function It(e){const n=c;e[n(521)](),e[n(2182)]()}function j2(e){const n=c;return(!e.ctrlKey||e[n(1592)]===n(709))&&!e[n(1454)]}function Y2(){const e=c;var n=this;return n instanceof SVGElement?(n=n[e(1120)]||n,n[e(1306)](e(1570))?(n=n[e(1570)][e(1257)],[[n.x,n.y],[n.x+n.width,n.y+n[e(725)]]]):[[0,0],[n[e(434)].baseVal[e(1256)],n[e(725)][e(1257)][e(1256)]]]):[[0,0],[n[e(1480)],n[e(1301)]]]}function fa(){return this[c(503)]||kx}function E2(e){const n=c;return-e[n(1232)]*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e[n(2112)]?10:1)}function U2(){const e=c;return navigator.maxTouchPoints||e(1003)in this}function G2(e,n,t){const o=c;var x=e[o(1437)](n[0][0])-t[0][0],r=e[o(1437)](n[1][0])-t[1][0],i=e[o(1983)](n[0][1])-t[0][1],a=e[o(1983)](n[1][1])-t[1][1];return e[o(2071)](r>x?(x+r)/2:Math[o(1050)](0,x)||Math[o(656)](0,r),a>i?(i+a)/2:Math.min(0,i)||Math[o(656)](0,a))}function ha(){const e=c;var n=j2,t=Y2,o=G2,x=E2,r=U2,i=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],d=250,u=wx,s=sx("start","zoom","end"),b,g,h,v=500,f=150,w=0,M=10;function y(L){const S=_0x51e5;L[S(1128)](S(503),fa).on(S(1614),q,{passive:!1}).on(S(550),U).on(S(823),W).filter(r).on("touchstart.zoom",H).on("touchmove.zoom",G).on(S(1295),T)[S(777)](S(726),"rgba(0,0,0,0)")}y[e(1713)]=function(L,S,B,j){const A=e;var I=L[A(429)]?L.selection():L;I[A(1128)]("__zoom",fa),L!==I?P(L,S,B,j):I.interrupt()[A(2044)](function(){const J=A;E(this,arguments)[J(466)](j).start().zoom(null,typeof S===J(1019)?S[J(746)](this,arguments):S)[J(1086)]()})},y[e(929)]=function(L,S,B,j){const A=e;y[A(970)](L,function(){const I=A;var J=this[I(503)].k,_=typeof S===I(1019)?S[I(746)](this,arguments):S;return J*_},B,j)},y[e(970)]=function(L,S,B,j){const A=e;y[A(1713)](L,function(){const I=A;var J=t[I(746)](this,arguments),_=this[I(503)],F=B==null?z(J):typeof B===I(1019)?B[I(746)](this,arguments):B,ee=_[I(2275)](F),re=typeof S===I(1019)?S[I(746)](this,arguments):S;return o(C(m(_,re),F,ee),J,a)},B,j)},y[e(1164)]=function(L,S,B,j){const A=e;y[A(1713)](L,function(){const I=A;return o(this[I(503)][I(2071)](typeof S=="function"?S[I(746)](this,arguments):S,typeof B===I(1019)?B[I(746)](this,arguments):B),t.apply(this,arguments),a)},null,j)},y[e(2236)]=function(L,S,B,j,A){const I=e;y[I(1713)](L,function(){const J=I;var _=t.apply(this,arguments),F=this[J(503)],ee=j==null?z(_):typeof j===J(1019)?j[J(746)](this,arguments):j;return o(kx[J(2071)](ee[0],ee[1]).scale(F.k)[J(2071)](typeof S=="function"?-S[J(746)](this,arguments):-S,typeof B=="function"?-B[J(746)](this,arguments):-B),_,a)},j,A)};function m(L,S){const B=e;return S=Math[B(656)](i[0],Math[B(1050)](i[1],S)),S===L.k?L:new Q0(S,L.x,L.y)}function C(L,S,B){var j=S[0]-B[0]*L.k,A=S[1]-B[1]*L.k;return j===L.x&&A===L.y?L:new Q0(L.k,j,A)}function z(L){return[(+L[0][0]+ +L[1][0])/2,(+L[0][1]+ +L[1][1])/2]}function P(L,S,B,j){const A=e;L.on(A(860),function(){const I=A;E(this,arguments)[I(466)](j).start()}).on(A(623),function(){const I=A;E(this,arguments)[I(466)](j)[I(1086)]()}).tween(A(1146),function(){const I=A;var J=this,_=arguments,F=E(J,_)[I(466)](j),ee=t[I(746)](J,_),re=B==null?z(ee):typeof B===I(1019)?B[I(746)](J,_):B,ue=Math[I(656)](ee[1][0]-ee[0][0],ee[1][1]-ee[0][1]),pe=J[I(503)],Me=typeof S===I(1019)?S[I(746)](J,_):S,de=u(pe[I(2275)](re).concat(ue/pe.k),Me.invert(re).concat(ue/Me.k));return function($){const be=I;if($===1)$=Me;else{var ge=de($),Y=ue/ge[2];$=new Q0(Y,re[0]-ge[0]*Y,re[1]-ge[1]*Y)}F[be(1146)](null,$)}})}function E(L,S,B){return!B&&L[e(2203)]||new V(L,S)}function V(L,S){const B=e;this[B(739)]=L,this[B(2225)]=S,this[B(1143)]=0,this[B(1490)]=null,this[B(2231)]=t[B(746)](L,S),this[B(1033)]=0}V.prototype={event:function(L){return L&&(this.sourceEvent=L),this},start:function(){const L=e;return++this.active===1&&(this.that[L(2203)]=this,this[L(876)](L(1635))),this},zoom:function(L,S){const B=e;return this[B(579)]&&L!==B(579)&&(this[B(579)][1]=S[B(2275)](this[B(579)][0])),this[B(1352)]&&L!==B(907)&&(this[B(1352)][1]=S[B(2275)](this[B(1352)][0])),this[B(1923)]&&L!=="touch"&&(this[B(1923)][1]=S[B(2275)](this.touch1[0])),this[B(739)][B(503)]=S,this.emit("zoom"),this},end:function(){const L=e;return--this[L(1143)]===0&&(delete this[L(739)][L(2203)],this[L(876)](L(1086))),this},emit:function(L){const S=e;var B=C0(this[S(739)])[S(985)]();s.call(L,this[S(739)],new A2(L,{sourceEvent:this[S(1490)],target:y,transform:this[S(739)][S(503)],dispatch:s}),B)}};function q(L,...S){const B=e;if(!n[B(746)](this,arguments))return;var j=E(this,S).event(L),A=this[B(503)],I=Math[B(656)](i[0],Math[B(1050)](i[1],A.k*Math[B(611)](2,x.apply(this,arguments)))),J=A0(L);if(j[B(709)])(j[B(579)][0][0]!==J[0]||j[B(579)][0][1]!==J[1])&&(j[B(579)][1]=A[B(2275)](j[B(579)][0]=J)),clearTimeout(j.wheel);else{if(A.k===I)return;j[B(579)]=[J,A.invert(J)],Sx(this),j[B(1635)]()}It(L),j[B(709)]=setTimeout(_,f),j[B(1146)]("mouse",o(C(m(A,I),j.mouse[0],j[B(579)][1]),j[B(2231)],a));function _(){const F=B;j[F(709)]=null,j.end()}}function U(L,...S){const B=e;if(h||!n.apply(this,arguments))return;var j=L.currentTarget,A=E(this,S,!0)[B(466)](L),I=C0(L[B(2036)]).on(B(835),ee,!0).on(B(1583),re,!0),J=A0(L,j),_=L[B(2233)],F=L[B(1659)];Ui(L.view),qo(L),A[B(579)]=[J,this[B(503)].invert(J)],Sx(this),A[B(1635)]();function ee(ue){const pe=B;if(It(ue),!A.moved){var Me=ue[pe(2233)]-_,de=ue[pe(1659)]-F;A[pe(956)]=Me*Me+de*de>w}A.event(ue)[pe(1146)]("mouse",o(C(A[pe(739)].__zoom,A.mouse[0]=A0(ue,j),A[pe(579)][1]),A.extent,a))}function re(ue){const pe=B;I.on(pe(1067),null),Gi(ue[pe(2036)],A[pe(956)]),It(ue),A.event(ue)[pe(1086)]()}}function W(L,...S){const B=e;if(n[B(746)](this,arguments)){var j=this[B(503)],A=A0(L[B(980)]?L[B(980)][0]:L,this),I=j.invert(A),J=j.k*(L[B(785)]?.5:2),_=o(C(m(j,J),A,I),t.apply(this,S),a);It(L),d>0?C0(this)[B(1419)]()[B(1163)](d).call(P,_,A,L):C0(this)[B(945)](y.transform,_,A,L)}}function H(L,...S){const B=e;if(n[B(746)](this,arguments)){var j=L.touches,A=j[B(1755)],I=E(this,S,L[B(980)].length===A)[B(466)](L),J,_,F,ee;for(qo(L),_=0;_<A;++_)F=j[_],ee=A0(F,this),ee=[ee,this[B(503)][B(2275)](ee),F[B(1766)]],I.touch0?!I[B(1923)]&&I[B(1352)][2]!==ee[2]&&(I[B(1923)]=ee,I[B(1033)]=0):(I[B(1352)]=ee,J=!0,I[B(1033)]=1+!!b);b&&(b=clearTimeout(b)),J&&(I[B(1033)]<2&&(g=ee[0],b=setTimeout(function(){b=null},v)),Sx(this),I[B(1635)]())}}function G(L,...S){const B=e;if(this[B(2203)]){var j=E(this,S).event(L),A=L[B(980)],I=A[B(1755)],J,_,F,ee;for(It(L),J=0;J<I;++J)_=A[J],F=A0(_,this),j[B(1352)]&&j[B(1352)][2]===_[B(1766)]?j[B(1352)][0]=F:j[B(1923)]&&j[B(1923)][2]===_[B(1766)]&&(j[B(1923)][0]=F);if(_=j.that[B(503)],j[B(1923)]){var re=j[B(1352)][0],ue=j[B(1352)][1],pe=j[B(1923)][0],Me=j[B(1923)][1],de=(de=pe[0]-re[0])*de+(de=pe[1]-re[1])*de,$=($=Me[0]-ue[0])*$+($=Me[1]-ue[1])*$;_=m(_,Math.sqrt(de/$)),F=[(re[0]+pe[0])/2,(re[1]+pe[1])/2],ee=[(ue[0]+Me[0])/2,(ue[1]+Me[1])/2]}else if(j[B(1352)])F=j[B(1352)][0],ee=j.touch0[1];else return;j[B(1146)](B(907),o(C(_,F,ee),j.extent,a))}}function T(L,...S){const B=e;if(this[B(2203)]){var j=E(this,S)[B(466)](L),A=L.changedTouches,I=A[B(1755)],J,_;for(qo(L),h&&clearTimeout(h),h=setTimeout(function(){h=null},v),J=0;J<I;++J)_=A[J],j[B(1352)]&&j.touch0[2]===_[B(1766)]?delete j[B(1352)]:j[B(1923)]&&j.touch1[2]===_.identifier&&delete j[B(1923)];if(j.touch1&&!j[B(1352)]&&(j[B(1352)]=j.touch1,delete j.touch1),j[B(1352)])j[B(1352)][1]=this[B(503)][B(2275)](j[B(1352)][0]);else if(j.end(),j.taps===2&&(_=A0(_,this),Math[B(1894)](g[0]-_[0],g[1]-_[1])<M)){var F=C0(this).on(B(823));F&&F.apply(this,arguments)}}}return y.wheelDelta=function(L){return arguments.length?(x=typeof L=="function"?L:Nx(+L),y):x},y[e(1947)]=function(L){const S=e;return arguments.length?(n=typeof L===S(1019)?L:Nx(!!L),y):n},y[e(1058)]=function(L){const S=e;return arguments[S(1755)]?(r=typeof L===S(1019)?L:Nx(!!L),y):r},y.extent=function(L){const S=e;return arguments[S(1755)]?(t=typeof L===S(1019)?L:Nx([[+L[0][0],+L[0][1]],[+L[1][0],+L[1][1]]]),y):t},y.scaleExtent=function(L){return arguments[e(1755)]?(i[0]=+L[0],i[1]=+L[1],y):[i[0],i[1]]},y[e(964)]=function(L){return arguments[e(1755)]?(a[0][0]=+L[0][0],a[1][0]=+L[1][0],a[0][1]=+L[0][1],a[1][1]=+L[1][1],y):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},y[e(840)]=function(L){return arguments[e(1755)]?(o=L,y):o},y[e(1163)]=function(L){return arguments.length?(d=+L,y):d},y[e(1110)]=function(L){return arguments.length?(u=L,y):u},y.on=function(){const L=e;var S=s.on[L(746)](s,arguments);return S===s?y:S},y[e(1445)]=function(L){const S=e;return arguments[S(1755)]?(w=(L=+L)*L,y):Math[S(2282)](w)},y[e(1156)]=function(L){return arguments[e(1755)]?(M=+L,y):M},y}const M0={error001:()=>c(856),error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>'Node type "'+e+c(1399),error004:()=>c(1667),error005:()=>c(787),error006:()=>c(1215),error007:e=>c(797)+e+" does not exist.",error009:e=>c(458)+e+c(2268),error008:(e,{id:n,sourceHandle:t,targetHandle:o})=>"Couldn't create edge for "+e+c(1211)+(e===c(2058)?t:o)+c(1568)+n+".",error010:()=>c(717),error011:e=>c(781)+e+c(1399),error012:e=>c(1149)+e+c(1424),error013:(e=c(903))=>c(917)+e+c(1553),error014:()=>c(1441),error015:()=>c(1242)},Pt=[[Number[c(2218)],Number[c(2218)]],[Number[c(1255)],Number[c(1255)]]],ga=[c(1994)," ",c(924)],ya={"node.a11yDescription.default":c(639),"node.a11yDescription.keyboardDisabled":c(1643),"node.a11yDescription.ariaLiveMessage":({direction:e,x:n,y:t})=>c(1506)+e+c(1374)+n+c(1955)+t,"edge.a11yDescription.default":c(1995),"controls.ariaLabel":c(1952),"controls.zoomIn.ariaLabel":c(967),"controls.zoomOut.ariaLabel":c(559),"controls.fitView.ariaLabel":c(1210),"controls.interactive.ariaLabel":c(2262),"minimap.ariaLabel":"Mini Map","handle.ariaLabel":c(2038)};var Jn;(function(e){const n=c;e[n(2212)]=n(1012),e[n(680)]="loose"})(Jn||(Jn={}));var Bn;(function(e){const n=c;e[n(545)]=n(1186),e[n(2046)]=n(1724),e[n(853)]=n(872)})(Bn||(Bn={}));var At;(function(e){const n=c;e[n(852)]="partial",e[n(1820)]=n(760)})(At||(At={}));const ma={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var cn;(function(e){const n=c;e[n(1252)]=n(1465),e[n(2133)]="straight",e.Step="step",e.SmoothStep=n(1716),e[n(1268)]=n(1162)})(cn||(cn={}));var Ix;(function(e){const n=c;e.Arrow=n(1604),e[n(882)]=n(1949)})(Ix||(Ix={}));var Ne;(function(e){const n=c;e[n(1264)]=n(2281),e[n(1623)]=n(1727),e[n(1904)]=n(1798),e.Bottom=n(978)})(Ne||(Ne={}));const va={[Ne[c(1264)]]:Ne[c(1904)],[Ne[c(1904)]]:Ne[c(1264)],[Ne[c(1623)]]:Ne[c(1557)],[Ne[c(1557)]]:Ne.Top};function wa(e){const n=c;return e===null?null:n(e?1495:1451)}const pa=e=>"id"in e&&c(2058)in e&&c(450)in e,O2=e=>"id"in e&&c(675)in e&&!(c(2058)in e)&&!(c(450)in e),Wo=e=>"id"in e&&"internals"in e&&!(c(2058)in e)&&!(c(450)in e),jt=(e,n=[0,0])=>{const t=c,{width:o,height:x}=F0(e),r=e[t(575)]??n,i=o*r[0],a=x*r[1];return{x:e[t(675)].x-i,y:e.position.y-a}},V2=(e,n={nodeOrigin:[0,0]})=>{const t=c;if(process.env.NODE_ENV===t(1209)&&!n[t(1470)]&&console[t(2051)](t(1717)),e[t(1755)]===0)return{x:0,y:0,width:0,height:0};const o=e.reduce((x,r)=>{const i=t,a=typeof r=="string";let d=!n[i(1470)]&&!a?r:void 0;n.nodeLookup&&(d=a?n[i(1470)][i(689)](r):Wo(r)?r:n[i(1470)][i(689)](r.id));const u=d?jx(d,n[i(793)]):{x:0,y:0,x2:0,y2:0};return Px(x,u)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Ax(o)},Yt=(e,n={})=>{const t=c;let o={x:1/0,y:1/0,x2:-1/0,y2:-1/0},x=!1;return e[t(475)](r=>{const i=t;(n[i(1947)]===void 0||n[i(1947)](r))&&(o=Px(o,jx(r)),x=!0)}),x?Ax(o):{x:0,y:0,width:0,height:0}},Xo=(e,n,[t,o,x]=[0,0,1],r=!1,i=!1)=>{const a=c,d={...Gt(n,[t,o,x]),width:n.width/x,height:n[a(725)]/x},u=[];for(const s of e[a(951)]()){const{measured:b,selectable:g=!0,hidden:h=!1}=s;if(i&&!g||h)continue;const v=b[a(434)]??s[a(434)]??s[a(1406)]??null,f=b[a(725)]??s[a(725)]??s.initialHeight??null,w=Et(d,Fn(s)),M=(v??0)*(f??0),y=r&&w>0;(!s.internals[a(2125)]||y||w>=M||s[a(2240)])&&u.push(s)}return u},H2=(e,n)=>{const t=c,o=new Set;return e.forEach(x=>{o.add(x.id)}),n[t(1947)](x=>o[t(1308)](x.source)||o[t(1308)](x[t(450)]))};function T2(e,n){const t=c,o=new Map,x=n?.[t(1349)]?new Set(n[t(1349)].map(r=>r.id)):null;return e.forEach(r=>{const i=t;r[i(1168)][i(434)]&&r[i(1168)].height&&(n?.[i(1453)]||!r[i(2103)])&&(!x||x[i(1308)](r.id))&&o[i(643)](r.id,r)}),o}async function q2({nodes:e,width:n,height:t,panZoom:o,minZoom:x,maxZoom:r},i){const a=c;if(e[a(492)]===0)return Promise[a(1858)](!0);const d=T2(e,i),u=Yt(d),s=Zo(u,n,t,i?.[a(1007)]??x,i?.maxZoom??r,i?.padding??.1);return await o[a(2033)](s,{duration:i?.[a(1163)],ease:i?.ease,interpolate:i?.[a(1110)]}),Promise[a(1858)](!0)}function za({nodeId:e,nextPosition:n,nodeLookup:t,nodeOrigin:o=[0,0],nodeExtent:x,onError:r}){const i=c,a=t[i(689)](e),d=a.parentId?t[i(689)](a[i(887)]):void 0,{x:u,y:s}=d?d[i(815)][i(1739)]:{x:0,y:0},b=a[i(575)]??o;let g=a[i(2231)]||x;if(a.extent===i(1552)&&!a[i(796)])if(!d)r?.("005",M0[i(2009)]());else{const v=d[i(1168)][i(434)],f=d[i(1168)][i(725)];v&&f&&(g=[[u,s],[u+v,s+f]])}else d&&$n(a.extent)&&(g=[[a.extent[0][0]+u,a[i(2231)][0][1]+s],[a[i(2231)][1][0]+u,a[i(2231)][1][1]+s]]);const h=$n(g)?Dn(n,g,a.measured):n;return(a[i(1168)].width===void 0||a[i(1168)][i(725)]===void 0)&&r?.("015",M0[i(1020)]()),{position:{x:h.x-u+(a[i(1168)][i(434)]??0)*b[0],y:h.y-s+(a[i(1168)][i(725)]??0)*b[1]},positionAbsolute:h}}async function W2({nodesToRemove:e=[],edgesToRemove:n=[],nodes:t,edges:o,onBeforeDelete:x}){const r=c,i=new Set(e[r(1226)](h=>h.id)),a=[];for(const h of t){if(h[r(2222)]===!1)continue;const v=i[r(1308)](h.id),f=!v&&h[r(887)]&&a.find(w=>w.id===h[r(887)]);(v||f)&&a[r(573)](h)}const d=new Set(n[r(1226)](h=>h.id)),u=o[r(1947)](h=>h[r(2222)]!==!1),s=H2(a,u),b=s;for(const h of u)d.has(h.id)&&!b[r(517)](f=>f.id===h.id)&&b[r(573)](h);if(!x)return{edges:b,nodes:a};const g=await x({nodes:a,edges:b});return typeof g=="boolean"?g?{edges:b,nodes:a}:{edges:[],nodes:[]}:g}const Qn=(e,n=0,t=1)=>Math[c(1050)](Math[c(656)](e,n),t),Dn=(e={x:0,y:0},n,t)=>({x:Qn(e.x,n[0][0],n[1][0]-(t?.[c(434)]??0)),y:Qn(e.y,n[0][1],n[1][1]-(t?.[c(725)]??0))});function Ca(e,n,t){const o=c,{width:x,height:r}=F0(t),{x:i,y:a}=t[o(815)][o(1739)];return Dn(e,[[i,a],[i+x,a+r]],n)}const Ma=(e,n,t)=>{const o=c;return e<n?Qn(Math[o(1032)](e-n),1,n)/n:e>t?-Qn(Math.abs(e-t),1,n)/n:0},Ba=(e,n,t=15,o=40)=>{const x=c,r=Ma(e.x,o,n[x(434)]-o)*t,i=Ma(e.y,o,n.height-o)*t;return[r,i]},Px=(e,n)=>({x:Math[c(1050)](e.x,n.x),y:Math[c(1050)](e.y,n.y),x2:Math[c(656)](e.x2,n.x2),y2:Math.max(e.y2,n.y2)}),Ko=({x:e,y:n,width:t,height:o})=>({x:e,y:n,x2:e+t,y2:n+o}),Ax=({x:e,y:n,x2:t,y2:o})=>({x:e,y:n,width:t-e,height:o-n}),Fn=(e,n=[0,0])=>{const t=c,{x:o,y:x}=Wo(e)?e[t(815)][t(1739)]:jt(e,n);return{x:o,y:x,width:e[t(1168)]?.[t(434)]??e.width??e.initialWidth??0,height:e[t(1168)]?.[t(725)]??e[t(725)]??e[t(2016)]??0}},jx=(e,n=[0,0])=>{const t=c,{x:o,y:x}=Wo(e)?e[t(815)].positionAbsolute:jt(e,n);return{x:o,y:x,x2:o+(e[t(1168)]?.[t(434)]??e[t(434)]??e.initialWidth??0),y2:x+(e[t(1168)]?.[t(725)]??e[t(725)]??e.initialHeight??0)}},Da=(e,n)=>Ax(Px(Ko(e),Ko(n))),Et=(e,n)=>{const t=c,o=Math[t(656)](0,Math[t(1050)](e.x+e[t(434)],n.x+n[t(434)])-Math[t(656)](e.x,n.x)),x=Math[t(656)](0,Math[t(1050)](e.y+e[t(725)],n.y+n[t(725)])-Math[t(656)](e.y,n.y));return Math[t(1801)](o*x)},La=e=>E0(e[c(434)])&&E0(e.height)&&E0(e.x)&&E0(e.y),E0=e=>!isNaN(e)&&isFinite(e),Sa=(e,n)=>{const t=c;process.env.NODE_ENV===t(1209)&&console[t(2051)](t(1841)+n+t(1921)+e)},Ut=(e,n=[1,1])=>{const t=c;return{x:n[0]*Math[t(909)](e.x/n[0]),y:n[1]*Math[t(909)](e.y/n[1])}},Gt=({x:e,y:n},[t,o,x],r=!1,i=[1,1])=>{const a={x:(e-t)/x,y:(n-o)/x};return r?Ut(a,i):a},Yx=({x:e,y:n},[t,o,x])=>({x:e*x+t,y:n*x+o});function _n(e,n){const t=c;if(typeof e===t(825))return Math[t(1144)]((n-n/(1+e))*.5);if(typeof e===t(2150)&&e[t(1610)]("px")){const o=parseFloat(e);if(!Number[t(880)](o))return Math.floor(o)}if(typeof e===t(2150)&&e.endsWith("%")){const o=parseFloat(e);if(!Number[t(880)](o))return Math[t(1144)](n*o*.01)}return console[t(1487)](t(1917)+e+t(638)),0}function X2(e,n,t){const o=c;if(typeof e===o(2150)||typeof e=="number"){const x=_n(e,t),r=_n(e,n);return{top:x,right:r,bottom:x,left:r,x:r*2,y:x*2}}if(typeof e=="object"){const x=_n(e.top??e.y??0,t),r=_n(e[o(978)]??e.y??0,t),i=_n(e.left??e.x??0,n),a=_n(e[o(1798)]??e.x??0,n);return{top:x,right:a,bottom:r,left:i,x:i+a,y:x+r}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function K2(e,n,t,o,x,r){const i=c,{x:a,y:d}=Yx(e,[n,t,o]),{x:u,y:s}=Yx({x:e.x+e[i(434)],y:e.y+e[i(725)]},[n,t,o]),b=x-u,g=r-s;return{left:Math[i(1144)](a),top:Math[i(1144)](d),right:Math.floor(b),bottom:Math[i(1144)](g)}}const Zo=(e,n,t,o,x,r)=>{const i=c,a=X2(r,n,t),d=(n-a.x)/e[i(434)],u=(t-a.y)/e[i(725)],s=Math[i(1050)](d,u),b=Qn(s,o,x),g=e.x+e.width/2,h=e.y+e[i(725)]/2,v=n/2-g*b,f=t/2-h*b,w=K2(e,v,f,b,n,t),M={left:Math.min(w[i(2281)]-a.left,0),top:Math[i(1050)](w[i(1727)]-a[i(1727)],0),right:Math.min(w[i(1798)]-a[i(1798)],0),bottom:Math.min(w.bottom-a[i(978)],0)};return{x:v-M[i(2281)]+M.right,y:f-M[i(1727)]+M.bottom,zoom:b}},Ot=()=>typeof navigator<"u"&&navigator?.[c(1969)]?.indexOf("Mac")>=0;function $n(e){return e!=null&&e!=="parent"}function F0(e){const n=c;return{width:e[n(1168)]?.[n(434)]??e[n(434)]??e[n(1406)]??0,height:e.measured?.[n(725)]??e[n(725)]??e[n(2016)]??0}}function Na(e){const n=c;return(e[n(1168)]?.[n(434)]??e[n(434)]??e.initialWidth)!==void 0&&(e[n(1168)]?.height??e.height??e[n(2016)])!==void 0}function ka(e,n={width:0,height:0},t,o,x){const r=c,i={...e},a=o[r(689)](t);if(a){const d=a.origin||x;i.x+=a[r(815)].positionAbsolute.x-(n[r(434)]??0)*d[0],i.y+=a[r(815)].positionAbsolute.y-(n.height??0)*d[1]}return i}function Ia(e,n){const t=c;if(e[t(492)]!==n.size)return!1;for(const o of e)if(!n[t(1308)](o))return!1;return!0}function Z2(){let e,n;return{promise:new Promise((o,x)=>{e=o,n=x}),resolve:e,reject:n}}function R2(e){return{...ya,...e||{}}}function Vt(e,{snapGrid:n=[0,0],snapToGrid:t=!1,transform:o,containerBounds:x}){const r=c,{x:i,y:a}=U0(e),d=Gt({x:i-(x?.[r(2281)]??0),y:a-(x?.top??0)},o),{x:u,y:s}=t?Ut(d,n):d;return{xSnapped:u,ySnapped:s,...d}}const Ro=e=>({width:e[c(1865)],height:e.offsetHeight}),Pa=e=>e?.[c(1808)]?.()||window?.[c(1503)],J2=["INPUT",c(1779),c(2068)];function Aa(e){const n=c,t=e.composedPath?.()?.[0]||e[n(450)];return t?.[n(1937)]!==1?!1:J2[n(1230)](t[n(857)])||t[n(1306)](n(1601))||!!t[n(436)](n(1776))}const ja=e=>c(2233)in e,U0=(e,n)=>{const t=c,o=ja(e),x=o?e[t(2233)]:e[t(2114)]?.[0][t(2233)],r=o?e[t(1659)]:e.touches?.[0][t(1659)];return{x:x-(n?.left??0),y:r-(n?.top??0)}},Ya=(e,n,t,o,x)=>{const r=c,i=n[r(1612)]("."+e);return!i||!i[r(1755)]?null:Array.from(i).map(a=>{const d=r,u=a[d(1596)]();return{id:a[d(1819)](d(1471)),type:e,nodeId:x,position:a[d(1819)](d(565)),x:(u[d(2281)]-t[d(2281)])/o,y:(u.top-t[d(1727)])/o,...Ro(a)}})};function Ea({sourceX:e,sourceY:n,targetX:t,targetY:o,sourceControlX:x,sourceControlY:r,targetControlX:i,targetControlY:a}){const d=c,u=e*.125+x*.375+i*.375+t*.125,s=n*.125+r*.375+a*.375+o*.125,b=Math[d(1032)](u-e),g=Math.abs(s-n);return[u,s,b,g]}function Ex(e,n){return e>=0?.5*e:n*25*Math.sqrt(-e)}function Ua({pos:e,x1:n,y1:t,x2:o,y2:x,c:r}){const i=c;switch(e){case Ne[i(1264)]:return[n-Ex(n-o,r),t];case Ne[i(1904)]:return[n+Ex(o-n,r),t];case Ne[i(1623)]:return[n,t-Ex(t-x,r)];case Ne[i(1557)]:return[n,t+Ex(x-t,r)]}}function Ga({sourceX:e,sourceY:n,sourcePosition:t=Ne[c(1557)],targetX:o,targetY:x,targetPosition:r=Ne.Top,curvature:i=.25}){const[a,d]=Ua({pos:t,x1:e,y1:n,x2:o,y2:x,c:i}),[u,s]=Ua({pos:r,x1:o,y1:x,x2:e,y2:n,c:i}),[b,g,h,v]=Ea({sourceX:e,sourceY:n,targetX:o,targetY:x,sourceControlX:a,sourceControlY:d,targetControlX:u,targetControlY:s});return["M"+e+","+n+" C"+a+","+d+" "+u+","+s+" "+o+","+x,b,g,h,v]}function Oa({sourceX:e,sourceY:n,targetX:t,targetY:o}){const x=c,r=Math[x(1032)](t-e)/2,i=t<e?t+r:t-r,a=Math[x(1032)](o-n)/2,d=o<n?o+a:o-a;return[i,d,r,a]}function Q2({sourceNode:e,targetNode:n,selected:t=!1,zIndex:o=0,elevateOnSelect:x=!1,zIndexMode:r=c(1013)}){const i=c;if(r==="manual")return o;const a=x&&t?o+1e3:o,d=Math[i(656)](e[i(887)]||x&&e[i(471)]?e[i(815)].z:0,n[i(887)]||x&&n[i(471)]?n[i(815)].z:0);return a+d}function F2({sourceNode:e,targetNode:n,width:t,height:o,transform:x}){const r=Px(jx(e),jx(n));r.x===r.x2&&(r.x2+=1),r.y===r.y2&&(r.y2+=1);const i={x:-x[0]/x[2],y:-x[1]/x[2],width:t/x[2],height:o/x[2]};return Et(i,Ax(r))>0}const _2=({source:e,sourceHandle:n,target:t,targetHandle:o})=>c(1401)+e+(n||"")+"-"+t+(o||""),$2=(e,n)=>{const t=c;return n[t(1321)](o=>o.source===e[t(2058)]&&o[t(450)]===e.target&&(o[t(2076)]===e.sourceHandle||!o.sourceHandle&&!e[t(2076)])&&(o[t(420)]===e[t(420)]||!o[t(420)]&&!e.targetHandle))},Va=(e,n,t={})=>{const o=c;if(!e[o(2058)]||!e[o(450)])return Sa("006",M0.error006()),n;const x=t[o(1860)]||_2;let r;return pa(e)?r={...e}:r={...e,id:x(e)},$2(r,n)?n:(r[o(2076)]===null&&delete r[o(2076)],r[o(420)]===null&&delete r[o(420)],n[o(1379)](r))};function Ha({sourceX:e,sourceY:n,targetX:t,targetY:o}){const[x,r,i,a]=Oa({sourceX:e,sourceY:n,targetX:t,targetY:o});return["M "+e+","+n+"L "+t+","+o,x,r,i,a]}const Ta={[Ne[c(1264)]]:{x:-1,y:0},[Ne[c(1904)]]:{x:1,y:0},[Ne.Top]:{x:0,y:-1},[Ne.Bottom]:{x:0,y:1}},eb=({source:e,sourcePosition:n=Ne[c(1557)],target:t})=>{const o=c;return n===Ne[o(1264)]||n===Ne[o(1904)]?e.x<t.x?{x:1,y:0}:{x:-1,y:0}:e.y<t.y?{x:0,y:1}:{x:0,y:-1}},qa=(e,n)=>Math[c(2282)](Math[c(611)](n.x-e.x,2)+Math[c(611)](n.y-e.y,2));function nb({source:e,sourcePosition:n=Ne[c(1557)],target:t,targetPosition:o=Ne[c(1623)],center:x,offset:r,stepPosition:i}){const a=c,d=Ta[n],u=Ta[o],s={x:e.x+d.x*r,y:e.y+d.y*r},b={x:t.x+u.x*r,y:t.y+u.y*r},g=eb({source:s,sourcePosition:n,target:b}),h=g.x!==0?"x":"y",v=g[h];let f=[],w,M;const y={x:0,y:0},m={x:0,y:0},[,,C,z]=Oa({sourceX:e.x,sourceY:e.y,targetX:t.x,targetY:t.y});if(d[h]*u[h]===-1){h==="x"?(w=x.x??s.x+(b.x-s.x)*i,M=x.y??(s.y+b.y)/2):(w=x.x??(s.x+b.x)/2,M=x.y??s.y+(b.y-s.y)*i);const q=[{x:w,y:s.y},{x:w,y:b.y}],U=[{x:s.x,y:M},{x:b.x,y:M}];d[h]===v?f=h==="x"?q:U:f=h==="x"?U:q}else{const q=[{x:s.x,y:b.y}],U=[{x:b.x,y:s.y}];if(h==="x"?f=d.x===v?U:q:f=d.y===v?q:U,n===o){const L=Math.abs(e[h]-t[h]);if(L<=r){const S=Math[a(1050)](r-1,r-L);d[h]===v?y[h]=(s[h]>e[h]?-1:1)*S:m[h]=(b[h]>t[h]?-1:1)*S}}if(n!==o){const L=h==="x"?"y":"x",S=d[h]===u[L],B=s[L]>b[L],j=s[L]<b[L];(d[h]===1&&(!S&&B||S&&j)||d[h]!==1&&(!S&&j||S&&B))&&(f=h==="x"?q:U)}const W={x:s.x+y.x,y:s.y+y.y},H={x:b.x+m.x,y:b.y+m.y},G=Math[a(656)](Math.abs(W.x-f[0].x),Math.abs(H.x-f[0].x)),T=Math[a(656)](Math[a(1032)](W.y-f[0].y),Math[a(1032)](H.y-f[0].y));G>=T?(w=(W.x+H.x)/2,M=f[0].y):(w=f[0].x,M=(W.y+H.y)/2)}const P={x:s.x+y.x,y:s.y+y.y},E={x:b.x+m.x,y:b.y+m.y};return[[e,...P.x!==f[0].x||P.y!==f[0].y?[P]:[],...f,...E.x!==f[f[a(1755)]-1].x||E.y!==f[f[a(1755)]-1].y?[E]:[],t],w,M,C,z]}function tb(e,n,t,o){const x=c,r=Math[x(1050)](qa(e,n)/2,qa(n,t)/2,o),{x:i,y:a}=n;if(e.x===i&&i===t.x||e.y===a&&a===t.y)return"L"+i+" "+a;if(e.y===a){const s=e.x<t.x?-1:1,b=e.y<t.y?1:-1;return"L "+(i+r*s)+","+a+"Q "+i+","+a+" "+i+","+(a+r*b)}const d=e.x<t.x?1:-1,u=e.y<t.y?-1:1;return"L "+i+","+(a+r*u)+"Q "+i+","+a+" "+(i+r*d)+","+a}function Jo({sourceX:e,sourceY:n,sourcePosition:t=Ne[c(1557)],targetX:o,targetY:x,targetPosition:r=Ne[c(1623)],borderRadius:i=5,centerX:a,centerY:d,offset:u=20,stepPosition:s=.5}){const b=c,[g,h,v,f,w]=nb({source:{x:e,y:n},sourcePosition:t,target:{x:o,y:x},targetPosition:r,center:{x:a,y:d},offset:u,stepPosition:s});let M="M"+g[0].x+" "+g[0].y;for(let y=1;y<g[b(1755)]-1;y++)M+=tb(g[y-1],g[y],g[y+1],i);return M+="L"+g[g.length-1].x+" "+g[g[b(1755)]-1].y,[M,h,v,f,w]}function Wa(e){const n=c;return e&&!!(e[n(815)][n(2125)]||e[n(2064)]?.[n(1755)])&&!!(e.measured[n(434)]||e[n(434)]||e[n(1406)])}function xb(e){const n=c,{sourceNode:t,targetNode:o}=e;if(!Wa(t)||!Wa(o))return null;const x=t[n(815)].handleBounds||Xa(t[n(2064)]),r=o[n(815)][n(2125)]||Xa(o[n(2064)]),i=Ka(x?.[n(2058)]??[],e.sourceHandle),a=Ka(e[n(751)]===Jn[n(2212)]?r?.[n(450)]??[]:(r?.[n(450)]??[])[n(1379)](r?.[n(2058)]??[]),e[n(420)]);if(!i||!a)return e.onError?.(n(1287),M0.error008(n(i?450:2058),{id:e.id,sourceHandle:e[n(2076)],targetHandle:e[n(420)]})),null;const d=i?.[n(675)]||Ne[n(1557)],u=a?.position||Ne.Top,s=Ln(t,i,d),b=Ln(o,a,u);return{sourceX:s.x,sourceY:s.y,targetX:b.x,targetY:b.y,sourcePosition:d,targetPosition:u}}function Xa(e){const n=c;if(!e)return null;const t=[],o=[];for(const x of e)x[n(434)]=x[n(434)]??1,x[n(725)]=x.height??1,x[n(1592)]===n(2058)?t[n(573)](x):x[n(1592)]===n(450)&&o[n(573)](x);return{source:t,target:o}}function Ln(e,n,t=Ne[c(1264)],o=!1){const x=c,r=(n?.x??0)+e.internals[x(1739)].x,i=(n?.y??0)+e.internals[x(1739)].y,{width:a,height:d}=n??F0(e);if(o)return{x:r+a/2,y:i+d/2};switch(n?.[x(675)]??t){case Ne.Top:return{x:r+a/2,y:i};case Ne[x(1904)]:return{x:r+a,y:i+d/2};case Ne[x(1557)]:return{x:r+a/2,y:i+d};case Ne[x(1264)]:return{x:r,y:i+d/2}}}function Ka(e,n){const t=c;return e&&(n?e[t(517)](o=>o.id===n):e[0])||null}function Qo(e,n){const t=c;return e?typeof e===t(2150)?e:""+(n?n+"__":"")+Object[t(1485)](e).sort()[t(1226)](x=>x+"="+e[x]).join("&"):""}function ob(e,{id:n,defaultColor:t,defaultMarkerStart:o,defaultMarkerEnd:x}){const r=c,i=new Set;return e[r(1872)]((a,d)=>{const u=r;return[d.markerStart||o,d.markerEnd||x][u(475)](s=>{const b=u;if(s&&typeof s===b(990)){const g=Qo(s,n);!i[b(1308)](g)&&(a[b(573)]({id:g,color:s[b(486)]||t,...s}),i.add(g))}}),a},[])[r(773)]((a,d)=>a.id[r(1760)](d.id))}const Za=1e3,rb=10,Fo={nodeOrigin:[0,0],nodeExtent:Pt,elevateNodesOnSelect:!0,zIndexMode:c(1013),defaults:{}},ib={...Fo,checkEquality:!0};function _o(e,n){const t={...e};for(const o in n)n[o]!==void 0&&(t[o]=n[o]);return t}function ab(e,n,t){const o=c,x=_o(Fo,t);for(const r of e[o(951)]())if(r[o(887)])nr(r,e,n,x);else{const i=jt(r,x[o(793)]),a=$n(r[o(2231)])?r[o(2231)]:x[o(720)],d=Dn(i,a,F0(r));r[o(815)][o(1739)]=d}}function cb(e,n){const t=c;if(!e[t(2064)])return e[t(1168)]?n?.[t(815)][t(2125)]:void 0;const o=[],x=[];for(const r of e[t(2064)]){const i={id:r.id,width:r[t(434)]??1,height:r.height??1,nodeId:e.id,x:r.x,y:r.y,position:r.position,type:r[t(1592)]};r[t(1592)]===t(2058)?o[t(573)](i):r.type===t(450)&&x.push(i)}return{source:o,target:x}}function $o(e){return e==="manual"}function er(e,n,t,o={}){const x=c,r=_o(ib,o),i={i:0},a=new Map(n),d=r?.elevateNodesOnSelect&&!$o(r[x(563)])?Za:0;let u=e[x(1755)]>0,s=!1;n[x(1832)](),t[x(1832)]();for(const b of e){let g=a[x(689)](b.id);if(r[x(1950)]&&b===g?.internals[x(988)])n.set(b.id,g);else{const h=jt(b,r.nodeOrigin),v=$n(b.extent)?b[x(2231)]:r[x(720)],f=Dn(h,v,F0(b));g={...r[x(1376)],...b,measured:{width:b[x(1168)]?.[x(434)],height:b[x(1168)]?.[x(725)]},internals:{positionAbsolute:f,handleBounds:cb(b,g),z:Ra(b,d,r.zIndexMode),userNode:b}},n[x(643)](b.id,g)}(g[x(1168)]===void 0||g[x(1168)].width===void 0||g[x(1168)][x(725)]===void 0)&&!g[x(2103)]&&(u=!1),b[x(887)]&&nr(g,n,t,o,i),s||=b[x(471)]??!1}return{nodesInitialized:u,hasSelectedNodes:s}}function sb(e,n){const t=c;if(!e[t(887)])return;const o=n.get(e[t(887)]);o?o.set(e.id,e):n[t(643)](e[t(887)],new Map([[e.id,e]]))}function nr(e,n,t,o,x){const r=c,{elevateNodesOnSelect:i,nodeOrigin:a,nodeExtent:d,zIndexMode:u}=_o(Fo,o),s=e[r(887)],b=n.get(s);if(!b){console.warn(r(1846)+s+r(636));return}sb(e,t),x&&!b[r(887)]&&b[r(815)].rootParentIndex===void 0&&u==="auto"&&(b[r(815)][r(2137)]=++x.i,b[r(815)].z=b.internals.z+x.i*rb),x&&b[r(815)].rootParentIndex!==void 0&&(x.i=b[r(815)][r(2137)]);const g=i&&!$o(u)?Za:0,{x:h,y:v,z:f}=lb(e,b,a,d,g,u),{positionAbsolute:w}=e[r(815)],M=h!==w.x||v!==w.y;(M||f!==e[r(815)].z)&&n[r(643)](e.id,{...e,internals:{...e.internals,positionAbsolute:M?{x:h,y:v}:w,z:f}})}function Ra(e,n,t){const o=c,x=E0(e.zIndex)?e[o(667)]:0;return $o(t)?x:x+(e[o(471)]?n:0)}function lb(e,n,t,o,x,r){const i=c,{x:a,y:d}=n[i(815)].positionAbsolute,u=F0(e),s=jt(e,t),b=$n(e[i(2231)])?Dn(s,e[i(2231)],u):s;let g=Dn({x:a+b.x,y:d+b.y},o,u);e.extent===i(1552)&&(g=Ca(g,u,n));const h=Ra(e,x,r),v=n.internals.z??0;return{x:g.x,y:g.y,z:v>=h?v+1:h}}function tr(e,n,t,o=[0,0]){const x=c,r=[],i=new Map;for(const a of e){const d=n[x(689)](a[x(887)]);if(!d)continue;const u=i[x(689)](a[x(887)])?.expandedRect??Fn(d),s=Da(u,a[x(1941)]);i[x(643)](a.parentId,{expandedRect:s,parent:d})}return i[x(492)]>0&&i[x(475)](({expandedRect:a,parent:d},u)=>{const s=x,b=d.internals[s(1739)],g=F0(d),h=d[s(575)]??o,v=a.x<b.x?Math[s(909)](Math.abs(b.x-a.x)):0,f=a.y<b.y?Math[s(909)](Math[s(1032)](b.y-a.y)):0,w=Math[s(656)](g[s(434)],Math.round(a[s(434)])),M=Math.max(g[s(725)],Math[s(909)](a[s(725)])),y=(w-g[s(434)])*h[0],m=(M-g[s(725)])*h[1];(v>0||f>0||y||m)&&(r[s(573)]({id:u,type:"position",position:{x:d.position.x-v+y,y:d[s(675)].y-f+m}}),t[s(689)](u)?.[s(475)](C=>{const z=s;!e[z(1321)](P=>P.id===C.id)&&r[z(573)]({id:C.id,type:z(675),position:{x:C[z(675)].x+v,y:C[z(675)].y+f}})})),(g[s(434)]<a[s(434)]||g[s(725)]<a[s(725)]||v||f)&&r[s(573)]({id:u,type:s(1688),setAttributes:!0,dimensions:{width:w+(v?h[0]*v-y:0),height:M+(f?h[1]*f-m:0)}})}),r}function db(e,n,t,o,x,r,i){const a=c,d=o?.[a(2204)](a(949));let u=!1;if(!d)return{changes:[],updatedInternals:u};const s=[],b=window[a(465)](d),{m22:g}=new window[a(1249)](b.transform),h=[];for(const v of e[a(951)]()){const f=n[a(689)](v.id);if(!f)continue;if(f.hidden){n.set(f.id,{...f,internals:{...f.internals,handleBounds:void 0}}),u=!0;continue}const w=Ro(v[a(495)]),M=f[a(1168)][a(434)]!==w[a(434)]||f[a(1168)][a(725)]!==w[a(725)];if(!!(w[a(434)]&&w[a(725)]&&(M||!f[a(815)][a(2125)]||v[a(1477)]))){const m=v[a(495)][a(1596)](),C=$n(f[a(2231)])?f[a(2231)]:r;let{positionAbsolute:z}=f[a(815)];f[a(887)]&&f[a(2231)]===a(1552)?z=Ca(z,w,n[a(689)](f.parentId)):C&&(z=Dn(z,C,w));const P={...f,measured:w,internals:{...f[a(815)],positionAbsolute:z,handleBounds:{source:Ya(a(2058),v[a(495)],m,g,f.id),target:Ya(a(450),v[a(495)],m,g,f.id)}}};n.set(f.id,P),f[a(887)]&&nr(P,n,t,{nodeOrigin:x,zIndexMode:i}),u=!0,M&&(s.push({id:f.id,type:a(1688),dimensions:w}),f.expandParent&&f[a(887)]&&h[a(573)]({id:f.id,parentId:f[a(887)],rect:Fn(P,x)}))}}if(h.length>0){const v=tr(h,n,t,x);s[a(573)](...v)}return{changes:s,updatedInternals:u}}async function ub({delta:e,panZoom:n,transform:t,translateExtent:o,width:x,height:r}){const i=c;if(!n||!e.x&&!e.y)return Promise[i(1858)](!1);const a=await n.setViewportConstrained({x:t[0]+e.x,y:t[1]+e.y,zoom:t[2]},[[0,0],[x,r]],o),d=!!a&&(a.x!==t[0]||a.y!==t[1]||a.k!==t[2]);return Promise[i(1858)](d)}function Ja(e,n,t,o,x,r){const i=c;let a=x;const d=o[i(689)](a)||new Map;o.set(a,d.set(t,n)),a=x+"-"+e;const u=o.get(a)||new Map;if(o[i(643)](a,u.set(t,n)),r){a=x+"-"+e+"-"+r;const s=o[i(689)](a)||new Map;o[i(643)](a,s[i(643)](t,n))}}function Qa(e,n,t){const o=c;e.clear(),n[o(1832)]();for(const x of t){const{source:r,target:i,sourceHandle:a=null,targetHandle:d=null}=x,u={edgeId:x.id,source:r,target:i,sourceHandle:a,targetHandle:d},s=r+"-"+a+"--"+i+"-"+d,b=i+"-"+d+"--"+r+"-"+a;Ja("source",u,b,e,r,a),Ja(o(450),u,s,e,i,d),n[o(643)](x.id,x)}}function Fa(e,n){const t=c;if(!e[t(887)])return!1;const o=n[t(689)](e[t(887)]);return o?o[t(471)]?!0:Fa(o,n):!1}function _a(e,n,t){const o=c;let x=e;do{if(x?.[o(491)]?.(n))return!0;if(x===t)return!1;x=x?.[o(1714)]}while(x);return!1}function bb(e,n,t,o){const x=c,r=new Map;for(const[i,a]of e)if((a.selected||a.id===o)&&(!a[x(887)]||!Fa(a,e))&&(a[x(1572)]||n&&typeof a[x(1572)]===x(644))){const d=e[x(689)](i);d&&r.set(i,{id:i,position:d.position||{x:0,y:0},distance:{x:t.x-d[x(815)][x(1739)].x,y:t.y-d[x(815)][x(1739)].y},extent:d[x(2231)],parentId:d[x(887)],origin:d[x(575)],expandParent:d[x(796)],internals:{positionAbsolute:d.internals.positionAbsolute||{x:0,y:0}},measured:{width:d.measured[x(434)]??0,height:d[x(1168)][x(725)]??0}})}return r}function xr({nodeId:e,dragItems:n,nodeLookup:t,dragging:o=!0}){const x=c,r=[];for(const[a,d]of n){const u=t[x(689)](a)?.internals[x(988)];u&&r[x(573)]({...u,position:d.position,dragging:o})}if(!e)return[r[0],r];const i=t.get(e)?.[x(815)].userNode;return[i?{...i,position:n.get(e)?.[x(675)]||i[x(675)],dragging:o}:r[0],r]}function fb({dragItems:e,snapGrid:n,x:t,y:o}){const x=c,r=e[x(951)]()[x(599)]()[x(1256)];if(!r)return null;const i={x:t-r[x(428)].x,y:o-r[x(428)].y},a=Ut(i,n);return{x:a.x-i.x,y:a.y-i.y}}function hb({onNodeMouseDown:e,getStoreItems:n,onDragStart:t,onDrag:o,onDragStop:x}){let r={x:null,y:null},i=0,a=new Map,d=!1,u={x:0,y:0},s=null,b=!1,g=null,h=!1,v=!1,f=null;function w({noDragClassName:y,handleSelector:m,domNode:C,isSelectable:z,nodeId:P,nodeClickDistance:E=0}){const V=_0x51e5;g=C0(C);function q({x:G,y:T}){const L=_0x51e5,{nodeLookup:S,nodeExtent:B,snapGrid:j,snapToGrid:A,nodeOrigin:I,onNodeDrag:J,onSelectionDrag:_,onError:F,updateNodePositions:ee}=n();r={x:G,y:T};let re=!1;const ue=a[L(492)]>1,pe=ue&&B?Ko(Yt(a)):null,Me=ue&&A?fb({dragItems:a,snapGrid:j,x:G,y:T}):null;for(const[de,$]of a){if(!S[L(1308)](de))continue;let be={x:G-$.distance.x,y:T-$[L(428)].y};A&&(be=Me?{x:Math.round(be.x+Me.x),y:Math[L(909)](be.y+Me.y)}:Ut(be,j));let ge=null;if(ue&&B&&!$[L(2231)]&&pe){const{positionAbsolute:ce}=$[L(815)],ae=ce.x-pe.x+B[0][0],Le=ce.x+$.measured[L(434)]-pe.x2+B[1][0],Be=ce.y-pe.y+B[0][1],Ae=ce.y+$[L(1168)][L(725)]-pe.y2+B[1][1];ge=[[ae,Be],[Le,Ae]]}const{position:Y,positionAbsolute:X}=za({nodeId:de,nextPosition:be,nodeLookup:S,nodeExtent:ge||B,nodeOrigin:I,onError:F});re=re||$[L(675)].x!==Y.x||$.position.y!==Y.y,$[L(675)]=Y,$[L(815)][L(1739)]=X}if(v=v||re,!!re&&(ee(a,!0),f&&(o||J||!P&&_))){const[de,$]=xr({nodeId:P,dragItems:a,nodeLookup:S});o?.(f,a,de,$),J?.(f,de,$),!P&&_?.(f,$)}}async function U(){if(!s)return;const{transform:G,panBy:T,autoPanSpeed:L,autoPanOnNodeDrag:S}=n();if(!S){d=!1,cancelAnimationFrame(i);return}const[B,j]=Ba(u,s,L);(B!==0||j!==0)&&(r.x=(r.x??0)-B/G[2],r.y=(r.y??0)-j/G[2],await T({x:B,y:j})&&q(r)),i=requestAnimationFrame(U)}function W(G){const T=_0x51e5,{nodeLookup:L,multiSelectionActive:S,nodesDraggable:B,transform:j,snapGrid:A,snapToGrid:I,selectNodesOnDrag:J,onNodeDragStart:_,onSelectionDragStart:F,unselectNodesAndEdges:ee}=n();b=!0,(!J||!z)&&!S&&P&&!L.get(P)?.selected&&ee(),z&&J&&P&&e?.(P);const re=Vt(G.sourceEvent,{transform:j,snapGrid:A,snapToGrid:I,containerBounds:s});if(r=re,a=bb(L,B,re,P),a[T(492)]>0&&(t||_||!P&&F)){const[ue,pe]=xr({nodeId:P,dragItems:a,nodeLookup:L});t?.(G[T(1490)],a,ue,pe),_?.(G[T(1490)],ue,pe),!P&&F?.(G[T(1490)],pe)}}const H=Oi()[V(1445)](E).on(V(1635),G=>{const T=V,{domNode:L,nodeDragThreshold:S,transform:B,snapGrid:j,snapToGrid:A}=n();s=L?.[T(1596)]()||null,h=!1,v=!1,f=G[T(1490)],S===0&&W(G),r=Vt(G[T(1490)],{transform:B,snapGrid:j,snapToGrid:A,containerBounds:s}),u=U0(G[T(1490)],s)}).on(V(425),G=>{const T=V,{autoPanOnNodeDrag:L,transform:S,snapGrid:B,snapToGrid:j,nodeDragThreshold:A,nodeLookup:I}=n(),J=Vt(G.sourceEvent,{transform:S,snapGrid:B,snapToGrid:j,containerBounds:s});if(f=G[T(1490)],(G[T(1490)][T(1592)]===T(535)&&G.sourceEvent[T(2114)][T(1755)]>1||P&&!I.has(P))&&(h=!0),!h){if(!d&&L&&b&&(d=!0,U()),!b){const _=U0(G[T(1490)],s),F=_.x-u.x,ee=_.y-u.y;Math[T(2282)](F*F+ee*ee)>A&&W(G)}(r.x!==J[T(1742)]||r.y!==J[T(1903)])&&a&&b&&(u=U0(G[T(1490)],s),q(J))}}).on("end",G=>{const T=V;if(!(!b||h)&&(d=!1,b=!1,cancelAnimationFrame(i),a[T(492)]>0)){const{nodeLookup:L,updateNodePositions:S,onNodeDragStop:B,onSelectionDragStop:j}=n();if(v&&(S(a,!1),v=!1),x||B||!P&&j){const[A,I]=xr({nodeId:P,dragItems:a,nodeLookup:L,dragging:!1});x?.(G.sourceEvent,a,A,I),B?.(G[T(1490)],A,I),!P&&j?.(G[T(1490)],I)}}})[V(1947)](G=>{const T=G.target;return!G.button&&(!y||!_a(T,"."+y,C))&&(!m||_a(T,m,C))});g.call(H)}function M(){const y=_0x51e5;g?.on(y(1809),null)}return{update:w,destroy:M}}function gb(e,n,t){const o=c,x=[],r={x:e.x-t,y:e.y-t,width:t*2,height:t*2};for(const i of n.values())Et(r,Fn(i))>0&&x[o(573)](i);return x}const yb=250;function mb(e,n,t,o){const x=c;let r=[],i=1/0;const a=gb(e,t,n+yb);for(const d of a){const u=[...d[x(815)][x(2125)]?.[x(2058)]??[],...d[x(815)].handleBounds?.target??[]];for(const s of u){if(o[x(1137)]===s.nodeId&&o[x(1592)]===s.type&&o.id===s.id)continue;const{x:b,y:g}=Ln(d,s,s[x(675)],!0),h=Math[x(2282)](Math[x(611)](b-e.x,2)+Math[x(611)](g-e.y,2));h>n||(h<i?(r=[{...s,x:b,y:g}],i=h):h===i&&r.push({...s,x:b,y:g}))}}if(!r[x(1755)])return null;if(r[x(1755)]>1){const d=o[x(1592)]===x(2058)?x(450):x(2058);return r[x(517)](u=>u[x(1592)]===d)??r[0]}return r[0]}function $a(e,n,t,o,x,r=!1){const i=c,a=o[i(689)](e);if(!a)return null;const d=x===i(1012)?a[i(815)][i(2125)]?.[n]:[...a[i(815)][i(2125)]?.source??[],...a.internals[i(2125)]?.[i(450)]??[]],u=(t?d?.find(s=>s.id===t):d?.[0])??null;return u&&r?{...u,...Ln(a,u,u[i(675)],!0)}:u}function ec(e,n){const t=c;return e||(n?.[t(1293)].contains(t(450))?"target":n?.[t(1293)][t(1700)](t(2058))?t(2058):null)}function vb(e,n){let t=null;return n?t=!0:e&&!n&&(t=!1),t}const nc=()=>!0;function wb(e,{connectionMode:n,connectionRadius:t,handleId:o,nodeId:x,edgeUpdaterType:r,isTarget:i,domNode:a,nodeLookup:d,lib:u,autoPanOnConnect:s,flowId:b,panBy:g,cancelConnection:h,onConnectStart:v,onConnect:f,onConnectEnd:w,isValidConnection:M=nc,onReconnectEnd:y,updateConnection:m,getTransform:C,getFromHandle:z,autoPanSpeed:P,dragThreshold:E=1,handleDomNode:V}){const q=c,U=Pa(e[q(450)]);let W=0,H;const{x:G,y:T}=U0(e),L=ec(r,V),S=a?.[q(1596)]();let B=!1;if(!S||!L)return;const j=$a(x,L,o,d,n);if(!j)return;let A=U0(e,S),I=!1,J=null,_=!1,F=null;function ee(){if(!s||!S)return;const[ge,Y]=Ba(A,S,P);g({x:ge,y:Y}),W=requestAnimationFrame(ee)}const re={...j,nodeId:x,type:L,position:j[q(675)]},ue=d[q(689)](x);let Me={inProgress:!0,isValid:null,from:Ln(ue,re,Ne.Left,!0),fromHandle:re,fromPosition:re[q(675)],fromNode:ue,to:A,toHandle:null,toPosition:va[re.position],toNode:null,pointer:A};function de(){B=!0,m(Me),v?.(e,{nodeId:x,handleId:o,handleType:L})}E===0&&de();function $(ge){const Y=q;if(!B){const{x:Ae,y:He}=U0(ge),Ie=Ae-G,h0=He-T;if(!(Ie*Ie+h0*h0>E*E))return;de()}if(!z()||!re){be(ge);return}const X=C();A=U0(ge,S),H=mb(Gt(A,X,!1,[1,1]),t,d,re),!I&&(ee(),I=!0);const ce=tc(ge,{handle:H,connectionMode:n,fromNodeId:x,fromHandleId:o,fromType:i?"target":Y(2058),isValidConnection:M,doc:U,lib:u,flowId:b,nodeLookup:d});F=ce[Y(1885)],J=ce[Y(513)],_=vb(!!H,ce[Y(1023)]);const ae=d[Y(689)](x),Le=ae?Ln(ae,re,Ne[Y(1264)],!0):Me[Y(1124)],Be={...Me,from:Le,isValid:_,to:ce[Y(874)]&&_?Yx({x:ce[Y(874)].x,y:ce.toHandle.y},X):A,toHandle:ce[Y(874)],toPosition:_&&ce[Y(874)]?ce.toHandle[Y(675)]:va[re[Y(675)]],toNode:ce.toHandle?d[Y(689)](ce.toHandle[Y(1137)]):null,pointer:A};m(Be),Me=Be}function be(ge){const Y=q;if(!(Y(2114)in ge&&ge.touches.length>0)){if(B){(H||F)&&J&&_&&f?.(J);const{inProgress:X,...ce}=Me,ae={...ce,toPosition:Me[Y(874)]?Me[Y(1868)]:null};w?.(ge,ae),r&&y?.(ge,ae)}h(),cancelAnimationFrame(W),I=!1,_=!1,J=null,F=null,U[Y(1369)](Y(1205),$),U.removeEventListener(Y(1720),be),U[Y(1369)](Y(535),$),U[Y(1369)](Y(1918),be)}}U[q(1046)](q(1205),$),U[q(1046)](q(1720),be),U[q(1046)](q(535),$),U[q(1046)](q(1918),be)}function tc(e,{handle:n,connectionMode:t,fromNodeId:o,fromHandleId:x,fromType:r,doc:i,lib:a,flowId:d,isValidConnection:u=nc,nodeLookup:s}){const b=c,g=r===b(450),h=n?i[b(2204)]("."+a+b(791)+d+"-"+n?.nodeId+"-"+n?.id+"-"+n?.[b(1592)]+'"]'):null,{x:v,y:f}=U0(e),w=i[b(1736)](v,f),M=w?.classList[b(1700)](a+"-flow__handle")?w:h,y={handleDomNode:M,isValid:!1,connection:null,toHandle:null};if(M){const m=ec(void 0,M),C=M[b(1819)](b(1169)),z=M[b(1819)](b(1471)),P=M[b(1293)][b(1700)](b(1636)),E=M.classList.contains(b(879));if(!C||!m)return y;const V={source:g?C:o,sourceHandle:g?z:x,target:g?o:C,targetHandle:g?x:z};y[b(513)]=V;const q=P&&E,U=q&&(t===Jn[b(2212)]?g&&m==="source"||!g&&m===b(450):C!==o||z!==x);y[b(1023)]=U&&u(V),y[b(874)]=$a(C,m,z,s,t,!0)}return y}const or={onPointerDown:wb,isValid:tc};function pb({domNode:e,panZoom:n,getTransform:t,getViewScale:o}){const x=C0(e);function r({translateExtent:a,width:d,height:u,zoomStep:s=1,pannable:b=!0,zoomable:g=!0,inversePan:h=!1}){const v=_0x51e5,f=C=>{const z=_0x51e5;if(C[z(1490)][z(1592)]!==z(709)||!n)return;const P=t(),E=C[z(1490)][z(2112)]&&Ot()?10:1,V=-C[z(1490)][z(1232)]*(C.sourceEvent[z(1939)]===1?.05:C[z(1490)][z(1939)]?1:.002)*s,q=P[2]*Math[z(611)](2,V*E);n[z(970)](q)};let w=[0,0];const M=C=>{const z=_0x51e5;(C.sourceEvent.type==="mousedown"||C.sourceEvent[z(1592)]===z(1317))&&(w=[C[z(1490)].clientX??C[z(1490)][z(2114)][0][z(2233)],C[z(1490)][z(1659)]??C.sourceEvent[z(2114)][0][z(1659)]])},y=C=>{const z=_0x51e5,P=t();if(C[z(1490)][z(1592)]!==z(1205)&&C[z(1490)][z(1592)]!==z(535)||!n)return;const E=[C.sourceEvent.clientX??C.sourceEvent[z(2114)][0][z(2233)],C[z(1490)].clientY??C[z(1490)][z(2114)][0][z(1659)]],V=[E[0]-w[0],E[1]-w[1]];w=E;const q=o()*Math.max(P[2],Math[z(859)](P[2]))*(h?-1:1),U={x:P[0]-V[0]*q,y:P[1]-V[1]*q},W=[[0,0],[d,u]];n[z(684)]({x:U.x,y:U.y,zoom:P[2]},W,a)},m=ha().on(v(1635),M).on(v(1146),b?y:null).on(v(1240),g?f:null);x[v(945)](m,{})}function i(){const a=_0x51e5;x.on(a(1146),null)}return{update:r,destroy:i,pointer:A0}}const Ux=e=>({x:e.x,y:e.y,zoom:e.k}),rr=({x:e,y:n,zoom:t})=>kx[c(2071)](e,n)[c(1816)](t),et=(e,n)=>e[c(450)][c(436)]("."+n),xc=(e,n)=>n===2&&Array[c(1996)](e)&&e.includes(2),zb=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,ir=(e,n=0,t=zb,o=()=>{})=>{const x=c,r=typeof n===x(825)&&n>0;return!r&&o(),r?e[x(1419)]()[x(1163)](n)[x(2166)](t).on("end",o):e},oc=e=>{const n=c,t=e.ctrlKey&&Ot()?10:1;return-e.deltaY*(e[n(1939)]===1?.05:e[n(1939)]?1:.002)*t};function Cb({zoomPanValues:e,noWheelClassName:n,d3Selection:t,d3Zoom:o,panOnScrollMode:x,panOnScrollSpeed:r,zoomOnPinch:i,onPanZoomStart:a,onPanZoom:d,onPanZoomEnd:u}){return s=>{const b=_0x51e5;if(et(s,n))return s[b(2112)]&&s[b(521)](),!1;s[b(521)](),s[b(2182)]();const g=t[b(1128)](b(503)).k||1;if(s.ctrlKey&&i){const M=A0(s),y=oc(s),m=g*Math[b(611)](2,y);o[b(970)](t,m,M,s);return}const h=s[b(1939)]===1?20:1;let v=x===Bn[b(2046)]?0:s.deltaX*h,f=x===Bn[b(853)]?0:s[b(1232)]*h;!Ot()&&s.shiftKey&&x!==Bn[b(2046)]&&(v=s[b(1232)]*h,f=0),o.translateBy(t,-(v/g)*r,-(f/g)*r,{internal:!0});const w=Ux(t[b(1128)]("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(d?.(s,w),e[b(613)]=setTimeout(()=>{const M=b;u?.(s,w),e[M(1989)]=!1},150)):(e.isPanScrolling=!0,a?.(s,w))}}function Mb({noWheelClassName:e,preventScrolling:n,d3ZoomHandler:t}){return function(o,x){const r=_0x51e5,i=o[r(1592)]==="wheel",a=!n&&i&&!o[r(2112)],d=et(o,e);if(o.ctrlKey&&i&&d&&o[r(521)](),a||d)return null;o[r(521)](),t[r(945)](this,o,x)}}function Bb({zoomPanValues:e,onDraggingChange:n,onPanZoomStart:t}){return o=>{const x=_0x51e5;if(o[x(1490)]?.internal)return;const r=Ux(o[x(1713)]);e[x(2048)]=o[x(1490)]?.[x(1454)]||0,e[x(1045)]=!0,e[x(2100)]=r,o[x(1490)]?.[x(1592)]===x(2219)&&n(!0),t&&t?.(o[x(1490)],r)}}function Db({zoomPanValues:e,panOnDrag:n,onPaneContextMenu:t,onTransformChange:o,onPanZoom:x}){return r=>{const i=_0x51e5;e[i(566)]=!!(t&&xc(n,e[i(2048)]??0)),!r[i(1490)]?.sync&&o([r.transform.x,r.transform.y,r[i(1713)].k]),x&&!r[i(1490)]?.[i(1710)]&&x?.(r[i(1490)],Ux(r[i(1713)]))}}function Lb({zoomPanValues:e,panOnDrag:n,panOnScroll:t,onDraggingChange:o,onPanZoomEnd:x,onPaneContextMenu:r}){return i=>{const a=_0x51e5;if(!i[a(1490)]?.[a(1710)]&&(e[a(1045)]=!1,r&&xc(n,e.mouseButton??0)&&!e.usedRightMouseButton&&i[a(1490)]&&r(i[a(1490)]),e[a(566)]=!1,o(!1),x)){const d=Ux(i.transform);e[a(2100)]=d,clearTimeout(e[a(2110)]),e[a(2110)]=setTimeout(()=>{x?.(i.sourceEvent,d)},t?150:0)}}}function Sb({zoomActivationKeyPressed:e,zoomOnScroll:n,zoomOnPinch:t,panOnDrag:o,panOnScroll:x,zoomOnDoubleClick:r,userSelectionActive:i,noWheelClassName:a,noPanClassName:d,lib:u,connectionInProgress:s}){return b=>{const g=_0x51e5,h=e||n,v=t&&b.ctrlKey,f=b.type===g(709);if(b[g(1454)]===1&&b[g(1592)]==="mousedown"&&(et(b,u+"-flow__node")||et(b,u+g(1647))))return!0;if(!o&&!h&&!x&&!r&&!t||i||s&&!f||et(b,a)&&f||et(b,d)&&(!f||x&&f&&!e)||!t&&b[g(2112)]&&f)return!1;if(!t&&b[g(1592)]===g(1317)&&b[g(2114)]?.[g(1755)]>1)return b[g(521)](),!1;if(!h&&!x&&!v&&f||!o&&(b.type===g(2219)||b[g(1592)]===g(1317))||Array[g(1996)](o)&&!o.includes(b[g(1454)])&&b[g(1592)]==="mousedown")return!1;const w=Array[g(1996)](o)&&o[g(1230)](b[g(1454)])||!b[g(1454)]||b[g(1454)]<=1;return(!b[g(2112)]||f)&&w}}function Nb({domNode:e,minZoom:n,maxZoom:t,translateExtent:o,viewport:x,onPanZoom:r,onPanZoomStart:i,onPanZoomEnd:a,onDraggingChange:d}){const u=c,s={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},b=e.getBoundingClientRect(),g=ha()[u(1174)]([n,t])[u(964)](o),h=C0(e)[u(945)](g);m({x:x.x,y:x.y,zoom:Qn(x.zoom,n,t)},[[0,0],[b.width,b.height]],o);const v=h.on(u(1614)),f=h.on(u(823));g[u(885)](oc);function w(H,G){return h?new Promise(T=>{const L=_0x51e5;g?.[L(1110)](G?.[L(1110)]==="linear"?Dt:wx).transform(ir(h,G?.[L(1163)],G?.[L(2166)],()=>T(!0)),H)}):Promise.resolve(!1)}function M({noWheelClassName:H,noPanClassName:G,onPaneContextMenu:T,userSelectionActive:L,panOnScroll:S,panOnDrag:B,panOnScrollMode:j,panOnScrollSpeed:A,preventScrolling:I,zoomOnPinch:J,zoomOnScroll:_,zoomOnDoubleClick:F,zoomActivationKeyPressed:ee,lib:re,onTransformChange:ue,connectionInProgress:pe,paneClickDistance:Me,selectionOnDrag:de}){const $=u;L&&!s[$(1045)]&&y();const be=S&&!ee&&!L;g[$(1445)](de?1/0:!E0(Me)||Me<0?0:Me);const ge=be?Cb({zoomPanValues:s,noWheelClassName:H,d3Selection:h,d3Zoom:g,panOnScrollMode:j,panOnScrollSpeed:A,zoomOnPinch:J,onPanZoomStart:i,onPanZoom:r,onPanZoomEnd:a}):Mb({noWheelClassName:H,preventScrolling:I,d3ZoomHandler:v});if(h.on("wheel.zoom",ge,{passive:!1}),!L){const X=Bb({zoomPanValues:s,onDraggingChange:d,onPanZoomStart:i});g.on($(1635),X);const ce=Db({zoomPanValues:s,panOnDrag:B,onPaneContextMenu:!!T,onPanZoom:r,onTransformChange:ue});g.on($(1146),ce);const ae=Lb({zoomPanValues:s,panOnDrag:B,panOnScroll:S,onPaneContextMenu:T,onPanZoomEnd:a,onDraggingChange:d});g.on($(1086),ae)}const Y=Sb({zoomActivationKeyPressed:ee,panOnDrag:B,zoomOnScroll:_,panOnScroll:S,zoomOnDoubleClick:F,zoomOnPinch:J,userSelectionActive:L,noPanClassName:G,noWheelClassName:H,lib:re,connectionInProgress:pe});g.filter(Y),F?h.on($(823),f):h.on("dblclick.zoom",null)}function y(){const H=u;g.on(H(1146),null)}async function m(H,G,T){const L=u,S=rr(H),B=g?.[L(840)]()(S,G,T);return B&&await w(B),new Promise(j=>j(B))}async function C(H,G){const T=rr(H);return await w(T,G),new Promise(L=>L(T))}function z(H){const G=u;if(h){const T=rr(H),L=h[G(1128)](G(503));(L.k!==H[G(1146)]||L.x!==H.x||L.y!==H.y)&&g?.[G(1713)](h,T,null,{sync:!0})}}function P(){const H=u,G=h?ba(h[H(2099)]()):{x:0,y:0,k:1};return{x:G.x,y:G.y,zoom:G.k}}function E(H,G){return h?new Promise(T=>{const L=_0x51e5;g?.[L(1110)](G?.[L(1110)]==="linear"?Dt:wx)[L(970)](ir(h,G?.[L(1163)],G?.ease,()=>T(!0)),H)}):Promise.resolve(!1)}function V(H,G){return h?new Promise(T=>{const L=_0x51e5;g?.[L(1110)](G?.[L(1110)]===L(457)?Dt:wx)[L(929)](ir(h,G?.[L(1163)],G?.[L(2166)],()=>T(!0)),H)}):Promise.resolve(!1)}function q(H){g?.scaleExtent(H)}function U(H){g?.translateExtent(H)}function W(H){const G=u,T=!E0(H)||H<0?0:H;g?.[G(1445)](T)}return{update:M,destroy:y,setViewport:C,setViewportConstrained:m,getViewport:P,scaleTo:E,scaleBy:V,setScaleExtent:q,setTranslateExtent:U,syncViewport:z,setClickDistance:W}}var nt;(function(e){const n=c;e[n(1687)]="line",e[n(2038)]="handle"})(nt||(nt={}));function kb({width:e,prevWidth:n,height:t,prevHeight:o,affectsX:x,affectsY:r}){const i=e-n,a=t-o,d=[i>0?1:i<0?-1:0,a>0?1:a<0?-1:0];return i&&x&&(d[0]=d[0]*-1),a&&r&&(d[1]=d[1]*-1),d}function rc(e){const n=c,t=e[n(1230)](n(1798))||e[n(1230)](n(2281)),o=e[n(1230)]("bottom")||e[n(1230)](n(1727)),x=e[n(1230)](n(2281)),r=e[n(1230)]("top");return{isHorizontal:t,isVertical:o,affectsX:x,affectsY:r}}function sn(e,n){return Math[c(656)](0,n-e)}function ln(e,n){return Math[c(656)](0,e-n)}function Gx(e,n,t){return Math[c(656)](0,n-e,e-t)}function ic(e,n){return e?!n:n}function Ib(e,n,t,o,x,r,i,a){const d=c;let{affectsX:u,affectsY:s}=n;const{isHorizontal:b,isVertical:g}=n,h=b&&g,{xSnapped:v,ySnapped:f}=t,{minWidth:w,maxWidth:M,minHeight:y,maxHeight:m}=o,{x:C,y:z,width:P,height:E,aspectRatio:V}=e;let q=Math[d(1144)](b?v-e[d(461)]:0),U=Math.floor(g?f-e.pointerY:0);const W=P+(u?-q:q),H=E+(s?-U:U),G=-r[0]*P,T=-r[1]*E;let L=Gx(W,w,M),S=Gx(H,y,m);if(i){let A=0,I=0;u&&q<0?A=sn(C+q+G,i[0][0]):!u&&q>0&&(A=ln(C+W+G,i[1][0])),s&&U<0?I=sn(z+U+T,i[0][1]):!s&&U>0&&(I=ln(z+H+T,i[1][1])),L=Math[d(656)](L,A),S=Math[d(656)](S,I)}if(a){let A=0,I=0;u&&q>0?A=ln(C+q,a[0][0]):!u&&q<0&&(A=sn(C+W,a[1][0])),s&&U>0?I=ln(z+U,a[0][1]):!s&&U<0&&(I=sn(z+H,a[1][1])),L=Math[d(656)](L,A),S=Math[d(656)](S,I)}if(x){if(b){const A=Gx(W/V,y,m)*V;if(L=Math[d(656)](L,A),i){let I=0;!u&&!s||u&&!s&&h?I=ln(z+T+W/V,i[1][1])*V:I=sn(z+T+(u?q:-q)/V,i[0][1])*V,L=Math[d(656)](L,I)}if(a){let I=0;!u&&!s||u&&!s&&h?I=sn(z+W/V,a[1][1])*V:I=ln(z+(u?q:-q)/V,a[0][1])*V,L=Math[d(656)](L,I)}}if(g){const A=Gx(H*V,w,M)/V;if(S=Math[d(656)](S,A),i){let I=0;!u&&!s||s&&!u&&h?I=ln(C+H*V+G,i[1][0])/V:I=sn(C+(s?U:-U)*V+G,i[0][0])/V,S=Math[d(656)](S,I)}if(a){let I=0;!u&&!s||s&&!u&&h?I=sn(C+H*V,a[1][0])/V:I=ln(C+(s?U:-U)*V,a[0][0])/V,S=Math[d(656)](S,I)}}}U=U+(U<0?S:-S),q=q+(q<0?L:-L),x&&(h?W>H*V?U=(ic(u,s)?-q:q)/V:q=(ic(u,s)?-U:U)*V:b?(U=q/V,s=u):(q=U*V,u=s));const B=u?C+q:C,j=s?z+U:z;return{width:P+(u?-q:q),height:E+(s?-U:U),x:r[0]*q*(u?-1:1)+B,y:r[1]*U*(s?-1:1)+j}}const ac={width:0,height:0,x:0,y:0},Pb={...ac,pointerX:0,pointerY:0,aspectRatio:1};function Ab(e){const n=c;return[[0,0],[e.measured[n(434)],e[n(1168)][n(725)]]]}function jb(e,n,t){const o=c,x=n[o(675)].x+e[o(675)].x,r=n.position.y+e[o(675)].y,i=e.measured[o(434)]??0,a=e[o(1168)][o(725)]??0,d=t[0]*i,u=t[1]*a;return[[x-d,r-u],[x+i-d,r+a-u]]}function Yb({domNode:e,nodeId:n,getStoreItems:t,onChange:o,onEnd:x}){const r=c,i=C0(e);let a={controlDirection:rc(r(2060)),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number[r(1680)]},resizeDirection:void 0,keepAspectRatio:!1};function d({controlPosition:s,boundaries:b,keepAspectRatio:g,resizeDirection:h,onResizeStart:v,onResize:f,onResizeEnd:w,shouldResize:M}){const y=r;let m={...ac},C={...Pb};a={boundaries:b,resizeDirection:h,keepAspectRatio:g,controlDirection:rc(s)};let z,P=null,E=[],V,q,U,W=!1;const H=Oi().on("start",G=>{const T=_0x51e5,{nodeLookup:L,transform:S,snapGrid:B,snapToGrid:j,nodeOrigin:A,paneDomNode:I}=t();if(z=L[T(689)](n),!z)return;P=I?.[T(1596)]()??null;const{xSnapped:J,ySnapped:_}=Vt(G[T(1490)],{transform:S,snapGrid:B,snapToGrid:j,containerBounds:P});m={width:z.measured[T(434)]??0,height:z[T(1168)][T(725)]??0,x:z[T(675)].x??0,y:z[T(675)].y??0},C={...m,pointerX:J,pointerY:_,aspectRatio:m[T(434)]/m.height},V=void 0,z.parentId&&(z[T(2231)]===T(1552)||z.expandParent)&&(V=L[T(689)](z.parentId),q=V&&z[T(2231)]===T(1552)?Ab(V):void 0),E=[],U=void 0;for(const[F,ee]of L)if(ee[T(887)]===n&&(E[T(573)]({id:F,position:{...ee[T(675)]},extent:ee.extent}),ee[T(2231)]==="parent"||ee[T(796)])){const re=jb(ee,z,ee[T(575)]??A);U?U=[[Math[T(1050)](re[0][0],U[0][0]),Math[T(1050)](re[0][1],U[0][1])],[Math[T(656)](re[1][0],U[1][0]),Math.max(re[1][1],U[1][1])]]:U=re}v?.(G,{...m})}).on(y(425),G=>{const T=y,{transform:L,snapGrid:S,snapToGrid:B,nodeOrigin:j}=t(),A=Vt(G[T(1490)],{transform:L,snapGrid:S,snapToGrid:B,containerBounds:P}),I=[];if(!z)return;const{x:J,y:_,width:F,height:ee}=m,re={},ue=z[T(575)]??j,{width:pe,height:Me,x:de,y:$}=Ib(C,a.controlDirection,A,a[T(2180)],a[T(608)],ue,q,U),be=pe!==F,ge=Me!==ee,Y=de!==J&&be,X=$!==_&≥if(!Y&&!X&&!be&&!ge)return;if((Y||X||ue[0]===1||ue[1]===1)&&(re.x=Y?de:m.x,re.y=X?$:m.y,m.x=re.x,m.y=re.y,E[T(1755)]>0)){const Be=de-J,Ae=$-_;for(const He of E)He[T(675)]={x:He[T(675)].x-Be+ue[0]*(pe-F),y:He[T(675)].y-Ae+ue[1]*(Me-ee)},I.push(He)}if((be||ge)&&(re[T(434)]=be&&(!a[T(916)]||a[T(916)]===T(872))?pe:m[T(434)],re[T(725)]=ge&&(!a.resizeDirection||a[T(916)]===T(1724))?Me:m[T(725)],m[T(434)]=re[T(434)],m[T(725)]=re.height),V&&z.expandParent){const Be=ue[0]*(re.width??0);re.x&&re.x<Be&&(m.x=Be,C.x=C.x-(re.x-Be));const Ae=ue[1]*(re.height??0);re.y&&re.y<Ae&&(m.y=Ae,C.y=C.y-(re.y-Ae))}const ce=kb({width:m.width,prevWidth:F,height:m.height,prevHeight:ee,affectsX:a[T(1031)][T(1121)],affectsY:a.controlDirection.affectsY}),ae={...m,direction:ce};M?.(G,ae)!==!1&&(W=!0,f?.(G,ae),o(re,I))}).on(y(1086),G=>{W&&(w?.(G,{...m}),x?.({...m}),W=!1)});i[y(945)](H)}function u(){const s=r;i.on(s(1809),null)}return{update:d,destroy:u}}var Ox={exports:{}},ar={},Vx={exports:{}},cr={},cc;function Eb(){const e=c;if(cc)return cr;cc=1;var n=D;function t(g,h){return g===h&&(g!==0||1/g===1/h)||g!==g&&h!==h}var o=e(1019)===typeof Object.is?Object.is:t,x=n[e(1595)],r=n.useEffect,i=n[e(1261)],a=n[e(1344)];function d(g,h){const v=e;var f=h(),w=x({inst:{value:f,getSnapshot:h}}),M=w[0][v(1062)],y=w[1];return i(function(){const m=v;M.value=f,M[m(1957)]=h,u(M)&&y({inst:M})},[g,f,h]),r(function(){return u(M)&&y({inst:M}),g(function(){u(M)&&y({inst:M})})},[g]),a(f),f}function u(g){const h=e;var v=g[h(1957)];g=g[h(1256)];try{var f=v();return!o(g,f)}catch{return!0}}function s(g,h){return h()}var b=typeof window>"u"||typeof window[e(1503)]>"u"||e(644)===typeof window.document[e(854)]?s:d;return cr[e(540)]=n[e(540)]!==void 0?n.useSyncExternalStore:b,cr}var sr={},sc;function Ub(){const e=c;return sc||(sc=1,e(487)!==process.env.NODE_ENV&&(function(){const n=e;function t(f,w){return f===w&&(f!==0||1/f===1/w)||f!==f&&w!==w}function o(f,w){const M=_0x51e5;g||i[M(1932)]===void 0||(g=!0,console[M(1487)]("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var y=w();if(!h){var m=w();a(y,m)||(console[M(1487)](M(888)),h=!0)}m=d({inst:{value:y,getSnapshot:w}});var C=m[0][M(1062)],z=m[1];return s(function(){const P=M;C[P(1256)]=y,C[P(1957)]=w,x(C)&&z({inst:C})},[f,y,w]),u(function(){return x(C)&&z({inst:C}),f(function(){x(C)&&z({inst:C})})},[f]),b(y),y}function x(f){const w=_0x51e5;var M=f.getSnapshot;f=f[w(1256)];try{var y=M();return!a(f,y)}catch{return!0}}function r(f,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&n(1019)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[n(678)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[n(678)](Error());var i=D,a=n(1019)===typeof Object.is?Object.is:t,d=i.useState,u=i[n(1646)],s=i[n(1261)],b=i[n(1344)],g=!1,h=!1,v=n(644)===typeof window||typeof window[n(1503)]>"u"||typeof window.document[n(854)]>"u"?r:o;sr[n(540)]=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&n(1019)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[n(1055)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[n(1055)](Error())})()),sr}var lc;function dc(){const e=c;return lc||(lc=1,process.env.NODE_ENV===e(487)?Vx[e(836)]=Eb():Vx[e(836)]=Ub()),Vx[e(836)]}var uc;function Gb(){const e=c;if(uc)return ar;uc=1;var n=D,t=dc();function o(s,b){return s===b&&(s!==0||1/s===1/b)||s!==s&&b!==b}var x=e(1019)===typeof Object.is?Object.is:o,r=t[e(540)],i=n[e(1527)],a=n.useEffect,d=n[e(2027)],u=n[e(1344)];return ar[e(2178)]=function(s,b,g,h,v){const f=e;var w=i(null);if(w[f(616)]===null){var M={hasValue:!1,value:null};w[f(616)]=M}else M=w[f(616)];w=d(function(){function m(V){const q=_0x51e5;if(!C){if(C=!0,z=V,V=h(V),v!==void 0&&M[q(2241)]){var U=M.value;if(v(U,V))return P=U}return P=V}if(U=P,x(z,V))return U;var W=h(V);return v!==void 0&&v(U,W)?(z=V,U):(z=V,P=W)}var C=!1,z,P,E=g===void 0?null:g;return[function(){return m(b())},E===null?void 0:function(){return m(E())}]},[b,g,h,v]);var y=r(s,w[0],w[1]);return a(function(){const m=f;M[m(2241)]=!0,M.value=y},[y]),u(y),y},ar}var lr={},bc;function Ob(){return bc||(bc=1,process.env.NODE_ENV!=="production"&&(function(){const e=_0x51e5;function n(s,b){return s===b&&(s!==0||1/s===1/b)||s!==s&&b!==b}e(644)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&e(1019)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[e(678)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(678)](Error());var t=D,o=dc(),x=e(1019)===typeof Object.is?Object.is:n,r=o.useSyncExternalStore,i=t.useRef,a=t[e(1646)],d=t[e(2027)],u=t[e(1344)];lr[e(2178)]=function(s,b,g,h,v){const f=e;var w=i(null);if(w[f(616)]===null){var M={hasValue:!1,value:null};w[f(616)]=M}else M=w.current;w=d(function(){function m(V){const q=_0x51e5;if(!C){if(C=!0,z=V,V=h(V),v!==void 0&&M[q(2241)]){var U=M.value;if(v(U,V))return P=U}return P=V}if(U=P,x(z,V))return U;var W=h(V);return v!==void 0&&v(U,W)?(z=V,U):(z=V,P=W)}var C=!1,z,P,E=g===void 0?null:g;return[function(){return m(b())},E===null?void 0:function(){return m(E())}]},[b,g,h,v]);var y=r(s,w[0],w[1]);return a(function(){const m=f;M[m(2241)]=!0,M[m(1256)]=y},[y]),u(y),y},e(644)!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&e(1019)===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__[e(1055)]&&__REACT_DEVTOOLS_GLOBAL_HOOK__[e(1055)](Error())})()),lr}var fc;function Vb(){const e=c;return fc||(fc=1,process.env.NODE_ENV==="production"?Ox[e(836)]=Gb():Ox[e(836)]=Ob()),Ox.exports}var Hb=Vb();const Tb=ut(Hb),qb={},hc=e=>{let n;const t=new Set,o=(s,b)=>{const g=_0x51e5,h=typeof s===g(1019)?s(n):s;if(!Object.is(h,n)){const v=n;n=b??(typeof h!="object"||h===null)?h:Object.assign({},n,h),t[g(475)](f=>f(n,v))}},x=()=>n,r=()=>u,i=s=>{const b=_0x51e5;return t[b(1536)](s),()=>t[b(2117)](s)},a=()=>{const s=_0x51e5;(qb?s(487):void 0)!==s(487)&&console[s(2051)](s(507)),t[s(1832)]()},d={setState:o,getState:x,getInitialState:r,subscribe:i,destroy:a},u=n=e(o,x,d);return d},Wb=e=>e?hc(e):hc,{useDebugValue:Xb}=D,{useSyncExternalStoreWithSelector:Kb}=Tb,Zb=e=>e;function gc(e,n=Zb,t){const o=c,x=Kb(e[o(421)],e[o(2285)],e[o(2089)]||e[o(1427)],n,t);return Xb(x),x}const yc=(e,n)=>{const t=c,o=Wb(e),x=(r,i=n)=>gc(o,r,i);return Object[t(1151)](x,o),x},Rb=(e,n)=>e?yc(e,n):yc;function Re(e,n){const t=c;if(Object.is(e,n))return!0;if(typeof e!==t(990)||e===null||typeof n!==t(990)||n===null)return!1;if(e instanceof Map&&n instanceof Map){if(e[t(492)]!==n[t(492)])return!1;for(const[x,r]of e)if(!Object.is(r,n[t(689)](x)))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e[t(492)]!==n[t(492)])return!1;for(const x of e)if(!n[t(1308)](x))return!1;return!0}const o=Object.keys(e);if(o[t(1755)]!==Object[t(1485)](n)[t(1755)])return!1;for(const x of o)if(!Object[t(688)].hasOwnProperty[t(945)](n,x)||!Object.is(e[x],n[x]))return!1;return!0}const Hx=D[c(1821)](null),Jb=Hx[c(1685)],mc=M0[c(1786)]();function Ee(e,n){const t=c,o=D[t(1430)](Hx);if(o===null)throw new Error(mc);return gc(o,e,n)}function Je(){const e=c,n=D[e(1430)](Hx);if(n===null)throw new Error(mc);return D[e(2027)](()=>({getState:n[e(2285)],setState:n[e(1024)],subscribe:n.subscribe}),[n])}const vc={display:c(1501)},Qb={position:c(1784),width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:c(1677),clipPath:"inset(100%)"},wc=c(2072),pc="react-flow__edge-desc",Fb=c(1336),_b=e=>e[c(556)],$b=e=>e[c(1961)];function ef({rfId:e}){const n=c,t=Ee(_b);return l[n(1283)](n(737),{id:Fb+"-"+e,"aria-live":n(1521),"aria-atomic":n(1770),style:Qb,children:t})}function nf({rfId:e,disableKeyboardA11y:n}){const t=c,o=Ee($b);return l[t(948)](l[t(443)],{children:[l[t(1283)](t(737),{id:wc+"-"+e,style:vc,children:n?o[t(669)]:o[t(1963)]}),l[t(1283)](t(737),{id:pc+"-"+e,style:vc,children:o["edge.a11yDescription.default"]}),!n&&l[t(1283)](ef,{rfId:e})]})}const Tx=D.forwardRef(({position:e=c(1600),children:n,className:t,style:o,...x},r)=>{const i=c,a=(""+e).split("-");return l[i(1283)](i(737),{className:i0([i(2168),t,...a]),style:o,ref:r,...x,children:n})});Tx[c(947)]=c(1993);function tf({proOptions:e,position:n=c(2060)}){const t=c;return e?.hideAttribution?null:l.jsx(Tx,{position:n,className:t(2143),"data-message":t(1970),children:l[t(1283)]("a",{href:t(1603),target:t(930),rel:t(1411),"aria-label":t(1387),children:t(532)})})}const xf=e=>{const n=c,t=[],o=[];for(const[,x]of e[n(1470)])x[n(471)]&&t[n(573)](x[n(815)][n(988)]);for(const[,x]of e.edgeLookup)x[n(471)]&&o[n(573)](x);return{selectedNodes:t,selectedEdges:o}},qx=e=>e.id;function of(e,n){const t=c;return Re(e.selectedNodes[t(1226)](qx),n[t(2085)].map(qx))&&Re(e[t(2289)][t(1226)](qx),n[t(2289)][t(1226)](qx))}function rf({onSelectionChange:e}){const n=c,t=Je(),{selectedNodes:o,selectedEdges:x}=Ee(xf,of);return D[n(1646)](()=>{const r=n,i={nodes:o,edges:x};e?.(i),t[r(2285)]()[r(1315)][r(475)](a=>a(i))},[o,x,e]),null}const af=e=>!!e[c(1315)];function cf({onSelectionChange:e}){const n=Ee(af);return e||n?l.jsx(rf,{onSelectionChange:e}):null}const dr=typeof window<"u"?D[c(1261)]:D[c(1646)],zc=[0,0],sf={x:0,y:0,zoom:1},lf=[c(1349),c(1743),c(440),"defaultEdges",c(1800),c(995),"onConnectEnd","onClickConnectStart",c(657),c(1999),c(863),c(1925),c(1038),c(441),c(724),c(2083),c(1348),"minZoom",c(1333),c(720),"onNodesChange",c(1409),"elementsSelectable",c(751),c(626),c(1141),c(964),c(1188),c(977),c(1250),c(2148),"onNodesDelete",c(652),"onDelete",c(2049),c(1327),c(1378),c(672),c(1669),"onSelectionDragStop","onMoveStart",c(979),c(1882),"noPanClassName",c(793),c(858),c(595),"onError",c(1693),c(2098),"selectNodesOnDrag",c(890),c(505),c(612),c(1829),c(1649),c(1961),c(563)],Cc=[...lf,"rfId"],df=e=>({setNodes:e.setNodes,setEdges:e[c(719)],setMinZoom:e.setMinZoom,setMaxZoom:e[c(600)],setTranslateExtent:e.setTranslateExtent,setNodeExtent:e[c(1193)],reset:e.reset,setDefaultNodesAndEdges:e[c(1508)]}),Mc={translateExtent:Pt,nodeOrigin:zc,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:c(1277),rfId:"1"};function uf(e){const n=c,{setNodes:t,setEdges:o,setMinZoom:x,setMaxZoom:r,setTranslateExtent:i,setNodeExtent:a,reset:d,setDefaultNodesAndEdges:u}=Ee(df,Re),s=Je();dr(()=>{const g=_0x51e5;return u(e[g(440)],e[g(2061)]),()=>{b.current=Mc,d()}},[]);const b=D.useRef(Mc);return dr(()=>{const g=_0x51e5;for(const h of Cc){const v=e[h],f=b[g(616)][h];v!==f&&typeof e[h]!==g(644)&&(h===g(1349)?t(v):h===g(1743)?o(v):h===g(1007)?x(v):h===g(1333)?r(v):h==="translateExtent"?i(v):h==="nodeExtent"?a(v):h==="ariaLabelConfig"?s[g(1024)]({ariaLabelConfig:R2(v)}):h==="fitView"?s[g(1024)]({fitViewQueued:v}):h===g(2148)?s[g(1024)]({fitViewOptions:v}):s[g(1024)]({[h]:v}))}b[g(616)]=e},Cc[n(1226)](g=>e[g])),null}function Bc(){const e=c;return typeof window===e(644)||!window[e(1095)]?null:window[e(1095)]("(prefers-color-scheme: dark)")}function bf(e){const n=c,[t,o]=D[n(1595)](e===n(1838)?null:e);return D[n(1646)](()=>{const x=n;if(e!==x(1838)){o(e);return}const r=Bc(),i=()=>o(r?.[x(491)]?x(1436):x(2144));return i(),r?.[x(1046)](x(1958),i),()=>{const a=x;r?.[a(1369)](a(1958),i)}},[e]),t!==null?t:Bc()?.matches?n(1436):n(2144)}const Dc=typeof document<"u"?document:null;function Ht(e=null,n={target:Dc,actInsideInputWithModifier:!0}){const t=c,[o,x]=D[t(1595)](!1),r=D[t(1527)](!1),i=D[t(1527)](new Set([])),[a,d]=D[t(2027)](()=>{const u=t;if(e!==null){const s=Array[u(1996)](e)?e:[e],b=s[u(1947)](h=>typeof h===u(2150))[u(1226)](h=>h.replace("+",`
|
|
7
|
+
`)[u(1009)](`
|
|
6
8
|
|
|
7
9
|
`,`
|
|
8
|
-
+`)[
|
|
9
|
-
`)),g=f[d(2110)]((h,m)=>h[d(1596)](...m),[]);return[f,g]}return[[],[]]},[e]);return D.useEffect(()=>{const d=t,s=n?.[d(966)]??Da,f=n?.actInsideInputWithModifier??!0;if(e!==null){const g=b=>{const v=d;if(r[v(1205)]=b[v(758)]||b[v(685)]||b[v(1721)]||b[v(494)],(!r[v(1205)]||r.current&&!f)&&jc(b))return!1;const y=Na(b[v(2210)],u);if(i[v(1205)][v(848)](b[y]),La(c,i[v(1205)],!1)){const w=b[v(1867)]?.()?.[0]||b[v(966)],z=w?.nodeName==="BUTTON"||w?.[v(779)]==="A";n[v(666)]!==!1&&(r[v(1205)]||!z)&&b[v(666)](),x(!0)}},h=b=>{const v=d,M=Na(b[v(2210)],u);La(c,i[v(1205)],!0)?(x(!1),i[v(1205)].clear()):i[v(1205)][v(929)](b[M]),b.key===v(545)&&i[v(1205)][v(1245)](),r[v(1205)]=!1},m=()=>{const b=d;i[b(1205)][b(1245)](),x(!1)};return s?.addEventListener(d(1574),g),s?.[d(824)](d(610),h),window[d(824)](d(1811),m),window[d(824)](d(803),m),()=>{const b=d;s?.[b(662)](b(1574),g),s?.[b(662)]("keyup",h),window[b(662)](b(1811),m),window[b(662)](b(803),m)}}},[e,x]),o}function La(e,n,t){const o=a;return e[o(526)](x=>t||x[o(2073)]===n[o(1301)])[o(1591)](x=>x[o(1153)](r=>n.has(r)))}function Na(e,n){const t=a;return n[t(1992)](e)?t(2210):t(1699)}const bb=()=>{const e=a,n=Je();return D[e(1970)](()=>{const t=e;return{zoomIn:o=>{const x=_0x3847,{panZoom:r}=n.getState();return r?r[x(923)](1.2,o):Promise[x(1284)](!1)},zoomOut:o=>{const x=_0x3847,{panZoom:r}=n[x(488)]();return r?r[x(923)](1/1.2,o):Promise.resolve(!1)},zoomTo:(o,x)=>{const r=_0x3847,{panZoom:i}=n[r(488)]();return i?i.scaleTo(o,x):Promise.resolve(!1)},getZoom:()=>n[t(488)]()[t(1274)][2],setViewport:async(o,x)=>{const r=t,{transform:[i,c,u],panZoom:d}=n[r(488)]();return d?(await d.setViewport({x:o.x??i,y:o.y??c,zoom:o[r(2184)]??u},x),Promise.resolve(!0)):Promise[r(1284)](!1)},getViewport:()=>{const[o,x,r]=n.getState().transform;return{x:o,y:x,zoom:r}},setCenter:async(o,x,r)=>{const i=t;return n[i(488)]()[i(522)](o,x,r)},fitBounds:async(o,x)=>{const r=t,{width:i,height:c,minZoom:u,maxZoom:d,panZoom:s}=n.getState(),f=Zo(o,i,c,u,d,x?.[r(1634)]??.1);return s?(await s.setViewport(f,{duration:x?.duration,ease:x?.[r(1018)],interpolate:x?.[r(1083)]}),Promise[r(1284)](!0)):Promise.resolve(!1)},screenToFlowPosition:(o,x={})=>{const r=t,{transform:i,snapGrid:c,snapToGrid:u,domNode:d}=n[r(488)]();if(!d)return o;const{x:s,y:f}=d[r(445)](),g={x:o.x-s,y:o.y-f},h=x[r(885)]??c,m=x[r(1112)]??u;return O0(g,i,m,h)},flowToScreenPosition:o=>{const x=t,{transform:r,domNode:i}=n[x(488)]();if(!i)return o;const{x:c,y:u}=i[x(445)](),d=Ex(o,r);return{x:d.x+c,y:d.y+u}}}},[])};function Sa(e,n){const t=a,o=[],x=new Map,r=[];for(const i of e)if(i.type==="add"){r[t(1371)](i);continue}else if(i[t(1939)]==="remove"||i[t(1939)]===t(1513))x[t(1010)](i.id,[i]);else{const c=x.get(i.id);c?c[t(1371)](i):x[t(1010)](i.id,[i])}for(const i of n){const c=x[t(2250)](i.id);if(!c){o[t(1371)](i);continue}if(c[0][t(1939)]===t(1805))continue;if(c[0][t(1939)]===t(1513)){o[t(1371)]({...c[0][t(571)]});continue}const u={...i};for(const d of c)hb(d,u);o[t(1371)](u)}return r[t(2073)]&&r[t(1935)](i=>{const c=t;i[c(649)]!==void 0?o[c(2227)](i[c(649)],0,{...i.item}):o[c(1371)]({...i[c(571)]})}),o}function hb(e,n){const t=a;switch(e.type){case t(505):{n[t(1700)]=e[t(1700)];break}case t(1711):{typeof e[t(1711)]<"u"&&(n[t(1711)]=e[t(1711)]),typeof e[t(1391)]<"u"&&(n[t(1391)]=e[t(1391)]);break}case t(1698):{typeof e[t(1698)]!==t(1624)&&(n[t(1977)]={...e[t(1698)]},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(n[t(2272)]=e[t(1698)].width),(e.setAttributes===!0||e.setAttributes===t(863))&&(n[t(863)]=e[t(1698)][t(863)]))),typeof e.resizing===t(835)&&(n[t(1186)]=e[t(1186)]);break}}}function ka(e,n){return Sa(e,n)}function Ia(e,n){return Sa(e,n)}function Nt(e,n){return{id:e,type:"select",selected:n}}function t0(e,n=new Set,t=!1){const o=a,x=[];for(const[r,i]of e){const c=n[o(2012)](r);!(i[o(1700)]===void 0&&!c)&&i.selected!==c&&(t&&(i[o(1700)]=c),x[o(1371)](Nt(i.id,c)))}return x}function Pa({items:e=[],lookup:n}){const t=a,o=[],x=new Map(e[t(1913)](r=>[r.id,r]));for(const[r,i]of e[t(2057)]()){const c=n[t(2250)](i.id),u=c?.internals?.[t(1382)]??c;u!==void 0&&u!==i&&o[t(1371)]({id:i.id,item:i,type:t(1513)}),u===void 0&&o.push({item:i,type:t(848),index:r})}for(const[r]of n)x[t(2250)](r)===void 0&&o[t(1371)]({id:r,type:t(1805)});return o}function ja(e){const n=a;return{id:e.id,type:n(1805)}}const Aa=e=>H5(e),gb=e=>pc(e);function Ea(e){return D[a(1203)](e)}function Ya(e){const n=a,[t,o]=D.useState(BigInt(0)),[x]=D[n(1115)](()=>yb(()=>o(r=>r+BigInt(1))));return dr(()=>{const r=n,i=x[r(2250)]();i[r(2073)]&&(e(i),x[r(647)]())},[t]),x}function yb(e){let n=[];return{get:()=>n,reset:()=>{n=[]},push:t=>{n.push(t),e()}}}const Ua=D[a(1054)](null);function mb({children:e}){const n=a,t=Je(),o=D.useCallback(u=>{const d=_0x3847,{nodes:s=[],setNodes:f,hasDefaultNodes:g,onNodesChange:h,nodeLookup:m,fitViewQueued:b,onNodesChangeMiddlewareMap:v}=t[d(488)]();let M=s;for(const w of u)M=typeof w===d(1145)?w(M):w;let y=Pa({items:M,lookup:m});for(const w of v[d(1129)]())y=w(y);g&&f(M),y[d(2073)]>0?h?.(y):b&&window[d(1705)](()=>{const w=d,{fitViewQueued:z,nodes:C,setNodes:P}=t[w(488)]();z&&P(C)})},[]),x=Ya(o),r=D[n(2173)](u=>{const d=n,{edges:s=[],setEdges:f,hasDefaultEdges:g,onEdgesChange:h,edgeLookup:m}=t[d(488)]();let b=s;for(const v of u)b=typeof v=="function"?v(b):v;g?f(b):h&&h(Pa({items:b,lookup:m}))},[]),i=Ya(r),c=D.useMemo(()=>({nodeQueue:x,edgeQueue:i}),[]);return l[n(641)](Ua[n(489)],{value:c,children:e})}function wb(){const e=a,n=D[e(1483)](Ua);if(!n)throw new Error("useBatchContext must be used within a BatchProvider");return n}const vb=e=>!!e[a(1739)];function ur(){const e=a,n=bb(),t=Je(),o=wb(),x=Ye(vb),r=D[e(1970)](()=>{const i=e,c=h=>t[i(488)]()[i(1132)].get(h),u=h=>{const m=i;o[m(1454)][m(1371)](h)},d=h=>{const m=i;o[m(655)][m(1371)](h)},s=h=>{const m=i,{nodeLookup:b,nodeOrigin:v}=t[m(488)](),M=Aa(h)?h:b[m(2250)](h.id),y=M[m(879)]?kc(M[m(1711)],M[m(1977)],M.parentId,b,v):M[m(1711)],w={...M,position:y,width:M.measured?.[m(2272)]??M[m(2272)],height:M.measured?.[m(863)]??M[m(863)]};return Qt(w)},f=(h,m,b={replace:!1})=>{const v=i;u(M=>M[v(1913)](y=>{const w=v;if(y.id===h){const z=typeof m===w(1145)?m(y):m;return b[w(1513)]&&Aa(z)?z:{...y,...z}}return y}))},g=(h,m,b={replace:!1})=>{const v=i;d(M=>M[v(1913)](y=>{if(y.id===h){const w=typeof m=="function"?m(y):m;return b.replace&&gb(w)?w:{...y,...w}}return y}))};return{getNodes:()=>t[i(488)]()[i(1687)][i(1913)](h=>({...h})),getNode:h=>c(h)?.internals[i(1382)],getInternalNode:c,getEdges:()=>{const h=i,{edges:m=[]}=t[h(488)]();return m[h(1913)](b=>({...b}))},getEdge:h=>t[i(488)]()[i(1838)].get(h),setNodes:u,setEdges:d,addNodes:h=>{const m=i,b=Array[m(612)](h)?h:[h];o[m(1454)][m(1371)](v=>[...v,...b])},addEdges:h=>{const m=i,b=Array[m(612)](h)?h:[h];o.edgeQueue[m(1371)](v=>[...v,...b])},toObject:()=>{const h=i,{nodes:m=[],edges:b=[],transform:v}=t[h(488)](),[M,y,w]=v;return{nodes:m.map(z=>({...z})),edges:b[h(1913)](z=>({...z})),viewport:{x:M,y,zoom:w}}},deleteElements:async({nodes:h=[],edges:m=[]})=>{const b=i,{nodes:v,edges:M,onNodesDelete:y,onEdgesDelete:w,triggerNodeChanges:z,triggerEdgeChanges:C,onDelete:P,onBeforeDelete:G}=t[b(488)](),{nodes:U,edges:W}=await X5({nodesToRemove:h,edgesToRemove:m,nodes:v,edges:M,onBeforeDelete:G}),O=W[b(2073)]>0,q=U[b(2073)]>0;if(O){const H=W[b(1913)](ja);w?.(W),C(H)}if(q){const H=U[b(1913)](ja);y?.(U),z(H)}return(q||O)&&P?.({nodes:U,edges:W}),{deletedNodes:U,deletedEdges:W}},getIntersectingNodes:(h,m=!0,b)=>{const v=i,M=Lc(h),y=M?h:s(h),w=b!==void 0;return y?(b||t[v(488)]().nodes)[v(526)](z=>{const C=v,P=t[C(488)]().nodeLookup.get(z.id);if(P&&!M&&(z.id===h.id||!P.internals[C(1951)]))return!1;const G=Qt(w?z:P),U=Y0(G,y);return m&&U>0||U>=G[C(2272)]*G[C(863)]||U>=y[C(2272)]*y.height}):[]},isNodeIntersecting:(h,m,b=!0)=>{const v=i,M=Lc(h),y=M?h:s(h);if(!y)return!1;const w=Y0(y,m);return b&&w>0||w>=m[v(2272)]*m[v(863)]||w>=y.width*y[v(863)]},updateNode:f,updateNodeData:(h,m,b={replace:!1})=>{f(h,v=>{const M=_0x3847,y=typeof m===M(1145)?m(v):m;return b[M(1513)]?{...v,data:y}:{...v,data:{...v.data,...y}}},b)},updateEdge:g,updateEdgeData:(h,m,b={replace:!1})=>{g(h,v=>{const M=_0x3847,y=typeof m===M(1145)?m(v):m;return b.replace?{...v,data:y}:{...v,data:{...v[M(1100)],...y}}},b)},getNodesBounds:h=>{const m=i,{nodeLookup:b,nodeOrigin:v}=t[m(488)]();return T5(h,{nodeLookup:b,nodeOrigin:v})},getHandleConnections:({type:h,id:m,nodeId:b})=>Array.from(t[i(488)]()[i(507)].get(b+"-"+h+(m?"-"+m:""))?.values()??[]),getNodeConnections:({type:h,handleId:m,nodeId:b})=>Array[i(1478)](t[i(488)]()[i(507)][i(2250)](""+b+(h?m?"-"+h+"-"+m:"-"+h:""))?.[i(1129)]()??[]),fitView:async h=>{const m=i,b=t[m(488)]()[m(538)]??R5();return t.setState({fitViewQueued:!0,fitViewOptions:h,fitViewResolver:b}),o.nodeQueue[m(1371)](v=>[...v]),b[m(1670)]}}},[]);return D[e(1970)](()=>({...r,...n,viewportInitialized:x}),[x])}const Oa=e=>e[a(1700)],pb=typeof window<"u"?window:void 0;function zb({deleteKeyCode:e,multiSelectionKeyCode:n}){const t=a,o=Je(),{deleteElements:x}=ur(),r=T0(e,{actInsideInputWithModifier:!1}),i=T0(n,{target:pb});D[t(2224)](()=>{const c=t;if(r){const{edges:u,nodes:d}=o[c(488)]();x({nodes:d[c(526)](Oa),edges:u[c(526)](Oa)}),o[c(1260)]({nodesSelectionActive:!1})}},[r]),D[t(2224)](()=>{o[t(1260)]({multiSelectionActive:i})},[i])}function Cb(e){const n=a,t=Je();D[n(2224)](()=>{const o=n,x=()=>{const r=_0x3847;if(!e[r(1205)]||!(e[r(1205)][r(884)]?.()??!0))return!1;const i=Ro(e.current);(i[r(863)]===0||i[r(2272)]===0)&&t[r(488)]().onError?.(r(799),Dn.error004()),t[r(1260)]({width:i.width||500,height:i[r(863)]||500})};if(e.current){x(),window[o(824)](o(1109),x);const r=new ResizeObserver(()=>x());return r.observe(e[o(1205)]),()=>{const i=o;window.removeEventListener(i(1109),x),r&&e[i(1205)]&&r[i(1605)](e[i(1205)])}}},[])}const Wx={position:a(1494),width:a(732),height:"100%",top:0,left:0},Mb=e=>({userSelectionActive:e[a(2032)],lib:e[a(953)],connectionInProgress:e[a(654)][a(857)]});function Bb({onPaneContextMenu:e,zoomOnScroll:n=!0,zoomOnPinch:t=!0,panOnScroll:o=!1,panOnScrollSpeed:x=.5,panOnScrollMode:r=Bt.Free,zoomOnDoubleClick:i=!0,panOnDrag:c=!0,defaultViewport:u,translateExtent:d,minZoom:s,maxZoom:f,zoomActivationKeyCode:g,preventScrolling:h=!0,children:m,noWheelClassName:b,noPanClassName:v,onViewportChange:M,isControlledViewport:y,paneClickDistance:w,selectionOnDrag:z}){const C=a,P=Je(),G=D[C(1899)](null),{userSelectionActive:U,lib:W,connectionInProgress:O}=Ye(Mb,Re),q=T0(g),H=D[C(1899)]();Cb(G);const Y=D[C(2173)](V=>{const N=C;M?.({x:V[0],y:V[1],zoom:V[2]}),!y&&P[N(1260)]({transform:V})},[M,y]);return D[C(2224)](()=>{const V=C;if(G.current){H.current=k2({domNode:G.current,minZoom:s,maxZoom:f,translateExtent:d,viewport:u,onDraggingChange:E=>P[V(1260)](j=>j[V(1488)]===E?j:{paneDragging:E}),onPanZoomStart:(E,j)=>{const I=V,{onViewportChangeStart:J,onMoveStart:ee}=P[I(488)]();ee?.(E,j),J?.(j)},onPanZoom:(E,j)=>{const{onViewportChange:I,onMove:J}=P.getState();J?.(E,j),I?.(j)},onPanZoomEnd:(E,j)=>{const I=V,{onViewportChangeEnd:J,onMoveEnd:ee}=P[I(488)]();ee?.(E,j),J?.(j)}});const{x:N,y:B,zoom:L}=H[V(1205)][V(502)]();return P[V(1260)]({panZoom:H[V(1205)],transform:[N,B,L],domNode:G[V(1205)][V(686)](V(1594))}),()=>{const E=V;H.current?.[E(1991)]()}}},[]),D[C(2224)](()=>{H.current?.update({onPaneContextMenu:e,zoomOnScroll:n,zoomOnPinch:t,panOnScroll:o,panOnScrollSpeed:x,panOnScrollMode:r,zoomOnDoubleClick:i,panOnDrag:c,zoomActivationKeyPressed:q,preventScrolling:h,noPanClassName:v,userSelectionActive:U,noWheelClassName:b,lib:W,onTransformChange:Y,connectionInProgress:O,selectionOnDrag:z,paneClickDistance:w})},[e,n,t,o,x,r,i,c,q,h,v,U,b,W,Y,O,z,w]),l[C(641)](C(2048),{className:C(1193),ref:G,style:Wx,children:m})}const Db=e=>({userSelectionActive:e[a(2032)],userSelectionRect:e[a(1601)]});function Lb(){const e=a,{userSelectionActive:n,userSelectionRect:t}=Ye(Db,Re);return n&&t?l.jsx(e(2048),{className:"react-flow__selection react-flow__container",style:{width:t[e(2272)],height:t.height,transform:e(1447)+t.x+e(601)+t.y+e(1275)}}):null}const fr=(e,n)=>t=>{const o=_0x3847;t[o(966)]===n[o(1205)]&&e?.(t)},Nb=e=>({userSelectionActive:e[a(2032)],elementsSelectable:e.elementsSelectable,connectionInProgress:e[a(654)].inProgress,dragging:e[a(1488)]});function Sb({isSelecting:e,selectionKeyPressed:n,selectionMode:t=j0[a(981)],panOnDrag:o,paneClickDistance:x,selectionOnDrag:r,onSelectionStart:i,onSelectionEnd:c,onPaneClick:u,onPaneContextMenu:d,onPaneScroll:s,onPaneMouseEnter:f,onPaneMouseMove:g,onPaneMouseLeave:h,children:m}){const b=a,v=Je(),{userSelectionActive:M,elementsSelectable:y,dragging:w,connectionInProgress:z}=Ye(Nb,Re),C=y&&(e||M),P=D[b(1899)](null),G=D[b(1899)](),U=D.useRef(new Set),W=D[b(1899)](new Set),O=D.useRef(!1),q=j=>{const I=b;if(O[I(1205)]||z){O[I(1205)]=!1;return}u?.(j),v[I(488)]()[I(593)](),v[I(1260)]({nodesSelectionActive:!1})},H=j=>{const I=b;if(Array.isArray(o)&&o?.[I(1992)](2)){j[I(666)]();return}d?.(j)},Y=s?j=>s(j):void 0,V=j=>{const I=b;O[I(1205)]&&(j[I(462)](),O[I(1205)]=!1)},N=j=>{const I=b,{domNode:J}=v.getState();if(G[I(1205)]=J?.[I(445)](),!G[I(1205)])return;const ee=j.target===P.current;if(!ee&&!!j[I(966)][I(686)](".nokey")||!e||!(r&&ee||n)||j[I(1201)]!==0||!j[I(2155)])return;j[I(966)]?.[I(2166)]?.(j[I(2039)]),O.current=!1;const{x:re,y:ue}=On(j.nativeEvent,G[I(1205)]);v[I(1260)]({userSelectionRect:{width:0,height:0,startX:re,startY:ue,x:re,y:ue}}),!ee&&(j[I(462)](),j[I(666)]())},B=j=>{const I=b,{userSelectionRect:J,transform:ee,nodeLookup:_,edgeLookup:$,connectionLookup:re,triggerNodeChanges:ue,triggerEdgeChanges:we,defaultEdgeOptions:ze,resetSelectedElements:de}=v[I(488)]();if(!G[I(1205)]||!J)return;const{x:F,y:fe}=On(j[I(1465)],G[I(1205)]),{startX:ye,startY:A}=J;if(!O[I(1205)]){const Me=n?0:x;if(Math.hypot(F-ye,fe-A)<=Me)return;de(),i?.(j)}O.current=!0;const X={startX:ye,startY:A,x:F<ye?F:ye,y:fe<A?fe:A,width:Math.abs(F-ye),height:Math[I(1014)](fe-A)},ce=U.current,ae=W[I(1205)];U.current=new Set(Xo(_,X,ee,t===j0.Partial,!0)[I(1913)](Me=>Me.id)),W[I(1205)]=new Set;const De=ze?.[I(2196)]??!0;for(const Me of U[I(1205)]){const je=re[I(2250)](Me);if(je)for(const{edgeId:Te}of je[I(1129)]()){const Pe=$[I(2250)](Te);Pe&&(Pe[I(2196)]??De)&&W[I(1205)][I(848)](Te)}}if(!Ic(ce,U[I(1205)])){const Me=t0(_,U[I(1205)],!0);ue(Me)}if(!Ic(ae,W.current)){const Me=t0($,W.current);we(Me)}v[I(1260)]({userSelectionRect:X,userSelectionActive:!0,nodesSelectionActive:!1})},L=j=>{const I=b;j[I(1201)]===0&&(j[I(966)]?.[I(826)]?.(j[I(2039)]),!M&&j[I(966)]===P[I(1205)]&&v[I(488)]()[I(1601)]&&q?.(j),v.setState({userSelectionActive:!1,userSelectionRect:null}),O[I(1205)]&&(c?.(j),v[I(1260)]({nodesSelectionActive:U.current[I(1301)]>0})))},E=o===!0||Array[b(612)](o)&&o.includes(0);return l[b(873)](b(2048),{className:rn(["react-flow__pane",{draggable:E,dragging:w,selection:e}]),onClick:C?void 0:fr(q,P),onContextMenu:fr(H,P),onWheel:fr(Y,P),onPointerEnter:C?void 0:f,onPointerMove:C?B:g,onPointerUp:C?L:void 0,onPointerDownCapture:C?N:void 0,onClickCapture:C?V:void 0,onPointerLeave:h,ref:P,style:Wx,children:[m,l[b(641)](Lb,{})]})}function br({id:e,store:n,unselect:t=!1,nodeRef:o}){const x=a,{addSelectedNodes:r,unselectNodesAndEdges:i,multiSelectionActive:c,nodeLookup:u,onError:d}=n[x(488)](),s=u.get(e);if(!s){d?.(x(486),Dn[x(2018)](e));return}n[x(1260)]({nodesSelectionActive:!1}),s[x(1700)]?(t||s[x(1700)]&&c)&&(i({nodes:[s],edges:[]}),requestAnimationFrame(()=>o?.current?.[x(1811)]())):r([e])}function Ga({nodeRef:e,disabled:n=!1,noDragClassName:t,handleSelector:o,nodeId:x,isSelectable:r,nodeClickDistance:i}){const c=a,u=Je(),[d,s]=D[c(1115)](!1),f=D[c(1899)]();return D.useEffect(()=>{const g=c;f[g(1205)]=g2({getStoreItems:()=>u[g(488)](),onNodeMouseDown:h=>{br({id:h,store:u,nodeRef:e})},onDragStart:()=>{s(!0)},onDragStop:()=>{s(!1)}})},[]),D[c(2224)](()=>{const g=c;if(!(n||!e[g(1205)]||!f[g(1205)]))return f[g(1205)][g(2058)]({noDragClassName:t,handleSelector:o,domNode:e[g(1205)],isSelectable:r,nodeId:x,nodeClickDistance:i}),()=>{const h=g;f[h(1205)]?.[h(1991)]()}},[t,o,n,r,e,x,i]),d}const kb=e=>n=>n.selected&&(n.draggable||e&&typeof n.draggable===a(1624));function Ha(){const e=a,n=Je();return D[e(2173)](o=>{const x=e,{nodeExtent:r,snapToGrid:i,snapGrid:c,nodesDraggable:u,onError:d,updateNodePositions:s,nodeLookup:f,nodeOrigin:g}=n.getState(),h=new Map,m=kb(u),b=i?c[0]:5,v=i?c[1]:5,M=o[x(523)].x*b*o[x(1351)],y=o[x(523)].y*v*o.factor;for(const[,w]of f){if(!m(w))continue;let z={x:w[x(1914)][x(1951)].x+M,y:w[x(1914)][x(1951)].y+y};i&&(z=U0(z,c));const{position:C,positionAbsolute:P}=zc({nodeId:w.id,nextPosition:z,nodeLookup:f,nodeExtent:r,nodeOrigin:g,onError:d});w[x(1711)]=C,w[x(1914)][x(1951)]=P,h.set(w.id,w)}s(h)},[])}const hr=D[a(1054)](null),Ib=hr.Provider;hr[a(2056)];const Ta=()=>D[a(1483)](hr),Pb=e=>({connectOnClick:e[a(573)],noPanClassName:e[a(1802)],rfId:e[a(1095)]}),jb=(e,n,t)=>o=>{const x=a,{connectionClickStartHandle:r,connectionMode:i,connection:c}=o,{fromHandle:u,toHandle:d,isValid:s}=c,f=d?.[x(757)]===e&&d?.id===n&&d?.[x(1939)]===t;return{connectingFrom:u?.[x(757)]===e&&u?.id===n&&u?.[x(1939)]===t,connectingTo:f,clickConnecting:r?.[x(757)]===e&&r?.id===n&&r?.type===t,isPossibleEndHandle:i===Jt[x(2072)]?u?.[x(1939)]!==t:e!==u?.[x(757)]||n!==u?.id,connectionInProcess:!!u,clickConnectionInProcess:!!r,valid:f&&s}};function Ab({type:e=a(1364),position:n=Se[a(1247)],isValidConnection:t,isConnectable:o=!0,isConnectableStart:x=!0,isConnectableEnd:r=!0,id:i,onConnect:c,children:u,className:d,onMouseDown:s,onTouchStart:f,...g},h){const m=a,b=i||null,v=e==="target",M=Je(),y=Ta(),{connectOnClick:w,noPanClassName:z,rfId:C}=Ye(Pb,Re),{connectingFrom:P,connectingTo:G,clickConnecting:U,isPossibleEndHandle:W,connectionInProcess:O,clickConnectionInProcess:q,valid:H}=Ye(jb(y,b,e),Re);!y&&M[m(488)]()[m(1049)]?.(m(1455),Dn.error010());const Y=B=>{const L=m,{defaultEdgeOptions:E,onConnect:j,hasDefaultEdges:I}=M[L(488)](),J={...E,...B};if(I){const{edges:ee,setEdges:_}=M.getState();_(Hc(J,ee))}j?.(J),c?.(J)},V=B=>{const L=m;if(!y)return;const E=Ac(B.nativeEvent);if(x&&(E&&B[L(1201)]===0||!E)){const j=M[L(488)]();or.onPointerDown(B[L(1465)],{handleDomNode:B[L(896)],autoPanOnConnect:j[L(672)],connectionMode:j.connectionMode,connectionRadius:j.connectionRadius,domNode:j[L(1652)],nodeLookup:j.nodeLookup,lib:j[L(953)],isTarget:v,handleId:b,nodeId:y,flowId:j[L(1095)],panBy:j[L(2040)],cancelConnection:j[L(2034)],onConnectStart:j[L(2190)],onConnectEnd:(...I)=>M.getState().onConnectEnd?.(...I),updateConnection:j[L(2052)],onConnect:Y,isValidConnection:t||((...I)=>M[L(488)]()[L(517)]?.(...I)??!0),getTransform:()=>M[L(488)]().transform,getFromHandle:()=>M[L(488)]()[L(654)].fromHandle,autoPanSpeed:j[L(2189)],dragThreshold:j[L(2180)]})}E?s?.(B):f?.(B)},N=B=>{const L=m,{onClickConnectStart:E,onClickConnectEnd:j,connectionClickStartHandle:I,connectionMode:J,isValidConnection:ee,lib:_,rfId:$,nodeLookup:re,connection:ue}=M[L(488)]();if(!y||!I&&!x)return;if(!I){E?.(B[L(1465)],{nodeId:y,handleId:b,handleType:e}),M[L(1260)]({connectionClickStartHandle:{nodeId:y,type:e,id:b}});return}const we=Pc(B[L(966)]),ze=t||ee,{connection:de,isValid:F}=or[L(1655)](B[L(1465)],{handle:{nodeId:y,id:b,type:e},connectionMode:J,fromNodeId:I[L(757)],fromHandleId:I.id||null,fromType:I[L(1939)],isValidConnection:ze,flowId:$,doc:we,lib:_,nodeLookup:re});F&&de&&Y(de);const fe=structuredClone(ue);delete fe[L(857)],fe[L(2168)]=fe.toHandle?fe[L(636)][L(1711)]:null,j?.(B,fe),M[L(1260)]({connectionClickStartHandle:null})};return l[m(641)](m(2048),{"data-handleid":b,"data-nodeid":y,"data-handlepos":n,"data-id":C+"-"+y+"-"+b+"-"+e,className:rn(["react-flow__handle",m(1714)+n,m(1567),z,d,{source:!v,target:v,connectable:o,connectablestart:x,connectableend:r,clickconnecting:U,connectingfrom:P,connectingto:G,valid:H,connectionindicator:o&&(!O||W)&&(O||q?r:x)}]),onMouseDown:V,onTouchStart:V,onClick:w?N:void 0,ref:h,...g,children:u})}const x0=D.memo(Ea(Ab));function Eb({data:e,isConnectable:n,sourcePosition:t=Se.Bottom}){const o=a;return l[o(873)](l[o(1365)],{children:[e?.[o(2172)],l[o(641)](x0,{type:o(1364),position:t,isConnectable:n})]})}function Yb({data:e,isConnectable:n,targetPosition:t=Se[a(1247)],sourcePosition:o=Se[a(1540)]}){const x=a;return l[x(873)](l[x(1365)],{children:[l[x(641)](x0,{type:"target",position:t,isConnectable:n}),e?.[x(2172)],l[x(641)](x0,{type:x(1364),position:o,isConnectable:n})]})}function Ub(){return null}function Ob({data:e,isConnectable:n,targetPosition:t=Se[a(1247)]}){const o=a;return l[o(873)](l.Fragment,{children:[l[o(641)](x0,{type:"target",position:t,isConnectable:n}),e?.[o(2172)]]})}const Xx={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Va={input:Eb,default:Yb,output:Ob,group:Ub};function Gb(e){const n=a;return e[n(1914)][n(1608)]===void 0?{width:e.width??e[n(1907)]??e[n(501)]?.[n(2272)],height:e.height??e[n(2193)]??e.style?.[n(863)]}:{width:e[n(2272)]??e.style?.[n(2272)],height:e.height??e[n(501)]?.height}}const Hb=e=>{const n=a,{width:t,height:o,x,y:r}=E0(e[n(1132)],{filter:i=>!!i[n(1700)]});return{width:Un(t)?t:null,height:Un(o)?o:null,userSelectionActive:e[n(2032)],transformString:n(1447)+e[n(1274)][0]+n(1321)+e[n(1274)][1]+n(1887)+e[n(1274)][2]+n(1831)+x+n(1321)+r+n(1275)}};function Tb({onSelectionContextMenu:e,noPanClassName:n,disableKeyboardA11y:t}){const o=a,x=Je(),{width:r,height:i,transformString:c,userSelectionActive:u}=Ye(Hb,Re),d=Ha(),s=D[o(1899)](null);D[o(2224)](()=>{const m=o;!t&&s.current?.[m(1367)]({preventScroll:!0})},[t]);const f=!u&&r!==null&&i!==null;if(Ga({nodeRef:s,disabled:!f}),!f)return null;const g=e?m=>{const b=o,v=x[b(488)]()[b(1687)][b(526)](M=>M[b(1700)]);e(m,v)}:void 0,h=m=>{const b=o;Object[b(1589)][b(715)].call(Xx,m[b(1699)])&&(m[b(666)](),d({direction:Xx[m[b(1699)]],factor:m.shiftKey?4:1}))};return l[o(641)](o(2048),{className:rn([o(1884),"react-flow__container",n]),style:{transform:c},children:l.jsx(o(2048),{ref:s,className:o(712),onContextMenu:g,tabIndex:t?void 0:-1,onKeyDown:t?void 0:h,style:{width:r,height:i}})})}const qa=typeof window!==a(1624)?window:void 0,Vb=e=>{const n=a;return{nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e[n(2032)]}};function Wa({children:e,onPaneClick:n,onPaneMouseEnter:t,onPaneMouseMove:o,onPaneMouseLeave:x,onPaneContextMenu:r,onPaneScroll:i,paneClickDistance:c,deleteKeyCode:u,selectionKeyCode:d,selectionOnDrag:s,selectionMode:f,onSelectionStart:g,onSelectionEnd:h,multiSelectionKeyCode:m,panActivationKeyCode:b,zoomActivationKeyCode:v,elementsSelectable:M,zoomOnScroll:y,zoomOnPinch:w,panOnScroll:z,panOnScrollSpeed:C,panOnScrollMode:P,zoomOnDoubleClick:G,panOnDrag:U,defaultViewport:W,translateExtent:O,minZoom:q,maxZoom:H,preventScrolling:Y,onSelectionContextMenu:V,noWheelClassName:N,noPanClassName:B,disableKeyboardA11y:L,onViewportChange:E,isControlledViewport:j}){const I=a,{nodesSelectionActive:J,userSelectionActive:ee}=Ye(Vb,Re),_=T0(d,{target:qa}),$=T0(b,{target:qa}),re=$||U,ue=$||z,we=s&&re!==!0,ze=_||ee||we;return zb({deleteKeyCode:u,multiSelectionKeyCode:m}),l[I(641)](Bb,{onPaneContextMenu:r,elementsSelectable:M,zoomOnScroll:y,zoomOnPinch:w,panOnScroll:ue,panOnScrollSpeed:C,panOnScrollMode:P,zoomOnDoubleClick:G,panOnDrag:!_&&re,defaultViewport:W,translateExtent:O,minZoom:q,maxZoom:H,zoomActivationKeyCode:v,preventScrolling:Y,noWheelClassName:N,noPanClassName:B,onViewportChange:E,isControlledViewport:j,paneClickDistance:c,selectionOnDrag:we,children:l[I(873)](Sb,{onSelectionStart:g,onSelectionEnd:h,onPaneClick:n,onPaneMouseEnter:t,onPaneMouseMove:o,onPaneMouseLeave:x,onPaneContextMenu:r,onPaneScroll:i,panOnDrag:re,isSelecting:!!ze,selectionMode:f,selectionKeyPressed:_,paneClickDistance:c,selectionOnDrag:we,children:[e,J&&l[I(641)](Tb,{onSelectionContextMenu:V,noPanClassName:B,disableKeyboardA11y:L})]})})}Wa[a(852)]="FlowRenderer";const qb=D[a(767)](Wa),Wb=e=>n=>{const t=a;return e?Xo(n.nodeLookup,{x:0,y:0,width:n[t(2272)],height:n[t(863)]},n[t(1274)],!0).map(o=>o.id):Array.from(n[t(1132)][t(996)]())};function Xb(e){return Ye(D.useCallback(Wb(e),[e]),Re)}const Kb=e=>e[a(928)];function Zb(){const e=a,n=Ye(Kb),[t]=D[e(1115)](()=>typeof ResizeObserver===e(1624)?null:new ResizeObserver(x=>{const r=new Map;x.forEach(i=>{const c=_0x3847,u=i[c(966)].getAttribute(c(1470));r[c(1010)](u,{id:u,nodeElement:i[c(966)],force:!0})}),n(r)}));return D[e(2224)](()=>()=>{t?.disconnect()},[t]),t}function Rb({node:e,nodeType:n,hasDimensions:t,resizeObserver:o}){const x=a,r=Je(),i=D[x(1899)](null),c=D.useRef(null),u=D.useRef(e[x(2204)]),d=D[x(1899)](e[x(2222)]),s=D.useRef(n),f=t&&!!e[x(1914)][x(1608)];return D[x(2224)](()=>{const g=x;i[g(1205)]&&!e[g(2141)]&&(!f||c.current!==i.current)&&(c[g(1205)]&&o?.[g(1605)](c[g(1205)]),o?.[g(2212)](i[g(1205)]),c[g(1205)]=i[g(1205)])},[f,e[x(2141)]]),D[x(2224)](()=>()=>{const g=_0x3847;c.current&&(o?.[g(1605)](c[g(1205)]),c[g(1205)]=null)},[]),D[x(2224)](()=>{const g=x;if(i[g(1205)]){const h=s[g(1205)]!==n,m=u[g(1205)]!==e.sourcePosition,b=d[g(1205)]!==e.targetPosition;(h||m||b)&&(s[g(1205)]=n,u.current=e.sourcePosition,d[g(1205)]=e[g(2222)],r.getState()[g(928)](new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,n,e.sourcePosition,e[x(2222)]]),i}function Jb({id:e,onClick:n,onMouseEnter:t,onMouseMove:o,onMouseLeave:x,onContextMenu:r,onDoubleClick:i,nodesDraggable:c,elementsSelectable:u,nodesConnectable:d,nodesFocusable:s,resizeObserver:f,noDragClassName:g,noPanClassName:h,disableKeyboardA11y:m,rfId:b,nodeTypes:v,nodeClickDistance:M,onError:y}){const w=a,{node:z,internals:C,isParent:P}=Ye(de=>{const F=_0x3847,fe=de[F(1132)][F(2250)](e),ye=de[F(1296)][F(2012)](e);return{node:fe,internals:fe[F(1914)],isParent:ye}},Re);let G=z.type||w(542),U=v?.[G]||Va[G];U===void 0&&(y?.("003",Dn[w(2187)](G)),G="default",U=v?.[w(542)]||Va[w(542)]);const W=!!(z[w(1281)]||c&&typeof z[w(1281)]>"u"),O=!!(z.selectable||u&&typeof z.selectable===w(1624)),q=!!(z[w(744)]||d&&typeof z.connectable===w(1624)),H=!!(z[w(1320)]||s&&typeof z[w(1320)]>"u"),Y=Je(),V=Sc(z),N=Rb({node:z,nodeType:G,hasDimensions:V,resizeObserver:f}),B=Ga({nodeRef:N,disabled:z.hidden||!W,noDragClassName:g,handleSelector:z[w(698)],nodeId:e,isSelectable:O,nodeClickDistance:M}),L=Ha();if(z.hidden)return null;const E=Fn(z),j=Gb(z),I=O||W||n||t||o||x,J=t?de=>t(de,{...C[w(1382)]}):void 0,ee=o?de=>o(de,{...C[w(1382)]}):void 0,_=x?de=>x(de,{...C[w(1382)]}):void 0,$=r?de=>r(de,{...C[w(1382)]}):void 0,re=i?de=>i(de,{...C[w(1382)]}):void 0,ue=de=>{const F=w,{selectNodesOnDrag:fe,nodeDragThreshold:ye}=Y[F(488)]();O&&(!fe||!W||ye>0)&&br({id:e,store:Y,nodeRef:N}),n&&n(de,{...C[F(1382)]})},we=de=>{const F=w;if(!(jc(de.nativeEvent)||m)){if(gc[F(1992)](de[F(1699)])&&O){const fe=de[F(1699)]===F(1003);br({id:e,store:Y,unselect:fe,nodeRef:N})}else if(W&&z[F(1700)]&&Object[F(1589)][F(715)][F(1780)](Xx,de[F(1699)])){de[F(666)]();const{ariaLabelConfig:fe}=Y.getState();Y.setState({ariaLiveMessage:fe[F(1528)]({direction:de[F(1699)][F(1513)](F(1556),"").toLowerCase(),x:~~C[F(1951)].x,y:~~C.positionAbsolute.y})}),L({direction:Xx[de.key],factor:de[F(1721)]?4:1})}}},ze=()=>{const de=w;if(m||!N[de(1205)]?.[de(2266)](":focus-visible"))return;const{transform:F,width:fe,height:ye,autoPanOnNodeFocus:A,setCenter:X}=Y[de(488)]();if(!A)return;!(Xo(new Map([[e,z]]),{x:0,y:0,width:fe,height:ye},F,!0)[de(2073)]>0)&&X(z[de(1711)].x+E[de(2272)]/2,z[de(1711)].y+E[de(863)]/2,{zoom:F[2]})};return l[w(641)](w(2048),{className:rn([w(552),w(1827)+G,{[h]:W},z[w(2132)],{selected:z[w(1700)],selectable:O,parent:P,draggable:W,dragging:B}]),ref:N,style:{zIndex:C.z,transform:w(1447)+C[w(1951)].x+w(1321)+C[w(1951)].y+w(1275),pointerEvents:w(I?1460:1895),visibility:w(V?656:2141),...z.style,...j},"data-id":e,"data-testid":w(1311)+e,onMouseEnter:J,onMouseMove:ee,onMouseLeave:_,onContextMenu:$,onClick:ue,onDoubleClick:re,onKeyDown:H?we:void 0,tabIndex:H?0:void 0,onFocus:H?ze:void 0,role:z.ariaRole??(H?w(943):void 0),"aria-roledescription":w(694),"aria-describedby":m?void 0:va+"-"+b,"aria-label":z[w(772)],...z[w(1736)],children:l[w(641)](Ib,{value:e,children:l.jsx(U,{id:e,data:z.data,type:G,positionAbsoluteX:C.positionAbsolute.x,positionAbsoluteY:C[w(1951)].y,selected:z.selected??!1,selectable:O,draggable:W,deletable:z.deletable??!0,isConnectable:q,sourcePosition:z[w(2204)],targetPosition:z.targetPosition,dragging:B,dragHandle:z[w(698)],zIndex:C.z,parentId:z.parentId,...E})})})}var _b=D[a(767)](Jb);const Qb=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e[a(901)],nodesFocusable:e[a(1509)],elementsSelectable:e[a(567)],onError:e[a(1049)]});function Xa(e){const n=a,{nodesDraggable:t,nodesConnectable:o,nodesFocusable:x,elementsSelectable:r,onError:i}=Ye(Qb,Re),c=Xb(e.onlyRenderVisibleElements),u=Zb();return l[n(641)]("div",{className:n(1694),style:Wx,children:c[n(1913)](d=>{const s=n;return l[s(641)](_b,{id:d,nodeTypes:e[s(2111)],nodeExtent:e.nodeExtent,onClick:e[s(1536)],onMouseEnter:e.onNodeMouseEnter,onMouseMove:e[s(1287)],onMouseLeave:e[s(463)],onContextMenu:e[s(1543)],onDoubleClick:e.onNodeDoubleClick,noDragClassName:e[s(763)],noPanClassName:e[s(1802)],rfId:e[s(1095)],disableKeyboardA11y:e[s(688)],resizeObserver:u,nodesDraggable:t,nodesConnectable:o,nodesFocusable:x,elementsSelectable:r,nodeClickDistance:e.nodeClickDistance,onError:i},d)})})}Xa[a(852)]="NodeRenderer";const Fb=D.memo(Xa);function $b(e){const n=a;return Ye(D[n(2173)](o=>{const x=n;if(!e)return o[x(710)][x(1913)](i=>i.id);const r=[];if(o[x(2272)]&&o[x(863)])for(const i of o[x(710)]){const c=o.nodeLookup[x(2250)](i[x(1364)]),u=o.nodeLookup[x(2250)](i.target);c&&u&&F5({sourceNode:c,targetNode:u,width:o.width,height:o[x(863)],transform:o[x(1274)]})&&r.push(i.id)}return r},[e]),Re)}const eh=({color:e=a(1895),strokeWidth:n=1})=>{const t=a,o={strokeWidth:n,...e&&{stroke:e}};return l.jsx("polyline",{className:"arrow",style:o,strokeLinecap:t(1958),fill:"none",strokeLinejoin:t(1958),points:t(1268)})},nh=({color:e="none",strokeWidth:n=1})=>{const t=a,o={strokeWidth:n,...e&&{stroke:e,fill:e}};return l[t(641)](t(775),{className:"arrowclosed",style:o,strokeLinecap:t(1958),strokeLinejoin:t(1958),points:t(782)})},Ka={[Ix.Arrow]:eh,[Ix.ArrowClosed]:nh};function th(e){const n=Je();return D.useMemo(()=>{const o=_0x3847;return Object.prototype[o(715)][o(1780)](Ka,e)?Ka[e]:(n.getState().onError?.("009",Dn.error009(e)),null)},[e])}const xh=({id:e,type:n,color:t,width:o=12.5,height:x=12.5,markerUnits:r="strokeWidth",strokeWidth:i,orient:c=a(2043)})=>{const u=a,d=th(n);return d?l.jsx(u(1051),{className:"react-flow__arrowhead",id:e,markerWidth:""+o,markerHeight:""+x,viewBox:u(503),markerUnits:r,orient:c,refX:"0",refY:"0",children:l.jsx(d,{color:t,strokeWidth:i})}):null},Za=({defaultColor:e,rfId:n})=>{const t=a,o=Ye(i=>i[t(710)]),x=Ye(i=>i[t(1847)]),r=D[t(1970)](()=>{const i=t;return r2(o,{id:n,defaultColor:e,defaultMarkerStart:x?.[i(2248)],defaultMarkerEnd:x?.[i(958)]})},[o,x,n,e]);return r[t(2073)]?l[t(641)](t(962),{className:t(1302),"aria-hidden":t(1231),children:l[t(641)]("defs",{children:r.map(i=>l.jsx(xh,{id:i.id,type:i[t(1939)],color:i[t(660)],width:i[t(2272)],height:i[t(863)],markerUnits:i[t(1960)],strokeWidth:i[t(1397)],orient:i[t(1918)]},i.id))})}):null};Za[a(852)]=a(2126);var oh=D[a(767)](Za);function Ra({x:e,y:n,label:t,labelStyle:o,labelShowBg:x=!0,labelBgStyle:r,labelBgPadding:i=[2,4],labelBgBorderRadius:c=2,children:u,className:d,...s}){const f=a,[g,h]=D[f(1115)]({x:1,y:0,width:0,height:0}),m=rn([f(1273),d]),b=D[f(1899)](null);return D[f(2224)](()=>{const v=f;if(b[v(1205)]){const M=b[v(1205)].getBBox();h({x:M.x,y:M.y,width:M[v(2272)],height:M.height})}},[t]),t?l.jsxs("g",{transform:f(1447)+(e-g[f(2272)]/2)+" "+(n-g[f(863)]/2)+")",className:m,visibility:g[f(2272)]?f(656):f(2141),...s,children:[x&&l[f(641)](f(730),{width:g[f(2272)]+2*i[0],x:-i[0],y:-i[1],height:g[f(863)]+2*i[1],className:f(1814),style:r,rx:c,ry:c}),l[f(641)]("text",{className:"react-flow__edge-text",y:g[f(863)]/2,dy:f(807),ref:b,style:o,children:t}),u]}):null}Ra[a(852)]=a(717);const rh=D[a(767)](Ra);function Kx({path:e,labelX:n,labelY:t,label:o,labelStyle:x,labelShowBg:r,labelBgStyle:i,labelBgPadding:c,labelBgBorderRadius:u,interactionWidth:d=20,...s}){const f=a;return l[f(873)](l.Fragment,{children:[l.jsx(f(467),{...s,d:e,fill:f(1895),className:rn([f(695),s[f(2132)]])}),d?l[f(641)](f(467),{d:e,fill:f(1895),strokeOpacity:0,strokeWidth:d,className:f(1819)}):null,o&&Un(n)&&Un(t)?l.jsx(rh,{x:n,y:t,label:o,labelStyle:x,labelShowBg:r,labelBgStyle:i,labelBgPadding:c,labelBgBorderRadius:u}):null]})}function Ja({pos:e,x1:n,y1:t,x2:o,y2:x}){const r=a;return e===Se[r(860)]||e===Se[r(2044)]?[.5*(n+o),t]:[n,.5*(t+x)]}function _a({sourceX:e,sourceY:n,sourcePosition:t=Se[a(1540)],targetX:o,targetY:x,targetPosition:r=Se[a(1247)]}){const[i,c]=Ja({pos:t,x1:e,y1:n,x2:o,y2:x}),[u,d]=Ja({pos:r,x1:o,y1:x,x2:e,y2:n}),[s,f,g,h]=Yc({sourceX:e,sourceY:n,targetX:o,targetY:x,sourceControlX:i,sourceControlY:c,targetControlX:u,targetControlY:d});return["M"+e+","+n+" C"+i+","+c+" "+u+","+d+" "+o+","+x,s,f,g,h]}function Qa(e){const n=a;return D[n(767)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:c,targetPosition:u,label:d,labelStyle:s,labelShowBg:f,labelBgStyle:g,labelBgPadding:h,labelBgBorderRadius:m,style:b,markerEnd:v,markerStart:M,interactionWidth:y})=>{const w=n,[z,C,P]=_a({sourceX:o,sourceY:x,sourcePosition:c,targetX:r,targetY:i,targetPosition:u}),G=e[w(2277)]?void 0:t;return l.jsx(Kx,{id:G,path:z,labelX:C,labelY:P,label:d,labelStyle:s,labelShowBg:f,labelBgStyle:g,labelBgPadding:h,labelBgBorderRadius:m,style:b,markerEnd:v,markerStart:M,interactionWidth:y})})}const ih=Qa({isInternal:!1}),Fa=Qa({isInternal:!0});ih[a(852)]=a(970),Fa[a(852)]="SimpleBezierEdgeInternal";function $a(e){const n=a;return D[n(767)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:s,labelBgPadding:f,labelBgBorderRadius:g,style:h,sourcePosition:m=Se[n(1540)],targetPosition:b=Se[n(1247)],markerEnd:v,markerStart:M,pathOptions:y,interactionWidth:w})=>{const z=n,[C,P,G]=Jo({sourceX:o,sourceY:x,sourcePosition:m,targetX:r,targetY:i,targetPosition:b,borderRadius:y?.[z(2097)],offset:y?.offset,stepPosition:y?.stepPosition}),U=e[z(2277)]?void 0:t;return l[z(641)](Kx,{id:U,path:C,labelX:P,labelY:G,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:s,labelBgPadding:f,labelBgBorderRadius:g,style:h,markerEnd:v,markerStart:M,interactionWidth:w})})}const es=$a({isInternal:!1}),ns=$a({isInternal:!0});es.displayName=a(628),ns.displayName=a(419);function ts(e){const n=a;return D[n(767)](({id:t,...o})=>{const x=n,r=e[x(2277)]?void 0:t;return l.jsx(es,{...o,id:r,pathOptions:D[x(1970)](()=>({borderRadius:0,offset:o[x(1234)]?.[x(1240)]}),[o[x(1234)]?.[x(1240)]])})})}const ch=ts({isInternal:!1}),xs=ts({isInternal:!0});ch[a(852)]=a(878),xs[a(852)]="StepEdgeInternal";function os(e){const n=a;return D[n(767)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:s,labelBgPadding:f,labelBgBorderRadius:g,style:h,markerEnd:m,markerStart:b,interactionWidth:v})=>{const M=n,[y,w,z]=Tc({sourceX:o,sourceY:x,targetX:r,targetY:i}),C=e.isInternal?void 0:t;return l[M(641)](Kx,{id:C,path:y,labelX:w,labelY:z,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:s,labelBgPadding:f,labelBgBorderRadius:g,style:h,markerEnd:m,markerStart:b,interactionWidth:v})})}const ah=os({isInternal:!1}),rs=os({isInternal:!0});ah[a(852)]=a(1299),rs[a(852)]=a(617);function is(e){const n=a;return D.memo(({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:c=Se[n(1540)],targetPosition:u=Se[n(1247)],label:d,labelStyle:s,labelShowBg:f,labelBgStyle:g,labelBgPadding:h,labelBgBorderRadius:m,style:b,markerEnd:v,markerStart:M,pathOptions:y,interactionWidth:w})=>{const z=n,[C,P,G]=Oc({sourceX:o,sourceY:x,sourcePosition:c,targetX:r,targetY:i,targetPosition:u,curvature:y?.curvature}),U=e[z(2277)]?void 0:t;return l[z(641)](Kx,{id:U,path:C,labelX:P,labelY:G,label:d,labelStyle:s,labelShowBg:f,labelBgStyle:g,labelBgPadding:h,labelBgBorderRadius:m,style:b,markerEnd:v,markerStart:M,interactionWidth:w})})}const sh=is({isInternal:!1}),cs=is({isInternal:!0});sh[a(852)]="BezierEdge",cs[a(852)]=a(764);const as={default:cs,straight:rs,step:xs,smoothstep:ns,simplebezier:Fa},ss={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},lh=(e,n,t)=>{const o=a;return t===Se.Left?e-n:t===Se[o(2044)]?e+n:e},dh=(e,n,t)=>t===Se[a(1247)]?e-n:t===Se.Bottom?e+n:e,ls="react-flow__edgeupdater";function ds({position:e,centerX:n,centerY:t,radius:o=10,onMouseDown:x,onMouseEnter:r,onMouseOut:i,type:c}){const u=a;return l[u(641)](u(2066),{onMouseDown:x,onMouseEnter:r,onMouseOut:i,className:rn([ls,ls+"-"+c]),cx:lh(n,o,e),cy:dh(t,o,e),r:o,stroke:u(1223),fill:u(1223)})}function uh({isReconnectable:e,reconnectRadius:n,edge:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:c,targetPosition:u,onReconnect:d,onReconnectStart:s,onReconnectEnd:f,setReconnecting:g,setUpdateHover:h}){const m=a,b=Je(),v=(C,P)=>{const G=_0x3847;if(C.button!==0)return;const{autoPanOnConnect:U,domNode:W,connectionMode:O,connectionRadius:q,lib:H,onConnectStart:Y,cancelConnection:V,nodeLookup:N,rfId:B,panBy:L,updateConnection:E}=b[G(488)](),j=P[G(1939)]===G(966),I=(_,$)=>{const re=G;g(!1),f?.(_,t,P[re(1939)],$)},J=_=>d?.(t,_),ee=(_,$)=>{const re=G;g(!0),s?.(C,t,P[re(1939)]),Y?.(_,$)};or[G(1776)](C[G(1465)],{autoPanOnConnect:U,connectionMode:O,connectionRadius:q,domNode:W,handleId:P.id,nodeId:P[G(757)],nodeLookup:N,isTarget:j,edgeUpdaterType:P[G(1939)],lib:H,flowId:B,cancelConnection:V,panBy:L,isValidConnection:(..._)=>b.getState()[G(517)]?.(..._)??!0,onConnect:J,onConnectStart:ee,onConnectEnd:(..._)=>b[G(488)]()[G(1101)]?.(..._),onReconnectEnd:I,updateConnection:E,getTransform:()=>b.getState()[G(1274)],getFromHandle:()=>b[G(488)]().connection[G(1742)],dragThreshold:b[G(488)]()[G(2180)],handleDomNode:C[G(896)]})},M=C=>v(C,{nodeId:t.target,id:t[m(1195)]??null,type:"target"}),y=C=>v(C,{nodeId:t[m(1364)],id:t[m(707)]??null,type:m(1364)}),w=()=>h(!0),z=()=>h(!1);return l[m(873)](l[m(1365)],{children:[(e===!0||e===m(1364))&&l[m(641)](ds,{position:c,centerX:o,centerY:x,radius:n,onMouseDown:M,onMouseEnter:w,onMouseOut:z,type:"source"}),(e===!0||e===m(966))&&l[m(641)](ds,{position:u,centerX:r,centerY:i,radius:n,onMouseDown:y,onMouseEnter:w,onMouseOut:z,type:m(966)})]})}function fh({id:e,edgesFocusable:n,edgesReconnectable:t,elementsSelectable:o,onClick:x,onDoubleClick:r,onContextMenu:i,onMouseEnter:c,onMouseMove:u,onMouseLeave:d,reconnectRadius:s,onReconnect:f,onReconnectStart:g,onReconnectEnd:h,rfId:m,edgeTypes:b,noPanClassName:v,onError:M,disableKeyboardA11y:y}){const w=a;let z=Ye(A=>A.edgeLookup[w(2250)](e));const C=Ye(A=>A.defaultEdgeOptions);z=C?{...C,...z}:z;let P=z[w(1939)]||w(542),G=b?.[P]||as[P];G===void 0&&(M?.("011",Dn[w(1230)](P)),P="default",G=b?.default||as[w(542)]);const U=!!(z[w(1320)]||n&&typeof z[w(1320)]===w(1624)),W=typeof f<"u"&&(z.reconnectable||t&&typeof z[w(630)]===w(1624)),O=!!(z.selectable||o&&typeof z[w(2196)]>"u"),q=D[w(1899)](null),[H,Y]=D[w(1115)](!1),[V,N]=D.useState(!1),B=Je(),{zIndex:L,sourceX:E,sourceY:j,targetX:I,targetY:J,sourcePosition:ee,targetPosition:_}=Ye(D[w(2173)](A=>{const X=w,ce=A[X(1132)][X(2250)](z[X(1364)]),ae=A[X(1132)][X(2250)](z.target);if(!ce||!ae)return{zIndex:z[X(922)],...ss};const De=o2({id:e,sourceNode:ce,targetNode:ae,sourceHandle:z[X(707)]||null,targetHandle:z[X(1195)]||null,connectionMode:A[X(548)],onError:M});return{zIndex:Q5({selected:z[X(1700)],zIndex:z.zIndex,sourceNode:ce,targetNode:ae,elevateOnSelect:A[X(1503)],zIndexMode:A[X(1422)]}),...De||ss}},[z[w(1364)],z[w(966)],z[w(707)],z[w(1195)],z[w(1700)],z[w(922)]]),Re),$=D.useMemo(()=>z[w(2248)]?w(447)+_o(z[w(2248)],m)+"')":void 0,[z.markerStart,m]),re=D[w(1970)](()=>z[w(958)]?"url('#"+_o(z[w(958)],m)+"')":void 0,[z.markerEnd,m]);if(z[w(2141)]||E===null||j===null||I===null||J===null)return null;const ue=A=>{const X=w,{addSelectedEdges:ce,unselectNodesAndEdges:ae,multiSelectionActive:De}=B[X(488)]();O&&(B[X(1260)]({nodesSelectionActive:!1}),z[X(1700)]&&De?(ae({nodes:[],edges:[z]}),q[X(1205)]?.blur()):ce([e])),x&&x(A,z)},we=r?A=>{r(A,{...z})}:void 0,ze=i?A=>{i(A,{...z})}:void 0,de=c?A=>{c(A,{...z})}:void 0,F=u?A=>{u(A,{...z})}:void 0,fe=d?A=>{d(A,{...z})}:void 0,ye=A=>{const X=w;if(!y&&gc.includes(A.key)&&O){const{unselectNodesAndEdges:ce,addSelectedEdges:ae}=B.getState();A.key===X(1003)?(q.current?.[X(1811)](),ce({edges:[z]})):ae([e])}};return l.jsx(w(962),{style:{zIndex:L},children:l.jsxs("g",{className:rn([w(1030),w(1002)+P,z[w(2132)],v,{selected:z[w(1700)],animated:z[w(1745)],inactive:!O&&!x,updating:H,selectable:O}]),onClick:ue,onDoubleClick:we,onContextMenu:ze,onMouseEnter:de,onMouseMove:F,onMouseLeave:fe,onKeyDown:U?ye:void 0,tabIndex:U?0:void 0,role:z[w(967)]??w(U?943:1219),"aria-roledescription":w(855),"data-id":e,"data-testid":"rf__edge-"+e,"aria-label":z.ariaLabel===null?void 0:z[w(772)]||w(1517)+z.source+w(2162)+z.target,"aria-describedby":U?pa+"-"+m:void 0,ref:q,...z.domAttributes,children:[!V&&l[w(641)](G,{id:e,source:z[w(1364)],target:z[w(966)],type:z[w(1939)],selected:z[w(1700)],animated:z[w(1745)],selectable:O,deletable:z.deletable??!0,label:z[w(2172)],labelStyle:z[w(2197)],labelShowBg:z[w(582)],labelBgStyle:z[w(1659)],labelBgPadding:z[w(861)],labelBgBorderRadius:z[w(2077)],sourceX:E,sourceY:j,targetX:I,targetY:J,sourcePosition:ee,targetPosition:_,data:z.data,style:z[w(501)],sourceHandleId:z[w(707)],targetHandleId:z.targetHandle,markerStart:$,markerEnd:re,pathOptions:w(1234)in z?z[w(1234)]:void 0,interactionWidth:z.interactionWidth}),W&&l[w(641)](uh,{edge:z,isReconnectable:W,reconnectRadius:s,onReconnect:f,onReconnectStart:g,onReconnectEnd:h,sourceX:E,sourceY:j,targetX:I,targetY:J,sourcePosition:ee,targetPosition:_,setUpdateHover:Y,setReconnecting:N})]})})}var bh=D.memo(fh);const hh=e=>({edgesFocusable:e[a(1335)],edgesReconnectable:e.edgesReconnectable,elementsSelectable:e[a(567)],connectionMode:e[a(548)],onError:e[a(1049)]});function us({defaultMarkerColor:e,onlyRenderVisibleElements:n,rfId:t,edgeTypes:o,noPanClassName:x,onReconnect:r,onEdgeContextMenu:i,onEdgeMouseEnter:c,onEdgeMouseMove:u,onEdgeMouseLeave:d,onEdgeClick:s,reconnectRadius:f,onEdgeDoubleClick:g,onReconnectStart:h,onReconnectEnd:m,disableKeyboardA11y:b}){const v=a,{edgesFocusable:M,edgesReconnectable:y,elementsSelectable:w,onError:z}=Ye(hh,Re),C=$b(n);return l.jsxs(v(2048),{className:v(1023),children:[l[v(641)](oh,{defaultColor:e,rfId:t}),C[v(1913)](P=>l[v(641)](bh,{id:P,edgesFocusable:M,edgesReconnectable:y,elementsSelectable:w,noPanClassName:x,onReconnect:r,onContextMenu:i,onMouseEnter:c,onMouseMove:u,onMouseLeave:d,onClick:s,reconnectRadius:f,onDoubleClick:g,onReconnectStart:h,onReconnectEnd:m,rfId:t,onError:z,edgeTypes:o,disableKeyboardA11y:b},P))]})}us[a(852)]=a(1045);const gh=D[a(767)](us),yh=e=>"translate("+e[a(1274)][0]+"px,"+e.transform[1]+a(1887)+e.transform[2]+")";function mh({children:e}){const n=a,t=Ye(yh);return l.jsx(n(2048),{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function wh(e){const n=a,t=ur(),o=D.useRef(!1);D[n(2224)](()=>{const x=n;!o.current&&t[x(2246)]&&e&&(setTimeout(()=>e(t),1),o[x(1205)]=!0)},[e,t[n(2246)]])}const vh=e=>e.panZoom?.[a(605)];function ph(e){const n=a,t=Ye(vh),o=Je();return D[n(2224)](()=>{const x=n;e&&(t?.(e),o.setState({transform:[e.x,e.y,e[x(2184)]]}))},[e,t]),null}function zh(e){const n=a;return e[n(654)][n(857)]?{...e[n(654)],to:O0(e[n(654)].to,e[n(1274)])}:{...e[n(654)]}}function Ch(e){return zh}function Mh(e){const n=Ch();return Ye(n,Re)}const Bh=e=>({nodesConnectable:e[a(901)],isValid:e[a(654)][a(1655)],inProgress:e[a(654)][a(857)],width:e[a(2272)],height:e.height});function Dh({containerStyle:e,style:n,type:t,component:o}){const x=a,{nodesConnectable:r,width:i,height:c,isValid:u,inProgress:d}=Ye(Bh,Re);return!(i&&r&&d)?null:l.jsx(x(962),{style:e,width:i,height:c,className:"react-flow__connectionline react-flow__container",children:l[x(641)]("g",{className:rn(["react-flow__connection",vc(u)]),children:l.jsx(fs,{style:n,type:t,CustomComponent:o,isValid:u})})})}const fs=({style:e,type:n=ct[a(1692)],CustomComponent:t,isValid:o})=>{const x=a,{inProgress:r,from:i,fromNode:c,fromHandle:u,fromPosition:d,to:s,toNode:f,toHandle:g,toPosition:h,pointer:m}=Mh();if(!r)return;if(t)return l[x(641)](t,{connectionLineType:n,connectionLineStyle:e,fromNode:c,fromHandle:u,fromX:i.x,fromY:i.y,toX:s.x,toY:s.y,fromPosition:d,toPosition:h,connectionStatus:vc(o),toNode:f,toHandle:g,pointer:m});let b="";const v={sourceX:i.x,sourceY:i.y,sourcePosition:d,targetX:s.x,targetY:s.y,targetPosition:h};switch(n){case ct.Bezier:[b]=Oc(v);break;case ct[x(1362)]:[b]=_a(v);break;case ct[x(1903)]:[b]=Jo({...v,borderRadius:0});break;case ct[x(750)]:[b]=Jo(v);break;default:[b]=Tc(v)}return l.jsx(x(467),{d:b,fill:x(1895),className:"react-flow__connection-path",style:e})};fs[a(852)]=a(1886);const Lh={};function bs(e=Lh){const n=a,t=D.useRef(e),o=Je();D[n(2224)](()=>{const x=n;if(process.env.NODE_ENV===x(784)){const r=new Set([...Object[x(996)](t.current),...Object.keys(e)]);for(const i of r)if(t[x(1205)][i]!==e[i]){o[x(488)]().onError?.(x(1330),Dn.error002());break}t.current=e}},[e])}function Nh(){const e=a,n=Je(),t=D[e(1899)](!1);D[e(2224)](()=>{const o=e;if(process.env.NODE_ENV==="development"&&!t[o(1205)]){const x=document[o(525)](o(504));x&&window.getComputedStyle(x).zIndex!=="1"&&n.getState()[o(1049)]?.(o(1139),Dn[o(1627)](o(1512))),t[o(1205)]=!0}},[])}function hs({nodeTypes:e,edgeTypes:n,onInit:t,onNodeClick:o,onEdgeClick:x,onNodeDoubleClick:r,onEdgeDoubleClick:i,onNodeMouseEnter:c,onNodeMouseMove:u,onNodeMouseLeave:d,onNodeContextMenu:s,onSelectionContextMenu:f,onSelectionStart:g,onSelectionEnd:h,connectionLineType:m,connectionLineStyle:b,connectionLineComponent:v,connectionLineContainerStyle:M,selectionKeyCode:y,selectionOnDrag:w,selectionMode:z,multiSelectionKeyCode:C,panActivationKeyCode:P,zoomActivationKeyCode:G,deleteKeyCode:U,onlyRenderVisibleElements:W,elementsSelectable:O,defaultViewport:q,translateExtent:H,minZoom:Y,maxZoom:V,preventScrolling:N,defaultMarkerColor:B,zoomOnScroll:L,zoomOnPinch:E,panOnScroll:j,panOnScrollSpeed:I,panOnScrollMode:J,zoomOnDoubleClick:ee,panOnDrag:_,onPaneClick:$,onPaneMouseEnter:re,onPaneMouseMove:ue,onPaneMouseLeave:we,onPaneScroll:ze,onPaneContextMenu:de,paneClickDistance:F,nodeClickDistance:fe,onEdgeContextMenu:ye,onEdgeMouseEnter:A,onEdgeMouseMove:X,onEdgeMouseLeave:ce,reconnectRadius:ae,onReconnect:De,onReconnectStart:Me,onReconnectEnd:je,noDragClassName:Te,noWheelClassName:Pe,noPanClassName:gn,disableKeyboardA11y:Ne,nodeExtent:_e,rfId:te,viewport:pe,onViewportChange:Ce}){const me=a;return bs(e),bs(n),Nh(),wh(t),ph(pe),l[me(641)](qb,{onPaneClick:$,onPaneMouseEnter:re,onPaneMouseMove:ue,onPaneMouseLeave:we,onPaneContextMenu:de,onPaneScroll:ze,paneClickDistance:F,deleteKeyCode:U,selectionKeyCode:y,selectionOnDrag:w,selectionMode:z,onSelectionStart:g,onSelectionEnd:h,multiSelectionKeyCode:C,panActivationKeyCode:P,zoomActivationKeyCode:G,elementsSelectable:O,zoomOnScroll:L,zoomOnPinch:E,zoomOnDoubleClick:ee,panOnScroll:j,panOnScrollSpeed:I,panOnScrollMode:J,panOnDrag:_,defaultViewport:q,translateExtent:H,minZoom:Y,maxZoom:V,onSelectionContextMenu:f,preventScrolling:N,noDragClassName:Te,noWheelClassName:Pe,noPanClassName:gn,disableKeyboardA11y:Ne,onViewportChange:Ce,isControlledViewport:!!pe,children:l[me(873)](mh,{children:[l[me(641)](gh,{edgeTypes:n,onEdgeClick:x,onEdgeDoubleClick:i,onReconnect:De,onReconnectStart:Me,onReconnectEnd:je,onlyRenderVisibleElements:W,onEdgeContextMenu:ye,onEdgeMouseEnter:A,onEdgeMouseMove:X,onEdgeMouseLeave:ce,reconnectRadius:ae,defaultMarkerColor:B,noPanClassName:gn,disableKeyboardA11y:Ne,rfId:te}),l[me(641)](Dh,{style:b,type:m,component:v,containerStyle:M}),l.jsx("div",{className:me(1172)}),l.jsx(Fb,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:r,onNodeMouseEnter:c,onNodeMouseMove:u,onNodeMouseLeave:d,onNodeContextMenu:s,nodeClickDistance:fe,onlyRenderVisibleElements:W,noPanClassName:gn,noDragClassName:Te,disableKeyboardA11y:Ne,nodeExtent:_e,rfId:te}),l[me(641)](me(2048),{className:me(1214)})]})})}hs[a(852)]=a(1228);const Sh=D[a(767)](hs),gs=({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:i,fitViewOptions:c,minZoom:u=.5,maxZoom:d=2,nodeOrigin:s,nodeExtent:f,zIndexMode:g=a(952)}={})=>{const h=a,m=new Map,b=new Map,v=new Map,M=new Map,y=o??n??[],w=t??e??[],z=s??[0,0],C=f??P0;_c(v,M,y);const{nodesInitialized:P}=er(w,m,b,{nodeOrigin:z,nodeExtent:C,zIndexMode:g});let G=[0,0,1];if(i&&x&&r){const U=E0(m,{filter:H=>!!((H[h(2272)]||H[h(1907)])&&(H.height||H[h(2193)]))}),{x:W,y:O,zoom:q}=Zo(U,x,r,u,d,c?.[h(1634)]??.1);G=[W,O,q]}return{rfId:"1",width:x??0,height:r??0,transform:G,nodes:w,nodesInitialized:P,nodeLookup:m,parentLookup:b,edges:y,edgeLookup:M,connectionLookup:v,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:t!==void 0,hasDefaultEdges:o!==void 0,panZoom:null,minZoom:u,maxZoom:d,translateExtent:P0,nodeExtent:C,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Jt.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:z,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:i??!1,fitViewOptions:c,fitViewResolver:null,connection:{...mc},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Nc,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:h(1512),debug:!1,ariaLabelConfig:yc,zIndexMode:g,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},kh=({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:i,fitViewOptions:c,minZoom:u,maxZoom:d,nodeOrigin:s,nodeExtent:f,zIndexMode:g})=>J2((h,m)=>{async function b(){const{nodeLookup:v,panZoom:M,fitViewOptions:y,fitViewResolver:w,width:z,height:C,minZoom:P,maxZoom:G}=m();M&&(await W5({nodes:v,width:z,height:C,panZoom:M,minZoom:P,maxZoom:G},y),w?.resolve(!0),h({fitViewResolver:null}))}return{...gs({nodes:e,edges:n,width:x,height:r,fitView:i,fitViewOptions:c,minZoom:u,maxZoom:d,nodeOrigin:s,nodeExtent:f,defaultNodes:t,defaultEdges:o,zIndexMode:g}),setNodes:v=>{const{nodeLookup:M,parentLookup:y,nodeOrigin:w,elevateNodesOnSelect:z,fitViewQueued:C,zIndexMode:P,nodesSelectionActive:G}=m(),{nodesInitialized:U,hasSelectedNodes:W}=er(v,M,y,{nodeOrigin:w,nodeExtent:f,elevateNodesOnSelect:z,checkEquality:!0,zIndexMode:P}),O=G&&W;C&&U?(b(),h({nodes:v,nodesInitialized:U,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:O})):h({nodes:v,nodesInitialized:U,nodesSelectionActive:O})},setEdges:v=>{const{connectionLookup:M,edgeLookup:y}=m();_c(M,y,v),h({edges:v})},setDefaultNodesAndEdges:(v,M)=>{if(v){const{setNodes:y}=m();y(v),h({hasDefaultNodes:!0})}if(M){const{setEdges:y}=m();y(M),h({hasDefaultEdges:!0})}},updateNodeInternals:v=>{const M=_0x3847,{triggerNodeChanges:y,nodeLookup:w,parentLookup:z,domNode:C,nodeOrigin:P,nodeExtent:G,debug:U,fitViewQueued:W,zIndexMode:O}=m(),{changes:q,updatedInternals:H}=u2(v,w,z,C,P,G,O);H&&(a2(w,z,{nodeOrigin:P,nodeExtent:G,zIndexMode:O}),W?(b(),h({fitViewQueued:!1,fitViewOptions:void 0})):h({}),q?.length>0&&(U&&console[M(435)]("React Flow: trigger node changes",q),y?.(q)))},updateNodePositions:(v,M=!1)=>{const y=_0x3847,w=[];let z=[];const{nodeLookup:C,triggerNodeChanges:P,connection:G,updateConnection:U,onNodesChangeMiddlewareMap:W}=m();for(const[O,q]of v){const H=C[y(2250)](O),Y=!!(H?.expandParent&&H?.[y(879)]&&q?.position),V={id:O,type:y(1711),position:Y?{x:Math[y(1425)](0,q[y(1711)].x),y:Math[y(1425)](0,q[y(1711)].y)}:q[y(1711)],dragging:M};if(H&&G[y(857)]&&G[y(1417)].id===H.id){const N=Lt(H,G[y(1742)],Se.Left,!0);U({...G,from:N})}Y&&H[y(879)]&&w.push({id:O,parentId:H[y(879)],rect:{...q[y(1914)][y(1951)],width:q[y(1977)][y(2272)]??0,height:q[y(1977)][y(863)]??0}}),z.push(V)}if(w.length>0){const{parentLookup:O,nodeOrigin:q}=m(),H=tr(w,C,O,q);z[y(1371)](...H)}for(const O of W[y(1129)]())z=O(z);P(z)},triggerNodeChanges:v=>{const M=_0x3847,{onNodesChange:y,setNodes:w,nodes:z,hasDefaultNodes:C,debug:P}=m();if(v?.[M(2073)]){if(C){const G=ka(v,z);w(G)}P&&console[M(435)](M(725),v),y?.(v)}},triggerEdgeChanges:v=>{const M=_0x3847,{onEdgesChange:y,setEdges:w,edges:z,hasDefaultEdges:C,debug:P}=m();if(v?.length){if(C){const G=Ia(v,z);w(G)}P&&console[M(435)](M(1184),v),y?.(v)}},addSelectedNodes:v=>{const M=_0x3847,{multiSelectionActive:y,edgeLookup:w,nodeLookup:z,triggerNodeChanges:C,triggerEdgeChanges:P}=m();if(y){const G=v[M(1913)](U=>Nt(U,!0));C(G);return}C(t0(z,new Set([...v]),!0)),P(t0(w))},addSelectedEdges:v=>{const M=_0x3847,{multiSelectionActive:y,edgeLookup:w,nodeLookup:z,triggerNodeChanges:C,triggerEdgeChanges:P}=m();if(y){const G=v[M(1913)](U=>Nt(U,!0));P(G);return}P(t0(w,new Set([...v]))),C(t0(z,new Set,!0))},unselectNodesAndEdges:({nodes:v,edges:M}={})=>{const y=_0x3847,{edges:w,nodes:z,nodeLookup:C,triggerNodeChanges:P,triggerEdgeChanges:G}=m(),U=v||z,W=M||w,O=[];for(const H of U){if(!H[y(1700)])continue;const Y=C.get(H.id);Y&&(Y.selected=!1),O[y(1371)](Nt(H.id,!1))}const q=[];for(const H of W)H[y(1700)]&&q.push(Nt(H.id,!1));P(O),G(q)},setMinZoom:v=>{const{panZoom:M,maxZoom:y}=m();M?.setScaleExtent([v,y]),h({minZoom:v})},setMaxZoom:v=>{const{panZoom:M,minZoom:y}=m();M?.setScaleExtent([y,v]),h({maxZoom:v})},setTranslateExtent:v=>{const M=_0x3847;m()[M(1739)]?.[M(2029)](v),h({translateExtent:v})},resetSelectedElements:()=>{const v=_0x3847,{edges:M,nodes:y,triggerNodeChanges:w,triggerEdgeChanges:z,elementsSelectable:C}=m();if(!C)return;const P=y[v(2110)]((U,W)=>W[v(1700)]?[...U,Nt(W.id,!1)]:U,[]),G=M[v(2110)]((U,W)=>W.selected?[...U,Nt(W.id,!1)]:U,[]);w(P),z(G)},setNodeExtent:v=>{const{nodes:M,nodeLookup:y,parentLookup:w,nodeOrigin:z,elevateNodesOnSelect:C,nodeExtent:P,zIndexMode:G}=m();v[0][0]===P[0][0]&&v[0][1]===P[0][1]&&v[1][0]===P[1][0]&&v[1][1]===P[1][1]||(er(M,y,w,{nodeOrigin:z,nodeExtent:v,elevateNodesOnSelect:C,checkEquality:!1,zIndexMode:G}),h({nodeExtent:v}))},panBy:v=>{const{transform:M,width:y,height:w,panZoom:z,translateExtent:C}=m();return f2({delta:v,panZoom:z,transform:M,translateExtent:C,width:y,height:w})},setCenter:async(v,M,y)=>{const w=_0x3847,{width:z,height:C,maxZoom:P,panZoom:G}=m();if(!G)return Promise[w(1284)](!1);const U=typeof y?.[w(2184)]<"u"?y.zoom:P;return await G[w(1141)]({x:z/2-v*U,y:C/2-M*U,zoom:U},{duration:y?.duration,ease:y?.ease,interpolate:y?.[w(1083)]}),Promise[w(1284)](!0)},cancelConnection:()=>{h({connection:{...mc}})},updateConnection:v=>{h({connection:v})},reset:()=>h({...gs()})}},Object.is);function Ih({initialNodes:e,initialEdges:n,defaultNodes:t,defaultEdges:o,initialWidth:x,initialHeight:r,initialMinZoom:i,initialMaxZoom:c,initialFitViewOptions:u,fitView:d,nodeOrigin:s,nodeExtent:f,zIndexMode:g,children:h}){const m=a,[b]=D.useState(()=>kh({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:d,minZoom:i,maxZoom:c,fitViewOptions:u,nodeOrigin:s,nodeExtent:f,zIndexMode:g}));return l[m(641)](_2,{value:b,children:l[m(641)](mb,{children:h})})}function Ph({children:e,nodes:n,edges:t,defaultNodes:o,defaultEdges:x,width:r,height:i,fitView:c,fitViewOptions:u,minZoom:d,maxZoom:s,nodeOrigin:f,nodeExtent:g,zIndexMode:h}){const m=a;return D[m(1483)](Tx)?l[m(641)](l[m(1365)],{children:e}):l[m(641)](Ih,{initialNodes:n,initialEdges:t,defaultNodes:o,defaultEdges:x,initialWidth:r,initialHeight:i,fitView:c,initialFitViewOptions:u,initialMinZoom:d,initialMaxZoom:s,nodeOrigin:f,nodeExtent:g,zIndexMode:h,children:e})}const jh={width:a(732),height:a(732),overflow:"hidden",position:a(2033),zIndex:0};function Ah({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,className:x,nodeTypes:r,edgeTypes:i,onNodeClick:c,onEdgeClick:u,onInit:d,onMove:s,onMoveStart:f,onMoveEnd:g,onConnect:h,onConnectStart:m,onConnectEnd:b,onClickConnectStart:v,onClickConnectEnd:M,onNodeMouseEnter:y,onNodeMouseMove:w,onNodeMouseLeave:z,onNodeContextMenu:C,onNodeDoubleClick:P,onNodeDragStart:G,onNodeDrag:U,onNodeDragStop:W,onNodesDelete:O,onEdgesDelete:q,onDelete:H,onSelectionChange:Y,onSelectionDragStart:V,onSelectionDrag:N,onSelectionDragStop:B,onSelectionContextMenu:L,onSelectionStart:E,onSelectionEnd:j,onBeforeDelete:I,connectionMode:J,connectionLineType:ee=ct[a(1692)],connectionLineStyle:_,connectionLineComponent:$,connectionLineContainerStyle:re,deleteKeyCode:ue=a(793),selectionKeyCode:we="Shift",selectionOnDrag:ze=!1,selectionMode:de=j0[a(981)],panActivationKeyCode:F=a(1304),multiSelectionKeyCode:fe=G0()?a(545):a(1868),zoomActivationKeyCode:ye=G0()?a(545):"Control",snapToGrid:A,snapGrid:X,onlyRenderVisibleElements:ce=!1,selectNodesOnDrag:ae,nodesDraggable:De,autoPanOnNodeFocus:Me,nodesConnectable:je,nodesFocusable:Te,nodeOrigin:Pe=za,edgesFocusable:gn,edgesReconnectable:Ne,elementsSelectable:_e=!0,defaultViewport:te=sb,minZoom:pe=.5,maxZoom:Ce=2,translateExtent:me=P0,preventScrolling:ne=!0,nodeExtent:ke,defaultMarkerColor:Ve=a(692),zoomOnScroll:Oe=!0,zoomOnPinch:qe=!0,panOnScroll:Xe=!1,panOnScrollSpeed:Ke=.5,panOnScrollMode:Ue=Bt[a(1919)],zoomOnDoubleClick:Ge=!0,panOnDrag:cn=!0,onPaneClick:Qe,onPaneMouseEnter:en,onPaneMouseMove:nn,onPaneMouseLeave:on,onPaneScroll:Kn,onPaneContextMenu:Gn,paneClickDistance:Sn=1,nodeClickDistance:un=0,children:pn,onReconnect:ln,onReconnectStart:Ln,onReconnectEnd:kn,onEdgeContextMenu:ut,onEdgeDoubleClick:$n,onEdgeMouseEnter:zn,onEdgeMouseMove:o0,onEdgeMouseLeave:et,reconnectRadius:St=10,onNodesChange:ft,onEdgesChange:kt,noDragClassName:V0=a(1567),noWheelClassName:_x=a(811),noPanClassName:r0=a(1737),fitView:q0,fitViewOptions:W0,connectOnClick:Qx,attributionPosition:Fx,proOptions:$x,defaultEdgeOptions:eo,elevateNodesOnSelect:no=!0,elevateEdgesOnSelect:X0=!1,disableKeyboardA11y:bt=!1,autoPanOnConnect:It,autoPanOnNodeDrag:yr,autoPanSpeed:nt,connectionRadius:to,isValidConnection:xo,onError:K0,style:mr,id:i0,nodeDragThreshold:wr,connectionDragThreshold:vr,viewport:pr,onViewportChange:oo,width:ro,height:Z0,colorMode:io=a(1833),debug:R0,onScroll:k,ariaLabelConfig:S,zIndexMode:Z="basic",...R},Q){const T=a,K=i0||"1",se=fb(io),oe=D[T(2173)](xe=>{const le=T;xe[le(896)][le(1998)]({top:0,left:0,behavior:le(1168)}),k?.(xe)},[k]);return l[T(641)]("div",{"data-testid":T(1843),...R,onScroll:oe,style:{...mr,...jh},ref:Q,className:rn(["react-flow",x,se]),id:i0,role:T(1329),children:l[T(873)](Ph,{nodes:e,edges:n,width:ro,height:Z0,fitView:q0,fitViewOptions:W0,minZoom:pe,maxZoom:Ce,nodeOrigin:Pe,nodeExtent:ke,zIndexMode:Z,children:[l[T(641)](ub,{nodes:e,edges:n,defaultNodes:t,defaultEdges:o,onConnect:h,onConnectStart:m,onConnectEnd:b,onClickConnectStart:v,onClickConnectEnd:M,nodesDraggable:De,autoPanOnNodeFocus:Me,nodesConnectable:je,nodesFocusable:Te,edgesFocusable:gn,edgesReconnectable:Ne,elementsSelectable:_e,elevateNodesOnSelect:no,elevateEdgesOnSelect:X0,minZoom:pe,maxZoom:Ce,nodeExtent:ke,onNodesChange:ft,onEdgesChange:kt,snapToGrid:A,snapGrid:X,connectionMode:J,translateExtent:me,connectOnClick:Qx,defaultEdgeOptions:eo,fitView:q0,fitViewOptions:W0,onNodesDelete:O,onEdgesDelete:q,onDelete:H,onNodeDragStart:G,onNodeDrag:U,onNodeDragStop:W,onSelectionDrag:N,onSelectionDragStart:V,onSelectionDragStop:B,onMove:s,onMoveStart:f,onMoveEnd:g,noPanClassName:r0,nodeOrigin:Pe,rfId:K,autoPanOnConnect:It,autoPanOnNodeDrag:yr,autoPanSpeed:nt,onError:K0,connectionRadius:to,isValidConnection:xo,selectNodesOnDrag:ae,nodeDragThreshold:wr,connectionDragThreshold:vr,onBeforeDelete:I,debug:R0,ariaLabelConfig:S,zIndexMode:Z}),l.jsx(Sh,{onInit:d,onNodeClick:c,onEdgeClick:u,onNodeMouseEnter:y,onNodeMouseMove:w,onNodeMouseLeave:z,onNodeContextMenu:C,onNodeDoubleClick:P,nodeTypes:r,edgeTypes:i,connectionLineType:ee,connectionLineStyle:_,connectionLineComponent:$,connectionLineContainerStyle:re,selectionKeyCode:we,selectionOnDrag:ze,selectionMode:de,deleteKeyCode:ue,multiSelectionKeyCode:fe,panActivationKeyCode:F,zoomActivationKeyCode:ye,onlyRenderVisibleElements:ce,defaultViewport:te,translateExtent:me,minZoom:pe,maxZoom:Ce,preventScrolling:ne,zoomOnScroll:Oe,zoomOnPinch:qe,zoomOnDoubleClick:Ge,panOnScroll:Xe,panOnScrollSpeed:Ke,panOnScrollMode:Ue,panOnDrag:cn,onPaneClick:Qe,onPaneMouseEnter:en,onPaneMouseMove:nn,onPaneMouseLeave:on,onPaneScroll:Kn,onPaneContextMenu:Gn,paneClickDistance:Sn,nodeClickDistance:un,onSelectionContextMenu:L,onSelectionStart:E,onSelectionEnd:j,onReconnect:ln,onReconnectStart:Ln,onReconnectEnd:kn,onEdgeContextMenu:ut,onEdgeDoubleClick:$n,onEdgeMouseEnter:zn,onEdgeMouseMove:o0,onEdgeMouseLeave:et,reconnectRadius:St,defaultMarkerColor:Ve,noDragClassName:V0,noWheelClassName:_x,noPanClassName:r0,rfId:K,disableKeyboardA11y:bt,nodeExtent:ke,viewport:pr,onViewportChange:oo}),l[T(641)](ab,{onSelectionChange:Y}),pn,l[T(641)](xb,{proOptions:$x,position:Fx}),l[T(641)](tb,{rfId:K,disableKeyboardA11y:bt})]})})}var Eh=Ea(Ah);function Yh(e){const n=a,[t,o]=D[n(1115)](e),x=D.useCallback(r=>o(i=>ka(r,i)),[]);return[t,o,x]}function Uh(e){const n=a,[t,o]=D[n(1115)](e),x=D.useCallback(r=>o(i=>Ia(r,i)),[]);return[t,o,x]}function Oh({dimensions:e,lineWidth:n,variant:t,className:o}){const x=a;return l[x(641)]("path",{strokeWidth:n,d:"M"+e[0]/2+x(1738)+e[1]+x(1573)+e[1]/2+" H"+e[0],className:rn(["react-flow__background-pattern",t,o])})}function Gh({radius:e,className:n}){const t=a;return l[t(641)](t(2066),{cx:e,cy:e,r:e,className:rn([t(1424),t(2199),n])})}var lt;(function(e){const n=a;e[n(1108)]=n(904),e.Dots=n(2199),e[n(2116)]=n(1161)})(lt||(lt={}));const Hh={[lt[a(470)]]:1,[lt[a(1108)]]:1,[lt.Cross]:6},Th=e=>({transform:e.transform,patternId:"pattern-"+e[a(1095)]});function ys({id:e,variant:n=lt[a(470)],gap:t=20,size:o,lineWidth:x=1,offset:r=0,color:i,bgColor:c,style:u,className:d,patternClassName:s}){const f=a,g=D[f(1899)](null),{transform:h,patternId:m}=Ye(Th,Re),b=o||Hh[n],v=n===lt.Dots,M=n===lt[f(2116)],y=Array.isArray(t)?t:[t,t],w=[y[0]*h[2]||1,y[1]*h[2]||1],z=b*h[2],C=Array[f(612)](r)?r:[r,r],P=M?[z,z]:w,G=[C[0]*h[2]||1+P[0]/2,C[1]*h[2]||1+P[1]/2],U=""+m+(e||"");return l[f(873)]("svg",{className:rn([f(2005),d]),style:{...u,...Wx,"--xy-background-color-props":c,"--xy-background-pattern-color-props":i},ref:g,"data-testid":f(2175),children:[l[f(641)](f(1427),{id:U,x:h[0]%w[0],y:h[1]%w[1],width:w[0],height:w[1],patternUnits:f(2192),patternTransform:f(1813)+G[0]+",-"+G[1]+")",children:v?l.jsx(Gh,{radius:z/2,className:s}):l.jsx(Oh,{dimensions:P,lineWidth:x,variant:n,className:s})}),l[f(641)](f(730),{x:"0",y:"0",width:f(732),height:f(732),fill:"url(#"+U+")"})]})}ys[a(852)]=a(804);const Vh=D.memo(ys);function qh(){const e=a;return l[e(641)]("svg",{xmlns:e(661),viewBox:e(1222),children:l.jsx(e(467),{d:e(989)})})}function Wh(){const e=a;return l[e(641)](e(962),{xmlns:e(661),viewBox:e(1353),children:l.jsx(e(467),{d:"M0 0h32v4.2H0z"})})}function Xh(){const e=a;return l[e(641)](e(962),{xmlns:e(661),viewBox:"0 0 32 30",children:l[e(641)](e(467),{d:e(1885)})})}function Kh(){const e=a;return l[e(641)](e(962),{xmlns:e(661),viewBox:"0 0 25 32",children:l.jsx(e(467),{d:e(1511)})})}function Zh(){const e=a;return l[e(641)](e(962),{xmlns:e(661),viewBox:e(1685),children:l[e(641)](e(467),{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function Zx({children:e,className:n,...t}){const o=a;return l[o(641)]("button",{type:"button",className:rn([o(1947),n]),...t,children:e})}const Rh=e=>({isInteractive:e.nodesDraggable||e[a(901)]||e[a(567)],minZoomReached:e[a(1274)][2]<=e[a(1217)],maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e[a(1167)]});function ms({style:e,showZoom:n=!0,showFitView:t=!0,showInteractive:o=!0,fitViewOptions:x,onZoomIn:r,onZoomOut:i,onFitView:c,onInteractiveChange:u,className:d,children:s,position:f="bottom-left",orientation:g="vertical","aria-label":h}){const m=a,b=Je(),{isInteractive:v,minZoomReached:M,maxZoomReached:y,ariaLabelConfig:w}=Ye(Rh,Re),{zoomIn:z,zoomOut:C,fitView:P}=ur(),G=()=>{z(),r?.()},U=()=>{C(),i?.()},W=()=>{P(x),c?.()},O=()=>{b[_0x3847(1260)]({nodesDraggable:!v,nodesConnectable:!v,elementsSelectable:!v}),u?.(!v)},q=g==="horizontal"?"horizontal":m(1703);return l.jsxs(Vx,{className:rn(["react-flow__controls",q,d]),position:f,style:e,"data-testid":m(1116),"aria-label":h??w[m(697)],children:[n&&l.jsxs(l[m(1365)],{children:[l[m(641)](Zx,{onClick:G,className:"react-flow__controls-zoomin",title:w["controls.zoomIn.ariaLabel"],"aria-label":w[m(1294)],disabled:y,children:l[m(641)](qh,{})}),l.jsx(Zx,{onClick:U,className:"react-flow__controls-zoomout",title:w[m(785)],"aria-label":w[m(785)],disabled:M,children:l.jsx(Wh,{})})]}),t&&l[m(641)](Zx,{className:m(1375),onClick:W,title:w["controls.fitView.ariaLabel"],"aria-label":w[m(789)],children:l[m(641)](Xh,{})}),o&&l.jsx(Zx,{className:m(618),onClick:O,title:w[m(2282)],"aria-label":w[m(2282)],children:v?l[m(641)](Zh,{}):l[m(641)](Kh,{})}),s]})}ms.displayName=a(908);const Jh=D[a(767)](ms);function _h({id:e,x:n,y:t,width:o,height:x,style:r,color:i,strokeColor:c,strokeWidth:u,className:d,borderRadius:s,shapeRendering:f,selected:g,onClick:h}){const m=a,{background:b,backgroundColor:v}=r||{},M=i||b||v;return l.jsx(m(730),{className:rn([m(984),{selected:g},d]),x:n,y:t,rx:s,ry:s,width:o,height:x,style:{fill:M,stroke:c,strokeWidth:u},shapeRendering:f,onClick:h?y=>h(y,e):void 0})}const Qh=D[a(767)](_h),Fh=e=>e[a(1687)][a(1913)](n=>n.id),gr=e=>e instanceof Function?e:()=>e;function $h({nodeStrokeColor:e,nodeColor:n,nodeClassName:t="",nodeBorderRadius:o=5,nodeStrokeWidth:x,nodeComponent:r=Qh,onClick:i}){const c=a,u=Ye(Fh,Re),d=gr(n),s=gr(e),f=gr(t),g=typeof window===c(1624)||window[c(1309)]?c(951):c(910);return l.jsx(l[c(1365)],{children:u[c(1913)](h=>l[c(641)](ng,{id:h,nodeColorFunc:d,nodeStrokeColorFunc:s,nodeClassNameFunc:f,nodeBorderRadius:o,nodeStrokeWidth:x,NodeComponent:r,onClick:i,shapeRendering:g},h))})}function eg({id:e,nodeColorFunc:n,nodeStrokeColorFunc:t,nodeClassNameFunc:o,nodeBorderRadius:x,nodeStrokeWidth:r,shapeRendering:i,NodeComponent:c,onClick:u}){const d=a,{node:s,x:f,y:g,width:h,height:m}=Ye(b=>{const v=_0x3847,M=b.nodeLookup[v(2250)](e);if(!M)return{node:void 0,x:0,y:0,width:0,height:0};const y=M.internals[v(1382)],{x:w,y:z}=M.internals[v(1951)],{width:C,height:P}=Fn(y);return{node:y,x:w,y:z,width:C,height:P}},Re);return!s||s[d(2141)]||!Sc(s)?null:l[d(641)](c,{x:f,y:g,width:h,height:m,style:s.style,selected:!!s[d(1700)],className:o(s),color:n(s),borderRadius:x,strokeColor:t(s),strokeWidth:r,shapeRendering:i,onClick:u,id:s.id})}const ng=D[a(767)](eg);var tg=D[a(767)]($h);const xg=200,og=150,rg=e=>!e[a(2141)],ig=e=>{const n=a,t={x:-e[n(1274)][0]/e[n(1274)][2],y:-e.transform[1]/e.transform[2],width:e[n(2272)]/e[n(1274)][2],height:e[n(863)]/e[n(1274)][2]};return{viewBB:t,boundingRect:e[n(1132)][n(1301)]>0?Dc(E0(e.nodeLookup,{filter:rg}),t):t,rfId:e[n(1095)],panZoom:e[n(1739)],translateExtent:e[n(2206)],flowWidth:e[n(2272)],flowHeight:e[n(863)],ariaLabelConfig:e[n(1167)]}},cg=a(2119);function ws({style:e,className:n,nodeStrokeColor:t,nodeColor:o,nodeClassName:x="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:c,bgColor:u,maskColor:d,maskStrokeColor:s,maskStrokeWidth:f,position:g=a(1326),onClick:h,onNodeClick:m,pannable:b=!1,zoomable:v=!1,ariaLabel:M,inversePan:y,zoomStep:w=1,offsetScale:z=5}){const C=a,P=Je(),G=D[C(1899)](null),{boundingRect:U,viewBB:W,rfId:O,panZoom:q,translateExtent:H,flowWidth:Y,flowHeight:V,ariaLabelConfig:N}=Ye(ig,Re),B=e?.width??xg,L=e?.[C(863)]??og,E=U[C(2272)]/B,j=U.height/L,I=Math.max(E,j),J=I*B,ee=I*L,_=z*I,$=U.x-(J-U[C(2272)])/2-_,re=U.y-(ee-U.height)/2-_,ue=J+_*2,we=ee+_*2,ze=cg+"-"+O,de=D[C(1899)](0),F=D[C(1899)]();de.current=I,D.useEffect(()=>{const X=C;if(G[X(1205)]&&q)return F[X(1205)]=z2({domNode:G.current,panZoom:q,getTransform:()=>P.getState()[X(1274)],getViewScale:()=>de[X(1205)]}),()=>{const ce=X;F.current?.[ce(1991)]()}},[q]),D[C(2224)](()=>{F[C(1205)]?.update({translateExtent:H,width:Y,height:V,inversePan:y,pannable:b,zoomStep:w,zoomable:v})},[b,v,y,w,H,Y,V]);const fe=h?X=>{const ce=C,[ae,De]=F[ce(1205)]?.pointer(X)||[0,0];h(X,{x:ae,y:De})}:void 0,ye=m?D.useCallback((X,ce)=>{const ae=C,De=P[ae(488)]().nodeLookup.get(ce)[ae(1914)][ae(1382)];m(X,De)},[]):void 0,A=M??N[C(1849)];return l[C(641)](Vx,{position:g,style:{...e,"--xy-minimap-background-color-props":typeof u===C(955)?u:void 0,"--xy-minimap-mask-background-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-color-props":typeof s===C(955)?s:void 0,"--xy-minimap-mask-stroke-width-props":typeof f===C(1421)?f*I:void 0,"--xy-minimap-node-background-color-props":typeof o===C(955)?o:void 0,"--xy-minimap-node-stroke-color-props":typeof t===C(955)?t:void 0,"--xy-minimap-node-stroke-width-props":typeof i===C(1421)?i:void 0},className:rn(["react-flow__minimap",n]),"data-testid":C(836),children:l[C(873)](C(962),{width:B,height:L,viewBox:$+" "+re+" "+ue+" "+we,className:C(2165),role:"img","aria-labelledby":ze,ref:G,onClick:fe,children:[A&&l[C(641)](C(629),{id:ze,children:A}),l[C(641)](tg,{onClick:ye,nodeColor:o,nodeStrokeColor:t,nodeBorderRadius:r,nodeClassName:x,nodeStrokeWidth:i,nodeComponent:c}),l.jsx(C(467),{className:C(828),d:"M"+($-_)+","+(re-_)+"h"+(ue+_*2)+"v"+(we+_*2)+"h"+(-ue-_*2)+`z
|
|
10
|
-
M`+W.x+","+W.y+"h"+W[C(2272)]+"v"+W[C(863)]+"h"+-W.width+"z",fillRule:"evenodd",pointerEvents:"none"})]})})}ws[a(852)]=a(1432);const ag=D[a(767)](ws),sg=e=>n=>e?""+Math[a(1425)](1/n[a(1274)][2],1):void 0,lg={[n0.Line]:a(691),[n0.Handle]:"bottom-right"};function dg({nodeId:e,position:n,variant:t=n0.Handle,className:o,style:x=void 0,children:r,color:i,minWidth:c=10,minHeight:u=10,maxWidth:d=Number[a(643)],maxHeight:s=Number[a(643)],keepAspectRatio:f=!1,resizeDirection:g,autoScale:h=!0,shouldResize:m,onResizeStart:b,onResize:v,onResizeEnd:M}){const y=a,w=Ta(),z=typeof e===y(955)?e:w,C=Je(),P=D[y(1899)](null),G=t===n0.Handle,U=Ye(D[y(2173)](sg(G&&h),[G,h]),Re),W=D[y(1899)](null),O=n??lg[t];D[y(2224)](()=>{const H=y;if(!(!P[H(1205)]||!z))return!W[H(1205)]&&(W[H(1205)]=Y2({domNode:P[H(1205)],nodeId:z,getStoreItems:()=>{const Y=H,{nodeLookup:V,transform:N,snapGrid:B,snapToGrid:L,nodeOrigin:E,domNode:j}=C[Y(488)]();return{nodeLookup:V,transform:N,snapGrid:B,snapToGrid:L,nodeOrigin:E,paneDomNode:j}},onChange:(Y,V)=>{const N=H,{triggerNodeChanges:B,nodeLookup:L,parentLookup:E,nodeOrigin:j}=C[N(488)](),I=[],J={x:Y.x,y:Y.y},ee=L.get(z);if(ee&&ee[N(2118)]&&ee[N(879)]){const _=ee.origin??j,$=Y[N(2272)]??ee[N(1977)][N(2272)]??0,re=Y[N(863)]??ee[N(1977)][N(863)]??0,ue={id:ee.id,parentId:ee[N(879)],rect:{width:$,height:re,...kc({x:Y.x??ee[N(1711)].x,y:Y.y??ee.position.y},{width:$,height:re},ee.parentId,L,_)}},we=tr([ue],L,E,j);I[N(1371)](...we),J.x=Y.x?Math[N(1425)](_[0]*$,Y.x):void 0,J.y=Y.y?Math[N(1425)](_[1]*re,Y.y):void 0}if(J.x!==void 0&&J.y!==void 0){const _={id:z,type:N(1711),position:{...J}};I.push(_)}if(Y.width!==void 0&&Y[N(863)]!==void 0){const _=g?g===N(1723)?"width":N(863):!0,$={id:z,type:N(1698),resizing:!0,setAttributes:_,dimensions:{width:Y[N(2272)],height:Y[N(863)]}};I[N(1371)]($)}for(const _ of V){const $={..._,type:N(1711)};I.push($)}B(I)},onEnd:({width:Y,height:V})=>{const N=H,B={id:z,type:"dimensions",resizing:!1,dimensions:{width:Y,height:V}};C[N(488)]()[N(1658)]([B])}})),W.current[H(2058)]({controlPosition:O,boundaries:{minWidth:c,minHeight:u,maxWidth:d,maxHeight:s},keepAspectRatio:f,resizeDirection:g,onResizeStart:b,onResize:v,onResizeEnd:M,shouldResize:m}),()=>{const Y=H;W[Y(1205)]?.[Y(1991)]()}},[O,c,u,d,s,f,b,v,M,m]);const q=O[y(1999)]("-");return l[y(641)]("div",{className:rn(["react-flow__resize-control",y(1567),...q,t,o]),ref:P,style:{...x,scale:U,...i&&{[G?"backgroundColor":y(1114)]:i}},children:r})}D[a(767)](dg);const vs=e=>Symbol[a(875)]in e,ps=e=>"entries"in e,zs=(e,n)=>{const t=a,o=e instanceof Map?e:new Map(e[t(2057)]()),x=n instanceof Map?n:new Map(n[t(2057)]());if(o[t(1301)]!==x[t(1301)])return!1;for(const[r,i]of o)if(!x[t(2012)](r)||!Object.is(i,x[t(2250)](r)))return!1;return!0},ug=(e,n)=>{const t=a,o=e[Symbol[t(875)]](),x=n[Symbol[t(875)]]();let r=o[t(1357)](),i=x[t(1357)]();for(;!r[t(1001)]&&!i.done;){if(!Object.is(r[t(845)],i[t(845)]))return!1;r=o[t(1357)](),i=x[t(1357)]()}return!!r.done&&!!i.done};function fg(e,n){const t=a;return Object.is(e,n)?!0:typeof e!==t(1130)||e===null||typeof n!==t(1130)||n===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(n)?!1:vs(e)&&vs(n)?ps(e)&&ps(n)?zs(e,n):ug(e,n):zs({entries:()=>Object.entries(e)},{entries:()=>Object[t(2057)](n)})}const Cs={inlineScript:a(1878),dataRequest:a(1527),external:a(1487),builtin:"内置动作"},bg=[{label:"Message 全局提示 (antd)",value:"antdMessage"},{label:a(1633),value:"switchCanvas"}],hg=[{label:"info",value:a(1564)},{label:a(1955),value:a(1955)},{label:a(1015),value:a(1015)},{label:a(1316),value:"error"},{label:a(439),value:a(439)}];function Ms(e,n,t){const o=a,x=t.filter(i=>i[o(966)]===e),r=x.length;return x[o(1913)]((i,c)=>{const u=o,d=n[u(1099)](f=>f.id===i[u(1364)]),s=d?.[u(1100)];return{sourceId:i[u(1364)],sourceLabel:s?.[u(2172)]??i.source,edgeIndex:c,totalIncoming:r}})}const gg=({data:e,id:n})=>{const t=a,{root:o}=sn(),x=Ye(D[t(2173)](c=>Ms(n,c.nodes,c[t(710)])[t(1913)](({sourceId:u,sourceLabel:d})=>({sourceId:u,label:d})),[n]),fg),r=e.eventBlock[t(842)]??t(1785),i=r===t(1549)?e[t(1774)][t(1649)]:r==="external"?e.eventBlock[t(1183)]:r===t(1111)?e[t(1774)][t(476)]===t(1224)?e[t(1774)][t(476)]+": "+String(e[t(1774)].builtinConfig?.content??"")[t(1243)](0,24):e.eventBlock[t(476)]==="switchCanvas"?"跳转: "+(o.canvases[t(1099)](c=>c.id===e[t(1774)][t(1276)]?.[t(1298)])?.[t(1877)]??t(1048)):e[t(1774)][t(476)]:null;return l[t(873)](t(2048),{className:"bg-white border-2 border-blue-500 rounded-lg p-3 min-w-[180px] shadow-md",children:[l.jsx(x0,{type:t(966),position:Se[t(1247)],className:t(1892)}),l[t(873)](t(2048),{className:t(1420),children:[l[t(641)](t(909),{className:t(1575),children:e[t(2172)]}),l[t(873)](p[t(1304)],{size:t(2055),children:[l.jsx(p.Button,{type:t(1815),size:t(2055),icon:l[t(641)](be.EditOutlined,{}),onClick:()=>e[t(914)](n)}),l[t(641)](p[t(653)],{type:t(1815),size:t(2055),danger:!0,icon:l[t(641)](be.DeleteOutlined,{}),onClick:()=>e[t(1077)](n)})]})]}),l[t(641)](t(2048),{className:t(1578),children:l[t(873)](p[t(1006)],{color:r===t(1785)?"default":r===t(1111)?t(948):t(1418),className:t(1059),children:[Cs[r],i?t(1889)+i:""]})}),l[t(873)](t(2048),{className:t(902),children:[e[t(1774)][t(1767)]?.[t(2073)]>0&&l[t(873)]("div",{children:[t(704),e[t(1774)][t(1767)][t(1913)](c=>c[t(1877)])[t(2219)](", ")]}),x[t(2073)]>0&&l[t(873)](t(2048),{className:t(1312),children:["上游连线:",x[t(1913)](c=>l[t(873)]("div",{className:t(1585),children:["←「",c.label,t(1840)]},c.sourceId))]})]}),l[t(641)](x0,{type:"source",position:Se[t(1540)],className:t(1892)})]})},yg={eventBlock:gg},mg=Object.entries(Cs)[a(1913)](([e,n])=>({label:n,value:e})),Bs=[{label:"点击",value:a(2258)},{label:a(598),value:a(2182)},{label:a(670),value:a(891)},{label:"双击",value:a(1905)},{label:a(1150),value:"mouseOver"},{label:a(555),value:a(940)},{label:a(1824),value:a(1196)},{label:a(1058),value:a(1982)},{label:a(1784),value:"dataRequest"},{label:"外部事件",value:a(2016)}];function wg(e,n){const t=a,o={},x=[...e];return x[t(1935)]((r,i)=>{const c=t,u=n[c(1767)][i]?.name??(x[c(2073)]===1?c(709):c(709)+i);o[u]=c(1269)+r[c(1364)]}),o}function vg(e,n,t){const o=a;return t[e]?.[o(1877)]??(n===1?o(709):"prev"+e)}const pg=[{label:a(955),value:a(955)},{label:"number",value:a(1421)},{label:a(835),value:a(835)},{label:a(1130),value:a(1130)},{label:"any",value:a(1413)}];function Ds(e){const n=a,t=Bs[n(1099)](x=>x[n(845)]===e.eventType),o=t?.label??e[n(2121)];if(e[n(2121)]==="external"){const x=(e[n(1798)]||"")[n(1215)]();return x?o+n(1889)+x:o}return o}const zg=({open:e,onClose:n,bindNodeId:t,editingRoot:o})=>{const x=a,{nodes:r,eventFlow:i,externalHandlerCatalog:c,addEventBlock:u,upsertEventBlock:d,removeEventBlock:s,addEventRoot:f,updateEventRoot:g,root:h}=sn(),[m,b,v]=Yh([]),[M,y,w]=Uh([]),z=D[x(1899)](m);z[x(1205)]=m;const[C,P]=D[x(1115)](()=>o??null),[G,U]=D.useState(!1),[W]=p[x(765)][x(2285)](),O=p.Form[x(2106)](x(2121),W),[q,H]=D[x(1115)](null),[Y,V]=D[x(1115)](!1),[N]=p[x(765)][x(2285)](),B=p[x(765)][x(2106)]("executorType",N),L=p.Form[x(2106)](x(476),N),E=p.Form[x(2106)](x(1767),N),j=D[x(1970)](()=>!Y||!q?[]:Ms(q.id,m,M),[Y,q,m,M]),I=D[x(1899)](()=>{}),J=D[x(1899)](()=>{});D[x(2224)](()=>{const A=x;if(Y&&q){const X=q[A(1276)]??{},{outputs:ce,...ae}=q;N[A(1888)]({...ae,executorType:q.executorType??"inlineScript",builtinId:q[A(476)],inputs:q.inputs??[],builtinConfig:{content:String(X[A(1118)]??""),level:String(X[A(1852)]??A(1564)),duration:X[A(600)]===void 0||X[A(600)]===null?void 0:Number(X[A(600)])}})}},[Y,q,N]);const ee=D[x(2173)](A=>{y(X=>Hc(A,X))},[y]),_=A=>{const X=x,ce={bindNodeId:A[X(1924)],eventType:A[X(2121)],externalEventKey:A[X(2121)]===X(2016)?(A[X(1798)]||"").trim():void 0,flowData:{nodes:[],edges:[]},enabled:!0},ae=f(ce);P({...ce,id:ae}),W.resetFields(),U(!1),p[X(1638)].success("事件流创建成功")},$=D.useCallback(A=>{const X=x;s(A),b(ce=>ce.filter(ae=>ae.id!==A)),y(ce=>ce.filter(ae=>ae[X(1364)]!==A&&ae[X(966)]!==A))},[s,b,y]),re=D[x(2173)](A=>{const X=x,ce=z[X(1205)][X(1099)](Me=>Me.id===A)?.data?.eventBlock,ae=i.eventBlocks[X(1099)](Me=>Me.id===A),De=ce??ae;De?(H({...De,id:A}),V(!0)):p.message.warning("找不到事件块")},[i[x(894)]]);I.current=re,J.current=$,D.useEffect(()=>{const A=x;if(e&&C){const X=C.flowData.nodes[A(1913)](ae=>({id:ae.id,type:A(1774),position:ae[A(1711)],data:{label:ae[A(1100)].label,eventBlock:ae[A(1100)][A(1774)],onEdit:De=>I[A(1205)](De),onDelete:De=>J[A(1205)](De)}})),ce=C[A(997)][A(710)][A(1913)](ae=>({id:ae.id,source:ae[A(1364)],target:ae[A(966)]}));b(X),y(ce)}},[e,C,b,y]);const ue=()=>{const A=x,X={name:"新事件块",executorType:A(1785),callback:A(2271),inputs:[],outputs:[]},ce=u(X),ae={...X,id:ce},De={id:ce,type:A(1774),position:{x:100+m[A(2073)]*50,y:100+m[A(2073)]*30},data:{label:ae[A(1877)],eventBlock:ae,onEdit:Me=>I[A(1205)](Me),onDelete:Me=>J.current(Me)}};b(Me=>[...Me,De])},we=()=>{const A=x,X={name:A(1771),executorType:A(1111),builtinId:A(1224),builtinConfig:{content:A(1456),level:A(1564)},callback:A(1380),inputs:[],outputs:[]},ce=u(X),ae={...X,id:ce},De={id:ce,type:A(1774),position:{x:120+m[A(2073)]*50,y:140+m[A(2073)]*30},data:{label:ae.name,eventBlock:ae,onEdit:Me=>I[A(1205)](Me),onDelete:Me=>J[A(1205)](Me)}};b(Me=>[...Me,De])},ze=()=>{const A=x,X={name:A(1633),executorType:A(1111),builtinId:"switchCanvas",builtinConfig:{targetCanvasId:h[A(1592)][0]?.id||""},callback:A(1380),inputs:[],outputs:[]},ce=u(X),ae={...X,id:ce},De={id:ce,type:A(1774),position:{x:120+m[A(2073)]*50,y:140+m[A(2073)]*30},data:{label:ae[A(1877)],eventBlock:ae,onEdit:Me=>I[A(1205)](Me),onDelete:Me=>J[A(1205)](Me)}};b(Me=>[...Me,De])},de=A=>{const X=x;if(!q)return;const ce=A[X(842)]??q[X(842)]??X(1785),ae={name:A[X(1877)],callback:A[X(1239)]??q[X(1239)],executorType:ce,dataRequestKey:ce===X(1549)?(A.dataRequestKey||"")[X(1215)]():void 0,externalHandlerKey:ce==="external"?(A[X(1183)]||"")[X(1215)]():void 0,builtinId:ce==="builtin"?A[X(476)]:void 0,builtinConfig:ce===X(1111)&&A[X(476)]===X(1224)?{content:String(A[X(1276)]?.[X(1118)]??"").trim(),level:A[X(1276)]?.[X(1852)]||X(1564),duration:A.builtinConfig?.[X(600)]===null||A.builtinConfig?.[X(600)]===void 0?void 0:Number(A.builtinConfig[X(600)])}:ce===X(1111)&&A[X(476)]==="switchCanvas"?{targetCanvasId:String(A[X(1276)]?.[X(1298)]??"")[X(1215)]()}:void 0},De=A.inputs??[],Me=De[X(526)](Te=>Te?.[X(1877)]&&String(Te[X(1877)])[X(1215)]()),je={...q,...ae,inputs:Me,outputs:[]};d(je),b(Te=>Te[X(1913)](Pe=>Pe.id===q.id?{...Pe,data:{...Pe[X(1100)],label:je[X(1877)]||Pe[X(1100)][X(2172)],eventBlock:je}}:Pe)),V(!1),H(null),p.message[X(1955)](X(776))},F=()=>{const A=x;if(!C)return;const X=m.map(ae=>{const De=_0x3847,Me=M[De(526)](Pe=>Pe.target===ae.id),je=ae[De(1100)][De(1774)],Te={...je,outputs:[]};return{id:ae.id,eventBlockId:ae.id,position:ae[De(1711)],inputs:Me[De(1913)](Pe=>Pe.source),outputs:M.filter(Pe=>Pe[De(1364)]===ae.id)[De(1913)](Pe=>Pe[De(966)]),data:{label:ae[De(1100)][De(2172)],eventBlock:Te,inputMapping:wg(Me,Te)}}}),ce=M[A(1913)](ae=>({id:ae.id,source:ae[A(1364)],target:ae[A(966)]}));g(C.id,{flowData:{nodes:X,edges:ce}}),qt[A(1176)]({...C,flowData:{nodes:X,edges:ce}}),p[A(1638)][A(1955)](A(1915)),n()},fe=D[x(1970)](()=>r.map(A=>({label:A[x(1877)],value:A.id})),[r]),ye=D[x(1970)](()=>t?i.eventRoots[x(526)](A=>A[x(1924)]===t):i[x(1522)],[i[x(1522)],t]);return e?l.jsxs(p[x(529)],{title:x(1882),open:e,onCancel:n,width:1200,footer:null,styles:{body:{height:700,padding:0}},children:[C?l[x(873)](x(2048),{className:x(625),style:{height:700},children:[l[x(873)](x(2048),{className:x(1241),children:[l.jsx(p.Space,{children:l[x(873)](x(909),{className:x(1082),children:["编辑: ",Ds(C)," →"," ",r[x(1099)](A=>A.id===C.bindNodeId)?.[x(1877)]]})}),l[x(873)](p[x(1304)],{children:[l[x(641)](p[x(653)],{icon:l.jsx(be[x(1588)],{}),onClick:ue,children:x(1376)}),l[x(641)](p[x(653)],{icon:l.jsx(be[x(1588)],{}),onClick:we,children:x(1771)}),l[x(641)](p[x(653)],{icon:l.jsx(be.PlusOutlined,{}),onClick:ze,children:x(1633)}),l[x(641)](p[x(653)],{type:"primary",icon:l[x(641)](be[x(1800)],{}),onClick:F,children:"保存"}),l[x(641)](p[x(653)],{icon:l.jsx(be.CloseOutlined,{}),onClick:()=>P(null),children:"返回列表"})]})]}),l[x(641)](x(2048),{className:"flex-1",children:l.jsxs(Eh,{nodes:m,edges:M,onNodesChange:v,onEdgesChange:w,onConnect:ee,nodeTypes:yg,fitView:!0,children:[l[x(641)](Vh,{}),l[x(641)](Jh,{}),l.jsx(ag,{})]})})]}):l.jsxs(x(2048),{className:x(1569),children:[l[x(873)](x(2048),{className:"flex justify-between items-center mb-4",children:[l[x(641)]("h3",{className:x(626),children:x(583)}),l[x(641)](p[x(653)],{type:x(1338),icon:l[x(641)](be[x(1588)],{}),onClick:()=>U(!0),children:x(949)})]}),l.jsx(p[x(1959)],{dataSource:ye,renderItem:A=>l[x(641)](p[x(1959)][x(1207)],{actions:[l[x(641)](p.Button,{type:x(1338),icon:l[x(641)](be[x(2015)],{}),onClick:()=>P(A),children:"编辑"},x(2242))],children:l.jsx(p[x(1959)].Item[x(545)],{title:l.jsxs(p[x(1304)],{children:[l[x(873)]("span",{children:["触发: ",Ds(A)]}),l.jsx(p[x(1006)],{color:x(585),children:r[x(1099)](X=>X.id===A[x(1924)])?.name||A[x(1924)]})]}),description:x(580)+A[x(997)][x(1687)].length+x(1055)+A[x(997)][x(710)][x(2073)]})}),locale:{emptyText:l[x(641)](p[x(1377)],{description:x(1089)})}}),l.jsx(p[x(529)],{title:x(949),open:G,onCancel:()=>{W[x(774)](),U(!1)},footer:null,afterOpenChange:A=>{const X=x;A&&(W[X(774)](),t&&W[X(1888)]({bindNodeId:t}))},children:l[x(873)](p.Form,{form:W,onFinish:_,layout:x(1703),children:[l[x(641)](p[x(765)].Item,{name:"bindNodeId",label:x(1285),rules:[{required:!0,message:x(466)}],initialValue:t,children:l[x(641)](p.Select,{options:fe,placeholder:x(640),disabled:!!t})}),l.jsx(p[x(765)][x(1207)],{name:x(2121),label:x(1225),rules:[{required:!0,message:x(870)}],children:l[x(641)](p.Select,{options:Bs,placeholder:x(492)})}),O===x(2016)&&l[x(641)](p[x(765)].Item,{name:x(1798),label:"外部事件标识",rules:[{required:!0,message:x(2019)},{validator:(A,X)=>(X||"")[x(1215)]()?Promise.resolve():Promise[x(1474)](new Error(x(1166)))}],extra:"与 eventBus.emitExternal(节点id, 该标识) 一致",children:l.jsx(p[x(1984)],{placeholder:x(1927)})}),l[x(641)](p.Form[x(1207)],{className:"mb-0",children:l[x(873)](p.Space,{className:x(1807),children:[l[x(641)](p[x(653)],{onClick:()=>{W[x(774)](),U(!1)},children:"取消"}),l.jsx(p[x(653)],{type:x(1338),htmlType:x(1640),children:"创建"})]})})]})})]}),l[x(641)](p[x(529)],{title:x(1428),open:Y,onCancel:()=>{V(!1),H(null)},footer:null,destroyOnClose:!0,children:l[x(873)](p[x(765)],{form:N,onFinish:de,layout:x(1703),children:[l[x(641)](p[x(765)].Item,{name:x(1877),label:"名称",rules:[{required:!0,message:"请填写名称"}],children:l[x(641)](p[x(1984)],{})}),l.jsx(p.Form[x(1207)],{name:x(842),label:x(856),rules:[{required:!0,message:x(1334)}],children:l[x(641)](p.Select,{options:mg,placeholder:x(1218)})}),B===x(1111)&&l[x(641)](p[x(765)][x(1207)],{name:x(476),label:x(455),rules:[{required:!0,message:x(433)}],children:l.jsx(p[x(2080)],{options:bg,placeholder:"选择具体内置能力"})}),B==="builtin"&&L===x(1224)&&l[x(873)](l[x(1365)],{children:[l.jsx(p[x(765)].Item,{name:["builtinConfig",x(1118)],label:x(2216),rules:[{required:!0,message:x(602)}],extra:x(1816),children:l[x(641)](p[x(1984)].TextArea,{rows:3,placeholder:x(1210)})}),l[x(641)](p[x(765)].Item,{name:[x(1276),x(1852)],label:"状态 (type)",children:l[x(641)](p[x(2080)],{options:hg})}),l[x(641)](p[x(765)].Item,{name:[x(1276),x(600)],label:x(830),extra:x(2113),children:l[x(641)](p.InputNumber,{min:0,step:.5,style:{width:x(732)},placeholder:"默认"})})]}),B===x(1111)&&L==="switchCanvas"&&l.jsx(p[x(765)][x(1207)],{name:[x(1276),"targetCanvasId"],label:"目标画布",rules:[{required:!0,message:"请选择目标画布"}],children:l[x(641)](p.Select,{placeholder:x(2024),options:h[x(1592)][x(1913)](A=>({value:A.id,label:A[x(1877)]}))})}),B==="dataRequest"&&l.jsx(p.Form[x(1207)],{name:x(1649),label:x(1974),rules:[{required:!0,message:"请填写请求标识"},{validator:(A,X)=>(X||"").trim()?Promise.resolve():Promise[x(1474)](new Error(x(1166)))}],extra:"运行时 eventBus.setDefaultRuntimeHandlers({ dataRequest: { [标识]: (ctx, args) => ... } })",children:l[x(641)](p[x(1984)],{placeholder:x(484)})}),B===x(2016)&&l[x(641)](p[x(765)][x(1207)],{name:x(1183),label:x(650),rules:[{required:!0,message:x(637)},{validator:(A,X)=>(X||"")[x(1215)]()?Promise[x(1284)]():Promise[x(1474)](new Error(x(1166)))}],extra:c[x(2073)]>0?"来自 ConfigEditor 的 externalEventActions;也可在运行时 eventBus.mergeDefaultRuntimeHandlers({ external }) 补充":"未配置下拉时手动填写 key;宿主可用 ConfigEditor externalEventActions 注册选项与 handler,或 eventBus.mergeDefaultRuntimeHandlers",children:c.length>0?l[x(641)](p[x(2080)],{showSearch:!0,optionFilterProp:x(2172),allowClear:!0,placeholder:x(1587),options:c[x(1913)](A=>({value:A[x(1699)],label:A[x(2172)],title:A[x(1547)]?A[x(2172)]+x(1221)+A[x(1547)]:A.label+" ("+A[x(1699)]+")"})),onInputKeyDown:A=>{const X=x;A[X(1699)]===" "&&A[X(462)]()}}):l.jsx(p[x(1984)],{placeholder:x(1789)})}),B==="inlineScript"&&l[x(641)](p[x(765)][x(1207)],{name:x(1239),label:x(917),rules:[{validator:(A,X)=>{const ce=x;return typeof X===ce(955)&&X[ce(1215)]()?Promise.resolve():Promise[ce(1474)](new Error(ce(1797)))}}],children:l[x(641)](p.Input[x(481)],{rows:6,placeholder:x(1133)})}),j.length>0&&l[x(873)](x(2048),{className:x(1435),children:[l[x(641)](x(2048),{className:x(2047),children:x(735)}),l[x(641)]("ul",{className:x(1990),children:j.map(A=>{const X=x,ce=E??q?.inputs??[],ae=vg(A.edgeIndex,A[X(991)],ce);return l[X(873)]("li",{className:X(652),children:[l[X(873)](X(2048),{className:X(2140),children:["第 ",A.edgeIndex+1,X(1235),A[X(1434)],X(2071),l.jsx(X(1897),{children:X(1707)})," →"," ",l[X(873)](X(2210),{className:X(528),children:["args.",ae]})]}),l[X(873)]("div",{className:X(700),children:["在下方第 ",A[X(1712)]+1,X(1568)]})]},A[X(925)])})})]}),l[x(641)](x(2048),{className:"font-medium text-gray-800 mb-2",children:x(1300)}),l.jsxs("div",{className:"text-xs text-gray-500 mb-2",children:[x(1324)," ",l[x(641)]("code",{children:x(1408)}),x(1553),l[x(641)]("code",{children:x(2136)}),"、",l[x(641)](x(2210),{children:x(1028)}),"…"]}),l.jsx(p[x(765)].List,{name:x(1767),children:(A,{add:X,remove:ce})=>l[x(873)](l[x(1365)],{children:[A.map(({key:ae,name:De,...Me})=>l[x(873)](p.Space,{align:x(1710),wrap:!0,className:x(1664),children:[l[x(641)](p[x(765)].Item,{...Me,name:[De,x(1877)],rules:[{required:!0,message:"名称"}],children:l[x(641)](p[x(1984)],{placeholder:"参数名,如 A",style:{width:140}})}),l[x(641)](p[x(765)][x(1207)],{...Me,name:[De,"type"],initialValue:x(1413),children:l[x(641)](p[x(2080)],{options:pg,style:{width:100}})}),l.jsx(be[x(473)],{className:x(1618),onClick:()=>ce(De)})]},ae)),l[x(641)](p[x(653)],{type:x(972),onClick:()=>X({type:x(1413)}),block:!0,icon:l[x(641)](be.PlusOutlined,{}),children:"添加入参行(第几个参数)"})]})}),l[x(641)](p[x(765)][x(1207)],{className:x(858),children:l[x(873)](p.Space,{className:x(1807),children:[l[x(641)](p.Button,{onClick:()=>{V(!1),H(null)},children:"取消"}),l[x(641)](p[x(653)],{type:x(1338),htmlType:x(1640),children:"保存"})]})})]})})]}):null},Rx={click:"点击",mouseDown:"鼠标按下",mouseUp:"鼠标释放",doubleClick:"双击",mouseOver:a(1150),mouseLeave:a(555),mouseEnter:"鼠标进入",contextMenu:"右键菜单",dataRequest:"数据请求",external:a(1259)};function Cg(e){const n=a;if(e[n(2121)]===n(2016)){const t=(e[n(1798)]||"")[n(1215)]();return t?Rx[n(2016)]+n(1889)+t:Rx.external}return Rx[e.eventType]}const Mg=Object[a(2057)](Rx)[a(1913)](([e,n])=>({label:n,value:e})),Bg=({nodeId:e})=>{const n=a,{eventFlow:t,addEventRoot:o,updateEventRoot:x,removeEventRoot:r}=sn(),[i,c]=D[n(1115)](!1),[u,d]=D.useState(null),[s,f]=D[n(1115)](!1),[g]=p[n(765)].useForm(),h=p[n(765)][n(2106)](n(2121),g),m=D.useMemo(()=>{const w=n;return t.eventRoots[w(526)](z=>z.bindNodeId===e)},[t[n(1522)],e]),b=w=>{const z=n,C={bindNodeId:e,eventType:w[z(2121)],externalEventKey:w[z(2121)]===z(2016)?(w.externalEventKey||"")[z(1215)]():void 0,flowData:{nodes:[],edges:[]},enabled:!0};o(C),g[z(774)](),f(!1)},v=w=>{d(w),c(!0)},M=(w,z)=>{x(w.id,{enabled:z})},y=w=>{r(w)};return l.jsxs(n(2048),{children:[l[n(873)](n(2048),{className:"flex justify-between items-center mb-4",children:[l[n(641)]("h4",{className:n(887),children:n(2223)}),l[n(641)](p[n(653)],{type:n(1338),size:n(2055),icon:l[n(641)](be.PlusOutlined,{}),onClick:()=>f(!0),children:"添加事件流"})]}),l[n(641)](p[n(1959)],{dataSource:m,renderItem:w=>l[n(641)](p[n(1959)][n(1207)],{actions:[l[n(641)](p[n(653)],{type:"text",size:n(2055),icon:l.jsx(be[n(2015)],{}),onClick:()=>v(w)},n(2242)),l.jsx(p[n(506)],{title:n(1252),description:n(872),onConfirm:()=>y(w.id),children:l[n(641)](p[n(653)],{type:"text",danger:!0,size:"small",icon:l.jsx(be.DeleteOutlined,{})})},n(929))],children:l.jsx(p[n(1959)].Item.Meta,{title:l.jsxs(p[n(1304)],{children:[l[n(641)](p.Tag,{color:w[n(1597)]?n(585):n(542),children:Cg(w)}),l[n(873)](n(909),{className:n(1818),children:[w[n(997)].nodes[n(2073)]," 个节点"]})]}),description:l[n(873)](p[n(1304)],{size:20,children:[l.jsxs(p[n(1304)],{size:8,align:n(1571),children:[l[n(641)](n(909),{className:n(2103)+(w[n(1597)]?n(935):n(664)),children:w[n(1597)]?n(2159):n(1965)}),l[n(641)](p[n(417)],{checked:w[n(1597)],size:n(2055),title:n(1910),onChange:z=>M(w,z)})]}),l[n(873)](p[n(1304)],{size:8,align:n(1571),children:[l.jsx(n(909),{className:n(2103)+(w[n(1957)]!==!1?n(1844):"text-gray-400"),children:w[n(1957)]!==!1?n(2251):n(1126)}),l[n(641)](p[n(417)],{checked:w[n(1957)]!==!1,size:n(2055),title:"复制节点时是否连带复制本事件流",onChange:z=>x(w.id,{copyOnDuplicate:z})})]})]})})}),locale:{emptyText:l[n(641)](p[n(1377)],{image:p.Empty[n(1779)],description:n(1663)})}}),l[n(641)](p[n(529)],{title:"添加事件流",open:s,onCancel:()=>{g[n(774)](),f(!1)},footer:null,afterOpenChange:w=>{w&&g[n(774)]()},children:l[n(873)](p[n(765)],{form:g,onFinish:b,layout:n(1703),children:[l[n(641)](p[n(765)][n(1207)],{name:n(2121),label:n(1225),rules:[{required:!0,message:n(870)}],children:l[n(641)](p.Select,{options:Mg,placeholder:n(747)})}),h===n(2016)&&l.jsx(p[n(765)][n(1207)],{name:n(1798),label:n(1653),rules:[{required:!0,message:n(2019)},{validator:(w,z)=>(z||"")[n(1215)]()?Promise.resolve():Promise[n(1474)](new Error(n(1166)))}],extra:"与运行时 eventBus.emitExternal(节点id, 该标识) 一致,例如:refresh、dialog:opened",children:l[n(641)](p[n(1984)],{placeholder:n(1642)})}),l[n(641)](p[n(765)][n(1207)],{className:n(2176),children:l[n(873)](p[n(1304)],{className:"w-full justify-end",children:[l[n(641)](p[n(653)],{onClick:()=>f(!1),children:"取消"}),l[n(641)](p[n(653)],{type:n(1338),htmlType:n(1640),children:"创建"})]})})]})}),l[n(641)](zg,{open:i,onClose:()=>{c(!1),d(null)},bindNodeId:e,editingRoot:u},u?.id??n(1623)+e)]})},{Panel:dt}=p[a(1929)],{TabPane:Jx}=p.Tabs,{TextArea:Dg}=p[a(1984)],Ls=({defaultTestData:e})=>{const n=a,{nodes:t,selectedNodeId:o,updateNode:x,updateNodeStyle:r,updateNodeControl:i,updateNodeContent:c,materials:u,selectedStatusId:d,selectStatus:s}=sn(),[f]=p[n(765)][n(2285)](),[g,h]=D[n(1115)](n(952)),[m,b]=D[n(1115)](!1),[v,M]=D[n(1115)](null),[y,w]=D[n(1115)]({}),z=D[n(1970)](()=>t[n(1099)](L=>L.id===o),[t,o]),C=z?.[n(1472)][n(665)]||[],P=B=>{const L=n;o&&(B[L(893)]&&r(o,B[L(893)]),B.name!==void 0&&x(o,{name:B.name}),B.controlInfo&&i(o,B[L(1673)]))};console[n(435)](o,"selectedNodeId",z),D[n(2224)](()=>{const B=n;z&&z&&(f[B(1888)]({name:z[B(1877)],normalStyle:{width:100,height:100,x:0,y:0,padding:8,background:B(1223),borderRadius:0,opacity:1,...z[B(893)]},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0,...z[B(1673)]}}),s(null))},[z,s,f]);const G=()=>{const B=n;!o||!z||(M(B(1584)),b(!0))},U=B=>{const L=n;if(!o||!z)return;const E={id:Ae.nanoid(),name:B.name+L(671)+(C.length+1),expression:C[L(2073)]===0?"return true;":L(906),material:{...B,id:Ae[L(558)]()},boundDatasetId:null};if(v===L(1584)){const j=[...C,E];c(o,{statusList:j})}else if(v){const j=C[L(1913)](I=>{const J=L;return I.id===v?{...I,material:{...B,id:Ae[J(558)]()}}:I});c(o,{statusList:j})}b(!1),M(null)},W=B=>{const L=n;if(!o||!z)return;const E=z[L(1472)].statusList?.[L(526)](j=>j.id!==B)||[];c(o,{statusList:E}),d===B&&s(null)},O=(B,L)=>{const E=n;if(!o||!z)return;const j=z[E(1472)][E(665)]?.map(I=>I.id===B?{...I,...L}:I)||[];c(o,{statusList:j})},q=B=>{const L=n;if(!o||!z)return;const E={...B,id:Ae.nanoid(),name:B[L(1877)]+L(414),expression:"return false;"},j=[...C,E];c(o,{statusList:j})},H=(B,L)=>{const E=n;if(!o||!z)return;const j=C[E(2274)](J=>J.id===B);if(j===-1)return;const I=[...C];L==="up"&&j>0?[I[j],I[j-1]]=[I[j-1],I[j]]:L===E(556)&&j<I[E(2073)]-1&&([I[j],I[j+1]]=[I[j+1],I[j]]),c(o,{statusList:I})},Y=B=>{M(B),b(!0)},V=(B,L)=>{const E=n,j=L[E(678)]||{},I=j[E(1025)]??0,J=j[E(1581)]??0,ee=j[E(1602)]??100,_=j[E(2041)]??0,$=Math[E(1425)]((j[E(566)]||j[E(1708)]||2)*2,4),re=Math[E(1449)](I,ee),ue=Math[E(1449)](J,_),we=Math[E(1425)](I,ee),ze=Math[E(1425)](J,_),de=Math[E(1425)](we-re,$),F=Math[E(1425)](ze-ue,$),fe=B[E(893)].x||0,ye=B.normalStyle.y||0;return{material:{...L,config:{...j,startX:he(I-re),startY:he(J-ue),endX:he(ee-re),endY:he(_-ue)}},box:{x:he(fe+re),y:he(ye+ue),width:de,height:F}}},N=(B,L)=>{const E=n;if(!o||!z)return;const{list:j,lineBox:I}=C.reduce((J,ee)=>{const _=_0x3847;if(ee.id!==B)return J[_(1431)][_(1371)](ee),J;let $;if(ee[_(1200)].type==="LINE"&&_(678)in L&&L[_(678)]!==void 0){const re=ee[_(1200)],ue=L[_(678)];$={...re,...L,config:{...re[_(678)]||{},...ue}}}else $={...ee.material,...L};if($.type==="LINE"){const{material:re,box:ue}=V(z,$);return J[_(1431)][_(1371)]({...ee,material:re}),J[_(1583)]=ue,J}return J[_(1431)][_(1371)]({...ee,material:$}),J},{list:[],lineBox:null});I!==null?x(o,{normalStyle:{...z[E(893)],x:I.x,y:I.y,width:I[E(2272)],height:I[E(863)]},contentInfo:{...z.contentInfo,statusList:j}}):c(o,{statusList:j})};return z?l[n(873)](n(2048),{className:n(436),children:[l[n(873)](n(2048),{className:n(1489),children:[l[n(641)]("h3",{className:"text-lg font-semibold text-gray-800",children:"属性面板"}),l[n(641)]("p",{className:n(480),children:n(2154)})]}),l.jsx(n(2048),{className:"flex-1 overflow-y-auto p-4",children:l[n(873)](p[n(2e3)],{activeKey:g,onChange:h,children:[l[n(641)](Jx,{tab:"基础",children:l[n(873)](p[n(765)],{form:f,layout:"vertical",onValuesChange:P,initialValues:{name:z[n(1877)]},children:[l.jsx(p[n(765)].Item,{label:n(727),name:n(1877),children:l[n(641)](p[n(1984)],{placeholder:n(1131)})}),l.jsxs(p[n(1929)],{ghost:!0,defaultActiveKey:[n(1711),n(1301),n(501)],children:[l[n(641)](dt,{header:"位置",children:l[n(873)](p[n(1304)],{children:[l[n(641)](p[n(765)][n(1207)],{label:"X",name:["normalStyle","x"],children:l.jsx(p.InputNumber,{step:10**-yt})}),l[n(641)](p.Form[n(1207)],{label:"Y",name:["normalStyle","y"],children:l[n(641)](p[n(2124)],{step:10**-yt})})]})},n(1711)),l[n(641)](dt,{header:"尺寸",children:l[n(873)](p.Space,{children:[l.jsx(p[n(765)][n(1207)],{label:"宽度",name:[n(893),n(2272)],children:l[n(641)](p[n(2124)],{min:10})}),l.jsx(p[n(765)][n(1207)],{label:"高度",name:[n(893),n(863)],children:l[n(641)](p[n(2124)],{min:10})})]})},"size"),l[n(873)](dt,{header:"样式",children:[l[n(641)](p[n(765)][n(1207)],{label:"背景色",name:[n(893),n(1500)],children:l[n(641)](p[n(1984)],{placeholder:n(1315)})}),l[n(641)](p[n(765)][n(1207)],{label:n(1726),name:["normalStyle",n(1634)],children:l[n(641)](p[n(2124)],{min:0})}),l.jsx(p[n(765)][n(1207)],{label:"圆角",name:[n(893),n(2097)],children:l[n(641)](p[n(2124)],{min:0})}),l[n(641)](p[n(765)][n(1207)],{label:n(1725),name:[n(893),"scale"],help:n(2261),children:l.jsx(p[n(2124)],{min:.1,max:5,step:.1})}),!z.contentInfo[n(665)].some(B=>B[n(1200)].type===n(1013))&&l[n(641)](p[n(765)][n(1207)],{label:n(1046),name:[n(893),n(1646)],help:n(546),children:l[n(641)](p[n(2124)],{min:0,max:360,step:1})}),l[n(641)](p[n(765)][n(1207)],{label:n(882),name:["normalStyle","opacity"],children:l[n(641)](p.InputNumber,{min:0,max:1,step:.1})}),l[n(641)](p.Form[n(1207)],{label:"层级",name:["normalStyle","zIndex"],children:l.jsx(p.InputNumber,{})})]},n(501))]})]})},"basic"),l.jsx(Jx,{tab:"状态",children:z[n(1939)]===n(943)&&z[n(1920)]?l[n(641)](rd,{node:z,updateNode:x,materials:u}):l.jsxs(n(2048),{className:n(1893),children:[l[n(873)](n(2048),{className:n(1420),children:[l[n(873)](n(909),{className:n(1082),children:[n(748),l[n(641)](p[n(1006)],{color:"blue",className:n(2063),children:C[n(2073)]})]}),l[n(641)](p.Button,{type:n(1338),size:n(2055),icon:l[n(641)](be[n(1588)],{}),onClick:G,children:"添加状态"})]}),l[n(641)]("p",{className:n(1911),children:n(754)}),C[n(2073)]>0&&l[n(641)](n(2048),{className:n(1204),children:l.jsx(n(2048),{className:n(1862),children:l[n(873)](n(2048),{children:[l[n(641)]("span",{className:n(1880),children:n(1110)}),l[n(641)](n(909),{className:n(829),children:n(759)})]})})}),C.length===0?l.jsx(n(2048),{className:"text-center text-gray-400 py-4 bg-gray-50 rounded-lg",children:n(1332)}):l[n(641)](p.Collapse,{ghost:!0,defaultActiveKey:C[0]?.id+o,children:C[n(1913)]((B,L)=>l.jsx(dt,{header:l[n(873)]("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-xs text-gray-400 w-5",children:L+1}),l[n(641)](n(909),{className:n(1082),children:B.name}),l[n(641)](p[n(1006)],{color:"default",className:n(2209),children:B[n(1200)].type})]}),extra:l[n(873)](p[n(1304)],{size:n(2055),onClick:E=>E[n(462)](),children:[l[n(641)](p[n(653)],{type:n(1815),size:n(2055),icon:l.jsx(be[n(1035)],{}),disabled:L===0,onClick:E=>{E[n(462)](),H(B.id,"up")}}),l[n(641)](p[n(653)],{type:"text",size:"small",icon:l[n(641)](be.ArrowDownOutlined,{}),disabled:L===C.length-1,onClick:E=>{E[n(462)](),H(B.id,"down")}}),l[n(641)](p[n(653)],{type:n(1815),size:n(2055),icon:l[n(641)](be.CopyOutlined,{}),onClick:E=>{E[n(462)](),q(B)}}),l[n(641)](p[n(653)],{type:n(1815),size:n(2055),danger:!0,icon:l[n(641)](be.DeleteOutlined,{}),onClick:E=>{E[n(462)](),W(B.id)}})]}),children:l[n(873)](p[n(765)],{layout:n(1703),children:[l[n(641)](p[n(765)][n(1207)],{label:n(1531),children:l[n(641)](p[n(1984)],{value:B[n(1877)],onChange:E=>O(B.id,{name:E[n(966)][n(845)]}),placeholder:n(549)})}),l.jsx(vi,{status:B,onUpdate:E=>O(B.id,E),onAppendToExpression:E=>{const j=n;w(I=>({...I,[B.id]:(I[B.id]??B[j(1555)])+E}))}}),l[n(641)](p[n(765)].Item,{label:n(1305),help:n(2027),children:l[n(641)](Dg,{value:y[B.id]??B[n(1555)],onChange:E=>w(j=>({...j,[B.id]:E[n(966)][n(845)]})),onBlur:E=>{const j=n;O(B.id,{expression:E[j(966)].value}),w(I=>{const J={...I};return delete J[B.id],J})},rows:3,placeholder:"return true;"})}),l.jsx(p.Form[n(1207)],{label:n(1370),children:l[n(873)](n(2048),{className:n(1534),children:[l[n(641)](p[n(1006)],{color:n(585),children:B[n(1200)][n(1877)]}),l.jsx(p[n(1006)],{color:n(542),children:B[n(1200)][n(1939)]}),l[n(641)](p[n(653)],{type:n(453),size:n(2055),icon:l.jsx(be[n(2015)],{}),onClick:()=>Y(B.id),children:n(1443)})]})}),l[n(641)](p[n(2186)],{style:{margin:n(1604)}}),l[n(873)](n(2048),{className:n(947),children:[l[n(641)](n(2048),{className:n(1420),children:l[n(641)](n(909),{className:n(887),children:"动画配置"})}),l[n(641)](p.Form[n(1207)],{label:n(1876),className:n(1664),children:l[n(641)](p.Select,{value:B[n(1516)]?.[n(1939)]||n(1895),onChange:E=>O(B.id,{animation:{...B[n(1516)]||{type:"none"},type:E}}),options:[{label:"无",value:n(1895)},{label:"闪烁",value:n(1747)}]})}),B[n(1516)]?.[n(1939)]===n(1747)&&l.jsxs(l[n(1365)],{children:[l[n(641)](p.Form.Item,{label:"闪烁周期(ms)",className:n(1664),children:l[n(641)](p[n(2124)],{min:200,max:1e4,step:100,value:B[n(1516)].duration??1e3,onChange:E=>O(B.id,{animation:{...B.animation,duration:E??1e3}})})}),l.jsx(p[n(765)][n(1207)],{label:n(1754),className:"mb-0",children:l[n(641)](p.InputNumber,{min:0,max:1,step:.1,value:B.animation.minOpacity??.3,onChange:E=>O(B.id,{animation:{...B[n(1516)],minOpacity:E??.3}})})})]})]}),l[n(641)](p[n(2186)],{style:{margin:"12px 0"}}),l[n(873)](n(2048),{className:n(947),children:[l[n(873)](n(2048),{className:n(1420),children:[l[n(641)](n(909),{className:"text-sm font-medium",children:n(2255)}),l[n(641)](p[n(1006)],{children:B.material.name})]}),l.jsx(pi,{material:B[n(1200)],onSave:E=>N(B.id,E)})]})]})},B.id+o))})]})},n(1561)),l[n(641)](Jx,{tab:"控制",children:l[n(873)](p[n(765)],{form:f,layout:n(1703),onValuesChange:P,children:[l[n(641)](p.Form[n(1207)],{label:n(2107),name:[n(1673),n(1909)],valuePropName:n(519),children:l.jsx(p[n(417)],{})}),l[n(641)](p.Form.Item,{label:n(1039),name:[n(1673),n(1645)],valuePropName:"checked",children:l[n(641)](p[n(417)],{})}),l.jsx(p.Form[n(1207)],{label:n(1546),name:[n(1673),n(1902)],valuePropName:n(519),children:l[n(641)](p[n(417)],{})}),l[n(641)](p[n(765)][n(1207)],{label:n(1781),name:[n(1673),n(2264)],valuePropName:n(519),children:l[n(641)](p[n(417)],{})})]})},"control"),l[n(641)](Jx,{tab:n(900),children:l[n(641)](Bg,{nodeId:z.id})},n(2265))]})}),l.jsx(n(2048),{className:n(1610),children:l[n(873)]("div",{className:"text-xs text-gray-500",children:[l[n(873)](n(2048),{children:[n(1654),z.id[n(1243)](0,8),n(599)]}),l.jsxs(n(2048),{children:["状态数: ",C.length]})]})}),l.jsx(p[n(529)],{title:"选择物料",open:m,onCancel:()=>{b(!1),M(null)},footer:null,width:600,children:l[n(641)](n(2048),{className:n(1526),children:l.jsxs(p[n(1929)],{ghost:!0,defaultActiveKey:[n(952),n(1656),n(1815),n(2006)],children:[l[n(641)](dt,{header:n(718),children:l[n(641)]("div",{className:"grid grid-cols-4 gap-2",children:u[n(526)](B=>["矩形","圆形",n(2148)][n(1992)](B[n(1877)])).map(B=>l[n(641)](Ns,{material:B,onClick:()=>U(B)},B.id))})},n(952)),l[n(641)](dt,{header:"设备图标",children:l[n(641)](n(2048),{className:n(572),children:u.filter(B=>["阀门","泵","罐体"][n(1992)](B[n(1877)])||B.type===n(425)&&!["矩形","圆形",n(2148)][n(1992)](B.name))[n(1913)](B=>l[n(641)](Ns,{material:B,onClick:()=>U(B)},B.id))})},n(1656)),l[n(641)](dt,{header:"文本",children:l[n(641)]("div",{className:"grid grid-cols-4 gap-2",children:u.filter(B=>B[n(1939)]===n(1155))[n(1913)](B=>l[n(873)](n(2048),{className:n(1469),onClick:()=>U(B),children:[l.jsx(n(2048),{className:"w-12 h-12 mx-auto mb-1 flex items-center justify-center bg-gray-100 rounded",children:l.jsx(n(909),{className:n(833),children:"T"})}),l[n(641)](n(909),{className:n(2209),children:B[n(1877)]})]},B.id))})},n(1815)),l[n(641)](dt,{header:"线条",children:l[n(641)](n(2048),{className:n(572),children:u.filter(B=>B[n(1939)]===n(1013))[n(1913)](B=>l[n(873)](n(2048),{className:n(1469),onClick:()=>U(B),children:[l.jsx(n(2048),{className:n(427),children:l[n(641)]("div",{className:n(1857)})}),l.jsx(n(909),{className:"text-xs",children:B.name})]},B.id))})},n(2006))]})})})]}):l.jsx("div",{className:n(1485),children:l[n(641)](p[n(1377)],{description:n(2007)})})},Ns=({material:e,onClick:n})=>{const t=a,o=e[t(1939)]==="IMAGE"?e[t(1199)]:void 0;return l[t(873)](t(2048),{className:t(1469),onClick:n,children:[l.jsx(t(2048),{className:t(1021),children:o?l[t(641)](t(1219),{src:o,alt:e[t(1877)],className:"w-10 h-10 object-contain"}):l[t(641)](t(909),{className:"text-xs",children:e[t(1877)][0]})}),l.jsx("span",{className:t(2209),children:e[t(1877)]})]})},Lg="ConfigEditor-module__configEditor__dinNG",Ng={configEditor:Lg},Sg=a(1883);function Ss(e){return Array.isArray(e)}const ks=({open:e,onClose:n})=>{const t=a,{dataPool:o,addDataPoolItem:x,updateDataPoolItem:r,removeDataPoolItem:i}=sn(),[c]=p[t(765)][t(2285)](),[u,d]=D[t(1115)](null);D[t(2224)](()=>{const b=t;!e&&(d(null),c[b(774)]())},[e,c]);const s=()=>{const b=t;d(b(810)),c[b(1888)]({name:b(862)+(o[b(2073)]+1),sampleJson:""})},f=b=>{const v=t;d(b.id),c.setFieldsValue({name:b[v(1877)],sampleJson:JSON.stringify(b[v(1078)]??{},null,2)})},g=b=>{const v=t,M=b[v(1215)]();if(!M)return{};const y=JSON[v(911)](M);if(y===null||typeof y!==v(1130))throw new Error(v(1198));if(Array[v(612)](y)){for(let w=0;w<y[v(2073)];w++)if(typeof y[w]!="object"||y[w]===null)throw new Error(v(1280)+(w+1)+" 项必须是对象");return y}return y},h=()=>{const b=t;c[b(796)]()[b(1535)](v=>{const M=b;let y;try{y=g(v.sampleJson)}catch(z){p.message[M(1316)](z instanceof Error?z[M(1638)]:"sample JSON 无效");return}const w=v[M(1877)][M(1215)]();if(!w){p[M(1638)][M(1316)]("请填写名称");return}u==="__new__"?(x({name:w,sample:y}),p[M(1638)].success("已添加")):u&&(r(u,{name:w,sample:y}),p.message.success("已保存")),d(null),c.resetFields()})[b(1731)](()=>{})},m=[{title:"名称",dataIndex:t(1877),key:t(1877)},{title:"类型",key:t(1939),width:100,render:(b,v)=>Ss(v[t(1078)])?l.jsxs(p[t(1006)],{color:t(585),children:[t(547),v[t(1078)][t(2073)],t(1e3)]}):l[t(641)](p[t(1006)],{children:"对象"})},{title:t(1117),key:t(996),width:90,render:(b,v)=>{const M=t;if(Ss(v[M(1078)])){const y=v[M(1078)][0];return y?Object[M(996)](y)[M(2073)]:0}return Object[M(996)](v.sample||{}).length}},{title:"操作",key:t(1621),width:160,render:(b,v)=>l.jsxs(p[t(1304)],{children:[l.jsx(p[t(653)],{type:"link",size:t(2055),icon:l.jsx(be[t(2015)],{}),onClick:()=>f(v),children:"编辑"}),l[t(641)](p[t(506)],{title:t(619),description:"所有绑定此数据集的状态将自动解除绑定。",onConfirm:()=>{const M=t;i(v.id),p[M(1638)][M(1955)]("已删除,相关状态已解除数据集绑定")},children:l.jsx(p[t(653)],{type:t(453),size:t(2055),danger:!0,icon:l.jsx(be[t(2163)],{}),children:"删除"})})]})}];return l[t(873)](p[t(529)],{title:t(475),open:e,onCancel:n,width:760,footer:null,destroyOnClose:!0,children:[l[t(873)]("p",{className:"text-sm text-gray-500 mb-3",children:[t(1278)," ",l[t(641)](t(2210),{className:"bg-gray-100 px-1 rounded",children:t(2045)}),t(1063)]}),l[t(641)](t(2048),{className:t(1396),children:l[t(641)](p.Button,{type:t(1338),icon:l[t(641)](be[t(1588)],{}),onClick:s,children:t(696)})}),u&&l.jsxs(t(2048),{className:t(2229),children:[l.jsxs(t(2048),{className:"font-medium mb-2",children:[u===t(810)?"新建":"编辑",t(1542)]}),l[t(873)](p[t(765)],{form:c,layout:t(1703),children:[l[t(641)](p[t(765)].Item,{name:"name",label:"名称",rules:[{required:!0,message:"必填"}],children:l[t(641)](p[t(1984)],{placeholder:t(541)})}),l[t(641)](p[t(765)][t(1207)],{name:t(871),label:t(1732),rules:[{required:!0,message:"必填"}],children:l[t(641)](p.Input[t(481)],{rows:12,className:t(2280),placeholder:Sg})}),l[t(873)](p[t(1304)],{children:[l.jsx(p[t(653)],{type:t(1338),onClick:h,children:"保存"}),l[t(641)](p.Button,{onClick:()=>{const b=t;d(null),c[b(774)]()},children:"取消"})]})]})]}),l.jsx(p.Table,{size:t(2055),rowKey:"id",dataSource:o,columns:m,pagination:!1,locale:{emptyText:t(1943)}})]})},{Header:kg,Sider:Is,Content:Ig}=p.Layout,Pg=({initialScheme:e,onChange:n,readonly:t=!1,headerExtra:o,className:x="",style:r,showHeader:i=!0,showMaterialPanel:c=!0,showPropertyPanel:u=!0,customMaterials:d,initialDataPool:s,initialEventFlow:f,externalEventActions:g,onUploadSvg:h,defaultTestData:m,backgroundImageUrl:b,initialViewportWidth:v,initialViewportHeight:M})=>{const y=a,[w,z]=D[y(1115)](!1),[C,P]=D[y(1115)](!1),[G,U]=D[y(1115)](""),[W]=D[y(1115)](()=>[{paramsCode:y(874),paramsName:y(808),value:25,paramsUnit:y(518)},{paramsCode:y(1330),paramsName:y(2263),value:1.5,paramsUnit:y(1242)}]),O=m!==void 0?m:W,q=i&&!t,{exportScheme:H,importScheme:Y,nodes:V,materials:N,dataPool:B,eventFlow:L,root:E,canvas:j,viewport:I,addMaterial:J,setDataPool:ee,setEventFlow:_,setExternalHandlerCatalog:$}=sn();D[y(1899)](null);const re=D[y(1899)](!1);D.useEffect(()=>{const F=y;if(!re[F(1205)]&&(re[F(1205)]=!0,Ur[F(1935)](fe=>J(fe)),e&&Y(e),f!==void 0&&_(f),g&&g[F(2073)]>0)){$(g);const fe={};for(const ye of g){const A=String(ye[F(1699)]??"").trim();A&&ye.handler&&(fe[A]=ye[F(1157)])}Object[F(996)](fe)[F(2073)]>0&&qt.mergeDefaultRuntimeHandlers({external:fe})}},[]),D.useEffect(()=>{const F=y;d&&d[F(2073)]>0&&d[F(1935)](fe=>J(fe))},[]),D[y(2224)](()=>{s!==void 0&&ee(s)},[s,ee]),D[y(2224)](()=>{if(n){const F=H();n(F)}},[V,N,B,L,E,n,H]);const ue=D[y(2173)](()=>{const F=y,fe=H(),ye=JSON.stringify(fe,null,2),A=F(1861)+encodeURIComponent(ye),X=F(1057)+Date.now()+F(2131),ce=document[F(2030)]("a");ce[F(2278)](F(2090),A),ce.setAttribute(F(1666),X),ce[F(2258)](),p.message.success(F(1468))},[H]),we=D[y(2173)](()=>{const F=y;try{const fe=JSON.parse(G);Y(fe),z(!1),U(""),p[F(1638)].success(F(2188))}catch{p[F(1638)].error(F(1749))}},[G,Y]),ze=D[y(2173)](F=>{const fe=y,ye=new FileReader;return ye[fe(1894)]=A=>{const X=fe;try{const ce=A[X(966)]?.[X(1106)],ae=JSON[X(911)](ce);Y(ae),p[X(1638)][X(1955)]("导入成功!"),z(!1)}catch{p.message[X(1316)](X(1227))}},ye.readAsText(F),!1},[Y]),de=D.useCallback(()=>H(),[H]);return D[y(2253)](D[y(1899)]?.(),()=>({getScheme:de,exportScheme:H,importScheme:Y}),[de,H,Y]),l.jsx(p[y(2281)],{locale:Hs,children:l[y(641)](y(2048),{className:Ng[y(1173)],style:{height:y(t?2283:732),...r},children:l[y(873)](p[y(993)],{className:y(1622)+(t?"":y(983))+" "+(t?"":y(677))+" "+x,children:[q&&l[y(873)](kg,{className:"bg-white border-b border-gray-200 px-4 flex items-center justify-between flex-shrink-0",children:[l[y(873)](y(2048),{className:y(1086),children:[l[y(641)]("div",{className:y(456),children:"组态编辑器"}),l[y(873)](y(2048),{className:y(480),children:[V[y(2073)],y(679)]})]}),l[y(873)](p[y(1304)],{children:[o,!t&&l[y(873)](l[y(1365)],{children:[l[y(641)](p[y(1735)],{title:y(2100),children:l.jsx(p[y(653)],{icon:l[y(641)](be.DownloadOutlined,{}),onClick:ue,children:"导出"})}),l[y(641)](p[y(1735)],{title:y(977),children:l[y(641)](p[y(653)],{icon:l[y(641)](be[y(510)],{}),onClick:()=>z(!0),children:"导入"})}),l[y(641)](p.Tooltip,{title:y(720),children:l[y(641)](p[y(653)],{icon:l[y(641)](be[y(1637)],{}),onClick:()=>P(!0),children:"数据池"})})]})]})]}),l[y(873)](p[y(993)],{children:[c&&!t&&l[y(641)](Is,{width:280,className:"bg-white",theme:y(1833),children:l[y(641)](Gr,{onUploadSvg:h})}),l[y(641)](Ig,{className:y(1209)+(t?"":y(2035)),style:t?{backgroundColor:j?.[y(1500)],backgroundImage:j?.[y(1579)]!==!1?y(1005):void 0,backgroundSize:20*(I?.[y(1632)]||1)+y(2233)+20*(I?.scale||1)+"px"}:void 0,children:l.jsx(gi,{defaultTestData:O,readonly:t,backgroundImageUrl:b,initialViewportWidth:v,initialViewportHeight:M})}),u&&!t&&l[y(641)](Is,{width:360,className:"bg-white",theme:y(1833),children:l.jsx(Ls,{defaultTestData:Array[y(612)](O)?O:void 0})})]}),l.jsx(ks,{open:C,onClose:()=>P(!1)}),l.jsx(p[y(529)],{title:y(1501),open:w,onOk:we,onCancel:()=>{z(!1),U("")},width:600,children:l[y(873)]("div",{className:y(1180),children:[l.jsxs("div",{children:[l[y(641)]("p",{className:y(1664),children:y(1187)}),l[y(641)](y(1896),{type:y(684),accept:y(2131),onChange:F=>{const fe=y,ye=F.target[fe(1751)]?.[0];ye&&ze(ye),F[fe(966)][fe(845)]=""},className:y(2042)})]}),l[y(641)](y(2048),{className:y(1345),children:"或"}),l[y(873)](y(2048),{children:[l[y(641)]("p",{className:y(1664),children:y(2260)}),l.jsx(y(980),{value:G,onChange:F=>U(F[y(966)][y(845)]),placeholder:y(1665),className:"w-full h-48 p-3 border border-gray-300 rounded-lg font-mono text-sm resize-none focus:outline-none focus:ring-2 focus:ring-blue-500"})]})]})})]})})})};Ee.Canvas=gi,Ee[a(946)]=Pg,Ee.DataPoolModal=ks,Ee[a(597)]=fi,Ee[a(841)]=Gr,Ee.NodeRenderer=Mo,Ee.PropertyPanel=Ls,Ee[a(1945)]=lo,Ee[a(926)]=jr,Ee.createDefaultNode=Or,Ee[a(995)]=ho,Ee[a(639)]=uo,Ee.eventBus=qt,Ee[a(1839)]=Ar,Ee.initMaterials=Ur,Ee.useEditorStore=sn,Object[a(1790)](Ee,Symbol[a(1593)],{value:a(1651)})});function _0x3847(Ee,l){Ee=Ee-414;const D=_0x5a54();let p=D[Ee];if(_0x3847.ZDOrrZ===void 0){var be=function(F0){const a="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let Ot="",u0="";for(let Cn=0,Zn,Rn,f0=0;Rn=F0.charAt(f0++);~Rn&&(Zn=Cn%4?Zn*64+Rn:Rn,Cn++%4)?Ot+=String.fromCharCode(255&Zn>>(-2*Cn&6)):0)Rn=a.indexOf(Rn);for(let Cn=0,Zn=Ot.length;Cn<Zn;Cn++)u0+="%"+("00"+Ot.charCodeAt(Cn).toString(16)).slice(-2);return decodeURIComponent(u0)};_0x3847.Fjtvia=be,_0x3847.oqGXmI={},_0x3847.ZDOrrZ=!0}const ao=D[0],Q0=Ee+ao,Ae=_0x3847.oqGXmI[Q0];return Ae?p=Ae:(p=_0x3847.Fjtvia(p),_0x3847.oqGXmI[Q0]=p),p}function _0x5a54(){const Ee=["5lIk5lIa5Q2L","y2XPzw50vg9W","DhLWzq","AxndB250zw50rwrPDgfIBgu","C3rHCNrZv2L0Aa","BwvYz2vezwzHDwX0uNvUDgLTzuHHBMrSzxjZ","5PQc5PEG5PwW5O2U6zUg77Ym6k+354k55yE744cm5PAW5BU644cn","Dhj5CW","yNvPBgrnzxjNzwreyxrHuMvJB3jK","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbIzY1NCMf5lteWma","CMvHy3qTzMXVD19Fy29UDhjVBhmTyNv0Dg9U","ru1qvfK","tM9KzsbVBKnSAwnRoG","lNn2zW","Cg9ZAxrPB25byNnVBhv0zq","zwfJAa","6iEQ5A6A5lMj","tw92zwqGC2vSzwn0zwqGBM9Kzsa","C3vJy2vZCW","z2v0uM9VDe5Vzgu","y29WEu9UrhvWBgLJyxrL","CM91BMq","tgLZDa","BwfYA2vYvw5PDhm","C2LTCgXLyMv6AwvY","wM9VBu91De91DgXPBMvK","yxn5BMnjDgvYyxrVCG","zgf0ytPPBwfNzs9ZDMCREg1Sla","5BEY56Ab55sO","6k+36ycj5OUP5PEL5PYF","iIbPCYbPBNzHBgLKlIbqBgvHC2uGChjVDMLKzsbHig51BwjLCIbVCIbHihn0CMLUzYb3AxrOigeGDMfSAwqGDw5PDcaOChGGB3iGjsKU","ywn0AxzLu2LIBgLUz0DYB3vWswq","BM93","DxnLtwvTBW","6yEn5zg95zcn","Ag92zxi6yMCTz3jHEs0Xmda","q3vZDg9TrxzLBNq","6k+35Rgc5Qch6k+g","yxnZAwDU","DY1MDwXSigGTzNvSBcbYzwXHDgL2zq","BwvHC3vYzwq","zgvMyxvSDfj1BNrPBwviyw5KBgvYCW","5BYa5AEl5PE26zE0","C2HPzNq","Dgv4Dc1SzYbMB250lxnLBwLIB2XKihrLEhqTz3jHEs04mda","y29UDgv4De1LBNu","Dw5PDa","sw5WDxq","C21VB3rOC3rLCa","C3rHDhvZswq","mta4ma","tM9Kzsb3AxrOigLKici","ihSGmcuGEYbIB3jKzxiTy29SB3i6ia","BgLZDc1UB25LihnWywnLlxKTmIbTltaGCc0W","zgvZDhjVEq","Aw5JBhvKzxm","vxbSB2fKignHBMnLBgXLzcbVCIbMywLSzwq6","B3jPz2LU","5zcr5zcoidmG6Ag1","Bg9JywW","zxHLy3v0zuj1AwX0Aw4","C2nYB2XSvg8","C3bSAxq","vgfICW","5lIk5lYGifnwrW","zxjYB3iWmdG","CMvNAxn0zxjjBNrLCM5HBe1VzhvSzvn0yxj0","Dg9tDhjPBMC","CMvHy3qTzMXVD19FyMfJA2DYB3vUza","BgLUzq","6k+36ycj5OUP5lIa5lIQ6iQc54k5","z3jPzcbNCMLKlwnVBhmTmIbNyxaTmG","5Qch562+5Qc35BYp","w3jVBgu9iMXPC3rIB3GIxq","mtGWqLfxB3rf","AgfZ","C2nHBgvfEhrLBNq","jhTSywjLBh3MNidLSi/LGlZKUlOKE21PBN0","rwrPDe91DgXPBMvK","zxH0zxjUywW","zhjHzW","zxjYB3iWmti","6k+35AgR5yAz5Asw6yoO5lQl5lU25Qch6k+g","5A2x5Q616AQm6k+b6zsz6k+VjhTSywjLBh0","C2nOzwr1Bgu","57Ue5yAf6l+y5RkH5PYj55s75BId77Ym5lUo5lIk5PA56ycj5OUP5yQG5ywL","su5qvvq","6ycj5OUP6kAb6lEZ6l2S55Qe55s75BId","ANn4uNvUDgLTzq","5A+85ywL55s75BId","5y2v5y+c5PwWigrHDghVViJLR7NOSAhVViNVVjRNLlhMLBdMJA7MSAaGC2fTCgXL77Yi6iUL5BEY57Ur5A6A77Yj5lIo55s75BId6l+q6kgm5PE25PwW5O2U5zci5BM277YB5Rwl54k55PwW57Ue5lYA5OYjihbHCMfTC0nVzguG5yAz5ywLigrHDghJGilPOBSGCMv0DxjUihrYDwuVzMfSC2xJGii","5lIl5lIa5lIw57QQ","C2v0vhjHBNnSyxrLrxH0zw50","y3jLyxrLrwXLBwvUDa","y29TBw9Utg9JywXL","DxnLCLnLBgvJDgLVBKfJDgL2zq","CMvSyxrPDMu","y2fUy2vSq29UBMvJDgLVBG","yMCTz3jHEs0Xmda","Bw91C2vcDxr0B24","B25oB2rLC0rLBgv0zq","y2fSBgjHy2SGAxmGBM90igeGzNvUy3rPB24","Cg9PBNrLCKLK","CgfUqNK","zw5Kwq","yMXVy2SGDY1MDwXSihrLEhqTC20GDgv4Dc1NCMf5ltuWmaOGicaGicaGicaGicaGicaGicbMAwXLoM1YltqGzMLSztPWEs0YigzPBgu6ChGTnaOGicaGicaGicaGicaGicaGicbMAwXLoNjVDw5KzwqTzNvSBcbMAwXLoMjVCMrLCI0WcIaGicaGicaGicaGicaGicaGigzPBgu6Dgv4Dc1ZBsbMAwXLoMzVBNqTC2vTAwjVBgqkicaGicaGicaGicaGicaGicaGzMLSztPIzY1IBhvLltuWigzPBgu6Dgv4Dc1IBhvLltCWmaOGicaGicaGicaGicaGicaGicbOB3zLCJPMAwXLoMjNlwjSDwuTmtaW","yxv0BY1ZDgfYDc1YzxzLCNnL","uMLNAhq","kgrHDgePid0+igjVB2XLyw4","zgvMyxvSDevKz2vZ","zM9UDc1TzwrPDw0GDgv4Dc1HBwjLCI05ntaGBwiTmG","zgL2","iIbYEd0ImJaIlZ48l3n2zZ4","yxrHBJi","jhTSywjLBh3ML6xMNj/MOlZLVi/ML6dMLyG","DxbKyxrLq29UBMvJDgLVBG","lM5VA2v5","zw5KlG","C21HBgW","q29UC3vTzxi","zw50CMLLCW","DxbKyxrL","55s75BIdia","Aw50zxjYDxb0","Aw52ywXPza","nNbeA0Xnyq","BwWTmG","DMLLD0jVEa","Bw91C2vKB3DUlNPVB20","y2LYy2XL","5BYa5AEl5zgO","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iInMywfKmtqIihj4psiYmciVpJWVC3zNpG","CMvTB3zLq2HPBgq","ChjLDMLLDW","44cn77YA5lIk5RI4","u3rYAwn0","BgvUz3rO","57Ut5P2F5zgO","Cg9PBNrLCI1LDMvUDhmTyxv0BW","rwrNzsb0ExbLici","BgfIzwXcz0jVCMrLCLjHzgL1CW","B25ZzwXLy3rZDgfYDa","jhTSywjLBh3MNidLPjOKE21HEh3KUkRLRzFNRky","u2vSzwn0","ChjLCgfYzuv2zw50qxjNCW","BMf2AwDHDgLVBLn0ywnR","iZi2mJyYnG","cIaGicaGicaG","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iG","Cg9PBNrLCLG","zMXLEa","5Rc05BMZ57+76l2S","Dgv4Dc1NCMf5ltqWmcb0zxH0lxHZ","AhjLzG","Bwf4wa","C3zNigXPBMu","57Ur5A6A5A2x5Q61","6ycj5OUP5PAW54MP5PAz","Dw5IAw5KtM9Kzuv2zw50","CM90yxrLka","yM9YzgvYuMfKAxvZ","jhTSywjLBh3KUi7MQkhLVi/KUi3LJlNPHy0KE3bHDhrLCM59","Bwf4vg91y2HqB2LUDhm","5A+85yE6iePtt04","BgLMDa","xhmQkfSRlv0/xgqRkvXZkG","Dgv4Dc14CYa","Dw5IAw5KqwXSrM9YtM9Kzq","yxjNCW","DxnLv2f0y2G","5y+V5OUw5OU9","EM9VBs53AgvLBa","BMuTCMvZAxPL","CMvKDwnL","BM9Kzvr5CgvZ","B3v0Chv0CW","55wz56M65l2/55sOigfUDgqG6BUy6k6K77YB5AgRidaG6kgO56s65lIn6iEQ5yQO5ywZ6zET","DMfSDwvtB3vYy2vdB2rL","yMXVy2SGDY1MDwXSihrLEhqTC20GDgv4Dc1NCMf5ltuWmaOGicaGicaGicaGicaGigzPBgu6BxiTncbMAwXLoNb5ltiGzMLSztPWEc00cIaGicaGicaGicaGicaGzMLSztPYB3vUzgvKlwz1BgWGzMLSztPIB3jKzxiTmaOGicaGicaGicaGicaGigzPBgu6Dgv4Dc1ZBsbMAwXLoMzVBNqTC2vTAwjVBgqkicaGicaGicaGicaGicbMAwXLoMjNlwjSDwuTntaGzMLSztP0zxH0lwjSDwuTnZaWcIaGicaGicaGicaGicaGAg92zxi6zMLSztPIzY1IBhvLlteWma","q3jVC3m","BwvYz2vsDw50Aw1LsgfUzgXLCNm","zxHWyw5KugfYzw50","CMvHy3qTzMXVD19FBwLUAw1HCc1KzxnJ","57Ut5P2F5PYi5lU9","zxzLBNruExbL","5zcm57QN5ywZ57o757Ue","A2vLCefZCgvJDfjHDgLV","sw5WDxroDw1Izxi","z3jPza","twfYA2vYrgvMAw5PDgLVBNm","yMLUza","qgfUDc1KzxnPz24VAwnVBNm","iZaWmtKZqW","ChGSidaP","lMPZB24","y2XHC3noyw1L","572U5lQo5BQv5Bgc","vxbtCxvHCMvpDxrSAw5Lza","tK9erv9truXfq1q","yxjNCY5WCMv2ma","nty4nZfAz0vZt00","5y+w5RAi5O6s5BQp","C3rHCNqUEM9VBq","Dgv4Dc1NCMf5ltGWma","AgLKzgvU","rg93BLnXDwfYzu91DgXPBMvK","Bwf0zxjPywXZ","AxngAw5PDgu","AgfZrxjYB3i","zMXPCfK","zMLYC3rfBgvTzw50q2HPBgq","5zYg6kEs55+P5B2I","6k+36ycj5OUP5A2J5BQM","57Uy5yI25QIH5BYp","Aw5ZDa","zgvMCW","vMvYDgLJywXbBgLNBKjVDhrVBu91DgXPBMvK","57Yw6l6r6ycj5lIT6iQc54k555Qe5BgE5OcN","AxnqCMLTyxj5","BgfIzwXdB2XVCG","DhjHBNnSyxrLm2qO","Dgv4Dc1ZBsb0zxH0lwjSDwuTnZaW","5BEY5zcV55sO","B250B3vJAhn0yxj0","6iom5PMV5zU+54Mh5lIk5lYG5OIq5yQF","ihrVia","rgvSzxrLt3v0BgLUzwq","sg9YAxPVBNrHBa","CMvHy3qTzMXVD19FBwLUAw1HCc1ZDMC","C2v0ug9PBNrLCKnHChr1CMu","lwzSB3DFx2vKz2u","Dg9qB3nPDgLVBG","C2uTCMvZAxPL","B2zMC2v0sgvPz2H0","mcaWidrWEcbYz2jHkdaSmcWWldaUmYK","BgfIzwW","DxnLq2fSBgjHy2S","jhTSywjLBh3MNidLPkFLGlZKUlOKE21HEh0","CMzFx2jHy2TNCM91BMq","BwiTma","CMvJEwnSzufZEw5Jswq","zMXLEc1ZDgfYDa","y2XPzw50wa","y29UBMvJDgLVBKrYywDuAhjLC2HVBgq","C2v0vhjHBNnMB3jT","Bw91C2veB3DU","Dg9qCM9TAxnL","EM9VBq","5y+V5O6s5BQp","rgL2AwrLCG","zxjYB3iWmdm","5A+85ywL5OIq5yQF77Yb","yxv0B1bHBLnWzwvK","B25dB25Uzwn0u3rHCNq","y29Z","DxnLCLnWywnLt25vC2u","Aw5PDgLHBeHLAwDODa","lwzSB3DFx2HHBMrSzvTKyxrHlwLKpsi","ywjZB2X1DguGyM90Dg9TltaGCMLNAhqTmcb3ltmGAc0ZigjNlwjSDwuTntaWigjVCMrLCI0YigjVCMrLCI13AgL0zsbYB3vUzgvKlwz1BgW","C2vSzwn0ywjSzq","BgfIzwXtDhLSzq","x2DYB3vWCW","zg90CW","CMvHy3qTzg9T","6zEQ54ob5zgO5PYFkg1Zkq","CMv2zxjZzq","x2jSyw5R","C291CMnLug9ZAxrPB24","zMXLEcbPDgvTCY1Jzw50zxiGz2fWltmGDY1MDwXSihb5ltiG","DhjHBNnSyxrLrxH0zw50","C3rYB2TL","AxntDg9WCgvK","Dgv4Dc14CW","y29Kzq","CMvHzg9UBhK","B2jZzxj2zq","vgHLifjLywn0iezSB3CGCgfYzw50ignVBNrHAw5LCIbUzwvKCYbHihDPzhrOigfUzcbHigHLAwDODcb0BYbYzw5KzxiGDgHLigDYyxbOlG","yM9YzgvY","yxv0B1bHBK9UtM9KzurYywC","5O+q56s65yAf5A65","BgfIzwXgB250v2vPz2H0","y2fUy2vSywjSzq","AM9PBG","z2v0rwrNzuLK","ksbZy2fSzsG","DgfYz2v0ug9ZAxrPB24","5lQl5lU25Rwb57Ur5A6A","DxnLrwzMzwn0","zw5Kug9PBNq","DgfWCW","C3bSAwnL","5z6c55U057+76l2S","BwiTncbWltmGyM9YzgvYigjVCMrLCI1IBhvLltiWmcbYB3vUzgvKigjNlwjSDwuTntaVnta","C291CMnLrxzLBNq","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi2mciGAgvPz2H0psi2mci+phbHDgGGzd0ItteWidiWieWZmcaXmcbmntaGmJaGtduWidqWieWZmca1mcbmmtaGndaGwIiGzMLSBd0Ii2jMyMzIzIiGC3rYB2TLpsiJntK1otu5iIbZDhjVA2uTD2LKDgG9iJiIlZ48y2LYy2XLign4psiZmciGy3K9iJmWiIbYpsi4iIbMAwXSpsiJmtG5mgzMiI8+pc9ZDMC+","Bw91C2v1Ca","ChGG","md3MSltLUBpLKjhLJ7pVViW5md3LNOlNM7tLKjhKUiVVViZKU4xNLkJKUO7MOlNMJA7OTBFNGRNLKOZPLB/LUQBPH43MLRdORQhNRPFNU4JNGRK","BwvYz2u","zMXLEcbMBgv4lwnVBa","Aw5PDev2zw50","ugfUzwW","BM9YBwfS","jhTSywjLBh3KUi3OG73OVAZMJAlKUlRML6xMNj8","zxHLyW","zwrPDa","sxqGBg9VA3mGBgLRzsb5B3uNDMuGy3jLyxrLzcbHig5LDYbUB2rLvhLWzxmGB3iGzwrNzvr5CgvZig9IAMvJDc4GswyGDgHPCYb3yxnUj3qGB24GChvYCg9ZzsbWBgvHC2uGzgvMAw5LihrOzsbUB2rLvhLWzxmVzwrNzvr5CgvZig91DhnPzguGB2yGDgHLignVBxbVBMvUDcbVCIbTzw1VAxPLihrOzw0U","yM94lxnLBgvJDa","z2v0tM9Kzuv2zw50qMLUzgLUz3m","DMLLD3bVCNrjBML0AwfSAxPLza","C3rHCNrxAwr0Aa","BwfYA2vYu3rHCNq","AhnSysG","z2v0","5Asn5yI26lEF6zQp","CxvLCNLtzwXLy3rVCKfSBa","DxnLsw1WzxjHDgL2zuHHBMrSzq","zM9YBwf0uMDI","54MP5PAz5BgE5OcN","zgvMAw5LuhjVCgvYDgLLCW","C3bHy2u","y2XPy2S","y2XPzw50sgvPz2H0","57ky6ls0iePtt04G5yAf5A6577YA","562j5Q+u57YP5Ps+6iQc54k555Qe5A696AUy","C2v0rhjHz0LTywDL","6ycA6Akr5yQG6ycF5BQM5PYj5Pwi5yc8","AxntzwXLy3rHyMXL","zxzLBNrMBg93","Bwf0y2HLCW","qxjYB3DeB3DU","DMLLDW","Bw91C2v1Cc56B29T","DxnLtgf5B3v0rwzMzwn0","CMv0DxjUigfYz3m7","D2LKDgG","C2vSzwn0Aw9U","zMLUzeLUzgv4","DY1WEcbOltyGyMCTz3jHEs0ZmdaGBxGTmG","mZG1ntu0ntfZrNvTt1q","AxnjBNrLCM5HBa","C2v0qxr0CMLIDxrL","y29UDgv4Da","zM9UDc1TB25VihrLEhqTC20","q29UzMLNuhjVDMLKzxi","y29UDhjVBhmUAw50zxjHy3rPDMuUyxjPyuXHyMvS","yxv0BW","D2L0Aa","DxnLrM9YBq","ios4QUEkTUAaGq","x19KyxrHx18","x+wKJEwiTG","B2zMC2v0v2LKDgG","C2v0rgvMyxvSDfj1BNrPBwviyw5KBgvYCW","u3DPDgnO","CgfYzw50","u21VB3rOu3rLCevKz2vjBNrLCM5HBa","iIbKB2vZig5VDcbLEgLZDcWGAxqGBwf5igHHDMuGyMvLBIbYzw1VDMvKlIbuAgLZignHBIbOyxbWzw4GD2HLBIbHig5VzguGAxmGzgvSzxrLzcbIzwzVCMuGDgHLicjVBK5VzgvdBgLJAYiGAgfUzgXLCIbPCYbJywXSzwqU","x3rPBwu","6k+36ycj5OUP5BM05lU9","zgvSDgfz","5yc85Qc35BYp","su1br0u","5lIl5lIa5Q2L","DY0XmIbOlteYig14lwf1Dg8GBwiTmsbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbIzY1NCMf5lteWmcbYB3vUzgvK","ltzWEa","5PQc5PEG5zcm57QN5ywZ57o777Ym54k55yE744cm5PAW5BU644cn5BYa5AEl","D29YAW","zNv0DxjL","z3jHyG","6k+36ycj5OUP5yAf572U5yQO5l2C","z2v0t3DUuhjVCgvYDhLtEw1IB2XZ","Bg9N","Ac1MDwXSigzSzxGGzMXLEc1JB2WGyMCTD2HPDguGyM9YzgvYlwWGyM9YzgvYlwDYyxKTmJaW","vgLTzw91DevYCM9Y","yM9Sza","Bg9HzgLUzW","w1jLywn0iezSB3DDoIbtzwvTCYbSAwTLihLVDsbOyxzLig5VDcb1C2vKihP1C3rHBMqGChjVDMLKzxiGyxmGyw4Gyw5Jzxn0B3iUieHLBha6igH0DhbZoI8VCMvHy3rMBg93lMrLDI9LCNjVCImWmde","6ycj5OUP57Ur5A6A5yc8","AgfUzgXL","6ycj5OUP5PE26zE0","i2zMzMzMzG","z2v0qM91BMrPBMDdBgLLBNrszwn0","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIbVDMvYzMXVDY1OAwrKzw4","DxjSkcCJ","5A+g6zUg54k554Q2","tM8GDgLTzw91DcbWCM92AwrLzc4","Bwf0y2HnzwrPyq","zw5KlNn0EwXLlG","zw1WDhK","BgLUAW","mNb4ihnVBgLKicmXodKWzMy","5yAf572U5yQO5l2C","Dgv4Dc14BcbMB250lwjVBgqGDgv4Dc1IBhvLltyWma","q29WEu91DgXPBMvK","w2rHDgeTy2fUDMfZpsj0CNvLiL0","yNvIyMXLCW","5PEG54Q25Ocb","x25LEhq","C3rVCfbYB3bHz2f0Aw9U","B25oB2rLtw91C2vmzwf2zq","lIbozxCGCg9ZAxrPB24SihG6ia","rxzLBNqGzMXVDYbLCNjVCJO","6k+36ycj5OUP6iQc54k5","Cgf0Aa","qxjYB3DeB3DUt3v0BgLUzwq","y29UDhjVBerPCMvJDgLVBG","rg90CW","57Ut5P2F5A2J5BQM","5lUo57Ur5A6A55Qe5PwW5O2U5lIT6ycj5OUP5A2x5Q61","twLUDxndAxjJBgvpDxrSAw5Lza","mZC1nZi2mfzIB25pAW","5PwW5O2U5RgG77Yi6iQc54k554Q25Ocb55sO77Yj","yNvPBhrPBKLK","rxLLt3v0BgLUzwq","y29UDgvUDgvKAxrHyMXL","B3b0Aw9UCW","Dgv4Dc1ZBsb0zxH0lwDYyxKTntaW","vgv4DefYzwe","C3LUyW","yxr0CI4","5l6l5AAc77YABg9HzfrYzw5K44cbzMv0y2HezxzPy2vmAxn0","Bw91C2vpDMvY","mdeY","zMXLEc0X","z2v0u3rHDgu","uhjVDMLKzxi","CgfYzw50tM9Kzq","ywjZB2X1DguGDg9WltaGBgvMDc0WihbVAw50zxiTzxzLBNrZlw5VBMu","re9nic8G5PwW5O2U6k+35Rgcic8G5Asw6yoO","5y+V6ycj77YA57Ur5A6A5zco6kgO6l6+5BYp5lIT55QeigrHDgeG5lYA5ywi5zci5BM26k+L5PwW5O2U6zUg55QeihnHBxbSzE+8JowgJEwqIow5TUEuU+w4G+s8OowfPEEAHoI/KoIHJoAxTUAvSoAnRUoaGUs4JEE7KEwUMUAxTIbKyxrHios7HEADPEIhQUI/KoIHJoAxTUoaGG","ywX0s2v5","5z6c55U05yIg5BId","z2v0sw5ZDgfUy2u","igHHBMrSzsbPzdOGiG","zxHLy3v0Aw9Uugf0Aa","x2HHC1bHCMvUDa","5PAh5lU25lIk5lYG5lIT","C3r5Bgu","z2v0vMLLD3bVCNq","lteWic0XmcaYmcaYma","lNjLywn0lwzSB3DFx3bHBMu","C2vSzwn0","ug9Wy29UzMLYBq","y29UBMvJDgLVBKXVB2T1Ca","y29YBMvY","57Uy5yI25lIT","vxbSB2fKt3v0BgLUzwq","zw1PDa","y3vYC29YlwDYywi","Dg91y2HLCW","x2v4zwn1Dgu","mNb4igrHC2HLzcb0CMfUC3bHCMvUDa","ww91ihbYB3zPzgvKia","AxnwywXPzenVBM5Ly3rPB24","Bw0VCW","y2HLy2TLza","5ywO6ycj5B2t6Ag1","zxHLy3v0Aw5NigeGy2fUy2vSBgvKigfJDgLVBG","C2v0q2vUDgvY","zgLYzwn0Aw9U","vw5NCM91Ce91DgXPBMvK","CxvLCNLtzwXLy3rVCG","zMLSDgvY","x196B29T","yMCTD2HPDguGChGTmsbYB3vUzgvK","tw9KywW","6ycj5OUP5BM05lU9","rgvSzxrL","CMvJDcGWChGSidbWEcWGmhb4lcaWChGP","odu4z1vQtwrs","5lIk5lIa5BM05lUJ","vevyvefsrue","5PEG5zU+54Mh","55s75BId5A+85ywL5OIq5yQF77Yb","zML0vMLLD1jLC29SDMvY","C3rYywLNAhq","y2fUDMfZ","5AAc77YA55s15PY65Rwl54k56zUg","zgvMyxvSDa","i2zHogmXnG","tgvMDe91DgXPBMvK","twv0yq","6Ag65PE26zki5PEl6l2S6kEs5BQM77Yi5BQM77Yj","5PwW57UeicG","y29UBMvJDgLVBK1Vzgu","6l6t5ywL54Q25Ocb5zcn56EW","y2XPzw50wq","BM9KzuvSzw1LBNq","CMvHy3qTzMXVD19FBM9Kzq","zwrPDgLUz0v2zw50uM9VDeLK","u2nOzwr1BgvKigfJDgLVBIb0AhjLDYbMywXZEsbLCNjVCG","6BYG5Qch56E75yE6","zg93BG","u0vmrunu","BMfUB2LK","Dg9VigXHDgu7igfSCMvHzhKGC2nOzwr1BgvK","i2yWzJbMma","C2vSzwn0zwrtDgf0Dxnjza","z2v0u25HChnOB3q","55+L6ygt5lQg","C3rYAwn0","B3bHy2L0Eq","BgLUzvDLAwDODa","zwXLBwvUDhntzwXLy3rHyMXL","AxnfzgL0Aw5NrxzLBNrgBg93","x3jLBw92zvbHCMvUDa","vxbSB2fK","AxrLBq","z3jPzcbNCMLKlwnVBhmTncbNyxaTmG","y29UBMvJDe9Uq2XPy2S","ChjVzhvJDgLVBG","sxqGC2vLBxmGDgHHDcb5B3uGyxjLihrYEwLUzYb0BYbKCMfNigeGBM9Kzsb0Agf0igLZig5VDcbPBML0AwfSAxPLzc4GugXLyxnLihvZzsbVBK5VzgvZq2HHBMDLigfZigv4CgXHAw5LzcbPBIb0AguGzg9JCY4","zMXLEc0XigGTzNvSBcbIzY1NCMf5lteWma","C3rHy2S","C2vSzwn0zwroB2rLswq","zw51BwvYywjSzq","6iQc54k55PwWoIa","zMXLEcbNyxaTna","BgfIzwXtAg93qMC","6ycj5OUP5OIw5yIB5BU65lQl5lU25Rwb","vg9Nz2XLieLUDgvYywn0AxzPDhK","yMX1zq","uhjVDMLKzwqGB2jQzwn0igrVzxmGBM90ignVCNjLy3rSEsbPBxbSzw1LBNqGu3LTyM9SlM9IC2vYDMfIBgu","zM9UDfDLAwDODa","DgHHDa","DgLTzxi","x2nVBxbSzxrL","t2jQzwn0igLZig5VDcbPDgvYywjSzs4","zgf0yvrYyw5ZzMvY","CMvZzxrtzwXLy3rLzevSzw1LBNrZ","yw50za","6lw354k5ifK","zM9UDc1TzwrPDw0GDgv4Dc1ZBq","rxzLBNrgBg93qMLUzgLUzW","6BYG5Qch5OYj5lIl","lI4U","zhvYyxrPB24","ChGSia","6k+35AgR5yAz5O+q56s65yAf5A65","q2XHC3mGzxH0zw5KCYb2ywX1zsa","DMfSDwvtDhLSzq","C3LUy1zPzxDWB3j0","mJi4mdy1ngnhuKXUqW","zxjYB3jZ","zgvNksa","zMXLEcbPDgvTCY1Jzw50zxiGz2fWlte","A2v5Dxa","5BYa5AEl5BM05lU9","AxnbCNjHEq","z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y","5A2x5l2t5AsN5Bcp","zhjHz3n0yxj0lMrYywC","rML0ifzPzxC","u3rYywLNAhrfzgDLsw50zxjUywW","CMvHy3qTzMXVD19Fy29UDhjVBhmTAw50zxjHy3rPDMu","5yIG6zMK6k+L5PwW5O2U6zUg77YF","DgLTzq","zw5K","wM9VBsbjBG","Aw5KzxHpzG","AwnVBNm","Ac1MDwXSigzSzxGGzMXLEc1JB2W","Dgv4Dc1SzYbMB250lw1LzgL1Bq","yMfJA2DYB3vUzenVBg9Y","u21VB3rOu3rLCevKz2u","DgL0Bgu","CMvJB25Uzwn0ywjSzq","ywzMzwn0C1K","zgvNkq","y3vYCMvUDenHBNzHC0LK","r3jVDxbpDxrSAw5Lza","CgfYDgLHBe9IC2vYDMvY","Dg9iyw5KBgu","6k+35AgR5yAz5Asw6yoO5PA55Rov5Qch6k+g","6iom5PMV6AkC6iMY","zxzHBhvHDgvtDgf0DxnfEhbYzxnZAw9U","6ycj5OUP6kAb57Ur5A6A55Qe6iQc54k5","ANn4","zxjYB3iWmdu","tufyx1zbtfvf","zM9YBwf0sgv4","CMvNAxn0zxjfDMvUDejSB2nR","xhmQkfSRlv0/kd86xgqQxc4Pp1XKkYG/oLTLrv1BkY1Dp1XKkYK/ksvCCYO","CMvZzxq","zxzLBNrgBg93","Aw5KzxG","5Asw6yoO5PA55Rov5Qch6k+g","rhjHz091DgXPBMvK","CgWTmIbIB3jKzxiTBc0YigjVCMrLCI1HBwjLCI0Zmda","qNv0Dg9U","y29UBMvJDgLVBG","zwrNzvf1zxvL","DMLZAwjSzq","mI4WlJa","CgfYyw1ZtMfTzq","z2v0rxzLBNrcBg9JAW","y29SB3i","Ahr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMC","CMvTB3zLrxzLBNrmAxn0zw5LCG","6k+36ycj5OUP5PE26zE0","Dgv4Dc1NCMf5ltqWma","C3rHDhvZtgLZDa","ChjLDMvUDerLzMf1Bhq","Aw52zxj0","C2v0qxr0CMLIDxrLtLm","DhjHBNnSyxrLwcGTntaLkq","6BYG5Qch6yEk5Ps+","x+EkTUAaGq","yxv0B1bHBK9Uq29UBMvJDa","x19KzwzHDwX0x18","CMDIysGYncWXndqSmJu1ldaUmdGP","zw5KlNjLBw92zq","ChjVzhvJzq","B3zLCMzSB3CTAgLKzgvU","y29UzMLN","ios4QUIkGUEcUq","C2v0sw50zxj2ywW","y2XLyxjjBNrLCNzHBa","BwLUwa","khbYzwzLCNmTy29SB3iTC2nOzw1LoIbKyxjRkq","zMLSzq","Bwv0yuTLEq","y2XVC2vZDa","x19LC01VzhvSzq","zgLZywjSzuTLEwjVyxjKqteXEq","C2v0uhjVDg90ExbLt2y","x196B29TAw5N","CMLNAhq","i2iXyJfInW","6ycj5OUP5PEL5PYF","BM9Kzq","CMvHy3qTzMXVD19FzwrNzs1WyxrO","5PAW5BU65PwW5O2U6zUg","y29UDhjVBhmUyxjPyuXHyMvS","zhjHz0HHBMrSzq","Axnqyw5ty3jVBgXPBMC","Dgv4Dc1NCMf5ltyWmcbTDc0WlJu","zM9UDc1Zzw1PyM9Szcb0zxH0lwDYyxKTnZaW","C3r5BguU","6ycj5OUP5zgO","5ywL5y+c5zcn77Yi5OYj6l+E57Q/6Ag65BQp77YjoIa","5lQl5lU25z2x5PYQ6ywn572Uigv4DgvYBMfSsgfUzgXLCKTLEq","6zw/54k5lEEFREEcUEs6PoABVW","C291CMnLsgfUzgXL","54MP5PAz5BQt","ChjLDG","zwrNzxm","lcb5oIa","CMvHy3qTzMXVD19FBM9KzxnZzwXLy3rPB24TCMvJDa","D2fYBG","AgfUzgXLCW","AgfZt3DUuhjVCgvYDhK","C2v0rgvMyxvSDe5VzgvZqw5KrwrNzxm","rwrNzvrLEhq","5z+656ga5B2I54Q2","Eg1SBNm","6iQc54k554Q25Ocb55sO55Qe5PwW5O2U6zUg77Yi5lIo5lQl5lU25Rwb5PEG5ywZ77Yj","Bwv0yq","C2v0tM9Kzxm","DhjHBNnSyxrLqNK","CMvTB3zLqxr0CMLIDxrL","uMvHy3qGrMXVDZOGDhjPz2DLCIbUB2rLignOyw5Nzxm","5yIG6zMK5PAh5lU2","6iQc54k55zcn56EW","zgvZDgLUyxrPB24","77Yi5BEY5yIG6zMK77YA","CMvJDa","5RE75yQG54Q25Ocb","mtaWjq","DhjPz2DLCK5Vzgu","jhTSywjLBh3POBVLNkGKE21PBN0TjhTTyxH95lMl6zE0","5lIk5RI46l+E57Q/iokgKIdMNkZLNzCGyxjNCYdPLk7LKi0","BM9KzvK","AgfZqxr0CMLIDxrL","57Ue5yAf55s75BId77Yi5OYj6Ag65BQp57+76Ag177Yj","BMv3wq","zMXPCfG","vw5HyMXLihrVigXPzNqGDw5RBM93BIbpyNnLCNzHyMXLihr5Cgu","Ahr0CdOVl3D3DY53mY5VCMCVwe1mlZe5otGVBMfTzxnWywnL","5BEY57Ur5A6A5PwW5O2U5RQq77Ym5A6E6zMf5yc85Bcg5P2L6iEQ5PwW5O2U5A2x5Q61","y29UBMvJDgfIBgu","y2HHBMDLzfrVDwnOzxm","BxqTmIbWltiGyM9YzgvYihjVDw5Kzwq","6ycj5OUP6kEM5y+r5PA55BYp77Yire9nic8G5PwW5O2U6k+35Rgcic8G5Asw6yoO77Yj","54Q25Ocb5yIx6kgO","BM9KzvG","u21VB3rOu3rLCa","rMfPBgvKihrVihbHCNnLigrYB3bWzwqGBwf0zxjPywW6","z2v0qxr0CMLIDxrLtLm","C2nHBgvuBW","6iQc54k55Qc55O2U54Q25Ocb6kgO6l6+5BYp6k6H566x57Ut5P6C5PI+56s65A+55BQu54MP5PAz77Ym56YS5lIa5lIQ6l+u5zUEihrYDwuG55Qe54Q25Ocb5lI65B2t5yMn54Q25Ocb","Dg91y2HTB3zLlMrYywC","yxr0CLr3zwvU","BM9KzuLK","y3rYBeTLEq","55sX6kgO6l6+5BYp6iEQ5yQO6k6H566x","5PYQ55+L5yAf572U5yQO5l2CoIa","C3rHCNrsB3rHDgu","ywzMzwn0C1G","BM9eCMfNq2XHC3noyw1L","qMv6AwvYrwrNzuLUDgvYBMfS","rM9YBq","y2HLy2TIB3G","BwvTBW","t3b0Aw9U","zMXLEcbPDgvTCY1Jzw50zxiGz2fWltiGBwiTmW","jsWG","y3vZDg9T","yxjPyuXHyMvS","i2q5zdLKoq","CMvZzxrgAwvSzhm","Cg9SEwXPBMu","5lQl5lU25z2x5BEY5PU05PAW","Cg9W","5A2x5l2t57kx57Ug","BM9Kzu5HBwu","DMfSDwvgB250v2vPz2H0","y2fUy2vS","ltuSltqGmcWWic01ldqGltuSltq","ywjZB2X1DguGDg9WltaGBgvMDc0XlZiGDY00igGTncbIzY1NCMvLBI01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","zgv2zwXVCg1LBNq","y29UDhjVBhmUEM9VBu91Dc5HCMLHtgfIzwW","rxzLBNqGzMXVDYbLEgvJDxrPB24GzMfPBgvK","CMvHy3qTzMXVD19FzwrNzs1KzxnJ","x2nOzwnRrMLUywXPEMvKu3rHDhvZzxm","y29UDhjVBhmUzML0vMLLDY5HCMLHtgfIzwW","zhjVCevMzMvJDa","C3LTyM9S","z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9YCW","qMfJA3nWywnL","DhjHBNnSyxrL","y2XVBMvfBgvTzw50","DMfSAwrHDgvgAwvSzhm","6ycj5OUP5PwW5O2U5A2x5Q61","Bw92zwq","mda0","qwXPz25sAwDODe91DgXPBMvK","y2XPy2TeAxn0yw5Jzq","5zU+54Mh5zYW5z2aicHZCMmP","y29UDgv4Dg1LBNu","qMfJA2DYB3vUza","B25dBgLJAW","zxHPDa","mc4Zzw0","6ycA6Akr6ycF5BQM5PYj5Pwi5yc8","zgvSyxK","x19UzxDFxW","BM93AgvLBa","6k+36ycj5OUP5BEM5l6N5lIa5lIQ5zcm57QN5ywZ57o757Ue","Dg9ju09tDhjPBMC","5Asn5yI25OIq5yQF","BM9Kzs5Hmtf5rgvZy3jPChrPB24UzgvMyxvSDa","57Ue5zci6ycj5lIT6iQc54k5","5PwW5O2U5QIH5OUF","55s75BIdide","5yIG6zMK5B2t6Ag1","iZuYyZqXyq","EfnUyxbWzwq","5Bcg57Q/5P2H5y+y5lI65z6c55U057Q/77Ym5l+D5OYb6zw/5BQM","x19VBG","ywrKrxzLBNrmAxn0zw5LCG","BM9Kzu9YAwDPBG","CMvSzwfZzvbVAw50zxjdyxb0DxjL","5Rwl6k+v5PwW5O2UicHku09okq","CMvHy3qTzMXVD19FBwLUAw1HCc1TyxnR","BwWTmIb0zxH0lxnTigzVBNqTBwvKAxvTihrLEhqTyMX1zs02mda","5OYb57UT5PE26zE077Yi56Es77Yj","rxzLBNq","5lYy5ywi5lUo57Ur5A6A5PwW5O2U6iEQ5yQO6i635y+w77Ym5lMF5y+V5OMl5yQO6l6t5ywL","Dgv4Dc1SzYbMB250lwjVBgqGDgv4Dc1NCMf5ltuWma","zML0vMLLDW","yM9VBgvHBG","CMzFx21PBMLTyxa","y2XPzw50v2LKDgG","zMLUywXPEMu","DMLLD3bVCNqT","ihDOzxjLigeGC3rYzwfTihDHCYbLEhbLy3rLzc4Gww91ignHBIbWCM92AwrLigfUie9IC2vYDMfIBguSifbYB21PC2uSifjLywrHyMXLu3rYzwfTlcbbCNjHEsWGqxn5BMnjDgvYywjSzsWGB3iGsxrLCMfIBguU","twf0zxjPywXqyw5LBa","zxHLy3v0B3juExbL","C3rVCeLTBwvKAwf0zvbYB3bHz2f0Aw9U","iZaWmdaWma","DMfSDwu","6ycj5OUP5PwW5O2U6zUg","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCG","ywrK","y2XPzw50tgvMDa","Aw1Tzxi","6ycj5OUP55s75BId5yQG5ywL","zgLZCgXHEu5HBwu","sw1Hz2u","z2v0vMfSDwvgCM9Tugf0Aa","zwrNzq","5OMN6kgm5PA55BYp","Aw5qCM9NCMvZCW","BwiTmcbTDc00","Aw50zxjWB2XHDgvcDwLSDgLUu3rYAw5N","tgvMDa","BgfIzwXcz1bHzgrPBMC","5PwW5O2U6zUgia","AgvPz2H0","C3rHCNrbBMDSzq","6yca5yE66k+L57Ue55Qe5Rwp6kEi5QIH5BYp77Yi5Asw6yoO57+76Ag1ifvjiowWHUEMGEEuQo+8Iq","6ycj5OUP57Q/5P2H5Qc35BYp","Cc0ZigjNlwjSDwuTntaGyM9YzgvYigjVCMrLCI1IBhvLltiWmcbYB3vUzgvKlwXNig1Iltq","5Bcg57Q/5P2H5y+y5lI65Rc05BMZ57Q/77Ym5l+D5OYb6zw/5BQM","mda4","6k+36ycj5OUP6kEM5y+r5PA55BYp","C2fTCgXLsNnVBG","5yIG6zMK5zco5PEG5Rov5OgI5Asn77Ym5PIV5zcM57UN57UT77YF","ANn4CW","mdaX","AxrLCMf0B3i","zgLZCg9Zzuv2zw50uM9VDfbPCgvSAw5L","CM9VDfbHCMvUDeLUzgv4","u3rLCevKz2u","CgfYzw50swq","ugXLyxnLig9UBhKGAgLKzsb0AgLZigf0DhjPyNv0Aw9UihDOzw4GEw91igfYzsbZDwjZy3jPyMvKihrVifjLywn0iezSB3CGuhjVoIbODhrWCZOVl3bYBY5YzwfJDgzSB3CUzgv2","5PAh5PYS5Qch562+","6ycp5PIo5BQM","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWmcbWEs04","y2HLy2TwAxnPyMLSAxr5","C25HCeDYAwq","CMvZDgfYDa","Dgv4Dc1ZBsbMB250lw1LzgL1Bq","jhTSywjLBh3MNidLSjeKE21PBN3KUkRLRzFNRky","Bw91C2vy","Dg91y2HLBMq","Bw91C2vvCa","CgfUu2nYB2XSvgLTzw91Da","BM9YBwfSu3r5Bgu","zxzLBNrcBg9JA3m","mca0ChG","y3vYCMvUDfrHCMDLDa","6Ake6kEi5QIH5BYp","yMLUzenVzgvZ","q29SDw1UsgvPz2H0t3v0BgLUzwq","5lQl5lU25Rwb","BM9KzxndB25Uzwn0ywjSzq","Dgv4Dc14CYb0zxH0lwDYyxKTntaW","5PQc5lIn5PsV5OYb57Yw6l6r5Q2K57g75z6l55Qe54MP5PAz","BgLUzxm","5PEP5PYF5ywZ5RoO","CMv0DxjUigzHBhnLoW","ywjZB2X1DguGDg9WltaGBgvMDc0WihbVAw50zxiTzxzLBNrZlw5VBMuGB3zLCMzSB3CTAgLKzgvU","q29UDhjVBhm","C3bHBG","z2vVBwv0CMLJuhjLy2LZAw9U","CgfYC2u","BM9Kzuv2zw50qMLUzgLUz3m","5OUw5OU96lcd5Pw057Ui54k5","B25fzgL0","u3LTyM9SlMfZEw5JsxrLCMf0B3iGAxmGBM90igrLzMLUzwqU","DgLTzxjjza","5OMN6kgm5lUJ56cb","tw96vxnLCLnLBgvJDa","C3vIAMvJDa","5lIk5lIa5BM0icHdB250CM9S6zsU5yQG5BEM5PA55zcr6zsUkq","5y+w5RAi5ywO6ycj","EKLUzgv4","C2nHBgvcEq","x25Vzgu","C291CMnLswq","y29SBgvJDerHDgfZzxrgAwvSzfbHDgHZ","r2vUzxjHDg9YigLZigfSCMvHzhKGzxHLy3v0Aw5NlG","DxbKyxrLtM9KzuLUDgvYBMfSCW","zgvSzxrL","DY1MDwXSigGTzNvSBcbMBgv4igzSzxGTy29SigP1C3rPzNKTy2vUDgvYigDHCc0X","C3LZDgvT","5Qgg6ycj5QIH5BYp","C2nHBgvy","ugfYDgLHBa","Dgv4Dc1NCMvLBI02mda","5A+85ywL5lI65PAW55s75BId77Yi5lIn6kAg55Uw5B2t5yMn55s75BId77Yj","6lw35Q2I5l2n572U77Yi55U45A+56iQc54k577Yj","oJPLEhq6oG","6ycj5OUP5PYi5lU9","Bw91C2vmzwf2zq","B25nB3zLrw5K","x25HBwu","z3jVDxa","576K57Ue6iQc54k5","zgLZDgfUy2u","q29UzMLNrwrPDg9Y","yMCTz3jHEs01mcbYB3vUzgvKlwXNihaTmYbIB3jKzxiGyM9YzgvYlwDYyxKTmJaW","y3LHBG","5PAW5BU65lQl5lU25Rwb","54k555s757Q/77Yi5lIT5B+d57Q/77Yj","y3jPC3bfzgDLCW","yMfZAwm","BgLI","CMvHzefZrgf0yvvsta","C3rYAw5N","sxqGC2vLBxmGDgHHDcb5B3uGAgf2zw4NDcbSB2fKzwqGDgHLihn0EwXLCY4GugXLyxnLigLTCg9YDcaNqhH5zMXVDY8","5PAW6iQc54k5","BwfYA2vYrw5K","yM91BMreyxrHC2v0swq","Dg9W","tK9erv9eruXfveu","C3zN","jhTSywjLBh3MMk/KUidKUkRML6dMLyJML6xMNj8","AwrLBNrPzMLLCG","z2v0q29TChv0zwrtDhLSzq","DgfYz2v0","yxjPyvjVBgu","yxnpyNnLCNzHyMXL","Aw50zxjYDxb0lNPVB20Gzw5KlNPVB20","u2LTCgXLqMv6AwvYrwrNzq","5PAh5A2x6AkC6iMY","zgfZAgvK","iIbKB2vZBID0igv4Axn0lG","CMvHy3qTEM9VBs1Wyw4TCgLUy2G","DMLLD3bVCNq","Bw91C2vKB3DU","5A+85ywLiePtt04","ywjZB2X1DguGlxrVCc02igXLzNqTmcbIzY1IBhvLltuWmcb0zxH0lxDOAxrLihrLEhqTEhmGChGTmIbWEs0WlJuGCM91BMrLzcb3AgL0zxnWywnLlw5VD3jHCa","Dg91y2HZDgfYDc5KCMfN","Dgv4DgfYzwe","rNvSBa","6l6t5ywL5zU+54MhifvstcdMIjyGrgf0ysbvuKK","Ac1MDwXS","CMvHy3qTzMXVD19FBwLUAw1HCc1UB2rL","CMvZB2X2zuzSB3DfDMvUDejSB2nR","5lIl5A+56B2q","zgf0yvbVB2W","566H55cg55s75BIdlI4U","ttmYide4lJeZm0GXoc4XmZnwmZjOltqUmJy2vJe4lJeZm0GWDI00lJi2nMGXmY44nJDwmgG0lJi2nNyXmY44nJDimZj6","CMvHza","Dg90ywXjBMnVBwLUzW","5lUo57Ue5lIT56E76zMK","tgf5B3v0","x190CMfUC2L0Aw9U","y3jLyxrLrgvMyxvSDfn0yxr1CW","A2v5CW","zMXVD0rHDge","zgfYAW","CMvHy3qTzMXVD19FBM9Kzs1KzxnJ","ioMHUsK","zg9Uzq","CMvHy3qTzMXVD19FzwrNzs0","rxnJyxbL","zxHLy3v0zuv2zw50rMXVDW","BgLUzwfYlwDYywrPzw50khrVihjPz2H0lcbYz2jHkdi0mcWYndaSmJqWldaUmdmPidfWEcWGDhjHBNnWyxjLBNqGmxb4ksWGBgLUzwfYlwDYywrPzw50khrVigjVDhrVBsWGCMDIysGYndaSmJqWldi0mcWWlJaZksaXChGSihrYyw5ZCgfYzw50idfWEcK","vgfN","mc4X","y2fUDMfZswrZ","u2vSzwn0t3v0BgLUzwq","C2v0","5PQc5PEG54MP5PAz","C3fYDa","teLorq","ywjZ","D2fYBMLUzW","mxb4ihnVBgLKicnKowq5zdK","wvLzwq","zwfZzq","DMfSDwvdB2XVCG","5PYQ6ywn572U55UU5Qch55s75BIdieLe","DY0XmIbOlteYig14lwf1Dg8GBwiTmsbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCG","i2zMzG","CMvHy3qTzMXVD19FzwrNzxm","ig5VDcbMB3vUza","C3rHCNry","57Q/5A6977Yi5yop57sG77Yj","sgfUzgXL","yxjNCY5WCMv2mq","mtKYma","CMvHy3qTzMXVD19FzwrNzq","yM91BMreyxrHC2v0qMLUzenVzgu","zgf0ys1Oyw5KBgvWB3m","igrVzxmGBM90igv4Axn0lG","6k+36l6t5ywLjhTSywjLBh0","qxjYB3DvCe91DgXPBMvK","5zU+54Mh5zcn56EW","C3rHCNrizwLNAhq","x3bHCMvUDa","5y+V54k55yE7","55s754k557Q/","Bw91C2vTB3zL","5y2v5y+c5PwWigrHDghVViJLR7NOSAhVViNVViZPOBSGCMv0DxjUihrYDwuVzMfSC2xVVjVMTyVNGRNMLBdNU4tMJiKGCgfYyw1Zq29KzsdLKiJLUBBOV5SGzgf0yEoaGG","w3jVBgu9iMnVBwjVyM94iL0","yMvMB3jLC3rHCNq","rwrNzvjLBMrLCMvY","5PEl6l2S6kEs5BQM","B3bLBG","5PYQ55+L55s75BId","B25fCNjVCG","y3jLyxrL","BwfYA2vY","xcKK","B25gAw5HBgL6zq","y3jLyxrLq29UDgv4Da","lcdOV57MJQxMLBa6ia","B25nB3zLu3rHCNq","C2nOzw1LxW","5y+Z6zsU6i+C5y2v","iw1Ylta","Dgv4DenVBNrLBNq","zMLYC3q","5lIl5lIa6Ag1","77Ym6Ake6kEi5PE25lUL5QIH5P2/5lI65BQv5zci5BM255s75BId44cm5QIH5OUF5PwW5O2U44cn44cc5PwW57Ue5Qc85BYp6zYa5yYf5zcRig5HBwuG5A2x5Q6155sO5lQo6ycj5OUP44cc","5OUw5OU96lcd5Pw05AsN5Bcp","y3jLyxrLrxzLBNq","5Qch562+5PAh5PYSicHSywjLBcK","yMfJA2DYB3vUzeLTywDL","zgvMyxvSDhm","5y+n6ycj5B2t6Ag1","57+75yIW5lIl5lIa6Ag177Yi5z+65lQo5B2t5yMn55s75BId77Yj","C3rHDgu","zwrNzxnszwnVBM5Ly3rHyMXL","x2vUDgvY","zM9YBwf0shnS","AgvHBhrOr3jHzgvoyw1L","yxbWzw5K","B25ezwXLDgu","C2fTCgXL","Bg9JywXLq29TCgfYzq","Dg91y2GW","i2vImMy5nG","zM9UDc1TzwrPDw0","Aw50zxjWB2XHDgu","u3LTyM9SlML0zxjHDg9YigLZig5VDcbKzwzPBMvKlG","AhnSka","zMXLEcbPDgvTCY1Jzw50zxiGz2fWltq","5Rc05BMZ5yIg5BId","xNjNyMfCka","5PQc5PEG5lQl5lU25Rwb","y3vYCMvUDfn0yxr1C0LK","57Ui54k5ifK","CMLUzY00ihjPBMCTyMX1zs00mdaGCMLUzY1VCgfJAxr5ltuW","6Ag75lI6jhTSzw595lIQjhTSywjLBh0","ufjpuevsvfLFq0HbtKDf","CMzjza","Dw5ZDwjZy3jPyMu","C2v0tM9Kzuv4DgvUDa","y29WEq","zMLUza","zgf0yq","B25dB25Uzwn0rw5K","5PYQ55+L57g75z6l","zxzLBNq","6k+36ycj5OUP5zgO","u3rYywLNAhq","CMvZDwX0","yM91BMrHCMLLCW","tgLUzxm","CMvZAxPL","5B2t5yMn54Q25OcboG","yNvPBhrPBG","C25HCfrVr3jPza","BgLUzs1KCMf3","yM9YzgvYq29SB3i","DxnLu3rHDgu","CMzFx2nVBNrYB2XZ","5A2x5Q615PwW","y29UDgvUDa","zMX1C2G","zgf0ys4","C2vSzwn0zwroB2rLCW","CgLWzq","C3rHCNroB2rLwq","Ac1MDwXSigzSzxGGzMXLEc1JB2WGyMCTD2HPDguGyM9YzgvYlxiGyM9YzgvYlwDYyxKTmJaW","iIWGzwrNzsbPzdOG","5Asn5yI25lIn6lEF6zQp","z3jLzw4","5RIq5y+y6iMY","DMfSDwvZ","B2jQzwn0","6l6t5ywL6iQc54k55zcn56EW","BM9KzuXVB2T1Ca","lY8G5y+V55sO5y+c5PwWoGOVlYbUB2rLic0G6kEM5y+r5lQl5lU255Qe6iQc54k5cI8VignVBNrLEhqGlsdKUOVKU7BKUiRKUiVMLOCklY8GyxjNCYaTios8OowfPEEAHowpGUAvSaOkCMv0DxjUigfYz3m7","mZK3mg9brMrcBq","C2LU","yMCTD2HPDgu","lMfUDc1ZzwXLy3qTzhjVCgrVD24","CgfYDgLHBa","mdeZ","CMvZAxPLrgLYzwn0Aw9U","C2v0vMLLD3bVCNq","C2v0vgLTzq","6k+35ywi57Ur5A6A5PwW5O2U6zUg","CMvHy3qTzMXVD19FyxjPys1SAxzL","zNvUy3rPB24","y3vYC29Ylw1VDMu","zM9UDfnPEMu","CMDIka","DgHYB3DUrxjYB3i","6BYG5Qch56E75ywL","6BUy6k6K6Ag555UU","C2v0twLUwM9VBq","zxzLCNK","Ahr0CdOVl3D3DY53mY5VCMCVmtK5os94AhrTBa","vevyva","ywjZB2X1DguGyM90Dg9TltqGCMLNAhqTncb6lteWigjNlxDOAxrLihjVDw5KzwqTBgCGC2HHzg93lwXNihaTmG","AgfUzgXLCG","q29UDhjVBcbqyw5LBa","ywjZB2X1DguGyM9YzgvYltiGyM9YzgvYlwjSDwuTntaWigjNlwjSDwuTntaWlZeWihbVAw50zxiTzxzLBNrZlw5VBMu","y29UBMvJDgfIBgvLBMq","y3jVC3m","zMLSBenVBg9Y","Dg9gAxHLza","yxnZzxj0AxzL","jhTSywjLBh3KUi3MMk/KUidKUkRMNiNMLyJNMOqKE3r5Cgv9","5Qch6k+g5lIn6io95lI656M6","yxjPyuXHyMvSq29UzMLN","Aw5ZDgfUDa","6k+36ycj5OUP","zNjLzq","CMvUyw1L","CMvHy3qTzMXVD19FzwrNzwXHyMvSlxjLBMrLCMvY","y29UzMLNrwrPDg9Y","Bwf0CML4","CMDIysGWldaSmcWWkq","yMLUze5VzgvfDMvUDa","jhTSywjLBh3POBVLNkGKE21PBN0TjhTTyxH95A2x56YM5lMl6zE0","CgfNzvK","zMXLEc0Xig1PBI13lta","C3bHy2uTEs00","C3r5BgvuD2vLBG","y3vYCMvUDe9IC2vYDMvYCW","zxH0zxjUywXiyw5KBgvYs2v5","uMvHy3qGrMXVDZOGDhjPz2DLCIbLzgDLignOyw5Nzxm","Bwf4wM9VBq","CMvZAxPPBMC","6ycj5OUPiePtt04G5PAh5lU25A+85ywL77YA","q29SDw1Uv2LKDgHpDxrSAw5Lza","DY1MDwXSigGTzNvSBcbMBgv4igL0zw1ZlwnLBNrLCIbQDxn0Awz5lwnLBNrLCIb0zxH0lwDYyxKTmZaWihrLEhqTEhm","kow9K+wjJsK","y2XVBMvoB2rL","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsiXmdaIigHLAwDODd0InJaIpJXYzwn0ihDPzhrOpsiXmdaIigHLAwDODd0InJaIigzPBgW9iImXodKWzMyIihj4psi0iI8+pc9ZDMC+","CMvHy3qTzMXVD19FCMvUzgvYzxi","BgLUzvr5Cgu","DgfYz2v0sgfUzgXL","Bw91C2vfBNrLCG","5AgR5ywf6AkC6iMY77Yi5z+65PYS5B2I54Q277Yj","C2fTCgXLiow/HEMHU+AyRYbku09oiowVUEIXOEAiLUAvSoE7Ha","C3jJ","Bwf0zxjPywW","yNv0Dg9U","q1vtve9n","zM9YD2fYzfjLzG","BwiTncbWltmGyMCTyMX1zs01mcbIB3jKzxiGyM9YzgvYlwjSDwuTmJaWihjVDw5KzwqTBgC","y3vYCMvUDa","5A2x5Q616lEV5B6e77Yi54k55yE75O+s5ywL6kgO6l6+5BYp77Yj","sxrLBq","y29UC3rYDwn0B3i","CMvSyxrPDMuG","5l6l5AAc77YA5l+D5A2y5OIq5yQFioAiLIdNU5pMNPZVVjP7E3bYzxz9Fq","AgLZDg9YEq","zxH0zxjUywXiyw5KBgvYq2f0ywXVzW","CgHHBNrVBq","CMvHy3qTzMXVD19FDMLLD3bVCNqTCg9YDgfS","DhjPBq","y29UDgfPBNm","BwLUwM9VBq","5lIn5zcm5PA55BYp5A+55BQu5lIl5PA55lIn5zcm6ywn572U6Ag5","Aw1N","Bw9Kzq","iokaLca","mcaWidmYidmY","DhjHBNnWyxjLBNq","yw50ze1LC3nHz2u","6kEM5y+r5PA55BYp","5A+85yE65B2t5yMn55s75BId","5PAh5lU25Qc85BYp6zsz6k+V","r3jHCgHwAwv3","C2vJB25Kyxj5","zxjYB3iWmte","Dhj1zq","5yQO55s76ywn572U","zxjYB3iWmdy","Cgf0Ae9WDgLVBNm","ioADOEwfPEI+UsdIHPdJGiW","Dg91y2GX","ywn0AxzL","Aw52ywXPzcbJywXSyMfJAZOG","y2fSBgjHy2S","B2zMC2v0","Ac0XmIbIB3jKzxiTyIbIB3jKzxiTz3jHEs0YmdaGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUihb4ltqGyMCTz3jHEs01ma","Bs9ZWRi","C2XPy2u","y29TCgXLDgu","y2XLyxi","CNvUDgLTzuHHBMrSzxjZ","vg9W","zgvMyxvSDe5VzgvZ","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igeGBM9Kzs4GuhjLC3mGzgvSzxrLihrVihjLBw92zsbPDcbHBMqGzxnJyxbLihrVignHBMnLBc4","5lQK5O2I6lw354k55zkm57Ui54k5","zgvSDgfy","56gU6k6K5yIG6zMK","6k+36ycj5OUP5PYi5lU9","DgvZDa","zMLSBgvK","x3rYEvn1yNnJCMLIzq","zxH0zw50","zxHW","5Asw6yoO5lQl5lU2","C2v0u3rHDgu","y2vUDgvYignLBNrLCG","iZe4otbMzG","zw50zxi","5lIk5lIa6Ag1","C2vSzwn0q2HPBgq","8j+sOsdMJ5dNPlRVVjRMI5BMI73NIANMLPNLIldNLlVLUipLIjVLU7ROIOlNGRNVViZNGRNLH7VNUR/MNAhNIANMLPNOV5VLHAxNU5JLIlBMQkhLVi8","5y+Z5A+56B2q","ltuSltqGmcWWic01ldq","jhbYzxyU","C3rYAw5NAwz5","CMvTB3zLuhjVCgvYDhK","55s75BId566H55cg","CMvHy3qTzMXVD19FzwrNzs10zxH0D3jHChbLCG","DhjHBNnMB3jT","ChGP","yNvPBhrPBKnVBMzPzW","Dg9izxHtDhjPBMC","5Q+p5lIQ5PwW5O2U6zUg5y+V5lUL5PIViePtt04G5A+56lgH5QIH5P2/77YiuMvJB3jK77Yj5OIw5PwW57Ue44cc54Q25Ocb57Ur5A6A5zco77Ym6kgO6l6+5BYp562+5zcn5lI6","zgv0ywLS","5PwW57Ue56YSia","zhjHz2DHyMXL","5PQc5PEG5PwW5O2U6zUg77Ym6k+35OMt5BYa44cm5PwW5O2U5RgG44cn5RE75yQG","DxnLu3LUy0v4DgvYBMfSu3rVCMvxAxrOu2vSzwn0B3i","CMvZB2X2zq","57Ur5A6A6iQc54k5","zgf0Dw0","B25oB2rLtw91C2vnB3zL","DhjHBNnPDgLVBIa","C3DPDgnOq2fUDMfZ","ChjLDLzPzxDWB3j0","qxjYB3DdBg9Zzwq","Dg91y2HZDgfYDa","DxbKyxrLtM9Kzq","y29UDhjVBhmUEM9VBuLUlMfYAwfmywjLBa","yxjYB3DJBg9Zzwq","CgfYzw50tg9VA3vW","jhTSywjLBh3KUi3OG73KUlRNQBRLRzFNRky","DgfYz2v0q2fUDMfZswq","u3rYywLNAhrfzgDL","5ywL5y+c5zcn56EW77Yi5OYj6l+E57Q/6Ag65BQp77Yj","C2L6zq","CMvHy3qTzMXVD19FBwfYA2vY","BMfTzxnWywnLvvjj","u3bHy2u","5OMN6kgm6kgO6l6+5BYp","jhTSywjLBh3LV4xPOBVNRyNKUO4KE2XLBN0","C2nOzwr1BgvY","BwLUwq","y2HYB21L","xMHZBgfCka","CMzFx25VzguT","BxqTmsb0zxH0lwfTyMvYltGWma","BwfYz2LU","6kEJ6zMK57Ue5zci","DhjHBNnWyxjLBNqSicnMzMySihvYBcGUlI4P","zxjYB3i","BM9Kzs5Hmtf5rgvZy3jPChrPB24UA2v5yM9HCMreAxnHyMXLza","C2LIBgLUz0DYB3vWCW","C2nHBguO","zM9JDxnHyMXL","ChGS","BgvMDa","zw5HyMXLrxzLBNrgBg93","56YSideG6kgm5A+55BQu56YSideG5P2H5OYh5zcr5PYS5z2x55Qe6l+E57Q/77Ym56YSidiG6kgm5A+55BQu56YSidiG5P2H4OcM4OcM77Yi6Ag65BQp5lIo55s75BId6l+E57Q/5RE75yQG6Ag65BQp5lIa6iE077Ym5ywi6l+E5zYO5yMn77Yj44cc5lIn5RE75yQG6kgm5PE277YA5y2v5ywL6l6555sO","y3vYC29YlxbVAw50zxi","yM90Dg9TlxjPz2H0","Dgv4Dc1ZBq","BgLZDgvUzxi","yxbWBgLJyxrPB24","mdaY","mJaYodyXnvzdDgvSwa","5PQc5PEG54Q25Ocb77Ym54k55yE75lIk5PA55OYj6zkU5RE75yQG","AgvHza","6k+36ycj5OUP5OMN6kgm5PA55BYp","zwrNzxngB2n1C2fIBgu","C2v0vMLLD3bVCNrdB25ZDhjHAw5Lza","mtjWEa","ChjPBwfYEq","vhLWB2DYyxbOEq","Dg9VigXHDgu7igfSCMvHzhKGCNvUBMLUzW","6k+L5PwW5O2U6zUg55QeihnHBxbSzsdKUlRMLBdNU4tVViZOR7FPGiNMI6NNLkJKUO7LJlNPHy3MLBdMJA7POBNNMOtLRzFMRRu","Aw5JBhvKzuHPzgrLBK5VzgvZ","x2LK","5BEY5OMR5O+p","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWma","5yAf572U5yQO5l2C5PYQ6ycj5OUP57g75z6l","B25tzwXLy3rPB25eCMfNu3rHCNq","B3bLCMf0B3i","zgvSDgfnB2rL","iIbUB3qGzM91BMqUifvZAw5NigzHBgXIywnRihr5CguGiMrLzMf1BhqIlG","zMfJDg9Y","y2XPy2SUzhjHzW","mcaWidmYidu","CgfZDa","CMfUz2u","qeb0B1bYAw1PDgL2zsbTDxn0ihjLDhvYBIbHihbYAw1PDgL2zsb2ywX1zs4","BMv4Da","Bw91C2vTB3zLlMrYywC","ue9tsvrjvKvFsu5gsu5jvfK","DMfSDwvgB250u2L6zq","y2XHC3nmAxn0","u2LTCgXLqMv6AwvY","wvLzwEw5Ta","C291CMnL","rNjHz21LBNq","zgvJAw1HBhm","zM9JDxm","mtzbqvbQrg4","vMvYDgLJywXbBgLNBLrVCe91DgXPBMvK","57Ur5A6A54MP5PAz","ChvZAa","Dg9mB3DLCKnHC2u","Aw52zxj0wq","CMvWzwf0kdGSidfMCIK","CMvHy3qTzMXVD19Fy29UDhjVBhmTzML0DMLLDW","5RE75yQG5lQl5lU25z2x","rw1WDhK","6iom5PMV6Ake6kEi","57Ut5P2F5PEL5PYF","CMv0DxjUig51BgW7","cIaGicaGicaGicbYB3vUzgvKlwXNihrYyw5ZAxrPB24TywXSigr1CMf0Aw9UltiWmcbZzwXLy3qTBM9UzqOGicaGicaGicaG","DxnLCK5Vzgu","C2nOzwr1BgvYqwn0Aw9Uq3rVCG","x2vYCM9Y","y2XLyxjbBgW","Aw1Hz2uVkG","Aw5Zzxj0qMvMB3jL","rxzLBNqGyMXVy2SGBM90igzVDw5KoIa","77Yi5y+V6ycj77Yj","5ywZ6zET6kgm","zhjHz2DPBMC","5Bcg6k+L57Ue6k6+5lI65Rs76lEd57Ue77Ym5Asw6yoO57+76Ag1ifvjioAnRUATPowqR+EuQa","yxbWBgLJyxrPB24VANnVBG","5PYa5AsAjhTTyxH95lIQjhTSywjLBh0","C3vIC2nYAxb0Aw9UCW","BwiTmW","C3rYB2TLv2LKDgG","Aw50zxjUywW","Dgv4Dc1Jzw50zxiGDgv4Dc1NCMf5ltqWmcbWEs00igjNlwDYyxKTntaGCM91BMrLzc1SzW","zg9JDw1LBNrfBgvTzw50","5BEM5A+56B2q","lMrYywC","Dw5RBM93BIb0ExbLoIa","B2jZzxj2ywjSzq","zNvSBa","B2jZzxj2zxjZ","uMvHy3qGrMXVDW","yxjNCY5WCMv2","Dg91y2HTB3zL","ywjZB2X1DguGDg9WltaGBgvMDc0W","Bwf0zxjPywWTChjLDMLLDYb3lteYigGTmtiGzMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Jzw50zxiGCM91BMrLzcbIB3jKzxiGyM9YzgvYlwDYyxKTmJaWia","u1fsvdi","yw55","mNb4ihnVBgLKia","5PYa5BcrjhTTAw595lIQjhTSywjLBh0","zxzLBNrcBg9JA0LK","zNjVBu5Vzgu","ChvYCgXL","yxjYB3C","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUig1Ilti","BNvTyMvY","EKLUzgv4tw9Kzq","DxjSka","CMvHy3qTzMXVD19FyMfJA2DYB3vUzc1Wyxr0zxjU","Bwf4","54Q25Ocb6kgO6l6+5BYp5OMN6kgm5AsX6lsLifS","Cgf0DgvYBG","57Yw6l6r5lQl5lU25z2x","x25HBwvZ","C2v0uhjVCgvYDhK","BgLZDa","twLUAu1HCa","u3DHCe91DgXPBMvK","C291CMnLtgfIzwW","BwiTncbWltmGyMCTyw1IzxiTntaGCM91BMrLzcbIB3jKzxiGyM9YzgvYlwfTyMvYlteWmcb0zxH0lxnT","qebPDgvYyxrVCG","tKvhqvrjvKvFsu5gsu5jvfK","CMvNAxn0zxjjBNrLCM5HBe1VzhvSzvn0B3a","B3DUzxjeB2n1BwvUDa","BgfZDeLUzgv4","lwnHBNzHCY0","C2vSzwn0zwrfzgDLCW","5PU05O2I54MP5PAz","5PI+56s6572r5Qc8","qxjYB3Dmzwz0","EMGTy24","DhjHBNnSyxrLka","xNjNyLWO","BwLU","z2v0u2vYDMvYu3rHDgu","y292zxi","DgHYB3C","Aw5Uzxjive1m","BM9Kzvf1zxvL","mdeW","5Pon5l2C5OIq5yQF","Bw91C2u","rxzLBNqGzMXVDYbLEgvJDxrPB24GzMfPBgvKoG","CMDI","ywXS","mxb4ihnVBgLKicnMmgyWzJa","5yc85P2L5RQq","vhjHBNnMB3jTq29TCg9Uzw50","DxnLzfjPz2H0tw91C2vcDxr0B24","BMf0AxzLrxzLBNq","uhjVBwLZzq","57Ur5A6A5yc8","5A+85yE65OIq5yQF77Yb","yM9YzgvYihjVDw5KzwqTBgCGCc0Yign1CNnVCI1WB2LUDgvYigHVDMvYoMjVCMrLCI1IBhvLltuWmcbOB3zLCJPIzY1IBhvLltuWihrYyw5ZAxrPB24TywXSihrLEhqTy2vUDgvY","zgf0ys1Pza","Bw91C2vTB3zLlNPVB20GBw91C2v1Cc56B29T","y29UDgvUDeLUzM8","x2zPBMfSAxPLCNm","CMvQzwn0","twfJ","6l+E57UT5A6E57Q/","57Q/5P2H5BgE5OcN","zNjVBq","yw4GAw52ywXPzcbVyMPLy3q","B25tzwXLy3rPB25dAgfUz2viyw5KBgvYCW","lwzSB3DFx2HHBMrSzq","Bw91C2vTB3zLlNPVB20","DxnLq29UDgv4Da","CM9VDa","Ac1MDwXSigzSzxGGAxrLBxmTy2vUDgvYigP1C3rPzNKTy2vUDgvYigjNlxDOAxrLigjVCMrLCI1SigjVCMrLCI1NCMf5ltiWma","sxrLCMfIBguGy2fUBM90igjLig51BgW","5Asw6yoO5PA55Rov","CgfUzurYywDNAw5N","Cc00igjVCMrLCI1IigjVCMrLCI1NCMf5ltiWma","vMvYDgLJywW","B25oB2rLC0nOyw5Nzq","C2v0vgLTzw91Da","y3jLyxrLrxzLBNrgBg93ugLWzwXPBMu","ywjZB2X1Dgu","y29UBMvJDgLVBLjHzgL1CW","tM8GC3rHCNqGBM9KzsbMB3vUzcbPBIbLDMvUDcbMBg93","yMCTyMX1zs01mcbYAw5NltiGCMLUzY1IBhvLltqWma","twfYA2vYihr5CguGiG","C2HVDwXKvw5ZDwjZy3jPyMu","yMfJA2DYB3vUza","5A+85ywL57Ue5Ocb5PA55Qgi","zg90","zwXLDMf0zuvKz2vZt25tzwXLy3q","zgf0ys1Oyw5KBgvPza","x3zHBhvL","tgLUzq","lxDLyMTPDc10yxaTAgLNAgXPz2H0lwnVBg9Y","qxjYB3DvCa","BM9KzxngB2n1C2fIBgu","AxnwAwv3","ttiXlJmZmYaXmc42nJDimtKUodfwnY42mtLdmtKUodeGmY40mJKGmtyUmZGGmcaXmI4XosaWidGGmca0lJu3msaZlJqYosa0lJu3msa3lJyXoxyZlJa0oeGZlJa0oeeZlJa1nIaZlJa1nIaWidaWmcaXmY43mtr2mtuUmJm4qtmUmdu2idmUmdu2idaGmdaZlJa0ocaZmMGXoc4YodvHmY4WntyGmY4WntyGmcaWmdmUmdq4ltmUmdq4vJeZlJCXngeZlJa1nIaZlJa1nIaWidaWltmUmdq4ltmUmdq3EK0XmI4XosaYnc41mZnHmY4WntyGmY4WntyGmcaWms0ZlJa0nY0ZlJa0nYaZlJa1nIaZlJa1nIaWidaXmY4WndCTmY4WndGGmY4WntyGmY4WntyGmcaWmtmUmdq4idmUmdq4idmUmdu2idmUmdu2idaGmdeTmY4WndGGmY4WndD6BtqUnZi0lteZlJG2nKG3lJq2n1y3lJyXowmWltiUntKGmI4XmZmTnc43mJqGnc43mJmTnc43mJqGmI41oteGmca0lJCYncaYlJeZmYa0lJCYnca0lJCYnhyZlJa0ohO","CMvHy3q","CMvWBgfJzq","tg9VC2u","6yEn54k55ywZ5RoO","yw5PBwf0Aw9U","rwrNzsbMCM9Tia","C3rLCa","B25fzgDLC0rLBgv0zq","5OUw5OU96lcd5Pw06lw354k5","y2HLy2TfCxvHBgL0Eq","zxzLBNrsB290CW","z2v0u2nYzwvUq1rn","AxneCMf3Aw5N","iZCYmMvKmq","Bwf4lwGTwZqWmhb4xsbVDMvYzMXVDY15lwf1Dg8","6k+35Rgc5PwW5O2U","BM9Kzs5Hmtf5rgvZy3jPChrPB24UyxjPyuXPDMvnzxnZywDL","CMvUzgvY","Bwf0CML4vhjHBNnMB3jT","54Q25Ocb5zcn56EW","yMCTD2HPDguGyM9YzgvYlwiGyM9YzgvYlwDYyxKTmJaWigzSzxGGAxrLBxmTy2vUDgvYigP1C3rPzNKTyMv0D2vLBIbWEc00ihb5lti","zxHWB3j0CW","zMXLEcbPDgvTCY1Jzw50zxiGz2fWlti","DgHLBG","B25oB2rLq2XPy2S","BwLUt3bHy2L0Eq","re9ntwf0CML4uMvHze9UBhK","w1jLywn0iezSB3DDifrOzsbWywrKAw5NihzHBhvLici","qM90Dg9T","t2jQzwn0vw5ZDwjZy3jPyMvKrxjYB3i","5PwW5O2U6zUg","B25oB2rLq29UDgv4De1LBNu","54k55yE755s75BId56gU5A6A6lw354k55zkm57Ui54k5","5OUw5OU954MP5PAz5yIW55s75BId5yIB5BU66iQc54k5","5y+V6lcd5Pw05AsN5Bcp","zgvZy3jPChrPB24","BxmGzwfZzs1PBI1VDxqGAw5MAw5PDguGywX0zxjUyxrL","zgf0yvjLCxvLC3q","zMXLEcbMBgv4lwnVBca","cIaG","5zcn56EW5lIn6io95lI656M6","77Ym5AsA5ywL6l6555sOia","x19WCM90B19F","zxHWCMvZC2LVBG","qxjYB3C","D2HLzwWUEM9VBq","zxjYB3iWmde","Axnoyu4","6zw/5yIs6zE06zQu","C3rHDhvZ","Aw52zxj0wa","56gU6k6K5yIG6zMK6k+L5zcm57QN5ywZ57o757Ue77YF","Aw5MBW","BgfUzW","z2v0uhjVCgvYDhLwywX1zq","BM9KCMfN","ioIHJowHQ+wgMEwpGUAvSowqJEwnS+wpR+IhQUwUMUs5IEMuRUwqJE+8IoMHU+s4JUwfPEI+UEMHUUw6J+s4GoIhTo+8IEoaGG","Cc02","5lIk5lIa5lIw57QQ","y2vUDgvY","5lIl5lIa5BM0icHdB250CM9S6zsU5yQG5y+Z5PA55zcr6zsUkq","ie0Wia","A2v5zg93BG","zM9UDc1TzwrPDw0GDgv4Dc1ZBsb0CNvUy2f0zq","6zw/5yIslEwpJoEcUEs6PoABVW","6l6t5ywLiePtt04G5Qc85BYp55Qe5Rwl6k+v5PwW5O2U77YB5PYQ57Yw6l6r5yMn55s75BId6lEF6zQp5Asw6yoOigrLzMf1Bhruzxn0rgf0yE+8IowMGUEBKEAoP+AoQoMaGE+8Iq","Dgv4Dc14CYbTyI0X","C2HVD0DYAwq","yxbWzw5Kq2HPBgq","C3rHCNrz","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igeGBM9Kzs4Gww91ignHBIb0AgvUihvZzsb0AguGyxjYB3CGA2v5CYb0BYbTB3zLihrOzsbUB2rLigfYB3vUzc4GuhjLC3mGzgvSzxrLihrVihjLBw92zsbPDcbHBMqGzxnJyxbLihrVignHBMnLBc4","BgLUzujVEa","BMv3","CgWTmsbIB3jKzxiTBc0YigjVCMrLCI1HBwjLCI0Ymda","i2zMngq0zG","6ycj5OUP5BEY5RoO5yAm55Qe5Asw6yoO5PA55Rov","ugX1C091DgXPBMvK","ChjVDg90ExbL","wM9VBuLUt3v0BgLUzwq","C29Tzq","y2fUDMfZzxm","Dg9tDhjPBMDuywC","lNjLywn0lwzSB3C","AxnAB29TAw5Nt3jqyw5UAw5N","y29Uy2f0","zw5HyMXLza","D2HLzwXezwX0yq","Aw52zxjZzq","xMHZBfWO","DxnLCLnLBgvJDgLVBLjLy3q","zw5Kwa","nsW1","mtjWEcaW","Dw5VyNnLCNzL","CMv0DxjUihrYDwu7","t1busu9o","AgfUzgXLqM91BMrZ","CMDIysG","Cc0ZigjVCMrLCI10igjVCMrLCI1NCMf5ltiWmcbIzY1NCMf5ltuW","vw5ZDwjZy3jPChrPB25fCNjVCG","5lIl5lIQ5PYiicJNV7VPOBxKUiVPLk4P","6BUy6k6K5yc877Yi5Ash55sO77Yj","y3jLyxrLu1zhug9PBNq","B25tzwXLy3rPB25eCMfNu3rVCa","y29UC3rYywLU","B3DUzxjtvKDfBgvTzw50","Dgv4Dc1NCMf5ltqWmcbOB3zLCJP0zxH0lxjLzc01mdaGy3vYC29YlxbVAw50zxi","5Asn5yI26iQc54k5","5PYQ5RoO5yAmigv4DgvYBMfSiowKHoEqHUwzQdOG","ywn0Aw9UCW","DY1MDwXSia","y2XVC2vKlq","Dw5KzwzPBMvK","5Rwp6kEi5lIT","CMvTB3zLqxr0CMLIDxrLtLm","zxjYB3iWmtm","zxHLy3v0zuzSB3DoB2rLCW","zg9JDw1LBNq","6ycj5OUP5QIH5BYp","w2nVBNrLBNrLzgL0ywjSzt0IDhj1zsjD","C2nHBgu","6lEZ6l2S55s75BId","CgfKzgLUzW","Bw91C2vz","ugXLyxnLihvZzsbGz2v0tM9KzxncB3vUzhnGigzYB20GyhvZzvjLywn0rMXVD2aVyhvZzvn2zwX0zuzSB3DGigHVB2SGDg8Gzw5ZDxjLignVCNjLy3qGDMfSDwvZigzVCIbZDwiGzMXVD3mUieLMig5VDcbWB3nZAwjSzsWGEw91igHHDMuGDg8GChjVDMLKzsbHig5VzgvmB29RDxaGDg8GC3vWCg9YDcbZDwiGzMXVD3mU","rgf0ywjHC2vpDxrSAw5Lza","BwvZC2fNzq","CMv0DxjU","C3vIBwL0","5BYa5AEl5PEL5PYF","5l6l5AAc77YACMvMCMvZAcdMIjyGCgfYzw50oNjLBg9Hza","zgLZCgf0y2HfDMvUDa","zgvMyxvSDfzPzxC","AxndBgLJA2fIBgu","CM90yxrL","DxnLrgvIDwDwywX1zq","C29YDa","zgf0yvjLCxvLC3rlzxK","AxndBgLJA2fIBgu6","tw9KDwXL","zg9TtM9Kzq","5Asw6yoO5lQl5lU25Qch6k+g","6iQc54k5ieLeoIa","AxnwywXPza","zgv2AwnL","54k55yE75yI35PAW","DhjPz2DLCK5VzgvdAgfUz2vZ","BgfIzwXcz1n0EwXL","ksbZy2fSzvKO","y2XVC2vK","zMXLEc0XigjVCMrLCIbIB3jKzxiTz3jHEs0YmdaGCM91BMrLzcbWlti","5PQc5PEG5lQl5lU25Rwb57Ur5A6A","BwiTmG","57ky6ls0iePtt04G5yAf5A65lI4U","zg93BMXVywq","ios4JEwTMowCQa","qxjYB3DsAwDODa","igvYCM9YCYbVy2n1CNjLzcbKDxjPBMCGDw5ZDwjZy3jPChrPB246cG","ChjVBwLZzq","q2XVC2vpDxrSAw5Lza","ANvTCfrVq2fUDMfZ","y29UDhjVBeLUzM8","57Ur5A6A5PwW5O2U6zUg","5lQl5lU25z2x5PYQ6ywn572UigrHDgfszxf1zxn0s2v5","zML0vMLLD09WDgLVBNm","uhjLC3mGzw50zxiGB3iGC3bHy2uGDg8GC2vSzwn0igfUigvKz2uUifLVDsbJyw4GDgHLBIbWCMvZCYbKzwXLDguGDg8GCMvTB3zLigL0ig9YigvZy2fWzsb0BYbJyw5JzwWU","6yEn572U6kEg5zU+","zMXVB3i","CgfNzvG","B25nB3zL","B25oB2rLrhjHz1n0B3a","ENvZDgfUza","6ycj5OUP6k+L5A2x5Q615A+55BQu55Qe5yw35l2t5yc85lUL5A6A5l2n5PwW5O2U6Ag5","mcaWidi1idmY","yxv0B1bHBK9UtM9KzuzVy3vZ","BM9Kzxm","AwnVBG","DhDLzw4","x2nHBgW","ww91igfYzsb1C2LUzYbHBIbVDxrKyxrLzcWGChjLlxjLBgvHC2uGywXWAgeGB2yGuMvHy3qGmtGGDgHHDcbKB2vZig5VDcbZDxbWB3j0ihvZzvn5BMnfEhrLCM5HBfn0B3jLlIbuAguGDxnLlxn5BMmTzxH0zxjUywWTC3rVCMuGC2HPBsb3AwXSig5VDcb3B3jRignVCNjLy3rSEs4GvxbNCMfKzsb0BYbHig5LD2vYihbYzs1YzwXLyxnLlG","qMv6AwvY","uMvHy3rAB29TugfUugLUy2G","CMvHy3qTzMXVD19FBM9Kzxm","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi4mciGAgvPz2H0psi4mci+pgnPCMnSzsbJEd0IndaIign5psi0mciGCJ0ImZGIigzPBgW9iIm1mMm0mweIlZ48l3n2zZ4","jhTSywjLBh3MLBdPH4/POBVLNkGKE21PBN0TjhTTyxH95lMl6zE0","iIbYEd0InciVpJWVC3zNpG","zgLTzw5ZAw9UCW","A2v5","C2vSzwn0zwq","B25oB2rLrhjHz1n0yxj0","Dg91y2G","DMvYDgLJywW","zgvSzxrHyMXL","CMvXDwvZDefUAw1HDgLVBKzYyw1L","z2v0rwXLBwvUDej5swq","5Pw05z2x6l+u5zUE5yc8","DgHPy2TUzxnZ","t25SEsbJAgLSzcbUB2rLCYbJyw4GDxnLigeGCgfYzw50igv4DgvUDc4","yMfZzwXPBMu","Cg9ZAxrPB24","zwrNzuLUzgv4","mde1","CMvHy3qTzMXVD19FAgfUzgXLlq","6k6+5lI65Rs76lEd57Ue","zgf0yxnLDa","CgvUzgLUzW","mcaYChGGohb4ihjNyMeOmcWWldaSmc4XnsK","6zw/5yIslEEcUEs6PoABVW","BM9KzurYywDuAhjLC2HVBgq","C2HPzNrlzxK","ywjZB2X1DguGDg9WltaGCMLNAhqTmcb3ltmGAc0ZigjNlwjSDwuTntaWigjVCMrLCI0YigjVCMrLCI13AgL0zsbYB3vUzgvKlwz1BgW","Ag9YAxPVBNrHBa","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvUihCTzNvSBcbWCI00","57YP5Ps+5Q+u5l6l","5yAf6l656lED","BwfUDwfS","z2fTBwe","C2vSzwn0zwroB2rLswrZ","DhjHBNnSyxrLwa","y2f0y2G","56s65l6l5PwW5O2U77YisLnptIdLR7NOSAhMIjBMLBdNU4tVViK","mZuWmti3nfLIqKPryW","vgHLig9SzcbLzgDLihDPDgGGAwq9","vg9VBhrPCa","zg9Tqxr0CMLIDxrLCW","BM9Wyw4","idaGvG","CgfUwM9VBq","Aw52B2TLuNvUDgLTzuHHBMrSzxi","C2LIBgLUz3m","zNjVBuHHBMrSzq","ChjVCgvYDhK","6yca5yE65Rwp6kEi","yw5PBwf0zwq","BxqTncbMBgv4igP1C3rPzNKTzw5K","yMXPBMS","ieHLBha6igH0DhbZoI8VCMvHy3rMBg93lMrLDI9LCNjVCIm","sLnptIdMOlZLVi/PLjNOR6/VViZOR7FMO4dMN6xOVPpLHAu","BM9Kzuv4DgvUDa","zMLSzxm","zgvZyW","5zcr5zcoiduG6Ag1","5PYa5Bcp6ycp5PIo5BQM","w2rHDgeTBM9Kzs1Pzd0I","iZu5ntK1oq","B25czwzVCMvezwXLDgu","D2HLzwW","576K57UexW","C2vUDa","y2XHC3m","yMfJAW","Dg91y2HLBMqUEM9VBsb0B3vJAgnHBMnLBc56B29T","5zcm57QN5ywZ57o7","5OUw5OU95PEl6l2S","zxzLBNrtDwjQzwn0CW","Aw5WDxrZ","C2TLD1GO","C29SAwq","C2nHBgvz","twvZC2fNzsdMJ5dNPlO","BM9Kzs1OzwfSDgGTz3jHzguTyMXPBMST","Aw5PDgLHBfrLyxjKB3DU","zxzLBNrcBg9JAW","i2zHywqXna","B25qB2LUDgvYrg93BG","BgfIzwXgB250u2L6zq","AxntzwXLy3rLza","ufjfu0vovevex0LnquDfx1njtvbmrq","y2fSBa","5y+V6ycj5lIT","5PwW5O2U5A2x5Q615PEG5yc85PE25PI+56s65Q2K5Ash55sO5yc8","8j+sOsdMJ5dNPlRVVjRNGRNLH7VNU5JLIlBNUR/MRRxVViZLJ6/OV57NU63NU5JLIlBLPjRMRRxNUR/VViZLJ4ZLH7VNU5pMNz/NU5JLIlBVViXfu0mG5y+w5RAi","5PwW5O2U6k+35Rgc","Aw5SAw5Lu2nYAxb0","yM91BMreyxrHC2v0qMLUzfzHBhvL","C3vIC2nYAwjL","zgfZAc1KB3q","5l6l5AAc77YABMf2AwDHDgvuB+oaGw9Wzw5eAwfSB2C","zgvMAw5LuhjVCgvYDhK","B25tzwXLy3rPB25eCMfN","y3jLyxrLrwXLBwvUDe5t","BxqTmIbWltiGyMCTyMX1zs01mcbYB3vUzgvKihrLEhqTEhmGDgv4Dc1IBhvLltyWma","C3bHy2uTEs0Z","6ycj5OUP57Ur5A6A5A2x5Q61","nNb4idHWEa","6k+35AgR5yAz5OMN6kgm5lUJ56cb","zxH0zxjUywXfDMvUDeTLEq","x3rOCM93swzdBg9Zzwq","u2f2zu91DgXPBMvK","C3vWChjLC3nLza","BM9qyw5dBgfZC05HBwu","6l6t5ywL5yc85PAh5PYS","54k55yE757Q/5P2H54MP5PAz5BYa5AEl57Uy5yI2","CMvTB3zL","C2TLD1G","DY1MDwXSigP1C3rPzNKTzw5K","C3rHCNq","DY00igGTncb0zxH0lwjSDwuTnJaWigjVCMrLCI1NCMf5ltmWmcbYB3vUzgvKigzVy3vZoNjPBMCTyMX1zs01mda","54k55yE76zMn5BQp","yMX1CG","z2v0qxr0CMLIDxrL","DhjHBNnSyxrLkc0","CMvHy3qTzMXVD19FzwrNzs10zxH0yMC","Dgv4Da","5y2G5l2n56YM77YAE3TWCMv2Fx3JGif7E+wfPEwpGUwqJx19iow8LEEuQos4IUA4UoI/NUE6V+wfPEwpGU+8M3T7jgrHDgeUEhH4Fx0G5y+w5lQl5lU25lIk5lIl5PAhigrHDge","B3jPz2LUywXfDMvUDa","Dgv4Dc14CYb0zxH0lwDYyxKTndaW","CMvHy3qTzMXVD19FzwrNzs1PBNrLCMfJDgLVBG","CMvHy3qVANn4lxj1BNrPBwu","Dw5ZAgLMDa","x3bHCMvUDgfNzq","Bg9VC2u","6BYG5Qch6l+B5ywL","y2fUDMfZq29UzMLN","tufurvjjquXFu1rbvfvtx0niqu5hrq","CMvHy3qTzMXVD19FBM9Kzs0","zwzMzwn0qwXSB3DLza","6Ake6kEi5PAh5lU2","zw5KC1DPDgG","ksb0CMfUC2XHDguO","5zcr5yMnidmG6Ag1","BgLNAhq","q2fUj3qGy3jLyxrLigvKz2uUiefUigvKz2uGBMvLzhmGysbZB3vYy2uGyw5KigeGDgfYz2v0lG","Dgv4Dc14CYb0zxH0lwjSDwuTntaWigzVBNqTyM9Sza","C3rHCNroB2rLwa","Dg91y2HTB3zLlNPVB20","zwrNzuXVB2T1Ca","zMLUzefJDgL2zvn0yxr1CW","44cn77Yi5Pw05z2x6l+u5zUE5yc877Yj","z2v0sw5PDgLHBfn0yxrL","DxnLu3LUy0v4DgvYBMfSu3rVCMu","CMzFx3DYyxbWzxi","Dgv4Dc1IBhvLltqWma","5OUw5OU95QIH5BYp","5PAh5PYS5yAf5A65","zgvMyxvSDevKz2vpChrPB25Z","zxHLy3v0zq","BwLUAw1HCc5HCMLHtgfIzwW","Aw5ZDgfUy2u","x2fJDgL2zq","Bgv2zwW","AgLKzuf0DhjPyNv0Aw9U","zgf0yu1HChbPBMC","AgfZvMfSDwu","C2vSzwn0qwXS","DY04igGTmc41igjNlwDYyxKTndaW","yxbWBhK","zwXLBwvUDezYB21qB2LUDa","zgjSy2XPy2SUEM9VBq","zgf0ytPHChbSAwnHDgLVBI9QC29Uo2nOyxjZzxq9DxrMltGS","zMXLEcbPDgvTCY1Jzw50zxiGANvZDgLMEs1Izxr3zwvU","y3vYC29YlxbVAw50zxiGBwiTma","5A2q6iQc54k5ia","x3n1yNnJCMLIzq","B3bZ","y29TCg9ZzwrqyxrO","q29UDhjVBa","Ahr0CdOVl3D3DY53mY5VCMCVmtK5os94BgLUAW","DhjHBNnPDgLVBG","BgLUzwfY","BMv4DfnPyMXPBMC","yMfZzvzHBa","CMvXDwvZDefZEw5Jswq","ywjZB2X1DguGDg9WltaGBgvMDc0WihnLBgvJDc1UB25L","5yQO55s757g75z6l","BMfTzq","5yAf6igu6isA5PYS","Cg9PBNrLCG","Dgv4Dc1ZBsb0zxH0lwDYyxKTnJaW","C2vSzwn0tM9KzxnpBKrYywC","5lQl5lU25Rwb57Yw6l6r5zMO","lY8G5PsV5OYb5A+56lgH5OIw5PwW57Ue5Qc85BYpcI8ViowVUEIXOEAGVow8J++8MGP7cIaGiNnWzwvKiJOGmcWkicaIDgvTCci6idi1laOGicjUzxn0zwqIoIb7icj4iJOGmsb9cN0kcI8VioAvSoE7HoAGVow8J++8IoAVJ+MHUEMCGowmHEwqQYbUyw1LiowTL+AUTEEuQos6JUMaIEAlQE+8IE+8MGPBcIaGEYaIBMfTzsi6iclMTyVNGRKXiIWGiNzHBhvLiJOGmtaWlcaIDw5PDci6icjTBsiGFsWkicb7icjUyw1LiJOGiUA1I+EcUtiIlcaIDMfSDwuIoIaYmdaSicj1BML0iJOGiM1TiIb9cL0","CMvHy3qTzMXVD19FBM9KzxnZzwXLy3rPB24","ttmUnJKYidqUnJnJmc0UntmUnc0Uotm4lJKZos0Uotm4AduUmJe1vJbinc43mdHdmI4XmYaWidaGmI4WntqGmca0lJyZDJuUmJe2AdmUnJKYvJqUnJmXEK0YnY4ZntqGmgGTns4YDJmUnJKYAduUmtDJlJuZidaGlJK4nc40lJK4nc45mZL2ns4YmtvimZjwnc42mZfbnc42mJqGnc42mJqGmcaWmdi3lJm1ncaWEM0Uotu0idi0lJGZyZaGlJuZmI0Unc45nc0Uotm5lJK0Ac01lJiXnxyZlJC2ogG1lJiXnwmYlJu3nYaWidqUnJmXltiUmtmGnc42mZeTnc43mdD2ltuUmtm5Ac0ZlJy5mNy1lJeZoxPTltiZlJy3nY45ngmTlJuZmsaWls45mZKTlJqTlJKZos0Uotr2ltuUmtm4sdb2ns4XmZLJmcaYlJu3nYaYlJeZidqUnZa3idqUnZa4idqUnZa3AduUmtm4vJi1lJC3sdqUnJmXEG","q29UBMvJDgLVBKXPBMu","ChGPihnJywXLka","C2v0rMLLBgrZvMfSDwu","imk3ia","Dg91y2HHyMXL","x3bHCMvUDhm","iwjNlwjSDwuTntaW","BwiTna","B25SB2fK","BM9Uzq","Aw5WDxq","C3rYB25N","Cg93","DxnLuMvM","5PAW5BU655s75BId","CgfYyw1Zq29Kzq","AxnszxnPEMfIBgu","u3rLCa","qwXPz25mzwz0t3v0BgLUzwq","zg91yMXLq2XPy2S","BgLUzurYyxDPBMC","Aw5PDgLHBfDPzhrO","x2fKzfbHCMvUDa","AxneCMfNz2fIBgu","5PIV5zcM5zcV55sO5PYS5lQl5lU25Rwb","Dgv4Dc14CYb0zxH0lwDYyxKTntaWig1Iltm","ywjZB2X1DguGDg9WltaGBgvMDc0WihCTmYbOltmGyMCTyMX1zs01mdaGyM9YzgvYltiGyM9YzgvYlxDOAxrLihjVDw5KzwqTzNvSBa","BwfW","Aw50zxjUywXZ","5lQl5lU25Rwb5l+D5A2y5OIq5yQF","z2v0uMvHzgvY","6ycj5OUP5PwW5O2U5RgG5lIT55Qe5PwW5O2U6zUg","B3jPzw50","rNjLzq","y2HPBgrYzw4","DxjSkcnNCMLKkq","yM90Dg9T","phn2zYb4BwXUCZ0IAhr0CdOVl3D3DY53mY5VCMCVmJaWmc9ZDMCIihDPzhrOpsi2mciGAgvPz2H0psi2mci+pgnPCMnSzsbJEd0ImZaIign5psiZnsiGCJ0ImJaIigzPBgW9iInIzMjMyMyIihn0CM9Rzt0IiZu5ntK1osiGC3rYB2TLlxDPzhrOpsiYiI8+phjLy3qGEd0ImJuIihK9iJuIihDPzhrOpsiXmciGAgvPz2H0psiXnsiGzMLSBd0IiZu5ntK1osiVpJXWyxrOigq9iK0ZmcaYmcbmmZaGmZuGttiWidmWifeZmca0nsa0mcaZmciGC3rYB2TLpsiJntK1otu5iIbZDhjVA2uTD2LKDgG9iJiIigzPBgW9iM5VBMuIlZ48l3n2zZ4","yMLUze5Vzgvjza","C3rVCa","lte0ChG","5l6l5AAc77YACMvMCMvZAa","uMLNAhrpDxrSAw5Lza","q29SBgfWC2u","z2v0rgf0yq","Dg91y2HLBMqUzhjHzYb0B3vJAgnHBMnLBc5KCMfN","x19UB3nLBgvJDa","5zU+54Mh5BgE5OcN","zNjVBNq","zM9YrwfJAa","x+wjR+ACRa"];return _0x5a54=function(){return Ee},_0x5a54()}
|
|
10
|
+
+`)[u(1179)](`
|
|
11
|
+
`)),g=b[u(1872)]((h,v)=>h[u(1379)](...v),[]);return[b,g]}return[[],[]]},[e]);return D[t(1646)](()=>{const u=t,s=n?.[u(450)]??Dc,b=n?.[u(1189)]??!0;if(e!==null){const g=f=>{const w=u;if(r[w(616)]=f[w(2112)]||f[w(1204)]||f.shiftKey||f[w(671)],(!r.current||r.current&&!b)&&Aa(f))return!1;const y=Sc(f[w(1224)],d);if(i.current[w(1536)](f[y]),Lc(a,i[w(616)],!1)){const m=f.composedPath?.()?.[0]||f[w(450)],C=m?.[w(857)]===w(523)||m?.nodeName==="A";n[w(521)]!==!1&&(r[w(616)]||!C)&&f[w(521)](),x(!0)}},h=f=>{const w=u,M=Sc(f[w(1224)],d);Lc(a,i[w(616)],!0)?(x(!1),i[w(616)][w(1832)]()):i[w(616)][w(2117)](f[M]),f[w(427)]===w(1004)&&i[w(616)][w(1832)](),r.current=!1},v=()=>{const f=u;i[f(616)][f(1832)](),x(!1)};return s?.[u(1046)](u(1609),g),s?.[u(1046)](u(1634),h),window.addEventListener(u(548),v),window.addEventListener(u(1370),v),()=>{const f=u;s?.[f(1369)]("keydown",g),s?.[f(1369)](f(1634),h),window[f(1369)](f(548),v),window.removeEventListener("contextmenu",v)}}},[e,x]),o}function Lc(e,n,t){const o=c;return e[o(1947)](x=>t||x.length===n[o(492)])[o(1321)](x=>x.every(r=>n[o(1308)](r)))}function Sc(e,n){const t=c;return n.includes(e)?t(1224):t(427)}const ff=()=>{const e=Je();return D.useMemo(()=>({zoomIn:n=>{const t=_0x51e5,{panZoom:o}=e[t(2285)]();return o?o[t(929)](1.2,n):Promise[t(1858)](!1)},zoomOut:n=>{const t=_0x51e5,{panZoom:o}=e[t(2285)]();return o?o[t(929)](1/1.2,n):Promise[t(1858)](!1)},zoomTo:(n,t)=>{const o=_0x51e5,{panZoom:x}=e[o(2285)]();return x?x[o(970)](n,t):Promise[o(1858)](!1)},getZoom:()=>e.getState().transform[2],setViewport:async(n,t)=>{const o=_0x51e5,{transform:[x,r,i],panZoom:a}=e[o(2285)]();return a?(await a[o(2033)]({x:n.x??x,y:n.y??r,zoom:n.zoom??i},t),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const n=_0x51e5,[t,o,x]=e[n(2285)]()[n(1713)];return{x:t,y:o,zoom:x}},setCenter:async(n,t,o)=>{const x=_0x51e5;return e[x(2285)]()[x(1754)](n,t,o)},fitBounds:async(n,t)=>{const o=_0x51e5,{width:x,height:r,minZoom:i,maxZoom:a,panZoom:d}=e[o(2285)](),u=Zo(n,x,r,i,a,t?.padding??.1);return d?(await d[o(2033)](u,{duration:t?.[o(1163)],ease:t?.[o(2166)],interpolate:t?.[o(1110)]}),Promise[o(1858)](!0)):Promise[o(1858)](!1)},screenToFlowPosition:(n,t={})=>{const o=_0x51e5,{transform:x,snapGrid:r,snapToGrid:i,domNode:a}=e[o(2285)]();if(!a)return n;const{x:d,y:u}=a.getBoundingClientRect(),s={x:n.x-d,y:n.y-u},b=t.snapGrid??r,g=t[o(1141)]??i;return Gt(s,x,g,b)},flowToScreenPosition:n=>{const{transform:t,domNode:o}=e.getState();if(!o)return n;const{x,y:r}=o.getBoundingClientRect(),i=Yx(n,t);return{x:i.x+x,y:i.y+r}}}),[])};function Nc(e,n){const t=c,o=[],x=new Map,r=[];for(const i of e)if(i.type===t(1536)){r[t(573)](i);continue}else if(i[t(1592)]==="remove"||i[t(1592)]===t(1009))x.set(i.id,[i]);else{const a=x[t(689)](i.id);a?a[t(573)](i):x[t(643)](i.id,[i])}for(const i of n){const a=x[t(689)](i.id);if(!a){o[t(573)](i);continue}if(a[0][t(1592)]===t(2193))continue;if(a[0][t(1592)]===t(1009)){o[t(573)]({...a[0].item});continue}const d={...i};for(const u of a)hf(u,d);o[t(573)](d)}return r[t(1755)]&&r.forEach(i=>{const a=t;i[a(1145)]!==void 0?o.splice(i.index,0,{...i.item}):o[a(573)]({...i[a(544)]})}),o}function hf(e,n){const t=c;switch(e.type){case"select":{n.selected=e[t(471)];break}case t(675):{typeof e[t(675)]!==t(644)&&(n.position=e[t(675)]),typeof e.dragging!==t(644)&&(n.dragging=e.dragging);break}case t(1688):{typeof e.dimensions!==t(644)&&(n.measured={...e[t(1688)]},e.setAttributes&&((e[t(1154)]===!0||e.setAttributes===t(434))&&(n[t(434)]=e[t(1688)][t(434)]),(e[t(1154)]===!0||e[t(1154)]===t(725))&&(n[t(725)]=e[t(1688)][t(725)]))),typeof e[t(1855)]===t(2207)&&(n[t(1855)]=e.resizing);break}}}function kc(e,n){return Nc(e,n)}function Ic(e,n){return Nc(e,n)}function Sn(e,n){return{id:e,type:c(1244),selected:n}}function tt(e,n=new Set,t=!1){const o=c,x=[];for(const[r,i]of e){const a=n.has(r);!(i[o(471)]===void 0&&!a)&&i.selected!==a&&(t&&(i.selected=a),x[o(573)](Sn(i.id,a)))}return x}function Pc({items:e=[],lookup:n}){const t=c,o=[],x=new Map(e[t(1226)](r=>[r.id,r]));for(const[r,i]of e[t(1764)]()){const a=n[t(689)](i.id),d=a?.[t(815)]?.[t(988)]??a;d!==void 0&&d!==i&&o[t(573)]({id:i.id,item:i,type:t(1009)}),d===void 0&&o[t(573)]({item:i,type:t(1536),index:r})}for(const[r]of n)x[t(689)](r)===void 0&&o[t(573)]({id:r,type:"remove"});return o}function Ac(e){return{id:e.id,type:"remove"}}const jc=e=>O2(e),gf=e=>pa(e);function Yc(e){return D.forwardRef(e)}function Ec(e){const n=c,[t,o]=D[n(1595)](BigInt(0)),[x]=D[n(1595)](()=>yf(()=>o(r=>r+BigInt(1))));return dr(()=>{const r=n,i=x[r(689)]();i[r(1755)]&&(e(i),x[r(2081)]())},[t]),x}function yf(e){let n=[];return{get:()=>n,reset:()=>{n=[]},push:t=>{n[_0x51e5(573)](t),e()}}}const Uc=D[c(1821)](null);function mf({children:e}){const n=c,t=Je(),o=D[n(1507)](d=>{const u=n,{nodes:s=[],setNodes:b,hasDefaultNodes:g,onNodesChange:h,nodeLookup:v,fitViewQueued:f,onNodesChangeMiddlewareMap:w}=t[u(2285)]();let M=s;for(const m of d)M=typeof m===u(1019)?m(M):m;let y=Pc({items:M,lookup:v});for(const m of w.values())y=m(y);g&&b(M),y.length>0?h?.(y):f&&window.requestAnimationFrame(()=>{const m=u,{fitViewQueued:C,nodes:z,setNodes:P}=t[m(2285)]();C&&P(z)})},[]),x=Ec(o),r=D[n(1507)](d=>{const{edges:u=[],setEdges:s,hasDefaultEdges:b,onEdgesChange:g,edgeLookup:h}=t.getState();let v=u;for(const f of d)v=typeof f=="function"?f(v):f;b?s(v):g&&g(Pc({items:v,lookup:h}))},[]),i=Ec(r),a=D[n(2027)](()=>({nodeQueue:x,edgeQueue:i}),[]);return l[n(1283)](Uc[n(1685)],{value:a,children:e})}function vf(){const e=c,n=D.useContext(Uc);if(!n)throw new Error(e(464));return n}const wf=e=>!!e[c(651)];function ur(){const e=c,n=ff(),t=Je(),o=vf(),x=Ee(wf),r=D[e(2027)](()=>{const i=e,a=h=>t.getState()[i(1470)][i(689)](h),d=h=>{const v=i;o[v(1416)][v(573)](h)},u=h=>{const v=i;o[v(1396)][v(573)](h)},s=h=>{const v=i,{nodeLookup:f,nodeOrigin:w}=t[v(2285)](),M=jc(h)?h:f[v(689)](h.id),y=M[v(887)]?ka(M[v(675)],M[v(1168)],M[v(887)],f,w):M[v(675)],m={...M,position:y,width:M[v(1168)]?.[v(434)]??M[v(434)],height:M[v(1168)]?.height??M.height};return Fn(m)},b=(h,v,f={replace:!1})=>{const w=i;d(M=>M[w(1226)](y=>{if(y.id===h){const m=typeof v=="function"?v(y):v;return f.replace&&jc(m)?m:{...y,...m}}return y}))},g=(h,v,f={replace:!1})=>{const w=i;u(M=>M[w(1226)](y=>{const m=w;if(y.id===h){const C=typeof v===m(1019)?v(y):v;return f[m(1009)]&&gf(C)?C:{...y,...C}}return y}))};return{getNodes:()=>t[i(2285)]()[i(1349)][i(1226)](h=>({...h})),getNode:h=>a(h)?.[i(815)].userNode,getInternalNode:a,getEdges:()=>{const h=i,{edges:v=[]}=t[h(2285)]();return v.map(f=>({...f}))},getEdge:h=>t.getState()[i(989)][i(689)](h),setNodes:d,setEdges:u,addNodes:h=>{const v=i,f=Array.isArray(h)?h:[h];o.nodeQueue[v(573)](w=>[...w,...f])},addEdges:h=>{const v=i,f=Array[v(1996)](h)?h:[h];o[v(1396)].push(w=>[...w,...f])},toObject:()=>{const h=i,{nodes:v=[],edges:f=[],transform:w}=t.getState(),[M,y,m]=w;return{nodes:v[h(1226)](C=>({...C})),edges:f[h(1226)](C=>({...C})),viewport:{x:M,y,zoom:m}}},deleteElements:async({nodes:h=[],edges:v=[]})=>{const f=i,{nodes:w,edges:M,onNodesDelete:y,onEdgesDelete:m,triggerNodeChanges:C,triggerEdgeChanges:z,onDelete:P,onBeforeDelete:E}=t[f(2285)](),{nodes:V,edges:q}=await W2({nodesToRemove:h,edgesToRemove:v,nodes:w,edges:M,onBeforeDelete:E}),U=q[f(1755)]>0,W=V[f(1755)]>0;if(U){const H=q[f(1226)](Ac);m?.(q),z(H)}if(W){const H=V[f(1226)](Ac);y?.(V),C(H)}return(W||U)&&P?.({nodes:V,edges:q}),{deletedNodes:V,deletedEdges:q}},getIntersectingNodes:(h,v=!0,f)=>{const w=i,M=La(h),y=M?h:s(h),m=f!==void 0;return y?(f||t[w(2285)]().nodes)[w(1947)](C=>{const z=w,P=t[z(2285)]()[z(1470)][z(689)](C.id);if(P&&!M&&(C.id===h.id||!P[z(815)][z(1739)]))return!1;const E=Fn(m?C:P),V=Et(E,y);return v&&V>0||V>=E[z(434)]*E.height||V>=y[z(434)]*y[z(725)]}):[]},isNodeIntersecting:(h,v,f=!0)=>{const w=i,M=La(h),y=M?h:s(h);if(!y)return!1;const m=Et(y,v);return f&&m>0||m>=v[w(434)]*v[w(725)]||m>=y[w(434)]*y[w(725)]},updateNode:b,updateNodeData:(h,v,f={replace:!1})=>{b(h,w=>{const M=_0x51e5,y=typeof v===M(1019)?v(w):v;return f.replace?{...w,data:y}:{...w,data:{...w[M(1083)],...y}}},f)},updateEdge:g,updateEdgeData:(h,v,f={replace:!1})=>{g(h,w=>{const M=_0x51e5,y=typeof v===M(1019)?v(w):v;return f.replace?{...w,data:y}:{...w,data:{...w[M(1083)],...y}}},f)},getNodesBounds:h=>{const v=i,{nodeLookup:f,nodeOrigin:w}=t[v(2285)]();return V2(h,{nodeLookup:f,nodeOrigin:w})},getHandleConnections:({type:h,id:v,nodeId:f})=>Array[i(1124)](t[i(2285)]()[i(1853)][i(689)](f+"-"+h+(v?"-"+v:""))?.[i(951)]()??[]),getNodeConnections:({type:h,handleId:v,nodeId:f})=>Array[i(1124)](t[i(2285)]()[i(1853)].get(""+f+(h?v?"-"+h+"-"+v:"-"+h:""))?.[i(951)]()??[]),fitView:async h=>{const v=i,f=t[v(2285)]().fitViewResolver??Z2();return t.setState({fitViewQueued:!0,fitViewOptions:h,fitViewResolver:f}),o[v(1416)][v(573)](w=>[...w]),f[v(1642)]}}},[]);return D.useMemo(()=>({...r,...n,viewportInitialized:x}),[x])}const Gc=e=>e[c(471)],pf=typeof window!==c(644)?window:void 0;function zf({deleteKeyCode:e,multiSelectionKeyCode:n}){const t=Je(),{deleteElements:o}=ur(),x=Ht(e,{actInsideInputWithModifier:!1}),r=Ht(n,{target:pf});D.useEffect(()=>{const i=_0x51e5;if(x){const{edges:a,nodes:d}=t[i(2285)]();o({nodes:d[i(1947)](Gc),edges:a[i(1947)](Gc)}),t[i(1024)]({nodesSelectionActive:!1})}},[x]),D.useEffect(()=>{t[_0x51e5(1024)]({multiSelectionActive:r})},[r])}function Cf(e){const n=c,t=Je();D[n(1646)](()=>{const o=n,x=()=>{const r=_0x51e5;if(!e[r(616)]||!(e.current[r(1942)]?.()??!0))return!1;const i=Ro(e[r(616)]);(i[r(725)]===0||i[r(434)]===0)&&t[r(2285)]()[r(2120)]?.(r(1109),M0[r(586)]()),t[r(1024)]({width:i[r(434)]||500,height:i[r(725)]||500})};if(e[o(616)]){x(),window[o(1046)]("resize",x);const r=new ResizeObserver(()=>x());return r.observe(e.current),()=>{const i=o;window[i(1369)](i(738),x),r&&e[i(616)]&&r[i(1606)](e[i(616)])}}},[])}const Wx={position:c(1784),width:c(1672),height:c(1672),top:0,left:0},Mf=e=>({userSelectionActive:e.userSelectionActive,lib:e[c(1284)],connectionInProgress:e[c(513)][c(2235)]});function Bf({onPaneContextMenu:e,zoomOnScroll:n=!0,zoomOnPinch:t=!0,panOnScroll:o=!1,panOnScrollSpeed:x=.5,panOnScrollMode:r=Bn[c(545)],zoomOnDoubleClick:i=!0,panOnDrag:a=!0,defaultViewport:d,translateExtent:u,minZoom:s,maxZoom:b,zoomActivationKeyCode:g,preventScrolling:h=!0,children:v,noWheelClassName:f,noPanClassName:w,onViewportChange:M,isControlledViewport:y,paneClickDistance:m,selectionOnDrag:C}){const z=c,P=Je(),E=D.useRef(null),{userSelectionActive:V,lib:q,connectionInProgress:U}=Ee(Mf,Re),W=Ht(g),H=D[z(1527)]();Cf(E);const G=D[z(1507)](T=>{M?.({x:T[0],y:T[1],zoom:T[2]}),!y&&P.setState({transform:T})},[M,y]);return D[z(1646)](()=>{const T=z;if(E[T(616)]){H.current=Nb({domNode:E[T(616)],minZoom:s,maxZoom:b,translateExtent:u,viewport:d,onDraggingChange:j=>P[T(1024)](A=>A[T(765)]===j?A:{paneDragging:j}),onPanZoomStart:(j,A)=>{const{onViewportChangeStart:I,onMoveStart:J}=P.getState();J?.(j,A),I?.(A)},onPanZoom:(j,A)=>{const I=T,{onViewportChange:J,onMove:_}=P[I(2285)]();_?.(j,A),J?.(A)},onPanZoomEnd:(j,A)=>{const I=T,{onViewportChangeEnd:J,onMoveEnd:_}=P[I(2285)]();_?.(j,A),J?.(A)}});const{x:L,y:S,zoom:B}=H[T(616)].getViewport();return P[T(1024)]({panZoom:H[T(616)],transform:[L,S,B],domNode:E.current[T(436)](T(2067))}),()=>{const j=T;H.current?.[j(807)]()}}},[]),D[z(1646)](()=>{const T=z;H.current?.[T(1985)]({onPaneContextMenu:e,zoomOnScroll:n,zoomOnPinch:t,panOnScroll:o,panOnScrollSpeed:x,panOnScrollMode:r,zoomOnDoubleClick:i,panOnDrag:a,zoomActivationKeyPressed:W,preventScrolling:h,noPanClassName:w,userSelectionActive:V,noWheelClassName:f,lib:q,onTransformChange:G,connectionInProgress:U,selectionOnDrag:C,paneClickDistance:m})},[e,n,t,o,x,r,i,a,W,h,w,V,f,q,G,U,C,m]),l[z(1283)](z(737),{className:z(663),ref:E,style:Wx,children:v})}const Df=e=>({userSelectionActive:e[c(1160)],userSelectionRect:e.userSelectionRect});function Lf(){const e=c,{userSelectionActive:n,userSelectionRect:t}=Ee(Df,Re);return n&&t?l[e(1283)](e(737),{className:e(529),style:{width:t[e(434)],height:t[e(725)],transform:e(1398)+t.x+e(994)+t.y+e(1394)}}):null}const br=(e,n)=>t=>{const o=_0x51e5;t.target===n[o(616)]&&e?.(t)},Sf=e=>({userSelectionActive:e[c(1160)],elementsSelectable:e[c(1357)],connectionInProgress:e[c(513)].inProgress,dragging:e.paneDragging});function Nf({isSelecting:e,selectionKeyPressed:n,selectionMode:t=At[c(1820)],panOnDrag:o,paneClickDistance:x,selectionOnDrag:r,onSelectionStart:i,onSelectionEnd:a,onPaneClick:d,onPaneContextMenu:u,onPaneScroll:s,onPaneMouseEnter:b,onPaneMouseMove:g,onPaneMouseLeave:h,children:v}){const f=c,w=Je(),{userSelectionActive:M,elementsSelectable:y,dragging:m,connectionInProgress:C}=Ee(Sf,Re),z=y&&(e||M),P=D[f(1527)](null),E=D.useRef(),V=D.useRef(new Set),q=D[f(1527)](new Set),U=D[f(1527)](!1),W=A=>{const I=f;if(U[I(616)]||C){U.current=!1;return}d?.(A),w[I(2285)]().resetSelectedElements(),w[I(1024)]({nodesSelectionActive:!1})},H=A=>{const I=f;if(Array[I(1996)](o)&&o?.[I(1230)](2)){A.preventDefault();return}u?.(A)},G=s?A=>s(A):void 0,T=A=>{U[f(616)]&&(A.stopPropagation(),U.current=!1)},L=A=>{const I=f,{domNode:J}=w[I(2285)]();if(E[I(616)]=J?.[I(1596)](),!E[I(616)])return;const _=A[I(450)]===P[I(616)];if(!_&&!!A[I(450)][I(436)](I(1776))||!e||!(r&&_||n)||A[I(1454)]!==0||!A[I(1945)])return;A[I(450)]?.[I(635)]?.(A[I(2141)]),U[I(616)]=!1;const{x:re,y:ue}=U0(A[I(1047)],E[I(616)]);w[I(1024)]({userSelectionRect:{width:0,height:0,startX:re,startY:ue,x:re,y:ue}}),!_&&(A[I(1199)](),A[I(521)]())},S=A=>{const I=f,{userSelectionRect:J,transform:_,nodeLookup:F,edgeLookup:ee,connectionLookup:re,triggerNodeChanges:ue,triggerEdgeChanges:pe,defaultEdgeOptions:Me,resetSelectedElements:de}=w[I(2285)]();if(!E[I(616)]||!J)return;const{x:$,y:be}=U0(A[I(1047)],E.current),{startX:ge,startY:Y}=J;if(!U[I(616)]){const Be=n?0:x;if(Math[I(1894)]($-ge,be-Y)<=Be)return;de(),i?.(A)}U[I(616)]=!0;const X={startX:ge,startY:Y,x:$<ge?$:ge,y:be<Y?be:Y,width:Math[I(1032)]($-ge),height:Math[I(1032)](be-Y)},ce=V[I(616)],ae=q[I(616)];V[I(616)]=new Set(Xo(F,X,_,t===At[I(852)],!0)[I(1226)](Be=>Be.id)),q[I(616)]=new Set;const Le=Me?.selectable??!0;for(const Be of V[I(616)]){const Ae=re.get(Be);if(Ae)for(const{edgeId:He}of Ae[I(951)]()){const Ie=ee.get(He);Ie&&(Ie[I(1079)]??Le)&&q[I(616)].add(He)}}if(!Ia(ce,V.current)){const Be=tt(F,V[I(616)],!0);ue(Be)}if(!Ia(ae,q.current)){const Be=tt(ee,q[I(616)]);pe(Be)}w[I(1024)]({userSelectionRect:X,userSelectionActive:!0,nodesSelectionActive:!1})},B=A=>{const I=f;A.button===0&&(A.target?.[I(1373)]?.(A.pointerId),!M&&A[I(450)]===P[I(616)]&&w[I(2285)]().userSelectionRect&&W?.(A),w.setState({userSelectionActive:!1,userSelectionRect:null}),U[I(616)]&&(a?.(A),w[I(1024)]({nodesSelectionActive:V.current[I(492)]>0})))},j=o===!0||Array[f(1996)](o)&&o[f(1230)](0);return l[f(948)](f(737),{className:i0([f(2283),{draggable:j,dragging:m,selection:e}]),onClick:z?void 0:br(W,P),onContextMenu:br(H,P),onWheel:br(G,P),onPointerEnter:z?void 0:b,onPointerMove:z?S:g,onPointerUp:z?B:void 0,onPointerDownCapture:z?L:void 0,onClickCapture:z?T:void 0,onPointerLeave:h,ref:P,style:Wx,children:[v,l[f(1283)](Lf,{})]})}function fr({id:e,store:n,unselect:t=!1,nodeRef:o}){const x=c,{addSelectedNodes:r,unselectNodesAndEdges:i,multiSelectionActive:a,nodeLookup:d,onError:u}=n[x(2285)](),s=d.get(e);if(!s){u?.("012",M0[x(1686)](e));return}n[x(1024)]({nodesSelectionActive:!1}),s[x(471)]?(t||s[x(471)]&&a)&&(i({nodes:[s],edges:[]}),requestAnimationFrame(()=>o?.[x(616)]?.[x(548)]())):r([e])}function Oc({nodeRef:e,disabled:n=!1,noDragClassName:t,handleSelector:o,nodeId:x,isSelectable:r,nodeClickDistance:i}){const a=c,d=Je(),[u,s]=D[a(1595)](!1),b=D.useRef();return D[a(1646)](()=>{const g=a;b[g(616)]=hb({getStoreItems:()=>d[g(2285)](),onNodeMouseDown:h=>{fr({id:h,store:d,nodeRef:e})},onDragStart:()=>{s(!0)},onDragStop:()=>{s(!1)}})},[]),D[a(1646)](()=>{const g=a;if(!(n||!e.current||!b[g(616)]))return b[g(616)][g(1985)]({noDragClassName:t,handleSelector:o,domNode:e[g(616)],isSelectable:r,nodeId:x,nodeClickDistance:i}),()=>{b[g(616)]?.destroy()}},[t,o,n,r,e,x,i]),u}const kf=e=>n=>n[c(471)]&&(n.draggable||e&&typeof n[c(1572)]===c(644));function Vc(){const e=Je();return D.useCallback(t=>{const o=_0x51e5,{nodeExtent:x,snapToGrid:r,snapGrid:i,nodesDraggable:a,onError:d,updateNodePositions:u,nodeLookup:s,nodeOrigin:b}=e.getState(),g=new Map,h=kf(a),v=r?i[0]:5,f=r?i[1]:5,w=t[o(1531)].x*v*t[o(763)],M=t[o(1531)].y*f*t.factor;for(const[,y]of s){if(!h(y))continue;let m={x:y[o(815)].positionAbsolute.x+w,y:y[o(815)][o(1739)].y+M};r&&(m=Ut(m,i));const{position:C,positionAbsolute:z}=za({nodeId:y.id,nextPosition:m,nodeLookup:s,nodeExtent:x,nodeOrigin:b,onError:d});y[o(675)]=C,y.internals.positionAbsolute=z,g[o(643)](y.id,y)}u(g)},[])}const hr=D[c(1821)](null),If=hr.Provider;hr[c(710)];const Hc=()=>D[c(1430)](hr),Pf=e=>({connectOnClick:e[c(1188)],noPanClassName:e[c(2194)],rfId:e[c(446)]}),Af=(e,n,t)=>o=>{const x=c,{connectionClickStartHandle:r,connectionMode:i,connection:a}=o,{fromHandle:d,toHandle:u,isValid:s}=a,b=u?.[x(1137)]===e&&u?.id===n&&u?.[x(1592)]===t;return{connectingFrom:d?.[x(1137)]===e&&d?.id===n&&d?.[x(1592)]===t,connectingTo:b,clickConnecting:r?.nodeId===e&&r?.id===n&&r?.[x(1592)]===t,isPossibleEndHandle:i===Jn[x(2212)]?d?.[x(1592)]!==t:e!==d?.[x(1137)]||n!==d?.id,connectionInProcess:!!d,clickConnectionInProcess:!!r,valid:b&&s}};function jf({type:e=c(2058),position:n=Ne[c(1623)],isValidConnection:t,isConnectable:o=!0,isConnectableStart:x=!0,isConnectableEnd:r=!0,id:i,onConnect:a,children:d,className:u,onMouseDown:s,onTouchStart:b,...g},h){const v=c,f=i||null,w=e==="target",M=Je(),y=Hc(),{connectOnClick:m,noPanClassName:C,rfId:z}=Ee(Pf,Re),{connectingFrom:P,connectingTo:E,clickConnecting:V,isPossibleEndHandle:q,connectionInProcess:U,clickConnectionInProcess:W,valid:H}=Ee(Af(y,f,e),Re);!y&&M[v(2285)]()[v(2120)]?.(v(1078),M0.error010());const G=S=>{const B=v,{defaultEdgeOptions:j,onConnect:A,hasDefaultEdges:I}=M[B(2285)](),J={...j,...S};if(I){const{edges:_,setEdges:F}=M[B(2285)]();F(Va(J,_))}A?.(J),a?.(J)},T=S=>{const B=v;if(!y)return;const j=ja(S[B(1047)]);if(x&&(j&&S.button===0||!j)){const A=M[B(2285)]();or[B(582)](S[B(1047)],{handleDomNode:S[B(2119)],autoPanOnConnect:A.autoPanOnConnect,connectionMode:A.connectionMode,connectionRadius:A[B(1693)],domNode:A[B(1737)],nodeLookup:A[B(1470)],lib:A[B(1284)],isTarget:w,handleId:f,nodeId:y,flowId:A.rfId,panBy:A.panBy,cancelConnection:A[B(1450)],onConnectStart:A[B(995)],onConnectEnd:(...I)=>M[B(2285)]()[B(1245)]?.(...I),updateConnection:A[B(469)],onConnect:G,isValidConnection:t||((...I)=>M.getState()[B(2098)]?.(...I)??!0),getTransform:()=>M[B(2285)]()[B(1713)],getFromHandle:()=>M[B(2285)]()[B(513)][B(2217)],autoPanSpeed:A[B(1649)],dragThreshold:A[B(505)]})}j?s?.(S):b?.(S)},L=S=>{const B=v,{onClickConnectStart:j,onClickConnectEnd:A,connectionClickStartHandle:I,connectionMode:J,isValidConnection:_,lib:F,rfId:ee,nodeLookup:re,connection:ue}=M.getState();if(!y||!I&&!x)return;if(!I){j?.(S.nativeEvent,{nodeId:y,handleId:f,handleType:e}),M[B(1024)]({connectionClickStartHandle:{nodeId:y,type:e,id:f}});return}const pe=Pa(S[B(450)]),Me=t||_,{connection:de,isValid:$}=or[B(1023)](S[B(1047)],{handle:{nodeId:y,id:f,type:e},connectionMode:J,fromNodeId:I.nodeId,fromHandleId:I.id||null,fromType:I[B(1592)],isValidConnection:Me,flowId:ee,doc:pe,lib:F,nodeLookup:re});$&&de&&G(de);const be=structuredClone(ue);delete be[B(2235)],be.toPosition=be[B(874)]?be[B(874)][B(675)]:null,A?.(S,be),M[B(1024)]({connectionClickStartHandle:null})};return l[v(1283)]("div",{"data-handleid":f,"data-nodeid":y,"data-handlepos":n,"data-id":z+"-"+y+"-"+f+"-"+e,className:i0([v(1103),v(1546)+n,v(1235),C,u,{source:!w,target:w,connectable:o,connectablestart:x,connectableend:r,clickconnecting:V,connectingfrom:P,connectingto:E,valid:H,connectionindicator:o&&(!U||q)&&(U||W?r:x)}]),onMouseDown:T,onTouchStart:T,onClick:m?L:void 0,ref:h,...g,children:d})}const xt=D[c(1221)](Yc(jf));function Yf({data:e,isConnectable:n,sourcePosition:t=Ne[c(1557)]}){const o=c;return l[o(948)](l.Fragment,{children:[e?.label,l.jsx(xt,{type:o(2058),position:t,isConnectable:n})]})}function Ef({data:e,isConnectable:n,targetPosition:t=Ne.Top,sourcePosition:o=Ne[c(1557)]}){const x=c;return l[x(948)](l[x(443)],{children:[l[x(1283)](xt,{type:x(450),position:t,isConnectable:n}),e?.[x(1772)],l.jsx(xt,{type:"source",position:o,isConnectable:n})]})}function Uf(){return null}function Gf({data:e,isConnectable:n,targetPosition:t=Ne[c(1623)]}){const o=c;return l[o(948)](l[o(443)],{children:[l.jsx(xt,{type:o(450),position:t,isConnectable:n}),e?.[o(1772)]]})}const Xx={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Tc={input:Yf,default:Ef,output:Gf,group:Uf};function Of(e){const n=c;return e[n(815)][n(2125)]===void 0?{width:e.width??e.initialWidth??e.style?.[n(434)],height:e[n(725)]??e[n(2016)]??e[n(777)]?.[n(725)]}:{width:e[n(434)]??e[n(777)]?.width,height:e.height??e[n(777)]?.height}}const Vf=e=>{const n=c,{width:t,height:o,x,y:r}=Yt(e.nodeLookup,{filter:i=>!!i[n(471)]});return{width:E0(t)?t:null,height:E0(o)?o:null,userSelectionActive:e.userSelectionActive,transformString:"translate("+e[n(1713)][0]+n(2216)+e[n(1713)][1]+n(1934)+e[n(1713)][2]+n(723)+x+n(2216)+r+n(1394)}};function Hf({onSelectionContextMenu:e,noPanClassName:n,disableKeyboardA11y:t}){const o=c,x=Je(),{width:r,height:i,transformString:a,userSelectionActive:d}=Ee(Vf,Re),u=Vc(),s=D[o(1527)](null);D[o(1646)](()=>{const v=o;!t&&s[v(616)]?.[v(894)]({preventScroll:!0})},[t]);const b=!d&&r!==null&&i!==null;if(Oc({nodeRef:s,disabled:!b}),!b)return null;const g=e?v=>{const f=o,w=x[f(2285)]()[f(1349)][f(1947)](M=>M[f(471)]);e(v,w)}:void 0,h=v=>{const f=o;Object[f(688)][f(1292)][f(945)](Xx,v[f(427)])&&(v[f(521)](),u({direction:Xx[v[f(427)]],factor:v.shiftKey?4:1}))};return l[o(1283)](o(737),{className:i0([o(541),o(904),n]),style:{transform:a},children:l[o(1283)](o(737),{ref:s,className:o(1010),onContextMenu:g,tabIndex:t?void 0:-1,onKeyDown:t?void 0:h,style:{width:r,height:i}})})}const qc=typeof window!==c(644)?window:void 0,Tf=e=>{const n=c;return{nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e[n(1160)]}};function Wc({children:e,onPaneClick:n,onPaneMouseEnter:t,onPaneMouseMove:o,onPaneMouseLeave:x,onPaneContextMenu:r,onPaneScroll:i,paneClickDistance:a,deleteKeyCode:d,selectionKeyCode:u,selectionOnDrag:s,selectionMode:b,onSelectionStart:g,onSelectionEnd:h,multiSelectionKeyCode:v,panActivationKeyCode:f,zoomActivationKeyCode:w,elementsSelectable:M,zoomOnScroll:y,zoomOnPinch:m,panOnScroll:C,panOnScrollSpeed:z,panOnScrollMode:P,zoomOnDoubleClick:E,panOnDrag:V,defaultViewport:q,translateExtent:U,minZoom:W,maxZoom:H,preventScrolling:G,onSelectionContextMenu:T,noWheelClassName:L,noPanClassName:S,disableKeyboardA11y:B,onViewportChange:j,isControlledViewport:A}){const I=c,{nodesSelectionActive:J,userSelectionActive:_}=Ee(Tf,Re),F=Ht(u,{target:qc}),ee=Ht(f,{target:qc}),re=ee||V,ue=ee||C,pe=s&&re!==!0,Me=F||_||pe;return zf({deleteKeyCode:d,multiSelectionKeyCode:v}),l[I(1283)](Bf,{onPaneContextMenu:r,elementsSelectable:M,zoomOnScroll:y,zoomOnPinch:m,panOnScroll:ue,panOnScrollSpeed:z,panOnScrollMode:P,zoomOnDoubleClick:E,panOnDrag:!F&&re,defaultViewport:q,translateExtent:U,minZoom:W,maxZoom:H,zoomActivationKeyCode:w,preventScrolling:G,noWheelClassName:L,noPanClassName:S,onViewportChange:j,isControlledViewport:A,paneClickDistance:a,selectionOnDrag:pe,children:l[I(948)](Nf,{onSelectionStart:g,onSelectionEnd:h,onPaneClick:n,onPaneMouseEnter:t,onPaneMouseMove:o,onPaneMouseLeave:x,onPaneContextMenu:r,onPaneScroll:i,panOnDrag:re,isSelecting:!!Me,selectionMode:b,selectionKeyPressed:F,paneClickDistance:a,selectionOnDrag:pe,children:[e,J&&l[I(1283)](Hf,{onSelectionContextMenu:T,noPanClassName:S,disableKeyboardA11y:B})]})})}Wc[c(947)]="FlowRenderer";const qf=D[c(1221)](Wc),Wf=e=>n=>{const t=c;return e?Xo(n[t(1470)],{x:0,y:0,width:n[t(434)],height:n[t(725)]},n[t(1713)],!0)[t(1226)](o=>o.id):Array[t(1124)](n.nodeLookup[t(1485)]())};function Xf(e){return Ee(D.useCallback(Wf(e),[e]),Re)}const Kf=e=>e[c(1540)];function Zf(){const e=c,n=Ee(Kf),[t]=D[e(1595)](()=>{const o=e;return typeof ResizeObserver===o(644)?null:new ResizeObserver(x=>{const r=o,i=new Map;x[r(475)](a=>{const d=r,u=a.target[d(1819)]("data-id");i[d(643)](u,{id:u,nodeElement:a[d(450)],force:!0})}),n(i)})});return D[e(1646)](()=>()=>{t?.[_0x51e5(1372)]()},[t]),t}function Rf({node:e,nodeType:n,hasDimensions:t,resizeObserver:o}){const x=c,r=Je(),i=D[x(1527)](null),a=D[x(1527)](null),d=D[x(1527)](e[x(410)]),u=D[x(1527)](e.targetPosition),s=D.useRef(n),b=t&&!!e.internals[x(2125)];return D[x(1646)](()=>{const g=x;i[g(616)]&&!e.hidden&&(!b||a.current!==i.current)&&(a[g(616)]&&o?.[g(1606)](a[g(616)]),o?.[g(567)](i[g(616)]),a.current=i[g(616)])},[b,e[x(2103)]]),D[x(1646)](()=>()=>{const g=_0x51e5;a[g(616)]&&(o?.[g(1606)](a[g(616)]),a.current=null)},[]),D[x(1646)](()=>{const g=x;if(i[g(616)]){const h=s[g(616)]!==n,v=d[g(616)]!==e[g(410)],f=u[g(616)]!==e.targetPosition;(h||v||f)&&(s[g(616)]=n,d[g(616)]=e[g(410)],u[g(616)]=e[g(2066)],r[g(2285)]()[g(1540)](new Map([[e.id,{id:e.id,nodeElement:i[g(616)],force:!0}]])))}},[e.id,n,e[x(410)],e[x(2066)]]),i}function Jf({id:e,onClick:n,onMouseEnter:t,onMouseMove:o,onMouseLeave:x,onContextMenu:r,onDoubleClick:i,nodesDraggable:a,elementsSelectable:d,nodesConnectable:u,nodesFocusable:s,resizeObserver:b,noDragClassName:g,noPanClassName:h,disableKeyboardA11y:v,rfId:f,nodeTypes:w,nodeClickDistance:M,onError:y}){const m=c,{node:C,internals:z,isParent:P}=Ee(de=>{const $=_0x51e5,be=de[$(1470)].get(e),ge=de[$(1655)][$(1308)](e);return{node:be,internals:be[$(815)],isParent:ge}},Re);let E=C[m(1592)]||"default",V=w?.[E]||Tc[E];V===void 0&&(y?.("003",M0[m(1433)](E)),E="default",V=w?.[m(1465)]||Tc[m(1465)]);const q=!!(C[m(1572)]||a&&typeof C.draggable===m(644)),U=!!(C[m(1079)]||d&&typeof C.selectable===m(644)),W=!!(C[m(1636)]||u&&typeof C[m(1636)]===m(644)),H=!!(C[m(1651)]||s&&typeof C[m(1651)]===m(644)),G=Je(),T=Na(C),L=Rf({node:C,nodeType:E,hasDimensions:T,resizeObserver:b}),S=Oc({nodeRef:L,disabled:C[m(2103)]||!q,noDragClassName:g,handleSelector:C[m(679)],nodeId:e,isSelectable:U,nodeClickDistance:M}),B=Vc();if(C[m(2103)])return null;const j=F0(C),A=Of(C),I=U||q||n||t||o||x,J=t?de=>t(de,{...z[m(988)]}):void 0,_=o?de=>o(de,{...z[m(988)]}):void 0,F=x?de=>x(de,{...z[m(988)]}):void 0,ee=r?de=>r(de,{...z.userNode}):void 0,re=i?de=>i(de,{...z[m(988)]}):void 0,ue=de=>{const $=m,{selectNodesOnDrag:be,nodeDragThreshold:ge}=G[$(2285)]();U&&(!be||!q||ge>0)&&fr({id:e,store:G,nodeRef:L}),n&&n(de,{...z[$(988)]})},pe=de=>{const $=m;if(!(Aa(de[$(1047)])||v)){if(ga[$(1230)](de[$(427)])&&U){const be=de.key===$(924);fr({id:e,store:G,unselect:be,nodeRef:L})}else if(q&&C[$(471)]&&Object[$(688)].hasOwnProperty[$(945)](Xx,de.key)){de[$(521)]();const{ariaLabelConfig:be}=G.getState();G[$(1024)]({ariaLiveMessage:be["node.a11yDescription.ariaLiveMessage"]({direction:de[$(427)].replace($(2010),"").toLowerCase(),x:~~z[$(1739)].x,y:~~z[$(1739)].y})}),B({direction:Xx[de[$(427)]],factor:de[$(785)]?4:1})}}},Me=()=>{const de=m;if(v||!L.current?.[de(491)](":focus-visible"))return;const{transform:$,width:be,height:ge,autoPanOnNodeFocus:Y,setCenter:X}=G.getState();if(!Y)return;!(Xo(new Map([[e,C]]),{x:0,y:0,width:be,height:ge},$,!0).length>0)&&X(C[de(675)].x+j[de(434)]/2,C[de(675)].y+j[de(725)]/2,{zoom:$[2]})};return l[m(1283)]("div",{className:i0([m(704),m(1661)+E,{[h]:q},C[m(1072)],{selected:C[m(471)],selectable:U,parent:P,draggable:q,dragging:S}]),ref:L,style:{zIndex:z.z,transform:m(1398)+z.positionAbsolute.x+m(2216)+z[m(1739)].y+"px)",pointerEvents:m(I?1185:1501),visibility:T?"visible":m(2103),...C.style,...A},"data-id":e,"data-testid":m(2105)+e,onMouseEnter:J,onMouseMove:_,onMouseLeave:F,onContextMenu:ee,onClick:ue,onDoubleClick:re,onKeyDown:H?pe:void 0,tabIndex:H?0:void 0,onFocus:H?Me:void 0,role:C.ariaRole??(H?m(504):void 0),"aria-roledescription":m(2099),"aria-describedby":v?void 0:wc+"-"+f,"aria-label":C[m(453)],...C.domAttributes,children:l[m(1283)](If,{value:e,children:l.jsx(V,{id:e,data:C[m(1083)],type:E,positionAbsoluteX:z[m(1739)].x,positionAbsoluteY:z.positionAbsolute.y,selected:C.selected??!1,selectable:U,draggable:q,deletable:C[m(2222)]??!0,isConnectable:W,sourcePosition:C[m(410)],targetPosition:C[m(2066)],dragging:S,dragHandle:C.dragHandle,zIndex:z.z,parentId:C[m(887)],...j})})})}var Qf=D[c(1221)](Jf);const Ff=e=>({nodesDraggable:e[c(1999)],nodesConnectable:e.nodesConnectable,nodesFocusable:e[c(1038)],elementsSelectable:e[c(1357)],onError:e[c(2120)]});function Xc(e){const n=c,{nodesDraggable:t,nodesConnectable:o,nodesFocusable:x,elementsSelectable:r,onError:i}=Ee(Ff,Re),a=Xf(e[n(1513)]),d=Zf();return l[n(1283)](n(737),{className:n(1129),style:Wx,children:a[n(1226)](u=>{const s=n;return l[s(1283)](Qf,{id:u,nodeTypes:e[s(1617)],nodeExtent:e.nodeExtent,onClick:e[s(2012)],onMouseEnter:e[s(1662)],onMouseMove:e[s(695)],onMouseLeave:e[s(1125)],onContextMenu:e.onNodeContextMenu,onDoubleClick:e[s(493)],noDragClassName:e.noDragClassName,noPanClassName:e[s(2194)],rfId:e.rfId,disableKeyboardA11y:e[s(2030)],resizeObserver:d,nodesDraggable:t,nodesConnectable:o,nodesFocusable:x,elementsSelectable:r,nodeClickDistance:e[s(1533)],onError:i},u)})})}Xc[c(947)]="NodeRenderer";const _f=D[c(1221)](Xc);function $f(e){const n=c;return Ee(D[n(1507)](o=>{const x=n;if(!e)return o[x(1743)][x(1226)](i=>i.id);const r=[];if(o[x(434)]&&o.height)for(const i of o.edges){const a=o[x(1470)][x(689)](i[x(2058)]),d=o[x(1470)][x(689)](i[x(450)]);a&&d&&F2({sourceNode:a,targetNode:d,width:o[x(434)],height:o[x(725)],transform:o.transform})&&r[x(573)](i.id)}return r},[e]),Re)}const eh=({color:e=c(1501),strokeWidth:n=1})=>{const t=c,o={strokeWidth:n,...e&&{stroke:e}};return l[t(1283)]("polyline",{className:t(1604),style:o,strokeLinecap:t(909),fill:"none",strokeLinejoin:t(909),points:t(2047)})},nh=({color:e=c(1501),strokeWidth:n=1})=>{const t=c,o={strokeWidth:n,...e&&{stroke:e,fill:e}};return l[t(1283)](t(732),{className:t(1949),style:o,strokeLinecap:t(909),strokeLinejoin:t(909),points:t(1804)})},Kc={[Ix[c(2010)]]:eh,[Ix[c(882)]]:nh};function th(e){const n=c,t=Je();return D[n(2027)](()=>{const x=n;return Object[x(688)][x(1292)][x(945)](Kc,e)?Kc[e]:(t[x(2285)]()[x(2120)]?.(x(1170),M0[x(1774)](e)),null)},[e])}const xh=({id:e,type:n,color:t,width:o=12.5,height:x=12.5,markerUnits:r=c(867),strokeWidth:i,orient:a=c(2189)})=>{const d=c,u=th(n);return u?l.jsx(d(1520),{className:d(528),id:e,markerWidth:""+o,markerHeight:""+x,viewBox:d(1566),markerUnits:r,orient:a,refX:"0",refY:"0",children:l[d(1283)](u,{color:t,strokeWidth:i})}):null},Zc=({defaultColor:e,rfId:n})=>{const t=c,o=Ee(i=>i[t(1743)]),x=Ee(i=>i[t(977)]),r=D[t(2027)](()=>{const i=t;return ob(o,{id:n,defaultColor:e,defaultMarkerStart:x?.[i(959)],defaultMarkerEnd:x?.[i(975)]})},[o,x,n,e]);return r[t(1755)]?l[t(1283)](t(1547),{className:t(1734),"aria-hidden":"true",children:l[t(1283)](t(2271),{children:r[t(1226)](i=>l[t(1283)](xh,{id:i.id,type:i[t(1592)],color:i.color,width:i[t(434)],height:i[t(725)],markerUnits:i[t(615)],strokeWidth:i[t(867)],orient:i[t(2258)]},i.id))})}):null};Zc[c(947)]=c(2229);var oh=D[c(1221)](Zc);function Rc({x:e,y:n,label:t,labelStyle:o,labelShowBg:x=!0,labelBgStyle:r,labelBgPadding:i=[2,4],labelBgBorderRadius:a=2,children:d,className:u,...s}){const b=c,[g,h]=D[b(1595)]({x:1,y:0,width:0,height:0}),v=i0([b(1152),u]),f=D[b(1527)](null);return D.useEffect(()=>{const w=b;if(f[w(616)]){const M=f[w(616)].getBBox();h({x:M.x,y:M.y,width:M[w(434)],height:M.height})}},[t]),t?l[b(948)]("g",{transform:b(1398)+(e-g.width/2)+" "+(n-g[b(725)]/2)+")",className:v,visibility:g[b(434)]?b(799):b(2103),...s,children:[x&&l[b(1283)](b(1941),{width:g[b(434)]+2*i[0],x:-i[0],y:-i[1],height:g[b(725)]+2*i[1],className:"react-flow__edge-textbg",style:r,rx:a,ry:a}),l.jsx("text",{className:"react-flow__edge-text",y:g.height/2,dy:b(1367),ref:f,style:o,children:t}),d]}):null}Rc[c(947)]=c(2291);const rh=D[c(1221)](Rc);function Kx({path:e,labelX:n,labelY:t,label:o,labelStyle:x,labelShowBg:r,labelBgStyle:i,labelBgPadding:a,labelBgBorderRadius:d,interactionWidth:u=20,...s}){const b=c;return l[b(948)](l[b(443)],{children:[l.jsx(b(2159),{...s,d:e,fill:"none",className:i0([b(2006),s[b(1072)]])}),u?l[b(1283)](b(2159),{d:e,fill:b(1501),strokeOpacity:0,strokeWidth:u,className:b(1459)}):null,o&&E0(n)&&E0(t)?l[b(1283)](rh,{x:n,y:t,label:o,labelStyle:x,labelShowBg:r,labelBgStyle:i,labelBgPadding:a,labelBgBorderRadius:d}):null]})}function Jc({pos:e,x1:n,y1:t,x2:o,y2:x}){const r=c;return e===Ne[r(1264)]||e===Ne[r(1904)]?[.5*(n+o),t]:[n,.5*(t+x)]}function Qc({sourceX:e,sourceY:n,sourcePosition:t=Ne.Bottom,targetX:o,targetY:x,targetPosition:r=Ne[c(1623)]}){const[i,a]=Jc({pos:t,x1:e,y1:n,x2:o,y2:x}),[d,u]=Jc({pos:r,x1:o,y1:x,x2:e,y2:n}),[s,b,g,h]=Ea({sourceX:e,sourceY:n,targetX:o,targetY:x,sourceControlX:i,sourceControlY:a,targetControlX:d,targetControlY:u});return["M"+e+","+n+" C"+i+","+a+" "+d+","+u+" "+o+","+x,s,b,g,h]}function Fc(e){const n=c;return D[n(1221)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:a,targetPosition:d,label:u,labelStyle:s,labelShowBg:b,labelBgStyle:g,labelBgPadding:h,labelBgBorderRadius:v,style:f,markerEnd:w,markerStart:M,interactionWidth:y})=>{const m=n,[C,z,P]=Qc({sourceX:o,sourceY:x,sourcePosition:a,targetX:r,targetY:i,targetPosition:d}),E=e.isInternal?void 0:t;return l[m(1283)](Kx,{id:E,path:C,labelX:z,labelY:P,label:u,labelStyle:s,labelShowBg:b,labelBgStyle:g,labelBgPadding:h,labelBgBorderRadius:v,style:f,markerEnd:w,markerStart:M,interactionWidth:y})})}const ih=Fc({isInternal:!1}),_c=Fc({isInternal:!0});ih[c(947)]=c(1812),_c[c(947)]=c(1694);function $c(e){return D.memo(({id:n,sourceX:t,sourceY:o,targetX:x,targetY:r,label:i,labelStyle:a,labelShowBg:d,labelBgStyle:u,labelBgPadding:s,labelBgBorderRadius:b,style:g,sourcePosition:h=Ne.Bottom,targetPosition:v=Ne.Top,markerEnd:f,markerStart:w,pathOptions:M,interactionWidth:y})=>{const m=_0x51e5,[C,z,P]=Jo({sourceX:t,sourceY:o,sourcePosition:h,targetX:x,targetY:r,targetPosition:v,borderRadius:M?.[m(1990)],offset:M?.offset,stepPosition:M?.[m(1771)]}),E=e[m(2199)]?void 0:n;return l.jsx(Kx,{id:E,path:C,labelX:z,labelY:P,label:i,labelStyle:a,labelShowBg:d,labelBgStyle:u,labelBgPadding:s,labelBgBorderRadius:b,style:g,markerEnd:f,markerStart:w,interactionWidth:y})})}const es=$c({isInternal:!1}),ns=$c({isInternal:!0});es[c(947)]="SmoothStepEdge",ns[c(947)]=c(1919);function ts(e){return D.memo(({id:n,...t})=>{const o=_0x51e5,x=e[o(2199)]?void 0:n;return l[o(1283)](es,{...t,id:x,pathOptions:D[o(2027)](()=>({borderRadius:0,offset:t[o(788)]?.[o(2080)]}),[t[o(788)]?.[o(2080)]])})})}const ah=ts({isInternal:!1}),xs=ts({isInternal:!0});ah[c(947)]=c(2056),xs[c(947)]=c(1303);function os(e){const n=c;return D[n(1221)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,label:a,labelStyle:d,labelShowBg:u,labelBgStyle:s,labelBgPadding:b,labelBgBorderRadius:g,style:h,markerEnd:v,markerStart:f,interactionWidth:w})=>{const M=n,[y,m,C]=Ha({sourceX:o,sourceY:x,targetX:r,targetY:i}),z=e[M(2199)]?void 0:t;return l[M(1283)](Kx,{id:z,path:y,labelX:m,labelY:C,label:a,labelStyle:d,labelShowBg:u,labelBgStyle:s,labelBgPadding:b,labelBgBorderRadius:g,style:h,markerEnd:v,markerStart:f,interactionWidth:w})})}const ch=os({isInternal:!1}),rs=os({isInternal:!0});ch.displayName=c(1522),rs[c(947)]="StraightEdgeInternal";function is(e){const n=c;return D[n(1221)](({id:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:a=Ne[n(1557)],targetPosition:d=Ne.Top,label:u,labelStyle:s,labelShowBg:b,labelBgStyle:g,labelBgPadding:h,labelBgBorderRadius:v,style:f,markerEnd:w,markerStart:M,pathOptions:y,interactionWidth:m})=>{const C=n,[z,P,E]=Ga({sourceX:o,sourceY:x,sourcePosition:a,targetX:r,targetY:i,targetPosition:d,curvature:y?.[C(1299)]}),V=e.isInternal?void 0:t;return l[C(1283)](Kx,{id:V,path:z,labelX:P,labelY:E,label:u,labelStyle:s,labelShowBg:b,labelBgStyle:g,labelBgPadding:h,labelBgBorderRadius:v,style:f,markerEnd:w,markerStart:M,interactionWidth:m})})}const sh=is({isInternal:!1}),as=is({isInternal:!0});sh[c(947)]=c(955),as.displayName="BezierEdgeInternal";const cs={default:as,straight:rs,step:xs,smoothstep:ns,simplebezier:_c},ss={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},lh=(e,n,t)=>{const o=c;return t===Ne[o(1264)]?e-n:t===Ne[o(1904)]?e+n:e},dh=(e,n,t)=>{const o=c;return t===Ne[o(1623)]?e-n:t===Ne[o(1557)]?e+n:e},ls=c(2e3);function ds({position:e,centerX:n,centerY:t,radius:o=10,onMouseDown:x,onMouseEnter:r,onMouseOut:i,type:a}){const d=c;return l.jsx("circle",{onMouseDown:x,onMouseEnter:r,onMouseOut:i,className:i0([ls,ls+"-"+a]),cx:lh(n,o,e),cy:dh(t,o,e),r:o,stroke:d(1e3),fill:d(1e3)})}function uh({isReconnectable:e,reconnectRadius:n,edge:t,sourceX:o,sourceY:x,targetX:r,targetY:i,sourcePosition:a,targetPosition:d,onReconnect:u,onReconnectStart:s,onReconnectEnd:b,setReconnecting:g,setUpdateHover:h}){const v=c,f=Je(),w=(z,P)=>{const E=_0x51e5;if(z[E(1454)]!==0)return;const{autoPanOnConnect:V,domNode:q,connectionMode:U,connectionRadius:W,lib:H,onConnectStart:G,cancelConnection:T,nodeLookup:L,rfId:S,panBy:B,updateConnection:j}=f[E(2285)](),A=P.type===E(450),I=(F,ee)=>{const re=E;g(!1),b?.(F,t,P[re(1592)],ee)},J=F=>u?.(t,F),_=(F,ee)=>{const re=E;g(!0),s?.(z,t,P[re(1592)]),G?.(F,ee)};or[E(582)](z[E(1047)],{autoPanOnConnect:V,connectionMode:U,connectionRadius:W,domNode:q,handleId:P.id,nodeId:P[E(1137)],nodeLookup:L,isTarget:A,edgeUpdaterType:P[E(1592)],lib:H,flowId:S,cancelConnection:T,panBy:B,isValidConnection:(...F)=>f[E(2285)]()[E(2098)]?.(...F)??!0,onConnect:J,onConnectStart:_,onConnectEnd:(...F)=>f.getState()[E(1245)]?.(...F),onReconnectEnd:I,updateConnection:j,getTransform:()=>f[E(2285)]()[E(1713)],getFromHandle:()=>f.getState().connection[E(2217)],dragThreshold:f[E(2285)]().connectionDragThreshold,handleDomNode:z[E(2119)]})},M=z=>w(z,{nodeId:t.target,id:t[v(420)]??null,type:v(450)}),y=z=>w(z,{nodeId:t.source,id:t[v(2076)]??null,type:"source"}),m=()=>h(!0),C=()=>h(!1);return l[v(948)](l[v(443)],{children:[(e===!0||e===v(2058))&&l[v(1283)](ds,{position:a,centerX:o,centerY:x,radius:n,onMouseDown:M,onMouseEnter:m,onMouseOut:C,type:v(2058)}),(e===!0||e===v(450))&&l.jsx(ds,{position:d,centerX:r,centerY:i,radius:n,onMouseDown:y,onMouseEnter:m,onMouseOut:C,type:v(450)})]})}function bh({id:e,edgesFocusable:n,edgesReconnectable:t,elementsSelectable:o,onClick:x,onDoubleClick:r,onContextMenu:i,onMouseEnter:a,onMouseMove:d,onMouseLeave:u,reconnectRadius:s,onReconnect:b,onReconnectStart:g,onReconnectEnd:h,rfId:v,edgeTypes:f,noPanClassName:w,onError:M,disableKeyboardA11y:y}){const m=c;let C=Ee(Y=>Y[m(989)][m(689)](e));const z=Ee(Y=>Y[m(977)]);C=z?{...z,...C}:C;let P=C[m(1592)]||"default",E=f?.[P]||cs[P];E===void 0&&(M?.("011",M0[m(1902)](P)),P=m(1465),E=f?.default||cs[m(1465)]);const V=!!(C[m(1651)]||n&&typeof C.focusable===m(644)),q=typeof b<"u"&&(C[m(1076)]||t&&typeof C[m(1076)]===m(644)),U=!!(C[m(1079)]||o&&typeof C[m(1079)]===m(644)),W=D[m(1527)](null),[H,G]=D[m(1595)](!1),[T,L]=D[m(1595)](!1),S=Je(),{zIndex:B,sourceX:j,sourceY:A,targetX:I,targetY:J,sourcePosition:_,targetPosition:F}=Ee(D[m(1507)](Y=>{const X=m,ce=Y[X(1470)][X(689)](C[X(2058)]),ae=Y[X(1470)].get(C.target);if(!ce||!ae)return{zIndex:C[X(667)],...ss};const Le=xb({id:e,sourceNode:ce,targetNode:ae,sourceHandle:C[X(2076)]||null,targetHandle:C[X(420)]||null,connectionMode:Y[X(751)],onError:M});return{zIndex:Q2({selected:C[X(471)],zIndex:C[X(667)],sourceNode:ce,targetNode:ae,elevateOnSelect:Y.elevateEdgesOnSelect,zIndexMode:Y[X(563)]}),...Le||ss}},[C.source,C[m(450)],C[m(2076)],C[m(420)],C[m(471)],C[m(667)]]),Re),ee=D[m(2027)](()=>C[m(959)]?m(1452)+Qo(C[m(959)],v)+"')":void 0,[C.markerStart,v]),re=D.useMemo(()=>C[m(975)]?m(1452)+Qo(C.markerEnd,v)+"')":void 0,[C[m(975)],v]);if(C.hidden||j===null||A===null||I===null||J===null)return null;const ue=Y=>{const X=m,{addSelectedEdges:ce,unselectNodesAndEdges:ae,multiSelectionActive:Le}=S[X(2285)]();U&&(S.setState({nodesSelectionActive:!1}),C.selected&&Le?(ae({nodes:[],edges:[C]}),W[X(616)]?.blur()):ce([e])),x&&x(Y,C)},pe=r?Y=>{r(Y,{...C})}:void 0,Me=i?Y=>{i(Y,{...C})}:void 0,de=a?Y=>{a(Y,{...C})}:void 0,$=d?Y=>{d(Y,{...C})}:void 0,be=u?Y=>{u(Y,{...C})}:void 0,ge=Y=>{const X=m;if(!y&&ga[X(1230)](Y[X(427)])&&U){const{unselectNodesAndEdges:ce,addSelectedEdges:ae}=S[X(2285)]();Y[X(427)]===X(924)?(W[X(616)]?.[X(548)](),ce({edges:[C]})):ae([e])}};return l[m(1283)](m(1547),{style:{zIndex:B},children:l[m(948)]("g",{className:i0(["react-flow__edge",m(2092)+P,C.className,w,{selected:C.selected,animated:C[m(571)],inactive:!U&&!x,updating:H,selectable:U}]),onClick:ue,onDoubleClick:pe,onContextMenu:Me,onMouseEnter:de,onMouseMove:$,onMouseLeave:be,onKeyDown:V?ge:void 0,tabIndex:V?0:void 0,role:C[m(999)]??(V?"group":m(576)),"aria-roledescription":m(2185),"data-id":e,"data-testid":m(1777)+e,"aria-label":C[m(453)]===null?void 0:C[m(453)]||m(972)+C.source+" to "+C.target,"aria-describedby":V?pc+"-"+v:void 0,ref:W,...C.domAttributes,children:[!T&&l[m(1283)](E,{id:e,source:C.source,target:C[m(450)],type:C.type,selected:C[m(471)],animated:C[m(571)],selectable:U,deletable:C[m(2222)]??!0,label:C.label,labelStyle:C.labelStyle,labelShowBg:C[m(472)],labelBgStyle:C[m(1683)],labelBgPadding:C.labelBgPadding,labelBgBorderRadius:C.labelBgBorderRadius,sourceX:j,sourceY:A,targetX:I,targetY:J,sourcePosition:_,targetPosition:F,data:C.data,style:C.style,sourceHandleId:C[m(2076)],targetHandleId:C[m(420)],markerStart:ee,markerEnd:re,pathOptions:m(788)in C?C[m(788)]:void 0,interactionWidth:C.interactionWidth}),q&&l[m(1283)](uh,{edge:C,isReconnectable:q,reconnectRadius:s,onReconnect:b,onReconnectStart:g,onReconnectEnd:h,sourceX:j,sourceY:A,targetX:I,targetY:J,sourcePosition:_,targetPosition:F,setUpdateHover:G,setReconnecting:L})]})})}var fh=D.memo(bh);const hh=e=>({edgesFocusable:e[c(441)],edgesReconnectable:e.edgesReconnectable,elementsSelectable:e[c(1357)],connectionMode:e[c(751)],onError:e[c(2120)]});function us({defaultMarkerColor:e,onlyRenderVisibleElements:n,rfId:t,edgeTypes:o,noPanClassName:x,onReconnect:r,onEdgeContextMenu:i,onEdgeMouseEnter:a,onEdgeMouseMove:d,onEdgeMouseLeave:u,onEdgeClick:s,reconnectRadius:b,onEdgeDoubleClick:g,onReconnectStart:h,onReconnectEnd:v,disableKeyboardA11y:f}){const w=c,{edgesFocusable:M,edgesReconnectable:y,elementsSelectable:m,onError:C}=Ee(hh,Re),z=$f(n);return l[w(948)](w(737),{className:w(1757),children:[l[w(1283)](oh,{defaultColor:e,rfId:t}),z[w(1226)](P=>l[w(1283)](fh,{id:P,edgesFocusable:M,edgesReconnectable:y,elementsSelectable:m,noPanClassName:x,onReconnect:r,onContextMenu:i,onMouseEnter:a,onMouseMove:d,onMouseLeave:u,onClick:s,reconnectRadius:b,onDoubleClick:g,onReconnectStart:h,onReconnectEnd:v,rfId:t,onError:C,edgeTypes:o,disableKeyboardA11y:f},P))]})}us[c(947)]=c(1094);const gh=D[c(1221)](us),yh=e=>c(1398)+e[c(1713)][0]+c(2216)+e.transform[1]+c(1934)+e.transform[2]+")";function mh({children:e}){const n=c,t=Ee(yh);return l[n(1283)](n(737),{className:n(1228),style:{transform:t},children:e})}function vh(e){const n=c,t=ur(),o=D[n(1527)](!1);D.useEffect(()=>{const x=n;!o.current&&t[x(1002)]&&e&&(setTimeout(()=>e(t),1),o[x(616)]=!0)},[e,t[n(1002)]])}const wh=e=>e[c(651)]?.[c(2087)];function ph(e){const n=Ee(wh),t=Je();return D.useEffect(()=>{const o=_0x51e5;e&&(n?.(e),t[o(1024)]({transform:[e.x,e.y,e[o(1146)]]}))},[e,n]),null}function zh(e){const n=c;return e[n(513)][n(2235)]?{...e[n(513)],to:Gt(e[n(513)].to,e[n(1713)])}:{...e[n(513)]}}function Ch(e){return zh}function Mh(e){const n=Ch();return Ee(n,Re)}const Bh=e=>({nodesConnectable:e.nodesConnectable,isValid:e[c(513)][c(1023)],inProgress:e[c(513)].inProgress,width:e.width,height:e[c(725)]});function Dh({containerStyle:e,style:n,type:t,component:o}){const x=c,{nodesConnectable:r,width:i,height:a,isValid:d,inProgress:u}=Ee(Bh,Re);return!(i&&r&&u)?null:l.jsx(x(1547),{style:e,width:i,height:a,className:x(1707),children:l.jsx("g",{className:i0([x(718),wa(d)]),children:l.jsx(bs,{style:n,type:t,CustomComponent:o,isValid:d})})})}const bs=({style:e,type:n=cn.Bezier,CustomComponent:t,isValid:o})=>{const x=c,{inProgress:r,from:i,fromNode:a,fromHandle:d,fromPosition:u,to:s,toNode:b,toHandle:g,toPosition:h,pointer:v}=Mh();if(!r)return;if(t)return l[x(1283)](t,{connectionLineType:n,connectionLineStyle:e,fromNode:a,fromHandle:d,fromX:i.x,fromY:i.y,toX:s.x,toY:s.y,fromPosition:u,toPosition:h,connectionStatus:wa(o),toNode:b,toHandle:g,pointer:v});let f="";const w={sourceX:i.x,sourceY:i.y,sourcePosition:u,targetX:s.x,targetY:s.y,targetPosition:h};switch(n){case cn.Bezier:[f]=Ga(w);break;case cn[x(1268)]:[f]=Qc(w);break;case cn.Step:[f]=Jo({...w,borderRadius:0});break;case cn[x(1035)]:[f]=Jo(w);break;default:[f]=Ha(w)}return l[x(1283)](x(2159),{d:f,fill:x(1501),className:x(776),style:e})};bs[c(947)]=c(1899);const Lh={};function fs(e=Lh){const n=D.useRef(e),t=Je();D.useEffect(()=>{const o=_0x51e5;if(process.env.NODE_ENV===o(1209)){const x=new Set([...Object[o(1485)](n[o(616)]),...Object.keys(e)]);for(const r of x)if(n.current[r]!==e[r]){t[o(2285)]()[o(2120)]?.(o(546),M0[o(2254)]());break}n[o(616)]=e}},[e])}function Sh(){const e=c,n=Je(),t=D.useRef(!1);D[e(1646)](()=>{const o=e;if(process.env.NODE_ENV===o(1209)&&!t.current){const x=document.querySelector(o(1848));x&&window[o(465)](x)[o(667)]!=="1"&&n[o(2285)]()[o(2120)]?.(o(1738),M0[o(1093)](o(903))),t[o(616)]=!0}},[])}function hs({nodeTypes:e,edgeTypes:n,onInit:t,onNodeClick:o,onEdgeClick:x,onNodeDoubleClick:r,onEdgeDoubleClick:i,onNodeMouseEnter:a,onNodeMouseMove:d,onNodeMouseLeave:u,onNodeContextMenu:s,onSelectionContextMenu:b,onSelectionStart:g,onSelectionEnd:h,connectionLineType:v,connectionLineStyle:f,connectionLineComponent:w,connectionLineContainerStyle:M,selectionKeyCode:y,selectionOnDrag:m,selectionMode:C,multiSelectionKeyCode:z,panActivationKeyCode:P,zoomActivationKeyCode:E,deleteKeyCode:V,onlyRenderVisibleElements:q,elementsSelectable:U,defaultViewport:W,translateExtent:H,minZoom:G,maxZoom:T,preventScrolling:L,defaultMarkerColor:S,zoomOnScroll:B,zoomOnPinch:j,panOnScroll:A,panOnScrollSpeed:I,panOnScrollMode:J,zoomOnDoubleClick:_,panOnDrag:F,onPaneClick:ee,onPaneMouseEnter:re,onPaneMouseMove:ue,onPaneMouseLeave:pe,onPaneScroll:Me,onPaneContextMenu:de,paneClickDistance:$,nodeClickDistance:be,onEdgeContextMenu:ge,onEdgeMouseEnter:Y,onEdgeMouseMove:X,onEdgeMouseLeave:ce,reconnectRadius:ae,onReconnect:Le,onReconnectStart:Be,onReconnectEnd:Ae,noDragClassName:He,noWheelClassName:Ie,noPanClassName:h0,disableKeyboardA11y:Se,nodeExtent:Qe,rfId:te,viewport:ze,onViewportChange:we}){const ve=c;return fs(e),fs(n),Sh(),vh(t),ph(ze),l.jsx(qf,{onPaneClick:ee,onPaneMouseEnter:re,onPaneMouseMove:ue,onPaneMouseLeave:pe,onPaneContextMenu:de,onPaneScroll:Me,paneClickDistance:$,deleteKeyCode:V,selectionKeyCode:y,selectionOnDrag:m,selectionMode:C,onSelectionStart:g,onSelectionEnd:h,multiSelectionKeyCode:z,panActivationKeyCode:P,zoomActivationKeyCode:E,elementsSelectable:U,zoomOnScroll:B,zoomOnPinch:j,zoomOnDoubleClick:_,panOnScroll:A,panOnScrollSpeed:I,panOnScrollMode:J,panOnDrag:F,defaultViewport:W,translateExtent:H,minZoom:G,maxZoom:T,onSelectionContextMenu:b,preventScrolling:L,noDragClassName:He,noWheelClassName:Ie,noPanClassName:h0,disableKeyboardA11y:Se,onViewportChange:we,isControlledViewport:!!ze,children:l[ve(948)](mh,{children:[l[ve(1283)](gh,{edgeTypes:n,onEdgeClick:x,onEdgeDoubleClick:i,onReconnect:Le,onReconnectStart:Be,onReconnectEnd:Ae,onlyRenderVisibleElements:q,onEdgeContextMenu:ge,onEdgeMouseEnter:Y,onEdgeMouseMove:X,onEdgeMouseLeave:ce,reconnectRadius:ae,defaultMarkerColor:S,noPanClassName:h0,disableKeyboardA11y:Se,rfId:te}),l[ve(1283)](Dh,{style:f,type:v,component:w,containerStyle:M}),l.jsx(ve(737),{className:ve(1234)}),l.jsx(_f,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:r,onNodeMouseEnter:a,onNodeMouseMove:d,onNodeMouseLeave:u,onNodeContextMenu:s,nodeClickDistance:be,onlyRenderVisibleElements:q,noPanClassName:h0,noDragClassName:He,disableKeyboardA11y:Se,nodeExtent:Qe,rfId:te}),l[ve(1283)]("div",{className:ve(701)})]})})}hs[c(947)]=c(624);const Nh=D[c(1221)](hs),gs=({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:i,fitViewOptions:a,minZoom:d=.5,maxZoom:u=2,nodeOrigin:s,nodeExtent:b,zIndexMode:g=c(1013)}={})=>{const h=c,v=new Map,f=new Map,w=new Map,M=new Map,y=o??n??[],m=t??e??[],C=s??[0,0],z=b??Pt;Qa(w,M,y);const{nodesInitialized:P}=er(m,v,f,{nodeOrigin:C,nodeExtent:z,zIndexMode:g});let E=[0,0,1];if(i&&x&&r){const V=Yt(v,{filter:H=>!!((H[h(434)]||H.initialWidth)&&(H[h(725)]||H[h(2016)]))}),{x:q,y:U,zoom:W}=Zo(V,x,r,d,u,a?.padding??.1);E=[q,U,W]}return{rfId:"1",width:x??0,height:r??0,transform:E,nodes:m,nodesInitialized:P,nodeLookup:v,parentLookup:f,edges:y,edgeLookup:M,connectionLookup:w,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:t!==void 0,hasDefaultEdges:o!==void 0,panZoom:null,minZoom:d,maxZoom:u,translateExtent:Pt,nodeExtent:z,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Jn.Strict,domNode:null,paneDragging:!1,noPanClassName:h(1277),nodeOrigin:C,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:i??!1,fitViewOptions:a,fitViewResolver:null,connection:{...ma},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Sa,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:h(903),debug:!1,ariaLabelConfig:ya,zIndexMode:g,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},kh=({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:i,fitViewOptions:a,minZoom:d,maxZoom:u,nodeOrigin:s,nodeExtent:b,zIndexMode:g})=>Rb((h,v)=>{async function f(){const w=_0x51e5,{nodeLookup:M,panZoom:y,fitViewOptions:m,fitViewResolver:C,width:z,height:P,minZoom:E,maxZoom:V}=v();y&&(await q2({nodes:M,width:z,height:P,panZoom:y,minZoom:E,maxZoom:V},m),C?.[w(1858)](!0),h({fitViewResolver:null}))}return{...gs({nodes:e,edges:n,width:x,height:r,fitView:i,fitViewOptions:a,minZoom:d,maxZoom:u,nodeOrigin:s,nodeExtent:b,defaultNodes:t,defaultEdges:o,zIndexMode:g}),setNodes:w=>{const{nodeLookup:M,parentLookup:y,nodeOrigin:m,elevateNodesOnSelect:C,fitViewQueued:z,zIndexMode:P,nodesSelectionActive:E}=v(),{nodesInitialized:V,hasSelectedNodes:q}=er(w,M,y,{nodeOrigin:m,nodeExtent:b,elevateNodesOnSelect:C,checkEquality:!0,zIndexMode:P}),U=E&&q;z&&V?(f(),h({nodes:w,nodesInitialized:V,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:U})):h({nodes:w,nodesInitialized:V,nodesSelectionActive:U})},setEdges:w=>{const{connectionLookup:M,edgeLookup:y}=v();Qa(M,y,w),h({edges:w})},setDefaultNodesAndEdges:(w,M)=>{if(w){const{setNodes:y}=v();y(w),h({hasDefaultNodes:!0})}if(M){const{setEdges:y}=v();y(M),h({hasDefaultEdges:!0})}},updateNodeInternals:w=>{const M=_0x51e5,{triggerNodeChanges:y,nodeLookup:m,parentLookup:C,domNode:z,nodeOrigin:P,nodeExtent:E,debug:V,fitViewQueued:q,zIndexMode:U}=v(),{changes:W,updatedInternals:H}=db(w,m,C,z,P,E,U);H&&(ab(m,C,{nodeOrigin:P,nodeExtent:E,zIndexMode:U}),q?(f(),h({fitViewQueued:!1,fitViewOptions:void 0})):h({}),W?.[M(1755)]>0&&(V&&console.log(M(762),W),y?.(W)))},updateNodePositions:(w,M=!1)=>{const y=_0x51e5,m=[];let C=[];const{nodeLookup:z,triggerNodeChanges:P,connection:E,updateConnection:V,onNodesChangeMiddlewareMap:q}=v();for(const[U,W]of w){const H=z[y(689)](U),G=!!(H?.[y(796)]&&H?.[y(887)]&&W?.[y(675)]),T={id:U,type:y(675),position:G?{x:Math[y(656)](0,W[y(675)].x),y:Math.max(0,W[y(675)].y)}:W[y(675)],dragging:M};if(H&&E[y(2235)]&&E.fromNode.id===H.id){const L=Ln(H,E[y(2217)],Ne.Left,!0);V({...E,from:L})}G&&H[y(887)]&&m.push({id:U,parentId:H[y(887)],rect:{...W[y(815)][y(1739)],width:W[y(1168)][y(434)]??0,height:W.measured[y(725)]??0}}),C.push(T)}if(m[y(1755)]>0){const{parentLookup:U,nodeOrigin:W}=v(),H=tr(m,z,U,W);C.push(...H)}for(const U of q[y(951)]())C=U(C);P(C)},triggerNodeChanges:w=>{const M=_0x51e5,{onNodesChange:y,setNodes:m,nodes:C,hasDefaultNodes:z,debug:P}=v();if(w?.[M(1755)]){if(z){const E=kc(w,C);m(E)}P&&console[M(859)](M(762),w),y?.(w)}},triggerEdgeChanges:w=>{const M=_0x51e5,{onEdgesChange:y,setEdges:m,edges:C,hasDefaultEdges:z,debug:P}=v();if(w?.[M(1755)]){if(z){const E=Ic(w,C);m(E)}P&&console[M(859)](M(1620),w),y?.(w)}},addSelectedNodes:w=>{const M=_0x51e5,{multiSelectionActive:y,edgeLookup:m,nodeLookup:C,triggerNodeChanges:z,triggerEdgeChanges:P}=v();if(y){const E=w[M(1226)](V=>Sn(V,!0));z(E);return}z(tt(C,new Set([...w]),!0)),P(tt(m))},addSelectedEdges:w=>{const{multiSelectionActive:M,edgeLookup:y,nodeLookup:m,triggerNodeChanges:C,triggerEdgeChanges:z}=v();if(M){const P=w.map(E=>Sn(E,!0));z(P);return}z(tt(y,new Set([...w]))),C(tt(m,new Set,!0))},unselectNodesAndEdges:({nodes:w,edges:M}={})=>{const y=_0x51e5,{edges:m,nodes:C,nodeLookup:z,triggerNodeChanges:P,triggerEdgeChanges:E}=v(),V=w||C,q=M||m,U=[];for(const H of V){if(!H.selected)continue;const G=z[y(689)](H.id);G&&(G[y(471)]=!1),U[y(573)](Sn(H.id,!1))}const W=[];for(const H of q)H[y(471)]&&W.push(Sn(H.id,!1));P(U),E(W)},setMinZoom:w=>{const M=_0x51e5,{panZoom:y,maxZoom:m}=v();y?.[M(423)]([w,m]),h({minZoom:w})},setMaxZoom:w=>{const{panZoom:M,minZoom:y}=v();M?.setScaleExtent([y,w]),h({maxZoom:w})},setTranslateExtent:w=>{const M=_0x51e5;v()[M(651)]?.setTranslateExtent(w),h({translateExtent:w})},resetSelectedElements:()=>{const w=_0x51e5,{edges:M,nodes:y,triggerNodeChanges:m,triggerEdgeChanges:C,elementsSelectable:z}=v();if(!z)return;const P=y[w(1872)]((V,q)=>q[w(471)]?[...V,Sn(q.id,!1)]:V,[]),E=M.reduce((V,q)=>q[w(471)]?[...V,Sn(q.id,!1)]:V,[]);m(P),C(E)},setNodeExtent:w=>{const{nodes:M,nodeLookup:y,parentLookup:m,nodeOrigin:C,elevateNodesOnSelect:z,nodeExtent:P,zIndexMode:E}=v();w[0][0]===P[0][0]&&w[0][1]===P[0][1]&&w[1][0]===P[1][0]&&w[1][1]===P[1][1]||(er(M,y,m,{nodeOrigin:C,nodeExtent:w,elevateNodesOnSelect:z,checkEquality:!1,zIndexMode:E}),h({nodeExtent:w}))},panBy:w=>{const{transform:M,width:y,height:m,panZoom:C,translateExtent:z}=v();return ub({delta:w,panZoom:C,transform:M,translateExtent:z,width:y,height:m})},setCenter:async(w,M,y)=>{const m=_0x51e5,{width:C,height:z,maxZoom:P,panZoom:E}=v();if(!E)return Promise[m(1858)](!1);const V=typeof y?.[m(1146)]<"u"?y.zoom:P;return await E[m(2033)]({x:C/2-w*V,y:z/2-M*V,zoom:V},{duration:y?.[m(1163)],ease:y?.[m(2166)],interpolate:y?.interpolate}),Promise[m(1858)](!0)},cancelConnection:()=>{h({connection:{...ma}})},updateConnection:w=>{h({connection:w})},reset:()=>h({...gs()})}},Object.is);function Ih({initialNodes:e,initialEdges:n,defaultNodes:t,defaultEdges:o,initialWidth:x,initialHeight:r,initialMinZoom:i,initialMaxZoom:a,initialFitViewOptions:d,fitView:u,nodeOrigin:s,nodeExtent:b,zIndexMode:g,children:h}){const v=c,[f]=D[v(1595)](()=>kh({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,width:x,height:r,fitView:u,minZoom:i,maxZoom:a,fitViewOptions:d,nodeOrigin:s,nodeExtent:b,zIndexMode:g}));return l[v(1283)](Jb,{value:f,children:l[v(1283)](mf,{children:h})})}function Ph({children:e,nodes:n,edges:t,defaultNodes:o,defaultEdges:x,width:r,height:i,fitView:a,fitViewOptions:d,minZoom:u,maxZoom:s,nodeOrigin:b,nodeExtent:g,zIndexMode:h}){const v=c;return D[v(1430)](Hx)?l[v(1283)](l[v(443)],{children:e}):l.jsx(Ih,{initialNodes:n,initialEdges:t,defaultNodes:o,defaultEdges:x,initialWidth:r,initialHeight:i,fitView:a,initialFitViewOptions:d,initialMinZoom:u,initialMaxZoom:s,nodeOrigin:b,nodeExtent:g,zIndexMode:h,children:e})}const Ah={width:"100%",height:c(1672),overflow:c(2103),position:c(1730),zIndex:0};function jh({nodes:e,edges:n,defaultNodes:t,defaultEdges:o,className:x,nodeTypes:r,edgeTypes:i,onNodeClick:a,onEdgeClick:d,onInit:u,onMove:s,onMoveStart:b,onMoveEnd:g,onConnect:h,onConnectStart:v,onConnectEnd:f,onClickConnectStart:w,onClickConnectEnd:M,onNodeMouseEnter:y,onNodeMouseMove:m,onNodeMouseLeave:C,onNodeContextMenu:z,onNodeDoubleClick:P,onNodeDragStart:E,onNodeDrag:V,onNodeDragStop:q,onNodesDelete:U,onEdgesDelete:W,onDelete:H,onSelectionChange:G,onSelectionDragStart:T,onSelectionDrag:L,onSelectionDragStop:S,onSelectionContextMenu:B,onSelectionStart:j,onSelectionEnd:A,onBeforeDelete:I,connectionMode:J,connectionLineType:_=cn[c(1252)],connectionLineStyle:F,connectionLineComponent:ee,connectionLineContainerStyle:re,deleteKeyCode:ue=c(1111),selectionKeyCode:pe=c(2146),selectionOnDrag:Me=!1,selectionMode:de=At[c(1820)],panActivationKeyCode:$=c(1229),multiSelectionKeyCode:be=Ot()?c(1004):c(950),zoomActivationKeyCode:ge=Ot()?c(1004):c(950),snapToGrid:Y,snapGrid:X,onlyRenderVisibleElements:ce=!1,selectNodesOnDrag:ae,nodesDraggable:Le,autoPanOnNodeFocus:Be,nodesConnectable:Ae,nodesFocusable:He,nodeOrigin:Ie=zc,edgesFocusable:h0,edgesReconnectable:Se,elementsSelectable:Qe=!0,defaultViewport:te=sf,minZoom:ze=.5,maxZoom:we=2,translateExtent:ve=Pt,preventScrolling:ne=!0,nodeExtent:Pe,defaultMarkerColor:Te="#b1b1b7",zoomOnScroll:Ge=!0,zoomOnPinch:qe=!0,panOnScroll:Xe=!1,panOnScrollSpeed:Ke=.5,panOnScrollMode:Ue=Bn[c(545)],zoomOnDoubleClick:Oe=!0,panOnDrag:a0=!0,onPaneClick:Fe,onPaneMouseEnter:e0,onPaneMouseMove:n0,onPaneMouseLeave:x0,onPaneScroll:X0,onPaneContextMenu:G0,paneClickDistance:S0=1,nodeClickDistance:u0=0,children:v0,onReconnect:l0,onReconnectStart:B0,onReconnectEnd:N0,onEdgeContextMenu:bn,onEdgeDoubleClick:_0,onEdgeMouseEnter:w0,onEdgeMouseMove:ot,onEdgeMouseLeave:$0,reconnectRadius:Nn=10,onNodesChange:fn,onEdgesChange:kn,noDragClassName:Tt=c(1235),noWheelClassName:Qx="nowheel",noPanClassName:rt="nopan",fitView:qt,fitViewOptions:Wt,connectOnClick:Fx,attributionPosition:_x,proOptions:$x,defaultEdgeOptions:eo,elevateNodesOnSelect:no=!0,elevateEdgesOnSelect:Xt=!1,disableKeyboardA11y:hn=!1,autoPanOnConnect:In,autoPanOnNodeDrag:yr,autoPanSpeed:en,connectionRadius:to,isValidConnection:xo,onError:Kt,style:mr,id:it,nodeDragThreshold:vr,connectionDragThreshold:wr,viewport:pr,onViewportChange:oo,width:ro,height:Zt,colorMode:io=c(2144),debug:Rt,onScroll:N,ariaLabelConfig:k,zIndexMode:K=c(1013),...R},Q){const O=c,Z=it||"1",se=bf(io),xe=D[O(1507)](oe=>{const le=O;oe[le(2119)][le(1526)]({top:0,left:0,behavior:le(496)}),N?.(oe)},[N]);return l.jsx("div",{"data-testid":O(542),...R,onScroll:xe,style:{...mr,...Ah},ref:Q,className:i0([O(722),x,se]),id:it,role:O(1291),children:l.jsxs(Ph,{nodes:e,edges:n,width:ro,height:Zt,fitView:qt,fitViewOptions:Wt,minZoom:ze,maxZoom:we,nodeOrigin:Ie,nodeExtent:Pe,zIndexMode:K,children:[l[O(1283)](uf,{nodes:e,edges:n,defaultNodes:t,defaultEdges:o,onConnect:h,onConnectStart:v,onConnectEnd:f,onClickConnectStart:w,onClickConnectEnd:M,nodesDraggable:Le,autoPanOnNodeFocus:Be,nodesConnectable:Ae,nodesFocusable:He,edgesFocusable:h0,edgesReconnectable:Se,elementsSelectable:Qe,elevateNodesOnSelect:no,elevateEdgesOnSelect:Xt,minZoom:ze,maxZoom:we,nodeExtent:Pe,onNodesChange:fn,onEdgesChange:kn,snapToGrid:Y,snapGrid:X,connectionMode:J,translateExtent:ve,connectOnClick:Fx,defaultEdgeOptions:eo,fitView:qt,fitViewOptions:Wt,onNodesDelete:U,onEdgesDelete:W,onDelete:H,onNodeDragStart:E,onNodeDrag:V,onNodeDragStop:q,onSelectionDrag:L,onSelectionDragStart:T,onSelectionDragStop:S,onMove:s,onMoveStart:b,onMoveEnd:g,noPanClassName:rt,nodeOrigin:Ie,rfId:Z,autoPanOnConnect:In,autoPanOnNodeDrag:yr,autoPanSpeed:en,onError:Kt,connectionRadius:to,isValidConnection:xo,selectNodesOnDrag:ae,nodeDragThreshold:vr,connectionDragThreshold:wr,onBeforeDelete:I,debug:Rt,ariaLabelConfig:k,zIndexMode:K}),l[O(1283)](Nh,{onInit:u,onNodeClick:a,onEdgeClick:d,onNodeMouseEnter:y,onNodeMouseMove:m,onNodeMouseLeave:C,onNodeContextMenu:z,onNodeDoubleClick:P,nodeTypes:r,edgeTypes:i,connectionLineType:_,connectionLineStyle:F,connectionLineComponent:ee,connectionLineContainerStyle:re,selectionKeyCode:pe,selectionOnDrag:Me,selectionMode:de,deleteKeyCode:ue,multiSelectionKeyCode:be,panActivationKeyCode:$,zoomActivationKeyCode:ge,onlyRenderVisibleElements:ce,defaultViewport:te,translateExtent:ve,minZoom:ze,maxZoom:we,preventScrolling:ne,zoomOnScroll:Ge,zoomOnPinch:qe,zoomOnDoubleClick:Oe,panOnScroll:Xe,panOnScrollSpeed:Ke,panOnScrollMode:Ue,panOnDrag:a0,onPaneClick:Fe,onPaneMouseEnter:e0,onPaneMouseMove:n0,onPaneMouseLeave:x0,onPaneScroll:X0,onPaneContextMenu:G0,paneClickDistance:S0,nodeClickDistance:u0,onSelectionContextMenu:B,onSelectionStart:j,onSelectionEnd:A,onReconnect:l0,onReconnectStart:B0,onReconnectEnd:N0,onEdgeContextMenu:bn,onEdgeDoubleClick:_0,onEdgeMouseEnter:w0,onEdgeMouseMove:ot,onEdgeMouseLeave:$0,reconnectRadius:Nn,defaultMarkerColor:Te,noDragClassName:Tt,noWheelClassName:Qx,noPanClassName:rt,rfId:Z,disableKeyboardA11y:hn,nodeExtent:Pe,viewport:pr,onViewportChange:oo}),l[O(1283)](cf,{onSelectionChange:G}),v0,l[O(1283)](tf,{proOptions:$x,position:_x}),l[O(1283)](nf,{rfId:Z,disableKeyboardA11y:hn})]})})}var Yh=Yc(jh);function Eh(e){const n=c,[t,o]=D[n(1595)](e),x=D[n(1507)](r=>o(i=>kc(r,i)),[]);return[t,o,x]}function Uh(e){const n=c,[t,o]=D[n(1595)](e),x=D[n(1507)](r=>o(i=>Ic(r,i)),[]);return[t,o,x]}function Gh({dimensions:e,lineWidth:n,variant:t,className:o}){const x=c;return l[x(1283)](x(2159),{strokeWidth:n,d:"M"+e[0]/2+x(1380)+e[1]+x(1288)+e[1]/2+" H"+e[0],className:i0(["react-flow__background-pattern",t,o])})}function Oh({radius:e,className:n}){const t=c;return l[t(1283)](t(697),{cx:e,cy:e,r:e,className:i0([t(562),t(1347),n])})}var dn;(function(e){const n=c;e.Lines=n(2246),e[n(1114)]=n(1347),e[n(1214)]="cross"})(dn||(dn={}));const Vh={[dn.Dots]:1,[dn.Lines]:1,[dn[c(1214)]]:6},Hh=e=>({transform:e[c(1713)],patternId:"pattern-"+e[c(446)]});function ys({id:e,variant:n=dn[c(1114)],gap:t=20,size:o,lineWidth:x=1,offset:r=0,color:i,bgColor:a,style:d,className:u,patternClassName:s}){const b=c,g=D.useRef(null),{transform:h,patternId:v}=Ee(Hh,Re),f=o||Vh[n],w=n===dn.Dots,M=n===dn.Cross,y=Array[b(1996)](t)?t:[t,t],m=[y[0]*h[2]||1,y[1]*h[2]||1],C=f*h[2],z=Array[b(1996)](r)?r:[r,r],P=M?[C,C]:m,E=[z[0]*h[2]||1+P[0]/2,z[1]*h[2]||1+P[1]/2],V=""+v+(e||"");return l[b(948)](b(1547),{className:i0([b(1473),u]),style:{...d,...Wx,"--xy-background-color-props":a,"--xy-background-pattern-color-props":i},ref:g,"data-testid":b(691),children:[l[b(1283)](b(1282),{id:V,x:h[0]%m[0],y:h[1]%m[1],width:m[0],height:m[1],patternUnits:b(629),patternTransform:b(1871)+E[0]+",-"+E[1]+")",children:w?l[b(1283)](Oh,{radius:C/2,className:s}):l[b(1283)](Gh,{dimensions:P,lineWidth:x,variant:n,className:s})}),l.jsx(b(1941),{x:"0",y:"0",width:b(1672),height:"100%",fill:b(2210)+V+")"})]})}ys[c(947)]=c(2156);const Th=D[c(1221)](ys);function qh(){const e=c;return l.jsx(e(1547),{xmlns:e(786),viewBox:"0 0 32 32",children:l[e(1283)](e(2159),{d:e(905)})})}function Wh(){const e=c;return l.jsx(e(1547),{xmlns:e(786),viewBox:e(1711),children:l[e(1283)]("path",{d:e(1457)})})}function Xh(){const e=c;return l[e(1283)](e(1547),{xmlns:e(786),viewBox:e(714),children:l.jsx(e(2159),{d:e(844)})})}function Kh(){const e=c;return l[e(1283)]("svg",{xmlns:e(786),viewBox:"0 0 25 32",children:l[e(1283)](e(2159),{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function Zh(){const e=c;return l[e(1283)](e(1547),{xmlns:"http://www.w3.org/2000/svg",viewBox:e(850),children:l[e(1283)](e(2159),{d:e(1356)})})}function Zx({children:e,className:n,...t}){const o=c;return l[o(1283)](o(1454),{type:o(1454),className:i0(["react-flow__controls-button",n]),...t,children:e})}const Rh=e=>({isInteractive:e[c(1999)]||e.nodesConnectable||e.elementsSelectable,minZoomReached:e[c(1713)][2]<=e[c(1007)],maxZoomReached:e[c(1713)][2]>=e[c(1333)],ariaLabelConfig:e[c(1961)]});function ms({style:e,showZoom:n=!0,showFitView:t=!0,showInteractive:o=!0,fitViewOptions:x,onZoomIn:r,onZoomOut:i,onFitView:a,onInteractiveChange:d,className:u,children:s,position:b="bottom-left",orientation:g="vertical","aria-label":h}){const v=c,f=Je(),{isInteractive:w,minZoomReached:M,maxZoomReached:y,ariaLabelConfig:m}=Ee(Rh,Re),{zoomIn:C,zoomOut:z,fitView:P}=ur(),E=()=>{C(),r?.()},V=()=>{z(),i?.()},q=()=>{P(x),a?.()},U=()=>{f[_0x51e5(1024)]({nodesDraggable:!w,nodesConnectable:!w,elementsSelectable:!w}),d?.(!w)},W=g===v(872)?"horizontal":v(1724);return l[v(948)](Tx,{className:i0([v(1071),W,u]),position:b,style:e,"data-testid":v(877),"aria-label":h??m[v(2078)],children:[n&&l[v(948)](l[v(443)],{children:[l[v(1283)](Zx,{onClick:E,className:v(1039),title:m[v(1494)],"aria-label":m["controls.zoomIn.ariaLabel"],disabled:y,children:l[v(1283)](qh,{})}),l.jsx(Zx,{onClick:V,className:v(1157),title:m[v(1469)],"aria-label":m[v(1469)],disabled:M,children:l[v(1283)](Wh,{})})]}),t&&l.jsx(Zx,{className:v(2135),onClick:q,title:m[v(1041)],"aria-label":m[v(1041)],children:l[v(1283)](Xh,{})}),o&&l.jsx(Zx,{className:v(1815),onClick:U,title:m[v(603)],"aria-label":m[v(603)],children:w?l[v(1283)](Zh,{}):l.jsx(Kh,{})}),s]})}ms[c(947)]="Controls";const Jh=D.memo(ms);function Qh({id:e,x:n,y:t,width:o,height:x,style:r,color:i,strokeColor:a,strokeWidth:d,className:u,borderRadius:s,shapeRendering:b,selected:g,onClick:h}){const v=c,{background:f,backgroundColor:w}=r||{},M=i||f||w;return l[v(1283)](v(1941),{className:i0([v(460),{selected:g},u]),x:n,y:t,rx:s,ry:s,width:o,height:x,style:{fill:M,stroke:a,strokeWidth:d},shapeRendering:b,onClick:h?y=>h(y,e):void 0})}const Fh=D.memo(Qh),_h=e=>e[c(1349)][c(1226)](n=>n.id),gr=e=>e instanceof Function?e:()=>e;function $h({nodeStrokeColor:e,nodeColor:n,nodeClassName:t="",nodeBorderRadius:o=5,nodeStrokeWidth:x,nodeComponent:r=Fh,onClick:i}){const a=c,d=Ee(_h,Re),u=gr(n),s=gr(e),b=gr(t),g=typeof window===a(644)||window.chrome?a(1895):a(1879);return l[a(1283)](l[a(443)],{children:d.map(h=>l[a(1283)](ng,{id:h,nodeColorFunc:u,nodeStrokeColorFunc:s,nodeClassNameFunc:b,nodeBorderRadius:o,nodeStrokeWidth:x,NodeComponent:r,onClick:i,shapeRendering:g},h))})}function eg({id:e,nodeColorFunc:n,nodeStrokeColorFunc:t,nodeClassNameFunc:o,nodeBorderRadius:x,nodeStrokeWidth:r,shapeRendering:i,NodeComponent:a,onClick:d}){const u=c,{node:s,x:b,y:g,width:h,height:v}=Ee(f=>{const w=_0x51e5,M=f[w(1470)][w(689)](e);if(!M)return{node:void 0,x:0,y:0,width:0,height:0};const y=M.internals[w(988)],{x:m,y:C}=M[w(815)][w(1739)],{width:z,height:P}=F0(y);return{node:y,x:m,y:C,width:z,height:P}},Re);return!s||s[u(2103)]||!Na(s)?null:l[u(1283)](a,{x:b,y:g,width:h,height:v,style:s[u(777)],selected:!!s.selected,className:o(s),color:n(s),borderRadius:x,strokeColor:t(s),strokeWidth:r,shapeRendering:i,onClick:d,id:s.id})}const ng=D.memo(eg);var tg=D[c(1221)]($h);const xg=200,og=150,rg=e=>!e[c(2103)],ig=e=>{const n=c,t={x:-e[n(1713)][0]/e[n(1713)][2],y:-e.transform[1]/e[n(1713)][2],width:e[n(434)]/e[n(1713)][2],height:e[n(725)]/e.transform[2]};return{viewBB:t,boundingRect:e[n(1470)][n(492)]>0?Da(Yt(e[n(1470)],{filter:rg}),t):t,rfId:e[n(446)],panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e[n(725)],ariaLabelConfig:e[n(1961)]}},ag=c(1986);function vs({style:e,className:n,nodeStrokeColor:t,nodeColor:o,nodeClassName:x="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:a,bgColor:d,maskColor:u,maskStrokeColor:s,maskStrokeWidth:b,position:g=c(2060),onClick:h,onNodeClick:v,pannable:f=!1,zoomable:w=!1,ariaLabel:M,inversePan:y,zoomStep:m=1,offsetScale:C=5}){const z=c,P=Je(),E=D.useRef(null),{boundingRect:V,viewBB:q,rfId:U,panZoom:W,translateExtent:H,flowWidth:G,flowHeight:T,ariaLabelConfig:L}=Ee(ig,Re),S=e?.[z(434)]??xg,B=e?.height??og,j=V[z(434)]/S,A=V.height/B,I=Math.max(j,A),J=I*S,_=I*B,F=C*I,ee=V.x-(J-V.width)/2-F,re=V.y-(_-V.height)/2-F,ue=J+F*2,pe=_+F*2,Me=ag+"-"+U,de=D[z(1527)](0),$=D.useRef();de[z(616)]=I,D.useEffect(()=>{const X=z;if(E[X(616)]&&W)return $[X(616)]=pb({domNode:E[X(616)],panZoom:W,getTransform:()=>P.getState()[X(1713)],getViewScale:()=>de.current}),()=>{const ce=X;$[ce(616)]?.[ce(807)]()}},[W]),D[z(1646)](()=>{$.current?.update({translateExtent:H,width:G,height:T,inversePan:y,pannable:f,zoomStep:m,zoomable:w})},[f,w,y,m,H,G,T]);const be=h?X=>{const ce=z,[ae,Le]=$.current?.[ce(968)](X)||[0,0];h(X,{x:ae,y:Le})}:void 0,ge=v?D.useCallback((X,ce)=>{const ae=z,Le=P.getState()[ae(1470)][ae(689)](ce)[ae(815)][ae(988)];v(X,Le)},[]):void 0,Y=M??L["minimap.ariaLabel"];return l.jsx(Tx,{position:g,style:{...e,"--xy-minimap-background-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-color-props":typeof s===z(2150)?s:void 0,"--xy-minimap-mask-stroke-width-props":typeof b===z(825)?b*I:void 0,"--xy-minimap-node-background-color-props":typeof o===z(2150)?o:void 0,"--xy-minimap-node-stroke-color-props":typeof t=="string"?t:void 0,"--xy-minimap-node-stroke-width-props":typeof i=="number"?i:void 0},className:i0([z(919),n]),"data-testid":z(1025),children:l[z(948)]("svg",{width:S,height:B,viewBox:ee+" "+re+" "+ue+" "+pe,className:z(1718),role:z(576),"aria-labelledby":Me,ref:E,onClick:be,children:[Y&&l[z(1283)](z(2295),{id:Me,children:Y}),l[z(1283)](tg,{onClick:ge,nodeColor:o,nodeStrokeColor:t,nodeBorderRadius:r,nodeClassName:x,nodeStrokeWidth:i,nodeComponent:a}),l[z(1283)]("path",{className:z(1569),d:"M"+(ee-F)+","+(re-F)+"h"+(ue+F*2)+"v"+(pe+F*2)+"h"+(-ue-F*2)+z(1101)+q.x+","+q.y+"h"+q[z(434)]+"v"+q[z(725)]+"h"+-q[z(434)]+"z",fillRule:z(1563),pointerEvents:"none"})]})})}vs[c(947)]=c(700);const cg=D.memo(vs),sg=e=>n=>e?""+Math.max(1/n.transform[2],1):void 0,lg={[nt[c(1687)]]:c(1798),[nt.Handle]:c(2060)};function dg({nodeId:e,position:n,variant:t=nt[c(2038)],className:o,style:x=void 0,children:r,color:i,minWidth:a=10,minHeight:d=10,maxWidth:u=Number[c(1680)],maxHeight:s=Number[c(1680)],keepAspectRatio:b=!1,resizeDirection:g,autoScale:h=!0,shouldResize:v,onResizeStart:f,onResize:w,onResizeEnd:M}){const y=c,m=Hc(),C=typeof e===y(2150)?e:m,z=Je(),P=D[y(1527)](null),E=t===nt[y(2038)],V=Ee(D[y(1507)](sg(E&&h),[E,h]),Re),q=D.useRef(null),U=n??lg[t];D[y(1646)](()=>{const H=y;if(!(!P[H(616)]||!C))return!q[H(616)]&&(q[H(616)]=Yb({domNode:P.current,nodeId:C,getStoreItems:()=>{const G=H,{nodeLookup:T,transform:L,snapGrid:S,snapToGrid:B,nodeOrigin:j,domNode:A}=z[G(2285)]();return{nodeLookup:T,transform:L,snapGrid:S,snapToGrid:B,nodeOrigin:j,paneDomNode:A}},onChange:(G,T)=>{const L=H,{triggerNodeChanges:S,nodeLookup:B,parentLookup:j,nodeOrigin:A}=z[L(2285)](),I=[],J={x:G.x,y:G.y},_=B[L(689)](C);if(_&&_[L(796)]&&_[L(887)]){const F=_[L(575)]??A,ee=G.width??_.measured[L(434)]??0,re=G[L(725)]??_[L(1168)][L(725)]??0,ue={id:_.id,parentId:_.parentId,rect:{width:ee,height:re,...ka({x:G.x??_[L(675)].x,y:G.y??_[L(675)].y},{width:ee,height:re},_[L(887)],B,F)}},pe=tr([ue],B,j,A);I[L(573)](...pe),J.x=G.x?Math[L(656)](F[0]*ee,G.x):void 0,J.y=G.y?Math[L(656)](F[1]*re,G.y):void 0}if(J.x!==void 0&&J.y!==void 0){const F={id:C,type:L(675),position:{...J}};I.push(F)}if(G[L(434)]!==void 0&&G[L(725)]!==void 0){const F=g?g===L(872)?"width":L(725):!0,ee={id:C,type:L(1688),resizing:!0,setAttributes:F,dimensions:{width:G.width,height:G[L(725)]}};I[L(573)](ee)}for(const F of T){const ee={...F,type:"position"};I.push(ee)}S(I)},onEnd:({width:G,height:T})=>{const L=H,S={id:C,type:L(1688),resizing:!1,dimensions:{width:G,height:T}};z[L(2285)]()[L(1225)]([S])}})),q[H(616)][H(1985)]({controlPosition:U,boundaries:{minWidth:a,minHeight:d,maxWidth:u,maxHeight:s},keepAspectRatio:b,resizeDirection:g,onResizeStart:f,onResize:w,onResizeEnd:M,shouldResize:v}),()=>{const G=H;q[G(616)]?.[G(807)]()}},[U,a,d,u,s,b,f,w,M,v]);const W=U[y(1179)]("-");return l.jsx("div",{className:i0([y(1534),y(1235),...W,t,o]),ref:P,style:{...x,scale:V,...i&&{[y(E?973:1896)]:i}},children:r})}D[c(1221)](dg);const ws=e=>Symbol.iterator in e,ps=e=>c(1764)in e,zs=(e,n)=>{const t=c,o=e instanceof Map?e:new Map(e.entries()),x=n instanceof Map?n:new Map(n[t(1764)]());if(o[t(492)]!==x[t(492)])return!1;for(const[r,i]of o)if(!x[t(1308)](r)||!Object.is(i,x[t(689)](r)))return!1;return!0},ug=(e,n)=>{const t=c,o=e[Symbol[t(2015)]](),x=n[Symbol[t(2015)]]();let r=o[t(599)](),i=x[t(599)]();for(;!r[t(1318)]&&!i[t(1318)];){if(!Object.is(r[t(1256)],i[t(1256)]))return!1;r=o[t(599)](),i=x[t(599)]()}return!!r[t(1318)]&&!!i[t(1318)]};function bg(e,n){const t=c;return Object.is(e,n)?!0:typeof e!="object"||e===null||typeof n!==t(990)||n===null||Object[t(1096)](e)!==Object[t(1096)](n)?!1:ws(e)&&ws(n)?ps(e)&&ps(n)?zs(e,n):ug(e,n):zs({entries:()=>Object[t(1764)](e)},{entries:()=>Object[t(1764)](n)})}const Cs={inlineScript:c(666),dataRequest:"请求数据",external:c(2111),builtin:c(2213)},fg=[{label:"Message 全局提示 (antd)",value:"antdMessage"},{label:c(1175),value:"switchCanvas"}],hg=[{label:"info",value:c(1278)},{label:c(996),value:c(996)},{label:c(2102),value:c(2102)},{label:c(1487),value:"error"},{label:c(1929),value:c(1929)}];function Ms(e,n,t){const o=c,x=t.filter(i=>i.target===e),r=x[o(1755)];return x.map((i,a)=>{const d=o,u=n[d(517)](b=>b.id===i[d(2058)]),s=u?.data;return{sourceId:i[d(2058)],sourceLabel:s?.[d(1772)]??i[d(2058)],edgeIndex:a,totalIncoming:r}})}const gg=({data:e,id:n})=>{const t=c,{root:o}=s0(),x=Ee(D[t(1507)](a=>Ms(n,a[t(1349)],a[t(1743)]).map(({sourceId:d,sourceLabel:u})=>({sourceId:d,label:u})),[n]),bg),r=e[t(1476)][t(510)]??t(1080),i=r===t(583)?e[t(1476)].dataRequestKey:r===t(1630)?e[t(1476)][t(1769)]:r===t(477)?e[t(1476)].builtinId===t(1455)?e[t(1476)][t(729)]+": "+String(e.eventBlock[t(1311)]?.[t(1654)]??"")[t(845)](0,24):e[t(1476)][t(729)]==="switchCanvas"?t(2192)+(o[t(568)].find(a=>a.id===e[t(1476)][t(1311)]?.[t(509)])?.[t(1123)]??t(938)):e.eventBlock[t(729)]:null;return l[t(948)](t(737),{className:"bg-white border-2 border-blue-500 rounded-lg p-3 min-w-[180px] shadow-md",children:[l[t(1283)](xt,{type:t(450),position:Ne[t(1623)],className:t(2093)}),l[t(948)]("div",{className:"flex items-center justify-between mb-2",children:[l[t(1283)](t(1559),{className:"font-medium text-sm truncate",children:e[t(1772)]}),l[t(948)](p.Space,{size:t(1021),children:[l[t(1283)](p[t(1302)],{type:t(2223),size:t(1021),icon:l.jsx(fe[t(1836)],{}),onClick:()=>e[t(816)](n)}),l[t(1283)](p[t(1302)],{type:t(2223),size:"small",danger:!0,icon:l[t(1283)](fe[t(604)],{}),onClick:()=>e.onDelete(n)})]})]}),l[t(1283)](t(737),{className:t(1840),children:l[t(948)](p[t(549)],{color:r===t(1080)?t(1465):r===t(477)?t(775):"purple",className:t(1715),children:[Cs[r],i?t(619)+i:""]})}),l[t(948)](t(737),{className:t(2153),children:[e[t(1476)].inputs?.length>0&&l[t(948)](t(737),{children:[t(1439),e[t(1476)].inputs.map(a=>a[t(1123)]).join(", ")]}),x[t(1755)]>0&&l[t(948)](t(737),{className:t(829),children:["上游连线:",x.map(a=>l.jsxs(t(737),{className:t(1910),children:["←「",a[t(1772)],"」(整块返回值)"]},a[t(1692)]))]})]}),l[t(1283)](xt,{type:t(2058),position:Ne.Bottom,className:t(2093)})]})},yg={eventBlock:gg},mg=Object.entries(Cs).map(([e,n])=>({label:n,value:e})),Bs=[{label:"点击",value:c(2019)},{label:"鼠标按下",value:"mouseDown"},{label:c(855),value:c(789)},{label:"双击",value:c(926)},{label:c(1615),value:c(820)},{label:"鼠标移出",value:c(813)},{label:c(2082),value:"mouseEnter"},{label:c(2184),value:c(435)},{label:c(1247),value:c(583)},{label:c(1338),value:c(1630)}];function vg(e,n){const t=c,o={},x=[...e];return x[t(475)]((r,i)=>{const a=t,d=n[a(755)][i]?.[a(1123)]??(x[a(1755)]===1?a(1060):a(1060)+i);o[d]="$prev."+r.source}),o}function wg(e,n,t){const o=c;return t[e]?.[o(1123)]??(n===1?o(1060):o(1060)+e)}const pg=[{label:"string",value:c(2150)},{label:c(825),value:c(825)},{label:c(2207),value:c(2207)},{label:c(990),value:c(990)},{label:c(1133),value:c(1133)}];function Ds(e){const n=c,t=Bs[n(517)](x=>x[n(1256)]===e[n(1435)]),o=t?.[n(1772)]??e[n(1435)];if(e[n(1435)]===n(1630)){const x=(e[n(843)]||"")[n(982)]();return x?o+n(619)+x:o}return o}const zg=({open:e,onClose:n,bindNodeId:t,editingRoot:o})=>{const x=c,{nodes:r,eventFlow:i,externalHandlerCatalog:a,addEventBlock:d,upsertEventBlock:u,removeEventBlock:s,addEventRoot:b,updateEventRoot:g,root:h}=s0(),[v,f,w]=Eh([]),[M,y,m]=Uh([]),C=D[x(1527)](v);C[x(616)]=v;const[z,P]=D.useState(()=>o??null),[E,V]=D[x(1595)](!1),[q]=p[x(1509)][x(961)](),U=p[x(1509)][x(752)](x(1435),q),[W,H]=D.useState(null),[G,T]=D.useState(!1),[L]=p.Form[x(961)](),S=p[x(1509)][x(752)](x(510),L),B=p[x(1509)].useWatch("builtinId",L),j=p[x(1509)][x(752)](x(755),L),A=D[x(2027)](()=>!G||!W?[]:Ms(W.id,v,M),[G,W,v,M]),I=D[x(1527)](()=>{}),J=D.useRef(()=>{});D.useEffect(()=>{const Y=x;if(G&&W){const X=W[Y(1311)]??{},{outputs:ce,...ae}=W;L.setFieldsValue({...ae,executorType:W[Y(510)]??Y(1080),builtinId:W[Y(729)],inputs:W[Y(755)]??[],builtinConfig:{content:String(X[Y(1654)]??""),level:String(X[Y(1741)]??Y(1278)),duration:X.duration===void 0||X.duration===null?void 0:Number(X[Y(1163)])}})}},[G,W,L]);const _=D[x(1507)](Y=>{y(X=>Va(Y,X))},[y]),F=Y=>{const X=x,ce={bindNodeId:Y[X(831)],eventType:Y.eventType,externalEventKey:Y.eventType===X(1630)?(Y[X(843)]||"")[X(982)]():void 0,flowData:{nodes:[],edges:[]},enabled:!0},ae=b(ce);P({...ce,id:ae}),q[X(1976)](),V(!1),p.message[X(996)](X(470))},ee=D[x(1507)](Y=>{const X=x;s(Y),f(ce=>ce[X(1947)](ae=>ae.id!==Y)),y(ce=>ce[X(1947)](ae=>ae.source!==Y&&ae[X(450)]!==Y))},[s,f,y]),re=D[x(1507)](Y=>{const X=x,ce=C.current[X(517)](Be=>Be.id===Y)?.data?.eventBlock,ae=i[X(1608)][X(517)](Be=>Be.id===Y),Le=ce??ae;Le?(H({...Le,id:Y}),T(!0)):p.message.warning(X(1723))},[i[x(1608)]]);I[x(616)]=re,J[x(616)]=ee,D[x(1646)](()=>{const Y=x;if(e&&z){const X=z[Y(632)][Y(1349)][Y(1226)](ae=>({id:ae.id,type:Y(1476),position:ae[Y(675)],data:{label:ae.data[Y(1772)],eventBlock:ae.data[Y(1476)],onEdit:Le=>I[Y(616)](Le),onDelete:Le=>J.current(Le)}})),ce=z.flowData[Y(1743)].map(ae=>({id:ae.id,source:ae.source,target:ae[Y(450)]}));f(X),y(ce)}},[e,z,f,y]);const ue=()=>{const Y=x,X={name:Y(1377),executorType:"inlineScript",callback:Y(1236),inputs:[],outputs:[]},ce=d(X),ae={...X,id:ce},Le={id:ce,type:Y(1476),position:{x:100+v[Y(1755)]*50,y:100+v[Y(1755)]*30},data:{label:ae.name,eventBlock:ae,onEdit:Be=>I[Y(616)](Be),onDelete:Be=>J[Y(616)](Be)}};f(Be=>[...Be,Le])},pe=()=>{const Y=x,X={name:Y(520),executorType:Y(477),builtinId:Y(1455),builtinConfig:{content:Y(1085),level:Y(1278)},callback:Y(1817),inputs:[],outputs:[]},ce=d(X),ae={...X,id:ce},Le={id:ce,type:Y(1476),position:{x:120+v[Y(1755)]*50,y:140+v[Y(1755)]*30},data:{label:ae[Y(1123)],eventBlock:ae,onEdit:Be=>I[Y(616)](Be),onDelete:Be=>J[Y(616)](Be)}};f(Be=>[...Be,Le])},Me=()=>{const Y=x,X={name:Y(1175),executorType:Y(477),builtinId:"switchCanvas",builtinConfig:{targetCanvasId:h[Y(568)][0]?.id||""},callback:Y(1817),inputs:[],outputs:[]},ce=d(X),ae={...X,id:ce},Le={id:ce,type:Y(1476),position:{x:120+v.length*50,y:140+v[Y(1755)]*30},data:{label:ae.name,eventBlock:ae,onEdit:Be=>I.current(Be),onDelete:Be=>J[Y(616)](Be)}};f(Be=>[...Be,Le])},de=Y=>{const X=x;if(!W)return;const ce=Y[X(510)]??W[X(510)]??"inlineScript",ae={name:Y[X(1123)],callback:Y[X(2167)]??W[X(2167)],executorType:ce,dataRequestKey:ce==="dataRequest"?(Y[X(2198)]||"")[X(982)]():void 0,externalHandlerKey:ce===X(1630)?(Y.externalHandlerKey||"").trim():void 0,builtinId:ce===X(477)?Y.builtinId:void 0,builtinConfig:ce===X(477)&&Y[X(729)]===X(1455)?{content:String(Y[X(1311)]?.[X(1654)]??"").trim(),level:Y.builtinConfig?.[X(1741)]||X(1278),duration:Y[X(1311)]?.duration===null||Y[X(1311)]?.[X(1163)]===void 0?void 0:Number(Y[X(1311)].duration)}:ce===X(477)&&Y.builtinId==="switchCanvas"?{targetCanvasId:String(Y[X(1311)]?.[X(509)]??"")[X(982)]()}:void 0},Le=Y[X(755)]??[],Be=Le.filter(He=>He?.name&&String(He[X(1123)])[X(982)]()),Ae={...W,...ae,inputs:Be,outputs:[]};u(Ae),f(He=>He[X(1226)](Ie=>Ie.id===W.id?{...Ie,data:{...Ie.data,label:Ae[X(1123)]||Ie.data[X(1772)],eventBlock:Ae}}:Ie)),T(!1),H(null),p[X(1118)][X(996)](X(733))},$=()=>{const Y=x;if(!z)return;const X=v[Y(1226)](ae=>{const Le=Y,Be=M[Le(1947)](Ie=>Ie[Le(450)]===ae.id),Ae=ae[Le(1083)][Le(1476)],He={...Ae,outputs:[]};return{id:ae.id,eventBlockId:ae.id,position:ae[Le(675)],inputs:Be.map(Ie=>Ie.source),outputs:M.filter(Ie=>Ie[Le(2058)]===ae.id).map(Ie=>Ie[Le(450)]),data:{label:ae[Le(1083)].label,eventBlock:He,inputMapping:vg(Be,He)}}}),ce=M.map(ae=>({id:ae.id,source:ae.source,target:ae[Y(450)]}));g(z.id,{flowData:{nodes:X,edges:ce}}),qn[Y(690)]({...z,flowData:{nodes:X,edges:ce}}),p.message[Y(996)](Y(2211)),n()},be=D[x(2027)](()=>r[x(1226)](Y=>({label:Y[x(1123)],value:Y.id})),[r]),ge=D.useMemo(()=>t?i[x(802)][x(1947)](Y=>Y[x(831)]===t):i[x(802)],[i.eventRoots,t]);return e?l[x(948)](p[x(1799)],{title:x(1556),open:e,onCancel:n,width:1200,footer:null,styles:{body:{height:700,padding:0}},children:[z?l[x(948)](x(737),{className:"h-full flex flex-col",style:{height:700},children:[l[x(948)]("div",{className:x(661),children:[l[x(1283)](p.Space,{children:l[x(948)](x(1559),{className:"font-medium",children:[x(1408),Ds(z)," →"," ",r[x(517)](Y=>Y.id===z.bindNodeId)?.[x(1123)]]})}),l.jsxs(p[x(1229)],{children:[l.jsx(p.Button,{icon:l[x(1283)](fe[x(2174)],{}),onClick:ue,children:x(2220)}),l[x(1283)](p[x(1302)],{icon:l[x(1283)](fe[x(2174)],{}),onClick:pe,children:x(520)}),l[x(1283)](p[x(1302)],{icon:l[x(1283)](fe.PlusOutlined,{}),onClick:Me,children:x(1175)}),l[x(1283)](p.Button,{type:x(569),icon:l[x(1283)](fe.SaveOutlined,{}),onClick:$,children:"保存"}),l[x(1283)](p[x(1302)],{icon:l[x(1283)](fe[x(1371)],{}),onClick:()=>P(null),children:"返回列表"})]})]}),l[x(1283)](x(737),{className:x(925),children:l[x(948)](Yh,{nodes:v,edges:M,onNodesChange:w,onEdgesChange:m,onConnect:_,nodeTypes:yg,fitView:!0,children:[l[x(1283)](Th,{}),l[x(1283)](Jh,{}),l[x(1283)](cg,{})]})})]}):l[x(948)](x(737),{className:x(2279),children:[l[x(948)](x(737),{className:x(1443),children:[l[x(1283)]("h3",{className:x(1577),children:x(1787)}),l[x(1283)](p.Button,{type:x(569),icon:l.jsx(fe[x(2174)],{}),onClick:()=>V(!0),children:x(463)})]}),l[x(1283)](p.List,{dataSource:ge,renderItem:Y=>l[x(1283)](p[x(1280)][x(1251)],{actions:[l[x(1283)](p[x(1302)],{type:x(569),icon:l[x(1283)](fe[x(1836)],{}),onClick:()=>P(Y),children:"编辑"},x(2177))],children:l[x(1283)](p[x(1280)].Item[x(1004)],{title:l[x(948)](p[x(1229)],{children:[l[x(948)](x(1559),{children:[x(1227),Ds(Y)]}),l.jsx(p[x(549)],{color:x(564),children:r.find(X=>X.id===Y[x(831)])?.[x(1123)]||Y.bindNodeId})]}),description:x(538)+Y[x(632)][x(1349)][x(1755)]+x(522)+Y[x(632)][x(1743)][x(1755)]})}),locale:{emptyText:l[x(1283)](p[x(1722)],{description:"暂无事件流"})}}),l[x(1283)](p.Modal,{title:x(463),open:E,onCancel:()=>{q.resetFields(),V(!1)},footer:null,afterOpenChange:Y=>{const X=x;Y&&(q[X(1976)](),t&&q[X(1328)]({bindNodeId:t}))},children:l[x(948)](p.Form,{form:q,onFinish:F,layout:x(1724),children:[l[x(1283)](p[x(1509)][x(1251)],{name:x(831),label:"绑定节点",rules:[{required:!0,message:"请选择节点"}],initialValue:t,children:l.jsx(p[x(1611)],{options:be,placeholder:x(1706),disabled:!!t})}),l[x(1283)](p[x(1509)][x(1251)],{name:"eventType",label:x(1701),rules:[{required:!0,message:x(1575)}],children:l.jsx(p.Select,{options:Bs,placeholder:x(430)})}),U===x(1630)&&l[x(1283)](p.Form[x(1251)],{name:"externalEventKey",label:"外部事件标识",rules:[{required:!0,message:x(1028)},{validator:(Y,X)=>(X||"")[x(982)]()?Promise.resolve():Promise[x(1017)](new Error(x(1543)))}],extra:"与 eventBus.emitExternal(节点id, 该标识) 一致",children:l[x(1283)](p[x(1852)],{placeholder:x(1864)})}),l.jsx(p.Form[x(1251)],{className:"mb-0",children:l.jsxs(p[x(1229)],{className:x(1275),children:[l[x(1283)](p[x(1302)],{onClick:()=>{q.resetFields(),V(!1)},children:"取消"}),l.jsx(p[x(1302)],{type:x(569),htmlType:x(1319),children:"创建"})]})})]})})]}),l[x(1283)](p[x(1799)],{title:x(533),open:G,onCancel:()=>{T(!1),H(null)},footer:null,destroyOnClose:!0,children:l[x(948)](p[x(1509)],{form:L,onFinish:de,layout:"vertical",children:[l[x(1283)](p[x(1509)][x(1251)],{name:x(1123),label:"名称",rules:[{required:!0,message:x(981)}],children:l[x(1283)](p.Input,{})}),l[x(1283)](p[x(1509)][x(1251)],{name:x(510),label:x(628),rules:[{required:!0,message:x(873)}],children:l[x(1283)](p[x(1611)],{options:mg,placeholder:x(1180)})}),S===x(477)&&l[x(1283)](p[x(1509)].Item,{name:x(729),label:"内置动作",rules:[{required:!0,message:x(2179)}],children:l[x(1283)](p.Select,{options:fg,placeholder:x(1542)})}),S===x(477)&&B==="antdMessage"&&l.jsxs(l[x(443)],{children:[l[x(1283)](p[x(1509)][x(1251)],{name:[x(1311),x(1654)],label:x(2035),rules:[{required:!0,message:"请填写提示内容"}],extra:x(664),children:l[x(1283)](p[x(1852)][x(794)],{rows:3,placeholder:x(1744)})}),l[x(1283)](p.Form[x(1251)],{name:[x(1311),x(1741)],label:"状态 (type)",children:l.jsx(p[x(1611)],{options:hg})}),l.jsx(p[x(1509)].Item,{name:[x(1311),x(1163)],label:x(1834),extra:x(508),children:l[x(1283)](p.InputNumber,{min:0,step:.5,style:{width:"100%"},placeholder:"默认"})})]}),S===x(477)&&B==="switchCanvas"&&l[x(1283)](p[x(1509)].Item,{name:[x(1311),"targetCanvasId"],label:x(1807),rules:[{required:!0,message:x(2022)}],children:l[x(1283)](p[x(1611)],{placeholder:"选择要跳转的画布",options:h.canvases[x(1226)](Y=>({value:Y.id,label:Y[x(1123)]}))})}),S===x(583)&&l.jsx(p[x(1509)][x(1251)],{name:"dataRequestKey",label:x(986),rules:[{required:!0,message:x(2172)},{validator:(Y,X)=>(X||"")[x(982)]()?Promise[x(1858)]():Promise.reject(new Error(x(1543)))}],extra:"运行时 eventBus.setDefaultRuntimeHandlers({ dataRequest: { [标识]: (ctx, args) => ... } })",children:l[x(1283)](p[x(1852)],{placeholder:"例如:loadTrend、fetchDeviceList"})}),S===x(1630)&&l[x(1283)](p[x(1509)].Item,{name:x(1769),label:x(2073),rules:[{required:!0,message:x(848)},{validator:(Y,X)=>(X||"")[x(982)]()?Promise.resolve():Promise[x(1017)](new Error(x(1543)))}],extra:a.length>0?"来自 ConfigEditor 的 externalEventActions;也可在运行时 eventBus.mergeDefaultRuntimeHandlers({ external }) 补充":"未配置下拉时手动填写 key;宿主可用 ConfigEditor externalEventActions 注册选项与 handler,或 eventBus.mergeDefaultRuntimeHandlers",children:a[x(1755)]>0?l[x(1283)](p[x(1611)],{showSearch:!0,optionFilterProp:x(1772),allowClear:!0,placeholder:x(1640),options:a.map(Y=>({value:Y[x(427)],label:Y[x(1772)],title:Y[x(1289)]?Y[x(1772)]+x(1412)+Y[x(1289)]:Y[x(1772)]+" ("+Y[x(427)]+")"})),onInputKeyDown:Y=>{const X=x;Y[X(427)]===" "&&Y[X(1199)]()}}):l.jsx(p[x(1852)],{placeholder:x(1405)})}),S===x(1080)&&l[x(1283)](p[x(1509)][x(1251)],{name:"callback",label:"执行代码",rules:[{validator:(Y,X)=>{const ce=x;return typeof X=="string"&&X[ce(982)]()?Promise[ce(1858)]():Promise[ce(1017)](new Error("请填写执行代码"))}}],children:l.jsx(p.Input.TextArea,{rows:6,placeholder:x(489)})}),A[x(1755)]>0&&l[x(948)]("div",{className:x(1912),children:[l[x(1283)]("div",{className:"font-medium text-amber-950 mb-2",children:"上游连线 → 本块 args 键名"}),l[x(1283)]("ul",{className:"list-none space-y-2 m-0 p-0",children:A[x(1226)](Y=>{const X=x,ce=j??W?.[X(755)]??[],ae=wg(Y[X(445)],Y.totalIncoming,ce);return l[X(948)]("li",{className:"pl-2 border-l-2 border-amber-300",children:[l[X(948)](X(737),{className:X(1658),children:["第 ",Y.edgeIndex+1,X(2187),Y.sourceLabel,X(1971),l[X(1283)](X(870),{children:"整块返回值"})," →"," ",l.jsxs(X(1224),{className:X(2054),children:[X(812),ae]})]}),l.jsxs("div",{className:"text-gray-600 mt-0.5",children:[X(1648),Y[X(445)]+1,X(862)]})]},Y.sourceId)})})]}),l[x(1283)](x(737),{className:x(1699),children:x(741)}),l[x(948)](x(737),{className:x(1178),children:[x(900)," ",l.jsx(x(1224),{children:x(2208)}),x(1876),l.jsx("code",{children:x(1726)}),"、",l[x(1283)](x(1224),{children:x(1363)}),"…"]}),l[x(1283)](p[x(1509)][x(1280)],{name:"inputs",children:(Y,{add:X,remove:ce})=>l[x(948)](l[x(443)],{children:[Y[x(1226)](({key:ae,name:Le,...Be})=>l.jsxs(p[x(1229)],{align:x(2161),wrap:!0,className:x(554),children:[l[x(1283)](p[x(1509)][x(1251)],{...Be,name:[Le,"name"],rules:[{required:!0,message:"名称"}],children:l[x(1283)](p[x(1852)],{placeholder:x(2290),style:{width:140}})}),l[x(1283)](p[x(1509)].Item,{...Be,name:[Le,x(1592)],initialValue:x(1133),children:l[x(1283)](p.Select,{options:pg,style:{width:100}})}),l[x(1283)](fe[x(552)],{className:x(1138),onClick:()=>ce(Le)})]},ae)),l[x(1283)](p.Button,{type:x(1870),onClick:()=>X({type:"any"}),block:!0,icon:l[x(1283)](fe[x(2174)],{}),children:x(1535)})]})}),l.jsx(p[x(1509)].Item,{className:x(2257),children:l[x(948)](p[x(1229)],{className:"w-full justify-end",children:[l[x(1283)](p[x(1302)],{onClick:()=>{T(!1),H(null)},children:"取消"}),l[x(1283)](p.Button,{type:"primary",htmlType:x(1319),children:"保存"})]})})]})})]}):null},Rx={click:"点击",mouseDown:c(2188),mouseUp:c(855),doubleClick:"双击",mouseOver:"鼠标移入",mouseLeave:c(1392),mouseEnter:"鼠标进入",contextMenu:c(2184),dataRequest:c(1247),external:c(1338)};function Cg(e){const n=c;if(e[n(1435)]===n(1630)){const t=(e[n(843)]||"").trim();return t?Rx[n(1630)]+n(619)+t:Rx.external}return Rx[e[n(1435)]]}const Mg=Object[c(1764)](Rx)[c(1226)](([e,n])=>({label:n,value:e})),Bg=({nodeId:e})=>{const n=c,{eventFlow:t,addEventRoot:o,updateEventRoot:x,removeEventRoot:r}=s0(),[i,a]=D[n(1595)](!1),[d,u]=D[n(1595)](null),[s,b]=D.useState(!1),[g]=p[n(1509)][n(961)](),h=p[n(1509)][n(752)](n(1435),g),v=D[n(2027)](()=>{const m=n;return t.eventRoots.filter(C=>C[m(831)]===e)},[t[n(802)],e]),f=m=>{const C=n,z={bindNodeId:e,eventType:m[C(1435)],externalEventKey:m[C(1435)]===C(1630)?(m[C(843)]||"")[C(982)]():void 0,flowData:{nodes:[],edges:[]},enabled:!0};o(z),g.resetFields(),b(!1)},w=m=>{u(m),a(!0)},M=(m,C)=>{x(m.id,{enabled:C})},y=m=>{r(m)};return l[n(948)]("div",{children:[l[n(948)]("div",{className:n(1443),children:[l[n(1283)]("h4",{className:n(1212),children:n(1029)}),l[n(1283)](p[n(1302)],{type:n(569),size:n(1021),icon:l[n(1283)](fe[n(2174)],{}),onClick:()=>b(!0),children:n(1690)})]}),l[n(1283)](p[n(1280)],{dataSource:v,renderItem:m=>l[n(1283)](p[n(1280)][n(1251)],{actions:[l[n(1283)](p[n(1302)],{type:n(2223),size:n(1021),icon:l[n(1283)](fe[n(1836)],{}),onClick:()=>w(m)},n(2177)),l[n(1283)](p[n(1500)],{title:"确认删除",description:"删除后无法恢复,是否继续?",onConfirm:()=>y(m.id),children:l.jsx(p[n(1302)],{type:"text",danger:!0,size:n(1021),icon:l[n(1283)](fe[n(604)],{})})},n(2117))],children:l[n(1283)](p[n(1280)].Item.Meta,{title:l[n(948)](p[n(1229)],{children:[l[n(1283)](p[n(549)],{color:m[n(2201)]?n(564):n(1465),children:Cg(m)}),l[n(948)](n(1559),{className:n(868),children:[m[n(632)][n(1349)][n(1755)],n(449)]})]}),description:l[n(948)](p.Space,{size:20,children:[l[n(948)](p[n(1229)],{size:8,align:n(805),children:[l[n(1283)](n(1559),{className:n(1171)+(m[n(2201)]?"text-green-600":"text-gray-400"),children:m.enabled?n(1782):"已禁用"}),l.jsx(p.Switch,{checked:m.enabled,size:n(1021),title:n(1982),onChange:C=>M(m,C)})]}),l[n(948)](p.Space,{size:8,align:"center",children:[l[n(1283)](n(1559),{className:n(1171)+(m[n(1136)]!==!1?n(953):"text-gray-400"),children:m[n(1136)]!==!1?n(1763):n(818)}),l[n(1283)](p[n(814)],{checked:m[n(1136)]!==!1,size:"small",title:n(572),onChange:C=>x(m.id,{copyOnDuplicate:C})})]})]})})}),locale:{emptyText:l[n(1283)](p[n(1722)],{image:p[n(1722)][n(594)],description:n(2043)})}}),l[n(1283)](p[n(1799)],{title:"添加事件流",open:s,onCancel:()=>{g[n(1976)](),b(!1)},footer:null,afterOpenChange:m=>{m&&g[n(1976)]()},children:l.jsxs(p[n(1509)],{form:g,onFinish:f,layout:n(1724),children:[l.jsx(p[n(1509)][n(1251)],{name:n(1435),label:n(1701),rules:[{required:!0,message:n(1575)}],children:l.jsx(p[n(1611)],{options:Mg,placeholder:n(766)})}),h===n(1630)&&l[n(1283)](p.Form[n(1251)],{name:"externalEventKey",label:"外部事件标识",rules:[{required:!0,message:n(1028)},{validator:(m,C)=>(C||"").trim()?Promise[n(1858)]():Promise[n(1017)](new Error(n(1543)))}],extra:"与运行时 eventBus.emitExternal(节点id, 该标识) 一致,例如:refresh、dialog:opened",children:l[n(1283)](p[n(1852)],{placeholder:n(640)})}),l.jsx(p[n(1509)].Item,{className:"mb-0",children:l[n(948)](p[n(1229)],{className:"w-full justify-end",children:[l[n(1283)](p[n(1302)],{onClick:()=>b(!1),children:"取消"}),l[n(1283)](p[n(1302)],{type:n(569),htmlType:"submit",children:"创建"})]})})]})}),l[n(1283)](zg,{open:i,onClose:()=>{a(!1),u(null)},bindNodeId:e,editingRoot:d},d?.id??n(895)+e)]})},{Panel:un}=p[c(1037)],{TabPane:Jx}=p.Tabs,{TextArea:Dg}=p.Input,Ls=({defaultTestData:e})=>{const n=c,{nodes:t,selectedNodeId:o,updateNode:x,updateNodeStyle:r,updateNodeControl:i,updateNodeContent:a,materials:d,selectedStatusId:u,selectStatus:s}=s0(),[b]=p[n(1509)].useForm(),[g,h]=D[n(1595)](n(1013)),[v,f]=D.useState(!1),[w,M]=D[n(1595)](null),[y,m]=D[n(1595)]({}),C=D.useMemo(()=>t.find(S=>S.id===o),[t,o]),z=C?.[n(1641)].statusList||[],P=S=>{const B=n;o&&(S.normalStyle&&r(o,S[B(674)]),S[B(1123)]!==void 0&&x(o,{name:S[B(1123)]}),S[B(1223)]&&i(o,S[B(1223)]))};console[n(859)](o,"selectedNodeId",C),D[n(1646)](()=>{const S=n;C&&C&&(b[S(1328)]({name:C[S(1123)],normalStyle:{width:100,height:100,x:0,y:0,padding:8,background:"transparent",borderRadius:0,opacity:1,...C[S(674)]},controlInfo:{isDraggable:!0,isClickable:!0,isResizable:!0,isSelectable:!0,...C[S(1223)]}}),s(null))},[C,s,b]);const E=()=>{const S=n;!o||!C||(M(S(578)),f(!0))},V=S=>{const B=n;if(!o||!C)return;const j={id:je[B(2131)](),name:S.name+B(1201)+(z[B(1755)]+1),expression:z.length===0?B(1794):"return false;",material:{...S,id:je[B(2131)]()},boundDatasetId:null};if(w===B(578)){const A=[...z,j];a(o,{statusList:A})}else if(w){const A=z.map(I=>{const J=B;return I.id===w?{...I,material:{...S,id:je[J(2131)]()}}:I});a(o,{statusList:A})}f(!1),M(null)},q=S=>{const B=n;if(!o||!C)return;const j=C[B(1641)][B(1016)]?.[B(1947)](A=>A.id!==S)||[];a(o,{statusList:j}),u===S&&s(null)},U=(S,B)=>{const j=n;if(!o||!C)return;const A=C[j(1641)].statusList?.map(I=>I.id===S?{...I,...B}:I)||[];a(o,{statusList:A})},W=S=>{const B=n;if(!o||!C)return;const j={...S,id:je[B(2131)](),name:S[B(1123)]+B(886),expression:"return false;"},A=[...z,j];a(o,{statusList:A})},H=(S,B)=>{const j=n;if(!o||!C)return;const A=z[j(1167)](J=>J.id===S);if(A===-1)return;const I=[...z];B==="up"&&A>0?[I[A],I[A-1]]=[I[A-1],I[A]]:B===j(1325)&&A<I[j(1755)]-1&&([I[A],I[A+1]]=[I[A+1],I[A]]),a(o,{statusList:I})},G=S=>{M(S),f(!0)},T=(S,B)=>{const j=n,A=B[j(1633)]||{},I=A[j(468)]??0,J=A[j(642)]??0,_=A[j(1042)]??100,F=A.endY??0,ee=Math[j(656)]((A[j(2122)]||A[j(911)]||2)*2,4),re=Math[j(1050)](I,_),ue=Math[j(1050)](J,F),pe=Math[j(656)](I,_),Me=Math.max(J,F),de=Math[j(656)](pe-re,ee),$=Math.max(Me-ue,ee),be=S[j(674)].x||0,ge=S[j(674)].y||0;return{material:{...B,config:{...A,startX:he(I-re),startY:he(J-ue),endX:he(_-re),endY:he(F-ue)}},box:{x:he(be+re),y:he(ge+ue),width:de,height:$}}},L=(S,B)=>{const j=n;if(!o||!C)return;const{list:A,lineBox:I}=z[j(1872)]((J,_)=>{const F=j;if(_.id!==S)return J[F(974)][F(573)](_),J;let ee;if(_[F(2209)][F(1592)]==="LINE"&&"config"in B&&B[F(1633)]!==void 0){const re=_.material,ue=B.config;ee={...re,...B,config:{...re[F(1633)]||{},...ue}}}else ee={..._.material,...B};if(ee[F(1592)]==="LINE"){const{material:re,box:ue}=T(C,ee);return J.list[F(573)]({..._,material:re}),J[F(2238)]=ue,J}return J[F(974)][F(573)]({..._,material:ee}),J},{list:[],lineBox:null});I!==null?x(o,{normalStyle:{...C.normalStyle,x:I.x,y:I.y,width:I[j(434)],height:I[j(725)]},contentInfo:{...C.contentInfo,statusList:A}}):a(o,{statusList:A})};return C?l[n(948)](n(737),{className:"h-full flex flex-col bg-white border-l border-gray-200",children:[l.jsxs(n(737),{className:n(1813),children:[l[n(1283)]("h3",{className:n(1679),children:n(2005)}),l[n(1283)]("p",{className:n(478),children:n(1767)})]}),l[n(1283)](n(737),{className:n(1112),children:l[n(948)](p[n(1663)],{activeKey:g,onChange:h,children:[l[n(1283)](Jx,{tab:"基础",children:l[n(948)](p[n(1509)],{form:b,layout:n(1724),onValuesChange:P,initialValues:{name:C[n(1123)]},children:[l[n(1283)](p[n(1509)][n(1251)],{label:n(1938),name:"name",children:l[n(1283)](p.Input,{placeholder:n(711)})}),l[n(948)](p.Collapse,{ghost:!0,defaultActiveKey:[n(675),n(492),n(777)],children:[l[n(1283)](un,{header:"位置",children:l[n(948)](p[n(1229)],{children:[l[n(1283)](p[n(1509)][n(1251)],{label:"X",name:[n(674),"x"],children:l[n(1283)](p[n(1845)],{step:10**-yn})}),l[n(1283)](p[n(1509)][n(1251)],{label:"Y",name:[n(674),"y"],children:l.jsx(p[n(1845)],{step:10**-yn})})]})},n(675)),l[n(1283)](un,{header:"尺寸",children:l.jsxs(p[n(1229)],{children:[l[n(1283)](p[n(1509)][n(1251)],{label:"宽度",name:[n(674),n(434)],children:l[n(1283)](p[n(1845)],{min:10})}),l[n(1283)](p[n(1509)][n(1251)],{label:"高度",name:[n(674),n(725)],children:l[n(1283)](p.InputNumber,{min:10})})]})},n(492)),l.jsxs(un,{header:"样式",children:[l.jsx(p[n(1509)][n(1251)],{label:"背景色",name:[n(674),n(1418)],children:l[n(1283)](p[n(1852)],{placeholder:n(1324)})}),l[n(1283)](p[n(1509)][n(1251)],{label:n(1973),name:[n(674),"padding"],children:l.jsx(p.InputNumber,{min:0})}),l[n(1283)](p[n(1509)][n(1251)],{label:"圆角",name:[n(674),n(1990)],children:l[n(1283)](p.InputNumber,{min:0})}),l[n(1283)](p[n(1509)][n(1251)],{label:n(1107),name:[n(674),n(1816)],help:"等比缩放节点的宽高",children:l[n(1283)](p[n(1845)],{min:.1,max:5,step:.1})}),!C.contentInfo[n(1016)][n(1321)](S=>S.material[n(1592)]===n(1044))&&l[n(1283)](p[n(1509)][n(1251)],{label:"旋转角度",name:["normalStyle",n(740)],help:n(2200),children:l[n(1283)](p[n(1845)],{min:0,max:360,step:1})}),l[n(1283)](p[n(1509)].Item,{label:n(497),name:[n(674),n(1260)],children:l[n(1283)](p[n(1845)],{min:0,max:1,step:.1})}),l[n(1283)](p[n(1509)][n(1251)],{label:"层级",name:[n(674),n(667)],children:l[n(1283)](p.InputNumber,{})})]},"style")]})]})},n(1013)),l[n(1283)](Jx,{tab:"状态",children:C[n(1592)]===n(504)&&C[n(795)]?l[n(1283)](rd,{node:C,updateNode:x,materials:d}):l[n(948)](n(737),{className:n(1446),children:[l[n(948)](n(737),{className:n(1502),children:[l[n(948)](n(1559),{className:n(1478),children:[n(1967),l[n(1283)](p[n(549)],{color:n(564),className:n(1913),children:z[n(1755)]})]}),l.jsx(p[n(1302)],{type:n(569),size:n(1021),icon:l[n(1283)](fe[n(2174)],{}),onClick:E,children:n(1525)})]}),l[n(1283)]("p",{className:n(1665),children:n(2288)}),z[n(1755)]>0&&l.jsx("div",{className:n(525),children:l[n(1283)](n(737),{className:n(2001),children:l[n(948)](n(737),{children:[l[n(1283)](n(1559),{className:n(665),children:"当前状态:"}),l[n(1283)](n(1559),{className:n(1218),children:n(1948)})]})})}),z[n(1755)]===0?l[n(1283)]("div",{className:"text-center text-gray-400 py-4 bg-gray-50 rounded-lg",children:n(2017)}):l[n(1283)](p[n(1037)],{ghost:!0,defaultActiveKey:z[0]?.id+o,children:z[n(1226)]((S,B)=>l.jsx(un,{header:l.jsxs(n(737),{className:"flex items-center gap-2",children:[l[n(1283)]("span",{className:"text-xs text-gray-400 w-5",children:B+1}),l[n(1283)](n(1559),{className:"font-medium",children:S[n(1123)]}),l.jsx(p[n(549)],{color:n(1465),className:n(452),children:S[n(2209)][n(1592)]})]}),extra:l.jsxs(p[n(1229)],{size:n(1021),onClick:j=>j.stopPropagation(),children:[l.jsx(p[n(1302)],{type:n(2223),size:n(1021),icon:l[n(1283)](fe[n(633)],{}),disabled:B===0,onClick:j=>{j[n(1199)](),H(S.id,"up")}}),l.jsx(p[n(1302)],{type:n(2223),size:n(1021),icon:l[n(1283)](fe[n(2057)],{}),disabled:B===z.length-1,onClick:j=>{const A=n;j[A(1199)](),H(S.id,A(1325))}}),l[n(1283)](p[n(1302)],{type:n(2223),size:n(1021),icon:l.jsx(fe[n(1312)],{}),onClick:j=>{j[n(1199)](),W(S)}}),l[n(1283)](p[n(1302)],{type:n(2223),size:n(1021),danger:!0,icon:l[n(1283)](fe[n(604)],{}),onClick:j=>{j[n(1199)](),q(S.id)}})]}),children:l[n(948)](p[n(1509)],{layout:n(1724),children:[l.jsx(p[n(1509)].Item,{label:"状态名称",children:l[n(1283)](p[n(1852)],{value:S[n(1123)],onChange:j=>U(S.id,{name:j[n(450)][n(1256)]}),placeholder:n(500)})}),l[n(1283)](wi,{status:S,onUpdate:j=>U(S.id,j),onAppendToExpression:j=>{const A=n;m(I=>({...I,[S.id]:(I[S.id]??S[A(817)])+j}))}}),l[n(1283)](p.Form[n(1251)],{label:n(2018),help:n(749),children:l.jsx(Dg,{value:y[S.id]??S.expression,onChange:j=>m(A=>({...A,[S.id]:j[n(450)][n(1256)]})),onBlur:j=>{const A=n;U(S.id,{expression:j[A(450)][A(1256)]}),m(I=>{const J={...I};return delete J[S.id],J})},rows:3,placeholder:"return true;"})}),l[n(1283)](p[n(1509)][n(1251)],{label:n(984),children:l[n(948)](n(737),{className:n(455),children:[l[n(1283)](p[n(549)],{color:"blue",children:S[n(2209)][n(1123)]}),l.jsx(p.Tag,{color:"default",children:S[n(2209)][n(1592)]}),l[n(1283)](p.Button,{type:n(557),size:"small",icon:l[n(1283)](fe[n(1836)],{}),onClick:()=>G(S.id),children:n(750)})]})}),l[n(1283)](p[n(932)],{style:{margin:n(1946)}}),l[n(948)]("div",{className:n(1510),children:[l[n(1283)](n(737),{className:n(1502),children:l.jsx(n(1559),{className:"text-sm font-medium",children:n(1358)})}),l[n(1283)](p[n(1509)][n(1251)],{label:n(2232),className:n(554),children:l[n(1283)](p.Select,{value:S.animation?.[n(1592)]||"none",onChange:j=>U(S.id,{animation:{...S.animation||{type:n(1501)},type:j}}),options:[{label:"无",value:n(1501)},{label:"闪烁",value:"blink"}]})}),S[n(1434)]?.[n(1592)]===n(1068)&&l.jsxs(l[n(443)],{children:[l.jsx(p.Form[n(1251)],{label:n(2243),className:"mb-2",children:l.jsx(p.InputNumber,{min:200,max:1e4,step:100,value:S[n(1434)].duration??1e3,onChange:j=>U(S.id,{animation:{...S[n(1434)],duration:j??1e3}})})}),l[n(1283)](p[n(1509)][n(1251)],{label:n(1523),className:n(618),children:l[n(1283)](p[n(1845)],{min:0,max:1,step:.1,value:S[n(1434)][n(1814)]??.3,onChange:j=>U(S.id,{animation:{...S[n(1434)],minOpacity:j??.3}})})})]})]}),l[n(1283)](p[n(932)],{style:{margin:"12px 0"}}),l[n(948)]("div",{className:n(1510),children:[l[n(948)](n(737),{className:"flex items-center justify-between mb-2",children:[l[n(1283)](n(1559),{className:n(1212),children:n(2183)}),l[n(1283)](p[n(549)],{children:S[n(2209)].name})]}),l[n(1283)](pi,{material:S[n(2209)],onSave:j=>L(S.id,j)})]})]})},S.id+o))})]})},"status"),l[n(1283)](Jx,{tab:"控制",children:l[n(948)](p[n(1509)],{form:b,layout:n(1724),onValuesChange:P,children:[l[n(1283)](p[n(1509)][n(1251)],{label:n(1239),name:["controlInfo","isDraggable"],valuePropName:n(1928),children:l[n(1283)](p[n(814)],{})}),l[n(1283)](p.Form[n(1251)],{label:"可点击",name:[n(1223),n(1657)],valuePropName:"checked",children:l[n(1283)](p[n(814)],{})}),l[n(1283)](p[n(1509)][n(1251)],{label:n(614),name:["controlInfo","isResizable"],valuePropName:n(1928),children:l[n(1283)](p[n(814)],{})}),l[n(1283)](p[n(1509)].Item,{label:"可选中",name:[n(1223),n(769)],valuePropName:n(1928),children:l[n(1283)](p[n(814)],{})})]})},n(1682)),l[n(1283)](Jx,{tab:n(1901),children:l[n(1283)](Bg,{nodeId:C.id})},n(1578))]})}),l[n(1283)](n(737),{className:n(2023),children:l.jsxs(n(737),{className:n(2153),children:[l[n(948)](n(737),{children:[n(1565),C.id[n(845)](0,8),"..."]}),l.jsxs("div",{children:[n(851),z[n(1755)]]})]})}),l[n(1283)](p[n(1799)],{title:n(1843),open:v,onCancel:()=>{f(!1),M(null)},footer:null,width:600,children:l[n(1283)](n(737),{className:n(1022),children:l[n(948)](p.Collapse,{ghost:!0,defaultActiveKey:["basic","device",n(2223),n(1233)],children:[l[n(1283)](un,{header:"基础形状",children:l[n(1283)](n(737),{className:"grid grid-cols-4 gap-2",children:d[n(1947)](S=>["矩形","圆形",n(1884)][n(1230)](S[n(1123)]))[n(1226)](S=>l[n(1283)](Ss,{material:S,onClick:()=>V(S)},S.id))})},n(1013)),l.jsx(un,{header:n(424),children:l[n(1283)]("div",{className:n(866),children:d[n(1947)](S=>["阀门","泵","罐体"][n(1230)](S[n(1123)])||S[n(1592)]==="IMAGE"&&!["矩形","圆形",n(1884)].includes(S[n(1123)])).map(S=>l.jsx(Ss,{material:S,onClick:()=>V(S)},S.id))})},n(1765)),l[n(1283)](un,{header:"文本",children:l.jsx("div",{className:n(866),children:d.filter(S=>S.type==="TEXT").map(S=>l[n(948)](n(737),{className:n(1854),onClick:()=>V(S),children:[l[n(1283)](n(737),{className:n(467),children:l[n(1283)](n(1559),{className:"text-lg font-bold text-gray-500",children:"T"})}),l[n(1283)](n(1559),{className:n(452),children:S[n(1123)]})]},S.id))})},n(2223)),l[n(1283)](un,{header:"线条",children:l[n(1283)]("div",{className:n(866),children:d[n(1947)](S=>S.type===n(1044))[n(1226)](S=>l[n(948)](n(737),{className:n(1854),onClick:()=>V(S),children:[l[n(1283)](n(737),{className:"w-12 h-12 mx-auto mb-1 flex items-center justify-center bg-gray-100 rounded",children:l.jsx(n(737),{className:n(1216)})}),l[n(1283)](n(1559),{className:n(452),children:S[n(1123)]})]},S.id))})},n(1233))]})})})]}):l[n(1283)](n(737),{className:n(822),children:l[n(1283)](p[n(1722)],{description:n(454)})})},Ss=({material:e,onClick:n})=>{const t=c,o=e[t(1592)]===t(484)?e[t(442)]:void 0;return l[t(948)](t(737),{className:t(1854),onClick:n,children:[l[t(1283)]("div",{className:t(918),children:o?l[t(1283)](t(576),{src:o,alt:e[t(1123)],className:t(2253)}):l[t(1283)]("span",{className:t(452),children:e[t(1123)][0]})}),l.jsx(t(1559),{className:t(452),children:e[t(1123)]})]})},Lg="ConfigEditor-module__configEditor__dinNG",Sg={configEditor:Lg},Ng=`// 支持对象或数组格式
|
|
12
|
+
// 对象格式:
|
|
13
|
+
{
|
|
14
|
+
"speed": 0,
|
|
15
|
+
"temp": 25,
|
|
16
|
+
"nested": { "x": 1 }
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// 数组格式(每项需包含 name 字段用于选择):
|
|
20
|
+
[
|
|
21
|
+
{ "name": "测点1", "value": 100, "unit": "mm" },
|
|
22
|
+
{ "name": "测点2", "value": 200, "unit": "mm" }
|
|
23
|
+
]`;function Ns(e){return Array[c(1996)](e)}const ks=({open:e,onClose:n})=>{const t=c,{dataPool:o,addDataPoolItem:x,updateDataPoolItem:r,removeDataPoolItem:i}=s0(),[a]=p[t(1509)][t(961)](),[d,u]=D[t(1595)](null);D[t(1646)](()=>{const f=t;!e&&(u(null),a[f(1976)]())},[e,a]);const s=()=>{const f=t;u(f(1113)),a[f(1328)]({name:f(426)+(o.length+1),sampleJson:""})},b=f=>{const w=t;u(f.id),a.setFieldsValue({name:f[w(1123)],sampleJson:JSON[w(1153)](f[w(1673)]??{},null,2)})},g=f=>{const w=t,M=f[w(982)]();if(!M)return{};const y=JSON[w(1447)](M);if(y===null||typeof y!="object")throw new Error(w(1360));if(Array.isArray(y)){for(let m=0;m<y[w(1755)];m++)if(typeof y[m]!==w(990)||y[m]===null)throw new Error("数组第 "+(m+1)+w(1267));return y}return y},h=()=>{const f=t;a[f(474)]()[f(591)](w=>{const M=f;let y;try{y=g(w[M(2065)])}catch(C){p[M(1118)].error(C instanceof Error?C[M(1118)]:"sample JSON 无效");return}const m=w.name.trim();if(!m){p[M(1118)][M(1487)](M(981));return}d==="__new__"?(x({name:m,sample:y}),p[M(1118)][M(996)](M(1857))):d&&(r(d,{name:m,sample:y}),p[M(1118)][M(996)]("已保存")),u(null),a[M(1976)]()})[f(1483)](()=>{})},v=[{title:"名称",dataIndex:t(1123),key:"name"},{title:"类型",key:t(1592),width:100,render:(f,w)=>Ns(w.sample)?l[t(948)](p[t(549)],{color:t(564),children:[t(1749),w[t(1673)][t(1755)]," 项)"]}):l[t(1283)](p.Tag,{children:"对象"})},{title:"字段数",key:"keys",width:90,render:(f,w)=>{const M=t;if(Ns(w[M(1673)])){const y=w[M(1673)][0];return y?Object[M(1485)](y)[M(1755)]:0}return Object[M(1485)](w[M(1673)]||{})[M(1755)]}},{title:"操作",key:t(1492),width:160,render:(f,w)=>l[t(948)](p.Space,{children:[l[t(1283)](p.Button,{type:t(557),size:t(1021),icon:l.jsx(fe[t(1836)],{}),onClick:()=>b(w),children:"编辑"}),l[t(1283)](p[t(1500)],{title:t(1481),description:t(482),onConfirm:()=>{const M=t;i(w.id),p[M(1118)][M(996)](M(1090))},children:l.jsx(p[t(1302)],{type:t(557),size:t(1021),danger:!0,icon:l.jsx(fe[t(604)],{}),children:"删除"})})]})}];return l.jsxs(p[t(1799)],{title:t(1351),open:e,onCancel:n,width:760,footer:null,destroyOnClose:!0,children:[l[t(948)]("p",{className:t(1517),children:["每个数据集可以是 JSON 对象模板(Record)或数组。状态绑定后,表达式签名为"," ",l[t(1283)](t(1224),{className:t(1070),children:t(703)}),",预览时以模板为底合并画布「模拟数据」。数组格式需包含 name 字段用于选择。"]}),l[t(1283)](t(737),{className:t(1206),children:l[t(1283)](p[t(1302)],{type:t(569),icon:l[t(1283)](fe[t(2174)],{}),onClick:s,children:"新建数据集"})}),d&&l[t(948)](t(737),{className:t(1735),children:[l[t(948)](t(737),{className:"font-medium mb-2",children:[d==="__new__"?"新建":"编辑","数据集"]}),l.jsxs(p[t(1509)],{form:a,layout:t(1724),children:[l[t(1283)](p[t(1509)].Item,{name:"name",label:"名称",rules:[{required:!0,message:"必填"}],children:l.jsx(p[t(1852)],{placeholder:"如:电机测点集"})}),l[t(1283)](p[t(1509)][t(1251)],{name:t(2065),label:"示例数据(JSON 对象或数组)",rules:[{required:!0,message:"必填"}],children:l.jsx(p[t(1852)][t(794)],{rows:12,className:"font-mono text-sm",placeholder:Ng})}),l[t(948)](p.Space,{children:[l.jsx(p[t(1302)],{type:t(569),onClick:h,children:"保存"}),l[t(1283)](p.Button,{onClick:()=>{u(null),a.resetFields()},children:"取消"})]})]})]}),l[t(1283)](p[t(770)],{size:t(1021),rowKey:"id",dataSource:o,columns:v,pagination:!1,locale:{emptyText:t(1719)}})]})},{Header:kg,Sider:Is,Content:Ig}=p[c(1097)],Pg=({initialScheme:e,onChange:n,readonly:t=!1,headerExtra:o,className:x="",style:r,showHeader:i=!0,showMaterialPanel:a=!0,showPropertyPanel:d=!0,customMaterials:u,initialDataPool:s,initialEventFlow:b,externalEventActions:g,onUploadSvg:h,defaultTestData:v,backgroundImageUrl:f,initialViewportWidth:w,initialViewportHeight:M})=>{const y=c,[m,C]=D[y(1595)](!1),[z,P]=D[y(1595)](!1),[E,V]=D.useState(""),[q]=D[y(1595)](()=>[{paramsCode:"001",paramsName:"通频速度有效值",value:25,paramsUnit:y(2176)},{paramsCode:y(546),paramsName:y(811),value:1.5,paramsUnit:y(2259)}]),U=v!==void 0?v:q,W=i&&!t,{exportScheme:H,importScheme:G,nodes:T,materials:L,dataPool:S,eventFlow:B,root:j,canvas:A,viewport:I,addMaterial:J,setDataPool:_,setEventFlow:F,setExternalHandlerCatalog:ee}=s0();D[y(1527)](null);const re=D[y(1527)](!1);D[y(1646)](()=>{const $=y;if(!re[$(616)]&&(re.current=!0,Ur[$(475)](be=>J(be)),e&&G(e),b!==void 0&&F(b),g&&g[$(1755)]>0)){ee(g);const be={};for(const ge of g){const Y=String(ge.key??"")[$(982)]();Y&&ge.handler&&(be[Y]=ge[$(1936)])}Object[$(1485)](be)[$(1755)]>0&&qn.mergeDefaultRuntimeHandlers({external:be})}},[]),D.useEffect(()=>{const $=y;u&&u[$(1755)]>0&&u[$(475)](be=>J(be))},[]),D[y(1646)](()=>{s!==void 0&&_(s)},[s,_]),D.useEffect(()=>{if(n){const $=H();n($)}},[T,L,S,B,j,n,H]);const ue=D[y(1507)](()=>{const $=y,be=H(),ge=JSON[$(1153)](be,null,2),Y=$(438)+encodeURIComponent(ge),X=$(537)+Date.now()+$(1541),ce=document[$(854)]("a");ce[$(1907)]($(1675),Y),ce.setAttribute($(922),X),ce[$(2019)](),p.message[$(996)]($(2088))},[H]),pe=D[y(1507)](()=>{const $=y;try{const be=JSON.parse(E);G(be),C(!1),V(""),p[$(1118)].success($(2196))}catch{p.message[$(1487)]($(1866))}},[E,G]),Me=D[y(1507)]($=>{const be=y,ge=new FileReader;return ge[be(654)]=Y=>{const X=be;try{const ce=Y[X(450)]?.[X(536)],ae=JSON.parse(ce);G(ae),p[X(1118)][X(996)]("导入成功!"),C(!1)}catch{p.message.error(X(1273))}},ge[be(2107)]($),!1},[G]),de=D[y(1507)](()=>H(),[H]);return D.useImperativeHandle(D[y(1527)]?.(),()=>({getScheme:de,exportScheme:H,importScheme:G}),[de,H,G]),l[y(1283)](p[y(1862)],{locale:Vs,children:l[y(1283)](y(737),{className:Sg[y(1984)],style:{height:t?"auto":y(1672),...r},children:l[y(948)](p[y(1097)],{className:y(1269)+(t?"":y(2007))+" "+(t?"":"overflow-hidden")+" "+x,children:[W&&l[y(948)](kg,{className:"bg-white border-b border-gray-200 px-4 flex items-center justify-between flex-shrink-0",children:[l[y(948)]("div",{className:"flex items-center gap-4",children:[l.jsx(y(737),{className:y(1294),children:y(2264)}),l.jsxs(y(737),{className:y(478),children:[T[y(1755)],y(449)]})]}),l.jsxs(p.Space,{children:[o,!t&&l[y(948)](l.Fragment,{children:[l[y(1283)](p[y(1337)],{title:y(1340),children:l[y(1283)](p[y(1302)],{icon:l[y(1283)](fe[y(1014)],{}),onClick:ue,children:"导出"})}),l[y(1283)](p[y(1337)],{title:y(2041),children:l.jsx(p.Button,{icon:l[y(1283)](fe[y(1849)],{}),onClick:()=>C(!0),children:"导入"})}),l[y(1283)](p[y(1337)],{title:y(2152),children:l[y(1283)](p[y(1302)],{icon:l.jsx(fe[y(1803)],{}),onClick:()=>P(!0),children:y(1414)})})]})]})]}),l.jsxs(p[y(1097)],{children:[a&&!t&&l[y(1283)](Is,{width:280,className:y(677),theme:"light",children:l[y(1283)](Or,{onUploadSvg:h})}),l.jsx(Ig,{className:y(490)+(t?"":y(1219)),style:t?{backgroundColor:A?.[y(1418)],backgroundImage:A?.[y(1625)]!==!1?y(2034):void 0,backgroundSize:20*(I?.[y(1816)]||1)+"px "+20*(I?.scale||1)+"px"}:void 0,children:l.jsx(gi,{defaultTestData:U,readonly:t,backgroundImageUrl:f,initialViewportWidth:w,initialViewportHeight:M})}),d&&!t&&l[y(1283)](Is,{width:360,className:y(677),theme:y(2144),children:l[y(1283)](Ls,{defaultTestData:Array[y(1996)](U)?U:void 0})})]}),l.jsx(ks,{open:z,onClose:()=>P(!1)}),l.jsx(p[y(1799)],{title:"导入组态方案",open:m,onOk:pe,onCancel:()=>{C(!1),V("")},width:600,children:l[y(948)](y(737),{className:y(1551),children:[l[y(948)](y(737),{children:[l[y(1283)]("p",{className:y(554),children:y(1594)}),l[y(1283)](y(1933),{type:"file",accept:y(1541),onChange:$=>{const be=y,ge=$.target[be(1775)]?.[0];ge&&Me(ge),$.target[be(1256)]=""},className:y(1887)})]}),l[y(1283)](y(737),{className:"text-center text-gray-400",children:"或"}),l[y(948)](y(737),{children:[l[y(1283)]("p",{className:"mb-2",children:y(1496)}),l.jsx(y(2265),{value:E,onChange:$=>V($[y(450)].value),placeholder:y(2206),className:y(1332)})]})]})})]})})})};Ye[c(581)]=gi,Ye[c(2266)]=Pg,Ye[c(716)]=ks,Ye.EventFlowBinding=bi,Ye.MaterialPanel=Or,Ye[c(841)]=Mo,Ye.PropertyPanel=Ls,Ye[c(1943)]=lo,Ye[c(1792)]=Ar,Ye[c(1116)]=Gr,Ye[c(998)]=ho,Ye[c(448)]=uo,Ye.eventBus=qn,Ye[c(865)]=jr,Ye[c(1262)]=Ur,Ye[c(670)]=s0,Object[c(2104)](Ye,Symbol[c(991)],{value:c(622)})});
|