@loopstack/loopstack-studio 0.28.0 → 0.29.1

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.
Files changed (377) hide show
  1. package/dist/_virtual/rolldown_runtime.js +13 -15
  2. package/dist/api/config.js +2 -2
  3. package/dist/components/dynamic-form/Form.js +49 -52
  4. package/dist/config.js +6 -0
  5. package/dist/features/debug/components/WorkflowFlowViewer.js +94 -81
  6. package/dist/features/debug/components/workflow-flow/StateNode.js +154 -79
  7. package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +43 -31
  8. package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +52 -51
  9. package/dist/features/debug/lib/edge-paths.js +45 -30
  10. package/dist/features/debug/lib/flow-types.js +2 -0
  11. package/dist/features/debug/lib/flow-utils.js +66 -64
  12. package/dist/features/documents/components/DocumentList.js +19 -18
  13. package/dist/features/workbench/WorkflowItem.js +4 -3
  14. package/dist/features/workbench/components/EmbedLogsContent.js +5 -0
  15. package/dist/features/workbench/components/NewRunDialog.js +2 -2
  16. package/dist/features/workbench/components/PreviewEmptyState.js +10 -0
  17. package/dist/features/workbench/components/PreviewWorkbench.js +14 -0
  18. package/dist/features/workbench/components/RecentRunItem.js +48 -0
  19. package/dist/features/workbench/components/WorkflowForms.js +4 -3
  20. package/dist/features/workbench/hooks/useEmbedBridge.js +3 -0
  21. package/dist/features/workbench/hooks/useWorkflowData.js +9 -9
  22. package/dist/features/workbench/index.js +4 -0
  23. package/dist/features/workspaces/Workspaces.js +2 -2
  24. package/dist/features/workspaces/components/ExecutionTimeline.js +9 -8
  25. package/dist/hooks/index.js +2 -2
  26. package/dist/hooks/query-keys.js +3 -3
  27. package/dist/hooks/useConfig.js +15 -15
  28. package/dist/index.d.ts +12 -12
  29. package/dist/index.js +3 -3
  30. package/dist/loopstack-studio.css +1 -1
  31. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-YZFGNWBL.js → architecture-7EHR7CIX.js} +2 -2
  32. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-7N4EOEYR.js → chunk-4EGX6M5U.js} +9 -13
  33. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-KGLVRYIC.js → chunk-5DO6E6H7.js} +3 -7
  34. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js +56 -0
  35. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-2KRD3SAO.js → chunk-FHYWG6QK.js} +3 -7
  36. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FOC6F5B3.js → chunk-MPE355IW.js} +3 -7
  37. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +24 -0
  38. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +48 -0
  39. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20219 -0
  40. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +19 -0
  41. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-67CJDMHE.js → chunk-UIBZB4QT.js} +3 -7
  42. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +25 -0
  43. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
  44. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-7Q5UKJZL.js → gitGraph-WXDBUCRP.js} +2 -2
  45. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
  46. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
  47. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
  48. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
  49. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{treeView-SZITEDCU.js → treeView-BLDUP644.js} +2 -2
  50. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
  51. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
  52. package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
  53. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +36 -26
  54. package/dist/node_modules/@xyflow/react/dist/esm/index.js +1 -1
  55. package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +257 -254
  56. package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
  57. package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
  58. package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
  59. package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
  60. package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
  61. package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
  62. package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
  63. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
  64. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
  65. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +72 -72
  66. package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
  67. package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
  68. package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
  69. package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
  70. package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
  71. package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
  72. package/dist/node_modules/dompurify/dist/purify.es.js +293 -205
  73. package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +4 -0
  74. package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +4 -0
  75. package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +4 -0
  76. package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +4 -0
  77. package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +5 -0
  78. package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -0
  79. package/dist/node_modules/es-toolkit/dist/compat/function/memoize.js +12 -0
  80. package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +97 -0
  81. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +5 -0
  82. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +29 -0
  83. package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +6 -0
  84. package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +49 -0
  85. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +5 -0
  86. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +4 -0
  87. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +5 -0
  88. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +6 -0
  89. package/dist/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +16 -0
  90. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +4 -0
  91. package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +12 -0
  92. package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +5 -0
  93. package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -0
  94. package/dist/node_modules/es-toolkit/dist/object/clone.js +29 -0
  95. package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +114 -0
  96. package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +5 -0
  97. package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +4 -0
  98. package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +4 -0
  99. package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +4 -0
  100. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +2 -2
  101. package/dist/node_modules/internmap/src/index.js +1 -1
  102. package/dist/node_modules/katex/dist/katex.js +379 -417
  103. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +3 -3
  104. package/dist/node_modules/lodash-es/_assignMergeValue.js +1 -1
  105. package/dist/node_modules/lodash-es/_assignValue.js +1 -1
  106. package/dist/node_modules/lodash-es/_baseClone.js +9 -9
  107. package/dist/node_modules/lodash-es/_baseForOwn.js +1 -1
  108. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +1 -1
  109. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
  110. package/dist/node_modules/lodash-es/_baseMerge.js +2 -2
  111. package/dist/node_modules/lodash-es/_baseMergeDeep.js +7 -7
  112. package/dist/node_modules/lodash-es/_baseOrderBy.js +12 -12
  113. package/dist/node_modules/lodash-es/_baseRest.js +1 -1
  114. package/dist/node_modules/lodash-es/_baseSet.js +1 -1
  115. package/dist/node_modules/lodash-es/_baseSetToString.js +3 -3
  116. package/dist/node_modules/lodash-es/_baseToString.js +2 -2
  117. package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
  118. package/dist/node_modules/lodash-es/_createRange.js +1 -1
  119. package/dist/node_modules/lodash-es/_createSet.js +3 -3
  120. package/dist/node_modules/lodash-es/_flatRest.js +1 -1
  121. package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
  122. package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
  123. package/dist/node_modules/lodash-es/_getSymbolsIn.js +1 -1
  124. package/dist/node_modules/lodash-es/_getTag.js +1 -1
  125. package/dist/node_modules/lodash-es/_hasPath.js +2 -2
  126. package/dist/node_modules/lodash-es/_initCloneByTag.js +1 -1
  127. package/dist/node_modules/lodash-es/_initCloneObject.js +1 -1
  128. package/dist/node_modules/lodash-es/_isFlattenable.js +1 -1
  129. package/dist/node_modules/lodash-es/_isIterateeCall.js +1 -1
  130. package/dist/node_modules/lodash-es/_isKey.js +1 -1
  131. package/dist/node_modules/lodash-es/_setToString.js +1 -1
  132. package/dist/node_modules/lodash-es/defaults.js +1 -1
  133. package/dist/node_modules/lodash-es/findIndex.js +2 -2
  134. package/dist/node_modules/lodash-es/forEach.js +1 -1
  135. package/dist/node_modules/lodash-es/forIn.js +1 -1
  136. package/dist/node_modules/lodash-es/isEmpty.js +2 -2
  137. package/dist/node_modules/lodash-es/isPlainObject.js +1 -1
  138. package/dist/node_modules/lodash-es/map.js +1 -1
  139. package/dist/node_modules/lodash-es/max.js +1 -1
  140. package/dist/node_modules/lodash-es/merge.js +3 -3
  141. package/dist/node_modules/lodash-es/min.js +1 -1
  142. package/dist/node_modules/lodash-es/minBy.js +1 -1
  143. package/dist/node_modules/lodash-es/reduce.js +1 -1
  144. package/dist/node_modules/lodash-es/toNumber.js +1 -1
  145. package/dist/node_modules/lodash-es/union.js +3 -3
  146. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{architectureDiagram-Q4EWVU46.js → architectureDiagram-3BPJPVTR.js} +310 -308
  147. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-DXYQGD6D.js → blockDiagram-GPEHLZMM.js} +215 -190
  148. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-AHTNJAMY.js → c4Diagram-AAUBKEIU.js} +3 -3
  149. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EDXVE4YY.js → chunk-2J33WTMH.js} +1 -1
  150. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5FUZZQ4R.js → chunk-3OPIFGDE.js} +48 -20
  151. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5PVQY5BW.js → chunk-5ZQYHXKU.js} +8 -8
  152. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-4TB4RGXK.js → chunk-727SXJPM.js} +555 -459
  153. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-OYMX7WX6.js → chunk-AQP2D5EJ.js} +155 -145
  154. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ICPOFSXX.js → chunk-CSCIHK7Q.js} +106 -12
  155. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ENJZ2VHE.js → chunk-KSCS5N6A.js} +12 -12
  156. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ZZ45TVLE.js → chunk-L5ZTLDWV.js} +2 -2
  157. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-336JU56O.js → chunk-LZXEDZCA.js} +5 -5
  158. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-YZCP3GAM.js → chunk-ND2GUHAM.js} +1 -1
  159. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-X2U36JSP.js → chunk-NZK2D7GU.js} +1 -1
  160. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-U2HBQHQK.js → chunk-O5CBEL6O.js} +2 -2
  161. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-426QAEUC.js → chunk-WU5MYG2G.js} +1 -1
  162. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-6PBFFD2Q.js → classDiagram-4FO5ZUOK.js} +11 -11
  163. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-HSJHXN6E.js → classDiagram-v2-Q7XG4LA2.js} +11 -11
  164. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-KV5264BT.js → dagre-BM42HDAG.js} +8 -8
  165. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-MMDJMWI5.js → diagram-2AECGRRQ.js} +3 -3
  166. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-5BDNPKRD.js → diagram-5GNKFQAL.js} +3 -3
  167. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +433 -0
  168. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-TYMM5635.js → diagram-LMA3HP47.js} +3 -3
  169. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-G4DWMVQ6.js → diagram-OG6HWLK6.js} +5 -5
  170. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-SMLLAGMA.js → erDiagram-TEJ5UH35.js} +9 -9
  171. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-DWJPFMVM.js → flowDiagram-I6XJVG4X.js} +10 -10
  172. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-T4ZO3ILL.js → ganttDiagram-6RSMTGT7.js} +7 -4
  173. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{gitGraphDiagram-UUTBAWPF.js → gitGraphDiagram-PVQCEYII.js} +2 -2
  174. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{infoDiagram-42DDH7IO.js → infoDiagram-5YYISTIA.js} +3 -3
  175. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ishikawaDiagram-UXIWVN3A.js → ishikawaDiagram-YF4QCWOH.js} +3 -3
  176. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-VCZTEJTY.js → journeyDiagram-JHISSGLW.js} +2 -2
  177. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-6JOO6SKY.js → kanban-definition-UN3LZRKU.js} +7 -7
  178. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-QFDTVHPH.js → mindmap-definition-RKZ34NQL.js} +9 -9
  179. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{pieDiagram-DEJITSTG.js → pieDiagram-4H26LBE5.js} +3 -3
  180. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-34T5L4WZ.js → quadrantDiagram-W4KKPZXB.js} +364 -337
  181. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-MS252O5E.js → requirementDiagram-4Y6WPE33.js} +9 -9
  182. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-XADWPNL6.js → sankeyDiagram-5OEKKPKP.js} +187 -138
  183. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sequenceDiagram-FGHM5R23.js → sequenceDiagram-3UESZ5HK.js} +15 -8
  184. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FHFEXIEX.js → stateDiagram-AJRCARHV.js} +10 -10
  185. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-QKLJ7IA2.js → stateDiagram-v2-BHNVJYJU.js} +10 -10
  186. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{timeline-definition-GMOUNBTQ.js → timeline-definition-PNZ67QCA.js} +3 -3
  187. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{vennDiagram-DHZGUBPP.js → vennDiagram-CIIHVFJN.js} +3 -3
  188. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.js +640 -0
  189. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-5P7HB3ND.js → xychartDiagram-2RQKCTM6.js} +4 -4
  190. package/dist/node_modules/mermaid/dist/mermaid.core.js +96 -70
  191. package/dist/node_modules/stylis/src/Enum.js +2 -2
  192. package/dist/node_modules/stylis/src/Middleware.js +9 -0
  193. package/dist/node_modules/stylis/src/Parser.js +55 -44
  194. package/dist/node_modules/stylis/src/Utility.js +9 -12
  195. package/dist/node_modules/unified/lib/index.js +1 -1
  196. package/dist/packages/contracts/dist/enums/index.js +4 -24
  197. package/dist/packages/contracts/dist/enums/registry.enum.js +9 -20
  198. package/dist/packages/contracts/dist/enums/sort-order.enum.js +5 -10
  199. package/dist/packages/contracts/dist/enums/user-type.enum.js +5 -10
  200. package/dist/packages/contracts/dist/enums/workflow-state.enum.js +5 -10
  201. package/dist/pages/DebugWorkflowDetailsPage.js +2 -2
  202. package/dist/pages/DebugWorkflowsPage.js +12 -12
  203. package/dist/pages/EmbedWorkbenchPage.js +4 -3
  204. package/dist/pages/PreviewWorkbenchPage.js +126 -124
  205. package/dist/pages/StudioLandingPage.js +28 -72
  206. package/dist/pages/WorkspacePage.js +2 -2
  207. package/package.json +2 -2
  208. package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -23
  209. package/dist/node_modules/@chevrotain/gast/lib/src/model.js +0 -151
  210. package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -40
  211. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
  212. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -85
  213. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -35
  214. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -570
  215. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -25
  216. package/dist/node_modules/@chevrotain/utils/lib/src/print.js +0 -9
  217. package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +0 -8
  218. package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -10
  219. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -28
  220. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -23
  221. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1197
  222. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +0 -60
  223. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -29
  224. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
  225. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
  226. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
  227. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
  228. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
  229. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
  230. package/dist/node_modules/chevrotain/lib/src/api.js +0 -10
  231. package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -10
  232. package/dist/node_modules/chevrotain/lib/src/parse/constants.js +0 -2
  233. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -13
  234. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -49
  235. package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -77
  236. package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -33
  237. package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -275
  238. package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -23
  239. package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -28
  240. package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -14
  241. package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -262
  242. package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -5
  243. package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -41
  244. package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -241
  245. package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -30
  246. package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -56
  247. package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -114
  248. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -46
  249. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -166
  250. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -43
  251. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -107
  252. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -21
  253. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -312
  254. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -285
  255. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -144
  256. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -92
  257. package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -11
  258. package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +0 -437
  259. package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -9
  260. package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -253
  261. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -152
  262. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -15
  263. package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +0 -65
  264. package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -39
  265. package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -346
  266. package/dist/node_modules/chevrotain-allstar/lib/atn.js +0 -194
  267. package/dist/node_modules/chevrotain-allstar/lib/dfa.js +0 -32
  268. package/dist/node_modules/chevrotain-allstar/lib/index.js +0 -1
  269. package/dist/node_modules/langium/lib/default-module.js +0 -85
  270. package/dist/node_modules/langium/lib/dependency-injection.js +0 -62
  271. package/dist/node_modules/langium/lib/documentation/comment-provider.js +0 -11
  272. package/dist/node_modules/langium/lib/documentation/documentation-provider.js +0 -36
  273. package/dist/node_modules/langium/lib/documentation/jsdoc.js +0 -303
  274. package/dist/node_modules/langium/lib/index.js +0 -182
  275. package/dist/node_modules/langium/lib/languages/generated/ast.js +0 -1089
  276. package/dist/node_modules/langium/lib/languages/grammar-config.js +0 -13
  277. package/dist/node_modules/langium/lib/parser/async-parser.js +0 -83
  278. package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +0 -7
  279. package/dist/node_modules/langium/lib/parser/cst-node-builder.js +0 -160
  280. package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
  281. package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +0 -11
  282. package/dist/node_modules/langium/lib/parser/langium-parser.js +0 -388
  283. package/dist/node_modules/langium/lib/parser/lexer.js +0 -50
  284. package/dist/node_modules/langium/lib/parser/parser-builder-base.js +0 -275
  285. package/dist/node_modules/langium/lib/parser/token-builder.js +0 -61
  286. package/dist/node_modules/langium/lib/parser/value-converter.js +0 -78
  287. package/dist/node_modules/langium/lib/references/linker.js +0 -190
  288. package/dist/node_modules/langium/lib/references/name-provider.js +0 -13
  289. package/dist/node_modules/langium/lib/references/references.js +0 -76
  290. package/dist/node_modules/langium/lib/references/scope-computation.js +0 -35
  291. package/dist/node_modules/langium/lib/references/scope-provider.js +0 -34
  292. package/dist/node_modules/langium/lib/references/scope.js +0 -73
  293. package/dist/node_modules/langium/lib/serializer/hydrator.js +0 -125
  294. package/dist/node_modules/langium/lib/serializer/json-serializer.js +0 -145
  295. package/dist/node_modules/langium/lib/service-registry.js +0 -37
  296. package/dist/node_modules/langium/lib/syntax-tree.js +0 -70
  297. package/dist/node_modules/langium/lib/utils/ast-utils.js +0 -157
  298. package/dist/node_modules/langium/lib/utils/caching.js +0 -91
  299. package/dist/node_modules/langium/lib/utils/cancellation.js +0 -5
  300. package/dist/node_modules/langium/lib/utils/collections.js +0 -85
  301. package/dist/node_modules/langium/lib/utils/cst-utils.js +0 -190
  302. package/dist/node_modules/langium/lib/utils/disposable.js +0 -8
  303. package/dist/node_modules/langium/lib/utils/errors.js +0 -12
  304. package/dist/node_modules/langium/lib/utils/event.js +0 -5
  305. package/dist/node_modules/langium/lib/utils/grammar-loader.js +0 -22
  306. package/dist/node_modules/langium/lib/utils/grammar-utils.js +0 -296
  307. package/dist/node_modules/langium/lib/utils/index.js +0 -53
  308. package/dist/node_modules/langium/lib/utils/promise-utils.js +0 -30
  309. package/dist/node_modules/langium/lib/utils/regexp-utils.js +0 -167
  310. package/dist/node_modules/langium/lib/utils/stream.js +0 -327
  311. package/dist/node_modules/langium/lib/utils/uri-utils.js +0 -107
  312. package/dist/node_modules/langium/lib/validation/document-validator.js +0 -210
  313. package/dist/node_modules/langium/lib/validation/validation-registry.js +0 -87
  314. package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +0 -57
  315. package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +0 -28
  316. package/dist/node_modules/langium/lib/workspace/configuration.js +0 -51
  317. package/dist/node_modules/langium/lib/workspace/document-builder.js +0 -201
  318. package/dist/node_modules/langium/lib/workspace/documents.js +0 -142
  319. package/dist/node_modules/langium/lib/workspace/file-system-provider.js +0 -34
  320. package/dist/node_modules/langium/lib/workspace/index-manager.js +0 -49
  321. package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
  322. package/dist/node_modules/langium/lib/workspace/workspace-lock.js +0 -42
  323. package/dist/node_modules/langium/lib/workspace/workspace-manager.js +0 -66
  324. package/dist/node_modules/lodash-es/flatMap.js +0 -7
  325. package/dist/node_modules/lodash-es/uniqBy.js +0 -7
  326. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +0 -574
  327. package/dist/node_modules/vscode-jsonrpc/browser.js +0 -7
  328. package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -52
  329. package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -120
  330. package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +0 -337
  331. package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -57
  332. package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -647
  333. package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -13
  334. package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +0 -64
  335. package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +0 -34
  336. package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -235
  337. package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -93
  338. package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -129
  339. package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -85
  340. package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -161
  341. package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -18
  342. package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -44
  343. package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -58
  344. package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -28
  345. package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -36
  346. package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -12
  347. package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -31
  348. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -19
  349. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -15
  350. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -11
  351. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -11
  352. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -33
  353. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -35
  354. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -15
  355. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -11
  356. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -19
  357. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -11
  358. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -15
  359. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -674
  360. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -11
  361. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -19
  362. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -126
  363. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -24
  364. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -11
  365. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -31
  366. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -11
  367. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -11
  368. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -19
  369. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -15
  370. package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -42
  371. package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -138
  372. package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1084
  373. package/dist/node_modules/vscode-uri/lib/esm/index.js +0 -373
  374. /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode-codepoint.js +0 -0
  375. /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode.js +0 -0
  376. /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/generated/decode-data-html.js +0 -0
  377. /package/dist/node_modules/{unified/node_modules/is-plain-obj → is-plain-obj}/index.js +0 -0
@@ -1895,12 +1895,12 @@ var Heap = /* @__PURE__ */ getDefaultExportFromCjs(requireHeap()), dijkstraDefau
1895
1895
  Q.push(b(Z).edge);
1896
1896
  for (var $ = b(Z).pred; Q.indexOf($) === -1;) Q.push($), Q.push(b($).edge), $ = b($).pred;
1897
1897
  Q = Q.slice(Q.indexOf($));
1898
- for (var Dh = Q[0].id(), Oh = 0, kh = 2; kh < Q.length; kh += 2) Q[kh].id() < Dh && (Dh = Q[kh].id(), Oh = kh);
1899
- Q = Q.slice(Oh).concat(Q.slice(0, Oh)), Q.push(Q[0]);
1900
- var Ah = Q.map(function(e) {
1898
+ for (var Ah = Q[0].id(), jh = 0, Mh = 2; Mh < Q.length; Mh += 2) Q[Mh].id() < Ah && (Ah = Q[Mh].id(), jh = Mh);
1899
+ Q = Q.slice(jh).concat(Q.slice(0, jh)), Q.push(Q[0]);
1900
+ var Nh = Q.map(function(e) {
1901
1901
  return e.id();
1902
1902
  }).join(",");
1903
- z.indexOf(Ah) === -1 && (_.push(c.spawn(Q)), z.push(Ah));
1903
+ z.indexOf(Nh) === -1 && (_.push(c.spawn(Q)), z.push(Nh));
1904
1904
  }
1905
1905
  } else break;
1906
1906
  }
@@ -3084,7 +3084,7 @@ var defaults$b = defaults$g({
3084
3084
  var Q = J[a[n[Z].id()]];
3085
3085
  Q != null && Y[Q].push(n[Z]);
3086
3086
  }
3087
- for (var $ = Array(q.length), Dh = 0; Dh < q.length; Dh++) $[Dh] = t.collection(Y[q[Dh]]);
3087
+ for (var $ = Array(q.length), Ah = 0; Ah < q.length; Ah++) $[Ah] = t.collection(Y[q[Ah]]);
3088
3088
  return $;
3089
3089
  }, affinityPropagation$1 = {
3090
3090
  affinityPropagation,
@@ -10849,10 +10849,10 @@ BreadthFirstLayout.prototype.run = function() {
10849
10849
  for (var e = 0; e < J; e++) O(e);
10850
10850
  }());
10851
10851
  for (var Q = 0, $ = 0; $ < J; $++) Q = Math.max(b[$].length, Q);
10852
- var Dh = {
10852
+ var Ah = {
10853
10853
  x: l.x1 + l.w / 2,
10854
10854
  y: l.y1 + l.h / 2
10855
- }, Oh = r.reduce(function(t, n) {
10855
+ }, jh = r.reduce(function(t, n) {
10856
10856
  return function(e) {
10857
10857
  return {
10858
10858
  w: t.w === -1 ? e.w : (t.w + e.w) / 2,
@@ -10862,33 +10862,33 @@ BreadthFirstLayout.prototype.run = function() {
10862
10862
  }, {
10863
10863
  w: -1,
10864
10864
  h: -1
10865
- }), kh = Math.max(J === 1 ? 0 : c ? (l.h - e.padding * 2 - Oh.h) / (J - 1) : (l.h - e.padding * 2 - Oh.h) / (J + 1), z), Ah = b.reduce(function(e, t) {
10865
+ }), Mh = Math.max(J === 1 ? 0 : c ? (l.h - e.padding * 2 - jh.h) / (J - 1) : (l.h - e.padding * 2 - jh.h) / (J + 1), z), Nh = b.reduce(function(e, t) {
10866
10866
  return Math.max(e, t.length);
10867
- }, 0), jh = function(t) {
10867
+ }, 0), Ph = function(t) {
10868
10868
  var n = getInfo(t), r = n.depth, a = n.index;
10869
10869
  if (e.circle) {
10870
10870
  var o = Math.min(l.w / 2 / J, l.h / 2 / J);
10871
10871
  o = Math.max(o, z);
10872
10872
  var s = o * r + o - (J > 0 && b[0].length <= 3 ? o / 2 : 0), u = 2 * Math.PI / b[r].length * a;
10873
10873
  return r === 0 && b[0].length === 1 && (s = 1), {
10874
- x: Dh.x + s * Math.cos(u),
10875
- y: Dh.y + s * Math.sin(u)
10874
+ x: Ah.x + s * Math.cos(u),
10875
+ y: Ah.y + s * Math.sin(u)
10876
10876
  };
10877
10877
  } else {
10878
- var d = b[r].length, f = Math.max(d === 1 ? 0 : c ? (l.w - e.padding * 2 - Oh.w) / ((e.grid ? Ah : d) - 1) : (l.w - e.padding * 2 - Oh.w) / ((e.grid ? Ah : d) + 1), z);
10878
+ var d = b[r].length, f = Math.max(d === 1 ? 0 : c ? (l.w - e.padding * 2 - jh.w) / ((e.grid ? Nh : d) - 1) : (l.w - e.padding * 2 - jh.w) / ((e.grid ? Nh : d) + 1), z);
10879
10879
  return {
10880
- x: Dh.x + (a + 1 - (d + 1) / 2) * f,
10881
- y: Dh.y + (r + 1 - (J + 1) / 2) * kh
10880
+ x: Ah.x + (a + 1 - (d + 1) / 2) * f,
10881
+ y: Ah.y + (r + 1 - (J + 1) / 2) * Mh
10882
10882
  };
10883
10883
  }
10884
- }, Mh = {
10884
+ }, Fh = {
10885
10885
  downward: 0,
10886
10886
  leftward: 90,
10887
10887
  upward: 180,
10888
10888
  rightward: -90
10889
10889
  };
10890
- return Object.keys(Mh).indexOf(e.direction) === -1 && error(`Invalid direction '${e.direction}' specified for breadthfirst layout. Valid values are: ${Object.keys(Mh).join(", ")}`), n.nodes().layoutPositions(this, e, function(t) {
10891
- return rotatePosAndSkewByBox(jh(t), l, Mh[e.direction]);
10890
+ return Object.keys(Fh).indexOf(e.direction) === -1 && error(`Invalid direction '${e.direction}' specified for breadthfirst layout. Valid values are: ${Object.keys(Fh).join(", ")}`), n.nodes().layoutPositions(this, e, function(t) {
10891
+ return rotatePosAndSkewByBox(Ph(t), l, Fh[e.direction]);
10892
10892
  }), this;
10893
10893
  };
10894
10894
  var defaults$6 = {
@@ -12410,17 +12410,17 @@ BRp$c.findMidptPtsEtc = function(e, t) {
12410
12410
  $
12411
12411
  ];
12412
12412
  } else {
12413
- var Dh = d.x1 + B + (_ ? f / 2 * R : 0);
12413
+ var Ah = d.x1 + B + (_ ? f / 2 * R : 0);
12414
12414
  n.segpts = [
12415
- Dh,
12415
+ Ah,
12416
12416
  d.y1,
12417
- Dh,
12417
+ Ah,
12418
12418
  d.y2
12419
12419
  ];
12420
12420
  }
12421
12421
  if (n.isRound) {
12422
- var Oh = e.pstyle("taxi-radius").value, kh = e.pstyle("radius-type").value[0] === "arc-radius";
12423
- n.radii = Array(n.segpts.length / 2).fill(Oh), n.isArcRadius = Array(n.segpts.length / 2).fill(kh);
12422
+ var jh = e.pstyle("taxi-radius").value, Mh = e.pstyle("radius-type").value[0] === "arc-radius";
12423
+ n.radii = Array(n.segpts.length / 2).fill(jh), n.isArcRadius = Array(n.segpts.length / 2).fill(Mh);
12424
12424
  }
12425
12425
  }, BRp$c.tryToCorrectInvalidPoints = function(e, t) {
12426
12426
  var n = e._private.rscratch;
@@ -12647,8 +12647,8 @@ BRp$c.findMidptPtsEtc = function(e, t) {
12647
12647
  }
12648
12648
  };
12649
12649
  }
12650
- var Oh = B ? f : d;
12651
- L.nodesOverlap = Oh.nodesOverlap, L.srcIntn = Oh.srcIntn, L.tgtIntn = Oh.tgtIntn, L.isRound = R.startsWith("round"), r && (g.isParent() || g.isChild() || _.isParent() || _.isChild()) && (g.parents().anySame(_) || _.parents().anySame(g) || g.same(_) && g.isParent()) ? t.findCompoundLoopPoints(I, Oh, F, z) : g === _ ? t.findLoopPoints(I, Oh, F, z) : R.endsWith("segments") ? t.findSegmentsPoints(I, Oh) : R.endsWith("taxi") ? t.findTaxiPoints(I, Oh) : R === "straight" || !z && d.eles.length % 2 == 1 && F === Math.floor(d.eles.length / 2) ? t.findStraightEdgePoints(I) : t.findBezierPoints(I, Oh, F, z, B), t.findEndpoints(I), t.tryToCorrectInvalidPoints(I, Oh), t.checkForInvalidEdgeWarning(I), t.storeAllpts(I), t.storeEdgeProjections(I), t.calculateArrowAngles(I), t.recalculateEdgeLabelProjections(I), t.calculateLabelAngles(I);
12650
+ var jh = B ? f : d;
12651
+ L.nodesOverlap = jh.nodesOverlap, L.srcIntn = jh.srcIntn, L.tgtIntn = jh.tgtIntn, L.isRound = R.startsWith("round"), r && (g.isParent() || g.isChild() || _.isParent() || _.isChild()) && (g.parents().anySame(_) || _.parents().anySame(g) || g.same(_) && g.isParent()) ? t.findCompoundLoopPoints(I, jh, F, z) : g === _ ? t.findLoopPoints(I, jh, F, z) : R.endsWith("segments") ? t.findSegmentsPoints(I, jh) : R.endsWith("taxi") ? t.findTaxiPoints(I, jh) : R === "straight" || !z && d.eles.length % 2 == 1 && F === Math.floor(d.eles.length / 2) ? t.findStraightEdgePoints(I) : t.findBezierPoints(I, jh, F, z, B), t.findEndpoints(I), t.tryToCorrectInvalidPoints(I, jh), t.checkForInvalidEdgeWarning(I), t.storeAllpts(I), t.storeEdgeProjections(I), t.calculateArrowAngles(I), t.recalculateEdgeLabelProjections(I), t.calculateLabelAngles(I);
12652
12652
  }
12653
12653
  }, T = 0; T < s.length; T++) w();
12654
12654
  this.findHaystackPoints(c);
@@ -12711,9 +12711,9 @@ BRp$b.manualEndptToPx = function(e, t) {
12711
12711
  else if (F === "outside-to-node" || F === "outside-to-node-or-label" ? z = L : (F === "outside-to-line" || F === "outside-to-line-or-label") && (z = [c.x, c.y]), a = r.nodeShapes[this.getNodeShape(s)].intersectLine(l.x, l.y, s.outerWidth(), s.outerHeight(), z[0], z[1], 0, I, g), F === "outside-to-node-or-label" || F === "outside-to-line-or-label") {
12712
12712
  var G = s._private.rscratch, q = G.labelWidth, J = G.labelHeight, Y = G.labelX, X = G.labelY, Z = q / 2, Q = J / 2, $ = s.pstyle("text-valign").value;
12713
12713
  $ === "top" ? X -= Q : $ === "bottom" && (X += Q);
12714
- var Oh = s.pstyle("text-halign").value;
12715
- Oh === "left" ? Y -= Z : Oh === "right" && (Y += Z);
12716
- var kh = polygonIntersectLine(z[0], z[1], [
12714
+ var jh = s.pstyle("text-halign").value;
12715
+ jh === "left" ? Y -= Z : jh === "right" && (Y += Z);
12716
+ var Mh = polygonIntersectLine(z[0], z[1], [
12717
12717
  Y - Z,
12718
12718
  X - Q,
12719
12719
  Y + Z,
@@ -12723,43 +12723,43 @@ BRp$b.manualEndptToPx = function(e, t) {
12723
12723
  Y - Z,
12724
12724
  X + Q
12725
12725
  ], l.x, l.y);
12726
- if (kh.length > 0) {
12727
- var Ah = c, jh = sqdist(Ah, array2point(a)), Mh = sqdist(Ah, array2point(kh)), Nh = jh;
12728
- Mh < jh && (a = kh, Nh = Mh), kh.length > 2 && sqdist(Ah, {
12729
- x: kh[2],
12730
- y: kh[3]
12731
- }) < Nh && (a = [kh[2], kh[3]]);
12726
+ if (Mh.length > 0) {
12727
+ var Nh = c, Ph = sqdist(Nh, array2point(a)), Fh = sqdist(Nh, array2point(Mh)), Ih = Ph;
12728
+ Fh < Ph && (a = Mh, Ih = Fh), Mh.length > 2 && sqdist(Nh, {
12729
+ x: Mh[2],
12730
+ y: Mh[3]
12731
+ }) < Ih && (a = [Mh[2], Mh[3]]);
12732
12732
  }
12733
12733
  }
12734
- var Ph = shortenIntersection(a, L, r.arrowShapes[u].spacing(e) + f), Fh = shortenIntersection(a, L, r.arrowShapes[u].gap(e) + f);
12735
- if (v.endX = Fh[0], v.endY = Fh[1], v.arrowEndX = Ph[0], v.arrowEndY = Ph[1], j === "inside-to-node") a = [c.x, c.y];
12734
+ var Lh = shortenIntersection(a, L, r.arrowShapes[u].spacing(e) + f), Rh = shortenIntersection(a, L, r.arrowShapes[u].gap(e) + f);
12735
+ if (v.endX = Rh[0], v.endY = Rh[1], v.arrowEndX = Lh[0], v.arrowEndY = Lh[1], j === "inside-to-node") a = [c.x, c.y];
12736
12736
  else if (A.units) a = this.manualEndptToPx(o, A);
12737
12737
  else if (j === "outside-to-line") a = v.srcIntn;
12738
12738
  else if (j === "outside-to-node" || j === "outside-to-node-or-label" ? B = R : (j === "outside-to-line" || j === "outside-to-line-or-label") && (B = [l.x, l.y]), a = r.nodeShapes[this.getNodeShape(o)].intersectLine(c.x, c.y, o.outerWidth(), o.outerHeight(), B[0], B[1], 0, M, h), j === "outside-to-node-or-label" || j === "outside-to-line-or-label") {
12739
- var Ih = o._private.rscratch, Lh = Ih.labelWidth, Rh = Ih.labelHeight, zh = Ih.labelX, Bh = Ih.labelY, Vh = Lh / 2, Hh = Rh / 2, Uh = o.pstyle("text-valign").value;
12740
- Uh === "top" ? Bh -= Hh : Uh === "bottom" && (Bh += Hh);
12741
- var Wh = o.pstyle("text-halign").value;
12742
- Wh === "left" ? zh -= Vh : Wh === "right" && (zh += Vh);
12743
- var Gh = polygonIntersectLine(B[0], B[1], [
12744
- zh - Vh,
12745
- Bh - Hh,
12746
- zh + Vh,
12747
- Bh - Hh,
12748
- zh + Vh,
12749
- Bh + Hh,
12750
- zh - Vh,
12751
- Bh + Hh
12739
+ var zh = o._private.rscratch, Bh = zh.labelWidth, Vh = zh.labelHeight, Hh = zh.labelX, Uh = zh.labelY, Wh = Bh / 2, Gh = Vh / 2, Kh = o.pstyle("text-valign").value;
12740
+ Kh === "top" ? Uh -= Gh : Kh === "bottom" && (Uh += Gh);
12741
+ var qh = o.pstyle("text-halign").value;
12742
+ qh === "left" ? Hh -= Wh : qh === "right" && (Hh += Wh);
12743
+ var Jh = polygonIntersectLine(B[0], B[1], [
12744
+ Hh - Wh,
12745
+ Uh - Gh,
12746
+ Hh + Wh,
12747
+ Uh - Gh,
12748
+ Hh + Wh,
12749
+ Uh + Gh,
12750
+ Hh - Wh,
12751
+ Uh + Gh
12752
12752
  ], c.x, c.y);
12753
- if (Gh.length > 0) {
12754
- var Kh = l, qh = sqdist(Kh, array2point(a)), Jh = sqdist(Kh, array2point(Gh)), Yh = qh;
12755
- Jh < qh && (a = [Gh[0], Gh[1]], Yh = Jh), Gh.length > 2 && sqdist(Kh, {
12756
- x: Gh[2],
12757
- y: Gh[3]
12758
- }) < Yh && (a = [Gh[2], Gh[3]]);
12753
+ if (Jh.length > 0) {
12754
+ var Yh = l, Xh = sqdist(Yh, array2point(a)), Zh = sqdist(Yh, array2point(Jh)), Qh = Xh;
12755
+ Zh < Xh && (a = [Jh[0], Jh[1]], Qh = Zh), Jh.length > 2 && sqdist(Yh, {
12756
+ x: Jh[2],
12757
+ y: Jh[3]
12758
+ }) < Qh && (a = [Jh[2], Jh[3]]);
12759
12759
  }
12760
12760
  }
12761
- var Xh = shortenIntersection(a, R, r.arrowShapes[d].spacing(e) + m), Zh = shortenIntersection(a, R, r.arrowShapes[d].gap(e) + m);
12762
- v.startX = Zh[0], v.startY = Zh[1], v.arrowStartX = Xh[0], v.arrowStartY = Xh[1], O && (!number$1(v.startX) || !number$1(v.startY) || !number$1(v.endX) || !number$1(v.endY) ? v.badLine = !0 : v.badLine = !1);
12761
+ var $h = shortenIntersection(a, R, r.arrowShapes[d].spacing(e) + m), eg = shortenIntersection(a, R, r.arrowShapes[d].gap(e) + m);
12762
+ v.startX = eg[0], v.startY = eg[1], v.arrowStartX = $h[0], v.arrowStartY = $h[1], O && (!number$1(v.startX) || !number$1(v.startY) || !number$1(v.endX) || !number$1(v.endY) ? v.badLine = !0 : v.badLine = !1);
12763
12763
  }, BRp$b.getSourceEndpoint = function(e) {
12764
12764
  var t = e[0]._private.rscratch;
12765
12765
  switch (this.recalculateRenderedStyle(e), t.edgeType) {
@@ -13163,7 +13163,14 @@ BRp$4.getCachedImage = function(e, t, n) {
13163
13163
  var c = "data:";
13164
13164
  return e.substring(0, c.length).toLowerCase() !== c && (t = t === "null" ? null : t, s.crossOrigin = t), s.src = e, s;
13165
13165
  };
13166
- var BRp$3 = {};
13166
+ var setGrabState = function(e, t) {
13167
+ var n = e[0];
13168
+ !n || n._private.grabbed === t || (n._private.grabbed = t, e.updateStyle(!1));
13169
+ }, setGrabbed = function(e) {
13170
+ setGrabState(e, !0);
13171
+ }, setFreed = function(e) {
13172
+ setGrabState(e, !1);
13173
+ }, BRp$3 = {};
13167
13174
  BRp$3.registerBinding = function(e, t, n, r) {
13168
13175
  var a = Array.prototype.slice.apply(arguments, [1]);
13169
13176
  if (Array.isArray(e)) {
@@ -13241,51 +13248,47 @@ BRp$3.registerBinding = function(e, t, n, r) {
13241
13248
  else r = !0;
13242
13249
  return r;
13243
13250
  }, c = function(e) {
13244
- e[0]._private.grabbed = !0;
13245
- }, l = function(e) {
13246
- e[0]._private.grabbed = !1;
13247
- }, u = function(e) {
13248
13251
  e[0]._private.rscratch.inDragLayer = !0;
13249
- }, d = function(e) {
13252
+ }, l = function(e) {
13250
13253
  e[0]._private.rscratch.inDragLayer = !1;
13251
- }, f = function(e) {
13254
+ }, u = function(e) {
13252
13255
  e[0]._private.rscratch.isGrabTarget = !0;
13253
- }, m = function(e) {
13256
+ }, d = function(e) {
13254
13257
  e[0]._private.rscratch.isGrabTarget = !1;
13255
- }, h = function(e, t) {
13258
+ }, f = function(e, t) {
13256
13259
  var n = t.addToList;
13257
- !n.has(e) && e.grabbable() && !e.locked() && (n.merge(e), c(e));
13258
- }, g = function(e, t) {
13260
+ !n.has(e) && e.grabbable() && !e.locked() && (n.merge(e), setGrabbed(e));
13261
+ }, m = function(e, t) {
13259
13262
  if (e.cy().hasCompoundNodes() && !(t.inDragLayer == null && t.addToList == null)) {
13260
13263
  var n = e.descendants();
13261
- t.inDragLayer && (n.forEach(u), n.connectedEdges().forEach(u)), t.addToList && h(n, t);
13264
+ t.inDragLayer && (n.forEach(c), n.connectedEdges().forEach(c)), t.addToList && f(n, t);
13262
13265
  }
13263
- }, _ = function(t, n) {
13266
+ }, h = function(t, n) {
13264
13267
  n ||= {};
13265
13268
  var r = t.cy().hasCompoundNodes();
13266
- n.inDragLayer && (t.forEach(u), t.neighborhood().stdFilter(function(e) {
13269
+ n.inDragLayer && (t.forEach(c), t.neighborhood().stdFilter(function(e) {
13267
13270
  return !r || e.isEdge();
13268
- }).forEach(u)), n.addToList && t.forEach(function(e) {
13269
- h(e, n);
13270
- }), g(t, n), S(t, { inDragLayer: n.inDragLayer }), e.updateCachedGrabbedEles();
13271
- }, v = _, b = function(t) {
13271
+ }).forEach(c)), n.addToList && t.forEach(function(e) {
13272
+ f(e, n);
13273
+ }), m(t, n), v(t, { inDragLayer: n.inDragLayer }), e.updateCachedGrabbedEles();
13274
+ }, g = h, _ = function(t) {
13272
13275
  t && (e.getCachedZSortedEles().forEach(function(e) {
13273
- l(e), d(e), m(e);
13276
+ setFreed(e), l(e), d(e);
13274
13277
  }), e.updateCachedGrabbedEles());
13275
- }, S = function(e, t) {
13278
+ }, v = function(e, t) {
13276
13279
  if (!(t.inDragLayer == null && t.addToList == null) && e.cy().hasCompoundNodes()) {
13277
13280
  var n = e.ancestors().orphans();
13278
13281
  if (!n.same(e)) {
13279
13282
  var r = n.descendants().spawnSelf().merge(n).unmerge(e).unmerge(e.descendants()), a = r.connectedEdges();
13280
- t.inDragLayer && (a.forEach(u), r.forEach(u)), t.addToList && r.forEach(function(e) {
13281
- h(e, t);
13283
+ t.inDragLayer && (a.forEach(c), r.forEach(c)), t.addToList && r.forEach(function(e) {
13284
+ f(e, t);
13282
13285
  });
13283
13286
  }
13284
13287
  }
13285
- }, C = function() {
13288
+ }, b = function() {
13286
13289
  document.activeElement != null && document.activeElement.blur != null && document.activeElement.blur();
13287
- }, w = typeof MutationObserver < "u", T = typeof ResizeObserver < "u";
13288
- w ? (e.removeObserver = new MutationObserver(function(t) {
13290
+ }, S = typeof MutationObserver < "u", C = typeof ResizeObserver < "u";
13291
+ S ? (e.removeObserver = new MutationObserver(function(t) {
13289
13292
  for (var n = 0; n < t.length; n++) {
13290
13293
  var r = t[n].removedNodes;
13291
13294
  if (r) {
@@ -13298,23 +13301,23 @@ BRp$3.registerBinding = function(e, t, n, r) {
13298
13301
  }), e.container.parentNode && e.removeObserver.observe(e.container.parentNode, { childList: !0 })) : e.registerBinding(e.container, "DOMNodeRemoved", function(t) {
13299
13302
  e.destroy();
13300
13303
  });
13301
- var E = debounce(function() {
13304
+ var w = debounce(function() {
13302
13305
  e.cy.resize();
13303
13306
  }, 100);
13304
- w && (e.styleObserver = new MutationObserver(E), e.styleObserver.observe(e.container, { attributes: !0 })), e.registerBinding(t, "resize", E), T && (e.resizeObserver = new ResizeObserver(E), e.resizeObserver.observe(e.container));
13305
- var D = function(e, t) {
13307
+ S && (e.styleObserver = new MutationObserver(w), e.styleObserver.observe(e.container, { attributes: !0 })), e.registerBinding(t, "resize", w), C && (e.resizeObserver = new ResizeObserver(w), e.resizeObserver.observe(e.container));
13308
+ var T = function(e, t) {
13306
13309
  for (; e != null;) t(e), e = e.parentNode;
13307
- }, O = function() {
13310
+ }, E = function() {
13308
13311
  e.invalidateContainerClientCoordsCache();
13309
13312
  };
13310
- D(e.container, function(t) {
13311
- e.registerBinding(t, "transitionend", O), e.registerBinding(t, "animationend", O), e.registerBinding(t, "scroll", O);
13313
+ T(e.container, function(t) {
13314
+ e.registerBinding(t, "transitionend", E), e.registerBinding(t, "animationend", E), e.registerBinding(t, "scroll", E);
13312
13315
  }), e.registerBinding(e.container, "contextmenu", function(e) {
13313
13316
  e.preventDefault();
13314
13317
  });
13315
- var k = function() {
13318
+ var D = function() {
13316
13319
  return e.selection[4] !== 0;
13317
- }, A = function(t) {
13320
+ }, O = function(t) {
13318
13321
  for (var n = e.findContainerClientCoords(), r = n[0], a = n[1], o = n[2], s = n[3], c = t.touches ? t.touches : [t], l = !1, u = 0; u < c.length; u++) {
13319
13322
  var d = c[u];
13320
13323
  if (r <= d.clientX && d.clientX <= r + o && a <= d.clientY && d.clientY <= a + s) {
@@ -13333,11 +13336,11 @@ BRp$3.registerBinding = function(e, t, n, r) {
13333
13336
  return !!h;
13334
13337
  };
13335
13338
  e.registerBinding(e.container, "mousedown", function(t) {
13336
- if (A(t) && !(e.hoverData.which === 1 && t.which !== 1)) {
13337
- t.preventDefault(), C(), e.hoverData.capture = !0, e.hoverData.which = t.which;
13338
- var n = e.cy, r = [t.clientX, t.clientY], o = e.projectIntoViewport(r[0], r[1]), s = e.selection, c = e.findNearestElements(o[0], o[1], !0, !1), l = c[0], u = e.dragData.possibleDragElements;
13339
+ if (O(t) && !(e.hoverData.which === 1 && t.which !== 1)) {
13340
+ t.preventDefault(), b(), e.hoverData.capture = !0, e.hoverData.which = t.which;
13341
+ var n = e.cy, r = [t.clientX, t.clientY], o = e.projectIntoViewport(r[0], r[1]), s = e.selection, c = e.findNearestElements(o[0], o[1], !0, !1), l = c[0], d = e.dragData.possibleDragElements;
13339
13342
  e.hoverData.mdownPos = o, e.hoverData.mdownGPos = r;
13340
- var d = function(e) {
13343
+ var f = function(e) {
13341
13344
  return {
13342
13345
  originalEvent: t,
13343
13346
  type: e,
@@ -13350,13 +13353,13 @@ BRp$3.registerBinding = function(e, t, n, r) {
13350
13353
  e.hoverData.tapholdCancelled = !1, clearTimeout(e.hoverData.tapholdTimeout), e.hoverData.tapholdTimeout = setTimeout(function() {
13351
13354
  if (!e.hoverData.tapholdCancelled) {
13352
13355
  var t = e.hoverData.down;
13353
- t ? t.emit(d("taphold")) : n.emit(d("taphold"));
13356
+ t ? t.emit(f("taphold")) : n.emit(f("taphold"));
13354
13357
  }
13355
13358
  }, e.tapholdDuration);
13356
13359
  };
13357
13360
  if (t.which == 3) {
13358
13361
  e.hoverData.cxtStarted = !0;
13359
- var h = {
13362
+ var _ = {
13360
13363
  originalEvent: t,
13361
13364
  type: "cxttapstart",
13362
13365
  position: {
@@ -13364,19 +13367,19 @@ BRp$3.registerBinding = function(e, t, n, r) {
13364
13367
  y: o[1]
13365
13368
  }
13366
13369
  };
13367
- l ? (l.activate(), l.emit(h), e.hoverData.down = l) : n.emit(h), e.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime(), e.hoverData.cxtDragged = !1;
13370
+ l ? (l.activate(), l.emit(_), e.hoverData.down = l) : n.emit(_), e.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime(), e.hoverData.cxtDragged = !1;
13368
13371
  } else if (t.which == 1) {
13369
13372
  if (l && l.activate(), l != null && e.nodeIsGrabbable(l)) {
13370
- var g = function(e) {
13371
- e.emit(d("grab"));
13373
+ var v = function(e) {
13374
+ e.emit(f("grab"));
13372
13375
  };
13373
- if (f(l), !l.selected()) u = e.dragData.possibleDragElements = n.collection(), v(l, { addToList: u }), l.emit(d("grabon")).emit(d("grab"));
13376
+ if (u(l), !l.selected()) d = e.dragData.possibleDragElements = n.collection(), g(l, { addToList: d }), l.emit(f("grabon")).emit(f("grab"));
13374
13377
  else {
13375
- u = e.dragData.possibleDragElements = n.collection();
13376
- var b = n.$(function(t) {
13378
+ d = e.dragData.possibleDragElements = n.collection();
13379
+ var S = n.$(function(t) {
13377
13380
  return t.isNode() && t.selected() && e.nodeIsGrabbable(t);
13378
13381
  });
13379
- _(b, { addToList: u }), l.emit(d("grabon")), b.forEach(g);
13382
+ h(S, { addToList: d }), l.emit(f("grabon")), S.forEach(v);
13380
13383
  }
13381
13384
  e.redrawHint("eles", !0), e.redrawHint("drag", !0);
13382
13385
  }
@@ -13395,23 +13398,23 @@ BRp$3.registerBinding = function(e, t, n, r) {
13395
13398
  s[0] = s[2] = o[0], s[1] = s[3] = o[1];
13396
13399
  }
13397
13400
  }, !1);
13398
- var j = r(e.container);
13399
- e.registerBinding([t, j], "mousemove", function(t) {
13400
- if (!(!e.hoverData.capture && !A(t))) {
13401
- var n = !1, r = e.cy, c = r.zoom(), l = [t.clientX, t.clientY], u = e.projectIntoViewport(l[0], l[1]), d = e.hoverData.mdownPos, f = e.hoverData.mdownGPos, m = e.selection, h = null;
13402
- !e.hoverData.draggingEles && !e.hoverData.dragging && !e.hoverData.selecting && (h = e.findNearestElement(u[0], u[1], !0, !1));
13403
- var g = e.hoverData.last, v = e.hoverData.down, S = [u[0] - m[2], u[1] - m[3]], C = e.dragData.possibleDragElements, w;
13401
+ var k = r(e.container);
13402
+ e.registerBinding([t, k], "mousemove", function(t) {
13403
+ if (!(!e.hoverData.capture && !O(t))) {
13404
+ var n = !1, r = e.cy, c = r.zoom(), l = [t.clientX, t.clientY], u = e.projectIntoViewport(l[0], l[1]), d = e.hoverData.mdownPos, f = e.hoverData.mdownGPos, m = e.selection, g = null;
13405
+ !e.hoverData.draggingEles && !e.hoverData.dragging && !e.hoverData.selecting && (g = e.findNearestElement(u[0], u[1], !0, !1));
13406
+ var v = e.hoverData.last, b = e.hoverData.down, S = [u[0] - m[2], u[1] - m[3]], C = e.dragData.possibleDragElements, w;
13404
13407
  if (f) {
13405
- var T = l[0] - f[0], E = T * T, D = l[1] - f[1], O = E + D * D;
13406
- e.hoverData.isOverThresholdDrag = w = O >= e.desktopTapThreshold2;
13408
+ var T = l[0] - f[0], E = T * T, D = l[1] - f[1], k = E + D * D;
13409
+ e.hoverData.isOverThresholdDrag = w = k >= e.desktopTapThreshold2;
13407
13410
  }
13408
- var k = o(t);
13411
+ var A = o(t);
13409
13412
  w && (e.hoverData.tapholdCancelled = !0);
13410
13413
  var j = function() {
13411
13414
  var t = e.hoverData.dragDelta = e.hoverData.dragDelta || [];
13412
13415
  t.length === 0 ? (t.push(S[0]), t.push(S[1])) : (t[0] += S[0], t[1] += S[1]);
13413
13416
  };
13414
- n = !0, a(h, [
13417
+ n = !0, a(g, [
13415
13418
  "mousemove",
13416
13419
  "vmousemove",
13417
13420
  "tapdrag"
@@ -13434,7 +13437,7 @@ BRp$3.registerBinding = function(e, t, n, r) {
13434
13437
  if (e.hoverData.which === 3) {
13435
13438
  if (w) {
13436
13439
  var F = M("cxtdrag");
13437
- v ? v.emit(F) : r.emit(F), e.hoverData.cxtDragged = !0, (!e.hoverData.cxtOver || h !== e.hoverData.cxtOver) && (e.hoverData.cxtOver && e.hoverData.cxtOver.emit(M("cxtdragout")), e.hoverData.cxtOver = h, h && h.emit(M("cxtdragover")));
13440
+ b ? b.emit(F) : r.emit(F), e.hoverData.cxtDragged = !0, (!e.hoverData.cxtOver || g !== e.hoverData.cxtOver) && (e.hoverData.cxtOver && e.hoverData.cxtOver.emit(M("cxtdragout")), e.hoverData.cxtOver = g, g && g.emit(M("cxtdragover")));
13438
13441
  }
13439
13442
  } else if (e.hoverData.dragging) {
13440
13443
  if (n = !0, r.panningEnabled() && r.userPanningEnabled()) {
@@ -13452,19 +13455,19 @@ BRp$3.registerBinding = function(e, t, n, r) {
13452
13455
  r.panBy(I), r.emit(M("dragpan")), e.hoverData.dragged = !0;
13453
13456
  }
13454
13457
  u = e.projectIntoViewport(t.clientX, t.clientY);
13455
- } else if (m[4] == 1 && (v == null || v.pannable())) w && (!e.hoverData.dragging && r.boxSelectionEnabled() && (k || !r.panningEnabled() || !r.userPanningEnabled()) ? N() : !e.hoverData.selecting && r.panningEnabled() && r.userPanningEnabled() && s(v, e.hoverData.downs) && (e.hoverData.dragging = !0, e.hoverData.justStartedPan = !0, m[4] = 0, e.data.bgActivePosistion = array2point(d), e.redrawHint("select", !0), e.redraw()), v && v.pannable() && v.active() && v.unactivate());
13458
+ } else if (m[4] == 1 && (b == null || b.pannable())) w && (!e.hoverData.dragging && r.boxSelectionEnabled() && (A || !r.panningEnabled() || !r.userPanningEnabled()) ? N() : !e.hoverData.selecting && r.panningEnabled() && r.userPanningEnabled() && s(b, e.hoverData.downs) && (e.hoverData.dragging = !0, e.hoverData.justStartedPan = !0, m[4] = 0, e.data.bgActivePosistion = array2point(d), e.redrawHint("select", !0), e.redraw()), b && b.pannable() && b.active() && b.unactivate());
13456
13459
  else {
13457
- if (v && v.pannable() && v.active() && v.unactivate(), (!v || !v.grabbed()) && h != g && (g && a(g, ["mouseout", "tapdragout"], t, {
13460
+ if (b && b.pannable() && b.active() && b.unactivate(), (!b || !b.grabbed()) && g != v && (v && a(v, ["mouseout", "tapdragout"], t, {
13458
13461
  x: u[0],
13459
13462
  y: u[1]
13460
- }), h && a(h, ["mouseover", "tapdragover"], t, {
13463
+ }), g && a(g, ["mouseover", "tapdragover"], t, {
13461
13464
  x: u[0],
13462
13465
  y: u[1]
13463
- }), e.hoverData.last = h), v) if (w) {
13464
- if (r.boxSelectionEnabled() && k) v && v.grabbed() && (b(C), v.emit(M("freeon")), C.emit(M("free")), e.dragData.didDrag && (v.emit(M("dragfreeon")), C.emit(M("dragfree")))), N();
13465
- else if (v && v.grabbed() && e.nodeIsDraggable(v)) {
13466
+ }), e.hoverData.last = g), b) if (w) {
13467
+ if (r.boxSelectionEnabled() && A) b && b.grabbed() && (_(C), b.emit(M("freeon")), C.emit(M("free")), e.dragData.didDrag && (b.emit(M("dragfreeon")), C.emit(M("dragfree")))), N();
13468
+ else if (b && b.grabbed() && e.nodeIsDraggable(b)) {
13466
13469
  var R = !e.dragData.didDrag;
13467
- R && e.redrawHint("eles", !0), e.dragData.didDrag = !0, e.hoverData.draggingEles || _(C, { inDragLayer: !0 });
13470
+ R && e.redrawHint("eles", !0), e.dragData.didDrag = !0, e.hoverData.draggingEles || h(C, { inDragLayer: !0 });
13468
13471
  var z = {
13469
13472
  x: 0,
13470
13473
  y: 0
@@ -13481,7 +13484,7 @@ BRp$3.registerBinding = function(e, t, n, r) {
13481
13484
  if (m[2] = u[0], m[3] = u[1], n) return t.stopPropagation && t.stopPropagation(), t.preventDefault && t.preventDefault(), !1;
13482
13485
  }
13483
13486
  }, !1);
13484
- var M, N, F;
13487
+ var A, j, M;
13485
13488
  e.registerBinding(t, "mouseup", function(t) {
13486
13489
  if (!(e.hoverData.which === 1 && t.which !== 1 && e.hoverData.capture) && e.hoverData.capture) {
13487
13490
  e.hoverData.capture = !1;
@@ -13519,15 +13522,15 @@ BRp$3.registerBinding = function(e, t, n, r) {
13519
13522
  ], t, {
13520
13523
  x: s[0],
13521
13524
  y: s[1]
13522
- }), N = !1, t.timeStamp - F <= r.multiClickDebounceTime() ? (M && clearTimeout(M), N = !0, F = null, a(d, [
13525
+ }), j = !1, t.timeStamp - M <= r.multiClickDebounceTime() ? (A && clearTimeout(A), j = !0, M = null, a(d, [
13523
13526
  "dblclick",
13524
13527
  "dbltap",
13525
13528
  "vdblclick"
13526
13529
  ], t, {
13527
13530
  x: s[0],
13528
13531
  y: s[1]
13529
- })) : (M = setTimeout(function() {
13530
- N || a(d, [
13532
+ })) : (A = setTimeout(function() {
13533
+ j || a(d, [
13531
13534
  "oneclick",
13532
13535
  "onetap",
13533
13536
  "voneclick"
@@ -13535,42 +13538,42 @@ BRp$3.registerBinding = function(e, t, n, r) {
13535
13538
  x: s[0],
13536
13539
  y: s[1]
13537
13540
  });
13538
- }, r.multiClickDebounceTime()), F = t.timeStamp)), d == null && !e.dragData.didDrag && !e.hoverData.selecting && !e.hoverData.dragged && !o(t) && (r.$(n).unselect(["tapunselect"]), u.length > 0 && e.redrawHint("eles", !0), e.dragData.possibleDragElements = u = r.collection()), l == d && !e.dragData.didDrag && !e.hoverData.selecting && l != null && l._private.selectable && (e.hoverData.dragging || (r.selectionType() === "additive" || f ? l.selected() ? l.unselect(["tapunselect"]) : l.select(["tapselect"]) : f || (r.$(n).unmerge(l).unselect(["tapunselect"]), l.select(["tapselect"]))), e.redrawHint("eles", !0)), e.hoverData.selecting) {
13539
- var _ = r.collection(e.getAllInBox(c[0], c[1], c[2], c[3]));
13540
- e.redrawHint("select", !0), _.length > 0 && e.redrawHint("eles", !0), r.emit(m("boxend")), r.selectionType() === "additive" || f || r.$(n).unmerge(_).unselect(), _.emit(m("box")).stdFilter(function(e) {
13541
+ }, r.multiClickDebounceTime()), M = t.timeStamp)), d == null && !e.dragData.didDrag && !e.hoverData.selecting && !e.hoverData.dragged && !o(t) && (r.$(n).unselect(["tapunselect"]), u.length > 0 && e.redrawHint("eles", !0), e.dragData.possibleDragElements = u = r.collection()), l == d && !e.dragData.didDrag && !e.hoverData.selecting && l != null && l._private.selectable && (e.hoverData.dragging || (r.selectionType() === "additive" || f ? l.selected() ? l.unselect(["tapunselect"]) : l.select(["tapselect"]) : f || (r.$(n).unmerge(l).unselect(["tapunselect"]), l.select(["tapselect"]))), e.redrawHint("eles", !0)), e.hoverData.selecting) {
13542
+ var v = r.collection(e.getAllInBox(c[0], c[1], c[2], c[3]));
13543
+ e.redrawHint("select", !0), v.length > 0 && e.redrawHint("eles", !0), r.emit(m("boxend")), r.selectionType() === "additive" || f || r.$(n).unmerge(v).unselect(), v.emit(m("box")).stdFilter(function(e) {
13541
13544
  return e.selectable() && !e.selected();
13542
13545
  }).select().emit(m("boxselect")), e.redraw();
13543
13546
  }
13544
13547
  if (e.hoverData.dragging && (e.hoverData.dragging = !1, e.redrawHint("select", !0), e.redrawHint("eles", !0), e.redraw()), !c[4]) {
13545
13548
  e.redrawHint("drag", !0), e.redrawHint("eles", !0);
13546
- var v = d && d.grabbed();
13547
- b(u), v && (d.emit(m("freeon")), u.emit(m("free")), e.dragData.didDrag && (d.emit(m("dragfreeon")), u.emit(m("dragfree"))));
13549
+ var b = d && d.grabbed();
13550
+ _(u), b && (d.emit(m("freeon")), u.emit(m("free")), e.dragData.didDrag && (d.emit(m("dragfreeon")), u.emit(m("dragfree"))));
13548
13551
  }
13549
13552
  }
13550
13553
  c[4] = 0, e.hoverData.down = null, e.hoverData.cxtStarted = !1, e.hoverData.draggingEles = !1, e.hoverData.selecting = !1, e.hoverData.isOverThresholdDrag = !1, e.dragData.didDrag = !1, e.hoverData.dragged = !1, e.hoverData.dragDelta = [], e.hoverData.mdownPos = null, e.hoverData.mdownGPos = null, e.hoverData.which = null;
13551
13554
  }
13552
13555
  }, !1);
13553
- var I = [], L = 4, R, z = 1e5, B = function(e, t) {
13556
+ var N = [], F = 4, I, L = 1e5, R = function(e, t) {
13554
13557
  for (var n = 0; n < e.length; n++) if (e[n] % t !== 0) return !1;
13555
13558
  return !0;
13556
- }, V = function(e) {
13559
+ }, z = function(e) {
13557
13560
  for (var t = Math.abs(e[0]), n = 1; n < e.length; n++) if (Math.abs(e[n]) !== t) return !1;
13558
13561
  return !0;
13559
- }, H = function(t) {
13562
+ }, B = function(t) {
13560
13563
  var n = !1, r = t.deltaY;
13561
13564
  if (r ?? (t.wheelDeltaY == null ? t.wheelDelta != null && (r = t.wheelDelta / 4) : r = t.wheelDeltaY / 4), r !== 0) {
13562
- if (R == null) if (I.length >= L) {
13563
- var a = I;
13564
- if (R = B(a, 5), !R) {
13565
+ if (I == null) if (N.length >= F) {
13566
+ var a = N;
13567
+ if (I = R(a, 5), !I) {
13565
13568
  var o = Math.abs(a[0]);
13566
- R = V(a) && o > 5;
13569
+ I = z(a) && o > 5;
13567
13570
  }
13568
- if (R) for (var s = 0; s < a.length; s++) z = Math.min(Math.abs(a[s]), z);
13569
- } else I.push(r), n = !0;
13570
- else R && (z = Math.min(Math.abs(r), z));
13571
+ if (I) for (var s = 0; s < a.length; s++) L = Math.min(Math.abs(a[s]), L);
13572
+ } else N.push(r), n = !0;
13573
+ else I && (L = Math.min(Math.abs(r), L));
13571
13574
  if (!e.scrollingPage) {
13572
13575
  var c = e.cy, l = c.zoom(), u = c.pan(), d = e.projectIntoViewport(t.clientX, t.clientY), f = [d[0] * l + u.x, d[1] * l + u.y];
13573
- if (e.hoverData.draggingEles || e.hoverData.dragging || e.hoverData.cxtStarted || k()) {
13576
+ if (e.hoverData.draggingEles || e.hoverData.dragging || e.hoverData.cxtStarted || D()) {
13574
13577
  t.preventDefault();
13575
13578
  return;
13576
13579
  }
@@ -13579,7 +13582,7 @@ BRp$3.registerBinding = function(e, t, n, r) {
13579
13582
  e.data.wheelZooming = !1, e.redrawHint("eles", !0), e.redraw();
13580
13583
  }, 150);
13581
13584
  var m;
13582
- n && Math.abs(r) > 5 && (r = signum(r) * 5), m = r / -250, R && (m /= z, m *= 3), m *= e.wheelSensitivity, t.deltaMode === 1 && (m *= 33);
13585
+ n && Math.abs(r) > 5 && (r = signum(r) * 5), m = r / -250, I && (m /= L, m *= 3), m *= e.wheelSensitivity, t.deltaMode === 1 && (m *= 33);
13583
13586
  var h = c.zoom() * 10 ** m;
13584
13587
  t.type === "gesturechange" && (h = e.gestureStartZoom * t.scale), c.zoom({
13585
13588
  level: h,
@@ -13599,14 +13602,14 @@ BRp$3.registerBinding = function(e, t, n, r) {
13599
13602
  }
13600
13603
  }
13601
13604
  };
13602
- e.registerBinding(e.container, "wheel", H, !0), e.registerBinding(t, "scroll", function(t) {
13605
+ e.registerBinding(e.container, "wheel", B, !0), e.registerBinding(t, "scroll", function(t) {
13603
13606
  e.scrollingPage = !0, clearTimeout(e.scrollingPageTimeout), e.scrollingPageTimeout = setTimeout(function() {
13604
13607
  e.scrollingPage = !1;
13605
13608
  }, 250);
13606
13609
  }, !0), e.registerBinding(e.container, "gesturestart", function(t) {
13607
13610
  e.gestureStartZoom = e.cy.zoom(), e.hasTouchStarted || t.preventDefault();
13608
13611
  }, !0), e.registerBinding(e.container, "gesturechange", function(t) {
13609
- e.hasTouchStarted || H(t);
13612
+ e.hasTouchStarted || B(t);
13610
13613
  }, !0), e.registerBinding(e.container, "mouseout", function(t) {
13611
13614
  var n = e.projectIntoViewport(t.clientX, t.clientY);
13612
13615
  e.cy.emit({
@@ -13628,14 +13631,14 @@ BRp$3.registerBinding = function(e, t, n, r) {
13628
13631
  }
13629
13632
  });
13630
13633
  }, !1);
13631
- var U, W, G, q, J, Y, X, Z, Q, $, Dh, Oh, kh, Ah = function(e, t, n, r) {
13634
+ var V, H, U, W, G, q, J, Y, X, Z, Q, $, Ah, jh = function(e, t, n, r) {
13632
13635
  return Math.sqrt((n - e) * (n - e) + (r - t) * (r - t));
13633
- }, jh = function(e, t, n, r) {
13636
+ }, Mh = function(e, t, n, r) {
13634
13637
  return (n - e) * (n - e) + (r - t) * (r - t);
13635
- }, Mh;
13636
- e.registerBinding(e.container, "touchstart", Mh = function(t) {
13637
- if (e.hasTouchStarted = !0, A(t)) {
13638
- C(), e.touchData.capture = !0, e.data.bgActivePosistion = void 0;
13638
+ }, Nh;
13639
+ e.registerBinding(e.container, "touchstart", Nh = function(t) {
13640
+ if (e.hasTouchStarted = !0, O(t)) {
13641
+ b(), e.touchData.capture = !0, e.data.bgActivePosistion = void 0;
13639
13642
  var n = e.cy, r = e.touchData.now, o = e.touchData.earlier;
13640
13643
  if (t.touches[0]) {
13641
13644
  var s = e.projectIntoViewport(t.touches[0].clientX, t.touches[0].clientY);
@@ -13660,15 +13663,15 @@ BRp$3.registerBinding = function(e, t, n, r) {
13660
13663
  };
13661
13664
  };
13662
13665
  if (t.touches[1]) {
13663
- e.touchData.singleTouchMoved = !0, b(e.dragData.touchDragEles);
13666
+ e.touchData.singleTouchMoved = !0, _(e.dragData.touchDragEles);
13664
13667
  var l = e.findContainerClientCoords();
13665
- Q = l[0], $ = l[1], Dh = l[2], Oh = l[3], U = t.touches[0].clientX - Q, W = t.touches[0].clientY - $, G = t.touches[1].clientX - Q, q = t.touches[1].clientY - $, kh = 0 <= U && U <= Dh && 0 <= G && G <= Dh && 0 <= W && W <= Oh && 0 <= q && q <= Oh;
13666
- var u = n.pan(), d = n.zoom();
13667
- J = Ah(U, W, G, q), Y = jh(U, W, G, q), X = [(U + G) / 2, (W + q) / 2], Z = [(X[0] - u.x) / d, (X[1] - u.y) / d];
13668
- var m = 200, h = m * m;
13669
- if (Y < h && !t.touches[2]) {
13670
- var g = e.findNearestElement(r[0], r[1], !0, !0), S = e.findNearestElement(r[2], r[3], !0, !0);
13671
- g && g.isNode() ? (g.activate().emit(c("cxttapstart")), e.touchData.start = g) : S && S.isNode() ? (S.activate().emit(c("cxttapstart")), e.touchData.start = S) : n.emit(c("cxttapstart")), e.touchData.start && (e.touchData.start._private.grabbed = !1), e.touchData.cxt = !0, e.touchData.cxtDragged = !1, e.data.bgActivePosistion = void 0, e.redraw();
13668
+ X = l[0], Z = l[1], Q = l[2], $ = l[3], V = t.touches[0].clientX - X, H = t.touches[0].clientY - Z, U = t.touches[1].clientX - X, W = t.touches[1].clientY - Z, Ah = 0 <= V && V <= Q && 0 <= U && U <= Q && 0 <= H && H <= $ && 0 <= W && W <= $;
13669
+ var d = n.pan(), f = n.zoom();
13670
+ G = jh(V, H, U, W), q = Mh(V, H, U, W), J = [(V + U) / 2, (H + W) / 2], Y = [(J[0] - d.x) / f, (J[1] - d.y) / f];
13671
+ var m = 200, v = m * m;
13672
+ if (q < v && !t.touches[2]) {
13673
+ var S = e.findNearestElement(r[0], r[1], !0, !0), C = e.findNearestElement(r[2], r[3], !0, !0);
13674
+ S && S.isNode() ? (S.activate().emit(c("cxttapstart")), e.touchData.start = S) : C && C.isNode() ? (C.activate().emit(c("cxttapstart")), e.touchData.start = C) : n.emit(c("cxttapstart")), e.touchData.start && (e.touchData.start._private.grabbed = !1), e.touchData.cxt = !0, e.touchData.cxtDragged = !1, e.data.bgActivePosistion = void 0, e.redraw();
13672
13675
  return;
13673
13676
  }
13674
13677
  }
@@ -13679,7 +13682,7 @@ BRp$3.registerBinding = function(e, t, n, r) {
13679
13682
  var E = e.dragData.touchDragEles = n.collection(), D = null;
13680
13683
  e.redrawHint("eles", !0), e.redrawHint("drag", !0), T.selected() ? (D = n.$(function(t) {
13681
13684
  return t.selected() && e.nodeIsGrabbable(t);
13682
- }), _(D, { addToList: E })) : v(T, { addToList: E }), f(T), T.emit(c("grabon")), D ? D.forEach(function(e) {
13685
+ }), h(D, { addToList: E })) : g(T, { addToList: E }), u(T), T.emit(c("grabon")), D ? D.forEach(function(e) {
13683
13686
  e.emit(c("grab"));
13684
13687
  }) : T.emit(c("grab"));
13685
13688
  }
@@ -13701,23 +13704,23 @@ BRp$3.registerBinding = function(e, t, n, r) {
13701
13704
  }, e.tapholdDuration);
13702
13705
  }
13703
13706
  if (t.touches.length >= 1) {
13704
- for (var O = e.touchData.startPosition = [
13707
+ for (var k = e.touchData.startPosition = [
13705
13708
  null,
13706
13709
  null,
13707
13710
  null,
13708
13711
  null,
13709
13712
  null,
13710
13713
  null
13711
- ], k = 0; k < r.length; k++) O[k] = o[k] = r[k];
13714
+ ], A = 0; A < r.length; A++) k[A] = o[A] = r[A];
13712
13715
  var j = t.touches[0];
13713
13716
  e.touchData.startGPosition = [j.clientX, j.clientY];
13714
13717
  }
13715
13718
  }
13716
13719
  }, !1);
13717
- var Nh;
13718
- e.registerBinding(t, "touchmove", Nh = function(t) {
13720
+ var Ph;
13721
+ e.registerBinding(t, "touchmove", Ph = function(t) {
13719
13722
  var n = e.touchData.capture;
13720
- if (!(!n && !A(t))) {
13723
+ if (!(!n && !O(t))) {
13721
13724
  var r = e.selection, o = e.cy, c = e.touchData.now, l = e.touchData.earlier, u = o.zoom();
13722
13725
  if (t.touches[0]) {
13723
13726
  var d = e.projectIntoViewport(t.touches[0].clientX, t.touches[0].clientY);
@@ -13740,16 +13743,16 @@ BRp$3.registerBinding = function(e, t, n, r) {
13740
13743
  y: c[1]
13741
13744
  }
13742
13745
  };
13743
- }, m = e.touchData.startGPosition, h;
13746
+ }, m = e.touchData.startGPosition, g;
13744
13747
  if (n && t.touches[0] && m) {
13745
- for (var g = [], v = 0; v < c.length; v++) g[v] = c[v] - l[v];
13748
+ for (var v = [], b = 0; b < c.length; b++) v[b] = c[b] - l[b];
13746
13749
  var S = t.touches[0].clientX - m[0], C = S * S, w = t.touches[0].clientY - m[1];
13747
- h = C + w * w >= e.touchTapThreshold2;
13750
+ g = C + w * w >= e.touchTapThreshold2;
13748
13751
  }
13749
13752
  if (n && e.touchData.cxt) {
13750
13753
  t.preventDefault();
13751
- var T = t.touches[0].clientX - Q, E = t.touches[0].clientY - $, D = t.touches[1].clientX - Q, O = t.touches[1].clientY - $, k = jh(T, E, D, O), j = k / Y, M = 150, N = M * M, F = 1.5;
13752
- if (j >= F * F || k >= N) {
13754
+ var T = t.touches[0].clientX - X, E = t.touches[0].clientY - Z, D = t.touches[1].clientX - X, k = t.touches[1].clientY - Z, A = Mh(T, E, D, k), j = A / q, M = 150, N = M * M, F = 1.5;
13755
+ if (j >= F * F || A >= N) {
13753
13756
  e.touchData.cxt = !1, e.data.bgActivePosistion = void 0, e.redrawHint("select", !0);
13754
13757
  var I = f("cxttapend");
13755
13758
  e.touchData.start ? (e.touchData.start.unactivate().emit(I), e.touchData.start = null) : o.emit(I);
@@ -13771,21 +13774,21 @@ BRp$3.registerBinding = function(e, t, n, r) {
13771
13774
  B.grabbed = !1, B.rscratch.inDragLayer = !1;
13772
13775
  }
13773
13776
  }
13774
- var V = e.touchData.start, T = t.touches[0].clientX - Q, E = t.touches[0].clientY - $, D = t.touches[1].clientX - Q, O = t.touches[1].clientY - $, H = Ah(T, E, D, O), X = H / J;
13775
- if (kh) {
13776
- var Dh = T - U, Oh = E - W, Mh = D - G, Nh = O - q, Ph = (Dh + Mh) / 2, Fh = (Oh + Nh) / 2, Ih = o.zoom(), Lh = Ih * X, Rh = o.pan(), zh = Z[0] * Ih + Rh.x, Bh = Z[1] * Ih + Rh.y, Vh = {
13777
- x: -Lh / Ih * (zh - Rh.x - Ph) + zh,
13778
- y: -Lh / Ih * (Bh - Rh.y - Fh) + Bh
13777
+ var J = e.touchData.start, T = t.touches[0].clientX - X, E = t.touches[0].clientY - Z, D = t.touches[1].clientX - X, k = t.touches[1].clientY - Z, Q = jh(T, E, D, k), $ = Q / G;
13778
+ if (Ah) {
13779
+ var Nh = T - V, Ph = E - H, Fh = D - U, Ih = k - W, Lh = (Nh + Fh) / 2, Rh = (Ph + Ih) / 2, zh = o.zoom(), Bh = zh * $, Vh = o.pan(), Hh = Y[0] * zh + Vh.x, Uh = Y[1] * zh + Vh.y, Wh = {
13780
+ x: -Bh / zh * (Hh - Vh.x - Lh) + Hh,
13781
+ y: -Bh / zh * (Uh - Vh.y - Rh) + Uh
13779
13782
  };
13780
- if (V && V.active()) {
13783
+ if (J && J.active()) {
13781
13784
  var R = e.dragData.touchDragEles;
13782
- b(R), e.redrawHint("drag", !0), e.redrawHint("eles", !0), V.unactivate().emit(f("freeon")), R.emit(f("free")), e.dragData.didDrag && (V.emit(f("dragfreeon")), R.emit(f("dragfree")));
13785
+ _(R), e.redrawHint("drag", !0), e.redrawHint("eles", !0), J.unactivate().emit(f("freeon")), R.emit(f("free")), e.dragData.didDrag && (J.emit(f("dragfreeon")), R.emit(f("dragfree")));
13783
13786
  }
13784
13787
  o.viewport({
13785
- zoom: Lh,
13786
- pan: Vh,
13788
+ zoom: Bh,
13789
+ pan: Wh,
13787
13790
  cancelOnFailedZoom: !0
13788
- }), o.emit(f("pinchzoom")), J = H, U = T, W = E, G = D, q = O, e.pinching = !0;
13791
+ }), o.emit(f("pinchzoom")), G = Q, V = T, H = E, U = D, W = k, e.pinching = !0;
13789
13792
  }
13790
13793
  if (t.touches[0]) {
13791
13794
  var d = e.projectIntoViewport(t.touches[0].clientX, t.touches[0].clientY);
@@ -13800,55 +13803,55 @@ BRp$3.registerBinding = function(e, t, n, r) {
13800
13803
  c[4] = d[0], c[5] = d[1];
13801
13804
  }
13802
13805
  } else if (t.touches[0] && !e.touchData.didSelect) {
13803
- var Hh = e.touchData.start, Uh = e.touchData.last, L;
13804
- if (!e.hoverData.draggingEles && !e.swipePanning && (L = e.findNearestElement(c[0], c[1], !0, !0)), n && Hh != null && t.preventDefault(), n && Hh != null && e.nodeIsDraggable(Hh)) if (h) {
13805
- var R = e.dragData.touchDragEles, Wh = !e.dragData.didDrag;
13806
- Wh && _(R, { inDragLayer: !0 }), e.dragData.didDrag = !0;
13807
- var Gh = {
13806
+ var Gh = e.touchData.start, Kh = e.touchData.last, L;
13807
+ if (!e.hoverData.draggingEles && !e.swipePanning && (L = e.findNearestElement(c[0], c[1], !0, !0)), n && Gh != null && t.preventDefault(), n && Gh != null && e.nodeIsDraggable(Gh)) if (g) {
13808
+ var R = e.dragData.touchDragEles, qh = !e.dragData.didDrag;
13809
+ qh && h(R, { inDragLayer: !0 }), e.dragData.didDrag = !0;
13810
+ var Jh = {
13808
13811
  x: 0,
13809
13812
  y: 0
13810
13813
  };
13811
- if (number$1(g[0]) && number$1(g[1]) && (Gh.x += g[0], Gh.y += g[1], Wh)) {
13814
+ if (number$1(v[0]) && number$1(v[1]) && (Jh.x += v[0], Jh.y += v[1], qh)) {
13812
13815
  e.redrawHint("eles", !0);
13813
- var Kh = e.touchData.dragDelta;
13814
- Kh && number$1(Kh[0]) && number$1(Kh[1]) && (Gh.x += Kh[0], Gh.y += Kh[1]);
13816
+ var Yh = e.touchData.dragDelta;
13817
+ Yh && number$1(Yh[0]) && number$1(Yh[1]) && (Jh.x += Yh[0], Jh.y += Yh[1]);
13815
13818
  }
13816
- e.hoverData.draggingEles = !0, R.silentShift(Gh).emit(f("position")).emit(f("drag")), e.redrawHint("drag", !0), e.touchData.startPosition[0] == l[0] && e.touchData.startPosition[1] == l[1] && e.redrawHint("eles", !0), e.redraw();
13819
+ e.hoverData.draggingEles = !0, R.silentShift(Jh).emit(f("position")).emit(f("drag")), e.redrawHint("drag", !0), e.touchData.startPosition[0] == l[0] && e.touchData.startPosition[1] == l[1] && e.redrawHint("eles", !0), e.redraw();
13817
13820
  } else {
13818
- var Kh = e.touchData.dragDelta = e.touchData.dragDelta || [];
13819
- Kh.length === 0 ? (Kh.push(g[0]), Kh.push(g[1])) : (Kh[0] += g[0], Kh[1] += g[1]);
13821
+ var Yh = e.touchData.dragDelta = e.touchData.dragDelta || [];
13822
+ Yh.length === 0 ? (Yh.push(v[0]), Yh.push(v[1])) : (Yh[0] += v[0], Yh[1] += v[1]);
13820
13823
  }
13821
- if (a(Hh || L, [
13824
+ if (a(Gh || L, [
13822
13825
  "touchmove",
13823
13826
  "tapdrag",
13824
13827
  "vmousemove"
13825
13828
  ], t, {
13826
13829
  x: c[0],
13827
13830
  y: c[1]
13828
- }), (!Hh || !Hh.grabbed()) && L != Uh && (Uh && Uh.emit(f("tapdragout")), L && L.emit(f("tapdragover"))), e.touchData.last = L, n) for (var z = 0; z < c.length; z++) c[z] && e.touchData.startPosition[z] && h && (e.touchData.singleTouchMoved = !0);
13829
- if (n && (Hh == null || Hh.pannable()) && o.panningEnabled() && o.userPanningEnabled()) {
13830
- s(Hh, e.touchData.starts) && (t.preventDefault(), e.data.bgActivePosistion || (e.data.bgActivePosistion = array2point(e.touchData.startPosition)), e.swipePanning ? (o.panBy({
13831
- x: g[0] * u,
13832
- y: g[1] * u
13833
- }), o.emit(f("dragpan"))) : h && (e.swipePanning = !0, o.panBy({
13831
+ }), (!Gh || !Gh.grabbed()) && L != Kh && (Kh && Kh.emit(f("tapdragout")), L && L.emit(f("tapdragover"))), e.touchData.last = L, n) for (var z = 0; z < c.length; z++) c[z] && e.touchData.startPosition[z] && g && (e.touchData.singleTouchMoved = !0);
13832
+ if (n && (Gh == null || Gh.pannable()) && o.panningEnabled() && o.userPanningEnabled()) {
13833
+ s(Gh, e.touchData.starts) && (t.preventDefault(), e.data.bgActivePosistion || (e.data.bgActivePosistion = array2point(e.touchData.startPosition)), e.swipePanning ? (o.panBy({
13834
+ x: v[0] * u,
13835
+ y: v[1] * u
13836
+ }), o.emit(f("dragpan"))) : g && (e.swipePanning = !0, o.panBy({
13834
13837
  x: S * u,
13835
13838
  y: w * u
13836
- }), o.emit(f("dragpan")), Hh && (Hh.unactivate(), e.redrawHint("select", !0), e.touchData.start = null)));
13839
+ }), o.emit(f("dragpan")), Gh && (Gh.unactivate(), e.redrawHint("select", !0), e.touchData.start = null)));
13837
13840
  var d = e.projectIntoViewport(t.touches[0].clientX, t.touches[0].clientY);
13838
13841
  c[0] = d[0], c[1] = d[1];
13839
13842
  }
13840
13843
  }
13841
- for (var v = 0; v < c.length; v++) l[v] = c[v];
13844
+ for (var b = 0; b < c.length; b++) l[b] = c[b];
13842
13845
  n && t.touches.length > 0 && !e.hoverData.draggingEles && !e.swipePanning && e.data.bgActivePosistion != null && (e.data.bgActivePosistion = void 0, e.redrawHint("select", !0), e.redraw());
13843
13846
  }
13844
13847
  }, !1);
13845
- var Ph;
13846
- e.registerBinding(t, "touchcancel", Ph = function(t) {
13848
+ var Fh;
13849
+ e.registerBinding(t, "touchcancel", Fh = function(t) {
13847
13850
  var n = e.touchData.start;
13848
13851
  e.touchData.capture = !1, n && n.unactivate();
13849
13852
  });
13850
- var Fh, Ih, Lh, Rh;
13851
- if (e.registerBinding(t, "touchend", Fh = function(t) {
13853
+ var Ih, Lh, Rh, zh;
13854
+ if (e.registerBinding(t, "touchend", Ih = function(t) {
13852
13855
  var r = e.touchData.start;
13853
13856
  if (e.touchData.capture) t.touches.length === 0 && (e.touchData.capture = !1), t.preventDefault();
13854
13857
  else return;
@@ -13897,10 +13900,10 @@ BRp$3.registerBinding = function(e, t, n, r) {
13897
13900
  if (r?.unactivate(), t.touches[2]) e.data.bgActivePosistion = void 0, e.redrawHint("select", !0);
13898
13901
  else if (!t.touches[1] && !t.touches[0] && !t.touches[0]) {
13899
13902
  e.data.bgActivePosistion = void 0, e.redrawHint("select", !0);
13900
- var _ = e.dragData.touchDragEles;
13903
+ var v = e.dragData.touchDragEles;
13901
13904
  if (r != null) {
13902
- var v = r._private.grabbed;
13903
- b(_), e.redrawHint("drag", !0), e.redrawHint("eles", !0), v && (r.emit(f("freeon")), _.emit(f("free")), e.dragData.didDrag && (r.emit(f("dragfreeon")), _.emit(f("dragfree")))), a(r, [
13905
+ var b = r._private.grabbed;
13906
+ _(v), e.redrawHint("drag", !0), e.redrawHint("eles", !0), b && (r.emit(f("freeon")), v.emit(f("free")), e.dragData.didDrag && (r.emit(f("dragfreeon")), v.emit(f("dragfree")))), a(r, [
13904
13907
  "touchend",
13905
13908
  "tapend",
13906
13909
  "vmouseup",
@@ -13922,15 +13925,15 @@ BRp$3.registerBinding = function(e, t, n, r) {
13922
13925
  e.touchData.singleTouchMoved || (r || s.$(":selected").unselect(["tapunselect"]), a(r, ["tap", "vclick"], t, {
13923
13926
  x: l[0],
13924
13927
  y: l[1]
13925
- }), Ih = !1, t.timeStamp - Rh <= s.multiClickDebounceTime() ? (Lh && clearTimeout(Lh), Ih = !0, Rh = null, a(r, ["dbltap", "vdblclick"], t, {
13928
+ }), Lh = !1, t.timeStamp - zh <= s.multiClickDebounceTime() ? (Rh && clearTimeout(Rh), Lh = !0, zh = null, a(r, ["dbltap", "vdblclick"], t, {
13926
13929
  x: l[0],
13927
13930
  y: l[1]
13928
- })) : (Lh = setTimeout(function() {
13929
- Ih || a(r, ["onetap", "voneclick"], t, {
13931
+ })) : (Rh = setTimeout(function() {
13932
+ Lh || a(r, ["onetap", "voneclick"], t, {
13930
13933
  x: l[0],
13931
13934
  y: l[1]
13932
13935
  });
13933
- }, s.multiClickDebounceTime()), Rh = t.timeStamp)), r != null && !e.dragData.didDrag && r._private.selectable && T < e.touchTapThreshold2 && !e.pinching && (s.selectionType() === "single" ? (s.$(n).unmerge(r).unselect(["tapunselect"]), r.select(["tapselect"])) : r.selected() ? r.unselect(["tapunselect"]) : r.select(["tapselect"]), e.redrawHint("eles", !0)), e.touchData.singleTouchMoved = !0;
13936
+ }, s.multiClickDebounceTime()), zh = t.timeStamp)), r != null && !e.dragData.didDrag && r._private.selectable && T < e.touchTapThreshold2 && !e.pinching && (s.selectionType() === "single" ? (s.$(n).unmerge(r).unselect(["tapunselect"]), r.select(["tapselect"])) : r.selected() ? r.unselect(["tapunselect"]) : r.select(["tapselect"]), e.redrawHint("eles", !0)), e.touchData.singleTouchMoved = !0;
13934
13937
  }
13935
13938
  for (var E = 0; E < l.length; E++) u[E] = l[E];
13936
13939
  e.dragData.didDrag = !1, t.touches.length === 0 && (e.touchData.dragDelta = [], e.touchData.startPosition = [
@@ -13942,7 +13945,7 @@ BRp$3.registerBinding = function(e, t, n, r) {
13942
13945
  null
13943
13946
  ], e.touchData.startGPosition = null, e.touchData.didSelect = !1), t.touches.length < 2 && (t.touches.length === 1 && (e.touchData.startGPosition = [t.touches[0].clientX, t.touches[0].clientY]), e.pinching = !1, e.redrawHint("eles", !0), e.redraw());
13944
13947
  }, !1), typeof TouchEvent > "u") {
13945
- var zh = [], Bh = function(e) {
13948
+ var Bh = [], Vh = function(e) {
13946
13949
  return {
13947
13950
  clientX: e.clientX,
13948
13951
  clientY: e.clientY,
@@ -13956,38 +13959,38 @@ BRp$3.registerBinding = function(e, t, n, r) {
13956
13959
  screenY: e.screenY,
13957
13960
  target: e.target
13958
13961
  };
13959
- }, Vh = function(e) {
13962
+ }, Hh = function(e) {
13960
13963
  return {
13961
13964
  event: e,
13962
- touch: Bh(e)
13965
+ touch: Vh(e)
13963
13966
  };
13964
- }, Hh = function(e) {
13965
- zh.push(Vh(e));
13966
13967
  }, Uh = function(e) {
13967
- for (var t = 0; t < zh.length; t++) if (zh[t].event.pointerId === e.pointerId) {
13968
- zh.splice(t, 1);
13968
+ Bh.push(Hh(e));
13969
+ }, Wh = function(e) {
13970
+ for (var t = 0; t < Bh.length; t++) if (Bh[t].event.pointerId === e.pointerId) {
13971
+ Bh.splice(t, 1);
13969
13972
  return;
13970
13973
  }
13971
- }, Wh = function(e) {
13972
- var t = zh.filter(function(t) {
13974
+ }, Gh = function(e) {
13975
+ var t = Bh.filter(function(t) {
13973
13976
  return t.event.pointerId === e.pointerId;
13974
13977
  })[0];
13975
- t.event = e, t.touch = Bh(e);
13976
- }, Gh = function(e) {
13977
- e.touches = zh.map(function(e) {
13978
+ t.event = e, t.touch = Vh(e);
13979
+ }, Kh = function(e) {
13980
+ e.touches = Bh.map(function(e) {
13978
13981
  return e.touch;
13979
13982
  });
13980
- }, Kh = function(e) {
13983
+ }, qh = function(e) {
13981
13984
  return e.pointerType === "mouse" || e.pointerType === 4;
13982
13985
  };
13983
13986
  e.registerBinding(e.container, "pointerdown", function(e) {
13984
- Kh(e) || (e.preventDefault(), Hh(e), Gh(e), Mh(e));
13987
+ qh(e) || (e.preventDefault(), Uh(e), Kh(e), Nh(e));
13985
13988
  }), e.registerBinding(e.container, "pointerup", function(e) {
13986
- Kh(e) || (Uh(e), Gh(e), Fh(e));
13989
+ qh(e) || (Wh(e), Kh(e), Ih(e));
13987
13990
  }), e.registerBinding(e.container, "pointercancel", function(e) {
13988
- Kh(e) || (Uh(e), Gh(e), Ph(e));
13991
+ qh(e) || (Wh(e), Kh(e), Fh(e));
13989
13992
  }), e.registerBinding(e.container, "pointermove", function(e) {
13990
- Kh(e) || (e.preventDefault(), Wh(e), Gh(e), Nh(e));
13993
+ qh(e) || (e.preventDefault(), Gh(e), Kh(e), Ph(e));
13991
13994
  });
13992
13995
  }
13993
13996
  };
@@ -15493,10 +15496,10 @@ CRp$6.drawNode = function(e, t, n) {
15493
15496
  }, Q = t.pstyle("shape").strValue, $ = t.pstyle("shape-polygon-points").pfValue;
15494
15497
  if (h) {
15495
15498
  e.translate(f.x, f.y);
15496
- var Dh = Z(c, l, Q, $);
15497
- g = Dh.path, _ = Dh.cacheHit;
15499
+ var Ah = Z(c, l, Q, $);
15500
+ g = Ah.path, _ = Ah.cacheHit;
15498
15501
  }
15499
- var Oh = function() {
15502
+ var jh = function() {
15500
15503
  if (!_) {
15501
15504
  var n = f;
15502
15505
  h && (n = {
@@ -15505,7 +15508,7 @@ CRp$6.drawNode = function(e, t, n) {
15505
15508
  }), s.nodeShapes[s.getNodeShape(t)].draw(g || e, n.x, n.y, c, l, q, d);
15506
15509
  }
15507
15510
  h ? e.fill(g) : e.fill();
15508
- }, kh = function() {
15511
+ }, Mh = function() {
15509
15512
  for (var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : m, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, a = u.backgrounding, o = 0, c = 0; c < w.length; c++) {
15510
15513
  var l = t.cy().style().getIndexedStyle(t, "background-image-containment", "value", c);
15511
15514
  if (r && l === "over" || !r && l === "inside") {
@@ -15515,16 +15518,16 @@ CRp$6.drawNode = function(e, t, n) {
15515
15518
  C[c] && w[c].complete && !w[c].error && (o++, s.drawInscribedImage(e, w[c], t, c, n));
15516
15519
  }
15517
15520
  u.backgrounding = o !== T, a !== u.backgrounding && t.updateStyle(!1);
15518
- }, Ah = function() {
15521
+ }, Nh = function() {
15519
15522
  var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m;
15520
15523
  s.hasPie(t) && (s.drawPie(e, t, r), n && (h || s.nodeShapes[s.getNodeShape(t)].draw(e, f.x, f.y, c, l, q, d)));
15521
- }, jh = function() {
15524
+ }, Ph = function() {
15522
15525
  var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m;
15523
15526
  s.hasStripe(t) && (e.save(), h ? e.clip(d.pathCache) : (s.nodeShapes[s.getNodeShape(t)].draw(e, f.x, f.y, c, l, q, d), e.clip()), s.drawStripe(e, t, r), e.restore(), n && (h || s.nodeShapes[s.getNodeShape(t)].draw(e, f.x, f.y, c, l, q, d)));
15524
- }, Mh = function() {
15527
+ }, Fh = function() {
15525
15528
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : m, n = (k > 0 ? k : -k) * t, r = k > 0 ? 0 : 255;
15526
15529
  k !== 0 && (s.colorFillStyle(e, r, r, r, n), h ? e.fill(g) : e.fill());
15527
- }, Nh = function() {
15530
+ }, Ih = function() {
15528
15531
  if (A > 0) {
15529
15532
  if (e.lineWidth = A, e.lineCap = I, e.lineJoin = F, e.setLineDash) switch (N) {
15530
15533
  case "dotted":
@@ -15553,7 +15556,7 @@ CRp$6.drawNode = function(e, t, n) {
15553
15556
  }
15554
15557
  e.setLineDash && e.setLineDash([]);
15555
15558
  }
15556
- }, Ph = function() {
15559
+ }, Lh = function() {
15557
15560
  if (V > 0) {
15558
15561
  if (e.lineWidth = V, e.lineCap = "butt", e.setLineDash) switch (U) {
15559
15562
  case "dotted":
@@ -15619,18 +15622,18 @@ CRp$6.drawNode = function(e, t, n) {
15619
15622
  }
15620
15623
  e.setLineDash && e.setLineDash([]);
15621
15624
  }
15622
- }, Fh = function() {
15625
+ }, Rh = function() {
15623
15626
  a && s.drawNodeOverlay(e, t, f, c, l);
15624
- }, Ih = function() {
15627
+ }, zh = function() {
15625
15628
  a && s.drawNodeUnderlay(e, t, f, c, l);
15626
- }, Lh = function() {
15629
+ }, Bh = function() {
15627
15630
  s.drawElementText(e, t, null, r);
15628
15631
  };
15629
15632
  if (t.pstyle("ghost").value === "yes") {
15630
- var Rh = t.pstyle("ghost-offset-x").pfValue, zh = t.pstyle("ghost-offset-y").pfValue, Bh = t.pstyle("ghost-opacity").value, Vh = Bh * m;
15631
- e.translate(Rh, zh), X(), Ph(), J(Bh * j), Oh(), kh(Vh, !0), Y(Bh * B), Nh(), Ah(k !== 0 || A !== 0), jh(k !== 0 || A !== 0), kh(Vh, !1), Mh(Vh), e.translate(-Rh, -zh);
15633
+ var Vh = t.pstyle("ghost-offset-x").pfValue, Hh = t.pstyle("ghost-offset-y").pfValue, Uh = t.pstyle("ghost-opacity").value, Wh = Uh * m;
15634
+ e.translate(Vh, Hh), X(), Lh(), J(Uh * j), jh(), Mh(Wh, !0), Y(Uh * B), Ih(), Nh(k !== 0 || A !== 0), Ph(k !== 0 || A !== 0), Mh(Wh, !1), Fh(Wh), e.translate(-Vh, -Hh);
15632
15635
  }
15633
- h && e.translate(-f.x, -f.y), Ih(), h && e.translate(f.x, f.y), X(), Ph(), J(), Oh(), kh(m, !0), Y(), Nh(), Ah(k !== 0 || A !== 0), jh(k !== 0 || A !== 0), kh(m, !1), Mh(), h && e.translate(-f.x, -f.y), Lh(), Fh(), n && e.translate(b.x1, b.y1);
15636
+ h && e.translate(-f.x, -f.y), zh(), h && e.translate(f.x, f.y), X(), Lh(), J(), jh(), Mh(m, !0), Y(), Ih(), Nh(k !== 0 || A !== 0), Ph(k !== 0 || A !== 0), Mh(m, !1), Fh(), h && e.translate(-f.x, -f.y), Bh(), Rh(), n && e.translate(b.x1, b.y1);
15634
15637
  }
15635
15638
  };
15636
15639
  var drawNodeOverlayUnderlay = function(e) {
@@ -17084,20 +17087,20 @@ var AtlasManager = /* @__PURE__ */ function() {
17084
17087
  u[0] = l, u[1] = l, u[2] = l, u[3] = l, o === BOTTOM_ROUND_RECTANGLE && (u[0] = 0, u[2] = 0);
17085
17088
  }
17086
17089
  indexToVec4(t, this.indexBuffer.getView(s));
17087
- var d = this.renderTarget.picking ? 1 : e.pstyle(a.opacity).value, f = e.pstyle(a.color).value;
17088
- toWebGLColor(f, d, this.colorBuffer.getView(s));
17089
- var m = this.lineWidthBuffer.getView(s);
17090
- if (m[0] = 0, m[1] = 0, a.border) {
17091
- var h = e.pstyle("border-width").value;
17092
- if (h > 0) {
17093
- var g = e.pstyle("border-color").value, _ = e.pstyle("border-opacity").value;
17094
- toWebGLColor(g, _, this.borderColorBuffer.getView(s));
17090
+ var d = this.renderTarget.picking ? 1 : n === "node-body" ? e.effectiveOpacity() : 1, f = this.renderTarget.picking ? 1 : e.pstyle(a.opacity).value * d, m = e.pstyle(a.color).value;
17091
+ toWebGLColor(m, f, this.colorBuffer.getView(s));
17092
+ var h = this.lineWidthBuffer.getView(s);
17093
+ if (h[0] = 0, h[1] = 0, a.border) {
17094
+ var g = e.pstyle("border-width").value;
17095
+ if (g > 0) {
17096
+ var _ = e.pstyle("border-color").value;
17097
+ toWebGLColor(_, d * e.pstyle("border-opacity").value, this.borderColorBuffer.getView(s));
17095
17098
  var v = e.pstyle("border-position").value;
17096
- if (v === "inside") m[0] = 0, m[1] = -h;
17097
- else if (v === "outside") m[0] = h, m[1] = 0;
17099
+ if (v === "inside") h[0] = 0, h[1] = -g;
17100
+ else if (v === "outside") h[0] = g, h[1] = 0;
17098
17101
  else {
17099
- var b = h / 2;
17100
- m[0] = b, m[1] = -b;
17102
+ var b = g / 2;
17103
+ h[0] = b, h[1] = -b;
17101
17104
  }
17102
17105
  }
17103
17106
  }
@@ -18090,7 +18093,7 @@ sheetfn.instanceString = function() {
18090
18093
  }
18091
18094
  return e;
18092
18095
  };
18093
- var version = "3.33.2", cytoscape = function(e) {
18096
+ var version = "3.33.3", cytoscape = function(e) {
18094
18097
  if (e === void 0 && (e = {}), plainObject(e)) return new Core(e);
18095
18098
  if (string(e)) return extension.apply(extension, arguments);
18096
18099
  };