elanous 0.3.10 → 0.3.11

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 (1495) hide show
  1. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/404/index.html +1 -0
  2. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/404.html +1 -0
  3. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/EYSh3cX6PSbWZ9jfAV-ZL/_buildManifest.js +1 -0
  4. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/EYSh3cX6PSbWZ9jfAV-ZL/_ssgManifest.js +1 -0
  5. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/01d37f32.f1ecc352bfc51dba.js +1 -0
  6. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1205.fe10b7987f8524ef.js +1 -0
  7. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1349.f7811f2ffa218061.js +115 -0
  8. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1384.1cb410c0f56171eb.js +1 -0
  9. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1428.0e64b175c610d66f.js +217 -0
  10. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1573.f7798ecec5a0c856.js +62 -0
  11. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1704.873747d458a61393.js +226 -0
  12. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1744.be78cf6a0a3a74d6.js +1 -0
  13. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/1984-49012b18b68b1cf9.js +1 -0
  14. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2148-6f0c9b53f41fe475.js +1 -0
  15. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2320.b695c0cf2687a257.js +86 -0
  16. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2361246f.b0c89bf269cf461a.js +18 -0
  17. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2435.f5c7a8ec43bf380d.js +148 -0
  18. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2444-14f479a9f931d064.js +1 -0
  19. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2546.54bca8b2efbfc20f.js +1 -0
  20. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2548.d44d521b5f8c4430.js +149 -0
  21. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/261-a046190a9a00a2e9.js +1 -0
  22. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2797.075b49a780b777f9.js +1 -0
  23. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/2869.89f22df850ffcffb.js +1 -0
  24. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/293a491b.83fead916f3d4b84.js +1 -0
  25. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3061-347b0ea159fbd1ff.js +1 -0
  26. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3090.1ce88a5426850ed6.js +1 -0
  27. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3092.7ba336afc0ff5129.js +1 -0
  28. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3191.8ba727790cf10b35.js +1 -0
  29. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3305-72701e4eaf50e6df.js +1 -0
  30. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3346.ce452aec61c3b95c.js +66 -0
  31. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3377-ee5f16870d6175ba.js +1 -0
  32. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3429.26af58ade120e0f6.js +32 -0
  33. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3441.4826303af0ba2719.js +23 -0
  34. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3476.83efa7b4266c7e51.js +77 -0
  35. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3586.51fa867dadba71b6.js +1 -0
  36. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3614-9958a689c070352d.js +1 -0
  37. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3694.b629d2f7208eac8f.js +1 -0
  38. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3722-ccce3970d69d2872.js +1 -0
  39. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3730-21d7ec4ebcc8c568.js +1 -0
  40. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3778.7c2878335b916833.js +1 -0
  41. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3830.397d404d47d8a062.js +8 -0
  42. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/3b874777.9cb8232267532d67.js +1 -0
  43. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4009.77649c720a2856f6.js +27 -0
  44. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4215-b3f308605f4b13a8.js +1 -0
  45. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4244.d72a596d89009db0.js +287 -0
  46. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4319.00de505e04749979.js +1 -0
  47. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4377.afed39cdcc4a27ac.js +34 -0
  48. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4512-aaced97ea8e990bb.js +25 -0
  49. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4639-33bcab91d6560f78.js +1 -0
  50. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4679-58da0c73ea8fd4c0.js +1 -0
  51. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4739.eb609076dc7d0ce5.js +1 -0
  52. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/474.3358006016a4c378.js +1 -0
  53. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4775.4dcbb1305bc9fdc0.js +1 -0
  54. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/479-e85749bccf84c3a1.js +1 -0
  55. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4861.4f637b319161ac19.js +94 -0
  56. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/4912.bb366634a6b91a57.js +1 -0
  57. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5015-9e7cd0f0977b5fca.js +1 -0
  58. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5051.8970f4af47f47d8a.js +24 -0
  59. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5063.29502b1640091906.js +1 -0
  60. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/514.d0f3de1f9677a072.js +5 -0
  61. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5217-4a8b3b42eb940df6.js +1 -0
  62. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5274-170b82d1f713ef4e.js +1 -0
  63. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/529.7900408e7a632b2a.js +1 -0
  64. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5319.e66b9cc59edf68ed.js +1 -0
  65. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5481.c7257f98606bca86.js +1 -0
  66. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5486.b2f3ef1cc08a5f44.js +1 -0
  67. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5493.5ad34e07e4d2e24e.js +38 -0
  68. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5646-4a4067780272d157.js +1 -0
  69. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/56667286.ca5125d61802d0fc.js +1 -0
  70. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5771-e4339e65e1a8e6e6.js +1 -0
  71. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5787.6c56877c23d51f70.js +90 -0
  72. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/586.ff5c84cbb8592a98.js +2 -0
  73. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/5980.ed2554b4e5883ef8.js +1 -0
  74. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6037.a946c7b0d3ccbbf2.js +1 -0
  75. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6118.194e7e1a958f3f0e.js +1 -0
  76. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6136.5a9cd50e34193654.js +1 -0
  77. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6177.ab44c9a7bfebdff9.js +1 -0
  78. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6226-be213570dc2842c5.js +1 -0
  79. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/624.4f0dbb8a82bae173.js +79 -0
  80. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6334-5efa5dc3a22e32be.js +1 -0
  81. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6602.87ab7eda9e749a9a.js +36 -0
  82. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/669.7dca63fb3b95ddc1.js +1 -0
  83. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6779-35afb880061a9ed1.js +1 -0
  84. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/684.7ca728c023a5be43.js +9 -0
  85. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/6944.e9ef3404b61b22ce.js +1 -0
  86. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/697.044dbc2599425241.js +64 -0
  87. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/7016-71707efce1d33e5f.js +1 -0
  88. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/703.22d162ce983376c7.js +1 -0
  89. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/7147.fd66f2c11680c3e7.js +104 -0
  90. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/730.d287a7a56dc4215c.js +93 -0
  91. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/7504-69e607e9d2ccb233.js +1 -0
  92. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/7647.013fa7f7dd501ed8.js +1 -0
  93. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/7747.4f032894f7b78fc8.js +1 -0
  94. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/7806.06d650368ecaf19f.js +286 -0
  95. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/7845-409d6e1159d19ed2.js +1 -0
  96. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/8047-92020eb3411682d0.js +1 -0
  97. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/8066.c20a12b9b6773b64.js +24 -0
  98. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/8279.57d08b9e979bc906.js +1 -0
  99. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/83-f25b23c8bea39fe4.js +1 -0
  100. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/8415.bcf8d2b3ea589c60.js +1 -0
  101. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/8650.c195cacb1e3abfaf.js +1 -0
  102. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/8668.b01c159a88f542c0.js +41 -0
  103. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/8998.06aa9e56b8064e1b.js +1 -0
  104. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/9032.acf91f7cb1584b78.js +1 -0
  105. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/9383.40bd9676ab465b77.js +74 -0
  106. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/9460.65cd2094d0bc9c9c.js +309 -0
  107. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/9482.2b76ee1769f3ec4e.js +1 -0
  108. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/9673-ba8a3c4683caac32.js +1 -0
  109. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/9716.2185e2ff59e8ba1e.js +193 -0
  110. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/a886a261.307a967dd06d12b7.js +66 -0
  111. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/_not-found/page-c775796a00d9389e.js +1 -0
  112. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/apps/page-7775cfa4c480b4db.js +1 -0
  113. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/apps/report/page-6e3a012662c704c6.js +1 -0
  114. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/board/page-755cecfc4a9b8ed8.js +1 -0
  115. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/chat/page-b616ac17834db5d8.js +1 -0
  116. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/credentials/page-8182cf153d7d41f8.js +1 -0
  117. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/credentials/register/claim/page-3f539594c23d3f8e.js +1 -0
  118. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/credentials/register/page-ea4f262cb9aba420.js +1 -0
  119. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/design-check/page-8165faf239f6e27e.js +1 -0
  120. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/editor/page-1cf7bd94569f060b.js +1 -0
  121. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/healthz/route-c775796a00d9389e.js +1 -0
  122. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/layout-444d1c4c8fabdbea.js +1 -0
  123. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/live-run/adaptive/page-1f4aee3b56fd22f0.js +1 -0
  124. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/live-run/page-29d6b10ace96d7af.js +1 -0
  125. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/member/invite/page-02ec6c1f61c37ed7.js +1 -0
  126. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/not-found-008e905e8d38bf0b.js +1 -0
  127. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/ops/release/page-770c3b6e5356cc91.js +1 -0
  128. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/page-c775796a00d9389e.js +1 -0
  129. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/settings/page-93b362aa4a88d529.js +1 -0
  130. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/setup/done/page-1cf98810677499bc.js +1 -0
  131. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/setup/layout-c775796a00d9389e.js +1 -0
  132. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/setup/page-9698cb2297abfb29.js +1 -0
  133. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/share/received/page-3be6f5986ce29402.js +1 -0
  134. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/signup/complete/page-c5b4b6795a11f869.js +1 -0
  135. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/signup/page-fc2da335d0504034.js +1 -0
  136. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/term/page-3f7ee4b011d2ef8b.js +1 -0
  137. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/app/vault/page-4c7e6af7c5347116.js +1 -0
  138. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/bffd1d00-2d9bdb4c8a5d9104.js +1 -0
  139. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/cd29f327-7f91f59b9139237c.js +1 -0
  140. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/d110d9e0.f5573b826f27af65.js +160 -0
  141. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/d14cd3a4.6d09bf3f19730f21.js +122 -0
  142. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/db225b10.128c168f4a6546cf.js +62 -0
  143. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/framework-8678a23bfc3bab37.js +1 -0
  144. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/main-ad7216630e0b83b8.js +1 -0
  145. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/main-app-4572a82b0e60345c.js +1 -0
  146. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/pages/_app-9a06989434b6a0f6.js +1 -0
  147. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/pages/_error-47654d73dd8821dc.js +1 -0
  148. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  149. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/chunks/webpack-1e12b19ca7234d95.js +1 -0
  150. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/css/085673d826b98b62.css +1 -0
  151. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/css/0963166d1794fcd2.css +1 -0
  152. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/css/0d7fd8c441e32b99.css +1 -0
  153. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/css/599369d853c61df7.css +31 -0
  154. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/css/659eccb5db697b76.css +1 -0
  155. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/media/22a5144ee8d83bca-s.p.woff2 +0 -0
  156. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/media/9766a7e9e2e0ad5a-s.woff2 +0 -0
  157. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/media/aa016aab0e6d1295-s.woff2 +0 -0
  158. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/media/b66cf8e69499582a-s.woff2 +0 -0
  159. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/_next/static/media/f639721981034f88-s.woff2 +0 -0
  160. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/apps/index.html +1 -0
  161. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/apps/index.txt +33 -0
  162. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/apps/report/index.html +1 -0
  163. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/apps/report/index.txt +33 -0
  164. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/board/index.html +1 -0
  165. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/board/index.txt +33 -0
  166. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/chat/index.html +1 -0
  167. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/chat/index.txt +30 -0
  168. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/credentials/index.html +1 -0
  169. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/credentials/index.txt +33 -0
  170. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/credentials/register/claim/index.html +1 -0
  171. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/credentials/register/claim/index.txt +33 -0
  172. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/credentials/register/index.html +1 -0
  173. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/credentials/register/index.txt +33 -0
  174. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/design-check/index.html +1 -0
  175. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/design-check/index.txt +33 -0
  176. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/editor/index.html +1 -0
  177. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/editor/index.txt +35 -0
  178. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/fonts/JetBrainsMonoNerdFontMono-Bold.ttf +0 -0
  179. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/fonts/JetBrainsMonoNerdFontMono-BoldItalic.ttf +0 -0
  180. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/fonts/JetBrainsMonoNerdFontMono-Italic.ttf +0 -0
  181. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/fonts/JetBrainsMonoNerdFontMono-Regular.ttf +0 -0
  182. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/healthz +1 -0
  183. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/icons/elanous-16.png +0 -0
  184. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/icons/elanous-180.png +0 -0
  185. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/icons/elanous-192.png +0 -0
  186. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/icons/elanous-32.png +0 -0
  187. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/icons/elanous-512.png +0 -0
  188. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/index.html +1 -0
  189. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/index.txt +30 -0
  190. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/live-run/adaptive/index.html +1 -0
  191. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/live-run/adaptive/index.txt +31 -0
  192. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/live-run/index.html +1 -0
  193. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/live-run/index.txt +35 -0
  194. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/manifest.webmanifest +31 -0
  195. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/member/invite/index.html +1 -0
  196. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/member/invite/index.txt +33 -0
  197. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/offline.html +84 -0
  198. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/ops/release/index.html +1 -0
  199. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/ops/release/index.txt +34 -0
  200. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/settings/index.html +1 -0
  201. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/settings/index.txt +33 -0
  202. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/setup/done/index.html +1 -0
  203. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/setup/done/index.txt +33 -0
  204. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/setup/index.html +1 -0
  205. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/setup/index.txt +33 -0
  206. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/share/received/index.html +1 -0
  207. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/share/received/index.txt +33 -0
  208. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/signup/complete/index.html +1 -0
  209. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/signup/complete/index.txt +33 -0
  210. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/signup/index.html +1 -0
  211. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/signup/index.txt +33 -0
  212. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/sw-strategies.js +44 -0
  213. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/sw.js +388 -0
  214. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/term/index.html +1 -0
  215. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/term/index.txt +33 -0
  216. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/vault/index.html +1 -0
  217. package/apps/pwa/.pwa-generations/1794438971150-31097a5b-df19-4054-81ae-c523427dd7b2/vault/index.txt +33 -0
  218. package/apps/pwa/README.md +59 -0
  219. package/apps/pwa/bun.lock +1530 -0
  220. package/apps/pwa/components.json +25 -0
  221. package/apps/pwa/next.config.ts +60 -0
  222. package/apps/pwa/package-lock.json +7538 -0
  223. package/apps/pwa/package.json +73 -0
  224. package/apps/pwa/postcss.config.mjs +5 -0
  225. package/apps/pwa/public/fonts/JetBrainsMonoNerdFontMono-Bold.ttf +0 -0
  226. package/apps/pwa/public/fonts/JetBrainsMonoNerdFontMono-BoldItalic.ttf +0 -0
  227. package/apps/pwa/public/fonts/JetBrainsMonoNerdFontMono-Italic.ttf +0 -0
  228. package/apps/pwa/public/fonts/JetBrainsMonoNerdFontMono-Regular.ttf +0 -0
  229. package/apps/pwa/public/icons/elanous-16.png +0 -0
  230. package/apps/pwa/public/icons/elanous-180.png +0 -0
  231. package/apps/pwa/public/icons/elanous-192.png +0 -0
  232. package/apps/pwa/public/icons/elanous-32.png +0 -0
  233. package/apps/pwa/public/icons/elanous-512.png +0 -0
  234. package/apps/pwa/public/manifest.webmanifest +31 -0
  235. package/apps/pwa/public/offline.html +84 -0
  236. package/apps/pwa/public/sw-strategies.js +44 -0
  237. package/apps/pwa/public/sw.js +388 -0
  238. package/apps/pwa/scripts/static-entry.ts +54 -0
  239. package/apps/pwa/scripts/static-generation.ts +190 -0
  240. package/apps/pwa/src/app/apps/page.tsx +135 -0
  241. package/apps/pwa/src/app/apps/report/page.tsx +50 -0
  242. package/apps/pwa/src/app/board/page.tsx +12 -0
  243. package/apps/pwa/src/app/chat/page.tsx +5 -0
  244. package/apps/pwa/src/app/credentials/CredentialVaultView.tsx +99 -0
  245. package/apps/pwa/src/app/credentials/page.tsx +15 -0
  246. package/apps/pwa/src/app/credentials/register/CredentialRegisterView.tsx +123 -0
  247. package/apps/pwa/src/app/credentials/register/claim/CredentialClaimView.tsx +88 -0
  248. package/apps/pwa/src/app/credentials/register/claim/page.tsx +35 -0
  249. package/apps/pwa/src/app/credentials/register/page.tsx +18 -0
  250. package/apps/pwa/src/app/design-check/page.tsx +17 -0
  251. package/apps/pwa/src/app/editor/page.tsx +8 -0
  252. package/apps/pwa/src/app/globals.css +351 -0
  253. package/apps/pwa/src/app/healthz/route.ts +12 -0
  254. package/apps/pwa/src/app/layout.tsx +77 -0
  255. package/apps/pwa/src/app/live-run/adaptive/page.tsx +6 -0
  256. package/apps/pwa/src/app/live-run/page.tsx +94 -0
  257. package/apps/pwa/src/app/member/invite/page.tsx +75 -0
  258. package/apps/pwa/src/app/not-found.tsx +29 -0
  259. package/apps/pwa/src/app/ops/release/page.tsx +8 -0
  260. package/apps/pwa/src/app/page.tsx +5 -0
  261. package/apps/pwa/src/app/settings/page.tsx +13 -0
  262. package/apps/pwa/src/app/setup/done/SetupNextSteps.tsx +75 -0
  263. package/apps/pwa/src/app/setup/done/page.tsx +182 -0
  264. package/apps/pwa/src/app/setup/done/setup-links.ts +55 -0
  265. package/apps/pwa/src/app/setup/layout.tsx +33 -0
  266. package/apps/pwa/src/app/setup/page.tsx +501 -0
  267. package/apps/pwa/src/app/share/received/page.tsx +86 -0
  268. package/apps/pwa/src/app/signup/complete/page.tsx +92 -0
  269. package/apps/pwa/src/app/signup/page.tsx +62 -0
  270. package/apps/pwa/src/app/term/page.tsx +29 -0
  271. package/apps/pwa/src/app/term/pty-selection-url.ts +8 -0
  272. package/apps/pwa/src/app/vault/page.tsx +14 -0
  273. package/apps/pwa/src/components/agent/CollapsibleCodeBlock.tsx +90 -0
  274. package/apps/pwa/src/components/apps/AppSimLiveView.tsx +161 -0
  275. package/apps/pwa/src/components/ask-user-question/AskQuestionSheet.tsx +309 -0
  276. package/apps/pwa/src/components/ask-user-question/use-ask-question.ts +167 -0
  277. package/apps/pwa/src/components/chat/BudgetPill.tsx +92 -0
  278. package/apps/pwa/src/components/chat/ChatApprovalsChip.tsx +74 -0
  279. package/apps/pwa/src/components/chat/ChatConversationList.tsx +190 -0
  280. package/apps/pwa/src/components/chat/ChatCurrentProject.tsx +239 -0
  281. package/apps/pwa/src/components/chat/ChatDecisionsChip.tsx +95 -0
  282. package/apps/pwa/src/components/chat/ChatDropOverlay.tsx +17 -0
  283. package/apps/pwa/src/components/chat/ChatHistory.tsx +266 -0
  284. package/apps/pwa/src/components/chat/ChatInput.tsx +1091 -0
  285. package/apps/pwa/src/components/chat/ChatLayout.tsx +1594 -0
  286. package/apps/pwa/src/components/chat/ChatMessage.tsx +380 -0
  287. package/apps/pwa/src/components/chat/ChatPanel.tsx +96 -0
  288. package/apps/pwa/src/components/chat/ChatPendingDecision.tsx +76 -0
  289. package/apps/pwa/src/components/chat/ChatProjectSwitcher.tsx +101 -0
  290. package/apps/pwa/src/components/chat/ChatQueueChips.tsx +20 -0
  291. package/apps/pwa/src/components/chat/ContextSourcesCard.tsx +14 -0
  292. package/apps/pwa/src/components/chat/DeployConfirmCard.tsx +13 -0
  293. package/apps/pwa/src/components/chat/DeployResultCard.tsx +18 -0
  294. package/apps/pwa/src/components/chat/ElanousCard.tsx +80 -0
  295. package/apps/pwa/src/components/chat/ElanousProviderChip.tsx +85 -0
  296. package/apps/pwa/src/components/chat/HarnessAskCard.tsx +61 -0
  297. package/apps/pwa/src/components/chat/MemberProposalCard.tsx +75 -0
  298. package/apps/pwa/src/components/chat/MobileChatStatus.tsx +32 -0
  299. package/apps/pwa/src/components/chat/NowSpeakButton.tsx +78 -0
  300. package/apps/pwa/src/components/chat/SeatPicker.tsx +27 -0
  301. package/apps/pwa/src/components/chat/SeatsNowStrip.tsx +43 -0
  302. package/apps/pwa/src/components/chat/SessionDeleteConfirm.tsx +91 -0
  303. package/apps/pwa/src/components/chat/SessionIdChip.tsx +120 -0
  304. package/apps/pwa/src/components/chat/SessionPill.tsx +276 -0
  305. package/apps/pwa/src/components/chat/VoiceCostPill.tsx +114 -0
  306. package/apps/pwa/src/components/chat/VoiceOverlay.tsx +181 -0
  307. package/apps/pwa/src/components/chat/blocks/ChatHud.tsx +165 -0
  308. package/apps/pwa/src/components/chat/blocks/ChatHudGaugeBar.tsx +90 -0
  309. package/apps/pwa/src/components/chat/blocks/DebugTapDrawer.tsx +189 -0
  310. package/apps/pwa/src/components/chat/blocks/DiffBlock.tsx +114 -0
  311. package/apps/pwa/src/components/chat/blocks/McpAppBlock.tsx +103 -0
  312. package/apps/pwa/src/components/chat/blocks/McpAppFrame.tsx +81 -0
  313. package/apps/pwa/src/components/chat/blocks/PerfTickSparkline.tsx +154 -0
  314. package/apps/pwa/src/components/chat/blocks/PlanBlock.tsx +70 -0
  315. package/apps/pwa/src/components/chat/blocks/SearchHitList.tsx +122 -0
  316. package/apps/pwa/src/components/chat/blocks/StatusChip.tsx +63 -0
  317. package/apps/pwa/src/components/chat/blocks/ThinkingPill.tsx +63 -0
  318. package/apps/pwa/src/components/chat/blocks/ToolProgressCard.tsx +106 -0
  319. package/apps/pwa/src/components/chat/budget-pill-view.ts +22 -0
  320. package/apps/pwa/src/components/chat/context-sources.ts +88 -0
  321. package/apps/pwa/src/components/chat/seats-now-line.ts +20 -0
  322. package/apps/pwa/src/components/chat/session-id-utils.ts +22 -0
  323. package/apps/pwa/src/components/decisions/DecisionCard.tsx +28 -0
  324. package/apps/pwa/src/components/design/DesignCheckPanel.tsx +318 -0
  325. package/apps/pwa/src/components/design/DirectionCards.tsx +178 -0
  326. package/apps/pwa/src/components/design/MakeMySystem.tsx +177 -0
  327. package/apps/pwa/src/components/editor/GraphCanvasEditor.tsx +853 -0
  328. package/apps/pwa/src/components/editor/GraphCanvasRunStatus.tsx +88 -0
  329. package/apps/pwa/src/components/editor/GraphEditor.tsx +357 -0
  330. package/apps/pwa/src/components/editor/GraphGroupBox.tsx +47 -0
  331. package/apps/pwa/src/components/editor/GraphRunControl.tsx +127 -0
  332. package/apps/pwa/src/components/editor/GraphWizardChat.tsx +292 -0
  333. package/apps/pwa/src/components/editor/graph-canvas-model.ts +570 -0
  334. package/apps/pwa/src/components/editor/graph-canvas-save.ts +52 -0
  335. package/apps/pwa/src/components/editor/graph-editor-mode.ts +41 -0
  336. package/apps/pwa/src/components/editor/graph-groups.ts +139 -0
  337. package/apps/pwa/src/components/editor/graph-wizard.ts +154 -0
  338. package/apps/pwa/src/components/editor/use-wizard-canvas.ts +66 -0
  339. package/apps/pwa/src/components/exec/ExecApprovals.tsx +77 -0
  340. package/apps/pwa/src/components/fluent-chain/NextFluentChip.tsx +91 -0
  341. package/apps/pwa/src/components/idle-nudge/IdleNudgeBadge.tsx +79 -0
  342. package/apps/pwa/src/components/inside/loop-agents-view.ts +75 -0
  343. package/apps/pwa/src/components/inside/pty-decisions.ts +72 -0
  344. package/apps/pwa/src/components/inside/public-text.ts +35 -0
  345. package/apps/pwa/src/components/install-banner.tsx +192 -0
  346. package/apps/pwa/src/components/intent-panel/IntentButton.tsx +67 -0
  347. package/apps/pwa/src/components/intent-panel/IntentPanel.tsx +244 -0
  348. package/apps/pwa/src/components/intent-panel/intent-panel-storage.ts +140 -0
  349. package/apps/pwa/src/components/intent-panel/use-intent-prediction.ts +269 -0
  350. package/apps/pwa/src/components/live-run/AdaptiveGraphReplay.tsx +115 -0
  351. package/apps/pwa/src/components/live-run/GraphInstanceLiveScreen.tsx +95 -0
  352. package/apps/pwa/src/components/live-run/GraphInstanceRichView.tsx +124 -0
  353. package/apps/pwa/src/components/live-run/GraphInstanceSimulationScreen.tsx +34 -0
  354. package/apps/pwa/src/components/live-run/LiveRunAutoFollowPanel.tsx +70 -0
  355. package/apps/pwa/src/components/live-run/LiveRunGraph.tsx +621 -0
  356. package/apps/pwa/src/components/live-run/LiveRunPanel.tsx +96 -0
  357. package/apps/pwa/src/components/live-run/live-run-stage.css +62 -0
  358. package/apps/pwa/src/components/loops/loop-status.ts +5 -0
  359. package/apps/pwa/src/components/member-board/MemberMiniBoardView.tsx +163 -0
  360. package/apps/pwa/src/components/member-board/member-board-model.ts +113 -0
  361. package/apps/pwa/src/components/nexus/ChannelBotSetupCard.tsx +103 -0
  362. package/apps/pwa/src/components/notes/NoteFromImageModal.tsx +477 -0
  363. package/apps/pwa/src/components/notes/SaveAsNoteButton.tsx +71 -0
  364. package/apps/pwa/src/components/observatory/subject-list.ts +242 -0
  365. package/apps/pwa/src/components/ops/GateShards.tsx +87 -0
  366. package/apps/pwa/src/components/ops/OperatorReleaseRoute.tsx +8 -0
  367. package/apps/pwa/src/components/ops/ReleaseFlow.tsx +143 -0
  368. package/apps/pwa/src/components/ops/ReleaseGraphRunView.tsx +89 -0
  369. package/apps/pwa/src/components/ops/ReleaseRunsView.tsx +227 -0
  370. package/apps/pwa/src/components/provenance/ProvenanceBadge.tsx +15 -0
  371. package/apps/pwa/src/components/providers/DaemonProvider.tsx +126 -0
  372. package/apps/pwa/src/components/providers/NewBuildBanner.tsx +55 -0
  373. package/apps/pwa/src/components/providers/NexusClientProvider.tsx +69 -0
  374. package/apps/pwa/src/components/providers/OperatorRoleDefault.tsx +16 -0
  375. package/apps/pwa/src/components/providers/ServiceWorkerRegister.tsx +32 -0
  376. package/apps/pwa/src/components/providers/ThemeProvider.tsx +93 -0
  377. package/apps/pwa/src/components/providers/ToastProvider.tsx +12 -0
  378. package/apps/pwa/src/components/settings/AdvancedSetupMap.tsx +76 -0
  379. package/apps/pwa/src/components/settings/AnswerDepthCard.tsx +90 -0
  380. package/apps/pwa/src/components/settings/BudgetGuardWatcher.tsx +125 -0
  381. package/apps/pwa/src/components/settings/BudgetThresholdModal.tsx +200 -0
  382. package/apps/pwa/src/components/settings/BuildInfoCard.tsx +70 -0
  383. package/apps/pwa/src/components/settings/ChannelBotSetupCard.tsx +107 -0
  384. package/apps/pwa/src/components/settings/ChatRoutingCard.tsx +67 -0
  385. package/apps/pwa/src/components/settings/ChildLlmPreferenceCard.tsx +224 -0
  386. package/apps/pwa/src/components/settings/ConnectTokenCard.tsx +117 -0
  387. package/apps/pwa/src/components/settings/FastReplyCard.tsx +68 -0
  388. package/apps/pwa/src/components/settings/IntentPanelSettingsCard.tsx +107 -0
  389. package/apps/pwa/src/components/settings/LlmCatalogCard.tsx +284 -0
  390. package/apps/pwa/src/components/settings/LlmHostsCard.tsx +399 -0
  391. package/apps/pwa/src/components/settings/LlmModelTierCard.tsx +246 -0
  392. package/apps/pwa/src/components/settings/NotesMetricsCard.tsx +192 -0
  393. package/apps/pwa/src/components/settings/ObsidianSkillsCard.tsx +125 -0
  394. package/apps/pwa/src/components/settings/OcrPrefsCard.tsx +106 -0
  395. package/apps/pwa/src/components/settings/PersonaCard.tsx +353 -0
  396. package/apps/pwa/src/components/settings/PlatformConnectionsCard.tsx +113 -0
  397. package/apps/pwa/src/components/settings/PresetCardGrid.tsx +194 -0
  398. package/apps/pwa/src/components/settings/PushcutSettingsCard.tsx +208 -0
  399. package/apps/pwa/src/components/settings/QuickSetupCard.tsx +256 -0
  400. package/apps/pwa/src/components/settings/SettingsPanel.tsx +1184 -0
  401. package/apps/pwa/src/components/settings/TierChangeConfirmModal.tsx +244 -0
  402. package/apps/pwa/src/components/settings/TtsModelTierCard.tsx +231 -0
  403. package/apps/pwa/src/components/settings/TtsVoiceIdPickerCard.tsx +445 -0
  404. package/apps/pwa/src/components/settings/VoiceModelTierCard.tsx +318 -0
  405. package/apps/pwa/src/components/settings/VoicePrefsCard.tsx +127 -0
  406. package/apps/pwa/src/components/settings/WelcomeCard.tsx +126 -0
  407. package/apps/pwa/src/components/settings/persona-card-edits.ts +21 -0
  408. package/apps/pwa/src/components/shell/AppShell.tsx +126 -0
  409. package/apps/pwa/src/components/shell/AuthRequiredBanner.tsx +20 -0
  410. package/apps/pwa/src/components/shell/CompactTopBar.tsx +90 -0
  411. package/apps/pwa/src/components/shell/MaturityBanner.tsx +15 -0
  412. package/apps/pwa/src/components/shell/MobileBottomTabs.tsx +131 -0
  413. package/apps/pwa/src/components/shell/NavSearchProbe.tsx +13 -0
  414. package/apps/pwa/src/components/shell/PwaRolePicker.tsx +41 -0
  415. package/apps/pwa/src/components/shell/ShareCaptureButton.tsx +52 -0
  416. package/apps/pwa/src/components/shell/SidebarNav.tsx +196 -0
  417. package/apps/pwa/src/components/shell/SkillProblemsBanner.tsx +75 -0
  418. package/apps/pwa/src/components/shell/TopBar.tsx +269 -0
  419. package/apps/pwa/src/components/shell/TopBarActivityIndicator.tsx +51 -0
  420. package/apps/pwa/src/components/shell/activity-snapshot.ts +98 -0
  421. package/apps/pwa/src/components/shell/fetch-activity-snapshot.ts +43 -0
  422. package/apps/pwa/src/components/shell/nav-visibility-prefs.ts +16 -0
  423. package/apps/pwa/src/components/shell/nav-visit.ts +41 -0
  424. package/apps/pwa/src/components/shell/sidebar-nav-items.ts +122 -0
  425. package/apps/pwa/src/components/shell/sidebar-nav-private.ts +4 -0
  426. package/apps/pwa/src/components/shell/use-nav-visit-log.ts +34 -0
  427. package/apps/pwa/src/components/shell/use-shell-activity.ts +69 -0
  428. package/apps/pwa/src/components/showroom/ChainForwardGateModal.tsx +161 -0
  429. package/apps/pwa/src/components/showroom/CostGateModal.tsx +138 -0
  430. package/apps/pwa/src/components/showroom/HitlBanner.tsx +107 -0
  431. package/apps/pwa/src/components/showroom/ShowroomCameraIntake.tsx +263 -0
  432. package/apps/pwa/src/components/showroom/ShowroomHitlToggle.tsx +63 -0
  433. package/apps/pwa/src/components/showroom/ShowroomInput.tsx +1105 -0
  434. package/apps/pwa/src/components/showroom/ShowroomLayout.tsx +2166 -0
  435. package/apps/pwa/src/components/showroom/ShowroomPanel.tsx +722 -0
  436. package/apps/pwa/src/components/showroom/ShowroomShortcutHelp.tsx +98 -0
  437. package/apps/pwa/src/components/showroom/ShowroomVoiceIntake.tsx +271 -0
  438. package/apps/pwa/src/components/showroom/use-hitl-banner.ts +198 -0
  439. package/apps/pwa/src/components/terminal/CameraAttachButton.tsx +99 -0
  440. package/apps/pwa/src/components/terminal/CompactTerminalBar.tsx +54 -0
  441. package/apps/pwa/src/components/terminal/FileAttachButton.tsx +96 -0
  442. package/apps/pwa/src/components/terminal/LiveCameraControl.tsx +136 -0
  443. package/apps/pwa/src/components/terminal/ModifierBar.tsx +263 -0
  444. package/apps/pwa/src/components/terminal/MultiDeviceIndicator.tsx +117 -0
  445. package/apps/pwa/src/components/terminal/PtyLiveView.lazy.tsx +31 -0
  446. package/apps/pwa/src/components/terminal/PtyLiveView.tsx +289 -0
  447. package/apps/pwa/src/components/terminal/PtyWall.tsx +88 -0
  448. package/apps/pwa/src/components/terminal/TerminalChatDock.lazy.tsx +7 -0
  449. package/apps/pwa/src/components/terminal/TerminalChatDock.tsx +649 -0
  450. package/apps/pwa/src/components/terminal/TerminalControls.tsx +311 -0
  451. package/apps/pwa/src/components/terminal/TerminalDropZone.tsx +142 -0
  452. package/apps/pwa/src/components/terminal/TerminalPanel.tsx +936 -0
  453. package/apps/pwa/src/components/terminal/TerminalTabs.tsx +1108 -0
  454. package/apps/pwa/src/components/terminal/TuiMirrorView.lazy.tsx +8 -0
  455. package/apps/pwa/src/components/terminal/TuiMirrorView.tsx +129 -0
  456. package/apps/pwa/src/components/terminal/XtermView.lazy.tsx +30 -0
  457. package/apps/pwa/src/components/terminal/XtermView.tsx +658 -0
  458. package/apps/pwa/src/components/terminal/acp-failure.ts +21 -0
  459. package/apps/pwa/src/components/terminal/initial-terminal-notice.ts +45 -0
  460. package/apps/pwa/src/components/terminal/pane-layout.ts +132 -0
  461. package/apps/pwa/src/components/terminal/pane-plan.ts +73 -0
  462. package/apps/pwa/src/components/terminal/panel-view-state.ts +35 -0
  463. package/apps/pwa/src/components/terminal/pty-live-poll.ts +57 -0
  464. package/apps/pwa/src/components/terminal/pty-mouse-forward.ts +22 -0
  465. package/apps/pwa/src/components/terminal/pty-terminal-list.ts +470 -0
  466. package/apps/pwa/src/components/terminal/pty-terminal-row-summary.ts +129 -0
  467. package/apps/pwa/src/components/terminal/pty-wall.ts +46 -0
  468. package/apps/pwa/src/components/terminal/rename-outcome.ts +22 -0
  469. package/apps/pwa/src/components/terminal/tab-close-intent.ts +45 -0
  470. package/apps/pwa/src/components/terminal/terminal-chip-label.ts +78 -0
  471. package/apps/pwa/src/components/terminal/terminal-clear.ts +3 -0
  472. package/apps/pwa/src/components/terminal/terminal-input-registry.ts +87 -0
  473. package/apps/pwa/src/components/terminal/terminal-input-sender.ts +99 -0
  474. package/apps/pwa/src/components/terminal/terminal-origin-label.ts +22 -0
  475. package/apps/pwa/src/components/terminal/touch-scroll.ts +86 -0
  476. package/apps/pwa/src/components/tool-approval/ToolApprovalSheet.tsx +67 -0
  477. package/apps/pwa/src/components/tool-approval/use-tool-approval.ts +124 -0
  478. package/apps/pwa/src/components/ui/api-key-field.tsx +154 -0
  479. package/apps/pwa/src/components/ui/button.tsx +58 -0
  480. package/apps/pwa/src/components/ui/dialog.tsx +160 -0
  481. package/apps/pwa/src/components/ui/input.tsx +20 -0
  482. package/apps/pwa/src/components/ui/scroll-area.tsx +55 -0
  483. package/apps/pwa/src/components/ui/sheet.tsx +138 -0
  484. package/apps/pwa/src/components/ui/sonner.tsx +49 -0
  485. package/apps/pwa/src/components/ui/tabs.tsx +82 -0
  486. package/apps/pwa/src/components/ui/tooltip.tsx +66 -0
  487. package/apps/pwa/src/components/vault/MermaidDiagram.tsx +163 -0
  488. package/apps/pwa/src/components/vault/NewNoteDialog.tsx +73 -0
  489. package/apps/pwa/src/components/vault/NoteEditor.tsx +196 -0
  490. package/apps/pwa/src/components/vault/VaultGraph.tsx +77 -0
  491. package/apps/pwa/src/components/vault/VaultMarkdown.tsx +112 -0
  492. package/apps/pwa/src/components/vault/VaultPanel.tsx +216 -0
  493. package/apps/pwa/src/components/vault/VaultTagsPanel.tsx +47 -0
  494. package/apps/pwa/src/components/vault/mermaid-theme.ts +42 -0
  495. package/apps/pwa/src/components/voice/TailscaleSecurityBanner.tsx +108 -0
  496. package/apps/pwa/src/components/workflows/ApprovalModal.tsx +145 -0
  497. package/apps/pwa/src/components/workflows/ChatPreviewPanel.tsx +144 -0
  498. package/apps/pwa/src/components/workflows/ExpressionInput.tsx +212 -0
  499. package/apps/pwa/src/components/workflows/NodeRunPanel.tsx +134 -0
  500. package/apps/pwa/src/components/workflows/PluginCredentialsField.tsx +131 -0
  501. package/apps/pwa/src/components/workflows/RunGraphShowcase.tsx +183 -0
  502. package/apps/pwa/src/components/workflows/RunGraphView.tsx +343 -0
  503. package/apps/pwa/src/components/workflows/RunsListPanel.tsx +211 -0
  504. package/apps/pwa/src/components/workflows/SchemaForm.tsx +119 -0
  505. package/apps/pwa/src/components/workflows/TidyEdge.tsx +44 -0
  506. package/apps/pwa/src/components/workflows/WorkflowCreateModal.tsx +260 -0
  507. package/apps/pwa/src/components/workflows/WorkflowGraph.tsx +1151 -0
  508. package/apps/pwa/src/components/workflows/WorkflowHistoryPanel.tsx +93 -0
  509. package/apps/pwa/src/components/workflows/WorkflowNLPrompt.tsx +199 -0
  510. package/apps/pwa/src/components/workflows/WorkflowNodeEditor.tsx +509 -0
  511. package/apps/pwa/src/components/workflows/WorkflowPublishPanel.tsx +54 -0
  512. package/apps/pwa/src/components/workflows/WorkflowSynthPreview.tsx +122 -0
  513. package/apps/pwa/src/components/workflows/WorkflowsPanel.tsx +1226 -0
  514. package/apps/pwa/src/components/workflows/expression-completion.ts +43 -0
  515. package/apps/pwa/src/components/workflows/graph-clipboard.ts +78 -0
  516. package/apps/pwa/src/components/workflows/graph-drop.ts +56 -0
  517. package/apps/pwa/src/components/workflows/graph-history.ts +40 -0
  518. package/apps/pwa/src/components/workflows/graph-notes.ts +47 -0
  519. package/apps/pwa/src/components/workflows/node-run-result.ts +36 -0
  520. package/apps/pwa/src/components/workflows/node-status-class.ts +14 -0
  521. package/apps/pwa/src/components/workflows/node-status.css +152 -0
  522. package/apps/pwa/src/components/workflows/phone-pane.ts +9 -0
  523. package/apps/pwa/src/components/workflows/run-status-helpers.ts +126 -0
  524. package/apps/pwa/src/components/workflows/schema-form.ts +222 -0
  525. package/apps/pwa/src/components/workflows/triggers/ChatTriggerEditor.tsx +170 -0
  526. package/apps/pwa/src/components/workflows/triggers/DiscordTriggerEditor.tsx +152 -0
  527. package/apps/pwa/src/components/workflows/triggers/HttpRequestEditor.tsx +287 -0
  528. package/apps/pwa/src/components/workflows/triggers/ManualTriggerEditor.tsx +94 -0
  529. package/apps/pwa/src/components/workflows/triggers/ScheduleTriggerEditor.tsx +235 -0
  530. package/apps/pwa/src/components/workflows/triggers/TelegramTriggerEditor.tsx +160 -0
  531. package/apps/pwa/src/components/workflows/triggers/TriggerEditorBase.tsx +78 -0
  532. package/apps/pwa/src/components/workflows/triggers/WebhookTriggerEditor.tsx +197 -0
  533. package/apps/pwa/src/components/workflows/triggers/cron-preview.ts +81 -0
  534. package/apps/pwa/src/components/workflows/triggers/trigger-card-preview.ts +125 -0
  535. package/apps/pwa/src/components/workflows/use-graph-history.ts +32 -0
  536. package/apps/pwa/src/components/workflows/useKeyboardShortcuts.ts +81 -0
  537. package/apps/pwa/src/components/workflows/usePanelLayout.ts +135 -0
  538. package/apps/pwa/src/components/workflows/validation-helpers.ts +122 -0
  539. package/apps/pwa/src/components/workflows/workflow-file.ts +38 -0
  540. package/apps/pwa/src/components/workflows/workflow-graph-layout.ts +526 -0
  541. package/apps/pwa/src/components/workflows/workflow-graph-mutations.ts +415 -0
  542. package/apps/pwa/src/components/workflows/workflow-publish.ts +50 -0
  543. package/apps/pwa/src/components/workflows/workflow-save.ts +60 -0
  544. package/apps/pwa/src/lib/adaptive-graph-replay.ts +57 -0
  545. package/apps/pwa/src/lib/attachment-content.ts +140 -0
  546. package/apps/pwa/src/lib/audio-stt-extract.ts +69 -0
  547. package/apps/pwa/src/lib/auth-required.ts +30 -0
  548. package/apps/pwa/src/lib/bot-rounds.ts +129 -0
  549. package/apps/pwa/src/lib/botlab-wall.ts +64 -0
  550. package/apps/pwa/src/lib/budget-status.ts +114 -0
  551. package/apps/pwa/src/lib/camera-intake.ts +140 -0
  552. package/apps/pwa/src/lib/card-followup-client.ts +149 -0
  553. package/apps/pwa/src/lib/chat-autoscroll.ts +127 -0
  554. package/apps/pwa/src/lib/chat-deploy.ts +62 -0
  555. package/apps/pwa/src/lib/chat-fork.ts +31 -0
  556. package/apps/pwa/src/lib/chat-harness-ask.ts +24 -0
  557. package/apps/pwa/src/lib/chat-model-commands.ts +104 -0
  558. package/apps/pwa/src/lib/chat-paste-drop.ts +55 -0
  559. package/apps/pwa/src/lib/chat-persona.ts +38 -0
  560. package/apps/pwa/src/lib/chat-queue.ts +24 -0
  561. package/apps/pwa/src/lib/chat-routing-storage.ts +67 -0
  562. package/apps/pwa/src/lib/chat-runtime.ts +1956 -0
  563. package/apps/pwa/src/lib/chat-session-commands.ts +88 -0
  564. package/apps/pwa/src/lib/chat-status.ts +78 -0
  565. package/apps/pwa/src/lib/code-block-preview.ts +66 -0
  566. package/apps/pwa/src/lib/compact-mode.ts +52 -0
  567. package/apps/pwa/src/lib/control-signals-api.ts +76 -0
  568. package/apps/pwa/src/lib/daemon-client.ts +2637 -0
  569. package/apps/pwa/src/lib/daemon-config.ts +129 -0
  570. package/apps/pwa/src/lib/daemon-session.ts +51 -0
  571. package/apps/pwa/src/lib/debug.ts +391 -0
  572. package/apps/pwa/src/lib/decisions-api.ts +71 -0
  573. package/apps/pwa/src/lib/devices-api.ts +88 -0
  574. package/apps/pwa/src/lib/dock-attachment-count.ts +4 -0
  575. package/apps/pwa/src/lib/dock-history-hydrate.ts +149 -0
  576. package/apps/pwa/src/lib/drop-overlay.ts +14 -0
  577. package/apps/pwa/src/lib/elanous-ask-extensions.ts +90 -0
  578. package/apps/pwa/src/lib/elanous-card.ts +92 -0
  579. package/apps/pwa/src/lib/elanous-feedback-envelope.ts +40 -0
  580. package/apps/pwa/src/lib/elanous-term-envelope.ts +115 -0
  581. package/apps/pwa/src/lib/elevenlabs-voices.ts +115 -0
  582. package/apps/pwa/src/lib/feedback-block-accumulator.ts +567 -0
  583. package/apps/pwa/src/lib/feedback-envelope.ts +78 -0
  584. package/apps/pwa/src/lib/field-pick-limits.ts +30 -0
  585. package/apps/pwa/src/lib/fluent-chain-api.ts +111 -0
  586. package/apps/pwa/src/lib/graph-approvals-api.ts +112 -0
  587. package/apps/pwa/src/lib/graph-edge-route.ts +480 -0
  588. package/apps/pwa/src/lib/graph-run-api.ts +91 -0
  589. package/apps/pwa/src/lib/graph-wiring.css +9 -0
  590. package/apps/pwa/src/lib/hosted-chat-runtime.ts +158 -0
  591. package/apps/pwa/src/lib/hw-keyboard.ts +30 -0
  592. package/apps/pwa/src/lib/idle-nudge-api.ts +79 -0
  593. package/apps/pwa/src/lib/inject-attachment-paths.ts +83 -0
  594. package/apps/pwa/src/lib/inside-events.ts +219 -0
  595. package/apps/pwa/src/lib/install-banner-state.ts +106 -0
  596. package/apps/pwa/src/lib/intake-absorb-status.ts +27 -0
  597. package/apps/pwa/src/lib/intake-front-door-api.ts +127 -0
  598. package/apps/pwa/src/lib/intake-pipeline-api.ts +192 -0
  599. package/apps/pwa/src/lib/intake-run-timeline.ts +31 -0
  600. package/apps/pwa/src/lib/key-sequences.ts +116 -0
  601. package/apps/pwa/src/lib/live-gate-decision.ts +139 -0
  602. package/apps/pwa/src/lib/live-public.ts +92 -0
  603. package/apps/pwa/src/lib/live-run-metrics.ts +56 -0
  604. package/apps/pwa/src/lib/live-run-scene.ts +120 -0
  605. package/apps/pwa/src/lib/live-run-stage.ts +175 -0
  606. package/apps/pwa/src/lib/live-run-view.ts +89 -0
  607. package/apps/pwa/src/lib/live-signals.ts +341 -0
  608. package/apps/pwa/src/lib/live-v5.ts +244 -0
  609. package/apps/pwa/src/lib/markdown-render.ts +8 -0
  610. package/apps/pwa/src/lib/mcp-app-bridge-host.ts +102 -0
  611. package/apps/pwa/src/lib/mcp-app-bridge.ts +474 -0
  612. package/apps/pwa/src/lib/mcp-app-csp.ts +68 -0
  613. package/apps/pwa/src/lib/mcp-app-resource.ts +90 -0
  614. package/apps/pwa/src/lib/member-invite-api.ts +39 -0
  615. package/apps/pwa/src/lib/member-mini-board-api.ts +75 -0
  616. package/apps/pwa/src/lib/member-signup-intent.ts +20 -0
  617. package/apps/pwa/src/lib/merge-approvals-api.ts +94 -0
  618. package/apps/pwa/src/lib/migrate-base-url.ts +64 -0
  619. package/apps/pwa/src/lib/model-tier-prefs.ts +115 -0
  620. package/apps/pwa/src/lib/model-tier-spec.ts +339 -0
  621. package/apps/pwa/src/lib/model-tier-sync.ts +408 -0
  622. package/apps/pwa/src/lib/morning-showroom-api.ts +78 -0
  623. package/apps/pwa/src/lib/new-build.ts +14 -0
  624. package/apps/pwa/src/lib/notification-target-select.ts +76 -0
  625. package/apps/pwa/src/lib/ocr-prefs.ts +79 -0
  626. package/apps/pwa/src/lib/operator-role.ts +40 -0
  627. package/apps/pwa/src/lib/ops-api.ts +285 -0
  628. package/apps/pwa/src/lib/outputs-api.ts +20 -0
  629. package/apps/pwa/src/lib/peer-id.ts +40 -0
  630. package/apps/pwa/src/lib/preset-catalog.ts +92 -0
  631. package/apps/pwa/src/lib/projects-api.ts +67 -0
  632. package/apps/pwa/src/lib/public-app-report.ts +18 -0
  633. package/apps/pwa/src/lib/public-capture.tsx +19 -0
  634. package/apps/pwa/src/lib/pushcut-runtime.ts +144 -0
  635. package/apps/pwa/src/lib/pwa-role.ts +37 -0
  636. package/apps/pwa/src/lib/quiet-surface.ts +37 -0
  637. package/apps/pwa/src/lib/register-sw.ts +100 -0
  638. package/apps/pwa/src/lib/research-fan.ts +93 -0
  639. package/apps/pwa/src/lib/route-maturity.ts +28 -0
  640. package/apps/pwa/src/lib/run-graph-flow.ts +144 -0
  641. package/apps/pwa/src/lib/run-graph-yaml-edit.ts +393 -0
  642. package/apps/pwa/src/lib/secure-context-guard.ts +112 -0
  643. package/apps/pwa/src/lib/session-restore.ts +269 -0
  644. package/apps/pwa/src/lib/sessions-service.ts +294 -0
  645. package/apps/pwa/src/lib/sessions-store-api.ts +96 -0
  646. package/apps/pwa/src/lib/setup-link.ts +42 -0
  647. package/apps/pwa/src/lib/share-capture.ts +119 -0
  648. package/apps/pwa/src/lib/share-prefill.ts +21 -0
  649. package/apps/pwa/src/lib/share-scraps.ts +140 -0
  650. package/apps/pwa/src/lib/share-target-store.ts +234 -0
  651. package/apps/pwa/src/lib/shared-event-source.ts +158 -0
  652. package/apps/pwa/src/lib/show-beta.ts +48 -0
  653. package/apps/pwa/src/lib/showroom/cost-estimator.ts +97 -0
  654. package/apps/pwa/src/lib/showroom/hitl-toggle.ts +45 -0
  655. package/apps/pwa/src/lib/showroom/runtime.ts +1386 -0
  656. package/apps/pwa/src/lib/showroom/storage.ts +260 -0
  657. package/apps/pwa/src/lib/showroom/types.ts +323 -0
  658. package/apps/pwa/src/lib/showroom/use-personas.ts +126 -0
  659. package/apps/pwa/src/lib/showroom/use-resolved-view.ts +179 -0
  660. package/apps/pwa/src/lib/showroom-keyboard-shortcuts.ts +127 -0
  661. package/apps/pwa/src/lib/skill-exec-client.ts +54 -0
  662. package/apps/pwa/src/lib/snapshot.ts +75 -0
  663. package/apps/pwa/src/lib/swipe-gesture.ts +176 -0
  664. package/apps/pwa/src/lib/task-api.ts +141 -0
  665. package/apps/pwa/src/lib/term-focus.ts +52 -0
  666. package/apps/pwa/src/lib/terminal-stream.ts +38 -0
  667. package/apps/pwa/src/lib/testing/react-hook-harness.ts +269 -0
  668. package/apps/pwa/src/lib/tui-observe.ts +130 -0
  669. package/apps/pwa/src/lib/turn-busy.ts +38 -0
  670. package/apps/pwa/src/lib/upload-attachment.ts +95 -0
  671. package/apps/pwa/src/lib/use-focus-trap.ts +121 -0
  672. package/apps/pwa/src/lib/use-live-announcer.ts +79 -0
  673. package/apps/pwa/src/lib/use-live-camera.ts +289 -0
  674. package/apps/pwa/src/lib/use-mission-router.ts +126 -0
  675. package/apps/pwa/src/lib/use-operator.ts +35 -0
  676. package/apps/pwa/src/lib/use-pointer-capability.ts +53 -0
  677. package/apps/pwa/src/lib/use-sessions.ts +47 -0
  678. package/apps/pwa/src/lib/use-wake-lock.ts +104 -0
  679. package/apps/pwa/src/lib/user-intent-logger.ts +83 -0
  680. package/apps/pwa/src/lib/utils.ts +6 -0
  681. package/apps/pwa/src/lib/vault-api.ts +109 -0
  682. package/apps/pwa/src/lib/vault-helpers.ts +100 -0
  683. package/apps/pwa/src/lib/vault-tree.ts +22 -0
  684. package/apps/pwa/src/lib/video-frame-extract.ts +111 -0
  685. package/apps/pwa/src/lib/voice-intake.ts +232 -0
  686. package/apps/pwa/src/lib/voice-prefs.ts +81 -0
  687. package/apps/pwa/src/lib/web-push.ts +213 -0
  688. package/apps/pwa/src/lib/xterm-capability-filter.ts +50 -0
  689. package/apps/pwa/src/lib/xterm-resize-controller.ts +162 -0
  690. package/apps/pwa/src/nexus/client.ts +1719 -0
  691. package/apps/pwa/src/nexus/components/detail-views/channel-bot-detail.tsx +53 -0
  692. package/apps/pwa/src/nexus/components/detail-views/chat-detail.tsx +18 -0
  693. package/apps/pwa/src/nexus/components/detail-views/daemon-detail.tsx +27 -0
  694. package/apps/pwa/src/nexus/components/detail-views/index.ts +36 -0
  695. package/apps/pwa/src/nexus/components/detail-views/pwa-host-detail.tsx +33 -0
  696. package/apps/pwa/src/nexus/components/detail-views/webterm-detail.tsx +16 -0
  697. package/apps/pwa/src/nexus/components/log-line.tsx +14 -0
  698. package/apps/pwa/src/nexus/components/mini-term-dock.tsx +83 -0
  699. package/apps/pwa/src/nexus/components/nexus-sidebar.tsx +77 -0
  700. package/apps/pwa/src/nexus/components/sidebar-grouping.ts +50 -0
  701. package/apps/pwa/src/nexus/components/sidebar-tab-item.tsx +54 -0
  702. package/apps/pwa/src/nexus/components/status-badge.tsx +56 -0
  703. package/apps/pwa/src/nexus/components/tab-actions.tsx +82 -0
  704. package/apps/pwa/src/nexus/components/tab-detail.tsx +32 -0
  705. package/apps/pwa/src/nexus/components/tab-status-panel.tsx +51 -0
  706. package/apps/pwa/src/nexus/hooks/index.ts +25 -0
  707. package/apps/pwa/src/nexus/hooks/query-keys.ts +57 -0
  708. package/apps/pwa/src/nexus/hooks/use-bindings.ts +75 -0
  709. package/apps/pwa/src/nexus/hooks/use-config.ts +71 -0
  710. package/apps/pwa/src/nexus/hooks/use-design-check.ts +190 -0
  711. package/apps/pwa/src/nexus/hooks/use-events.ts +43 -0
  712. package/apps/pwa/src/nexus/hooks/use-live-signals.ts +71 -0
  713. package/apps/pwa/src/nexus/hooks/use-nexus-context.tsx +56 -0
  714. package/apps/pwa/src/nexus/hooks/use-nexus-state.ts +76 -0
  715. package/apps/pwa/src/nexus/hooks/use-platforms.ts +22 -0
  716. package/apps/pwa/src/nexus/hooks/use-tab-actions.ts +82 -0
  717. package/apps/pwa/src/nexus/hooks/use-tab-logs-stream.ts +89 -0
  718. package/apps/pwa/src/nexus/hooks/use-templates.ts +34 -0
  719. package/apps/pwa/src/nexus/hooks/use-workflow-pins.ts +34 -0
  720. package/apps/pwa/src/nexus/hooks/use-workflow-run-modes.ts +18 -0
  721. package/apps/pwa/src/nexus/hooks/use-workflows.ts +327 -0
  722. package/apps/pwa/src/nexus/hooks/use-worktrees.ts +76 -0
  723. package/apps/pwa/src/nexus/runtime-discovery.ts +66 -0
  724. package/apps/pwa/src/nexus/types.ts +89 -0
  725. package/apps/pwa/src/test-devices/graph-design-replay.ts +73 -0
  726. package/apps/pwa/src/voice/barge-in.ts +235 -0
  727. package/apps/pwa/src/voice/showroom-voice.ts +64 -0
  728. package/apps/pwa/src/voice/use-showroom-tts.ts +192 -0
  729. package/apps/pwa/src/voice/use-voice-controller.ts +291 -0
  730. package/apps/pwa/src/voice/use-voice-tts.ts +169 -0
  731. package/apps/pwa/src/voice/voice-capture.ts +182 -0
  732. package/apps/pwa/src/voice/voice-frame-protocol.ts +73 -0
  733. package/apps/pwa/src/voice/voice-phase-styles.ts +26 -0
  734. package/apps/pwa/src/voice/voice-playback.ts +73 -0
  735. package/apps/pwa/src/voice/voice-websocket.ts +191 -0
  736. package/apps/pwa/tsconfig.json +23 -0
  737. package/catalog/models/openrouter/onboarding-picks.json +16 -0
  738. package/catalog/models/openrouter/solar-mini4.yaml +27 -0
  739. package/catalog/models/openrouter/solar-pro4.yaml +27 -0
  740. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-CONTRACT-SECRET-ENTROPY-TS.json +4 -1
  741. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-KILL-SWITCH-WORLD-TS.json +4 -1
  742. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-SCRATCH-BOOTSTRAP-TS.json +4 -1
  743. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-UPGRADE-PATH-WORLD-TS.json +4 -1
  744. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-ARG-MACRO-CANVAS-SIM-TS.json +4 -1
  745. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-ASIDE-FEEDBACK-LOOP-TS.json +4 -1
  746. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-AUTHOR-REVIEWER-PRECHECK-DEVICE-TS.json +4 -1
  747. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BACKEND-TIER-DEVICE-TS.json +4 -1
  748. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BOOT-DAEMON-TOOLS-PTY-SHELL-DEVICE-TS.json +4 -1
  749. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BROWSER-HAND-TS.json +4 -1
  750. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BURST-READY-LADDER-SIM-TS.json +4 -1
  751. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CENSUS-ORACLE-AXIS-WORLD-TS.json +4 -1
  752. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CHAIN-LAND-TS.json +4 -1
  753. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CLASSIC-TUI-SEAT-SCENARIOS-TS.json +4 -1
  754. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CLI-CONFIG-AUDIT-DEVICE-TS.json +4 -1
  755. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CODEX-WIRE-CAPTURE-TS.json +4 -1
  756. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-COMPUTER-USE-TS.json +4 -1
  757. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DASHBOARD-EVENT-LOOP-STALL-MONITOR-DEVICE-TS.json +4 -1
  758. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DELETE-IMPACT-SIM-TS.json +4 -0
  759. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DEVICE-CATALOG-SNAPSHOT-FRAGMENTS-TS.json +4 -1
  760. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DEVICE-FIDELITY-TS.json +4 -1
  761. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DRAFT-INVENTORY-BUILDER-TS.json +4 -1
  762. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-EDGE-CREATOR-NIGHTLY-TS.json +4 -1
  763. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-EDGE-CREATOR-TS.json +4 -1
  764. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-EVENT-MONKEY-TS.json +4 -1
  765. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ABSORB-INGEST-TS.json +4 -1
  766. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ADB-PHONE-WORLD-TS.json +4 -1
  767. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-AGENT-HOOK-HOST-TS.json +4 -1
  768. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ANDROID-CLIENT-TS.json +4 -1
  769. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-AUTH-TS.json +4 -1
  770. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-DB-BACKUP-WORLD-TS.json +4 -1
  771. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-DB-WORLD-TS.json +4 -1
  772. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-DRIVE-WORLD-TS.json +4 -1
  773. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-FAILURES-TS.json +4 -1
  774. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-HOST-TS.json +4 -1
  775. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-REALTIME-TS.json +4 -1
  776. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-SOURCE-CONCURRENT-WRITER-TS.json +4 -1
  777. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-SOURCE-WORLD-TS.json +4 -1
  778. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-STORAGE-TS.json +4 -1
  779. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-TRAFFIC-TS.json +4 -1
  780. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-BIN-ARGS-SIM-TS.json +4 -1
  781. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-BIN-TS.json +4 -1
  782. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-BROWSER-PAGE-TS.json +4 -1
  783. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-CLOCK-TS.json +4 -1
  784. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-CLOUD-BILLING-WORLD-TS.json +4 -1
  785. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-CLOUD-VM-TS.json +4 -1
  786. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-DATA-GUARD-BOUNDARY-TS.json +4 -1
  787. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-DNS-CERT-TS.json +4 -1
  788. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ELEVENLABS-TS.json +4 -1
  789. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-FEEDS-TS.json +4 -1
  790. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-FETCH-TS.json +4 -1
  791. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-FLEET-TS.json +4 -1
  792. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-GH-TS.json +4 -1
  793. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-GOOGLE-DRIVE-WORLD-TS.json +4 -1
  794. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-HERDR-TS.json +4 -1
  795. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-HIGGSFIELD-TS.json +4 -1
  796. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-KUBECTL-TS.json +4 -1
  797. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-LAND-QUEUE-TS.json +4 -1
  798. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-LINEAR-DEVICE-TS.json +4 -1
  799. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-LLM-TS.json +4 -1
  800. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-MEMBER-OIDC-WORLD-TS.json +4 -1
  801. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-MOBILE-TOOLCHAIN-TS.json +4 -1
  802. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-NEXUS-BOARD-SERVER-TS.json +4 -1
  803. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-PAYMENT-TS.json +4 -1
  804. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-PS-TS.json +4 -1
  805. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-RELAY-WORLD-TS.json +4 -1
  806. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-SSH-TS.json +4 -1
  807. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-STT-TS.json +4 -1
  808. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-TELEGRAM-OUTBOUND-TS.json +4 -1
  809. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-TELEGRAM-VIDEO-TS.json +4 -1
  810. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-TEMP-CLEANUP-TS.json +4 -1
  811. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-CRED-EXPIRY-TS.json +4 -1
  812. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-GLM-NO-CREDENTIAL-TS.json +4 -1
  813. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-NEEDS-HUMAN-REASON-REPAIR-TS.json +4 -1
  814. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-NEXTMOVE-DISPATCH-TS.json +4 -1
  815. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-NEXUS-STALL-TS.json +4 -1
  816. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-CHILD-RESULT-TS.json +4 -1
  817. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-CODEX-503-TS.json +4 -1
  818. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-DEATH-TS.json +4 -1
  819. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-REUSE-RESIDUE-TS.json +4 -1
  820. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POOL-CAP-TS.json +4 -1
  821. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-SCOPE-ESCAPE-LIFT-TS.json +4 -1
  822. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-SQLITE-BUSY-TS.json +4 -1
  823. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-TUI-400-AUTOHEAL-TS.json +4 -1
  824. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FIXTURES-GIT-WORKTREE-ACCEL-LINUX-JSON.json +4 -1
  825. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FLUTTER-DEPLOY-JOURNEY-TS.json +4 -1
  826. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-IMAGE-LAYERED-DELTA-SIM-TS.json +4 -1
  827. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-IMAGE-PREFLIGHT-RUNTIME-IDENTITY-FLOW-SIM-TS.json +4 -1
  828. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-ROSTER-SECOND-POOL-TS.json +4 -1
  829. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-SHARD-HOST-REROUTE-TS.json +4 -1
  830. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-STEADY-STATE-PROOF-SIM-TS.json +4 -1
  831. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GCP-ARCHITECT-EXPAND-FAKE-WORLD-TS.json +7 -0
  832. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GCP-ARCHITECT-EXPAND-TIERED-DESIGN-TS.json +6 -0
  833. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GIT-PUSH-TIMEOUT-PARTIAL-OUTCOME-REMOTE-VERIFY-TS.json +4 -1
  834. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GOAL-DEVICE-TS.json +4 -1
  835. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GOAL-INTERIM-TRACE-TS.json +4 -1
  836. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-DIFF-APPLY-TS.json +4 -1
  837. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-ENGINE-SIM-TS.json +4 -1
  838. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-EVENT-ENTRY-WORLD-TS.json +5 -1
  839. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-PLACEMENT-LEASE-WORLD-TS.json +5 -1
  840. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-RUN-LIFECYCLE-WORLD-TS.json +4 -1
  841. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-RUNTIME-OVERLAY-EVENT-PATH-TS.json +4 -1
  842. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-RUNTIME-OVERLAY-EVENT-PATH-WORKER-TS.json +4 -1
  843. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-TRIGGER-HOOK-DEVICE-TS.json +6 -1
  844. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRID-CHAOS-DRIVER-TS.json +4 -1
  845. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRID-LEDGER-TS.json +4 -1
  846. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRID-READY-TIERS-TS.json +4 -1
  847. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HEADLESS-TUI-TS.json +4 -1
  848. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HEAL-REAUTHOR-MATERIALIZED-TS.json +4 -1
  849. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HOTSPOT-FILE-LEASE-WORLD-TS.json +6 -1
  850. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HQ-MOVE-SIM-TS.json +4 -1
  851. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-IN-PROCESS-CLI-539-FILE-ADOPTION-SIM-TS.json +4 -1
  852. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-IN-PROCESS-CLI-TS.json +4 -1
  853. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-INPUT-HISTORY-TS.json +4 -1
  854. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-INSTALL-CONSENT-DEVICE-TS.json +4 -1
  855. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-INTERACTION-TS.json +4 -1
  856. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-IOS-CHAT-EDGE-ADAPTER-TS.json +4 -1
  857. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-KAIST-APP-QR-SIM-TS.json +7 -0
  858. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-KAIST-CLASSIC-PWA-BROWSER-REPLAY-TS.json +7 -0
  859. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-KAIST-CLASSIC-PWA-REPLAY-WORLD-TS.json +7 -0
  860. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-LINEAR-SECRETARY-TS.json +4 -1
  861. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MAPREDUCE-MULTIHOST-SIM-TS.json +4 -1
  862. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-AUTHORING-FIRST-RUN-CHILD-TS.json +4 -1
  863. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-AUTHORING-FIRST-RUN-TS.json +4 -1
  864. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-DEVICE-REQUESTS-TS.json +4 -1
  865. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SCENARIO-CATALOG-TS.json +4 -1
  866. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-FRAME-CHILD-TS.json +4 -1
  867. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-FRAME-TS.json +4 -1
  868. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-SEQUENCE-CHILD-TS.json +4 -1
  869. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-SEQUENCE-TS.json +4 -1
  870. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MULTI-ACTOR-WORLD-TS.json +4 -1
  871. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MULTI-TENANT-RELAY-WORLD-TS.json +4 -1
  872. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NETWORK-SANDBOX-TS.json +4 -1
  873. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-CORE-INPUT-TS.json +4 -1
  874. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-PLUGIN-WIZARD-WORLD-TS.json +8 -0
  875. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-ROUTE-DEVICE-TS.json +4 -1
  876. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-SEAT-SCENARIOS-TS.json +4 -1
  877. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NL-SCENARIO-TS.json +4 -1
  878. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-ONBOARDING-FIRST-RUN-DEVICE-TS.json +4 -1
  879. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-OUTBOUND-GUARD-SIM-TS.json +4 -1
  880. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PLUGIN-RELEASE-OBSERVE-ROUTE-WORLD-TS.json +4 -1
  881. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PLUGIN-YAML-GEN-WORLD-TS.json +4 -1
  882. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-FEDERATION-SIM-TS.json +4 -1
  883. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-PHASE-PREWARM-TS.json +4 -1
  884. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-REUSE-MATCH-BY-KIND-SIM-TS.json +4 -1
  885. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-REUSE-SHARED-FAKE-BOUNDARY-TS.json +4 -1
  886. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-REUSE-WORLD-TS.json +4 -1
  887. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PR-LAND-DRIFT-AUTOREPAIR-DEVICE-TS.json +4 -1
  888. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PR-LAND-DRIFT-GATE-DEVICE-TS.json +4 -1
  889. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PTY-KEY-MODIFIERS-DEVICE-TS.json +4 -1
  890. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PUBLIC-AUTH-PROVIDER-CLOUD-VM-SIM-TS.json +4 -1
  891. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PWA-PROVENANCE-BADGE-WORLD-TS.json +6 -1
  892. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PWA-RETAINED-ROUTES-WORLD-TS.json +4 -1
  893. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-READINESS-COUNTDOWN-TS.json +4 -1
  894. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-REAL-TARGET-SANDBOX-TS.json +4 -1
  895. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-EVENT-TRACE-TS.json +4 -1
  896. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-PUBLISH-DEVICES-TS.json +4 -1
  897. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-SAME-VERSION-RUN-ADOPTION-SIM-TS.json +4 -1
  898. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-SIM-RIG-SEAT-GUARD-CHILD-TS.json +4 -1
  899. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-SIM-RIG-TS.json +4 -1
  900. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RENDER-FRAME-TS.json +4 -1
  901. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RESEARCH-DECISION-CHAIN-TS.json +4 -1
  902. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RESUME-PICKER-DEVICE-TS.json +4 -1
  903. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RLA-EVENT-RESPONSE-SCORECARD-TS.json +4 -1
  904. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RLA-MACROPHAGE-HEAL-TIMEOUT-STALE-OUTPUT-SIM-TS.json +6 -1
  905. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SAFE-PUBLIC-COPY-PUBLISH-TS.json +4 -1
  906. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SCENARIO-TARGET-TS.json +6 -0
  907. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SCENARIO-TS.json +4 -1
  908. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SECRET-CANARY-TS.json +4 -1
  909. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SEMINAR-REHEARSAL-TS.json +4 -1
  910. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SERVICE-KEY-SETUP-TS.json +4 -1
  911. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SESSION-ID-SEED-TS.json +4 -1
  912. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SIM-COVERAGE-TS.json +4 -1
  913. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SIM-RECEIPT-TS.json +4 -1
  914. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SKILLS-TOOLS-SHELL-DEVICE-TS.json +4 -1
  915. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SLASH-MENU-FRAMES-TS.json +4 -1
  916. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SMART-MERGE-WORLD-TS.json +4 -1
  917. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SUBAGENT-TOOLS-DEVICE-TS.json +4 -1
  918. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TA-LAND-COUNT-DISPATCHER-SIM-TS.json +4 -1
  919. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TASK-AGENT-PARENT-HOST-DEVICE-TS.json +4 -1
  920. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TASK-AGENT-REJUDGE-ON-HEAD-DEVICE-TS.json +4 -1
  921. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TASK-ORCHESTRATOR-SURFACES-SELF-IMPLEMENT-POD-DEVICE-TS.json +4 -1
  922. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TEMP-GIT-REMOTE-TS.json +4 -1
  923. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TEMP-GIT-REPO-TS.json +4 -1
  924. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TERM-SLASH-DEVICE-TS.json +4 -1
  925. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TOOL-ASYNC-FAIL-LOOP-TS.json +4 -1
  926. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TOOL-ROUTER-WORLD-TS.json +4 -1
  927. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TRAIN-MANAGER-DECISION-SIM-TS.json +4 -1
  928. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TRAIN-MANAGER-WORLD-TS.json +4 -1
  929. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TTY-FOREGROUND-STEAL-CHILD-TS.json +4 -1
  930. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TURN-STATES-TS.json +4 -1
  931. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TURN-THROW-SIM-TS.json +4 -1
  932. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-USER-CONFIG-DEFAULT-SPARSE-SIM-TS.json +4 -1
  933. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-USER-CONFIG-TUI-DIET-SIM-TS.json +4 -1
  934. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WARM-POOL-REUSE-SIM-TS.json +4 -1
  935. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WARM-POOL-REUSE-SWITCH-SIM-TS.json +4 -1
  936. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WARM-SI-REUSE-SIM-TS.json +4 -1
  937. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-CHAOS-RUNTIME-TS.json +4 -1
  938. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-HOST-CHAOS-TS.json +4 -1
  939. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-REGRESSION-SUITE-TS.json +4 -1
  940. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-SCHEMA-TS.json +4 -1
  941. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-SNAPSHOT-TS.json +4 -1
  942. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-STORE-TS.json +4 -1
  943. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-TS.json +4 -1
  944. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-WATCH-TS.json +4 -1
  945. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00670--src-ux-sim-kaist-app-qr-sim-ts-a1e7116f.json +11 -0
  946. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00680--src-ux-sim-kaist-app-qr-sim-test-ts-2b726ad2.json +11 -0
  947. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00670--src-ux-sim-kaist-app-qr-sim-ts-a1e7116f.json +4 -0
  948. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00680--src-ux-sim-kaist-app-qr-sim-test-ts-2b726ad2.json +4 -0
  949. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00060--fake-llm-4e9d0461.json +4 -2
  950. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00240--world-runtime-d26d02c9.json +2 -0
  951. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00340--fault-injection-60e2a635.json +1 -0
  952. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01855--pwa-installed-package-staging.json +31 -0
  953. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01870--knowledge-pack-auto-select--598a19aa.json +31 -0
  954. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01880--kaist-app-qr-public-isolation-7dff33f1.json +36 -0
  955. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01880--kaist-classic-pwa-browser-replay-7ba58169.json +42 -0
  956. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01880--self-edge-byoc-world.json +27 -0
  957. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01890--gcp-architect-expand-fake-world-1dc2b194.json +27 -0
  958. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01890--kaist-pwa-mobile-approval-extension.json +32 -0
  959. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01891--kcb-integrated-pwa-lap.json +32 -0
  960. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01892--gcp-architect-tiered-design.json +25 -0
  961. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/02000--delete-impact-sim.json +28 -0
  962. package/catalog/ux-sim/mock-scenario-catalog-fragments/metadata.json +1 -1
  963. package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00670--src-ux-sim-kaist-app-qr-sim-ts-a1e7116f.json +1 -0
  964. package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00680--src-ux-sim-kaist-app-qr-sim-test-ts-2b726ad2.json +1 -0
  965. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/fake-llm--bcb74f41.json +4 -0
  966. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/gcp-architect-tiered-design--972746e0.json +4 -0
  967. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/kaist-classic-pwa-browser-replay--978b5da1.json +4 -0
  968. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/kaist-classic-pwa-browser-replay--c8bdb3ba.json +4 -0
  969. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/kaist-pwa-mobile-approval-extension--2b700ea3.json +4 -0
  970. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/kcb-integrated-pwa-lap--b7be4c21.json +4 -0
  971. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-arch-delete-impact-sim--1ba1037a.json +4 -0
  972. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/tui-interaction--4336bdfe.json +4 -0
  973. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00400--kaist-app-qr-live-c4d9f8a9.json +24 -0
  974. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00360--md-ux-sim-fake-llm-ts-df79e477.json +1 -1
  975. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01211--md-ux-sim-scenario-target-ts.json +10 -0
  976. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01880--md-ux-sim-kaist-app-qr-sim-ts-a39fa1af.json +10 -0
  977. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01880--md-ux-sim-kaist-classic-pwa-browser-replay-ts-e5635fd5.json +8 -0
  978. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01880--md-ux-sim-kaist-classic-pwa-replay-world-ts-8dba624f.json +8 -0
  979. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01890--md-ux-sim-gcp-architect-expand-fake-world-ts-50a192ca.json +10 -0
  980. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01892--md-ux-sim-gcp-architect-expand-tiered-design-ts.json +10 -0
  981. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/02000--md-ux-sim-delete-impact-sim-ts.json +8 -0
  982. package/docs/profiles/solar-only-demo.json +13 -0
  983. package/graphs/demo/integrated-ticketing.yaml +40 -0
  984. package/graphs/demo/recipes.yaml +8 -0
  985. package/graphs/drafts/recipes.yaml +1 -1
  986. package/graphs/ops/host-reservation-watch.yaml +18 -0
  987. package/graphs/ops/placement.yaml +45 -0
  988. package/graphs/ops/recipes.yaml +19 -0
  989. package/graphs/ops/silence-watch.yaml +24 -0
  990. package/graphs/release/node-command-bindings.json +27 -0
  991. package/graphs/release/plugin.json +123 -12
  992. package/graphs/release/recipes.yaml +11 -0
  993. package/graphs/release/release-loop-fanout.yaml +1 -0
  994. package/graphs/release/release-loop.yaml +25 -4
  995. package/graphs/release/rla/loop.yaml +2 -1
  996. package/graphs/work/web-app.yaml +21 -0
  997. package/package.json +10 -1
  998. package/packs/gcp-architect-expand/content/decision-table.md +6 -1
  999. package/packs/system-architecture-public/README.md +17 -0
  1000. package/packs/system-architecture-public/content/cqrs-event-sourcing-01.json +6 -0
  1001. package/packs/system-architecture-public/content/cqrs-event-sourcing-02.json +6 -0
  1002. package/packs/system-architecture-public/content/cqrs-event-sourcing-03.json +6 -0
  1003. package/packs/system-architecture-public/content/cqrs-event-sourcing-04.json +6 -0
  1004. package/packs/system-architecture-public/content/data-pipeline-01.json +6 -0
  1005. package/packs/system-architecture-public/content/data-pipeline-02.json +6 -0
  1006. package/packs/system-architecture-public/content/data-pipeline-03.json +6 -0
  1007. package/packs/system-architecture-public/content/data-pipeline-04.json +6 -0
  1008. package/packs/system-architecture-public/content/event-queue-01.json +6 -0
  1009. package/packs/system-architecture-public/content/event-queue-02.json +6 -0
  1010. package/packs/system-architecture-public/content/event-queue-03.json +6 -0
  1011. package/packs/system-architecture-public/content/event-queue-04.json +6 -0
  1012. package/packs/system-architecture-public/content/file-media-01.json +6 -0
  1013. package/packs/system-architecture-public/content/file-media-02.json +6 -0
  1014. package/packs/system-architecture-public/content/file-media-03.json +6 -0
  1015. package/packs/system-architecture-public/content/file-media-04.json +6 -0
  1016. package/packs/system-architecture-public/content/microservices-mesh-01.json +6 -0
  1017. package/packs/system-architecture-public/content/microservices-mesh-02.json +6 -0
  1018. package/packs/system-architecture-public/content/microservices-mesh-03.json +6 -0
  1019. package/packs/system-architecture-public/content/microservices-mesh-04.json +6 -0
  1020. package/packs/system-architecture-public/content/ml-serving-01.json +6 -0
  1021. package/packs/system-architecture-public/content/ml-serving-02.json +6 -0
  1022. package/packs/system-architecture-public/content/ml-serving-03.json +6 -0
  1023. package/packs/system-architecture-public/content/ml-serving-04.json +6 -0
  1024. package/packs/system-architecture-public/content/multi-tenant-saas-01.json +6 -0
  1025. package/packs/system-architecture-public/content/multi-tenant-saas-02.json +6 -0
  1026. package/packs/system-architecture-public/content/multi-tenant-saas-03.json +6 -0
  1027. package/packs/system-architecture-public/content/multi-tenant-saas-04.json +6 -0
  1028. package/packs/system-architecture-public/content/realtime-chat-notify-01.json +6 -0
  1029. package/packs/system-architecture-public/content/realtime-chat-notify-02.json +6 -0
  1030. package/packs/system-architecture-public/content/realtime-chat-notify-03.json +6 -0
  1031. package/packs/system-architecture-public/content/realtime-chat-notify-04.json +6 -0
  1032. package/packs/system-architecture-public/content/search-01.json +6 -0
  1033. package/packs/system-architecture-public/content/search-02.json +6 -0
  1034. package/packs/system-architecture-public/content/search-03.json +6 -0
  1035. package/packs/system-architecture-public/content/search-04.json +6 -0
  1036. package/packs/system-architecture-public/content/serverless-01.json +6 -0
  1037. package/packs/system-architecture-public/content/serverless-02.json +6 -0
  1038. package/packs/system-architecture-public/content/serverless-03.json +6 -0
  1039. package/packs/system-architecture-public/content/serverless-04.json +6 -0
  1040. package/packs/system-architecture-public/content/shared-patterns-01.json +6 -0
  1041. package/packs/system-architecture-public/content/shared-patterns-02.json +6 -0
  1042. package/packs/system-architecture-public/content/shared-patterns-03.json +6 -0
  1043. package/packs/system-architecture-public/content/shared-patterns-04.json +6 -0
  1044. package/packs/system-architecture-public/content/shared-patterns-05.json +6 -0
  1045. package/packs/system-architecture-public/content/shared-patterns-06.json +6 -0
  1046. package/packs/system-architecture-public/content/shared-patterns-07.json +6 -0
  1047. package/packs/system-architecture-public/content/three-tier-01.json +6 -0
  1048. package/packs/system-architecture-public/content/three-tier-02.json +6 -0
  1049. package/packs/system-architecture-public/content/three-tier-03.json +6 -0
  1050. package/packs/system-architecture-public/content/three-tier-04.json +6 -0
  1051. package/packs/system-architecture-public/knowledge-pack.json +219 -0
  1052. package/packs/ticketing-architecture-public/README.md +23 -0
  1053. package/packs/ticketing-architecture-public/content/01-scope.json +6 -0
  1054. package/packs/ticketing-architecture-public/content/02-seat.json +6 -0
  1055. package/packs/ticketing-architecture-public/content/03-unique.json +7 -0
  1056. package/packs/ticketing-architecture-public/content/04-queue.json +6 -0
  1057. package/packs/ticketing-architecture-public/content/05-redis.json +6 -0
  1058. package/packs/ticketing-architecture-public/content/06-payment.json +6 -0
  1059. package/packs/ticketing-architecture-public/content/07-idempotency.json +7 -0
  1060. package/packs/ticketing-architecture-public/content/08-webhook.json +6 -0
  1061. package/packs/ticketing-architecture-public/content/09-outbox.json +12 -0
  1062. package/packs/ticketing-architecture-public/content/10-kafka.json +6 -0
  1063. package/packs/ticketing-architecture-public/content/11-edge.json +6 -0
  1064. package/packs/ticketing-architecture-public/content/12-hpa.json +6 -0
  1065. package/packs/ticketing-architecture-public/content/13-probe.json +6 -0
  1066. package/packs/ticketing-architecture-public/content/14-decisions.json +6 -0
  1067. package/packs/ticketing-architecture-public/content/15-primer.json +6 -0
  1068. package/packs/ticketing-architecture-public/content/16-slo.json +6 -0
  1069. package/packs/ticketing-architecture-public/content/17-aws.json +6 -0
  1070. package/packs/ticketing-architecture-public/content/18-azure.json +6 -0
  1071. package/packs/ticketing-architecture-public/content/19-lease.json +6 -0
  1072. package/packs/ticketing-architecture-public/content/20-twelve-factor.json +6 -0
  1073. package/packs/ticketing-architecture-public/knowledge-pack.json +95 -0
  1074. package/plugins/README.md +7 -0
  1075. package/plugins/absorb/graph/absorb-build.yaml +83 -5
  1076. package/plugins/absorb/handlers/board-approval.ts +4 -2
  1077. package/plugins/absorb/plugin.json +11 -0
  1078. package/plugins/absorb/plugin.yaml +6 -2
  1079. package/plugins/absorb/sims/absorb-demo-world.yaml +3 -1
  1080. package/plugins/absorb/skills/absorb/build/SKILL.md +5 -1
  1081. package/plugins/architecture-deliverables/README.md +47 -0
  1082. package/plugins/architecture-deliverables/examples/input-sample.json +5 -0
  1083. package/plugins/architecture-deliverables/examples/legacy-finished-input.json +5 -0
  1084. package/plugins/architecture-deliverables/examples/structured-general.json +204 -0
  1085. package/plugins/architecture-deliverables/examples/structured-ticketing-gcp.json +210 -0
  1086. package/plugins/architecture-deliverables/graphs/architecture-deliverables.yaml +19 -0
  1087. package/plugins/architecture-deliverables/graphs/recipes.yaml +12 -0
  1088. package/plugins/architecture-deliverables/plugin.json +108 -0
  1089. package/plugins/architecture-deliverables/references/official-gcp-icon-data.json +1 -0
  1090. package/plugins/architecture-deliverables/references/official-gcp-icons.json +193 -0
  1091. package/plugins/architecture-deliverables/references/structured-design.schema.json +375 -0
  1092. package/plugins/architecture-deliverables/references/structured-template.css +1 -0
  1093. package/plugins/demo-brief-to-requirements/README.md +20 -0
  1094. package/plugins/demo-brief-to-requirements/examples/absorb-ticketing-records.json +20 -0
  1095. package/plugins/demo-brief-to-requirements/examples/ticketing-brief.json +20 -0
  1096. package/plugins/demo-brief-to-requirements/graphs/brief-to-requirements.yaml +10 -0
  1097. package/plugins/demo-brief-to-requirements/graphs/recipes.yaml +3 -0
  1098. package/plugins/demo-brief-to-requirements/graphs/scene4-architecture.yaml +15 -0
  1099. package/plugins/demo-brief-to-requirements/plugin.json +31 -0
  1100. package/plugins/demo-brief-to-requirements/references/input-contract.md +5 -0
  1101. package/plugins/gcp-architect-expand/README.md +23 -3
  1102. package/plugins/gcp-architect-expand/demo/BOARD-HANDOFF.md +17 -0
  1103. package/plugins/gcp-architect-expand/demo/KCB-SCENE5-RECORDING-SCRIPT.md +30 -0
  1104. package/plugins/gcp-architect-expand/demo/SOLAR-HANDOFF.md +93 -0
  1105. package/plugins/gcp-architect-expand/demo/brief-3-lines.ko.txt +3 -0
  1106. package/plugins/gcp-architect-expand/demo/classic-pty-live-ab56-receipt.json +52 -0
  1107. package/plugins/gcp-architect-expand/demo/classic-pty-seam-receipt.json +21 -0
  1108. package/plugins/gcp-architect-expand/demo/classic-pty-toolsearch-stack-receipt.json +24 -0
  1109. package/plugins/gcp-architect-expand/demo/fixtures/advanced-requirement.json +19 -0
  1110. package/plugins/gcp-architect-expand/demo/fixtures/pressure.json +8 -0
  1111. package/plugins/gcp-architect-expand/demo/fixtures/ticketing-design.json +21 -0
  1112. package/plugins/gcp-architect-expand/demo/graph-direct-test-world-receipt.json +114 -0
  1113. package/plugins/gcp-architect-expand/demo/scene4-json-bridge-test-receipt.json +119 -0
  1114. package/plugins/gcp-architect-expand/demo/security-defaults.json +6 -0
  1115. package/plugins/gcp-architect-expand/demo/solar-original-retest-receipt.json +182 -0
  1116. package/plugins/gcp-architect-expand/demo/structured-assumption-regression-receipt.json +182 -0
  1117. package/plugins/gcp-architect-expand/graph.yaml +52 -20
  1118. package/plugins/gcp-architect-expand/output-contract.json +31 -0
  1119. package/plugins/gcp-architect-expand/plugin.json +77 -2
  1120. package/plugins/gcp-architect-expand/recipes.yaml +12 -6
  1121. package/plugins/gcp-architect-expand/sim/assets/README.md +12 -0
  1122. package/plugins/gcp-architect-expand/sim/assets/cloud-storage.png +0 -0
  1123. package/plugins/gcp-architect-expand/sim/assets/compute-engine.png +0 -0
  1124. package/plugins/gcp-architect-expand/sim/assets/observability.png +0 -0
  1125. package/plugins/gcp-architect-expand/sim/assets/security-identity.png +0 -0
  1126. package/plugins/gcp-architect-expand/sim/sample-output/architecture-design.html +46 -0
  1127. package/plugins/gcp-architect-expand/sim/sample-output/architecture-design.pdf +0 -0
  1128. package/plugins/gcp-architect-expand/sim/sample-output/architecture.excalidraw +2638 -0
  1129. package/plugins/gcp-architect-expand/sim/sample-output/architecture.png +0 -0
  1130. package/plugins/gcp-architect-expand/sim/sample-output/board-attachments.json +45 -0
  1131. package/plugins/gcp-architect-expand/sim/sample-output/demo-result.json +22 -0
  1132. package/plugins/gcp-architect-expand/sim/sample-output/fake-world.json +46 -0
  1133. package/plugins/gcp-architect-expand/sim/sample-output/icon-provenance.json +14 -0
  1134. package/plugins/gcp-architect-expand/sim/sample-output/proposal.json +97 -0
  1135. package/plugins/gcp-architect-expand/tiered-graph.yaml +39 -0
  1136. package/plugins/graph-instance-view/evidence/pty-resource-screen.txt +31 -0
  1137. package/plugins/graph-instance-view/handlers/http-get.ts +22 -0
  1138. package/plugins/graph-instance-view/handlers/project-ledgers.ts +216 -0
  1139. package/plugins/graph-instance-view/handlers/render-terminal.ts +109 -0
  1140. package/plugins/graph-instance-view/handlers/view-model.ts +49 -0
  1141. package/plugins/graph-instance-view/plugin.yaml +16 -0
  1142. package/plugins/graph-instance-view/skills/read/SKILL.md +6 -0
  1143. package/plugins/invest-arg/recipes/notes-to-pack.yaml +10 -0
  1144. package/plugins/kr-flow-composites/plugin.json +1 -0
  1145. package/plugins/release-win-smoke/graphs/release-win-smoke.yaml +19 -0
  1146. package/plugins/release-win-smoke/plugin.json +46 -0
  1147. package/plugins/release-win-smoke/plugin.yaml +11 -0
  1148. package/plugins/release-win-smoke/sims/release-win-smoke.yaml +9 -0
  1149. package/plugins/release-win-smoke/skills/install/SKILL.md +3 -0
  1150. package/scripts/cycle-fired-judge.ts +8 -7
  1151. package/scripts/gcp-architect-expand/demo/design-result.ts +96 -0
  1152. package/scripts/gcp-architect-expand/demo/export-local-pressure.ts +15 -0
  1153. package/scripts/gcp-architect-expand/demo/pressure-input.ts +37 -0
  1154. package/scripts/gcp-architect-expand/demo/propose.ts +60 -0
  1155. package/scripts/gcp-architect-expand/demo/render-scene5-fallback.py +234 -0
  1156. package/scripts/gcp-architect-expand/demo/run-graph-test-world.ts +141 -0
  1157. package/scripts/gcp-architect-expand/demo/run.py +97 -0
  1158. package/scripts/gcp-architect-expand/demo/tui.py +153 -0
  1159. package/scripts/gcp-architect-expand/sim/build-sample.py +336 -0
  1160. package/scripts/gcp-architect-expand/sim/fake-world.ts +95 -0
  1161. package/scripts/gcp-architect-expand/sim/run-tiered-design.ts +91 -0
  1162. package/scripts/guardian-placement-shadow.ts +23 -0
  1163. package/scripts/heal/run-role.ts +21 -20
  1164. package/scripts/hq/cron-git-credential-audit.ts +200 -0
  1165. package/scripts/hq/hq-runaway-watch.ts +117 -0
  1166. package/scripts/lib/front-route-measurement.ts +1 -4
  1167. package/scripts/llm-cost-ledger.ts +9 -10
  1168. package/scripts/load/members-signup-burst.ts +5 -4
  1169. package/scripts/measure-key-arrival.ts +2 -4
  1170. package/scripts/measure-nl-routing-corpus.ts +1 -1
  1171. package/scripts/next-tui-default-sim.ts +43 -0
  1172. package/scripts/plugin-only-ratchet.ts +39 -14
  1173. package/scripts/release-loop/adaptive-gate-heal-adapter.ts +8 -7
  1174. package/scripts/release-loop/adaptive-gate-heal.ts +13 -7
  1175. package/scripts/release-loop/cloud-elastic-node.ts +454 -0
  1176. package/scripts/release-loop/cloud-lease-deadline.ts +14 -0
  1177. package/scripts/release-loop/cut-branch.ts +6 -0
  1178. package/scripts/release-loop/gate-closure.ts +12 -22
  1179. package/scripts/release-loop/gate-contract-surfaces.json +2 -0
  1180. package/scripts/release-loop/gate-cutover-switch-node.ts +12 -2
  1181. package/scripts/release-loop/gate-file-receipts.ts +10 -2
  1182. package/scripts/release-loop/gate-image-pin.ts +31 -3
  1183. package/scripts/release-loop/gate-node-sim.ts +5 -3
  1184. package/scripts/release-loop/gate-repair-node.ts +24 -0
  1185. package/scripts/release-loop/gate-runtime.ts +62 -14
  1186. package/scripts/release-loop/gate-shard-artifacts.ts +3 -1
  1187. package/scripts/release-loop/gate-shard-dispatch.ts +6 -2
  1188. package/scripts/release-loop/gate-triage-node.ts +1 -0
  1189. package/scripts/release-loop/resume.ts +6 -0
  1190. package/scripts/release-loop/runner-release-node-commands.ts +60 -0
  1191. package/scripts/release-loop/unattended-release.ts +10 -34
  1192. package/scripts/release-loop/version-node.ts +26 -99
  1193. package/scripts/solar-optimize-measure.ts +131 -0
  1194. package/scripts/ux/kcb-phone-rehearsal.ts +90 -0
  1195. package/scripts/ux-sim/openrouter-bare-first-run-no-network.ts +12 -0
  1196. package/scripts/ux-sim/openrouter-bare-first-run-pty.exp +35 -0
  1197. package/scripts/ux-sim/openrouter-first-run-pty.ts +32 -0
  1198. package/skills/diagram-master/references/engines/excalidraw/render_template.html +1 -1
  1199. package/skills/diagram-master/references/uv.lock +11 -8
  1200. package/skills/lecture-note-digitizer/references/convert_to_pdf.py +1 -0
  1201. package/src/agent/autonomous-tools.ts +5 -30
  1202. package/src/agent/self-ambient.ts +2 -2
  1203. package/src/agent-mission/cli-consumer.ts +165 -0
  1204. package/src/agent-substrate/review-cap-policy.ts +78 -0
  1205. package/src/agent-substrate/review-round-design-trigger.ts +89 -0
  1206. package/src/agent-substrate/self-review-cli.ts +158 -43
  1207. package/src/auth/setup-link-tokens.ts +12 -1
  1208. package/src/auto-research/auto-mode/context-keys-bridge.ts +2 -2
  1209. package/src/boot/daemon-prompt-turn.ts +2 -0
  1210. package/src/boot/daemon-tools/index.ts +2 -12
  1211. package/src/boot/daemon-tools/tool-catalog-observability.ts +21 -0
  1212. package/src/cft/andon-context-bridge.ts +2 -2
  1213. package/src/chat/internal-turn-contract.ts +20 -0
  1214. package/src/chat/solar-scene5-context.ts +1 -4
  1215. package/src/cli/agent-cli.ts +3 -1
  1216. package/src/cli/app-cli.ts +24 -2
  1217. package/src/cli/first-run/onboarding-pty-fixture.ts +34 -0
  1218. package/src/cli/first-run/openrouter-key-supply.ts +139 -0
  1219. package/src/cli/first-run/openrouter-picker.ts +19 -0
  1220. package/src/cli/msg-cli.ts +42 -4
  1221. package/src/cli/pr-cli.ts +199 -11
  1222. package/src/cli/release-cli.ts +39 -18
  1223. package/src/cli/release-manual-seat-claim.ts +108 -0
  1224. package/src/cli/resource-ledger-cli.ts +11 -4
  1225. package/src/cli/root-tui-entry.ts +4 -4
  1226. package/src/cli/seat-cli.ts +2 -2
  1227. package/src/cli/self-update.ts +25 -5
  1228. package/src/cli/setup-cli.ts +3 -1
  1229. package/src/cli/setup-keys.ts +68 -5
  1230. package/src/cli/sim-cli.ts +21 -8
  1231. package/src/cli/task-plugin-wizard-host.ts +2 -2
  1232. package/src/context-bus/context-now.ts +28 -15
  1233. package/src/context-bus/long-term-memory.ts +4 -1
  1234. package/src/context-bus/release-tui-status.ts +9 -0
  1235. package/src/conv-substrate/surface-detail.ts +19 -0
  1236. package/src/core-turn/provider-stop-reason.ts +6 -0
  1237. package/src/core-turn/run-core-turn.ts +7 -1
  1238. package/src/core-turn/types.ts +2 -0
  1239. package/src/dashboard/boot-timing.ts +1 -35
  1240. package/src/dashboard/classic-sidetab-mission-job.ts +3 -308
  1241. package/src/dashboard/classic-sidetab-mission-reconcile.ts +3 -212
  1242. package/src/dashboard/classic-sidetab-mission.ts +3 -20
  1243. package/src/dashboard/event-loop-stall-monitor.ts +1 -58
  1244. package/src/dashboard/index.ts +56 -86
  1245. package/src/dashboard/input/chat-main-plain-turn-runtime.ts +15 -0
  1246. package/src/dashboard/input/chat-main-submit-route.ts +0 -17
  1247. package/src/dashboard/input/goal-continue.ts +18 -220
  1248. package/src/dashboard/input/internal-turn.ts +19 -255
  1249. package/src/dashboard/input/turn-typeahead-prompt.ts +7 -31
  1250. package/src/dashboard/mission-cli-consumer.ts +2 -165
  1251. package/src/dashboard/seat-boot-preamble.ts +15 -428
  1252. package/src/dashboard/setup-inline.ts +14 -147
  1253. package/src/dashboard/sidetab-runtime.ts +2 -1
  1254. package/src/dashboard/skill-catalog-preamble.ts +6 -101
  1255. package/src/dashboard/slash-runtime/dashboard-handlers.ts +2 -3
  1256. package/src/dashboard/slash-runtime/registry.ts +1 -160
  1257. package/src/dashboard/term-slash-runtime.ts +1 -277
  1258. package/src/dashboard/terminal/session.ts +7 -35
  1259. package/src/dashboard/tui-400-runtime-adapter.ts +11 -0
  1260. package/src/dashboard/turn-start-segments.ts +16 -222
  1261. package/src/debug/log.ts +20 -4
  1262. package/src/display/dashboard-frame.ts +74 -0
  1263. package/src/display/essential-frame-cursor.ts +26 -0
  1264. package/src/display/events.ts +2 -4
  1265. package/src/esc-abort-gate.ts +1 -13
  1266. package/src/esc-shell-timing.ts +14 -0
  1267. package/src/event-loop-stall-monitor.ts +58 -0
  1268. package/src/exec-requests/planner.ts +10 -6
  1269. package/src/graph-runner/architecture-deliverables.ts +43 -0
  1270. package/src/graph-runner/architecture-output/pdf-body.ts +14 -0
  1271. package/src/graph-runner/architecture-output/run-step.ts +321 -0
  1272. package/src/graph-runner/architecture-output/structured-design.ts +201 -0
  1273. package/src/graph-runner/arg-feedback-consumer.ts +58 -0
  1274. package/src/graph-runner/arg-feedback-lifecycle.ts +312 -0
  1275. package/src/graph-runner/arg-open-proposal.ts +1 -4
  1276. package/src/graph-runner/arg-supervisor.ts +225 -78
  1277. package/src/graph-runner/briefing-requirements/convert.ts +79 -0
  1278. package/src/graph-runner/briefing-requirements/run-step.ts +20 -0
  1279. package/src/graph-runner/capabilities.ts +91 -2
  1280. package/src/graph-runner/capability-providers/architecture-deliverables.ts +51 -0
  1281. package/src/graph-runner/graph-cli.ts +76 -1
  1282. package/src/graph-runner/graph-events.ts +66 -2
  1283. package/src/graph-runner/graph-run-event-ledger.ts +102 -0
  1284. package/src/graph-runner/graph-run-msg-subscriptions.ts +84 -0
  1285. package/src/graph-runner/graph-subscriptions.ts +2 -2
  1286. package/src/graph-runner/in-process-registry.ts +2 -0
  1287. package/src/graph-runner/runner-types.ts +12 -0
  1288. package/src/graph-runner/runner.ts +343 -105
  1289. package/src/graph-runner/scene4-turn-policy.ts +68 -0
  1290. package/src/graph-runner/ticketing-scene4.ts +150 -0
  1291. package/src/graph-v2/input-bindings.ts +81 -0
  1292. package/src/graph-v2/lower.ts +2 -1
  1293. package/src/guardian/placement-shadow.ts +332 -0
  1294. package/src/harness/harness-cli-command.ts +2 -2
  1295. package/src/hq/promote.ts +1 -0
  1296. package/src/index.ts +37 -15
  1297. package/src/input-core/mode-context-bridge.ts +2 -2
  1298. package/src/instance/spawn-elanous.ts +10 -0
  1299. package/src/intelligence-map/budget-context-bridge.ts +2 -2
  1300. package/src/intelligence-map/model-catalog.ts +36 -0
  1301. package/src/intelligence-map/types.ts +1 -0
  1302. package/src/knowledge/notes-to-pack.ts +117 -0
  1303. package/src/knowledge/query.ts +88 -1
  1304. package/src/knowledge/tools/knowledge-query.ts +77 -10
  1305. package/src/llm.ts +99 -20
  1306. package/src/loops/graph-trigger-dispatch.ts +77 -3
  1307. package/src/loops/host-reservation-watch.ts +196 -0
  1308. package/src/loops/loop-scheduler.ts +72 -0
  1309. package/src/loops/loops-table.ts +77 -0
  1310. package/src/loops/msg-address.ts +5 -1
  1311. package/src/loops/msg-wake.ts +8 -2
  1312. package/src/loops/observe.ts +15 -2
  1313. package/src/loops/orchestrator/ready-queue.ts +113 -0
  1314. package/src/loops/orchestrator/tick.ts +31 -4
  1315. package/src/maturity/feature-maturity.ts +2 -2
  1316. package/src/mcp/server.ts +15 -3
  1317. package/src/memory.ts +17 -15
  1318. package/src/model-tier/llm-tier-map.ts +12 -0
  1319. package/src/msg/msg-store.ts +40 -18
  1320. package/src/msg/outbound-guard-world.ts +14 -0
  1321. package/src/mss/logging/record.ts +3 -0
  1322. package/src/native-tool-catalog.ts +15 -32
  1323. package/src/nexus/api/board-api.ts +2 -1
  1324. package/src/nexus/api/graph-run-events.ts +68 -0
  1325. package/src/nexus/api/http-server.ts +34 -2
  1326. package/src/nexus/api/meta-api.ts +2 -0
  1327. package/src/nexus/api/public-routes.ts +8 -0
  1328. package/src/nexus/api/resource-ledger.ts +29 -3
  1329. package/src/nexus/api/setup-child-llm.ts +1 -1
  1330. package/src/nexus/api/setup-credentials.ts +2 -4
  1331. package/src/nexus/api/setup-llm-provider.ts +1 -1
  1332. package/src/nexus/apps/app-api-contract-check.ts +45 -0
  1333. package/src/nexus/apps/app-storage.ts +39 -0
  1334. package/src/nexus/config/secrets/cred-owner.ts +15 -7
  1335. package/src/nexus/index.ts +0 -50
  1336. package/src/nexus/members/kcb-try-deadline.ts +20 -0
  1337. package/src/nexus/members/kcb-try.ts +55 -0
  1338. package/src/nexus/members/member-store.ts +151 -7
  1339. package/src/nexus/members/members-api.ts +69 -5
  1340. package/src/oauth/codex-owner-mirror.ts +49 -16
  1341. package/src/oauth/codex.ts +15 -22
  1342. package/src/onboarding/first-run.ts +64 -7
  1343. package/src/onboarding/non-interactive.ts +1 -0
  1344. package/src/onboarding/openrouter-model-picker.ts +78 -0
  1345. package/src/onboarding.ts +66 -23
  1346. package/src/plan-mode/context-bridge.ts +2 -2
  1347. package/src/plugins/core/declared-handler.ts +38 -0
  1348. package/src/plugins/core/feature-entitlements.ts +24 -0
  1349. package/src/plugins/core/host.ts +51 -3
  1350. package/src/plugins/core/manifest.ts +38 -2
  1351. package/src/plugins/core/plugin-yaml.ts +2 -1
  1352. package/src/plugins/install/plugin-install.ts +340 -13
  1353. package/src/prompt-library/providers/solar.ts +17 -0
  1354. package/src/prompt-library/registry.ts +3 -1
  1355. package/src/provenance/provenance.ts +111 -0
  1356. package/src/pwa/touch-input-mapper.ts +1 -1
  1357. package/src/release-loop/checklist.ts +42 -3
  1358. package/src/release-loop/cloud-elastic.ts +179 -0
  1359. package/src/release-loop/gate-shards.ts +11 -2
  1360. package/src/release-loop/macrophage-safe-cleanup.ts +12 -2
  1361. package/src/release-loop/outbound-guard-world.ts +16 -0
  1362. package/src/release-loop/rehearsal.ts +4 -2
  1363. package/src/release-loop/release-schedule.ts +28 -0
  1364. package/src/repl/index.ts +39 -10
  1365. package/src/resource-ledger/host-readiness.ts +82 -5
  1366. package/src/resource-ledger/resource-ledger.ts +143 -3
  1367. package/src/seat/seat-boot-preamble.ts +428 -0
  1368. package/src/seat-loop/seat-loop.ts +9 -4
  1369. package/src/selector.ts +1 -1
  1370. package/src/self-dev/entrance-registry.ts +1 -2
  1371. package/src/self-dev/shard-run.ts +4 -3
  1372. package/src/self-implement/gate-remote.ts +7 -6
  1373. package/src/self-implement/goal-author.ts +4 -6
  1374. package/src/self-implement/graph-yaml.ts +23 -2
  1375. package/src/session/chat.ts +13 -21
  1376. package/src/session/index.ts +6 -0
  1377. package/src/session-runtime/tier-flip.ts +7 -0
  1378. package/src/setup/provider-options.ts +150 -0
  1379. package/src/shell-runner/terminal-host-facade.ts +1 -1
  1380. package/src/sidetab-core/classic-sidetab-mission-job.ts +308 -0
  1381. package/src/sidetab-core/classic-sidetab-mission-reconcile.ts +212 -0
  1382. package/src/sidetab-core/classic-sidetab-mission-result.ts +20 -0
  1383. package/src/sidetab-core/mission-cli-consumer.ts +2 -0
  1384. package/src/sidetab-core/model.ts +3 -0
  1385. package/src/sidetab-core/workspace-input.ts +135 -0
  1386. package/src/sim-world-device-catalog-history.json +601 -0
  1387. package/src/skills/runner.ts +4 -5
  1388. package/src/skills/skill-catalog-preamble.ts +101 -0
  1389. package/src/skills/tools/acp-session.ts +3 -3
  1390. package/src/skills/tools/agent.ts +34 -12
  1391. package/src/skills/tools/dashboard-state.ts +1 -1
  1392. package/src/skills/tools/dev-harness.ts +1 -1
  1393. package/src/skills/tools/msg-inbox.ts +43 -0
  1394. package/src/skills/tools/schedule-wakeup.ts +8 -2
  1395. package/src/skills/tools/terminal-modal-inject.ts +1 -1
  1396. package/src/skills/tools/terminal-modal.ts +1 -1
  1397. package/src/skills/url-router.ts +19 -2
  1398. package/src/slash/registry.ts +160 -0
  1399. package/src/steward/triage.ts +5 -1
  1400. package/src/supervision/incident-claim.ts +253 -0
  1401. package/src/supervision/silence-watch.ts +221 -0
  1402. package/src/surface/terminal-surface-intent.ts +125 -0
  1403. package/src/telegram-commands.ts +0 -58
  1404. package/src/telegram.ts +0 -39
  1405. package/src/term-slash-runtime.ts +277 -0
  1406. package/src/terminal/coding-agent.ts +1 -0
  1407. package/src/terminal/session-access.ts +31 -0
  1408. package/src/terminal/session-registry.ts +1 -1
  1409. package/src/terminal/tty-required.ts +16 -0
  1410. package/src/tool-hints/gate.ts +1 -0
  1411. package/src/tool-hints/signals.ts +7 -0
  1412. package/src/tool-hints/types.ts +1 -1
  1413. package/src/tool-runtime/dashboard-state-runtime.ts +1 -1
  1414. package/src/tool-runtime/dashboard-state-snapshot.ts +196 -0
  1415. package/src/tool-runtime/index.ts +0 -2
  1416. package/src/tool-runtime/ops-ledger-runtimes.ts +35 -3
  1417. package/src/tool-runtime/types.ts +2 -0
  1418. package/src/tui/boot-timing.ts +35 -0
  1419. package/src/tui/branches/now.ts +50 -9
  1420. package/src/tui/branches/remaining.ts +49 -0
  1421. package/src/tui/branches/sidetab/route.ts +23 -2
  1422. package/src/tui/chat/error-card.ts +10 -0
  1423. package/src/tui/chat/log-view.ts +11 -1
  1424. package/src/tui/chat/status-line.ts +133 -0
  1425. package/src/tui/chat/status-model.ts +16 -0
  1426. package/src/tui/core/agents.ts +33 -5
  1427. package/src/tui/core/entry-render.ts +46 -0
  1428. package/src/tui/core/registry.ts +13 -2
  1429. package/src/tui/core/render.ts +2 -1
  1430. package/src/tui/entry.ts +182 -68
  1431. package/src/tui/input/goal-continue.ts +220 -0
  1432. package/src/tui/input/internal-turn.ts +230 -0
  1433. package/src/tui/input-lag-probe.ts +1 -1
  1434. package/src/tui/persistent-user-memory.ts +11 -4
  1435. package/src/tui/sidetab/attach.ts +28 -5
  1436. package/src/tui/turn-start-segments.ts +222 -0
  1437. package/src/tui-client/fast-repl-child.ts +36 -0
  1438. package/src/tui-client/local-chat-turn.ts +14 -2
  1439. package/src/tui-client/next-dashboard-runtime.ts +3 -3
  1440. package/src/tui-client/next-loop-command.ts +2 -2
  1441. package/src/tui-client/next-wakeup.ts +1 -1
  1442. package/src/tui-client/sidetab-agent-pty.ts +50 -0
  1443. package/src/user-config/read.ts +3 -1
  1444. package/src/user-config/sparse-config.ts +2 -4
  1445. package/src/user-config/write.ts +2 -0
  1446. package/src/user-config.ts +28 -25
  1447. package/src/ux-sim/absorb-v2-runGraph-sim.ts +131 -38
  1448. package/src/ux-sim/architecture-deliverables/run-step.ts +156 -0
  1449. package/src/ux-sim/classic-tui-seat-scenarios.ts +3 -3
  1450. package/src/ux-sim/dashboard-event-loop-stall-monitor-device.ts +1 -1
  1451. package/src/ux-sim/delete-impact-sim.ts +205 -0
  1452. package/src/ux-sim/fake-bin.ts +26 -6
  1453. package/src/ux-sim/fake-cloud-vm.ts +72 -0
  1454. package/src/ux-sim/fake-llm.ts +69 -5
  1455. package/src/ux-sim/fake-member-oidc-world.ts +2 -0
  1456. package/src/ux-sim/fault-pod-codex-503.ts +16 -3
  1457. package/src/ux-sim/fault-tui-400-autoheal.ts +24 -15
  1458. package/src/ux-sim/fixtures/kaist-classic-pty-receipt.json +260 -0
  1459. package/src/ux-sim/fixtures/kcb-ticket-classic-pty-receipt.json +270 -0
  1460. package/src/ux-sim/fixtures/kcb-ticket-requirements-mapping.json +60 -0
  1461. package/src/ux-sim/gcp-architect-expand/architecture-input.ts +45 -0
  1462. package/src/ux-sim/gcp-architect-expand/consumer.ts +18 -0
  1463. package/src/ux-sim/gcp-architect-expand/detect-step.ts +16 -0
  1464. package/src/ux-sim/gcp-architect-expand/local-signals.ts +41 -0
  1465. package/src/ux-sim/gcp-architect-expand/output-contract.ts +100 -0
  1466. package/src/ux-sim/gcp-architect-expand/scene5-fake-provider.ts +191 -0
  1467. package/src/ux-sim/gcp-architect-expand/shared-deliverables.ts +39 -0
  1468. package/src/ux-sim/gcp-architect-expand/tiered-design.ts +211 -0
  1469. package/src/ux-sim/gcp-architect-expand/unimplemented.ts +6 -0
  1470. package/src/ux-sim/gcp-architect-expand/verify-step.ts +8 -0
  1471. package/src/ux-sim/goal-interim-trace.ts +2 -2
  1472. package/src/ux-sim/graph-event-entry-world.ts +28 -20
  1473. package/src/ux-sim/graph-trigger-hook-device.ts +1 -1
  1474. package/src/ux-sim/headless-tui.ts +1 -1
  1475. package/src/ux-sim/kaist-app-qr-sim.ts +53 -0
  1476. package/src/ux-sim/kaist-classic-pwa-browser-replay.ts +568 -0
  1477. package/src/ux-sim/kaist-classic-pwa-replay-world.ts +244 -0
  1478. package/src/ux-sim/kcb-phone-rehearsal.ts +38 -0
  1479. package/src/ux-sim/knowledge-pack-auto-select.ts +144 -0
  1480. package/src/ux-sim/next-tui-seat-scenarios.ts +167 -99
  1481. package/src/ux-sim/onboarding-first-run-device.ts +1 -1
  1482. package/src/ux-sim/outbound-guard-sim.ts +43 -10
  1483. package/src/ux-sim/pty-key-modifiers-device.ts +6 -4
  1484. package/src/ux-sim/release-day-0307-replay.ts +140 -43
  1485. package/src/ux-sim/rla-context-release-status-arrival-event.ts +2 -5
  1486. package/src/ux-sim/scenario-target.ts +143 -0
  1487. package/src/ux-sim/self-edge-byoc-sim.ts +216 -0
  1488. package/src/ux-sim/ta-land-count-dispatcher-sim.ts +5 -5
  1489. package/src/ux-sim/term-slash-device.ts +2 -2
  1490. package/src/ux-sim/tui-400-runtime-contract.ts +8 -0
  1491. package/src/ux-sim/world-regression-suite.ts +2 -0
  1492. package/src/version/packed-revision.json +1 -1
  1493. package/src/voice/intent-router/voice-to-surface-intent.ts +1 -1
  1494. package/src/workflow-runtime/daemon.ts +4 -0
  1495. package/src/workflow-runtime/nodes/bash.ts +6 -1
@@ -0,0 +1,62 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1563],{26200:(t,e,a)=>{a.d(e,{DA:()=>R,FA:()=>F,I7:()=>B,Zk:()=>w,aP:()=>ez,lC:()=>m,nM:()=>A,nq:()=>e_});var r=a(32099),l=a(20216),i=a(996),n=a(86589),s=a(38357),o=a(88795),h=a(8845),d=a(55011),c=a(35595),g=a(92701);async function y(t){let e=t.getElementsByTagName("img");if(!e||0===e.length)return;let a=!u(t);await Promise.all([...e].map(t=>new Promise(e=>{function r(){if(t.style.display="flex",t.style.flexDirection="column",a){let e=(0,o.D7)().fontSize?(0,o.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[a=o.UI.fontSize]=(0,s.I5)(e),r=5*a+"px";t.style.minWidth=r,t.style.maxWidth=r}else t.style.width="100%";e(t)}(0,d.K)(r,"setupImage"),setTimeout(()=>{t.complete&&r()}),t.addEventListener("error",r),t.addEventListener("load",r)})))}function u(t){return 3===t.nodeType?t.textContent?.trim()!=="":1===t.nodeType&&"img"!==t.tagName.toLowerCase()&&[...t.childNodes].some(u)}(0,d.K)(y,"configureLabelImages"),(0,d.K)(u,"hasTextBesidesImages");var p=(0,d.K)(async(t,e,a)=>{let r=(0,o.D7)(),i=t.insert("g").attr("class",a??"node default").attr("id",e.domId||e.id),n=i.insert("g").attr("class","label").attr("style",(0,s.KL)(e.labelStyle)),h=[{text:"string"==typeof e.label?e.label:e.label?.[0]??"",cssClass:"c4-name"},{text:e.stereotype,cssClass:"c4-type"},...(e.description??[]).map(t=>({text:t,cssClass:"c4-descr"}))].filter(t=>t.text),d=e.width?Math.max(e.width-2*(e.padding??0),32):(0,o.D7)().flowchart?.wrappingWidth??200,g=r.c4?.wrap??!0?d:1/0,y=await Promise.all(h.map(async t=>{let a=n.append("g").attr("class",t.cssClass),i=await (0,l.GZ)(a,(0,o.jZ)((0,s.Sm)(t.text??""),r),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:g,style:e.labelStyle},r);return(0,c.Ltv)(i).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),(0,c.Ltv)(i).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:a,box:a.node().getBBox()}})),u=Math.max(...y.map(({box:t})=>t.width),0),p=0;for(let{el:t,box:e}of y)t.attr("transform",`translate(${u/2-e.x-e.width/2}, ${p-e.y})`),p+=e.height+3;let f=y.length>0?p-3:0;return n.insert("rect",":first-child"),n.attr("transform",`translate(${-u/2}, ${-f/2})`),{shapeSvg:i,bbox:n.node().getBBox(),halfPadding:(e.padding??0)/2,label:n}},"c4LabelHelper"),f=(0,d.K)((t,e)=>{let{x:a,y:r,width:l,height:i}=t;return l>=e?t:"left"in t?{x:a,y:r,width:e,height:i,top:r,left:a,bottom:r+i,right:a+e,toJSON:(0,d.K)(()=>({}),"toJSON")}:{x:a-(e-l)/2,y:r,width:e,height:i}},"withMinWidth"),w=(0,d.K)(async(t,e,a)=>{let r,i,n;if(void 0!==e.stereotype)return p(t,e,a);let h=e.useHtmlLabels||(0,o._3)((0,o.D7)()?.htmlLabels);r=a||"node default";let d=t.insert("g").attr("class",r).attr("id",e.domId||e.id),g=d.insert("g").attr("class","label").attr("style",(0,s.KL)(e.labelStyle));i=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let u=!!e.icon||!!e.img,w="markdown"===e.labelType,x=i&&!e.width?e.minWidth??0:0,m=await (0,l.GZ)(g,(0,o.jZ)((0,s.Sm)(i),(0,o.D7)()),{useHtmlLabels:h,width:e.width||e.wrappingWidth||(0,o.D7)().flowchart?.wrappingWidth,minWidth:x,classes:w?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:u,markdown:w},(0,o.D7)()),b=(e?.padding??0)/2;if(h){let t=m.children[0],e=(0,c.Ltv)(m);await y(t),n=f(n=await l.lT.measure(()=>t.getBoundingClientRect()),x),e.attr("width",n.width),e.attr("height",n.height)}else n=f(n=await l.lT.measure(()=>m.getBBox()),x);return h?g.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"):g.attr("transform","translate(0, "+-n.height/2+")"),e.centerLabel&&g.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),g.insert("rect",":first-child"),{shapeSvg:d,bbox:n,halfPadding:b,label:g}},"labelHelper"),x=(0,d.K)(async(t,e,a)=>{let r,i=a.useHtmlLabels??(0,o.E)((0,o.D7)()),n=t.insert("g").attr("class","label").attr("style",a.labelStyle||""),h=await (0,l.GZ)(n,(0,o.jZ)((0,s.Sm)(e),(0,o.D7)()),{useHtmlLabels:i,width:a.width||(0,o.D7)()?.flowchart?.wrappingWidth,style:a.labelStyle,addSvgBackground:!!a.icon||!!a.img}),d=a.padding/2;if((0,o.E)((0,o.D7)())){let t=h.children[0],e=(0,c.Ltv)(h);r=await l.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",r.width),e.attr("height",r.height)}else r=await l.lT.measure(()=>h.getBBox());return i?n.attr("transform","translate("+-r.width/2+", "+-r.height/2+")"):n.attr("transform","translate(0, "+-r.height/2+")"),a.centerLabel&&n.attr("transform","translate("+-r.width/2+", "+-r.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:t,bbox:r,halfPadding:d,label:n}},"insertLabel"),m=(0,d.K)((t,e,a)=>{if(a){t.width=a.width,t.height=a.height;return}let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),b=(0,d.K)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function $(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function k(t,e,a,r,l,i){let n=[],s=a-t,o=2*Math.PI/(s/i),h=e+(r-e)/2;for(let e=0;e<=50;e++){let a=t+e/50*s,r=h+l*Math.sin(o*(a-t));n.push({x:a,y:r})}return n}function M(t,e,a,r,l,i){let n=[],s=l*Math.PI/180,o=(i*Math.PI/180-s)/(r-1);for(let l=0;l<r;l++){let r=s+l*o,i=t+a*Math.cos(r),h=e+a*Math.sin(r);n.push({x:-i,y:-h})}return n}function D(t){let e=Array.from(t.childNodes).filter(t=>"path"===t.tagName),a=document.createElementNS("http://www.w3.org/2000/svg","path"),r=e.map(t=>t.getAttribute("d")).filter(t=>null!==t).join(" ");a.setAttribute("d",r);let l=e.find(t=>"none"!==t.getAttribute("fill")),i=e.find(t=>"none"!==t.getAttribute("stroke")),n=(0,d.K)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");l&&Object.entries({fill:n(l,"fill"),"fill-opacity":n(l,"fill-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)}),i&&Object.entries({stroke:n(i,"stroke"),"stroke-width":n(i,"stroke-width")??"1","stroke-opacity":n(i,"stroke-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)});let s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.appendChild(a),s}(0,d.K)($,"createPathFromPoints"),(0,d.K)(k,"generateFullSineWavePoints"),(0,d.K)(M,"generateCirclePoints"),(0,d.K)(D,"mergePaths");var A=(0,d.K)((t,e)=>{var a,r,l=t.x,i=t.y,n=e.x-l,s=e.y-i,o=t.width/2,h=t.height/2;return Math.abs(s)*o>Math.abs(n)*h?(s<0&&(h=-h),a=0===s?0:h*n/s,r=h):(n<0&&(o=-o),a=o,r=0===n?0:o*s/n),{x:l+a,y:i+r}},"intersectRect");function S(t,e){return t.intersect(e)}function v(t,e,a,r){var l=t.x,i=t.y,n=l-r.x,s=i-r.y,o=Math.sqrt(e*e*s*s+a*a*n*n),h=Math.abs(e*a*n/o);r.x<l&&(h=-h);var d=Math.abs(e*a*s/o);return r.y<i&&(d=-d),{x:l+h,y:i+d}}function K(t,e,a){return v(t,e,e,a)}function C(t,e,a,r){{let l=e.y-t.y,i=t.x-e.x,n=e.x*t.y-t.x*e.y,s=l*a.x+i*a.y+n,o=l*r.x+i*r.y+n;if(0!==s&&0!==o&&L(s,o))return;let h=r.y-a.y,d=a.x-r.x,c=r.x*a.y-a.x*r.y,g=h*t.x+d*t.y+c,y=h*e.x+d*e.y+c;if(1e-6>Math.abs(g)&&1e-6>Math.abs(y)&&L(g,y))return;let u=l*d-h*i;if(0===u)return;return{x:(i*c-d*n)/u,y:(h*n-l*c)/u}}}function L(t,e){return t*e>0}function N(t,e,a){let r=t.x,l=t.y,i=[],n=1/0,s=1/0;"function"==typeof e.forEach?e.forEach(function(t){n=Math.min(n,t.x),s=Math.min(s,t.y)}):(n=Math.min(n,e.x),s=Math.min(s,e.y));let o=r-t.width/2-n,h=l-t.height/2-s;for(let r=0;r<e.length;r++){let l=e[r],n=e[r<e.length-1?r+1:0],s=C(t,a,{x:o+l.x,y:h+l.y},{x:o+n.x,y:h+n.y});s&&i.push(s)}return i.length?(i.length>1&&i.sort(function(t,e){let r=t.x-a.x,l=t.y-a.y,i=Math.sqrt(r*r+l*l),n=e.x-a.x,s=e.y-a.y,o=Math.sqrt(n*n+s*s);return i<o?-1:+(i!==o)}),i[0]):t}(0,d.K)(S,"intersectNode"),(0,d.K)(v,"intersectEllipse"),(0,d.K)(K,"intersectCircle"),(0,d.K)(C,"intersectLine"),(0,d.K)(L,"sameSign"),(0,d.K)(N,"intersectPolygon");var B={node:S,circle:K,ellipse:v,polygon:N,rect:A},F=(0,d.K)((t,e,a,r,l)=>["M",t+l,e,"H",t+a-l,"A",l,l,"0 0 1",t+a,e+l,"V",e+r-l,"A",l,l,"0 0 1",t+a-l,e+r,"H",t+l,"A",l,l,"0 0 1",t,e+r-l,"V",e+l,"A",l,l,"0 0 1",t+l,e,"Z"].join(" "),"createRoundedRectPathD"),R=(0,d.K)(async(t,e,a,r=!1,i=!1)=>{let n=e||"";"object"==typeof n&&(n=n[0]);let s=(0,o.D7)(),h=(0,o.E)(s);return await (0,l.GZ)(t,n,{style:a,isTitle:r,useHtmlLabels:h,markdown:!1,isNode:i,width:1/0},s)},"createLabel");function P(t,e){let{labelStyles:a}=(0,r.GX)(e);e.labelStyle=a;let l=b(e),i=l;l||(i="anchor");let n=t.insert("g").attr("class",i).attr("id",e.domId||e.id),{cssStyles:o}=e,d=g.A.svg(n),c=(0,r.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(c.roughness=0);let y=d.circle(0,0,2,c),u=n.insert(()=>y,":first-child");return u.attr("class","anchor").attr("style",(0,s.KL)(o)),m(e,u),e.intersect=function(t){return h.R.info("Circle intersect",e,1,t),B.circle(e,1,t)},n}function X(t,e,a,r,l,i,n){let s=Math.atan2(r-e,a-t),o=Math.sqrt(((a-t)/2/l)**2+((r-e)/2/i)**2);if(o>1)throw Error("The given radii are too small to create an arc between the points.");let h=Math.sqrt(1-o**2),d=(t+a)/2+h*i*Math.sin(s)*(n?-1:1),c=(e+r)/2-h*l*Math.cos(s)*(n?-1:1),g=Math.atan2((e-c)/i,(t-d)/l),y=Math.atan2((r-c)/i,(a-d)/l)-g;n&&y<0&&(y+=2*Math.PI),!n&&y>0&&(y-=2*Math.PI);let u=[];for(let t=0;t<20;t++){let e=g+t/19*y,a=d+l*Math.cos(e),r=c+i*Math.sin(e);u.push({x:a,y:r})}return u}function G(t,e,a){let[r,l]=[e,a].sort((t,e)=>e-t);return l*(1-Math.sqrt(1-(t/r/2)**2))}async function I(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,o=(0,d.K)(t=>t+s,"calcTotalHeight"),h=(0,d.K)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:c,bbox:y}=await w(t,e,b(e)),u=o(e?.height?e?.height:y.height),[p,f]=h(u),x=G(u,p,f),k=(e?.width?e?.width:y.width)+2*n+x-x,{cssStyles:M}=e,D=[{x:k/2,y:-u/2},{x:-k/2,y:-u/2},...X(-k/2,-u/2,-k/2,u/2,p,f,!1),{x:k/2,y:u/2},...X(k/2,u/2,k/2,-u/2,p,f,!0)],A=g.A.svg(c),S=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let v=$(D),K=A.path(v,S),C=c.insert(()=>K,":first-child");return C.attr("class","basic label-container outer-path"),M&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",M),l&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",l),C.attr("transform",`translate(${p/2}, 0)`),m(e,C),e.intersect=function(t){return B.polygon(e,D,t)},c}async function W(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,b(e)),h=a?.nodeBorder??a?.lineColor??"currentColor",c=e.padding??12,y=Math.max(s.width+2*c,e.width??0,80),u=Math.max(Math.min(.08*y,12),5),p=Math.max(s.height+2*c+u,e.height??0),f=-p/2+u,x=p/2,$=.72*y,k=`M${-y/2},${f} L${-$/2},${x} A${$/2},${u} 0 0 0 ${$/2},${x} L${y/2},${f} A${y/2},${u} 0 0 0 ${-y/2},${f} Z`,{cssStyles:M}=e,D=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=g.A.svg(n).path(k,(0,r.Fr)(e,{}));D.node()?.appendChild(t),M&&D.attr("style",M)}else D.append("path").attr("d",k).attr("style",i);D.append("ellipse").attr("cx",0).attr("cy",f).attr("rx",y/2).attr("ry",u).attr("style",`fill:none;stroke:${h};stroke-width:1px`),m(e,D);let A=f+(x-f)/2;o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${A-s.height/2-(s.y-(s.top??0))})`);let S=(0,d.K)((t,e,a)=>Array.from({length:13},(r,l)=>{let i=Math.PI-l*Math.PI/12;return{x:t*Math.cos(i),y:e+a*u*Math.sin(i)}}),"arc"),v=[...S(y/2,f,-1),...S($/2,x,1).reverse()];return e.intersect=function(t){return B.polygon(e,v,t)},n}function H(t){let{themeVariables:e}=(0,o.D7)(),a=e.clusterBkg,r=e.clusterBorder;return"flow"===t?{rx:10,fill:"none",stroke:e.flowContainerStroke||e.secondaryBorderColor,strokeWidth:.75,cssClass:"flow-collapsed"}:{rx:8,fill:a,stroke:r,cssClass:"collapsed-group"}}async function T(t,e){let a,l=H(e.metadata?.containerType),{fill:i,stroke:h}=l,{nodeStyles:d}=(0,r.GX)(e),{shapeSvg:c,bbox:y}=await w(t,e,b(e)),{theme:u,themeVariables:p}=(0,o.D7)();(0,n.XE)(c,e.colorIndex,u,p.borderColorArray);let f=e.padding??8,x=y.height,$=Math.max(y.width+2*f,80,e?.width??0),k=Math.max(x+8+20+2*f,e?.height??0),M=-$/2,D=-k/2,A=c.select(".label");if(A&&(e.useHtmlLabels??(0,o.E)((0,o.D7)())?A.attr("transform",`translate(${-y.width/2}, ${-y.height/2+-14})`):A.attr("transform",`translate(0, ${-y.height/2+-14})`)),"handDrawn"===e.look){let t=g.A.svg(c),n=(0,r.Fr)(e,{fill:i,stroke:h,...void 0===l.strokeWidth?{}:{strokeWidth:l.strokeWidth},..."none"===i?{fillWeight:0}:{fillStyle:"solid"}}),o=t.path(F(M,D,$,k,l.rx),n);(a=c.insert(()=>o,":first-child")).attr("class","basic label-container "+l.cssClass).attr("style",(0,s.KL)(e.cssStyles))}else(a=c.insert("rect",":first-child")).attr("class","basic label-container "+l.cssClass).attr("style",d).attr("rx",l.rx).attr("ry",l.rx).attr("x",M).attr("y",D).attr("width",$).attr("height",k).attr("fill",i).attr("stroke",h),void 0!==l.strokeWidth&&a.attr("stroke-width",l.strokeWidth+"px");let S=D+f+x+8;c.append("line").attr("class","collapsed-separator").attr("x1",M+8).attr("y1",S).attr("x2",M+$-8).attr("y2",S).attr("stroke",h).attr("stroke-dasharray","3, 3");let v=S+10;for(let t=-1;t<=1;t++)c.append("circle").attr("class","collapsed-indicator").attr("cx",10*t).attr("cy",v).attr("r",2.5).attr("fill",h);return m(e,a),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return B.rect(e,t)},c}function E(t,e,a,r){return t.insert("polygon",":first-child").attr("points",r.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+a/2+")")}(0,d.K)(P,"anchor"),(0,d.K)(X,"generateArcPoints"),(0,d.K)(G,"calculateArcSagitta"),(0,d.K)(I,"bowTieRect"),(0,d.K)(W,"bucket"),(0,d.K)(H,"getCollapsedStyle"),(0,d.K)(T,"collapsedGroup"),(0,d.K)(E,"insertPolygonShape");var j=["right","left","up","down"],q="point",Z=(0,d.K)(t=>{let e=new Set;for(let a of t)switch(a){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(a)}return e},"expandAndDeduplicateDirections"),_=(0,d.K)(t=>j.filter(e=>t.has(e)).join("|")||q,"getDirectionKey"),z={"right|left|up|down":(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:0,y:0},{x:e,y:0},{x:r/2,y:2*a},{x:r-e,y:0},{x:r,y:0},{x:r,y:-t/3},{x:r+2*a,y:-t/2},{x:r,y:-2*t/3},{x:r,y:-t},{x:r-e,y:-t},{x:r/2,y:-t-2*a},{x:e,y:-t},{x:0,y:-t},{x:0,y:-2*t/3},{x:-2*a,y:-t/2},{x:0,y:-t/3}],"right|left|up|down"),"right|left|up":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:e,y:0},{x:a-e,y:0},{x:a,y:-t/2},{x:a-e,y:-t},{x:e,y:-t},{x:0,y:-t/2}],"right|left|up"),"right|left|down":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:e,y:-t},{x:a-e,y:-t},{x:a,y:0}],"right|left|down"),"right|up|down":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:a,y:-t+e},{x:0,y:-t}],"right|up|down"),"left|up|down":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:0,y:-t+e},{x:a,y:-t}],"left|up|down"),"right|left":(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:0},{x:e,y:-a},{x:r-e,y:-a},{x:r-e,y:0},{x:r,y:-t/2},{x:r-e,y:-t},{x:r-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"right|left"),"up|down":(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:r/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:r/2,y:-t},{x:r,y:-t+a},{x:r-e,y:-t+a},{x:r-e,y:-a},{x:r,y:-a}],"up|down"),"right|up":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:0,y:-t}],"right|up"),"right|down":(0,d.K)(({height:t,width:e})=>[{x:0,y:0},{x:e,y:0},{x:0,y:-t}],"right|down"),"left|up":(0,d.K)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:a,y:-t}],"left|up"),"left|down":(0,d.K)(({height:t,width:e})=>[{x:e,y:0},{x:0,y:0},{x:e,y:-t}],"left|down"),right:(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:-a},{x:e,y:-a},{x:r-e,y:-a},{x:r-e,y:0},{x:r,y:-t/2},{x:r-e,y:-t},{x:r-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t+a}],"right"),left:(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:0},{x:e,y:-a},{x:r-e,y:-a},{x:r-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"left"),up:(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:r/2,y:-t},{x:r,y:-t+a},{x:r-e,y:-t+a},{x:r-e,y:-a}],"up"),down:(0,d.K)(({height:t,midpoint:e,padding:a,width:r})=>[{x:r/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:r-e,y:-t+a},{x:r-e,y:-a},{x:r,y:-a}],"down"),[q]:()=>[{x:0,y:0}]},O=(0,d.K)((t,e,a,r)=>{let l=Z(t),i=(a.padding??0)/2,n=e.height+4*i,s=n/2,o=r??e.width+2*s+2*i;return(z[_(l)]??z[q])({height:n,midpoint:s,padding:i,width:o})},"getArrowPoints");async function V(t,e){let{shapeSvg:a,bbox:r}=await w(t,e,b(e)),l=e.padding??0,i=r.height+2*l,n=i/2,s=r.width+2*n+l,o=e.width??0,h=e.positioned&&(e.widthInColumns??1)>1&&o>s?o:s,d=O(e.directions??[],r,e,h),c=E(a,h,i,d);return c.attr("style",e.style??null),m(e,c),e.intersect=function(t){return B.polygon(e,d,t)},a}async function Y(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,b(e)),h=a?.nodeBorder??a?.lineColor??"currentColor",d=e.padding??12,c=Math.max(s.width+2*d,e.width??0,90),y=Math.max(s.height+2*d+18,e.height??0),u=-y/2,{cssStyles:p}=e,f=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=g.A.svg(n).path(F(-c/2,u,c,y,12),(0,r.Fr)(e,{}));f.node()?.appendChild(t),p&&f.attr("style",p)}else f.append("rect").attr("x",-c/2).attr("y",u).attr("width",c).attr("height",y).attr("rx",12).attr("ry",12).attr("style",i);f.append("line").attr("x1",-c/2).attr("y1",u+18).attr("x2",c/2).attr("y2",u+18).attr("style",`stroke:${h};stroke-width:1px`);for(let t=0;t<3;t++)f.append("circle").attr("cx",-c/2+12+9*t).attr("cy",u+9).attr("r",2.5).attr("style",`fill:${h};stroke:none`);f.append("rect").attr("class","browser-address-bar").attr("x",-c/2+44).attr("y",u+4).attr("width",Math.max(c-56,10)).attr("height",10).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${h};stroke-width:1px;opacity:0.6`),m(e,f);let x=u+18+(y-18)/2;return o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${x-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return B.rect(e,t)},n}async function J(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n=e.padding??0,s="neo"===e.look?28:n,o="neo"===e.look?24:n,{shapeSvg:h,bbox:d}=await w(t,e,b(e)),c=(e?.width??d.width)+("neo"===e.look?2*s:s+12),y=(e?.height??d.height)+("neo"===e.look?2*o:o),u=-y,p=[{x:12,y:u},{x:c,y:u},{x:c,y:0},{x:0,y:0},{x:0,y:u+12},{x:12,y:u}],{cssStyles:f}=e;if("handDrawn"===e.look){let t=g.A.svg(h),l=(0,r.Fr)(e,{}),i=$(p),n=t.path(i,l);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${y/2})`),f&&a.attr("style",f)}else a=E(h,c,y,p);return i&&a.attr("style",i),m(e,a),e.intersect=function(t){return B.polygon(e,p,t)},h}function U(t,e){let{nodeStyles:a}=(0,r.GX)(e);e.label="";let l=t.insert("g").attr("class",b(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,n=Math.max(28,e.width??0),s=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],o=g.A.svg(l),h=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");let d=$(s),c=o.path(d,h),y=l.insert(()=>c,":first-child");return i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),a&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",a),e.width=28,e.height=28,e.intersect=function(t){return B.polygon(e,s,t)},l}async function Q(t,e,a){let l,{labelStyles:i,nodeStyles:n}=(0,r.GX)(e);e.labelStyle=i;let{shapeSvg:o,bbox:d,halfPadding:c}=await w(t,e,b(e)),y=a?.padding??c,u=Math.sqrt(d.width**2+d.height**2)/2,p="neo"===e.look?u+32:u+y,{cssStyles:f}=e;if("handDrawn"===e.look){let t=g.A.svg(o),a=(0,r.Fr)(e,{}),i=t.circle(0,0,2*p,a);(l=o.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,s.KL)(f))}else l=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",p).attr("cx",0).attr("cy",0);return m(e,l),e.calcIntersect=function(t,e){let a=t.width/2;return B.circle(t,a,e)},e.intersect=function(t){return h.R.info("Circle intersect",e,p,t),B.circle(e,p,t)},o}async function tt(t,e){let a=["node",e.cssClasses,e.class].filter(Boolean).join(" "),{shapeSvg:r,bbox:l,halfPadding:i}=await w(t,e,a),n=r.insert("rect",":first-child"),s=e.padding??0,o=e.positioned?e.width??0:l.width+s,h=e.positioned?e.height??0:l.height+s,d=e.positioned?-o/2:-l.width/2-i,c=e.positioned?-h/2:-l.height/2-i;return n.attr("class","basic cluster composite label-container").attr("style",e.style??null).attr("rx",e.rx??null).attr("ry",e.ry??null).attr("x",d).attr("y",c).attr("width",o).attr("height",h),m(e,n),e.intersect=function(t){return B.rect(e,t)},r}async function te(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,b(e)),h=a?.nodeBorder??a?.lineColor??"currentColor",d=e.padding??12,c=Math.max(s.width+2*d,e.width??0,90),y=Math.max(s.height+2*d+20,e.height??0),u=-y/2,{cssStyles:p}=e,f=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=g.A.svg(n).path(F(-c/2,u,c,y,12),(0,r.Fr)(e,{}));f.node()?.appendChild(t),p&&f.attr("style",p)}else f.append("rect").attr("x",-c/2).attr("y",u).attr("width",c).attr("height",y).attr("rx",12).attr("ry",12).attr("style",i);f.append("text").attr("x",-c/2+12).attr("y",u+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${h}`).text(">_"),m(e,f);let x=u+20+(y-20)/2;return o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${x-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return B.rect(e,t)},n}function ta(t){let e=Math.cos(Math.PI/4),a=Math.sin(Math.PI/4),r=2*t,l={x:r/2*e,y:r/2*a},i={x:-(r/2)*e,y:r/2*a},n={x:-(r/2)*e,y:-(r/2)*a},s={x:r/2*e,y:-(r/2)*a};return`M ${i.x},${i.y} L ${s.x},${s.y}
2
+ M ${l.x},${l.y} L ${n.x},${n.y}`}function tr(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a,e.label="";let i=t.insert("g").attr("class",b(e)).attr("id",e.domId??e.id),n=Math.max(30,e?.width??0),{cssStyles:s}=e,o=g.A.svg(i),d=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");let c=o.circle(0,0,2*n,d),y=ta(n),u=o.path(y,d),p=i.insert(()=>c,":first-child");return p.insert(()=>u),p.attr("class","outer-path"),s&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",s),l&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",l),m(e,p),e.intersect=function(t){return h.R.info("crossedCircle intersect",e,{radius:n,point:t}),B.circle(e,n,t)},i}function tl(t,e,a,r=100,l=0,i=180){let n=[],s=l*Math.PI/180,o=(i*Math.PI/180-s)/(r-1);for(let l=0;l<r;l++){let r=s+l*o,i=t+a*Math.cos(r),h=e+a*Math.sin(r);n.push({x:-i,y:-h})}return n}async function ti(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,b(e)),o="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,d=n.width+o,c=n.height+h,y=Math.max(5,.1*c),{cssStyles:u}=e,p=[...tl(d/2,-c/2,y,30,-90,0),{x:-d/2-y,y:y},...tl(d/2+2*y,-y,y,20,-180,-270),...tl(d/2+2*y,y,y,20,-90,-180),{x:-d/2-y,y:-c/2},...tl(d/2,c/2,y,20,0,90)],f=[{x:d/2,y:-c/2-y},{x:-d/2,y:-c/2-y},...tl(d/2,-c/2,y,20,-90,0),{x:-d/2-y,y:-y},...tl(d/2+.1*d,-y,y,20,-180,-270),...tl(d/2+.1*d,y,y,20,-90,-180),{x:-d/2-y,y:c/2},...tl(d/2,c/2,y,20,0,90),{x:-d/2,y:c/2+y},{x:d/2,y:c/2+y}],x=g.A.svg(i),k=(0,r.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=$(p).replace("Z",""),D=x.path(M,k),A=$(f),S=x.path(A,{...k}),v=i.insert("g",":first-child");return v.insert(()=>S,":first-child").attr("stroke-opacity",0),v.insert(()=>D,":first-child"),v.attr("class","text"),u&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",u),l&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",l),v.attr("transform",`translate(${y}, 0)`),s.attr("transform",`translate(${-d/2+y-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),m(e,v),e.intersect=function(t){return B.polygon(e,f,t)},i}function tn(t,e,a,r=100,l=0,i=180){let n=[],s=l*Math.PI/180,o=(i*Math.PI/180-s)/(r-1);for(let l=0;l<r;l++){let r=s+l*o,i=t+a*Math.cos(r),h=e+a*Math.sin(r);n.push({x:i,y:h})}return n}async function ts(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,b(e)),o="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,d=n.width+("neo"===e.look?2*o:o),c=n.height+("neo"===e.look?2*h:h),y=Math.max(5,.1*c),{cssStyles:u}=e,p=[...tn(d/2,-c/2,y,20,-90,0),{x:d/2+y,y:-y},...tn(d/2+2*y,-y,y,20,-180,-270),...tn(d/2+2*y,y,y,20,-90,-180),{x:d/2+y,y:c/2},...tn(d/2,c/2,y,20,0,90)],f=[{x:-d/2,y:-c/2-y},{x:d/2,y:-c/2-y},...tn(d/2,-c/2,y,20,-90,0),{x:d/2+y,y:-y},...tn(d/2+2*y,-y,y,20,-180,-270),...tn(d/2+2*y,y,y,20,-90,-180),{x:d/2+y,y:c/2},...tn(d/2,c/2,y,20,0,90),{x:d/2,y:c/2+y},{x:-d/2,y:c/2+y}],x=g.A.svg(i),k=(0,r.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=$(p).replace("Z",""),D=x.path(M,k),A=$(f),S=x.path(A,{...k}),v=i.insert("g",":first-child");return v.insert(()=>S,":first-child").attr("stroke-opacity",0),v.insert(()=>D,":first-child"),v.attr("class","text"),u&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",u),l&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",l),v.attr("transform",`translate(${-y}, 0)`),s.attr("transform",`translate(${-d/2+(e.padding??0)/2-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),m(e,v),e.intersect=function(t){return B.polygon(e,f,t)},i}function to(t,e,a,r=100,l=0,i=180){let n=[],s=l*Math.PI/180,o=(i*Math.PI/180-s)/(r-1);for(let l=0;l<r;l++){let r=s+l*o,i=t+a*Math.cos(r),h=e+a*Math.sin(r);n.push({x:-i,y:-h})}return n}async function th(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,b(e)),o="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,d=n.width+("neo"===e.look?2*o:o),c=n.height+("neo"===e.look?2*h:h),y=Math.max(5,.1*c),{cssStyles:u}=e,p=[...to(d/2,-c/2,y,30,-90,0),{x:-d/2-y,y:y},...to(d/2+2*y,-y,y,20,-180,-270),...to(d/2+2*y,y,y,20,-90,-180),{x:-d/2-y,y:-c/2},...to(d/2,c/2,y,20,0,90)],f=[...to(-d/2+y+y/2,-c/2,y,20,-90,-180),{x:d/2-y/2,y:y},...to(-d/2-y/2,-y,y,20,0,90),...to(-d/2-y/2,y,y,20,-90,0),{x:d/2-y/2,y:-y},...to(-d/2+y+y/2,c/2,y,30,-180,-270)],x=[{x:d/2,y:-c/2-y},{x:-d/2,y:-c/2-y},...to(d/2,-c/2,y,20,-90,0),{x:-d/2-y,y:-y},...to(d/2+2*y,-y,y,20,-180,-270),...to(d/2+2*y,y,y,20,-90,-180),{x:-d/2-y,y:c/2},...to(d/2,c/2,y,20,0,90),{x:-d/2,y:c/2+y},{x:d/2-y-y/2,y:c/2+y},...to(-d/2+y+y/2,-c/2,y,20,-90,-180),{x:d/2-y/2,y:y},...to(-d/2-y/2,-y,y,20,0,90),...to(-d/2-y/2,y,y,20,-90,0),{x:d/2-y/2,y:-y},...to(-d/2+y+y/2,c/2,y,30,-180,-270)],k=g.A.svg(i),M=(0,r.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=$(p).replace("Z",""),A=k.path(D,M),S=$(f).replace("Z",""),v=k.path(S,M),K=$(x),C=k.path(K,{...M}),L=i.insert("g",":first-child");return L.insert(()=>C,":first-child").attr("stroke-opacity",0),L.insert(()=>A,":first-child"),L.insert(()=>v,":first-child"),L.attr("class","text"),u&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",u),l&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",l),L.attr("transform",`translate(${y-y/4}, 0)`),s.attr("transform",`translate(${-d/2+(e.padding??0)/2-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),m(e,L),e.intersect=function(t){return B.polygon(e,x,t)},i}async function td(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,{shapeSvg:o,bbox:h}=await w(t,e,b(e)),d=Math.max(5,h.height+2*s,e?.height??0),c=d/2,y=Math.max(d/4,c-Math.sqrt(Math.max(0,c**2-(h.height/2)**2))),u=Math.max(20,h.width+2*n+2*y,(h.width+2*n)*1.25,e?.width??0),{cssStyles:p}=e,f=g.A.svg(o),x=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let k=u-c,D=d/4,A=[{x:k,y:0},{x:D,y:0},{x:0,y:d/2},{x:D,y:d},{x:k,y:d},...M(-k,-d/2,c,50,270,90)],S=$(A),v=f.path(S,x),K=o.insert(()=>v,":first-child");return K.attr("class","basic label-container outer-path"),p&&"handDrawn"!==e.look&&K.selectChildren("path").attr("style",p),l&&"handDrawn"!==e.look&&K.selectChildren("path").attr("style",l),K.attr("transform",`translate(${-u/2}, ${-d/2})`),m(e,K),e.intersect=function(t){return B.polygon(e,A,t)},o}async function tc(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,b(e)),o=e.padding??20,h=Math.max(n.width+2*o,e.width??0,100),d=Math.min(Math.max(.23*h,16),56),c=.27*d,y=Math.max(n.height+2*o,e.height?e.height-(2*d-c):0),u=Math.min(.177*h,.45*y),p=y+2*d-c,f=-p/2,x=f+2*d-c,$=i.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:k}=e;if("handDrawn"===e.look){let t=g.A.svg(i),a=(0,r.Fr)(e,{}),l=t.path(F(-h/2,x,h,y,u),a),n=t.circle(0,f+d,2*d,a);$.insert(()=>n,":first-child"),$.insert(()=>l,":first-child"),k&&$.attr("style",k)}else $.append("rect").attr("x",-h/2).attr("y",x).attr("width",h).attr("height",y).attr("rx",u).attr("ry",u).attr("style",l),$.append("circle").attr("cx",0).attr("cy",f+d).attr("r",d).attr("style",l);m(e,$);let D=x+y/2;s.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${D-n.height/2-(n.y-(n.top??0))})`);let A=f+d,S=180*Math.asin(Math.min(1,(x-A)/d))/Math.PI,v=[...M(0,-A,d,24,180+S,-S),...M(-(-h/2+u),-(x+u),u,12,90,0),...M(-(-h/2+u),-(p/2-u),u,12,360,270),...M(-(h/2-u),-(p/2-u),u,12,270,180),...M(-(h/2-u),-(x+u),u,12,180,90)];return e.intersect=function(t){return B.polygon(e,v,t)},i}(0,d.K)(V,"block_arrow"),(0,d.K)(Y,"browser"),(0,d.K)(J,"card"),(0,d.K)(U,"choice"),(0,d.K)(Q,"circle"),(0,d.K)(tt,"composite"),(0,d.K)(te,"consoleWindow"),(0,d.K)(ta,"createLine"),(0,d.K)(tr,"crossedCircle"),(0,d.K)(tl,"generateCirclePoints"),(0,d.K)(ti,"curlyBraceLeft"),(0,d.K)(tn,"generateCirclePoints"),(0,d.K)(ts,"curlyBraceRight"),(0,d.K)(to,"generateCirclePoints"),(0,d.K)(th,"curlyBraces"),(0,d.K)(td,"curvedTrapezoid"),(0,d.K)(tc,"person");var tg=(0,d.K)((t,e,a,r,l,i)=>`M${t},${e+i} a${l},${i} 0,0,0 ${a},0 a${l},${i} 0,0,0 ${-a},0 l0,${r} a${l},${i} 0,0,0 ${a},0 l0,${-r}`,"createCylinderPathD"),ty=(0,d.K)((t,e,a,r,l,i)=>`M${t},${e+i} M${t+a},${e+i} a${l},${i} 0,0,0 ${-a},0 l0,${r} a${l},${i} 0,0,0 ${a},0 l0,${-r}`,"createOuterCylinderPathD"),tu=(0,d.K)((t,e,a,r,l,i)=>`M${t-a/2},${-r/2} a${l},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tp(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n=e.padding??0,o="neo"===e.look?24:n,h="neo"===e.look?24:n,d=e.width??0;e.width&&(e.width=e.width-h,e.width<8&&(e.width=8)),e.height&&(e.height=e.height-o-d/2/(2.5+d/50)*3,e.height<8&&(e.height=8));let{shapeSvg:c,bbox:y,label:u}=await w(t,e,b(e)),p=Math.max(e.width??0,y.width)+h,f=p/2,x=f/(2.5+p/50),$=Math.max(e.height??0,y.height)+o+x,{cssStyles:k}=e;if("handDrawn"===e.look){let t=g.A.svg(c),l=ty(0,0,p,$,f,x),i=tu(0,x,p,$,f,x),n=(0,r.Fr)(e,{}),s=t.path(l,n),o=t.path(i,(0,r.Fr)(e,{fill:"none"}));a=c.insert(()=>o,":first-child"),(a=c.insert(()=>s,":first-child")).attr("class","basic label-container"),k&&a.attr("style",k)}else{let t=tg(0,0,p,$,f,x);a=c.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,s.KL)(k)).attr("style",i)}return a.attr("label-offset-y",x),a.attr("transform",`translate(${-p/2}, ${-($/2+x)})`),m(e,a),u.attr("transform",`translate(${-(y.width/2)-(y.x-(y.left??0))}, ${-(y.height/2)+(e.padding??0)/1.5-(y.y-(y.top??0))})`),e.intersect=function(t){let a=B.rect(e,t),r=a.x-(e.x??0);if(0!=f&&(Math.abs(r)<(e.width??0)/2||Math.abs(r)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-x)){let l=x*x*(1-r*r/(f*f));l>0&&(l=Math.sqrt(l)),l=x-l,t.y-(e.y??0)>0&&(l=-l),a.y+=l}return a},c}async function tf(t,e,a){let l,{labelStyles:i,nodeStyles:n}=(0,r.GX)(e);e.labelStyle=i;let{shapeSvg:o,bbox:h}=await w(t,e,b(e)),d=Math.max(h.width+2*a.labelPaddingX,e?.width||0),c=Math.max(h.height+2*a.labelPaddingY,e?.height||0),y=-d/2,u=-c/2,{rx:p,ry:f}=e,{cssStyles:x}=e;if(a?.rx&&a.ry&&(p=a.rx,f=a.ry),"handDrawn"===e.look){let t=g.A.svg(o),a=(0,r.Fr)(e,{}),i=p||f?t.path(F(y,u,d,c,p||0),a):t.rectangle(y,u,d,c,a);(l=o.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,s.KL)(x))}else(l=o.insert("rect",":first-child")).attr("class","basic label-container").attr("style",n).attr("rx",(0,s.KL)(p)).attr("ry",(0,s.KL)(f)).attr("x",y).attr("y",u).attr("width",d).attr("height",c);return m(e,l,"handDrawn"===e.look?void 0:{width:d,height:c}),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return B.rect(e,t)},o}async function tw(t,e){let{cssClasses:a,labelPaddingX:l,labelPaddingY:i,padding:n,width:s,height:o}=e,h=await tf(t,e,{rx:0,ry:0,classes:a??"",labelPaddingX:l??(n??0)*2,labelPaddingY:i??n??0});if("handDrawn"===e.look){let t=g.A.svg(h),a=(0,r.Fr)(e,{}),l=h.select(".basic.label-container > path:nth-child(2)"),i=l.node();if(!i)return h;let n=null;return i instanceof SVGGraphicsElement&&(n=i.getBBox(),h.insert(()=>t.line(n.x,n.y,n.x+n.width,n.y,a),".basic.label-container g.label"),h.insert(()=>t.line(n.x,n.y+n.height,n.x+n.width,n.y+n.height,a),".basic.label-container g.label"),l.remove()),h}let d=h.select(".basic.label-container"),c=(Number(d.attr("width"))||s)??0,y=(Number(d.attr("height"))||o)??0;return c>0&&y>0&&d.attr("stroke-dasharray",`${c} ${y}`),h}async function tx(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?16:e.padding??0,{shapeSvg:s,bbox:o,label:h}=await w(t,e,b(e)),d=o.width+i,c=o.height+n,y=.2*c,u=-d/2,p=-c/2-y/2,{cssStyles:f}=e,x=g.A.svg(s),$=(0,r.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=x.polygon([{x:u,y:p+y},{x:-u,y:p+y},{x:-u,y:-p},{x:u,y:-p},{x:u,y:p},{x:-u,y:p},{x:-u,y:p+y}].map(t=>[t.x,t.y]),$),M=s.insert(()=>k,":first-child");return M.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",f),l&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",l),h.attr("transform",`translate(${u+(e.padding??0)/2-(o.x-(o.left??0))}, ${p+y+(e.padding??0)/2-(o.y-(o.top??0))})`),m(e,M),e.intersect=function(t){return B.rect(e,t)},s}async function tm(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e),n="neo"===e.look?12:5;e.labelStyle=l;let o=e.padding??0,d="neo"===e.look?16:o,{shapeSvg:c,bbox:y}=await w(t,e,b(e)),u=Math.sqrt(y.width**2+y.height**2)/2,p=(e?.width?e?.width/2:u)+(d??0),f=p+n,{cssStyles:x}=e;if("handDrawn"===e.look){let t=g.A.svg(c),l=(0,r.Fr)(e,{roughness:.2,strokeWidth:2.5}),i=(0,r.Fr)(e,{roughness:.2,strokeWidth:1.5}),n=t.circle(0,0,2*f,l),o=t.circle(0,0,2*p,i);(a=c.insert("g",":first-child")).attr("class",(0,s.KL)(e.cssClasses)).attr("style",(0,s.KL)(x)),a.node()?.appendChild(n),a.node()?.appendChild(o)}else{let t=(a=c.insert("g",":first-child")).insert("circle",":first-child"),e=a.insert("circle");a.attr("class","basic label-container").attr("style",i),t.attr("class","outer-circle").attr("style",i).attr("r",f).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",i).attr("r",p).attr("cx",0).attr("cy",0)}return m(e,a),e.intersect=function(t){return h.R.info("DoubleCircle intersect",e,f,t),B.circle(e,f,t)},c}async function tb(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:s,bbox:h,halfPadding:d}=await w(t,e,b(e)),{theme:c,themeVariables:y}=(0,o.D7)();(0,n.XE)(s,e.colorIndex,c,y.borderColorArray);let u=d??10,p=h.width/2+2*u,f=h.height/2+2*u,{cssStyles:x}=e;if("handDrawn"===e.look){let t=g.A.svg(s),l=(0,r.Fr)(e,{}),i=t.ellipse(0,0,2*p,2*f,l);(a=s.insert(()=>i,":first-child")).attr("class","basic label-container"),x&&a.attr("style",x)}else a=s.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",i).attr("rx",p).attr("ry",f).attr("cx",0).attr("cy",0);return e.width=2*p,e.height=2*f,m(e,a),e.calcIntersect=function(t,e){let a=t.width/2,r=t.height/2;return B.ellipse(t,a,r,e)},e.intersect=function(t){return B.ellipse(e,p,f,t)},s}function t$(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.label="",e.labelStyle=l;let n=t.insert("g").attr("class",b(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,o=g.A.svg(n),{nodeBorder:d}=a,c=(0,r.Fr)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(c.roughness=0);let y=o.circle(0,0,14,c),u=n.insert(()=>y,":first-child");return u.selectAll("path").attr("style",`fill: ${d} !important;`),s&&s.length>0&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",s),i&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",i),m(e,u),e.intersect=function(t){return h.R.info("filledCircle intersect",e,{radius:7,point:t}),B.circle(e,7,t)},n}async function tk(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?2*i:i;(e.width||e.height)&&(e.height=e?.height??0,e.height<10&&(e.height=10),e.width=(e?.width??0)-n-n/2,e.width<10&&(e.width=10));let{shapeSvg:s,bbox:o,label:d}=await w(t,e,b(e)),c=(e?.width?e?.width:o.width)+(n??0),y=e?.height?e?.height:c+o.height,u=[{x:0,y:-y},{x:y,y:-y},{x:y/2,y:0}],{cssStyles:p}=e,f=g.A.svg(s),x=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let k=$(u),M=f.path(k,x),D=s.insert(()=>M,":first-child").attr("transform",`translate(${-y/2}, ${y/2})`).attr("class","outer-path");return p&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",p),l&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",l),e.width=c,e.height=y,m(e,D),d.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-y/2+(e.padding??0)/2+(o.y-(o.top??0))})`),e.intersect=function(t){return h.R.info("Triangle intersect",e,u,t),B.polygon(e,u,t)},s}async function tM(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,b(e)),h=e.padding??12,d=Math.max(s.width+2*h,e.width??0,90),c=s.height+2*h,y=Math.max(Math.min(.16*c,14),8),u=Math.max(c+y,e.height??0),p=u-y,f=Math.max(.38*d,28),x=-u/2,$=[{x:-d/2,y:x},{x:-d/2+f,y:x},{x:-d/2+f,y:x+y},{x:d/2,y:x+y},{x:d/2,y:u/2},{x:-d/2,y:u/2}],k=[`M${$[0].x},${$[0].y}`,...$.slice(1).map(t=>`L${t.x},${t.y}`),"Z"].join(" "),{cssStyles:M}=e;if("handDrawn"===e.look){let t=g.A.svg(n).path(k,(0,r.Fr)(e,{}));a=n.insert(()=>t,":first-child").attr("class","basic label-container"),M&&a.attr("style",M)}else a=n.insert("path",":first-child").attr("d",k).attr("class","basic label-container").attr("style",i);return"handDrawn"===e.look?m(e,a):m(e,a,{width:d,height:u}),o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${x+y+p/2-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return B.polygon(e,$,t)},n}function tD(t,e,{dir:a,config:{state:l,themeVariables:i}}){let{nodeStyles:n}=(0,r.GX)(e);e.label="";let s=t.insert("g").attr("class",b(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,h=Math.max(70,e?.width??0),d=Math.max(10,e?.height??0);("LR"===a||"RL"===a)&&(h=Math.max(10,e?.width??0),d=Math.max(70,e?.height??0));let c=-1*h/2,y=-1*d/2,u=g.A.svg(s),p=(0,r.Fr)(e,{stroke:i.lineColor,fill:i.lineColor});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let f=u.rectangle(c,y,h,d,p),w=s.insert(()=>f,":first-child");o&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",o),n&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",n),m(e,w);let x=l?.padding??0;return e.width&&e.height&&(e.width+=x/2||0,e.height+=x/2||0),e.intersect=function(t){return B.rect(e,t)},s}async function tA(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.height=(e?.height??0)-2*n,e.height<10&&(e.height=10),e.width=(e?.width??0)-2*i,e.width<15&&(e.width=15));let{shapeSvg:s,bbox:o}=await w(t,e,b(e)),d=(e?.height?e?.height:Math.max(10,o.height))+2*n,c=d/2,y=c-Math.sqrt(Math.max(0,c**2-(o.height/2)**2)),u=(e?.width?e?.width:Math.max(15,o.width)+2*y)+2*i,{cssStyles:p}=e,f=g.A.svg(s),x=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let k=[{x:-u/2,y:-d/2},{x:u/2-c,y:-d/2},...M(-u/2+c,0,c,50,90,270),{x:u/2-c,y:d/2},{x:-u/2,y:d/2}],D=$(k),A=f.path(D,x),S=s.insert(()=>A,":first-child");return S.attr("class","basic label-container outer-path"),p&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",p),l&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",l),m(e,S),e.intersect=function(t){return h.R.info("Pill intersect",e,{radius:c,point:t}),B.polygon(e,k,t)},s}(0,d.K)(tp,"cylinder"),(0,d.K)(tf,"drawRect"),(0,d.K)(tw,"datastore"),(0,d.K)(tx,"dividedRectangle"),(0,d.K)(tm,"doublecircle"),(0,d.K)(tb,"usecaseEllipse"),(0,d.K)(t$,"filledCircle"),(0,d.K)(tk,"flippedTriangle"),(0,d.K)(tM,"folder"),(0,d.K)(tD,"forkJoin"),(0,d.K)(tA,"halfRoundedRectangle");var tS=(0,d.K)((t,e,a,r,l)=>`M${t+l},${e} L${t+a-l},${e} L${t+a},${e-r/2} L${t+a-l},${e-r} L${t+l},${e-r} L${t},${e-r/2} Z`,"createHexagonPathD");async function tv(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e),n="neo"===e.look?3.5:4;e.labelStyle=l;let s=e.padding??0,o="neo"===e.look?70:s,h="neo"===e.look?32:s;if(e.width||e.height){let t=e.height??0;e.width=(e?.width??0)-t/n*2-h,e.height=(e.height??0)-o}let{shapeSvg:d,bbox:c}=await w(t,e,b(e)),y=(e?.height?e?.height:c.height)+o,u=y/n,p=(e?.width?e?.width:c.width)+2*u+h,f=[{x:u,y:0},{x:p-u,y:0},{x:p,y:-y/2},{x:p-u,y:-y},{x:u,y:-y},{x:0,y:-y/2}],{cssStyles:x}=e;if("handDrawn"===e.look){let t=g.A.svg(d),l=(0,r.Fr)(e,{}),i=tS(0,0,p,y,u),n=t.path(i,l);a=d.insert(()=>n,":first-child").attr("transform",`translate(${-p/2}, ${y/2})`),x&&a.attr("style",x)}else a=E(d,p,y,f);return i&&a.attr("style",i),e.width=p,e.height=y,m(e,a),e.intersect=function(t){return B.polygon(e,f,t)},d}async function tK(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.label="",e.labelStyle=a;let{shapeSvg:i}=await w(t,e,b(e)),n=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:o}=e,d=g.A.svg(i),c=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(c.roughness=0,c.fillStyle="solid");let y=[{x:0,y:0},{x:n,y:0},{x:0,y:s},{x:n,y:s}],u=$(y),p=d.path(u,c),f=i.insert(()=>p,":first-child");return f.attr("class","basic label-container outer-path"),o&&"handDrawn"!==e.look&&f.selectChildren("path").attr("style",o),l&&"handDrawn"!==e.look&&f.selectChildren("path").attr("style",l),f.attr("transform",`translate(${-n/2}, ${-s/2})`),m(e,f),e.intersect=function(t){return h.R.info("Pill intersect",e,{points:y}),B.polygon(e,y,t)},i}async function tC(t,e,{config:{themeVariables:a,flowchart:l}}){let{labelStyles:n}=(0,r.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,l?.wrappingWidth??0);let{shapeSvg:o,bbox:d,label:c}=await w(t,e,"icon-shape default"),y="t"===e.pos,{nodeBorder:u}=a,{stylesMap:p}=(0,r.WW)(e),f=-s/2,x=-s/2,b=8*!!e.label,$=g.A.svg(o),k=(0,r.Fr)(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=$.rectangle(f,x,s,s,k),D=Math.max(s,d.width),A=s+d.height+b,S=$.rectangle(-D/2,-A/2,D,A,{...k,fill:"transparent",stroke:"none"}),v=o.insert(()=>M,":first-child"),K=o.insert(()=>S);if(e.icon){let t=o.append("g");t.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),r=a.width,l=a.height,n=a.x,h=a.y;t.attr("transform",`translate(${-r/2-n},${y?d.height/2+b/2-l/2-h:-d.height/2-b/2-l/2-h})`),t.attr("style",`color: ${p.get("stroke")??u};`)}return c.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${y?-A/2:A/2-d.height})`),v.attr("transform",`translate(0,${y?d.height/2+b/2:-d.height/2-b/2})`),m(e,K),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,r=e.y??0,l=e.height??0,i=[];return i=y?[{x:a-d.width/2,y:r-l/2},{x:a+d.width/2,y:r-l/2},{x:a+d.width/2,y:r-l/2+d.height+b},{x:a+s/2,y:r-l/2+d.height+b},{x:a+s/2,y:r+l/2},{x:a-s/2,y:r+l/2},{x:a-s/2,y:r-l/2+d.height+b},{x:a-d.width/2,y:r-l/2+d.height+b}]:[{x:a-s/2,y:r-l/2},{x:a+s/2,y:r-l/2},{x:a+s/2,y:r-l/2+s},{x:a+d.width/2,y:r-l/2+s},{x:a+d.width/2/2,y:r+l/2},{x:a-d.width/2,y:r+l/2},{x:a-d.width/2,y:r-l/2+s},{x:a-s/2,y:r-l/2+s}],B.polygon(e,i,t)},o}async function tL(t,e,{config:{themeVariables:a,flowchart:l}}){let{labelStyles:n}=(0,r.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,l?.wrappingWidth??0);let{shapeSvg:o,bbox:d,label:c}=await w(t,e,"icon-shape default"),y=8*!!e.label,u="t"===e.pos,{nodeBorder:p,mainBkg:f}=a,{stylesMap:x}=(0,r.WW)(e),b=g.A.svg(o),$=(0,r.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid"),$.stroke=x.get("fill")??f;let k=o.append("g");e.icon&&k.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let M=k.node().getBBox(),D=M.width,A=M.height,S=M.x,v=M.y,K=Math.max(D,A)*Math.SQRT2+40,C=b.circle(0,0,K,$),L=Math.max(K,d.width),N=K+d.height+y,F=b.rectangle(-L/2,-N/2,L,N,{...$,fill:"transparent",stroke:"none"}),R=o.insert(()=>C,":first-child"),P=o.insert(()=>F);return k.attr("transform",`translate(${-D/2-S},${u?d.height/2+y/2-A/2-v:-d.height/2-y/2-A/2-v})`),k.attr("style",`color: ${x.get("stroke")??p};`),c.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${u?-N/2:N/2-d.height})`),R.attr("transform",`translate(0,${u?d.height/2+y/2:-d.height/2-y/2})`),m(e,P),e.intersect=function(t){return h.R.info("iconSquare intersect",e,t),B.rect(e,t)},o}async function tN(t,e,{config:{themeVariables:a,flowchart:l}}){let{labelStyles:n}=(0,r.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,l?.wrappingWidth??0);let{shapeSvg:o,bbox:d,halfPadding:c,label:y}=await w(t,e,"icon-shape default"),u="t"===e.pos,p=s+2*c,f=s+2*c,{nodeBorder:x,mainBkg:b}=a,{stylesMap:$}=(0,r.WW)(e),k=8*!!e.label,M=g.A.svg(o),D=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid"),D.stroke=$.get("fill")??b;let A=M.path(F(-f/2,-p/2,f,p,5),D),S=Math.max(f,d.width),v=p+d.height+k,K=M.rectangle(-S/2,-v/2,S,v,{...D,fill:"transparent",stroke:"none"}),C=o.insert(()=>A,":first-child").attr("class","icon-shape2"),L=o.insert(()=>K);if(e.icon){let t=o.append("g");t.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),r=a.width,l=a.height,n=a.x,h=a.y;t.attr("transform",`translate(${-r/2-n},${u?d.height/2+k/2-l/2-h:-d.height/2-k/2-l/2-h})`),t.attr("style",`color: ${$.get("stroke")??x};`)}return y.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${u?-v/2:v/2-d.height})`),C.attr("transform",`translate(0,${u?d.height/2+k/2:-d.height/2-k/2})`),m(e,L),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,r=e.y??0,l=e.height??0,i=[];return i=u?[{x:a-d.width/2,y:r-l/2},{x:a+d.width/2,y:r-l/2},{x:a+d.width/2,y:r-l/2+d.height+k},{x:a+f/2,y:r-l/2+d.height+k},{x:a+f/2,y:r+l/2},{x:a-f/2,y:r+l/2},{x:a-f/2,y:r-l/2+d.height+k},{x:a-d.width/2,y:r-l/2+d.height+k}]:[{x:a-f/2,y:r-l/2},{x:a+f/2,y:r-l/2},{x:a+f/2,y:r-l/2+p},{x:a+d.width/2,y:r-l/2+p},{x:a+d.width/2/2,y:r+l/2},{x:a-d.width/2,y:r+l/2},{x:a-d.width/2,y:r-l/2+p},{x:a-f/2,y:r-l/2+p}],B.polygon(e,i,t)},o}async function tB(t,e,{config:{themeVariables:a,flowchart:l}}){let{labelStyles:n}=(0,r.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,l?.wrappingWidth??0);let{shapeSvg:o,bbox:d,halfPadding:c,label:y}=await w(t,e,"icon-shape default"),u="t"===e.pos,p=s+2*c,f=s+2*c,{nodeBorder:x,mainBkg:b}=a,{stylesMap:$}=(0,r.WW)(e),k=8*!!e.label,M=g.A.svg(o),D=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid"),D.stroke=$.get("fill")??b;let A=M.path(F(-f/2,-p/2,f,p,.1),D),S=Math.max(f,d.width),v=p+d.height+k,K=M.rectangle(-S/2,-v/2,S,v,{...D,fill:"transparent",stroke:"none"}),C=o.insert(()=>A,":first-child"),L=o.insert(()=>K);if(e.icon){let t=o.append("g");t.html(`<g>${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),r=a.width,l=a.height,n=a.x,h=a.y;t.attr("transform",`translate(${-r/2-n},${u?d.height/2+k/2-l/2-h:-d.height/2-k/2-l/2-h})`),t.attr("style",`color: ${$.get("stroke")??x};`)}return y.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${u?-v/2:v/2-d.height})`),C.attr("transform",`translate(0,${u?d.height/2+k/2:-d.height/2-k/2})`),m(e,L),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,r=e.y??0,l=e.height??0,i=[];return i=u?[{x:a-d.width/2,y:r-l/2},{x:a+d.width/2,y:r-l/2},{x:a+d.width/2,y:r-l/2+d.height+k},{x:a+f/2,y:r-l/2+d.height+k},{x:a+f/2,y:r+l/2},{x:a-f/2,y:r+l/2},{x:a-f/2,y:r-l/2+d.height+k},{x:a-d.width/2,y:r-l/2+d.height+k}]:[{x:a-f/2,y:r-l/2},{x:a+f/2,y:r-l/2},{x:a+f/2,y:r-l/2+p},{x:a+d.width/2,y:r-l/2+p},{x:a+d.width/2/2,y:r+l/2},{x:a-d.width/2,y:r+l/2},{x:a-d.width/2,y:r-l/2+p},{x:a-f/2,y:r-l/2+p}],B.polygon(e,i,t)},o}async function tF(t,e,{config:{flowchart:a}}){let l=new Image;l.src=e?.img??"",await l.decode();let i=Number(l.naturalWidth.toString().replace("px","")),n=Number(l.naturalHeight.toString().replace("px",""));e.imageAspectRatio=i/n;let{labelStyles:s}=(0,r.GX)(e);e.labelStyle=s;let o=a?.wrappingWidth;e.defaultWidth=a?.wrappingWidth;let d=Math.max(e.label?o??0:0,e?.assetWidth??i),c="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:d,y="on"===e.constraint?c/e.imageAspectRatio:e?.assetHeight??n;e.width=Math.max(c,o??0);let{shapeSvg:u,bbox:p,label:f}=await w(t,e,"image-shape default"),x="t"===e.pos,b=-c/2,$=8*!!e.label,k=g.A.svg(u),M=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=k.rectangle(b,-y/2,c,y,M),A=Math.max(c,p.width),S=y+p.height+$,v=k.rectangle(-A/2,-S/2,A,S,{...M,fill:"none",stroke:"none"}),K=u.insert(()=>D,":first-child"),C=u.insert(()=>v);if(e.img){let t=u.append("image");t.attr("href",e.img),t.attr("width",c),t.attr("height",y),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-c/2},${x?S/2-y:-S/2})`)}return f.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${x?-y/2-p.height/2-$/2:y/2-p.height/2+$/2})`),K.attr("transform",`translate(0,${x?p.height/2+$/2:-p.height/2-$/2})`),m(e,C),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,r=e.y??0,l=e.height??0,i=[];return i=x?[{x:a-p.width/2,y:r-l/2},{x:a+p.width/2,y:r-l/2},{x:a+p.width/2,y:r-l/2+p.height+$},{x:a+c/2,y:r-l/2+p.height+$},{x:a+c/2,y:r+l/2},{x:a-c/2,y:r+l/2},{x:a-c/2,y:r-l/2+p.height+$},{x:a-p.width/2,y:r-l/2+p.height+$}]:[{x:a-c/2,y:r-l/2},{x:a+c/2,y:r-l/2},{x:a+c/2,y:r-l/2+y},{x:a+p.width/2,y:r-l/2+y},{x:a+p.width/2/2,y:r+l/2},{x:a-p.width/2,y:r+l/2},{x:a-p.width/2,y:r-l/2+y},{x:a-c/2,y:r-l/2+y}],B.polygon(e,i,t)},u}async function tR(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:o,bbox:h}=await w(t,e,b(e)),d=Math.max(h.height+2*n,e.height??0),c=Math.max(h.width+2*s,(e.width??0)-d),y=[{x:0,y:0},{x:c,y:0},{x:c+3*d/6,y:-d},{x:-3*d/6,y:-d}],{cssStyles:u}=e;if("handDrawn"===e.look){let t=g.A.svg(o),l=(0,r.Fr)(e,{}),i=$(y),n=t.path(i,l);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${d/2})`),u&&a.attr("style",u)}else a=E(o,c,d,y);return i&&a.attr("style",i),e.width=c,e.height=d,m(e,a),e.intersect=function(t){return B.polygon(e,y,t)},o}async function tP(t,e){let{shapeSvg:a,bbox:r,label:l}=await w(t,e,"label"),i=a.insert("rect",":first-child");return i.attr("width",.1).attr("height",.1),a.attr("class","label edgeLabel"),l.attr("transform",`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),m(e,i),e.intersect=function(t){return B.rect(e,t)},a}async function tX(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:o,bbox:h}=await w(t,e,b(e)),d=Math.max(h.height+n,e.height??0),c=Math.max(h.width+s,(e.width??0)-d),y=[{x:0,y:0},{x:c+3*d/6,y:0},{x:c,y:-d},{x:-(3*d)/6,y:-d}],{cssStyles:u}=e;if("handDrawn"===e.look){let t=g.A.svg(o),l=(0,r.Fr)(e,{}),i=$(y),n=t.path(i,l);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${d/2})`),u&&a.attr("style",u)}else a=E(o,c,d,y);return i&&a.attr("style",i),e.width=c,e.height=d,m(e,a),e.intersect=function(t){return B.polygon(e,y,t)},o}async function tG(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:o,bbox:h}=await w(t,e,b(e)),d=Math.max(h.height+n,e.height??0),c=Math.max(h.width+s,(e.width??0)-d),y=[{x:-3*d/6,y:0},{x:c,y:0},{x:c+3*d/6,y:-d},{x:0,y:-d}],{cssStyles:u}=e;if("handDrawn"===e.look){let t=g.A.svg(o),l=(0,r.Fr)(e,{}),i=$(y),n=t.path(i,l);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${d/2})`),u&&a.attr("style",u)}else a=E(o,c,d,y);return i&&a.attr("style",i),e.width=c,e.height=d,m(e,a),e.intersect=function(t){return B.polygon(e,y,t)},o}function tI(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.label="",e.labelStyle=a;let i=t.insert("g").attr("class",b(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,s=Math.max(35,e?.width??0),o=Math.max(35,e?.height??0),d=[{x:s,y:0},{x:0,y:o+3.5},{x:s-14,y:o+3.5},{x:0,y:2*o},{x:s,y:o-3.5},{x:14,y:o-3.5}],c=g.A.svg(i),y=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");let u=$(d),p=c.path(u,y),f=i.insert(()=>p,":first-child");return f.attr("class","outer-path"),n&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",n),l&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",l),f.attr("transform",`translate(-${s/2},${-o})`),m(e,f),e.intersect=function(t){return h.R.info("lightningBolt intersect",e,t),B.polygon(e,d,t)},i}(0,d.K)(tv,"hexagon"),(0,d.K)(tK,"hourglass"),(0,d.K)(tC,"icon"),(0,d.K)(tL,"iconCircle"),(0,d.K)(tN,"iconRounded"),(0,d.K)(tB,"iconSquare"),(0,d.K)(tF,"imageSquare"),(0,d.K)(tR,"inv_trapezoid"),(0,d.K)(tP,"labelRect"),(0,d.K)(tX,"lean_left"),(0,d.K)(tG,"lean_right"),(0,d.K)(tI,"lightningBolt");var tW=(0,d.K)((t,e,a,r,l,i,n)=>`M${t},${e+i} a${l},${i} 0,0,0 ${a},0 a${l},${i} 0,0,0 ${-a},0 l0,${r} a${l},${i} 0,0,0 ${a},0 l0,${-r} M${t},${e+i+n} a${l},${i} 0,0,0 ${a},0`,"createCylinderPathD"),tH=(0,d.K)((t,e,a,r,l,i,n)=>`M${t},${e+i} M${t+a},${e+i} a${l},${i} 0,0,0 ${-a},0 l0,${r} a${l},${i} 0,0,0 ${a},0 l0,${-r} M${t},${e+i+n} a${l},${i} 0,0,0 ${a},0`,"createOuterCylinderPathD"),tT=(0,d.K)((t,e,a,r,l,i)=>`M${t-a/2},${-r/2} a${l},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tE(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n=e.padding??0,o="neo"===e.look?16:n,h="neo"===e.look?24:n;if(e.width||e.height){let t=e.width??0;e.width=(e.width??0)-o,e.width<10&&(e.width=10),e.height=(e.height??0)-h-t/2/(2.5+t/50)*3,e.height<10&&(e.height=10)}let{shapeSvg:d,bbox:c,label:y}=await w(t,e,b(e)),u=(e?.width?e?.width:c.width)+2*o,p=u/2,f=p/(2.5+u/50),x=(e?.height?e?.height:c.height)+f+2*h,$=.1*x,{cssStyles:k}=e;if("handDrawn"===e.look){let t=g.A.svg(d),l=tH(0,0,u,x,p,f,$),i=tT(0,f,u,x,p,f),n=(0,r.Fr)(e,{}),s=t.path(l,n),o=t.path(i,n);d.insert(()=>o,":first-child").attr("class","line"),(a=d.insert(()=>s,":first-child")).attr("class","basic label-container"),k&&a.attr("style",k)}else{let t=tW(0,0,u,x,p,f,$);a=d.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,s.KL)(k)).attr("style",i)}return a.attr("label-offset-y",f),a.attr("transform",`translate(${-u/2}, ${-(x/2+f)})`),m(e,a),y.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${-(c.height/2)+f-(c.y-(c.top??0))})`),e.intersect=function(t){let a=B.rect(e,t),r=a.x-(e.x??0);if(0!=p&&(Math.abs(r)<(e.width??0)/2||Math.abs(r)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-f)){let l=f*f*(1-r*r/(p*p));l>0&&(l=Math.sqrt(l)),l=f-l,t.y-(e.y??0)>0&&(l=-l),a.y+=l}return a},d}async function tj(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;if(e.width||e.height){let t=e.width;e.width=(t??0)*10/11-2*n,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10)}let{shapeSvg:o,bbox:h,label:d}=await w(t,e,b(e)),c=(e?.width?e?.width:h.width)+(n??0)*2,y=(e?.height?e?.height:h.height)+(s??0)*2,u="neo"===e.look?y/4:y/8,p=y+u,{cssStyles:f}=e,x=g.A.svg(o),$=(0,r.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let M=[{x:-c/2-c/2*.1,y:-p/2},{x:-c/2-c/2*.1,y:p/2},...k(-c/2-c/2*.1,p/2,c/2+c/2*.1,p/2,u,.8),{x:c/2+c/2*.1,y:-p/2},{x:-c/2-c/2*.1,y:-p/2},{x:-c/2,y:-p/2},{x:-c/2,y:p/2*1.1},{x:-c/2,y:-p/2}],D=x.polygon(M.map(t=>[t.x,t.y]),$),A=o.insert(()=>D,":first-child");return A.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",f),l&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",l),A.attr("transform",`translate(0,${-u/2})`),d.attr("transform",`translate(${-c/2+(e.padding??0)+c/2*.1/2-(h.x-(h.left??0))},${-y/2+(e.padding??0)-u-(h.y-(h.top??0))})`),m(e,A),e.intersect=function(t){return B.polygon(e,M,t)},o}(0,d.K)(tE,"linedCylinder"),(0,d.K)(tj,"linedWaveEdgedRect");var tq={normal:"usecase-actor-shape usecase-actor-normal",hollow:"usecase-actor-hollow",awesome:"usecase-actor-awesome",icon:"usecase-actor-icon"},tZ=Math.PI/3,t_=(0,d.K)((t,e)=>{let a=.6*e,r=e*Math.sqrt(.64),l=Math.cos(tZ),i=-Math.sin(tZ),n=-(a*i),s=t+a*l,o=r*l,h=r*i;return`M ${n-o} ${s-h} L ${n+o} ${s+h}`},"businessMarkerPathForCircle"),tz={normal:t_(-24,12),hollow:t_(-23,9),awesome:t_(-21,13),icon:"M 12 -8 L 26 -26"},tO=(0,d.K)((t,e,a)=>{let r=(e.x??0)-(e.left??0),l=(e.y??0)-(e.top??0);t.attr("transform",`translate(${-e.width/2-r},${a-e.height/2-l})`)},"positionLabel"),tV=(0,d.K)((t,e,a,l,i=!1)=>{if("handDrawn"===e.look){let n=g.A.svg(t).path(a,(0,r.Fr)(e,i?{fill:"none"}:{}));return t.insert(()=>n,":first-child").attr("class",l)}let n=t.append("path").attr("class",l).attr("d",a);return i&&n.attr("fill","none"),n},"appendActorPath"),tY=(0,d.K)((t,e,a,l,i,n,s=!1)=>{if("handDrawn"===e.look){let o=g.A.svg(t).circle(a,l,2*i,(0,r.Fr)(e,s?{fill:"none"}:{}));return t.insert(()=>o,":first-child").attr("class",n)}let o=t.append("circle").attr("class",n).attr("cx",a).attr("cy",l).attr("r",i);return s&&o.attr("fill","none"),o},"appendActorCircle"),tJ=(0,d.K)((t,e,a)=>{e.business&&t.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",tz[a]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");async function tU(t,e,a,l){let i,s,{labelStyles:h,nodeStyles:d}=(0,r.GX)(e);e.labelStyle=h;let c="icon"===a||void 0!==e.stereotype?{...e,icon:"icon"===a?void 0:e.icon,stereotype:void 0}:e,{shapeSvg:g,bbox:y,label:u}=await w(t,c,b(e,`usecase-actor-variant usecase-actor-${a}`)),p=e.accessibleName??e.label;p&&g.attr("role","img").attr("aria-label",p),u.attr("class","label actor-label usecase-actor-label");let{theme:f,themeVariables:$}=(0,o.D7)();if((0,n.XE)(g,e.colorIndex,f,$.borderColorArray),e.stereotype){let t=await x(g,`\xab${e.stereotype}\xbb`,{labelStyle:h,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});i=t.label.attr("class","label usecase-stereotype"),s=t.bbox}let k=g.append("g").attr("class",`usecase-actor-glyph ${tq[a]}`).attr("style",d||null);await l(k,e),tJ(k,e,a);let M=e.padding??8,D=s?.height??0,A=80+y.height+(s?D+2:0),S=Math.max(56,y.width,s?.width??0)+2*M,v=A+2*M,K=-A/2;k.attr("transform",`translate(0,${K+36})`);let C=K+72+8;return i&&s&&(tO(i,s,C+=D/2),C+=D/2+2),tO(u,y,C+y.height/2),m(e,g.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-S/2).attr("y",-v/2).attr("width",S).attr("height",v).attr("opacity",0).attr("aria-hidden","true")),e.intersect=t=>B.rect(e,t),g}async function tQ(t,e){return tU(t,e,"normal",(t,e)=>{tV(t,e,"M 0 -12 C 6.627 -12 12 -17.373 12 -24 C 12 -30.627 6.627 -36 0 -36 C -6.627 -36 -12 -30.627 -12 -24 C -12 -17.373 -6.627 -12 0 -12 Z M 0 -12 V 8 M -17 -5 H 17 M 0 8 L -15 28 M 0 8 L 15 28","usecase-actor-stick")})}async function t0(t,e){return tU(t,e,"awesome",(t,e)=>{tV(t,e,"M 0 -34 C 7.18 -34 13 -28.18 13 -21 C 13 -13.82 7.18 -8 0 -8 C -7.18 -8 -13 -13.82 -13 -21 C -13 -28.18 -7.18 -34 0 -34 Z M -24 25 C -24 7 -14 -3 0 -3 C 14 -3 24 7 24 25 C 24 28 21 30 18 30 H -18 C -21 30 -24 28 -24 25 Z","usecase-actor-awesome-silhouette")})}async function t2(t,e){return tU(t,e,"hollow",(t,e)=>{tY(t,e,0,-23,9,"usecase-actor-hollow-head",!0),tV(t,e,"M -22 -10 H 22 V 0 H 6 L 22 17 L 13 28 L 0 13 L -13 28 L -22 17 L -6 0 H -22 Z","usecase-actor-hollow-body",!0)})}(0,d.K)(tU,"renderUsecaseActor"),(0,d.K)(tQ,"usecaseActor"),(0,d.K)(t0,"usecaseActorAwesome"),(0,d.K)(t2,"usecaseActorHollow");var t1=(0,d.K)(async(t,e)=>{if("handDrawn"===e.look){let a=g.A.svg(t).rectangle(-26,-28,52,52,(0,r.Fr)(e,{}));t.insert(()=>a,":first-child").attr("class","usecase-actor-icon-frame")}else t.append("rect").attr("class","usecase-actor-icon-frame").attr("x",-26).attr("y",-28).attr("width",52).attr("height",52).attr("rx",4).attr("ry",4);let a=e.icon??"",l=await (0,i.dn)(a.includes(":")?a:`fa:${a}`),n=await (0,i.WY)(a,{height:42,width:42,fallbackPrefix:"fa"}),s=t.append("g").attr("class",`usecase-actor-icon-symbol${l?"":" usecase-actor-icon-fallback"}`).attr("aria-hidden","true").html(`<g>${n}</g>`),o=s.node()?.getBBox();o&&s.attr("transform",`translate(${-o.width/2-o.x},${-2-o.height/2-o.y})`)},"drawIconActor");async function t5(t,e){return tU(t,e,"icon",t1)}(0,d.K)(t5,"usecaseActorIcon");var t8=(0,d.K)((t,e,a)=>{let r=(e.x??0)-(e.left??0),l=(e.y??0)-(e.top??0);t.attr("transform",`translate(${-e.width/2-r},${a-e.height/2-l})`)},"positionLabel");async function t3(t,e){let a,l,i,{labelStyles:s,nodeStyles:h}=(0,r.GX)(e);e.labelStyle=s;let d=e.stereotype?{...e,stereotype:void 0}:e,{shapeSvg:c,bbox:y,halfPadding:u,label:p}=await w(t,d,b(e,"usecase-business-shape"));p.attr("class","label usecase-label");let{theme:f,themeVariables:$}=(0,o.D7)();if((0,n.XE)(c,e.colorIndex,f,$.borderColorArray),e.stereotype){let t=await x(c,`\xab${e.stereotype}\xbb`,{labelStyle:s,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});a=t.label.attr("class","label usecase-stereotype"),l=t.bbox}let k=2*!!l,M=y.height+(l?.height??0)+k,D=Math.max(y.width,l?.width??0),A=u??10,S=D/2+2*A,v=M/2+2*A,K=Math.min(Math.max(A/5,1),A/2),C=D/2+K,L=S-K,N=C/S,F=L/S,R=v*Math.sqrt(Math.max(0,1-N*N)),P=-v*Math.sqrt(Math.max(0,1-F*F));if(a&&l&&t8(a,l,-M/2+l.height/2),t8(p,y,M/2-y.height/2),"handDrawn"===e.look){let t=g.A.svg(c).ellipse(0,0,2*S,2*v,(0,r.Fr)(e,{}));i=c.insert(()=>t,":first-child").attr("class","basic label-container usecase-business-ellipse")}else i=c.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",h).attr("rx",S).attr("ry",v).attr("cx",0).attr("cy",0);c.append("path").attr("class","usecase-business-marker").attr("d",`M ${C} ${R} L ${L} ${P}`).attr("fill","none").attr("style",h||null);let X=e.accessibleName??e.label;return X&&c.attr("role","img").attr("aria-label",X),m(e,i),e.calcIntersect=(t,e)=>B.ellipse(t,t.width/2,t.height/2,e),e.intersect=t=>B.ellipse(e,S,v,t),c}(0,d.K)(t3,"usecaseBusiness");var t4=(0,d.K)((t,e,a,r)=>{let l=(e.x??0)-(e.left??0),i=(e.y??0)-(e.top??0);t.attr("transform",`translate(${a-e.width/2-l},${r-e.height/2-i})`)},"positionLabel"),t7=(0,d.K)(t=>{let e=Number.parseFloat(t??"");return Number.isFinite(e)&&e>=0?e:1},"numericStrokeWidth");async function t6(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e),{stylesMap:i}=(0,r.WW)(e);e.labelStyle=a;let{shapeSvg:n,bbox:s,label:o}=await w(t,e,b(e,"usecase-json-table"));n.attr("role","img"),e.accessibleName&&n.attr("aria-label",e.accessibleName),o.attr("class","label usecase-json-title");let h=n.append("g").attr("class","usecase-json-table-grid"),c=[];for(let t of e.jsonRows??[]){let r=await x(h,t.key,{labelStyle:a,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0}),l=await x(h,t.value,{labelStyle:a,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0});c.push({key:{label:r.label.attr("class","label usecase-json-key"),bbox:r.bbox},value:{label:l.label.attr("class","label usecase-json-value"),bbox:l.bbox}})}let y=Math.max(0,...c.map(({key:t})=>t.bbox.width))+16,u=Math.max(0,...c.map(({value:t})=>t.bbox.width))+16,p=Math.max(s.width+16,y+u),f=u+Math.max(0,p-y-u),$=s.height+8,k=c.map(({key:t,value:e})=>Math.max(t.bbox.height,e.bbox.height)+8),M=$+k.reduce((t,e)=>t+e,0),D=t7(i.get("stroke-width")),A=p+2*D,S=M+2*D,v=-p/2,K=-M/2,C="handDrawn"===e.look?g.A.svg(n):void 0,L=C?(0,r.Fr)(e,{}):void 0,N=(0,d.K)((t,e,a,r,i,n)=>{if(C&&L){let l=C.rectangle(a,r,i,n,L);return t.insert(()=>l,":first-child").attr("class",e)}return t.insert("rect",":first-child").attr("class",e).attr("x",a).attr("y",r).attr("width",i).attr("height",n).attr("style",l)},"insertCell"),F=N(n,"label-container usecase-json-border",-A/2,-S/2,A,S);N(h,"usecase-json-cell usecase-json-title-cell",v,K,p,$),h.node()?.append(o.node()),t4(o,s,0,K+$/2);let R=K+$;return c.forEach(({key:t,value:e},a)=>{let r=k[a],l=h.append("g").attr("class","usecase-json-row").attr("data-row-index",a).attr("transform",`translate(0,${R})`);N(l,"usecase-json-cell usecase-json-key-cell",v,0,y,r),N(l,"usecase-json-cell usecase-json-value-cell",v+y,0,f,r),l.node()?.append(t.label.node(),e.label.node()),t4(t.label,t.bbox,v+y/2,r/2),t4(e.label,e.bbox,v+y+f/2,r/2),R+=r}),m(e,F),e.intersect=t=>B.rect(e,t),n}async function t9(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,o="neo"===e.look?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n-2*o,10),e.height=Math.max((e?.height??0)-2*s-2*o,10));let{shapeSvg:h,bbox:d,label:c}=await w(t,e,b(e)),y=(e?.width?e?.width:d.width)+2*n+2*o,u=(e?.height?e?.height:d.height)+2*s+2*o,p=y-2*o,f=u-2*o,x=-p/2,k=-f/2,{cssStyles:M}=e,A=g.A.svg(h),S=(0,r.Fr)(e,{}),v=[{x:x-o,y:k+o},{x:x-o,y:k+f+o},{x:x+p-o,y:k+f+o},{x:x+p-o,y:k+f},{x:x+p,y:k+f},{x:x+p,y:k+f-o},{x:x+p+o,y:k+f-o},{x:x+p+o,y:k-o},{x:x+o,y:k-o},{x:x+o,y:k},{x,y:k},{x,y:k+o}];"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let K=$(v),C=A.path(K,S),L=$([{x,y:k+o},{x:x+p-o,y:k+o},{x:x+p-o,y:k+f},{x:x+p,y:k+f},{x:x+p,y:k},{x,y:k}]),N=A.path(L,S);"handDrawn"!==e.look&&(C=D(C),N=D(N));let F=h.insert("g",":first-child");return F.insert(()=>C),F.insert(()=>N),F.attr("class","basic label-container outer-path"),M&&"handDrawn"!==e.look&&F.selectAll("path").attr("style",M),l&&"handDrawn"!==e.look&&F.selectAll("path").attr("style",l),c.attr("transform",`translate(${-(d.width/2)-o-(d.x-(d.left??0))}, ${-(d.height/2)+o-(d.y-(d.top??0))})`),m(e,F),e.intersect=function(t){return B.polygon(e,v,t)},h}async function et(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,b(e)),o=e.padding??0,h="neo"===e.look?16:o,d="neo"===e.look?12:o,c=!0;(e.width||e.height)&&(c=!1,e.width=(e?.width??0)-2*h,e.height=(e?.height??0)-3*d);let y=Math.max(n.width,e?.width??0)+2*h,u=Math.max(n.height,e?.height??0)+3*d,p="neo"===e.look?u/4:u/8,f=u+(c?p/2:-p/2),x=-y/2,M=-f/2,{cssStyles:D}=e,A=k(x-10,M+f+10,x+y-10,M+f+10,p,.8),S=A?.[A.length-1],v=[{x:x-10,y:M+10},{x:x-10,y:M+f+10},...A,{x:x+y-10,y:S.y-10},{x:x+y,y:S.y-10},{x:x+y,y:S.y-20},{x:x+y+10,y:S.y-20},{x:x+y+10,y:M-10},{x:x+10,y:M-10},{x:x+10,y:M},{x,y:M},{x,y:M+10}],K=[{x,y:M+10},{x:x+y-10,y:M+10},{x:x+y-10,y:S.y-10},{x:x+y,y:S.y-10},{x:x+y,y:M},{x,y:M}],C=g.A.svg(i),L=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(L.roughness=0,L.fillStyle="solid");let N=$(v),F=C.path(N,L),R=$(K),P=C.path(R,L),X=i.insert(()=>F,":first-child");return X.insert(()=>P),X.attr("class","basic label-container outer-path"),D&&"handDrawn"!==e.look&&X.selectAll("path").attr("style",D),l&&"handDrawn"!==e.look&&X.selectAll("path").attr("style",l),X.attr("transform",`translate(0,${-p/2})`),s.attr("transform",`translate(${-(n.width/2)-10-(n.x-(n.left??0))}, ${-(n.height/2)+10-p-(n.y-(n.top??0))})`),m(e,X),e.intersect=function(t){return B.polygon(e,v,t)},i}async function ee(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l,e.useHtmlLabels||(0,o.E)((0,o.zj)())||(e.centerLabel=!0);let{shapeSvg:n,bbox:s,label:h}=await w(t,e,b(e)),d=Math.max(s.width+(e.padding??0)*2,e?.width??0),c=Math.max(s.height+(e.padding??0)*2,e?.height??0),{cssStyles:y}=e,u=g.A.svg(n),p=(0,r.Fr)(e,{fill:a.noteBkgColor,stroke:a.noteBorderColor});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let f=u.rectangle(-d/2,-c/2,d,c,p),x=n.insert(()=>f,":first-child");return x.attr("class","basic label-container outer-path"),h.attr("class","label noteLabel"),y&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",y),i&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",i),h.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),m(e,x),e.intersect=function(t){return B.rect(e,t)},n}(0,d.K)(t6,"usecaseJsonTable"),(0,d.K)(t9,"multiRect"),(0,d.K)(et,"multiWaveEdgedRectangle"),(0,d.K)(ee,"note");var ea=(0,d.K)((t,e,a)=>`M${t+a/2},${e} L${t+a},${e-a/2} L${t+a/2},${e-a} L${t},${e-a/2} Z`,"createDecisionBoxPathD");async function er(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:n,bbox:s}=await w(t,e,b(e)),o=s.width+(e.padding??0)+(s.height+(e.padding??0)),h=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],{cssStyles:d}=e;if("handDrawn"===e.look){let t=g.A.svg(n),l=(0,r.Fr)(e,{}),i=ea(0,0,o),s=t.path(i,l);a=n.insert(()=>s,":first-child").attr("transform",`translate(${-o/2+.5}, ${o/2})`),d&&a.attr("style",d)}else(a=E(n,o,o,h)).attr("transform",`translate(${-o/2+.5}, ${o/2})`);return i&&a.attr("style",i),m(e,a),e.calcIntersect=function(t,e){let a=t.width;return B.polygon(t,[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],e)},e.intersect=function(t){return this.calcIntersect(e,t)},n}async function el(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?21:i??0,s="neo"===e.look?12:i??0,{shapeSvg:o,bbox:h,label:d}=await w(t,e,b(e)),c=h.width+("neo"===e.look?2*n:n),y=Math.max(h.height+("neo"===e.look?2*s:s),e.height??0),u=-Math.max(c,(e.width??0)-y/4)/2,p=-y/2,f=p/2,x=[{x:u+f,y:p},{x:u,y:0},{x:u+f,y:-p},{x:-u,y:-p},{x:-u,y:p}],{cssStyles:k}=e,M=g.A.svg(o),D=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid");let A=$(x),S=M.path(A,D),v=o.insert(()=>S,":first-child");return v.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",k),l&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",l),v.attr("transform",`translate(${-f/2},0)`),d.attr("transform",`translate(${-f/2-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),m(e,v),e.intersect=function(t){return B.polygon(e,x,t)},o}async function ei(t,e){let a,l,i,{labelStyles:n,nodeStyles:s}=(0,r.GX)(e);e.labelStyle=n,a=e.cssClasses?"node "+e.cssClasses:"node default";let d=t.insert("g").attr("class",a).attr("id",e.domId||e.id),y=d.insert("g"),u=d.insert("g").attr("class","label").attr("style",s),p=e.description,f=e.label,w=await R(u,f,e.labelStyle,!0,!0),x={width:0,height:0};if((0,o.E)((0,o.D7)())){let t=w.children[0],e=(0,c.Ltv)(w);x=t.getBoundingClientRect(),e.attr("width",x.width),e.attr("height",x.height)}h.R.info("Text 2",p);let b=p||[],$=w.getBBox(),k=await R(u,Array.isArray(b)?b.join("<br/>"):b,e.labelStyle,!0,!0),M=k.children[0],D=(0,c.Ltv)(k);x=M.getBoundingClientRect(),D.attr("width",x.width),D.attr("height",x.height);let A=(e.padding||0)/2;(0,c.Ltv)(k).attr("transform","translate( "+(x.width>$.width?0:($.width-x.width)/2)+", "+($.height+A+5)+")"),(0,c.Ltv)(w).attr("transform","translate( "+(x.width<$.width?0:-($.width-x.width)/2)+", 0)"),x=u.node().getBBox(),u.attr("transform","translate("+-x.width/2+", "+(-x.height/2-A+3)+")");let S=x.width+(e.padding||0),v=x.height+(e.padding||0),K=-x.width/2-A,C=-x.height/2-A;if("handDrawn"===e.look){let t=g.A.svg(d),a=(0,r.Fr)(e,{}),n=t.path(F(K,C,S,v,e.rx||0),a),s=t.line(-x.width/2-A,-x.height/2-A+$.height+A,x.width/2+A,-x.height/2-A+$.height+A,a);i=d.insert(()=>(h.R.debug("Rough node insert CXC",n),s),":first-child"),l=d.insert(()=>(h.R.debug("Rough node insert CXC",n),n),":first-child")}else l=y.insert("rect",":first-child"),i=y.insert("line"),l.attr("class","outer title-state").attr("style",s).attr("x",-x.width/2-A).attr("y",-x.height/2-A).attr("width",x.width+(e.padding||0)).attr("height",x.height+(e.padding||0)),i.attr("class","divider").attr("x1",-x.width/2-A).attr("x2",x.width/2+A).attr("y1",-x.height/2-A+$.height+A).attr("y2",-x.height/2-A+$.height+A);return m(e,l),e.intersect=function(t){return B.rect(e,t)},d}async function en(t,e,{config:{themeVariables:a}}){let r=a?.radius??5,l={rx:r,ry:r,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return tf(t,e,l)}async function es(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0,{shapeSvg:o,bbox:h,label:d}=await w(t,e,b(e)),c=(e?.width??h.width)+2*i+("neo"===e.look?8:16),y=(e?.height??h.height)+2*n,u=c-8,p=8-c/2,f=-y/2,{cssStyles:x}=e,$=g.A.svg(o),k=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=$.polygon([{x:p,y:f},{x:p+u,y:f},{x:p+u,y:f+y},{x:p-8,y:f+y},{x:p-8,y:f},{x:p,y:f},{x:p,y:f+y}].map(t=>[t.x,t.y]),k),D=o.insert(()=>M,":first-child");return D.attr("class","basic label-container outer-path").attr("style",(0,s.KL)(x)),l&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",l),x&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",l),d.attr("transform",`translate(${4-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),m(e,D),e.intersect=function(t){return B.rect(e,t)},o}async function eo(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n,10),e.height=Math.max((e?.height??0)/1.5-2*s,10));let{shapeSvg:o,bbox:h,label:d}=await w(t,e,b(e)),c=(e?.width?e?.width:h.width)+2*n,y=((e?.height?e?.height:h.height)+2*s)*1.5/1.5,u=-c/2,p=-y/2,{cssStyles:f}=e,x=g.A.svg(o),k=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:u,y:p},{x:u,y:p+y},{x:u+c,y:p+y},{x:u+c,y:p-y/2}],D=$(M),A=x.path(D,k),S=o.insert(()=>A,":first-child");return S.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",f),l&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",l),S.attr("transform",`translate(0, ${y/4})`),d.attr("transform",`translate(${-c/2+(e.padding??0)-(h.x-(h.left??0))}, ${-y/4+(e.padding??0)-(h.y-(h.top??0))})`),m(e,S),e.intersect=function(t){return B.polygon(e,M,t)},o}async function eh(t,e){let a=e.padding??0,r="neo"===e.look?16:2*a,l="neo"===e.look?12:a,i={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??r,labelPaddingY:l},s=await tf(t,e,i);if(void 0!==e.colorIndex){let{theme:t,themeVariables:a}=(0,o.D7)();(0,n.XE)(s,e.colorIndex,t,a.borderColorArray)}return s}(0,d.K)(er,"question"),(0,d.K)(el,"rect_left_inv_arrow"),(0,d.K)(ei,"rectWithTitle"),(0,d.K)(en,"roundedRect"),(0,d.K)(es,"shadedProcess"),(0,d.K)(eo,"slopedRect"),(0,d.K)(eh,"squareRect");var ed=(0,d.K)((t,e,a)=>{let r=t.height+a,l=r*Math.cos(Math.PI/98),i=Math.sqrt(Math.max(0,l**2-t.height**2));return{w:Math.max(t.width+r/4+e,1.5*r+(r-l),t.width+e+r-i),h:r}},"stadiumDimensions");async function ec(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?40:i,s="neo"===e.look?24:i,{shapeSvg:o,bbox:h}=await w(t,e,b(e)),{w:d,h:c}=ed(h,n,s),y=c/2,{cssStyles:u}=e,p=g.A.svg(o),f=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");let x=[{x:-d/2+y,y:-c/2},{x:d/2-y,y:-c/2},...M(-d/2+y,0,y,50,90,270),{x:d/2-y,y:c/2},...M(d/2-y,0,y,50,270,450)],k=$(x),D=p.path(k,f),A=o.insert(()=>D,":first-child");return A.attr("class","basic label-container outer-path"),u&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",u),l&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",l),m(e,A),e.intersect=function(t){return B.polygon(e,x,t)},o}async function eg(t,e){let a={rx:"neo"===e.look?3:5,ry:"neo"===e.look?3:5,classes:"flowchart-node"};return tf(t,e,a)}function ey(t,e,{config:{themeVariables:a}}){let{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{cssStyles:n}=e,{lineColor:s,stateBorder:o,nodeBorder:h,nodeShadow:d}=a;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let c=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),y=g.A.svg(c),u=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let p=y.circle(0,0,e.width,{...u,stroke:s,strokeWidth:2}),f=o??h,w=(e.width??0)*5/14,x=y.circle(0,0,w,{...u,fill:f,stroke:f,strokeWidth:2,fillStyle:"solid"}),b=c.insert(()=>p,":first-child");if(b.insert(()=>x),"handDrawn"!==e.look&&b.attr("class","outer-path"),n&&b.selectAll("path").attr("style",n),i&&b.selectAll("path").attr("style",i),e.width<25&&d&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";b.attr("style",`filter:url(#${a})`)}return m(e,b),e.intersect=function(t){return B.circle(e,(e.width??0)/2,t)},c}function eu(t,e,{config:{themeVariables:a}}){let l,{lineColor:i,nodeShadow:n}=a;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let s=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);if("handDrawn"===e.look){let t=g.A.svg(s).circle(0,0,e.width,(0,r.ue)(i));(l=s.insert(()=>t)).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else(l=s.insert("circle",":first-child")).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&n&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";l.attr("style",`filter:url(#${a})`)}return m(e,l),e.intersect=function(t){return B.circle(e,(e.width??7)/2,t)},s}async function ep(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e?.padding??8,n="neo"===e.look?28:i,o="neo"===e.look?12:i,{shapeSvg:h,bbox:d}=await w(t,e,b(e)),c=Math.max(d.width+16+n,e.width??0),y=Math.max(d.height+o,e.height??0),u=c-16,p=-c/2,f=-y/2,x=[{x:0,y:0},{x:u,y:0},{x:u,y:-y},{x:0,y:-y},{x:0,y:0},{x:-8,y:0},{x:u+8,y:0},{x:u+8,y:-y},{x:-8,y:-y},{x:-8,y:0}];if("handDrawn"===e.look){let t=g.A.svg(h),a=(0,r.Fr)(e,{}),l=t.rectangle(p,f,u+16,y,a),i=t.line(p+8,f,p+8,f+y,a),n=t.line(p+8+u,f,p+8+u,f+y,a);h.insert(()=>i,":first-child"),h.insert(()=>n,":first-child");let o=h.insert(()=>l,":first-child"),{cssStyles:d}=e;o.attr("class","basic label-container").attr("style",(0,s.KL)(d)),m(e,o)}else{let t=E(h,u,y,x);l&&t.attr("style",l),m(e,t)}return e.intersect=function(t){return B.polygon(e,x,t)},h}async function ef(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-2*s,10),e.width=Math.max((e?.width??0)-2*n-.2*(e.height+2*s),10));let{shapeSvg:o,bbox:h}=await w(t,e,b(e)),d=(e?.height?e?.height:h.height)+2*s,c=.2*d,y=(e?.width?e?.width:h.width)+2*n+c-c,u=-y/2,p=-d/2,{cssStyles:f}=e,x=g.A.svg(o),k=(0,r.Fr)(e,{}),M=[{x:u-c/2,y:p},{x:u+y+c/2,y:p},{x:u+y+c/2,y:p+d},{x:u-c/2,y:p+d}];"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let D=$(M),A=x.path(D,k),S=$([{x:u+y-c/2,y:p+d},{x:u+y+c/2,y:p+d},{x:u+y+c/2,y:p+d-.2*d}]),v=x.path(S,{...k,fillStyle:"solid"}),K=o.insert(()=>v,":first-child");return K.insert(()=>A,":first-child"),K.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",f),l&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",l),m(e,K),e.intersect=function(t){return B.polygon(e,M,t)},o}async function ew(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await w(t,e,b(e)),o=Math.max(n.width+(e.padding??0)*2,e?.width??0),h=Math.max(n.height+(e.padding??0)*2,e?.height??0),d=h/8,c=.2*o,y=.2*h,u=h+d,{cssStyles:p}=e,f=g.A.svg(i),x=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let M=[{x:-o/2-o/2*.1,y:u/2},...k(-o/2-o/2*.1,u/2,o/2+o/2*.1,u/2,d,.8),{x:o/2+o/2*.1,y:-u/2},{x:-o/2-o/2*.1,y:-u/2}],D=-o/2+o/2*.1,A=-u/2-.4*y,S=[{x:D+o-c,y:(A+h)*1.3},{x:D+o,y:A+h-y},{x:D+o,y:(A+h)*.9},...k(D+o,(A+h)*1.25,D+o-c,(A+h)*1.3,-(.02*h),.5)],v=$(M),K=f.path(v,x),C=$(S),L=f.path(C,{...x,fillStyle:"solid"}),N=i.insert(()=>L,":first-child");return N.insert(()=>K,":first-child"),N.attr("class","basic label-container outer-path"),p&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",p),l&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",l),N.attr("transform",`translate(0,${-d/2})`),s.attr("transform",`translate(${-o/2+(e.padding??0)-(n.x-(n.left??0))},${-h/2+(e.padding??0)-d/2-(n.y-(n.top??0))})`),m(e,N),e.intersect=function(t){return B.polygon(e,M,t)},i}async function ex(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n}=await w(t,e,b(e)),s=Math.max(n.width+(e.padding??0),e?.width||0),o=Math.max(n.height+(e.padding??0),e?.height||0),h=i.insert("rect",":first-child");return h.attr("class","text").attr("style",l).attr("rx",0).attr("ry",0).attr("x",-s/2).attr("y",-o/2).attr("width",s).attr("height",o),m(e,h),e.intersect=function(t){return B.rect(e,t)},i}(0,d.K)(ec,"stadium"),(0,d.K)(eg,"state"),(0,d.K)(ey,"stateEnd"),(0,d.K)(eu,"stateStart"),(0,d.K)(ep,"subroutine"),(0,d.K)(ef,"taggedRect"),(0,d.K)(ew,"taggedWaveEdgedRectangle"),(0,d.K)(ex,"text");var em=(0,d.K)((t,e,a,r,l,i)=>`M${t},${e}
3
+ a${l},${i} 0,0,1 0,${-r}
4
+ l${a},0
5
+ a${l},${i} 0,0,1 0,${r}
6
+ M${a},${-r}
7
+ a${l},${i} 0,0,0 0,${r}
8
+ l${-a},0`,"createCylinderPathD"),eb=(0,d.K)((t,e,a,r,l,i)=>`M${t},${e} M${t+a},${e} a${l},${i} 0,0,0 0,${-r} l${-a},0 a${l},${i} 0,0,0 0,${r} l${a},0`,"createOuterCylinderPathD"),e$=(0,d.K)((t,e,a,r,l,i)=>`M${t+a/2},${-r/2} a${l},${i} 0,0,0 0,${r}`,"createInnerCylinderPathD");async function ek(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n=e.padding??0,o="neo"===e.look?12:n/2,h=e.height??0;e.height&&(e.height=e.height-o,e.height<5&&(e.height=5)),e.width&&(e.width=e.width-o-h/2/(2.5+h/50)*3,e.width<10&&(e.width=10));let{shapeSvg:d,bbox:c,label:y}=await w(t,e,b(e)),u=Math.max(e.height??0,c.height)+o,p=u/2,f=p/(2.5+u/50),x=Math.max(e.width??0,c.width)+f+o,{cssStyles:$}=e;if("handDrawn"===e.look){let t=g.A.svg(d),l=eb(0,0,x,u,f,p),i=e$(0,0,x,u,f,p),n=t.path(l,(0,r.Fr)(e,{})),s=t.path(i,(0,r.Fr)(e,{fill:"none"}));a=d.insert(()=>s,":first-child"),(a=d.insert(()=>n,":first-child")).attr("class","basic label-container"),$&&a.attr("style",$)}else{let t=em(0,0,x,u,f,p);(a=d.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,s.KL)($)).attr("style",i)).attr("class","basic label-container outer-path"),$&&a.selectAll("path").attr("style",$),i&&a.selectAll("path").attr("style",i)}return a.attr("label-offset-x",f),a.attr("transform",`translate(${-x/2}, ${u/2} )`),y.attr("transform",`translate(${-(c.width/2)-f-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),m(e,a),e.intersect=function(t){let a=B.rect(e,t),r=a.y-(e.y??0);if(0!=p&&(Math.abs(r)<(e.height??0)/2||Math.abs(r)==(e.height??0)/2&&Math.abs(a.x-(e.x??0))>(e.width??0)/2-f)){let l=f*f*(1-r*r/(p*p));0!=l&&(l=Math.sqrt(Math.abs(l))),l=f-l,t.x-(e.x??0)>0&&(l=-l),a.x+=l}return a},d}async function eM(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n=e.padding??0,s=(e.look,n),o="neo"===e.look?2*n:n,{shapeSvg:h,bbox:d}=await w(t,e,b(e)),c=Math.max(d.height+s,e.height??0),y=Math.max(d.width+o,(e.width??0)-c),u=[{x:-3*c/6,y:0},{x:y+3*c/6,y:0},{x:y,y:-c},{x:0,y:-c}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=g.A.svg(h),l=(0,r.Fr)(e,{}),i=$(u),n=t.path(i,l);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-y/2}, ${c/2})`),p&&a.attr("style",p)}else a=E(h,y,c,u);return i&&a.attr("style",i),e.width=y,e.height=c,m(e,a),e.intersect=function(t){return B.polygon(e,u,t)},h}async function eD(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.height=(e.height??0)-2*s,e.height<5&&(e.height=5),e.width=(e.width??0)-2*n,e.width<15&&(e.width=15));let{shapeSvg:o,bbox:h}=await w(t,e,b(e)),d=(e?.width?e?.width:h.width)+2*n,c=(e?.height?e?.height:h.height)+2*s,{cssStyles:y}=e,u=g.A.svg(o),p=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let f=[{x:-d/2*.8,y:-c/2},{x:d/2*.8,y:-c/2},{x:d/2,y:-c/2*.6},{x:d/2,y:c/2},{x:-d/2,y:c/2},{x:-d/2,y:-c/2*.6}],x=$(f),k=u.path(x,p),M=o.insert(()=>k,":first-child");return M.attr("class","basic label-container outer-path"),y&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",y),l&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",l),m(e,M),e.intersect=function(t){return B.polygon(e,f,t)},o}async function eA(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?2*i:i;(e.width||e.height)&&(e.width=((e?.width??0)-n)/2,e.width<10&&(e.width=10),e.height=e?.height??0,e.height<10&&(e.height=10));let{shapeSvg:s,bbox:d,label:c}=await w(t,e,b(e)),y=(0,o._3)((0,o.D7)().flowchart?.htmlLabels),u=(e?.width?e?.width:d.width)+n,p=e?.height?e?.height:u+d.height,f=[{x:0,y:0},{x:p,y:0},{x:p/2,y:-p}],{cssStyles:x}=e,k=g.A.svg(s),M=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=$(f),A=k.path(D,M),S=s.insert(()=>A,":first-child").attr("transform",`translate(${-p/2}, ${p/2})`).attr("class","outer-path");return x&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",x),l&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",l),e.width=u,e.height=p,m(e,S),c.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${p/2-(d.height+(e.padding??0)/(y?2:1)-(d.y-(d.top??0)))})`),e.intersect=function(t){return h.R.info("Triangle intersect",e,f,t),B.polygon(e,f,t)},s}async function eS(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,o=!0;(e.width||e.height)&&(o=!1,e.width=(e?.width??0)-2*n,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10));let{shapeSvg:h,bbox:d,label:c}=await w(t,e,b(e)),y=(e?.width?e?.width:d.width)+(n??0)*2,u=(e?.height?e?.height:d.height)+(s??0)*2,p="neo"===e.look?u/4:u/8,f=u+(o?p:-p),{cssStyles:x}=e,M=14-y,D=M>0?M/2:0,A=g.A.svg(h),S=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let v=[{x:-y/2-D,y:f/2},...k(-y/2-D,f/2,y/2+D,f/2,p,.8),{x:y/2+D,y:-f/2},{x:-y/2-D,y:-f/2}],K=$(v),C=A.path(K,S),L=h.insert(()=>C,":first-child");return L.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",x),l&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",l),L.attr("transform",`translate(0,${-p/2})`),c.attr("transform",`translate(${-y/2+(e.padding??0)-(d.x-(d.left??0))},${-u/2+(e.padding??0)-p-(d.y-(d.top??0))})`),m(e,L),e.intersect=function(t){return B.polygon(e,v,t)},h}async function ev(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?20:i;if(e.width||e.height){e.width=e?.width??0,e.width<20&&(e.width=20),e.height=e?.height??0,e.height<10&&(e.height=10);let t=Math.min(.2*e.height,e.height/4);e.height=Math.ceil(e.height-s-20/9*t),e.width=e.width-2*n}let{shapeSvg:o,bbox:h}=await w(t,e,b(e)),d=(e?.width?e?.width:h.width)+2*n,c=(e?.height?e?.height:h.height)+s,y=c/8,u=c+2*y,{cssStyles:p}=e,f=g.A.svg(o),x=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let M=[{x:-d/2,y:u/2},...k(-d/2,u/2,d/2,u/2,y,1),{x:d/2,y:-u/2},...k(d/2,-u/2,-d/2,-u/2,y,-1)],D=$(M),A=f.path(D,x),S=o.insert(()=>A,":first-child");return S.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",p),l&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",l),m(e,S),e.intersect=function(t){return B.polygon(e,M,t)},o}async function eK(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*i-10,10),e.height=Math.max((e?.height??0)-2*n-10,10));let{shapeSvg:s,bbox:o,label:h}=await w(t,e,b(e)),d=(e?.width?e?.width:o.width)+2*i+10,c=(e?.height?e?.height:o.height)+2*n+10,y=d-10,u=c-10,p=-y/2,f=-u/2,{cssStyles:x}=e,$=g.A.svg(s),k=(0,r.Fr)(e,{}),M=[{x:p-10,y:f-10},{x:p-10,y:f+u},{x:p+y,y:f+u},{x:p+y,y:f-10}],D=`M${p-10},${f-10} L${p+y},${f-10} L${p+y},${f+u} L${p-10},${f+u} L${p-10},${f-10}
9
+ M${p-10},${f} L${p+y},${f}
10
+ M${p},${f-10} L${p},${f+u}`;"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let A=$.path(D,k),S=s.insert(()=>A,":first-child");return S.attr("transform","translate(5, 5)"),S.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",x),l&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",l),h.attr("transform",`translate(${-(o.width/2)+5-(o.x-(o.left??0))}, ${-(o.height/2)+5-(o.y-(o.top??0))})`),m(e,S),e.intersect=function(t){return B.polygon(e,M,t)},s}(0,d.K)(ek,"tiltedCylinder"),(0,d.K)(eM,"trapezoid"),(0,d.K)(eD,"trapezoidalPentagon"),(0,d.K)(eA,"triangle"),(0,d.K)(eS,"waveEdgedRectangle"),(0,d.K)(ev,"waveRectangle"),(0,d.K)(eK,"windowPane");var eC=new Set(["redux-color","redux-dark-color"]),eL=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function eN(t,e){e.alias&&(e.label=e.alias);let{theme:a,themeVariables:l}=(0,o.zj)(),{rowEven:i,rowOdd:n,nodeBorder:h,borderColorArray:d}=l;if("handDrawn"===e.look){let{themeVariables:a}=(0,o.zj)(),{background:r}=a,l={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${r}`]};await eN(t,l)}let y=(0,o.zj)();e.useHtmlLabels=y.htmlLabels;let u=y.er?.diagramPadding??10,p=y.er?.entityPadding??6,{cssStyles:f}=e,{labelStyles:w,nodeStyles:x}=(0,r.GX)(e);if(0===e.attributes.length&&e.label){let r={rx:0,ry:0,labelPaddingX:u,labelPaddingY:1.5*u,classes:""};(0,s.Un)(e.label,y)+2*r.labelPaddingX<y.er.minEntityWidth&&(e.width=y.er.minEntityWidth);let l=await tf(t,e,r);if(null!=a&&eC.has(a)){let t=e.colorIndex??0;l.attr("data-color-id",`color-${t%d.length}`)}if(!(0,o._3)(y.htmlLabels)){let t=l.select("text"),e=t.node()?.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return l}y.htmlLabels||(u*=1.25,p*=1.25);let $=b(e);$||($="node default");let k=t.insert("g").attr("class",$).attr("id",e.domId||e.id),M=await eB(k,e.label??"",y,0,0,["name"],w);M.height+=p;let D=0,A=[],S=[],v=0,K=0,C=0,L=0,N=!0,F=!0;for(let t of e.attributes){let e=await eB(k,t.type,y,0,D,["attribute-type"],w);v=Math.max(v,e.width+u);let a=await eB(k,t.name,y,0,D,["attribute-name"],w);K=Math.max(K,a.width+u);let r=await eB(k,t.keys.join(),y,0,D,["attribute-keys"],w);C=Math.max(C,r.width+u);let l=await eB(k,t.comment,y,0,D,["attribute-comment"],w);L=Math.max(L,l.width+u);let i=Math.max(e.height,a.height,r.height,l.height)+p;S.push({yOffset:D,rowHeight:i}),D+=i}let R=4;C<=u&&(N=!1,C=0,R--),L<=u&&(F=!1,L=0,R--);let P=k.node().getBBox();if(M.width+2*u-(v+K+C+L)>0){let t=M.width+2*u-(v+K+C+L);v+=t/R,K+=t/R,C>0&&(C+=t/R),L>0&&(L+=t/R)}let X=v+K+C+L,G=g.A.svg(k),I=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(I.roughness=0,I.fillStyle="solid");let W=0;S.length>0&&(W=S.reduce((t,e)=>t+(e?.rowHeight??0),0));let H=Math.max(P.width+2*u,e?.width||0,X),T=Math.max((W??0)+M.height,e?.height||0),E=-H/2,j=-T/2;if(k.selectAll("g:not(:first-child)").each((t,e,a)=>{let r=(0,c.Ltv)(a[e]),l=r.attr("transform"),i=0,n=0;if(l){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(l);t&&(i=parseFloat(t[1]),n=parseFloat(t[2]),r.attr("class").includes("attribute-name")?i+=v:r.attr("class").includes("attribute-keys")?i+=v+K:r.attr("class").includes("attribute-comment")&&(i+=v+K+C))}r.attr("transform",`translate(${E+u/2+i}, ${n+j+M.height+p/2})`)}),k.select(".name").attr("transform","translate("+-M.width/2+", "+(j+p/2)+")"),null!=a&&eC.has(a)){let t=e.colorIndex??0;k.attr("data-color-id",`color-${t%d.length}`)}let q=G.rectangle(E,j,H,T,I),Z=k.insert(()=>q,":first-child").attr("class","outer-path").attr("style",f.join(""));for(let[t,e]of(A.push(0),S.entries())){let a=(t+1)%2==0&&0!==e.yOffset,r=G.rectangle(E,M.height+j+e?.yOffset,H,e?.rowHeight,{...I,fill:a?i:n,stroke:h});k.insert(()=>r,"g.label").attr("style",f.join("")).attr("class",`row-rect-${a?"even":"odd"}`)}let _=eF(E,M.height+j,H+E,M.height+j,1e-4),z=G.polygon(_.map(t=>[t.x,t.y]),I);if(k.insert(()=>z).attr("class","divider"),_=eF(v+E,M.height+j,v+E,T+j,1e-4),z=G.polygon(_.map(t=>[t.x,t.y]),I),k.insert(()=>z).attr("class","divider"),N){let t=v+K+E;_=eF(t,M.height+j,t,T+j,1e-4),z=G.polygon(_.map(t=>[t.x,t.y]),I),k.insert(()=>z).attr("class","divider")}if(F){let t=v+K+C+E;_=eF(t,M.height+j,t,T+j,1e-4),z=G.polygon(_.map(t=>[t.x,t.y]),I),k.insert(()=>z).attr("class","divider")}for(let t of A){let e=M.height+j+t;_=eF(E,e,H+E,e,1e-4),z=G.polygon(_.map(t=>[t.x,t.y]),I),k.insert(()=>z).attr("class","divider")}if(m(e,Z),x&&"handDrawn"!==e.look)if(null!=a&&eL.has(a))k.selectAll("path").attr("style",x);else{let t=x.split(";"),e=t?.filter(t=>t.includes("stroke"))?.map(t=>`${t}`).join("; ");k.selectAll("path").attr("style",e??""),k.selectAll(".row-rect-even path").attr("style",x)}return e.intersect=function(t){return B.rect(e,t)},k}async function eB(t,e,a,r=0,i=0,n=[],h=""){let d=t.insert("g").attr("class",`label ${n.join(" ")}`).attr("transform",`translate(${r}, ${i})`).attr("style",h);e!==(0,o.QO)(e)&&(e=(e=(0,o.QO)(e)).replaceAll("<","&lt;").replaceAll(">","&gt;"));let g=d.node().appendChild(await (0,l.GZ)(d,e,{width:(0,s.Un)(e,a)+100,style:h,useHtmlLabels:a.htmlLabels},a));if(e.includes("&lt;")||e.includes("&gt;")){let t=g.children[0];for(t.textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");t.childNodes[0];)(t=t.childNodes[0]).textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let y=g.getBBox();if((0,o._3)(a.htmlLabels)){let t=g.children[0];t.style.textAlign="start";let e=(0,c.Ltv)(g);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}return y}function eF(t,e,a,r,l){return t===a?[{x:t-l/2,y:e},{x:t+l/2,y:e},{x:a+l/2,y:r},{x:a-l/2,y:r}]:[{x:t,y:e-l/2},{x:t,y:e+l/2},{x:a,y:r+l/2},{x:a,y:r-l/2}]}async function eR(t,e,a,r,l=a.class.padding??12){let i=3*!r,n=t.insert("g").attr("class",b(e)).attr("id",e.domId||e.id),s=null,o=null,h=null,d=null,c=0,g=0,y=0;if(s=n.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let t=e.annotations[0];await eP(s,{text:`\xab${t}\xbb`},0),c=s.node().getBBox().height}o=n.insert("g").attr("class","label-group text"),await eP(o,e,0,["font-weight: bolder"]);let u=o.node().getBBox();g=u.height,h=n.insert("g").attr("class","members-group text");let p=0;for(let t of e.members){let e=await eP(h,t,p,[t.parseClassifier()]);p+=e+i}(y=h.node().getBBox().height)<=0&&(y=l/2),d=n.insert("g").attr("class","methods-group text");let f=0;for(let t of e.methods){let e=await eP(d,t,f,[t.parseClassifier()]);f+=e+i}let w=n.node().getBBox();if(null!==s){let t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return o.attr("transform",`translate(${-u.width/2}, ${c})`),w=n.node().getBBox(),h.attr("transform",`translate(0, ${c+g+2*l})`),w=n.node().getBBox(),d.attr("transform",`translate(0, ${c+g+(y?y+4*l:2*l)})`),w=n.node().getBBox(),{shapeSvg:n,bbox:w}}async function eP(t,e,a,r=[]){let i,n=t.insert("g").attr("class","label").attr("style",r.join("; ")),h=(0,o.zj)(),d="useHtmlLabels"in e?e.useHtmlLabels:(0,o._3)(h.htmlLabels)??!0,g="";g="text"in e?e.text:e.label,!d&&g.startsWith("\\")&&(g=g.substring(1)),(0,o.Wi)(g)&&(d=!0);let u=await (0,l.GZ)(n,(0,o.oB)((0,s.Sm)(g)),{width:(0,s.Un)(g,h)+50,classes:"markdown-node-label",useHtmlLabels:d},h),p=1;if(d){let t=u.children[0],e=(0,c.Ltv)(u);p=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(p+=t.innerHTML.split("<mrow>").length-1),await y(t),i=t.getBoundingClientRect(),e.attr("width",i.width),e.attr("height",i.height)}else{r.includes("font-weight: bolder")&&(0,c.Ltv)(u).selectAll("tspan").attr("font-weight",""),p=u.children.length;let t=u.children[0];(""===u.textContent||u.textContent.includes("&gt"))&&(t.textContent=g[0]+g.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim()," "===g[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),i=u.getBBox()}return n.attr("transform","translate(0,"+(-i.height/(2*p)+a)+")"),i.height}async function eX(t,e){let a=(0,o.D7)(),{theme:l,themeVariables:i}=a,{useGradient:s,borderColorArray:h}=i,d=a.class.padding??12,y=e.useHtmlLabels??(0,o._3)(a.htmlLabels)??!0;e.annotations=e.annotations??[],e.members=e.members??[],e.methods=e.methods??[];let{shapeSvg:u,bbox:p}=await eR(t,e,a,y,d);(0,n.XE)(u,e.colorIndex,l,h);let{labelStyles:f,nodeStyles:w}=(0,r.GX)(e);e.labelStyle=f,e.cssStyles=e.styles||"";let x=e.styles?.join(";")||w||"";e.cssStyles||(e.cssStyles=x.replaceAll("!important","").split(";"));let b=0===e.members.length&&0===e.methods.length&&!a.class?.hideEmptyMembersBox,$=g.A.svg(u),k=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=Math.max(e.width??0,p.width),D=Math.max(e.height??0,p.height),A=(e.height??0)>p.height;0===e.members.length&&0===e.methods.length?D+=d:e.members.length>0&&0===e.methods.length&&(D+=2*d);let S=-M/2,v=-D/2,K=b?2*d:0===e.members.length&&0===e.methods.length?-d:0;A&&(K=2*d);let C=$.rectangle(S-d,v-d-(b?d:0===e.members.length&&0===e.methods.length?-d/2:0),M+2*d,D+2*d+K,k),L=u.insert(()=>C,":first-child");L.attr("class","basic label-container outer-path");let N=L.node().getBBox(),F=u.select(".annotation-group").node().getBBox().height-(b?d/2:0)||0,R=u.select(".label-group").node().getBBox().height-(b?d/2:0)||0,P=u.select(".members-group").node().getBBox().height-(b?d/2:0)||0,X=(F+R+v+d-(v-d-(b?d:0===e.members.length&&0===e.methods.length?-d/2:0)))/2;if(u.selectAll(".text").each((t,r,l)=>{let i=(0,c.Ltv)(l[r]),n=i.attr("transform"),s=0;if(n){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(n);t&&(s=parseFloat(t[2]))}let o=s+v+d-(b?d:0===e.members.length&&0===e.methods.length?-d/2:0);if(i.attr("class").includes("methods-group")){let t=Math.max(P,d/2);o=A?Math.max(X,F+R+t+v+2*d+d)+2*d:F+R+t+v+4*d+d}0===e.members.length&&0===e.methods.length&&a.class?.hideEmptyMembersBox&&(o=e.annotations.length>0?s-d:s),y||(o-=4);let h=S;(i.attr("class").includes("label-group")||i.attr("class").includes("annotation-group"))&&(h=-i.node()?.getBBox().width/2||0,u.selectAll("text").each(function(t,e,a){"middle"===window.getComputedStyle(a[e]).textAnchor&&(h=0)})),i.attr("transform",`translate(${h}, ${o})`)}),e.members.length>0||e.methods.length>0||b){let t=F+R+v+d,a=$.line(N.x,t,N.x+N.width,t+.001,k);u.insert(()=>a).attr("class",`divider${"neo"===e.look&&!s?" neo-line":""}`).attr("style",x)}if(b||e.members.length>0||e.methods.length>0){let t=F+R+P+v+2*d+d,a=$.line(N.x,A?Math.max(X,t):t,N.x+N.width,(A?Math.max(X,t):t)+.001,k);u.insert(()=>a).attr("class",`divider${"neo"===e.look&&!s?" neo-line":""}`).attr("style",x)}if("handDrawn"!==e.look&&u.selectAll("path").attr("style",x),L.select(":nth-child(2)").attr("style",x),u.selectAll(".divider").select("path").attr("style",x),e.labelStyle?u.selectAll("span").attr("style",e.labelStyle):u.selectAll("span").attr("style",x),!y){let t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(x);if(e){let t=e[0].replace("color","fill");u.selectAll("tspan").attr("style",t)}else if(f){let e=t.exec(f);if(e){let t=e[0].replace("color","fill");u.selectAll("tspan").attr("style",t)}}}return m(e,L),e.intersect=function(t){return B.rect(e,t)},u}async function eG(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let n="verifyMethod"in e,s=b(e),h=(0,o.D7)(),{themeVariables:d}=h,{borderColorArray:y,requirementEdgeLabelBackground:u}=d,p="elk"===h.layout?"start":"center",f=t.insert("g").attr("class",s).attr("id",e.domId??e.id),w=a=n?await eI(f,`&lt;&lt;${e.type}&gt;&gt;`,0,e.labelStyle):await eI(f,"&lt;&lt;Element&gt;&gt;",0,e.labelStyle),x=await eI(f,e.name,w,e.labelStyle+"; font-weight: bold;");if(w+=x+20,n){let t=await eI(f,`${e.requirementId?`ID: ${e.requirementId}`:""}`,w,e.labelStyle,p);w+=t;let a=await eI(f,`${e.text?`Text: ${e.text}`:""}`,w,e.labelStyle,p);w+=a;let r=await eI(f,`${e.risk?`Risk: ${e.risk}`:""}`,w,e.labelStyle,p);w+=r,await eI(f,`${e.verifyMethod?`Verification: ${e.verifyMethod}`:""}`,w,e.labelStyle,p)}else{let t=await eI(f,`${e.type?`Type: ${e.type}`:""}`,w,e.labelStyle,p);w+=t,await eI(f,`${e.docRef?`Doc Ref: ${e.docRef}`:""}`,w,e.labelStyle,p)}let $=(f.node()?.getBBox().width??200)+20,k=(f.node()?.getBBox().height??200)+20,M=-$/2,D=-k/2,A=g.A.svg(f),S=(0,r.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let v=A.rectangle(M,D,$,k,S),K=f.insert(()=>v,":first-child");if(K.attr("class","basic label-container outer-path").attr("style",i),y?.length){let t=e.colorIndex??0;f.attr("data-color-id",`color-${t%y.length}`)}if(f.selectAll(".label").each((t,e,a)=>{let r=(0,c.Ltv)(a[e]),l=r.attr("transform"),i=0,n=0;if(l){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(l);t&&(i=parseFloat(t[1]),n=parseFloat(t[2]))}let s=n-k/2,o=M+10;(0===e||1===e)&&(o=i),r.attr("transform",`translate(${o}, ${s+20})`)}),w>a+x+20){let t,r=D+a+x+20;if("neo"===e.look){let e=[[M,r],[M+$,r],[M+$,r+.001],[M,r+.001]];t=A.polygon(e,S)}else t=A.line(M,r,M+$,r,S);f.insert(()=>t).attr("class","divider")}return m(e,K),e.intersect=function(t){return B.rect(e,t)},i&&"handDrawn"!==e.look&&(u||y?.length)&&f.selectAll("path").attr("style",i),f}async function eI(t,e,a,r="",i="center"){let n;if(""===e)return 0;let h=t.insert("g").attr("class","label").attr("style",r),d=(0,o.D7)(),g=d.htmlLabels??!0,y=await (0,l.GZ)(h,(0,o.oB)((0,s.Sm)(e)),{width:(0,s.Un)(e,d)+50,classes:"markdown-node-label",useHtmlLabels:g,style:r},d);if(g){let t=y.children[0],e=(0,c.Ltv)(y);"start"===i&&(0,c.Ltv)(t).style("text-align","left"),n=t.getBoundingClientRect(),e.attr("width",n.width),e.attr("height",n.height)}else{let t=y.children[0];for(let e of t.children)r&&e.setAttribute("style",r);if("start"===i)for(let e of(t.setAttribute("text-anchor","start"),t.children))e.setAttribute("text-anchor","start");n=y.getBBox(),n.height+=6}return h.attr("transform",`translate(${-n.width/2},${-n.height/2+a})`),n.height}(0,d.K)(eN,"erBox"),(0,d.K)(eB,"addText"),(0,d.K)(eF,"lineToPolygon"),(0,d.K)(eR,"textHelper"),(0,d.K)(eP,"addText"),(0,d.K)(eX,"classBox"),(0,d.K)(eG,"requirementBox"),(0,d.K)(eI,"addText");var eW=(0,d.K)(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function eH(t,e,{config:a}){let l,i,n,s,{labelStyles:o,nodeStyles:h}=(0,r.GX)(e);e.labelStyle=o||"";let d=e.width;e.width=(e.width??200)-10;let{shapeSvg:c,bbox:y,label:u}=await w(t,e,b(e)),p=e.padding||10,f="";"ticket"in e&&e.ticket&&a?.kanban?.ticketBaseUrl&&(f=a?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),l=c.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",f).attr("target","_blank"));let $={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};l?{label:i,bbox:n}=await x(l,"ticket"in e&&e.ticket||"",$):{label:i,bbox:n}=await x(c,"ticket"in e&&e.ticket||"",$);let{label:k,bbox:M}=await x(c,"assigned"in e&&e.assigned||"",$);e.width=d;let D=e?.width||0,A=Math.max(n.height,M.height)/2,S=Math.max(y.height+20,e?.height||0)+A,v=-D/2,K=-S/2;u.attr("transform","translate("+(p-D/2)+", "+(-A-y.height/2)+")"),i.attr("transform","translate("+(p-D/2)+", "+(-A+y.height/2)+")"),k.attr("transform","translate("+(p+D/2-M.width-20)+", "+(-A+y.height/2)+")");let{rx:C,ry:L}=e,{cssStyles:N}=e;if("handDrawn"===e.look){let t=g.A.svg(c),a=(0,r.Fr)(e,{}),l=C||L?t.path(F(v,K,D,S,C||0),a):t.rectangle(v,K,D,S,a);(s=c.insert(()=>l,":first-child")).attr("class","basic label-container").attr("style",N||null)}else{(s=c.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",h).attr("rx",C??5).attr("ry",L??5).attr("x",v).attr("y",K).attr("width",D).attr("height",S);let t="priority"in e&&e.priority;if(t){let e=c.append("line"),a=v+2,r=K+Math.floor((C??0)/2),l=K+S-Math.floor((C??0)/2);e.attr("x1",a).attr("y1",r).attr("x2",a).attr("y2",l).attr("stroke-width","4").attr("stroke",eW(t))}}return m(e,s),e.height=S,e.intersect=function(t){return B.rect(e,t)},c}async function eT(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:n,bbox:o,halfPadding:d,label:c}=await w(t,e,b(e)),y=o.width+10*d,u=o.height+8*d,p=.15*y,{cssStyles:f}=e,x=o.width+20,$=o.height+20,k=Math.max(y,x),M=Math.max(u,$);c.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);let D=`M0 0
11
+ a${p},${p} 1 0,0 ${.25*k},${-1*M*.1}
12
+ a${p},${p} 1 0,0 ${.25*k},0
13
+ a${p},${p} 1 0,0 ${.25*k},0
14
+ a${p},${p} 1 0,0 ${.25*k},${.1*M}
15
+
16
+ a${p},${p} 1 0,0 ${.15*k},${.33*M}
17
+ a${.8*p},${.8*p} 1 0,0 0,${.34*M}
18
+ a${p},${p} 1 0,0 ${-1*k*.15},${.33*M}
19
+
20
+ a${p},${p} 1 0,0 ${-1*k*.25},${.15*M}
21
+ a${p},${p} 1 0,0 ${-1*k*.25},0
22
+ a${p},${p} 1 0,0 ${-1*k*.25},0
23
+ a${p},${p} 1 0,0 ${-1*k*.25},${-1*M*.15}
24
+
25
+ a${p},${p} 1 0,0 ${-1*k*.1},${-1*M*.33}
26
+ a${.8*p},${.8*p} 1 0,0 0,${-1*M*.34}
27
+ a${p},${p} 1 0,0 ${.1*k},${-1*M*.33}
28
+ H0 V0 Z`;if("handDrawn"===e.look){let t=g.A.svg(n),l=(0,r.Fr)(e,{}),i=t.path(D,l);(a=n.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,s.KL)(f))}else a=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",D);return a.attr("transform",`translate(${-k/2}, ${-M/2})`),m(e,a),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return h.R.info("Bang intersect",e,t),B.rect(e,t)},n}async function eE(t,e){let a,{labelStyles:l,nodeStyles:i}=(0,r.GX)(e);e.labelStyle=l;let{shapeSvg:n,bbox:o,halfPadding:d,label:c}=await w(t,e,b(e)),y=o.width+2*d,u=o.height+2*d,p=.15*y,f=.25*y,x=.35*y,$=.2*y,{cssStyles:k}=e,M=`M0 0
29
+ a${p},${p} 0 0,1 ${.25*y},${-1*y*.1}
30
+ a${x},${x} 1 0,1 ${.4*y},${-1*y*.1}
31
+ a${f},${f} 1 0,1 ${.35*y},${.2*y}
32
+
33
+ a${p},${p} 1 0,1 ${.15*y},${.35*u}
34
+ a${$},${$} 1 0,1 ${-1*y*.15},${.65*u}
35
+
36
+ a${f},${p} 1 0,1 ${-1*y*.25},${.15*y}
37
+ a${x},${x} 1 0,1 ${-1*y*.5},0
38
+ a${p},${p} 1 0,1 ${-1*y*.25},${-1*y*.15}
39
+
40
+ a${p},${p} 1 0,1 ${-1*y*.1},${-1*u*.35}
41
+ a${$},${$} 1 0,1 ${.1*y},${-1*u*.65}
42
+ H0 V0 Z`;if("handDrawn"===e.look){let t=g.A.svg(n),l=(0,r.Fr)(e,{}),i=t.path(M,l);(a=n.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,s.KL)(k))}else a=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",M);return c.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),a.attr("transform",`translate(${-y/2}, ${-u/2})`),m(e,a),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return h.R.info("Cloud intersect",e,t),B.rect(e,t)},n}async function ej(t,e){let{labelStyles:a,nodeStyles:l}=(0,r.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,halfPadding:s,label:o}=await w(t,e,b(e)),h=n.width+8*s,d=n.height+2*s,c="neo"===e.look?`
43
+ M${-h/2} ${d/2-5}
44
+ v${-d+10}
45
+ q0,-5 5,-5
46
+ h${h-10}
47
+ q5,0 5,5
48
+ v${d-5}
49
+ H${-h/2}
50
+ Z
51
+ `:`
52
+ M${-h/2} ${d/2-5}
53
+ v${-d+10}
54
+ q0,-5 5,-5
55
+ h${h-10}
56
+ q5,0 5,5
57
+ v${d-10}
58
+ q0,5 -5,5
59
+ h${-(h-10)}
60
+ q-5,0 -5,-5
61
+ Z
62
+ `;if(!e.domId)throw Error(`defaultMindmapNode: node "${e.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let g=i.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",l).attr("d",c);return i.append("line").attr("class","node-line-").attr("x1",-h/2).attr("y1",d/2).attr("x2",h/2).attr("y2",d/2),o.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),i.append(()=>o.node()),m(e,g),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return B.rect(e,t)},i}async function eq(t,e){let a={padding:e.padding??0};return Q(t,e,a)}(0,d.K)(eH,"kanbanItem"),(0,d.K)(eT,"bang"),(0,d.K)(eE,"cloud"),(0,d.K)(ej,"defaultMindmapNode"),(0,d.K)(eq,"mindmapCircle");var eZ=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:eh},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:en},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:ec},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:ep},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:tp},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:tw},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:tM},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:W},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:te},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:Y},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:tc},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Q},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:eT},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:eE},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:er},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:tv},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tG},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tX},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:eM},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:tR},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tm},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:ex},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:J},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:es},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:eu},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:ey},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:tD},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:tK},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:ti},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:ts},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:th},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:tI},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:eS},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:tA},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:ek},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:tE},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:td},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:tx},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:eA},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:eK},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:t$},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:eD},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:tk},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:eo},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:et},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:t9},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:I},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:tr},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:ew},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:ef},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:ev},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:el},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tj}],e_=(0,d.K)(()=>Object.fromEntries([...Object.entries({state:eg,choice:U,note:ee,composite:tt,rectWithTitle:ei,labelRect:tP,block_arrow:V,collapsedGroup:T,iconSquare:tB,iconCircle:tL,icon:tC,iconRounded:tN,imageSquare:tF,anchor:P,kanbanItem:eH,mindmapCircle:eq,defaultMindmapNode:ej,classBox:eX,erBox:eN,requirementBox:eG,usecaseActor:tQ,usecaseActorHollow:t2,usecaseActorAwesome:t0,usecaseActorIcon:t5,usecaseBusiness:t3,usecaseEllipse:tb,usecaseJsonTable:t6}),...eZ.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))]),"generateShapeMap")();function ez(t){return t in e_}(0,d.K)(ez,"isValidShape")}}]);