@cleocode/cleo 2026.9.7 → 2026.9.9

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 (690) hide show
  1. package/dist/cli/index.js +3766 -2232
  2. package/package.json +14 -13
  3. package/scripts/check-cleo-tarball-size.mjs +105 -0
  4. package/scripts/copy-studio-dist.mjs +33 -9
  5. package/studio-dist/client/_app/immutable/chunks/{wI_OOyoh.js → BB7zPpV2.js} +1 -1
  6. package/studio-dist/client/_app/immutable/chunks/{D8NsLz6i.js → BOnrCZaR.js} +1 -1
  7. package/studio-dist/client/_app/immutable/chunks/{TX-23QW3.js → BiaAd37T.js} +1 -1
  8. package/studio-dist/client/_app/immutable/chunks/C6jhAnil.js +1 -0
  9. package/studio-dist/client/_app/immutable/chunks/C87Q3uxm.js +1 -0
  10. package/studio-dist/client/_app/immutable/chunks/{CqF5Lomf.js → CTLGzgdN.js} +1 -1
  11. package/studio-dist/client/_app/immutable/chunks/{o1PZ6Kzq.js → CY3heNub.js} +1 -1
  12. package/studio-dist/client/_app/immutable/chunks/{RptFUp2P.js → Cge6qiwc.js} +1 -1
  13. package/studio-dist/client/_app/immutable/chunks/{BRgWBQlV.js → CnwXLaZJ.js} +1 -1
  14. package/studio-dist/client/_app/immutable/chunks/{Bxz2A0ZC.js → DEH43YwF.js} +1 -1
  15. package/studio-dist/client/_app/immutable/chunks/DGftG5oL.js +3 -0
  16. package/studio-dist/client/_app/immutable/chunks/{DVHIxkgs.js → DV2HHHkd.js} +1 -1
  17. package/studio-dist/client/_app/immutable/chunks/{eK8hf4s7.js → DXxEgUey.js} +1 -1
  18. package/studio-dist/client/_app/immutable/chunks/{CEqOYim7.js → DZrdToAH.js} +1 -1
  19. package/studio-dist/client/_app/immutable/chunks/EZwHPWle.js +2 -0
  20. package/studio-dist/client/_app/immutable/chunks/{B9psmq5-.js → rB_71s8h.js} +1 -1
  21. package/studio-dist/client/_app/immutable/chunks/{JPJd4fEI.js → rUtW7Hx6.js} +1 -1
  22. package/studio-dist/client/_app/immutable/chunks/zWFSpNUo.js +1 -0
  23. package/studio-dist/client/_app/immutable/entry/app.AR3q6Ydw.js +2 -0
  24. package/studio-dist/client/_app/immutable/entry/start.Cf2RUEwO.js +1 -0
  25. package/studio-dist/client/_app/immutable/nodes/{0.CZzEEyVh.js → 0.BEkWfyyt.js} +1 -1
  26. package/studio-dist/client/_app/immutable/nodes/{1.Bj3Opbua.js → 1.DfbrPFgR.js} +1 -1
  27. package/studio-dist/client/_app/immutable/nodes/{10.xe_Mc2Ko.js → 10.3rxHNnSx.js} +1 -1
  28. package/studio-dist/client/_app/immutable/nodes/{11.DuKPA7JD.js → 11.B6jWv3Kz.js} +1 -1
  29. package/studio-dist/client/_app/immutable/nodes/{12.BoZ_QrUS.js → 12.BrDHeTEq.js} +1 -1
  30. package/studio-dist/client/_app/immutable/nodes/{13.DFJiUiv8.js → 13.CE5bd4JV.js} +1 -1
  31. package/studio-dist/client/_app/immutable/nodes/{14.eaAlFU4w.js → 14.DgXD2LRx.js} +1 -1
  32. package/studio-dist/client/_app/immutable/nodes/{15.BfXgiwMC.js → 15.CdRO2NCB.js} +1 -1
  33. package/studio-dist/client/_app/immutable/nodes/{16.mEwy9cqh.js → 16.Cr01BBgh.js} +1 -1
  34. package/studio-dist/client/_app/immutable/nodes/{17.DP2QtQGn.js → 17.PZ1GrCot.js} +1 -1
  35. package/studio-dist/client/_app/immutable/nodes/{18.Bu0054sX.js → 18.Crly2qhe.js} +1 -1
  36. package/studio-dist/client/_app/immutable/nodes/{19.UWt6QbCm.js → 19.su55K8y_.js} +1 -1
  37. package/studio-dist/client/_app/immutable/nodes/{2.y5jKpHiR.js → 2.mqgFVWFQ.js} +1 -1
  38. package/studio-dist/client/_app/immutable/nodes/{20.B1AIHdkP.js → 20.DqQjto4P.js} +1 -1
  39. package/studio-dist/client/_app/immutable/nodes/{21.CpAN71H8.js → 21.BhwhdQCq.js} +1 -1
  40. package/studio-dist/client/_app/immutable/nodes/{22.CrYKrN4c.js → 22.BmJEWwER.js} +1 -1
  41. package/studio-dist/client/_app/immutable/nodes/{23.pGRaHQjq.js → 23.CAVIJEH-.js} +1 -1
  42. package/studio-dist/client/_app/immutable/nodes/{24.BUoUu37z.js → 24.BIypnou8.js} +1 -1
  43. package/studio-dist/client/_app/immutable/nodes/25.CllbQ5CT.js +39 -0
  44. package/studio-dist/client/_app/immutable/nodes/26.DILkE52_.js +1 -0
  45. package/studio-dist/client/_app/immutable/nodes/{28.DcmYM7lb.js → 28.D64RBcfs.js} +1 -1
  46. package/studio-dist/client/_app/immutable/nodes/{29.lbHbMqNO.js → 29.yfuBeH1x.js} +1 -1
  47. package/studio-dist/client/_app/immutable/nodes/{3.Dyir4xXj.js → 3.ChHbetZy.js} +1 -1
  48. package/studio-dist/client/_app/immutable/nodes/{30.DXj0Wm2A.js → 30.1WUv5bh9.js} +1 -1
  49. package/studio-dist/client/_app/immutable/nodes/4.D6vXYBoQ.js +1 -0
  50. package/studio-dist/client/_app/immutable/nodes/{5.VWSdP7oc.js → 5.hjw2O-4e.js} +1 -1
  51. package/studio-dist/client/_app/immutable/nodes/{6.Dl-XLwOj.js → 6.CAoDfDt6.js} +1 -1
  52. package/studio-dist/client/_app/immutable/nodes/{7.CFuC5L-y.js → 7.CLgPSQ8Z.js} +1 -1
  53. package/studio-dist/client/_app/immutable/nodes/{8.BCJ0DhOb.js → 8.zuaO1Hik.js} +1 -1
  54. package/studio-dist/client/_app/immutable/nodes/{9.Bq4SUzL9.js → 9.Cdsd85m2.js} +1 -1
  55. package/studio-dist/client/_app/version.json +1 -1
  56. package/studio-dist/server/chunks/0-BvvArN5K.js +41 -0
  57. package/studio-dist/server/chunks/1-rLPlIpIR.js +9 -0
  58. package/studio-dist/server/chunks/{10-DvOD4ksa.js → 10-CYLc3d5x.js} +3 -3
  59. package/studio-dist/server/chunks/{11-DMnBZ02H.js → 11-DcIYR5vm.js} +3 -3
  60. package/studio-dist/server/chunks/{12-CCyRyRWX.js → 12-WE1u104t.js} +3 -3
  61. package/studio-dist/server/chunks/{13-Dx1c3a_X.js → 13-joBDoxhK.js} +3 -3
  62. package/studio-dist/server/chunks/{14-Bo-dTCaZ.js → 14-Doj5F4uJ.js} +3 -3
  63. package/studio-dist/server/chunks/{15-BvUNl3KL.js → 15-BlL3H5S5.js} +3 -3
  64. package/studio-dist/server/chunks/{16-De6EzPSa.js → 16-C-UvTi7Z.js} +5 -4
  65. package/studio-dist/server/chunks/{17-CZNsiZhi.js → 17-C790IKoE.js} +10 -93
  66. package/studio-dist/server/chunks/{18-CbxxjZox.js → 18-6VS9Vgfx.js} +5 -4
  67. package/studio-dist/server/chunks/{19-DqHyladS.js → 19-BAQHPrMB.js} +3 -3
  68. package/studio-dist/server/chunks/{2-COvmA-ZA.js → 2-DXSVVaej.js} +10 -93
  69. package/studio-dist/server/chunks/20-DUG4_xXL.js +57 -0
  70. package/studio-dist/server/chunks/{21-DXK9ptAC.js → 21-qhGjkW41.js} +4 -31
  71. package/studio-dist/server/chunks/{22-DD5CLWJC.js → 22-Byy16hFA.js} +3 -3
  72. package/studio-dist/server/chunks/23-CZpFrGp4.js +97 -0
  73. package/studio-dist/server/chunks/24-CkIGZX8S.js +67 -0
  74. package/studio-dist/server/chunks/{25-CAg6Xcmn.js → 25-CHBaeXym.js} +15 -96
  75. package/studio-dist/server/chunks/{26-_nfVTvNi.js → 26-BbDd--8j.js} +12 -93
  76. package/studio-dist/server/chunks/{27-C9edghG4.js → 27-Cqzlh9gZ.js} +3 -2
  77. package/studio-dist/server/chunks/{28-VemTJGyc.js → 28-DeYe2rpm.js} +8 -62
  78. package/studio-dist/server/chunks/{29-CXP-m29t.js → 29-6pjLM0Z1.js} +10 -93
  79. package/studio-dist/server/chunks/{3-B8KhfvHp.js → 3-DMSsQV71.js} +9 -25
  80. package/studio-dist/server/chunks/{30-QiM1S4cJ.js → 30-Dw317sSW.js} +10 -93
  81. package/studio-dist/server/chunks/{31-BwdY9NnB.js → 31-Q4kHbp8j.js} +3 -2
  82. package/studio-dist/server/chunks/{4-CSaG4HjO.js → 4-C9BMSh4K.js} +4 -3
  83. package/studio-dist/server/chunks/{5-i5ry4y3C.js → 5-C0CF4WKG.js} +3 -3
  84. package/studio-dist/server/chunks/{6-DR1GWBMT.js → 6-BWyOJust.js} +3 -3
  85. package/studio-dist/server/chunks/{7-DSNwn3aQ.js → 7-CK4MK5gy.js} +3 -3
  86. package/studio-dist/server/chunks/{8-Bj0bx07K.js → 8-CiX7Xk9k.js} +3 -3
  87. package/studio-dist/server/chunks/{9-B3Tz0mZq.js → 9-Be5118w4.js} +3 -3
  88. package/studio-dist/server/chunks/{HeroHeader-v4Q9vaGr.js → HeroHeader-BrGN5WPw.js} +2 -2
  89. package/studio-dist/server/chunks/{Sparkline-BJ-GuhRd.js → Sparkline-DU_NVxz9.js} +2 -2
  90. package/studio-dist/server/chunks/{StatBlock-DHJMmOCx.js → StatBlock-jNsxycS1.js} +2 -2
  91. package/studio-dist/server/chunks/{Tabs-DzG6Bn9a.js → Tabs-DQKDflnT.js} +2 -2
  92. package/studio-dist/server/chunks/_dispatch-DTWViLGL.js +145 -0
  93. package/studio-dist/server/chunks/{_layout.svelte-BEIGQcIv.js → _layout.svelte-BjSWu4Fw.js} +7 -9
  94. package/studio-dist/server/chunks/{_page.svelte-al08ovKm.js → _page.svelte-6iMiGR11.js} +5 -5
  95. package/studio-dist/server/chunks/{_page.svelte-Byz2djto.js → _page.svelte-B-YXGvAW.js} +5 -5
  96. package/studio-dist/server/chunks/{_page.svelte-UYiF7YBK.js → _page.svelte-BCRyjlk2.js} +5 -5
  97. package/studio-dist/server/chunks/{_page.svelte-2cgtvHwW.js → _page.svelte-BdkomWnj.js} +13 -71
  98. package/studio-dist/server/chunks/{_page.svelte-CCoTp89s.js → _page.svelte-BoYafqft.js} +3 -3
  99. package/studio-dist/server/chunks/{_page.svelte-nzffIbBP.js → _page.svelte-C7Wm6_HB.js} +3 -3
  100. package/studio-dist/server/chunks/{_page.svelte-Wfx7ww_h.js → _page.svelte-CIyzbngu.js} +11 -13
  101. package/studio-dist/server/chunks/{_page.svelte-C_VSL8NW.js → _page.svelte-CmbOzJ6A.js} +13 -71
  102. package/studio-dist/server/chunks/{_page.svelte-CophUar3.js → _page.svelte-CqI6hqMm.js} +5 -5
  103. package/studio-dist/server/chunks/{_page.svelte-tYN7_LXI.js → _page.svelte-CtSwzG-R.js} +9 -11
  104. package/studio-dist/server/chunks/{_page.svelte-DYNorA0S.js → _page.svelte-Cx9Ptecp.js} +10 -67
  105. package/studio-dist/server/chunks/{_page.svelte-9OQphlnm.js → _page.svelte-D4Uf5q1X.js} +14 -69
  106. package/studio-dist/server/chunks/{_page.svelte-BIlhmugm.js → _page.svelte-DRjD44sK.js} +11 -13
  107. package/studio-dist/server/chunks/{_page.svelte-BVVTrzTL.js → _page.svelte-DaheDIRs.js} +5 -5
  108. package/studio-dist/server/chunks/{_page.svelte-DOWw416I.js → _page.svelte-DfIiE7gL.js} +11 -13
  109. package/studio-dist/server/chunks/{_page.svelte-M5D2QnMS.js → _page.svelte-Dm8y5a8S.js} +10 -67
  110. package/studio-dist/server/chunks/{_page.svelte-B_pq-Z98.js → _page.svelte-DqXxyNsF.js} +7 -7
  111. package/studio-dist/server/chunks/{_page.svelte-C3aIui4o.js → _page.svelte-DqsbnAhk.js} +4 -4
  112. package/studio-dist/server/chunks/{_page.svelte-ksTJUXce.js → _page.svelte-Dt0_c1T-.js} +3 -3
  113. package/studio-dist/server/chunks/{_page.svelte-bGhsrIjS.js → _page.svelte-Dv6iwhu7.js} +3 -3
  114. package/studio-dist/server/chunks/{_page.svelte-BXyoMME1.js → _page.svelte-GPiHej3P.js} +5 -5
  115. package/studio-dist/server/chunks/{_page.svelte-CYDjW1R0.js → _page.svelte-LuRm8XxE.js} +5 -5
  116. package/studio-dist/server/chunks/{_page.svelte-Clbkk1gm.js → _page.svelte-Z7nL9SC-.js} +8 -9
  117. package/studio-dist/server/chunks/{_page.svelte-DUWbZjC7.js → _page.svelte-_kntHS6v.js} +4 -4
  118. package/studio-dist/server/chunks/{_page.svelte-l4Z_xjl9.js → _page.svelte-k-4NCnbz.js} +9 -11
  119. package/studio-dist/server/chunks/{_page.svelte-CHzXuw2Q.js → _page.svelte-me5SUosG.js} +3 -3
  120. package/studio-dist/server/chunks/{_page.svelte-BgwL2Gyu.js → _page.svelte-sHj6UAzC.js} +11 -13
  121. package/studio-dist/server/chunks/{_server.ts-DSzRdt1U.js → _server.ts--2m_U4SL.js} +11 -94
  122. package/studio-dist/server/chunks/{_server.ts-ujoDR2_g.js → _server.ts--sGLmBsz.js} +10 -92
  123. package/studio-dist/server/chunks/{_server.ts-k2fApwOp.js → _server.ts-0ukyuE0I.js} +5 -60
  124. package/studio-dist/server/chunks/_server.ts-1eW2mTeh.js +40 -0
  125. package/studio-dist/server/chunks/{_server.ts-Bfr4u3EP.js → _server.ts-3LzqLzt0.js} +10 -92
  126. package/studio-dist/server/chunks/_server.ts-5euivmMj.js +38 -0
  127. package/studio-dist/server/chunks/{_server.ts-CShsBkeE.js → _server.ts-B0uoay97.js} +7 -23
  128. package/studio-dist/server/chunks/{_server.ts-hL92cV7Z.js → _server.ts-B5vYKkI6.js} +9 -63
  129. package/studio-dist/server/chunks/{_server.ts-_RJXtmfi.js → _server.ts-B8dTbPHd.js} +8 -23
  130. package/studio-dist/server/chunks/{_server.ts-C3Jo-ju8.js → _server.ts-BA8Xdegq.js} +10 -92
  131. package/studio-dist/server/chunks/_server.ts-BBClE0n9.js +54 -0
  132. package/studio-dist/server/chunks/{_server.ts-CJA1djzJ.js → _server.ts-BCnr9uaO.js} +8 -92
  133. package/studio-dist/server/chunks/{_server.ts-ZS1_yMwR.js → _server.ts-BDwMoyZ_.js} +6 -32
  134. package/studio-dist/server/chunks/{_server.ts-sv4pA808.js → _server.ts-BE-Uhx4N.js} +5 -46
  135. package/studio-dist/server/chunks/{_server.ts-DV6pzF-M.js → _server.ts-BSHADOUJ.js} +4 -3
  136. package/studio-dist/server/chunks/{_server.ts-BdN4AJ6o.js → _server.ts-BSgLJPPQ.js} +10 -91
  137. package/studio-dist/server/chunks/_server.ts-Bl9tMqwZ.js +159 -0
  138. package/studio-dist/server/chunks/_server.ts-BlzDnRI0.js +51 -0
  139. package/studio-dist/server/chunks/{_server.ts-DnE0f-iC.js → _server.ts-BtuemCsf.js} +4 -3
  140. package/studio-dist/server/chunks/{_server.ts-BPcErnS0.js → _server.ts-C2nYqbd9.js} +10 -92
  141. package/studio-dist/server/chunks/{_server.ts-4p6cp9ke.js → _server.ts-C6IDM_3I.js} +10 -92
  142. package/studio-dist/server/chunks/_server.ts-C8Z32vuL.js +45 -0
  143. package/studio-dist/server/chunks/_server.ts-CBXyadsy.js +26 -0
  144. package/studio-dist/server/chunks/{_server.ts-Do9RIPRo.js → _server.ts-CE6h2ATE.js} +5 -32
  145. package/studio-dist/server/chunks/_server.ts-CGROl_5b.js +122 -0
  146. package/studio-dist/server/chunks/_server.ts-CH06JVqZ.js +65 -0
  147. package/studio-dist/server/chunks/_server.ts-CNqcws-M.js +29 -0
  148. package/studio-dist/server/chunks/{_server.ts-uUx7uT2Y.js → _server.ts-CYv5YuHd.js} +6 -43
  149. package/studio-dist/server/chunks/{_server.ts-DSAv66wD.js → _server.ts-CbThsyhY.js} +4 -3
  150. package/studio-dist/server/chunks/{_server.ts-DgbY5EB3.js → _server.ts-CeQolQOK.js} +10 -92
  151. package/studio-dist/server/chunks/_server.ts-ChoGyX5C.js +61 -0
  152. package/studio-dist/server/chunks/_server.ts-CjJYkLJH.js +61 -0
  153. package/studio-dist/server/chunks/{_server.ts-lPlBUIJX.js → _server.ts-CtjArzxf.js} +5 -60
  154. package/studio-dist/server/chunks/{_server.ts-Cq60m8Pw.js → _server.ts-D3QWZwt_.js} +4 -3
  155. package/studio-dist/server/chunks/{_server.ts-CkoJ2HCW.js → _server.ts-D6wP5bCh.js} +10 -92
  156. package/studio-dist/server/chunks/{_server.ts-DwTRjS4y.js → _server.ts-D7JwQTun.js} +10 -93
  157. package/studio-dist/server/chunks/_server.ts-DKFJdXPK.js +97 -0
  158. package/studio-dist/server/chunks/_server.ts-DNAPGKEF.js +55 -0
  159. package/studio-dist/server/chunks/_server.ts-DQiTiY3E.js +78 -0
  160. package/studio-dist/server/chunks/{_server.ts-B2E7fxo9.js → _server.ts-DUPODxVZ.js} +6 -91
  161. package/studio-dist/server/chunks/{_server.ts-BT0Uq2yq.js → _server.ts-DUyeSXbV.js} +10 -92
  162. package/studio-dist/server/chunks/{_server.ts-DRVz9D-J.js → _server.ts-DY7BwZCv.js} +9 -24
  163. package/studio-dist/server/chunks/{_server.ts-Cz0zgaUV.js → _server.ts-D_E276ms.js} +3 -2
  164. package/studio-dist/server/chunks/{_server.ts-B5g3eScF.js → _server.ts-DgtmTAp5.js} +5 -60
  165. package/studio-dist/server/chunks/{_server.ts-CboRJY0Q.js → _server.ts-DhTKaw7h.js} +10 -63
  166. package/studio-dist/server/chunks/_server.ts-DqKBSCPT.js +31 -0
  167. package/studio-dist/server/chunks/{_server.ts-CpmMp5D8.js → _server.ts-DyXBNnRD.js} +4 -3
  168. package/studio-dist/server/chunks/_server.ts-DzjUpduu.js +25 -0
  169. package/studio-dist/server/chunks/{_server.ts-CGiAXy5i.js → _server.ts-Dznqw6Dg.js} +8 -23
  170. package/studio-dist/server/chunks/{_server.ts-tKMjUFUP.js → _server.ts-EVwS7UXb.js} +4 -3
  171. package/studio-dist/server/chunks/_server.ts-J17j25VG.js +62 -0
  172. package/studio-dist/server/chunks/{_server.ts-C4BcDGqS.js → _server.ts-XLV5SvjH.js} +7 -63
  173. package/studio-dist/server/chunks/_server.ts-jZgqFIJz.js +45 -0
  174. package/studio-dist/server/chunks/{_server.ts-Bw7A4zgb.js → _server.ts-lyiGGv7w.js} +5 -3
  175. package/studio-dist/server/chunks/_server.ts-n0fpsfkk.js +67 -0
  176. package/studio-dist/server/chunks/{brain-CXR7ZT7S.js → brain-xt_NeshR.js} +2 -2
  177. package/studio-dist/server/chunks/cleo-home-_XIqkZaL.js +109 -0
  178. package/studio-dist/server/chunks/{cli-action-DQcaqcfn.js → cli-action-VJPEn1pY.js} +2 -2
  179. package/studio-dist/server/chunks/{client-CgX38JBu.js → client-CrfCXSXZ.js} +5 -6
  180. package/studio-dist/server/chunks/cluster-label-layer-CysRMvhi.js +6721 -0
  181. package/studio-dist/server/chunks/connections-CWLPjwBP.js +15 -0
  182. package/studio-dist/server/chunks/{connections2-mi7mZqJM.js → connections2-DHVs5ytW.js} +32 -19
  183. package/studio-dist/server/chunks/{dev-BNpEUZI3.js → dev-Br5zieNA.js} +2 -2
  184. package/studio-dist/server/chunks/dist-BR1f34Gj.js +18726 -0
  185. package/studio-dist/server/chunks/{error.svelte-CplNulnS.js → error.svelte-CmR0NUCQ.js} +6 -8
  186. package/studio-dist/server/chunks/{explorer-loader-BN_mkt3_.js → explorer-loader-B_uCSs9_.js} +2 -2
  187. package/studio-dist/server/chunks/exports-Dg-gdPPq.js +124 -0
  188. package/studio-dist/server/chunks/{hooks.server-DBsyphiX.js → hooks.server-CWBRp8NI.js} +10 -93
  189. package/studio-dist/server/chunks/{http-CRTZe306.js → http-Dso0FRxT.js} +3 -4
  190. package/studio-dist/server/chunks/{index-server-DocJvixA.js → index-server-BgfA6C0S.js} +17 -4
  191. package/studio-dist/server/chunks/{internal-D6eWgsHJ.js → internal-DYUO6aQs.js} +56 -92
  192. package/studio-dist/server/chunks/{memory2-Cgc_4D5q.js → memory-BZHnDZzu.js} +4 -4
  193. package/studio-dist/server/chunks/{nexus-adapter-9EL_VlGI.js → nexus-adapter-D1ryYG1Z.js} +5 -5
  194. package/studio-dist/server/chunks/{no-face-up-DcejJLy-.js → no-face-up-B_3h6Hgs.js} +2 -2
  195. package/studio-dist/server/chunks/project-context-BAXQmgch.js +188 -0
  196. package/studio-dist/server/chunks/{src-BUqGet2c.js → src-D2rW9bIF.js} +422 -5
  197. package/studio-dist/server/chunks/{stores-5DmdjPCH.js → stores-CS6eY2sx.js} +3 -3
  198. package/studio-dist/server/chunks/{tasks2-Bf9VHrv-.js → tasks-sWuEmiGW.js} +2349 -9
  199. package/studio-dist/server/chunks/{ui-DR8zOSpC.js → ui-CkQ-pCs3.js} +2 -2
  200. package/studio-dist/server/chunks/utils-g564cUMV.js +151 -0
  201. package/studio-dist/server/index.js +5 -16
  202. package/studio-dist/server/manifest.js +88 -88
  203. package/dist/cli/index.js.map +0 -6
  204. package/studio-dist/client/_app/immutable/assets/parse-worker.CSEr67Qi.js +0 -1127
  205. package/studio-dist/client/_app/immutable/chunks/2mEksghu2.js +0 -1
  206. package/studio-dist/client/_app/immutable/chunks/3KebaI-z.js +0 -53
  207. package/studio-dist/client/_app/immutable/chunks/3y2yNYEk2.js +0 -3
  208. package/studio-dist/client/_app/immutable/chunks/7UXYlaI1.js +0 -1
  209. package/studio-dist/client/_app/immutable/chunks/83VLmCvk.js +0 -4
  210. package/studio-dist/client/_app/immutable/chunks/84Rhmi6r.js +0 -2
  211. package/studio-dist/client/_app/immutable/chunks/9CV9TXTg2.js +0 -92
  212. package/studio-dist/client/_app/immutable/chunks/9LFtcz24.js +0 -1
  213. package/studio-dist/client/_app/immutable/chunks/9bLMgKwu2.js +0 -1
  214. package/studio-dist/client/_app/immutable/chunks/9kKqohVR2.js +0 -37
  215. package/studio-dist/client/_app/immutable/chunks/B-Ye28EY.js +0 -7
  216. package/studio-dist/client/_app/immutable/chunks/B-jnUl7o.js +0 -1
  217. package/studio-dist/client/_app/immutable/chunks/B0ORuy8x2.js +0 -1
  218. package/studio-dist/client/_app/immutable/chunks/B0xCM1wN2.js +0 -1
  219. package/studio-dist/client/_app/immutable/chunks/B0zCN4sX.js +0 -1
  220. package/studio-dist/client/_app/immutable/chunks/B1wt-iGW.js +0 -7
  221. package/studio-dist/client/_app/immutable/chunks/B2F3KUIU.js +0 -1
  222. package/studio-dist/client/_app/immutable/chunks/B2_6RrlL2.js +0 -1
  223. package/studio-dist/client/_app/immutable/chunks/B2qKEYxA2.js +0 -1
  224. package/studio-dist/client/_app/immutable/chunks/B2u2rNyI2.js +0 -8
  225. package/studio-dist/client/_app/immutable/chunks/B3_X3Lhd2.js +0 -1
  226. package/studio-dist/client/_app/immutable/chunks/B3sNtbqf.js +0 -1
  227. package/studio-dist/client/_app/immutable/chunks/B4NQP1Ax2.js +0 -6
  228. package/studio-dist/client/_app/immutable/chunks/BAtZg5v5.js +0 -2
  229. package/studio-dist/client/_app/immutable/chunks/BB6WKLm82.js +0 -1
  230. package/studio-dist/client/_app/immutable/chunks/BBX8UDtn.js +0 -1
  231. package/studio-dist/client/_app/immutable/chunks/BBs1U1iU.js +0 -1
  232. package/studio-dist/client/_app/immutable/chunks/BEli_4Jp2.js +0 -1
  233. package/studio-dist/client/_app/immutable/chunks/BEt2wIUt.js +0 -1
  234. package/studio-dist/client/_app/immutable/chunks/BEyM8qSW2.js +0 -1
  235. package/studio-dist/client/_app/immutable/chunks/BFZA3Dsk2.js +0 -1
  236. package/studio-dist/client/_app/immutable/chunks/BGdPweG1.js +0 -2
  237. package/studio-dist/client/_app/immutable/chunks/BGiusSqE.js +0 -1
  238. package/studio-dist/client/_app/immutable/chunks/BGmpyfzD.js +0 -1
  239. package/studio-dist/client/_app/immutable/chunks/BH5rhSIR.js +0 -1
  240. package/studio-dist/client/_app/immutable/chunks/BHciFt922.js +0 -2
  241. package/studio-dist/client/_app/immutable/chunks/BHnFwTQY.js +0 -1
  242. package/studio-dist/client/_app/immutable/chunks/BIvye3XP2.js +0 -59
  243. package/studio-dist/client/_app/immutable/chunks/BJ8mcpQA2.js +0 -1
  244. package/studio-dist/client/_app/immutable/chunks/BK17qSHw.js +0 -2
  245. package/studio-dist/client/_app/immutable/chunks/BLkgUtyb.js +0 -1
  246. package/studio-dist/client/_app/immutable/chunks/BMUko3r62.js +0 -5
  247. package/studio-dist/client/_app/immutable/chunks/BMwzdEaa.js +0 -2
  248. package/studio-dist/client/_app/immutable/chunks/BQZx6brg.js +0 -2
  249. package/studio-dist/client/_app/immutable/chunks/BUPJTTTd.js +0 -2
  250. package/studio-dist/client/_app/immutable/chunks/BVNGAeZe2.js +0 -146
  251. package/studio-dist/client/_app/immutable/chunks/BWfLryGm.js +0 -1
  252. package/studio-dist/client/_app/immutable/chunks/BXIfeogw.js +0 -1
  253. package/studio-dist/client/_app/immutable/chunks/BXTfFyUU.js +0 -1
  254. package/studio-dist/client/_app/immutable/chunks/BYJC6_MM.js +0 -2
  255. package/studio-dist/client/_app/immutable/chunks/BZV1ZJzH.js +0 -2
  256. package/studio-dist/client/_app/immutable/chunks/BZu9rehd.js +0 -1
  257. package/studio-dist/client/_app/immutable/chunks/Bbzm48C52.js +0 -1
  258. package/studio-dist/client/_app/immutable/chunks/BfGnlwjH.js +0 -1
  259. package/studio-dist/client/_app/immutable/chunks/Bfjb9LPp.js +0 -2
  260. package/studio-dist/client/_app/immutable/chunks/BieFfu-R.js +0 -1
  261. package/studio-dist/client/_app/immutable/chunks/Bmv63uXe2.js +0 -1
  262. package/studio-dist/client/_app/immutable/chunks/BtBW1A0u.js +0 -1
  263. package/studio-dist/client/_app/immutable/chunks/BxISGQCl2.js +0 -1
  264. package/studio-dist/client/_app/immutable/chunks/ByNR_KvT.js +0 -2
  265. package/studio-dist/client/_app/immutable/chunks/BzjhD6Hr2.js +0 -2
  266. package/studio-dist/client/_app/immutable/chunks/BzpWnq0c2.js +0 -1
  267. package/studio-dist/client/_app/immutable/chunks/C-yJVcyI2.js +0 -1
  268. package/studio-dist/client/_app/immutable/chunks/C0cQ-8kS2.js +0 -1
  269. package/studio-dist/client/_app/immutable/chunks/C1vWmhYe.js +0 -48
  270. package/studio-dist/client/_app/immutable/chunks/C1w6bBje.js +0 -1
  271. package/studio-dist/client/_app/immutable/chunks/C243sn7r.js +0 -4
  272. package/studio-dist/client/_app/immutable/chunks/C2oZaDvt.js +0 -67
  273. package/studio-dist/client/_app/immutable/chunks/C3OziSQx.js +0 -1
  274. package/studio-dist/client/_app/immutable/chunks/C3hFPbMK.js +0 -2
  275. package/studio-dist/client/_app/immutable/chunks/C4P9oFvU2.js +0 -6
  276. package/studio-dist/client/_app/immutable/chunks/C5Nlanei.js +0 -8
  277. package/studio-dist/client/_app/immutable/chunks/C6KBAXPl.js +0 -15
  278. package/studio-dist/client/_app/immutable/chunks/C8MZnWta.js +0 -1
  279. package/studio-dist/client/_app/immutable/chunks/CAoan3K12.js +0 -1
  280. package/studio-dist/client/_app/immutable/chunks/CBpcINYH.js +0 -29
  281. package/studio-dist/client/_app/immutable/chunks/CE7phgWq.js +0 -1
  282. package/studio-dist/client/_app/immutable/chunks/CFb4Co_K.js +0 -2
  283. package/studio-dist/client/_app/immutable/chunks/CGWoRK3t2.js +0 -1
  284. package/studio-dist/client/_app/immutable/chunks/CH3t4xo1.js +0 -1
  285. package/studio-dist/client/_app/immutable/chunks/CHJgk6g-.js +0 -1
  286. package/studio-dist/client/_app/immutable/chunks/CHgPjuDQ.js +0 -17
  287. package/studio-dist/client/_app/immutable/chunks/CHkCZrnr.js +0 -1
  288. package/studio-dist/client/_app/immutable/chunks/CI_91WUN.js +0 -4
  289. package/studio-dist/client/_app/immutable/chunks/CJ7-hP0H.js +0 -1
  290. package/studio-dist/client/_app/immutable/chunks/CKIrNnkY2.js +0 -1
  291. package/studio-dist/client/_app/immutable/chunks/CKoQ7Ko5.js +0 -1
  292. package/studio-dist/client/_app/immutable/chunks/CM8O4zqs.js +0 -56
  293. package/studio-dist/client/_app/immutable/chunks/CMz3AVRO.js +0 -1
  294. package/studio-dist/client/_app/immutable/chunks/CNToUR3P.js +0 -13
  295. package/studio-dist/client/_app/immutable/chunks/CNuQG1yl2.js +0 -1
  296. package/studio-dist/client/_app/immutable/chunks/CQLIZtxj.js +0 -2
  297. package/studio-dist/client/_app/immutable/chunks/CQYVNgM0.js +0 -20
  298. package/studio-dist/client/_app/immutable/chunks/CQeVOmFO2.js +0 -1
  299. package/studio-dist/client/_app/immutable/chunks/CSPHHq09.js +0 -1
  300. package/studio-dist/client/_app/immutable/chunks/CTJEdbIn.js +0 -1
  301. package/studio-dist/client/_app/immutable/chunks/CTTT3wYw.js +0 -35
  302. package/studio-dist/client/_app/immutable/chunks/CV4ck7fz.js +0 -2
  303. package/studio-dist/client/_app/immutable/chunks/CXQrVnHf.js +0 -11
  304. package/studio-dist/client/_app/immutable/chunks/CXTCtOUQ.js +0 -1
  305. package/studio-dist/client/_app/immutable/chunks/C_CsU7Qq.js +0 -1
  306. package/studio-dist/client/_app/immutable/chunks/C_IZx3682.js +0 -2
  307. package/studio-dist/client/_app/immutable/chunks/CbTnu2Po2.js +0 -1
  308. package/studio-dist/client/_app/immutable/chunks/Cba8RZ1a2.js +0 -8
  309. package/studio-dist/client/_app/immutable/chunks/Cc8xxDr5.js +0 -1
  310. package/studio-dist/client/_app/immutable/chunks/CdPxoldu.js +0 -1
  311. package/studio-dist/client/_app/immutable/chunks/CdqDTozW.js +0 -1
  312. package/studio-dist/client/_app/immutable/chunks/CdsmcCfC.js +0 -25
  313. package/studio-dist/client/_app/immutable/chunks/CeYPAoY9.js +0 -1
  314. package/studio-dist/client/_app/immutable/chunks/Cf4kGS9y.js +0 -1
  315. package/studio-dist/client/_app/immutable/chunks/CfWEqXtJ2.js +0 -1
  316. package/studio-dist/client/_app/immutable/chunks/Cg7Wj2b9.js +0 -2
  317. package/studio-dist/client/_app/immutable/chunks/CgTpKZfi2.js +0 -1
  318. package/studio-dist/client/_app/immutable/chunks/Chpy9ca7.js +0 -2
  319. package/studio-dist/client/_app/immutable/chunks/CiLKuLrQ.js +0 -4
  320. package/studio-dist/client/_app/immutable/chunks/CjNDJjwu.js +0 -1
  321. package/studio-dist/client/_app/immutable/chunks/Cjde0ZKr2.js +0 -1
  322. package/studio-dist/client/_app/immutable/chunks/Cjgnade02.js +0 -3
  323. package/studio-dist/client/_app/immutable/chunks/Ckp90om52.js +0 -2
  324. package/studio-dist/client/_app/immutable/chunks/ClAPVhCD.js +0 -1
  325. package/studio-dist/client/_app/immutable/chunks/ClT89UdO.js +0 -11
  326. package/studio-dist/client/_app/immutable/chunks/CnJf5tML.js +0 -1
  327. package/studio-dist/client/_app/immutable/chunks/CpF4Rrcc2.js +0 -1
  328. package/studio-dist/client/_app/immutable/chunks/CqCka5yX2.js +0 -1
  329. package/studio-dist/client/_app/immutable/chunks/CqtqZrOl.js +0 -1
  330. package/studio-dist/client/_app/immutable/chunks/CrJdywQt.js +0 -1
  331. package/studio-dist/client/_app/immutable/chunks/Cs0zC2l2.js +0 -1
  332. package/studio-dist/client/_app/immutable/chunks/CsMn5fBs.js +0 -141
  333. package/studio-dist/client/_app/immutable/chunks/CsvKLHQQ2.js +0 -2
  334. package/studio-dist/client/_app/immutable/chunks/Ctaresvj.js +0 -1
  335. package/studio-dist/client/_app/immutable/chunks/Ctetf8vc2.js +0 -2
  336. package/studio-dist/client/_app/immutable/chunks/Cv7yW6MG.js +0 -1
  337. package/studio-dist/client/_app/immutable/chunks/CxRIz-Zd.js +0 -1
  338. package/studio-dist/client/_app/immutable/chunks/CxbvtjIH.js +0 -3
  339. package/studio-dist/client/_app/immutable/chunks/CxfeoXkZ.js +0 -2
  340. package/studio-dist/client/_app/immutable/chunks/CySLscL2.js +0 -2
  341. package/studio-dist/client/_app/immutable/chunks/D0PKQAbM.js +0 -87
  342. package/studio-dist/client/_app/immutable/chunks/D0WQsLTu.js +0 -1
  343. package/studio-dist/client/_app/immutable/chunks/D1LBVx6r2.js +0 -1
  344. package/studio-dist/client/_app/immutable/chunks/D1NlFXu9.js +0 -1
  345. package/studio-dist/client/_app/immutable/chunks/D1QfC4hu2.js +0 -1
  346. package/studio-dist/client/_app/immutable/chunks/D1yrHAn72.js +0 -1
  347. package/studio-dist/client/_app/immutable/chunks/D2pa4reh.js +0 -7
  348. package/studio-dist/client/_app/immutable/chunks/D3QsWcIw2.js +0 -2
  349. package/studio-dist/client/_app/immutable/chunks/D4OkQuPl2.js +0 -1
  350. package/studio-dist/client/_app/immutable/chunks/D6UDnATk2.js +0 -1
  351. package/studio-dist/client/_app/immutable/chunks/D7w7HllH.js +0 -38
  352. package/studio-dist/client/_app/immutable/chunks/D93KpglN.js +0 -1
  353. package/studio-dist/client/_app/immutable/chunks/D99fQj2G2.js +0 -1
  354. package/studio-dist/client/_app/immutable/chunks/DB5ifLM-.js +0 -3
  355. package/studio-dist/client/_app/immutable/chunks/DBhP8ifO2.js +0 -15
  356. package/studio-dist/client/_app/immutable/chunks/DF_4OWhj.js +0 -2
  357. package/studio-dist/client/_app/immutable/chunks/DFpNK1vs2.js +0 -1
  358. package/studio-dist/client/_app/immutable/chunks/DGRYMk-W.js +0 -142
  359. package/studio-dist/client/_app/immutable/chunks/DH3CcQwq.js +0 -1
  360. package/studio-dist/client/_app/immutable/chunks/DHQfJeLU.js +0 -4
  361. package/studio-dist/client/_app/immutable/chunks/DL89yEDy2.js +0 -1
  362. package/studio-dist/client/_app/immutable/chunks/DLRku_0p2.js +0 -2
  363. package/studio-dist/client/_app/immutable/chunks/DMZkjPYT2.js +0 -1
  364. package/studio-dist/client/_app/immutable/chunks/DNP72foU.js +0 -1
  365. package/studio-dist/client/_app/immutable/chunks/DO2GztVm.js +0 -1
  366. package/studio-dist/client/_app/immutable/chunks/DOVNXmCK2.js +0 -1
  367. package/studio-dist/client/_app/immutable/chunks/DOqzs8kl2.js +0 -1
  368. package/studio-dist/client/_app/immutable/chunks/DQnR63hh2.js +0 -7
  369. package/studio-dist/client/_app/immutable/chunks/DTxtWPkw.js +0 -1
  370. package/studio-dist/client/_app/immutable/chunks/DVDgCC9A2.js +0 -20
  371. package/studio-dist/client/_app/immutable/chunks/DVVCJYjz.js +0 -1
  372. package/studio-dist/client/_app/immutable/chunks/DWRhYUMj2.js +0 -1
  373. package/studio-dist/client/_app/immutable/chunks/DWavBJBI.js +0 -4
  374. package/studio-dist/client/_app/immutable/chunks/DXDSWRw-.js +0 -1
  375. package/studio-dist/client/_app/immutable/chunks/DXoHaH4a.js +0 -2
  376. package/studio-dist/client/_app/immutable/chunks/DXpCX2Hi.js +0 -1
  377. package/studio-dist/client/_app/immutable/chunks/DYP3EJMY.js +0 -1
  378. package/studio-dist/client/_app/immutable/chunks/DYQphR_V.js +0 -1
  379. package/studio-dist/client/_app/immutable/chunks/DYUlIivP.js +0 -1
  380. package/studio-dist/client/_app/immutable/chunks/DYo2ye8X2.js +0 -1
  381. package/studio-dist/client/_app/immutable/chunks/DYxFu8yV.js +0 -1
  382. package/studio-dist/client/_app/immutable/chunks/DZ66sRb6.js +0 -1
  383. package/studio-dist/client/_app/immutable/chunks/D_XTiylm2.js +0 -1
  384. package/studio-dist/client/_app/immutable/chunks/DaRv9jn22.js +0 -1
  385. package/studio-dist/client/_app/immutable/chunks/DaXb9i_E.js +0 -1
  386. package/studio-dist/client/_app/immutable/chunks/Dccf4VP2.js +0 -24
  387. package/studio-dist/client/_app/immutable/chunks/DdODs-Sb.js +0 -1
  388. package/studio-dist/client/_app/immutable/chunks/DdekYWer.js +0 -2
  389. package/studio-dist/client/_app/immutable/chunks/DeHaovsF.js +0 -1
  390. package/studio-dist/client/_app/immutable/chunks/DeRRkRO52.js +0 -1
  391. package/studio-dist/client/_app/immutable/chunks/DeWI5qCn.js +0 -1
  392. package/studio-dist/client/_app/immutable/chunks/DfivR-Md.js +0 -1
  393. package/studio-dist/client/_app/immutable/chunks/DgmxpSo7.js +0 -1
  394. package/studio-dist/client/_app/immutable/chunks/DhPLWrun2.js +0 -1
  395. package/studio-dist/client/_app/immutable/chunks/DhhrVdfi.js +0 -2
  396. package/studio-dist/client/_app/immutable/chunks/Djr2dbcc2.js +0 -37
  397. package/studio-dist/client/_app/immutable/chunks/DjuRo5vv.js +0 -1
  398. package/studio-dist/client/_app/immutable/chunks/Djz4EDzO.js +0 -1
  399. package/studio-dist/client/_app/immutable/chunks/DkRfaw-K2.js +0 -1
  400. package/studio-dist/client/_app/immutable/chunks/DksB5g4W2.js +0 -1
  401. package/studio-dist/client/_app/immutable/chunks/Dmqenb5z2.js +0 -1
  402. package/studio-dist/client/_app/immutable/chunks/DnbToVyf.js +0 -2
  403. package/studio-dist/client/_app/immutable/chunks/DpGZwlmj.js +0 -1
  404. package/studio-dist/client/_app/immutable/chunks/Dq0lE5C32.js +0 -1
  405. package/studio-dist/client/_app/immutable/chunks/Dq54XqHT2.js +0 -1
  406. package/studio-dist/client/_app/immutable/chunks/DqK84mbb.js +0 -1
  407. package/studio-dist/client/_app/immutable/chunks/DqjFtSJD.js +0 -2
  408. package/studio-dist/client/_app/immutable/chunks/DrKWWDpL.js +0 -1
  409. package/studio-dist/client/_app/immutable/chunks/DsQIgu-4.js +0 -1
  410. package/studio-dist/client/_app/immutable/chunks/DsqdgJHS2.js +0 -1
  411. package/studio-dist/client/_app/immutable/chunks/DtNkZUkq.js +0 -17
  412. package/studio-dist/client/_app/immutable/chunks/DutIls4V2.js +0 -1
  413. package/studio-dist/client/_app/immutable/chunks/DvxYFW4C.js +0 -1
  414. package/studio-dist/client/_app/immutable/chunks/Dwp-76GQ.js +0 -2
  415. package/studio-dist/client/_app/immutable/chunks/DxSZd548.js +0 -1
  416. package/studio-dist/client/_app/immutable/chunks/DxiUMhk0.js +0 -5
  417. package/studio-dist/client/_app/immutable/chunks/DxslLswf.js +0 -23
  418. package/studio-dist/client/_app/immutable/chunks/Dy7EjGgb2.js +0 -9
  419. package/studio-dist/client/_app/immutable/chunks/DyGQ_VXC.js +0 -3
  420. package/studio-dist/client/_app/immutable/chunks/DySe3kTV2.js +0 -1
  421. package/studio-dist/client/_app/immutable/chunks/DyzE2Uxw.js +0 -1
  422. package/studio-dist/client/_app/immutable/chunks/DzhuJaxE2.js +0 -2
  423. package/studio-dist/client/_app/immutable/chunks/FmMHyrh6.js +0 -1
  424. package/studio-dist/client/_app/immutable/chunks/Gxs0J274.js +0 -5
  425. package/studio-dist/client/_app/immutable/chunks/HwtzDYxN.js +0 -2
  426. package/studio-dist/client/_app/immutable/chunks/ITRz_Q7H2.js +0 -15
  427. package/studio-dist/client/_app/immutable/chunks/KDNP98XY2.js +0 -1
  428. package/studio-dist/client/_app/immutable/chunks/LmVjFhpk2.js +0 -1
  429. package/studio-dist/client/_app/immutable/chunks/MiAejGV_.js +0 -1
  430. package/studio-dist/client/_app/immutable/chunks/Ml4JR6Jz2.js +0 -2
  431. package/studio-dist/client/_app/immutable/chunks/NU5S3nNs2.js +0 -2
  432. package/studio-dist/client/_app/immutable/chunks/Oh5zPjv3.js +0 -2
  433. package/studio-dist/client/_app/immutable/chunks/QZkvJ9vi.js +0 -1
  434. package/studio-dist/client/_app/immutable/chunks/Rbn8UpBm.js +0 -1
  435. package/studio-dist/client/_app/immutable/chunks/SPX3gYwn2.js +0 -1
  436. package/studio-dist/client/_app/immutable/chunks/UyeQuL132.js +0 -12
  437. package/studio-dist/client/_app/immutable/chunks/VQszoXcV.js +0 -1
  438. package/studio-dist/client/_app/immutable/chunks/VtZsEMxD.js +0 -1
  439. package/studio-dist/client/_app/immutable/chunks/W2IeK61p2.js +0 -1
  440. package/studio-dist/client/_app/immutable/chunks/Wadww7ZG.js +0 -1
  441. package/studio-dist/client/_app/immutable/chunks/WgfA1zWk2.js +0 -1
  442. package/studio-dist/client/_app/immutable/chunks/WxIgAS1f.js +0 -21
  443. package/studio-dist/client/_app/immutable/chunks/XrsBoOj9.js +0 -2
  444. package/studio-dist/client/_app/immutable/chunks/Y3PX4poR.js +0 -2
  445. package/studio-dist/client/_app/immutable/chunks/YxfwqiF32.js +0 -1
  446. package/studio-dist/client/_app/immutable/chunks/Z7uO1YaO.js +0 -1
  447. package/studio-dist/client/_app/immutable/chunks/_4ykQk_8.js +0 -1
  448. package/studio-dist/client/_app/immutable/chunks/_kRcZFVn.js +0 -1
  449. package/studio-dist/client/_app/immutable/chunks/aQNM7eVA2.js +0 -1
  450. package/studio-dist/client/_app/immutable/chunks/bHKz_Fb2.js +0 -45
  451. package/studio-dist/client/_app/immutable/chunks/bJRyRGSZ.js +0 -1
  452. package/studio-dist/client/_app/immutable/chunks/dlzF6lnR.js +0 -1
  453. package/studio-dist/client/_app/immutable/chunks/fjRbpfEr2.js +0 -26
  454. package/studio-dist/client/_app/immutable/chunks/imLk4if5.js +0 -3
  455. package/studio-dist/client/_app/immutable/chunks/lgRG0R-32.js +0 -1
  456. package/studio-dist/client/_app/immutable/chunks/mFhCjxQJ2.js +0 -1
  457. package/studio-dist/client/_app/immutable/chunks/mgnH6qYg.js +0 -1
  458. package/studio-dist/client/_app/immutable/chunks/n6M_5LoW.js +0 -1
  459. package/studio-dist/client/_app/immutable/chunks/nLIOiDZp2.js +0 -1
  460. package/studio-dist/client/_app/immutable/chunks/nab7WB3u2.js +0 -1
  461. package/studio-dist/client/_app/immutable/chunks/orUmAKoW2.js +0 -1
  462. package/studio-dist/client/_app/immutable/chunks/p-fLQDfY2.js +0 -63
  463. package/studio-dist/client/_app/immutable/chunks/s0-WkOGk2.js +0 -1
  464. package/studio-dist/client/_app/immutable/chunks/sPuXfbUF.js +0 -1
  465. package/studio-dist/client/_app/immutable/chunks/t4h0vrqR2.js +0 -2
  466. package/studio-dist/client/_app/immutable/chunks/uE83FKL-.js +0 -1
  467. package/studio-dist/client/_app/immutable/chunks/uzhXlm0g2.js +0 -1
  468. package/studio-dist/client/_app/immutable/chunks/vTrEsGlD2.js +0 -1
  469. package/studio-dist/client/_app/immutable/chunks/xJgCk3dx2.js +0 -28
  470. package/studio-dist/client/_app/immutable/chunks/z0Mt579s2.js +0 -13
  471. package/studio-dist/client/_app/immutable/entry/app.BoQ7cgT2.js +0 -2
  472. package/studio-dist/client/_app/immutable/entry/start.Cg1v8DU4.js +0 -1
  473. package/studio-dist/client/_app/immutable/nodes/25.ddZ1_EFk.js +0 -1
  474. package/studio-dist/client/_app/immutable/nodes/26.6OcmQbLV.js +0 -1
  475. package/studio-dist/client/_app/immutable/nodes/4.CCjOEwVU.js +0 -1
  476. package/studio-dist/server/chunks/0-CvsKDxQ6.js +0 -126
  477. package/studio-dist/server/chunks/1-ck_x2Hf0.js +0 -9
  478. package/studio-dist/server/chunks/20-DVU22np7.js +0 -142
  479. package/studio-dist/server/chunks/23-D_tUnnoc.js +0 -181
  480. package/studio-dist/server/chunks/24-CVlymvLF.js +0 -151
  481. package/studio-dist/server/chunks/AwsRestJsonProtocol-BZuoNBmL.js +0 -416
  482. package/studio-dist/server/chunks/UnionSerde-BflIkhKj.js +0 -2653
  483. package/studio-dist/server/chunks/_dispatch-ncuRztUQ.js +0 -5597
  484. package/studio-dist/server/chunks/_server.ts-4NyKAneX.js +0 -116
  485. package/studio-dist/server/chunks/_server.ts-7hGdxdEI.js +0 -136
  486. package/studio-dist/server/chunks/_server.ts-B6b3b-yA.js +0 -131
  487. package/studio-dist/server/chunks/_server.ts-BOgGqaZp.js +0 -144
  488. package/studio-dist/server/chunks/_server.ts-BV1HiKZ0.js +0 -120
  489. package/studio-dist/server/chunks/_server.ts-BWp3g6Cr.js +0 -110
  490. package/studio-dist/server/chunks/_server.ts-C5NF-UgC.js +0 -122
  491. package/studio-dist/server/chunks/_server.ts-CDMurH5m.js +0 -2301
  492. package/studio-dist/server/chunks/_server.ts-COJHCgbq.js +0 -127
  493. package/studio-dist/server/chunks/_server.ts-CUl-Utkt.js +0 -148
  494. package/studio-dist/server/chunks/_server.ts-D0GAFJRb.js +0 -156
  495. package/studio-dist/server/chunks/_server.ts-DA6p3pmi.js +0 -117
  496. package/studio-dist/server/chunks/_server.ts-DThYFaZj.js +0 -160
  497. package/studio-dist/server/chunks/_server.ts-D_3Pm0gr.js +0 -179
  498. package/studio-dist/server/chunks/_server.ts-DcHxdMsm.js +0 -144
  499. package/studio-dist/server/chunks/_server.ts-Dlfadh2I.js +0 -144
  500. package/studio-dist/server/chunks/_server.ts-JallJnps.js +0 -240
  501. package/studio-dist/server/chunks/_server.ts-NEFTbJpM.js +0 -142
  502. package/studio-dist/server/chunks/_server.ts-d-2NvRwX.js +0 -122
  503. package/studio-dist/server/chunks/_server.ts-rUWMLkIw.js +0 -146
  504. package/studio-dist/server/chunks/abort-events-CDRAJSqb.js +0 -30
  505. package/studio-dist/server/chunks/adapters-BkMgPNUM.js +0 -359
  506. package/studio-dist/server/chunks/adapters2-CQ3PzoaK.js +0 -28
  507. package/studio-dist/server/chunks/api-mode2-3W-I1-XO.js +0 -36
  508. package/studio-dist/server/chunks/api2-CmNQzb0b.js +0 -96
  509. package/studio-dist/server/chunks/attention-consolidate-CidG1jfH.js +0 -485
  510. package/studio-dist/server/chunks/audit3-DMO_fUGp.js +0 -52
  511. package/studio-dist/server/chunks/auto-extract-B84La1Vs.js +0 -34
  512. package/studio-dist/server/chunks/brain-consolidator-JGm6mzFf.js +0 -373
  513. package/studio-dist/server/chunks/brain-doctor-Dc2WqVbs.js +0 -311
  514. package/studio-dist/server/chunks/brain-embedding-Djw9ekXu.js +0 -42
  515. package/studio-dist/server/chunks/brain-lifecycle-BOOa876K.js +0 -969
  516. package/studio-dist/server/chunks/brain-maintenance-U6VvsvmK.js +0 -133
  517. package/studio-dist/server/chunks/brain-maintenance2-CwVSmfDT.js +0 -43
  518. package/studio-dist/server/chunks/brain-retrieval2-exR8mdgh.js +0 -751
  519. package/studio-dist/server/chunks/brain-search-CpSh-SNi.js +0 -48
  520. package/studio-dist/server/chunks/brain-search2-CwI2cXgg.js +0 -716
  521. package/studio-dist/server/chunks/brain-similarity-DI4yzm9e.js +0 -113
  522. package/studio-dist/server/chunks/brain-stdp2-BxSBIlSr.js +0 -960
  523. package/studio-dist/server/chunks/brain-writer-handlers-Dwu0QCAA.js +0 -188
  524. package/studio-dist/server/chunks/brain-writer-thread-6n7wI7Gy.js +0 -360
  525. package/studio-dist/server/chunks/branch-lock-Cq7zzmFK.js +0 -1118
  526. package/studio-dist/server/chunks/branch-lock2-CmDc4CZW.js +0 -45
  527. package/studio-dist/server/chunks/cancelled-child-waiver-audit-DkesrN83.js +0 -54
  528. package/studio-dist/server/chunks/catalog-model-resolver-Bas9qnoP.js +0 -9
  529. package/studio-dist/server/chunks/catalog-model-resolver2-Cexk2TN0.js +0 -237
  530. package/studio-dist/server/chunks/catalog-resolver-CLot3XJO.js +0 -260
  531. package/studio-dist/server/chunks/catalog-resolver2-JmKb91kY.js +0 -33
  532. package/studio-dist/server/chunks/chunk-DDP5xfzh.js +0 -39
  533. package/studio-dist/server/chunks/cleo-home-CCfe6kAQ.js +0 -64
  534. package/studio-dist/server/chunks/concrete-session2-bb_vxJ2N.js +0 -43
  535. package/studio-dist/server/chunks/config-DHj9CcFs.js +0 -386
  536. package/studio-dist/server/chunks/config2-F6PPIn7D.js +0 -35
  537. package/studio-dist/server/chunks/connections-BMGJVYcS.js +0 -98
  538. package/studio-dist/server/chunks/credential-pool-vF6NdtT9.js +0 -4600
  539. package/studio-dist/server/chunks/credentials-C7EJFf5O.js +0 -35
  540. package/studio-dist/server/chunks/credentials-store-CFygIuB2.js +0 -35
  541. package/studio-dist/server/chunks/cross-db-cleanup-1LWTUKPi.js +0 -147
  542. package/studio-dist/server/chunks/data-accessor-CWgVndbR.js +0 -72
  543. package/studio-dist/server/chunks/data-safety-central-DaFxK27G.js +0 -683
  544. package/studio-dist/server/chunks/decisions-CmVXV2-H.js +0 -574
  545. package/studio-dist/server/chunks/decisions2-XQsSYdxa.js +0 -48
  546. package/studio-dist/server/chunks/depends-waiver-audit-CUmlBYHx.js +0 -56
  547. package/studio-dist/server/chunks/dialectic-evaluator2-BOyyXhdI.js +0 -96
  548. package/studio-dist/server/chunks/dist-es2-DQy2Mjn_.js +0 -43
  549. package/studio-dist/server/chunks/dist-es3-CBygU4n5.js +0 -365
  550. package/studio-dist/server/chunks/dist-es4-CavbNu4B.js +0 -162
  551. package/studio-dist/server/chunks/dist-es5-Crpm8Wsl.js +0 -465
  552. package/studio-dist/server/chunks/dist-es6-CgePHzh4.js +0 -99
  553. package/studio-dist/server/chunks/dist-es7-k6c5GEd7.js +0 -311
  554. package/studio-dist/server/chunks/dist-es8-Bd9v0_pE.js +0 -91
  555. package/studio-dist/server/chunks/dist3-23bsJhRw.js +0 -27
  556. package/studio-dist/server/chunks/dist4-DmC1zSXi.js +0 -35618
  557. package/studio-dist/server/chunks/dual-scope-db-DKnWu1KM.js +0 -5672
  558. package/studio-dist/server/chunks/dual-scope-db2-Dht3luRw.js +0 -31
  559. package/studio-dist/server/chunks/duplicate-bypass-audit-BN5w1H2y.js +0 -36
  560. package/studio-dist/server/chunks/duplicate-detector-CaVFMKdE.js +0 -692
  561. package/studio-dist/server/chunks/edge-types-CgBvb0w1.js +0 -28
  562. package/studio-dist/server/chunks/embedding-local-xEnym8Ho.js +0 -92
  563. package/studio-dist/server/chunks/event-streams-Bi2p_fVo.js +0 -232
  564. package/studio-dist/server/chunks/execution-learning-BVCw7Plq.js +0 -278
  565. package/studio-dist/server/chunks/exodus-BBuuN6aA.js +0 -2594
  566. package/studio-dist/server/chunks/externalDataInterceptor-C3C4cObe.js +0 -21
  567. package/studio-dist/server/chunks/extraction-gate-DDNBq7gu.js +0 -48
  568. package/studio-dist/server/chunks/extraction-gate2-D77EZBQ6.js +0 -375
  569. package/studio-dist/server/chunks/getSSOTokenFromFile-yZAJxDci.js +0 -21
  570. package/studio-dist/server/chunks/governor2-CtfV3wfX.js +0 -923
  571. package/studio-dist/server/chunks/graph-auto-populate-Dmsr9ZJM.js +0 -42
  572. package/studio-dist/server/chunks/graph-auto-populate2-Cz0qeebM.js +0 -156
  573. package/studio-dist/server/chunks/graph-memory-bridge-CY8ft_d7.js +0 -43
  574. package/studio-dist/server/chunks/graph-memory-bridge2-Cd0XZwqc.js +0 -429
  575. package/studio-dist/server/chunks/handler-helpers-AANBGA_p.js +0 -49
  576. package/studio-dist/server/chunks/hash-Cm6yMET4.js +0 -14
  577. package/studio-dist/server/chunks/health-monitor-FepUZN1m.js +0 -106
  578. package/studio-dist/server/chunks/identity-DRpurt56.js +0 -30
  579. package/studio-dist/server/chunks/identity2-DeAB5RXE.js +0 -114
  580. package/studio-dist/server/chunks/index-61916rmV.js +0 -632
  581. package/studio-dist/server/chunks/index-DAgVDouG.js +0 -268
  582. package/studio-dist/server/chunks/index-Dtt_h58T.js +0 -2116
  583. package/studio-dist/server/chunks/indexes-DZ52grq6.js +0 -615
  584. package/studio-dist/server/chunks/json-Bfixam3g.js +0 -126
  585. package/studio-dist/server/chunks/learnings-D6Y3YGMU.js +0 -47
  586. package/studio-dist/server/chunks/learnings2-MwBdR9vb.js +0 -171
  587. package/studio-dist/server/chunks/lifecycle-ops2-V2CR5-7X.js +0 -121
  588. package/studio-dist/server/chunks/list-BhObczvn.js +0 -229
  589. package/studio-dist/server/chunks/living-brain2-j0B_Ir8j.js +0 -285
  590. package/studio-dist/server/chunks/llm-backend-resolver-D4ANvUPL.js +0 -295
  591. package/studio-dist/server/chunks/llm-extraction-DVCu4heR.js +0 -408
  592. package/studio-dist/server/chunks/loadSharedConfigFiles-umvW7kuz.js +0 -73
  593. package/studio-dist/server/chunks/loadSso-iidd5iKx.js +0 -599
  594. package/studio-dist/server/chunks/local-model-fit-B0TxifnX.js +0 -53
  595. package/studio-dist/server/chunks/local-model-fit2-BMqo6GJm.js +0 -2664
  596. package/studio-dist/server/chunks/lock-CA7d6lj7.js +0 -57
  597. package/studio-dist/server/chunks/logger-DQIoyZbq.js +0 -34
  598. package/studio-dist/server/chunks/memory-BUbicBbE.js +0 -618
  599. package/studio-dist/server/chunks/memory-accessor-i3P-RHSg.js +0 -42
  600. package/studio-dist/server/chunks/memory-accessor2-B981tHDR.js +0 -467
  601. package/studio-dist/server/chunks/memory-bridge-BOlEWg9w.js +0 -424
  602. package/studio-dist/server/chunks/memory-sqlite2-B7dq8doO.js +0 -42
  603. package/studio-dist/server/chunks/model-runner2-B71xjp4y.js +0 -43
  604. package/studio-dist/server/chunks/mvi-helpers-BNsJ8ZpQ.js +0 -59
  605. package/studio-dist/server/chunks/nexus-plasticity-BTfU8cW_.js +0 -269
  606. package/studio-dist/server/chunks/nexus-risk-audit-p379-TU5.js +0 -54
  607. package/studio-dist/server/chunks/nexus-schema-zeygY8OD.js +0 -11
  608. package/studio-dist/server/chunks/nexus-schema2-DP0Qd7CA.js +0 -444
  609. package/studio-dist/server/chunks/nexus-sqlite-BVNIpwc7.js +0 -36
  610. package/studio-dist/server/chunks/nexus-sqlite2-BBfY2xnY.js +0 -1103
  611. package/studio-dist/server/chunks/node-http-handler-CJI8kn7X.js +0 -386
  612. package/studio-dist/server/chunks/observe-Bo9veHGe.js +0 -47
  613. package/studio-dist/server/chunks/observe2-wzO0MaMY.js +0 -245
  614. package/studio-dist/server/chunks/observer-reflector-BwNOuq1d.js +0 -62
  615. package/studio-dist/server/chunks/observer-reflector2-ggtC1hmk.js +0 -478
  616. package/studio-dist/server/chunks/on-open-Wpcw7DV4.js +0 -740
  617. package/studio-dist/server/chunks/open-cleo-db--8sYNaYY.js +0 -70
  618. package/studio-dist/server/chunks/parseKnownFiles-Dg0pMFcT.js +0 -18
  619. package/studio-dist/server/chunks/parseUrl-qgGfl-Vh.js +0 -120
  620. package/studio-dist/server/chunks/paths-CV7S5-Zm.js +0 -30012
  621. package/studio-dist/server/chunks/patterns-lh5kn13I.js +0 -48
  622. package/studio-dist/server/chunks/patterns2-CzIcT-ai.js +0 -177
  623. package/studio-dist/server/chunks/pipeline-stage-IB_pOft-.js +0 -63
  624. package/studio-dist/server/chunks/prediction-D1lSGJ4c.js +0 -217
  625. package/studio-dist/server/chunks/premature-close-audit-VG09uAco.js +0 -53
  626. package/studio-dist/server/chunks/project-context-BjiqfEBi.js +0 -166
  627. package/studio-dist/server/chunks/provider-registry2-Cu7rAF0R.js +0 -35
  628. package/studio-dist/server/chunks/quality-feedback-CuCGEI6S.js +0 -371
  629. package/studio-dist/server/chunks/quality-scoring-CCPuRQmJ.js +0 -160
  630. package/studio-dist/server/chunks/query-ops-DCrjbZb9.js +0 -78
  631. package/studio-dist/server/chunks/query-promise-BkPmGPJy.js +0 -1257
  632. package/studio-dist/server/chunks/readFile-CxwXhymG.js +0 -31
  633. package/studio-dist/server/chunks/registry-CL2gN1zd.js +0 -27
  634. package/studio-dist/server/chunks/registry2-DoPYJnUW.js +0 -233
  635. package/studio-dist/server/chunks/registry3-BajEb-ll.js +0 -42
  636. package/studio-dist/server/chunks/registry4-DCqffZkT.js +0 -142
  637. package/studio-dist/server/chunks/retry-B3oEKYpp.js +0 -105
  638. package/studio-dist/server/chunks/role-executor-CC8BU54L.js +0 -25379
  639. package/studio-dist/server/chunks/role-resolver-D9QaDT0e.js +0 -6544
  640. package/studio-dist/server/chunks/role-resolver2-nkhzS1oy.js +0 -37
  641. package/studio-dist/server/chunks/rollup-CiefjN_Y.js +0 -194
  642. package/studio-dist/server/chunks/safety-data-accessor-CniDmGJO.js +0 -276
  643. package/studio-dist/server/chunks/service-connections-accessor-yBCdcgU-.js +0 -282
  644. package/studio-dist/server/chunks/session-factory-vbengc42.js +0 -96
  645. package/studio-dist/server/chunks/session-grade-BF4ZZtN_.js +0 -244
  646. package/studio-dist/server/chunks/session-journal-Bvey70Ur.js +0 -235
  647. package/studio-dist/server/chunks/session-narrative-BirZINSU.js +0 -304
  648. package/studio-dist/server/chunks/session-store--N_xHxUH.js +0 -557
  649. package/studio-dist/server/chunks/session-store2-DAM-eVTH.js +0 -43
  650. package/studio-dist/server/chunks/sessions-33DD4hkt.js +0 -2273
  651. package/studio-dist/server/chunks/sessions2-BHswKRDP.js +0 -50
  652. package/studio-dist/server/chunks/sigil-B-RznFXz.js +0 -33
  653. package/studio-dist/server/chunks/sigil2-jRMG5DuR.js +0 -47
  654. package/studio-dist/server/chunks/signin-BAsW3mM8.js +0 -644
  655. package/studio-dist/server/chunks/sleep-consolidation-BnSwXrvq.js +0 -823
  656. package/studio-dist/server/chunks/specialists-B_ZbpQlK.js +0 -441
  657. package/studio-dist/server/chunks/sqlite-Bm5LzbPs.js +0 -5977
  658. package/studio-dist/server/chunks/sqlite-backup-CFG1-b2e.js +0 -42
  659. package/studio-dist/server/chunks/sqlite-data-accessor-DD_RFX6r.js +0 -987
  660. package/studio-dist/server/chunks/sqlite-data-accessor2-CRmgNBnq.js +0 -44
  661. package/studio-dist/server/chunks/sqlite-native-BwlIqtbs.js +0 -42
  662. package/studio-dist/server/chunks/sqlite2-CUPut2fh.js +0 -42
  663. package/studio-dist/server/chunks/src2-DK8DKufK.js +0 -290
  664. package/studio-dist/server/chunks/src3-BJjf7XRG.js +0 -798
  665. package/studio-dist/server/chunks/src4-DNleK_t_.js +0 -28
  666. package/studio-dist/server/chunks/sso-oidc-eUvwseuL.js +0 -861
  667. package/studio-dist/server/chunks/storage-B9UA3BHR.js +0 -198
  668. package/studio-dist/server/chunks/sts-g7LDMLEd.js +0 -4655
  669. package/studio-dist/server/chunks/surprisal-CwTfWQi8.js +0 -224
  670. package/studio-dist/server/chunks/surprisal-tree-7dfHsuw1.js +0 -230
  671. package/studio-dist/server/chunks/system-resolver2-Bzhue_zQ.js +0 -53
  672. package/studio-dist/server/chunks/tasks-SHX7UPGY.js +0 -19694
  673. package/studio-dist/server/chunks/tasks-schema2-CTMoQKQy.js +0 -42
  674. package/studio-dist/server/chunks/temporal-supersession-DP4GPG_B.js +0 -298
  675. package/studio-dist/server/chunks/token-cAhAD9f9.js +0 -139
  676. package/studio-dist/server/chunks/token-util-D6drEz8_.js +0 -353
  677. package/studio-dist/server/chunks/token-util2-8UPSGvbb.js +0 -97
  678. package/studio-dist/server/chunks/transcript-scanner-kJWhWmlg.js +0 -53
  679. package/studio-dist/server/chunks/transformers.node-_xbxmK5p.js +0 -38475
  680. package/studio-dist/server/chunks/typed-query-l1D_QElt.js +0 -18
  681. package/studio-dist/server/chunks/unique-constraint-BZrrwgwc.js +0 -88
  682. package/studio-dist/server/chunks/update-B2YVBZG0.js +0 -1594
  683. package/studio-dist/server/chunks/user-profile-B61ZhVmC.js +0 -89
  684. package/studio-dist/server/chunks/utils-BPSZyajG.js +0 -1176
  685. package/studio-dist/server/chunks/validation-rules-CE27rtoF.js +0 -44
  686. package/studio-dist/server/chunks/zod-DsAeKNLm.js +0 -141
  687. /package/studio-dist/client/_app/immutable/chunks/{CQCxd1p9.js → B8WnZMYa.js} +0 -0
  688. /package/studio-dist/client/_app/immutable/chunks/{D13Quv9e2.js → B_0_YCYG.js} +0 -0
  689. /package/studio-dist/client/_app/immutable/chunks/{djL6V-tr.js → CqgtdAx_.js} +0 -0
  690. /package/studio-dist/client/_app/immutable/chunks/{_FU7h_8p2.js → KrUPZzXZ.js} +0 -0
@@ -1,142 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./s0-WkOGk2.js","./Chpy9ca7.js","./DrKWWDpL.js","./DsQIgu-4.js","./DtNkZUkq.js","./Cc8xxDr5.js","./C8MZnWta.js","./C5Nlanei.js","./DYP3EJMY.js","./CHkCZrnr.js","./DF_4OWhj.js","./CdqDTozW.js","./D7w7HllH.js","./DB5ifLM-.js","./Ml4JR6Jz2.js","./DOqzs8kl2.js","./B2_6RrlL2.js","./D2pa4reh.js","./C1vWmhYe.js","./DTxtWPkw.js","./BK17qSHw.js","./DO2GztVm.js","./BQZx6brg.js","./DXpCX2Hi.js","./BYJC6_MM.js","./CV4ck7fz.js","./VQszoXcV.js","./D93KpglN.js","./C2oZaDvt.js","./7UXYlaI1.js","./CKoQ7Ko5.js","./orUmAKoW2.js","./D6UDnATk2.js","./DeWI5qCn.js","./Cv7yW6MG.js","./CE7phgWq.js","./DMZkjPYT2.js","./Cjde0ZKr2.js"])))=>i.map(i=>d[i]);
2
- import{a as __require,s as __toESM,t as __commonJSMin}from"./DrKWWDpL.js";import{n as init_preload_helper,t as __vitePreload}from"./DsQIgu-4.js";import{t as require___vite_browser_external}from"./DYP3EJMY.js";import{Ir as BUILTIN_DOC_KIND_VALUES,Un as ExitCode,yt as LIFECYCLE_STAGE_STATUSES}from"./CdqDTozW.js";import{c as createPlatformPathsResolver}from"./DOqzs8kl2.js";import{t as CleoError}from"./B2_6RrlL2.js";import{c as getProjectRoot,l as resolveCleoDir}from"./Ml4JR6Jz2.js";import{t as getLogger}from"./DF_4OWhj.js";import{V as tasksTasks,d as adrRelations,f as adrTaskLinks,gt as tasksLifecycleEvidence,p as architectureDecisions,vt as tasksLifecyclePipelines,yt as tasksLifecycleStages}from"./CKoQ7Ko5.js";import{s as getDb}from"./Chpy9ca7.js";import{r as deriveSlugSuggestionsForAllocator}from"./CdPxoldu.js";import"./CxbvtjIH.js";import{t as require_base64_js}from"./CXTCtOUQ.js";var import___vite_browser_external=__toESM(require___vite_browser_external(),1),KEY_RELATIVE_PATH=(0,import___vite_browser_external.join)(`keys`,`cleo-identity.json`);init_preload_helper();function extractAdrId(e){let t=e.match(/^(ADR-\d+)/);return t?t[1]:e.replace(`.md`,``)}function parseFrontmatter$1(e){let t=[],n=e.split(`
3
- `);for(let e of n){if(e.trim()===`---`)break;let n=e.match(/^\*\*([^*]+)\*\*:\s*(.+)$/);n&&t.push([n[1].trim(),n[2].trim()])}return Object.fromEntries(t)}function extractTitle(e){let t=e.match(/^#\s+(.+)$/m);return t?t[1].trim():`Untitled`}function parseAdrFile(e,t){let n=(0,import___vite_browser_external.readFileSync)(e.startsWith(`/`)?e:(0,import___vite_browser_external.join)(t,e),`utf-8`);return{id:extractAdrId(e.split(`/`).pop()),file:e,title:extractTitle(n),frontmatter:parseFrontmatter$1(n)}}function parseTaskIds$1(e){return e?e.split(`,`).map(e=>e.trim()).filter(e=>/^T\d{1,5}$/.test(e)):[]}function findAdrsForTask(e,t){return(0,import___vite_browser_external.existsSync)(e)?(0,import___vite_browser_external.readdirSync)(e).filter(e=>e.endsWith(`.md`)&&/^ADR-\d+/.test(e)).filter(n=>{try{let r=(0,import___vite_browser_external.readFileSync)((0,import___vite_browser_external.join)(e,n),`utf-8`).match(/^\*\*Related Tasks\*\*:\s*(.+)$/m);return r?parseTaskIds$1(r[1]).includes(t):!1}catch{return!1}}).map(t=>(0,import___vite_browser_external.join)(e,t)):[]}async function linkPipelineAdr(e,t){let n={linked:[],synced:0,skipped:0,errors:[]},r=findAdrsForTask((0,import___vite_browser_external.join)(e,`.cleo`,`adrs`),t);if(r.length===0)return n;let{getDb:a}=await __vitePreload(async()=>{let{getDb:e}=await import(`./s0-WkOGk2.js`);return{getDb:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]),import.meta.url),{and:o,eq:s}=await __vitePreload(async()=>{let{and:e,eq:t}=await import(`./DeWI5qCn.js`);return{and:e,eq:t}},__vite__mapDeps([33,4,34,9]),import.meta.url),c=await a(e),l=new Date().toISOString();for(let a of r){let r=a.split(`/`).pop();try{let u=parseAdrFile(a,e),d=u.frontmatter,f=(0,import___vite_browser_external.readFileSync)(a,`utf-8`),p=`.cleo/adrs/${r}`,m=await c.select({id:architectureDecisions.id}).from(architectureDecisions).where(s(architectureDecisions.id,u.id)).all(),h={id:u.id,title:u.title,status:d.Status??`proposed`,content:f,filePath:p,date:d.Date??``,acceptedAt:d.Accepted??null,gate:d.Gate??null,gateStatus:d[`Gate Status`]??null,amendsId:null,supersedesId:null,supersededById:null,summary:d.Summary??null,keywords:d.Keywords??null,topics:d.Topics??null,updatedAt:l};if(m.length>0?await c.update(architectureDecisions).set(h).where(s(architectureDecisions.id,u.id)):await c.insert(architectureDecisions).values({...h,createdAt:l}),n.synced++,await c.delete(adrTaskLinks).where(o(s(adrTaskLinks.adrId,u.id),s(adrTaskLinks.taskId,t))),await c.insert(adrTaskLinks).values({adrId:u.id,taskId:t,linkType:`implements`}),n.linked.push({adrId:u.id,taskId:t}),d[`Related ADRs`]){let e=d[`Related ADRs`].split(`,`).map(e=>e.trim()).filter(e=>/^ADR-\d+$/.test(e));for(let t of e)try{(await c.select({id:architectureDecisions.id}).from(architectureDecisions).where(s(architectureDecisions.id,t)).all()).length>0&&await c.insert(adrRelations).values({fromAdrId:u.id,toAdrId:t,relationType:`related`}).onConflictDoNothing()}catch{}}}catch(e){n.errors.push({file:r,error:String(e)}),n.skipped++}}return n}init_preload_helper();function extractAdrIdFromRef(e){let t=e.match(/^(ADR-\d+)/);return t?t[1]:null}function parseTaskIds(e){return e.split(`,`).map(e=>e.trim()).filter(e=>/^T\d{1,5}$/.test(e))}function collectAdrFiles(e){let t=[],n;try{n=(0,import___vite_browser_external.readdirSync)(e,{withFileTypes:!0})}catch{return t}for(let r of n)if(r.isDirectory()){let n=(0,import___vite_browser_external.join)(e,r.name),a;try{a=(0,import___vite_browser_external.readdirSync)(n)}catch{continue}for(let e of a)e.endsWith(`.md`)&&/^ADR-\d+/.test(e)&&t.push({file:e,relPath:`${r.name}/${e}`})}else r.name.endsWith(`.md`)&&/^ADR-\d+/.test(r.name)&&t.push({file:r.name,relPath:r.name});return t.sort((e,t)=>e.file.localeCompare(t.file))}async function syncAdrsToDb(e){let t=(0,import___vite_browser_external.join)(e,`.cleo`,`adrs`),n={inserted:0,updated:0,skipped:0,errors:[],warnings:[]};if(!(0,import___vite_browser_external.existsSync)(t))return n;let{getDb:r}=await __vitePreload(async()=>{let{getDb:e}=await import(`./s0-WkOGk2.js`);return{getDb:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]),import.meta.url),{eq:a}=await __vitePreload(async()=>{let{eq:e}=await import(`./DeWI5qCn.js`);return{eq:e}},__vite__mapDeps([33,4,34,9]),import.meta.url),o=await r(e),s=new Date().toISOString(),c=collectAdrFiles(t).filter(e=>!e.relPath.includes(`/`));for(let{file:r,relPath:l}of c)try{let r=(0,import___vite_browser_external.join)(t,l),c=parseAdrFile(r,e),u=c.frontmatter,d=`.cleo/adrs/${l}`,f=(0,import___vite_browser_external.readFileSync)(r,`utf-8`),p=u.Supersedes?extractAdrIdFromRef(u.Supersedes):null,m=u[`Superseded By`]?extractAdrIdFromRef(u[`Superseded By`]):null,h=u.Amends?extractAdrIdFromRef(u.Amends):null;p&&(await o.select({id:architectureDecisions.id}).from(architectureDecisions).where(a(architectureDecisions.id,p)).all()).length===0&&(n.warnings.push(`${c.id}: supersedes target ${p} not found in DB, setting to null`),p=null),m&&(await o.select({id:architectureDecisions.id}).from(architectureDecisions).where(a(architectureDecisions.id,m)).all()).length===0&&(n.warnings.push(`${c.id}: supersededBy target ${m} not found in DB, setting to null`),m=null),h&&(await o.select({id:architectureDecisions.id}).from(architectureDecisions).where(a(architectureDecisions.id,h)).all()).length===0&&(n.warnings.push(`${c.id}: amends target ${h} not found in DB, setting to null`),h=null);let g={id:c.id,title:c.title,status:u.Status??`proposed`,content:f,filePath:d,date:u.Date??``,acceptedAt:u.Accepted??null,gate:u.Gate??null,gateStatus:u[`Gate Status`]??null,amendsId:h,supersedesId:p,supersededById:m,summary:u.Summary??null,keywords:u.Keywords??null,topics:u.Topics??null,updatedAt:s};if((await o.select({id:architectureDecisions.id}).from(architectureDecisions).where(a(architectureDecisions.id,c.id)).all()).length>0?(await o.update(architectureDecisions).set(g).where(a(architectureDecisions.id,c.id)),n.updated++):(await o.insert(architectureDecisions).values({...g,createdAt:s}),n.inserted++),await o.delete(adrTaskLinks).where(a(adrTaskLinks.adrId,c.id)),u[`Related Tasks`])for(let e of parseTaskIds(u[`Related Tasks`])){if((await o.select({id:tasksTasks.id}).from(tasksTasks).where(a(tasksTasks.id,e)).all()).length===0){n.warnings.push(`${c.id}: related task ${e} not found in DB, skipping link`);continue}await o.insert(adrTaskLinks).values({adrId:c.id,taskId:e,linkType:`related`})}}catch(e){n.errors.push({file:r,error:String(e)})}return n}init_preload_helper();var log$1=getLogger(`lifecycle:evidence`);async function recordEvidence(e,t,n,r,a){let o=new Date().toISOString(),s=`stage-${e}-${t}`,c=`evidence-${e}-${t}-${Date.now()}`,l={id:c,stageId:s,uri:n,type:r,recordedAt:o,recordedBy:a?.agent,description:a?.description};try{let{getDb:e}=await __vitePreload(async()=>{let{getDb:e}=await import(`./s0-WkOGk2.js`);return{getDb:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]),import.meta.url);await(await e(a?.cwd)).insert(tasksLifecycleEvidence).values({id:c,stageId:s,uri:n,type:r,recordedAt:o,recordedBy:a?.agent??null,description:a?.description??null}).run()}catch(e){log$1.warn({err:e},`Failed to write evidence to SQLite`)}return l}async function linkProvenance(e,t,n,r){return recordEvidence(e,t,(0,import___vite_browser_external.relative)(resolveCleoDir(r),n).replaceAll(`\\`,`/`),`file`,{description:(0,import___vite_browser_external.basename)(n),cwd:r})}function normalizeSlug(e){return e.normalize(`NFKD`).replace(/[\u0300-\u036f]/g,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}init_preload_helper();var slugLockChain=new Map;async function acquireSlugLock(e){let t=slugLockChain.get(e)??Promise.resolve(),n,r=new Promise(e=>{n=e});slugLockChain.set(e,r),await t;let a=!1;return()=>{a||(a=!0,n(),slugLockChain.get(e)===r&&slugLockChain.delete(e))}}var reservedSlugs=new Set;function reservationKey(e,t){let n;try{n=getProjectRoot(t)}catch{n=t??`<unresolved>`}return`${n}\u0000${e}`}async function reserveSlug(e,t,n){let r=normalizeSlug(t),a=await acquireSlugLock(r);try{if(reservedSlugs.has(reservationKey(r,n?.cwd)))return{ok:!1,code:`E_SLUG_RESERVED`,suggestions:await deriveSlugSuggestionsForAllocator(await getDb(n?.cwd),r)};let e=await getDb(n?.cwd),{attachments:t}=await __vitePreload(async()=>{let{attachments:e}=await import(`./CE7phgWq.js`);return{attachments:e}},__vite__mapDeps([35,11,2,12,13,8,30,4,5,26,27]),import.meta.url),{eq:a}=await __vitePreload(async()=>{let{eq:e}=await import(`./DeWI5qCn.js`);return{eq:e}},__vite__mapDeps([33,4,34,9]),import.meta.url);return await e.select().from(t).where(a(t.slug,r)).get()?{ok:!1,code:`E_SLUG_RESERVED`,suggestions:await deriveSlugSuggestionsForAllocator(e,r)}:(reservedSlugs.add(reservationKey(r,n?.cwd)),{ok:!0,normalizedSlug:r})}finally{a()}}var WriterRegistryCollisionError=class extends Error{kind;constructor(e,t){super(`WriterRegistry: kind '${e}' has ${t} descriptors; exactly one writer per DocKind is required (T10366)`),this.name=`WriterRegistryCollisionError`,this.kind=e}},DESCRIPTORS=Object.freeze([{kind:`adr`,verb:`docs add`,dispatchOp:`docs.add`,coreFn:`docs.add (dispatch handler)`,mode:`ssot`,sourcePath:`packages/cleo/src/dispatch/domains/docs.ts`},{kind:`spec`,verb:`docs add`,dispatchOp:`docs.add`,coreFn:`docs.add (dispatch handler)`,mode:`ssot`,sourcePath:`packages/cleo/src/dispatch/domains/docs.ts`},{kind:`research`,verb:`docs add`,dispatchOp:`docs.add`,coreFn:`docs.add (dispatch handler)`,mode:`ssot`,sourcePath:`packages/cleo/src/dispatch/domains/docs.ts`},{kind:`handoff`,verb:`docs add`,dispatchOp:`docs.add`,coreFn:`docs.add (dispatch handler)`,mode:`ssot`,sourcePath:`packages/cleo/src/dispatch/domains/docs.ts`},{kind:`note`,verb:`docs add`,dispatchOp:`docs.add`,coreFn:`docs.add (dispatch handler)`,mode:`ssot`,sourcePath:`packages/cleo/src/dispatch/domains/docs.ts`},{kind:`llm-readme`,verb:`system-managed`,dispatchOp:`docs.generate`,coreFn:`generateDocsLlmsTxt`,mode:`system-managed`,sourcePath:`packages/core/src/docs/docs-generator.ts`},{kind:`changeset`,verb:`changeset add`,dispatchOp:`changeset.add`,coreFn:`writeChangesetEntry`,mode:`ssot-first`,sourcePath:`packages/core/src/changesets/writer.ts`},{kind:`release-note`,verb:`system-managed`,dispatchOp:`release.reconcile`,coreFn:`composeReleaseNotes`,mode:`system-managed`,sourcePath:`packages/core/src/release/reconcile.ts`},{kind:`plan`,verb:`docs add`,dispatchOp:`docs.add`,coreFn:`docs.add (dispatch handler)`,mode:`ssot`,sourcePath:`packages/cleo/src/dispatch/domains/docs.ts`},{kind:`rcasd`,verb:`docs add`,dispatchOp:`docs.add`,coreFn:`docs.add (dispatch handler)`,mode:`ssot`,sourcePath:`packages/cleo/src/dispatch/domains/docs.ts`}]),SYSTEM_MANAGED_ENTRIES=Object.freeze([{id:`release.plan-json`,kind:null,relativePathGlob:`.cleo/release/*.plan.json`,sourcePath:`packages/core/src/release/plan.ts`,callsite:`packages/core/src/release/plan.ts:writePlanFile`,adrRef:`ADR-028 (release manifest format)`,reason:`Release Plan envelopes are JSON not Markdown and live alongside the DB releases row by design. Writer is the single composer; no DocKind binding.`},{id:`release.changelog`,kind:`release-note`,relativePathGlob:`CHANGELOG.md`,sourcePath:`packages/core/src/release/plan.ts`,callsite:`packages/core/src/release/plan.ts:writeChangelogSection`,adrRef:`ADR-028 §2.5 (CHANGELOG composer)`,reason:"CHANGELOG.md is composed from aggregated changesets at release-plan time. The descriptor for `release-note` already marks the kind as system-managed; this entry pins the exact callsite for the lint gate."},{id:`lifecycle.rcasd-migration`,kind:`rcasd`,relativePathGlob:`.cleo/rcasd/**/*.md`,sourcePath:`packages/core/src/lifecycle/consolidate-rcasd.ts`,callsite:`packages/core/src/lifecycle/consolidate-rcasd.ts:moveWithFrontmatter`,adrRef:`ADR-076 (canon routing — migration tooling exemption)`,reason:"RCASD consolidation tool moves pre-existing rcasd `.md` files between on-disk layouts and re-injects frontmatter. Not a new authoring path — a migration helper for files already on disk."},{id:`lifecycle.stage-artifact`,kind:`rcasd`,relativePathGlob:`.cleo/stages/*/*-*.md`,sourcePath:`packages/core/src/lifecycle/stage-artifacts.ts`,callsite:`packages/core/src/lifecycle/stage-artifacts.ts:ensureStageArtifact`,adrRef:`ADR-076 (canon routing — stage artifact composer)`,reason:`Stage artifacts are composed deterministically from epic id + stage. Authoring is by the lifecycle engine, not the user — no DocKind slug.`},{id:`sessions.handoff-markdown`,kind:`handoff`,relativePathGlob:`**/*-handoff*.md`,sourcePath:`packages/core/src/sessions/handoff-markdown.ts`,callsite:`packages/core/src/sessions/handoff-markdown.ts:emitHandoffMarkdown`,adrRef:`ADR-076 (canon routing — handoff renderer)`,reason:"Pure markdown renderer for the handoff envelope. Callers that want a canonical SSoT-tracked handoff use `cleo docs add --type handoff` (which uses this renderer internally). The renderer itself does not create a DocKind row."},{id:`nexus.wiki-overview`,kind:null,relativePathGlob:`**/nexus/wiki/**/*.md`,sourcePath:`packages/core/src/nexus/wiki-index.ts`,callsite:`packages/core/src/nexus/wiki-index.ts:rebuildWikiIndex`,adrRef:`ADR-076 (canon routing — nexus wiki is not a DocKind)`,reason:`Nexus wiki overview + community pages are derived artifacts of the nexus graph; they are regenerated on every wiki rebuild and are not a DocKind in the canon registry.`},{id:`docs.publish-mirror`,kind:null,relativePathGlob:`docs/**/*.md`,sourcePath:`packages/core/src/docs/publish-pr.ts`,callsite:`packages/core/src/docs/publish-pr.ts:writePublishMirror`,adrRef:`ADR-076 (canon routing — publish mirror)`,reason:"publishMirror writes are the canon-routed copy step (the second half of `cleo docs publish`). They consume bytes that ALREADY routed through the SSoT via `cleo docs add` — pinned here so the lint gate skips them."},{id:`bootstrap.global-agents-md`,kind:null,relativePathGlob:`**/.agents/AGENTS.md`,sourcePath:`packages/core/src/bootstrap.ts`,callsite:`packages/core/src/bootstrap.ts:bootstrap (sanitize CAAMP)`,adrRef:`ADR-076 (canon routing — global bootstrap is not a DocKind)`,reason:"Bootstrap sanitizes the global `~/.agents/AGENTS.md` hub (strips legacy <!-- CLEO:START --> blocks + CAAMP corruption). Not a DocKind authoring path — it mutates a user-owned global config file in place during init."},{id:`init.pr-template`,kind:null,relativePathGlob:`.github/pull_request_template.md`,sourcePath:`packages/core/src/init.ts`,callsite:`packages/core/src/init.ts:installGithubTemplates`,adrRef:`ADR-076 (canon routing — github scaffolding is not a DocKind)`,reason:"`cleo init` copies the bundled pull_request_template.md into the host project `.github/` directory. Authoring is by the init scaffolder (the template ships in the npm package) — no user-facing slug, no DocKind row."},{id:`injection.global-cleo-injection`,kind:null,relativePathGlob:`**/.cleo/templates/CLEO-INJECTION.md`,sourcePath:`packages/core/src/injection.ts`,callsite:`packages/core/src/injection.ts:installGlobalCleoInjection`,adrRef:`ADR-076 (canon routing — global protocol injection is not a DocKind)`,reason:"Installs the bundled `CLEO-INJECTION.md` protocol template into the global `<cleoHome>/templates/` directory. Bytes are vendored in the npm package — the install step is deterministic and idempotent, not a DocKind authoring path."}]);function globToRegExp(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n],a=e[n+1];r===`*`&&a===`*`?(t+=`.*`,n++):r===`*`?t+=`[^/]*`:r===`?`?t+=`.`:r!==void 0&&/[.+^${}()|[\]\\]/.test(r)?t+=`\\${r}`:t+=r??``}return RegExp(`^${t}$`)}var WriterRegistry=class e{static descriptors=e.buildDescriptorMap();static buildDescriptorMap(){let e=new Map;for(let t of DESCRIPTORS)e.set(t.kind,(e.get(t.kind)??0)+1);for(let[t,n]of e)if(n>1)throw new WriterRegistryCollisionError(t,n);let t=new Map;for(let e of DESCRIPTORS)t.set(e.kind,e);return t}static for(t){let n=e.descriptors.get(t);if(!n)throw Error(`E_INVALID_KIND: no writer registered for DocKind '${t}'`);return n}static list(){return DESCRIPTORS}static validateNoCollisions(){let e=new Map;for(let t of DESCRIPTORS)e.set(t.kind,(e.get(t.kind)??0)+1);for(let[t,n]of e)if(n>1)return{ok:!1,kind:t,count:n};return{ok:!0}}static hasCompleteCoverage(){let e=new Set(DESCRIPTORS.map(e=>e.kind));for(let t of BUILTIN_DOC_KIND_VALUES)if(!e.has(t))return!1;return!0}static listSystemManaged(){return SYSTEM_MANAGED_ENTRIES}static isSystemManaged(e){let t=e.replace(/\\/g,`/`);for(let e of SYSTEM_MANAGED_ENTRIES)if(globToRegExp(e.relativePathGlob).test(t))return e;return null}static findSystemManagedById(e){for(let t of SYSTEM_MANAGED_ENTRIES)if(t.id===e)return t;return null}static async write(t){let n;try{n=e.for(t.kind)}catch{return{ok:!1,code:`E_INVALID_KIND`,details:{kind:t.kind}}}let r=await reserveSlug(t.kind,t.slug,t.opts);return r.ok?{ok:!1,code:`E_NOT_IMPLEMENTED`,details:{message:`WriterRegistry.write is a foundation entry point — actual writer delegation lands in T10367 (docs add) and T10368 (changeset add).`,descriptor:n,normalizedSlug:r.normalizedSlug}}:{ok:!1,code:`E_SLUG_RESERVED`,details:{suggestions:r.suggestions}}}},STAGE_SUBDIRS={research:`research`,consensus:`consensus`,architecture_decision:`architecture`,specification:`specification`,decomposition:`decomposition`,contribution:`contributions`},DEFAULT_DIR=`rcasd`,EPIC_ID_PATTERN=/^(T\d+)/;function normalizeEpicId(e){let t=e.match(EPIC_ID_PATTERN);return t?t[1]:e}function getEpicDir(e,t){let n=normalizeEpicId(e);return(0,import___vite_browser_external.join)(resolveCleoDir(t),DEFAULT_DIR,n)}function getStagePath(e,t,n){let r=STAGE_SUBDIRS[t]??t;return(0,import___vite_browser_external.join)(getEpicDir(e,n),r)}function ensureStagePath(e,t,n){let r=getStagePath(e,t,n);return(0,import___vite_browser_external.existsSync)(r)||(0,import___vite_browser_external.mkdirSync)(r,{recursive:!0}),r}var FRONTMATTER_RE=/^---\n([\s\S]*?)\n---\n?/;function parseScalar(e){let t=e.trim();return t.startsWith(`"`)&&t.endsWith(`"`)||t.startsWith(`'`)&&t.endsWith(`'`)?t.slice(1,-1):t===`true`?!0:t===`false`?!1:t===`null`||t===`~`?null:t}function parseYamlContent(e){let t={},n=e.split(`
4
- `),r=0;for(;r<n.length;){let e=n[r];if(e.trim()===``){r++;continue}let a=e.match(/^(\w[\w-]*)\s*:\s*(.*)/);if(!a){r++;continue}let o=a[1],s=a[2].trim();if(s!==``){let e=parseScalar(s);t[o]=e===null?void 0:e,r++;continue}let c=[];for(r++;r<n.length;){let e=n[r];if(e.trim()===``){r++;continue}let t=e.match(/^\s+-\s+(\w[\w-]*)\s*:\s*(.*)/);if(!t)break;let a={},o=t[1],s=parseScalar(t[2]);for(a[o]=s===null?void 0:s,r++;r<n.length;){let e=n[r].match(/^\s{4,}(\w[\w-]*)\s*:\s*(.*)/);if(!e)break;let t=e[1],o=parseScalar(e[2]);a[t]=o===null?void 0:o,r++}c.push(a)}c.length>0&&(t[o]=c)}return t}function parseFrontmatter(e){let t=e.match(FRONTMATTER_RE);if(!t)return{frontmatter:null,body:e,raw:``};let n=t[0],r=t[1],a=e.slice(n.length);return{frontmatter:parseYamlContent(r),body:a,raw:n}}function serializeScalar(e){if(e==null)return``;if(typeof e==`boolean`)return String(e);let t=String(e);return t.includes(`:`)||t.includes(`#`)||t.includes(`{`)||t.includes(`}`)?`"${t.replace(/"/g,`\\"`)}"`:t}function serializeFrontmatter(e){let t=[`---`],n=[`epic`,`stage`,`task`],r=[`created`,`updated`],a=new Set;for(let r of n)r in e&&e[r]!==void 0&&(t.push(`${r}: ${serializeScalar(e[r])}`),a.add(r));if(e.related&&e.related.length>0){t.push(`related:`);for(let n of e.related){let e=Object.entries(n).filter(([e,t])=>t!==void 0);if(e.length===0)continue;let[r,a]=e[0];t.push(` - ${r}: ${serializeScalar(a)}`);for(let n=1;n<e.length;n++){let[r,a]=e[n];t.push(` ${r}: ${serializeScalar(a)}`)}}a.add(`related`)}for(let n of r)n in e&&e[n]!==void 0&&(t.push(`${n}: ${serializeScalar(e[n])}`),a.add(n));for(let[n,r]of Object.entries(e))if(!a.has(n)&&r!==void 0)if(Array.isArray(r)){t.push(`${n}:`);for(let e of r)if(typeof e==`object`&&e){let n=Object.entries(e).filter(([e,t])=>t!==void 0);if(n.length===0)continue;let[r,a]=n[0];t.push(` - ${r}: ${serializeScalar(a)}`);for(let e=1;e<n.length;e++){let[r,a]=n[e];t.push(` ${r}: ${serializeScalar(a)}`)}}else t.push(` - ${serializeScalar(e)}`)}else t.push(`${n}: ${serializeScalar(r)}`);return t.push(`---`),t.join(`
5
- `)+`
6
- `}function addFrontmatter(e,t){let n=parseFrontmatter(e),r=serializeFrontmatter(t);return n.frontmatter===null?r+e:r+n.body}function buildFrontmatter(e,t,n){let r=new Date().toISOString().split(`T`)[0],a={epic:e,stage:t};return n?.task&&(a.task=n.task),n?.related&&n.related.length>0&&(a.related=n.related),a.created=n?.created??r,a.updated=r,a}var PIPELINE_STAGES=[`research`,`consensus`,`architecture_decision`,`specification`,`decomposition`,`implementation`,`validation`,`testing`,`release`],STAGE_DEFINITIONS={research:{stage:`research`,name:`Research`,description:`Information gathering, exploration, and knowledge acquisition`,order:1,category:`planning`,skippable:!1,defaultTimeoutHours:48,requiredGates:[`prerequisites-met`],expectedArtifacts:[`research-report`,`findings-document`]},consensus:{stage:`consensus`,name:`Consensus`,description:`Multi-agent decision making and validation of research findings`,order:2,category:`decision`,skippable:!0,defaultTimeoutHours:24,requiredGates:[`research-complete`,`agreement-reached`],expectedArtifacts:[`consensus-record`,`decision-log`]},architecture_decision:{stage:`architecture_decision`,name:`Architecture Decision`,description:`Architecture Decision Records - documenting significant technical decisions`,order:3,category:`decision`,skippable:!0,defaultTimeoutHours:24,requiredGates:[`decisions-documented`,`review-completed`],expectedArtifacts:[`adr-document`]},specification:{stage:`specification`,name:`Specification`,description:`Specification writing - RFC-style documentation of requirements and design`,order:4,category:`planning`,skippable:!1,defaultTimeoutHours:72,requiredGates:[`spec-complete`,`spec-reviewed`],expectedArtifacts:[`spec-document`,`api-spec`,`design-doc`]},decomposition:{stage:`decomposition`,name:`Decomposition`,description:`Task breakdown - splitting work into atomic, executable tasks`,order:5,category:`planning`,skippable:!1,defaultTimeoutHours:24,requiredGates:[`tasks-created`,`dependencies-mapped`],expectedArtifacts:[`task-breakdown`,`dependency-graph`]},implementation:{stage:`implementation`,name:`Implementation`,description:`Implementation - writing code and building features`,order:6,category:`execution`,skippable:!1,defaultTimeoutHours:null,requiredGates:[`code-complete`,`lint-passing`],expectedArtifacts:[`source-code`,`implementation-notes`]},validation:{stage:`validation`,name:`Validation`,description:`Verification - static analysis, type checking, and quality gates`,order:7,category:`validation`,skippable:!1,defaultTimeoutHours:12,requiredGates:[`static-analysis-pass`,`type-check-pass`],expectedArtifacts:[`verification-report`]},testing:{stage:`testing`,name:`Testing`,description:`Testing - running test suites and ensuring coverage`,order:8,category:`validation`,skippable:!1,defaultTimeoutHours:24,requiredGates:[`tests-pass`,`coverage-met`],expectedArtifacts:[`test-results`,`coverage-report`]},release:{stage:`release`,name:`Release`,description:`Release - versioning, publishing, and deployment`,order:9,category:`delivery`,skippable:!0,defaultTimeoutHours:4,requiredGates:[`version-bumped`,`changelog-updated`,`artifacts-published`],expectedArtifacts:[`version-tag`,`release-notes`,`published-package`]}},STAGE_ORDER={research:1,consensus:2,architecture_decision:3,specification:4,decomposition:5,implementation:6,validation:7,testing:8,release:9},STAGE_PREREQUISITES={research:[],consensus:[`research`],architecture_decision:[`research`,`consensus`],specification:[`research`,`consensus`,`architecture_decision`],decomposition:[`research`,`specification`],implementation:[`research`,`specification`,`decomposition`],validation:[`implementation`],testing:[`implementation`,`validation`],release:[`implementation`,`validation`,`testing`]},STAGE_ALIASES={architecture:`architecture_decision`,adr:`architecture_decision`,spec:`specification`,decompose:`decomposition`,implement:`implementation`,verify:`validation`,validate:`validation`,test:`testing`};function resolveStageAlias(e){return STAGE_ALIASES[e]??e}function isValidStage(e){return PIPELINE_STAGES.includes(e)}function getStagesByCategory(e){return PIPELINE_STAGES.filter(t=>STAGE_DEFINITIONS[t].category===e)}var STAGE_COUNT=PIPELINE_STAGES.length,PLANNING_STAGES=getStagesByCategory(`planning`),DECISION_STAGES=getStagesByCategory(`decision`),EXECUTION_STAGES=getStagesByCategory(`execution`),VALIDATION_STAGES=getStagesByCategory(`validation`),DELIVERY_STAGES=getStagesByCategory(`delivery`),log=getLogger(`lifecycle:stage-artifacts`);function stageSlug(e){return e.replace(/_/g,`-`)}function toRelatedLinkType(e){switch(e){case`research`:return`research`;case`consensus`:return`consensus`;case`architecture_decision`:return`adr`;case`specification`:return`spec`;default:return`file`}}function buildDefaultBody(e,t){return[`# ${STAGE_DEFINITIONS[t].name} (${e})`,``,`## Summary`,``,`Lifecycle artifact for stage \`${t}\` on epic \`${e}\`.`,``,`## Notes`,``].join(`
7
- `)}function toWorkspaceRelative(e,t){return(0,import___vite_browser_external.relative)(getProjectRoot(t),e).replaceAll(`\\`,`/`)}function buildRelatedLinks(e,t,n,r){let a=STAGE_PREREQUISITES[t]??[],o=[{type:`task`,id:e}],s=(0,import___vite_browser_external.dirname)(n);for(let t of a){let n=(0,import___vite_browser_external.join)(getStagePath(e,t,r),`${e}-${stageSlug(t)}.md`);(0,import___vite_browser_external.existsSync)(n)&&o.push({type:toRelatedLinkType(t),path:(0,import___vite_browser_external.relative)(s,n).replaceAll(`\\`,`/`)})}return o}async function ensureStageArtifact(e,t,n){let r=(0,import___vite_browser_external.join)(ensureStagePath(e,t,n),`${e}-${stageSlug(t)}.md`),a=toWorkspaceRelative(r,n),o=(0,import___vite_browser_external.existsSync)(r)?await(0,import___vite_browser_external.readFile)(r,`utf-8`):buildDefaultBody(e,t),s=buildRelatedLinks(e,t,r,n);if(await(0,import___vite_browser_external.writeFile)(r,addFrontmatter(o,buildFrontmatter(e,t,{task:e,related:s})),`utf-8`),{}.CLEO_QUIET!==`1`){let e=WriterRegistry.findSystemManagedById(`lifecycle.stage-artifact`);e!==null&&log.debug({path:r,registryEntry:e.id,adr:e.adrRef},`system-managed writer (T10368)`)}return{absolutePath:r,outputFile:a,related:s}}var AGENTS_SKILLS_BRIDGE_PATH=(0,import___vite_browser_external.join)((0,import___vite_browser_external.homedir)(),`.agents`,`skills`),CLAUDE_SKILLS_AGENTS_SHARED_PATH=(0,import___vite_browser_external.join)((0,import___vite_browser_external.homedir)(),`.claude`,`skills`,`agents-shared`),agentsResolver=createPlatformPathsResolver(`agents`,`AGENTS_HOME`);function getPlatformPaths(){return agentsResolver.getPlatformPaths()}function getAgentsHome(){return getPlatformPaths().data}function getLockFilePath(){return(0,import___vite_browser_external.join)(getAgentsHome(),`.caamp-lock.json`)}function getAgentsMcpDir(e=`global`,t){return e===`global`?(0,import___vite_browser_external.join)(getAgentsHome(),`mcp`):(0,import___vite_browser_external.join)(t??process.cwd(),`.agents`,`mcp`)}function getAgentsMcpServersPath(e=`global`,t){return(0,import___vite_browser_external.join)(getAgentsMcpDir(e,t),`servers.json`)}function getAgentsConfigPath(e=`global`,t){return e===`global`?(0,import___vite_browser_external.join)(getAgentsHome(),`config.toml`):(0,import___vite_browser_external.join)(t??process.cwd(),`.agents`,`config.toml`)}function createScanner$1(e,t=!1){let n=e.length,r=0,a=``,o=0,s=16,c=0,l=0,u=0,d=0,f=0;function p(t,n){let a=0,o=0;for(;a<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)o=o*16+t-48;else if(t>=65&&t<=70)o=o*16+t-65+10;else if(t>=97&&t<=102)o=o*16+t-97+10;else break;r++,a++}return a<t&&(o=-1),o}function m(e){r=e,a=``,o=0,s=16,f=0}function h(){let t=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&isDigit(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&isDigit(e.charCodeAt(r)))for(r++;r<e.length&&isDigit(e.charCodeAt(r));)r++;else return f=3,e.substring(t,r);let n=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&isDigit(e.charCodeAt(r))){for(r++;r<e.length&&isDigit(e.charCodeAt(r));)r++;n=r}else f=3;return e.substring(t,n)}function g(){let t=``,a=r;for(;;){if(r>=n){t+=e.substring(a,r),f=2;break}let o=e.charCodeAt(r);if(o===34){t+=e.substring(a,r),r++;break}if(o===92){if(t+=e.substring(a,r),r++,r>=n){f=2;break}switch(e.charCodeAt(r++)){case 34:t+=`"`;break;case 92:t+=`\\`;break;case 47:t+=`/`;break;case 98:t+=`\b`;break;case 102:t+=`\f`;break;case 110:t+=`
8
- `;break;case 114:t+=`\r`;break;case 116:t+=` `;break;case 117:let e=p(4,!0);e>=0?t+=String.fromCharCode(e):f=4;break;default:f=5}a=r;continue}if(o>=0&&o<=31)if(isLineBreak(o)){t+=e.substring(a,r),f=2;break}else f=6;r++}return t}function _(){if(a=``,f=0,o=r,l=c,d=u,r>=n)return o=n,s=17;let t=e.charCodeAt(r);if(isWhiteSpace(t)){do r++,a+=String.fromCharCode(t),t=e.charCodeAt(r);while(isWhiteSpace(t));return s=15}if(isLineBreak(t))return r++,a+=String.fromCharCode(t),t===13&&e.charCodeAt(r)===10&&(r++,a+=`
9
- `),c++,u=r,s=14;switch(t){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,a=g(),s=10;case 47:let l=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!isLineBreak(e.charCodeAt(r));)r++;return a=e.substring(l,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;let t=n-1,o=!1;for(;r<t;){let t=e.charCodeAt(r);if(t===42&&e.charCodeAt(r+1)===47){r+=2,o=!0;break}r++,isLineBreak(t)&&(t===13&&e.charCodeAt(r)===10&&r++,c++,u=r)}return o||(r++,f=1),a=e.substring(l,r),s=13}return a+=String.fromCharCode(t),r++,s=16;case 45:if(a+=String.fromCharCode(t),r++,r===n||!isDigit(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return a+=h(),s=11;default:for(;r<n&&v(t);)r++,t=e.charCodeAt(r);if(o!==r){switch(a=e.substring(o,r),a){case`true`:return s=8;case`false`:return s=9;case`null`:return s=7}return s=16}return a+=String.fromCharCode(t),r++,s=16}}function v(e){if(isWhiteSpace(e)||isLineBreak(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function y(){let e;do e=_();while(e>=12&&e<=15);return e}return{setPosition:m,getPosition:()=>r,scan:t?y:_,getToken:()=>s,getTokenValue:()=>a,getTokenOffset:()=>o,getTokenLength:()=>r-o,getTokenStartLine:()=>l,getTokenStartCharacter:()=>o-d,getTokenError:()=>f}}function isWhiteSpace(e){return e===32||e===9}function isLineBreak(e){return e===10||e===13}function isDigit(e){return e>=48&&e<=57}var CharacterCodes;(function(e){e[e.lineFeed=10]=`lineFeed`,e[e.carriageReturn=13]=`carriageReturn`,e[e.space=32]=`space`,e[e._0=48]=`_0`,e[e._1=49]=`_1`,e[e._2=50]=`_2`,e[e._3=51]=`_3`,e[e._4=52]=`_4`,e[e._5=53]=`_5`,e[e._6=54]=`_6`,e[e._7=55]=`_7`,e[e._8=56]=`_8`,e[e._9=57]=`_9`,e[e.a=97]=`a`,e[e.b=98]=`b`,e[e.c=99]=`c`,e[e.d=100]=`d`,e[e.e=101]=`e`,e[e.f=102]=`f`,e[e.g=103]=`g`,e[e.h=104]=`h`,e[e.i=105]=`i`,e[e.j=106]=`j`,e[e.k=107]=`k`,e[e.l=108]=`l`,e[e.m=109]=`m`,e[e.n=110]=`n`,e[e.o=111]=`o`,e[e.p=112]=`p`,e[e.q=113]=`q`,e[e.r=114]=`r`,e[e.s=115]=`s`,e[e.t=116]=`t`,e[e.u=117]=`u`,e[e.v=118]=`v`,e[e.w=119]=`w`,e[e.x=120]=`x`,e[e.y=121]=`y`,e[e.z=122]=`z`,e[e.A=65]=`A`,e[e.B=66]=`B`,e[e.C=67]=`C`,e[e.D=68]=`D`,e[e.E=69]=`E`,e[e.F=70]=`F`,e[e.G=71]=`G`,e[e.H=72]=`H`,e[e.I=73]=`I`,e[e.J=74]=`J`,e[e.K=75]=`K`,e[e.L=76]=`L`,e[e.M=77]=`M`,e[e.N=78]=`N`,e[e.O=79]=`O`,e[e.P=80]=`P`,e[e.Q=81]=`Q`,e[e.R=82]=`R`,e[e.S=83]=`S`,e[e.T=84]=`T`,e[e.U=85]=`U`,e[e.V=86]=`V`,e[e.W=87]=`W`,e[e.X=88]=`X`,e[e.Y=89]=`Y`,e[e.Z=90]=`Z`,e[e.asterisk=42]=`asterisk`,e[e.backslash=92]=`backslash`,e[e.closeBrace=125]=`closeBrace`,e[e.closeBracket=93]=`closeBracket`,e[e.colon=58]=`colon`,e[e.comma=44]=`comma`,e[e.dot=46]=`dot`,e[e.doubleQuote=34]=`doubleQuote`,e[e.minus=45]=`minus`,e[e.openBrace=123]=`openBrace`,e[e.openBracket=91]=`openBracket`,e[e.plus=43]=`plus`,e[e.slash=47]=`slash`,e[e.formFeed=12]=`formFeed`,e[e.tab=9]=`tab`})(CharacterCodes||={});var cachedSpaces=Array(20).fill(0).map((e,t)=>` `.repeat(t)),maxCachedValues=200,cachedBreakLinesWithSpaces={" ":{"\n":Array(maxCachedValues).fill(0).map((e,t)=>`
10
- `+` `.repeat(t)),"\r":Array(maxCachedValues).fill(0).map((e,t)=>`\r`+` `.repeat(t)),"\r\n":Array(maxCachedValues).fill(0).map((e,t)=>`\r
11
- `+` `.repeat(t))}," ":{"\n":Array(maxCachedValues).fill(0).map((e,t)=>`
12
- `+` `.repeat(t)),"\r":Array(maxCachedValues).fill(0).map((e,t)=>`\r`+` `.repeat(t)),"\r\n":Array(maxCachedValues).fill(0).map((e,t)=>`\r
13
- `+` `.repeat(t))}},ParseOptions;(function(e){e.DEFAULT={allowTrailingComma:!1}})(ParseOptions||={});function getLocation$1(e,t){let n=[],r={},a,o={value:{},offset:0,length:0,type:`object`,parent:void 0},s=!1;function c(e,t,n,r){o.value=e,o.offset=t,o.length=n,o.type=r,o.colonOffset=void 0,a=o}try{visit$1(e,{onObjectBegin:(e,o)=>{if(t<=e)throw r;a=void 0,s=t>e,n.push(``)},onObjectProperty:(e,a,o)=>{if(t<a||(c(e,a,o,`property`),n[n.length-1]=e,t<=a+o))throw r},onObjectEnd:(e,o)=>{if(t<=e)throw r;a=void 0,n.pop()},onArrayBegin:(e,o)=>{if(t<=e)throw r;a=void 0,n.push(0)},onArrayEnd:(e,o)=>{if(t<=e)throw r;a=void 0,n.pop()},onLiteralValue:(e,n,a)=>{if(t<n||(c(e,n,a,getNodeType(e)),t<=n+a))throw r},onSeparator:(e,o,c)=>{if(t<=o)throw r;if(e===`:`&&a&&a.type===`property`)a.colonOffset=o,s=!1,a=void 0;else if(e===`,`){let e=n[n.length-1];typeof e==`number`?n[n.length-1]=e+1:(s=!0,n[n.length-1]=``),a=void 0}}})}catch(e){if(e!==r)throw e}return{path:n,previousNode:a,isAtPropertyKey:s,matches:e=>{let t=0;for(let r=0;t<e.length&&r<n.length;r++)if(e[t]===n[r]||e[t]===`*`)t++;else if(e[t]!==`**`)return!1;return t===e.length}}}function parse$1(e,t=[],n=ParseOptions.DEFAULT){let r=null,a=[],o=[];function s(e){Array.isArray(a)?a.push(e):r!==null&&(a[r]=e)}return visit$1(e,{onObjectBegin:()=>{let e={};s(e),o.push(a),a=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{a=o.pop()},onArrayBegin:()=>{let e=[];s(e),o.push(a),a=e,r=null},onArrayEnd:()=>{a=o.pop()},onLiteralValue:s,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),a[0]}function parseTree$1(e,t=[],n=ParseOptions.DEFAULT){let r={type:`array`,offset:-1,length:-1,children:[],parent:void 0};function a(e){r.type===`property`&&(r.length=e-r.offset,r=r.parent)}function o(e){return r.children.push(e),e}visit$1(e,{onObjectBegin:e=>{r=o({type:`object`,offset:e,length:-1,parent:r,children:[]})},onObjectProperty:(e,t,n)=>{r=o({type:`property`,offset:t,length:-1,parent:r,children:[]}),r.children.push({type:`string`,value:e,offset:t,length:n,parent:r})},onObjectEnd:(e,t)=>{a(e+t),r.length=e+t-r.offset,r=r.parent,a(e+t)},onArrayBegin:(e,t)=>{r=o({type:`array`,offset:e,length:-1,parent:r,children:[]})},onArrayEnd:(e,t)=>{r.length=e+t-r.offset,r=r.parent,a(e+t)},onLiteralValue:(e,t,n)=>{o({type:getNodeType(e),offset:t,length:n,parent:r,value:e}),a(t+n)},onSeparator:(e,t,n)=>{r.type===`property`&&(e===`:`?r.colonOffset=t:e===`,`&&a(t))},onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n);let s=r.children[0];return s&&delete s.parent,s}function findNodeAtLocation$1(e,t){if(!e)return;let n=e;for(let e of t)if(typeof e==`string`){if(n.type!==`object`||!Array.isArray(n.children))return;let t=!1;for(let r of n.children)if(Array.isArray(r.children)&&r.children[0].value===e&&r.children.length===2){n=r.children[1],t=!0;break}if(!t)return}else{let t=e;if(n.type!==`array`||t<0||!Array.isArray(n.children)||t>=n.children.length)return;n=n.children[t]}return n}function getNodePath$1(e){if(!e.parent||!e.parent.children)return[];let t=getNodePath$1(e.parent);if(e.parent.type===`property`){let n=e.parent.children[0].value;t.push(n)}else if(e.parent.type===`array`){let n=e.parent.children.indexOf(e);n!==-1&&t.push(n)}return t}function getNodeValue$1(e){switch(e.type){case`array`:return e.children.map(getNodeValue$1);case`object`:let t=Object.create(null);for(let n of e.children){let e=n.children[1];e&&(t[n.children[0].value]=getNodeValue$1(e))}return t;case`null`:case`string`:case`number`:case`boolean`:return e.value;default:return}}function contains(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}function findNodeAtOffset$1(e,t,n=!1){if(contains(e,t,n)){let r=e.children;if(Array.isArray(r))for(let e=0;e<r.length&&r[e].offset<=t;e++){let a=findNodeAtOffset$1(r[e],t,n);if(a)return a}return e}}function visit$1(e,t,n=ParseOptions.DEFAULT){let r=createScanner$1(e,!1),a=[],o=0;function s(e){return e?()=>o===0&&e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>o===0&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function l(e){return e?t=>o===0&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>a.slice()):()=>!0}function u(e){return e?()=>{o>0?o++:e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>a.slice())===!1&&(o=1)}:()=>!0}function d(e){return e?()=>{o>0&&o--,o===0&&e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}let f=u(t.onObjectBegin),p=l(t.onObjectProperty),m=d(t.onObjectEnd),h=u(t.onArrayBegin),g=d(t.onArrayEnd),_=l(t.onLiteralValue),v=c(t.onSeparator),y=s(t.onComment),b=c(t.onError),x=n&&n.disallowComments,S=n&&n.allowTrailingComma;function C(){for(;;){let e=r.scan();switch(r.getTokenError()){case 4:w(14);break;case 5:w(15);break;case 3:w(13);break;case 1:x||w(11);break;case 2:w(12);break;case 6:w(16);break}switch(e){case 12:case 13:x?w(10):y();break;case 16:w(1);break;case 15:case 14:break;default:return e}}}function w(e,t=[],n=[]){if(b(e),t.length+n.length>0){let e=r.getToken();for(;e!==17;){if(t.indexOf(e)!==-1){C();break}else if(n.indexOf(e)!==-1)break;e=C()}}}function T(e){let t=r.getTokenValue();return e?_(t):(p(t),a.push(t)),C(),!0}function E(){switch(r.getToken()){case 11:let e=r.getTokenValue(),t=Number(e);isNaN(t)&&(w(2),t=0),_(t);break;case 7:_(null);break;case 8:_(!0);break;case 9:_(!1);break;default:return!1}return C(),!0}function D(){return r.getToken()===10?(T(!1),r.getToken()===6?(v(`:`),C(),A()||w(4,[],[2,5])):w(5,[],[2,5]),a.pop(),!0):(w(3,[],[2,5]),!1)}function O(){f(),C();let e=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(e||w(4,[],[]),v(`,`),C(),r.getToken()===2&&S)break}else e&&w(6,[],[]);D()||w(4,[],[2,5]),e=!0}return m(),r.getToken()===2?C():w(7,[2],[]),!0}function k(){h(),C();let e=!0,t=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(t||w(4,[],[]),v(`,`),C(),r.getToken()===4&&S)break}else t&&w(6,[],[]);e?(a.push(0),e=!1):a[a.length-1]++,A()||w(4,[],[4,5]),t=!0}return g(),e||a.pop(),r.getToken()===4?C():w(8,[4],[]),!0}function A(){switch(r.getToken()){case 3:return k();case 1:return O();case 10:return T(!0);default:return E()}}return C(),r.getToken()===17?n.allowEmptyContent?!0:(w(4,[],[]),!1):A()?(r.getToken()!==17&&w(9,[],[]),!0):(w(4,[],[]),!1)}function stripComments$1(e,t){let n=createScanner$1(e),r=[],a,o=0,s;do switch(s=n.getPosition(),a=n.scan(),a){case 12:case 13:case 17:o!==s&&r.push(e.substring(o,s)),t!==void 0&&r.push(n.getTokenValue().replace(/[^\r\n]/g,t)),o=n.getPosition();break}while(a!==17);return r.join(``)}function getNodeType(e){switch(typeof e){case`boolean`:return`boolean`;case`number`:return`number`;case`string`:return`string`;case`object`:return e?Array.isArray(e)?`array`:`object`:`null`;default:return`null`}}var createScanner=createScanner$1,ScanError;(function(e){e[e.None=0]=`None`,e[e.UnexpectedEndOfComment=1]=`UnexpectedEndOfComment`,e[e.UnexpectedEndOfString=2]=`UnexpectedEndOfString`,e[e.UnexpectedEndOfNumber=3]=`UnexpectedEndOfNumber`,e[e.InvalidUnicode=4]=`InvalidUnicode`,e[e.InvalidEscapeCharacter=5]=`InvalidEscapeCharacter`,e[e.InvalidCharacter=6]=`InvalidCharacter`})(ScanError||={});var SyntaxKind;(function(e){e[e.OpenBraceToken=1]=`OpenBraceToken`,e[e.CloseBraceToken=2]=`CloseBraceToken`,e[e.OpenBracketToken=3]=`OpenBracketToken`,e[e.CloseBracketToken=4]=`CloseBracketToken`,e[e.CommaToken=5]=`CommaToken`,e[e.ColonToken=6]=`ColonToken`,e[e.NullKeyword=7]=`NullKeyword`,e[e.TrueKeyword=8]=`TrueKeyword`,e[e.FalseKeyword=9]=`FalseKeyword`,e[e.StringLiteral=10]=`StringLiteral`,e[e.NumericLiteral=11]=`NumericLiteral`,e[e.LineCommentTrivia=12]=`LineCommentTrivia`,e[e.BlockCommentTrivia=13]=`BlockCommentTrivia`,e[e.LineBreakTrivia=14]=`LineBreakTrivia`,e[e.Trivia=15]=`Trivia`,e[e.Unknown=16]=`Unknown`,e[e.EOF=17]=`EOF`})(SyntaxKind||={});var getLocation=getLocation$1,parse=parse$1,parseTree=parseTree$1,findNodeAtLocation=findNodeAtLocation$1,findNodeAtOffset=findNodeAtOffset$1,getNodePath=getNodePath$1,getNodeValue=getNodeValue$1,visit=visit$1,stripComments=stripComments$1,ParseErrorCode;(function(e){e[e.InvalidSymbol=1]=`InvalidSymbol`,e[e.InvalidNumberFormat=2]=`InvalidNumberFormat`,e[e.PropertyNameExpected=3]=`PropertyNameExpected`,e[e.ValueExpected=4]=`ValueExpected`,e[e.ColonExpected=5]=`ColonExpected`,e[e.CommaExpected=6]=`CommaExpected`,e[e.CloseBraceExpected=7]=`CloseBraceExpected`,e[e.CloseBracketExpected=8]=`CloseBracketExpected`,e[e.EndOfFileExpected=9]=`EndOfFileExpected`,e[e.InvalidCommentToken=10]=`InvalidCommentToken`,e[e.UnexpectedEndOfComment=11]=`UnexpectedEndOfComment`,e[e.UnexpectedEndOfString=12]=`UnexpectedEndOfString`,e[e.UnexpectedEndOfNumber=13]=`UnexpectedEndOfNumber`,e[e.InvalidUnicode=14]=`InvalidUnicode`,e[e.InvalidEscapeCharacter=15]=`InvalidEscapeCharacter`,e[e.InvalidCharacter=16]=`InvalidCharacter`})(ParseErrorCode||={});var require_parser=__commonJSMin(((e,t)=>{var n=1114112,r=class e extends Error{constructor(t,n,r){super(`[ParserError] `+t,n,r),this.name=`ParserError`,this.code=`ParserError`,Error.captureStackTrace&&Error.captureStackTrace(this,e)}},a=class{constructor(e){this.parser=e,this.buf=``,this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}},o=class{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf=``,this.char=null,this.ii=0,this.state=new a(this.parseStart)}parse(e){if(e.length===0||e.length==null)return;this._buf=String(e),this.ii=-1,this.char=-1;let t;for(;t===!1||this.nextChar();)t=this.runOne();this._buf=null}nextChar(){return this.char===10&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){this.char=n;let e;do e=this.state.parser,this.runOne();while(this.state.parser!==e);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(e){if(typeof e!=`function`)throw new r(`Tried to set state to non-existent state: `+JSON.stringify(e));this.state.parser=e}goto(e){return this.next(e),this.runOne()}call(e,t){t&&this.next(t),this.stack.push(this.state),this.state=new a(e)}callNow(e,t){return this.call(e,t),this.runOne()}return(e){if(this.stack.length===0)throw this.error(new r(`Stack underflow`));e===void 0&&(e=this.state.buf),this.state=this.stack.pop(),this.state.returned=e}returnNow(e){return this.return(e),this.runOne()}consume(){if(this.char===n)throw this.error(new r(`Unexpected end-of-buffer`));this.state.buf+=this._buf[this.ii]}error(e){return e.line=this.line,e.col=this.col,e.pos=this.pos,e}parseStart(){throw new r(`Must declare a parseStart method`)}};o.END=n,o.Error=r,t.exports=o})),require_create_datetime=__commonJSMin(((e,t)=>{t.exports=e=>{let t=new Date(e);if(isNaN(t))throw TypeError(`Invalid Datetime`);return t}})),require_format_num=__commonJSMin(((e,t)=>{t.exports=(e,t)=>{for(t=String(t);t.length<e;)t=`0`+t;return t}})),require_create_datetime_float=__commonJSMin(((e,t)=>{var n=require_format_num(),r=class extends Date{constructor(e){super(e+`Z`),this.isFloating=!0}toISOString(){return`${`${this.getUTCFullYear()}-${n(2,this.getUTCMonth()+1)}-${n(2,this.getUTCDate())}`}T${`${n(2,this.getUTCHours())}:${n(2,this.getUTCMinutes())}:${n(2,this.getUTCSeconds())}.${n(3,this.getUTCMilliseconds())}`}`}};t.exports=e=>{let t=new r(e);if(isNaN(t))throw TypeError(`Invalid Datetime`);return t}})),require_create_date=__commonJSMin(((e,t)=>{var n=require_format_num(),r=global.Date,a=class extends r{constructor(e){super(e),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${n(2,this.getUTCMonth()+1)}-${n(2,this.getUTCDate())}`}};t.exports=e=>{let t=new a(e);if(isNaN(t))throw TypeError(`Invalid Datetime`);return t}})),require_create_time=__commonJSMin(((e,t)=>{var n=require_format_num(),r=class extends Date{constructor(e){super(`0000-01-01T${e}Z`),this.isTime=!0}toISOString(){return`${n(2,this.getUTCHours())}:${n(2,this.getUTCMinutes())}:${n(2,this.getUTCSeconds())}.${n(3,this.getUTCMilliseconds())}`}};t.exports=e=>{let t=new r(e);if(isNaN(t))throw TypeError(`Invalid Datetime`);return t}})),require_toml_parser=__commonJSMin(((exports,module)=>{module.exports=makeParserClass(require_parser()),module.exports.makeParserClass=makeParserClass;var TomlError=class e extends Error{constructor(t){super(t),this.name=`TomlError`,Error.captureStackTrace&&Error.captureStackTrace(this,e),this.fromTOML=!0,this.wrapped=null}};TomlError.wrap=e=>{let t=new TomlError(e.message);return t.code=e.code,t.wrapped=e,t},module.exports.TomlError=TomlError;var createDateTime=require_create_datetime(),createDateTimeFloat=require_create_datetime_float(),createDate=require_create_date(),createTime=require_create_time(),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:`\b`,[CHAR_t]:` `,[CHAR_n]:`
14
- `,[CHAR_f]:`\f`,[CHAR_r]:`\r`,[CHAR_QUOT]:`"`,[CHAR_BSOL]:`\\`};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}var _type=Symbol(`type`),_declared=Symbol(`declared`),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(e,t){return hasOwnProperty.call(e,t)?!0:(t===`__proto__`&&defineProperty(e,`__proto__`,descriptor),!1)}var INLINE_TABLE=Symbol(`inline-table`);function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){return typeof e!=`object`||!e?!1:e[_type]===INLINE_TABLE}var TABLE=Symbol(`table`);function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(e){return typeof e!=`object`||!e?!1:e[_type]===TABLE}var _contentType=Symbol(`content-type`),INLINE_LIST=Symbol(`inline-list`);function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){return typeof e!=`object`||!e?!1:e[_type]===INLINE_LIST}var LIST=Symbol(`list`);function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){return typeof e!=`object`||!e?!1:e[_type]===LIST}var _custom;try{const utilInspect=eval(`require('util').inspect`);_custom=utilInspect.custom}catch{}var _inspect=_custom||`inspect`,BoxedBigInt=class{constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol(`integer`);function Integer(e){let t=Number(e);return Object.is(t,-0)&&(t=0),global.BigInt&&!Number.isSafeInteger(t)?new BoxedBigInt(e):Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}function isInteger(e){return typeof e!=`object`||!e?!1:e[_type]===INTEGER}var FLOAT=Symbol(`float`);function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){return typeof e!=`object`||!e?!1:e[_type]===FLOAT}function tomlType(e){let t=typeof e;if(t===`object`){if(e===null)return`null`;if(e instanceof Date)return`datetime`;if(_type in e)switch(e[_type]){case INLINE_TABLE:return`inline-table`;case INLINE_LIST:return`inline-list`;case TABLE:return`table`;case LIST:return`list`;case FLOAT:return`float`;case INTEGER:return`integer`}}return t}function makeParserClass(e){class t extends e{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===e.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError(`Unexpected character, expected only whitespace or comments till end of line`))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(e){let t=this.ctx,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError(`Can't redefine existing key`));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError(`Can't redefine existing key`));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(e){return this.state.resultTable?this.state.resultTable.push(e):this.state.resultTable=[e],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===CHAR_PERIOD)return this.next(this.parseAssignKeywordPostDot);if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.goto(this.parseAssignEqual)}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError(`Invalid character, expected "="`))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(e){return this.returnNow({key:this.state.resultTable,value:e})}parseComment(){do if(this.char===e.END||this.char===CTRL_J)return this.return();while(this.nextChar())}parseTableOrList(){if(this.char===CHAR_LSQB)this.next(this.parseList);else return this.goto(this.parseTable)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)&&(!isTable(this.ctx[e])||this.ctx[e][_declared]))throw this.error(new TomlError(`Can't redefine existing key`));return this.ctx=this.ctx[e]=this.ctx[e]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,e))this.ctx=this.ctx[e]=Table();else if(isTable(this.ctx[e]))this.ctx=this.ctx[e];else if(isList(this.ctx[e]))this.ctx=this.ctx[e][this.ctx[e].length-1];else throw this.error(new TomlError(`Can't redefine existing key`));return this.next(this.parseTableNext)}else throw this.error(new TomlError(`Unexpected character, expected whitespace, . or ]`))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)||(this.ctx[e]=List()),isInlineList(this.ctx[e]))throw this.error(new TomlError(`Can't extend an inline array`));if(isList(this.ctx[e])){let t=Table();this.ctx[e].push(t),this.ctx=t}else throw this.error(new TomlError(`Can't redefine an existing key`));return this.next(this.parseListEnd)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,e))this.ctx=this.ctx[e]=Table();else if(isInlineList(this.ctx[e]))throw this.error(new TomlError(`Can't extend an inline array`));else if(isInlineTable(this.ctx[e]))throw this.error(new TomlError(`Can't extend an inline table`));else if(isList(this.ctx[e]))this.ctx=this.ctx[e][this.ctx[e].length-1];else if(isTable(this.ctx[e]))this.ctx=this.ctx[e];else throw this.error(new TomlError(`Can't redefine an existing key`));return this.next(this.parseListNext)}else throw this.error(new TomlError(`Unexpected character, expected whitespace, . or ]`))}parseListEnd(e){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError(`Unexpected character, expected whitespace, . or ]`))}parseValue(){if(this.char===e.END)throw this.error(new TomlError(`Key without value`));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError(`Unexpected character, expecting string, number, datetime, boolean, inline array or inline table`))}recordValue(e){return this.returnNow(e)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError(`Unexpected character, expected "inf", "+inf" or "-inf"`))}parseInf2(){if(this.char===CHAR_f)return this.state.buf===`-`?this.return(-1/0):this.return(1/0);throw this.error(new TomlError(`Unexpected character, expected "inf", "+inf" or "-inf"`))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError(`Unexpected character, expected "nan"`))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError(`Unexpected character, expected "nan"`))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do if(this.char===e.END)throw this.error(new TomlError(`Key ended without value`));else if(isAlphaNumHyphen(this.char))this.consume();else if(this.state.buf.length===0)throw this.error(new TomlError(`Empty bare keys are not allowed`));else return this.returnNow();while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do if(this.char===CHAR_APOS)return this.return();else if(this.atEndOfLine())throw this.error(new TomlError(`Unterminated string`));else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();else this.consume();while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);else if(this.char===e.END)throw this.error(new TomlError(`Unterminated multi-line string`));else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();else this.consume();while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+=`'`,this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+=`''`,this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);else if(this.char===CHAR_QUOT)return this.return();else if(this.atEndOfLine())throw this.error(new TomlError(`Unterminated string`));else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();else this.consume();while(this.nextChar())}recordEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);else if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);else if(this.char===e.END)throw this.error(new TomlError(`Unterminated multi-line string`));else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();else this.consume();while(this.nextChar())}errorControlCharInString(){let e=`\\u00`;return this.char<16&&(e+=`0`),e+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${e} instead`))}recordMultiEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+=`"`,this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+=`""`,this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError(`Can't escape whitespace`))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError(`Unknown escape character: `+this.char))}parseUnicodeReturn(e){try{let t=parseInt(e,16);if(t>=SURROGATE_FIRST&&t<=SURROGATE_LAST)throw this.error(new TomlError(`Invalid unicode, character in range 0xD800 - 0xDFFF is reserved`));return this.returnNow(String.fromCodePoint(t))}catch(e){throw this.error(TomlError.wrap(e))}}parseSmallUnicode(){if(!isHexit(this.char))throw this.error(new TomlError(`Invalid character in unicode sequence, expected hex`));if(this.consume(),this.state.buf.length>=4)return this.return()}parseLargeUnicode(){if(!isHexit(this.char))throw this.error(new TomlError(`Invalid character in unicode sequence, expected hex`));if(this.consume(),this.state.buf.length>=8)return this.return()}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(isDigit(this.char))this.consume();else if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);else if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);else if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);else{let e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError(`Invalid number`));return this.returnNow(e)}}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError(`Unexpected character, expected digit`));if(this.atEndOfWord())throw this.error(new TomlError(`Incomplete number`));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError(`Unexpected character, expected digit`));if(this.atEndOfWord())throw this.error(new TomlError(`Incomplete number`));return this.returnNow()}parseNumberFloat(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberFloat);if(isDigit(this.char))this.consume();else if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);else return this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent);else throw this.error(new TomlError(`Unexpected character, expected -, + or digit`))}parseNumberExponent(){if(isDigit(this.char))this.consume();else if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);else return this.returnNow(Float(this.state.buf))}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberInteger);if(isDigit(this.char))this.consume(),this.state.buf.length>4&&this.next(this.parseNumberInteger);else if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);else if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);else if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);else if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);else return this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError(`Expected digit while parsing year part of a date`))}else if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);else throw this.error(new TomlError(`Expected hyphen (-) while parsing year part of date`))}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(isHexit(this.char))this.consume();else if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);else{let e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError(`Invalid number`));return this.returnNow(e)}}parseIntegerOct(){if(isOctit(this.char))this.consume();else if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);else{let e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError(`Invalid number`));return this.returnNow(e)}}parseIntegerBin(){if(isBit(this.char))this.consume();else if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);else{let e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError(`Invalid number`));return this.returnNow(e)}}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError(`Years less than 1000 must be zero padded to four characters`));return this.state.result=this.state.buf,this.state.buf=``,this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError(`Months less than 10 must be zero padded to two characters`));return this.state.result+=`-`+this.state.buf,this.state.buf=``,this.next(this.parseDateDay)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError(`Incomplete datetime`))}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError(`Days less than 10 must be zero padded to two characters`));return this.state.result+=`-`+this.state.buf,this.state.buf=``,this.next(this.parseStartTimeHour)}else if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+`-`+this.state.buf));else if(isDigit(this.char))this.consume();else throw this.error(new TomlError(`Incomplete datetime`))}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError(`Hours less than 10 must be zero padded to two characters`));return this.state.result+=`T`+this.state.buf,this.state.buf=``,this.next(this.parseTimeMin)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError(`Incomplete datetime`))}parseTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=`:`+this.state.buf,this.state.buf=``,this.next(this.parseTimeSec);else throw this.error(new TomlError(`Incomplete datetime`))}parseTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.state.result+=`:`+this.state.buf,this.state.buf=``,this.next(this.parseTimeZoneOrFraction)}else throw this.error(new TomlError(`Incomplete datetime`))}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError(`Hours less than 10 must be zero padded to two characters`));return this.state.result=this.state.buf,this.state.buf=``,this.next(this.parseOnlyTimeMin)}else throw this.error(new TomlError(`Incomplete time`))}parseOnlyTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=`:`+this.state.buf,this.state.buf=``,this.next(this.parseOnlyTimeSec);else throw this.error(new TomlError(`Incomplete time`))}parseOnlyTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.next(this.parseOnlyTimeFractionMaybe)}else throw this.error(new TomlError(`Incomplete time`))}parseOnlyTimeFractionMaybe(){if(this.state.result+=`:`+this.state.buf,this.char===CHAR_PERIOD)this.state.buf=``,this.next(this.parseOnlyTimeFraction);else return this.return(createTime(this.state.result))}parseOnlyTimeFraction(){if(isDigit(this.char))this.consume();else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new TomlError(`Expected digit in milliseconds`));return this.returnNow(createTime(this.state.result+`.`+this.state.buf))}else throw this.error(new TomlError(`Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z`))}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));else if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));else throw this.error(new TomlError(`Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z`))}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else if(this.state.buf.length===1)throw this.error(new TomlError(`Expected digit in milliseconds`));else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));else if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));else throw this.error(new TomlError(`Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z`))}parseTimeZoneHour(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else throw this.error(new TomlError(`Unexpected character in datetime, expected digit`))}parseTimeZoneSep(){if(this.char===CHAR_COLON)this.consume(),this.next(this.parseTimeZoneMin);else throw this.error(new TomlError(`Unexpected character in datetime, expected colon`))}parseTimeZoneMin(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}else throw this.error(new TomlError(`Unexpected character in datetime, expected digit`))}parseBoolean(){if(this.char===CHAR_t)return this.consume(),this.next(this.parseTrue_r);if(this.char===CHAR_f)return this.consume(),this.next(this.parseFalse_a)}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError(`Invalid boolean, expected true or false`))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError(`Invalid boolean, expected true or false`))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError(`Invalid boolean, expected true or false`))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError(`Invalid boolean, expected true or false`))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError(`Invalid boolean, expected true or false`))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError(`Invalid boolean, expected true or false`))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError(`Invalid boolean, expected true or false`))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===e.END)throw this.error(new TomlError(`Unterminated inline array`));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(e){if(this.state.resultArr){let t=this.state.resultArr[_contentType],n=tomlType(e);if(t!==n)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${t} and ${n}`))}else this.state.resultArr=InlineList(tomlType(e));return isFloat(e)||isInteger(e)?this.state.resultArr.push(e.valueOf()):this.state.resultArr.push(e),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError(`Invalid character, expected whitespace, comma (,) or close bracket (])`))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError(`Unterminated inline array`));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(e){let t=this.state.resultTable,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError(`Can't redefine existing key`));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError(`Can't redefine existing key`));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError(`Unterminated inline array`));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError(`Invalid character, expected whitespace, comma (,) or close bracket (])`))}}return t}})),require_parse_pretty_error=__commonJSMin(((e,t)=>{t.exports=n;function n(e,t){if(e.pos==null||e.line==null)return e;let n=e.message;if(n+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:\n`,t&&t.split){let r=t.split(/\n/),a=String(Math.min(r.length,e.line+3)).length,o=` `;for(;o.length<a;)o+=` `;for(let t=Math.max(0,e.line-1);t<Math.min(r.length,e.line+2);++t){let s=String(t+1);if(s.length<a&&(s=` `+s),e.line===t){n+=s+`> `+r[t]+`
15
- `,n+=o+` `;for(let t=0;t<e.col;++t)n+=` `;n+=`^
16
- `}else n+=s+`: `+r[t]+`
17
- `}}return e.message=n+`
18
- `,e}})),require_parse_string=__commonJSMin(((e,t)=>{t.exports=a;var n=require_toml_parser(),r=require_parse_pretty_error();function a(e){global.Buffer&&global.Buffer.isBuffer(e)&&(e=e.toString(`utf8`));let t=new n;try{return t.parse(e),t.finish()}catch(t){throw r(t,e)}}})),require_parse_async=__commonJSMin(((e,t)=>{t.exports=a;var n=require_toml_parser(),r=require_parse_pretty_error();function a(e,t){t||={};let a=0,o=t.blocksize||40960,s=new n;return new Promise((e,t)=>{setImmediate(c,0,o,e,t)});function c(t,n,a,o){if(t>=e.length)try{return a(s.finish())}catch(t){return o(r(t,e))}try{s.parse(e.slice(t,t+n)),setImmediate(c,t+n,n,a,o)}catch(t){o(r(t,e))}}}})),require_parse_stream=__commonJSMin(((e,t)=>{t.exports=a;var n=require___vite_browser_external(),r=require_toml_parser();function a(e){return e?o(e):s(e)}function o(e){let t=new r;return e.setEncoding(`utf8`),new Promise((n,r)=>{let a,o=!1,s=!1;function c(){if(o=!0,!a)try{n(t.finish())}catch(e){r(e)}}function l(e){s=!0,r(e)}e.once(`end`,c),e.once(`error`,l),u();function u(){a=!0;let n;for(;(n=e.read())!==null;)try{t.parse(n)}catch(e){return l(e)}if(a=!1,o)return c();s||e.once(`readable`,u)}})}function s(){let e=new r;return new n.Transform({objectMode:!0,transform(t,n,r){try{e.parse(t.toString(n))}catch(e){this.emit(`error`,e)}r()},flush(t){try{this.push(e.finish())}catch(e){this.emit(`error`,e)}t()}})}})),require_parse$2=__commonJSMin(((e,t)=>{t.exports=require_parse_string(),t.exports.async=require_parse_async(),t.exports.stream=require_parse_stream(),t.exports.prettyError=require_parse_pretty_error()})),require_stringify$1=__commonJSMin(((e,t)=>{t.exports=n,t.exports.value=y;function n(e){if(e===null)throw r(`null`);if(e===void 0)throw r(`undefined`);if(typeof e!=`object`)throw r(typeof e);if(typeof e.toJSON==`function`&&(e=e.toJSON()),e==null)return null;let t=d(e);if(t!==`table`)throw r(t);return l(``,``,e)}function r(e){return Error(`Can only stringify objects, not `+e)}function a(){return Error(`Array values can't have mixed types`)}function o(e){return Object.keys(e).filter(t=>u(e[t]))}function s(e){return Object.keys(e).filter(t=>!u(e[t]))}function c(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,`__proto__`)?{["__proto__"]:void 0}:{};for(let n of Object.keys(e))e[n]&&typeof e[n].toJSON==`function`&&!(`toISOString`in e[n])?t[n]=e[n].toJSON():t[n]=e[n];return t}function l(e,t,n){n=c(n);var r=o(n),a=s(n),l=[],u=t||``;r.forEach(e=>{var t=d(n[e]);t!==`undefined`&&t!==`null`&&l.push(u+f(e)+` = `+v(n[e],!0))}),l.length>0&&l.push(``);var p=e&&r.length>0?t+` `:``;return a.forEach(t=>{l.push(k(e,p,t,n[t]))}),l.join(`
19
- `)}function u(e){switch(d(e)){case`undefined`:case`null`:case`integer`:case`nan`:case`float`:case`boolean`:case`string`:case`datetime`:return!0;case`array`:return e.length===0||d(e[0])!==`table`;case`table`:return Object.keys(e).length===0;default:return!1}}function d(e){return e===void 0?`undefined`:e===null?`null`:typeof e==`bigint`||Number.isInteger(e)&&!Object.is(e,-0)?`integer`:typeof e==`number`?`float`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:`toISOString`in e?isNaN(e)?`undefined`:`datetime`:Array.isArray(e)?`array`:`table`}function f(e){var t=String(e);return/^[-A-Za-z0-9_]+$/.test(t)?t:p(t)}function p(e){return`"`+g(e).replace(/"/g,`\\"`)+`"`}function m(e){return`'`+e+`'`}function h(e,t){for(;t.length<e;)t=`0`+t;return t}function g(e){return e.replace(/\\/g,`\\\\`).replace(/[\b]/g,`\\b`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\f/g,`\\f`).replace(/\r/g,`\\r`).replace(/([\u0000-\u001f\u007f])/,e=>`\\u`+h(4,e.codePointAt(0).toString(16)))}function _(e){let t=e.split(/\n/).map(e=>g(e).replace(/"(?="")/g,`\\"`)).join(`
20
- `);return t.slice(-1)===`"`&&(t+=`\\
21
- `),`"""
22
- `+t+`"""`}function v(e,t){let n=d(e);return n===`string`&&(t&&/\n/.test(e)?n=`string-multiline`:!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)&&(n=`string-literal`)),y(e,n)}function y(e,t){switch(t||=d(e),t){case`string-multiline`:return _(e);case`string`:return p(e);case`string-literal`:return m(e);case`integer`:return b(e);case`float`:return x(e);case`boolean`:return S(e);case`datetime`:return C(e);case`array`:return D(e.filter(e=>d(e)!==`null`&&d(e)!==`undefined`&&d(e)!==`nan`));case`table`:return O(e);default:throw r(t)}}function b(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,`_`)}function x(e){if(e===1/0)return`inf`;if(e===-1/0)return`-inf`;if(Object.is(e,NaN))return`nan`;if(Object.is(e,-0))return`-0.0`;var t=String(e).split(`.`),n=t[0],r=t[1]||0;return b(n)+`.`+r}function S(e){return String(e)}function C(e){return e.toISOString()}function w(e){return e===`float`||e===`integer`}function T(e){var t=d(e[0]);return e.every(e=>d(e)===t)?t:e.every(e=>w(d(e)))?`float`:`mixed`}function E(e){let t=T(e);if(t===`mixed`)throw a();return t}function D(e){e=c(e);let t=E(e);var n=`[`,r=e.map(e=>y(e,t));return r.join(`, `).length>60||/\n/.test(r)?n+=`
23
- `+r.join(`,
24
- `)+`
25
- `:n+=` `+r.join(`, `)+(r.length>0?` `:``),n+`]`}function O(e){e=c(e);var t=[];return Object.keys(e).forEach(n=>{t.push(f(n)+` = `+v(e[n],!1))}),`{ `+t.join(`, `)+(t.length>0?` `:``)+`}`}function k(e,t,n,a){var o=d(a);if(o===`array`)return A(e,t,n,a);if(o===`table`)return j(e,t,n,a);throw r(o)}function A(e,t,n,a){a=c(a),E(a);var o=d(a[0]);if(o!==`table`)throw r(o);var s=e+f(n),u=``;return a.forEach(e=>{u.length>0&&(u+=`
26
- `),u+=t+`[[`+s+`]]
27
- `,u+=l(s+`.`,t,e)}),u}function j(e,t,n,r){var a=e+f(n),s=``;return o(r).length>0&&(s+=t+`[`+a+`]
28
- `),s+l(a+`.`,t,r)}})),require_toml=__commonJSMin((e=>{e.parse=require_parse$2(),e.stringify=require_stringify$1()})),import_toml=__toESM(require_toml(),1);function isNothing(e){return e==null}function isObject(e){return typeof e==`object`&&!!e}function toArray(e){return Array.isArray(e)?e:isNothing(e)?[]:[e]}function extend(e,t){var n,r,a,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n<r;n+=1)a=o[n],e[a]=t[a];return e}function repeat(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}function isNegativeZero(e){return e===0&&1/e==-1/0}var common={isNothing,isObject,toArray,repeat,isNegativeZero,extend};function formatError(e,t){var n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
29
-
30
- `+e.mark.snippet),r+` `+n):r}function YAMLException$1(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=formatError(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}YAMLException$1.prototype=Object.create(Error.prototype),YAMLException$1.prototype.constructor=YAMLException$1,YAMLException$1.prototype.toString=function(e){return this.name+`: `+formatError(this,e)};var exception=YAMLException$1;function getLine(e,t,n,r,a){var o=``,s=``,c=Math.floor(a/2)-1;return r-t>c&&(o=` ... `,t=r-c+o.length),n-r>c&&(s=` ...`,n=r+c-s.length),{str:o+e.slice(t,n).replace(/\t/g,`→`)+s,pos:r-t+o.length}}function padStart(e,t){return common.repeat(` `,t-e.length)+e}function makeSnippet(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],o,s=-1;o=n.exec(e.buffer);)a.push(o.index),r.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var c=``,l,u,d=Math.min(e.line+t.linesAfter,a.length).toString().length,f=t.maxLength-(t.indent+d+3);for(l=1;l<=t.linesBefore&&!(s-l<0);l++)u=getLine(e.buffer,r[s-l],a[s-l],e.position-(r[s]-r[s-l]),f),c=common.repeat(` `,t.indent)+padStart((e.line-l+1).toString(),d)+` | `+u.str+`
31
- `+c;for(u=getLine(e.buffer,r[s],a[s],e.position,f),c+=common.repeat(` `,t.indent)+padStart((e.line+1).toString(),d)+` | `+u.str+`
32
- `,c+=common.repeat(`-`,t.indent+d+3+u.pos)+`^
33
- `,l=1;l<=t.linesAfter&&!(s+l>=a.length);l++)u=getLine(e.buffer,r[s+l],a[s+l],e.position-(r[s]-r[s+l]),f),c+=common.repeat(` `,t.indent)+padStart((e.line+l+1).toString(),d)+` | `+u.str+`
34
- `;return c.replace(/\n$/,``)}var snippet=makeSnippet,TYPE_CONSTRUCTOR_OPTIONS=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],YAML_NODE_KINDS=[`scalar`,`sequence`,`mapping`];function compileStyleAliases(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function Type$1(e,t){if(t||={},Object.keys(t).forEach(function(t){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf(t)===-1)throw new exception(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=compileStyleAliases(t.styleAliases||null),YAML_NODE_KINDS.indexOf(this.kind)===-1)throw new exception(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}var type=Type$1;function compileList(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function Schema$1(e){return this.extend(e)}Schema$1.prototype.extend=function(e){var t=[],n=[];if(e instanceof type)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new exception(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);t.forEach(function(e){if(!(e instanceof type))throw new exception(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new exception(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(e.multi)throw new exception(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),n.forEach(function(e){if(!(e instanceof type))throw new exception(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});var r=Object.create(Schema$1.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=compileList(r,`implicit`),r.compiledExplicit=compileList(r,`explicit`),r.compiledTypeMap=compileMap(r.compiledImplicit,r.compiledExplicit),r};var schema=Schema$1,str=new type(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}}),seq=new type(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}}),map=new type(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}}),failsafe=new schema({explicit:[str,seq,map]});function resolveYamlNull(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function constructYamlNull(){return null}function isNull(e){return e===null}var _null=new type(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`});function resolveYamlBoolean(e){if(e===null)return!1;var t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function constructYamlBoolean(e){return e===`true`||e===`True`||e===`TRUE`}function isBoolean(e){return Object.prototype.toString.call(e)===`[object Boolean]`}var bool=new type(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`});function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return!1;var t=e.length,n=0,r=!1,a;if(!t)return!1;if(a=e[n],(a===`-`||a===`+`)&&(a=e[++n]),a===`0`){if(n+1===t)return!0;if(a=e[++n],a===`b`){for(n++;n<t;n++)if(a=e[n],a!==`_`){if(a!==`0`&&a!==`1`)return!1;r=!0}return r&&a!==`_`}if(a===`x`){for(n++;n<t;n++)if(a=e[n],a!==`_`){if(!isHexCode(e.charCodeAt(n)))return!1;r=!0}return r&&a!==`_`}if(a===`o`){for(n++;n<t;n++)if(a=e[n],a!==`_`){if(!isOctCode(e.charCodeAt(n)))return!1;r=!0}return r&&a!==`_`}}if(a===`_`)return!1;for(;n<t;n++)if(a=e[n],a!==`_`){if(!isDecCode(e.charCodeAt(n)))return!1;r=!0}return!(!r||a===`_`)}function constructYamlInteger(e){var t=e,n=1,r;if(t.indexOf(`_`)!==-1&&(t=t.replace(/_/g,``)),r=t[0],(r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function isInteger(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!common.isNegativeZero(e)}var int=new type(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),YAML_FLOAT_PATTERN=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function resolveYamlFloat(e){return!(e===null||!YAML_FLOAT_PATTERN.test(e)||e[e.length-1]===`_`)}function constructYamlFloat(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}var SCIENTIFIC_WITHOUT_DOT=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(common.isNegativeZero(e))return`-0.0`;return n=e.toString(10),SCIENTIFIC_WITHOUT_DOT.test(n)?n.replace(`e`,`.e`):n}function isFloat(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||common.isNegativeZero(e))}var float=new type(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:`lowercase`}),json=failsafe.extend({implicit:[_null,bool,int,float]}),core=json,YAML_DATE_REGEXP=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),YAML_TIMESTAMP_REGEXP=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function resolveYamlTimestamp(e){return e===null?!1:YAML_DATE_REGEXP.exec(e)!==null||YAML_TIMESTAMP_REGEXP.exec(e)!==null}function constructYamlTimestamp(e){var t,n,r,a,o,s,c,l=0,u=null,d,f,p;if(t=YAML_DATE_REGEXP.exec(e),t===null&&(t=YAML_TIMESTAMP_REGEXP.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],r=t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(o=+t[4],s=+t[5],c=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+=`0`;l=+l}return t[9]&&(d=+t[10],f=+(t[11]||0),u=(d*60+f)*6e4,t[9]===`-`&&(u=-u)),p=new Date(Date.UTC(n,r,a,o,s,c,l)),u&&p.setTime(p.getTime()-u),p}function representYamlTimestamp(e){return e.toISOString()}var timestamp=new type(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp});function resolveYamlMerge(e){return e===`<<`||e===null}var merge=new type(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:resolveYamlMerge}),BASE64_MAP=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
35
- \r`;function resolveYamlBinary(e){if(e===null)return!1;var t,n,r=0,a=e.length,o=BASE64_MAP;for(n=0;n<a;n++)if(t=o.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}function constructYamlBinary(e){var t,n,r=e.replace(/[\r\n=]/g,``),a=r.length,o=BASE64_MAP,s=0,c=[];for(t=0;t<a;t++)t%4==0&&t&&(c.push(s>>16&255),c.push(s>>8&255),c.push(s&255)),s=s<<6|o.indexOf(r.charAt(t));return n=a%4*6,n===0?(c.push(s>>16&255),c.push(s>>8&255),c.push(s&255)):n===18?(c.push(s>>10&255),c.push(s>>2&255)):n===12&&c.push(s>>4&255),new Uint8Array(c)}function representYamlBinary(e){var t=``,n=0,r,a,o=e.length,s=BASE64_MAP;for(r=0;r<o;r++)r%3==0&&r&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return a=o%3,a===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):a===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):a===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function isBinary(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}var binary=new type(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary}),_hasOwnProperty$3=Object.prototype.hasOwnProperty,_toString$2=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return!0;var t=[],n,r,a,o,s,c=e;for(n=0,r=c.length;n<r;n+=1){if(a=c[n],s=!1,_toString$2.call(a)!==`[object Object]`)return!1;for(o in a)if(_hasOwnProperty$3.call(a,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function constructYamlOmap(e){return e===null?[]:e}var omap=new type(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:resolveYamlOmap,construct:constructYamlOmap}),_toString$1=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return!0;var t,n,r,a,o,s=e;for(o=Array(s.length),t=0,n=s.length;t<n;t+=1){if(r=s[t],_toString$1.call(r)!==`[object Object]`||(a=Object.keys(r),a.length!==1))return!1;o[t]=[a[0],r[a[0]]]}return!0}function constructYamlPairs(e){if(e===null)return[];var t,n,r,a,o,s=e;for(o=Array(s.length),t=0,n=s.length;t<n;t+=1)r=s[t],a=Object.keys(r),o[t]=[a[0],r[a[0]]];return o}var pairs=new type(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:resolveYamlPairs,construct:constructYamlPairs}),_hasOwnProperty$2=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return!0;var t,n=e;for(t in n)if(_hasOwnProperty$2.call(n,t)&&n[t]!==null)return!1;return!0}function constructYamlSet(e){return e===null?{}:e}var set=new type(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:resolveYamlSet,construct:constructYamlSet}),_default=core.extend({implicit:[timestamp,merge],explicit:[binary,omap,pairs,set]}),_hasOwnProperty$1=Object.prototype.hasOwnProperty,CONTEXT_FLOW_IN=1,CONTEXT_FLOW_OUT=2,CONTEXT_BLOCK_IN=3,CONTEXT_BLOCK_OUT=4,CHOMPING_CLIP=1,CHOMPING_STRIP=2,CHOMPING_KEEP=3,PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/,PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/,PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i,PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function escapedHexLen(e){return e===120?2:e===117?4:e===85?8:0}function fromDecimalCode(e){return 48<=e&&e<=57?e-48:-1}function simpleEscapeSequence(e){return e===48?`\0`:e===97?`\x07`:e===98?`\b`:e===116||e===9?` `:e===110?`
36
- `:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`…`:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}function charFromCodepoint(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function setProperty(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var simpleEscapeCheck=Array(256),simpleEscapeMap=Array(256),i=0;i<256;i++)simpleEscapeCheck[i]=+!!simpleEscapeSequence(i),simpleEscapeMap[i]=simpleEscapeSequence(i);function State$1(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||_default,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function generateError(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=snippet(n),new exception(t,n)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){e.onWarning&&e.onWarning.call(null,generateError(e,t))}var directiveHandlers={YAML:function(e,t,n){var r,a,o;e.version!==null&&throwError(e,`duplication of %YAML directive`),n.length!==1&&throwError(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&throwError(e,`ill-formed argument of the YAML directive`),a=parseInt(r[1],10),o=parseInt(r[2],10),a!==1&&throwError(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&throwWarning(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){var r,a;n.length!==2&&throwError(e,`TAG directive accepts exactly two arguments`),r=n[0],a=n[1],PATTERN_TAG_HANDLE.test(r)||throwError(e,`ill-formed tag handle (first argument) of the TAG directive`),_hasOwnProperty$1.call(e.tagMap,r)&&throwError(e,`there is a previously declared suffix for "`+r+`" tag handle`),PATTERN_TAG_URI.test(a)||throwError(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{a=decodeURIComponent(a)}catch{throwError(e,`tag prefix is malformed: `+a)}e.tagMap[r]=a}};function captureSegment(e,t,n,r){var a,o,s,c;if(t<n){if(c=e.input.slice(t,n),r)for(a=0,o=c.length;a<o;a+=1)s=c.charCodeAt(a),s===9||32<=s&&s<=1114111||throwError(e,`expected valid JSON character`);else PATTERN_NON_PRINTABLE.test(c)&&throwError(e,`the stream contains non-printable characters`);e.result+=c}}function mergeMappings(e,t,n,r){var a,o,s,c;for(common.isObject(n)||throwError(e,`cannot merge mappings; the provided source object is unacceptable`),a=Object.keys(n),s=0,c=a.length;s<c;s+=1)o=a[s],_hasOwnProperty$1.call(t,o)||(setProperty(t,o,n[o]),r[o]=!0)}function storeMappingPair(e,t,n,r,a,o,s,c,l){var u,d;if(Array.isArray(a))for(a=Array.prototype.slice.call(a),u=0,d=a.length;u<d;u+=1)Array.isArray(a[u])&&throwError(e,`nested arrays are not supported inside keys`),typeof a==`object`&&_class(a[u])===`[object Object]`&&(a[u]=`[object Object]`);if(typeof a==`object`&&_class(a)===`[object Object]`&&(a=`[object Object]`),a=String(a),t===null&&(t={}),r===`tag:yaml.org,2002:merge`)if(Array.isArray(o))for(u=0,d=o.length;u<d;u+=1)mergeMappings(e,t,o[u],n);else mergeMappings(e,t,o,n);else !e.json&&!_hasOwnProperty$1.call(n,a)&&_hasOwnProperty$1.call(t,a)&&(e.line=s||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,throwError(e,`duplicated mapping key`)),setProperty(t,a,o),delete n[a];return t}function readLineBreak(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):throwError(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function skipSeparationSpace(e,t,n){for(var r=0,a=e.input.charCodeAt(e.position);a!==0;){for(;is_WHITE_SPACE(a);)a===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),a=e.input.charCodeAt(++e.position);if(t&&a===35)do a=e.input.charCodeAt(++e.position);while(a!==10&&a!==13&&a!==0);if(is_EOL(a))for(readLineBreak(e),a=e.input.charCodeAt(e.position),r++,e.lineIndent=0;a===32;)e.lineIndent++,a=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&throwWarning(e,`deficient indentation`),r}function testDocumentSeparator(e){var t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||is_WS_OR_EOL(n)))}function writeFoldedLines(e,t){t===1?e.result+=` `:t>1&&(e.result+=common.repeat(`
37
- `,t-1))}function readPlainScalar(e,t,n){var r,a,o,s,c,l,u,d,f=e.kind,p=e.result,m=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(m)||is_FLOW_INDICATOR(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(a=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(a)||n&&is_FLOW_INDICATOR(a)))return!1;for(e.kind=`scalar`,e.result=``,o=s=e.position,c=!1;m!==0;){if(m===58){if(a=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(a)||n&&is_FLOW_INDICATOR(a))break}else if(m===35){if(r=e.input.charCodeAt(e.position-1),is_WS_OR_EOL(r))break}else if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(m))break;else if(is_EOL(m))if(l=e.line,u=e.lineStart,d=e.lineIndent,skipSeparationSpace(e,!1,-1),e.lineIndent>=t){c=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=u,e.lineIndent=d;break}c&&=(captureSegment(e,o,s,!1),writeFoldedLines(e,e.line-l),o=s=e.position,!1),is_WHITE_SPACE(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position)}return captureSegment(e,o,s,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function readSingleQuotedScalar(e,t){var n=e.input.charCodeAt(e.position),r,a;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(captureSegment(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else is_EOL(n)?(captureSegment(e,r,a,!0),writeFoldedLines(e,skipSeparationSpace(e,!1,t)),r=a=e.position):e.position===e.lineStart&&testDocumentSeparator(e)?throwError(e,`unexpected end of the document within a single quoted scalar`):(e.position++,a=e.position);throwError(e,`unexpected end of the stream within a single quoted scalar`)}function readDoubleQuotedScalar(e,t){var n,r,a,o,s,c=e.input.charCodeAt(e.position);if(c!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(c=e.input.charCodeAt(e.position))!==0;)if(c===34)return captureSegment(e,n,e.position,!0),e.position++,!0;else if(c===92){if(captureSegment(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),is_EOL(c))skipSeparationSpace(e,!1,t);else if(c<256&&simpleEscapeCheck[c])e.result+=simpleEscapeMap[c],e.position++;else if((s=escapedHexLen(c))>0){for(a=s,o=0;a>0;a--)c=e.input.charCodeAt(++e.position),(s=fromHexCode(c))>=0?o=(o<<4)+s:throwError(e,`expected hexadecimal character`);e.result+=charFromCodepoint(o),e.position++}else throwError(e,`unknown escape sequence`);n=r=e.position}else is_EOL(c)?(captureSegment(e,n,r,!0),writeFoldedLines(e,skipSeparationSpace(e,!1,t)),n=r=e.position):e.position===e.lineStart&&testDocumentSeparator(e)?throwError(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);throwError(e,`unexpected end of the stream within a double quoted scalar`)}function readFlowCollection(e,t){var n=!0,r,a,o,s=e.tag,c,l=e.anchor,u,d,f,p,m,h=Object.create(null),g,_,v,y=e.input.charCodeAt(e.position);if(y===91)d=93,m=!1,c=[];else if(y===123)d=125,m=!0,c={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),y=e.input.charCodeAt(++e.position);y!==0;){if(skipSeparationSpace(e,!0,t),y=e.input.charCodeAt(e.position),y===d)return e.position++,e.tag=s,e.anchor=l,e.kind=m?`mapping`:`sequence`,e.result=c,!0;n?y===44&&throwError(e,`expected the node content, but found ','`):throwError(e,`missed comma between flow collection entries`),_=g=v=null,f=p=!1,y===63&&(u=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(u)&&(f=p=!0,e.position++,skipSeparationSpace(e,!0,t))),r=e.line,a=e.lineStart,o=e.position,composeNode(e,t,CONTEXT_FLOW_IN,!1,!0),_=e.tag,g=e.result,skipSeparationSpace(e,!0,t),y=e.input.charCodeAt(e.position),(p||e.line===r)&&y===58&&(f=!0,y=e.input.charCodeAt(++e.position),skipSeparationSpace(e,!0,t),composeNode(e,t,CONTEXT_FLOW_IN,!1,!0),v=e.result),m?storeMappingPair(e,c,h,_,g,v,r,a,o):f?c.push(storeMappingPair(e,null,h,_,g,v,r,a,o)):c.push(g),skipSeparationSpace(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}throwError(e,`unexpected end of the stream within a flow collection`)}function readBlockScalar(e,t){var n,r,a=CHOMPING_CLIP,o=!1,s=!1,c=t,l=0,u=!1,d,f=e.input.charCodeAt(e.position);if(f===124)r=!1;else if(f===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)CHOMPING_CLIP===a?a=f===43?CHOMPING_KEEP:CHOMPING_STRIP:throwError(e,`repeat of a chomping mode identifier`);else if((d=fromDecimalCode(f))>=0)d===0?throwError(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):s?throwError(e,`repeat of an indentation width identifier`):(c=t+d-1,s=!0);else break;if(is_WHITE_SPACE(f)){do f=e.input.charCodeAt(++e.position);while(is_WHITE_SPACE(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!is_EOL(f)&&f!==0)}for(;f!==0;){for(readLineBreak(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!s||e.lineIndent<c)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>c&&(c=e.lineIndent),is_EOL(f)){l++;continue}if(e.lineIndent<c){a===CHOMPING_KEEP?e.result+=common.repeat(`
38
- `,o?1+l:l):a===CHOMPING_CLIP&&o&&(e.result+=`
39
- `);break}for(r?is_WHITE_SPACE(f)?(u=!0,e.result+=common.repeat(`
40
- `,o?1+l:l)):u?(u=!1,e.result+=common.repeat(`
41
- `,l+1)):l===0?o&&(e.result+=` `):e.result+=common.repeat(`
42
- `,l):e.result+=common.repeat(`
43
- `,o?1+l:l),o=!0,s=!0,l=0,n=e.position;!is_EOL(f)&&f!==0;)f=e.input.charCodeAt(++e.position);captureSegment(e,n,e.position,!1)}return!0}function readBlockSequence(e,t){var n,r=e.tag,a=e.anchor,o=[],s,c=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,throwError(e,`tab characters must not be used in indentation`)),!(l!==45||(s=e.input.charCodeAt(e.position+1),!is_WS_OR_EOL(s))));){if(c=!0,e.position++,skipSeparationSpace(e,!0,-1)&&e.lineIndent<=t){o.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,composeNode(e,t,CONTEXT_BLOCK_IN,!1,!0),o.push(e.result),skipSeparationSpace(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)throwError(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return c?(e.tag=r,e.anchor=a,e.kind=`sequence`,e.result=o,!0):!1}function readBlockMapping(e,t,n){var r,a,o,s,c,l,u=e.tag,d=e.anchor,f={},p=Object.create(null),m=null,h=null,g=null,_=!1,v=!1,y;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),y=e.input.charCodeAt(e.position);y!==0;){if(!_&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,throwError(e,`tab characters must not be used in indentation`)),r=e.input.charCodeAt(e.position+1),o=e.line,(y===63||y===58)&&is_WS_OR_EOL(r))y===63?(_&&(storeMappingPair(e,f,p,m,h,null,s,c,l),m=h=g=null),v=!0,_=!0,a=!0):_?(_=!1,a=!0):throwError(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,y=r;else{if(s=e.line,c=e.lineStart,l=e.position,!composeNode(e,n,CONTEXT_FLOW_OUT,!1,!0))break;if(e.line===o){for(y=e.input.charCodeAt(e.position);is_WHITE_SPACE(y);)y=e.input.charCodeAt(++e.position);if(y===58)y=e.input.charCodeAt(++e.position),is_WS_OR_EOL(y)||throwError(e,`a whitespace character is expected after the key-value separator within a block mapping`),_&&(storeMappingPair(e,f,p,m,h,null,s,c,l),m=h=g=null),v=!0,_=!1,a=!1,m=e.tag,h=e.result;else if(v)throwError(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=u,e.anchor=d,!0}else if(v)throwError(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=u,e.anchor=d,!0}if((e.line===o||e.lineIndent>t)&&(_&&(s=e.line,c=e.lineStart,l=e.position),composeNode(e,t,CONTEXT_BLOCK_OUT,!0,a)&&(_?h=e.result:g=e.result),_||(storeMappingPair(e,f,p,m,h,g,s,c,l),m=h=g=null),skipSeparationSpace(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&y!==0)throwError(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return _&&storeMappingPair(e,f,p,m,h,null,s,c,l),v&&(e.tag=u,e.anchor=d,e.kind=`mapping`,e.result=f),v}function readTagProperty(e){var t,n=!1,r=!1,a,o,s=e.input.charCodeAt(e.position);if(s!==33)return!1;if(e.tag!==null&&throwError(e,`duplication of a tag property`),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(r=!0,a=`!!`,s=e.input.charCodeAt(++e.position)):a=`!`,t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):throwError(e,`unexpected end of the stream within a verbatim tag`)}else{for(;s!==0&&!is_WS_OR_EOL(s);)s===33&&(r?throwError(e,`tag suffix cannot contain exclamation marks`):(a=e.input.slice(t-1,e.position+1),PATTERN_TAG_HANDLE.test(a)||throwError(e,`named tag handle cannot contain such characters`),r=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),PATTERN_FLOW_INDICATORS.test(o)&&throwError(e,`tag suffix cannot contain flow indicator characters`)}o&&!PATTERN_TAG_URI.test(o)&&throwError(e,`tag name cannot contain such characters: `+o);try{o=decodeURIComponent(o)}catch{throwError(e,`tag name is malformed: `+o)}return n?e.tag=o:_hasOwnProperty$1.call(e.tagMap,a)?e.tag=e.tagMap[a]+o:a===`!`?e.tag=`!`+o:a===`!!`?e.tag=`tag:yaml.org,2002:`+o:throwError(e,`undeclared tag handle "`+a+`"`),!0}function readAnchorProperty(e){var t,n=e.input.charCodeAt(e.position);if(n!==38)return!1;for(e.anchor!==null&&throwError(e,`duplication of an anchor property`),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!is_WS_OR_EOL(n)&&!is_FLOW_INDICATOR(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&throwError(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(t,e.position),!0}function readAlias(e){var t,n,r=e.input.charCodeAt(e.position);if(r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!is_WS_OR_EOL(r)&&!is_FLOW_INDICATOR(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&throwError(e,`name of an alias node must contain at least one character`),n=e.input.slice(t,e.position),_hasOwnProperty$1.call(e.anchorMap,n)||throwError(e,`unidentified alias "`+n+`"`),e.result=e.anchorMap[n],skipSeparationSpace(e,!0,-1),!0}function composeNode(e,t,n,r,a){var o,s,c,l=1,u=!1,d=!1,f,p,m,h,g,_;if(e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=c=CONTEXT_BLOCK_OUT===n||CONTEXT_BLOCK_IN===n,r&&skipSeparationSpace(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;readTagProperty(e)||readAnchorProperty(e);)skipSeparationSpace(e,!0,-1)?(u=!0,c=o,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):c=!1;if(c&&=u||a,(l===1||CONTEXT_BLOCK_OUT===n)&&(g=CONTEXT_FLOW_IN===n||CONTEXT_FLOW_OUT===n?t:t+1,_=e.position-e.lineStart,l===1?c&&(readBlockSequence(e,_)||readBlockMapping(e,_,g))||readFlowCollection(e,g)?d=!0:(s&&readBlockScalar(e,g)||readSingleQuotedScalar(e,g)||readDoubleQuotedScalar(e,g)?d=!0:readAlias(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&throwError(e,`alias node should not have any properties`)):readPlainScalar(e,g,CONTEXT_FLOW_IN===n)&&(d=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(d=c&&readBlockSequence(e,_))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag===`?`){for(e.result!==null&&e.kind!==`scalar`&&throwError(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`),f=0,p=e.implicitTypes.length;f<p;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!==`!`){if(_hasOwnProperty$1.call(e.typeMap[e.kind||`fallback`],e.tag))h=e.typeMap[e.kind||`fallback`][e.tag];else for(h=null,m=e.typeMap.multi[e.kind||`fallback`],f=0,p=m.length;f<p;f+=1)if(e.tag.slice(0,m[f].tag.length)===m[f].tag){h=m[f];break}h||throwError(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&h.kind!==e.kind&&throwError(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+h.kind+`", not "`+e.kind+`"`),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):throwError(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||d}function readDocument(e){var t=e.position,n,r,a,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(skipSeparationSpace(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!is_WS_OR_EOL(s);)s=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&throwError(e,`directive name must not be less than one character in length`);s!==0;){for(;is_WHITE_SPACE(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;for(n=e.position;s!==0&&!is_WS_OR_EOL(s);)s=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}s!==0&&readLineBreak(e),_hasOwnProperty$1.call(directiveHandlers,r)?directiveHandlers[r](e,r,a):throwWarning(e,`unknown document directive "`+r+`"`)}if(skipSeparationSpace(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,skipSeparationSpace(e,!0,-1)):o&&throwError(e,`directives end mark is expected`),composeNode(e,e.lineIndent-1,CONTEXT_BLOCK_OUT,!1,!0),skipSeparationSpace(e,!0,-1),e.checkLineBreaks&&PATTERN_NON_ASCII_LINE_BREAKS.test(e.input.slice(t,e.position))&&throwWarning(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&testDocumentSeparator(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,skipSeparationSpace(e,!0,-1));return}if(e.position<e.length-1)throwError(e,`end of the stream or a document separator is expected`);else return}function loadDocuments(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
44
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new State$1(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,throwError(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)readDocument(n);return n.documents}function loadAll$1(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);var r=loadDocuments(e,n);if(typeof t!=`function`)return r;for(var a=0,o=r.length;a<o;a+=1)t(r[a])}function load$1(e,t){var n=loadDocuments(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new exception(`expected a single document in the stream, but found more`)}}var loader={loadAll:loadAll$1,load:load$1},_toString=Object.prototype.toString,_hasOwnProperty=Object.prototype.hasOwnProperty,CHAR_BOM=65279,CHAR_TAB=9,CHAR_LINE_FEED=10,CHAR_CARRIAGE_RETURN=13,CHAR_SPACE=32,CHAR_EXCLAMATION=33,CHAR_DOUBLE_QUOTE=34,CHAR_SHARP=35,CHAR_PERCENT=37,CHAR_AMPERSAND=38,CHAR_SINGLE_QUOTE=39,CHAR_ASTERISK=42,CHAR_COMMA=44,CHAR_MINUS=45,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_GREATER_THAN=62,CHAR_QUESTION=63,CHAR_COMMERCIAL_AT=64,CHAR_LEFT_SQUARE_BRACKET=91,CHAR_RIGHT_SQUARE_BRACKET=93,CHAR_GRAVE_ACCENT=96,CHAR_LEFT_CURLY_BRACKET=123,CHAR_VERTICAL_LINE=124,CHAR_RIGHT_CURLY_BRACKET=125,ESCAPE_SEQUENCES={};ESCAPE_SEQUENCES[0]=`\\0`,ESCAPE_SEQUENCES[7]=`\\a`,ESCAPE_SEQUENCES[8]=`\\b`,ESCAPE_SEQUENCES[9]=`\\t`,ESCAPE_SEQUENCES[10]=`\\n`,ESCAPE_SEQUENCES[11]=`\\v`,ESCAPE_SEQUENCES[12]=`\\f`,ESCAPE_SEQUENCES[13]=`\\r`,ESCAPE_SEQUENCES[27]=`\\e`,ESCAPE_SEQUENCES[34]=`\\"`,ESCAPE_SEQUENCES[92]=`\\\\`,ESCAPE_SEQUENCES[133]=`\\N`,ESCAPE_SEQUENCES[160]=`\\_`,ESCAPE_SEQUENCES[8232]=`\\L`,ESCAPE_SEQUENCES[8233]=`\\P`;var DEPRECATED_BOOLEANS_SYNTAX=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],DEPRECATED_BASE60_SYNTAX=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){var n,r,a,o,s,c,l;if(t===null)return{};for(n={},r=Object.keys(t),a=0,o=r.length;a<o;a+=1)s=r[a],c=String(t[s]),s.slice(0,2)===`!!`&&(s=`tag:yaml.org,2002:`+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&_hasOwnProperty.call(l.styleAliases,c)&&(c=l.styleAliases[c]),n[s]=c;return n}function encodeHex(e){var t=e.toString(16).toUpperCase(),n,r;if(e<=255)n=`x`,r=2;else if(e<=65535)n=`u`,r=4;else if(e<=4294967295)n=`U`,r=8;else throw new exception(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+n+common.repeat(`0`,r-t.length)+t}var QUOTING_TYPE_SINGLE=1,QUOTING_TYPE_DOUBLE=2;function State(e){this.schema=e.schema||_default,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=common.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=compileStyleMap(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===`"`?QUOTING_TYPE_DOUBLE:QUOTING_TYPE_SINGLE,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer==`function`?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function indentString(e,t){for(var n=common.repeat(` `,t),r=0,a=-1,o=``,s,c=e.length;r<c;)a=e.indexOf(`
45
- `,r),a===-1?(s=e.slice(r),r=c):(s=e.slice(r,a+1),r=a+1),s.length&&s!==`
46
- `&&(o+=n),o+=s;return o}function generateNextLine(e,t){return`
47
- `+common.repeat(` `,e.indent*t)}function testImplicitResolving(e,t){var n,r,a;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(a=e.implicitTypes[n],a.resolve(t))return!0;return!1}function isWhitespace(e){return e===CHAR_SPACE||e===CHAR_TAB}function isPrintable(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==CHAR_BOM||65536<=e&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==CHAR_BOM&&e!==CHAR_CARRIAGE_RETURN&&e!==CHAR_LINE_FEED}function isPlainSafe(e,t,n){var r=isNsCharOrWhitespace(e),a=r&&!isWhitespace(e);return(n?r:r&&e!==CHAR_COMMA&&e!==CHAR_LEFT_SQUARE_BRACKET&&e!==CHAR_RIGHT_SQUARE_BRACKET&&e!==CHAR_LEFT_CURLY_BRACKET&&e!==CHAR_RIGHT_CURLY_BRACKET)&&e!==CHAR_SHARP&&!(t===CHAR_COLON&&!a)||isNsCharOrWhitespace(t)&&!isWhitespace(t)&&e===CHAR_SHARP||t===CHAR_COLON&&a}function isPlainSafeFirst(e){return isPrintable(e)&&e!==CHAR_BOM&&!isWhitespace(e)&&e!==CHAR_MINUS&&e!==CHAR_QUESTION&&e!==CHAR_COLON&&e!==CHAR_COMMA&&e!==CHAR_LEFT_SQUARE_BRACKET&&e!==CHAR_RIGHT_SQUARE_BRACKET&&e!==CHAR_LEFT_CURLY_BRACKET&&e!==CHAR_RIGHT_CURLY_BRACKET&&e!==CHAR_SHARP&&e!==CHAR_AMPERSAND&&e!==CHAR_ASTERISK&&e!==CHAR_EXCLAMATION&&e!==CHAR_VERTICAL_LINE&&e!==CHAR_EQUALS&&e!==CHAR_GREATER_THAN&&e!==CHAR_SINGLE_QUOTE&&e!==CHAR_DOUBLE_QUOTE&&e!==CHAR_PERCENT&&e!==CHAR_COMMERCIAL_AT&&e!==CHAR_GRAVE_ACCENT}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==CHAR_COLON}function codePointAt(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function needIndentIndicator(e){return/^\n* /.test(e)}var STYLE_PLAIN=1,STYLE_SINGLE=2,STYLE_LITERAL=3,STYLE_FOLDED=4,STYLE_DOUBLE=5;function chooseScalarStyle(e,t,n,r,a,o,s,c){var l,u=0,d=null,f=!1,p=!1,m=r!==-1,h=-1,g=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||s)for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=codePointAt(e,l),!isPrintable(u))return STYLE_DOUBLE;g&&=isPlainSafe(u,d,c),d=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=codePointAt(e,l),u===CHAR_LINE_FEED)f=!0,m&&(p||=l-h-1>r&&e[h+1]!==` `,h=l);else if(!isPrintable(u))return STYLE_DOUBLE;g&&=isPlainSafe(u,d,c),d=u}p||=m&&l-h-1>r&&e[h+1]!==` `}return!f&&!p?g&&!s&&!a(e)?STYLE_PLAIN:o===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:n>9&&needIndentIndicator(e)?STYLE_DOUBLE:s?o===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:p?STYLE_FOLDED:STYLE_LITERAL}function writeScalar(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===QUOTING_TYPE_DOUBLE?`""`:`''`;if(!e.noCompatMode&&(DEPRECATED_BOOLEANS_SYNTAX.indexOf(t)!==-1||DEPRECATED_BASE60_SYNTAX.test(t)))return e.quotingType===QUOTING_TYPE_DOUBLE?`"`+t+`"`:`'`+t+`'`;var o=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),c=r||e.flowLevel>-1&&n>=e.flowLevel;function l(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,c,e.indent,s,l,e.quotingType,e.forceQuotes&&!r,a)){case STYLE_PLAIN:return t;case STYLE_SINGLE:return`'`+t.replace(/'/g,`''`)+`'`;case STYLE_LITERAL:return`|`+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,o));case STYLE_FOLDED:return`>`+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,s),o));case STYLE_DOUBLE:return`"`+escapeString(t)+`"`;default:throw new exception(`impossible error: invalid scalar style`)}}()}function blockHeader(e,t){var n=needIndentIndicator(e)?String(t):``,r=e[e.length-1]===`
48
- `;return n+(r&&(e[e.length-2]===`
49
- `||e===`
50
- `)?`+`:r?``:`-`)+`
51
- `}function dropEndingNewline(e){return e[e.length-1]===`
52
- `?e.slice(0,-1):e}function foldString(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var r=e.indexOf(`
53
- `);return r=r===-1?e.length:r,n.lastIndex=r,foldLine(e.slice(0,r),t)}(),a=e[0]===`
54
- `||e[0]===` `,o,s;s=n.exec(e);){var c=s[1],l=s[2];o=l[0]===` `,r+=c+(!a&&!o&&l!==``?`
55
- `:``)+foldLine(l,t),a=o}return r}function foldLine(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,a=0,o,s=0,c=0,l=``;r=n.exec(e);)c=r.index,c-a>t&&(o=s>a?s:c,l+=`
56
- `+e.slice(a,o),a=o+1),s=c;return l+=`
57
- `,e.length-a>t&&s>a?l+=e.slice(a,s)+`
58
- `+e.slice(s+1):l+=e.slice(a),l.slice(1)}function escapeString(e){for(var t=``,n=0,r,a=0;a<e.length;n>=65536?a+=2:a++)n=codePointAt(e,a),r=ESCAPE_SEQUENCES[n],!r&&isPrintable(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||encodeHex(n);return t}function writeFlowSequence(e,t,n){var r=``,a=e.tag,o,s,c;for(o=0,s=n.length;o<s;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),(writeNode(e,t,c,!1,!1)||c===void 0&&writeNode(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump);e.tag=a,e.dump=`[`+r+`]`}function writeBlockSequence(e,t,n,r){var a=``,o=e.tag,s,c,l;for(s=0,c=n.length;s<c;s+=1)l=n[s],e.replacer&&(l=e.replacer.call(n,String(s),l)),(writeNode(e,t+1,l,!0,!0,!1,!0)||l===void 0&&writeNode(e,t+1,null,!0,!0,!1,!0))&&((!r||a!==``)&&(a+=generateNextLine(e,t)),e.dump&&CHAR_LINE_FEED===e.dump.charCodeAt(0)?a+=`-`:a+=`- `,a+=e.dump);e.tag=o,e.dump=a||`[]`}function writeFlowMapping(e,t,n){var r=``,a=e.tag,o=Object.keys(n),s,c,l,u,d;for(s=0,c=o.length;s<c;s+=1)d=``,r!==``&&(d+=`, `),e.condenseFlow&&(d+=`"`),l=o[s],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),writeNode(e,t,l,!1,!1)&&(e.dump.length>1024&&(d+=`? `),d+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),writeNode(e,t,u,!1,!1)&&(d+=e.dump,r+=d));e.tag=a,e.dump=`{`+r+`}`}function writeBlockMapping(e,t,n,r){var a=``,o=e.tag,s=Object.keys(n),c,l,u,d,f,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys==`function`)s.sort(e.sortKeys);else if(e.sortKeys)throw new exception(`sortKeys must be a boolean or a function`);for(c=0,l=s.length;c<l;c+=1)p=``,(!r||a!==``)&&(p+=generateNextLine(e,t)),u=s[c],d=n[u],e.replacer&&(d=e.replacer.call(n,u,d)),writeNode(e,t+1,u,!0,!0,!0)&&(f=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024,f&&(e.dump&&CHAR_LINE_FEED===e.dump.charCodeAt(0)?p+=`?`:p+=`? `),p+=e.dump,f&&(p+=generateNextLine(e,t)),writeNode(e,t+1,d,!0,f)&&(e.dump&&CHAR_LINE_FEED===e.dump.charCodeAt(0)?p+=`:`:p+=`: `,p+=e.dump,a+=p));e.tag=o,e.dump=a||`{}`}function detectType(e,t,n){var r,a=n?e.explicitTypes:e.implicitTypes,o,s,c,l;for(o=0,s=a.length;o<s;o+=1)if(c=a[o],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t==`object`&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(n?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag=`?`,c.represent){if(l=e.styleMap[c.tag]||c.defaultStyle,_toString.call(c.represent)===`[object Function]`)r=c.represent(t,l);else if(_hasOwnProperty.call(c.represent,l))r=c.represent[l](t,l);else throw new exception(`!<`+c.tag+`> tag resolver accepts not "`+l+`" style`);e.dump=r}return!0}return!1}function writeNode(e,t,n,r,a,o,s){e.tag=null,e.dump=n,detectType(e,n,!1)||detectType(e,n,!0);var c=_toString.call(e.dump),l=r,u;r&&=e.flowLevel<0||e.flowLevel>t;var d=c===`[object Object]`||c===`[object Array]`,f,p;if(d&&(f=e.duplicates.indexOf(n),p=f!==-1),(e.tag!==null&&e.tag!==`?`||p||e.indent!==2&&t>0)&&(a=!1),p&&e.usedDuplicates[f])e.dump=`*ref_`+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),c===`[object Object]`)r&&Object.keys(e.dump).length!==0?(writeBlockMapping(e,t,e.dump,a),p&&(e.dump=`&ref_`+f+e.dump)):(writeFlowMapping(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(c===`[object Array]`)r&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?writeBlockSequence(e,t-1,e.dump,a):writeBlockSequence(e,t,e.dump,a),p&&(e.dump=`&ref_`+f+e.dump)):(writeFlowSequence(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(c===`[object String]`)e.tag!==`?`&&writeScalar(e,e.dump,t,o,l);else if(c===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new exception(`unacceptable kind of an object to dump `+c)}e.tag!==null&&e.tag!==`?`&&(u=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`),u=e.tag[0]===`!`?`!`+u:u.slice(0,18)===`tag:yaml.org,2002:`?`!!`+u.slice(18):`!<`+u+`>`,e.dump=u+` `+e.dump)}return!0}function getDuplicateReferences(e,t){var n=[],r=[],a,o;for(inspectNode(e,n,r),a=0,o=r.length;a<o;a+=1)t.duplicates.push(n[r[a]]);t.usedDuplicates=Array(o)}function inspectNode(e,t,n){var r,a,o;if(typeof e==`object`&&e)if(a=t.indexOf(e),a!==-1)n.indexOf(a)===-1&&n.push(a);else if(t.push(e),Array.isArray(e))for(a=0,o=e.length;a<o;a+=1)inspectNode(e[a],t,n);else for(r=Object.keys(e),a=0,o=r.length;a<o;a+=1)inspectNode(e[r[a]],t,n)}function dump$1(e,t){t||={};var n=new State(t);n.noRefs||getDuplicateReferences(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),writeNode(n,0,r,!0,!0)?n.dump+`
59
- `:``}var dumper={dump:dump$1};function renamed(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}var load=loader.load,loadAll=loader.loadAll,dump=dumper.dump,safeLoad=renamed(`safeLoad`,`load`),safeLoadAll=renamed(`safeLoadAll`,`loadAll`),safeDump=renamed(`safeDump`,`dump`),require_cant_napi=__commonJSMin(((e,t)=>{var{join:n}=require___vite_browser_external();function r(){return process.platform===`darwin`?process.arch===`arm64`?`darwin-arm64`:`darwin-x64`:process.platform===`linux`?process.arch===`arm64`?`linux-arm64-gnu`:`linux-x64-gnu`:process.platform===`win32`?process.arch===`arm64`?`win32-arm64-msvc`:`win32-x64-msvc`:`${process.platform}-${process.arch}`}var a;try{a=__require(n(__dirname,`cant-napi.${r()}.node`))}catch(e){throw Error(`Failed to load cant-napi native addon: ${e.message}`)}t.exports=a})),require_native_loader=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.initWasm=e.isWasmAvailable=e.SEED_PERSONA_IDS=void 0,e.isNativeAvailable=c,e.cantParseNative=u,e.cantClassifyDirectiveNative=d,e.cantParseDocumentNative=f,e.cantValidateDocumentNative=p,e.cantExtractAgentProfilesNative=m,e.extractAgentProfilesTyped=h,e.extractAgentSkills=g,e.validateAgentCantPath=_,e.cantExecutePipelineNative=v,e.loadSeedAgentIdentities=S;var t=require___vite_browser_external(),n=require___vite_browser_external(),r=null,a=!1;function o(){if(a)return;a=!0;let e=(0,n.join)(__dirname,`..`,`napi`,`cant.${s()}.node`);try{r=__require(e);return}catch{}try{r=require_cant_napi()}catch{r=null}}function s(){return process.platform===`darwin`?process.arch===`arm64`?`darwin-arm64`:`darwin-x64`:process.platform===`linux`?process.arch===`arm64`?`linux-arm64-gnu`:`linux-x64-gnu`:process.platform===`win32`?process.arch===`arm64`?`win32-arm64-msvc`:`win32-x64-msvc`:`${process.platform}-${process.arch}`}function c(){return o(),r!==null}function l(){if(o(),!r)throw Error(`cant-napi native addon not available. Build it with: cargo build --release -p cant-napi`);return r}function u(e){return l().cantParse(e)}function d(e){return l().cantClassifyDirective(e)}function f(e){return l().cantParseDocument(e)}function p(e){return l().cantValidateDocument(e)}function m(e){return l().cantExtractAgentProfiles(e)}function h(e){let t=m(e);return Array.isArray(t)?t.filter(e=>typeof e==`object`&&!!e):[]}function g(e){let t=h(e),n=new Set;for(let e of t)if(Array.isArray(e.skills)){for(let t of e.skills)if(typeof t==`string`){let e=t.trim();e.length>0&&n.add(e)}}return[...n]}function _(e,t){if(typeof e!=`string`||e.length===0||typeof t!=`string`||t.length===0||!(0,n.isAbsolute)(e)||!(0,n.isAbsolute)(t))return!1;let r=(0,n.resolve)(t),a=(0,n.resolve)(e),o=(0,n.relative)(r,a);return!(o.length===0||o.startsWith(`..`)||(0,n.isAbsolute)(o))}function v(e,t){return l().cantExecutePipeline(e,t)}e.SEED_PERSONA_IDS=[`cleo-subagent`,`project-orchestrator`,`project-dev-lead`,`project-code-worker`,`project-docs-worker`,`project-security-worker`];function y(){let e=__dirname;return[(0,n.resolve)(e,`..`,`..`,`agents`),(0,n.resolve)(e,`..`,`..`,`..`,`agents`),(0,n.resolve)(e,`..`,`..`,`..`,`..`,`agents`),(0,n.resolve)(e,`..`,`..`,`..`,`..`,`@cleocode`,`agents`)].find(e=>(0,t.existsSync)(e))??null}function b(e){switch(e){case`orchestrator`:return`orchestrator`;case`lead`:return`lead`;case`worker`:return`worker`;default:return`subagent`}}function x(e,n){let r;try{r=(0,t.readFileSync)(e,`utf-8`)}catch{return null}if(c())try{let t=m(r);if(Array.isArray(t)&&t.length>0){let r=t[0],a=(typeof r.agentId==`string`?r.agentId:void 0)??(typeof r.name==`string`?r.name:void 0)??n??null;if(!a)return null;let o=typeof r.role==`string`?r.role:null;if(!o&&typeof r.propertiesJson==`string`)try{let e=JSON.parse(r.propertiesJson);o=typeof e.role==`string`?e.role:null}catch{}let s=b(o),c=typeof r.description==`string`?r.description:``;if(!c&&typeof r.propertiesJson==`string`)try{let e=JSON.parse(r.propertiesJson);c=typeof e.description==`string`?e.description:``}catch{}return{peerId:a,peerKind:s,cantFile:e,displayName:a,description:c}}}catch{}let a=/^agent\s+([a-z][a-z0-9-]*):/m.exec(r),o=(a===null?void 0:a[1])??n??null;if(!o)return null;let s=/^\s{2}role:\s*(\S+)/m.exec(r);return{peerId:o,peerKind:b(s?s[1]??null:null),cantFile:e,displayName:o,description:``}}function S(e){let r=e??y();if(!r)return[];let a=[],o=(0,n.join)(r,`templates`);if((0,t.existsSync)(o)){let e=[];try{e=(0,t.readdirSync)(o).filter(e=>e.endsWith(`.cant`))}catch{}for(let t of e){let e=x((0,n.join)(o,t));e&&a.push(e)}}let s=(0,n.join)(r,`cleo-subagent.cant`);if((0,t.existsSync)(s)){let e=x(s,`cleo-subagent`);e&&a.push(e)}return a}e.isWasmAvailable=c,e.initWasm=async()=>{o()}})),require_document=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseDocument=r,e.validateDocument=a,e.listSections=o,e.executePipeline=s;var t=require___vite_browser_external(),n=require_native_loader();async function r(e){let r=(await(0,t.readFile)(e,`utf-8`)).replace(/\r\n/g,`
60
- `),a=(0,n.cantParseDocumentNative)(r);return{file:e,success:a.success,document:a.document??null,errors:a.errors}}async function a(e){let r=(await(0,t.readFile)(e,`utf-8`)).replace(/\r\n/g,`
61
- `),a=(0,n.cantValidateDocumentNative)(r);return{file:e,valid:a.valid,total:a.total,errorCount:a.errorCount,warningCount:a.warningCount,diagnostics:a.diagnostics}}async function o(e,r=`agent`){let a=(await(0,t.readFile)(e,`utf-8`)).replace(/\r\n/g,`
62
- `),o=(0,n.cantParseDocumentNative)(a);if(!o.success||o.document==null)return{file:e,filter:r,count:0,names:[]};let s=o.document,l=Array.isArray(s.sections)?s.sections:[],u=[];for(let e of l){if(typeof e!=`object`||!e)continue;let t=e[c(r)];if(!t)continue;let n=t.name;if(typeof n==`object`&&n){let e=n.value;typeof e==`string`&&u.push(e)}else typeof n==`string`&&u.push(n)}return{file:e,filter:r,count:u.length,names:u}}async function s(e,t){let r=await(0,n.cantExecutePipelineNative)(e,t);return{file:e,pipeline:t,success:r.success,durationMs:r.durationMs,steps:r.steps,error:r.error??null}}function c(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}})),require_bundle=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.toCantAgentV3=p,e.compileBundle=v;var t=require_document();function n(e){if(`Identifier`in e)return e.Identifier;if(`String`in e){let t=e.String;return typeof t==`object`&&t&&`raw`in t?t.raw:t}if(`Number`in e)return e.Number;if(`Boolean`in e)return e.Boolean;if(`ProseBlock`in e){let t=e.ProseBlock;return typeof t==`object`&&t&&`lines`in t?t.lines.join(`
63
- `):t}if(`Array`in e){let t=e.Array;return Array.isArray(t)?t.map(e=>n(e)):t}return e}function r(e){let t={};for(let r of e){let e=r.key?.value;typeof e==`string`&&(t[e]=n(r.value))}return t}function a(e,t){if(typeof e!=`object`||!e)return[];let n=e.sections;if(!Array.isArray(n))return[];let a=[];for(let e of n){if(typeof e!=`object`||!e)continue;let n=e.Agent;if(!n)continue;let o=n.name?.value;if(typeof o!=`string`)continue;let s=r(n.properties??[]);if(Array.isArray(n.permissions)&&n.permissions.length>0){let e={};for(let t of n.permissions)typeof t.domain==`string`&&Array.isArray(t.access)&&(e[t.domain]=t.access);s.permissions=e}a.push({name:o,sourcePath:t,properties:s})}return a}var o=[`low`,`mid`,`high`],s=[`escalate_tier`,`fail`];function c(e){if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`boolean`)return String(e)}function l(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){let e=c(n);typeof e==`string`&&t.push(e)}return t}function u(e){let t={};if(typeof e!=`object`||!e)return t;let n=e;for(let[e,r]of Object.entries(n))if(Array.isArray(r)){let n=l(r);n.length>0&&(t[e]=n.join(`, `))}else{let n=c(r);typeof n==`string`&&(t[e]=n)}return t}function d(e){let t={requires:[],ensures:[]};if(typeof e!=`object`||!e)return t;let n=e,r=e=>{if(!Array.isArray(e))return[];let t=[];for(let n of e){let e=c(n);typeof e==`string`&&e.length>0&&t.push({text:e})}return t};return{requires:r(n.requires),ensures:r(n.ensures)}}function f(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){if(typeof n!=`object`||!n)continue;let e=n,r=c(e.source),a=c(e.query),o=e.maxEntries??e.max_entries??e.max,s=typeof o==`number`?o:typeof o==`string`?Number.parseInt(o,10):NaN;typeof r==`string`&&typeof a==`string`&&Number.isFinite(s)&&s>0&&t.push({source:r,query:a,maxEntries:s})}return t}function p(e,t){if(typeof e.name!=`string`||e.name.length===0)return null;let n=e.properties,r=c(n.tier),a=r!==void 0&&o.includes(r)?r:`mid`,p=c(n.on_overflow??n.onOverflow),m=p!==void 0&&s.includes(p)?p:`escalate_tier`,h=null,g=c(n.version)??`1`,_=c(n.role)??``,v=c(n.description)??``,y=c(n.prompt)??``,b=l(n.skills),x=u(n.permissions),S=f(n.context_sources??n.contextSources),C=d(n.contracts),w=c(n.model),T=n.persist,E=typeof T==`boolean`||typeof T==`string`?T:void 0,D=c(n.parent),O=c(n[`consult-when`]??n.consultWhen),k=l(n.workers),A=l(n.stages),j=n.deprecated,M=typeof j==`boolean`?j:void 0,N=c(n.superseded_by??n.supersededBy),P={name:e.name,sourcePath:t,version:g,role:_,description:v,prompt:y,skills:b,permissions:x,tier:a,contextSources:S,onOverflow:m,mentalModelRef:null,contracts:C};return w!==void 0&&(P.model=w),E!==void 0&&(P.persist=E),D!==void 0&&(P.parent=D),O!==void 0&&(P.consultWhen=O),k.length>0&&(P.workers=k),A.length>0&&(P.stages=A),M!==void 0&&(P.deprecated=M),N!==void 0&&(P.supersededBy=N),P}function m(e,t){let n=[];for(let r of[`prompt`,`tone`,`enforcement`]){let a=e.properties[r];c(a)?.includes(`TODO`)&&n.push({ruleId:`S-TODO-001`,message:`Field '${r}' on agent '${e.name}' contains TODO stub; agent cannot be spawned with placeholder content`,severity:`error`,sourcePath:t})}return n}function h(e,t){if(typeof e!=`object`||!e)return[];let n=e.sections;if(!Array.isArray(n))return[];let a=[];for(let e of n){if(typeof e!=`object`||!e)continue;let n=e.Team;if(!n)continue;let o=n.name?.value;typeof o==`string`&&a.push({name:o,sourcePath:t,properties:r(n.properties??[])})}return a}function g(e,t){if(typeof e!=`object`||!e)return[];let n=e.sections;if(!Array.isArray(n))return[];let a=[];for(let e of n){if(typeof e!=`object`||!e)continue;let n=e.Tool;if(!n)continue;let o=n.name?.value;typeof o==`string`&&a.push({name:o,sourcePath:t,properties:r(n.properties??[])})}return a}function _(e){let t=[];if(e.agents.length===0&&e.teams.length===0&&e.tools.length===0)return``;if(t.push(`## CANT Bundle — Loaded Declarations`),t.push(``),e.agents.length>0){t.push(`### Agents`),t.push(``);for(let n of e.agents){let e=typeof n.properties.role==`string`?n.properties.role:`unspecified`,r=typeof n.properties.tier==`string`?n.properties.tier:`unspecified`,a=typeof n.properties.prompt==`string`?n.properties.prompt:``,o=a.length>0?a.split(`
64
- `)[0]:``;t.push(`- **${n.name}** (role: ${e}, tier: ${r})`),o.length>0&&t.push(` ${o.trim()}`)}t.push(``)}if(e.teams.length>0){t.push(`### Teams`),t.push(``);for(let n of e.teams){let e=typeof n.properties.orchestrator==`string`?n.properties.orchestrator:`unspecified`,r=typeof n.properties.description==`string`?n.properties.description:``;t.push(`- **${n.name}** (orchestrator: ${e})`),r.length>0&&t.push(` ${r.trim()}`)}t.push(``)}if(e.tools.length>0){t.push(`### Tools`),t.push(``);for(let n of e.tools){let e=typeof n.properties.description==`string`?n.properties.description:``;t.push(`- **${n.name}**`),e.length>0&&t.push(` ${e.trim()}`)}t.push(``)}if(!e.valid&&e.diagnostics.length>0){let n=e.diagnostics.filter(e=>e.severity===`error`).length;n>0&&(t.push(`> **Warning**: ${n} validation error(s) found across .cant files.`),t.push(``))}return t.join(`
65
- `)}async function v(e){let n=new Map,r=[],o=[],s=[],c=[],l=!0;for(let u of e){let e=[],d;try{d=await(0,t.parseDocument)(u)}catch(t){let r=t instanceof Error?t.message:String(t);e.push({ruleId:`parse`,message:`Failed to read or parse file: ${r}`,severity:`error`,sourcePath:u}),c.push(...e),n.set(u,{sourcePath:u,kind:null,document:null,diagnostics:e}),l=!1;continue}if(!d.success){for(let t of d.errors)e.push({ruleId:`parse`,message:t.message,severity:t.severity,sourcePath:u,line:t.line,col:t.col});l=!1}let f=null;if(d.document!==null&&typeof d.document==`object`){let e=d.document;typeof e.kind==`string`&&(f=e.kind)}if(d.success){let _;try{_=await(0,t.validateDocument)(u)}catch(t){let r=t instanceof Error?t.message:String(t);e.push({ruleId:`validate`,message:`Validation failed: ${r}`,severity:`error`,sourcePath:u}),c.push(...e),n.set(u,{sourcePath:u,kind:f,document:d.document,diagnostics:e}),l=!1;continue}for(let t of _.diagnostics)e.push({ruleId:t.ruleId,message:t.message,severity:t.severity,sourcePath:u,line:t.line,col:t.col});_.valid||(l=!1);let v=a(d.document,u),y=h(d.document,u),b=g(d.document,u);for(let t of v){let n=p(t,u),a={...t,typed:n},o=m(t,u);if(o.length>0){for(let t of o)e.push(t);l=!1}r.push(a)}o.push(...y),s.push(...b)}c.push(...e),n.set(u,{sourcePath:u,kind:f,document:d.document,diagnostics:e})}return{documents:n,agents:r,teams:o,tools:s,diagnostics:c,valid:l,renderSystemPrompt(){return _(this)}}}})),require_composer=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TIER_CAPS=void 0,e.escalateTier=t,e.estimateTokens=n,e.composeSpawnPayload=a,e.TIER_CAPS={low:{systemPrompt:4e3,mentalModel:0,contextSources:0},mid:{systemPrompt:12e3,mentalModel:1e3,contextSources:4e3},high:{systemPrompt:32e3,mentalModel:2e3,contextSources:12e3}};function t(e){return e===`low`?`mid`:e===`mid`?`high`:null}function n(e){return Math.ceil(e.length/4)}var r=`VALIDATE THIS MENTAL MODEL. Re-evaluate each claim against current code state. Mental models are dynamic per project; assume drift.`;async function a(a,o,s){let c=a.tier,l=!1,u=a.prompt,d=n(u),f=[],p=e.TIER_CAPS[c].contextSources;for(let e of a.contextSources){if(p<=0)break;let t=await o.queryContext(e.source,e.query,p);f.push(t),p-=t.tokens}let m=null;if(a.mentalModel?.enabled){let t=e.TIER_CAPS[c].mentalModel;t>0&&(m=await o.loadMentalModel(a.name,a.mentalModel.scope===`project`?s:`global`,t))}let h=f.map(e=>e.content).join(`
66
-
67
- `),g=m?.content??``,_=d+n(h)+n(g),v=c;for(;_>e.TIER_CAPS[v].systemPrompt;){if(a.onOverflow===`fail`)throw Error(`Agent ${a.name}: total tokens (${_}) exceeds ${v} tier cap (${e.TIER_CAPS[v].systemPrompt}) and onOverflow is 'fail'`);let n=t(v);if(n===null)throw Error(`Agent ${a.name}: total tokens (${_}) exceeds high tier cap (${e.TIER_CAPS.high.systemPrompt}) — cannot escalate further`);v=n,l=!0}c=v;let y=[u];if(f.length>0){y.push(`
68
-
69
- ## Context (JIT-injected)
70
- `);for(let e of f)y.push(`### ${e.source}\n${e.content}\n`)}m&&g.length>0&&y.push(`
71
-
72
- ## Mental Model (validate before acting)
73
- ${r}\n\n`+g);let b=y.join(``);return{agentName:a.name,resolvedTier:c,escalated:l,declaredTier:a.tier,systemPrompt:b,systemPromptTokens:n(b),skills:a.skills,tools:a.tools,injectedContextSources:f.map(e=>e.source),mentalModelInjected:m!==null&&g.length>0}}})),require_context_provider_brain=__commonJSMin((e=>{init_preload_helper(),Object.defineProperty(e,`__esModule`,{value:!0}),e.brainContextProvider=a;var t=require_composer();async function n(){let e=`@cleocode/core/internal`,t=await __vitePreload(()=>import(`@cleocode/core/internal`),[],import.meta.url);return{memoryFind:t.memoryFind,memoryFetch:t.memoryFetch}}function r(e,t){if(t<=0)return``;let n=t*4;return e.length<=n?e:e.slice(0,n)}function a(e){return{async queryContext(a,o,s){if(s<=0)return{source:a,content:``,tokens:0};try{let c=[`patterns`,`decisions`,`learnings`,`observations`].includes(a)?[a]:void 0,{memoryFind:l,memoryFetch:u}=await n(),d=await l({query:o,limit:10,tables:c},e);if(!d.success||!d.data)return{source:a,content:``,tokens:0};let f=d.data.results??[];if(f.length===0)return{source:a,content:``,tokens:0};let p=await u({ids:f.map(e=>e.id)},e),m=``;m=p.success&&p.data?(p.data.entries??[]).map(e=>`[${e.title}]\n${e.content??e.text??``}`).join(`
74
-
75
- `):f.map(e=>e.title).join(`
76
- `);let h=r(m,s);return{source:a,content:h,tokens:(0,t.estimateTokens)(h)}}catch{return{source:a,content:``,tokens:0}}},async loadMentalModel(a,o,s){if(s<=0)return{content:``,tokens:0,lastConsolidated:null};try{let{memoryFind:c,memoryFetch:l}=await n(),u=await c({query:`mental model ${a}`,limit:5,tables:[`observations`],agent:a},e);if(!u.success||!u.data)return{content:``,tokens:0,lastConsolidated:null};let d=u.data.results??[];if(d.length===0)return{content:``,tokens:0,lastConsolidated:null};let f=[...d].sort((e,t)=>(t.date??``).localeCompare(e.date??``)),p=await l({ids:f.map(e=>e.id)},e),m=``,h=null;if(p.success&&p.data){let e=p.data.entries??[];m=e.map(e=>`[${e.title}]\n${e.content??e.text??``}`).join(`
77
-
78
- `),h=e[0]?.date??null}else m=f.map(e=>e.title).join(`
79
- `),h=f[0]?.date??null;let g=r((o===`global`?`[Global mental model for ${a}]\n`:`[Project mental model for ${a} — scope: ${o}]\n`)+m,s);return{content:g,tokens:(0,t.estimateTokens)(g),lastConsolidated:h}}catch{return{content:``,tokens:0,lastConsolidated:null}}}}}})),require_hierarchy=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.THIN_AGENT_TOOLS_STRIPPED=e.WORKER_FORBIDDEN_SPAWN_TOOLS=e.ORCHESTRATOR_FORBIDDEN_TOOLS=e.LEAD_FORBIDDEN_TOOLS=void 0,e.validateSpawnRequest=t,e.filterToolsForRole=n,e.stripSpawnToolsForWorker=r,e.LEAD_FORBIDDEN_TOOLS=[`Edit`,`Write`,`Bash`],e.ORCHESTRATOR_FORBIDDEN_TOOLS=[`Edit`,`Write`,`Bash`],e.WORKER_FORBIDDEN_SPAWN_TOOLS=[`Agent`,`Task`,`delegate_task`],e.THIN_AGENT_TOOLS_STRIPPED=`THIN_AGENT_TOOLS_STRIPPED`;function t(e,t,n,r,a){if(t===`orchestrator`)return Object.values(a.leads).includes(n)?{allowed:!0,reason:`Orchestrator dispatching to lead`}:{allowed:!1,reason:`Orchestrator ${e} can only dispatch to leads. ${n} is not a lead.`};if(t===`lead`){let t=Object.entries(a.leads).find(([,t])=>t===e)?.[0];return t?(a.workers[t]??[]).includes(n)?{allowed:!0,reason:`Lead dispatching to own-group worker (${t})`}:{allowed:!1,reason:`Lead ${e} (group: ${t}) cannot dispatch to ${n} — not in own worker group`}:{allowed:!1,reason:`Lead ${e} not found in any team group`}}return t===`worker`?{allowed:!1,reason:`Worker ${e} cannot dispatch agents. Workers may only query peers.`}:{allowed:!1,reason:`Unknown caller role`}}function n(t,n){if(n===`worker`)return r(t).tools.slice();let a=n===`lead`?e.LEAD_FORBIDDEN_TOOLS:e.ORCHESTRATOR_FORBIDDEN_TOOLS;return t.filter(e=>!a.includes(e))}function r(t){if(!Array.isArray(t))return{tools:[],warning:null};let n=e.WORKER_FORBIDDEN_SPAWN_TOOLS,r=[],a=[];for(let e of t)n.includes(e)?r.push(e):a.push(e);return r.length===0?{tools:a,warning:null}:{tools:a,warning:{code:e.THIN_AGENT_TOOLS_STRIPPED,message:`Removed ${r.length} spawn-capable tool(s) from worker role: ${r.join(`, `)}. Workers cannot spawn subagents (ORC-012).`,removed:r}}}})),require_mental_model=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createEmptyModel=n,e.consolidate=r,e.renderMentalModel=a,e.harvestObservations=s;var t=`VALIDATE THIS MENTAL MODEL. Re-evaluate each claim against current code state. Mental models are dynamic per project; assume drift.`;function n(e,t,n,r){return{agentName:e,projectHash:t,scope:n,observations:[],totalTokens:0,maxTokens:r,lastConsolidated:null,lastValidated:null}}async function r(e,t,r,a){let o=await e.load(t,r);o||=n(t,r,a.scope,a.maxTokens);let s=await e.listPending(t,r);for(let e of s){let t=o.observations.find(t=>t.content===e.content);t?(t.reinforceCount+=1,t.timestamp=e.timestamp):o.observations.push(e)}let c=new Date;c.setDate(c.getDate()-a.decayAfterDays);let l=c.toISOString();o.observations=o.observations.filter(e=>e.timestamp>=l),o.observations.sort((e,t)=>t.timestamp.localeCompare(e.timestamp));let u=0,d=[];for(let e of o.observations){if(u+e.tokens>a.maxTokens)break;d.push(e),u+=e.tokens}return o.observations=d,o.totalTokens=u,o.maxTokens=a.maxTokens,o.lastConsolidated=new Date().toISOString(),await e.save(o),await e.clearPending(t,r),o}function a(e){return e.observations.length===0?``:`${t}\n\n${e.observations.map(e=>`- [${e.trigger}] ${e.content} (reinforced ${e.reinforceCount}x)`).join(`
80
- `)}`}function o(){return`mm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}function s(e,t,n){let r=new Date().toISOString(),a=[];for(let s of n.patternsUsed)a.push({id:o(),agentName:e,projectHash:t,timestamp:r,content:`Pattern applied: ${s}`,tokens:Math.ceil(`Pattern applied: ${s}`.length/4),trigger:`pattern_observed`,reinforceCount:0});for(let s of n.decisionsMade)a.push({id:o(),agentName:e,projectHash:t,timestamp:r,content:`Decision: ${s}`,tokens:Math.ceil(`Decision: ${s}`.length/4),trigger:`decision_made`,reinforceCount:0});if(n.outcome===`success`){let s=`Task completed successfully. Files: ${n.filesTouched.join(`, `)}`;a.push({id:o(),agentName:e,projectHash:t,timestamp:r,content:s,tokens:Math.ceil(s.length/4),trigger:`task_completed`,reinforceCount:0})}return a}})),require_markdown_parser=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseMarkdownSections=r,e.classifySection=o,e.extractProperties=c,e.extractPermissions=l,e.headingToIdentifier=u,e.headingToEventName=d,e.getCaampEvents=f;var t=new Set([`SessionStart`,`SessionEnd`,`PromptSubmit`,`ResponseComplete`,`PreToolUse`,`PostToolUse`,`PostToolUseFailure`,`PermissionRequest`,`SubagentStart`,`SubagentStop`,`PreModel`,`PostModel`,`PreCompact`,`PostCompact`,`Notification`,`ConfigChange`]),n=[/^on\s+session\s*start/i,/^on\s+session\s*end/i,/^on\s+prompt\s*submit/i,/^on\s+response\s*complete/i,/^on\s+pre\s*tool\s*use/i,/^on\s+post\s*tool\s*use/i,/^on\s+post\s*tool\s*use\s*failure/i,/^on\s+permission\s*request/i,/^on\s+subagent\s*start/i,/^on\s+subagent\s*stop/i,/^on\s+pre\s*model/i,/^on\s+post\s*model/i,/^on\s+pre\s*compact/i,/^on\s+post\s*compact/i,/^on\s+notification/i,/^on\s+config\s*change/i,/^when\s+.*\s+start/i,/^when\s+.*\s+end/i,/^hooks?\b/i];function r(e){let t=e.split(`
81
- `),n=[],r=null;for(let e=0;e<t.length;e++){let o=t[e]??``,s=o.match(/^(#{2,3})\s+(.+)$/);if(s){r?.heading&&a(r,e,n);let t=(s[1]??``).length;r={heading:(s[2]??``).trim(),level:t,lineStart:e+1,bodyLines:[],classification:`unknown`}}else r&&(r.bodyLines=r.bodyLines??[],r.bodyLines.push(o))}return r?.heading&&a(r,t.length,n),n}function a(e,t,n){for(e.lineEnd=t;e.bodyLines.length>0&&(e.bodyLines[e.bodyLines.length-1]??``).trim()===``;)e.bodyLines.pop();e.classification=o(e),n.push(e)}function o(e){let t=e.heading;if(/\bagent\b/i.test(t))return`agent`;if(/^permissions?\b/i.test(t))return`permissions`;for(let e of n)if(e.test(t))return`hook`;return/\bskills?\b/i.test(t)?`skill`:/\b(workflow|procedure|deploy|pipeline)\b/i.test(t)?`workflow`:s(e.bodyLines)?`agent`:`unknown`}function s(e){let t=/\b(model|prompt|persist(ence)?|skills?)\b/i,n=0;for(let r of e)/^[-*]\s+\*?\*?/.test(r)&&t.test(r)&&n++;return n>=2}function c(e){let t=[];for(let n of e){let e=n.match(/^[-*]\s+\*{0,2}([A-Za-z][A-Za-z0-9 _-]*?)\*{0,2}\s*:\s*(.+)$/);if(e){let n=(e[1]??``).trim().toLowerCase(),r=(e[2]??``).trim();t.push({key:n,value:r})}}return t}function l(e){let t=[];for(let n of e){let e=n.match(/^[-*]\s+([A-Za-z]+)\s*:\s*(.+)$/);if(e){let n=(e[1]??``).trim().toLowerCase(),r=(e[2]??``).trim().split(/[,\s]+/).map(e=>e.trim().toLowerCase()).filter(e=>[`read`,`write`,`execute`].includes(e));if(r.length>0){t.push({domain:n,values:r});continue}}let r=n.match(/^[-*]\s+(read|write|execute)(?:\s+and\s+(read|write|execute))?\s+(\w+)/i);if(r){let e=[(r[1]??``).toLowerCase()];r[2]&&e.push(r[2].toLowerCase());let n=(r[3]??``).toLowerCase();t.push({domain:n,values:e})}}return t}function u(e){return e.replace(/\bagent\b/gi,``).replace(/^[:]\s*/,``).trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}function d(e){let n=e.match(/^on\s+(.+)$/i);if(n){let e=(n[1]??``).trim().replace(/\s+/g,``).replace(/^(\w)/,(e,t)=>t.toUpperCase());if(t.has(e))return e}let r=e.match(/^when\s+(?:a\s+)?(\w+)\s+starts?$/i);if(r){let e=(r[1]??``).trim(),n=`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()}Start`;if(t.has(n))return n}let a=e.match(/^when\s+(?:a\s+)?(\w+)\s+ends?$/i);if(a){let e=(a[1]??``).trim(),n=`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()}End`;if(t.has(n))return n}return null}function f(){return t}})),require_serializer=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serializeCantDocument=t,e.formatValue=r,e.propertiesToIR=a;function t(e){let t=[];return t.push(`---`),t.push(`kind: ${e.kind}`),t.push(`version: ${e.version}`),t.push(`---`),t.push(``),n(e.block,0,t),t.join(`
82
- `)+`
83
- `}function n(e,t,a){let o=` `.repeat(t);a.push(`${o}${e.type} ${e.name}:`);let s=t+1,c=` `.repeat(s);for(let t of e.properties)a.push(`${c}${t.key}: ${r(t.value)}`);if(e.permissions.length>0){a.push(`${c}permissions:`);let t=` `.repeat(s+1);for(let n of e.permissions)a.push(`${t}${n.domain}: ${n.values.join(`, `)}`)}if(e.bodyLines&&e.bodyLines.length>0)for(let t of e.bodyLines)t.trim()===``?a.push(``):a.push(`${c}${t}`);if(e.children.length>0){a.push(``);for(let t of e.children)n(t,s,a),a.push(``)}}function r(e){return typeof e==`string`?/^\d+$/.test(e)||e===`true`||e===`false`?e:`"${e.replace(/"/g,`\\"`)}"`:Array.isArray(e)?`[${e.map(e=>`"${e.replace(/"/g,`\\"`)}"`).join(`, `)}]`:String(e)}function a(e){let t=[];for(let n of e){let e=o(n.key),r=s(e,n.value);t.push({key:e,value:r})}return t}function o(e){return{model:`model`,persistence:`persist`,persist:`persist`,prompt:`prompt`,skills:`skills`,skill:`skills`,description:`description`,tier:`tier`}[e]??e}function s(e,t){return e===`skills`?t.split(/[,\s]+/).map(e=>e.trim()).filter(Boolean):t}})),require_converter=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.migrateMarkdown=r;var t=require_markdown_parser(),n=require_serializer();function r(e,n,r){let o=(0,t.parseMarkdownSections)(e),c=r.outputDir??`.cleo/agents`,d=[],f=[];for(let e of o)switch(e.classification){case`agent`:a(e,c,d);break;case`hook`:s(e,c,d,f);break;case`permissions`:f.push({lineStart:e.lineStart,lineEnd:e.lineEnd,reason:`Standalone permissions section needs parent agent context`,content:p(e)});break;case`skill`:l(e,c,d,f);break;case`workflow`:u(e,c,d,f);break;case`unknown`:f.push({lineStart:e.lineStart,lineEnd:e.lineEnd,reason:`Could not classify section for automatic conversion`,content:p(e)});break}return{inputFile:n,outputFiles:d,unconverted:f,summary:m(d,f)}}function a(e,r,a){let s=(0,t.headingToIdentifier)(e.heading);if(!s)return;let c=(0,t.extractProperties)(e.bodyLines),l={kind:`agent`,version:1,block:{type:`agent`,name:s,properties:(0,n.propertiesToIR)(c),permissions:o(e.bodyLines),children:[]}},u=(0,n.serializeCantDocument)(l),d=`${r}/${s}.cant`;a.push({path:d,kind:`agent`,content:u})}function o(e){let n=!1,r=[];for(let t of e){if(/^\*?\*?permissions?\*?\*?\s*:/i.test(t.trim())){n=!0;continue}n&&(/^[-*]\s+/.test(t.trim())||/^\s+[-*]\s+/.test(t)?r.push(t.trim()):t.trim()===``||(n=!1))}return(0,t.extractPermissions)(r)}function s(e,r,a,o){let s=(0,t.headingToEventName)(e.heading);if(!s){o.push({lineStart:e.lineStart,lineEnd:e.lineEnd,reason:`Hook heading "${e.heading}" does not match a known CAAMP event`,content:p(e)});return}let l=c(e.bodyLines),u=s.replace(/([A-Z])/g,`-$1`).toLowerCase().replace(/^-/,``),d={kind:`hook`,version:1,block:{type:`on`,name:s,properties:[],permissions:[],children:[],bodyLines:l}},f=(0,n.serializeCantDocument)(d),m=`${r}/${u}.cant`;a.push({path:m,kind:`hook`,content:f})}function c(e){let t=[];for(let n of e){let e=n.trim();if(!e)continue;let r=e.replace(/^\d+\.\s+/,``).replace(/^[-*]\s+/,``);if(r.startsWith(`/`)){t.push(r);continue}let a=r.match(/^(?:load\s+)?context\s*:\s*(.+)/i);if(a){let e=(a[1]??``).split(/[,\s]+/).map(e=>e.trim()).filter(Boolean);t.push(`# context: [${e.join(`, `)}]`);continue}t.push(`# TODO: manual conversion needed -- ${r}`)}return t}function l(e,r,a,o){let s=(0,t.headingToIdentifier)(e.heading);if(!s||s===`skill`||s===`skills`){o.push({lineStart:e.lineStart,lineEnd:e.lineEnd,reason:`Generic skills list cannot be converted to a skill definition`,content:p(e)});return}let c=(0,t.extractProperties)(e.bodyLines),l={kind:`skill`,version:1,block:{type:`skill`,name:s,properties:(0,n.propertiesToIR)(c),permissions:[],children:[]}},u=(0,n.serializeCantDocument)(l),d=`${r}/${s}.cant`;a.push({path:d,kind:`skill`,content:u})}function u(e,r,a,o){let s=(0,t.headingToIdentifier)(e.heading);if(!s)return;let c=d(e.bodyLines);if(c.length===0){o.push({lineStart:e.lineStart,lineEnd:e.lineEnd,reason:`Workflow section too complex for automatic conversion`,content:p(e)});return}let l=c.map((e,t)=>({type:`step`,name:e.name||`step-${t+1}`,properties:e.properties,permissions:[],children:[]})),u={kind:`workflow`,version:1,block:{type:`workflow`,name:s,properties:[],permissions:[],children:[{type:`pipeline`,name:`${s}-pipeline`,properties:[],permissions:[],children:l}]}},f=(0,n.serializeCantDocument)(u),m=`${r}/${s}.cant`;a.push({path:m,kind:`workflow`,content:f})}function d(e){let t=[];for(let n of e){let e=n.trim();if(!e)continue;let r=e.match(/^(?:\d+\.|[-*])\s+(?:run\s+)?`([^`]+)`/i);if(r){let e=r[1]??``,n=e.split(/\s+/),a=n[0]??e,o=n.slice(1),s=[{key:`command`,value:a}];o.length>0&&s.push({key:`args`,value:o});let c=f(e);t.push({name:c,properties:s});continue}if(/^(?:\d+\.|[-*])\s+(?:if|then|else|ask|wait)/i.test(e))return[]}return t}function f(e){let t=e.split(/\s+/);return t.length>=3&&(t[0]===`pnpm`||t[0]===`npm`)&&t[1]===`run`?(t[2]??`step`).replace(/[^a-z0-9-]/g,`-`):t.length>=2&&(t[0]===`pnpm`||t[0]===`npm`)?(t[1]??`step`).replace(/[^a-z0-9-]/g,`-`):(t[t.length-1]??`step`).replace(/[^a-z0-9-]/g,`-`).replace(/^-|-$/g,``)||`step`}function p(e){return[`${`#`.repeat(e.level)} ${e.heading}`,...e.bodyLines].join(`
84
- `)}function m(e,t){let n=e.length,r=t.length,a=[];if(a.push(`${n} section(s) converted`),a.push(`${r} section(s) left as TODO`),e.length>0){let t=new Map;for(let n of e)t.set(n.kind,(t.get(n.kind)??0)+1);let n=[...t.entries()].map(([e,t])=>`${t} ${e}`).join(`, `);a.push(`(${n})`)}return a.join(`, `)}})),require_diff=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.showDiff=n,e.showSummary=r;var t={reset:`\x1B[0m`,red:`\x1B[31m`,green:`\x1B[32m`,yellow:`\x1B[33m`,cyan:`\x1B[36m`,dim:`\x1B[2m`,bold:`\x1B[1m`};function n(e,n=!0){let r=n?t:{reset:``,red:``,green:``,yellow:``,cyan:``,dim:``,bold:``},a=[];if(a.push(`${r.bold}Migration Preview: ${e.inputFile}${r.reset}`),a.push(`${r.dim}${`=`.repeat(60)}${r.reset}`),a.push(e.summary),a.push(``),e.outputFiles.length>0){a.push(`${r.bold}${r.green}Converted files:${r.reset}`),a.push(``);for(let t of e.outputFiles){a.push(`${r.cyan}--- ${t.path} (${t.kind})${r.reset}`);let e=t.content.split(`
85
- `);for(let t of e)a.push(`${r.green}+ ${t}${r.reset}`);a.push(``)}}if(e.unconverted.length>0){a.push(`${r.bold}${r.yellow}Unconverted sections (manual review needed):${r.reset}`),a.push(``);for(let t of e.unconverted){a.push(`${r.yellow}! Lines ${t.lineStart}-${t.lineEnd}: ${t.reason}${r.reset}`);let e=t.content.split(`
86
- `);for(let t of e)a.push(`${r.red}- ${t}${r.reset}`);a.push(``)}}return a.join(`
87
- `)}function r(e){let t=[];if(t.push(`Migration: ${e.inputFile}`),t.push(e.summary),e.outputFiles.length>0){t.push(``),t.push(`Would create:`);for(let n of e.outputFiles)t.push(` ${n.path} (${n.kind})`)}if(e.unconverted.length>0){t.push(``),t.push(`Needs manual conversion:`);for(let n of e.unconverted)t.push(` Lines ${n.lineStart}-${n.lineEnd}: ${n.reason}`)}return t.join(`
88
- `)}})),require_migrate=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serializeCantDocument=e.showSummary=e.showDiff=e.migrateMarkdown=void 0;var t=require_converter();Object.defineProperty(e,`migrateMarkdown`,{enumerable:!0,get:function(){return t.migrateMarkdown}});var n=require_diff();Object.defineProperty(e,`showDiff`,{enumerable:!0,get:function(){return n.showDiff}}),Object.defineProperty(e,`showSummary`,{enumerable:!0,get:function(){return n.showSummary}});var r=require_serializer();Object.defineProperty(e,`serializeCantDocument`,{enumerable:!0,get:function(){return r.serializeCantDocument}})})),require_parse$1=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.initCantParser=n,e.parseCANTMessage=r;var t=require_native_loader();async function n(){}function r(e){if((0,t.isNativeAvailable)()){let n=(0,t.cantParseNative)(e);return{directive:n.directive??void 0,directive_type:n.directiveType?.toLowerCase()??`informational`,addresses:n.addresses??[],task_refs:n.taskRefs??[],tags:n.tags??[],header_raw:n.headerRaw??``,body:n.body??``}}if({}.CLEO_CANT_ALLOW_JS_FALLBACK!==`1`)throw Error(`cant-core native addon not available. Build it with: cargo build --release -p cant-napi
89
- Or set CLEO_CANT_ALLOW_JS_FALLBACK=1 to enable the degraded JS fallback parser.`);console.warn(`[cant] DEGRADED MODE: cant-core native addon unavailable; using JS regex parser. Results may differ from the canonical Rust parser. Build cant-napi to restore full fidelity.`);let n=e.split(`
90
- `),r=n[0]??``,o=n.slice(1).join(`
91
- `),s=r.match(/^\/([a-z][a-z0-9-]*)/),c=[...r.matchAll(/@([a-zA-Z][a-zA-Z0-9_-]*)/g)].map(e=>e[1]??``),l=[...e.matchAll(/T(\d+)/g)].map(e=>`T${e[1]??``}`),u=[...e.matchAll(/#([a-zA-Z][a-zA-Z0-9_-]*)/g)].map(e=>e[1]??``);return{directive:s?s[1]:void 0,directive_type:s?a(s[1]??``):`informational`,addresses:c,task_refs:l,tags:u,header_raw:r,body:o}}function a(e){return[`claim`,`done`,`blocked`,`approve`,`decision`,`checkin`].includes(e)?`actionable`:[`action`,`review`,`proposal`].includes(e)?`routing`:`informational`}})),require_types=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isCantAgentV3=t;function t(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.name==`string`&&typeof t.sourcePath==`string`&&typeof t.version==`string`&&typeof t.role==`string`&&typeof t.description==`string`&&typeof t.prompt==`string`&&Array.isArray(t.skills)&&typeof t.permissions==`object`&&t.permissions!==null&&typeof t.tier==`string`&&[`low`,`mid`,`high`].includes(t.tier)&&Array.isArray(t.contextSources)&&typeof t.contracts==`object`&&t.contracts!==null}})),require_dist$2=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isCantAgentV3=e.parseCANTMessage=e.initCantParser=e.validateAgentCantPath=e.SEED_PERSONA_IDS=e.loadSeedAgentIdentities=e.isWasmAvailable=e.isNativeAvailable=e.initWasm=e.extractAgentSkills=e.extractAgentProfilesTyped=e.cantValidateDocumentNative=e.cantParseNative=e.cantParseDocumentNative=e.cantExtractAgentProfilesNative=e.cantExecutePipelineNative=e.cantClassifyDirectiveNative=e.showSummary=e.showDiff=e.serializeCantDocument=e.migrateMarkdown=e.renderMentalModel=e.harvestObservations=e.createEmptyModel=e.consolidate=e.WORKER_FORBIDDEN_SPAWN_TOOLS=e.validateSpawnRequest=e.THIN_AGENT_TOOLS_STRIPPED=e.stripSpawnToolsForWorker=e.ORCHESTRATOR_FORBIDDEN_TOOLS=e.LEAD_FORBIDDEN_TOOLS=e.filterToolsForRole=e.validateDocument=e.parseDocument=e.listSections=e.executePipeline=e.brainContextProvider=e.TIER_CAPS=e.estimateTokens=e.escalateTier=e.composeSpawnPayload=e.toCantAgentV3=e.compileBundle=void 0;var t=require_bundle();Object.defineProperty(e,`compileBundle`,{enumerable:!0,get:function(){return t.compileBundle}}),Object.defineProperty(e,`toCantAgentV3`,{enumerable:!0,get:function(){return t.toCantAgentV3}});var n=require_composer();Object.defineProperty(e,`composeSpawnPayload`,{enumerable:!0,get:function(){return n.composeSpawnPayload}}),Object.defineProperty(e,`escalateTier`,{enumerable:!0,get:function(){return n.escalateTier}}),Object.defineProperty(e,`estimateTokens`,{enumerable:!0,get:function(){return n.estimateTokens}}),Object.defineProperty(e,`TIER_CAPS`,{enumerable:!0,get:function(){return n.TIER_CAPS}});var r=require_context_provider_brain();Object.defineProperty(e,`brainContextProvider`,{enumerable:!0,get:function(){return r.brainContextProvider}});var a=require_document();Object.defineProperty(e,`executePipeline`,{enumerable:!0,get:function(){return a.executePipeline}}),Object.defineProperty(e,`listSections`,{enumerable:!0,get:function(){return a.listSections}}),Object.defineProperty(e,`parseDocument`,{enumerable:!0,get:function(){return a.parseDocument}}),Object.defineProperty(e,`validateDocument`,{enumerable:!0,get:function(){return a.validateDocument}});var o=require_hierarchy();Object.defineProperty(e,`filterToolsForRole`,{enumerable:!0,get:function(){return o.filterToolsForRole}}),Object.defineProperty(e,`LEAD_FORBIDDEN_TOOLS`,{enumerable:!0,get:function(){return o.LEAD_FORBIDDEN_TOOLS}}),Object.defineProperty(e,`ORCHESTRATOR_FORBIDDEN_TOOLS`,{enumerable:!0,get:function(){return o.ORCHESTRATOR_FORBIDDEN_TOOLS}}),Object.defineProperty(e,`stripSpawnToolsForWorker`,{enumerable:!0,get:function(){return o.stripSpawnToolsForWorker}}),Object.defineProperty(e,`THIN_AGENT_TOOLS_STRIPPED`,{enumerable:!0,get:function(){return o.THIN_AGENT_TOOLS_STRIPPED}}),Object.defineProperty(e,`validateSpawnRequest`,{enumerable:!0,get:function(){return o.validateSpawnRequest}}),Object.defineProperty(e,`WORKER_FORBIDDEN_SPAWN_TOOLS`,{enumerable:!0,get:function(){return o.WORKER_FORBIDDEN_SPAWN_TOOLS}});var s=require_mental_model();Object.defineProperty(e,`consolidate`,{enumerable:!0,get:function(){return s.consolidate}}),Object.defineProperty(e,`createEmptyModel`,{enumerable:!0,get:function(){return s.createEmptyModel}}),Object.defineProperty(e,`harvestObservations`,{enumerable:!0,get:function(){return s.harvestObservations}}),Object.defineProperty(e,`renderMentalModel`,{enumerable:!0,get:function(){return s.renderMentalModel}});var c=require_migrate();Object.defineProperty(e,`migrateMarkdown`,{enumerable:!0,get:function(){return c.migrateMarkdown}}),Object.defineProperty(e,`serializeCantDocument`,{enumerable:!0,get:function(){return c.serializeCantDocument}}),Object.defineProperty(e,`showDiff`,{enumerable:!0,get:function(){return c.showDiff}}),Object.defineProperty(e,`showSummary`,{enumerable:!0,get:function(){return c.showSummary}});var l=require_native_loader();Object.defineProperty(e,`cantClassifyDirectiveNative`,{enumerable:!0,get:function(){return l.cantClassifyDirectiveNative}}),Object.defineProperty(e,`cantExecutePipelineNative`,{enumerable:!0,get:function(){return l.cantExecutePipelineNative}}),Object.defineProperty(e,`cantExtractAgentProfilesNative`,{enumerable:!0,get:function(){return l.cantExtractAgentProfilesNative}}),Object.defineProperty(e,`cantParseDocumentNative`,{enumerable:!0,get:function(){return l.cantParseDocumentNative}}),Object.defineProperty(e,`cantParseNative`,{enumerable:!0,get:function(){return l.cantParseNative}}),Object.defineProperty(e,`cantValidateDocumentNative`,{enumerable:!0,get:function(){return l.cantValidateDocumentNative}}),Object.defineProperty(e,`extractAgentProfilesTyped`,{enumerable:!0,get:function(){return l.extractAgentProfilesTyped}}),Object.defineProperty(e,`extractAgentSkills`,{enumerable:!0,get:function(){return l.extractAgentSkills}}),Object.defineProperty(e,`initWasm`,{enumerable:!0,get:function(){return l.initWasm}}),Object.defineProperty(e,`isNativeAvailable`,{enumerable:!0,get:function(){return l.isNativeAvailable}}),Object.defineProperty(e,`isWasmAvailable`,{enumerable:!0,get:function(){return l.isWasmAvailable}}),Object.defineProperty(e,`loadSeedAgentIdentities`,{enumerable:!0,get:function(){return l.loadSeedAgentIdentities}}),Object.defineProperty(e,`SEED_PERSONA_IDS`,{enumerable:!0,get:function(){return l.SEED_PERSONA_IDS}}),Object.defineProperty(e,`validateAgentCantPath`,{enumerable:!0,get:function(){return l.validateAgentCantPath}});var u=require_parse$1();Object.defineProperty(e,`initCantParser`,{enumerable:!0,get:function(){return u.initCantParser}}),Object.defineProperty(e,`parseCANTMessage`,{enumerable:!0,get:function(){return u.parseCANTMessage}});var d=require_types();Object.defineProperty(e,`isCantAgentV3`,{enumerable:!0,get:function(){return d.isCantAgentV3}})})),import_dist$2=require_dist$2();function rule(e,t,n,r,a,o){return{id:e,name:t,description:n,severity:r,category:a,pattern:o}}var AUDIT_RULES=[rule(`PI001`,`System prompt override`,`Attempts to override system instructions`,`critical`,`prompt-injection`,/(?:ignore|forget|disregard)\s+(?:all\s+)?(?:previous|prior|above|system)\s+(?:instructions|prompts|rules)/i),rule(`PI002`,`Role manipulation`,`Attempts to assume a different role`,`critical`,`prompt-injection`,/(?:you\s+are\s+now|act\s+as|pretend\s+(?:to\s+be|you're)|your\s+new\s+role\s+is)/i),rule(`PI003`,`Jailbreak attempt`,`Common jailbreak patterns`,`critical`,`prompt-injection`,/(?:DAN|Do\s+Anything\s+Now|developer\s+mode|god\s+mode|unrestricted\s+mode)/i),rule(`PI004`,`Instruction override`,`Direct instruction override attempt`,`high`,`prompt-injection`,/(?:new\s+instructions?:|updated?\s+instructions?:|override\s+instructions?:)/i),rule(`PI005`,`Hidden instructions`,`Instructions hidden in comments or whitespace`,`high`,`prompt-injection`,/<!--[\s\S]*?(?:execute|run|ignore|override)[\s\S]*?-->/i),rule(`PI006`,`Encoding bypass`,`Base64 or encoded content`,`medium`,`prompt-injection`,/(?:base64|atob|btoa|decodeURI|unescape)\s*\(/i),rule(`PI007`,`Context manipulation`,`Fake conversation context`,`high`,`prompt-injection`,/(?:Human:|Assistant:|User:|System:)\s*(?:ignore|execute|run)/i),rule(`PI008`,`Token smuggling`,`Invisible characters or zero-width spaces`,`medium`,`prompt-injection`,/(?:\u200B|\u200C|\u200D|\u2060|\uFEFF)/),rule(`CI001`,`Destructive command`,`File deletion or system modification`,`critical`,`command-injection`,/(?:rm\s+-rf|rmdir\s+\/s|del\s+\/f|format\s+[a-z]:|mkfs|dd\s+if=)/i),rule(`CI002`,`Remote code execution`,`Downloading and executing remote code`,`critical`,`command-injection`,/(?:curl|wget|fetch)\s+.*\|\s*(?:sh|bash|zsh|python|node|eval)/i),rule(`CI003`,`Eval usage`,`Dynamic code execution`,`high`,`command-injection`,/\beval\s*\(/),rule(`CI004`,`Shell spawn`,`Spawning shell processes`,`high`,`command-injection`,/(?:exec|spawn|system|popen)\s*\(\s*['"`]/),rule(`CI005`,`Sudo escalation`,`Privilege escalation via sudo`,`critical`,`command-injection`,/sudo\s+(?:rm|chmod|chown|mv|cp|dd|mkfs|format)/i),rule(`CI006`,`Environment manipulation`,`Modifying PATH or critical env vars`,`high`,`command-injection`,/(?:export\s+PATH|setx?\s+PATH|PATH=.*:)/i),rule(`CI007`,`Cron/scheduled task`,`Installing scheduled tasks`,`high`,`command-injection`,/(?:crontab|at\s+\d|schtasks|launchctl\s+load)/i),rule(`CI008`,`Network listener`,`Starting network services`,`high`,`command-injection`,/(?:nc\s+-l|ncat\s+-l|socat\s+|python.*SimpleHTTPServer|php\s+-S)/i),rule(`DE001`,`Credential access`,`Reading credential files`,`critical`,`data-exfiltration`,/(?:\.env|\.aws\/credentials|\.ssh\/|\.gnupg|\.netrc|credentials\.json|token\.json)/i),rule(`DE002`,`API key extraction`,`Patterns matching API key theft`,`critical`,`data-exfiltration`,/(?:API[_-]?KEY|SECRET[_-]?KEY|ACCESS[_-]?TOKEN|PRIVATE[_-]?KEY)\s*[=:]/i),rule(`DE003`,`Data upload`,`Uploading data to external services`,`high`,`data-exfiltration`,/(?:curl|wget|fetch).*(?:POST|PUT|PATCH).*(?:pastebin|gist|transfer\.sh|requestbin|webhook)/i),rule(`DE004`,`Browser data theft`,`Accessing browser profiles or cookies`,`critical`,`data-exfiltration`,/(?:\.mozilla|\.chrome|\.config\/google-chrome|Cookies|Login\s+Data|Local\s+State)/i),rule(`DE005`,`Git credential theft`,`Accessing git credentials`,`high`,`data-exfiltration`,/(?:git\s+credential|\.git-credentials|\.gitconfig\s+credential)/i),rule(`DE006`,`Keychain access`,`Accessing system keychain`,`critical`,`data-exfiltration`,/(?:security\s+find-generic-password|security\s+find-internet-password|keyring\s+get)/i),rule(`PE001`,`Chmod dangerous`,`Setting dangerous file permissions`,`high`,`privilege-escalation`,/chmod\s+(?:777|666|a\+[rwx]|o\+[rwx])/i),rule(`PE002`,`SUID/SGID`,`Setting SUID or SGID bits`,`critical`,`privilege-escalation`,/chmod\s+[ug]\+s/i),rule(`PE003`,`Docker escape`,`Container escape patterns`,`critical`,`privilege-escalation`,/(?:--privileged|--cap-add\s+SYS_ADMIN|--pid=host|nsenter)/i),rule(`PE004`,`Kernel module`,`Loading kernel modules`,`critical`,`privilege-escalation`,/(?:insmod|modprobe|rmmod)\s+/i),rule(`FS001`,`System directory write`,`Writing to system directories`,`critical`,`filesystem`,/(?:\/etc\/|\/usr\/|\/bin\/|\/sbin\/|C:\\Windows\\|C:\\Program Files)/i),rule(`FS002`,`Hidden file creation`,`Creating hidden files`,`medium`,`filesystem`,/(?:touch|mkdir|cp|mv)\s+\.[a-zA-Z]/),rule(`FS003`,`Symlink attack`,`Creating symlinks to sensitive files`,`high`,`filesystem`,/ln\s+-s.*(?:\/etc\/passwd|\/etc\/shadow|\.ssh|\.env)/i),rule(`FS004`,`Mass file operation`,`Recursive operations on broad paths`,`medium`,`filesystem`,/(?:find|xargs|rm|chmod|chown)\s+.*(?:\/\s|\/\*|-R\s+\/)/i),rule(`NA001`,`DNS exfiltration`,`Data exfiltration via DNS`,`high`,`network`,/(?:dig|nslookup|host)\s+.*\$\{?[A-Z_]+/i),rule(`NA002`,`Reverse shell`,`Reverse shell patterns`,`critical`,`network`,/(?:bash\s+-i|\/dev\/tcp\/|mkfifo|nc\s+.*-e)/i),rule(`NA003`,`Port scanning`,`Network scanning`,`medium`,`network`,/(?:nmap|masscan|zmap)\s+/i),rule(`NA004`,`Proxy/tunnel`,`Creating network tunnels`,`high`,`network`,/(?:ssh\s+-[DRLW]|ngrok|chisel|bore)/i),rule(`OB001`,`Hex encoding`,`Hex-encoded commands`,`medium`,`obfuscation`,/\\x[0-9a-fA-F]{2}(?:\\x[0-9a-fA-F]{2}){3,}/),rule(`OB002`,`String concatenation`,`Building commands via concatenation`,`medium`,`obfuscation`,/(?:\$\{[A-Z]+\}\$\{[A-Z]+\}|['"][a-z]+['"]\.['"][a-z]+['"])/i),rule(`OB003`,`Unicode escape`,`Unicode-escaped commands`,`medium`,`obfuscation`,/\\u[0-9a-fA-F]{4}(?:\\u[0-9a-fA-F]{4}){3,}/),rule(`SC001`,`Package install`,`Installing packages at runtime`,`medium`,`supply-chain`,/(?:npm\s+install|pip\s+install|gem\s+install|cargo\s+install)\s+(?!-)/),rule(`SC002`,`Typosquatting patterns`,`Packages with suspicious names`,`low`,`supply-chain`,/(?:npm\s+install|pip\s+install)\s+(?:reqeusts|requets|reqests|lodahs|lodashe)/i),rule(`SC003`,`Postinstall script`,`npm lifecycle scripts`,`medium`,`supply-chain`,/(?:preinstall|postinstall|preuninstall|postuninstall)\s*[":]/i),rule(`SC004`,`Registry override`,`Changing package registry`,`high`,`supply-chain`,/(?:registry\s*=|--registry\s+)(?!https:\/\/registry\.npmjs\.org)/i),rule(`ID001`,`Process listing`,`Listing running processes`,`low`,`info-disclosure`,/(?:ps\s+aux|top\s+-b|tasklist)/i),rule(`ID002`,`System information`,`Gathering system information`,`low`,`info-disclosure`,/(?:uname\s+-a|systeminfo|hostnamectl)/i),rule(`ID003`,`Network enumeration`,`Listing network configuration`,`low`,`info-disclosure`,/(?:ifconfig|ip\s+addr|ipconfig|netstat\s+-[at])/i)],require$1=(0,import___vite_browser_external.createRequire)(import.meta.url),require_kind_of=__commonJSMin(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){if(e===void 0)return`undefined`;if(e===null)return`null`;var t=typeof e;if(t===`boolean`)return`boolean`;if(t===`string`)return`string`;if(t===`number`)return`number`;if(t===`symbol`)return`symbol`;if(t===`function`)return l(e)?`generatorfunction`:`function`;if(a(e))return`array`;if(f(e))return`buffer`;if(d(e))return`arguments`;if(s(e))return`date`;if(o(e))return`error`;if(c(e))return`regexp`;switch(r(e)){case`Symbol`:return`symbol`;case`Promise`:return`promise`;case`WeakMap`:return`weakmap`;case`WeakSet`:return`weakset`;case`Map`:return`map`;case`Set`:return`set`;case`Int8Array`:return`int8array`;case`Uint8Array`:return`uint8array`;case`Uint8ClampedArray`:return`uint8clampedarray`;case`Int16Array`:return`int16array`;case`Uint16Array`:return`uint16array`;case`Int32Array`:return`int32array`;case`Uint32Array`:return`uint32array`;case`Float32Array`:return`float32array`;case`Float64Array`:return`float64array`}if(u(e))return`generator`;switch(t=n.call(e),t){case`[object Object]`:return`object`;case`[object Map Iterator]`:return`mapiterator`;case`[object Set Iterator]`:return`setiterator`;case`[object String Iterator]`:return`stringiterator`;case`[object Array Iterator]`:return`arrayiterator`}return t.slice(8,-1).toLowerCase().replace(/\s/g,``)};function r(e){return typeof e.constructor==`function`?e.constructor.name:null}function a(e){return Array.isArray?Array.isArray(e):e instanceof Array}function o(e){return e instanceof Error||typeof e.message==`string`&&e.constructor&&typeof e.constructor.stackTraceLimit==`number`}function s(e){return e instanceof Date?!0:typeof e.toDateString==`function`&&typeof e.getDate==`function`&&typeof e.setDate==`function`}function c(e){return e instanceof RegExp?!0:typeof e.flags==`string`&&typeof e.ignoreCase==`boolean`&&typeof e.multiline==`boolean`&&typeof e.global==`boolean`}function l(e,t){return r(e)===`GeneratorFunction`}function u(e){return typeof e.throw==`function`&&typeof e.return==`function`&&typeof e.next==`function`}function d(e){try{if(typeof e.length==`number`&&typeof e.callee==`function`)return!0}catch(e){if(e.message.indexOf(`callee`)!==-1)return!0}return!1}function f(e){return e.constructor&&typeof e.constructor.isBuffer==`function`?e.constructor.isBuffer(e):!1}})),require_is_extendable=__commonJSMin(((e,t)=>{t.exports=function(e){return e!=null&&(typeof e==`object`||typeof e==`function`)}})),require_extend_shallow=__commonJSMin(((e,t)=>{var n=require_is_extendable();t.exports=function(e){n(e)||(e={});for(var t=arguments.length,a=1;a<t;a++){var o=arguments[a];n(o)&&r(e,o)}return e};function r(e,t){for(var n in t)a(t,n)&&(e[n]=t[n])}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}})),require_section_matter=__commonJSMin(((e,t)=>{var n=require_kind_of(),r=require_extend_shallow();t.exports=function(e,t){typeof t==`function`&&(t={parse:t});var n=o(e),u=r({},{section_delimiter:`---`,parse:l},t),d=u.section_delimiter,f=n.content.split(/\r?\n/),p=null,m=c(),h=[],g=[];function _(e){n.content=e,p=[],h=[]}function v(e){g.length&&(m.key=s(g[0],d),m.content=e,u.parse(m,p),p.push(m),m=c(),h=[],g=[])}for(var y=0;y<f.length;y++){var b=f[y],x=g.length,S=b.trim();if(a(S,d)){if(S.length===3&&y!==0){if(x===0||x===2){h.push(b);continue}g.push(S),m.data=h.join(`
92
- `),h=[];continue}p===null&&_(h.join(`
93
- `)),x===2&&v(h.join(`
94
- `)),g.push(S);continue}h.push(b)}return p===null?_(h.join(`
95
- `)):v(h.join(`
96
- `)),n.sections=p,n};function a(e,t){return!(e.slice(0,t.length)!==t||e.charAt(t.length+1)===t.slice(-1))}function o(e){if(n(e)!==`object`&&(e={content:e}),typeof e.content!=`string`&&!u(e.content))throw TypeError(`expected a buffer or string`);return e.content=e.content.toString(),e.sections=[],e}function s(e,t){return e?e.slice(t.length).trim():``}function c(){return{key:``,data:``,content:``}}function l(e){return e}function u(e){return e&&e.constructor&&typeof e.constructor.isBuffer==`function`?e.constructor.isBuffer(e):!1}})),require_common$1=__commonJSMin(((e,t)=>{function n(e){return e==null}function r(e){return typeof e==`object`&&!!e}function a(e){return Array.isArray(e)?e:n(e)?[]:[e]}function o(e,t){var n,r,a,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n<r;n+=1)a=o[n],e[a]=t[a];return e}function s(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}function c(e){return e===0&&1/e==-1/0}t.exports.isNothing=n,t.exports.isObject=r,t.exports.toArray=a,t.exports.repeat=s,t.exports.isNegativeZero=c,t.exports.extend=o})),require_exception=__commonJSMin(((e,t)=>{function n(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=(this.reason||`(unknown reason)`)+(this.mark?` `+this.mark.toString():``),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(e){var t=this.name+`: `;return t+=this.reason||`(unknown reason)`,!e&&this.mark&&(t+=` `+this.mark.toString()),t},t.exports=n})),require_mark=__commonJSMin(((e,t)=>{var n=require_common$1();function r(e,t,n,r,a){this.name=e,this.buffer=t,this.position=n,this.line=r,this.column=a}r.prototype.getSnippet=function(e,t){var r,a,o,s,c;if(!this.buffer)return null;for(e||=4,t||=75,r=``,a=this.position;a>0&&`\0\r
97
- …\u2028\u2029`.indexOf(this.buffer.charAt(a-1))===-1;)if(--a,this.position-a>t/2-1){r=` ... `,a+=5;break}for(o=``,s=this.position;s<this.buffer.length&&`\0\r
98
- …\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>t/2-1){o=` ... `,s-=5;break}return c=this.buffer.slice(a,s),n.repeat(` `,e)+r+c+o+`
99
- `+n.repeat(` `,e+this.position-a+r.length)+`^`},r.prototype.toString=function(e){var t,n=``;return this.name&&(n+=`in "`+this.name+`" `),n+=`at line `+(this.line+1)+`, column `+(this.column+1),e||(t=this.getSnippet(),t&&(n+=`:
100
- `+t)),n},t.exports=r})),require_type=__commonJSMin(((e,t)=>{var n=require_exception(),r=[`kind`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`defaultStyle`,`styleAliases`],a=[`scalar`,`sequence`,`mapping`];function o(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function s(e,t){if(t||={},Object.keys(t).forEach(function(t){if(r.indexOf(t)===-1)throw new n(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=o(t.styleAliases||null),a.indexOf(this.kind)===-1)throw new n(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}t.exports=s})),require_schema=__commonJSMin(((e,t)=>{var n=require_common$1(),r=require_exception(),a=require_type();function o(e,t,n){var r=[];return e.include.forEach(function(e){n=o(e,t,n)}),e[t].forEach(function(e){n.forEach(function(t,n){t.tag===e.tag&&t.kind===e.kind&&r.push(n)}),n.push(e)}),n.filter(function(e,t){return r.indexOf(t)===-1})}function s(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,n;function r(t){e[t.kind][t.tag]=e.fallback[t.tag]=t}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function c(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&e.loadKind!==`scalar`)throw new r(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`)}),this.compiledImplicit=o(this,`implicit`,[]),this.compiledExplicit=o(this,`explicit`,[]),this.compiledTypeMap=s(this.compiledImplicit,this.compiledExplicit)}c.DEFAULT=null,c.create=function(){var e,t;switch(arguments.length){case 1:e=c.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new r(`Wrong number of arguments for Schema.create function`)}if(e=n.toArray(e),t=n.toArray(t),!e.every(function(e){return e instanceof c}))throw new r(`Specified list of super schemas (or a single Schema object) contains a non-Schema object.`);if(!t.every(function(e){return e instanceof a}))throw new r(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);return new c({include:e,explicit:t})},t.exports=c})),require_str=__commonJSMin(((e,t)=>{t.exports=new(require_type())(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}})})),require_seq=__commonJSMin(((e,t)=>{t.exports=new(require_type())(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}})})),require_map=__commonJSMin(((e,t)=>{t.exports=new(require_type())(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}})})),require_failsafe=__commonJSMin(((e,t)=>{t.exports=new(require_schema())({explicit:[require_str(),require_seq(),require_map()]})})),require_null=__commonJSMin(((e,t)=>{var n=require_type();function r(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function a(){return null}function o(e){return e===null}t.exports=new n(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:r,construct:a,predicate:o,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`}},defaultStyle:`lowercase`})})),require_bool=__commonJSMin(((e,t)=>{var n=require_type();function r(e){if(e===null)return!1;var t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function a(e){return e===`true`||e===`True`||e===`TRUE`}function o(e){return Object.prototype.toString.call(e)===`[object Boolean]`}t.exports=new n(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:r,construct:a,predicate:o,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`})})),require_int=__commonJSMin(((e,t)=>{var n=require_common$1(),r=require_type();function a(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function o(e){return 48<=e&&e<=55}function s(e){return 48<=e&&e<=57}function c(e){if(e===null)return!1;var t=e.length,n=0,r=!1,c;if(!t)return!1;if(c=e[n],(c===`-`||c===`+`)&&(c=e[++n]),c===`0`){if(n+1===t)return!0;if(c=e[++n],c===`b`){for(n++;n<t;n++)if(c=e[n],c!==`_`){if(c!==`0`&&c!==`1`)return!1;r=!0}return r&&c!==`_`}if(c===`x`){for(n++;n<t;n++)if(c=e[n],c!==`_`){if(!a(e.charCodeAt(n)))return!1;r=!0}return r&&c!==`_`}for(;n<t;n++)if(c=e[n],c!==`_`){if(!o(e.charCodeAt(n)))return!1;r=!0}return r&&c!==`_`}if(c===`_`)return!1;for(;n<t;n++)if(c=e[n],c!==`_`){if(c===`:`)break;if(!s(e.charCodeAt(n)))return!1;r=!0}return!r||c===`_`?!1:c===`:`?/^(:[0-5]?[0-9])+$/.test(e.slice(n)):!0}function l(e){var t=e,n=1,r,a,o=[];return t.indexOf(`_`)!==-1&&(t=t.replace(/_/g,``)),r=t[0],(r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`?0:r===`0`?t[1]===`b`?n*parseInt(t.slice(2),2):t[1]===`x`?n*parseInt(t,16):n*parseInt(t,8):t.indexOf(`:`)===-1?n*parseInt(t,10):(t.split(`:`).forEach(function(e){o.unshift(parseInt(e,10))}),t=0,a=1,o.forEach(function(e){t+=e*a,a*=60}),n*t)}function u(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!n.isNegativeZero(e)}t.exports=new r(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:c,construct:l,predicate:u,represent:{binary:function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0`+e.toString(8):`-0`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}})})),require_float=__commonJSMin(((e,t)=>{var n=require_common$1(),r=require_type(),a=RegExp(`^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function o(e){return!(e===null||!a.test(e)||e[e.length-1]===`_`)}function s(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1,r,a=[];return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:t.indexOf(`:`)>=0?(t.split(`:`).forEach(function(e){a.unshift(parseFloat(e,10))}),t=0,r=1,a.forEach(function(e){t+=e*r,r*=60}),n*t):n*parseFloat(t,10)}var c=/^[-+]?[0-9]+e/;function l(e,t){var r;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(n.isNegativeZero(e))return`-0.0`;return r=e.toString(10),c.test(r)?r.replace(`e`,`.e`):r}function u(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||n.isNegativeZero(e))}t.exports=new r(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:o,construct:s,predicate:u,represent:l,defaultStyle:`lowercase`})})),require_json=__commonJSMin(((e,t)=>{t.exports=new(require_schema())({include:[require_failsafe()],implicit:[require_null(),require_bool(),require_int(),require_float()]})})),require_core=__commonJSMin(((e,t)=>{t.exports=new(require_schema())({include:[require_json()]})})),require_timestamp=__commonJSMin(((e,t)=>{var n=require_type(),r=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),a=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function o(e){return e===null?!1:r.exec(e)!==null||a.exec(e)!==null}function s(e){var t,n,o,s,c,l,u,d=0,f=null,p,m,h;if(t=r.exec(e),t===null&&(t=a.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],o=t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(n,o,s));if(c=+t[4],l=+t[5],u=+t[6],t[7]){for(d=t[7].slice(0,3);d.length<3;)d+=`0`;d=+d}return t[9]&&(p=+t[10],m=+(t[11]||0),f=(p*60+m)*6e4,t[9]===`-`&&(f=-f)),h=new Date(Date.UTC(n,o,s,c,l,u,d)),f&&h.setTime(h.getTime()-f),h}function c(e){return e.toISOString()}t.exports=new n(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:o,construct:s,instanceOf:Date,represent:c})})),require_merge=__commonJSMin(((e,t)=>{var n=require_type();function r(e){return e===`<<`||e===null}t.exports=new n(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:r})})),require_ieee754=__commonJSMin((e=>{e.read=function(e,t,n,r,a){var o,s,c=a*8-r-1,l=(1<<c)-1,u=l>>1,d=-7,f=n?a-1:0,p=n?-1:1,m=e[t+f];for(f+=p,o=m&(1<<-d)-1,m>>=-d,d+=c;d>0;o=o*256+e[t+f],f+=p,d-=8);for(s=o&(1<<-d)-1,o>>=-d,d+=r;d>0;s=s*256+e[t+f],f+=p,d-=8);if(o===0)o=1-u;else if(o===l)return s?NaN:(m?-1:1)*(1/0);else s+=2**r,o-=u;return(m?-1:1)*s*2**(o-r)},e.write=function(e,t,n,r,a,o){var s,c,l,u=o*8-a-1,d=(1<<u)-1,f=d>>1,p=a===23?2**-24-2**-77:0,m=r?0:o-1,h=r?1:-1,g=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(c=+!!isNaN(t),s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=2**-s)<1&&(s--,l*=2),s+f>=1?t+=p/l:t+=p*2**(1-f),t*l>=2&&(s++,l/=2),s+f>=d?(c=0,s=d):s+f>=1?(c=(t*l-1)*2**a,s+=f):(c=t*2**(f-1)*2**a,s=0));a>=8;e[n+m]=c&255,m+=h,c/=256,a-=8);for(s=s<<a|c,u+=a;u>0;e[n+m]=s&255,m+=h,s/=256,u-=8);e[n+m-h]|=g*128}})),require_buffer=__commonJSMin((e=>{var t=require_base64_js(),n=require_ieee754(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=c,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=o(),!c.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,`parent`,{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,`offset`,{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function s(e){if(e>a)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return f(e)}return l(e,t,n)}c.poolSize=8192;function l(e,t,n){if(typeof e==`string`)return p(e,t);if(ArrayBuffer.isView(e))return h(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return g(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return c.from(r,t,n);let a=_(e);if(a)return a;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return c.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}c.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function u(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function d(e,t,n){return u(e),e<=0||t===void 0?s(e):typeof n==`string`?s(e).fill(t,n):s(e).fill(t)}c.alloc=function(e,t,n){return d(e,t,n)};function f(e){return u(e),s(e<0?0:v(e)|0)}c.allocUnsafe=function(e){return f(e)},c.allocUnsafeSlow=function(e){return f(e)};function p(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!c.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=b(e,t)|0,r=s(n),a=r.write(e,t);return a!==n&&(r=r.slice(0,a)),r}function m(e){let t=e.length<0?0:v(e.length)|0,n=s(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function h(e){if(Z(e,Uint8Array)){let t=new Uint8Array(e);return g(t.buffer,t.byteOffset,t.byteLength)}return m(e)}function g(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function _(e){if(c.isBuffer(e)){let t=v(e.length)|0,n=s(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||ce(e.length)?s(0):m(e);if(e.type===`Buffer`&&Array.isArray(e.data))return m(e.data)}function v(e){if(e>=a)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+a.toString(16)+` bytes`);return e|0}function y(e){return+e!=e&&(e=0),c.alloc(+e)}c.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==c.prototype},c.compare=function(e,t){if(Z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let a=0,o=Math.min(n,r);a<o;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:+(r<n)},c.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return c.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=c.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){let t=e[n];if(Z(t,Uint8Array))a+t.length>r.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,a)):Uint8Array.prototype.set.call(r,t,a);else if(c.isBuffer(t))t.copy(r,a);else throw TypeError(`"list" argument must be an Array of Buffers`);a+=t.length}return r};function b(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let a=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return Y(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return X(e).length;default:if(a)return r?-1:Y(e).length;t=(``+t).toLowerCase(),a=!0}}c.byteLength=b;function x(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return te(this,t,n);case`utf8`:case`utf-8`:return j(this,t,n);case`ascii`:return P(this,t,n);case`latin1`:case`binary`:return ee(this,t,n);case`base64`:return A(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return F(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}c.prototype._isBuffer=!0;function S(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}c.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)S(this,t,t+1);return this},c.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},c.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},c.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?j(this,0,e):x.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:c.compare(this,e)===0},c.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(c.prototype[r]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,a){if(Z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),a===void 0&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw RangeError(`out of range index`);if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,a>>>=0,this===e)return 0;let o=a-r,s=n-t,l=Math.min(o,s),u=this.slice(r,a),d=e.slice(t,n);for(let e=0;e<l;++e)if(u[e]!==d[e]){o=u[e],s=d[e];break}return o<s?-1:+(s<o)};function C(e,t,n,r,a){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,ce(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0)if(a)n=0;else return-1;if(typeof t==`string`&&(t=c.from(t,r)),c.isBuffer(t))return t.length===0?-1:w(e,t,n,r,a);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,a);throw TypeError(`val must be string, number or Buffer`)}function w(e,t,n,r,a){let o=1,s=e.length,c=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(e,t){return o===1?e[t]:e.readUInt16BE(t*o)}let u;if(a){let r=-1;for(u=n;u<s;u++)if(l(e,u)===l(t,r===-1?0:u-r)){if(r===-1&&(r=u),u-r+1===c)return r*o}else r!==-1&&(u-=u-r),r=-1}else for(n+c>s&&(n=s-c),u=n;u>=0;u--){let n=!0;for(let r=0;r<c;r++)if(l(e,u+r)!==l(t,r)){n=!1;break}if(n)return u}return-1}c.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},c.prototype.indexOf=function(e,t,n){return C(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return C(this,e,t,n,!1)};function T(e,t,n,r){n=Number(n)||0;let a=e.length-n;r?(r=Number(r),r>a&&(r=a)):r=a;let o=t.length;r>o/2&&(r=o/2);let s;for(s=0;s<r;++s){let r=parseInt(t.substr(s*2,2),16);if(ce(r))return s;e[n+s]=r}return s}function E(e,t,n,r){return se(Y(t,e.length-n),e,n,r)}function D(e,t,n,r){return se(ae(t),e,n,r)}function O(e,t,n,r){return se(X(t),e,n,r)}function k(e,t,n,r){return se(oe(t,e.length-n),e,n,r)}c.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let a=this.length-t;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let o=!1;for(;;)switch(r){case`hex`:return T(this,e,t,n);case`utf8`:case`utf-8`:return E(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return D(this,e,t,n);case`base64`:return O(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return k(this,e,t,n);default:if(o)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function A(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function j(e,t,n){n=Math.min(e.length,n);let r=[],a=t;for(;a<n;){let t=e[a],o=null,s=t>239?4:t>223?3:t>191?2:1;if(a+s<=n){let n,r,c,l;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[a+1],(n&192)==128&&(l=(t&31)<<6|n&63,l>127&&(o=l));break;case 3:n=e[a+1],r=e[a+2],(n&192)==128&&(r&192)==128&&(l=(t&15)<<12|(n&63)<<6|r&63,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[a+1],r=e[a+2],c=e[a+3],(n&192)==128&&(r&192)==128&&(c&192)==128&&(l=(t&15)<<18|(n&63)<<12|(r&63)<<6|c&63,l>65535&&l<1114112&&(o=l))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),a+=s}return N(r)}var M=4096;function N(e){let t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=M));return n}function P(e,t,n){let r=``;n=Math.min(e.length,n);for(let a=t;a<n;++a)r+=String.fromCharCode(e[a]&127);return r}function ee(e,t,n){let r=``;n=Math.min(e.length,n);for(let a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function te(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let a=``;for(let r=t;r<n;++r)a+=le[e[r]];return a}function F(e,t,n){let r=e.slice(t,n),a=``;for(let e=0;e<r.length-1;e+=2)a+=String.fromCharCode(r[e]+r[e+1]*256);return a}c.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r};function I(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],a=1,o=0;for(;++o<t&&(a*=256);)r+=this[e+o]*a;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],a=1;for(;t>0&&(a*=256);)r+=this[e+--t]*a;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q(function(e){e>>>=0,q(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,a=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(a)<<BigInt(32))}),c.prototype.readBigUInt64BE=Q(function(e){e>>>=0,q(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],a=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(a)}),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],a=1,o=0;for(;++o<t&&(a*=256);)r+=this[e+o]*a;return a*=128,r>=a&&(r-=2**(8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,a=1,o=this[e+--r];for(;r>0&&(a*=256);)o+=this[e+--r]*a;return a*=128,o>=a&&(o-=2**(8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q(function(e){e>>>=0,q(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),c.prototype.readBigInt64BE=Q(function(e){e>>>=0,q(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&J(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!1,52,8)};function L(e,t,n,r,a,o){if(!c.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>a||t<o)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;L(this,e,t,n,r,0)}let a=1,o=0;for(this[t]=e&255;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;L(this,e,t,n,r,0)}let a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=e&255,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function R(e,t,n,r,a){ne(t,r,a,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function z(e,t,n,r,a){ne(t,r,a,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}c.prototype.writeBigUInt64LE=Q(function(e,t=0){return R(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),c.prototype.writeBigUInt64BE=Q(function(e,t=0){return z(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);L(this,e,t,n,r-1,-r)}let a=0,o=1,s=0;for(this[t]=e&255;++a<n&&(o*=256);)e<0&&s===0&&this[t+a-1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);L(this,e,t,n,r-1,-r)}let a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},c.prototype.writeBigInt64LE=Q(function(e,t=0){return R(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),c.prototype.writeBigInt64BE=Q(function(e,t=0){return z(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function B(e,t,n,r,a,o){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function V(e,t,r,a,o){return t=+t,r>>>=0,o||B(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,a,23,4),r+4}c.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)};function H(e,t,r,a,o){return t=+t,r>>>=0,o||B(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,a,52,8),r+8}c.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let a=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),a},c.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!c.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let a;if(typeof e==`number`)for(a=t;a<n;++a)this[a]=e;else{let o=c.isBuffer(e)?e:c.from(e,r),s=o.length;if(s===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var U={};function W(e,t,n){U[e]=class extends n{constructor(){super(),Object.defineProperty(this,`message`,{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,`code`,{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}W(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),W(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),W(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,a=n;return Number.isInteger(n)&&Math.abs(n)>2**32?a=G(String(n)):typeof n==`bigint`&&(a=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(a=G(a)),a+=`n`),r+=` It must be ${t}. Received ${a}`,r},RangeError);function G(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function K(e,t,n){q(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&J(t,e.length-(n+1))}function ne(e,t,n,r,a,o){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,a;throw a=o>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(o+1)*8}${r}`:`>= -(2${r} ** ${(o+1)*8-1}${r}) and < 2 ** ${(o+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new U.ERR_OUT_OF_RANGE(`value`,a,e)}K(r,a,o)}function q(e,t){if(typeof e!=`number`)throw new U.ERR_INVALID_ARG_TYPE(t,`number`,e)}function J(e,t,n){throw Math.floor(e)===e?t<0?new U.ERR_BUFFER_OUT_OF_BOUNDS:new U.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(q(e,n),new U.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}var re=/[^+/0-9A-Za-z-_]/g;function ie(e){if(e=e.split(`=`)[0],e=e.trim().replace(re,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function Y(e,t){t||=1/0;let n,r=e.length,a=null,o=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=(a-55296<<10|n-56320)+65536}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if(--t<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return o}function ae(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function oe(e,t){let n,r,a,o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,a=n%256,o.push(a),o.push(r);return o}function X(e){return t.toByteArray(ie(e))}function se(e,t,n,r){let a;for(a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function Z(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function ce(e){return e!==e}var le=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let a=0;a<16;++a)t[r+a]=e[n]+e[a]}return t})();function Q(e){return typeof BigInt>`u`?ue:e}function ue(){throw Error(`BigInt not supported`)}})),require_binary=__commonJSMin(((e,t)=>{var n;try{n=require_buffer().Buffer}catch{}var r=require_type(),a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
101
- \r`;function o(e){if(e===null)return!1;var t,n,r=0,o=e.length,s=a;for(n=0;n<o;n++)if(t=s.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}function s(e){var t,r,o=e.replace(/[\r\n=]/g,``),s=o.length,c=a,l=0,u=[];for(t=0;t<s;t++)t%4==0&&t&&(u.push(l>>16&255),u.push(l>>8&255),u.push(l&255)),l=l<<6|c.indexOf(o.charAt(t));return r=s%4*6,r===0?(u.push(l>>16&255),u.push(l>>8&255),u.push(l&255)):r===18?(u.push(l>>10&255),u.push(l>>2&255)):r===12&&u.push(l>>4&255),n?n.from?n.from(u):new n(u):u}function c(e){var t=``,n=0,r,o,s=e.length,c=a;for(r=0;r<s;r++)r%3==0&&r&&(t+=c[n>>18&63],t+=c[n>>12&63],t+=c[n>>6&63],t+=c[n&63]),n=(n<<8)+e[r];return o=s%3,o===0?(t+=c[n>>18&63],t+=c[n>>12&63],t+=c[n>>6&63],t+=c[n&63]):o===2?(t+=c[n>>10&63],t+=c[n>>4&63],t+=c[n<<2&63],t+=c[64]):o===1&&(t+=c[n>>2&63],t+=c[n<<4&63],t+=c[64],t+=c[64]),t}function l(e){return n&&n.isBuffer(e)}t.exports=new r(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:o,construct:s,predicate:l,represent:c})})),require_omap=__commonJSMin(((e,t)=>{var n=require_type(),r=Object.prototype.hasOwnProperty,a=Object.prototype.toString;function o(e){if(e===null)return!0;var t=[],n,o,s,c,l,u=e;for(n=0,o=u.length;n<o;n+=1){if(s=u[n],l=!1,a.call(s)!==`[object Object]`)return!1;for(c in s)if(r.call(s,c))if(!l)l=!0;else return!1;if(!l)return!1;if(t.indexOf(c)===-1)t.push(c);else return!1}return!0}function s(e){return e===null?[]:e}t.exports=new n(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:o,construct:s})})),require_pairs=__commonJSMin(((e,t)=>{var n=require_type(),r=Object.prototype.toString;function a(e){if(e===null)return!0;var t,n,a,o,s,c=e;for(s=Array(c.length),t=0,n=c.length;t<n;t+=1){if(a=c[t],r.call(a)!==`[object Object]`||(o=Object.keys(a),o.length!==1))return!1;s[t]=[o[0],a[o[0]]]}return!0}function o(e){if(e===null)return[];var t,n,r,a,o,s=e;for(o=Array(s.length),t=0,n=s.length;t<n;t+=1)r=s[t],a=Object.keys(r),o[t]=[a[0],r[a[0]]];return o}t.exports=new n(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:a,construct:o})})),require_set=__commonJSMin(((e,t)=>{var n=require_type(),r=Object.prototype.hasOwnProperty;function a(e){if(e===null)return!0;var t,n=e;for(t in n)if(r.call(n,t)&&n[t]!==null)return!1;return!0}function o(e){return e===null?{}:e}t.exports=new n(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:a,construct:o})})),require_default_safe=__commonJSMin(((e,t)=>{t.exports=new(require_schema())({include:[require_core()],implicit:[require_timestamp(),require_merge()],explicit:[require_binary(),require_omap(),require_pairs(),require_set()]})})),require_undefined=__commonJSMin(((e,t)=>{var n=require_type();function r(){return!0}function a(){}function o(){return``}function s(e){return e===void 0}t.exports=new n(`tag:yaml.org,2002:js/undefined`,{kind:`scalar`,resolve:r,construct:a,predicate:s,represent:o})})),require_regexp=__commonJSMin(((e,t)=>{var n=require_type();function r(e){if(e===null||e.length===0)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r=``;return!(t[0]===`/`&&(n&&(r=n[1]),r.length>3||t[t.length-r.length-1]!==`/`))}function a(e){var t=e,n=/\/([gim]*)$/.exec(e),r=``;return t[0]===`/`&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)}function o(e){var t=`/`+e.source+`/`;return e.global&&(t+=`g`),e.multiline&&(t+=`m`),e.ignoreCase&&(t+=`i`),t}function s(e){return Object.prototype.toString.call(e)===`[object RegExp]`}t.exports=new n(`tag:yaml.org,2002:js/regexp`,{kind:`scalar`,resolve:r,construct:a,predicate:s,represent:o})})),require_esprima=__commonJSMin(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.esprima=r():n.esprima=r()})(e,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}return n.m=e,n.c=t,n.p=``,n(0)})([function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(1),a=n(3),o=n(8),s=n(15);function c(e,t,n){var s=null,c=function(e,t){n&&n(e,t),s&&s.visit(e,t)},l=typeof n==`function`?c:null,u=!1;if(t){u=typeof t.comment==`boolean`&&t.comment;var d=typeof t.attachComment==`boolean`&&t.attachComment;(u||d)&&(s=new r.CommentHandler,s.attach=d,t.comment=!0,l=c)}var f=!1;t&&typeof t.sourceType==`string`&&(f=t.sourceType===`module`);var p=t&&typeof t.jsx==`boolean`&&t.jsx?new a.JSXParser(e,t,l):new o.Parser(e,t,l),m=f?p.parseModule():p.parseScript();return u&&s&&(m.comments=s.comments),p.config.tokens&&(m.tokens=p.tokens),p.config.tolerant&&(m.errors=p.errorHandler.errors),m}t.parse=c;function l(e,t,n){var r=t||{};return r.sourceType=`module`,c(e,r,n)}t.parseModule=l;function u(e,t,n){var r=t||{};return r.sourceType=`script`,c(e,r,n)}t.parseScript=u;function d(e,t,n){var r=new s.Tokenizer(e,t),a=[];try{for(;;){var o=r.getNextToken();if(!o)break;n&&(o=n(o)),a.push(o)}}catch(e){r.errorHandler.tolerate(e)}return r.errorHandler.tolerant&&(a.errors=r.errors()),a}t.tokenize=d,t.Syntax=n(2).Syntax,t.version=`4.0.1`},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(2);t.CommentHandler=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===r.Syntax.BlockStatement&&e.body.length===0){for(var n=[],a=this.leading.length-1;a>=0;--a){var o=this.leading[a];t.end.offset>=o.start&&(n.unshift(o.comment),this.leading.splice(a,1),this.trailing.splice(a,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var r=this.trailing[n];r.start>=e.end.offset&&t.unshift(r.comment)}return this.trailing.length=0,t}var a=this.stack[this.stack.length-1];if(a&&a.node.trailingComments){var o=a.node.trailingComments[0];o&&o.range[0]>=e.end.offset&&(t=a.node.trailingComments,delete a.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t=[],n;this.stack.length>0;){var r=this.stack[this.stack.length-1];if(r&&r.start>=e.start.offset)n=r.node,this.stack.pop();else break}if(n){for(var a=(n.leadingComments?n.leadingComments.length:0)-1;a>=0;--a){var o=n.leadingComments[a];o.range[1]<=e.start.offset&&(t.unshift(o),n.leadingComments.splice(a,1))}return n.leadingComments&&n.leadingComments.length===0&&delete n.leadingComments,t}for(var a=this.leading.length-1;a>=0;--a){var r=this.leading[a];r.start<=e.start.offset&&(t.unshift(r.comment),this.leading.splice(a,1))}return t},e.prototype.visitNode=function(e,t){if(!(e.type===r.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),a=this.findLeadingComments(t);a.length>0&&(e.leadingComments=a),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n=e.type[0]===`L`?`Line`:`Block`,r={type:n,value:e.value};if(e.range&&(r.range=e.range),e.loc&&(r.loc=e.loc),this.comments.push(r),this.attach){var a={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(a.comment.loc=e.loc),e.type=n,this.leading.push(a),this.trailing.push(a)}},e.prototype.visit=function(e,t){e.type===`LineComment`||e.type===`BlockComment`?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.Syntax={AssignmentExpression:`AssignmentExpression`,AssignmentPattern:`AssignmentPattern`,ArrayExpression:`ArrayExpression`,ArrayPattern:`ArrayPattern`,ArrowFunctionExpression:`ArrowFunctionExpression`,AwaitExpression:`AwaitExpression`,BlockStatement:`BlockStatement`,BinaryExpression:`BinaryExpression`,BreakStatement:`BreakStatement`,CallExpression:`CallExpression`,CatchClause:`CatchClause`,ClassBody:`ClassBody`,ClassDeclaration:`ClassDeclaration`,ClassExpression:`ClassExpression`,ConditionalExpression:`ConditionalExpression`,ContinueStatement:`ContinueStatement`,DoWhileStatement:`DoWhileStatement`,DebuggerStatement:`DebuggerStatement`,EmptyStatement:`EmptyStatement`,ExportAllDeclaration:`ExportAllDeclaration`,ExportDefaultDeclaration:`ExportDefaultDeclaration`,ExportNamedDeclaration:`ExportNamedDeclaration`,ExportSpecifier:`ExportSpecifier`,ExpressionStatement:`ExpressionStatement`,ForStatement:`ForStatement`,ForOfStatement:`ForOfStatement`,ForInStatement:`ForInStatement`,FunctionDeclaration:`FunctionDeclaration`,FunctionExpression:`FunctionExpression`,Identifier:`Identifier`,IfStatement:`IfStatement`,ImportDeclaration:`ImportDeclaration`,ImportDefaultSpecifier:`ImportDefaultSpecifier`,ImportNamespaceSpecifier:`ImportNamespaceSpecifier`,ImportSpecifier:`ImportSpecifier`,Literal:`Literal`,LabeledStatement:`LabeledStatement`,LogicalExpression:`LogicalExpression`,MemberExpression:`MemberExpression`,MetaProperty:`MetaProperty`,MethodDefinition:`MethodDefinition`,NewExpression:`NewExpression`,ObjectExpression:`ObjectExpression`,ObjectPattern:`ObjectPattern`,Program:`Program`,Property:`Property`,RestElement:`RestElement`,ReturnStatement:`ReturnStatement`,SequenceExpression:`SequenceExpression`,SpreadElement:`SpreadElement`,Super:`Super`,SwitchCase:`SwitchCase`,SwitchStatement:`SwitchStatement`,TaggedTemplateExpression:`TaggedTemplateExpression`,TemplateElement:`TemplateElement`,TemplateLiteral:`TemplateLiteral`,ThisExpression:`ThisExpression`,ThrowStatement:`ThrowStatement`,TryStatement:`TryStatement`,UnaryExpression:`UnaryExpression`,UpdateExpression:`UpdateExpression`,VariableDeclaration:`VariableDeclaration`,VariableDeclarator:`VariableDeclarator`,WhileStatement:`WhileStatement`,WithStatement:`WithStatement`,YieldExpression:`YieldExpression`}},function(e,t,n){var r=this&&this.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(t,`__esModule`,{value:!0});var a=n(4),o=n(5),s=n(6),c=n(7),l=n(8),u=n(13),d=n(14);u.TokenName[100]=`JSXIdentifier`,u.TokenName[101]=`JSXText`;function f(e){var t;switch(e.type){case s.JSXSyntax.JSXIdentifier:t=e.name;break;case s.JSXSyntax.JSXNamespacedName:var n=e;t=f(n.namespace)+`:`+f(n.name);break;case s.JSXSyntax.JSXMemberExpression:var r=e;t=f(r.object)+`.`+f(r.property);break;default:break}return t}t.JSXParser=function(e){r(t,e);function t(t,n,r){return e.call(this,t,n,r)||this}return t.prototype.parsePrimaryExpression=function(){return this.match(`<`)?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX(`}`),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t=`&`,n=!0,r=!1,o=!1,s=!1;!this.scanner.eof()&&n&&!r;){var c=this.scanner.source[this.scanner.index];if(c===e)break;if(r=c===`;`,t+=c,++this.scanner.index,!r)switch(t.length){case 2:o=c===`#`;break;case 3:o&&(s=c===`x`,n=s||a.Character.isDecimalDigit(c.charCodeAt(0)),o&&=!s);break;default:n&&=!(o&&!a.Character.isDecimalDigit(c.charCodeAt(0))),n&&=!(s&&!a.Character.isHexDigit(c.charCodeAt(0)));break}}if(n&&r&&t.length>2){var l=t.substr(1,t.length-2);o&&l.length>1?t=String.fromCharCode(parseInt(l.substr(1),10)):s&&l.length>2?t=String.fromCharCode(parseInt(`0`+l.substr(1),16)):!o&&!s&&d.XHTMLEntities[l]&&(t=d.XHTMLEntities[l])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(e===60||e===62||e===47||e===58||e===61||e===123||e===125){var t=this.scanner.source[this.scanner.index++];return{type:7,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(e===34||e===39){for(var n=this.scanner.index,r=this.scanner.source[this.scanner.index++],o=``;!this.scanner.eof();){var s=this.scanner.source[this.scanner.index++];if(s===r)break;s===`&`?o+=this.scanXHTMLEntity(r):o+=s}return{type:8,value:o,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(e===46){var c=this.scanner.source.charCodeAt(this.scanner.index+1),l=this.scanner.source.charCodeAt(this.scanner.index+2),t=c===46&&l===46?`...`:`.`,n=this.scanner.index;return this.scanner.index+=t.length,{type:7,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(e===96)return{type:10,value:``,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(a.Character.isIdentifierStart(e)&&e!==92){var n=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var s=this.scanner.source.charCodeAt(this.scanner.index);if(a.Character.isIdentifierPart(s)&&s!==92)++this.scanner.index;else if(s===45)++this.scanner.index;else break}return{type:100,value:this.scanner.source.slice(n,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t=``;!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if(n===`{`||n===`<`)break;++this.scanner.index,t+=n,a.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,n===`\r`&&this.scanner.source[this.scanner.index]===`
102
- `&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var r={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(r)),r},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();(t.type!==7||t.value!==e)&&this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return t.type===7&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return t.type!==100&&this.throwUnexpectedToken(t),this.finalize(e,new o.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(`:`)){var n=t;this.expectJSX(`:`);var r=this.parseJSXIdentifier();t=this.finalize(e,new o.JSXNamespacedName(n,r))}else if(this.matchJSX(`.`))for(;this.matchJSX(`.`);){var a=t;this.expectJSX(`.`);var s=this.parseJSXIdentifier();t=this.finalize(e,new o.JSXMemberExpression(a,s))}return t},t.prototype.parseJSXAttributeName=function(){var e=this.createJSXNode(),t,n=this.parseJSXIdentifier();if(this.matchJSX(`:`)){var r=n;this.expectJSX(`:`);var a=this.parseJSXIdentifier();t=this.finalize(e,new o.JSXNamespacedName(r,a))}else t=n;return t},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();t.type!==8&&this.throwUnexpectedToken(t);var n=this.getTokenRaw(t);return this.finalize(e,new c.Literal(t.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX(`{`),this.finishJSX(),this.match(`}`)&&this.tolerateError(`JSX attributes must only be assigned a non-empty expression`);var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new o.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX(`{`)?this.parseJSXExpressionAttribute():this.matchJSX(`<`)?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),n=null;return this.matchJSX(`=`)&&(this.expectJSX(`=`),n=this.parseJSXAttributeValue()),this.finalize(e,new o.JSXAttribute(t,n))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX(`{`),this.expectJSX(`...`),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new o.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX(`/`)&&!this.matchJSX(`>`);){var t=this.matchJSX(`{`)?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX(`<`);var t=this.parseJSXElementName(),n=this.parseJSXAttributes(),r=this.matchJSX(`/`);return r&&this.expectJSX(`/`),this.expectJSX(`>`),this.finalize(e,new o.JSXOpeningElement(t,r,n))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX(`<`),this.matchJSX(`/`)){this.expectJSX(`/`);var t=this.parseJSXElementName();return this.expectJSX(`>`),this.finalize(e,new o.JSXClosingElement(t))}var n=this.parseJSXElementName(),r=this.parseJSXAttributes(),a=this.matchJSX(`/`);return a&&this.expectJSX(`/`),this.expectJSX(`>`),this.finalize(e,new o.JSXOpeningElement(n,a,r))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new o.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e=this.createJSXNode();this.expectJSX(`{`);var t;return this.matchJSX(`}`)?(t=this.parseJSXEmptyExpression(),this.expectJSX(`}`)):(this.finishJSX(),t=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(e,new o.JSXExpressionContainer(t))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),n=this.nextJSXText();if(n.start<n.end){var r=this.getTokenRaw(n),a=this.finalize(t,new o.JSXText(n.value,r));e.push(a)}if(this.scanner.source[this.scanner.index]===`{`){var s=this.parseJSXExpressionContainer();e.push(s)}else break}return e},t.prototype.parseComplexJSXElement=function(e){for(var t=[];!this.scanner.eof();){e.children=e.children.concat(this.parseJSXChildren());var n=this.createJSXChildNode(),r=this.parseJSXBoundaryElement();if(r.type===s.JSXSyntax.JSXOpeningElement){var a=r;if(a.selfClosing){var c=this.finalize(n,new o.JSXElement(a,[],null));e.children.push(c)}else t.push(e),e={node:n,opening:a,closing:null,children:[]}}if(r.type===s.JSXSyntax.JSXClosingElement){e.closing=r;var l=f(e.opening.name);if(l!==f(e.closing.name)&&this.tolerateError(`Expected corresponding JSX closing tag for %0`,l),t.length>0){var c=this.finalize(e.node,new o.JSXElement(e.opening,e.children,e.closing));e=t[t.length-1],e.children.push(c),t.pop()}else break}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),n=[],r=null;if(!t.selfClosing){var a=this.parseComplexJSXElement({node:e,opening:t,closing:r,children:n});n=a.children,r=a.closing}return this.finalize(e,new o.JSXElement(t,n,r))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match(`<`)},t}(l.Parser)},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0});var n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return e===10||e===13||e===8232||e===8233},isIdentifierStart:function(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e===92||e>=128&&n.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===92||e>=128&&n.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(6);t.JSXClosingElement=function(){function e(e){this.type=r.JSXSyntax.JSXClosingElement,this.name=e}return e}(),t.JSXElement=function(){function e(e,t,n){this.type=r.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=n}return e}(),t.JSXEmptyExpression=function(){function e(){this.type=r.JSXSyntax.JSXEmptyExpression}return e}(),t.JSXExpressionContainer=function(){function e(e){this.type=r.JSXSyntax.JSXExpressionContainer,this.expression=e}return e}(),t.JSXIdentifier=function(){function e(e){this.type=r.JSXSyntax.JSXIdentifier,this.name=e}return e}(),t.JSXMemberExpression=function(){function e(e,t){this.type=r.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t}return e}(),t.JSXAttribute=function(){function e(e,t){this.type=r.JSXSyntax.JSXAttribute,this.name=e,this.value=t}return e}(),t.JSXNamespacedName=function(){function e(e,t){this.type=r.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t}return e}(),t.JSXOpeningElement=function(){function e(e,t,n){this.type=r.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=n}return e}(),t.JSXSpreadAttribute=function(){function e(e){this.type=r.JSXSyntax.JSXSpreadAttribute,this.argument=e}return e}(),t.JSXText=function(){function e(e,t){this.type=r.JSXSyntax.JSXText,this.value=e,this.raw=t}return e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.JSXSyntax={JSXAttribute:`JSXAttribute`,JSXClosingElement:`JSXClosingElement`,JSXElement:`JSXElement`,JSXEmptyExpression:`JSXEmptyExpression`,JSXExpressionContainer:`JSXExpressionContainer`,JSXIdentifier:`JSXIdentifier`,JSXMemberExpression:`JSXMemberExpression`,JSXNamespacedName:`JSXNamespacedName`,JSXOpeningElement:`JSXOpeningElement`,JSXSpreadAttribute:`JSXSpreadAttribute`,JSXText:`JSXText`}},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(2);t.ArrayExpression=function(){function e(e){this.type=r.Syntax.ArrayExpression,this.elements=e}return e}(),t.ArrayPattern=function(){function e(e){this.type=r.Syntax.ArrayPattern,this.elements=e}return e}(),t.ArrowFunctionExpression=function(){function e(e,t,n){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!1}return e}(),t.AssignmentExpression=function(){function e(e,t,n){this.type=r.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=n}return e}(),t.AssignmentPattern=function(){function e(e,t){this.type=r.Syntax.AssignmentPattern,this.left=e,this.right=t}return e}(),t.AsyncArrowFunctionExpression=function(){function e(e,t,n){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!0}return e}(),t.AsyncFunctionDeclaration=function(){function e(e,t,n){this.type=r.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0}return e}(),t.AsyncFunctionExpression=function(){function e(e,t,n){this.type=r.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0}return e}(),t.AwaitExpression=function(){function e(e){this.type=r.Syntax.AwaitExpression,this.argument=e}return e}(),t.BinaryExpression=function(){function e(e,t,n){this.type=e===`||`||e===`&&`?r.Syntax.LogicalExpression:r.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=n}return e}(),t.BlockStatement=function(){function e(e){this.type=r.Syntax.BlockStatement,this.body=e}return e}(),t.BreakStatement=function(){function e(e){this.type=r.Syntax.BreakStatement,this.label=e}return e}(),t.CallExpression=function(){function e(e,t){this.type=r.Syntax.CallExpression,this.callee=e,this.arguments=t}return e}(),t.CatchClause=function(){function e(e,t){this.type=r.Syntax.CatchClause,this.param=e,this.body=t}return e}(),t.ClassBody=function(){function e(e){this.type=r.Syntax.ClassBody,this.body=e}return e}(),t.ClassDeclaration=function(){function e(e,t,n){this.type=r.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=n}return e}(),t.ClassExpression=function(){function e(e,t,n){this.type=r.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=n}return e}(),t.ComputedMemberExpression=function(){function e(e,t){this.type=r.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t}return e}(),t.ConditionalExpression=function(){function e(e,t,n){this.type=r.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n}return e}(),t.ContinueStatement=function(){function e(e){this.type=r.Syntax.ContinueStatement,this.label=e}return e}(),t.DebuggerStatement=function(){function e(){this.type=r.Syntax.DebuggerStatement}return e}(),t.Directive=function(){function e(e,t){this.type=r.Syntax.ExpressionStatement,this.expression=e,this.directive=t}return e}(),t.DoWhileStatement=function(){function e(e,t){this.type=r.Syntax.DoWhileStatement,this.body=e,this.test=t}return e}(),t.EmptyStatement=function(){function e(){this.type=r.Syntax.EmptyStatement}return e}(),t.ExportAllDeclaration=function(){function e(e){this.type=r.Syntax.ExportAllDeclaration,this.source=e}return e}(),t.ExportDefaultDeclaration=function(){function e(e){this.type=r.Syntax.ExportDefaultDeclaration,this.declaration=e}return e}(),t.ExportNamedDeclaration=function(){function e(e,t,n){this.type=r.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n}return e}(),t.ExportSpecifier=function(){function e(e,t){this.type=r.Syntax.ExportSpecifier,this.exported=t,this.local=e}return e}(),t.ExpressionStatement=function(){function e(e){this.type=r.Syntax.ExpressionStatement,this.expression=e}return e}(),t.ForInStatement=function(){function e(e,t,n){this.type=r.Syntax.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1}return e}(),t.ForOfStatement=function(){function e(e,t,n){this.type=r.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=n}return e}(),t.ForStatement=function(){function e(e,t,n,a){this.type=r.Syntax.ForStatement,this.init=e,this.test=t,this.update=n,this.body=a}return e}(),t.FunctionDeclaration=function(){function e(e,t,n,a){this.type=r.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=a,this.expression=!1,this.async=!1}return e}(),t.FunctionExpression=function(){function e(e,t,n,a){this.type=r.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=a,this.expression=!1,this.async=!1}return e}(),t.Identifier=function(){function e(e){this.type=r.Syntax.Identifier,this.name=e}return e}(),t.IfStatement=function(){function e(e,t,n){this.type=r.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=n}return e}(),t.ImportDeclaration=function(){function e(e,t){this.type=r.Syntax.ImportDeclaration,this.specifiers=e,this.source=t}return e}(),t.ImportDefaultSpecifier=function(){function e(e){this.type=r.Syntax.ImportDefaultSpecifier,this.local=e}return e}(),t.ImportNamespaceSpecifier=function(){function e(e){this.type=r.Syntax.ImportNamespaceSpecifier,this.local=e}return e}(),t.ImportSpecifier=function(){function e(e,t){this.type=r.Syntax.ImportSpecifier,this.local=e,this.imported=t}return e}(),t.LabeledStatement=function(){function e(e,t){this.type=r.Syntax.LabeledStatement,this.label=e,this.body=t}return e}(),t.Literal=function(){function e(e,t){this.type=r.Syntax.Literal,this.value=e,this.raw=t}return e}(),t.MetaProperty=function(){function e(e,t){this.type=r.Syntax.MetaProperty,this.meta=e,this.property=t}return e}(),t.MethodDefinition=function(){function e(e,t,n,a,o){this.type=r.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=n,this.kind=a,this.static=o}return e}(),t.Module=function(){function e(e){this.type=r.Syntax.Program,this.body=e,this.sourceType=`module`}return e}(),t.NewExpression=function(){function e(e,t){this.type=r.Syntax.NewExpression,this.callee=e,this.arguments=t}return e}(),t.ObjectExpression=function(){function e(e){this.type=r.Syntax.ObjectExpression,this.properties=e}return e}(),t.ObjectPattern=function(){function e(e){this.type=r.Syntax.ObjectPattern,this.properties=e}return e}(),t.Property=function(){function e(e,t,n,a,o,s){this.type=r.Syntax.Property,this.key=t,this.computed=n,this.value=a,this.kind=e,this.method=o,this.shorthand=s}return e}(),t.RegexLiteral=function(){function e(e,t,n,a){this.type=r.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:n,flags:a}}return e}(),t.RestElement=function(){function e(e){this.type=r.Syntax.RestElement,this.argument=e}return e}(),t.ReturnStatement=function(){function e(e){this.type=r.Syntax.ReturnStatement,this.argument=e}return e}(),t.Script=function(){function e(e){this.type=r.Syntax.Program,this.body=e,this.sourceType=`script`}return e}(),t.SequenceExpression=function(){function e(e){this.type=r.Syntax.SequenceExpression,this.expressions=e}return e}(),t.SpreadElement=function(){function e(e){this.type=r.Syntax.SpreadElement,this.argument=e}return e}(),t.StaticMemberExpression=function(){function e(e,t){this.type=r.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t}return e}(),t.Super=function(){function e(){this.type=r.Syntax.Super}return e}(),t.SwitchCase=function(){function e(e,t){this.type=r.Syntax.SwitchCase,this.test=e,this.consequent=t}return e}(),t.SwitchStatement=function(){function e(e,t){this.type=r.Syntax.SwitchStatement,this.discriminant=e,this.cases=t}return e}(),t.TaggedTemplateExpression=function(){function e(e,t){this.type=r.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t}return e}(),t.TemplateElement=function(){function e(e,t){this.type=r.Syntax.TemplateElement,this.value=e,this.tail=t}return e}(),t.TemplateLiteral=function(){function e(e,t){this.type=r.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t}return e}(),t.ThisExpression=function(){function e(){this.type=r.Syntax.ThisExpression}return e}(),t.ThrowStatement=function(){function e(e){this.type=r.Syntax.ThrowStatement,this.argument=e}return e}(),t.TryStatement=function(){function e(e,t,n){this.type=r.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=n}return e}(),t.UnaryExpression=function(){function e(e,t){this.type=r.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0}return e}(),t.UpdateExpression=function(){function e(e,t,n){this.type=r.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=n}return e}(),t.VariableDeclaration=function(){function e(e,t){this.type=r.Syntax.VariableDeclaration,this.declarations=e,this.kind=t}return e}(),t.VariableDeclarator=function(){function e(e,t){this.type=r.Syntax.VariableDeclarator,this.id=e,this.init=t}return e}(),t.WhileStatement=function(){function e(e,t){this.type=r.Syntax.WhileStatement,this.test=e,this.body=t}return e}(),t.WithStatement=function(){function e(e,t){this.type=r.Syntax.WithStatement,this.object=e,this.body=t}return e}(),t.YieldExpression=function(){function e(e,t){this.type=r.Syntax.YieldExpression,this.argument=e,this.delegate=t}return e}()},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(9),a=n(10),o=n(11),s=n(7),c=n(12),l=n(2),u=n(13),d=`ArrowParameterPlaceHolder`;t.Parser=function(){function e(e,t,n){t===void 0&&(t={}),this.config={range:typeof t.range==`boolean`&&t.range,loc:typeof t.loc==`boolean`&&t.loc,source:null,tokens:typeof t.tokens==`boolean`&&t.tokens,comment:typeof t.comment==`boolean`&&t.comment,tolerant:typeof t.tolerant==`boolean`&&t.tolerant},this.config.loc&&t.source&&t.source!==null&&(this.config.source=String(t.source)),this.delegate=n,this.errorHandler=new a.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new c.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:``,lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){var t=Array.prototype.slice.call(arguments,1),n=e.replace(/%(\d)/g,function(e,n){return r.assert(n<t.length,`Message reference must be in range`),t[n]}),a=this.lastMarker.index,o=this.lastMarker.line,s=this.lastMarker.column+1;throw this.errorHandler.createError(a,o,s,n)},e.prototype.tolerateError=function(e){var t=Array.prototype.slice.call(arguments,1),n=e.replace(/%(\d)/g,function(e,n){return r.assert(n<t.length,`Message reference must be in range`),t[n]}),a=this.lastMarker.index,o=this.scanner.lineNumber,s=this.lastMarker.column+1;this.errorHandler.tolerateError(a,o,s,n)},e.prototype.unexpectedTokenError=function(e,t){var n=t||o.Messages.UnexpectedToken,r;if(e?(t||(n=e.type===2?o.Messages.UnexpectedEOS:e.type===3?o.Messages.UnexpectedIdentifier:e.type===6?o.Messages.UnexpectedNumber:e.type===8?o.Messages.UnexpectedString:e.type===10?o.Messages.UnexpectedTemplate:o.Messages.UnexpectedToken,e.type===4&&(this.scanner.isFutureReservedWord(e.value)?n=o.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(e.value)&&(n=o.Messages.StrictReservedWord))),r=e.value):r=`ILLEGAL`,n=n.replace(`%0`,r),e&&typeof e.lineNumber==`number`){var a=e.start,s=e.lineNumber,c=this.lastMarker.index-this.lastMarker.column,l=e.start-c+1;return this.errorHandler.createError(a,s,l,n)}else{var a=this.lastMarker.index,s=this.lastMarker.line,l=this.lastMarker.column+1;return this.errorHandler.createError(a,s,l,n)}},e.prototype.throwUnexpectedToken=function(e,t){throw this.unexpectedTokenError(e,t)},e.prototype.tolerateUnexpectedToken=function(e,t){this.errorHandler.tolerate(this.unexpectedTokenError(e,t))},e.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var e=this.scanner.scanComments();if(e.length>0&&this.delegate)for(var t=0;t<e.length;++t){var n=e[t],r=void 0;r={type:n.multiLine?`BlockComment`:`LineComment`,value:this.scanner.source.slice(n.slice[0],n.slice[1])},this.config.range&&(r.range=n.range),this.config.loc&&(r.loc=n.loc);var a={start:{line:n.loc.start.line,column:n.loc.start.column,offset:n.range[0]},end:{line:n.loc.end.line,column:n.loc.end.column,offset:n.range[1]}};this.delegate(r,a)}}},e.prototype.getTokenRaw=function(e){return this.scanner.source.slice(e.start,e.end)},e.prototype.convertToken=function(e){var t={type:u.TokenName[e.type],value:this.getTokenRaw(e)};return this.config.range&&(t.range=[e.start,e.end]),this.config.loc&&(t.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),e.type===9&&(t.regex={pattern:e.pattern,flags:e.flags}),t},e.prototype.nextToken=function(){var e=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var t=this.scanner.lex();return this.hasLineTerminator=e.lineNumber!==t.lineNumber,t&&this.context.strict&&t.type===3&&this.scanner.isStrictModeReservedWord(t.value)&&(t.type=4),this.lookahead=t,this.config.tokens&&t.type!==2&&this.tokens.push(this.convertToken(t)),e},e.prototype.nextRegexToken=function(){this.collectComments();var e=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(e))),this.lookahead=e,this.nextToken(),e},e.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},e.prototype.startNode=function(e,t){t===void 0&&(t=0);var n=e.start-e.lineStart,r=e.lineNumber;return n<0&&(n+=t,r--),{index:e.start,line:r,column:n}},e.prototype.finalize=function(e,t){if(this.config.range&&(t.range=[e.index,this.lastMarker.index]),this.config.loc&&(t.loc={start:{line:e.line,column:e.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(t.loc.source=this.config.source)),this.delegate){var n={start:{line:e.line,column:e.column,offset:e.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(t,n)}return t},e.prototype.expect=function(e){var t=this.nextToken();(t.type!==7||t.value!==e)&&this.throwUnexpectedToken(t)},e.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var e=this.lookahead;e.type===7&&e.value===`,`?this.nextToken():e.type===7&&e.value===`;`?(this.nextToken(),this.tolerateUnexpectedToken(e)):this.tolerateUnexpectedToken(e,o.Messages.UnexpectedToken)}else this.expect(`,`)},e.prototype.expectKeyword=function(e){var t=this.nextToken();(t.type!==4||t.value!==e)&&this.throwUnexpectedToken(t)},e.prototype.match=function(e){return this.lookahead.type===7&&this.lookahead.value===e},e.prototype.matchKeyword=function(e){return this.lookahead.type===4&&this.lookahead.value===e},e.prototype.matchContextualKeyword=function(e){return this.lookahead.type===3&&this.lookahead.value===e},e.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var e=this.lookahead.value;return e===`=`||e===`*=`||e===`**=`||e===`/=`||e===`%=`||e===`+=`||e===`-=`||e===`<<=`||e===`>>=`||e===`>>>=`||e===`&=`||e===`^=`||e===`|=`},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var a=e.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=r,a},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var a=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=r||this.context.firstCoverInitializedNameError,a},e.prototype.consumeSemicolon=function(){this.match(`;`)?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match(`}`)&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e=this.createNode(),t,n,r;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value===`await`&&this.tolerateUnexpectedToken(this.lookahead),t=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(e,new s.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,o.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),r=this.getTokenRaw(n),t=this.finalize(e,new s.Literal(n.value,r));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),r=this.getTokenRaw(n),t=this.finalize(e,new s.Literal(n.value===`true`,r));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),r=this.getTokenRaw(n),t=this.finalize(e,new s.Literal(null,r));break;case 10:t=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case`(`:this.context.isBindingElement=!1,t=this.inheritCoverGrammar(this.parseGroupExpression);break;case`[`:t=this.inheritCoverGrammar(this.parseArrayInitializer);break;case`{`:t=this.inheritCoverGrammar(this.parseObjectInitializer);break;case`/`:case`/=`:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,n=this.nextRegexToken(),r=this.getTokenRaw(n),t=this.finalize(e,new s.RegexLiteral(n.regex,r,n.pattern,n.flags));break;default:t=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword(`yield`)?t=this.parseIdentifierName():!this.context.strict&&this.matchKeyword(`let`)?t=this.finalize(e,new s.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword(`function`)?t=this.parseFunctionExpression():this.matchKeyword(`this`)?(this.nextToken(),t=this.finalize(e,new s.ThisExpression)):t=this.matchKeyword(`class`)?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:t=this.throwUnexpectedToken(this.nextToken())}return t},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect(`...`);var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new s.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect(`[`);!this.match(`]`);)if(this.match(`,`))this.nextToken(),t.push(null);else if(this.match(`...`)){var n=this.parseSpreadElement();this.match(`]`)||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(`,`)),t.push(n)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match(`]`)||this.expect(`,`);return this.expect(`]`),this.finalize(e,new s.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var r=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=n,r},e.prototype.parsePropertyMethodFunction=function(){var e=!1,t=this.createNode(),n=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters(),a=this.parsePropertyMethod(r);return this.context.allowYield=n,this.finalize(t,new s.FunctionExpression(null,r.params,a,e))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var r=this.parseFormalParameters(),a=this.parsePropertyMethod(r);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new s.AsyncFunctionExpression(null,r.params,a))},e.prototype.parseObjectPropertyKey=function(){var e=this.createNode(),t=this.nextToken(),n;switch(t.type){case 8:case 6:this.context.strict&&t.octal&&this.tolerateUnexpectedToken(t,o.Messages.StrictOctalLiteral);var r=this.getTokenRaw(t);n=this.finalize(e,new s.Literal(t.value,r));break;case 3:case 1:case 5:case 4:n=this.finalize(e,new s.Identifier(t.value));break;case 7:t.value===`[`?(n=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect(`]`)):n=this.throwUnexpectedToken(t);break;default:n=this.throwUnexpectedToken(t)}return n},e.prototype.isPropertyKey=function(e,t){return e.type===l.Syntax.Identifier&&e.name===t||e.type===l.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t=this.createNode(),n=this.lookahead,r,a=null,c=null,l=!1,u=!1,d=!1,f=!1;if(n.type===3){var p=n.value;this.nextToken(),l=this.match(`[`),f=!this.hasLineTerminator&&p===`async`&&!this.match(`:`)&&!this.match(`(`)&&!this.match(`*`)&&!this.match(`,`),a=f?this.parseObjectPropertyKey():this.finalize(t,new s.Identifier(p))}else this.match(`*`)?this.nextToken():(l=this.match(`[`),a=this.parseObjectPropertyKey());var m=this.qualifiedPropertyName(this.lookahead);if(n.type===3&&!f&&n.value===`get`&&m)r=`get`,l=this.match(`[`),a=this.parseObjectPropertyKey(),this.context.allowYield=!1,c=this.parseGetterMethod();else if(n.type===3&&!f&&n.value===`set`&&m)r=`set`,l=this.match(`[`),a=this.parseObjectPropertyKey(),c=this.parseSetterMethod();else if(n.type===7&&n.value===`*`&&m)r=`init`,l=this.match(`[`),a=this.parseObjectPropertyKey(),c=this.parseGeneratorMethod(),u=!0;else if(a||this.throwUnexpectedToken(this.lookahead),r=`init`,this.match(`:`)&&!f)!l&&this.isPropertyKey(a,`__proto__`)&&(e.value&&this.tolerateError(o.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),c=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match(`(`))c=f?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),u=!0;else if(n.type===3){var p=this.finalize(t,new s.Identifier(n.value));if(this.match(`=`)){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),d=!0;var h=this.isolateCoverGrammar(this.parseAssignmentExpression);c=this.finalize(t,new s.AssignmentPattern(p,h))}else d=!0,c=p}else this.throwUnexpectedToken(this.nextToken());return this.finalize(t,new s.Property(r,a,l,c,u,d))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect(`{`);for(var t=[],n={value:!1};!this.match(`}`);)t.push(this.parseObjectProperty(n)),this.match(`}`)||this.expectCommaSeparator();return this.expect(`}`),this.finalize(e,new s.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){r.assert(this.lookahead.head,`Template literal must start with a template head`);var e=this.createNode(),t=this.nextToken(),n=t.value,a=t.cooked;return this.finalize(e,new s.TemplateElement({raw:n,cooked:a},t.tail))},e.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,r=t.cooked;return this.finalize(e,new s.TemplateElement({raw:n,cooked:r},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],r=this.parseTemplateHead();for(n.push(r);!r.tail;)t.push(this.parseExpression()),r=this.parseTemplateElement(),n.push(r);return this.finalize(e,new s.TemplateLiteral(n,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case l.Syntax.Identifier:case l.Syntax.MemberExpression:case l.Syntax.RestElement:case l.Syntax.AssignmentPattern:break;case l.Syntax.SpreadElement:e.type=l.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case l.Syntax.ArrayExpression:e.type=l.Syntax.ArrayPattern;for(var t=0;t<e.elements.length;t++)e.elements[t]!==null&&this.reinterpretExpressionAsPattern(e.elements[t]);break;case l.Syntax.ObjectExpression:e.type=l.Syntax.ObjectPattern;for(var t=0;t<e.properties.length;t++)this.reinterpretExpressionAsPattern(e.properties[t].value);break;case l.Syntax.AssignmentExpression:e.type=l.Syntax.AssignmentPattern,delete e.operator,this.reinterpretExpressionAsPattern(e.left);break;default:break}},e.prototype.parseGroupExpression=function(){var e;if(this.expect(`(`),this.match(`)`))this.nextToken(),this.match(`=>`)||this.expect(`=>`),e={type:d,params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match(`...`))e=this.parseRestElement(n),this.expect(`)`),this.match(`=>`)||this.expect(`=>`),e={type:d,params:[e],async:!1};else{var r=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(`,`)){var a=[];for(this.context.isAssignmentTarget=!1,a.push(e);this.lookahead.type!==2&&this.match(`,`);){if(this.nextToken(),this.match(`)`)){this.nextToken();for(var o=0;o<a.length;o++)this.reinterpretExpressionAsPattern(a[o]);r=!0,e={type:d,params:a,async:!1}}else if(this.match(`...`)){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),a.push(this.parseRestElement(n)),this.expect(`)`),this.match(`=>`)||this.expect(`=>`),this.context.isBindingElement=!1;for(var o=0;o<a.length;o++)this.reinterpretExpressionAsPattern(a[o]);r=!0,e={type:d,params:a,async:!1}}else a.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(r)break}r||(e=this.finalize(this.startNode(t),new s.SequenceExpression(a)))}if(!r){if(this.expect(`)`),this.match(`=>`)&&(e.type===l.Syntax.Identifier&&e.name===`yield`&&(r=!0,e={type:d,params:[e],async:!1}),!r)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===l.Syntax.SequenceExpression)for(var o=0;o<e.expressions.length;o++)this.reinterpretExpressionAsPattern(e.expressions[o]);else this.reinterpretExpressionAsPattern(e);e={type:d,params:e.type===l.Syntax.SequenceExpression?e.expressions:[e],async:!1}}this.context.isBindingElement=!1}}}return e},e.prototype.parseArguments=function(){this.expect(`(`);var e=[];if(!this.match(`)`))for(;;){var t=this.match(`...`)?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(e.push(t),this.match(`)`)||(this.expectCommaSeparator(),this.match(`)`)))break}return this.expect(`)`),e},e.prototype.isIdentifierName=function(e){return e.type===3||e.type===4||e.type===1||e.type===5},e.prototype.parseIdentifierName=function(){var e=this.createNode(),t=this.nextToken();return this.isIdentifierName(t)||this.throwUnexpectedToken(t),this.finalize(e,new s.Identifier(t.value))},e.prototype.parseNewExpression=function(){var e=this.createNode(),t=this.parseIdentifierName();r.assert(t.name===`new`,"New expression must start with `new`");var n;if(this.match(`.`))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value===`target`){var a=this.parseIdentifierName();n=new s.MetaProperty(t,a)}else this.throwUnexpectedToken(this.lookahead);else{var o=this.isolateCoverGrammar(this.parseLeftHandSideExpression),c=this.match(`(`)?this.parseArguments():[];n=new s.NewExpression(o,c),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(e,n)},e.prototype.parseAsyncArgument=function(){var e=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,e},e.prototype.parseAsyncArguments=function(){this.expect(`(`);var e=[];if(!this.match(`)`))for(;;){var t=this.match(`...`)?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(e.push(t),this.match(`)`)||(this.expectCommaSeparator(),this.match(`)`)))break}return this.expect(`)`),e},e.prototype.parseLeftHandSideExpressionAllowCall=function(){var e=this.lookahead,t=this.matchContextualKeyword(`async`),n=this.context.allowIn;this.context.allowIn=!0;var r;for(this.matchKeyword(`super`)&&this.context.inFunctionBody?(r=this.createNode(),this.nextToken(),r=this.finalize(r,new s.Super),!this.match(`(`)&&!this.match(`.`)&&!this.match(`[`)&&this.throwUnexpectedToken(this.lookahead)):r=this.inheritCoverGrammar(this.matchKeyword(`new`)?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(`.`)){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(`.`);var a=this.parseIdentifierName();r=this.finalize(this.startNode(e),new s.StaticMemberExpression(r,a))}else if(this.match(`(`)){var o=t&&e.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var c=o?this.parseAsyncArguments():this.parseArguments();if(r=this.finalize(this.startNode(e),new s.CallExpression(r,c)),o&&this.match(`=>`)){for(var l=0;l<c.length;++l)this.reinterpretExpressionAsPattern(c[l]);r={type:d,params:c,async:!0}}}else if(this.match(`[`)){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(`[`);var a=this.isolateCoverGrammar(this.parseExpression);this.expect(`]`),r=this.finalize(this.startNode(e),new s.ComputedMemberExpression(r,a))}else if(this.lookahead.type===10&&this.lookahead.head){var u=this.parseTemplateLiteral();r=this.finalize(this.startNode(e),new s.TaggedTemplateExpression(r,u))}else break;return this.context.allowIn=n,r},e.prototype.parseSuper=function(){var e=this.createNode();return this.expectKeyword(`super`),!this.match(`[`)&&!this.match(`.`)&&this.throwUnexpectedToken(this.lookahead),this.finalize(e,new s.Super)},e.prototype.parseLeftHandSideExpression=function(){r.assert(this.context.allowIn,`callee of new expression always allow in keyword.`);for(var e=this.startNode(this.lookahead),t=this.matchKeyword(`super`)&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword(`new`)?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(`[`)){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(`[`);var n=this.isolateCoverGrammar(this.parseExpression);this.expect(`]`),t=this.finalize(e,new s.ComputedMemberExpression(t,n))}else if(this.match(`.`)){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(`.`);var n=this.parseIdentifierName();t=this.finalize(e,new s.StaticMemberExpression(t,n))}else if(this.lookahead.type===10&&this.lookahead.head){var a=this.parseTemplateLiteral();t=this.finalize(e,new s.TaggedTemplateExpression(t,a))}else break;return t},e.prototype.parseUpdateExpression=function(){var e,t=this.lookahead;if(this.match(`++`)||this.match(`--`)){var n=this.startNode(t),r=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&e.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(o.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment);var a=!0;e=this.finalize(n,new s.UpdateExpression(r.value,e,a)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(e=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match(`++`)||this.match(`--`))){this.context.strict&&e.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(o.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var c=this.nextToken().value,a=!1;e=this.finalize(this.startNode(t),new s.UpdateExpression(c,e,a))}return e},e.prototype.parseAwaitExpression=function(){var e=this.createNode();this.nextToken();var t=this.parseUnaryExpression();return this.finalize(e,new s.AwaitExpression(t))},e.prototype.parseUnaryExpression=function(){var e;if(this.match(`+`)||this.match(`-`)||this.match(`~`)||this.match(`!`)||this.matchKeyword(`delete`)||this.matchKeyword(`void`)||this.matchKeyword(`typeof`)){var t=this.startNode(this.lookahead),n=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),e=this.finalize(t,new s.UnaryExpression(n.value,e)),this.context.strict&&e.operator===`delete`&&e.argument.type===l.Syntax.Identifier&&this.tolerateError(o.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else e=this.context.await&&this.matchContextualKeyword(`await`)?this.parseAwaitExpression():this.parseUpdateExpression();return e},e.prototype.parseExponentiationExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseUnaryExpression);if(t.type!==l.Syntax.UnaryExpression&&this.match(`**`)){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var n=t,r=this.isolateCoverGrammar(this.parseExponentiationExpression);t=this.finalize(this.startNode(e),new s.BinaryExpression(`**`,n,r))}return t},e.prototype.binaryPrecedence=function(e){var t=e.value;return e.type===7?this.operatorPrecedence[t]||0:e.type===4&&(t===`instanceof`||this.context.allowIn&&t===`in`)?7:0},e.prototype.parseBinaryExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseExponentiationExpression),n=this.lookahead,r=this.binaryPrecedence(n);if(r>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var a=[e,this.lookahead],o=t,c=this.isolateCoverGrammar(this.parseExponentiationExpression),l=[o,n.value,c],u=[r];r=this.binaryPrecedence(this.lookahead),!(r<=0);){for(;l.length>2&&r<=u[u.length-1];){c=l.pop();var d=l.pop();u.pop(),o=l.pop(),a.pop();var f=this.startNode(a[a.length-1]);l.push(this.finalize(f,new s.BinaryExpression(d,o,c)))}l.push(this.nextToken().value),u.push(r),a.push(this.lookahead),l.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var p=l.length-1;t=l[p];for(var m=a.pop();p>1;){var h=a.pop(),g=m&&m.lineStart,f=this.startNode(h,g),d=l[p-1];t=this.finalize(f,new s.BinaryExpression(d,l[p-2],t)),p-=2,m=h}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match(`?`)){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var r=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(`:`);var a=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new s.ConditionalExpression(t,r,a)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case l.Syntax.Identifier:this.validateParam(e,t,t.name);break;case l.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case l.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case l.Syntax.ArrayPattern:for(var n=0;n<t.elements.length;n++)t.elements[n]!==null&&this.checkPatternParam(e,t.elements[n]);break;case l.Syntax.ObjectPattern:for(var n=0;n<t.properties.length;n++)this.checkPatternParam(e,t.properties[n].value);break;default:break}e.simple=e.simple&&t instanceof s.Identifier},e.prototype.reinterpretAsCoverFormalsList=function(e){var t=[e],n,r=!1;switch(e.type){case l.Syntax.Identifier:break;case d:t=e.params,r=e.async;break;default:return null}n={simple:!0,paramSet:{}};for(var a=0;a<t.length;++a){var s=t[a];s.type===l.Syntax.AssignmentPattern?s.right.type===l.Syntax.YieldExpression&&(s.right.argument&&this.throwUnexpectedToken(this.lookahead),s.right.type=l.Syntax.Identifier,s.right.name=`yield`,delete s.right.argument,delete s.right.delegate):r&&s.type===l.Syntax.Identifier&&s.name===`await`&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(n,s),t[a]=s}if(this.context.strict||!this.context.allowYield)for(var a=0;a<t.length;++a){var s=t[a];s.type===l.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(n.message===o.Messages.StrictParamDupe){var c=this.context.strict?n.stricted:n.firstRestricted;this.throwUnexpectedToken(c,n.message)}return{simple:n.simple,params:t,stricted:n.stricted,firstRestricted:n.firstRestricted,message:n.message}},e.prototype.parseAssignmentExpression=function(){var e;if(!this.context.allowYield&&this.matchKeyword(`yield`))e=this.parseYieldExpression();else{var t=this.lookahead,n=t;if(e=this.parseConditionalExpression(),n.type===3&&n.lineNumber===this.lookahead.lineNumber&&n.value===`async`&&(this.lookahead.type===3||this.matchKeyword(`yield`))){var r=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(r),e={type:d,params:[r],async:!0}}if(e.type===d||this.match(`=>`)){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var a=e.async,c=this.reinterpretAsCoverFormalsList(e);if(c){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var u=this.context.strict,f=this.context.allowStrictDirective;this.context.allowStrictDirective=c.simple;var p=this.context.allowYield,m=this.context.await;this.context.allowYield=!0,this.context.await=a;var h=this.startNode(t);this.expect(`=>`);var g=void 0;if(this.match(`{`)){var _=this.context.allowIn;this.context.allowIn=!0,g=this.parseFunctionSourceElements(),this.context.allowIn=_}else g=this.isolateCoverGrammar(this.parseAssignmentExpression);var v=g.type!==l.Syntax.BlockStatement;this.context.strict&&c.firstRestricted&&this.throwUnexpectedToken(c.firstRestricted,c.message),this.context.strict&&c.stricted&&this.tolerateUnexpectedToken(c.stricted,c.message),e=a?this.finalize(h,new s.AsyncArrowFunctionExpression(c.params,g,v)):this.finalize(h,new s.ArrowFunctionExpression(c.params,g,v)),this.context.strict=u,this.context.allowStrictDirective=f,this.context.allowYield=p,this.context.await=m}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===l.Syntax.Identifier){var y=e;this.scanner.isRestrictedWord(y.name)&&this.tolerateUnexpectedToken(n,o.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(y.name)&&this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord)}this.match(`=`)?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),n=this.nextToken();var b=n.value,x=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new s.AssignmentExpression(b,e,x)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(`,`)){var n=[];for(n.push(t);this.lookahead.type!==2&&this.match(`,`);)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new s.SequenceExpression(n))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case`export`:this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case`import`:this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case`const`:e=this.parseLexicalDeclaration({inFor:!1});break;case`function`:e=this.parseFunctionDeclaration();break;case`class`:e=this.parseClassDeclaration();break;case`let`:e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement();break}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect(`{`);for(var t=[];!this.match(`}`);)t.push(this.parseStatementListItem());return this.expect(`}`),this.finalize(e,new s.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var n=this.createNode(),r=this.parsePattern([],e);this.context.strict&&r.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(o.Messages.StrictVarName);var a=null;return e===`const`?!this.matchKeyword(`in`)&&!this.matchContextualKeyword(`of`)&&(this.match(`=`)?(this.nextToken(),a=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(o.Messages.DeclarationMissingInitializer,`const`)):(!t.inFor&&r.type!==l.Syntax.Identifier||this.match(`=`))&&(this.expect(`=`),a=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new s.VariableDeclarator(r,a))},e.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(`,`);)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),t.type===3||t.type===7&&t.value===`[`||t.type===7&&t.value===`{`||t.type===4&&t.value===`let`||t.type===4&&t.value===`yield`},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),n=this.nextToken().value;r.assert(n===`let`||n===`const`,`Lexical declaration must be either let or const`);var a=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new s.VariableDeclaration(a,n))},e.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect(`...`);var r=this.parsePattern(e,t);return this.finalize(n,new s.RestElement(r))},e.prototype.parseArrayPattern=function(e,t){var n=this.createNode();this.expect(`[`);for(var r=[];!this.match(`]`);)if(this.match(`,`))this.nextToken(),r.push(null);else{if(this.match(`...`)){r.push(this.parseBindingRestElement(e,t));break}else r.push(this.parsePatternWithDefault(e,t));this.match(`]`)||this.expect(`,`)}return this.expect(`]`),this.finalize(n,new s.ArrayPattern(r))},e.prototype.parsePropertyPattern=function(e,t){var n=this.createNode(),r=!1,a=!1,o=!1,c,l;if(this.lookahead.type===3){var u=this.lookahead;c=this.parseVariableIdentifier();var d=this.finalize(n,new s.Identifier(u.value));if(this.match(`=`)){e.push(u),a=!0,this.nextToken();var f=this.parseAssignmentExpression();l=this.finalize(this.startNode(u),new s.AssignmentPattern(d,f))}else this.match(`:`)?(this.expect(`:`),l=this.parsePatternWithDefault(e,t)):(e.push(u),a=!0,l=d)}else r=this.match(`[`),c=this.parseObjectPropertyKey(),this.expect(`:`),l=this.parsePatternWithDefault(e,t);return this.finalize(n,new s.Property(`init`,c,r,l,o,a))},e.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),r=[];for(this.expect(`{`);!this.match(`}`);)r.push(this.parsePropertyPattern(e,t)),this.match(`}`)||this.expect(`,`);return this.expect(`}`),this.finalize(n,new s.ObjectPattern(r))},e.prototype.parsePattern=function(e,t){var n;return this.match(`[`)?n=this.parseArrayPattern(e,t):this.match(`{`)?n=this.parseObjectPattern(e,t):(this.matchKeyword(`let`)&&(t===`const`||t===`let`)&&this.tolerateUnexpectedToken(this.lookahead,o.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},e.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,r=this.parsePattern(e,t);if(this.match(`=`)){this.nextToken();var a=this.context.allowYield;this.context.allowYield=!0;var o=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=a,r=this.finalize(this.startNode(n),new s.AssignmentPattern(r,o))}return r},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return n.type===4&&n.value===`yield`?this.context.strict?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):n.type===3?(this.context.isModule||this.context.await)&&n.type===3&&n.value===`await`&&this.tolerateUnexpectedToken(n):this.context.strict&&n.type===4&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):(this.context.strict||n.value!==`let`||e!==`var`)&&this.throwUnexpectedToken(n),this.finalize(t,new s.Identifier(n.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=this.parsePattern([],`var`);this.context.strict&&n.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(o.Messages.StrictVarName);var r=null;return this.match(`=`)?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type!==l.Syntax.Identifier&&!e.inFor&&this.expect(`=`),this.finalize(t,new s.VariableDeclarator(n,r))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(`,`);)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword(`var`);var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new s.VariableDeclaration(t,`var`))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(`;`),this.finalize(e,new s.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword(`function`)&&this.tolerateError(o.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e=this.createNode(),t,n=null;this.expectKeyword(`if`),this.expect(`(`);var r=this.parseExpression();return!this.match(`)`)&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(`)`),t=this.parseIfClause(),this.matchKeyword(`else`)&&(this.nextToken(),n=this.parseIfClause())),this.finalize(e,new s.IfStatement(r,t,n))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword(`do`);var t=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=t,this.expectKeyword(`while`),this.expect(`(`);var r=this.parseExpression();return!this.match(`)`)&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(`)`),this.match(`;`)&&this.nextToken()),this.finalize(e,new s.DoWhileStatement(n,r))},e.prototype.parseWhileStatement=function(){var e=this.createNode(),t;this.expectKeyword(`while`),this.expect(`(`);var n=this.parseExpression();if(!this.match(`)`)&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(`)`);var r=this.context.inIteration;this.context.inIteration=!0,t=this.parseStatement(),this.context.inIteration=r}return this.finalize(e,new s.WhileStatement(n,t))},e.prototype.parseForStatement=function(){var e=null,t=null,n=null,r=!0,a,c,u=this.createNode();if(this.expectKeyword(`for`),this.expect(`(`),this.match(`;`))this.nextToken();else if(this.matchKeyword(`var`)){e=this.createNode(),this.nextToken();var d=this.context.allowIn;this.context.allowIn=!1;var f=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=d,f.length===1&&this.matchKeyword(`in`)){var p=f[0];p.init&&(p.id.type===l.Syntax.ArrayPattern||p.id.type===l.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(o.Messages.ForInOfLoopInitializer,`for-in`),e=this.finalize(e,new s.VariableDeclaration(f,`var`)),this.nextToken(),a=e,c=this.parseExpression(),e=null}else f.length===1&&f[0].init===null&&this.matchContextualKeyword(`of`)?(e=this.finalize(e,new s.VariableDeclaration(f,`var`)),this.nextToken(),a=e,c=this.parseAssignmentExpression(),e=null,r=!1):(e=this.finalize(e,new s.VariableDeclaration(f,`var`)),this.expect(`;`))}else if(this.matchKeyword(`const`)||this.matchKeyword(`let`)){e=this.createNode();var m=this.nextToken().value;if(!this.context.strict&&this.lookahead.value===`in`)e=this.finalize(e,new s.Identifier(m)),this.nextToken(),a=e,c=this.parseExpression(),e=null;else{var d=this.context.allowIn;this.context.allowIn=!1;var f=this.parseBindingList(m,{inFor:!0});this.context.allowIn=d,f.length===1&&f[0].init===null&&this.matchKeyword(`in`)?(e=this.finalize(e,new s.VariableDeclaration(f,m)),this.nextToken(),a=e,c=this.parseExpression(),e=null):f.length===1&&f[0].init===null&&this.matchContextualKeyword(`of`)?(e=this.finalize(e,new s.VariableDeclaration(f,m)),this.nextToken(),a=e,c=this.parseAssignmentExpression(),e=null,r=!1):(this.consumeSemicolon(),e=this.finalize(e,new s.VariableDeclaration(f,m)))}}else{var h=this.lookahead,d=this.context.allowIn;if(this.context.allowIn=!1,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=d,this.matchKeyword(`in`))(!this.context.isAssignmentTarget||e.type===l.Syntax.AssignmentExpression)&&this.tolerateError(o.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(e),a=e,c=this.parseExpression(),e=null;else if(this.matchContextualKeyword(`of`))(!this.context.isAssignmentTarget||e.type===l.Syntax.AssignmentExpression)&&this.tolerateError(o.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(e),a=e,c=this.parseAssignmentExpression(),e=null,r=!1;else{if(this.match(`,`)){for(var g=[e];this.match(`,`);)this.nextToken(),g.push(this.isolateCoverGrammar(this.parseAssignmentExpression));e=this.finalize(this.startNode(h),new s.SequenceExpression(g))}this.expect(`;`)}}a===void 0&&(this.match(`;`)||(t=this.parseExpression()),this.expect(`;`),this.match(`)`)||(n=this.parseExpression()));var _;if(!this.match(`)`)&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),_=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(`)`);var v=this.context.inIteration;this.context.inIteration=!0,_=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=v}return a===void 0?this.finalize(u,new s.ForStatement(e,t,n,_)):r?this.finalize(u,new s.ForInStatement(a,c,_)):this.finalize(u,new s.ForOfStatement(a,c,_))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword(`continue`);var t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var r=`$`+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(o.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&this.throwError(o.Messages.IllegalContinue),this.finalize(e,new s.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword(`break`);var t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var n=this.parseVariableIdentifier(),r=`$`+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(o.Messages.UnknownLabel,n.name),t=n}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(o.Messages.IllegalBreak),this.finalize(e,new s.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(o.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword(`return`);var t=!this.match(`;`)&&!this.match(`}`)&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(e,new s.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(o.Messages.StrictModeWith);var e=this.createNode(),t;this.expectKeyword(`with`),this.expect(`(`);var n=this.parseExpression();return!this.match(`)`)&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(`)`),t=this.parseStatement()),this.finalize(e,new s.WithStatement(n,t))},e.prototype.parseSwitchCase=function(){var e=this.createNode(),t;this.matchKeyword(`default`)?(this.nextToken(),t=null):(this.expectKeyword(`case`),t=this.parseExpression()),this.expect(`:`);for(var n=[];!(this.match(`}`)||this.matchKeyword(`default`)||this.matchKeyword(`case`));)n.push(this.parseStatementListItem());return this.finalize(e,new s.SwitchCase(t,n))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword(`switch`),this.expect(`(`);var t=this.parseExpression();this.expect(`)`);var n=this.context.inSwitch;this.context.inSwitch=!0;var r=[],a=!1;for(this.expect(`{`);!this.match(`}`);){var c=this.parseSwitchCase();c.test===null&&(a&&this.throwError(o.Messages.MultipleDefaultsInSwitch),a=!0),r.push(c)}return this.expect(`}`),this.context.inSwitch=n,this.finalize(e,new s.SwitchStatement(t,r))},e.prototype.parseLabelledStatement=function(){var e=this.createNode(),t=this.parseExpression(),n;if(t.type===l.Syntax.Identifier&&this.match(`:`)){this.nextToken();var r=t,a=`$`+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,a)&&this.throwError(o.Messages.Redeclaration,`Label`,r.name),this.context.labelSet[a]=!0;var c=void 0;if(this.matchKeyword(`class`))this.tolerateUnexpectedToken(this.lookahead),c=this.parseClassDeclaration();else if(this.matchKeyword(`function`)){var u=this.lookahead,d=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(u,o.Messages.StrictFunction):d.generator&&this.tolerateUnexpectedToken(u,o.Messages.GeneratorInLegacyContext),c=d}else c=this.parseStatement();delete this.context.labelSet[a],n=new s.LabeledStatement(r,c)}else this.consumeSemicolon(),n=new s.ExpressionStatement(t);return this.finalize(e,n)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword(`throw`),this.hasLineTerminator&&this.throwError(o.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword(`catch`),this.expect(`(`),this.match(`)`)&&this.throwUnexpectedToken(this.lookahead);for(var t=[],n=this.parsePattern(t),r={},a=0;a<t.length;a++){var c=`$`+t[a].value;Object.prototype.hasOwnProperty.call(r,c)&&this.tolerateError(o.Messages.DuplicateBinding,t[a].value),r[c]=!0}this.context.strict&&n.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(o.Messages.StrictCatchVariable),this.expect(`)`);var u=this.parseBlock();return this.finalize(e,new s.CatchClause(n,u))},e.prototype.parseFinallyClause=function(){return this.expectKeyword(`finally`),this.parseBlock()},e.prototype.parseTryStatement=function(){var e=this.createNode();this.expectKeyword(`try`);var t=this.parseBlock(),n=this.matchKeyword(`catch`)?this.parseCatchClause():null,r=this.matchKeyword(`finally`)?this.parseFinallyClause():null;return!n&&!r&&this.throwError(o.Messages.NoCatchOrFinally),this.finalize(e,new s.TryStatement(t,n,r))},e.prototype.parseDebuggerStatement=function(){var e=this.createNode();return this.expectKeyword(`debugger`),this.consumeSemicolon(),this.finalize(e,new s.DebuggerStatement)},e.prototype.parseStatement=function(){var e;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:e=this.parseExpressionStatement();break;case 7:var t=this.lookahead.value;e=t===`{`?this.parseBlock():t===`(`?this.parseExpressionStatement():t===`;`?this.parseEmptyStatement():this.parseExpressionStatement();break;case 3:e=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case`break`:e=this.parseBreakStatement();break;case`continue`:e=this.parseContinueStatement();break;case`debugger`:e=this.parseDebuggerStatement();break;case`do`:e=this.parseDoWhileStatement();break;case`for`:e=this.parseForStatement();break;case`function`:e=this.parseFunctionDeclaration();break;case`if`:e=this.parseIfStatement();break;case`return`:e=this.parseReturnStatement();break;case`switch`:e=this.parseSwitchStatement();break;case`throw`:e=this.parseThrowStatement();break;case`try`:e=this.parseTryStatement();break;case`var`:e=this.parseVariableStatement();break;case`while`:e=this.parseWhileStatement();break;case`with`:e=this.parseWithStatement();break;default:e=this.parseExpressionStatement();break}break;default:e=this.throwUnexpectedToken(this.lookahead)}return e},e.prototype.parseFunctionSourceElements=function(){var e=this.createNode();this.expect(`{`);var t=this.parseDirectivePrologues(),n=this.context.labelSet,r=this.context.inIteration,a=this.context.inSwitch,o=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match(`}`);)t.push(this.parseStatementListItem());return this.expect(`}`),this.context.labelSet=n,this.context.inIteration=r,this.context.inSwitch=a,this.context.inFunctionBody=o,this.finalize(e,new s.BlockStatement(t))},e.prototype.validateParam=function(e,t,n){var r=`$`+n;this.context.strict?(this.scanner.isRestrictedWord(n)&&(e.stricted=t,e.message=o.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.stricted=t,e.message=o.Messages.StrictParamDupe)):e.firstRestricted||(this.scanner.isRestrictedWord(n)?(e.firstRestricted=t,e.message=o.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(n)?(e.firstRestricted=t,e.message=o.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.stricted=t,e.message=o.Messages.StrictParamDupe)),typeof Object.defineProperty==`function`?Object.defineProperty(e.paramSet,r,{value:!0,enumerable:!0,writable:!0,configurable:!0}):e.paramSet[r]=!0},e.prototype.parseRestElement=function(e){var t=this.createNode();this.expect(`...`);var n=this.parsePattern(e);return this.match(`=`)&&this.throwError(o.Messages.DefaultRestParameter),this.match(`)`)||this.throwError(o.Messages.ParameterAfterRestParameter),this.finalize(t,new s.RestElement(n))},e.prototype.parseFormalParameter=function(e){for(var t=[],n=this.match(`...`)?this.parseRestElement(t):this.parsePatternWithDefault(t),r=0;r<t.length;r++)this.validateParam(e,t[r],t[r].value);e.simple=e.simple&&n instanceof s.Identifier,e.params.push(n)},e.prototype.parseFormalParameters=function(e){var t={simple:!0,params:[],firstRestricted:e};if(this.expect(`(`),!this.match(`)`))for(t.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(t),!(this.match(`)`)||(this.expect(`,`),this.match(`)`)))););return this.expect(`)`),{simple:t.simple,params:t.params,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},e.prototype.matchAsyncFunction=function(){var e=this.matchContextualKeyword(`async`);if(e){var t=this.scanner.saveState();this.scanner.scanComments();var n=this.scanner.lex();this.scanner.restoreState(t),e=t.lineNumber===n.lineNumber&&n.type===4&&n.value===`function`}return e},e.prototype.parseFunctionDeclaration=function(e){var t=this.createNode(),n=this.matchContextualKeyword(`async`);n&&this.nextToken(),this.expectKeyword(`function`);var r=n?!1:this.match(`*`);r&&this.nextToken();var a,c=null,l=null;if(!e||!this.match(`(`)){var u=this.lookahead;c=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(u.value)&&this.tolerateUnexpectedToken(u,o.Messages.StrictFunctionName):this.scanner.isRestrictedWord(u.value)?(l=u,a=o.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(u.value)&&(l=u,a=o.Messages.StrictReservedWord)}var d=this.context.await,f=this.context.allowYield;this.context.await=n,this.context.allowYield=!r;var p=this.parseFormalParameters(l),m=p.params,h=p.stricted;l=p.firstRestricted,p.message&&(a=p.message);var g=this.context.strict,_=this.context.allowStrictDirective;this.context.allowStrictDirective=p.simple;var v=this.parseFunctionSourceElements();return this.context.strict&&l&&this.throwUnexpectedToken(l,a),this.context.strict&&h&&this.tolerateUnexpectedToken(h,a),this.context.strict=g,this.context.allowStrictDirective=_,this.context.await=d,this.context.allowYield=f,n?this.finalize(t,new s.AsyncFunctionDeclaration(c,m,v)):this.finalize(t,new s.FunctionDeclaration(c,m,v,r))},e.prototype.parseFunctionExpression=function(){var e=this.createNode(),t=this.matchContextualKeyword(`async`);t&&this.nextToken(),this.expectKeyword(`function`);var n=t?!1:this.match(`*`);n&&this.nextToken();var r,a=null,c,l=this.context.await,u=this.context.allowYield;if(this.context.await=t,this.context.allowYield=!n,!this.match(`(`)){var d=this.lookahead;a=!this.context.strict&&!n&&this.matchKeyword(`yield`)?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(d.value)&&this.tolerateUnexpectedToken(d,o.Messages.StrictFunctionName):this.scanner.isRestrictedWord(d.value)?(c=d,r=o.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(d.value)&&(c=d,r=o.Messages.StrictReservedWord)}var f=this.parseFormalParameters(c),p=f.params,m=f.stricted;c=f.firstRestricted,f.message&&(r=f.message);var h=this.context.strict,g=this.context.allowStrictDirective;this.context.allowStrictDirective=f.simple;var _=this.parseFunctionSourceElements();return this.context.strict&&c&&this.throwUnexpectedToken(c,r),this.context.strict&&m&&this.tolerateUnexpectedToken(m,r),this.context.strict=h,this.context.allowStrictDirective=g,this.context.await=l,this.context.allowYield=u,t?this.finalize(e,new s.AsyncFunctionExpression(a,p,_)):this.finalize(e,new s.FunctionExpression(a,p,_,n))},e.prototype.parseDirective=function(){var e=this.lookahead,t=this.createNode(),n=this.parseExpression(),r=n.type===l.Syntax.Literal?this.getTokenRaw(e).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(t,r?new s.Directive(n,r):new s.ExpressionStatement(n))},e.prototype.parseDirectivePrologues=function(){for(var e=null,t=[];;){var n=this.lookahead;if(n.type!==8)break;var r=this.parseDirective();t.push(r);var a=r.directive;if(typeof a!=`string`)break;a===`use strict`?(this.context.strict=!0,e&&this.tolerateUnexpectedToken(e,o.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(n,o.Messages.IllegalLanguageModeDirective)):!e&&n.octal&&(e=n)}return t},e.prototype.qualifiedPropertyName=function(e){switch(e.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return e.value===`[`;default:break}return!1},e.prototype.parseGetterMethod=function(){var e=this.createNode(),t=!1,n=this.context.allowYield;this.context.allowYield=!t;var r=this.parseFormalParameters();r.params.length>0&&this.tolerateError(o.Messages.BadGetterArity);var a=this.parsePropertyMethod(r);return this.context.allowYield=n,this.finalize(e,new s.FunctionExpression(null,r.params,a,t))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=!1,n=this.context.allowYield;this.context.allowYield=!t;var r=this.parseFormalParameters();r.params.length===1?r.params[0]instanceof s.RestElement&&this.tolerateError(o.Messages.BadSetterRestParameter):this.tolerateError(o.Messages.BadSetterArity);var a=this.parsePropertyMethod(r);return this.context.allowYield=n,this.finalize(e,new s.FunctionExpression(null,r.params,a,t))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=!0,n=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();this.context.allowYield=!1;var a=this.parsePropertyMethod(r);return this.context.allowYield=n,this.finalize(e,new s.FunctionExpression(null,r.params,a,t))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e=t===`[`||t===`(`||t===`{`||t===`+`||t===`-`||t===`!`||t===`~`||t===`++`||t===`--`||t===`/`||t===`/=`;break;case 4:e=t===`class`||t===`delete`||t===`function`||t===`let`||t===`new`||t===`super`||t===`this`||t===`typeof`||t===`void`||t===`yield`;break;default:break}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword(`yield`);var t=null,n=!1;if(!this.hasLineTerminator){var r=this.context.allowYield;this.context.allowYield=!1,n=this.match(`*`),n?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=r}return this.finalize(e,new s.YieldExpression(t,n))},e.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),r=``,a=null,c=null,l=!1,u=!1,d=!1,f=!1;if(this.match(`*`))this.nextToken();else if(l=this.match(`[`),a=this.parseObjectPropertyKey(),a.name===`static`&&(this.qualifiedPropertyName(this.lookahead)||this.match(`*`))&&(t=this.lookahead,d=!0,l=this.match(`[`),this.match(`*`)?this.nextToken():a=this.parseObjectPropertyKey()),t.type===3&&!this.hasLineTerminator&&t.value===`async`){var p=this.lookahead.value;p!==`:`&&p!==`(`&&p!==`*`&&(f=!0,t=this.lookahead,a=this.parseObjectPropertyKey(),t.type===3&&t.value===`constructor`&&this.tolerateUnexpectedToken(t,o.Messages.ConstructorIsAsync))}var m=this.qualifiedPropertyName(this.lookahead);return t.type===3?t.value===`get`&&m?(r=`get`,l=this.match(`[`),a=this.parseObjectPropertyKey(),this.context.allowYield=!1,c=this.parseGetterMethod()):t.value===`set`&&m&&(r=`set`,l=this.match(`[`),a=this.parseObjectPropertyKey(),c=this.parseSetterMethod()):t.type===7&&t.value===`*`&&m&&(r=`init`,l=this.match(`[`),a=this.parseObjectPropertyKey(),c=this.parseGeneratorMethod(),u=!0),!r&&a&&this.match(`(`)&&(r=`init`,c=f?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),u=!0),r||this.throwUnexpectedToken(this.lookahead),r===`init`&&(r=`method`),l||(d&&this.isPropertyKey(a,`prototype`)&&this.throwUnexpectedToken(t,o.Messages.StaticPrototype),!d&&this.isPropertyKey(a,`constructor`)&&((r!==`method`||!u||c&&c.generator)&&this.throwUnexpectedToken(t,o.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,o.Messages.DuplicateConstructor):e.value=!0,r=`constructor`)),this.finalize(n,new s.MethodDefinition(a,l,c,r,d))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect(`{`);!this.match(`}`);)this.match(`;`)?this.nextToken():e.push(this.parseClassElement(t));return this.expect(`}`),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new s.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword(`class`);var r=e&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),a=null;this.matchKeyword(`extends`)&&(this.nextToken(),a=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var o=this.parseClassBody();return this.context.strict=n,this.finalize(t,new s.ClassDeclaration(r,a,o))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword(`class`);var n=this.lookahead.type===3?this.parseVariableIdentifier():null,r=null;this.matchKeyword(`extends`)&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var a=this.parseClassBody();return this.context.strict=t,this.finalize(e,new s.ClassExpression(n,r,a))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(e,new s.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(e,new s.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();this.lookahead.type!==8&&this.throwError(o.Messages.InvalidModuleSpecifier);var t=this.nextToken(),n=this.getTokenRaw(t);return this.finalize(e,new s.Literal(t.value,n))},e.prototype.parseImportSpecifier=function(){var e=this.createNode(),t,n;return this.lookahead.type===3?(t=this.parseVariableIdentifier(),n=t,this.matchContextualKeyword(`as`)&&(this.nextToken(),n=this.parseVariableIdentifier())):(t=this.parseIdentifierName(),n=t,this.matchContextualKeyword(`as`)?(this.nextToken(),n=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(e,new s.ImportSpecifier(n,t))},e.prototype.parseNamedImports=function(){this.expect(`{`);for(var e=[];!this.match(`}`);)e.push(this.parseImportSpecifier()),this.match(`}`)||this.expect(`,`);return this.expect(`}`),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new s.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect(`*`),this.matchContextualKeyword(`as`)||this.throwError(o.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new s.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalImportDeclaration);var e=this.createNode();this.expectKeyword(`import`);var t,n=[];if(this.lookahead.type===8)t=this.parseModuleSpecifier();else{if(this.match(`{`)?n=n.concat(this.parseNamedImports()):this.match(`*`)?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword(`default`)?(n.push(this.parseImportDefaultSpecifier()),this.match(`,`)&&(this.nextToken(),this.match(`*`)?n.push(this.parseImportNamespaceSpecifier()):this.match(`{`)?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword(`from`)){var r=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken(),t=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(e,new s.ImportDeclaration(n,t))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword(`as`)&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new s.ExportSpecifier(t,n))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalExportDeclaration);var e=this.createNode();this.expectKeyword(`export`);var t;if(this.matchKeyword(`default`))if(this.nextToken(),this.matchKeyword(`function`)){var n=this.parseFunctionDeclaration(!0);t=this.finalize(e,new s.ExportDefaultDeclaration(n))}else if(this.matchKeyword(`class`)){var n=this.parseClassDeclaration(!0);t=this.finalize(e,new s.ExportDefaultDeclaration(n))}else if(this.matchContextualKeyword(`async`)){var n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();t=this.finalize(e,new s.ExportDefaultDeclaration(n))}else{this.matchContextualKeyword(`from`)&&this.throwError(o.Messages.UnexpectedToken,this.lookahead.value);var n=this.match(`{`)?this.parseObjectInitializer():this.match(`[`)?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),t=this.finalize(e,new s.ExportDefaultDeclaration(n))}else if(this.match(`*`)){if(this.nextToken(),!this.matchContextualKeyword(`from`)){var r=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken();var a=this.parseModuleSpecifier();this.consumeSemicolon(),t=this.finalize(e,new s.ExportAllDeclaration(a))}else if(this.lookahead.type===4){var n=void 0;switch(this.lookahead.value){case`let`:case`const`:n=this.parseLexicalDeclaration({inFor:!1});break;case`var`:case`class`:case`function`:n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}t=this.finalize(e,new s.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction()){var n=this.parseFunctionDeclaration();t=this.finalize(e,new s.ExportNamedDeclaration(n,[],null))}else{var c=[],l=null,u=!1;for(this.expect(`{`);!this.match(`}`);)u||=this.matchKeyword(`default`),c.push(this.parseExportSpecifier()),this.match(`}`)||this.expect(`,`);if(this.expect(`}`),this.matchContextualKeyword(`from`))this.nextToken(),l=this.parseModuleSpecifier(),this.consumeSemicolon();else if(u){var r=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}else this.consumeSemicolon();t=this.finalize(e,new s.ExportNamedDeclaration(null,c,l))}return t},e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0});function n(e,t){if(!e)throw Error(`ASSERT: `+t)}t.assert=n},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.ErrorHandler=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(this.tolerant)this.recordError(e);else throw e},e.prototype.constructError=function(e,t){var n=Error(e);try{throw n}catch(e){Object.create&&Object.defineProperty&&(n=Object.create(e),Object.defineProperty(n,`column`,{value:t}))}return n},e.prototype.createError=function(e,t,n,r){var a=`Line `+t+`: `+r,o=this.constructError(a,n);return o.index=e,o.lineNumber=t,o.description=r,o},e.prototype.throwError=function(e,t,n,r){throw this.createError(e,t,n,r)},e.prototype.tolerateError=function(e,t,n,r){var a=this.createError(e,t,n,r);if(this.tolerant)this.recordError(a);else throw a},e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.Messages={BadGetterArity:`Getter must not have any formal parameters`,BadSetterArity:`Setter must have exactly one formal parameter`,BadSetterRestParameter:`Setter function argument must not be a rest parameter`,ConstructorIsAsync:`Class constructor may not be an async method`,ConstructorSpecialMethod:`Class constructor may not be an accessor`,DeclarationMissingInitializer:`Missing initializer in %0 declaration`,DefaultRestParameter:`Unexpected token =`,DuplicateBinding:`Duplicate binding %0`,DuplicateConstructor:`A class may only have one constructor`,DuplicateProtoProperty:`Duplicate __proto__ fields are not allowed in object literals`,ForInOfLoopInitializer:`%0 loop variable declaration may not have an initializer`,GeneratorInLegacyContext:`Generator declarations are not allowed in legacy contexts`,IllegalBreak:`Illegal break statement`,IllegalContinue:`Illegal continue statement`,IllegalExportDeclaration:`Unexpected token`,IllegalImportDeclaration:`Unexpected token`,IllegalLanguageModeDirective:`Illegal 'use strict' directive in function with non-simple parameter list`,IllegalReturn:`Illegal return statement`,InvalidEscapedReservedWord:`Keyword must not contain escaped characters`,InvalidHexEscapeSequence:`Invalid hexadecimal escape sequence`,InvalidLHSInAssignment:`Invalid left-hand side in assignment`,InvalidLHSInForIn:`Invalid left-hand side in for-in`,InvalidLHSInForLoop:`Invalid left-hand side in for-loop`,InvalidModuleSpecifier:`Unexpected token`,InvalidRegExp:`Invalid regular expression`,LetInLexicalBinding:`let is disallowed as a lexically bound name`,MissingFromClause:`Unexpected token`,MultipleDefaultsInSwitch:`More than one default clause in switch statement`,NewlineAfterThrow:`Illegal newline after throw`,NoAsAfterImportNamespace:`Unexpected token`,NoCatchOrFinally:`Missing catch or finally after try`,ParameterAfterRestParameter:`Rest parameter must be last formal parameter`,Redeclaration:`%0 '%1' has already been declared`,StaticPrototype:`Classes may not have static property named prototype`,StrictCatchVariable:`Catch variable may not be eval or arguments in strict mode`,StrictDelete:`Delete of an unqualified identifier in strict mode.`,StrictFunction:`In strict mode code, functions can only be declared at top level or inside a block`,StrictFunctionName:`Function name may not be eval or arguments in strict mode`,StrictLHSAssignment:`Assignment to eval or arguments is not allowed in strict mode`,StrictLHSPostfix:`Postfix increment/decrement may not have eval or arguments operand in strict mode`,StrictLHSPrefix:`Prefix increment/decrement may not have eval or arguments operand in strict mode`,StrictModeWith:`Strict mode code may not include a with statement`,StrictOctalLiteral:`Octal literals are not allowed in strict mode.`,StrictParamDupe:`Strict mode function may not have duplicate parameter names`,StrictParamName:`Parameter name eval or arguments is not allowed in strict mode`,StrictReservedWord:`Use of future reserved word in strict mode`,StrictVarName:`Variable name may not be eval or arguments in strict mode`,TemplateOctalLiteral:`Octal literals are not allowed in template strings.`,UnexpectedEOS:`Unexpected end of input`,UnexpectedIdentifier:`Unexpected identifier`,UnexpectedNumber:`Unexpected number`,UnexpectedReserved:`Unexpected reserved word`,UnexpectedString:`Unexpected string`,UnexpectedTemplate:`Unexpected quasi %0`,UnexpectedToken:`Unexpected token %0`,UnexpectedTokenIllegal:`Unexpected token ILLEGAL`,UnknownLabel:`Undefined label '%0'`,UnterminatedRegExp:`Invalid regular expression: missing /`}},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(9),a=n(4),o=n(11);function s(e){return`0123456789abcdef`.indexOf(e.toLowerCase())}function c(e){return`01234567`.indexOf(e)}t.Scanner=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=+(e.length>0),this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return e===void 0&&(e=o.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){e===void 0&&(e=o.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t=[],n,r;for(this.trackComment&&(t=[],n=this.index-e,r={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var o=this.source.charCodeAt(this.index);if(++this.index,a.Character.isLineTerminator(o)){if(this.trackComment){r.end={line:this.lineNumber,column:this.index-this.lineStart-1};var s={multiLine:!1,slice:[n+e,this.index-1],range:[n,this.index-1],loc:r};t.push(s)}return o===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,t}}if(this.trackComment){r.end={line:this.lineNumber,column:this.index-this.lineStart};var s={multiLine:!1,slice:[n+e,this.index],range:[n,this.index],loc:r};t.push(s)}return t},e.prototype.skipMultiLineComment=function(){var e=[],t,n;for(this.trackComment&&(e=[],t=this.index-2,n={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var r=this.source.charCodeAt(this.index);if(a.Character.isLineTerminator(r))r===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(r===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart};var o={multiLine:!0,slice:[t+2,this.index-2],range:[t,this.index],loc:n};e.push(o)}return e}++this.index}else ++this.index}if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart};var o={multiLine:!0,slice:[t+2,this.index],range:[t,this.index],loc:n};e.push(o)}return this.tolerateUnexpectedToken(),e},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=this.index===0;!this.eof();){var n=this.source.charCodeAt(this.index);if(a.Character.isWhiteSpace(n))++this.index;else if(a.Character.isLineTerminator(n))++this.index,n===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(n===47)if(n=this.source.charCodeAt(this.index+1),n===47){this.index+=2;var r=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(r)),t=!0}else if(n===42){this.index+=2;var r=this.skipMultiLineComment();this.trackComment&&(e=e.concat(r))}else break;else if(t&&n===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var r=this.skipSingleLineComment(3);this.trackComment&&(e=e.concat(r))}else break;else if(n===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)===`!--`){this.index+=4;var r=this.skipSingleLineComment(4);this.trackComment&&(e=e.concat(r))}else break;else break}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case`enum`:case`export`:case`import`:case`super`:return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case`implements`:case`interface`:case`package`:case`private`:case`protected`:case`public`:case`static`:case`yield`:case`let`:return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return e===`eval`||e===`arguments`},e.prototype.isKeyword=function(e){switch(e.length){case 2:return e===`if`||e===`in`||e===`do`;case 3:return e===`var`||e===`for`||e===`new`||e===`try`||e===`let`;case 4:return e===`this`||e===`else`||e===`case`||e===`void`||e===`with`||e===`enum`;case 5:return e===`while`||e===`break`||e===`catch`||e===`throw`||e===`const`||e===`yield`||e===`class`||e===`super`;case 6:return e===`return`||e===`typeof`||e===`delete`||e===`switch`||e===`export`||e===`import`;case 7:return e===`default`||e===`finally`||e===`extends`;case 8:return e===`function`||e===`continue`||e===`debugger`;case 10:return e===`instanceof`;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=(t-55296)*1024+n-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t=e===`u`?4:2,n=0,r=0;r<t;++r)if(!this.eof()&&a.Character.isHexDigit(this.source.charCodeAt(this.index)))n=n*16+s(this.source[this.index++]);else return null;return String.fromCharCode(n)},e.prototype.scanUnicodeCodePointEscape=function(){var e=this.source[this.index],t=0;for(e===`}`&&this.throwUnexpectedToken();!this.eof()&&(e=this.source[this.index++],a.Character.isHexDigit(e.charCodeAt(0)));)t=t*16+s(e);return(t>1114111||e!==`}`)&&this.throwUnexpectedToken(),a.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(t===92||t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(a.Character.isIdentifierPart(t))++this.index;else break}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e=this.codePointAt(this.index),t=a.Character.fromCodePoint(e);this.index+=t.length;var n;for(e===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]===`{`?(++this.index,n=this.scanUnicodeCodePointEscape()):(n=this.scanHexEscape(`u`),(n===null||n===`\\`||!a.Character.isIdentifierStart(n.charCodeAt(0)))&&this.throwUnexpectedToken()),t=n);!this.eof()&&(e=this.codePointAt(this.index),a.Character.isIdentifierPart(e));)n=a.Character.fromCodePoint(e),t+=n,this.index+=n.length,e===92&&(t=t.substr(0,t.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]===`{`?(++this.index,n=this.scanUnicodeCodePointEscape()):(n=this.scanHexEscape(`u`),(n===null||n===`\\`||!a.Character.isIdentifierPart(n.charCodeAt(0)))&&this.throwUnexpectedToken()),t+=n);return t},e.prototype.octalToDecimal=function(e){var t=e!==`0`,n=c(e);return!this.eof()&&a.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=n*8+c(this.source[this.index++]),`0123`.indexOf(e)>=0&&!this.eof()&&a.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=n*8+c(this.source[this.index++]))),{code:n,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,n=this.source.charCodeAt(t)===92?this.getComplexIdentifier():this.getIdentifier();if(e=n.length===1?3:this.isKeyword(n)?4:n===`null`?5:n===`true`||n===`false`?1:3,e!==3&&t+n.length!==this.index){var r=this.index;this.index=t,this.tolerateUnexpectedToken(o.Messages.InvalidEscapedReservedWord),this.index=r}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case`(`:case`{`:t===`{`&&this.curlyStack.push(`{`),++this.index;break;case`.`:++this.index,this.source[this.index]===`.`&&this.source[this.index+1]===`.`&&(this.index+=2,t=`...`);break;case`}`:++this.index,this.curlyStack.pop();break;case`)`:case`;`:case`,`:case`[`:case`]`:case`:`:case`?`:case`~`:++this.index;break;default:t=this.source.substr(this.index,4),t===`>>>=`?this.index+=4:(t=t.substr(0,3),t===`===`||t===`!==`||t===`>>>`||t===`<<=`||t===`>>=`||t===`**=`?this.index+=3:(t=t.substr(0,2),t===`&&`||t===`||`||t===`==`||t===`!=`||t===`+=`||t===`-=`||t===`*=`||t===`/=`||t===`++`||t===`--`||t===`<<`||t===`>>`||t===`&=`||t===`|=`||t===`^=`||t===`%=`||t===`<=`||t===`>=`||t===`=>`||t===`**`?this.index+=2:(t=this.source[this.index],`<>=!+-*%&|^/`.indexOf(t)>=0&&++this.index)))}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t=``;!this.eof()&&a.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return t.length===0&&this.throwUnexpectedToken(),a.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt(`0x`+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t=``,n;!this.eof()&&(n=this.source[this.index],!(n!==`0`&&n!==`1`));)t+=this.source[this.index++];return t.length===0&&this.throwUnexpectedToken(),this.eof()||(n=this.source.charCodeAt(this.index),(a.Character.isIdentifierStart(n)||a.Character.isDecimalDigit(n))&&this.throwUnexpectedToken()),{type:6,value:parseInt(t,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var n=``,r=!1;for(a.Character.isOctalDigit(e.charCodeAt(0))?(r=!0,n=`0`+this.source[this.index++]):++this.index;!this.eof()&&a.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return!r&&n.length===0&&this.throwUnexpectedToken(),(a.Character.isIdentifierStart(this.source.charCodeAt(this.index))||a.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,8),octal:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e<this.length;++e){var t=this.source[e];if(t===`8`||t===`9`)return!1;if(!a.Character.isOctalDigit(t.charCodeAt(0)))return!0}return!0},e.prototype.scanNumericLiteral=function(){var e=this.index,t=this.source[e];r.assert(a.Character.isDecimalDigit(t.charCodeAt(0))||t===`.`,`Numeric literal must start with a decimal digit or a decimal point`);var n=``;if(t!==`.`){if(n=this.source[this.index++],t=this.source[this.index],n===`0`){if(t===`x`||t===`X`)return++this.index,this.scanHexLiteral(e);if(t===`b`||t===`B`)return++this.index,this.scanBinaryLiteral(e);if(t===`o`||t===`O`||t&&a.Character.isOctalDigit(t.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(t,e)}for(;a.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];t=this.source[this.index]}if(t===`.`){for(n+=this.source[this.index++];a.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];t=this.source[this.index]}if(t===`e`||t===`E`)if(n+=this.source[this.index++],t=this.source[this.index],(t===`+`||t===`-`)&&(n+=this.source[this.index++]),a.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;a.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];else this.throwUnexpectedToken();return a.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(n),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanStringLiteral=function(){var e=this.index,t=this.source[e];r.assert(t===`'`||t===`"`,`String literal must starts with a quote`),++this.index;for(var n=!1,s=``;!this.eof();){var c=this.source[this.index++];if(c===t){t=``;break}else if(c===`\\`)if(c=this.source[this.index++],!c||!a.Character.isLineTerminator(c.charCodeAt(0)))switch(c){case`u`:if(this.source[this.index]===`{`)++this.index,s+=this.scanUnicodeCodePointEscape();else{var l=this.scanHexEscape(c);l===null&&this.throwUnexpectedToken(),s+=l}break;case`x`:var u=this.scanHexEscape(c);u===null&&this.throwUnexpectedToken(o.Messages.InvalidHexEscapeSequence),s+=u;break;case`n`:s+=`
103
- `;break;case`r`:s+=`\r`;break;case`t`:s+=` `;break;case`b`:s+=`\b`;break;case`f`:s+=`\f`;break;case`v`:s+=`\v`;break;case`8`:case`9`:s+=c,this.tolerateUnexpectedToken();break;default:if(c&&a.Character.isOctalDigit(c.charCodeAt(0))){var d=this.octalToDecimal(c);n=d.octal||n,s+=String.fromCharCode(d.code)}else s+=c;break}else ++this.lineNumber,c===`\r`&&this.source[this.index]===`
104
- `&&++this.index,this.lineStart=this.index;else if(a.Character.isLineTerminator(c.charCodeAt(0)))break;else s+=c}return t!==``&&(this.index=e,this.throwUnexpectedToken()),{type:8,value:s,octal:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanTemplate=function(){var e=``,t=!1,n=this.index,r=this.source[n]==="`",s=!1,c=2;for(++this.index;!this.eof();){var l=this.source[this.index++];if(l==="`"){c=1,s=!0,t=!0;break}else if(l===`$`){if(this.source[this.index]===`{`){this.curlyStack.push("${"),++this.index,t=!0;break}e+=l}else if(l===`\\`)if(l=this.source[this.index++],a.Character.isLineTerminator(l.charCodeAt(0)))++this.lineNumber,l===`\r`&&this.source[this.index]===`
105
- `&&++this.index,this.lineStart=this.index;else switch(l){case`n`:e+=`
106
- `;break;case`r`:e+=`\r`;break;case`t`:e+=` `;break;case`u`:if(this.source[this.index]===`{`)++this.index,e+=this.scanUnicodeCodePointEscape();else{var u=this.index,d=this.scanHexEscape(l);d===null?(this.index=u,e+=l):e+=d}break;case`x`:var f=this.scanHexEscape(l);f===null&&this.throwUnexpectedToken(o.Messages.InvalidHexEscapeSequence),e+=f;break;case`b`:e+=`\b`;break;case`f`:e+=`\f`;break;case`v`:e+=`\v`;break;default:l===`0`?(a.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral),e+=`\0`):a.Character.isOctalDigit(l.charCodeAt(0))?this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral):e+=l;break}else a.Character.isLineTerminator(l.charCodeAt(0))?(++this.lineNumber,l===`\r`&&this.source[this.index]===`
107
- `&&++this.index,this.lineStart=this.index,e+=`
108
- `):e+=l}return t||this.throwUnexpectedToken(),r||this.curlyStack.pop(),{type:10,value:this.source.slice(n+1,this.index-c),cooked:e,head:r,tail:s,lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},e.prototype.testRegExp=function(e,t){var n=`￿`,r=e,a=this;t.indexOf(`u`)>=0&&(r=r.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(e,t,r){var s=parseInt(t||r,16);return s>1114111&&a.throwUnexpectedToken(o.Messages.InvalidRegExp),s<=65535?String.fromCharCode(s):n}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n));try{RegExp(r)}catch{this.throwUnexpectedToken(o.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch{return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];r.assert(e===`/`,`Regular expression literal must start with a slash`);for(var t=this.source[this.index++],n=!1,s=!1;!this.eof();)if(e=this.source[this.index++],t+=e,e===`\\`)e=this.source[this.index++],a.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),t+=e;else if(a.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(o.Messages.UnterminatedRegExp);else if(n)e===`]`&&(n=!1);else if(e===`/`){s=!0;break}else e===`[`&&(n=!0);return s||this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e=``,t=``;!this.eof();){var n=this.source[this.index];if(!a.Character.isIdentifierPart(n.charCodeAt(0)))break;if(++this.index,n===`\\`&&!this.eof())if(n=this.source[this.index],n===`u`){++this.index;var r=this.index,o=this.scanHexEscape(`u`);if(o!==null)for(t+=o,e+=`\\u`;r<this.index;++r)e+=this.source[r];else this.index=r,t+=`u`,e+=`\\u`;this.tolerateUnexpectedToken()}else e+=`\\`,this.tolerateUnexpectedToken();else t+=n,e+=n}return t},e.prototype.scanRegExp=function(){var e=this.index,t=this.scanRegExpBody(),n=this.scanRegExpFlags();return{type:9,value:``,pattern:t,flags:n,regex:this.testRegExp(t,n),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.lex=function(){if(this.eof())return{type:2,value:``,lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var e=this.source.charCodeAt(this.index);return a.Character.isIdentifierStart(e)?this.scanIdentifier():e===40||e===41||e===59?this.scanPunctuator():e===39||e===34?this.scanStringLiteral():e===46?a.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():a.Character.isDecimalDigit(e)?this.scanNumericLiteral():e===96||e===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():e>=55296&&e<57343&&a.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.TokenName={},t.TokenName[1]=`Boolean`,t.TokenName[2]=`<end>`,t.TokenName[3]=`Identifier`,t.TokenName[4]=`Keyword`,t.TokenName[5]=`Null`,t.TokenName[6]=`Numeric`,t.TokenName[7]=`Punctuator`,t.TokenName[8]=`String`,t.TokenName[9]=`RegularExpression`,t.TokenName[10]=`Template`},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.XHTMLEntities={quot:`"`,amp:`&`,apos:`'`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,lang:`⟨`,rang:`⟩`}},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(10),a=n(12),o=n(13),s=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return`(.{.[.in.typeof.instanceof.new.return.case.delete.throw.void.=.+=.-=.*=.**=./=.%=.<<=.>>=.>>>=.&=.|=.^=.,.+.-.*.**./.%.++.--.<<.>>.>>>.&.|.^.!.~.&&.||.?.:.===.==.>=.<=.<.>.!=.!==`.split(`.`).indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=e!==null;switch(e){case`this`:case`]`:t=!1;break;case`)`:var n=this.values[this.paren-1];t=n===`if`||n===`while`||n===`for`||n===`with`;break;case`}`:if(t=!1,this.values[this.curly-3]===`function`){var r=this.values[this.curly-4];t=r?!this.beforeFunctionExpression(r):!1}else if(this.values[this.curly-4]===`function`){var r=this.values[this.curly-5];t=r?!this.beforeFunctionExpression(r):!0}break;default:break}return t},e.prototype.push=function(e){e.type===7||e.type===4?(e.value===`{`?this.curly=this.values.length:e.value===`(`&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}();t.Tokenizer=function(){function e(e,t){this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=t?typeof t.tolerant==`boolean`&&t.tolerant:!1,this.scanner=new a.Scanner(e,this.errorHandler),this.scanner.trackComment=t?typeof t.comment==`boolean`&&t.comment:!1,this.trackRange=t?typeof t.range==`boolean`&&t.range:!1,this.trackLoc=t?typeof t.loc==`boolean`&&t.loc:!1,this.buffer=[],this.reader=new s}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(this.buffer.length===0){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t<e.length;++t){var n=e[t],r=this.scanner.source.slice(n.slice[0],n.slice[1]),a={type:n.multiLine?`BlockComment`:`LineComment`,value:r};this.trackRange&&(a.range=n.range),this.trackLoc&&(a.loc=n.loc),this.buffer.push(a)}if(!this.scanner.eof()){var s=void 0;this.trackLoc&&(s={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var c=this.scanner.source[this.scanner.index]===`/`&&this.reader.isRegexStart()?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(c);var l={type:o.TokenName[c.type],value:this.scanner.source.slice(c.start,c.end)};this.trackRange&&(l.range=[c.start,c.end]),this.trackLoc&&(s.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},l.loc=s),c.type===9&&(l.regex={pattern:c.pattern,flags:c.flags}),this.buffer.push(l)}}return this.buffer.shift()},e}()}])})})),require_function=__commonJSMin(((e,t)=>{var n;try{n=require_esprima()}catch{typeof window<`u`&&(n=window.esprima)}var r=require_type();function a(e){if(e===null)return!1;try{var t=`(`+e+`)`,r=n.parse(t,{range:!0});return!(r.type!==`Program`||r.body.length!==1||r.body[0].type!==`ExpressionStatement`||r.body[0].expression.type!==`ArrowFunctionExpression`&&r.body[0].expression.type!==`FunctionExpression`)}catch{return!1}}function o(e){var t=`(`+e+`)`,r=n.parse(t,{range:!0}),a=[],o;if(r.type!==`Program`||r.body.length!==1||r.body[0].type!==`ExpressionStatement`||r.body[0].expression.type!==`ArrowFunctionExpression`&&r.body[0].expression.type!==`FunctionExpression`)throw Error(`Failed to resolve function`);return r.body[0].expression.params.forEach(function(e){a.push(e.name)}),o=r.body[0].expression.body.range,r.body[0].expression.body.type===`BlockStatement`?Function(a,t.slice(o[0]+1,o[1]-1)):Function(a,`return `+t.slice(o[0],o[1]))}function s(e){return e.toString()}function c(e){return Object.prototype.toString.call(e)===`[object Function]`}t.exports=new r(`tag:yaml.org,2002:js/function`,{kind:`scalar`,resolve:a,construct:o,predicate:c,represent:s})})),require_default_full=__commonJSMin(((e,t)=>{var n=require_schema();t.exports=n.DEFAULT=new n({include:[require_default_safe()],explicit:[require_undefined(),require_regexp(),require_function()]})})),require_loader=__commonJSMin(((e,t)=>{var n=require_common$1(),r=require_exception(),a=require_mark(),o=require_default_safe(),s=require_default_full(),c=Object.prototype.hasOwnProperty,l=1,u=2,d=3,f=4,p=1,m=2,h=3,g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_=/[\x85\u2028\u2029]/,v=/[,\[\]\{\}]/,y=/^(?:!|!!|![a-z\-]+!)$/i,b=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function x(e){return Object.prototype.toString.call(e)}function S(e){return e===10||e===13}function C(e){return e===9||e===32}function w(e){return e===9||e===32||e===10||e===13}function T(e){return e===44||e===91||e===93||e===123||e===125}function E(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function D(e){return e===120?2:e===117?4:e===85?8:0}function O(e){return 48<=e&&e<=57?e-48:-1}function k(e){return e===48?`\0`:e===97?`\x07`:e===98?`\b`:e===116||e===9?` `:e===110?`
109
- `:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`…`:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}function A(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function j(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var M=Array(256),N=Array(256),P=0;P<256;P++)M[P]=+!!k(P),N[P]=k(P);function ee(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||s,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function te(e,t){return new r(t,new a(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function F(e,t){throw te(e,t)}function I(e,t){e.onWarning&&e.onWarning.call(null,te(e,t))}var L={YAML:function(e,t,n){var r,a,o;e.version!==null&&F(e,`duplication of %YAML directive`),n.length!==1&&F(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&F(e,`ill-formed argument of the YAML directive`),a=parseInt(r[1],10),o=parseInt(r[2],10),a!==1&&F(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&I(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){var r,a;n.length!==2&&F(e,`TAG directive accepts exactly two arguments`),r=n[0],a=n[1],y.test(r)||F(e,`ill-formed tag handle (first argument) of the TAG directive`),c.call(e.tagMap,r)&&F(e,`there is a previously declared suffix for "`+r+`" tag handle`),b.test(a)||F(e,`ill-formed tag prefix (second argument) of the TAG directive`),e.tagMap[r]=a}};function R(e,t,n,r){var a,o,s,c;if(t<n){if(c=e.input.slice(t,n),r)for(a=0,o=c.length;a<o;a+=1)s=c.charCodeAt(a),s===9||32<=s&&s<=1114111||F(e,`expected valid JSON character`);else g.test(c)&&F(e,`the stream contains non-printable characters`);e.result+=c}}function z(e,t,r,a){var o,s,l,u;for(n.isObject(r)||F(e,`cannot merge mappings; the provided source object is unacceptable`),o=Object.keys(r),l=0,u=o.length;l<u;l+=1)s=o[l],c.call(t,s)||(j(t,s,r[s]),a[s]=!0)}function B(e,t,n,r,a,o,s,l){var u,d;if(Array.isArray(a))for(a=Array.prototype.slice.call(a),u=0,d=a.length;u<d;u+=1)Array.isArray(a[u])&&F(e,`nested arrays are not supported inside keys`),typeof a==`object`&&x(a[u])===`[object Object]`&&(a[u]=`[object Object]`);if(typeof a==`object`&&x(a)===`[object Object]`&&(a=`[object Object]`),a=String(a),t===null&&(t={}),r===`tag:yaml.org,2002:merge`)if(Array.isArray(o))for(u=0,d=o.length;u<d;u+=1)z(e,t,o[u],n);else z(e,t,o,n);else !e.json&&!c.call(n,a)&&c.call(t,a)&&(e.line=s||e.line,e.position=l||e.position,F(e,`duplicated mapping key`)),j(t,a,o),delete n[a];return t}function V(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):F(e,`a line break is expected`),e.line+=1,e.lineStart=e.position}function H(e,t,n){for(var r=0,a=e.input.charCodeAt(e.position);a!==0;){for(;C(a);)a=e.input.charCodeAt(++e.position);if(t&&a===35)do a=e.input.charCodeAt(++e.position);while(a!==10&&a!==13&&a!==0);if(S(a))for(V(e),a=e.input.charCodeAt(e.position),r++,e.lineIndent=0;a===32;)e.lineIndent++,a=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&I(e,`deficient indentation`),r}function U(e){var t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||w(n)))}function W(e,t){t===1?e.result+=` `:t>1&&(e.result+=n.repeat(`
110
- `,t-1))}function G(e,t,n){var r,a,o,s,c,l,u,d,f=e.kind,p=e.result,m=e.input.charCodeAt(e.position);if(w(m)||T(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(a=e.input.charCodeAt(e.position+1),w(a)||n&&T(a)))return!1;for(e.kind=`scalar`,e.result=``,o=s=e.position,c=!1;m!==0;){if(m===58){if(a=e.input.charCodeAt(e.position+1),w(a)||n&&T(a))break}else if(m===35){if(r=e.input.charCodeAt(e.position-1),w(r))break}else if(e.position===e.lineStart&&U(e)||n&&T(m))break;else if(S(m))if(l=e.line,u=e.lineStart,d=e.lineIndent,H(e,!1,-1),e.lineIndent>=t){c=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=u,e.lineIndent=d;break}c&&=(R(e,o,s,!1),W(e,e.line-l),o=s=e.position,!1),C(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position)}return R(e,o,s,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function K(e,t){var n=e.input.charCodeAt(e.position),r,a;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(R(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else S(n)?(R(e,r,a,!0),W(e,H(e,!1,t)),r=a=e.position):e.position===e.lineStart&&U(e)?F(e,`unexpected end of the document within a single quoted scalar`):(e.position++,a=e.position);F(e,`unexpected end of the stream within a single quoted scalar`)}function ne(e,t){var n,r,a,o,s,c=e.input.charCodeAt(e.position);if(c!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(c=e.input.charCodeAt(e.position))!==0;)if(c===34)return R(e,n,e.position,!0),e.position++,!0;else if(c===92){if(R(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),S(c))H(e,!1,t);else if(c<256&&M[c])e.result+=N[c],e.position++;else if((s=D(c))>0){for(a=s,o=0;a>0;a--)c=e.input.charCodeAt(++e.position),(s=E(c))>=0?o=(o<<4)+s:F(e,`expected hexadecimal character`);e.result+=A(o),e.position++}else F(e,`unknown escape sequence`);n=r=e.position}else S(c)?(R(e,n,r,!0),W(e,H(e,!1,t)),n=r=e.position):e.position===e.lineStart&&U(e)?F(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);F(e,`unexpected end of the stream within a double quoted scalar`)}function q(e,t){var n=!0,r,a=e.tag,o,s=e.anchor,c,u,d,f,p,m={},h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,o=[];else if(v===123)u=125,p=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),v=e.input.charCodeAt(++e.position);v!==0;){if(H(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=a,e.anchor=s,e.kind=p?`mapping`:`sequence`,e.result=o,!0;n||F(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(c=e.input.charCodeAt(e.position+1),w(c)&&(d=f=!0,e.position++,H(e,!0,t))),r=e.line,X(e,t,l,!1,!0),g=e.tag,h=e.result,H(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),H(e,!0,t),X(e,t,l,!1,!0),_=e.result),p?B(e,o,m,g,h,_):d?o.push(B(e,null,m,g,h,_)):o.push(h),H(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}F(e,`unexpected end of the stream within a flow collection`)}function J(e,t){var r,a,o=p,s=!1,c=!1,l=t,u=0,d=!1,f,g=e.input.charCodeAt(e.position);if(g===124)a=!1;else if(g===62)a=!0;else return!1;for(e.kind=`scalar`,e.result=``;g!==0;)if(g=e.input.charCodeAt(++e.position),g===43||g===45)p===o?o=g===43?h:m:F(e,`repeat of a chomping mode identifier`);else if((f=O(g))>=0)f===0?F(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):c?F(e,`repeat of an indentation width identifier`):(l=t+f-1,c=!0);else break;if(C(g)){do g=e.input.charCodeAt(++e.position);while(C(g));if(g===35)do g=e.input.charCodeAt(++e.position);while(!S(g)&&g!==0)}for(;g!==0;){for(V(e),e.lineIndent=0,g=e.input.charCodeAt(e.position);(!c||e.lineIndent<l)&&g===32;)e.lineIndent++,g=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>l&&(l=e.lineIndent),S(g)){u++;continue}if(e.lineIndent<l){o===h?e.result+=n.repeat(`
111
- `,s?1+u:u):o===p&&s&&(e.result+=`
112
- `);break}for(a?C(g)?(d=!0,e.result+=n.repeat(`
113
- `,s?1+u:u)):d?(d=!1,e.result+=n.repeat(`
114
- `,u+1)):u===0?s&&(e.result+=` `):e.result+=n.repeat(`
115
- `,u):e.result+=n.repeat(`
116
- `,s?1+u:u),s=!0,c=!0,u=0,r=e.position;!S(g)&&g!==0;)g=e.input.charCodeAt(++e.position);R(e,r,e.position,!1)}return!0}function re(e,t){var n,r=e.tag,a=e.anchor,o=[],s,c=!1,l;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),l=e.input.charCodeAt(e.position);l!==0&&!(l!==45||(s=e.input.charCodeAt(e.position+1),!w(s)));){if(c=!0,e.position++,H(e,!0,-1)&&e.lineIndent<=t){o.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,X(e,t,d,!1,!0),o.push(e.result),H(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)F(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return c?(e.tag=r,e.anchor=a,e.kind=`sequence`,e.result=o,!0):!1}function ie(e,t,n){var r,a,o,s,c=e.tag,l=e.anchor,d={},p={},m=null,h=null,g=null,_=!1,v=!1,y;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),y=e.input.charCodeAt(e.position);y!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,s=e.position,(y===63||y===58)&&w(r))y===63?(_&&(B(e,d,p,m,h,null),m=h=g=null),v=!0,_=!0,a=!0):_?(_=!1,a=!0):F(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,y=r;else if(X(e,n,u,!1,!0))if(e.line===o){for(y=e.input.charCodeAt(e.position);C(y);)y=e.input.charCodeAt(++e.position);if(y===58)y=e.input.charCodeAt(++e.position),w(y)||F(e,`a whitespace character is expected after the key-value separator within a block mapping`),_&&(B(e,d,p,m,h,null),m=h=g=null),v=!0,_=!1,a=!1,m=e.tag,h=e.result;else if(v)F(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=c,e.anchor=l,!0}else if(v)F(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=c,e.anchor=l,!0;else break;if((e.line===o||e.lineIndent>t)&&(X(e,t,f,!0,a)&&(_?h=e.result:g=e.result),_||(B(e,d,p,m,h,g,o,s),m=h=g=null),H(e,!0,-1),y=e.input.charCodeAt(e.position)),e.lineIndent>t&&y!==0)F(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return _&&B(e,d,p,m,h,null),v&&(e.tag=c,e.anchor=l,e.kind=`mapping`,e.result=d),v}function Y(e){var t,n=!1,r=!1,a,o,s=e.input.charCodeAt(e.position);if(s!==33)return!1;if(e.tag!==null&&F(e,`duplication of a tag property`),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(r=!0,a=`!!`,s=e.input.charCodeAt(++e.position)):a=`!`,t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):F(e,`unexpected end of the stream within a verbatim tag`)}else{for(;s!==0&&!w(s);)s===33&&(r?F(e,`tag suffix cannot contain exclamation marks`):(a=e.input.slice(t-1,e.position+1),y.test(a)||F(e,`named tag handle cannot contain such characters`),r=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),v.test(o)&&F(e,`tag suffix cannot contain flow indicator characters`)}return o&&!b.test(o)&&F(e,`tag name cannot contain such characters: `+o),n?e.tag=o:c.call(e.tagMap,a)?e.tag=e.tagMap[a]+o:a===`!`?e.tag=`!`+o:a===`!!`?e.tag=`tag:yaml.org,2002:`+o:F(e,`undeclared tag handle "`+a+`"`),!0}function ae(e){var t,n=e.input.charCodeAt(e.position);if(n!==38)return!1;for(e.anchor!==null&&F(e,`duplication of an anchor property`),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!w(n)&&!T(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&F(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(t,e.position),!0}function oe(e){var t,n,r=e.input.charCodeAt(e.position);if(r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!w(r)&&!T(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&F(e,`name of an alias node must contain at least one character`),n=e.input.slice(t,e.position),c.call(e.anchorMap,n)||F(e,`unidentified alias "`+n+`"`),e.result=e.anchorMap[n],H(e,!0,-1),!0}function X(e,t,n,r,a){var o,s,p,m=1,h=!1,g=!1,_,v,y,b,x;if(e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=p=f===n||d===n,r&&H(e,!0,-1)&&(h=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),m===1)for(;Y(e)||ae(e);)H(e,!0,-1)?(h=!0,p=o,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):p=!1;if(p&&=h||a,(m===1||f===n)&&(b=l===n||u===n?t:t+1,x=e.position-e.lineStart,m===1?p&&(re(e,x)||ie(e,x,b))||q(e,b)?g=!0:(s&&J(e,b)||K(e,b)||ne(e,b)?g=!0:oe(e)?(g=!0,(e.tag!==null||e.anchor!==null)&&F(e,`alias node should not have any properties`)):G(e,b,l===n)&&(g=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):m===0&&(g=p&&re(e,x))),e.tag!==null&&e.tag!==`!`)if(e.tag===`?`){for(e.result!==null&&e.kind!==`scalar`&&F(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`),_=0,v=e.implicitTypes.length;_<v;_+=1)if(y=e.implicitTypes[_],y.resolve(e.result)){e.result=y.construct(e.result),e.tag=y.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else c.call(e.typeMap[e.kind||`fallback`],e.tag)?(y=e.typeMap[e.kind||`fallback`][e.tag],e.result!==null&&y.kind!==e.kind&&F(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+y.kind+`", not "`+e.kind+`"`),y.resolve(e.result)?(e.result=y.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):F(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)):F(e,`unknown tag !<`+e.tag+`>`);return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||g}function se(e){var t=e.position,n,r,a,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(H(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!w(s);)s=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&F(e,`directive name must not be less than one character in length`);s!==0;){for(;C(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!S(s));break}if(S(s))break;for(n=e.position;s!==0&&!w(s);)s=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}s!==0&&V(e),c.call(L,r)?L[r](e,r,a):I(e,`unknown document directive "`+r+`"`)}if(H(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,H(e,!0,-1)):o&&F(e,`directives end mark is expected`),X(e,e.lineIndent-1,f,!1,!0),H(e,!0,-1),e.checkLineBreaks&&_.test(e.input.slice(t,e.position))&&I(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&U(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,H(e,!0,-1));return}if(e.position<e.length-1)F(e,`end of the stream or a document separator is expected`);else return}function Z(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
117
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new ee(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,F(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)se(n);return n.documents}function ce(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);var r=Z(e,n);if(typeof t!=`function`)return r;for(var a=0,o=r.length;a<o;a+=1)t(r[a])}function le(e,t){var n=Z(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new r(`expected a single document in the stream, but found more`)}}function Q(e,t,r){return typeof t==`object`&&t&&r===void 0&&(r=t,t=null),ce(e,t,n.extend({schema:o},r))}function ue(e,t){return le(e,n.extend({schema:o},t))}t.exports.loadAll=ce,t.exports.load=le,t.exports.safeLoadAll=Q,t.exports.safeLoad=ue})),require_dumper=__commonJSMin(((e,t)=>{var n=require_common$1(),r=require_exception(),a=require_default_full(),o=require_default_safe(),s=Object.prototype.toString,c=Object.prototype.hasOwnProperty,l=9,u=10,d=13,f=32,p=33,m=34,h=35,g=37,_=38,v=39,y=42,b=44,x=45,S=58,C=61,w=62,T=63,E=64,D=91,O=93,k=96,A=123,j=124,M=125,N={};N[0]=`\\0`,N[7]=`\\a`,N[8]=`\\b`,N[9]=`\\t`,N[10]=`\\n`,N[11]=`\\v`,N[12]=`\\f`,N[13]=`\\r`,N[27]=`\\e`,N[34]=`\\"`,N[92]=`\\\\`,N[133]=`\\N`,N[160]=`\\_`,N[8232]=`\\L`,N[8233]=`\\P`;var P=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`];function ee(e,t){var n,r,a,o,s,l,u;if(t===null)return{};for(n={},r=Object.keys(t),a=0,o=r.length;a<o;a+=1)s=r[a],l=String(t[s]),s.slice(0,2)===`!!`&&(s=`tag:yaml.org,2002:`+s.slice(2)),u=e.compiledTypeMap.fallback[s],u&&c.call(u.styleAliases,l)&&(l=u.styleAliases[l]),n[s]=l;return n}function te(e){var t=e.toString(16).toUpperCase(),a,o;if(e<=255)a=`x`,o=2;else if(e<=65535)a=`u`,o=4;else if(e<=4294967295)a=`U`,o=8;else throw new r(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+a+n.repeat(`0`,o-t.length)+t}function F(e){this.schema=e.schema||a,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=ee(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function I(e,t){for(var r=n.repeat(` `,t),a=0,o=-1,s=``,c,l=e.length;a<l;)o=e.indexOf(`
118
- `,a),o===-1?(c=e.slice(a),a=l):(c=e.slice(a,o+1),a=o+1),c.length&&c!==`
119
- `&&(s+=r),s+=c;return s}function L(e,t){return`
120
- `+n.repeat(` `,e.indent*t)}function R(e,t){var n,r,a;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(a=e.implicitTypes[n],a.resolve(t))return!0;return!1}function z(e){return e===f||e===l}function B(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function V(e){return B(e)&&!z(e)&&e!==65279&&e!==d&&e!==u}function H(e,t){return B(e)&&e!==65279&&e!==b&&e!==D&&e!==O&&e!==A&&e!==M&&e!==S&&(e!==h||t&&V(t))}function U(e){return B(e)&&e!==65279&&!z(e)&&e!==x&&e!==T&&e!==S&&e!==b&&e!==D&&e!==O&&e!==A&&e!==M&&e!==h&&e!==_&&e!==y&&e!==p&&e!==j&&e!==C&&e!==w&&e!==v&&e!==m&&e!==g&&e!==E&&e!==k}function W(e){return/^\n* /.test(e)}var G=1,K=2,ne=3,q=4,J=5;function re(e,t,n,r,a){var o,s,c,l=!1,d=!1,f=r!==-1,p=-1,m=U(e.charCodeAt(0))&&!z(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),!B(s))return J;c=o>0?e.charCodeAt(o-1):null,m&&=H(s,c)}else{for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),s===u)l=!0,f&&(d||=o-p-1>r&&e[p+1]!==` `,p=o);else if(!B(s))return J;c=o>0?e.charCodeAt(o-1):null,m&&=H(s,c)}d||=f&&o-p-1>r&&e[p+1]!==` `}return!l&&!d?m&&!a(e)?G:K:n>9&&W(e)?J:d?q:ne}function ie(e,t,n,a){e.dump=function(){if(t.length===0)return`''`;if(!e.noCompatMode&&P.indexOf(t)!==-1)return`'`+t+`'`;var o=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),c=a||e.flowLevel>-1&&n>=e.flowLevel;function l(t){return R(e,t)}switch(re(t,c,e.indent,s,l)){case G:return t;case K:return`'`+t.replace(/'/g,`''`)+`'`;case ne:return`|`+Y(t,e.indent)+ae(I(t,o));case q:return`>`+Y(t,e.indent)+ae(I(oe(t,s),o));case J:return`"`+se(t,s)+`"`;default:throw new r(`impossible error: invalid scalar style`)}}()}function Y(e,t){var n=W(e)?String(t):``,r=e[e.length-1]===`
121
- `;return n+(r&&(e[e.length-2]===`
122
- `||e===`
123
- `)?`+`:r?``:`-`)+`
124
- `}function ae(e){return e[e.length-1]===`
125
- `?e.slice(0,-1):e}function oe(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var r=e.indexOf(`
126
- `);return r=r===-1?e.length:r,n.lastIndex=r,X(e.slice(0,r),t)}(),a=e[0]===`
127
- `||e[0]===` `,o,s;s=n.exec(e);){var c=s[1],l=s[2];o=l[0]===` `,r+=c+(!a&&!o&&l!==``?`
128
- `:``)+X(l,t),a=o}return r}function X(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,a=0,o,s=0,c=0,l=``;r=n.exec(e);)c=r.index,c-a>t&&(o=s>a?s:c,l+=`
129
- `+e.slice(a,o),a=o+1),s=c;return l+=`
130
- `,e.length-a>t&&s>a?l+=e.slice(a,s)+`
131
- `+e.slice(s+1):l+=e.slice(a),l.slice(1)}function se(e){for(var t=``,n,r,a,o=0;o<e.length;o++){if(n=e.charCodeAt(o),n>=55296&&n<=56319&&(r=e.charCodeAt(o+1),r>=56320&&r<=57343)){t+=te((n-55296)*1024+r-56320+65536),o++;continue}a=N[n],t+=!a&&B(n)?e[o]:a||te(n)}return t}function Z(e,t,n){var r=``,a=e.tag,o,s;for(o=0,s=n.length;o<s;o+=1)$(e,t,n[o],!1,!1)&&(o!==0&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump);e.tag=a,e.dump=`[`+r+`]`}function ce(e,t,n,r){var a=``,o=e.tag,s,c;for(s=0,c=n.length;s<c;s+=1)$(e,t+1,n[s],!0,!0)&&((!r||s!==0)&&(a+=L(e,t)),e.dump&&u===e.dump.charCodeAt(0)?a+=`-`:a+=`- `,a+=e.dump);e.tag=o,e.dump=a||`[]`}function le(e,t,n){var r=``,a=e.tag,o=Object.keys(n),s,c,l,u,d;for(s=0,c=o.length;s<c;s+=1)d=``,s!==0&&(d+=`, `),e.condenseFlow&&(d+=`"`),l=o[s],u=n[l],$(e,t,l,!1,!1)&&(e.dump.length>1024&&(d+=`? `),d+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),$(e,t,u,!1,!1)&&(d+=e.dump,r+=d));e.tag=a,e.dump=`{`+r+`}`}function Q(e,t,n,a){var o=``,s=e.tag,c=Object.keys(n),l,d,f,p,m,h;if(e.sortKeys===!0)c.sort();else if(typeof e.sortKeys==`function`)c.sort(e.sortKeys);else if(e.sortKeys)throw new r(`sortKeys must be a boolean or a function`);for(l=0,d=c.length;l<d;l+=1)h=``,(!a||l!==0)&&(h+=L(e,t)),f=c[l],p=n[f],$(e,t+1,f,!0,!0,!0)&&(m=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024,m&&(e.dump&&u===e.dump.charCodeAt(0)?h+=`?`:h+=`? `),h+=e.dump,m&&(h+=L(e,t)),$(e,t+1,p,!0,m)&&(e.dump&&u===e.dump.charCodeAt(0)?h+=`:`:h+=`: `,h+=e.dump,o+=h));e.tag=s,e.dump=o||`{}`}function ue(e,t,n){var a,o=n?e.explicitTypes:e.implicitTypes,l,u,d,f;for(l=0,u=o.length;l<u;l+=1)if(d=o[l],(d.instanceOf||d.predicate)&&(!d.instanceOf||typeof t==`object`&&t instanceof d.instanceOf)&&(!d.predicate||d.predicate(t))){if(e.tag=n?d.tag:`?`,d.represent){if(f=e.styleMap[d.tag]||d.defaultStyle,s.call(d.represent)===`[object Function]`)a=d.represent(t,f);else if(c.call(d.represent,f))a=d.represent[f](t,f);else throw new r(`!<`+d.tag+`> tag resolver accepts not "`+f+`" style`);e.dump=a}return!0}return!1}function $(e,t,n,a,o,c){e.tag=null,e.dump=n,ue(e,n,!1)||ue(e,n,!0);var l=s.call(e.dump);a&&=e.flowLevel<0||e.flowLevel>t;var u=l===`[object Object]`||l===`[object Array]`,d,f;if(u&&(d=e.duplicates.indexOf(n),f=d!==-1),(e.tag!==null&&e.tag!==`?`||f||e.indent!==2&&t>0)&&(o=!1),f&&e.usedDuplicates[d])e.dump=`*ref_`+d;else{if(u&&f&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),l===`[object Object]`)a&&Object.keys(e.dump).length!==0?(Q(e,t,e.dump,o),f&&(e.dump=`&ref_`+d+e.dump)):(le(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(l===`[object Array]`){var p=e.noArrayIndent&&t>0?t-1:t;a&&e.dump.length!==0?(ce(e,p,e.dump,o),f&&(e.dump=`&ref_`+d+e.dump)):(Z(e,p,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump))}else if(l===`[object String]`)e.tag!==`?`&&ie(e,e.dump,t,c);else{if(e.skipInvalid)return!1;throw new r(`unacceptable kind of an object to dump `+l)}e.tag!==null&&e.tag!==`?`&&(e.dump=`!<`+e.tag+`> `+e.dump)}return!0}function de(e,t){var n=[],r=[],a,o;for(fe(e,n,r),a=0,o=r.length;a<o;a+=1)t.duplicates.push(n[r[a]]);t.usedDuplicates=Array(o)}function fe(e,t,n){var r,a,o;if(typeof e==`object`&&e)if(a=t.indexOf(e),a!==-1)n.indexOf(a)===-1&&n.push(a);else if(t.push(e),Array.isArray(e))for(a=0,o=e.length;a<o;a+=1)fe(e[a],t,n);else for(r=Object.keys(e),a=0,o=r.length;a<o;a+=1)fe(e[r[a]],t,n)}function pe(e,t){t||={};var n=new F(t);return n.noRefs||de(e,n),$(n,0,e,!0,!0)?n.dump+`
132
- `:``}function me(e,t){return pe(e,n.extend({schema:o},t))}t.exports.dump=pe,t.exports.safeDump=me})),require_js_yaml$1=__commonJSMin(((e,t)=>{var n=require_loader(),r=require_dumper();function a(e){return function(){throw Error(`Function `+e+` is deprecated and cannot be used.`)}}t.exports.Type=require_type(),t.exports.Schema=require_schema(),t.exports.FAILSAFE_SCHEMA=require_failsafe(),t.exports.JSON_SCHEMA=require_json(),t.exports.CORE_SCHEMA=require_core(),t.exports.DEFAULT_SAFE_SCHEMA=require_default_safe(),t.exports.DEFAULT_FULL_SCHEMA=require_default_full(),t.exports.load=n.load,t.exports.loadAll=n.loadAll,t.exports.safeLoad=n.safeLoad,t.exports.safeLoadAll=n.safeLoadAll,t.exports.dump=r.dump,t.exports.safeDump=r.safeDump,t.exports.YAMLException=require_exception(),t.exports.MINIMAL_SCHEMA=require_failsafe(),t.exports.SAFE_SCHEMA=require_default_safe(),t.exports.DEFAULT_SCHEMA=require_default_full(),t.exports.scan=a(`scan`),t.exports.parse=a(`parse`),t.exports.compose=a(`compose`),t.exports.addConstructor=a(`addConstructor`)})),require_js_yaml=__commonJSMin(((e,t)=>{t.exports=require_js_yaml$1()})),require_engines=__commonJSMin(((exports,module)=>{var yaml=require_js_yaml(),engines=exports=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(e,t){let n=Object.assign({replacer:null,space:2},t);return JSON.stringify(e,n.replacer,n.space)}},engines.javascript={parse:function parse(str,options,wrap){try{return wrap!==!1&&(str=`(function() {
133
- return `+str.trim()+`;
134
- }());`),eval(str)||{}}catch(e){if(wrap!==!1&&/(unexpected|identifier)/i.test(e.message))return parse(str,options,!1);throw SyntaxError(e)}},stringify:function(){throw Error(`stringifying JavaScript is not supported`)}}})),require_strip_bom_string=__commonJSMin(((e,t)=>{t.exports=function(e){return typeof e==`string`&&e.charAt(0)===``?e.slice(1):e}})),require_utils=__commonJSMin((e=>{var t=require_strip_bom_string(),n=require_kind_of();e.define=function(e,t,n){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},e.isBuffer=function(e){return n(e)===`buffer`},e.isObject=function(e){return n(e)===`object`},e.toBuffer=function(e){return typeof e==`string`?Buffer.from(e):e},e.toString=function(n){if(e.isBuffer(n))return t(String(n));if(typeof n!=`string`)throw TypeError(`expected input to be a string or buffer`);return t(n)},e.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},e.startsWith=function(e,t,n){return typeof n!=`number`&&(n=t.length),e.slice(0,n)===t}})),require_defaults=__commonJSMin(((e,t)=>{var n=require_engines(),r=require_utils();t.exports=function(e){let t=Object.assign({},e);return t.delimiters=r.arrayify(t.delims||t.delimiters||`---`),t.delimiters.length===1&&t.delimiters.push(t.delimiters[0]),t.language=(t.language||t.lang||`yaml`).toLowerCase(),t.engines=Object.assign({},n,t.parsers,t.engines),t}})),require_engine=__commonJSMin(((e,t)=>{t.exports=function(e,t){let r=t.engines[e]||t.engines[n(e)];if(r===void 0)throw Error(`gray-matter engine "`+e+`" is not registered`);return typeof r==`function`&&(r={parse:r}),r};function n(e){switch(e.toLowerCase()){case`js`:case`javascript`:return`javascript`;case`coffee`:case`coffeescript`:case`cson`:return`coffee`;case`yaml`:case`yml`:return`yaml`;default:return e}}})),require_stringify=__commonJSMin(((e,t)=>{var n=require_kind_of(),r=require_engine(),a=require_defaults();t.exports=function(e,t,s){if(t==null&&s==null)switch(n(e)){case`object`:t=e.data,s={};break;case`string`:return e;default:throw TypeError(`expected file to be a string or object`)}let c=e.content,l=a(s);if(t==null){if(!l.data)return e;t=l.data}let u=e.language||l.language,d=r(u,l);if(typeof d.stringify!=`function`)throw TypeError(`expected "`+u+`.stringify" to be a function`);t=Object.assign({},e.data,t);let f=l.delimiters[0],p=l.delimiters[1],m=d.stringify(t,s).trim(),h=``;return m!==`{}`&&(h=o(f)+o(m)+o(p)),typeof e.excerpt==`string`&&e.excerpt!==``&&c.indexOf(e.excerpt.trim())===-1&&(h+=o(e.excerpt)+o(p)),h+o(c)};function o(e){return e.slice(-1)===`
135
- `?e:e+`
136
- `}})),require_excerpt=__commonJSMin(((e,t)=>{var n=require_defaults();t.exports=function(e,t){let r=n(t);if(e.data??={},typeof r.excerpt==`function`)return r.excerpt(e,r);let a=e.data.excerpt_separator||r.excerpt_separator;if(a==null&&(r.excerpt===!1||r.excerpt==null))return e;let o=typeof r.excerpt==`string`?r.excerpt:a||r.delimiters[0],s=e.content.indexOf(o);return s!==-1&&(e.excerpt=e.content.slice(0,s)),e}})),require_to_file=__commonJSMin(((e,t)=>{var n=require_kind_of(),r=require_stringify(),a=require_utils();t.exports=function(e){return n(e)!==`object`&&(e={content:e}),n(e.data)!==`object`&&(e.data={}),e.contents&&e.content==null&&(e.content=e.contents),a.define(e,`orig`,a.toBuffer(e.content)),a.define(e,`language`,e.language||``),a.define(e,`matter`,e.matter||``),a.define(e,`stringify`,function(t,n){return n&&n.language&&(e.language=n.language),r(e,t,n)}),e.content=a.toString(e.content),e.isEmpty=!1,e.excerpt=``,e}})),require_parse=__commonJSMin(((e,t)=>{var n=require_engine(),r=require_defaults();t.exports=function(e,t,a){let o=r(a),s=n(e,o);if(typeof s.parse!=`function`)throw TypeError(`expected "`+e+`.parse" to be a function`);return s.parse(t,o)}})),require_gray_matter=__commonJSMin(((e,t)=>{var n=require___vite_browser_external(),r=require_section_matter(),a=require_defaults(),o=require_stringify(),s=require_excerpt(),c=require_engines(),l=require_to_file(),u=require_parse(),d=require_utils();function f(e,t){if(e===``)return{data:{},content:e,excerpt:``,orig:e};let n=l(e),r=f.cache[n.content];if(!t){if(r)return n=Object.assign({},r),n.orig=r.orig,n;f.cache[n.content]=n}return p(n,t)}function p(e,t){let n=a(t),o=n.delimiters[0],c=`
137
- `+n.delimiters[1],l=e.content;n.language&&(e.language=n.language);let p=o.length;if(!d.startsWith(l,o,p))return s(e,n),e;if(l.charAt(p)===o.slice(-1))return e;l=l.slice(p);let m=l.length,h=f.language(l,n);h.name&&(e.language=h.name,l=l.slice(h.raw.length));let g=l.indexOf(c);return g===-1&&(g=m),e.matter=l.slice(0,g),e.matter.replace(/^\s*#[^\n]+/gm,``).trim()===``?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=u(e.language,e.matter,n),g===m?e.content=``:(e.content=l.slice(g+c.length),e.content[0]===`\r`&&(e.content=e.content.slice(1)),e.content[0]===`
138
- `&&(e.content=e.content.slice(1))),s(e,n),(n.sections===!0||typeof n.section==`function`)&&r(e,n.section),e}f.engines=c,f.stringify=function(e,t,n){return typeof e==`string`&&(e=f(e,n)),o(e,t,n)},f.read=function(e,t){let r=f(n.readFileSync(e,`utf8`),t);return r.path=e,r},f.test=function(e,t){return d.startsWith(e,a(t).delimiters[0])},f.language=function(e,t){let n=a(t).delimiters[0];f.test(e)&&(e=e.slice(n.length));let r=e.slice(0,e.search(/\r?\n/));return{raw:r,name:r?r.trim():``}},f.cache={},f.clearCache=function(){f.cache={}},t.exports=f})),import_gray_matter=__toESM(require_gray_matter(),1),AGENTS_HOME=getAgentsHome(),LOCK_FILE_PATH=getLockFilePath(),AGENTS_MCP_DIR=getAgentsMcpDir(),AGENTS_MCP_SERVERS_PATH=getAgentsMcpServersPath(),AGENTS_CONFIG_PATH=getAgentsConfigPath(),require_ms=__commonJSMin(((e,t)=>{var n=1e3,r=n*60,a=r*60,o=a*24,s=o*7,c=o*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return l(e);if(n===`number`&&isFinite(e))return t.long?d(e):u(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function l(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var l=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return l*c;case`weeks`:case`week`:case`w`:return l*s;case`days`:case`day`:case`d`:return l*o;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return l*a;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return l*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return l*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return l;default:return}}}}function u(e){var t=Math.abs(e);return t>=o?Math.round(e/o)+`d`:t>=a?Math.round(e/a)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function d(e){var t=Math.abs(e);return t>=o?f(e,t,o,`day`):t>=a?f(e,t,a,`hour`):t>=r?f(e,t,r,`minute`):t>=n?f(e,t,n,`second`):e+` ms`}function f(e,t,n,r){var a=t>=n*1.5;return Math.round(e/n)+` `+r+(a?`s`:``)}})),require_common=__commonJSMin(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=l,n.disable=s,n.enable=a,n.enabled=c,n.humanize=require_ms(),n.destroy=u,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,a=null,o,s;function c(...e){if(!c.enabled)return;let r=c,a=Number(new Date);r.diff=a-(t||a),r.prev=t,r.curr=a,t=a,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,a)=>{if(t===`%%`)return`%`;o++;let s=n.formatters[a];if(typeof s==`function`){let n=e[o];t=s.call(r,n),e.splice(o,1),o--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return c.namespace=e,c.useColors=n.useColors(),c.color=n.selectColor(e),c.extend=r,c.destroy=n.destroy,Object.defineProperty(c,`enabled`,{enumerable:!0,configurable:!1,get:()=>a===null?(o!==n.namespaces&&(o=n.namespaces,s=n.enabled(e)),s):a,set:e=>{a=e}}),typeof n.init==`function`&&n.init(c),c}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function a(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function o(e,t){let n=0,r=0,a=-1,o=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(a=r,o=n,r++):(n++,r++);else if(a!==-1)r=a+1,o++,n=o;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function s(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function c(e){for(let t of n.skips)if(o(e,t))return!1;for(let t of n.names)if(o(e,t))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),require_browser=__commonJSMin(((e,t)=>{e.formatArgs=r,e.save=a,e.load=o,e.useColors=n,e.storage=s(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,a=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(a=r))}),e.splice(a,0,n)}e.log=console.debug||console.log||(()=>{});function a(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function o(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t={}.DEBUG),t}function s(){try{return localStorage}catch{}}t.exports=require_common()(e);var{formatters:c}=t.exports;c.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),require_src=__commonJSMin((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=require___vite_browser_external(),r=t(require_browser()).default(`@kwsites/file-exists`);function a(e,t,a){r(`checking %s`,e);try{let o=n.statSync(e);return o.isFile()&&t?(r(`[OK] path represents a file`),!0):o.isDirectory()&&a?(r(`[OK] path represents a directory`),!0):(r(`[FAIL] path represents something other than a file or directory`),!1)}catch(e){if(e.code===`ENOENT`)return r(`[FAIL] path is not accessible: %o`,e),!1;throw r(`[FATAL] %o`,e),e}}function o(t,n=e.READABLE){return a(t,(n&e.FILE)>0,(n&e.FOLDER)>0)}e.exists=o,e.FILE=1,e.FOLDER=2,e.READABLE=e.FILE+e.FOLDER})),require_dist$1=__commonJSMin((e=>{function t(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,`__esModule`,{value:!0}),t(require_src())})),require_dist=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createDeferred=e.deferred=void 0;function t(){let e,t,n=`pending`;return{promise:new Promise((n,r)=>{e=n,t=r}),done(t){n===`pending`&&(n=`resolved`,e(t))},fail(e){n===`pending`&&(n=`rejected`,t(e))},get fulfilled(){return n!==`pending`},get status(){return n}}}e.deferred=t,e.createDeferred=t})),import_dist=require_dist$1(),import_browser=__toESM(require_browser()),import_dist$1=require_dist(),__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__esm=(e,t)=>function(){return e&&(t=(0,e[__getOwnPropNames(e)[0]])(e=0)),t},__commonJS=(e,t)=>function(){return t||(0,e[__getOwnPropNames(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(e,t)=>{for(var n in t)__defProp(e,n,{get:t[n],enumerable:!0})},__copyProps=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let a of __getOwnPropNames(t))!__hasOwnProp.call(e,a)&&a!==n&&__defProp(e,a,{get:()=>t[a],enumerable:!(r=__getOwnPropDesc(t,a))||r.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},`__esModule`,{value:!0}),e);function pathspec(...e){let t=new String(e);return cache.set(t,e),t}function isPathSpec(e){return e instanceof String&&cache.has(e)}var cache,init_pathspec=__esm({"src/lib/args/pathspec.ts"(){cache=new WeakMap}}),GitError,init_git_error=__esm({"src/lib/errors/git-error.ts"(){GitError=class extends Error{constructor(e,t){super(t),this.task=e,Object.setPrototypeOf(this,new.target.prototype)}}}}),GitResponseError,init_git_response_error=__esm({"src/lib/errors/git-response-error.ts"(){init_git_error(),GitResponseError=class extends GitError{constructor(e,t){super(void 0,t||String(e)),this.git=e}}}}),TaskConfigurationError,init_task_configuration_error=__esm({"src/lib/errors/task-configuration-error.ts"(){init_git_error(),TaskConfigurationError=class extends GitError{constructor(e){super(void 0,e)}}}});function asFunction(e){return typeof e==`function`?e:NOOP}function isUserFunction(e){return typeof e==`function`&&e!==NOOP}function splitOn(e,t){let n=e.indexOf(t);return n<=0?[e,``]:[e.substr(0,n),e.substr(n+1)]}function first(e,t=0){return isArrayLike(e)&&e.length>t?e[t]:void 0}function last(e,t=0){if(isArrayLike(e)&&e.length>t)return e[e.length-1-t]}function isArrayLike(e){return filterHasLength(e)}function toLinesWithContent(e=``,t=!0,n=`
139
- `){return e.split(n).reduce((e,n)=>{let r=t?n.trim():n;return r&&e.push(r),e},[])}function forEachLineWithContent(e,t){return toLinesWithContent(e,!0).map(e=>t(e))}function folderExists(e){return(0,import_dist.exists)(e,import_dist.FOLDER)}function append(e,t){return Array.isArray(e)?e.includes(t)||e.push(t):e.add(t),t}function including(e,t){return Array.isArray(e)&&!e.includes(t)&&e.push(t),e}function remove(e,t){if(Array.isArray(e)){let n=e.indexOf(t);n>=0&&e.splice(n,1)}else e.delete(t);return t}function asArray(e){return Array.isArray(e)?e:[e]}function asCamelCase(e){return e.replace(/[\s-]+(.)/g,(e,t)=>t.toUpperCase())}function asStringArray(e){return asArray(e).map(e=>e instanceof String?e:String(e))}function asNumber(e,t=0){if(e==null)return t;let n=parseInt(e,10);return Number.isNaN(n)?t:n}function prefixedArray(e,t){let n=[];for(let r=0,a=e.length;r<a;r++)n.push(t,e[r]);return n}function bufferToString(e){return(Array.isArray(e)?import___vite_browser_external.Buffer.concat(e):e).toString(`utf-8`)}function pick(e,t){let n={};return t.forEach(t=>{e[t]!==void 0&&(n[t]=e[t])}),n}function delay(e=0){return new Promise(t=>setTimeout(t,e))}function orVoid(e){if(e!==!1)return e}var NULL,NOOP,objectToString,init_util=__esm({"src/lib/utils/util.ts"(){init_argument_filters(),NULL=`\0`,NOOP=()=>{},objectToString=Object.prototype.toString.call.bind(Object.prototype.toString)}});function filterType(e,t,n){return t(e)?e:arguments.length>2?n:void 0}function filterPrimitives(e,t){let n=isPathSpec(e)?`string`:typeof e;return/number|string|boolean/.test(n)&&(!t||!t.includes(n))}function filterPlainObject(e){return!!e&&objectToString(e)===`[object Object]`}function filterFunction(e){return typeof e==`function`}var filterArray,filterNumber,filterString,filterStringOrStringArray,filterHasLength,init_argument_filters=__esm({"src/lib/utils/argument-filters.ts"(){init_pathspec(),init_util(),filterArray=e=>Array.isArray(e),filterNumber=e=>typeof e==`number`,filterString=e=>typeof e==`string`||isPathSpec(e),filterStringOrStringArray=e=>filterString(e)||Array.isArray(e)&&e.every(filterString),filterHasLength=e=>e==null||`number|boolean|function`.includes(typeof e)?!1:typeof e.length==`number`}}),ExitCodes,init_exit_codes=__esm({"src/lib/utils/exit-codes.ts"(){ExitCodes=(e=>(e[e.SUCCESS=0]=`SUCCESS`,e[e.ERROR=1]=`ERROR`,e[e.NOT_FOUND=-2]=`NOT_FOUND`,e[e.UNCLEAN=128]=`UNCLEAN`,e))(ExitCodes||{})}}),GitOutputStreams,init_git_output_streams=__esm({"src/lib/utils/git-output-streams.ts"(){GitOutputStreams=class e{constructor(e,t){this.stdOut=e,this.stdErr=t}asStrings(){return new e(this.stdOut.toString(`utf8`),this.stdErr.toString(`utf8`))}}}});function useMatchesDefault(){throw Error(`LineParser:useMatches not implemented`)}var LineParser,RemoteLineParser,init_line_parser=__esm({"src/lib/utils/line-parser.ts"(){LineParser=class{constructor(e,t){this.matches=[],this.useMatches=useMatchesDefault,this.parse=(e,t)=>(this.resetMatches(),this._regExp.every((t,n)=>this.addMatch(t,n,e(n)))?this.useMatches(t,this.prepareMatches())!==!1:!1),this._regExp=Array.isArray(e)?e:[e],t&&(this.useMatches=t)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,n){let r=n&&e.exec(n);return r&&this.pushMatch(t,r),!!r}pushMatch(e,t){this.matches.push(...t.slice(1))}},RemoteLineParser=class extends LineParser{addMatch(e,t,n){return/^remote:\s/.test(String(n))&&super.addMatch(e,t,n)}pushMatch(e,t){(e>0||t.length>1)&&super.pushMatch(e,t)}}}});function createInstanceConfig(...e){let t=process.cwd(),n=Object.assign({baseDir:t,...defaultOptions},...e.filter(e=>typeof e==`object`&&e));return n.baseDir=n.baseDir||t,n.trimmed=n.trimmed===!0,n}var defaultOptions,init_simple_git_options=__esm({"src/lib/utils/simple-git-options.ts"(){defaultOptions={binary:`git`,maxConcurrentProcesses:5,config:[],trimmed:!1}}});function appendTaskOptions(e,t=[]){return filterPlainObject(e)?Object.keys(e).reduce((t,n)=>{let r=e[n];if(isPathSpec(r))t.push(r);else if(filterPrimitives(r,[`boolean`]))t.push(n+`=`+r);else if(Array.isArray(r))for(let e of r)filterPrimitives(e,[`string`,`number`])||t.push(n+`=`+e);else t.push(n);return t},t):t}function getTrailingOptions(e,t=0,n=!1){let r=[];for(let n=0,a=t<0?e.length:t;n<a;n++)`string|number`.includes(typeof e[n])&&r.push(String(e[n]));return appendTaskOptions(trailingOptionsArgument(e),r),n||r.push(...trailingArrayArgument(e)),r}function trailingArrayArgument(e){return asStringArray(filterType(last(e,+(typeof last(e)==`function`)),filterArray,[]))}function trailingOptionsArgument(e){return filterType(last(e,+!!filterFunction(last(e))),filterPlainObject)}function trailingFunctionArgument(e,t=!0){let n=asFunction(last(e));return t||isUserFunction(n)?n:void 0}var init_task_options=__esm({"src/lib/utils/task-options.ts"(){init_argument_filters(),init_util(),init_pathspec()}});function callTaskParser(e,t){return e(t.stdOut,t.stdErr)}function parseStringResponse(e,t,n,r=!0){return asArray(n).forEach(n=>{for(let a=toLinesWithContent(n,r),o=0,s=a.length;o<s;o++){let n=(e=0)=>{if(!(o+e>=s))return a[o+e]};t.some(({parse:t})=>t(n,e))}}),e}var init_task_parser=__esm({"src/lib/utils/task-parser.ts"(){init_util()}}),utils_exports={};__export(utils_exports,{ExitCodes:()=>ExitCodes,GitOutputStreams:()=>GitOutputStreams,LineParser:()=>LineParser,NOOP:()=>NOOP,NULL:()=>NULL,RemoteLineParser:()=>RemoteLineParser,append:()=>append,appendTaskOptions:()=>appendTaskOptions,asArray:()=>asArray,asCamelCase:()=>asCamelCase,asFunction:()=>asFunction,asNumber:()=>asNumber,asStringArray:()=>asStringArray,bufferToString:()=>bufferToString,callTaskParser:()=>callTaskParser,createInstanceConfig:()=>createInstanceConfig,delay:()=>delay,filterArray:()=>filterArray,filterFunction:()=>filterFunction,filterHasLength:()=>filterHasLength,filterNumber:()=>filterNumber,filterPlainObject:()=>filterPlainObject,filterPrimitives:()=>filterPrimitives,filterString:()=>filterString,filterStringOrStringArray:()=>filterStringOrStringArray,filterType:()=>filterType,first:()=>first,folderExists:()=>folderExists,forEachLineWithContent:()=>forEachLineWithContent,getTrailingOptions:()=>getTrailingOptions,including:()=>including,isUserFunction:()=>isUserFunction,last:()=>last,objectToString:()=>objectToString,orVoid:()=>orVoid,parseStringResponse:()=>parseStringResponse,pick:()=>pick,prefixedArray:()=>prefixedArray,remove:()=>remove,splitOn:()=>splitOn,toLinesWithContent:()=>toLinesWithContent,trailingFunctionArgument:()=>trailingFunctionArgument,trailingOptionsArgument:()=>trailingOptionsArgument});var init_utils=__esm({"src/lib/utils/index.ts"(){init_argument_filters(),init_exit_codes(),init_git_output_streams(),init_line_parser(),init_simple_git_options(),init_task_options(),init_task_parser(),init_util()}}),check_is_repo_exports={};__export(check_is_repo_exports,{CheckRepoActions:()=>CheckRepoActions,checkIsBareRepoTask:()=>checkIsBareRepoTask,checkIsRepoRootTask:()=>checkIsRepoRootTask,checkIsRepoTask:()=>checkIsRepoTask});function checkIsRepoTask(e){switch(e){case`bare`:return checkIsBareRepoTask();case`root`:return checkIsRepoRootTask()}return{commands:[`rev-parse`,`--is-inside-work-tree`],format:`utf-8`,onError,parser}}function checkIsRepoRootTask(){return{commands:[`rev-parse`,`--git-dir`],format:`utf-8`,onError,parser(e){return/^\.(git)?$/.test(e.trim())}}}function checkIsBareRepoTask(){return{commands:[`rev-parse`,`--is-bare-repository`],format:`utf-8`,onError,parser}}function isNotRepoMessage(e){return/(Not a git repository|Kein Git-Repository)/i.test(String(e))}var CheckRepoActions,onError,parser,init_check_is_repo=__esm({"src/lib/tasks/check-is-repo.ts"(){init_utils(),CheckRepoActions=(e=>(e.BARE=`bare`,e.IN_TREE=`tree`,e.IS_REPO_ROOT=`root`,e))(CheckRepoActions||{}),onError=({exitCode:e},t,n,r)=>{if(e===128&&isNotRepoMessage(t))return n(Buffer.from(`false`));r(t)},parser=e=>e.trim()===`true`}});function cleanSummaryParser(e,t){let n=new CleanResponse(e),r=e?dryRunRemovalRegexp:removalRegexp;return toLinesWithContent(t).forEach(e=>{let t=e.replace(r,``);n.paths.push(t),(isFolderRegexp.test(t)?n.folders:n.files).push(t)}),n}var CleanResponse,removalRegexp,dryRunRemovalRegexp,isFolderRegexp,init_CleanSummary=__esm({"src/lib/responses/CleanSummary.ts"(){init_utils(),CleanResponse=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}},removalRegexp=/^[a-z]+\s*/i,dryRunRemovalRegexp=/^[a-z]+\s+[a-z]+\s*/i,isFolderRegexp=/\/$/}}),task_exports={};__export(task_exports,{EMPTY_COMMANDS:()=>EMPTY_COMMANDS,adhocExecTask:()=>adhocExecTask,configurationErrorTask:()=>configurationErrorTask,isBufferTask:()=>isBufferTask,isEmptyTask:()=>isEmptyTask,straightThroughBufferTask:()=>straightThroughBufferTask,straightThroughStringTask:()=>straightThroughStringTask});function adhocExecTask(e){return{commands:EMPTY_COMMANDS,format:`empty`,parser:e}}function configurationErrorTask(e){return{commands:EMPTY_COMMANDS,format:`empty`,parser(){throw typeof e==`string`?new TaskConfigurationError(e):e}}}function straightThroughStringTask(e,t=!1){return{commands:e,format:`utf-8`,parser(e){return t?String(e).trim():e}}}function straightThroughBufferTask(e){return{commands:e,format:`buffer`,parser(e){return e}}}function isBufferTask(e){return e.format===`buffer`}function isEmptyTask(e){return e.format===`empty`||!e.commands.length}var EMPTY_COMMANDS,init_task=__esm({"src/lib/tasks/task.ts"(){init_task_configuration_error(),EMPTY_COMMANDS=[]}}),clean_exports={};__export(clean_exports,{CONFIG_ERROR_INTERACTIVE_MODE:()=>CONFIG_ERROR_INTERACTIVE_MODE,CONFIG_ERROR_MODE_REQUIRED:()=>CONFIG_ERROR_MODE_REQUIRED,CONFIG_ERROR_UNKNOWN_OPTION:()=>CONFIG_ERROR_UNKNOWN_OPTION,CleanOptions:()=>CleanOptions,cleanTask:()=>cleanTask,cleanWithOptionsTask:()=>cleanWithOptionsTask,isCleanOptionsArray:()=>isCleanOptionsArray});function cleanWithOptionsTask(e,t){let{cleanMode:n,options:r,valid:a}=getCleanOptions(e);return n?a.options?(r.push(...t),r.some(isInteractiveMode)?configurationErrorTask(CONFIG_ERROR_INTERACTIVE_MODE):cleanTask(n,r)):configurationErrorTask(CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(e)):configurationErrorTask(CONFIG_ERROR_MODE_REQUIRED)}function cleanTask(e,t){return{commands:[`clean`,`-${e}`,...t],format:`utf-8`,parser(t){return cleanSummaryParser(e===`n`,t)}}}function isCleanOptionsArray(e){return Array.isArray(e)&&e.every(e=>CleanOptionValues.has(e))}function getCleanOptions(e){let t,n=[],r={cleanMode:!1,options:!0};return e.replace(/[^a-z]i/g,``).split(``).forEach(e=>{isCleanMode(e)?(t=e,r.cleanMode=!0):r.options=r.options&&isKnownOption(n[n.length]=`-${e}`)}),{cleanMode:t,options:n,valid:r}}function isCleanMode(e){return e===`f`||e===`n`}function isKnownOption(e){return/^-[a-z]$/i.test(e)&&CleanOptionValues.has(e.charAt(1))}function isInteractiveMode(e){return/^-[^\-]/.test(e)?e.indexOf(`i`)>0:e===`--interactive`}var CONFIG_ERROR_INTERACTIVE_MODE,CONFIG_ERROR_MODE_REQUIRED,CONFIG_ERROR_UNKNOWN_OPTION,CleanOptions,CleanOptionValues,init_clean=__esm({"src/lib/tasks/clean.ts"(){init_CleanSummary(),init_utils(),init_task(),CONFIG_ERROR_INTERACTIVE_MODE=`Git clean interactive mode is not supported`,CONFIG_ERROR_MODE_REQUIRED=`Git clean mode parameter ("n" or "f") is required`,CONFIG_ERROR_UNKNOWN_OPTION=`Git clean unknown option found in: `,CleanOptions=(e=>(e.DRY_RUN=`n`,e.FORCE=`f`,e.IGNORED_INCLUDED=`x`,e.IGNORED_ONLY=`X`,e.EXCLUDING=`e`,e.QUIET=`q`,e.RECURSIVE=`d`,e))(CleanOptions||{}),CleanOptionValues=new Set([`i`,...asStringArray(Object.values(CleanOptions))])}});function configListParser(e){let t=new ConfigList;for(let n of configParser(e))t.addValue(n.file,String(n.key),n.value);return t}function configGetParser(e,t){let n=null,r=[],a=new Map;for(let o of configParser(e,t))o.key===t&&(r.push(n=o.value),a.has(o.file)||a.set(o.file,[]),a.get(o.file).push(n));return{key:t,paths:Array.from(a.keys()),scopes:a,value:n,values:r}}function configFilePath(e){return e.replace(/^(file):/,``)}function*configParser(e,t=null){let n=e.split(`\0`);for(let e=0,r=n.length-1;e<r;){let r=configFilePath(n[e++]),a=n[e++],o=t;if(a.includes(`
140
- `)){let e=splitOn(a,`
141
- `);o=e[0],a=e[1]}yield{file:r,key:o,value:a}}}var ConfigList,init_ConfigList=__esm({"src/lib/responses/ConfigList.ts"(){init_utils(),ConfigList=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||=this.files.reduce((e,t)=>Object.assign(e,this.values[t]),{}),this._all}addFile(e){if(!(e in this.values)){let t=last(this.files);this.values[e]=t?Object.create(this.values[t]):{},this.files.push(e)}return this.values[e]}addValue(e,t,n){let r=this.addFile(e);Object.hasOwn(r,t)?Array.isArray(r[t])?r[t].push(n):r[t]=[r[t],n]:r[t]=n,this._all=void 0}}}});function asConfigScope(e,t){return typeof e==`string`&&Object.hasOwn(GitConfigScope,e)?e:t}function addConfigTask(e,t,n,r){let a=[`config`,`--${r}`];return n&&a.push(`--add`),a.push(e,t),{commands:a,format:`utf-8`,parser(e){return e}}}function getConfigTask(e,t){let n=[`config`,`--null`,`--show-origin`,`--get-all`,e];return t&&n.splice(1,0,`--${t}`),{commands:n,format:`utf-8`,parser(t){return configGetParser(t,e)}}}function listConfigTask(e){let t=[`config`,`--list`,`--show-origin`,`--null`];return e&&t.push(`--${e}`),{commands:t,format:`utf-8`,parser(e){return configListParser(e)}}}function config_default(){return{addConfig(e,t,...n){return this._runTask(addConfigTask(e,t,n[0]===!0,asConfigScope(n[1],`local`)),trailingFunctionArgument(arguments))},getConfig(e,t){return this._runTask(getConfigTask(e,asConfigScope(t,void 0)),trailingFunctionArgument(arguments))},listConfig(...e){return this._runTask(listConfigTask(asConfigScope(e[0],void 0)),trailingFunctionArgument(arguments))}}}var GitConfigScope,init_config=__esm({"src/lib/tasks/config.ts"(){init_ConfigList(),init_utils(),GitConfigScope=(e=>(e.system=`system`,e.global=`global`,e.local=`local`,e.worktree=`worktree`,e))(GitConfigScope||{})}});function isDiffNameStatus(e){return diffNameStatus.has(e)}var DiffNameStatus,diffNameStatus,init_diff_name_status=__esm({"src/lib/tasks/diff-name-status.ts"(){DiffNameStatus=(e=>(e.ADDED=`A`,e.COPIED=`C`,e.DELETED=`D`,e.MODIFIED=`M`,e.RENAMED=`R`,e.CHANGED=`T`,e.UNMERGED=`U`,e.UNKNOWN=`X`,e.BROKEN=`B`,e))(DiffNameStatus||{}),diffNameStatus=new Set(Object.values(DiffNameStatus))}});function grepQueryBuilder(...e){return new GrepQuery().param(...e)}function parseGrep(e){let t=new Set,n={};return forEachLineWithContent(e,e=>{let[r,a,o]=e.split(NULL);t.add(r),(n[r]=n[r]||[]).push({line:asNumber(a),path:r,preview:o})}),{paths:t,results:n}}function grep_default(){return{grep(e){let t=trailingFunctionArgument(arguments),n=getTrailingOptions(arguments);for(let e of disallowedOptions)if(n.includes(e))return this._runTask(configurationErrorTask(`git.grep: use of "${e}" is not supported.`),t);typeof e==`string`&&(e=grepQueryBuilder().param(e));let r=[`grep`,`--null`,`-n`,`--full-name`,...n,...e];return this._runTask({commands:r,format:`utf-8`,parser(e){return parseGrep(e)}},t)}}}var disallowedOptions,Query,_a,GrepQuery,init_grep=__esm({"src/lib/tasks/grep.ts"(){init_utils(),init_task(),disallowedOptions=[`-h`],Query=Symbol(`grepQuery`),GrepQuery=class{constructor(){this[_a]=[]}*[(_a=Query,Symbol.iterator)](){for(let e of this[Query])yield e}and(...e){return e.length&&this[Query].push(`--and`,`(`,...prefixedArray(e,`-e`),`)`),this}param(...e){return this[Query].push(...prefixedArray(e,`-e`)),this}}}}),reset_exports={};__export(reset_exports,{ResetMode:()=>ResetMode,getResetMode:()=>getResetMode,resetTask:()=>resetTask});function resetTask(e,t){let n=[`reset`];return isValidResetMode(e)&&n.push(`--${e}`),n.push(...t),straightThroughStringTask(n)}function getResetMode(e){if(isValidResetMode(e))return e;switch(typeof e){case`string`:case`undefined`:return`soft`}}function isValidResetMode(e){return typeof e==`string`&&validResetModes.includes(e)}var ResetMode,validResetModes,init_reset=__esm({"src/lib/tasks/reset.ts"(){init_utils(),init_task(),ResetMode=(e=>(e.MIXED=`mixed`,e.SOFT=`soft`,e.HARD=`hard`,e.MERGE=`merge`,e.KEEP=`keep`,e))(ResetMode||{}),validResetModes=asStringArray(Object.values(ResetMode))}});function createLog(){return(0,import_browser.default)(`simple-git`)}function prefixedLogger(e,t,n){return!t||!String(t).replace(/\s*/,``)?n?(t,...r)=>{e(t,...r),n(t,...r)}:e:(r,...a)=>{e(`%s ${r}`,t,...a),n&&n(r,...a)}}function childLoggerName(e,t,{namespace:n}){if(typeof e==`string`)return e;let r=t&&t.namespace||``;return r.startsWith(n)?r.substr(n.length+1):r||n}function createLogger(e,t,n,r=createLog()){let a=e&&`[${e}]`||``,o=[],s=typeof t==`string`?r.extend(t):t,c=childLoggerName(filterType(t,filterString),s,r);return u(n);function l(t,n){return append(o,createLogger(e,c.replace(/^[^:]+/,t),n,r))}function u(t){let n=t&&`[${t}]`||``,o=s&&prefixedLogger(s,n)||NOOP,c=prefixedLogger(r,`${a} ${n}`,o);return Object.assign(s?o:c,{label:e,sibling:l,info:c,step:u})}}var init_git_logger=__esm({"src/lib/git-logger.ts"(){init_utils(),import_browser.default.formatters.L=e=>String(filterHasLength(e)?e.length:`-`),import_browser.default.formatters.B=e=>Buffer.isBuffer(e)?e.toString(`utf8`):objectToString(e)}}),TasksPendingQueue,init_tasks_pending_queue=__esm({"src/lib/runners/tasks-pending-queue.ts"(){init_git_error(),init_git_logger(),TasksPendingQueue=class e{constructor(e=`GitExecutor`){this.logLabel=e,this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(t){let n=e.getName(t.commands[0]);return{task:t,logger:createLogger(this.logLabel,n),name:n}}push(e){let t=this.createProgress(e);return t.logger(`Adding task to the queue, commands = %o`,e.commands),this._queue.set(e,t),t}fatal(e){for(let[t,{logger:n}]of Array.from(this._queue.entries()))t===e.task?(n.info(`Failed %o`,e),n(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`)):n.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`,e.message),this.complete(t);if(this._queue.size!==0)throw Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(e){this.withProgress(e)&&this._queue.delete(e)}attempt(e){let t=this.withProgress(e);if(!t)throw new GitError(void 0,`TasksPendingQueue: attempt called for an unknown task`);return t.logger(`Starting task`),t}static getName(t=`empty`){return`task:${t}:${++e.counter}`}static{this.counter=0}}}});function pluginContext(e,t){return{method:first(e.commands)||``,commands:t}}function onErrorReceived(e,t){return n=>{t(`[ERROR] child process exception %o`,n),e.push(Buffer.from(String(n.stack),`ascii`))}}function onDataReceived(e,t,n,r){return a=>{n(`%s received %L bytes`,t,a),r(`%B`,a),e.push(a)}}var GitExecutorChain,init_git_executor_chain=__esm({"src/lib/runners/git-executor-chain.ts"(){init_git_error(),init_task(),init_utils(),init_tasks_pending_queue(),GitExecutorChain=class{constructor(e,t,n){this._executor=e,this._scheduler=t,this._plugins=n,this._chain=Promise.resolve(),this._queue=new TasksPendingQueue}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then(()=>this.attemptTask(e))}async attemptTask(e){let t=await this._scheduler.next(),n=()=>this._queue.complete(e);try{let{logger:t}=this._queue.attempt(e);return await(isEmptyTask(e)?this.attemptEmptyTask(e,t):this.attemptRemoteTask(e,t))}catch(t){throw this.onFatalException(e,t)}finally{n(),t()}}onFatalException(e,t){let n=t instanceof GitError?Object.assign(t,{task:e}):new GitError(e,t&&String(t));return this._chain=Promise.resolve(),this._queue.fatal(n),n}async attemptRemoteTask(e,t){let n=this._plugins.exec(`spawn.binary`,``,pluginContext(e,e.commands)),r=this._plugins.exec(`spawn.args`,[...e.commands],pluginContext(e,e.commands)),a=await this.gitResponse(e,n,r,this.outputHandler,t.step(`SPAWN`)),o=await this.handleTaskData(e,r,a,t.step(`HANDLE`));return t(`passing response to task's parser as a %s`,e.format),isBufferTask(e)?callTaskParser(e.parser,o):callTaskParser(e.parser,o.asStrings())}async attemptEmptyTask(e,t){return t(`empty task bypassing child process to call to task's parser`),e.parser(this)}handleTaskData(e,t,n,r){let{exitCode:a,rejection:o,stdOut:s,stdErr:c}=n;return new Promise((l,u)=>{r(`Preparing to handle process response exitCode=%d stdOut=`,a);let{error:d}=this._plugins.exec(`task.error`,{error:o},{...pluginContext(e,t),...n});if(d&&e.onError)return r.info(`exitCode=%s handling with custom error handler`),e.onError(n,d,e=>{r.info(`custom error handler treated as success`),r(`custom error returned a %s`,objectToString(e)),l(new GitOutputStreams(Array.isArray(e)?Buffer.concat(e):e,Buffer.concat(c)))},u);if(d)return r.info(`handling as error: exitCode=%s stdErr=%s rejection=%o`,a,c.length,o),u(d);r.info(`retrieving task output complete`),l(new GitOutputStreams(Buffer.concat(s),Buffer.concat(c)))})}async gitResponse(e,t,n,r,a){let o=a.sibling(`output`),s=this._plugins.exec(`spawn.options`,{cwd:this.cwd,env:this.env,windowsHide:!0},pluginContext(e,e.commands));return new Promise(c=>{let l=[],u=[];a.info(`%s %o`,t,n),a(`%O`,s);let d=this._beforeSpawn(e,n);if(d)return c({stdOut:l,stdErr:u,exitCode:9901,rejection:d});this._plugins.exec(`spawn.before`,void 0,{...pluginContext(e,n),kill(e){d=e||d}});let f=(0,import___vite_browser_external.spawn)(t,n,s);f.stdout.on(`data`,onDataReceived(l,`stdOut`,a,o.step(`stdOut`))),f.stderr.on(`data`,onDataReceived(u,`stdErr`,a,o.step(`stdErr`))),f.on(`error`,onErrorReceived(u,a)),r&&(a(`Passing child process stdOut/stdErr to custom outputHandler`),r(t,f.stdout,f.stderr,[...n])),this._plugins.exec(`spawn.after`,void 0,{...pluginContext(e,n),spawned:f,close(e,t){c({stdOut:l,stdErr:u,exitCode:e,rejection:d||t})},kill(e){f.killed||(d=e,f.kill(`SIGINT`))}})})}_beforeSpawn(e,t){let n;return this._plugins.exec(`spawn.before`,void 0,{...pluginContext(e,t),kill(e){n=e||n}}),n}}}}),git_executor_exports={};__export(git_executor_exports,{GitExecutor:()=>GitExecutor});var GitExecutor,init_git_executor=__esm({"src/lib/runners/git-executor.ts"(){init_git_executor_chain(),GitExecutor=class{constructor(e,t,n){this.cwd=e,this._scheduler=t,this._plugins=n,this._chain=new GitExecutorChain(this,this._scheduler,this._plugins)}chain(){return new GitExecutorChain(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}});function taskCallback(e,t,n=NOOP){t.then(e=>{n(null,e)},t=>{t?.task===e&&n(t instanceof GitResponseError?addDeprecationNoticeToError(t):t,void 0)})}function addDeprecationNoticeToError(e){let t=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`),t=NOOP};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(n,{}));function n(n,r){return r in e||(n[r]={enumerable:!1,configurable:!1,get(){return t(r),e.git[r]}}),n}}var init_task_callback=__esm({"src/lib/task-callback.ts"(){init_git_response_error(),init_utils()}});function changeWorkingDirectoryTask(e,t){return adhocExecTask(n=>{if(!folderExists(e))throw Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||n).cwd=e})}var init_change_working_directory=__esm({"src/lib/tasks/change-working-directory.ts"(){init_utils(),init_task()}});function checkoutTask(e){let t=[`checkout`,...e];return t[1]===`-b`&&t.includes(`-B`)&&(t[1]=remove(t,`-B`)),straightThroughStringTask(t)}function checkout_default(){return{checkout(){return this._runTask(checkoutTask(getTrailingOptions(arguments,1)),trailingFunctionArgument(arguments))},checkoutBranch(e,t){return this._runTask(checkoutTask([`-b`,e,t,...getTrailingOptions(arguments)]),trailingFunctionArgument(arguments))},checkoutLocalBranch(e){return this._runTask(checkoutTask([`-b`,e,...getTrailingOptions(arguments)]),trailingFunctionArgument(arguments))}}}var init_checkout=__esm({"src/lib/tasks/checkout.ts"(){init_utils(),init_task()}});function countObjectsResponse(){return{count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0}}function count_objects_default(){return{countObjects(){return this._runTask({commands:[`count-objects`,`--verbose`],format:`utf-8`,parser(e){return parseStringResponse(countObjectsResponse(),[parser2],e)}})}}}var parser2,init_count_objects=__esm({"src/lib/tasks/count-objects.ts"(){init_utils(),parser2=new LineParser(/([a-z-]+): (\d+)$/,(e,[t,n])=>{let r=asCamelCase(t);Object.hasOwn(e,r)&&(e[r]=asNumber(n))})}});function parseCommitResult(e){return parseStringResponse({author:null,branch:``,commit:``,root:!1,summary:{changes:0,insertions:0,deletions:0}},parsers,e)}var parsers,init_parse_commit=__esm({"src/lib/parsers/parse-commit.ts"(){init_utils(),parsers=[new LineParser(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(e,[t,n,r])=>{e.branch=t,e.commit=r,e.root=!!n}),new LineParser(/\s*Author:\s(.+)/i,(e,[t])=>{let n=t.split(`<`),r=n.pop();!r||!r.includes(`@`)||(e.author={email:r.substr(0,r.length-1),name:n.join(`<`).trim()})}),new LineParser(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(e,[t,n,r])=>{e.summary.changes=parseInt(t,10)||0,e.summary.insertions=parseInt(n,10)||0,e.summary.deletions=parseInt(r,10)||0}),new LineParser(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(e,[t,n,r])=>{e.summary.changes=parseInt(t,10)||0;let a=parseInt(n,10)||0;r===`-`?e.summary.deletions=a:r===`+`&&(e.summary.insertions=a)})]}});function commitTask(e,t,n){return{commands:[`-c`,`core.abbrev=40`,`commit`,...prefixedArray(e,`-m`),...t,...n],format:`utf-8`,parser:parseCommitResult}}function commit_default(){return{commit(t,...n){let r=trailingFunctionArgument(arguments),a=e(t)||commitTask(asArray(t),asArray(filterType(n[0],filterStringOrStringArray,[])),[...asStringArray(filterType(n[1],filterArray,[])),...getTrailingOptions(arguments,0,!0)]);return this._runTask(a,r)}};function e(e){return!filterStringOrStringArray(e)&&configurationErrorTask(`git.commit: requires the commit message to be supplied as a string/string[]`)}}var init_commit=__esm({"src/lib/tasks/commit.ts"(){init_parse_commit(),init_utils(),init_task()}});function first_commit_default(){return{firstCommit(){return this._runTask(straightThroughStringTask([`rev-list`,`--max-parents=0`,`HEAD`],!0),trailingFunctionArgument(arguments))}}}var init_first_commit=__esm({"src/lib/tasks/first-commit.ts"(){init_utils(),init_task()}});function hashObjectTask(e,t){let n=[`hash-object`,e];return t&&n.push(`-w`),straightThroughStringTask(n,!0)}var init_hash_object=__esm({"src/lib/tasks/hash-object.ts"(){init_task()}});function parseInit(e,t,n){let r=String(n).trim(),a;if(a=initResponseRegex.exec(r))return new InitSummary(e,t,!1,a[1]);if(a=reInitResponseRegex.exec(r))return new InitSummary(e,t,!0,a[1]);let o=``,s=r.split(` `);for(;s.length;)if(s.shift()===`in`){o=s.join(` `);break}return new InitSummary(e,t,/^re/i.test(r),o)}var InitSummary,initResponseRegex,reInitResponseRegex,init_InitSummary=__esm({"src/lib/responses/InitSummary.ts"(){InitSummary=class{constructor(e,t,n,r){this.bare=e,this.path=t,this.existing=n,this.gitDir=r}},initResponseRegex=/^Init.+ repository in (.+)$/,reInitResponseRegex=/^Rein.+ in (.+)$/}});function hasBareCommand(e){return e.includes(bareCommand)}function initTask(e=!1,t,n){let r=[`init`,...n];return e&&!hasBareCommand(r)&&r.splice(1,0,bareCommand),{commands:r,format:`utf-8`,parser(e){return parseInit(r.includes(`--bare`),t,e)}}}var bareCommand,init_init=__esm({"src/lib/tasks/init.ts"(){init_InitSummary(),bareCommand=`--bare`}});function logFormatFromCommand(e){for(let t=0;t<e.length;t++){let n=logFormatRegex.exec(e[t]);if(n)return`--${n[1]}`}return``}function isLogFormat(e){return logFormatRegex.test(e)}var logFormatRegex,init_log_format=__esm({"src/lib/args/log-format.ts"(){logFormatRegex=/^--(stat|numstat|name-only|name-status)(=|$)/}}),DiffSummary,init_DiffSummary=__esm({"src/lib/responses/DiffSummary.ts"(){DiffSummary=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}});function getDiffParser(e=``){let t=diffSummaryParsers[e];return e=>parseStringResponse(new DiffSummary,t,e,!1)}var statParser,numStatParser,nameOnlyParser,nameStatusParser,diffSummaryParsers,init_parse_diff_summary=__esm({"src/lib/parsers/parse-diff-summary.ts"(){init_log_format(),init_DiffSummary(),init_diff_name_status(),init_utils(),statParser=[new LineParser(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,(e,[t,n,r=``])=>{e.files.push({file:t.trim(),changes:asNumber(n),insertions:r.replace(/[^+]/g,``).length,deletions:r.replace(/[^-]/g,``).length,binary:!1})}),new LineParser(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,(e,[t,n,r])=>{e.files.push({file:t.trim(),before:asNumber(n),after:asNumber(r),binary:!0})}),new LineParser(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,(e,[t,n])=>{let r=/(\d+) i/.exec(n),a=/(\d+) d/.exec(n);e.changed=asNumber(t),e.insertions=asNumber(r?.[1]),e.deletions=asNumber(a?.[1])})],numStatParser=[new LineParser(/(\d+)\t(\d+)\t(.+)$/,(e,[t,n,r])=>{let a=asNumber(t),o=asNumber(n);e.changed++,e.insertions+=a,e.deletions+=o,e.files.push({file:r,changes:a+o,insertions:a,deletions:o,binary:!1})}),new LineParser(/-\t-\t(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,after:0,before:0,binary:!0})})],nameOnlyParser=[new LineParser(/(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})})],nameStatusParser=[new LineParser(/([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,(e,[t,n,r,a,o])=>{e.changed++,e.files.push({file:o??r,changes:0,insertions:0,deletions:0,binary:!1,status:orVoid(isDiffNameStatus(t)&&t),from:orVoid(!!o&&r!==o&&r),similarity:asNumber(n)})})],diffSummaryParsers={"":statParser,"--stat":statParser,"--numstat":numStatParser,"--name-status":nameStatusParser,"--name-only":nameOnlyParser}}});function lineBuilder(e,t){return t.reduce((t,n,r)=>(t[n]=e[r]||``,t),Object.create({diff:null}))}function createListLogSummaryParser(e=SPLITTER,t=defaultFieldNames,n=``){let r=getDiffParser(n);return function(n){let a=toLinesWithContent(n.trim(),!1,START_BOUNDARY).map(function(n){let a=n.split(COMMIT_BOUNDARY),o=lineBuilder(a[0].split(e),t);return a.length>1&&a[1].trim()&&(o.diff=r(a[1])),o});return{all:a,latest:a.length&&a[0]||null,total:a.length}}}var START_BOUNDARY,COMMIT_BOUNDARY,SPLITTER,defaultFieldNames,init_parse_list_log_summary=__esm({"src/lib/parsers/parse-list-log-summary.ts"(){init_utils(),init_parse_diff_summary(),init_log_format(),START_BOUNDARY=`òòòòòò `,COMMIT_BOUNDARY=` òò`,SPLITTER=` ò `,defaultFieldNames=[`hash`,`date`,`message`,`refs`,`author_name`,`author_email`]}}),diff_exports={};__export(diff_exports,{diffSummaryTask:()=>diffSummaryTask,validateLogFormatConfig:()=>validateLogFormatConfig});function diffSummaryTask(e){let t=logFormatFromCommand(e),n=[`diff`];return t===``&&(t=`--stat`,n.push(`--stat=4096`)),n.push(...e),validateLogFormatConfig(n)||{commands:n,format:`utf-8`,parser:getDiffParser(t)}}function validateLogFormatConfig(e){let t=e.filter(isLogFormat);if(t.length>1)return configurationErrorTask(`Summary flags are mutually exclusive - pick one of ${t.join(`,`)}`);if(t.length&&e.includes(`-z`))return configurationErrorTask(`Summary flag ${t} parsing is not compatible with null termination option '-z'`)}var init_diff=__esm({"src/lib/tasks/diff.ts"(){init_log_format(),init_parse_diff_summary(),init_task()}});function prettyFormat(e,t){let n=[],r=[];return Object.keys(e).forEach(t=>{n.push(t),r.push(String(e[t]))}),[n,r.join(t)]}function userOptions(e){return Object.keys(e).reduce((t,n)=>(n in excludeOptions||(t[n]=e[n]),t),{})}function parseLogOptions(e={},t=[]){let n=filterType(e.splitter,filterString,SPLITTER),[r,a]=prettyFormat(filterPlainObject(e.format)?e.format:{hash:`%H`,date:e.strictDate===!1?`%ai`:`%aI`,message:`%s`,refs:`%D`,body:e.multiLine?`%B`:`%b`,author_name:e.mailMap===!1?`%an`:`%aN`,author_email:e.mailMap===!1?`%ae`:`%aE`},n),o=[],s=[`--pretty=format:${START_BOUNDARY}${a}${COMMIT_BOUNDARY}`,...t],c=e.n||e[`max-count`]||e.maxCount;if(c&&s.push(`--max-count=${c}`),e.from||e.to){let t=e.symmetric===!1?`..`:`...`;o.push(`${e.from||``}${t}${e.to||``}`)}return filterString(e.file)&&s.push(`--follow`,pathspec(e.file)),appendTaskOptions(userOptions(e),s),{fields:r,splitter:n,commands:[...s,...o]}}function logTask(e,t,n){let r=createListLogSummaryParser(e,t,logFormatFromCommand(n));return{commands:[`log`,...n],format:`utf-8`,parser:r}}function log_default(){return{log(...n){let r=trailingFunctionArgument(arguments),a=parseLogOptions(trailingOptionsArgument(arguments),asStringArray(filterType(arguments[0],filterArray,[]))),o=t(...n)||validateLogFormatConfig(a.commands)||e(a);return this._runTask(o,r)}};function e(e){return logTask(e.splitter,e.fields,e.commands)}function t(e,t){return filterString(e)&&filterString(t)&&configurationErrorTask(`git.log(string, string) should be replaced with git.log({ from: string, to: string })`)}}var excludeOptions,init_log=__esm({"src/lib/tasks/log.ts"(){init_log_format(),init_pathspec(),init_parse_list_log_summary(),init_utils(),init_task(),init_diff(),excludeOptions=(e=>(e[e[`--pretty`]=0]=`--pretty`,e[e[`max-count`]=1]=`max-count`,e[e.maxCount=2]=`maxCount`,e[e.n=3]=`n`,e[e.file=4]=`file`,e[e.format=5]=`format`,e[e.from=6]=`from`,e[e.to=7]=`to`,e[e.splitter=8]=`splitter`,e[e.symmetric=9]=`symmetric`,e[e.mailMap=10]=`mailMap`,e[e.multiLine=11]=`multiLine`,e[e.strictDate=12]=`strictDate`,e))(excludeOptions||{})}}),MergeSummaryConflict,MergeSummaryDetail,init_MergeSummary=__esm({"src/lib/responses/MergeSummary.ts"(){MergeSummaryConflict=class{constructor(e,t=null,n){this.reason=e,this.file=t,this.meta=n}toString(){return`${this.file}:${this.reason}`}},MergeSummaryDetail=class{constructor(){this.conflicts=[],this.merges=[],this.result=`success`}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(`, `)}`:`OK`}}}}),PullSummary,PullFailedSummary,init_PullSummary=__esm({"src/lib/responses/PullSummary.ts"(){PullSummary=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},PullFailedSummary=class{constructor(){this.remote=``,this.hash={local:``,remote:``},this.branch={local:``,remote:``},this.message=``}toString(){return this.message}}}});function objectEnumerationResult(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function asObjectCount(e){let t=/^\s*(\d+)/.exec(e),n=/delta (\d+)/i.exec(e);return{count:asNumber(t&&t[1]||`0`),delta:asNumber(n&&n[1]||`0`)}}var remoteMessagesObjectParsers,init_parse_remote_objects=__esm({"src/lib/parsers/parse-remote-objects.ts"(){init_utils(),remoteMessagesObjectParsers=[new RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[t,n])=>{let r=t.toLowerCase(),a=objectEnumerationResult(e.remoteMessages);Object.assign(a,{[r]:asNumber(n)})}),new RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[t,n])=>{let r=t.toLowerCase(),a=objectEnumerationResult(e.remoteMessages);Object.assign(a,{[r]:asNumber(n)})}),new RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[t,n,r])=>{let a=objectEnumerationResult(e.remoteMessages);a.total=asObjectCount(t),a.reused=asObjectCount(n),a.packReused=asNumber(r)})]}});function parseRemoteMessages(e,t){return parseStringResponse({remoteMessages:new RemoteMessageSummary},parsers2,t)}var parsers2,RemoteMessageSummary,init_parse_remote_messages=__esm({"src/lib/parsers/parse-remote-messages.ts"(){init_utils(),init_parse_remote_objects(),parsers2=[new RemoteLineParser(/^remote:\s*(.+)$/,(e,[t])=>(e.remoteMessages.all.push(t.trim()),!1)),...remoteMessagesObjectParsers,new RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[t])=>{e.remoteMessages.pullRequestUrl=t}),new RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[t,n,r])=>{e.remoteMessages.vulnerabilities={count:asNumber(t),summary:n,url:r}})],RemoteMessageSummary=class{constructor(){this.all=[]}}}});function parsePullErrorResult(e,t){let n=parseStringResponse(new PullFailedSummary,errorParsers,[e,t]);return n.message&&n}var FILE_UPDATE_REGEX,SUMMARY_REGEX,ACTION_REGEX,parsers3,errorParsers,parsePullDetail,parsePullResult,init_parse_pull=__esm({"src/lib/parsers/parse-pull.ts"(){init_PullSummary(),init_utils(),init_parse_remote_messages(),FILE_UPDATE_REGEX=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,SUMMARY_REGEX=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,ACTION_REGEX=/^(create|delete) mode \d+ (.+)/,parsers3=[new LineParser(FILE_UPDATE_REGEX,(e,[t,n,r])=>{e.files.push(t),n&&(e.insertions[t]=n.length),r&&(e.deletions[t]=r.length)}),new LineParser(SUMMARY_REGEX,(e,[t,,n,,r])=>n!==void 0||r!==void 0?(e.summary.changes=+t||0,e.summary.insertions=+n||0,e.summary.deletions=+r||0,!0):!1),new LineParser(ACTION_REGEX,(e,[t,n])=>{append(e.files,n),append(t===`create`?e.created:e.deleted,n)})],errorParsers=[new LineParser(/^from\s(.+)$/i,(e,[t])=>void(e.remote=t)),new LineParser(/^fatal:\s(.+)$/,(e,[t])=>void(e.message=t)),new LineParser(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,(e,[t,n,r,a])=>{e.branch.local=r,e.hash.local=t,e.branch.remote=a,e.hash.remote=n})],parsePullDetail=(e,t)=>parseStringResponse(new PullSummary,parsers3,[e,t]),parsePullResult=(e,t)=>Object.assign(new PullSummary,parsePullDetail(e,t),parseRemoteMessages(e,t))}}),parsers4,parseMergeResult,parseMergeDetail,init_parse_merge=__esm({"src/lib/parsers/parse-merge.ts"(){init_MergeSummary(),init_utils(),init_parse_pull(),parsers4=[new LineParser(/^Auto-merging\s+(.+)$/,(e,[t])=>{e.merges.push(t)}),new LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[t,n])=>{e.conflicts.push(new MergeSummaryConflict(t,n))}),new LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[t,n,r])=>{e.conflicts.push(new MergeSummaryConflict(t,n,{deleteRef:r}))}),new LineParser(/^CONFLICT\s+\((.+)\):/,(e,[t])=>{e.conflicts.push(new MergeSummaryConflict(t,null))}),new LineParser(/^Automatic merge failed;\s+(.+)$/,(e,[t])=>{e.result=t})],parseMergeResult=(e,t)=>Object.assign(parseMergeDetail(e,t),parsePullResult(e,t)),parseMergeDetail=e=>parseStringResponse(new MergeSummaryDetail,parsers4,e)}});function mergeTask(e){return e.length?{commands:[`merge`,...e],format:`utf-8`,parser(e,t){let n=parseMergeResult(e,t);if(n.failed)throw new GitResponseError(n);return n}}:configurationErrorTask(`Git.merge requires at least one option`)}var init_merge=__esm({"src/lib/tasks/merge.ts"(){init_git_response_error(),init_parse_merge(),init_task()}});function pushResultPushedItem(e,t,n){let r=n.includes(`deleted`),a=n.includes(`tag`)||/^refs\/tags/.test(e),o=!n.includes(`new`);return{deleted:r,tag:a,branch:!a,new:!o,alreadyUpdated:o,local:e,remote:t}}var parsers5,parsePushResult,parsePushDetail,init_parse_push=__esm({"src/lib/parsers/parse-push.ts"(){init_utils(),init_parse_remote_messages(),parsers5=[new LineParser(/^Pushing to (.+)$/,(e,[t])=>{e.repo=t}),new LineParser(/^updating local tracking ref '(.+)'/,(e,[t])=>{e.ref={...e.ref||{},local:t}}),new LineParser(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[t,n,r])=>{e.pushed.push(pushResultPushedItem(t,n,r))}),new LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[t,n,r])=>{e.branch={...e.branch||{},local:t,remote:n,remoteName:r}}),new LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[t,n,r,a])=>{e.update={head:{local:t,remote:n},hash:{from:r,to:a}}})],parsePushResult=(e,t)=>{let n=parsePushDetail(e,t),r=parseRemoteMessages(e,t);return{...n,...r}},parsePushDetail=(e,t)=>parseStringResponse({pushed:[]},parsers5,[e,t])}}),push_exports={};__export(push_exports,{pushTagsTask:()=>pushTagsTask,pushTask:()=>pushTask});function pushTagsTask(e={},t){return append(t,`--tags`),pushTask(e,t)}function pushTask(e={},t){let n=[`push`,...t];return e.branch&&n.splice(1,0,e.branch),e.remote&&n.splice(1,0,e.remote),remove(n,`-v`),append(n,`--verbose`),append(n,`--porcelain`),{commands:n,format:`utf-8`,parser:parsePushResult}}var init_push=__esm({"src/lib/tasks/push.ts"(){init_parse_push(),init_utils()}});function show_default(){return{showBuffer(){let e=[`show`,...getTrailingOptions(arguments,1)];return e.includes(`--binary`)||e.splice(1,0,`--binary`),this._runTask(straightThroughBufferTask(e),trailingFunctionArgument(arguments))},show(){let e=[`show`,...getTrailingOptions(arguments,1)];return this._runTask(straightThroughStringTask(e),trailingFunctionArgument(arguments))}}}var init_show=__esm({"src/lib/tasks/show.ts"(){init_utils(),init_task()}}),fromPathRegex,FileStatusSummary,init_FileStatusSummary=__esm({"src/lib/responses/FileStatusSummary.ts"(){fromPathRegex=/^(.+)\0(.+)$/,FileStatusSummary=class{constructor(e,t,n){if(this.path=e,this.index=t,this.working_dir=n,t===`R`||n===`R`){let t=fromPathRegex.exec(e)||[null,e,e];this.from=t[2]||``,this.path=t[1]||``}}}}});function renamedFile(e){let[t,n]=e.split(NULL);return{from:n||t,to:t}}function parser3(e,t,n){return[`${e}${t}`,n]}function conflicts(e,...t){return t.map(t=>parser3(e,t,(e,t)=>e.conflicted.push(t)))}function splitLine(e,t){let n=t.trim();switch(` `){case n.charAt(2):return r(n.charAt(0),n.charAt(1),n.slice(3));case n.charAt(1):return r(` `,n.charAt(0),n.slice(2));default:return}function r(t,n,r){let a=`${t}${n}`,o=parsers6.get(a);o&&o(e,r),a!==`##`&&a!==`!!`&&e.files.push(new FileStatusSummary(r,t,n))}}var StatusSummary,parsers6,parseStatusSummary,init_StatusSummary=__esm({"src/lib/responses/StatusSummary.ts"(){init_utils(),init_FileStatusSummary(),StatusSummary=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.ignored=void 0,this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null,this.detached=!1,this.isClean=()=>!this.files.length}},parsers6=new Map([parser3(` `,`A`,(e,t)=>e.created.push(t)),parser3(` `,`D`,(e,t)=>e.deleted.push(t)),parser3(` `,`M`,(e,t)=>e.modified.push(t)),parser3(`A`,` `,(e,t)=>{e.created.push(t),e.staged.push(t)}),parser3(`A`,`M`,(e,t)=>{e.created.push(t),e.staged.push(t),e.modified.push(t)}),parser3(`D`,` `,(e,t)=>{e.deleted.push(t),e.staged.push(t)}),parser3(`M`,` `,(e,t)=>{e.modified.push(t),e.staged.push(t)}),parser3(`M`,`M`,(e,t)=>{e.modified.push(t),e.staged.push(t)}),parser3(`R`,` `,(e,t)=>{e.renamed.push(renamedFile(t))}),parser3(`R`,`M`,(e,t)=>{let n=renamedFile(t);e.renamed.push(n),e.modified.push(n.to)}),parser3(`!`,`!`,(e,t)=>{(e.ignored=e.ignored||[]).push(t)}),parser3(`?`,`?`,(e,t)=>e.not_added.push(t)),...conflicts(`A`,`A`,`U`),...conflicts(`D`,`D`,`U`),...conflicts(`U`,`A`,`D`,`U`),[`##`,(e,t)=>{let n=/ahead (\d+)/,r=/behind (\d+)/,a=/^(.+?(?=(?:\.{3}|\s|$)))/,o=/\.{3}(\S*)/,s=/\son\s(\S+?)(?=\.{3}|$)/,c=n.exec(t);e.ahead=c&&+c[1]||0,c=r.exec(t),e.behind=c&&+c[1]||0,c=a.exec(t),e.current=filterType(c?.[1],filterString,null),c=o.exec(t),e.tracking=filterType(c?.[1],filterString,null),c=s.exec(t),c&&(e.current=filterType(c?.[1],filterString,e.current)),e.detached=/\(no branch\)/.test(t)}]]),parseStatusSummary=function(e){let t=e.split(NULL),n=new StatusSummary;for(let e=0,r=t.length;e<r;){let r=t[e++].trim();r&&(r.charAt(0)===`R`&&(r+=NULL+(t[e++]||``)),splitLine(n,r))}return n}}});function statusTask(e){return{format:`utf-8`,commands:[`status`,`--porcelain`,`-b`,`-u`,`--null`,...e.filter(e=>!ignoredOptions.includes(e))],parser(e){return parseStatusSummary(e)}}}var ignoredOptions,init_status=__esm({"src/lib/tasks/status.ts"(){init_StatusSummary(),ignoredOptions=[`--null`,`-z`]}});function versionResponse(e=0,t=0,n=0,r=``,a=!0){return Object.defineProperty({major:e,minor:t,patch:n,agent:r,installed:a},`toString`,{value(){return`${this.major}.${this.minor}.${this.patch}`},configurable:!1,enumerable:!1})}function notInstalledResponse(){return versionResponse(0,0,0,``,!1)}function version_default(){return{version(){return this._runTask({commands:[`--version`],format:`utf-8`,parser:versionParser,onError(e,t,n,r){if(e.exitCode===-2)return n(Buffer.from(NOT_INSTALLED));r(t)}})}}}function versionParser(e){return e===NOT_INSTALLED?notInstalledResponse():parseStringResponse(versionResponse(0,0,0,e),parsers7,e)}var NOT_INSTALLED,parsers7,init_version=__esm({"src/lib/tasks/version.ts"(){init_utils(),NOT_INSTALLED=`installed=false`,parsers7=[new LineParser(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,(e,[t,n,r,a=``])=>{Object.assign(e,versionResponse(asNumber(t),asNumber(n),asNumber(r),a))}),new LineParser(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,(e,[t,n,r,a=``])=>{Object.assign(e,versionResponse(asNumber(t),asNumber(n),r,a))})]}});function createCloneTask(e,t,n,...r){return filterString(n)?t(n,filterType(r[0],filterString),getTrailingOptions(arguments)):configurationErrorTask(`git.${e}() requires a string 'repoPath'`)}function clone_default(){return{clone(e,...t){return this._runTask(createCloneTask(`clone`,cloneTask,filterType(e,filterString),...t),trailingFunctionArgument(arguments))},mirror(e,...t){return this._runTask(createCloneTask(`mirror`,cloneMirrorTask,filterType(e,filterString),...t),trailingFunctionArgument(arguments))}}}var cloneTask,cloneMirrorTask,init_clone=__esm({"src/lib/tasks/clone.ts"(){init_task(),init_utils(),init_pathspec(),cloneTask=(e,t,n)=>{let r=[`clone`,...n];return filterString(e)&&r.push(pathspec(e)),filterString(t)&&r.push(pathspec(t)),straightThroughStringTask(r)},cloneMirrorTask=(e,t,n)=>(append(n,`--mirror`),cloneTask(e,t,n))}}),simple_git_api_exports={};__export(simple_git_api_exports,{SimpleGitApi:()=>SimpleGitApi});var SimpleGitApi,init_simple_git_api=__esm({"src/lib/simple-git-api.ts"(){init_task_callback(),init_change_working_directory(),init_checkout(),init_count_objects(),init_commit(),init_config(),init_first_commit(),init_grep(),init_hash_object(),init_init(),init_log(),init_merge(),init_push(),init_show(),init_status(),init_task(),init_version(),init_utils(),init_clone(),SimpleGitApi=class{constructor(e){this._executor=e}_runTask(e,t){let n=this._executor.chain(),r=n.push(e);return t&&taskCallback(e,r,t),Object.create(this,{then:{value:r.then.bind(r)},catch:{value:r.catch.bind(r)},_executor:{value:n}})}add(e){return this._runTask(straightThroughStringTask([`add`,...asArray(e)]),trailingFunctionArgument(arguments))}cwd(e){let t=trailingFunctionArgument(arguments);return typeof e==`string`?this._runTask(changeWorkingDirectoryTask(e,this._executor),t):typeof e?.path==`string`?this._runTask(changeWorkingDirectoryTask(e.path,e.root&&this._executor||void 0),t):this._runTask(configurationErrorTask(`Git.cwd: workingDirectory must be supplied as a string`),t)}hashObject(e,t){return this._runTask(hashObjectTask(e,t===!0),trailingFunctionArgument(arguments))}init(e){return this._runTask(initTask(e===!0,this._executor.cwd,getTrailingOptions(arguments)),trailingFunctionArgument(arguments))}merge(){return this._runTask(mergeTask(getTrailingOptions(arguments)),trailingFunctionArgument(arguments))}mergeFromTo(e,t){return filterString(e)&&filterString(t)?this._runTask(mergeTask([e,t,...getTrailingOptions(arguments)]),trailingFunctionArgument(arguments,!1)):this._runTask(configurationErrorTask(`Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings`))}outputHandler(e){return this._executor.outputHandler=e,this}push(){let e=pushTask({remote:filterType(arguments[0],filterString),branch:filterType(arguments[1],filterString)},getTrailingOptions(arguments));return this._runTask(e,trailingFunctionArgument(arguments))}stash(){return this._runTask(straightThroughStringTask([`stash`,...getTrailingOptions(arguments)]),trailingFunctionArgument(arguments))}status(){return this._runTask(statusTask(getTrailingOptions(arguments)),trailingFunctionArgument(arguments))}},Object.assign(SimpleGitApi.prototype,checkout_default(),clone_default(),commit_default(),config_default(),count_objects_default(),first_commit_default(),grep_default(),log_default(),show_default(),version_default())}}),scheduler_exports={};__export(scheduler_exports,{Scheduler:()=>Scheduler});var createScheduledTask,Scheduler,init_scheduler=__esm({"src/lib/runners/scheduler.ts"(){init_utils(),init_git_logger(),createScheduledTask=(()=>{let e=0;return()=>{e++;let{promise:t,done:n}=(0,import_dist$1.createDeferred)();return{promise:t,done:n,id:e}}})(),Scheduler=class{constructor(e=2){this.concurrency=e,this.logger=createLogger(``,`scheduler`),this.pending=[],this.running=[],this.logger(`Constructed, concurrency=%s`,e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){this.logger(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`,this.pending.length,this.running.length,this.concurrency);return}let e=append(this.running,this.pending.shift());this.logger(`Attempting id=%s`,e.id),e.done(()=>{this.logger(`Completing id=`,e.id),remove(this.running,e),this.schedule()})}next(){let{promise:e,id:t}=append(this.pending,createScheduledTask());return this.logger(`Scheduling id=%s`,t),this.schedule(),e}}}}),apply_patch_exports={};__export(apply_patch_exports,{applyPatchTask:()=>applyPatchTask});function applyPatchTask(e,t){return straightThroughStringTask([`apply`,...t,...e])}var init_apply_patch=__esm({"src/lib/tasks/apply-patch.ts"(){init_task()}});function branchDeletionSuccess(e,t){return{branch:e,hash:t,success:!0}}function branchDeletionFailure(e){return{branch:e,hash:null,success:!1}}var BranchDeletionBatch,init_BranchDeleteSummary=__esm({"src/lib/responses/BranchDeleteSummary.ts"(){BranchDeletionBatch=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function hasBranchDeletionError(e,t){return t===1&&deleteErrorRegex.test(e)}var deleteSuccessRegex,deleteErrorRegex,parsers8,parseBranchDeletions,init_parse_branch_delete=__esm({"src/lib/parsers/parse-branch-delete.ts"(){init_BranchDeleteSummary(),init_utils(),deleteSuccessRegex=/(\S+)\s+\(\S+\s([^)]+)\)/,deleteErrorRegex=/^error[^']+'([^']+)'/m,parsers8=[new LineParser(deleteSuccessRegex,(e,[t,n])=>{let r=branchDeletionSuccess(t,n);e.all.push(r),e.branches[t]=r}),new LineParser(deleteErrorRegex,(e,[t])=>{let n=branchDeletionFailure(t);e.errors.push(n),e.all.push(n),e.branches[t]=n})],parseBranchDeletions=(e,t)=>parseStringResponse(new BranchDeletionBatch,parsers8,[e,t])}}),BranchSummaryResult,init_BranchSummary=__esm({"src/lib/responses/BranchSummary.ts"(){BranchSummaryResult=class{constructor(){this.all=[],this.branches={},this.current=``,this.detached=!1}push(e,t,n,r,a){e===`*`&&(this.detached=t,this.current=n),this.all.push(n),this.branches[n]={current:e===`*`,linkedWorkTree:e===`+`,name:n,commit:r,label:a}}}}});function branchStatus(e){return e?e.charAt(0):``}function parseBranchSummary(e,t=!1){return parseStringResponse(new BranchSummaryResult,t?[currentBranchParser]:parsers9,e)}var parsers9,currentBranchParser,init_parse_branch=__esm({"src/lib/parsers/parse-branch.ts"(){init_BranchSummary(),init_utils(),parsers9=[new LineParser(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[t,n,r,a])=>{e.push(branchStatus(t),!0,n,r,a)}),new LineParser(/^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s,(e,[t,n,r,a])=>{e.push(branchStatus(t),!1,n,r,a)})],currentBranchParser=new LineParser(/^(\S+)$/s,(e,[t])=>{e.push(`*`,!1,t,``,``)})}}),branch_exports={};__export(branch_exports,{branchLocalTask:()=>branchLocalTask,branchTask:()=>branchTask,containsDeleteBranchCommand:()=>containsDeleteBranchCommand,deleteBranchTask:()=>deleteBranchTask,deleteBranchesTask:()=>deleteBranchesTask});function containsDeleteBranchCommand(e){let t=[`-d`,`-D`,`--delete`];return e.some(e=>t.includes(e))}function branchTask(e){let t=containsDeleteBranchCommand(e),n=e.includes(`--show-current`),r=[`branch`,...e];return r.length===1&&r.push(`-a`),r.includes(`-v`)||r.splice(1,0,`-v`),{format:`utf-8`,commands:r,parser(e,r){return t?parseBranchDeletions(e,r).all[0]:parseBranchSummary(e,n)}}}function branchLocalTask(){return{format:`utf-8`,commands:[`branch`,`-v`],parser(e){return parseBranchSummary(e)}}}function deleteBranchesTask(e,t=!1){return{format:`utf-8`,commands:[`branch`,`-v`,t?`-D`:`-d`,...e],parser(e,t){return parseBranchDeletions(e,t)},onError({exitCode:e,stdOut:t},n,r,a){if(!hasBranchDeletionError(String(n),e))return a(n);r(t)}}}function deleteBranchTask(e,t=!1){let n={format:`utf-8`,commands:[`branch`,`-v`,t?`-D`:`-d`,e],parser(t,n){return parseBranchDeletions(t,n).branches[e]},onError({exitCode:e,stdErr:t,stdOut:r},a,o,s){if(!hasBranchDeletionError(String(a),e))return s(a);throw new GitResponseError(n.parser(bufferToString(r),bufferToString(t)),String(a))}};return n}var init_branch=__esm({"src/lib/tasks/branch.ts"(){init_git_response_error(),init_parse_branch_delete(),init_parse_branch(),init_utils()}});function toPath(e){let t=e.trim().replace(/^["']|["']$/g,``);return t&&(0,import___vite_browser_external.normalize)(t)}var parseCheckIgnore,init_CheckIgnore=__esm({"src/lib/responses/CheckIgnore.ts"(){parseCheckIgnore=e=>e.split(/\n/g).map(toPath).filter(Boolean)}}),check_ignore_exports={};__export(check_ignore_exports,{checkIgnoreTask:()=>checkIgnoreTask});function checkIgnoreTask(e){return{commands:[`check-ignore`,...e],format:`utf-8`,parser:parseCheckIgnore}}var init_check_ignore=__esm({"src/lib/tasks/check-ignore.ts"(){init_CheckIgnore()}});function parseFetchResult(e,t){return parseStringResponse({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},parsers10,[e,t])}var parsers10,init_parse_fetch=__esm({"src/lib/parsers/parse-fetch.ts"(){init_utils(),parsers10=[new LineParser(/From (.+)$/,(e,[t])=>{e.remote=t}),new LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(e,[t,n])=>{e.branches.push({name:t,tracking:n})}),new LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(e,[t,n])=>{e.tags.push({name:t,tracking:n})}),new LineParser(/- \[deleted]\s+\S+\s*-> (.+)$/,(e,[t])=>{e.deleted.push({tracking:t})}),new LineParser(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,(e,[t,n,r,a])=>{e.updated.push({name:r,tracking:a,to:n,from:t})})]}}),fetch_exports={};__export(fetch_exports,{fetchTask:()=>fetchTask});function disallowedCommand(e){return/^--upload-pack(=|$)/.test(e)}function fetchTask(e,t,n){let r=[`fetch`,...n];return e&&t&&r.push(e,t),r.find(disallowedCommand)?configurationErrorTask(`git.fetch: potential exploit argument blocked.`):{commands:r,format:`utf-8`,parser:parseFetchResult}}var init_fetch=__esm({"src/lib/tasks/fetch.ts"(){init_parse_fetch(),init_task()}});function parseMoveResult(e){return parseStringResponse({moves:[]},parsers11,e)}var parsers11,init_parse_move=__esm({"src/lib/parsers/parse-move.ts"(){init_utils(),parsers11=[new LineParser(/^Renaming (.+) to (.+)$/,(e,[t,n])=>{e.moves.push({from:t,to:n})})]}}),move_exports={};__export(move_exports,{moveTask:()=>moveTask});function moveTask(e,t){return{commands:[`mv`,`-v`,...asArray(e),t],format:`utf-8`,parser:parseMoveResult}}var init_move=__esm({"src/lib/tasks/move.ts"(){init_parse_move(),init_utils()}}),pull_exports={};__export(pull_exports,{pullTask:()=>pullTask});function pullTask(e,t,n){let r=[`pull`,...n];return e&&t&&r.splice(1,0,e,t),{commands:r,format:`utf-8`,parser(e,t){return parsePullResult(e,t)},onError(e,t,n,r){let a=parsePullErrorResult(bufferToString(e.stdOut),bufferToString(e.stdErr));if(a)return r(new GitResponseError(a));r(t)}}}var init_pull=__esm({"src/lib/tasks/pull.ts"(){init_git_response_error(),init_parse_pull(),init_utils()}});function parseGetRemotes(e){let t={};return forEach(e,([e])=>t[e]={name:e}),Object.values(t)}function parseGetRemotesVerbose(e){let t={};return forEach(e,([e,n,r])=>{Object.hasOwn(t,e)||(t[e]={name:e,refs:{fetch:``,push:``}}),r&&n&&(t[e].refs[r.replace(/[^a-z]/g,``)]=n)}),Object.values(t)}function forEach(e,t){forEachLineWithContent(e,e=>t(e.split(/\s+/)))}var init_GetRemoteSummary=__esm({"src/lib/responses/GetRemoteSummary.ts"(){init_utils()}}),remote_exports={};__export(remote_exports,{addRemoteTask:()=>addRemoteTask,getRemotesTask:()=>getRemotesTask,listRemotesTask:()=>listRemotesTask,remoteTask:()=>remoteTask,removeRemoteTask:()=>removeRemoteTask});function addRemoteTask(e,t,n){return straightThroughStringTask([`remote`,`add`,...n,e,t])}function getRemotesTask(e){let t=[`remote`];return e&&t.push(`-v`),{commands:t,format:`utf-8`,parser:e?parseGetRemotesVerbose:parseGetRemotes}}function listRemotesTask(e){let t=[...e];return t[0]!==`ls-remote`&&t.unshift(`ls-remote`),straightThroughStringTask(t)}function remoteTask(e){let t=[...e];return t[0]!==`remote`&&t.unshift(`remote`),straightThroughStringTask(t)}function removeRemoteTask(e){return straightThroughStringTask([`remote`,`remove`,e])}var init_remote=__esm({"src/lib/tasks/remote.ts"(){init_GetRemoteSummary(),init_task()}}),stash_list_exports={};__export(stash_list_exports,{stashListTask:()=>stashListTask});function stashListTask(e={},t){let n=parseLogOptions(e),r=[`stash`,`list`,...n.commands,...t],a=createListLogSummaryParser(n.splitter,n.fields,logFormatFromCommand(r));return validateLogFormatConfig(r)||{commands:r,format:`utf-8`,parser:a}}var init_stash_list=__esm({"src/lib/tasks/stash-list.ts"(){init_log_format(),init_parse_list_log_summary(),init_diff(),init_log()}}),sub_module_exports={};__export(sub_module_exports,{addSubModuleTask:()=>addSubModuleTask,initSubModuleTask:()=>initSubModuleTask,subModuleTask:()=>subModuleTask,updateSubModuleTask:()=>updateSubModuleTask});function addSubModuleTask(e,t){return subModuleTask([`add`,e,t])}function initSubModuleTask(e){return subModuleTask([`init`,...e])}function subModuleTask(e){let t=[...e];return t[0]!==`submodule`&&t.unshift(`submodule`),straightThroughStringTask(t)}function updateSubModuleTask(e){return subModuleTask([`update`,...e])}var init_sub_module=__esm({"src/lib/tasks/sub-module.ts"(){init_task()}});function singleSorted(e,t){let n=Number.isNaN(e);return n===Number.isNaN(t)?n?sorted(e,t):0:n?1:-1}function sorted(e,t){return e===t?0:e>t?1:-1}function trimmed(e){return e.trim()}function toNumber(e){return typeof e==`string`&&parseInt(e.replace(/^\D+/g,``),10)||0}var TagList,parseTagList,init_TagList=__esm({"src/lib/responses/TagList.ts"(){TagList=class{constructor(e,t){this.all=e,this.latest=t}},parseTagList=function(e,t=!1){let n=e.split(`
142
- `).map(trimmed).filter(Boolean);t||n.sort(function(e,t){let n=e.split(`.`),r=t.split(`.`);if(n.length===1||r.length===1)return singleSorted(toNumber(n[0]),toNumber(r[0]));for(let e=0,t=Math.max(n.length,r.length);e<t;e++){let t=sorted(toNumber(n[e]),toNumber(r[e]));if(t)return t}return 0});let r=t?n[0]:[...n].reverse().find(e=>e.indexOf(`.`)>=0);return new TagList(n,r)}}}),tag_exports={};__export(tag_exports,{addAnnotatedTagTask:()=>addAnnotatedTagTask,addTagTask:()=>addTagTask,tagListTask:()=>tagListTask});function tagListTask(e=[]){let t=e.some(e=>/^--sort=/.test(e));return{format:`utf-8`,commands:[`tag`,`-l`,...e],parser(e){return parseTagList(e,t)}}}function addTagTask(e){return{format:`utf-8`,commands:[`tag`,e],parser(){return{name:e}}}}function addAnnotatedTagTask(e,t){return{format:`utf-8`,commands:[`tag`,`-a`,`-m`,t,e],parser(){return{name:e}}}}var init_tag=__esm({"src/lib/tasks/tag.ts"(){init_TagList()}}),require_git=__commonJS({"src/git.js"(e,t){var{GitExecutor:n}=(init_git_executor(),__toCommonJS(git_executor_exports)),{SimpleGitApi:r}=(init_simple_git_api(),__toCommonJS(simple_git_api_exports)),{Scheduler:a}=(init_scheduler(),__toCommonJS(scheduler_exports)),{adhocExecTask:o,configurationErrorTask:s}=(init_task(),__toCommonJS(task_exports)),{asArray:c,filterArray:l,filterPrimitives:u,filterString:d,filterStringOrStringArray:f,filterType:p,getTrailingOptions:m,trailingFunctionArgument:h,trailingOptionsArgument:g}=(init_utils(),__toCommonJS(utils_exports)),{applyPatchTask:_}=(init_apply_patch(),__toCommonJS(apply_patch_exports)),{branchTask:v,branchLocalTask:y,deleteBranchesTask:b,deleteBranchTask:x}=(init_branch(),__toCommonJS(branch_exports)),{checkIgnoreTask:S}=(init_check_ignore(),__toCommonJS(check_ignore_exports)),{checkIsRepoTask:C}=(init_check_is_repo(),__toCommonJS(check_is_repo_exports)),{cleanWithOptionsTask:w,isCleanOptionsArray:T}=(init_clean(),__toCommonJS(clean_exports)),{diffSummaryTask:E}=(init_diff(),__toCommonJS(diff_exports)),{fetchTask:D}=(init_fetch(),__toCommonJS(fetch_exports)),{moveTask:O}=(init_move(),__toCommonJS(move_exports)),{pullTask:k}=(init_pull(),__toCommonJS(pull_exports)),{pushTagsTask:A}=(init_push(),__toCommonJS(push_exports)),{addRemoteTask:j,getRemotesTask:M,listRemotesTask:N,remoteTask:P,removeRemoteTask:ee}=(init_remote(),__toCommonJS(remote_exports)),{getResetMode:te,resetTask:F}=(init_reset(),__toCommonJS(reset_exports)),{stashListTask:I}=(init_stash_list(),__toCommonJS(stash_list_exports)),{addSubModuleTask:L,initSubModuleTask:R,subModuleTask:z,updateSubModuleTask:B}=(init_sub_module(),__toCommonJS(sub_module_exports)),{addAnnotatedTagTask:V,addTagTask:H,tagListTask:U}=(init_tag(),__toCommonJS(tag_exports)),{straightThroughBufferTask:W,straightThroughStringTask:G}=(init_task(),__toCommonJS(task_exports));function K(e,t){this._plugins=t,this._executor=new n(e.baseDir,new a(e.maxConcurrentProcesses),t),this._trimmed=e.trimmed}(K.prototype=Object.create(r.prototype)).constructor=K,K.prototype.customBinary=function(e){return this._plugins.reconfigure(`binary`,e),this},K.prototype.env=function(e,t){return arguments.length===1&&typeof e==`object`?this._executor.env=e:(this._executor.env=this._executor.env||{})[e]=t,this},K.prototype.stashList=function(e){return this._runTask(I(g(arguments)||{},l(e)&&e||[]),h(arguments))},K.prototype.mv=function(e,t){return this._runTask(O(e,t),h(arguments))},K.prototype.checkoutLatestTag=function(e){var t=this;return this.pull(function(){t.tags(function(n,r){t.checkout(r.latest,e)})})},K.prototype.pull=function(e,t,n,r){return this._runTask(k(p(e,d),p(t,d),m(arguments)),h(arguments))},K.prototype.fetch=function(e,t){return this._runTask(D(p(e,d),p(t,d),m(arguments)),h(arguments))},K.prototype.silent=function(e){return this._runTask(o(()=>console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this method will be removed.")))},K.prototype.tags=function(e,t){return this._runTask(U(m(arguments)),h(arguments))},K.prototype.rebase=function(){return this._runTask(G([`rebase`,...m(arguments)]),h(arguments))},K.prototype.reset=function(e){return this._runTask(F(te(e),m(arguments)),h(arguments))},K.prototype.revert=function(e){let t=h(arguments);return typeof e==`string`?this._runTask(G([`revert`,...m(arguments,0,!0),e]),t):this._runTask(s(`Commit must be a string`),t)},K.prototype.addTag=function(e){let t=typeof e==`string`?H(e):s(`Git.addTag requires a tag name`);return this._runTask(t,h(arguments))},K.prototype.addAnnotatedTag=function(e,t){return this._runTask(V(e,t),h(arguments))},K.prototype.deleteLocalBranch=function(e,t,n){return this._runTask(x(e,typeof t==`boolean`?t:!1),h(arguments))},K.prototype.deleteLocalBranches=function(e,t,n){return this._runTask(b(e,typeof t==`boolean`?t:!1),h(arguments))},K.prototype.branch=function(e,t){return this._runTask(v(m(arguments)),h(arguments))},K.prototype.branchLocal=function(e){return this._runTask(y(),h(arguments))},K.prototype.raw=function(e){let t=!Array.isArray(e),n=[].slice.call(t?arguments:e,0);for(let e=0;e<n.length&&t;e++)if(!u(n[e])){n.splice(e,n.length-e);break}n.push(...m(arguments,0,!0));var r=h(arguments);return n.length?this._runTask(G(n,this._trimmed),r):this._runTask(s(`Raw: must supply one or more command to execute`),r)},K.prototype.submoduleAdd=function(e,t,n){return this._runTask(L(e,t),h(arguments))},K.prototype.submoduleUpdate=function(e,t){return this._runTask(B(m(arguments,!0)),h(arguments))},K.prototype.submoduleInit=function(e,t){return this._runTask(R(m(arguments,!0)),h(arguments))},K.prototype.subModule=function(e,t){return this._runTask(z(m(arguments)),h(arguments))},K.prototype.listRemote=function(){return this._runTask(N(m(arguments)),h(arguments))},K.prototype.addRemote=function(e,t,n){return this._runTask(j(e,t,m(arguments)),h(arguments))},K.prototype.removeRemote=function(e,t){return this._runTask(ee(e),h(arguments))},K.prototype.getRemotes=function(e,t){return this._runTask(M(e===!0),h(arguments))},K.prototype.remote=function(e,t){return this._runTask(P(m(arguments)),h(arguments))},K.prototype.tag=function(e,t){let n=m(arguments);return n[0]!==`tag`&&n.unshift(`tag`),this._runTask(G(n),h(arguments))},K.prototype.updateServerInfo=function(e){return this._runTask(G([`update-server-info`]),h(arguments))},K.prototype.pushTags=function(e,t){let n=A({remote:p(e,d)},m(arguments));return this._runTask(n,h(arguments))},K.prototype.rm=function(e){return this._runTask(G([`rm`,`-f`,...c(e)]),h(arguments))},K.prototype.rmKeepLocal=function(e){return this._runTask(G([`rm`,`--cached`,...c(e)]),h(arguments))},K.prototype.catFile=function(e,t){return this._catFile(`utf-8`,arguments)},K.prototype.binaryCatFile=function(){return this._catFile(`buffer`,arguments)},K.prototype._catFile=function(e,t){var n=h(t),r=[`cat-file`],a=t[0];if(typeof a==`string`)return this._runTask(s(`Git.catFile: options must be supplied as an array of strings`),n);Array.isArray(a)&&r.push.apply(r,a);let o=e===`buffer`?W(r):G(r);return this._runTask(o,n)},K.prototype.diff=function(e,t){let n=d(e)?s(`git.diff: supplying options as a single string is no longer supported, switch to an array of strings`):G([`diff`,...m(arguments)]);return this._runTask(n,h(arguments))},K.prototype.diffSummary=function(){return this._runTask(E(m(arguments,1)),h(arguments))},K.prototype.applyPatch=function(e){let t=f(e)?_(c(e),m([].slice.call(arguments,1))):s(`git.applyPatch requires one or more string patches as the first argument`);return this._runTask(t,h(arguments))},K.prototype.revparse=function(){let e=[`rev-parse`,...m(arguments,!0)];return this._runTask(G(e,!0),h(arguments))},K.prototype.clean=function(e,t,n){let r=T(e),a=r&&e.join(``)||p(e,d)||``,o=m([].slice.call(arguments,+!!r));return this._runTask(w(a,o),h(arguments))},K.prototype.exec=function(e){return this._runTask({commands:[],format:`utf-8`,parser(){typeof e==`function`&&e()}})},K.prototype.clearQueue=function(){return this._runTask(o(()=>console.warn(`simple-git deprecation notice: clearQueue() is deprecated and will be removed, switch to using the abortPlugin instead.`)))},K.prototype.checkIgnore=function(e,t){return this._runTask(S(c(p(e,f,[]))),h(arguments))},K.prototype.checkIsRepo=function(e,t){return this._runTask(C(p(e,d)),h(arguments))},t.exports=K}});init_pathspec(),init_git_error(),init_git_error(),init_git_error();var GitPluginError=class extends GitError{constructor(e,t,n){super(e,n),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};init_git_response_error(),init_task_configuration_error(),init_check_is_repo(),init_clean(),init_config(),init_diff_name_status(),init_grep(),init_reset();function isConfigSwitch(e){return typeof e==`string`&&e.trim().toLowerCase()===`-c`}function preventConfigBuilder(e,t,n=String(e)){let r=typeof e==`string`?RegExp(`\\s*${e}`,`i`):e;return function(e,a,o){if(e[t]!==!0&&isConfigSwitch(a)&&r.test(o))throw new GitPluginError(void 0,`unsafe`,`Configuring ${n} is not permitted without enabling ${t}`)}}var preventUnsafeConfig=[preventConfigBuilder(/^\s*protocol(.[a-z]+)?.allow/i,`allowUnsafeProtocolOverride`,`protocol.allow`),preventConfigBuilder(`core.sshCommand`,`allowUnsafeSshCommand`),preventConfigBuilder(`core.gitProxy`,`allowUnsafeGitProxy`),preventConfigBuilder(`core.hooksPath`,`allowUnsafeHooksPath`),preventConfigBuilder(`diff.external`,`allowUnsafeDiffExternal`)];init_utils(),init_utils();var never=(0,import_dist$1.deferred)().promise;init_utils(),init_git_error(),init_utils(),init_utils(),init_utils(),init_pathspec(),init_utils();var Git=require_git();init_git_response_error();var execFileAsync=(0,import___vite_browser_external.promisify)(import___vite_browser_external.execFile);init_preload_helper();async function getLifecycleStatus(e,t){let n=t.epicId??t.taskId,{getDb:r}=await __vitePreload(async()=>{let{getDb:e}=await import(`./s0-WkOGk2.js`);return{getDb:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]),import.meta.url),{eq:a}=await __vitePreload(async()=>{let{eq:e}=await import(`./DeWI5qCn.js`);return{eq:e}},__vite__mapDeps([33,4,34,9]),import.meta.url),o=await r(e),s=await o.select({pipeline:tasksLifecyclePipelines,task:tasksTasks}).from(tasksLifecyclePipelines).innerJoin(tasksTasks,a(tasksLifecyclePipelines.taskId,tasksTasks.id)).where(a(tasksLifecyclePipelines.taskId,n)).limit(1);if(s.length===0)return{epicId:n,currentStage:null,stages:PIPELINE_STAGES.map(e=>({stage:e,status:`not_started`})),nextStage:`research`,blockedOn:[],initialized:!1};let c=s[0].task,l=`pipeline-${n}`,u=await o.select().from(tasksLifecycleStages).where(a(tasksLifecycleStages.pipelineId,l)).orderBy(tasksLifecycleStages.sequence),d=new Map;for(let e of u){let t;if(e.provenanceChainJson)try{t=JSON.parse(e.provenanceChainJson)}catch{t=void 0}d.set(e.stageName,{status:e.status,completedAt:e.completedAt??void 0,notes:e.notesJson?JSON.parse(e.notesJson)[0]:void 0,outputFile:e.outputFile??void 0,provenanceChain:t})}let f=PIPELINE_STAGES.map(e=>{let t=d.get(e);return{stage:e,status:t?.status||`not_started`,completedAt:t?.completedAt,notes:t?.notes,outputFile:t?.outputFile,provenanceChain:t?.provenanceChain}}),p=null,m=null;for(let e=PIPELINE_STAGES.length-1;e>=0;e--){let t=PIPELINE_STAGES[e],n=d.get(t);if(n?.status===`completed`||n?.status===`skipped`){p=t,e<PIPELINE_STAGES.length-1&&(m=PIPELINE_STAGES[e+1]);break}}p||(m=`research`);let h=[];if(m){let e=STAGE_PREREQUISITES[m]||[];for(let t of e){let e=d.get(t)?.status;e!==`completed`&&e!==`skipped`&&h.push(t)}}return{epicId:n,title:c.title,currentStage:p,stages:f,nextStage:m,blockedOn:h,initialized:!0}}async function ensureLifecycleContext(e,t,n,r){let{getDb:a}=await __vitePreload(async()=>{let{getDb:e}=await import(`./s0-WkOGk2.js`);return{getDb:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]),import.meta.url),{eq:o}=await __vitePreload(async()=>{let{eq:e}=await import(`./DeWI5qCn.js`);return{eq:e}},__vite__mapDeps([33,4,34,9]),import.meta.url),s=await a(n),c=`pipeline-${e}`,l=`stage-${e}-${t}`,{getNativeDb:u}=await __vitePreload(async()=>{let{getNativeDb:e}=await import(`./s0-WkOGk2.js`);return{getNativeDb:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]),import.meta.url);if(u(n).prepare(`INSERT OR IGNORE INTO tasks_tasks (id, title, status, priority, created_at) VALUES (?, ?, 'pending', 'medium', datetime('now'))`).run(e,`Task ${e}`),(await s.select().from(tasksLifecyclePipelines).where(o(tasksLifecyclePipelines.id,c)).limit(1).all()).length===0&&await s.insert(tasksLifecyclePipelines).values({id:c,taskId:e,status:`active`,currentStageId:null,startedAt:r.now}).run(),(await s.select().from(tasksLifecycleStages).where(o(tasksLifecycleStages.id,l)).limit(1).all()).length===0){let e=isValidStage(t)?STAGE_ORDER[t]:0;await s.insert(tasksLifecycleStages).values({id:l,pipelineId:c,stageName:t,status:r.stageStatusOnCreate,sequence:e,startedAt:r.now}).run()}return r.updateCurrentStage&&await s.update(tasksLifecyclePipelines).set({currentStageId:l}).where(o(tasksLifecyclePipelines.id,c)).run(),{db:s,pipelineId:c,stageId:l}}async function recordStageProgress(e,t){let n=t.taskId,r=t.stage,a=t.status,o=t.notes;if(r=resolveStageAlias(r),!PIPELINE_STAGES.includes(r))throw new CleoError(ExitCode.INVALID_INPUT,`Invalid stage: ${r}`);let s=[...LIFECYCLE_STAGE_STATUSES];if(!s.includes(a))throw new CleoError(ExitCode.INVALID_INPUT,`Invalid status: ${a}. Valid: ${s.join(`, `)}`);let{eq:c}=await __vitePreload(async()=>{let{eq:e}=await import(`./DeWI5qCn.js`);return{eq:e}},__vite__mapDeps([33,4,34,9]),import.meta.url),l=new Date().toISOString(),u=r,{db:d,stageId:f,pipelineId:p}=await ensureLifecycleContext(n,r,e,{now:l,stageStatusOnCreate:a,updateCurrentStage:!0}),m=await ensureStageArtifact(n,u,e),h={recordedAt:l,source:`pipeline.stage.record`,stage:r,status:a,related:m.related},g=await d.select().from(tasksLifecycleStages).where(c(tasksLifecycleStages.id,f)).limit(1).all(),_=STAGE_ORDER[r],v={status:a,completedAt:a===`completed`?l:null,skippedAt:a===`skipped`?l:null,skipReason:a===`skipped`?o??null:null,notesJson:o?JSON.stringify([o]):`[]`,outputFile:m.outputFile,provenanceChainJson:JSON.stringify(h)};if(g.length===0?await d.insert(tasksLifecycleStages).values({id:f,pipelineId:p,stageName:r,status:a,sequence:_,startedAt:l,completedAt:a===`completed`?l:null,skippedAt:a===`skipped`?l:null,skipReason:a===`skipped`?o??null:null,notesJson:o?JSON.stringify([o]):`[]`,outputFile:m.outputFile,provenanceChainJson:JSON.stringify(h)}).run():await d.update(tasksLifecycleStages).set(v).where(c(tasksLifecycleStages.id,f)).run(),a===`completed`&&(await linkProvenance(n,u,m.absolutePath,e),u===`architecture_decision`)){let t=getProjectRoot(e);await syncAdrsToDb(t),await linkPipelineAdr(t,n)}if(a===`in_progress`||a===`completed`){let{getPipelineStageOrder:e}=await __vitePreload(async()=>{let{getPipelineStageOrder:e}=await import(`./DMZkjPYT2.js`);return{getPipelineStageOrder:e}},__vite__mapDeps([36,37,11,2,12,13,8,16]),import.meta.url),t=e(r),a=(await d.select({pipelineStage:tasksTasks.pipelineStage}).from(tasksTasks).where(c(tasksTasks.id,n)).limit(1).all())[0]?.pipelineStage??null;t>=(a?e(a):-1)&&await d.update(tasksTasks).set({pipelineStage:r}).where(c(tasksTasks.id,n)).run()}return{epicId:n,stage:r,status:a,timestamp:l}}export{recordStageProgress as n,getLifecycleStatus as t};