@visulima/vis 1.0.8 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/LICENSE.md +210 -2733
  3. package/README.md +1 -1
  4. package/dist/bin.js +1 -1
  5. package/dist/binx.js +2 -2
  6. package/dist/config/index.d.ts +1817 -1811
  7. package/dist/generate/index.d.ts +39 -39
  8. package/dist/packem_chunks/CONFIG_FILES.js +5 -5
  9. package/dist/packem_chunks/bloom-status.js +1 -1
  10. package/dist/packem_chunks/bloom-sync.js +1 -1
  11. package/dist/packem_chunks/cache-attestation.js +1 -1
  12. package/dist/packem_chunks/catalog.js +70 -68
  13. package/dist/packem_chunks/cli-exec.js +1 -1
  14. package/dist/packem_chunks/cli-main.js +166 -163
  15. package/dist/packem_chunks/detect.js +3 -3
  16. package/dist/packem_chunks/detect2.js +4 -4
  17. package/dist/packem_chunks/devtools.js +1 -1
  18. package/dist/packem_chunks/dispatch.js +3 -3
  19. package/dist/packem_chunks/extra-files.js +3 -3
  20. package/dist/packem_chunks/fix.js +8 -8
  21. package/dist/packem_chunks/handler.js +1 -1
  22. package/dist/packem_chunks/handler10.js +5 -5
  23. package/dist/packem_chunks/handler11.js +1 -1
  24. package/dist/packem_chunks/handler12.js +6 -6
  25. package/dist/packem_chunks/handler13.js +1 -1
  26. package/dist/packem_chunks/handler14.js +1 -1
  27. package/dist/packem_chunks/handler15.js +1 -1
  28. package/dist/packem_chunks/handler16.js +1 -1
  29. package/dist/packem_chunks/handler17.js +1 -1
  30. package/dist/packem_chunks/handler18.js +1 -1
  31. package/dist/packem_chunks/handler19.js +1 -1
  32. package/dist/packem_chunks/handler2.js +1 -1
  33. package/dist/packem_chunks/handler20.js +2 -2
  34. package/dist/packem_chunks/handler21.js +2 -2
  35. package/dist/packem_chunks/handler22.js +10 -10
  36. package/dist/packem_chunks/handler23.js +1 -1
  37. package/dist/packem_chunks/handler24.js +1 -1
  38. package/dist/packem_chunks/handler25.js +1 -1
  39. package/dist/packem_chunks/handler26.js +5 -5
  40. package/dist/packem_chunks/handler27.js +1 -1
  41. package/dist/packem_chunks/handler28.js +3 -3
  42. package/dist/packem_chunks/handler29.js +1 -1
  43. package/dist/packem_chunks/handler3.js +2 -3
  44. package/dist/packem_chunks/handler30.js +1 -1
  45. package/dist/packem_chunks/handler31.js +2 -2
  46. package/dist/packem_chunks/handler35.js +3 -3
  47. package/dist/packem_chunks/handler4.js +3 -3
  48. package/dist/packem_chunks/handler40.js +10 -10
  49. package/dist/packem_chunks/handler42.js +3 -3
  50. package/dist/packem_chunks/handler43.js +3 -3
  51. package/dist/packem_chunks/handler5.js +5 -5
  52. package/dist/packem_chunks/handler50.js +6 -6
  53. package/dist/packem_chunks/handler51.js +13 -13
  54. package/dist/packem_chunks/handler52.js +3 -3
  55. package/dist/packem_chunks/handler53.js +1 -1
  56. package/dist/packem_chunks/handler54.js +2 -2
  57. package/dist/packem_chunks/handler55.js +1 -1
  58. package/dist/packem_chunks/handler57.js +5 -5
  59. package/dist/packem_chunks/handler58.js +4 -4
  60. package/dist/packem_chunks/handler59.js +8 -8
  61. package/dist/packem_chunks/handler6.js +7 -7
  62. package/dist/packem_chunks/handler60.js +2 -2
  63. package/dist/packem_chunks/handler61.js +13 -13
  64. package/dist/packem_chunks/handler62.js +3 -3
  65. package/dist/packem_chunks/handler63.js +3 -3
  66. package/dist/packem_chunks/handler64.js +4 -4
  67. package/dist/packem_chunks/handler65.js +6 -6
  68. package/dist/packem_chunks/handler66.js +2 -2
  69. package/dist/packem_chunks/handler67.js +16 -16
  70. package/dist/packem_chunks/handler68.js +7 -7
  71. package/dist/packem_chunks/handler69.js +25 -25
  72. package/dist/packem_chunks/handler7.js +1 -1
  73. package/dist/packem_chunks/handler70.js +6 -6
  74. package/dist/packem_chunks/handler71.js +14 -14
  75. package/dist/packem_chunks/handler72.js +42 -42
  76. package/dist/packem_chunks/handler73.js +9 -9
  77. package/dist/packem_chunks/handler74.js +21 -21
  78. package/dist/packem_chunks/handler75.js +3 -27
  79. package/dist/packem_chunks/handler76.js +27 -3
  80. package/dist/packem_chunks/handler77.js +63 -64
  81. package/dist/packem_chunks/handler78.js +25 -23
  82. package/dist/packem_chunks/handler8.js +1 -1
  83. package/dist/packem_chunks/handler9.js +1 -1
  84. package/dist/packem_chunks/heal-accept.js +5 -5
  85. package/dist/packem_chunks/heal.js +8 -8
  86. package/dist/packem_chunks/help-command.js +56 -23
  87. package/dist/packem_chunks/index2.js +5 -5
  88. package/dist/packem_chunks/index3.js +2 -2
  89. package/dist/packem_chunks/index4.js +11 -11
  90. package/dist/packem_chunks/keys-refresh.js +1 -1
  91. package/dist/packem_chunks/lean.js +1 -1
  92. package/dist/packem_chunks/list.js +2 -2
  93. package/dist/packem_chunks/loader.js +4 -4
  94. package/dist/packem_chunks/orchestrator.js +14 -14
  95. package/dist/packem_chunks/pre-mode.js +2 -2
  96. package/dist/packem_chunks/prompts.js +3 -3
  97. package/dist/packem_chunks/prune.js +1 -1
  98. package/dist/packem_chunks/publish-guards.js +1 -1
  99. package/dist/packem_chunks/registry.js +17 -17
  100. package/dist/packem_chunks/resolveFormatter.js +5 -5
  101. package/dist/packem_chunks/shell-runner.js +1 -1
  102. package/dist/packem_chunks/snapshot.js +2 -2
  103. package/dist/packem_chunks/stage-publisher.js +1 -1
  104. package/dist/packem_chunks/staged-registry.js +2 -2
  105. package/dist/packem_chunks/state.js +3 -3
  106. package/dist/packem_chunks/status.js +1 -1
  107. package/dist/packem_chunks/sync.js +1 -1
  108. package/dist/packem_chunks/sync2.js +1 -1
  109. package/dist/packem_chunks/tar.js +3 -3
  110. package/dist/packem_chunks/tripwire.js +2 -2
  111. package/dist/packem_chunks/ts-loader.js +8 -8
  112. package/dist/packem_chunks/verify-lockfile.js +2 -2
  113. package/dist/packem_chunks/workspace.js +2 -2
  114. package/dist/packem_shared/advisories-BGeuHJQg.js +1 -0
  115. package/dist/packem_shared/affected-selection-B85ND6JV.js +1 -0
  116. package/dist/packem_shared/affected-shas-BWRRAB47.js +1 -0
  117. package/dist/packem_shared/ai-analysis-oNMAj1wd.js +68 -0
  118. package/dist/packem_shared/{ai-fix-BocGeQu4.js → ai-fix-BgBU0TOz.js} +9 -9
  119. package/dist/packem_shared/{augment-BIUGEy1Q.js → augment-HVeX6LpU.js} +4 -4
  120. package/dist/packem_shared/bin-DKod8Iqo.js +1 -0
  121. package/dist/packem_shared/build-scripts-CM8M1xcG.js +1 -0
  122. package/dist/packem_shared/{command-runtime-Buz4F5LM.js → command-runtime-BVi4lL8k.js} +1 -1
  123. package/dist/packem_shared/cyclonedx-y7VLI-1d.js +4 -0
  124. package/dist/packem_shared/{dependency-scan-7szXDRxn.js → dependency-scan-BAzKpXdW.js} +1 -1
  125. package/dist/packem_shared/{docker-B2h5KRZH.js → docker-D1LStSlH.js} +36 -36
  126. package/dist/packem_shared/{en-BRcjb70R.js → en-BxrK-n-J.js} +10 -10
  127. package/dist/packem_shared/failure-log-ChuFC-8f.js +2 -0
  128. package/dist/packem_shared/giget-CAxjpwew.js +2 -0
  129. package/dist/packem_shared/glob-BUjyjdE8-BSrdzgma.js +1 -0
  130. package/dist/packem_shared/{index-BQSyPcXq.js → index-BJw7gKD1.js} +1 -1
  131. package/dist/packem_shared/index-BWl4DbMp.js +1 -0
  132. package/dist/packem_shared/index-DND6ptxQ.js +35 -0
  133. package/dist/packem_shared/{interface.d-B7VK2rcH.d.ts → interface.d-CRqRz4jt.d.ts} +39 -39
  134. package/dist/packem_shared/{interface.d-Cezzifoh.d.ts → interface.d-CrHOtJc1.d.ts} +37 -37
  135. package/dist/packem_shared/lifecycle-Db0qh6vR.js +2 -0
  136. package/dist/packem_shared/lockfile-CDQ0n4P5.js +1 -0
  137. package/dist/packem_shared/main-D_cam4hv.js +1 -0
  138. package/dist/packem_shared/manifests-Da_no4ZH.js +1 -0
  139. package/dist/packem_shared/{min-release-age-Cdh1dLz1.js → min-release-age-V6L6dpiP.js} +2 -2
  140. package/dist/packem_shared/missing-package-json-Jw8IEHct.js +1 -0
  141. package/dist/packem_shared/{native-config-sync-DW8549FX.js → native-config-sync-C0pUePad.js} +6 -6
  142. package/dist/packem_shared/osv-bloom-DNFpvSSO.js +2 -0
  143. package/dist/packem_shared/package-version-DjHDww_5.js +4 -0
  144. package/dist/packem_shared/packument-N3EWbZpL.js +1 -0
  145. package/dist/packem_shared/pm-runner-Bssje5qH.js +1 -0
  146. package/dist/packem_shared/project-name-filter-u2Q7YpQH.js +7 -0
  147. package/dist/packem_shared/prompt-BSAy8SMH.js +1 -0
  148. package/dist/packem_shared/{provenance-ByHgofYo.js → provenance-9OT8sTqn.js} +1 -1
  149. package/dist/packem_shared/{readJsonSync-DuMMeB3s-wlhgSHes.js → readJsonSync-BnWiH5-R-BpnwAB0Z.js} +1 -1
  150. package/dist/packem_shared/registry-keys-CYHd7qU2.js +1 -0
  151. package/dist/packem_shared/{resolve-explicit-CnEsy-zC.js → resolve-explicit-DC3XssJa.js} +1 -1
  152. package/dist/packem_shared/{resolve-runtime-Z2n59SEd.js → resolve-runtime-f5l4ODsH.js} +1 -1
  153. package/dist/packem_shared/run-file-zB4ACnUy.js +1 -0
  154. package/dist/packem_shared/{runtime-check-B1OF152E.js → runtime-check-CWvAfu5u.js} +1 -1
  155. package/dist/packem_shared/s1ngularity-DsmC71xt.js +1 -0
  156. package/dist/packem_shared/scan-progress-Ch8s3Uwl.js +2 -0
  157. package/dist/packem_shared/selectors-CtxnIT4X.js +3 -0
  158. package/dist/packem_shared/signatures-Dwx5fD4g.js +2 -0
  159. package/dist/packem_shared/subtree-DSm0QEoE.js +2 -0
  160. package/dist/packem_shared/target-merge-b7bE1AEx.js +11 -0
  161. package/dist/packem_shared/target-options-BO4Uxt0k.js +1 -0
  162. package/dist/packem_shared/toolchain-BY8lJaSN.js +5 -0
  163. package/dist/packem_shared/typosquats-BUGgotNu.js +1 -0
  164. package/dist/packem_shared/use-measured-height-BLZt9dW2.js +1 -0
  165. package/dist/packem_shared/verify-B0ztxKMa.js +1 -0
  166. package/dist/packem_shared/vis-update-app-D1gLJB1O.js +1 -0
  167. package/dist/packem_shared/vis-user-error-DjFv8uxy.js +28 -0
  168. package/dist/packem_shared/watch-CGrUW_JD.js +1 -0
  169. package/dist/packem_shared/watch-loop-DIwSMjlA.js +11 -0
  170. package/dist/release/core/package-managers/index.d.ts +2 -2
  171. package/dist/release/core/version-actions/index.d.ts +10 -10
  172. package/dist/release/index.d.ts +60 -60
  173. package/dist/release/plugin-sdk.d.ts +80 -80
  174. package/dist/release/presets.d.ts +148 -148
  175. package/dist/release/types.d.ts +840 -840
  176. package/dist/runtime/preload.js +1 -1
  177. package/index.d.ts +204 -204
  178. package/index.js +52 -52
  179. package/package.json +12 -11
  180. package/schemas/project.schema.json +4 -1
  181. package/schemas/vis-config.schema.json +9 -3
  182. package/dist/packem_shared/MultiSpinner-B9U0-aE3-B-gIXhFk.js +0 -3
  183. package/dist/packem_shared/Table-BGIHvenQ-D2oJtNQj.js +0 -34
  184. package/dist/packem_shared/advisories-B76fBVL-.js +0 -1
  185. package/dist/packem_shared/affected-shas-DkrQVQla.js +0 -1
  186. package/dist/packem_shared/ai-analysis-DWBi9tSU.js +0 -68
  187. package/dist/packem_shared/bin-BaVRMS0Q.js +0 -1
  188. package/dist/packem_shared/build-scripts-CpTeQE1L.js +0 -1
  189. package/dist/packem_shared/cyclonedx-C_qjUvdD.js +0 -4
  190. package/dist/packem_shared/failure-log-C3c5AVfc.js +0 -2
  191. package/dist/packem_shared/giget-DVTFJlbR.js +0 -2
  192. package/dist/packem_shared/glob-DMbPwGSj-DFkUYBco.js +0 -1
  193. package/dist/packem_shared/index-B0EsgdzO.js +0 -1
  194. package/dist/packem_shared/index-D75r1yKp.js +0 -35
  195. package/dist/packem_shared/index-D_6ru_ek.js +0 -28
  196. package/dist/packem_shared/lifecycle-CG0Ccu4h.js +0 -2
  197. package/dist/packem_shared/lockfile-D_JiWcwS.js +0 -1
  198. package/dist/packem_shared/main-B3juSU5z.js +0 -1
  199. package/dist/packem_shared/manifests-mFrrpzXW.js +0 -1
  200. package/dist/packem_shared/missing-package-json-sYPP3cm-.js +0 -1
  201. package/dist/packem_shared/osv-bloom-DMhXP184.js +0 -2
  202. package/dist/packem_shared/package-version-mvGIa7gN.js +0 -4
  203. package/dist/packem_shared/packument-BFekEvwn.js +0 -1
  204. package/dist/packem_shared/pm-runner-D5NWL8yv.js +0 -1
  205. package/dist/packem_shared/prompt-DjXHVgYU.js +0 -1
  206. package/dist/packem_shared/registry-keys-BCD7Ir8g.js +0 -1
  207. package/dist/packem_shared/run-file-u9hMNu8K.js +0 -1
  208. package/dist/packem_shared/s1ngularity-DkNDQiKU.js +0 -1
  209. package/dist/packem_shared/scan-progress-CHdHWhVw.js +0 -2
  210. package/dist/packem_shared/selectors-DiZWa7R4.js +0 -3
  211. package/dist/packem_shared/signatures-kvrwi3Un.js +0 -2
  212. package/dist/packem_shared/spinner-DuJJvFTl.js +0 -1
  213. package/dist/packem_shared/subtree-C7bZuiSQ.js +0 -2
  214. package/dist/packem_shared/tabs-CgxCvjCY.js +0 -1
  215. package/dist/packem_shared/target-merge-Dg25Izl5.js +0 -11
  216. package/dist/packem_shared/target-options-BJIDkfDf.js +0 -1
  217. package/dist/packem_shared/toolchain-CAbopPwK.js +0 -5
  218. package/dist/packem_shared/typosquats-DWB80Gyv.js +0 -1
  219. package/dist/packem_shared/use-measured-height-C4jA0yNy.js +0 -1
  220. package/dist/packem_shared/verify-BajubByH.js +0 -1
  221. package/dist/packem_shared/vis-update-app-M3dw6XRC.js +0 -1
  222. package/dist/packem_shared/watch-B8WT65yN.js +0 -1
  223. package/dist/packem_shared/watch-loop-CZazUnGB.js +0 -11
@@ -1,48 +1,48 @@
1
- import{createRequire as Qo}from"node:module";import{m as Ie,f as ia,y as oa,H as xn,T as fi,a as aa}from"./index-D75r1yKp.js";import{h as sa,L as ua}from"./public-api-WqUCiyIe.js";import{a as ro}from"./readJsonSync-DuMMeB3s-wlhgSHes.js";const ea=Qo(import.meta.url),zt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ta=l=>{if(typeof zt<"u"&&zt.versions&&zt.versions.node){const[d,A]=zt.versions.node.split(".").map(Number);if(d>22||d===22&&A>=3||d===20&&A>=16)return zt.getBuiltinModule(l)}return ea(l)},{rmSync:_n,existsSync:eo,readFileSync:li,cpSync:to,lstatSync:ra,readdirSync:na}=ta("node:fs");class et extends Error{constructor(d){super(d),this.name="LockfilePruneError"}}const no=l=>{let d=l.startsWith("/")?l.slice(1):l;const A=d.indexOf("(");return A!==-1&&(d=d.slice(0,A)),d},ca=(l,d)=>{if(!(d.startsWith("link:")||d.startsWith("file:")||d.startsWith("workspace:")))return`${l}@${d}`},la=l=>{const d=[];for(const A of[l.dependencies,l.devDependencies,l.optionalDependencies])if(A)for(const[o,h]of Object.entries(A))h?.version&&d.push({name:o,version:h.version});return d},pi=l=>{const d=[];for(const A of[l.dependencies,l.optionalDependencies])if(A)for(const[o,h]of Object.entries(A))typeof h=="string"&&d.push({name:o,version:h});return d},hi=l=>{const d=new Map;if(!l)return d;for(const A of Object.keys(l)){const o=no(A),h=d.get(o);h?h.push(A):d.set(o,[A])}return d},io=l=>{const d=l.displayName??"pnpm-lock.yaml",A=typeof l.lockfileContent=="string"?l.lockfileContent:l.lockfileContent.toString("utf8");let o;try{o=sa(A)}catch(Z){throw new et(`${d}: parse failed — ${Z.message}`)}const h=Z=>Z.packages?Object.keys(Z.packages).length:0;let e;for(const Z of o){const[te]=Z.errors;if(te)throw new et(`${d}: parse failed — ${te.message}`);const q=Z.toJS();if(!q||typeof q!="object")continue;const ue=q;(e===void 0||h(ue)>h(e))&&(e=ue)}if(e===void 0)throw new et(`${d}: top-level value is not an object`);const g=e.importers??{},C=hi(e.packages),m=hi(e.snapshots),S=new Set(["."]);for(const Z of l.closure)S.add(Z.relativeRoot===""?".":Z.relativeRoot);const E={};for(const[Z,te]of Object.entries(g))S.has(Z)&&(E[Z]=te);const Y=new Set,y=new Set,b=[];for(const Z of Object.values(E))for(const te of la(Z))b.push(te);for(;b.length>0;){const{name:Z,version:te}=b.shift(),q=ca(Z,te);if(!q)continue;const ue=no(q),Ce=m.get(ue)??m.get(q)??[];for(const Ae of Ce){if(y.has(Ae))continue;y.add(Ae);const Ee=e.snapshots?.[Ae];if(Ee)for(const je of pi(Ee))b.push(je)}const ge=C.get(ue)??C.get(q)??[];for(const Ae of ge){if(Y.has(Ae))continue;Y.add(Ae);const Ee=e.packages?.[Ae];if(Ee&&!e.snapshots)for(const je of pi(Ee))b.push(je)}}const v={lockfileVersion:e.lockfileVersion};for(const Z of["settings","overrides","patchedDependencies","catalogs"])e[Z]!==void 0&&(v[Z]=e[Z]);if(v.importers=E,e.packages){const Z={};for(const te of Object.keys(e.packages))Y.has(te)&&(Z[te]=e.packages[te]);v.packages=Z}if(e.snapshots){const Z={};for(const te of Object.keys(e.snapshots))y.has(te)&&(Z[te]=e.snapshots[te]);v.snapshots=Z}const M=Object.keys(e.packages??{}).length,re=Object.keys(v.packages??{}).length,ae=M-re,O=Object.keys(g).length-Object.keys(E).length;return{content:ua(v,{lineWidth:0}),message:`${d}: kept ${re}/${M} packages and ${Object.keys(E).length} importers (dropped ${ae} packages, ${O} importers)`,status:"pruned"}},fa=l=>io({...l,displayName:l.displayName??"aube-lock.yaml"}),pa=l=>{let d="",A=!1,o=!1,h=!1;for(let e=0;e<l.length;e+=1){const g=l[e],C=l[e+1];if(o){g===`
2
- `&&(o=!1,d+=g);continue}if(h){g==="*"&&C==="/"&&(h=!1,e+=1);continue}if(A){if(g==="\\"){d+=g,C!==void 0&&(d+=C,e+=1);continue}g==='"'&&(A=!1),d+=g;continue}if(g==='"'){A=!0,d+=g;continue}if(g==="/"&&C==="/"){o=!0,e+=1;continue}if(g==="/"&&C==="*"){h=!0,e+=1;continue}d+=g}return d},ha=l=>{const d=[];for(const A of[l.dependencies,l.devDependencies,l.optionalDependencies,l.peerDependencies])if(A)for(const[o,h]of Object.entries(A))typeof h=="string"&&d.push({name:o,spec:h});return d},da=l=>{for(const d of l)if(typeof d=="object"&&!Array.isArray(d))return d},ga=l=>{if(!l)return[];const d=[];for(const A of["dependencies","optionalDependencies","peerDependencies"]){const o=l[A];o!==null&&typeof o=="object"&&!Array.isArray(o)&&d.push(...Object.keys(o))}return d},ma=l=>{if(Buffer.isBuffer(l.lockfileContent))return{message:"bun.lockb is binary; run `bun install --save-text-lockfile` to regenerate as bun.lock, then rerun `vis docker scaffold`.",status:"skipped"};const d=pa(l.lockfileContent);let A;try{A=JSON.parse(d)}catch(M){throw new et(`bun.lock: parse failed — ${M.message}`)}if(!A||typeof A!="object")throw new et("bun.lock: top-level value is not an object");const o=A.workspaces??{},h=A.packages??{},e=new Set([""]);for(const M of l.closure)e.add(M.relativeRoot===""?"":M.relativeRoot);const g={},C=[];for(const[M,re]of Object.entries(o))e.has(M)&&(g[M]=re,C.push(...ha(re)));const m=new Set;for(const{name:M}of C)m.add(M);const S=[...m];for(;S.length>0;){const M=S.shift();for(const re of Object.keys(h)){if(re.split("/")[0]!==M&&re!==M)continue;const ae=da(h[re]);for(const O of ga(ae))m.has(O)||(m.add(O),S.push(O))}}const E={};for(const[M,re]of Object.entries(h)){const ae=M.split("/")[0];(m.has(ae)||m.has(M))&&(E[M]=re)}const Y={...A,packages:E,workspaces:g},y=Object.keys(h).length,b=Object.keys(E).length,v=y-b;return{content:`${JSON.stringify(Y,null,2)}
3
- `,message:`bun.lock: kept ${b}/${y} packages (dropped ${v})`,status:"pruned"}},Jr="node_modules/",ya=(l,d,A)=>{let o=d;for(;;){const h=o===""?`${Jr}${A}`:`${o}/${Jr}${A}`;if(l[h]!==void 0)return h;if(o==="")return;const e=o.lastIndexOf(`/${Jr.slice(0,-1)}/`);o=e===-1?"":o.slice(0,e)}},va=l=>{const d=[];for(const A of[l.dependencies,l.devDependencies,l.optionalDependencies,l.peerDependencies])if(A)for(const o of Object.keys(A))d.push(o);return d},Aa=l=>{const d=l.displayName??"package-lock.json",A=typeof l.lockfileContent=="string"?l.lockfileContent:l.lockfileContent.toString("utf8");let o;try{o=JSON.parse(A)}catch(v){throw new et(`${d}: parse failed — ${v.message}`)}if(!o||typeof o!="object")throw new et(`${d}: top-level value is not an object`);const h=o.packages??{},e=new Set([""]);for(const v of l.closure)v.relativeRoot!==""&&e.add(v.relativeRoot);const g=new Set,C=[];for(const v of Object.keys(h))e.has(v)&&(g.add(v),C.push(v));for(const[v,M]of Object.entries(h))M.link===!0&&typeof M.resolved=="string"&&e.has(M.resolved)&&g.add(v);for(;C.length>0;){const v=C.shift(),M=h[v];if(M)for(const re of va(M)){const ae=ya(h,v,re);if(!ae||g.has(ae))continue;g.add(ae);const O=h[ae];O.link===!0&&typeof O.resolved=="string"&&h[O.resolved]!==void 0&&!g.has(O.resolved)?(g.add(O.resolved),C.push(O.resolved)):C.push(ae)}}const m={};for(const v of Object.keys(h))g.has(v)&&(m[v]=h[v]);const S=m[""];S&&Array.isArray(S.workspaces)&&(S.workspaces=S.workspaces.filter(v=>{if(typeof v!="string")return!1;const M=v.replace(/\/?\*+$/,"").replace(/\/$/,"");if(M===""||M==="*")return!0;for(const re of e)if(re===v||re===M||re.startsWith(`${M}/`))return!0;return!1}));const E={...o,packages:m};delete E.dependencies;const Y=Object.keys(h).length,y=Object.keys(m).length,b=Y-y;return{content:`${JSON.stringify(E,null,2)}
4
- `,message:`${d}: kept ${y}/${Y} entries (dropped ${b})`,status:"pruned"}};var Vr={},Oe={},Zr,di;function ba(){if(di)return Zr;di=1;function l(o,h){function e(){this.constructor=o}e.prototype=h.prototype,o.prototype=new e}function d(o,h,e,g){this.message=o,this.expected=h,this.found=e,this.location=g,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,d)}l(d,Error),d.buildMessage=function(o,h){var e={literal:function(y){return'"'+C(y.text)+'"'},class:function(y){var b="",v;for(v=0;v<y.parts.length;v++)b+=y.parts[v]instanceof Array?m(y.parts[v][0])+"-"+m(y.parts[v][1]):m(y.parts[v]);return"["+(y.inverted?"^":"")+b+"]"},any:function(y){return"any character"},end:function(y){return"end of input"},other:function(y){return y.description}};function g(y){return y.charCodeAt(0).toString(16).toUpperCase()}function C(y){return y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+g(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+g(b)})}function m(y){return y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+g(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+g(b)})}function S(y){return e[y.type](y)}function E(y){var b=new Array(y.length),v,M;for(v=0;v<y.length;v++)b[v]=S(y[v]);if(b.sort(),b.length>0){for(v=1,M=1;v<b.length;v++)b[v-1]!==b[v]&&(b[M]=b[v],M++);b.length=M}switch(b.length){case 1:return b[0];case 2:return b[0]+" or "+b[1];default:return b.slice(0,-1).join(", ")+", or "+b[b.length-1]}}function Y(y){return y?'"'+C(y)+'"':"end of input"}return"Expected "+E(o)+" but "+Y(h)+" found."};function A(o,h){h=h!==void 0?h:{};var e={},g={Start:Gn},C=Gn,m=function(t){return t||[]},S=function(t,i,a){return[{command:t,type:i}].concat(a||[])},E=function(t,i){return[{command:t,type:i||";"}]},Y=function(t){return t},y=";",b=ce(";",!1),v="&",M=ce("&",!1),re=function(t,i){return i?{chain:t,then:i}:{chain:t}},ae=function(t,i){return{type:t,line:i}},O="&&",Z=ce("&&",!1),te="||",q=ce("||",!1),ue=function(t,i){return i?{...t,then:i}:t},Ce=function(t,i){return{type:t,chain:i}},ge="|&",Ae=ce("|&",!1),Ee="|",je=ce("|",!1),Fe="=",Ue=ce("=",!1),ye=function(t,i){return{name:t,args:[i]}},Me=function(t){return{name:t,args:[]}},Ze="(",$e=ce("(",!1),ee=")",Ne=ce(")",!1),De=function(t,i){return{type:"subshell",subshell:t,args:i}},Te="{",qe=ce("{",!1),we="}",W=ce("}",!1),U=function(t,i){return{type:"group",group:t,args:i}},ie=function(t,i){return{type:"command",args:i,envs:t}},ve=function(t){return{type:"envs",envs:t}},Ge=function(t){return t},ze=function(t){return t},Pe=/^[0-9]/,Ye=We([["0","9"]],!1,!1),tt=function(t,i,a){return{type:"redirection",subtype:i,fd:t!==null?parseInt(t):null,args:[a]}},rt=">>",Ct=ce(">>",!1),st=">&",ut=ce(">&",!1),wt=">",He=ce(">",!1),ht="<<<",Xe=ce("<<<",!1),Je="<&",dt=ce("<&",!1),St="<",gt=ce("<",!1),r=function(t){return{type:"argument",segments:[].concat(...t)}},$=function(t){return t},x="$'",V=ce("$'",!1),P="'",u=ce("'",!1),w=function(t){return[{type:"text",text:t}]},j='""',T=ce('""',!1),N=function(){return{type:"text",text:""}},H='"',R=ce('"',!1),z=function(t){return t},K=function(t){return{type:"arithmetic",arithmetic:t,quoted:!0}},ne=function(t){return{type:"shell",shell:t,quoted:!0}},de=function(t){return{type:"variable",...t,quoted:!0}},le=function(t){return{type:"text",text:t}},_e=function(t){return{type:"arithmetic",arithmetic:t,quoted:!1}},kr=function(t){return{type:"shell",shell:t,quoted:!1}},Er=function(t){return{type:"variable",...t,quoted:!1}},nr=function(t){return{type:"glob",pattern:t}},Rt=/^[^']/,Lt=We(["'"],!0,!1),mt=function(t){return t.join("")},ir=/^[^$"]/,or=We(["$",'"'],!0,!1),Ht=`\\
1
+ import{createRequire as Qo}from"node:module";import{m as Ie,l as oa,y as aa,H as $n,q as fi,d as sa}from"./index-DND6ptxQ.js";import{h as ua,L as ca}from"./public-api-WqUCiyIe.js";import{a as ro}from"./readJsonSync-BnWiH5-R-BpnwAB0Z.js";let ea;const ta=l=>(ea??=Qo(import.meta.url))(l),zt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ra=l=>{if(typeof zt<"u"&&zt.versions&&zt.versions.node){const[d,A]=zt.versions.node.split(".").map(Number);if(d>22||d===22&&A>=3||d===20&&A>=16)return zt.getBuiltinModule(l)}return ta(l)},{rmSync:_n,existsSync:eo,readFileSync:li,cpSync:to,lstatSync:na,readdirSync:ia}=ra("node:fs");class et extends Error{constructor(d){super(d),this.name="LockfilePruneError"}}const no=l=>{let d=l.startsWith("/")?l.slice(1):l;const A=d.indexOf("(");return A!==-1&&(d=d.slice(0,A)),d},la=(l,d)=>{if(!(d.startsWith("link:")||d.startsWith("file:")||d.startsWith("workspace:")))return`${l}@${d}`},fa=l=>{const d=[];for(const A of[l.dependencies,l.devDependencies,l.optionalDependencies])if(A)for(const[o,h]of Object.entries(A))h?.version&&d.push({name:o,version:h.version});return d},pi=l=>{const d=[];for(const A of[l.dependencies,l.optionalDependencies])if(A)for(const[o,h]of Object.entries(A))typeof h=="string"&&d.push({name:o,version:h});return d},hi=l=>{const d=new Map;if(!l)return d;for(const A of Object.keys(l)){const o=no(A),h=d.get(o);h?h.push(A):d.set(o,[A])}return d},io=l=>{const d=l.displayName??"pnpm-lock.yaml",A=typeof l.lockfileContent=="string"?l.lockfileContent:l.lockfileContent.toString("utf8");let o;try{o=ua(A)}catch(Z){throw new et(`${d}: parse failed — ${Z.message}`)}const h=Z=>Z.packages?Object.keys(Z.packages).length:0;let e;for(const Z of o){const[te]=Z.errors;if(te)throw new et(`${d}: parse failed — ${te.message}`);const q=Z.toJS();if(!q||typeof q!="object")continue;const ue=q;(e===void 0||h(ue)>h(e))&&(e=ue)}if(e===void 0)throw new et(`${d}: top-level value is not an object`);const g=e.importers??{},C=hi(e.packages),m=hi(e.snapshots),S=new Set(["."]);for(const Z of l.closure)S.add(Z.relativeRoot===""?".":Z.relativeRoot);const E={};for(const[Z,te]of Object.entries(g))S.has(Z)&&(E[Z]=te);const Y=new Set,y=new Set,b=[];for(const Z of Object.values(E))for(const te of fa(Z))b.push(te);for(;b.length>0;){const{name:Z,version:te}=b.shift(),q=la(Z,te);if(!q)continue;const ue=no(q),Ce=m.get(ue)??m.get(q)??[];for(const Ae of Ce){if(y.has(Ae))continue;y.add(Ae);const Ee=e.snapshots?.[Ae];if(Ee)for(const je of pi(Ee))b.push(je)}const ge=C.get(ue)??C.get(q)??[];for(const Ae of ge){if(Y.has(Ae))continue;Y.add(Ae);const Ee=e.packages?.[Ae];if(Ee&&!e.snapshots)for(const je of pi(Ee))b.push(je)}}const v={lockfileVersion:e.lockfileVersion};for(const Z of["settings","overrides","patchedDependencies","catalogs"])e[Z]!==void 0&&(v[Z]=e[Z]);if(v.importers=E,e.packages){const Z={};for(const te of Object.keys(e.packages))Y.has(te)&&(Z[te]=e.packages[te]);v.packages=Z}if(e.snapshots){const Z={};for(const te of Object.keys(e.snapshots))y.has(te)&&(Z[te]=e.snapshots[te]);v.snapshots=Z}const M=Object.keys(e.packages??{}).length,re=Object.keys(v.packages??{}).length,ae=M-re,O=Object.keys(g).length-Object.keys(E).length;return{content:ca(v,{lineWidth:0}),message:`${d}: kept ${re}/${M} packages and ${Object.keys(E).length} importers (dropped ${ae} packages, ${O} importers)`,status:"pruned"}},pa=l=>io({...l,displayName:l.displayName??"aube-lock.yaml"}),ha=l=>{let d="",A=!1,o=!1,h=!1;for(let e=0;e<l.length;e+=1){const g=l[e],C=l[e+1];if(o){g===`
2
+ `&&(o=!1,d+=g);continue}if(h){g==="*"&&C==="/"&&(h=!1,e+=1);continue}if(A){if(g==="\\"){d+=g,C!==void 0&&(d+=C,e+=1);continue}g==='"'&&(A=!1),d+=g;continue}if(g==='"'){A=!0,d+=g;continue}if(g==="/"&&C==="/"){o=!0,e+=1;continue}if(g==="/"&&C==="*"){h=!0,e+=1;continue}d+=g}return d},da=l=>{const d=[];for(const A of[l.dependencies,l.devDependencies,l.optionalDependencies,l.peerDependencies])if(A)for(const[o,h]of Object.entries(A))typeof h=="string"&&d.push({name:o,spec:h});return d},ga=l=>{for(const d of l)if(typeof d=="object"&&!Array.isArray(d))return d},ma=l=>{if(!l)return[];const d=[];for(const A of["dependencies","optionalDependencies","peerDependencies"]){const o=l[A];o!==null&&typeof o=="object"&&!Array.isArray(o)&&d.push(...Object.keys(o))}return d},ya=l=>{if(Buffer.isBuffer(l.lockfileContent))return{message:"bun.lockb is binary; run `bun install --save-text-lockfile` to regenerate as bun.lock, then rerun `vis docker scaffold`.",status:"skipped"};const d=ha(l.lockfileContent);let A;try{A=JSON.parse(d)}catch(M){throw new et(`bun.lock: parse failed — ${M.message}`)}if(!A||typeof A!="object")throw new et("bun.lock: top-level value is not an object");const o=A.workspaces??{},h=A.packages??{},e=new Set([""]);for(const M of l.closure)e.add(M.relativeRoot===""?"":M.relativeRoot);const g={},C=[];for(const[M,re]of Object.entries(o))e.has(M)&&(g[M]=re,C.push(...da(re)));const m=new Set;for(const{name:M}of C)m.add(M);const S=[...m];for(;S.length>0;){const M=S.shift();for(const re of Object.keys(h)){if(re.split("/")[0]!==M&&re!==M)continue;const ae=ga(h[re]);for(const O of ma(ae))m.has(O)||(m.add(O),S.push(O))}}const E={};for(const[M,re]of Object.entries(h)){const ae=M.split("/")[0];(m.has(ae)||m.has(M))&&(E[M]=re)}const Y={...A,packages:E,workspaces:g},y=Object.keys(h).length,b=Object.keys(E).length,v=y-b;return{content:`${JSON.stringify(Y,null,2)}
3
+ `,message:`bun.lock: kept ${b}/${y} packages (dropped ${v})`,status:"pruned"}},Jr="node_modules/",va=(l,d,A)=>{let o=d;for(;;){const h=o===""?`${Jr}${A}`:`${o}/${Jr}${A}`;if(l[h]!==void 0)return h;if(o==="")return;const e=o.lastIndexOf(`/${Jr.slice(0,-1)}/`);o=e===-1?"":o.slice(0,e)}},Aa=l=>{const d=[];for(const A of[l.dependencies,l.devDependencies,l.optionalDependencies,l.peerDependencies])if(A)for(const o of Object.keys(A))d.push(o);return d},ba=l=>{const d=l.displayName??"package-lock.json",A=typeof l.lockfileContent=="string"?l.lockfileContent:l.lockfileContent.toString("utf8");let o;try{o=JSON.parse(A)}catch(v){throw new et(`${d}: parse failed — ${v.message}`)}if(!o||typeof o!="object")throw new et(`${d}: top-level value is not an object`);const h=o.packages??{},e=new Set([""]);for(const v of l.closure)v.relativeRoot!==""&&e.add(v.relativeRoot);const g=new Set,C=[];for(const v of Object.keys(h))e.has(v)&&(g.add(v),C.push(v));for(const[v,M]of Object.entries(h))M.link===!0&&typeof M.resolved=="string"&&e.has(M.resolved)&&g.add(v);for(;C.length>0;){const v=C.shift(),M=h[v];if(M)for(const re of Aa(M)){const ae=va(h,v,re);if(!ae||g.has(ae))continue;g.add(ae);const O=h[ae];O.link===!0&&typeof O.resolved=="string"&&h[O.resolved]!==void 0&&!g.has(O.resolved)?(g.add(O.resolved),C.push(O.resolved)):C.push(ae)}}const m={};for(const v of Object.keys(h))g.has(v)&&(m[v]=h[v]);const S=m[""];S&&Array.isArray(S.workspaces)&&(S.workspaces=S.workspaces.filter(v=>{if(typeof v!="string")return!1;const M=v.replace(/\/?\*+$/,"").replace(/\/$/,"");if(M===""||M==="*")return!0;for(const re of e)if(re===v||re===M||re.startsWith(`${M}/`))return!0;return!1}));const E={...o,packages:m};delete E.dependencies;const Y=Object.keys(h).length,y=Object.keys(m).length,b=Y-y;return{content:`${JSON.stringify(E,null,2)}
4
+ `,message:`${d}: kept ${y}/${Y} entries (dropped ${b})`,status:"pruned"}};var Vr={},Oe={},Zr,di;function Ca(){if(di)return Zr;di=1;function l(o,h){function e(){this.constructor=o}e.prototype=h.prototype,o.prototype=new e}function d(o,h,e,g){this.message=o,this.expected=h,this.found=e,this.location=g,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,d)}l(d,Error),d.buildMessage=function(o,h){var e={literal:function(y){return'"'+C(y.text)+'"'},class:function(y){var b="",v;for(v=0;v<y.parts.length;v++)b+=y.parts[v]instanceof Array?m(y.parts[v][0])+"-"+m(y.parts[v][1]):m(y.parts[v]);return"["+(y.inverted?"^":"")+b+"]"},any:function(y){return"any character"},end:function(y){return"end of input"},other:function(y){return y.description}};function g(y){return y.charCodeAt(0).toString(16).toUpperCase()}function C(y){return y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+g(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+g(b)})}function m(y){return y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+g(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+g(b)})}function S(y){return e[y.type](y)}function E(y){var b=new Array(y.length),v,M;for(v=0;v<y.length;v++)b[v]=S(y[v]);if(b.sort(),b.length>0){for(v=1,M=1;v<b.length;v++)b[v-1]!==b[v]&&(b[M]=b[v],M++);b.length=M}switch(b.length){case 1:return b[0];case 2:return b[0]+" or "+b[1];default:return b.slice(0,-1).join(", ")+", or "+b[b.length-1]}}function Y(y){return y?'"'+C(y)+'"':"end of input"}return"Expected "+E(o)+" but "+Y(h)+" found."};function A(o,h){h=h!==void 0?h:{};var e={},g={Start:Gn},C=Gn,m=function(t){return t||[]},S=function(t,i,a){return[{command:t,type:i}].concat(a||[])},E=function(t,i){return[{command:t,type:i||";"}]},Y=function(t){return t},y=";",b=ce(";",!1),v="&",M=ce("&",!1),re=function(t,i){return i?{chain:t,then:i}:{chain:t}},ae=function(t,i){return{type:t,line:i}},O="&&",Z=ce("&&",!1),te="||",q=ce("||",!1),ue=function(t,i){return i?{...t,then:i}:t},Ce=function(t,i){return{type:t,chain:i}},ge="|&",Ae=ce("|&",!1),Ee="|",je=ce("|",!1),Fe="=",Ue=ce("=",!1),ye=function(t,i){return{name:t,args:[i]}},Me=function(t){return{name:t,args:[]}},Ze="(",xe=ce("(",!1),ee=")",Ne=ce(")",!1),De=function(t,i){return{type:"subshell",subshell:t,args:i}},Re="{",qe=ce("{",!1),we="}",W=ce("}",!1),U=function(t,i){return{type:"group",group:t,args:i}},ie=function(t,i){return{type:"command",args:i,envs:t}},ve=function(t){return{type:"envs",envs:t}},Ge=function(t){return t},ze=function(t){return t},Pe=/^[0-9]/,Ye=We([["0","9"]],!1,!1),tt=function(t,i,a){return{type:"redirection",subtype:i,fd:t!==null?parseInt(t):null,args:[a]}},rt=">>",Ct=ce(">>",!1),st=">&",ut=ce(">&",!1),wt=">",He=ce(">",!1),ht="<<<",Xe=ce("<<<",!1),Je="<&",dt=ce("<&",!1),St="<",gt=ce("<",!1),r=function(t){return{type:"argument",segments:[].concat(...t)}},x=function(t){return t},$="$'",V=ce("$'",!1),P="'",u=ce("'",!1),w=function(t){return[{type:"text",text:t}]},j='""',R=ce('""',!1),N=function(){return{type:"text",text:""}},H='"',T=ce('"',!1),z=function(t){return t},K=function(t){return{type:"arithmetic",arithmetic:t,quoted:!0}},ne=function(t){return{type:"shell",shell:t,quoted:!0}},de=function(t){return{type:"variable",...t,quoted:!0}},le=function(t){return{type:"text",text:t}},_e=function(t){return{type:"arithmetic",arithmetic:t,quoted:!1}},kr=function(t){return{type:"shell",shell:t,quoted:!1}},Er=function(t){return{type:"variable",...t,quoted:!1}},nr=function(t){return{type:"glob",pattern:t}},Tt=/^[^']/,Lt=We(["'"],!0,!1),mt=function(t){return t.join("")},ir=/^[^$"]/,or=We(["$",'"'],!0,!1),Ht=`\\
5
5
  `,_r=ce(`\\
6
- `,!1),$r=function(){return""},yt="\\",vt=ce("\\",!1),xr=/^[\\$"`]/,ar=We(["\\","$",'"',"`"],!1,!1),Qe=function(t){return t},Bt="\\a",jr=ce("\\a",!1),Or=function(){return"a"},sr="\\b",Tr=ce("\\b",!1),Rr=function(){return"\b"},f=/^[Ee]/,he=We(["E","e"],!1,!1),Ft=function(){return"\x1B"},Be="\\f",Wt=ce("\\f",!1),Q=function(){return"\f"},kt="\\n",ur=ce("\\n",!1),be=function(){return`
7
- `},nt="\\r",Lr=ce("\\r",!1),Fr=function(){return"\r"},Et="\\t",cr=ce("\\t",!1),lr=function(){return" "},oe="\\v",Ir=ce("\\v",!1),fr=function(){return"\v"},Nr=/^[\\'"?]/,pr=We(["\\","'",'"',"?"],!1,!1),It=function(t){return String.fromCharCode(parseInt(t,16))},Kt="\\x",Nt=ce("\\x",!1),At="\\u",Mr=ce("\\u",!1),Gt="\\U",hr=ce("\\U",!1),qr=function(t){return String.fromCodePoint(parseInt(t,16))},_t=/^[0-7]/,Pr=We([["0","7"]],!1,!1),Dr=/^[0-9a-fA-f]/,dr=We([["0","9"],["a","f"],["A","f"]],!1,!1),it=Ro(),$t="{}",gr=ce("{}",!1),xt=function(){return"{}"},Mt="-",jt=ce("-",!1),ct="+",Se=ce("+",!1),lt=".",ft=ce(".",!1),mr=function(t,i,a){return{type:"number",value:(t==="-"?-1:1)*parseFloat(i.join("")+"."+a.join(""))}},qt=function(t,i){return{type:"number",value:(t==="-"?-1:1)*parseInt(i.join(""))}},s=function(t){return{type:"variable",...t}},p=function(t){return{type:"variable",name:t}},_=function(t){return t},B="*",D=ce("*",!1),X="/",fe=ce("/",!1),me=function(t,i,a){return{type:i==="*"?"multiplication":"division",right:a}},pt=function(t,i){return i.reduce((a,c)=>({left:a,...c}),t)},jn=function(t,i,a){return{type:i==="+"?"addition":"subtraction",right:a}},On="$((",co=ce("$((",!1),Tn="))",lo=ce("))",!1),fo=function(t){return t},Rn="$(",po=ce("$(",!1),ho=function(t){return t},ot="${",Jt=ce("${",!1),Ln=":-",go=ce(":-",!1),mo=function(t,i){return{name:t,defaultValue:i}},Fn=":-}",yo=ce(":-}",!1),vo=function(t){return{name:t,defaultValue:[]}},In=":+",Ao=ce(":+",!1),bo=function(t,i){return{name:t,alternativeValue:i}},Nn=":+}",Co=ce(":+}",!1),wo=function(t){return{name:t,alternativeValue:[]}},Mn=function(t){return{name:t}},So="$",ko=ce("$",!1),Eo=function(t){return h.isGlobPattern(t)},_o=function(t){return t},qn=/^[a-zA-Z0-9_]/,Pn=We([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),Dn=function(){return To()},Yn=/^[$@*?#a-zA-Z0-9_\-]/,Un=We(["$","@","*","?","#",["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),$o=/^[()}<>$|&; \t"']/,xo=We(["(",")","}","<",">","$","|","&",";"," "," ",'"',"'"],!1,!1),jo=/^[<>&; \t"']/,Oo=We(["<",">","&",";"," "," ",'"',"'"],!1,!1),Hn=/^[ \t]/,Bn=We([" "," "],!1,!1),n=0,J=0,yr=[{line:1,column:1}],at=0,Yr=[],L=0,vr;if("startRule"in h){if(!(h.startRule in g))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');C=g[h.startRule]}function To(){return o.substring(J,n)}function ce(t,i){return{type:"literal",text:t,ignoreCase:i}}function We(t,i,a){return{type:"class",parts:t,inverted:i,ignoreCase:a}}function Ro(){return{type:"any"}}function Lo(){return{type:"end"}}function Wn(t){var i=yr[t],a;if(i)return i;for(a=t-1;!yr[a];)a--;for(i=yr[a],i={line:i.line,column:i.column};a<t;)o.charCodeAt(a)===10?(i.line++,i.column=1):i.column++,a++;return yr[t]=i,i}function Kn(t,i){var a=Wn(t),c=Wn(i);return{start:{offset:t,line:a.line,column:a.column},end:{offset:i,line:c.line,column:c.column}}}function I(t){n<at||(n>at&&(at=n,Yr=[]),Yr.push(t))}function Fo(t,i,a){return new d(d.buildMessage(t,i),t,i,a)}function Gn(){var t,i,a;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();return i!==e?(a=Vt(),a===e&&(a=null),a!==e?(J=t,i=m(a),t=i):(n=t,t=e)):(n=t,t=e),t}function Vt(){var t,i,a,c,k;if(t=n,i=Ur(),i!==e){for(a=[],c=G();c!==e;)a.push(c),c=G();a!==e?(c=Jn(),c!==e?(k=Io(),k===e&&(k=null),k!==e?(J=t,i=S(i,c,k),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e)}else n=t,t=e;if(t===e)if(t=n,i=Ur(),i!==e){for(a=[],c=G();c!==e;)a.push(c),c=G();a!==e?(c=Jn(),c===e&&(c=null),c!==e?(J=t,i=E(i,c),t=i):(n=t,t=e)):(n=t,t=e)}else n=t,t=e;return t}function Io(){var t,i,a,c,k;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e)if(a=Vt(),a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();c!==e?(J=t,i=Y(a),t=i):(n=t,t=e)}else n=t,t=e;else n=t,t=e;return t}function Jn(){var t;return o.charCodeAt(n)===59?(t=y,n++):(t=e,L===0&&I(b)),t===e&&(o.charCodeAt(n)===38?(t=v,n++):(t=e,L===0&&I(M))),t}function Ur(){var t,i,a;return t=n,i=Vn(),i!==e?(a=No(),a===e&&(a=null),a!==e?(J=t,i=re(i,a),t=i):(n=t,t=e)):(n=t,t=e),t}function No(){var t,i,a,c,k,F,se;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e)if(a=Mo(),a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();if(c!==e)if(k=Ur(),k!==e){for(F=[],se=G();se!==e;)F.push(se),se=G();F!==e?(J=t,i=ae(a,k),t=i):(n=t,t=e)}else n=t,t=e;else n=t,t=e}else n=t,t=e;else n=t,t=e;return t}function Mo(){var t;return o.substr(n,2)===O?(t=O,n+=2):(t=e,L===0&&I(Z)),t===e&&(o.substr(n,2)===te?(t=te,n+=2):(t=e,L===0&&I(q))),t}function Vn(){var t,i,a;return t=n,i=Do(),i!==e?(a=qo(),a===e&&(a=null),a!==e?(J=t,i=ue(i,a),t=i):(n=t,t=e)):(n=t,t=e),t}function qo(){var t,i,a,c,k,F,se;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e)if(a=Po(),a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();if(c!==e)if(k=Vn(),k!==e){for(F=[],se=G();se!==e;)F.push(se),se=G();F!==e?(J=t,i=Ce(a,k),t=i):(n=t,t=e)}else n=t,t=e;else n=t,t=e}else n=t,t=e;else n=t,t=e;return t}function Po(){var t;return o.substr(n,2)===ge?(t=ge,n+=2):(t=e,L===0&&I(Ae)),t===e&&(o.charCodeAt(n)===124?(t=Ee,n++):(t=e,L===0&&I(je))),t}function Ar(){var t,i,a,c,k,F;if(t=n,i=si(),i!==e)if(o.charCodeAt(n)===61?(a=Fe,n++):(a=e,L===0&&I(Ue)),a!==e)if(c=Xn(),c!==e){for(k=[],F=G();F!==e;)k.push(F),F=G();k!==e?(J=t,i=ye(i,c),t=i):(n=t,t=e)}else n=t,t=e;else n=t,t=e;else n=t,t=e;if(t===e)if(t=n,i=si(),i!==e)if(o.charCodeAt(n)===61?(a=Fe,n++):(a=e,L===0&&I(Ue)),a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();c!==e?(J=t,i=Me(i),t=i):(n=t,t=e)}else n=t,t=e;else n=t,t=e;return t}function Do(){var t,i,a,c,k,F,se,pe,xe,Re,Ve;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e)if(o.charCodeAt(n)===40?(a=Ze,n++):(a=e,L===0&&I($e)),a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();if(c!==e)if(k=Vt(),k!==e){for(F=[],se=G();se!==e;)F.push(se),se=G();if(F!==e)if(o.charCodeAt(n)===41?(se=ee,n++):(se=e,L===0&&I(Ne)),se!==e){for(pe=[],xe=G();xe!==e;)pe.push(xe),xe=G();if(pe!==e){for(xe=[],Re=Zt();Re!==e;)xe.push(Re),Re=Zt();if(xe!==e){for(Re=[],Ve=G();Ve!==e;)Re.push(Ve),Ve=G();Re!==e?(J=t,i=De(k,xe),t=i):(n=t,t=e)}else n=t,t=e}else n=t,t=e}else n=t,t=e;else n=t,t=e}else n=t,t=e;else n=t,t=e}else n=t,t=e;else n=t,t=e;if(t===e){for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e)if(o.charCodeAt(n)===123?(a=Te,n++):(a=e,L===0&&I(qe)),a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();if(c!==e)if(k=Vt(),k!==e){for(F=[],se=G();se!==e;)F.push(se),se=G();if(F!==e)if(o.charCodeAt(n)===125?(se=we,n++):(se=e,L===0&&I(W)),se!==e){for(pe=[],xe=G();xe!==e;)pe.push(xe),xe=G();if(pe!==e){for(xe=[],Re=Zt();Re!==e;)xe.push(Re),Re=Zt();if(xe!==e){for(Re=[],Ve=G();Ve!==e;)Re.push(Ve),Ve=G();Re!==e?(J=t,i=U(k,xe),t=i):(n=t,t=e)}else n=t,t=e}else n=t,t=e}else n=t,t=e;else n=t,t=e}else n=t,t=e;else n=t,t=e}else n=t,t=e;else n=t,t=e;if(t===e){for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e){for(a=[],c=Ar();c!==e;)a.push(c),c=Ar();if(a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();if(c!==e){if(k=[],F=zn(),F!==e)for(;F!==e;)k.push(F),F=zn();else k=e;if(k!==e){for(F=[],se=G();se!==e;)F.push(se),se=G();F!==e?(J=t,i=ie(a,k),t=i):(n=t,t=e)}else n=t,t=e}else n=t,t=e}else n=t,t=e}else n=t,t=e;if(t===e){for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e){if(a=[],c=Ar(),c!==e)for(;c!==e;)a.push(c),c=Ar();else a=e;if(a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();c!==e?(J=t,i=ve(a),t=i):(n=t,t=e)}else n=t,t=e}else n=t,t=e}}}return t}function Zn(){var t,i,a,c,k;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e){if(a=[],c=br(),c!==e)for(;c!==e;)a.push(c),c=br();else a=e;if(a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();c!==e?(J=t,i=Ge(a),t=i):(n=t,t=e)}else n=t,t=e}else n=t,t=e;return t}function zn(){var t,i,a;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e?(a=Zt(),a!==e?(J=t,i=ze(a),t=i):(n=t,t=e)):(n=t,t=e),t===e){for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();i!==e?(a=br(),a!==e?(J=t,i=ze(a),t=i):(n=t,t=e)):(n=t,t=e)}return t}function Zt(){var t,i,a,c,k;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();return i!==e?(Pe.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Ye)),a===e&&(a=null),a!==e?(c=Yo(),c!==e?(k=br(),k!==e?(J=t,i=tt(a,c,k),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t}function Yo(){var t;return o.substr(n,2)===rt?(t=rt,n+=2):(t=e,L===0&&I(Ct)),t===e&&(o.substr(n,2)===st?(t=st,n+=2):(t=e,L===0&&I(ut)),t===e&&(o.charCodeAt(n)===62?(t=wt,n++):(t=e,L===0&&I(He)),t===e&&(o.substr(n,3)===ht?(t=ht,n+=3):(t=e,L===0&&I(Xe)),t===e&&(o.substr(n,2)===Je?(t=Je,n+=2):(t=e,L===0&&I(dt)),t===e&&(o.charCodeAt(n)===60?(t=St,n++):(t=e,L===0&&I(gt))))))),t}function br(){var t,i,a;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();return i!==e?(a=Xn(),a!==e?(J=t,i=ze(a),t=i):(n=t,t=e)):(n=t,t=e),t}function Xn(){var t,i,a;if(t=n,i=[],a=Qn(),a!==e)for(;a!==e;)i.push(a),a=Qn();else i=e;return i!==e&&(J=t,i=r(i)),t=i,t}function Qn(){var t,i;return t=n,i=Uo(),i!==e&&(J=t,i=$(i)),t=i,t===e&&(t=n,i=Ho(),i!==e&&(J=t,i=$(i)),t=i,t===e&&(t=n,i=Bo(),i!==e&&(J=t,i=$(i)),t=i,t===e&&(t=n,i=Wo(),i!==e&&(J=t,i=$(i)),t=i))),t}function Uo(){var t,i,a,c;return t=n,o.substr(n,2)===x?(i=x,n+=2):(i=e,L===0&&I(V)),i!==e?(a=Jo(),a!==e?(o.charCodeAt(n)===39?(c=P,n++):(c=e,L===0&&I(u)),c!==e?(J=t,i=w(a),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t}function Ho(){var t,i,a,c;return t=n,o.charCodeAt(n)===39?(i=P,n++):(i=e,L===0&&I(u)),i!==e?(a=Ko(),a!==e?(o.charCodeAt(n)===39?(c=P,n++):(c=e,L===0&&I(u)),c!==e?(J=t,i=w(a),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t}function Bo(){var t,i,a,c;if(t=n,o.substr(n,2)===j?(i=j,n+=2):(i=e,L===0&&I(T)),i!==e&&(J=t,i=N()),t=i,t===e)if(t=n,o.charCodeAt(n)===34?(i=H,n++):(i=e,L===0&&I(R)),i!==e){for(a=[],c=ei();c!==e;)a.push(c),c=ei();a!==e?(o.charCodeAt(n)===34?(c=H,n++):(c=e,L===0&&I(R)),c!==e?(J=t,i=z(a),t=i):(n=t,t=e)):(n=t,t=e)}else n=t,t=e;return t}function Wo(){var t,i,a;if(t=n,i=[],a=ti(),a!==e)for(;a!==e;)i.push(a),a=ti();else i=e;return i!==e&&(J=t,i=z(i)),t=i,t}function ei(){var t,i;return t=n,i=oi(),i!==e&&(J=t,i=K(i)),t=i,t===e&&(t=n,i=ai(),i!==e&&(J=t,i=ne(i)),t=i,t===e&&(t=n,i=Kr(),i!==e&&(J=t,i=de(i)),t=i,t===e&&(t=n,i=Go(),i!==e&&(J=t,i=le(i)),t=i))),t}function ti(){var t,i;return t=n,i=oi(),i!==e&&(J=t,i=_e(i)),t=i,t===e&&(t=n,i=ai(),i!==e&&(J=t,i=kr(i)),t=i,t===e&&(t=n,i=Kr(),i!==e&&(J=t,i=Er(i)),t=i,t===e&&(t=n,i=zo(),i!==e&&(J=t,i=nr(i)),t=i,t===e&&(t=n,i=Zo(),i!==e&&(J=t,i=le(i)),t=i)))),t}function Ko(){var t,i,a;for(t=n,i=[],Rt.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Lt));a!==e;)i.push(a),Rt.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Lt));return i!==e&&(J=t,i=mt(i)),t=i,t}function Go(){var t,i,a;if(t=n,i=[],a=ri(),a===e&&(ir.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(or))),a!==e)for(;a!==e;)i.push(a),a=ri(),a===e&&(ir.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(or)));else i=e;return i!==e&&(J=t,i=mt(i)),t=i,t}function ri(){var t,i,a;return t=n,o.substr(n,2)===Ht?(i=Ht,n+=2):(i=e,L===0&&I(_r)),i!==e&&(J=t,i=$r()),t=i,t===e&&(t=n,o.charCodeAt(n)===92?(i=yt,n++):(i=e,L===0&&I(vt)),i!==e?(xr.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(ar)),a!==e?(J=t,i=Qe(a),t=i):(n=t,t=e)):(n=t,t=e)),t}function Jo(){var t,i,a;for(t=n,i=[],a=ni(),a===e&&(Rt.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Lt)));a!==e;)i.push(a),a=ni(),a===e&&(Rt.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Lt)));return i!==e&&(J=t,i=mt(i)),t=i,t}function ni(){var t,i,a;return t=n,o.substr(n,2)===Bt?(i=Bt,n+=2):(i=e,L===0&&I(jr)),i!==e&&(J=t,i=Or()),t=i,t===e&&(t=n,o.substr(n,2)===sr?(i=sr,n+=2):(i=e,L===0&&I(Tr)),i!==e&&(J=t,i=Rr()),t=i,t===e&&(t=n,o.charCodeAt(n)===92?(i=yt,n++):(i=e,L===0&&I(vt)),i!==e?(f.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(he)),a!==e?(J=t,i=Ft(),t=i):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===Be?(i=Be,n+=2):(i=e,L===0&&I(Wt)),i!==e&&(J=t,i=Q()),t=i,t===e&&(t=n,o.substr(n,2)===kt?(i=kt,n+=2):(i=e,L===0&&I(ur)),i!==e&&(J=t,i=be()),t=i,t===e&&(t=n,o.substr(n,2)===nt?(i=nt,n+=2):(i=e,L===0&&I(Lr)),i!==e&&(J=t,i=Fr()),t=i,t===e&&(t=n,o.substr(n,2)===Et?(i=Et,n+=2):(i=e,L===0&&I(cr)),i!==e&&(J=t,i=lr()),t=i,t===e&&(t=n,o.substr(n,2)===oe?(i=oe,n+=2):(i=e,L===0&&I(Ir)),i!==e&&(J=t,i=fr()),t=i,t===e&&(t=n,o.charCodeAt(n)===92?(i=yt,n++):(i=e,L===0&&I(vt)),i!==e?(Nr.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(pr)),a!==e?(J=t,i=Qe(a),t=i):(n=t,t=e)):(n=t,t=e),t===e&&(t=Vo()))))))))),t}function Vo(){var t,i,a,c,k,F,se,pe,xe,Re,Ve,Gr;return t=n,o.charCodeAt(n)===92?(i=yt,n++):(i=e,L===0&&I(vt)),i!==e?(a=Hr(),a!==e?(J=t,i=It(a),t=i):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===Kt?(i=Kt,n+=2):(i=e,L===0&&I(Nt)),i!==e?(a=n,c=n,k=Hr(),k!==e?(F=Ke(),F!==e?(k=[k,F],c=k):(n=c,c=e)):(n=c,c=e),c===e&&(c=Hr()),c!==e?a=o.substring(a,n):a=c,a!==e?(J=t,i=It(a),t=i):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===At?(i=At,n+=2):(i=e,L===0&&I(Mr)),i!==e?(a=n,c=n,k=Ke(),k!==e?(F=Ke(),F!==e?(se=Ke(),se!==e?(pe=Ke(),pe!==e?(k=[k,F,se,pe],c=k):(n=c,c=e)):(n=c,c=e)):(n=c,c=e)):(n=c,c=e),c!==e?a=o.substring(a,n):a=c,a!==e?(J=t,i=It(a),t=i):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===Gt?(i=Gt,n+=2):(i=e,L===0&&I(hr)),i!==e?(a=n,c=n,k=Ke(),k!==e?(F=Ke(),F!==e?(se=Ke(),se!==e?(pe=Ke(),pe!==e?(xe=Ke(),xe!==e?(Re=Ke(),Re!==e?(Ve=Ke(),Ve!==e?(Gr=Ke(),Gr!==e?(k=[k,F,se,pe,xe,Re,Ve,Gr],c=k):(n=c,c=e)):(n=c,c=e)):(n=c,c=e)):(n=c,c=e)):(n=c,c=e)):(n=c,c=e)):(n=c,c=e)):(n=c,c=e),c!==e?a=o.substring(a,n):a=c,a!==e?(J=t,i=qr(a),t=i):(n=t,t=e)):(n=t,t=e)))),t}function Hr(){var t;return _t.test(o.charAt(n))?(t=o.charAt(n),n++):(t=e,L===0&&I(Pr)),t}function Ke(){var t;return Dr.test(o.charAt(n))?(t=o.charAt(n),n++):(t=e,L===0&&I(dr)),t}function Zo(){var t,i,a,c,k;if(t=n,i=[],a=n,o.charCodeAt(n)===92?(c=yt,n++):(c=e,L===0&&I(vt)),c!==e?(o.length>n?(k=o.charAt(n),n++):(k=e,L===0&&I(it)),k!==e?(J=a,c=Qe(k),a=c):(n=a,a=e)):(n=a,a=e),a===e&&(a=n,o.substr(n,2)===$t?(c=$t,n+=2):(c=e,L===0&&I(gr)),c!==e&&(J=a,c=xt()),a=c,a===e&&(a=n,c=n,L++,k=ui(),L--,k===e?c=void 0:(n=c,c=e),c!==e?(o.length>n?(k=o.charAt(n),n++):(k=e,L===0&&I(it)),k!==e?(J=a,c=Qe(k),a=c):(n=a,a=e)):(n=a,a=e))),a!==e)for(;a!==e;)i.push(a),a=n,o.charCodeAt(n)===92?(c=yt,n++):(c=e,L===0&&I(vt)),c!==e?(o.length>n?(k=o.charAt(n),n++):(k=e,L===0&&I(it)),k!==e?(J=a,c=Qe(k),a=c):(n=a,a=e)):(n=a,a=e),a===e&&(a=n,o.substr(n,2)===$t?(c=$t,n+=2):(c=e,L===0&&I(gr)),c!==e&&(J=a,c=xt()),a=c,a===e&&(a=n,c=n,L++,k=ui(),L--,k===e?c=void 0:(n=c,c=e),c!==e?(o.length>n?(k=o.charAt(n),n++):(k=e,L===0&&I(it)),k!==e?(J=a,c=Qe(k),a=c):(n=a,a=e)):(n=a,a=e)));else i=e;return i!==e&&(J=t,i=mt(i)),t=i,t}function Br(){var t,i,a,c,k,F;if(t=n,o.charCodeAt(n)===45?(i=Mt,n++):(i=e,L===0&&I(jt)),i===e&&(o.charCodeAt(n)===43?(i=ct,n++):(i=e,L===0&&I(Se))),i===e&&(i=null),i!==e){if(a=[],Pe.test(o.charAt(n))?(c=o.charAt(n),n++):(c=e,L===0&&I(Ye)),c!==e)for(;c!==e;)a.push(c),Pe.test(o.charAt(n))?(c=o.charAt(n),n++):(c=e,L===0&&I(Ye));else a=e;if(a!==e)if(o.charCodeAt(n)===46?(c=lt,n++):(c=e,L===0&&I(ft)),c!==e){if(k=[],Pe.test(o.charAt(n))?(F=o.charAt(n),n++):(F=e,L===0&&I(Ye)),F!==e)for(;F!==e;)k.push(F),Pe.test(o.charAt(n))?(F=o.charAt(n),n++):(F=e,L===0&&I(Ye));else k=e;k!==e?(J=t,i=mr(i,a,k),t=i):(n=t,t=e)}else n=t,t=e;else n=t,t=e}else n=t,t=e;if(t===e){if(t=n,o.charCodeAt(n)===45?(i=Mt,n++):(i=e,L===0&&I(jt)),i===e&&(o.charCodeAt(n)===43?(i=ct,n++):(i=e,L===0&&I(Se))),i===e&&(i=null),i!==e){if(a=[],Pe.test(o.charAt(n))?(c=o.charAt(n),n++):(c=e,L===0&&I(Ye)),c!==e)for(;c!==e;)a.push(c),Pe.test(o.charAt(n))?(c=o.charAt(n),n++):(c=e,L===0&&I(Ye));else a=e;a!==e?(J=t,i=qt(i,a),t=i):(n=t,t=e)}else n=t,t=e;if(t===e&&(t=n,i=Kr(),i!==e&&(J=t,i=s(i)),t=i,t===e&&(t=n,i=Ot(),i!==e&&(J=t,i=p(i)),t=i,t===e)))if(t=n,o.charCodeAt(n)===40?(i=Ze,n++):(i=e,L===0&&I($e)),i!==e){for(a=[],c=G();c!==e;)a.push(c),c=G();if(a!==e)if(c=ii(),c!==e){for(k=[],F=G();F!==e;)k.push(F),F=G();k!==e?(o.charCodeAt(n)===41?(F=ee,n++):(F=e,L===0&&I(Ne)),F!==e?(J=t,i=_(c),t=i):(n=t,t=e)):(n=t,t=e)}else n=t,t=e;else n=t,t=e}else n=t,t=e}return t}function Wr(){var t,i,a,c,k,F,se,pe;if(t=n,i=Br(),i!==e){for(a=[],c=n,k=[],F=G();F!==e;)k.push(F),F=G();if(k!==e)if(o.charCodeAt(n)===42?(F=B,n++):(F=e,L===0&&I(D)),F===e&&(o.charCodeAt(n)===47?(F=X,n++):(F=e,L===0&&I(fe))),F!==e){for(se=[],pe=G();pe!==e;)se.push(pe),pe=G();se!==e?(pe=Br(),pe!==e?(J=c,k=me(i,F,pe),c=k):(n=c,c=e)):(n=c,c=e)}else n=c,c=e;else n=c,c=e;for(;c!==e;){for(a.push(c),c=n,k=[],F=G();F!==e;)k.push(F),F=G();if(k!==e)if(o.charCodeAt(n)===42?(F=B,n++):(F=e,L===0&&I(D)),F===e&&(o.charCodeAt(n)===47?(F=X,n++):(F=e,L===0&&I(fe))),F!==e){for(se=[],pe=G();pe!==e;)se.push(pe),pe=G();se!==e?(pe=Br(),pe!==e?(J=c,k=me(i,F,pe),c=k):(n=c,c=e)):(n=c,c=e)}else n=c,c=e;else n=c,c=e}a!==e?(J=t,i=pt(i,a),t=i):(n=t,t=e)}else n=t,t=e;return t}function ii(){var t,i,a,c,k,F,se,pe;if(t=n,i=Wr(),i!==e){for(a=[],c=n,k=[],F=G();F!==e;)k.push(F),F=G();if(k!==e)if(o.charCodeAt(n)===43?(F=ct,n++):(F=e,L===0&&I(Se)),F===e&&(o.charCodeAt(n)===45?(F=Mt,n++):(F=e,L===0&&I(jt))),F!==e){for(se=[],pe=G();pe!==e;)se.push(pe),pe=G();se!==e?(pe=Wr(),pe!==e?(J=c,k=jn(i,F,pe),c=k):(n=c,c=e)):(n=c,c=e)}else n=c,c=e;else n=c,c=e;for(;c!==e;){for(a.push(c),c=n,k=[],F=G();F!==e;)k.push(F),F=G();if(k!==e)if(o.charCodeAt(n)===43?(F=ct,n++):(F=e,L===0&&I(Se)),F===e&&(o.charCodeAt(n)===45?(F=Mt,n++):(F=e,L===0&&I(jt))),F!==e){for(se=[],pe=G();pe!==e;)se.push(pe),pe=G();se!==e?(pe=Wr(),pe!==e?(J=c,k=jn(i,F,pe),c=k):(n=c,c=e)):(n=c,c=e)}else n=c,c=e;else n=c,c=e}a!==e?(J=t,i=pt(i,a),t=i):(n=t,t=e)}else n=t,t=e;return t}function oi(){var t,i,a,c,k,F;if(t=n,o.substr(n,3)===On?(i=On,n+=3):(i=e,L===0&&I(co)),i!==e){for(a=[],c=G();c!==e;)a.push(c),c=G();if(a!==e)if(c=ii(),c!==e){for(k=[],F=G();F!==e;)k.push(F),F=G();k!==e?(o.substr(n,2)===Tn?(F=Tn,n+=2):(F=e,L===0&&I(lo)),F!==e?(J=t,i=fo(c),t=i):(n=t,t=e)):(n=t,t=e)}else n=t,t=e;else n=t,t=e}else n=t,t=e;return t}function ai(){var t,i,a,c;return t=n,o.substr(n,2)===Rn?(i=Rn,n+=2):(i=e,L===0&&I(po)),i!==e?(a=Vt(),a!==e?(o.charCodeAt(n)===41?(c=ee,n++):(c=e,L===0&&I(Ne)),c!==e?(J=t,i=ho(a),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t}function Kr(){var t,i,a,c,k,F;return t=n,o.substr(n,2)===ot?(i=ot,n+=2):(i=e,L===0&&I(Jt)),i!==e?(a=Ot(),a!==e?(o.substr(n,2)===Ln?(c=Ln,n+=2):(c=e,L===0&&I(go)),c!==e?(k=Zn(),k!==e?(o.charCodeAt(n)===125?(F=we,n++):(F=e,L===0&&I(W)),F!==e?(J=t,i=mo(a,k),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===ot?(i=ot,n+=2):(i=e,L===0&&I(Jt)),i!==e?(a=Ot(),a!==e?(o.substr(n,3)===Fn?(c=Fn,n+=3):(c=e,L===0&&I(yo)),c!==e?(J=t,i=vo(a),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===ot?(i=ot,n+=2):(i=e,L===0&&I(Jt)),i!==e?(a=Ot(),a!==e?(o.substr(n,2)===In?(c=In,n+=2):(c=e,L===0&&I(Ao)),c!==e?(k=Zn(),k!==e?(o.charCodeAt(n)===125?(F=we,n++):(F=e,L===0&&I(W)),F!==e?(J=t,i=bo(a,k),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===ot?(i=ot,n+=2):(i=e,L===0&&I(Jt)),i!==e?(a=Ot(),a!==e?(o.substr(n,3)===Nn?(c=Nn,n+=3):(c=e,L===0&&I(Co)),c!==e?(J=t,i=wo(a),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===ot?(i=ot,n+=2):(i=e,L===0&&I(Jt)),i!==e?(a=Ot(),a!==e?(o.charCodeAt(n)===125?(c=we,n++):(c=e,L===0&&I(W)),c!==e?(J=t,i=Mn(a),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.charCodeAt(n)===36?(i=So,n++):(i=e,L===0&&I(ko)),i!==e?(a=Ot(),a!==e?(J=t,i=Mn(a),t=i):(n=t,t=e)):(n=t,t=e)))))),t}function zo(){var t,i,a;return t=n,i=Xo(),i!==e?(J=n,a=Eo(i),a?a=void 0:a=e,a!==e?(J=t,i=_o(i),t=i):(n=t,t=e)):(n=t,t=e),t}function Xo(){var t,i,a,c,k;if(t=n,i=[],a=n,c=n,L++,k=ci(),L--,k===e?c=void 0:(n=c,c=e),c!==e?(o.length>n?(k=o.charAt(n),n++):(k=e,L===0&&I(it)),k!==e?(J=a,c=Qe(k),a=c):(n=a,a=e)):(n=a,a=e),a!==e)for(;a!==e;)i.push(a),a=n,c=n,L++,k=ci(),L--,k===e?c=void 0:(n=c,c=e),c!==e?(o.length>n?(k=o.charAt(n),n++):(k=e,L===0&&I(it)),k!==e?(J=a,c=Qe(k),a=c):(n=a,a=e)):(n=a,a=e);else i=e;return i!==e&&(J=t,i=mt(i)),t=i,t}function si(){var t,i,a;if(t=n,i=[],qn.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Pn)),a!==e)for(;a!==e;)i.push(a),qn.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Pn));else i=e;return i!==e&&(J=t,i=Dn()),t=i,t}function Ot(){var t,i,a;if(t=n,i=[],Yn.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Un)),a!==e)for(;a!==e;)i.push(a),Yn.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Un));else i=e;return i!==e&&(J=t,i=Dn()),t=i,t}function ui(){var t;return $o.test(o.charAt(n))?(t=o.charAt(n),n++):(t=e,L===0&&I(xo)),t}function ci(){var t;return jo.test(o.charAt(n))?(t=o.charAt(n),n++):(t=e,L===0&&I(Oo)),t}function G(){var t,i;if(t=[],Hn.test(o.charAt(n))?(i=o.charAt(n),n++):(i=e,L===0&&I(Bn)),i!==e)for(;i!==e;)t.push(i),Hn.test(o.charAt(n))?(i=o.charAt(n),n++):(i=e,L===0&&I(Bn));else t=e;return t}if(vr=C(),vr!==e&&n===o.length)return vr;throw vr!==e&&n<o.length&&I(Lo()),Fo(Yr,at<o.length?o.charAt(at):null,at<o.length?Kn(at,at+1):Kn(at,at))}return Zr={SyntaxError:d,parse:A},Zr}var gi;function Ca(){if(gi)return Oe;gi=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.parseShell=d,Oe.stringifyShellLine=A,Oe.stringifyShell=A,Oe.stringifyCommandLine=o,Oe.stringifyCommandLineThen=h,Oe.stringifyCommandChain=e,Oe.stringifyCommandChainThen=g,Oe.stringifyCommand=C,Oe.stringifyEnvSegment=m,Oe.stringifyArgument=S,Oe.stringifyRedirectArgument=E,Oe.stringifyValueArgument=Y,Oe.stringifyArgumentSegment=re,Oe.stringifyArithmeticExpression=ae,Oe.stringifyShellLine=A,Oe.stringifyShell=A;const l=ba();function d(O,Z={isGlobPattern:()=>!1}){try{return(0,l.parse)(O,Z)}catch(te){throw te.location&&(te.message=te.message.replace(/(\.)?$/,` (line ${te.location.start.line}, column ${te.location.start.column})$1`)),te}}function A(O,{endSemicolon:Z=!1}={}){return O.map(({command:te,type:q},ue)=>`${o(te)}${q===";"?ue!==O.length-1||Z?";":"":" &"}`).join(" ")}function o(O){return`${e(O.chain)}${O.then?` ${h(O.then)}`:""}`}function h(O){return`${O.type} ${o(O.line)}`}function e(O){return`${C(O)}${O.then?` ${g(O.then)}`:""}`}function g(O){return`${O.type} ${e(O.chain)}`}function C(O){switch(O.type){case"command":return`${O.envs.length>0?`${O.envs.map(Z=>m(Z)).join(" ")} `:""}${O.args.map(Z=>S(Z)).join(" ")}`;case"subshell":return`(${A(O.subshell)})${O.args.length>0?` ${O.args.map(Z=>E(Z)).join(" ")}`:""}`;case"group":return`{ ${A(O.group,{endSemicolon:!0})} }${O.args.length>0?` ${O.args.map(Z=>E(Z)).join(" ")}`:""}`;case"envs":return O.envs.map(Z=>m(Z)).join(" ");default:throw new Error(`Unsupported command type: "${O.type}"`)}}function m(O){return`${O.name}=${O.args[0]?Y(O.args[0]):""}`}function S(O){switch(O.type){case"redirection":return E(O);case"argument":return Y(O);default:throw new Error(`Unsupported argument type: "${O.type}"`)}}function E(O){return`${O.subtype} ${O.args.map(Z=>Y(Z)).join(" ")}`}function Y(O){return O.segments.map(Z=>re(Z)).join("")}const y=new Map([["\f","\\f"],[`
8
- `,"\\n"],["\r","\\r"],[" ","\\t"],["\v","\\v"],["\0","\\0"]]),b=new Map([["\\","\\\\"],["$","\\$"],['"','\\"'],...Array.from(y,([O,Z])=>[O,`"$'${Z}'"`])]),v=O=>y.get(O)??`\\x${O.charCodeAt(0).toString(16).padStart(2,"0")}`,M=O=>b.get(O)??`"$'${v(O)}'"`;function re(O){const Z=(q,ue)=>ue?`"${q}"`:q,te=q=>q===""?"''":q.match(/[()}<>$|&;"'\n\t ]/)?q.match(/['\t\p{C}]/u)?q.match(/'/)?`"${q.replace(/["$\t\p{C}]/u,M)}"`:`$'${q.replace(/[\t\p{C}]/u,v)}'`:`'${q}'`:q;switch(O.type){case"text":return te(O.text);case"glob":return O.pattern;case"shell":return Z(`$(${A(O.shell)})`,O.quoted);case"variable":return Z(typeof O.defaultValue>"u"?typeof O.alternativeValue>"u"?`\${${O.name}}`:O.alternativeValue.length===0?`\${${O.name}:+}`:`\${${O.name}:+${O.alternativeValue.map(q=>Y(q)).join(" ")}}`:O.defaultValue.length===0?`\${${O.name}:-}`:`\${${O.name}:-${O.defaultValue.map(q=>Y(q)).join(" ")}}`,O.quoted);case"arithmetic":return`$(( ${ae(O.arithmetic)} ))`;default:throw new Error(`Unsupported argument segment type: "${O.type}"`)}}function ae(O){const Z=ue=>{switch(ue){case"addition":return"+";case"subtraction":return"-";case"multiplication":return"*";case"division":return"/";default:throw new Error(`Can't extract operator from arithmetic expression of type "${ue}"`)}},te=(ue,Ce)=>Ce?`( ${ue} )`:ue,q=ue=>te(ae(ue),!["number","variable"].includes(ue.type));switch(O.type){case"number":return String(O.value);case"variable":return O.name;default:return`${q(O.left)} ${Z(O.type)} ${q(O.right)}`}}return Oe}var Xt={},zr,mi;function wa(){if(mi)return zr;mi=1;function l(o,h){function e(){this.constructor=o}e.prototype=h.prototype,o.prototype=new e}function d(o,h,e,g){this.message=o,this.expected=h,this.found=e,this.location=g,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,d)}l(d,Error),d.buildMessage=function(o,h){var e={literal:function(y){return'"'+C(y.text)+'"'},class:function(y){var b="",v;for(v=0;v<y.parts.length;v++)b+=y.parts[v]instanceof Array?m(y.parts[v][0])+"-"+m(y.parts[v][1]):m(y.parts[v]);return"["+(y.inverted?"^":"")+b+"]"},any:function(y){return"any character"},end:function(y){return"end of input"},other:function(y){return y.description}};function g(y){return y.charCodeAt(0).toString(16).toUpperCase()}function C(y){return y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+g(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+g(b)})}function m(y){return y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+g(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+g(b)})}function S(y){return e[y.type](y)}function E(y){var b=new Array(y.length),v,M;for(v=0;v<y.length;v++)b[v]=S(y[v]);if(b.sort(),b.length>0){for(v=1,M=1;v<b.length;v++)b[v-1]!==b[v]&&(b[M]=b[v],M++);b.length=M}switch(b.length){case 1:return b[0];case 2:return b[0]+" or "+b[1];default:return b.slice(0,-1).join(", ")+", or "+b[b.length-1]}}function Y(y){return y?'"'+C(y)+'"':"end of input"}return"Expected "+E(o)+" but "+Y(h)+" found."};function A(o,h){h=h!==void 0?h:{};var e={},g={resolution:Ne},C=Ne,m="/",S=Fe("/",!1),E=function(W,U){return{from:W,descriptor:U}},Y=function(W){return{descriptor:W}},y="@",b=Fe("@",!1),v=function(W,U){return{fullName:W,description:U}},M=function(W){return{fullName:W}},re=function(){return je()},ae=/^[^\/@]/,O=Ue(["/","@"],!0,!1),Z=/^[^\/]/,te=Ue(["/"],!0,!1),q=0,ue=0,Ce=[{line:1,column:1}],ge=0,Ae=[],Ee;if("startRule"in h){if(!(h.startRule in g))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');C=g[h.startRule]}function je(){return o.substring(ue,q)}function Fe(W,U){return{type:"literal",text:W,ignoreCase:U}}function Ue(W,U,ie){return{type:"class",parts:W,inverted:U,ignoreCase:ie}}function ye(){return{type:"end"}}function Me(W){var U=Ce[W],ie;if(U)return U;for(ie=W-1;!Ce[ie];)ie--;for(U=Ce[ie],U={line:U.line,column:U.column};ie<W;)o.charCodeAt(ie)===10?(U.line++,U.column=1):U.column++,ie++;return Ce[W]=U,U}function Ze(W,U){var ie=Me(W),ve=Me(U);return{start:{offset:W,line:ie.line,column:ie.column},end:{offset:U,line:ve.line,column:ve.column}}}function $e(W){q<ge||(q>ge&&(ge=q,Ae=[]),Ae.push(W))}function ee(W,U,ie){return new d(d.buildMessage(W,U),W,U,ie)}function Ne(){var W,U,ie,ve;return W=q,U=De(),U!==e?(o.charCodeAt(q)===47?(ie=m,q++):(ie=e,$e(S)),ie!==e?(ve=De(),ve!==e?(ue=W,U=E(U,ve),W=U):(q=W,W=e)):(q=W,W=e)):(q=W,W=e),W===e&&(W=q,U=De(),U!==e&&(ue=W,U=Y(U)),W=U),W}function De(){var W,U,ie,ve;return W=q,U=Te(),U!==e?(o.charCodeAt(q)===64?(ie=y,q++):(ie=e,$e(b)),ie!==e?(ve=we(),ve!==e?(ue=W,U=v(U,ve),W=U):(q=W,W=e)):(q=W,W=e)):(q=W,W=e),W===e&&(W=q,U=Te(),U!==e&&(ue=W,U=M(U)),W=U),W}function Te(){var W,U,ie,ve,Ge;return W=q,o.charCodeAt(q)===64?(U=y,q++):(U=e,$e(b)),U!==e?(ie=qe(),ie!==e?(o.charCodeAt(q)===47?(ve=m,q++):(ve=e,$e(S)),ve!==e?(Ge=qe(),Ge!==e?(ue=W,U=re(),W=U):(q=W,W=e)):(q=W,W=e)):(q=W,W=e)):(q=W,W=e),W===e&&(W=q,U=qe(),U!==e&&(ue=W,U=re()),W=U),W}function qe(){var W,U,ie;if(W=q,U=[],ae.test(o.charAt(q))?(ie=o.charAt(q),q++):(ie=e,$e(O)),ie!==e)for(;ie!==e;)U.push(ie),ae.test(o.charAt(q))?(ie=o.charAt(q),q++):(ie=e,$e(O));else U=e;return U!==e&&(ue=W,U=re()),W=U,W}function we(){var W,U,ie;if(W=q,U=[],Z.test(o.charAt(q))?(ie=o.charAt(q),q++):(ie=e,$e(te)),ie!==e)for(;ie!==e;)U.push(ie),Z.test(o.charAt(q))?(ie=o.charAt(q),q++):(ie=e,$e(te));else U=e;return U!==e&&(ue=W,U=re()),W=U,W}if(Ee=C(),Ee!==e&&q===o.length)return Ee;throw Ee!==e&&q<o.length&&$e(ye()),ee(Ae,ge<o.length?o.charAt(ge):null,ge<o.length?Ze(ge,ge+1):Ze(ge,ge))}return zr={SyntaxError:d,parse:A},zr}var yi;function Sa(){if(yi)return Xt;yi=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.parseResolution=d,Xt.stringifyResolution=A;const l=wa();function d(o){const h=o.match(/^\*{1,2}\/(.*)/);if(h)throw new Error(`The override for '${o}' includes a glob pattern. Glob patterns have been removed since their behaviours don't match what you'd expect. Set the override to '${h[1]}' instead.`);try{return(0,l.parse)(o)}catch(e){throw e.location&&(e.message=e.message.replace(/(\.)?$/,` (line ${e.location.start.line}, column ${e.location.start.column})$1`)),e}}function A(o){let h="";return o.from&&(h+=o.from.fullName,o.from.description&&(h+=`@${o.from.description}`),h+="/"),h+=o.descriptor.fullName,o.descriptor.description&&(h+=`@${o.descriptor.description}`),h}return Xt}var Tt={},ke={},Pt={},bt={},vi;function Yt(){if(vi)return bt;vi=1;function l(g){return typeof g>"u"||g===null}function d(g){return typeof g=="object"&&g!==null}function A(g){return Array.isArray(g)?g:l(g)?[]:[g]}function o(g,C){var m,S,E,Y;if(C)for(Y=Object.keys(C),m=0,S=Y.length;m<S;m+=1)E=Y[m],g[E]=C[E];return g}function h(g,C){var m="",S;for(S=0;S<C;S+=1)m+=g;return m}function e(g){return g===0&&Number.NEGATIVE_INFINITY===1/g}return bt.isNothing=l,bt.isObject=d,bt.toArray=A,bt.repeat=h,bt.isNegativeZero=e,bt.extend=o,bt}var Xr,Ai;function rr(){if(Ai)return Xr;Ai=1;function l(d,A){Error.call(this),this.name="YAMLException",this.reason=d,this.mark=A,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return l.prototype=Object.create(Error.prototype),l.prototype.constructor=l,l.prototype.toString=function(d){var A=this.name+": ";return A+=this.reason||"(unknown reason)",!d&&this.mark&&(A+=" "+this.mark.toString()),A},Xr=l,Xr}var Qr,bi;function ka(){if(bi)return Qr;bi=1;var l=Yt();function d(A,o,h,e,g){this.name=A,this.buffer=o,this.position=h,this.line=e,this.column=g}return d.prototype.getSnippet=function(A,o){var h,e,g,C,m;if(!this.buffer)return null;for(A=A||4,o=o||75,h="",e=this.position;e>0&&`\0\r
6
+ `,!1),xr=function(){return""},yt="\\",vt=ce("\\",!1),$r=/^[\\$"`]/,ar=We(["\\","$",'"',"`"],!1,!1),Qe=function(t){return t},Bt="\\a",jr=ce("\\a",!1),Or=function(){return"a"},sr="\\b",Rr=ce("\\b",!1),Tr=function(){return"\b"},f=/^[Ee]/,he=We(["E","e"],!1,!1),Ft=function(){return"\x1B"},Be="\\f",Wt=ce("\\f",!1),Q=function(){return"\f"},kt="\\n",ur=ce("\\n",!1),be=function(){return`
7
+ `},nt="\\r",Lr=ce("\\r",!1),Fr=function(){return"\r"},Et="\\t",cr=ce("\\t",!1),lr=function(){return" "},oe="\\v",Ir=ce("\\v",!1),fr=function(){return"\v"},Nr=/^[\\'"?]/,pr=We(["\\","'",'"',"?"],!1,!1),It=function(t){return String.fromCharCode(parseInt(t,16))},Kt="\\x",Nt=ce("\\x",!1),At="\\u",Mr=ce("\\u",!1),Gt="\\U",hr=ce("\\U",!1),qr=function(t){return String.fromCodePoint(parseInt(t,16))},_t=/^[0-7]/,Pr=We([["0","7"]],!1,!1),Dr=/^[0-9a-fA-f]/,dr=We([["0","9"],["a","f"],["A","f"]],!1,!1),it=To(),xt="{}",gr=ce("{}",!1),$t=function(){return"{}"},Mt="-",jt=ce("-",!1),ct="+",Se=ce("+",!1),lt=".",ft=ce(".",!1),mr=function(t,i,a){return{type:"number",value:(t==="-"?-1:1)*parseFloat(i.join("")+"."+a.join(""))}},qt=function(t,i){return{type:"number",value:(t==="-"?-1:1)*parseInt(i.join(""))}},s=function(t){return{type:"variable",...t}},p=function(t){return{type:"variable",name:t}},_=function(t){return t},B="*",D=ce("*",!1),X="/",fe=ce("/",!1),me=function(t,i,a){return{type:i==="*"?"multiplication":"division",right:a}},pt=function(t,i){return i.reduce((a,c)=>({left:a,...c}),t)},jn=function(t,i,a){return{type:i==="+"?"addition":"subtraction",right:a}},On="$((",co=ce("$((",!1),Rn="))",lo=ce("))",!1),fo=function(t){return t},Tn="$(",po=ce("$(",!1),ho=function(t){return t},ot="${",Jt=ce("${",!1),Ln=":-",go=ce(":-",!1),mo=function(t,i){return{name:t,defaultValue:i}},Fn=":-}",yo=ce(":-}",!1),vo=function(t){return{name:t,defaultValue:[]}},In=":+",Ao=ce(":+",!1),bo=function(t,i){return{name:t,alternativeValue:i}},Nn=":+}",Co=ce(":+}",!1),wo=function(t){return{name:t,alternativeValue:[]}},Mn=function(t){return{name:t}},So="$",ko=ce("$",!1),Eo=function(t){return h.isGlobPattern(t)},_o=function(t){return t},qn=/^[a-zA-Z0-9_]/,Pn=We([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),Dn=function(){return Ro()},Yn=/^[$@*?#a-zA-Z0-9_\-]/,Un=We(["$","@","*","?","#",["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),xo=/^[()}<>$|&; \t"']/,$o=We(["(",")","}","<",">","$","|","&",";"," "," ",'"',"'"],!1,!1),jo=/^[<>&; \t"']/,Oo=We(["<",">","&",";"," "," ",'"',"'"],!1,!1),Hn=/^[ \t]/,Bn=We([" "," "],!1,!1),n=0,J=0,yr=[{line:1,column:1}],at=0,Yr=[],L=0,vr;if("startRule"in h){if(!(h.startRule in g))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');C=g[h.startRule]}function Ro(){return o.substring(J,n)}function ce(t,i){return{type:"literal",text:t,ignoreCase:i}}function We(t,i,a){return{type:"class",parts:t,inverted:i,ignoreCase:a}}function To(){return{type:"any"}}function Lo(){return{type:"end"}}function Wn(t){var i=yr[t],a;if(i)return i;for(a=t-1;!yr[a];)a--;for(i=yr[a],i={line:i.line,column:i.column};a<t;)o.charCodeAt(a)===10?(i.line++,i.column=1):i.column++,a++;return yr[t]=i,i}function Kn(t,i){var a=Wn(t),c=Wn(i);return{start:{offset:t,line:a.line,column:a.column},end:{offset:i,line:c.line,column:c.column}}}function I(t){n<at||(n>at&&(at=n,Yr=[]),Yr.push(t))}function Fo(t,i,a){return new d(d.buildMessage(t,i),t,i,a)}function Gn(){var t,i,a;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();return i!==e?(a=Vt(),a===e&&(a=null),a!==e?(J=t,i=m(a),t=i):(n=t,t=e)):(n=t,t=e),t}function Vt(){var t,i,a,c,k;if(t=n,i=Ur(),i!==e){for(a=[],c=G();c!==e;)a.push(c),c=G();a!==e?(c=Jn(),c!==e?(k=Io(),k===e&&(k=null),k!==e?(J=t,i=S(i,c,k),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e)}else n=t,t=e;if(t===e)if(t=n,i=Ur(),i!==e){for(a=[],c=G();c!==e;)a.push(c),c=G();a!==e?(c=Jn(),c===e&&(c=null),c!==e?(J=t,i=E(i,c),t=i):(n=t,t=e)):(n=t,t=e)}else n=t,t=e;return t}function Io(){var t,i,a,c,k;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e)if(a=Vt(),a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();c!==e?(J=t,i=Y(a),t=i):(n=t,t=e)}else n=t,t=e;else n=t,t=e;return t}function Jn(){var t;return o.charCodeAt(n)===59?(t=y,n++):(t=e,L===0&&I(b)),t===e&&(o.charCodeAt(n)===38?(t=v,n++):(t=e,L===0&&I(M))),t}function Ur(){var t,i,a;return t=n,i=Vn(),i!==e?(a=No(),a===e&&(a=null),a!==e?(J=t,i=re(i,a),t=i):(n=t,t=e)):(n=t,t=e),t}function No(){var t,i,a,c,k,F,se;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e)if(a=Mo(),a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();if(c!==e)if(k=Ur(),k!==e){for(F=[],se=G();se!==e;)F.push(se),se=G();F!==e?(J=t,i=ae(a,k),t=i):(n=t,t=e)}else n=t,t=e;else n=t,t=e}else n=t,t=e;else n=t,t=e;return t}function Mo(){var t;return o.substr(n,2)===O?(t=O,n+=2):(t=e,L===0&&I(Z)),t===e&&(o.substr(n,2)===te?(t=te,n+=2):(t=e,L===0&&I(q))),t}function Vn(){var t,i,a;return t=n,i=Do(),i!==e?(a=qo(),a===e&&(a=null),a!==e?(J=t,i=ue(i,a),t=i):(n=t,t=e)):(n=t,t=e),t}function qo(){var t,i,a,c,k,F,se;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e)if(a=Po(),a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();if(c!==e)if(k=Vn(),k!==e){for(F=[],se=G();se!==e;)F.push(se),se=G();F!==e?(J=t,i=Ce(a,k),t=i):(n=t,t=e)}else n=t,t=e;else n=t,t=e}else n=t,t=e;else n=t,t=e;return t}function Po(){var t;return o.substr(n,2)===ge?(t=ge,n+=2):(t=e,L===0&&I(Ae)),t===e&&(o.charCodeAt(n)===124?(t=Ee,n++):(t=e,L===0&&I(je))),t}function Ar(){var t,i,a,c,k,F;if(t=n,i=si(),i!==e)if(o.charCodeAt(n)===61?(a=Fe,n++):(a=e,L===0&&I(Ue)),a!==e)if(c=Xn(),c!==e){for(k=[],F=G();F!==e;)k.push(F),F=G();k!==e?(J=t,i=ye(i,c),t=i):(n=t,t=e)}else n=t,t=e;else n=t,t=e;else n=t,t=e;if(t===e)if(t=n,i=si(),i!==e)if(o.charCodeAt(n)===61?(a=Fe,n++):(a=e,L===0&&I(Ue)),a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();c!==e?(J=t,i=Me(i),t=i):(n=t,t=e)}else n=t,t=e;else n=t,t=e;return t}function Do(){var t,i,a,c,k,F,se,pe,$e,Te,Ve;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e)if(o.charCodeAt(n)===40?(a=Ze,n++):(a=e,L===0&&I(xe)),a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();if(c!==e)if(k=Vt(),k!==e){for(F=[],se=G();se!==e;)F.push(se),se=G();if(F!==e)if(o.charCodeAt(n)===41?(se=ee,n++):(se=e,L===0&&I(Ne)),se!==e){for(pe=[],$e=G();$e!==e;)pe.push($e),$e=G();if(pe!==e){for($e=[],Te=Zt();Te!==e;)$e.push(Te),Te=Zt();if($e!==e){for(Te=[],Ve=G();Ve!==e;)Te.push(Ve),Ve=G();Te!==e?(J=t,i=De(k,$e),t=i):(n=t,t=e)}else n=t,t=e}else n=t,t=e}else n=t,t=e;else n=t,t=e}else n=t,t=e;else n=t,t=e}else n=t,t=e;else n=t,t=e;if(t===e){for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e)if(o.charCodeAt(n)===123?(a=Re,n++):(a=e,L===0&&I(qe)),a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();if(c!==e)if(k=Vt(),k!==e){for(F=[],se=G();se!==e;)F.push(se),se=G();if(F!==e)if(o.charCodeAt(n)===125?(se=we,n++):(se=e,L===0&&I(W)),se!==e){for(pe=[],$e=G();$e!==e;)pe.push($e),$e=G();if(pe!==e){for($e=[],Te=Zt();Te!==e;)$e.push(Te),Te=Zt();if($e!==e){for(Te=[],Ve=G();Ve!==e;)Te.push(Ve),Ve=G();Te!==e?(J=t,i=U(k,$e),t=i):(n=t,t=e)}else n=t,t=e}else n=t,t=e}else n=t,t=e;else n=t,t=e}else n=t,t=e;else n=t,t=e}else n=t,t=e;else n=t,t=e;if(t===e){for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e){for(a=[],c=Ar();c!==e;)a.push(c),c=Ar();if(a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();if(c!==e){if(k=[],F=zn(),F!==e)for(;F!==e;)k.push(F),F=zn();else k=e;if(k!==e){for(F=[],se=G();se!==e;)F.push(se),se=G();F!==e?(J=t,i=ie(a,k),t=i):(n=t,t=e)}else n=t,t=e}else n=t,t=e}else n=t,t=e}else n=t,t=e;if(t===e){for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e){if(a=[],c=Ar(),c!==e)for(;c!==e;)a.push(c),c=Ar();else a=e;if(a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();c!==e?(J=t,i=ve(a),t=i):(n=t,t=e)}else n=t,t=e}else n=t,t=e}}}return t}function Zn(){var t,i,a,c,k;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e){if(a=[],c=br(),c!==e)for(;c!==e;)a.push(c),c=br();else a=e;if(a!==e){for(c=[],k=G();k!==e;)c.push(k),k=G();c!==e?(J=t,i=Ge(a),t=i):(n=t,t=e)}else n=t,t=e}else n=t,t=e;return t}function zn(){var t,i,a;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();if(i!==e?(a=Zt(),a!==e?(J=t,i=ze(a),t=i):(n=t,t=e)):(n=t,t=e),t===e){for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();i!==e?(a=br(),a!==e?(J=t,i=ze(a),t=i):(n=t,t=e)):(n=t,t=e)}return t}function Zt(){var t,i,a,c,k;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();return i!==e?(Pe.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Ye)),a===e&&(a=null),a!==e?(c=Yo(),c!==e?(k=br(),k!==e?(J=t,i=tt(a,c,k),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t}function Yo(){var t;return o.substr(n,2)===rt?(t=rt,n+=2):(t=e,L===0&&I(Ct)),t===e&&(o.substr(n,2)===st?(t=st,n+=2):(t=e,L===0&&I(ut)),t===e&&(o.charCodeAt(n)===62?(t=wt,n++):(t=e,L===0&&I(He)),t===e&&(o.substr(n,3)===ht?(t=ht,n+=3):(t=e,L===0&&I(Xe)),t===e&&(o.substr(n,2)===Je?(t=Je,n+=2):(t=e,L===0&&I(dt)),t===e&&(o.charCodeAt(n)===60?(t=St,n++):(t=e,L===0&&I(gt))))))),t}function br(){var t,i,a;for(t=n,i=[],a=G();a!==e;)i.push(a),a=G();return i!==e?(a=Xn(),a!==e?(J=t,i=ze(a),t=i):(n=t,t=e)):(n=t,t=e),t}function Xn(){var t,i,a;if(t=n,i=[],a=Qn(),a!==e)for(;a!==e;)i.push(a),a=Qn();else i=e;return i!==e&&(J=t,i=r(i)),t=i,t}function Qn(){var t,i;return t=n,i=Uo(),i!==e&&(J=t,i=x(i)),t=i,t===e&&(t=n,i=Ho(),i!==e&&(J=t,i=x(i)),t=i,t===e&&(t=n,i=Bo(),i!==e&&(J=t,i=x(i)),t=i,t===e&&(t=n,i=Wo(),i!==e&&(J=t,i=x(i)),t=i))),t}function Uo(){var t,i,a,c;return t=n,o.substr(n,2)===$?(i=$,n+=2):(i=e,L===0&&I(V)),i!==e?(a=Jo(),a!==e?(o.charCodeAt(n)===39?(c=P,n++):(c=e,L===0&&I(u)),c!==e?(J=t,i=w(a),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t}function Ho(){var t,i,a,c;return t=n,o.charCodeAt(n)===39?(i=P,n++):(i=e,L===0&&I(u)),i!==e?(a=Ko(),a!==e?(o.charCodeAt(n)===39?(c=P,n++):(c=e,L===0&&I(u)),c!==e?(J=t,i=w(a),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t}function Bo(){var t,i,a,c;if(t=n,o.substr(n,2)===j?(i=j,n+=2):(i=e,L===0&&I(R)),i!==e&&(J=t,i=N()),t=i,t===e)if(t=n,o.charCodeAt(n)===34?(i=H,n++):(i=e,L===0&&I(T)),i!==e){for(a=[],c=ei();c!==e;)a.push(c),c=ei();a!==e?(o.charCodeAt(n)===34?(c=H,n++):(c=e,L===0&&I(T)),c!==e?(J=t,i=z(a),t=i):(n=t,t=e)):(n=t,t=e)}else n=t,t=e;return t}function Wo(){var t,i,a;if(t=n,i=[],a=ti(),a!==e)for(;a!==e;)i.push(a),a=ti();else i=e;return i!==e&&(J=t,i=z(i)),t=i,t}function ei(){var t,i;return t=n,i=oi(),i!==e&&(J=t,i=K(i)),t=i,t===e&&(t=n,i=ai(),i!==e&&(J=t,i=ne(i)),t=i,t===e&&(t=n,i=Kr(),i!==e&&(J=t,i=de(i)),t=i,t===e&&(t=n,i=Go(),i!==e&&(J=t,i=le(i)),t=i))),t}function ti(){var t,i;return t=n,i=oi(),i!==e&&(J=t,i=_e(i)),t=i,t===e&&(t=n,i=ai(),i!==e&&(J=t,i=kr(i)),t=i,t===e&&(t=n,i=Kr(),i!==e&&(J=t,i=Er(i)),t=i,t===e&&(t=n,i=zo(),i!==e&&(J=t,i=nr(i)),t=i,t===e&&(t=n,i=Zo(),i!==e&&(J=t,i=le(i)),t=i)))),t}function Ko(){var t,i,a;for(t=n,i=[],Tt.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Lt));a!==e;)i.push(a),Tt.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Lt));return i!==e&&(J=t,i=mt(i)),t=i,t}function Go(){var t,i,a;if(t=n,i=[],a=ri(),a===e&&(ir.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(or))),a!==e)for(;a!==e;)i.push(a),a=ri(),a===e&&(ir.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(or)));else i=e;return i!==e&&(J=t,i=mt(i)),t=i,t}function ri(){var t,i,a;return t=n,o.substr(n,2)===Ht?(i=Ht,n+=2):(i=e,L===0&&I(_r)),i!==e&&(J=t,i=xr()),t=i,t===e&&(t=n,o.charCodeAt(n)===92?(i=yt,n++):(i=e,L===0&&I(vt)),i!==e?($r.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(ar)),a!==e?(J=t,i=Qe(a),t=i):(n=t,t=e)):(n=t,t=e)),t}function Jo(){var t,i,a;for(t=n,i=[],a=ni(),a===e&&(Tt.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Lt)));a!==e;)i.push(a),a=ni(),a===e&&(Tt.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Lt)));return i!==e&&(J=t,i=mt(i)),t=i,t}function ni(){var t,i,a;return t=n,o.substr(n,2)===Bt?(i=Bt,n+=2):(i=e,L===0&&I(jr)),i!==e&&(J=t,i=Or()),t=i,t===e&&(t=n,o.substr(n,2)===sr?(i=sr,n+=2):(i=e,L===0&&I(Rr)),i!==e&&(J=t,i=Tr()),t=i,t===e&&(t=n,o.charCodeAt(n)===92?(i=yt,n++):(i=e,L===0&&I(vt)),i!==e?(f.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(he)),a!==e?(J=t,i=Ft(),t=i):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===Be?(i=Be,n+=2):(i=e,L===0&&I(Wt)),i!==e&&(J=t,i=Q()),t=i,t===e&&(t=n,o.substr(n,2)===kt?(i=kt,n+=2):(i=e,L===0&&I(ur)),i!==e&&(J=t,i=be()),t=i,t===e&&(t=n,o.substr(n,2)===nt?(i=nt,n+=2):(i=e,L===0&&I(Lr)),i!==e&&(J=t,i=Fr()),t=i,t===e&&(t=n,o.substr(n,2)===Et?(i=Et,n+=2):(i=e,L===0&&I(cr)),i!==e&&(J=t,i=lr()),t=i,t===e&&(t=n,o.substr(n,2)===oe?(i=oe,n+=2):(i=e,L===0&&I(Ir)),i!==e&&(J=t,i=fr()),t=i,t===e&&(t=n,o.charCodeAt(n)===92?(i=yt,n++):(i=e,L===0&&I(vt)),i!==e?(Nr.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(pr)),a!==e?(J=t,i=Qe(a),t=i):(n=t,t=e)):(n=t,t=e),t===e&&(t=Vo()))))))))),t}function Vo(){var t,i,a,c,k,F,se,pe,$e,Te,Ve,Gr;return t=n,o.charCodeAt(n)===92?(i=yt,n++):(i=e,L===0&&I(vt)),i!==e?(a=Hr(),a!==e?(J=t,i=It(a),t=i):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===Kt?(i=Kt,n+=2):(i=e,L===0&&I(Nt)),i!==e?(a=n,c=n,k=Hr(),k!==e?(F=Ke(),F!==e?(k=[k,F],c=k):(n=c,c=e)):(n=c,c=e),c===e&&(c=Hr()),c!==e?a=o.substring(a,n):a=c,a!==e?(J=t,i=It(a),t=i):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===At?(i=At,n+=2):(i=e,L===0&&I(Mr)),i!==e?(a=n,c=n,k=Ke(),k!==e?(F=Ke(),F!==e?(se=Ke(),se!==e?(pe=Ke(),pe!==e?(k=[k,F,se,pe],c=k):(n=c,c=e)):(n=c,c=e)):(n=c,c=e)):(n=c,c=e),c!==e?a=o.substring(a,n):a=c,a!==e?(J=t,i=It(a),t=i):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===Gt?(i=Gt,n+=2):(i=e,L===0&&I(hr)),i!==e?(a=n,c=n,k=Ke(),k!==e?(F=Ke(),F!==e?(se=Ke(),se!==e?(pe=Ke(),pe!==e?($e=Ke(),$e!==e?(Te=Ke(),Te!==e?(Ve=Ke(),Ve!==e?(Gr=Ke(),Gr!==e?(k=[k,F,se,pe,$e,Te,Ve,Gr],c=k):(n=c,c=e)):(n=c,c=e)):(n=c,c=e)):(n=c,c=e)):(n=c,c=e)):(n=c,c=e)):(n=c,c=e)):(n=c,c=e),c!==e?a=o.substring(a,n):a=c,a!==e?(J=t,i=qr(a),t=i):(n=t,t=e)):(n=t,t=e)))),t}function Hr(){var t;return _t.test(o.charAt(n))?(t=o.charAt(n),n++):(t=e,L===0&&I(Pr)),t}function Ke(){var t;return Dr.test(o.charAt(n))?(t=o.charAt(n),n++):(t=e,L===0&&I(dr)),t}function Zo(){var t,i,a,c,k;if(t=n,i=[],a=n,o.charCodeAt(n)===92?(c=yt,n++):(c=e,L===0&&I(vt)),c!==e?(o.length>n?(k=o.charAt(n),n++):(k=e,L===0&&I(it)),k!==e?(J=a,c=Qe(k),a=c):(n=a,a=e)):(n=a,a=e),a===e&&(a=n,o.substr(n,2)===xt?(c=xt,n+=2):(c=e,L===0&&I(gr)),c!==e&&(J=a,c=$t()),a=c,a===e&&(a=n,c=n,L++,k=ui(),L--,k===e?c=void 0:(n=c,c=e),c!==e?(o.length>n?(k=o.charAt(n),n++):(k=e,L===0&&I(it)),k!==e?(J=a,c=Qe(k),a=c):(n=a,a=e)):(n=a,a=e))),a!==e)for(;a!==e;)i.push(a),a=n,o.charCodeAt(n)===92?(c=yt,n++):(c=e,L===0&&I(vt)),c!==e?(o.length>n?(k=o.charAt(n),n++):(k=e,L===0&&I(it)),k!==e?(J=a,c=Qe(k),a=c):(n=a,a=e)):(n=a,a=e),a===e&&(a=n,o.substr(n,2)===xt?(c=xt,n+=2):(c=e,L===0&&I(gr)),c!==e&&(J=a,c=$t()),a=c,a===e&&(a=n,c=n,L++,k=ui(),L--,k===e?c=void 0:(n=c,c=e),c!==e?(o.length>n?(k=o.charAt(n),n++):(k=e,L===0&&I(it)),k!==e?(J=a,c=Qe(k),a=c):(n=a,a=e)):(n=a,a=e)));else i=e;return i!==e&&(J=t,i=mt(i)),t=i,t}function Br(){var t,i,a,c,k,F;if(t=n,o.charCodeAt(n)===45?(i=Mt,n++):(i=e,L===0&&I(jt)),i===e&&(o.charCodeAt(n)===43?(i=ct,n++):(i=e,L===0&&I(Se))),i===e&&(i=null),i!==e){if(a=[],Pe.test(o.charAt(n))?(c=o.charAt(n),n++):(c=e,L===0&&I(Ye)),c!==e)for(;c!==e;)a.push(c),Pe.test(o.charAt(n))?(c=o.charAt(n),n++):(c=e,L===0&&I(Ye));else a=e;if(a!==e)if(o.charCodeAt(n)===46?(c=lt,n++):(c=e,L===0&&I(ft)),c!==e){if(k=[],Pe.test(o.charAt(n))?(F=o.charAt(n),n++):(F=e,L===0&&I(Ye)),F!==e)for(;F!==e;)k.push(F),Pe.test(o.charAt(n))?(F=o.charAt(n),n++):(F=e,L===0&&I(Ye));else k=e;k!==e?(J=t,i=mr(i,a,k),t=i):(n=t,t=e)}else n=t,t=e;else n=t,t=e}else n=t,t=e;if(t===e){if(t=n,o.charCodeAt(n)===45?(i=Mt,n++):(i=e,L===0&&I(jt)),i===e&&(o.charCodeAt(n)===43?(i=ct,n++):(i=e,L===0&&I(Se))),i===e&&(i=null),i!==e){if(a=[],Pe.test(o.charAt(n))?(c=o.charAt(n),n++):(c=e,L===0&&I(Ye)),c!==e)for(;c!==e;)a.push(c),Pe.test(o.charAt(n))?(c=o.charAt(n),n++):(c=e,L===0&&I(Ye));else a=e;a!==e?(J=t,i=qt(i,a),t=i):(n=t,t=e)}else n=t,t=e;if(t===e&&(t=n,i=Kr(),i!==e&&(J=t,i=s(i)),t=i,t===e&&(t=n,i=Ot(),i!==e&&(J=t,i=p(i)),t=i,t===e)))if(t=n,o.charCodeAt(n)===40?(i=Ze,n++):(i=e,L===0&&I(xe)),i!==e){for(a=[],c=G();c!==e;)a.push(c),c=G();if(a!==e)if(c=ii(),c!==e){for(k=[],F=G();F!==e;)k.push(F),F=G();k!==e?(o.charCodeAt(n)===41?(F=ee,n++):(F=e,L===0&&I(Ne)),F!==e?(J=t,i=_(c),t=i):(n=t,t=e)):(n=t,t=e)}else n=t,t=e;else n=t,t=e}else n=t,t=e}return t}function Wr(){var t,i,a,c,k,F,se,pe;if(t=n,i=Br(),i!==e){for(a=[],c=n,k=[],F=G();F!==e;)k.push(F),F=G();if(k!==e)if(o.charCodeAt(n)===42?(F=B,n++):(F=e,L===0&&I(D)),F===e&&(o.charCodeAt(n)===47?(F=X,n++):(F=e,L===0&&I(fe))),F!==e){for(se=[],pe=G();pe!==e;)se.push(pe),pe=G();se!==e?(pe=Br(),pe!==e?(J=c,k=me(i,F,pe),c=k):(n=c,c=e)):(n=c,c=e)}else n=c,c=e;else n=c,c=e;for(;c!==e;){for(a.push(c),c=n,k=[],F=G();F!==e;)k.push(F),F=G();if(k!==e)if(o.charCodeAt(n)===42?(F=B,n++):(F=e,L===0&&I(D)),F===e&&(o.charCodeAt(n)===47?(F=X,n++):(F=e,L===0&&I(fe))),F!==e){for(se=[],pe=G();pe!==e;)se.push(pe),pe=G();se!==e?(pe=Br(),pe!==e?(J=c,k=me(i,F,pe),c=k):(n=c,c=e)):(n=c,c=e)}else n=c,c=e;else n=c,c=e}a!==e?(J=t,i=pt(i,a),t=i):(n=t,t=e)}else n=t,t=e;return t}function ii(){var t,i,a,c,k,F,se,pe;if(t=n,i=Wr(),i!==e){for(a=[],c=n,k=[],F=G();F!==e;)k.push(F),F=G();if(k!==e)if(o.charCodeAt(n)===43?(F=ct,n++):(F=e,L===0&&I(Se)),F===e&&(o.charCodeAt(n)===45?(F=Mt,n++):(F=e,L===0&&I(jt))),F!==e){for(se=[],pe=G();pe!==e;)se.push(pe),pe=G();se!==e?(pe=Wr(),pe!==e?(J=c,k=jn(i,F,pe),c=k):(n=c,c=e)):(n=c,c=e)}else n=c,c=e;else n=c,c=e;for(;c!==e;){for(a.push(c),c=n,k=[],F=G();F!==e;)k.push(F),F=G();if(k!==e)if(o.charCodeAt(n)===43?(F=ct,n++):(F=e,L===0&&I(Se)),F===e&&(o.charCodeAt(n)===45?(F=Mt,n++):(F=e,L===0&&I(jt))),F!==e){for(se=[],pe=G();pe!==e;)se.push(pe),pe=G();se!==e?(pe=Wr(),pe!==e?(J=c,k=jn(i,F,pe),c=k):(n=c,c=e)):(n=c,c=e)}else n=c,c=e;else n=c,c=e}a!==e?(J=t,i=pt(i,a),t=i):(n=t,t=e)}else n=t,t=e;return t}function oi(){var t,i,a,c,k,F;if(t=n,o.substr(n,3)===On?(i=On,n+=3):(i=e,L===0&&I(co)),i!==e){for(a=[],c=G();c!==e;)a.push(c),c=G();if(a!==e)if(c=ii(),c!==e){for(k=[],F=G();F!==e;)k.push(F),F=G();k!==e?(o.substr(n,2)===Rn?(F=Rn,n+=2):(F=e,L===0&&I(lo)),F!==e?(J=t,i=fo(c),t=i):(n=t,t=e)):(n=t,t=e)}else n=t,t=e;else n=t,t=e}else n=t,t=e;return t}function ai(){var t,i,a,c;return t=n,o.substr(n,2)===Tn?(i=Tn,n+=2):(i=e,L===0&&I(po)),i!==e?(a=Vt(),a!==e?(o.charCodeAt(n)===41?(c=ee,n++):(c=e,L===0&&I(Ne)),c!==e?(J=t,i=ho(a),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t}function Kr(){var t,i,a,c,k,F;return t=n,o.substr(n,2)===ot?(i=ot,n+=2):(i=e,L===0&&I(Jt)),i!==e?(a=Ot(),a!==e?(o.substr(n,2)===Ln?(c=Ln,n+=2):(c=e,L===0&&I(go)),c!==e?(k=Zn(),k!==e?(o.charCodeAt(n)===125?(F=we,n++):(F=e,L===0&&I(W)),F!==e?(J=t,i=mo(a,k),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===ot?(i=ot,n+=2):(i=e,L===0&&I(Jt)),i!==e?(a=Ot(),a!==e?(o.substr(n,3)===Fn?(c=Fn,n+=3):(c=e,L===0&&I(yo)),c!==e?(J=t,i=vo(a),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===ot?(i=ot,n+=2):(i=e,L===0&&I(Jt)),i!==e?(a=Ot(),a!==e?(o.substr(n,2)===In?(c=In,n+=2):(c=e,L===0&&I(Ao)),c!==e?(k=Zn(),k!==e?(o.charCodeAt(n)===125?(F=we,n++):(F=e,L===0&&I(W)),F!==e?(J=t,i=bo(a,k),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===ot?(i=ot,n+=2):(i=e,L===0&&I(Jt)),i!==e?(a=Ot(),a!==e?(o.substr(n,3)===Nn?(c=Nn,n+=3):(c=e,L===0&&I(Co)),c!==e?(J=t,i=wo(a),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.substr(n,2)===ot?(i=ot,n+=2):(i=e,L===0&&I(Jt)),i!==e?(a=Ot(),a!==e?(o.charCodeAt(n)===125?(c=we,n++):(c=e,L===0&&I(W)),c!==e?(J=t,i=Mn(a),t=i):(n=t,t=e)):(n=t,t=e)):(n=t,t=e),t===e&&(t=n,o.charCodeAt(n)===36?(i=So,n++):(i=e,L===0&&I(ko)),i!==e?(a=Ot(),a!==e?(J=t,i=Mn(a),t=i):(n=t,t=e)):(n=t,t=e)))))),t}function zo(){var t,i,a;return t=n,i=Xo(),i!==e?(J=n,a=Eo(i),a?a=void 0:a=e,a!==e?(J=t,i=_o(i),t=i):(n=t,t=e)):(n=t,t=e),t}function Xo(){var t,i,a,c,k;if(t=n,i=[],a=n,c=n,L++,k=ci(),L--,k===e?c=void 0:(n=c,c=e),c!==e?(o.length>n?(k=o.charAt(n),n++):(k=e,L===0&&I(it)),k!==e?(J=a,c=Qe(k),a=c):(n=a,a=e)):(n=a,a=e),a!==e)for(;a!==e;)i.push(a),a=n,c=n,L++,k=ci(),L--,k===e?c=void 0:(n=c,c=e),c!==e?(o.length>n?(k=o.charAt(n),n++):(k=e,L===0&&I(it)),k!==e?(J=a,c=Qe(k),a=c):(n=a,a=e)):(n=a,a=e);else i=e;return i!==e&&(J=t,i=mt(i)),t=i,t}function si(){var t,i,a;if(t=n,i=[],qn.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Pn)),a!==e)for(;a!==e;)i.push(a),qn.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Pn));else i=e;return i!==e&&(J=t,i=Dn()),t=i,t}function Ot(){var t,i,a;if(t=n,i=[],Yn.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Un)),a!==e)for(;a!==e;)i.push(a),Yn.test(o.charAt(n))?(a=o.charAt(n),n++):(a=e,L===0&&I(Un));else i=e;return i!==e&&(J=t,i=Dn()),t=i,t}function ui(){var t;return xo.test(o.charAt(n))?(t=o.charAt(n),n++):(t=e,L===0&&I($o)),t}function ci(){var t;return jo.test(o.charAt(n))?(t=o.charAt(n),n++):(t=e,L===0&&I(Oo)),t}function G(){var t,i;if(t=[],Hn.test(o.charAt(n))?(i=o.charAt(n),n++):(i=e,L===0&&I(Bn)),i!==e)for(;i!==e;)t.push(i),Hn.test(o.charAt(n))?(i=o.charAt(n),n++):(i=e,L===0&&I(Bn));else t=e;return t}if(vr=C(),vr!==e&&n===o.length)return vr;throw vr!==e&&n<o.length&&I(Lo()),Fo(Yr,at<o.length?o.charAt(at):null,at<o.length?Kn(at,at+1):Kn(at,at))}return Zr={SyntaxError:d,parse:A},Zr}var gi;function wa(){if(gi)return Oe;gi=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.parseShell=d,Oe.stringifyShellLine=A,Oe.stringifyShell=A,Oe.stringifyCommandLine=o,Oe.stringifyCommandLineThen=h,Oe.stringifyCommandChain=e,Oe.stringifyCommandChainThen=g,Oe.stringifyCommand=C,Oe.stringifyEnvSegment=m,Oe.stringifyArgument=S,Oe.stringifyRedirectArgument=E,Oe.stringifyValueArgument=Y,Oe.stringifyArgumentSegment=re,Oe.stringifyArithmeticExpression=ae,Oe.stringifyShellLine=A,Oe.stringifyShell=A;const l=Ca();function d(O,Z={isGlobPattern:()=>!1}){try{return(0,l.parse)(O,Z)}catch(te){throw te.location&&(te.message=te.message.replace(/(\.)?$/,` (line ${te.location.start.line}, column ${te.location.start.column})$1`)),te}}function A(O,{endSemicolon:Z=!1}={}){return O.map(({command:te,type:q},ue)=>`${o(te)}${q===";"?ue!==O.length-1||Z?";":"":" &"}`).join(" ")}function o(O){return`${e(O.chain)}${O.then?` ${h(O.then)}`:""}`}function h(O){return`${O.type} ${o(O.line)}`}function e(O){return`${C(O)}${O.then?` ${g(O.then)}`:""}`}function g(O){return`${O.type} ${e(O.chain)}`}function C(O){switch(O.type){case"command":return`${O.envs.length>0?`${O.envs.map(Z=>m(Z)).join(" ")} `:""}${O.args.map(Z=>S(Z)).join(" ")}`;case"subshell":return`(${A(O.subshell)})${O.args.length>0?` ${O.args.map(Z=>E(Z)).join(" ")}`:""}`;case"group":return`{ ${A(O.group,{endSemicolon:!0})} }${O.args.length>0?` ${O.args.map(Z=>E(Z)).join(" ")}`:""}`;case"envs":return O.envs.map(Z=>m(Z)).join(" ");default:throw new Error(`Unsupported command type: "${O.type}"`)}}function m(O){return`${O.name}=${O.args[0]?Y(O.args[0]):""}`}function S(O){switch(O.type){case"redirection":return E(O);case"argument":return Y(O);default:throw new Error(`Unsupported argument type: "${O.type}"`)}}function E(O){return`${O.subtype} ${O.args.map(Z=>Y(Z)).join(" ")}`}function Y(O){return O.segments.map(Z=>re(Z)).join("")}const y=new Map([["\f","\\f"],[`
8
+ `,"\\n"],["\r","\\r"],[" ","\\t"],["\v","\\v"],["\0","\\0"]]),b=new Map([["\\","\\\\"],["$","\\$"],['"','\\"'],...Array.from(y,([O,Z])=>[O,`"$'${Z}'"`])]),v=O=>y.get(O)??`\\x${O.charCodeAt(0).toString(16).padStart(2,"0")}`,M=O=>b.get(O)??`"$'${v(O)}'"`;function re(O){const Z=(q,ue)=>ue?`"${q}"`:q,te=q=>q===""?"''":q.match(/[()}<>$|&;"'\n\t ]/)?q.match(/['\t\p{C}]/u)?q.match(/'/)?`"${q.replace(/["$\t\p{C}]/u,M)}"`:`$'${q.replace(/[\t\p{C}]/u,v)}'`:`'${q}'`:q;switch(O.type){case"text":return te(O.text);case"glob":return O.pattern;case"shell":return Z(`$(${A(O.shell)})`,O.quoted);case"variable":return Z(typeof O.defaultValue>"u"?typeof O.alternativeValue>"u"?`\${${O.name}}`:O.alternativeValue.length===0?`\${${O.name}:+}`:`\${${O.name}:+${O.alternativeValue.map(q=>Y(q)).join(" ")}}`:O.defaultValue.length===0?`\${${O.name}:-}`:`\${${O.name}:-${O.defaultValue.map(q=>Y(q)).join(" ")}}`,O.quoted);case"arithmetic":return`$(( ${ae(O.arithmetic)} ))`;default:throw new Error(`Unsupported argument segment type: "${O.type}"`)}}function ae(O){const Z=ue=>{switch(ue){case"addition":return"+";case"subtraction":return"-";case"multiplication":return"*";case"division":return"/";default:throw new Error(`Can't extract operator from arithmetic expression of type "${ue}"`)}},te=(ue,Ce)=>Ce?`( ${ue} )`:ue,q=ue=>te(ae(ue),!["number","variable"].includes(ue.type));switch(O.type){case"number":return String(O.value);case"variable":return O.name;default:return`${q(O.left)} ${Z(O.type)} ${q(O.right)}`}}return Oe}var Xt={},zr,mi;function Sa(){if(mi)return zr;mi=1;function l(o,h){function e(){this.constructor=o}e.prototype=h.prototype,o.prototype=new e}function d(o,h,e,g){this.message=o,this.expected=h,this.found=e,this.location=g,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,d)}l(d,Error),d.buildMessage=function(o,h){var e={literal:function(y){return'"'+C(y.text)+'"'},class:function(y){var b="",v;for(v=0;v<y.parts.length;v++)b+=y.parts[v]instanceof Array?m(y.parts[v][0])+"-"+m(y.parts[v][1]):m(y.parts[v]);return"["+(y.inverted?"^":"")+b+"]"},any:function(y){return"any character"},end:function(y){return"end of input"},other:function(y){return y.description}};function g(y){return y.charCodeAt(0).toString(16).toUpperCase()}function C(y){return y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+g(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+g(b)})}function m(y){return y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+g(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+g(b)})}function S(y){return e[y.type](y)}function E(y){var b=new Array(y.length),v,M;for(v=0;v<y.length;v++)b[v]=S(y[v]);if(b.sort(),b.length>0){for(v=1,M=1;v<b.length;v++)b[v-1]!==b[v]&&(b[M]=b[v],M++);b.length=M}switch(b.length){case 1:return b[0];case 2:return b[0]+" or "+b[1];default:return b.slice(0,-1).join(", ")+", or "+b[b.length-1]}}function Y(y){return y?'"'+C(y)+'"':"end of input"}return"Expected "+E(o)+" but "+Y(h)+" found."};function A(o,h){h=h!==void 0?h:{};var e={},g={resolution:Ne},C=Ne,m="/",S=Fe("/",!1),E=function(W,U){return{from:W,descriptor:U}},Y=function(W){return{descriptor:W}},y="@",b=Fe("@",!1),v=function(W,U){return{fullName:W,description:U}},M=function(W){return{fullName:W}},re=function(){return je()},ae=/^[^\/@]/,O=Ue(["/","@"],!0,!1),Z=/^[^\/]/,te=Ue(["/"],!0,!1),q=0,ue=0,Ce=[{line:1,column:1}],ge=0,Ae=[],Ee;if("startRule"in h){if(!(h.startRule in g))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');C=g[h.startRule]}function je(){return o.substring(ue,q)}function Fe(W,U){return{type:"literal",text:W,ignoreCase:U}}function Ue(W,U,ie){return{type:"class",parts:W,inverted:U,ignoreCase:ie}}function ye(){return{type:"end"}}function Me(W){var U=Ce[W],ie;if(U)return U;for(ie=W-1;!Ce[ie];)ie--;for(U=Ce[ie],U={line:U.line,column:U.column};ie<W;)o.charCodeAt(ie)===10?(U.line++,U.column=1):U.column++,ie++;return Ce[W]=U,U}function Ze(W,U){var ie=Me(W),ve=Me(U);return{start:{offset:W,line:ie.line,column:ie.column},end:{offset:U,line:ve.line,column:ve.column}}}function xe(W){q<ge||(q>ge&&(ge=q,Ae=[]),Ae.push(W))}function ee(W,U,ie){return new d(d.buildMessage(W,U),W,U,ie)}function Ne(){var W,U,ie,ve;return W=q,U=De(),U!==e?(o.charCodeAt(q)===47?(ie=m,q++):(ie=e,xe(S)),ie!==e?(ve=De(),ve!==e?(ue=W,U=E(U,ve),W=U):(q=W,W=e)):(q=W,W=e)):(q=W,W=e),W===e&&(W=q,U=De(),U!==e&&(ue=W,U=Y(U)),W=U),W}function De(){var W,U,ie,ve;return W=q,U=Re(),U!==e?(o.charCodeAt(q)===64?(ie=y,q++):(ie=e,xe(b)),ie!==e?(ve=we(),ve!==e?(ue=W,U=v(U,ve),W=U):(q=W,W=e)):(q=W,W=e)):(q=W,W=e),W===e&&(W=q,U=Re(),U!==e&&(ue=W,U=M(U)),W=U),W}function Re(){var W,U,ie,ve,Ge;return W=q,o.charCodeAt(q)===64?(U=y,q++):(U=e,xe(b)),U!==e?(ie=qe(),ie!==e?(o.charCodeAt(q)===47?(ve=m,q++):(ve=e,xe(S)),ve!==e?(Ge=qe(),Ge!==e?(ue=W,U=re(),W=U):(q=W,W=e)):(q=W,W=e)):(q=W,W=e)):(q=W,W=e),W===e&&(W=q,U=qe(),U!==e&&(ue=W,U=re()),W=U),W}function qe(){var W,U,ie;if(W=q,U=[],ae.test(o.charAt(q))?(ie=o.charAt(q),q++):(ie=e,xe(O)),ie!==e)for(;ie!==e;)U.push(ie),ae.test(o.charAt(q))?(ie=o.charAt(q),q++):(ie=e,xe(O));else U=e;return U!==e&&(ue=W,U=re()),W=U,W}function we(){var W,U,ie;if(W=q,U=[],Z.test(o.charAt(q))?(ie=o.charAt(q),q++):(ie=e,xe(te)),ie!==e)for(;ie!==e;)U.push(ie),Z.test(o.charAt(q))?(ie=o.charAt(q),q++):(ie=e,xe(te));else U=e;return U!==e&&(ue=W,U=re()),W=U,W}if(Ee=C(),Ee!==e&&q===o.length)return Ee;throw Ee!==e&&q<o.length&&xe(ye()),ee(Ae,ge<o.length?o.charAt(ge):null,ge<o.length?Ze(ge,ge+1):Ze(ge,ge))}return zr={SyntaxError:d,parse:A},zr}var yi;function ka(){if(yi)return Xt;yi=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.parseResolution=d,Xt.stringifyResolution=A;const l=Sa();function d(o){const h=o.match(/^\*{1,2}\/(.*)/);if(h)throw new Error(`The override for '${o}' includes a glob pattern. Glob patterns have been removed since their behaviours don't match what you'd expect. Set the override to '${h[1]}' instead.`);try{return(0,l.parse)(o)}catch(e){throw e.location&&(e.message=e.message.replace(/(\.)?$/,` (line ${e.location.start.line}, column ${e.location.start.column})$1`)),e}}function A(o){let h="";return o.from&&(h+=o.from.fullName,o.from.description&&(h+=`@${o.from.description}`),h+="/"),h+=o.descriptor.fullName,o.descriptor.description&&(h+=`@${o.descriptor.description}`),h}return Xt}var Rt={},ke={},Pt={},bt={},vi;function Yt(){if(vi)return bt;vi=1;function l(g){return typeof g>"u"||g===null}function d(g){return typeof g=="object"&&g!==null}function A(g){return Array.isArray(g)?g:l(g)?[]:[g]}function o(g,C){var m,S,E,Y;if(C)for(Y=Object.keys(C),m=0,S=Y.length;m<S;m+=1)E=Y[m],g[E]=C[E];return g}function h(g,C){var m="",S;for(S=0;S<C;S+=1)m+=g;return m}function e(g){return g===0&&Number.NEGATIVE_INFINITY===1/g}return bt.isNothing=l,bt.isObject=d,bt.toArray=A,bt.repeat=h,bt.isNegativeZero=e,bt.extend=o,bt}var Xr,Ai;function rr(){if(Ai)return Xr;Ai=1;function l(d,A){Error.call(this),this.name="YAMLException",this.reason=d,this.mark=A,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return l.prototype=Object.create(Error.prototype),l.prototype.constructor=l,l.prototype.toString=function(d){var A=this.name+": ";return A+=this.reason||"(unknown reason)",!d&&this.mark&&(A+=" "+this.mark.toString()),A},Xr=l,Xr}var Qr,bi;function Ea(){if(bi)return Qr;bi=1;var l=Yt();function d(A,o,h,e,g){this.name=A,this.buffer=o,this.position=h,this.line=e,this.column=g}return d.prototype.getSnippet=function(A,o){var h,e,g,C,m;if(!this.buffer)return null;for(A=A||4,o=o||75,h="",e=this.position;e>0&&`\0\r
9
9
  …\u2028\u2029`.indexOf(this.buffer.charAt(e-1))===-1;)if(e-=1,this.position-e>o/2-1){h=" ... ",e+=5;break}for(g="",C=this.position;C<this.buffer.length&&`\0\r
10
10
  …\u2028\u2029`.indexOf(this.buffer.charAt(C))===-1;)if(C+=1,C-this.position>o/2-1){g=" ... ",C-=5;break}return m=this.buffer.slice(e,C),l.repeat(" ",A)+h+m+g+`
11
11
  `+l.repeat(" ",A+this.position-e+h.length)+"^"},d.prototype.toString=function(A){var o,h="";return this.name&&(h+='in "'+this.name+'" '),h+="at line "+(this.line+1)+", column "+(this.column+1),A||(o=this.getSnippet(),o&&(h+=`:
12
- `+o)),h},Qr=d,Qr}var en,Ci;function Le(){if(Ci)return en;Ci=1;var l=rr(),d=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],A=["scalar","sequence","mapping"];function o(e){var g={};return e!==null&&Object.keys(e).forEach(function(C){e[C].forEach(function(m){g[String(m)]=C})}),g}function h(e,g){if(g=g||{},Object.keys(g).forEach(function(C){if(d.indexOf(C)===-1)throw new l('Unknown option "'+C+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=g.kind||null,this.resolve=g.resolve||function(){return!0},this.construct=g.construct||function(C){return C},this.instanceOf=g.instanceOf||null,this.predicate=g.predicate||null,this.represent=g.represent||null,this.defaultStyle=g.defaultStyle||null,this.styleAliases=o(g.styleAliases||null),A.indexOf(this.kind)===-1)throw new l('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}return en=h,en}var tn,wi;function Ut(){if(wi)return tn;wi=1;var l=Yt(),d=rr(),A=Le();function o(g,C,m){var S=[];return g.include.forEach(function(E){m=o(E,C,m)}),g[C].forEach(function(E){m.forEach(function(Y,y){Y.tag===E.tag&&Y.kind===E.kind&&S.push(y)}),m.push(E)}),m.filter(function(E,Y){return S.indexOf(Y)===-1})}function h(){var g={scalar:{},sequence:{},mapping:{},fallback:{}},C,m;function S(E){g[E.kind][E.tag]=g.fallback[E.tag]=E}for(C=0,m=arguments.length;C<m;C+=1)arguments[C].forEach(S);return g}function e(g){this.include=g.include||[],this.implicit=g.implicit||[],this.explicit=g.explicit||[],this.implicit.forEach(function(C){if(C.loadKind&&C.loadKind!=="scalar")throw new d("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=h(this.compiledImplicit,this.compiledExplicit)}return e.DEFAULT=null,e.create=function(){var g,C;switch(arguments.length){case 1:g=e.DEFAULT,C=arguments[0];break;case 2:g=arguments[0],C=arguments[1];break;default:throw new d("Wrong number of arguments for Schema.create function")}if(g=l.toArray(g),C=l.toArray(C),!g.every(function(m){return m instanceof e}))throw new d("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!C.every(function(m){return m instanceof A}))throw new d("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:g,explicit:C})},tn=e,tn}var rn,Si;function Ea(){if(Si)return rn;Si=1;var l=Le();return rn=new l("tag:yaml.org,2002:str",{kind:"scalar",construct:function(d){return d!==null?d:""}}),rn}var nn,ki;function _a(){if(ki)return nn;ki=1;var l=Le();return nn=new l("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(d){return d!==null?d:[]}}),nn}var on,Ei;function $a(){if(Ei)return on;Ei=1;var l=Le();return on=new l("tag:yaml.org,2002:map",{kind:"mapping",construct:function(d){return d!==null?d:{}}}),on}var an,_i;function $n(){if(_i)return an;_i=1;var l=Ut();return an=new l({explicit:[Ea(),_a(),$a()]}),an}var sn,$i;function xa(){if($i)return sn;$i=1;var l=Le();function d(h){if(h===null)return!0;var e=h.length;return e===1&&h==="~"||e===4&&(h==="null"||h==="Null"||h==="NULL")}function A(){return null}function o(h){return h===null}return sn=new l("tag:yaml.org,2002:null",{kind:"scalar",resolve:d,construct:A,predicate:o,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),sn}var un,xi;function ja(){if(xi)return un;xi=1;var l=Le();function d(h){if(h===null)return!1;var e=h.length;return e===4&&(h==="true"||h==="True"||h==="TRUE")||e===5&&(h==="false"||h==="False"||h==="FALSE")}function A(h){return h==="true"||h==="True"||h==="TRUE"}function o(h){return Object.prototype.toString.call(h)==="[object Boolean]"}return un=new l("tag:yaml.org,2002:bool",{kind:"scalar",resolve:d,construct:A,predicate:o,represent:{lowercase:function(h){return h?"true":"false"},uppercase:function(h){return h?"TRUE":"FALSE"},camelcase:function(h){return h?"True":"False"}},defaultStyle:"lowercase"}),un}var cn,ji;function Oa(){if(ji)return cn;ji=1;var l=Yt(),d=Le();function A(m){return 48<=m&&m<=57||65<=m&&m<=70||97<=m&&m<=102}function o(m){return 48<=m&&m<=55}function h(m){return 48<=m&&m<=57}function e(m){if(m===null)return!1;var S=m.length,E=0,Y=!1,y;if(!S)return!1;if(y=m[E],(y==="-"||y==="+")&&(y=m[++E]),y==="0"){if(E+1===S)return!0;if(y=m[++E],y==="b"){for(E++;E<S;E++)if(y=m[E],y!=="_"){if(y!=="0"&&y!=="1")return!1;Y=!0}return Y&&y!=="_"}if(y==="x"){for(E++;E<S;E++)if(y=m[E],y!=="_"){if(!A(m.charCodeAt(E)))return!1;Y=!0}return Y&&y!=="_"}for(;E<S;E++)if(y=m[E],y!=="_"){if(!o(m.charCodeAt(E)))return!1;Y=!0}return Y&&y!=="_"}if(y==="_")return!1;for(;E<S;E++)if(y=m[E],y!=="_"){if(y===":")break;if(!h(m.charCodeAt(E)))return!1;Y=!0}return!Y||y==="_"?!1:y!==":"?!0:/^(:[0-5]?[0-9])+$/.test(m.slice(E))}function g(m){var S=m,E=1,Y,y,b=[];return S.indexOf("_")!==-1&&(S=S.replace(/_/g,"")),Y=S[0],(Y==="-"||Y==="+")&&(Y==="-"&&(E=-1),S=S.slice(1),Y=S[0]),S==="0"?0:Y==="0"?S[1]==="b"?E*parseInt(S.slice(2),2):S[1]==="x"?E*parseInt(S,16):E*parseInt(S,8):S.indexOf(":")!==-1?(S.split(":").forEach(function(v){b.unshift(parseInt(v,10))}),S=0,y=1,b.forEach(function(v){S+=v*y,y*=60}),E*S):E*parseInt(S,10)}function C(m){return Object.prototype.toString.call(m)==="[object Number]"&&m%1===0&&!l.isNegativeZero(m)}return cn=new d("tag:yaml.org,2002:int",{kind:"scalar",resolve:e,construct:g,predicate:C,represent:{binary:function(m){return m>=0?"0b"+m.toString(2):"-0b"+m.toString(2).slice(1)},octal:function(m){return m>=0?"0"+m.toString(8):"-0"+m.toString(8).slice(1)},decimal:function(m){return m.toString(10)},hexadecimal:function(m){return m>=0?"0x"+m.toString(16).toUpperCase():"-0x"+m.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),cn}var ln,Oi;function Ta(){if(Oi)return ln;Oi=1;var l=Yt(),d=Le(),A=new 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(m){return!(m===null||!A.test(m)||m[m.length-1]==="_")}function h(m){var S,E,Y,y;return S=m.replace(/_/g,"").toLowerCase(),E=S[0]==="-"?-1:1,y=[],"+-".indexOf(S[0])>=0&&(S=S.slice(1)),S===".inf"?E===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:S===".nan"?NaN:S.indexOf(":")>=0?(S.split(":").forEach(function(b){y.unshift(parseFloat(b,10))}),S=0,Y=1,y.forEach(function(b){S+=b*Y,Y*=60}),E*S):E*parseFloat(S,10)}var e=/^[-+]?[0-9]+e/;function g(m,S){var E;if(isNaN(m))switch(S){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===m)switch(S){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===m)switch(S){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(l.isNegativeZero(m))return"-0.0";return E=m.toString(10),e.test(E)?E.replace("e",".e"):E}function C(m){return Object.prototype.toString.call(m)==="[object Number]"&&(m%1!==0||l.isNegativeZero(m))}return ln=new d("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:h,predicate:C,represent:g,defaultStyle:"lowercase"}),ln}var fn,Ti;function oo(){if(Ti)return fn;Ti=1;var l=Ut();return fn=new l({include:[$n()],implicit:[xa(),ja(),Oa(),Ta()]}),fn}var pn,Ri;function ao(){if(Ri)return pn;Ri=1;var l=Ut();return pn=new l({include:[oo()]}),pn}var hn,Li;function Ra(){if(Li)return hn;Li=1;var l=Le(),d=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),A=new 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(g){return g===null?!1:d.exec(g)!==null||A.exec(g)!==null}function h(g){var C,m,S,E,Y,y,b,v=0,M=null,re,ae,O;if(C=d.exec(g),C===null&&(C=A.exec(g)),C===null)throw new Error("Date resolve error");if(m=+C[1],S=+C[2]-1,E=+C[3],!C[4])return new Date(Date.UTC(m,S,E));if(Y=+C[4],y=+C[5],b=+C[6],C[7]){for(v=C[7].slice(0,3);v.length<3;)v+="0";v=+v}return C[9]&&(re=+C[10],ae=+(C[11]||0),M=(re*60+ae)*6e4,C[9]==="-"&&(M=-M)),O=new Date(Date.UTC(m,S,E,Y,y,b,v)),M&&O.setTime(O.getTime()-M),O}function e(g){return g.toISOString()}return hn=new l("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:o,construct:h,instanceOf:Date,represent:e}),hn}var dn,Fi;function La(){if(Fi)return dn;Fi=1;var l=Le();function d(A){return A==="<<"||A===null}return dn=new l("tag:yaml.org,2002:merge",{kind:"scalar",resolve:d}),dn}function so(l){throw new Error('Could not dynamically require "'+l+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var gn,Ii;function Fa(){if(Ii)return gn;Ii=1;var l;try{var d=so;l=d("buffer").Buffer}catch{}var A=Le(),o=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
13
- \r`;function h(m){if(m===null)return!1;var S,E,Y=0,y=m.length,b=o;for(E=0;E<y;E++)if(S=b.indexOf(m.charAt(E)),!(S>64)){if(S<0)return!1;Y+=6}return Y%8===0}function e(m){var S,E,Y=m.replace(/[\r\n=]/g,""),y=Y.length,b=o,v=0,M=[];for(S=0;S<y;S++)S%4===0&&S&&(M.push(v>>16&255),M.push(v>>8&255),M.push(v&255)),v=v<<6|b.indexOf(Y.charAt(S));return E=y%4*6,E===0?(M.push(v>>16&255),M.push(v>>8&255),M.push(v&255)):E===18?(M.push(v>>10&255),M.push(v>>2&255)):E===12&&M.push(v>>4&255),l?l.from?l.from(M):new l(M):M}function g(m){var S="",E=0,Y,y,b=m.length,v=o;for(Y=0;Y<b;Y++)Y%3===0&&Y&&(S+=v[E>>18&63],S+=v[E>>12&63],S+=v[E>>6&63],S+=v[E&63]),E=(E<<8)+m[Y];return y=b%3,y===0?(S+=v[E>>18&63],S+=v[E>>12&63],S+=v[E>>6&63],S+=v[E&63]):y===2?(S+=v[E>>10&63],S+=v[E>>4&63],S+=v[E<<2&63],S+=v[64]):y===1&&(S+=v[E>>2&63],S+=v[E<<4&63],S+=v[64],S+=v[64]),S}function C(m){return l&&l.isBuffer(m)}return gn=new A("tag:yaml.org,2002:binary",{kind:"scalar",resolve:h,construct:e,predicate:C,represent:g}),gn}var mn,Ni;function Ia(){if(Ni)return mn;Ni=1;var l=Le(),d=Object.prototype.hasOwnProperty,A=Object.prototype.toString;function o(e){if(e===null)return!0;var g=[],C,m,S,E,Y,y=e;for(C=0,m=y.length;C<m;C+=1){if(S=y[C],Y=!1,A.call(S)!=="[object Object]")return!1;for(E in S)if(d.call(S,E))if(!Y)Y=!0;else return!1;if(!Y)return!1;if(g.indexOf(E)===-1)g.push(E);else return!1}return!0}function h(e){return e!==null?e:[]}return mn=new l("tag:yaml.org,2002:omap",{kind:"sequence",resolve:o,construct:h}),mn}var yn,Mi;function Na(){if(Mi)return yn;Mi=1;var l=Le(),d=Object.prototype.toString;function A(h){if(h===null)return!0;var e,g,C,m,S,E=h;for(S=new Array(E.length),e=0,g=E.length;e<g;e+=1){if(C=E[e],d.call(C)!=="[object Object]"||(m=Object.keys(C),m.length!==1))return!1;S[e]=[m[0],C[m[0]]]}return!0}function o(h){if(h===null)return[];var e,g,C,m,S,E=h;for(S=new Array(E.length),e=0,g=E.length;e<g;e+=1)C=E[e],m=Object.keys(C),S[e]=[m[0],C[m[0]]];return S}return yn=new l("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:A,construct:o}),yn}var vn,qi;function Ma(){if(qi)return vn;qi=1;var l=Le(),d=Object.prototype.hasOwnProperty;function A(h){if(h===null)return!0;var e,g=h;for(e in g)if(d.call(g,e)&&g[e]!==null)return!1;return!0}function o(h){return h!==null?h:{}}return vn=new l("tag:yaml.org,2002:set",{kind:"mapping",resolve:A,construct:o}),vn}var An,Pi;function tr(){if(Pi)return An;Pi=1;var l=Ut();return An=new l({include:[ao()],implicit:[Ra(),La()],explicit:[Fa(),Ia(),Na(),Ma()]}),An}var bn,Di;function qa(){if(Di)return bn;Di=1;var l=Le();function d(){return!0}function A(){}function o(){return""}function h(e){return typeof e>"u"}return bn=new l("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:d,construct:A,predicate:h,represent:o}),bn}var Cn,Yi;function Pa(){if(Yi)return Cn;Yi=1;var l=Le();function d(e){if(e===null||e.length===0)return!1;var g=e,C=/\/([gim]*)$/.exec(e),m="";return!(g[0]==="/"&&(C&&(m=C[1]),m.length>3||g[g.length-m.length-1]!=="/"))}function A(e){var g=e,C=/\/([gim]*)$/.exec(e),m="";return g[0]==="/"&&(C&&(m=C[1]),g=g.slice(1,g.length-m.length-1)),new RegExp(g,m)}function o(e){var g="/"+e.source+"/";return e.global&&(g+="g"),e.multiline&&(g+="m"),e.ignoreCase&&(g+="i"),g}function h(e){return Object.prototype.toString.call(e)==="[object RegExp]"}return Cn=new l("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:d,construct:A,predicate:h,represent:o}),Cn}var wn,Ui;function Da(){if(Ui)return wn;Ui=1;var l;try{var d=so;l=d("esprima")}catch{typeof window<"u"&&(l=window.esprima)}var A=Le();function o(C){if(C===null)return!1;try{var m="("+C+")",S=l.parse(m,{range:!0});return!(S.type!=="Program"||S.body.length!==1||S.body[0].type!=="ExpressionStatement"||S.body[0].expression.type!=="ArrowFunctionExpression"&&S.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function h(C){var m="("+C+")",S=l.parse(m,{range:!0}),E=[],Y;if(S.type!=="Program"||S.body.length!==1||S.body[0].type!=="ExpressionStatement"||S.body[0].expression.type!=="ArrowFunctionExpression"&&S.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return S.body[0].expression.params.forEach(function(y){E.push(y.name)}),Y=S.body[0].expression.body.range,S.body[0].expression.body.type==="BlockStatement"?new Function(E,m.slice(Y[0]+1,Y[1]-1)):new Function(E,"return "+m.slice(Y[0],Y[1]))}function e(C){return C.toString()}function g(C){return Object.prototype.toString.call(C)==="[object Function]"}return wn=new A("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:o,construct:h,predicate:g,represent:e}),wn}var Sn,Hi;function Sr(){if(Hi)return Sn;Hi=1;var l=Ut();return Sn=l.DEFAULT=new l({include:[tr()],explicit:[qa(),Pa(),Da()]}),Sn}var Bi;function Ya(){if(Bi)return Pt;Bi=1;var l=Yt(),d=rr(),A=ka(),o=tr(),h=Sr(),e=Object.prototype.hasOwnProperty,g=1,C=2,m=3,S=4,E=1,Y=2,y=3,b=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,v=/[\x85\u2028\u2029]/,M=/[,\[\]\{\}]/,re=/^(?:!|!!|![a-z\-]+!)$/i,ae=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function O(r){return Object.prototype.toString.call(r)}function Z(r){return r===10||r===13}function te(r){return r===9||r===32}function q(r){return r===9||r===32||r===10||r===13}function ue(r){return r===44||r===91||r===93||r===123||r===125}function Ce(r){var $;return 48<=r&&r<=57?r-48:($=r|32,97<=$&&$<=102?$-97+10:-1)}function ge(r){return r===120?2:r===117?4:r===85?8:0}function Ae(r){return 48<=r&&r<=57?r-48:-1}function Ee(r){return r===48?"\0":r===97?"\x07":r===98?"\b":r===116||r===9?" ":r===110?`
14
- `:r===118?"\v":r===102?"\f":r===114?"\r":r===101?"\x1B":r===32?" ":r===34?'"':r===47?"/":r===92?"\\":r===78?"…":r===95?" ":r===76?"\u2028":r===80?"\u2029":""}function je(r){return r<=65535?String.fromCharCode(r):String.fromCharCode((r-65536>>10)+55296,(r-65536&1023)+56320)}function Fe(r,$,x){$==="__proto__"?Object.defineProperty(r,$,{configurable:!0,enumerable:!0,writable:!0,value:x}):r[$]=x}for(var Ue=new Array(256),ye=new Array(256),Me=0;Me<256;Me++)Ue[Me]=Ee(Me)?1:0,ye[Me]=Ee(Me);function Ze(r,$){this.input=r,this.filename=$.filename||null,this.schema=$.schema||h,this.onWarning=$.onWarning||null,this.legacy=$.legacy||!1,this.json=$.json||!1,this.listener=$.listener||null,this.maxTotalMergeKeys=typeof $.maxTotalMergeKeys=="number"?$.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=r.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.totalMergeKeys=0,this.documents=[]}function $e(r,$){return new d($,new A(r.filename,r.input,r.position,r.line,r.position-r.lineStart))}function ee(r,$){throw $e(r,$)}function Ne(r,$){r.onWarning&&r.onWarning.call(null,$e(r,$))}var De={YAML:function(r,$,x){var V,P,u;r.version!==null&&ee(r,"duplication of %YAML directive"),x.length!==1&&ee(r,"YAML directive accepts exactly one argument"),V=/^([0-9]+)\.([0-9]+)$/.exec(x[0]),V===null&&ee(r,"ill-formed argument of the YAML directive"),P=parseInt(V[1],10),u=parseInt(V[2],10),P!==1&&ee(r,"unacceptable YAML version of the document"),r.version=x[0],r.checkLineBreaks=u<2,u!==1&&u!==2&&Ne(r,"unsupported YAML version of the document")},TAG:function(r,$,x){var V,P;x.length!==2&&ee(r,"TAG directive accepts exactly two arguments"),V=x[0],P=x[1],re.test(V)||ee(r,"ill-formed tag handle (first argument) of the TAG directive"),e.call(r.tagMap,V)&&ee(r,'there is a previously declared suffix for "'+V+'" tag handle'),ae.test(P)||ee(r,"ill-formed tag prefix (second argument) of the TAG directive"),r.tagMap[V]=P}};function Te(r,$,x,V){var P,u,w,j;if($<x){if(j=r.input.slice($,x),V)for(P=0,u=j.length;P<u;P+=1)w=j.charCodeAt(P),w===9||32<=w&&w<=1114111||ee(r,"expected valid JSON character");else b.test(j)&&ee(r,"the stream contains non-printable characters");r.result+=j}}function qe(r,$,x,V){var P,u,w,j;for(l.isObject(x)||ee(r,"cannot merge mappings; the provided source object is unacceptable"),P=Object.keys(x),w=0,j=P.length;w<j;w+=1)u=P[w],r.maxTotalMergeKeys!==-1&&++r.totalMergeKeys>r.maxTotalMergeKeys&&ee(r,"merge keys exceeded maxTotalMergeKeys ("+r.maxTotalMergeKeys+")"),e.call($,u)||(Fe($,u,x[u]),V[u]=!0)}function we(r,$,x,V,P,u,w,j){var T,N;if(Array.isArray(P))for(P=Array.prototype.slice.call(P),T=0,N=P.length;T<N;T+=1)Array.isArray(P[T])&&ee(r,"nested arrays are not supported inside keys"),typeof P=="object"&&O(P[T])==="[object Object]"&&(P[T]="[object Object]");if(typeof P=="object"&&O(P)==="[object Object]"&&(P="[object Object]"),P=String(P),$===null&&($={}),V==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(T=0,N=u.length;T<N;T+=1)qe(r,$,u[T],x);else qe(r,$,u,x);else!r.json&&!e.call(x,P)&&e.call($,P)&&(r.line=w||r.line,r.position=j||r.position,ee(r,"duplicated mapping key")),Fe($,P,u),delete x[P];return $}function W(r){var $;$=r.input.charCodeAt(r.position),$===10?r.position++:$===13?(r.position++,r.input.charCodeAt(r.position)===10&&r.position++):ee(r,"a line break is expected"),r.line+=1,r.lineStart=r.position}function U(r,$,x){for(var V=0,P=r.input.charCodeAt(r.position);P!==0;){for(;te(P);)P=r.input.charCodeAt(++r.position);if($&&P===35)do P=r.input.charCodeAt(++r.position);while(P!==10&&P!==13&&P!==0);if(Z(P))for(W(r),P=r.input.charCodeAt(r.position),V++,r.lineIndent=0;P===32;)r.lineIndent++,P=r.input.charCodeAt(++r.position);else break}return x!==-1&&V!==0&&r.lineIndent<x&&Ne(r,"deficient indentation"),V}function ie(r){var $=r.position,x;return x=r.input.charCodeAt($),!!((x===45||x===46)&&x===r.input.charCodeAt($+1)&&x===r.input.charCodeAt($+2)&&($+=3,x=r.input.charCodeAt($),x===0||q(x)))}function ve(r,$){$===1?r.result+=" ":$>1&&(r.result+=l.repeat(`
15
- `,$-1))}function Ge(r,$,x){var V,P,u,w,j,T,N,H,R=r.kind,z=r.result,K;if(K=r.input.charCodeAt(r.position),q(K)||ue(K)||K===35||K===38||K===42||K===33||K===124||K===62||K===39||K===34||K===37||K===64||K===96||(K===63||K===45)&&(P=r.input.charCodeAt(r.position+1),q(P)||x&&ue(P)))return!1;for(r.kind="scalar",r.result="",u=w=r.position,j=!1;K!==0;){if(K===58){if(P=r.input.charCodeAt(r.position+1),q(P)||x&&ue(P))break}else if(K===35){if(V=r.input.charCodeAt(r.position-1),q(V))break}else{if(r.position===r.lineStart&&ie(r)||x&&ue(K))break;if(Z(K))if(T=r.line,N=r.lineStart,H=r.lineIndent,U(r,!1,-1),r.lineIndent>=$){j=!0,K=r.input.charCodeAt(r.position);continue}else{r.position=w,r.line=T,r.lineStart=N,r.lineIndent=H;break}}j&&(Te(r,u,w,!1),ve(r,r.line-T),u=w=r.position,j=!1),te(K)||(w=r.position+1),K=r.input.charCodeAt(++r.position)}return Te(r,u,w,!1),r.result?!0:(r.kind=R,r.result=z,!1)}function ze(r,$){var x,V,P;if(x=r.input.charCodeAt(r.position),x!==39)return!1;for(r.kind="scalar",r.result="",r.position++,V=P=r.position;(x=r.input.charCodeAt(r.position))!==0;)if(x===39)if(Te(r,V,r.position,!0),x=r.input.charCodeAt(++r.position),x===39)V=r.position,r.position++,P=r.position;else return!0;else Z(x)?(Te(r,V,P,!0),ve(r,U(r,!1,$)),V=P=r.position):r.position===r.lineStart&&ie(r)?ee(r,"unexpected end of the document within a single quoted scalar"):(r.position++,P=r.position);ee(r,"unexpected end of the stream within a single quoted scalar")}function Pe(r,$){var x,V,P,u,w,j;if(j=r.input.charCodeAt(r.position),j!==34)return!1;for(r.kind="scalar",r.result="",r.position++,x=V=r.position;(j=r.input.charCodeAt(r.position))!==0;){if(j===34)return Te(r,x,r.position,!0),r.position++,!0;if(j===92){if(Te(r,x,r.position,!0),j=r.input.charCodeAt(++r.position),Z(j))U(r,!1,$);else if(j<256&&Ue[j])r.result+=ye[j],r.position++;else if((w=ge(j))>0){for(P=w,u=0;P>0;P--)j=r.input.charCodeAt(++r.position),(w=Ce(j))>=0?u=(u<<4)+w:ee(r,"expected hexadecimal character");r.result+=je(u),r.position++}else ee(r,"unknown escape sequence");x=V=r.position}else Z(j)?(Te(r,x,V,!0),ve(r,U(r,!1,$)),x=V=r.position):r.position===r.lineStart&&ie(r)?ee(r,"unexpected end of the document within a double quoted scalar"):(r.position++,V=r.position)}ee(r,"unexpected end of the stream within a double quoted scalar")}function Ye(r,$){var x=!0,V,P=r.tag,u,w=r.anchor,j,T,N,H,R,z={},K,ne,de,le;if(le=r.input.charCodeAt(r.position),le===91)T=93,R=!1,u=[];else if(le===123)T=125,R=!0,u={};else return!1;for(r.anchor!==null&&(r.anchorMap[r.anchor]=u),le=r.input.charCodeAt(++r.position);le!==0;){if(U(r,!0,$),le=r.input.charCodeAt(r.position),le===T)return r.position++,r.tag=P,r.anchor=w,r.kind=R?"mapping":"sequence",r.result=u,!0;x||ee(r,"missed comma between flow collection entries"),ne=K=de=null,N=H=!1,le===63&&(j=r.input.charCodeAt(r.position+1),q(j)&&(N=H=!0,r.position++,U(r,!0,$))),V=r.line,He(r,$,g,!1,!0),ne=r.tag,K=r.result,U(r,!0,$),le=r.input.charCodeAt(r.position),(H||r.line===V)&&le===58&&(N=!0,le=r.input.charCodeAt(++r.position),U(r,!0,$),He(r,$,g,!1,!0),de=r.result),R?we(r,u,z,ne,K,de):N?u.push(we(r,null,z,ne,K,de)):u.push(K),U(r,!0,$),le=r.input.charCodeAt(r.position),le===44?(x=!0,le=r.input.charCodeAt(++r.position)):x=!1}ee(r,"unexpected end of the stream within a flow collection")}function tt(r,$){var x,V,P=E,u=!1,w=!1,j=$,T=0,N=!1,H,R;if(R=r.input.charCodeAt(r.position),R===124)V=!1;else if(R===62)V=!0;else return!1;for(r.kind="scalar",r.result="";R!==0;)if(R=r.input.charCodeAt(++r.position),R===43||R===45)E===P?P=R===43?y:Y:ee(r,"repeat of a chomping mode identifier");else if((H=Ae(R))>=0)H===0?ee(r,"bad explicit indentation width of a block scalar; it cannot be less than one"):w?ee(r,"repeat of an indentation width identifier"):(j=$+H-1,w=!0);else break;if(te(R)){do R=r.input.charCodeAt(++r.position);while(te(R));if(R===35)do R=r.input.charCodeAt(++r.position);while(!Z(R)&&R!==0)}for(;R!==0;){for(W(r),r.lineIndent=0,R=r.input.charCodeAt(r.position);(!w||r.lineIndent<j)&&R===32;)r.lineIndent++,R=r.input.charCodeAt(++r.position);if(!w&&r.lineIndent>j&&(j=r.lineIndent),Z(R)){T++;continue}if(r.lineIndent<j){P===y?r.result+=l.repeat(`
16
- `,u?1+T:T):P===E&&u&&(r.result+=`
17
- `);break}for(V?te(R)?(N=!0,r.result+=l.repeat(`
18
- `,u?1+T:T)):N?(N=!1,r.result+=l.repeat(`
19
- `,T+1)):T===0?u&&(r.result+=" "):r.result+=l.repeat(`
20
- `,T):r.result+=l.repeat(`
21
- `,u?1+T:T),u=!0,w=!0,T=0,x=r.position;!Z(R)&&R!==0;)R=r.input.charCodeAt(++r.position);Te(r,x,r.position,!1)}return!0}function rt(r,$){var x,V=r.tag,P=r.anchor,u=[],w,j=!1,T;for(r.anchor!==null&&(r.anchorMap[r.anchor]=u),T=r.input.charCodeAt(r.position);T!==0&&!(T!==45||(w=r.input.charCodeAt(r.position+1),!q(w)));){if(j=!0,r.position++,U(r,!0,-1)&&r.lineIndent<=$){u.push(null),T=r.input.charCodeAt(r.position);continue}if(x=r.line,He(r,$,m,!1,!0),u.push(r.result),U(r,!0,-1),T=r.input.charCodeAt(r.position),(r.line===x||r.lineIndent>$)&&T!==0)ee(r,"bad indentation of a sequence entry");else if(r.lineIndent<$)break}return j?(r.tag=V,r.anchor=P,r.kind="sequence",r.result=u,!0):!1}function Ct(r,$,x){var V,P,u,w,j=r.tag,T=r.anchor,N={},H={},R=null,z=null,K=null,ne=!1,de=!1,le;for(r.anchor!==null&&(r.anchorMap[r.anchor]=N),le=r.input.charCodeAt(r.position);le!==0;){if(V=r.input.charCodeAt(r.position+1),u=r.line,w=r.position,(le===63||le===58)&&q(V))le===63?(ne&&(we(r,N,H,R,z,null),R=z=K=null),de=!0,ne=!0,P=!0):ne?(ne=!1,P=!0):ee(r,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),r.position+=1,le=V;else if(He(r,x,C,!1,!0))if(r.line===u){for(le=r.input.charCodeAt(r.position);te(le);)le=r.input.charCodeAt(++r.position);if(le===58)le=r.input.charCodeAt(++r.position),q(le)||ee(r,"a whitespace character is expected after the key-value separator within a block mapping"),ne&&(we(r,N,H,R,z,null),R=z=K=null),de=!0,ne=!1,P=!1,R=r.tag,z=r.result;else if(de)ee(r,"can not read an implicit mapping pair; a colon is missed");else return r.tag=j,r.anchor=T,!0}else if(de)ee(r,"can not read a block mapping entry; a multiline key may not be an implicit key");else return r.tag=j,r.anchor=T,!0;else break;if((r.line===u||r.lineIndent>$)&&(He(r,$,S,!0,P)&&(ne?z=r.result:K=r.result),ne||(we(r,N,H,R,z,K,u,w),R=z=K=null),U(r,!0,-1),le=r.input.charCodeAt(r.position)),r.lineIndent>$&&le!==0)ee(r,"bad indentation of a mapping entry");else if(r.lineIndent<$)break}return ne&&we(r,N,H,R,z,null),de&&(r.tag=j,r.anchor=T,r.kind="mapping",r.result=N),de}function st(r){var $,x=!1,V=!1,P,u,w;if(w=r.input.charCodeAt(r.position),w!==33)return!1;if(r.tag!==null&&ee(r,"duplication of a tag property"),w=r.input.charCodeAt(++r.position),w===60?(x=!0,w=r.input.charCodeAt(++r.position)):w===33?(V=!0,P="!!",w=r.input.charCodeAt(++r.position)):P="!",$=r.position,x){do w=r.input.charCodeAt(++r.position);while(w!==0&&w!==62);r.position<r.length?(u=r.input.slice($,r.position),w=r.input.charCodeAt(++r.position)):ee(r,"unexpected end of the stream within a verbatim tag")}else{for(;w!==0&&!q(w);)w===33&&(V?ee(r,"tag suffix cannot contain exclamation marks"):(P=r.input.slice($-1,r.position+1),re.test(P)||ee(r,"named tag handle cannot contain such characters"),V=!0,$=r.position+1)),w=r.input.charCodeAt(++r.position);u=r.input.slice($,r.position),M.test(u)&&ee(r,"tag suffix cannot contain flow indicator characters")}return u&&!ae.test(u)&&ee(r,"tag name cannot contain such characters: "+u),x?r.tag=u:e.call(r.tagMap,P)?r.tag=r.tagMap[P]+u:P==="!"?r.tag="!"+u:P==="!!"?r.tag="tag:yaml.org,2002:"+u:ee(r,'undeclared tag handle "'+P+'"'),!0}function ut(r){var $,x;if(x=r.input.charCodeAt(r.position),x!==38)return!1;for(r.anchor!==null&&ee(r,"duplication of an anchor property"),x=r.input.charCodeAt(++r.position),$=r.position;x!==0&&!q(x)&&!ue(x);)x=r.input.charCodeAt(++r.position);return r.position===$&&ee(r,"name of an anchor node must contain at least one character"),r.anchor=r.input.slice($,r.position),!0}function wt(r){var $,x,V;if(V=r.input.charCodeAt(r.position),V!==42)return!1;for(V=r.input.charCodeAt(++r.position),$=r.position;V!==0&&!q(V)&&!ue(V);)V=r.input.charCodeAt(++r.position);return r.position===$&&ee(r,"name of an alias node must contain at least one character"),x=r.input.slice($,r.position),e.call(r.anchorMap,x)||ee(r,'unidentified alias "'+x+'"'),r.result=r.anchorMap[x],U(r,!0,-1),!0}function He(r,$,x,V,P){var u,w,j,T=1,N=!1,H=!1,R,z,K,ne,de;if(r.listener!==null&&r.listener("open",r),r.tag=null,r.anchor=null,r.kind=null,r.result=null,u=w=j=S===x||m===x,V&&U(r,!0,-1)&&(N=!0,r.lineIndent>$?T=1:r.lineIndent===$?T=0:r.lineIndent<$&&(T=-1)),T===1)for(;st(r)||ut(r);)U(r,!0,-1)?(N=!0,j=u,r.lineIndent>$?T=1:r.lineIndent===$?T=0:r.lineIndent<$&&(T=-1)):j=!1;if(j&&(j=N||P),(T===1||S===x)&&(g===x||C===x?ne=$:ne=$+1,de=r.position-r.lineStart,T===1?j&&(rt(r,de)||Ct(r,de,ne))||Ye(r,ne)?H=!0:(w&&tt(r,ne)||ze(r,ne)||Pe(r,ne)?H=!0:wt(r)?(H=!0,(r.tag!==null||r.anchor!==null)&&ee(r,"alias node should not have any properties")):Ge(r,ne,g===x)&&(H=!0,r.tag===null&&(r.tag="?")),r.anchor!==null&&(r.anchorMap[r.anchor]=r.result)):T===0&&(H=j&&rt(r,de))),r.tag!==null&&r.tag!=="!")if(r.tag==="?"){for(r.result!==null&&r.kind!=="scalar"&&ee(r,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+r.kind+'"'),R=0,z=r.implicitTypes.length;R<z;R+=1)if(K=r.implicitTypes[R],K.resolve(r.result)){r.result=K.construct(r.result),r.tag=K.tag,r.anchor!==null&&(r.anchorMap[r.anchor]=r.result);break}}else e.call(r.typeMap[r.kind||"fallback"],r.tag)?(K=r.typeMap[r.kind||"fallback"][r.tag],r.result!==null&&K.kind!==r.kind&&ee(r,"unacceptable node kind for !<"+r.tag+'> tag; it should be "'+K.kind+'", not "'+r.kind+'"'),K.resolve(r.result)?(r.result=K.construct(r.result),r.anchor!==null&&(r.anchorMap[r.anchor]=r.result)):ee(r,"cannot resolve a node with !<"+r.tag+"> explicit tag")):ee(r,"unknown tag !<"+r.tag+">");return r.listener!==null&&r.listener("close",r),r.tag!==null||r.anchor!==null||H}function ht(r){var $=r.position,x,V,P,u=!1,w;for(r.version=null,r.checkLineBreaks=r.legacy,r.tagMap={},r.anchorMap={};(w=r.input.charCodeAt(r.position))!==0&&(U(r,!0,-1),w=r.input.charCodeAt(r.position),!(r.lineIndent>0||w!==37));){for(u=!0,w=r.input.charCodeAt(++r.position),x=r.position;w!==0&&!q(w);)w=r.input.charCodeAt(++r.position);for(V=r.input.slice(x,r.position),P=[],V.length<1&&ee(r,"directive name must not be less than one character in length");w!==0;){for(;te(w);)w=r.input.charCodeAt(++r.position);if(w===35){do w=r.input.charCodeAt(++r.position);while(w!==0&&!Z(w));break}if(Z(w))break;for(x=r.position;w!==0&&!q(w);)w=r.input.charCodeAt(++r.position);P.push(r.input.slice(x,r.position))}w!==0&&W(r),e.call(De,V)?De[V](r,V,P):Ne(r,'unknown document directive "'+V+'"')}if(U(r,!0,-1),r.lineIndent===0&&r.input.charCodeAt(r.position)===45&&r.input.charCodeAt(r.position+1)===45&&r.input.charCodeAt(r.position+2)===45?(r.position+=3,U(r,!0,-1)):u&&ee(r,"directives end mark is expected"),He(r,r.lineIndent-1,S,!1,!0),U(r,!0,-1),r.checkLineBreaks&&v.test(r.input.slice($,r.position))&&Ne(r,"non-ASCII line breaks are interpreted as content"),r.documents.push(r.result),r.position===r.lineStart&&ie(r)){r.input.charCodeAt(r.position)===46&&(r.position+=3,U(r,!0,-1));return}if(r.position<r.length-1)ee(r,"end of the stream or a document separator is expected");else return}function Xe(r,$){r=String(r),$=$||{},r.length!==0&&(r.charCodeAt(r.length-1)!==10&&r.charCodeAt(r.length-1)!==13&&(r+=`
22
- `),r.charCodeAt(0)===65279&&(r=r.slice(1)));var x=new Ze(r,$),V=r.indexOf("\0");for(V!==-1&&(x.position=V,ee(x,"null byte is not allowed in input")),x.input+="\0";x.input.charCodeAt(x.position)===32;)x.lineIndent+=1,x.position+=1;for(;x.position<x.length-1;)ht(x);return x.documents}function Je(r,$,x){$!==null&&typeof $=="object"&&typeof x>"u"&&(x=$,$=null);var V=Xe(r,x);if(typeof $!="function")return V;for(var P=0,u=V.length;P<u;P+=1)$(V[P])}function dt(r,$){var x=Xe(r,$);if(x.length!==0){if(x.length===1)return x[0];throw new d("expected a single document in the stream, but found more")}}function St(r,$,x){return typeof $=="object"&&$!==null&&typeof x>"u"&&(x=$,$=null),Je(r,$,l.extend({schema:o},x))}function gt(r,$){return dt(r,l.extend({schema:o},$))}return Pt.loadAll=Je,Pt.load=dt,Pt.safeLoadAll=St,Pt.safeLoad=gt,Pt}var Cr={},Wi;function Ua(){if(Wi)return Cr;Wi=1;var l=Yt(),d=rr(),A=Sr(),o=tr(),h=Object.prototype.toString,e=Object.prototype.hasOwnProperty,g=9,C=10,m=13,S=32,E=33,Y=34,y=35,b=37,v=38,M=39,re=42,ae=44,O=45,Z=58,te=61,q=62,ue=63,Ce=64,ge=91,Ae=93,Ee=96,je=123,Fe=124,Ue=125,ye={};ye[0]="\\0",ye[7]="\\a",ye[8]="\\b",ye[9]="\\t",ye[10]="\\n",ye[11]="\\v",ye[12]="\\f",ye[13]="\\r",ye[27]="\\e",ye[34]='\\"',ye[92]="\\\\",ye[133]="\\N",ye[160]="\\_",ye[8232]="\\L",ye[8233]="\\P";var Me=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Ze(u,w){var j,T,N,H,R,z,K;if(w===null)return{};for(j={},T=Object.keys(w),N=0,H=T.length;N<H;N+=1)R=T[N],z=String(w[R]),R.slice(0,2)==="!!"&&(R="tag:yaml.org,2002:"+R.slice(2)),K=u.compiledTypeMap.fallback[R],K&&e.call(K.styleAliases,z)&&(z=K.styleAliases[z]),j[R]=z;return j}function $e(u){var w,j,T;if(w=u.toString(16).toUpperCase(),u<=255)j="x",T=2;else if(u<=65535)j="u",T=4;else if(u<=4294967295)j="U",T=8;else throw new d("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+j+l.repeat("0",T-w.length)+w}function ee(u){this.schema=u.schema||A,this.indent=Math.max(1,u.indent||2),this.noArrayIndent=u.noArrayIndent||!1,this.skipInvalid=u.skipInvalid||!1,this.flowLevel=l.isNothing(u.flowLevel)?-1:u.flowLevel,this.styleMap=Ze(this.schema,u.styles||null),this.sortKeys=u.sortKeys||!1,this.lineWidth=u.lineWidth||80,this.noRefs=u.noRefs||!1,this.noCompatMode=u.noCompatMode||!1,this.condenseFlow=u.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ne(u,w){for(var j=l.repeat(" ",w),T=0,N=-1,H="",R,z=u.length;T<z;)N=u.indexOf(`
23
- `,T),N===-1?(R=u.slice(T),T=z):(R=u.slice(T,N+1),T=N+1),R.length&&R!==`
24
- `&&(H+=j),H+=R;return H}function De(u,w){return`
25
- `+l.repeat(" ",u.indent*w)}function Te(u,w){var j,T,N;for(j=0,T=u.implicitTypes.length;j<T;j+=1)if(N=u.implicitTypes[j],N.resolve(w))return!0;return!1}function qe(u){return u===S||u===g}function we(u){return 32<=u&&u<=126||161<=u&&u<=55295&&u!==8232&&u!==8233||57344<=u&&u<=65533&&u!==65279||65536<=u&&u<=1114111}function W(u){return we(u)&&!qe(u)&&u!==65279&&u!==m&&u!==C}function U(u,w){return we(u)&&u!==65279&&u!==ae&&u!==ge&&u!==Ae&&u!==je&&u!==Ue&&u!==Z&&(u!==y||w&&W(w))}function ie(u){return we(u)&&u!==65279&&!qe(u)&&u!==O&&u!==ue&&u!==Z&&u!==ae&&u!==ge&&u!==Ae&&u!==je&&u!==Ue&&u!==y&&u!==v&&u!==re&&u!==E&&u!==Fe&&u!==te&&u!==q&&u!==M&&u!==Y&&u!==b&&u!==Ce&&u!==Ee}function ve(u){var w=/^\n* /;return w.test(u)}var Ge=1,ze=2,Pe=3,Ye=4,tt=5;function rt(u,w,j,T,N){var H,R,z,K=!1,ne=!1,de=T!==-1,le=-1,_e=ie(u.charCodeAt(0))&&!qe(u.charCodeAt(u.length-1));if(w)for(H=0;H<u.length;H++){if(R=u.charCodeAt(H),!we(R))return tt;z=H>0?u.charCodeAt(H-1):null,_e=_e&&U(R,z)}else{for(H=0;H<u.length;H++){if(R=u.charCodeAt(H),R===C)K=!0,de&&(ne=ne||H-le-1>T&&u[le+1]!==" ",le=H);else if(!we(R))return tt;z=H>0?u.charCodeAt(H-1):null,_e=_e&&U(R,z)}ne=ne||de&&H-le-1>T&&u[le+1]!==" "}return!K&&!ne?_e&&!N(u)?Ge:ze:j>9&&ve(u)?tt:ne?Ye:Pe}function Ct(u,w,j,T){u.dump=(function(){if(w.length===0)return"''";if(!u.noCompatMode&&Me.indexOf(w)!==-1)return"'"+w+"'";var N=u.indent*Math.max(1,j),H=u.lineWidth===-1?-1:Math.max(Math.min(u.lineWidth,40),u.lineWidth-N),R=T||u.flowLevel>-1&&j>=u.flowLevel;function z(K){return Te(u,K)}switch(rt(w,R,u.indent,H,z)){case Ge:return w;case ze:return"'"+w.replace(/'/g,"''")+"'";case Pe:return"|"+st(w,u.indent)+ut(Ne(w,N));case Ye:return">"+st(w,u.indent)+ut(Ne(wt(w,H),N));case tt:return'"'+ht(w)+'"';default:throw new d("impossible error: invalid scalar style")}})()}function st(u,w){var j=ve(u)?String(w):"",T=u[u.length-1]===`
26
- `,N=T&&(u[u.length-2]===`
12
+ `+o)),h},Qr=d,Qr}var en,Ci;function Le(){if(Ci)return en;Ci=1;var l=rr(),d=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],A=["scalar","sequence","mapping"];function o(e){var g={};return e!==null&&Object.keys(e).forEach(function(C){e[C].forEach(function(m){g[String(m)]=C})}),g}function h(e,g){if(g=g||{},Object.keys(g).forEach(function(C){if(d.indexOf(C)===-1)throw new l('Unknown option "'+C+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=g.kind||null,this.resolve=g.resolve||function(){return!0},this.construct=g.construct||function(C){return C},this.instanceOf=g.instanceOf||null,this.predicate=g.predicate||null,this.represent=g.represent||null,this.defaultStyle=g.defaultStyle||null,this.styleAliases=o(g.styleAliases||null),A.indexOf(this.kind)===-1)throw new l('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}return en=h,en}var tn,wi;function Ut(){if(wi)return tn;wi=1;var l=Yt(),d=rr(),A=Le();function o(g,C,m){var S=[];return g.include.forEach(function(E){m=o(E,C,m)}),g[C].forEach(function(E){m.forEach(function(Y,y){Y.tag===E.tag&&Y.kind===E.kind&&S.push(y)}),m.push(E)}),m.filter(function(E,Y){return S.indexOf(Y)===-1})}function h(){var g={scalar:{},sequence:{},mapping:{},fallback:{}},C,m;function S(E){g[E.kind][E.tag]=g.fallback[E.tag]=E}for(C=0,m=arguments.length;C<m;C+=1)arguments[C].forEach(S);return g}function e(g){this.include=g.include||[],this.implicit=g.implicit||[],this.explicit=g.explicit||[],this.implicit.forEach(function(C){if(C.loadKind&&C.loadKind!=="scalar")throw new d("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=h(this.compiledImplicit,this.compiledExplicit)}return e.DEFAULT=null,e.create=function(){var g,C;switch(arguments.length){case 1:g=e.DEFAULT,C=arguments[0];break;case 2:g=arguments[0],C=arguments[1];break;default:throw new d("Wrong number of arguments for Schema.create function")}if(g=l.toArray(g),C=l.toArray(C),!g.every(function(m){return m instanceof e}))throw new d("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!C.every(function(m){return m instanceof A}))throw new d("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:g,explicit:C})},tn=e,tn}var rn,Si;function _a(){if(Si)return rn;Si=1;var l=Le();return rn=new l("tag:yaml.org,2002:str",{kind:"scalar",construct:function(d){return d!==null?d:""}}),rn}var nn,ki;function xa(){if(ki)return nn;ki=1;var l=Le();return nn=new l("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(d){return d!==null?d:[]}}),nn}var on,Ei;function $a(){if(Ei)return on;Ei=1;var l=Le();return on=new l("tag:yaml.org,2002:map",{kind:"mapping",construct:function(d){return d!==null?d:{}}}),on}var an,_i;function xn(){if(_i)return an;_i=1;var l=Ut();return an=new l({explicit:[_a(),xa(),$a()]}),an}var sn,xi;function ja(){if(xi)return sn;xi=1;var l=Le();function d(h){if(h===null)return!0;var e=h.length;return e===1&&h==="~"||e===4&&(h==="null"||h==="Null"||h==="NULL")}function A(){return null}function o(h){return h===null}return sn=new l("tag:yaml.org,2002:null",{kind:"scalar",resolve:d,construct:A,predicate:o,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),sn}var un,$i;function Oa(){if($i)return un;$i=1;var l=Le();function d(h){if(h===null)return!1;var e=h.length;return e===4&&(h==="true"||h==="True"||h==="TRUE")||e===5&&(h==="false"||h==="False"||h==="FALSE")}function A(h){return h==="true"||h==="True"||h==="TRUE"}function o(h){return Object.prototype.toString.call(h)==="[object Boolean]"}return un=new l("tag:yaml.org,2002:bool",{kind:"scalar",resolve:d,construct:A,predicate:o,represent:{lowercase:function(h){return h?"true":"false"},uppercase:function(h){return h?"TRUE":"FALSE"},camelcase:function(h){return h?"True":"False"}},defaultStyle:"lowercase"}),un}var cn,ji;function Ra(){if(ji)return cn;ji=1;var l=Yt(),d=Le();function A(m){return 48<=m&&m<=57||65<=m&&m<=70||97<=m&&m<=102}function o(m){return 48<=m&&m<=55}function h(m){return 48<=m&&m<=57}function e(m){if(m===null)return!1;var S=m.length,E=0,Y=!1,y;if(!S)return!1;if(y=m[E],(y==="-"||y==="+")&&(y=m[++E]),y==="0"){if(E+1===S)return!0;if(y=m[++E],y==="b"){for(E++;E<S;E++)if(y=m[E],y!=="_"){if(y!=="0"&&y!=="1")return!1;Y=!0}return Y&&y!=="_"}if(y==="x"){for(E++;E<S;E++)if(y=m[E],y!=="_"){if(!A(m.charCodeAt(E)))return!1;Y=!0}return Y&&y!=="_"}for(;E<S;E++)if(y=m[E],y!=="_"){if(!o(m.charCodeAt(E)))return!1;Y=!0}return Y&&y!=="_"}if(y==="_")return!1;for(;E<S;E++)if(y=m[E],y!=="_"){if(y===":")break;if(!h(m.charCodeAt(E)))return!1;Y=!0}return!Y||y==="_"?!1:y!==":"?!0:/^(:[0-5]?[0-9])+$/.test(m.slice(E))}function g(m){var S=m,E=1,Y,y,b=[];return S.indexOf("_")!==-1&&(S=S.replace(/_/g,"")),Y=S[0],(Y==="-"||Y==="+")&&(Y==="-"&&(E=-1),S=S.slice(1),Y=S[0]),S==="0"?0:Y==="0"?S[1]==="b"?E*parseInt(S.slice(2),2):S[1]==="x"?E*parseInt(S,16):E*parseInt(S,8):S.indexOf(":")!==-1?(S.split(":").forEach(function(v){b.unshift(parseInt(v,10))}),S=0,y=1,b.forEach(function(v){S+=v*y,y*=60}),E*S):E*parseInt(S,10)}function C(m){return Object.prototype.toString.call(m)==="[object Number]"&&m%1===0&&!l.isNegativeZero(m)}return cn=new d("tag:yaml.org,2002:int",{kind:"scalar",resolve:e,construct:g,predicate:C,represent:{binary:function(m){return m>=0?"0b"+m.toString(2):"-0b"+m.toString(2).slice(1)},octal:function(m){return m>=0?"0"+m.toString(8):"-0"+m.toString(8).slice(1)},decimal:function(m){return m.toString(10)},hexadecimal:function(m){return m>=0?"0x"+m.toString(16).toUpperCase():"-0x"+m.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),cn}var ln,Oi;function Ta(){if(Oi)return ln;Oi=1;var l=Yt(),d=Le(),A=new 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(m){return!(m===null||!A.test(m)||m[m.length-1]==="_")}function h(m){var S,E,Y,y;return S=m.replace(/_/g,"").toLowerCase(),E=S[0]==="-"?-1:1,y=[],"+-".indexOf(S[0])>=0&&(S=S.slice(1)),S===".inf"?E===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:S===".nan"?NaN:S.indexOf(":")>=0?(S.split(":").forEach(function(b){y.unshift(parseFloat(b,10))}),S=0,Y=1,y.forEach(function(b){S+=b*Y,Y*=60}),E*S):E*parseFloat(S,10)}var e=/^[-+]?[0-9]+e/;function g(m,S){var E;if(isNaN(m))switch(S){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===m)switch(S){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===m)switch(S){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(l.isNegativeZero(m))return"-0.0";return E=m.toString(10),e.test(E)?E.replace("e",".e"):E}function C(m){return Object.prototype.toString.call(m)==="[object Number]"&&(m%1!==0||l.isNegativeZero(m))}return ln=new d("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:h,predicate:C,represent:g,defaultStyle:"lowercase"}),ln}var fn,Ri;function oo(){if(Ri)return fn;Ri=1;var l=Ut();return fn=new l({include:[xn()],implicit:[ja(),Oa(),Ra(),Ta()]}),fn}var pn,Ti;function ao(){if(Ti)return pn;Ti=1;var l=Ut();return pn=new l({include:[oo()]}),pn}var hn,Li;function La(){if(Li)return hn;Li=1;var l=Le(),d=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),A=new 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(g){return g===null?!1:d.exec(g)!==null||A.exec(g)!==null}function h(g){var C,m,S,E,Y,y,b,v=0,M=null,re,ae,O;if(C=d.exec(g),C===null&&(C=A.exec(g)),C===null)throw new Error("Date resolve error");if(m=+C[1],S=+C[2]-1,E=+C[3],!C[4])return new Date(Date.UTC(m,S,E));if(Y=+C[4],y=+C[5],b=+C[6],C[7]){for(v=C[7].slice(0,3);v.length<3;)v+="0";v=+v}return C[9]&&(re=+C[10],ae=+(C[11]||0),M=(re*60+ae)*6e4,C[9]==="-"&&(M=-M)),O=new Date(Date.UTC(m,S,E,Y,y,b,v)),M&&O.setTime(O.getTime()-M),O}function e(g){return g.toISOString()}return hn=new l("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:o,construct:h,instanceOf:Date,represent:e}),hn}var dn,Fi;function Fa(){if(Fi)return dn;Fi=1;var l=Le();function d(A){return A==="<<"||A===null}return dn=new l("tag:yaml.org,2002:merge",{kind:"scalar",resolve:d}),dn}function so(l){throw new Error('Could not dynamically require "'+l+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var gn,Ii;function Ia(){if(Ii)return gn;Ii=1;var l;try{var d=so;l=d("buffer").Buffer}catch{}var A=Le(),o=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
13
+ \r`;function h(m){if(m===null)return!1;var S,E,Y=0,y=m.length,b=o;for(E=0;E<y;E++)if(S=b.indexOf(m.charAt(E)),!(S>64)){if(S<0)return!1;Y+=6}return Y%8===0}function e(m){var S,E,Y=m.replace(/[\r\n=]/g,""),y=Y.length,b=o,v=0,M=[];for(S=0;S<y;S++)S%4===0&&S&&(M.push(v>>16&255),M.push(v>>8&255),M.push(v&255)),v=v<<6|b.indexOf(Y.charAt(S));return E=y%4*6,E===0?(M.push(v>>16&255),M.push(v>>8&255),M.push(v&255)):E===18?(M.push(v>>10&255),M.push(v>>2&255)):E===12&&M.push(v>>4&255),l?l.from?l.from(M):new l(M):M}function g(m){var S="",E=0,Y,y,b=m.length,v=o;for(Y=0;Y<b;Y++)Y%3===0&&Y&&(S+=v[E>>18&63],S+=v[E>>12&63],S+=v[E>>6&63],S+=v[E&63]),E=(E<<8)+m[Y];return y=b%3,y===0?(S+=v[E>>18&63],S+=v[E>>12&63],S+=v[E>>6&63],S+=v[E&63]):y===2?(S+=v[E>>10&63],S+=v[E>>4&63],S+=v[E<<2&63],S+=v[64]):y===1&&(S+=v[E>>2&63],S+=v[E<<4&63],S+=v[64],S+=v[64]),S}function C(m){return l&&l.isBuffer(m)}return gn=new A("tag:yaml.org,2002:binary",{kind:"scalar",resolve:h,construct:e,predicate:C,represent:g}),gn}var mn,Ni;function Na(){if(Ni)return mn;Ni=1;var l=Le(),d=Object.prototype.hasOwnProperty,A=Object.prototype.toString;function o(e){if(e===null)return!0;var g=[],C,m,S,E,Y,y=e;for(C=0,m=y.length;C<m;C+=1){if(S=y[C],Y=!1,A.call(S)!=="[object Object]")return!1;for(E in S)if(d.call(S,E))if(!Y)Y=!0;else return!1;if(!Y)return!1;if(g.indexOf(E)===-1)g.push(E);else return!1}return!0}function h(e){return e!==null?e:[]}return mn=new l("tag:yaml.org,2002:omap",{kind:"sequence",resolve:o,construct:h}),mn}var yn,Mi;function Ma(){if(Mi)return yn;Mi=1;var l=Le(),d=Object.prototype.toString;function A(h){if(h===null)return!0;var e,g,C,m,S,E=h;for(S=new Array(E.length),e=0,g=E.length;e<g;e+=1){if(C=E[e],d.call(C)!=="[object Object]"||(m=Object.keys(C),m.length!==1))return!1;S[e]=[m[0],C[m[0]]]}return!0}function o(h){if(h===null)return[];var e,g,C,m,S,E=h;for(S=new Array(E.length),e=0,g=E.length;e<g;e+=1)C=E[e],m=Object.keys(C),S[e]=[m[0],C[m[0]]];return S}return yn=new l("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:A,construct:o}),yn}var vn,qi;function qa(){if(qi)return vn;qi=1;var l=Le(),d=Object.prototype.hasOwnProperty;function A(h){if(h===null)return!0;var e,g=h;for(e in g)if(d.call(g,e)&&g[e]!==null)return!1;return!0}function o(h){return h!==null?h:{}}return vn=new l("tag:yaml.org,2002:set",{kind:"mapping",resolve:A,construct:o}),vn}var An,Pi;function tr(){if(Pi)return An;Pi=1;var l=Ut();return An=new l({include:[ao()],implicit:[La(),Fa()],explicit:[Ia(),Na(),Ma(),qa()]}),An}var bn,Di;function Pa(){if(Di)return bn;Di=1;var l=Le();function d(){return!0}function A(){}function o(){return""}function h(e){return typeof e>"u"}return bn=new l("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:d,construct:A,predicate:h,represent:o}),bn}var Cn,Yi;function Da(){if(Yi)return Cn;Yi=1;var l=Le();function d(e){if(e===null||e.length===0)return!1;var g=e,C=/\/([gim]*)$/.exec(e),m="";return!(g[0]==="/"&&(C&&(m=C[1]),m.length>3||g[g.length-m.length-1]!=="/"))}function A(e){var g=e,C=/\/([gim]*)$/.exec(e),m="";return g[0]==="/"&&(C&&(m=C[1]),g=g.slice(1,g.length-m.length-1)),new RegExp(g,m)}function o(e){var g="/"+e.source+"/";return e.global&&(g+="g"),e.multiline&&(g+="m"),e.ignoreCase&&(g+="i"),g}function h(e){return Object.prototype.toString.call(e)==="[object RegExp]"}return Cn=new l("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:d,construct:A,predicate:h,represent:o}),Cn}var wn,Ui;function Ya(){if(Ui)return wn;Ui=1;var l;try{var d=so;l=d("esprima")}catch{typeof window<"u"&&(l=window.esprima)}var A=Le();function o(C){if(C===null)return!1;try{var m="("+C+")",S=l.parse(m,{range:!0});return!(S.type!=="Program"||S.body.length!==1||S.body[0].type!=="ExpressionStatement"||S.body[0].expression.type!=="ArrowFunctionExpression"&&S.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function h(C){var m="("+C+")",S=l.parse(m,{range:!0}),E=[],Y;if(S.type!=="Program"||S.body.length!==1||S.body[0].type!=="ExpressionStatement"||S.body[0].expression.type!=="ArrowFunctionExpression"&&S.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return S.body[0].expression.params.forEach(function(y){E.push(y.name)}),Y=S.body[0].expression.body.range,S.body[0].expression.body.type==="BlockStatement"?new Function(E,m.slice(Y[0]+1,Y[1]-1)):new Function(E,"return "+m.slice(Y[0],Y[1]))}function e(C){return C.toString()}function g(C){return Object.prototype.toString.call(C)==="[object Function]"}return wn=new A("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:o,construct:h,predicate:g,represent:e}),wn}var Sn,Hi;function Sr(){if(Hi)return Sn;Hi=1;var l=Ut();return Sn=l.DEFAULT=new l({include:[tr()],explicit:[Pa(),Da(),Ya()]}),Sn}var Bi;function Ua(){if(Bi)return Pt;Bi=1;var l=Yt(),d=rr(),A=Ea(),o=tr(),h=Sr(),e=Object.prototype.hasOwnProperty,g=1,C=2,m=3,S=4,E=1,Y=2,y=3,b=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,v=/[\x85\u2028\u2029]/,M=/[,\[\]\{\}]/,re=/^(?:!|!!|![a-z\-]+!)$/i,ae=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function O(r){return Object.prototype.toString.call(r)}function Z(r){return r===10||r===13}function te(r){return r===9||r===32}function q(r){return r===9||r===32||r===10||r===13}function ue(r){return r===44||r===91||r===93||r===123||r===125}function Ce(r){var x;return 48<=r&&r<=57?r-48:(x=r|32,97<=x&&x<=102?x-97+10:-1)}function ge(r){return r===120?2:r===117?4:r===85?8:0}function Ae(r){return 48<=r&&r<=57?r-48:-1}function Ee(r){return r===48?"\0":r===97?"\x07":r===98?"\b":r===116||r===9?" ":r===110?`
14
+ `:r===118?"\v":r===102?"\f":r===114?"\r":r===101?"\x1B":r===32?" ":r===34?'"':r===47?"/":r===92?"\\":r===78?"…":r===95?" ":r===76?"\u2028":r===80?"\u2029":""}function je(r){return r<=65535?String.fromCharCode(r):String.fromCharCode((r-65536>>10)+55296,(r-65536&1023)+56320)}function Fe(r,x,$){x==="__proto__"?Object.defineProperty(r,x,{configurable:!0,enumerable:!0,writable:!0,value:$}):r[x]=$}for(var Ue=new Array(256),ye=new Array(256),Me=0;Me<256;Me++)Ue[Me]=Ee(Me)?1:0,ye[Me]=Ee(Me);function Ze(r,x){this.input=r,this.filename=x.filename||null,this.schema=x.schema||h,this.onWarning=x.onWarning||null,this.legacy=x.legacy||!1,this.json=x.json||!1,this.listener=x.listener||null,this.maxTotalMergeKeys=typeof x.maxTotalMergeKeys=="number"?x.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=r.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.totalMergeKeys=0,this.documents=[]}function xe(r,x){return new d(x,new A(r.filename,r.input,r.position,r.line,r.position-r.lineStart))}function ee(r,x){throw xe(r,x)}function Ne(r,x){r.onWarning&&r.onWarning.call(null,xe(r,x))}var De={YAML:function(r,x,$){var V,P,u;r.version!==null&&ee(r,"duplication of %YAML directive"),$.length!==1&&ee(r,"YAML directive accepts exactly one argument"),V=/^([0-9]+)\.([0-9]+)$/.exec($[0]),V===null&&ee(r,"ill-formed argument of the YAML directive"),P=parseInt(V[1],10),u=parseInt(V[2],10),P!==1&&ee(r,"unacceptable YAML version of the document"),r.version=$[0],r.checkLineBreaks=u<2,u!==1&&u!==2&&Ne(r,"unsupported YAML version of the document")},TAG:function(r,x,$){var V,P;$.length!==2&&ee(r,"TAG directive accepts exactly two arguments"),V=$[0],P=$[1],re.test(V)||ee(r,"ill-formed tag handle (first argument) of the TAG directive"),e.call(r.tagMap,V)&&ee(r,'there is a previously declared suffix for "'+V+'" tag handle'),ae.test(P)||ee(r,"ill-formed tag prefix (second argument) of the TAG directive"),r.tagMap[V]=P}};function Re(r,x,$,V){var P,u,w,j;if(x<$){if(j=r.input.slice(x,$),V)for(P=0,u=j.length;P<u;P+=1)w=j.charCodeAt(P),w===9||32<=w&&w<=1114111||ee(r,"expected valid JSON character");else b.test(j)&&ee(r,"the stream contains non-printable characters");r.result+=j}}function qe(r,x,$,V){var P,u,w,j;for(l.isObject($)||ee(r,"cannot merge mappings; the provided source object is unacceptable"),P=Object.keys($),w=0,j=P.length;w<j;w+=1)u=P[w],r.maxTotalMergeKeys!==-1&&++r.totalMergeKeys>r.maxTotalMergeKeys&&ee(r,"merge keys exceeded maxTotalMergeKeys ("+r.maxTotalMergeKeys+")"),e.call(x,u)||(Fe(x,u,$[u]),V[u]=!0)}function we(r,x,$,V,P,u,w,j){var R,N;if(Array.isArray(P))for(P=Array.prototype.slice.call(P),R=0,N=P.length;R<N;R+=1)Array.isArray(P[R])&&ee(r,"nested arrays are not supported inside keys"),typeof P=="object"&&O(P[R])==="[object Object]"&&(P[R]="[object Object]");if(typeof P=="object"&&O(P)==="[object Object]"&&(P="[object Object]"),P=String(P),x===null&&(x={}),V==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(R=0,N=u.length;R<N;R+=1)qe(r,x,u[R],$);else qe(r,x,u,$);else!r.json&&!e.call($,P)&&e.call(x,P)&&(r.line=w||r.line,r.position=j||r.position,ee(r,"duplicated mapping key")),Fe(x,P,u),delete $[P];return x}function W(r){var x;x=r.input.charCodeAt(r.position),x===10?r.position++:x===13?(r.position++,r.input.charCodeAt(r.position)===10&&r.position++):ee(r,"a line break is expected"),r.line+=1,r.lineStart=r.position}function U(r,x,$){for(var V=0,P=r.input.charCodeAt(r.position);P!==0;){for(;te(P);)P=r.input.charCodeAt(++r.position);if(x&&P===35)do P=r.input.charCodeAt(++r.position);while(P!==10&&P!==13&&P!==0);if(Z(P))for(W(r),P=r.input.charCodeAt(r.position),V++,r.lineIndent=0;P===32;)r.lineIndent++,P=r.input.charCodeAt(++r.position);else break}return $!==-1&&V!==0&&r.lineIndent<$&&Ne(r,"deficient indentation"),V}function ie(r){var x=r.position,$;return $=r.input.charCodeAt(x),!!(($===45||$===46)&&$===r.input.charCodeAt(x+1)&&$===r.input.charCodeAt(x+2)&&(x+=3,$=r.input.charCodeAt(x),$===0||q($)))}function ve(r,x){x===1?r.result+=" ":x>1&&(r.result+=l.repeat(`
15
+ `,x-1))}function Ge(r,x,$){var V,P,u,w,j,R,N,H,T=r.kind,z=r.result,K;if(K=r.input.charCodeAt(r.position),q(K)||ue(K)||K===35||K===38||K===42||K===33||K===124||K===62||K===39||K===34||K===37||K===64||K===96||(K===63||K===45)&&(P=r.input.charCodeAt(r.position+1),q(P)||$&&ue(P)))return!1;for(r.kind="scalar",r.result="",u=w=r.position,j=!1;K!==0;){if(K===58){if(P=r.input.charCodeAt(r.position+1),q(P)||$&&ue(P))break}else if(K===35){if(V=r.input.charCodeAt(r.position-1),q(V))break}else{if(r.position===r.lineStart&&ie(r)||$&&ue(K))break;if(Z(K))if(R=r.line,N=r.lineStart,H=r.lineIndent,U(r,!1,-1),r.lineIndent>=x){j=!0,K=r.input.charCodeAt(r.position);continue}else{r.position=w,r.line=R,r.lineStart=N,r.lineIndent=H;break}}j&&(Re(r,u,w,!1),ve(r,r.line-R),u=w=r.position,j=!1),te(K)||(w=r.position+1),K=r.input.charCodeAt(++r.position)}return Re(r,u,w,!1),r.result?!0:(r.kind=T,r.result=z,!1)}function ze(r,x){var $,V,P;if($=r.input.charCodeAt(r.position),$!==39)return!1;for(r.kind="scalar",r.result="",r.position++,V=P=r.position;($=r.input.charCodeAt(r.position))!==0;)if($===39)if(Re(r,V,r.position,!0),$=r.input.charCodeAt(++r.position),$===39)V=r.position,r.position++,P=r.position;else return!0;else Z($)?(Re(r,V,P,!0),ve(r,U(r,!1,x)),V=P=r.position):r.position===r.lineStart&&ie(r)?ee(r,"unexpected end of the document within a single quoted scalar"):(r.position++,P=r.position);ee(r,"unexpected end of the stream within a single quoted scalar")}function Pe(r,x){var $,V,P,u,w,j;if(j=r.input.charCodeAt(r.position),j!==34)return!1;for(r.kind="scalar",r.result="",r.position++,$=V=r.position;(j=r.input.charCodeAt(r.position))!==0;){if(j===34)return Re(r,$,r.position,!0),r.position++,!0;if(j===92){if(Re(r,$,r.position,!0),j=r.input.charCodeAt(++r.position),Z(j))U(r,!1,x);else if(j<256&&Ue[j])r.result+=ye[j],r.position++;else if((w=ge(j))>0){for(P=w,u=0;P>0;P--)j=r.input.charCodeAt(++r.position),(w=Ce(j))>=0?u=(u<<4)+w:ee(r,"expected hexadecimal character");r.result+=je(u),r.position++}else ee(r,"unknown escape sequence");$=V=r.position}else Z(j)?(Re(r,$,V,!0),ve(r,U(r,!1,x)),$=V=r.position):r.position===r.lineStart&&ie(r)?ee(r,"unexpected end of the document within a double quoted scalar"):(r.position++,V=r.position)}ee(r,"unexpected end of the stream within a double quoted scalar")}function Ye(r,x){var $=!0,V,P=r.tag,u,w=r.anchor,j,R,N,H,T,z={},K,ne,de,le;if(le=r.input.charCodeAt(r.position),le===91)R=93,T=!1,u=[];else if(le===123)R=125,T=!0,u={};else return!1;for(r.anchor!==null&&(r.anchorMap[r.anchor]=u),le=r.input.charCodeAt(++r.position);le!==0;){if(U(r,!0,x),le=r.input.charCodeAt(r.position),le===R)return r.position++,r.tag=P,r.anchor=w,r.kind=T?"mapping":"sequence",r.result=u,!0;$||ee(r,"missed comma between flow collection entries"),ne=K=de=null,N=H=!1,le===63&&(j=r.input.charCodeAt(r.position+1),q(j)&&(N=H=!0,r.position++,U(r,!0,x))),V=r.line,He(r,x,g,!1,!0),ne=r.tag,K=r.result,U(r,!0,x),le=r.input.charCodeAt(r.position),(H||r.line===V)&&le===58&&(N=!0,le=r.input.charCodeAt(++r.position),U(r,!0,x),He(r,x,g,!1,!0),de=r.result),T?we(r,u,z,ne,K,de):N?u.push(we(r,null,z,ne,K,de)):u.push(K),U(r,!0,x),le=r.input.charCodeAt(r.position),le===44?($=!0,le=r.input.charCodeAt(++r.position)):$=!1}ee(r,"unexpected end of the stream within a flow collection")}function tt(r,x){var $,V,P=E,u=!1,w=!1,j=x,R=0,N=!1,H,T;if(T=r.input.charCodeAt(r.position),T===124)V=!1;else if(T===62)V=!0;else return!1;for(r.kind="scalar",r.result="";T!==0;)if(T=r.input.charCodeAt(++r.position),T===43||T===45)E===P?P=T===43?y:Y:ee(r,"repeat of a chomping mode identifier");else if((H=Ae(T))>=0)H===0?ee(r,"bad explicit indentation width of a block scalar; it cannot be less than one"):w?ee(r,"repeat of an indentation width identifier"):(j=x+H-1,w=!0);else break;if(te(T)){do T=r.input.charCodeAt(++r.position);while(te(T));if(T===35)do T=r.input.charCodeAt(++r.position);while(!Z(T)&&T!==0)}for(;T!==0;){for(W(r),r.lineIndent=0,T=r.input.charCodeAt(r.position);(!w||r.lineIndent<j)&&T===32;)r.lineIndent++,T=r.input.charCodeAt(++r.position);if(!w&&r.lineIndent>j&&(j=r.lineIndent),Z(T)){R++;continue}if(r.lineIndent<j){P===y?r.result+=l.repeat(`
16
+ `,u?1+R:R):P===E&&u&&(r.result+=`
17
+ `);break}for(V?te(T)?(N=!0,r.result+=l.repeat(`
18
+ `,u?1+R:R)):N?(N=!1,r.result+=l.repeat(`
19
+ `,R+1)):R===0?u&&(r.result+=" "):r.result+=l.repeat(`
20
+ `,R):r.result+=l.repeat(`
21
+ `,u?1+R:R),u=!0,w=!0,R=0,$=r.position;!Z(T)&&T!==0;)T=r.input.charCodeAt(++r.position);Re(r,$,r.position,!1)}return!0}function rt(r,x){var $,V=r.tag,P=r.anchor,u=[],w,j=!1,R;for(r.anchor!==null&&(r.anchorMap[r.anchor]=u),R=r.input.charCodeAt(r.position);R!==0&&!(R!==45||(w=r.input.charCodeAt(r.position+1),!q(w)));){if(j=!0,r.position++,U(r,!0,-1)&&r.lineIndent<=x){u.push(null),R=r.input.charCodeAt(r.position);continue}if($=r.line,He(r,x,m,!1,!0),u.push(r.result),U(r,!0,-1),R=r.input.charCodeAt(r.position),(r.line===$||r.lineIndent>x)&&R!==0)ee(r,"bad indentation of a sequence entry");else if(r.lineIndent<x)break}return j?(r.tag=V,r.anchor=P,r.kind="sequence",r.result=u,!0):!1}function Ct(r,x,$){var V,P,u,w,j=r.tag,R=r.anchor,N={},H={},T=null,z=null,K=null,ne=!1,de=!1,le;for(r.anchor!==null&&(r.anchorMap[r.anchor]=N),le=r.input.charCodeAt(r.position);le!==0;){if(V=r.input.charCodeAt(r.position+1),u=r.line,w=r.position,(le===63||le===58)&&q(V))le===63?(ne&&(we(r,N,H,T,z,null),T=z=K=null),de=!0,ne=!0,P=!0):ne?(ne=!1,P=!0):ee(r,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),r.position+=1,le=V;else if(He(r,$,C,!1,!0))if(r.line===u){for(le=r.input.charCodeAt(r.position);te(le);)le=r.input.charCodeAt(++r.position);if(le===58)le=r.input.charCodeAt(++r.position),q(le)||ee(r,"a whitespace character is expected after the key-value separator within a block mapping"),ne&&(we(r,N,H,T,z,null),T=z=K=null),de=!0,ne=!1,P=!1,T=r.tag,z=r.result;else if(de)ee(r,"can not read an implicit mapping pair; a colon is missed");else return r.tag=j,r.anchor=R,!0}else if(de)ee(r,"can not read a block mapping entry; a multiline key may not be an implicit key");else return r.tag=j,r.anchor=R,!0;else break;if((r.line===u||r.lineIndent>x)&&(He(r,x,S,!0,P)&&(ne?z=r.result:K=r.result),ne||(we(r,N,H,T,z,K,u,w),T=z=K=null),U(r,!0,-1),le=r.input.charCodeAt(r.position)),r.lineIndent>x&&le!==0)ee(r,"bad indentation of a mapping entry");else if(r.lineIndent<x)break}return ne&&we(r,N,H,T,z,null),de&&(r.tag=j,r.anchor=R,r.kind="mapping",r.result=N),de}function st(r){var x,$=!1,V=!1,P,u,w;if(w=r.input.charCodeAt(r.position),w!==33)return!1;if(r.tag!==null&&ee(r,"duplication of a tag property"),w=r.input.charCodeAt(++r.position),w===60?($=!0,w=r.input.charCodeAt(++r.position)):w===33?(V=!0,P="!!",w=r.input.charCodeAt(++r.position)):P="!",x=r.position,$){do w=r.input.charCodeAt(++r.position);while(w!==0&&w!==62);r.position<r.length?(u=r.input.slice(x,r.position),w=r.input.charCodeAt(++r.position)):ee(r,"unexpected end of the stream within a verbatim tag")}else{for(;w!==0&&!q(w);)w===33&&(V?ee(r,"tag suffix cannot contain exclamation marks"):(P=r.input.slice(x-1,r.position+1),re.test(P)||ee(r,"named tag handle cannot contain such characters"),V=!0,x=r.position+1)),w=r.input.charCodeAt(++r.position);u=r.input.slice(x,r.position),M.test(u)&&ee(r,"tag suffix cannot contain flow indicator characters")}return u&&!ae.test(u)&&ee(r,"tag name cannot contain such characters: "+u),$?r.tag=u:e.call(r.tagMap,P)?r.tag=r.tagMap[P]+u:P==="!"?r.tag="!"+u:P==="!!"?r.tag="tag:yaml.org,2002:"+u:ee(r,'undeclared tag handle "'+P+'"'),!0}function ut(r){var x,$;if($=r.input.charCodeAt(r.position),$!==38)return!1;for(r.anchor!==null&&ee(r,"duplication of an anchor property"),$=r.input.charCodeAt(++r.position),x=r.position;$!==0&&!q($)&&!ue($);)$=r.input.charCodeAt(++r.position);return r.position===x&&ee(r,"name of an anchor node must contain at least one character"),r.anchor=r.input.slice(x,r.position),!0}function wt(r){var x,$,V;if(V=r.input.charCodeAt(r.position),V!==42)return!1;for(V=r.input.charCodeAt(++r.position),x=r.position;V!==0&&!q(V)&&!ue(V);)V=r.input.charCodeAt(++r.position);return r.position===x&&ee(r,"name of an alias node must contain at least one character"),$=r.input.slice(x,r.position),e.call(r.anchorMap,$)||ee(r,'unidentified alias "'+$+'"'),r.result=r.anchorMap[$],U(r,!0,-1),!0}function He(r,x,$,V,P){var u,w,j,R=1,N=!1,H=!1,T,z,K,ne,de;if(r.listener!==null&&r.listener("open",r),r.tag=null,r.anchor=null,r.kind=null,r.result=null,u=w=j=S===$||m===$,V&&U(r,!0,-1)&&(N=!0,r.lineIndent>x?R=1:r.lineIndent===x?R=0:r.lineIndent<x&&(R=-1)),R===1)for(;st(r)||ut(r);)U(r,!0,-1)?(N=!0,j=u,r.lineIndent>x?R=1:r.lineIndent===x?R=0:r.lineIndent<x&&(R=-1)):j=!1;if(j&&(j=N||P),(R===1||S===$)&&(g===$||C===$?ne=x:ne=x+1,de=r.position-r.lineStart,R===1?j&&(rt(r,de)||Ct(r,de,ne))||Ye(r,ne)?H=!0:(w&&tt(r,ne)||ze(r,ne)||Pe(r,ne)?H=!0:wt(r)?(H=!0,(r.tag!==null||r.anchor!==null)&&ee(r,"alias node should not have any properties")):Ge(r,ne,g===$)&&(H=!0,r.tag===null&&(r.tag="?")),r.anchor!==null&&(r.anchorMap[r.anchor]=r.result)):R===0&&(H=j&&rt(r,de))),r.tag!==null&&r.tag!=="!")if(r.tag==="?"){for(r.result!==null&&r.kind!=="scalar"&&ee(r,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+r.kind+'"'),T=0,z=r.implicitTypes.length;T<z;T+=1)if(K=r.implicitTypes[T],K.resolve(r.result)){r.result=K.construct(r.result),r.tag=K.tag,r.anchor!==null&&(r.anchorMap[r.anchor]=r.result);break}}else e.call(r.typeMap[r.kind||"fallback"],r.tag)?(K=r.typeMap[r.kind||"fallback"][r.tag],r.result!==null&&K.kind!==r.kind&&ee(r,"unacceptable node kind for !<"+r.tag+'> tag; it should be "'+K.kind+'", not "'+r.kind+'"'),K.resolve(r.result)?(r.result=K.construct(r.result),r.anchor!==null&&(r.anchorMap[r.anchor]=r.result)):ee(r,"cannot resolve a node with !<"+r.tag+"> explicit tag")):ee(r,"unknown tag !<"+r.tag+">");return r.listener!==null&&r.listener("close",r),r.tag!==null||r.anchor!==null||H}function ht(r){var x=r.position,$,V,P,u=!1,w;for(r.version=null,r.checkLineBreaks=r.legacy,r.tagMap={},r.anchorMap={};(w=r.input.charCodeAt(r.position))!==0&&(U(r,!0,-1),w=r.input.charCodeAt(r.position),!(r.lineIndent>0||w!==37));){for(u=!0,w=r.input.charCodeAt(++r.position),$=r.position;w!==0&&!q(w);)w=r.input.charCodeAt(++r.position);for(V=r.input.slice($,r.position),P=[],V.length<1&&ee(r,"directive name must not be less than one character in length");w!==0;){for(;te(w);)w=r.input.charCodeAt(++r.position);if(w===35){do w=r.input.charCodeAt(++r.position);while(w!==0&&!Z(w));break}if(Z(w))break;for($=r.position;w!==0&&!q(w);)w=r.input.charCodeAt(++r.position);P.push(r.input.slice($,r.position))}w!==0&&W(r),e.call(De,V)?De[V](r,V,P):Ne(r,'unknown document directive "'+V+'"')}if(U(r,!0,-1),r.lineIndent===0&&r.input.charCodeAt(r.position)===45&&r.input.charCodeAt(r.position+1)===45&&r.input.charCodeAt(r.position+2)===45?(r.position+=3,U(r,!0,-1)):u&&ee(r,"directives end mark is expected"),He(r,r.lineIndent-1,S,!1,!0),U(r,!0,-1),r.checkLineBreaks&&v.test(r.input.slice(x,r.position))&&Ne(r,"non-ASCII line breaks are interpreted as content"),r.documents.push(r.result),r.position===r.lineStart&&ie(r)){r.input.charCodeAt(r.position)===46&&(r.position+=3,U(r,!0,-1));return}if(r.position<r.length-1)ee(r,"end of the stream or a document separator is expected");else return}function Xe(r,x){r=String(r),x=x||{},r.length!==0&&(r.charCodeAt(r.length-1)!==10&&r.charCodeAt(r.length-1)!==13&&(r+=`
22
+ `),r.charCodeAt(0)===65279&&(r=r.slice(1)));var $=new Ze(r,x),V=r.indexOf("\0");for(V!==-1&&($.position=V,ee($,"null byte is not allowed in input")),$.input+="\0";$.input.charCodeAt($.position)===32;)$.lineIndent+=1,$.position+=1;for(;$.position<$.length-1;)ht($);return $.documents}function Je(r,x,$){x!==null&&typeof x=="object"&&typeof $>"u"&&($=x,x=null);var V=Xe(r,$);if(typeof x!="function")return V;for(var P=0,u=V.length;P<u;P+=1)x(V[P])}function dt(r,x){var $=Xe(r,x);if($.length!==0){if($.length===1)return $[0];throw new d("expected a single document in the stream, but found more")}}function St(r,x,$){return typeof x=="object"&&x!==null&&typeof $>"u"&&($=x,x=null),Je(r,x,l.extend({schema:o},$))}function gt(r,x){return dt(r,l.extend({schema:o},x))}return Pt.loadAll=Je,Pt.load=dt,Pt.safeLoadAll=St,Pt.safeLoad=gt,Pt}var Cr={},Wi;function Ha(){if(Wi)return Cr;Wi=1;var l=Yt(),d=rr(),A=Sr(),o=tr(),h=Object.prototype.toString,e=Object.prototype.hasOwnProperty,g=9,C=10,m=13,S=32,E=33,Y=34,y=35,b=37,v=38,M=39,re=42,ae=44,O=45,Z=58,te=61,q=62,ue=63,Ce=64,ge=91,Ae=93,Ee=96,je=123,Fe=124,Ue=125,ye={};ye[0]="\\0",ye[7]="\\a",ye[8]="\\b",ye[9]="\\t",ye[10]="\\n",ye[11]="\\v",ye[12]="\\f",ye[13]="\\r",ye[27]="\\e",ye[34]='\\"',ye[92]="\\\\",ye[133]="\\N",ye[160]="\\_",ye[8232]="\\L",ye[8233]="\\P";var Me=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Ze(u,w){var j,R,N,H,T,z,K;if(w===null)return{};for(j={},R=Object.keys(w),N=0,H=R.length;N<H;N+=1)T=R[N],z=String(w[T]),T.slice(0,2)==="!!"&&(T="tag:yaml.org,2002:"+T.slice(2)),K=u.compiledTypeMap.fallback[T],K&&e.call(K.styleAliases,z)&&(z=K.styleAliases[z]),j[T]=z;return j}function xe(u){var w,j,R;if(w=u.toString(16).toUpperCase(),u<=255)j="x",R=2;else if(u<=65535)j="u",R=4;else if(u<=4294967295)j="U",R=8;else throw new d("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+j+l.repeat("0",R-w.length)+w}function ee(u){this.schema=u.schema||A,this.indent=Math.max(1,u.indent||2),this.noArrayIndent=u.noArrayIndent||!1,this.skipInvalid=u.skipInvalid||!1,this.flowLevel=l.isNothing(u.flowLevel)?-1:u.flowLevel,this.styleMap=Ze(this.schema,u.styles||null),this.sortKeys=u.sortKeys||!1,this.lineWidth=u.lineWidth||80,this.noRefs=u.noRefs||!1,this.noCompatMode=u.noCompatMode||!1,this.condenseFlow=u.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ne(u,w){for(var j=l.repeat(" ",w),R=0,N=-1,H="",T,z=u.length;R<z;)N=u.indexOf(`
23
+ `,R),N===-1?(T=u.slice(R),R=z):(T=u.slice(R,N+1),R=N+1),T.length&&T!==`
24
+ `&&(H+=j),H+=T;return H}function De(u,w){return`
25
+ `+l.repeat(" ",u.indent*w)}function Re(u,w){var j,R,N;for(j=0,R=u.implicitTypes.length;j<R;j+=1)if(N=u.implicitTypes[j],N.resolve(w))return!0;return!1}function qe(u){return u===S||u===g}function we(u){return 32<=u&&u<=126||161<=u&&u<=55295&&u!==8232&&u!==8233||57344<=u&&u<=65533&&u!==65279||65536<=u&&u<=1114111}function W(u){return we(u)&&!qe(u)&&u!==65279&&u!==m&&u!==C}function U(u,w){return we(u)&&u!==65279&&u!==ae&&u!==ge&&u!==Ae&&u!==je&&u!==Ue&&u!==Z&&(u!==y||w&&W(w))}function ie(u){return we(u)&&u!==65279&&!qe(u)&&u!==O&&u!==ue&&u!==Z&&u!==ae&&u!==ge&&u!==Ae&&u!==je&&u!==Ue&&u!==y&&u!==v&&u!==re&&u!==E&&u!==Fe&&u!==te&&u!==q&&u!==M&&u!==Y&&u!==b&&u!==Ce&&u!==Ee}function ve(u){var w=/^\n* /;return w.test(u)}var Ge=1,ze=2,Pe=3,Ye=4,tt=5;function rt(u,w,j,R,N){var H,T,z,K=!1,ne=!1,de=R!==-1,le=-1,_e=ie(u.charCodeAt(0))&&!qe(u.charCodeAt(u.length-1));if(w)for(H=0;H<u.length;H++){if(T=u.charCodeAt(H),!we(T))return tt;z=H>0?u.charCodeAt(H-1):null,_e=_e&&U(T,z)}else{for(H=0;H<u.length;H++){if(T=u.charCodeAt(H),T===C)K=!0,de&&(ne=ne||H-le-1>R&&u[le+1]!==" ",le=H);else if(!we(T))return tt;z=H>0?u.charCodeAt(H-1):null,_e=_e&&U(T,z)}ne=ne||de&&H-le-1>R&&u[le+1]!==" "}return!K&&!ne?_e&&!N(u)?Ge:ze:j>9&&ve(u)?tt:ne?Ye:Pe}function Ct(u,w,j,R){u.dump=(function(){if(w.length===0)return"''";if(!u.noCompatMode&&Me.indexOf(w)!==-1)return"'"+w+"'";var N=u.indent*Math.max(1,j),H=u.lineWidth===-1?-1:Math.max(Math.min(u.lineWidth,40),u.lineWidth-N),T=R||u.flowLevel>-1&&j>=u.flowLevel;function z(K){return Re(u,K)}switch(rt(w,T,u.indent,H,z)){case Ge:return w;case ze:return"'"+w.replace(/'/g,"''")+"'";case Pe:return"|"+st(w,u.indent)+ut(Ne(w,N));case Ye:return">"+st(w,u.indent)+ut(Ne(wt(w,H),N));case tt:return'"'+ht(w)+'"';default:throw new d("impossible error: invalid scalar style")}})()}function st(u,w){var j=ve(u)?String(w):"",R=u[u.length-1]===`
26
+ `,N=R&&(u[u.length-2]===`
27
27
  `||u===`
28
- `),H=N?"+":T?"":"-";return j+H+`
28
+ `),H=N?"+":R?"":"-";return j+H+`
29
29
  `}function ut(u){return u[u.length-1]===`
30
- `?u.slice(0,-1):u}function wt(u,w){for(var j=/(\n+)([^\n]*)/g,T=(function(){var ne=u.indexOf(`
30
+ `?u.slice(0,-1):u}function wt(u,w){for(var j=/(\n+)([^\n]*)/g,R=(function(){var ne=u.indexOf(`
31
31
  `);return ne=ne!==-1?ne:u.length,j.lastIndex=ne,He(u.slice(0,ne),w)})(),N=u[0]===`
32
- `||u[0]===" ",H,R;R=j.exec(u);){var z=R[1],K=R[2];H=K[0]===" ",T+=z+(!N&&!H&&K!==""?`
33
- `:"")+He(K,w),N=H}return T}function He(u,w){if(u===""||u[0]===" ")return u;for(var j=/ [^ ]/g,T,N=0,H,R=0,z=0,K="";T=j.exec(u);)z=T.index,z-N>w&&(H=R>N?R:z,K+=`
34
- `+u.slice(N,H),N=H+1),R=z;return K+=`
35
- `,u.length-N>w&&R>N?K+=u.slice(N,R)+`
36
- `+u.slice(R+1):K+=u.slice(N),K.slice(1)}function ht(u){for(var w="",j,T,N,H=0;H<u.length;H++){if(j=u.charCodeAt(H),j>=55296&&j<=56319&&(T=u.charCodeAt(H+1),T>=56320&&T<=57343)){w+=$e((j-55296)*1024+T-56320+65536),H++;continue}N=ye[j],w+=!N&&we(j)?u[H]:N||$e(j)}return w}function Xe(u,w,j){var T="",N=u.tag,H,R;for(H=0,R=j.length;H<R;H+=1)r(u,w,j[H],!1,!1)&&(H!==0&&(T+=","+(u.condenseFlow?"":" ")),T+=u.dump);u.tag=N,u.dump="["+T+"]"}function Je(u,w,j,T){var N="",H=u.tag,R,z;for(R=0,z=j.length;R<z;R+=1)r(u,w+1,j[R],!0,!0)&&((!T||R!==0)&&(N+=De(u,w)),u.dump&&C===u.dump.charCodeAt(0)?N+="-":N+="- ",N+=u.dump);u.tag=H,u.dump=N||"[]"}function dt(u,w,j){var T="",N=u.tag,H=Object.keys(j),R,z,K,ne,de;for(R=0,z=H.length;R<z;R+=1)de="",R!==0&&(de+=", "),u.condenseFlow&&(de+='"'),K=H[R],ne=j[K],r(u,w,K,!1,!1)&&(u.dump.length>1024&&(de+="? "),de+=u.dump+(u.condenseFlow?'"':"")+":"+(u.condenseFlow?"":" "),r(u,w,ne,!1,!1)&&(de+=u.dump,T+=de));u.tag=N,u.dump="{"+T+"}"}function St(u,w,j,T){var N="",H=u.tag,R=Object.keys(j),z,K,ne,de,le,_e;if(u.sortKeys===!0)R.sort();else if(typeof u.sortKeys=="function")R.sort(u.sortKeys);else if(u.sortKeys)throw new d("sortKeys must be a boolean or a function");for(z=0,K=R.length;z<K;z+=1)_e="",(!T||z!==0)&&(_e+=De(u,w)),ne=R[z],de=j[ne],r(u,w+1,ne,!0,!0,!0)&&(le=u.tag!==null&&u.tag!=="?"||u.dump&&u.dump.length>1024,le&&(u.dump&&C===u.dump.charCodeAt(0)?_e+="?":_e+="? "),_e+=u.dump,le&&(_e+=De(u,w)),r(u,w+1,de,!0,le)&&(u.dump&&C===u.dump.charCodeAt(0)?_e+=":":_e+=": ",_e+=u.dump,N+=_e));u.tag=H,u.dump=N||"{}"}function gt(u,w,j){var T,N,H,R,z,K;for(N=j?u.explicitTypes:u.implicitTypes,H=0,R=N.length;H<R;H+=1)if(z=N[H],(z.instanceOf||z.predicate)&&(!z.instanceOf||typeof w=="object"&&w instanceof z.instanceOf)&&(!z.predicate||z.predicate(w))){if(u.tag=j?z.tag:"?",z.represent){if(K=u.styleMap[z.tag]||z.defaultStyle,h.call(z.represent)==="[object Function]")T=z.represent(w,K);else if(e.call(z.represent,K))T=z.represent[K](w,K);else throw new d("!<"+z.tag+'> tag resolver accepts not "'+K+'" style');u.dump=T}return!0}return!1}function r(u,w,j,T,N,H){u.tag=null,u.dump=j,gt(u,j,!1)||gt(u,j,!0);var R=h.call(u.dump);T&&(T=u.flowLevel<0||u.flowLevel>w);var z=R==="[object Object]"||R==="[object Array]",K,ne;if(z&&(K=u.duplicates.indexOf(j),ne=K!==-1),(u.tag!==null&&u.tag!=="?"||ne||u.indent!==2&&w>0)&&(N=!1),ne&&u.usedDuplicates[K])u.dump="*ref_"+K;else{if(z&&ne&&!u.usedDuplicates[K]&&(u.usedDuplicates[K]=!0),R==="[object Object]")T&&Object.keys(u.dump).length!==0?(St(u,w,u.dump,N),ne&&(u.dump="&ref_"+K+u.dump)):(dt(u,w,u.dump),ne&&(u.dump="&ref_"+K+" "+u.dump));else if(R==="[object Array]"){var de=u.noArrayIndent&&w>0?w-1:w;T&&u.dump.length!==0?(Je(u,de,u.dump,N),ne&&(u.dump="&ref_"+K+u.dump)):(Xe(u,de,u.dump),ne&&(u.dump="&ref_"+K+" "+u.dump))}else if(R==="[object String]")u.tag!=="?"&&Ct(u,u.dump,w,H);else{if(u.skipInvalid)return!1;throw new d("unacceptable kind of an object to dump "+R)}u.tag!==null&&u.tag!=="?"&&(u.dump="!<"+u.tag+"> "+u.dump)}return!0}function $(u,w){var j=[],T=[],N,H;for(x(u,j,T),N=0,H=T.length;N<H;N+=1)w.duplicates.push(j[T[N]]);w.usedDuplicates=new Array(H)}function x(u,w,j){var T,N,H;if(u!==null&&typeof u=="object")if(N=w.indexOf(u),N!==-1)j.indexOf(N)===-1&&j.push(N);else if(w.push(u),Array.isArray(u))for(N=0,H=u.length;N<H;N+=1)x(u[N],w,j);else for(T=Object.keys(u),N=0,H=T.length;N<H;N+=1)x(u[T[N]],w,j)}function V(u,w){w=w||{};var j=new ee(w);return j.noRefs||$(u,j),r(j,0,u,!0,!0)?j.dump+`
37
- `:""}function P(u,w){return V(u,l.extend({schema:o},w))}return Cr.dump=V,Cr.safeDump=P,Cr}var Ki;function Ha(){if(Ki)return ke;Ki=1;var l=Ya(),d=Ua();function A(o){return function(){throw new Error("Function "+o+" is deprecated and cannot be used.")}}return ke.Type=Le(),ke.Schema=Ut(),ke.FAILSAFE_SCHEMA=$n(),ke.JSON_SCHEMA=oo(),ke.CORE_SCHEMA=ao(),ke.DEFAULT_SAFE_SCHEMA=tr(),ke.DEFAULT_FULL_SCHEMA=Sr(),ke.load=l.load,ke.loadAll=l.loadAll,ke.safeLoad=l.safeLoad,ke.safeLoadAll=l.safeLoadAll,ke.dump=d.dump,ke.safeDump=d.safeDump,ke.YAMLException=rr(),ke.MINIMAL_SCHEMA=$n(),ke.SAFE_SCHEMA=tr(),ke.DEFAULT_SCHEMA=Sr(),ke.scan=A("scan"),ke.parse=A("parse"),ke.compose=A("compose"),ke.addConstructor=A("addConstructor"),ke}var kn,Gi;function Ba(){if(Gi)return kn;Gi=1;var l=Ha();return kn=l,kn}var En,Ji;function Wa(){if(Ji)return En;Ji=1;function l(o,h){function e(){this.constructor=o}e.prototype=h.prototype,o.prototype=new e}function d(o,h,e,g){this.message=o,this.expected=h,this.found=e,this.location=g,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,d)}l(d,Error),d.buildMessage=function(o,h){var e={literal:function(y){return'"'+C(y.text)+'"'},class:function(y){var b="",v;for(v=0;v<y.parts.length;v++)b+=y.parts[v]instanceof Array?m(y.parts[v][0])+"-"+m(y.parts[v][1]):m(y.parts[v]);return"["+(y.inverted?"^":"")+b+"]"},any:function(y){return"any character"},end:function(y){return"end of input"},other:function(y){return y.description}};function g(y){return y.charCodeAt(0).toString(16).toUpperCase()}function C(y){return y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+g(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+g(b)})}function m(y){return y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+g(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+g(b)})}function S(y){return e[y.type](y)}function E(y){var b=new Array(y.length),v,M;for(v=0;v<y.length;v++)b[v]=S(y[v]);if(b.sort(),b.length>0){for(v=1,M=1;v<b.length;v++)b[v-1]!==b[v]&&(b[M]=b[v],M++);b.length=M}switch(b.length){case 1:return b[0];case 2:return b[0]+" or "+b[1];default:return b.slice(0,-1).join(", ")+", or "+b[b.length-1]}}function Y(y){return y?'"'+C(y)+'"':"end of input"}return"Expected "+E(o)+" but "+Y(h)+" found."};function A(o,h){h=h!==void 0?h:{};var e={},g={Start:fr},C=fr,m=function(s){return[].concat(...s)},S="-",E=be("-",!1),Y=function(s){return s},y=function(s){return Object.assign({},...s)},b="#",v=be("#",!1),M=Lr(),re=function(){return{}},ae=":",O=be(":",!1),Z=function(s,p){return{[s]:p}},te=",",q=be(",",!1),ue=function(s,p){return p},Ce=function(s,p,_){return Object.assign({},...[s].concat(p).map(B=>({[B]:_})))},ge=function(s){return s},Ae=function(s){return s},Ee=Et("correct indentation"),je=" ",Fe=be(" ",!1),Ue=function(s){return s.length===qt*mr},ye=function(s){return s.length===(qt+1)*mr},Me=function(){return qt++,!0},Ze=function(){return qt--,!0},$e=function(){return ur()},ee=Et("pseudostring"),Ne=/^[^\r\n\t ?:,\][{}#&*!|>'"%@`\-]/,De=nt(["\r",`
38
- `," "," ","?",":",",","]","[","{","}","#","&","*","!","|",">","'",'"',"%","@","`","-"],!0,!1),Te=/^[^\r\n\t ,\][{}:#"']/,qe=nt(["\r",`
32
+ `||u[0]===" ",H,T;T=j.exec(u);){var z=T[1],K=T[2];H=K[0]===" ",R+=z+(!N&&!H&&K!==""?`
33
+ `:"")+He(K,w),N=H}return R}function He(u,w){if(u===""||u[0]===" ")return u;for(var j=/ [^ ]/g,R,N=0,H,T=0,z=0,K="";R=j.exec(u);)z=R.index,z-N>w&&(H=T>N?T:z,K+=`
34
+ `+u.slice(N,H),N=H+1),T=z;return K+=`
35
+ `,u.length-N>w&&T>N?K+=u.slice(N,T)+`
36
+ `+u.slice(T+1):K+=u.slice(N),K.slice(1)}function ht(u){for(var w="",j,R,N,H=0;H<u.length;H++){if(j=u.charCodeAt(H),j>=55296&&j<=56319&&(R=u.charCodeAt(H+1),R>=56320&&R<=57343)){w+=xe((j-55296)*1024+R-56320+65536),H++;continue}N=ye[j],w+=!N&&we(j)?u[H]:N||xe(j)}return w}function Xe(u,w,j){var R="",N=u.tag,H,T;for(H=0,T=j.length;H<T;H+=1)r(u,w,j[H],!1,!1)&&(H!==0&&(R+=","+(u.condenseFlow?"":" ")),R+=u.dump);u.tag=N,u.dump="["+R+"]"}function Je(u,w,j,R){var N="",H=u.tag,T,z;for(T=0,z=j.length;T<z;T+=1)r(u,w+1,j[T],!0,!0)&&((!R||T!==0)&&(N+=De(u,w)),u.dump&&C===u.dump.charCodeAt(0)?N+="-":N+="- ",N+=u.dump);u.tag=H,u.dump=N||"[]"}function dt(u,w,j){var R="",N=u.tag,H=Object.keys(j),T,z,K,ne,de;for(T=0,z=H.length;T<z;T+=1)de="",T!==0&&(de+=", "),u.condenseFlow&&(de+='"'),K=H[T],ne=j[K],r(u,w,K,!1,!1)&&(u.dump.length>1024&&(de+="? "),de+=u.dump+(u.condenseFlow?'"':"")+":"+(u.condenseFlow?"":" "),r(u,w,ne,!1,!1)&&(de+=u.dump,R+=de));u.tag=N,u.dump="{"+R+"}"}function St(u,w,j,R){var N="",H=u.tag,T=Object.keys(j),z,K,ne,de,le,_e;if(u.sortKeys===!0)T.sort();else if(typeof u.sortKeys=="function")T.sort(u.sortKeys);else if(u.sortKeys)throw new d("sortKeys must be a boolean or a function");for(z=0,K=T.length;z<K;z+=1)_e="",(!R||z!==0)&&(_e+=De(u,w)),ne=T[z],de=j[ne],r(u,w+1,ne,!0,!0,!0)&&(le=u.tag!==null&&u.tag!=="?"||u.dump&&u.dump.length>1024,le&&(u.dump&&C===u.dump.charCodeAt(0)?_e+="?":_e+="? "),_e+=u.dump,le&&(_e+=De(u,w)),r(u,w+1,de,!0,le)&&(u.dump&&C===u.dump.charCodeAt(0)?_e+=":":_e+=": ",_e+=u.dump,N+=_e));u.tag=H,u.dump=N||"{}"}function gt(u,w,j){var R,N,H,T,z,K;for(N=j?u.explicitTypes:u.implicitTypes,H=0,T=N.length;H<T;H+=1)if(z=N[H],(z.instanceOf||z.predicate)&&(!z.instanceOf||typeof w=="object"&&w instanceof z.instanceOf)&&(!z.predicate||z.predicate(w))){if(u.tag=j?z.tag:"?",z.represent){if(K=u.styleMap[z.tag]||z.defaultStyle,h.call(z.represent)==="[object Function]")R=z.represent(w,K);else if(e.call(z.represent,K))R=z.represent[K](w,K);else throw new d("!<"+z.tag+'> tag resolver accepts not "'+K+'" style');u.dump=R}return!0}return!1}function r(u,w,j,R,N,H){u.tag=null,u.dump=j,gt(u,j,!1)||gt(u,j,!0);var T=h.call(u.dump);R&&(R=u.flowLevel<0||u.flowLevel>w);var z=T==="[object Object]"||T==="[object Array]",K,ne;if(z&&(K=u.duplicates.indexOf(j),ne=K!==-1),(u.tag!==null&&u.tag!=="?"||ne||u.indent!==2&&w>0)&&(N=!1),ne&&u.usedDuplicates[K])u.dump="*ref_"+K;else{if(z&&ne&&!u.usedDuplicates[K]&&(u.usedDuplicates[K]=!0),T==="[object Object]")R&&Object.keys(u.dump).length!==0?(St(u,w,u.dump,N),ne&&(u.dump="&ref_"+K+u.dump)):(dt(u,w,u.dump),ne&&(u.dump="&ref_"+K+" "+u.dump));else if(T==="[object Array]"){var de=u.noArrayIndent&&w>0?w-1:w;R&&u.dump.length!==0?(Je(u,de,u.dump,N),ne&&(u.dump="&ref_"+K+u.dump)):(Xe(u,de,u.dump),ne&&(u.dump="&ref_"+K+" "+u.dump))}else if(T==="[object String]")u.tag!=="?"&&Ct(u,u.dump,w,H);else{if(u.skipInvalid)return!1;throw new d("unacceptable kind of an object to dump "+T)}u.tag!==null&&u.tag!=="?"&&(u.dump="!<"+u.tag+"> "+u.dump)}return!0}function x(u,w){var j=[],R=[],N,H;for($(u,j,R),N=0,H=R.length;N<H;N+=1)w.duplicates.push(j[R[N]]);w.usedDuplicates=new Array(H)}function $(u,w,j){var R,N,H;if(u!==null&&typeof u=="object")if(N=w.indexOf(u),N!==-1)j.indexOf(N)===-1&&j.push(N);else if(w.push(u),Array.isArray(u))for(N=0,H=u.length;N<H;N+=1)$(u[N],w,j);else for(R=Object.keys(u),N=0,H=R.length;N<H;N+=1)$(u[R[N]],w,j)}function V(u,w){w=w||{};var j=new ee(w);return j.noRefs||x(u,j),r(j,0,u,!0,!0)?j.dump+`
37
+ `:""}function P(u,w){return V(u,l.extend({schema:o},w))}return Cr.dump=V,Cr.safeDump=P,Cr}var Ki;function Ba(){if(Ki)return ke;Ki=1;var l=Ua(),d=Ha();function A(o){return function(){throw new Error("Function "+o+" is deprecated and cannot be used.")}}return ke.Type=Le(),ke.Schema=Ut(),ke.FAILSAFE_SCHEMA=xn(),ke.JSON_SCHEMA=oo(),ke.CORE_SCHEMA=ao(),ke.DEFAULT_SAFE_SCHEMA=tr(),ke.DEFAULT_FULL_SCHEMA=Sr(),ke.load=l.load,ke.loadAll=l.loadAll,ke.safeLoad=l.safeLoad,ke.safeLoadAll=l.safeLoadAll,ke.dump=d.dump,ke.safeDump=d.safeDump,ke.YAMLException=rr(),ke.MINIMAL_SCHEMA=xn(),ke.SAFE_SCHEMA=tr(),ke.DEFAULT_SCHEMA=Sr(),ke.scan=A("scan"),ke.parse=A("parse"),ke.compose=A("compose"),ke.addConstructor=A("addConstructor"),ke}var kn,Gi;function Wa(){if(Gi)return kn;Gi=1;var l=Ba();return kn=l,kn}var En,Ji;function Ka(){if(Ji)return En;Ji=1;function l(o,h){function e(){this.constructor=o}e.prototype=h.prototype,o.prototype=new e}function d(o,h,e,g){this.message=o,this.expected=h,this.found=e,this.location=g,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,d)}l(d,Error),d.buildMessage=function(o,h){var e={literal:function(y){return'"'+C(y.text)+'"'},class:function(y){var b="",v;for(v=0;v<y.parts.length;v++)b+=y.parts[v]instanceof Array?m(y.parts[v][0])+"-"+m(y.parts[v][1]):m(y.parts[v]);return"["+(y.inverted?"^":"")+b+"]"},any:function(y){return"any character"},end:function(y){return"end of input"},other:function(y){return y.description}};function g(y){return y.charCodeAt(0).toString(16).toUpperCase()}function C(y){return y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+g(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+g(b)})}function m(y){return y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+g(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+g(b)})}function S(y){return e[y.type](y)}function E(y){var b=new Array(y.length),v,M;for(v=0;v<y.length;v++)b[v]=S(y[v]);if(b.sort(),b.length>0){for(v=1,M=1;v<b.length;v++)b[v-1]!==b[v]&&(b[M]=b[v],M++);b.length=M}switch(b.length){case 1:return b[0];case 2:return b[0]+" or "+b[1];default:return b.slice(0,-1).join(", ")+", or "+b[b.length-1]}}function Y(y){return y?'"'+C(y)+'"':"end of input"}return"Expected "+E(o)+" but "+Y(h)+" found."};function A(o,h){h=h!==void 0?h:{};var e={},g={Start:fr},C=fr,m=function(s){return[].concat(...s)},S="-",E=be("-",!1),Y=function(s){return s},y=function(s){return Object.assign({},...s)},b="#",v=be("#",!1),M=Lr(),re=function(){return{}},ae=":",O=be(":",!1),Z=function(s,p){return{[s]:p}},te=",",q=be(",",!1),ue=function(s,p){return p},Ce=function(s,p,_){return Object.assign({},...[s].concat(p).map(B=>({[B]:_})))},ge=function(s){return s},Ae=function(s){return s},Ee=Et("correct indentation"),je=" ",Fe=be(" ",!1),Ue=function(s){return s.length===qt*mr},ye=function(s){return s.length===(qt+1)*mr},Me=function(){return qt++,!0},Ze=function(){return qt--,!0},xe=function(){return ur()},ee=Et("pseudostring"),Ne=/^[^\r\n\t ?:,\][{}#&*!|>'"%@`\-]/,De=nt(["\r",`
38
+ `," "," ","?",":",",","]","[","{","}","#","&","*","!","|",">","'",'"',"%","@","`","-"],!0,!1),Re=/^[^\r\n\t ,\][{}:#"']/,qe=nt(["\r",`
39
39
  `," "," ",",","]","[","{","}",":","#",'"',"'"],!0,!1),we=function(){return ur().replace(/^ *| *$/g,"")},W="--",U=be("--",!1),ie=/^[a-zA-Z\/0-9]/,ve=nt([["a","z"],["A","Z"],"/",["0","9"]],!1,!1),Ge=/^[^\r\n\t :,]/,ze=nt(["\r",`
40
- `," "," ",":",","],!0,!1),Pe="null",Ye=be("null",!1),tt=function(){return null},rt="true",Ct=be("true",!1),st=function(){return!0},ut="false",wt=be("false",!1),He=function(){return!1},ht=Et("string"),Xe='"',Je=be('"',!1),dt=function(){return""},St=function(s){return s},gt=function(s){return s.join("")},r=/^[^"\\\0-\x1F\x7F]/,$=nt(['"',"\\",["\0",""],""],!0,!1),x='\\"',V=be('\\"',!1),P=function(){return'"'},u="\\\\",w=be("\\\\",!1),j=function(){return"\\"},T="\\/",N=be("\\/",!1),H=function(){return"/"},R="\\b",z=be("\\b",!1),K=function(){return"\b"},ne="\\f",de=be("\\f",!1),le=function(){return"\f"},_e="\\n",kr=be("\\n",!1),Er=function(){return`
41
- `},nr="\\r",Rt=be("\\r",!1),Lt=function(){return"\r"},mt="\\t",ir=be("\\t",!1),or=function(){return" "},Ht="\\u",_r=be("\\u",!1),$r=function(s,p,_,B){return String.fromCharCode(parseInt(`0x${s}${p}${_}${B}`))},yt=/^[0-9a-fA-F]/,vt=nt([["0","9"],["a","f"],["A","F"]],!1,!1),xr=Et("blank space"),ar=/^[ \t]/,Qe=nt([" "," "],!1,!1),Bt=`\r
40
+ `," "," ",":",","],!0,!1),Pe="null",Ye=be("null",!1),tt=function(){return null},rt="true",Ct=be("true",!1),st=function(){return!0},ut="false",wt=be("false",!1),He=function(){return!1},ht=Et("string"),Xe='"',Je=be('"',!1),dt=function(){return""},St=function(s){return s},gt=function(s){return s.join("")},r=/^[^"\\\0-\x1F\x7F]/,x=nt(['"',"\\",["\0",""],""],!0,!1),$='\\"',V=be('\\"',!1),P=function(){return'"'},u="\\\\",w=be("\\\\",!1),j=function(){return"\\"},R="\\/",N=be("\\/",!1),H=function(){return"/"},T="\\b",z=be("\\b",!1),K=function(){return"\b"},ne="\\f",de=be("\\f",!1),le=function(){return"\f"},_e="\\n",kr=be("\\n",!1),Er=function(){return`
41
+ `},nr="\\r",Tt=be("\\r",!1),Lt=function(){return"\r"},mt="\\t",ir=be("\\t",!1),or=function(){return" "},Ht="\\u",_r=be("\\u",!1),xr=function(s,p,_,B){return String.fromCharCode(parseInt(`0x${s}${p}${_}${B}`))},yt=/^[0-9a-fA-F]/,vt=nt([["0","9"],["a","f"],["A","F"]],!1,!1),$r=Et("blank space"),ar=/^[ \t]/,Qe=nt([" "," "],!1,!1),Bt=`\r
42
42
  `,jr=be(`\r
43
43
  `,!1),Or=`
44
44
  `,sr=be(`
45
- `,!1),Tr="\r",Rr=be("\r",!1),f=0,he=0,Ft=[{line:1,column:1}],Be=0,Wt=[],Q=0,kt;if("startRule"in h){if(!(h.startRule in g))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');C=g[h.startRule]}function ur(){return o.substring(he,f)}function be(s,p){return{type:"literal",text:s,ignoreCase:p}}function nt(s,p,_){return{type:"class",parts:s,inverted:p,ignoreCase:_}}function Lr(){return{type:"any"}}function Fr(){return{type:"end"}}function Et(s){return{type:"other",description:s}}function cr(s){var p=Ft[s],_;if(p)return p;for(_=s-1;!Ft[_];)_--;for(p=Ft[_],p={line:p.line,column:p.column};_<s;)o.charCodeAt(_)===10?(p.line++,p.column=1):p.column++,_++;return Ft[s]=p,p}function lr(s,p){var _=cr(s),B=cr(p);return{start:{offset:s,line:_.line,column:_.column},end:{offset:p,line:B.line,column:B.column}}}function oe(s){f<Be||(f>Be&&(Be=f,Wt=[]),Wt.push(s))}function Ir(s,p,_){return new d(d.buildMessage(s,p),s,p,_)}function fr(){var s;return s=It(),s}function Nr(){var s,p,_;for(s=f,p=[],_=pr();_!==e;)p.push(_),_=pr();return p!==e&&(he=s,p=m(p)),s=p,s}function pr(){var s,p,_,B,D;return s=f,p=At(),p!==e?(o.charCodeAt(f)===45?(_=S,f++):(_=e,Q===0&&oe(E)),_!==e?(B=Se(),B!==e?(D=Nt(),D!==e?(he=s,p=Y(D),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e),s}function It(){var s,p,_;for(s=f,p=[],_=Kt();_!==e;)p.push(_),_=Kt();return p!==e&&(he=s,p=y(p)),s=p,s}function Kt(){var s,p,_,B,D,X,fe,me,pt;if(s=f,p=Se(),p===e&&(p=null),p!==e){if(_=f,o.charCodeAt(f)===35?(B=b,f++):(B=e,Q===0&&oe(v)),B!==e){if(D=[],X=f,fe=f,Q++,me=ft(),Q--,me===e?fe=void 0:(f=fe,fe=e),fe!==e?(o.length>f?(me=o.charAt(f),f++):(me=e,Q===0&&oe(M)),me!==e?(fe=[fe,me],X=fe):(f=X,X=e)):(f=X,X=e),X!==e)for(;X!==e;)D.push(X),X=f,fe=f,Q++,me=ft(),Q--,me===e?fe=void 0:(f=fe,fe=e),fe!==e?(o.length>f?(me=o.charAt(f),f++):(me=e,Q===0&&oe(M)),me!==e?(fe=[fe,me],X=fe):(f=X,X=e)):(f=X,X=e);else D=e;D!==e?(B=[B,D],_=B):(f=_,_=e)}else f=_,_=e;if(_===e&&(_=null),_!==e){if(B=[],D=lt(),D!==e)for(;D!==e;)B.push(D),D=lt();else B=e;B!==e?(he=s,p=re(),s=p):(f=s,s=e)}else f=s,s=e}else f=s,s=e;if(s===e&&(s=f,p=At(),p!==e?(_=qr(),_!==e?(B=Se(),B===e&&(B=null),B!==e?(o.charCodeAt(f)===58?(D=ae,f++):(D=e,Q===0&&oe(O)),D!==e?(X=Se(),X===e&&(X=null),X!==e?(fe=Nt(),fe!==e?(he=s,p=Z(_,fe),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e),s===e&&(s=f,p=At(),p!==e?(_=_t(),_!==e?(B=Se(),B===e&&(B=null),B!==e?(o.charCodeAt(f)===58?(D=ae,f++):(D=e,Q===0&&oe(O)),D!==e?(X=Se(),X===e&&(X=null),X!==e?(fe=Nt(),fe!==e?(he=s,p=Z(_,fe),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e),s===e))){if(s=f,p=At(),p!==e)if(_=_t(),_!==e)if(B=Se(),B!==e)if(D=Dr(),D!==e){if(X=[],fe=lt(),fe!==e)for(;fe!==e;)X.push(fe),fe=lt();else X=e;X!==e?(he=s,p=Z(_,D),s=p):(f=s,s=e)}else f=s,s=e;else f=s,s=e;else f=s,s=e;else f=s,s=e;if(s===e)if(s=f,p=At(),p!==e)if(_=_t(),_!==e){if(B=[],D=f,X=Se(),X===e&&(X=null),X!==e?(o.charCodeAt(f)===44?(fe=te,f++):(fe=e,Q===0&&oe(q)),fe!==e?(me=Se(),me===e&&(me=null),me!==e?(pt=_t(),pt!==e?(he=D,X=ue(_,pt),D=X):(f=D,D=e)):(f=D,D=e)):(f=D,D=e)):(f=D,D=e),D!==e)for(;D!==e;)B.push(D),D=f,X=Se(),X===e&&(X=null),X!==e?(o.charCodeAt(f)===44?(fe=te,f++):(fe=e,Q===0&&oe(q)),fe!==e?(me=Se(),me===e&&(me=null),me!==e?(pt=_t(),pt!==e?(he=D,X=ue(_,pt),D=X):(f=D,D=e)):(f=D,D=e)):(f=D,D=e)):(f=D,D=e);else B=e;B!==e?(D=Se(),D===e&&(D=null),D!==e?(o.charCodeAt(f)===58?(X=ae,f++):(X=e,Q===0&&oe(O)),X!==e?(fe=Se(),fe===e&&(fe=null),fe!==e?(me=Nt(),me!==e?(he=s,p=Ce(_,B,me),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)}else f=s,s=e;else f=s,s=e}return s}function Nt(){var s,p,_,B,D,X,fe;if(s=f,p=f,Q++,_=f,B=ft(),B!==e?(D=Mr(),D!==e?(o.charCodeAt(f)===45?(X=S,f++):(X=e,Q===0&&oe(E)),X!==e?(fe=Se(),fe!==e?(B=[B,D,X,fe],_=B):(f=_,_=e)):(f=_,_=e)):(f=_,_=e)):(f=_,_=e),Q--,_!==e?(f=p,p=void 0):p=e,p!==e?(_=lt(),_!==e?(B=Gt(),B!==e?(D=Nr(),D!==e?(X=hr(),X!==e?(he=s,p=ge(D),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e),s===e&&(s=f,p=ft(),p!==e?(_=Gt(),_!==e?(B=It(),B!==e?(D=hr(),D!==e?(he=s,p=ge(B),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e),s===e))if(s=f,p=Pr(),p!==e){if(_=[],B=lt(),B!==e)for(;B!==e;)_.push(B),B=lt();else _=e;_!==e?(he=s,p=Ae(p),s=p):(f=s,s=e)}else f=s,s=e;return s}function At(){var s,p,_;for(Q++,s=f,p=[],o.charCodeAt(f)===32?(_=je,f++):(_=e,Q===0&&oe(Fe));_!==e;)p.push(_),o.charCodeAt(f)===32?(_=je,f++):(_=e,Q===0&&oe(Fe));return p!==e?(he=f,_=Ue(p),_?_=void 0:_=e,_!==e?(p=[p,_],s=p):(f=s,s=e)):(f=s,s=e),Q--,s===e&&(p=e,Q===0&&oe(Ee)),s}function Mr(){var s,p,_;for(s=f,p=[],o.charCodeAt(f)===32?(_=je,f++):(_=e,Q===0&&oe(Fe));_!==e;)p.push(_),o.charCodeAt(f)===32?(_=je,f++):(_=e,Q===0&&oe(Fe));return p!==e?(he=f,_=ye(p),_?_=void 0:_=e,_!==e?(p=[p,_],s=p):(f=s,s=e)):(f=s,s=e),s}function Gt(){var s;return he=f,s=Me(),s?s=void 0:s=e,s}function hr(){var s;return he=f,s=Ze(),s?s=void 0:s=e,s}function qr(){var s;return s=xt(),s===e&&(s=dr()),s}function _t(){var s,p,_;if(s=xt(),s===e){if(s=f,p=[],_=it(),_!==e)for(;_!==e;)p.push(_),_=it();else p=e;p!==e&&(he=s,p=$e()),s=p}return s}function Pr(){var s;return s=$t(),s===e&&(s=gr(),s===e&&(s=xt(),s===e&&(s=dr()))),s}function Dr(){var s;return s=$t(),s===e&&(s=xt(),s===e&&(s=it())),s}function dr(){var s,p,_,B,D,X;if(Q++,s=f,Ne.test(o.charAt(f))?(p=o.charAt(f),f++):(p=e,Q===0&&oe(De)),p!==e){for(_=[],B=f,D=Se(),D===e&&(D=null),D!==e?(Te.test(o.charAt(f))?(X=o.charAt(f),f++):(X=e,Q===0&&oe(qe)),X!==e?(D=[D,X],B=D):(f=B,B=e)):(f=B,B=e);B!==e;)_.push(B),B=f,D=Se(),D===e&&(D=null),D!==e?(Te.test(o.charAt(f))?(X=o.charAt(f),f++):(X=e,Q===0&&oe(qe)),X!==e?(D=[D,X],B=D):(f=B,B=e)):(f=B,B=e);_!==e?(he=s,p=we(),s=p):(f=s,s=e)}else f=s,s=e;return Q--,s===e&&(p=e,Q===0&&oe(ee)),s}function it(){var s,p,_,B,D;if(s=f,o.substr(f,2)===W?(p=W,f+=2):(p=e,Q===0&&oe(U)),p===e&&(p=null),p!==e)if(ie.test(o.charAt(f))?(_=o.charAt(f),f++):(_=e,Q===0&&oe(ve)),_!==e){for(B=[],Ge.test(o.charAt(f))?(D=o.charAt(f),f++):(D=e,Q===0&&oe(ze));D!==e;)B.push(D),Ge.test(o.charAt(f))?(D=o.charAt(f),f++):(D=e,Q===0&&oe(ze));B!==e?(he=s,p=we(),s=p):(f=s,s=e)}else f=s,s=e;else f=s,s=e;return s}function $t(){var s,p;return s=f,o.substr(f,4)===Pe?(p=Pe,f+=4):(p=e,Q===0&&oe(Ye)),p!==e&&(he=s,p=tt()),s=p,s}function gr(){var s,p;return s=f,o.substr(f,4)===rt?(p=rt,f+=4):(p=e,Q===0&&oe(Ct)),p!==e&&(he=s,p=st()),s=p,s===e&&(s=f,o.substr(f,5)===ut?(p=ut,f+=5):(p=e,Q===0&&oe(wt)),p!==e&&(he=s,p=He()),s=p),s}function xt(){var s,p,_,B;return Q++,s=f,o.charCodeAt(f)===34?(p=Xe,f++):(p=e,Q===0&&oe(Je)),p!==e?(o.charCodeAt(f)===34?(_=Xe,f++):(_=e,Q===0&&oe(Je)),_!==e?(he=s,p=dt(),s=p):(f=s,s=e)):(f=s,s=e),s===e&&(s=f,o.charCodeAt(f)===34?(p=Xe,f++):(p=e,Q===0&&oe(Je)),p!==e?(_=Mt(),_!==e?(o.charCodeAt(f)===34?(B=Xe,f++):(B=e,Q===0&&oe(Je)),B!==e?(he=s,p=St(_),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)),Q--,s===e&&(p=e,Q===0&&oe(ht)),s}function Mt(){var s,p,_;if(s=f,p=[],_=jt(),_!==e)for(;_!==e;)p.push(_),_=jt();else p=e;return p!==e&&(he=s,p=gt(p)),s=p,s}function jt(){var s,p,_,B,D,X;return r.test(o.charAt(f))?(s=o.charAt(f),f++):(s=e,Q===0&&oe($)),s===e&&(s=f,o.substr(f,2)===x?(p=x,f+=2):(p=e,Q===0&&oe(V)),p!==e&&(he=s,p=P()),s=p,s===e&&(s=f,o.substr(f,2)===u?(p=u,f+=2):(p=e,Q===0&&oe(w)),p!==e&&(he=s,p=j()),s=p,s===e&&(s=f,o.substr(f,2)===T?(p=T,f+=2):(p=e,Q===0&&oe(N)),p!==e&&(he=s,p=H()),s=p,s===e&&(s=f,o.substr(f,2)===R?(p=R,f+=2):(p=e,Q===0&&oe(z)),p!==e&&(he=s,p=K()),s=p,s===e&&(s=f,o.substr(f,2)===ne?(p=ne,f+=2):(p=e,Q===0&&oe(de)),p!==e&&(he=s,p=le()),s=p,s===e&&(s=f,o.substr(f,2)===_e?(p=_e,f+=2):(p=e,Q===0&&oe(kr)),p!==e&&(he=s,p=Er()),s=p,s===e&&(s=f,o.substr(f,2)===nr?(p=nr,f+=2):(p=e,Q===0&&oe(Rt)),p!==e&&(he=s,p=Lt()),s=p,s===e&&(s=f,o.substr(f,2)===mt?(p=mt,f+=2):(p=e,Q===0&&oe(ir)),p!==e&&(he=s,p=or()),s=p,s===e&&(s=f,o.substr(f,2)===Ht?(p=Ht,f+=2):(p=e,Q===0&&oe(_r)),p!==e?(_=ct(),_!==e?(B=ct(),B!==e?(D=ct(),D!==e?(X=ct(),X!==e?(he=s,p=$r(_,B,D,X),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)))))))))),s}function ct(){var s;return yt.test(o.charAt(f))?(s=o.charAt(f),f++):(s=e,Q===0&&oe(vt)),s}function Se(){var s,p;if(Q++,s=[],ar.test(o.charAt(f))?(p=o.charAt(f),f++):(p=e,Q===0&&oe(Qe)),p!==e)for(;p!==e;)s.push(p),ar.test(o.charAt(f))?(p=o.charAt(f),f++):(p=e,Q===0&&oe(Qe));else s=e;return Q--,s===e&&(p=e,Q===0&&oe(xr)),s}function lt(){var s,p,_,B,D,X;if(s=f,p=ft(),p!==e){for(_=[],B=f,D=Se(),D===e&&(D=null),D!==e?(X=ft(),X!==e?(D=[D,X],B=D):(f=B,B=e)):(f=B,B=e);B!==e;)_.push(B),B=f,D=Se(),D===e&&(D=null),D!==e?(X=ft(),X!==e?(D=[D,X],B=D):(f=B,B=e)):(f=B,B=e);_!==e?(p=[p,_],s=p):(f=s,s=e)}else f=s,s=e;return s}function ft(){var s;return o.substr(f,2)===Bt?(s=Bt,f+=2):(s=e,Q===0&&oe(jr)),s===e&&(o.charCodeAt(f)===10?(s=Or,f++):(s=e,Q===0&&oe(sr)),s===e&&(o.charCodeAt(f)===13?(s=Tr,f++):(s=e,Q===0&&oe(Rr)))),s}const mr=2;let qt=0;if(kt=C(),kt!==e&&f===o.length)return kt;throw kt!==e&&f<o.length&&oe(Fr()),Ir(Wt,Be<o.length?o.charAt(Be):null,Be<o.length?lr(Be,Be+1):lr(Be,Be))}return En={SyntaxError:d,parse:A},En}var Vi;function Ka(){if(Vi)return Tt;Vi=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.PreserveOrdering=void 0,Tt.stringifySyml=m,Tt.parseSyml=y;const l=Ba(),d=Wa(),A=/^(?![-?:,\][{}#&*!|>'"%@` \t\r\n]).([ \t]*(?![,\][{}:# \t\r\n]).)*$/,o=["__metadata","version","resolution","dependencies","peerDependencies","dependenciesMeta","peerDependenciesMeta","binaries"];class h{constructor(v){this.data=v}}Tt.PreserveOrdering=h;function e(b){return b.match(A)?b:JSON.stringify(b)}function g(b){return typeof b>"u"?!0:typeof b=="object"&&b!==null&&!Array.isArray(b)?Object.keys(b).every(v=>g(b[v])):!1}function C(b,v,M){if(b===null)return`null
45
+ `,!1),Rr="\r",Tr=be("\r",!1),f=0,he=0,Ft=[{line:1,column:1}],Be=0,Wt=[],Q=0,kt;if("startRule"in h){if(!(h.startRule in g))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');C=g[h.startRule]}function ur(){return o.substring(he,f)}function be(s,p){return{type:"literal",text:s,ignoreCase:p}}function nt(s,p,_){return{type:"class",parts:s,inverted:p,ignoreCase:_}}function Lr(){return{type:"any"}}function Fr(){return{type:"end"}}function Et(s){return{type:"other",description:s}}function cr(s){var p=Ft[s],_;if(p)return p;for(_=s-1;!Ft[_];)_--;for(p=Ft[_],p={line:p.line,column:p.column};_<s;)o.charCodeAt(_)===10?(p.line++,p.column=1):p.column++,_++;return Ft[s]=p,p}function lr(s,p){var _=cr(s),B=cr(p);return{start:{offset:s,line:_.line,column:_.column},end:{offset:p,line:B.line,column:B.column}}}function oe(s){f<Be||(f>Be&&(Be=f,Wt=[]),Wt.push(s))}function Ir(s,p,_){return new d(d.buildMessage(s,p),s,p,_)}function fr(){var s;return s=It(),s}function Nr(){var s,p,_;for(s=f,p=[],_=pr();_!==e;)p.push(_),_=pr();return p!==e&&(he=s,p=m(p)),s=p,s}function pr(){var s,p,_,B,D;return s=f,p=At(),p!==e?(o.charCodeAt(f)===45?(_=S,f++):(_=e,Q===0&&oe(E)),_!==e?(B=Se(),B!==e?(D=Nt(),D!==e?(he=s,p=Y(D),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e),s}function It(){var s,p,_;for(s=f,p=[],_=Kt();_!==e;)p.push(_),_=Kt();return p!==e&&(he=s,p=y(p)),s=p,s}function Kt(){var s,p,_,B,D,X,fe,me,pt;if(s=f,p=Se(),p===e&&(p=null),p!==e){if(_=f,o.charCodeAt(f)===35?(B=b,f++):(B=e,Q===0&&oe(v)),B!==e){if(D=[],X=f,fe=f,Q++,me=ft(),Q--,me===e?fe=void 0:(f=fe,fe=e),fe!==e?(o.length>f?(me=o.charAt(f),f++):(me=e,Q===0&&oe(M)),me!==e?(fe=[fe,me],X=fe):(f=X,X=e)):(f=X,X=e),X!==e)for(;X!==e;)D.push(X),X=f,fe=f,Q++,me=ft(),Q--,me===e?fe=void 0:(f=fe,fe=e),fe!==e?(o.length>f?(me=o.charAt(f),f++):(me=e,Q===0&&oe(M)),me!==e?(fe=[fe,me],X=fe):(f=X,X=e)):(f=X,X=e);else D=e;D!==e?(B=[B,D],_=B):(f=_,_=e)}else f=_,_=e;if(_===e&&(_=null),_!==e){if(B=[],D=lt(),D!==e)for(;D!==e;)B.push(D),D=lt();else B=e;B!==e?(he=s,p=re(),s=p):(f=s,s=e)}else f=s,s=e}else f=s,s=e;if(s===e&&(s=f,p=At(),p!==e?(_=qr(),_!==e?(B=Se(),B===e&&(B=null),B!==e?(o.charCodeAt(f)===58?(D=ae,f++):(D=e,Q===0&&oe(O)),D!==e?(X=Se(),X===e&&(X=null),X!==e?(fe=Nt(),fe!==e?(he=s,p=Z(_,fe),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e),s===e&&(s=f,p=At(),p!==e?(_=_t(),_!==e?(B=Se(),B===e&&(B=null),B!==e?(o.charCodeAt(f)===58?(D=ae,f++):(D=e,Q===0&&oe(O)),D!==e?(X=Se(),X===e&&(X=null),X!==e?(fe=Nt(),fe!==e?(he=s,p=Z(_,fe),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e),s===e))){if(s=f,p=At(),p!==e)if(_=_t(),_!==e)if(B=Se(),B!==e)if(D=Dr(),D!==e){if(X=[],fe=lt(),fe!==e)for(;fe!==e;)X.push(fe),fe=lt();else X=e;X!==e?(he=s,p=Z(_,D),s=p):(f=s,s=e)}else f=s,s=e;else f=s,s=e;else f=s,s=e;else f=s,s=e;if(s===e)if(s=f,p=At(),p!==e)if(_=_t(),_!==e){if(B=[],D=f,X=Se(),X===e&&(X=null),X!==e?(o.charCodeAt(f)===44?(fe=te,f++):(fe=e,Q===0&&oe(q)),fe!==e?(me=Se(),me===e&&(me=null),me!==e?(pt=_t(),pt!==e?(he=D,X=ue(_,pt),D=X):(f=D,D=e)):(f=D,D=e)):(f=D,D=e)):(f=D,D=e),D!==e)for(;D!==e;)B.push(D),D=f,X=Se(),X===e&&(X=null),X!==e?(o.charCodeAt(f)===44?(fe=te,f++):(fe=e,Q===0&&oe(q)),fe!==e?(me=Se(),me===e&&(me=null),me!==e?(pt=_t(),pt!==e?(he=D,X=ue(_,pt),D=X):(f=D,D=e)):(f=D,D=e)):(f=D,D=e)):(f=D,D=e);else B=e;B!==e?(D=Se(),D===e&&(D=null),D!==e?(o.charCodeAt(f)===58?(X=ae,f++):(X=e,Q===0&&oe(O)),X!==e?(fe=Se(),fe===e&&(fe=null),fe!==e?(me=Nt(),me!==e?(he=s,p=Ce(_,B,me),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)}else f=s,s=e;else f=s,s=e}return s}function Nt(){var s,p,_,B,D,X,fe;if(s=f,p=f,Q++,_=f,B=ft(),B!==e?(D=Mr(),D!==e?(o.charCodeAt(f)===45?(X=S,f++):(X=e,Q===0&&oe(E)),X!==e?(fe=Se(),fe!==e?(B=[B,D,X,fe],_=B):(f=_,_=e)):(f=_,_=e)):(f=_,_=e)):(f=_,_=e),Q--,_!==e?(f=p,p=void 0):p=e,p!==e?(_=lt(),_!==e?(B=Gt(),B!==e?(D=Nr(),D!==e?(X=hr(),X!==e?(he=s,p=ge(D),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e),s===e&&(s=f,p=ft(),p!==e?(_=Gt(),_!==e?(B=It(),B!==e?(D=hr(),D!==e?(he=s,p=ge(B),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e),s===e))if(s=f,p=Pr(),p!==e){if(_=[],B=lt(),B!==e)for(;B!==e;)_.push(B),B=lt();else _=e;_!==e?(he=s,p=Ae(p),s=p):(f=s,s=e)}else f=s,s=e;return s}function At(){var s,p,_;for(Q++,s=f,p=[],o.charCodeAt(f)===32?(_=je,f++):(_=e,Q===0&&oe(Fe));_!==e;)p.push(_),o.charCodeAt(f)===32?(_=je,f++):(_=e,Q===0&&oe(Fe));return p!==e?(he=f,_=Ue(p),_?_=void 0:_=e,_!==e?(p=[p,_],s=p):(f=s,s=e)):(f=s,s=e),Q--,s===e&&(p=e,Q===0&&oe(Ee)),s}function Mr(){var s,p,_;for(s=f,p=[],o.charCodeAt(f)===32?(_=je,f++):(_=e,Q===0&&oe(Fe));_!==e;)p.push(_),o.charCodeAt(f)===32?(_=je,f++):(_=e,Q===0&&oe(Fe));return p!==e?(he=f,_=ye(p),_?_=void 0:_=e,_!==e?(p=[p,_],s=p):(f=s,s=e)):(f=s,s=e),s}function Gt(){var s;return he=f,s=Me(),s?s=void 0:s=e,s}function hr(){var s;return he=f,s=Ze(),s?s=void 0:s=e,s}function qr(){var s;return s=$t(),s===e&&(s=dr()),s}function _t(){var s,p,_;if(s=$t(),s===e){if(s=f,p=[],_=it(),_!==e)for(;_!==e;)p.push(_),_=it();else p=e;p!==e&&(he=s,p=xe()),s=p}return s}function Pr(){var s;return s=xt(),s===e&&(s=gr(),s===e&&(s=$t(),s===e&&(s=dr()))),s}function Dr(){var s;return s=xt(),s===e&&(s=$t(),s===e&&(s=it())),s}function dr(){var s,p,_,B,D,X;if(Q++,s=f,Ne.test(o.charAt(f))?(p=o.charAt(f),f++):(p=e,Q===0&&oe(De)),p!==e){for(_=[],B=f,D=Se(),D===e&&(D=null),D!==e?(Re.test(o.charAt(f))?(X=o.charAt(f),f++):(X=e,Q===0&&oe(qe)),X!==e?(D=[D,X],B=D):(f=B,B=e)):(f=B,B=e);B!==e;)_.push(B),B=f,D=Se(),D===e&&(D=null),D!==e?(Re.test(o.charAt(f))?(X=o.charAt(f),f++):(X=e,Q===0&&oe(qe)),X!==e?(D=[D,X],B=D):(f=B,B=e)):(f=B,B=e);_!==e?(he=s,p=we(),s=p):(f=s,s=e)}else f=s,s=e;return Q--,s===e&&(p=e,Q===0&&oe(ee)),s}function it(){var s,p,_,B,D;if(s=f,o.substr(f,2)===W?(p=W,f+=2):(p=e,Q===0&&oe(U)),p===e&&(p=null),p!==e)if(ie.test(o.charAt(f))?(_=o.charAt(f),f++):(_=e,Q===0&&oe(ve)),_!==e){for(B=[],Ge.test(o.charAt(f))?(D=o.charAt(f),f++):(D=e,Q===0&&oe(ze));D!==e;)B.push(D),Ge.test(o.charAt(f))?(D=o.charAt(f),f++):(D=e,Q===0&&oe(ze));B!==e?(he=s,p=we(),s=p):(f=s,s=e)}else f=s,s=e;else f=s,s=e;return s}function xt(){var s,p;return s=f,o.substr(f,4)===Pe?(p=Pe,f+=4):(p=e,Q===0&&oe(Ye)),p!==e&&(he=s,p=tt()),s=p,s}function gr(){var s,p;return s=f,o.substr(f,4)===rt?(p=rt,f+=4):(p=e,Q===0&&oe(Ct)),p!==e&&(he=s,p=st()),s=p,s===e&&(s=f,o.substr(f,5)===ut?(p=ut,f+=5):(p=e,Q===0&&oe(wt)),p!==e&&(he=s,p=He()),s=p),s}function $t(){var s,p,_,B;return Q++,s=f,o.charCodeAt(f)===34?(p=Xe,f++):(p=e,Q===0&&oe(Je)),p!==e?(o.charCodeAt(f)===34?(_=Xe,f++):(_=e,Q===0&&oe(Je)),_!==e?(he=s,p=dt(),s=p):(f=s,s=e)):(f=s,s=e),s===e&&(s=f,o.charCodeAt(f)===34?(p=Xe,f++):(p=e,Q===0&&oe(Je)),p!==e?(_=Mt(),_!==e?(o.charCodeAt(f)===34?(B=Xe,f++):(B=e,Q===0&&oe(Je)),B!==e?(he=s,p=St(_),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)),Q--,s===e&&(p=e,Q===0&&oe(ht)),s}function Mt(){var s,p,_;if(s=f,p=[],_=jt(),_!==e)for(;_!==e;)p.push(_),_=jt();else p=e;return p!==e&&(he=s,p=gt(p)),s=p,s}function jt(){var s,p,_,B,D,X;return r.test(o.charAt(f))?(s=o.charAt(f),f++):(s=e,Q===0&&oe(x)),s===e&&(s=f,o.substr(f,2)===$?(p=$,f+=2):(p=e,Q===0&&oe(V)),p!==e&&(he=s,p=P()),s=p,s===e&&(s=f,o.substr(f,2)===u?(p=u,f+=2):(p=e,Q===0&&oe(w)),p!==e&&(he=s,p=j()),s=p,s===e&&(s=f,o.substr(f,2)===R?(p=R,f+=2):(p=e,Q===0&&oe(N)),p!==e&&(he=s,p=H()),s=p,s===e&&(s=f,o.substr(f,2)===T?(p=T,f+=2):(p=e,Q===0&&oe(z)),p!==e&&(he=s,p=K()),s=p,s===e&&(s=f,o.substr(f,2)===ne?(p=ne,f+=2):(p=e,Q===0&&oe(de)),p!==e&&(he=s,p=le()),s=p,s===e&&(s=f,o.substr(f,2)===_e?(p=_e,f+=2):(p=e,Q===0&&oe(kr)),p!==e&&(he=s,p=Er()),s=p,s===e&&(s=f,o.substr(f,2)===nr?(p=nr,f+=2):(p=e,Q===0&&oe(Tt)),p!==e&&(he=s,p=Lt()),s=p,s===e&&(s=f,o.substr(f,2)===mt?(p=mt,f+=2):(p=e,Q===0&&oe(ir)),p!==e&&(he=s,p=or()),s=p,s===e&&(s=f,o.substr(f,2)===Ht?(p=Ht,f+=2):(p=e,Q===0&&oe(_r)),p!==e?(_=ct(),_!==e?(B=ct(),B!==e?(D=ct(),D!==e?(X=ct(),X!==e?(he=s,p=xr(_,B,D,X),s=p):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)):(f=s,s=e)))))))))),s}function ct(){var s;return yt.test(o.charAt(f))?(s=o.charAt(f),f++):(s=e,Q===0&&oe(vt)),s}function Se(){var s,p;if(Q++,s=[],ar.test(o.charAt(f))?(p=o.charAt(f),f++):(p=e,Q===0&&oe(Qe)),p!==e)for(;p!==e;)s.push(p),ar.test(o.charAt(f))?(p=o.charAt(f),f++):(p=e,Q===0&&oe(Qe));else s=e;return Q--,s===e&&(p=e,Q===0&&oe($r)),s}function lt(){var s,p,_,B,D,X;if(s=f,p=ft(),p!==e){for(_=[],B=f,D=Se(),D===e&&(D=null),D!==e?(X=ft(),X!==e?(D=[D,X],B=D):(f=B,B=e)):(f=B,B=e);B!==e;)_.push(B),B=f,D=Se(),D===e&&(D=null),D!==e?(X=ft(),X!==e?(D=[D,X],B=D):(f=B,B=e)):(f=B,B=e);_!==e?(p=[p,_],s=p):(f=s,s=e)}else f=s,s=e;return s}function ft(){var s;return o.substr(f,2)===Bt?(s=Bt,f+=2):(s=e,Q===0&&oe(jr)),s===e&&(o.charCodeAt(f)===10?(s=Or,f++):(s=e,Q===0&&oe(sr)),s===e&&(o.charCodeAt(f)===13?(s=Rr,f++):(s=e,Q===0&&oe(Tr)))),s}const mr=2;let qt=0;if(kt=C(),kt!==e&&f===o.length)return kt;throw kt!==e&&f<o.length&&oe(Fr()),Ir(Wt,Be<o.length?o.charAt(Be):null,Be<o.length?lr(Be,Be+1):lr(Be,Be))}return En={SyntaxError:d,parse:A},En}var Vi;function Ga(){if(Vi)return Rt;Vi=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.PreserveOrdering=void 0,Rt.stringifySyml=m,Rt.parseSyml=y;const l=Wa(),d=Ka(),A=/^(?![-?:,\][{}#&*!|>'"%@` \t\r\n]).([ \t]*(?![,\][{}:# \t\r\n]).)*$/,o=["__metadata","version","resolution","dependencies","peerDependencies","dependenciesMeta","peerDependenciesMeta","binaries"];class h{constructor(v){this.data=v}}Rt.PreserveOrdering=h;function e(b){return b.match(A)?b:JSON.stringify(b)}function g(b){return typeof b>"u"?!0:typeof b=="object"&&b!==null&&!Array.isArray(b)?Object.keys(b).every(v=>g(b[v])):!1}function C(b,v,M){if(b===null)return`null
46
46
  `;if(typeof b=="number"||typeof b=="boolean")return`${b.toString()}
47
47
  `;if(typeof b=="string")return`${e(b)}
48
48
  `;if(Array.isArray(b)){if(b.length===0)return`[]
@@ -55,5 +55,5 @@ ${Ee}:`:`${ge}:`,Fe=Ae.startsWith(`
55
55
  ${te}`:`${te}`}throw new Error(`Unsupported value type (${b})`)}function m(b){try{const v=C(b,0,!1);return v!==`
56
56
  `?v:""}catch(v){throw v.location&&(v.message=v.message.replace(/(\.)?$/,` (line ${v.location.start.line}, column ${v.location.start.column})$1`)),v}}m.PreserveOrdering=h;function S(b){return b.endsWith(`
57
57
  `)||(b+=`
58
- `),(0,d.parse)(b)}const E=/^(#.*(\r?\n))*?#\s+yarn\s+lockfile\s+v1\r?\n/i;function Y(b){if(E.test(b))return S(b);const v=(0,l.safeLoad)(b,{schema:l.FAILSAFE_SCHEMA,json:!0});if(v==null)return{};if(typeof v!="object")throw new Error(`Expected an indexed object, got a ${typeof v} instead. Does your file follow Yaml's rules?`);if(Array.isArray(v))throw new Error("Expected an indexed object, got an array instead. Does your file follow Yaml's rules?");return v}function y(b){return Y(b)}return Tt}var Zi;function Ga(){return Zi||(Zi=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.stringifySyml=l.parseSyml=l.stringifyResolution=l.parseResolution=l.stringifyValueArgument=l.stringifyShellLine=l.stringifyRedirectArgument=l.stringifyEnvSegment=l.stringifyCommandLineThen=l.stringifyCommandLine=l.stringifyCommandChainThen=l.stringifyCommandChain=l.stringifyCommand=l.stringifyArithmeticExpression=l.stringifyArgumentSegment=l.stringifyArgument=l.stringifyShell=l.parseShell=void 0;var d=Ca();Object.defineProperty(l,"parseShell",{enumerable:!0,get:function(){return d.parseShell}}),Object.defineProperty(l,"stringifyShell",{enumerable:!0,get:function(){return d.stringifyShell}}),Object.defineProperty(l,"stringifyArgument",{enumerable:!0,get:function(){return d.stringifyArgument}}),Object.defineProperty(l,"stringifyArgumentSegment",{enumerable:!0,get:function(){return d.stringifyArgumentSegment}}),Object.defineProperty(l,"stringifyArithmeticExpression",{enumerable:!0,get:function(){return d.stringifyArithmeticExpression}}),Object.defineProperty(l,"stringifyCommand",{enumerable:!0,get:function(){return d.stringifyCommand}}),Object.defineProperty(l,"stringifyCommandChain",{enumerable:!0,get:function(){return d.stringifyCommandChain}}),Object.defineProperty(l,"stringifyCommandChainThen",{enumerable:!0,get:function(){return d.stringifyCommandChainThen}}),Object.defineProperty(l,"stringifyCommandLine",{enumerable:!0,get:function(){return d.stringifyCommandLine}}),Object.defineProperty(l,"stringifyCommandLineThen",{enumerable:!0,get:function(){return d.stringifyCommandLineThen}}),Object.defineProperty(l,"stringifyEnvSegment",{enumerable:!0,get:function(){return d.stringifyEnvSegment}}),Object.defineProperty(l,"stringifyRedirectArgument",{enumerable:!0,get:function(){return d.stringifyRedirectArgument}}),Object.defineProperty(l,"stringifyShellLine",{enumerable:!0,get:function(){return d.stringifyShellLine}}),Object.defineProperty(l,"stringifyValueArgument",{enumerable:!0,get:function(){return d.stringifyValueArgument}});var A=Sa();Object.defineProperty(l,"parseResolution",{enumerable:!0,get:function(){return A.parseResolution}}),Object.defineProperty(l,"stringifyResolution",{enumerable:!0,get:function(){return A.stringifyResolution}});var o=Ka();Object.defineProperty(l,"parseSyml",{enumerable:!0,get:function(){return o.parseSyml}}),Object.defineProperty(l,"stringifySyml",{enumerable:!0,get:function(){return o.stringifySyml}})})(Vr)),Vr}var zi=Ga();const Qt="__metadata",Ja=l=>{const d=l.trim();if(d==="")return;const A=d.startsWith("@")?1:0,o=d.indexOf("@",A);if(o!==-1)return{name:d.slice(0,o),spec:d.slice(o+1)}},Va=l=>l.split(",").map(d=>Ja(d)).filter(d=>d!==void 0),Za=l=>{const d=new Map;for(const A of Object.keys(l)){if(A==="__metadata")continue;const o=Va(A),h=new Map;for(const{name:e,spec:g}of o){const C=h.get(e);C?C.push(g):h.set(e,[g])}for(const[e,g]of h){const C=d.get(e);C?C.push({key:A,specs:g}):d.set(e,[{key:A,specs:g}])}}return d},Xi=(l,d,A)=>{const o=l.get(d);if(!o)return[];const h=new Set([A]);return A.includes(":")?A.startsWith("npm:")&&h.add(A.slice(4)):h.add(`npm:${A}`),o.filter(e=>e.specs.some(g=>h.has(g))).map(e=>e.key)},za=(l,d)=>{const A=new Set,o=new Set(d.map(h=>h.relativeRoot).filter(h=>h!==""));for(const[h,e]of Object.entries(l)){if(h==="__metadata")continue;const{resolution:g}=e;if(typeof g!="string"||!g.includes("@workspace:"))continue;const C=g.split("@workspace:")[1];C!==void 0&&(C==="."||o.has(C))&&A.add(h)}return A},Xa=l=>{const d=[];for(const A of[l.dependencies,l.optionalDependencies])if(A)for(const[o,h]of Object.entries(A))typeof h=="string"&&d.push({name:o,spec:h});return d},Qa=l=>{const d=typeof l.lockfileContent=="string"?l.lockfileContent:l.lockfileContent.toString("utf8");let A;try{A=zi.parseSyml(d)}catch(y){throw new et(`yarn.lock: parse failed — ${y.message}`)}if(!A||typeof A!="object")throw new et("yarn.lock: top-level value is not an object");const o=Za(A),h=new Set;A[Qt]!==void 0&&h.add(Qt);const e=za(A,l.closure);for(const y of e)h.add(y);for(const y of l.closure)if(y.deps)for(const[b,v]of Object.entries(y.deps)){if(typeof v!="string"||v.startsWith("workspace:")||v.startsWith("link:")||v.startsWith("portal:"))continue;const M=Xi(o,b,v);for(const re of M)h.add(re)}const g=[...h];for(;g.length>0;){const y=g.shift();if(y==="__metadata")continue;const b=A[y];if(b)for(const{name:v,spec:M}of Xa(b)){if(M.startsWith("workspace:")||M.startsWith("link:")||M.startsWith("portal:"))continue;const re=Xi(o,v,M);for(const ae of re)h.has(ae)||(h.add(ae),g.push(ae))}}const C={};for(const y of Object.keys(A))h.has(y)&&(C[y]=A[y]);const m=Object.keys(A).length-(A[Qt]===void 0?0:1),S=h.size-(h.has(Qt)?1:0),E=m-S,Y=A[Qt]!==void 0;return{content:zi.stringifySyml(C),message:`yarn.lock (${Y?"berry":"classic"}): kept ${S}/${m} entries (dropped ${E})`,status:"pruned"}},es=l=>{switch(l.packageManager){case"aube":return fa(l);case"bun":return ma(l);case"npm":return Aa(l);case"pnpm":return io(l);case"yarn":return Qa(l);default:{const d=l.packageManager;throw new et(`Unsupported package manager: ${d}`)}}},ts=(l,d)=>{const A=new Set,o=[l],h=new Set([l]);for(;o.length>0;){const e=o.shift(),g=d.dependencies[e]??[];for(const C of g)h.has(C.target)||(h.add(C.target),A.add(C.target),o.push(C.target))}return A},wr="vis-docker-manifest.json",rs=["package.json","project.json"],ns=[{file:"bun.lock",manager:"bun"},{file:"bun.lockb",manager:"bun"},{file:"npm-shrinkwrap.json",manager:"npm"},{file:"package-lock.json",manager:"npm"},{file:"pnpm-lock.yaml",manager:"pnpm"},{file:"yarn.lock",manager:"yarn"}],is=["package.json","pnpm-workspace.yaml",".npmrc","vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],os=(l,d)=>{const A=new Set(l);for(const o of l){const h=ts(o,d);for(const e of h)A.add(e)}return A},Dt=l=>{aa(l)},er=(l,d)=>{try{return Dt(xn(d)),to(l,d),!0}catch(A){if(A.code==="ENOENT")return!1;throw A}},uo=(l,d)=>{let A;try{A=ra(l)}catch{return}if(!A.isSymbolicLink()){if(A.isFile()){Dt(xn(d)),to(l,d);return}Dt(d);for(const o of na(l,{withFileTypes:!0}))o.name==="node_modules"||o.name===".git"||o.isSymbolicLink()||uo(Ie(l,o.name),Ie(d,o.name))}},Qi=l=>{if(!eo(l))return;let d;try{d=ro(l)}catch{return}const A={};for(const o of["dependencies","devDependencies","optionalDependencies","peerDependencies"]){const h=d[o];if(!(h===null||typeof h!="object"||Array.isArray(h)))for(const[e,g]of Object.entries(h))typeof g=="string"&&(A[e]=g)}return{deps:A,name:typeof d.name=="string"?d.name:void 0}},ls=l=>{const{focus:d,includeSources:A=!1,log:o=M=>{console.log(M)},outDir:h,projectGraph:e,pruneLockfile:g=!0,workspace:C,workspaceRoot:m}=l,S=d.filter(M=>C.projects[M]===void 0);if(S.length>0)throw new Error(`Unknown focus project(s): ${S.join(", ")}. Check project names in your workspace.`);const E=os(d,e),Y=Ie(h,"workspace"),y=Ie(h,"sources");_n(Y,{force:!0,recursive:!0}),_n(y,{force:!0,recursive:!0}),Dt(Y);for(const M of is)er(Ie(m,M),Ie(Y,M));const b=Qi(Ie(m,"package.json")),v=[{deps:b?.deps,name:b?.name,relativeRoot:""}];for(const M of E){const re=C.projects[M];if(!re?.root)continue;for(const O of rs)er(Ie(m,re.root,O),Ie(Y,re.root,O));const ae=Qi(Ie(m,re.root,"package.json"));v.push({deps:ae?.deps,name:ae?.name,relativeRoot:re.root})}for(const{file:M,manager:re}of ns){const ae=Ie(m,M);if(!eo(ae))continue;const O=Ie(Y,M);if(!g){er(ae,O);continue}const Z=M.endsWith(".lockb")?li(ae):li(ae,"utf8");try{const te=es({closure:v,displayName:M,lockfileContent:Z,packageManager:re});te.status==="pruned"&&te.content!==void 0?(Dt(xn(O)),fi(O,te.content)):er(ae,O),o(te.message)}catch(te){if(te instanceof et)o(`${M}: pruning failed (${te.message}); copying verbatim`),er(ae,O);else throw te}}if(A){Dt(y);for(const M of d){const re=C.projects[M];re?.root&&uo(Ie(m,re.root),Ie(y,re.root))}}return fi(Ie(h,wr),`${JSON.stringify({focus:d,projects:[...E].sort()},null,2)}
59
- `),{projects:[...E]}},fs=l=>{const{contextRoot:d,workspace:A,workspaceRoot:o}=l,h=Ie(d,wr);if(!ia(h))throw new Error(`No ${wr} at ${d}. Run \`vis docker scaffold\` first.`);const e=ro(h);if(!Array.isArray(e.projects))throw new TypeError(`Invalid ${wr}: "projects" must be an array.`);const g=new Set(e.projects),C=[];for(const[m,S]of Object.entries(A.projects)){if(g.has(m)||!S.root)continue;const E=Ie(o,S.root),Y=oa(o,E);Y===""||Y==="."||Y.startsWith("..")||(_n(E,{force:!0,recursive:!0}),C.push(Y))}return{removed:C}};export{fs as p,os as r,ls as s};
58
+ `),(0,d.parse)(b)}const E=/^(#.*(\r?\n))*?#\s+yarn\s+lockfile\s+v1\r?\n/i;function Y(b){if(E.test(b))return S(b);const v=(0,l.safeLoad)(b,{schema:l.FAILSAFE_SCHEMA,json:!0});if(v==null)return{};if(typeof v!="object")throw new Error(`Expected an indexed object, got a ${typeof v} instead. Does your file follow Yaml's rules?`);if(Array.isArray(v))throw new Error("Expected an indexed object, got an array instead. Does your file follow Yaml's rules?");return v}function y(b){return Y(b)}return Rt}var Zi;function Ja(){return Zi||(Zi=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.stringifySyml=l.parseSyml=l.stringifyResolution=l.parseResolution=l.stringifyValueArgument=l.stringifyShellLine=l.stringifyRedirectArgument=l.stringifyEnvSegment=l.stringifyCommandLineThen=l.stringifyCommandLine=l.stringifyCommandChainThen=l.stringifyCommandChain=l.stringifyCommand=l.stringifyArithmeticExpression=l.stringifyArgumentSegment=l.stringifyArgument=l.stringifyShell=l.parseShell=void 0;var d=wa();Object.defineProperty(l,"parseShell",{enumerable:!0,get:function(){return d.parseShell}}),Object.defineProperty(l,"stringifyShell",{enumerable:!0,get:function(){return d.stringifyShell}}),Object.defineProperty(l,"stringifyArgument",{enumerable:!0,get:function(){return d.stringifyArgument}}),Object.defineProperty(l,"stringifyArgumentSegment",{enumerable:!0,get:function(){return d.stringifyArgumentSegment}}),Object.defineProperty(l,"stringifyArithmeticExpression",{enumerable:!0,get:function(){return d.stringifyArithmeticExpression}}),Object.defineProperty(l,"stringifyCommand",{enumerable:!0,get:function(){return d.stringifyCommand}}),Object.defineProperty(l,"stringifyCommandChain",{enumerable:!0,get:function(){return d.stringifyCommandChain}}),Object.defineProperty(l,"stringifyCommandChainThen",{enumerable:!0,get:function(){return d.stringifyCommandChainThen}}),Object.defineProperty(l,"stringifyCommandLine",{enumerable:!0,get:function(){return d.stringifyCommandLine}}),Object.defineProperty(l,"stringifyCommandLineThen",{enumerable:!0,get:function(){return d.stringifyCommandLineThen}}),Object.defineProperty(l,"stringifyEnvSegment",{enumerable:!0,get:function(){return d.stringifyEnvSegment}}),Object.defineProperty(l,"stringifyRedirectArgument",{enumerable:!0,get:function(){return d.stringifyRedirectArgument}}),Object.defineProperty(l,"stringifyShellLine",{enumerable:!0,get:function(){return d.stringifyShellLine}}),Object.defineProperty(l,"stringifyValueArgument",{enumerable:!0,get:function(){return d.stringifyValueArgument}});var A=ka();Object.defineProperty(l,"parseResolution",{enumerable:!0,get:function(){return A.parseResolution}}),Object.defineProperty(l,"stringifyResolution",{enumerable:!0,get:function(){return A.stringifyResolution}});var o=Ga();Object.defineProperty(l,"parseSyml",{enumerable:!0,get:function(){return o.parseSyml}}),Object.defineProperty(l,"stringifySyml",{enumerable:!0,get:function(){return o.stringifySyml}})})(Vr)),Vr}var zi=Ja();const Qt="__metadata",Va=l=>{const d=l.trim();if(d==="")return;const A=d.startsWith("@")?1:0,o=d.indexOf("@",A);if(o!==-1)return{name:d.slice(0,o),spec:d.slice(o+1)}},Za=l=>l.split(",").map(d=>Va(d)).filter(d=>d!==void 0),za=l=>{const d=new Map;for(const A of Object.keys(l)){if(A==="__metadata")continue;const o=Za(A),h=new Map;for(const{name:e,spec:g}of o){const C=h.get(e);C?C.push(g):h.set(e,[g])}for(const[e,g]of h){const C=d.get(e);C?C.push({key:A,specs:g}):d.set(e,[{key:A,specs:g}])}}return d},Xi=(l,d,A)=>{const o=l.get(d);if(!o)return[];const h=new Set([A]);return A.includes(":")?A.startsWith("npm:")&&h.add(A.slice(4)):h.add(`npm:${A}`),o.filter(e=>e.specs.some(g=>h.has(g))).map(e=>e.key)},Xa=(l,d)=>{const A=new Set,o=new Set(d.map(h=>h.relativeRoot).filter(h=>h!==""));for(const[h,e]of Object.entries(l)){if(h==="__metadata")continue;const{resolution:g}=e;if(typeof g!="string"||!g.includes("@workspace:"))continue;const C=g.split("@workspace:")[1];C!==void 0&&(C==="."||o.has(C))&&A.add(h)}return A},Qa=l=>{const d=[];for(const A of[l.dependencies,l.optionalDependencies])if(A)for(const[o,h]of Object.entries(A))typeof h=="string"&&d.push({name:o,spec:h});return d},es=l=>{const d=typeof l.lockfileContent=="string"?l.lockfileContent:l.lockfileContent.toString("utf8");let A;try{A=zi.parseSyml(d)}catch(y){throw new et(`yarn.lock: parse failed — ${y.message}`)}if(!A||typeof A!="object")throw new et("yarn.lock: top-level value is not an object");const o=za(A),h=new Set;A[Qt]!==void 0&&h.add(Qt);const e=Xa(A,l.closure);for(const y of e)h.add(y);for(const y of l.closure)if(y.deps)for(const[b,v]of Object.entries(y.deps)){if(typeof v!="string"||v.startsWith("workspace:")||v.startsWith("link:")||v.startsWith("portal:"))continue;const M=Xi(o,b,v);for(const re of M)h.add(re)}const g=[...h];for(;g.length>0;){const y=g.shift();if(y==="__metadata")continue;const b=A[y];if(b)for(const{name:v,spec:M}of Qa(b)){if(M.startsWith("workspace:")||M.startsWith("link:")||M.startsWith("portal:"))continue;const re=Xi(o,v,M);for(const ae of re)h.has(ae)||(h.add(ae),g.push(ae))}}const C={};for(const y of Object.keys(A))h.has(y)&&(C[y]=A[y]);const m=Object.keys(A).length-(A[Qt]===void 0?0:1),S=h.size-(h.has(Qt)?1:0),E=m-S,Y=A[Qt]!==void 0;return{content:zi.stringifySyml(C),message:`yarn.lock (${Y?"berry":"classic"}): kept ${S}/${m} entries (dropped ${E})`,status:"pruned"}},ts=l=>{switch(l.packageManager){case"aube":return pa(l);case"bun":return ya(l);case"npm":return ba(l);case"pnpm":return io(l);case"yarn":return es(l);default:{const d=l.packageManager;throw new et(`Unsupported package manager: ${d}`)}}},rs=(l,d)=>{const A=new Set,o=[l],h=new Set([l]);for(;o.length>0;){const e=o.shift(),g=d.dependencies[e]??[];for(const C of g)h.has(C.target)||(h.add(C.target),A.add(C.target),o.push(C.target))}return A},wr="vis-docker-manifest.json",ns=["package.json","project.json"],is=[{file:"bun.lock",manager:"bun"},{file:"bun.lockb",manager:"bun"},{file:"npm-shrinkwrap.json",manager:"npm"},{file:"package-lock.json",manager:"npm"},{file:"pnpm-lock.yaml",manager:"pnpm"},{file:"yarn.lock",manager:"yarn"}],os=["package.json","pnpm-workspace.yaml",".npmrc","vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],as=(l,d)=>{const A=new Set(l);for(const o of l){const h=rs(o,d);for(const e of h)A.add(e)}return A},Dt=l=>{sa(l)},er=(l,d)=>{try{return Dt($n(d)),to(l,d),!0}catch(A){if(A.code==="ENOENT")return!1;throw A}},uo=(l,d)=>{let A;try{A=na(l)}catch{return}if(!A.isSymbolicLink()){if(A.isFile()){Dt($n(d)),to(l,d);return}Dt(d);for(const o of ia(l,{withFileTypes:!0}))o.name==="node_modules"||o.name===".git"||o.isSymbolicLink()||uo(Ie(l,o.name),Ie(d,o.name))}},Qi=l=>{if(!eo(l))return;let d;try{d=ro(l)}catch{return}const A={};for(const o of["dependencies","devDependencies","optionalDependencies","peerDependencies"]){const h=d[o];if(!(h===null||typeof h!="object"||Array.isArray(h)))for(const[e,g]of Object.entries(h))typeof g=="string"&&(A[e]=g)}return{deps:A,name:typeof d.name=="string"?d.name:void 0}},fs=l=>{const{focus:d,includeSources:A=!1,log:o=M=>{console.log(M)},outDir:h,projectGraph:e,pruneLockfile:g=!0,workspace:C,workspaceRoot:m}=l,S=d.filter(M=>C.projects[M]===void 0);if(S.length>0)throw new Error(`Unknown focus project(s): ${S.join(", ")}. Check project names in your workspace.`);const E=as(d,e),Y=Ie(h,"workspace"),y=Ie(h,"sources");_n(Y,{force:!0,recursive:!0}),_n(y,{force:!0,recursive:!0}),Dt(Y);for(const M of os)er(Ie(m,M),Ie(Y,M));const b=Qi(Ie(m,"package.json")),v=[{deps:b?.deps,name:b?.name,relativeRoot:""}];for(const M of E){const re=C.projects[M];if(!re?.root)continue;for(const O of ns)er(Ie(m,re.root,O),Ie(Y,re.root,O));const ae=Qi(Ie(m,re.root,"package.json"));v.push({deps:ae?.deps,name:ae?.name,relativeRoot:re.root})}for(const{file:M,manager:re}of is){const ae=Ie(m,M);if(!eo(ae))continue;const O=Ie(Y,M);if(!g){er(ae,O);continue}const Z=M.endsWith(".lockb")?li(ae):li(ae,"utf8");try{const te=ts({closure:v,displayName:M,lockfileContent:Z,packageManager:re});te.status==="pruned"&&te.content!==void 0?(Dt($n(O)),fi(O,te.content)):er(ae,O),o(te.message)}catch(te){if(te instanceof et)o(`${M}: pruning failed (${te.message}); copying verbatim`),er(ae,O);else throw te}}if(A){Dt(y);for(const M of d){const re=C.projects[M];re?.root&&uo(Ie(m,re.root),Ie(y,re.root))}}return fi(Ie(h,wr),`${JSON.stringify({focus:d,projects:[...E].sort()},null,2)}
59
+ `),{projects:[...E]}},ps=l=>{const{contextRoot:d,workspace:A,workspaceRoot:o}=l,h=Ie(d,wr);if(!oa(h))throw new Error(`No ${wr} at ${d}. Run \`vis docker scaffold\` first.`);const e=ro(h);if(!Array.isArray(e.projects))throw new TypeError(`Invalid ${wr}: "projects" must be an array.`);const g=new Set(e.projects),C=[];for(const[m,S]of Object.entries(A.projects)){if(g.has(m)||!S.root)continue;const E=Ie(o,S.root),Y=aa(o,E);Y===""||Y==="."||Y.startsWith("..")||(_n(E,{force:!0,recursive:!0}),C.push(Y))}return{removed:C}};export{ps as p,as as r,fs as s};