@celljs/ta 4.13.1 → 4.15.0

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 (394) hide show
  1. package/dist/cli.mjs +1025 -814
  2. package/dist/gateway.mjs +471 -196
  3. package/dist/pi/CHANGELOG.md +13 -0
  4. package/dist/pi/package.json +1 -1
  5. package/dist/pi/packages/ta-agents/extension/index.mjs +50 -21
  6. package/dist/pi/packages/ta-agents/lib/texts.d.ts +43 -22
  7. package/dist/pi/packages/ta-agents/lib/texts.js +54 -21
  8. package/dist/pi/packages/ta-agents/package.json +9 -5
  9. package/dist/pi/packages/ta-bots/extension/index.mjs +81 -10
  10. package/dist/pi/packages/ta-bots/host/index.mjs +303 -184
  11. package/dist/pi/packages/ta-bots/lib/i18n.d.ts +3 -0
  12. package/dist/pi/packages/ta-bots/lib/i18n.js +167 -2
  13. package/dist/pi/packages/ta-bots/lib/server-texts.d.ts +0 -1
  14. package/dist/pi/packages/ta-bots/lib/server-texts.js +45 -12
  15. package/dist/pi/packages/ta-bots/package.json +9 -5
  16. package/dist/pi/packages/ta-bots/web/index.js +203 -1
  17. package/dist/pi/packages/ta-changes/lib/i18n.d.ts +3 -0
  18. package/dist/pi/packages/ta-changes/lib/i18n.js +51 -2
  19. package/dist/pi/packages/ta-changes/package.json +9 -5
  20. package/dist/pi/packages/ta-changes/web/index.js +87 -1
  21. package/dist/pi/packages/ta-channels/extension/index.mjs +78 -13
  22. package/dist/pi/packages/ta-channels/host/index.mjs +291 -190
  23. package/dist/pi/packages/ta-channels/lib/agent-cards.d.ts +2 -1
  24. package/dist/pi/packages/ta-channels/lib/agent-cards.js +4 -3
  25. package/dist/pi/packages/ta-channels/lib/handoff.d.ts +5 -4
  26. package/dist/pi/packages/ta-channels/lib/handoff.js +22 -6
  27. package/dist/pi/packages/ta-channels/lib/i18n.d.ts +3 -0
  28. package/dist/pi/packages/ta-channels/lib/i18n.js +361 -2
  29. package/dist/pi/packages/ta-channels/lib/room.js +3 -3
  30. package/dist/pi/packages/ta-channels/lib/team-ask.d.ts +2 -1
  31. package/dist/pi/packages/ta-channels/lib/team-ask.js +19 -7
  32. package/dist/pi/packages/ta-channels/lib/team.d.ts +2 -2
  33. package/dist/pi/packages/ta-channels/lib/team.js +1 -1
  34. package/dist/pi/packages/ta-channels/package.json +9 -5
  35. package/dist/pi/packages/ta-channels/web/index.js +483 -47
  36. package/dist/pi/packages/ta-computer-use/extension/index.mjs +11 -1
  37. package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.js +20 -2
  38. package/dist/pi/packages/ta-computer-use/package.json +9 -5
  39. package/dist/pi/packages/ta-cron/README.en.md +1 -1
  40. package/dist/pi/packages/ta-cron/README.md +1 -1
  41. package/dist/pi/packages/ta-cron/extension/index.mjs +82 -8
  42. package/dist/pi/packages/ta-cron/host/index.mjs +67 -3
  43. package/dist/pi/packages/ta-cron/lib/editor.js +1 -1
  44. package/dist/pi/packages/ta-cron/lib/i18n.d.ts +3 -0
  45. package/dist/pi/packages/ta-cron/lib/i18n.js +217 -2
  46. package/dist/pi/packages/ta-cron/lib/page.d.ts +2 -0
  47. package/dist/pi/packages/ta-cron/lib/page.js +22 -8
  48. package/dist/pi/packages/ta-cron/lib/schedule-util.js +29 -3
  49. package/dist/pi/packages/ta-cron/lib/server-texts.d.ts +2 -1
  50. package/dist/pi/packages/ta-cron/lib/server-texts.js +16 -9
  51. package/dist/pi/packages/ta-cron/package.json +9 -5
  52. package/dist/pi/packages/ta-cron/web/index.js +303 -14
  53. package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +3 -0
  54. package/dist/pi/packages/ta-extensions/lib/i18n.js +240 -2
  55. package/dist/pi/packages/ta-extensions/package.json +9 -5
  56. package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +2 -1
  57. package/dist/pi/packages/ta-extensions/web/index.js +499 -176
  58. package/dist/pi/packages/ta-games/README.en.md +1 -1
  59. package/dist/pi/packages/ta-games/README.md +1 -1
  60. package/dist/pi/packages/ta-games/lib/i18n.d.ts +3 -0
  61. package/dist/pi/packages/ta-games/lib/i18n.js +61 -2
  62. package/dist/pi/packages/ta-games/package.json +9 -5
  63. package/dist/pi/packages/ta-games/skills/ta-game/SKILL.md +41 -3
  64. package/dist/pi/packages/ta-games/web/index.js +97 -1
  65. package/dist/pi/packages/ta-glance/extension/index.mjs +31 -13
  66. package/dist/pi/packages/ta-glance/lib/glance-json.d.ts +2 -0
  67. package/dist/pi/packages/ta-glance/lib/glance-json.js +38 -16
  68. package/dist/pi/packages/ta-glance/lib/i18n.d.ts +3 -0
  69. package/dist/pi/packages/ta-glance/lib/i18n.js +31 -2
  70. package/dist/pi/packages/ta-glance/package.json +9 -5
  71. package/dist/pi/packages/ta-glance/web/index.js +98 -14
  72. package/dist/pi/packages/ta-initiative/README.en.md +1 -0
  73. package/dist/pi/packages/ta-initiative/README.md +1 -0
  74. package/dist/pi/packages/ta-initiative/extension/index.mjs +89 -9
  75. package/dist/pi/packages/ta-initiative/host/index.mjs +123 -19
  76. package/dist/pi/packages/ta-initiative/lib/chat-kinds.js +15 -3
  77. package/dist/pi/packages/ta-initiative/lib/cron-proposals.js +20 -3
  78. package/dist/pi/packages/ta-initiative/lib/event-proposals.d.ts +2 -1
  79. package/dist/pi/packages/ta-initiative/lib/event-proposals.js +20 -6
  80. package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +4 -0
  81. package/dist/pi/packages/ta-initiative/lib/i18n.js +155 -4
  82. package/dist/pi/packages/ta-initiative/lib/inbox.js +3 -2
  83. package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +15 -4
  84. package/dist/pi/packages/ta-initiative/lib/initiative-protocol.js +11 -1
  85. package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +1 -0
  86. package/dist/pi/packages/ta-initiative/lib/initiative-service.js +4 -1
  87. package/dist/pi/packages/ta-initiative/lib/initiative-store.js +5 -1
  88. package/dist/pi/packages/ta-initiative/lib/material-util.d.ts +2 -1
  89. package/dist/pi/packages/ta-initiative/lib/material-util.js +9 -3
  90. package/dist/pi/packages/ta-initiative/lib/review-service.js +1 -1
  91. package/dist/pi/packages/ta-initiative/lib/server-texts.d.ts +2 -1
  92. package/dist/pi/packages/ta-initiative/lib/server-texts.js +11 -4
  93. package/dist/pi/packages/ta-initiative/lib/settings.js +2 -3
  94. package/dist/pi/packages/ta-initiative/lib/style.d.ts +1 -1
  95. package/dist/pi/packages/ta-initiative/lib/style.js +1 -1
  96. package/dist/pi/packages/ta-initiative/package.json +9 -5
  97. package/dist/pi/packages/ta-initiative/web/index.js +207 -12
  98. package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +3 -0
  99. package/dist/pi/packages/ta-launcher/lib/i18n.js +71 -2
  100. package/dist/pi/packages/ta-launcher/package.json +9 -5
  101. package/dist/pi/packages/ta-launcher/web/index.js +107 -1
  102. package/dist/pi/packages/ta-manual/README.en.md +1 -1
  103. package/dist/pi/packages/ta-manual/README.md +1 -1
  104. package/dist/pi/packages/ta-manual/lib/i18n.d.ts +3 -0
  105. package/dist/pi/packages/ta-manual/lib/i18n.js +21 -2
  106. package/dist/pi/packages/ta-manual/lib/manual-util.js +2 -1
  107. package/dist/pi/packages/ta-manual/lib/pictures-c.js +30 -0
  108. package/dist/pi/packages/ta-manual/lib/topics.d.ts +4 -0
  109. package/dist/pi/packages/ta-manual/lib/topics.js +188 -71
  110. package/dist/pi/packages/ta-manual/package.json +9 -5
  111. package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +9 -0
  112. package/dist/pi/packages/ta-manual/web/index.js +405 -119
  113. package/dist/pi/packages/ta-moments/extension/index.mjs +323 -147
  114. package/dist/pi/packages/ta-moments/host/index.mjs +350 -161
  115. package/dist/pi/packages/ta-moments/lib/editor.js +1 -1
  116. package/dist/pi/packages/ta-moments/lib/friends.d.ts +4 -1
  117. package/dist/pi/packages/ta-moments/lib/friends.js +3 -2
  118. package/dist/pi/packages/ta-moments/lib/i18n.d.ts +3 -0
  119. package/dist/pi/packages/ta-moments/lib/i18n.js +170 -3
  120. package/dist/pi/packages/ta-moments/lib/moments-host.js +25 -12
  121. package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +2 -0
  122. package/dist/pi/packages/ta-moments/lib/page.js +8 -7
  123. package/dist/pi/packages/ta-moments/lib/post-util.js +2 -2
  124. package/dist/pi/packages/ta-moments/lib/server-texts.d.ts +10 -12
  125. package/dist/pi/packages/ta-moments/lib/server-texts.js +128 -62
  126. package/dist/pi/packages/ta-moments/lib/store.js +6 -0
  127. package/dist/pi/packages/ta-moments/lib/style.d.ts +1 -1
  128. package/dist/pi/packages/ta-moments/lib/style.js +4 -5
  129. package/dist/pi/packages/ta-moments/lib/talk-host.js +29 -8
  130. package/dist/pi/packages/ta-moments/package.json +9 -5
  131. package/dist/pi/packages/ta-moments/web/index.js +453 -192
  132. package/dist/pi/packages/ta-nearby/extension/index.mjs +229 -32
  133. package/dist/pi/packages/ta-nearby/host/index.mjs +437 -39
  134. package/dist/pi/packages/ta-nearby/lib/i18n.d.ts +3 -0
  135. package/dist/pi/packages/ta-nearby/lib/i18n.js +173 -2
  136. package/dist/pi/packages/ta-nearby/lib/nearby-net.js +2 -0
  137. package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +11 -0
  138. package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +5 -4
  139. package/dist/pi/packages/ta-nearby/lib/nearby-service.js +53 -10
  140. package/dist/pi/packages/ta-nearby/lib/page.js +15 -13
  141. package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +5 -13
  142. package/dist/pi/packages/ta-nearby/lib/server-texts.js +194 -42
  143. package/dist/pi/packages/ta-nearby/lib/style.d.ts +1 -1
  144. package/dist/pi/packages/ta-nearby/lib/style.js +1 -1
  145. package/dist/pi/packages/ta-nearby/package.json +9 -5
  146. package/dist/pi/packages/ta-nearby/web/index.js +223 -7
  147. package/dist/pi/packages/ta-notify/README.en.md +1 -0
  148. package/dist/pi/packages/ta-notify/README.md +1 -0
  149. package/dist/pi/packages/ta-notify/extension/index.mjs +54 -5
  150. package/dist/pi/packages/ta-notify/host/index.mjs +3 -0
  151. package/dist/pi/packages/ta-notify/lib/i18n.d.ts +3 -0
  152. package/dist/pi/packages/ta-notify/lib/i18n.js +53 -2
  153. package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +2 -0
  154. package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +1 -0
  155. package/dist/pi/packages/ta-notify/lib/notify-service.js +3 -0
  156. package/dist/pi/packages/ta-notify/lib/server-texts.d.ts +2 -1
  157. package/dist/pi/packages/ta-notify/lib/server-texts.js +16 -5
  158. package/dist/pi/packages/ta-notify/package.json +9 -5
  159. package/dist/pi/packages/ta-notify/web/index.js +89 -1
  160. package/dist/pi/packages/ta-recall/README.en.md +1 -1
  161. package/dist/pi/packages/ta-recall/README.md +1 -1
  162. package/dist/pi/packages/ta-recall/extension/index.mjs +52 -2
  163. package/dist/pi/packages/ta-recall/host/index.mjs +145 -67
  164. package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +9 -6
  165. package/dist/pi/packages/ta-recall/lib/brief-util.js +26 -5
  166. package/dist/pi/packages/ta-recall/lib/extension-util.d.ts +2 -1
  167. package/dist/pi/packages/ta-recall/lib/extension-util.js +7 -1
  168. package/dist/pi/packages/ta-recall/lib/i18n.d.ts +3 -0
  169. package/dist/pi/packages/ta-recall/lib/i18n.js +89 -2
  170. package/dist/pi/packages/ta-recall/lib/keep-util.d.ts +2 -1
  171. package/dist/pi/packages/ta-recall/lib/keep-util.js +8 -1
  172. package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +5 -3
  173. package/dist/pi/packages/ta-recall/lib/recall-service.js +16 -10
  174. package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +2 -3
  175. package/dist/pi/packages/ta-recall/lib/server-texts.js +15 -8
  176. package/dist/pi/packages/ta-recall/package.json +9 -5
  177. package/dist/pi/packages/ta-recall/web/index.js +164 -9
  178. package/dist/pi/packages/ta-rooms/extension/index.mjs +60 -3
  179. package/dist/pi/packages/ta-rooms/host/index.mjs +284 -37
  180. package/dist/pi/packages/ta-rooms/lib/dialogs.js +2 -1
  181. package/dist/pi/packages/ta-rooms/lib/double-agents.js +31 -7
  182. package/dist/pi/packages/ta-rooms/lib/double-grants.js +57 -13
  183. package/dist/pi/packages/ta-rooms/lib/double-host.js +31 -5
  184. package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +3 -0
  185. package/dist/pi/packages/ta-rooms/lib/double-i18n.js +201 -2
  186. package/dist/pi/packages/ta-rooms/lib/double-tasks.d.ts +2 -1
  187. package/dist/pi/packages/ta-rooms/lib/double-tasks.js +93 -21
  188. package/dist/pi/packages/ta-rooms/lib/double-user.js +1 -1
  189. package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +1 -1
  190. package/dist/pi/packages/ta-rooms/lib/double-util.js +22 -3
  191. package/dist/pi/packages/ta-rooms/lib/doubles-store.js +2 -1
  192. package/dist/pi/packages/ta-rooms/lib/friend-notices.js +27 -8
  193. package/dist/pi/packages/ta-rooms/lib/friends-view.js +7 -8
  194. package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +3 -0
  195. package/dist/pi/packages/ta-rooms/lib/i18n.js +243 -2
  196. package/dist/pi/packages/ta-rooms/lib/page.d.ts +12 -0
  197. package/dist/pi/packages/ta-rooms/lib/page.js +38 -3
  198. package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
  199. package/dist/pi/packages/ta-rooms/lib/style.js +1 -2
  200. package/dist/pi/packages/ta-rooms/package.json +9 -5
  201. package/dist/pi/packages/ta-rooms/web/index.js +537 -21
  202. package/dist/pi/packages/ta-share/extension/index.mjs +98 -23
  203. package/dist/pi/packages/ta-share/lib/i18n.d.ts +3 -0
  204. package/dist/pi/packages/ta-share/lib/i18n.js +203 -2
  205. package/dist/pi/packages/ta-share/lib/page.js +1 -1
  206. package/dist/pi/packages/ta-share/lib/server-texts.d.ts +2 -1
  207. package/dist/pi/packages/ta-share/lib/server-texts.js +60 -29
  208. package/dist/pi/packages/ta-share/package.json +9 -5
  209. package/dist/pi/packages/ta-share/web/index.js +240 -2
  210. package/dist/pi/packages/ta-sync/host/index.mjs +170 -25
  211. package/dist/pi/packages/ta-sync/lib/i18n.d.ts +3 -0
  212. package/dist/pi/packages/ta-sync/lib/i18n.js +175 -4
  213. package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +3 -0
  214. package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +185 -4
  215. package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +0 -1
  216. package/dist/pi/packages/ta-sync/lib/server-texts.js +132 -35
  217. package/dist/pi/packages/ta-sync/lib/style.d.ts +1 -1
  218. package/dist/pi/packages/ta-sync/lib/style.js +1 -1
  219. package/dist/pi/packages/ta-sync/package.json +9 -5
  220. package/dist/pi/packages/ta-sync/web/index.js +394 -7
  221. package/dist/pi/packages/ta-sync-cloud/host/index.mjs +52 -23
  222. package/dist/pi/packages/ta-sync-cloud/lib/host.js +49 -20
  223. package/dist/pi/packages/ta-sync-cloud/package.json +9 -5
  224. package/dist/pi/packages/ta-team/README.en.md +3 -1
  225. package/dist/pi/packages/ta-team/README.md +3 -1
  226. package/dist/pi/packages/ta-team/extension/index.mjs +86 -37
  227. package/dist/pi/packages/ta-team/host/index.mjs +694 -85
  228. package/dist/pi/packages/ta-team/lib/dialogs.js +140 -17
  229. package/dist/pi/packages/ta-team/lib/host.js +4 -0
  230. package/dist/pi/packages/ta-team/lib/i18n.d.ts +18 -1
  231. package/dist/pi/packages/ta-team/lib/i18n.js +455 -10
  232. package/dist/pi/packages/ta-team/lib/member-dialog.js +30 -25
  233. package/dist/pi/packages/ta-team/lib/members-tab.js +55 -8
  234. package/dist/pi/packages/ta-team/lib/page.d.ts +5 -0
  235. package/dist/pi/packages/ta-team/lib/page.js +19 -0
  236. package/dist/pi/packages/ta-team/lib/parts.d.ts +3 -1
  237. package/dist/pi/packages/ta-team/lib/parts.js +4 -3
  238. package/dist/pi/packages/ta-team/lib/policy.d.ts +24 -0
  239. package/dist/pi/packages/ta-team/lib/policy.js +32 -0
  240. package/dist/pi/packages/ta-team/lib/protocol.d.ts +22 -15
  241. package/dist/pi/packages/ta-team/lib/protocol.js +1 -3
  242. package/dist/pi/packages/ta-team/lib/shared-home.js +2 -2
  243. package/dist/pi/packages/ta-team/lib/style.d.ts +1 -1
  244. package/dist/pi/packages/ta-team/lib/style.js +19 -8
  245. package/dist/pi/packages/ta-team/lib/team-admin.js +1 -0
  246. package/dist/pi/packages/ta-team/lib/team-core.js +1 -0
  247. package/dist/pi/packages/ta-team/lib/team-invites.d.ts +80 -6
  248. package/dist/pi/packages/ta-team/lib/team-invites.js +239 -10
  249. package/dist/pi/packages/ta-team/lib/team-people.js +2 -0
  250. package/dist/pi/packages/ta-team/package.json +13 -5
  251. package/dist/pi/packages/ta-team/web/index.js +1028 -224
  252. package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +3 -0
  253. package/dist/pi/packages/ta-workspace/lib/i18n.js +417 -1
  254. package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
  255. package/dist/pi/packages/ta-workspace/lib/style.js +2 -2
  256. package/dist/pi/packages/ta-workspace/package.json +10 -6
  257. package/dist/pi/packages/ta-workspace/web/index.js +714 -200
  258. package/dist/public/assets/GLTFLoader-C8PT6dAj.js +1 -0
  259. package/dist/public/assets/SkeletonUtils-BBAzQdty.js +1 -0
  260. package/dist/public/assets/{abnfDiagram-S7VZAUFO-C30pzFN3.js → abnfDiagram-S7VZAUFO-sclOP11q.js} +1 -1
  261. package/dist/public/assets/{architecture-WOLXFQ4H-wfYFQl2u.js → architecture-WOLXFQ4H-Bitg4Dpy.js} +1 -1
  262. package/dist/public/assets/{architectureDiagram-YGSQEFNW-B05zgxyT.js → architectureDiagram-YGSQEFNW-Hc0W5khF.js} +1 -1
  263. package/dist/public/assets/{blockDiagram-APKKGZFW-BhN8Bsu0.js → blockDiagram-APKKGZFW-D2ZWatLV.js} +1 -1
  264. package/dist/public/assets/{browser-DteLjv_-.js → browser-D-etIMuL.js} +1 -1
  265. package/dist/public/assets/{browser-D2CY3Lfb.js → browser-D2BcOPKG.js} +1 -1
  266. package/dist/public/assets/{c4Diagram-KJ2TOQU5-DvdF3qCV.js → c4Diagram-KJ2TOQU5-CWEcyfwV.js} +1 -1
  267. package/dist/public/assets/{chunk-6MUBBAK2-DNavkrnr.js → chunk-6MUBBAK2-CWbrJHxK.js} +1 -1
  268. package/dist/public/assets/{chunk-AXFCVDMN-DplVEqp_.js → chunk-AXFCVDMN-DJQdD4iX.js} +1 -1
  269. package/dist/public/assets/{chunk-BG4553SI-BazOaHvw.js → chunk-BG4553SI-CYiiJcBj.js} +1 -1
  270. package/dist/public/assets/{chunk-DQASFODM-DmoQWa8b.js → chunk-DQASFODM-NrNC1UeX.js} +1 -1
  271. package/dist/public/assets/{chunk-HFQBQIA3-Cj1m9ccz.js → chunk-HFQBQIA3-BIHXOwS2.js} +1 -1
  272. package/dist/public/assets/{chunk-KQLB2F66-_jbilrLX.js → chunk-KQLB2F66-CcU_AFwQ.js} +1 -1
  273. package/dist/public/assets/{chunk-KS47KZWR-CWU16Lut.js → chunk-KS47KZWR-DGfNbbcL.js} +1 -1
  274. package/dist/public/assets/{chunk-LEVMRMFU-wsbxWEZE.js → chunk-LEVMRMFU-B4PSS_Pp.js} +1 -1
  275. package/dist/public/assets/{chunk-M57EVK23-BGvmwwTv.js → chunk-M57EVK23-1555_mm4.js} +1 -1
  276. package/dist/public/assets/{chunk-OY52VR5R-Bp3hJ4kT.js → chunk-OY52VR5R-zbNEbYJ8.js} +1 -1
  277. package/dist/public/assets/{chunk-QB3YPZ4I-C1rQVxsJ.js → chunk-QB3YPZ4I-C-nNDGuN.js} +1 -1
  278. package/dist/public/assets/{chunk-R3KSYZAL-CEy0dKWn.js → chunk-R3KSYZAL-DcXXuhbl.js} +1 -1
  279. package/dist/public/assets/{chunk-STOXU5M4-akqvafwH.js → chunk-STOXU5M4-Bb77QkUj.js} +1 -1
  280. package/dist/public/assets/{chunk-TU62E6Q5-CVXAS4DS.js → chunk-TU62E6Q5-D8IJkNq5.js} +1 -1
  281. package/dist/public/assets/{chunk-X4PVCEUW-DT_bEMvQ.js → chunk-X4PVCEUW-BzejexgB.js} +1 -1
  282. package/dist/public/assets/{chunk-XXDRQBXY-Bgv_n5Qh.js → chunk-XXDRQBXY-D2GPHyll.js} +1 -1
  283. package/dist/public/assets/{classDiagram-v2-L25IHNXF-BtjQChpS.js → classDiagram-v2-L25IHNXF-CUEzxxI8.js} +1 -1
  284. package/dist/public/assets/{client-sUFoEC5s.js → client-C8gi9Fk2.js} +1 -1
  285. package/dist/public/assets/{common-CGQN5htF.js → common-DrZR0tgm.js} +2 -2
  286. package/dist/public/assets/{cose-bilkent-JH36ORCC-DSrOY8Uk.js → cose-bilkent-JH36ORCC-CJdgJyUw.js} +1 -1
  287. package/dist/public/assets/cynefin-EF2NZ3EQ-DBnkPRHn.js +1 -0
  288. package/dist/public/assets/{cynefinDiagram-L36ESFBY-DTy7FNFS.js → cynefinDiagram-L36ESFBY-D0F_9jN8.js} +1 -1
  289. package/dist/public/assets/{d3-selection-ip6rDUzY.js → d3-selection-BoARy1rP.js} +1 -1
  290. package/dist/public/assets/{dagre-SPEB5RXH-CHrks7Jb.js → dagre-SPEB5RXH-CzI5gZOv.js} +1 -1
  291. package/dist/public/assets/{diagram-3B7GL73J-eUJ7STAr.js → diagram-3B7GL73J-BCtNcE7M.js} +1 -1
  292. package/dist/public/assets/{diagram-DNEMPZML-B_fptNkg.js → diagram-DNEMPZML-DV9U4KeH.js} +1 -1
  293. package/dist/public/assets/{diagram-L3MUGCDN-C15owCSG.js → diagram-L3MUGCDN-DHU45Sd4.js} +1 -1
  294. package/dist/public/assets/{diagram-LA4NIPWU-Bfa1qEgY.js → diagram-LA4NIPWU-Ba5oVP56.js} +1 -1
  295. package/dist/public/assets/{diagram-MHCOC4E2-Bwxsih_Q.js → diagram-MHCOC4E2-B1Nk6qet.js} +1 -1
  296. package/dist/public/assets/{diagram-XPFHEONP-DKZ_lwah.js → diagram-XPFHEONP-DFwA3q09.js} +1 -1
  297. package/dist/public/assets/{dist-VHGBaby6.js → dist-Col1xVDT.js} +1 -1
  298. package/dist/public/assets/{ebnfDiagram-UZSYDL2S-CCkttvYi.js → ebnfDiagram-UZSYDL2S-BuBgxBJ2.js} +1 -1
  299. package/dist/public/assets/{editor.api-a2gC0dVD.js → editor.api-BLlyFz5x.js} +1 -1
  300. package/dist/public/assets/{elk-XV6XMXQE-DcikW39e.js → elk-XV6XMXQE-BPEI--zX.js} +1 -1
  301. package/dist/public/assets/{erDiagram-EYBAPDEH-BE3TV5lU.js → erDiagram-EYBAPDEH-Cci0kYUw.js} +1 -1
  302. package/dist/public/assets/{eventmodeling-K75KTNOO-C2s1kutf.js → eventmodeling-K75KTNOO-B0eT5X1_.js} +1 -1
  303. package/dist/public/assets/flowDiagram-MALGAFMO-CmMdmAxj.js +1 -0
  304. package/dist/public/assets/{freemarker2-2e8pZojb.js → freemarker2-CAZGFA3W.js} +1 -1
  305. package/dist/public/assets/{ganttDiagram-23REXITY-rGnJptii.js → ganttDiagram-23REXITY-DEm85e1I.js} +1 -1
  306. package/dist/public/assets/gitGraph-VSP46ZUC-DKo3OVhR.js +1 -0
  307. package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CNnsDjQA.js → gitGraphDiagram-STJD7YCW-DJAZD2LR.js} +1 -1
  308. package/dist/public/assets/{handlebars-CMKN6E37.js → handlebars-Agkl4nGr.js} +1 -1
  309. package/dist/public/assets/{html-0AjXQhkQ.js → html-Cu-CsqZI.js} +1 -1
  310. package/dist/public/assets/{index-TUtoc8CW.js → index-TeLHaE4u.js} +2 -2
  311. package/dist/public/assets/info-OHQRW6UA-tKl26QqM.js +1 -0
  312. package/dist/public/assets/{infoDiagram-KBXO4MBG-DMKs8cuE.js → infoDiagram-KBXO4MBG-4zHsBnIy.js} +1 -1
  313. package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Dg_IbA0G.js → ishikawaDiagram-M35NCXHK-Bg8OYLGr.js} +1 -1
  314. package/dist/public/assets/ja-BHBiml1x.js +12 -0
  315. package/dist/public/assets/{javascript-CqYOqPjw.js → javascript-BdMDRX8l.js} +1 -1
  316. package/dist/public/assets/{journeyDiagram-OPLOXDXO-ohAOfoEY.js → journeyDiagram-OPLOXDXO-B2xtzmpE.js} +1 -1
  317. package/dist/public/assets/{jsonMode-D-gI-S5H.js → jsonMode-Dg92qQvX.js} +1 -1
  318. package/dist/public/assets/{kanban-definition-BZKZHSQY-w-aKZS_U.js → kanban-definition-BZKZHSQY-DQ4N7t_w.js} +1 -1
  319. package/dist/public/assets/{liquid-oBN7c8NZ.js → liquid-BydEnYkh.js} +1 -1
  320. package/dist/public/assets/{mdx-CnwhgGjX.js → mdx-XZXeM7ll.js} +1 -1
  321. package/dist/public/assets/{mermaid-parser.core-CfFkSR0t.js → mermaid-parser.core-H24--uw9.js} +3 -3
  322. package/dist/public/assets/{mermaid.core-apiVCSBY.js → mermaid.core-BmCrSjUU.js} +4 -4
  323. package/dist/public/assets/meshopt_decoder.module-DXTYc6wn.js +1 -0
  324. package/dist/public/assets/{mindmap-definition-I2QAS2VK-E7vqVWB0.js → mindmap-definition-I2QAS2VK-CGQXKItp.js} +1 -1
  325. package/dist/public/assets/module-1mERtQ0Z.js +1 -0
  326. package/dist/public/assets/module-BxIQdJqY.js +2449 -0
  327. package/dist/public/assets/{module-B8jze-Tx.js → module-Cm_mLwAQ.js} +1 -1
  328. package/dist/public/assets/module-DDH-aU6z.js +1 -0
  329. package/dist/public/assets/module-DRofmFJn.js +1 -0
  330. package/dist/public/assets/{module-ZhkaqrNe.js → module-DUYj4E8T.js} +1 -1
  331. package/dist/public/assets/module-MaD4hvv4.js +1 -0
  332. package/dist/public/assets/module-ZDJutm0b.js +1 -0
  333. package/dist/public/assets/module-qoBVcE5h.js +1 -0
  334. package/dist/public/assets/{monaco-C0ByxW3l.js → monaco-DP8M_Ttp.js} +3 -3
  335. package/dist/public/assets/packet-JDAUHWVQ-CnBx3hR7.js +1 -0
  336. package/dist/public/assets/{pegDiagram-FD4XPPHP--RpwCE7x.js → pegDiagram-FD4XPPHP-CXKRGFUs.js} +1 -1
  337. package/dist/public/assets/pie-XZMESJXO-hogxgeR2.js +1 -0
  338. package/dist/public/assets/{pieDiagram-J4AKIIQI-DxSbPaRZ.js → pieDiagram-J4AKIIQI-9XEDP1wR.js} +1 -1
  339. package/dist/public/assets/{python-vNPe_Fao.js → python-C-0PA82u.js} +1 -1
  340. package/dist/public/assets/{quadrantDiagram-XTYBLID2-CR_eeYXi.js → quadrantDiagram-XTYBLID2-C-uxTp-5.js} +1 -1
  341. package/dist/public/assets/radar-ABXABTNO-CdWiN8Cw.js +1 -0
  342. package/dist/public/assets/railroad-I3PHUGI6-DnYOBI5V.js +1 -0
  343. package/dist/public/assets/{railroad-abnf-LNEFI6M7-D6I2HxIC.js → railroad-abnf-LNEFI6M7-CTft_ST0.js} +1 -1
  344. package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-BuhDRGo3.js → railroad-ebnf-DWYD2UWJ-DfRJhL7G.js} +1 -1
  345. package/dist/public/assets/{railroad-peg-JR7BVNR7-n15PB7Sb.js → railroad-peg-JR7BVNR7-DFePx4YD.js} +1 -1
  346. package/dist/public/assets/{railroadDiagram-MRQ6NCDL-Bbe5bNap.js → railroadDiagram-MRQ6NCDL-BmK1KUsT.js} +1 -1
  347. package/dist/public/assets/{razor-CnKbF0Yz.js → razor-DEKNSiT7.js} +1 -1
  348. package/dist/public/assets/{requirementDiagram-Y7LWUY3S-Beuygh9j.js → requirementDiagram-Y7LWUY3S-Ds27pS9Y.js} +1 -1
  349. package/dist/public/assets/{resolver-B7c_-amj.js → resolver-0zC31mg5.js} +1 -1
  350. package/dist/public/assets/{sankeyDiagram-WGJFYUXA-jwWPgnrS.js → sankeyDiagram-WGJFYUXA-e2OTzBma.js} +1 -1
  351. package/dist/public/assets/{sequenceDiagram-5NDRBG5M-CmU-HYQI.js → sequenceDiagram-5NDRBG5M-BcoIpxF6.js} +1 -1
  352. package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-Bo7BEi-m.js → stateDiagram-v2-FJ4FJNEA-CNr67mC9.js} +1 -1
  353. package/dist/public/assets/{swimlanes-UMQ2AFYF-PSKyZN_b.js → swimlanes-UMQ2AFYF-DKPgHCev.js} +1 -1
  354. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-U0uzjboz.js +8 -0
  355. package/dist/public/assets/{timeline-definition-SEUHKTQE-BuRxLScZ.js → timeline-definition-SEUHKTQE-BcCmuE6C.js} +1 -1
  356. package/dist/public/assets/treeView-D4JQ5SDB-4ppY0Rs5.js +1 -0
  357. package/dist/public/assets/treemap-SAJKECNS-CAvLAs7q.js +1 -0
  358. package/dist/public/assets/{typescript-C00ztMLg.js → typescript-B1Uk3m6A.js} +1 -1
  359. package/dist/public/assets/{usecaseDiagram-AFA6YXN4-Dlvyos8r.js → usecaseDiagram-AFA6YXN4-BpCD8dP7.js} +1 -1
  360. package/dist/public/assets/{vennDiagram-NNMJR3RB-CuLZubJH.js → vennDiagram-NNMJR3RB-CQjX5_-8.js} +1 -1
  361. package/dist/public/assets/wardley-7MLQ67FV-D_F3qmRJ.js +1 -0
  362. package/dist/public/assets/{wardleyDiagram-S7YFUSEH-WOGGTs4y.js → wardleyDiagram-S7YFUSEH-D7gYo9fV.js} +1 -1
  363. package/dist/public/assets/{xml-CHBFuf5n.js → xml-DBh_LekU.js} +1 -1
  364. package/dist/public/assets/{xychartDiagram-GGNKY7IX-DwW9eifP.js → xychartDiagram-GGNKY7IX-B_1aOZKU.js} +1 -1
  365. package/dist/public/assets/{yaml-C4qkqzcL.js → yaml-BE55tHva.js} +1 -1
  366. package/dist/public/assets/zh-tw-7q-tizR0.js +12 -0
  367. package/dist/public/index.html +2 -2
  368. package/dist/serve/index.mjs +3115 -1400
  369. package/package.json +39 -39
  370. package/dist/pi/packages/ta-team/lib/join.d.ts +0 -28
  371. package/dist/pi/packages/ta-team/lib/join.js +0 -48
  372. package/dist/pi/packages/ta-team/lib/remote.d.ts +0 -31
  373. package/dist/pi/packages/ta-team/lib/remote.js +0 -128
  374. package/dist/pi/packages/ta-team/lib/seal.d.ts +0 -28
  375. package/dist/pi/packages/ta-team/lib/seal.js +0 -75
  376. package/dist/public/assets/cynefin-EF2NZ3EQ-DYlwwGUb.js +0 -1
  377. package/dist/public/assets/flowDiagram-MALGAFMO-Bufgn1OL.js +0 -1
  378. package/dist/public/assets/gitGraph-VSP46ZUC-D_tzR9z9.js +0 -1
  379. package/dist/public/assets/info-OHQRW6UA-C5Pwv-6e.js +0 -1
  380. package/dist/public/assets/module-Blc8dqbf.js +0 -1
  381. package/dist/public/assets/module-C2jtFD0v.js +0 -2365
  382. package/dist/public/assets/module-C9WFrzAc.js +0 -1
  383. package/dist/public/assets/module-CouMtASh.js +0 -1
  384. package/dist/public/assets/module-EGdAhoOx.js +0 -1
  385. package/dist/public/assets/module-EeaigZHL.js +0 -1
  386. package/dist/public/assets/module-xT4L5yYw.js +0 -1
  387. package/dist/public/assets/packet-JDAUHWVQ-xozI7a9T.js +0 -1
  388. package/dist/public/assets/pie-XZMESJXO-BkHXIzDi.js +0 -1
  389. package/dist/public/assets/radar-ABXABTNO-CaUh9zV3.js +0 -1
  390. package/dist/public/assets/railroad-I3PHUGI6-DckPvlDe.js +0 -1
  391. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-z_0ABNQq.js +0 -8
  392. package/dist/public/assets/treeView-D4JQ5SDB-BN38Jg9j.js +0 -1
  393. package/dist/public/assets/treemap-SAJKECNS-CKdz7u7W.js +0 -1
  394. package/dist/public/assets/wardley-7MLQ67FV-B0cvM1zV.js +0 -1
@@ -1,4 +1,4 @@
1
- var e;(function(e){(function(t){var n=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof this==`object`?this:Function(`return this;`)(),r=i(e);n.Reflect===void 0?n.Reflect=e:r=i(n.Reflect,r),t(r);function i(e,t){return function(n,r){typeof e[n]!=`function`&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}})(function(e){var t=Object.prototype.hasOwnProperty,n=typeof Symbol==`function`,r=n&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:`@@toPrimitive`,i=n&&Symbol.iterator!==void 0?Symbol.iterator:`@@iterator`,a=typeof Object.create==`function`,o={__proto__:[]}instanceof Array,s=!a&&!o,c={create:a?function(){return z(Object.create(null))}:o?function(){return z({__proto__:null})}:function(){return z({})},has:s?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:s?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),u=typeof process==`object`&&{}.REFLECT_METADATA_USE_MAP_POLYFILL===`true`,d=!u&&typeof Map==`function`&&typeof Map.prototype.entries==`function`?Map:ge(),f=!u&&typeof Set==`function`&&typeof Set.prototype.entries==`function`?Set:_e(),p=new(!u&&typeof WeakMap==`function`?WeakMap:R());function m(e,t,n,r){if(w(n)){if(!M(e)||!P(t))throw TypeError();return oe(e,t)}if(!M(e)||!D(t)||!D(r)&&!w(r)&&!T(r))throw TypeError();return T(r)&&(r=void 0),n=j(n),se(e,t,n,r)}e(`decorate`,m);function h(e,t){function n(n,r){if(!D(n)||!w(r)&&!fe(r))throw TypeError();b(e,t,n,r)}return n}e(`metadata`,h);function g(e,t,n,r){if(!D(n))throw TypeError();return w(r)||(r=j(r)),b(e,t,n,r)}e(`defineMetadata`,g);function ee(e,t,n){if(!D(t))throw TypeError();return w(n)||(n=j(n)),ce(e,t,n)}e(`hasMetadata`,ee);function _(e,t,n){if(!D(t))throw TypeError();return w(n)||(n=j(n)),y(e,t,n)}e(`hasOwnMetadata`,_);function te(e,t,n){if(!D(t))throw TypeError();return w(n)||(n=j(n)),le(e,t,n)}e(`getMetadata`,te);function ne(e,t,n){if(!D(t))throw TypeError();return w(n)||(n=j(n)),ue(e,t,n)}e(`getOwnMetadata`,ne);function re(e,t){if(!D(e))throw TypeError();return w(t)||(t=j(t)),x(e,t)}e(`getMetadataKeys`,re);function ie(e,t){if(!D(e))throw TypeError();return w(t)||(t=j(t)),S(e,t)}e(`getOwnMetadataKeys`,ie);function ae(e,t,n){if(!D(t))throw TypeError();w(n)||(n=j(n));var r=v(t,n,!1);if(w(r)||!r.delete(e))return!1;if(r.size>0)return!0;var i=p.get(t);return i.delete(n),i.size>0||p.delete(t),!0}e(`deleteMetadata`,ae);function oe(e,t){for(var n=e.length-1;n>=0;--n){var r=e[n],i=r(t);if(!w(i)&&!T(i)){if(!P(i))throw TypeError();t=i}}return t}function se(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=e[i],o=a(t,n,r);if(!w(o)&&!T(o)){if(!D(o))throw TypeError();r=o}}return r}function v(e,t,n){var r=p.get(e);if(w(r)){if(!n)return;r=new d,p.set(e,r)}var i=r.get(t);if(w(i)){if(!n)return;i=new d,r.set(t,i)}return i}function ce(e,t,n){if(y(e,t,n))return!0;var r=L(t);return!T(r)&&ce(e,r,n)}function y(e,t,n){var r=v(t,n,!1);return!w(r)&&k(r.has(e))}function le(e,t,n){if(y(e,t,n))return ue(e,t,n);var r=L(t);if(!T(r))return le(e,r,n)}function ue(e,t,n){var r=v(t,n,!1);if(!w(r))return r.get(e)}function b(e,t,n,r){v(n,r,!0).set(e,t)}function x(e,t){var n=S(e,t),r=L(e);if(r===null)return n;var i=x(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new f,o=[],s=0,c=n;s<c.length;s++){var l=c[s],u=a.has(l);u||(a.add(l),o.push(l))}for(var d=0,p=i;d<p.length;d++){var l=p[d],u=a.has(l);u||(a.add(l),o.push(l))}return o}function S(e,t){var n=[],r=v(e,t,!1);if(w(r))return n;for(var i=I(r.keys()),a=0;;){var o=me(i);if(!o)return n.length=a,n;var s=pe(o);try{n[a]=s}catch(e){try{he(i)}finally{throw e}}a++}}function C(e){if(e===null)return 1;switch(typeof e){case`undefined`:return 0;case`boolean`:return 2;case`string`:return 3;case`symbol`:return 4;case`number`:return 5;case`object`:return e===null?1:6;default:return 6}}function w(e){return e===void 0}function T(e){return e===null}function E(e){return typeof e==`symbol`}function D(e){return typeof e==`object`?e!==null:typeof e==`function`}function O(e,t){switch(C(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var n=t===3?`string`:t===5?`number`:`default`,i=F(e,r);if(i!==void 0){var a=i.call(e,n);if(D(a))throw TypeError();return a}return de(e,n==="default"?`number`:n)}function de(e,t){if(t===`string`){var n=e.toString;if(N(n)){var r=n.call(e);if(!D(r))return r}var i=e.valueOf;if(N(i)){var r=i.call(e);if(!D(r))return r}}else{var i=e.valueOf;if(N(i)){var r=i.call(e);if(!D(r))return r}var a=e.toString;if(N(a)){var r=a.call(e);if(!D(r))return r}}throw TypeError()}function k(e){return!!e}function A(e){return``+e}function j(e){var t=O(e,3);return E(t)?t:A(t)}function M(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)===`[object Array]`}function N(e){return typeof e==`function`}function P(e){return typeof e==`function`}function fe(e){switch(C(e)){case 3:return!0;case 4:return!0;default:return!1}}function F(e,t){var n=e[t];if(n!=null){if(!N(n))throw TypeError();return n}}function I(e){var t=F(e,i);if(!N(t))throw TypeError();var n=t.call(e);if(!D(n))throw TypeError();return n}function pe(e){return e.value}function me(e){var t=e.next();return!t.done&&t}function he(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if(typeof e!=`function`||e===l||t!==l)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(r==null||r===Object.prototype)return t;var i=r.constructor;return typeof i!=`function`||i===e?t:i}function ge(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype[`@@iterator`]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,a)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype[`@@iterator`]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function a(e,t){return t}function o(e,t){return[e,t]}}function _e(){return function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype[`@@iterator`]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}()}function R(){var e=c.create(),n=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return t!==void 0&&c.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return t===void 0?void 0:c.get(t,this._key)},e.prototype.set=function(e,t){var n=i(e,!0);return n[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return t!==void 0&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do t=`@@WeakMap@@`+s();while(c.has(e,t));return e[t]=!0,t}function i(e,r){if(!t.call(e,n)){if(!r)return;Object.defineProperty(e,n,{value:c.create()})}return e[n]}function a(e,t){for(var n=0;n<t;++n)e[n]=Math.random()*255|0;return e}function o(e){return typeof Uint8Array==`function`?typeof crypto<`u`?crypto.getRandomValues(new Uint8Array(e)):typeof msCrypto<`u`?msCrypto.getRandomValues(new Uint8Array(e)):a(new Uint8Array(e),e):a(Array(e),e)}function s(){var e=o(16);e[6]=e[6]&79|64,e[8]=e[8]&191|128;for(var t=``,n=0;n<16;++n){var r=e[n];(n===4||n===6||n===8)&&(t+=`-`),r<16&&(t+=`0`),t+=r.toString(16).toLowerCase()}return t}}function z(e){return e.__=void 0,delete e.__,e}})})(e||={});var t;(function(e){async function t(e,n){if(e instanceof Array)return Promise.all(e.map(e=>t(e,n)));let r=await e;return{priority:await n(r),value:r}}e.toPrioritizeable=t;function n(e,t=e=>e.priority){return e.map(e=>({value:e,priority:t(e)}))}e.toPrioritizeableSync=n;function r(e,t){return n(e,t).filter(a).sort(o)}e.prioritizeAllSync=r;async function i(e,n){return(await t(e,n)).filter(a).sort(o)}e.prioritizeAll=i;function a(e){return e.priority>0}e.isValid=a;function o(e,t){return t.priority-e.priority}e.compare=o})(t||={});var n=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}static{Object.defineProperty(this,"name",{value:`Deferred`,configurable:!0})}};function r(e){let t=[],n=e;for(;Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n),t.push(n);return t}var i;(function(e){let t={dispose(){}};e.None=Object.assign(function(){return t},{get maxListeners(){return 0},set maxListeners(e){}});function n(e,t){return Object.assign((n,r,i)=>e(e=>n.call(r,t(e)),void 0,i),{maxListeners:0})}e.map=n})(i||={});var a=class{get length(){return this._callbacks&&this._callbacks.length||0}add(e,t=void 0,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=void 0){if(!this._callbacks)return;let n=!1;for(let r=0;r<this._callbacks.length;r++)if(this._callbacks[r]===e){if(this._contexts[r]===t){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}n=!0}if(n)throw Error(`When adding a listener with a context, you should remove it with the same context`)}*[Symbol.iterator](){if(!this._callbacks)return;let e=this._callbacks.slice(0),t=this._contexts.slice(0);for(let n=0;n<e.length;n++){let r=e[n],i=t[n];yield(...e)=>r.apply(i,e)}}invoke(...e){if(!this._callbacks)return[];let t=this._callbacks.slice(0),n=this._contexts.slice(0),r=[];for(let i=0;i<t.length;i++)try{r.push(t[i].apply(n[i],e))}catch(e){console.error(e)}return r}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}static{Object.defineProperty(this,"name",{value:`CallbackList`,configurable:!0})}},o=class e{constructor(e){this._options=e,this._disposed=!1,this._leakWarnCountdown=0}get event(){return this._event||=Object.assign((t,n,r)=>{this._callbacks||=new a,this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let i=this.checkMaxListeners(this._event.maxListeners),o={dispose:()=>{i&&i(),o.dispose=e._noop,this._disposed||(this._callbacks.remove(t,n),o.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(o),o},{maxListeners:e.LEAK_WARNING_THRESHHOLD}),this._event}checkMaxListeners(e){if(e===0||!this._callbacks)return;let t=this._callbacks.length;if(t<=e)return;let n=this.pushLeakingStack();if(--this._leakWarnCountdown,this._leakWarnCountdown<=0){this._leakWarnCountdown=e*.5;let n,r=0;this._leakingStacks.forEach((e,t)=>{(!n||r<e)&&(n=t,r=e)}),console.warn(`Possible Emitter memory leak detected. ${t} listeners added. Use event.maxListeners to increase the limit (${e}). MOST frequent listener (${r}):`),console.warn(n)}return n}pushLeakingStack(){this._leakingStacks||=new Map;let e=Error().stack.split(`
1
+ var e;(function(e){(function(t){var n=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof this==`object`?this:Function(`return this;`)(),r=i(e);n.Reflect===void 0?n.Reflect=e:r=i(n.Reflect,r),t(r);function i(e,t){return function(n,r){typeof e[n]!=`function`&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}})(function(e){var t=Object.prototype.hasOwnProperty,n=typeof Symbol==`function`,r=n&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:`@@toPrimitive`,i=n&&Symbol.iterator!==void 0?Symbol.iterator:`@@iterator`,a=typeof Object.create==`function`,o={__proto__:[]}instanceof Array,s=!a&&!o,c={create:a?function(){return z(Object.create(null))}:o?function(){return z({__proto__:null})}:function(){return z({})},has:s?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:s?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),u=typeof process==`object`&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL===`true`,d=!u&&typeof Map==`function`&&typeof Map.prototype.entries==`function`?Map:ge(),f=!u&&typeof Set==`function`&&typeof Set.prototype.entries==`function`?Set:_e(),p=new(!u&&typeof WeakMap==`function`?WeakMap:R());function m(e,t,n,r){if(w(n)){if(!M(e)||!P(t))throw TypeError();return oe(e,t)}if(!M(e)||!D(t)||!D(r)&&!w(r)&&!T(r))throw TypeError();return T(r)&&(r=void 0),n=j(n),se(e,t,n,r)}e(`decorate`,m);function h(e,t){function n(n,r){if(!D(n)||!w(r)&&!fe(r))throw TypeError();b(e,t,n,r)}return n}e(`metadata`,h);function g(e,t,n,r){if(!D(n))throw TypeError();return w(r)||(r=j(r)),b(e,t,n,r)}e(`defineMetadata`,g);function ee(e,t,n){if(!D(t))throw TypeError();return w(n)||(n=j(n)),ce(e,t,n)}e(`hasMetadata`,ee);function _(e,t,n){if(!D(t))throw TypeError();return w(n)||(n=j(n)),y(e,t,n)}e(`hasOwnMetadata`,_);function te(e,t,n){if(!D(t))throw TypeError();return w(n)||(n=j(n)),le(e,t,n)}e(`getMetadata`,te);function ne(e,t,n){if(!D(t))throw TypeError();return w(n)||(n=j(n)),ue(e,t,n)}e(`getOwnMetadata`,ne);function re(e,t){if(!D(e))throw TypeError();return w(t)||(t=j(t)),x(e,t)}e(`getMetadataKeys`,re);function ie(e,t){if(!D(e))throw TypeError();return w(t)||(t=j(t)),S(e,t)}e(`getOwnMetadataKeys`,ie);function ae(e,t,n){if(!D(t))throw TypeError();w(n)||(n=j(n));var r=v(t,n,!1);if(w(r)||!r.delete(e))return!1;if(r.size>0)return!0;var i=p.get(t);return i.delete(n),i.size>0||p.delete(t),!0}e(`deleteMetadata`,ae);function oe(e,t){for(var n=e.length-1;n>=0;--n){var r=e[n],i=r(t);if(!w(i)&&!T(i)){if(!P(i))throw TypeError();t=i}}return t}function se(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=e[i],o=a(t,n,r);if(!w(o)&&!T(o)){if(!D(o))throw TypeError();r=o}}return r}function v(e,t,n){var r=p.get(e);if(w(r)){if(!n)return;r=new d,p.set(e,r)}var i=r.get(t);if(w(i)){if(!n)return;i=new d,r.set(t,i)}return i}function ce(e,t,n){if(y(e,t,n))return!0;var r=L(t);return!T(r)&&ce(e,r,n)}function y(e,t,n){var r=v(t,n,!1);return!w(r)&&k(r.has(e))}function le(e,t,n){if(y(e,t,n))return ue(e,t,n);var r=L(t);if(!T(r))return le(e,r,n)}function ue(e,t,n){var r=v(t,n,!1);if(!w(r))return r.get(e)}function b(e,t,n,r){v(n,r,!0).set(e,t)}function x(e,t){var n=S(e,t),r=L(e);if(r===null)return n;var i=x(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new f,o=[],s=0,c=n;s<c.length;s++){var l=c[s],u=a.has(l);u||(a.add(l),o.push(l))}for(var d=0,p=i;d<p.length;d++){var l=p[d],u=a.has(l);u||(a.add(l),o.push(l))}return o}function S(e,t){var n=[],r=v(e,t,!1);if(w(r))return n;for(var i=I(r.keys()),a=0;;){var o=me(i);if(!o)return n.length=a,n;var s=pe(o);try{n[a]=s}catch(e){try{he(i)}finally{throw e}}a++}}function C(e){if(e===null)return 1;switch(typeof e){case`undefined`:return 0;case`boolean`:return 2;case`string`:return 3;case`symbol`:return 4;case`number`:return 5;case`object`:return e===null?1:6;default:return 6}}function w(e){return e===void 0}function T(e){return e===null}function E(e){return typeof e==`symbol`}function D(e){return typeof e==`object`?e!==null:typeof e==`function`}function O(e,t){switch(C(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var n=t===3?`string`:t===5?`number`:`default`,i=F(e,r);if(i!==void 0){var a=i.call(e,n);if(D(a))throw TypeError();return a}return de(e,n==="default"?`number`:n)}function de(e,t){if(t===`string`){var n=e.toString;if(N(n)){var r=n.call(e);if(!D(r))return r}var i=e.valueOf;if(N(i)){var r=i.call(e);if(!D(r))return r}}else{var i=e.valueOf;if(N(i)){var r=i.call(e);if(!D(r))return r}var a=e.toString;if(N(a)){var r=a.call(e);if(!D(r))return r}}throw TypeError()}function k(e){return!!e}function A(e){return``+e}function j(e){var t=O(e,3);return E(t)?t:A(t)}function M(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)===`[object Array]`}function N(e){return typeof e==`function`}function P(e){return typeof e==`function`}function fe(e){switch(C(e)){case 3:return!0;case 4:return!0;default:return!1}}function F(e,t){var n=e[t];if(n!=null){if(!N(n))throw TypeError();return n}}function I(e){var t=F(e,i);if(!N(t))throw TypeError();var n=t.call(e);if(!D(n))throw TypeError();return n}function pe(e){return e.value}function me(e){var t=e.next();return!t.done&&t}function he(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if(typeof e!=`function`||e===l||t!==l)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(r==null||r===Object.prototype)return t;var i=r.constructor;return typeof i!=`function`||i===e?t:i}function ge(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype[`@@iterator`]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,a)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype[`@@iterator`]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function a(e,t){return t}function o(e,t){return[e,t]}}function _e(){return function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype[`@@iterator`]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}()}function R(){var e=c.create(),n=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return t!==void 0&&c.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return t===void 0?void 0:c.get(t,this._key)},e.prototype.set=function(e,t){var n=i(e,!0);return n[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return t!==void 0&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do t=`@@WeakMap@@`+s();while(c.has(e,t));return e[t]=!0,t}function i(e,r){if(!t.call(e,n)){if(!r)return;Object.defineProperty(e,n,{value:c.create()})}return e[n]}function a(e,t){for(var n=0;n<t;++n)e[n]=Math.random()*255|0;return e}function o(e){return typeof Uint8Array==`function`?typeof crypto<`u`?crypto.getRandomValues(new Uint8Array(e)):typeof msCrypto<`u`?msCrypto.getRandomValues(new Uint8Array(e)):a(new Uint8Array(e),e):a(Array(e),e)}function s(){var e=o(16);e[6]=e[6]&79|64,e[8]=e[8]&191|128;for(var t=``,n=0;n<16;++n){var r=e[n];(n===4||n===6||n===8)&&(t+=`-`),r<16&&(t+=`0`),t+=r.toString(16).toLowerCase()}return t}}function z(e){return e.__=void 0,delete e.__,e}})})(e||={});var t;(function(e){async function t(e,n){if(e instanceof Array)return Promise.all(e.map(e=>t(e,n)));let r=await e;return{priority:await n(r),value:r}}e.toPrioritizeable=t;function n(e,t=e=>e.priority){return e.map(e=>({value:e,priority:t(e)}))}e.toPrioritizeableSync=n;function r(e,t){return n(e,t).filter(a).sort(o)}e.prioritizeAllSync=r;async function i(e,n){return(await t(e,n)).filter(a).sort(o)}e.prioritizeAll=i;function a(e){return e.priority>0}e.isValid=a;function o(e,t){return t.priority-e.priority}e.compare=o})(t||={});var n=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}static{Object.defineProperty(this,"name",{value:`Deferred`,configurable:!0})}};function r(e){let t=[],n=e;for(;Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n),t.push(n);return t}var i;(function(e){let t={dispose(){}};e.None=Object.assign(function(){return t},{get maxListeners(){return 0},set maxListeners(e){}});function n(e,t){return Object.assign((n,r,i)=>e(e=>n.call(r,t(e)),void 0,i),{maxListeners:0})}e.map=n})(i||={});var a=class{get length(){return this._callbacks&&this._callbacks.length||0}add(e,t=void 0,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=void 0){if(!this._callbacks)return;let n=!1;for(let r=0;r<this._callbacks.length;r++)if(this._callbacks[r]===e){if(this._contexts[r]===t){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}n=!0}if(n)throw Error(`When adding a listener with a context, you should remove it with the same context`)}*[Symbol.iterator](){if(!this._callbacks)return;let e=this._callbacks.slice(0),t=this._contexts.slice(0);for(let n=0;n<e.length;n++){let r=e[n],i=t[n];yield(...e)=>r.apply(i,e)}}invoke(...e){if(!this._callbacks)return[];let t=this._callbacks.slice(0),n=this._contexts.slice(0),r=[];for(let i=0;i<t.length;i++)try{r.push(t[i].apply(n[i],e))}catch(e){console.error(e)}return r}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}static{Object.defineProperty(this,"name",{value:`CallbackList`,configurable:!0})}},o=class e{constructor(e){this._options=e,this._disposed=!1,this._leakWarnCountdown=0}get event(){return this._event||=Object.assign((t,n,r)=>{this._callbacks||=new a,this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let i=this.checkMaxListeners(this._event.maxListeners),o={dispose:()=>{i&&i(),o.dispose=e._noop,this._disposed||(this._callbacks.remove(t,n),o.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(o),o},{maxListeners:e.LEAK_WARNING_THRESHHOLD}),this._event}checkMaxListeners(e){if(e===0||!this._callbacks)return;let t=this._callbacks.length;if(t<=e)return;let n=this.pushLeakingStack();if(--this._leakWarnCountdown,this._leakWarnCountdown<=0){this._leakWarnCountdown=e*.5;let n,r=0;this._leakingStacks.forEach((e,t)=>{(!n||r<e)&&(n=t,r=e)}),console.warn(`Possible Emitter memory leak detected. ${t} listeners added. Use event.maxListeners to increase the limit (${e}). MOST frequent listener (${r}):`),console.warn(n)}return n}pushLeakingStack(){this._leakingStacks||=new Map;let e=Error().stack.split(`
2
2
  `).slice(3).join(`
3
- `),t=this._leakingStacks.get(e)||0;return this._leakingStacks.set(e,t+1),()=>this.popLeakingStack(e)}popLeakingStack(e){if(!this._leakingStacks)return;let t=this._leakingStacks.get(e)||0;this._leakingStacks.set(e,t-1)}get hasListeners(){return!!this._callbacks&&!this._callbacks.isEmpty()}fire(e){this._callbacks&&this._callbacks.invoke(e)}async sequence(e){if(this._callbacks){for(let t of this._callbacks)if(!await e(t))break}}dispose(){this._leakingStacks&&=(this._leakingStacks.clear(),void 0),this._callbacks&&=(this._callbacks.dispose(),void 0),this._disposed=!0}static{Object.defineProperty(this,"name",{value:`Emitter`,configurable:!0})}};o.LEAK_WARNING_THRESHHOLD=175,o._noop=function(){};var s;(function(e){async function t(e,t,n=void 0){let r=[],i=Object.assign(t,{waitUntil:e=>{if(Object.isFrozen(r))throw Error(`waitUntil cannot be called asynchronously.`);r.push(e)}});try{e.fire(i),Object.freeze(r)}finally{delete i.waitUntil}r.length&&(n===void 0?await Promise.all(r):await Promise.race([Promise.all(r),new Promise(e=>setTimeout(e,n))]))}e.fire=t})(s||={});var c;(function(e){function t(e){return!!e&&typeof e==`object`&&`dispose`in e&&typeof e.dispose==`function`}e.is=t;function n(e){return{dispose:e}}e.create=n,e.NULL=n(()=>{})})(c||={}),class{constructor(...e){this.disposables=[],this.onDisposeEmitter=new o,this.disposingElements=!1,e.forEach(e=>this.push(e))}get onDispose(){return this.onDisposeEmitter.event}checkDisposed(){this.disposed&&!this.disposingElements&&(this.onDisposeEmitter.fire(void 0),this.onDisposeEmitter.dispose())}get disposed(){return this.disposables.length===0}dispose(){if(!(this.disposed||this.disposingElements)){for(this.disposingElements=!0;!this.disposed;)try{this.disposables.pop().dispose()}catch(e){console.error(e)}this.disposingElements=!1,this.checkDisposed()}}push(e){let t=this.disposables;t.push(e);let n=e.dispose.bind(e),r=c.create(()=>{let n=t.indexOf(e);n!==-1&&t.splice(n,1),this.checkDisposed()});return e.dispose=()=>{r.dispose(),e.dispose=n,n()},r}pushAll(e){return e.map(e=>this.push(e))}static{Object.defineProperty(this,"name",{value:`DisposableCollection`,configurable:!0})}};function l(e,t){return typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.indexOf(e)>=0?!0:typeof process<`u`&&process.platform===t}var u=l(`Windows`,`win32`),d=l(`Mac`,`darwin`),f;(function(e){let t;(function(e){e.Windows=`Windows`,e.Linux=`Linux`,e.OSX=`OSX`})(t=e.Type||={});function n(){return u?t.Windows:d?t.OSX:t.Linux}e.type=n})(f||={});var p=Symbol.for(`@celljs/core/proxy-target`);function m(e){return e?.[p]??e}var h;(function(e){function t(e,t=`id`){let n={};return typeof e==`object`&&!Array.isArray(e)?n=e:e&&(n={[t]:e}),n}e.getValueOrOption=t;function n(e,t,n){return n===void 0?Reflect.getMetadata(`design:type`,e,t):Reflect.getMetadata(`design:paramtypes`,e,t)?.[n]}e.getType=n})(h||={});var g=class extends Error{constructor(){super(`Canceled`),this.name=this.message}static{Object.defineProperty(this,"name",{value:`CancellationError`,configurable:!0})}},ee=Object.freeze(Object.assign(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}},{maxListeners:0})),_;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:ee})})(_||={});var te=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&=(this._emitter.fire(void 0),void 0))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?ee:(this._emitter||=new o,this._emitter.event)}static{Object.defineProperty(this,"name",{value:`MutableToken`,configurable:!0})}};(class{get token(){return this._token||=new te,this._token}cancel(){this._token?this._token!==_.Cancelled&&this._token.cancel():this._token=_.Cancelled}dispose(){this.cancel()}static{Object.defineProperty(this,"name",{value:`CancellationTokenSource`,configurable:!0})}});function ne(){if(typeof globalThis<`u`||typeof globalThis<`u`)return globalThis;if(typeof window<`u`)return window;if(typeof self<`u`)return self}var re=ne(),ie=class{constructor(){this.activePromise=void 0,this.queuedPromise=void 0,this.queuedPromiseFactory=void 0}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){let e=()=>{this.queuedPromise=void 0;let e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=void 0,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=void 0,e(t)},e=>{this.activePromise=void 0,t(e)})})}static{Object.defineProperty(this,"name",{value:`Throttler`,configurable:!0})}};(class{constructor(){this.current=Promise.resolve(void 0)}queue(e){return this.current=this.current.then(()=>e(),()=>e())}static{Object.defineProperty(this,"name",{value:`Sequencer`,configurable:!0})}}),class{constructor(){this.promiseMap=new Map}queue(e,t){let n=(this.promiseMap.get(e)??Promise.resolve()).catch(()=>{}).then(t).finally(()=>{this.promiseMap.get(e)===n&&this.promiseMap.delete(e)});return this.promiseMap.set(e,n),n}static{Object.defineProperty(this,"name",{value:`SequencerByKey`,configurable:!0})}};var ae=(e,t)=>{let n=!0,r=setTimeout(()=>{n=!1,t()},e);return{isTriggered:()=>n,dispose:()=>{clearTimeout(r),n=!1}}},oe=e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}},se=Symbol(`MicrotaskDelay`),v=class{constructor(e){this.defaultDelay=e,this.deferred=void 0,this.completionPromise=void 0,this.doResolve=void 0,this.doReject=void 0,this.task=void 0}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{if(this.completionPromise=void 0,this.doResolve=void 0,this.task){let e=this.task;return this.task=void 0,e()}});let n=()=>{var e;this.deferred=void 0,(e=this.doResolve)==null||e.call(this,void 0)};return this.deferred=t===se?oe(n):ae(t,n),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&=(this.doReject&&this.doReject(new g),void 0)}cancelTimeout(){var e;(e=this.deferred)==null||e.dispose(),this.deferred=void 0}dispose(){this.cancel()}static{Object.defineProperty(this,"name",{value:`Delayer`,configurable:!0})}};(class{constructor(e){this.delayer=new v(e),this.throttler=new ie}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}static{Object.defineProperty(this,"name",{value:`ThrottledDelayer`,configurable:!0})}});var ce=class{constructor(){this._isOpen=!1,this._promise=new Promise((e,t)=>{this._completePromise=e})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}static{Object.defineProperty(this,"name",{value:`Barrier`,configurable:!0})}};(class extends ce{constructor(e){super(),this._timeout=setTimeout(()=>this.open(),e)}open(){clearTimeout(this._timeout),super.open()}static{Object.defineProperty(this,"name",{value:`AutoOpenBarrier`,configurable:!0})}});var y=class{constructor(e){this._size=0,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onDrained=new o}get onDrained(){return this._onDrained.event}get size(){return this._size}queue(e){return this._size++,new Promise((t,n)=>{this.outstandingPromises.push({factory:e,c:t,e:n}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){let e=this.outstandingPromises.shift();this.runningPromises++;let t=e.factory();t.then(e.c,e.e),t.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onDrained.fire()}dispose(){this._onDrained.dispose()}static{Object.defineProperty(this,"name",{value:`Limiter`,configurable:!0})}};(class extends y{constructor(){super(1)}static{Object.defineProperty(this,"name",{value:`Queue`,configurable:!0})}}),class{constructor(e,t){this._token=-1,typeof e==`function`&&typeof t==`number`&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}static{Object.defineProperty(this,"name",{value:`TimeoutTimer`,configurable:!0})}},class{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}static{Object.defineProperty(this,"name",{value:`IntervalTimer`,configurable:!0})}};var le=class{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=void 0}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}static{Object.defineProperty(this,"name",{value:`RunOnceScheduler`,configurable:!0})}};(class{constructor(e,t){t%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${t}ms is not a multiple of 1000ms.`),this.runner=e,this.timeout=t,this.counter=0,this.intervalToken=-1,this.intervalHandler=this.onInterval.bind(this)}dispose(){this.cancel(),this.runner=void 0}cancel(){this.isScheduled()&&(clearInterval(this.intervalToken),this.intervalToken=-1)}schedule(e=this.timeout){e%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${e}ms is not a multiple of 1000ms.`),this.cancel(),this.counter=Math.ceil(e/1e3),this.intervalToken=setInterval(this.intervalHandler,1e3)}isScheduled(){return this.intervalToken!==-1}onInterval(){this.counter--,this.counter>0||(clearInterval(this.intervalToken),this.intervalToken=-1,this.runner&&this.runner())}static{Object.defineProperty(this,"name",{value:`ProcessTimeRunOnceScheduler`,configurable:!0})}}),class extends le{constructor(e,t){super(e,t),this.units=[]}work(e){this.units.push(e),this.isScheduled()||this.schedule()}doRun(){let e=this.units;this.units=[],this.runner&&this.runner(e)}dispose(){this.units=[],super.dispose()}static{Object.defineProperty(this,"name",{value:`RunOnceWorker`,configurable:!0})}},class{hasPending(e){return this._pending?typeof e==`number`?this._pending.taskId===e:!!this._pending:!1}get pending(){return this._pending?this._pending.promise:void 0}cancelPending(){var e;(e=this._pending)==null||e.cancel()}setPending(e,t,n){return this._pending={taskId:e,cancel:()=>n?.(),promise:t},t.then(()=>this.donePending(e),()=>this.donePending(e)),t}donePending(e){this._pending&&e===this._pending.taskId&&(this._pending=void 0,this.triggerNext())}triggerNext(){if(this._next){let e=this._next;this._next=void 0,e.run().then(e.promiseResolve,e.promiseReject)}}setNext(e){if(this._next)this._next.run=e;else{let t,n,r=new Promise((e,r)=>{t=e,n=r});this._next={run:e,promise:r,promiseResolve:t,promiseReject:n}}return this._next.promise}static{Object.defineProperty(this,"name",{value:`TaskSequentializer`,configurable:!0})}},class{constructor(e,t=()=>Date.now()){this.interval=e,this.nowFn=t,this.lastIncrementTime=0,this.value=0}increment(){let e=this.nowFn();return e-this.lastIncrementTime>this.interval&&(this.lastIncrementTime=e,this.value=0),this.value++,this.value}static{Object.defineProperty(this,"name",{value:`IntervalCounter`,configurable:!0})}},class{get isRejected(){return this.rejected}get isResolved(){return this.resolved}get isSettled(){return this.rejected||this.resolved}constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return new Promise(t=>{this.completeCallback(e),this.resolved=!0,t()})}error(e){return new Promise(t=>{this.errorCallback(e),this.rejected=!0,t()})}cancel(){new Promise(e=>{this.errorCallback(new g),this.rejected=!0,e()})}static{Object.defineProperty(this,"name",{value:`DeferredPromise`,configurable:!0})}};var ue;(function(e){async function t(e){let t,n=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||=e})));if(t!==void 0)throw t;return n}e.settled=t;function n(e){return new Promise(async(t,n)=>{try{await e(t,n)}catch(e){n(e)}})}e.withAsyncBody=n})(ue||={});var b;(function(e){function t(...e){let t=[];if(e.length===0)return``;if(typeof e[0]!=`string`)throw TypeError(`Url must be a string. Received `+e[0]);e[0].match(/^[^/:]+:\/*$/)&&e.length>1&&(e[0]=e.shift()+e[0]),e[0]=e[0].match(/^file:\/\/\//)?e[0].replace(/^([^/:]+):\/*/,`$1:///`):e[0].replace(/^([^/:]+):\/*/,`$1://`);for(let n=0;n<e.length;n++){let r=e[n];if(typeof r!=`string`)throw TypeError(`Url must be a string. Received `+r);r!==``&&(n>0&&(r=r.replace(/^[\/]+/,``)),r=n<e.length-1?r.replace(/[\/]+$/,``):r.replace(/[\/]+$/,`/`),t.push(r))}let n=t.join(`/`);n=n.replace(/\/(\?|&|#[^!])/g,`$1`);let r=n.split(`?`);return n=r.shift()+(r.length>0?`?`:``)+r.join(`&`),n}e.join=t})(b||={}),(function(){if(typeof crypto==`object`&&typeof crypto.randomUUID==`function`)return crypto.randomUUID.bind(crypto);let e;e=typeof crypto==`object`&&typeof crypto.getRandomValues==`function`?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(Math.random()*256);return e};let t=new Uint8Array(16),n=[];for(let e=0;e<256;e++)n.push(e.toString(16).padStart(2,`0`));return function(){e(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=0,i=``;return i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i}})();var x=class extends Error{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0}),k.fixProto(this,new.target.prototype),k.fixStack(this)}static{Object.defineProperty(this,"name",{value:`CustomError`,configurable:!0})}},S=class extends x{static{Object.defineProperty(this,"name",{value:`IllegalStateError`,configurable:!0})}},C=class{static state(e,t){if(!e)throw new S(this.resolveMessage(t))}static isTrue(e,t){if(!e)throw new S(this.resolveMessage(t))}static isNull(e,t){if(e!==void 0||e!==null)throw new S(this.resolveMessage(t))}static notNull(e,t){if(e==null)throw new S(this.resolveMessage(t))}static hasLength(e,t){if(!e||e.length===0)throw new S(this.resolveMessage(t))}static hasText(e,t){if(!e||e.trim().length===0)throw new S(this.resolveMessage(t))}static doesNotContain(e,t,n){if(e&&t&&e.includes(t))throw new S(this.resolveMessage(n))}static notEmpty(e,t){if(!e||e.length===0)throw new S(this.resolveMessage(t))}static noNullElements(e,t){if(e){for(let n of e)if(n==null)throw new S(this.resolveMessage(t))}}static notEmptyCollection(e,t){if(!e||e.length===0)throw new S(this.resolveMessage(t))}static noNullElementsCollection(e,t){if(e){for(let n of e)if(n==null)throw new S(this.resolveMessage(t))}}static notEmptyMap(e,t){if(!e||e.size===0)throw new S(this.resolveMessage(t))}static isInstanceOf(e,t,n){this.notNull(e,`Type to check against must not be null`),t instanceof e||this.instanceCheckFailed(e,t,this.resolveMessage(n))}static isAssignable(e,t,n){this.notNull(e,`Supertype to check against must not be null`),t!==void 0&&r(t).includes(e)||this.assignableCheckFailed(e,t,this.resolveMessage(n))}static instanceCheckFailed(e,t,n){let r=t===void 0?`undefined`:t.constructor.name,i=``,a=!0;throw n&&n.length>0&&(this.endsWithSeparator(n)?i=n+` `:(i=this.messageWithTypeName(n,r),a=!1)),a&&(i+=`Object of class [${r}] must be an instance of ${e}`),new S(i)}static assignableCheckFailed(e,t,n){let r=``,i=!0;throw n&&n.length>0&&(this.endsWithSeparator(n)?r=n+` `:(r=this.messageWithTypeName(n,t),i=!1)),i&&(r+=`${t} is not assignable to ${e}`),new S(r)}static endsWithSeparator(e){return e.endsWith(`:`)||e.endsWith(`;`)||e.endsWith(`,`)||e.endsWith(`.`)}static messageWithTypeName(e,t){return e+(e.endsWith(` `)?``:`: `)+(`name`in t)?t.name:t}static resolveMessage(e){return typeof e==`function`?e():e}static{Object.defineProperty(this,"name",{value:`Assert`,configurable:!0})}},w,T=class{constructor(e,t=w.WILDCARD_TYPE,n){if(C.hasLength(e,`"type" must not be empty`),C.hasLength(t,`"subtype" must not be empty`),this.checkToken(e),this.checkToken(t),this.type=e.toLowerCase(),this.subtype=t.toLowerCase(),n){let e=new Map;for(let[t,r]of n.entries())this.checkParameters(t,r),e.set(t.toLowerCase(),r);this.parameters=e}else this.parameters=new Map}checkToken(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(!w.TOKEN.has(n))throw Error(`Invalid token character "${String.fromCharCode(n)}" in token "${e}"`)}}checkParameters(e,t){C.hasLength(e,`"parameter" must not be empty`),C.hasLength(t,`"value" must not be empty`),this.checkToken(e),w.PARAM_CHARSET===e?this.charset||=this.unquote(t):this.isQuotedString(t)||this.checkToken(t)}isQuotedString(e){return e.length<2?!1:e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`)}unquote(e){return this.isQuotedString(e)?e.substring(1,e.length-1):e}isWildcardType(){return w.WILDCARD_TYPE===this.getType()}isWildcardSubtype(){let e=this.getSubtype();return w.WILDCARD_TYPE===e||e.startsWith(`*+`)}isConcrete(){return!this.isWildcardType()&&!this.isWildcardSubtype()}getType(){return this.type}getSubtype(){return this.subtype}getSubtypeSuffix(){let e=this.subtype.lastIndexOf(`+`);if(e!==-1&&this.subtype.length>e)return this.subtype.substring(e+1)}getCharset(){return this.charset}getParameter(e){return this.parameters.get(e)}getParameters(){return this.parameters}includes(e){if(e===void 0)return!1;if(this.isWildcardType())return!0;if(this.getType()===e.getType()){if(this.getSubtype()===e.getSubtype())return!0;if(this.isWildcardSubtype()){let t=this.getSubtype().lastIndexOf(`+`);if(t===-1)return!0;{let n=e.getSubtype().lastIndexOf(`+`);if(n!==-1){let r=this.getSubtype().substring(0,t);if(this.getSubtype().substring(t+1)===e.getSubtype().substring(n+1)&&w.WILDCARD_TYPE===r)return!0}}}}return!1}isCompatibleWith(e){if(e===void 0)return!1;if(this.isWildcardType()||e.isWildcardType())return!0;if(this.getType()===e.getType()){if(this.getSubtype()===e.getSubtype())return!0;if(this.isWildcardSubtype()||e.isWildcardSubtype()){let t=this.getSubtypeSuffix(),n=e.getSubtypeSuffix();if(this.getSubtype()===w.WILDCARD_TYPE||e.getSubtype()===w.WILDCARD_TYPE)return!0;if(this.isWildcardSubtype()&&t!==void 0)return t===e.getSubtype()||t===n;if(e.isWildcardSubtype()&&n!==void 0)return this.getSubtype()===n||n===t}}return!1}equalsTypeAndSubtype(e){return e!==void 0&&this.type.toLowerCase()===e.type.toLowerCase()&&this.subtype.toLowerCase()===e.subtype.toLowerCase()}isPresentIn(e){for(let t of e)if(t.equalsTypeAndSubtype(this))return!0;return!1}equals(e){return this===e||e instanceof w&&this.type.toLowerCase()===e.type.toLowerCase()&&this.subtype.toLowerCase()===e.subtype.toLowerCase()&&this.parametersAreEqual(e)}parametersAreEqual(e){if(this.parameters.size!==e.parameters.size)return!1;for(let[t,n]of this.parameters){if(!e.parameters.has(t))return!1;if(w.PARAM_CHARSET===t){if(this.getCharset()!==e.getCharset())return!1}else if(n!==e.parameters.get(t))return!1}return!0}isMoreSpecific(e){C.notNull(e,`Other must not be null`);let t=this.isWildcardType(),n=e.isWildcardType();if(t&&!n)return!1;if(!t&&n)return!0;{let t=this.isWildcardSubtype(),n=e.isWildcardSubtype();return t&&!n?!1:!t&&n?!0:this.getType()===e.getType()&&this.getSubtype()===e.getSubtype()&&this.getParameters().size>e.getParameters().size}}isLessSpecific(e){return C.notNull(e,`Other must not be null`),e.isMoreSpecific(this)}static valueOf(e){return O.parseMimeType(e)}toString(){let e=this.toStringValue;return e||(e=this.buildString(),this.toStringValue=e),e??``}buildString(){let e=``;return e+=this.type,e+=`/`,e+=this.subtype,e+=this.buildParameters(this.parameters),e}buildParameters(e){let t=``;return e.forEach((e,n)=>{t+=`;`,t+=n,t+=`=`,t+=e}),t}static{Object.defineProperty(this,"name",{value:`MimeType`,configurable:!0})}};w=T,T.WILDCARD_TYPE=`*`,T.PARAM_CHARSET=`charset`,T.TOKEN=new Set,(()=>{let e=new Set;for(let t=0;t<=31;t++)e.add(t);e.add(127);let t=new Set;t.add(40),t.add(41),t.add(60),t.add(62),t.add(64),t.add(44),t.add(59),t.add(58),t.add(92),t.add(34),t.add(47),t.add(91),t.add(93),t.add(63),t.add(61),t.add(123),t.add(125),t.add(32),t.add(9);for(let n=0;n<128;n++)!e.has(n)&&!t.has(n)&&w.TOKEN.add(n)})();var E=class extends x{static{Object.defineProperty(this,"name",{value:`IllegalArgumentError`,configurable:!0})}},D=class extends x{constructor(e,t){super(`Invalid mime type "${e}": ${t}`),this.mimeType=e}static{Object.defineProperty(this,"name",{value:`InvalidMimeTypeError`,configurable:!0})}},O=class{static parseMimeType(e){if(!e)throw new D(e,`"mimeType" must not be empty`);return e.startsWith(`multipart`)?this.parseMimeTypeInternal(e):(this.cachedMimeTypes.has(e)||this.cachedMimeTypes.set(e,this.parseMimeTypeInternal(e)),this.cachedMimeTypes.get(e))}static parseMimeTypeInternal(e){let t=e.indexOf(`;`),n=(t>=0?e.substring(0,t):e).trim();if(n.length===0)throw new D(e,`"mimeType" must not be empty`);n===`*`&&(n=`*/*`);let r=n.indexOf(`/`);if(r===-1)throw new D(e,`does not contain "/"`);if(r===n.length-1)throw new D(e,`does not contain subtype after "/"`);let i=n.substring(0,r),a=n.substring(r+1);if(i===`*`&&a!==`*`)throw new D(e,`wildcard type is legal only in "*/*" (all mime types)`);let o;do{let n=t+1,r=!1;for(;n<e.length;){let t=e.charAt(n);if(t===`;`){if(!r)break}else t===`"`&&(r=!r);n++}let i=e.substring(t+1,n).trim();if(i.length>0){o===void 0&&(o=new Map);let e=i.indexOf(`=`);if(e>=0){let t=i.substring(0,e).trim(),n=i.substring(e+1).trim();o.set(t,n)}}t=n}while(t<e.length);try{return new T(i,a,o)}catch(t){throw new D(e,t.message)}}static parseMimeTypes(e){return e?this.tokenize(e).filter(e=>!!e).map(e=>this.parseMimeType(e)):[]}static tokenize(e){if(!e)return[];let t=[],n=!1,r=0,i=0;for(;i<e.length;){switch(e.charAt(i)){case`"`:n=!n;break;case`,`:n||(t.push(e.substring(r,i)),r=i+1);break;case`\\`:i++}i++}return t.push(e.substring(r)),t}static toString(e){return e.map(e=>e.toString()).join(`, `)}static sortBySpecificity(e){if(e.length>50)throw new D(e.toString(),`Too many elements`);this.bubbleSort(e,(e,t)=>e.isLessSpecific(t))}static bubbleSort(e,t){let n=e.length;for(let r=0;r<n;r++)for(let i=1;i<n-r;i++){let n=e[i-1],r=e[i];t(n,r)&&(e[i]=n,e[i-1]=r)}}static generateMultipartBoundary(){let e=new Uint8Array(Math.floor(Math.random()*11)+30);for(let t=0;t<e.length;t++)e[t]=this.BOUNDARY_CHARS[Math.floor(Math.random()*this.BOUNDARY_CHARS.length)].charCodeAt(0);return e}static generateMultipartBoundaryString(){return new TextDecoder(`ascii`).decode(this.generateMultipartBoundary())}static{Object.defineProperty(this,"name",{value:`MimeTypeUtils`,configurable:!0})}};O.BOUNDARY_CHARS=`-_1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``),O.ALL=new T(`*`,`*`),O.ALL_VALUE=`*/*`,O.APPLICATION_GRAPHQL=new T(`application`,`graphql+json`),O.APPLICATION_GRAPHQL_VALUE=`application/graphql+json`,O.APPLICATION_JSON=new T(`application`,`json`),O.APPLICATION_JSON_VALUE=`application/json`,O.APPLICATION_OCTET_STREAM=new T(`application`,`octet-stream`),O.APPLICATION_OCTET_STREAM_VALUE=`application/octet-stream`,O.APPLICATION_XML=new T(`application`,`xml`),O.APPLICATION_XML_VALUE=`application/xml`,O.IMAGE_GIF=new T(`image`,`gif`),O.IMAGE_GIF_VALUE=`image/gif`,O.IMAGE_JPEG=new T(`image`,`jpeg`),O.IMAGE_JPEG_VALUE=`image/jpeg`,O.IMAGE_PNG=new T(`image`,`png`),O.IMAGE_PNG_VALUE=`image/png`,O.TEXT_HTML=new T(`text`,`html`),O.TEXT_HTML_VALUE=`text/html`,O.TEXT_PLAIN=new T(`text`,`plain`),O.TEXT_PLAIN_VALUE=`text/plain`,O.TEXT_XML=new T(`text`,`xml`),O.TEXT_XML_VALUE=`text/xml`,O.cachedMimeTypes=new Map;var de=class{static isNode(){return typeof Buffer<`u`}static isBrowser(){return typeof TextDecoder<`u`}static decode(e){if(!e)return``;if(typeof e==`string`)return e;if(this.isNode()){if(e instanceof Buffer||e instanceof Uint8Array)return Buffer.from(e).toString(`utf8`);throw new E(`Unexpected type ${e.constructor.name} in Node environment.`)}if(this.isBrowser()){if(e instanceof Uint8Array||e instanceof ArrayBuffer)return new TextDecoder(`utf8`).decode(e);throw new E(`Unexpected type ${e.constructor.name} in Browser environment.`)}throw new E(`Neither Buffer nor TextDecoder are available.`)}static encodeBase64(e){if(!e)return``;if(this.isNode()){if(typeof e==`string`)return Buffer.from(e,`utf8`).toString(`base64`);if(e instanceof Buffer||e instanceof Uint8Array)return Buffer.from(e).toString(`base64`);throw new E(`Unexpected type ${e.constructor.name} in Node environment.`)}if(this.isBrowser()){if(typeof e==`string`)return btoa(new TextEncoder().encode(e).reduce((e,t)=>e+String.fromCharCode(t),``));if(e instanceof Uint8Array||e instanceof ArrayBuffer)return btoa(String.fromCharCode(...new Uint8Array(e)));throw new E(`Unexpected type ${e.constructor.name} in Browser environment.`)}throw new E(`Neither Buffer nor TextEncoder are available.`)}static decodeBase64(e){if(!e)return new Uint8Array;if(this.isNode())return Buffer.from(e,`base64`);if(this.isBrowser()){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}throw new E(`Neither Buffer nor TextEncoder are available.`)}static{Object.defineProperty(this,"name",{value:`ByteUtil`,configurable:!0})}},k=class e{static fixProto(e,t){let n=Object.setPrototypeOf;n?n(e,t):e.__proto__=t}static fixStack(e,t=e.constructor){let n=Error.captureStackTrace;n&&n(e,t)}static describe(t){let n=e.describeOne(t),r=e.causeOf(t);for(let t=0;r!==void 0&&t<5;t++)n+=`\nCaused by: ${e.describeOne(r)}`,r=e.causeOf(r);return n}static causeOf(e){return e instanceof Error?e.cause:void 0}static describeOne(e){return e instanceof Error?e.stack??`${e.name}: ${e.message}`:String(e)}static{Object.defineProperty(this,"name",{value:`ErrorUtil`,configurable:!0})}},A=class extends Error{constructor(e){super(e.message),this.name=`ContainerError`,this.code=e.code,this.hint=e.hint,this.path=e.path??[]}static{Object.defineProperty(this,"name",{value:`ContainerError`,configurable:!0})}};(function(e){function t(t,n){return t instanceof e&&(n===void 0||t.code===n)}e.is=t})(A||={});var j=`cell:di:parameters`,M=`cell:di:properties`,N=`cell:di:post-construct`,P=`cell:di:keeps-container`,fe=[Object,Function,Array,String,Number,Boolean,Symbol,BigInt,Promise],F;(function(e){let t=new WeakMap,n=new WeakMap;function r(e,t,n){if(n!==void 0){if(t!==void 0)throw Error(`${e.constructor.name}.${String(t)}: only constructor parameters and properties can be injected.`);let r=Reflect.getOwnMetadata(j,e);return r||(r=[],Reflect.defineMetadata(j,r,e)),r[n]??(r[n]={owner:e,key:n})}let r=e.constructor,i=Reflect.getOwnMetadata(M,r);i||(i=new Map(Reflect.getMetadata(M,r)),Reflect.defineMetadata(M,i,r));let a=i.get(t);return a&&a.owner===r||(a={owner:r,key:t},i.set(t,a)),a}e.point=r;function i(e,t){Reflect.getOwnMetadata(M,e.constructor)?.delete(t)}e.remove=i;function a(e){Reflect.defineMetadata(P,!0,e.constructor)}e.keepContainer=a;function o(e,t){n.set(e,t)}e.setContainer=o;function s(e,t){let r=n.get(e);if(!r){let n=e?.constructor?.name||`(anonymous class)`,r=t?`${n}.${t}`:n;throw new A({code:`CELL_DI_NO_CONTAINER`,message:`${r} needs the container that created the instance, but no container created this ${n}.`,hint:`Get the instance from the container (bind its class with @Component and inject it) instead of creating it with new.`,path:[r]})}return r}e.containerOf=s;function c(e,t){Reflect.defineMetadata(N,t,e.constructor)}e.setPostConstruct=c;function l(e){let n=t.get(e);return n||(n={parameters:u(e),properties:[...Reflect.getMetadata(M,e)?.values()??[]].map(d),postConstruct:Reflect.getMetadata(N,e),keepsContainer:Reflect.getMetadata(P,e)===!0},t.set(e,n)),n}e.plan=l;function u(e){for(let t=e;t&&t!==Function.prototype;t=Object.getPrototypeOf(t)){let e=Reflect.getOwnMetadata(j,t),n=Reflect.getOwnMetadata(`design:paramtypes`,t);if(e||n){let r=Math.max(e?.length??0,n?.length??0),i=[];for(let a=0;a<r;a++){let r=e?.[a]??{owner:t,key:a},o=n?.[a];i.push(d(r.id===void 0&&typeof o==`function`&&!fe.includes(o)?{...r,id:o}:r))}return i}}return[]}function d(e){if(e.id===void 0)throw f(e);return e}function f(e){let t=p(e);return new A({code:`CELL_DI_MISSING_INJECT`,message:`${t} has no @Autowired (or @Value), so the container does not know what to inject.`,hint:`Add @Autowired(<id>) to the constructor parameter or property; an interface type needs the id explicitly.`,path:[t]})}function p(e){let t=e.owner?.name||`(anonymous class)`;return typeof e.key==`number`?`${t} constructor parameter #${e.key}`:`${t}.${String(e.key)}`}e.describe=p})(F||={});var I=function(e){return(t,n,r)=>{ge(me(t,n,r,e),t,n,r)}},pe={multi:!1,detached:!1};function me(e,t,n,r){let i=h.getValueOrOption(r),a=h.getType(e,t,n);return a===Array&&(i.multi=!0),i.id=i.id||a,{...pe,...i}}var he=({id:e,multi:t},n,r,i)=>{let a=F.point(n,r,i);a.id=e,a.multi=t},L=({id:e,multi:t},n)=>t?n.getAll(e):n.get(e);function ge(e,t,n,r,i=he,a=L){if(e.detached){if(r!==void 0)throw Error(`${t.name}: a detached injection is resolved when its property is read, so it cannot be a constructor parameter.`);F.remove(t,n),F.keepContainer(t),_e(e,a,t,n)}else i(e,t,n,r);return e}function _e(e,t,n,r){Object.defineProperty(n,r,{enumerable:!0,configurable:!0,get(){let n=t(e,F.containerOf(this,r));return Object.defineProperty(this,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),n}})}var R={constantValue:`cell:constant-value`,component:`cell:component`},z={html:{title:`Cell Framework`,rootId:`cell-root`},component:{proxy:!1},aop:{enabled:!0},logger:{level:`info`},tenant:{enabled:!1},http:{client:{withCredentials:!0,headers:{"X-Requested-With":`XMLHttpRequest`}}},server:{path:`/`,endpoint:`http://localhost:0`},rpc:{path:`api`,transport:`websocket`,websocket:{maxPayload:33554432,heartbeat:3e4,callTimeout:3e4},merge:{enabled:!1,timerDelay:35,maxLength:5242880,maxCount:100}},react:{path:`/`,router:{type:`browser`}},mode:[`production`]},ve={},B;(function(e){function t(){return re.cellProps||z}e.getRaw=t;function n(){return re.cellConfigTypes||ve}e.getTypes=n})(B||={});var V;(function(e){e.Singleton=`Singleton`,e.Transient=`Transient`})(V||={});var ye=`Component`,H=function(...e){return t=>{Se(xe(t,e),t)}},be={scope:V.Singleton,rebind:!1,proxy:!1,...B.getRaw().component};function xe(e,t){Array.isArray(t)&&(t.length===1?t=t[0]:t.length===0&&(t=void 0));let n=h.getValueOrOption(t),r={...be,...n},i;return i=Array.isArray(r.id)?Array.from(new Set([e,...r.id])):r.id&&r.id!==e?[e,r.id]:[e],r.id=i,r.sysTags=[...new Set([ye,...r.sysTags||[]])],r}function Se(e,t){let n={target:t,ids:Array.isArray(e.id)?e.id:[e.id||t],sysTags:e.sysTags,rebind:e.rebind,proxy:e.proxy,scope:e.scope,name:e.name,tag:e.tag,default:e.default,onActivation:e.onActivation},r=Reflect.getMetadata(R.component,Reflect);return r||(r=[],Reflect.defineMetadata(R.component,r,Reflect)),r.push(n),n}var U=Symbol(`ConfigProvider`),Ce=Symbol(`Value`),we=function(e){return(t,n,r)=>{De(Ee(t,n,r,e),t,n,r)}},Te={detached:!1};function Ee(e,t,n,r){let i=h.getValueOrOption(r,`el`);return i.el=i.el||t,{...Te,...i}}function De(e,t,n,r){if(e.detached){if(r!==void 0)throw Error(`${t.name}: a detached @Value is read when its property is read, so it cannot be a constructor parameter.`);F.remove(t,n),F.keepContainer(t),Oe(e,t,n);return}let i=F.point(t,n,r);return i.id=Ce,i.name=e.el,e}function Oe(e,t,n){Object.defineProperty(t,n,{enumerable:!0,get(){return F.containerOf(this,n).get(U).get(e.el)}})}function ke(e){e(Ce).toDynamicValue(e=>e.container.get(U).get(String(e.target.name)))}var W=()=>(e,t,n)=>{F.point(e,t,n).optional=!0},Ae=()=>(e,t)=>{F.setPostConstruct(e,t)},je=`AOP_TAG`,Me=Symbol(`MethodBeforeAdvice`),Ne=Symbol(`AfterReturningAdvice`),Pe=Symbol(`AfterThrowsAdvice`),Fe=Symbol(`AopProxyFactory`),Ie=Symbol(`ClassFilter`),Le=Symbol(`PROVIDER`),Re=Symbol(`ID_KEY`),ze=`logger.level`,G=Symbol(`Logger`),Be=Symbol(`TraceIdProvider`),Ve=Symbol(`LoggerService`),He=[`verbose`,`debug`,`info`,`warn`,`error`],Ue=new o,We=Symbol(`SecurityCheck`),Ge=Symbol(`SecurityChecker`),Ke=`securityChecks`,qe=class e extends Error{constructor(t){let n={code:`CELL_SECURITY_CHECK_FAILED`,message:`Unsafe configuration for production:\n${t.map(e.format).join(`
3
+ `),t=this._leakingStacks.get(e)||0;return this._leakingStacks.set(e,t+1),()=>this.popLeakingStack(e)}popLeakingStack(e){if(!this._leakingStacks)return;let t=this._leakingStacks.get(e)||0;this._leakingStacks.set(e,t-1)}get hasListeners(){return!!this._callbacks&&!this._callbacks.isEmpty()}fire(e){this._callbacks&&this._callbacks.invoke(e)}async sequence(e){if(this._callbacks){for(let t of this._callbacks)if(!await e(t))break}}dispose(){this._leakingStacks&&=(this._leakingStacks.clear(),void 0),this._callbacks&&=(this._callbacks.dispose(),void 0),this._disposed=!0}static{Object.defineProperty(this,"name",{value:`Emitter`,configurable:!0})}};o.LEAK_WARNING_THRESHHOLD=175,o._noop=function(){};var s;(function(e){async function t(e,t,n=void 0){let r=[],i=Object.assign(t,{waitUntil:e=>{if(Object.isFrozen(r))throw Error(`waitUntil cannot be called asynchronously.`);r.push(e)}});try{e.fire(i),Object.freeze(r)}finally{delete i.waitUntil}r.length&&(n===void 0?await Promise.all(r):await Promise.race([Promise.all(r),new Promise(e=>setTimeout(e,n))]))}e.fire=t})(s||={});var c;(function(e){function t(e){return!!e&&typeof e==`object`&&`dispose`in e&&typeof e.dispose==`function`}e.is=t;function n(e){return{dispose:e}}e.create=n,e.NULL=n(()=>{})})(c||={}),class{constructor(...e){this.disposables=[],this.onDisposeEmitter=new o,this.disposingElements=!1,e.forEach(e=>this.push(e))}get onDispose(){return this.onDisposeEmitter.event}checkDisposed(){this.disposed&&!this.disposingElements&&(this.onDisposeEmitter.fire(void 0),this.onDisposeEmitter.dispose())}get disposed(){return this.disposables.length===0}dispose(){if(!(this.disposed||this.disposingElements)){for(this.disposingElements=!0;!this.disposed;)try{this.disposables.pop().dispose()}catch(e){console.error(e)}this.disposingElements=!1,this.checkDisposed()}}push(e){let t=this.disposables;t.push(e);let n=e.dispose.bind(e),r=c.create(()=>{let n=t.indexOf(e);n!==-1&&t.splice(n,1),this.checkDisposed()});return e.dispose=()=>{r.dispose(),e.dispose=n,n()},r}pushAll(e){return e.map(e=>this.push(e))}static{Object.defineProperty(this,"name",{value:`DisposableCollection`,configurable:!0})}};function l(e,t){return typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.indexOf(e)>=0?!0:typeof process<`u`&&process.platform===t}var u=l(`Windows`,`win32`),d=l(`Mac`,`darwin`),f;(function(e){let t;(function(e){e.Windows=`Windows`,e.Linux=`Linux`,e.OSX=`OSX`})(t=e.Type||={});function n(){return u?t.Windows:d?t.OSX:t.Linux}e.type=n})(f||={});var p=Symbol.for(`@celljs/core/proxy-target`);function m(e){return e?.[p]??e}var h;(function(e){function t(e,t=`id`){let n={};return typeof e==`object`&&!Array.isArray(e)?n=e:e&&(n={[t]:e}),n}e.getValueOrOption=t;function n(e,t,n){return n===void 0?Reflect.getMetadata(`design:type`,e,t):Reflect.getMetadata(`design:paramtypes`,e,t)?.[n]}e.getType=n})(h||={});var g=class extends Error{constructor(){super(`Canceled`),this.name=this.message}static{Object.defineProperty(this,"name",{value:`CancellationError`,configurable:!0})}},ee=Object.freeze(Object.assign(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}},{maxListeners:0})),_;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:ee})})(_||={});var te=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&=(this._emitter.fire(void 0),void 0))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?ee:(this._emitter||=new o,this._emitter.event)}static{Object.defineProperty(this,"name",{value:`MutableToken`,configurable:!0})}};(class{get token(){return this._token||=new te,this._token}cancel(){this._token?this._token!==_.Cancelled&&this._token.cancel():this._token=_.Cancelled}dispose(){this.cancel()}static{Object.defineProperty(this,"name",{value:`CancellationTokenSource`,configurable:!0})}});function ne(){if(typeof globalThis<`u`||typeof globalThis<`u`)return globalThis;if(typeof window<`u`)return window;if(typeof self<`u`)return self}var re=ne(),ie=class{constructor(){this.activePromise=void 0,this.queuedPromise=void 0,this.queuedPromiseFactory=void 0}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){let e=()=>{this.queuedPromise=void 0;let e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=void 0,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=void 0,e(t)},e=>{this.activePromise=void 0,t(e)})})}static{Object.defineProperty(this,"name",{value:`Throttler`,configurable:!0})}};(class{constructor(){this.current=Promise.resolve(void 0)}queue(e){return this.current=this.current.then(()=>e(),()=>e())}static{Object.defineProperty(this,"name",{value:`Sequencer`,configurable:!0})}}),class{constructor(){this.promiseMap=new Map}queue(e,t){let n=(this.promiseMap.get(e)??Promise.resolve()).catch(()=>{}).then(t).finally(()=>{this.promiseMap.get(e)===n&&this.promiseMap.delete(e)});return this.promiseMap.set(e,n),n}static{Object.defineProperty(this,"name",{value:`SequencerByKey`,configurable:!0})}};var ae=(e,t)=>{let n=!0,r=setTimeout(()=>{n=!1,t()},e);return{isTriggered:()=>n,dispose:()=>{clearTimeout(r),n=!1}}},oe=e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}},se=Symbol(`MicrotaskDelay`),v=class{constructor(e){this.defaultDelay=e,this.deferred=void 0,this.completionPromise=void 0,this.doResolve=void 0,this.doReject=void 0,this.task=void 0}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{if(this.completionPromise=void 0,this.doResolve=void 0,this.task){let e=this.task;return this.task=void 0,e()}});let n=()=>{var e;this.deferred=void 0,(e=this.doResolve)==null||e.call(this,void 0)};return this.deferred=t===se?oe(n):ae(t,n),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&=(this.doReject&&this.doReject(new g),void 0)}cancelTimeout(){var e;(e=this.deferred)==null||e.dispose(),this.deferred=void 0}dispose(){this.cancel()}static{Object.defineProperty(this,"name",{value:`Delayer`,configurable:!0})}};(class{constructor(e){this.delayer=new v(e),this.throttler=new ie}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}static{Object.defineProperty(this,"name",{value:`ThrottledDelayer`,configurable:!0})}});var ce=class{constructor(){this._isOpen=!1,this._promise=new Promise((e,t)=>{this._completePromise=e})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}static{Object.defineProperty(this,"name",{value:`Barrier`,configurable:!0})}};(class extends ce{constructor(e){super(),this._timeout=setTimeout(()=>this.open(),e)}open(){clearTimeout(this._timeout),super.open()}static{Object.defineProperty(this,"name",{value:`AutoOpenBarrier`,configurable:!0})}});var y=class{constructor(e){this._size=0,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onDrained=new o}get onDrained(){return this._onDrained.event}get size(){return this._size}queue(e){return this._size++,new Promise((t,n)=>{this.outstandingPromises.push({factory:e,c:t,e:n}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){let e=this.outstandingPromises.shift();this.runningPromises++;let t=e.factory();t.then(e.c,e.e),t.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onDrained.fire()}dispose(){this._onDrained.dispose()}static{Object.defineProperty(this,"name",{value:`Limiter`,configurable:!0})}};(class extends y{constructor(){super(1)}static{Object.defineProperty(this,"name",{value:`Queue`,configurable:!0})}}),class{constructor(e,t){this._token=-1,typeof e==`function`&&typeof t==`number`&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}static{Object.defineProperty(this,"name",{value:`TimeoutTimer`,configurable:!0})}},class{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}static{Object.defineProperty(this,"name",{value:`IntervalTimer`,configurable:!0})}};var le=class{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=void 0}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}static{Object.defineProperty(this,"name",{value:`RunOnceScheduler`,configurable:!0})}};(class{constructor(e,t){t%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${t}ms is not a multiple of 1000ms.`),this.runner=e,this.timeout=t,this.counter=0,this.intervalToken=-1,this.intervalHandler=this.onInterval.bind(this)}dispose(){this.cancel(),this.runner=void 0}cancel(){this.isScheduled()&&(clearInterval(this.intervalToken),this.intervalToken=-1)}schedule(e=this.timeout){e%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${e}ms is not a multiple of 1000ms.`),this.cancel(),this.counter=Math.ceil(e/1e3),this.intervalToken=setInterval(this.intervalHandler,1e3)}isScheduled(){return this.intervalToken!==-1}onInterval(){this.counter--,this.counter>0||(clearInterval(this.intervalToken),this.intervalToken=-1,this.runner&&this.runner())}static{Object.defineProperty(this,"name",{value:`ProcessTimeRunOnceScheduler`,configurable:!0})}}),class extends le{constructor(e,t){super(e,t),this.units=[]}work(e){this.units.push(e),this.isScheduled()||this.schedule()}doRun(){let e=this.units;this.units=[],this.runner&&this.runner(e)}dispose(){this.units=[],super.dispose()}static{Object.defineProperty(this,"name",{value:`RunOnceWorker`,configurable:!0})}},class{hasPending(e){return this._pending?typeof e==`number`?this._pending.taskId===e:!!this._pending:!1}get pending(){return this._pending?this._pending.promise:void 0}cancelPending(){var e;(e=this._pending)==null||e.cancel()}setPending(e,t,n){return this._pending={taskId:e,cancel:()=>n?.(),promise:t},t.then(()=>this.donePending(e),()=>this.donePending(e)),t}donePending(e){this._pending&&e===this._pending.taskId&&(this._pending=void 0,this.triggerNext())}triggerNext(){if(this._next){let e=this._next;this._next=void 0,e.run().then(e.promiseResolve,e.promiseReject)}}setNext(e){if(this._next)this._next.run=e;else{let t,n,r=new Promise((e,r)=>{t=e,n=r});this._next={run:e,promise:r,promiseResolve:t,promiseReject:n}}return this._next.promise}static{Object.defineProperty(this,"name",{value:`TaskSequentializer`,configurable:!0})}},class{constructor(e,t=()=>Date.now()){this.interval=e,this.nowFn=t,this.lastIncrementTime=0,this.value=0}increment(){let e=this.nowFn();return e-this.lastIncrementTime>this.interval&&(this.lastIncrementTime=e,this.value=0),this.value++,this.value}static{Object.defineProperty(this,"name",{value:`IntervalCounter`,configurable:!0})}},class{get isRejected(){return this.rejected}get isResolved(){return this.resolved}get isSettled(){return this.rejected||this.resolved}constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return new Promise(t=>{this.completeCallback(e),this.resolved=!0,t()})}error(e){return new Promise(t=>{this.errorCallback(e),this.rejected=!0,t()})}cancel(){new Promise(e=>{this.errorCallback(new g),this.rejected=!0,e()})}static{Object.defineProperty(this,"name",{value:`DeferredPromise`,configurable:!0})}};var ue;(function(e){async function t(e){let t,n=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||=e})));if(t!==void 0)throw t;return n}e.settled=t;function n(e){return new Promise(async(t,n)=>{try{await e(t,n)}catch(e){n(e)}})}e.withAsyncBody=n})(ue||={});var b;(function(e){function t(...e){let t=[];if(e.length===0)return``;if(typeof e[0]!=`string`)throw TypeError(`Url must be a string. Received `+e[0]);e[0].match(/^[^/:]+:\/*$/)&&e.length>1&&(e[0]=e.shift()+e[0]),e[0]=e[0].match(/^file:\/\/\//)?e[0].replace(/^([^/:]+):\/*/,`$1:///`):e[0].replace(/^([^/:]+):\/*/,`$1://`);for(let n=0;n<e.length;n++){let r=e[n];if(typeof r!=`string`)throw TypeError(`Url must be a string. Received `+r);r!==``&&(n>0&&(r=r.replace(/^[\/]+/,``)),r=n<e.length-1?r.replace(/[\/]+$/,``):r.replace(/[\/]+$/,`/`),t.push(r))}let n=t.join(`/`);n=n.replace(/\/(\?|&|#[^!])/g,`$1`);let r=n.split(`?`);return n=r.shift()+(r.length>0?`?`:``)+r.join(`&`),n}e.join=t})(b||={}),(function(){if(typeof crypto==`object`&&typeof crypto.randomUUID==`function`)return crypto.randomUUID.bind(crypto);let e;e=typeof crypto==`object`&&typeof crypto.getRandomValues==`function`?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(Math.random()*256);return e};let t=new Uint8Array(16),n=[];for(let e=0;e<256;e++)n.push(e.toString(16).padStart(2,`0`));return function(){e(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=0,i=``;return i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i}})();var x=class extends Error{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0}),k.fixProto(this,new.target.prototype),k.fixStack(this)}static{Object.defineProperty(this,"name",{value:`CustomError`,configurable:!0})}},S=class extends x{static{Object.defineProperty(this,"name",{value:`IllegalStateError`,configurable:!0})}},C=class{static state(e,t){if(!e)throw new S(this.resolveMessage(t))}static isTrue(e,t){if(!e)throw new S(this.resolveMessage(t))}static isNull(e,t){if(e!==void 0||e!==null)throw new S(this.resolveMessage(t))}static notNull(e,t){if(e==null)throw new S(this.resolveMessage(t))}static hasLength(e,t){if(!e||e.length===0)throw new S(this.resolveMessage(t))}static hasText(e,t){if(!e||e.trim().length===0)throw new S(this.resolveMessage(t))}static doesNotContain(e,t,n){if(e&&t&&e.includes(t))throw new S(this.resolveMessage(n))}static notEmpty(e,t){if(!e||e.length===0)throw new S(this.resolveMessage(t))}static noNullElements(e,t){if(e){for(let n of e)if(n==null)throw new S(this.resolveMessage(t))}}static notEmptyCollection(e,t){if(!e||e.length===0)throw new S(this.resolveMessage(t))}static noNullElementsCollection(e,t){if(e){for(let n of e)if(n==null)throw new S(this.resolveMessage(t))}}static notEmptyMap(e,t){if(!e||e.size===0)throw new S(this.resolveMessage(t))}static isInstanceOf(e,t,n){this.notNull(e,`Type to check against must not be null`),t instanceof e||this.instanceCheckFailed(e,t,this.resolveMessage(n))}static isAssignable(e,t,n){this.notNull(e,`Supertype to check against must not be null`),t!==void 0&&r(t).includes(e)||this.assignableCheckFailed(e,t,this.resolveMessage(n))}static instanceCheckFailed(e,t,n){let r=t===void 0?`undefined`:t.constructor.name,i=``,a=!0;throw n&&n.length>0&&(this.endsWithSeparator(n)?i=n+` `:(i=this.messageWithTypeName(n,r),a=!1)),a&&(i+=`Object of class [${r}] must be an instance of ${e}`),new S(i)}static assignableCheckFailed(e,t,n){let r=``,i=!0;throw n&&n.length>0&&(this.endsWithSeparator(n)?r=n+` `:(r=this.messageWithTypeName(n,t),i=!1)),i&&(r+=`${t} is not assignable to ${e}`),new S(r)}static endsWithSeparator(e){return e.endsWith(`:`)||e.endsWith(`;`)||e.endsWith(`,`)||e.endsWith(`.`)}static messageWithTypeName(e,t){return e+(e.endsWith(` `)?``:`: `)+(`name`in t)?t.name:t}static resolveMessage(e){return typeof e==`function`?e():e}static{Object.defineProperty(this,"name",{value:`Assert`,configurable:!0})}},w,T=class{constructor(e,t=w.WILDCARD_TYPE,n){if(C.hasLength(e,`"type" must not be empty`),C.hasLength(t,`"subtype" must not be empty`),this.checkToken(e),this.checkToken(t),this.type=e.toLowerCase(),this.subtype=t.toLowerCase(),n){let e=new Map;for(let[t,r]of n.entries())this.checkParameters(t,r),e.set(t.toLowerCase(),r);this.parameters=e}else this.parameters=new Map}checkToken(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(!w.TOKEN.has(n))throw Error(`Invalid token character "${String.fromCharCode(n)}" in token "${e}"`)}}checkParameters(e,t){C.hasLength(e,`"parameter" must not be empty`),C.hasLength(t,`"value" must not be empty`),this.checkToken(e),w.PARAM_CHARSET===e?this.charset||=this.unquote(t):this.isQuotedString(t)||this.checkToken(t)}isQuotedString(e){return e.length<2?!1:e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`)}unquote(e){return this.isQuotedString(e)?e.substring(1,e.length-1):e}isWildcardType(){return w.WILDCARD_TYPE===this.getType()}isWildcardSubtype(){let e=this.getSubtype();return w.WILDCARD_TYPE===e||e.startsWith(`*+`)}isConcrete(){return!this.isWildcardType()&&!this.isWildcardSubtype()}getType(){return this.type}getSubtype(){return this.subtype}getSubtypeSuffix(){let e=this.subtype.lastIndexOf(`+`);if(e!==-1&&this.subtype.length>e)return this.subtype.substring(e+1)}getCharset(){return this.charset}getParameter(e){return this.parameters.get(e)}getParameters(){return this.parameters}includes(e){if(e===void 0)return!1;if(this.isWildcardType())return!0;if(this.getType()===e.getType()){if(this.getSubtype()===e.getSubtype())return!0;if(this.isWildcardSubtype()){let t=this.getSubtype().lastIndexOf(`+`);if(t===-1)return!0;{let n=e.getSubtype().lastIndexOf(`+`);if(n!==-1){let r=this.getSubtype().substring(0,t);if(this.getSubtype().substring(t+1)===e.getSubtype().substring(n+1)&&w.WILDCARD_TYPE===r)return!0}}}}return!1}isCompatibleWith(e){if(e===void 0)return!1;if(this.isWildcardType()||e.isWildcardType())return!0;if(this.getType()===e.getType()){if(this.getSubtype()===e.getSubtype())return!0;if(this.isWildcardSubtype()||e.isWildcardSubtype()){let t=this.getSubtypeSuffix(),n=e.getSubtypeSuffix();if(this.getSubtype()===w.WILDCARD_TYPE||e.getSubtype()===w.WILDCARD_TYPE)return!0;if(this.isWildcardSubtype()&&t!==void 0)return t===e.getSubtype()||t===n;if(e.isWildcardSubtype()&&n!==void 0)return this.getSubtype()===n||n===t}}return!1}equalsTypeAndSubtype(e){return e!==void 0&&this.type.toLowerCase()===e.type.toLowerCase()&&this.subtype.toLowerCase()===e.subtype.toLowerCase()}isPresentIn(e){for(let t of e)if(t.equalsTypeAndSubtype(this))return!0;return!1}equals(e){return this===e||e instanceof w&&this.type.toLowerCase()===e.type.toLowerCase()&&this.subtype.toLowerCase()===e.subtype.toLowerCase()&&this.parametersAreEqual(e)}parametersAreEqual(e){if(this.parameters.size!==e.parameters.size)return!1;for(let[t,n]of this.parameters){if(!e.parameters.has(t))return!1;if(w.PARAM_CHARSET===t){if(this.getCharset()!==e.getCharset())return!1}else if(n!==e.parameters.get(t))return!1}return!0}isMoreSpecific(e){C.notNull(e,`Other must not be null`);let t=this.isWildcardType(),n=e.isWildcardType();if(t&&!n)return!1;if(!t&&n)return!0;{let t=this.isWildcardSubtype(),n=e.isWildcardSubtype();return t&&!n?!1:!t&&n?!0:this.getType()===e.getType()&&this.getSubtype()===e.getSubtype()&&this.getParameters().size>e.getParameters().size}}isLessSpecific(e){return C.notNull(e,`Other must not be null`),e.isMoreSpecific(this)}static valueOf(e){return O.parseMimeType(e)}toString(){let e=this.toStringValue;return e||(e=this.buildString(),this.toStringValue=e),e??``}buildString(){let e=``;return e+=this.type,e+=`/`,e+=this.subtype,e+=this.buildParameters(this.parameters),e}buildParameters(e){let t=``;return e.forEach((e,n)=>{t+=`;`,t+=n,t+=`=`,t+=e}),t}static{Object.defineProperty(this,"name",{value:`MimeType`,configurable:!0})}};w=T,T.WILDCARD_TYPE=`*`,T.PARAM_CHARSET=`charset`,T.TOKEN=new Set,(()=>{let e=new Set;for(let t=0;t<=31;t++)e.add(t);e.add(127);let t=new Set;t.add(40),t.add(41),t.add(60),t.add(62),t.add(64),t.add(44),t.add(59),t.add(58),t.add(92),t.add(34),t.add(47),t.add(91),t.add(93),t.add(63),t.add(61),t.add(123),t.add(125),t.add(32),t.add(9);for(let n=0;n<128;n++)!e.has(n)&&!t.has(n)&&w.TOKEN.add(n)})();var E=class extends x{static{Object.defineProperty(this,"name",{value:`IllegalArgumentError`,configurable:!0})}},D=class extends x{constructor(e,t){super(`Invalid mime type "${e}": ${t}`),this.mimeType=e}static{Object.defineProperty(this,"name",{value:`InvalidMimeTypeError`,configurable:!0})}},O=class{static parseMimeType(e){if(!e)throw new D(e,`"mimeType" must not be empty`);return e.startsWith(`multipart`)?this.parseMimeTypeInternal(e):(this.cachedMimeTypes.has(e)||this.cachedMimeTypes.set(e,this.parseMimeTypeInternal(e)),this.cachedMimeTypes.get(e))}static parseMimeTypeInternal(e){let t=e.indexOf(`;`),n=(t>=0?e.substring(0,t):e).trim();if(n.length===0)throw new D(e,`"mimeType" must not be empty`);n===`*`&&(n=`*/*`);let r=n.indexOf(`/`);if(r===-1)throw new D(e,`does not contain "/"`);if(r===n.length-1)throw new D(e,`does not contain subtype after "/"`);let i=n.substring(0,r),a=n.substring(r+1);if(i===`*`&&a!==`*`)throw new D(e,`wildcard type is legal only in "*/*" (all mime types)`);let o;do{let n=t+1,r=!1;for(;n<e.length;){let t=e.charAt(n);if(t===`;`){if(!r)break}else t===`"`&&(r=!r);n++}let i=e.substring(t+1,n).trim();if(i.length>0){o===void 0&&(o=new Map);let e=i.indexOf(`=`);if(e>=0){let t=i.substring(0,e).trim(),n=i.substring(e+1).trim();o.set(t,n)}}t=n}while(t<e.length);try{return new T(i,a,o)}catch(t){throw new D(e,t.message)}}static parseMimeTypes(e){return e?this.tokenize(e).filter(e=>!!e).map(e=>this.parseMimeType(e)):[]}static tokenize(e){if(!e)return[];let t=[],n=!1,r=0,i=0;for(;i<e.length;){switch(e.charAt(i)){case`"`:n=!n;break;case`,`:n||(t.push(e.substring(r,i)),r=i+1);break;case`\\`:i++}i++}return t.push(e.substring(r)),t}static toString(e){return e.map(e=>e.toString()).join(`, `)}static sortBySpecificity(e){if(e.length>50)throw new D(e.toString(),`Too many elements`);this.bubbleSort(e,(e,t)=>e.isLessSpecific(t))}static bubbleSort(e,t){let n=e.length;for(let r=0;r<n;r++)for(let i=1;i<n-r;i++){let n=e[i-1],r=e[i];t(n,r)&&(e[i]=n,e[i-1]=r)}}static generateMultipartBoundary(){let e=new Uint8Array(Math.floor(Math.random()*11)+30);for(let t=0;t<e.length;t++)e[t]=this.BOUNDARY_CHARS[Math.floor(Math.random()*this.BOUNDARY_CHARS.length)].charCodeAt(0);return e}static generateMultipartBoundaryString(){return new TextDecoder(`ascii`).decode(this.generateMultipartBoundary())}static{Object.defineProperty(this,"name",{value:`MimeTypeUtils`,configurable:!0})}};O.BOUNDARY_CHARS=`-_1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``),O.ALL=new T(`*`,`*`),O.ALL_VALUE=`*/*`,O.APPLICATION_GRAPHQL=new T(`application`,`graphql+json`),O.APPLICATION_GRAPHQL_VALUE=`application/graphql+json`,O.APPLICATION_JSON=new T(`application`,`json`),O.APPLICATION_JSON_VALUE=`application/json`,O.APPLICATION_OCTET_STREAM=new T(`application`,`octet-stream`),O.APPLICATION_OCTET_STREAM_VALUE=`application/octet-stream`,O.APPLICATION_XML=new T(`application`,`xml`),O.APPLICATION_XML_VALUE=`application/xml`,O.IMAGE_GIF=new T(`image`,`gif`),O.IMAGE_GIF_VALUE=`image/gif`,O.IMAGE_JPEG=new T(`image`,`jpeg`),O.IMAGE_JPEG_VALUE=`image/jpeg`,O.IMAGE_PNG=new T(`image`,`png`),O.IMAGE_PNG_VALUE=`image/png`,O.TEXT_HTML=new T(`text`,`html`),O.TEXT_HTML_VALUE=`text/html`,O.TEXT_PLAIN=new T(`text`,`plain`),O.TEXT_PLAIN_VALUE=`text/plain`,O.TEXT_XML=new T(`text`,`xml`),O.TEXT_XML_VALUE=`text/xml`,O.cachedMimeTypes=new Map;var de=class{static isNode(){return typeof Buffer<`u`}static isBrowser(){return typeof TextDecoder<`u`}static decode(e){if(!e)return``;if(typeof e==`string`)return e;if(this.isNode()){if(e instanceof Buffer||e instanceof Uint8Array)return Buffer.from(e).toString(`utf8`);throw new E(`Unexpected type ${e.constructor.name} in Node environment.`)}if(this.isBrowser()){if(e instanceof Uint8Array||e instanceof ArrayBuffer)return new TextDecoder(`utf8`).decode(e);throw new E(`Unexpected type ${e.constructor.name} in Browser environment.`)}throw new E(`Neither Buffer nor TextDecoder are available.`)}static encodeBase64(e){if(!e)return``;if(this.isNode()){if(typeof e==`string`)return Buffer.from(e,`utf8`).toString(`base64`);if(e instanceof Buffer||e instanceof Uint8Array)return Buffer.from(e).toString(`base64`);throw new E(`Unexpected type ${e.constructor.name} in Node environment.`)}if(this.isBrowser()){if(typeof e==`string`)return btoa(new TextEncoder().encode(e).reduce((e,t)=>e+String.fromCharCode(t),``));if(e instanceof Uint8Array||e instanceof ArrayBuffer)return btoa(String.fromCharCode(...new Uint8Array(e)));throw new E(`Unexpected type ${e.constructor.name} in Browser environment.`)}throw new E(`Neither Buffer nor TextEncoder are available.`)}static decodeBase64(e){if(!e)return new Uint8Array;if(this.isNode())return Buffer.from(e,`base64`);if(this.isBrowser()){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}throw new E(`Neither Buffer nor TextEncoder are available.`)}static{Object.defineProperty(this,"name",{value:`ByteUtil`,configurable:!0})}},k=class e{static fixProto(e,t){let n=Object.setPrototypeOf;n?n(e,t):e.__proto__=t}static fixStack(e,t=e.constructor){let n=Error.captureStackTrace;n&&n(e,t)}static describe(t){let n=e.describeOne(t),r=e.causeOf(t);for(let t=0;r!==void 0&&t<5;t++)n+=`\nCaused by: ${e.describeOne(r)}`,r=e.causeOf(r);return n}static causeOf(e){return e instanceof Error?e.cause:void 0}static describeOne(e){return e instanceof Error?e.stack??`${e.name}: ${e.message}`:String(e)}static{Object.defineProperty(this,"name",{value:`ErrorUtil`,configurable:!0})}},A=class extends Error{constructor(e){super(e.message),this.name=`ContainerError`,this.code=e.code,this.hint=e.hint,this.path=e.path??[]}static{Object.defineProperty(this,"name",{value:`ContainerError`,configurable:!0})}};(function(e){function t(t,n){return t instanceof e&&(n===void 0||t.code===n)}e.is=t})(A||={});var j=`cell:di:parameters`,M=`cell:di:properties`,N=`cell:di:post-construct`,P=`cell:di:keeps-container`,fe=[Object,Function,Array,String,Number,Boolean,Symbol,BigInt,Promise],F;(function(e){let t=new WeakMap,n=new WeakMap;function r(e,t,n){if(n!==void 0){if(t!==void 0)throw Error(`${e.constructor.name}.${String(t)}: only constructor parameters and properties can be injected.`);let r=Reflect.getOwnMetadata(j,e);return r||(r=[],Reflect.defineMetadata(j,r,e)),r[n]??(r[n]={owner:e,key:n})}let r=e.constructor,i=Reflect.getOwnMetadata(M,r);i||(i=new Map(Reflect.getMetadata(M,r)),Reflect.defineMetadata(M,i,r));let a=i.get(t);return a&&a.owner===r||(a={owner:r,key:t},i.set(t,a)),a}e.point=r;function i(e,t){Reflect.getOwnMetadata(M,e.constructor)?.delete(t)}e.remove=i;function a(e){Reflect.defineMetadata(P,!0,e.constructor)}e.keepContainer=a;function o(e,t){n.set(e,t)}e.setContainer=o;function s(e,t){let r=n.get(e);if(!r){let n=e?.constructor?.name||`(anonymous class)`,r=t?`${n}.${t}`:n;throw new A({code:`CELL_DI_NO_CONTAINER`,message:`${r} needs the container that created the instance, but no container created this ${n}.`,hint:`Get the instance from the container (bind its class with @Component and inject it) instead of creating it with new.`,path:[r]})}return r}e.containerOf=s;function c(e,t){Reflect.defineMetadata(N,t,e.constructor)}e.setPostConstruct=c;function l(e){let n=t.get(e);return n||(n={parameters:u(e),properties:[...Reflect.getMetadata(M,e)?.values()??[]].map(d),postConstruct:Reflect.getMetadata(N,e),keepsContainer:Reflect.getMetadata(P,e)===!0},t.set(e,n)),n}e.plan=l;function u(e){for(let t=e;t&&t!==Function.prototype;t=Object.getPrototypeOf(t)){let e=Reflect.getOwnMetadata(j,t),n=Reflect.getOwnMetadata(`design:paramtypes`,t);if(e||n){let r=Math.max(e?.length??0,n?.length??0),i=[];for(let a=0;a<r;a++){let r=e?.[a]??{owner:t,key:a},o=n?.[a];i.push(d(r.id===void 0&&typeof o==`function`&&!fe.includes(o)?{...r,id:o}:r))}return i}}return[]}function d(e){if(e.id===void 0)throw f(e);return e}function f(e){let t=p(e);return new A({code:`CELL_DI_MISSING_INJECT`,message:`${t} has no @Autowired (or @Value), so the container does not know what to inject.`,hint:`Add @Autowired(<id>) to the constructor parameter or property; an interface type needs the id explicitly.`,path:[t]})}function p(e){let t=e.owner?.name||`(anonymous class)`;return typeof e.key==`number`?`${t} constructor parameter #${e.key}`:`${t}.${String(e.key)}`}e.describe=p})(F||={});var I=function(e){return(t,n,r)=>{ge(me(t,n,r,e),t,n,r)}},pe={multi:!1,detached:!1};function me(e,t,n,r){let i=h.getValueOrOption(r),a=h.getType(e,t,n);return a===Array&&(i.multi=!0),i.id=i.id||a,{...pe,...i}}var he=({id:e,multi:t},n,r,i)=>{let a=F.point(n,r,i);a.id=e,a.multi=t},L=({id:e,multi:t},n)=>t?n.getAll(e):n.get(e);function ge(e,t,n,r,i=he,a=L){if(e.detached){if(r!==void 0)throw Error(`${t.name}: a detached injection is resolved when its property is read, so it cannot be a constructor parameter.`);F.remove(t,n),F.keepContainer(t),_e(e,a,t,n)}else i(e,t,n,r);return e}function _e(e,t,n,r){Object.defineProperty(n,r,{enumerable:!0,configurable:!0,get(){let n=t(e,F.containerOf(this,r));return Object.defineProperty(this,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),n}})}var R={constantValue:`cell:constant-value`,component:`cell:component`},z={html:{title:`Cell Framework`,rootId:`cell-root`},component:{proxy:!1},aop:{enabled:!0},logger:{level:`info`},tenant:{enabled:!1},http:{client:{withCredentials:!0,headers:{"X-Requested-With":`XMLHttpRequest`}}},server:{path:`/`,endpoint:`http://localhost:0`},rpc:{path:`api`,transport:`websocket`,websocket:{maxPayload:33554432,heartbeat:3e4,callTimeout:3e4},merge:{enabled:!1,timerDelay:35,maxLength:5242880,maxCount:100}},react:{path:`/`,router:{type:`memory`}},mode:[`production`]},ve={},B;(function(e){function t(){return re.cellProps||z}e.getRaw=t;function n(){return re.cellConfigTypes||ve}e.getTypes=n})(B||={});var V;(function(e){e.Singleton=`Singleton`,e.Transient=`Transient`})(V||={});var ye=`Component`,H=function(...e){return t=>{Se(xe(t,e),t)}},be={scope:V.Singleton,rebind:!1,proxy:!1,...B.getRaw().component};function xe(e,t){Array.isArray(t)&&(t.length===1?t=t[0]:t.length===0&&(t=void 0));let n=h.getValueOrOption(t),r={...be,...n},i;return i=Array.isArray(r.id)?Array.from(new Set([e,...r.id])):r.id&&r.id!==e?[e,r.id]:[e],r.id=i,r.sysTags=[...new Set([ye,...r.sysTags||[]])],r}function Se(e,t){let n={target:t,ids:Array.isArray(e.id)?e.id:[e.id||t],sysTags:e.sysTags,rebind:e.rebind,proxy:e.proxy,scope:e.scope,name:e.name,tag:e.tag,default:e.default,onActivation:e.onActivation},r=Reflect.getMetadata(R.component,Reflect);return r||(r=[],Reflect.defineMetadata(R.component,r,Reflect)),r.push(n),n}var U=Symbol(`ConfigProvider`),Ce=Symbol(`Value`),we=function(e){return(t,n,r)=>{De(Ee(t,n,r,e),t,n,r)}},Te={detached:!1};function Ee(e,t,n,r){let i=h.getValueOrOption(r,`el`);return i.el=i.el||t,{...Te,...i}}function De(e,t,n,r){if(e.detached){if(r!==void 0)throw Error(`${t.name}: a detached @Value is read when its property is read, so it cannot be a constructor parameter.`);F.remove(t,n),F.keepContainer(t),Oe(e,t,n);return}let i=F.point(t,n,r);return i.id=Ce,i.name=e.el,e}function Oe(e,t,n){Object.defineProperty(t,n,{enumerable:!0,get(){return F.containerOf(this,n).get(U).get(e.el)}})}function ke(e){e(Ce).toDynamicValue(e=>e.container.get(U).get(String(e.target.name)))}var W=()=>(e,t,n)=>{F.point(e,t,n).optional=!0},Ae=()=>(e,t)=>{F.setPostConstruct(e,t)},je=`AOP_TAG`,Me=Symbol(`MethodBeforeAdvice`),Ne=Symbol(`AfterReturningAdvice`),Pe=Symbol(`AfterThrowsAdvice`),Fe=Symbol(`AopProxyFactory`),Ie=Symbol(`ClassFilter`),Le=Symbol(`PROVIDER`),Re=Symbol(`ID_KEY`),ze=`logger.level`,G=Symbol(`Logger`),Be=Symbol(`TraceIdProvider`),Ve=Symbol(`LoggerService`),He=[`verbose`,`debug`,`info`,`warn`,`error`],Ue=new o,We=Symbol(`SecurityCheck`),Ge=Symbol(`SecurityChecker`),Ke=`securityChecks`,qe=class e extends Error{constructor(t){let n={code:`CELL_SECURITY_CHECK_FAILED`,message:`Unsafe configuration for production:\n${t.map(e.format).join(`
4
4
  `)}`,hint:`Fix each warning listed in the message, or set securityChecks: warn in cell.yml to start anyway.`};super(n.message),this.warnings=t,this.name=`SecurityCheckError`,this.code=n.code,this.hint=n.hint}static format(e){return`[${e.code}] ${e.message} Fix: ${e.hint}`}static{Object.defineProperty(this,"name",{value:`SecurityCheckError`,configurable:!0})}},Je=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ye=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Xe=Symbol(`ApplicationLifecycle`),Ze=Symbol(`Application`),Qe=Symbol(`ApplicationStateService`),$e=Symbol(`ApplicationShell`),K=class{async doStart(){await this.securityChecker.enforce();for(let e of this.lifecycles)if(e.initialize)try{e.initialize()}catch(t){this.logger.error(`Could not initialize lifecycle ${e.constructor.name}: ${k.describe(t)}`)}for(let e of this.lifecycles)if(e.onStart)try{await this.startLifecycle(e)}catch(t){this.logger.error(`Could not start lifecycle ${e.constructor.name}: ${k.describe(t)}`)}}startLifecycle(e){return e.onStart(this)}doStop(){for(let e of this.lifecycles)if(e.onStop)try{e.onStop(this)}catch(t){this.logger.error(`Could not stop lifecycle ${e.constructor.name}: ${k.describe(t)}`)}}static{Object.defineProperty(this,"name",{value:`AbstractApplication`,configurable:!0})}};Je([I(Xe),W(),Ye(`design:type`,Array)],K.prototype,`lifecycles`,void 0),Je([I(G),Ye(`design:type`,Object)],K.prototype,`logger`,void 0),Je([I(Ge),Ye(`design:type`,Object)],K.prototype,`securityChecker`,void 0);var et=class{constructor(){this._state=`init`,this.deferred={},this.stateChanged=new o}get state(){return this._state}set state(e){e!==this._state&&(this._state=e,this.deferred[e]===void 0&&(this.deferred[e]=new n),this.deferred[e].resolve(),this.stateChanged.fire(e))}get onStateChanged(){return this.stateChanged.event}reachedState(e){return this.deferred[e]===void 0&&(this.deferred[e]=new n),this.deferred[e].promise}reachedAnyState(...e){return Promise.race(e.map(e=>this.reachedState(e)))}static{Object.defineProperty(this,"name",{value:`AbstractApplicationStateService`,configurable:!0})}},tt;(function(e){let t=[];function n(e,n){if(t.indexOf(e)!==-1)throw Error(`An application error for '${e}' code is already declared`);let r=Object.assign((...t)=>new a(e,n(...t),r),{code:e,is(t){return t instanceof a&&t.code===e}});return r}e.declare=n;function r(e){return e instanceof a}e.is=r;function i(e,t){return new a(e,t)}e.fromJson=i;class a extends Error{constructor(e,t,n){super(t.message),this.code=e,this.data=t.data,Object.setPrototypeOf(this,a.prototype),t.stack?this.stack=t.stack:Error.captureStackTrace&&n&&Error.captureStackTrace(this,n)}toJson(){let{message:e,data:t,stack:n}=this;return{message:e,data:t,stack:n}}static{Object.defineProperty(this,"name",{value:`Impl`,configurable:!0})}}})(tt||={});var nt;(function(e){e.KEY=Symbol.for(`@celljs/core/application-host`);function t(){return globalThis[e.KEY]}e.get=t;function n(t){globalThis[e.KEY]=t}e.set=n})(nt||={});var rt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},it=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},q=class extends K{async start(){await this.doStart(),this.stateService.state=`started`,this.shell&&await this.shell.attach(this),this.stateService.state=`ready`}async stop(){this.stateService.state!==`stopped`&&(this.doStop(),this.stateService.state=`stopped`)}static{Object.defineProperty(this,"name",{value:`ApplicationImpl`,configurable:!0})}};rt([I(Qe),it(`design:type`,Object)],q.prototype,`stateService`,void 0),rt([I($e),W(),it(`design:type`,Object)],q.prototype,`shell`,void 0),q=rt([H(Ze)],q);var at=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ot=class extends et{static{Object.defineProperty(this,"name",{value:`ApplicationStateServiceImpl`,configurable:!0})}};ot=at([H(Qe)],ot);var st=class{constructor(e){this.id=e,this.scope=V.Transient,this.resolved=!1}to(e){return this.type=`class`,this.implementation=e,this}toConstantValue(e){return this.type=`constant`,this.value=e,this.resolved=!0,this.scope=V.Singleton,this}toDynamicValue(e){return this.type=`factory`,this.factory=e,this}toService(e){return this.type=`service`,this.service=e,this.factory=t=>t.container.get(e),this}inSingletonScope(){return this.scope=V.Singleton,this}inTransientScope(){return this.scope=V.Transient,this}when(e,t=`when`){return this.constraint=e,this.condition=t,this}whenTargetNamed(e){return this.when(t=>t.name===e,`named ${String(e)}`)}whenTargetTagged(e,t){return this.when(n=>n.tags!==void 0&&n.tags[e]===t,`tagged ${String(e)}=${String(t)}`)}whenTargetIsDefault(){return this.when(e=>e.name===void 0&&e.tags===void 0,`default`)}onActivation(e){return this.activation=e,this}static{Object.defineProperty(this,"name",{value:`Binding`,configurable:!0})}},ct=class{constructor(e){this.registry=e}static{Object.defineProperty(this,"name",{value:`ContainerModule`,configurable:!0})}},lt=[],J=class e{constructor(...t){this.map=new Map,this.resolving=[],this.requests=[],this.bind(e).toConstantValue(this),this.load(...t)}load(...e){let t=e=>this.bind(e),n=e=>this.unbind(e),r=(e,t)=>this.isBound(e,t),i=e=>this.rebind(e);for(let a of e)a.registry(t,n,r,i)}bind(e){let t=new st(e),n=this.map.get(e);return n?n.push(t):this.map.set(e,[t]),t}rebind(e){return this.unbind(e),this.bind(e)}unbind(e){this.map.delete(e)}isBound(e,t){return t?this.matching({...t,id:e}).length>0:this.map.has(e)}get(e,t){return this.resolve(t?{...t,id:e}:{id:e})}getAll(e,t){return this.resolveAll(t?{...t,id:e}:{id:e},!t)}resolve(e){if(e.multi)return this.resolveAll(e);let t=this.matching(e);if(t.length===1)return this.instance(t[0],e);if(!(t.length===0&&e.optional))throw t.length===0?this.noBinding(e):this.ambiguous(e,t)}bindings(){return this.map}resolveAll(e,t=!1){let n=t?this.map.get(e.id)??lt:this.matching(e);if(n.length===0&&!e.optional)throw this.noBinding(e);let r=Array(n.length);for(let t=0;t<n.length;t++)r[t]=this.instance(n[t],e);return r}matching(e){let t=this.map.get(e.id);if(!t)return lt;for(let n of t)if(n.constraint&&!n.constraint(e))return t.filter(t=>!t.constraint||t.constraint(e));return t}instance(t,n){if(t.resolved)return t.value;if(this.resolving.includes(t))throw this.circular(n);this.resolving.push(t),this.requests.push(n);try{let r;if(t.type===`class`)r=this.construct(t.implementation);else if(t.factory)r=t.factory({container:this,target:n});else throw new A({code:`CELL_DI_INCOMPLETE_BINDING`,message:`The binding of ${e.idName(t.id)} says nothing to resolve it to.`,hint:`Complete bind(id) with .to(Class), .toConstantValue(value), .toDynamicValue(factory) or .toService(id).`,path:this.path()});return t.activation&&(r=t.activation({container:this,target:n},r)),t.scope===V.Singleton&&(t.value=r,t.resolved=!0),r}finally{this.resolving.pop(),this.requests.pop()}}construct(e){let t=F.plan(e),n=t.parameters,r=Array(n.length);for(let e=0;e<n.length;e++)r[e]=this.resolve(n[e]);let i=new e(...r);t.keepsContainer&&F.setContainer(i,this);for(let e of t.properties){let t=this.resolve(e);t===void 0&&e.optional||(i[e.key]=t)}return t.postConstruct!==void 0&&i[t.postConstruct](),i}path(t){let n=this.requests.map(t=>e.idName(t.id));return t?[...n,e.idName(t.id)]:n}neededBy(e){return e.owner?`, needed by ${F.describe(e)}`:``}noBinding(t){let n=this.path(t),r=e.idName(t.id),i=this.map.get(t.id)??[],a=``;return i.length>0?a=` The bindings of ${r} do not match: ${i.map(e.describe).join(`, `)}.`:[...this.map.keys()].some(n=>n!==t.id&&e.idName(n)===r)&&(a=` Another identifier is also named ${r}: two copies of the module that declares it are loaded.`),new A({code:`CELL_DI_NO_BINDING`,message:`No binding for ${e.describe({id:t.id,...e.query(t)})}${this.neededBy(t)}${e.chain(n)}.${a}`,hint:`Bind the identifier in a DI module (@Component(<id>) in a file the module imports), or mark the injection @Optional().`,path:n})}ambiguous(t,n){let r=this.path(t);return new A({code:`CELL_DI_AMBIGUOUS`,message:`${n.length} bindings match ${e.idName(t.id)}${this.neededBy(t)}${e.chain(r)}: ${n.map(e.describe).join(`, `)}.`,hint:`Inject all of them with @Autowired on an array, give one rebind: true to replace the others, or select one with @Named / @Tagged.`,path:r})}circular(e){let t=this.path(e);return new A({code:`CELL_DI_CIRCULAR`,message:`Circular dependency: ${t.join(` → `)}.`,hint:`Break the cycle: get one side lazily (@AutowiredProvider, or @Autowired({ detached: true }) on a property), or move the shared part into another component.`,path:t})}static chain(e){return e.length>1?` (${e.join(` → `)})`:``}static query(e){return{name:e.name,tags:e.tags}}static describe(t){if(t instanceof st){let n=t.type===`class`?t.implementation.name||`(anonymous class)`:t.type===`service`?`→ ${e.idName(t.service)}`:t.type??`incomplete`;return t.condition?`${n} [${t.condition}]`:n}let n=t.tags?Reflect.ownKeys(t.tags).map(e=>` tagged ${String(e)}=${String(t.tags[e])}`).join(``):``;return`${e.idName(t.id)}${t.name===void 0?``:` named ${String(t.name)}`}${n}`}static idName(e){return typeof e==`function`?e.name||`(anonymous class)`:String(e)}static{Object.defineProperty(this,"name",{value:`Container`,configurable:!0})}};function ut(e){let t=Reflect.getMetadata(R.component,Reflect)||[],n=Reflect.getMetadata(R.constantValue,Reflect)||[];return Reflect.defineMetadata(R.component,[],Reflect),Reflect.defineMetadata(R.constantValue,[],Reflect),new ct((r,i,a,o)=>{for(let e of t)ft(e,r,o);for(let e of n)pt(e,r,o);e?.(r,i,a,o)})}function dt(e,t,n){return B.getRaw().aop?.enabled&&n?.constructor&&e.get(Ie).matches(n.constructor,t)?e.get(Fe).create({target:n,metadata:t}).getProxy():n}function ft(e,t,n){let{ids:[r,...i],scope:a,name:o,tag:s,proxy:c,onActivation:l,target:u}=e,d=(e.rebind&&i.length===0?n:t)(r).to(u);a===V.Singleton&&d.inSingletonScope(),l?d.onActivation(l):c&&d.onActivation((t,n)=>dt(t.container,e,n));let f=t=>{o===void 0?s?t.whenTargetTagged(s.tag,s.value):e.default&&t.whenTargetIsDefault():t.whenTargetNamed(o)};i.length===0&&f(d),i.forEach((i,o)=>{let s=(e.rebind&&o===0?n:t)(i).toService(r);a===V.Singleton&&s.inSingletonScope(),f(s)})}function pt(e,t,n){let[r,...i]=Array.isArray(e.id)?e.id:[e.id];(e.rebind?n:t)(r).toConstantValue(e.constantValue);for(let n of i)t(n).toConstantValue(e.constantValue)}var mt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ht=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},gt=Object.fromEntries(He.map((e,t)=>[e,t])),_t=class{setContext(e){this.context=e}resolveContextString(e){return this.context?e?`[${this.context}] [${e}] `:`[${this.context}] `:e?`[${e}] `:``}isEnabled(e){return gt[e]>=(gt[this.level]??gt.info)}resolvePrefix(e){return`${new Date().toISOString()} [${e}]`}log(e,t,n=console.info,r=`info`){let i=this.traceIdProvider?.provide(),a=this.resolveContextString(t),o=e instanceof Error?k.describe(e):e,s=this.resolvePrefix(r);i&&(s=s?`${s} [trace: ${i}]`:`[trace: ${i}]`),n(`${s?`${s} `:``}${a}${o}`),Ue.hasListeners&&Ue.fire({level:r,traceId:i,rootContext:this.context,context:t,message:e})}time(e){(this.timeRecords??=new Map).set(e,Date.now())}timeEnd(e,t){let n=this.timeRecords?.get(e);if(n!==void 0){let r=Date.now()-n;return this.timeRecords.delete(e),this.log(`${e} [${r}ms]`,t),r}this.log(`No such label: ${e} for timeEnd`,t)}static{Object.defineProperty(this,"name",{value:`AbstractLogger`,configurable:!0})}};mt([we(`${ze} ?? 'info'`),ht(`design:type`,String)],_t.prototype,`level`,void 0),mt([I(Be),W(),ht(`design:type`,Object)],_t.prototype,`traceIdProvider`,void 0);var vt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Y={error:(...e)=>console.error(...e),warn:(...e)=>console.warn(...e),info:(...e)=>console.info(...e),debug:(...e)=>console.debug(...e)},yt=class extends _t{error(e,t){this.log(e,t,Y.error,`error`)}info(e,t){this.isEnabled(`info`)&&this.log(e,t,Y.info,`info`)}warn(e,t){this.isEnabled(`warn`)&&this.log(e,t,Y.warn,`warn`)}debug(e,t){this.isEnabled(`debug`)&&this.log(e,t,Y.debug,`debug`)}static{Object.defineProperty(this,"name",{value:`LoggerImpl`,configurable:!0})}};yt=vt([H({id:G,scope:V.Transient})],yt);var bt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xt=class{constructor(){this.onLog=Ue.event}static{Object.defineProperty(this,"name",{value:`LoggerServiceImpl`,configurable:!0})}};xt=bt([H(Ve)],xt);var St=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ct=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},wt=class{matches(e,t){let n=this.container;for(let e of t.sysTags){let t={tags:{[je]:e}};if(n.isBound(Me,t)||n.isBound(Pe,t)||n.isBound(Ne,t))return!0}return!1}static{Object.defineProperty(this,"name",{value:`ClassFilterImpl`,configurable:!0})}};St([I(J),Ct(`design:type`,J)],wt.prototype,`container`,void 0),wt=St([H({id:Ie,proxy:!1})],wt);var Tt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Et=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Dt=class{getAdvices(e,t){let n=this.container,r=[];for(let i of t){let t={tags:{[je]:i}};n.isBound(e,t)&&r.push(...n.getAll(e,t))}return r}create(e){let{metadata:{sysTags:t}}=e,n,r=()=>n??={before:this.getAdvices(Me,t),afterReturning:this.getAdvices(Ne,t),afterThrows:this.getAdvices(Pe,t)},i=new Map,a=new Proxy(e.target,{get:(e,t)=>{if(t===p)return e;let n=e[t];if(typeof n!=`function`)return n;let a=i.get(t);if(a&&a.func===n)return a.wrapper;let o=async(...i)=>{let{before:a,afterReturning:o,afterThrows:s}=r();try{for(let n of a)await n.before(t,i,e);let r=await n.apply(e,i);for(let n of o)await n.afterReturning(r,t,i,e);return r}catch(n){for(let r of s)await r.afterThrows(n,t,i,e);throw n}};return i.set(t,{func:n,wrapper:o}),o}});return{getProxy(){return a}}}static{Object.defineProperty(this,"name",{value:`AopProxyFactoryImpl`,configurable:!0})}};Tt([I(J),Et(`design:type`,J)],Dt.prototype,`container`,void 0),Dt=Tt([H({id:Fe,proxy:!1})],Dt);var Ot=Symbol(`ExpressionCompiler`),X=Symbol(`ExpressionHandler`),kt=Symbol(`ContextInitializer`),At=Symbol(`ExpressionContextProvider`),jt=class extends Error{constructor(e){super(e.message),this.name=`ExpressionSyntaxError`,this.code=e.code,this.hint=e.hint,this.expression=e.expression,this.position=e.position}static{Object.defineProperty(this,"name",{value:`ExpressionSyntaxError`,configurable:!0})}},Mt=class{constructor(e,t){this.source=e,this.run=t}evaluate(e={}){return this.run(e,e)}static{Object.defineProperty(this,"name",{value:`Expression`,configurable:!0})}},Z=class e{constructor(){this.transforms=new Map,this.functions=new Map,this.cache=new Map}addTransform(e,t){return this.transforms.set(e,t),this}addTransforms(e){for(let[t,n]of Object.entries(e))this.addTransform(t,n);return this}addFunction(e,t){return this.functions.set(e,t),this}addFunctions(e){for(let[t,n]of Object.entries(e))this.addFunction(t,n);return this}compile(t){let n=this.cache.get(t);return n||(n=new Mt(t,new zt(t,this).parse()),this.cache.size>=e.CACHE_SIZE&&this.cache.clear(),this.cache.set(t,n)),n}evaluate(e,t={}){return this.compile(e).evaluate(t)}call(e,t,n,r){let i=(e===`transform`?this.transforms:this.functions).get(t);if(!i)throw new jt({code:e===`transform`?`CELL_EL_UNKNOWN_TRANSFORM`:`CELL_EL_UNKNOWN_FUNCTION`,message:`The ${e} ${t} is not defined (in: ${r}).`,hint:`Add it with addT${e.slice(1)}('${t}', ...) on the ExpressionEngine of the application, or check its spelling.`,expression:r});return i(...n)}static{Object.defineProperty(this,"name",{value:`ExpressionEngine`,configurable:!0})}};Z.CACHE_SIZE=1e3;var Nt=[`??`,`//`,`==`,`!=`,`>=`,`<=`,`&&`,`||`,`+`,`-`,`*`,`/`,`%`,`^`,`>`,`<`,`!`],Pt=`.[]|{}:,()?`,Ft={"??":10,"||":10,"&&":10,"==":20,"!=":20,">":20,">=":20,"<":20,"<=":20,in:20,"+":30,"-":30,"*":40,"/":40,"//":40,"%":50,"^":50},It={"==":(e,t)=>e==t,"!=":(e,t)=>e!=t,">":(e,t)=>e>t,">=":(e,t)=>e>=t,"<":(e,t)=>e<t,"<=":(e,t)=>e<=t,in:(e,t)=>typeof t==`string`?t.indexOf(e)!==-1:Array.isArray(t)?t.some(t=>t===e):!1,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"*":(e,t)=>e*t,"/":(e,t)=>e/t,"//":(e,t)=>Math.floor(e/t),"%":(e,t)=>e%t,"^":(e,t)=>e**+t},Lt=/[\p{L}_$]/u,Rt=/[\p{L}\p{N}_$]/u,zt=class{constructor(e,t){this.source=e,this.engine=t,this.index=0,this.relative=!1,this.tokens=this.tokenize()}parse(){if(this.peek().type===`end`)return()=>void 0;let e=this.ternary();if(this.peek().type!==`end`)throw this.unexpected();return e}ternary(){let e=this.binary(0);if(!this.accept(`?`))return e;if(this.peek().type===`punctuation`&&this.peek().value===`:`)throw new jt({code:`CELL_EL_SYNTAX`,message:`'?:' is not an operator at position ${this.peek().start-1} of: ${this.source}`,hint:"Write a default with ??, e.g. ${env.PORT ?? 3000}; || takes the right side for any falsy value.",expression:this.source,position:this.peek().start-1});let t=this.ternaryThen(),n=this.ternary();return(r,i)=>e(r,i)?t(r,i):n(r,i)}ternaryThen(){let e=this.ternary();return this.expect(`:`),e}binary(e){let t=this.unary();for(;;){let n=this.peek(),r=n.type===`operator`?Ft[n.value]:void 0;if(r===void 0||r<e)return t;this.index++;let i=t,a=this.binary(r+1);if(n.value===`&&`)t=(e,t)=>i(e,t)&&a(e,t);else if(n.value===`||`)t=(e,t)=>i(e,t)||a(e,t);else if(n.value===`??`)t=(e,t)=>i(e,t)??a(e,t);else{let e=It[n.value];t=(t,n)=>e(i(t,n),a(t,n))}}}unary(){let e=this.peek();if(e.type===`operator`&&(e.value===`!`||e.value===`-`)){this.index++;let t=this.unary();return e.value===`!`?(e,n)=>!t(e,n):(e,n)=>-t(e,n)}return this.postfix(this.primary())}primary(){let e=this.next();switch(e.type){case`number`:case`string`:case`boolean`:{let t=e.value;return()=>t}case`identifier`:{let t=e.value;if(this.accept(`(`)){let e=this.list(`)`),{engine:n,source:r}=this;return(i,a)=>n.call(`function`,t,e.map(e=>e(i,a)),r)}return e=>e?.[t]}case`punctuation`:switch(e.value){case`.`:{let e=this.identifier();return this.relative=!0,(t,n)=>n?.[e]}case`(`:{let e=this.ternary();return this.expect(`)`),e}case`[`:{let e=this.list(`]`);return(t,n)=>e.map(e=>e(t,n))}case`{`:return this.object()}}throw this.index--,this.unexpected()}object(){let e=[];for(;!this.accept(`}`);){let t=this.next();if(t.type!==`identifier`&&t.type!==`string`)throw this.index--,this.unexpected(`a key`);if(this.expect(`:`),e.push([t.value,this.ternary()]),!this.accept(`,`)){this.expect(`}`);break}}return(t,n)=>{let r={};for(let[i,a]of e)r[i]=a(t,n);return r}}postfix(e){for(;;)if(this.accept(`.`)){let t=this.identifier(),n=e;e=(e,r)=>{let i=n(e,r);if(i!=null)return Array.isArray(i)&&(i=i[0]),i?.[t]}}else if(this.accept(`[`))e=this.filter(e);else if(this.accept(`|`)){let t=this.identifier(),n=this.accept(`(`)?this.list(`)`):[],{engine:r,source:i}=this,a=e;e=(e,o)=>r.call(`transform`,t,[a(e,o),...n.map(t=>t(e,o))],i)}else return e}filter(e){let t=this.relative;this.relative=!1;let n=this.ternary(),r=this.relative;return this.relative=t,this.expect(`]`),r?(t,r)=>{let i=e(t,r);return(Array.isArray(i)?i:i===void 0?[]:[i]).filter(e=>n(t,e))}:(t,r)=>{let i=e(t,r),a=n(t,r);return typeof a==`boolean`?a?i:void 0:i?.[a]}}list(e){let t=[];for(;!this.accept(e);)if(!this.accept(`,`)&&(t.push(this.ternary()),!this.accept(`,`))){this.expect(e);break}return t}identifier(){let e=this.next();if(e.type!==`identifier`)throw this.index--,this.unexpected(`a name`);return e.value}peek(){return this.tokens[this.index]}next(){let e=this.tokens[this.index];return e.type!==`end`&&this.index++,e}accept(e){let t=this.tokens[this.index];return t.type===`punctuation`&&t.value===e&&(this.index++,!0)}expect(e){if(!this.accept(e))throw this.unexpected(`'${e}'`)}unexpected(e){let t=this.peek(),n=t.type===`end`?`end of expression`:`'${this.source.slice(t.start,this.tokens[this.index+1]?.start??this.source.length).trim()}'`;return this.syntaxError(t.start,`Unexpected ${n}${e?`, expected ${e}`:``}`)}syntaxError(e,t){return new jt({code:`CELL_EL_SYNTAX`,message:`${t} at position ${e} of: ${this.source}`,hint:`Check quotes, brackets and operators; expressions are names, literals, operators, value|transform and function() calls.`,expression:this.source,position:e})}tokenize(){let e=this.source,t=[],n=e=>e!==void 0&&e>=`0`&&e<=`9`,r=0;for(;r<e.length;){let i=e[r],a=r;if(/\s/.test(i))r++;else if(i===`'`||i===`"`){let n=``;for(r++;r<e.length&&e[r]!==i;)if(e[r]===`\\`&&r+1<e.length){let t=e[r+1];n+=t===i||t===`\\`?t:`\\`+t,r+=2}else n+=e[r++];if(r>=e.length)throw this.syntaxError(a,`Unterminated string`);r++,t.push({type:`string`,value:n,start:a})}else if(n(i)){for(;n(e[r]);)r++;if(e[r]===`.`&&n(e[r+1]))for(r++;n(e[r]);)r++;t.push({type:`number`,value:parseFloat(e.slice(a,r)),start:a})}else if(Lt.test(i)){for(;r<e.length&&Rt.test(e[r]);)r++;let n=e.slice(a,r);n===`true`||n===`false`?t.push({type:`boolean`,value:n===`true`,start:a}):t.push({type:n===`in`?`operator`:`identifier`,value:n,start:a})}else{let n=Nt.find(t=>e.startsWith(t,r));if(n)t.push({type:`operator`,value:n,start:a}),r+=n.length;else if(Pt.includes(i))t.push({type:`punctuation`,value:i,start:a}),r++;else throw this.syntaxError(a,`Unexpected character '${i}'`)}}return t.push({type:`end`,value:void 0,start:e.length}),t}static{Object.defineProperty(this,"name",{value:`ExpressionParser`,configurable:!0})}},Bt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Vt=class extends Z{static{Object.defineProperty(this,"name",{value:`ApplicationExpressionEngine`,configurable:!0})}};Vt=Bt([H(Z)],Vt);var Ht;(function(e){e.PREFIX=`CELL_`,e.RESERVED=[`CELL_PRESET`,`CELL_MODE`,`CELL_EVENT`,`CELL_OUT_DIR`,`CELL_DEBUG`];function t(t){return t.startsWith(e.PREFIX)&&!e.RESERVED.includes(t)}e.isOverride=t;function n(n,r,s={}){let c={applied:[],problems:[]},u=e.PREFIX,d=[];for(let e of Object.keys(r).filter(t).sort()){let t=r[e];if(t===void 0)continue;let i=e.slice(u.length).split(`__`);if(i.length!==1||l(n,i[0])!==void 0)try{d.push({variable:e,value:t,...a(n,i)})}catch(t){c.problems.push({variable:e,message:t.message})}}for(let e of d){let t=e.keys.join(`.`),r=d.filter(t=>t!==e&&i(e.keys,t.keys));if(r.length>0){let n=r.map(e=>`${e.variable} (${e.keys.join(`.`)})`).join(`, `);c.problems.push({variable:e.variable,message:`sets ${t}, which ${n} also set${r.length===1?`s`:``}. Set each key with one variable; to change items of an object or array you replace, write them into its JSON.`})}else try{o(n,e.keys,e.value,s[t]),s[t]===void 0&&f(e.value)&&(e.type===`number`||e.type===`boolean`)&&(s[t]=e.type),c.applied.push({variable:e.variable,path:t})}catch(t){c.problems.push({variable:e.variable,message:t.message})}}return c.problems.sort((e,t)=>e.variable<t.variable?-1:+(e.variable>t.variable)),c}e.apply=n;function r(e,t={}){let r=n(e,{},t);for(let e of r.problems)console.warn(`[cell] ${e.variable} is ignored: ${e.message}`);return r}e.applyProcessEnv=r;function i(e,t){let n=Math.min(e.length,t.length);return e.slice(0,n).every((e,n)=>e===t[n])}function a(e,t){if(t[0].startsWith(`_`))throw Error(`one underscore after CELL, then \`__\` between keys: CELL_${t[0].replace(/^_+/,``)}${t.length>1?`__`+t.slice(1).join(`__`):``}.`);if(/^(BACKEND|FRONTEND)$/i.test(t[0])&&l(e,t[0])===void 0)throw Error(`the CELL_BACKEND__ / CELL_FRONTEND__ prefixes are gone: the same variable serves both sides, e.g. CELL_${t.slice(1).join(`__`)||`SERVER__PORT`}.`);if(t.some(e=>!e))throw Error(`empty segment; separate keys with exactly two underscores.`);let n=[],r=e;for(let e=0;e<t.length;e++){let i=l(r,t[e]);if(i===void 0){let i=n.length>0?n.join(`.`):`the top level`,a=Array.isArray(r)?`indexes 0-${r.length-1}`:`keys: ${Object.keys(r).join(`, `)||`(none)`}`;throw Error(`no key '${t[e]}' under ${i} (${a}). Only keys present in cell.yml can be overridden.`)}if(n.push(i),e<t.length-1){if(!r[i]||typeof r[i]!=`object`)throw Error(`${n.join(`.`)} is not an object, so it has no key '${t[e+1]}'.`);r=r[i]}}return{keys:n,type:typeof r[n[n.length-1]]}}function o(e,t,n,r){let i=t.slice(0,-1).reduce((e,t)=>e[t],e),a=t[t.length-1],o=t.join(`.`);i[a]=r&&!f(n)?s(r,n,o):p(i[a],n,o)}function s(e,t,n){if(typeof t!=`string`)return t;switch(e){case`number`:return m(t,n);case`integer`:{let e=m(t,n);if(!Number.isInteger(e))throw Error(`${n} is an integer, got '${t}'.`);return e}case`boolean`:return c(t,n);default:return t}}e.toType=s;function c(e,t){if(!/^(true|false)$/i.test(e))throw Error(`${t} is a boolean, got '${e}'. Use true or false.`);return e.toLowerCase()===`true`}function l(e,t){if(Array.isArray(e))return/^(0|[1-9]\d*)$/.test(t)&&Number(t)<e.length?t:void 0;let n=u(t),r=Object.keys(e);return r.find(e=>e===t)??r.find(e=>u(e)===n)}function u(e){return e.replace(/[-_]/g,``).toLowerCase()}let d=/^-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?$/;function f(e){return e.startsWith("${")&&e.endsWith(`}`)&&e.indexOf("${",2)===-1}function p(e,t,n){if(f(t))return t;switch(typeof e){case`number`:return m(t,n);case`boolean`:return c(t,n);case`object`:if(e===null){let e=g(t);return e?e.value:t}return h(e,t,n);default:return t}}function m(e,t){let n=d.test(e)?Number(e):NaN;if(!Number.isFinite(n))throw Error(`${t} is a number, got '${e}'. Use a decimal number such as 8080, -1 or 0.5.`);if(/^-?\d+$/.test(e)&&!Number.isSafeInteger(n))throw Error(`${t} is a number, got '${e}', which is too large to keep exactly. Use a string in cell.yml for such values.`);return n}function h(e,t,n){let r=Array.isArray(e)?`an array`:`an object`,i=g(t)?.value;if(typeof i!=`object`||!i||Array.isArray(i)!==Array.isArray(e))throw Error(`${n} is ${r}; pass it as JSON, or override its keys one by one.`);return i}function g(e){try{return{value:JSON.parse(e)}}catch{return}}})(Ht||={});var Ut=class e{constructor(t=()=>e.defaultEngine??=new Z){this.engine=t,this.ESCAPE_CHAR=`\\`,this.SPECIAL_CHAR=`$`,this.BRACKET_BEGIN=`{`,this.BRACKET_END=`}`}getSpecialChar(e){return e.ignoreSpecialChar?``:e.specialChar}equalsSpecialChar(e,t){return!e.ignoreSpecialChar&&t===e.specialChar}compileSections(e,t){let n={escapeChar:this.ESCAPE_CHAR,specialChar:this.SPECIAL_CHAR,bracketBegin:this.BRACKET_BEGIN,bracketEnd:this.BRACKET_END,...t};if(!e||e.indexOf(`${this.getSpecialChar(n)}${n.bracketBegin}`)<0)return[];let r=[],i=e;for(;i;){let e=this.middleCompile(i,n);e?(r.push(e.expression),i=e.nextText):(r.push(i),i=void 0)}return r}middleCompile(e,t){let n,r=`${this.getSpecialChar(t)}${t.bracketBegin}`,i=`${r}${t.bracketBegin}`;return n=e.startsWith(i)?this.nextMiddleExpression(e.substring(i.length),2,t):e.startsWith(r)?this.nextMiddleExpression(e.substring(r.length),void 0,t):this.nextString(e,t),n}nextMiddleExpression(e,t=1,n){let r=!1,i=!1,a=0,o=[];for(let s=0;s<e.length;s++){let c=e[s];if(!i){if(c===`'`||c===`"`){r=!r,o.push(c);continue}if(c===n.escapeChar){i=!0;continue}}if(r)o.push(c),i=!1;else if(i)this.equalsSpecialChar(n,c)||n.bracketBegin===c||n.bracketEnd===c||o.push(n.escapeChar),o.push(c),i=!1;else if(n.bracketBegin===c)a++,o.push(c);else if(n.bracketEnd===c){if(a===0&&t===1){let t=this.engine().compile(o.join(``)),n;return s!==e.length-1&&(n=e.substring(s+1)),{expression:t,nextText:n}}a>0?(a--,o.push(c)):t--}else o.push(c)}}nextString(e,t){let n=!1,r=!1,i=[];for(let a=0;a<e.length;a++){let o=e[a];if(!n){if(o===`'`||o===`"`){i.push(o);continue}if(o===t.escapeChar){n=!0;continue}}if(n)this.equalsSpecialChar(t,o)||t.bracketBegin===o||t.bracketEnd===o||i.push(t.escapeChar),i.push(o),n=!1;else if(r||t.ignoreSpecialChar){if(t.bracketBegin===o)return{expression:i.join(``),nextText:t.ignoreSpecialChar?e.substring(a):e.substring(a-1)};t.ignoreSpecialChar||(r=!1,i.push(t.specialChar)),i.push(o)}else this.equalsSpecialChar(t,o)?r=!0:i.push(o)}return{expression:i.join(``)}}static{Object.defineProperty(this,"name",{value:`ExpressionSectionCompiler`,configurable:!0})}},Wt=class extends Error{constructor(e,t,n,r){super(n),this.path=e,this.template=t,this.cause=r,this.name=`ExpressionError`}static{Object.defineProperty(this,"name",{value:`ExpressionError`,configurable:!0})}},Q;(function(e){let t;function n(e){let t={};for(let[n,r]of Object.entries(e))r!==void 0&&r!==``&&(t[n]=r);return t}e.definedEnv=n;function r(e){return e.compiler??(t??=new Ut)}function i(e,t,n={}){let i=r(n).compileSections(e,n.compilerOptions);if(!i.some(e=>typeof e!=`string`))return e;let a=typeof t==`function`?t():t;return i.length===1?i[0].evaluate(a):i.map(e=>typeof e==`string`?e:e.evaluate(a)).join(``)}e.evaluateText=i;function a(e,t,n){o(e,[],t,n)}e.walk=a;function o(e,t,n,r){if(typeof e==`object`&&e&&e._ignoreEl!==!0&&!t.includes(e)){t.push(e);for(let i of Object.keys(e)){let a=e[i];if(typeof a==`string`){let t=n(a,e,i);t!==a&&(e[i]=t)}else r&&typeof a==`object`&&a&&r(a,e,i),o(a,t,n,r)}t.pop()}}function s(e,t={}){let n=new Map,r=[],o=new WeakMap([[e,``]]),s=new WeakMap,c=new WeakMap,l=(e,t)=>{let n=o.get(e);return n?`${n}.${t}`:t},u=e=>typeof e!=`object`||!e?e:c.get(e)||(Array.isArray(e)?e.map(u):Object.getPrototypeOf(e)===Object.prototype?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,u(t)])):e),d=(a,o)=>{let s=n.get(a);if(s?.has(o))return s.get(o);let c=a[o],d=l(a,o);if(r.includes(d))throw new Wt(d,c,`Circular reference in the configuration: ${[...r,d].join(` -> `)}`);r.push(d);let p;try{p=u(i(c,()=>f(e),t));let n=t.types?.[d];n&&(p=Ht.toType(n,p,d))}catch(e){throw e instanceof Wt?e:new Wt(d,c,`Cannot evaluate ${d}: ${c} (${e?.message??e})`,e)}finally{r.pop()}return n.has(a)||n.set(a,new Map),n.get(a).set(o,p),p},f=e=>{if(typeof e!=`object`||!e||e._ignoreEl===!0)return e;let t=s.get(e);if(!t){let n=new Proxy(e,{get:(e,t,n)=>{let r=Reflect.get(e,t,n);return typeof t!=`string`||!Object.prototype.hasOwnProperty.call(e,t)?r:typeof r==`string`?d(e,t):(typeof r==`object`&&r&&!o.has(r)&&o.set(r,l(e,t)),f(r))}});s.set(e,n),c.set(n,e),t=n}return t};a(e,(e,n,r)=>t.include&&!t.include(l(n,r))?e:d(n,r),(e,t,n)=>{o.has(e)||o.set(e,l(t,n))})}e.evaluateConfiguration=s})(Q||={});var Gt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kt=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},qt=class{constructor(){this.sectionCompiler=new Ut(()=>this.engine)}compileSections(e,t={}){return this.sectionCompiler.compileSections(e,t)}static{Object.defineProperty(this,"name",{value:`ExpressionCompilerImpl`,configurable:!0})}};Gt([I(Z),Kt(`design:type`,Z)],qt.prototype,`engine`,void 0),qt=Gt([H(Ot)],qt);var Jt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yt=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Xt=function(e,t){return function(n,r){t(n,r,e)}},Zt=class{constructor(e){this.contextInitializers=e,this.initialized=!1,this.ctx=B.getRaw()}provide(){if(this.prioritized||=t.prioritizeAllSync(this.contextInitializers).map(e=>e.value),!this.initialized){this.initialized=!0;for(let e of this.prioritized)e.initialize(this.ctx)}return this.ctx}static{Object.defineProperty(this,"name",{value:`ExpressionContextProviderImpl`,configurable:!0})}};Zt=Jt([H(At),Xt(0,I(kt)),Xt(0,W()),Yt(`design:paramtypes`,[Array])],Zt);var Qt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$t=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},en=class{getContext(e,t){let n=e||this.expressionContextProvider.provide();return!e&&n!==this._ctx&&!t?.ignoreContextExpression&&(this._ctx=n,Q.evaluateConfiguration(n,{...this.options(t),types:B.getTypes()})),n}handle(e,t,n){let r=this.options(n),i=()=>this.getContext(t,n);return typeof e==`string`?Q.evaluateText(e,i,r):(Q.walk(e,e=>Q.evaluateText(e,i,r)),e)}options(e){return{compiler:this.expressionCompiler,compilerOptions:e}}static{Object.defineProperty(this,"name",{value:`ExpressionHandlerImpl`,configurable:!0})}};Qt([I(At),$t(`design:type`,Object)],en.prototype,`expressionContextProvider`,void 0),Qt([I(Ot),$t(`design:type`,Object)],en.prototype,`expressionCompiler`,void 0),en=Qt([H(X)],en);var tn=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},nn=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},rn=class{constructor(){this.priority=500}initialize(e){typeof process<`u`&&(e.env={...Q.definedEnv({}),_ignoreEl:!0}),this.engine.addTransforms({replace:(e,t,n)=>e&&e.replace(new RegExp(t,`g`),n),regexp:(e,t)=>new RegExp(e,t),eval:e=>this.expressionHandler.handle(e)})}static{Object.defineProperty(this,"name",{value:`CoreContextInitializer`,configurable:!0})}};tn([I(Z),nn(`design:type`,Z)],rn.prototype,`engine`,void 0),tn([I({id:X,detached:!0}),nn(`design:type`,Object)],rn.prototype,`expressionHandler`,void 0),rn=tn([H(kt)],rn);var an=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},on=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},sn=class{get(e,t){return this.expressionHandler.handle(`\${${e}}`)??t}static{Object.defineProperty(this,"name",{value:`ConfigProviderImpl`,configurable:!0})}};an([I(X),on(`design:type`,Object)],sn.prototype,`expressionHandler`,void 0),sn=an([H(U)],sn);var cn=Symbol(`ComponentFilterRegistry`),ln=Symbol(`ComponentFilterContribution`),un=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},dn=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},fn=function(e,t){return function(n,r){t(n,r,e)}},pn=class{constructor(e=[]){this.initialized=!1,this.genericFilters=[],this.typeToFilters=new Map;for(let t of e)t.registerContributionFilters(this);this.initialized=!0}addFilters(e,t){if(this.initialized)throw Error(`cannot add filters after initialization is done.`);if(e===`*`)this.genericFilters.push(...t);else for(let n of e)this.getOrCreate(n).push(...t)}applyFilters(e,t){let n=this.getFilters(t);return n.length===0?e:e.filter(e=>n.every(t=>t(e)))}getOrCreate(e){let t=this.typeToFilters.get(e);return t===void 0&&this.typeToFilters.set(e,t=[]),t}getFilters(e){return[...this.typeToFilters.get(e)||[],...this.genericFilters]}static{Object.defineProperty(this,"name",{value:`ComponentFilterRegistryImpl`,configurable:!0})}};pn=un([H(cn),fn(0,I(ln)),fn(0,W()),dn(`design:paramtypes`,[Array])],pn);var mn=e=>{if(e)return`priority`in e?e.priority:`order`in e?e.order:0},hn=class{constructor(e,t){this.componentId=e,this.container=t}get(){if(this.components===void 0){let e=this.container.isBound(this.componentId)?this.container.getAll(this.componentId):[],t=this.container.isBound(cn)?this.container.get(cn):void 0;this.components=t?t.applyFilters(e,this.componentId):e}return this.components}sortSync(e=mn){return this.components=t.prioritizeAllSync(this.get(),e).map(e=>e.value),this.components}async sort(e=mn){let n=await t.prioritizeAll(this.get(),e);return this.components=n.map(e=>e.value),this.components}static{Object.defineProperty(this,"name",{value:`ContainerBasedProvider`,configurable:!0})}};function gn(e){e(Le).toDynamicValue(e=>new hn(e.target.tags[Re],e.container))}var _n=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vn=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},$=class{async check(){let e=[];for(let t of this.checks)e.push(...await t.check());return e}async enforce(){if(this.policy===`off`||this.checks.length===0||!this.isProduction())return;let e=await this.check();if(e.length!==0){if(this.policy===`fail`)throw new qe(e);for(let t of e)this.logger.warn(qe.format(t))}}isProduction(){return typeof process<`u`&&!0}static{Object.defineProperty(this,"name",{value:`SecurityCheckerImpl`,configurable:!0})}};_n([I(We),W(),vn(`design:type`,Array)],$.prototype,`checks`,void 0),_n([we(`${Ke} ?? 'warn'`),vn(`design:type`,String)],$.prototype,`policy`,void 0),_n([I(G),vn(`design:type`,Object)],$.prototype,`logger`,void 0),$=_n([H(Ge)],$);export{x as C,o as D,d as E,t as O,S,m as T,R as _,nt as a,O as b,Xe as c,Ae as d,W as f,H as g,U as h,J as i,$e as l,ke as m,X as n,tt as o,we as p,ut as r,Ze as s,gn as t,G as u,I as v,b as w,E as x,de as y};