@ambler/circleci-config-sdk 0.12.15

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.
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CircleCI=t():e.CircleCI=t()}(this,(()=>(()=>{"use strict";var e={3818:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s="undefined"!=typeof window&&void 0!==window.document,r="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node,o="object"===("undefined"==typeof self?"undefined":n(self))&&self.constructor&&"DedicatedWorkerGlobalScope"===self.constructor.name,i="undefined"!=typeof window&&"nodejs"===window.name||"undefined"!=typeof navigator&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),a="undefined"!=typeof Deno&&void 0!==Deno.core;t.isBrowser=s,t.isWebWorker=o,t.isNode=r,t.isJsDom=i,t.isDeno=a},3465:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Workflow=t.Pipeline=t.Config=t.Job=t.mapping=t.orb=t.workflow=t.types=t.logic=t.executors=t.parameters=t.commands=t.reusable=void 0,t.reusable=o(n(5070)),t.commands=o(n(9511)),t.parameters=o(n(8796)),t.executors=o(n(1811)),t.logic=o(n(2115)),t.types=o(n(7411)),t.workflow=o(n(3438)),t.orb=o(n(1429)),t.mapping=o(n(6932));var i=n(3630);Object.defineProperty(t,"Job",{enumerable:!0,get:function(){return i.Job}});var a=n(7542);Object.defineProperty(t,"Config",{enumerable:!0,get:function(){return a.Config}});var c=n(4075);Object.defineProperty(t,"Pipeline",{enumerable:!0,get:function(){return c.Pipeline}});var l=n(1443);Object.defineProperty(t,"Workflow",{enumerable:!0,get:function(){return l.Workflow}})},5330:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddSSHKeys=void 0;const s=n(6932);t.AddSSHKeys=class{constructor(e){this.parameters=e}generate(){const e={add_ssh_keys:{}};return e.add_ssh_keys=Object.assign(Object.assign({},e.add_ssh_keys),this.parameters),e}get name(){return"add_ssh_keys"}get generableType(){return s.GenerableType.ADD_SSH_KEYS}}},201:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Restore=void 0;const s=n(6932);t.Restore=class{constructor(e){this.parameters=e}generate(){return{restore_cache:Object.assign({},this.parameters)}}get name(){return"restore_cache"}get generableType(){return s.GenerableType.RESTORE}}},3109:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Save=void 0;const s=n(6932);t.Save=class{constructor(e){this.parameters=e}generate(){return{save_cache:Object.assign({},this.parameters)}}get name(){return"save_cache"}get generableType(){return s.GenerableType.SAVE}}},3772:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Save=t.Restore=void 0;var s=n(201);Object.defineProperty(t,"Restore",{enumerable:!0,get:function(){return s.Restore}});var r=n(3109);Object.defineProperty(t,"Save",{enumerable:!0,get:function(){return r.Save}})},9761:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Checkout=void 0;const s=n(6932);t.Checkout=class{constructor(e){this.parameters=e}generate(){return void 0===this.parameters?this.name:{checkout:Object.assign({},this.parameters)}}get name(){return"checkout"}get generableType(){return s.GenerableType.CHECKOUT}}},4989:function(e,t,n){var s=this&&this.__rest||function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.Run=void 0;const r=n(6932);t.Run=class{constructor(e){this.parameters=e}generate(e=!1){const t=this.parameters,{command:n}=t,r=s(t,["command"]);return 0===Object.keys(r).length&&e?{run:n}:{run:this.parameters}}get name(){return"run"}addEnvVar(e,t){return this.parameters.environment?this.parameters.environment[e]=t:this.parameters.environment={[e]:t},this}get generableType(){return r.GenerableType.RUN}}},3137:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SetupRemoteDocker=void 0;const s=n(6932);t.SetupRemoteDocker=class{constructor(e={version:"20.10.6"}){this.parameters=e}generate(){return{setup_remote_docker:Object.assign({},this.parameters)}}get name(){return"setup_remote_docker"}get generableType(){return s.GenerableType.SETUP_REMOTE_DOCKER}setDockerLayerCaching(e){return this.parameters.docker_layer_caching=e,this}}},7372:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StoreArtifacts=void 0;const s=n(6932);t.StoreArtifacts=class{constructor(e){this.parameters=e}generate(){return{store_artifacts:Object.assign({},this.parameters)}}get name(){return"store_artifacts"}get generableType(){return s.GenerableType.STORE_ARTIFACTS}}},8595:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StoreTestResults=void 0;const s=n(6932);t.StoreTestResults=class{constructor(e){this.parameters=e}generate(){return{store_test_results:Object.assign({},this.parameters)}}get name(){return"store_test_results"}get generableType(){return s.GenerableType.STORE_TEST_RESULTS}}},8493:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Attach=void 0;const s=n(6932);t.Attach=class{constructor(e){this.parameters=e}generate(){return{attach_workspace:Object.assign({},this.parameters)}}get name(){return"attach_workspace"}get generableType(){return s.GenerableType.ATTACH}}},5819:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Persist=void 0;const s=n(6932);t.Persist=class{constructor(e){this.parameters=e}generate(){return{persist_to_workspace:Object.assign({},this.parameters)}}get name(){return"persist_to_workspace"}get generableType(){return s.GenerableType.PERSIST}}},8649:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Persist=t.Attach=void 0;var s=n(8493);Object.defineProperty(t,"Attach",{enumerable:!0,get:function(){return s.Attach}});var r=n(5819);Object.defineProperty(t,"Persist",{enumerable:!0,get:function(){return r.Persist}})},1095:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReusableCommand=void 0;const s=n(6932),r=n(8796),o=n(9793);t.ReusableCommand=class{constructor(e,t,n,s){this.name=e,this.steps=t||[],this.parameters=n,this.description=s}generate(e){return{[this.name]:this.generateContents(e)}}generateContents(e){var t;const n=this.steps.map((t=>t.generate(e)));return{parameters:null===(t=this.parameters)||void 0===t?void 0:t.generate(),steps:n,description:this.description}}toReused(e){return new o.ReusedCommand(this,e)}addStep(e){return this.steps.push(e),this}defineParameter(e,t,n,s,o){return this.parameters||(this.parameters=new r.CustomParametersList),this.parameters.define(e,t,n,s,o),this}get generableType(){return s.GenerableType.REUSABLE_COMMAND}}},9793:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReusedCommand=void 0;const s=n(6932);t.ReusedCommand=class{constructor(e,t){this.name="string"==typeof e?e:e.name,this.parameters=t}generate(){return void 0===this.parameters?this.name:{[this.name]:this.generateContents()}}generateContents(){return Object.assign({},this.parameters)}get generableType(){return s.GenerableType.REUSED_COMMAND}}},3240:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReusedCommand=t.ReusableCommand=void 0;const s=n(1095);Object.defineProperty(t,"ReusableCommand",{enumerable:!0,get:function(){return s.ReusableCommand}});const r=n(9793);Object.defineProperty(t,"ReusedCommand",{enumerable:!0,get:function(){return r.ReusedCommand}})},9511:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.workspace=t.cache=t.StoreTestResults=t.StoreArtifacts=t.SetupRemoteDocker=t.Run=t.Checkout=t.AddSSHKeys=void 0;var i=n(5330);Object.defineProperty(t,"AddSSHKeys",{enumerable:!0,get:function(){return i.AddSSHKeys}});var a=n(9761);Object.defineProperty(t,"Checkout",{enumerable:!0,get:function(){return a.Checkout}});var c=n(4989);Object.defineProperty(t,"Run",{enumerable:!0,get:function(){return c.Run}});var l=n(3137);Object.defineProperty(t,"SetupRemoteDocker",{enumerable:!0,get:function(){return l.SetupRemoteDocker}});var u=n(7372);Object.defineProperty(t,"StoreArtifacts",{enumerable:!0,get:function(){return u.StoreArtifacts}});var f=n(8595);Object.defineProperty(t,"StoreTestResults",{enumerable:!0,get:function(){return f.StoreTestResults}}),t.cache=o(n(3772)),t.workspace=o(n(8649))},8845:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},4299:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DockerExecutor=void 0;const s=n(6932),r=n(9101),o=n(9966);class i extends o.Executor{constructor(e,t="medium",n,s){super(t),this.serviceImages=[];const o=new r.DockerImage(e,null==n?void 0:n.name,null==n?void 0:n.entrypoint,null==n?void 0:n.command,null==n?void 0:n.user,null==n?void 0:n.environment,null==n?void 0:n.auth,null==n?void 0:n.aws_auth);this.image=o,this.serviceImages=s||[]}generateContents(){return[this.image].concat(this.serviceImages)}get generableType(){return s.GenerableType.DOCKER_EXECUTOR}get executorLiteral(){return"docker"}addEnvVar(e,t){return this.image.environment?this.image.environment[e]=t:this.image.environment={[e]:t},this}addServiceImage(e){return this.serviceImages.push(e),this}}t.DockerExecutor=i},9101:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DockerImage=void 0,t.DockerImage=class{constructor(e,t,n,s,r,o,i,a){this.image=e,this.name=t,this.entrypoint=n,this.command=s,this.user=r,this.environment=o,this.auth=i,this.aws_auth=a}}},9966:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Executor=void 0;const s=n(6949);t.Executor=class{constructor(e){this.resource_class=e}get generateResourceClass(){return this.resource_class}generate(){return{[this.executorLiteral]:this.generateContents(),resource_class:this.generateResourceClass}}toReusable(e,t){return new s.ReusableExecutor(e,this,t)}}},2679:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MacOSExecutor=void 0;const s=n(6932),r=n(9966);class o extends r.Executor{constructor(e,t="medium"){super(t),this.xcode=e}generateContents(){return{xcode:this.xcode}}get generableType(){return s.GenerableType.MACOS_EXECUTOR}get executorLiteral(){return"macos"}}t.MacOSExecutor=o},5171:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MachineExecutor=void 0;const s=n(6932),r=n(9966);class o extends r.Executor{constructor(e="medium",t,n){super(e),this.image="ubuntu-2004:202010-01",this.image=t||this.image,this.docker_layer_caching=n}generateContents(){return{image:this.image,docker_layer_caching:this.docker_layer_caching}}get generableType(){return s.GenerableType.MACHINE_EXECUTOR}get executorLiteral(){return"machine"}setDockerLayerCaching(e){return this.docker_layer_caching=e,this}}t.MachineExecutor=o},6949:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReusableExecutor=void 0;const s=n(6932),r=n(8796),o=n(657);t.ReusableExecutor=class{constructor(e,t,n){this.name=e,this.executor=t,this.parameters=n}generate(){var e;return{[this.name]:Object.assign(Object.assign({},this.executor.generate()),{parameters:null===(e=this.parameters)||void 0===e?void 0:e.generate()})}}defineParameter(e,t,n,s,o){return this.parameters||(this.parameters=new r.CustomParametersList),this.parameters.define(e,t,n,s,o),this}get generableType(){return s.GenerableType.REUSABLE_EXECUTOR}reuse(e){return new o.ReusedExecutor(this,e)}}},657:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReusedExecutor=void 0;const s=n(6932);t.ReusedExecutor=class{constructor(e,t){this._executor=e,this._executor=e,this._parameters=t}generate(e){return{executor:this.generateContents(e)}}generateContents(e){return this._parameters||!e?Object.assign({name:this._executor.name},this._parameters):this._executor.name}get generableType(){return s.GenerableType.REUSED_EXECUTOR}get executor(){return this._executor}get parameters(){return this._parameters}}},277:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WindowsExecutor=void 0;const s=n(6932),r=n(9966);class o extends r.Executor{constructor(e="medium",t){super(e),this.image="windows-server-2019-vs2019:stable",this.image=t||this.image,this.resource_class=e}generate(){return Object.assign(Object.assign({},super.generate()),{shell:o.defaultShell})}generateContents(){return{image:this.image}}get generableType(){return s.GenerableType.WINDOWS_EXECUTOR}get executorLiteral(){return"machine"}get generateResourceClass(){return`windows.${this.resource_class}`}}t.WindowsExecutor=o,o.defaultShell="powershell.exe -ExecutionPolicy Bypass"},1811:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Executor=t.WindowsExecutor=t.MacOSExecutor=t.MachineExecutor=t.DockerExecutor=void 0;const s=n(4299);Object.defineProperty(t,"DockerExecutor",{enumerable:!0,get:function(){return s.DockerExecutor}});const r=n(9966);Object.defineProperty(t,"Executor",{enumerable:!0,get:function(){return r.Executor}});const o=n(5171);Object.defineProperty(t,"MachineExecutor",{enumerable:!0,get:function(){return o.MachineExecutor}});const i=n(2679);Object.defineProperty(t,"MacOSExecutor",{enumerable:!0,get:function(){return i.MacOSExecutor}});const a=n(277);Object.defineProperty(t,"WindowsExecutor",{enumerable:!0,get:function(){return a.WindowsExecutor}})},1993:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DockerImage=void 0;const s=n(9101);Object.defineProperty(t,"DockerImage",{enumerable:!0,get:function(){return s.DockerImage}})},8461:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},6035:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},4109:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},987:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8387:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},2463:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.reusable=t.executor=t.windows=t.macos=t.machine=t.docker=void 0;const i=o(n(1993));t.docker=i;const a=o(n(8461));t.executor=a;const c=o(n(4109));t.machine=c;const l=o(n(6035));t.macos=l;const u=o(n(8387));t.windows=u;const f=o(n(987));t.reusable=f},7604:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParameterizedJob=void 0;const s=n(3630),r=n(8796);class o extends s.Job{constructor(e,t,n,s,o){super(e,t,s,o),this.parameters=n||new r.CustomParametersList}generateContents(e){return Object.assign({parameters:this.parameters.generate()},super.generateContents(e))}defineParameter(e,t,n,s,r){return this.parameters.define(e,t,n,s,r),this}}t.ParameterizedJob=o},3630:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Job=void 0;const s=n(6932);t.Job=class{constructor(e,t,n=[],s){this.name=e,this.executor=t,this.steps=n,this.environment=null==s?void 0:s.environment,this.shell=null==s?void 0:s.shell,this.working_directory=null==s?void 0:s.working_directory,this.parallelism=null==s?void 0:s.parallelism,this.circleci_ip_ranges=null==s?void 0:s.circleci_ip_ranges}generateContents(e){const t=this.steps.map((t=>t.generate(e))),n=this.executor.generate(e);return Object.assign(Object.assign({},n),{steps:t,environment:this.environment,shell:this.shell,working_directory:this.working_directory,parallelism:this.parallelism,circleci_ip_ranges:this.circleci_ip_ranges})}generate(e){return{[this.name]:this.generateContents(e)}}addStep(e){return this.steps.push(e),this}addEnvVar(e,t){return this.environment?this.environment[e]=t:this.environment={[e]:t},this}get generableType(){return s.GenerableType.JOB}}},3435:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8318:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Condition=void 0,t.Condition=class{}},4630:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.When=void 0;const s=n(6932);t.When=class{constructor(e){this.condition=e}generate(){return this.condition.generate()}get generableType(){return s.GenerableType.WHEN}}},8173:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.And=void 0;const s=n(9959),r=n(6932),o=n(8318);class i extends o.Condition{constructor(e){super(),this.conditions=e.map(s.identityOrTruthy)}evaluate(){return this.conditions.every((e=>e.evaluate()))}generate(){return{and:this.conditions.map((e=>e.generate()))}}get generableType(){return r.GenerableType.AND}}t.And=i},8096:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Equal=void 0;const s=n(6932),r=n(8318);class o extends r.Condition{constructor(e){super(),this.values=e}evaluate(){const e=this.values[0];for(let t=1;t<this.values.length;t++)if(e!=this.values[t])return!1;return!0}generate(){return{equal:this.values}}get generableType(){return s.GenerableType.EQUAL}}t.Equal=o},4017:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Not=void 0;const s=n(9959),r=n(6932),o=n(8318);class i extends o.Condition{constructor(e){super(),this.condition=(0,s.identityOrTruthy)(e)}evaluate(){return!this.condition.evaluate()}generate(){return{not:this.condition.generate()}}get generableType(){return r.GenerableType.NOT}}t.Not=i},4056:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Or=void 0;const s=n(9959),r=n(6932),o=n(8318);class i extends o.Condition{constructor(e){super(),this.conditions=e.map(s.identityOrTruthy)}evaluate(){for(const e of this.conditions)if(e.evaluate())return!0;return!1}generate(){return{or:this.conditions.map((e=>e.generate()))}}get generableType(){return r.GenerableType.OR}}t.Or=i},4576:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Truthy=void 0;const s=n(6932),r=n(8318);class o extends r.Condition{constructor(e){super(),this.value=e}evaluate(){return!!this.value}generate(){return this.value}get generableType(){return s.GenerableType.TRUTHY}}t.Truthy=o},9959:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Truthy=t.Or=t.Not=t.Equal=t.And=t.Condition=t.identityOrTruthy=void 0;const s=n(8318);Object.defineProperty(t,"Condition",{enumerable:!0,get:function(){return s.Condition}});const r=n(8173);Object.defineProperty(t,"And",{enumerable:!0,get:function(){return r.And}});const o=n(8096);Object.defineProperty(t,"Equal",{enumerable:!0,get:function(){return o.Equal}});const i=n(4017);Object.defineProperty(t,"Not",{enumerable:!0,get:function(){return i.Not}});const a=n(4056);Object.defineProperty(t,"Or",{enumerable:!0,get:function(){return a.Or}});const c=n(4576);Object.defineProperty(t,"Truthy",{enumerable:!0,get:function(){return c.Truthy}}),t.identityOrTruthy=function(e){return e instanceof s.Condition?e:new c.Truthy(e)}},2115:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.When=t.conditional=t.not=t.equal=t.or=t.and=void 0;const i=n(9959);t.and=function(...e){return new i.And(e)},t.or=function(...e){return new i.Or(e)},t.equal=function(...e){return new i.Equal(e)},t.not=function(e){return new i.Not(e)},t.conditional=o(n(9959));var a=n(4630);Object.defineProperty(t,"When",{enumerable:!0,get:function(){return a.When}})},4347:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CustomEnumParameter=void 0;const s=n(6932),r=n(8791);class o extends r.CustomParameter{constructor(e,t,n,s){super(e,"enum",n,s),this.enumValues=t}generateContents(){return Object.assign(Object.assign({},super.generateContents()),{enum:this.enumValues})}get generableType(){return s.GenerableType.CUSTOM_ENUM_PARAMETER}}t.CustomEnumParameter=o},8791:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CustomParameter=void 0;const s=n(6932),r=n(5070);t.CustomParameter=class{constructor(e,t,n,s){this.name=e,this.type=t,this.defaultValue=n,this.description=s}generate(){return{[this.name]:this.generateContents()}}generateContents(){var e;let t=this.defaultValue;return"executor"===this.type&&t instanceof r.ReusedExecutor?t=null===(e=this.defaultValue)||void 0===e?void 0:e.generateContents():"steps"===this.type&&Array.isArray(t)&&(t=this.defaultValue.map((e=>e.generate()))),{type:this.type,default:t,description:this.description}}get generableType(){return s.GenerableType.CUSTOM_PARAMETER}}},2761:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CustomParametersList=void 0;const s=n(8796),r=n(6932);class o{constructor(e){this.parameters=e||[]}generate(){const e=this.parameters.map((e=>e.generate()));return Object.assign({},...e)}[Symbol.iterator](){return this.parameters[Symbol.iterator]()}define(e,t,n,r,o){let i;if("enum"===t){if(!o)throw new Error("Enum values must be provided for enum type parameters.");i=new s.CustomEnumParameter(e,o,n,r)}else i=new s.CustomParameter(e,t,n,r);const a=i;return this.parameters.push(a),a}get generableType(){return r.GenerableType.CUSTOM_PARAMETERS_LIST}}t.CustomParametersList=o},8796:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CustomParameter=t.CustomEnumParameter=t.CustomParametersList=void 0;const s=n(4347);Object.defineProperty(t,"CustomEnumParameter",{enumerable:!0,get:function(){return s.CustomEnumParameter}});const r=n(8791);Object.defineProperty(t,"CustomParameter",{enumerable:!0,get:function(){return r.CustomParameter}});const o=n(2761);Object.defineProperty(t,"CustomParametersList",{enumerable:!0,get:function(){return o.CustomParametersList}})},2190:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8031:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},1749:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.literals=t.components=void 0;const i=o(n(8031));t.literals=i;const a=o(n(2190));t.components=a},5070:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||s(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ParameterizedJob=t.ReusedExecutor=t.ReusableExecutor=void 0,r(n(3240),t);var o=n(6949);Object.defineProperty(t,"ReusableExecutor",{enumerable:!0,get:function(){return o.ReusableExecutor}});var i=n(657);Object.defineProperty(t,"ReusedExecutor",{enumerable:!0,get:function(){return i.ReusedExecutor}});var a=n(7604);Object.defineProperty(t,"ParameterizedJob",{enumerable:!0,get:function(){return a.ParameterizedJob}})},1443:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Workflow=void 0;const s=n(6932),r=n(3630),o=n(7238),i=n(4880);t.Workflow=class{constructor(e,t,n){this.jobs=[],this.name=e,this.when=n,t&&(this.jobs=t.map((e=>e instanceof r.Job?new o.WorkflowJob(e):e)))}generate(e){return{[this.name]:this.generateContents(e)}}generateContents(e){var t;const n=this.jobs.map((t=>t.generate(e))),s=null===(t=this.when)||void 0===t?void 0:t.generate(),r={jobs:n};return s&&(r.when=s),r}addJob(e,t){return this.jobs.push(new o.WorkflowJob(e,t)),this}addJobApproval(e,t){return this.jobs.push(new i.WorkflowJobApproval(e,t)),this}get generableType(){return s.GenerableType.WORKFLOW}}},7238:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkflowJob=void 0;const s=n(5152);class r extends s.WorkflowJobAbstract{constructor(e,t){super(t),this.job=e}generateContents(e){return Object.assign({},super.generateContents(e))}generate(e){return void 0===this.parameters?this.job.name:{[this.job.name]:this.generateContents(e)}}get name(){return this.job.name}}t.WorkflowJob=r},5152:function(e,t,n){var s=this&&this.__rest||function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.WorkflowJobAbstract=void 0;const r=n(6932);t.WorkflowJobAbstract=class{constructor(e){this.parameters={},this.parameters=e}generateContents(e){let t;if(this.parameters){const n=this.parameters,{matrix:r,preSteps:o,postSteps:i}=n;t=s(n,["matrix","preSteps","postSteps"]),r&&(t.matrix={parameters:r}),o&&(t["pre-steps"]=this.generateSteps(o,e)),i&&(t["post-steps"]=this.generateSteps(i,e))}return t}get generableType(){return r.GenerableType.WORKFLOW_JOB}generateSteps(e,t){return null==e?void 0:e.map((e=>e.generate(t)))}}},4880:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkflowJobApproval=void 0;const s=n(5152);class r extends s.WorkflowJobAbstract{constructor(e,t){super(Object.assign(Object.assign({},t),{type:"approval"})),this._name=e}generate(e){return{[this.name]:this.generateContents(e)}}get name(){return this._name}}t.WorkflowJobApproval=r},3438:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkflowJobAbstract=t.WorkflowJobApproval=t.WorkflowJob=void 0;const s=n(7238);Object.defineProperty(t,"WorkflowJob",{enumerable:!0,get:function(){return s.WorkflowJob}});const r=n(5152);Object.defineProperty(t,"WorkflowJobAbstract",{enumerable:!0,get:function(){return r.WorkflowJobAbstract}});const o=n(4880);Object.defineProperty(t,"WorkflowJobApproval",{enumerable:!0,get:function(){return o.WorkflowJobApproval}})},7593:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},1399:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},9276:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||s(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(7593),t),r(n(1399),t)},452:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Git=void 0,t.Git=class{constructor(e){this._isLocal=!0,this._isLocal=e}get tag(){return"local"}get branch(){return"local"}get revision(){return"0000000000000000000000000000000000000000"}get base_revision(){return"0000000000000000000000000000000000000000"}}},2202:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Project=void 0,t.Project=class{constructor(e){this._isLocal=e}get git_url(){return 1==this._isLocal?"git.local":process.env.CIRCLE_REPOSITORY_URL}get vcs(){if(this._isLocal)return"local";{const e=/https:\/\/(?:www\.)?(github|bitbucket)\.(?:com|org)/,t=process.env.CIRCLE_REPOSITORY_URL,n=t.match(e);if(n&&n[1])return n[1];throw new Error(`Unrecognized VCS provider while obtaining Pipeline.Project.VCS from URL ${t}.`)}}}},4075:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Pipeline=void 0;const s=n(2202),r=n(452),o=n(3818);t.Pipeline=class{constructor(){o.isNode&&"true"==process.env.CIRCLECI?this._isLocal=!1:this._isLocal=!0}get id(){return this._isLocal?"local":"NOT YET SUPPORTED"}get number(){return this._isLocal?0:-1}project(){return new s.Project(this._isLocal)}git(){return new r.Git(this._isLocal)}}},6932:(e,t)=>{var n,s,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ParameterizedComponent=t.ParameterSubtype=t.GenerableType=void 0,(r=t.GenerableType||(t.GenerableType={})).CONFIG="config",r.ORB="orb",r.ORB_IMPORT="orb_import",r.ORB_REF="orb_ref",r.REUSABLE_COMMAND="reusable_command",r.REUSED_COMMAND="reused_command",r.RESTORE="restore_cache",r.SAVE="save_cache",r.ATTACH="attach_workspace",r.PERSIST="persist_to_workspace",r.ADD_SSH_KEYS="add_ssh_keys",r.CHECKOUT="checkout",r.RUN="run",r.SETUP_REMOTE_DOCKER="setup_remote_docker",r.STORE_ARTIFACTS="store_artifacts",r.STORE_TEST_RESULTS="store_test_results",r.STEP="step",r.STEP_LIST="steps",r.JOB="job",r.WORKFLOW_JOB="workflow_job",r.WORKFLOW="workflow",r.ANY_EXECUTOR="executor",r.DOCKER_EXECUTOR="docker_executor",r.MACHINE_EXECUTOR="machine_executor",r.MACOS_EXECUTOR="macos_executor",r.WINDOWS_EXECUTOR="windows_executor",r.REUSED_EXECUTOR="reused_executor",r.REUSABLE_EXECUTOR="reusable_executor",r.REUSABLE_EXECUTOR_LIST="reusable_executors_list",r.CUSTOM_PARAMETER="custom_parameter",r.CUSTOM_ENUM_PARAMETER="custom_enum_parameter",r.CUSTOM_PARAMETERS_LIST="custom_parameters_list",r.PARAMETER_REFERENCE="parameter_reference",r.WHEN="when",r.AND="and",r.OR="or",r.NOT="not",r.EQUAL="equal",r.TRUTHY="value",(s=t.ParameterSubtype||(t.ParameterSubtype={})).STRING="string",s.BOOLEAN="boolean",s.INTEGER="integer",s.STEPS="steps",s.EXECUTOR="executor",s.ENV_VAR_NAME="env_var_name",(n=t.ParameterizedComponent||(t.ParameterizedComponent={})).JOB="/parameters/components/job",n.COMMAND="/parameters/components/command",n.EXECUTOR="/parameters/components/executor",n.PIPELINE="/parameters/components/pipeline"},7542:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t},i=this&&this.__awaiter||function(e,t,n,s){return new(n||(n=Promise))((function(r,o){function i(e){try{c(s.next(e))}catch(e){o(e)}}function a(e){try{c(s.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Config=void 0;const a=n(3818),c=o(n(3419)),l=n(3497),u=n(8796),f=n(6932),h=n(4075);function d(e,t,n){return e?Object.assign({},...e.map((e=>e.generate(n)))):t}t.Config=class{constructor(e=!1,t,n,s,r,o,i){this.version=2.1,this.jobs=[],this.workflows=[],this.pipeline=new h.Pipeline,this.setup=e,this.jobs=t||[],this.workflows=n||[],this.executors=s,this.commands=r,this.parameters=o,this.orbs=i}addWorkflow(e){return this.workflows.push(e),this}addReusableCommand(e){return this.commands?this.commands.push(e):this.commands=[e],this}addReusableExecutor(e){return this.executors?this.executors.push(e):this.executors=[e],this}addJob(e){return this.jobs.push(e),this}importOrb(e){return this.orbs?this.orbs.push(e):this.orbs=[e],this}defineParameter(e,t,n,s,r){return this.parameters||(this.parameters=new u.CustomParametersList),this.parameters.define(e,t,n,s,r),this}_prependVersionComment(e){return`# This configuration has been automatically generated by the CircleCI Config SDK.\n# For more information, see https://github.com/CircleCI-Public/circleci-config-sdk-ts\n# SDK Version: ${l.version}\n\n${e}`}generate(e){var t;const n=d(this.workflows,{},e),s=d(this.jobs,{},e),r=d(this.executors),o=d(this.commands,void 0,e),i=null===(t=this.parameters)||void 0===t?void 0:t.generate(),a=d(this.orbs);return{version:this.version,setup:this.setup,parameters:i,commands:o,executors:r,jobs:s,workflows:n,orbs:a}}stringify(e,t){const n=this.generate(e),s={aliasDuplicateObjects:!1,defaultStringType:c.Scalar.PLAIN,doubleQuotedMinMultiLineLength:999,lineWidth:0,minContentWidth:0};return this._prependVersionComment(c.stringify(n,null!=t?t:s))}get generableType(){return f.GenerableType.CONFIG}writeFile(e){return i(this,void 0,void 0,(function*(){if(a.isBrowser){const e=yield window.showSaveFilePicker({suggestedName:"config.yml",types:[{description:"CircleCI Config YAML file",accept:{"text/yaml":[".yml",".yaml"]}}]});(yield e.createWritable()).write(this.stringify()).catch((e=>{throw new Error(e)}))}else{if(!a.isNode)throw new Error("Unsupported environment");{const t=yield Promise.resolve().then((()=>o(n(3292)))),s=e||"config.yml";yield t.writeFile(s,this.stringify()).catch((e=>{throw new Error(e)}))}}}))}}},1684:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),n(6932)},9e3:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.mapping=void 0;const i=o(n(1684));t.mapping=i},9669:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OrbImport=void 0;const s=n(6932),r=n(4152);t.OrbImport=class{constructor(e,t,n,s,r,i,a){this.jobs={},this.commands={},this.executors={},this.alias=e,this.namespace=t,this.name=n,this.version=s,this.description=r,this.display=a,i&&(this.jobs=o(i.jobs,this),this.commands=o(i.commands,this),this.executors=o(i.executors,this))}generate(){return{[this.alias]:`${this.namespace}/${this.name}@${this.version}`}}get generableType(){return s.GenerableType.ORB_IMPORT}};const o=(e,t)=>{const n=Object.entries(e).map((([e,n])=>({[e]:new r.OrbRef(e,n,t)})));return Object.assign({},...n)}},4152:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OrbRef=void 0;const s=n(6932);t.OrbRef=class{constructor(e,t,n){this._name=e,this._parameters=t,this._orb=n}get generableType(){return s.GenerableType.ORB_REF}get name(){return`${this._orb.alias}/${this._name}`}get parameters(){return this._parameters}get orb(){return this._orb}}},1429:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OrbRef=t.OrbImport=void 0;const s=n(9669);Object.defineProperty(t,"OrbImport",{enumerable:!0,get:function(){return s.OrbImport}});const r=n(4152);Object.defineProperty(t,"OrbRef",{enumerable:!0,get:function(){return r.OrbRef}})},6834:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},7411:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.orb=t.config=t.workflow=t.parameter=t.job=t.executors=t.command=void 0,t.command=o(n(8845)),t.executors=o(n(2463)),t.job=o(n(3435)),t.parameter=o(n(1749)),t.workflow=o(n(9276)),t.config=o(n(9e3)),t.orb=o(n(6834))},3292:e=>{e.exports=require("fs/promises")},5775:(e,t,n)=>{var s=n(163),r=n(8844),o=n(6575),i=n(3798),a=n(6933),c=n(3179),l=n(4658);function u(e,t,n,s,r,o){const i="block-map"===n.type?a.resolveBlockMap(e,t,n,s,o):"block-seq"===n.type?c.resolveBlockSeq(e,t,n,s,o):l.resolveFlowCollection(e,t,n,s,o),u=i.constructor;return"!"===r||r===u.tagName?(i.tag=u.tagName,i):(r&&(i.tag=r),i)}t.composeCollection=function(e,t,n,a,c){const l=a?t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e))):null,f="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq";if(!a||!l||"!"===l||l===o.YAMLMap.tagName&&"map"===f||l===i.YAMLSeq.tagName&&"seq"===f||!f)return u(e,t,n,c,l);let h=t.schema.tags.find((e=>e.tag===l&&e.collection===f));if(!h){const s=t.schema.knownTags[l];if(!s||s.collection!==f)return s?.collection?c(a,"BAD_COLLECTION_TYPE",`${s.tag} used for ${f} collection, but expects ${s.collection}`,!0):c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${l}`,!0),u(e,t,n,c,l);t.schema.tags.push(Object.assign({},s,{default:!1})),h=s}const d=u(e,t,n,c,l,h),p=h.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d,m=s.isNode(p)?p:new r.Scalar(p);return m.range=d.range,m.tag=l,h?.format&&(m.format=h.format),m}},3138:(e,t,n)=>{var s=n(6068),r=n(81),o=n(7655),i=n(5920);t.composeDoc=function(e,t,{offset:n,start:a,value:c,end:l},u){const f=Object.assign({_directives:t},e),h=new s.Document(void 0,f),d={atRoot:!0,directives:h.directives,options:h.options,schema:h.schema},p=i.resolveProps(a,{indicator:"doc-start",next:c??l?.[0],offset:n,onError:u,startOnNewline:!0});p.found&&(h.directives.docStart=!0,!c||"block-map"!==c.type&&"block-seq"!==c.type||p.hasNewline||u(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),h.contents=c?r.composeNode(d,c,p,u):r.composeEmptyNode(d,p.end,a,null,p,u);const m=h.contents.range[2],g=o.resolveEnd(l,m,!1,u);return g.comment&&(h.comment=g.comment),h.range=[n,m,g.offset],h}},81:(e,t,n)=>{var s=n(2055),r=n(5775),o=n(6548),i=n(7655),a=n(7154);const c={composeNode:l,composeEmptyNode:u};function l(e,t,n,a){const{spaceBefore:l,comment:f,anchor:h,tag:d}=n;let p,m=!0;switch(t.type){case"alias":p=function({options:e},{offset:t,source:n,end:r},o){const a=new s.Alias(n.substring(1));""===a.source&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const c=t+n.length,l=i.resolveEnd(r,c,e.strict,o);return a.range=[t,c,l.offset],l.comment&&(a.comment=l.comment),a}(e,t,a),(h||d)&&a(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=o.composeScalar(e,t,d,a),h&&(p.anchor=h.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":p=r.composeCollection(c,e,t,d,a),h&&(p.anchor=h.source.substring(1));break;default:a(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),p=u(e,t.offset,void 0,null,n,a),m=!1}return h&&""===p.anchor&&a(h,"BAD_ALIAS","Anchor cannot be an empty string"),l&&(p.spaceBefore=!0),f&&("scalar"===t.type&&""===t.source?p.comment=f:p.commentBefore=f),e.options.keepSourceTokens&&m&&(p.srcToken=t),p}function u(e,t,n,s,{spaceBefore:r,comment:i,anchor:c,tag:l,end:u},f){const h={type:"scalar",offset:a.emptyScalarPosition(t,n,s),indent:-1,source:""},d=o.composeScalar(e,h,l,f);return c&&(d.anchor=c.source.substring(1),""===d.anchor&&f(c,"BAD_ALIAS","Anchor cannot be an empty string")),r&&(d.spaceBefore=!0),i&&(d.comment=i,d.range[2]=u),d}t.composeEmptyNode=u,t.composeNode=l},6548:(e,t,n)=>{var s=n(163),r=n(8844),o=n(1328),i=n(7876);t.composeScalar=function(e,t,n,a){const{value:c,type:l,comment:u,range:f}="block-scalar"===t.type?o.resolveBlockScalar(t,e.options.strict,a):i.resolveFlowScalar(t,e.options.strict,a),h=n?e.directives.tagName(n.source,(e=>a(n,"TAG_RESOLVE_FAILED",e))):null,d=n&&h?function(e,t,n,r,o){if("!"===n)return e[s.SCALAR];const i=[];for(const t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;i.push(t)}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[s.SCALAR])}(e.schema,c,h,n,a):"scalar"===t.type?function({directives:e,schema:t},n,r,o){const i=t.tags.find((e=>e.default&&e.test?.test(n)))||t[s.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(n)))??t[s.SCALAR];i.tag!==a.tag&&o(r,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(i.tag)} or ${e.tagString(a.tag)}`,!0)}return i}(e,c,t,a):e.schema[s.SCALAR];let p;try{const o=d.resolve(c,(e=>a(n??t,"TAG_RESOLVE_FAILED",e)),e.options);p=s.isScalar(o)?o:new r.Scalar(o)}catch(e){const s=e instanceof Error?e.message:String(e);a(n??t,"TAG_RESOLVE_FAILED",s),p=new r.Scalar(c)}return p.range=f,p.source=c,l&&(p.type=l),h&&(p.tag=h),d.format&&(p.format=d.format),u&&(p.comment=u),p}},5281:(e,t,n)=>{var s=n(9226),r=n(6068),o=n(2394),i=n(163),a=n(3138),c=n(7655);function l(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function u(e){let t="",n=!1,s=!1;for(let r=0;r<e.length;++r){const o=e[r];switch(o[0]){case"#":t+=(""===t?"":s?"\n\n":"\n")+(o.substring(1)||" "),n=!0,s=!1;break;case"%":"#"!==e[r+1]?.[0]&&(r+=1),n=!1;break;default:n||(s=!0),n=!1}}return{comment:t,afterEmptyLine:s}}t.Composer=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,s)=>{const r=l(e);s?this.warnings.push(new o.YAMLWarning(r,t,n)):this.errors.push(new o.YAMLParseError(r,t,n))},this.directives=new s.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:s}=u(this.prelude);if(n){const r=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(s||e.directives.docStart||!r)e.commentBefore=n;else if(i.isCollection(r)&&!r.flow&&r.items.length>0){let e=r.items[0];i.isPair(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=r.commentBefore;r.commentBefore=e?`${n}\n${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:u(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(process.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,((t,n,s)=>{const r=l(e);r[0]+=t,this.onError(r,"BAD_DIRECTIVE",n,s)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=a.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":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new o.YAMLParseError(l(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(l(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(l(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){const e=Object.assign({_directives:this.directives},this.options),n=new r.Document(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}}},6933:(e,t,n)=>{var s=n(394),r=n(6575),o=n(5920),i=n(3094),a=n(2566),c=n(6493);const l="All mapping items must start at the same column";t.resolveBlockMap=function({composeNode:e,composeEmptyNode:t},n,u,f,h){const d=new(h?.nodeClass??r.YAMLMap)(n.schema);n.atRoot&&(n.atRoot=!1);let p=u.offset,m=null;for(const r of u.items){const{start:h,key:g,sep:y,value:b}=r,v=o.resolveProps(h,{indicator:"explicit-key-ind",next:g??y?.[0],offset:p,onError:f,startOnNewline:!0}),w=!v.found;if(w){if(g&&("block-seq"===g.type?f(p,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in g&&g.indent!==u.indent&&f(p,"BAD_INDENT",l)),!v.anchor&&!v.tag&&!y){m=v.end,v.comment&&(d.comment?d.comment+="\n"+v.comment:d.comment=v.comment);continue}(v.hasNewlineAfterProp||i.containsNewline(g))&&f(g??h[h.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else v.found?.indent!==u.indent&&f(p,"BAD_INDENT",l);const O=v.end,S=g?e(n,g,v,f):t(n,O,h,null,v,f);n.schema.compat&&a.flowIndentCheck(u.indent,g,f),c.mapIncludes(n,d.items,S)&&f(O,"DUPLICATE_KEY","Map keys must be unique");const k=o.resolveProps(y??[],{indicator:"map-value-ind",next:b,offset:S.range[2],onError:f,startOnNewline:!g||"block-scalar"===g.type});if(p=k.end,k.found){w&&("block-map"!==b?.type||k.hasNewline||f(p,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&v.start<k.found.offset-1024&&f(S.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const o=b?e(n,b,k,f):t(n,p,y,null,k,f);n.schema.compat&&a.flowIndentCheck(u.indent,b,f),p=o.range[2];const i=new s.Pair(S,o);n.options.keepSourceTokens&&(i.srcToken=r),d.items.push(i)}else{w&&f(S.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),k.comment&&(S.comment?S.comment+="\n"+k.comment:S.comment=k.comment);const e=new s.Pair(S);n.options.keepSourceTokens&&(e.srcToken=r),d.items.push(e)}}return m&&m<p&&f(m,"IMPOSSIBLE","Map comment with trailing content"),d.range=[u.offset,p,m??p],d}},1328:(e,t,n)=>{var s=n(8844);t.resolveBlockScalar=function(e,t,n){const r=e.offset,o=function({offset:e,props:t},n,s){if("block-scalar-header"!==t[0].type)return s(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:r}=t[0],o=r[0];let i=0,a="",c=-1;for(let t=1;t<r.length;++t){const n=r[t];if(a||"-"!==n&&"+"!==n){const s=Number(n);!i&&s?i=s:-1===c&&(c=e+t)}else a=n}-1!==c&&s(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${r}`);let l=!1,u="",f=r.length;for(let e=1;e<t.length;++e){const r=t[e];switch(r.type){case"space":l=!0;case"newline":f+=r.source.length;break;case"comment":n&&!l&&s(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=r.source.length,u=r.source.substring(1);break;case"error":s(r,"UNEXPECTED_TOKEN",r.message),f+=r.source.length;break;default:{s(r,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${r.type}`);const e=r.source;e&&"string"==typeof e&&(f+=e.length)}}}return{mode:o,indent:i,chomp:a,comment:u,length:f}}(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const i=">"===o.mode?s.Scalar.BLOCK_FOLDED:s.Scalar.BLOCK_LITERAL,a=e.source?function(e){const t=e.split(/\n( *)/),n=t[0],s=n.match(/^( *)/),r=[s?.[1]?[s[1],n.slice(s[1].length)]:["",n]];for(let e=1;e<t.length;e+=2)r.push([t[e],t[e+1]]);return r}(e.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(""!==t&&"\r"!==t)break;c=e}if(0===c){const t="+"===o.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let n=r+o.length;return e.source&&(n+=e.source.length),{value:t,type:i,comment:o.comment,range:[r,n,n]}}let l=e.indent+o.indent,u=e.offset+o.length,f=0;for(let e=0;e<c;++e){const[t,s]=a[e];if(""!==s&&"\r"!==s){if(t.length<l){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(u+t.length,"MISSING_CHAR",e)}0===o.indent&&(l=t.length),f=e;break}0===o.indent&&t.length>l&&(l=t.length),u+=t.length+s.length+1}for(let e=a.length-1;e>=c;--e)a[e][0].length>l&&(c=e+1);let h="",d="",p=!1;for(let e=0;e<f;++e)h+=a[e][0].slice(l)+"\n";for(let e=f;e<c;++e){let[t,r]=a[e];u+=t.length+r.length+1;const c="\r"===r[r.length-1];if(c&&(r=r.slice(0,-1)),r&&t.length<l){const e="Block scalar lines must not be less indented than their "+(o.indent?"explicit indentation indicator":"first line");n(u-r.length-(c?2:1),"BAD_INDENT",e),t=""}i===s.Scalar.BLOCK_LITERAL?(h+=d+t.slice(l)+r,d="\n"):t.length>l||"\t"===r[0]?(" "===d?d="\n":p||"\n"!==d||(d="\n\n"),h+=d+t.slice(l)+r,d="\n",p=!0):""===r?"\n"===d?h+="\n":d="\n":(h+=d+r,d=" ",p=!1)}switch(o.chomp){case"-":break;case"+":for(let e=c;e<a.length;++e)h+="\n"+a[e][0].slice(l);"\n"!==h[h.length-1]&&(h+="\n");break;default:h+="\n"}const m=r+o.length+e.source.length;return{value:h,type:i,comment:o.comment,range:[r,m,m]}}},3179:(e,t,n)=>{var s=n(3798),r=n(5920),o=n(2566);t.resolveBlockSeq=function({composeNode:e,composeEmptyNode:t},n,i,a,c){const l=new(c?.nodeClass??s.YAMLSeq)(n.schema);n.atRoot&&(n.atRoot=!1);let u=i.offset,f=null;for(const{start:s,value:c}of i.items){const h=r.resolveProps(s,{indicator:"seq-item-ind",next:c,offset:u,onError:a,startOnNewline:!0});if(!h.found){if(!(h.anchor||h.tag||c)){f=h.end,h.comment&&(l.comment=h.comment);continue}c&&"block-seq"===c.type?a(h.end,"BAD_INDENT","All sequence items must start at the same column"):a(u,"MISSING_CHAR","Sequence item without - indicator")}const d=c?e(n,c,h,a):t(n,h.end,s,null,h,a);n.schema.compat&&o.flowIndentCheck(i.indent,c,a),u=d.range[2],l.items.push(d)}return l.range=[i.offset,u,f??u],l}},7655:(e,t)=>{t.resolveEnd=function(e,t,n,s){let r="";if(e){let o=!1,i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=!0;break;case"comment":{n&&!o&&s(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";r?r+=i+t:r=t,i="";break}case"newline":r&&(i+=e),o=!0;break;default:s(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:r,offset:t}}},4658:(e,t,n)=>{var s=n(163),r=n(394),o=n(6575),i=n(3798),a=n(7655),c=n(5920),l=n(3094),u=n(6493);const f="Block collections are not allowed within flow collections",h=e=>e&&("block-map"===e.type||"block-seq"===e.type);t.resolveFlowCollection=function({composeNode:e,composeEmptyNode:t},n,d,p,m){const g="{"===d.start.source,y=g?"flow map":"flow sequence",b=new(m?.nodeClass??(g?o.YAMLMap:i.YAMLSeq))(n.schema);b.flow=!0;const v=n.atRoot;v&&(n.atRoot=!1);let w=d.offset+d.start.source.length;for(let i=0;i<d.items.length;++i){const a=d.items[i],{start:m,key:v,sep:O,value:S}=a,k=c.resolveProps(m,{flow:y,indicator:"explicit-key-ind",next:v??O?.[0],offset:w,onError:p,startOnNewline:!1});if(!k.found){if(!(k.anchor||k.tag||O||S)){0===i&&k.comma?p(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${y}`):i<d.items.length-1&&p(k.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${y}`),k.comment&&(b.comment?b.comment+="\n"+k.comment:b.comment=k.comment),w=k.end;continue}!g&&n.options.strict&&l.containsNewline(v)&&p(v,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===i)k.comma&&p(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${y}`);else if(k.comma||p(k.start,"MISSING_CHAR",`Missing , between ${y} items`),k.comment){let e="";e:for(const t of m)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=b.items[b.items.length-1];s.isPair(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,k.comment=k.comment.substring(e.length+1)}}if(g||O||k.found){const s=k.end,i=v?e(n,v,k,p):t(n,s,m,null,k,p);h(v)&&p(i.range,"BLOCK_IN_FLOW",f);const l=c.resolveProps(O??[],{flow:y,indicator:"map-value-ind",next:S,offset:i.range[2],onError:p,startOnNewline:!1});if(l.found){if(!g&&!k.found&&n.options.strict){if(O)for(const e of O){if(e===l.found)break;if("newline"===e.type){p(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}k.start<l.found.offset-1024&&p(l.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else S&&("source"in S&&S.source&&":"===S.source[0]?p(S,"MISSING_CHAR",`Missing space after : in ${y}`):p(l.start,"MISSING_CHAR",`Missing , or : between ${y} items`));const d=S?e(n,S,l,p):l.found?t(n,l.end,O,null,l,p):null;d?h(S)&&p(d.range,"BLOCK_IN_FLOW",f):l.comment&&(i.comment?i.comment+="\n"+l.comment:i.comment=l.comment);const _=new r.Pair(i,d);if(n.options.keepSourceTokens&&(_.srcToken=a),g){const e=b;u.mapIncludes(n,e.items,i)&&p(s,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(_)}else{const e=new o.YAMLMap(n.schema);e.flow=!0,e.items.push(_),b.items.push(e)}w=d?d.range[2]:l.end}else{const s=S?e(n,S,k,p):t(n,k.end,O,null,k,p);b.items.push(s),w=s.range[2],h(S)&&p(s.range,"BLOCK_IN_FLOW",f)}}const O=g?"}":"]",[S,...k]=d.end;let _=w;if(S&&S.source===O)_=S.offset+S.source.length;else{const e=y[0].toUpperCase()+y.substring(1);p(w,v?"MISSING_CHAR":"BAD_INDENT",v?`${e} must end with a ${O}`:`${e} in block collection must be sufficiently indented and end with a ${O}`),S&&1!==S.source.length&&k.unshift(S)}if(k.length>0){const e=a.resolveEnd(k,_,n.options.strict,p);e.comment&&(b.comment?b.comment+="\n"+e.comment:b.comment=e.comment),b.range=[d.offset,_,e.offset]}else b.range=[d.offset,_,_];return b}},7876:(e,t,n)=>{var s=n(8844),r=n(7655);function o(e){let t,n;try{t=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy"),n=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch(e){t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=t.exec(e);if(!s)return e;let r=s[1],o=" ",i=t.lastIndex;for(n.lastIndex=i;s=n.exec(e);)""===s[1]?"\n"===o?r+=o:o="\n":(r+=o+s[1],o=" "),i=n.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=i,s=a.exec(e),r+o+(s?.[1]??"")}function i(e,t){let n="",s=e[t+1];for(;!(" "!==s&&"\t"!==s&&"\n"!==s&&"\r"!==s||"\r"===s&&"\n"!==e[t+2]);)"\n"===s&&(n+="\n"),s=e[(t+=1)+1];return n||(n=" "),{fold:n,offset:t}}const a={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function c(e,t,n,s){const r=e.substr(t,n),o=r.length===n&&/^[0-9a-fA-F]+$/.test(r)?parseInt(r,16):NaN;if(isNaN(o)){const r=e.substr(t-2,n+2);return s(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`),r}return String.fromCodePoint(o)}t.resolveFlowScalar=function(e,t,n){const{offset:l,type:u,source:f,end:h}=e;let d,p;const m=(e,t,s)=>n(l+e,t,s);switch(u){case"scalar":d=s.Scalar.PLAIN,p=function(e,t){let n="";switch(e[0]){case"\t":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),o(e)}(f,m);break;case"single-quoted-scalar":d=s.Scalar.QUOTE_SINGLE,p=function(e,t){return"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote"),o(e.slice(1,-1)).replace(/''/g,"'")}(f,m);break;case"double-quoted-scalar":d=s.Scalar.QUOTE_DOUBLE,p=function(e,t){let n="";for(let s=1;s<e.length-1;++s){const r=e[s];if("\r"!==r||"\n"!==e[s+1])if("\n"===r){const{fold:t,offset:r}=i(e,s);n+=t,s=r}else if("\\"===r){let r=e[++s];const o=a[r];if(o)n+=o;else if("\n"===r)for(r=e[s+1];" "===r||"\t"===r;)r=e[1+ ++s];else if("\r"===r&&"\n"===e[s+1])for(r=e[1+ ++s];" "===r||"\t"===r;)r=e[1+ ++s];else if("x"===r||"u"===r||"U"===r){const o={x:2,u:4,U:8}[r];n+=c(e,s+1,o,t),s+=o}else{const r=e.substr(s-1,2);t(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`),n+=r}}else if(" "===r||"\t"===r){const t=s;let o=e[s+1];for(;" "===o||"\t"===o;)o=e[1+ ++s];"\n"===o||"\r"===o&&"\n"===e[s+2]||(n+=s>t?e.slice(t,s+1):r)}else n+=r}return'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(f,m);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${u}`),{value:"",type:null,comment:"",range:[l,l+f.length,l+f.length]}}const g=l+f.length,y=r.resolveEnd(h,g,t,n);return{value:p,type:d,comment:y.comment,range:[l,g,y.offset]}}},5920:(e,t)=>{t.resolveProps=function(e,{flow:t,indicator:n,next:s,offset:r,onError:o,startOnNewline:i}){let a=!1,c=i,l=i,u="",f="",h=!1,d=!1,p=!1,m=null,g=null,y=null,b=null,v=null;for(const s of e)switch(p&&("space"!==s.type&&"newline"!==s.type&&"comma"!==s.type&&o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p=!1),s.type){case"space":!t&&c&&"doc-start"!==n&&"\t"===s.source[0]&&o(s,"TAB_AS_INDENT","Tabs are not allowed as indentation"),l=!0;break;case"comment":{l||o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";u?u+=f+e:u=e,f="",c=!1;break}case"newline":c?u?u+=s.source:a=!0:f+=s.source,c=!0,h=!0,(m||g)&&(d=!0),l=!0;break;case"anchor":m&&o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor"),s.source.endsWith(":")&&o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=s,null===v&&(v=s.offset),c=!1,l=!1,p=!0;break;case"tag":g&&o(s,"MULTIPLE_TAGS","A node can have at most one tag"),g=s,null===v&&(v=s.offset),c=!1,l=!1,p=!0;break;case n:(m||g)&&o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`),b&&o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`),b=s,c=!1,l=!1;break;case"comma":if(t){y&&o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),y=s,c=!1,l=!1;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`),c=!1,l=!1}const w=e[e.length-1],O=w?w.offset+w.source.length:r;return p&&s&&"space"!==s.type&&"newline"!==s.type&&"comma"!==s.type&&("scalar"!==s.type||""!==s.source)&&o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:y,found:b,spaceBefore:a,comment:u,hasNewline:h,hasNewlineAfterProp:d,anchor:m,tag:g,end:O,start:v??O}}},3094:(e,t)=>{t.containsNewline=function e(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes("\n"))return!0;if(t.end)for(const e of t.end)if("newline"===e.type)return!0;return!1;case"flow-collection":for(const n of t.items){for(const e of n.start)if("newline"===e.type)return!0;if(n.sep)for(const e of n.sep)if("newline"===e.type)return!0;if(e(n.key)||e(n.value))return!0}return!1;default:return!0}}},7154:(e,t)=>{t.emptyScalarPosition=function(e,t,n){if(t){null===n&&(n=t.length);for(let s=n-1;s>=0;--s){let n=t[s];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++s];"space"===n?.type;)e+=n.source.length,n=t[++s];break}}return e}},2566:(e,t,n)=>{var s=n(3094);t.flowIndentCheck=function(e,t,n){if("flow-collection"===t?.type){const r=t.end[0];r.indent!==e||"]"!==r.source&&"}"!==r.source||!s.containsNewline(t)||n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}},6493:(e,t,n)=>{var s=n(163);t.mapIncludes=function(e,t,n){const{uniqueKeys:r}=e.options;if(!1===r)return!1;const o="function"==typeof r?r:(t,n)=>t===n||s.isScalar(t)&&s.isScalar(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>o(e.key,n)))}},6068:(e,t,n)=>{var s=n(2055),r=n(3365),o=n(163),i=n(394),a=n(3257),c=n(3673),l=n(9957),u=n(1903),f=n(3085),h=n(7581),d=n(9226);class p{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let s=null;"function"==typeof t||Array.isArray(t)?s=t:void 0===n&&t&&(n=t,t=void 0);const r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=r;let{version:i}=r;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new d.Directives({version:i}),this.setSchema(i,n),this.contents=void 0===e?null:this.createNode(e,s,n)}clone(){const e=Object.create(p.prototype,{[o.NODE_TYPE]:{value:o.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=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){m(this.contents)&&this.contents.add(e)}addIn(e,t){m(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=u.anchorNames(this);e.anchor=!t||n.has(t)?u.findNewAnchor(t||"a",n):t}return new s.Alias(e.anchor)}createNode(e,t,n){let s;if("function"==typeof t)e=t.call({"":e},"",e),s=t;else if(Array.isArray(t)){const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),s=t}else void 0===n&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:r,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:l,tag:f}=n??{},{onAnchor:d,setAnchors:p,sourceObjects:m}=u.createNodeAnchors(this,i||"a"),g={aliasDuplicateObjects:r??!0,keepUndefined:c??!1,onAnchor:d,onTagObj:l,replacer:s,schema:this.schema,sourceObjects:m},y=h.createNode(e,f,g);return a&&o.isCollection(y)&&(y.flow=!0),p(),y}createPair(e,t,n={}){const s=this.createNode(e,null,n),r=this.createNode(t,null,n);return new i.Pair(s,r)}delete(e){return!!m(this.contents)&&this.contents.delete(e)}deleteIn(e){return r.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):!!m(this.contents)&&this.contents.deleteIn(e)}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return r.isEmptyPath(e)?!t&&o.isScalar(this.contents)?this.contents.value:this.contents:o.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!o.isCollection(this.contents)&&this.contents.has(e)}hasIn(e){return r.isEmptyPath(e)?void 0!==this.contents:!!o.isCollection(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=r.collectionFromPath(this.schema,[e],t):m(this.contents)&&this.contents.set(e,t)}setIn(e,t){r.isEmptyPath(e)?this.contents=t:null==this.contents?this.contents=r.collectionFromPath(this.schema,Array.from(e),t):m(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new d.Directives({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new d.Directives({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!n)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new c.Schema(Object.assign(n,t))}}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:s,onAnchor:r,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof s?s:100},c=a.toJS(this.contents,t??"",i);if("function"==typeof r)for(const{count:e,res:t}of i.anchors.values())r(t,e);return"function"==typeof o?f.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)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return l.stringifyDocument(this,e)}}function m(e){if(o.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}t.Document=p},1903:(e,t,n)=>{var s=n(163),r=n(1381);function o(e){const t=new Set;return r.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function i(e,t){for(let n=1;;++n){const s=`${e}${n}`;if(!t.has(s))return s}}t.anchorIsValid=function(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0},t.anchorNames=o,t.createNodeAnchors=function(e,t){const n=[],r=new Map;let a=null;return{onAnchor:s=>{n.push(s),a||(a=o(e));const r=i(t,a);return a.add(r),r},setAnchors:()=>{for(const e of n){const t=r.get(e);if("object"!=typeof t||!t.anchor||!s.isScalar(t.node)&&!s.isCollection(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:r}},t.findNewAnchor=i},3085:(e,t)=>{t.applyReviver=function e(t,n,s,r){if(r&&"object"==typeof r)if(Array.isArray(r))for(let n=0,s=r.length;n<s;++n){const s=r[n],o=e(t,r,String(n),s);void 0===o?delete r[n]:o!==s&&(r[n]=o)}else if(r instanceof Map)for(const n of Array.from(r.keys())){const s=r.get(n),o=e(t,r,n,s);void 0===o?r.delete(n):o!==s&&r.set(n,o)}else if(r instanceof Set)for(const n of Array.from(r)){const s=e(t,r,n,n);void 0===s?r.delete(n):s!==n&&(r.delete(n),r.add(s))}else for(const[n,s]of Object.entries(r)){const o=e(t,r,n,s);void 0===o?delete r[n]:o!==s&&(r[n]=o)}return t.call(n,s,r)}},7581:(e,t,n)=>{var s=n(2055),r=n(163),o=n(8844);t.createNode=function(e,t,n){if(r.isDocument(e)&&(e=e.contents),r.isNode(e))return e;if(r.isPair(e)){const t=n.schema[r.MAP].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:a,onTagObj:c,schema:l,sourceObjects:u}=n;let f;if(i&&e&&"object"==typeof e){if(f=u.get(e),f)return f.anchor||(f.anchor=a(e)),new s.Alias(f.anchor);f={anchor:null,node:null},u.set(e,f)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let h=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),s=e.find((e=>!e.format))??e[0];if(!s)throw new Error(`Tag ${t} not found`);return s}return n.find((t=>t.identify?.(e)&&!t.format))}(e,t,l.tags);if(!h){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new o.Scalar(e);return f&&(f.node=t),t}h=e instanceof Map?l[r.MAP]:Symbol.iterator in Object(e)?l[r.SEQ]:l[r.MAP]}c&&(c(h),delete n.onTagObj);const d=h?.createNode?h.createNode(n.schema,e,n):"function"==typeof h?.nodeClass?.from?h.nodeClass.from(n.schema,e,n):new o.Scalar(e);return t?d.tag=t:h.default||(d.tag=h.tag),f&&(f.node=d),d}},9226:(e,t,n)=>{var s=n(163),r=n(1381);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};class i{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},i.defaultYaml,e),this.tags=Object.assign({},i.defaultTags,t)}clone(){const e=new i(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new i(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:i.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},i.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:i.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},i.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),s=n.shift();switch(s){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[e,s]=n;return this.tags[e]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=n;return"1.1"===e||"1.2"===e?(this.yaml.version=e,!0):(t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1)}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}const[,n,s]=e.match(/^(.*!)([^!]*)$/);s||t(`The ${e} tag has no suffix`);const r=this.tags[n];return r?r+decodeURIComponent(s):"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+e.substring(n.length).replace(/[!,[\]{}]/g,(e=>o[e]));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let o;if(e&&n.length>0&&s.isNode(e.contents)){const t={};r.visit(e.contents,((e,n)=>{s.isNode(n)&&n.tag&&(t[n.tag]=!0)})),o=Object.keys(t)}else o=[];for(const[s,r]of n)"!!"===s&&"tag:yaml.org,2002:"===r||e&&!o.some((e=>e.startsWith(r)))||t.push(`%TAG ${s} ${r}`);return t.join("\n")}}i.defaultYaml={explicit:!1,version:"1.2"},i.defaultTags={"!!":"tag:yaml.org,2002:"},t.Directives=i},2394:(e,t)=>{class n extends Error{constructor(e,t,n,s){super(),this.name=e,this.code=n,this.message=s,this.pos=t}}t.YAMLError=n,t.YAMLParseError=class extends n{constructor(e,t,n){super("YAMLParseError",e,t,n)}},t.YAMLWarning=class extends n{constructor(e,t,n){super("YAMLWarning",e,t,n)}},t.prettifyError=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map((e=>t.linePos(e)));const{line:s,col:r}=n.linePos[0];n.message+=` at line ${s}, column ${r}`;let o=r-1,i=e.substring(t.lineStarts[s-1],t.lineStarts[s]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e),o-=e-1}if(i.length>80&&(i=i.substring(0,79)+"…"),s>1&&/^ *$/.test(i.substring(0,o))){let n=e.substring(t.lineStarts[s-2],t.lineStarts[s-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),i=n+i}if(/[^ ]/.test(i)){let e=1;const t=n.linePos[1];t&&t.line===s&&t.col>r&&(e=Math.max(1,Math.min(t.col-r,80-o)));const a=" ".repeat(o)+"^".repeat(e);n.message+=`:\n\n${i}\n${a}\n`}}},3419:(e,t,n)=>{var s=n(5281),r=n(6068),o=n(3673),i=n(2394),a=n(2055),c=n(163),l=n(394),u=n(8844),f=n(6575),h=n(3798),d=n(5208),p=n(7135),m=n(4708),g=n(9369),y=n(8011),b=n(1381);t.Composer=s.Composer,t.Document=r.Document,t.Schema=o.Schema,t.YAMLError=i.YAMLError,t.YAMLParseError=i.YAMLParseError,t.YAMLWarning=i.YAMLWarning,t.Alias=a.Alias,t.isAlias=c.isAlias,t.isCollection=c.isCollection,t.isDocument=c.isDocument,t.isMap=c.isMap,t.isNode=c.isNode,t.isPair=c.isPair,t.isScalar=c.isScalar,t.isSeq=c.isSeq,t.Pair=l.Pair,t.Scalar=u.Scalar,t.YAMLMap=f.YAMLMap,t.YAMLSeq=h.YAMLSeq,t.CST=d,t.Lexer=p.Lexer,t.LineCounter=m.LineCounter,t.Parser=g.Parser,t.parse=y.parse,t.parseAllDocuments=y.parseAllDocuments,t.parseDocument=y.parseDocument,t.stringify=y.stringify,t.visit=b.visit,t.visitAsync=b.visitAsync},5441:(e,t)=>{t.debug=function(e,...t){"debug"===e&&console.log(...t)},t.warn=function(e,t){"debug"!==e&&"warn"!==e||("undefined"!=typeof process&&process.emitWarning?process.emitWarning(t):console.warn(t))}},2055:(e,t,n)=>{var s=n(1903),r=n(1381),o=n(163),i=n(466),a=n(3257);class c extends i.NodeBase{constructor(e){super(o.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return r.visit(e,{Node:(e,n)=>{if(n===this)return r.visit.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:s,maxAliasCount:r}=t,o=this.resolve(s);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=n.get(o);if(i||(a.toJS(o,null,t),i=n.get(o)),!i||void 0===i.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(r>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=l(s,o,n)),i.count*i.aliasCount>r))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return i.res}toString(e,t,n){const r=`*${this.source}`;if(e){if(s.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}function l(e,t,n){if(o.isAlias(t)){const s=t.resolve(e),r=n&&s&&n.get(s);return r?r.count*r.aliasCount:0}if(o.isCollection(t)){let s=0;for(const r of t.items){const t=l(e,r,n);t>s&&(s=t)}return s}if(o.isPair(t)){const s=l(e,t.key,n),r=l(e,t.value,n);return Math.max(s,r)}return 1}t.Alias=c},3365:(e,t,n)=>{var s=n(7581),r=n(163),o=n(466);function i(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return s.createNode(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const a=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class c extends o.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>r.isNode(t)||r.isPair(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{const[n,...s]=e,o=this.get(n,!0);if(r.isCollection(o))o.addIn(s,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${s}`);this.set(n,i(this.schema,s,t))}}}deleteIn(e){const[t,...n]=e;if(0===n.length)return this.delete(t);const s=this.get(t,!0);if(r.isCollection(s))return s.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...s]=e,o=this.get(n,!0);return 0===s.length?!t&&r.isScalar(o)?o.value:o:r.isCollection(o)?o.getIn(s,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!r.isPair(t))return!1;const n=t.value;return null==n||e&&r.isScalar(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag}))}hasIn(e){const[t,...n]=e;if(0===n.length)return this.has(t);const s=this.get(t,!0);return!!r.isCollection(s)&&s.hasIn(n)}setIn(e,t){const[n,...s]=e;if(0===s.length)this.set(n,t);else{const e=this.get(n,!0);if(r.isCollection(e))e.setIn(s,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${s}`);this.set(n,i(this.schema,s,t))}}}}c.maxFlowStringSingleLineLength=60,t.Collection=c,t.collectionFromPath=i,t.isEmptyPath=a},466:(e,t,n)=>{var s=n(3085),r=n(163),o=n(3257);t.NodeBase=class{constructor(e){Object.defineProperty(this,r.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:i,reviver:a}={}){if(!r.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},l=o.toJS(this,"",c);if("function"==typeof i)for(const{count:e,res:t}of c.anchors.values())i(t,e);return"function"==typeof a?s.applyReviver(a,{"":l},"",l):l}}},394:(e,t,n)=>{var s=n(7581),r=n(8843),o=n(3567),i=n(163);class a{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return i.isNode(t)&&(t=t.clone(e)),i.isNode(n)&&(n=n.clone(e)),new a(t,n)}toJSON(e,t){const n=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,n,this)}toString(e,t,n){return e?.doc?r.stringifyPair(this,e,t,n):JSON.stringify(this)}}t.Pair=a,t.createPair=function(e,t,n){const r=s.createNode(e,void 0,n),o=s.createNode(t,void 0,n);return new a(r,o)}},8844:(e,t,n)=>{var s=n(163),r=n(466),o=n(3257);class i extends r.NodeBase{constructor(e){super(s.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}i.BLOCK_FOLDED="BLOCK_FOLDED",i.BLOCK_LITERAL="BLOCK_LITERAL",i.PLAIN="PLAIN",i.QUOTE_DOUBLE="QUOTE_DOUBLE",i.QUOTE_SINGLE="QUOTE_SINGLE",t.Scalar=i,t.isScalarValue=e=>!e||"function"!=typeof e&&"object"!=typeof e},6575:(e,t,n)=>{var s=n(240),r=n(3567),o=n(3365),i=n(163),a=n(394),c=n(8844);function l(e,t){const n=i.isScalar(t)?t.value:t;for(const s of e)if(i.isPair(s)){if(s.key===t||s.key===n)return s;if(i.isScalar(s.key)&&s.key.value===n)return s}}class u extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e),this.items=[]}static from(e,t,n){const{keepUndefined:s,replacer:r}=n,o=new this(e),i=(e,i)=>{if("function"==typeof r)i=r.call(t,e,i);else if(Array.isArray(r)&&!r.includes(e))return;(void 0!==i||s)&&o.items.push(a.createPair(e,i,n))};if(t instanceof Map)for(const[e,n]of t)i(e,n);else if(t&&"object"==typeof t)for(const e of Object.keys(t))i(e,t[e]);return"function"==typeof e.sortMapEntries&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=i.isPair(e)?e:e&&"object"==typeof e&&"key"in e?new a.Pair(e.key,e.value):new a.Pair(e,e?.value);const s=l(this.items,n.key),r=this.schema?.sortMapEntries;if(s){if(!t)throw new Error(`Key ${n.key} already set`);i.isScalar(s.value)&&c.isScalarValue(n.value)?s.value.value=n.value:s.value=n.value}else if(r){const e=this.items.findIndex((e=>r(n,e)<0));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){const t=l(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=l(this.items,e)?.value;return(!t&&i.isScalar(n)?n.value:n)??void 0}has(e){return!!l(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,n){const s=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(s);for(const e of this.items)r.addPairToJSMap(t,s,e);return s}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),s.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}t.YAMLMap=u,t.findPair=l},3798:(e,t,n)=>{var s=n(7581),r=n(240),o=n(3365),i=n(163),a=n(8844),c=n(3257);class l extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=u(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=u(e);if("number"!=typeof n)return;const s=this.items[n];return!t&&i.isScalar(s)?s.value:s}has(e){const t=u(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=u(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);const s=this.items[n];i.isScalar(s)&&a.isScalarValue(t)?s.value=t:this.items[n]=t}toJSON(e,t){const n=[];t?.onCreate&&t.onCreate(n);let s=0;for(const e of this.items)n.push(c.toJS(e,String(s++),t));return n}toString(e,t,n){return e?r.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){const{replacer:r}=n,o=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let i of t){if("function"==typeof r){const n=t instanceof Set?i:String(e++);i=r.call(t,n,i)}o.items.push(s.createNode(i,void 0,n))}}return o}}function u(e){let t=i.isScalar(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}t.YAMLSeq=l},3567:(e,t,n)=>{var s=n(5441),r=n(611),o=n(163),i=n(8844),a=n(3257);function c(e,t,n){const s=e&&o.isAlias(n)?n.resolve(e.doc):n;if(!o.isMap(s))throw new Error("Merge sources must be maps or map aliases");const r=s.toJSON(null,e,Map);for(const[e,n]of r)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}t.addPairToJSMap=function(e,t,{key:n,value:l}){if(e?.doc.schema.merge&&(e=>"<<"===e||o.isScalar(e)&&"<<"===e.value&&(!e.type||e.type===i.Scalar.PLAIN))(n))if(l=o.isAlias(l)?l.resolve(e.doc):l,o.isSeq(l))for(const n of l.items)c(e,t,n);else if(Array.isArray(l))for(const n of l)c(e,t,n);else c(e,t,l);else{const i=a.toJS(n,"",e);if(t instanceof Map)t.set(i,a.toJS(l,i,e));else if(t instanceof Set)t.add(i);else{const c=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(o.isNode(e)&&n&&n.doc){const t=r.createStringifyContext(n.doc,{});t.anchors=new Set;for(const e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const o=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(o);e.length>40&&(e=e.substring(0,36)+'..."'),s.warn(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}(n,i,e),u=a.toJS(l,c,e);c in t?Object.defineProperty(t,c,{value:u,writable:!0,enumerable:!0,configurable:!0}):t[c]=u}}return t}},163:(e,t)=>{const n=Symbol.for("yaml.alias"),s=Symbol.for("yaml.document"),r=Symbol.for("yaml.map"),o=Symbol.for("yaml.pair"),i=Symbol.for("yaml.scalar"),a=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),l=e=>!!e&&"object"==typeof e&&e[c]===i;function u(e){if(e&&"object"==typeof e)switch(e[c]){case r:case a:return!0}return!1}t.ALIAS=n,t.DOC=s,t.MAP=r,t.NODE_TYPE=c,t.PAIR=o,t.SCALAR=i,t.SEQ=a,t.hasAnchor=e=>(l(e)||u(e))&&!!e.anchor,t.isAlias=e=>!!e&&"object"==typeof e&&e[c]===n,t.isCollection=u,t.isDocument=e=>!!e&&"object"==typeof e&&e[c]===s,t.isMap=e=>!!e&&"object"==typeof e&&e[c]===r,t.isNode=function(e){if(e&&"object"==typeof e)switch(e[c]){case n:case r:case i:case a:return!0}return!1},t.isPair=e=>!!e&&"object"==typeof e&&e[c]===o,t.isScalar=l,t.isSeq=e=>!!e&&"object"==typeof e&&e[c]===a},3257:(e,t,n)=>{var s=n(163);t.toJS=function e(t,n,r){if(Array.isArray(t))return t.map(((t,n)=>e(t,String(n),r)));if(t&&"function"==typeof t.toJSON){if(!r||!s.hasAnchor(t))return t.toJSON(n,r);const e={aliasCount:0,count:1,res:void 0};r.anchors.set(t,e),r.onCreate=t=>{e.res=t,delete r.onCreate};const o=t.toJSON(n,r);return r.onCreate&&r.onCreate(o),o}return"bigint"!=typeof t||r?.keep?t:Number(t)}},7084:(e,t,n)=>{var s=n(1328),r=n(7876),o=n(2394),i=n(8431);function a(e,t){if(t)for(const n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function c(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{const s=e.props.slice(1);let r=t.length;"block-scalar-header"===e.props[0].type&&(r-=e.props[0].source.length);for(const e of s)e.offset+=r;delete e.props,Object.assign(e,{type:n,source:t,end:s});break}case"block-map":case"block-seq":{const s={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[s]});break}default:{const s="indent"in e?e.indent:-1,r="end"in e&&Array.isArray(e.end)?e.end.filter((e=>"space"===e.type||"comment"===e.type||"newline"===e.type)):[];for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:n,indent:s,source:t,end:r})}}}t.createScalarToken=function(e,t){const{implicitKey:n=!1,indent:s,inFlow:r=!1,offset:o=-1,type:c="PLAIN"}=t,l=i.stringifyString({type:c,value:e},{implicitKey:n,indent:s>0?" ".repeat(s):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:"newline",offset:-1,indent:s,source:"\n"}];switch(l[0]){case"|":case">":{const e=l.indexOf("\n"),t=l.substring(0,e),n=l.substring(e+1)+"\n",r=[{type:"block-scalar-header",offset:o,indent:s,source:t}];return a(r,u)||r.push({type:"newline",offset:-1,indent:s,source:"\n"}),{type:"block-scalar",offset:o,indent:s,props:r,source:n}}case'"':return{type:"double-quoted-scalar",offset:o,indent:s,source:l,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:s,source:l,end:u};default:return{type:"scalar",offset:o,indent:s,source:l,end:u}}},t.resolveAsScalar=function(e,t=!0,n){if(e){const i=(e,t,s)=>{const r="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(!n)throw new o.YAMLParseError([r,r+1],t,s);n(r,t,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return r.resolveFlowScalar(e,t,i);case"block-scalar":return s.resolveBlockScalar(e,t,i)}}return null},t.setScalarValue=function(e,t,n={}){let{afterKey:s=!1,implicitKey:r=!1,inFlow:o=!1,type:l}=n,u="indent"in e?e.indent:null;if(s&&"number"==typeof u&&(u+=2),!l)switch(e.type){case"single-quoted-scalar":l="QUOTE_SINGLE";break;case"double-quoted-scalar":l="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");l=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:l="PLAIN"}const f=i.stringifyString({type:l,value:t},{implicitKey:r||null===u,indent:null!==u&&u>0?" ".repeat(u):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(f[0]){case"|":case">":!function(e,t){const n=t.indexOf("\n"),s=t.substring(0,n),r=t.substring(n+1)+"\n";if("block-scalar"===e.type){const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");t.source=s,e.source=r}else{const{offset:t}=e,n="indent"in e?e.indent:-1,o=[{type:"block-scalar-header",offset:t,indent:n,source:s}];a(o,"end"in e?e.end:void 0)||o.push({type:"newline",offset:-1,indent:n,source:"\n"});for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:o,source:r})}}(e,f);break;case'"':c(e,f,"double-quoted-scalar");break;case"'":c(e,f,"single-quoted-scalar");break;default:c(e,f,"scalar")}}},4453:(e,t)=>{function n(e){switch(e.type){case"block-scalar":{let t="";for(const s of e.props)t+=n(s);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=s(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=s(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=s(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function s({start:e,key:t,sep:s,value:r}){let o="";for(const t of e)o+=t.source;if(t&&(o+=n(t)),s)for(const e of s)o+=e.source;return r&&(o+=n(r)),o}t.stringify=e=>"type"in e?n(e):s(e)},4664:(e,t)=>{const n=Symbol("break visit"),s=Symbol("skip children"),r=Symbol("remove item");function o(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),i(Object.freeze([]),e,t)}function i(e,t,s){let o=s(t,e);if("symbol"==typeof o)return o;for(const a of["key","value"]){const c=t[a];if(c&&"items"in c){for(let t=0;t<c.items.length;++t){const o=i(Object.freeze(e.concat([[a,t]])),c.items[t],s);if("number"==typeof o)t=o-1;else{if(o===n)return n;o===r&&(c.items.splice(t,1),t-=1)}}"function"==typeof o&&"key"===a&&(o=o(t,e))}}return"function"==typeof o?o(t,e):o}o.BREAK=n,o.SKIP=s,o.REMOVE=r,o.itemAtPath=(e,t)=>{let n=e;for(const[e,s]of t){const t=n?.[e];if(!t||!("items"in t))return;n=t.items[s]}return n},o.parentCollection=(e,t)=>{const n=o.itemAtPath(e,t.slice(0,-1))?.[t[t.length-1][0]];if(n&&"items"in n)return n;throw new Error("Parent collection not found")},t.visit=o},5208:(e,t,n)=>{var s=n(7084),r=n(4453),o=n(4664);t.createScalarToken=s.createScalarToken,t.resolveAsScalar=s.resolveAsScalar,t.setScalarValue=s.setScalarValue,t.stringify=r.stringify,t.visit=o.visit,t.BOM="\ufeff",t.DOCUMENT="",t.FLOW_END="",t.SCALAR="",t.isCollection=e=>!!e&&"items"in e,t.isScalar=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type),t.prettyToken=function(e){switch(e){case"\ufeff":return"<BOM>";case"":return"<DOC>";case"":return"<FLOW_END>";case"":return"<SCALAR>";default:return JSON.stringify(e)}},t.tokenType=function(e){switch(e){case"\ufeff":return"byte-order-mark";case"":return"doc-mode";case"":return"flow-error-end";case"":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":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(e[0]){case" ":case"\t":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}},7135:(e,t,n)=>{var s=n(5208);function r(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const o="0123456789ABCDEFabcdef".split(""),i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),a=",[]{}".split(""),c=" ,[]{}\n\r\t".split(""),l=e=>!e||c.includes(e);t.Lexer=class{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){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){const t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"===t||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&r(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(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(null===e)return this.setNext("stream");if(e[0]===s.BOM&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length;const n=e.indexOf("#");if(-1!==n){const s=e[n-1];" "!==s&&"\t"!==s||(t=n-1)}for(;;){const n=e[t-1];if(" "!==n&&"\t"!==n)break;t-=1}const s=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield s.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){const 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");const e=this.peek(3);if("---"===e&&r(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if("..."===e&&r(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!r(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&r(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)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(l),"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,n=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const o=this.getLine();if(null===o)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==o[0]||0===n&&(o.startsWith("---")||o.startsWith("..."))&&r(o[3]))&&(n!==this.indentNext-1||1!==this.flowLevel||"]"!==o[0]&&"}"!==o[0]))return this.flowLevel=0,yield s.FLOW_END,yield*this.parseLineStart();let i=0;for(;","===o[i];)i+=(yield*this.pushCount(1)),i+=(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(i+=(yield*this.pushIndicators()),o[i]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-i),"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(l),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||r(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}const n=this.buffer.substring(0,t);let s=n.indexOf("\n",this.pos);if(-1!==s){for(;-1!==s;){const e=this.continueScalar(s+1);if(-1===e)break;s=n.indexOf("\n",e)}-1!==s&&(t=s-("\r"===n[s-1]?2:1))}if(-1===t){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(;;){const 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((e=>r(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let s=this.pos;e=this.buffer[s];++s)switch(e){case" ":n+=1;break;case"\n":t=s,n=0;break;case"\r":{const e=this.buffer[s+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,s=this.buffer[e];"\r"===s&&(s=this.buffer[--e]);const r=e;for(;" "===s||"\t"===s;)s=this.buffer[--e];if(!("\n"===s&&e>=this.pos&&e+1+n>r))break;t=e}return yield s.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,o=this.pos-1;for(;t=this.buffer[++o];)if(":"===t){const t=this.buffer[o+1];if(r(t)||e&&","===t)break;n=o}else if(r(t)){let s=this.buffer[o+1];if("\r"===t&&("\n"===s?(o+=1,t="\n",s=this.buffer[o+1]):n=o),"#"===s||e&&a.includes(s))break;if("\n"===t){const e=this.continueScalar(o+1);if(-1===e)break;o=Math.max(o,e-2)}}else{if(e&&a.includes(t))break;n=o}return t||this.atEnd?(yield s.SCALAR,yield*this.pushToIndex(n+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(l))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(r(t)||e&&a.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!r(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(i.includes(t))t=this.buffer[++e];else{if("%"!==t||!o.includes(this.buffer[e+1])||!o.includes(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do{t=this.buffer[++n]}while(" "===t||e&&"\t"===t);const s=n-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=n),s}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}},4708:(e,t)=>{t.LineCounter=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){const s=t+n>>1;this.lineStarts[s]<e?t=s+1:n=s}return this.lineStarts[t]===e?{line:t+1,col:1}:0===t?{line:0,col:e}:{line:t,col:e-this.lineStarts[t-1]+1}}}}},9369:(e,t,n)=>{var s=n(5208),r=n(7135);function o(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function i(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function a(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function c(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function l(e){if(0===e.length)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===e[++t]?.type;);return e.splice(t,e.length)}function u(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||o(t.start,"explicit-key-ind")||o(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,a(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}t.Parser=class{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 r.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,process.env.LOG_TOKENS&&console.log("|",s.prettyToken(e)),this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=s.tokenType(e);if(t)if("scalar"===t)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{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,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(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){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()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&u(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const n=e.items[e.items.length-1];if(n.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!n.sep)return Object.assign(n,{key:t,sep:[]}),void(this.onKeyLine=!o(n.start,"explicit-key-ind"));n.value=t;break}case"block-seq":{const n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1];return void(!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===i(n.start)&&(0===t.indent||n.start.every((e=>"comment"!==e.type||e.indent<t.indent)))&&("document"===e.type?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}else{const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}}*stream(){switch(this.type){case"directive-line":return void(yield{type:"directive",offset:this.offset,source:this.source});case"byte-order-mark":case"space":case"comment":case"newline":return void(yield this.sourceToken);case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};return"doc-start"===this.type&&e.start.push(this.sourceToken),void this.stack.push(e)}}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":return void(-1!==i(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken));case"anchor":case"tag":case"space":case"comment":case"newline":return void e.start.push(this.sourceToken)}const 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("map-value-ind"===this.type){const t=l(c(this.peek(2)));let n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];const s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":return void e.props.push(this.sourceToken);case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){const n="end"in t.value?t.value.end:void 0;"comment"===(Array.isArray(n)?n[n.length-1]:void 0)?.type?n?.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)){const n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n))return Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const n=!this.onKeyLine&&this.indent===e.indent&&t.sep;let s=[];if(n&&t.sep&&!t.value){const n=[];for(let s=0;s<t.sep.length;++s){const r=t.sep[s];switch(r.type){case"newline":n.push(s);break;case"space":break;case"comment":r.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(s=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":return void(n||t.value?(s.push(this.sourceToken),e.items.push({start:s}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||o(t.start,"explicit-key-ind")?n||t.value?(s.push(this.sourceToken),e.items.push({start:s})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):t.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(o(t.start,"explicit-key-ind"))if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(o(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(a(t.key)&&!o(t.sep,"newline")){const e=l(t.start),n=t.key,s=t.sep;s.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:s}]})}else s.length>0?t.sep=t.sep.concat(s,this.sourceToken):t.sep.push(this.sourceToken);else if(o(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const e=l(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||n?e.items.push({start:s,key:null,sep:[this.sourceToken]}):o(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]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);return void(n||t.value?(e.items.push({start:s,key:r,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(r):(Object.assign(t,{key:r,sep:[]}),this.onKeyLine=!0))}default:{const r=this.startBlockValue(e);if(r)return n&&"block-seq"!==r.type&&o(t.start,"explicit-key-ind")&&e.items.push({start:s}),void this.stack.push(r)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const n="end"in t.value?t.value.end:void 0;"comment"===(Array.isArray(n)?n[n.length-1]:void 0)?.type?n?.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)){const n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n))return Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;return void t.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(t.value||o(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!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]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const n=l(c(t));u(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+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;const t=l(c(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=l(c(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(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],"newline"===this.type&&(yield*this.pop())}}}},8011:(e,t,n)=>{var s=n(5281),r=n(6068),o=n(2394),i=n(5441),a=n(4708),c=n(9369);function l(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new a.LineCounter||null,prettyErrors:t}}function u(e,t={}){const{lineCounter:n,prettyErrors:r}=l(t),i=new c.Parser(n?.addNewLine),a=new s.Composer(t);let u=null;for(const t of a.compose(i.parse(e),!0,e.length))if(u){if("silent"!==u.options.logLevel){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else u=t;return r&&n&&(u.errors.forEach(o.prettifyError(e,n)),u.warnings.forEach(o.prettifyError(e,n))),u}t.parse=function(e,t,n){let s;"function"==typeof t?s=t:void 0===n&&t&&"object"==typeof t&&(n=t);const r=u(e,n);if(!r)return null;if(r.warnings.forEach((e=>i.warn(r.options.logLevel,e))),r.errors.length>0){if("silent"!==r.options.logLevel)throw r.errors[0];r.errors=[]}return r.toJS(Object.assign({reviver:s},n))},t.parseAllDocuments=function(e,t={}){const{lineCounter:n,prettyErrors:r}=l(t),i=new c.Parser(n?.addNewLine),a=new s.Composer(t),u=Array.from(a.compose(i.parse(e)));if(r&&n)for(const t of u)t.errors.forEach(o.prettifyError(e,n)),t.warnings.forEach(o.prettifyError(e,n));return u.length>0?u:Object.assign([],{empty:!0},a.streamInfo())},t.parseDocument=u,t.stringify=function(e,t,n){let s=null;if("function"==typeof t||Array.isArray(t)?s=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){const e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){const{keepUndefined:e}=n??t??{};if(!e)return}return new r.Document(e,s,n).toString(n)}},3673:(e,t,n)=>{var s=n(163),r=n(2744),o=n(2360),i=n(3042),a=n(6524);const c=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class l{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:l,schema:u,sortMapEntries:f,toStringDefaults:h}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null,this.merge=!!n,this.name="string"==typeof u&&u||"core",this.knownTags=l?a.coreKnownTags:{},this.tags=a.getTags(t,this.name),this.toStringOptions=h??null,Object.defineProperty(this,s.MAP,{value:r.map}),Object.defineProperty(this,s.SCALAR,{value:i.string}),Object.defineProperty(this,s.SEQ,{value:o.seq}),this.sortMapEntries="function"==typeof f?f:!0===f?c:null}clone(){const e=Object.create(l.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}t.Schema=l},2744:(e,t,n)=>{var s=n(163),r=n(6575);const o={collection:"map",default:!0,nodeClass:r.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(s.isMap(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>r.YAMLMap.from(e,t,n)};t.map=o},5397:(e,t,n)=>{var s=n(8844);const r={identify:e=>null==e,createNode:()=>new s.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new s.Scalar(null),stringify:({source:e},t)=>"string"==typeof e&&r.test.test(e)?e:t.options.nullStr};t.nullTag=r},2360:(e,t,n)=>{var s=n(163),r=n(3798);const o={collection:"seq",default:!0,nodeClass:r.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(s.isSeq(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>r.YAMLSeq.from(e,t,n)};t.seq=o},3042:(e,t,n)=>{var s=n(8431);const r={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>(t=Object.assign({actualString:!0},t),s.stringifyString(e,t,n,r))};t.string=r},976:(e,t,n)=>{var s=n(8844);const r={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new s.Scalar("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&r.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};t.boolTag=r},3398:(e,t,n)=>{var s=n(8844),r=n(5260);const o={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber},i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():r.stringifyNumber(e)}},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new s.Scalar(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:r.stringifyNumber};t.float=a,t.floatExp=i,t.floatNaN=o},4723:(e,t,n)=>{var s=n(5260);const r=e=>"bigint"==typeof e||Number.isInteger(e),o=(e,t,n,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(t),n);function i(e,t,n){const{value:o}=e;return r(o)&&o>=0?n+o.toString(t):s.stringifyNumber(e)}const a={identify:e=>r(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>o(e,2,8,n),stringify:e=>i(e,8,"0o")},c={identify:r,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>o(e,0,10,n),stringify:s.stringifyNumber},l={identify:e=>r(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>o(e,2,16,n),stringify:e=>i(e,16,"0x")};t.int=c,t.intHex=l,t.intOct=a},3305:(e,t,n)=>{var s=n(2744),r=n(5397),o=n(2360),i=n(3042),a=n(976),c=n(3398),l=n(4723);const u=[s.map,o.seq,i.string,r.nullTag,a.boolTag,l.intOct,l.int,l.intHex,c.floatNaN,c.floatExp,c.float];t.schema=u},7854:(e,t,n)=>{var s=n(8844),r=n(2744),o=n(2360);function i(e){return"bigint"==typeof e||Number.isInteger(e)}const a=({value:e})=>JSON.stringify(e),c=[{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:a},{identify:e=>null==e,createNode:()=>new s.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:a},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:a},{identify:i,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>i(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:a}],l={default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)},u=[r.map,o.seq].concat(c,l);t.schema=u},6524:(e,t,n)=>{var s=n(2744),r=n(5397),o=n(2360),i=n(3042),a=n(976),c=n(3398),l=n(4723),u=n(3305),f=n(7854),h=n(8798),d=n(1367),p=n(3879),m=n(3015),g=n(7559),y=n(7714);const b=new Map([["core",u.schema],["failsafe",[s.map,o.seq,i.string]],["json",f.schema],["yaml11",m.schema],["yaml-1.1",m.schema]]),v={binary:h.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:y.floatTime,int:l.int,intHex:l.intHex,intOct:l.intOct,intTime:y.intTime,map:s.map,null:r.nullTag,omap:d.omap,pairs:p.pairs,seq:o.seq,set:g.set,timestamp:y.timestamp},w={"tag:yaml.org,2002:binary":h.binary,"tag:yaml.org,2002:omap":d.omap,"tag:yaml.org,2002:pairs":p.pairs,"tag:yaml.org,2002:set":g.set,"tag:yaml.org,2002:timestamp":y.timestamp};t.coreKnownTags=w,t.getTags=function(e,t){let n=b.get(t);if(!n){if(!Array.isArray(e)){const e=Array.from(b.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}n=[]}if(Array.isArray(e))for(const t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return n.map((e=>{if("string"!=typeof e)return e;const t=v[e];if(t)return t;const n=Object.keys(v).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))}},8798:(e,t,n)=>{var s=n(8844),r=n(8431);const o={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof Buffer)return Buffer.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},o,i,a){const c=n;let l;if("function"==typeof Buffer)l=c instanceof Buffer?c.toString("base64"):Buffer.from(c.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<c.length;++t)e+=String.fromCharCode(c[t]);l=btoa(e)}}if(t||(t=s.Scalar.BLOCK_LITERAL),t!==s.Scalar.QUOTE_DOUBLE){const e=Math.max(o.options.lineWidth-o.indent.length,o.options.minContentWidth),n=Math.ceil(l.length/e),r=new Array(n);for(let t=0,s=0;t<n;++t,s+=e)r[t]=l.substr(s,e);l=r.join(t===s.Scalar.BLOCK_LITERAL?"\n":" ")}return r.stringifyString({comment:e,type:t,value:l},o,i,a)}};t.binary=o},9466:(e,t,n)=>{var s=n(8844);function r({value:e,source:t},n){return t&&(e?o:i).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const o={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new s.Scalar(!0),stringify:r},i={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new s.Scalar(!1),stringify:r};t.falseTag=i,t.trueTag=o},3922:(e,t,n)=>{var s=n(8844),r=n(5260);const o={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber},i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():r.stringifyNumber(e)}},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new s.Scalar(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const s=e.substring(n+1).replace(/_/g,"");"0"===s[s.length-1]&&(t.minFractionDigits=s.length)}return t},stringify:r.stringifyNumber};t.float=a,t.floatExp=i,t.floatNaN=o},5563:(e,t,n)=>{var s=n(5260);const r=e=>"bigint"==typeof e||Number.isInteger(e);function o(e,t,n,{intAsBigInt:s}){const r=e[0];if("-"!==r&&"+"!==r||(t+=1),e=e.substring(t).replace(/_/g,""),s){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===r?BigInt(-1)*t:t}const o=parseInt(e,n);return"-"===r?-1*o:o}function i(e,t,n){const{value:o}=e;if(r(o)){const e=o.toString(t);return o<0?"-"+n+e.substr(1):n+e}return s.stringifyNumber(e)}const a={identify:r,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>o(e,2,2,n),stringify:e=>i(e,2,"0b")},c={identify:r,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>o(e,1,8,n),stringify:e=>i(e,8,"0")},l={identify:r,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>o(e,0,10,n),stringify:s.stringifyNumber},u={identify:r,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>o(e,2,16,n),stringify:e=>i(e,16,"0x")};t.int=l,t.intBin=a,t.intHex=u,t.intOct=c},1367:(e,t,n)=>{var s=n(163),r=n(3257),o=n(6575),i=n(3798),a=n(3879);class c extends i.YAMLSeq{constructor(){super(),this.add=o.YAMLMap.prototype.add.bind(this),this.delete=o.YAMLMap.prototype.delete.bind(this),this.get=o.YAMLMap.prototype.get.bind(this),this.has=o.YAMLMap.prototype.has.bind(this),this.set=o.YAMLMap.prototype.set.bind(this),this.tag=c.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t?.onCreate&&t.onCreate(n);for(const e of this.items){let o,i;if(s.isPair(e)?(o=r.toJS(e.key,"",t),i=r.toJS(e.value,o,t)):o=r.toJS(e,"",t),n.has(o))throw new Error("Ordered maps must not include duplicate keys");n.set(o,i)}return n}static from(e,t,n){const s=a.createPairs(e,t,n),r=new this;return r.items=s.items,r}}c.tag="tag:yaml.org,2002:omap";const l={collection:"seq",identify:e=>e instanceof Map,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=a.resolvePairs(e,t),r=[];for(const{key:e}of n.items)s.isScalar(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new c,n)},createNode:(e,t,n)=>c.from(e,t,n)};t.YAMLOMap=c,t.omap=l},3879:(e,t,n)=>{var s=n(163),r=n(394),o=n(8844),i=n(3798);function a(e,t){if(s.isSeq(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!s.isPair(i)){if(s.isMap(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const e=i.items[0]||new r.Pair(new o.Scalar(null));if(i.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore),i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[n]=s.isPair(i)?i:new r.Pair(i)}}else t("Expected a sequence for this tag");return e}function c(e,t,n){const{replacer:s}=n,o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let i,c;if("function"==typeof s&&(e=s.call(t,String(a++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);i=e[0],c=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected { key: value } tuple: ${e}`);i=t[0],c=e[i]}else i=e;o.items.push(r.createPair(i,c,n))}return o}const l={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:a,createNode:c};t.createPairs=c,t.pairs=l,t.resolvePairs=a},3015:(e,t,n)=>{var s=n(2744),r=n(5397),o=n(2360),i=n(3042),a=n(8798),c=n(9466),l=n(3922),u=n(5563),f=n(1367),h=n(3879),d=n(7559),p=n(7714);const m=[s.map,o.seq,i.string,r.nullTag,c.trueTag,c.falseTag,u.intBin,u.intOct,u.int,u.intHex,l.floatNaN,l.floatExp,l.float,a.binary,f.omap,h.pairs,d.set,p.intTime,p.floatTime,p.timestamp];t.schema=m},7559:(e,t,n)=>{var s=n(163),r=n(394),o=n(6575);class i extends o.YAMLMap{constructor(e){super(e),this.tag=i.tag}add(e){let t;t=s.isPair(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new r.Pair(e.key,null):new r.Pair(e,null),o.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const n=o.findPair(this.items,e);return!t&&s.isPair(n)?s.isScalar(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=o.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new r.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){const{replacer:s}=n,o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof s&&(e=s.call(t,e,e)),o.items.push(r.createPair(e,null,n));return o}}i.tag="tag:yaml.org,2002:set";const a={collection:"map",identify:e=>e instanceof Set,nodeClass:i,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>i.from(e,t,n),resolve(e,t){if(s.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new i,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=i,t.set=a},7714:(e,t,n)=>{var s=n(5260);function r(e,t){const n=e[0],s="-"===n||"+"===n?e.substring(1):e,r=e=>t?BigInt(e):Number(e),o=s.replace(/_/g,"").split(":").reduce(((e,t)=>e*r(60)+r(t)),r(0));return"-"===n?r(-1)*o:o}function o(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return s.stringifyNumber(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),r+i.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const i={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>r(e,n),stringify:o},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>r(e,!1),stringify:o},c={identify:e=>e instanceof Date,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(e){const t=e.match(c.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,s,o,i,a,l]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let f=Date.UTC(n,s-1,o,i||0,a||0,l||0,u);const h=t[8];if(h&&"Z"!==h){let e=r(h,!1);Math.abs(e)<30&&(e*=60),f-=6e4*e}return new Date(f)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=a,t.intTime=i,t.timestamp=c},4112:(e,t)=>{const n="block",s="quoted";function r(e,t){let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t}t.FOLD_BLOCK=n,t.FOLD_FLOW="flow",t.FOLD_QUOTED=s,t.foldFlowLines=function(e,t,o="flow",{indentAtStart:i,lineWidth:a=80,minContentWidth:c=20,onFold:l,onOverflow:u}={}){if(!a||a<0)return e;const f=Math.max(1+c,1+a-t.length);if(e.length<=f)return e;const h=[],d={};let p,m,g=a-t.length;"number"==typeof i&&(i>a-Math.max(2,c)?h.push(0):g=a-i);let y,b=!1,v=-1,w=-1,O=-1;for(o===n&&(v=r(e,v),-1!==v&&(g=v+f));y=e[v+=1];){if(o===s&&"\\"===y){switch(w=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}O=v}if("\n"===y)o===n&&(v=r(e,v)),g=v+f,p=void 0;else{if(" "===y&&m&&" "!==m&&"\n"!==m&&"\t"!==m){const t=e[v+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(p=v)}if(v>=g)if(p)h.push(p),g=p+f,p=void 0;else if(o===s){for(;" "===m||"\t"===m;)m=y,y=e[v+=1],b=!0;const t=v>O+1?v-2:w-1;if(d[t])return e;h.push(t),d[t]=!0,g=t+f,p=void 0}else b=!0}m=y}if(b&&u&&u(),0===h.length)return e;l&&l();let S=e.slice(0,h[0]);for(let n=0;n<h.length;++n){const r=h[n],i=h[n+1]||e.length;0===r?S=`\n${t}${e.slice(0,i)}`:(o===s&&d[r]&&(S+=`${e[r]}\\`),S+=`\n${t}${e.slice(r+1,i)}`)}return S}},611:(e,t,n)=>{var s=n(1903),r=n(163),o=n(8463),i=n(8431);t.createStringifyContext=function(e,t){const n=Object.assign({blockQuote:!0,commentString:o.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,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let s;switch(n.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:s,options:n}},t.stringify=function(e,t,n,o){if(r.isPair(e))return e.toString(t,n,o);if(r.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let a;const c=r.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>a=e});a||(a=function(e,t){if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))??n[0]}let n,s;if(r.isScalar(t)){s=t.value;const r=e.filter((e=>e.identify?.(s)));n=r.find((e=>e.format===t.format))??r.find((e=>!e.format))}else s=t,n=e.find((e=>e.nodeClass&&s instanceof e.nodeClass));if(!n)throw new Error(`Tag not resolved for ${s?.constructor?.name??typeof s} value`);return n}(t.doc.schema.tags,c));const l=function(e,t,{anchors:n,doc:o}){if(!o.directives)return"";const i=[],a=(r.isScalar(e)||r.isCollection(e))&&e.anchor;a&&s.anchorIsValid(a)&&(n.add(a),i.push(`&${a}`));const c=e.tag?e.tag:t.default?null:t.tag;return c&&i.push(o.directives.tagString(c)),i.join(" ")}(c,a,t);l.length>0&&(t.indentAtStart=(t.indentAtStart??0)+l.length+1);const u="function"==typeof a.stringify?a.stringify(c,t,n,o):r.isScalar(c)?i.stringifyString(c,t,n,o):c.toString(t,n,o);return l?r.isScalar(c)||"{"===u[0]||"["===u[0]?`${l} ${u}`:`${l}\n${t.indent}${u}`:u}},240:(e,t,n)=>{var s=n(3365),r=n(163),o=n(611),i=n(8463);function a({comment:e,items:t},n,{blockItemPrefix:s,flowChars:a,itemIndent:c,onChompKeep:u,onComment:f}){const{indent:h,options:{commentString:d}}=n,p=Object.assign({},n,{indent:c,type:null});let m=!1;const g=[];for(let e=0;e<t.length;++e){const a=t[e];let u=null;if(r.isNode(a))!m&&a.spaceBefore&&g.push(""),l(n,g,a.commentBefore,m),a.comment&&(u=a.comment);else if(r.isPair(a)){const e=r.isNode(a.key)?a.key:null;e&&(!m&&e.spaceBefore&&g.push(""),l(n,g,e.commentBefore,m))}m=!1;let f=o.stringify(a,p,(()=>u=null),(()=>m=!0));u&&(f+=i.lineComment(f,c,d(u))),m&&u&&(m=!1),g.push(s+f)}let y;if(0===g.length)y=a.start+a.end;else{y=g[0];for(let e=1;e<g.length;++e){const t=g[e];y+=t?`\n${h}${t}`:"\n"}}return e?(y+="\n"+i.indentComment(d(e),h),f&&f()):m&&u&&u(),y}function c({comment:e,items:t},n,{flowChars:a,itemIndent:c,onComment:u}){const{indent:f,indentStep:h,flowCollectionPadding:d,options:{commentString:p}}=n;c+=h;const m=Object.assign({},n,{indent:c,inFlow:!0,type:null});let g=!1,y=0;const b=[];for(let e=0;e<t.length;++e){const s=t[e];let a=null;if(r.isNode(s))s.spaceBefore&&b.push(""),l(n,b,s.commentBefore,!1),s.comment&&(a=s.comment);else if(r.isPair(s)){const e=r.isNode(s.key)?s.key:null;e&&(e.spaceBefore&&b.push(""),l(n,b,e.commentBefore,!1),e.comment&&(g=!0));const t=r.isNode(s.value)?s.value:null;t?(t.comment&&(a=t.comment),t.commentBefore&&(g=!0)):null==s.value&&e&&e.comment&&(a=e.comment)}a&&(g=!0);let u=o.stringify(s,m,(()=>a=null));e<t.length-1&&(u+=","),a&&(u+=i.lineComment(u,c,p(a))),!g&&(b.length>y||u.includes("\n"))&&(g=!0),b.push(u),y=b.length}let v;const{start:w,end:O}=a;if(0===b.length)v=w+O;else if(g||(g=b.reduce(((e,t)=>e+t.length+2),2)>s.Collection.maxFlowStringSingleLineLength),g){v=w;for(const e of b)v+=e?`\n${h}${f}${e}`:"\n";v+=`\n${f}${O}`}else v=`${w}${d}${b.join(" ")}${d}${O}`;return e&&(v+=i.lineComment(v,f,p(e)),u&&u()),v}function l({indent:e,options:{commentString:t}},n,s,r){if(s&&r&&(s=s.replace(/^\n+/,"")),s){const r=i.indentComment(t(s),e);n.push(r.trimStart())}}t.stringifyCollection=function(e,t,n){return(t.inFlow??e.flow?c:a)(e,t,n)}},8463:(e,t)=>{function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}t.indentComment=n,t.lineComment=(e,t,s)=>e.endsWith("\n")?n(s,t):s.includes("\n")?"\n"+n(s,t):(e.endsWith(" ")?"":" ")+s,t.stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#")},9957:(e,t,n)=>{var s=n(163),r=n(611),o=n(8463);t.stringifyDocument=function(e,t){const n=[];let i=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(n.push(t),i=!0):e.directives.docStart&&(i=!0)}i&&n.push("---");const a=r.createStringifyContext(e,t),{commentString:c}=a.options;if(e.commentBefore){1!==n.length&&n.unshift("");const t=c(e.commentBefore);n.unshift(o.indentComment(t,""))}let l=!1,u=null;if(e.contents){if(s.isNode(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){const t=c(e.contents.commentBefore);n.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment,u=e.contents.comment}const t=u?void 0:()=>l=!0;let f=r.stringify(e.contents,a,(()=>u=null),t);u&&(f+=o.lineComment(f,"",c(u))),"|"!==f[0]&&">"!==f[0]||"---"!==n[n.length-1]?n.push(f):n[n.length-1]=`--- ${f}`}else n.push(r.stringify(e.contents,a));if(e.directives?.docEnd)if(e.comment){const t=c(e.comment);t.includes("\n")?(n.push("..."),n.push(o.indentComment(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&l&&(t=t.replace(/^\n+/,"")),t&&(l&&!u||""===n[n.length-1]||n.push(""),n.push(o.indentComment(c(t),"")))}return n.join("\n")+"\n"}},5260:(e,t)=>{t.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:s}){if("bigint"==typeof s)return String(s);const r="number"==typeof s?s:Number(s);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let o=JSON.stringify(s);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let n=t-(o.length-e-1);for(;n-- >0;)o+="0"}return o}},8843:(e,t,n)=>{var s=n(163),r=n(8844),o=n(611),i=n(8463);t.stringifyPair=function({key:e,value:t},n,a,c){const{allNullValues:l,doc:u,indent:f,indentStep:h,options:{commentString:d,indentSeq:p,simpleKeys:m}}=n;let g=s.isNode(e)&&e.comment||null;if(m){if(g)throw new Error("With simple keys, key nodes cannot have comments");if(s.isCollection(e))throw new Error("With simple keys, collection cannot be used as a key value")}let y=!m&&(!e||g&&null==t&&!n.inFlow||s.isCollection(e)||(s.isScalar(e)?e.type===r.Scalar.BLOCK_FOLDED||e.type===r.Scalar.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!y&&(m||!l),indent:f+h});let b,v,w,O=!1,S=!1,k=o.stringify(e,n,(()=>O=!0),(()=>S=!0));if(!y&&!n.inFlow&&k.length>1024){if(m)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(n.inFlow){if(l||null==t)return O&&a&&a(),""===k?"?":y?`? ${k}`:k}else if(l&&!m||null==t&&y)return k=`? ${k}`,g&&!O?k+=i.lineComment(k,n.indent,d(g)):S&&c&&c(),k;O&&(g=null),y?(g&&(k+=i.lineComment(k,n.indent,d(g))),k=`? ${k}\n${f}:`):(k=`${k}:`,g&&(k+=i.lineComment(k,n.indent,d(g)))),s.isNode(t)?(b=!!t.spaceBefore,v=t.commentBefore,w=t.comment):(b=!1,v=null,w=null,t&&"object"==typeof t&&(t=u.createNode(t))),n.implicitKey=!1,y||g||!s.isScalar(t)||(n.indentAtStart=k.length+1),S=!1,p||!(h.length>=2)||n.inFlow||y||!s.isSeq(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let _=!1;const E=o.stringify(t,n,(()=>_=!0),(()=>S=!0));let A=" ";if(g||b||v){if(A=b?"\n":"",v){const e=d(v);A+=`\n${i.indentComment(e,n.indent)}`}""!==E||n.inFlow?A+=`\n${n.indent}`:"\n"===A&&(A="\n\n")}else if(!y&&s.isCollection(t)){const e=E[0],s=E.indexOf("\n"),r=-1!==s,o=n.inFlow??t.flow??0===t.items.length;if(r||!o){let t=!1;if(r&&("&"===e||"!"===e)){let n=E.indexOf(" ");"&"===e&&-1!==n&&n<s&&"!"===E[n+1]&&(n=E.indexOf(" ",n+1)),(-1===n||s<n)&&(t=!0)}t||(A=`\n${n.indent}`)}}else""!==E&&"\n"!==E[0]||(A="");return k+=A+E,n.inFlow?_&&a&&a():w&&!_?k+=i.lineComment(k,n.indent,d(w)):S&&c&&c(),k}},8431:(e,t,n)=>{var s=n(8844),r=n(4112);const o=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),i=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:s}=t,a=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(i(e)?" ":"");let l="",u=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(l+=n.slice(u,e)+"\\ ",e+=1,u=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{l+=n.slice(u,e);const t=n.substr(e+2,4);switch(t){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:"00"===t.substr(0,2)?l+="\\x"+t.substr(2):l+=n.substr(e,6)}e+=5,u=e+1}break;case"n":if(s||'"'===n[e+2]||n.length<a)e+=1;else{for(l+=n.slice(u,e)+"\n\n";"\\"===n[e+2]&&"n"===n[e+3]&&'"'!==n[e+4];)l+="\n",e+=2;l+=c," "===n[e+2]&&(l+="\\"),e+=1,u=e+1}break;default:e+=1}return l=u?l+n.slice(u):n,s?l:r.foldFlowLines(l,c,r.FOLD_QUOTED,o(t,!1))}function c(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return a(e,t);const n=t.indent||(i(e)?" ":""),s="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?s:r.foldFlowLines(s,n,r.FOLD_FLOW,o(t,!1))}function l(e,t){const{singleQuote:n}=t.options;let s;if(!1===n)s=a;else{const t=e.includes('"'),r=e.includes("'");s=t&&!r?c:r&&!t?a:n?c:a}return s(e,t)}let u;try{u=new RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{u=/\n+(?!\n|$)/g}function f({comment:e,type:t,value:n},a,c,f){const{blockQuote:h,commentString:d,lineWidth:p}=a.options;if(!h||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return l(n,a);const m=a.indent||(a.forceBlockIndent||i(n)?" ":""),g="literal"===h||"folded"!==h&&t!==s.Scalar.BLOCK_FOLDED&&(t===s.Scalar.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;const s=t-n,r=e.length;if(r<=s)return!1;for(let t=0,n=0;t<r;++t)if("\n"===e[t]){if(t-n>s)return!0;if(n=t+1,r-n<=s)return!1}return!0}(n,p,m.length));if(!n)return g?"|\n":">\n";let y,b;for(b=n.length;b>0;--b){const e=n[b-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let v=n.substring(b);const w=v.indexOf("\n");-1===w?y="-":n===v||w!==v.length-1?(y="+",f&&f()):y="",v&&(n=n.slice(0,-v.length),"\n"===v[v.length-1]&&(v=v.slice(0,-1)),v=v.replace(u,`$&${m}`));let O,S=!1,k=-1;for(O=0;O<n.length;++O){const e=n[O];if(" "===e)S=!0;else{if("\n"!==e)break;k=O}}let _=n.substring(0,k<O?k+1:O);_&&(n=n.substring(_.length),_=_.replace(/\n+/g,`$&${m}`));let E=(g?"|":">")+(S?m?"2":"1":"")+y;return e&&(E+=" "+d(e.replace(/ ?[\r\n]+/g," ")),c&&c()),g?`${E}\n${m}${_}${n=n.replace(/\n+/g,`$&${m}`)}${v}`:(n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${m}`),`${E}\n${m}${r.foldFlowLines(`${_}${n}${v}`,m,r.FOLD_BLOCK,o(a,!0))}`)}t.stringifyString=function(e,t,n,u){const{implicitKey:h,inFlow:d}=t,p="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:m}=e;m!==s.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(p.value)&&(m=s.Scalar.QUOTE_DOUBLE);const g=e=>{switch(e){case s.Scalar.BLOCK_FOLDED:case s.Scalar.BLOCK_LITERAL:return h||d?l(p.value,t):f(p,t,n,u);case s.Scalar.QUOTE_DOUBLE:return a(p.value,t);case s.Scalar.QUOTE_SINGLE:return c(p.value,t);case s.Scalar.PLAIN:return function(e,t,n,a){const{type:c,value:u}=e,{actualString:h,implicitKey:d,indent:p,indentStep:m,inFlow:g}=t;if(d&&/[\n[\]{},]/.test(u)||g&&/[[\]{},]/.test(u))return l(u,t);if(!u||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(u))return d||g||!u.includes("\n")?l(u,t):f(e,t,n,a);if(!d&&!g&&c!==s.Scalar.PLAIN&&u.includes("\n"))return f(e,t,n,a);if(i(u)){if(""===p)return t.forceBlockIndent=!0,f(e,t,n,a);if(d&&p===m)return l(u,t)}const y=u.replace(/\n+/g,`$&\n${p}`);if(h){const e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(y),{compat:n,tags:s}=t.doc.schema;if(s.some(e)||n?.some(e))return l(u,t)}return d?y:r.foldFlowLines(y,p,r.FOLD_FLOW,o(t,!1))}(p,t,n,u);default:return null}};let y=g(m);if(null===y){const{defaultKeyType:e,defaultStringType:n}=t.options,s=h&&e||n;if(y=g(s),null===y)throw new Error(`Unsupported default string type ${s}`)}return y}},1381:(e,t,n)=>{var s=n(163);const r=Symbol("break visit"),o=Symbol("skip children"),i=Symbol("remove node");function a(e,t){const n=f(t);s.isDocument(e)?c(null,e.contents,n,Object.freeze([e]))===i&&(e.contents=null):c(null,e,n,Object.freeze([]))}function c(e,t,n,o){const a=h(e,t,n,o);if(s.isNode(a)||s.isPair(a))return d(e,o,a),c(e,a,n,o);if("symbol"!=typeof a)if(s.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e<t.items.length;++e){const s=c(e,t.items[e],n,o);if("number"==typeof s)e=s-1;else{if(s===r)return r;s===i&&(t.items.splice(e,1),e-=1)}}}else if(s.isPair(t)){o=Object.freeze(o.concat(t));const e=c("key",t.key,n,o);if(e===r)return r;e===i&&(t.key=null);const s=c("value",t.value,n,o);if(s===r)return r;s===i&&(t.value=null)}return a}async function l(e,t){const n=f(t);s.isDocument(e)?await u(null,e.contents,n,Object.freeze([e]))===i&&(e.contents=null):await u(null,e,n,Object.freeze([]))}async function u(e,t,n,o){const a=await h(e,t,n,o);if(s.isNode(a)||s.isPair(a))return d(e,o,a),u(e,a,n,o);if("symbol"!=typeof a)if(s.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e<t.items.length;++e){const s=await u(e,t.items[e],n,o);if("number"==typeof s)e=s-1;else{if(s===r)return r;s===i&&(t.items.splice(e,1),e-=1)}}}else if(s.isPair(t)){o=Object.freeze(o.concat(t));const e=await u("key",t.key,n,o);if(e===r)return r;e===i&&(t.key=null);const s=await u("value",t.value,n,o);if(s===r)return r;s===i&&(t.value=null)}return a}function f(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function h(e,t,n,r){return"function"==typeof n?n(e,t,r):s.isMap(t)?n.Map?.(e,t,r):s.isSeq(t)?n.Seq?.(e,t,r):s.isPair(t)?n.Pair?.(e,t,r):s.isScalar(t)?n.Scalar?.(e,t,r):s.isAlias(t)?n.Alias?.(e,t,r):void 0}function d(e,t,n){const r=t[t.length-1];if(s.isCollection(r))r.items[e]=n;else if(s.isPair(r))"key"===e?r.key=n:r.value=n;else{if(!s.isDocument(r)){const e=s.isAlias(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}r.contents=n}}a.BREAK=r,a.SKIP=o,a.REMOVE=i,l.BREAK=r,l.SKIP=o,l.REMOVE=i,t.visit=a,t.visitAsync=l},3497:e=>{e.exports=JSON.parse('{"version":"0.0.0-development"}')}},t={};return function n(s){var r=t[s];if(void 0!==r)return r.exports;var o=t[s]={exports:{}};return e[s].call(o.exports,o,o.exports,n),o.exports}(3465)})()));
2
+ //# sourceMappingURL=index.js.map