codeassembly-guidance 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/.meta/changelog.json +984 -0
  2. package/CHANGELOG.md +240 -0
  3. package/README.md +45 -99
  4. package/bin/codeassembly-validate-preferences.js +18 -0
  5. package/content/_partials/README.md +21 -5
  6. package/content/_partials/comment-discipline.md +1 -1
  7. package/content/_partials/diff-audit-checklist.md +1 -0
  8. package/content/_partials/kb-standard-tags.md +7 -0
  9. package/content/_partials/plain-speech-calibration.md +4 -0
  10. package/content/_partials/technical-recommendations.md +1 -0
  11. package/content/codeassembly-content.yaml +17 -1
  12. package/content/collections/all.md +2 -2
  13. package/content/collections/atlassian.md +2 -1
  14. package/content/collections/recommended.md +9 -2
  15. package/content/collections/triage.md +3 -67
  16. package/content/collections/williamthorsen.md +2 -1
  17. package/content/guidance/README.md +1 -1
  18. package/content/guidance/rulebooks/accessibility-conventions.md +23 -5
  19. package/content/guidance/rulebooks/cli-conventions.md +206 -0
  20. package/content/guidance/rulebooks/codeassembly-content-specification.md +50 -10
  21. package/content/guidance/rulebooks/commit-conventions.md +5 -4
  22. package/content/guidance/rulebooks/live-worktree-policy.md +3 -2
  23. package/content/guidance/rulebooks/readme-conventions.md +3 -3
  24. package/content/guidance/rulebooks/shared-data-conventions.md +2 -2
  25. package/content/guidance/rulebooks/shell-conventions.md +17 -23
  26. package/content/guidance/rulebooks/ui-copy-conventions.md +34 -0
  27. package/content/guidance/rulebooks/williamthorsen-collaboration-preferences.md +18 -12
  28. package/content/guidance/rulebooks/williamthorsen-ticketing-preferences.md +3 -3
  29. package/content/guidance/rulebooks/williamthorsen-tooling-preferences.md +6 -6
  30. package/content/guidance/rulebooks/williamthorsen-typescript-preferences.md +1 -1
  31. package/content/guidance/rulebooks/williamthorsen-workflow-preferences.md +7 -7
  32. package/content/guidance/rulebooks/williamthorsen-writing-preferences.md +28 -1
  33. package/content/guidance/shared/AGENTS.md +39 -4
  34. package/content/scripts/README.md +5 -2
  35. package/content/scripts/check-branch-currency.mjs +11 -0
  36. package/content/scripts/check-prose.mjs +171 -0
  37. package/content/scripts/describe-change.mjs +98 -98
  38. package/content/scripts/manage-jira-ticket.mjs +99 -94
  39. package/content/scripts/resolve-frontmatter.sh +1 -1
  40. package/content/scripts/resolve-review-run.mjs +9 -9
  41. package/content/scripts/select-lede-exemplars.mjs +87 -87
  42. package/content/scripts/validate-preferences.mjs +146 -0
  43. package/content/skills/_data/action-items.md +2 -0
  44. package/content/skills/_data/artifact-conventions.md +64 -16
  45. package/content/skills/_data/branch-currency.md +36 -0
  46. package/content/skills/_data/change-record.md +2 -2
  47. package/content/skills/_data/complexity-classification.md +1 -1
  48. package/content/skills/_data/design-priorities.md +15 -4
  49. package/content/skills/_data/project-stage.md +32 -0
  50. package/content/skills/_data/recommendation-gradient.md +9 -7
  51. package/content/skills/_data/scope-and-deferral.md +1 -1
  52. package/content/skills/_data/spike-conventions.md +21 -6
  53. package/content/skills/_data/ticket-evaluation.md +2 -2
  54. package/content/skills/_data/ticket-source-resolution.md +36 -3
  55. package/content/skills/_data/title-templates.md +22 -12
  56. package/content/skills/_partials/action-items.md +2 -2
  57. package/content/skills/_partials/apply-guidance-edits.md +5 -0
  58. package/content/skills/_partials/commit-title-rendering.md +1 -1
  59. package/content/skills/_partials/jira-task-list-flattening.md +1 -0
  60. package/content/skills/_partials/next-steps-after-plan.md +11 -11
  61. package/content/skills/_partials/option-format.md +18 -17
  62. package/content/skills/_partials/plan-template.md +7 -5
  63. package/content/skills/_partials/split-ticket-compose.md +1 -1
  64. package/content/skills/_partials/split-ticket-create.md +1 -1
  65. package/content/skills/_partials/ticket-and-plan-completeness.md +2 -2
  66. package/content/skills/_partials/ticket-composition.md +40 -0
  67. package/content/skills/_partials/ticket-criteria-conventions.md +3 -3
  68. package/content/skills/_partials/ticket-skeleton.md +15 -1
  69. package/content/skills/add-change-record/SKILL.md +2 -2
  70. package/content/skills/align-ticket-with-implementation/SKILL.md +3 -7
  71. package/content/skills/anti-patterns/SKILL.md +1 -1
  72. package/content/skills/assess-code-health/SKILL.md +127 -0
  73. package/content/skills/assess-code-health/assess-code-health.mjs +77 -0
  74. package/content/skills/assess-usability/SKILL.md +98 -0
  75. package/content/skills/capture-event/SKILL.md +4 -2
  76. package/content/skills/capture-event/capture-event.mjs +89 -89
  77. package/content/skills/capture-feedback/SKILL.md +1 -1
  78. package/content/skills/capture-lede-decision/SKILL.md +4 -4
  79. package/content/skills/capture-lede-decision/capture-lede-decision.mjs +98 -98
  80. package/content/skills/collaborate/SKILL.md +3 -3
  81. package/content/skills/create-bitbucket-pr/SKILL.md +2 -1
  82. package/content/skills/create-commit/SKILL.md +1 -1
  83. package/content/skills/create-gh-pr/SKILL.md +28 -10
  84. package/content/skills/create-pr/SKILL.md +7 -6
  85. package/content/skills/create-ticket/SKILL.md +64 -23
  86. package/content/skills/create-ticket/resolve-ticket-target.mjs +143 -0
  87. package/content/skills/derive-session-context/derive-session-context.mjs +83 -82
  88. package/content/skills/design-and-plan/SKILL.md +17 -18
  89. package/content/skills/groom-backlog/SKILL.md +8 -6
  90. package/content/skills/groom-backlog/groom-backlog.mjs +64 -62
  91. package/content/skills/implement-plan/SKILL.md +27 -23
  92. package/content/skills/index-prototypes/SKILL.md +86 -31
  93. package/content/skills/index-prototypes/index-prototypes.mjs +76 -16
  94. package/content/skills/kb-add/SKILL.md +4 -1
  95. package/content/skills/kb-add/kb-add.mjs +128 -128
  96. package/content/skills/kb-curate/SKILL.md +9 -7
  97. package/content/skills/kb-curate/kb-curate.mjs +103 -103
  98. package/content/skills/kb-edit/SKILL.md +5 -3
  99. package/content/skills/kb-edit/kb-edit.mjs +94 -94
  100. package/content/skills/kb-retrieve/kb-retrieve.mjs +86 -85
  101. package/content/skills/kb-retrieve-events/SKILL.md +20 -11
  102. package/content/skills/kb-retrieve-events/kb-retrieve-events.mjs +86 -85
  103. package/content/skills/kb-update-events/SKILL.md +10 -7
  104. package/content/skills/kb-update-events/kb-update-events.mjs +110 -109
  105. package/content/skills/lesson-clusters/lesson-clusters.mjs +209 -0
  106. package/content/skills/merge-bb-pr/SKILL.md +1 -1
  107. package/content/skills/merge-gh-pr/merge-gh-pr.mjs +5 -5
  108. package/content/skills/merge-pr/SKILL.md +11 -11
  109. package/content/skills/migrate-feedback-memories/SKILL.md +3 -2
  110. package/content/skills/migrate-feedback-memories/feedback-memories.mjs +76 -76
  111. package/content/skills/plan/SKILL.md +2 -2
  112. package/content/skills/prepare-prototype-brief/SKILL.md +66 -14
  113. package/content/skills/pull-from-backlog/SKILL.md +3 -3
  114. package/content/skills/pull-from-backlog/pull-from-backlog.mjs +83 -82
  115. package/content/skills/refine-guidance/SKILL.md +97 -0
  116. package/content/skills/refine-plan/SKILL.md +7 -3
  117. package/content/skills/refine-prototype/SKILL.md +113 -0
  118. package/content/skills/respond-to-review/SKILL.md +1 -1
  119. package/content/skills/review-bb-pr/SKILL.md +1 -1
  120. package/content/skills/review-branch/SKILL.md +354 -3
  121. package/content/skills/review-criteria/SKILL.md +36 -3
  122. package/content/skills/review-gh-pr/select-pr-ticket.mjs +6 -6
  123. package/content/skills/revise-comments/SKILL.md +38 -5
  124. package/content/skills/revise-prose/SKILL.md +1 -1
  125. package/content/skills/revise-prose/revise-prose.mjs +119 -119
  126. package/content/skills/save-artifact/SKILL.md +3 -1
  127. package/content/skills/streamline-guidance/SKILL.md +11 -16
  128. package/content/skills/streamline-guidance/streamline-guidance.mjs +86 -86
  129. package/content/skills/summarize-change/SKILL.md +23 -14
  130. package/content/skills/testing-conventions/SKILL.md +81 -8
  131. package/content/skills/triage-feedback/SKILL.md +150 -0
  132. package/content/skills/triage-feedback/triage-feedback.mjs +70 -0
  133. package/content/skills/triage-spike-findings/SKILL.md +113 -0
  134. package/content/skills/triage-spike-findings/triage-spike-findings.mjs +73 -0
  135. package/content/skills/typescript-testing-conventions/SKILL.md +50 -1
  136. package/content/skills/update-jira-ticket/SKILL.md +20 -8
  137. package/content/skills/update-jira-ticket/update-jira-ticket.mjs +7 -7
  138. package/content/skills/update-project-guidance/SKILL.md +12 -12
  139. package/content/subagents/_data/claude.yaml +6 -0
  140. package/content/subagents/_data/rovo.yaml +12 -2
  141. package/content/subagents/canary.md +2 -1
  142. package/content/subagents/code-health-assessor.md +98 -0
  143. package/content/subagents/disposition-challenger.md +78 -0
  144. package/content/subagents/entry-drafter.md +14 -10
  145. package/content/subagents/feedback-triage-challenger.md +81 -0
  146. package/content/subagents/handoff-reviewer.md +2 -2
  147. package/content/subagents/lesson-clusterer.md +68 -0
  148. package/content/subagents/plan-reviewer.md +1 -1
  149. package/content/subagents/prose-reviser.md +4 -2
  150. package/content/subagents/ticket-assessor.md +9 -6
  151. package/content/subagents/usability-assessor.md +157 -0
  152. package/package.json +21 -17
  153. package/schemas/preferences.v1.json +50 -7
  154. package/schemas/work-types.v1.json +1 -1
  155. package/content/_partials/code-descriptions.md +0 -4
  156. package/content/_partials/code-style.md +0 -7
  157. package/content/_partials/live-repo-writes.md +0 -13
  158. package/content/_partials/reduced-object-relative.md +0 -28
  159. package/content/_partials/test-structure-audit-checklist.md +0 -7
  160. package/content/skills/_partials/acceptance-criteria-scaffold.md +0 -15
  161. package/content/skills/_partials/next-steps-after-review.md +0 -350
  162. package/content/skills/_partials/ticket-concision.md +0 -18
  163. package/content/skills/_partials/ticket-placement.md +0 -14
  164. package/content/skills/_partials/ticket-skeleton-tiers.md +0 -6
  165. package/content/skills/testing-conventions/mistakes.md +0 -1
@@ -0,0 +1,146 @@
1
+ import { createRequire as __cjsCreateRequire } from 'node:module';
2
+ const require = __cjsCreateRequire(import.meta.url);
3
+ var jo=Object.create;var Zt=Object.defineProperty;var Bo=Object.getOwnPropertyDescriptor;var Ko=Object.getOwnPropertyNames;var Ro=Object.getPrototypeOf,Fo=Object.prototype.hasOwnProperty;var a=(s,e)=>Zt(s,"name",{value:e,configurable:!0}),Ze=(s=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(s,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):s)(function(s){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+s+'" is not supported')});var y=(s,e)=>()=>{try{return e||s((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}};var Uo=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ko(e))!Fo.call(s,n)&&n!==t&&Zt(s,n,{get:()=>e[n],enumerable:!(i=Bo(e,n))||i.enumerable});return s};var Yo=(s,e,t)=>(t=s!=null?jo(Ro(s)):{},Uo(e||!s||!s.__esModule?Zt(t,"default",{value:s,enumerable:!0}):t,s));var O=y($=>{"use strict";var es=Symbol.for("yaml.alias"),Di=Symbol.for("yaml.document"),et=Symbol.for("yaml.map"),ji=Symbol.for("yaml.pair"),ts=Symbol.for("yaml.scalar"),tt=Symbol.for("yaml.seq"),U=Symbol.for("yaml.node.type"),Jo=a(s=>!!s&&typeof s=="object"&&s[U]===es,"isAlias"),Vo=a(s=>!!s&&typeof s=="object"&&s[U]===Di,"isDocument"),xo=a(s=>!!s&&typeof s=="object"&&s[U]===et,"isMap"),Wo=a(s=>!!s&&typeof s=="object"&&s[U]===ji,"isPair"),Bi=a(s=>!!s&&typeof s=="object"&&s[U]===ts,"isScalar"),Go=a(s=>!!s&&typeof s=="object"&&s[U]===tt,"isSeq");function Ki(s){if(s&&typeof s=="object")switch(s[U]){case et:case tt:return!0}return!1}a(Ki,"isCollection");function Qo(s){if(s&&typeof s=="object")switch(s[U]){case es:case et:case ts:case tt:return!0}return!1}a(Qo,"isNode");var Ho=a(s=>(Bi(s)||Ki(s))&&!!s.anchor,"hasAnchor");$.ALIAS=es;$.DOC=Di;$.MAP=et;$.NODE_TYPE=U;$.PAIR=ji;$.SCALAR=ts;$.SEQ=tt;$.hasAnchor=Ho;$.isAlias=Jo;$.isCollection=Ki;$.isDocument=Vo;$.isMap=xo;$.isNode=Qo;$.isPair=Wo;$.isScalar=Bi;$.isSeq=Go});var ke=y(ss=>{"use strict";var P=O(),M=Symbol("break visit"),Ri=Symbol("skip children"),R=Symbol("remove node");function st(s,e){let t=Fi(e);P.isDocument(s)?ce(null,s.contents,t,Object.freeze([s]))===R&&(s.contents=null):ce(null,s,t,Object.freeze([]))}a(st,"visit");st.BREAK=M;st.SKIP=Ri;st.REMOVE=R;function ce(s,e,t,i){let n=Ui(s,e,t,i);if(P.isNode(n)||P.isPair(n))return Yi(s,i,n),ce(s,n,t,i);if(typeof n!="symbol"){if(P.isCollection(e)){i=Object.freeze(i.concat(e));for(let r=0;r<e.items.length;++r){let o=ce(r,e.items[r],t,i);if(typeof o=="number")r=o-1;else{if(o===M)return M;o===R&&(e.items.splice(r,1),r-=1)}}}else if(P.isPair(e)){i=Object.freeze(i.concat(e));let r=ce("key",e.key,t,i);if(r===M)return M;r===R&&(e.key=null);let o=ce("value",e.value,t,i);if(o===M)return M;o===R&&(e.value=null)}}return n}a(ce,"visit_");async function it(s,e){let t=Fi(e);P.isDocument(s)?await fe(null,s.contents,t,Object.freeze([s]))===R&&(s.contents=null):await fe(null,s,t,Object.freeze([]))}a(it,"visitAsync");it.BREAK=M;it.SKIP=Ri;it.REMOVE=R;async function fe(s,e,t,i){let n=await Ui(s,e,t,i);if(P.isNode(n)||P.isPair(n))return Yi(s,i,n),fe(s,n,t,i);if(typeof n!="symbol"){if(P.isCollection(e)){i=Object.freeze(i.concat(e));for(let r=0;r<e.items.length;++r){let o=await fe(r,e.items[r],t,i);if(typeof o=="number")r=o-1;else{if(o===M)return M;o===R&&(e.items.splice(r,1),r-=1)}}}else if(P.isPair(e)){i=Object.freeze(i.concat(e));let r=await fe("key",e.key,t,i);if(r===M)return M;r===R&&(e.key=null);let o=await fe("value",e.value,t,i);if(o===M)return M;o===R&&(e.value=null)}}return n}a(fe,"visitAsync_");function Fi(s){return typeof s=="object"&&(s.Collection||s.Node||s.Value)?Object.assign({Alias:s.Node,Map:s.Node,Scalar:s.Node,Seq:s.Node},s.Value&&{Map:s.Value,Scalar:s.Value,Seq:s.Value},s.Collection&&{Map:s.Collection,Seq:s.Collection},s):s}a(Fi,"initVisitor");function Ui(s,e,t,i){if(typeof t=="function")return t(s,e,i);if(P.isMap(e))return t.Map?.(s,e,i);if(P.isSeq(e))return t.Seq?.(s,e,i);if(P.isPair(e))return t.Pair?.(s,e,i);if(P.isScalar(e))return t.Scalar?.(s,e,i);if(P.isAlias(e))return t.Alias?.(s,e,i)}a(Ui,"callVisitor");function Yi(s,e,t){let i=e[e.length-1];if(P.isCollection(i))i.items[s]=t;else if(P.isPair(i))s==="key"?i.key=t:i.value=t;else if(P.isDocument(i))i.contents=t;else{let n=P.isAlias(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${n} parent`)}}a(Yi,"replaceNode");ss.visit=st;ss.visitAsync=it});var is=y(Vi=>{"use strict";var Ji=O(),Xo=ke(),zo={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Zo=a(s=>s.replace(/[!,[\]{}]/g,e=>zo[e]),"escapeTagName"),Ne=class s{static{a(this,"Directives")}constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},s.defaultYaml,e),this.tags=Object.assign({},s.defaultTags,t)}clone(){let e=new s(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new s(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:s.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},s.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:s.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},s.defaultTags),this.atNextDocument=!1);let i=e.trim().split(/[ \t]+/),n=i.shift();switch(n){case"%TAG":{if(i.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;let[r,o]=i;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[r]=i;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{let o=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${n}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}let[,i,n]=e.match(/^(.*!)([^!]*)$/s);n||t(`The ${e} tag has no suffix`);let r=this.tags[i];if(r)try{return r+decodeURIComponent(n)}catch(o){return t(String(o)),null}return i==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,i]of Object.entries(this.tags))if(e.startsWith(i))return t+Zo(e.substring(i.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags),n;if(e&&i.length>0&&Ji.isNode(e.contents)){let r={};Xo.visit(e.contents,(o,l)=>{Ji.isNode(l)&&l.tag&&(r[l.tag]=!0)}),n=Object.keys(r)}else n=[];for(let[r,o]of i)r==="!!"&&o==="tag:yaml.org,2002:"||(!e||n.some(l=>l.startsWith(o)))&&t.push(`%TAG ${r} ${o}`);return t.join(`
4
+ `)}};Ne.defaultYaml={explicit:!1,version:"1.2"};Ne.defaultTags={"!!":"tag:yaml.org,2002:"};Vi.Directives=Ne});var nt=y(Ae=>{"use strict";var xi=O(),ea=ke();function ta(s){if(/[\x00-\x19\s,[\]{}]/.test(s)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;throw new Error(t)}return!0}a(ta,"anchorIsValid");function Wi(s){let e=new Set;return ea.visit(s,{Value(t,i){i.anchor&&e.add(i.anchor)}}),e}a(Wi,"anchorNames");function Gi(s,e){for(let t=1;;++t){let i=`${s}${t}`;if(!e.has(i))return i}}a(Gi,"findNewAnchor");function sa(s,e){let t=[],i=new Map,n=null;return{onAnchor:a(r=>{t.push(r),n??(n=Wi(s));let o=Gi(e,n);return n.add(o),o},"onAnchor"),setAnchors:a(()=>{for(let r of t){let o=i.get(r);if(typeof o=="object"&&o.anchor&&(xi.isScalar(o.node)||xi.isCollection(o.node)))o.node.anchor=o.anchor;else{let l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=r,l}}},"setAnchors"),sourceObjects:i}}a(sa,"createNodeAnchors");Ae.anchorIsValid=ta;Ae.anchorNames=Wi;Ae.createNodeAnchors=sa;Ae.findNewAnchor=Gi});var ns=y(Qi=>{"use strict";function qe(s,e,t,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let n=0,r=i.length;n<r;++n){let o=i[n],l=qe(s,i,String(n),o);l===void 0?delete i[n]:l!==o&&(i[n]=l)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let r=i.get(n),o=qe(s,i,n,r);o===void 0?i.delete(n):o!==r&&i.set(n,o)}else if(i instanceof Set)for(let n of Array.from(i)){let r=qe(s,i,n,n);r===void 0?i.delete(n):r!==n&&(i.delete(n),i.add(r))}else for(let[n,r]of Object.entries(i)){let o=qe(s,i,n,r);o===void 0?delete i[n]:o!==r&&(i[n]=o)}return s.call(e,t,i)}a(qe,"applyReviver");Qi.applyReviver=qe});var V=y(Xi=>{"use strict";var ia=O();function Hi(s,e,t){if(Array.isArray(s))return s.map((i,n)=>Hi(i,String(n),t));if(s&&typeof s.toJSON=="function"){if(!t||!ia.hasAnchor(s))return s.toJSON(e,t);let i={aliasCount:0,count:1,res:void 0};t.anchors.set(s,i),t.onCreate=r=>{i.res=r,delete t.onCreate};let n=s.toJSON(e,t);return t.onCreate&&t.onCreate(n),n}return typeof s=="bigint"&&!t?.keep?Number(s):s}a(Hi,"toJS");Xi.toJS=Hi});var rt=y(Zi=>{"use strict";var na=ns(),zi=O(),ra=V(),rs=class{static{a(this,"NodeBase")}constructor(e){Object.defineProperty(this,zi.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:i,onAnchor:n,reviver:r}={}){if(!zi.isDocument(e))throw new TypeError("A document argument is required");let o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=ra.toJS(this,"",o);if(typeof n=="function")for(let{count:c,res:f}of o.anchors.values())n(f,c);return typeof r=="function"?na.applyReviver(r,{"":l},"",l):l}};Zi.NodeBase=rs});var Oe=y(en=>{"use strict";var oa=nt(),aa=ke(),ue=O(),la=rt(),ca=V(),os=class extends la.NodeBase{static{a(this,"Alias")}constructor(e){super(ue.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){if(t?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],aa.visit(e,{Node:a((r,o)=>{(ue.isAlias(o)||ue.hasAnchor(o))&&i.push(o)},"Node")}),t&&(t.aliasResolveCache=i));let n;for(let r of i){if(r===this)break;r.anchor===this.source&&(n=r)}if(n&&t){let{anchors:r,doc:o,maxAliasCount:l}=t,c=r.get(n);if(c||(ca.toJS(n,null,t),c=r.get(n)),c?.res===void 0){let f="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(f)}if(l>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=ot(o,n,r)),c.count*c.aliasCount>l)){let f="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(f)}}return n}toJSON(e,t){if(!t)return{source:this.source};let i=this.resolve(t.doc,t);if(!i){let n=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(n)}return t.anchors.get(i).res}toString(e,t,i){let n=`*${this.source}`;if(e){if(oa.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${n} `}return n}};function ot(s,e,t){if(ue.isAlias(e)){let i=e.resolve(s),n=t&&i&&t.get(i);return n?n.count*n.aliasCount:0}else if(ue.isCollection(e)){let i=0;for(let n of e.items){let r=ot(s,n,t);r>i&&(i=r)}return i}else if(ue.isPair(e)){let i=ot(s,e.key,t),n=ot(s,e.value,t);return Math.max(i,n)}return 1}a(ot,"getAliasCount");en.Alias=os});var T=y(as=>{"use strict";var fa=O(),ua=rt(),ha=V(),da=a(s=>!s||typeof s!="function"&&typeof s!="object","isScalarValue"),x=class extends ua.NodeBase{static{a(this,"Scalar")}constructor(e){super(fa.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:ha.toJS(this.value,e,t)}toString(){return String(this.value)}};x.BLOCK_FOLDED="BLOCK_FOLDED";x.BLOCK_LITERAL="BLOCK_LITERAL";x.PLAIN="PLAIN";x.QUOTE_DOUBLE="QUOTE_DOUBLE";x.QUOTE_SINGLE="QUOTE_SINGLE";as.Scalar=x;as.isScalarValue=da});var Ee=y(sn=>{"use strict";var pa=Oe(),se=O(),tn=T(),ma="tag:yaml.org,2002:";function ga(s,e,t){if(e){let i=t.filter(r=>r.tag===e),n=i.find(r=>!r.format)??i[0];if(!n)throw new Error(`Tag ${e} not found`);return n}return t.find(i=>i.identify?.(s)&&!i.format)}a(ga,"findTagObject");function ya(s,e,t){if(se.isDocument(s)&&(s=s.contents),se.isNode(s))return s;if(se.isPair(s)){let u=t.schema[se.MAP].createNode?.(t.schema,null,t);return u.items.push(s),u}(s instanceof String||s instanceof Number||s instanceof Boolean||typeof BigInt<"u"&&s instanceof BigInt)&&(s=s.valueOf());let{aliasDuplicateObjects:i,onAnchor:n,onTagObj:r,schema:o,sourceObjects:l}=t,c;if(i&&s&&typeof s=="object"){if(c=l.get(s),c)return c.anchor??(c.anchor=n(s)),new pa.Alias(c.anchor);c={anchor:null,node:null},l.set(s,c)}e?.startsWith("!!")&&(e=ma+e.slice(2));let f=ga(s,e,o.tags);if(!f){if(s&&typeof s.toJSON=="function"&&(s=s.toJSON()),!s||typeof s!="object"){let u=new tn.Scalar(s);return c&&(c.node=u),u}f=s instanceof Map?o[se.MAP]:Symbol.iterator in Object(s)?o[se.SEQ]:o[se.MAP]}r&&(r(f),delete t.onTagObj);let p=f?.createNode?f.createNode(t.schema,s,t):typeof f?.nodeClass?.from=="function"?f.nodeClass.from(t.schema,s,t):new tn.Scalar(s);return e?p.tag=e:f.default||(p.tag=f.tag),c&&(c.node=p),p}a(ya,"createNode");sn.createNode=ya});var lt=y(at=>{"use strict";var ba=Ee(),F=O(),wa=rt();function ls(s,e,t){let i=t;for(let n=e.length-1;n>=0;--n){let r=e[n];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){let o=[];o[r]=i,i=o}else i=new Map([[r,i]])}return ba.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:a(()=>{throw new Error("This should not happen, please report a bug.")},"onAnchor"),schema:s,sourceObjects:new Map})}a(ls,"collectionFromPath");var nn=a(s=>s==null||typeof s=="object"&&!!s[Symbol.iterator]().next().done,"isEmptyPath"),cs=class extends wa.NodeBase{static{a(this,"Collection")}constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(i=>F.isNode(i)||F.isPair(i)?i.clone(e):i),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(nn(e))this.add(t);else{let[i,...n]=e,r=this.get(i,!0);if(F.isCollection(r))r.addIn(n,t);else if(r===void 0&&this.schema)this.set(i,ls(this.schema,n,t));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}deleteIn(e){let[t,...i]=e;if(i.length===0)return this.delete(t);let n=this.get(t,!0);if(F.isCollection(n))return n.deleteIn(i);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${i}`)}getIn(e,t){let[i,...n]=e,r=this.get(i,!0);return n.length===0?!t&&F.isScalar(r)?r.value:r:F.isCollection(r)?r.getIn(n,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!F.isPair(t))return!1;let i=t.value;return i==null||e&&F.isScalar(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(e){let[t,...i]=e;if(i.length===0)return this.has(t);let n=this.get(t,!0);return F.isCollection(n)?n.hasIn(i):!1}setIn(e,t){let[i,...n]=e;if(n.length===0)this.set(i,t);else{let r=this.get(i,!0);if(F.isCollection(r))r.setIn(n,t);else if(r===void 0&&this.schema)this.set(i,ls(this.schema,n,t));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}};at.Collection=cs;at.collectionFromPath=ls;at.isEmptyPath=nn});var Le=y(ct=>{"use strict";var Sa=a(s=>s.replace(/^(?!$)(?: $)?/gm,"#"),"stringifyComment");function fs(s,e){return/^\n+$/.test(s)?s.substring(1):e?s.replace(/^(?! *$)/gm,e):s}a(fs,"indentComment");var va=a((s,e,t)=>s.endsWith(`
5
+ `)?fs(t,e):t.includes(`
6
+ `)?`
7
+ `+fs(t,e):(s.endsWith(" ")?"":" ")+t,"lineComment");ct.indentComment=fs;ct.lineComment=va;ct.stringifyComment=Sa});var on=y(Te=>{"use strict";var ka="flow",us="block",ft="quoted";function Na(s,e,t="flow",{indentAtStart:i,lineWidth:n=80,minContentWidth:r=20,onFold:o,onOverflow:l}={}){if(!n||n<0)return s;n<r&&(r=0);let c=Math.max(1+r,1+n-e.length);if(s.length<=c)return s;let f=[],p={},u=n-e.length;typeof i=="number"&&(i>n-Math.max(2,r)?f.push(0):u=n-i);let h,g,b=!1,d=-1,m=-1,S=-1;t===us&&(d=rn(s,d,e.length),d!==-1&&(u=d+c));for(let k;k=s[d+=1];){if(t===ft&&k==="\\"){switch(m=d,s[d+1]){case"x":d+=3;break;case"u":d+=5;break;case"U":d+=9;break;default:d+=1}S=d}if(k===`
8
+ `)t===us&&(d=rn(s,d,e.length)),u=d+e.length+c,h=void 0;else{if(k===" "&&g&&g!==" "&&g!==`
9
+ `&&g!==" "){let N=s[d+1];N&&N!==" "&&N!==`
10
+ `&&N!==" "&&(h=d)}if(d>=u)if(h)f.push(h),u=h+c,h=void 0;else if(t===ft){for(;g===" "||g===" ";)g=k,k=s[d+=1],b=!0;let N=d>S+1?d-2:m-1;if(p[N])return s;f.push(N),p[N]=!0,u=N+c,h=void 0}else b=!0}g=k}if(b&&l&&l(),f.length===0)return s;o&&o();let v=s.slice(0,f[0]);for(let k=0;k<f.length;++k){let N=f[k],A=f[k+1]||s.length;N===0?v=`
11
+ ${e}${s.slice(0,A)}`:(t===ft&&p[N]&&(v+=`${s[N]}\\`),v+=`
12
+ ${e}${s.slice(N+1,A)}`)}return v}a(Na,"foldFlowLines");function rn(s,e,t){let i=e,n=e+1,r=s[n];for(;r===" "||r===" ";)if(e<n+t)r=s[++e];else{do r=s[++e];while(r&&r!==`
13
+ `);i=e,n=e+1,r=s[n]}return i}a(rn,"consumeMoreIndentedLines");Te.FOLD_BLOCK=us;Te.FOLD_FLOW=ka;Te.FOLD_QUOTED=ft;Te.foldFlowLines=Na});var Ie=y(an=>{"use strict";var j=T(),W=on(),ht=a((s,e)=>({indentAtStart:e?s.indent.length:s.indentAtStart,lineWidth:s.options.lineWidth,minContentWidth:s.options.minContentWidth}),"getFoldOptions"),dt=a(s=>/^(%|---|\.\.\.)/m.test(s),"containsDocumentMarker");function Aa(s,e,t){if(!e||e<0)return!1;let i=e-t,n=s.length;if(n<=i)return!1;for(let r=0,o=0;r<n;++r)if(s[r]===`
14
+ `){if(r-o>i)return!0;if(o=r+1,n-o<=i)return!1}return!0}a(Aa,"lineLengthOverLimit");function Ce(s,e){let t=JSON.stringify(s);if(e.options.doubleQuotedAsJSON)return t;let{implicitKey:i}=e,n=e.options.doubleQuotedMinMultiLineLength,r=e.indent||(dt(s)?" ":""),o="",l=0;for(let c=0,f=t[c];f;f=t[++c])if(f===" "&&t[c+1]==="\\"&&t[c+2]==="n"&&(o+=t.slice(l,c)+"\\ ",c+=1,l=c,f="\\"),f==="\\")switch(t[c+1]){case"u":{o+=t.slice(l,c);let p=t.substr(c+2,4);switch(p){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:p.substr(0,2)==="00"?o+="\\x"+p.substr(2):o+=t.substr(c,6)}c+=5,l=c+1}break;case"n":if(i||t[c+2]==='"'||t.length<n)c+=1;else{for(o+=t.slice(l,c)+`
15
+
16
+ `;t[c+2]==="\\"&&t[c+3]==="n"&&t[c+4]!=='"';)o+=`
17
+ `,c+=2;o+=r,t[c+2]===" "&&(o+="\\"),c+=1,l=c+1}break;default:c+=1}return o=l?o+t.slice(l):t,i?o:W.foldFlowLines(o,r,W.FOLD_QUOTED,ht(e,!1))}a(Ce,"doubleQuotedString");function hs(s,e){if(e.options.singleQuote===!1||e.implicitKey&&s.includes(`
18
+ `)||/[ \t]\n|\n[ \t]/.test(s))return Ce(s,e);let t=e.indent||(dt(s)?" ":""),i="'"+s.replace(/'/g,"''").replace(/\n+/g,`$&
19
+ ${t}`)+"'";return e.implicitKey?i:W.foldFlowLines(i,t,W.FOLD_FLOW,ht(e,!1))}a(hs,"singleQuotedString");function he(s,e){let{singleQuote:t}=e.options,i;if(t===!1)i=Ce;else{let n=s.includes('"'),r=s.includes("'");n&&!r?i=hs:r&&!n?i=Ce:i=t?hs:Ce}return i(s,e)}a(he,"quotedString");var ds;try{ds=new RegExp(`(^|(?<!
20
+ ))
21
+ +(?!
22
+ |$)`,"g")}catch{ds=/\n+(?!\n|$)/g}function ut({comment:s,type:e,value:t},i,n,r){let{blockQuote:o,commentString:l,lineWidth:c}=i.options;if(!o||/\n[\t ]+$/.test(t))return he(t,i);let f=i.indent||(i.forceBlockIndent||dt(t)?" ":""),p=o==="literal"?!0:o==="folded"||e===j.Scalar.BLOCK_FOLDED?!1:e===j.Scalar.BLOCK_LITERAL?!0:!Aa(t,c,f.length);if(!t)return p?`|
23
+ `:`>
24
+ `;let u,h;for(h=t.length;h>0;--h){let A=t[h-1];if(A!==`
25
+ `&&A!==" "&&A!==" ")break}let g=t.substring(h),b=g.indexOf(`
26
+ `);b===-1?u="-":t===g||b!==g.length-1?(u="+",r&&r()):u="",g&&(t=t.slice(0,-g.length),g[g.length-1]===`
27
+ `&&(g=g.slice(0,-1)),g=g.replace(ds,`$&${f}`));let d=!1,m,S=-1;for(m=0;m<t.length;++m){let A=t[m];if(A===" ")d=!0;else if(A===`
28
+ `)S=m;else break}let v=t.substring(0,S<m?S+1:m);v&&(t=t.substring(v.length),v=v.replace(/\n+/g,`$&${f}`));let N=(d?f?"2":"1":"")+u;if(s&&(N+=" "+l(s.replace(/ ?[\r\n]+/g," ")),n&&n()),!p){let A=t.replace(/\n+/g,`
29
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${f}`),q=!1,L=ht(i,!0);o!=="folded"&&e!==j.Scalar.BLOCK_FOLDED&&(L.onOverflow=()=>{q=!0});let w=W.foldFlowLines(`${v}${A}${g}`,f,W.FOLD_BLOCK,L);if(!q)return`>${N}
30
+ ${f}${w}`}return t=t.replace(/\n+/g,`$&${f}`),`|${N}
31
+ ${f}${v}${t}${g}`}a(ut,"blockString");function qa(s,e,t,i){let{type:n,value:r}=s,{actualString:o,implicitKey:l,indent:c,indentStep:f,inFlow:p}=e;if(l&&r.includes(`
32
+ `)||p&&/[[\]{},]/.test(r))return he(r,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return l||p||!r.includes(`
33
+ `)?he(r,e):ut(s,e,t,i);if(!l&&!p&&n!==j.Scalar.PLAIN&&r.includes(`
34
+ `))return ut(s,e,t,i);if(dt(r)){if(c==="")return e.forceBlockIndent=!0,ut(s,e,t,i);if(l&&c===f)return he(r,e)}let u=r.replace(/\n+/g,`$&
35
+ ${c}`);if(o){let h=a(d=>d.default&&d.tag!=="tag:yaml.org,2002:str"&&d.test?.test(u),"test"),{compat:g,tags:b}=e.doc.schema;if(b.some(h)||g?.some(h))return he(r,e)}return l?u:W.foldFlowLines(u,c,W.FOLD_FLOW,ht(e,!1))}a(qa,"plainString");function Oa(s,e,t,i){let{implicitKey:n,inFlow:r}=e,o=typeof s.value=="string"?s:Object.assign({},s,{value:String(s.value)}),{type:l}=s;l!==j.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(l=j.Scalar.QUOTE_DOUBLE);let c=a(p=>{switch(p){case j.Scalar.BLOCK_FOLDED:case j.Scalar.BLOCK_LITERAL:return n||r?he(o.value,e):ut(o,e,t,i);case j.Scalar.QUOTE_DOUBLE:return Ce(o.value,e);case j.Scalar.QUOTE_SINGLE:return hs(o.value,e);case j.Scalar.PLAIN:return qa(o,e,t,i);default:return null}},"_stringify"),f=c(l);if(f===null){let{defaultKeyType:p,defaultStringType:u}=e.options,h=n&&p||u;if(f=c(h),f===null)throw new Error(`Unsupported default string type ${h}`)}return f}a(Oa,"stringifyString");an.stringifyString=Oa});var Pe=y(ps=>{"use strict";var Ea=nt(),G=O(),La=Le(),Ta=Ie();function Ca(s,e){let t=Object.assign({blockQuote:!0,commentString:La.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},s.schema.toStringOptions,e),i;switch(t.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:s,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:i,options:t}}a(Ca,"createStringifyContext");function Ia(s,e){if(e.tag){let n=s.filter(r=>r.tag===e.tag);if(n.length>0)return n.find(r=>r.format===e.format)??n[0]}let t,i;if(G.isScalar(e)){i=e.value;let n=s.filter(r=>r.identify?.(i));if(n.length>1){let r=n.filter(o=>o.test);r.length>0&&(n=r)}t=n.find(r=>r.format===e.format)??n.find(r=>!r.format)}else i=e,t=s.find(n=>n.nodeClass&&i instanceof n.nodeClass);if(!t){let n=i?.constructor?.name??(i===null?"null":typeof i);throw new Error(`Tag not resolved for ${n} value`)}return t}a(Ia,"getTagObject");function Pa(s,e,{anchors:t,doc:i}){if(!i.directives)return"";let n=[],r=(G.isScalar(s)||G.isCollection(s))&&s.anchor;r&&Ea.anchorIsValid(r)&&(t.add(r),n.push(`&${r}`));let o=s.tag??(e.default?null:e.tag);return o&&n.push(i.directives.tagString(o)),n.join(" ")}a(Pa,"stringifyProps");function $a(s,e,t,i){if(G.isPair(s))return s.toString(e,t,i);if(G.isAlias(s)){if(e.doc.directives)return s.toString(e);if(e.resolvedAliases?.has(s))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(s):e.resolvedAliases=new Set([s]),s=s.resolve(e.doc)}let n,r=G.isNode(s)?s:e.doc.createNode(s,{onTagObj:a(c=>n=c,"onTagObj")});n??(n=Ia(e.doc.schema.tags,r));let o=Pa(r,n,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);let l=typeof n.stringify=="function"?n.stringify(r,e,t,i):G.isScalar(r)?Ta.stringifyString(r,e,t,i):r.toString(e,t,i);return o?G.isScalar(r)||l[0]==="{"||l[0]==="["?`${o} ${l}`:`${o}
36
+ ${e.indent}${l}`:l}a($a,"stringify");ps.createStringifyContext=Ca;ps.stringify=$a});var un=y(fn=>{"use strict";var Y=O(),ln=T(),cn=Pe(),$e=Le();function Ma({key:s,value:e},t,i,n){let{allNullValues:r,doc:o,indent:l,indentStep:c,options:{commentString:f,indentSeq:p,simpleKeys:u}}=t,h=Y.isNode(s)&&s.comment||null;if(u){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(Y.isCollection(s)||!Y.isNode(s)&&typeof s=="object"){let L="With simple keys, collection cannot be used as a key value";throw new Error(L)}}let g=!u&&(!s||h&&e==null&&!t.inFlow||Y.isCollection(s)||(Y.isScalar(s)?s.type===ln.Scalar.BLOCK_FOLDED||s.type===ln.Scalar.BLOCK_LITERAL:typeof s=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!g&&(u||!r),indent:l+c});let b=!1,d=!1,m=cn.stringify(s,t,()=>b=!0,()=>d=!0);if(!g&&!t.inFlow&&m.length>1024){if(u)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(t.inFlow){if(r||e==null)return b&&i&&i(),m===""?"?":g?`? ${m}`:m}else if(r&&!u||e==null&&g)return m=`? ${m}`,h&&!b?m+=$e.lineComment(m,t.indent,f(h)):d&&n&&n(),m;b&&(h=null),g?(h&&(m+=$e.lineComment(m,t.indent,f(h))),m=`? ${m}
37
+ ${l}:`):(m=`${m}:`,h&&(m+=$e.lineComment(m,t.indent,f(h))));let S,v,k;Y.isNode(e)?(S=!!e.spaceBefore,v=e.commentBefore,k=e.comment):(S=!1,v=null,k=null,e&&typeof e=="object"&&(e=o.createNode(e))),t.implicitKey=!1,!g&&!h&&Y.isScalar(e)&&(t.indentAtStart=m.length+1),d=!1,!p&&c.length>=2&&!t.inFlow&&!g&&Y.isSeq(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let N=!1,A=cn.stringify(e,t,()=>N=!0,()=>d=!0),q=" ";if(h||S||v){if(q=S?`
38
+ `:"",v){let L=f(v);q+=`
39
+ ${$e.indentComment(L,t.indent)}`}A===""&&!t.inFlow?q===`
40
+ `&&k&&(q=`
41
+
42
+ `):q+=`
43
+ ${t.indent}`}else if(!g&&Y.isCollection(e)){let L=A[0],w=A.indexOf(`
44
+ `),C=w!==-1,J=t.inFlow??e.flow??e.items.length===0;if(C||!J){let le=!1;if(C&&(L==="&"||L==="!")){let I=A.indexOf(" ");L==="&"&&I!==-1&&I<w&&A[I+1]==="!"&&(I=A.indexOf(" ",I+1)),(I===-1||w<I)&&(le=!0)}le||(q=`
45
+ ${t.indent}`)}}else(A===""||A[0]===`
46
+ `)&&(q="");return m+=q+A,t.inFlow?N&&i&&i():k&&!N?m+=$e.lineComment(m,t.indent,f(k)):d&&n&&n(),m}a(Ma,"stringifyPair");fn.stringifyPair=Ma});var gs=y(ms=>{"use strict";var hn=Ze("process");function _a(s,...e){s==="debug"&&console.log(...e)}a(_a,"debug");function Da(s,e){(s==="debug"||s==="warn")&&(typeof hn.emitWarning=="function"?hn.emitWarning(e):console.warn(e))}a(Da,"warn");ms.debug=_a;ms.warn=Da});var bt=y(yt=>{"use strict";var gt=O(),dn=T(),pt="<<",mt={identify:a(s=>s===pt||typeof s=="symbol"&&s.description===pt,"identify"),default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:a(()=>Object.assign(new dn.Scalar(Symbol(pt)),{addToJSMap:pn}),"resolve"),stringify:a(()=>pt,"stringify")},ja=a((s,e)=>(mt.identify(e)||gt.isScalar(e)&&(!e.type||e.type===dn.Scalar.PLAIN)&&mt.identify(e.value))&&s?.doc.schema.tags.some(t=>t.tag===mt.tag&&t.default),"isMergeKey");function pn(s,e,t){let i=mn(s,t);if(gt.isSeq(i))for(let n of i.items)ys(s,e,n);else if(Array.isArray(i))for(let n of i)ys(s,e,n);else ys(s,e,i)}a(pn,"addMergeToJSMap");function ys(s,e,t){let i=mn(s,t);if(!gt.isMap(i))throw new Error("Merge sources must be maps or map aliases");let n=i.toJSON(null,s,Map);for(let[r,o]of n)e instanceof Map?e.has(r)||e.set(r,o):e instanceof Set?e.add(r):Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}a(ys,"mergeValue");function mn(s,e){return s&&gt.isAlias(e)?e.resolve(s.doc,s):e}a(mn,"resolveAliasValue");yt.addMergeToJSMap=pn;yt.isMergeKey=ja;yt.merge=mt});var ws=y(bn=>{"use strict";var Ba=gs(),gn=bt(),Ka=Pe(),yn=O(),bs=V();function Ra(s,e,{key:t,value:i}){if(yn.isNode(t)&&t.addToJSMap)t.addToJSMap(s,e,i);else if(gn.isMergeKey(s,t))gn.addMergeToJSMap(s,e,i);else{let n=bs.toJS(t,"",s);if(e instanceof Map)e.set(n,bs.toJS(i,n,s));else if(e instanceof Set)e.add(n);else{let r=Fa(t,n,s),o=bs.toJS(i,r,s);r in e?Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[r]=o}}return e}a(Ra,"addPairToJSMap");function Fa(s,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(yn.isNode(s)&&t?.doc){let i=Ka.createStringifyContext(t.doc,{});i.anchors=new Set;for(let r of t.anchors.keys())i.anchors.add(r.anchor);i.inFlow=!0,i.inStringifyKey=!0;let n=s.toString(i);if(!t.mapKeyWarned){let r=JSON.stringify(n);r.length>40&&(r=r.substring(0,36)+'..."'),Ba.warn(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return n}return JSON.stringify(e)}a(Fa,"stringifyKey");bn.addPairToJSMap=Ra});var Q=y(Ss=>{"use strict";var wn=Ee(),Ua=un(),Ya=ws(),wt=O();function Ja(s,e,t){let i=wn.createNode(s,void 0,t),n=wn.createNode(e,void 0,t);return new St(i,n)}a(Ja,"createPair");var St=class s{static{a(this,"Pair")}constructor(e,t=null){Object.defineProperty(this,wt.NODE_TYPE,{value:wt.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:i}=this;return wt.isNode(t)&&(t=t.clone(e)),wt.isNode(i)&&(i=i.clone(e)),new s(t,i)}toJSON(e,t){let i=t?.mapAsMap?new Map:{};return Ya.addPairToJSMap(t,i,this)}toString(e,t,i){return e?.doc?Ua.stringifyPair(this,e,t,i):JSON.stringify(this)}};Ss.Pair=St;Ss.createPair=Ja});var vs=y(vn=>{"use strict";var ie=O(),Sn=Pe(),vt=Le();function Va(s,e,t){return(e.inFlow??s.flow?Wa:xa)(s,e,t)}a(Va,"stringifyCollection");function xa({comment:s,items:e},t,{blockItemPrefix:i,flowChars:n,itemIndent:r,onChompKeep:o,onComment:l}){let{indent:c,options:{commentString:f}}=t,p=Object.assign({},t,{indent:r,type:null}),u=!1,h=[];for(let b=0;b<e.length;++b){let d=e[b],m=null;if(ie.isNode(d))!u&&d.spaceBefore&&h.push(""),kt(t,h,d.commentBefore,u),d.comment&&(m=d.comment);else if(ie.isPair(d)){let v=ie.isNode(d.key)?d.key:null;v&&(!u&&v.spaceBefore&&h.push(""),kt(t,h,v.commentBefore,u))}u=!1;let S=Sn.stringify(d,p,()=>m=null,()=>u=!0);m&&(S+=vt.lineComment(S,r,f(m))),u&&m&&(u=!1),h.push(i+S)}let g;if(h.length===0)g=n.start+n.end;else{g=h[0];for(let b=1;b<h.length;++b){let d=h[b];g+=d?`
47
+ ${c}${d}`:`
48
+ `}}return s?(g+=`
49
+ `+vt.indentComment(f(s),c),l&&l()):u&&o&&o(),g}a(xa,"stringifyBlockCollection");function Wa({items:s},e,{flowChars:t,itemIndent:i}){let{indent:n,indentStep:r,flowCollectionPadding:o,options:{commentString:l}}=e;i+=r;let c=Object.assign({},e,{indent:i,inFlow:!0,type:null}),f=!1,p=0,u=[];for(let b=0;b<s.length;++b){let d=s[b],m=null;if(ie.isNode(d))d.spaceBefore&&u.push(""),kt(e,u,d.commentBefore,!1),d.comment&&(m=d.comment);else if(ie.isPair(d)){let v=ie.isNode(d.key)?d.key:null;v&&(v.spaceBefore&&u.push(""),kt(e,u,v.commentBefore,!1),v.comment&&(f=!0));let k=ie.isNode(d.value)?d.value:null;k?(k.comment&&(m=k.comment),k.commentBefore&&(f=!0)):d.value==null&&v?.comment&&(m=v.comment)}m&&(f=!0);let S=Sn.stringify(d,c,()=>m=null);f||(f=u.length>p||S.includes(`
50
+ `)),b<s.length-1?S+=",":e.options.trailingComma&&(e.options.lineWidth>0&&(f||(f=u.reduce((v,k)=>v+k.length+2,2)+(S.length+2)>e.options.lineWidth)),f&&(S+=",")),m&&(S+=vt.lineComment(S,i,l(m))),u.push(S),p=u.length}let{start:h,end:g}=t;if(u.length===0)return h+g;if(!f){let b=u.reduce((d,m)=>d+m.length+2,2);f=e.options.lineWidth>0&&b>e.options.lineWidth}if(f){let b=h;for(let d of u)b+=d?`
51
+ ${r}${n}${d}`:`
52
+ `;return`${b}
53
+ ${n}${g}`}else return`${h}${o}${u.join(" ")}${o}${g}`}a(Wa,"stringifyFlowCollection");function kt({indent:s,options:{commentString:e}},t,i,n){if(i&&n&&(i=i.replace(/^\n+/,"")),i){let r=vt.indentComment(e(i),s);t.push(r.trimStart())}}a(kt,"addCommentBefore");vn.stringifyCollection=Va});var X=y(Ns=>{"use strict";var Ga=vs(),Qa=ws(),Ha=lt(),H=O(),Nt=Q(),Xa=T();function Me(s,e){let t=H.isScalar(e)?e.value:e;for(let i of s)if(H.isPair(i)&&(i.key===e||i.key===t||H.isScalar(i.key)&&i.key.value===t))return i}a(Me,"findPair");var ks=class extends Ha.Collection{static{a(this,"YAMLMap")}static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(H.MAP,e),this.items=[]}static from(e,t,i){let{keepUndefined:n,replacer:r}=i,o=new this(e),l=a((c,f)=>{if(typeof r=="function")f=r.call(t,c,f);else if(Array.isArray(r)&&!r.includes(c))return;(f!==void 0||n)&&o.items.push(Nt.createPair(c,f,i))},"add");if(t instanceof Map)for(let[c,f]of t)l(c,f);else if(t&&typeof t=="object")for(let c of Object.keys(t))l(c,t[c]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,t){let i;H.isPair(e)?i=e:!e||typeof e!="object"||!("key"in e)?i=new Nt.Pair(e,e?.value):i=new Nt.Pair(e.key,e.value);let n=Me(this.items,i.key),r=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${i.key} already set`);H.isScalar(n.value)&&Xa.isScalarValue(i.value)?n.value.value=i.value:n.value=i.value}else if(r){let o=this.items.findIndex(l=>r(i,l)<0);o===-1?this.items.push(i):this.items.splice(o,0,i)}else this.items.push(i)}delete(e){let t=Me(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=Me(this.items,e)?.value;return(!t&&H.isScalar(n)?n.value:n)??void 0}has(e){return!!Me(this.items,e)}set(e,t){this.add(new Nt.Pair(e,t),!0)}toJSON(e,t,i){let n=i?new i:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(n);for(let r of this.items)Qa.addPairToJSMap(t,n,r);return n}toString(e,t,i){if(!e)return JSON.stringify(this);for(let n of this.items)if(!H.isPair(n))throw new Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Ga.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:i,onComment:t})}};Ns.YAMLMap=ks;Ns.findPair=Me});var de=y(Nn=>{"use strict";var za=O(),kn=X(),Za={collection:"map",default:!0,nodeClass:kn.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(s,e){return za.isMap(s)||e("Expected a mapping for this tag"),s},createNode:a((s,e,t)=>kn.YAMLMap.from(s,e,t),"createNode")};Nn.map=Za});var z=y(An=>{"use strict";var el=Ee(),tl=vs(),sl=lt(),qt=O(),il=T(),nl=V(),As=class extends sl.Collection{static{a(this,"YAMLSeq")}static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(qt.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=At(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){let i=At(e);if(typeof i!="number")return;let n=this.items[i];return!t&&qt.isScalar(n)?n.value:n}has(e){let t=At(e);return typeof t=="number"&&t<this.items.length}set(e,t){let i=At(e);if(typeof i!="number")throw new Error(`Expected a valid index, not ${e}.`);let n=this.items[i];qt.isScalar(n)&&il.isScalarValue(t)?n.value=t:this.items[i]=t}toJSON(e,t){let i=[];t?.onCreate&&t.onCreate(i);let n=0;for(let r of this.items)i.push(nl.toJS(r,String(n++),t));return i}toString(e,t,i){return e?tl.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:i,onComment:t}):JSON.stringify(this)}static from(e,t,i){let{replacer:n}=i,r=new this(e);if(t&&Symbol.iterator in Object(t)){let o=0;for(let l of t){if(typeof n=="function"){let c=t instanceof Set?l:String(o++);l=n.call(t,c,l)}r.items.push(el.createNode(l,void 0,i))}}return r}};function At(s){let e=qt.isScalar(s)?s.value:s;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}a(At,"asItemIndex");An.YAMLSeq=As});var pe=y(On=>{"use strict";var rl=O(),qn=z(),ol={collection:"seq",default:!0,nodeClass:qn.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(s,e){return rl.isSeq(s)||e("Expected a sequence for this tag"),s},createNode:a((s,e,t)=>qn.YAMLSeq.from(s,e,t),"createNode")};On.seq=ol});var _e=y(En=>{"use strict";var al=Ie(),ll={identify:a(s=>typeof s=="string","identify"),default:!0,tag:"tag:yaml.org,2002:str",resolve:a(s=>s,"resolve"),stringify(s,e,t,i){return e=Object.assign({actualString:!0},e),al.stringifyString(s,e,t,i)}};En.string=ll});var Ot=y(Cn=>{"use strict";var Ln=T(),Tn={identify:a(s=>s==null,"identify"),createNode:a(()=>new Ln.Scalar(null),"createNode"),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:a(()=>new Ln.Scalar(null),"resolve"),stringify:a(({source:s},e)=>typeof s=="string"&&Tn.test.test(s)?s:e.options.nullStr,"stringify")};Cn.nullTag=Tn});var qs=y(Pn=>{"use strict";var cl=T(),In={identify:a(s=>typeof s=="boolean","identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:a(s=>new cl.Scalar(s[0]==="t"||s[0]==="T"),"resolve"),stringify({source:s,value:e},t){if(s&&In.test.test(s)){let i=s[0]==="t"||s[0]==="T";if(e===i)return s}return e?t.options.trueStr:t.options.falseStr}};Pn.boolTag=In});var me=y($n=>{"use strict";function fl({format:s,minFractionDigits:e,tag:t,value:i}){if(typeof i=="bigint")return String(i);let n=typeof i=="number"?i:Number(i);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let r=Object.is(i,-0)?"-0":JSON.stringify(i);if(!s&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^-?\d/.test(r)&&!r.includes("e")){let o=r.indexOf(".");o<0&&(o=r.length,r+=".");let l=e-(r.length-o-1);for(;l-- >0;)r+="0"}return r}a(fl,"stringifyNumber");$n.stringifyNumber=fl});var Es=y(Et=>{"use strict";var ul=T(),Os=me(),hl={identify:a(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:a(s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,"resolve"),stringify:Os.stringifyNumber},dl={identify:a(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:a(s=>parseFloat(s),"resolve"),stringify(s){let e=Number(s.value);return isFinite(e)?e.toExponential():Os.stringifyNumber(s)}},pl={identify:a(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(s){let e=new ul.Scalar(parseFloat(s)),t=s.indexOf(".");return t!==-1&&s[s.length-1]==="0"&&(e.minFractionDigits=s.length-t-1),e},stringify:Os.stringifyNumber};Et.float=pl;Et.floatExp=dl;Et.floatNaN=hl});var Ts=y(Tt=>{"use strict";var Mn=me(),Lt=a(s=>typeof s=="bigint"||Number.isInteger(s),"intIdentify"),Ls=a((s,e,t,{intAsBigInt:i})=>i?BigInt(s):parseInt(s.substring(e),t),"intResolve");function _n(s,e,t){let{value:i}=s;return Lt(i)&&i>=0?t+i.toString(e):Mn.stringifyNumber(s)}a(_n,"intStringify");var ml={identify:a(s=>Lt(s)&&s>=0,"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:a((s,e,t)=>Ls(s,2,8,t),"resolve"),stringify:a(s=>_n(s,8,"0o"),"stringify")},gl={identify:Lt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:a((s,e,t)=>Ls(s,0,10,t),"resolve"),stringify:Mn.stringifyNumber},yl={identify:a(s=>Lt(s)&&s>=0,"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:a((s,e,t)=>Ls(s,2,16,t),"resolve"),stringify:a(s=>_n(s,16,"0x"),"stringify")};Tt.int=gl;Tt.intHex=yl;Tt.intOct=ml});var jn=y(Dn=>{"use strict";var bl=de(),wl=Ot(),Sl=pe(),vl=_e(),kl=qs(),Cs=Es(),Is=Ts(),Nl=[bl.map,Sl.seq,vl.string,wl.nullTag,kl.boolTag,Is.intOct,Is.int,Is.intHex,Cs.floatNaN,Cs.floatExp,Cs.float];Dn.schema=Nl});var Rn=y(Kn=>{"use strict";var Al=T(),ql=de(),Ol=pe();function Bn(s){return typeof s=="bigint"||Number.isInteger(s)}a(Bn,"intIdentify");var Ct=a(({value:s})=>JSON.stringify(s),"stringifyJSON"),El=[{identify:a(s=>typeof s=="string","identify"),default:!0,tag:"tag:yaml.org,2002:str",resolve:a(s=>s,"resolve"),stringify:Ct},{identify:a(s=>s==null,"identify"),createNode:a(()=>new Al.Scalar(null),"createNode"),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:a(()=>null,"resolve"),stringify:Ct},{identify:a(s=>typeof s=="boolean","identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:a(s=>s==="true","resolve"),stringify:Ct},{identify:Bn,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:a((s,e,{intAsBigInt:t})=>t?BigInt(s):parseInt(s,10),"resolve"),stringify:a(({value:s})=>Bn(s)?s.toString():JSON.stringify(s),"stringify")},{identify:a(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:a(s=>parseFloat(s),"resolve"),stringify:Ct}],Ll={default:!0,tag:"",test:/^/,resolve(s,e){return e(`Unresolved plain scalar ${JSON.stringify(s)}`),s}},Tl=[ql.map,Ol.seq].concat(El,Ll);Kn.schema=Tl});var $s=y(Fn=>{"use strict";var De=Ze("buffer"),Ps=T(),Cl=Ie(),Il={identify:a(s=>s instanceof Uint8Array,"identify"),default:!1,tag:"tag:yaml.org,2002:binary",resolve(s,e){if(typeof De.Buffer=="function")return De.Buffer.from(s,"base64");if(typeof atob=="function"){let t=atob(s.replace(/[\n\r]/g,"")),i=new Uint8Array(t.length);for(let n=0;n<t.length;++n)i[n]=t.charCodeAt(n);return i}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),s},stringify({comment:s,type:e,value:t},i,n,r){if(!t)return"";let o=t,l;if(typeof De.Buffer=="function")l=o instanceof De.Buffer?o.toString("base64"):De.Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let f=0;f<o.length;++f)c+=String.fromCharCode(o[f]);l=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=Ps.Scalar.BLOCK_LITERAL),e!==Ps.Scalar.QUOTE_DOUBLE){let c=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),f=Math.ceil(l.length/c),p=new Array(f);for(let u=0,h=0;u<f;++u,h+=c)p[u]=l.substr(h,c);l=p.join(e===Ps.Scalar.BLOCK_LITERAL?`
54
+ `:" ")}return Cl.stringifyString({comment:s,type:e,value:l},i,n,r)}};Fn.binary=Il});var $t=y(Pt=>{"use strict";var It=O(),Ms=Q(),Pl=T(),$l=z();function Un(s,e){if(It.isSeq(s))for(let t=0;t<s.items.length;++t){let i=s.items[t];if(!It.isPair(i)){if(It.isMap(i)){i.items.length>1&&e("Each pair must have its own sequence indicator");let n=i.items[0]||new Ms.Pair(new Pl.Scalar(null));if(i.commentBefore&&(n.key.commentBefore=n.key.commentBefore?`${i.commentBefore}
55
+ ${n.key.commentBefore}`:i.commentBefore),i.comment){let r=n.value??n.key;r.comment=r.comment?`${i.comment}
56
+ ${r.comment}`:i.comment}i=n}s.items[t]=It.isPair(i)?i:new Ms.Pair(i)}}else e("Expected a sequence for this tag");return s}a(Un,"resolvePairs");function Yn(s,e,t){let{replacer:i}=t,n=new $l.YAMLSeq(s);n.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof i=="function"&&(o=i.call(e,String(r++),o));let l,c;if(Array.isArray(o))if(o.length===2)l=o[0],c=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){let f=Object.keys(o);if(f.length===1)l=f[0],c=o[l];else throw new TypeError(`Expected tuple with one key, not ${f.length} keys`)}else l=o;n.items.push(Ms.createPair(l,c,t))}return n}a(Yn,"createPairs");var Ml={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Un,createNode:Yn};Pt.createPairs=Yn;Pt.pairs=Ml;Pt.resolvePairs=Un});var js=y(Ds=>{"use strict";var Jn=O(),_s=V(),je=X(),_l=z(),Vn=$t(),ne=class s extends _l.YAMLSeq{static{a(this,"YAMLOMap")}constructor(){super(),this.add=je.YAMLMap.prototype.add.bind(this),this.delete=je.YAMLMap.prototype.delete.bind(this),this.get=je.YAMLMap.prototype.get.bind(this),this.has=je.YAMLMap.prototype.has.bind(this),this.set=je.YAMLMap.prototype.set.bind(this),this.tag=s.tag}toJSON(e,t){if(!t)return super.toJSON(e);let i=new Map;t?.onCreate&&t.onCreate(i);for(let n of this.items){let r,o;if(Jn.isPair(n)?(r=_s.toJS(n.key,"",t),o=_s.toJS(n.value,r,t)):r=_s.toJS(n,"",t),i.has(r))throw new Error("Ordered maps must not include duplicate keys");i.set(r,o)}return i}static from(e,t,i){let n=Vn.createPairs(e,t,i),r=new this;return r.items=n.items,r}};ne.tag="tag:yaml.org,2002:omap";var Dl={collection:"seq",identify:a(s=>s instanceof Map,"identify"),nodeClass:ne,default:!1,tag:"tag:yaml.org,2002:omap",resolve(s,e){let t=Vn.resolvePairs(s,e),i=[];for(let{key:n}of t.items)Jn.isScalar(n)&&(i.includes(n.value)?e(`Ordered maps must not include duplicate keys: ${n.value}`):i.push(n.value));return Object.assign(new ne,t)},createNode:a((s,e,t)=>ne.from(s,e,t),"createNode")};Ds.YAMLOMap=ne;Ds.omap=Dl});var Hn=y(Bs=>{"use strict";var xn=T();function Wn({value:s,source:e},t){return e&&(s?Gn:Qn).test.test(e)?e:s?t.options.trueStr:t.options.falseStr}a(Wn,"boolStringify");var Gn={identify:a(s=>s===!0,"identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:a(()=>new xn.Scalar(!0),"resolve"),stringify:Wn},Qn={identify:a(s=>s===!1,"identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:a(()=>new xn.Scalar(!1),"resolve"),stringify:Wn};Bs.falseTag=Qn;Bs.trueTag=Gn});var Xn=y(Mt=>{"use strict";var jl=T(),Ks=me(),Bl={identify:a(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:a(s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,"resolve"),stringify:Ks.stringifyNumber},Kl={identify:a(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:a(s=>parseFloat(s.replace(/_/g,"")),"resolve"),stringify(s){let e=Number(s.value);return isFinite(e)?e.toExponential():Ks.stringifyNumber(s)}},Rl={identify:a(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(s){let e=new jl.Scalar(parseFloat(s.replace(/_/g,""))),t=s.indexOf(".");if(t!==-1){let i=s.substring(t+1).replace(/_/g,"");i[i.length-1]==="0"&&(e.minFractionDigits=i.length)}return e},stringify:Ks.stringifyNumber};Mt.float=Rl;Mt.floatExp=Kl;Mt.floatNaN=Bl});var Zn=y(Ke=>{"use strict";var zn=me(),Be=a(s=>typeof s=="bigint"||Number.isInteger(s),"intIdentify");function _t(s,e,t,{intAsBigInt:i}){let n=s[0];if((n==="-"||n==="+")&&(e+=1),s=s.substring(e).replace(/_/g,""),i){switch(t){case 2:s=`0b${s}`;break;case 8:s=`0o${s}`;break;case 16:s=`0x${s}`;break}let o=BigInt(s);return n==="-"?BigInt(-1)*o:o}let r=parseInt(s,t);return n==="-"?-1*r:r}a(_t,"intResolve");function Rs(s,e,t){let{value:i}=s;if(Be(i)){let n=i.toString(e);return i<0?"-"+t+n.substr(1):t+n}return zn.stringifyNumber(s)}a(Rs,"intStringify");var Fl={identify:Be,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:a((s,e,t)=>_t(s,2,2,t),"resolve"),stringify:a(s=>Rs(s,2,"0b"),"stringify")},Ul={identify:Be,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:a((s,e,t)=>_t(s,1,8,t),"resolve"),stringify:a(s=>Rs(s,8,"0"),"stringify")},Yl={identify:Be,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:a((s,e,t)=>_t(s,0,10,t),"resolve"),stringify:zn.stringifyNumber},Jl={identify:Be,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:a((s,e,t)=>_t(s,2,16,t),"resolve"),stringify:a(s=>Rs(s,16,"0x"),"stringify")};Ke.int=Yl;Ke.intBin=Fl;Ke.intHex=Jl;Ke.intOct=Ul});var Us=y(Fs=>{"use strict";var Bt=O(),Dt=Q(),jt=X(),re=class s extends jt.YAMLMap{static{a(this,"YAMLSet")}constructor(e){super(e),this.tag=s.tag}add(e){let t;Bt.isPair(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new Dt.Pair(e.key,null):t=new Dt.Pair(e,null),jt.findPair(this.items,t.key)||this.items.push(t)}get(e,t){let i=jt.findPair(this.items,e);return!t&&Bt.isPair(i)?Bt.isScalar(i.key)?i.key.value:i.key:i}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let i=jt.findPair(this.items,e);i&&!t?this.items.splice(this.items.indexOf(i),1):!i&&t&&this.items.push(new Dt.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,i){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,i);throw new Error("Set items must all have null values")}static from(e,t,i){let{replacer:n}=i,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let o of t)typeof n=="function"&&(o=n.call(t,o,o)),r.items.push(Dt.createPair(o,null,i));return r}};re.tag="tag:yaml.org,2002:set";var Vl={collection:"map",identify:a(s=>s instanceof Set,"identify"),nodeClass:re,default:!1,tag:"tag:yaml.org,2002:set",createNode:a((s,e,t)=>re.from(s,e,t),"createNode"),resolve(s,e){if(Bt.isMap(s)){if(s.hasAllNullValues(!0))return Object.assign(new re,s);e("Set items must all have null values")}else e("Expected a mapping for this tag");return s}};Fs.YAMLSet=re;Fs.set=Vl});var Js=y(Kt=>{"use strict";var xl=me();function Ys(s,e){let t=s[0],i=t==="-"||t==="+"?s.substring(1):s,n=a(o=>e?BigInt(o):Number(o),"num"),r=i.replace(/_/g,"").split(":").reduce((o,l)=>o*n(60)+n(l),n(0));return t==="-"?n(-1)*r:r}a(Ys,"parseSexagesimal");function er(s){let{value:e}=s,t=a(o=>o,"num");if(typeof e=="bigint")t=a(o=>BigInt(o),"num");else if(isNaN(e)||!isFinite(e))return xl.stringifyNumber(s);let i="";e<0&&(i="-",e*=t(-1));let n=t(60),r=[e%n];return e<60?r.unshift(0):(e=(e-r[0])/n,r.unshift(e%n),e>=60&&(e=(e-r[0])/n,r.unshift(e))),i+r.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}a(er,"stringifySexagesimal");var Wl={identify:a(s=>typeof s=="bigint"||Number.isInteger(s),"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:a((s,e,{intAsBigInt:t})=>Ys(s,t),"resolve"),stringify:er},Gl={identify:a(s=>typeof s=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:a(s=>Ys(s,!1),"resolve"),stringify:er},tr={identify:a(s=>s instanceof Date,"identify"),default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(s){let e=s.match(tr.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,t,i,n,r,o,l]=e.map(Number),c=e[7]?Number((e[7]+"00").substr(1,3)):0,f=Date.UTC(t,i-1,n,r||0,o||0,l||0,c),p=e[8];if(p&&p!=="Z"){let u=Ys(p,!1);Math.abs(u)<30&&(u*=60),f-=6e4*u}return new Date(f)},stringify:a(({value:s})=>s?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??"","stringify")};Kt.floatTime=Gl;Kt.intTime=Wl;Kt.timestamp=tr});var nr=y(ir=>{"use strict";var Ql=de(),Hl=Ot(),Xl=pe(),zl=_e(),Zl=$s(),sr=Hn(),Vs=Xn(),Rt=Zn(),ec=bt(),tc=js(),sc=$t(),ic=Us(),xs=Js(),nc=[Ql.map,Xl.seq,zl.string,Hl.nullTag,sr.trueTag,sr.falseTag,Rt.intBin,Rt.intOct,Rt.int,Rt.intHex,Vs.floatNaN,Vs.floatExp,Vs.float,Zl.binary,ec.merge,tc.omap,sc.pairs,ic.set,xs.intTime,xs.floatTime,xs.timestamp];ir.schema=nc});var pr=y(Qs=>{"use strict";var lr=de(),rc=Ot(),cr=pe(),oc=_e(),ac=qs(),Ws=Es(),Gs=Ts(),lc=jn(),cc=Rn(),fr=$s(),Re=bt(),ur=js(),hr=$t(),rr=nr(),dr=Us(),Ft=Js(),or=new Map([["core",lc.schema],["failsafe",[lr.map,cr.seq,oc.string]],["json",cc.schema],["yaml11",rr.schema],["yaml-1.1",rr.schema]]),ar={binary:fr.binary,bool:ac.boolTag,float:Ws.float,floatExp:Ws.floatExp,floatNaN:Ws.floatNaN,floatTime:Ft.floatTime,int:Gs.int,intHex:Gs.intHex,intOct:Gs.intOct,intTime:Ft.intTime,map:lr.map,merge:Re.merge,null:rc.nullTag,omap:ur.omap,pairs:hr.pairs,seq:cr.seq,set:dr.set,timestamp:Ft.timestamp},fc={"tag:yaml.org,2002:binary":fr.binary,"tag:yaml.org,2002:merge":Re.merge,"tag:yaml.org,2002:omap":ur.omap,"tag:yaml.org,2002:pairs":hr.pairs,"tag:yaml.org,2002:set":dr.set,"tag:yaml.org,2002:timestamp":Ft.timestamp};function uc(s,e,t){let i=or.get(e);if(i&&!s)return t&&!i.includes(Re.merge)?i.concat(Re.merge):i.slice();let n=i;if(!n)if(Array.isArray(s))n=[];else{let r=Array.from(or.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`)}if(Array.isArray(s))for(let r of s)n=n.concat(r);else typeof s=="function"&&(n=s(n.slice()));return t&&(n=n.concat(Re.merge)),n.reduce((r,o)=>{let l=typeof o=="string"?ar[o]:o;if(!l){let c=JSON.stringify(o),f=Object.keys(ar).map(p=>JSON.stringify(p)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${f}`)}return r.includes(l)||r.push(l),r},[])}a(uc,"getTags");Qs.coreKnownTags=fc;Qs.getTags=uc});var zs=y(mr=>{"use strict";var Hs=O(),hc=de(),dc=pe(),pc=_e(),Ut=pr(),mc=a((s,e)=>s.key<e.key?-1:s.key>e.key?1:0,"sortMapEntriesByKey"),Xs=class s{static{a(this,"Schema")}constructor({compat:e,customTags:t,merge:i,resolveKnownTags:n,schema:r,sortMapEntries:o,toStringDefaults:l}){this.compat=Array.isArray(e)?Ut.getTags(e,"compat"):e?Ut.getTags(null,e):null,this.name=typeof r=="string"&&r||"core",this.knownTags=n?Ut.coreKnownTags:{},this.tags=Ut.getTags(t,this.name,i),this.toStringOptions=l??null,Object.defineProperty(this,Hs.MAP,{value:hc.map}),Object.defineProperty(this,Hs.SCALAR,{value:pc.string}),Object.defineProperty(this,Hs.SEQ,{value:dc.seq}),this.sortMapEntries=typeof o=="function"?o:o===!0?mc:null}clone(){let e=Object.create(s.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};mr.Schema=Xs});var yr=y(gr=>{"use strict";var gc=O(),Zs=Pe(),Fe=Le();function yc(s,e){let t=[],i=e.directives===!0;if(e.directives!==!1&&s.directives){let c=s.directives.toString(s);c?(t.push(c),i=!0):s.directives.docStart&&(i=!0)}i&&t.push("---");let n=Zs.createStringifyContext(s,e),{commentString:r}=n.options;if(s.commentBefore){t.length!==1&&t.unshift("");let c=r(s.commentBefore);t.unshift(Fe.indentComment(c,""))}let o=!1,l=null;if(s.contents){if(gc.isNode(s.contents)){if(s.contents.spaceBefore&&i&&t.push(""),s.contents.commentBefore){let p=r(s.contents.commentBefore);t.push(Fe.indentComment(p,""))}n.forceBlockIndent=!!s.comment,l=s.contents.comment}let c=l?void 0:()=>o=!0,f=Zs.stringify(s.contents,n,()=>l=null,c);l&&(f+=Fe.lineComment(f,"",r(l))),(f[0]==="|"||f[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${f}`:t.push(f)}else t.push(Zs.stringify(s.contents,n));if(s.directives?.docEnd)if(s.comment){let c=r(s.comment);c.includes(`
57
+ `)?(t.push("..."),t.push(Fe.indentComment(c,""))):t.push(`... ${c}`)}else t.push("...");else{let c=s.comment;c&&o&&(c=c.replace(/^\n+/,"")),c&&((!o||l)&&t[t.length-1]!==""&&t.push(""),t.push(Fe.indentComment(r(c),"")))}return t.join(`
58
+ `)+`
59
+ `}a(yc,"stringifyDocument");gr.stringifyDocument=yc});var Ue=y(br=>{"use strict";var bc=Oe(),ge=lt(),D=O(),wc=Q(),Sc=V(),vc=zs(),kc=yr(),ei=nt(),Nc=ns(),Ac=Ee(),ti=is(),si=class s{static{a(this,"Document")}constructor(e,t,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,D.NODE_TYPE,{value:D.DOC});let n=null;typeof t=="function"||Array.isArray(t)?n=t:i===void 0&&t&&(i=t,t=void 0);let r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=r;let{version:o}=r;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new ti.Directives({version:o}),this.setSchema(o,i),this.contents=e===void 0?null:this.createNode(e,n,i)}clone(){let e=Object.create(s.prototype,{[D.NODE_TYPE]:{value:D.DOC}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=D.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){ye(this.contents)&&this.contents.add(e)}addIn(e,t){ye(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let i=ei.anchorNames(this);e.anchor=!t||i.has(t)?ei.findNewAnchor(t||"a",i):t}return new bc.Alias(e.anchor)}createNode(e,t,i){let n;if(typeof t=="function")e=t.call({"":e},"",e),n=t;else if(Array.isArray(t)){let m=a(v=>typeof v=="number"||v instanceof String||v instanceof Number,"keyToStr"),S=t.filter(m).map(String);S.length>0&&(t=t.concat(S)),n=t}else i===void 0&&t&&(i=t,t=void 0);let{aliasDuplicateObjects:r,anchorPrefix:o,flow:l,keepUndefined:c,onTagObj:f,tag:p}=i??{},{onAnchor:u,setAnchors:h,sourceObjects:g}=ei.createNodeAnchors(this,o||"a"),b={aliasDuplicateObjects:r??!0,keepUndefined:c??!1,onAnchor:u,onTagObj:f,replacer:n,schema:this.schema,sourceObjects:g},d=Ac.createNode(e,p,b);return l&&D.isCollection(d)&&(d.flow=!0),h(),d}createPair(e,t,i={}){let n=this.createNode(e,null,i),r=this.createNode(t,null,i);return new wc.Pair(n,r)}delete(e){return ye(this.contents)?this.contents.delete(e):!1}deleteIn(e){return ge.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):ye(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return D.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return ge.isEmptyPath(e)?!t&&D.isScalar(this.contents)?this.contents.value:this.contents:D.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return D.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return ge.isEmptyPath(e)?this.contents!==void 0:D.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=ge.collectionFromPath(this.schema,[e],t):ye(this.contents)&&this.contents.set(e,t)}setIn(e,t){ge.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=ge.collectionFromPath(this.schema,Array.from(e),t):ye(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let i;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ti.Directives({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new ti.Directives({version:e}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{let n=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${n}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(i)this.schema=new vc.Schema(Object.assign(i,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:i,maxAliasCount:n,onAnchor:r,reviver:o}={}){let l={anchors:new Map,doc:this,keep:!e,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},c=Sc.toJS(this.contents,t??"",l);if(typeof r=="function")for(let{count:f,res:p}of l.anchors.values())r(p,f);return typeof o=="function"?Nc.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return kc.stringifyDocument(this,e)}};function ye(s){if(D.isCollection(s))return!0;throw new Error("Expected a YAML collection as document contents")}a(ye,"assertCollection");br.Document=si});var Ve=y(Je=>{"use strict";var Ye=class extends Error{static{a(this,"YAMLError")}constructor(e,t,i,n){super(),this.name=e,this.code=i,this.message=n,this.pos=t}},ii=class extends Ye{static{a(this,"YAMLParseError")}constructor(e,t,i){super("YAMLParseError",e,t,i)}},ni=class extends Ye{static{a(this,"YAMLWarning")}constructor(e,t,i){super("YAMLWarning",e,t,i)}},qc=a((s,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(l=>e.linePos(l));let{line:i,col:n}=t.linePos[0];t.message+=` at line ${i}, column ${n}`;let r=n-1,o=s.substring(e.lineStarts[i-1],e.lineStarts[i]).replace(/[\n\r]+$/,"");if(r>=60&&o.length>80){let l=Math.min(r-39,o.length-79);o="\u2026"+o.substring(l),r-=l-1}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),i>1&&/^ *$/.test(o.substring(0,r))){let l=s.substring(e.lineStarts[i-2],e.lineStarts[i-1]);l.length>80&&(l=l.substring(0,79)+`\u2026
60
+ `),o=l+o}if(/[^ ]/.test(o)){let l=1,c=t.linePos[1];c?.line===i&&c.col>n&&(l=Math.max(1,Math.min(c.col-n,80-r)));let f=" ".repeat(r)+"^".repeat(l);t.message+=`:
61
+
62
+ ${o}
63
+ ${f}
64
+ `}},"prettifyError");Je.YAMLError=Ye;Je.YAMLParseError=ii;Je.YAMLWarning=ni;Je.prettifyError=qc});var xe=y(wr=>{"use strict";function Oc(s,{flow:e,indicator:t,next:i,offset:n,onError:r,parentIndent:o,startOnNewline:l}){let c=!1,f=l,p=l,u="",h="",g=!1,b=!1,d=null,m=null,S=null,v=null,k=null,N=null,A=null;for(let w of s)switch(b&&(w.type!=="space"&&w.type!=="newline"&&w.type!=="comma"&&r(w.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b=!1),d&&(f&&w.type!=="comment"&&w.type!=="newline"&&r(d,"TAB_AS_INDENT","Tabs are not allowed as indentation"),d=null),w.type){case"space":!e&&(t!=="doc-start"||i?.type!=="flow-collection")&&w.source.includes(" ")&&(d=w),p=!0;break;case"comment":{p||r(w,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let C=w.source.substring(1)||" ";u?u+=h+C:u=C,h="",f=!1;break}case"newline":f?u?u+=w.source:(!N||t!=="seq-item-ind")&&(c=!0):h+=w.source,f=!0,g=!0,(m||S)&&(v=w),p=!0;break;case"anchor":m&&r(w,"MULTIPLE_ANCHORS","A node can have at most one anchor"),w.source.endsWith(":")&&r(w.offset+w.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=w,A??(A=w.offset),f=!1,p=!1,b=!0;break;case"tag":{S&&r(w,"MULTIPLE_TAGS","A node can have at most one tag"),S=w,A??(A=w.offset),f=!1,p=!1,b=!0;break}case t:(m||S)&&r(w,"BAD_PROP_ORDER",`Anchors and tags must be after the ${w.source} indicator`),N&&r(w,"UNEXPECTED_TOKEN",`Unexpected ${w.source} in ${e??"collection"}`),N=w,f=t==="seq-item-ind"||t==="explicit-key-ind",p=!1;break;case"comma":if(e){k&&r(w,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),k=w,f=!1,p=!1;break}default:r(w,"UNEXPECTED_TOKEN",`Unexpected ${w.type} token`),f=!1,p=!1}let q=s[s.length-1],L=q?q.offset+q.source.length:n;return b&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&r(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d&&(f&&d.indent<=o||i?.type==="block-map"||i?.type==="block-seq")&&r(d,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:k,found:N,spaceBefore:c,comment:u,hasNewline:g,anchor:m,tag:S,newlineAfterProp:v,end:L,start:A??L}}a(Oc,"resolveProps");wr.resolveProps=Oc});var Yt=y(Sr=>{"use strict";function ri(s){if(!s)return null;switch(s.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(s.source.includes(`
65
+ `))return!0;if(s.end){for(let e of s.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(let e of s.items){for(let t of e.start)if(t.type==="newline")return!0;if(e.sep){for(let t of e.sep)if(t.type==="newline")return!0}if(ri(e.key)||ri(e.value))return!0}return!1;default:return!0}}a(ri,"containsNewline");Sr.containsNewline=ri});var oi=y(vr=>{"use strict";var Ec=Yt();function Lc(s,e,t){if(e?.type==="flow-collection"){let i=e.end[0];i.indent===s&&(i.source==="]"||i.source==="}")&&Ec.containsNewline(e)&&t(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}a(Lc,"flowIndentCheck");vr.flowIndentCheck=Lc});var ai=y(Nr=>{"use strict";var kr=O();function Tc(s,e,t){let{uniqueKeys:i}=s.options;if(i===!1)return!1;let n=typeof i=="function"?i:(r,o)=>r===o||kr.isScalar(r)&&kr.isScalar(o)&&r.value===o.value;return e.some(r=>n(r.key,t))}a(Tc,"mapIncludes");Nr.mapIncludes=Tc});var Tr=y(Lr=>{"use strict";var Ar=Q(),Cc=X(),qr=xe(),Ic=Yt(),Or=oi(),Pc=ai(),Er="All mapping items must start at the same column";function $c({composeNode:s,composeEmptyNode:e},t,i,n,r){let o=r?.nodeClass??Cc.YAMLMap,l=new o(t.schema);t.atRoot&&(t.atRoot=!1);let c=i.offset,f=null;for(let p of i.items){let{start:u,key:h,sep:g,value:b}=p,d=qr.resolveProps(u,{indicator:"explicit-key-ind",next:h??g?.[0],offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0}),m=!d.found;if(m){if(h&&(h.type==="block-seq"?n(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==i.indent&&n(c,"BAD_INDENT",Er)),!d.anchor&&!d.tag&&!g){f=d.end,d.comment&&(l.comment?l.comment+=`
66
+ `+d.comment:l.comment=d.comment);continue}(d.newlineAfterProp||Ic.containsNewline(h))&&n(h??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else d.found?.indent!==i.indent&&n(c,"BAD_INDENT",Er);t.atKey=!0;let S=d.end,v=h?s(t,h,d,n):e(t,S,u,null,d,n);t.schema.compat&&Or.flowIndentCheck(i.indent,h,n),t.atKey=!1,Pc.mapIncludes(t,l.items,v)&&n(S,"DUPLICATE_KEY","Map keys must be unique");let k=qr.resolveProps(g??[],{indicator:"map-value-ind",next:b,offset:v.range[2],onError:n,parentIndent:i.indent,startOnNewline:!h||h.type==="block-scalar"});if(c=k.end,k.found){m&&(b?.type==="block-map"&&!k.hasNewline&&n(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&d.start<k.found.offset-1024&&n(v.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let N=b?s(t,b,k,n):e(t,c,g,null,k,n);t.schema.compat&&Or.flowIndentCheck(i.indent,b,n),c=N.range[2];let A=new Ar.Pair(v,N);t.options.keepSourceTokens&&(A.srcToken=p),l.items.push(A)}else{m&&n(v.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),k.comment&&(v.comment?v.comment+=`
67
+ `+k.comment:v.comment=k.comment);let N=new Ar.Pair(v);t.options.keepSourceTokens&&(N.srcToken=p),l.items.push(N)}}return f&&f<c&&n(f,"IMPOSSIBLE","Map comment with trailing content"),l.range=[i.offset,c,f??c],l}a($c,"resolveBlockMap");Lr.resolveBlockMap=$c});var Ir=y(Cr=>{"use strict";var Mc=z(),_c=xe(),Dc=oi();function jc({composeNode:s,composeEmptyNode:e},t,i,n,r){let o=r?.nodeClass??Mc.YAMLSeq,l=new o(t.schema);t.atRoot&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let c=i.offset,f=null;for(let{start:p,value:u}of i.items){let h=_c.resolveProps(p,{indicator:"seq-item-ind",next:u,offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0});if(!h.found)if(h.anchor||h.tag||u)u?.type==="block-seq"?n(h.end,"BAD_INDENT","All sequence items must start at the same column"):n(c,"MISSING_CHAR","Sequence item without - indicator");else{f=h.end,h.comment&&(l.comment=h.comment);continue}let g=u?s(t,u,h,n):e(t,h.end,p,null,h,n);t.schema.compat&&Dc.flowIndentCheck(i.indent,u,n),c=g.range[2],l.items.push(g)}return l.range=[i.offset,c,f??c],l}a(jc,"resolveBlockSeq");Cr.resolveBlockSeq=jc});var be=y(Pr=>{"use strict";function Bc(s,e,t,i){let n="";if(s){let r=!1,o="";for(let l of s){let{source:c,type:f}=l;switch(f){case"space":r=!0;break;case"comment":{t&&!r&&i(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let p=c.substring(1)||" ";n?n+=o+p:n=p,o="";break}case"newline":n&&(o+=c),r=!0;break;default:i(l,"UNEXPECTED_TOKEN",`Unexpected ${f} at node end`)}e+=c.length}}return{comment:n,offset:e}}a(Bc,"resolveEnd");Pr.resolveEnd=Bc});var Dr=y(_r=>{"use strict";var Kc=O(),Rc=Q(),$r=X(),Fc=z(),Uc=be(),Mr=xe(),Yc=Yt(),Jc=ai(),li="Block collections are not allowed within flow collections",ci=a(s=>s&&(s.type==="block-map"||s.type==="block-seq"),"isBlock");function Vc({composeNode:s,composeEmptyNode:e},t,i,n,r){let o=i.start.source==="{",l=o?"flow map":"flow sequence",c=r?.nodeClass??(o?$r.YAMLMap:Fc.YAMLSeq),f=new c(t.schema);f.flow=!0;let p=t.atRoot;p&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let u=i.offset+i.start.source.length;for(let m=0;m<i.items.length;++m){let S=i.items[m],{start:v,key:k,sep:N,value:A}=S,q=Mr.resolveProps(v,{flow:l,indicator:"explicit-key-ind",next:k??N?.[0],offset:u,onError:n,parentIndent:i.indent,startOnNewline:!1});if(!q.found){if(!q.anchor&&!q.tag&&!N&&!A){m===0&&q.comma?n(q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):m<i.items.length-1&&n(q.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),q.comment&&(f.comment?f.comment+=`
68
+ `+q.comment:f.comment=q.comment),u=q.end;continue}!o&&t.options.strict&&Yc.containsNewline(k)&&n(k,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(m===0)q.comma&&n(q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(q.comma||n(q.start,"MISSING_CHAR",`Missing , between ${l} items`),q.comment){let L="";e:for(let w of v)switch(w.type){case"comma":case"space":break;case"comment":L=w.source.substring(1);break e;default:break e}if(L){let w=f.items[f.items.length-1];Kc.isPair(w)&&(w=w.value??w.key),w.comment?w.comment+=`
69
+ `+L:w.comment=L,q.comment=q.comment.substring(L.length+1)}}if(!o&&!N&&!q.found){let L=A?s(t,A,q,n):e(t,q.end,N,null,q,n);f.items.push(L),u=L.range[2],ci(A)&&n(L.range,"BLOCK_IN_FLOW",li)}else{t.atKey=!0;let L=q.end,w=k?s(t,k,q,n):e(t,L,v,null,q,n);ci(k)&&n(w.range,"BLOCK_IN_FLOW",li),t.atKey=!1;let C=Mr.resolveProps(N??[],{flow:l,indicator:"map-value-ind",next:A,offset:w.range[2],onError:n,parentIndent:i.indent,startOnNewline:!1});if(C.found){if(!o&&!q.found&&t.options.strict){if(N)for(let I of N){if(I===C.found)break;if(I.type==="newline"){n(I,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}q.start<C.found.offset-1024&&n(C.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else A&&("source"in A&&A.source?.[0]===":"?n(A,"MISSING_CHAR",`Missing space after : in ${l}`):n(C.start,"MISSING_CHAR",`Missing , or : between ${l} items`));let J=A?s(t,A,C,n):C.found?e(t,C.end,N,null,C,n):null;J?ci(A)&&n(J.range,"BLOCK_IN_FLOW",li):C.comment&&(w.comment?w.comment+=`
70
+ `+C.comment:w.comment=C.comment);let le=new Rc.Pair(w,J);if(t.options.keepSourceTokens&&(le.srcToken=S),o){let I=f;Jc.mapIncludes(t,I.items,w)&&n(L,"DUPLICATE_KEY","Map keys must be unique"),I.items.push(le)}else{let I=new $r.YAMLMap(t.schema);I.flow=!0,I.items.push(le);let Mi=(J??w).range;I.range=[w.range[0],Mi[1],Mi[2]],f.items.push(I)}u=J?J.range[2]:C.end}}let h=o?"}":"]",[g,...b]=i.end,d=u;if(g?.source===h)d=g.offset+g.source.length;else{let m=l[0].toUpperCase()+l.substring(1),S=p?`${m} must end with a ${h}`:`${m} in block collection must be sufficiently indented and end with a ${h}`;n(u,p?"MISSING_CHAR":"BAD_INDENT",S),g&&g.source.length!==1&&b.unshift(g)}if(b.length>0){let m=Uc.resolveEnd(b,d,t.options.strict,n);m.comment&&(f.comment?f.comment+=`
71
+ `+m.comment:f.comment=m.comment),f.range=[i.offset,d,m.offset]}else f.range=[i.offset,d,d];return f}a(Vc,"resolveFlowCollection");_r.resolveFlowCollection=Vc});var Br=y(jr=>{"use strict";var xc=O(),Wc=T(),Gc=X(),Qc=z(),Hc=Tr(),Xc=Ir(),zc=Dr();function fi(s,e,t,i,n,r){let o=t.type==="block-map"?Hc.resolveBlockMap(s,e,t,i,r):t.type==="block-seq"?Xc.resolveBlockSeq(s,e,t,i,r):zc.resolveFlowCollection(s,e,t,i,r),l=o.constructor;return n==="!"||n===l.tagName?(o.tag=l.tagName,o):(n&&(o.tag=n),o)}a(fi,"resolveCollection");function Zc(s,e,t,i,n){let r=i.tag,o=r?e.directives.tagName(r.source,h=>n(r,"TAG_RESOLVE_FAILED",h)):null;if(t.type==="block-seq"){let{anchor:h,newlineAfterProp:g}=i,b=h&&r?h.offset>r.offset?h:r:h??r;b&&(!g||g.offset<b.offset)&&n(b,"MISSING_CHAR","Missing newline after block sequence props")}let l=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!r||!o||o==="!"||o===Gc.YAMLMap.tagName&&l==="map"||o===Qc.YAMLSeq.tagName&&l==="seq")return fi(s,e,t,n,o);let c=e.schema.tags.find(h=>h.tag===o&&h.collection===l);if(!c){let h=e.schema.knownTags[o];if(h?.collection===l)e.schema.tags.push(Object.assign({},h,{default:!1})),c=h;else return h?n(r,"BAD_COLLECTION_TYPE",`${h.tag} used for ${l} collection, but expects ${h.collection??"scalar"}`,!0):n(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),fi(s,e,t,n,o)}let f=fi(s,e,t,n,o,c),p=c.resolve?.(f,h=>n(r,"TAG_RESOLVE_FAILED",h),e.options)??f,u=xc.isNode(p)?p:new Wc.Scalar(p);return u.range=f.range,u.tag=o,c?.format&&(u.format=c.format),u}a(Zc,"composeCollection");jr.composeCollection=Zc});var hi=y(Kr=>{"use strict";var ui=T();function ef(s,e,t){let i=e.offset,n=tf(e,s.options.strict,t);if(!n)return{value:"",type:null,comment:"",range:[i,i,i]};let r=n.mode===">"?ui.Scalar.BLOCK_FOLDED:ui.Scalar.BLOCK_LITERAL,o=e.source?sf(e.source):[],l=o.length;for(let d=o.length-1;d>=0;--d){let m=o[d][1];if(m===""||m==="\r")l=d;else break}if(l===0){let d=n.chomp==="+"&&o.length>0?`
72
+ `.repeat(Math.max(1,o.length-1)):"",m=i+n.length;return e.source&&(m+=e.source.length),{value:d,type:r,comment:n.comment,range:[i,m,m]}}let c=e.indent+n.indent,f=e.offset+n.length,p=0;for(let d=0;d<l;++d){let[m,S]=o[d];if(S===""||S==="\r")n.indent===0&&m.length>c&&(c=m.length);else{m.length<c&&t(f+m.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),n.indent===0&&(c=m.length),p=d,c===0&&!s.atRoot&&t(f,"BAD_INDENT","Block scalar values in collections must be indented");break}f+=m.length+S.length+1}for(let d=o.length-1;d>=l;--d)o[d][0].length>c&&(l=d+1);let u="",h="",g=!1;for(let d=0;d<p;++d)u+=o[d][0].slice(c)+`
73
+ `;for(let d=p;d<l;++d){let[m,S]=o[d];f+=m.length+S.length+1;let v=S[S.length-1]==="\r";if(v&&(S=S.slice(0,-1)),S&&m.length<c){let N=`Block scalar lines must not be less indented than their ${n.indent?"explicit indentation indicator":"first line"}`;t(f-S.length-(v?2:1),"BAD_INDENT",N),m=""}r===ui.Scalar.BLOCK_LITERAL?(u+=h+m.slice(c)+S,h=`
74
+ `):m.length>c||S[0]===" "?(h===" "?h=`
75
+ `:!g&&h===`
76
+ `&&(h=`
77
+
78
+ `),u+=h+m.slice(c)+S,h=`
79
+ `,g=!0):S===""?h===`
80
+ `?u+=`
81
+ `:h=`
82
+ `:(u+=h+S,h=" ",g=!1)}switch(n.chomp){case"-":break;case"+":for(let d=l;d<o.length;++d)u+=`
83
+ `+o[d][0].slice(c);u[u.length-1]!==`
84
+ `&&(u+=`
85
+ `);break;default:u+=`
86
+ `}let b=i+n.length+e.source.length;return{value:u,type:r,comment:n.comment,range:[i,b,b]}}a(ef,"resolveBlockScalar");function tf({offset:s,props:e},t,i){if(e[0].type!=="block-scalar-header")return i(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:n}=e[0],r=n[0],o=0,l="",c=-1;for(let h=1;h<n.length;++h){let g=n[h];if(!l&&(g==="-"||g==="+"))l=g;else{let b=Number(g);!o&&b?o=b:c===-1&&(c=s+h)}}c!==-1&&i(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${n}`);let f=!1,p="",u=n.length;for(let h=1;h<e.length;++h){let g=e[h];switch(g.type){case"space":f=!0;case"newline":u+=g.source.length;break;case"comment":t&&!f&&i(g,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),u+=g.source.length,p=g.source.substring(1);break;case"error":i(g,"UNEXPECTED_TOKEN",g.message),u+=g.source.length;break;default:{let b=`Unexpected token in block scalar header: ${g.type}`;i(g,"UNEXPECTED_TOKEN",b);let d=g.source;d&&typeof d=="string"&&(u+=d.length)}}}return{mode:r,indent:o,chomp:l,comment:p,length:u}}a(tf,"parseBlockScalarHeader");function sf(s){let e=s.split(/\n( *)/),t=e[0],i=t.match(/^( *)/),r=[i?.[1]?[i[1],t.slice(i[1].length)]:["",t]];for(let o=1;o<e.length;o+=2)r.push([e[o],e[o+1]]);return r}a(sf,"splitLines");Kr.resolveBlockScalar=ef});var pi=y(Fr=>{"use strict";var di=T(),nf=be();function rf(s,e,t){let{offset:i,type:n,source:r,end:o}=s,l,c,f=a((h,g,b)=>t(i+h,g,b),"_onError");switch(n){case"scalar":l=di.Scalar.PLAIN,c=of(r,f);break;case"single-quoted-scalar":l=di.Scalar.QUOTE_SINGLE,c=af(r,f);break;case"double-quoted-scalar":l=di.Scalar.QUOTE_DOUBLE,c=lf(r,f);break;default:return t(s,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${n}`),{value:"",type:null,comment:"",range:[i,i+r.length,i+r.length]}}let p=i+r.length,u=nf.resolveEnd(o,p,e,t);return{value:c,type:l,comment:u.comment,range:[i,p,u.offset]}}a(rf,"resolveFlowScalar");function of(s,e){let t="";switch(s[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${s[0]}`;break}case"@":case"`":{t=`reserved character ${s[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),Rr(s)}a(of,"plainValue");function af(s,e){return(s[s.length-1]!=="'"||s.length===1)&&e(s.length,"MISSING_CHAR","Missing closing 'quote"),Rr(s.slice(1,-1)).replace(/''/g,"'")}a(af,"singleQuotedValue");function Rr(s){let e=/(.*?)\r?\n/sy,t=e.exec(s);if(!t)return s;let i,n;try{i=new RegExp("(?<![ ])[ ]+$"),n=new RegExp("^[ ]+|(?<![ ])[ ]+$","g")}catch{i=/[ \t]+$/,n=/^[ \t]+|[ \t]+$/g}let r=t[1].replace(i,""),o=" ",l=e.lastIndex;for(;t=e.exec(s);){let f=t[1].replace(n,"");f===""?o===`
87
+ `?r+=o:o=`
88
+ `:(r+=o+f,o=" "),l=e.lastIndex}let c=/[ \t]*(.*)/sy;return c.lastIndex=l,t=c.exec(s),r+o+(t?.[1]??"")}a(Rr,"unfoldLines");function lf(s,e){let t="";for(let i=1;i<s.length-1;++i){let n=s[i];if(!(n==="\r"&&s[i+1]===`
89
+ `))if(n===`
90
+ `){let{fold:r,offset:o}=cf(s,i);t+=r,i=o}else if(n==="\\"){let r=s[++i],o=ff[r];if(o)t+=o;else if(r===`
91
+ `)for(r=s[i+1];r===" "||r===" ";)r=s[++i+1];else if(r==="\r"&&s[i+1]===`
92
+ `)for(r=s[++i+1];r===" "||r===" ";)r=s[++i+1];else if(r==="x"||r==="u"||r==="U"){let l=r==="x"?2:r==="u"?4:8;t+=uf(s,i+1,l,e),i+=l}else{let l=s.substr(i-1,2);e(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),t+=l}}else if(n===" "||n===" "){let r=i,o=s[i+1];for(;o===" "||o===" ";)o=s[++i+1];o!==`
93
+ `&&!(o==="\r"&&s[i+2]===`
94
+ `)&&(t+=i>r?s.slice(r,i+1):n)}else t+=n}return(s[s.length-1]!=='"'||s.length===1)&&e(s.length,"MISSING_CHAR",'Missing closing "quote'),t}a(lf,"doubleQuotedValue");function cf(s,e){let t="",i=s[e+1];for(;(i===" "||i===" "||i===`
95
+ `||i==="\r")&&!(i==="\r"&&s[e+2]!==`
96
+ `);)i===`
97
+ `&&(t+=`
98
+ `),e+=1,i=s[e+1];return t||(t=" "),{fold:t,offset:e}}a(cf,"foldNewline");var ff={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
99
+ `,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function uf(s,e,t,i){let n=s.substr(e,t),o=n.length===t&&/^[0-9a-fA-F]+$/.test(n)?parseInt(n,16):NaN;try{return String.fromCodePoint(o)}catch{let l=s.substr(e-2,t+2);return i(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}}a(uf,"parseCharCode");Fr.resolveFlowScalar=rf});var Jr=y(Yr=>{"use strict";var oe=O(),Ur=T(),hf=hi(),df=pi();function pf(s,e,t,i){let{value:n,type:r,comment:o,range:l}=e.type==="block-scalar"?hf.resolveBlockScalar(s,e,i):df.resolveFlowScalar(e,s.options.strict,i),c=t?s.directives.tagName(t.source,u=>i(t,"TAG_RESOLVE_FAILED",u)):null,f;s.options.stringKeys&&s.atKey?f=s.schema[oe.SCALAR]:c?f=mf(s.schema,n,c,t,i):e.type==="scalar"?f=gf(s,n,e,i):f=s.schema[oe.SCALAR];let p;try{let u=f.resolve(n,h=>i(t??e,"TAG_RESOLVE_FAILED",h),s.options);p=oe.isScalar(u)?u:new Ur.Scalar(u)}catch(u){let h=u instanceof Error?u.message:String(u);i(t??e,"TAG_RESOLVE_FAILED",h),p=new Ur.Scalar(n)}return p.range=l,p.source=n,r&&(p.type=r),c&&(p.tag=c),f.format&&(p.format=f.format),o&&(p.comment=o),p}a(pf,"composeScalar");function mf(s,e,t,i,n){if(t==="!")return s[oe.SCALAR];let r=[];for(let l of s.tags)if(!l.collection&&l.tag===t)if(l.default&&l.test)r.push(l);else return l;for(let l of r)if(l.test?.test(e))return l;let o=s.knownTags[t];return o&&!o.collection?(s.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(n(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),s[oe.SCALAR])}a(mf,"findScalarTagByName");function gf({atKey:s,directives:e,schema:t},i,n,r){let o=t.tags.find(l=>(l.default===!0||s&&l.default==="key")&&l.test?.test(i))||t[oe.SCALAR];if(t.compat){let l=t.compat.find(c=>c.default&&c.test?.test(i))??t[oe.SCALAR];if(o.tag!==l.tag){let c=e.tagString(o.tag),f=e.tagString(l.tag),p=`Value may be parsed as either ${c} or ${f}`;r(n,"TAG_RESOLVE_FAILED",p,!0)}}return o}a(gf,"findScalarTagByTest");Yr.composeScalar=pf});var xr=y(Vr=>{"use strict";function yf(s,e,t){if(e){t??(t=e.length);for(let i=t-1;i>=0;--i){let n=e[i];switch(n.type){case"space":case"comment":case"newline":s-=n.source.length;continue}for(n=e[++i];n?.type==="space";)s+=n.source.length,n=e[++i];break}}return s}a(yf,"emptyScalarPosition");Vr.emptyScalarPosition=yf});var Qr=y(gi=>{"use strict";var bf=Oe(),wf=O(),Sf=Br(),Wr=Jr(),vf=be(),kf=xr(),Nf={composeNode:Gr,composeEmptyNode:mi};function Gr(s,e,t,i){let n=s.atKey,{spaceBefore:r,comment:o,anchor:l,tag:c}=t,f,p=!0;switch(e.type){case"alias":f=Af(s,e,i),(l||c)&&i(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":f=Wr.composeScalar(s,e,c,i),l&&(f.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{f=Sf.composeCollection(Nf,s,e,t,i),l&&(f.anchor=l.source.substring(1))}catch(u){let h=u instanceof Error?u.message:String(u);i(e,"RESOURCE_EXHAUSTION",h)}break;default:{let u=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;i(e,"UNEXPECTED_TOKEN",u),p=!1}}return f??(f=mi(s,e.offset,void 0,null,t,i)),l&&f.anchor===""&&i(l,"BAD_ALIAS","Anchor cannot be an empty string"),n&&s.options.stringKeys&&(!wf.isScalar(f)||typeof f.value!="string"||f.tag&&f.tag!=="tag:yaml.org,2002:str")&&i(c??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),r&&(f.spaceBefore=!0),o&&(e.type==="scalar"&&e.source===""?f.comment=o:f.commentBefore=o),s.options.keepSourceTokens&&p&&(f.srcToken=e),f}a(Gr,"composeNode");function mi(s,e,t,i,{spaceBefore:n,comment:r,anchor:o,tag:l,end:c},f){let p={type:"scalar",offset:kf.emptyScalarPosition(e,t,i),indent:-1,source:""},u=Wr.composeScalar(s,p,l,f);return o&&(u.anchor=o.source.substring(1),u.anchor===""&&f(o,"BAD_ALIAS","Anchor cannot be an empty string")),n&&(u.spaceBefore=!0),r&&(u.comment=r,u.range[2]=c),u}a(mi,"composeEmptyNode");function Af({options:s},{offset:e,source:t,end:i},n){let r=new bf.Alias(t.substring(1));r.source===""&&n(e,"BAD_ALIAS","Alias cannot be an empty string"),r.source.endsWith(":")&&n(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=e+t.length,l=vf.resolveEnd(i,o,s.strict,n);return r.range=[e,o,l.offset],l.comment&&(r.comment=l.comment),r}a(Af,"composeAlias");gi.composeEmptyNode=mi;gi.composeNode=Gr});var zr=y(Xr=>{"use strict";var qf=Ue(),Hr=Qr(),Of=be(),Ef=xe();function Lf(s,e,{offset:t,start:i,value:n,end:r},o){let l=Object.assign({_directives:e},s),c=new qf.Document(void 0,l),f={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},p=Ef.resolveProps(i,{indicator:"doc-start",next:n??r?.[0],offset:t,onError:o,parentIndent:0,startOnNewline:!0});p.found&&(c.directives.docStart=!0,n&&(n.type==="block-map"||n.type==="block-seq")&&!p.hasNewline&&o(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=n?Hr.composeNode(f,n,p,o):Hr.composeEmptyNode(f,p.end,i,null,p,o);let u=c.contents.range[2],h=Of.resolveEnd(r,u,!1,o);return h.comment&&(c.comment=h.comment),c.range=[t,u,h.offset],c}a(Lf,"composeDoc");Xr.composeDoc=Lf});var bi=y(to=>{"use strict";var Tf=Ze("process"),Cf=is(),If=Ue(),We=Ve(),Zr=O(),Pf=zr(),$f=be();function Ge(s){if(typeof s=="number")return[s,s+1];if(Array.isArray(s))return s.length===2?s:[s[0],s[1]];let{offset:e,source:t}=s;return[e,e+(typeof t=="string"?t.length:1)]}a(Ge,"getErrorPos");function eo(s){let e="",t=!1,i=!1;for(let n=0;n<s.length;++n){let r=s[n];switch(r[0]){case"#":e+=(e===""?"":i?`
100
+
101
+ `:`
102
+ `)+(r.substring(1)||" "),t=!0,i=!1;break;case"%":s[n+1]?.[0]!=="#"&&(n+=1),t=!1;break;default:t||(i=!0),t=!1}}return{comment:e,afterEmptyLine:i}}a(eo,"parsePrelude");var yi=class{static{a(this,"Composer")}constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,i,n,r)=>{let o=Ge(t);r?this.warnings.push(new We.YAMLWarning(o,i,n)):this.errors.push(new We.YAMLParseError(o,i,n))},this.directives=new Cf.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:i,afterEmptyLine:n}=eo(this.prelude);if(i){let r=e.contents;if(t)e.comment=e.comment?`${e.comment}
103
+ ${i}`:i;else if(n||e.directives.docStart||!r)e.commentBefore=i;else if(Zr.isCollection(r)&&!r.flow&&r.items.length>0){let o=r.items[0];Zr.isPair(o)&&(o=o.key);let l=o.commentBefore;o.commentBefore=l?`${i}
104
+ ${l}`:i}else{let o=r.commentBefore;r.commentBefore=o?`${i}
105
+ ${o}`:i}}if(t){for(let r=0;r<this.errors.length;++r)e.errors.push(this.errors[r]);for(let r=0;r<this.warnings.length;++r)e.warnings.push(this.warnings[r])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:eo(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,i=-1){for(let n of e)yield*this.next(n);yield*this.end(t,i)}*next(e){switch(Tf.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(t,i,n)=>{let r=Ge(e);r[0]+=t,this.onError(r,"BAD_DIRECTIVE",i,n)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=Pf.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,i=new We.YAMLParseError(Ge(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){let i="Unexpected doc-end without preceding document";this.errors.push(new We.YAMLParseError(Ge(e),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;let t=$f.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let i=this.doc.comment;this.doc.comment=i?`${i}
106
+ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new We.YAMLParseError(Ge(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let i=Object.assign({_directives:this.directives},this.options),n=new If.Document(void 0,i);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}};to.Composer=yi});var no=y(Jt=>{"use strict";var Mf=hi(),_f=pi(),Df=Ve(),so=Ie();function jf(s,e=!0,t){if(s){let i=a((n,r,o)=>{let l=typeof n=="number"?n:Array.isArray(n)?n[0]:n.offset;if(t)t(l,r,o);else throw new Df.YAMLParseError([l,l+1],r,o)},"_onError");switch(s.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return _f.resolveFlowScalar(s,e,i);case"block-scalar":return Mf.resolveBlockScalar({options:{strict:e}},s,i)}}return null}a(jf,"resolveAsScalar");function Bf(s,e){let{implicitKey:t=!1,indent:i,inFlow:n=!1,offset:r=-1,type:o="PLAIN"}=e,l=so.stringifyString({type:o,value:s},{implicitKey:t,indent:i>0?" ".repeat(i):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}}),c=e.end??[{type:"newline",offset:-1,indent:i,source:`
107
+ `}];switch(l[0]){case"|":case">":{let f=l.indexOf(`
108
+ `),p=l.substring(0,f),u=l.substring(f+1)+`
109
+ `,h=[{type:"block-scalar-header",offset:r,indent:i,source:p}];return io(h,c)||h.push({type:"newline",offset:-1,indent:i,source:`
110
+ `}),{type:"block-scalar",offset:r,indent:i,props:h,source:u}}case'"':return{type:"double-quoted-scalar",offset:r,indent:i,source:l,end:c};case"'":return{type:"single-quoted-scalar",offset:r,indent:i,source:l,end:c};default:return{type:"scalar",offset:r,indent:i,source:l,end:c}}}a(Bf,"createScalarToken");function Kf(s,e,t={}){let{afterKey:i=!1,implicitKey:n=!1,inFlow:r=!1,type:o}=t,l="indent"in s?s.indent:null;if(i&&typeof l=="number"&&(l+=2),!o)switch(s.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let f=s.props[0];if(f.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=f.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let c=so.stringifyString({type:o,value:e},{implicitKey:n||l===null,indent:l!==null&&l>0?" ".repeat(l):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":Rf(s,c);break;case'"':wi(s,c,"double-quoted-scalar");break;case"'":wi(s,c,"single-quoted-scalar");break;default:wi(s,c,"scalar")}}a(Kf,"setScalarValue");function Rf(s,e){let t=e.indexOf(`
111
+ `),i=e.substring(0,t),n=e.substring(t+1)+`
112
+ `;if(s.type==="block-scalar"){let r=s.props[0];if(r.type!=="block-scalar-header")throw new Error("Invalid block scalar header");r.source=i,s.source=n}else{let{offset:r}=s,o="indent"in s?s.indent:-1,l=[{type:"block-scalar-header",offset:r,indent:o,source:i}];io(l,"end"in s?s.end:void 0)||l.push({type:"newline",offset:-1,indent:o,source:`
113
+ `});for(let c of Object.keys(s))c!=="type"&&c!=="offset"&&delete s[c];Object.assign(s,{type:"block-scalar",indent:o,props:l,source:n})}}a(Rf,"setBlockScalarValue");function io(s,e){if(e)for(let t of e)switch(t.type){case"space":case"comment":s.push(t);break;case"newline":return s.push(t),!0}return!1}a(io,"addEndtoBlockProps");function wi(s,e,t){switch(s.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":s.type=t,s.source=e;break;case"block-scalar":{let i=s.props.slice(1),n=e.length;s.props[0].type==="block-scalar-header"&&(n-=s.props[0].source.length);for(let r of i)r.offset+=n;delete s.props,Object.assign(s,{type:t,source:e,end:i});break}case"block-map":case"block-seq":{let n={type:"newline",offset:s.offset+e.length,indent:s.indent,source:`
114
+ `};delete s.items,Object.assign(s,{type:t,source:e,end:[n]});break}default:{let i="indent"in s?s.indent:-1,n="end"in s&&Array.isArray(s.end)?s.end.filter(r=>r.type==="space"||r.type==="comment"||r.type==="newline"):[];for(let r of Object.keys(s))r!=="type"&&r!=="offset"&&delete s[r];Object.assign(s,{type:t,indent:i,source:e,end:n})}}}a(wi,"setFlowScalarValue");Jt.createScalarToken=Bf;Jt.resolveAsScalar=jf;Jt.setScalarValue=Kf});var oo=y(ro=>{"use strict";var Ff=a(s=>"type"in s?xt(s):Vt(s),"stringify");function xt(s){switch(s.type){case"block-scalar":{let e="";for(let t of s.props)e+=xt(t);return e+s.source}case"block-map":case"block-seq":{let e="";for(let t of s.items)e+=Vt(t);return e}case"flow-collection":{let e=s.start.source;for(let t of s.items)e+=Vt(t);for(let t of s.end)e+=t.source;return e}case"document":{let e=Vt(s);if(s.end)for(let t of s.end)e+=t.source;return e}default:{let e=s.source;if("end"in s&&s.end)for(let t of s.end)e+=t.source;return e}}}a(xt,"stringifyToken");function Vt({start:s,key:e,sep:t,value:i}){let n="";for(let r of s)n+=r.source;if(e&&(n+=xt(e)),t)for(let r of t)n+=r.source;return i&&(n+=xt(i)),n}a(Vt,"stringifyItem");ro.stringify=Ff});var fo=y(co=>{"use strict";var Si=Symbol("break visit"),Uf=Symbol("skip children"),ao=Symbol("remove item");function ae(s,e){"type"in s&&s.type==="document"&&(s={start:s.start,value:s.value}),lo(Object.freeze([]),s,e)}a(ae,"visit");ae.BREAK=Si;ae.SKIP=Uf;ae.REMOVE=ao;ae.itemAtPath=(s,e)=>{let t=s;for(let[i,n]of e){let r=t?.[i];if(r&&"items"in r)t=r.items[n];else return}return t};ae.parentCollection=(s,e)=>{let t=ae.itemAtPath(s,e.slice(0,-1)),i=e[e.length-1][0],n=t?.[i];if(n&&"items"in n)return n;throw new Error("Parent collection not found")};function lo(s,e,t){let i=t(e,s);if(typeof i=="symbol")return i;for(let n of["key","value"]){let r=e[n];if(r&&"items"in r){for(let o=0;o<r.items.length;++o){let l=lo(Object.freeze(s.concat([[n,o]])),r.items[o],t);if(typeof l=="number")o=l-1;else{if(l===Si)return Si;l===ao&&(r.items.splice(o,1),o-=1)}}typeof i=="function"&&n==="key"&&(i=i(e,s))}}return typeof i=="function"?i(e,s):i}a(lo,"_visit");co.visit=ae});var Wt=y(_=>{"use strict";var vi=no(),Yf=oo(),Jf=fo(),ki="\uFEFF",Ni="",Ai="",qi="",Vf=a(s=>!!s&&"items"in s,"isCollection"),xf=a(s=>!!s&&(s.type==="scalar"||s.type==="single-quoted-scalar"||s.type==="double-quoted-scalar"||s.type==="block-scalar"),"isScalar");function Wf(s){switch(s){case ki:return"<BOM>";case Ni:return"<DOC>";case Ai:return"<FLOW_END>";case qi:return"<SCALAR>";default:return JSON.stringify(s)}}a(Wf,"prettyToken");function Gf(s){switch(s){case ki:return"byte-order-mark";case Ni:return"doc-mode";case Ai:return"flow-error-end";case qi:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
115
+ `:case`\r
116
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(s[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}a(Gf,"tokenType");_.createScalarToken=vi.createScalarToken;_.resolveAsScalar=vi.resolveAsScalar;_.setScalarValue=vi.setScalarValue;_.stringify=Yf.stringify;_.visit=Jf.visit;_.BOM=ki;_.DOCUMENT=Ni;_.FLOW_END=Ai;_.SCALAR=qi;_.isCollection=Vf;_.isScalar=xf;_.prettyToken=Wf;_.tokenType=Gf});var Li=y(ho=>{"use strict";var Qe=Wt();function B(s){switch(s){case void 0:case" ":case`
117
+ `:case"\r":case" ":return!0;default:return!1}}a(B,"isEmpty");var uo=new Set("0123456789ABCDEFabcdef"),Qf=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Gt=new Set(",[]{}"),Hf=new Set(` ,[]{}
118
+ \r `),Oi=a(s=>!s||Hf.has(s),"isNotAnchorChar"),Ei=class{static{a(this,"Lexer")}constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let i=this.next??"stream";for(;i&&(t||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===`
119
+ `?!0:t==="\r"?this.buffer[e+1]===`
120
+ `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let i=0;for(;t===" ";)t=this.buffer[++i+e];if(t==="\r"){let n=this.buffer[i+e+1];if(n===`
121
+ `||!n&&!this.atEnd)return e+i+1}return t===`
122
+ `||i>=this.indentNext||!t&&!this.atEnd?e+i:-1}if(t==="-"||t==="."){let i=this.buffer.substr(e,3);if((i==="---"||i==="...")&&B(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
123
+ `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===Qe.BOM&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let t=e.length,i=e.indexOf("#");for(;i!==-1;){let r=e[i-1];if(r===" "||r===" "){t=i-1;break}else i=e.indexOf("#",i+1)}for(;;){let r=e[t-1];if(r===" "||r===" ")t-=1;else break}let n=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield Qe.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let t=this.peek(3);if((t==="---"||t==="...")&&B(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,t==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!B(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&B(t)){let i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Oi),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,i=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=i=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let n=this.getLine();if(n===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&n[0]!=="#"||i===0&&(n.startsWith("---")||n.startsWith("..."))&&B(n[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(n[0]==="]"||n[0]==="}")))return this.flowLevel=0,yield Qe.FLOW_END,yield*this.parseLineStart();let r=0;for(;n[r]===",";)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(r+=yield*this.pushIndicators(),n[r]){case void 0:return"flow";case"#":return yield*this.pushCount(n.length-r),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Oi),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let o=this.charAt(1);if(this.flowKey||B(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;t!==-1&&this.buffer[t+1]==="'";)t=this.buffer.indexOf("'",t+2);else for(;t!==-1;){let r=0;for(;this.buffer[t-1-r]==="\\";)r+=1;if(r%2===0)break;t=this.buffer.indexOf('"',t+1)}let i=this.buffer.substring(0,t),n=i.indexOf(`
124
+ `,this.pos);if(n!==-1){for(;n!==-1;){let r=this.continueScalar(n+1);if(r===-1)break;n=i.indexOf(`
125
+ `,r)}n!==-1&&(t=n-(i[n-1]==="\r"?2:1))}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t==="+")this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil(t=>B(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,i;e:for(let r=this.pos;i=this.buffer[r];++r)switch(i){case" ":t+=1;break;case`
126
+ `:e=r,t=0;break;case"\r":{let o=this.buffer[r+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
127
+ `)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let r=this.continueScalar(e+1);if(r===-1)break;e=this.buffer.indexOf(`
128
+ `,r)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let n=e+1;for(i=this.buffer[n];i===" ";)i=this.buffer[++n];if(i===" "){for(;i===" "||i===" "||i==="\r"||i===`
129
+ `;)i=this.buffer[++n];e=n-1}else if(!this.blockScalarKeep)do{let r=e-1,o=this.buffer[r];o==="\r"&&(o=this.buffer[--r]);let l=r;for(;o===" ";)o=this.buffer[--r];if(o===`
130
+ `&&r>=this.pos&&r+1+t>l)e=r;else break}while(!0);return yield Qe.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,i=this.pos-1,n;for(;n=this.buffer[++i];)if(n===":"){let r=this.buffer[i+1];if(B(r)||e&&Gt.has(r))break;t=i}else if(B(n)){let r=this.buffer[i+1];if(n==="\r"&&(r===`
131
+ `?(i+=1,n=`
132
+ `,r=this.buffer[i+1]):t=i),r==="#"||e&&Gt.has(r))break;if(n===`
133
+ `){let o=this.continueScalar(i+1);if(o===-1)break;i=Math.max(i,o-2)}}else{if(e&&Gt.has(n))break;t=i}return!n&&!this.atEnd?this.setNext("plain-scalar"):(yield Qe.SCALAR,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let i=this.buffer.slice(this.pos,e);return i?(yield i,this.pos+=i.length,i.length):(t&&(yield""),0)}*pushIndicators(){let e=0;e:for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case"&":e+=yield*this.pushUntil(Oi),e+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{let t=this.flowLevel>0,i=this.charAt(1);if(B(i)||t&&Gt.has(i)){t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!B(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Qf.has(t))t=this.buffer[++e];else if(t==="%"&&uo.has(this.buffer[e+1])&&uo.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
134
+ `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
135
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,i;do i=this.buffer[++t];while(i===" "||e&&i===" ");let n=t-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=t),n}*pushUntil(e){let t=this.pos,i=this.buffer[t];for(;!e(i);)i=this.buffer[++t];return yield*this.pushToIndex(t,!1)}};ho.Lexer=Ei});var Ci=y(po=>{"use strict";var Ti=class{static{a(this,"LineCounter")}constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,i=this.lineStarts.length;for(;t<i;){let r=t+i>>1;this.lineStarts[r]<e?t=r+1:i=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let n=this.lineStarts[t-1];return{line:t,col:e-n+1}}}};po.LineCounter=Ti});var Pi=y(wo=>{"use strict";var Xf=Ze("process"),mo=Wt(),zf=Li();function Z(s,e){for(let t=0;t<s.length;++t)if(s[t].type===e)return!0;return!1}a(Z,"includesToken");function go(s){for(let e=0;e<s.length;++e)switch(s[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}a(go,"findNonEmptyIndex");function bo(s){switch(s?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}a(bo,"isFlowToken");function Qt(s){switch(s.type){case"document":return s.start;case"block-map":{let e=s.items[s.items.length-1];return e.sep??e.start}case"block-seq":return s.items[s.items.length-1].start;default:return[]}}a(Qt,"getPrevProps");function we(s){if(s.length===0)return[];let e=s.length;e:for(;--e>=0;)switch(s[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;s[++e]?.type==="space";);return s.splice(e,s.length)}a(we,"getFirstKeyStartProps");function Ht(s,e){if(e.length<1e5)Array.prototype.push.apply(s,e);else for(let t=0;t<e.length;++t)s.push(e[t])}a(Ht,"arrayPushArray");function yo(s){if(s.start.type==="flow-seq-start")for(let e of s.items)e.sep&&!e.value&&!Z(e.start,"explicit-key-ind")&&!Z(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,bo(e.value)?e.value.end?Ht(e.value.end,e.sep):e.value.end=e.sep:Ht(e.start,e.sep),delete e.sep)}a(yo,"fixFlowSeqItems");var Ii=class{static{a(this,"Parser")}constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new zf.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let i of this.lexer.lex(e,t))yield*this.next(i);t||(yield*this.end())}*next(e){if(this.source=e,Xf.env.LOG_TOKENS&&console.log("|",mo.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=mo.tokenType(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let i=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type==="doc-end"&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else{let i=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in i?i.indent:0:t.type==="flow-collection"&&i.type==="document"&&(t.indent=0),t.type==="flow-collection"&&yo(t),i.type){case"document":i.value=t;break;case"block-scalar":i.props.push(t);break;case"block-map":{let n=i.items[i.items.length-1];if(n.value){i.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=i.items[i.items.length-1];n.value?i.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{let n=i.items[i.items.length-1];!n||n.value?i.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&go(n.start)===-1&&(t.indent===0||n.start.every(r=>r.type!=="comment"||r.indent<t.indent))&&(i.type==="document"?i.end=n.start:i.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{go(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){let t=Qt(this.peek(2)),i=we(t),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf(`
136
+ `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
137
+ `,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let i="end"in t.value?t.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Ht(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let i=!this.onKeyLine&&this.indent===e.indent,n=i&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind",r=[];if(n&&t.sep&&!t.value){let o=[];for(let l=0;l<t.sep.length;++l){let c=t.sep[l];switch(c.type){case"newline":o.push(l);break;case"space":break;case"comment":c.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(r=t.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":n||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):n||t.value?(r.push(this.sourceToken),e.items.push({start:r,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Z(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(bo(t.key)&&!Z(t.sep,"newline")){let o=we(t.start),l=t.key,c=t.sep;c.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:l,sep:c}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(Z(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let o=we(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||n?e.items.push({start:r,key:null,sep:[this.sourceToken]}):Z(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let o=this.flowScalar(this.type);n||t.value?(e.items.push({start:r,key:o,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(o):(Object.assign(t,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{let o=this.startBlockValue(e);if(o){if(o.type==="block-seq"){if(!t.explicitKey&&t.sep&&!Z(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else i&&e.items.push({start:r});this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let i="end"in t.value?t.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Ht(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||Z(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let i=this.startBlockValue(e);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i?.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let i=this.startBlockValue(e);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{let i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===e.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){let n=Qt(i),r=we(n);yo(e);let o=e.end.splice(1,e.end.length);o.push(this.sourceToken);let l={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
138
+ `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
139
+ `,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=Qt(e),i=we(t);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=Qt(e),i=we(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};wo.Parser=Ii});var Ao=y(Xe=>{"use strict";var So=bi(),Zf=Ue(),He=Ve(),eu=gs(),tu=O(),su=Ci(),vo=Pi();function ko(s){let e=s.prettyErrors!==!1;return{lineCounter:s.lineCounter||e&&new su.LineCounter||null,prettyErrors:e}}a(ko,"parseOptions");function iu(s,e={}){let{lineCounter:t,prettyErrors:i}=ko(e),n=new vo.Parser(t?.addNewLine),r=new So.Composer(e),o=Array.from(r.compose(n.parse(s)));if(i&&t)for(let l of o)l.errors.forEach(He.prettifyError(s,t)),l.warnings.forEach(He.prettifyError(s,t));return o.length>0?o:Object.assign([],{empty:!0},r.streamInfo())}a(iu,"parseAllDocuments");function No(s,e={}){let{lineCounter:t,prettyErrors:i}=ko(e),n=new vo.Parser(t?.addNewLine),r=new So.Composer(e),o=null;for(let l of r.compose(n.parse(s),!0,s.length))if(!o)o=l;else if(o.options.logLevel!=="silent"){o.errors.push(new He.YAMLParseError(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&t&&(o.errors.forEach(He.prettifyError(s,t)),o.warnings.forEach(He.prettifyError(s,t))),o}a(No,"parseDocument");function nu(s,e,t){let i;typeof e=="function"?i=e:t===void 0&&e&&typeof e=="object"&&(t=e);let n=No(s,t);if(!n)return null;if(n.warnings.forEach(r=>eu.warn(n.options.logLevel,r)),n.errors.length>0){if(n.options.logLevel!=="silent")throw n.errors[0];n.errors=[]}return n.toJS(Object.assign({reviver:i},t))}a(nu,"parse");function ru(s,e,t){let i=null;if(typeof e=="function"||Array.isArray(e)?i=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){let n=Math.round(t);t=n<1?void 0:n>8?{indent:8}:{indent:n}}if(s===void 0){let{keepUndefined:n}=t??e??{};if(!n)return}return tu.isDocument(s)&&!i?s.toString(t):new Zf.Document(s,i,t).toString(t)}a(ru,"stringify");Xe.parse=nu;Xe.parseAllDocuments=iu;Xe.parseDocument=No;Xe.stringify=ru});var Oo=y(E=>{"use strict";var ou=bi(),au=Ue(),lu=zs(),$i=Ve(),cu=Oe(),ee=O(),fu=Q(),uu=T(),hu=X(),du=z(),pu=Wt(),mu=Li(),gu=Ci(),yu=Pi(),Xt=Ao(),qo=ke();E.Composer=ou.Composer;E.Document=au.Document;E.Schema=lu.Schema;E.YAMLError=$i.YAMLError;E.YAMLParseError=$i.YAMLParseError;E.YAMLWarning=$i.YAMLWarning;E.Alias=cu.Alias;E.isAlias=ee.isAlias;E.isCollection=ee.isCollection;E.isDocument=ee.isDocument;E.isMap=ee.isMap;E.isNode=ee.isNode;E.isPair=ee.isPair;E.isScalar=ee.isScalar;E.isSeq=ee.isSeq;E.Pair=fu.Pair;E.Scalar=uu.Scalar;E.YAMLMap=hu.YAMLMap;E.YAMLSeq=du.YAMLSeq;E.CST=pu;E.Lexer=mu.Lexer;E.LineCounter=gu.LineCounter;E.Parser=yu.Parser;E.parse=Xt.parse;E.parseAllDocuments=Xt.parseAllDocuments;E.parseDocument=Xt.parseDocument;E.stringify=Xt.stringify;E.visit=qo.visit;E.visitAsync=qo.visitAsync});import{readFile as Ou}from"node:fs/promises";import ze from"node:path";import K from"node:process";import{parseArgs as Eu}from"node:util";function _i(s){return s instanceof Error||Object.prototype.toString.call(s)==="[object Error]"}a(_i,"isError");function te(s){try{return _i(s)&&typeof s.message=="string"&&s.message!==""?s.message:String(s)}catch{return"[unstringifiable value]"}}a(te,"describeError");var _o=Yo(Oo(),1);import{realpathSync as Eo}from"node:fs";import Lo from"node:process";import{fileURLToPath as bu}from"node:url";function To(s,e){let t=Lo.argv[1];if(t===void 0)return!1;try{return Eo(bu(s))===Eo(t)}catch(i){return Lo.stderr.write(`${e}: warning: could not determine entry point: ${te(i)}
140
+ `),!0}}a(To,"isEntryPoint");function wu(s,e){return Io(s)&&s.code===e}a(wu,"isErrorCode");function Co(s){return wu(s,"ENOENT")}a(Co,"isEnoent");function Se(s){return Io(s)&&!Array.isArray(s)}a(Se,"isRecord");function Io(s){return typeof s=="object"&&s!==null}a(Io,"isObject");var Po={$schema:"https://json-schema.org/draft/2020-12/schema",title:"Preferences",description:"Configuration read by agent skills. Resolved from .agents/preferences.yaml at the project level, with ~/.agents/preferences.yaml as a global fallback.",type:"object",properties:{$schema:{type:"string",description:"JSON Schema reference URI for editor tooling."},artifacts:{type:"object",description:"Artifact storage configuration: where generated artifacts live and how they are categorized.",properties:{base_dir:{type:"string",description:"Root directory for all generated artifacts. Supports `~` expansion. Default: `~/ai-artifacts`."},paths:{type:"object",description:"Maps artifact category names (e.g., `chats`, `devlogs`, `plans`) to subdirectory names relative to the project artifact directory. Any category key is permitted; values must be strings.",additionalProperties:{type:"string"}}}},commit:{type:"object",description:"Commit-title rendering configuration consumed by the `describe-change.mjs` script.",properties:{title_format:{type:"string",description:"Template string used to render commit titles. Supports the tokens `{scope}`, `{type}`, `{breaking}`, `{title}`, and `{ticket_ref}`, and nesting `[...]` groups that drop when a token directly inside them resolves empty."}},required:["title_format"]},editors:{type:"array",description:"Optional list of editor configurations mapping file extensions to an editor command.",items:{type:"object",properties:{name:{type:"string",description:"Display name of the editor."},command:{type:"string",description:"Shell command to open files. The file path is appended as an argument."},extensions:{type:"string",description:"Glob pattern for file types this editor handles (e.g., `*.md`)."}},required:["name","command","extensions"]}},integrations:{type:"object",description:"Per-integration configuration. Keys are integration names (e.g., `jira`, `github`, `linear`); each integration object must declare an `enabled` boolean.",properties:{jira:{type:"object",description:"Jira integration configuration. Beyond `enabled`, the keys here are read by the `manage-jira-ticket` helper, which the `create-ticket` skill runs to create a Jira work item.",properties:{enabled:{type:"boolean",description:"Whether the integration is enabled."},issue_types:{type:"object",description:"Maps work-type keys and aliases (from the work-type taxonomy, e.g. `feat`, `fix`, `bugfix`) to Jira issue-type names, plus a `default` entry covering every unmapped work type. A created work item whose work type matches neither falls back to `Task`.",additionalProperties:{type:"string"}},project_key:{type:"string",description:"Key of the Jira project to create work items in (e.g., `MAC`). Overrides the key derived from `project.ticket_ref_prefix` minus its trailing separator."}},required:["enabled"]}},additionalProperties:{type:"object",properties:{enabled:{type:"boolean",description:"Whether the integration is enabled."}},required:["enabled"]}},merge:{type:"object",description:"Squash-merge title rendering configuration for the `merge-pr` skill family.",properties:{title_format:{type:"string",description:"Template string used to render the squash-merge commit title. Supports the same token vocabulary as `commit.title_format`, plus `{pr_number}`."},strategy:{type:"string",description:"Reserved key. Not yet honored by the `merge-pr` skill family \u2014 the skill currently performs squash merges unconditionally. Recorded here so the schema does not flag the key as unknown when projects opt to set it in anticipation of future support."},delete_branch:{type:"boolean",description:"Reserved key. Not yet honored by the `merge-pr` skill family \u2014 branch deletion is currently controlled by command-line flags and platform defaults. Recorded here so the schema does not flag the key as unknown when projects opt to set it in anticipation of future support."}}},platform:{type:"string",description:"Deprecated legacy spelling of `scm`, retained so existing preferences files validate during the migration window. Prefer `scm`; a future release removes this alias.",enum:["github","bitbucket"]},pr:{type:"object",description:"Pull-request configuration: title rendering and the state at creation.",properties:{initial_state:{type:"string",enum:["draft","ready"],description:"The state in which `create-pr` opens a pull request: `draft`, or `ready` for review. Defaults to `draft`."},title_format:{type:"string",description:"Template string used to render pull-request titles. Supports the same token vocabulary as `commit.title_format`."}}},project:{type:"object",description:"Project identification configuration, and the project's declared stage (`maturity`, `sensitivity`, `audience`), which design guidance treats as premises.",properties:{audience:{type:"string",enum:["owner","team","public"],description:"Who uses the project. `owner`: only the repo's owner. `team`: a known, bounded group. `public`: anyone who can reach it. Read from the project preferences file only."},maturity:{type:"string",enum:["hobby","early","production"],description:"How far the project has come. `hobby`: built for the owner's own use or learning; breakage costs only the owner's time. `early`: in use by others, but the shape is still changing; downtime is tolerated. `production`: others depend on it; downtime and data loss have real costs. Read from the project preferences file only."},scopes:{type:"array",description:"Directories that own a change scope although they are not workspace packages, such as an app built by another toolchain. `describe-change resolve-scopes` resolves paths against these together with the pnpm workspace's packages, the longest containing directory winning. Read from the project preferences file only; the global file contributes no scopes. A declared directory does not become a workspace to any tool.",items:{type:"object",properties:{name:{type:"string",minLength:1,description:"Scope name. Defaults to the directory's basename, and overrides the basename of a package directory with the same path."},path:{type:"string",minLength:1,description:"Directory relative to the repository root. An absolute path, a path outside the repository, and a path that is not an existing directory are skipped with a warning."}},required:["path"],additionalProperties:!1}},sensitivity:{type:"string",enum:["low","personal","confidential"],description:"The most sensitive data that the project holds. `low`: nothing that would harm anyone if published. `personal`: personal data about the owner or identifiable individuals. `confidential`: secrets, credentials, or data that a third party is obliged to protect. Read from the project preferences file only."},slug:{type:"string",description:"Project identifier used for namespacing artifacts under `{base_dir}/projects/{slug}/`."},ticket_ref_prefix:{type:"string",description:"Prefix that appears at the start of `ticket_ref`. Use `#` for GitHub issues (added at render time, omitted from file paths) or a Jira project key like `MAC-` (part of the canonical ticket ID)."}}},repository:{type:"object",description:"Repository configuration: default remote and (deprecated) project slug fallback.",properties:{default_remote:{type:"object",description:"Default git remote used when constructing remote refs such as `origin/main`.",properties:{name:{type:"string",description:"Name of the default git remote (e.g., `origin`)."},default_branch:{type:"string",description:"Default branch of the remote (e.g., `main`)."}},required:["name","default_branch"]},slug:{type:"string",description:"Deprecated. Use `project.slug` instead. Kept as a fallback."}}},scm:{type:"string",description:"Source-code-management host. Supported values are `github` and `bitbucket`; new hosts can be added additively.",enum:["github","bitbucket"]},ticket:{type:"object",description:"Ticket (issue) configuration: title rendering, the base URL used to resolve bare ticket references, and the `pull-from-backlog` settings.",properties:{title_format:{type:"string",description:"Template string used to render ticket (issue) titles. Supports the same token vocabulary as `commit.title_format`."},base_url:{type:"string",description:"Org-stable base URL that a bare ticket id is appended to when reconstructing a ticket URL, for platforms where the URL cannot otherwise be derived (e.g. Jira `https://org.atlassian.net/browse/`). The trailing slash is optional. Surfaced into the branch manifest as `ticket_base_url`."},pull:{type:"object",description:"Settings of the `pull-from-backlog` skill, read from the project preferences file only.",properties:{assignOnPick:{type:"boolean",default:!1,description:"Assign the user to a picked ticket without asking first."},excludeLabels:{type:"array",items:{type:"string",minLength:1},default:["status:blocked","status:on-hold"],description:"Labels that make a ticket ineligible to be pulled, matched without regard to case. An ineligible ticket is never a candidate and does not count toward picking the Now milestone. An empty list disables exclusion."},now:{type:"string",minLength:1,description:"Title of the open milestone that forms the Now set. Without it, the Now set is the open milestone with the nearest due date, else the open milestone with the most open eligible issues (see `excludeLabels`), else the whole backlog."},priorityPrefix:{type:"string",minLength:1,default:"priority:",description:"Prefix of the priority labels. The value after it ranks `high`, `medium`, then `low`; any other value ranks as unlabelled."},staleBranchDays:{type:"integer",minimum:1,default:14,description:"Days since an in-progress branch's last commit at which the skill warns about it."},staleGroomDays:{type:"integer",minimum:1,default:14,description:"Days since the last groom at which the skill offers `/groom-backlog`."},staleGroomNewTickets:{type:"integer",minimum:1,default:10,description:"Open tickets created since the last groom at which the skill offers `/groom-backlog`."}},additionalProperties:!1}},required:["title_format"]},triage_feedback:{type:"object",description:"Settings of the `triage-feedback` skill.",properties:{defer_days:{type:"integer",minimum:1,description:"The days for which a deferred feedback cluster stays out of a triage, unless it gains an undeferred event. Defaults to 30."}}}},additionalProperties:!1};function $o(s,e){let t=Math.max(1,Math.floor(s.length/3)),i;for(let n of e.toSorted()){let r=vu(s.toLowerCase(),n.toLowerCase());r<=t&&(i===void 0||r<i.distance)&&(i={key:n,distance:r})}return i?.key}a($o,"findNearestKey");function vu(s,e){let t=Array.from({length:e.length+1},(i,n)=>n);for(let i=1;i<=s.length;i++){let n=[i];for(let r=1;r<=e.length;r++){let o=(t[r-1]??0)+(s[i-1]===e[r-1]?0:1);n[r]=Math.min((t[r]??0)+1,(n[r-1]??0)+1,o)}t=n}return t[e.length]??0}a(vu,"measureEditDistance");function Mo(s,e){let t=[];return zt(s,e,[],t),t}a(Mo,"validatePreferences");function ku(s){return s.length===0?"(root)":s.map((e,t)=>typeof e=="number"?`[${e}]`:t===0?e:`.${e}`).join("")}a(ku,"formatPath");function Nu(s,e){switch(e){case"array":return Array.isArray(s);case"boolean":return typeof s=="boolean";case"integer":return Number.isSafeInteger(s);case"number":return typeof s=="number";case"object":return Se(s);case"string":return typeof s=="string";default:return!0}}a(Nu,"matchesType");function ve(s,e,t,i){s.push({level:e,path:ku(t),message:i})}a(ve,"report");function Au(s,e,t,i){if(e.items!==void 0)for(let[n,r]of s.entries())zt(r,e.items,[...t,n],i)}a(Au,"walkArray");function qu(s,e,t,i){let n=Se(e.properties)?e.properties:void 0,r=e.required;if(Array.isArray(r))for(let o of r)typeof o=="string"&&!Object.hasOwn(s,o)&&ve(i,"error",t,`missing required key '${o}'`);for(let[o,l]of Object.entries(s)){let c=[...t,o];if(n!==void 0&&Object.hasOwn(n,o))zt(l,n[o],c,i);else if(Se(e.additionalProperties))zt(l,e.additionalProperties,c,i);else if(n!==void 0&&e.additionalProperties!==!0){let f=$o(o,Object.keys(n)),p=f===void 0?"":`; did you mean '${f}'?`;ve(i,"warning",c,`unrecognized key${p}`)}}}a(qu,"walkObject");function zt(s,e,t,i){if(Se(e)){if(e.type!==void 0&&!Nu(s,e.type)){let n=typeof e.type=="string"?e.type:JSON.stringify(e.type);ve(i,"error",t,`expected ${n} (got ${JSON.stringify(s)})`);return}if(Array.isArray(e.enum)&&!e.enum.includes(s)){let n=e.enum.map(r=>JSON.stringify(r)).join(", ");ve(i,"error",t,`must be one of ${n} (got ${JSON.stringify(s)})`)}typeof e.minLength=="number"&&typeof s=="string"&&s.length<e.minLength&&ve(i,"error",t,`must be at least ${e.minLength} characters long`),typeof e.minimum=="number"&&typeof s=="number"&&s<e.minimum&&ve(i,"error",t,`must be at least ${e.minimum} (got ${s})`),Se(s)?qu(s,e,t,i):Array.isArray(s)&&Au(s,e,t,i)}}a(zt,"walkValue");async function Lu(s,e,t=Do(K.argv[1])){if(s.includes("--help")||s.includes("-h"))return K.stdout.write(Tu(t)),0;let i;try{i=Iu(s)}catch(l){return K.stderr.write(`${t}: ${te(l)}; run ${t} --help for usage
141
+ `),1}let n=i.files.length===0,r=n?[ze.join(".agents","preferences.yaml")]:i.files,o=[];for(let l of r)o.push(await Pu(ze.resolve(e,l),{isOptional:n,isStrict:i.strict}));if(i.json)for(let l of o)K.stdout.write(`${JSON.stringify(l)}
142
+ `);else K.stdout.write(Cu(o,e,t));return o.every(l=>l.valid)?0:1}a(Lu,"runValidatePreferences");if(To(import.meta.url,"validate-preferences")){let s=Do(K.argv[1]);try{K.exit(await Lu(K.argv.slice(2),K.cwd(),s))}catch(e){K.stderr.write(`${s}: ${te(e)}
143
+ `),K.exit(1)}}function Tu(s){return[`${s}: validate preferences.yaml files against the preferences schema bundled with this release`,"",`Usage: ${s} [--json] [--strict] [file...]`,"","Arguments:"," file A preferences file to validate. Every named file must exist."," Without one, validates .agents/preferences.yaml, which may be absent.","","Options:"," --json Print one JSON object per file: { file, present, valid, findings }"," --strict Treat warnings, such as an unrecognized key, as failures"," -h, --help Print this help","","Exits 1 when any file is invalid, and 0 otherwise.","","Example:",` ${s} --strict .agents/preferences.yaml ~/.agents/preferences.yaml`,""].join(`
144
+ `)}a(Tu,"buildHelp");function Do(s){return s===void 0?"validate-preferences":ze.basename(s,ze.extname(s))}a(Do,"deriveProgramName");function Cu(s,e,t){let i=[];for(let r of s){let o=ze.relative(e,r.file)||r.file;!r.present&&r.valid&&i.push(`${o}: not present; the file is optional`);for(let l of r.findings)i.push(`${o}: ${l.path}: ${l.level}: ${l.message}`)}let n=s.filter(r=>!r.valid).length;return i.push(n===0?`${t}: ${s.length} file(s) valid`:`${t}: ${n} of ${s.length} file(s) invalid`),`${i.join(`
145
+ `)}
146
+ `}a(Cu,"formatText");function Iu(s){let{values:e,positionals:t}=Eu({args:[...s],allowPositionals:!0,options:{json:{type:"boolean",default:!1},strict:{type:"boolean",default:!1}},strict:!0});return{json:e.json,strict:e.strict,files:t}}a(Iu,"parseOptions");async function Pu(s,{isOptional:e,isStrict:t}){let i;try{i=await Ou(s,"utf8")}catch(l){if(!Co(l))throw l;return e?{file:s,present:!1,valid:!0,findings:[]}:{file:s,present:!1,valid:!1,findings:[{level:"error",path:"(root)",message:"file not found"}]}}let n;try{n=(0,_o.parse)(i)}catch(l){let c={level:"error",path:"(root)",message:`malformed YAML: ${te(l)}`};return{file:s,present:!0,valid:!1,findings:[c]}}let r=Mo(n??{},Po),o=t?r.length===0:r.every(l=>l.level!=="error");return{file:s,present:!0,valid:o,findings:r}}a(Pu,"validateFile");export{Lu as runValidatePreferences};
@@ -27,6 +27,8 @@ Each is an action item. Restate it in the block as the concrete action that it p
27
27
 
28
28
  The sweep runs in both directions. Having moved every ask into the block, read the block back and ask of each item whether it is really a question: An item whose answer follows from evidence that the agent already holds is a decision that it declined to make, and handing it back makes the user evaluate what a clause would have stated. Strike it, state the decision in the prose with its reason, and leave the block to the items that only the user can settle. An item that the agent could perform is a step that it declined to take: Run it, and leave in the block only the part that the agent cannot perform, named with its reason. A plan's "the owner exercises `/lab/book-row` by keyboard and on a touch device" is the counterexample: The agent drives the route through a debug browser, and the block holds at most how the control feels on a physical phone. A block emptied this way is a turn without an ask, which is a report rather than a failure.
29
29
 
30
+ An overload signal from the user, such as "I can't do this any more" or a count of the commands that they have run, empties the block in every turn until the user asks for something; the "Prompt formatting" section of the collaboration preferences states the rule.
31
+
30
32
  ## Items
31
33
 
32
34
  An item is a question, punctuated as one, naming the concrete action: