dorkos 0.125.2 → 0.125.3

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 (307) hide show
  1. package/dist/bin/cli.js +125 -20
  2. package/dist/browser/native/package-manifest.json +1 -1
  3. package/dist/browser/source-manifest.json +1 -1
  4. package/dist/client/assets/{AboutPage-BqGlH1pd.js → AboutPage-DSSx1Gzx.js} +1 -1
  5. package/dist/client/assets/{ActivityErrorState-C4hqCedX.js → ActivityErrorState-C-mLOmJm.js} +1 -1
  6. package/dist/client/assets/{ActivityPage-frpyizcK.js → ActivityPage-DsOjjulF.js} +1 -1
  7. package/dist/client/assets/{ActivityRow-DB9c3g1G.js → ActivityRow-ylgCMe7Y.js} +1 -1
  8. package/dist/client/assets/{AdapterIcon-CEHkdca8.js → AdapterIcon-DT5OdFbe.js} +1 -1
  9. package/dist/client/assets/{AdapterSetupWizard-DLJMkb-u.js → AdapterSetupWizard-C6jxF55P.js} +1 -1
  10. package/dist/client/assets/{AgentOptionRow-D-QjHi5k.js → AgentOptionRow-CtdBmX9G.js} +1 -1
  11. package/dist/client/assets/{AgentPicker-DoGucmqI.js → AgentPicker--wr93sVO.js} +1 -1
  12. package/dist/client/assets/{AgentRequestCard--9GA9ymH.js → AgentRequestCard-DVoE2cnk.js} +4 -4
  13. package/dist/client/assets/{AppearancePage-NHNiZrtY.js → AppearancePage-DR_g6BJO.js} +1 -1
  14. package/dist/client/assets/{ApplyToOverridesDialog-Clo55n6V.js → ApplyToOverridesDialog-BqaoB6AS.js} +1 -1
  15. package/dist/client/assets/{AttentionSignalRow-BOpClaCD.js → AttentionSignalRow-CM0TrrbJ.js} +1 -1
  16. package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-D9Tm8ual.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-DJ54CELa.js} +1 -1
  17. package/dist/client/assets/{BindingDialog-DZcTXLE8.js → BindingDialog-JAPULq7H.js} +1 -1
  18. package/dist/client/assets/{BlintzCanvas-DzjdPTlx.js → BlintzCanvas-B3-FjszN.js} +3 -3
  19. package/dist/client/assets/{CanvasCsvContent-xYUrbFeA.js → CanvasCsvContent-Cmqry1BS.js} +1 -1
  20. package/dist/client/assets/{CanvasFileContent-D6fTvMea.js → CanvasFileContent-BMkxUF1r.js} +2 -2
  21. package/dist/client/assets/{CanvasModel3dContent-DEassnBV.js → CanvasModel3dContent-DBhuNbFD.js} +2 -2
  22. package/dist/client/assets/ChannelComposer-WR3_Vvta.js +44 -0
  23. package/dist/client/assets/{ChatAppsOff-C00Nl_w6.js → ChatAppsOff-CY5_0lQH.js} +1 -1
  24. package/dist/client/assets/{CodeMirrorDiff-JYxkSqFi.js → CodeMirrorDiff-_EI44zW6.js} +1 -1
  25. package/dist/client/assets/{CodeMirrorEditor-CVXZ9B5S.js → CodeMirrorEditor-x1lTuDQH.js} +1 -1
  26. package/dist/client/assets/{CommitmentList-CcCSwcZ8.js → CommitmentList-D-CvccnF.js} +1 -1
  27. package/dist/client/assets/{CommitmentsPage-BrDbzpyR.js → CommitmentsPage-CLw1FRLv.js} +1 -1
  28. package/dist/client/assets/{ComputerResourceView-BlLvMt1I.js → ComputerResourceView-QJnXivV4.js} +1 -1
  29. package/dist/client/assets/{ComputerViewer-B8SWICbj.js → ComputerViewer-DbTGz3OL.js} +1 -1
  30. package/dist/client/assets/{ConnectionAccessLists-Bsb-t24W.js → ConnectionAccessLists-CB5UY0f0.js} +1 -1
  31. package/dist/client/assets/{ConnectionsPage-RAhWxuWU.js → ConnectionsPage-SpEJxCeF.js} +1 -1
  32. package/dist/client/assets/{ConventionPage-CNij_BXA.js → ConventionPage-C2NIZjG3.js} +1 -1
  33. package/dist/client/assets/{ExtensionPageRoute-BsGqTcyI.js → ExtensionPageRoute-Drr5uceG.js} +1 -1
  34. package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-eQVA1bL6.js → FloatingTanStackRouterDevtools-CqogiFob-kKteNmsx.js} +1 -1
  35. package/dist/client/assets/HandlePage-A1OCw0nr.js +1 -0
  36. package/dist/client/assets/{HeartbeatPage-D0tKoR6G.js → HeartbeatPage-BLGTx_57.js} +1 -1
  37. package/dist/client/assets/{KeyEntry-CSmznLcG.js → KeyEntry-DgN8iewR.js} +1 -1
  38. package/dist/client/assets/{LexicalField-gYKPjFfN.js → LexicalField-Bfj72GvX.js} +1 -1
  39. package/dist/client/assets/{ManagesPage-BF6MFrsv.js → ManagesPage-C3G1-Mep.js} +1 -1
  40. package/dist/client/assets/{Marketplace-BWDlXgwH.js → Marketplace-Dg0bIo7_.js} +2 -2
  41. package/dist/client/assets/{MarketplaceSourcesView-BhKzgkiO.js → MarketplaceSourcesView-KPw8YYXi.js} +1 -1
  42. package/dist/client/assets/{McpAppFrame-BotrzoHd.js → McpAppFrame-DjJ4EM39.js} +1 -1
  43. package/dist/client/assets/{McpSigninBody-CdeX_lYs.js → McpSigninBody-V6RSsDqe.js} +1 -1
  44. package/dist/client/assets/{Model3dViewer-KHktOpbD.js → Model3dViewer-woNPO5OC.js} +1 -1
  45. package/dist/client/assets/NamePage-Du9m4rGe.js +1 -0
  46. package/dist/client/assets/{NewDirectMessageMenu-CuvKJEDY.js → NewDirectMessageMenu-CmCOFmXQ.js} +1 -1
  47. package/dist/client/assets/{NotificationsPage-DWcgfZJD.js → NotificationsPage-kUtiVsFS.js} +1 -1
  48. package/dist/client/assets/{OpenMeshSwitch-DdJ7g4yD.js → OpenMeshSwitch-r6HJBjR6.js} +1 -1
  49. package/dist/client/assets/{OperatorIdentityForm-7FUOEWw_.js → OperatorIdentityForm-B29T-N9x.js} +1 -1
  50. package/dist/client/assets/{PermissionHistory-CgQhZrvg.js → PermissionHistory-CV8cFJr3.js} +1 -1
  51. package/dist/client/assets/{PermissionsPage-CK34y1VF.js → PermissionsPage-_PKlbWde.js} +1 -1
  52. package/dist/client/assets/{PersonalityPopover-3BA36sB0.js → PersonalityPopover-BOXTCA6E.js} +1 -1
  53. package/dist/client/assets/PhotoPage-Dx-3Lhm5.js +1 -0
  54. package/dist/client/assets/{PreviewRefusedNotice-CnqAE9sr.js → PreviewRefusedNotice-CdHja8fU.js} +1 -1
  55. package/dist/client/assets/{ProfileFields-CIbISW83.js → ProfileFields-C48alR3i.js} +1 -1
  56. package/dist/client/assets/{ProfilePanelContainer-DPDHtTbI.js → ProfilePanelContainer-BpJVbdUL.js} +1 -1
  57. package/dist/client/assets/{ProfileRolePicker-83GFtm2P.js → ProfileRolePicker-DtuSZNaw.js} +1 -1
  58. package/dist/client/assets/{PromptSuggestionChips-B9chKG4w.js → PromptSuggestionChips-DT-JdGeO.js} +1 -1
  59. package/dist/client/assets/{ReportsToPopover-DUv03JZP.js → ReportsToPopover-BP2nxz2E.js} +1 -1
  60. package/dist/client/assets/{RoomSurface-Bq6Slne3.js → RoomSurface-C_mTmn8g.js} +1 -1
  61. package/dist/client/assets/{RoomsPage-BKxzz-nN.js → RoomsPage-gDIy73MQ.js} +1 -1
  62. package/dist/client/assets/{RunsOnPopover-BIdmMhs9.js → RunsOnPopover-DhXG88Uj.js} +1 -1
  63. package/dist/client/assets/{RuntimeConnectFlow-IaRVgmqH.js → RuntimeConnectFlow-BsZsQZS9.js} +1 -1
  64. package/dist/client/assets/{RuntimeSetupDialog-Er-lzjmK.js → RuntimeSetupDialog-BSb5iK2A.js} +1 -1
  65. package/dist/client/assets/{SeenDevices-9quCcdUW.js → SeenDevices-dzzlSeB2.js} +3 -3
  66. package/dist/client/assets/{SessionsPage-CGic5VaN.js → SessionsPage-C6nmCWVM.js} +1 -1
  67. package/dist/client/assets/{SettingsDialog-BZ58IaK1.js → SettingsDialog-5aEZ-DG6.js} +3 -3
  68. package/dist/client/assets/{SkillsPage-VRYwez5T.js → SkillsPage-DSIKEsHr.js} +1 -1
  69. package/dist/client/assets/{TaskDialogWrapper-C9LMV8oe.js → TaskDialogWrapper-Cst7UxoY.js} +1 -1
  70. package/dist/client/assets/{TasksEmptyState-CagC0LAa.js → TasksEmptyState-DityFi7P.js} +1 -1
  71. package/dist/client/assets/{TasksPage-3gkHB1Pv.js → TasksPage-BZx_Ku0k.js} +1 -1
  72. package/dist/client/assets/{TeamComputerEntry-BD89Y5e6.js → TeamComputerEntry-uj1GcPP_.js} +1 -1
  73. package/dist/client/assets/{ToolsPage-Ds6LwY79.js → ToolsPage-Qm6x37SO.js} +1 -1
  74. package/dist/client/assets/{TopologyGraph-CiZ2ACcQ.js → TopologyGraph-2C3Ij6tO.js} +2 -2
  75. package/dist/client/assets/{TourHost-BISNaEzZ.js → TourHost-BsV8lcXT.js} +1 -1
  76. package/dist/client/assets/{UnlinkDialog-DTuXHNsi.js → UnlinkDialog-ClNn0nv6.js} +1 -1
  77. package/dist/client/assets/{UnreadDivider-l_VZ7ECn.js → UnreadDivider-CGKnJcx7.js} +1 -1
  78. package/dist/client/assets/{WidgetErrorCard-I8WiJv2g.js → WidgetErrorCard-oq5MKUX_.js} +3 -3
  79. package/dist/client/assets/{WorkView-_wehEEl-.js → WorkView-wVnGvWAz.js} +15 -15
  80. package/dist/client/assets/{_shell-BLcPeb8K.js → _shell-D4V8GQqV.js} +6 -6
  81. package/dist/client/assets/{_shell._home-CcRH-M-A.js → _shell._home-DoaHLKk8.js} +1 -1
  82. package/dist/client/assets/{_shell._home.activity-cR24Vr9Q.js → _shell._home.activity-BP1byb8g.js} +1 -1
  83. package/dist/client/assets/{_shell._home.index-agU2ItcI.js → _shell._home.index-BB5pgiqt.js} +2 -2
  84. package/dist/client/assets/{_shell._home.tasks-BDR9JTj3.js → _shell._home.tasks-B3w6mqyb.js} +1 -1
  85. package/dist/client/assets/{_shell._home.workspaces-B4nlcACK.js → _shell._home.workspaces-BcOiklL5.js} +1 -1
  86. package/dist/client/assets/_shell.channels-DxSDnd-3.js +10 -0
  87. package/dist/client/assets/{_shell.connections-CWQYcH58.js → _shell.connections-YKOm7ap5.js} +1 -1
  88. package/dist/client/assets/{_shell.feedback-requests-BkgHtyZr.js → _shell.feedback-requests-DC2Jw1EF.js} +1 -1
  89. package/dist/client/assets/_shell.marketplace-BUh4boaf.js +1 -0
  90. package/dist/client/assets/_shell.marketplace_.sources-CnOFcGv1.js +1 -0
  91. package/dist/client/assets/_shell.session-BUP7x_Ra.js +1 -0
  92. package/dist/client/assets/{_shell.team-CTIVEpZQ.js → _shell.team-C9QJNwaK.js} +3 -3
  93. package/dist/client/assets/{_shell.threads-ClWYrnld.js → _shell.threads-gs_o48eZ.js} +1 -1
  94. package/dist/client/assets/_shell.x._extensionId-B-X7HuaQ.js +1 -0
  95. package/dist/client/assets/_shell.x._extensionId_._-B-X7HuaQ.js +1 -0
  96. package/dist/client/assets/{abnfDiagram-WEYOIA3C-0-Mx5lSG.js → abnfDiagram-WEYOIA3C-sjxf16g2.js} +1 -1
  97. package/dist/client/assets/{access-copy-Cj31J6PU.js → access-copy-_81ChCG3.js} +1 -1
  98. package/dist/client/assets/{arc-DVmpcNHP.js → arc-B-c5OGeX.js} +1 -1
  99. package/dist/client/assets/{architectureDiagram-ZHVYKT53-BZhMXbuC.js → architectureDiagram-ZHVYKT53-CExq4B1X.js} +1 -1
  100. package/dist/client/assets/{banner-Ctq7kvQ0.js → banner-BhzLIs7u.js} +1 -1
  101. package/dist/client/assets/{blockDiagram-RJAE7QA3-Ctmof3-7.js → blockDiagram-RJAE7QA3-C1D5MR7Z.js} +1 -1
  102. package/dist/client/assets/{c4Diagram-XDPPPE54-BPglmQhG.js → c4Diagram-XDPPPE54-DMtF_wcg.js} +1 -1
  103. package/dist/client/assets/{card-DI7YtQh3.js → card-Dsy8PPN6.js} +1 -1
  104. package/dist/client/assets/channel-C6IoQ0kc.js +1 -0
  105. package/dist/client/assets/{chunk-2E7WHVMD-DIK6CHka.js → chunk-2E7WHVMD-DCmxZwyD.js} +1 -1
  106. package/dist/client/assets/{chunk-2Q5K7J3B-C3uATYd9.js → chunk-2Q5K7J3B-BXvjhtJ3.js} +1 -1
  107. package/dist/client/assets/{chunk-4EMNKR2T-Dl3iYXVl.js → chunk-4EMNKR2T-CR6qWjas.js} +1 -1
  108. package/dist/client/assets/{chunk-55XCU76K-BJF-Hcs9.js → chunk-55XCU76K-Bny7RY06.js} +1 -1
  109. package/dist/client/assets/{chunk-5VM5RSS4-Cju3BnqQ.js → chunk-5VM5RSS4-B9aD4Uib.js} +1 -1
  110. package/dist/client/assets/{chunk-JWPE2WC7-v1omZzgE.js → chunk-JWPE2WC7-D28Xa5gr.js} +1 -1
  111. package/dist/client/assets/{chunk-VQ5W62QI-2HqA3jPL.js → chunk-VQ5W62QI-CLgnUSgl.js} +1 -1
  112. package/dist/client/assets/{chunk-XXDRQBXY-RDXwFs9Z.js → chunk-XXDRQBXY-vMTRVR5A.js} +1 -1
  113. package/dist/client/assets/{chunk-ZCHMQSOR-DhQsY-OT.js → chunk-ZCHMQSOR-Ck0VFEtd.js} +2 -2
  114. package/dist/client/assets/{classDiagram-v2-4MYWR3UA-DC5N-GDk.js → classDiagram-v2-4MYWR3UA-Dh4gPh4M.js} +1 -1
  115. package/dist/client/assets/{command-DpK0GpDM.js → command-CxjTPW0z.js} +1 -1
  116. package/dist/client/assets/{cose-bilkent-JH36ORCC-BriFsb6c.js → cose-bilkent-JH36ORCC-BA-tF0x7.js} +1 -1
  117. package/dist/client/assets/{cpu-DzCUBK-1.js → cpu-SRODWAA1.js} +1 -1
  118. package/dist/client/assets/{cynefin-EF2NZ3EQ-cj34OpiI.js → cynefin-EF2NZ3EQ-B_kxrTf4.js} +1 -1
  119. package/dist/client/assets/{cynefinDiagram-WF24UDRP-DvAggKpl.js → cynefinDiagram-WF24UDRP-Be0brpVq.js} +1 -1
  120. package/dist/client/assets/{dagre-NK4GIZVX-BskSpt7C.js → dagre-NK4GIZVX-zI9I0fUC.js} +1 -1
  121. package/dist/client/assets/{diagram-CBK3MWTC-C6BZljcO.js → diagram-CBK3MWTC-jN0pUEKR.js} +1 -1
  122. package/dist/client/assets/{diagram-I5XIIV2D--4FPRmBZ.js → diagram-I5XIIV2D-BjRZmmQf.js} +1 -1
  123. package/dist/client/assets/{diagram-ODIL2UCW-kZxp81Fr.js → diagram-ODIL2UCW-BtnkiX3a.js} +1 -1
  124. package/dist/client/assets/{diagram-PFBEJUXE-BSXBAffS.js → diagram-PFBEJUXE-Bteh9wpL.js} +1 -1
  125. package/dist/client/assets/{diagram-RJA3I4VV-DLDPF6FG.js → diagram-RJA3I4VV-hRmqKbOC.js} +1 -1
  126. package/dist/client/assets/{diagram-TYUNFSNR-CoU2knZy.js → diagram-TYUNFSNR-NKdthGes.js} +1 -1
  127. package/dist/client/assets/{ebnfDiagram-V4P3TTPT-C77T1UPB.js → ebnfDiagram-V4P3TTPT-CpkD13ID.js} +1 -1
  128. package/dist/client/assets/{elk-QONTBCTQ-UFXrlbAn.js → elk-QONTBCTQ-Dw4bdkn4.js} +1 -1
  129. package/dist/client/assets/{empty-state-aNwJA6H8.js → empty-state-Xw8KQdod.js} +1 -1
  130. package/dist/client/assets/{erDiagram-KYQIGQAA-CyLB8fKu.js → erDiagram-KYQIGQAA-fiThyiH_.js} +1 -1
  131. package/dist/client/assets/{execution-config-D7JzMYC2.js → execution-config-ryHuiBdx.js} +1 -1
  132. package/dist/client/assets/{file-bSD5jgk_.js → file-CbZILJJL.js} +1 -1
  133. package/dist/client/assets/{file-exclamation-point-BcCIL-rE.js → file-exclamation-point-rCHuN_aY.js} +1 -1
  134. package/dist/client/assets/{file-text-DTvj1wzM.js → file-text-DGtefNvG.js} +1 -1
  135. package/dist/client/assets/{find-latest-widget-fence-D01ENK2h.js → find-latest-widget-fence-DJDfJAaN.js} +1 -1
  136. package/dist/client/assets/{flowDiagram-IUGLLWBU-qmnUF-Ak.js → flowDiagram-IUGLLWBU-ORyRd0wW.js} +1 -1
  137. package/dist/client/assets/{form-C_yPntkz.js → form-USBlP2n_.js} +1 -1
  138. package/dist/client/assets/{format-cron-DUPWkOrW.js → format-cron-u8efK62G.js} +1 -1
  139. package/dist/client/assets/{ganttDiagram-R7GPNTJY-CBzoqGuU.js → ganttDiagram-R7GPNTJY-BC-M9_Wi.js} +1 -1
  140. package/dist/client/assets/{git-branch-ClXAt1_G.js → git-branch-jQqbJAvp.js} +1 -1
  141. package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-DMh_n1S2.js → gitGraphDiagram-PDYL7XHY-NIdjLN38.js} +1 -1
  142. package/dist/client/assets/{graph-BgkuepqW.js → graph-CBIOKOiw.js} +1 -1
  143. package/dist/client/assets/{heart-BrjEmIsl.js → heart-CSbB9K4Q.js} +1 -1
  144. package/dist/client/assets/{highlighted-body-KPVGNVTW-DlHNVEaV.js → highlighted-body-KPVGNVTW-OC8sqXXy.js} +1 -1
  145. package/dist/client/assets/{image-lightbox-BtzkRztd.js → image-lightbox-DgWS2xlv.js} +1 -1
  146. package/dist/client/assets/{image-off-4yaoLh32.js → image-off-DziiNcIl.js} +1 -1
  147. package/dist/client/assets/{index-CMLDdOez.js → index-B-KhOLHd.js} +1 -1
  148. package/dist/client/assets/{index-DQ9ppIWv.js → index-B5eM1_q1.js} +1 -1
  149. package/dist/client/assets/{index-A_qzw4D8.js → index-B9utW3HE.js} +1 -1
  150. package/dist/client/assets/{index-BUkUamu4.js → index-BAaqQW-m.js} +1 -1
  151. package/dist/client/assets/index-BGGnQdij.js +17 -0
  152. package/dist/client/assets/{index-BeVLPg9t.js → index-BN02EVKP.js} +1 -1
  153. package/dist/client/assets/{index-DrnHzrt4.js → index-BOaou3k5.js} +1 -1
  154. package/dist/client/assets/{index-B-X82FND.js → index-BU_bmsP2.js} +1 -1
  155. package/dist/client/assets/{index-C_H6ZIel.js → index-BYxDsLTQ.js} +1 -1
  156. package/dist/client/assets/index-BpsATTKn.js +1 -0
  157. package/dist/client/assets/{index-CyfSPJ1D.js → index-Bz9CgPjs.js} +1 -1
  158. package/dist/client/assets/{index-CNiC7KUz.js → index-C49AWTah.js} +1 -1
  159. package/dist/client/assets/{index-BtG4vr8c.js → index-C5gtuueN.js} +1 -1
  160. package/dist/client/assets/{index-FhmSwVD0.js → index-C9UgTEuh.js} +1 -1
  161. package/dist/client/assets/{index-WkQdt6Zo.js → index-CCohVfmo.js} +1 -1
  162. package/dist/client/assets/{index-6yT0Qr0s.js → index-CDslENFz.js} +1 -1
  163. package/dist/client/assets/{index-f1W4Bd4W.js → index-CP7hD01s.js} +1 -1
  164. package/dist/client/assets/{index-C0LPB1iH.js → index-CRPh-508.js} +1 -1
  165. package/dist/client/assets/{index-qdygDruh.js → index-CRTzTiNF.js} +1 -1
  166. package/dist/client/assets/index-CUKvspHB.js +1 -0
  167. package/dist/client/assets/{index-CNV11SW6.js → index-CWhDGAYM.js} +1 -1
  168. package/dist/client/assets/{index-DXalAOXT.js → index-CeJVF9AD.js} +1 -1
  169. package/dist/client/assets/{index-DgxXSEmR.js → index-CiAb-mD4.js} +1 -1
  170. package/dist/client/assets/{index-DX546SK5.js → index-CuT_aCM-.js} +2 -2
  171. package/dist/client/assets/{index-DZ1BC5JW.js → index-D9Ej8fsx.js} +1 -1
  172. package/dist/client/assets/{index-WxG6nG96.js → index-DJlq_kd_.js} +1 -1
  173. package/dist/client/assets/{index-DGdKO24t.js → index-DJyLZL6w.js} +1 -1
  174. package/dist/client/assets/index-DSYz85aL.js +1053 -0
  175. package/dist/client/assets/{index-Dj4I8KcL.js → index-DYF1ER90.js} +3 -3
  176. package/dist/client/assets/{index-Ckut3u-d.js → index-DeDh_2c1.js} +1 -1
  177. package/dist/client/assets/{index-CSyZb1X9.js → index-DfYJ-zxk.js} +1 -1
  178. package/dist/client/assets/{index-C_xSr5lb.js → index-DgnJZ7RZ.js} +1 -1
  179. package/dist/client/assets/{index-BqHUbNdh.js → index-Dk33a8Wz.js} +1 -1
  180. package/dist/client/assets/{index-CJhmUsIv.js → index-DkcRrH0O.js} +1 -1
  181. package/dist/client/assets/{index-Bgg4cW4L.js → index-DnyoNFRt.js} +1 -1
  182. package/dist/client/assets/index-DtlBeLQB.css +1 -0
  183. package/dist/client/assets/{index-BXtagrMY.js → index-LFeqJL-v.js} +1 -1
  184. package/dist/client/assets/{index-t-NyR7HD.js → index-RXFhiamo.js} +1 -1
  185. package/dist/client/assets/{index-D0yajRDv.js → index-Yr72qWri.js} +1 -1
  186. package/dist/client/assets/{index-CThGpHO2.js → index-YtJ82pkp.js} +1 -1
  187. package/dist/client/assets/{index-CrQWuUpr.js → index-fAHI5hei.js} +1 -1
  188. package/dist/client/assets/{index-DFWrO42z.js → index-j5szQcqb.js} +1 -1
  189. package/dist/client/assets/{index-DB2t3GUm.js → index-jJbbnV9q.js} +3 -3
  190. package/dist/client/assets/{index-Cefoks17.js → index-n6f9pLtt.js} +1 -1
  191. package/dist/client/assets/{index-Adjbt_HC.js → index-w4wyJU8q.js} +1 -1
  192. package/dist/client/assets/{index.esm-Bb3LMu5X.js → index.esm-Dyd3JXuK.js} +1 -1
  193. package/dist/client/assets/{infoDiagram-MVDRKAX5-DbU4eDjZ.js → infoDiagram-MVDRKAX5-CPcm-36U.js} +1 -1
  194. package/dist/client/assets/{inline-code-DwFNff3_.js → inline-code-BjkmgK0M.js} +1 -1
  195. package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-DmHmF-HT.js → ishikawaDiagram-HPEHV2GE-B8eVNEDQ.js} +1 -1
  196. package/dist/client/assets/{journeyDiagram-BOSHW7O7-DsjOeP3J.js → journeyDiagram-BOSHW7O7-CGkIGaMV.js} +1 -1
  197. package/dist/client/assets/{kanban-definition-FNSA4HC5-ByQ1WGy2.js → kanban-definition-FNSA4HC5-BTDbT6UJ.js} +1 -1
  198. package/dist/client/assets/{layers-DFZUUHM5.js → layers-DyShcAgn.js} +1 -1
  199. package/dist/client/assets/{lightbulb-Bbgsejp1.js → lightbulb-QljDqLq7.js} +1 -1
  200. package/dist/client/assets/{link-2-xieOmwOK.js → link-2-7SoeCkEs.js} +1 -1
  201. package/dist/client/assets/{list-runtime-types-B0CSonAi.js → list-runtime-types-DvfLx6v2.js} +1 -1
  202. package/dist/client/assets/{markdown-content-ysBIqFAg.js → markdown-content-D7t62wwm.js} +1 -1
  203. package/dist/client/assets/{mention-pill-Daeu1X92.js → mention-pill-DNQ2ICCW.js} +1 -1
  204. package/dist/client/assets/{mermaid.core-B1mQMOXd.js → mermaid.core-NAyHAvFm.js} +4 -4
  205. package/dist/client/assets/{message-square-off-D9hm8WNH.js → message-square-off-D6K1M95g.js} +1 -1
  206. package/dist/client/assets/{mindmap-definition-6OY57UG3-CoP-DGm1.js → mindmap-definition-6OY57UG3-26dEepZx.js} +1 -1
  207. package/dist/client/assets/{more-details-DHCpYDi7.js → more-details-BJ_2FYn8.js} +1 -1
  208. package/dist/client/assets/{owner-notice-Crxco7HN.js → owner-notice-CIfb2Yr7.js} +1 -1
  209. package/dist/client/assets/{package-CD8xq7hk.js → package-CeRLwc1u.js} +1 -1
  210. package/dist/client/assets/{page-container-B9sDc2wq.js → page-container-D2J6eon9.js} +1 -1
  211. package/dist/client/assets/{pane-resize-handle-DOchpdJ6.js → pane-resize-handle-CXxva43c.js} +1 -1
  212. package/dist/client/assets/{paperclip-CzhXW5qi.js → paperclip-DFuuQSWM.js} +1 -1
  213. package/dist/client/assets/{path-input-Z2p922fj.js → path-input-DhGxbEsh.js} +1 -1
  214. package/dist/client/assets/{pegDiagram-ECIUJNBX-TEsMAO1a.js → pegDiagram-ECIUJNBX-BJu6g9eg.js} +1 -1
  215. package/dist/client/assets/{pieDiagram-GNMPY74T-CMIDIiMP.js → pieDiagram-GNMPY74T-CMf8TQF7.js} +1 -1
  216. package/dist/client/assets/{plug-BEp9Ly3k.js → plug-Bqwk5g66.js} +1 -1
  217. package/dist/client/assets/{primer-trigger-4qUY83SX.js → primer-trigger-NAz78FSN.js} +1 -1
  218. package/dist/client/assets/{profile-errors-CezsKqhA.js → profile-errors--0_JG2R0.js} +1 -1
  219. package/dist/client/assets/{progress-eQl1UvNz.js → progress-cQRXQehb.js} +1 -1
  220. package/dist/client/assets/{quadrantDiagram-D57K4MC3-DXjohzOz.js → quadrantDiagram-D57K4MC3-Bb92PcA9.js} +1 -1
  221. package/dist/client/assets/{query-error-state-COuKRlU0.js → query-error-state-C2QLFCgp.js} +1 -1
  222. package/dist/client/assets/{radio-Cdnkcg1w.js → radio-CBD2fSSB.js} +1 -1
  223. package/dist/client/assets/{railroadDiagram-Y72NRBL7-BojgH6Hw.js → railroadDiagram-Y72NRBL7-YN2siyto.js} +1 -1
  224. package/dist/client/assets/registry-CsiY3fnM.js +1 -0
  225. package/dist/client/assets/{relay-trace-schemas-XcVQg5Fa.js → relay-trace-schemas-yWn__06J.js} +1 -1
  226. package/dist/client/assets/{repeat-wB31CP7I.js → repeat-CtIEyxm4.js} +1 -1
  227. package/dist/client/assets/{requirementDiagram-EQYSW5RA-Gojbrcvg.js → requirementDiagram-EQYSW5RA-DJBQviv-.js} +1 -1
  228. package/dist/client/assets/{room-files-source-DXKpm43a.js → room-files-source-nnbGMKus.js} +1 -1
  229. package/dist/client/assets/{rotate-ccw-clock-LSKKAcnR.js → rotate-ccw-clock-C2jXtg-P.js} +1 -1
  230. package/dist/client/assets/{rotate-cw-scTEKxeZ.js → rotate-cw-34X3Kx8Z.js} +1 -1
  231. package/dist/client/assets/{sankeyDiagram-SY24JHO5-QS71aycL.js → sankeyDiagram-SY24JHO5-DH2qnwVI.js} +1 -1
  232. package/dist/client/assets/{scroll-area-BNFXgTKM.js → scroll-area-DYTbXWMY.js} +1 -1
  233. package/dist/client/assets/{search-x-Cjf0n9z7.js → search-x-DeFOvp_5.js} +1 -1
  234. package/dist/client/assets/{sequenceDiagram-BLEHNHQU-Beg7mj69.js → sequenceDiagram-BLEHNHQU-CkHcuOw2.js} +1 -1
  235. package/dist/client/assets/{shield-x-Dr4BZfo_.js → shield-x-bloGLifl.js} +1 -1
  236. package/dist/client/assets/{signed-in-L9MLqTuc.js → signed-in-DD2qV0PJ.js} +1 -1
  237. package/dist/client/assets/{sizeCapture-INFHLROL-3Oo1KjRp.js → sizeCapture-INFHLROL-BXK-Cxjs.js} +1 -1
  238. package/dist/client/assets/{soul-file-CxpOawh5.js → soul-file-DFPctfHR.js} +1 -1
  239. package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-DFYIDQ6C.js → stateDiagram-v2-A6IESKWZ-DP_cqXJO.js} +1 -1
  240. package/dist/client/assets/{swimlanes-B3ENRKFQ-BUgKOOrv.js → swimlanes-B3ENRKFQ-BZxkK7Fr.js} +1 -1
  241. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-DXRZtHKX.js +8 -0
  242. package/dist/client/assets/{table-B0LsKsEv.js → table-B8zvHC0J.js} +1 -1
  243. package/dist/client/assets/{timeline-definition-JXYKGLGB-BsPZ0P_8.js → timeline-definition-JXYKGLGB-BPZ64ADa.js} +1 -1
  244. package/dist/client/assets/{trust-posture-Cm7OhCEx.js → trust-posture-C9r0jGhc.js} +1 -1
  245. package/dist/client/assets/{unplug-DLA7Ib_s.js → unplug-DYZEcvkR.js} +1 -1
  246. package/dist/client/assets/{unverified-catalog-notice-CxBO_pta.js → unverified-catalog-notice-DAhwNpy_.js} +1 -1
  247. package/dist/client/assets/{use-adapter-catalog-C333Z2Q6.js → use-adapter-catalog-DrDMqxhZ.js} +1 -1
  248. package/dist/client/assets/{use-bindings-Bu4yLLR5.js → use-bindings-Ci7hpEO4.js} +1 -1
  249. package/dist/client/assets/{use-composer-prefs-BnjCX9pM.js → use-composer-prefs-FpUdi_wE.js} +1 -1
  250. package/dist/client/assets/{use-connector-management-Bo6wOJQS.js → use-connector-management-CinfkPZI.js} +1 -1
  251. package/dist/client/assets/{use-deep-link-scroll-D867V6rs.js → use-deep-link-scroll-DZnA4iYZ.js} +1 -1
  252. package/dist/client/assets/{use-delete-binding-DKObM-zT.js → use-delete-binding-DDtaCc3v.js} +1 -1
  253. package/dist/client/assets/{use-dev-links-C0Zc30aj.js → use-dev-links-CtHwhTBj.js} +1 -1
  254. package/dist/client/assets/{use-direct-message-panel-DNWtQq4B.js → use-direct-message-panel-Da9rkfA3.js} +1 -1
  255. package/dist/client/assets/{use-external-adapter-catalog-Bv5rDkX4.js → use-external-adapter-catalog-CikM-LiV.js} +1 -1
  256. package/dist/client/assets/{use-full-activity-feed-CFUj0qCS.js → use-full-activity-feed-B6TQc-xB.js} +1 -1
  257. package/dist/client/assets/use-is-below-desktop-DJQVU5CF.js +1 -0
  258. package/dist/client/assets/{use-local-browser-BeZjn0gA.js → use-local-browser-ABoWOGv1.js} +1 -1
  259. package/dist/client/assets/{use-mesh-topology-DurMpvjU.js → use-mesh-topology-C5njB0KY.js} +1 -1
  260. package/dist/client/assets/{use-mounted-ref-CBSuPNPv.js → use-mounted-ref-Bp9Wp7zY.js} +1 -1
  261. package/dist/client/assets/{use-notification-prefs-b8iKvzB4.js → use-notification-prefs-DXww4pVV.js} +1 -1
  262. package/dist/client/assets/{use-panel-tab-placements-BcKEux1G.js → use-panel-tab-placements-DLQeHI7w.js} +1 -1
  263. package/dist/client/assets/use-pending-read-CgR0BnSW.js +1 -0
  264. package/dist/client/assets/{use-personality-commit-u3kQ6h3H.js → use-personality-commit-DYQ3KVxd.js} +1 -1
  265. package/dist/client/assets/{use-promo-activation-C8_cGmEW.js → use-promo-activation-nURLgFxH.js} +1 -1
  266. package/dist/client/assets/{use-promo-dismissals-B3VuaQCf.js → use-promo-dismissals-BQkeHMCS.js} +1 -1
  267. package/dist/client/assets/{use-pulse-freshness-CSWQ0TZS.js → use-pulse-freshness-B8VeNnHj.js} +1 -1
  268. package/dist/client/assets/{use-relay-config-BA6c0FMB.js → use-relay-config-D0BknsXK.js} +1 -1
  269. package/dist/client/assets/{use-room-follow-claim-BV-MtDQ5.js → use-room-follow-claim-BruRRf3z.js} +1 -1
  270. package/dist/client/assets/{use-room-sessions-W62Zl72O.js → use-room-sessions-DGcrmZvE.js} +1 -1
  271. package/dist/client/assets/{use-roving-tab-list-CMITzUHu.js → use-roving-tab-list-YQ4MgIBO.js} +1 -1
  272. package/dist/client/assets/{use-session-canvas-u63m2mYH.js → use-session-canvas-BaGypLR6.js} +3 -3
  273. package/dist/client/assets/{use-status-budget-CbmPFvpQ.js → use-status-budget-Q1ltHI80.js} +4 -4
  274. package/dist/client/assets/{use-unclaimed-chats-D7SEUfiO.js → use-unclaimed-chats-Bext8Aim.js} +1 -1
  275. package/dist/client/assets/use-update-config-BJEw2LjV.js +1 -0
  276. package/dist/client/assets/{useMutationState-rOg4bnKv.js → useMutationState-C3WVn0hu.js} +1 -1
  277. package/dist/client/assets/{usecaseDiagram-WPOLBNNX-C-w0e-nv.js → usecaseDiagram-WPOLBNNX-Dg4P8nSr.js} +1 -1
  278. package/dist/client/assets/{vennDiagram-Q3Y3IDCW-BNm2WXT5.js → vennDiagram-Q3Y3IDCW-B8Txoqsz.js} +1 -1
  279. package/dist/client/assets/{wardleyDiagram-IVAIDKWA-BFyFLiir.js → wardleyDiagram-IVAIDKWA-lgQBspKc.js} +1 -1
  280. package/dist/client/assets/{xychartDiagram-4URNHDU4-BKxZlnEx.js → xychartDiagram-4URNHDU4-Ct9-Lgo9.js} +1 -1
  281. package/dist/client/index.html +2 -2
  282. package/dist/server/extension-child.cjs +1701 -435
  283. package/dist/server/index.js +23150 -21706
  284. package/dist/server/index.js.map +2 -2
  285. package/package.json +4 -4
  286. package/dist/client/assets/ChannelComposer-CutghXOq.js +0 -44
  287. package/dist/client/assets/HandlePage-XG5mP_e9.js +0 -1
  288. package/dist/client/assets/NamePage-Cdd9-mZg.js +0 -1
  289. package/dist/client/assets/PhotoPage-DFic-gDH.js +0 -1
  290. package/dist/client/assets/_shell.channels-B7lTxkqM.js +0 -10
  291. package/dist/client/assets/_shell.marketplace-BMqwT9qX.js +0 -1
  292. package/dist/client/assets/_shell.marketplace_.sources-pXGa7Cqb.js +0 -1
  293. package/dist/client/assets/_shell.session-CmoE1W38.js +0 -1
  294. package/dist/client/assets/_shell.x._extensionId-BiXilrSW.js +0 -1
  295. package/dist/client/assets/_shell.x._extensionId_._-BiXilrSW.js +0 -1
  296. package/dist/client/assets/channel-A2WD4smw.js +0 -1
  297. package/dist/client/assets/index-BMCDckcY.js +0 -17
  298. package/dist/client/assets/index-BOuCpkRb.js +0 -1
  299. package/dist/client/assets/index-BVq1p60h.js +0 -1
  300. package/dist/client/assets/index-CjUfPyOM.js +0 -1053
  301. package/dist/client/assets/index-D2ZFfqZZ.css +0 -1
  302. package/dist/client/assets/registry-BSucT23N.js +0 -1
  303. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-Bqjv1MSj.js +0 -8
  304. package/dist/client/assets/use-is-below-desktop-BUS7OPGv.js +0 -1
  305. package/dist/client/assets/use-is-hub-CFhvDMHt.js +0 -1
  306. package/dist/client/assets/use-pending-read-BBBAnUYu.js +0 -1
  307. package/dist/client/assets/use-update-config-Dfd7KMde.js +0 -1
@@ -1,4 +1,4 @@
1
- import{mz as HFn,R as qFn,r as cn,j as le,ez as Nhn,ji as zFn,k5 as UFn,ib as XFn,mA as KFn,ar as fN,by as Tge,B as Sge,aj as Dhn,G as i2,aS as Ige,b9 as Pge,b8 as WFn,_ as oN,f as VFn,iP as QFn,X as YFn,bx as ZFn,mB as eBn,eS as $ln,eR as nBn,ai as tBn,eP as Fln,ap as iBn,mC as rBn,ad as cBn,aw as uBn,ii as oBn,bX as AX,ff as sBn,x as Bln,ig as fBn,hM as lBn,fX as hBn,fY as aBn,fZ as dBn,f_ as bBn,f$ as wBn,g0 as gBn,g1 as pBn,g2 as mBn,ht as vBn}from"./index-CjUfPyOM.js";import{s as B0,g as Lhn,j as Oge,T as fge,k as lge,t as yBn}from"./transform-BqqRT-Iy.js";import{i as hge}from"./value-wA6veExk.js";import{H as $X}from"./_shell.team-CTIVEpZQ.js";import{H as kBn}from"./heart-BrjEmIsl.js";import{a as age,A as jBn}from"./AdapterIcon-CEHkdca8.js";import"./relay-trace-schemas-XcVQg5Fa.js";import{d as EBn,c as ABn,a as MBn,B as CBn}from"./BindingDialog-DZcTXLE8.js";import{s as xBn}from"./session-strategy-labels-C7Wduch3.js";import{c as MX}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{u as TBn}from"./use-mesh-topology-DurMpvjU.js";import{E as SBn}from"./empty-state-aNwJA6H8.js";import{Q as Rln}from"./query-error-state-COuKRlU0.js";import{u as IBn}from"./use-bindings-Bu4yLLR5.js";import{u as PBn}from"./use-delete-binding-DKObM-zT.js";import{u as OBn}from"./use-relay-config-BA6c0FMB.js";import"./use-pending-read-BBBAnUYu.js";import"./search-x-Cjf0n9z7.js";import"./scroll-area-BNFXgTKM.js";import"./OpenMeshSwitch-DdJ7g4yD.js";import"./table-B0LsKsEv.js";import"./use-is-hub-CFhvDMHt.js";import"./page-container-B9sDc2wq.js";import"./profile-errors-CezsKqhA.js";import"./CommitmentList-CcCSwcZ8.js";import"./TeamComputerEntry-BD89Y5e6.js";import"./ComputerViewer-B8SWICbj.js";import"./form-C_yPntkz.js";import"./use-adapter-catalog-C333Z2Q6.js";import"./trust-posture-Cm7OhCEx.js";function Xf(p){if(typeof p=="string"||typeof p=="number")return""+p;let E="";if(Array.isArray(p))for(let P=0,N;P<p.length;P++)(N=Xf(p[P]))!==""&&(E+=(E&&" ")+N);else for(let P in p)p[P]&&(E+=(E&&" ")+P);return E}function NBn(p){let E;for(;E=p.sourceEvent;)p=E;return p}function e2(p,E){if(p=NBn(p),E===void 0&&(E=p.currentTarget),E){var P=E.ownerSVGElement||E;if(P.createSVGPoint){var N=P.createSVGPoint();return N.x=p.clientX,N.y=p.clientY,N=N.matrixTransform(E.getScreenCTM().inverse()),[N.x,N.y]}if(E.getBoundingClientRect){var D=E.getBoundingClientRect();return[p.clientX-D.left-E.clientLeft,p.clientY-D.top-E.clientTop]}}return[p.pageX,p.pageY]}const DBn={passive:!1},lN={capture:!0,passive:!1};function dge(p){p.stopImmediatePropagation()}function IA(p){p.preventDefault(),p.stopImmediatePropagation()}function $hn(p){var E=p.document.documentElement,P=B0(p).on("dragstart.drag",IA,lN);"onselectstart"in E?P.on("selectstart.drag",IA,lN):(E.__noselect=E.style.MozUserSelect,E.style.MozUserSelect="none")}function Fhn(p,E){var P=p.document.documentElement,N=B0(p).on("dragstart.drag",null);E&&(N.on("click.drag",IA,lN),setTimeout(function(){N.on("click.drag",null)},0)),"onselectstart"in P?N.on("selectstart.drag",null):(P.style.MozUserSelect=P.__noselect,delete P.__noselect)}const CX=p=>()=>p;function kge(p,{sourceEvent:E,subject:P,target:N,identifier:D,active:$,x:v,y:q,dx:te,dy:ie,dispatch:pe}){Object.defineProperties(this,{type:{value:p,enumerable:!0,configurable:!0},sourceEvent:{value:E,enumerable:!0,configurable:!0},subject:{value:P,enumerable:!0,configurable:!0},target:{value:N,enumerable:!0,configurable:!0},identifier:{value:D,enumerable:!0,configurable:!0},active:{value:$,enumerable:!0,configurable:!0},x:{value:v,enumerable:!0,configurable:!0},y:{value:q,enumerable:!0,configurable:!0},dx:{value:te,enumerable:!0,configurable:!0},dy:{value:ie,enumerable:!0,configurable:!0},_:{value:pe}})}kge.prototype.on=function(){var p=this._.on.apply(this._,arguments);return p===this._?this:p};function LBn(p){return!p.ctrlKey&&!p.button}function $Bn(){return this.parentNode}function FBn(p,E){return E??{x:p.x,y:p.y}}function BBn(){return navigator.maxTouchPoints||"ontouchstart"in this}function Bhn(){var p=LBn,E=$Bn,P=FBn,N=BBn,D={},$=Lhn("start","drag","end"),v=0,q,te,ie,pe,oe=0;function z(Ce){Ce.on("mousedown.drag",ne).filter(N).on("touchstart.drag",Ee).on("touchmove.drag",re,DBn).on("touchend.drag touchcancel.drag",we).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function ne(Ce,Qe){if(!(pe||!p.call(this,Ce,Qe))){var Xe=ee(this,E.call(this,Ce,Qe),Ce,Qe,"mouse");Xe&&(B0(Ce.view).on("mousemove.drag",Z,lN).on("mouseup.drag",U,lN),$hn(Ce.view),dge(Ce),ie=!1,q=Ce.clientX,te=Ce.clientY,Xe("start",Ce))}}function Z(Ce){if(IA(Ce),!ie){var Qe=Ce.clientX-q,Xe=Ce.clientY-te;ie=Qe*Qe+Xe*Xe>oe}D.mouse("drag",Ce)}function U(Ce){B0(Ce.view).on("mousemove.drag mouseup.drag",null),Fhn(Ce.view,ie),IA(Ce),D.mouse("end",Ce)}function Ee(Ce,Qe){if(p.call(this,Ce,Qe)){var Xe=Ce.changedTouches,Ze=E.call(this,Ce,Qe),vn=Xe.length,jn,et;for(jn=0;jn<vn;++jn)(et=ee(this,Ze,Ce,Qe,Xe[jn].identifier,Xe[jn]))&&(dge(Ce),et("start",Ce,Xe[jn]))}}function re(Ce){var Qe=Ce.changedTouches,Xe=Qe.length,Ze,vn;for(Ze=0;Ze<Xe;++Ze)(vn=D[Qe[Ze].identifier])&&(IA(Ce),vn("drag",Ce,Qe[Ze]))}function we(Ce){var Qe=Ce.changedTouches,Xe=Qe.length,Ze,vn;for(pe&&clearTimeout(pe),pe=setTimeout(function(){pe=null},500),Ze=0;Ze<Xe;++Ze)(vn=D[Qe[Ze].identifier])&&(dge(Ce),vn("end",Ce,Qe[Ze]))}function ee(Ce,Qe,Xe,Ze,vn,jn){var et=$.copy(),Dn=e2(jn||Xe,Qe),Kn,_,je;if((je=P.call(Ce,new kge("beforestart",{sourceEvent:Xe,target:z,identifier:vn,active:v,x:Dn[0],y:Dn[1],dx:0,dy:0,dispatch:et}),Ze))!=null)return Kn=je.x-Dn[0]||0,_=je.y-Dn[1]||0,function rn(sn,Sn,Bn){var dn=Dn,Jn;switch(sn){case"start":D[vn]=rn,Jn=v++;break;case"end":delete D[vn],--v;case"drag":Dn=e2(Bn||Sn,Qe),Jn=v;break}et.call(sn,Ce,new kge(sn,{sourceEvent:Sn,subject:je,target:z,identifier:vn,active:Jn,x:Dn[0]+Kn,y:Dn[1]+_,dx:Dn[0]-dn[0],dy:Dn[1]-dn[1],dispatch:et}),Ze)}}return z.filter=function(Ce){return arguments.length?(p=typeof Ce=="function"?Ce:CX(!!Ce),z):p},z.container=function(Ce){return arguments.length?(E=typeof Ce=="function"?Ce:CX(Ce),z):E},z.subject=function(Ce){return arguments.length?(P=typeof Ce=="function"?Ce:CX(Ce),z):P},z.touchable=function(Ce){return arguments.length?(N=typeof Ce=="function"?Ce:CX(!!Ce),z):N},z.on=function(){var Ce=$.on.apply($,arguments);return Ce===$?z:Ce},z.clickDistance=function(Ce){return arguments.length?(oe=(Ce=+Ce)*Ce,z):Math.sqrt(oe)},z}var RBn=1e-12;function _ln(p){return((p=Math.exp(p))+1/p)/2}function _Bn(p){return((p=Math.exp(p))-1/p)/2}function JBn(p){return((p=Math.exp(2*p))-1)/(p+1)}const NX=(function p(E,P,N){function D($,v){var q=$[0],te=$[1],ie=$[2],pe=v[0],oe=v[1],z=v[2],ne=pe-q,Z=oe-te,U=ne*ne+Z*Z,Ee,re;if(U<RBn)re=Math.log(z/ie)/E,Ee=function(Ze){return[q+Ze*ne,te+Ze*Z,ie*Math.exp(E*Ze*re)]};else{var we=Math.sqrt(U),ee=(z*z-ie*ie+N*U)/(2*ie*P*we),Ce=(z*z-ie*ie-N*U)/(2*z*P*we),Qe=Math.log(Math.sqrt(ee*ee+1)-ee),Xe=Math.log(Math.sqrt(Ce*Ce+1)-Ce);re=(Xe-Qe)/E,Ee=function(Ze){var vn=Ze*re,jn=_ln(Qe),et=ie/(P*we)*(jn*JBn(E*vn+Qe)-_Bn(Qe));return[q+et*ne,te+et*Z,ie*jn/_ln(E*vn+Qe)]}}return Ee.duration=re*1e3*E/Math.SQRT2,Ee}return D.rho=function($){var v=Math.max(.001,+$),q=v*v,te=q*q;return p(v,q,te)},D})(Math.SQRT2,2,4),xX=p=>()=>p;function GBn(p,{sourceEvent:E,target:P,transform:N,dispatch:D}){Object.defineProperties(this,{type:{value:p,enumerable:!0,configurable:!0},sourceEvent:{value:E,enumerable:!0,configurable:!0},target:{value:P,enumerable:!0,configurable:!0},transform:{value:N,enumerable:!0,configurable:!0},_:{value:D}})}function bge(p){p.stopImmediatePropagation()}function uN(p){p.preventDefault(),p.stopImmediatePropagation()}function HBn(p){return(!p.ctrlKey||p.type==="wheel")&&!p.button}function qBn(){var p=this;return p instanceof SVGElement?(p=p.ownerSVGElement||p,p.hasAttribute("viewBox")?(p=p.viewBox.baseVal,[[p.x,p.y],[p.x+p.width,p.y+p.height]]):[[0,0],[p.width.baseVal.value,p.height.baseVal.value]]):[[0,0],[p.clientWidth,p.clientHeight]]}function Jln(){return this.__zoom||Oge}function zBn(p){return-p.deltaY*(p.deltaMode===1?.05:p.deltaMode?1:.002)*(p.ctrlKey?10:1)}function UBn(){return navigator.maxTouchPoints||"ontouchstart"in this}function XBn(p,E,P){var N=p.invertX(E[0][0])-P[0][0],D=p.invertX(E[1][0])-P[1][0],$=p.invertY(E[0][1])-P[0][1],v=p.invertY(E[1][1])-P[1][1];return p.translate(D>N?(N+D)/2:Math.min(0,N)||Math.max(0,D),v>$?($+v)/2:Math.min(0,$)||Math.max(0,v))}function Rhn(){var p=HBn,E=qBn,P=XBn,N=zBn,D=UBn,$=[0,1/0],v=[[-1/0,-1/0],[1/0,1/0]],q=250,te=NX,ie=Lhn("start","zoom","end"),pe,oe,z,ne=500,Z=150,U=0,Ee=10;function re(je){je.property("__zoom",Jln).on("wheel.zoom",vn,{passive:!1}).on("mousedown.zoom",jn).on("dblclick.zoom",et).filter(D).on("touchstart.zoom",Dn).on("touchmove.zoom",Kn).on("touchend.zoom touchcancel.zoom",_).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}re.transform=function(je,rn,sn,Sn){var Bn=je.selection?je.selection():je;Bn.property("__zoom",Jln),je!==Bn?Qe(je,rn,sn,Sn):Bn.interrupt().each(function(){Xe(this,arguments).event(Sn).start().zoom(null,typeof rn=="function"?rn.apply(this,arguments):rn).end()})},re.scaleBy=function(je,rn,sn,Sn){re.scaleTo(je,function(){var Bn=this.__zoom.k,dn=typeof rn=="function"?rn.apply(this,arguments):rn;return Bn*dn},sn,Sn)},re.scaleTo=function(je,rn,sn,Sn){re.transform(je,function(){var Bn=E.apply(this,arguments),dn=this.__zoom,Jn=sn==null?Ce(Bn):typeof sn=="function"?sn.apply(this,arguments):sn,Nn=dn.invert(Jn),qn=typeof rn=="function"?rn.apply(this,arguments):rn;return P(ee(we(dn,qn),Jn,Nn),Bn,v)},sn,Sn)},re.translateBy=function(je,rn,sn,Sn){re.transform(je,function(){return P(this.__zoom.translate(typeof rn=="function"?rn.apply(this,arguments):rn,typeof sn=="function"?sn.apply(this,arguments):sn),E.apply(this,arguments),v)},null,Sn)},re.translateTo=function(je,rn,sn,Sn,Bn){re.transform(je,function(){var dn=E.apply(this,arguments),Jn=this.__zoom,Nn=Sn==null?Ce(dn):typeof Sn=="function"?Sn.apply(this,arguments):Sn;return P(Oge.translate(Nn[0],Nn[1]).scale(Jn.k).translate(typeof rn=="function"?-rn.apply(this,arguments):-rn,typeof sn=="function"?-sn.apply(this,arguments):-sn),dn,v)},Sn,Bn)};function we(je,rn){return rn=Math.max($[0],Math.min($[1],rn)),rn===je.k?je:new fge(rn,je.x,je.y)}function ee(je,rn,sn){var Sn=rn[0]-sn[0]*je.k,Bn=rn[1]-sn[1]*je.k;return Sn===je.x&&Bn===je.y?je:new fge(je.k,Sn,Bn)}function Ce(je){return[(+je[0][0]+ +je[1][0])/2,(+je[0][1]+ +je[1][1])/2]}function Qe(je,rn,sn,Sn){je.on("start.zoom",function(){Xe(this,arguments).event(Sn).start()}).on("interrupt.zoom end.zoom",function(){Xe(this,arguments).event(Sn).end()}).tween("zoom",function(){var Bn=this,dn=arguments,Jn=Xe(Bn,dn).event(Sn),Nn=E.apply(Bn,dn),qn=sn==null?Ce(Nn):typeof sn=="function"?sn.apply(Bn,dn):sn,Jt=Math.max(Nn[1][0]-Nn[0][0],Nn[1][1]-Nn[0][1]),Xt=Bn.__zoom,Oi=typeof rn=="function"?rn.apply(Bn,dn):rn,gr=te(Xt.invert(qn).concat(Jt/Xt.k),Oi.invert(qn).concat(Jt/Oi.k));return function(Ki){if(Ki===1)Ki=Oi;else{var Wn=gr(Ki),ei=Jt/Wn[2];Ki=new fge(ei,qn[0]-Wn[0]*ei,qn[1]-Wn[1]*ei)}Jn.zoom(null,Ki)}})}function Xe(je,rn,sn){return!sn&&je.__zooming||new Ze(je,rn)}function Ze(je,rn){this.that=je,this.args=rn,this.active=0,this.sourceEvent=null,this.extent=E.apply(je,rn),this.taps=0}Ze.prototype={event:function(je){return je&&(this.sourceEvent=je),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(je,rn){return this.mouse&&je!=="mouse"&&(this.mouse[1]=rn.invert(this.mouse[0])),this.touch0&&je!=="touch"&&(this.touch0[1]=rn.invert(this.touch0[0])),this.touch1&&je!=="touch"&&(this.touch1[1]=rn.invert(this.touch1[0])),this.that.__zoom=rn,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(je){var rn=B0(this.that).datum();ie.call(je,this.that,new GBn(je,{sourceEvent:this.sourceEvent,target:re,transform:this.that.__zoom,dispatch:ie}),rn)}};function vn(je,...rn){if(!p.apply(this,arguments))return;var sn=Xe(this,rn).event(je),Sn=this.__zoom,Bn=Math.max($[0],Math.min($[1],Sn.k*Math.pow(2,N.apply(this,arguments)))),dn=e2(je);if(sn.wheel)(sn.mouse[0][0]!==dn[0]||sn.mouse[0][1]!==dn[1])&&(sn.mouse[1]=Sn.invert(sn.mouse[0]=dn)),clearTimeout(sn.wheel);else{if(Sn.k===Bn)return;sn.mouse=[dn,Sn.invert(dn)],lge(this),sn.start()}uN(je),sn.wheel=setTimeout(Jn,Z),sn.zoom("mouse",P(ee(we(Sn,Bn),sn.mouse[0],sn.mouse[1]),sn.extent,v));function Jn(){sn.wheel=null,sn.end()}}function jn(je,...rn){if(z||!p.apply(this,arguments))return;var sn=je.currentTarget,Sn=Xe(this,rn,!0).event(je),Bn=B0(je.view).on("mousemove.zoom",qn,!0).on("mouseup.zoom",Jt,!0),dn=e2(je,sn),Jn=je.clientX,Nn=je.clientY;$hn(je.view),bge(je),Sn.mouse=[dn,this.__zoom.invert(dn)],lge(this),Sn.start();function qn(Xt){if(uN(Xt),!Sn.moved){var Oi=Xt.clientX-Jn,gr=Xt.clientY-Nn;Sn.moved=Oi*Oi+gr*gr>U}Sn.event(Xt).zoom("mouse",P(ee(Sn.that.__zoom,Sn.mouse[0]=e2(Xt,sn),Sn.mouse[1]),Sn.extent,v))}function Jt(Xt){Bn.on("mousemove.zoom mouseup.zoom",null),Fhn(Xt.view,Sn.moved),uN(Xt),Sn.event(Xt).end()}}function et(je,...rn){if(p.apply(this,arguments)){var sn=this.__zoom,Sn=e2(je.changedTouches?je.changedTouches[0]:je,this),Bn=sn.invert(Sn),dn=sn.k*(je.shiftKey?.5:2),Jn=P(ee(we(sn,dn),Sn,Bn),E.apply(this,rn),v);uN(je),q>0?B0(this).transition().duration(q).call(Qe,Jn,Sn,je):B0(this).call(re.transform,Jn,Sn,je)}}function Dn(je,...rn){if(p.apply(this,arguments)){var sn=je.touches,Sn=sn.length,Bn=Xe(this,rn,je.changedTouches.length===Sn).event(je),dn,Jn,Nn,qn;for(bge(je),Jn=0;Jn<Sn;++Jn)Nn=sn[Jn],qn=e2(Nn,this),qn=[qn,this.__zoom.invert(qn),Nn.identifier],Bn.touch0?!Bn.touch1&&Bn.touch0[2]!==qn[2]&&(Bn.touch1=qn,Bn.taps=0):(Bn.touch0=qn,dn=!0,Bn.taps=1+!!pe);pe&&(pe=clearTimeout(pe)),dn&&(Bn.taps<2&&(oe=qn[0],pe=setTimeout(function(){pe=null},ne)),lge(this),Bn.start())}}function Kn(je,...rn){if(this.__zooming){var sn=Xe(this,rn).event(je),Sn=je.changedTouches,Bn=Sn.length,dn,Jn,Nn,qn;for(uN(je),dn=0;dn<Bn;++dn)Jn=Sn[dn],Nn=e2(Jn,this),sn.touch0&&sn.touch0[2]===Jn.identifier?sn.touch0[0]=Nn:sn.touch1&&sn.touch1[2]===Jn.identifier&&(sn.touch1[0]=Nn);if(Jn=sn.that.__zoom,sn.touch1){var Jt=sn.touch0[0],Xt=sn.touch0[1],Oi=sn.touch1[0],gr=sn.touch1[1],Ki=(Ki=Oi[0]-Jt[0])*Ki+(Ki=Oi[1]-Jt[1])*Ki,Wn=(Wn=gr[0]-Xt[0])*Wn+(Wn=gr[1]-Xt[1])*Wn;Jn=we(Jn,Math.sqrt(Ki/Wn)),Nn=[(Jt[0]+Oi[0])/2,(Jt[1]+Oi[1])/2],qn=[(Xt[0]+gr[0])/2,(Xt[1]+gr[1])/2]}else if(sn.touch0)Nn=sn.touch0[0],qn=sn.touch0[1];else return;sn.zoom("touch",P(ee(Jn,Nn,qn),sn.extent,v))}}function _(je,...rn){if(this.__zooming){var sn=Xe(this,rn).event(je),Sn=je.changedTouches,Bn=Sn.length,dn,Jn;for(bge(je),z&&clearTimeout(z),z=setTimeout(function(){z=null},ne),dn=0;dn<Bn;++dn)Jn=Sn[dn],sn.touch0&&sn.touch0[2]===Jn.identifier?delete sn.touch0:sn.touch1&&sn.touch1[2]===Jn.identifier&&delete sn.touch1;if(sn.touch1&&!sn.touch0&&(sn.touch0=sn.touch1,delete sn.touch1),sn.touch0)sn.touch0[1]=this.__zoom.invert(sn.touch0[0]);else if(sn.end(),sn.taps===2&&(Jn=e2(Jn,this),Math.hypot(oe[0]-Jn[0],oe[1]-Jn[1])<Ee)){var Nn=B0(this).on("dblclick.zoom");Nn&&Nn.apply(this,arguments)}}}return re.wheelDelta=function(je){return arguments.length?(N=typeof je=="function"?je:xX(+je),re):N},re.filter=function(je){return arguments.length?(p=typeof je=="function"?je:xX(!!je),re):p},re.touchable=function(je){return arguments.length?(D=typeof je=="function"?je:xX(!!je),re):D},re.extent=function(je){return arguments.length?(E=typeof je=="function"?je:xX([[+je[0][0],+je[0][1]],[+je[1][0],+je[1][1]]]),re):E},re.scaleExtent=function(je){return arguments.length?($[0]=+je[0],$[1]=+je[1],re):[$[0],$[1]]},re.translateExtent=function(je){return arguments.length?(v[0][0]=+je[0][0],v[1][0]=+je[1][0],v[0][1]=+je[0][1],v[1][1]=+je[1][1],re):[[v[0][0],v[0][1]],[v[1][0],v[1][1]]]},re.constrain=function(je){return arguments.length?(P=je,re):P},re.duration=function(je){return arguments.length?(q=+je,re):q},re.interpolate=function(je){return arguments.length?(te=je,re):te},re.on=function(){var je=ie.on.apply(ie,arguments);return je===ie?re:je},re.clickDistance=function(je){return arguments.length?(U=(je=+je)*je,re):Math.sqrt(U)},re.tapDistance=function(je){return arguments.length?(Ee=+je,re):Ee},re}const r2={error001:(p="react")=>`Seems like you have not used ${p==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${p}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:p=>`Node type "${p}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:p=>`The old edge with id=${p} does not exist.`,error009:p=>`Marker type "${p}" doesn't exist.`,error008:(p,{id:E,sourceHandle:P,targetHandle:N})=>`Couldn't create edge for ${p} handle id: "${p==="source"?P:N}", edge id: ${E}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:p=>`Edge type "${p}" not found. Using fallback type "default".`,error012:p=>`Node with id "${p}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(p="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${p}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:p=>`Edge with id "${p}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},hN=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],_hn=["Enter"," ","Escape"],Jhn={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:p,x:E,y:P})=>`Moved selected node ${p}. New position, x: ${E}, y: ${P}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var PA;(function(p){p.Strict="strict",p.Loose="loose"})(PA||(PA={}));var nk;(function(p){p.Free="free",p.Vertical="vertical",p.Horizontal="horizontal"})(nk||(nk={}));var aN;(function(p){p.Partial="partial",p.Full="full"})(aN||(aN={}));const Ghn={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var z5;(function(p){p.Bezier="default",p.Straight="straight",p.Step="step",p.SmoothStep="smoothstep",p.SimpleBezier="simplebezier"})(z5||(z5={}));var dN;(function(p){p.Arrow="arrow",p.ArrowClosed="arrowclosed"})(dN||(dN={}));var ji;(function(p){p.Left="left",p.Top="top",p.Right="right",p.Bottom="bottom"})(ji||(ji={}));const Gln={[ji.Left]:ji.Right,[ji.Right]:ji.Left,[ji.Top]:ji.Bottom,[ji.Bottom]:ji.Top},Hhn=p=>!!p&&typeof p=="object"&&"id"in p&&"source"in p&&"target"in p,KBn=p=>!!p&&typeof p=="object"&&"id"in p&&"position"in p&&!("source"in p)&&!("target"in p),Nge=p=>!!p&&typeof p=="object"&&"id"in p&&"internals"in p&&!("source"in p)&&!("target"in p),pN=(p,E=[0,0])=>{const{width:P,height:N}=c2(p),D=p.origin??E,$=P*D[0],v=N*D[1];return{x:p.position.x-$,y:p.position.y-v}},WBn=(p,E={nodeOrigin:[0,0]})=>{if(p.length===0)return{x:0,y:0,width:0,height:0};let P=!1;const N=p.reduce((D,$)=>{const v=typeof $=="string";let q=!E.nodeLookup&&!v?$:void 0;return E.nodeLookup&&(q=v?E.nodeLookup.get($):Nge($)?$:E.nodeLookup.get($.id)),q?(P=!0,JX(D,FX(q,E.nodeOrigin))):D},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return P?GX(N):{x:0,y:0,width:0,height:0}},LA=(p,E={})=>{let P={x:1/0,y:1/0,x2:-1/0,y2:-1/0},N=!1;return p.forEach(D=>{(E.filter===void 0||E.filter(D))&&(P=JX(P,FX(D)),N=!0)}),N?GX(P):{x:0,y:0,width:0,height:0}},Dge=(p,E,[P,N,D]=[0,0,1],$=!1,v=!1)=>{const q=(E.x-P)/D,te=(E.y-N)/D,ie=E.width/D,pe=E.height/D,oe=[];for(const z of p.values()){const{measured:ne,selectable:Z=!0,hidden:U=!1}=z;if(v&&!Z||U)continue;const Ee=ne.width??z.width??z.initialWidth??0,re=ne.height??z.height??z.initialHeight??0,{x:we,y:ee}=z.internals.positionAbsolute,Ce=Xhn(q,te,ie,pe,we,ee,Ee,re),Qe=Ee*re,Xe=$&&Ce>0;(!z.internals.handleBounds||Xe||Ce>=Qe||z.dragging)&&oe.push(z)}return oe},VBn=(p,E)=>{const P=new Set;return p.forEach(N=>{P.add(N.id)}),E.filter(N=>P.has(N.source)||P.has(N.target))};function QBn(p,E){const P=new Map,N=E!=null&&E.nodes?new Set(E.nodes.map(D=>D.id)):null;return p.forEach(D=>{let $;if(E!=null&&E.includeHiddenNodes){const{width:v,height:q}=c2(D);$=v>0&&q>0}else $=!!(D.measured.width&&D.measured.height&&!D.hidden);$&&(!N||N.has(D.id))&&P.set(D.id,D)}),P}async function YBn({nodes:p,width:E,height:P,panZoom:N,minZoom:D,maxZoom:$},v){if(p.size===0)return!0;const q=QBn(p,v),te=LA(q),ie=$ge(te,E,P,(v==null?void 0:v.minZoom)??D,(v==null?void 0:v.maxZoom)??$,(v==null?void 0:v.padding)??.1);return await N.setViewport(ie,{duration:v==null?void 0:v.duration,ease:v==null?void 0:v.ease,interpolate:v==null?void 0:v.interpolate}),!0}function qhn({nodeId:p,nextPosition:E,nodeLookup:P,nodeOrigin:N=[0,0],nodeExtent:D,onError:$}){const v=P.get(p),q=v.parentId?P.get(v.parentId):void 0,{x:te,y:ie}=q?q.internals.positionAbsolute:{x:0,y:0},pe=v.origin??N;let oe=v.extent||D;if(v.extent==="parent"&&!v.expandParent)if(!q)$==null||$("005",r2.error005());else{const{width:ne,height:Z}=c2(q);ne&&Z&&(oe=[[te,ie],[te+ne,ie+Z]])}else q&&ik(v.extent)&&(oe=[[v.extent[0][0]+te,v.extent[0][1]+ie],[v.extent[1][0]+te,v.extent[1][1]+ie]]);const z=ik(oe)?tk(E,oe,v.measured):E;return(v.measured.width===void 0||v.measured.height===void 0)&&($==null||$("015",r2.error015())),{position:{x:z.x-te+(v.measured.width??0)*pe[0],y:z.y-ie+(v.measured.height??0)*pe[1]},positionAbsolute:z}}async function ZBn({nodesToRemove:p=[],edgesToRemove:E=[],nodes:P,edges:N,onBeforeDelete:D}){const $=new Set(p.map(z=>z.id)),v=[];for(const z of P){if(z.deletable===!1)continue;const ne=$.has(z.id),Z=!ne&&z.parentId&&v.find(U=>U.id===z.parentId);(ne||Z)&&v.push(z)}const q=new Set(E.map(z=>z.id)),te=N.filter(z=>z.deletable!==!1),pe=VBn(v,te);for(const z of te)q.has(z.id)&&!pe.find(Z=>Z.id===z.id)&&pe.push(z);if(!D)return{edges:pe,nodes:v};const oe=await D({nodes:v,edges:pe});return typeof oe=="boolean"?oe?{edges:pe,nodes:v}:{edges:[],nodes:[]}:oe}const OA=(p,E=0,P=1)=>Math.min(Math.max(p,E),P),tk=(p={x:0,y:0},E,P)=>({x:OA(p.x,E[0][0],E[1][0]-((P==null?void 0:P.width)??0)),y:OA(p.y,E[0][1],E[1][1]-((P==null?void 0:P.height)??0))});function zhn(p,E,P){const{width:N,height:D}=c2(P),{x:$,y:v}=P.internals.positionAbsolute;return tk(p,[[$,v],[$+N,v+D]],E)}const Hln=(p,E,P)=>p<E?OA(Math.abs(p-E),1,E)/E:p>P?-OA(Math.abs(p-P),1,E)/E:0,Lge=(p,E,P=15,N=40)=>{const D=Hln(p.x,N,E.width-N)*P,$=Hln(p.y,N,E.height-N)*P;return[D,$]},JX=(p,E)=>({x:Math.min(p.x,E.x),y:Math.min(p.y,E.y),x2:Math.max(p.x2,E.x2),y2:Math.max(p.y2,E.y2)}),jge=({x:p,y:E,width:P,height:N})=>({x:p,y:E,x2:p+P,y2:E+N}),GX=({x:p,y:E,x2:P,y2:N})=>({x:p,y:E,width:P-p,height:N-E}),bN=(p,E=[0,0])=>{var D,$;const{x:P,y:N}=Nge(p)?p.internals.positionAbsolute:pN(p,E);return{x:P,y:N,width:((D=p.measured)==null?void 0:D.width)??p.width??p.initialWidth??0,height:(($=p.measured)==null?void 0:$.height)??p.height??p.initialHeight??0}},FX=(p,E=[0,0])=>{var D,$;const{x:P,y:N}=Nge(p)?p.internals.positionAbsolute:pN(p,E);return{x:P,y:N,x2:P+(((D=p.measured)==null?void 0:D.width)??p.width??p.initialWidth??0),y2:N+((($=p.measured)==null?void 0:$.height)??p.height??p.initialHeight??0)}},Uhn=(p,E)=>GX(JX(jge(p),jge(E))),Xhn=(p,E,P,N,D,$,v,q)=>{const te=Math.max(0,Math.min(p+P,D+v)-Math.max(p,D)),ie=Math.max(0,Math.min(E+N,$+q)-Math.max(E,$));return Math.ceil(te*ie)},BX=(p,E)=>Xhn(p.x,p.y,p.width,p.height,E.x,E.y,E.width,E.height),qln=p=>n2(p.width)&&n2(p.height)&&n2(p.x)&&n2(p.y),n2=p=>!isNaN(p)&&isFinite(p),Khn=(p,E)=>(P,N)=>{},mN=(p,E=[1,1])=>({x:E[0]*Math.round(p.x/E[0]),y:E[1]*Math.round(p.y/E[1])}),vN=({x:p,y:E},[P,N,D],$=!1,v=[1,1])=>{const q={x:(p-P)/D,y:(E-N)/D};return $?mN(q,v):q},NA=({x:p,y:E},[P,N,D])=>({x:p*D+P,y:E*D+N});function TA(p,E){if(typeof p=="number")return Math.floor((E-E/(1+p))*.5);if(typeof p=="string"&&p.endsWith("px")){const P=parseFloat(p);if(!Number.isNaN(P))return Math.floor(P)}if(typeof p=="string"&&p.endsWith("%")){const P=parseFloat(p);if(!Number.isNaN(P))return Math.floor(E*P*.01)}return console.error(`The padding value "${p}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function eRn(p,E,P){if(typeof p=="string"||typeof p=="number"){const N=TA(p,P),D=TA(p,E);return{top:N,right:D,bottom:N,left:D,x:D*2,y:N*2}}if(typeof p=="object"){const N=TA(p.top??p.y??0,P),D=TA(p.bottom??p.y??0,P),$=TA(p.left??p.x??0,E),v=TA(p.right??p.x??0,E);return{top:N,right:v,bottom:D,left:$,x:$+v,y:N+D}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function nRn(p,E,P,N,D,$){const{x:v,y:q}=NA(p,[E,P,N]),{x:te,y:ie}=NA({x:p.x+p.width,y:p.y+p.height},[E,P,N]),pe=D-te,oe=$-ie;return{left:Math.floor(v),top:Math.floor(q),right:Math.floor(pe),bottom:Math.floor(oe)}}const $ge=(p,E,P,N,D,$)=>{const v=eRn($,E,P),q=(E-v.x)/p.width,te=(P-v.y)/p.height,ie=Math.min(q,te),pe=OA(ie,N,D),oe=p.x+p.width/2,z=p.y+p.height/2,ne=E/2-oe*pe,Z=P/2-z*pe,U=nRn(p,ne,Z,pe,E,P),Ee={left:Math.min(U.left-v.left,0),top:Math.min(U.top-v.top,0),right:Math.min(U.right-v.right,0),bottom:Math.min(U.bottom-v.bottom,0)};return{x:ne-Ee.left+Ee.right,y:Z-Ee.top+Ee.bottom,zoom:pe}},wN=()=>{var p;return typeof navigator<"u"&&((p=navigator==null?void 0:navigator.userAgent)==null?void 0:p.indexOf("Mac"))>=0};function ik(p){return p!=null&&p!=="parent"}function c2(p){var E,P;return{width:((E=p.measured)==null?void 0:E.width)??p.width??p.initialWidth??0,height:((P=p.measured)==null?void 0:P.height)??p.height??p.initialHeight??0}}function Whn(p){var E,P;return(((E=p.measured)==null?void 0:E.width)??p.width??p.initialWidth)!==void 0&&(((P=p.measured)==null?void 0:P.height)??p.height??p.initialHeight)!==void 0}function Vhn(p,E={width:0,height:0},P,N,D){const $={...p},v=N.get(P);if(v){const q=v.origin||D;$.x+=v.internals.positionAbsolute.x-(E.width??0)*q[0],$.y+=v.internals.positionAbsolute.y-(E.height??0)*q[1]}return $}function zln(p,E){if(p.size!==E.size)return!1;for(const P of p)if(!E.has(P))return!1;return!0}function tRn(){let p,E;return{promise:new Promise((N,D)=>{p=N,E=D}),resolve:p,reject:E}}function iRn(p){return{...Jhn,...p||{}}}function Qhn(p){return p===null?null:p?"valid":"invalid"}function sN(p,{snapGrid:E=[0,0],snapToGrid:P=!1,transform:N,containerBounds:D}){const{x:$,y:v}=t2(p),q=vN({x:$-((D==null?void 0:D.left)??0),y:v-((D==null?void 0:D.top)??0)},N),{x:te,y:ie}=P?mN(q,E):q;return{xSnapped:te,ySnapped:ie,...q}}const Fge=p=>({width:p.offsetWidth,height:p.offsetHeight}),Yhn=p=>{var E;return((E=p==null?void 0:p.getRootNode)==null?void 0:E.call(p))||(window==null?void 0:window.document)},rRn=["INPUT","SELECT","TEXTAREA"];function Zhn(p){var N,D;const E=((D=(N=p.composedPath)==null?void 0:N.call(p))==null?void 0:D[0])||p.target;return(E==null?void 0:E.nodeType)!==1?!1:rRn.includes(E.nodeName)||E.hasAttribute("contenteditable")||!!E.closest(".nokey")}const ean=p=>"clientX"in p,t2=(p,E)=>{var $,v;const P=ean(p),N=P?p.clientX:($=p.touches)==null?void 0:$[0].clientX,D=P?p.clientY:(v=p.touches)==null?void 0:v[0].clientY;return{x:N-((E==null?void 0:E.left)??0),y:D-((E==null?void 0:E.top)??0)}},Uln=(p,E,P,N,D)=>{const $=E.querySelectorAll(`.${p}`);return!$||!$.length?null:Array.from($).map(v=>{const q=v.getBoundingClientRect();return{id:v.getAttribute("data-handleid"),type:p,nodeId:D,position:v.getAttribute("data-handlepos"),x:(q.left-P.left)/N,y:(q.top-P.top)/N,...Fge(v)}})};function nan({sourceX:p,sourceY:E,targetX:P,targetY:N,sourceControlX:D,sourceControlY:$,targetControlX:v,targetControlY:q}){const te=p*.125+D*.375+v*.375+P*.125,ie=E*.125+$*.375+q*.375+N*.125,pe=Math.abs(te-p),oe=Math.abs(ie-E);return[te,ie,pe,oe]}function TX(p,E){return p>=0?.5*p:E*25*Math.sqrt(-p)}function Xln({pos:p,x1:E,y1:P,x2:N,y2:D,c:$}){switch(p){case ji.Left:return[E-TX(E-N,$),P];case ji.Right:return[E+TX(N-E,$),P];case ji.Top:return[E,P-TX(P-D,$)];case ji.Bottom:return[E,P+TX(D-P,$)]}}function yN({sourceX:p,sourceY:E,sourcePosition:P=ji.Bottom,targetX:N,targetY:D,targetPosition:$=ji.Top,curvature:v=.25}){const[q,te]=Xln({pos:P,x1:p,y1:E,x2:N,y2:D,c:v}),[ie,pe]=Xln({pos:$,x1:N,y1:D,x2:p,y2:E,c:v}),[oe,z,ne,Z]=nan({sourceX:p,sourceY:E,targetX:N,targetY:D,sourceControlX:q,sourceControlY:te,targetControlX:ie,targetControlY:pe});return[`M${p},${E} C${q},${te} ${ie},${pe} ${N},${D}`,oe,z,ne,Z]}function tan({sourceX:p,sourceY:E,targetX:P,targetY:N}){const D=Math.abs(P-p)/2,$=P<p?P+D:P-D,v=Math.abs(N-E)/2,q=N<E?N+v:N-v;return[$,q,D,v]}function cRn({sourceNode:p,targetNode:E,selected:P=!1,zIndex:N=0,elevateOnSelect:D=!1,zIndexMode:$="basic"}){if($==="manual")return N;const v=D&&P?N+1e3:N,q=Math.max(p.parentId||D&&p.selected?p.internals.z:0,E.parentId||D&&E.selected?E.internals.z:0);return v+q}function uRn({sourceNode:p,targetNode:E,width:P,height:N,transform:D}){const $=JX(FX(p),FX(E));$.x===$.x2&&($.x2+=1),$.y===$.y2&&($.y2+=1);const v={x:-D[0]/D[2],y:-D[1]/D[2],width:P/D[2],height:N/D[2]};return BX(v,GX($))>0}const oRn=({source:p,sourceHandle:E,target:P,targetHandle:N})=>`xy-edge__${p}${E||""}-${P}${N||""}`,sRn=(p,E)=>E.some(P=>P.source===p.source&&P.target===p.target&&(P.sourceHandle===p.sourceHandle||!P.sourceHandle&&!p.sourceHandle)&&(P.targetHandle===p.targetHandle||!P.targetHandle&&!p.targetHandle)),fRn=(p,E,P={})=>{var $;if(!p.source||!p.target)return($=P.onError)==null||$.call(P,"006",r2.error006()),E;const N=P.getEdgeId||oRn;let D;return Hhn(p)?D={...p}:D={...p,id:N(p)},sRn(D,E)?E:(D.sourceHandle===null&&delete D.sourceHandle,D.targetHandle===null&&delete D.targetHandle,E.concat(D))};function ian({sourceX:p,sourceY:E,targetX:P,targetY:N}){const[D,$,v,q]=tan({sourceX:p,sourceY:E,targetX:P,targetY:N});return[`M ${p},${E}L ${P},${N}`,D,$,v,q]}const Kln={[ji.Left]:{x:-1,y:0},[ji.Right]:{x:1,y:0},[ji.Top]:{x:0,y:-1},[ji.Bottom]:{x:0,y:1}},lRn=({source:p,sourcePosition:E=ji.Bottom,target:P})=>E===ji.Left||E===ji.Right?p.x<P.x?{x:1,y:0}:{x:-1,y:0}:p.y<P.y?{x:0,y:1}:{x:0,y:-1},Wln=(p,E)=>Math.sqrt(Math.pow(E.x-p.x,2)+Math.pow(E.y-p.y,2));function hRn({source:p,sourcePosition:E=ji.Bottom,target:P,targetPosition:N=ji.Top,center:D,offset:$,stepPosition:v}){const q=Kln[E],te=Kln[N],ie={x:p.x+q.x*$,y:p.y+q.y*$},pe={x:P.x+te.x*$,y:P.y+te.y*$},oe=lRn({source:ie,sourcePosition:E,target:pe}),z=oe.x!==0?"x":"y",ne=oe[z];let Z=[],U,Ee;const re={x:0,y:0},we={x:0,y:0},[,,ee,Ce]=tan({sourceX:p.x,sourceY:p.y,targetX:P.x,targetY:P.y});if(q[z]*te[z]===-1){z==="x"?(U=D.x??ie.x+(pe.x-ie.x)*v,Ee=D.y??(ie.y+pe.y)/2):(U=D.x??(ie.x+pe.x)/2,Ee=D.y??ie.y+(pe.y-ie.y)*v);const vn=[{x:U,y:ie.y},{x:U,y:pe.y}],jn=[{x:ie.x,y:Ee},{x:pe.x,y:Ee}];q[z]===ne?Z=z==="x"?vn:jn:Z=z==="x"?jn:vn}else{const vn=[{x:ie.x,y:pe.y}],jn=[{x:pe.x,y:ie.y}];if(z==="x"?Z=q.x===ne?jn:vn:Z=q.y===ne?vn:jn,E===N){const je=Math.abs(p[z]-P[z]);if(je<=$){const rn=Math.min($-1,$-je);q[z]===ne?re[z]=(ie[z]>p[z]?-1:1)*rn:we[z]=(pe[z]>P[z]?-1:1)*rn}}if(E!==N){const je=z==="x"?"y":"x",rn=q[z]===te[je],sn=ie[je]>pe[je],Sn=ie[je]<pe[je];(q[z]===1&&(!rn&&sn||rn&&Sn)||q[z]!==1&&(!rn&&Sn||rn&&sn))&&(Z=z==="x"?vn:jn)}const et={x:ie.x+re.x,y:ie.y+re.y},Dn={x:pe.x+we.x,y:pe.y+we.y},Kn=Math.max(Math.abs(et.x-Z[0].x),Math.abs(Dn.x-Z[0].x)),_=Math.max(Math.abs(et.y-Z[0].y),Math.abs(Dn.y-Z[0].y));Kn>=_?(U=(et.x+Dn.x)/2,Ee=Z[0].y):(U=Z[0].x,Ee=(et.y+Dn.y)/2)}const Qe={x:ie.x+re.x,y:ie.y+re.y},Xe={x:pe.x+we.x,y:pe.y+we.y};return[[p,...Qe.x!==Z[0].x||Qe.y!==Z[0].y?[Qe]:[],...Z,...Xe.x!==Z[Z.length-1].x||Xe.y!==Z[Z.length-1].y?[Xe]:[],P],U,Ee,ee,Ce]}function aRn(p,E,P,N){const D=Math.min(Wln(p,E)/2,Wln(E,P)/2,N),{x:$,y:v}=E;if(p.x===$&&$===P.x||p.y===v&&v===P.y)return`L${$} ${v}`;if(p.y===v){const ie=p.x<P.x?-1:1,pe=p.y<P.y?1:-1;return`L ${$+D*ie},${v}Q ${$},${v} ${$},${v+D*pe}`}const q=p.x<P.x?1:-1,te=p.y<P.y?-1:1;return`L ${$},${v+D*te}Q ${$},${v} ${$+D*q},${v}`}function Ege({sourceX:p,sourceY:E,sourcePosition:P=ji.Bottom,targetX:N,targetY:D,targetPosition:$=ji.Top,borderRadius:v=5,centerX:q,centerY:te,offset:ie=20,stepPosition:pe=.5}){const[oe,z,ne,Z,U]=hRn({source:{x:p,y:E},sourcePosition:P,target:{x:N,y:D},targetPosition:$,center:{x:q,y:te},offset:ie,stepPosition:pe});let Ee=`M${oe[0].x} ${oe[0].y}`;for(let re=1;re<oe.length-1;re++)Ee+=aRn(oe[re-1],oe[re],oe[re+1],v);return Ee+=`L${oe[oe.length-1].x} ${oe[oe.length-1].y}`,[Ee,z,ne,Z,U]}function Vln(p){var E;return p&&!!(p.internals.handleBounds||(E=p.handles)!=null&&E.length)&&!!(p.measured.width||p.width||p.initialWidth)}function dRn(p){var oe;const{sourceNode:E,targetNode:P}=p;if(!Vln(E)||!Vln(P))return null;const N=E.internals.handleBounds||Qln(E.handles),D=P.internals.handleBounds||Qln(P.handles),$=Yln((N==null?void 0:N.source)??[],p.sourceHandle),v=Yln(p.connectionMode===PA.Strict?(D==null?void 0:D.target)??[]:((D==null?void 0:D.target)??[]).concat((D==null?void 0:D.source)??[]),p.targetHandle);if(!$||!v)return(oe=p.onError)==null||oe.call(p,"008",r2.error008($?"target":"source",{id:p.id,sourceHandle:p.sourceHandle,targetHandle:p.targetHandle})),null;const q=($==null?void 0:$.position)||ji.Bottom,te=(v==null?void 0:v.position)||ji.Top,ie=rk(E,$,q),pe=rk(P,v,te);return{sourceX:ie.x,sourceY:ie.y,targetX:pe.x,targetY:pe.y,sourcePosition:q,targetPosition:te}}function Qln(p){if(!p)return null;const E=[],P=[];for(const N of p)N.width=N.width??1,N.height=N.height??1,N.type==="source"?E.push(N):N.type==="target"&&P.push(N);return{source:E,target:P}}function rk(p,E,P=ji.Left,N=!1){const D=((E==null?void 0:E.x)??0)+p.internals.positionAbsolute.x,$=((E==null?void 0:E.y)??0)+p.internals.positionAbsolute.y,{width:v,height:q}=E??c2(p);if(N)return{x:D+v/2,y:$+q/2};switch((E==null?void 0:E.position)??P){case ji.Top:return{x:D+v/2,y:$};case ji.Right:return{x:D+v,y:$+q/2};case ji.Bottom:return{x:D+v/2,y:$+q};case ji.Left:return{x:D,y:$+q/2}}}function Yln(p,E){return p&&(E?p.find(P=>P.id===E):p[0])||null}function Age(p,E){return p?typeof p=="string"?p:`${E?`${E}__`:""}${Object.keys(p).sort().map(N=>`${N}=${p[N]}`).join("&")}`:""}function bRn(p,{id:E,defaultColor:P,defaultMarkerStart:N,defaultMarkerEnd:D}){const $=new Set;return p.reduce((v,q)=>([q.markerStart||N,q.markerEnd||D].forEach(te=>{if(te&&typeof te=="object"){const ie=Age(te,E);$.has(ie)||(v.push({id:ie,color:te.color||P,...te}),$.add(ie))}}),v),[]).sort((v,q)=>v.id.localeCompare(q.id))}function wRn(p,E,P,N,D){let $=.5;D==="start"?$=0:D==="end"&&($=1);let v=[(p.x+p.width*$)*E.zoom+E.x,p.y*E.zoom+E.y-N],q=[-100*$,-100];switch(P){case ji.Right:v=[(p.x+p.width)*E.zoom+E.x+N,(p.y+p.height*$)*E.zoom+E.y],q=[0,-100*$];break;case ji.Bottom:v[1]=(p.y+p.height)*E.zoom+E.y+N,q[1]=0;break;case ji.Left:v=[p.x*E.zoom+E.x-N,(p.y+p.height*$)*E.zoom+E.y],q=[-100,-100*$];break}return`translate(${v[0]}px, ${v[1]}px) translate(${q[0]}%, ${q[1]}%)`}const ran=1e3,gRn=10,Bge={nodeOrigin:[0,0],nodeExtent:hN,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},pRn={...Bge,checkEquality:!0};function Rge(p,E){const P={...p};for(const N in E)E[N]!==void 0&&(P[N]=E[N]);return P}function mRn(p,E,P){const N=Rge(Bge,P);for(const D of p.values())if(D.parentId)Jge(D,p,E,N);else{const $=pN(D,N.nodeOrigin),v=ik(D.extent)?D.extent:N.nodeExtent,q=tk($,v,c2(D));D.internals.positionAbsolute=q}}function vRn(p,E){if(!p.handles)return p.measured?E==null?void 0:E.internals.handleBounds:void 0;const P=[],N=[];for(const D of p.handles){const $={id:D.id,width:D.width??1,height:D.height??1,nodeId:p.id,x:D.x,y:D.y,position:D.position,type:D.type};D.type==="source"?P.push($):D.type==="target"&&N.push($)}return{source:P,target:N}}function _ge(p){return p==="manual"}function Mge(p,E,P,N={}){var pe,oe;const D=Rge(pRn,N),$={i:0},v=new Map(E),q=D!=null&&D.elevateNodesOnSelect&&!_ge(D.zIndexMode)?ran:0;let te=p.length>0,ie=!1;E.clear(),P.clear();for(const z of p){let ne=v.get(z.id);if(D.checkEquality&&z===(ne==null?void 0:ne.internals.userNode))E.set(z.id,ne);else{const Z=pN(z,D.nodeOrigin),U=ik(z.extent)?z.extent:D.nodeExtent,Ee=tk(Z,U,c2(z));ne={...D.defaults,...z,measured:{width:(pe=z.measured)==null?void 0:pe.width,height:(oe=z.measured)==null?void 0:oe.height},internals:{positionAbsolute:Ee,handleBounds:vRn(z,ne),z:can(z,q,D.zIndexMode),userNode:z}},E.set(z.id,ne)}(ne.measured===void 0||ne.measured.width===void 0||ne.measured.height===void 0)&&!ne.hidden&&(te=!1),z.parentId&&Jge(ne,E,P,N,$),ie||(ie=z.selected??!1)}return{nodesInitialized:te,hasSelectedNodes:ie}}function yRn(p,E){if(!p.parentId)return;const P=E.get(p.parentId);P?P.set(p.id,p):E.set(p.parentId,new Map([[p.id,p]]))}function Jge(p,E,P,N,D){const{elevateNodesOnSelect:$,nodeOrigin:v,nodeExtent:q,zIndexMode:te}=Rge(Bge,N),ie=p.parentId,pe=E.get(ie);if(!pe){console.warn(`Parent node ${ie} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}yRn(p,P),D&&!pe.parentId&&pe.internals.rootParentIndex===void 0&&te==="auto"&&(pe.internals.rootParentIndex=++D.i,pe.internals.z=pe.internals.z+D.i*gRn),D&&pe.internals.rootParentIndex!==void 0&&(D.i=pe.internals.rootParentIndex);const oe=$&&!_ge(te)?ran:0,{x:z,y:ne,z:Z}=kRn(p,pe,v,q,oe,te),{positionAbsolute:U}=p.internals,Ee=z!==U.x||ne!==U.y;(Ee||Z!==p.internals.z)&&E.set(p.id,{...p,internals:{...p.internals,positionAbsolute:Ee?{x:z,y:ne}:U,z:Z}})}function can(p,E,P){const N=n2(p.zIndex)?p.zIndex:0;return _ge(P)?N:N+(p.selected?E:0)}function kRn(p,E,P,N,D,$){const{x:v,y:q}=E.internals.positionAbsolute,te=c2(p),ie=pN(p,P),pe=ik(p.extent)?tk(ie,p.extent,te):ie;let oe=tk({x:v+pe.x,y:q+pe.y},N,te);p.extent==="parent"&&(oe=zhn(oe,te,E));const z=can(p,D,$),ne=E.internals.z??0;return{x:oe.x,y:oe.y,z:ne>=z?ne+1:z}}function Gge(p,E,P,N=[0,0]){var v;const D=[],$=new Map;for(const q of p){const te=E.get(q.parentId);if(!te)continue;const ie=((v=$.get(q.parentId))==null?void 0:v.expandedRect)??bN(te),pe=Uhn(ie,q.rect);$.set(q.parentId,{expandedRect:pe,parent:te})}return $.size>0&&$.forEach(({expandedRect:q,parent:te},ie)=>{var ee;const pe=te.internals.positionAbsolute,oe=c2(te),z=te.origin??N,ne=q.x<pe.x?Math.round(Math.abs(pe.x-q.x)):0,Z=q.y<pe.y?Math.round(Math.abs(pe.y-q.y)):0,U=Math.max(oe.width,Math.round(q.width)),Ee=Math.max(oe.height,Math.round(q.height)),re=(U-oe.width)*z[0],we=(Ee-oe.height)*z[1];(ne>0||Z>0||re||we)&&(D.push({id:ie,type:"position",position:{x:te.position.x-ne+re,y:te.position.y-Z+we}}),(ee=P.get(ie))==null||ee.forEach(Ce=>{p.some(Qe=>Qe.id===Ce.id)||D.push({id:Ce.id,type:"position",position:{x:Ce.position.x+ne,y:Ce.position.y+Z}})})),(oe.width<q.width||oe.height<q.height||ne||Z)&&D.push({id:ie,type:"dimensions",setAttributes:!0,dimensions:{width:U+(ne?z[0]*ne-re:0),height:Ee+(Z?z[1]*Z-we:0)}})}),D}function jRn(p,E,P,N,D,$,v){const q=N==null?void 0:N.querySelector(".xyflow__viewport");let te=!1;if(!q)return{changes:[],updatedInternals:te};const ie=[],pe=window.getComputedStyle(q),{m22:oe}=new window.DOMMatrixReadOnly(pe.transform),z=[];for(const ne of p.values()){const Z=E.get(ne.id);if(!Z)continue;if(Z.hidden){E.set(Z.id,{...Z,internals:{...Z.internals,handleBounds:void 0}}),te=!0;continue}const U=Fge(ne.nodeElement),Ee=Z.measured.width!==U.width||Z.measured.height!==U.height;if(!!(U.width&&U.height&&(Ee||!Z.internals.handleBounds||ne.force))){const we=ne.nodeElement.getBoundingClientRect(),ee=ik(Z.extent)?Z.extent:$;let{positionAbsolute:Ce}=Z.internals;if(Z.parentId&&Z.extent==="parent"){const Xe=E.get(Z.parentId);Xe&&(Ce=zhn(Ce,U,Xe))}else ee&&(Ce=tk(Ce,ee,U));const Qe={...Z,measured:U,internals:{...Z.internals,positionAbsolute:Ce,handleBounds:{source:Uln("source",ne.nodeElement,we,oe,Z.id),target:Uln("target",ne.nodeElement,we,oe,Z.id)}}};E.set(Z.id,Qe),Z.parentId&&Jge(Qe,E,P,{nodeOrigin:D,zIndexMode:v}),te=!0,Ee&&(ie.push({id:Z.id,type:"dimensions",dimensions:U}),Z.expandParent&&Z.parentId&&z.push({id:Z.id,parentId:Z.parentId,rect:bN(Qe,D)}))}}if(z.length>0){const ne=Gge(z,E,P,D);ie.push(...ne)}return{changes:ie,updatedInternals:te}}async function ERn({delta:p,panZoom:E,transform:P,translateExtent:N,width:D,height:$}){if(!E||!p.x&&!p.y)return!1;const v=await E.setViewportConstrained({x:P[0]+p.x,y:P[1]+p.y,zoom:P[2]},[[0,0],[D,$]],N);return!!v&&(v.x!==P[0]||v.y!==P[1]||v.k!==P[2])}function Zln(p,E,P,N,D,$){let v=D;const q=N.get(v)||new Map;N.set(v,q.set(P,E)),v=`${D}-${p}`;const te=N.get(v)||new Map;if(N.set(v,te.set(P,E)),$){v=`${D}-${p}-${$}`;const ie=N.get(v)||new Map;N.set(v,ie.set(P,E))}}function uan(p,E,P){p.clear(),E.clear();for(const N of P){const{source:D,target:$,sourceHandle:v=null,targetHandle:q=null}=N,te={edgeId:N.id,source:D,target:$,sourceHandle:v,targetHandle:q},ie=`${D}-${v}--${$}-${q}`,pe=`${$}-${q}--${D}-${v}`;Zln("source",te,pe,p,D,v),Zln("target",te,ie,p,$,q),E.set(N.id,N)}}function oan(p,E){if(!p.parentId)return!1;const P=E.get(p.parentId);return P?P.selected?!0:oan(P,E):!1}function ehn(p,E,P){var D;let N=p;do{if((D=N==null?void 0:N.matches)!=null&&D.call(N,E))return!0;if(N===P)return!1;N=N==null?void 0:N.parentElement}while(N);return!1}function ARn(p,E,P,N){const D=new Map;for(const[$,v]of p)if((v.selected||v.id===N)&&(!v.parentId||!oan(v,p))&&(v.draggable||E&&typeof v.draggable>"u")){const q=p.get($);q&&D.set($,{id:$,position:q.position||{x:0,y:0},distance:{x:P.x-q.internals.positionAbsolute.x,y:P.y-q.internals.positionAbsolute.y},extent:q.extent,parentId:q.parentId,origin:q.origin,expandParent:q.expandParent,internals:{positionAbsolute:q.internals.positionAbsolute||{x:0,y:0}},measured:{width:q.measured.width??0,height:q.measured.height??0}})}return D}function wge({nodeId:p,dragItems:E,nodeLookup:P,dragging:N=!0}){var v,q,te;const D=[];for(const[ie,pe]of E){const oe=(v=P.get(ie))==null?void 0:v.internals.userNode;oe&&D.push({...oe,position:pe.position,dragging:N})}if(!p)return[D[0],D];const $=(q=P.get(p))==null?void 0:q.internals.userNode;return[$?{...$,position:((te=E.get(p))==null?void 0:te.position)||$.position,dragging:N}:D[0],D]}function MRn({dragItems:p,snapGrid:E,x:P,y:N}){const D=p.values().next().value;if(!D)return null;const $={x:P-D.distance.x,y:N-D.distance.y},v=mN($,E);return{x:v.x-$.x,y:v.y-$.y}}function CRn({onNodeMouseDown:p,getStoreItems:E,onDragStart:P,onDrag:N,onDragStop:D}){let $={x:null,y:null},v=0,q=new Map,te=!1,ie={x:0,y:0},pe=null,oe=!1,z=null,ne=!1,Z=!1,U=null;function Ee({noDragClassName:we,handleSelector:ee,domNode:Ce,isSelectable:Qe,nodeId:Xe,nodeClickDistance:Ze=0}){z=B0(Ce);function vn({x:Kn,y:_}){const{nodeLookup:je,nodeExtent:rn,snapGrid:sn,snapToGrid:Sn,nodeOrigin:Bn,onNodeDrag:dn,onSelectionDrag:Jn,onError:Nn,updateNodePositions:qn}=E();$={x:Kn,y:_};let Jt=!1;const Xt=q.size>1,Oi=Xt&&rn?jge(LA(q)):null,gr=Xt&&Sn?MRn({dragItems:q,snapGrid:sn,x:Kn,y:_}):null;for(const[Ki,Wn]of q){if(!je.has(Ki))continue;let ei={x:Kn-Wn.distance.x,y:_-Wn.distance.y};Sn&&(ei=gr?{x:Math.round(ei.x+gr.x),y:Math.round(ei.y+gr.y)}:mN(ei,sn));let rr=null;if(Xt&&rn&&!Wn.extent&&Oi){const{positionAbsolute:sr}=Wn.internals,ri=sr.x-Oi.x+rn[0][0],ai=sr.x+Wn.measured.width-Oi.x2+rn[1][0],Mc=sr.y-Oi.y+rn[0][1],ku=sr.y+Wn.measured.height-Oi.y2+rn[1][1];rr=[[ri,Mc],[ai,ku]]}const{position:cr,positionAbsolute:_i}=qhn({nodeId:Ki,nextPosition:ei,nodeLookup:je,nodeExtent:rr||rn,nodeOrigin:Bn,onError:Nn});Jt=Jt||Wn.position.x!==cr.x||Wn.position.y!==cr.y,Wn.position=cr,Wn.internals.positionAbsolute=_i}if(Z=Z||Jt,!!Jt&&(qn(q,!0),U&&(N||dn||!Xe&&Jn))){const[Ki,Wn]=wge({nodeId:Xe,dragItems:q,nodeLookup:je});N==null||N(U,q,Ki,Wn),dn==null||dn(U,Ki,Wn),Xe||Jn==null||Jn(U,Wn)}}async function jn(){if(!pe)return;const{transform:Kn,panBy:_,autoPanSpeed:je,autoPanOnNodeDrag:rn}=E();if(!rn){te=!1,cancelAnimationFrame(v);return}const[sn,Sn]=Lge(ie,pe,je);(sn!==0||Sn!==0)&&($.x=($.x??0)-sn/Kn[2],$.y=($.y??0)-Sn/Kn[2],await _({x:sn,y:Sn})&&vn($)),v=requestAnimationFrame(jn)}function et(Kn){var Xt;const{nodeLookup:_,multiSelectionActive:je,nodesDraggable:rn,transform:sn,snapGrid:Sn,snapToGrid:Bn,selectNodesOnDrag:dn,onNodeDragStart:Jn,onSelectionDragStart:Nn,unselectNodesAndEdges:qn}=E();oe=!0,(!dn||!Qe)&&!je&&Xe&&((Xt=_.get(Xe))!=null&&Xt.selected||qn()),Qe&&dn&&Xe&&(p==null||p(Xe));const Jt=sN(Kn.sourceEvent,{transform:sn,snapGrid:Sn,snapToGrid:Bn,containerBounds:pe});if($=Jt,q=ARn(_,rn,Jt,Xe),q.size>0&&(P||Jn||!Xe&&Nn)){const[Oi,gr]=wge({nodeId:Xe,dragItems:q,nodeLookup:_});P==null||P(Kn.sourceEvent,q,Oi,gr),Jn==null||Jn(Kn.sourceEvent,Oi,gr),Xe||Nn==null||Nn(Kn.sourceEvent,gr)}}const Dn=Bhn().clickDistance(Ze).on("start",Kn=>{const{domNode:_,nodeDragThreshold:je,transform:rn,snapGrid:sn,snapToGrid:Sn}=E();pe=(_==null?void 0:_.getBoundingClientRect())||null,ne=!1,Z=!1,U=Kn.sourceEvent,je===0&&et(Kn),$=sN(Kn.sourceEvent,{transform:rn,snapGrid:sn,snapToGrid:Sn,containerBounds:pe}),ie=t2(Kn.sourceEvent,pe)}).on("drag",Kn=>{const{autoPanOnNodeDrag:_,transform:je,snapGrid:rn,snapToGrid:sn,nodeDragThreshold:Sn,nodeLookup:Bn}=E(),dn=sN(Kn.sourceEvent,{transform:je,snapGrid:rn,snapToGrid:sn,containerBounds:pe});if(U=Kn.sourceEvent,(Kn.sourceEvent.type==="touchmove"&&Kn.sourceEvent.touches.length>1||Xe&&!Bn.has(Xe))&&(ne=!0),!ne){if(!te&&_&&oe&&(te=!0,jn()),!oe){const Jn=t2(Kn.sourceEvent,pe),Nn=Jn.x-ie.x,qn=Jn.y-ie.y;Math.sqrt(Nn*Nn+qn*qn)>Sn&&et(Kn)}($.x!==dn.xSnapped||$.y!==dn.ySnapped)&&q&&oe&&(ie=t2(Kn.sourceEvent,pe),vn(dn))}}).on("end",Kn=>{if(!oe||ne){ne&&q.size>0&&E().updateNodePositions(q,!1);return}if(te=!1,oe=!1,cancelAnimationFrame(v),q.size>0){const{nodeLookup:_,updateNodePositions:je,onNodeDragStop:rn,onSelectionDragStop:sn}=E();if(Z&&(je(q,!1),Z=!1),D||rn||!Xe&&sn){const[Sn,Bn]=wge({nodeId:Xe,dragItems:q,nodeLookup:_,dragging:!1});D==null||D(Kn.sourceEvent,q,Sn,Bn),rn==null||rn(Kn.sourceEvent,Sn,Bn),Xe||sn==null||sn(Kn.sourceEvent,Bn)}}}).filter(Kn=>{const _=Kn.target;return!Kn.button&&(!we||!ehn(_,`.${we}`,Ce))&&(!ee||ehn(_,ee,Ce))});z.call(Dn)}function re(){z==null||z.on(".drag",null)}return{update:Ee,destroy:re}}function xRn(p,E,P){const N=[],D={x:p.x-P,y:p.y-P,width:P*2,height:P*2};for(const $ of E.values())BX(D,bN($))>0&&N.push($);return N}const TRn=250;function SRn(p,E,P,N){var q,te;let D=[],$=1/0;const v=xRn(p,P,E+TRn);for(const ie of v){const pe=[...((q=ie.internals.handleBounds)==null?void 0:q.source)??[],...((te=ie.internals.handleBounds)==null?void 0:te.target)??[]];for(const oe of pe){if(N.nodeId===oe.nodeId&&N.type===oe.type&&N.id===oe.id)continue;const{x:z,y:ne}=rk(ie,oe,oe.position,!0),Z=Math.sqrt(Math.pow(z-p.x,2)+Math.pow(ne-p.y,2));Z>E||(Z<$?(D=[{...oe,x:z,y:ne}],$=Z):Z===$&&D.push({...oe,x:z,y:ne}))}}if(!D.length)return null;if(D.length>1){const ie=N.type==="source"?"target":"source";return D.find(pe=>pe.type===ie)??D[0]}return D[0]}function san(p,E,P,N,D,$=!1){var ie,pe,oe;const v=N.get(p);if(!v)return null;const q=D==="strict"?(ie=v.internals.handleBounds)==null?void 0:ie[E]:[...((pe=v.internals.handleBounds)==null?void 0:pe.source)??[],...((oe=v.internals.handleBounds)==null?void 0:oe.target)??[]],te=(P?q==null?void 0:q.find(z=>z.id===P):q==null?void 0:q[0])??null;return te&&$?{...te,...rk(v,te,te.position,!0)}:te}function fan(p,E){return p||(E!=null&&E.classList.contains("target")?"target":E!=null&&E.classList.contains("source")?"source":null)}function IRn(p,E){let P=null;return E?P=!0:p&&!E&&(P=!1),P}const lan=()=>!0;function PRn(p,{connectionMode:E,connectionRadius:P,handleId:N,nodeId:D,edgeUpdaterType:$,isTarget:v,domNode:q,nodeLookup:te,lib:ie,autoPanOnConnect:pe,flowId:oe,panBy:z,cancelConnection:ne,onConnectStart:Z,onConnect:U,onConnectEnd:Ee,isValidConnection:re=lan,onReconnectEnd:we,updateConnection:ee,getTransform:Ce,getFromHandle:Qe,autoPanSpeed:Xe,dragThreshold:Ze=1,handleDomNode:vn}){const jn=Yhn(p.target);let et=0,Dn;const{x:Kn,y:_}=t2(p),je=fan($,vn),rn=q==null?void 0:q.getBoundingClientRect();let sn=!1;if(!rn||!je)return;const Sn=san(D,je,N,te,E);if(!Sn)return;let Bn=t2(p,rn),dn=!1,Jn=null,Nn=!1,qn=null;function Jt(){if(!pe||!rn)return;const[cr,_i]=Lge(Bn,rn,Xe);z({x:cr,y:_i}),et=requestAnimationFrame(Jt)}const Xt={...Sn,nodeId:D,type:je,position:Sn.position},Oi=te.get(D);let Ki={inProgress:!0,isValid:null,from:rk(Oi,Xt,ji.Left,!0),fromHandle:Xt,fromPosition:Xt.position,fromNode:Oi,to:Bn,toHandle:null,toPosition:Gln[Xt.position],toNode:null,pointer:Bn};function Wn(){sn=!0,ee(Ki),Z==null||Z(p,{nodeId:D,handleId:N,handleType:je})}Ze===0&&Wn();function ei(cr){if(!sn){const{x:ku,y:ic}=t2(cr),Sa=ku-Kn,ph=ic-_;if(!(Sa*Sa+ph*ph>Ze*Ze))return;Wn()}if(!Qe()||!Xt){rr(cr);return}const _i=Ce();Bn=t2(cr,rn),Dn=SRn(vN(Bn,_i,!1,[1,1]),P,te,Xt),dn||(Jt(),dn=!0);const sr=han(cr,{handle:Dn,connectionMode:E,fromNodeId:D,fromHandleId:N,fromType:v?"target":"source",isValidConnection:re,doc:jn,lib:ie,flowId:oe,nodeLookup:te});qn=sr.handleDomNode,Jn=sr.connection,Nn=IRn(!!Dn,sr.isValid);const ri=te.get(D),ai=ri?rk(ri,Xt,ji.Left,!0):Ki.from,Mc={...Ki,from:ai,isValid:Nn,to:sr.toHandle&&Nn?NA({x:sr.toHandle.x,y:sr.toHandle.y},_i):Bn,toHandle:sr.toHandle,toPosition:Nn&&sr.toHandle?sr.toHandle.position:Gln[Xt.position],toNode:sr.toHandle?te.get(sr.toHandle.nodeId):null,pointer:Bn};ee(Mc),Ki=Mc}function rr(cr){if(!("touches"in cr&&cr.touches.length>0)){if(sn){(Dn||qn)&&Jn&&Nn&&(U==null||U(Jn));const{inProgress:_i,...sr}=Ki,ri={...sr,toPosition:Ki.toHandle?Ki.toPosition:null};Ee==null||Ee(cr,ri),$&&(we==null||we(cr,ri))}ne(),cancelAnimationFrame(et),dn=!1,Nn=!1,Jn=null,qn=null,jn.removeEventListener("mousemove",ei),jn.removeEventListener("mouseup",rr),jn.removeEventListener("touchmove",ei),jn.removeEventListener("touchend",rr)}}jn.addEventListener("mousemove",ei),jn.addEventListener("mouseup",rr),jn.addEventListener("touchmove",ei),jn.addEventListener("touchend",rr)}function han(p,{handle:E,connectionMode:P,fromNodeId:N,fromHandleId:D,fromType:$,doc:v,lib:q,flowId:te,isValidConnection:ie=lan,nodeLookup:pe}){const oe=$==="target",z=E?v.querySelector(`.${q}-flow__handle[data-id="${te}-${E==null?void 0:E.nodeId}-${E==null?void 0:E.id}-${E==null?void 0:E.type}"]`):null,{x:ne,y:Z}=t2(p),U=v.elementFromPoint(ne,Z),Ee=U!=null&&U.classList.contains(`${q}-flow__handle`)?U:z,re={handleDomNode:Ee,isValid:!1,connection:null,toHandle:null};if(Ee){const we=fan(void 0,Ee),ee=Ee.getAttribute("data-nodeid"),Ce=Ee.getAttribute("data-handleid"),Qe=Ee.classList.contains("connectable"),Xe=Ee.classList.contains("connectableend");if(!ee||!we)return re;const Ze={source:oe?ee:N,sourceHandle:oe?Ce:D,target:oe?N:ee,targetHandle:oe?D:Ce};re.connection=Ze;const jn=Qe&&Xe&&(P===PA.Strict?oe&&we==="source"||!oe&&we==="target":ee!==N||Ce!==D);re.isValid=jn&&ie(Ze),re.toHandle=san(ee,we,Ce,pe,P,!0)}return re}const Cge={onPointerDown:PRn,isValid:han};function ORn({domNode:p,panZoom:E,getTransform:P,getViewScale:N}){const D=B0(p);function $({translateExtent:q,width:te,height:ie,zoomStep:pe=1,pannable:oe=!0,zoomable:z=!0,inversePan:ne=!1}){const Z=ee=>{if(ee.sourceEvent.type!=="wheel"||!E)return;const Ce=P(),Qe=ee.sourceEvent.ctrlKey&&wN()?10:1,Xe=-ee.sourceEvent.deltaY*(ee.sourceEvent.deltaMode===1?.05:ee.sourceEvent.deltaMode?1:.002)*pe,Ze=Ce[2]*Math.pow(2,Xe*Qe);E.scaleTo(Ze)};let U=[0,0];const Ee=ee=>{(ee.sourceEvent.type==="mousedown"||ee.sourceEvent.type==="touchstart")&&(U=[ee.sourceEvent.clientX??ee.sourceEvent.touches[0].clientX,ee.sourceEvent.clientY??ee.sourceEvent.touches[0].clientY])},re=ee=>{const Ce=P();if(ee.sourceEvent.type!=="mousemove"&&ee.sourceEvent.type!=="touchmove"||!E)return;const Qe=[ee.sourceEvent.clientX??ee.sourceEvent.touches[0].clientX,ee.sourceEvent.clientY??ee.sourceEvent.touches[0].clientY],Xe=[Qe[0]-U[0],Qe[1]-U[1]];U=Qe;const Ze=N()*Math.max(Ce[2],Math.log(Ce[2]))*(ne?-1:1),vn={x:Ce[0]-Xe[0]*Ze,y:Ce[1]-Xe[1]*Ze},jn=[[0,0],[te,ie]];E.setViewportConstrained({x:vn.x,y:vn.y,zoom:Ce[2]},jn,q)},we=Rhn().on("start",Ee).on("zoom",oe?re:null).on("zoom.wheel",z?Z:null);D.call(we,{})}function v(){D.on("zoom",null)}return{update:$,destroy:v,pointer:e2}}const HX=p=>({x:p.x,y:p.y,zoom:p.k}),gge=({x:p,y:E,zoom:P})=>Oge.translate(p,E).scale(P),q5=(p,E)=>p.target.closest(`.${E}`),aan=(p,E)=>E===2&&Array.isArray(p)&&p.includes(2),NRn=p=>((p*=2)<=1?p*p*p:(p-=2)*p*p+2)/2,pge=(p,E=0,P=NRn,N=()=>{})=>{const D=typeof E=="number"&&E>0;return D||N(),D?p.transition().duration(E).ease(P).on("end",N):p},dan=p=>{const E=p.ctrlKey&&wN()?10:1;return-p.deltaY*(p.deltaMode===1?.05:p.deltaMode?1:.002)*E};function DRn({zoomPanValues:p,noWheelClassName:E,d3Selection:P,d3Zoom:N,panOnScrollMode:D,panOnScrollSpeed:$,zoomOnPinch:v,onPanZoomStart:q,onPanZoom:te,onPanZoomEnd:ie}){return pe=>{if(q5(pe,E))return pe.ctrlKey&&pe.preventDefault(),!1;pe.preventDefault(),pe.stopImmediatePropagation();const oe=P.property("__zoom").k||1;if(pe.ctrlKey&&v){const Ee=e2(pe),re=dan(pe),we=oe*Math.pow(2,re);N.scaleTo(P,we,Ee,pe);return}const z=pe.deltaMode===1?20:1;let ne=D===nk.Vertical?0:pe.deltaX*z,Z=D===nk.Horizontal?0:pe.deltaY*z;!wN()&&pe.shiftKey&&D!==nk.Vertical&&(ne=pe.deltaY*z,Z=0),N.translateBy(P,-(ne/oe)*$,-(Z/oe)*$,{internal:!0});const U=HX(P.property("__zoom"));clearTimeout(p.panScrollTimeout),p.isPanScrolling?te==null||te(pe,U):(p.isPanScrolling=!0,q==null||q(pe,U)),p.panScrollTimeout=setTimeout(()=>{ie==null||ie(pe,U),p.isPanScrolling=!1},150)}}function LRn({noWheelClassName:p,preventScrolling:E,d3ZoomHandler:P}){return function(N,D){const $=N.type==="wheel",v=!E&&$&&!N.ctrlKey,q=q5(N,p);if(N.ctrlKey&&$&&q&&N.preventDefault(),v||q)return null;N.preventDefault(),P.call(this,N,D)}}function $Rn({zoomPanValues:p,onDraggingChange:E,onPanZoomStart:P}){return N=>{var $,v,q;if(($=N.sourceEvent)!=null&&$.internal)return;const D=HX(N.transform);p.mouseButton=((v=N.sourceEvent)==null?void 0:v.button)||0,p.isZoomingOrPanning=!0,p.prevViewport=D,((q=N.sourceEvent)==null?void 0:q.type)==="mousedown"&&E(!0),P&&(P==null||P(N.sourceEvent,D))}}function FRn({zoomPanValues:p,panOnDrag:E,onPaneContextMenu:P,onTransformChange:N,onPanZoom:D}){return $=>{var v,q;p.usedRightMouseButton=!!(P&&aan(E,p.mouseButton??0)),(v=$.sourceEvent)!=null&&v.sync||N([$.transform.x,$.transform.y,$.transform.k]),D&&!((q=$.sourceEvent)!=null&&q.internal)&&(D==null||D($.sourceEvent,HX($.transform)))}}function BRn({zoomPanValues:p,panOnDrag:E,panOnScroll:P,onDraggingChange:N,onPanZoomEnd:D,onPaneContextMenu:$}){return v=>{var q;if(!((q=v.sourceEvent)!=null&&q.internal)&&(p.isZoomingOrPanning=!1,$&&aan(E,p.mouseButton??0)&&!p.usedRightMouseButton&&v.sourceEvent&&$(v.sourceEvent),p.usedRightMouseButton=!1,N(!1),D)){const te=HX(v.transform);p.prevViewport=te,clearTimeout(p.timerId),p.timerId=setTimeout(()=>{D==null||D(v.sourceEvent,te)},P?150:0)}}}function RRn({panActivationKeyPressed:p,zoomActivationKeyPressed:E,zoomOnScroll:P,zoomOnPinch:N,panOnDrag:D,panOnScroll:$,zoomOnDoubleClick:v,userSelectionActive:q,noWheelClassName:te,noPanClassName:ie,lib:pe,connectionInProgress:oe}){return z=>{var re;const ne=E||P,Z=N&&z.ctrlKey,U=z.type==="wheel";if(z.button===1&&z.type==="mousedown"&&(q5(z,`${pe}-flow__node`)||q5(z,`${pe}-flow__edge`)||q5(z,`${pe}-flow__selection`)||q5(z,`${pe}-flow__nodesselection`)))return!0;if(!D&&!ne&&!$&&!v&&!N||q||oe&&!U||q5(z,te)&&U||q5(z,ie)&&(!U||$&&U&&!E)||!N&&z.ctrlKey&&U)return!1;if(!N&&z.type==="touchstart"&&((re=z.touches)==null?void 0:re.length)>1)return z.preventDefault(),!1;if(!ne&&!$&&!Z&&U||!D&&(z.type==="mousedown"||z.type==="touchstart")||Array.isArray(D)&&!D.includes(z.button)&&z.type==="mousedown")return!1;const Ee=Array.isArray(D)&&D.includes(z.button)||!z.button||z.button<=1;return(!z.ctrlKey||U||p)&&Ee}}function _Rn({domNode:p,minZoom:E,maxZoom:P,translateExtent:N,viewport:D,onPanZoom:$,onPanZoomStart:v,onPanZoomEnd:q,onDraggingChange:te}){const ie={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},pe=p.getBoundingClientRect();let oe=[[0,0],[pe.width,pe.height]];const z=typeof ResizeObserver<"u"?new ResizeObserver(_=>{const je=_[0];je&&(oe=[[0,0],[je.contentRect.width,je.contentRect.height]])}):null;z==null||z.observe(p);const ne=Rhn().extent(()=>oe).scaleExtent([E,P]).translateExtent(N),Z=B0(p).call(ne);Ce({x:D.x,y:D.y,zoom:OA(D.zoom,E,P)},[[0,0],[pe.width,pe.height]],N);const U=Z.on("wheel.zoom"),Ee=Z.on("dblclick.zoom");ne.wheelDelta(dan);async function re(_,je){return Z?new Promise(rn=>{ne==null||ne.interpolate((je==null?void 0:je.interpolate)==="linear"?hge:NX).transform(pge(Z,je==null?void 0:je.duration,je==null?void 0:je.ease,()=>rn(!0)),_)}):!1}function we({noWheelClassName:_,noPanClassName:je,onPaneContextMenu:rn,userSelectionActive:sn,panOnScroll:Sn,panOnDrag:Bn,panOnScrollMode:dn,panOnScrollSpeed:Jn,preventScrolling:Nn,zoomOnPinch:qn,zoomOnScroll:Jt,zoomOnDoubleClick:Xt,panActivationKeyPressed:Oi=!1,zoomActivationKeyPressed:gr,lib:Ki,onTransformChange:Wn,connectionInProgress:ei,paneClickDistance:rr,selectionOnDrag:cr}){sn&&!ie.isZoomingOrPanning&&ee();const _i=Sn&&!gr&&!sn;ne.clickDistance(cr?1/0:!n2(rr)||rr<0?0:rr);const sr=_i?DRn({zoomPanValues:ie,noWheelClassName:_,d3Selection:Z,d3Zoom:ne,panOnScrollMode:dn,panOnScrollSpeed:Jn,zoomOnPinch:qn,onPanZoomStart:v,onPanZoom:$,onPanZoomEnd:q}):LRn({noWheelClassName:_,preventScrolling:Nn,d3ZoomHandler:U});Z.on("wheel.zoom",sr,{passive:!1});const ri=$Rn({zoomPanValues:ie,onDraggingChange:te,onPanZoomStart:v});ne.on("start",ri);const ai=FRn({zoomPanValues:ie,panOnDrag:Bn,onPaneContextMenu:!!rn,onPanZoom:$,onTransformChange:Wn});ne.on("zoom",ai);const Mc=BRn({zoomPanValues:ie,panOnDrag:Bn,panOnScroll:Sn,onPaneContextMenu:rn,onPanZoomEnd:q,onDraggingChange:te});ne.on("end",Mc);const ku=RRn({panActivationKeyPressed:Oi,zoomActivationKeyPressed:gr,panOnDrag:Bn,zoomOnScroll:Jt,panOnScroll:Sn,zoomOnDoubleClick:Xt,zoomOnPinch:qn,userSelectionActive:sn,noPanClassName:je,noWheelClassName:_,lib:Ki,connectionInProgress:ei});ne.filter(ku),Xt?Z.on("dblclick.zoom",Ee):Z.on("dblclick.zoom",null)}function ee(){ne.on("zoom",null)}async function Ce(_,je,rn){const sn=gge(_),Sn=ne==null?void 0:ne.constrain()(sn,je,rn);return Sn&&await re(Sn),Sn}async function Qe(_,je){const rn=gge(_);return await re(rn,je),rn}function Xe(_){if(Z){const je=gge(_),rn=Z.property("__zoom");(rn.k!==_.zoom||rn.x!==_.x||rn.y!==_.y)&&(ne==null||ne.transform(Z,je,null,{sync:!0}))}}function Ze(){const _=Z?yBn(Z.node()):{x:0,y:0,k:1};return{x:_.x,y:_.y,zoom:_.k}}async function vn(_,je){return Z?new Promise(rn=>{ne==null||ne.interpolate((je==null?void 0:je.interpolate)==="linear"?hge:NX).scaleTo(pge(Z,je==null?void 0:je.duration,je==null?void 0:je.ease,()=>rn(!0)),_)}):!1}async function jn(_,je){return Z?new Promise(rn=>{ne==null||ne.interpolate((je==null?void 0:je.interpolate)==="linear"?hge:NX).scaleBy(pge(Z,je==null?void 0:je.duration,je==null?void 0:je.ease,()=>rn(!0)),_)}):!1}function et(_){ne==null||ne.scaleExtent(_)}function Dn(_){ne==null||ne.translateExtent(_)}function Kn(_){const je=!n2(_)||_<0?0:_;ne==null||ne.clickDistance(je)}return{update:we,destroy:ee,setViewport:Qe,setViewportConstrained:Ce,getViewport:Ze,scaleTo:vn,scaleBy:jn,setScaleExtent:et,setTranslateExtent:Dn,syncViewport:Xe,setClickDistance:Kn}}var DA;(function(p){p.Line="line",p.Handle="handle"})(DA||(DA={}));function JRn({width:p,prevWidth:E,height:P,prevHeight:N,affectsX:D,affectsY:$}){const v=p-E,q=P-N,te=[v>0?1:v<0?-1:0,q>0?1:q<0?-1:0];return v&&D&&(te[0]=te[0]*-1),q&&$&&(te[1]=te[1]*-1),te}function nhn(p){const E=p.includes("right")||p.includes("left"),P=p.includes("bottom")||p.includes("top"),N=p.includes("left"),D=p.includes("top");return{isHorizontal:E,isVertical:P,affectsX:N,affectsY:D}}function G5(p,E){return Math.max(0,E-p)}function H5(p,E){return Math.max(0,p-E)}function SX(p,E,P){return Math.max(0,E-p,p-P)}function thn(p,E){return p?!E:E}function GRn(p,E,P,N,D,$,v,q){let{affectsX:te,affectsY:ie}=E;const{isHorizontal:pe,isVertical:oe}=E,z=pe&&oe,{xSnapped:ne,ySnapped:Z}=P,{minWidth:U,maxWidth:Ee,minHeight:re,maxHeight:we}=N,{x:ee,y:Ce,width:Qe,height:Xe,aspectRatio:Ze}=p;let vn=Math.floor(pe?ne-p.pointerX:0),jn=Math.floor(oe?Z-p.pointerY:0);const et=Qe+(te?-vn:vn),Dn=Xe+(ie?-jn:jn),Kn=-$[0]*Qe,_=-$[1]*Xe;let je=SX(et,U,Ee),rn=SX(Dn,re,we);if(v){let Bn=0,dn=0;te&&vn<0?Bn=G5(ee+vn+Kn,v[0][0]):!te&&vn>0&&(Bn=H5(ee+et+Kn,v[1][0])),ie&&jn<0?dn=G5(Ce+jn+_,v[0][1]):!ie&&jn>0&&(dn=H5(Ce+Dn+_,v[1][1])),je=Math.max(je,Bn),rn=Math.max(rn,dn)}if(q){let Bn=0,dn=0;te&&vn>0?Bn=H5(ee+vn,q[0][0]):!te&&vn<0&&(Bn=G5(ee+et,q[1][0])),ie&&jn>0?dn=H5(Ce+jn,q[0][1]):!ie&&jn<0&&(dn=G5(Ce+Dn,q[1][1])),je=Math.max(je,Bn),rn=Math.max(rn,dn)}if(D){if(pe){const Bn=SX(et/Ze,re,we)*Ze;if(je=Math.max(je,Bn),v){let dn=0;!te&&!ie||te&&!ie&&z?dn=H5(Ce+_+et/Ze,v[1][1])*Ze:dn=G5(Ce+_+(te?vn:-vn)/Ze,v[0][1])*Ze,je=Math.max(je,dn)}if(q){let dn=0;!te&&!ie||te&&!ie&&z?dn=G5(Ce+et/Ze,q[1][1])*Ze:dn=H5(Ce+(te?vn:-vn)/Ze,q[0][1])*Ze,je=Math.max(je,dn)}}if(oe){const Bn=SX(Dn*Ze,U,Ee)/Ze;if(rn=Math.max(rn,Bn),v){let dn=0;!te&&!ie||ie&&!te&&z?dn=H5(ee+Dn*Ze+Kn,v[1][0])/Ze:dn=G5(ee+(ie?jn:-jn)*Ze+Kn,v[0][0])/Ze,rn=Math.max(rn,dn)}if(q){let dn=0;!te&&!ie||ie&&!te&&z?dn=G5(ee+Dn*Ze,q[1][0])/Ze:dn=H5(ee+(ie?jn:-jn)*Ze,q[0][0])/Ze,rn=Math.max(rn,dn)}}}jn=jn+(jn<0?rn:-rn),vn=vn+(vn<0?je:-je),D&&(z?et>Dn*Ze?jn=(thn(te,ie)?-vn:vn)/Ze:vn=(thn(te,ie)?-jn:jn)*Ze:pe?(jn=vn/Ze,ie=te):(vn=jn*Ze,te=ie));const sn=te?ee+vn:ee,Sn=ie?Ce+jn:Ce;return{width:Qe+(te?-vn:vn),height:Xe+(ie?-jn:jn),x:$[0]*vn*(te?-1:1)+sn,y:$[1]*jn*(ie?-1:1)+Sn}}const ban={width:0,height:0,x:0,y:0},HRn={...ban,pointerX:0,pointerY:0,aspectRatio:1};function qRn(p,E,P){const N=E.position.x+p.position.x,D=E.position.y+p.position.y,$=p.measured.width??0,v=p.measured.height??0,q=P[0]*$,te=P[1]*v;return[[N-q,D-te],[N+$-q,D+v-te]]}function zRn({domNode:p,nodeId:E,getStoreItems:P,onChange:N,onEnd:D}){const $=B0(p);let v={controlDirection:nhn("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function q({controlPosition:ie,boundaries:pe,keepAspectRatio:oe,resizeDirection:z,onResizeStart:ne,onResize:Z,onResizeEnd:U,shouldResize:Ee}){let re={...ban},we={...HRn};v={boundaries:pe,resizeDirection:z,keepAspectRatio:oe,controlDirection:nhn(ie)};let ee,Ce=null,Qe=[],Xe,Ze,vn;const jn=Bhn().on("start",et=>{const{nodeLookup:Dn,transform:Kn,snapGrid:_,snapToGrid:je,nodeOrigin:rn,paneDomNode:sn}=P();if(ee=Dn.get(E),!ee)return;Ce=(sn==null?void 0:sn.getBoundingClientRect())??null;const{xSnapped:Sn,ySnapped:Bn}=sN(et.sourceEvent,{transform:Kn,snapGrid:_,snapToGrid:je,containerBounds:Ce});re={width:ee.measured.width??0,height:ee.measured.height??0,x:ee.position.x??0,y:ee.position.y??0},we={...re,pointerX:Sn,pointerY:Bn,aspectRatio:re.width/re.height},Xe=void 0,Ze=ik(ee.extent)?ee.extent:void 0,ee.parentId&&(ee.extent==="parent"||ee.expandParent)&&(Xe=Dn.get(ee.parentId)),Xe&&ee.extent==="parent"&&(Ze=[[0,0],[Xe.measured.width,Xe.measured.height]]),Qe=[],vn=void 0;for(const[dn,Jn]of Dn)if(Jn.parentId===E&&(Qe.push({id:dn,position:{...Jn.position},extent:Jn.extent}),Jn.extent==="parent"||Jn.expandParent)){const Nn=qRn(Jn,ee,Jn.origin??rn);vn?vn=[[Math.min(Nn[0][0],vn[0][0]),Math.min(Nn[0][1],vn[0][1])],[Math.max(Nn[1][0],vn[1][0]),Math.max(Nn[1][1],vn[1][1])]]:vn=Nn}ne==null||ne(et,{...re})}).on("drag",et=>{const{transform:Dn,snapGrid:Kn,snapToGrid:_,nodeOrigin:je}=P(),rn=sN(et.sourceEvent,{transform:Dn,snapGrid:Kn,snapToGrid:_,containerBounds:Ce}),sn=[];if(!ee)return;const{x:Sn,y:Bn,width:dn,height:Jn}=re,Nn={},qn=ee.origin??je,{width:Jt,height:Xt,x:Oi,y:gr}=GRn(we,v.controlDirection,rn,v.boundaries,v.keepAspectRatio,qn,Ze,vn),Ki=Jt!==dn,Wn=Xt!==Jn,ei=Oi!==Sn&&Ki,rr=gr!==Bn&&Wn;if(!ei&&!rr&&!Ki&&!Wn)return;const cr={prevValues:{...re},startX:we.x,startY:we.y,childNodes:Qe.map(ai=>({...ai,position:{...ai.position}}))};if((ei||rr||qn[0]===1||qn[1]===1)&&(Nn.x=ei?Oi:re.x,Nn.y=rr?gr:re.y,re.x=Nn.x,re.y=Nn.y,Qe.length>0)){const ai=Oi-Sn,Mc=gr-Bn;for(const ku of Qe)ku.position={x:ku.position.x-ai+qn[0]*(Jt-dn),y:ku.position.y-Mc+qn[1]*(Xt-Jn)},sn.push(ku)}if((Ki||Wn)&&(Nn.width=Ki&&(!v.resizeDirection||v.resizeDirection==="horizontal")?Jt:re.width,Nn.height=Wn&&(!v.resizeDirection||v.resizeDirection==="vertical")?Xt:re.height,re.width=Nn.width,re.height=Nn.height),Xe&&ee.expandParent){const ai=qn[0]*(Nn.width??0);Nn.x&&Nn.x<ai&&(re.x=ai,we.x=we.x-(Nn.x-ai));const Mc=qn[1]*(Nn.height??0);Nn.y&&Nn.y<Mc&&(re.y=Mc,we.y=we.y-(Nn.y-Mc))}const _i=JRn({width:re.width,prevWidth:dn,height:re.height,prevHeight:Jn,affectsX:v.controlDirection.affectsX,affectsY:v.controlDirection.affectsY}),sr={...re,direction:_i};if((Ee==null?void 0:Ee(et,sr))===!1){re=cr.prevValues,we.x=cr.startX,we.y=cr.startY,Qe.forEach((ai,Mc)=>{ai.position=cr.childNodes[Mc].position});return}Z==null||Z(et,sr),N(Nn,sn)}).on("end",et=>{U==null||U(et,{...re}),D==null||D({...re})});$.call(jn)}function te(){$.on(".drag",null)}return{update:q,destroy:te}}const URn={},ihn=p=>{let E;const P=new Set,N=(pe,oe)=>{const z=typeof pe=="function"?pe(E):pe;if(!Object.is(z,E)){const ne=E;E=oe??(typeof z!="object"||z===null)?z:Object.assign({},E,z),P.forEach(Z=>Z(E,ne))}},D=()=>E,te={setState:N,getState:D,getInitialState:()=>ie,subscribe:pe=>(P.add(pe),()=>P.delete(pe)),destroy:()=>{(URn?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),P.clear()}},ie=E=p(N,D,te);return te},XRn=p=>p?ihn(p):ihn,{useDebugValue:KRn}=qFn,{useSyncExternalStoreWithSelector:WRn}=HFn,VRn=p=>p;function wan(p,E=VRn,P){const N=WRn(p.subscribe,p.getState,p.getServerState||p.getInitialState,E,P);return KRn(N),N}const rhn=(p,E)=>{const P=XRn(p),N=(D,$=E)=>wan(P,D,$);return Object.assign(N,P),N},QRn=(p,E)=>p?rhn(p,E):rhn;function Cs(p,E){if(Object.is(p,E))return!0;if(typeof p!="object"||p===null||typeof E!="object"||E===null)return!1;if(p instanceof Map&&E instanceof Map){if(p.size!==E.size)return!1;for(const[N,D]of p)if(!Object.is(D,E.get(N)))return!1;return!0}if(p instanceof Set&&E instanceof Set){if(p.size!==E.size)return!1;for(const N of p)if(!E.has(N))return!1;return!0}const P=Object.keys(p);if(P.length!==Object.keys(E).length)return!1;for(const N of P)if(!Object.prototype.hasOwnProperty.call(E,N)||!Object.is(p[N],E[N]))return!1;return!0}const qX=cn.createContext(null),YRn=qX.Provider,gan=r2.error001("react");function Sc(p,E){const P=cn.useContext(qX);if(P===null)throw new Error(gan);return wan(P,p,E)}function cs(){const p=cn.useContext(qX);if(p===null)throw new Error(gan);return cn.useMemo(()=>({getState:p.getState,setState:p.setState,subscribe:p.subscribe}),[p])}const chn={display:"none"},ZRn={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},pan="react-flow__node-desc",man="react-flow__edge-desc",e_n="react-flow__aria-live",n_n=p=>p.ariaLiveMessage,t_n=p=>p.ariaLabelConfig;function i_n({rfId:p}){const E=Sc(n_n);return le.jsx("div",{id:`${e_n}-${p}`,"aria-live":"assertive","aria-atomic":"true",style:ZRn,children:E})}function r_n({rfId:p,disableKeyboardA11y:E}){const P=Sc(t_n);return le.jsxs(le.Fragment,{children:[le.jsx("div",{id:`${pan}-${p}`,style:chn,children:E?P["node.a11yDescription.default"]:P["node.a11yDescription.keyboardDisabled"]}),le.jsx("div",{id:`${man}-${p}`,style:chn,children:P["edge.a11yDescription.default"]}),!E&&le.jsx(i_n,{rfId:p})]})}const kN=cn.forwardRef(({position:p="top-left",children:E,className:P,style:N,...D},$)=>{const v=`${p}`.split("-");return le.jsx("div",{className:Xf(["react-flow__panel",P,...v]),style:N,ref:$,...D,children:E})});kN.displayName="Panel";const uhn="https://reactflow.dev?utm_source=attribution";function c_n({proOptions:p,position:E="bottom-right"}){return cn.useEffect(()=>{},[]),p!=null&&p.hideAttribution?null:le.jsx(kN,{position:E,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${uhn}`,children:le.jsx("a",{href:uhn,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const u_n=p=>{const E=[],P=[];for(const[,N]of p.nodeLookup)N.selected&&E.push(N.internals.userNode);for(const[,N]of p.edgeLookup)N.selected&&P.push(N);return{selectedNodes:E,selectedEdges:P}},IX=p=>p.id;function o_n(p,E){return Cs(p.selectedNodes.map(IX),E.selectedNodes.map(IX))&&Cs(p.selectedEdges.map(IX),E.selectedEdges.map(IX))}function s_n({onSelectionChange:p}){const E=cs(),{selectedNodes:P,selectedEdges:N}=Sc(u_n,o_n);return cn.useEffect(()=>{const D={nodes:P,edges:N};p==null||p(D),E.getState().onSelectionChangeHandlers.forEach($=>$(D))},[P,N,p]),null}const f_n=p=>!!p.onSelectionChangeHandlers;function l_n({onSelectionChange:p}){const E=Sc(f_n);return p||E?le.jsx(s_n,{onSelectionChange:p}):null}const van=[0,0],h_n={x:0,y:0,zoom:1},a_n=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],ohn=[...a_n,"rfId"],d_n=p=>({setNodes:p.setNodes,setEdges:p.setEdges,setMinZoom:p.setMinZoom,setMaxZoom:p.setMaxZoom,setTranslateExtent:p.setTranslateExtent,setNodeExtent:p.setNodeExtent,reset:p.reset,setDefaultNodesAndEdges:p.setDefaultNodesAndEdges}),shn={translateExtent:hN,nodeOrigin:van,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function b_n(p){const{setNodes:E,setEdges:P,setMinZoom:N,setMaxZoom:D,setTranslateExtent:$,setNodeExtent:v,reset:q,setDefaultNodesAndEdges:te}=Sc(d_n,Cs),ie=cs();cn.useEffect(()=>(te(p.defaultNodes,p.defaultEdges),()=>{pe.current=shn,q()}),[]);const pe=cn.useRef(shn);return cn.useEffect(()=>{for(const oe of ohn){const z=p[oe],ne=pe.current[oe];z!==ne&&(typeof p[oe]>"u"||(oe==="nodes"?E(z):oe==="edges"?P(z):oe==="minZoom"?N(z):oe==="maxZoom"?D(z):oe==="translateExtent"?$(z):oe==="nodeExtent"?v(z):oe==="ariaLabelConfig"?ie.setState({ariaLabelConfig:iRn(z)}):oe==="fitView"?ie.setState({fitViewQueued:z}):oe==="fitViewOptions"?ie.setState({fitViewOptions:z}):ie.setState({[oe]:z})))}pe.current=p},ohn.map(oe=>p[oe])),null}function fhn(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function w_n(p){var N;const[E,P]=cn.useState(p==="system"?null:p);return cn.useEffect(()=>{if(p!=="system"){P(p);return}const D=fhn(),$=()=>P(D!=null&&D.matches?"dark":"light");return $(),D==null||D.addEventListener("change",$),()=>{D==null||D.removeEventListener("change",$)}},[p]),E!==null?E:(N=fhn())!=null&&N.matches?"dark":"light"}const lhn=typeof document<"u"?document:null;function gN(p=null,E={target:lhn,actInsideInputWithModifier:!0}){const[P,N]=cn.useState(!1),D=cn.useRef(!1),$=cn.useRef(new Set([])),[v,q]=cn.useMemo(()=>{if(p!==null){const ie=(Array.isArray(p)?p:[p]).filter(oe=>typeof oe=="string").map(oe=>oe.replace(/\+/g,`
1
+ import{mE as HFn,R as qFn,r as cn,j as le,ez as Nhn,ji as zFn,k6 as UFn,ib as XFn,mF as KFn,ar as fN,by as Tge,B as Sge,aj as Dhn,G as i2,aS as Ige,b9 as Pge,b8 as WFn,_ as oN,f as VFn,iP as QFn,X as YFn,bx as ZFn,mG as eBn,eS as $ln,eR as nBn,ai as tBn,eP as Fln,ap as iBn,mH as rBn,ad as cBn,aw as uBn,ii as oBn,bX as AX,ff as sBn,x as Bln,ig as fBn,hM as lBn,fX as hBn,fY as aBn,fZ as dBn,f_ as bBn,f$ as wBn,g0 as gBn,g1 as pBn,g2 as mBn,ht as vBn}from"./index-DSYz85aL.js";import{s as B0,g as Lhn,j as Oge,T as fge,k as lge,t as yBn}from"./transform-BqqRT-Iy.js";import{i as hge}from"./value-wA6veExk.js";import{H as $X}from"./_shell.team-C9QJNwaK.js";import{H as kBn}from"./heart-CSbB9K4Q.js";import{a as age,A as jBn}from"./AdapterIcon-DT5OdFbe.js";import"./relay-trace-schemas-yWn__06J.js";import{d as EBn,c as ABn,a as MBn,B as CBn}from"./BindingDialog-JAPULq7H.js";import{s as xBn}from"./session-strategy-labels-C7Wduch3.js";import{c as MX}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{u as TBn}from"./use-mesh-topology-C5njB0KY.js";import{E as SBn}from"./empty-state-Xw8KQdod.js";import{Q as Rln}from"./query-error-state-C2QLFCgp.js";import{u as IBn}from"./use-bindings-Ci7hpEO4.js";import{u as PBn}from"./use-delete-binding-DDtaCc3v.js";import{u as OBn}from"./use-relay-config-D0BknsXK.js";import"./use-pending-read-CgR0BnSW.js";import"./search-x-DeFOvp_5.js";import"./scroll-area-DYTbXWMY.js";import"./OpenMeshSwitch-r6HJBjR6.js";import"./table-B8zvHC0J.js";import"./page-container-D2J6eon9.js";import"./profile-errors--0_JG2R0.js";import"./CommitmentList-D-CvccnF.js";import"./TeamComputerEntry-uj1GcPP_.js";import"./ComputerViewer-DbTGz3OL.js";import"./form-USBlP2n_.js";import"./use-adapter-catalog-DrDMqxhZ.js";import"./trust-posture-C9r0jGhc.js";function Xf(p){if(typeof p=="string"||typeof p=="number")return""+p;let E="";if(Array.isArray(p))for(let P=0,N;P<p.length;P++)(N=Xf(p[P]))!==""&&(E+=(E&&" ")+N);else for(let P in p)p[P]&&(E+=(E&&" ")+P);return E}function NBn(p){let E;for(;E=p.sourceEvent;)p=E;return p}function e2(p,E){if(p=NBn(p),E===void 0&&(E=p.currentTarget),E){var P=E.ownerSVGElement||E;if(P.createSVGPoint){var N=P.createSVGPoint();return N.x=p.clientX,N.y=p.clientY,N=N.matrixTransform(E.getScreenCTM().inverse()),[N.x,N.y]}if(E.getBoundingClientRect){var D=E.getBoundingClientRect();return[p.clientX-D.left-E.clientLeft,p.clientY-D.top-E.clientTop]}}return[p.pageX,p.pageY]}const DBn={passive:!1},lN={capture:!0,passive:!1};function dge(p){p.stopImmediatePropagation()}function IA(p){p.preventDefault(),p.stopImmediatePropagation()}function $hn(p){var E=p.document.documentElement,P=B0(p).on("dragstart.drag",IA,lN);"onselectstart"in E?P.on("selectstart.drag",IA,lN):(E.__noselect=E.style.MozUserSelect,E.style.MozUserSelect="none")}function Fhn(p,E){var P=p.document.documentElement,N=B0(p).on("dragstart.drag",null);E&&(N.on("click.drag",IA,lN),setTimeout(function(){N.on("click.drag",null)},0)),"onselectstart"in P?N.on("selectstart.drag",null):(P.style.MozUserSelect=P.__noselect,delete P.__noselect)}const CX=p=>()=>p;function kge(p,{sourceEvent:E,subject:P,target:N,identifier:D,active:$,x:v,y:q,dx:te,dy:ie,dispatch:pe}){Object.defineProperties(this,{type:{value:p,enumerable:!0,configurable:!0},sourceEvent:{value:E,enumerable:!0,configurable:!0},subject:{value:P,enumerable:!0,configurable:!0},target:{value:N,enumerable:!0,configurable:!0},identifier:{value:D,enumerable:!0,configurable:!0},active:{value:$,enumerable:!0,configurable:!0},x:{value:v,enumerable:!0,configurable:!0},y:{value:q,enumerable:!0,configurable:!0},dx:{value:te,enumerable:!0,configurable:!0},dy:{value:ie,enumerable:!0,configurable:!0},_:{value:pe}})}kge.prototype.on=function(){var p=this._.on.apply(this._,arguments);return p===this._?this:p};function LBn(p){return!p.ctrlKey&&!p.button}function $Bn(){return this.parentNode}function FBn(p,E){return E??{x:p.x,y:p.y}}function BBn(){return navigator.maxTouchPoints||"ontouchstart"in this}function Bhn(){var p=LBn,E=$Bn,P=FBn,N=BBn,D={},$=Lhn("start","drag","end"),v=0,q,te,ie,pe,oe=0;function z(Ce){Ce.on("mousedown.drag",ne).filter(N).on("touchstart.drag",Ee).on("touchmove.drag",re,DBn).on("touchend.drag touchcancel.drag",we).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function ne(Ce,Qe){if(!(pe||!p.call(this,Ce,Qe))){var Xe=ee(this,E.call(this,Ce,Qe),Ce,Qe,"mouse");Xe&&(B0(Ce.view).on("mousemove.drag",Z,lN).on("mouseup.drag",U,lN),$hn(Ce.view),dge(Ce),ie=!1,q=Ce.clientX,te=Ce.clientY,Xe("start",Ce))}}function Z(Ce){if(IA(Ce),!ie){var Qe=Ce.clientX-q,Xe=Ce.clientY-te;ie=Qe*Qe+Xe*Xe>oe}D.mouse("drag",Ce)}function U(Ce){B0(Ce.view).on("mousemove.drag mouseup.drag",null),Fhn(Ce.view,ie),IA(Ce),D.mouse("end",Ce)}function Ee(Ce,Qe){if(p.call(this,Ce,Qe)){var Xe=Ce.changedTouches,Ze=E.call(this,Ce,Qe),vn=Xe.length,jn,et;for(jn=0;jn<vn;++jn)(et=ee(this,Ze,Ce,Qe,Xe[jn].identifier,Xe[jn]))&&(dge(Ce),et("start",Ce,Xe[jn]))}}function re(Ce){var Qe=Ce.changedTouches,Xe=Qe.length,Ze,vn;for(Ze=0;Ze<Xe;++Ze)(vn=D[Qe[Ze].identifier])&&(IA(Ce),vn("drag",Ce,Qe[Ze]))}function we(Ce){var Qe=Ce.changedTouches,Xe=Qe.length,Ze,vn;for(pe&&clearTimeout(pe),pe=setTimeout(function(){pe=null},500),Ze=0;Ze<Xe;++Ze)(vn=D[Qe[Ze].identifier])&&(dge(Ce),vn("end",Ce,Qe[Ze]))}function ee(Ce,Qe,Xe,Ze,vn,jn){var et=$.copy(),Dn=e2(jn||Xe,Qe),Kn,_,je;if((je=P.call(Ce,new kge("beforestart",{sourceEvent:Xe,target:z,identifier:vn,active:v,x:Dn[0],y:Dn[1],dx:0,dy:0,dispatch:et}),Ze))!=null)return Kn=je.x-Dn[0]||0,_=je.y-Dn[1]||0,function rn(sn,Sn,Bn){var dn=Dn,Jn;switch(sn){case"start":D[vn]=rn,Jn=v++;break;case"end":delete D[vn],--v;case"drag":Dn=e2(Bn||Sn,Qe),Jn=v;break}et.call(sn,Ce,new kge(sn,{sourceEvent:Sn,subject:je,target:z,identifier:vn,active:Jn,x:Dn[0]+Kn,y:Dn[1]+_,dx:Dn[0]-dn[0],dy:Dn[1]-dn[1],dispatch:et}),Ze)}}return z.filter=function(Ce){return arguments.length?(p=typeof Ce=="function"?Ce:CX(!!Ce),z):p},z.container=function(Ce){return arguments.length?(E=typeof Ce=="function"?Ce:CX(Ce),z):E},z.subject=function(Ce){return arguments.length?(P=typeof Ce=="function"?Ce:CX(Ce),z):P},z.touchable=function(Ce){return arguments.length?(N=typeof Ce=="function"?Ce:CX(!!Ce),z):N},z.on=function(){var Ce=$.on.apply($,arguments);return Ce===$?z:Ce},z.clickDistance=function(Ce){return arguments.length?(oe=(Ce=+Ce)*Ce,z):Math.sqrt(oe)},z}var RBn=1e-12;function _ln(p){return((p=Math.exp(p))+1/p)/2}function _Bn(p){return((p=Math.exp(p))-1/p)/2}function JBn(p){return((p=Math.exp(2*p))-1)/(p+1)}const NX=(function p(E,P,N){function D($,v){var q=$[0],te=$[1],ie=$[2],pe=v[0],oe=v[1],z=v[2],ne=pe-q,Z=oe-te,U=ne*ne+Z*Z,Ee,re;if(U<RBn)re=Math.log(z/ie)/E,Ee=function(Ze){return[q+Ze*ne,te+Ze*Z,ie*Math.exp(E*Ze*re)]};else{var we=Math.sqrt(U),ee=(z*z-ie*ie+N*U)/(2*ie*P*we),Ce=(z*z-ie*ie-N*U)/(2*z*P*we),Qe=Math.log(Math.sqrt(ee*ee+1)-ee),Xe=Math.log(Math.sqrt(Ce*Ce+1)-Ce);re=(Xe-Qe)/E,Ee=function(Ze){var vn=Ze*re,jn=_ln(Qe),et=ie/(P*we)*(jn*JBn(E*vn+Qe)-_Bn(Qe));return[q+et*ne,te+et*Z,ie*jn/_ln(E*vn+Qe)]}}return Ee.duration=re*1e3*E/Math.SQRT2,Ee}return D.rho=function($){var v=Math.max(.001,+$),q=v*v,te=q*q;return p(v,q,te)},D})(Math.SQRT2,2,4),xX=p=>()=>p;function GBn(p,{sourceEvent:E,target:P,transform:N,dispatch:D}){Object.defineProperties(this,{type:{value:p,enumerable:!0,configurable:!0},sourceEvent:{value:E,enumerable:!0,configurable:!0},target:{value:P,enumerable:!0,configurable:!0},transform:{value:N,enumerable:!0,configurable:!0},_:{value:D}})}function bge(p){p.stopImmediatePropagation()}function uN(p){p.preventDefault(),p.stopImmediatePropagation()}function HBn(p){return(!p.ctrlKey||p.type==="wheel")&&!p.button}function qBn(){var p=this;return p instanceof SVGElement?(p=p.ownerSVGElement||p,p.hasAttribute("viewBox")?(p=p.viewBox.baseVal,[[p.x,p.y],[p.x+p.width,p.y+p.height]]):[[0,0],[p.width.baseVal.value,p.height.baseVal.value]]):[[0,0],[p.clientWidth,p.clientHeight]]}function Jln(){return this.__zoom||Oge}function zBn(p){return-p.deltaY*(p.deltaMode===1?.05:p.deltaMode?1:.002)*(p.ctrlKey?10:1)}function UBn(){return navigator.maxTouchPoints||"ontouchstart"in this}function XBn(p,E,P){var N=p.invertX(E[0][0])-P[0][0],D=p.invertX(E[1][0])-P[1][0],$=p.invertY(E[0][1])-P[0][1],v=p.invertY(E[1][1])-P[1][1];return p.translate(D>N?(N+D)/2:Math.min(0,N)||Math.max(0,D),v>$?($+v)/2:Math.min(0,$)||Math.max(0,v))}function Rhn(){var p=HBn,E=qBn,P=XBn,N=zBn,D=UBn,$=[0,1/0],v=[[-1/0,-1/0],[1/0,1/0]],q=250,te=NX,ie=Lhn("start","zoom","end"),pe,oe,z,ne=500,Z=150,U=0,Ee=10;function re(je){je.property("__zoom",Jln).on("wheel.zoom",vn,{passive:!1}).on("mousedown.zoom",jn).on("dblclick.zoom",et).filter(D).on("touchstart.zoom",Dn).on("touchmove.zoom",Kn).on("touchend.zoom touchcancel.zoom",_).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}re.transform=function(je,rn,sn,Sn){var Bn=je.selection?je.selection():je;Bn.property("__zoom",Jln),je!==Bn?Qe(je,rn,sn,Sn):Bn.interrupt().each(function(){Xe(this,arguments).event(Sn).start().zoom(null,typeof rn=="function"?rn.apply(this,arguments):rn).end()})},re.scaleBy=function(je,rn,sn,Sn){re.scaleTo(je,function(){var Bn=this.__zoom.k,dn=typeof rn=="function"?rn.apply(this,arguments):rn;return Bn*dn},sn,Sn)},re.scaleTo=function(je,rn,sn,Sn){re.transform(je,function(){var Bn=E.apply(this,arguments),dn=this.__zoom,Jn=sn==null?Ce(Bn):typeof sn=="function"?sn.apply(this,arguments):sn,Nn=dn.invert(Jn),qn=typeof rn=="function"?rn.apply(this,arguments):rn;return P(ee(we(dn,qn),Jn,Nn),Bn,v)},sn,Sn)},re.translateBy=function(je,rn,sn,Sn){re.transform(je,function(){return P(this.__zoom.translate(typeof rn=="function"?rn.apply(this,arguments):rn,typeof sn=="function"?sn.apply(this,arguments):sn),E.apply(this,arguments),v)},null,Sn)},re.translateTo=function(je,rn,sn,Sn,Bn){re.transform(je,function(){var dn=E.apply(this,arguments),Jn=this.__zoom,Nn=Sn==null?Ce(dn):typeof Sn=="function"?Sn.apply(this,arguments):Sn;return P(Oge.translate(Nn[0],Nn[1]).scale(Jn.k).translate(typeof rn=="function"?-rn.apply(this,arguments):-rn,typeof sn=="function"?-sn.apply(this,arguments):-sn),dn,v)},Sn,Bn)};function we(je,rn){return rn=Math.max($[0],Math.min($[1],rn)),rn===je.k?je:new fge(rn,je.x,je.y)}function ee(je,rn,sn){var Sn=rn[0]-sn[0]*je.k,Bn=rn[1]-sn[1]*je.k;return Sn===je.x&&Bn===je.y?je:new fge(je.k,Sn,Bn)}function Ce(je){return[(+je[0][0]+ +je[1][0])/2,(+je[0][1]+ +je[1][1])/2]}function Qe(je,rn,sn,Sn){je.on("start.zoom",function(){Xe(this,arguments).event(Sn).start()}).on("interrupt.zoom end.zoom",function(){Xe(this,arguments).event(Sn).end()}).tween("zoom",function(){var Bn=this,dn=arguments,Jn=Xe(Bn,dn).event(Sn),Nn=E.apply(Bn,dn),qn=sn==null?Ce(Nn):typeof sn=="function"?sn.apply(Bn,dn):sn,Jt=Math.max(Nn[1][0]-Nn[0][0],Nn[1][1]-Nn[0][1]),Xt=Bn.__zoom,Oi=typeof rn=="function"?rn.apply(Bn,dn):rn,gr=te(Xt.invert(qn).concat(Jt/Xt.k),Oi.invert(qn).concat(Jt/Oi.k));return function(Ki){if(Ki===1)Ki=Oi;else{var Wn=gr(Ki),ei=Jt/Wn[2];Ki=new fge(ei,qn[0]-Wn[0]*ei,qn[1]-Wn[1]*ei)}Jn.zoom(null,Ki)}})}function Xe(je,rn,sn){return!sn&&je.__zooming||new Ze(je,rn)}function Ze(je,rn){this.that=je,this.args=rn,this.active=0,this.sourceEvent=null,this.extent=E.apply(je,rn),this.taps=0}Ze.prototype={event:function(je){return je&&(this.sourceEvent=je),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(je,rn){return this.mouse&&je!=="mouse"&&(this.mouse[1]=rn.invert(this.mouse[0])),this.touch0&&je!=="touch"&&(this.touch0[1]=rn.invert(this.touch0[0])),this.touch1&&je!=="touch"&&(this.touch1[1]=rn.invert(this.touch1[0])),this.that.__zoom=rn,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(je){var rn=B0(this.that).datum();ie.call(je,this.that,new GBn(je,{sourceEvent:this.sourceEvent,target:re,transform:this.that.__zoom,dispatch:ie}),rn)}};function vn(je,...rn){if(!p.apply(this,arguments))return;var sn=Xe(this,rn).event(je),Sn=this.__zoom,Bn=Math.max($[0],Math.min($[1],Sn.k*Math.pow(2,N.apply(this,arguments)))),dn=e2(je);if(sn.wheel)(sn.mouse[0][0]!==dn[0]||sn.mouse[0][1]!==dn[1])&&(sn.mouse[1]=Sn.invert(sn.mouse[0]=dn)),clearTimeout(sn.wheel);else{if(Sn.k===Bn)return;sn.mouse=[dn,Sn.invert(dn)],lge(this),sn.start()}uN(je),sn.wheel=setTimeout(Jn,Z),sn.zoom("mouse",P(ee(we(Sn,Bn),sn.mouse[0],sn.mouse[1]),sn.extent,v));function Jn(){sn.wheel=null,sn.end()}}function jn(je,...rn){if(z||!p.apply(this,arguments))return;var sn=je.currentTarget,Sn=Xe(this,rn,!0).event(je),Bn=B0(je.view).on("mousemove.zoom",qn,!0).on("mouseup.zoom",Jt,!0),dn=e2(je,sn),Jn=je.clientX,Nn=je.clientY;$hn(je.view),bge(je),Sn.mouse=[dn,this.__zoom.invert(dn)],lge(this),Sn.start();function qn(Xt){if(uN(Xt),!Sn.moved){var Oi=Xt.clientX-Jn,gr=Xt.clientY-Nn;Sn.moved=Oi*Oi+gr*gr>U}Sn.event(Xt).zoom("mouse",P(ee(Sn.that.__zoom,Sn.mouse[0]=e2(Xt,sn),Sn.mouse[1]),Sn.extent,v))}function Jt(Xt){Bn.on("mousemove.zoom mouseup.zoom",null),Fhn(Xt.view,Sn.moved),uN(Xt),Sn.event(Xt).end()}}function et(je,...rn){if(p.apply(this,arguments)){var sn=this.__zoom,Sn=e2(je.changedTouches?je.changedTouches[0]:je,this),Bn=sn.invert(Sn),dn=sn.k*(je.shiftKey?.5:2),Jn=P(ee(we(sn,dn),Sn,Bn),E.apply(this,rn),v);uN(je),q>0?B0(this).transition().duration(q).call(Qe,Jn,Sn,je):B0(this).call(re.transform,Jn,Sn,je)}}function Dn(je,...rn){if(p.apply(this,arguments)){var sn=je.touches,Sn=sn.length,Bn=Xe(this,rn,je.changedTouches.length===Sn).event(je),dn,Jn,Nn,qn;for(bge(je),Jn=0;Jn<Sn;++Jn)Nn=sn[Jn],qn=e2(Nn,this),qn=[qn,this.__zoom.invert(qn),Nn.identifier],Bn.touch0?!Bn.touch1&&Bn.touch0[2]!==qn[2]&&(Bn.touch1=qn,Bn.taps=0):(Bn.touch0=qn,dn=!0,Bn.taps=1+!!pe);pe&&(pe=clearTimeout(pe)),dn&&(Bn.taps<2&&(oe=qn[0],pe=setTimeout(function(){pe=null},ne)),lge(this),Bn.start())}}function Kn(je,...rn){if(this.__zooming){var sn=Xe(this,rn).event(je),Sn=je.changedTouches,Bn=Sn.length,dn,Jn,Nn,qn;for(uN(je),dn=0;dn<Bn;++dn)Jn=Sn[dn],Nn=e2(Jn,this),sn.touch0&&sn.touch0[2]===Jn.identifier?sn.touch0[0]=Nn:sn.touch1&&sn.touch1[2]===Jn.identifier&&(sn.touch1[0]=Nn);if(Jn=sn.that.__zoom,sn.touch1){var Jt=sn.touch0[0],Xt=sn.touch0[1],Oi=sn.touch1[0],gr=sn.touch1[1],Ki=(Ki=Oi[0]-Jt[0])*Ki+(Ki=Oi[1]-Jt[1])*Ki,Wn=(Wn=gr[0]-Xt[0])*Wn+(Wn=gr[1]-Xt[1])*Wn;Jn=we(Jn,Math.sqrt(Ki/Wn)),Nn=[(Jt[0]+Oi[0])/2,(Jt[1]+Oi[1])/2],qn=[(Xt[0]+gr[0])/2,(Xt[1]+gr[1])/2]}else if(sn.touch0)Nn=sn.touch0[0],qn=sn.touch0[1];else return;sn.zoom("touch",P(ee(Jn,Nn,qn),sn.extent,v))}}function _(je,...rn){if(this.__zooming){var sn=Xe(this,rn).event(je),Sn=je.changedTouches,Bn=Sn.length,dn,Jn;for(bge(je),z&&clearTimeout(z),z=setTimeout(function(){z=null},ne),dn=0;dn<Bn;++dn)Jn=Sn[dn],sn.touch0&&sn.touch0[2]===Jn.identifier?delete sn.touch0:sn.touch1&&sn.touch1[2]===Jn.identifier&&delete sn.touch1;if(sn.touch1&&!sn.touch0&&(sn.touch0=sn.touch1,delete sn.touch1),sn.touch0)sn.touch0[1]=this.__zoom.invert(sn.touch0[0]);else if(sn.end(),sn.taps===2&&(Jn=e2(Jn,this),Math.hypot(oe[0]-Jn[0],oe[1]-Jn[1])<Ee)){var Nn=B0(this).on("dblclick.zoom");Nn&&Nn.apply(this,arguments)}}}return re.wheelDelta=function(je){return arguments.length?(N=typeof je=="function"?je:xX(+je),re):N},re.filter=function(je){return arguments.length?(p=typeof je=="function"?je:xX(!!je),re):p},re.touchable=function(je){return arguments.length?(D=typeof je=="function"?je:xX(!!je),re):D},re.extent=function(je){return arguments.length?(E=typeof je=="function"?je:xX([[+je[0][0],+je[0][1]],[+je[1][0],+je[1][1]]]),re):E},re.scaleExtent=function(je){return arguments.length?($[0]=+je[0],$[1]=+je[1],re):[$[0],$[1]]},re.translateExtent=function(je){return arguments.length?(v[0][0]=+je[0][0],v[1][0]=+je[1][0],v[0][1]=+je[0][1],v[1][1]=+je[1][1],re):[[v[0][0],v[0][1]],[v[1][0],v[1][1]]]},re.constrain=function(je){return arguments.length?(P=je,re):P},re.duration=function(je){return arguments.length?(q=+je,re):q},re.interpolate=function(je){return arguments.length?(te=je,re):te},re.on=function(){var je=ie.on.apply(ie,arguments);return je===ie?re:je},re.clickDistance=function(je){return arguments.length?(U=(je=+je)*je,re):Math.sqrt(U)},re.tapDistance=function(je){return arguments.length?(Ee=+je,re):Ee},re}const r2={error001:(p="react")=>`Seems like you have not used ${p==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${p}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:p=>`Node type "${p}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:p=>`The old edge with id=${p} does not exist.`,error009:p=>`Marker type "${p}" doesn't exist.`,error008:(p,{id:E,sourceHandle:P,targetHandle:N})=>`Couldn't create edge for ${p} handle id: "${p==="source"?P:N}", edge id: ${E}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:p=>`Edge type "${p}" not found. Using fallback type "default".`,error012:p=>`Node with id "${p}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(p="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${p}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:p=>`Edge with id "${p}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},hN=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],_hn=["Enter"," ","Escape"],Jhn={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:p,x:E,y:P})=>`Moved selected node ${p}. New position, x: ${E}, y: ${P}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var PA;(function(p){p.Strict="strict",p.Loose="loose"})(PA||(PA={}));var nk;(function(p){p.Free="free",p.Vertical="vertical",p.Horizontal="horizontal"})(nk||(nk={}));var aN;(function(p){p.Partial="partial",p.Full="full"})(aN||(aN={}));const Ghn={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var z5;(function(p){p.Bezier="default",p.Straight="straight",p.Step="step",p.SmoothStep="smoothstep",p.SimpleBezier="simplebezier"})(z5||(z5={}));var dN;(function(p){p.Arrow="arrow",p.ArrowClosed="arrowclosed"})(dN||(dN={}));var ji;(function(p){p.Left="left",p.Top="top",p.Right="right",p.Bottom="bottom"})(ji||(ji={}));const Gln={[ji.Left]:ji.Right,[ji.Right]:ji.Left,[ji.Top]:ji.Bottom,[ji.Bottom]:ji.Top},Hhn=p=>!!p&&typeof p=="object"&&"id"in p&&"source"in p&&"target"in p,KBn=p=>!!p&&typeof p=="object"&&"id"in p&&"position"in p&&!("source"in p)&&!("target"in p),Nge=p=>!!p&&typeof p=="object"&&"id"in p&&"internals"in p&&!("source"in p)&&!("target"in p),pN=(p,E=[0,0])=>{const{width:P,height:N}=c2(p),D=p.origin??E,$=P*D[0],v=N*D[1];return{x:p.position.x-$,y:p.position.y-v}},WBn=(p,E={nodeOrigin:[0,0]})=>{if(p.length===0)return{x:0,y:0,width:0,height:0};let P=!1;const N=p.reduce((D,$)=>{const v=typeof $=="string";let q=!E.nodeLookup&&!v?$:void 0;return E.nodeLookup&&(q=v?E.nodeLookup.get($):Nge($)?$:E.nodeLookup.get($.id)),q?(P=!0,JX(D,FX(q,E.nodeOrigin))):D},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return P?GX(N):{x:0,y:0,width:0,height:0}},LA=(p,E={})=>{let P={x:1/0,y:1/0,x2:-1/0,y2:-1/0},N=!1;return p.forEach(D=>{(E.filter===void 0||E.filter(D))&&(P=JX(P,FX(D)),N=!0)}),N?GX(P):{x:0,y:0,width:0,height:0}},Dge=(p,E,[P,N,D]=[0,0,1],$=!1,v=!1)=>{const q=(E.x-P)/D,te=(E.y-N)/D,ie=E.width/D,pe=E.height/D,oe=[];for(const z of p.values()){const{measured:ne,selectable:Z=!0,hidden:U=!1}=z;if(v&&!Z||U)continue;const Ee=ne.width??z.width??z.initialWidth??0,re=ne.height??z.height??z.initialHeight??0,{x:we,y:ee}=z.internals.positionAbsolute,Ce=Xhn(q,te,ie,pe,we,ee,Ee,re),Qe=Ee*re,Xe=$&&Ce>0;(!z.internals.handleBounds||Xe||Ce>=Qe||z.dragging)&&oe.push(z)}return oe},VBn=(p,E)=>{const P=new Set;return p.forEach(N=>{P.add(N.id)}),E.filter(N=>P.has(N.source)||P.has(N.target))};function QBn(p,E){const P=new Map,N=E!=null&&E.nodes?new Set(E.nodes.map(D=>D.id)):null;return p.forEach(D=>{let $;if(E!=null&&E.includeHiddenNodes){const{width:v,height:q}=c2(D);$=v>0&&q>0}else $=!!(D.measured.width&&D.measured.height&&!D.hidden);$&&(!N||N.has(D.id))&&P.set(D.id,D)}),P}async function YBn({nodes:p,width:E,height:P,panZoom:N,minZoom:D,maxZoom:$},v){if(p.size===0)return!0;const q=QBn(p,v),te=LA(q),ie=$ge(te,E,P,(v==null?void 0:v.minZoom)??D,(v==null?void 0:v.maxZoom)??$,(v==null?void 0:v.padding)??.1);return await N.setViewport(ie,{duration:v==null?void 0:v.duration,ease:v==null?void 0:v.ease,interpolate:v==null?void 0:v.interpolate}),!0}function qhn({nodeId:p,nextPosition:E,nodeLookup:P,nodeOrigin:N=[0,0],nodeExtent:D,onError:$}){const v=P.get(p),q=v.parentId?P.get(v.parentId):void 0,{x:te,y:ie}=q?q.internals.positionAbsolute:{x:0,y:0},pe=v.origin??N;let oe=v.extent||D;if(v.extent==="parent"&&!v.expandParent)if(!q)$==null||$("005",r2.error005());else{const{width:ne,height:Z}=c2(q);ne&&Z&&(oe=[[te,ie],[te+ne,ie+Z]])}else q&&ik(v.extent)&&(oe=[[v.extent[0][0]+te,v.extent[0][1]+ie],[v.extent[1][0]+te,v.extent[1][1]+ie]]);const z=ik(oe)?tk(E,oe,v.measured):E;return(v.measured.width===void 0||v.measured.height===void 0)&&($==null||$("015",r2.error015())),{position:{x:z.x-te+(v.measured.width??0)*pe[0],y:z.y-ie+(v.measured.height??0)*pe[1]},positionAbsolute:z}}async function ZBn({nodesToRemove:p=[],edgesToRemove:E=[],nodes:P,edges:N,onBeforeDelete:D}){const $=new Set(p.map(z=>z.id)),v=[];for(const z of P){if(z.deletable===!1)continue;const ne=$.has(z.id),Z=!ne&&z.parentId&&v.find(U=>U.id===z.parentId);(ne||Z)&&v.push(z)}const q=new Set(E.map(z=>z.id)),te=N.filter(z=>z.deletable!==!1),pe=VBn(v,te);for(const z of te)q.has(z.id)&&!pe.find(Z=>Z.id===z.id)&&pe.push(z);if(!D)return{edges:pe,nodes:v};const oe=await D({nodes:v,edges:pe});return typeof oe=="boolean"?oe?{edges:pe,nodes:v}:{edges:[],nodes:[]}:oe}const OA=(p,E=0,P=1)=>Math.min(Math.max(p,E),P),tk=(p={x:0,y:0},E,P)=>({x:OA(p.x,E[0][0],E[1][0]-((P==null?void 0:P.width)??0)),y:OA(p.y,E[0][1],E[1][1]-((P==null?void 0:P.height)??0))});function zhn(p,E,P){const{width:N,height:D}=c2(P),{x:$,y:v}=P.internals.positionAbsolute;return tk(p,[[$,v],[$+N,v+D]],E)}const Hln=(p,E,P)=>p<E?OA(Math.abs(p-E),1,E)/E:p>P?-OA(Math.abs(p-P),1,E)/E:0,Lge=(p,E,P=15,N=40)=>{const D=Hln(p.x,N,E.width-N)*P,$=Hln(p.y,N,E.height-N)*P;return[D,$]},JX=(p,E)=>({x:Math.min(p.x,E.x),y:Math.min(p.y,E.y),x2:Math.max(p.x2,E.x2),y2:Math.max(p.y2,E.y2)}),jge=({x:p,y:E,width:P,height:N})=>({x:p,y:E,x2:p+P,y2:E+N}),GX=({x:p,y:E,x2:P,y2:N})=>({x:p,y:E,width:P-p,height:N-E}),bN=(p,E=[0,0])=>{var D,$;const{x:P,y:N}=Nge(p)?p.internals.positionAbsolute:pN(p,E);return{x:P,y:N,width:((D=p.measured)==null?void 0:D.width)??p.width??p.initialWidth??0,height:(($=p.measured)==null?void 0:$.height)??p.height??p.initialHeight??0}},FX=(p,E=[0,0])=>{var D,$;const{x:P,y:N}=Nge(p)?p.internals.positionAbsolute:pN(p,E);return{x:P,y:N,x2:P+(((D=p.measured)==null?void 0:D.width)??p.width??p.initialWidth??0),y2:N+((($=p.measured)==null?void 0:$.height)??p.height??p.initialHeight??0)}},Uhn=(p,E)=>GX(JX(jge(p),jge(E))),Xhn=(p,E,P,N,D,$,v,q)=>{const te=Math.max(0,Math.min(p+P,D+v)-Math.max(p,D)),ie=Math.max(0,Math.min(E+N,$+q)-Math.max(E,$));return Math.ceil(te*ie)},BX=(p,E)=>Xhn(p.x,p.y,p.width,p.height,E.x,E.y,E.width,E.height),qln=p=>n2(p.width)&&n2(p.height)&&n2(p.x)&&n2(p.y),n2=p=>!isNaN(p)&&isFinite(p),Khn=(p,E)=>(P,N)=>{},mN=(p,E=[1,1])=>({x:E[0]*Math.round(p.x/E[0]),y:E[1]*Math.round(p.y/E[1])}),vN=({x:p,y:E},[P,N,D],$=!1,v=[1,1])=>{const q={x:(p-P)/D,y:(E-N)/D};return $?mN(q,v):q},NA=({x:p,y:E},[P,N,D])=>({x:p*D+P,y:E*D+N});function TA(p,E){if(typeof p=="number")return Math.floor((E-E/(1+p))*.5);if(typeof p=="string"&&p.endsWith("px")){const P=parseFloat(p);if(!Number.isNaN(P))return Math.floor(P)}if(typeof p=="string"&&p.endsWith("%")){const P=parseFloat(p);if(!Number.isNaN(P))return Math.floor(E*P*.01)}return console.error(`The padding value "${p}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function eRn(p,E,P){if(typeof p=="string"||typeof p=="number"){const N=TA(p,P),D=TA(p,E);return{top:N,right:D,bottom:N,left:D,x:D*2,y:N*2}}if(typeof p=="object"){const N=TA(p.top??p.y??0,P),D=TA(p.bottom??p.y??0,P),$=TA(p.left??p.x??0,E),v=TA(p.right??p.x??0,E);return{top:N,right:v,bottom:D,left:$,x:$+v,y:N+D}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function nRn(p,E,P,N,D,$){const{x:v,y:q}=NA(p,[E,P,N]),{x:te,y:ie}=NA({x:p.x+p.width,y:p.y+p.height},[E,P,N]),pe=D-te,oe=$-ie;return{left:Math.floor(v),top:Math.floor(q),right:Math.floor(pe),bottom:Math.floor(oe)}}const $ge=(p,E,P,N,D,$)=>{const v=eRn($,E,P),q=(E-v.x)/p.width,te=(P-v.y)/p.height,ie=Math.min(q,te),pe=OA(ie,N,D),oe=p.x+p.width/2,z=p.y+p.height/2,ne=E/2-oe*pe,Z=P/2-z*pe,U=nRn(p,ne,Z,pe,E,P),Ee={left:Math.min(U.left-v.left,0),top:Math.min(U.top-v.top,0),right:Math.min(U.right-v.right,0),bottom:Math.min(U.bottom-v.bottom,0)};return{x:ne-Ee.left+Ee.right,y:Z-Ee.top+Ee.bottom,zoom:pe}},wN=()=>{var p;return typeof navigator<"u"&&((p=navigator==null?void 0:navigator.userAgent)==null?void 0:p.indexOf("Mac"))>=0};function ik(p){return p!=null&&p!=="parent"}function c2(p){var E,P;return{width:((E=p.measured)==null?void 0:E.width)??p.width??p.initialWidth??0,height:((P=p.measured)==null?void 0:P.height)??p.height??p.initialHeight??0}}function Whn(p){var E,P;return(((E=p.measured)==null?void 0:E.width)??p.width??p.initialWidth)!==void 0&&(((P=p.measured)==null?void 0:P.height)??p.height??p.initialHeight)!==void 0}function Vhn(p,E={width:0,height:0},P,N,D){const $={...p},v=N.get(P);if(v){const q=v.origin||D;$.x+=v.internals.positionAbsolute.x-(E.width??0)*q[0],$.y+=v.internals.positionAbsolute.y-(E.height??0)*q[1]}return $}function zln(p,E){if(p.size!==E.size)return!1;for(const P of p)if(!E.has(P))return!1;return!0}function tRn(){let p,E;return{promise:new Promise((N,D)=>{p=N,E=D}),resolve:p,reject:E}}function iRn(p){return{...Jhn,...p||{}}}function Qhn(p){return p===null?null:p?"valid":"invalid"}function sN(p,{snapGrid:E=[0,0],snapToGrid:P=!1,transform:N,containerBounds:D}){const{x:$,y:v}=t2(p),q=vN({x:$-((D==null?void 0:D.left)??0),y:v-((D==null?void 0:D.top)??0)},N),{x:te,y:ie}=P?mN(q,E):q;return{xSnapped:te,ySnapped:ie,...q}}const Fge=p=>({width:p.offsetWidth,height:p.offsetHeight}),Yhn=p=>{var E;return((E=p==null?void 0:p.getRootNode)==null?void 0:E.call(p))||(window==null?void 0:window.document)},rRn=["INPUT","SELECT","TEXTAREA"];function Zhn(p){var N,D;const E=((D=(N=p.composedPath)==null?void 0:N.call(p))==null?void 0:D[0])||p.target;return(E==null?void 0:E.nodeType)!==1?!1:rRn.includes(E.nodeName)||E.hasAttribute("contenteditable")||!!E.closest(".nokey")}const ean=p=>"clientX"in p,t2=(p,E)=>{var $,v;const P=ean(p),N=P?p.clientX:($=p.touches)==null?void 0:$[0].clientX,D=P?p.clientY:(v=p.touches)==null?void 0:v[0].clientY;return{x:N-((E==null?void 0:E.left)??0),y:D-((E==null?void 0:E.top)??0)}},Uln=(p,E,P,N,D)=>{const $=E.querySelectorAll(`.${p}`);return!$||!$.length?null:Array.from($).map(v=>{const q=v.getBoundingClientRect();return{id:v.getAttribute("data-handleid"),type:p,nodeId:D,position:v.getAttribute("data-handlepos"),x:(q.left-P.left)/N,y:(q.top-P.top)/N,...Fge(v)}})};function nan({sourceX:p,sourceY:E,targetX:P,targetY:N,sourceControlX:D,sourceControlY:$,targetControlX:v,targetControlY:q}){const te=p*.125+D*.375+v*.375+P*.125,ie=E*.125+$*.375+q*.375+N*.125,pe=Math.abs(te-p),oe=Math.abs(ie-E);return[te,ie,pe,oe]}function TX(p,E){return p>=0?.5*p:E*25*Math.sqrt(-p)}function Xln({pos:p,x1:E,y1:P,x2:N,y2:D,c:$}){switch(p){case ji.Left:return[E-TX(E-N,$),P];case ji.Right:return[E+TX(N-E,$),P];case ji.Top:return[E,P-TX(P-D,$)];case ji.Bottom:return[E,P+TX(D-P,$)]}}function yN({sourceX:p,sourceY:E,sourcePosition:P=ji.Bottom,targetX:N,targetY:D,targetPosition:$=ji.Top,curvature:v=.25}){const[q,te]=Xln({pos:P,x1:p,y1:E,x2:N,y2:D,c:v}),[ie,pe]=Xln({pos:$,x1:N,y1:D,x2:p,y2:E,c:v}),[oe,z,ne,Z]=nan({sourceX:p,sourceY:E,targetX:N,targetY:D,sourceControlX:q,sourceControlY:te,targetControlX:ie,targetControlY:pe});return[`M${p},${E} C${q},${te} ${ie},${pe} ${N},${D}`,oe,z,ne,Z]}function tan({sourceX:p,sourceY:E,targetX:P,targetY:N}){const D=Math.abs(P-p)/2,$=P<p?P+D:P-D,v=Math.abs(N-E)/2,q=N<E?N+v:N-v;return[$,q,D,v]}function cRn({sourceNode:p,targetNode:E,selected:P=!1,zIndex:N=0,elevateOnSelect:D=!1,zIndexMode:$="basic"}){if($==="manual")return N;const v=D&&P?N+1e3:N,q=Math.max(p.parentId||D&&p.selected?p.internals.z:0,E.parentId||D&&E.selected?E.internals.z:0);return v+q}function uRn({sourceNode:p,targetNode:E,width:P,height:N,transform:D}){const $=JX(FX(p),FX(E));$.x===$.x2&&($.x2+=1),$.y===$.y2&&($.y2+=1);const v={x:-D[0]/D[2],y:-D[1]/D[2],width:P/D[2],height:N/D[2]};return BX(v,GX($))>0}const oRn=({source:p,sourceHandle:E,target:P,targetHandle:N})=>`xy-edge__${p}${E||""}-${P}${N||""}`,sRn=(p,E)=>E.some(P=>P.source===p.source&&P.target===p.target&&(P.sourceHandle===p.sourceHandle||!P.sourceHandle&&!p.sourceHandle)&&(P.targetHandle===p.targetHandle||!P.targetHandle&&!p.targetHandle)),fRn=(p,E,P={})=>{var $;if(!p.source||!p.target)return($=P.onError)==null||$.call(P,"006",r2.error006()),E;const N=P.getEdgeId||oRn;let D;return Hhn(p)?D={...p}:D={...p,id:N(p)},sRn(D,E)?E:(D.sourceHandle===null&&delete D.sourceHandle,D.targetHandle===null&&delete D.targetHandle,E.concat(D))};function ian({sourceX:p,sourceY:E,targetX:P,targetY:N}){const[D,$,v,q]=tan({sourceX:p,sourceY:E,targetX:P,targetY:N});return[`M ${p},${E}L ${P},${N}`,D,$,v,q]}const Kln={[ji.Left]:{x:-1,y:0},[ji.Right]:{x:1,y:0},[ji.Top]:{x:0,y:-1},[ji.Bottom]:{x:0,y:1}},lRn=({source:p,sourcePosition:E=ji.Bottom,target:P})=>E===ji.Left||E===ji.Right?p.x<P.x?{x:1,y:0}:{x:-1,y:0}:p.y<P.y?{x:0,y:1}:{x:0,y:-1},Wln=(p,E)=>Math.sqrt(Math.pow(E.x-p.x,2)+Math.pow(E.y-p.y,2));function hRn({source:p,sourcePosition:E=ji.Bottom,target:P,targetPosition:N=ji.Top,center:D,offset:$,stepPosition:v}){const q=Kln[E],te=Kln[N],ie={x:p.x+q.x*$,y:p.y+q.y*$},pe={x:P.x+te.x*$,y:P.y+te.y*$},oe=lRn({source:ie,sourcePosition:E,target:pe}),z=oe.x!==0?"x":"y",ne=oe[z];let Z=[],U,Ee;const re={x:0,y:0},we={x:0,y:0},[,,ee,Ce]=tan({sourceX:p.x,sourceY:p.y,targetX:P.x,targetY:P.y});if(q[z]*te[z]===-1){z==="x"?(U=D.x??ie.x+(pe.x-ie.x)*v,Ee=D.y??(ie.y+pe.y)/2):(U=D.x??(ie.x+pe.x)/2,Ee=D.y??ie.y+(pe.y-ie.y)*v);const vn=[{x:U,y:ie.y},{x:U,y:pe.y}],jn=[{x:ie.x,y:Ee},{x:pe.x,y:Ee}];q[z]===ne?Z=z==="x"?vn:jn:Z=z==="x"?jn:vn}else{const vn=[{x:ie.x,y:pe.y}],jn=[{x:pe.x,y:ie.y}];if(z==="x"?Z=q.x===ne?jn:vn:Z=q.y===ne?vn:jn,E===N){const je=Math.abs(p[z]-P[z]);if(je<=$){const rn=Math.min($-1,$-je);q[z]===ne?re[z]=(ie[z]>p[z]?-1:1)*rn:we[z]=(pe[z]>P[z]?-1:1)*rn}}if(E!==N){const je=z==="x"?"y":"x",rn=q[z]===te[je],sn=ie[je]>pe[je],Sn=ie[je]<pe[je];(q[z]===1&&(!rn&&sn||rn&&Sn)||q[z]!==1&&(!rn&&Sn||rn&&sn))&&(Z=z==="x"?vn:jn)}const et={x:ie.x+re.x,y:ie.y+re.y},Dn={x:pe.x+we.x,y:pe.y+we.y},Kn=Math.max(Math.abs(et.x-Z[0].x),Math.abs(Dn.x-Z[0].x)),_=Math.max(Math.abs(et.y-Z[0].y),Math.abs(Dn.y-Z[0].y));Kn>=_?(U=(et.x+Dn.x)/2,Ee=Z[0].y):(U=Z[0].x,Ee=(et.y+Dn.y)/2)}const Qe={x:ie.x+re.x,y:ie.y+re.y},Xe={x:pe.x+we.x,y:pe.y+we.y};return[[p,...Qe.x!==Z[0].x||Qe.y!==Z[0].y?[Qe]:[],...Z,...Xe.x!==Z[Z.length-1].x||Xe.y!==Z[Z.length-1].y?[Xe]:[],P],U,Ee,ee,Ce]}function aRn(p,E,P,N){const D=Math.min(Wln(p,E)/2,Wln(E,P)/2,N),{x:$,y:v}=E;if(p.x===$&&$===P.x||p.y===v&&v===P.y)return`L${$} ${v}`;if(p.y===v){const ie=p.x<P.x?-1:1,pe=p.y<P.y?1:-1;return`L ${$+D*ie},${v}Q ${$},${v} ${$},${v+D*pe}`}const q=p.x<P.x?1:-1,te=p.y<P.y?-1:1;return`L ${$},${v+D*te}Q ${$},${v} ${$+D*q},${v}`}function Ege({sourceX:p,sourceY:E,sourcePosition:P=ji.Bottom,targetX:N,targetY:D,targetPosition:$=ji.Top,borderRadius:v=5,centerX:q,centerY:te,offset:ie=20,stepPosition:pe=.5}){const[oe,z,ne,Z,U]=hRn({source:{x:p,y:E},sourcePosition:P,target:{x:N,y:D},targetPosition:$,center:{x:q,y:te},offset:ie,stepPosition:pe});let Ee=`M${oe[0].x} ${oe[0].y}`;for(let re=1;re<oe.length-1;re++)Ee+=aRn(oe[re-1],oe[re],oe[re+1],v);return Ee+=`L${oe[oe.length-1].x} ${oe[oe.length-1].y}`,[Ee,z,ne,Z,U]}function Vln(p){var E;return p&&!!(p.internals.handleBounds||(E=p.handles)!=null&&E.length)&&!!(p.measured.width||p.width||p.initialWidth)}function dRn(p){var oe;const{sourceNode:E,targetNode:P}=p;if(!Vln(E)||!Vln(P))return null;const N=E.internals.handleBounds||Qln(E.handles),D=P.internals.handleBounds||Qln(P.handles),$=Yln((N==null?void 0:N.source)??[],p.sourceHandle),v=Yln(p.connectionMode===PA.Strict?(D==null?void 0:D.target)??[]:((D==null?void 0:D.target)??[]).concat((D==null?void 0:D.source)??[]),p.targetHandle);if(!$||!v)return(oe=p.onError)==null||oe.call(p,"008",r2.error008($?"target":"source",{id:p.id,sourceHandle:p.sourceHandle,targetHandle:p.targetHandle})),null;const q=($==null?void 0:$.position)||ji.Bottom,te=(v==null?void 0:v.position)||ji.Top,ie=rk(E,$,q),pe=rk(P,v,te);return{sourceX:ie.x,sourceY:ie.y,targetX:pe.x,targetY:pe.y,sourcePosition:q,targetPosition:te}}function Qln(p){if(!p)return null;const E=[],P=[];for(const N of p)N.width=N.width??1,N.height=N.height??1,N.type==="source"?E.push(N):N.type==="target"&&P.push(N);return{source:E,target:P}}function rk(p,E,P=ji.Left,N=!1){const D=((E==null?void 0:E.x)??0)+p.internals.positionAbsolute.x,$=((E==null?void 0:E.y)??0)+p.internals.positionAbsolute.y,{width:v,height:q}=E??c2(p);if(N)return{x:D+v/2,y:$+q/2};switch((E==null?void 0:E.position)??P){case ji.Top:return{x:D+v/2,y:$};case ji.Right:return{x:D+v,y:$+q/2};case ji.Bottom:return{x:D+v/2,y:$+q};case ji.Left:return{x:D,y:$+q/2}}}function Yln(p,E){return p&&(E?p.find(P=>P.id===E):p[0])||null}function Age(p,E){return p?typeof p=="string"?p:`${E?`${E}__`:""}${Object.keys(p).sort().map(N=>`${N}=${p[N]}`).join("&")}`:""}function bRn(p,{id:E,defaultColor:P,defaultMarkerStart:N,defaultMarkerEnd:D}){const $=new Set;return p.reduce((v,q)=>([q.markerStart||N,q.markerEnd||D].forEach(te=>{if(te&&typeof te=="object"){const ie=Age(te,E);$.has(ie)||(v.push({id:ie,color:te.color||P,...te}),$.add(ie))}}),v),[]).sort((v,q)=>v.id.localeCompare(q.id))}function wRn(p,E,P,N,D){let $=.5;D==="start"?$=0:D==="end"&&($=1);let v=[(p.x+p.width*$)*E.zoom+E.x,p.y*E.zoom+E.y-N],q=[-100*$,-100];switch(P){case ji.Right:v=[(p.x+p.width)*E.zoom+E.x+N,(p.y+p.height*$)*E.zoom+E.y],q=[0,-100*$];break;case ji.Bottom:v[1]=(p.y+p.height)*E.zoom+E.y+N,q[1]=0;break;case ji.Left:v=[p.x*E.zoom+E.x-N,(p.y+p.height*$)*E.zoom+E.y],q=[-100,-100*$];break}return`translate(${v[0]}px, ${v[1]}px) translate(${q[0]}%, ${q[1]}%)`}const ran=1e3,gRn=10,Bge={nodeOrigin:[0,0],nodeExtent:hN,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},pRn={...Bge,checkEquality:!0};function Rge(p,E){const P={...p};for(const N in E)E[N]!==void 0&&(P[N]=E[N]);return P}function mRn(p,E,P){const N=Rge(Bge,P);for(const D of p.values())if(D.parentId)Jge(D,p,E,N);else{const $=pN(D,N.nodeOrigin),v=ik(D.extent)?D.extent:N.nodeExtent,q=tk($,v,c2(D));D.internals.positionAbsolute=q}}function vRn(p,E){if(!p.handles)return p.measured?E==null?void 0:E.internals.handleBounds:void 0;const P=[],N=[];for(const D of p.handles){const $={id:D.id,width:D.width??1,height:D.height??1,nodeId:p.id,x:D.x,y:D.y,position:D.position,type:D.type};D.type==="source"?P.push($):D.type==="target"&&N.push($)}return{source:P,target:N}}function _ge(p){return p==="manual"}function Mge(p,E,P,N={}){var pe,oe;const D=Rge(pRn,N),$={i:0},v=new Map(E),q=D!=null&&D.elevateNodesOnSelect&&!_ge(D.zIndexMode)?ran:0;let te=p.length>0,ie=!1;E.clear(),P.clear();for(const z of p){let ne=v.get(z.id);if(D.checkEquality&&z===(ne==null?void 0:ne.internals.userNode))E.set(z.id,ne);else{const Z=pN(z,D.nodeOrigin),U=ik(z.extent)?z.extent:D.nodeExtent,Ee=tk(Z,U,c2(z));ne={...D.defaults,...z,measured:{width:(pe=z.measured)==null?void 0:pe.width,height:(oe=z.measured)==null?void 0:oe.height},internals:{positionAbsolute:Ee,handleBounds:vRn(z,ne),z:can(z,q,D.zIndexMode),userNode:z}},E.set(z.id,ne)}(ne.measured===void 0||ne.measured.width===void 0||ne.measured.height===void 0)&&!ne.hidden&&(te=!1),z.parentId&&Jge(ne,E,P,N,$),ie||(ie=z.selected??!1)}return{nodesInitialized:te,hasSelectedNodes:ie}}function yRn(p,E){if(!p.parentId)return;const P=E.get(p.parentId);P?P.set(p.id,p):E.set(p.parentId,new Map([[p.id,p]]))}function Jge(p,E,P,N,D){const{elevateNodesOnSelect:$,nodeOrigin:v,nodeExtent:q,zIndexMode:te}=Rge(Bge,N),ie=p.parentId,pe=E.get(ie);if(!pe){console.warn(`Parent node ${ie} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}yRn(p,P),D&&!pe.parentId&&pe.internals.rootParentIndex===void 0&&te==="auto"&&(pe.internals.rootParentIndex=++D.i,pe.internals.z=pe.internals.z+D.i*gRn),D&&pe.internals.rootParentIndex!==void 0&&(D.i=pe.internals.rootParentIndex);const oe=$&&!_ge(te)?ran:0,{x:z,y:ne,z:Z}=kRn(p,pe,v,q,oe,te),{positionAbsolute:U}=p.internals,Ee=z!==U.x||ne!==U.y;(Ee||Z!==p.internals.z)&&E.set(p.id,{...p,internals:{...p.internals,positionAbsolute:Ee?{x:z,y:ne}:U,z:Z}})}function can(p,E,P){const N=n2(p.zIndex)?p.zIndex:0;return _ge(P)?N:N+(p.selected?E:0)}function kRn(p,E,P,N,D,$){const{x:v,y:q}=E.internals.positionAbsolute,te=c2(p),ie=pN(p,P),pe=ik(p.extent)?tk(ie,p.extent,te):ie;let oe=tk({x:v+pe.x,y:q+pe.y},N,te);p.extent==="parent"&&(oe=zhn(oe,te,E));const z=can(p,D,$),ne=E.internals.z??0;return{x:oe.x,y:oe.y,z:ne>=z?ne+1:z}}function Gge(p,E,P,N=[0,0]){var v;const D=[],$=new Map;for(const q of p){const te=E.get(q.parentId);if(!te)continue;const ie=((v=$.get(q.parentId))==null?void 0:v.expandedRect)??bN(te),pe=Uhn(ie,q.rect);$.set(q.parentId,{expandedRect:pe,parent:te})}return $.size>0&&$.forEach(({expandedRect:q,parent:te},ie)=>{var ee;const pe=te.internals.positionAbsolute,oe=c2(te),z=te.origin??N,ne=q.x<pe.x?Math.round(Math.abs(pe.x-q.x)):0,Z=q.y<pe.y?Math.round(Math.abs(pe.y-q.y)):0,U=Math.max(oe.width,Math.round(q.width)),Ee=Math.max(oe.height,Math.round(q.height)),re=(U-oe.width)*z[0],we=(Ee-oe.height)*z[1];(ne>0||Z>0||re||we)&&(D.push({id:ie,type:"position",position:{x:te.position.x-ne+re,y:te.position.y-Z+we}}),(ee=P.get(ie))==null||ee.forEach(Ce=>{p.some(Qe=>Qe.id===Ce.id)||D.push({id:Ce.id,type:"position",position:{x:Ce.position.x+ne,y:Ce.position.y+Z}})})),(oe.width<q.width||oe.height<q.height||ne||Z)&&D.push({id:ie,type:"dimensions",setAttributes:!0,dimensions:{width:U+(ne?z[0]*ne-re:0),height:Ee+(Z?z[1]*Z-we:0)}})}),D}function jRn(p,E,P,N,D,$,v){const q=N==null?void 0:N.querySelector(".xyflow__viewport");let te=!1;if(!q)return{changes:[],updatedInternals:te};const ie=[],pe=window.getComputedStyle(q),{m22:oe}=new window.DOMMatrixReadOnly(pe.transform),z=[];for(const ne of p.values()){const Z=E.get(ne.id);if(!Z)continue;if(Z.hidden){E.set(Z.id,{...Z,internals:{...Z.internals,handleBounds:void 0}}),te=!0;continue}const U=Fge(ne.nodeElement),Ee=Z.measured.width!==U.width||Z.measured.height!==U.height;if(!!(U.width&&U.height&&(Ee||!Z.internals.handleBounds||ne.force))){const we=ne.nodeElement.getBoundingClientRect(),ee=ik(Z.extent)?Z.extent:$;let{positionAbsolute:Ce}=Z.internals;if(Z.parentId&&Z.extent==="parent"){const Xe=E.get(Z.parentId);Xe&&(Ce=zhn(Ce,U,Xe))}else ee&&(Ce=tk(Ce,ee,U));const Qe={...Z,measured:U,internals:{...Z.internals,positionAbsolute:Ce,handleBounds:{source:Uln("source",ne.nodeElement,we,oe,Z.id),target:Uln("target",ne.nodeElement,we,oe,Z.id)}}};E.set(Z.id,Qe),Z.parentId&&Jge(Qe,E,P,{nodeOrigin:D,zIndexMode:v}),te=!0,Ee&&(ie.push({id:Z.id,type:"dimensions",dimensions:U}),Z.expandParent&&Z.parentId&&z.push({id:Z.id,parentId:Z.parentId,rect:bN(Qe,D)}))}}if(z.length>0){const ne=Gge(z,E,P,D);ie.push(...ne)}return{changes:ie,updatedInternals:te}}async function ERn({delta:p,panZoom:E,transform:P,translateExtent:N,width:D,height:$}){if(!E||!p.x&&!p.y)return!1;const v=await E.setViewportConstrained({x:P[0]+p.x,y:P[1]+p.y,zoom:P[2]},[[0,0],[D,$]],N);return!!v&&(v.x!==P[0]||v.y!==P[1]||v.k!==P[2])}function Zln(p,E,P,N,D,$){let v=D;const q=N.get(v)||new Map;N.set(v,q.set(P,E)),v=`${D}-${p}`;const te=N.get(v)||new Map;if(N.set(v,te.set(P,E)),$){v=`${D}-${p}-${$}`;const ie=N.get(v)||new Map;N.set(v,ie.set(P,E))}}function uan(p,E,P){p.clear(),E.clear();for(const N of P){const{source:D,target:$,sourceHandle:v=null,targetHandle:q=null}=N,te={edgeId:N.id,source:D,target:$,sourceHandle:v,targetHandle:q},ie=`${D}-${v}--${$}-${q}`,pe=`${$}-${q}--${D}-${v}`;Zln("source",te,pe,p,D,v),Zln("target",te,ie,p,$,q),E.set(N.id,N)}}function oan(p,E){if(!p.parentId)return!1;const P=E.get(p.parentId);return P?P.selected?!0:oan(P,E):!1}function ehn(p,E,P){var D;let N=p;do{if((D=N==null?void 0:N.matches)!=null&&D.call(N,E))return!0;if(N===P)return!1;N=N==null?void 0:N.parentElement}while(N);return!1}function ARn(p,E,P,N){const D=new Map;for(const[$,v]of p)if((v.selected||v.id===N)&&(!v.parentId||!oan(v,p))&&(v.draggable||E&&typeof v.draggable>"u")){const q=p.get($);q&&D.set($,{id:$,position:q.position||{x:0,y:0},distance:{x:P.x-q.internals.positionAbsolute.x,y:P.y-q.internals.positionAbsolute.y},extent:q.extent,parentId:q.parentId,origin:q.origin,expandParent:q.expandParent,internals:{positionAbsolute:q.internals.positionAbsolute||{x:0,y:0}},measured:{width:q.measured.width??0,height:q.measured.height??0}})}return D}function wge({nodeId:p,dragItems:E,nodeLookup:P,dragging:N=!0}){var v,q,te;const D=[];for(const[ie,pe]of E){const oe=(v=P.get(ie))==null?void 0:v.internals.userNode;oe&&D.push({...oe,position:pe.position,dragging:N})}if(!p)return[D[0],D];const $=(q=P.get(p))==null?void 0:q.internals.userNode;return[$?{...$,position:((te=E.get(p))==null?void 0:te.position)||$.position,dragging:N}:D[0],D]}function MRn({dragItems:p,snapGrid:E,x:P,y:N}){const D=p.values().next().value;if(!D)return null;const $={x:P-D.distance.x,y:N-D.distance.y},v=mN($,E);return{x:v.x-$.x,y:v.y-$.y}}function CRn({onNodeMouseDown:p,getStoreItems:E,onDragStart:P,onDrag:N,onDragStop:D}){let $={x:null,y:null},v=0,q=new Map,te=!1,ie={x:0,y:0},pe=null,oe=!1,z=null,ne=!1,Z=!1,U=null;function Ee({noDragClassName:we,handleSelector:ee,domNode:Ce,isSelectable:Qe,nodeId:Xe,nodeClickDistance:Ze=0}){z=B0(Ce);function vn({x:Kn,y:_}){const{nodeLookup:je,nodeExtent:rn,snapGrid:sn,snapToGrid:Sn,nodeOrigin:Bn,onNodeDrag:dn,onSelectionDrag:Jn,onError:Nn,updateNodePositions:qn}=E();$={x:Kn,y:_};let Jt=!1;const Xt=q.size>1,Oi=Xt&&rn?jge(LA(q)):null,gr=Xt&&Sn?MRn({dragItems:q,snapGrid:sn,x:Kn,y:_}):null;for(const[Ki,Wn]of q){if(!je.has(Ki))continue;let ei={x:Kn-Wn.distance.x,y:_-Wn.distance.y};Sn&&(ei=gr?{x:Math.round(ei.x+gr.x),y:Math.round(ei.y+gr.y)}:mN(ei,sn));let rr=null;if(Xt&&rn&&!Wn.extent&&Oi){const{positionAbsolute:sr}=Wn.internals,ri=sr.x-Oi.x+rn[0][0],ai=sr.x+Wn.measured.width-Oi.x2+rn[1][0],Mc=sr.y-Oi.y+rn[0][1],ku=sr.y+Wn.measured.height-Oi.y2+rn[1][1];rr=[[ri,Mc],[ai,ku]]}const{position:cr,positionAbsolute:_i}=qhn({nodeId:Ki,nextPosition:ei,nodeLookup:je,nodeExtent:rr||rn,nodeOrigin:Bn,onError:Nn});Jt=Jt||Wn.position.x!==cr.x||Wn.position.y!==cr.y,Wn.position=cr,Wn.internals.positionAbsolute=_i}if(Z=Z||Jt,!!Jt&&(qn(q,!0),U&&(N||dn||!Xe&&Jn))){const[Ki,Wn]=wge({nodeId:Xe,dragItems:q,nodeLookup:je});N==null||N(U,q,Ki,Wn),dn==null||dn(U,Ki,Wn),Xe||Jn==null||Jn(U,Wn)}}async function jn(){if(!pe)return;const{transform:Kn,panBy:_,autoPanSpeed:je,autoPanOnNodeDrag:rn}=E();if(!rn){te=!1,cancelAnimationFrame(v);return}const[sn,Sn]=Lge(ie,pe,je);(sn!==0||Sn!==0)&&($.x=($.x??0)-sn/Kn[2],$.y=($.y??0)-Sn/Kn[2],await _({x:sn,y:Sn})&&vn($)),v=requestAnimationFrame(jn)}function et(Kn){var Xt;const{nodeLookup:_,multiSelectionActive:je,nodesDraggable:rn,transform:sn,snapGrid:Sn,snapToGrid:Bn,selectNodesOnDrag:dn,onNodeDragStart:Jn,onSelectionDragStart:Nn,unselectNodesAndEdges:qn}=E();oe=!0,(!dn||!Qe)&&!je&&Xe&&((Xt=_.get(Xe))!=null&&Xt.selected||qn()),Qe&&dn&&Xe&&(p==null||p(Xe));const Jt=sN(Kn.sourceEvent,{transform:sn,snapGrid:Sn,snapToGrid:Bn,containerBounds:pe});if($=Jt,q=ARn(_,rn,Jt,Xe),q.size>0&&(P||Jn||!Xe&&Nn)){const[Oi,gr]=wge({nodeId:Xe,dragItems:q,nodeLookup:_});P==null||P(Kn.sourceEvent,q,Oi,gr),Jn==null||Jn(Kn.sourceEvent,Oi,gr),Xe||Nn==null||Nn(Kn.sourceEvent,gr)}}const Dn=Bhn().clickDistance(Ze).on("start",Kn=>{const{domNode:_,nodeDragThreshold:je,transform:rn,snapGrid:sn,snapToGrid:Sn}=E();pe=(_==null?void 0:_.getBoundingClientRect())||null,ne=!1,Z=!1,U=Kn.sourceEvent,je===0&&et(Kn),$=sN(Kn.sourceEvent,{transform:rn,snapGrid:sn,snapToGrid:Sn,containerBounds:pe}),ie=t2(Kn.sourceEvent,pe)}).on("drag",Kn=>{const{autoPanOnNodeDrag:_,transform:je,snapGrid:rn,snapToGrid:sn,nodeDragThreshold:Sn,nodeLookup:Bn}=E(),dn=sN(Kn.sourceEvent,{transform:je,snapGrid:rn,snapToGrid:sn,containerBounds:pe});if(U=Kn.sourceEvent,(Kn.sourceEvent.type==="touchmove"&&Kn.sourceEvent.touches.length>1||Xe&&!Bn.has(Xe))&&(ne=!0),!ne){if(!te&&_&&oe&&(te=!0,jn()),!oe){const Jn=t2(Kn.sourceEvent,pe),Nn=Jn.x-ie.x,qn=Jn.y-ie.y;Math.sqrt(Nn*Nn+qn*qn)>Sn&&et(Kn)}($.x!==dn.xSnapped||$.y!==dn.ySnapped)&&q&&oe&&(ie=t2(Kn.sourceEvent,pe),vn(dn))}}).on("end",Kn=>{if(!oe||ne){ne&&q.size>0&&E().updateNodePositions(q,!1);return}if(te=!1,oe=!1,cancelAnimationFrame(v),q.size>0){const{nodeLookup:_,updateNodePositions:je,onNodeDragStop:rn,onSelectionDragStop:sn}=E();if(Z&&(je(q,!1),Z=!1),D||rn||!Xe&&sn){const[Sn,Bn]=wge({nodeId:Xe,dragItems:q,nodeLookup:_,dragging:!1});D==null||D(Kn.sourceEvent,q,Sn,Bn),rn==null||rn(Kn.sourceEvent,Sn,Bn),Xe||sn==null||sn(Kn.sourceEvent,Bn)}}}).filter(Kn=>{const _=Kn.target;return!Kn.button&&(!we||!ehn(_,`.${we}`,Ce))&&(!ee||ehn(_,ee,Ce))});z.call(Dn)}function re(){z==null||z.on(".drag",null)}return{update:Ee,destroy:re}}function xRn(p,E,P){const N=[],D={x:p.x-P,y:p.y-P,width:P*2,height:P*2};for(const $ of E.values())BX(D,bN($))>0&&N.push($);return N}const TRn=250;function SRn(p,E,P,N){var q,te;let D=[],$=1/0;const v=xRn(p,P,E+TRn);for(const ie of v){const pe=[...((q=ie.internals.handleBounds)==null?void 0:q.source)??[],...((te=ie.internals.handleBounds)==null?void 0:te.target)??[]];for(const oe of pe){if(N.nodeId===oe.nodeId&&N.type===oe.type&&N.id===oe.id)continue;const{x:z,y:ne}=rk(ie,oe,oe.position,!0),Z=Math.sqrt(Math.pow(z-p.x,2)+Math.pow(ne-p.y,2));Z>E||(Z<$?(D=[{...oe,x:z,y:ne}],$=Z):Z===$&&D.push({...oe,x:z,y:ne}))}}if(!D.length)return null;if(D.length>1){const ie=N.type==="source"?"target":"source";return D.find(pe=>pe.type===ie)??D[0]}return D[0]}function san(p,E,P,N,D,$=!1){var ie,pe,oe;const v=N.get(p);if(!v)return null;const q=D==="strict"?(ie=v.internals.handleBounds)==null?void 0:ie[E]:[...((pe=v.internals.handleBounds)==null?void 0:pe.source)??[],...((oe=v.internals.handleBounds)==null?void 0:oe.target)??[]],te=(P?q==null?void 0:q.find(z=>z.id===P):q==null?void 0:q[0])??null;return te&&$?{...te,...rk(v,te,te.position,!0)}:te}function fan(p,E){return p||(E!=null&&E.classList.contains("target")?"target":E!=null&&E.classList.contains("source")?"source":null)}function IRn(p,E){let P=null;return E?P=!0:p&&!E&&(P=!1),P}const lan=()=>!0;function PRn(p,{connectionMode:E,connectionRadius:P,handleId:N,nodeId:D,edgeUpdaterType:$,isTarget:v,domNode:q,nodeLookup:te,lib:ie,autoPanOnConnect:pe,flowId:oe,panBy:z,cancelConnection:ne,onConnectStart:Z,onConnect:U,onConnectEnd:Ee,isValidConnection:re=lan,onReconnectEnd:we,updateConnection:ee,getTransform:Ce,getFromHandle:Qe,autoPanSpeed:Xe,dragThreshold:Ze=1,handleDomNode:vn}){const jn=Yhn(p.target);let et=0,Dn;const{x:Kn,y:_}=t2(p),je=fan($,vn),rn=q==null?void 0:q.getBoundingClientRect();let sn=!1;if(!rn||!je)return;const Sn=san(D,je,N,te,E);if(!Sn)return;let Bn=t2(p,rn),dn=!1,Jn=null,Nn=!1,qn=null;function Jt(){if(!pe||!rn)return;const[cr,_i]=Lge(Bn,rn,Xe);z({x:cr,y:_i}),et=requestAnimationFrame(Jt)}const Xt={...Sn,nodeId:D,type:je,position:Sn.position},Oi=te.get(D);let Ki={inProgress:!0,isValid:null,from:rk(Oi,Xt,ji.Left,!0),fromHandle:Xt,fromPosition:Xt.position,fromNode:Oi,to:Bn,toHandle:null,toPosition:Gln[Xt.position],toNode:null,pointer:Bn};function Wn(){sn=!0,ee(Ki),Z==null||Z(p,{nodeId:D,handleId:N,handleType:je})}Ze===0&&Wn();function ei(cr){if(!sn){const{x:ku,y:ic}=t2(cr),Sa=ku-Kn,ph=ic-_;if(!(Sa*Sa+ph*ph>Ze*Ze))return;Wn()}if(!Qe()||!Xt){rr(cr);return}const _i=Ce();Bn=t2(cr,rn),Dn=SRn(vN(Bn,_i,!1,[1,1]),P,te,Xt),dn||(Jt(),dn=!0);const sr=han(cr,{handle:Dn,connectionMode:E,fromNodeId:D,fromHandleId:N,fromType:v?"target":"source",isValidConnection:re,doc:jn,lib:ie,flowId:oe,nodeLookup:te});qn=sr.handleDomNode,Jn=sr.connection,Nn=IRn(!!Dn,sr.isValid);const ri=te.get(D),ai=ri?rk(ri,Xt,ji.Left,!0):Ki.from,Mc={...Ki,from:ai,isValid:Nn,to:sr.toHandle&&Nn?NA({x:sr.toHandle.x,y:sr.toHandle.y},_i):Bn,toHandle:sr.toHandle,toPosition:Nn&&sr.toHandle?sr.toHandle.position:Gln[Xt.position],toNode:sr.toHandle?te.get(sr.toHandle.nodeId):null,pointer:Bn};ee(Mc),Ki=Mc}function rr(cr){if(!("touches"in cr&&cr.touches.length>0)){if(sn){(Dn||qn)&&Jn&&Nn&&(U==null||U(Jn));const{inProgress:_i,...sr}=Ki,ri={...sr,toPosition:Ki.toHandle?Ki.toPosition:null};Ee==null||Ee(cr,ri),$&&(we==null||we(cr,ri))}ne(),cancelAnimationFrame(et),dn=!1,Nn=!1,Jn=null,qn=null,jn.removeEventListener("mousemove",ei),jn.removeEventListener("mouseup",rr),jn.removeEventListener("touchmove",ei),jn.removeEventListener("touchend",rr)}}jn.addEventListener("mousemove",ei),jn.addEventListener("mouseup",rr),jn.addEventListener("touchmove",ei),jn.addEventListener("touchend",rr)}function han(p,{handle:E,connectionMode:P,fromNodeId:N,fromHandleId:D,fromType:$,doc:v,lib:q,flowId:te,isValidConnection:ie=lan,nodeLookup:pe}){const oe=$==="target",z=E?v.querySelector(`.${q}-flow__handle[data-id="${te}-${E==null?void 0:E.nodeId}-${E==null?void 0:E.id}-${E==null?void 0:E.type}"]`):null,{x:ne,y:Z}=t2(p),U=v.elementFromPoint(ne,Z),Ee=U!=null&&U.classList.contains(`${q}-flow__handle`)?U:z,re={handleDomNode:Ee,isValid:!1,connection:null,toHandle:null};if(Ee){const we=fan(void 0,Ee),ee=Ee.getAttribute("data-nodeid"),Ce=Ee.getAttribute("data-handleid"),Qe=Ee.classList.contains("connectable"),Xe=Ee.classList.contains("connectableend");if(!ee||!we)return re;const Ze={source:oe?ee:N,sourceHandle:oe?Ce:D,target:oe?N:ee,targetHandle:oe?D:Ce};re.connection=Ze;const jn=Qe&&Xe&&(P===PA.Strict?oe&&we==="source"||!oe&&we==="target":ee!==N||Ce!==D);re.isValid=jn&&ie(Ze),re.toHandle=san(ee,we,Ce,pe,P,!0)}return re}const Cge={onPointerDown:PRn,isValid:han};function ORn({domNode:p,panZoom:E,getTransform:P,getViewScale:N}){const D=B0(p);function $({translateExtent:q,width:te,height:ie,zoomStep:pe=1,pannable:oe=!0,zoomable:z=!0,inversePan:ne=!1}){const Z=ee=>{if(ee.sourceEvent.type!=="wheel"||!E)return;const Ce=P(),Qe=ee.sourceEvent.ctrlKey&&wN()?10:1,Xe=-ee.sourceEvent.deltaY*(ee.sourceEvent.deltaMode===1?.05:ee.sourceEvent.deltaMode?1:.002)*pe,Ze=Ce[2]*Math.pow(2,Xe*Qe);E.scaleTo(Ze)};let U=[0,0];const Ee=ee=>{(ee.sourceEvent.type==="mousedown"||ee.sourceEvent.type==="touchstart")&&(U=[ee.sourceEvent.clientX??ee.sourceEvent.touches[0].clientX,ee.sourceEvent.clientY??ee.sourceEvent.touches[0].clientY])},re=ee=>{const Ce=P();if(ee.sourceEvent.type!=="mousemove"&&ee.sourceEvent.type!=="touchmove"||!E)return;const Qe=[ee.sourceEvent.clientX??ee.sourceEvent.touches[0].clientX,ee.sourceEvent.clientY??ee.sourceEvent.touches[0].clientY],Xe=[Qe[0]-U[0],Qe[1]-U[1]];U=Qe;const Ze=N()*Math.max(Ce[2],Math.log(Ce[2]))*(ne?-1:1),vn={x:Ce[0]-Xe[0]*Ze,y:Ce[1]-Xe[1]*Ze},jn=[[0,0],[te,ie]];E.setViewportConstrained({x:vn.x,y:vn.y,zoom:Ce[2]},jn,q)},we=Rhn().on("start",Ee).on("zoom",oe?re:null).on("zoom.wheel",z?Z:null);D.call(we,{})}function v(){D.on("zoom",null)}return{update:$,destroy:v,pointer:e2}}const HX=p=>({x:p.x,y:p.y,zoom:p.k}),gge=({x:p,y:E,zoom:P})=>Oge.translate(p,E).scale(P),q5=(p,E)=>p.target.closest(`.${E}`),aan=(p,E)=>E===2&&Array.isArray(p)&&p.includes(2),NRn=p=>((p*=2)<=1?p*p*p:(p-=2)*p*p+2)/2,pge=(p,E=0,P=NRn,N=()=>{})=>{const D=typeof E=="number"&&E>0;return D||N(),D?p.transition().duration(E).ease(P).on("end",N):p},dan=p=>{const E=p.ctrlKey&&wN()?10:1;return-p.deltaY*(p.deltaMode===1?.05:p.deltaMode?1:.002)*E};function DRn({zoomPanValues:p,noWheelClassName:E,d3Selection:P,d3Zoom:N,panOnScrollMode:D,panOnScrollSpeed:$,zoomOnPinch:v,onPanZoomStart:q,onPanZoom:te,onPanZoomEnd:ie}){return pe=>{if(q5(pe,E))return pe.ctrlKey&&pe.preventDefault(),!1;pe.preventDefault(),pe.stopImmediatePropagation();const oe=P.property("__zoom").k||1;if(pe.ctrlKey&&v){const Ee=e2(pe),re=dan(pe),we=oe*Math.pow(2,re);N.scaleTo(P,we,Ee,pe);return}const z=pe.deltaMode===1?20:1;let ne=D===nk.Vertical?0:pe.deltaX*z,Z=D===nk.Horizontal?0:pe.deltaY*z;!wN()&&pe.shiftKey&&D!==nk.Vertical&&(ne=pe.deltaY*z,Z=0),N.translateBy(P,-(ne/oe)*$,-(Z/oe)*$,{internal:!0});const U=HX(P.property("__zoom"));clearTimeout(p.panScrollTimeout),p.isPanScrolling?te==null||te(pe,U):(p.isPanScrolling=!0,q==null||q(pe,U)),p.panScrollTimeout=setTimeout(()=>{ie==null||ie(pe,U),p.isPanScrolling=!1},150)}}function LRn({noWheelClassName:p,preventScrolling:E,d3ZoomHandler:P}){return function(N,D){const $=N.type==="wheel",v=!E&&$&&!N.ctrlKey,q=q5(N,p);if(N.ctrlKey&&$&&q&&N.preventDefault(),v||q)return null;N.preventDefault(),P.call(this,N,D)}}function $Rn({zoomPanValues:p,onDraggingChange:E,onPanZoomStart:P}){return N=>{var $,v,q;if(($=N.sourceEvent)!=null&&$.internal)return;const D=HX(N.transform);p.mouseButton=((v=N.sourceEvent)==null?void 0:v.button)||0,p.isZoomingOrPanning=!0,p.prevViewport=D,((q=N.sourceEvent)==null?void 0:q.type)==="mousedown"&&E(!0),P&&(P==null||P(N.sourceEvent,D))}}function FRn({zoomPanValues:p,panOnDrag:E,onPaneContextMenu:P,onTransformChange:N,onPanZoom:D}){return $=>{var v,q;p.usedRightMouseButton=!!(P&&aan(E,p.mouseButton??0)),(v=$.sourceEvent)!=null&&v.sync||N([$.transform.x,$.transform.y,$.transform.k]),D&&!((q=$.sourceEvent)!=null&&q.internal)&&(D==null||D($.sourceEvent,HX($.transform)))}}function BRn({zoomPanValues:p,panOnDrag:E,panOnScroll:P,onDraggingChange:N,onPanZoomEnd:D,onPaneContextMenu:$}){return v=>{var q;if(!((q=v.sourceEvent)!=null&&q.internal)&&(p.isZoomingOrPanning=!1,$&&aan(E,p.mouseButton??0)&&!p.usedRightMouseButton&&v.sourceEvent&&$(v.sourceEvent),p.usedRightMouseButton=!1,N(!1),D)){const te=HX(v.transform);p.prevViewport=te,clearTimeout(p.timerId),p.timerId=setTimeout(()=>{D==null||D(v.sourceEvent,te)},P?150:0)}}}function RRn({panActivationKeyPressed:p,zoomActivationKeyPressed:E,zoomOnScroll:P,zoomOnPinch:N,panOnDrag:D,panOnScroll:$,zoomOnDoubleClick:v,userSelectionActive:q,noWheelClassName:te,noPanClassName:ie,lib:pe,connectionInProgress:oe}){return z=>{var re;const ne=E||P,Z=N&&z.ctrlKey,U=z.type==="wheel";if(z.button===1&&z.type==="mousedown"&&(q5(z,`${pe}-flow__node`)||q5(z,`${pe}-flow__edge`)||q5(z,`${pe}-flow__selection`)||q5(z,`${pe}-flow__nodesselection`)))return!0;if(!D&&!ne&&!$&&!v&&!N||q||oe&&!U||q5(z,te)&&U||q5(z,ie)&&(!U||$&&U&&!E)||!N&&z.ctrlKey&&U)return!1;if(!N&&z.type==="touchstart"&&((re=z.touches)==null?void 0:re.length)>1)return z.preventDefault(),!1;if(!ne&&!$&&!Z&&U||!D&&(z.type==="mousedown"||z.type==="touchstart")||Array.isArray(D)&&!D.includes(z.button)&&z.type==="mousedown")return!1;const Ee=Array.isArray(D)&&D.includes(z.button)||!z.button||z.button<=1;return(!z.ctrlKey||U||p)&&Ee}}function _Rn({domNode:p,minZoom:E,maxZoom:P,translateExtent:N,viewport:D,onPanZoom:$,onPanZoomStart:v,onPanZoomEnd:q,onDraggingChange:te}){const ie={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},pe=p.getBoundingClientRect();let oe=[[0,0],[pe.width,pe.height]];const z=typeof ResizeObserver<"u"?new ResizeObserver(_=>{const je=_[0];je&&(oe=[[0,0],[je.contentRect.width,je.contentRect.height]])}):null;z==null||z.observe(p);const ne=Rhn().extent(()=>oe).scaleExtent([E,P]).translateExtent(N),Z=B0(p).call(ne);Ce({x:D.x,y:D.y,zoom:OA(D.zoom,E,P)},[[0,0],[pe.width,pe.height]],N);const U=Z.on("wheel.zoom"),Ee=Z.on("dblclick.zoom");ne.wheelDelta(dan);async function re(_,je){return Z?new Promise(rn=>{ne==null||ne.interpolate((je==null?void 0:je.interpolate)==="linear"?hge:NX).transform(pge(Z,je==null?void 0:je.duration,je==null?void 0:je.ease,()=>rn(!0)),_)}):!1}function we({noWheelClassName:_,noPanClassName:je,onPaneContextMenu:rn,userSelectionActive:sn,panOnScroll:Sn,panOnDrag:Bn,panOnScrollMode:dn,panOnScrollSpeed:Jn,preventScrolling:Nn,zoomOnPinch:qn,zoomOnScroll:Jt,zoomOnDoubleClick:Xt,panActivationKeyPressed:Oi=!1,zoomActivationKeyPressed:gr,lib:Ki,onTransformChange:Wn,connectionInProgress:ei,paneClickDistance:rr,selectionOnDrag:cr}){sn&&!ie.isZoomingOrPanning&&ee();const _i=Sn&&!gr&&!sn;ne.clickDistance(cr?1/0:!n2(rr)||rr<0?0:rr);const sr=_i?DRn({zoomPanValues:ie,noWheelClassName:_,d3Selection:Z,d3Zoom:ne,panOnScrollMode:dn,panOnScrollSpeed:Jn,zoomOnPinch:qn,onPanZoomStart:v,onPanZoom:$,onPanZoomEnd:q}):LRn({noWheelClassName:_,preventScrolling:Nn,d3ZoomHandler:U});Z.on("wheel.zoom",sr,{passive:!1});const ri=$Rn({zoomPanValues:ie,onDraggingChange:te,onPanZoomStart:v});ne.on("start",ri);const ai=FRn({zoomPanValues:ie,panOnDrag:Bn,onPaneContextMenu:!!rn,onPanZoom:$,onTransformChange:Wn});ne.on("zoom",ai);const Mc=BRn({zoomPanValues:ie,panOnDrag:Bn,panOnScroll:Sn,onPaneContextMenu:rn,onPanZoomEnd:q,onDraggingChange:te});ne.on("end",Mc);const ku=RRn({panActivationKeyPressed:Oi,zoomActivationKeyPressed:gr,panOnDrag:Bn,zoomOnScroll:Jt,panOnScroll:Sn,zoomOnDoubleClick:Xt,zoomOnPinch:qn,userSelectionActive:sn,noPanClassName:je,noWheelClassName:_,lib:Ki,connectionInProgress:ei});ne.filter(ku),Xt?Z.on("dblclick.zoom",Ee):Z.on("dblclick.zoom",null)}function ee(){ne.on("zoom",null)}async function Ce(_,je,rn){const sn=gge(_),Sn=ne==null?void 0:ne.constrain()(sn,je,rn);return Sn&&await re(Sn),Sn}async function Qe(_,je){const rn=gge(_);return await re(rn,je),rn}function Xe(_){if(Z){const je=gge(_),rn=Z.property("__zoom");(rn.k!==_.zoom||rn.x!==_.x||rn.y!==_.y)&&(ne==null||ne.transform(Z,je,null,{sync:!0}))}}function Ze(){const _=Z?yBn(Z.node()):{x:0,y:0,k:1};return{x:_.x,y:_.y,zoom:_.k}}async function vn(_,je){return Z?new Promise(rn=>{ne==null||ne.interpolate((je==null?void 0:je.interpolate)==="linear"?hge:NX).scaleTo(pge(Z,je==null?void 0:je.duration,je==null?void 0:je.ease,()=>rn(!0)),_)}):!1}async function jn(_,je){return Z?new Promise(rn=>{ne==null||ne.interpolate((je==null?void 0:je.interpolate)==="linear"?hge:NX).scaleBy(pge(Z,je==null?void 0:je.duration,je==null?void 0:je.ease,()=>rn(!0)),_)}):!1}function et(_){ne==null||ne.scaleExtent(_)}function Dn(_){ne==null||ne.translateExtent(_)}function Kn(_){const je=!n2(_)||_<0?0:_;ne==null||ne.clickDistance(je)}return{update:we,destroy:ee,setViewport:Qe,setViewportConstrained:Ce,getViewport:Ze,scaleTo:vn,scaleBy:jn,setScaleExtent:et,setTranslateExtent:Dn,syncViewport:Xe,setClickDistance:Kn}}var DA;(function(p){p.Line="line",p.Handle="handle"})(DA||(DA={}));function JRn({width:p,prevWidth:E,height:P,prevHeight:N,affectsX:D,affectsY:$}){const v=p-E,q=P-N,te=[v>0?1:v<0?-1:0,q>0?1:q<0?-1:0];return v&&D&&(te[0]=te[0]*-1),q&&$&&(te[1]=te[1]*-1),te}function nhn(p){const E=p.includes("right")||p.includes("left"),P=p.includes("bottom")||p.includes("top"),N=p.includes("left"),D=p.includes("top");return{isHorizontal:E,isVertical:P,affectsX:N,affectsY:D}}function G5(p,E){return Math.max(0,E-p)}function H5(p,E){return Math.max(0,p-E)}function SX(p,E,P){return Math.max(0,E-p,p-P)}function thn(p,E){return p?!E:E}function GRn(p,E,P,N,D,$,v,q){let{affectsX:te,affectsY:ie}=E;const{isHorizontal:pe,isVertical:oe}=E,z=pe&&oe,{xSnapped:ne,ySnapped:Z}=P,{minWidth:U,maxWidth:Ee,minHeight:re,maxHeight:we}=N,{x:ee,y:Ce,width:Qe,height:Xe,aspectRatio:Ze}=p;let vn=Math.floor(pe?ne-p.pointerX:0),jn=Math.floor(oe?Z-p.pointerY:0);const et=Qe+(te?-vn:vn),Dn=Xe+(ie?-jn:jn),Kn=-$[0]*Qe,_=-$[1]*Xe;let je=SX(et,U,Ee),rn=SX(Dn,re,we);if(v){let Bn=0,dn=0;te&&vn<0?Bn=G5(ee+vn+Kn,v[0][0]):!te&&vn>0&&(Bn=H5(ee+et+Kn,v[1][0])),ie&&jn<0?dn=G5(Ce+jn+_,v[0][1]):!ie&&jn>0&&(dn=H5(Ce+Dn+_,v[1][1])),je=Math.max(je,Bn),rn=Math.max(rn,dn)}if(q){let Bn=0,dn=0;te&&vn>0?Bn=H5(ee+vn,q[0][0]):!te&&vn<0&&(Bn=G5(ee+et,q[1][0])),ie&&jn>0?dn=H5(Ce+jn,q[0][1]):!ie&&jn<0&&(dn=G5(Ce+Dn,q[1][1])),je=Math.max(je,Bn),rn=Math.max(rn,dn)}if(D){if(pe){const Bn=SX(et/Ze,re,we)*Ze;if(je=Math.max(je,Bn),v){let dn=0;!te&&!ie||te&&!ie&&z?dn=H5(Ce+_+et/Ze,v[1][1])*Ze:dn=G5(Ce+_+(te?vn:-vn)/Ze,v[0][1])*Ze,je=Math.max(je,dn)}if(q){let dn=0;!te&&!ie||te&&!ie&&z?dn=G5(Ce+et/Ze,q[1][1])*Ze:dn=H5(Ce+(te?vn:-vn)/Ze,q[0][1])*Ze,je=Math.max(je,dn)}}if(oe){const Bn=SX(Dn*Ze,U,Ee)/Ze;if(rn=Math.max(rn,Bn),v){let dn=0;!te&&!ie||ie&&!te&&z?dn=H5(ee+Dn*Ze+Kn,v[1][0])/Ze:dn=G5(ee+(ie?jn:-jn)*Ze+Kn,v[0][0])/Ze,rn=Math.max(rn,dn)}if(q){let dn=0;!te&&!ie||ie&&!te&&z?dn=G5(ee+Dn*Ze,q[1][0])/Ze:dn=H5(ee+(ie?jn:-jn)*Ze,q[0][0])/Ze,rn=Math.max(rn,dn)}}}jn=jn+(jn<0?rn:-rn),vn=vn+(vn<0?je:-je),D&&(z?et>Dn*Ze?jn=(thn(te,ie)?-vn:vn)/Ze:vn=(thn(te,ie)?-jn:jn)*Ze:pe?(jn=vn/Ze,ie=te):(vn=jn*Ze,te=ie));const sn=te?ee+vn:ee,Sn=ie?Ce+jn:Ce;return{width:Qe+(te?-vn:vn),height:Xe+(ie?-jn:jn),x:$[0]*vn*(te?-1:1)+sn,y:$[1]*jn*(ie?-1:1)+Sn}}const ban={width:0,height:0,x:0,y:0},HRn={...ban,pointerX:0,pointerY:0,aspectRatio:1};function qRn(p,E,P){const N=E.position.x+p.position.x,D=E.position.y+p.position.y,$=p.measured.width??0,v=p.measured.height??0,q=P[0]*$,te=P[1]*v;return[[N-q,D-te],[N+$-q,D+v-te]]}function zRn({domNode:p,nodeId:E,getStoreItems:P,onChange:N,onEnd:D}){const $=B0(p);let v={controlDirection:nhn("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function q({controlPosition:ie,boundaries:pe,keepAspectRatio:oe,resizeDirection:z,onResizeStart:ne,onResize:Z,onResizeEnd:U,shouldResize:Ee}){let re={...ban},we={...HRn};v={boundaries:pe,resizeDirection:z,keepAspectRatio:oe,controlDirection:nhn(ie)};let ee,Ce=null,Qe=[],Xe,Ze,vn;const jn=Bhn().on("start",et=>{const{nodeLookup:Dn,transform:Kn,snapGrid:_,snapToGrid:je,nodeOrigin:rn,paneDomNode:sn}=P();if(ee=Dn.get(E),!ee)return;Ce=(sn==null?void 0:sn.getBoundingClientRect())??null;const{xSnapped:Sn,ySnapped:Bn}=sN(et.sourceEvent,{transform:Kn,snapGrid:_,snapToGrid:je,containerBounds:Ce});re={width:ee.measured.width??0,height:ee.measured.height??0,x:ee.position.x??0,y:ee.position.y??0},we={...re,pointerX:Sn,pointerY:Bn,aspectRatio:re.width/re.height},Xe=void 0,Ze=ik(ee.extent)?ee.extent:void 0,ee.parentId&&(ee.extent==="parent"||ee.expandParent)&&(Xe=Dn.get(ee.parentId)),Xe&&ee.extent==="parent"&&(Ze=[[0,0],[Xe.measured.width,Xe.measured.height]]),Qe=[],vn=void 0;for(const[dn,Jn]of Dn)if(Jn.parentId===E&&(Qe.push({id:dn,position:{...Jn.position},extent:Jn.extent}),Jn.extent==="parent"||Jn.expandParent)){const Nn=qRn(Jn,ee,Jn.origin??rn);vn?vn=[[Math.min(Nn[0][0],vn[0][0]),Math.min(Nn[0][1],vn[0][1])],[Math.max(Nn[1][0],vn[1][0]),Math.max(Nn[1][1],vn[1][1])]]:vn=Nn}ne==null||ne(et,{...re})}).on("drag",et=>{const{transform:Dn,snapGrid:Kn,snapToGrid:_,nodeOrigin:je}=P(),rn=sN(et.sourceEvent,{transform:Dn,snapGrid:Kn,snapToGrid:_,containerBounds:Ce}),sn=[];if(!ee)return;const{x:Sn,y:Bn,width:dn,height:Jn}=re,Nn={},qn=ee.origin??je,{width:Jt,height:Xt,x:Oi,y:gr}=GRn(we,v.controlDirection,rn,v.boundaries,v.keepAspectRatio,qn,Ze,vn),Ki=Jt!==dn,Wn=Xt!==Jn,ei=Oi!==Sn&&Ki,rr=gr!==Bn&&Wn;if(!ei&&!rr&&!Ki&&!Wn)return;const cr={prevValues:{...re},startX:we.x,startY:we.y,childNodes:Qe.map(ai=>({...ai,position:{...ai.position}}))};if((ei||rr||qn[0]===1||qn[1]===1)&&(Nn.x=ei?Oi:re.x,Nn.y=rr?gr:re.y,re.x=Nn.x,re.y=Nn.y,Qe.length>0)){const ai=Oi-Sn,Mc=gr-Bn;for(const ku of Qe)ku.position={x:ku.position.x-ai+qn[0]*(Jt-dn),y:ku.position.y-Mc+qn[1]*(Xt-Jn)},sn.push(ku)}if((Ki||Wn)&&(Nn.width=Ki&&(!v.resizeDirection||v.resizeDirection==="horizontal")?Jt:re.width,Nn.height=Wn&&(!v.resizeDirection||v.resizeDirection==="vertical")?Xt:re.height,re.width=Nn.width,re.height=Nn.height),Xe&&ee.expandParent){const ai=qn[0]*(Nn.width??0);Nn.x&&Nn.x<ai&&(re.x=ai,we.x=we.x-(Nn.x-ai));const Mc=qn[1]*(Nn.height??0);Nn.y&&Nn.y<Mc&&(re.y=Mc,we.y=we.y-(Nn.y-Mc))}const _i=JRn({width:re.width,prevWidth:dn,height:re.height,prevHeight:Jn,affectsX:v.controlDirection.affectsX,affectsY:v.controlDirection.affectsY}),sr={...re,direction:_i};if((Ee==null?void 0:Ee(et,sr))===!1){re=cr.prevValues,we.x=cr.startX,we.y=cr.startY,Qe.forEach((ai,Mc)=>{ai.position=cr.childNodes[Mc].position});return}Z==null||Z(et,sr),N(Nn,sn)}).on("end",et=>{U==null||U(et,{...re}),D==null||D({...re})});$.call(jn)}function te(){$.on(".drag",null)}return{update:q,destroy:te}}const URn={},ihn=p=>{let E;const P=new Set,N=(pe,oe)=>{const z=typeof pe=="function"?pe(E):pe;if(!Object.is(z,E)){const ne=E;E=oe??(typeof z!="object"||z===null)?z:Object.assign({},E,z),P.forEach(Z=>Z(E,ne))}},D=()=>E,te={setState:N,getState:D,getInitialState:()=>ie,subscribe:pe=>(P.add(pe),()=>P.delete(pe)),destroy:()=>{(URn?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),P.clear()}},ie=E=p(N,D,te);return te},XRn=p=>p?ihn(p):ihn,{useDebugValue:KRn}=qFn,{useSyncExternalStoreWithSelector:WRn}=HFn,VRn=p=>p;function wan(p,E=VRn,P){const N=WRn(p.subscribe,p.getState,p.getServerState||p.getInitialState,E,P);return KRn(N),N}const rhn=(p,E)=>{const P=XRn(p),N=(D,$=E)=>wan(P,D,$);return Object.assign(N,P),N},QRn=(p,E)=>p?rhn(p,E):rhn;function Cs(p,E){if(Object.is(p,E))return!0;if(typeof p!="object"||p===null||typeof E!="object"||E===null)return!1;if(p instanceof Map&&E instanceof Map){if(p.size!==E.size)return!1;for(const[N,D]of p)if(!Object.is(D,E.get(N)))return!1;return!0}if(p instanceof Set&&E instanceof Set){if(p.size!==E.size)return!1;for(const N of p)if(!E.has(N))return!1;return!0}const P=Object.keys(p);if(P.length!==Object.keys(E).length)return!1;for(const N of P)if(!Object.prototype.hasOwnProperty.call(E,N)||!Object.is(p[N],E[N]))return!1;return!0}const qX=cn.createContext(null),YRn=qX.Provider,gan=r2.error001("react");function Sc(p,E){const P=cn.useContext(qX);if(P===null)throw new Error(gan);return wan(P,p,E)}function cs(){const p=cn.useContext(qX);if(p===null)throw new Error(gan);return cn.useMemo(()=>({getState:p.getState,setState:p.setState,subscribe:p.subscribe}),[p])}const chn={display:"none"},ZRn={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},pan="react-flow__node-desc",man="react-flow__edge-desc",e_n="react-flow__aria-live",n_n=p=>p.ariaLiveMessage,t_n=p=>p.ariaLabelConfig;function i_n({rfId:p}){const E=Sc(n_n);return le.jsx("div",{id:`${e_n}-${p}`,"aria-live":"assertive","aria-atomic":"true",style:ZRn,children:E})}function r_n({rfId:p,disableKeyboardA11y:E}){const P=Sc(t_n);return le.jsxs(le.Fragment,{children:[le.jsx("div",{id:`${pan}-${p}`,style:chn,children:E?P["node.a11yDescription.default"]:P["node.a11yDescription.keyboardDisabled"]}),le.jsx("div",{id:`${man}-${p}`,style:chn,children:P["edge.a11yDescription.default"]}),!E&&le.jsx(i_n,{rfId:p})]})}const kN=cn.forwardRef(({position:p="top-left",children:E,className:P,style:N,...D},$)=>{const v=`${p}`.split("-");return le.jsx("div",{className:Xf(["react-flow__panel",P,...v]),style:N,ref:$,...D,children:E})});kN.displayName="Panel";const uhn="https://reactflow.dev?utm_source=attribution";function c_n({proOptions:p,position:E="bottom-right"}){return cn.useEffect(()=>{},[]),p!=null&&p.hideAttribution?null:le.jsx(kN,{position:E,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${uhn}`,children:le.jsx("a",{href:uhn,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const u_n=p=>{const E=[],P=[];for(const[,N]of p.nodeLookup)N.selected&&E.push(N.internals.userNode);for(const[,N]of p.edgeLookup)N.selected&&P.push(N);return{selectedNodes:E,selectedEdges:P}},IX=p=>p.id;function o_n(p,E){return Cs(p.selectedNodes.map(IX),E.selectedNodes.map(IX))&&Cs(p.selectedEdges.map(IX),E.selectedEdges.map(IX))}function s_n({onSelectionChange:p}){const E=cs(),{selectedNodes:P,selectedEdges:N}=Sc(u_n,o_n);return cn.useEffect(()=>{const D={nodes:P,edges:N};p==null||p(D),E.getState().onSelectionChangeHandlers.forEach($=>$(D))},[P,N,p]),null}const f_n=p=>!!p.onSelectionChangeHandlers;function l_n({onSelectionChange:p}){const E=Sc(f_n);return p||E?le.jsx(s_n,{onSelectionChange:p}):null}const van=[0,0],h_n={x:0,y:0,zoom:1},a_n=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],ohn=[...a_n,"rfId"],d_n=p=>({setNodes:p.setNodes,setEdges:p.setEdges,setMinZoom:p.setMinZoom,setMaxZoom:p.setMaxZoom,setTranslateExtent:p.setTranslateExtent,setNodeExtent:p.setNodeExtent,reset:p.reset,setDefaultNodesAndEdges:p.setDefaultNodesAndEdges}),shn={translateExtent:hN,nodeOrigin:van,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function b_n(p){const{setNodes:E,setEdges:P,setMinZoom:N,setMaxZoom:D,setTranslateExtent:$,setNodeExtent:v,reset:q,setDefaultNodesAndEdges:te}=Sc(d_n,Cs),ie=cs();cn.useEffect(()=>(te(p.defaultNodes,p.defaultEdges),()=>{pe.current=shn,q()}),[]);const pe=cn.useRef(shn);return cn.useEffect(()=>{for(const oe of ohn){const z=p[oe],ne=pe.current[oe];z!==ne&&(typeof p[oe]>"u"||(oe==="nodes"?E(z):oe==="edges"?P(z):oe==="minZoom"?N(z):oe==="maxZoom"?D(z):oe==="translateExtent"?$(z):oe==="nodeExtent"?v(z):oe==="ariaLabelConfig"?ie.setState({ariaLabelConfig:iRn(z)}):oe==="fitView"?ie.setState({fitViewQueued:z}):oe==="fitViewOptions"?ie.setState({fitViewOptions:z}):ie.setState({[oe]:z})))}pe.current=p},ohn.map(oe=>p[oe])),null}function fhn(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function w_n(p){var N;const[E,P]=cn.useState(p==="system"?null:p);return cn.useEffect(()=>{if(p!=="system"){P(p);return}const D=fhn(),$=()=>P(D!=null&&D.matches?"dark":"light");return $(),D==null||D.addEventListener("change",$),()=>{D==null||D.removeEventListener("change",$)}},[p]),E!==null?E:(N=fhn())!=null&&N.matches?"dark":"light"}const lhn=typeof document<"u"?document:null;function gN(p=null,E={target:lhn,actInsideInputWithModifier:!0}){const[P,N]=cn.useState(!1),D=cn.useRef(!1),$=cn.useRef(new Set([])),[v,q]=cn.useMemo(()=>{if(p!==null){const ie=(Array.isArray(p)?p:[p]).filter(oe=>typeof oe=="string").map(oe=>oe.replace(/\+/g,`
2
2
  `).replace(`
3
3
 
4
4
  `,`
@@ -27,4 +27,4 @@ import{mz as HFn,R as qFn,r as cn,j as le,ez as Nhn,ji as zFn,k5 as UFn,ib as XF
27
27
  `),c.length!=2)throw x(new An("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=Kw(Ww(c[0])),this.b=Kw(Ww(c[1]))}catch(o){throw o=Fi(o),F(o,131)?(i=o,x(new An(hWe+i))):x(o)}},s.Ib=function(){return"("+this.a+","+this.b+")"},s.a=0,s.b=0;var br=w(Qj,"KVector",8);b(79,66,{3:1,4:1,20:1,31:1,56:1,18:1,66:1,16:1,79:1,414:1},Lo,yM,PTe),s.Nc=function(){return w8n(this)},s.ag=function(n){var t,i,r,c,o,f;r=ng(n,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
28
28
  `),Yo(this);try{for(i=0,o=0,c=0,f=0;i<r.length;)r[i]!=null&&Ww(r[i]).length>0&&(o%2==0?c=Kw(r[i]):f=Kw(r[i]),o>0&&o%2!=0&&Mt(this,new de(c,f)),++o),++i}catch(l){throw l=Fi(l),F(l,131)?(t=l,x(new An("The given string does not match the expected format for vectors."+t))):x(l)}},s.Ib=function(){var n,t,i;for(n=new us("("),t=rt(this,0);t.b!=t.d.c;)i=u(tt(t),8),At(n,i.a+","+i.b),t.b!=t.d.c&&(n.a+="; ");return(n.a+=")",n).a};var q0e=w(Qj,"KVectorChain",79);b(256,24,{3:1,35:1,24:1,256:1},k6);var $U,SO,IO,QE,YE,PO,z0e=Zn(Gu,"Alignment",256,ut,g6n,J2n),wsn;b(976,1,Pl,Xye),s.tf=function(n){tUe(n)};var U0e,FU,gsn,X0e,K0e,psn,W0e,msn,vsn,V0e,Q0e,ysn;w(Gu,"BoxLayouterOptions",976),b(977,1,{},m5e),s.uf=function(){var n;return n=new k5e,n},s.vf=function(n){},w(Gu,"BoxLayouterOptions/BoxFactory",977),b(299,24,{3:1,35:1,24:1,299:1},j6);var M8,BU,C8,x8,T8,RU,_U=Zn(Gu,"ContentAlignment",299,ut,v6n,G2n),ksn;b(689,1,Pl,oK),s.tf=function(n){_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,pVe),""),"Layout Algorithm"),"Select a specific layout algorithm."),(u0(),I3)),Ie),Je((th(),on))))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,mVe),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Bl),$Fn),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Yue),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Y0e),gi),z0e),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,D4),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Pr),zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,ase),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),Bl),q0e),Je(al)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,rI),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),ebe),S3),_U),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,tE),""),"Debug Mode"),"Whether additional debug information shall be generated."),(gn(),!1)),nr),xi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,dG),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),nbe),gi),I8),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,nE),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),rbe),gi),eX),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,lse),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),nr),xi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,iI),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),ube),gi),Wbe),ci(on,I(S(Fl,1),ae,160,0,[Ri]))))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,sg),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),pbe),Bl),ile),ci(on,I(S(Fl,1),ae,160,0,[Ri]))))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,cy),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),nr),xi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,uI),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),nr),xi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,uy),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),nr),xi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,EJ),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),jbe),gi),Ybe),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,cI),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),Bl),br),ci(Ri,I(S(Fl,1),ae,160,0,[h1,ja]))))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,zj),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Gr),Zi),ci(Ri,I(S(Fl,1),ae,160,0,[al]))))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,BS),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),Gr),Zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,ry),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),nr),xi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,foe),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),fbe),Bl),q0e),Je(al)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,doe),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),nr),xi),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,boe),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),nr),xi),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,fFn),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),Bl),GFn),ci(on,I(S(Fl,1),ae,160,0,[ja]))))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,vVe),""),"Softwrapping Fuzziness"),"Determines the amount of fuzziness to be used when performing softwrapping on labels. The value expresses the percent of overhang that is permitted for each line. If the next line would take up less space than this threshold, it is appended to the current line instead of being placed in a new line."),0),Pr),zi),Je(ja)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,goe),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),lbe),Bl),tle),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Vue),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),nr),xi),ci(Ri,I(S(Fl,1),ae,160,0,[al,h1,ja]))))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,yVe),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Pr),zi),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,kVe),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Pr),zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,jVe),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Pr),zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Uj),""),aVe),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),nr),xi),Je(on)))),mi(n,Uj,Tb,null),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,EVe),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),nr),xi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,AVe),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),fe(100)),Gr),Zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,MVe),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),nr),xi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,CVe),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),fe(4e3)),Gr),Zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,xVe),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),fe(400)),Gr),Zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,TVe),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),nr),xi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,SVe),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),nr),xi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,IVe),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),nr),xi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,PVe),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),nr),xi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,hse),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),Z0e),gi),hwe),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,OVe),"json"),"Shape Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for nodes, ports, and labels of nodes and ports."),sbe),gi),nwe),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,NVe),"json"),"Edge Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels."),obe),gi),$be),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Bue),Nl),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Pr),zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Rue),Nl),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Pr),zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,_ue),Nl),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Pr),zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Jue),Nl),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Pr),zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,jJ),Nl),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Pr),zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,aG),Nl),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Pr),zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Gue),Nl),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Pr),zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,zue),Nl),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Pr),zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Hue),Nl),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Pr),zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,que),Nl),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Pr),zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,og),Nl),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Pr),zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Uue),Nl),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Pr),zi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Xue),Nl),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Pr),zi),ci(on,I(S(Fl,1),ae,160,0,[Ri]))))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,Kue),Nl),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),Bl),pfn),ci(Ri,I(S(Fl,1),ae,160,0,[al,h1,ja]))))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,poe),Nl),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),Obe),Bl),tle),Je(on)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,wG),$Ve),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),Gr),Zi),ci(on,I(S(Fl,1),ae,160,0,[Ri]))))),mi(n,wG,bG,Nsn),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,bG),$Ve),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),mbe),nr),xi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,noe),FVe),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),abe),Bl),ile),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,$4),FVe),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),dbe),S3),lc),ci(Ri,I(S(Fl,1),ae,160,0,[ja]))))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,roe),bI),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),ybe),gi),D8),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,coe),bI),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),gi),D8),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,uoe),bI),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),gi),D8),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,ooe),bI),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),gi),D8),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,soe),bI),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),gi),D8),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,ep),_G),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),bbe),S3),F8),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,r3),_G),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),gbe),S3),twe),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,c3),_G),"Node Size Minimum"),"The minimal size to which a node can be reduced."),wbe),Bl),br),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,L4),_G),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),nr),xi),Je(on)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,hoe),hG),"Edge Label Placement"),"Gives a hint on where to put edge labels."),tbe),gi),Fbe),Je(ja)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,RS),hG),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),nr),xi),Je(ja)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,lFn),"font"),"Font Name"),"Font name used for a label."),I3),Ie),Je(ja)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,DVe),"font"),"Font Size"),"Font size used for a label."),Gr),Zi),Je(ja)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,woe),JG),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),Bl),br),Je(h1)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,aoe),JG),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),Gr),Zi),Je(h1)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Que),JG),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),Mbe),gi),Yr),Je(h1)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,Wue),JG),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Pr),zi),Je(h1)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,F4),wse),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),Ebe),S3),BO),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,toe),wse),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),nr),xi),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,ioe),wse),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),nr),xi),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,BG),U4),"Number of size categories"),"Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator."),fe(3)),Gr),Zi),Je(on)))),mi(n,BG,RG,zsn),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,dse),U4),"Weight of a node containing children for determining the graph size"),"When determining the graph size for the size categorisation, this value determines how many times a node containing children is weighted more than a simple node. For example setting this value to four would result in a graph containing a simple node and a hierarchical node to be counted as having a size of five."),fe(4)),Gr),Zi),Je(on)))),mi(n,dse,BG,null),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Xj),U4),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),Pr),zi),Je(on)))),mi(n,Xj,Tb,Gsn),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,RG),U4),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),Bl),FFn),Je(Ri)))),mi(n,RG,Tb,Hsn),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Kj),U4),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),Pr),zi),ci(on,I(S(Fl,1),ae,160,0,[Ri]))))),mi(n,Kj,Tb,null),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Wj),U4),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),Pr),zi),ci(on,I(S(Fl,1),ae,160,0,[Ri]))))),mi(n,Wj,Tb,null),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Tb),U4),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),gi),rwe),Je(Ri)))),mi(n,Tb,L4,null),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,bse),U4),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),Pr),zi),Je(on)))),mi(n,bse,Tb,Jsn),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Zue),BVe),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),nr),xi),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,eoe),BVe),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),nr),xi),Je(al)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,loe),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Pr),zi),Je(al)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,LVe),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),cbe),gi),Hbe),Je(al)))),a6(n,new Em(o6(nv(ev(new Hp,wn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),a6(n,new Em(o6(nv(ev(new Hp,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),a6(n,new Em(o6(nv(ev(new Hp,Ku),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),a6(n,new Em(o6(nv(ev(new Hp,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),a6(n,new Em(o6(nv(ev(new Hp,VWe),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),a6(n,new Em(o6(nv(ev(new Hp,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),a6(n,new Em(o6(nv(ev(new Hp,_s),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),_ze((new Kye,n)),tUe((new Xye,n)),aze((new Wye,n))};var P3,jsn,Y0e,S5,Esn,Asn,Z0e,$g,Fg,Msn,ZE,ebe,eA,T0,nbe,JU,GU,tbe,ibe,rbe,Csn,cbe,xsn,Pp,ube,Tsn,nA,HU,tA,qU,Ssn,obe,Isn,sbe,Op,fbe,I5,lbe,hbe,abe,Np,dbe,S0,bbe,Bg,Dp,wbe,md,gbe,OO,iA,_h,pbe,Psn,mbe,Osn,Nsn,vbe,ybe,zU,UU,XU,KU,kbe,Uo,S8,jbe,WU,VU,Rg,Ebe,Abe,Lp,Mbe,O3,rA,QU,_g,Dsn,YU,Lsn,$sn,Fsn,Bsn,Cbe,xbe,N3,Tbe,NO,Sbe,Ibe,a1,Rsn,Pbe,Obe,Nbe,P5,Jg,O5,D3,_sn,Jsn,DO,Gsn,LO,Hsn,qsn,zsn,Usn;w(Gu,"CoreOptions",689),b(86,24,{3:1,35:1,24:1,86:1},$k);var Rl,Ec,Tc,_l,zs,I8=Zn(Gu,"Direction",86,ut,T5n,H2n),Xsn;b(278,24,{3:1,35:1,24:1,278:1},WM);var $O,cA,Dbe,Lbe,$be=Zn(Gu,"EdgeCoords",278,ut,e5n,q2n),Ksn;b(279,24,{3:1,35:1,24:1,279:1},_L);var N5,Gg,D5,Fbe=Zn(Gu,"EdgeLabelPlacement",279,ut,Qvn,z2n),Wsn;b(222,24,{3:1,35:1,24:1,222:1},VM);var L5,uA,L3,ZU,eX=Zn(Gu,"EdgeRouting",222,ut,i5n,U2n),Vsn;b(328,24,{3:1,35:1,24:1,328:1},E6);var Bbe,Rbe,_be,Jbe,nX,Gbe,Hbe=Zn(Gu,"EdgeType",328,ut,y6n,X2n),Qsn;b(974,1,Pl,Kye),s.tf=function(n){_ze(n)};var qbe,zbe,Ube,Xbe,Ysn,Kbe,P8;w(Gu,"FixedLayouterOptions",974),b(975,1,{},v5e),s.uf=function(){var n;return n=new A5e,n},s.vf=function(n){},w(Gu,"FixedLayouterOptions/FixedFactory",975),b(347,24,{3:1,35:1,24:1,347:1},JL);var d1,FO,O8,Wbe=Zn(Gu,"HierarchyHandling",347,ut,Yvn,K2n),Zsn,FFn=yi(Gu,"ITopdownSizeApproximator");b(292,24,{3:1,35:1,24:1,292:1},QM);var Jh,vd,oA,sA,efn=Zn(Gu,"LabelSide",292,ut,r5n,W2n),nfn;b(96,24,{3:1,35:1,24:1,96:1},d2);var Ea,_f,lf,Jf,ks,Gf,hf,Gh,Hf,lc=Zn(Gu,"NodeLabelPlacement",96,ut,k9n,V2n),tfn;b(257,24,{3:1,35:1,24:1,257:1},Fk);var Vbe,N8,yd,Qbe,fA,D8=Zn(Gu,"PortAlignment",257,ut,J5n,Q2n),ifn;b(102,24,{3:1,35:1,24:1,102:1},A6);var I0,yu,Hh,$5,Jl,kd,Ybe=Zn(Gu,"PortConstraints",102,ut,p6n,Y2n),rfn;b(280,24,{3:1,35:1,24:1,280:1},M6);var L8,$8,Aa,lA,jd,$3,BO=Zn(Gu,"PortLabelPlacement",280,ut,m6n,Z2n),cfn;b(64,24,{3:1,35:1,24:1,64:1},Bk);var Ln,xn,Us,Xs,so,Qu,Gl,qf,Oo,Eo,Lu,No,fo,lo,zf,js,Es,af,Xn,qc,Tn,Yr=Zn(Gu,"PortSide",64,ut,S5n,epn),ufn;b(978,1,Pl,Wye),s.tf=function(n){aze(n)};var ofn,sfn,Zbe,ffn,lfn;w(Gu,"RandomLayouterOptions",978),b(979,1,{},y5e),s.uf=function(){var n;return n=new P5e,n},s.vf=function(n){},w(Gu,"RandomLayouterOptions/RandomFactory",979),b(300,24,{3:1,35:1,24:1,300:1},GL);var hA,tX,ewe,nwe=Zn(Gu,"ShapeCoords",300,ut,Zvn,npn),hfn;b(380,24,{3:1,35:1,24:1,380:1},YM);var Hg,aA,dA,P0,F8=Zn(Gu,"SizeConstraint",380,ut,t5n,tpn),afn;b(266,24,{3:1,35:1,24:1,266:1},b2);var bA,RO,F5,iX,wA,B8,_O,JO,GO,twe=Zn(Gu,"SizeOptions",266,ut,P9n,ipn),dfn;b(281,24,{3:1,35:1,24:1,281:1},HL);var qg,iwe,HO,rwe=Zn(Gu,"TopdownNodeTypes",281,ut,e4n,rpn),bfn;b(288,24,gI);var cwe,rX,uwe,owe,gA=Zn(Gu,"TopdownSizeApproximator",288,ut,n5n,cpn);b(970,288,gI,bIe),s.Sg=function(n){return Q_e(n)},Zn(Gu,"TopdownSizeApproximator/1",970,gA,null,null),b(971,288,gI,JIe),s.Sg=function(n){var t,i,r,c,o,f,l,h,a,d,g,m,y,j,A,T,L,R,G,Y,V,Me,He,Ge,fn;for(t=u(he(n,(Et(),_g)),144),Me=(C1(),y=new n6,y),pj(Me,n),He=new Vn,o=new Rn((!n.a&&(n.a=new ue(mt,n,10,11)),n.a));o.e!=o.i.gc();)r=u(Gn(o),26),R=(m=new n6,m),fS(R,Me),pj(R,r),fn=Q_e(r),U0(R,v.Math.max(r.g,fn.a),v.Math.max(r.f,fn.b)),ro(He.f,r,R);for(c=new Rn((!n.a&&(n.a=new ue(mt,n,10,11)),n.a));c.e!=c.i.gc();)for(r=u(Gn(c),26),d=new Rn((!r.e&&(r.e=new hn(Xi,r,7,4)),r.e));d.e!=d.i.gc();)a=u(Gn(d),85),Y=u($c(pc(He.f,r)),26),V=u(yn(He,B((!a.c&&(a.c=new hn(Yn,a,5,8)),a.c),0)),26),G=(g=new yD,g),it((!G.b&&(G.b=new hn(Yn,G,4,7)),G.b),Y),it((!G.c&&(G.c=new hn(Yn,G,5,8)),G.c),V),sS(G,pi(Y)),pj(G,a);A=u(l7(t.f),214);try{A.kf(Me,new vD),LY(t.f,A)}catch(an){throw an=Fi(an),F(an,101)?(j=an,x(j)):x(an)}return nl(Me,Fg)||nl(Me,$g)||O_(Me),h=J(H(he(Me,Fg))),l=J(H(he(Me,$g))),f=h/l,i=J(H(he(Me,Jg)))*v.Math.sqrt((!Me.a&&(Me.a=new ue(mt,Me,10,11)),Me.a).i),Ge=u(he(Me,_h),104),L=Ge.b+Ge.c+1,T=Ge.d+Ge.a+1,new de(v.Math.max(L,i),v.Math.max(T,i/f))},Zn(Gu,"TopdownSizeApproximator/2",971,gA,null,null),b(972,288,gI,AOe),s.Sg=function(n){var t,i,r,c,o,f;return i=J(H(he(n,(Et(),Jg)))),t=i/J(H(he(n,P5))),r=SOn(n),o=u(he(n,_h),104),c=J(H(Ae(a1))),pi(n)&&(c=J(H(he(pi(n),a1)))),f=Qh(new de(i,t),r),zt(f,new de(-(o.b+o.c)-c,-(o.d+o.a)-c))},Zn(Gu,"TopdownSizeApproximator/3",972,gA,null,null),b(973,288,gI,ePe),s.Sg=function(n){var t,i,r,c,o,f,l,h,a,d;for(f=new Rn((!n.a&&(n.a=new ue(mt,n,10,11)),n.a));f.e!=f.i.gc();)o=u(Gn(f),26),he(o,(Et(),LO))!=null&&(!o.a&&(o.a=new ue(mt,o,10,11)),!!o.a)&&(!o.a&&(o.a=new ue(mt,o,10,11)),o.a).i>0?(i=u(he(o,LO),522),d=i.Sg(o),a=u(he(o,_h),104),U0(o,v.Math.max(o.g,d.a+a.b+a.c),v.Math.max(o.f,d.b+a.d+a.a))):(!o.a&&(o.a=new ue(mt,o,10,11)),o.a).i!=0&&U0(o,J(H(he(o,Jg))),J(H(he(o,Jg)))/J(H(he(o,P5))));t=u(he(n,(Et(),_g)),144),h=u(l7(t.f),214);try{h.kf(n,new vD),LY(t.f,h)}catch(g){throw g=Fi(g),F(g,101)?(l=g,x(l)):x(g)}return Yt(n,P3,X4),bDe(n),O_(n),c=J(H(he(n,Fg))),r=J(H(he(n,$g))),new de(c,r)},Zn(Gu,"TopdownSizeApproximator/4",973,gA,null,null);var wfn;b(345,1,{853:1},Wp),s.Tg=function(n,t){return lGe(this,n,t)},s.Ug=function(){$Ge(this)},s.Vg=function(){return this.q},s.Wg=function(){return this.f?ux(this.f):null},s.Xg=function(){return ux(this.a)},s.Yg=function(){return this.p},s.Zg=function(){return!1},s.$g=function(){return this.n},s._g=function(){return this.p!=null&&!this.b},s.ah=function(n){var t;this.n&&(t=n,me(this.f,t))},s.bh=function(n,t){var i,r;this.n&&n&&w4n(this,(i=new hPe,r=h_(i,n),bLn(i),r),(dT(),uX))},s.dh=function(n){var t;return this.b?null:(t=r9n(this,this.g),Mt(this.a,t),t.i=this,this.d=n,t)},s.eh=function(n){n>0&&!this.b&&kee(this,n)},s.b=!1,s.c=0,s.d=-1,s.e=null,s.f=null,s.g=-1,s.j=!1,s.k=!1,s.n=!1,s.o=0,s.q=0,s.r=0,w(ru,"BasicProgressMonitor",345),b(706,214,xb,k5e),s.kf=function(n,t){vUe(n,t)},w(ru,"BoxLayoutProvider",706),b(966,1,Ct,Z7e),s.Le=function(n,t){return dSn(this,u(n,26),u(t,26))},s.Fb=function(n){return this===n},s.Me=function(){return new yt(this)},s.a=!1,w(ru,"BoxLayoutProvider/1",966),b(167,1,{167:1},Hx,ITe),s.Ib=function(){return this.c?Ere(this.c):xl(this.b)},w(ru,"BoxLayoutProvider/Group",167),b(327,24,{3:1,35:1,24:1,327:1},ZM);var swe,fwe,lwe,cX,hwe=Zn(ru,"BoxLayoutProvider/PackingMode",327,ut,c5n,upn),gfn;b(967,1,Ct,C5e),s.Le=function(n,t){return A3n(u(n,167),u(t,167))},s.Fb=function(n){return this===n},s.Me=function(){return new yt(this)},w(ru,"BoxLayoutProvider/lambda$0$Type",967),b(968,1,Ct,x5e),s.Le=function(n,t){return d3n(u(n,167),u(t,167))},s.Fb=function(n){return this===n},s.Me=function(){return new yt(this)},w(ru,"BoxLayoutProvider/lambda$1$Type",968),b(969,1,Ct,T5e),s.Le=function(n,t){return b3n(u(n,167),u(t,167))},s.Fb=function(n){return this===n},s.Me=function(){return new yt(this)},w(ru,"BoxLayoutProvider/lambda$2$Type",969),b(1339,1,{830:1},S5e),s.Lg=function(n,t){return CM(),!F(t,174)||OAe((Dm(),u(n,174)),t)},w(ru,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1339),b(1340,1,Fn,eje),s.Ad=function(n){k8n(this.a,u(n,147))},w(ru,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1340),b(1341,1,Fn,I5e),s.Ad=function(n){u(n,105),CM()},w(ru,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1341),b(1345,1,Fn,nje),s.Ad=function(n){H9n(this.a,u(n,105))},w(ru,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1345),b(1343,1,gt,kCe),s.Mb=function(n){return i8n(this.a,this.b,u(n,147))},w(ru,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1343),b(1342,1,gt,jCe),s.Mb=function(n){return lwn(this.a,this.b,u(n,830))},w(ru,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1342),b(1344,1,Fn,ECe),s.Ad=function(n){hmn(this.a,this.b,u(n,147))},w(ru,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1344),b(931,1,{},E5e),s.Kb=function(n){return Exe(n)},s.Fb=function(n){return this===n},w(ru,"ElkUtil/lambda$0$Type",931),b(932,1,Fn,ACe),s.Ad=function(n){pxn(this.a,this.b,u(n,85))},s.a=0,s.b=0,w(ru,"ElkUtil/lambda$1$Type",932),b(933,1,Fn,MCe),s.Ad=function(n){ddn(this.a,this.b,u(n,170))},s.a=0,s.b=0,w(ru,"ElkUtil/lambda$2$Type",933),b(934,1,Fn,CCe),s.Ad=function(n){sbn(this.a,this.b,u(n,157))},s.a=0,s.b=0,w(ru,"ElkUtil/lambda$3$Type",934),b(935,1,Fn,tje),s.Ad=function(n){Dpn(this.a,u(n,372))},w(ru,"ElkUtil/lambda$4$Type",935),b(331,1,{35:1,331:1},G1n),s.Dd=function(n){return $bn(this,u(n,242))},s.Fb=function(n){var t;return F(n,331)?(t=u(n,331),this.a==t.a):!1},s.Hb=function(){return Br(this.a)},s.Ib=function(){return this.a+" (exclusive)"},s.a=0,w(ru,"ExclusiveBounds/ExclusiveLowerBound",331),b(1089,214,xb,A5e),s.kf=function(n,t){var i,r,c,o,f,l,h,a,d,g,m,y,j,A,T,L,R,G,Y,V,Me,He,Ge;for(t.Tg("Fixed Layout",1),o=u(he(n,(Et(),ibe)),222),g=0,m=0,R=new Rn((!n.a&&(n.a=new ue(mt,n,10,11)),n.a));R.e!=R.i.gc();){for(T=u(Gn(R),26),Ge=u(he(T,(aT(),P8)),8),Ge&&(Ts(T,Ge.a,Ge.b),u(he(T,zbe),182).Gc((ts(),Hg))&&(y=u(he(T,Xbe),8),y.a>0&&y.b>0&&Eb(T,y.a,y.b,!0,!0))),g=v.Math.max(g,T.i+T.g),m=v.Math.max(m,T.j+T.f),a=new Rn((!T.n&&(T.n=new ue(zc,T,1,7)),T.n));a.e!=a.i.gc();)l=u(Gn(a),157),Ge=u(he(l,P8),8),Ge&&Ts(l,Ge.a,Ge.b),g=v.Math.max(g,T.i+l.i+l.g),m=v.Math.max(m,T.j+l.j+l.f);for(V=new Rn((!T.c&&(T.c=new ue(Xo,T,9,9)),T.c));V.e!=V.i.gc();)for(Y=u(Gn(V),125),Ge=u(he(Y,P8),8),Ge&&Ts(Y,Ge.a,Ge.b),Me=T.i+Y.i,He=T.j+Y.j,g=v.Math.max(g,Me+Y.g),m=v.Math.max(m,He+Y.f),h=new Rn((!Y.n&&(Y.n=new ue(zc,Y,1,7)),Y.n));h.e!=h.i.gc();)l=u(Gn(h),157),Ge=u(he(l,P8),8),Ge&&Ts(l,Ge.a,Ge.b),g=v.Math.max(g,Me+l.i+l.g),m=v.Math.max(m,He+l.j+l.f);for(c=new Mn(In(V1(T).a.Jc(),new U));zn(c);)i=u($n(c),85),d=OXe(i),g=v.Math.max(g,d.a),m=v.Math.max(m,d.b);for(r=new Mn(In(QR(T).a.Jc(),new U));zn(r);)i=u($n(r),85),pi(FR(i))!=n&&(d=OXe(i),g=v.Math.max(g,d.a),m=v.Math.max(m,d.b))}if(o==(ha(),L5))for(L=new Rn((!n.a&&(n.a=new ue(mt,n,10,11)),n.a));L.e!=L.i.gc();)for(T=u(Gn(L),26),r=new Mn(In(V1(T).a.Jc(),new U));zn(r);)i=u($n(r),85),f=bOn(i),f.b==0?Yt(i,Op,null):Yt(i,Op,f);Se(Te(he(n,(aT(),Ube))))||(G=u(he(n,Ysn),104),A=g+G.b+G.c,j=m+G.d+G.a,Eb(n,A,j,!0,!0)),t.Ug()},w(ru,"FixedLayoutProvider",1089),b(379,150,{3:1,414:1,379:1,105:1,150:1},mD,j$e),s.ag=function(n){var t,i,r,c,o,f,l,h,a;if(n)try{for(h=ng(n,";,;"),o=h,f=0,l=o.length;f<l;++f){if(c=o[f],i=ng(c,"\\:"),r=tce(u9(),i[0]),!r)throw x(new An("Invalid option id: "+i[0]));if(a=ece(r,i[1]),a==null)throw x(new An("Invalid option value: "+i[1]));a==null?(!this.q&&(this.q=new Vn),xm(this.q,r)):(!this.q&&(this.q=new Vn),It(this.q,r,a))}}catch(d){throw d=Fi(d),F(d,101)?(t=d,x(new rRe(t))):x(d)}},s.Ib=function(){var n;return n=dt(Co(Fu((this.q?this.q:(tn(),tn(),$h)).vc().Mc(),new j5e),B6n(new QSe,new Mc,new rr,new sr,I(S(oo,1),ae,130,0,[])))),n};var pfn=w(ru,"IndividualSpacings",379);b(965,1,{},j5e),s.Kb=function(n){return E3n(u(n,45))},w(ru,"IndividualSpacings/lambda$0$Type",965),b(708,1,{},TIe),s.c=0,w(ru,"InstancePool",708),b(1819,1,{},M5e),w(ru,"LoggedGraph",1819),b(407,24,{3:1,35:1,24:1,407:1},eC);var awe,uX,dwe,bwe,mfn=Zn(ru,"LoggedGraph/Type",407,ut,u5n,opn),vfn;b(615,1,{853:1},vD),s.Tg=function(n,t){return!1},s.Ug=function(){},s.Vg=function(){return 0},s.Wg=function(){return null},s.Xg=function(){return null},s.Yg=function(){return null},s.Zg=function(){return!1},s.$g=function(){return!1},s._g=function(){return!1},s.ah=function(n){},s.bh=function(n,t){},s.dh=function(n){return this},s.eh=function(n){},w(ru,"NullElkProgressMonitor",615),b(49,1,{20:1,49:1},Wr),s.Ic=function(n){Dr(this,n)},s.Fb=function(n){var t,i,r;return F(n,49)?(i=u(n,49),t=this.a==null?i.a==null:qt(this.a,i.a),r=this.b==null?i.b==null:qt(this.b,i.b),t&&r):!1},s.Hb=function(){var n,t,i,r,c,o;return i=this.a==null?0:si(this.a),n=i&Qi,t=i&-65536,o=this.b==null?0:si(this.b),r=o&Qi,c=o&-65536,n^c>>16&Qi|t^r<<16},s.Jc=function(){return new ije(this)},s.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Oc(this.b)+")":this.b==null?"pair("+Oc(this.a)+",null)":"pair("+Oc(this.a)+","+Oc(this.b)+")"},w(ru,"Pair",49),b(980,1,kr,ije),s.Nb=function(n){Ir(this,n)},s.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},s.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw x(new Dc)},s.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),x(new bo)},s.b=!1,s.c=!1,w(ru,"Pair/1",980),b(1079,214,xb,P5e),s.kf=function(n,t){var i,r,c,o,f;if(t.Tg("Random Layout",1),(!n.a&&(n.a=new ue(mt,n,10,11)),n.a).i==0){t.Ug();return}o=u(he(n,(Wne(),ffn)),15),o&&o.a!=0?c=new yx(o.a):c=new GB,i=pk(H(he(n,ofn))),f=pk(H(he(n,lfn))),r=u(he(n,sfn),104),LLn(n,c,i,f,r),t.Ug()},w(ru,"RandomLayoutProvider",1079),b(240,1,{240:1},j$),s.Fb=function(n){return du(this.a,u(n,240).a)&&du(this.b,u(n,240).b)&&du(this.c,u(n,240).c)},s.Hb=function(){return bT(I(S(ir,1),ln,1,5,[this.a,this.b,this.c]))},s.Ib=function(){return"("+this.a+Ju+this.b+Ju+this.c+")"},w(ru,"Triple",240);var yfn;b(551,1,{}),s.Jf=function(){return new de(this.f.i,this.f.j)},s.mf=function(n){return yOe(n,(Et(),Uo))?he(this.f,kfn):he(this.f,n)},s.Kf=function(){return new de(this.f.g,this.f.f)},s.Lf=function(){return this.g},s.nf=function(n){return nl(this.f,n)},s.Mf=function(n){_o(this.f,n.a),Jo(this.f,n.b)},s.Nf=function(n){fb(this.f,n.a),sb(this.f,n.b)},s.Of=function(n){this.g=n},s.g=0;var kfn;w(gy,"ElkGraphAdapters/AbstractElkGraphElementAdapter",551),b(553,1,{838:1},cM),s.Pf=function(){var n,t;if(!this.b)for(this.b=gx(Z$(this.a).i),t=new Rn(Z$(this.a));t.e!=t.i.gc();)n=u(Gn(t),157),me(this.b,new QD(n));return this.b},s.b=null,w(gy,"ElkGraphAdapters/ElkEdgeAdapter",553),b(260,551,{},E1),s.Qf=function(){return pJe(this)},s.a=null,w(gy,"ElkGraphAdapters/ElkGraphAdapter",260),b(631,551,{187:1},QD),w(gy,"ElkGraphAdapters/ElkLabelAdapter",631),b(552,551,{685:1},gC),s.Pf=function(){return Jjn(this)},s.Tf=function(){var n;return n=u(he(this.f,(Et(),I5)),140),!n&&(n=new e6),n},s.Vf=function(){return Gjn(this)},s.Xf=function(n){var t;t=new y$(n),Yt(this.f,(Et(),I5),t)},s.Yf=function(n){Yt(this.f,(Et(),_h),new SQ(n))},s.Rf=function(){return this.d},s.Sf=function(){var n,t;if(!this.a)for(this.a=new ve,t=new Mn(In(QR(u(this.f,26)).a.Jc(),new U));zn(t);)n=u($n(t),85),me(this.a,new cM(n));return this.a},s.Uf=function(){var n,t;if(!this.c)for(this.c=new ve,t=new Mn(In(V1(u(this.f,26)).a.Jc(),new U));zn(t);)n=u($n(t),85),me(this.c,new cM(n));return this.c},s.Wf=function(){return rx(u(this.f,26)).i!=0||Se(Te(u(this.f,26).mf((Et(),nA))))},s.Zf=function(){R6n(this,(Ld(),yfn))},s.a=null,s.b=null,s.c=null,s.d=null,s.e=null,w(gy,"ElkGraphAdapters/ElkNodeAdapter",552),b(1251,551,{837:1},Pje),s.Pf=function(){return Wjn(this)},s.Sf=function(){var n,t;if(!this.a)for(this.a=yh(u(this.f,125).gh().i),t=new Rn(u(this.f,125).gh());t.e!=t.i.gc();)n=u(Gn(t),85),me(this.a,new cM(n));return this.a},s.Uf=function(){var n,t;if(!this.c)for(this.c=yh(u(this.f,125).hh().i),t=new Rn(u(this.f,125).hh());t.e!=t.i.gc();)n=u(Gn(t),85),me(this.c,new cM(n));return this.c},s.$f=function(){return u(u(this.f,125).mf((Et(),Lp)),64)},s._f=function(){var n,t,i,r,c,o,f,l;for(r=ml(u(this.f,125)),i=new Rn(u(this.f,125).hh());i.e!=i.i.gc();)for(n=u(Gn(i),85),l=new Rn((!n.c&&(n.c=new hn(Yn,n,5,8)),n.c));l.e!=l.i.gc();){if(f=u(Gn(l),84),$w(xc(f),r))return!0;if(xc(f)==r&&Se(Te(he(n,(Et(),HU)))))return!0}for(t=new Rn(u(this.f,125).gh());t.e!=t.i.gc();)for(n=u(Gn(t),85),o=new Rn((!n.b&&(n.b=new hn(Yn,n,4,7)),n.b));o.e!=o.i.gc();)if(c=u(Gn(o),84),$w(xc(c),r))return!0;return!1},s.a=null,s.b=null,s.c=null,w(gy,"ElkGraphAdapters/ElkPortAdapter",1251),b(1252,1,Ct,O5e),s.Le=function(n,t){return cPn(u(n,125),u(t,125))},s.Fb=function(n){return this===n},s.Me=function(){return new yt(this)},w(gy,"ElkGraphAdapters/PortComparator",1252);var Ed=yi(Js,"EObject"),B5=yi(rp,JVe),As=yi(rp,GVe),pA=yi(rp,HVe),mA=yi(rp,"ElkShape"),Yn=yi(rp,qVe),Xi=yi(rp,pse),bi=yi(rp,zVe),vA=yi(Js,UVe),R8=yi(Js,"EFactory"),jfn,oX=yi(Js,XVe),dl=yi(Js,"EPackage"),wr,Efn,Afn,wwe,qO,Mfn,gwe,pwe,mwe,qh,Cfn,xfn,zc=yi(rp,mse),mt=yi(rp,vse),Xo=yi(rp,yse);b(93,1,KVe),s.qh=function(){return this.rh(),null},s.rh=function(){return null},s.sh=function(){return this.rh(),!1},s.th=function(){return!1},s.uh=function(n){Gt(this,n)},w(o3,"BasicNotifierImpl",93),b(100,93,YVe),s.Vh=function(){return Ko(this)},s.vh=function(n,t){return n},s.wh=function(){throw x(new ht)},s.xh=function(n){var t;return t=tc(u(un(this.Ah(),this.Ch()),19)),this.Mh().Qh(this,t.n,t.f,n)},s.yh=function(n,t){throw x(new ht)},s.zh=function(n,t,i){return gs(this,n,t,i)},s.Ah=function(){var n;return this.wh()&&(n=this.wh().Lk(),n)?n:this.fi()},s.Bh=function(){return WR(this)},s.Ch=function(){throw x(new ht)},s.Dh=function(){var n,t;return t=this.Xh().Mk(),!t&&this.wh().Rk(t=(b6(),n=WY(rh(this.Ah())),n==null?wX:new Hk(this,n))),t},s.Eh=function(n,t){return n},s.Fh=function(n){var t;return t=n.nk(),t?n.Jj():vi(this.Ah(),n)},s.Gh=function(){var n;return n=this.wh(),n?n.Ok():null},s.Hh=function(){return this.wh()?this.wh().Lk():null},s.Ih=function(n,t,i){return $T(this,n,t,i)},s.Jh=function(n){return Pv(this,n)},s.Kh=function(n,t){return NF(this,n,t)},s.Lh=function(){var n;return n=this.wh(),!!n&&n.Pk()},s.Mh=function(){throw x(new ht)},s.Nh=function(){return PT(this)},s.Oh=function(n,t,i,r){return _m(this,n,t,r)},s.Ph=function(n,t,i){var r;return r=u(un(this.Ah(),t),69),r.uk().xk(this,this.ei(),t-this.gi(),n,i)},s.Qh=function(n,t,i,r){return fx(this,n,t,r)},s.Rh=function(n,t,i){var r;return r=u(un(this.Ah(),t),69),r.uk().yk(this,this.ei(),t-this.gi(),n,i)},s.Sh=function(){return!!this.wh()&&!!this.wh().Nk()},s.Th=function(n){return rR(this,n)},s.Uh=function(n){return $Oe(this,n)},s.Wh=function(n){return wXe(this,n)},s.Xh=function(){throw x(new ht)},s.Yh=function(){return this.wh()?this.wh().Nk():null},s.Zh=function(){return PT(this)},s.$h=function(n,t){qR(this,n,t)},s._h=function(n){this.Xh().Qk(n)},s.ai=function(n){this.Xh().Tk(n)},s.bi=function(n){this.Xh().Sk(n)},s.ci=function(n,t){var i,r,c,o;return o=this.Gh(),o&&n&&(t=Xr(o.Cl(),this,t),o.Gl(this)),r=this.Mh(),r&&((s_(this,this.Mh(),this.Ch()).Bb&Vr)!=0?(c=r.Nh(),c&&(n?!o&&c.Gl(this):c.Fl(this))):(t=(i=this.Ch(),i>=0?this.xh(t):this.Mh().Qh(this,-1-i,null,t)),t=this.zh(null,-1,t))),this.ai(n),t},s.di=function(n){var t,i,r,c,o,f,l,h;if(i=this.Ah(),o=vi(i,n),t=this.gi(),o>=t)return u(n,69).uk().Bk(this,this.ei(),o-t);if(o<=-1)if(f=W2((yo(),Or),i,n),f){if(nc(),u(f,69).vk()||(f=Am(vc(Or,f))),c=(r=this.Fh(f),u(r>=0?this.Ih(r,!0,!0):yb(this,f,!0),163)),h=f.Gk(),h>1||h==-1)return u(u(c,219).Ql(n,!1),78)}else throw x(new An(rd+n.ve()+GG));else if(n.Hk())return r=this.Fh(n),u(r>=0?this.Ih(r,!1,!0):yb(this,n,!1),78);return l=new zCe(this,n),l},s.ei=function(){return tee(this)},s.fi=function(){return(O1(),mn).S},s.gi=function(){return Un(this.fi())},s.hi=function(n){JR(this,n)},s.Ib=function(){return Pf(this)},w(kn,"BasicEObjectImpl",100);var Tfn;b(117,100,{109:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1}),s.ii=function(n){var t;return t=iee(this),t[n]},s.ji=function(n,t){var i;i=iee(this),Ni(i,n,t)},s.ki=function(n){var t;t=iee(this),Ni(t,n,null)},s.qh=function(){return u(Cn(this,4),129)},s.rh=function(){throw x(new ht)},s.sh=function(){return(this.Db&4)!=0},s.wh=function(){throw x(new ht)},s.li=function(n){Bm(this,2,n)},s.yh=function(n,t){this.Db=t<<16|this.Db&255,this.li(n)},s.Ah=function(){return eo(this)},s.Ch=function(){return this.Db>>16},s.Dh=function(){var n,t;return b6(),t=WY(rh((n=u(Cn(this,16),29),n||this.fi()))),t==null?wX:new Hk(this,t)},s.th=function(){return(this.Db&1)==0},s.Gh=function(){return u(Cn(this,128),1999)},s.Hh=function(){return u(Cn(this,16),29)},s.Lh=function(){return(this.Db&32)!=0},s.Mh=function(){return u(Cn(this,2),52)},s.Sh=function(){return(this.Db&64)!=0},s.Xh=function(){throw x(new ht)},s.Yh=function(){return u(Cn(this,64),290)},s._h=function(n){Bm(this,16,n)},s.ai=function(n){Bm(this,128,n)},s.bi=function(n){Bm(this,64,n)},s.ei=function(){return Uu(this)},s.Db=0,w(kn,"MinimalEObjectImpl",117),b(118,117,{109:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),s.li=function(n){this.Cb=n},s.Mh=function(){return this.Cb},w(kn,"MinimalEObjectImpl/Container",118),b(i1,118,{109:1,343:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),s.Ih=function(n,t,i){return mte(this,n,t,i)},s.Rh=function(n,t,i){return uie(this,n,t,i)},s.Th=function(n){return fZ(this,n)},s.$h=function(n,t){tne(this,n,t)},s.fi=function(){return su(),xfn},s.hi=function(n){zee(this,n)},s.lf=function(){return F_e(this)},s.fh=function(){return!this.o&&(this.o=new mo((su(),qh),b1,this,0)),this.o},s.mf=function(n){return he(this,n)},s.nf=function(n){return nl(this,n)},s.of=function(n,t){return Yt(this,n,t)},w(d0,"EMapPropertyHolderImpl",i1),b(559,118,{109:1,372:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},WA),s.Ih=function(n,t,i){switch(n){case 0:return this.a;case 1:return this.b}return $T(this,n,t,i)},s.Th=function(n){switch(n){case 0:return this.a!=0;case 1:return this.b!=0}return rR(this,n)},s.$h=function(n,t){switch(n){case 0:qx(this,J(H(t)));return;case 1:zx(this,J(H(t)));return}qR(this,n,t)},s.fi=function(){return su(),Efn},s.hi=function(n){switch(n){case 0:qx(this,0);return;case 1:zx(this,0);return}JR(this,n)},s.Ib=function(){var n;return(this.Db&64)!=0?Pf(this):(n=new Ys(Pf(this)),n.a+=" (x: ",f2(n,this.a),n.a+=", y: ",f2(n,this.b),n.a+=")",n.a)},s.a=0,s.b=0,w(d0,"ElkBendPointImpl",559),b(727,i1,{109:1,343:1,174:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),s.Ih=function(n,t,i){return Ene(this,n,t,i)},s.Ph=function(n,t,i){return NR(this,n,t,i)},s.Rh=function(n,t,i){return gB(this,n,t,i)},s.Th=function(n){return Ree(this,n)},s.$h=function(n,t){$te(this,n,t)},s.fi=function(){return su(),Mfn},s.hi=function(n){vne(this,n)},s.ih=function(){return this.k},s.jh=function(){return Z$(this)},s.Ib=function(){return _B(this)},s.k=null,w(d0,"ElkGraphElementImpl",727),b(728,727,{109:1,343:1,174:1,276:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),s.Ih=function(n,t,i){return $ne(this,n,t,i)},s.Th=function(n){return Gne(this,n)},s.$h=function(n,t){Fte(this,n,t)},s.fi=function(){return su(),Cfn},s.hi=function(n){Une(this,n)},s.kh=function(){return this.f},s.lh=function(){return this.g},s.mh=function(){return this.i},s.nh=function(){return this.j},s.oh=function(n,t){U0(this,n,t)},s.ph=function(n,t){Ts(this,n,t)},s.Ib=function(){return RR(this)},s.f=0,s.g=0,s.i=0,s.j=0,w(d0,"ElkShapeImpl",728),b(729,728,{109:1,343:1,84:1,174:1,276:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),s.Ih=function(n,t,i){return ate(this,n,t,i)},s.Ph=function(n,t,i){return Ite(this,n,t,i)},s.Rh=function(n,t,i){return Pte(this,n,t,i)},s.Th=function(n){return nne(this,n)},s.$h=function(n,t){qie(this,n,t)},s.fi=function(){return su(),Afn},s.hi=function(n){ote(this,n)},s.gh=function(){return!this.d&&(this.d=new hn(Xi,this,8,5)),this.d},s.hh=function(){return!this.e&&(this.e=new hn(Xi,this,7,4)),this.e},w(d0,"ElkConnectableShapeImpl",729),b(271,727,{109:1,343:1,85:1,174:1,271:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},yD),s.xh=function(n){return xte(this,n)},s.Ih=function(n,t,i){switch(n){case 3:return Tw(this);case 4:return!this.b&&(this.b=new hn(Yn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new hn(Yn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new ue(bi,this,6,6)),this.a;case 7:return gn(),!this.b&&(this.b=new hn(Yn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new hn(Yn,this,5,8)),this.c.i<=1));case 8:return gn(),!!$9(this);case 9:return gn(),!!vb(this);case 10:return gn(),!this.b&&(this.b=new hn(Yn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new hn(Yn,this,5,8)),this.c.i!=0)}return Ene(this,n,t,i)},s.Ph=function(n,t,i){var r;switch(t){case 3:return this.Cb&&(i=(r=this.Db>>16,r>=0?xte(this,i):this.Cb.Qh(this,-1-r,null,i))),oQ(this,u(n,26),i);case 4:return!this.b&&(this.b=new hn(Yn,this,4,7)),_u(this.b,n,i);case 5:return!this.c&&(this.c=new hn(Yn,this,5,8)),_u(this.c,n,i);case 6:return!this.a&&(this.a=new ue(bi,this,6,6)),_u(this.a,n,i)}return NR(this,n,t,i)},s.Rh=function(n,t,i){switch(t){case 3:return oQ(this,null,i);case 4:return!this.b&&(this.b=new hn(Yn,this,4,7)),Xr(this.b,n,i);case 5:return!this.c&&(this.c=new hn(Yn,this,5,8)),Xr(this.c,n,i);case 6:return!this.a&&(this.a=new ue(bi,this,6,6)),Xr(this.a,n,i)}return gB(this,n,t,i)},s.Th=function(n){switch(n){case 3:return!!Tw(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new hn(Yn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new hn(Yn,this,5,8)),this.c.i<=1));case 8:return $9(this);case 9:return vb(this);case 10:return!this.b&&(this.b=new hn(Yn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new hn(Yn,this,5,8)),this.c.i!=0)}return Ree(this,n)},s.$h=function(n,t){switch(n){case 3:sS(this,u(t,26));return;case 4:!this.b&&(this.b=new hn(Yn,this,4,7)),nt(this.b),!this.b&&(this.b=new hn(Yn,this,4,7)),Ii(this.b,u(t,18));return;case 5:!this.c&&(this.c=new hn(Yn,this,5,8)),nt(this.c),!this.c&&(this.c=new hn(Yn,this,5,8)),Ii(this.c,u(t,18));return;case 6:!this.a&&(this.a=new ue(bi,this,6,6)),nt(this.a),!this.a&&(this.a=new ue(bi,this,6,6)),Ii(this.a,u(t,18));return}$te(this,n,t)},s.fi=function(){return su(),wwe},s.hi=function(n){switch(n){case 3:sS(this,null);return;case 4:!this.b&&(this.b=new hn(Yn,this,4,7)),nt(this.b);return;case 5:!this.c&&(this.c=new hn(Yn,this,5,8)),nt(this.c);return;case 6:!this.a&&(this.a=new ue(bi,this,6,6)),nt(this.a);return}vne(this,n)},s.Ib=function(){return $Ue(this)},w(d0,"ElkEdgeImpl",271),b(443,i1,{109:1,343:1,170:1,443:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},VA),s.xh=function(n){return Ete(this,n)},s.Ih=function(n,t,i){switch(n){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new Wi(As,this,5)),this.a;case 6:return LOe(this);case 7:return t?fR(this):this.i;case 8:return t?sR(this):this.f;case 9:return!this.g&&(this.g=new hn(bi,this,9,10)),this.g;case 10:return!this.e&&(this.e=new hn(bi,this,10,9)),this.e;case 11:return this.d}return mte(this,n,t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?Ete(this,i):this.Cb.Qh(this,-1-c,null,i))),sQ(this,u(n,85),i);case 9:return!this.g&&(this.g=new hn(bi,this,9,10)),_u(this.g,n,i);case 10:return!this.e&&(this.e=new hn(bi,this,10,9)),_u(this.e,n,i)}return o=u(un((r=u(Cn(this,16),29),r||(su(),qO)),t),69),o.uk().xk(this,Uu(this),t-Un((su(),qO)),n,i)},s.Rh=function(n,t,i){switch(t){case 5:return!this.a&&(this.a=new Wi(As,this,5)),Xr(this.a,n,i);case 6:return sQ(this,null,i);case 9:return!this.g&&(this.g=new hn(bi,this,9,10)),Xr(this.g,n,i);case 10:return!this.e&&(this.e=new hn(bi,this,10,9)),Xr(this.e,n,i)}return uie(this,n,t,i)},s.Th=function(n){switch(n){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!LOe(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return fZ(this,n)},s.$h=function(n,t){switch(n){case 1:N2(this,J(H(t)));return;case 2:D2(this,J(H(t)));return;case 3:P2(this,J(H(t)));return;case 4:O2(this,J(H(t)));return;case 5:!this.a&&(this.a=new Wi(As,this,5)),nt(this.a),!this.a&&(this.a=new Wi(As,this,5)),Ii(this.a,u(t,18));return;case 6:Dqe(this,u(t,85));return;case 7:Yx(this,u(t,84));return;case 8:Qx(this,u(t,84));return;case 9:!this.g&&(this.g=new hn(bi,this,9,10)),nt(this.g),!this.g&&(this.g=new hn(bi,this,9,10)),Ii(this.g,u(t,18));return;case 10:!this.e&&(this.e=new hn(bi,this,10,9)),nt(this.e),!this.e&&(this.e=new hn(bi,this,10,9)),Ii(this.e,u(t,18));return;case 11:Tee(this,dt(t));return}tne(this,n,t)},s.fi=function(){return su(),qO},s.hi=function(n){switch(n){case 1:N2(this,0);return;case 2:D2(this,0);return;case 3:P2(this,0);return;case 4:O2(this,0);return;case 5:!this.a&&(this.a=new Wi(As,this,5)),nt(this.a);return;case 6:Dqe(this,null);return;case 7:Yx(this,null);return;case 8:Qx(this,null);return;case 9:!this.g&&(this.g=new hn(bi,this,9,10)),nt(this.g);return;case 10:!this.e&&(this.e=new hn(bi,this,10,9)),nt(this.e);return;case 11:Tee(this,null);return}zee(this,n)},s.Ib=function(){return UHe(this)},s.b=0,s.c=0,s.d=null,s.j=0,s.k=0,w(d0,"ElkEdgeSectionImpl",443),b(161,118,{109:1,94:1,93:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1}),s.Ih=function(n,t,i){var r;return n==0?(!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab):Os(this,n-Un(this.fi()),un((r=u(Cn(this,16),29),r||this.fi()),n),t,i)},s.Ph=function(n,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i)):(c=u(un((r=u(Cn(this,16),29),r||this.fi()),t),69),c.uk().xk(this,Uu(this),t-Un(this.fi()),n,i))},s.Rh=function(n,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new ue(St,this,0,3)),Xr(this.Ab,n,i)):(c=u(un((r=u(Cn(this,16),29),r||this.fi()),t),69),c.uk().yk(this,Uu(this),t-Un(this.fi()),n,i))},s.Th=function(n){var t;return n==0?!!this.Ab&&this.Ab.i!=0:Ps(this,n-Un(this.fi()),un((t=u(Cn(this,16),29),t||this.fi()),n))},s.Wh=function(n){return fce(this,n)},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return}Bs(this,n-Un(this.fi()),un((i=u(Cn(this,16),29),i||this.fi()),n),t)},s.ai=function(n){Bm(this,128,n)},s.fi=function(){return nn(),Ufn},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return}Fs(this,n-Un(this.fi()),un((t=u(Cn(this,16),29),t||this.fi()),n))},s.mi=function(){this.Bb|=1},s.ni=function(n){return H9(this,n)},s.Bb=0,w(kn,"EModelElementImpl",161),b(710,161,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1},sK),s.oi=function(n,t){return sXe(this,n,t)},s.pi=function(n){var t,i,r,c,o;if(this.a!=hs(n)||(n.Bb&256)!=0)throw x(new An(qG+n.zb+Nb));for(r=Cc(n);bu(r.a).i!=0;){if(i=u(xj(r,0,(t=u(B(bu(r.a),0),87),o=t.c,F(o,88)?u(o,29):(nn(),gf))),29),pb(i))return c=hs(i).ti().pi(i),u(c,52)._h(n),c;r=Cc(i)}return(n.D!=null?n.D:n.B)=="java.util.Map$Entry"?new dIe(n):new KQ(n)},s.qi=function(n,t){return Ab(this,n,t)},s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.a}return Os(this,n-Un((nn(),Cd)),un((r=u(Cn(this,16),29),r||Cd),n),t,i)},s.Ph=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 1:return this.a&&(i=u(this.a,52).Qh(this,4,dl,i)),pne(this,u(n,241),i)}return c=u(un((r=u(Cn(this,16),29),r||(nn(),Cd)),t),69),c.uk().xk(this,Uu(this),t-Un((nn(),Cd)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Xr(this.Ab,n,i);case 1:return pne(this,null,i)}return c=u(un((r=u(Cn(this,16),29),r||(nn(),Cd)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),Cd)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return Ps(this,n-Un((nn(),Cd)),un((t=u(Cn(this,16),29),t||Cd),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:jGe(this,u(t,241));return}Bs(this,n-Un((nn(),Cd)),un((i=u(Cn(this,16),29),i||Cd),n),t)},s.fi=function(){return nn(),Cd},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:jGe(this,null);return}Fs(this,n-Un((nn(),Cd)),un((t=u(Cn(this,16),29),t||Cd),n))};var _8,vwe,Sfn;w(kn,"EFactoryImpl",710),b(1019,710,{109:1,2078:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1},D5e),s.oi=function(n,t){switch(n.fk()){case 12:return u(t,147).Og();case 13:return Oc(t);default:throw x(new An(K4+n.ve()+Nb))}},s.pi=function(n){var t,i,r,c,o,f,l,h;switch(n.G==-1&&(n.G=(t=hs(n),t?Qa(t.si(),n):-1)),n.G){case 4:return o=new iK,o;case 6:return f=new n6,f;case 7:return l=new eW,l;case 8:return r=new yD,r;case 9:return i=new WA,i;case 10:return c=new VA,c;case 11:return h=new L5e,h;default:throw x(new An(qG+n.zb+Nb))}},s.qi=function(n,t){switch(n.fk()){case 13:case 12:return null;default:throw x(new An(K4+n.ve()+Nb))}},w(d0,"ElkGraphFactoryImpl",1019),b(439,161,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1}),s.Dh=function(){var n,t;return t=(n=u(Cn(this,16),29),WY(rh(n||this.fi()))),t==null?(b6(),b6(),wX):new NTe(this,t)},s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.ve()}return Os(this,n-Un(this.fi()),un((r=u(Cn(this,16),29),r||this.fi()),n),t,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return Ps(this,n-Un(this.fi()),un((t=u(Cn(this,16),29),t||this.fi()),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:this.ri(dt(t));return}Bs(this,n-Un(this.fi()),un((i=u(Cn(this,16),29),i||this.fi()),n),t)},s.fi=function(){return nn(),Xfn},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:this.ri(null);return}Fs(this,n-Un(this.fi()),un((t=u(Cn(this,16),29),t||this.fi()),n))},s.ve=function(){return this.zb},s.ri=function(n){Ru(this,n)},s.Ib=function(){return p9(this)},s.zb=null,w(kn,"ENamedElementImpl",439),b(184,439,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1},sOe),s.xh=function(n){return NJe(this,n)},s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Aw(this,bl,this)),this.rb;case 6:return!this.vb&&(this.vb=new am(dl,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?u(this.Cb,241):null:GOe(this)}return Os(this,n-Un((nn(),m1)),un((r=u(Cn(this,16),29),r||m1),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 4:return this.sb&&(i=u(this.sb,52).Qh(this,1,R8,i)),kne(this,u(n,469),i);case 5:return!this.rb&&(this.rb=new Aw(this,bl,this)),_u(this.rb,n,i);case 6:return!this.vb&&(this.vb=new am(dl,this,6,7)),_u(this.vb,n,i);case 7:return this.Cb&&(i=(c=this.Db>>16,c>=0?NJe(this,i):this.Cb.Qh(this,-1-c,null,i))),gs(this,n,7,i)}return o=u(un((r=u(Cn(this,16),29),r||(nn(),m1)),t),69),o.uk().xk(this,Uu(this),t-Un((nn(),m1)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Xr(this.Ab,n,i);case 4:return kne(this,null,i);case 5:return!this.rb&&(this.rb=new Aw(this,bl,this)),Xr(this.rb,n,i);case 6:return!this.vb&&(this.vb=new am(dl,this,6,7)),Xr(this.vb,n,i);case 7:return gs(this,null,7,i)}return c=u(un((r=u(Cn(this,16),29),r||(nn(),m1)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),m1)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!GOe(this)}return Ps(this,n-Un((nn(),m1)),un((t=u(Cn(this,16),29),t||m1),n))},s.Wh=function(n){var t;return t=ESn(this,n),t||fce(this,n)},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:Ru(this,dt(t));return;case 2:rT(this,dt(t));return;case 3:iT(this,dt(t));return;case 4:BR(this,u(t,469));return;case 5:!this.rb&&(this.rb=new Aw(this,bl,this)),nt(this.rb),!this.rb&&(this.rb=new Aw(this,bl,this)),Ii(this.rb,u(t,18));return;case 6:!this.vb&&(this.vb=new am(dl,this,6,7)),nt(this.vb),!this.vb&&(this.vb=new am(dl,this,6,7)),Ii(this.vb,u(t,18));return}Bs(this,n-Un((nn(),m1)),un((i=u(Cn(this,16),29),i||m1),n),t)},s.bi=function(n){var t,i;if(n&&this.rb)for(i=new Rn(this.rb);i.e!=i.i.gc();)t=Gn(i),F(t,360)&&(u(t,360).w=null);Bm(this,64,n)},s.fi=function(){return nn(),m1},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:Ru(this,null);return;case 2:rT(this,null);return;case 3:iT(this,null);return;case 4:BR(this,null);return;case 5:!this.rb&&(this.rb=new Aw(this,bl,this)),nt(this.rb);return;case 6:!this.vb&&(this.vb=new am(dl,this,6,7)),nt(this.vb);return}Fs(this,n-Un((nn(),m1)),un((t=u(Cn(this,16),29),t||m1),n))},s.mi=function(){jR(this)},s.si=function(){return!this.rb&&(this.rb=new Aw(this,bl,this)),this.rb},s.ti=function(){return this.sb},s.ui=function(){return this.ub},s.vi=function(){return this.xb},s.wi=function(){return this.yb},s.xi=function(n){this.ub=n},s.Ib=function(){var n;return(this.Db&64)!=0?p9(this):(n=new Ys(p9(this)),n.a+=" (nsURI: ",ac(n,this.yb),n.a+=", nsPrefix: ",ac(n,this.xb),n.a+=")",n.a)},s.xb=null,s.yb=null,w(kn,"EPackageImpl",184),b(556,184,{109:1,2080:1,556:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1},eqe),s.q=!1,s.r=!1;var Ifn=!1;w(d0,"ElkGraphPackageImpl",556),b(362,728,{109:1,343:1,174:1,157:1,276:1,362:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},iK),s.xh=function(n){return Ate(this,n)},s.Ih=function(n,t,i){switch(n){case 7:return eZ(this);case 8:return this.a}return $ne(this,n,t,i)},s.Ph=function(n,t,i){var r;switch(t){case 7:return this.Cb&&(i=(r=this.Db>>16,r>=0?Ate(this,i):this.Cb.Qh(this,-1-r,null,i))),uY(this,u(n,174),i)}return NR(this,n,t,i)},s.Rh=function(n,t,i){return t==7?uY(this,null,i):gB(this,n,t,i)},s.Th=function(n){switch(n){case 7:return!!eZ(this);case 8:return!Ke("",this.a)}return Gne(this,n)},s.$h=function(n,t){switch(n){case 7:ore(this,u(t,174));return;case 8:Mee(this,dt(t));return}Fte(this,n,t)},s.fi=function(){return su(),gwe},s.hi=function(n){switch(n){case 7:ore(this,null);return;case 8:Mee(this,"");return}Une(this,n)},s.Ib=function(){return JGe(this)},s.a="",w(d0,"ElkLabelImpl",362),b(206,729,{109:1,343:1,84:1,174:1,26:1,276:1,206:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},n6),s.xh=function(n){return Tte(this,n)},s.Ih=function(n,t,i){switch(n){case 9:return!this.c&&(this.c=new ue(Xo,this,9,9)),this.c;case 10:return!this.a&&(this.a=new ue(mt,this,10,11)),this.a;case 11:return pi(this);case 12:return!this.b&&(this.b=new ue(Xi,this,12,3)),this.b;case 13:return gn(),!this.a&&(this.a=new ue(mt,this,10,11)),this.a.i>0}return ate(this,n,t,i)},s.Ph=function(n,t,i){var r;switch(t){case 9:return!this.c&&(this.c=new ue(Xo,this,9,9)),_u(this.c,n,i);case 10:return!this.a&&(this.a=new ue(mt,this,10,11)),_u(this.a,n,i);case 11:return this.Cb&&(i=(r=this.Db>>16,r>=0?Tte(this,i):this.Cb.Qh(this,-1-r,null,i))),mQ(this,u(n,26),i);case 12:return!this.b&&(this.b=new ue(Xi,this,12,3)),_u(this.b,n,i)}return Ite(this,n,t,i)},s.Rh=function(n,t,i){switch(t){case 9:return!this.c&&(this.c=new ue(Xo,this,9,9)),Xr(this.c,n,i);case 10:return!this.a&&(this.a=new ue(mt,this,10,11)),Xr(this.a,n,i);case 11:return mQ(this,null,i);case 12:return!this.b&&(this.b=new ue(Xi,this,12,3)),Xr(this.b,n,i)}return Pte(this,n,t,i)},s.Th=function(n){switch(n){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!pi(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new ue(mt,this,10,11)),this.a.i>0}return nne(this,n)},s.$h=function(n,t){switch(n){case 9:!this.c&&(this.c=new ue(Xo,this,9,9)),nt(this.c),!this.c&&(this.c=new ue(Xo,this,9,9)),Ii(this.c,u(t,18));return;case 10:!this.a&&(this.a=new ue(mt,this,10,11)),nt(this.a),!this.a&&(this.a=new ue(mt,this,10,11)),Ii(this.a,u(t,18));return;case 11:fS(this,u(t,26));return;case 12:!this.b&&(this.b=new ue(Xi,this,12,3)),nt(this.b),!this.b&&(this.b=new ue(Xi,this,12,3)),Ii(this.b,u(t,18));return}qie(this,n,t)},s.fi=function(){return su(),pwe},s.hi=function(n){switch(n){case 9:!this.c&&(this.c=new ue(Xo,this,9,9)),nt(this.c);return;case 10:!this.a&&(this.a=new ue(mt,this,10,11)),nt(this.a);return;case 11:fS(this,null);return;case 12:!this.b&&(this.b=new ue(Xi,this,12,3)),nt(this.b);return}ote(this,n)},s.Ib=function(){return Ere(this)},w(d0,"ElkNodeImpl",206),b(193,729,{109:1,343:1,84:1,174:1,125:1,276:1,193:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},eW),s.xh=function(n){return Mte(this,n)},s.Ih=function(n,t,i){return n==9?ml(this):ate(this,n,t,i)},s.Ph=function(n,t,i){var r;switch(t){case 9:return this.Cb&&(i=(r=this.Db>>16,r>=0?Mte(this,i):this.Cb.Qh(this,-1-r,null,i))),fQ(this,u(n,26),i)}return Ite(this,n,t,i)},s.Rh=function(n,t,i){return t==9?fQ(this,null,i):Pte(this,n,t,i)},s.Th=function(n){return n==9?!!ml(this):nne(this,n)},s.$h=function(n,t){switch(n){case 9:tre(this,u(t,26));return}qie(this,n,t)},s.fi=function(){return su(),mwe},s.hi=function(n){switch(n){case 9:tre(this,null);return}ote(this,n)},s.Ib=function(){return Oze(this)},w(d0,"ElkPortImpl",193);var Pfn=yi(Kr,"BasicEMap/Entry");b(1092,118,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1,117:1,118:1},L5e),s.Fb=function(n){return this===n},s.jd=function(){return this.b},s.Hb=function(){return W0(this)},s.Ai=function(n){Cee(this,u(n,147))},s.Ih=function(n,t,i){switch(n){case 0:return this.b;case 1:return this.c}return $T(this,n,t,i)},s.Th=function(n){switch(n){case 0:return!!this.b;case 1:return this.c!=null}return rR(this,n)},s.$h=function(n,t){switch(n){case 0:Cee(this,u(t,147));return;case 1:jee(this,t);return}qR(this,n,t)},s.fi=function(){return su(),qh},s.hi=function(n){switch(n){case 0:Cee(this,null);return;case 1:jee(this,null);return}JR(this,n)},s.yi=function(){var n;return this.a==-1&&(n=this.b,this.a=n?si(n):0),this.a},s.kd=function(){return this.c},s.zi=function(n){this.a=n},s.ld=function(n){var t;return t=this.c,jee(this,n),t},s.Ib=function(){var n;return(this.Db&64)!=0?Pf(this):(n=new A1,At(At(At(n,this.b?this.b.Og():co),MJ),D6(this.c)),n.a)},s.a=-1,s.c=null;var b1=w(d0,"ElkPropertyToValueMapEntryImpl",1092);b(981,1,{},$5e),w(Sr,"JsonAdapter",981),b(215,63,ba,Ul),w(Sr,"JsonImportException",215),b(851,1,{},WHe),w(Sr,"JsonImporter",851),b(885,1,{},xCe),s.Bi=function(n){HJe(this.a,this.b,u(n,139))},w(Sr,"JsonImporter/lambda$0$Type",885),b(886,1,{},TCe),s.Bi=function(n){CHe(this.a,this.b,u(n,139))},w(Sr,"JsonImporter/lambda$1$Type",886),b(894,1,{},rje),s.Bi=function(n){RPe(this.a,u(n,149))},w(Sr,"JsonImporter/lambda$10$Type",894),b(896,1,{},SCe),s.Bi=function(n){dHe(this.a,this.b,u(n,139))},w(Sr,"JsonImporter/lambda$11$Type",896),b(897,1,{},ICe),s.Bi=function(n){bHe(this.a,this.b,u(n,139))},w(Sr,"JsonImporter/lambda$12$Type",897),b(903,1,{},WPe),s.Bi=function(n){FGe(this.a,this.b,this.c,this.d,u(n,139))},w(Sr,"JsonImporter/lambda$13$Type",903),b(902,1,{},VPe),s.Bi=function(n){Zze(this.a,this.b,this.c,this.d,u(n,149))},w(Sr,"JsonImporter/lambda$14$Type",902),b(898,1,{},PCe),s.Bi=function(n){hSe(this.a,this.b,dt(n))},w(Sr,"JsonImporter/lambda$15$Type",898),b(899,1,{},OCe),s.Bi=function(n){aSe(this.a,this.b,dt(n))},w(Sr,"JsonImporter/lambda$16$Type",899),b(900,1,{},NCe),s.Bi=function(n){AJe(this.b,this.a,u(n,139))},w(Sr,"JsonImporter/lambda$17$Type",900),b(901,1,{},DCe),s.Bi=function(n){MJe(this.b,this.a,u(n,139))},w(Sr,"JsonImporter/lambda$18$Type",901),b(906,1,{},cje),s.Bi=function(n){TGe(this.a,u(n,149))},w(Sr,"JsonImporter/lambda$19$Type",906),b(887,1,{},uje),s.Bi=function(n){$Je(this.a,u(n,139))},w(Sr,"JsonImporter/lambda$2$Type",887),b(904,1,{},oje),s.Bi=function(n){N2(this.a,J(H(n)))},w(Sr,"JsonImporter/lambda$20$Type",904),b(905,1,{},sje),s.Bi=function(n){D2(this.a,J(H(n)))},w(Sr,"JsonImporter/lambda$21$Type",905),b(909,1,{},fje),s.Bi=function(n){xGe(this.a,u(n,149))},w(Sr,"JsonImporter/lambda$22$Type",909),b(907,1,{},lje),s.Bi=function(n){P2(this.a,J(H(n)))},w(Sr,"JsonImporter/lambda$23$Type",907),b(908,1,{},hje),s.Bi=function(n){O2(this.a,J(H(n)))},w(Sr,"JsonImporter/lambda$24$Type",908),b(911,1,{},aje),s.Bi=function(n){eGe(this.a,u(n,139))},w(Sr,"JsonImporter/lambda$25$Type",911),b(910,1,{},dje),s.Bi=function(n){_Pe(this.a,u(n,149))},w(Sr,"JsonImporter/lambda$26$Type",910),b(912,1,Fn,LCe),s.Ad=function(n){j6n(this.b,this.a,dt(n))},w(Sr,"JsonImporter/lambda$27$Type",912),b(913,1,Fn,$Ce),s.Ad=function(n){E6n(this.b,this.a,dt(n))},w(Sr,"JsonImporter/lambda$28$Type",913),b(914,1,{},FCe),s.Bi=function(n){sqe(this.a,this.b,u(n,139))},w(Sr,"JsonImporter/lambda$29$Type",914),b(890,1,{},bje),s.Bi=function(n){YRe(this.a,u(n,149))},w(Sr,"JsonImporter/lambda$3$Type",890),b(915,1,{},BCe),s.Bi=function(n){Iqe(this.a,this.b,u(n,139))},w(Sr,"JsonImporter/lambda$30$Type",915),b(916,1,{},wje),s.Bi=function(n){m$e(this.a,H(n))},w(Sr,"JsonImporter/lambda$31$Type",916),b(917,1,{},gje),s.Bi=function(n){k$e(this.a,H(n))},w(Sr,"JsonImporter/lambda$32$Type",917),b(918,1,{},pje),s.Bi=function(n){v$e(this.a,H(n))},w(Sr,"JsonImporter/lambda$33$Type",918),b(919,1,{},mje),s.Bi=function(n){y$e(this.a,H(n))},w(Sr,"JsonImporter/lambda$34$Type",919),b(920,1,{},vje),s.Bi=function(n){yMn(this.a,u(n,57))},w(Sr,"JsonImporter/lambda$35$Type",920),b(921,1,{},yje),s.Bi=function(n){kMn(this.a,u(n,57))},w(Sr,"JsonImporter/lambda$36$Type",921),b(925,1,{},KPe),w(Sr,"JsonImporter/lambda$37$Type",925),b(922,1,Fn,BSe),s.Ad=function(n){V9n(this.a,this.c,this.b,u(n,372))},w(Sr,"JsonImporter/lambda$38$Type",922),b(923,1,Fn,RCe),s.Ad=function(n){L0n(this.a,this.b,u(n,170))},w(Sr,"JsonImporter/lambda$39$Type",923),b(888,1,{},kje),s.Bi=function(n){N2(this.a,J(H(n)))},w(Sr,"JsonImporter/lambda$4$Type",888),b(924,1,Fn,_Ce),s.Ad=function(n){$0n(this.a,this.b,u(n,170))},w(Sr,"JsonImporter/lambda$40$Type",924),b(926,1,Fn,RSe),s.Ad=function(n){Q9n(this.a,this.b,this.c,u(n,8))},w(Sr,"JsonImporter/lambda$41$Type",926),b(889,1,{},jje),s.Bi=function(n){D2(this.a,J(H(n)))},w(Sr,"JsonImporter/lambda$5$Type",889),b(893,1,{},Eje),s.Bi=function(n){ZRe(this.a,u(n,149))},w(Sr,"JsonImporter/lambda$6$Type",893),b(891,1,{},Aje),s.Bi=function(n){P2(this.a,J(H(n)))},w(Sr,"JsonImporter/lambda$7$Type",891),b(892,1,{},Mje),s.Bi=function(n){O2(this.a,J(H(n)))},w(Sr,"JsonImporter/lambda$8$Type",892),b(895,1,{},Cje),s.Bi=function(n){nGe(this.a,u(n,139))},w(Sr,"JsonImporter/lambda$9$Type",895),b(945,1,Fn,xje),s.Ad=function(n){ym(this.a,new Cw(dt(n)))},w(Sr,"JsonMetaDataConverter/lambda$0$Type",945),b(946,1,Fn,Tje),s.Ad=function(n){Imn(this.a,u(n,244))},w(Sr,"JsonMetaDataConverter/lambda$1$Type",946),b(947,1,Fn,Sje),s.Ad=function(n){Evn(this.a,u(n,144))},w(Sr,"JsonMetaDataConverter/lambda$2$Type",947),b(948,1,Fn,Ije),s.Ad=function(n){Pmn(this.a,u(n,160))},w(Sr,"JsonMetaDataConverter/lambda$3$Type",948),b(244,24,{3:1,35:1,24:1,244:1},cm);var zO,UO,sX,XO,KO,WO,fX,lX,VO=Zn(Hj,"GraphFeature",244,ut,n9n,fpn),Ofn;b(11,1,{35:1,147:1},Vt,di,qe,xr),s.Dd=function(n){return Fbn(this,u(n,147))},s.Fb=function(n){return yOe(this,n)},s.Rg=function(){return Ae(this)},s.Og=function(){return this.b},s.Hb=function(){return Ua(this.b)},s.Ib=function(){return this.b},w(Hj,"Property",11),b(657,1,Ct,LD),s.Le=function(n,t){return wkn(this,u(n,105),u(t,105))},s.Fb=function(n){return this===n},s.Me=function(){return new yt(this)},w(Hj,"PropertyHolderComparator",657),b(698,1,kr,RK),s.Nb=function(n){Ir(this,n)},s.Pb=function(){return M6n(this)},s.Qb=function(){MAe()},s.Ob=function(){return!!this.a},w(vI,"ElkGraphUtil/AncestorIterator",698);var ywe=yi(Kr,"EList");b(71,56,{20:1,31:1,56:1,18:1,16:1,71:1,61:1}),s._c=function(n,t){y9(this,n,t)},s.Ec=function(n){return it(this,n)},s.ad=function(n,t){return Xee(this,n,t)},s.Fc=function(n){return Ii(this,n)},s.Gi=function(){return new hm(this)},s.Hi=function(){return new qk(this)},s.Ii=function(n){return D7(this,n)},s.Ji=function(){return!0},s.Ki=function(n,t){},s.Li=function(){},s.Mi=function(n,t){FF(this,n,t)},s.Ni=function(n,t,i){},s.Oi=function(n,t){},s.Pi=function(n,t,i){},s.Fb=function(n){return wze(this,n)},s.Hb=function(){return Hee(this)},s.Qi=function(){return!1},s.Jc=function(){return new Rn(this)},s.cd=function(){return new lm(this)},s.dd=function(n){var t;if(t=this.gc(),n<0||n>t)throw x(new yw(n,t));return new q$(this,n)},s.Si=function(n,t){this.Ri(n,this.bd(t))},s.Kc=function(n){return Bx(this,n)},s.Ui=function(n,t){return t},s.fd=function(n,t){return _2(this,n,t)},s.Ib=function(){return _ne(this)},s.Wi=function(){return!0},s.Xi=function(n,t){return Uv(this,t)},w(Kr,"AbstractEList",71),b(67,71,ah,QA,ob,$ee),s.Ci=function(n,t){return DR(this,n,t)},s.Di=function(n){return cJe(this,n)},s.Ei=function(n,t){X7(this,n,t)},s.Fi=function(n){m7(this,n)},s.Yi=function(n){return VZ(this,n)},s.$b=function(){t9(this)},s.Gc=function(n){return s4(this,n)},s.Xb=function(n){return B(this,n)},s.Zi=function(n){var t,i,r;++this.j,i=this.g==null?0:this.g.length,n>i&&(r=this.g,t=i+(i/2|0)+4,t<n&&(t=n),this.g=this.$i(t),r!=null&&pu(r,0,this.g,0,this.i))},s.bd=function(n){return TJe(this,n)},s.dc=function(){return this.i==0},s.Ri=function(n,t){return XR(this,n,t)},s.$i=function(n){return W(ir,ln,1,n,5,1)},s.Ti=function(n){return this.g[n]},s.ed=function(n){return Jm(this,n)},s.Vi=function(n,t){return XF(this,n,t)},s.gc=function(){return this.i},s.Nc=function(){return vZ(this)},s.Oc=function(n){return Xne(this,n)},s.i=0;var kwe=w(Kr,"BasicEList",67),jwe=yi(Kr,"TreeIterator");b(697,67,nH),s.Nb=function(n){Ir(this,n)},s.Ob=function(){return this.g==null&&!this.c?ZY(this):this.g==null||this.i!=0&&u(this.g[this.i-1],50).Ob()},s.Pb=function(){return cS(this)},s.Qb=function(){if(!this.e)throw x(new gc("There is no valid object to remove."));this.e.Qb()},s.c=!1,w(Kr,"AbstractTreeIterator",697),b(605,697,nH,VL),s._i=function(n){var t;return t=u(n,57).Dh().Jc(),F(t,287)&&u(t,287).ul(new F5e),t},w(vI,"ElkGraphUtil/PropertiesSkippingTreeIterator",605),b(949,1,{},F5e),w(vI,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",949);var yA,hX,kA=w(vI,"ElkReflect",null);b(883,1,dg,B5e),s.Qg=function(n){return dx(),s4n(u(n,182))},w(vI,"ElkReflect/lambda$0$Type",883);var O0;yi(Kr,"ResourceLocator"),b(1046,1,{}),w(Kr,"DelegatingResourceLocator",1046),b(1047,1046,{}),w("org.eclipse.emf.common","EMFPlugin",1047);var aX=yi($Qe,"Adapter"),BFn=yi($Qe,"Notification");b(1144,1,Lse),s.aj=function(){return this.d},s.bj=function(n){},s.cj=function(n){this.d=n},s.dj=function(n){this.d==n&&(this.d=null)},s.d=null,w(o3,"AdapterImpl",1144),b(2058,71,FQe),s.Ci=function(n,t){return qne(this,n,t)},s.Di=function(n){var t,i,r;if(++this.j,n.dc())return!1;for(t=this.Cj(),r=n.Jc();r.Ob();)i=r.Pb(),this.pj(this.Xi(t,i)),++t;return!0},s.Ei=function(n,t){UTe(this,n,t)},s.Fi=function(n){mPe(this,n)},s.nj=function(){return this.qj()},s.$b=function(){Xk(this,this.Cj(),this.Dj())},s.Gc=function(n){return this.sj(n)},s.Hc=function(n){return this.tj(n)},s.oj=function(n,t){this.zj().Sm()},s.pj=function(n){this.zj().Sm()},s.qj=function(){return this.zj()},s.rj=function(){this.zj().Sm()},s.sj=function(n){return this.zj().Sm()},s.tj=function(n){return this.zj().Sm()},s.uj=function(n){return this.zj().Sm()},s.vj=function(n){return this.zj().Sm()},s.wj=function(){return this.zj().Sm()},s.xj=function(n){return this.zj().Sm()},s.yj=function(){return this.zj().Sm()},s.Aj=function(n){return this.zj().Sm()},s.Bj=function(n,t){return this.zj().Sm()},s.Cj=function(){return this.zj().Sm()},s.Dj=function(){return this.zj().Sm()},s.Ej=function(n){return this.zj().Sm()},s.Fj=function(){return this.zj().Sm()},s.Fb=function(n){return this.uj(n)},s.Xb=function(n){return this.Ui(n,this.vj(n))},s.Hb=function(){return this.wj()},s.bd=function(n){return this.xj(n)},s.dc=function(){return this.yj()},s.Ri=function(n,t){return iie(this,n,t)},s.Ti=function(n){return this.vj(n)},s.ed=function(n){return PC(this,n)},s.Kc=function(n){var t;return t=this.bd(n),t>=0?(this.ed(t),!0):!1},s.Vi=function(n,t){return this.Bj(n,this.Xi(n,t))},s.gc=function(){return this.Cj()},s.Nc=function(){return this.Dj()},s.Oc=function(n){return this.Ej(n)},s.Ib=function(){return this.Fj()},w(Kr,"DelegatingEList",2058),b(2059,2058,FQe),s.Ci=function(n,t){return Fre(this,n,t)},s.Di=function(n){return this.Ci(this.Cj(),n)},s.Ei=function(n,t){nqe(this,n,t)},s.Fi=function(n){qHe(this,n)},s.Ji=function(){return!this.Kj()},s.$b=function(){W9(this)},s.Gj=function(n,t,i,r,c){return new mOe(this,n,t,i,r,c)},s.Hj=function(n){Gt(this.hj(),n)},s.Ij=function(){return null},s.Jj=function(){return-1},s.hj=function(){return null},s.Kj=function(){return!1},s.Lj=function(n,t){return t},s.Mj=function(n,t){return t},s.Nj=function(){return!1},s.Oj=function(){return!this.yj()},s.Ri=function(n,t){var i,r;return this.Nj()?(r=this.Oj(),i=iie(this,n,t),this.Hj(this.Gj(7,fe(t),i,n,r)),i):iie(this,n,t)},s.ed=function(n){var t,i,r,c;return this.Nj()?(i=null,r=this.Oj(),t=this.Gj(4,c=PC(this,n),null,n,r),this.Kj()&&c?(i=this.Mj(c,i),i?(i.lj(t),i.mj()):this.Hj(t)):i?(i.lj(t),i.mj()):this.Hj(t),c):(c=PC(this,n),this.Kj()&&c&&(i=this.Mj(c,null),i&&i.mj()),c)},s.Vi=function(n,t){return hUe(this,n,t)},w(o3,"DelegatingNotifyingListImpl",2059),b(151,1,uE),s.lj=function(n){return Gte(this,n)},s.mj=function(){HF(this)},s.ej=function(){return this.d},s.Ij=function(){return null},s.Pj=function(){return null},s.fj=function(n){return-1},s.gj=function(){return Vqe(this)},s.hj=function(){return null},s.ij=function(){return are(this)},s.jj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},s.Qj=function(){return!1},s.kj=function(n){var t,i,r,c,o,f,l,h,a,d,g;switch(this.d){case 1:case 2:switch(c=n.ej(),c){case 1:case 2:if(o=n.hj(),K(o)===K(this.hj())&&this.fj(null)==n.fj(null))return this.g=n.gj(),n.ej()==1&&(this.d=1),!0}case 4:{switch(c=n.ej(),c){case 4:{if(o=n.hj(),K(o)===K(this.hj())&&this.fj(null)==n.fj(null))return a=nce(this),h=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,f=n.jj(),this.d=6,g=new ob(2),h<=f?(it(g,this.n),it(g,n.ij()),this.g=I(S(bt,1),Pt,30,15,[this.o=h,f+1])):(it(g,n.ij()),it(g,this.n),this.g=I(S(bt,1),Pt,30,15,[this.o=f,h])),this.n=g,a||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=n.ej(),c){case 4:{if(o=n.hj(),K(o)===K(this.hj())&&this.fj(null)==n.fj(null)){for(a=nce(this),f=n.jj(),d=u(this.g,54),r=W(bt,Pt,30,d.length+1,15,1),t=0;t<d.length&&(l=d[t],l<=f);)r[t++]=l,++f;for(i=u(this.n,16),i._c(t,n.ij()),r[t]=f;++t<r.length;)r[t]=d[t-1];return this.g=r,a||(this.o=-2-r[0]),!0}break}}break}}return!1},s.Ib=function(){var n,t,i,r;switch(r=new Ys(Nd(this.Pm)+"@"+(t=si(this)>>>0,t.toString(16))),r.a+=" (eventType: ",this.d){case 1:{r.a+="SET";break}case 2:{r.a+="UNSET";break}case 3:{r.a+="ADD";break}case 5:{r.a+="ADD_MANY";break}case 4:{r.a+="REMOVE";break}case 6:{r.a+="REMOVE_MANY";break}case 7:{r.a+="MOVE";break}case 8:{r.a+="REMOVING_ADAPTER";break}case 9:{r.a+="RESOLVE";break}default:{iL(r,this.d);break}}if(Bze(this)&&(r.a+=", touch: true"),r.a+=", position: ",iL(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",T6(r,this.hj()),r.a+=", feature: ",T6(r,this.Ij()),r.a+=", oldValue: ",T6(r,are(this)),r.a+=", newValue: ",this.d==6&&F(this.g,54)){for(i=u(this.g,54),r.a+="[",n=0;n<i.length;)r.a+=i[n],++n<i.length&&(r.a+=Ju);r.a+="]"}else T6(r,Vqe(this));return r.a+=", isTouch: ",Da(r,Bze(this)),r.a+=", wasSet: ",Da(r,nce(this)),r.a+=")",r.a},s.d=0,s.e=0,s.f=0,s.j=0,s.k=0,s.o=0,s.p=0,w(o3,"NotificationImpl",151),b(1158,151,uE,mOe),s.Ij=function(){return this.a.Ij()},s.fj=function(n){return this.a.Jj()},s.hj=function(){return this.a.hj()},w(o3,"DelegatingNotifyingListImpl/1",1158),b(252,67,ah,R5e,M1),s.Ec=function(n){return QRe(this,u(n,373))},s.lj=function(n){return QRe(this,n)},s.mj=function(){var n,t,i;for(n=0;n<this.i;++n)t=u(this.g[n],373),i=t.hj(),i!=null&&t.ej()!=-1&&u(i,94).uh(t)},s.$i=function(n){return W(BFn,ln,373,n,0,1)},w(o3,"NotificationChainImpl",252),b(1486,93,KVe),s.rh=function(){return this.e},s.th=function(){return(this.f&1)!=0},s.f=1,w(o3,"NotifierImpl",1486),b(2056,67,ah),s.Ci=function(n,t){return d_(this,n,t)},s.Di=function(n){return this.Ci(this.i,n)},s.Ei=function(n,t){Lie(this,n,t)},s.Fi=function(n){KR(this,n)},s.Ji=function(){return!this.Kj()},s.$b=function(){nt(this)},s.Gj=function(n,t,i,r,c){return new vOe(this,n,t,i,r,c)},s.Hj=function(n){Gt(this.hj(),n)},s.Ij=function(){return null},s.Jj=function(){return-1},s.hj=function(){return null},s.Kj=function(){return!1},s.Rj=function(){return!1},s.Lj=function(n,t){return t},s.Mj=function(n,t){return t},s.Nj=function(){return!1},s.Oj=function(){return this.i!=0},s.Ri=function(n,t){return k9(this,n,t)},s.ed=function(n){return Zw(this,n)},s.Vi=function(n,t){return SUe(this,n,t)},s.Sj=function(n,t){return t},s.Tj=function(n,t){return t},s.Uj=function(n,t,i){return i},w(o3,"NotifyingListImpl",2056),b(1157,151,uE,vOe),s.Ij=function(){return this.a.Ij()},s.fj=function(n){return this.a.Jj()},s.hj=function(){return this.a.hj()},w(o3,"NotifyingListImpl/1",1157),b(950,67,ah,KTe),s.Gc=function(n){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new kw(this),this.a=this.j),Qs(this.b,n)):s4(this,n)},s.Wi=function(){return!0},s.a=0,w(Kr,"AbstractEList/1",950),b(306,99,NS,yw),w(Kr,"AbstractEList/BasicIndexOutOfBoundsException",306),b(42,1,kr,Rn),s.Nb=function(n){Ir(this,n)},s.Vj=function(){if(this.i.j!=this.f)throw x(new xs)},s.Wj=function(){return Gn(this)},s.Ob=function(){return this.e!=this.i.gc()},s.Pb=function(){return this.Wj()},s.Qb=function(){P9(this)},s.e=0,s.f=0,s.g=-1,w(Kr,"AbstractEList/EIterator",42),b(286,42,Ih,lm,q$),s.Qb=function(){P9(this)},s.Rb=function(n){o_e(this,n)},s.Xj=function(){var n;try{return n=this.d.Xb(--this.e),this.Vj(),this.g=this.e,n}catch(t){throw t=Fi(t),F(t,99)?(this.Vj(),x(new Dc)):x(t)}},s.Yj=function(n){uJe(this,n)},s.Sb=function(){return this.e!=0},s.Tb=function(){return this.e},s.Ub=function(){return this.Xj()},s.Vb=function(){return this.e-1},s.Wb=function(n){this.Yj(n)},w(Kr,"AbstractEList/EListIterator",286),b(355,42,kr,hm),s.Wj=function(){return cR(this)},s.Qb=function(){throw x(new ht)},w(Kr,"AbstractEList/NonResolvingEIterator",355),b(391,286,Ih,qk,CQ),s.Rb=function(n){throw x(new ht)},s.Wj=function(){var n;try{return n=this.c.Ti(this.e),this.Vj(),this.g=this.e++,n}catch(t){throw t=Fi(t),F(t,99)?(this.Vj(),x(new Dc)):x(t)}},s.Xj=function(){var n;try{return n=this.c.Ti(--this.e),this.Vj(),this.g=this.e,n}catch(t){throw t=Fi(t),F(t,99)?(this.Vj(),x(new Dc)):x(t)}},s.Qb=function(){throw x(new ht)},s.Wb=function(n){throw x(new ht)},w(Kr,"AbstractEList/NonResolvingEListIterator",391),b(2045,71,BQe),s.Ci=function(n,t){var i,r,c,o,f,l,h,a,d,g,m;if(c=t.gc(),c!=0){for(a=u(Cn(this.a,4),129),d=a==null?0:a.length,m=d+c,r=SB(this,m),g=d-n,g>0&&pu(a,n,r,n+c,g),h=t.Jc(),f=0;f<c;++f)l=h.Pb(),i=n+f,YL(r,i,Uv(this,l));for(c4(this,r),o=0;o<c;++o)l=r[n],this.Ki(n,l),++n;return!0}else return++this.j,!1},s.Di=function(n){var t,i,r,c,o,f,l,h,a;if(r=n.gc(),r!=0){for(h=(i=u(Cn(this.a,4),129),i==null?0:i.length),a=h+r,t=SB(this,a),l=n.Jc(),o=h;o<a;++o)f=l.Pb(),YL(t,o,Uv(this,f));for(c4(this,t),c=h;c<a;++c)f=t[c],this.Ki(c,f);return!0}else return++this.j,!1},s.Ei=function(n,t){var i,r,c,o;r=u(Cn(this.a,4),129),c=r==null?0:r.length,i=SB(this,c+1),o=Uv(this,t),n!=c&&pu(r,n,i,n+1,c-n),Ni(i,n,o),c4(this,i),this.Ki(n,t)},s.Fi=function(n){var t,i,r;r=(i=u(Cn(this.a,4),129),i==null?0:i.length),t=SB(this,r+1),YL(t,r,Uv(this,n)),c4(this,t),this.Ki(r,n)},s.Gi=function(){return new HDe(this)},s.Hi=function(){return new YIe(this)},s.Ii=function(n){var t,i;if(i=(t=u(Cn(this.a,4),129),t==null?0:t.length),n<0||n>i)throw x(new yw(n,i));return new IPe(this,n)},s.$b=function(){var n,t;++this.j,n=u(Cn(this.a,4),129),t=n==null?0:n.length,c4(this,null),FF(this,t,n)},s.Gc=function(n){var t,i,r,c,o;if(t=u(Cn(this.a,4),129),t!=null){if(n!=null){for(r=t,c=0,o=r.length;c<o;++c)if(i=r[c],qt(n,i))return!0}else for(r=t,c=0,o=r.length;c<o;++c)if(i=r[c],K(i)===K(n))return!0}return!1},s.Xb=function(n){var t,i;if(t=u(Cn(this.a,4),129),i=t==null?0:t.length,n>=i)throw x(new yw(n,i));return t[n]},s.bd=function(n){var t,i,r;if(t=u(Cn(this.a,4),129),t!=null){if(n!=null){for(i=0,r=t.length;i<r;++i)if(qt(n,t[i]))return i}else for(i=0,r=t.length;i<r;++i)if(K(t[i])===K(n))return i}return-1},s.dc=function(){return u(Cn(this.a,4),129)==null},s.Jc=function(){return new GDe(this)},s.cd=function(){return new QIe(this)},s.dd=function(n){var t,i;if(i=(t=u(Cn(this.a,4),129),t==null?0:t.length),n<0||n>i)throw x(new yw(n,i));return new SPe(this,n)},s.Ri=function(n,t){var i,r,c;if(i=a_e(this),c=i==null?0:i.length,n>=c)throw x(new $u(ZG+n+b0+c));if(t>=c)throw x(new $u(eH+t+b0+c));return r=i[t],n!=t&&(n<t?pu(i,n,i,n+1,t-n):pu(i,t+1,i,t,n-t),Ni(i,n,r),c4(this,i)),r},s.Ti=function(n){return u(Cn(this.a,4),129)[n]},s.ed=function(n){return Exn(this,n)},s.Vi=function(n,t){var i,r;return i=a_e(this),r=i[n],YL(i,n,Uv(this,t)),c4(this,i),r},s.gc=function(){var n;return n=u(Cn(this.a,4),129),n==null?0:n.length},s.Nc=function(){var n,t,i;return n=u(Cn(this.a,4),129),i=n==null?0:n.length,t=W(aX,cH,415,i,0,1),i>0&&pu(n,0,t,0,i),t},s.Oc=function(n){var t,i,r;return t=u(Cn(this.a,4),129),r=t==null?0:t.length,r>0&&(n.length<r&&(i=N7(Zo(n).c,r),n=i),pu(t,0,n,0,r)),n.length>r&&Ni(n,r,null),n};var Nfn;w(Kr,"ArrayDelegatingEList",2045),b(1033,42,kr,GDe),s.Vj=function(){if(this.b.j!=this.f||K(u(Cn(this.b.a,4),129))!==K(this.a))throw x(new xs)},s.Qb=function(){P9(this),this.a=u(Cn(this.b.a,4),129)},w(Kr,"ArrayDelegatingEList/EIterator",1033),b(712,286,Ih,QIe,SPe),s.Vj=function(){if(this.b.j!=this.f||K(u(Cn(this.b.a,4),129))!==K(this.a))throw x(new xs)},s.Yj=function(n){uJe(this,n),this.a=u(Cn(this.b.a,4),129)},s.Qb=function(){P9(this),this.a=u(Cn(this.b.a,4),129)},w(Kr,"ArrayDelegatingEList/EListIterator",712),b(1034,355,kr,HDe),s.Vj=function(){if(this.b.j!=this.f||K(u(Cn(this.b.a,4),129))!==K(this.a))throw x(new xs)},w(Kr,"ArrayDelegatingEList/NonResolvingEIterator",1034),b(713,391,Ih,YIe,IPe),s.Vj=function(){if(this.b.j!=this.f||K(u(Cn(this.b.a,4),129))!==K(this.a))throw x(new xs)},w(Kr,"ArrayDelegatingEList/NonResolvingEListIterator",713),b(606,306,NS,zL),w(Kr,"BasicEList/BasicIndexOutOfBoundsException",606),b(699,67,ah,dV),s._c=function(n,t){throw x(new ht)},s.Ec=function(n){throw x(new ht)},s.ad=function(n,t){throw x(new ht)},s.Fc=function(n){throw x(new ht)},s.$b=function(){throw x(new ht)},s.Zi=function(n){throw x(new ht)},s.Jc=function(){return this.Gi()},s.cd=function(){return this.Hi()},s.dd=function(n){return this.Ii(n)},s.Ri=function(n,t){throw x(new ht)},s.Si=function(n,t){throw x(new ht)},s.ed=function(n){throw x(new ht)},s.Kc=function(n){throw x(new ht)},s.fd=function(n,t){throw x(new ht)},w(Kr,"BasicEList/UnmodifiableEList",699),b(711,1,{3:1,20:1,18:1,16:1,61:1,587:1}),s._c=function(n,t){Cbn(this,n,u(t,45))},s.Ec=function(n){return gwn(this,u(n,45))},s.Ic=function(n){Dr(this,n)},s.Xb=function(n){return u(B(this.c,n),136)},s.Ri=function(n,t){return u(this.c.Ri(n,t),45)},s.Si=function(n,t){xbn(this,n,u(t,45))},s.ed=function(n){return u(this.c.ed(n),45)},s.fd=function(n,t){return Tmn(this,n,u(t,45))},s.gd=function(n){Vd(this,n)},s.Lc=function(){return new Ye(this,16)},s.Mc=function(){return new We(null,new Ye(this,16))},s.ad=function(n,t){return this.c.ad(n,t)},s.Fc=function(n){return this.c.Fc(n)},s.$b=function(){this.c.$b()},s.Gc=function(n){return this.c.Gc(n)},s.Hc=function(n){return G7(this.c,n)},s.Zj=function(){var n,t,i;if(this.d==null){for(this.d=W(kwe,$se,67,2*this.f+1,0,1),i=this.e,this.f=0,t=this.c.Jc();t.e!=t.i.gc();)n=u(t.Wj(),136),RT(this,n);this.e=i}},s.Fb=function(n){return xSe(this,n)},s.Hb=function(){return Hee(this.c)},s.bd=function(n){return this.c.bd(n)},s.$j=function(){this.c=new Oje(this)},s.dc=function(){return this.f==0},s.Jc=function(){return this.c.Jc()},s.cd=function(){return this.c.cd()},s.dd=function(n){return this.c.dd(n)},s._j=function(){return k7(this)},s.ak=function(n,t,i){return new _Se(n,t,i)},s.bk=function(){return new J5e},s.Kc=function(n){return gFe(this,n)},s.gc=function(){return this.f},s.hd=function(n,t){return new L1(this.c,n,t)},s.Nc=function(){return this.c.Nc()},s.Oc=function(n){return this.c.Oc(n)},s.Ib=function(){return _ne(this.c)},s.e=0,s.f=0,w(Kr,"BasicEMap",711),b(1028,67,ah,Oje),s.Ki=function(n,t){rdn(this,u(t,136))},s.Ni=function(n,t,i){var r;++(r=this,u(t,136),r).a.e},s.Oi=function(n,t){cdn(this,u(t,136))},s.Pi=function(n,t,i){Zbn(this,u(t,136),u(i,136))},s.Mi=function(n,t){uBe(this.a)},w(Kr,"BasicEMap/1",1028),b(1029,67,ah,J5e),s.$i=function(n){return W(RFn,RQe,612,n,0,1)},w(Kr,"BasicEMap/2",1029),b(1030,Sl,ko,Nje),s.$b=function(){this.a.c.$b()},s.Gc=function(n){return XB(this.a,n)},s.Jc=function(){return this.a.f==0?(bv(),jA.a):new wAe(this.a)},s.Kc=function(n){var t;return t=this.a.f,ST(this.a,n),this.a.f!=t},s.gc=function(){return this.a.f},w(Kr,"BasicEMap/3",1030),b(1031,31,ig,Dje),s.$b=function(){this.a.c.$b()},s.Gc=function(n){return gze(this.a,n)},s.Jc=function(){return this.a.f==0?(bv(),jA.a):new gAe(this.a)},s.gc=function(){return this.a.f},w(Kr,"BasicEMap/4",1031),b(1032,Sl,ko,Lje),s.$b=function(){this.a.c.$b()},s.Gc=function(n){var t,i,r,c,o,f,l,h,a;if(this.a.f>0&&F(n,45)&&(this.a.Zj(),h=u(n,45),l=h.jd(),c=l==null?0:si(l),o=hQ(this.a,c),t=this.a.d[o],t)){for(i=u(t.g,374),a=t.i,f=0;f<a;++f)if(r=i[f],r.yi()==c&&r.Fb(h))return!0}return!1},s.Jc=function(){return this.a.f==0?(bv(),jA.a):new cF(this.a)},s.Kc=function(n){return uqe(this,n)},s.gc=function(){return this.a.f},w(Kr,"BasicEMap/5",1032),b(613,1,kr,cF),s.Nb=function(n){Ir(this,n)},s.Ob=function(){return this.b!=-1},s.Pb=function(){var n;if(this.f.e!=this.c)throw x(new xs);if(this.b==-1)throw x(new Dc);return this.d=this.a,this.e=this.b,JJe(this),n=u(this.f.d[this.d].g[this.e],136),this.ck(n)},s.Qb=function(){if(this.f.e!=this.c)throw x(new xs);if(this.e==-1)throw x(new bo);this.f.c.Kc(B(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},s.ck=function(n){return n},s.a=0,s.b=-1,s.c=0,s.d=0,s.e=0,w(Kr,"BasicEMap/BasicEMapIterator",613),b(1026,613,kr,wAe),s.ck=function(n){return n.jd()},w(Kr,"BasicEMap/BasicEMapKeyIterator",1026),b(1027,613,kr,gAe),s.ck=function(n){return n.kd()},w(Kr,"BasicEMap/BasicEMapValueIterator",1027),b(1025,1,Mb,$je),s.wc=function(n){$7(this,n)},s.$b=function(){this.a.c.$b()},s._b=function(n){return VCe(this,n)},s.uc=function(n){return gze(this.a,n)},s.vc=function(){return r6n(this.a)},s.Fb=function(n){return xSe(this.a,n)},s.xc=function(n){return rl(this.a,n)},s.Hb=function(){return Hee(this.a.c)},s.dc=function(){return this.a.f==0},s.ec=function(){return c6n(this.a)},s.yc=function(n,t){return uj(this.a,n,t)},s.Ac=function(n){return ST(this.a,n)},s.gc=function(){return this.a.f},s.Ib=function(){return _ne(this.a.c)},s.Bc=function(){return u6n(this.a)},w(Kr,"BasicEMap/DelegatingMap",1025),b(612,1,{45:1,136:1,612:1},_Se),s.Fb=function(n){var t;return F(n,45)?(t=u(n,45),(this.b!=null?qt(this.b,t.jd()):K(this.b)===K(t.jd()))&&(this.c!=null?qt(this.c,t.kd()):K(this.c)===K(t.kd()))):!1},s.yi=function(){return this.a},s.jd=function(){return this.b},s.kd=function(){return this.c},s.Hb=function(){return this.a^(this.c==null?0:si(this.c))},s.zi=function(n){this.a=n},s.Ai=function(n){throw x(new Pd)},s.ld=function(n){var t;return t=this.c,this.c=n,t},s.Ib=function(){return this.b+"->"+this.c},s.a=0;var RFn=w(Kr,"BasicEMap/EntryImpl",612);b(535,1,{},YA),w(Kr,"BasicEMap/View",535);var jA;b(770,1,{}),s.Fb=function(n){return zie((tn(),Qr),n)},s.Hb=function(){return ene((tn(),Qr))},s.Ib=function(){return xl((tn(),Qr))},w(Kr,"ECollections/BasicEmptyUnmodifiableEList",770),b(1303,1,Ih,_5e),s.Nb=function(n){Ir(this,n)},s.Rb=function(n){throw x(new ht)},s.Ob=function(){return!1},s.Sb=function(){return!1},s.Pb=function(){throw x(new Dc)},s.Tb=function(){return 0},s.Ub=function(){throw x(new Dc)},s.Vb=function(){return-1},s.Qb=function(){throw x(new ht)},s.Wb=function(n){throw x(new ht)},w(Kr,"ECollections/BasicEmptyUnmodifiableEList/1",1303),b(1301,770,{20:1,18:1,16:1,61:1},AEe),s._c=function(n,t){_Ae()},s.Ec=function(n){return RAe()},s.ad=function(n,t){return JAe()},s.Fc=function(n){return GAe()},s.$b=function(){HAe()},s.Gc=function(n){return!1},s.Hc=function(n){return!1},s.Ic=function(n){Dr(this,n)},s.Xb=function(n){return pV((tn(),n)),null},s.bd=function(n){return-1},s.dc=function(){return!0},s.Jc=function(){return this.a},s.cd=function(){return this.a},s.dd=function(n){return this.a},s.Ri=function(n,t){return qAe()},s.Si=function(n,t){zAe()},s.ed=function(n){return UAe()},s.Kc=function(n){return XAe()},s.fd=function(n,t){return KAe()},s.gc=function(){return 0},s.gd=function(n){Vd(this,n)},s.Lc=function(){return new Ye(this,16)},s.Mc=function(){return new We(null,new Ye(this,16))},s.hd=function(n,t){return tn(),new L1(Qr,n,t)},s.Nc=function(){return lY((tn(),Qr))},s.Oc=function(n){return tn(),x9(Qr,n)},w(Kr,"ECollections/EmptyUnmodifiableEList",1301),b(1302,770,{20:1,18:1,16:1,61:1,587:1},MEe),s._c=function(n,t){_Ae()},s.Ec=function(n){return RAe()},s.ad=function(n,t){return JAe()},s.Fc=function(n){return GAe()},s.$b=function(){HAe()},s.Gc=function(n){return!1},s.Hc=function(n){return!1},s.Ic=function(n){Dr(this,n)},s.Xb=function(n){return pV((tn(),n)),null},s.bd=function(n){return-1},s.dc=function(){return!0},s.Jc=function(){return this.a},s.cd=function(){return this.a},s.dd=function(n){return this.a},s.Ri=function(n,t){return qAe()},s.Si=function(n,t){zAe()},s.ed=function(n){return UAe()},s.Kc=function(n){return XAe()},s.fd=function(n,t){return KAe()},s.gc=function(){return 0},s.gd=function(n){Vd(this,n)},s.Lc=function(){return new Ye(this,16)},s.Mc=function(){return new We(null,new Ye(this,16))},s.hd=function(n,t){return tn(),new L1(Qr,n,t)},s.Nc=function(){return lY((tn(),Qr))},s.Oc=function(n){return tn(),x9(Qr,n)},s._j=function(){return tn(),tn(),$h},w(Kr,"ECollections/EmptyUnmodifiableEMap",1302);var Ewe=yi(Kr,"Enumerator"),QO;b(290,1,{290:1},i_),s.Fb=function(n){var t;return this===n?!0:F(n,290)?(t=u(n,290),this.f==t.f&&Xpn(this.i,t.i)&&S$(this.a,(this.f&256)!=0?(t.f&256)!=0?t.a:null:(t.f&256)!=0?null:t.a)&&S$(this.d,t.d)&&S$(this.g,t.g)&&S$(this.e,t.e)&&Q7n(this,t)):!1},s.Hb=function(){return this.f},s.Ib=function(){return Vze(this)},s.f=0;var Dfn=0,Lfn=0,$fn=0,Ffn=0,Awe=0,Mwe=0,Cwe=0,xwe=0,Twe=0,Bfn,J8=0,G8=0,Rfn=0,_fn=0,YO,Swe;w(Kr,"URI",290),b(1091,44,Y2,CEe),s.yc=function(n,t){return u(mc(this,dt(n),u(t,290)),290)},w(Kr,"URI/URICache",1091),b(492,67,ah,G5e,_C),s.Qi=function(){return!0},w(Kr,"UniqueEList",492),b(579,63,ba,$x),w(Kr,"WrappedException",579);var St=yi(Js,GQe),zg=yi(Js,HQe),ho=yi(Js,qQe),Ug=yi(Js,zQe),bl=yi(Js,UQe),df=yi(Js,"EClass"),dX=yi(Js,"EDataType"),Jfn;b(1199,44,Y2,xEe),s.xc=function(n){return pr(n)?Cu(this,n):$c(pc(this.f,n))},w(Js,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1199);var ZO=yi(Js,"EEnum"),Ma=yi(Js,XQe),hc=yi(Js,KQe),bf=yi(Js,WQe),wf,Kb=yi(Js,VQe),Xg=yi(Js,QQe);b(Df,1,{},H5e),s.Ib=function(){return"NIL"},w(Js,"EStructuralFeature/Internal/DynamicValueHolder/1",Df);var Gfn;b(1023,44,Y2,TEe),s.xc=function(n){return pr(n)?Cu(this,n):$c(pc(this.f,n))},w(Js,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1023);var Yu=yi(Js,YQe),F3=yi(Js,"EValidator/PatternMatcher"),Iwe,Pwe,mn,w1,Kg,Ad,Hfn,qfn,zfn,Md,g1,Cd,Wb,Hl,Ufn,Xfn,gf,p1,Kfn,m1,Wg,$p,Zr,Wfn,Vfn,Vb,eN=yi(wi,"FeatureMap/Entry");b(534,1,{75:1},nC),s.Jk=function(){return this.a},s.kd=function(){return this.b},w(kn,"BasicEObjectImpl/1",534),b(1022,1,uH,zCe),s.Dk=function(n){return NF(this.a,this.b,n)},s.Oj=function(){return $Oe(this.a,this.b)},s.Wb=function(n){QY(this.a,this.b,n)},s.Ek=function(){Gmn(this.a,this.b)},w(kn,"BasicEObjectImpl/4",1022),b(2046,1,{114:1}),s.Kk=function(n){this.e=n==0?Qfn:W(ir,ln,1,n,5,1)},s.ii=function(n){return this.e[n]},s.ji=function(n,t){this.e[n]=t},s.ki=function(n){this.e[n]=null},s.Lk=function(){return this.c},s.Mk=function(){throw x(new ht)},s.Nk=function(){throw x(new ht)},s.Ok=function(){return this.d},s.Pk=function(){return this.e!=null},s.Qk=function(n){this.c=n},s.Rk=function(n){throw x(new ht)},s.Sk=function(n){throw x(new ht)},s.Tk=function(n){this.d=n};var Qfn;w(kn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2046),b(192,2046,{114:1},Wf),s.Mk=function(){return this.a},s.Nk=function(){return this.b},s.Rk=function(n){this.a=n},s.Sk=function(n){this.b=n},w(kn,"BasicEObjectImpl/EPropertiesHolderImpl",192),b(502,100,YVe,ZA),s.rh=function(){return this.f},s.wh=function(){return this.k},s.yh=function(n,t){this.g=n,this.i=t},s.Ah=function(){return(this.j&2)==0?this.fi():this.Xh().Lk()},s.Ch=function(){return this.i},s.th=function(){return(this.j&1)!=0},s.Mh=function(){return this.g},s.Sh=function(){return(this.j&4)!=0},s.Xh=function(){return!this.k&&(this.k=new Wf),this.k},s._h=function(n){this.Xh().Qk(n),n?this.j|=2:this.j&=-3},s.bi=function(n){this.Xh().Sk(n),n?this.j|=4:this.j&=-5},s.fi=function(){return(O1(),mn).S},s.i=0,s.j=1,w(kn,"EObjectImpl",502),b(786,502,{109:1,94:1,93:1,57:1,114:1,52:1,100:1},KQ),s.ii=function(n){return this.e[n]},s.ji=function(n,t){this.e[n]=t},s.ki=function(n){this.e[n]=null},s.Ah=function(){return this.d},s.Fh=function(n){return vi(this.d,n)},s.Hh=function(){return this.d},s.Lh=function(){return this.e!=null},s.Xh=function(){return!this.k&&(this.k=new q5e),this.k},s._h=function(n){this.d=n},s.ei=function(){var n;return this.e==null&&(n=Un(this.d),this.e=n==0?Yfn:W(ir,ln,1,n,5,1)),this},s.gi=function(){return 0};var Yfn;w(kn,"DynamicEObjectImpl",786),b(1484,786,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1},dIe),s.Fb=function(n){return this===n},s.Hb=function(){return W0(this)},s._h=function(n){this.d=n,this.b=vj(n,"key"),this.c=vj(n,vy)},s.yi=function(){var n;return this.a==-1&&(n=UF(this,this.b),this.a=n==null?0:si(n)),this.a},s.jd=function(){return UF(this,this.b)},s.kd=function(){return UF(this,this.c)},s.zi=function(n){this.a=n},s.Ai=function(n){QY(this,this.b,n)},s.ld=function(n){var t;return t=UF(this,this.c),QY(this,this.c,n),t},s.a=0,w(kn,"DynamicEObjectImpl/BasicEMapEntry",1484),b(1485,1,{114:1},q5e),s.Kk=function(n){throw x(new ht)},s.ii=function(n){throw x(new ht)},s.ji=function(n,t){throw x(new ht)},s.ki=function(n){throw x(new ht)},s.Lk=function(){throw x(new ht)},s.Mk=function(){return this.a},s.Nk=function(){return this.b},s.Ok=function(){return this.c},s.Pk=function(){throw x(new ht)},s.Qk=function(n){throw x(new ht)},s.Rk=function(n){this.a=n},s.Sk=function(n){this.b=n},s.Tk=function(n){this.c=n},w(kn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1485),b(505,161,{109:1,94:1,93:1,588:1,158:1,57:1,114:1,52:1,100:1,505:1,161:1,117:1,118:1},rK),s.xh=function(n){return Cte(this,n)},s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new Vo((nn(),Zr),nu,this)),this.b):(!this.b&&(this.b=new Vo((nn(),Zr),nu,this)),k7(this.b));case 3:return HOe(this);case 4:return!this.a&&(this.a=new Wi(Ed,this,4)),this.a;case 5:return!this.c&&(this.c=new j2(Ed,this,5)),this.c}return Os(this,n-Un((nn(),w1)),un((r=u(Cn(this,16),29),r||w1),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 3:return this.Cb&&(i=(c=this.Db>>16,c>=0?Cte(this,i):this.Cb.Qh(this,-1-c,null,i))),oY(this,u(n,158),i)}return o=u(un((r=u(Cn(this,16),29),r||(nn(),w1)),t),69),o.uk().xk(this,Uu(this),t-Un((nn(),w1)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Xr(this.Ab,n,i);case 2:return!this.b&&(this.b=new Vo((nn(),Zr),nu,this)),kC(this.b,n,i);case 3:return oY(this,null,i);case 4:return!this.a&&(this.a=new Wi(Ed,this,4)),Xr(this.a,n,i)}return c=u(un((r=u(Cn(this,16),29),r||(nn(),w1)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),w1)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!HOe(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return Ps(this,n-Un((nn(),w1)),un((t=u(Cn(this,16),29),t||w1),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:$pn(this,dt(t));return;case 2:!this.b&&(this.b=new Vo((nn(),Zr),nu,this)),cT(this.b,t);return;case 3:Bqe(this,u(t,158));return;case 4:!this.a&&(this.a=new Wi(Ed,this,4)),nt(this.a),!this.a&&(this.a=new Wi(Ed,this,4)),Ii(this.a,u(t,18));return;case 5:!this.c&&(this.c=new j2(Ed,this,5)),nt(this.c),!this.c&&(this.c=new j2(Ed,this,5)),Ii(this.c,u(t,18));return}Bs(this,n-Un((nn(),w1)),un((i=u(Cn(this,16),29),i||w1),n),t)},s.fi=function(){return nn(),w1},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:Aee(this,null);return;case 2:!this.b&&(this.b=new Vo((nn(),Zr),nu,this)),this.b.c.$b();return;case 3:Bqe(this,null);return;case 4:!this.a&&(this.a=new Wi(Ed,this,4)),nt(this.a);return;case 5:!this.c&&(this.c=new j2(Ed,this,5)),nt(this.c);return}Fs(this,n-Un((nn(),w1)),un((t=u(Cn(this,16),29),t||w1),n))},s.Ib=function(){return IRe(this)},s.d=null,w(kn,"EAnnotationImpl",505),b(142,711,Fse,mo),s.Ei=function(n,t){fbn(this,n,u(t,45))},s.Uk=function(n,t){return ugn(this,u(n,45),t)},s.Yi=function(n){return u(u(this.c,72).Yi(n),136)},s.Gi=function(){return u(this.c,72).Gi()},s.Hi=function(){return u(this.c,72).Hi()},s.Ii=function(n){return u(this.c,72).Ii(n)},s.Vk=function(n,t){return kC(this,n,t)},s.Dk=function(n){return u(this.c,78).Dk(n)},s.$j=function(){},s.Oj=function(){return u(this.c,78).Oj()},s.ak=function(n,t,i){var r;return r=u(hs(this.b).ti().pi(this.b),136),r.zi(n),r.Ai(t),r.ld(i),r},s.bk=function(){return new JK(this)},s.Wb=function(n){cT(this,n)},s.Ek=function(){u(this.c,78).Ek()},w(wi,"EcoreEMap",142),b(169,142,Fse,Vo),s.Zj=function(){var n,t,i,r,c,o;if(this.d==null){for(o=W(kwe,$se,67,2*this.f+1,0,1),i=this.c.Jc();i.e!=i.i.gc();)t=u(i.Wj(),136),r=t.yi(),c=(r&Ft)%o.length,n=o[c],!n&&(n=o[c]=new JK(this)),n.Ec(t);this.d=o}},w(kn,"EAnnotationImpl/1",169),b(293,439,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,470:1,52:1,100:1,161:1,293:1,117:1,118:1}),s.Ih=function(n,t,i){var r,c;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return gn(),(this.Bb&256)!=0;case 3:return gn(),(this.Bb&512)!=0;case 4:return fe(this.s);case 5:return fe(this.t);case 6:return gn(),!!this.Hk();case 7:return gn(),c=this.s,c>=1;case 8:return t?rf(this):this.r;case 9:return this.q}return Os(this,n-Un(this.fi()),un((r=u(Cn(this,16),29),r||this.fi()),n),t,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Xr(this.Ab,n,i);case 9:return U$(this,i)}return c=u(un((r=u(Cn(this,16),29),r||this.fi()),t),69),c.uk().yk(this,Uu(this),t-Un(this.fi()),n,i)},s.Th=function(n){var t,i;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Z0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Z0(this.q).i==0)}return Ps(this,n-Un(this.fi()),un((t=u(Cn(this,16),29),t||this.fi()),n))},s.$h=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:this.ri(dt(t));return;case 2:Wa(this,Se(Te(t)));return;case 3:Va(this,Se(Te(t)));return;case 4:za(this,u(t,15).a);return;case 5:this.Xk(u(t,15).a);return;case 8:n0(this,u(t,143));return;case 9:r=Cl(this,u(t,87),null),r&&r.mj();return}Bs(this,n-Un(this.fi()),un((i=u(Cn(this,16),29),i||this.fi()),n),t)},s.fi=function(){return nn(),Vfn},s.hi=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:this.ri(null);return;case 2:Wa(this,!0);return;case 3:Va(this,!0);return;case 4:za(this,0);return;case 5:this.Xk(1);return;case 8:n0(this,null);return;case 9:i=Cl(this,null,null),i&&i.mj();return}Fs(this,n-Un(this.fi()),un((t=u(Cn(this,16),29),t||this.fi()),n))},s.mi=function(){rf(this),this.Bb|=1},s.Fk=function(){return rf(this)},s.Gk=function(){return this.t},s.Hk=function(){var n;return n=this.t,n>1||n==-1},s.Qi=function(){return(this.Bb&512)!=0},s.Wk=function(n,t){return jne(this,n,t)},s.Xk=function(n){Fw(this,n)},s.Ib=function(){return $ie(this)},s.s=0,s.t=1,w(kn,"ETypedElementImpl",293),b(451,293,{109:1,94:1,93:1,158:1,197:1,57:1,179:1,69:1,114:1,470:1,52:1,100:1,161:1,451:1,293:1,117:1,118:1,682:1}),s.xh=function(n){return kJe(this,n)},s.Ih=function(n,t,i){var r,c;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return gn(),(this.Bb&256)!=0;case 3:return gn(),(this.Bb&512)!=0;case 4:return fe(this.s);case 5:return fe(this.t);case 6:return gn(),!!this.Hk();case 7:return gn(),c=this.s,c>=1;case 8:return t?rf(this):this.r;case 9:return this.q;case 10:return gn(),(this.Bb&Df)!=0;case 11:return gn(),(this.Bb&i1)!=0;case 12:return gn(),(this.Bb&cg)!=0;case 13:return this.j;case 14:return b4(this);case 15:return gn(),(this.Bb&jo)!=0;case 16:return gn(),(this.Bb&ch)!=0;case 17:return Sw(this)}return Os(this,n-Un(this.fi()),un((r=u(Cn(this,16),29),r||this.fi()),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 17:return this.Cb&&(i=(c=this.Db>>16,c>=0?kJe(this,i):this.Cb.Qh(this,-1-c,null,i))),gs(this,n,17,i)}return o=u(un((r=u(Cn(this,16),29),r||this.fi()),t),69),o.uk().xk(this,Uu(this),t-Un(this.fi()),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Xr(this.Ab,n,i);case 9:return U$(this,i);case 17:return gs(this,null,17,i)}return c=u(un((r=u(Cn(this,16),29),r||this.fi()),t),69),c.uk().yk(this,Uu(this),t-Un(this.fi()),n,i)},s.Th=function(n){var t,i;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Z0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Z0(this.q).i==0);case 10:return(this.Bb&Df)==0;case 11:return(this.Bb&i1)!=0;case 12:return(this.Bb&cg)!=0;case 13:return this.j!=null;case 14:return b4(this)!=null;case 15:return(this.Bb&jo)!=0;case 16:return(this.Bb&ch)!=0;case 17:return!!Sw(this)}return Ps(this,n-Un(this.fi()),un((t=u(Cn(this,16),29),t||this.fi()),n))},s.$h=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:mF(this,dt(t));return;case 2:Wa(this,Se(Te(t)));return;case 3:Va(this,Se(Te(t)));return;case 4:za(this,u(t,15).a);return;case 5:this.Xk(u(t,15).a);return;case 8:n0(this,u(t,143));return;case 9:r=Cl(this,u(t,87),null),r&&r.mj();return;case 10:Yv(this,Se(Te(t)));return;case 11:e4(this,Se(Te(t)));return;case 12:Zv(this,Se(Te(t)));return;case 13:wV(this,dt(t));return;case 15:Qv(this,Se(Te(t)));return;case 16:n4(this,Se(Te(t)));return}Bs(this,n-Un(this.fi()),un((i=u(Cn(this,16),29),i||this.fi()),n),t)},s.fi=function(){return nn(),Wfn},s.hi=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:F(this.Cb,88)&&Vw(Fo(u(this.Cb,88)),4),Ru(this,null);return;case 2:Wa(this,!0);return;case 3:Va(this,!0);return;case 4:za(this,0);return;case 5:this.Xk(1);return;case 8:n0(this,null);return;case 9:i=Cl(this,null,null),i&&i.mj();return;case 10:Yv(this,!0);return;case 11:e4(this,!1);return;case 12:Zv(this,!1);return;case 13:this.i=null,Zx(this,null);return;case 15:Qv(this,!1);return;case 16:n4(this,!1);return}Fs(this,n-Un(this.fi()),un((t=u(Cn(this,16),29),t||this.fi()),n))},s.mi=function(){Mv(vc((yo(),Or),this)),rf(this),this.Bb|=1},s.nk=function(){return this.f},s.gk=function(){return b4(this)},s.ok=function(){return Sw(this)},s.sk=function(){return null},s.Yk=function(){return this.k},s.Jj=function(){return this.n},s.tk=function(){return UT(this)},s.uk=function(){var n,t,i,r,c,o,f,l,h;return this.p||(i=Sw(this),(i.i==null&&rh(i),i.i).length,r=this.sk(),r&&Un(Sw(r)),c=rf(this),f=c.ik(),n=f?(f.i&1)!=0?f==ao?xi:f==bt?Zi:f==Qg?t5:f==jr?zi:f==Yb?Lb:f==_p?$b:f==Ao?s3:Iy:f:null,t=b4(this),l=c.gk(),ykn(this),(this.Bb&ch)!=0&&((o=Ote((yo(),Or),i))&&o!=this||(o=Am(vc(Or,this))))?this.p=new XCe(this,o):this.Hk()?this.$k()?r?(this.Bb&jo)!=0?n?this._k()?this.p=new Hd(47,n,this,r):this.p=new Hd(5,n,this,r):this._k()?this.p=new Wd(46,this,r):this.p=new Wd(4,this,r):n?this._k()?this.p=new Hd(49,n,this,r):this.p=new Hd(7,n,this,r):this._k()?this.p=new Wd(48,this,r):this.p=new Wd(6,this,r):(this.Bb&jo)!=0?n?n==p0?this.p=new Ra(50,Pfn,this):this._k()?this.p=new Ra(43,n,this):this.p=new Ra(1,n,this):this._k()?this.p=new Ja(42,this):this.p=new Ja(0,this):n?n==p0?this.p=new Ra(41,Pfn,this):this._k()?this.p=new Ra(45,n,this):this.p=new Ra(3,n,this):this._k()?this.p=new Ja(44,this):this.p=new Ja(2,this):F(c,159)?n==eN?this.p=new Ja(40,this):(this.Bb&512)!=0?(this.Bb&jo)!=0?n?this.p=new Ra(9,n,this):this.p=new Ja(8,this):n?this.p=new Ra(11,n,this):this.p=new Ja(10,this):(this.Bb&jo)!=0?n?this.p=new Ra(13,n,this):this.p=new Ja(12,this):n?this.p=new Ra(15,n,this):this.p=new Ja(14,this):r?(h=r.t,h>1||h==-1?this._k()?(this.Bb&jo)!=0?n?this.p=new Hd(25,n,this,r):this.p=new Wd(24,this,r):n?this.p=new Hd(27,n,this,r):this.p=new Wd(26,this,r):(this.Bb&jo)!=0?n?this.p=new Hd(29,n,this,r):this.p=new Wd(28,this,r):n?this.p=new Hd(31,n,this,r):this.p=new Wd(30,this,r):this._k()?(this.Bb&jo)!=0?n?this.p=new Hd(33,n,this,r):this.p=new Wd(32,this,r):n?this.p=new Hd(35,n,this,r):this.p=new Wd(34,this,r):(this.Bb&jo)!=0?n?this.p=new Hd(37,n,this,r):this.p=new Wd(36,this,r):n?this.p=new Hd(39,n,this,r):this.p=new Wd(38,this,r)):this._k()?(this.Bb&jo)!=0?n?this.p=new Ra(17,n,this):this.p=new Ja(16,this):n?this.p=new Ra(19,n,this):this.p=new Ja(18,this):(this.Bb&jo)!=0?n?this.p=new Ra(21,n,this):this.p=new Ja(20,this):n?this.p=new Ra(23,n,this):this.p=new Ja(22,this):this.Zk()?this._k()?this.p=new GSe(u(c,29),this,r):this.p=new VY(u(c,29),this,r):F(c,159)?n==eN?this.p=new Ja(40,this):(this.Bb&jo)!=0?n?this.p=new LIe(t,l,this,(VB(),f==bt?Bwe:f==ao?Nwe:f==Yb?Rwe:f==Qg?Fwe:f==jr?$we:f==_p?_we:f==Ao?Dwe:f==Ks?Lwe:gX)):this.p=new YPe(u(c,159),t,l,this):n?this.p=new DIe(t,l,this,(VB(),f==bt?Bwe:f==ao?Nwe:f==Yb?Rwe:f==Qg?Fwe:f==jr?$we:f==_p?_we:f==Ao?Dwe:f==Ks?Lwe:gX)):this.p=new QPe(u(c,159),t,l,this):this.$k()?r?(this.Bb&jo)!=0?this._k()?this.p=new qSe(u(c,29),this,r):this.p=new BQ(u(c,29),this,r):this._k()?this.p=new HSe(u(c,29),this,r):this.p=new E$(u(c,29),this,r):(this.Bb&jo)!=0?this._k()?this.p=new BTe(u(c,29),this):this.p=new eQ(u(c,29),this):this._k()?this.p=new FTe(u(c,29),this):this.p=new s$(u(c,29),this):this._k()?r?(this.Bb&jo)!=0?this.p=new zSe(u(c,29),this,r):this.p=new $Q(u(c,29),this,r):(this.Bb&jo)!=0?this.p=new RTe(u(c,29),this):this.p=new ZV(u(c,29),this):r?(this.Bb&jo)!=0?this.p=new USe(u(c,29),this,r):this.p=new FQ(u(c,29),this,r):(this.Bb&jo)!=0?this.p=new $Te(u(c,29),this):this.p=new RC(u(c,29),this)),this.p},s.pk=function(){return(this.Bb&Df)!=0},s.Zk=function(){return!1},s.$k=function(){return!1},s.qk=function(){return(this.Bb&ch)!=0},s.vk=function(){return KF(this)},s._k=function(){return!1},s.rk=function(){return(this.Bb&jo)!=0},s.al=function(n){this.k=n},s.ri=function(n){mF(this,n)},s.Ib=function(){return gS(this)},s.e=!1,s.n=0,w(kn,"EStructuralFeatureImpl",451),b(335,451,{109:1,94:1,93:1,38:1,158:1,197:1,57:1,179:1,69:1,114:1,470:1,52:1,100:1,335:1,161:1,451:1,293:1,117:1,118:1,682:1},GD),s.Ih=function(n,t,i){var r,c;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return gn(),(this.Bb&256)!=0;case 3:return gn(),(this.Bb&512)!=0;case 4:return fe(this.s);case 5:return fe(this.t);case 6:return gn(),!!Iie(this);case 7:return gn(),c=this.s,c>=1;case 8:return t?rf(this):this.r;case 9:return this.q;case 10:return gn(),(this.Bb&Df)!=0;case 11:return gn(),(this.Bb&i1)!=0;case 12:return gn(),(this.Bb&cg)!=0;case 13:return this.j;case 14:return b4(this);case 15:return gn(),(this.Bb&jo)!=0;case 16:return gn(),(this.Bb&ch)!=0;case 17:return Sw(this);case 18:return gn(),(this.Bb&cu)!=0;case 19:return t?wB(this):iLe(this)}return Os(this,n-Un((nn(),Kg)),un((r=u(Cn(this,16),29),r||Kg),n),t,i)},s.Th=function(n){var t,i;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return Iie(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Z0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Z0(this.q).i==0);case 10:return(this.Bb&Df)==0;case 11:return(this.Bb&i1)!=0;case 12:return(this.Bb&cg)!=0;case 13:return this.j!=null;case 14:return b4(this)!=null;case 15:return(this.Bb&jo)!=0;case 16:return(this.Bb&ch)!=0;case 17:return!!Sw(this);case 18:return(this.Bb&cu)!=0;case 19:return!!iLe(this)}return Ps(this,n-Un((nn(),Kg)),un((t=u(Cn(this,16),29),t||Kg),n))},s.$h=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:mF(this,dt(t));return;case 2:Wa(this,Se(Te(t)));return;case 3:Va(this,Se(Te(t)));return;case 4:za(this,u(t,15).a);return;case 5:AAe(this,u(t,15).a);return;case 8:n0(this,u(t,143));return;case 9:r=Cl(this,u(t,87),null),r&&r.mj();return;case 10:Yv(this,Se(Te(t)));return;case 11:e4(this,Se(Te(t)));return;case 12:Zv(this,Se(Te(t)));return;case 13:wV(this,dt(t));return;case 15:Qv(this,Se(Te(t)));return;case 16:n4(this,Se(Te(t)));return;case 18:JB(this,Se(Te(t)));return}Bs(this,n-Un((nn(),Kg)),un((i=u(Cn(this,16),29),i||Kg),n),t)},s.fi=function(){return nn(),Kg},s.hi=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:F(this.Cb,88)&&Vw(Fo(u(this.Cb,88)),4),Ru(this,null);return;case 2:Wa(this,!0);return;case 3:Va(this,!0);return;case 4:za(this,0);return;case 5:this.b=0,Fw(this,1);return;case 8:n0(this,null);return;case 9:i=Cl(this,null,null),i&&i.mj();return;case 10:Yv(this,!0);return;case 11:e4(this,!1);return;case 12:Zv(this,!1);return;case 13:this.i=null,Zx(this,null);return;case 15:Qv(this,!1);return;case 16:n4(this,!1);return;case 18:JB(this,!1);return}Fs(this,n-Un((nn(),Kg)),un((t=u(Cn(this,16),29),t||Kg),n))},s.mi=function(){wB(this),Mv(vc((yo(),Or),this)),rf(this),this.Bb|=1},s.Hk=function(){return Iie(this)},s.Wk=function(n,t){return this.b=0,this.a=null,jne(this,n,t)},s.Xk=function(n){AAe(this,n)},s.Ib=function(){var n;return(this.Db&64)!=0?gS(this):(n=new Ys(gS(this)),n.a+=" (iD: ",Da(n,(this.Bb&cu)!=0),n.a+=")",n.a)},s.b=0,w(kn,"EAttributeImpl",335),b(360,439,{109:1,94:1,93:1,143:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,161:1,117:1,118:1,681:1}),s.bl=function(n){return n.Ah()==this},s.xh=function(n){return kR(this,n)},s.yh=function(n,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=n},s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return pb(this);case 4:return this.gk();case 5:return this.F;case 6:return t?hs(this):Tv(this);case 7:return!this.A&&(this.A=new wo(Yu,this,7)),this.A}return Os(this,n-Un(this.fi()),un((r=u(Cn(this,16),29),r||this.fi()),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?kR(this,i):this.Cb.Qh(this,-1-c,null,i))),gs(this,n,6,i)}return o=u(un((r=u(Cn(this,16),29),r||this.fi()),t),69),o.uk().xk(this,Uu(this),t-Un(this.fi()),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Xr(this.Ab,n,i);case 6:return gs(this,null,6,i);case 7:return!this.A&&(this.A=new wo(Yu,this,7)),Xr(this.A,n,i)}return c=u(un((r=u(Cn(this,16),29),r||this.fi()),t),69),c.uk().yk(this,Uu(this),t-Un(this.fi()),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!pb(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Tv(this);case 7:return!!this.A&&this.A.i!=0}return Ps(this,n-Un(this.fi()),un((t=u(Cn(this,16),29),t||this.fi()),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:bx(this,dt(t));return;case 2:WL(this,dt(t));return;case 5:k4(this,dt(t));return;case 7:!this.A&&(this.A=new wo(Yu,this,7)),nt(this.A),!this.A&&(this.A=new wo(Yu,this,7)),Ii(this.A,u(t,18));return}Bs(this,n-Un(this.fi()),un((i=u(Cn(this,16),29),i||this.fi()),n),t)},s.fi=function(){return nn(),Hfn},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:F(this.Cb,184)&&(u(this.Cb,184).tb=null),Ru(this,null);return;case 2:Kv(this,null),$v(this,this.D);return;case 5:k4(this,null);return;case 7:!this.A&&(this.A=new wo(Yu,this,7)),nt(this.A);return}Fs(this,n-Un(this.fi()),un((t=u(Cn(this,16),29),t||this.fi()),n))},s.fk=function(){var n;return this.G==-1&&(this.G=(n=hs(this),n?Qa(n.si(),this):-1)),this.G},s.gk=function(){return null},s.hk=function(){return hs(this)},s.cl=function(){return this.v},s.ik=function(){return pb(this)},s.jk=function(){return this.D!=null?this.D:this.B},s.kk=function(){return this.F},s.dk=function(n){return a_(this,n)},s.dl=function(n){this.v=n},s.el=function(n){GFe(this,n)},s.fl=function(n){this.C=n},s.ri=function(n){bx(this,n)},s.Ib=function(){return MT(this)},s.C=null,s.D=null,s.G=-1,w(kn,"EClassifierImpl",360),b(88,360,{109:1,94:1,93:1,29:1,143:1,158:1,197:1,57:1,114:1,52:1,100:1,88:1,360:1,161:1,471:1,117:1,118:1,681:1},fK),s.bl=function(n){return Xwn(this,n.Ah())},s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return pb(this);case 4:return null;case 5:return this.F;case 6:return t?hs(this):Tv(this);case 7:return!this.A&&(this.A=new wo(Yu,this,7)),this.A;case 8:return gn(),(this.Bb&256)!=0;case 9:return gn(),(this.Bb&512)!=0;case 10:return Cc(this);case 11:return!this.q&&(this.q=new ue(bf,this,11,10)),this.q;case 12:return K2(this);case 13:return U9(this);case 14:return U9(this),this.r;case 15:return K2(this),this.k;case 16:return vie(this);case 17:return g_(this);case 18:return rh(this);case 19:return oS(this);case 20:return K2(this),this.o;case 21:return!this.s&&(this.s=new ue(ho,this,21,17)),this.s;case 22:return bu(this);case 23:return t_(this)}return Os(this,n-Un((nn(),Ad)),un((r=u(Cn(this,16),29),r||Ad),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?kR(this,i):this.Cb.Qh(this,-1-c,null,i))),gs(this,n,6,i);case 11:return!this.q&&(this.q=new ue(bf,this,11,10)),_u(this.q,n,i);case 21:return!this.s&&(this.s=new ue(ho,this,21,17)),_u(this.s,n,i)}return o=u(un((r=u(Cn(this,16),29),r||(nn(),Ad)),t),69),o.uk().xk(this,Uu(this),t-Un((nn(),Ad)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Xr(this.Ab,n,i);case 6:return gs(this,null,6,i);case 7:return!this.A&&(this.A=new wo(Yu,this,7)),Xr(this.A,n,i);case 11:return!this.q&&(this.q=new ue(bf,this,11,10)),Xr(this.q,n,i);case 21:return!this.s&&(this.s=new ue(ho,this,21,17)),Xr(this.s,n,i);case 22:return Xr(bu(this),n,i)}return c=u(un((r=u(Cn(this,16),29),r||(nn(),Ad)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),Ad)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!pb(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Tv(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&bu(this.u.a).i!=0&&!(this.n&&lR(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return K2(this).i!=0;case 13:return U9(this).i!=0;case 14:return U9(this),this.r.i!=0;case 15:return K2(this),this.k.i!=0;case 16:return vie(this).i!=0;case 17:return g_(this).i!=0;case 18:return rh(this).i!=0;case 19:return oS(this).i!=0;case 20:return K2(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&lR(this.n);case 23:return t_(this).i!=0}return Ps(this,n-Un((nn(),Ad)),un((t=u(Cn(this,16),29),t||Ad),n))},s.Wh=function(n){var t;return t=this.i==null||this.q&&this.q.i!=0?null:vj(this,n),t||fce(this,n)},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:bx(this,dt(t));return;case 2:WL(this,dt(t));return;case 5:k4(this,dt(t));return;case 7:!this.A&&(this.A=new wo(Yu,this,7)),nt(this.A),!this.A&&(this.A=new wo(Yu,this,7)),Ii(this.A,u(t,18));return;case 8:Ane(this,Se(Te(t)));return;case 9:Mne(this,Se(Te(t)));return;case 10:W9(Cc(this)),Ii(Cc(this),u(t,18));return;case 11:!this.q&&(this.q=new ue(bf,this,11,10)),nt(this.q),!this.q&&(this.q=new ue(bf,this,11,10)),Ii(this.q,u(t,18));return;case 21:!this.s&&(this.s=new ue(ho,this,21,17)),nt(this.s),!this.s&&(this.s=new ue(ho,this,21,17)),Ii(this.s,u(t,18));return;case 22:nt(bu(this)),Ii(bu(this),u(t,18));return}Bs(this,n-Un((nn(),Ad)),un((i=u(Cn(this,16),29),i||Ad),n),t)},s.fi=function(){return nn(),Ad},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:F(this.Cb,184)&&(u(this.Cb,184).tb=null),Ru(this,null);return;case 2:Kv(this,null),$v(this,this.D);return;case 5:k4(this,null);return;case 7:!this.A&&(this.A=new wo(Yu,this,7)),nt(this.A);return;case 8:Ane(this,!1);return;case 9:Mne(this,!1);return;case 10:this.u&&W9(this.u);return;case 11:!this.q&&(this.q=new ue(bf,this,11,10)),nt(this.q);return;case 21:!this.s&&(this.s=new ue(ho,this,21,17)),nt(this.s);return;case 22:this.n&&nt(this.n);return}Fs(this,n-Un((nn(),Ad)),un((t=u(Cn(this,16),29),t||Ad),n))},s.mi=function(){var n,t;if(K2(this),U9(this),vie(this),g_(this),rh(this),oS(this),t_(this),t9(apn(Fo(this))),this.s)for(n=0,t=this.s.i;n<t;++n)zk(B(this.s,n));if(this.q)for(n=0,t=this.q.i;n<t;++n)zk(B(this.q,n));Ka((yo(),Or),this).ve(),this.Bb|=1},s.Ib=function(){return Rte(this)},s.k=null,s.r=null;var H8,Zfn,bX;w(kn,"EClassImpl",88),b(2057,2056,nYe),s.Ci=function(n,t){return d_(this,n,t)},s.Di=function(n){return d_(this,this.i,n)},s.Ei=function(n,t){Lie(this,n,t)},s.Fi=function(n){KR(this,n)},s.Uk=function(n,t){return _u(this,n,t)},s.Yi=function(n){return VZ(this,n)},s.Vk=function(n,t){return Xr(this,n,t)},s.Vi=function(n,t){return SUe(this,n,t)},s.Gi=function(){return new hm(this)},s.Hi=function(){return new qk(this)},s.Ii=function(n){return D7(this,n)},w(wi,"NotifyingInternalEListImpl",2057),b(624,2057,Nc),s.Gc=function(n){return KUe(this,n)},s.Gj=function(n,t,i,r,c){return V6(this,n,t,i,r,c)},s.Hj=function(n){Q3(this,n)},s.Dk=function(n){return this},s.Jk=function(){return un(this.e.Ah(),this.Jj())},s.Ij=function(){return this.Jk()},s.Jj=function(){return vi(this.e.Ah(),this.Jk())},s.gl=function(){return u(this.Jk().Fk(),29).ik()},s.hl=function(){return tc(u(this.Jk(),19)).n},s.hj=function(){return this.e},s.il=function(){return!0},s.jl=function(){return!1},s.kl=function(){return!1},s.ll=function(){return!1},s.bd=function(n){return Qa(this,n)},s.Lj=function(n,t){var i;return i=u(n,52),this.kl()?this.il()?i.Oh(this.e,this.hl(),this.gl(),t):i.Oh(this.e,vi(i.Ah(),tc(u(this.Jk(),19))),null,t):i.Oh(this.e,-1-this.Jj(),null,t)},s.Mj=function(n,t){var i;return i=u(n,52),this.kl()?this.il()?i.Qh(this.e,this.hl(),this.gl(),t):i.Qh(this.e,vi(i.Ah(),tc(u(this.Jk(),19))),null,t):i.Qh(this.e,-1-this.Jj(),null,t)},s.$k=function(){return!1},s.ml=function(){return!0},s.dk=function(n){return uDe(this.d,n)},s.Nj=function(){return Ko(this.e)},s.Oj=function(){return this.i!=0},s.$i=function(n){return N7(this.d,n)},s.Ui=function(n,t){return this.ml()&&this.ll()?Km(this,n,u(t,57)):t},s.nl=function(n){return n.Sh()?q1(this.e,u(n,52)):n},s.Wb=function(n){Hxe(this,n)},s.Nc=function(){return BLe(this)},s.Oc=function(n){var t;if(this.ll())for(t=this.i-1;t>=0;--t)B(this,t);return Xne(this,n)},s.Ek=function(){nt(this)},s.Xi=function(n,t){return wFe(this,n,t)},w(wi,"EcoreEList",624),b(491,624,Nc,t7),s.Ji=function(){return!1},s.Jj=function(){return this.c},s.Kj=function(){return!1},s.ml=function(){return!0},s.Qi=function(){return!0},s.Ui=function(n,t){return t},s.Wi=function(){return!1},s.c=0,w(wi,"EObjectEList",491),b(81,491,Nc,Wi),s.Kj=function(){return!0},s.kl=function(){return!1},s.$k=function(){return!0},w(wi,"EObjectContainmentEList",81),b(544,81,Nc,aC),s.Li=function(){this.b=!0},s.Oj=function(){return this.b},s.Ek=function(){var n;nt(this),Ko(this.e)?(n=this.b,this.b=!1,Gt(this.e,new Mf(this.e,2,this.c,n,!1))):this.b=!1},s.b=!1,w(wi,"EObjectContainmentEList/Unsettable",544),b(1131,544,Nc,OIe),s.Ri=function(n,t){var i,r;return i=u(k9(this,n,t),87),Ko(this.e)&&Q3(this,new j7(this.a,7,(nn(),qfn),fe(t),(r=i.c,F(r,88)?u(r,29):gf),n)),i},s.Sj=function(n,t){return n7n(this,u(n,87),t)},s.Tj=function(n,t){return e7n(this,u(n,87),t)},s.Uj=function(n,t,i){return eAn(this,u(n,87),u(t,87),i)},s.Gj=function(n,t,i,r,c){switch(n){case 3:return V6(this,n,t,i,r,this.i>1);case 5:return V6(this,n,t,i,r,this.i-u(i,16).gc()>0);default:return new ca(this.e,n,this.c,t,i,r,!0)}},s.Rj=function(){return!0},s.Oj=function(){return lR(this)},s.Ek=function(){nt(this)},w(kn,"EClassImpl/1",1131),b(1145,1144,Lse),s.bj=function(n){var t,i,r,c,o,f,l;if(i=n.ej(),i!=8){if(r=$7n(n),r==0)switch(i){case 1:case 9:{l=n.ij(),l!=null&&(t=Fo(u(l,471)),!t.c&&(t.c=new U3),Bx(t.c,n.hj())),f=n.gj(),f!=null&&(c=u(f,471),(c.Bb&1)==0&&(t=Fo(c),!t.c&&(t.c=new U3),it(t.c,u(n.hj(),29))));break}case 3:{f=n.gj(),f!=null&&(c=u(f,471),(c.Bb&1)==0&&(t=Fo(c),!t.c&&(t.c=new U3),it(t.c,u(n.hj(),29))));break}case 5:{if(f=n.gj(),f!=null)for(o=u(f,18).Jc();o.Ob();)c=u(o.Pb(),471),(c.Bb&1)==0&&(t=Fo(c),!t.c&&(t.c=new U3),it(t.c,u(n.hj(),29)));break}case 4:{l=n.ij(),l!=null&&(c=u(l,471),(c.Bb&1)==0&&(t=Fo(c),!t.c&&(t.c=new U3),Bx(t.c,n.hj())));break}case 6:{if(l=n.ij(),l!=null)for(o=u(l,18).Jc();o.Ob();)c=u(o.Pb(),471),(c.Bb&1)==0&&(t=Fo(c),!t.c&&(t.c=new U3),Bx(t.c,n.hj()));break}}this.ol(r)}},s.ol=function(n){Aze(this,n)},s.b=63,w(kn,"ESuperAdapter",1145),b(1146,1145,Lse,Fje),s.ol=function(n){Vw(this,n)},w(kn,"EClassImpl/10",1146),b(1135,699,Nc),s.Ci=function(n,t){return DR(this,n,t)},s.Di=function(n){return cJe(this,n)},s.Ei=function(n,t){X7(this,n,t)},s.Fi=function(n){m7(this,n)},s.Yi=function(n){return VZ(this,n)},s.Vi=function(n,t){return XF(this,n,t)},s.Uk=function(n,t){throw x(new ht)},s.Gi=function(){return new hm(this)},s.Hi=function(){return new qk(this)},s.Ii=function(n){return D7(this,n)},s.Vk=function(n,t){throw x(new ht)},s.Dk=function(n){return this},s.Oj=function(){return this.i!=0},s.Wb=function(n){throw x(new ht)},s.Ek=function(){throw x(new ht)},w(wi,"EcoreEList/UnmodifiableEList",1135),b(333,1135,Nc,g2),s.Wi=function(){return!1},w(wi,"EcoreEList/UnmodifiableEList/FastCompare",333),b(1138,333,Nc,$Be),s.bd=function(n){var t,i,r;if(F(n,179)&&(t=u(n,179),i=t.Jj(),i!=-1)){for(r=this.i;i<r;++i)if(K(this.g[i])===K(n))return i}return-1},w(kn,"EClassImpl/1EAllStructuralFeaturesList",1138),b(1132,492,ah,z5e),s.$i=function(n){return W(hc,tYe,87,n,0,1)},s.Wi=function(){return!1},w(kn,"EClassImpl/1EGenericSuperTypeEList",1132),b(625,492,ah,kD),s.$i=function(n){return W(ho,up,179,n,0,1)},s.Wi=function(){return!1},w(kn,"EClassImpl/1EStructuralFeatureUniqueEList",625),b(743,492,ah,cK),s.$i=function(n){return W(Xg,up,19,n,0,1)},s.Wi=function(){return!1},w(kn,"EClassImpl/1ReferenceList",743),b(1133,492,ah,Bje),s.Ki=function(n,t){tmn(this,u(t,38))},s.$i=function(n){return W(Ug,up,38,n,0,1)},s.Wi=function(){return!1},w(kn,"EClassImpl/2",1133),b(1134,492,ah,U5e),s.$i=function(n){return W(Ug,up,38,n,0,1)},s.Wi=function(){return!1},w(kn,"EClassImpl/3",1134),b(1136,333,Nc,YSe),s.Ec=function(n){return E5n(this,u(n,38))},s.Fi=function(n){i0n(this,u(n,38))},w(kn,"EClassImpl/4",1136),b(1137,333,Nc,ZSe),s.Ec=function(n){return A5n(this,u(n,19))},s.Fi=function(n){r0n(this,u(n,19))},w(kn,"EClassImpl/5",1137),b(1139,492,ah,X5e),s.$i=function(n){return W(bf,Bse,62,n,0,1)},s.Wi=function(){return!1},w(kn,"EClassImpl/6",1139),b(1140,492,ah,K5e),s.$i=function(n){return W(Xg,up,19,n,0,1)},s.Wi=function(){return!1},w(kn,"EClassImpl/7",1140),b(2060,2059,{3:1,4:1,20:1,31:1,56:1,18:1,16:1,71:1,61:1,72:1}),s.Ci=function(n,t){return Fre(this,n,t)},s.Di=function(n){return Fre(this,this.Cj(),n)},s.Ei=function(n,t){nqe(this,n,t)},s.Fi=function(n){qHe(this,n)},s.Uk=function(n,t){return xjn(this,n,t)},s.Vk=function(n,t){return tjn(this,n,t)},s.Vi=function(n,t){return hUe(this,n,t)},s.Yi=function(n){return this.vj(n)},s.Gi=function(){return new hm(this)},s.nj=function(){return this.qj()},s.Hi=function(){return new qk(this)},s.Ii=function(n){return D7(this,n)},w(wi,"DelegatingNotifyingInternalEListImpl",2060),b(744,2060,Rse),s.Ji=function(){var n;return n=un(eo(this.b),this.Jj()).Fk(),F(n,159)&&!F(n,459)&&(n.ik().i&1)==0},s.Gc=function(n){var t,i,r,c,o,f,l,h;if(this.ml()){if(h=this.Cj(),h>4)if(this.dk(n)){if(this.$k()){if(r=u(n,52),i=r.Bh(),l=i==this.b&&(this.kl()?r.vh(r.Ch(),u(un(eo(this.b),this.Jj()).Fk(),29).ik())==tc(u(un(eo(this.b),this.Jj()),19)).n:-1-r.Ch()==this.Jj()),this.ll()&&!l&&!i&&r.Gh()){for(c=0;c<h;++c)if(t=R$(this,this.vj(c)),K(t)===K(n))return!0}return l}else if(this.kl()&&!this.jl()){if(o=u(n,57).Jh(tc(u(un(eo(this.b),this.Jj()),19))),K(o)===K(this.b))return!0;if(o==null||!u(o,57).Sh())return!1}}else return!1;if(f=this.sj(n),this.ll()&&!f){for(c=0;c<h;++c)if(r=R$(this,this.vj(c)),K(r)===K(n))return!0}return f}else return this.sj(n)},s.Gj=function(n,t,i,r,c){return new ca(this.b,n,this.Jj(),t,i,r,c)},s.Hj=function(n){Gt(this.b,n)},s.Dk=function(n){return this},s.Ij=function(){return un(eo(this.b),this.Jj())},s.Jj=function(){return vi(eo(this.b),un(eo(this.b),this.Jj()))},s.hj=function(){return this.b},s.il=function(){return!!un(eo(this.b),this.Jj()).Fk().ik()},s.Kj=function(){var n,t;return t=un(eo(this.b),this.Jj()),F(t,103)?(n=u(t,19),(n.Bb&cu)!=0||!!tc(u(t,19))):!1},s.jl=function(){var n,t,i,r;return t=un(eo(this.b),this.Jj()),F(t,103)?(n=u(t,19),i=tc(n),!!i&&(r=i.t,r>1||r==-1)):!1},s.kl=function(){var n,t,i;return t=un(eo(this.b),this.Jj()),F(t,103)?(n=u(t,19),i=tc(n),!!i):!1},s.ll=function(){var n,t;return t=un(eo(this.b),this.Jj()),F(t,103)?(n=u(t,19),(n.Bb&Vr)!=0):!1},s.bd=function(n){var t,i,r,c;if(r=this.xj(n),r>=0)return r;if(this.ml()){for(i=0,c=this.Cj();i<c;++i)if(t=R$(this,this.vj(i)),K(t)===K(n))return i}return-1},s.Lj=function(n,t){var i;return i=u(n,52),this.kl()?this.il()?i.Oh(this.b,tc(u(un(eo(this.b),this.Jj()),19)).n,u(un(eo(this.b),this.Jj()).Fk(),29).ik(),t):i.Oh(this.b,vi(i.Ah(),tc(u(un(eo(this.b),this.Jj()),19))),null,t):i.Oh(this.b,-1-this.Jj(),null,t)},s.Mj=function(n,t){var i;return i=u(n,52),this.kl()?this.il()?i.Qh(this.b,tc(u(un(eo(this.b),this.Jj()),19)).n,u(un(eo(this.b),this.Jj()).Fk(),29).ik(),t):i.Qh(this.b,vi(i.Ah(),tc(u(un(eo(this.b),this.Jj()),19))),null,t):i.Qh(this.b,-1-this.Jj(),null,t)},s.$k=function(){var n,t;return t=un(eo(this.b),this.Jj()),F(t,103)?(n=u(t,19),(n.Bb&cu)!=0):!1},s.ml=function(){return F(un(eo(this.b),this.Jj()).Fk(),88)},s.dk=function(n){return un(eo(this.b),this.Jj()).Fk().dk(n)},s.Nj=function(){return Ko(this.b)},s.Oj=function(){return!this.yj()},s.Qi=function(){return un(eo(this.b),this.Jj()).Qi()},s.Ui=function(n,t){return xj(this,n,t)},s.Wb=function(n){W9(this),Ii(this,u(n,16))},s.Nc=function(){var n;if(this.ll())for(n=this.Cj()-1;n>=0;--n)xj(this,n,this.vj(n));return this.Dj()},s.Oc=function(n){var t;if(this.ll())for(t=this.Cj()-1;t>=0;--t)xj(this,t,this.vj(t));return this.Ej(n)},s.Ek=function(){W9(this)},s.Xi=function(n,t){return GLe(this,n,t)},w(wi,"DelegatingEcoreEList",744),b(1141,744,Rse,WTe),s.oj=function(n,t){ywn(this,n,u(t,29))},s.pj=function(n){ubn(this,u(n,29))},s.vj=function(n){var t,i;return t=u(B(bu(this.a),n),87),i=t.c,F(i,88)?u(i,29):(nn(),gf)},s.Aj=function(n){var t,i;return t=u(Zw(bu(this.a),n),87),i=t.c,F(i,88)?u(i,29):(nn(),gf)},s.Bj=function(n,t){return Tjn(this,n,u(t,29))},s.Ji=function(){return!1},s.Gj=function(n,t,i,r,c){return null},s.qj=function(){return new Rje(this)},s.rj=function(){nt(bu(this.a))},s.sj=function(n){return PRe(this,n)},s.tj=function(n){var t,i;for(i=n.Jc();i.Ob();)if(t=i.Pb(),!PRe(this,t))return!1;return!0},s.uj=function(n){var t,i,r;if(F(n,16)&&(r=u(n,16),r.gc()==bu(this.a).i)){for(t=r.Jc(),i=new Rn(this);t.Ob();)if(K(t.Pb())!==K(Gn(i)))return!1;return!0}return!1},s.wj=function(){var n,t,i,r,c;for(i=1,t=new Rn(bu(this.a));t.e!=t.i.gc();)n=u(Gn(t),87),r=(c=n.c,F(c,88)?u(c,29):(nn(),gf)),i=31*i+(r?W0(r):0);return i},s.xj=function(n){var t,i,r,c;for(r=0,i=new Rn(bu(this.a));i.e!=i.i.gc();){if(t=u(Gn(i),87),K(n)===K((c=t.c,F(c,88)?u(c,29):(nn(),gf))))return r;++r}return-1},s.yj=function(){return bu(this.a).i==0},s.zj=function(){return null},s.Cj=function(){return bu(this.a).i},s.Dj=function(){var n,t,i,r,c,o;for(o=bu(this.a).i,c=W(ir,ln,1,o,5,1),i=0,t=new Rn(bu(this.a));t.e!=t.i.gc();)n=u(Gn(t),87),c[i++]=(r=n.c,F(r,88)?u(r,29):(nn(),gf));return c},s.Ej=function(n){var t,i,r,c,o,f,l;for(l=bu(this.a).i,n.length<l&&(c=N7(Zo(n).c,l),n=c),n.length>l&&Ni(n,l,null),r=0,i=new Rn(bu(this.a));i.e!=i.i.gc();)t=u(Gn(i),87),o=(f=t.c,F(f,88)?u(f,29):(nn(),gf)),Ni(n,r++,o);return n},s.Fj=function(){var n,t,i,r,c;for(c=new Na,c.a+="[",n=bu(this.a),t=0,r=bu(this.a).i;t<r;)ac(c,D6((i=u(B(n,t),87).c,F(i,88)?u(i,29):(nn(),gf)))),++t<r&&(c.a+=Ju);return c.a+="]",c.a},s.Hj=function(n){},s.Jj=function(){return 10},s.il=function(){return!0},s.Kj=function(){return!1},s.jl=function(){return!1},s.kl=function(){return!1},s.ll=function(){return!0},s.$k=function(){return!1},s.ml=function(){return!0},s.dk=function(n){return F(n,88)},s.Oj=function(){return m4n(this.a)},s.Qi=function(){return!0},s.Wi=function(){return!0},w(kn,"EClassImpl/8",1141),b(1142,2027,x4,Rje),s.dd=function(n){return D7(this.a,n)},s.gc=function(){return bu(this.a.a).i},w(kn,"EClassImpl/8/1",1142),b(1143,492,ah,W5e),s.$i=function(n){return W(bl,ln,143,n,0,1)},s.Wi=function(){return!1},w(kn,"EClassImpl/9",1143),b(1130,48,Cce,SEe),w(kn,"EClassImpl/MyHashSet",1130),b(563,360,{109:1,94:1,93:1,143:1,159:1,832:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,161:1,117:1,118:1,681:1},fM),s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return pb(this);case 4:return this.gk();case 5:return this.F;case 6:return t?hs(this):Tv(this);case 7:return!this.A&&(this.A=new wo(Yu,this,7)),this.A;case 8:return gn(),(this.Bb&256)!=0}return Os(this,n-Un(this.fi()),un((r=u(Cn(this,16),29),r||this.fi()),n),t,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!pb(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Tv(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0}return Ps(this,n-Un(this.fi()),un((t=u(Cn(this,16),29),t||this.fi()),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:bx(this,dt(t));return;case 2:WL(this,dt(t));return;case 5:k4(this,dt(t));return;case 7:!this.A&&(this.A=new wo(Yu,this,7)),nt(this.A),!this.A&&(this.A=new wo(Yu,this,7)),Ii(this.A,u(t,18));return;case 8:pT(this,Se(Te(t)));return}Bs(this,n-Un(this.fi()),un((i=u(Cn(this,16),29),i||this.fi()),n),t)},s.fi=function(){return nn(),zfn},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:F(this.Cb,184)&&(u(this.Cb,184).tb=null),Ru(this,null);return;case 2:Kv(this,null),$v(this,this.D);return;case 5:k4(this,null);return;case 7:!this.A&&(this.A=new wo(Yu,this,7)),nt(this.A);return;case 8:pT(this,!0);return}Fs(this,n-Un(this.fi()),un((t=u(Cn(this,16),29),t||this.fi()),n))},s.mi=function(){Ka((yo(),Or),this).ve(),this.Bb|=1},s.mk=function(){var n,t,i;if(!this.c&&(n=bqe(hs(this)),!n.dc()))for(i=n.Jc();i.Ob();)t=dt(i.Pb()),H9(this,t)&&fkn(this);return this.b},s.gk=function(){var n;if(!this.e){n=null;try{n=pb(this)}catch(t){if(t=Fi(t),!F(t,101))throw x(t)}this.d=null,n&&(n.i&1)!=0&&(n==ao?this.d=(gn(),ud):n==bt?this.d=fe(0):n==Qg?this.d=new hk(0):n==jr?this.d=0:n==Yb?this.d=zw(0):n==_p?this.d=Vv(0):n==Ao?this.d=I7(0):this.d=F7(0)),this.e=!0}return this.d},s.lk=function(){return(this.Bb&256)!=0},s.pl=function(n){n&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},s.el=function(n){GFe(this,n),this.pl(n)},s.fl=function(n){this.C=n,this.e=!1},s.Ib=function(){var n;return(this.Db&64)!=0?MT(this):(n=new Ys(MT(this)),n.a+=" (serializable: ",Da(n,(this.Bb&256)!=0),n.a+=")",n.a)},s.c=!1,s.d=null,s.e=!1,w(kn,"EDataTypeImpl",563),b(459,563,{109:1,94:1,93:1,143:1,159:1,832:1,675:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,459:1,161:1,117:1,118:1,681:1},IEe),s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return pb(this);case 4:return ane(this);case 5:return this.F;case 6:return t?hs(this):Tv(this);case 7:return!this.A&&(this.A=new wo(Yu,this,7)),this.A;case 8:return gn(),(this.Bb&256)!=0;case 9:return!this.a&&(this.a=new ue(Ma,this,9,5)),this.a}return Os(this,n-Un((nn(),Md)),un((r=u(Cn(this,16),29),r||Md),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?kR(this,i):this.Cb.Qh(this,-1-c,null,i))),gs(this,n,6,i);case 9:return!this.a&&(this.a=new ue(Ma,this,9,5)),_u(this.a,n,i)}return o=u(un((r=u(Cn(this,16),29),r||(nn(),Md)),t),69),o.uk().xk(this,Uu(this),t-Un((nn(),Md)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Xr(this.Ab,n,i);case 6:return gs(this,null,6,i);case 7:return!this.A&&(this.A=new wo(Yu,this,7)),Xr(this.A,n,i);case 9:return!this.a&&(this.a=new ue(Ma,this,9,5)),Xr(this.a,n,i)}return c=u(un((r=u(Cn(this,16),29),r||(nn(),Md)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),Md)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!pb(this);case 4:return!!ane(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Tv(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return Ps(this,n-Un((nn(),Md)),un((t=u(Cn(this,16),29),t||Md),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:bx(this,dt(t));return;case 2:WL(this,dt(t));return;case 5:k4(this,dt(t));return;case 7:!this.A&&(this.A=new wo(Yu,this,7)),nt(this.A),!this.A&&(this.A=new wo(Yu,this,7)),Ii(this.A,u(t,18));return;case 8:pT(this,Se(Te(t)));return;case 9:!this.a&&(this.a=new ue(Ma,this,9,5)),nt(this.a),!this.a&&(this.a=new ue(Ma,this,9,5)),Ii(this.a,u(t,18));return}Bs(this,n-Un((nn(),Md)),un((i=u(Cn(this,16),29),i||Md),n),t)},s.fi=function(){return nn(),Md},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:F(this.Cb,184)&&(u(this.Cb,184).tb=null),Ru(this,null);return;case 2:Kv(this,null),$v(this,this.D);return;case 5:k4(this,null);return;case 7:!this.A&&(this.A=new wo(Yu,this,7)),nt(this.A);return;case 8:pT(this,!0);return;case 9:!this.a&&(this.a=new ue(Ma,this,9,5)),nt(this.a);return}Fs(this,n-Un((nn(),Md)),un((t=u(Cn(this,16),29),t||Md),n))},s.mi=function(){var n,t;if(this.a)for(n=0,t=this.a.i;n<t;++n)zk(B(this.a,n));Ka((yo(),Or),this).ve(),this.Bb|=1},s.gk=function(){return ane(this)},s.dk=function(n){return n!=null},s.pl=function(n){},w(kn,"EEnumImpl",459),b(568,439,{109:1,94:1,93:1,2004:1,684:1,158:1,197:1,57:1,114:1,52:1,100:1,568:1,161:1,117:1,118:1},Xje),s.ve=function(){return this.zb},s.xh=function(n){return OJe(this,n)},s.Ih=function(n,t,i){var r,c;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return fe(this.d);case 3:return this.b?this.b:this.a;case 4:return c=this.c,c??this.zb;case 5:return this.Db>>16==5?u(this.Cb,675):null}return Os(this,n-Un((nn(),g1)),un((r=u(Cn(this,16),29),r||g1),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 5:return this.Cb&&(i=(c=this.Db>>16,c>=0?OJe(this,i):this.Cb.Qh(this,-1-c,null,i))),gs(this,n,5,i)}return o=u(un((r=u(Cn(this,16),29),r||(nn(),g1)),t),69),o.uk().xk(this,Uu(this),t-Un((nn(),g1)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Xr(this.Ab,n,i);case 5:return gs(this,null,5,i)}return c=u(un((r=u(Cn(this,16),29),r||(nn(),g1)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),g1)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&u(this.Cb,675))}return Ps(this,n-Un((nn(),g1)),un((t=u(Cn(this,16),29),t||g1),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:Ru(this,dt(t));return;case 2:eB(this,u(t,15).a);return;case 3:LHe(this,u(t,2004));return;case 4:tB(this,dt(t));return}Bs(this,n-Un((nn(),g1)),un((i=u(Cn(this,16),29),i||g1),n),t)},s.fi=function(){return nn(),g1},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:Ru(this,null);return;case 2:eB(this,0);return;case 3:LHe(this,null);return;case 4:tB(this,null);return}Fs(this,n-Un((nn(),g1)),un((t=u(Cn(this,16),29),t||g1),n))},s.Ib=function(){var n;return n=this.c,n??this.zb},s.b=null,s.c=null,s.d=0,w(kn,"EEnumLiteralImpl",568);var _Fn=yi(kn,"EFactoryImpl/InternalEDateTimeFormat");b(485,1,{2079:1},bk),w(kn,"EFactoryImpl/1ClientInternalEDateTimeFormat",485),b(248,118,{109:1,94:1,93:1,87:1,57:1,114:1,52:1,100:1,248:1,117:1,118:1},G0),s.zh=function(n,t,i){var r;return i=gs(this,n,t,i),this.e&&F(n,179)&&(r=uS(this,this.e),r!=this.c&&(i=j4(this,r,i))),i},s.Ih=function(n,t,i){var r;switch(n){case 0:return this.f;case 1:return!this.d&&(this.d=new Wi(hc,this,1)),this.d;case 2:return t?mS(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?dR(this):this.a}return Os(this,n-Un((nn(),Wb)),un((r=u(Cn(this,16),29),r||Wb),n),t,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return mRe(this,null,i);case 1:return!this.d&&(this.d=new Wi(hc,this,1)),Xr(this.d,n,i);case 3:return pRe(this,null,i)}return c=u(un((r=u(Cn(this,16),29),r||(nn(),Wb)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),Wb)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return Ps(this,n-Un((nn(),Wb)),un((t=u(Cn(this,16),29),t||Wb),n))},s.$h=function(n,t){var i;switch(n){case 0:QJe(this,u(t,87));return;case 1:!this.d&&(this.d=new Wi(hc,this,1)),nt(this.d),!this.d&&(this.d=new Wi(hc,this,1)),Ii(this.d,u(t,18));return;case 3:_te(this,u(t,87));return;case 4:cie(this,u(t,835));return;case 5:Lv(this,u(t,143));return}Bs(this,n-Un((nn(),Wb)),un((i=u(Cn(this,16),29),i||Wb),n),t)},s.fi=function(){return nn(),Wb},s.hi=function(n){var t;switch(n){case 0:QJe(this,null);return;case 1:!this.d&&(this.d=new Wi(hc,this,1)),nt(this.d);return;case 3:_te(this,null);return;case 4:cie(this,null);return;case 5:Lv(this,null);return}Fs(this,n-Un((nn(),Wb)),un((t=u(Cn(this,16),29),t||Wb),n))},s.Ib=function(){var n;return n=new us(Pf(this)),n.a+=" (expression: ",k_(this,n),n.a+=")",n.a};var Owe;w(kn,"EGenericTypeImpl",248),b(2032,2027,AI),s.Ei=function(n,t){XTe(this,n,t)},s.Uk=function(n,t){return XTe(this,this.gc(),n),t},s.Yi=function(n){return wu(this.nj(),n)},s.Gi=function(){return this.Hi()},s.nj=function(){return new qje(this)},s.Hi=function(){return this.Ii(0)},s.Ii=function(n){return this.nj().dd(n)},s.Vk=function(n,t){return Hw(this,n,!0),t},s.Ri=function(n,t){var i,r;return r=AR(this,t),i=this.dd(n),i.Rb(r),r},s.Si=function(n,t){var i;Hw(this,t,!0),i=this.dd(n),i.Rb(t)},w(wi,"AbstractSequentialInternalEList",2032),b(482,2032,AI,Hk),s.Yi=function(n){return wu(this.nj(),n)},s.Gi=function(){return this.b==null?(Fa(),Fa(),EA):this.ql()},s.nj=function(){return new dxe(this.a,this.b)},s.Hi=function(){return this.b==null?(Fa(),Fa(),EA):this.ql()},s.Ii=function(n){var t,i;if(this.b==null){if(n<0||n>1)throw x(new $u(yy+n+", size=0"));return Fa(),Fa(),EA}for(i=this.ql(),t=0;t<n;++t)uT(i);return i},s.dc=function(){var n,t,i,r,c,o;if(this.b!=null){for(i=0;i<this.b.length;++i)if(n=this.b[i],!this.tl()||this.a.Uh(n)){if(o=this.a.Kh(n,!1),nc(),u(n,69).vk()){for(t=u(o,163),r=0,c=t.gc();r<c;++r)if(EPe(t.Rl(r))&&t.Sl(r)!=null)return!1}else if(n.Hk()){if(!u(o,18).dc())return!1}else if(o!=null)return!1}}return!0},s.Jc=function(){return See(this)},s.dd=function(n){var t,i;if(this.b==null){if(n!=0)throw x(new $u(yy+n+", size=0"));return Fa(),Fa(),EA}for(i=this.sl()?this.rl():this.ql(),t=0;t<n;++t)uT(i);return i},s.Ri=function(n,t){throw x(new ht)},s.Si=function(n,t){throw x(new ht)},s.ql=function(){return new pC(this.a,this.b)},s.rl=function(){return new YV(this.a,this.b)},s.sl=function(){return!0},s.gc=function(){var n,t,i,r,c,o,f;if(c=0,this.b!=null){for(i=0;i<this.b.length;++i)if(n=this.b[i],!this.tl()||this.a.Uh(n))if(f=this.a.Kh(n,!1),nc(),u(n,69).vk())for(t=u(f,163),r=0,o=t.gc();r<o;++r)EPe(t.Rl(r))&&t.Sl(r)!=null&&++c;else n.Hk()?c+=u(f,18).gc():f!=null&&++c}return c},s.tl=function(){return!0};var wX;w(wi,"EContentsEList",482),b(1147,482,AI,NTe),s.ql=function(){return new DTe(this.a,this.b)},s.rl=function(){return new LTe(this.a,this.b)},s.tl=function(){return!1},w(kn,"ENamedElementImpl/1",1147),b(287,1,MI,pC),s.Nb=function(n){Ir(this,n)},s.Rb=function(n){throw x(new ht)},s.ul=function(n){if(this.g!=0||this.e)throw x(new gc("Iterator already in use or already filtered"));this.e=n},s.Ob=function(){var n,t,i,r,c,o;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(!this.k||(this.p?!KGe(this,this.p):!FHe(this))){for(;this.d<this.c.length;)if(t=this.c[this.d++],(!this.e||t.nk()!=B5||t.Jj()!=0)&&(!this.tl()||this.b.Uh(t))){if(o=this.b.Kh(t,this.sl()),this.f=(nc(),u(t,69).vk()),this.f||t.Hk()){if(this.sl()?(r=u(o,16),this.k=r):(r=u(o,72),this.k=this.j=r),F(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Hi():this.k.cd(),this.p?KGe(this,this.p):FHe(this))return c=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(n=u(c,75),n.Jk(),i=n.kd(),this.i=i):(i=c,this.i=i),this.g=3,!0}else if(o!=null)return this.k=null,this.p=null,i=o,this.i=i,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}else return c=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(n=u(c,75),n.Jk(),i=n.kd(),this.i=i):(i=c,this.i=i),this.g=3,!0}},s.Sb=function(){var n,t,i,r,c,o;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(!this.k||(this.p?!WGe(this,this.p):!cHe(this))){for(;this.d>0;)if(t=this.c[--this.d],(!this.e||t.nk()!=B5||t.Jj()!=0)&&(!this.tl()||this.b.Uh(t))){if(o=this.b.Kh(t,this.sl()),this.f=(nc(),u(t,69).vk()),this.f||t.Hk()){if(this.sl()?(r=u(o,16),this.k=r):(r=u(o,72),this.k=this.j=r),F(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ii(this.k.gc()):this.k.dd(this.k.gc()),this.p?WGe(this,this.p):cHe(this))return c=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(n=u(c,75),n.Jk(),i=n.kd(),this.i=i):(i=c,this.i=i),this.g=-3,!0}else if(o!=null)return this.k=null,this.p=null,i=o,this.i=i,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(n=u(c,75),n.Jk(),i=n.kd(),this.i=i):(i=c,this.i=i),this.g=-3,!0}},s.Pb=function(){return uT(this)},s.Tb=function(){return this.a},s.Ub=function(){var n;if(this.g<-1||this.Sb())return--this.a,this.g=0,n=this.i,this.Sb(),n;throw x(new Dc)},s.Vb=function(){return this.a-1},s.Qb=function(){throw x(new ht)},s.sl=function(){return!1},s.Wb=function(n){throw x(new ht)},s.tl=function(){return!0},s.a=0,s.d=0,s.f=!1,s.g=0,s.n=0,s.o=0;var EA;w(wi,"EContentsEList/FeatureIteratorImpl",287),b(700,287,MI,YV),s.sl=function(){return!0},w(wi,"EContentsEList/ResolvingFeatureIteratorImpl",700),b(1148,700,MI,LTe),s.tl=function(){return!1},w(kn,"ENamedElementImpl/1/1",1148),b(1149,287,MI,DTe),s.tl=function(){return!1},w(kn,"ENamedElementImpl/1/2",1149),b(39,151,uE,Nw,xF,hr,_F,ca,Mf,lee,yNe,hee,kNe,SZ,jNe,bee,ENe,TZ,ANe,aee,MNe,G6,j7,uF,dee,CNe,xZ,vNe),s.Ij=function(){return XZ(this)},s.Pj=function(){var n;return n=XZ(this),n?n.gk():null},s.fj=function(n){return this.b==-1&&this.a&&(this.b=this.c.Eh(this.a.Jj(),this.a.nk())),this.c.vh(this.b,n)},s.hj=function(){return this.c},s.Qj=function(){var n;return n=XZ(this),n?n.rk():!1},s.b=-1,w(kn,"ENotificationImpl",39),b(403,293,{109:1,94:1,93:1,158:1,197:1,57:1,62:1,114:1,470:1,52:1,100:1,161:1,403:1,293:1,117:1,118:1},HD),s.xh=function(n){return DJe(this,n)},s.Ih=function(n,t,i){var r,c,o;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return gn(),(this.Bb&256)!=0;case 3:return gn(),(this.Bb&512)!=0;case 4:return fe(this.s);case 5:return fe(this.t);case 6:return gn(),o=this.t,o>1||o==-1;case 7:return gn(),c=this.s,c>=1;case 8:return t?rf(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,29):null;case 11:return!this.d&&(this.d=new wo(Yu,this,11)),this.d;case 12:return!this.c&&(this.c=new ue(Kb,this,12,10)),this.c;case 13:return!this.a&&(this.a=new Kk(this,this)),this.a;case 14:return Ro(this)}return Os(this,n-Un((nn(),p1)),un((r=u(Cn(this,16),29),r||p1),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?DJe(this,i):this.Cb.Qh(this,-1-c,null,i))),gs(this,n,10,i);case 12:return!this.c&&(this.c=new ue(Kb,this,12,10)),_u(this.c,n,i)}return o=u(un((r=u(Cn(this,16),29),r||(nn(),p1)),t),69),o.uk().xk(this,Uu(this),t-Un((nn(),p1)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Xr(this.Ab,n,i);case 9:return U$(this,i);case 10:return gs(this,null,10,i);case 11:return!this.d&&(this.d=new wo(Yu,this,11)),Xr(this.d,n,i);case 12:return!this.c&&(this.c=new ue(Kb,this,12,10)),Xr(this.c,n,i);case 14:return Xr(Ro(this),n,i)}return c=u(un((r=u(Cn(this,16),29),r||(nn(),p1)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),p1)),n,i)},s.Th=function(n){var t,i,r;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Z0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Z0(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&Ro(this.a.a).i!=0&&!(this.b&&hR(this.b));case 14:return!!this.b&&hR(this.b)}return Ps(this,n-Un((nn(),p1)),un((t=u(Cn(this,16),29),t||p1),n))},s.$h=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:Ru(this,dt(t));return;case 2:Wa(this,Se(Te(t)));return;case 3:Va(this,Se(Te(t)));return;case 4:za(this,u(t,15).a);return;case 5:Fw(this,u(t,15).a);return;case 8:n0(this,u(t,143));return;case 9:r=Cl(this,u(t,87),null),r&&r.mj();return;case 11:!this.d&&(this.d=new wo(Yu,this,11)),nt(this.d),!this.d&&(this.d=new wo(Yu,this,11)),Ii(this.d,u(t,18));return;case 12:!this.c&&(this.c=new ue(Kb,this,12,10)),nt(this.c),!this.c&&(this.c=new ue(Kb,this,12,10)),Ii(this.c,u(t,18));return;case 13:!this.a&&(this.a=new Kk(this,this)),W9(this.a),!this.a&&(this.a=new Kk(this,this)),Ii(this.a,u(t,18));return;case 14:nt(Ro(this)),Ii(Ro(this),u(t,18));return}Bs(this,n-Un((nn(),p1)),un((i=u(Cn(this,16),29),i||p1),n),t)},s.fi=function(){return nn(),p1},s.hi=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:Ru(this,null);return;case 2:Wa(this,!0);return;case 3:Va(this,!0);return;case 4:za(this,0);return;case 5:Fw(this,1);return;case 8:n0(this,null);return;case 9:i=Cl(this,null,null),i&&i.mj();return;case 11:!this.d&&(this.d=new wo(Yu,this,11)),nt(this.d);return;case 12:!this.c&&(this.c=new ue(Kb,this,12,10)),nt(this.c);return;case 13:this.a&&W9(this.a);return;case 14:this.b&&nt(this.b);return}Fs(this,n-Un((nn(),p1)),un((t=u(Cn(this,16),29),t||p1),n))},s.mi=function(){var n,t;if(this.c)for(n=0,t=this.c.i;n<t;++n)zk(B(this.c,n));rf(this),this.Bb|=1},w(kn,"EOperationImpl",403),b(500,744,Rse,Kk),s.oj=function(n,t){vwn(this,n,u(t,143))},s.pj=function(n){obn(this,u(n,143))},s.vj=function(n){var t,i;return t=u(B(Ro(this.a),n),87),i=t.c,i||(nn(),Hl)},s.Aj=function(n){var t,i;return t=u(Zw(Ro(this.a),n),87),i=t.c,i||(nn(),Hl)},s.Bj=function(n,t){return v7n(this,n,u(t,143))},s.Ji=function(){return!1},s.Gj=function(n,t,i,r,c){return null},s.qj=function(){return new _je(this)},s.rj=function(){nt(Ro(this.a))},s.sj=function(n){return LRe(this,n)},s.tj=function(n){var t,i;for(i=n.Jc();i.Ob();)if(t=i.Pb(),!LRe(this,t))return!1;return!0},s.uj=function(n){var t,i,r;if(F(n,16)&&(r=u(n,16),r.gc()==Ro(this.a).i)){for(t=r.Jc(),i=new Rn(this);t.Ob();)if(K(t.Pb())!==K(Gn(i)))return!1;return!0}return!1},s.wj=function(){var n,t,i,r,c;for(i=1,t=new Rn(Ro(this.a));t.e!=t.i.gc();)n=u(Gn(t),87),r=(c=n.c,c||(nn(),Hl)),i=31*i+(r?si(r):0);return i},s.xj=function(n){var t,i,r,c;for(r=0,i=new Rn(Ro(this.a));i.e!=i.i.gc();){if(t=u(Gn(i),87),K(n)===K((c=t.c,c||(nn(),Hl))))return r;++r}return-1},s.yj=function(){return Ro(this.a).i==0},s.zj=function(){return null},s.Cj=function(){return Ro(this.a).i},s.Dj=function(){var n,t,i,r,c,o;for(o=Ro(this.a).i,c=W(ir,ln,1,o,5,1),i=0,t=new Rn(Ro(this.a));t.e!=t.i.gc();)n=u(Gn(t),87),c[i++]=(r=n.c,r||(nn(),Hl));return c},s.Ej=function(n){var t,i,r,c,o,f,l;for(l=Ro(this.a).i,n.length<l&&(c=N7(Zo(n).c,l),n=c),n.length>l&&Ni(n,l,null),r=0,i=new Rn(Ro(this.a));i.e!=i.i.gc();)t=u(Gn(i),87),o=(f=t.c,f||(nn(),Hl)),Ni(n,r++,o);return n},s.Fj=function(){var n,t,i,r,c;for(c=new Na,c.a+="[",n=Ro(this.a),t=0,r=Ro(this.a).i;t<r;)ac(c,D6((i=u(B(n,t),87).c,i||(nn(),Hl)))),++t<r&&(c.a+=Ju);return c.a+="]",c.a},s.Hj=function(n){},s.Jj=function(){return 13},s.il=function(){return!0},s.Kj=function(){return!1},s.jl=function(){return!1},s.kl=function(){return!1},s.ll=function(){return!0},s.$k=function(){return!1},s.ml=function(){return!0},s.dk=function(n){return F(n,143)},s.Oj=function(){return k4n(this.a)},s.Qi=function(){return!0},s.Wi=function(){return!0},w(kn,"EOperationImpl/1",500),b(1331,2027,x4,_je),s.dd=function(n){return D7(this.a,n)},s.gc=function(){return Ro(this.a.a).i},w(kn,"EOperationImpl/1/1",1331),b(1332,544,Nc,NIe),s.Ri=function(n,t){var i,r;return i=u(k9(this,n,t),87),Ko(this.e)&&Q3(this,new j7(this.a,7,(nn(),Kfn),fe(t),(r=i.c,r||Hl),n)),i},s.Sj=function(n,t){return U8n(this,u(n,87),t)},s.Tj=function(n,t){return z8n(this,u(n,87),t)},s.Uj=function(n,t,i){return N7n(this,u(n,87),u(t,87),i)},s.Gj=function(n,t,i,r,c){switch(n){case 3:return V6(this,n,t,i,r,this.i>1);case 5:return V6(this,n,t,i,r,this.i-u(i,16).gc()>0);default:return new ca(this.e,n,this.c,t,i,r,!0)}},s.Rj=function(){return!0},s.Oj=function(){return hR(this)},s.Ek=function(){nt(this)},w(kn,"EOperationImpl/2",1332),b(493,1,{2002:1,493:1},UCe),w(kn,"EPackageImpl/1",493),b(14,81,Nc,ue),s.gl=function(){return this.d},s.hl=function(){return this.b},s.kl=function(){return!0},s.b=0,w(wi,"EObjectContainmentWithInverseEList",14),b(361,14,Nc,am),s.ll=function(){return!0},s.Ui=function(n,t){return Km(this,n,u(t,57))},w(wi,"EObjectContainmentWithInverseEList/Resolving",361),b(313,361,Nc,Aw),s.Li=function(){this.a.tb=null},w(kn,"EPackageImpl/2",313),b(1244,1,{},u1n),w(kn,"EPackageImpl/3",1244),b(721,44,Y2,nW),s._b=function(n){return pr(n)?sF(this,n):!!pc(this.f,n)},w(kn,"EPackageRegistryImpl",721),b(504,293,{109:1,94:1,93:1,158:1,197:1,57:1,2081:1,114:1,470:1,52:1,100:1,161:1,504:1,293:1,117:1,118:1},qD),s.xh=function(n){return LJe(this,n)},s.Ih=function(n,t,i){var r,c,o;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return gn(),(this.Bb&256)!=0;case 3:return gn(),(this.Bb&512)!=0;case 4:return fe(this.s);case 5:return fe(this.t);case 6:return gn(),o=this.t,o>1||o==-1;case 7:return gn(),c=this.s,c>=1;case 8:return t?rf(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,62):null}return Os(this,n-Un((nn(),Wg)),un((r=u(Cn(this,16),29),r||Wg),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?LJe(this,i):this.Cb.Qh(this,-1-c,null,i))),gs(this,n,10,i)}return o=u(un((r=u(Cn(this,16),29),r||(nn(),Wg)),t),69),o.uk().xk(this,Uu(this),t-Un((nn(),Wg)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Xr(this.Ab,n,i);case 9:return U$(this,i);case 10:return gs(this,null,10,i)}return c=u(un((r=u(Cn(this,16),29),r||(nn(),Wg)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),Wg)),n,i)},s.Th=function(n){var t,i,r;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Z0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Z0(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,62))}return Ps(this,n-Un((nn(),Wg)),un((t=u(Cn(this,16),29),t||Wg),n))},s.fi=function(){return nn(),Wg},w(kn,"EParameterImpl",504),b(103,451,{109:1,94:1,93:1,158:1,197:1,57:1,19:1,179:1,69:1,114:1,470:1,52:1,100:1,161:1,103:1,451:1,293:1,117:1,118:1,682:1},tQ),s.Ih=function(n,t,i){var r,c,o,f;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return gn(),(this.Bb&256)!=0;case 3:return gn(),(this.Bb&512)!=0;case 4:return fe(this.s);case 5:return fe(this.t);case 6:return gn(),f=this.t,f>1||f==-1;case 7:return gn(),c=this.s,c>=1;case 8:return t?rf(this):this.r;case 9:return this.q;case 10:return gn(),(this.Bb&Df)!=0;case 11:return gn(),(this.Bb&i1)!=0;case 12:return gn(),(this.Bb&cg)!=0;case 13:return this.j;case 14:return b4(this);case 15:return gn(),(this.Bb&jo)!=0;case 16:return gn(),(this.Bb&ch)!=0;case 17:return Sw(this);case 18:return gn(),(this.Bb&cu)!=0;case 19:return gn(),o=tc(this),!!(o&&(o.Bb&cu)!=0);case 20:return gn(),(this.Bb&Vr)!=0;case 21:return t?tc(this):this.b;case 22:return t?Kee(this):JDe(this);case 23:return!this.a&&(this.a=new j2(Ug,this,23)),this.a}return Os(this,n-Un((nn(),$p)),un((r=u(Cn(this,16),29),r||$p),n),t,i)},s.Th=function(n){var t,i,r,c;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return c=this.t,c>1||c==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Z0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Z0(this.q).i==0);case 10:return(this.Bb&Df)==0;case 11:return(this.Bb&i1)!=0;case 12:return(this.Bb&cg)!=0;case 13:return this.j!=null;case 14:return b4(this)!=null;case 15:return(this.Bb&jo)!=0;case 16:return(this.Bb&ch)!=0;case 17:return!!Sw(this);case 18:return(this.Bb&cu)!=0;case 19:return r=tc(this),!!r&&(r.Bb&cu)!=0;case 20:return(this.Bb&Vr)==0;case 21:return!!this.b;case 22:return!!JDe(this);case 23:return!!this.a&&this.a.i!=0}return Ps(this,n-Un((nn(),$p)),un((t=u(Cn(this,16),29),t||$p),n))},s.$h=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:mF(this,dt(t));return;case 2:Wa(this,Se(Te(t)));return;case 3:Va(this,Se(Te(t)));return;case 4:za(this,u(t,15).a);return;case 5:Fw(this,u(t,15).a);return;case 8:n0(this,u(t,143));return;case 9:r=Cl(this,u(t,87),null),r&&r.mj();return;case 10:Yv(this,Se(Te(t)));return;case 11:e4(this,Se(Te(t)));return;case 12:Zv(this,Se(Te(t)));return;case 13:wV(this,dt(t));return;case 15:Qv(this,Se(Te(t)));return;case 16:n4(this,Se(Te(t)));return;case 18:vvn(this,Se(Te(t)));return;case 20:Dne(this,Se(Te(t)));return;case 21:Iee(this,u(t,19));return;case 23:!this.a&&(this.a=new j2(Ug,this,23)),nt(this.a),!this.a&&(this.a=new j2(Ug,this,23)),Ii(this.a,u(t,18));return}Bs(this,n-Un((nn(),$p)),un((i=u(Cn(this,16),29),i||$p),n),t)},s.fi=function(){return nn(),$p},s.hi=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:F(this.Cb,88)&&Vw(Fo(u(this.Cb,88)),4),Ru(this,null);return;case 2:Wa(this,!0);return;case 3:Va(this,!0);return;case 4:za(this,0);return;case 5:Fw(this,1);return;case 8:n0(this,null);return;case 9:i=Cl(this,null,null),i&&i.mj();return;case 10:Yv(this,!0);return;case 11:e4(this,!1);return;case 12:Zv(this,!1);return;case 13:this.i=null,Zx(this,null);return;case 15:Qv(this,!1);return;case 16:n4(this,!1);return;case 18:Nne(this,!1),F(this.Cb,88)&&Vw(Fo(u(this.Cb,88)),2);return;case 20:Dne(this,!0);return;case 21:Iee(this,null);return;case 23:!this.a&&(this.a=new j2(Ug,this,23)),nt(this.a);return}Fs(this,n-Un((nn(),$p)),un((t=u(Cn(this,16),29),t||$p),n))},s.mi=function(){Kee(this),Mv(vc((yo(),Or),this)),rf(this),this.Bb|=1},s.sk=function(){return tc(this)},s.Zk=function(){var n;return n=tc(this),!!n&&(n.Bb&cu)!=0},s.$k=function(){return(this.Bb&cu)!=0},s._k=function(){return(this.Bb&Vr)!=0},s.Wk=function(n,t){return this.c=null,jne(this,n,t)},s.Ib=function(){var n;return(this.Db&64)!=0?gS(this):(n=new Ys(gS(this)),n.a+=" (containment: ",Da(n,(this.Bb&cu)!=0),n.a+=", resolveProxies: ",Da(n,(this.Bb&Vr)!=0),n.a+=")",n.a)},w(kn,"EReferenceImpl",103),b(550,118,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1,550:1,117:1,118:1},V5e),s.Fb=function(n){return this===n},s.jd=function(){return this.b},s.kd=function(){return this.c},s.Hb=function(){return W0(this)},s.Ai=function(n){Fpn(this,dt(n))},s.ld=function(n){return Mpn(this,dt(n))},s.Ih=function(n,t,i){var r;switch(n){case 0:return this.b;case 1:return this.c}return Os(this,n-Un((nn(),Zr)),un((r=u(Cn(this,16),29),r||Zr),n),t,i)},s.Th=function(n){var t;switch(n){case 0:return this.b!=null;case 1:return this.c!=null}return Ps(this,n-Un((nn(),Zr)),un((t=u(Cn(this,16),29),t||Zr),n))},s.$h=function(n,t){var i;switch(n){case 0:Bpn(this,dt(t));return;case 1:Eee(this,dt(t));return}Bs(this,n-Un((nn(),Zr)),un((i=u(Cn(this,16),29),i||Zr),n),t)},s.fi=function(){return nn(),Zr},s.hi=function(n){var t;switch(n){case 0:xee(this,null);return;case 1:Eee(this,null);return}Fs(this,n-Un((nn(),Zr)),un((t=u(Cn(this,16),29),t||Zr),n))},s.yi=function(){var n;return this.a==-1&&(n=this.b,this.a=n==null?0:Ua(n)),this.a},s.zi=function(n){this.a=n},s.Ib=function(){var n;return(this.Db&64)!=0?Pf(this):(n=new Ys(Pf(this)),n.a+=" (key: ",ac(n,this.b),n.a+=", value: ",ac(n,this.c),n.a+=")",n.a)},s.a=-1,s.b=null,s.c=null;var nu=w(kn,"EStringToStringMapEntryImpl",550),eln=yi(wi,"FeatureMap/Entry/Internal");b(562,1,CI),s.vl=function(n){return this.wl(u(n,52))},s.wl=function(n){return this.vl(n)},s.Fb=function(n){var t,i;return this===n?!0:F(n,75)?(t=u(n,75),t.Jk()==this.c?(i=this.kd(),i==null?t.kd()==null:qt(i,t.kd())):!1):!1},s.Jk=function(){return this.c},s.Hb=function(){var n;return n=this.kd(),si(this.c)^(n==null?0:si(n))},s.Ib=function(){var n,t;return n=this.c,t=hs(n.ok()).vi(),n.ve(),(t!=null&&t.length!=0?t+":"+n.ve():n.ve())+"="+this.kd()},w(kn,"EStructuralFeatureImpl/BasicFeatureMapEntry",562),b(778,562,CI,wQ),s.wl=function(n){return new wQ(this.c,n)},s.kd=function(){return this.a},s.xl=function(n,t,i){return syn(this,n,this.a,t,i)},s.yl=function(n,t,i){return fyn(this,n,this.a,t,i)},w(kn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",778),b(1305,1,{},XCe),s.wk=function(n,t,i,r,c){var o;return o=u(Pv(n,this.b),219),o.Wl(this.a).Dk(r)},s.xk=function(n,t,i,r,c){var o;return o=u(Pv(n,this.b),219),o.Nl(this.a,r,c)},s.yk=function(n,t,i,r,c){var o;return o=u(Pv(n,this.b),219),o.Ol(this.a,r,c)},s.zk=function(n,t,i){var r;return r=u(Pv(n,this.b),219),r.Wl(this.a).Oj()},s.Ak=function(n,t,i,r){var c;c=u(Pv(n,this.b),219),c.Wl(this.a).Wb(r)},s.Bk=function(n,t,i){return u(Pv(n,this.b),219).Wl(this.a)},s.Ck=function(n,t,i){var r;r=u(Pv(n,this.b),219),r.Wl(this.a).Ek()},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1305),b(89,1,{},Ra,Hd,Ja,Wd),s.wk=function(n,t,i,r,c){var o;if(o=t.ii(i),o==null&&t.ji(i,o=TS(this,n)),!c)switch(this.e){case 50:case 41:return u(o,587)._j();case 40:return u(o,219).Tl()}return o},s.xk=function(n,t,i,r,c){var o,f;return f=t.ii(i),f==null&&t.ji(i,f=TS(this,n)),o=u(f,72).Uk(r,c),o},s.yk=function(n,t,i,r,c){var o;return o=t.ii(i),o!=null&&(c=u(o,72).Vk(r,c)),c},s.zk=function(n,t,i){var r;return r=t.ii(i),r!=null&&u(r,78).Oj()},s.Ak=function(n,t,i,r){var c;c=u(t.ii(i),78),!c&&t.ji(i,c=TS(this,n)),c.Wb(r)},s.Bk=function(n,t,i){var r,c;return c=t.ii(i),c==null&&t.ji(i,c=TS(this,n)),F(c,78)?u(c,78):(r=u(t.ii(i),16),new Jje(r))},s.Ck=function(n,t,i){var r;r=u(t.ii(i),78),!r&&t.ji(i,r=TS(this,n)),r.Ek()},s.b=0,s.e=0,w(kn,"EStructuralFeatureImpl/InternalSettingDelegateMany",89),b(499,1,{}),s.xk=function(n,t,i,r,c){throw x(new ht)},s.yk=function(n,t,i,r,c){throw x(new ht)},s.Bk=function(n,t,i){return new XPe(this,n,t,i)};var zh;w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",499),b(1322,1,uH,XPe),s.Dk=function(n){return this.a.wk(this.c,this.d,this.b,n,!0)},s.Oj=function(){return this.a.zk(this.c,this.d,this.b)},s.Wb=function(n){this.a.Ak(this.c,this.d,this.b,n)},s.Ek=function(){this.a.Ck(this.c,this.d,this.b)},s.b=0,w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1322),b(771,499,{},VY),s.wk=function(n,t,i,r,c){return s_(n,n.Mh(),n.Ch())==this.b?this._k()&&r?WR(n):n.Mh():null},s.xk=function(n,t,i,r,c){var o,f;return n.Mh()&&(c=(o=n.Ch(),o>=0?n.xh(c):n.Mh().Qh(n,-1-o,null,c))),f=vi(n.Ah(),this.e),n.zh(r,f,c)},s.yk=function(n,t,i,r,c){var o;return o=vi(n.Ah(),this.e),n.zh(null,o,c)},s.zk=function(n,t,i){var r;return r=vi(n.Ah(),this.e),!!n.Mh()&&n.Ch()==r},s.Ak=function(n,t,i,r){var c,o,f,l,h;if(r!=null&&!a_(this.a,r))throw x(new Y3(xI+(F(r,57)?Rte(u(r,57).Ah()):oee(Zo(r)))+TI+this.a+"'"));if(c=n.Mh(),f=vi(n.Ah(),this.e),K(r)!==K(c)||n.Ch()!=f&&r!=null){if(u4(n,u(r,57)))throw x(new An(my+n.Ib()));h=null,c&&(h=(o=n.Ch(),o>=0?n.xh(h):n.Mh().Qh(n,-1-o,null,h))),l=u(r,52),l&&(h=l.Oh(n,vi(l.Ah(),this.b),null,h)),h=n.zh(l,f,h),h&&h.mj()}else n.sh()&&n.th()&&Gt(n,new hr(n,1,f,r,r))},s.Ck=function(n,t,i){var r,c,o,f;r=n.Mh(),r?(f=(c=n.Ch(),c>=0?n.xh(null):n.Mh().Qh(n,-1-c,null,null)),o=vi(n.Ah(),this.e),f=n.zh(null,o,f),f&&f.mj()):n.sh()&&n.th()&&Gt(n,new G6(n,1,this.e,null,null))},s._k=function(){return!1},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",771),b(1306,771,{},GSe),s._k=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1306),b(560,499,{}),s.wk=function(n,t,i,r,c){var o;return o=t.ii(i),o==null?this.b:K(o)===K(zh)?null:o},s.zk=function(n,t,i){var r;return r=t.ii(i),r!=null&&(K(r)===K(zh)||!qt(r,this.b))},s.Ak=function(n,t,i,r){var c,o;n.sh()&&n.th()?(c=(o=t.ii(i),o==null?this.b:K(o)===K(zh)?null:o),r==null?this.c!=null?(t.ji(i,null),r=this.b):this.b!=null?t.ji(i,zh):t.ji(i,null):(this.zl(r),t.ji(i,r)),Gt(n,this.d.Al(n,1,this.e,c,r))):r==null?this.c!=null?t.ji(i,null):this.b!=null?t.ji(i,zh):t.ji(i,null):(this.zl(r),t.ji(i,r))},s.Ck=function(n,t,i){var r,c;n.sh()&&n.th()?(r=(c=t.ii(i),c==null?this.b:K(c)===K(zh)?null:c),t.ki(i),Gt(n,this.d.Al(n,1,this.e,r,this.b))):t.ki(i)},s.zl=function(n){throw x(new Yje)},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",560),b(op,1,{},Q5e),s.Al=function(n,t,i,r,c){return new G6(n,t,i,r,c)},s.Bl=function(n,t,i,r,c,o){return new uF(n,t,i,r,c,o)};var Nwe,Dwe,Lwe,$we,Fwe,Bwe,Rwe,gX,_we;w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",op),b(1323,op,{},Y5e),s.Al=function(n,t,i,r,c){return new xZ(n,t,i,Se(Te(r)),Se(Te(c)))},s.Bl=function(n,t,i,r,c,o){return new vNe(n,t,i,Se(Te(r)),Se(Te(c)),o)},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1323),b(1324,op,{},Z5e),s.Al=function(n,t,i,r,c){return new lee(n,t,i,u(r,221).a,u(c,221).a)},s.Bl=function(n,t,i,r,c,o){return new yNe(n,t,i,u(r,221).a,u(c,221).a,o)},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1324),b(1325,op,{},e6e),s.Al=function(n,t,i,r,c){return new hee(n,t,i,u(r,180).a,u(c,180).a)},s.Bl=function(n,t,i,r,c,o){return new kNe(n,t,i,u(r,180).a,u(c,180).a,o)},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1325),b(1326,op,{},n6e),s.Al=function(n,t,i,r,c){return new SZ(n,t,i,J(H(r)),J(H(c)))},s.Bl=function(n,t,i,r,c,o){return new jNe(n,t,i,J(H(r)),J(H(c)),o)},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1326),b(1327,op,{},t6e),s.Al=function(n,t,i,r,c){return new bee(n,t,i,u(r,164).a,u(c,164).a)},s.Bl=function(n,t,i,r,c,o){return new ENe(n,t,i,u(r,164).a,u(c,164).a,o)},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1327),b(1328,op,{},i6e),s.Al=function(n,t,i,r,c){return new TZ(n,t,i,u(r,15).a,u(c,15).a)},s.Bl=function(n,t,i,r,c,o){return new ANe(n,t,i,u(r,15).a,u(c,15).a,o)},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1328),b(1329,op,{},r6e),s.Al=function(n,t,i,r,c){return new aee(n,t,i,u(r,190).a,u(c,190).a)},s.Bl=function(n,t,i,r,c,o){return new MNe(n,t,i,u(r,190).a,u(c,190).a,o)},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1329),b(1330,op,{},c6e),s.Al=function(n,t,i,r,c){return new dee(n,t,i,u(r,191).a,u(c,191).a)},s.Bl=function(n,t,i,r,c,o){return new CNe(n,t,i,u(r,191).a,u(c,191).a,o)},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1330),b(1308,560,{},QPe),s.zl=function(n){if(!this.a.dk(n))throw x(new Y3(xI+Zo(n)+TI+this.a+"'"))},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1308),b(1309,560,{},DIe),s.zl=function(n){},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1309),b(772,560,{}),s.zk=function(n,t,i){var r;return r=t.ii(i),r!=null},s.Ak=function(n,t,i,r){var c,o;n.sh()&&n.th()?(c=!0,o=t.ii(i),o==null?(c=!1,o=this.b):K(o)===K(zh)&&(o=null),r==null?this.c!=null?(t.ji(i,null),r=this.b):t.ji(i,zh):(this.zl(r),t.ji(i,r)),Gt(n,this.d.Bl(n,1,this.e,o,r,!c))):r==null?this.c!=null?t.ji(i,null):t.ji(i,zh):(this.zl(r),t.ji(i,r))},s.Ck=function(n,t,i){var r,c;n.sh()&&n.th()?(r=!0,c=t.ii(i),c==null?(r=!1,c=this.b):K(c)===K(zh)&&(c=null),t.ki(i),Gt(n,this.d.Bl(n,2,this.e,c,this.b,r))):t.ki(i)},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",772),b(1310,772,{},YPe),s.zl=function(n){if(!this.a.dk(n))throw x(new Y3(xI+Zo(n)+TI+this.a+"'"))},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1310),b(1311,772,{},LIe),s.zl=function(n){},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1311),b(402,499,{},RC),s.wk=function(n,t,i,r,c){var o,f,l,h,a;if(a=t.ii(i),this.rk()&&K(a)===K(zh))return null;if(this._k()&&r&&a!=null){if(l=u(a,52),l.Sh()&&(h=q1(n,l),l!=h)){if(!a_(this.a,h))throw x(new Y3(xI+Zo(h)+TI+this.a+"'"));t.ji(i,a=h),this.$k()&&(o=u(h,52),f=l.Qh(n,this.b?vi(l.Ah(),this.b):-1-vi(n.Ah(),this.e),null,null),!o.Mh()&&(f=o.Oh(n,this.b?vi(o.Ah(),this.b):-1-vi(n.Ah(),this.e),null,f)),f&&f.mj()),n.sh()&&n.th()&&Gt(n,new G6(n,9,this.e,l,h))}return a}else return a},s.xk=function(n,t,i,r,c){var o,f;return f=t.ii(i),K(f)===K(zh)&&(f=null),t.ji(i,r),this.Kj()?K(f)!==K(r)&&f!=null&&(o=u(f,52),c=o.Qh(n,vi(o.Ah(),this.b),null,c)):this.$k()&&f!=null&&(c=u(f,52).Qh(n,-1-vi(n.Ah(),this.e),null,c)),n.sh()&&n.th()&&(!c&&(c=new M1(4)),c.lj(new G6(n,1,this.e,f,r))),c},s.yk=function(n,t,i,r,c){var o;return o=t.ii(i),K(o)===K(zh)&&(o=null),t.ki(i),n.sh()&&n.th()&&(!c&&(c=new M1(4)),this.rk()?c.lj(new G6(n,2,this.e,o,null)):c.lj(new G6(n,1,this.e,o,null))),c},s.zk=function(n,t,i){var r;return r=t.ii(i),r!=null},s.Ak=function(n,t,i,r){var c,o,f,l,h;if(r!=null&&!a_(this.a,r))throw x(new Y3(xI+(F(r,57)?Rte(u(r,57).Ah()):oee(Zo(r)))+TI+this.a+"'"));h=t.ii(i),l=h!=null,this.rk()&&K(h)===K(zh)&&(h=null),f=null,this.Kj()?K(h)!==K(r)&&(h!=null&&(c=u(h,52),f=c.Qh(n,vi(c.Ah(),this.b),null,f)),r!=null&&(c=u(r,52),f=c.Oh(n,vi(c.Ah(),this.b),null,f))):this.$k()&&K(h)!==K(r)&&(h!=null&&(f=u(h,52).Qh(n,-1-vi(n.Ah(),this.e),null,f)),r!=null&&(f=u(r,52).Oh(n,-1-vi(n.Ah(),this.e),null,f))),r==null&&this.rk()?t.ji(i,zh):t.ji(i,r),n.sh()&&n.th()?(o=new uF(n,1,this.e,h,r,this.rk()&&!l),f?(f.lj(o),f.mj()):Gt(n,o)):f&&f.mj()},s.Ck=function(n,t,i){var r,c,o,f,l;l=t.ii(i),f=l!=null,this.rk()&&K(l)===K(zh)&&(l=null),o=null,l!=null&&(this.Kj()?(r=u(l,52),o=r.Qh(n,vi(r.Ah(),this.b),null,o)):this.$k()&&(o=u(l,52).Qh(n,-1-vi(n.Ah(),this.e),null,o))),t.ki(i),n.sh()&&n.th()?(c=new uF(n,this.rk()?2:1,this.e,l,null,f),o?(o.lj(c),o.mj()):Gt(n,c)):o&&o.mj()},s.Kj=function(){return!1},s.$k=function(){return!1},s._k=function(){return!1},s.rk=function(){return!1},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",402),b(561,402,{},s$),s.$k=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",561),b(1314,561,{},FTe),s._k=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1314),b(774,561,{},eQ),s.rk=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",774),b(1316,774,{},BTe),s._k=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1316),b(639,561,{},E$),s.Kj=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",639),b(1315,639,{},HSe),s._k=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1315),b(775,639,{},BQ),s.rk=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",775),b(1317,775,{},qSe),s._k=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1317),b(640,402,{},ZV),s._k=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",640),b(1318,640,{},RTe),s.rk=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1318),b(776,640,{},$Q),s.Kj=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",776),b(1319,776,{},zSe),s.rk=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1319),b(1312,402,{},$Te),s.rk=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1312),b(773,402,{},FQ),s.Kj=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",773),b(1313,773,{},USe),s.rk=function(){return!0},w(kn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1313),b(777,562,CI,PY),s.wl=function(n){return new PY(this.a,this.c,n)},s.kd=function(){return this.b},s.xl=function(n,t,i){return o6n(this,n,this.b,i)},s.yl=function(n,t,i){return s6n(this,n,this.b,i)},w(kn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",777),b(1320,1,uH,Jje),s.Dk=function(n){return this.a},s.Oj=function(){return F(this.a,98)?u(this.a,98).Oj():!this.a.dc()},s.Wb=function(n){this.a.$b(),this.a.Fc(u(n,16))},s.Ek=function(){F(this.a,98)?u(this.a,98).Ek():this.a.$b()},w(kn,"EStructuralFeatureImpl/SettingMany",1320),b(1321,562,CI,wDe),s.vl=function(n){return new d$((Zt(),U8),this.b.oi(this.a,n))},s.kd=function(){return null},s.xl=function(n,t,i){return i},s.yl=function(n,t,i){return i},w(kn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1321),b(641,562,CI,d$),s.vl=function(n){return new d$(this.c,n)},s.kd=function(){return this.a},s.xl=function(n,t,i){return i},s.yl=function(n,t,i){return i},w(kn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",641),b(396,492,ah,U3),s.$i=function(n){return W(df,ln,29,n,0,1)},s.Wi=function(){return!1},w(kn,"ESuperAdapter/1",396),b(446,439,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,835:1,52:1,100:1,161:1,446:1,117:1,118:1},jD),s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new R6(this,hc,this)),this.a}return Os(this,n-Un((nn(),Vb)),un((r=u(Cn(this,16),29),r||Vb),n),t,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Xr(this.Ab,n,i);case 2:return!this.a&&(this.a=new R6(this,hc,this)),Xr(this.a,n,i)}return c=u(un((r=u(Cn(this,16),29),r||(nn(),Vb)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),Vb)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return Ps(this,n-Un((nn(),Vb)),un((t=u(Cn(this,16),29),t||Vb),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:Ru(this,dt(t));return;case 2:!this.a&&(this.a=new R6(this,hc,this)),nt(this.a),!this.a&&(this.a=new R6(this,hc,this)),Ii(this.a,u(t,18));return}Bs(this,n-Un((nn(),Vb)),un((i=u(Cn(this,16),29),i||Vb),n),t)},s.fi=function(){return nn(),Vb},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:Ru(this,null);return;case 2:!this.a&&(this.a=new R6(this,hc,this)),nt(this.a);return}Fs(this,n-Un((nn(),Vb)),un((t=u(Cn(this,16),29),t||Vb),n))},w(kn,"ETypeParameterImpl",446),b(447,81,Nc,R6),s.Lj=function(n,t){return QAn(this,u(n,87),t)},s.Mj=function(n,t){return YAn(this,u(n,87),t)},w(kn,"ETypeParameterImpl/1",447),b(638,44,Y2,zD),s.ec=function(){return new uM(this)},w(kn,"ETypeParameterImpl/2",638),b(557,Sl,ko,uM),s.Ec=function(n){return vSe(this,u(n,87))},s.Fc=function(n){var t,i,r;for(r=!1,i=n.Jc();i.Ob();)t=u(i.Pb(),87),It(this.a,t,"")==null&&(r=!0);return r},s.$b=function(){ou(this.a)},s.Gc=function(n){return Mu(this.a,n)},s.Jc=function(){var n;return n=new Rw(new nw(this.a).a),new oM(n)},s.Kc=function(n){return nLe(this,n)},s.gc=function(){return f6(this.a)},w(kn,"ETypeParameterImpl/2/1",557),b(558,1,kr,oM),s.Nb=function(n){Ir(this,n)},s.Pb=function(){return u(L2(this.a).jd(),87)},s.Ob=function(){return this.a.b},s.Qb=function(){p$e(this.a)},w(kn,"ETypeParameterImpl/2/1/1",558),b(1282,44,Y2,PEe),s._b=function(n){return pr(n)?sF(this,n):!!pc(this.f,n)},s.xc=function(n){var t,i;return t=pr(n)?Cu(this,n):$c(pc(this.f,n)),F(t,836)?(i=u(t,836),t=i.Ik(),It(this,u(n,241),t),t):t??(n==null?(fL(),tln):null)},w(kn,"EValidatorRegistryImpl",1282),b(1304,710,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,2005:1,52:1,100:1,161:1,117:1,118:1},u6e),s.oi=function(n,t){switch(n.fk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:Oc(t);case 25:return p9n(t);case 27:return P6n(t);case 28:return O6n(t);case 29:return t==null?null:Gxe(_8[0],u(t,205));case 41:return t==null?"":Nd(u(t,298));case 42:return Oc(t);case 50:return dt(t);default:throw x(new An(K4+n.ve()+Nb))}},s.pi=function(n){var t,i,r,c,o,f,l,h,a,d,g,m,y,j,A,T;switch(n.G==-1&&(n.G=(m=hs(n),m?Qa(m.si(),n):-1)),n.G){case 0:return i=new GD,i;case 1:return t=new rK,t;case 2:return r=new fK,r;case 4:return c=new fM,c;case 5:return o=new IEe,o;case 6:return f=new Xje,f;case 7:return l=new sK,l;case 10:return a=new ZA,a;case 11:return d=new HD,d;case 12:return g=new sOe,g;case 13:return y=new qD,y;case 14:return j=new tQ,j;case 17:return A=new V5e,A;case 18:return h=new G0,h;case 19:return T=new jD,T;default:throw x(new An(qG+n.zb+Nb))}},s.qi=function(n,t){switch(n.fk()){case 20:return t==null?null:new EW(t);case 21:return t==null?null:new I1(t);case 23:case 22:return t==null?null:w7n(t);case 26:case 24:return t==null?null:I7(ws(t,-128,127)<<24>>24);case 25:return hTn(t);case 27:return Qjn(t);case 28:return Yjn(t);case 29:return pMn(t);case 32:case 31:return t==null?null:Kw(t);case 38:case 37:return t==null?null:new UK(t);case 40:case 39:return t==null?null:fe(ws(t,Mr,Ft));case 41:return null;case 42:return t==null,null;case 44:case 43:return t==null?null:zw(xS(t));case 49:case 48:return t==null?null:Vv(ws(t,SI,32767)<<16>>16);case 50:return t;default:throw x(new An(K4+n.ve()+Nb))}},w(kn,"EcoreFactoryImpl",1304),b(549,184,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,2003:1,52:1,100:1,161:1,184:1,549:1,117:1,118:1,680:1},PPe),s.gb=!1,s.hb=!1;var Jwe,nln=!1;w(kn,"EcorePackageImpl",549),b(1200,1,{836:1},o6e),s.Ik=function(){return nTe(),iln},w(kn,"EcorePackageImpl/1",1200),b(1209,1,Nt,s6e),s.dk=function(n){return F(n,158)},s.ek=function(n){return W(vA,ln,158,n,0,1)},w(kn,"EcorePackageImpl/10",1209),b(1210,1,Nt,f6e),s.dk=function(n){return F(n,197)},s.ek=function(n){return W(oX,ln,197,n,0,1)},w(kn,"EcorePackageImpl/11",1210),b(1211,1,Nt,l6e),s.dk=function(n){return F(n,57)},s.ek=function(n){return W(Ed,ln,57,n,0,1)},w(kn,"EcorePackageImpl/12",1211),b(1212,1,Nt,h6e),s.dk=function(n){return F(n,403)},s.ek=function(n){return W(bf,Bse,62,n,0,1)},w(kn,"EcorePackageImpl/13",1212),b(1213,1,Nt,a6e),s.dk=function(n){return F(n,241)},s.ek=function(n){return W(dl,ln,241,n,0,1)},w(kn,"EcorePackageImpl/14",1213),b(1214,1,Nt,d6e),s.dk=function(n){return F(n,504)},s.ek=function(n){return W(Kb,ln,2081,n,0,1)},w(kn,"EcorePackageImpl/15",1214),b(1215,1,Nt,b6e),s.dk=function(n){return F(n,103)},s.ek=function(n){return W(Xg,up,19,n,0,1)},w(kn,"EcorePackageImpl/16",1215),b(1216,1,Nt,w6e),s.dk=function(n){return F(n,179)},s.ek=function(n){return W(ho,up,179,n,0,1)},w(kn,"EcorePackageImpl/17",1216),b(1217,1,Nt,g6e),s.dk=function(n){return F(n,470)},s.ek=function(n){return W(zg,ln,470,n,0,1)},w(kn,"EcorePackageImpl/18",1217),b(1218,1,Nt,p6e),s.dk=function(n){return F(n,550)},s.ek=function(n){return W(nu,RQe,550,n,0,1)},w(kn,"EcorePackageImpl/19",1218),b(1201,1,Nt,m6e),s.dk=function(n){return F(n,335)},s.ek=function(n){return W(Ug,up,38,n,0,1)},w(kn,"EcorePackageImpl/2",1201),b(1219,1,Nt,v6e),s.dk=function(n){return F(n,248)},s.ek=function(n){return W(hc,tYe,87,n,0,1)},w(kn,"EcorePackageImpl/20",1219),b(1220,1,Nt,y6e),s.dk=function(n){return F(n,446)},s.ek=function(n){return W(Yu,ln,835,n,0,1)},w(kn,"EcorePackageImpl/21",1220),b(1221,1,Nt,k6e),s.dk=function(n){return dw(n)},s.ek=function(n){return W(xi,ge,473,n,8,1)},w(kn,"EcorePackageImpl/22",1221),b(1222,1,Nt,j6e),s.dk=function(n){return F(n,195)},s.ek=function(n){return W(Ao,ge,195,n,0,2)},w(kn,"EcorePackageImpl/23",1222),b(1223,1,Nt,E6e),s.dk=function(n){return F(n,221)},s.ek=function(n){return W(s3,ge,221,n,0,1)},w(kn,"EcorePackageImpl/24",1223),b(1224,1,Nt,A6e),s.dk=function(n){return F(n,180)},s.ek=function(n){return W(Iy,ge,180,n,0,1)},w(kn,"EcorePackageImpl/25",1224),b(1225,1,Nt,M6e),s.dk=function(n){return F(n,205)},s.ek=function(n){return W(RI,ge,205,n,0,1)},w(kn,"EcorePackageImpl/26",1225),b(1226,1,Nt,C6e),s.dk=function(n){return!1},s.ek=function(n){return W(cge,ln,2177,n,0,1)},w(kn,"EcorePackageImpl/27",1226),b(1227,1,Nt,x6e),s.dk=function(n){return bw(n)},s.ek=function(n){return W(zi,ge,346,n,7,1)},w(kn,"EcorePackageImpl/28",1227),b(1228,1,Nt,T6e),s.dk=function(n){return F(n,61)},s.ek=function(n){return W(ywe,ug,61,n,0,1)},w(kn,"EcorePackageImpl/29",1228),b(1202,1,Nt,S6e),s.dk=function(n){return F(n,505)},s.ek=function(n){return W(St,{3:1,4:1,5:1,1998:1},588,n,0,1)},w(kn,"EcorePackageImpl/3",1202),b(1229,1,Nt,I6e),s.dk=function(n){return F(n,568)},s.ek=function(n){return W(Ewe,ln,2004,n,0,1)},w(kn,"EcorePackageImpl/30",1229),b(1230,1,Nt,P6e),s.dk=function(n){return F(n,163)},s.ek=function(n){return W(Uwe,ug,163,n,0,1)},w(kn,"EcorePackageImpl/31",1230),b(1231,1,Nt,O6e),s.dk=function(n){return F(n,75)},s.ek=function(n){return W(eN,hYe,75,n,0,1)},w(kn,"EcorePackageImpl/32",1231),b(1232,1,Nt,N6e),s.dk=function(n){return F(n,164)},s.ek=function(n){return W(t5,ge,164,n,0,1)},w(kn,"EcorePackageImpl/33",1232),b(1233,1,Nt,D6e),s.dk=function(n){return F(n,15)},s.ek=function(n){return W(Zi,ge,15,n,0,1)},w(kn,"EcorePackageImpl/34",1233),b(1234,1,Nt,L6e),s.dk=function(n){return F(n,298)},s.ek=function(n){return W(Qse,ln,298,n,0,1)},w(kn,"EcorePackageImpl/35",1234),b(1235,1,Nt,$6e),s.dk=function(n){return F(n,190)},s.ek=function(n){return W(Lb,ge,190,n,0,1)},w(kn,"EcorePackageImpl/36",1235),b(1236,1,Nt,F6e),s.dk=function(n){return F(n,92)},s.ek=function(n){return W(Yse,ln,92,n,0,1)},w(kn,"EcorePackageImpl/37",1236),b(1237,1,Nt,B6e),s.dk=function(n){return F(n,589)},s.ek=function(n){return W(Gwe,ln,589,n,0,1)},w(kn,"EcorePackageImpl/38",1237),b(1238,1,Nt,R6e),s.dk=function(n){return!1},s.ek=function(n){return W(uge,ln,2178,n,0,1)},w(kn,"EcorePackageImpl/39",1238),b(1203,1,Nt,_6e),s.dk=function(n){return F(n,88)},s.ek=function(n){return W(df,ln,29,n,0,1)},w(kn,"EcorePackageImpl/4",1203),b(1239,1,Nt,J6e),s.dk=function(n){return F(n,191)},s.ek=function(n){return W($b,ge,191,n,0,1)},w(kn,"EcorePackageImpl/40",1239),b(1240,1,Nt,G6e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(kn,"EcorePackageImpl/41",1240),b(1241,1,Nt,H6e),s.dk=function(n){return F(n,586)},s.ek=function(n){return W(jwe,ln,586,n,0,1)},w(kn,"EcorePackageImpl/42",1241),b(1242,1,Nt,q6e),s.dk=function(n){return!1},s.ek=function(n){return W(oge,ge,2179,n,0,1)},w(kn,"EcorePackageImpl/43",1242),b(1243,1,Nt,z6e),s.dk=function(n){return F(n,45)},s.ek=function(n){return W(p0,IS,45,n,0,1)},w(kn,"EcorePackageImpl/44",1243),b(1204,1,Nt,U6e),s.dk=function(n){return F(n,143)},s.ek=function(n){return W(bl,ln,143,n,0,1)},w(kn,"EcorePackageImpl/5",1204),b(1205,1,Nt,X6e),s.dk=function(n){return F(n,159)},s.ek=function(n){return W(dX,ln,159,n,0,1)},w(kn,"EcorePackageImpl/6",1205),b(1206,1,Nt,K6e),s.dk=function(n){return F(n,459)},s.ek=function(n){return W(ZO,ln,675,n,0,1)},w(kn,"EcorePackageImpl/7",1206),b(1207,1,Nt,W6e),s.dk=function(n){return F(n,568)},s.ek=function(n){return W(Ma,ln,684,n,0,1)},w(kn,"EcorePackageImpl/8",1207),b(1208,1,Nt,V6e),s.dk=function(n){return F(n,469)},s.ek=function(n){return W(R8,ln,469,n,0,1)},w(kn,"EcorePackageImpl/9",1208),b(1020,2045,BQe,eAe),s.Ki=function(n,t){K8n(this,u(t,415))},s.Oi=function(n,t){iHe(this,n,u(t,415))},w(kn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1020),b(1021,151,uE,vPe),s.hj=function(){return this.a.a},w(kn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1021),b(1048,1047,{},Oxe),w("org.eclipse.emf.ecore.plugin","EcorePlugin",1048);var Gwe=yi(aYe,"Resource");b(787,1486,dYe),s.Fl=function(n){},s.Gl=function(n){},s.Cl=function(){return!this.a&&(this.a=new $D(this)),this.a},s.Dl=function(n){var t,i,r,c,o;if(r=n.length,r>0)if(Pn(0,n.length),n.charCodeAt(0)==47){for(o=new Bu(4),c=1,t=1;t<r;++t)Pn(t,n.length),n.charCodeAt(t)==47&&(me(o,c==t?"":(Tr(c,t,n.length),n.substr(c,t-c))),c=t+1);return me(o,(Pn(c,n.length+1),n.substr(c))),HEn(this,o)}else Pn(r-1,n.length),n.charCodeAt(r-1)==63&&(i=MQ(n,io(63),r-2),i>0&&(n=(Tr(0,i,n.length),n.substr(0,i))));return rxn(this,n)},s.El=function(){return this.c},s.Ib=function(){var n;return Nd(this.Pm)+"@"+(n=si(this)>>>0,n.toString(16))+" uri='"+this.d+"'"},s.b=!1,w(oH,"ResourceImpl",787),b(1487,787,dYe,Hje),w(oH,"BinaryResourceImpl",1487),b(1160,697,nH),s._i=function(n){return F(n,57)?O3n(this,u(n,57)):F(n,589)?new Rn(u(n,589).Cl()):K(n)===K(this.f)?u(n,18).Jc():(bv(),jA.a)},s.Ob=function(){return Nie(this)},s.a=!1,w(wi,"EcoreUtil/ContentTreeIterator",1160),b(1488,1160,nH,ZIe),s._i=function(n){return K(n)===K(this.f)?u(n,16).Jc():new XNe(u(n,57))},w(oH,"ResourceImpl/5",1488),b(648,2057,nYe,$D),s.Gc=function(n){return this.i<=4?s4(this,n):F(n,52)&&u(n,52).Gh()==this.a},s.Ki=function(n,t){n==this.i-1&&(this.a.b||(this.a.b=!0))},s.Mi=function(n,t){n==0?this.a.b||(this.a.b=!0):FF(this,n,t)},s.Oi=function(n,t){},s.Pi=function(n,t,i){},s.Jj=function(){return 2},s.hj=function(){return this.a},s.Kj=function(){return!0},s.Lj=function(n,t){var i;return i=u(n,52),t=i.ci(this.a,t),t},s.Mj=function(n,t){var i;return i=u(n,52),i.ci(null,t)},s.Nj=function(){return!1},s.Qi=function(){return!0},s.$i=function(n){return W(Ed,ln,57,n,0,1)},s.Wi=function(){return!1},w(oH,"ResourceImpl/ContentsEList",648),b(954,2027,x4,qje),s.dd=function(n){return this.a.Ii(n)},s.gc=function(){return this.a.gc()},w(wi,"AbstractSequentialInternalEList/1",954);var Hwe,qwe,Or,zwe;b(626,1,{},eIe);var nN,tN;w(wi,"BasicExtendedMetaData",626),b(1151,1,{},KCe),s.Hl=function(){return null},s.Il=function(){return this.a==-2&&C1n(this,lMn(this.d,this.b)),this.a},s.Jl=function(){return null},s.Kl=function(){return tn(),tn(),Qr},s.ve=function(){return this.c==Y4&&S1n(this,M_e(this.d,this.b)),this.c},s.Ll=function(){return 0},s.a=-2,s.c=Y4,w(wi,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1151),b(1152,1,{},TNe),s.Hl=function(){return this.a==(Iv(),nN)&&x1n(this,KIn(this.f,this.b)),this.a},s.Il=function(){return 0},s.Jl=function(){return this.c==(Iv(),nN)&&I1n(this,WIn(this.f,this.b)),this.c},s.Kl=function(){return!this.d&&O1n(this,NOn(this.f,this.b)),this.d},s.ve=function(){return this.e==Y4&&D1n(this,M_e(this.f,this.b)),this.e},s.Ll=function(){return this.g==-2&&$1n(this,PAn(this.f,this.b)),this.g},s.e=Y4,s.g=-2,w(wi,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1152),b(1150,1,{},WCe),s.b=!1,s.c=!1,w(wi,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1150),b(1153,1,{},SNe),s.c=-2,s.e=Y4,s.f=Y4,w(wi,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1153),b(582,624,Nc,xC),s.Jj=function(){return this.c},s.ml=function(){return!1},s.Ui=function(n,t){return t},s.c=0,w(wi,"EDataTypeEList",582);var Uwe=yi(wi,"FeatureMap");b(76,582,{3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,163:1,219:1,2001:1,72:1,98:1},Pi),s._c=function(n,t){wSn(this,n,u(t,75))},s.Ec=function(n){return OTn(this,u(n,75))},s.Fi=function(n){Omn(this,u(n,75))},s.Lj=function(n,t){return ogn(this,u(n,75),t)},s.Mj=function(n,t){return xQ(this,u(n,75),t)},s.Ri=function(n,t){return _Pn(this,n,t)},s.Ui=function(n,t){return TDn(this,n,u(t,75))},s.fd=function(n,t){return eIn(this,n,u(t,75))},s.Sj=function(n,t){return sgn(this,u(n,75),t)},s.Tj=function(n,t){return CSe(this,u(n,75),t)},s.Uj=function(n,t,i){return yAn(this,u(n,75),u(t,75),i)},s.Xi=function(n,t){return PR(this,n,u(t,75))},s.Ml=function(n,t){return Tre(this,n,t)},s.ad=function(n,t){var i,r,c,o,f,l,h,a,d;for(a=new ob(t.gc()),c=t.Jc();c.Ob();)if(r=u(c.Pb(),75),o=r.Jk(),da(this.e,o))(!o.Qi()||!vx(this,o,r.kd())&&!s4(a,r))&&it(a,r);else{for(d=Xu(this.e.Ah(),o),i=u(this.g,122),f=!0,l=0;l<this.i;++l)if(h=i[l],d.$l(h.Jk())){u(_2(this,l,r),75),f=!1;break}f&&it(a,r)}return Xee(this,n,a)},s.Fc=function(n){var t,i,r,c,o,f,l,h,a;for(h=new ob(n.gc()),r=n.Jc();r.Ob();)if(i=u(r.Pb(),75),c=i.Jk(),da(this.e,c))(!c.Qi()||!vx(this,c,i.kd())&&!s4(h,i))&&it(h,i);else{for(a=Xu(this.e.Ah(),c),t=u(this.g,122),o=!0,f=0;f<this.i;++f)if(l=t[f],a.$l(l.Jk())){u(_2(this,f,i),75),o=!1;break}o&&it(h,i)}return Ii(this,h)},s.Di=function(n){return this.j=-1,d_(this,this.i,n)},s.Nl=function(n,t,i){return yre(this,n,t,i)},s.Vk=function(n,t){return jj(this,n,t)},s.Ol=function(n,t,i){return Wre(this,n,t,i)},s.Pl=function(){return this},s.Ql=function(n,t){return Mj(this,n,t)},s.Rl=function(n){return u(B(this,n),75).Jk()},s.Sl=function(n){return u(B(this,n),75).kd()},s.Tl=function(){return this.b},s.Kj=function(){return!0},s.Rj=function(){return!0},s.Ul=function(n){return!Y7(this,n)},s.$i=function(n){return W(eln,hYe,344,n,0,1)},s.nl=function(n){return f$(this,n)},s.Wb=function(n){c7(this,n)},s.Vl=function(n,t){ES(this,n,t)},s.Wl=function(n){return SFe(this,n)},s.Xl=function(n){fJe(this,n)},w(wi,"BasicFeatureMap",76),b(1925,1,Ih),s.Nb=function(n){Ir(this,n)},s.Rb=function(n){if(this.g==-1)throw x(new bo);qC(this);try{Qqe(this.e,this.b,this.a,n),this.d=this.e.j,FT(this)}catch(t){throw t=Fi(t),F(t,99)?x(new xs):x(t)}},s.Ob=function(){return TB(this)},s.Sb=function(){return QBe(this)},s.Pb=function(){return FT(this)},s.Tb=function(){return this.a},s.Ub=function(){var n;if(QBe(this))return qC(this),this.g=--this.a,this.sl()&&(n=L9(this.e,this.b,this.c,this.a,this.j),this.j=n),this.i=0,this.j;throw x(new Dc)},s.Vb=function(){return this.a-1},s.Qb=function(){if(this.g==-1)throw x(new bo);qC(this);try{GGe(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(n){throw n=Fi(n),F(n,99)?x(new xs):x(n)}},s.sl=function(){return!1},s.Wb=function(n){if(this.g==-1)throw x(new bo);qC(this);try{AUe(this.e,this.b,this.g,n),this.d=this.e.j}catch(t){throw t=Fi(t),F(t,99)?x(new xs):x(t)}},s.a=0,s.c=0,s.d=0,s.f=!1,s.g=0,s.i=0,w(wi,"FeatureMapUtil/BasicFeatureEIterator",1925),b(412,1925,Ih,_v),s.Yl=function(){var n,t,i;for(i=this.e.i,n=u(this.e.g,122);this.c<i;){if(t=n[this.c],this.k.$l(t.Jk()))return this.j=this.f?t:t.kd(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},s.Zl=function(){var n,t;for(n=u(this.e.g,122);--this.c>=0;)if(t=n[this.c],this.k.$l(t.Jk()))return this.j=this.f?t:t.kd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},w(wi,"BasicFeatureMap/FeatureEIterator",412),b(666,412,Ih,UL),s.sl=function(){return!0},w(wi,"BasicFeatureMap/ResolvingFeatureEIterator",666),b(952,482,AI,zxe),s.nj=function(){return this},w(wi,"EContentsEList/1",952),b(953,482,AI,dxe),s.sl=function(){return!1},w(wi,"EContentsEList/2",953),b(951,287,MI,Uxe),s.ul=function(n){},s.Ob=function(){return!1},s.Sb=function(){return!1},w(wi,"EContentsEList/FeatureIteratorImpl/1",951),b(825,582,Nc,OV),s.Li=function(){this.a=!0},s.Oj=function(){return this.a},s.Ek=function(){var n;nt(this),Ko(this.e)?(n=this.a,this.a=!1,Gt(this.e,new Mf(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,w(wi,"EDataTypeEList/Unsettable",825),b(1923,582,Nc,Qxe),s.Qi=function(){return!0},w(wi,"EDataTypeUniqueEList",1923),b(1924,825,Nc,Yxe),s.Qi=function(){return!0},w(wi,"EDataTypeUniqueEList/Unsettable",1924),b(145,81,Nc,wo),s.ll=function(){return!0},s.Ui=function(n,t){return Km(this,n,u(t,57))},w(wi,"EObjectContainmentEList/Resolving",145),b(1154,544,Nc,Zxe),s.ll=function(){return!0},s.Ui=function(n,t){return Km(this,n,u(t,57))},w(wi,"EObjectContainmentEList/Unsettable/Resolving",1154),b(753,14,Nc,yQ),s.Li=function(){this.a=!0},s.Oj=function(){return this.a},s.Ek=function(){var n;nt(this),Ko(this.e)?(n=this.a,this.a=!1,Gt(this.e,new Mf(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,w(wi,"EObjectContainmentWithInverseEList/Unsettable",753),b(1188,753,Nc,dSe),s.ll=function(){return!0},s.Ui=function(n,t){return Km(this,n,u(t,57))},w(wi,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1188),b(745,491,Nc,NV),s.Li=function(){this.a=!0},s.Oj=function(){return this.a},s.Ek=function(){var n;nt(this),Ko(this.e)?(n=this.a,this.a=!1,Gt(this.e,new Mf(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,w(wi,"EObjectEList/Unsettable",745),b(339,491,Nc,j2),s.ll=function(){return!0},s.Ui=function(n,t){return Km(this,n,u(t,57))},w(wi,"EObjectResolvingEList",339),b(1828,745,Nc,eTe),s.ll=function(){return!0},s.Ui=function(n,t){return Km(this,n,u(t,57))},w(wi,"EObjectResolvingEList/Unsettable",1828),b(1489,1,{},Q6e);var tln;w(wi,"EObjectValidator",1489),b(548,491,Nc,UC),s.gl=function(){return this.d},s.hl=function(){return this.b},s.Kj=function(){return!0},s.kl=function(){return!0},s.b=0,w(wi,"EObjectWithInverseEList",548),b(1191,548,Nc,bSe),s.jl=function(){return!0},w(wi,"EObjectWithInverseEList/ManyInverse",1191),b(627,548,Nc,b$),s.Li=function(){this.a=!0},s.Oj=function(){return this.a},s.Ek=function(){var n;nt(this),Ko(this.e)?(n=this.a,this.a=!1,Gt(this.e,new Mf(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,w(wi,"EObjectWithInverseEList/Unsettable",627),b(1190,627,Nc,wSe),s.jl=function(){return!0},w(wi,"EObjectWithInverseEList/Unsettable/ManyInverse",1190),b(754,548,Nc,kQ),s.ll=function(){return!0},s.Ui=function(n,t){return Km(this,n,u(t,57))},w(wi,"EObjectWithInverseResolvingEList",754),b(33,754,Nc,hn),s.jl=function(){return!0},w(wi,"EObjectWithInverseResolvingEList/ManyInverse",33),b(755,627,Nc,jQ),s.ll=function(){return!0},s.Ui=function(n,t){return Km(this,n,u(t,57))},w(wi,"EObjectWithInverseResolvingEList/Unsettable",755),b(1189,755,Nc,gSe),s.jl=function(){return!0},w(wi,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1189),b(1155,624,Nc),s.Ji=function(){return(this.b&1792)==0},s.Li=function(){this.b|=1},s.il=function(){return(this.b&4)!=0},s.Kj=function(){return(this.b&40)!=0},s.jl=function(){return(this.b&16)!=0},s.kl=function(){return(this.b&8)!=0},s.ll=function(){return(this.b&i1)!=0},s.$k=function(){return(this.b&32)!=0},s.ml=function(){return(this.b&Df)!=0},s.dk=function(n){return this.d?uDe(this.d,n):this.Jk().Fk().dk(n)},s.Oj=function(){return(this.b&2)!=0?(this.b&1)!=0:this.i!=0},s.Qi=function(){return(this.b&128)!=0},s.Ek=function(){var n;nt(this),(this.b&2)!=0&&(Ko(this.e)?(n=(this.b&1)!=0,this.b&=-2,Q3(this,new Mf(this.e,2,vi(this.e.Ah(),this.Jk()),n,!1))):this.b&=-2)},s.Wi=function(){return(this.b&1536)==0},s.b=0,w(wi,"EcoreEList/Generic",1155),b(1156,1155,Nc,lOe),s.Jk=function(){return this.a},w(wi,"EcoreEList/Dynamic",1156),b(752,67,ah,JK),s.$i=function(n){return N7(this.a.a,n)},w(wi,"EcoreEMap/1",752),b(751,81,Nc,gY),s.Ki=function(n,t){RT(this.b,u(t,136))},s.Mi=function(n,t){uBe(this.b)},s.Ni=function(n,t,i){var r;++(r=this.b,u(t,136),r).e},s.Oi=function(n,t){BB(this.b,u(t,136))},s.Pi=function(n,t,i){BB(this.b,u(i,136)),K(i)===K(t)&&u(i,136).zi(cbn(u(t,136).jd())),RT(this.b,u(t,136))},w(wi,"EcoreEMap/DelegateEObjectContainmentEList",751),b(1186,142,Fse,pFe),w(wi,"EcoreEMap/Unsettable",1186),b(1187,751,Nc,pSe),s.Li=function(){this.a=!0},s.Oj=function(){return this.a},s.Ek=function(){var n;nt(this),Ko(this.e)?(n=this.a,this.a=!1,Gt(this.e,new Mf(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,w(wi,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1187),b(1159,223,Y2,hPe),s.a=!1,s.b=!1,w(wi,"EcoreUtil/Copier",1159),b(747,1,kr,XNe),s.Nb=function(n){Ir(this,n)},s.Ob=function(){return s_e(this)},s.Pb=function(){var n;return s_e(this),n=this.b,this.b=null,n},s.Qb=function(){this.a.Qb()},w(wi,"EcoreUtil/ProperContentIterator",747),b(1490,1489,{},Vye);var iln;w(wi,"EcoreValidator",1490);var rln;yi(wi,"FeatureMapUtil/Validator"),b(1260,1,{2006:1},Y6e),s.$l=function(n){return!0},w(wi,"FeatureMapUtil/1",1260),b(760,1,{2006:1},oce),s.$l=function(n){var t;return this.c==n?!0:(t=Te(yn(this.a,n)),t==null?ePn(this,n)?(UDe(this.a,n,(gn(),n5)),!0):(UDe(this.a,n,(gn(),ud)),!1):t==(gn(),n5))},s.e=!1;var pX;w(wi,"FeatureMapUtil/BasicValidator",760),b(761,44,Y2,PV),w(wi,"FeatureMapUtil/BasicValidator/Cache",761),b(495,56,{20:1,31:1,56:1,18:1,16:1,61:1,78:1,72:1,98:1},Rk),s._c=function(n,t){Qqe(this.c,this.b,n,t)},s.Ec=function(n){return Tre(this.c,this.b,n)},s.ad=function(n,t){return yNn(this.c,this.b,n,t)},s.Fc=function(n){return O6(this,n)},s.Ei=function(n,t){f9n(this.c,this.b,n,t)},s.Uk=function(n,t){return yre(this.c,this.b,n,t)},s.Yi=function(n){return jS(this.c,this.b,n,!1)},s.Gi=function(){return Mxe(this.c,this.b)},s.Hi=function(){return Q0n(this.c,this.b)},s.Ii=function(n){return f6n(this.c,this.b,n)},s.Vk=function(n,t){return ZTe(this,n,t)},s.$b=function(){Xp(this)},s.Gc=function(n){return vx(this.c,this.b,n)},s.Hc=function(n){return uyn(this.c,this.b,n)},s.Xb=function(n){return jS(this.c,this.b,n,!0)},s.Dk=function(n){return this},s.bd=function(n){return v5n(this.c,this.b,n)},s.dc=function(){return tC(this)},s.Oj=function(){return!Y7(this.c,this.b)},s.Jc=function(){return G6n(this.c,this.b)},s.cd=function(){return H6n(this.c,this.b)},s.dd=function(n){return hkn(this.c,this.b,n)},s.Ri=function(n,t){return bUe(this.c,this.b,n,t)},s.Si=function(n,t){h6n(this.c,this.b,n,t)},s.ed=function(n){return GGe(this.c,this.b,n)},s.Kc=function(n){return MPn(this.c,this.b,n)},s.fd=function(n,t){return AUe(this.c,this.b,n,t)},s.Wb=function(n){iS(this.c,this.b),O6(this,u(n,16))},s.gc=function(){return akn(this.c,this.b)},s.Nc=function(){return v4n(this.c,this.b)},s.Oc=function(n){return y5n(this.c,this.b,n)},s.Ib=function(){var n,t;for(t=new Na,t.a+="[",n=Mxe(this.c,this.b);TB(n);)ac(t,D6(FT(n))),TB(n)&&(t.a+=Ju);return t.a+="]",t.a},s.Ek=function(){iS(this.c,this.b)},w(wi,"FeatureMapUtil/FeatureEList",495),b(635,39,uE,TF),s.fj=function(n){return v9(this,n)},s.kj=function(n){var t,i,r,c,o,f,l;switch(this.d){case 1:case 2:{if(o=n.hj(),K(o)===K(this.c)&&v9(this,null)==n.fj(null))return this.g=n.gj(),n.ej()==1&&(this.d=1),!0;break}case 3:{switch(c=n.ej(),c){case 3:{if(o=n.hj(),K(o)===K(this.c)&&v9(this,null)==n.fj(null))return this.d=5,t=new ob(2),it(t,this.g),it(t,n.gj()),this.g=t,!0;break}}break}case 5:{switch(c=n.ej(),c){case 3:{if(o=n.hj(),K(o)===K(this.c)&&v9(this,null)==n.fj(null))return i=u(this.g,18),i.Ec(n.gj()),!0;break}}break}case 4:{switch(c=n.ej(),c){case 3:{if(o=n.hj(),K(o)===K(this.c)&&v9(this,null)==n.fj(null))return this.d=1,this.g=n.gj(),!0;break}case 4:{if(o=n.hj(),K(o)===K(this.c)&&v9(this,null)==n.fj(null))return this.d=6,l=new ob(2),it(l,this.n),it(l,n.ij()),this.n=l,f=I(S(bt,1),Pt,30,15,[this.o,n.jj()]),this.g=f,!0;break}}break}case 6:{switch(c=n.ej(),c){case 4:{if(o=n.hj(),K(o)===K(this.c)&&v9(this,null)==n.fj(null))return i=u(this.n,18),i.Ec(n.ij()),f=u(this.g,54),r=W(bt,Pt,30,f.length+1,15,1),pu(f,0,r,0,f.length),r[f.length]=n.jj(),this.g=r,!0;break}}break}}return!1},w(wi,"FeatureMapUtil/FeatureENotificationImpl",635),b(554,495,{20:1,31:1,56:1,18:1,16:1,61:1,78:1,163:1,219:1,2001:1,72:1,98:1},OC),s.Ml=function(n,t){return Tre(this.c,n,t)},s.Nl=function(n,t,i){return yre(this.c,n,t,i)},s.Ol=function(n,t,i){return Wre(this.c,n,t,i)},s.Pl=function(){return this},s.Ql=function(n,t){return Mj(this.c,n,t)},s.Rl=function(n){return u(jS(this.c,this.b,n,!1),75).Jk()},s.Sl=function(n){return u(jS(this.c,this.b,n,!1),75).kd()},s.Tl=function(){return this.a},s.Ul=function(n){return!Y7(this.c,n)},s.Vl=function(n,t){ES(this.c,n,t)},s.Wl=function(n){return SFe(this.c,n)},s.Xl=function(n){fJe(this.c,n)},w(wi,"FeatureMapUtil/FeatureFeatureMap",554),b(1259,1,uH,ZCe),s.Dk=function(n){return jS(this.b,this.a,-1,n)},s.Oj=function(){return!Y7(this.b,this.a)},s.Wb=function(n){ES(this.b,this.a,n)},s.Ek=function(){iS(this.b,this.a)},w(wi,"FeatureMapUtil/FeatureValue",1259);var B3,mX,vX,R3,cln,AA=yi(NI,"AnyType");b(670,63,ba,YD),w(NI,"InvalidDatatypeValueException",670);var iN=yi(NI,wYe),MA=yi(NI,gYe),Xwe=yi(NI,pYe),uln,uu,Kwe,N0,oln,sln,fln,lln,hln,aln,dln,bln,wln,gln,pln,Fp,mln,Bp,q8,vln,Qb,CA,xA,yln,z8,U8;b(829,502,{109:1,94:1,93:1,57:1,52:1,100:1,842:1},tW),s.Ih=function(n,t,i){switch(n){case 0:return i?(!this.c&&(this.c=new Pi(this,0)),this.c):(!this.c&&(this.c=new Pi(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Pi(this,0)),u(xu(this.c,(Zt(),N0)),163)):(!this.c&&(this.c=new Pi(this,0)),u(u(xu(this.c,(Zt(),N0)),163),219)).Tl();case 2:return i?(!this.b&&(this.b=new Pi(this,2)),this.b):(!this.b&&(this.b=new Pi(this,2)),this.b.b)}return Os(this,n-Un(this.fi()),un((this.j&2)==0?this.fi():(!this.k&&(this.k=new Wf),this.k).Lk(),n),t,i)},s.Rh=function(n,t,i){var r;switch(t){case 0:return!this.c&&(this.c=new Pi(this,0)),jj(this.c,n,i);case 1:return(!this.c&&(this.c=new Pi(this,0)),u(u(xu(this.c,(Zt(),N0)),163),72)).Vk(n,i);case 2:return!this.b&&(this.b=new Pi(this,2)),jj(this.b,n,i)}return r=u(un((this.j&2)==0?this.fi():(!this.k&&(this.k=new Wf),this.k).Lk(),t),69),r.uk().yk(this,tee(this),t-Un(this.fi()),n,i)},s.Th=function(n){switch(n){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Pi(this,0)),u(xu(this.c,(Zt(),N0)),163)).dc();case 2:return!!this.b&&this.b.i!=0}return Ps(this,n-Un(this.fi()),un((this.j&2)==0?this.fi():(!this.k&&(this.k=new Wf),this.k).Lk(),n))},s.$h=function(n,t){switch(n){case 0:!this.c&&(this.c=new Pi(this,0)),c7(this.c,t);return;case 1:(!this.c&&(this.c=new Pi(this,0)),u(u(xu(this.c,(Zt(),N0)),163),219)).Wb(t);return;case 2:!this.b&&(this.b=new Pi(this,2)),c7(this.b,t);return}Bs(this,n-Un(this.fi()),un((this.j&2)==0?this.fi():(!this.k&&(this.k=new Wf),this.k).Lk(),n),t)},s.fi=function(){return Zt(),Kwe},s.hi=function(n){switch(n){case 0:!this.c&&(this.c=new Pi(this,0)),nt(this.c);return;case 1:(!this.c&&(this.c=new Pi(this,0)),u(xu(this.c,(Zt(),N0)),163)).$b();return;case 2:!this.b&&(this.b=new Pi(this,2)),nt(this.b);return}Fs(this,n-Un(this.fi()),un((this.j&2)==0?this.fi():(!this.k&&(this.k=new Wf),this.k).Lk(),n))},s.Ib=function(){var n;return(this.j&4)!=0?Pf(this):(n=new Ys(Pf(this)),n.a+=" (mixed: ",T6(n,this.c),n.a+=", anyAttribute: ",T6(n,this.b),n.a+=")",n.a)},w(Yi,"AnyTypeImpl",829),b(671,502,{109:1,94:1,93:1,57:1,52:1,100:1,2084:1,671:1},r9e),s.Ih=function(n,t,i){switch(n){case 0:return this.a;case 1:return this.b}return Os(this,n-Un((Zt(),Fp)),un((this.j&2)==0?Fp:(!this.k&&(this.k=new Wf),this.k).Lk(),n),t,i)},s.Th=function(n){switch(n){case 0:return this.a!=null;case 1:return this.b!=null}return Ps(this,n-Un((Zt(),Fp)),un((this.j&2)==0?Fp:(!this.k&&(this.k=new Wf),this.k).Lk(),n))},s.$h=function(n,t){switch(n){case 0:R1n(this,dt(t));return;case 1:J1n(this,dt(t));return}Bs(this,n-Un((Zt(),Fp)),un((this.j&2)==0?Fp:(!this.k&&(this.k=new Wf),this.k).Lk(),n),t)},s.fi=function(){return Zt(),Fp},s.hi=function(n){switch(n){case 0:this.a=null;return;case 1:this.b=null;return}Fs(this,n-Un((Zt(),Fp)),un((this.j&2)==0?Fp:(!this.k&&(this.k=new Wf),this.k).Lk(),n))},s.Ib=function(){var n;return(this.j&4)!=0?Pf(this):(n=new Ys(Pf(this)),n.a+=" (data: ",ac(n,this.a),n.a+=", target: ",ac(n,this.b),n.a+=")",n.a)},s.a=null,s.b=null,w(Yi,"ProcessingInstructionImpl",671),b(672,829,{109:1,94:1,93:1,57:1,52:1,100:1,842:1,2085:1,672:1},OEe),s.Ih=function(n,t,i){switch(n){case 0:return i?(!this.c&&(this.c=new Pi(this,0)),this.c):(!this.c&&(this.c=new Pi(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Pi(this,0)),u(xu(this.c,(Zt(),N0)),163)):(!this.c&&(this.c=new Pi(this,0)),u(u(xu(this.c,(Zt(),N0)),163),219)).Tl();case 2:return i?(!this.b&&(this.b=new Pi(this,2)),this.b):(!this.b&&(this.b=new Pi(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Pi(this,0)),dt(Mj(this.c,(Zt(),q8),!0));case 4:return AQ(this.a,(!this.c&&(this.c=new Pi(this,0)),dt(Mj(this.c,(Zt(),q8),!0))));case 5:return this.a}return Os(this,n-Un((Zt(),Bp)),un((this.j&2)==0?Bp:(!this.k&&(this.k=new Wf),this.k).Lk(),n),t,i)},s.Th=function(n){switch(n){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Pi(this,0)),u(xu(this.c,(Zt(),N0)),163)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Pi(this,0)),dt(Mj(this.c,(Zt(),q8),!0))!=null;case 4:return AQ(this.a,(!this.c&&(this.c=new Pi(this,0)),dt(Mj(this.c,(Zt(),q8),!0))))!=null;case 5:return!!this.a}return Ps(this,n-Un((Zt(),Bp)),un((this.j&2)==0?Bp:(!this.k&&(this.k=new Wf),this.k).Lk(),n))},s.$h=function(n,t){switch(n){case 0:!this.c&&(this.c=new Pi(this,0)),c7(this.c,t);return;case 1:(!this.c&&(this.c=new Pi(this,0)),u(u(xu(this.c,(Zt(),N0)),163),219)).Wb(t);return;case 2:!this.b&&(this.b=new Pi(this,2)),c7(this.b,t);return;case 3:hZ(this,dt(t));return;case 4:hZ(this,EQ(this.a,t));return;case 5:_1n(this,u(t,159));return}Bs(this,n-Un((Zt(),Bp)),un((this.j&2)==0?Bp:(!this.k&&(this.k=new Wf),this.k).Lk(),n),t)},s.fi=function(){return Zt(),Bp},s.hi=function(n){switch(n){case 0:!this.c&&(this.c=new Pi(this,0)),nt(this.c);return;case 1:(!this.c&&(this.c=new Pi(this,0)),u(xu(this.c,(Zt(),N0)),163)).$b();return;case 2:!this.b&&(this.b=new Pi(this,2)),nt(this.b);return;case 3:!this.c&&(this.c=new Pi(this,0)),ES(this.c,(Zt(),q8),null);return;case 4:hZ(this,EQ(this.a,null));return;case 5:this.a=null;return}Fs(this,n-Un((Zt(),Bp)),un((this.j&2)==0?Bp:(!this.k&&(this.k=new Wf),this.k).Lk(),n))},w(Yi,"SimpleAnyTypeImpl",672),b(673,502,{109:1,94:1,93:1,57:1,52:1,100:1,2086:1,673:1},NEe),s.Ih=function(n,t,i){switch(n){case 0:return i?(!this.a&&(this.a=new Pi(this,0)),this.a):(!this.a&&(this.a=new Pi(this,0)),this.a.b);case 1:return i?(!this.b&&(this.b=new mo((nn(),Zr),nu,this,1)),this.b):(!this.b&&(this.b=new mo((nn(),Zr),nu,this,1)),k7(this.b));case 2:return i?(!this.c&&(this.c=new mo((nn(),Zr),nu,this,2)),this.c):(!this.c&&(this.c=new mo((nn(),Zr),nu,this,2)),k7(this.c));case 3:return!this.a&&(this.a=new Pi(this,0)),xu(this.a,(Zt(),CA));case 4:return!this.a&&(this.a=new Pi(this,0)),xu(this.a,(Zt(),xA));case 5:return!this.a&&(this.a=new Pi(this,0)),xu(this.a,(Zt(),z8));case 6:return!this.a&&(this.a=new Pi(this,0)),xu(this.a,(Zt(),U8))}return Os(this,n-Un((Zt(),Qb)),un((this.j&2)==0?Qb:(!this.k&&(this.k=new Wf),this.k).Lk(),n),t,i)},s.Rh=function(n,t,i){var r;switch(t){case 0:return!this.a&&(this.a=new Pi(this,0)),jj(this.a,n,i);case 1:return!this.b&&(this.b=new mo((nn(),Zr),nu,this,1)),kC(this.b,n,i);case 2:return!this.c&&(this.c=new mo((nn(),Zr),nu,this,2)),kC(this.c,n,i);case 5:return!this.a&&(this.a=new Pi(this,0)),ZTe(xu(this.a,(Zt(),z8)),n,i)}return r=u(un((this.j&2)==0?(Zt(),Qb):(!this.k&&(this.k=new Wf),this.k).Lk(),t),69),r.uk().yk(this,tee(this),t-Un((Zt(),Qb)),n,i)},s.Th=function(n){switch(n){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new Pi(this,0)),!tC(xu(this.a,(Zt(),CA)));case 4:return!this.a&&(this.a=new Pi(this,0)),!tC(xu(this.a,(Zt(),xA)));case 5:return!this.a&&(this.a=new Pi(this,0)),!tC(xu(this.a,(Zt(),z8)));case 6:return!this.a&&(this.a=new Pi(this,0)),!tC(xu(this.a,(Zt(),U8)))}return Ps(this,n-Un((Zt(),Qb)),un((this.j&2)==0?Qb:(!this.k&&(this.k=new Wf),this.k).Lk(),n))},s.$h=function(n,t){switch(n){case 0:!this.a&&(this.a=new Pi(this,0)),c7(this.a,t);return;case 1:!this.b&&(this.b=new mo((nn(),Zr),nu,this,1)),cT(this.b,t);return;case 2:!this.c&&(this.c=new mo((nn(),Zr),nu,this,2)),cT(this.c,t);return;case 3:!this.a&&(this.a=new Pi(this,0)),Xp(xu(this.a,(Zt(),CA))),!this.a&&(this.a=new Pi(this,0)),O6(xu(this.a,CA),u(t,18));return;case 4:!this.a&&(this.a=new Pi(this,0)),Xp(xu(this.a,(Zt(),xA))),!this.a&&(this.a=new Pi(this,0)),O6(xu(this.a,xA),u(t,18));return;case 5:!this.a&&(this.a=new Pi(this,0)),Xp(xu(this.a,(Zt(),z8))),!this.a&&(this.a=new Pi(this,0)),O6(xu(this.a,z8),u(t,18));return;case 6:!this.a&&(this.a=new Pi(this,0)),Xp(xu(this.a,(Zt(),U8))),!this.a&&(this.a=new Pi(this,0)),O6(xu(this.a,U8),u(t,18));return}Bs(this,n-Un((Zt(),Qb)),un((this.j&2)==0?Qb:(!this.k&&(this.k=new Wf),this.k).Lk(),n),t)},s.fi=function(){return Zt(),Qb},s.hi=function(n){switch(n){case 0:!this.a&&(this.a=new Pi(this,0)),nt(this.a);return;case 1:!this.b&&(this.b=new mo((nn(),Zr),nu,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new mo((nn(),Zr),nu,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Pi(this,0)),Xp(xu(this.a,(Zt(),CA)));return;case 4:!this.a&&(this.a=new Pi(this,0)),Xp(xu(this.a,(Zt(),xA)));return;case 5:!this.a&&(this.a=new Pi(this,0)),Xp(xu(this.a,(Zt(),z8)));return;case 6:!this.a&&(this.a=new Pi(this,0)),Xp(xu(this.a,(Zt(),U8)));return}Fs(this,n-Un((Zt(),Qb)),un((this.j&2)==0?Qb:(!this.k&&(this.k=new Wf),this.k).Lk(),n))},s.Ib=function(){var n;return(this.j&4)!=0?Pf(this):(n=new Ys(Pf(this)),n.a+=" (mixed: ",T6(n,this.a),n.a+=")",n.a)},w(Yi,"XMLTypeDocumentRootImpl",673),b(1993,710,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1,2087:1},Z6e),s.oi=function(n,t){switch(n.fk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:Oc(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return dt(t);case 6:return Mwn(u(t,195));case 12:case 47:case 49:case 11:return sXe(this,n,t);case 13:return t==null?null:CNn(u(t,247));case 15:case 14:return t==null?null:Emn(J(H(t)));case 17:return YJe((Zt(),t));case 18:return YJe(t);case 21:case 20:return t==null?null:Amn(u(t,164).a);case 27:return Cwn(u(t,195));case 30:return lJe((Zt(),u(t,16)));case 31:return lJe(u(t,16));case 40:return Awn((Zt(),t));case 42:return ZJe((Zt(),t));case 43:return ZJe(t);case 59:case 48:return Ewn((Zt(),t));default:throw x(new An(K4+n.ve()+Nb))}},s.pi=function(n){var t,i,r,c,o;switch(n.G==-1&&(n.G=(i=hs(n),i?Qa(i.si(),n):-1)),n.G){case 0:return t=new tW,t;case 1:return r=new r9e,r;case 2:return c=new OEe,c;case 3:return o=new NEe,o;default:throw x(new An(qG+n.zb+Nb))}},s.qi=function(n,t){var i,r,c,o,f,l,h,a,d,g,m,y,j,A,T,L;switch(n.fk()){case 5:case 52:case 4:return t;case 6:return H7n(t);case 8:case 7:return t==null?null:xAn(t);case 9:return t==null?null:I7(ws((r=Pu(t,!0),r.length>0&&(Pn(0,r.length),r.charCodeAt(0)==43)?(Pn(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:I7(ws((c=Pu(t,!0),c.length>0&&(Pn(0,c.length),c.charCodeAt(0)==43)?(Pn(1,c.length+1),c.substr(1)):c),-128,127)<<24>>24);case 11:return dt(Ab(this,(Zt(),fln),t));case 12:return dt(Ab(this,(Zt(),lln),t));case 13:return t==null?null:new EW(Pu(t,!0));case 15:case 14:return LTn(t);case 16:return dt(Ab(this,(Zt(),hln),t));case 17:return d_e((Zt(),t));case 18:return d_e(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Pu(t,!0);case 21:case 20:return zTn(t);case 22:return dt(Ab(this,(Zt(),aln),t));case 23:return dt(Ab(this,(Zt(),dln),t));case 24:return dt(Ab(this,(Zt(),bln),t));case 25:return dt(Ab(this,(Zt(),wln),t));case 26:return dt(Ab(this,(Zt(),gln),t));case 27:return D7n(t);case 30:return b_e((Zt(),t));case 31:return b_e(t);case 32:return t==null?null:fe(ws((d=Pu(t,!0),d.length>0&&(Pn(0,d.length),d.charCodeAt(0)==43)?(Pn(1,d.length+1),d.substr(1)):d),Mr,Ft));case 33:return t==null?null:new I1((g=Pu(t,!0),g.length>0&&(Pn(0,g.length),g.charCodeAt(0)==43)?(Pn(1,g.length+1),g.substr(1)):g));case 34:return t==null?null:fe(ws((m=Pu(t,!0),m.length>0&&(Pn(0,m.length),m.charCodeAt(0)==43)?(Pn(1,m.length+1),m.substr(1)):m),Mr,Ft));case 36:return t==null?null:zw(xS((y=Pu(t,!0),y.length>0&&(Pn(0,y.length),y.charCodeAt(0)==43)?(Pn(1,y.length+1),y.substr(1)):y)));case 37:return t==null?null:zw(xS((j=Pu(t,!0),j.length>0&&(Pn(0,j.length),j.charCodeAt(0)==43)?(Pn(1,j.length+1),j.substr(1)):j)));case 40:return Ijn((Zt(),t));case 42:return w_e((Zt(),t));case 43:return w_e(t);case 44:return t==null?null:new I1((A=Pu(t,!0),A.length>0&&(Pn(0,A.length),A.charCodeAt(0)==43)?(Pn(1,A.length+1),A.substr(1)):A));case 45:return t==null?null:new I1((T=Pu(t,!0),T.length>0&&(Pn(0,T.length),T.charCodeAt(0)==43)?(Pn(1,T.length+1),T.substr(1)):T));case 46:return Pu(t,!1);case 47:return dt(Ab(this,(Zt(),pln),t));case 59:case 48:return Sjn((Zt(),t));case 49:return dt(Ab(this,(Zt(),mln),t));case 50:return t==null?null:Vv(ws((L=Pu(t,!0),L.length>0&&(Pn(0,L.length),L.charCodeAt(0)==43)?(Pn(1,L.length+1),L.substr(1)):L),SI,32767)<<16>>16);case 51:return t==null?null:Vv(ws((o=Pu(t,!0),o.length>0&&(Pn(0,o.length),o.charCodeAt(0)==43)?(Pn(1,o.length+1),o.substr(1)):o),SI,32767)<<16>>16);case 53:return dt(Ab(this,(Zt(),vln),t));case 55:return t==null?null:Vv(ws((f=Pu(t,!0),f.length>0&&(Pn(0,f.length),f.charCodeAt(0)==43)?(Pn(1,f.length+1),f.substr(1)):f),SI,32767)<<16>>16);case 56:return t==null?null:Vv(ws((l=Pu(t,!0),l.length>0&&(Pn(0,l.length),l.charCodeAt(0)==43)?(Pn(1,l.length+1),l.substr(1)):l),SI,32767)<<16>>16);case 57:return t==null?null:zw(xS((h=Pu(t,!0),h.length>0&&(Pn(0,h.length),h.charCodeAt(0)==43)?(Pn(1,h.length+1),h.substr(1)):h)));case 58:return t==null?null:zw(xS((a=Pu(t,!0),a.length>0&&(Pn(0,a.length),a.charCodeAt(0)==43)?(Pn(1,a.length+1),a.substr(1)):a)));case 60:return t==null?null:fe(ws((i=Pu(t,!0),i.length>0&&(Pn(0,i.length),i.charCodeAt(0)==43)?(Pn(1,i.length+1),i.substr(1)):i),Mr,Ft));case 61:return t==null?null:fe(ws(Pu(t,!0),Mr,Ft));default:throw x(new An(K4+n.ve()+Nb))}};var kln,Wwe,jln,Vwe;w(Yi,"XMLTypeFactoryImpl",1993),b(583,184,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1,2009:1,583:1},OPe),s.N=!1,s.O=!1;var Eln=!1;w(Yi,"XMLTypePackageImpl",583),b(1926,1,{836:1},e9e),s.Ik=function(){return Rre(),Oln},w(Yi,"XMLTypePackageImpl/1",1926),b(1935,1,Nt,n9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/10",1935),b(1936,1,Nt,t9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/11",1936),b(1937,1,Nt,i9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/12",1937),b(1938,1,Nt,c9e),s.dk=function(n){return bw(n)},s.ek=function(n){return W(zi,ge,346,n,7,1)},w(Yi,"XMLTypePackageImpl/13",1938),b(1939,1,Nt,u9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/14",1939),b(1940,1,Nt,o9e),s.dk=function(n){return F(n,16)},s.ek=function(n){return W(vs,ug,16,n,0,1)},w(Yi,"XMLTypePackageImpl/15",1940),b(1941,1,Nt,s9e),s.dk=function(n){return F(n,16)},s.ek=function(n){return W(vs,ug,16,n,0,1)},w(Yi,"XMLTypePackageImpl/16",1941),b(1942,1,Nt,f9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/17",1942),b(1943,1,Nt,l9e),s.dk=function(n){return F(n,164)},s.ek=function(n){return W(t5,ge,164,n,0,1)},w(Yi,"XMLTypePackageImpl/18",1943),b(1944,1,Nt,h9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/19",1944),b(1927,1,Nt,a9e),s.dk=function(n){return F(n,842)},s.ek=function(n){return W(AA,ln,842,n,0,1)},w(Yi,"XMLTypePackageImpl/2",1927),b(1945,1,Nt,d9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/20",1945),b(1946,1,Nt,b9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/21",1946),b(1947,1,Nt,w9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/22",1947),b(1948,1,Nt,g9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/23",1948),b(1949,1,Nt,p9e),s.dk=function(n){return F(n,195)},s.ek=function(n){return W(Ao,ge,195,n,0,2)},w(Yi,"XMLTypePackageImpl/24",1949),b(1950,1,Nt,m9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/25",1950),b(1951,1,Nt,v9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/26",1951),b(1952,1,Nt,y9e),s.dk=function(n){return F(n,16)},s.ek=function(n){return W(vs,ug,16,n,0,1)},w(Yi,"XMLTypePackageImpl/27",1952),b(1953,1,Nt,k9e),s.dk=function(n){return F(n,16)},s.ek=function(n){return W(vs,ug,16,n,0,1)},w(Yi,"XMLTypePackageImpl/28",1953),b(1954,1,Nt,j9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/29",1954),b(1928,1,Nt,E9e),s.dk=function(n){return F(n,671)},s.ek=function(n){return W(iN,ln,2084,n,0,1)},w(Yi,"XMLTypePackageImpl/3",1928),b(1955,1,Nt,A9e),s.dk=function(n){return F(n,15)},s.ek=function(n){return W(Zi,ge,15,n,0,1)},w(Yi,"XMLTypePackageImpl/30",1955),b(1956,1,Nt,M9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/31",1956),b(1957,1,Nt,C9e),s.dk=function(n){return F(n,190)},s.ek=function(n){return W(Lb,ge,190,n,0,1)},w(Yi,"XMLTypePackageImpl/32",1957),b(1958,1,Nt,x9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/33",1958),b(1959,1,Nt,T9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/34",1959),b(1960,1,Nt,S9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/35",1960),b(1961,1,Nt,I9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/36",1961),b(1962,1,Nt,P9e),s.dk=function(n){return F(n,16)},s.ek=function(n){return W(vs,ug,16,n,0,1)},w(Yi,"XMLTypePackageImpl/37",1962),b(1963,1,Nt,O9e),s.dk=function(n){return F(n,16)},s.ek=function(n){return W(vs,ug,16,n,0,1)},w(Yi,"XMLTypePackageImpl/38",1963),b(1964,1,Nt,N9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/39",1964),b(1929,1,Nt,D9e),s.dk=function(n){return F(n,672)},s.ek=function(n){return W(MA,ln,2085,n,0,1)},w(Yi,"XMLTypePackageImpl/4",1929),b(1965,1,Nt,L9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/40",1965),b(1966,1,Nt,$9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/41",1966),b(1967,1,Nt,F9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/42",1967),b(1968,1,Nt,B9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/43",1968),b(1969,1,Nt,R9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/44",1969),b(1970,1,Nt,_9e),s.dk=function(n){return F(n,191)},s.ek=function(n){return W($b,ge,191,n,0,1)},w(Yi,"XMLTypePackageImpl/45",1970),b(1971,1,Nt,J9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/46",1971),b(1972,1,Nt,G9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/47",1972),b(1973,1,Nt,H9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/48",1973),b(1974,1,Nt,q9e),s.dk=function(n){return F(n,191)},s.ek=function(n){return W($b,ge,191,n,0,1)},w(Yi,"XMLTypePackageImpl/49",1974),b(1930,1,Nt,z9e),s.dk=function(n){return F(n,673)},s.ek=function(n){return W(Xwe,ln,2086,n,0,1)},w(Yi,"XMLTypePackageImpl/5",1930),b(1975,1,Nt,U9e),s.dk=function(n){return F(n,190)},s.ek=function(n){return W(Lb,ge,190,n,0,1)},w(Yi,"XMLTypePackageImpl/50",1975),b(1976,1,Nt,X9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/51",1976),b(1977,1,Nt,K9e),s.dk=function(n){return F(n,15)},s.ek=function(n){return W(Zi,ge,15,n,0,1)},w(Yi,"XMLTypePackageImpl/52",1977),b(1931,1,Nt,W9e),s.dk=function(n){return pr(n)},s.ek=function(n){return W(Ie,ge,2,n,6,1)},w(Yi,"XMLTypePackageImpl/6",1931),b(1932,1,Nt,V9e),s.dk=function(n){return F(n,195)},s.ek=function(n){return W(Ao,ge,195,n,0,2)},w(Yi,"XMLTypePackageImpl/7",1932),b(1933,1,Nt,Q9e),s.dk=function(n){return dw(n)},s.ek=function(n){return W(xi,ge,473,n,8,1)},w(Yi,"XMLTypePackageImpl/8",1933),b(1934,1,Nt,Y9e),s.dk=function(n){return F(n,221)},s.ek=function(n){return W(s3,ge,221,n,0,1)},w(Yi,"XMLTypePackageImpl/9",1934);var ql,v1,X8,rN,O;b(53,63,ba,pt),w(c1,"RegEx/ParseException",53),b(821,1,{},uK),s._l=function(n){return n<this.j&&Nr(this.i,n)==63},s.am=function(){var n,t,i,r,c;if(this.c!=10)throw x(new pt(vt((at(),kI))));switch(n=this.a,n){case 101:n=27;break;case 102:n=12;break;case 110:n=10;break;case 114:n=13;break;case 116:n=9;break;case 120:if(Rt(this),this.c!=0)throw x(new pt(vt((at(),r1))));if(this.a==123){c=0,i=0;do{if(Rt(this),this.c!=0)throw x(new pt(vt((at(),r1))));if((c=r0(this.a))<0)break;if(i>i*16)throw x(new pt(vt((at(),TQe))));i=i*16+c}while(!0);if(this.a!=125)throw x(new pt(vt((at(),SQe))));if(i>Z4)throw x(new pt(vt((at(),IQe))));n=i}else{if(c=0,this.c!=0||(c=r0(this.a))<0)throw x(new pt(vt((at(),r1))));if(i=c,Rt(this),this.c!=0||(c=r0(this.a))<0)throw x(new pt(vt((at(),r1))));i=i*16+c,n=i}break;case 117:if(r=0,Rt(this),this.c!=0||(r=r0(this.a))<0)throw x(new pt(vt((at(),r1))));if(t=r,Rt(this),this.c!=0||(r=r0(this.a))<0)throw x(new pt(vt((at(),r1))));if(t=t*16+r,Rt(this),this.c!=0||(r=r0(this.a))<0)throw x(new pt(vt((at(),r1))));if(t=t*16+r,Rt(this),this.c!=0||(r=r0(this.a))<0)throw x(new pt(vt((at(),r1))));t=t*16+r,n=t;break;case 118:if(Rt(this),this.c!=0||(r=r0(this.a))<0)throw x(new pt(vt((at(),r1))));if(t=r,Rt(this),this.c!=0||(r=r0(this.a))<0)throw x(new pt(vt((at(),r1))));if(t=t*16+r,Rt(this),this.c!=0||(r=r0(this.a))<0)throw x(new pt(vt((at(),r1))));if(t=t*16+r,Rt(this),this.c!=0||(r=r0(this.a))<0)throw x(new pt(vt((at(),r1))));if(t=t*16+r,Rt(this),this.c!=0||(r=r0(this.a))<0)throw x(new pt(vt((at(),r1))));if(t=t*16+r,Rt(this),this.c!=0||(r=r0(this.a))<0)throw x(new pt(vt((at(),r1))));if(t=t*16+r,t>Z4)throw x(new pt(vt((at(),"parser.descappe.4"))));n=t;break;case 65:case 90:case 122:throw x(new pt(vt((at(),PQe))))}return n},s.bm=function(n){var t,i;switch(n){case 100:i=(this.e&32)==32?Y1("Nd",!0):(_t(),cN);break;case 68:i=(this.e&32)==32?Y1("Nd",!1):(_t(),tge);break;case 119:i=(this.e&32)==32?Y1("IsWord",!0):(_t(),J5);break;case 87:i=(this.e&32)==32?Y1("IsWord",!1):(_t(),rge);break;case 115:i=(this.e&32)==32?Y1("IsSpace",!0):(_t(),_3);break;case 83:i=(this.e&32)==32?Y1("IsSpace",!1):(_t(),ige);break;default:throw x(new Lc((t=n,PYe+t.toString(16))))}return i},s.cm=function(n){var t,i,r,c,o,f,l,h,a,d,g,m;for(this.b=1,Rt(this),t=null,this.c==0&&this.a==94?(Rt(this),n?d=(_t(),_t(),new fs(5)):(t=(_t(),_t(),new fs(4)),Iu(t,0,Z4),d=new fs(4))):d=(_t(),_t(),new fs(4)),c=!0;(m=this.c)!=1&&!(m==0&&this.a==93&&!c);){if(c=!1,i=this.a,r=!1,m==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:tg(d,this.bm(i)),r=!0;break;case 105:case 73:case 99:case 67:i=this.sm(d,i),i<0&&(r=!0);break;case 112:case 80:if(g=Pie(this,i),!g)throw x(new pt(vt((at(),iH))));tg(d,g),r=!0;break;default:i=this.am()}else if(m==20){if(f=hv(this.i,58,this.d),f<0)throw x(new pt(vt((at(),Pse))));if(l=!0,Nr(this.i,this.d)==94&&(++this.d,l=!1),o=ef(this.i,this.d,f),h=$Le(o,l,(this.e&512)==512),!h)throw x(new pt(vt((at(),EQe))));if(tg(d,h),r=!0,f+1>=this.j||Nr(this.i,f+1)!=93)throw x(new pt(vt((at(),Pse))));this.d=f+2}if(Rt(this),!r)if(this.c!=0||this.a!=45)Iu(d,i,i);else{if(Rt(this),(m=this.c)==1)throw x(new pt(vt((at(),jI))));m==0&&this.a==93?(Iu(d,i,i),Iu(d,45,45)):(a=this.a,m==10&&(a=this.am()),Rt(this),Iu(d,i,a))}(this.e&Df)==Df&&this.c==0&&this.a==44&&Rt(this)}if(this.c==1)throw x(new pt(vt((at(),jI))));return t&&(V9(t,d),d=t),z2(d),K9(d),this.b=0,Rt(this),d},s.dm=function(){var n,t,i,r;for(i=this.cm(!1);(r=this.c)!=7;)if(n=this.a,r==0&&(n==45||n==38)||r==4){if(Rt(this),this.c!=9)throw x(new pt(vt((at(),MQe))));if(t=this.cm(!1),r==4)tg(i,t);else if(n==45)V9(i,t);else if(n==38)rXe(i,t);else throw x(new Lc("ASSERT"))}else throw x(new pt(vt((at(),CQe))));return Rt(this),i},s.em=function(){var n,t;return n=this.a-48,t=(_t(),_t(),new lF(12,null,n)),!this.g&&(this.g=new hM),lM(this.g,new GK(n)),Rt(this),t},s.fm=function(){return Rt(this),_t(),Cln},s.gm=function(){return Rt(this),_t(),Mln},s.hm=function(){throw x(new pt(vt((at(),Gs))))},s.im=function(){throw x(new pt(vt((at(),Gs))))},s.jm=function(){return Rt(this),c8n()},s.km=function(){return Rt(this),_t(),Tln},s.lm=function(){return Rt(this),_t(),Iln},s.mm=function(){var n;if(this.d>=this.j||((n=Nr(this.i,this.d++))&65504)!=64)throw x(new pt(vt((at(),yQe))));return Rt(this),_t(),_t(),new jh(0,n-64)},s.nm=function(){return Rt(this),TOn()},s.om=function(){return Rt(this),_t(),Pln},s.pm=function(){var n;return n=(_t(),_t(),new jh(0,105)),Rt(this),n},s.qm=function(){return Rt(this),_t(),Sln},s.rm=function(){return Rt(this),_t(),xln},s.sm=function(n,t){return this.am()},s.tm=function(){return Rt(this),_t(),ege},s.um=function(){var n,t,i,r,c;if(this.d+1>=this.j)throw x(new pt(vt((at(),pQe))));if(r=-1,t=null,n=Nr(this.i,this.d),49<=n&&n<=57){if(r=n-48,!this.g&&(this.g=new hM),lM(this.g,new GK(r)),++this.d,Nr(this.i,this.d)!=41)throw x(new pt(vt((at(),w0))));++this.d}else switch(n==63&&--this.d,Rt(this),t=hce(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw x(new pt(vt((at(),w0))));break;default:throw x(new pt(vt((at(),mQe))))}if(Rt(this),c=wb(this),i=null,c.e==2){if(c.Nm()!=2)throw x(new pt(vt((at(),vQe))));i=c.Jm(1),c=c.Jm(0)}if(this.c!=7)throw x(new pt(vt((at(),w0))));return Rt(this),_t(),_t(),new G$e(r,t,c,i)},s.vm=function(){return Rt(this),_t(),nge},s.wm=function(){var n;if(Rt(this),n=KC(24,wb(this)),this.c!=7)throw x(new pt(vt((at(),w0))));return Rt(this),n},s.xm=function(){var n;if(Rt(this),n=KC(20,wb(this)),this.c!=7)throw x(new pt(vt((at(),w0))));return Rt(this),n},s.ym=function(){var n;if(Rt(this),n=KC(22,wb(this)),this.c!=7)throw x(new pt(vt((at(),w0))));return Rt(this),n},s.zm=function(){var n,t,i,r,c;for(n=0,i=0,t=-1;this.d<this.j&&(t=Nr(this.i,this.d),c=Fie(t),c!=0);)n|=c,++this.d;if(this.d>=this.j)throw x(new pt(vt((at(),Sse))));if(t==45){for(++this.d;this.d<this.j&&(t=Nr(this.i,this.d),c=Fie(t),c!=0);)i|=c,++this.d;if(this.d>=this.j)throw x(new pt(vt((at(),Sse))))}if(t==58){if(++this.d,Rt(this),r=fPe(wb(this),n,i),this.c!=7)throw x(new pt(vt((at(),w0))));Rt(this)}else if(t==41)++this.d,Rt(this),r=fPe(wb(this),n,i);else throw x(new pt(vt((at(),gQe))));return r},s.Am=function(){var n;if(Rt(this),n=KC(21,wb(this)),this.c!=7)throw x(new pt(vt((at(),w0))));return Rt(this),n},s.Bm=function(){var n;if(Rt(this),n=KC(23,wb(this)),this.c!=7)throw x(new pt(vt((at(),w0))));return Rt(this),n},s.Cm=function(){var n,t;if(Rt(this),n=this.f++,t=J$(wb(this),n),this.c!=7)throw x(new pt(vt((at(),w0))));return Rt(this),t},s.Dm=function(){var n;if(Rt(this),n=J$(wb(this),0),this.c!=7)throw x(new pt(vt((at(),w0))));return Rt(this),n},s.Em=function(n){return Rt(this),this.c==5?(Rt(this),BC(n,(_t(),_t(),new Ow(9,n)))):BC(n,(_t(),_t(),new Ow(3,n)))},s.Fm=function(n){var t;return Rt(this),t=(_t(),_t(),new P6(2)),this.c==5?(Rt(this),o0(t,W8),o0(t,n)):(o0(t,n),o0(t,W8)),t},s.Gm=function(n){return Rt(this),this.c==5?(Rt(this),_t(),_t(),new Ow(9,n)):(_t(),_t(),new Ow(3,n))},s.a=0,s.b=0,s.c=0,s.d=0,s.e=0,s.f=1,s.g=null,s.j=0,w(c1,"RegEx/RegexParser",821),b(1913,821,{},DEe),s._l=function(n){return!1},s.am=function(){return gre(this)},s.bm=function(n){return m4(n)},s.cm=function(n){return QXe(this)},s.dm=function(){throw x(new pt(vt((at(),Gs))))},s.em=function(){throw x(new pt(vt((at(),Gs))))},s.fm=function(){throw x(new pt(vt((at(),Gs))))},s.gm=function(){throw x(new pt(vt((at(),Gs))))},s.hm=function(){return Rt(this),m4(67)},s.im=function(){return Rt(this),m4(73)},s.jm=function(){throw x(new pt(vt((at(),Gs))))},s.km=function(){throw x(new pt(vt((at(),Gs))))},s.lm=function(){throw x(new pt(vt((at(),Gs))))},s.mm=function(){return Rt(this),m4(99)},s.nm=function(){throw x(new pt(vt((at(),Gs))))},s.om=function(){throw x(new pt(vt((at(),Gs))))},s.pm=function(){return Rt(this),m4(105)},s.qm=function(){throw x(new pt(vt((at(),Gs))))},s.rm=function(){throw x(new pt(vt((at(),Gs))))},s.sm=function(n,t){return tg(n,m4(t)),-1},s.tm=function(){return Rt(this),_t(),_t(),new jh(0,94)},s.um=function(){throw x(new pt(vt((at(),Gs))))},s.vm=function(){return Rt(this),_t(),_t(),new jh(0,36)},s.wm=function(){throw x(new pt(vt((at(),Gs))))},s.xm=function(){throw x(new pt(vt((at(),Gs))))},s.ym=function(){throw x(new pt(vt((at(),Gs))))},s.zm=function(){throw x(new pt(vt((at(),Gs))))},s.Am=function(){throw x(new pt(vt((at(),Gs))))},s.Bm=function(){throw x(new pt(vt((at(),Gs))))},s.Cm=function(){var n;if(Rt(this),n=J$(wb(this),0),this.c!=7)throw x(new pt(vt((at(),w0))));return Rt(this),n},s.Dm=function(){throw x(new pt(vt((at(),Gs))))},s.Em=function(n){return Rt(this),BC(n,(_t(),_t(),new Ow(3,n)))},s.Fm=function(n){var t;return Rt(this),t=(_t(),_t(),new P6(2)),o0(t,n),o0(t,W8),t},s.Gm=function(n){return Rt(this),_t(),_t(),new Ow(3,n)};var Rp=null,R5=null;w(c1,"RegEx/ParserForXMLSchema",1913),b(121,1,e5,J0),s.Hm=function(n){throw x(new Lc("Not supported."))},s.Im=function(){return-1},s.Jm=function(n){return null},s.Km=function(){return null},s.Lm=function(n){},s.Mm=function(n){},s.Nm=function(){return 0},s.Ib=function(){return this.Om(0)},s.Om=function(n){return this.e==11?".":""},s.e=0;var Qwe,_5,K8,Aln,Ywe,Vg=null,cN,yX=null,Zwe,W8,kX=null,ege,nge,tge,ige,rge,Mln,_3,Cln,xln,Tln,Sln,J5,Iln,Pln,JFn=w(c1,"RegEx/Token",121);b(137,121,{3:1,137:1,121:1},fs),s.Om=function(n){var t,i,r;if(this.e==4)if(this==Zwe)i=".";else if(this==cN)i="\\d";else if(this==J5)i="\\w";else if(this==_3)i="\\s";else{for(r=new Na,r.a+="[",t=0;t<this.b.length;t+=2)(n&Df)!=0&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?ac(r,Aj(this.b[t])):(ac(r,Aj(this.b[t])),r.a+="-",ac(r,Aj(this.b[t+1])));r.a+="]",i=r.a}else if(this==tge)i="\\D";else if(this==rge)i="\\W";else if(this==ige)i="\\S";else{for(r=new Na,r.a+="[^",t=0;t<this.b.length;t+=2)(n&Df)!=0&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?ac(r,Aj(this.b[t])):(ac(r,Aj(this.b[t])),r.a+="-",ac(r,Aj(this.b[t+1])));r.a+="]",i=r.a}return i},s.a=!1,s.c=!1,w(c1,"RegEx/RangeToken",137),b(581,1,{581:1},GK),s.a=0,w(c1,"RegEx/RegexParser/ReferencePosition",581),b(580,1,{3:1,580:1},gMe),s.Fb=function(n){var t;return n==null||!F(n,580)?!1:(t=u(n,580),Ke(this.b,t.b)&&this.a==t.a)},s.Hb=function(){return Ua(this.b+"/"+fre(this.a))},s.Ib=function(){return this.c.Om(this.a)},s.a=0,w(c1,"RegEx/RegularExpression",580),b(228,121,e5,jh),s.Im=function(){return this.a},s.Om=function(n){var t,i,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r="\\"+a$(this.a&Qi);break;case 12:r="\\f";break;case 10:r="\\n";break;case 13:r="\\r";break;case 9:r="\\t";break;case 27:r="\\e";break;default:this.a>=Vr?(i=(t=this.a>>>0,"0"+t.toString(16)),r="\\v"+ef(i,i.length-6,i.length)):r=""+a$(this.a&Qi)}break;case 8:this==ege||this==nge?r=""+a$(this.a&Qi):r="\\"+a$(this.a&Qi);break;default:r=null}return r},s.a=0,w(c1,"RegEx/Token/CharToken",228),b(323,121,e5,Ow),s.Jm=function(n){return this.a},s.Lm=function(n){this.b=n},s.Mm=function(n){this.c=n},s.Nm=function(){return 1},s.Om=function(n){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.Om(n)+"*";else if(this.c==this.b)t=this.a.Om(n)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.Om(n)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)t=this.a.Om(n)+"{"+this.c+",}";else throw x(new Lc("Token#toString(): CLOSURE "+this.c+Ju+this.b));else if(this.c<0&&this.b<0)t=this.a.Om(n)+"*?";else if(this.c==this.b)t=this.a.Om(n)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.Om(n)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)t=this.a.Om(n)+"{"+this.c+",}?";else throw x(new Lc("Token#toString(): NONGREEDYCLOSURE "+this.c+Ju+this.b));return t},s.b=0,s.c=0,w(c1,"RegEx/Token/ClosureToken",323),b(822,121,e5,kY),s.Jm=function(n){return n==0?this.a:this.b},s.Nm=function(){return 2},s.Om=function(n){var t;return this.b.e==3&&this.b.Jm(0)==this.a?t=this.a.Om(n)+"+":this.b.e==9&&this.b.Jm(0)==this.a?t=this.a.Om(n)+"+?":t=this.a.Om(n)+(""+this.b.Om(n)),t},w(c1,"RegEx/Token/ConcatToken",822),b(1911,121,e5,G$e),s.Jm=function(n){if(n==0)return this.d;if(n==1)return this.b;throw x(new Lc("Internal Error: "+n))},s.Nm=function(){return this.b?2:1},s.Om=function(n){var t;return this.c>0?t="(?("+this.c+")":this.a.e==8?t="(?("+this.a+")":t="(?"+this.a,this.b?t+=this.d+"|"+this.b+")":t+=this.d+")",t},s.c=0,w(c1,"RegEx/Token/ConditionToken",1911),b(1912,121,e5,aNe),s.Jm=function(n){return this.b},s.Nm=function(){return 1},s.Om=function(n){return"(?"+(this.a==0?"":fre(this.a))+(this.c==0?"":fre(this.c))+":"+this.b.Om(n)+")"},s.a=0,s.c=0,w(c1,"RegEx/Token/ModifierToken",1912),b(823,121,e5,OY),s.Jm=function(n){return this.a},s.Nm=function(){return 1},s.Om=function(n){var t;switch(t=null,this.e){case 6:this.b==0?t="(?:"+this.a.Om(n)+")":t="("+this.a.Om(n)+")";break;case 20:t="(?="+this.a.Om(n)+")";break;case 21:t="(?!"+this.a.Om(n)+")";break;case 22:t="(?<="+this.a.Om(n)+")";break;case 23:t="(?<!"+this.a.Om(n)+")";break;case 24:t="(?>"+this.a.Om(n)+")"}return t},s.b=0,w(c1,"RegEx/Token/ParenToken",823),b(518,121,{3:1,121:1,518:1},lF),s.Km=function(){return this.b},s.Om=function(n){return this.e==12?"\\"+this.a:kTn(this.b)},s.a=0,w(c1,"RegEx/Token/StringToken",518),b(466,121,e5,P6),s.Hm=function(n){o0(this,n)},s.Jm=function(n){return u(eb(this.a,n),121)},s.Nm=function(){return this.a?this.a.a.c.length:0},s.Om=function(n){var t,i,r,c,o;if(this.e==1){if(this.a.a.c.length==2)t=u(eb(this.a,0),121),i=u(eb(this.a,1),121),i.e==3&&i.Jm(0)==t?c=t.Om(n)+"+":i.e==9&&i.Jm(0)==t?c=t.Om(n)+"+?":c=t.Om(n)+(""+i.Om(n));else{for(o=new Na,r=0;r<this.a.a.c.length;r++)ac(o,u(eb(this.a,r),121).Om(n));c=o.a}return c}if(this.a.a.c.length==2&&u(eb(this.a,1),121).e==7)c=u(eb(this.a,0),121).Om(n)+"?";else if(this.a.a.c.length==2&&u(eb(this.a,0),121).e==7)c=u(eb(this.a,1),121).Om(n)+"??";else{for(o=new Na,ac(o,u(eb(this.a,0),121).Om(n)),r=1;r<this.a.a.c.length;r++)o.a+="|",ac(o,u(eb(this.a,r),121).Om(n));c=o.a}return c},w(c1,"RegEx/Token/UnionToken",466),b(515,1,{590:1},vk),s.Ib=function(){return this.a.b},w(LYe,"XMLTypeUtil/PatternMatcherImpl",515),b(1676,1489,{},Z9e);var Oln;w(LYe,"XMLTypeValidator",1676),b(270,1,Ph,Bd),s.Ic=function(n){Dr(this,n)},s.Jc=function(){return(this.b-this.a)*this.c<0?xd:new P1(this)},s.a=0,s.b=0,s.c=0;var xd;w(Vse,"ExclusiveRange",270),b(1055,1,Ih,eye),s.Rb=function(n){u(n,15),abn()},s.Nb=function(n){Ir(this,n)},s.Pb=function(){return e0n()},s.Ub=function(){return n0n()},s.Wb=function(n){u(n,15),hbn()},s.Ob=function(){return!1},s.Sb=function(){return!1},s.Tb=function(){return-1},s.Vb=function(){return-1},s.Qb=function(){throw x(new Pa(BYe))},w(Vse,"ExclusiveRange/1",1055),b(259,1,Ih,P1),s.Rb=function(n){u(n,15),dbn()},s.Nb=function(n){Ir(this,n)},s.Pb=function(){return S8n(this)},s.Ub=function(){return C6n(this)},s.Wb=function(n){u(n,15),bbn()},s.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},s.Sb=function(){return this.b>0},s.Tb=function(){return this.b},s.Vb=function(){return this.b-1},s.Qb=function(){throw x(new Pa(BYe))},s.a=0,s.b=0,w(Vse,"ExclusiveRange/RangeIterator",259);var Ks=Ev(EI,"C"),bt=Ev(Ay,"I"),ao=Ev(Vm,"Z"),Yb=Ev(My,"J"),Ao=Ev(ky,"B"),jr=Ev(jy,"D"),Qg=Ev(Ey,"F"),_p=Ev(Cy,"S"),GFn=yi("org.eclipse.elk.core.labels","ILabelManager"),cge=yi(Kr,"DiagnosticChain"),uge=yi(aYe,"ResourceSet"),oge=w(Kr,"InvocationTargetException",null),Nln=(pM(),G5n),Dln=Dln=hAn;T9n(ndn),z9n("permProps",[[["locale","default"],[RYe,"gecko1_8"]],[["locale","default"],[RYe,"safari"]]]),Dln(null,"elk",null)}).call(this)}).call(this,typeof $ln<"u"?$ln:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(P,N,D){function $(re){"@babel/helpers - typeof";return $=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(we){return typeof we}:function(we){return we&&typeof Symbol=="function"&&we.constructor===Symbol&&we!==Symbol.prototype?"symbol":typeof we},$(re)}function v(re,we,ee){return Object.defineProperty(re,"prototype",{writable:!1}),re}function q(re,we){if(!(re instanceof we))throw new TypeError("Cannot call a class as a function")}function te(re,we,ee){return we=z(we),ie(re,oe()?Reflect.construct(we,ee||[],z(re).constructor):we.apply(re,ee))}function ie(re,we){if(we&&($(we)=="object"||typeof we=="function"))return we;if(we!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pe(re)}function pe(re){if(re===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return re}function oe(){try{var re=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oe=function(){return!!re})()}function z(re){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(we){return we.__proto__||Object.getPrototypeOf(we)},z(re)}function ne(re,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function");re.prototype=Object.create(we&&we.prototype,{constructor:{value:re,writable:!0,configurable:!0}}),Object.defineProperty(re,"prototype",{writable:!1}),we&&Z(re,we)}function Z(re,we){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,Ce){return ee.__proto__=Ce,ee},Z(re,we)}var U=P("./elk-api.js").default,Ee=(function(re){function we(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};q(this,we);var Ce=Object.assign({},ee),Qe=!1;try{P.resolve("web-worker"),Qe=!0}catch{}if(ee.workerUrl)if(Qe){var Xe=P("web-worker");Ce.workerFactory=function(jn){return new Xe(jn)}}else console.warn(`Web worker requested but 'web-worker' package not installed.
29
29
  Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
30
- ... Falling back to non-web worker version.`);if(!Ce.workerFactory){var Ze=P("./elk-worker.min.js"),vn=Ze.Worker;Ce.workerFactory=function(jn){return new vn(jn)}}return te(this,we,[Ce])}return ne(we,re),v(we)})(U);Object.defineProperty(N.exports,"__esModule",{value:!0}),N.exports=Ee,Ee.default=Ee},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(P,N,D){var $=typeof Worker<"u"?Worker:void 0;N.exports=$},{}]},{},[3])(3)})})(yge)),yge.exports}var cHn=rHn();const uHn=nBn(cHn),oHn=new uHn,DX=240,LX=150,sHn=48;async function fHn(p,E,P){if(p.length===0)return p;const N=p.filter(z=>z.type==="namespace-group"),D=p.filter(z=>z.type==="agent"),$=p.filter(z=>z.type==="adapter"),v=$.map(z=>{var ne,Z;return{id:z.id,width:((ne=z.style)==null?void 0:ne.width)??DX,height:((Z=z.style)==null?void 0:Z.height)??LX,layoutOptions:{"elk.layered.layering.layerConstraint":"FIRST"}}}),q=P?N.map(z=>{const ne=D.filter(Z=>Z.parentId===z.id).map(Z=>({id:Z.id,width:DX,height:LX}));return{id:z.id,width:0,height:0,layoutOptions:{"elk.padding":`[top=${sHn},left=24,bottom=24,right=24]`,"elk.algorithm":"layered","elk.direction":"RIGHT","elk.spacing.nodeNode":"60"},children:ne}}):D.map(z=>({id:z.id,width:DX,height:LX,...$.length>0?{layoutOptions:{"elk.layered.layering.layerConstraint":"LAST"}}:{}})),te=[...v,...q],ie=E.map(z=>({id:z.id,sources:[z.source],targets:[z.target]})),pe={id:"root",layoutOptions:{"elk.algorithm":"layered","elk.direction":"RIGHT","elk.spacing.nodeNode":"80","elk.layered.spacing.nodeNodeBetweenLayers":"120"},children:te,edges:ie},oe=await oHn.layout(pe);return p.map(z=>{var Z,U,Ee,re,we;if(z.type==="namespace-group"){const ee=(Z=oe.children)==null?void 0:Z.find(Ce=>Ce.id===z.id);return ee?{...z,position:{x:ee.x??0,y:ee.y??0},style:{width:ee.width??300,height:ee.height??200}}:z}if(z.type==="adapter"){const ee=(U=oe.children)==null?void 0:U.find(Ce=>Ce.id===z.id);return ee?{...z,position:{x:ee.x??0,y:ee.y??0}}:z}if(P&&z.parentId){const ee=(Ee=oe.children)==null?void 0:Ee.find(Qe=>Qe.id===z.parentId),Ce=(re=ee==null?void 0:ee.children)==null?void 0:re.find(Qe=>Qe.id===z.id);return Ce?{...z,position:{x:Ce.x??0,y:Ce.y??0}}:z}const ne=(we=oe.children)==null?void 0:we.find(ee=>ee.id===z.id);return ne?{...z,position:{x:ne.x??0,y:ne.y??0}}:z})}function lHn({rawNodes:p,deleteBindingMutate:E,createBindingMutate:P}){const{setCenter:N,getZoom:D}=zX(),[$,v]=cn.useState([]),[q,te]=cn.useState([]),ie=cn.useRef([]),[pe,oe]=cn.useState(!0),[z,ne]=cn.useState(null),[Z,U]=cn.useState(null),[Ee,re]=cn.useState(!1),we=cn.useRef(new Map),[ee,Ce]=cn.useState(0),[Qe,Xe]=cn.useState(null),Ze=cn.useCallback(Nn=>Nn.replace(/^binding:/,""),[]),vn=cn.useCallback(Nn=>{Xe(Nn)},[]),jn=cn.useCallback(()=>{Xe(Nn=>(Nn&&E(Ze(Nn)),null))},[E,Ze]),et=cn.useCallback(()=>Xe(null),[]),Dn=cn.useCallback(Nn=>{v(qn=>kan(Nn,qn))},[]),Kn=cn.useCallback((Nn,qn)=>{we.current.set(qn.id,qn.position),re(!0)},[]),_=cn.useCallback(Nn=>{const qn=[];for(const Jt of Nn){if(Jt.type==="remove"&&Jt.id.startsWith("binding:")){Xe(Jt.id);continue}qn.push(Jt)}qn.length>0&&te(Jt=>jan(qn,Jt))},[]),je=cn.useCallback(()=>{we.current.clear(),re(!1),Ce(Nn=>Nn+1)},[]),rn=cn.useCallback((Nn,qn)=>{if(qn.type!=="agent")return;let Jt=qn.position.x+DX/2,Xt=qn.position.y+LX/2;if(qn.parentId){const gr=ie.current.find(Ki=>Ki.id===qn.parentId);gr&&(Jt+=gr.position.x,Xt+=gr.position.y)}const Oi=Math.max(D(),1);N(Jt,Xt,{zoom:Oi,duration:350})},[N,D]),sn=cn.useCallback(Nn=>{var Xt;const qn=p.find(Oi=>Oi.id===Nn.source),Jt=p.find(Oi=>Oi.id===Nn.target);return(Xt=qn==null?void 0:qn.data)!=null&&Xt.isGhost?!1:(qn==null?void 0:qn.type)==="adapter"&&(Jt==null?void 0:Jt.type)==="agent"},[p]),Sn=cn.useCallback(Nn=>{const qn=p.find(Xt=>Xt.id===Nn.source),Jt=p.find(Xt=>Xt.id===Nn.target);(qn==null?void 0:qn.type)!=="adapter"||(Jt==null?void 0:Jt.type)!=="agent"||ne({sourceAdapterId:qn.id.replace(/^adapter:/,""),targetAgentId:Jt.id})},[p]),Bn=cn.useCallback(Nn=>{P(ABn(Nn)),ne(null)},[P]),dn=cn.useCallback((Nn,qn)=>{if(!qn.nodeId)return;const Jt=p.find(Xt=>Xt.id===qn.nodeId);(Jt==null?void 0:Jt.type)==="adapter"&&U(qn.nodeId)},[p]),Jn=cn.useCallback(()=>{U(null)},[]);return{layoutedNodes:$,setLayoutedNodes:v,layoutedEdges:q,setLayoutedEdges:te,layoutedNodesRef:ie,isLayouting:pe,setIsLayouting:oe,manualPositions:we,layoutVersion:ee,pendingConnection:z,setPendingConnection:ne,connectingFrom:Z,hasDraggedNodes:Ee,pendingDeleteEdgeId:Qe,confirmDeleteBinding:jn,cancelDeleteBinding:et,handleDeleteBinding:vn,handleNodesChange:Dn,handleNodeDragStop:Kn,handleEdgesChange:_,handleResetLayout:je,handleNodeClick:rn,isValidConnection:sn,handleConnect:Sn,handleBindingConfirm:Bn,handleConnectStart:dn,handleConnectEnd:Jn}}const Ohn=["#6366f1","#f59e0b","#10b981","#ec4899","#d946ef","#14b8a6","#f97316","#06b6d4"];function hHn(p){return Ohn[p%Ohn.length]}function aHn(p,E,P,N,D,$,v,q){var Z,U,Ee,re;if(!p.length)return{rawNodes:[],rawEdges:[],legendEntries:[],useGroups:!1};const te=[],ie=[],pe=[],oe=(N==null?void 0:N.filter(we=>we.config.type!=="claude-code"))??[];if(P&&oe.length>0)for(const we of oe)te.push({id:`adapter:${we.config.id}`,type:"adapter",position:{x:0,y:0},data:{adapterName:we.status.displayName,adapterType:we.config.type,adapterStatus:we.status.state==="connected"?"running":we.status.state==="error"?"error":"stopped",bindingCount:$.get(we.config.id)??0,label:we.config.label}});P&&oe.length===0&&te.push({id:"ghost-adapter",type:"adapter",position:{x:0,y:0},data:{adapterName:"Add a platform",adapterType:"ghost",adapterStatus:"stopped",bindingCount:0,isGhost:!0,onGhostClick:()=>{var we;return(we=q.onGhostClick)==null?void 0:we.call(q)}}});const z=p.length>=1;for(let we=0;we<p.length;we++){const ee=p[we],Ce=hHn(we);pe.push({namespace:ee.namespace,color:Ce});const Qe=`group:${ee.namespace}`,Xe=ee.agents.filter(Ze=>Ze.healthStatus==="active").length;z&&te.push({id:Qe,type:"namespace-group",position:{x:0,y:0},data:{namespace:ee.namespace,agentCount:ee.agentCount,activeCount:Xe,color:Ce}});for(const Ze of ee.agents){const vn=Ze,jn=tBn(vn),et={id:Ze.id,type:"agent",position:{x:0,y:0},data:{label:Ze.name,runtime:Ze.runtime,healthStatus:vn.healthStatus??"stale",capabilities:Ze.capabilities??[],namespace:ee.namespace,namespaceColor:Ce,description:Ze.description||void 0,relayAdapters:vn.relayAdapters??[],taskCount:vn.taskCount??0,lastSeenAt:vn.lastSeenAt??null,behavior:Ze.behavior?{responseMode:Ze.behavior.responseMode}:void 0,color:vn.color??null,avatarColor:jn.color,emoji:jn.emoji,projectPath:vn.projectPath??"",onViewProfile:Dn=>{var Kn;return(Kn=q.onViewProfile)==null?void 0:Kn.call(q,Dn,vn.projectPath??"")},onSelectAgent:Dn=>{var Kn;return(Kn=q.onSelectAgent)==null?void 0:Kn.call(q,Dn,vn.projectPath??"")},onOpenChat:(Dn,Kn)=>{var _;return(_=q.onOpenChat)==null?void 0:_.call(q,Kn)}}};z&&(et.parentId=Qe,et.extent="parent"),te.push(et)}}if(P&&(D!=null&&D.length))for(const we of D){const ee=`adapter:${we.adapterId}`,Ce=we.agentId,Qe=te.some(Ze=>Ze.id===ee),Xe=te.some(Ze=>Ze.id===Ce);!Qe||!Xe||ie.push({id:`binding:${we.id}`,source:ee,target:Ce,type:"binding",deletable:!0,data:{label:we.label||void 0,sessionStrategy:we.sessionStrategy,chatId:we.chatId||void 0,channelType:we.channelType||void 0,onDelete:v}})}const ne=E.filter(we=>we.origin!=="default"&&we.sourceNamespace!==Fln&&we.targetNamespace!==Fln);for(const we of ne){const ee=z?`group:${we.sourceNamespace}`:((U=(Z=p[0])==null?void 0:Z.agents[0])==null?void 0:U.id)??"",Ce=z?`group:${we.targetNamespace}`:((re=(Ee=p[0])==null?void 0:Ee.agents[0])==null?void 0:re.id)??"";if(!ee||!Ce)continue;const Qe=we.action==="deny";ie.push({id:`e:${we.sourceNamespace}-${we.targetNamespace}:${we.action}`,source:ee,target:Ce,type:Qe?"cross-namespace-deny":"cross-namespace",animated:!Qe,deletable:!1,data:{label:`${we.sourceNamespace} › ${we.targetNamespace}`}})}return{rawNodes:te,rawEdges:ie,legendEntries:pe,useGroups:z}}function dHn(p){const E=_X(N=>N.pulse),P=jN();iBn("relay_flow",N=>{if(!p||P)return;const D=rBn.safeParse(N);if(!D.success)return;const{bindingId:$,direction:v}=D.data;E(`binding:${$}`,v)})}const bHn={agent:DGn,adapter:HGn,"namespace-group":YGn},wHn={binding:VGn,"cross-namespace":ZGn,"cross-namespace-deny":eHn};function XHn(p){return le.jsx(Kan,{children:le.jsx(gHn,{...p})})}function gHn({onSelectAgent:p,onViewProfile:E,onGoToDiscovery:P,onOpenChat:N,onOpenAdapterCatalog:D}){const{data:$,isLoading:v,isError:q,refetch:te}=TBn(),ie=$==null?void 0:$.namespaces,pe=$==null?void 0:$.accessRules,oe=($==null?void 0:$.openMesh)??!1,z=cBn(),ne=uBn("(pointer: coarse)"),[Z,U]=cn.useState(!1),Ee=OBn(),{data:re}=oBn(Ee),{data:we}=IBn(),{mutate:ee}=MBn(),{mutate:Ce}=PBn();dHn(Ee),cn.useEffect(()=>()=>{_X.getState().reset()},[]);const Qe=AX(E),Xe=AX(p),Ze=AX(N),vn=AX(D),jn=cn.useMemo(()=>{const ec=new Map;for(const pf of we??[])ec.set(pf.adapterId,(ec.get(pf.adapterId)??0)+1);return ec},[we]),et=sBn(()=>{}),{rawNodes:Dn,rawEdges:Kn,legendEntries:_,useGroups:je}=cn.useMemo(()=>aHn(ie??[],pe??[],Ee,re,we,jn,ec=>et.read()(ec),{onViewProfile:(ec,pf)=>{var Kf;return(Kf=Qe.read())==null?void 0:Kf(ec,pf)},onSelectAgent:(ec,pf)=>{var Kf;return(Kf=Xe.read())==null?void 0:Kf(ec,pf)},onOpenChat:ec=>{var pf;return(pf=Ze.read())==null?void 0:pf(ec)},onGhostClick:()=>{var ec;return(ec=vn.read())==null?void 0:ec()}}),[ie,pe,Ee,re,we,jn,et,Qe,Xe,Ze,vn]),{layoutedNodes:rn,setLayoutedNodes:sn,layoutedEdges:Sn,setLayoutedEdges:Bn,layoutedNodesRef:dn,isLayouting:Jn,setIsLayouting:Nn,manualPositions:qn,layoutVersion:Jt,pendingConnection:Xt,setPendingConnection:Oi,connectingFrom:gr,hasDraggedNodes:Ki,pendingDeleteEdgeId:Wn,confirmDeleteBinding:ei,cancelDeleteBinding:rr,handleDeleteBinding:cr,handleNodesChange:_i,handleNodeDragStop:sr,handleEdgesChange:ri,handleResetLayout:ai,handleNodeClick:Mc,isValidConnection:ku,handleConnect:ic,handleBindingConfirm:Sa,handleConnectStart:ph,handleConnectEnd:j1}=lHn({rawNodes:Dn,deleteBindingMutate:Ce,createBindingMutate:ee});et.write(cr);const u2=cn.useMemo(()=>{const ec=Dn.map(Kf=>`${Kf.id}:${Kf.type}:${Kf.parentId??""}`).sort().join("|"),pf=Kn.map(Kf=>`${Kf.source}->${Kf.target}:${Kf.type}`).sort().join("|");return`${ec}::${pf}`},[Dn,Kn]);cn.useEffect(()=>{let ec=!1;return Nn(!0),fHn(Dn,Kn,je).then(pf=>{if(!ec){const Kf=pf.map(z3=>{const U5=qn.current.get(z3.id);return U5?{...z3,position:U5}:z3});sn(Kf),Bn(Kn),U(!1),Nn(!1)}}).catch(pf=>{console.warn("[topology] layout failed; the map has no nodes to draw",pf),ec||(U(!0),Nn(!1))}),()=>{ec=!0}},[u2,je,Jt]),cn.useEffect(()=>{dn.current=rn},[rn,dn]);const zl=Ee&&((re==null?void 0:re.length)??0)>0,R0=((we==null?void 0:we.length)??0)>0,mh=Dn.some(ec=>ec.type==="agent");if(v||Jn&&rn.length===0)return le.jsx("div",{className:"flex h-full items-center justify-center",children:le.jsx(Bln,{size:"md",className:"text-muted-foreground",label:"Loading the topology"})});if(q)return le.jsx(Rln,{className:"h-full",title:"Couldn’t draw the map of your agents",description:"Couldn’t reach DorkOS. Check that it’s running.",onRetry:()=>void te()});if(Z&&rn.length===0)return le.jsx(Rln,{className:"h-full",title:"Couldn’t draw the map of your agents",description:"Your agents are fine. Only the map couldn’t be drawn.",onRetry:()=>{te(),ai()}});if(!Dn.length)return le.jsx(SBn,{className:"h-full",icon:fBn,headline:"No agents found yet",headingLevel:3,description:"Find agents on this computer to see them here.",action:P?{label:"Go to Discovery",onClick:P,variant:"outline"}:void 0});const Ia=Dn.filter(ec=>ec.type==="agent").length,Sd=Dn.filter(ec=>ec.type==="adapter").length,Gp=Kn.filter(ec=>ec.type==="binding").length;return le.jsxs("div",{className:i2("topology-container absolute inset-0",gr&&"is-connecting"),role:"group","aria-roledescription":"agent map","aria-label":"Map of your agents","aria-describedby":"topology-graph-summary",children:[le.jsxs("div",{id:"topology-graph-summary",className:"sr-only",children:[le.jsxs("p",{children:[Ia," agent",Ia!==1?"s":"",", ",Sd," platform",Sd!==1?"s":"",", ",Gp," connection",Gp!==1?"s":"","."]}),le.jsx("p",{children:"To connect by keyboard, use the agent’s Connections section."})]}),le.jsxs(JJn,{nodes:rn,edges:Sn,nodeTypes:bHn,edgeTypes:wHn,deleteKeyCode:null,onNodesChange:_i,onEdgesChange:ri,onNodeClick:Mc,onNodeDragStop:sr,onConnect:zl?ic:void 0,onConnectStart:zl?ph:void 0,onConnectEnd:zl?j1:void 0,isValidConnection:zl?ku:void 0,nodesConnectable:zl,nodesFocusable:!0,edgesFocusable:!0,fitView:!0,fitViewOptions:{duration:400,padding:.15},minZoom:.2,colorMode:"system",onlyRenderVisibleElements:!0,proOptions:{hideAttribution:!0},children:[le.jsx(XJn,{variant:q3.Dots,gap:16,size:1,color:"hsl(var(--muted-foreground) / 0.15)"}),le.jsx(bGn,{nodeColor:ec=>ec.type==="adapter"?"hsl(var(--muted-foreground) / 0.4)":ec.type==="namespace-group"?"transparent":ec.data.namespaceColor??"hsl(var(--primary))",maskColor:"hsl(var(--background) / 0.8)",pannable:!0,zoomable:!0,className:"!right-2 !bottom-2",style:{height:80}}),le.jsx(eGn,{showInteractive:!1,position:"top-right"}),Ki&&le.jsx("div",{className:"absolute bottom-2 left-2 z-10",children:le.jsxs(Sge,{variant:"outline",size:"xs",onClick:ai,title:"Reset layout",className:"shadow-sm",children:[le.jsx(lBn,{}),"Reset layout"]})}),le.jsx(tHn,{namespaces:_})]}),oe&&le.jsx(iHn,{}),Ee&&mh&&!zl&&le.jsx("div",{className:"bg-muted/80 text-muted-foreground pointer-events-none absolute bottom-3 left-1/2 -translate-x-1/2 rounded-md px-3 py-1.5 text-xs",children:"Add a chat app in Connections, then connect it to an agent"}),zl&&mh&&!R0&&!z&&!ne&&le.jsx("div",{className:"bg-muted/80 text-muted-foreground pointer-events-none absolute bottom-3 left-1/2 -translate-x-1/2 rounded-md px-3 py-1.5 text-xs",children:"Drag from a platform to an agent to connect them"}),Jn&&le.jsx("div",{className:"pointer-events-none absolute top-3 right-3 z-10",children:le.jsx(Bln,{className:"text-muted-foreground/70"})}),Xt&&le.jsx(CBn,{open:!0,onOpenChange:ec=>{ec||Oi(null)},mode:"create",initialValues:{adapterId:Xt.sourceAdapterId,agentId:Xt.targetAgentId},onConfirm:Sa}),le.jsx(hBn,{open:!!Wn,onOpenChange:ec=>{ec||rr()},children:le.jsxs(aBn,{children:[le.jsxs(dBn,{children:[le.jsx(bBn,{children:"Remove this connection?"}),le.jsx(wBn,{children:"The agent stops getting messages from it."})]}),le.jsxs(gBn,{children:[le.jsx(pBn,{children:"Cancel"}),le.jsx(mBn,{onClick:ei,className:vBn({variant:"destructive"}),children:"Remove connection"})]})]})})]})}export{XHn as TopologyGraph};
30
+ ... Falling back to non-web worker version.`);if(!Ce.workerFactory){var Ze=P("./elk-worker.min.js"),vn=Ze.Worker;Ce.workerFactory=function(jn){return new vn(jn)}}return te(this,we,[Ce])}return ne(we,re),v(we)})(U);Object.defineProperty(N.exports,"__esModule",{value:!0}),N.exports=Ee,Ee.default=Ee},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(P,N,D){var $=typeof Worker<"u"?Worker:void 0;N.exports=$},{}]},{},[3])(3)})})(yge)),yge.exports}var cHn=rHn();const uHn=nBn(cHn),oHn=new uHn,DX=240,LX=150,sHn=48;async function fHn(p,E,P){if(p.length===0)return p;const N=p.filter(z=>z.type==="namespace-group"),D=p.filter(z=>z.type==="agent"),$=p.filter(z=>z.type==="adapter"),v=$.map(z=>{var ne,Z;return{id:z.id,width:((ne=z.style)==null?void 0:ne.width)??DX,height:((Z=z.style)==null?void 0:Z.height)??LX,layoutOptions:{"elk.layered.layering.layerConstraint":"FIRST"}}}),q=P?N.map(z=>{const ne=D.filter(Z=>Z.parentId===z.id).map(Z=>({id:Z.id,width:DX,height:LX}));return{id:z.id,width:0,height:0,layoutOptions:{"elk.padding":`[top=${sHn},left=24,bottom=24,right=24]`,"elk.algorithm":"layered","elk.direction":"RIGHT","elk.spacing.nodeNode":"60"},children:ne}}):D.map(z=>({id:z.id,width:DX,height:LX,...$.length>0?{layoutOptions:{"elk.layered.layering.layerConstraint":"LAST"}}:{}})),te=[...v,...q],ie=E.map(z=>({id:z.id,sources:[z.source],targets:[z.target]})),pe={id:"root",layoutOptions:{"elk.algorithm":"layered","elk.direction":"RIGHT","elk.spacing.nodeNode":"80","elk.layered.spacing.nodeNodeBetweenLayers":"120"},children:te,edges:ie},oe=await oHn.layout(pe);return p.map(z=>{var Z,U,Ee,re,we;if(z.type==="namespace-group"){const ee=(Z=oe.children)==null?void 0:Z.find(Ce=>Ce.id===z.id);return ee?{...z,position:{x:ee.x??0,y:ee.y??0},style:{width:ee.width??300,height:ee.height??200}}:z}if(z.type==="adapter"){const ee=(U=oe.children)==null?void 0:U.find(Ce=>Ce.id===z.id);return ee?{...z,position:{x:ee.x??0,y:ee.y??0}}:z}if(P&&z.parentId){const ee=(Ee=oe.children)==null?void 0:Ee.find(Qe=>Qe.id===z.parentId),Ce=(re=ee==null?void 0:ee.children)==null?void 0:re.find(Qe=>Qe.id===z.id);return Ce?{...z,position:{x:Ce.x??0,y:Ce.y??0}}:z}const ne=(we=oe.children)==null?void 0:we.find(ee=>ee.id===z.id);return ne?{...z,position:{x:ne.x??0,y:ne.y??0}}:z})}function lHn({rawNodes:p,deleteBindingMutate:E,createBindingMutate:P}){const{setCenter:N,getZoom:D}=zX(),[$,v]=cn.useState([]),[q,te]=cn.useState([]),ie=cn.useRef([]),[pe,oe]=cn.useState(!0),[z,ne]=cn.useState(null),[Z,U]=cn.useState(null),[Ee,re]=cn.useState(!1),we=cn.useRef(new Map),[ee,Ce]=cn.useState(0),[Qe,Xe]=cn.useState(null),Ze=cn.useCallback(Nn=>Nn.replace(/^binding:/,""),[]),vn=cn.useCallback(Nn=>{Xe(Nn)},[]),jn=cn.useCallback(()=>{Xe(Nn=>(Nn&&E(Ze(Nn)),null))},[E,Ze]),et=cn.useCallback(()=>Xe(null),[]),Dn=cn.useCallback(Nn=>{v(qn=>kan(Nn,qn))},[]),Kn=cn.useCallback((Nn,qn)=>{we.current.set(qn.id,qn.position),re(!0)},[]),_=cn.useCallback(Nn=>{const qn=[];for(const Jt of Nn){if(Jt.type==="remove"&&Jt.id.startsWith("binding:")){Xe(Jt.id);continue}qn.push(Jt)}qn.length>0&&te(Jt=>jan(qn,Jt))},[]),je=cn.useCallback(()=>{we.current.clear(),re(!1),Ce(Nn=>Nn+1)},[]),rn=cn.useCallback((Nn,qn)=>{if(qn.type!=="agent")return;let Jt=qn.position.x+DX/2,Xt=qn.position.y+LX/2;if(qn.parentId){const gr=ie.current.find(Ki=>Ki.id===qn.parentId);gr&&(Jt+=gr.position.x,Xt+=gr.position.y)}const Oi=Math.max(D(),1);N(Jt,Xt,{zoom:Oi,duration:350})},[N,D]),sn=cn.useCallback(Nn=>{var Xt;const qn=p.find(Oi=>Oi.id===Nn.source),Jt=p.find(Oi=>Oi.id===Nn.target);return(Xt=qn==null?void 0:qn.data)!=null&&Xt.isGhost?!1:(qn==null?void 0:qn.type)==="adapter"&&(Jt==null?void 0:Jt.type)==="agent"},[p]),Sn=cn.useCallback(Nn=>{const qn=p.find(Xt=>Xt.id===Nn.source),Jt=p.find(Xt=>Xt.id===Nn.target);(qn==null?void 0:qn.type)!=="adapter"||(Jt==null?void 0:Jt.type)!=="agent"||ne({sourceAdapterId:qn.id.replace(/^adapter:/,""),targetAgentId:Jt.id})},[p]),Bn=cn.useCallback(Nn=>{P(ABn(Nn)),ne(null)},[P]),dn=cn.useCallback((Nn,qn)=>{if(!qn.nodeId)return;const Jt=p.find(Xt=>Xt.id===qn.nodeId);(Jt==null?void 0:Jt.type)==="adapter"&&U(qn.nodeId)},[p]),Jn=cn.useCallback(()=>{U(null)},[]);return{layoutedNodes:$,setLayoutedNodes:v,layoutedEdges:q,setLayoutedEdges:te,layoutedNodesRef:ie,isLayouting:pe,setIsLayouting:oe,manualPositions:we,layoutVersion:ee,pendingConnection:z,setPendingConnection:ne,connectingFrom:Z,hasDraggedNodes:Ee,pendingDeleteEdgeId:Qe,confirmDeleteBinding:jn,cancelDeleteBinding:et,handleDeleteBinding:vn,handleNodesChange:Dn,handleNodeDragStop:Kn,handleEdgesChange:_,handleResetLayout:je,handleNodeClick:rn,isValidConnection:sn,handleConnect:Sn,handleBindingConfirm:Bn,handleConnectStart:dn,handleConnectEnd:Jn}}const Ohn=["#6366f1","#f59e0b","#10b981","#ec4899","#d946ef","#14b8a6","#f97316","#06b6d4"];function hHn(p){return Ohn[p%Ohn.length]}function aHn(p,E,P,N,D,$,v,q){var Z,U,Ee,re;if(!p.length)return{rawNodes:[],rawEdges:[],legendEntries:[],useGroups:!1};const te=[],ie=[],pe=[],oe=(N==null?void 0:N.filter(we=>we.config.type!=="claude-code"))??[];if(P&&oe.length>0)for(const we of oe)te.push({id:`adapter:${we.config.id}`,type:"adapter",position:{x:0,y:0},data:{adapterName:we.status.displayName,adapterType:we.config.type,adapterStatus:we.status.state==="connected"?"running":we.status.state==="error"?"error":"stopped",bindingCount:$.get(we.config.id)??0,label:we.config.label}});P&&oe.length===0&&te.push({id:"ghost-adapter",type:"adapter",position:{x:0,y:0},data:{adapterName:"Add a platform",adapterType:"ghost",adapterStatus:"stopped",bindingCount:0,isGhost:!0,onGhostClick:()=>{var we;return(we=q.onGhostClick)==null?void 0:we.call(q)}}});const z=p.length>=1;for(let we=0;we<p.length;we++){const ee=p[we],Ce=hHn(we);pe.push({namespace:ee.namespace,color:Ce});const Qe=`group:${ee.namespace}`,Xe=ee.agents.filter(Ze=>Ze.healthStatus==="active").length;z&&te.push({id:Qe,type:"namespace-group",position:{x:0,y:0},data:{namespace:ee.namespace,agentCount:ee.agentCount,activeCount:Xe,color:Ce}});for(const Ze of ee.agents){const vn=Ze,jn=tBn(vn),et={id:Ze.id,type:"agent",position:{x:0,y:0},data:{label:Ze.name,runtime:Ze.runtime,healthStatus:vn.healthStatus??"stale",capabilities:Ze.capabilities??[],namespace:ee.namespace,namespaceColor:Ce,description:Ze.description||void 0,relayAdapters:vn.relayAdapters??[],taskCount:vn.taskCount??0,lastSeenAt:vn.lastSeenAt??null,behavior:Ze.behavior?{responseMode:Ze.behavior.responseMode}:void 0,color:vn.color??null,avatarColor:jn.color,emoji:jn.emoji,projectPath:vn.projectPath??"",onViewProfile:Dn=>{var Kn;return(Kn=q.onViewProfile)==null?void 0:Kn.call(q,Dn,vn.projectPath??"")},onSelectAgent:Dn=>{var Kn;return(Kn=q.onSelectAgent)==null?void 0:Kn.call(q,Dn,vn.projectPath??"")},onOpenChat:(Dn,Kn)=>{var _;return(_=q.onOpenChat)==null?void 0:_.call(q,Kn)}}};z&&(et.parentId=Qe,et.extent="parent"),te.push(et)}}if(P&&(D!=null&&D.length))for(const we of D){const ee=`adapter:${we.adapterId}`,Ce=we.agentId,Qe=te.some(Ze=>Ze.id===ee),Xe=te.some(Ze=>Ze.id===Ce);!Qe||!Xe||ie.push({id:`binding:${we.id}`,source:ee,target:Ce,type:"binding",deletable:!0,data:{label:we.label||void 0,sessionStrategy:we.sessionStrategy,chatId:we.chatId||void 0,channelType:we.channelType||void 0,onDelete:v}})}const ne=E.filter(we=>we.origin!=="default"&&we.sourceNamespace!==Fln&&we.targetNamespace!==Fln);for(const we of ne){const ee=z?`group:${we.sourceNamespace}`:((U=(Z=p[0])==null?void 0:Z.agents[0])==null?void 0:U.id)??"",Ce=z?`group:${we.targetNamespace}`:((re=(Ee=p[0])==null?void 0:Ee.agents[0])==null?void 0:re.id)??"";if(!ee||!Ce)continue;const Qe=we.action==="deny";ie.push({id:`e:${we.sourceNamespace}-${we.targetNamespace}:${we.action}`,source:ee,target:Ce,type:Qe?"cross-namespace-deny":"cross-namespace",animated:!Qe,deletable:!1,data:{label:`${we.sourceNamespace} › ${we.targetNamespace}`}})}return{rawNodes:te,rawEdges:ie,legendEntries:pe,useGroups:z}}function dHn(p){const E=_X(N=>N.pulse),P=jN();iBn("relay_flow",N=>{if(!p||P)return;const D=rBn.safeParse(N);if(!D.success)return;const{bindingId:$,direction:v}=D.data;E(`binding:${$}`,v)})}const bHn={agent:DGn,adapter:HGn,"namespace-group":YGn},wHn={binding:VGn,"cross-namespace":ZGn,"cross-namespace-deny":eHn};function UHn(p){return le.jsx(Kan,{children:le.jsx(gHn,{...p})})}function gHn({onSelectAgent:p,onViewProfile:E,onGoToDiscovery:P,onOpenChat:N,onOpenAdapterCatalog:D}){const{data:$,isLoading:v,isError:q,refetch:te}=TBn(),ie=$==null?void 0:$.namespaces,pe=$==null?void 0:$.accessRules,oe=($==null?void 0:$.openMesh)??!1,z=cBn(),ne=uBn("(pointer: coarse)"),[Z,U]=cn.useState(!1),Ee=OBn(),{data:re}=oBn(Ee),{data:we}=IBn(),{mutate:ee}=MBn(),{mutate:Ce}=PBn();dHn(Ee),cn.useEffect(()=>()=>{_X.getState().reset()},[]);const Qe=AX(E),Xe=AX(p),Ze=AX(N),vn=AX(D),jn=cn.useMemo(()=>{const ec=new Map;for(const pf of we??[])ec.set(pf.adapterId,(ec.get(pf.adapterId)??0)+1);return ec},[we]),et=sBn(()=>{}),{rawNodes:Dn,rawEdges:Kn,legendEntries:_,useGroups:je}=cn.useMemo(()=>aHn(ie??[],pe??[],Ee,re,we,jn,ec=>et.read()(ec),{onViewProfile:(ec,pf)=>{var Kf;return(Kf=Qe.read())==null?void 0:Kf(ec,pf)},onSelectAgent:(ec,pf)=>{var Kf;return(Kf=Xe.read())==null?void 0:Kf(ec,pf)},onOpenChat:ec=>{var pf;return(pf=Ze.read())==null?void 0:pf(ec)},onGhostClick:()=>{var ec;return(ec=vn.read())==null?void 0:ec()}}),[ie,pe,Ee,re,we,jn,et,Qe,Xe,Ze,vn]),{layoutedNodes:rn,setLayoutedNodes:sn,layoutedEdges:Sn,setLayoutedEdges:Bn,layoutedNodesRef:dn,isLayouting:Jn,setIsLayouting:Nn,manualPositions:qn,layoutVersion:Jt,pendingConnection:Xt,setPendingConnection:Oi,connectingFrom:gr,hasDraggedNodes:Ki,pendingDeleteEdgeId:Wn,confirmDeleteBinding:ei,cancelDeleteBinding:rr,handleDeleteBinding:cr,handleNodesChange:_i,handleNodeDragStop:sr,handleEdgesChange:ri,handleResetLayout:ai,handleNodeClick:Mc,isValidConnection:ku,handleConnect:ic,handleBindingConfirm:Sa,handleConnectStart:ph,handleConnectEnd:j1}=lHn({rawNodes:Dn,deleteBindingMutate:Ce,createBindingMutate:ee});et.write(cr);const u2=cn.useMemo(()=>{const ec=Dn.map(Kf=>`${Kf.id}:${Kf.type}:${Kf.parentId??""}`).sort().join("|"),pf=Kn.map(Kf=>`${Kf.source}->${Kf.target}:${Kf.type}`).sort().join("|");return`${ec}::${pf}`},[Dn,Kn]);cn.useEffect(()=>{let ec=!1;return Nn(!0),fHn(Dn,Kn,je).then(pf=>{if(!ec){const Kf=pf.map(z3=>{const U5=qn.current.get(z3.id);return U5?{...z3,position:U5}:z3});sn(Kf),Bn(Kn),U(!1),Nn(!1)}}).catch(pf=>{console.warn("[topology] layout failed; the map has no nodes to draw",pf),ec||(U(!0),Nn(!1))}),()=>{ec=!0}},[u2,je,Jt]),cn.useEffect(()=>{dn.current=rn},[rn,dn]);const zl=Ee&&((re==null?void 0:re.length)??0)>0,R0=((we==null?void 0:we.length)??0)>0,mh=Dn.some(ec=>ec.type==="agent");if(v||Jn&&rn.length===0)return le.jsx("div",{className:"flex h-full items-center justify-center",children:le.jsx(Bln,{size:"md",className:"text-muted-foreground",label:"Loading the topology"})});if(q)return le.jsx(Rln,{className:"h-full",title:"Couldn’t draw the map of your agents",description:"Couldn’t reach DorkOS. Check that it’s running.",onRetry:()=>void te()});if(Z&&rn.length===0)return le.jsx(Rln,{className:"h-full",title:"Couldn’t draw the map of your agents",description:"Your agents are fine. Only the map couldn’t be drawn.",onRetry:()=>{te(),ai()}});if(!Dn.length)return le.jsx(SBn,{className:"h-full",icon:fBn,headline:"No agents found yet",headingLevel:3,description:"Find agents on this computer to see them here.",action:P?{label:"Go to Discovery",onClick:P,variant:"outline"}:void 0});const Ia=Dn.filter(ec=>ec.type==="agent").length,Sd=Dn.filter(ec=>ec.type==="adapter").length,Gp=Kn.filter(ec=>ec.type==="binding").length;return le.jsxs("div",{className:i2("topology-container absolute inset-0",gr&&"is-connecting"),role:"group","aria-roledescription":"agent map","aria-label":"Map of your agents","aria-describedby":"topology-graph-summary",children:[le.jsxs("div",{id:"topology-graph-summary",className:"sr-only",children:[le.jsxs("p",{children:[Ia," agent",Ia!==1?"s":"",", ",Sd," platform",Sd!==1?"s":"",", ",Gp," connection",Gp!==1?"s":"","."]}),le.jsx("p",{children:"To connect by keyboard, use the agent’s Connections section."})]}),le.jsxs(JJn,{nodes:rn,edges:Sn,nodeTypes:bHn,edgeTypes:wHn,deleteKeyCode:null,onNodesChange:_i,onEdgesChange:ri,onNodeClick:Mc,onNodeDragStop:sr,onConnect:zl?ic:void 0,onConnectStart:zl?ph:void 0,onConnectEnd:zl?j1:void 0,isValidConnection:zl?ku:void 0,nodesConnectable:zl,nodesFocusable:!0,edgesFocusable:!0,fitView:!0,fitViewOptions:{duration:400,padding:.15},minZoom:.2,colorMode:"system",onlyRenderVisibleElements:!0,proOptions:{hideAttribution:!0},children:[le.jsx(XJn,{variant:q3.Dots,gap:16,size:1,color:"hsl(var(--muted-foreground) / 0.15)"}),le.jsx(bGn,{nodeColor:ec=>ec.type==="adapter"?"hsl(var(--muted-foreground) / 0.4)":ec.type==="namespace-group"?"transparent":ec.data.namespaceColor??"hsl(var(--primary))",maskColor:"hsl(var(--background) / 0.8)",pannable:!0,zoomable:!0,className:"!right-2 !bottom-2",style:{height:80}}),le.jsx(eGn,{showInteractive:!1,position:"top-right"}),Ki&&le.jsx("div",{className:"absolute bottom-2 left-2 z-10",children:le.jsxs(Sge,{variant:"outline",size:"xs",onClick:ai,title:"Reset layout",className:"shadow-sm",children:[le.jsx(lBn,{}),"Reset layout"]})}),le.jsx(tHn,{namespaces:_})]}),oe&&le.jsx(iHn,{}),Ee&&mh&&!zl&&le.jsx("div",{className:"bg-muted/80 text-muted-foreground pointer-events-none absolute bottom-3 left-1/2 -translate-x-1/2 rounded-md px-3 py-1.5 text-xs",children:"Add a chat app in Connections, then connect it to an agent"}),zl&&mh&&!R0&&!z&&!ne&&le.jsx("div",{className:"bg-muted/80 text-muted-foreground pointer-events-none absolute bottom-3 left-1/2 -translate-x-1/2 rounded-md px-3 py-1.5 text-xs",children:"Drag from a platform to an agent to connect them"}),Jn&&le.jsx("div",{className:"pointer-events-none absolute top-3 right-3 z-10",children:le.jsx(Bln,{className:"text-muted-foreground/70"})}),Xt&&le.jsx(CBn,{open:!0,onOpenChange:ec=>{ec||Oi(null)},mode:"create",initialValues:{adapterId:Xt.sourceAdapterId,agentId:Xt.targetAgentId},onConfirm:Sa}),le.jsx(hBn,{open:!!Wn,onOpenChange:ec=>{ec||rr()},children:le.jsxs(aBn,{children:[le.jsxs(dBn,{children:[le.jsx(bBn,{children:"Remove this connection?"}),le.jsx(wBn,{children:"The agent stops getting messages from it."})]}),le.jsxs(gBn,{children:[le.jsx(pBn,{children:"Cancel"}),le.jsx(mBn,{onClick:ei,className:vBn({variant:"destructive"}),children:"Remove connection"})]})]})})]})}export{UHn as TopologyGraph};